hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
83103a011e1bb5e482fa869c43bee2cdb39dd21a
5,830
py
Python
app/comic/eyra/tasks.py
EYRA-Benchmark/grand-challenge.org
8264c19fa1a30ffdb717d765e2aa2e6ceccaab17
[ "Apache-2.0" ]
2
2019-06-28T09:23:55.000Z
2020-03-18T05:52:13.000Z
app/comic/eyra/tasks.py
EYRA-Benchmark/comic
8264c19fa1a30ffdb717d765e2aa2e6ceccaab17
[ "Apache-2.0" ]
112
2019-08-12T15:13:27.000Z
2022-03-21T15:49:40.000Z
app/comic/eyra/tasks.py
EYRA-Benchmark/grand-challenge.org
8264c19fa1a30ffdb717d765e2aa2e6ceccaab17
[ "Apache-2.0" ]
1
2020-03-19T14:19:57.000Z
2020-03-19T14:19:57.000Z
import json from datetime import datetime import time from functools import reduce import boto3 from celery import shared_task from celery.bin.control import inspect from django.conf import settings from comic.container_exec.backends.k8s import K8sJob from comic.eyra.models import Job, Submission, DataFile, JobInput ...
29.744898
95
0.686792
0
0
0
0
3,577
0.613551
0
0
817
0.140137
83105e3ab7b623c4391c6fa5b2af5b5f65241d9a
1,926
py
Python
doc/conf.py
djarpin/sagemaker-python-sdk
157d8670977243f7f77327175d40364c885482b3
[ "Apache-2.0" ]
1
2018-01-19T22:24:38.000Z
2018-01-19T22:24:38.000Z
doc/conf.py
djarpin/sagemaker-python-sdk
157d8670977243f7f77327175d40364c885482b3
[ "Apache-2.0" ]
null
null
null
doc/conf.py
djarpin/sagemaker-python-sdk
157d8670977243f7f77327175d40364c885482b3
[ "Apache-2.0" ]
2
2019-08-06T05:48:25.000Z
2020-10-04T17:00:55.000Z
# -*- coding: utf-8 -*- import os import sys from datetime import datetime from unittest.mock import MagicMock class Mock(MagicMock): @classmethod def __getattr__(cls, name): if name == "__version__": return "1.4.0" else: return MagicMock() MOCK_MODULES = ['tensorflow...
30.09375
98
0.704569
177
0.0919
0
0
150
0.077882
0
0
1,056
0.548287
83109a1fa008110e9e6bc3419abde0778a40c3c3
1,081
py
Python
django_cassiopeia/views.py
galaddirie/django-cassiopeia
e3e75e6c815cfc96e3b7ef5991aa1265221a2122
[ "MIT" ]
13
2020-07-08T17:23:18.000Z
2022-02-13T09:19:42.000Z
django_cassiopeia/views.py
galaddirie/django-cassiopeia
e3e75e6c815cfc96e3b7ef5991aa1265221a2122
[ "MIT" ]
16
2020-07-19T22:14:20.000Z
2022-03-24T02:57:45.000Z
django_cassiopeia/views.py
galaddirie/django-cassiopeia
e3e75e6c815cfc96e3b7ef5991aa1265221a2122
[ "MIT" ]
6
2020-07-21T01:37:54.000Z
2022-01-01T19:28:54.000Z
from django.shortcuts import render, HttpResponse from django_cassiopeia import cassiopeia as cass from time import sleep import json # Create your views here. def test(request): return render(request, "test/test.html") def test_request(request, n): context = { "n" : n, } sleep(n/5) try: ...
30.027778
87
0.612396
0
0
0
0
0
0
0
0
95
0.087882
8311183712fef6e93100cb2e804d36583b7c35d9
962
py
Python
sender.py
AndrVLDZ/telnet_DAW-master
4bce486fad0d4ae51ef695ace118df2af2b1c35f
[ "Apache-2.0" ]
null
null
null
sender.py
AndrVLDZ/telnet_DAW-master
4bce486fad0d4ae51ef695ace118df2af2b1c35f
[ "Apache-2.0" ]
null
null
null
sender.py
AndrVLDZ/telnet_DAW-master
4bce486fad0d4ae51ef695ace118df2af2b1c35f
[ "Apache-2.0" ]
null
null
null
import telnetlib def print_logo(logo=''): LOGO_DAFAULT = """\033[93m /\ /\\ / \\'._ (\_/) _.'/ \\ /_.''._'--('.')--'_.''._\\ | \_ / `;=/ " \=;` \ _/ | \/ `\__|`\___/`|__/` \/ ` \(/|\)/ ` " ` " DAW_Start_By_VLDZ \033[0m """ if logo != '': pri...
22.904762
47
0.477131
0
0
0
0
0
0
0
0
332
0.345114
8311c27de6e1db041ba99f1046583892727db0c6
43
py
Python
oed/__init__.py
wgshen/OED
6928ba31396f2e7dd2bd3701f319e1dad3f91346
[ "MIT" ]
null
null
null
oed/__init__.py
wgshen/OED
6928ba31396f2e7dd2bd3701f319e1dad3f91346
[ "MIT" ]
null
null
null
oed/__init__.py
wgshen/OED
6928ba31396f2e7dd2bd3701f319e1dad3f91346
[ "MIT" ]
1
2021-11-10T05:41:02.000Z
2021-11-10T05:41:02.000Z
from .oed import OED __all__ = [ "OED" ]
7.166667
20
0.604651
0
0
0
0
0
0
0
0
5
0.116279
831472f4490aeaadae4cd1684594efc22e0edd62
14,400
py
Python
pyperformance/_manifest.py
cappadokes/pyperformance
60574dad9585eb5622631502296bb8eae143cdfc
[ "MIT" ]
null
null
null
pyperformance/_manifest.py
cappadokes/pyperformance
60574dad9585eb5622631502296bb8eae143cdfc
[ "MIT" ]
2
2022-03-09T11:14:07.000Z
2022-03-09T14:07:47.000Z
test/xml_etree/venv/cpython3.11-d52597b1179a-compat-f6a835d45d46-bm-xml_etree/lib/python3.11/site-packages/pyperformance/_manifest.py
sebawild/cpython
874ba1a9c948af33de2ad229df42e03dc516f0a8
[ "0BSD" ]
1
2022-01-04T13:08:31.000Z
2022-01-04T13:08:31.000Z
__all__ = [ 'BenchmarksManifest', 'load_manifest', 'parse_manifest', ] from collections import namedtuple import os.path from . import __version__, DATA_DIR from . import _benchmark, _utils DEFAULTS_DIR = os.path.join(DATA_DIR, 'benchmarks') DEFAULT_MANIFEST = os.path.join(DEFAULTS_DIR, 'MANIFEST') ...
33.103448
89
0.555556
6,665
0.462847
4,572
0.3175
504
0.035
0
0
1,633
0.113403
8314cb28873762113bd7dff276be8513d9a062b7
8,543
py
Python
pimux/function.py
pcpcpc1213/pimux
6ce9c3a59ac04064d46217bcdad531c7171163da
[ "MIT" ]
null
null
null
pimux/function.py
pcpcpc1213/pimux
6ce9c3a59ac04064d46217bcdad531c7171163da
[ "MIT" ]
null
null
null
pimux/function.py
pcpcpc1213/pimux
6ce9c3a59ac04064d46217bcdad531c7171163da
[ "MIT" ]
null
null
null
from . import scrip as t class misc(): ''' The class misc has miscellaneous methods of termuxa-pi available. Available methods are : battery, brightness, vibrate, contactlist, torch, downloadFile ''' def __init__(self): pass def battery(self): ...
26.780564
122
0.570057
8,492
0.99403
0
0
0
0
0
0
4,990
0.584104
83150604a0fb11e77945d0c0fcad08abbb284ce0
342
py
Python
download_from_link.py
bogdanf555/scripts
42b7b36c5891da6dcde8f7889bdf0798f91bef12
[ "MIT" ]
null
null
null
download_from_link.py
bogdanf555/scripts
42b7b36c5891da6dcde8f7889bdf0798f91bef12
[ "MIT" ]
null
null
null
download_from_link.py
bogdanf555/scripts
42b7b36c5891da6dcde8f7889bdf0798f91bef12
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import requests import sys if __name__ == '__main__': if len(sys.argv) != 3: print("Error: you should pass 2 arguments: [link_to_download_from] [path_to_save_downloaded_file]") exit(1) url = sys.argv[1] r = requests.get(url, allow_redirects=True) open(sys.argv[2], '...
24.428571
107
0.660819
0
0
0
0
0
0
0
0
124
0.362573
83153ac6624a05f5b11103f7bcc31634fc8bbca3
443
py
Python
vowelsubstring.py
boddulurisrisai/python-practice
bb9dfd8ea4d1fe3e4a3f7950ba63b0469e0bca28
[ "bzip2-1.0.6" ]
1
2021-04-16T07:12:36.000Z
2021-04-16T07:12:36.000Z
vowelsubstring.py
boddulurisrisai/python-practice
bb9dfd8ea4d1fe3e4a3f7950ba63b0469e0bca28
[ "bzip2-1.0.6" ]
null
null
null
vowelsubstring.py
boddulurisrisai/python-practice
bb9dfd8ea4d1fe3e4a3f7950ba63b0469e0bca28
[ "bzip2-1.0.6" ]
null
null
null
import re b=input('enter string') r=[];max=-1;z=-1 for i in range(len(b)): for j in range(i+1,len(b)+1): c=b[i:j] for k in c: if k=='a' or k=='e' or k=='i' or k=='o' or k=='u': flag=0 else: flag=1 break if fl...
21.095238
63
0.363431
0
0
0
0
0
0
0
0
29
0.065463
8316bb71d181ce8ce3eff4b2a0a627c1843d8260
485
py
Python
syndata/__init__.py
Menelau/synthetic_datasets
86fd99042cff6a8bbdfa195fe6eee938a9c9d8f5
[ "MIT" ]
6
2018-02-07T02:02:00.000Z
2020-01-22T10:33:01.000Z
syndata/__init__.py
Menelau/synthetic_datasets
86fd99042cff6a8bbdfa195fe6eee938a9c9d8f5
[ "MIT" ]
null
null
null
syndata/__init__.py
Menelau/synthetic_datasets
86fd99042cff6a8bbdfa195fe6eee938a9c9d8f5
[ "MIT" ]
null
null
null
# coding=utf-8 # Author: Rafael Menelau Oliveira e Cruz <[email protected]> # # License: MIT """ The :mod:`deslib.util` This module includes various utilities. They are divided into three parts: syndata.synthethic_datasets - Provide functions to generate several 2D classification datasets. syndata.plot_tools ...
28.529412
118
0.785567
0
0
0
0
0
0
0
0
417
0.859794
831850a395edae115c39b123b0382e44942149bf
644
py
Python
profiles/migrations/0002_auto_20211214_0825.py
praekeltfoundation/ge-web
331d22554dfd6b6f6060b1fd7a110f38dd7ddece
[ "BSD-2-Clause" ]
1
2022-03-09T15:11:52.000Z
2022-03-09T15:11:52.000Z
profiles/migrations/0002_auto_20211214_0825.py
praekeltfoundation/ge-web
331d22554dfd6b6f6060b1fd7a110f38dd7ddece
[ "BSD-2-Clause" ]
14
2022-01-03T09:49:41.000Z
2022-03-31T12:53:31.000Z
profiles/migrations/0002_auto_20211214_0825.py
praekeltfoundation/ge-web
331d22554dfd6b6f6060b1fd7a110f38dd7ddece
[ "BSD-2-Clause" ]
null
null
null
# Generated by Django 3.1.14 on 2021-12-14 08:25 import django.db.models.deletion from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('wagtailcore', '0066_collection_management_permissions'), ('profiles', '0001_initial'), ] operations = [ ...
30.666667
194
0.673913
517
0.802795
0
0
0
0
0
0
221
0.343168
8318aea9b693ecf60895b29261a418a03e789bc8
4,290
py
Python
radmc-3d/version_0.41/examples/run_spher2d_1_nomirror/problem_setup.py
dlmatra/miao
71799811b21a4249754390a8ec00972723edab99
[ "MIT" ]
1
2019-11-23T00:03:40.000Z
2019-11-23T00:03:40.000Z
radmc-3d/version_0.41/examples/run_spher2d_1_nomirror/problem_setup.py
dlmatra/miao
71799811b21a4249754390a8ec00972723edab99
[ "MIT" ]
3
2021-05-26T12:54:50.000Z
2021-05-27T10:58:48.000Z
radmc-3d/version_0.41/examples/run_spher2d_1_nomirror/problem_setup.py
dlmatra/miao
71799811b21a4249754390a8ec00972723edab99
[ "MIT" ]
1
2021-12-23T14:09:52.000Z
2021-12-23T14:09:52.000Z
# # Import NumPy for array handling # import numpy as np import math # # Import plotting libraries (start Python with ipython --matplotlib) # #from mpl_toolkits.mplot3d import axes3d #from matplotlib import pyplot as plt # # Some natural constants # au = 1.49598e13 # Astronomical Unit [cm] pc = 3.08572e18 ...
30.642857
94
0.530536
0
0
0
0
0
0
0
0
1,988
0.463403
83191aecc9d861bb7dfa42c1c5b079d943885a2f
5,508
py
Python
colorprinter/pycolor.py
edonyzpc/toolkitem
3a09ebf45eee8ecd9ff0e441392d5fc746b996e5
[ "MIT" ]
3
2015-04-20T08:17:09.000Z
2020-07-07T15:22:06.000Z
colorprinter/pycolor.py
edonyzpc/toolkitem
3a09ebf45eee8ecd9ff0e441392d5fc746b996e5
[ "MIT" ]
24
2015-11-14T14:54:59.000Z
2017-10-23T15:14:45.000Z
colorprinter/pycolor.py
edonyzpc/toolkitem
3a09ebf45eee8ecd9ff0e441392d5fc746b996e5
[ "MIT" ]
1
2017-02-28T06:35:44.000Z
2017-02-28T06:35:44.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ # .---. .----------- # / \ __ / ------ # / / \( )/ ----- (`-') _ _(`-') <-. (`-')_ # ////// '\/ ` --- ( OO).-/( (OO ).-> .-> \( OO) ) .-> # //// / // : : --- (,------....
35.766234
93
0.396696
3,940
0.715323
0
0
511
0.092774
0
0
3,250
0.590051
831a95d5b9d61001fca6140bef2832489872b9e3
1,684
py
Python
launch/velocity_smoother-composed-launch.py
doisyg/velocity_smoother
5ba998978e324fd0417ea75483d1f5559820459d
[ "BSD-3-Clause" ]
8
2020-02-28T10:40:53.000Z
2022-01-15T06:42:11.000Z
launch/velocity_smoother-composed-launch.py
doisyg/velocity_smoother
5ba998978e324fd0417ea75483d1f5559820459d
[ "BSD-3-Clause" ]
9
2020-01-20T16:32:14.000Z
2022-01-28T13:49:59.000Z
launch/velocity_smoother-composed-launch.py
doisyg/velocity_smoother
5ba998978e324fd0417ea75483d1f5559820459d
[ "BSD-3-Clause" ]
3
2020-03-19T09:40:35.000Z
2022-01-11T01:47:41.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Copyright (c) 2020 Open Source Robotics Foundation, Inc. # # Software License Agreement (BSD License 2.0) # https://raw.githubusercontent.com/kobuki-base/velocity_smoother/license/LICENSE """Launch the velocity smoother as a composed node with default configuration...
35.829787
92
0.694774
0
0
0
0
0
0
0
0
780
0.463183
831b642dcce9a13a8398668c6c09e24217cd6b3c
3,616
py
Python
lib/taskstats/controller.py
tijko/IO-Mon
4fb43c6c97b22f9a44eb34ef2221f1ed2abb062b
[ "MIT" ]
1
2015-12-17T04:58:09.000Z
2015-12-17T04:58:09.000Z
lib/taskstats/controller.py
tijko/IO-Mon
4fb43c6c97b22f9a44eb34ef2221f1ed2abb062b
[ "MIT" ]
null
null
null
lib/taskstats/controller.py
tijko/IO-Mon
4fb43c6c97b22f9a44eb34ef2221f1ed2abb062b
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import struct import socket from netlink import * NETLINK_ROUTE = 0 NETLINK_UNUSED = 1 NETLINK_USERSOCK = 2 NETLINK_FIREWALL = 3 NETLINK_SOCK_DIAG = 4 NETLINK_NFLOG = 5 NETLINK_XFRM = 6 NETLINK_SELINUX ...
28.472441
80
0.638274
2,438
0.674226
0
0
284
0.07854
0
0
978
0.270465
831cac4a9b399f71b7446e06e08d2d1e23c17328
1,335
py
Python
app/marketing/migrations/0002_membership.py
NDevox/website
76004e667f2295eddd79d500ba21f02a0480412f
[ "Apache-2.0" ]
null
null
null
app/marketing/migrations/0002_membership.py
NDevox/website
76004e667f2295eddd79d500ba21f02a0480412f
[ "Apache-2.0" ]
null
null
null
app/marketing/migrations/0002_membership.py
NDevox/website
76004e667f2295eddd79d500ba21f02a0480412f
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.2 on 2017-07-12 04:25 from __future__ import unicode_literals from django.db import migrations, models def forward(apps, schema_editor): db_alias = schema_editor.connection.alias Cron = apps.get_model('django_celery_beat', 'CrontabSchedule') cron = Cron...
32.560976
114
0.605243
656
0.491386
0
0
0
0
0
0
331
0.24794
831cd9a75c39325f8b2e668fec868da457fe98e6
4,552
py
Python
Solutions/VMX2-VoicemailExpress/Code/vmx_transcriber.py
cbgandhi-code/amazon-connect-salesforce-scv
fc5da5445b01295e530b50aa774598e91087c57a
[ "Apache-2.0", "CC0-1.0" ]
null
null
null
Solutions/VMX2-VoicemailExpress/Code/vmx_transcriber.py
cbgandhi-code/amazon-connect-salesforce-scv
fc5da5445b01295e530b50aa774598e91087c57a
[ "Apache-2.0", "CC0-1.0" ]
null
null
null
Solutions/VMX2-VoicemailExpress/Code/vmx_transcriber.py
cbgandhi-code/amazon-connect-salesforce-scv
fc5da5445b01295e530b50aa774598e91087c57a
[ "Apache-2.0", "CC0-1.0" ]
null
null
null
# Version: 2022.03.23 """ ********************************************************************************************************************** * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved * * ...
43.352381
130
0.536028
0
0
0
0
0
0
0
0
2,502
0.549649
831d6ec37b4d0e0a6e4200545a3b9e01d0fe7f0e
306
py
Python
api/permissions.py
soltanoff/simple_file_server
4e825358341fae0564fc498e8374a3d3cdda199e
[ "MIT" ]
2
2018-06-15T11:39:42.000Z
2019-08-14T20:55:15.000Z
api/permissions.py
soltanoff/simple_file_server
4e825358341fae0564fc498e8374a3d3cdda199e
[ "MIT" ]
7
2018-12-04T07:35:24.000Z
2022-03-11T23:12:10.000Z
api/permissions.py
soltanoff/simple_file_server
4e825358341fae0564fc498e8374a3d3cdda199e
[ "MIT" ]
null
null
null
from rest_framework import permissions class IsStaffOrReadOnly(permissions.BasePermission): """ Custom permission to only allow admins to edit it. """ def has_object_permission(self, request, view, obj): return request.method in permissions.SAFE_METHODS or request.user.is_staff
27.818182
82
0.751634
264
0.862745
0
0
0
0
0
0
66
0.215686
831dc5f3bb8ccadfd806896689571f12c96946bc
712
py
Python
capstone/rl/utils/linear_annealing.py
davidrobles/mlnd-capstone-code
19ca88aaa137665af147da9bbd0e510829a14cf1
[ "MIT" ]
2
2017-04-13T18:31:39.000Z
2017-05-06T05:14:12.000Z
capstone/rl/utils/linear_annealing.py
davidrobles/mlnd-capstone-code
19ca88aaa137665af147da9bbd0e510829a14cf1
[ "MIT" ]
null
null
null
capstone/rl/utils/linear_annealing.py
davidrobles/mlnd-capstone-code
19ca88aaa137665af147da9bbd0e510829a14cf1
[ "MIT" ]
null
null
null
from .callbacks import Callback class LinearAnnealing(Callback): def __init__(self, obj, param, init, final, n_episodes): self.doing = 'inc' if init < final else 'dec' self.obj = obj self.param = param self.init = init self.final = final self.n_episodes = n_episode...
35.6
83
0.606742
677
0.950843
0
0
0
0
0
0
20
0.02809
8320400ac8c357808906cc6070706d68af6624bc
6,466
py
Python
genTraining_recurr.py
lasinger/-3DVideos2Stereo
9608654ec37d157133c43531ac0002102e86dbab
[ "MIT" ]
62
2020-01-15T10:27:46.000Z
2022-03-14T09:23:58.000Z
genTraining_recurr.py
lasinger/-3DVideos2Stereo
9608654ec37d157133c43531ac0002102e86dbab
[ "MIT" ]
4
2020-03-10T08:13:59.000Z
2021-12-09T09:35:58.000Z
genTraining_recurr.py
lasinger/-3DVideos2Stereo
9608654ec37d157133c43531ac0002102e86dbab
[ "MIT" ]
15
2020-01-17T02:06:54.000Z
2022-02-24T06:32:40.000Z
from __future__ import print_function import numpy as np import argparse import glob import os import errno import math import cv2 from random import shuffle from shutil import copyfile parser = argparse.ArgumentParser( description="create training/test/validation sets from video list" ) parser.add_argument("--vi...
30.64455
86
0.558769
0
0
0
0
0
0
0
0
957
0.148005
83207ebe69e3bf9bcd3f660b07c8f5bca9f8663b
2,038
py
Python
seeq/addons/clustering/__main__.py
seeq12/seeq-clustering
220793499d5f9669e7d9dde4820af0eee27f84dc
[ "Apache-2.0" ]
3
2021-10-15T05:32:44.000Z
2021-12-14T16:33:24.000Z
seeq/addons/clustering/__main__.py
seeq12/seeq-clustering
220793499d5f9669e7d9dde4820af0eee27f84dc
[ "Apache-2.0" ]
2
2021-11-19T17:46:06.000Z
2022-01-20T06:54:00.000Z
seeq/addons/clustering/__main__.py
seeq12/seeq-clustering
220793499d5f9669e7d9dde4820af0eee27f84dc
[ "Apache-2.0" ]
null
null
null
import os import sys import argparse from ._install_addon import install_addon def cli_interface(): """ Installs Seeq Add-on Tool """ parser = argparse.ArgumentParser(description='Install Clustering as a Seeq Add-on Tool') parser.add_argument('--username', type=str, default=None, ...
49.707317
195
0.632483
0
0
0
0
0
0
0
0
964
0.473013
8321d10093f3ed3b6d58be76b8214f867e414822
939
py
Python
utils/customchecks.py
arielbeje/good-bot-name
de1429ea5b653fd8ee88d649452ebef7e7399e5b
[ "MIT" ]
10
2018-04-08T00:02:18.000Z
2022-01-25T18:34:06.000Z
utils/customchecks.py
arielbeje/good-bot-name
de1429ea5b653fd8ee88d649452ebef7e7399e5b
[ "MIT" ]
14
2018-01-26T16:55:09.000Z
2021-09-19T11:35:58.000Z
utils/customchecks.py
arielbeje/Good_Bot_Name
de1429ea5b653fd8ee88d649452ebef7e7399e5b
[ "MIT" ]
14
2018-02-14T01:35:08.000Z
2021-03-30T12:18:03.000Z
""" Code stolen from https://github.com/Rapptz/discord.py """ import functools import discord from discord.ext import commands from . import sql class NotAModError(commands.CheckFailure): pass class NoTokenError(Exception): pass def is_mod(): async def predicate(ctx): ch = ctx.channel ...
24.076923
140
0.652822
90
0.095847
0
0
0
0
637
0.678381
107
0.113951
83226ea13035cf8a8cc076a6baf244dd22963a78
3,107
py
Python
tests/test_lambda_lapsed.py
BostonDSA/actionnetwork-activist-sync
f4b45ec85d59ac252c5572974381e96ec0107add
[ "MIT" ]
1
2021-12-14T17:34:20.000Z
2021-12-14T17:34:20.000Z
tests/test_lambda_lapsed.py
BostonDSA/actionnetwork-activist-sync
f4b45ec85d59ac252c5572974381e96ec0107add
[ "MIT" ]
null
null
null
tests/test_lambda_lapsed.py
BostonDSA/actionnetwork-activist-sync
f4b45ec85d59ac252c5572974381e96ec0107add
[ "MIT" ]
null
null
null
import json import importlib import os import unittest from unittest.mock import Mock from moto import mock_dynamodb2 import boto3 from lambda_local.context import Context os.environ['ENVIRONMENT'] = 'TEST' os.environ['LOG_LEVEL'] = 'CRITICAL' os.environ['DSA_KEY'] = 'TESTKEY' class TestLapsed(unittest.TestCase): ...
31.07
84
0.633408
2,825
0.909237
0
0
2,013
0.647892
0
0
473
0.152237
832283ba27d3f56129d5cb0cef3c3b8a60934088
2,974
py
Python
tests/test_motif_finder.py
gaybro8777/RStudio-GitHub-Analysis
014195c90ca49f64d28c9fcd96d128301ff65157
[ "BSD-2-Clause" ]
2
2020-09-13T11:55:13.000Z
2021-05-23T01:29:19.000Z
tests/test_motif_finder.py
gaybro8777/RStudio-GitHub-Analysis
014195c90ca49f64d28c9fcd96d128301ff65157
[ "BSD-2-Clause" ]
null
null
null
tests/test_motif_finder.py
gaybro8777/RStudio-GitHub-Analysis
014195c90ca49f64d28c9fcd96d128301ff65157
[ "BSD-2-Clause" ]
2
2020-10-17T20:18:37.000Z
2021-05-23T01:29:25.000Z
""" This script tests the classes and functions from motif_finder.py. Parameters ---------- None Returns ------- Assertion errors if tests fail """ import sys import random import pickle import networkx as nx from github_analysis.big_cloud_scratch import git_graph from github_analysis.data_layer import getCommitsBy...
28.596154
115
0.751849
0
0
0
0
0
0
0
0
1,104
0.371217
83245e358084afd5d7f959c3a7aebfc9ab55bb73
1,107
py
Python
torrent.py
fishy/scripts
91abd0451cae916d885f4ff0fd2f69d335d37cf3
[ "BSD-3-Clause" ]
4
2016-05-09T13:42:23.000Z
2021-11-29T15:16:11.000Z
torrent.py
fishy/scripts
91abd0451cae916d885f4ff0fd2f69d335d37cf3
[ "BSD-3-Clause" ]
null
null
null
torrent.py
fishy/scripts
91abd0451cae916d885f4ff0fd2f69d335d37cf3
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import sys import os from types import StringType # get bencode package from http://github.com/fishy/scripts/downloads from bencode.bencode import bencode, bdecode, BTFailure try : torrent = sys.argv[1] except IndexError : print "Usage: \"%s <torrent_file> [tracker_url]\" to show torrent info ...
23.0625
130
0.68925
0
0
0
0
0
0
0
0
276
0.249322
8324b2ef51cf900faa05fab3ea2e0b781034e744
4,786
py
Python
test/test_mdsspath.py
jpevans/mdssdiff
88573bdc89b00b023ce59c9b0fa19c6e6be760ce
[ "Apache-2.0" ]
1
2019-11-05T00:34:20.000Z
2019-11-05T00:34:20.000Z
test/test_mdsspath.py
jpevans/mdssdiff
88573bdc89b00b023ce59c9b0fa19c6e6be760ce
[ "Apache-2.0" ]
13
2017-03-08T03:37:43.000Z
2020-06-19T01:03:04.000Z
test/test_mdsspath.py
jpevans/mdssdiff
88573bdc89b00b023ce59c9b0fa19c6e6be760ce
[ "Apache-2.0" ]
2
2020-09-14T12:04:43.000Z
2020-11-29T22:16:13.000Z
#!/usr/bin/env python """ Copyright 2015 ARC Centre of Excellence for Climate Systems Science author: Aidan Heerdegen <[email protected]> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at ...
31.906667
139
0.688884
0
0
0
0
0
0
0
0
1,766
0.368993
8324f3cc8eee905419a3c23f1df365cd7b4e9b24
30
py
Python
symbench_athens_client/tests/models/test_pipelines.py
valtron/symbench-athens-client
11482f5d385217898cfc5cb6ff9d76b19a3f7356
[ "Apache-2.0" ]
null
null
null
symbench_athens_client/tests/models/test_pipelines.py
valtron/symbench-athens-client
11482f5d385217898cfc5cb6ff9d76b19a3f7356
[ "Apache-2.0" ]
43
2021-08-19T20:16:43.000Z
2022-03-30T18:54:42.000Z
symbench_athens_client/tests/models/test_pipelines.py
valtron/symbench-athens-client
11482f5d385217898cfc5cb6ff9d76b19a3f7356
[ "Apache-2.0" ]
2
2021-11-09T06:07:06.000Z
2022-01-13T17:04:29.000Z
class TestPipelines: pass
10
20
0.733333
29
0.966667
0
0
0
0
0
0
0
0
8325f8d80722ee18d5ca87486dae7d369fe6e6ee
1,192
py
Python
applications/trilinos_application/python_scripts/PressureMultiLevelSolver.py
AndreaVoltan/MyKratos7.0
e977752722e8ef1b606f25618c4bf8fd04c434cc
[ "BSD-4-Clause" ]
2
2020-04-30T19:13:08.000Z
2021-04-14T19:40:47.000Z
applications/TrilinosApplication/python_scripts/PressureMultiLevelSolver.py
Jacklwln/Kratos
12ffe332622d7e8ea3e4a10bc061beb9d8e6e8de
[ "BSD-4-Clause" ]
1
2020-04-30T19:19:09.000Z
2020-05-02T14:22:36.000Z
applications/TrilinosApplication/python_scripts/PressureMultiLevelSolver.py
Jacklwln/Kratos
12ffe332622d7e8ea3e4a10bc061beb9d8e6e8de
[ "BSD-4-Clause" ]
1
2020-06-12T08:51:24.000Z
2020-06-12T08:51:24.000Z
from __future__ import print_function, absolute_import, division #makes KratosMultiphysics backward compatible with python 2.6 and 2.7 from KratosMultiphysics import * from KratosMultiphysics.TrilinosApplication import * def MultilevelLinearSolver(tolerance, max_iterations): # settings for the iterative solver ...
35.058824
134
0.723993
0
0
0
0
0
0
0
0
455
0.381711
83263868a21483660a3b2d0dc61af080e81df193
3,960
py
Python
Hood/views.py
Gakur/NeiApp
2a9955a23877de10ed3436fd25d56208bca22887
[ "MIT" ]
null
null
null
Hood/views.py
Gakur/NeiApp
2a9955a23877de10ed3436fd25d56208bca22887
[ "MIT" ]
null
null
null
Hood/views.py
Gakur/NeiApp
2a9955a23877de10ed3436fd25d56208bca22887
[ "MIT" ]
null
null
null
from django.shortcuts import render, redirect, get_object_or_404 from django.http import HttpResponse ,HttpResponseRedirect, Http404 from django.urls import reverse from django.contrib.auth.forms import UserCreationForm from .models import * from .forms import UserRegisterForm from django.contrib import messages from ...
38.076923
146
0.693687
0
0
0
0
2,585
0.652778
0
0
735
0.185606
832672b5a45d6ed1bcae4c5d5f38bb3800726d8c
3,325
py
Python
ckanext-hdx_package/ckanext/hdx_package/tests/test_metadata_fields.py
OCHA-DAP/hdx-ckan
202e0c44adc4ea8d0b90141e69365b65cce68672
[ "Apache-2.0" ]
58
2015-01-11T09:05:15.000Z
2022-03-17T23:44:07.000Z
ckanext-hdx_package/ckanext/hdx_package/tests/test_metadata_fields.py
OCHA-DAP/hdx-ckan
202e0c44adc4ea8d0b90141e69365b65cce68672
[ "Apache-2.0" ]
1,467
2015-01-01T16:47:44.000Z
2022-02-28T16:51:20.000Z
ckanext-hdx_package/ckanext/hdx_package/tests/test_metadata_fields.py
OCHA-DAP/hdx-ckan
202e0c44adc4ea8d0b90141e69365b65cce68672
[ "Apache-2.0" ]
17
2015-05-06T14:04:21.000Z
2021-11-11T19:58:16.000Z
''' Created on May 16, 2014 @author: alexandru-m-g ''' import json import webtest import logging import ckan.plugins as p import ckan.lib.create_test_data as ctd import ckan.lib.search as search import ckan.model as model import ckan.logic as logic import ckan.lib.helpers as h import ckan.tests.legacy as legacy_te...
34.635417
123
0.62797
2,775
0.834586
0
0
0
0
0
0
1,478
0.444511
832770b6da611f24d004cf5564b612a2e18401f6
524
py
Python
inject.py
edouardpoitras/process_injection_example
0b22488a83a5516788411e4974090d1df2bd6494
[ "MIT" ]
4
2021-05-01T06:56:14.000Z
2022-01-24T10:00:31.000Z
inject.py
edouardpoitras/process_injection_example
0b22488a83a5516788411e4974090d1df2bd6494
[ "MIT" ]
null
null
null
inject.py
edouardpoitras/process_injection_example
0b22488a83a5516788411e4974090d1df2bd6494
[ "MIT" ]
1
2021-04-30T16:52:11.000Z
2021-04-30T16:52:11.000Z
import sys import psutil from pyinjector import inject if len(sys.argv) != 3: print("Usage: python inject.py <process-name> <shared-library>") exit() _, process_name, shared_library = sys.argv for process in psutil.process_iter(): if process.name() == process_name: print(f"Found {process_name} - ...
29.111111
90
0.696565
0
0
0
0
0
0
0
0
201
0.383588
8327de2cbfa7508d6d7ec9cb75195ac2a23e5a16
3,235
py
Python
infer.py
yanivbl6/deep-griffinlim-iteration
b96165c0c11e00bff1e033f93aeca6fafe9833d3
[ "MIT" ]
null
null
null
infer.py
yanivbl6/deep-griffinlim-iteration
b96165c0c11e00bff1e033f93aeca6fafe9833d3
[ "MIT" ]
null
null
null
infer.py
yanivbl6/deep-griffinlim-iteration
b96165c0c11e00bff1e033f93aeca6fafe9833d3
[ "MIT" ]
1
2020-10-12T15:31:27.000Z
2020-10-12T15:31:27.000Z
# noinspection PyUnresolvedReferences ##import matlab.engine import os import shutil from argparse import ArgumentError, ArgumentParser from torch.utils.data import DataLoader from dataset import ComplexSpecDataset from hparams1 import hp from train import Trainer from pathlib import Path from os import listdir ...
32.35
208
0.641731
0
0
0
0
0
0
0
0
935
0.289026
8329042f7336cfa333d46696e6595794b06050cc
11,603
py
Python
Disc_train.py
avinsit123/kpgen_GAN
e5ca04b9c6e43f8049dcf8e5b8fa44ab4e4702c3
[ "MIT" ]
1
2020-05-28T23:18:51.000Z
2020-05-28T23:18:51.000Z
Disc_train.py
avinsit123/kpgen_GAN
e5ca04b9c6e43f8049dcf8e5b8fa44ab4e4702c3
[ "MIT" ]
null
null
null
Disc_train.py
avinsit123/kpgen_GAN
e5ca04b9c6e43f8049dcf8e5b8fa44ab4e4702c3
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Jul 1 15:10:45 2019 @author: r17935avinash """ ################################ IMPORT LIBRARIES ############################################################### import torch import numpy as np import pykp.io import torch.nn as nn from utils.statistics...
46.78629
594
0.613807
0
0
0
0
0
0
0
0
2,018
0.173921
832ab6e2559ee453e6521a8fd912db337cc8fa7d
4,568
py
Python
VQ3D/camera_pose_estimation/get_median_intrinsics.py
emulhall/episodic-memory
27bafec6e09c108f0efe5ac899eabde9d1ac40cc
[ "MIT" ]
27
2021-10-16T02:39:17.000Z
2022-03-31T11:16:11.000Z
VQ3D/camera_pose_estimation/get_median_intrinsics.py
emulhall/episodic-memory
27bafec6e09c108f0efe5ac899eabde9d1ac40cc
[ "MIT" ]
5
2022-03-23T04:53:36.000Z
2022-03-29T23:39:07.000Z
VQ3D/camera_pose_estimation/get_median_intrinsics.py
emulhall/episodic-memory
27bafec6e09c108f0efe5ac899eabde9d1ac40cc
[ "MIT" ]
13
2021-11-25T19:17:29.000Z
2022-03-25T14:01:47.000Z
import os import sys import json import argparse import numpy as np sys.path.append('Camera_Intrinsics_API/') from get_camera_intrinsics import CameraIntrinsicsHelper if __name__=='__main__': parser = argparse.ArgumentParser() parser.add_argument( "--input_dir", type=str, default='dat...
34.089552
76
0.479203
0
0
0
0
0
0
0
0
628
0.137478
832b2f005e0af85ddb6e44118b2f277f3ecf6b06
571
py
Python
Dataset/Leetcode/valid/78/455.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/valid/78/455.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/valid/78/455.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
class Solution: def __init__(self): self.result = [] def XXX(self, nums): return self.helper(nums, 0, []) def helper(self, nums, index, temp): if index == len(nums): self.result.append(temp) return self.result.append(temp) for i in range(ind...
27.190476
139
0.576182
416
0.728546
0
0
0
0
0
0
12
0.021016
832b736a0869d3dc222dea9d11955ffc80809ec5
1,322
py
Python
IDS/IDS/urls.py
YashwantChauhan/SDL
0d48dfa129d72316f35967df98ce2f1e6f949fc5
[ "MIT" ]
2
2020-12-24T15:13:49.000Z
2021-06-05T15:43:58.000Z
IDS/IDS/urls.py
YashwantChauhan/SDL
0d48dfa129d72316f35967df98ce2f1e6f949fc5
[ "MIT" ]
2
2021-12-28T14:06:20.000Z
2021-12-28T14:25:44.000Z
IDS/IDS/urls.py
YashwantChauhan/SDL
0d48dfa129d72316f35967df98ce2f1e6f949fc5
[ "MIT" ]
null
null
null
"""IDS URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based vie...
38.882353
77
0.723147
0
0
0
0
0
0
0
0
706
0.534039
832ba0a49717dd57c782af2a65a1680399effe7f
1,574
py
Python
setup.py
preetmishra/nooz
e7ee6958bac7edcc85ab157b6dbe07071fde887c
[ "MIT" ]
7
2020-03-18T06:30:55.000Z
2021-04-06T16:38:25.000Z
setup.py
preetmishra/nooz
e7ee6958bac7edcc85ab157b6dbe07071fde887c
[ "MIT" ]
1
2020-06-29T16:12:45.000Z
2020-06-29T16:12:45.000Z
setup.py
preetmishra/nooz
e7ee6958bac7edcc85ab157b6dbe07071fde887c
[ "MIT" ]
2
2021-03-21T02:52:39.000Z
2021-05-26T08:34:58.000Z
import codecs import os from setuptools import find_packages, setup def long_description(): if not (os.path.isfile('README.md') and os.access('README.md', os.R_OK)): return '' with codecs.open('README.md', encoding='utf8') as f: return f.read() linting_deps = [ 'mypy==0.761', 'pycod...
24.984127
77
0.584498
0
0
0
0
0
0
0
0
726
0.461245
832d8379190a88d84a40dc951ecd801770c36c11
11,454
py
Python
deeplodocus/callbacks/saver.py
amelgrenier/deeplodocus
0a017faae098cddc436e82e83b85e66caf18b522
[ "MIT" ]
null
null
null
deeplodocus/callbacks/saver.py
amelgrenier/deeplodocus
0a017faae098cddc436e82e83b85e66caf18b522
[ "MIT" ]
null
null
null
deeplodocus/callbacks/saver.py
amelgrenier/deeplodocus
0a017faae098cddc436e82e83b85e66caf18b522
[ "MIT" ]
null
null
null
from decimal import Decimal import torch from torch.nn import Module import os from deeplodocus.utils.notification import Notification from deeplodocus.utils.flags.save import * from deeplodocus.utils.flags.event import * from deeplodocus.utils.flags.notif import * from deeplodocus.utils.flags.ext import DEEP...
34.293413
115
0.527589
10,655
0.930243
0
0
0
0
0
0
3,259
0.284529
832debbd59e85b8ca2ff3010595d819d90400d10
2,812
py
Python
mridc/collections/reconstruction/models/cascadenet/ccnn_block.py
jerke123/mridc
7e22ac50f8df73f2305d61979da2a5d59874546e
[ "Apache-2.0" ]
null
null
null
mridc/collections/reconstruction/models/cascadenet/ccnn_block.py
jerke123/mridc
7e22ac50f8df73f2305d61979da2a5d59874546e
[ "Apache-2.0" ]
null
null
null
mridc/collections/reconstruction/models/cascadenet/ccnn_block.py
jerke123/mridc
7e22ac50f8df73f2305d61979da2a5d59874546e
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 __author__ = "Dimitrios Karkalousos" import torch from mridc.collections.common.parts.fft import fft2c, ifft2c from mridc.collections.common.parts.utils import complex_conj, complex_mul class CascadeNetBlock(torch.nn.Module): """ Model block for CascadeNet & Convolution Recurrent Neural Netwo...
30.565217
100
0.604908
2,606
0.926743
0
0
0
0
0
0
1,353
0.481152
832fa03411fdc8cba2cd96e51a219e3ef9e4283a
975
py
Python
main.py
BL-Lac149597870/drugVQA
604703d66457c958ddc9eeb35268391edb6c4996
[ "MIT" ]
null
null
null
main.py
BL-Lac149597870/drugVQA
604703d66457c958ddc9eeb35268391edb6c4996
[ "MIT" ]
null
null
null
main.py
BL-Lac149597870/drugVQA
604703d66457c958ddc9eeb35268391edb6c4996
[ "MIT" ]
null
null
null
''' Author: QHGG Date: 2021-02-27 13:42:43 LastEditTime: 2021-03-01 23:26:38 LastEditors: QHGG Description: FilePath: /drugVQA/main.py ''' import torch from sklearn import metrics import warnings warnings.filterwarnings("ignore") torch.cuda.set_device(0) print('cuda size == 1') from trainAndTest import * import time d...
28.676471
87
0.645128
0
0
0
0
0
0
0
0
372
0.381538
83300c0b6a409b6ab5643fe5a44ff448c026f263
4,773
py
Python
networkx/algorithms/tests/test_cuts.py
jebogaert/networkx
8563c3313223a53c548530f39c8cfb6e433539d3
[ "BSD-3-Clause" ]
2
2020-11-25T12:01:15.000Z
2021-02-02T03:46:23.000Z
networkx/algorithms/tests/test_cuts.py
jebogaert/networkx
8563c3313223a53c548530f39c8cfb6e433539d3
[ "BSD-3-Clause" ]
1
2020-11-15T23:07:09.000Z
2020-11-15T23:07:09.000Z
networkx/algorithms/tests/test_cuts.py
jebogaert/networkx
8563c3313223a53c548530f39c8cfb6e433539d3
[ "BSD-3-Clause" ]
2
2020-12-21T11:41:13.000Z
2021-01-08T17:09:21.000Z
"""Unit tests for the :mod:`networkx.algorithms.cuts` module.""" import networkx as nx class TestCutSize: """Unit tests for the :func:`~networkx.cut_size` function.""" def test_symmetric(self): """Tests that the cut size is symmetric.""" G = nx.barbell_graph(3, 0) S = {0, 1, 4} ...
29.83125
75
0.550178
4,660
0.976325
0
0
0
0
0
0
1,388
0.290802
8330e631a49e6776f2efa9742d5ed0e6a7e38620
6,556
py
Python
src/utility.py
bbookman/demand
47101843ab84f4161e618edfa5a8e8fea2e1d955
[ "MIT" ]
null
null
null
src/utility.py
bbookman/demand
47101843ab84f4161e618edfa5a8e8fea2e1d955
[ "MIT" ]
null
null
null
src/utility.py
bbookman/demand
47101843ab84f4161e618edfa5a8e8fea2e1d955
[ "MIT" ]
null
null
null
import sys, re, pdb from bs4 import BeautifulSoup as beautiful from datetime import datetime import requests, logging import timeout_decorator, pandas as pd import socket, urllib3 def read_input_file(): #todo - what if argument is not there or invalid? print_and_log('Reading input file') file = sys.argv[2...
33.111111
119
0.657413
0
0
0
0
2,492
0.38011
0
0
2,310
0.352349
8331c341859f7ceb90f3dad9bbc18d41377413e5
1,940
py
Python
section_11_(api)/dicts_and_lists.py
hlcooll/python_lessons
3790f98cbc5a0721fcfc9e5f52ba79a64878f362
[ "MIT" ]
425
2015-01-13T03:19:10.000Z
2022-03-13T00:34:44.000Z
section_11_(api)/dicts_and_lists.py
Supercodero/python-lessons
38409c318e7a62d30b2ffd68f8a7a5a5ec00778d
[ "MIT" ]
null
null
null
section_11_(api)/dicts_and_lists.py
Supercodero/python-lessons
38409c318e7a62d30b2ffd68f8a7a5a5ec00778d
[ "MIT" ]
178
2015-01-08T05:01:05.000Z
2021-12-02T00:56:58.000Z
# Dictionaries and lists, together # Loading from https://raw.githubusercontent.com/shannonturner/education-compliance-reports/master/investigations.json investigations = { "type": "FeatureCollection", "features": [ { "type": "Feature", "geometry": { "type": "Point", "coordinates": [ -11...
26.216216
118
0.625258
0
0
0
0
0
0
0
0
1,515
0.780928
833213154f6c6064adf75a6066412d88861a6169
19,345
py
Python
stickers/__init__.py
secretisdead/stickers
5159c637de2c204fdbdc6aafbebca949c492c203
[ "MIT" ]
null
null
null
stickers/__init__.py
secretisdead/stickers
5159c637de2c204fdbdc6aafbebca949c492c203
[ "MIT" ]
null
null
null
stickers/__init__.py
secretisdead/stickers
5159c637de2c204fdbdc6aafbebca949c492c203
[ "MIT" ]
1
2021-09-05T06:18:01.000Z
2021-09-05T06:18:01.000Z
import uuid import time import re from ipaddress import ip_address from enum import Enum from datetime import datetime, timezone from sqlalchemy import Table, Column, PrimaryKeyConstraint, LargeBinary as sqla_binary, Float from sqlalchemy import Integer, String, MetaData, distinct from sqlalchemy.dialects.mysql import...
27.208158
93
0.730887
18,566
0.959731
0
0
0
0
0
0
1,321
0.068286
833402a878296c2dae40def1c9fff8397df42c38
3,035
py
Python
include/MPE3.py
jhgalino/MPv2
2f5e29d67bccc4538c5aaad2e69e817041414199
[ "MIT" ]
null
null
null
include/MPE3.py
jhgalino/MPv2
2f5e29d67bccc4538c5aaad2e69e817041414199
[ "MIT" ]
null
null
null
include/MPE3.py
jhgalino/MPv2
2f5e29d67bccc4538c5aaad2e69e817041414199
[ "MIT" ]
null
null
null
def differentiate(fxn: str) -> str: if fxn == "x": return "1" dividedFxn = getFirstLevel(fxn) coeffOrTrig: str = dividedFxn[0] exponent: str = dividedFxn[2] insideParentheses: str = dividedFxn[1] if coeffOrTrig.isalpha(): ans = computeTrig(coeffOrTrig, insideParentheses) ...
30.35
79
0.524547
0
0
0
0
0
0
0
0
348
0.114662
8334d38451b05f8a06133e98e01f204b3df51a55
3,072
py
Python
obsolete_object_wise_scoring_ben.py
agk2000/catalyst_project
6bae324f24d6d6382e84dcf1f2fedf0d896371e1
[ "MIT" ]
null
null
null
obsolete_object_wise_scoring_ben.py
agk2000/catalyst_project
6bae324f24d6d6382e84dcf1f2fedf0d896371e1
[ "MIT" ]
null
null
null
obsolete_object_wise_scoring_ben.py
agk2000/catalyst_project
6bae324f24d6d6382e84dcf1f2fedf0d896371e1
[ "MIT" ]
1
2021-09-11T14:55:26.000Z
2021-09-11T14:55:26.000Z
import sys from mrs_utils import misc_utils, vis_utils from mrs_utils import eval_utils import os from skimage import io import numpy as np import matplotlib.pyplot as plt # Creat object scorer class osc = eval_utils.ObjectScorer(min_th=0.5, link_r=20, eps=2) # Define the source data_dir = '/scratch/sr365/Catalyst_d...
37.925926
112
0.682617
0
0
0
0
0
0
0
0
764
0.248698
8335f3aa44031d6db4debfb0403cae80df9a5fe1
28,012
py
Python
compare.py
dreamersnme/future
87462ea1ef2dfd056e26ede85448af160df7d2ac
[ "MIT" ]
86
2019-03-24T16:53:12.000Z
2022-02-25T11:48:57.000Z
compare.py
dreamersnme/future
87462ea1ef2dfd056e26ede85448af160df7d2ac
[ "MIT" ]
1
2020-11-15T16:36:54.000Z
2020-11-15T16:36:54.000Z
compare.py
dreamersnme/future
87462ea1ef2dfd056e26ede85448af160df7d2ac
[ "MIT" ]
33
2019-03-22T00:26:20.000Z
2022-03-25T02:56:17.000Z
# --------------------------- IMPORT LIBRARIES ------------------------- import numpy as np import pandas as pd import matplotlib.pyplot as plt from datetime import datetime import data_preprocessing as dp from sklearn.preprocessing import MinMaxScaler import keras from keras.models import Sequential from keras.layers...
50.021429
205
0.63023
18,078
0.645366
0
0
4,380
0.156362
0
0
10,130
0.361631
83363c0ef913ccccece0efe1dc580e5eb1715e0d
239
py
Python
veinmind-backdoor/register.py
Jqqzzz/veinmind-tools
d7d35880efb4f5f5ad4c3f4685f5d0f4ec8e404f
[ "MIT" ]
364
2022-02-09T07:05:00.000Z
2022-03-31T15:12:52.000Z
veinmind-backdoor/register.py
lionkgxu/veinmind-tools
415aae9da5f0e31275ecdf61a2cef088c766d381
[ "MIT" ]
9
2022-03-03T01:02:15.000Z
2022-03-28T03:24:30.000Z
veinmind-backdoor/register.py
lionkgxu/veinmind-tools
415aae9da5f0e31275ecdf61a2cef088c766d381
[ "MIT" ]
62
2022-02-10T09:54:15.000Z
2022-03-31T09:43:00.000Z
class register: plugin_dict = {} plugin_name = [] @classmethod def register(cls, plugin_name): def wrapper(plugin): cls.plugin_dict[plugin_name] = plugin return plugin return wrapper
23.9
49
0.598326
239
1
0
0
176
0.736402
0
0
0
0
83383133f1e2636bee0ef87328b2ad1c26e323fd
1,288
py
Python
Desafio horario atual/__init__.py
pinheirogus/Curso-Python-Udemy
d6d52320426172e924081b9df619490baa8c6016
[ "MIT" ]
1
2021-09-01T01:58:13.000Z
2021-09-01T01:58:13.000Z
Desafio horario atual/__init__.py
pinheirogus/Curso-Python-Udemy
d6d52320426172e924081b9df619490baa8c6016
[ "MIT" ]
null
null
null
Desafio horario atual/__init__.py
pinheirogus/Curso-Python-Udemy
d6d52320426172e924081b9df619490baa8c6016
[ "MIT" ]
null
null
null
# num1 = input("Digite um número inteiro: ") # # # try: # # if num1.isnumeric() : # num1 = int(num1) # if (num1 % 2) == 0 : # print("Você digitou um número par.") # elif (num1 % 2) != 0: # print("Você digitou um número ímpar.") # else: # print("Voc...
30.666667
131
0.420807
0
0
0
0
0
0
0
0
1,000
0.759301
8338456e9d4d6099460e1bd2a49c5b5cf56d90a9
223
py
Python
05/b_average.py
koshin117/python-learning
68dd99e2f72fff7507a874c11511415fef3c9354
[ "MIT" ]
1
2021-03-29T08:30:19.000Z
2021-03-29T08:30:19.000Z
05/b_average.py
koshin117/python-learning
68dd99e2f72fff7507a874c11511415fef3c9354
[ "MIT" ]
null
null
null
05/b_average.py
koshin117/python-learning
68dd99e2f72fff7507a874c11511415fef3c9354
[ "MIT" ]
null
null
null
#B def average(As :list) -> float: return float(sum(As)/len(As)) def main(): # input As = list(map(int, input().split())) # compute # output print(average(As)) if __name__ == '__main__': main()
17.153846
40
0.565022
0
0
0
0
0
0
0
0
36
0.161435
8338723c7e22b26ca6c647d1d2092f73e2a758fb
3,224
py
Python
tests/test_js.py
tinachou28/dataIO-project
cc8592edf5a2f03ba3cebcbc83b13764729ad839
[ "MIT" ]
7
2016-04-23T03:33:42.000Z
2019-01-02T01:02:44.000Z
tests/test_js.py
tinachou28/dataIO-project
cc8592edf5a2f03ba3cebcbc83b13764729ad839
[ "MIT" ]
2
2018-05-22T07:08:13.000Z
2019-05-14T19:39:16.000Z
tests/test_js.py
tinachou28/dataIO-project
cc8592edf5a2f03ba3cebcbc83b13764729ad839
[ "MIT" ]
4
2017-08-19T16:05:34.000Z
2020-12-08T10:43:11.000Z
# !/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import unicode_literals import sys import warnings import pytest from pytest import approx import os from os.path import join from datetime import datetime from dataIO import py23 from dataIO import js from dataIO import textfile path_json = os.path.abspa...
26.644628
86
0.638337
0
0
0
0
0
0
0
0
755
0.231311
8338c6c065505edebe32c2e1b457eb24e32e6163
34,731
py
Python
remerkleable/complex.py
hwwhww/remerkleable
b52dce6b0beae7fffbb826fb9945dca9c40504fd
[ "MIT" ]
1
2020-07-22T14:51:20.000Z
2020-07-22T14:51:20.000Z
remerkleable/complex.py
hwwhww/remerkleable
b52dce6b0beae7fffbb826fb9945dca9c40504fd
[ "MIT" ]
null
null
null
remerkleable/complex.py
hwwhww/remerkleable
b52dce6b0beae7fffbb826fb9945dca9c40504fd
[ "MIT" ]
null
null
null
from typing import NamedTuple, cast, List as PyList, Dict, Any, BinaryIO, Optional, TypeVar, Type, Protocol, \ runtime_checkable from types import GeneratorType from textwrap import indent from collections.abc import Sequence as ColSequence from itertools import chain import io from remerkleable.core import View, B...
37.792165
119
0.582477
33,574
0.966687
0
0
13,837
0.398405
0
0
3,390
0.097607
83399c09776772609094ffc2ac08102d789dfc9b
21,383
py
Python
cave/com.raytheon.viz.gfe/python/autotest/RoutineLevel4_1_TestScript.py
srcarter3/awips2
37f31f5e88516b9fd576eaa49d43bfb762e1d174
[ "Apache-2.0" ]
null
null
null
cave/com.raytheon.viz.gfe/python/autotest/RoutineLevel4_1_TestScript.py
srcarter3/awips2
37f31f5e88516b9fd576eaa49d43bfb762e1d174
[ "Apache-2.0" ]
null
null
null
cave/com.raytheon.viz.gfe/python/autotest/RoutineLevel4_1_TestScript.py
srcarter3/awips2
37f31f5e88516b9fd576eaa49d43bfb762e1d174
[ "Apache-2.0" ]
1
2021-10-30T00:03:05.000Z
2021-10-30T00:03:05.000Z
# # # This software was developed and / or modified by Raytheon Company, # pursuant to Contract DG133W-05-CQ-1067 with the US Government. # # U.S. EXPORT CONTROLLED TECHNICAL DATA # This software product contains export-restricted data whose # export/transfer/disclosure is restricted by U.S. law. Dissemination # to ...
41.520388
189
0.533087
0
0
0
0
0
0
0
0
14,055
0.657298
8339dd90862b3868393e86e2c87682f87414e27c
12,569
py
Python
AutoPano/Phase2/Code/Test_files/TrainUnsup.py
akathpal/ComputerVision-CMSC733
f5fa21a0ada8ab8ea08a6c558f6df9676570a2df
[ "MIT" ]
1
2019-09-26T02:06:17.000Z
2019-09-26T02:06:17.000Z
AutoPano/Phase2/Code/Test_files/TrainUnsup.py
akathpal/UMD-CMSC733-ComputerVision
f5fa21a0ada8ab8ea08a6c558f6df9676570a2df
[ "MIT" ]
null
null
null
AutoPano/Phase2/Code/Test_files/TrainUnsup.py
akathpal/UMD-CMSC733-ComputerVision
f5fa21a0ada8ab8ea08a6c558f6df9676570a2df
[ "MIT" ]
1
2022-03-30T05:03:09.000Z
2022-03-30T05:03:09.000Z
#!/usr/bin/env python """ CMSC733 Spring 2019: Classical and Deep Learning Approaches for Geometric Computer Vision Project 1: MyAutoPano: Phase 2 Starter Code Author(s): Nitin J. Sanket ([email protected]) PhD Candidate in Computer Science, University of Maryland, College Park Abhishek Kathpal University o...
36.32659
151
0.693691
0
0
0
0
0
0
0
0
4,548
0.361843
833a1a0c360f3cdcf8d7b6c1f70840aed091b251
699
py
Python
Lista 2/Exercicio 14.py
GiovannaPazello/Projetos-em-Python
3cf7edbdf2a2350605a775389f7fe2cc7fe8032e
[ "MIT" ]
null
null
null
Lista 2/Exercicio 14.py
GiovannaPazello/Projetos-em-Python
3cf7edbdf2a2350605a775389f7fe2cc7fe8032e
[ "MIT" ]
null
null
null
Lista 2/Exercicio 14.py
GiovannaPazello/Projetos-em-Python
3cf7edbdf2a2350605a775389f7fe2cc7fe8032e
[ "MIT" ]
null
null
null
'''Faça um programa que gere números aleatórios entre 0 e 50 até o número 32 ser gerado. Quando isso ocorrer, informar: a. A soma de todos os números gerados b. A quantidade de números gerados que é impar c. O menor número gerado''' import random x = random.randint(0,50) cont = 32 somaNumeros = 0 qqntImpares = 0 meno...
23.3
80
0.690987
0
0
0
0
0
0
0
0
340
0.475524
833a4ecb5ab38b8de2e042cd613f15a274dee6fa
1,556
py
Python
mavsim_python/chap4/wind_simulation.py
eyler94/mavsim_template_files
181a76f15dc454f5a6f58f4596d9039cbe388cd9
[ "MIT" ]
null
null
null
mavsim_python/chap4/wind_simulation.py
eyler94/mavsim_template_files
181a76f15dc454f5a6f58f4596d9039cbe388cd9
[ "MIT" ]
null
null
null
mavsim_python/chap4/wind_simulation.py
eyler94/mavsim_template_files
181a76f15dc454f5a6f58f4596d9039cbe388cd9
[ "MIT" ]
1
2021-11-15T09:53:42.000Z
2021-11-15T09:53:42.000Z
""" Class to determine wind velocity at any given moment, calculates a steady wind speed and uses a stochastic process to represent wind gusts. (Follows section 4.4 in uav book) """ import sys sys.path.append('..') import numpy as np class wind_simulation: def __init__(self, Ts): # steady state wind define...
38.9
105
0.628535
1,319
0.847686
0
0
0
0
0
0
910
0.584833
833a7aa9cb8a7c6a6aacafb0a6fb6428d1abdec9
2,779
py
Python
dx/geometric_brownian_motion.py
yehuihe/dx
6a8c6a1605fd4314c481561ecceaaddf4528c43d
[ "Apache-2.0" ]
null
null
null
dx/geometric_brownian_motion.py
yehuihe/dx
6a8c6a1605fd4314c481561ecceaaddf4528c43d
[ "Apache-2.0" ]
null
null
null
dx/geometric_brownian_motion.py
yehuihe/dx
6a8c6a1605fd4314c481561ecceaaddf4528c43d
[ "Apache-2.0" ]
null
null
null
"""Simulation Class -- Geometric Brownian Motion """ # Author: Yehui He <[email protected]> # License: Apache-2.0 License import numpy as np from .sn_random_numbers import sn_random_numbers from .simulation_class import SimulationClass class GeometricBrownianMotion(SimulationClass): """Class to generate sim...
35.628205
82
0.594458
2,534
0.911839
0
0
0
0
0
0
953
0.342929
833ab5ac04df4cc2bfa2f945d2155461c52e1071
1,039
py
Python
yibai-sms-python-sdk-1.0.0/yibai/api/Yibai.py
100sms/yibai-python-sdk
9907d0fbf147b5b3ce10e4afed2ac7f19d52af3f
[ "MIT" ]
null
null
null
yibai-sms-python-sdk-1.0.0/yibai/api/Yibai.py
100sms/yibai-python-sdk
9907d0fbf147b5b3ce10e4afed2ac7f19d52af3f
[ "MIT" ]
null
null
null
yibai-sms-python-sdk-1.0.0/yibai/api/Yibai.py
100sms/yibai-python-sdk
9907d0fbf147b5b3ce10e4afed2ac7f19d52af3f
[ "MIT" ]
1
2019-11-26T11:49:54.000Z
2019-11-26T11:49:54.000Z
# encoding=utf8 import HttpUtils class YibaiApiError(Exception): def __init__(self, code, message): super(YibaiApiError, self).__init__(message) self.code = code class YibaiClient(object): def __init__(self, server_url, apikey): self.serverUrl = server_url self...
28.861111
72
0.624639
990
0.952839
0
0
0
0
0
0
133
0.128008
833b47331d2a097b8a77501f425210bc65eeddac
1,194
py
Python
setup.py
nattster/lettuce_webdriver
26b910ceef67d5b81030640ebbab0504bd59d643
[ "MIT" ]
24
2015-02-04T14:49:51.000Z
2021-03-23T17:17:09.000Z
setup.py
nattster/lettuce_webdriver
26b910ceef67d5b81030640ebbab0504bd59d643
[ "MIT" ]
4
2015-07-13T22:41:22.000Z
2016-10-03T20:17:22.000Z
setup.py
nattster/lettuce_webdriver
26b910ceef67d5b81030640ebbab0504bd59d643
[ "MIT" ]
12
2015-01-24T02:05:39.000Z
2016-12-30T07:30:28.000Z
__version__ = '0.3.5' import os from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) README = open(os.path.join(here, 'README.rst')).read() CHANGES = open(os.path.join(here, 'CHANGES.txt')).read() setup(name='lettuce_webdriver', version=__version__, description='...
32.27027
61
0.649079
0
0
0
0
0
0
0
0
535
0.448074
833c0720b2fa02e3aacf53733cbb5dfadce129a9
326
py
Python
project4/network/migrations/0005_remove_post_likers.py
mjs375/cs50_Network
31a2399f4429931b15721861a2940b57811ae844
[ "MIT" ]
null
null
null
project4/network/migrations/0005_remove_post_likers.py
mjs375/cs50_Network
31a2399f4429931b15721861a2940b57811ae844
[ "MIT" ]
null
null
null
project4/network/migrations/0005_remove_post_likers.py
mjs375/cs50_Network
31a2399f4429931b15721861a2940b57811ae844
[ "MIT" ]
null
null
null
# Generated by Django 3.1.3 on 2020-11-15 16:01 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('network', '0004_auto_20201111_2224'), ] operations = [ migrations.RemoveField( model_name='post', name='likers', ), ...
18.111111
47
0.588957
241
0.739264
0
0
0
0
0
0
95
0.291411
833ff2663454d251a149619c7bf5edfd07d118d9
942
py
Python
Commands/interested.py
hanss314/TheBrainOfTWOWCentral
a97d40ebb73904f236d7b3db6ec9f8c3fe999f4e
[ "MIT" ]
null
null
null
Commands/interested.py
hanss314/TheBrainOfTWOWCentral
a97d40ebb73904f236d7b3db6ec9f8c3fe999f4e
[ "MIT" ]
null
null
null
Commands/interested.py
hanss314/TheBrainOfTWOWCentral
a97d40ebb73904f236d7b3db6ec9f8c3fe999f4e
[ "MIT" ]
null
null
null
from Config._const import PREFIX HELP = { "COOLDOWN": 3, "MAIN": "Toggles whether or not you have the `Interested in the Bot` role", "FORMAT": "", "CHANNEL": 0, "USAGE": f"""Using `{PREFIX}interested` will add the `Interested in the Bot` to you, or remove it if you already have it.""".replace("\n", "").replace(...
34.888889
114
0.686837
0
0
0
0
0
0
538
0.571125
501
0.531847
83404f40a03d9276b97c34aee6e5fb4ad81499f8
101
py
Python
gen_newsletter.py
pnijjar/google-calendar-rss
6f4e6b9acbeffcf74112e6b33d99eaf1ea912be4
[ "Apache-2.0" ]
1
2021-06-29T04:10:48.000Z
2021-06-29T04:10:48.000Z
gen_newsletter.py
pnijjar/google-calendar-rss
6f4e6b9acbeffcf74112e6b33d99eaf1ea912be4
[ "Apache-2.0" ]
1
2021-06-29T05:03:36.000Z
2021-06-29T05:03:36.000Z
gen_newsletter.py
pnijjar/google-calendar-rss
6f4e6b9acbeffcf74112e6b33d99eaf1ea912be4
[ "Apache-2.0" ]
2
2019-08-07T15:33:25.000Z
2021-06-29T04:37:21.000Z
#!/usr/bin/env python3 from gcal_helpers import helpers helpers.write_transformation("newsletter")
16.833333
42
0.811881
0
0
0
0
0
0
0
0
34
0.336634
8340e8e017d3e1c1641789fc6d116198178f84f1
2,550
py
Python
qiskit/pulse/instructions/delay.py
gadial/qiskit-terra
0fc83f44a6e80969875c738b2cee7bc33223e45f
[ "Apache-2.0" ]
1
2021-10-05T11:56:53.000Z
2021-10-05T11:56:53.000Z
qiskit/pulse/instructions/delay.py
gadial/qiskit-terra
0fc83f44a6e80969875c738b2cee7bc33223e45f
[ "Apache-2.0" ]
24
2021-01-27T08:20:27.000Z
2021-07-06T09:42:28.000Z
qiskit/pulse/instructions/delay.py
gadial/qiskit-terra
0fc83f44a6e80969875c738b2cee7bc33223e45f
[ "Apache-2.0" ]
4
2021-10-05T12:07:27.000Z
2022-01-28T18:37:28.000Z
# This code is part of Qiskit. # # (C) Copyright IBM 2020. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivative wo...
35.915493
99
0.671373
1,789
0.701569
0
0
486
0.190588
0
0
1,642
0.643922
83419d745e57d76be4f84f2cf4a69352d320b89f
738
py
Python
users/urls.py
mahmutcankurt/DjangoBlogSite
8597bbe7ed066b50e02367a98f0062deb37d251d
[ "Apache-2.0" ]
3
2021-01-24T13:14:33.000Z
2022-01-25T22:17:59.000Z
users/urls.py
mahmutcankurt1/staj
8597bbe7ed066b50e02367a98f0062deb37d251d
[ "Apache-2.0" ]
null
null
null
users/urls.py
mahmutcankurt1/staj
8597bbe7ed066b50e02367a98f0062deb37d251d
[ "Apache-2.0" ]
null
null
null
from django.conf.urls import url from .views import signupView, activate, account_activation_sent, user_login, user_logout, user_edit_profile, user_change_password urlpatterns = [ url(r'^register/$', signupView, name='register'), url(r'^account_activation_sent/$', account_activation_sent, name='account_activat...
43.411765
130
0.703252
0
0
0
0
0
0
0
0
305
0.413279
8341a4470393cc4df708339799fbfe8844ec3b50
739
py
Python
mosasaurus/chromaticlc/mptest.py
zkbt/mosasaurus
8ddeaa359adda36e4c48c3c6c476c34fdc09d952
[ "MIT" ]
2
2018-08-03T16:22:27.000Z
2018-09-03T22:46:31.000Z
mosasaurus/chromaticlc/mptest.py
zkbt/mosasaurus
8ddeaa359adda36e4c48c3c6c476c34fdc09d952
[ "MIT" ]
15
2016-11-23T19:59:33.000Z
2019-07-10T13:40:40.000Z
mosasaurus/chromaticlc/mptest.py
zkbt/mosasaurus
8ddeaa359adda36e4c48c3c6c476c34fdc09d952
[ "MIT" ]
1
2016-12-02T20:53:08.000Z
2016-12-02T20:53:08.000Z
import TransmissionSpectrum import multiprocessing obs = 'wasp94_140805.obs' ncpu = multiprocessing.cpu_count() def fastfit(i): t = TransmissionSpectrum.TransmissionSpectrum(obs) t.speak('starting fit for bin {0}'.format(i)) t.bins[i].fit(plot=False, slow=False, interactive=False, remake=True) def slowfit...
33.590909
88
0.741543
0
0
0
0
0
0
0
0
159
0.215156
8342f7c7f2effcfa796c1cab9266d9d3d82726f5
1,867
py
Python
semeval_filter.py
krzysztoffiok/twitter_sentiment_to_usnavy
673e01336242348d9aa79e6e9b3385222bcd62d7
[ "MIT" ]
2
2021-02-19T11:17:03.000Z
2021-11-04T06:30:48.000Z
semeval_filter.py
krzysztoffiok/twitter_sentiment_to_usnavy
673e01336242348d9aa79e6e9b3385222bcd62d7
[ "MIT" ]
null
null
null
semeval_filter.py
krzysztoffiok/twitter_sentiment_to_usnavy
673e01336242348d9aa79e6e9b3385222bcd62d7
[ "MIT" ]
1
2020-05-03T09:10:21.000Z
2020-05-03T09:10:21.000Z
import pandas as pd import numpy as np import datatable as dt import re """ Basic pre-processing of Twitter text from SemEval2017 data set. """ # replace repeating characters so that only 2 repeats remain def repoo(x): repeat_regexp = re.compile(r'(\S+)(\1{2,})') repl = r'\2' return repeat_regexp.sub(repl...
34.574074
119
0.591859
0
0
0
0
0
0
0
0
1,013
0.542582
8343385a22dd30ea40482bf144f766b74f99b606
6,969
py
Python
tutorials/rhythm/plot_SlidingWindowMatching.py
bcmartinb/neurodsp
36d8506f3bd916f83b093a62843ffb77647a6e1e
[ "Apache-2.0" ]
154
2019-01-30T04:10:48.000Z
2022-03-30T12:55:00.000Z
tutorials/rhythm/plot_SlidingWindowMatching.py
bcmartinb/neurodsp
36d8506f3bd916f83b093a62843ffb77647a6e1e
[ "Apache-2.0" ]
159
2019-01-28T22:49:36.000Z
2022-03-17T16:42:48.000Z
tutorials/rhythm/plot_SlidingWindowMatching.py
bcmartinb/neurodsp
36d8506f3bd916f83b093a62843ffb77647a6e1e
[ "Apache-2.0" ]
42
2019-05-31T21:06:44.000Z
2022-03-25T23:17:57.000Z
""" Sliding Window Matching ======================= Find recurring patterns in neural signals using Sliding Window Matching. This tutorial primarily covers the :func:`~.sliding_window_matching` function. """ ################################################################################################### # Overvie...
39.822857
99
0.578275
0
0
0
0
0
0
0
0
6,126
0.879036
8343d14fcff75c3593b87cced0b3013a8661f9e3
719
py
Python
forge/auth/backends.py
django-forge/forge
6223d2a4e7a570dfba87c3ae2e14927010fe7fd9
[ "MIT" ]
3
2022-03-30T22:14:35.000Z
2022-03-31T22:04:42.000Z
forge/auth/backends.py
django-forge/forge
6223d2a4e7a570dfba87c3ae2e14927010fe7fd9
[ "MIT" ]
null
null
null
forge/auth/backends.py
django-forge/forge
6223d2a4e7a570dfba87c3ae2e14927010fe7fd9
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model from django.contrib.auth.backends import ModelBackend UserModel = get_user_model() class EmailModelBackend(ModelBackend): def authenticate(self, request, username=None, password=None, **kwargs): if username is None: email = kwargs.get(UserModel.E...
28.76
82
0.66064
585
0.81363
0
0
0
0
0
0
0
0
83441a6b6c5d79e325330fcd2de68468db5ae8e3
8,923
py
Python
Macro/WorkFeature/Utils/WF_curve.py
myao9494/FreeCAD_Factory
6bf3209f2295d306d4c2c8c2ded25839c837e869
[ "MIT" ]
null
null
null
Macro/WorkFeature/Utils/WF_curve.py
myao9494/FreeCAD_Factory
6bf3209f2295d306d4c2c8c2ded25839c837e869
[ "MIT" ]
null
null
null
Macro/WorkFeature/Utils/WF_curve.py
myao9494/FreeCAD_Factory
6bf3209f2295d306d4c2c8c2ded25839c837e869
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Mar 1 06:59:10 2016 @author: laurent """ from __future__ import division from math import factorial # Pascal's triangle p_t = [ [1], # n=0 [1,1], # n=1 [1,2,1], # n=2 [1,3,3,1], # n=3 [1,4,6,...
27.625387
87
0.420262
350
0.039224
0
0
0
0
0
0
4,557
0.510703
834811bba2b38dd1f90f60e0f432be19f153a845
1,428
py
Python
LeetCode/z_arrange.py
Max-PJB/python-learning2
e8b05bef1574ee9abf8c90497e94ef20a7f4e3bd
[ "MIT" ]
null
null
null
LeetCode/z_arrange.py
Max-PJB/python-learning2
e8b05bef1574ee9abf8c90497e94ef20a7f4e3bd
[ "MIT" ]
null
null
null
LeetCode/z_arrange.py
Max-PJB/python-learning2
e8b05bef1574ee9abf8c90497e94ef20a7f4e3bd
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ ------------------------------------------------- @ Author : pengj @ date : 2018/11/1 19:03 @ IDE : PyCharm @ GitHub : https://github.com/JackyPJB @ Contact : [email protected] ----------------...
20.112676
71
0.497199
0
0
0
0
0
0
0
0
1,080
0.680958
8348305c9172017dde4aba4393d6db7827e9ab1f
970
py
Python
old/INSTADOWNLOAD.py
Nibba2018/INSTADOWNLOAD
4f4b831df14d2cfdcb2cf91e3710576432bc4845
[ "MIT" ]
1
2019-08-12T06:24:17.000Z
2019-08-12T06:24:17.000Z
old/INSTADOWNLOAD.py
Nibba2018/INSTADOWNLOAD
4f4b831df14d2cfdcb2cf91e3710576432bc4845
[ "MIT" ]
2
2019-08-12T05:29:57.000Z
2019-08-12T10:18:24.000Z
old/INSTADOWNLOAD.py
tre3x/INSTADOWNLOAD
c8bd6f12a0abfcbac4fdeeb2994ba75067ca592d
[ "MIT" ]
1
2019-08-12T10:02:14.000Z
2019-08-12T10:02:14.000Z
import sys from PyQt5.QtCore import pyqtSlot from PyQt5.QtWidgets import QApplication,QDialog from PyQt5.uic import loadUi import requests import urllib.request from selenium import webdriver class INSTADOWNLOAD(QDialog): def __init__(self): super(INSTADOWNLOAD,self).__init__() loadUi(...
30.3125
68
0.694845
661
0.681443
0
0
399
0.41134
0
0
85
0.087629
83499ec97a8ebaba9f0df370c50f48f1b192aa91
719
py
Python
ved/migrations/0010_auto_20180303_1353.py
mjovanc/tidlundsved
da55a07d02f04bc636299fe4d236aa19188a359b
[ "MIT" ]
1
2019-04-19T20:39:39.000Z
2019-04-19T20:39:39.000Z
ved/migrations/0010_auto_20180303_1353.py
mjovanc/tidlundsved
da55a07d02f04bc636299fe4d236aa19188a359b
[ "MIT" ]
3
2020-01-15T22:21:14.000Z
2020-01-15T22:21:15.000Z
ved/migrations/0010_auto_20180303_1353.py
mjovanc/tidlundsved
da55a07d02f04bc636299fe4d236aa19188a359b
[ "MIT" ]
null
null
null
# Generated by Django 2.0.2 on 2018-03-03 13:53 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('ved', '0009_auto_20180302_1839'), ] operations = [ migrations.AlterField( model_name='order', name='firewood_choice'...
29.958333
201
0.606398
637
0.872603
0
0
0
0
0
0
236
0.323288
834ad9cbfb170166d5394332db47b29bcb81eb73
163
py
Python
examples/plot_kde_2d.py
awesome-archive/arviz
e11432bc065d0b2280f27c901beb4ac9fc5c5dba
[ "Apache-2.0" ]
2
2018-12-01T03:41:54.000Z
2018-12-01T22:04:59.000Z
examples/plot_kde_2d.py
awesome-archive/arviz
e11432bc065d0b2280f27c901beb4ac9fc5c5dba
[ "Apache-2.0" ]
null
null
null
examples/plot_kde_2d.py
awesome-archive/arviz
e11432bc065d0b2280f27c901beb4ac9fc5c5dba
[ "Apache-2.0" ]
1
2020-10-16T12:57:48.000Z
2020-10-16T12:57:48.000Z
""" 2d KDE ====== _thumb: .1, .8 """ import arviz as az import numpy as np az.style.use('arviz-darkgrid') az.plot_kde(np.random.rand(100), np.random.rand(100))
12.538462
53
0.650307
0
0
0
0
0
0
0
0
53
0.325153
834c8fddbb55c2d6f805fb0cea2ee12883df1ec1
331
py
Python
debug/read_depth_from_exr_file.py
ccj5351/hmr_rgbd
d1dcf81d72c11e1f502f2c494cd86425f384d9cc
[ "MIT" ]
null
null
null
debug/read_depth_from_exr_file.py
ccj5351/hmr_rgbd
d1dcf81d72c11e1f502f2c494cd86425f384d9cc
[ "MIT" ]
1
2020-12-09T07:29:00.000Z
2020-12-09T07:29:00.000Z
debug/read_depth_from_exr_file.py
ccj5351/hmr_rgbd
d1dcf81d72c11e1f502f2c494cd86425f384d9cc
[ "MIT" ]
null
null
null
# !/usr/bin/env python3 # -*-coding:utf-8-*- # @file: read_depth_from_exr_file.py # @brief: # @author: Changjiang Cai, [email protected], [email protected] # @version: 0.0.1 # @creation date: 10-06-2019 # @last modified: Mon 10 Jun 2019 06:18:44 PM EDT import cv2 dep = cv2.imread("0.exr",-1) # "-1" means any depth o...
27.583333
65
0.682779
0
0
0
0
0
0
0
0
288
0.870091
834cfa268aa66defcd3a6263fa4f402f1287f7c1
2,732
py
Python
azplugins/test-py/test_analyze_group_velocity.py
mphoward/azplugins
a4e3f92090dea78645b4e84cda96709cc9372ffa
[ "BSD-3-Clause" ]
10
2019-02-27T16:13:33.000Z
2020-02-21T01:07:08.000Z
azplugins/test-py/test_analyze_group_velocity.py
mphoward/azplugins
a4e3f92090dea78645b4e84cda96709cc9372ffa
[ "BSD-3-Clause" ]
18
2019-02-26T17:22:15.000Z
2020-04-22T20:20:43.000Z
azplugins/test-py/test_analyze_group_velocity.py
mphoward/azplugins
a4e3f92090dea78645b4e84cda96709cc9372ffa
[ "BSD-3-Clause" ]
3
2019-06-18T18:15:42.000Z
2020-02-21T01:07:16.000Z
# Copyright (c) 2018-2020, Michael P. Howard # Copyright (c) 2021-2022, Auburn University # This file is part of the azplugins project, released under the Modified BSD License. import hoomd from hoomd import md hoomd.context.initialize() try: from hoomd import azplugins except ImportError: import azplugins imp...
39.028571
112
0.63287
2,306
0.84407
0
0
0
0
0
0
400
0.146413
83516db70951f52393c19b6cbc942b802e4f1c1e
1,310
py
Python
tests/test_settings.py
jpadilla/apistar
3e0faafd0d6a7c59e2b7a1e3017e15d005c5cc3a
[ "BSD-3-Clause" ]
1
2021-07-07T13:14:20.000Z
2021-07-07T13:14:20.000Z
tests/test_settings.py
jpadilla/apistar
3e0faafd0d6a7c59e2b7a1e3017e15d005c5cc3a
[ "BSD-3-Clause" ]
null
null
null
tests/test_settings.py
jpadilla/apistar
3e0faafd0d6a7c59e2b7a1e3017e15d005c5cc3a
[ "BSD-3-Clause" ]
null
null
null
from apistar import App, Route, TestClient from apistar.settings import Setting, Settings def get_settings(settings: Settings): return settings def get_setting(ABC: Setting): return {'ABC': ABC} routes = [ Route('/settings/', 'GET', get_settings), Route('/setting/', 'GET', get_setting), ] setting...
21.129032
53
0.61145
0
0
0
0
0
0
0
0
176
0.134351
8351e3e4666f0e2916bbcd985c19442107e57895
1,825
py
Python
api/views/reminder_views.py
OlegKlimenko/Plamber
a3536b864d05abb6b6bba0f2971ab4b7b9c60db6
[ "Apache-2.0" ]
13
2017-03-30T12:19:35.000Z
2019-12-09T03:15:22.000Z
api/views/reminder_views.py
OlegKlimenko/Plamber
a3536b864d05abb6b6bba0f2971ab4b7b9c60db6
[ "Apache-2.0" ]
213
2017-02-18T11:48:40.000Z
2022-03-11T23:20:36.000Z
api/views/reminder_views.py
OlegKlimenko/Plamber
a3536b864d05abb6b6bba0f2971ab4b7b9c60db6
[ "Apache-2.0" ]
3
2018-06-17T11:54:49.000Z
2019-10-22T16:19:28.000Z
# -*- coding: utf-8 -*- from django.shortcuts import get_object_or_404 from rest_framework import status from rest_framework.decorators import api_view from rest_framework.response import Response from ..serializers.request_serializers import GetReminderRequest, UpdateReminderRequest from ..utils import invalid_data...
35.096154
120
0.61863
0
0
0
0
1,191
0.652603
0
0
473
0.259178
8352e7131c0b9ae8dac198efa815d926f7e58c34
2,815
py
Python
anaf/documents/migrations/0001_initial.py
tovmeod/anaf
80e4a00532ce6f4ce76c5ffc858ff90c759a9879
[ "BSD-3-Clause" ]
2
2016-03-15T13:17:26.000Z
2017-03-22T15:39:01.000Z
anaf/documents/migrations/0001_initial.py
tovmeod/anaf
80e4a00532ce6f4ce76c5ffc858ff90c759a9879
[ "BSD-3-Clause" ]
4
2021-03-19T21:42:58.000Z
2022-03-11T23:13:07.000Z
anaf/documents/migrations/0001_initial.py
tovmeod/anaf
80e4a00532ce6f4ce76c5ffc858ff90c759a9879
[ "BSD-3-Clause" ]
4
2016-08-31T16:55:41.000Z
2020-04-22T18:48:54.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import anaf.documents.models import anaf.documents.files class Migration(migrations.Migration): dependencies = [ ('core', '0001_initial'), ] operations = [ migrations.CreateModel( ...
36.558442
143
0.54032
2,649
0.94103
0
0
0
0
0
0
480
0.170515
83538fea40955920ad2d4b405a77ec50fa91b2b3
8,188
py
Python
mbpo/models/utils.py
anyboby/ConstrainedMBPO
036f4ffefc464e676a287c35c92cc5c0b8925fcf
[ "MIT" ]
5
2020-02-12T17:09:09.000Z
2021-09-29T16:06:40.000Z
mbpo/models/utils.py
anyboby/ConstrainedMBPO
036f4ffefc464e676a287c35c92cc5c0b8925fcf
[ "MIT" ]
10
2020-08-31T02:50:02.000Z
2022-02-09T23:36:43.000Z
mbpo/models/utils.py
anyboby/ConstrainedMBPO
036f4ffefc464e676a287c35c92cc5c0b8925fcf
[ "MIT" ]
2
2022-03-15T01:45:26.000Z
2022-03-15T06:46:47.000Z
from __future__ import division from __future__ import print_function from __future__ import absolute_import import tensorflow as tf import numpy as np EPS = 1e-10 def get_required_argument(dotmap, key, message, default=None): val = dotmap.get(key, default) if val is default: raise ValueError(message)...
34.116667
105
0.624695
5,366
0.65439
0
0
0
0
0
0
3,508
0.427805
8353ff3c9e015b9857f33992c111e498b4c778a1
6,391
py
Python
ext/generate-models.py
gerhardtdatsomor/pytest-nunit
8e27275337af3216a3bddc16e793ee9637902361
[ "MIT" ]
null
null
null
ext/generate-models.py
gerhardtdatsomor/pytest-nunit
8e27275337af3216a3bddc16e793ee9637902361
[ "MIT" ]
null
null
null
ext/generate-models.py
gerhardtdatsomor/pytest-nunit
8e27275337af3216a3bddc16e793ee9637902361
[ "MIT" ]
null
null
null
""" A script for generating attrs-models from an XSD. Built especially for this model. But feel-free to reuse elsewhere. Licensed under MIT. Written by Anthony Shaw. """ import logging import xmlschema import xmlschema.qnames try: import black import click except ImportError: print("Install black and c...
34.923497
124
0.55985
0
0
0
0
3,175
0.496792
0
0
1,627
0.254577
8354f3e967b4c8a5432e55702c43dd8c0b61efde
415
py
Python
OrderService/Order/migrations/0003_order_payment_details.py
surajkendhey/Kart
458bee955d1569372fc8b3facb2602063a6ec6f5
[ "Apache-2.0" ]
null
null
null
OrderService/Order/migrations/0003_order_payment_details.py
surajkendhey/Kart
458bee955d1569372fc8b3facb2602063a6ec6f5
[ "Apache-2.0" ]
null
null
null
OrderService/Order/migrations/0003_order_payment_details.py
surajkendhey/Kart
458bee955d1569372fc8b3facb2602063a6ec6f5
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.1.2 on 2020-10-18 09:41 from django.db import migrations import jsonfield.fields class Migration(migrations.Migration): dependencies = [ ('Order', '0002_auto_20201018_1503'), ] operations = [ migrations.AddField( model_name='order', name='...
20.75
59
0.621687
306
0.737349
0
0
0
0
0
0
103
0.248193
8355344375b34bffec11d50ae6b74005d1c2e2fb
1,166
py
Python
src/deepproblog/examples/Forth/Sort/sort.py
vossenwout/gtadeepproblog
65509b740518af422b96e84ef10716e0ac246e75
[ "Apache-2.0" ]
54
2021-06-23T08:03:23.000Z
2022-03-10T01:02:43.000Z
src/deepproblog/examples/Forth/Sort/sort.py
Damzwan/deepproblog
56bcf5208e79c17510b5d288068fabc6cd64f3cf
[ "Apache-2.0" ]
2
2021-06-30T23:48:25.000Z
2022-03-18T10:45:05.000Z
src/deepproblog/examples/Forth/Sort/sort.py
Damzwan/deepproblog
56bcf5208e79c17510b5d288068fabc6cd64f3cf
[ "Apache-2.0" ]
12
2021-06-30T10:47:52.000Z
2022-03-09T23:51:48.000Z
import torch from deepproblog.dataset import DataLoader, QueryDataset from deepproblog.engines import ExactEngine from deepproblog.evaluate import get_confusion_matrix from deepproblog.examples.Forth import EncodeModule from deepproblog.model import Model from deepproblog.network import Network from deepproblog.train ...
29.897436
82
0.752144
0
0
0
0
0
0
0
0
144
0.123499
835b2ca04f52a867e7d976e3a7d13af46d16320d
624
py
Python
adapters/base_adapter.py
juangallostra/moonboard
d4a35857d480ee4bed06faee44e0347e1070b6b8
[ "MIT" ]
null
null
null
adapters/base_adapter.py
juangallostra/moonboard
d4a35857d480ee4bed06faee44e0347e1070b6b8
[ "MIT" ]
null
null
null
adapters/base_adapter.py
juangallostra/moonboard
d4a35857d480ee4bed06faee44e0347e1070b6b8
[ "MIT" ]
null
null
null
from models.problem import Problem class BaseProblemAdapter(): """ Map problem data to a Python object that the renderer can use. """ def map_problem(self, problem_data) -> Problem: """ Given the raw data of a problem, convert it to a Problem object and return it. :pa...
31.2
86
0.658654
586
0.939103
0
0
0
0
0
0
458
0.733974
835d3a5a9f1f473d9972b7066265ae37781c89a5
7,439
py
Python
meteo_inversion_matrix.py
yandex-research/classification-measures
210fbc107d5f41e64cc4e6990f0b970973d25995
[ "Apache-2.0" ]
6
2021-12-07T03:15:03.000Z
2022-02-10T20:39:44.000Z
meteo_inversion_matrix.py
yandex-research/classification-measures
210fbc107d5f41e64cc4e6990f0b970973d25995
[ "Apache-2.0" ]
null
null
null
meteo_inversion_matrix.py
yandex-research/classification-measures
210fbc107d5f41e64cc4e6990f0b970973d25995
[ "Apache-2.0" ]
null
null
null
from glob import glob from collections import defaultdict, Counter import sys import math import numpy as np import random random.seed(42) EPS = 1e-5 if len(sys.argv)<2 or sys.argv[1] not in ('10m', '2h'): use_fcs = list(range(12)) elif sys.argv[1] == '10m': use_fcs = (0,) else: use_fcs = (11,) def alt...
29.058594
104
0.491329
0
0
0
0
0
0
0
0
132
0.017744
835de6ecaa9ce8488f1f8c676c899a539e8ca67c
1,217
py
Python
terrain_following/src/image_processor.py
ZhiangChen/ros_vision
4c8e6580f6b3ab05d8d782a5a0abdbdf44b0c2de
[ "MIT" ]
null
null
null
terrain_following/src/image_processor.py
ZhiangChen/ros_vision
4c8e6580f6b3ab05d8d782a5a0abdbdf44b0c2de
[ "MIT" ]
1
2019-12-07T00:48:36.000Z
2019-12-07T00:48:36.000Z
terrain_following/src/image_processor.py
ZhiangChen/ros_vision
4c8e6580f6b3ab05d8d782a5a0abdbdf44b0c2de
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Zhiang Chen Nov 2019 """ import rospy from sensor_msgs.msg import Image from sensor_msgs.msg import Imu from cv_bridge import CvBridge, CvBridgeError import numpy as np import cv2 class Image_Processor(object): def __init__(self): rospy.Subscriber("/r200/depth/image_raw", Image, ...
28.97619
78
0.659819
732
0.601479
0
0
0
0
0
0
216
0.177486
835e51b25ab23118471502fce1356174cfc1f9cc
137
py
Python
lab_4/start.py
AnastasiaZheleznyakova/2020-2-level-labs
926c7abde05f545f27d09a4d96b8014d5a668789
[ "MIT" ]
null
null
null
lab_4/start.py
AnastasiaZheleznyakova/2020-2-level-labs
926c7abde05f545f27d09a4d96b8014d5a668789
[ "MIT" ]
null
null
null
lab_4/start.py
AnastasiaZheleznyakova/2020-2-level-labs
926c7abde05f545f27d09a4d96b8014d5a668789
[ "MIT" ]
null
null
null
if __name__ == '__main__': pass RESULT = 1 # DO NOT REMOVE NEXT LINE - KEEP IT INTENTIONALLY LAST assert RESULT == 1, ''
22.833333
58
0.613139
0
0
0
0
0
0
0
0
66
0.481752
835f4e7f9614427e618dd0d65cdbcc8a97ccc269
157
py
Python
testtarget.py
epopisces/template_api_wrapper
e581eb31f6123ca2d93803453f2a1ab25c3c1981
[ "MIT" ]
null
null
null
testtarget.py
epopisces/template_api_wrapper
e581eb31f6123ca2d93803453f2a1ab25c3c1981
[ "MIT" ]
null
null
null
testtarget.py
epopisces/template_api_wrapper
e581eb31f6123ca2d93803453f2a1ab25c3c1981
[ "MIT" ]
null
null
null
class ToolNameAPI: thing = 'thing' toolname_tool = 'example' tln = ToolNameAPI() the_repo = "reponame" author = "authorname" profile = "authorprofile"
15.7
25
0.713376
38
0.242038
0
0
0
0
0
0
53
0.33758
835f677bc91f7df84f3075940f43de8d60abf297
84
py
Python
learning/__init__.py
aleisalem/Maat
702c88a6a86f0b56e504df8f4d7ba18e8a39c887
[ "Apache-2.0" ]
4
2019-10-11T12:19:29.000Z
2020-08-06T21:45:10.000Z
learning/__init__.py
aleisalem/Maat
702c88a6a86f0b56e504df8f4d7ba18e8a39c887
[ "Apache-2.0" ]
null
null
null
learning/__init__.py
aleisalem/Maat
702c88a6a86f0b56e504df8f4d7ba18e8a39c887
[ "Apache-2.0" ]
1
2021-01-05T11:50:22.000Z
2021-01-05T11:50:22.000Z
__all__ = ["feature_extraction", "hmm_learner", "scikit_learners", "string_kernel"]
42
83
0.761905
0
0
0
0
0
0
0
0
65
0.77381
835f9384035a1bd549616f5ba14cfd3f214b0f26
2,509
py
Python
Metrics/reporter.py
augdomingues/SPEX
412034eb662b6cac466d7c96ac04c399ff2617c5
[ "CC0-1.0" ]
null
null
null
Metrics/reporter.py
augdomingues/SPEX
412034eb662b6cac466d7c96ac04c399ff2617c5
[ "CC0-1.0" ]
null
null
null
Metrics/reporter.py
augdomingues/SPEX
412034eb662b6cac466d7c96ac04c399ff2617c5
[ "CC0-1.0" ]
1
2021-09-14T06:28:07.000Z
2021-09-14T06:28:07.000Z
from os.path import join from math import ceil import numpy as np import seaborn as sns import matplotlib.pyplot as plt plt.rcParams["font.size"] = 14 plt.rcParams["figure.figsize"] = [15, 8] class reporter: def __init__(self, name, folder, counts, interactive=True): plt.subplot(221) plt.title(...
31.759494
95
0.539657
2,311
0.921084
0
0
0
0
0
0
358
0.142686
835fad4f88ef3c40e122cf474982c0fc18e561fb
21,322
py
Python
contrib/translate_test.py
csilvers/kake
51465b12d267a629dd61778918d83a2a134ec3b2
[ "MIT" ]
null
null
null
contrib/translate_test.py
csilvers/kake
51465b12d267a629dd61778918d83a2a134ec3b2
[ "MIT" ]
null
null
null
contrib/translate_test.py
csilvers/kake
51465b12d267a629dd61778918d83a2a134ec3b2
[ "MIT" ]
null
null
null
"""Tests the translate_* files.""" from __future__ import absolute_import import cPickle import os import shutil from shared.testutil import testsize from third_party import polib from kake import compile_all_pot from kake import compile_small_mo from kake import translate_handlebars from kake import translate_java...
45.657388
79
0.535409
20,793
0.97519
0
0
7,889
0.369993
0
0
7,761
0.36399
83609972eefc4a7ddcf363f8e89f7408af9885f3
115
py
Python
backend/backend/urls.py
lucasrafaldini/SpaceXLaunches
abcd3686677bc3e25903bc2ed1e084e00090ba33
[ "MIT" ]
1
2021-09-21T17:51:11.000Z
2021-09-21T17:51:11.000Z
backend/backend/urls.py
lucasrafaldini/SpaceXLaunches
abcd3686677bc3e25903bc2ed1e084e00090ba33
[ "MIT" ]
9
2020-06-06T00:42:57.000Z
2022-02-27T17:29:18.000Z
backend/backend/urls.py
lucasrafaldini/SpaceXLaunches
abcd3686677bc3e25903bc2ed1e084e00090ba33
[ "MIT" ]
null
null
null
from django.conf.urls import url from django.urls import include urlpatterns = [url("api/", include("api.urls"))]
23
48
0.73913
0
0
0
0
0
0
0
0
16
0.13913
8360d7fa109831cb6f6bca8e81a94ffadbaafea4
223
py
Python
primitives_ubc/regCCFS/__init__.py
tonyjo/ubc_primitives
bc94a403f176fe28db2a9ac9d1a48cb9db021f90
[ "Apache-2.0" ]
null
null
null
primitives_ubc/regCCFS/__init__.py
tonyjo/ubc_primitives
bc94a403f176fe28db2a9ac9d1a48cb9db021f90
[ "Apache-2.0" ]
4
2020-07-19T00:45:29.000Z
2020-12-10T18:25:41.000Z
primitives_ubc/regCCFS/__init__.py
tonyjo/ubc_primitives
bc94a403f176fe28db2a9ac9d1a48cb9db021f90
[ "Apache-2.0" ]
1
2021-04-30T18:13:49.000Z
2021-04-30T18:13:49.000Z
from .ccfsReg import CanonicalCorrelationForestsRegressionPrimitive __all__ = ['CanonicalCorrelationForestsRegressionPrimitive'] from pkgutil import extend_path __path__ = extend_path(__path__, __name__) # type: ignore
27.875
67
0.847534
0
0
0
0
0
0
0
0
62
0.278027
8361ead530441db9333244ae0f2f8927bfbf291f
2,305
py
Python
bprof/profile.py
joelfrederico/bprof
09ada1e8cb0b2ddee3e212e1721c81964fc5f7a4
[ "MIT" ]
null
null
null
bprof/profile.py
joelfrederico/bprof
09ada1e8cb0b2ddee3e212e1721c81964fc5f7a4
[ "MIT" ]
null
null
null
bprof/profile.py
joelfrederico/bprof
09ada1e8cb0b2ddee3e212e1721c81964fc5f7a4
[ "MIT" ]
1
2019-10-19T21:22:02.000Z
2019-10-19T21:22:02.000Z
class BaseFunction: def __init__(self, name, n_calls, internal_ns): self._name = name self._n_calls = n_calls self._internal_ns = internal_ns @property def name(self): return self._name @property def n_calls(self): return self._n_calls @property def...
22.598039
70
0.577007
2,295
0.995662
0
0
1,600
0.694143
0
0
91
0.039479
836261e038e930e3ea31c7a6628689b091e5c9d1
8,108
py
Python
src/compas/numerical/dr/dr_numpy.py
arpastrana/compas
ed677a162c14dbe562c82d72f370279259faf7da
[ "MIT" ]
null
null
null
src/compas/numerical/dr/dr_numpy.py
arpastrana/compas
ed677a162c14dbe562c82d72f370279259faf7da
[ "MIT" ]
9
2019-09-11T08:53:19.000Z
2019-09-16T08:35:39.000Z
src/compas/numerical/dr/dr_numpy.py
Licini/compas
34f65adb3d0abc3f403312ffba62aa76f3376292
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function from numpy import array from numpy import isnan from numpy import isinf from numpy import ones from numpy import zeros from scipy.linalg import norm from scipy.sparse import diags from compas.numerical import ...
34.067227
103
0.398249
143
0.017637
0
0
0
0
0
0
3,773
0.465343
8362ff8cbd0cfe323812bd28b2652a04191c1026
462
py
Python
getColorFromNumber.py
clean-code-craft-tcq-1/modular-python-preetikadyan
0775e7e62edbbb0d7c3506b2bd072562a44d7f8b
[ "MIT" ]
null
null
null
getColorFromNumber.py
clean-code-craft-tcq-1/modular-python-preetikadyan
0775e7e62edbbb0d7c3506b2bd072562a44d7f8b
[ "MIT" ]
null
null
null
getColorFromNumber.py
clean-code-craft-tcq-1/modular-python-preetikadyan
0775e7e62edbbb0d7c3506b2bd072562a44d7f8b
[ "MIT" ]
null
null
null
from main import * def get_color_from_pair_number(pair_number): zero_based_pair_number = pair_number - 1 major_index = zero_based_pair_number // len(MINOR_COLORS) if major_index >= len(MAJOR_COLORS): raise Exception('Major index out of range') minor_index = zero_based_pair_number % len(MINOR_COLORS) if mi...
42
61
0.779221
0
0
0
0
0
0
0
0
52
0.112554
83638a87db865ba288d6ca6639d585c34a522b6e
98
py
Python
raspy/io/pwm_channel.py
cyrusbuilt/RasPy
1e34840cc90ea7f19317e881162209d3d819eb09
[ "MIT" ]
null
null
null
raspy/io/pwm_channel.py
cyrusbuilt/RasPy
1e34840cc90ea7f19317e881162209d3d819eb09
[ "MIT" ]
null
null
null
raspy/io/pwm_channel.py
cyrusbuilt/RasPy
1e34840cc90ea7f19317e881162209d3d819eb09
[ "MIT" ]
null
null
null
"""The PWM channel to use.""" CHANNEL0 = 0 """Channel zero.""" CHANNEL1 = 1 """Channel one."""
10.888889
29
0.581633
0
0
0
0
0
0
0
0
66
0.673469
836427cbbb35895144687ddb6c7a92d78b59686e
10,157
py
Python
xls/dslx/interpreter/concrete_type_helpers.py
hafixo/xls
21009ec2165d04d0037d9cf3583b207949ef7a6d
[ "Apache-2.0" ]
null
null
null
xls/dslx/interpreter/concrete_type_helpers.py
hafixo/xls
21009ec2165d04d0037d9cf3583b207949ef7a6d
[ "Apache-2.0" ]
null
null
null
xls/dslx/interpreter/concrete_type_helpers.py
hafixo/xls
21009ec2165d04d0037d9cf3583b207949ef7a6d
[ "Apache-2.0" ]
null
null
null
# Lint as: python3 # # Copyright 2020 The XLS Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
39.216216
80
0.713104
0
0
0
0
0
0
0
0
2,488
0.244954
83655e2b69ea8d94a79a740f034c0045712e2d9d
97
py
Python
ABC/131/a.py
fumiyanll23/AtCoder
362ca9fcacb5415c1458bc8dee5326ba2cc70b65
[ "MIT" ]
null
null
null
ABC/131/a.py
fumiyanll23/AtCoder
362ca9fcacb5415c1458bc8dee5326ba2cc70b65
[ "MIT" ]
null
null
null
ABC/131/a.py
fumiyanll23/AtCoder
362ca9fcacb5415c1458bc8dee5326ba2cc70b65
[ "MIT" ]
null
null
null
S = str(input()) if S[0]==S[1] or S[1]==S[2] or S[2]==S[3]: print("Bad") else: print("Good")
16.166667
42
0.494845
0
0
0
0
0
0
0
0
11
0.113402
83663c35c9a7b7d5e9b6087f0826f94225c82bb6
15,354
py
Python
model_neu/optimized/hyperutils.py
lelange/cu-ssp
9f1a7abf79a2fb6ef2ae0f37de79469c2dc3488f
[ "MIT" ]
null
null
null
model_neu/optimized/hyperutils.py
lelange/cu-ssp
9f1a7abf79a2fb6ef2ae0f37de79469c2dc3488f
[ "MIT" ]
null
null
null
model_neu/optimized/hyperutils.py
lelange/cu-ssp
9f1a7abf79a2fb6ef2ae0f37de79469c2dc3488f
[ "MIT" ]
null
null
null
from bson import json_util import json import os import numpy as np import tensorflow as tf from keras.layers.core import K #import keras.backend as K import time import pandas as pd import multiprocessing # from keras.preprocessing import text, sequence from keras.preprocessing.text import Tokenizer from keras.utils ...
36.557143
127
0.681972
0
0
0
0
0
0
0
0
5,824
0.379265
8369920fc0165d90314e66e5b7970c7cffdf56d6
106
py
Python
spark_application/transformations/__init__.py
ketanvatsalya/pyspark_project_template
72f6cc843ce04cbbf15eaf49c2435b7f31366194
[ "MIT" ]
null
null
null
spark_application/transformations/__init__.py
ketanvatsalya/pyspark_project_template
72f6cc843ce04cbbf15eaf49c2435b7f31366194
[ "MIT" ]
null
null
null
spark_application/transformations/__init__.py
ketanvatsalya/pyspark_project_template
72f6cc843ce04cbbf15eaf49c2435b7f31366194
[ "MIT" ]
null
null
null
""" Package to hold the Transformation Classes """ from . import base from . import spend_per_department
15.142857
42
0.764151
0
0
0
0
0
0
0
0
50
0.471698