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
26c8199913901f96201fe9b8091ee36c1351a53e
347
py
Python
examples/prompt.py
nelice/bullet
aafec4d0ca8f628d2be9b0667c50477929c2cca7
[ "MIT" ]
1
2021-03-22T07:55:30.000Z
2021-03-22T07:55:30.000Z
examples/prompt.py
nelice/bullet
aafec4d0ca8f628d2be9b0667c50477929c2cca7
[ "MIT" ]
null
null
null
examples/prompt.py
nelice/bullet
aafec4d0ca8f628d2be9b0667c50477929c2cca7
[ "MIT" ]
null
null
null
from bullet import Bullet, Prompt, Check, Input, YesNo from bullet import styles cli = Prompt( [ Bullet("Choose from a list: ", **styles.Example), Check("Choose from a list: ", **styles.Example), Input("Who are you? "), YesNo("Are you a student? ") ], spacing = 2 ) result =...
23.133333
57
0.599424
0
0
0
0
0
0
0
0
80
0.230548
26c8a00c561378714f8ad7990f244b2a1e695121
671
py
Python
testsuite/tests/T618-047__Ada_2012/run_test.py
AdaCore/style_checker
17108ebfc44375498063ecdad6c6e4430458e60a
[ "CNRI-Python" ]
2
2017-10-22T18:04:26.000Z
2020-03-06T11:07:41.000Z
testsuite/tests/T618-047__Ada_2012/run_test.py
AdaCore/style_checker
17108ebfc44375498063ecdad6c6e4430458e60a
[ "CNRI-Python" ]
null
null
null
testsuite/tests/T618-047__Ada_2012/run_test.py
AdaCore/style_checker
17108ebfc44375498063ecdad6c6e4430458e60a
[ "CNRI-Python" ]
4
2018-05-22T12:08:54.000Z
2020-12-14T15:25:27.000Z
def test_pck_2012_adb(style_checker): """Style check test against pck_2012.adb.""" style_checker.set_year(2006) p = style_checker.run_style_checker('repo_name', 'pck_2012.ads') style_checker.assertEqual(p.status, 0, p.image) style_checker.assertRunOutputEmpty(p) def test_pck_2012_adb_with_alt_conf...
41.9375
74
0.754098
0
0
0
0
0
0
0
0
196
0.292101
26cacd8b2394e2ededf66d1f7ced4b0560e95348
594
py
Python
src/volume_0/0011_Drawing_Lots.py
DaikiShimada/aoj-exercise
dd4b70d4fd64aa28bc4cc75f5cdb8d02ea796803
[ "MIT" ]
null
null
null
src/volume_0/0011_Drawing_Lots.py
DaikiShimada/aoj-exercise
dd4b70d4fd64aa28bc4cc75f5cdb8d02ea796803
[ "MIT" ]
null
null
null
src/volume_0/0011_Drawing_Lots.py
DaikiShimada/aoj-exercise
dd4b70d4fd64aa28bc4cc75f5cdb8d02ea796803
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import sys def amida(w, side_bar): result = [] side_bar.reverse() for x in range(1, w+1): status = x for bar in side_bar: if status == bar[0]: status = bar[1] elif status == bar[1]: status = bar[0] resu...
21.214286
73
0.503367
0
0
0
0
0
0
0
0
36
0.060606
26cbd6df4059d6dbdf0c29f052b92ccdc1a7a881
1,832
py
Python
mglg/util/profiler.py
aforren1/mglg
a9b703e109a66377dd404929fc0b13ccc12b5214
[ "MIT" ]
null
null
null
mglg/util/profiler.py
aforren1/mglg
a9b703e109a66377dd404929fc0b13ccc12b5214
[ "MIT" ]
9
2019-08-05T21:11:09.000Z
2021-11-18T18:19:33.000Z
mglg/util/profiler.py
aforren1/mglg
a9b703e109a66377dd404929fc0b13ccc12b5214
[ "MIT" ]
null
null
null
from timeit import default_timer import numpy as np class Profiler: __slots__ = ('active', 'gpuquery', 't0', 'cpubuffer', 'gpubuffer', 'counter', '_size', 'worst_cpu', 'worst_gpu') def __init__(self, gpu=False, ctx=None, buffer_size=200): self.active = False ...
31.586207
90
0.555131
1,777
0.969978
0
0
0
0
0
0
98
0.053493
26ccd5bc1d5e387e612a0f077f3e861929e6b021
2,972
py
Python
toolbox/exp/Experiment.py
LinXueyuanStdio/KGE-toolbox
916842835e61ba99dde1409592977a2ec55f8aae
[ "Apache-2.0" ]
2
2021-10-17T17:50:24.000Z
2021-12-13T05:22:46.000Z
toolbox/exp/Experiment.py
LinXueyuanStdio/KGE-toolbox
916842835e61ba99dde1409592977a2ec55f8aae
[ "Apache-2.0" ]
null
null
null
toolbox/exp/Experiment.py
LinXueyuanStdio/KGE-toolbox
916842835e61ba99dde1409592977a2ec55f8aae
[ "Apache-2.0" ]
null
null
null
import numpy as np from toolbox.exp.OutputSchema import OutputSchema from toolbox.utils.LaTeXSotre import EvaluateLaTeXStoreSchema from toolbox.utils.MetricLogStore import MetricLogStoreSchema from toolbox.utils.ModelParamStore import ModelParamStoreSchema from toolbox.utils.Visualize import VisualizeSchema class Ex...
44.358209
89
0.685397
2,411
0.811238
0
0
0
0
0
0
134
0.045087
26cdda5a2dd54f427c59a8a3d865986d8ec6b5ee
893
py
Python
src/dataloader/tests/runner.py
ODM2/ODM2DataSharingPortal
4ea1d633fe8e1cc39916e83041f2dbc830339e55
[ "BSD-3-Clause" ]
18
2018-11-27T11:57:24.000Z
2022-03-19T16:52:35.000Z
src/dataloader/tests/runner.py
ODM2/ODM2DataSharingPortal
4ea1d633fe8e1cc39916e83041f2dbc830339e55
[ "BSD-3-Clause" ]
362
2018-02-21T16:27:00.000Z
2022-03-31T18:48:48.000Z
src/dataloader/tests/runner.py
ODM2/ODM2DataSharingPortal
4ea1d633fe8e1cc39916e83041f2dbc830339e55
[ "BSD-3-Clause" ]
5
2018-07-04T17:13:09.000Z
2021-12-19T22:51:40.000Z
import json import os from django.core.management import call_command from django.test.runner import DiscoverRunner from django.db import connections from dataloader.tests.data import data_manager class ODM2TestRunner(DiscoverRunner): test_connection = None database_alias = u'odm2' def setup_test_envir...
29.766667
98
0.721165
691
0.773796
0
0
0
0
0
0
41
0.045913
26cf29a0e44e798901be0b42a84cea83caaf14fe
364
py
Python
plugins/rain.py
xditya/PikaBotPlugins
2c5c52716158cd8964220bcc71fa383ccaf1210a
[ "Apache-2.0" ]
2
2021-02-16T05:35:41.000Z
2021-05-25T16:59:47.000Z
plugins/rain.py
xditya/PikaBotPlugins
2c5c52716158cd8964220bcc71fa383ccaf1210a
[ "Apache-2.0" ]
null
null
null
plugins/rain.py
xditya/PikaBotPlugins
2c5c52716158cd8964220bcc71fa383ccaf1210a
[ "Apache-2.0" ]
2
2021-02-07T03:09:40.000Z
2021-05-25T16:59:59.000Z
#Originally created By KingMars ✅ Rain Sequence 2 {Updated} from telethon import events import asyncio from collections import deque @ItzSjDude(outgoing=True, pattern=r"km_rain2") async def _(event): if event.fwd_from: return deq = deque(list("☁️⛈Ř/~\İŇ🌬⚡🌪")) for _ in range(100): await asyncio.sleep(0.1) a...
22.75
59
0.717033
0
0
0
0
245
0.639687
198
0.516971
105
0.274151
26cf746287a13ed33dacec35f0898c4fe183c37a
73
py
Python
preprocessing/__init__.py
WiktorSa/Music-Generation-with-LSTM-and-.wav-files
37b713b5e6193788a7710cc0fac4134efb74fa62
[ "MIT" ]
1
2022-03-09T20:13:57.000Z
2022-03-09T20:13:57.000Z
preprocessing/__init__.py
WiktorSa/Music-Generation-with-LSTM-and-.wav-files
37b713b5e6193788a7710cc0fac4134efb74fa62
[ "MIT" ]
1
2021-10-01T16:20:06.000Z
2021-10-01T17:25:30.000Z
preprocessing/__init__.py
WiktorSa/Music-Generation-with-LSTM-and-.wav-files
37b713b5e6193788a7710cc0fac4134efb74fa62
[ "MIT" ]
null
null
null
from preprocessing.generate_and_save_data import generate_and_save_data
36.5
72
0.917808
0
0
0
0
0
0
0
0
0
0
26cfb507f5245413925f5d6ffbbfcea4aa484298
6,126
py
Python
plot.py
lizzieayton/PrimordialOozebot
1e330b1ac6f27bd167734ad6c6ecff70f816986a
[ "MIT" ]
null
null
null
plot.py
lizzieayton/PrimordialOozebot
1e330b1ac6f27bd167734ad6c6ecff70f816986a
[ "MIT" ]
null
null
null
plot.py
lizzieayton/PrimordialOozebot
1e330b1ac6f27bd167734ad6c6ecff70f816986a
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import csv import statistics import math plt.title('Population Diversity') plt.ylabel('Diversity Score') plt.xlabel('Iteration Number') random = [] randombars = [] rmin = [] rmax = [] hill = [] hillbars = [] hmin = [] hmax = [] evo = [] emin = [] emax = [] evobars = [] cross = [] cross...
30.939394
90
0.623572
0
0
0
0
0
0
0
0
628
0.102514
26cfea22c43edc42786c9199d503d77927f66e4d
1,918
py
Python
python/obra_hacks/backend/commands.py
brandond/obra-hacks
df451c6c6cd78b48f6e32bbd102a8e8a6bd77cb3
[ "Apache-2.0" ]
null
null
null
python/obra_hacks/backend/commands.py
brandond/obra-hacks
df451c6c6cd78b48f6e32bbd102a8e8a6bd77cb3
[ "Apache-2.0" ]
null
null
null
python/obra_hacks/backend/commands.py
brandond/obra-hacks
df451c6c6cd78b48f6e32bbd102a8e8a6bd77cb3
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import unicode_literals import logging from datetime import date import click from .data import DISCIPLINE_MAP from .outputs import OUTPUT_MAP @click.command() @click.option('--discipline', type=click.Choice(DISCIPLINE_MAP.keys()), required=True) @click...
34.25
100
0.684567
0
0
0
0
1,668
0.869656
0
0
438
0.228363
26d2a8925926b05405485ed3b4fa01550942c26f
657
py
Python
join_json.py
ryavorsky/med_robo
56f8d2067921ef7208166380e50af0600c10032a
[ "CC0-1.0" ]
null
null
null
join_json.py
ryavorsky/med_robo
56f8d2067921ef7208166380e50af0600c10032a
[ "CC0-1.0" ]
null
null
null
join_json.py
ryavorsky/med_robo
56f8d2067921ef7208166380e50af0600c10032a
[ "CC0-1.0" ]
null
null
null
import json with open('bibliography.json', 'r', encoding='utf-8') as bib_data: bib = sorted(json.load(bib_data), key=lambda d: d['ID']) with open('abstracts.json', 'r', encoding='utf-8') as tex_data: tex = sorted(json.load(tex_data), key=lambda d: d['ID']) ID1 = [b['ID'] for b in bib] ID2 = [t['ID'...
28.565217
82
0.614916
0
0
0
0
0
0
0
0
147
0.223744
26d58240f4233e1d13f48a78a83f734ca262cc13
147
py
Python
Qcover/simulator/__init__.py
BAQIS-Quantum/Qcover
ca3776ed73fefa0cfef08042143a8cf842f8dad5
[ "Apache-2.0" ]
38
2021-12-22T03:12:01.000Z
2022-03-17T06:57:10.000Z
Qcover/simulator/__init__.py
BAQIS-Quantum/Qcover
ca3776ed73fefa0cfef08042143a8cf842f8dad5
[ "Apache-2.0" ]
null
null
null
Qcover/simulator/__init__.py
BAQIS-Quantum/Qcover
ca3776ed73fefa0cfef08042143a8cf842f8dad5
[ "Apache-2.0" ]
13
2021-12-22T07:32:44.000Z
2022-02-28T06:47:41.000Z
from .qton import Qcircuit, Qcodes import warnings warnings.filterwarnings("ignore") __all__ = [ # 'Simulator', 'Qcircuit', 'Qcodes' ]
16.333333
34
0.680272
0
0
0
0
0
0
0
0
40
0.272109
26d8d630adbf36e69e2b1f614c164c0bdbf94301
7,563
py
Python
pizzerias/pizzerias_search.py
LiushaHe0317/pizzerias_block_search
16dd7fb20b1a29a4f16b28ac7e5a84b30f7f9a7b
[ "MIT" ]
null
null
null
pizzerias/pizzerias_search.py
LiushaHe0317/pizzerias_block_search
16dd7fb20b1a29a4f16b28ac7e5a84b30f7f9a7b
[ "MIT" ]
null
null
null
pizzerias/pizzerias_search.py
LiushaHe0317/pizzerias_block_search
16dd7fb20b1a29a4f16b28ac7e5a84b30f7f9a7b
[ "MIT" ]
null
null
null
from typing import Sequence import numpy class PizzeriasSearcher: """ This object takes the size of the city and number of shops, and construct the matrices each shop delivery can cover and number of delivery for each cell in the city. It can also computes number of delivery for a given cell, ...
42.728814
123
0.627793
7,520
0.994314
0
0
521
0.068888
0
0
3,689
0.487769
26d8feef12cddd2dca60e0f08ac5f863599108a2
1,213
py
Python
analysis/hist_javelin.py
LiyrAstroph/MICA
2592b8ad3011880898f557a69b22cad63fcd47e0
[ "MIT" ]
1
2016-10-25T06:32:33.000Z
2016-10-25T06:32:33.000Z
analysis/hist_javelin.py
LiyrAstroph/MICA
2592b8ad3011880898f557a69b22cad63fcd47e0
[ "MIT" ]
null
null
null
analysis/hist_javelin.py
LiyrAstroph/MICA
2592b8ad3011880898f557a69b22cad63fcd47e0
[ "MIT" ]
3
2016-12-29T06:04:13.000Z
2020-04-12T11:48:42.000Z
import numpy as np import matplotlib.pyplot as plt import corner mcmc = np.loadtxt("mychain1.dat") ntheta = mcmc.shape[1] fig = plt.figure(1, figsize=(15, 6)) ax = fig.add_subplot(231) ax.hist(mcmc[:, 0]/np.log(10.0), 100, normed=True, range=(-0.9, -0.1)) ax = fig.add_subplot(232) ax.hist(mcmc[:, 1]/np.log(10.0)...
24.26
108
0.635614
0
0
0
0
0
0
0
0
32
0.026381
26da85c2640497939b911d5705595d7671906491
1,158
py
Python
tests/test_stats.py
janjaappape/pastas
521b27efd921e240df0717038f8389d62099b8ff
[ "MIT" ]
252
2017-01-25T05:48:53.000Z
2022-03-31T17:46:37.000Z
tests/test_stats.py
janjaappape/pastas
521b27efd921e240df0717038f8389d62099b8ff
[ "MIT" ]
279
2017-02-14T10:59:01.000Z
2022-03-31T09:17:37.000Z
tests/test_stats.py
janjaappape/pastas
521b27efd921e240df0717038f8389d62099b8ff
[ "MIT" ]
57
2017-02-14T10:26:54.000Z
2022-03-11T14:04:48.000Z
import numpy as np import pandas as pd import pastas as ps def acf_func(**kwargs): index = pd.to_datetime(np.arange(0, 100, 1), unit="D", origin="2000") data = np.sin(np.linspace(0, 10 * np.pi, 100)) r = pd.Series(data=data, index=index) acf_true = np.cos(np.linspace(0.0, np.pi, 11))[1:] acf = ps...
27.571429
79
0.638169
0
0
0
0
0
0
0
0
185
0.159758
26db23f57ee2cf9c420d9e5404d2b60d7671991a
320
py
Python
venv/lib64/python3.8/site-packages/tld/registry.py
nrfkhira/dnx-engine
99a326d83058bcfe54a0f455672d90637fe753c6
[ "MIT" ]
null
null
null
venv/lib64/python3.8/site-packages/tld/registry.py
nrfkhira/dnx-engine
99a326d83058bcfe54a0f455672d90637fe753c6
[ "MIT" ]
null
null
null
venv/lib64/python3.8/site-packages/tld/registry.py
nrfkhira/dnx-engine
99a326d83058bcfe54a0f455672d90637fe753c6
[ "MIT" ]
null
null
null
import warnings from .base import Registry __author__ = "Artur Barseghyan" __copyright__ = "2013-2021 Artur Barseghyan" __license__ = "MPL-1.1 OR GPL-2.0-only OR LGPL-2.1-or-later" __all__ = ("Registry",) warnings.warn( "The `Registry` class is moved from `tld.registry` to `tld.base`.", DeprecationWarning, )
24.615385
71
0.721875
0
0
0
0
0
0
0
0
168
0.525
26dc6cf0e3afad0c2ebf41ec4b792f1e330897c5
2,963
py
Python
hvo_api/model/gps.py
wtollett-usgs/hvo_api
cdd39cb74d28a931cac4b843a71c5d8435f4620c
[ "CC0-1.0" ]
null
null
null
hvo_api/model/gps.py
wtollett-usgs/hvo_api
cdd39cb74d28a931cac4b843a71c5d8435f4620c
[ "CC0-1.0" ]
null
null
null
hvo_api/model/gps.py
wtollett-usgs/hvo_api
cdd39cb74d28a931cac4b843a71c5d8435f4620c
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- from valverest.database import db7 as db from sqlalchemy.ext.hybrid import hybrid_property class Solution(db.Model): __tablename__ = 'solutions' __bind_key__ = 'gps' sid = db.Column(db.Integer, primary_key=True) cid = db.Column(db.Integer, primary_key=True) x = db.Column(d...
22.44697
79
0.59838
2,833
0.956126
0
0
702
0.236922
0
0
203
0.068512
26ddb52d2be72d7d4dbeca2609c7ac5ce525625e
2,091
py
Python
SingleIRdetection/get_data.py
biqute/QTLab2122
4d53d4c660bb5931615d8652e698f6d689a4dead
[ "MIT" ]
3
2021-11-30T18:41:11.000Z
2021-12-12T12:27:14.000Z
SingleIRdetection/get_data.py
biqute/QTLab2122
4d53d4c660bb5931615d8652e698f6d689a4dead
[ "MIT" ]
null
null
null
SingleIRdetection/get_data.py
biqute/QTLab2122
4d53d4c660bb5931615d8652e698f6d689a4dead
[ "MIT" ]
null
null
null
from instruments import VNA_handler, Fridge_handler import os import time from datetime import date, datetime today = date.today() d1 = today.strftime("_%d_%m") directory = "data"+d1 dir_path=os.path.join(os.path.dirname(os.path.abspath(__file__)),directory) if not os.path.isdir(dir_path): try: os.mkdir(di...
27.155844
169
0.595887
0
0
0
0
0
0
0
0
444
0.212339
26ddc48f78a12f6195556b4fffb431166aa3a248
1,356
py
Python
repos.py
gigamonkey/git-utils
ac26ccab836b276fb7061167b4b2dc2a6bd87e66
[ "BSD-3-Clause" ]
null
null
null
repos.py
gigamonkey/git-utils
ac26ccab836b276fb7061167b4b2dc2a6bd87e66
[ "BSD-3-Clause" ]
1
2021-05-04T19:45:16.000Z
2021-05-04T19:45:16.000Z
repos.py
gigamonkey/git-utils
ac26ccab836b276fb7061167b4b2dc2a6bd87e66
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 """ Get a json dump of all the repos belonging to a GitHub org or user. """ import json import os import sys from functools import reduce import requests url = "https://api.github.com/graphql" token = os.environ["GITHUB_TOKEN"] headers = {"Authorization": "bearer {}".format(token)} FIELDS =...
22.229508
153
0.597345
0
0
0
0
0
0
0
0
533
0.393068
26de76c7a526dbcb257d0562f65b8f5f56302812
994
py
Python
tfLego/logger/BasicLogger.py
FrancescoSaverioZuppichini/tfLego
485653eff6d3b8c6677b600a4e0d3623c844749f
[ "MIT" ]
null
null
null
tfLego/logger/BasicLogger.py
FrancescoSaverioZuppichini/tfLego
485653eff6d3b8c6677b600a4e0d3623c844749f
[ "MIT" ]
null
null
null
tfLego/logger/BasicLogger.py
FrancescoSaverioZuppichini/tfLego
485653eff6d3b8c6677b600a4e0d3623c844749f
[ "MIT" ]
null
null
null
class BasicLogger: def __init__(self): self.loss_history = [] self.accuracy_history = [] self.val_loss_history = [] self.val_accuracy_history = [] self.initialise() def initialise(self): self.total_loss = 0 self.total_accuracy = 0 self.curren...
23.116279
86
0.585513
991
0.996982
0
0
0
0
0
0
46
0.046278
26def15c65ab2e4480b9091dca33bf04179a4722
3,705
py
Python
test_package/conanfile.py
sintef-ocean/conan-casadi
70a14829ca3b3ec4cdff8b254e3c060b345c1e79
[ "MIT" ]
null
null
null
test_package/conanfile.py
sintef-ocean/conan-casadi
70a14829ca3b3ec4cdff8b254e3c060b345c1e79
[ "MIT" ]
null
null
null
test_package/conanfile.py
sintef-ocean/conan-casadi
70a14829ca3b3ec4cdff8b254e3c060b345c1e79
[ "MIT" ]
null
null
null
from conans import ConanFile, CMake, tools, RunEnvironment class CasadiTestConan(ConanFile): settings = "os", "compiler", "build_type", "arch" generators = ("cmake_paths", "cmake", "virtualrunenv", "virtualenv") _cmake = None def _configure_cmake(self): if self._cmake is None: se...
42.102273
88
0.612146
3,643
0.983266
0
0
0
0
0
0
1,164
0.31417
26e0374db2378f11fc9bfc31927fa2a8ccdcf58c
1,995
py
Python
src/blog/templatetags/timediffer.py
codewithrakib/first-django-blog
339f5833025b0758f391c7c8e0979ca2eefd1b52
[ "MIT" ]
null
null
null
src/blog/templatetags/timediffer.py
codewithrakib/first-django-blog
339f5833025b0758f391c7c8e0979ca2eefd1b52
[ "MIT" ]
7
2021-03-19T02:00:00.000Z
2022-02-10T10:26:38.000Z
src/blog/templatetags/timediffer.py
codewithrakib/first-django-blog
339f5833025b0758f391c7c8e0979ca2eefd1b52
[ "MIT" ]
null
null
null
from django import template from datetime import datetime from datetime import date from datetime import time from datetime import timedelta register = template.Library() @register.filter def timediffer(now, posttime): posttime = posttime.replace(tzinfo=None) timedif= now -posttime timestr="" if timed...
30.227273
56
0.578947
0
0
0
0
1,822
0.913283
0
0
400
0.200501
26e08af32bb2b5d0bbed9fd354924f064bde0ecf
254
py
Python
ma.py
AmandaKhol/DLT-Blockchain
ee464b0d7b55bffe791eb0b814513620430bfa1c
[ "MIT" ]
1
2021-04-05T18:59:04.000Z
2021-04-05T18:59:04.000Z
ma.py
AmandaKhol/DLT-Blockchain
ee464b0d7b55bffe791eb0b814513620430bfa1c
[ "MIT" ]
null
null
null
ma.py
AmandaKhol/DLT-Blockchain
ee464b0d7b55bffe791eb0b814513620430bfa1c
[ "MIT" ]
null
null
null
""" title : ma.py description : Marshmallow object author : Amanda Garcia-Garcia version : 0 usage : python server_api.py python_version : 3.6.1 """ from flask_marshmallow import Marshmallow ma = Marshmallow()
19.538462
41
0.629921
0
0
0
0
0
0
0
0
191
0.751969
26e3cb56bf5c43ffe1ebc53ce33bf565445ae974
6,107
py
Python
FGMabiotic.py
tjscott214/long-term-conflict-with-1nFGM
1c701e83c71ebe21fbc1192ca3d523a000614819
[ "MIT" ]
2
2019-09-13T13:46:33.000Z
2020-05-14T17:21:09.000Z
FGMabiotic.py
tjscott214/long-term-conflict-with-1nFGM
1c701e83c71ebe21fbc1192ca3d523a000614819
[ "MIT" ]
null
null
null
FGMabiotic.py
tjscott214/long-term-conflict-with-1nFGM
1c701e83c71ebe21fbc1192ca3d523a000614819
[ "MIT" ]
null
null
null
#!/usr/bin/env python ### This program simulates Fisher's geometric model with abiotic change equal to fixations during conflict simulations (from FGMconflict.py) ### ### python3 FGMabiotic.py -help for input options ### ### Written by Trey J Scott 2018 ### ### python --version ### ### Python 3.5.2 :: Anaconda 4.2.0 (...
34.117318
192
0.7159
0
0
0
0
0
0
0
0
1,913
0.313247
26e5678c410804c82e1a66c1a1c30cc2e8b118d5
873
py
Python
epdif.py
cvasqxz/rpi-epd
b7921190dd84b1187364902f0e3059cba5a1973f
[ "MIT" ]
null
null
null
epdif.py
cvasqxz/rpi-epd
b7921190dd84b1187364902f0e3059cba5a1973f
[ "MIT" ]
null
null
null
epdif.py
cvasqxz/rpi-epd
b7921190dd84b1187364902f0e3059cba5a1973f
[ "MIT" ]
null
null
null
import spidev import RPi.GPIO as GPIO import time import yaml with open("config.yml", 'r') as f: cfg = yaml.load(f, Loader=yaml.FullLoader) # Pin definition RST_PIN = cfg['pinout']['RST_PIN'] DC_PIN = cfg['pinout']['DC_PIN'] CS_PIN = cfg['pinout']['CS_PIN'] BUSY_PIN = cfg['pinout']['BUSY_PIN'] # SPI device, bus...
21.292683
46
0.683849
0
0
0
0
0
0
0
0
131
0.150057
26e616bae86ed51b35013c799f67005f184552f2
2,469
py
Python
main.py
amankumarjsr/BinanceDataScrapper
e3d56c4bd274a8e472de1fbe1c9603c9e94e1d14
[ "Apache-2.0" ]
null
null
null
main.py
amankumarjsr/BinanceDataScrapper
e3d56c4bd274a8e472de1fbe1c9603c9e94e1d14
[ "Apache-2.0" ]
null
null
null
main.py
amankumarjsr/BinanceDataScrapper
e3d56c4bd274a8e472de1fbe1c9603c9e94e1d14
[ "Apache-2.0" ]
null
null
null
from datetime import date from unicodedata import name from urllib import request import requests from bs4 import BeautifulSoup as bs import pandas as pd import datetime import os import zipfile import glob CoinName= input('Enter the coin name: ').upper() duration= input('Enter the duration of data you w...
34.291667
177
0.681247
0
0
0
0
0
0
0
0
1,011
0.409478
26e61f306df9220c42f34738c067514777287317
19,370
py
Python
api/api.py
geoai-lab/GeoAnnotator
6d5ee22888571f5ffefdb1d2f2455eaa9e5054f3
[ "MIT" ]
1
2022-02-14T20:43:41.000Z
2022-02-14T20:43:41.000Z
api/api.py
geoai-lab/GeoAnnotator
6d5ee22888571f5ffefdb1d2f2455eaa9e5054f3
[ "MIT" ]
null
null
null
api/api.py
geoai-lab/GeoAnnotator
6d5ee22888571f5ffefdb1d2f2455eaa9e5054f3
[ "MIT" ]
null
null
null
from flask import Flask, jsonify, request, session,redirect, url_for import bcrypt from flask_sqlalchemy import SQLAlchemy from sqlalchemy.sql import func from sqlalchemy.exc import IntegrityError import os from sqlalchemy.orm import load_only from flask_bcrypt import Bcrypt import urllib.parse from itertools import g...
40.10352
257
0.663087
0
0
0
0
17,008
0.878014
0
0
9,652
0.498271
26e97e5ea8220154eb41374939938275b9e537b0
741
py
Python
AppPython/app/core/src/forms.py
denalme/AplicacionPython
eb99af3c21f003135192ad040a0a04a40b63ea70
[ "MIT" ]
null
null
null
AppPython/app/core/src/forms.py
denalme/AplicacionPython
eb99af3c21f003135192ad040a0a04a40b63ea70
[ "MIT" ]
null
null
null
AppPython/app/core/src/forms.py
denalme/AplicacionPython
eb99af3c21f003135192ad040a0a04a40b63ea70
[ "MIT" ]
null
null
null
from django import forms from .pqrsf import pqrsf class ContactForm(forms.Form): #Atributos del formulario de contacto usuario = forms.CharField(label="Nombre", required=True, widget=forms.TextInput(attrs={'class':'formulario input', 'placeholder':'Nombre'})) correo = forms.EmailField(label="Correo Electr...
74.1
167
0.747638
691
0.930013
0
0
0
0
0
0
281
0.378197
26ec29318bc12813be99da269d94707649d0104c
3,244
py
Python
prisma/generated/models.py
mao-shonen/prisma-client-py-tortoise-orm
e26d8451ea0775bd7ddfec42f663510434537a77
[ "MIT" ]
null
null
null
prisma/generated/models.py
mao-shonen/prisma-client-py-tortoise-orm
e26d8451ea0775bd7ddfec42f663510434537a77
[ "MIT" ]
null
null
null
prisma/generated/models.py
mao-shonen/prisma-client-py-tortoise-orm
e26d8451ea0775bd7ddfec42f663510434537a77
[ "MIT" ]
null
null
null
__doc__ = ''' This file is generated by the `prisma-client-py-tortoise-orm (0.2.2)`, Please do not modify directly. repository: https://github.com/mao-shonen/prisma-client-py-tortoise-orm ''' import typing from enum import Enum from tortoise import fields from tortoise.models import Model from prisma import base as b...
30.317757
203
0.633785
2,941
0.886645
0
0
0
0
0
0
1,379
0.415737
26ed69ff9590d721e4368e521015afe41d5f9df5
2,536
py
Python
samples/people_on_stairs/classify_overspeeding/classify_overspeeding.py
vgvoleg/gst-video-analytics
7e4006551f38334bc59b2ef3d205273d07d40ce4
[ "MIT" ]
null
null
null
samples/people_on_stairs/classify_overspeeding/classify_overspeeding.py
vgvoleg/gst-video-analytics
7e4006551f38334bc59b2ef3d205273d07d40ce4
[ "MIT" ]
null
null
null
samples/people_on_stairs/classify_overspeeding/classify_overspeeding.py
vgvoleg/gst-video-analytics
7e4006551f38334bc59b2ef3d205273d07d40ce4
[ "MIT" ]
1
2020-05-14T15:30:03.000Z
2020-05-14T15:30:03.000Z
from os.path import join, realpath from os import listdir, environ import shlex import subprocess import pickle import json import pickle as pkl import time import numpy as np from copy import copy MODEL_PATH = ("/root/Projects/models/intel/person-detection-retail-0013/FP32" "/person-detection-retail-0...
32.101266
89
0.615536
801
0.315852
0
0
0
0
0
0
725
0.285883
26f0496f5cee5563d72ece3864af6c3cc42f430c
2,883
py
Python
indicators/migrations/0035_make_indicators_programs_foreignkey.py
mercycorps/TolaWorkflow
59542132fafd611081adb0e8cfaa04abc5886d7a
[ "Apache-2.0" ]
null
null
null
indicators/migrations/0035_make_indicators_programs_foreignkey.py
mercycorps/TolaWorkflow
59542132fafd611081adb0e8cfaa04abc5886d7a
[ "Apache-2.0" ]
268
2020-03-31T15:46:59.000Z
2022-03-31T18:01:08.000Z
indicators/migrations/0035_make_indicators_programs_foreignkey.py
Falliatcom-sa/falliatcom
39fb926de072c296ed32d50cccfb8003ca870739
[ "Apache-2.0" ]
1
2021-01-05T01:58:24.000Z
2021-01-05T01:58:24.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.2 on 2018-11-06 08:34 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion def set_temp_program_id(apps, schema_editor): Indicator = apps.get_model('indicators', 'Indicator') for indicator in Indic...
36.493671
105
0.622962
1,776
0.616025
0
0
0
0
0
0
651
0.225806
26f1b913f1ee12f1e92139c51f5d8c9e44276d06
4,335
py
Python
pymockserver/client.py
MXWest/py-mockserver
cd0783aac2e5c1b8a021c29a4c70ef5414b7f7cc
[ "MIT" ]
3
2018-06-14T19:44:05.000Z
2020-12-14T04:33:21.000Z
pymockserver/client.py
MXWest/py-mockserver
cd0783aac2e5c1b8a021c29a4c70ef5414b7f7cc
[ "MIT" ]
4
2020-02-01T16:20:18.000Z
2021-03-23T14:43:54.000Z
pymockserver/client.py
MXWest/py-mockserver
cd0783aac2e5c1b8a021c29a4c70ef5414b7f7cc
[ "MIT" ]
2
2020-02-01T16:25:50.000Z
2021-03-23T13:06:25.000Z
import requests import json from urllib3.exceptions import HTTPError class Client(object): """Client to connect to the mockserver""" def __init__(self, host='localhost', port=1080): """ Class initialization :param str host: host of the mockserver :param int port: port of th...
29.290541
90
0.514418
4,262
0.98316
0
0
0
0
0
0
1,624
0.374625
26f481dfc45ad24d352172f8f79006991163fc28
5,277
py
Python
workflow/executors/validation_tasks.py
mettadatalabs1/oncoscape-datapipeline
9c3209ba88831c3f1c598182c719ce45b4724fff
[ "Apache-2.0" ]
null
null
null
workflow/executors/validation_tasks.py
mettadatalabs1/oncoscape-datapipeline
9c3209ba88831c3f1c598182c719ce45b4724fff
[ "Apache-2.0" ]
null
null
null
workflow/executors/validation_tasks.py
mettadatalabs1/oncoscape-datapipeline
9c3209ba88831c3f1c598182c719ce45b4724fff
[ "Apache-2.0" ]
null
null
null
from validators.validation_configurator import ValidationConfigurator from pipeline.models import InputFile class HugoValidator(object): # hugo_genes_map (Dictionary): a dictionary that has the hugo genes and # respective aliases. Each entry is db:{gene: Set(aliases),}. # This is created the first time th...
49.783019
83
0.617965
2,438
0.462005
0
0
1,863
0.353042
0
0
2,287
0.43339
26f602e46a5eecf3c443505b6bc8ba0c321a760e
1,290
py
Python
pytglib/api/types/input_message_video_note.py
iTeam-co/pytglib
e5e75e0a85f89b77762209b32a61b0a883c0ae61
[ "MIT" ]
6
2019-10-30T08:57:27.000Z
2021-02-08T14:17:43.000Z
pytglib/api/types/input_message_video_note.py
iTeam-co/python-telegram
e5e75e0a85f89b77762209b32a61b0a883c0ae61
[ "MIT" ]
1
2021-08-19T05:44:10.000Z
2021-08-19T07:14:56.000Z
pytglib/api/types/input_message_video_note.py
iTeam-co/python-telegram
e5e75e0a85f89b77762209b32a61b0a883c0ae61
[ "MIT" ]
5
2019-12-04T05:30:39.000Z
2021-05-21T18:23:32.000Z
from ..utils import Object class InputMessageVideoNote(Object): """ A video note message Attributes: ID (:obj:`str`): ``InputMessageVideoNote`` Args: video_note (:class:`telegram.api.types.InputFile`): Video note to be sent thumbnail (:class:`telegram.api.type...
28.666667
77
0.615504
1,258
0.975194
0
0
324
0.251163
0
0
714
0.553488
26f6c233aae91fb0635319c24ac7a5452088a65f
520
py
Python
gdc_readgroups/exceptions.py
NCI-GDC/gdc-readgroups
874387bb3473b0a0680551339e50b072cc058eb6
[ "Apache-2.0" ]
null
null
null
gdc_readgroups/exceptions.py
NCI-GDC/gdc-readgroups
874387bb3473b0a0680551339e50b072cc058eb6
[ "Apache-2.0" ]
null
null
null
gdc_readgroups/exceptions.py
NCI-GDC/gdc-readgroups
874387bb3473b0a0680551339e50b072cc058eb6
[ "Apache-2.0" ]
1
2020-01-23T22:07:10.000Z
2020-01-23T22:07:10.000Z
""" Exceptions for Read Group headers """ class NoReadGroupError(Exception): """NoReadGroupError""" class SamtoolsViewError(Exception): """SamtoolsViewError""" class InvalidPlatformError(Exception): """InvalidPlatformError""" class InvalidPlatformModelError(Exception): """InvalidPlatformError""" cl...
20.8
43
0.746154
464
0.892308
0
0
0
0
0
0
211
0.405769
26f984eeef056e7ffe65f198d0e3689278e5fc57
2,098
py
Python
aiida_logger/calculations/test_calculations.py
SINTEF/aiida-logger
d97aced2ec8967cb359f488d2218cc3b47c92f6b
[ "MIT" ]
null
null
null
aiida_logger/calculations/test_calculations.py
SINTEF/aiida-logger
d97aced2ec8967cb359f488d2218cc3b47c92f6b
[ "MIT" ]
null
null
null
aiida_logger/calculations/test_calculations.py
SINTEF/aiida-logger
d97aced2ec8967cb359f488d2218cc3b47c92f6b
[ "MIT" ]
null
null
null
""" Tests for calculations. """ from __future__ import print_function from __future__ import absolute_import import os import numpy as np def test_process(logger_code): """ Test running a calculation. Also checks its outputs. """ from aiida.plugins import DataFactory, CalculationFactory fr...
29.138889
84
0.594376
0
0
0
0
0
0
0
0
635
0.302669
26fb61ab1de0e800a79d50ca5f9597cf8788e433
2,155
py
Python
db_sheet/sheet_table.py
chowmean/DBSheet
3f1c521320cb3564c4ff55cd70c8a1978dd32a4c
[ "Apache-2.0" ]
3
2017-08-18T20:04:12.000Z
2021-01-08T12:23:43.000Z
db_sheet/sheet_table.py
chowmean/DBSheet
3f1c521320cb3564c4ff55cd70c8a1978dd32a4c
[ "Apache-2.0" ]
1
2021-06-01T23:13:57.000Z
2021-06-01T23:13:57.000Z
db_sheet/sheet_table.py
chowmean/DBSheet
3f1c521320cb3564c4ff55cd70c8a1978dd32a4c
[ "Apache-2.0" ]
null
null
null
class Table: def __init__(self, columns, name): self.columns = columns self.name = name class CreateTable: def __init__(self, table_obj, sheet_obj): self.table = table_obj self.sheet = sheet_obj def create_table(self): cols = len(self.table.columns) name = ...
28.733333
61
0.570766
2,149
0.997216
0
0
0
0
0
0
59
0.027378
26fd4d122991c7a14eaad9bffe766e315791616a
90
py
Python
root/ilikeit/MySQLCrashCourse/dbcom/tests/__init__.py
ChyiYaqing/chyidlTutorial
77e7f6f84f21537a58a8a8a42e31cf2e3dd31996
[ "MIT" ]
5
2018-10-17T05:57:39.000Z
2021-07-05T15:38:24.000Z
root/ilikeit/MySQLCrashCourse/dbcom/tests/__init__.py
ChyiYaqing/chyidlTutorial
77e7f6f84f21537a58a8a8a42e31cf2e3dd31996
[ "MIT" ]
2
2021-04-14T00:48:43.000Z
2021-04-14T02:20:50.000Z
root/ilikeit/MySQLCrashCourse/dbcom/tests/__init__.py
ChyiYaqing/chyidlTutorial
77e7f6f84f21537a58a8a8a42e31cf2e3dd31996
[ "MIT" ]
3
2019-03-02T14:36:19.000Z
2022-03-18T10:12:09.000Z
#!/usr/bin/env python3 # -*- coding:utf-8 -*- """Requests test package initialisation."""
22.5
43
0.655556
0
0
0
0
0
0
0
0
87
0.966667
26fdabbca3431190e788d02f52c14a320298b8ac
9,425
py
Python
discopy/components/sense/explicit/bert_conn_sense.py
rknaebel/discopy
5507d656987af2df9e595434a82c0a12bbc713e4
[ "MIT" ]
14
2019-04-14T16:10:23.000Z
2022-03-09T14:56:10.000Z
discopy/components/sense/explicit/bert_conn_sense.py
rknaebel/discopy
5507d656987af2df9e595434a82c0a12bbc713e4
[ "MIT" ]
15
2019-04-15T16:44:40.000Z
2021-11-23T17:36:41.000Z
discopy/components/sense/explicit/bert_conn_sense.py
rknaebel/discopy
5507d656987af2df9e595434a82c0a12bbc713e4
[ "MIT" ]
1
2020-02-28T23:36:35.000Z
2020-02-28T23:36:35.000Z
import json import logging import os from typing import List, Dict import click import numpy as np import tensorflow as tf from sklearn.metrics import cohen_kappa_score, precision_recall_fscore_support, accuracy_score from tqdm import tqdm from discopy.components.component import Component from discopy.components.con...
44.042056
119
0.634589
4,954
0.525623
0
0
1,240
0.131565
0
0
794
0.084244
f80409abd20022882a95d524c2584bb72123403a
533
py
Python
Perfect Squares.py
ngdeva99/Fulcrum
3a5c69005bbaf2a5aebe13d1907f13790210fb32
[ "MIT" ]
null
null
null
Perfect Squares.py
ngdeva99/Fulcrum
3a5c69005bbaf2a5aebe13d1907f13790210fb32
[ "MIT" ]
null
null
null
Perfect Squares.py
ngdeva99/Fulcrum
3a5c69005bbaf2a5aebe13d1907f13790210fb32
[ "MIT" ]
null
null
null
class Solution: def numSquares(self, n: int) -> int: if n==0: return 0 dp = [float('inf')]*(n+1) dp[0] = 0 c = n n = int(sqrt(n)) a = [i**2 for i in range(1,n+1)] for i in range(1,len(dp)): for j in a: ...
22.208333
48
0.320826
523
0.981238
0
0
0
0
0
0
10
0.018762
f8053be6ee69e87199ea558062ed1fe681dca092
361
py
Python
busshaming/models/agency.py
katharosada/busshaming
c8d7cd4baf9ff049cda49c92da4d5ca10f68e6a9
[ "MIT" ]
42
2018-01-20T01:12:25.000Z
2022-02-02T01:40:17.000Z
busshaming/models/agency.py
katharosada/busshaming
c8d7cd4baf9ff049cda49c92da4d5ca10f68e6a9
[ "MIT" ]
2
2018-01-24T03:58:17.000Z
2018-06-10T01:05:57.000Z
busshaming/models/agency.py
katharosada/busshaming
c8d7cd4baf9ff049cda49c92da4d5ca10f68e6a9
[ "MIT" ]
7
2018-01-24T05:49:13.000Z
2018-12-03T08:47:43.000Z
from django.db import models class Agency(models.Model): gtfs_agency_id = models.CharField(max_length=200) feed = models.ForeignKey('Feed') name = models.CharField(max_length=200) class Meta: unique_together = ('gtfs_agency_id', 'feed') def __str__(self): return f'{self.feed.slug...
25.785714
72
0.67867
329
0.911357
0
0
0
0
0
0
85
0.235457
f805d1c83458a20d7c8be553923b41b8d8630a7f
328
py
Python
sqltask/base/dq.py
mjalo/sqltask
f6eefd624614a464ae5697ac61405416244518e2
[ "MIT" ]
10
2019-10-09T15:34:13.000Z
2022-02-21T07:44:03.000Z
sqltask/base/dq.py
mjalo/sqltask
f6eefd624614a464ae5697ac61405416244518e2
[ "MIT" ]
23
2019-10-09T15:20:01.000Z
2020-02-08T11:51:24.000Z
sqltask/base/dq.py
mjalo/sqltask
f6eefd624614a464ae5697ac61405416244518e2
[ "MIT" ]
4
2019-10-09T15:20:51.000Z
2020-02-11T08:43:03.000Z
from enum import Enum class Priority(Enum): MANDATORY = "mandatory" HIGH = "high" MEDIUM = "medium" LOW = "low" class Source(Enum): SOURCE = "source" TRANSFORM = "transform" LOOKUP = "lookup" class Category(Enum): MISSING = "missing" INCORRECT = "incorrect" DUPLICATE = "dup...
15.619048
27
0.618902
297
0.905488
0
0
0
0
0
0
88
0.268293
f80628afca18060801db523544822b454ace8ecb
2,386
py
Python
main.py
deadpoool69/MediCare
eb45149dd14dc3792ef3ea724c61d46a29718068
[ "MIT" ]
null
null
null
main.py
deadpoool69/MediCare
eb45149dd14dc3792ef3ea724c61d46a29718068
[ "MIT" ]
null
null
null
main.py
deadpoool69/MediCare
eb45149dd14dc3792ef3ea724c61d46a29718068
[ "MIT" ]
null
null
null
from flask import Flask, render_template, request, url_for, redirect from forms import * from model import generate_recommendations, get_desc import os app = Flask(__name__) SECRET_KEY = os.urandom(32) app.config['SECRET_KEY'] = SECRET_KEY @app.route('/', methods=["GET", "POST"]) def landing(): title = 'Neurolens...
38.483871
102
0.670159
0
0
0
0
2,069
0.867142
0
0
480
0.201174
f8065cbbdc71ae71f6d602d2671a71b28b0eea4a
2,057
py
Python
tools/draw_comparison_head_design_choices.py
twangnh/Calibration_mrcnn
e5f3076cefbe35297a403a753bb57e11503db818
[ "Apache-2.0" ]
87
2020-07-24T01:28:39.000Z
2021-08-29T08:40:18.000Z
tools/draw_comparison_head_design_choices.py
twangnh/Calibration_mrcnn
e5f3076cefbe35297a403a753bb57e11503db818
[ "Apache-2.0" ]
3
2020-09-27T12:59:28.000Z
2022-01-06T13:14:08.000Z
tools/draw_comparison_head_design_choices.py
twangnh/Calibration_mrcnn
e5f3076cefbe35297a403a753bb57e11503db818
[ "Apache-2.0" ]
20
2020-09-05T04:37:19.000Z
2021-12-13T02:25:48.000Z
import matplotlib import matplotlib.pyplot as plt import numpy as np labels = ['AP on bin (0,10)', 'AP on bin (10,100)'] baseline = [0.0, 13.3] fc2_ncm = [6.0, 18.9] fc2 = [8.6, 22.0] fc3_rand = [9.1, 18.8] fc3_ft = [13.2, 23.1] x = np.arange(len(labels)) # the label locations width = 0.15 # the width of the bars ...
31.166667
96
0.6456
0
0
0
0
0
0
0
0
741
0.360233
f807e6a714508c55a5204cce88f3927910a26a1e
9,916
py
Python
src/entry.py
akilmarshall/vash-2
5307bc414afba24b235ae0ae9b2583c33ea69b1f
[ "MIT" ]
null
null
null
src/entry.py
akilmarshall/vash-2
5307bc414afba24b235ae0ae9b2583c33ea69b1f
[ "MIT" ]
null
null
null
src/entry.py
akilmarshall/vash-2
5307bc414afba24b235ae0ae9b2583c33ea69b1f
[ "MIT" ]
null
null
null
from datetime import datetime from itertools import count from tkinter import * import tkinter.ttk as ttk from functools import partial from tkcalendar import DateEntry from case import COD, CONTRIES, Case, INCIDENT, ORGANIZATION, POLICESTATION, STATES from db import referred_other_agency from preview import CasePrev...
38.583658
93
0.588846
9,479
0.95593
0
0
0
0
0
0
903
0.091065
f8082f1e3f5f385cac811686714cd680277f4584
7,406
py
Python
repro_eval/__main__.py
irgroup/repro_eval
35a4cf083dbb5f4b29d6ef602a604f0686a537c9
[ "MIT" ]
8
2020-10-27T02:11:53.000Z
2022-03-02T11:00:10.000Z
repro_eval/__main__.py
irgroup/repro_eval
35a4cf083dbb5f4b29d6ef602a604f0686a537c9
[ "MIT" ]
2
2021-01-25T19:59:39.000Z
2021-12-07T09:29:01.000Z
repro_eval/__main__.py
irgroup/repro_eval
35a4cf083dbb5f4b29d6ef602a604f0686a537c9
[ "MIT" ]
1
2021-04-16T16:21:16.000Z
2021-04-16T16:21:16.000Z
""" Use repro_eval from the command line with e.g. python -m repro_eval -t rpd -q qrel_orig -r orig_b rpd_b python -m repro_eval -t rpd -q qrel_orig -r orig_b orig_a rpd_b rpd_a python -m repro_eval -t rpd -m rmse -q qrel_orig -r orig_b rpd_b python -m repro_eval -t rpl -q qrel_orig qrel_rpl -r orig_b rpl_b python...
43.309942
109
0.498785
0
0
0
0
0
0
0
0
1,967
0.265595
f809139d6c632c257d27b2da4aee81ff3ca5dcc2
2,377
py
Python
main.py
juligreen/towerdefense-prototype
1cdac58acf697ca856a60dec6533caed17acf656
[ "MIT" ]
null
null
null
main.py
juligreen/towerdefense-prototype
1cdac58acf697ca856a60dec6533caed17acf656
[ "MIT" ]
null
null
null
main.py
juligreen/towerdefense-prototype
1cdac58acf697ca856a60dec6533caed17acf656
[ "MIT" ]
null
null
null
import math from game_objects import Turret, Troop players = [] class Location: def __init__(self, x: int, y: int): self.x = x self.y = y class Lane: # for this prototype we are going to imagine our lanes as straight lines def __init__(self, left_start_location: Location, right_start_l...
30.088608
94
0.636096
1,401
0.589398
0
0
0
0
0
0
316
0.132941
f8094b25e0893a5bce69fe2d108d090003595a0e
7,110
py
Python
bib_processing.py
GAIGResearch/GAIGResearch.github.io
90d0555348ad8f3f500b6480168ad65fa0226dce
[ "MIT" ]
null
null
null
bib_processing.py
GAIGResearch/GAIGResearch.github.io
90d0555348ad8f3f500b6480168ad65fa0226dce
[ "MIT" ]
null
null
null
bib_processing.py
GAIGResearch/GAIGResearch.github.io
90d0555348ad8f3f500b6480168ad65fa0226dce
[ "MIT" ]
2
2019-07-09T11:08:15.000Z
2020-12-04T14:55:00.000Z
import os from pathlib import Path from difflib import SequenceMatcher supported_bibtex_types = {"article", "book", "booklet", "inbook", "incollection", "inproceedings", "manual", "mastersthesis", "misc", "phdthesis", "proceedings", "techreport", "unpublished"} supported_fields = ["author",...
33.696682
119
0.568636
0
0
0
0
0
0
0
0
2,093
0.294374
f80a066211d5845a2d19529db9ed13271bcad6dc
2,105
py
Python
browser.py
7Cortez7/instagram-giveaway-bot
43246e3ded06ea3a6cbf2ef20164b229fe90ee0e
[ "MIT" ]
null
null
null
browser.py
7Cortez7/instagram-giveaway-bot
43246e3ded06ea3a6cbf2ef20164b229fe90ee0e
[ "MIT" ]
null
null
null
browser.py
7Cortez7/instagram-giveaway-bot
43246e3ded06ea3a6cbf2ef20164b229fe90ee0e
[ "MIT" ]
null
null
null
from selenium import webdriver import time import userdata as udata import random randomUsers = set() class Browser: def __init__(self, link): self.link = link self.browser = webdriver.Chrome() Browser.Instagram(self) Browser.Login(self) Browser.goFollowers(s...
31.893939
121
0.59715
1,979
0.937027
0
0
0
0
0
0
434
0.205492
f80b2ee49671a1d6b544de429dd777345fa6df27
246
py
Python
HackerRank/PythonHackerRankSolutions/Numpy/LinearAlgebra.py
accidentalgenius09/competitive-programming-solution
210746a7928dcd601ad9a735de52cf7135851070
[ "MIT" ]
8
2020-08-03T01:53:13.000Z
2022-01-09T14:47:58.000Z
HackerRank/PythonHackerRankSolutions/Numpy/LinearAlgebra.py
accidentalgenius09/competitive-programming-solution
210746a7928dcd601ad9a735de52cf7135851070
[ "MIT" ]
null
null
null
HackerRank/PythonHackerRankSolutions/Numpy/LinearAlgebra.py
accidentalgenius09/competitive-programming-solution
210746a7928dcd601ad9a735de52cf7135851070
[ "MIT" ]
4
2020-09-29T11:28:53.000Z
2021-06-02T15:34:55.000Z
''' Title : Linear Algebra Subdomain : Numpy Domain : Python Author : codeperfectplus Created : 10 May 2020 ''' import numpy n=int(input()) a=numpy.array([input().split() for _ in range(n)],float) print(round(numpy.linalg.det(a),2))
18.923077
56
0.670732
0
0
0
0
0
0
0
0
123
0.5
f80c608952146d7fe3d7ed75d5f4bc0dc27ba8ce
774
py
Python
pyretri/index/dim_processor/dim_processors_impl/l2_normalize.py
dongan-beta/PyRetri
8756d5d5813a5211b58855373b6c6cd33d7a11f6
[ "Apache-2.0" ]
1,063
2020-04-21T12:42:05.000Z
2022-03-31T06:32:50.000Z
pyretri/index/dim_processor/dim_processors_impl/l2_normalize.py
dongan-beta/PyRetri
8756d5d5813a5211b58855373b6c6cd33d7a11f6
[ "Apache-2.0" ]
39
2020-05-07T07:24:19.000Z
2022-02-02T23:49:23.000Z
pyretri/index/dim_processor/dim_processors_impl/l2_normalize.py
dongan-beta/PyRetri
8756d5d5813a5211b58855373b6c6cd33d7a11f6
[ "Apache-2.0" ]
174
2020-04-26T04:33:11.000Z
2022-03-17T02:58:45.000Z
# -*- coding: utf-8 -*- import numpy as np from ..dim_processors_base import DimProcessorBase from ...registry import DIMPROCESSORS from sklearn.preprocessing import normalize from typing import Dict, List @DIMPROCESSORS.register class L2Normalize(DimProcessorBase): """ L2 normalize the features. """ ...
27.642857
75
0.666667
539
0.696382
0
0
563
0.72739
0
0
246
0.317829
f80ccbd3e3b59f33892aafb3cc6b1f95f360dd40
1,631
py
Python
test_csv_write.py
wandyrandy/Groupme-Group-Stats-Report
25a59b715a7555540695639de81db390f09eb122
[ "MIT" ]
2
2019-08-13T21:50:32.000Z
2019-08-14T00:49:29.000Z
test_csv_write.py
wandyrandy/Groupme-Group-Stats-Report
25a59b715a7555540695639de81db390f09eb122
[ "MIT" ]
null
null
null
test_csv_write.py
wandyrandy/Groupme-Group-Stats-Report
25a59b715a7555540695639de81db390f09eb122
[ "MIT" ]
null
null
null
import csv import person from random import randrange headers = ['Name', 'Messages', 'Char Count', 'Likes Given', 'Likes Received', 'Image URL'] #tester code people = ['bob', 'joe', 'gmo'] bob = person.Person(111, 'bob', 'www.bob.com', people) joe = person.Person(222, 'joe', 'www.joe.com', people) gmo = p...
31.980392
91
0.676272
0
0
0
0
0
0
0
0
290
0.177805
f80e19316ce840fcc2138b746a64f522d8f4566b
866
py
Python
app/wqFull/G200/testAll.py
fkwai/geolearn
30cb4353d22af5020a48100d07ab04f465a315b0
[ "MIT" ]
null
null
null
app/wqFull/G200/testAll.py
fkwai/geolearn
30cb4353d22af5020a48100d07ab04f465a315b0
[ "MIT" ]
null
null
null
app/wqFull/G200/testAll.py
fkwai/geolearn
30cb4353d22af5020a48100d07ab04f465a315b0
[ "MIT" ]
2
2021-04-04T02:45:59.000Z
2022-03-19T09:41:39.000Z
import pandas as pd from hydroDL.data import usgs, gageII, gridMET, ntn, GLASS, transform, dbBasin import numpy as np import matplotlib.pyplot as plt from hydroDL.post import axplot, figplot from hydroDL import kPath, utils import json import os import importlib from hydroDL.master import basinFull from hydroDL.app.wa...
29.862069
78
0.706697
0
0
0
0
0
0
0
0
178
0.205543
f80f8be872541cb1fed210e79dd3fff53a87f8a4
9,733
py
Python
tests/test_Dirichlet_NL_Poisson.py
bond-anton/BDPoisson1D
538cedc187ce83e90f340cc085738671d325d2e1
[ "Apache-2.0" ]
null
null
null
tests/test_Dirichlet_NL_Poisson.py
bond-anton/BDPoisson1D
538cedc187ce83e90f340cc085738671d325d2e1
[ "Apache-2.0" ]
2
2017-07-21T22:10:19.000Z
2018-07-14T21:39:07.000Z
tests/test_Dirichlet_NL_Poisson.py
bond-anton/BDPoisson1D
538cedc187ce83e90f340cc085738671d325d2e1
[ "Apache-2.0" ]
null
null
null
import math as m import numpy as np from BDMesh import Mesh1DUniform from BDFunction1D import Function from BDFunction1D.Functional import Functional from BDFunction1D.Interpolation import InterpolateFunction from BDPoisson1D.DirichletNonLinear import dirichlet_non_linear_poisson_solver_arrays from BDPoisson1D.Dirich...
44.646789
111
0.552348
8,976
0.922223
0
0
0
0
0
0
16
0.001644
f810064772dd89a3265f0776de267483682a707d
23,282
py
Python
trtools/dumpSTR/tests/test_dumpSTR.py
Kulivox/TRTools
ea05f9126f5145405cced8fd85821ce929657b3a
[ "MIT" ]
14
2020-04-20T15:38:52.000Z
2022-02-07T11:45:23.000Z
trtools/dumpSTR/tests/test_dumpSTR.py
Kulivox/TRTools
ea05f9126f5145405cced8fd85821ce929657b3a
[ "MIT" ]
74
2020-03-02T23:34:53.000Z
2022-03-21T18:32:10.000Z
trtools/dumpSTR/tests/test_dumpSTR.py
Kulivox/TRTools
ea05f9126f5145405cced8fd85821ce929657b3a
[ "MIT" ]
15
2018-10-29T19:41:33.000Z
2020-02-21T18:41:51.000Z
import argparse import gzip import os import pytest from ..dumpSTR import * from trtools.testsupport.utils import assert_same_vcf, assert_same_file # Set up base argparser @pytest.fixture def args(tmpdir): args = argparse.ArgumentParser() args.vcf = None args.vcftype = "auto" args.out = str(tmpdir /...
34.038012
129
0.683489
0
0
0
0
1,725
0.074092
0
0
5,921
0.254317
f81030a9747b6fbce3be0c3890586bc3da2d99c2
27,895
py
Python
nova/network/ldapdns.py
bopopescu/nova-token
ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2
[ "Apache-2.0" ]
null
null
null
nova/network/ldapdns.py
bopopescu/nova-token
ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2
[ "Apache-2.0" ]
null
null
null
nova/network/ldapdns.py
bopopescu/nova-token
ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2
[ "Apache-2.0" ]
2
2017-07-20T17:31:34.000Z
2020-07-24T02:42:19.000Z
begin_unit comment|'# Copyright 2012 Andrew Bogott for the Wikimedia Foundation' nl|'\n' comment|'#' nl|'\n' comment|'# Licensed under the Apache License, Version 2.0 (the "License"); you may' nl|'\n' comment|'# not use this file except in compliance with the License. You may obtain' nl|'\n' comment|'# a copy ...
12.044473
174
0.578276
0
0
0
0
0
0
0
0
14,016
0.502456
f81075d9a768c275f1cbe075abbbe7e3dce2e3c6
2,554
py
Python
src/weekly_contest_251/1946_largest-number-after-mutating-substring.py
dongminlee94/leetcode-practice
4d33816d66df8ab447087a04b76008f6bec51f23
[ "MIT" ]
null
null
null
src/weekly_contest_251/1946_largest-number-after-mutating-substring.py
dongminlee94/leetcode-practice
4d33816d66df8ab447087a04b76008f6bec51f23
[ "MIT" ]
null
null
null
src/weekly_contest_251/1946_largest-number-after-mutating-substring.py
dongminlee94/leetcode-practice
4d33816d66df8ab447087a04b76008f6bec51f23
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ 1946. Largest Number After Mutating Substring https://leetcode.com/problems/largest-number-after-mutating-substring/ Example 1: Input: num = "132", change = [9,8,5,0,3,6,4,2,6,8] Output: "832" Explanation: Replace the substring "1": - 1 maps to change[1] = 8. Thus, "132" becomes "832". "8...
30.047059
98
0.523101
1,694
0.663273
0
0
0
0
0
0
1,002
0.392326
f810c90f204568fd67dca941d0e6266424f5517d
261
py
Python
test/unit/bot/test_bot.py
kubicki14/BurtTheCardKing
d0854ea08ffdffee687830097b0645069e263d9d
[ "MIT" ]
null
null
null
test/unit/bot/test_bot.py
kubicki14/BurtTheCardKing
d0854ea08ffdffee687830097b0645069e263d9d
[ "MIT" ]
1
2020-03-04T04:39:20.000Z
2020-03-04T04:39:20.000Z
test/unit/bot/test_bot.py
kubicki14/BurtTheCardKing
d0854ea08ffdffee687830097b0645069e263d9d
[ "MIT" ]
null
null
null
import pytest from bot.bot import Bot class TestBotClass: # Can't instantiate abstract classes. skipping test for abstract class. def setup(self): self.bot = 1 def test_init(self): test_bot = 1 assert test_bot == self.bot
20.076923
75
0.659004
220
0.842912
0
0
0
0
0
0
71
0.272031
f8125fde876b086f96371a2951d0cf190eba3f48
1,437
py
Python
Hackerrank/30DaysOfCode/Day9-Recursion3.py
eduardormonteiro/PythonPersonalLibrary
561733bb8305c4e25a08f99c28b60ec77251ad67
[ "MIT" ]
null
null
null
Hackerrank/30DaysOfCode/Day9-Recursion3.py
eduardormonteiro/PythonPersonalLibrary
561733bb8305c4e25a08f99c28b60ec77251ad67
[ "MIT" ]
null
null
null
Hackerrank/30DaysOfCode/Day9-Recursion3.py
eduardormonteiro/PythonPersonalLibrary
561733bb8305c4e25a08f99c28b60ec77251ad67
[ "MIT" ]
null
null
null
""" Hackerrank Day 9: Recursion 3 https://www.hackerrank.com/challenges/30-recursion/problem?h_r=email&unlock_token=bc6d5f3963afb26ed0b2f69c3f4f3ddb1826e1b2&utm_campaign=30_days_of_code_continuous&utm_medium=email&utm_source=daily_reminder Objective Today, we are learning about an algorithmic concept called recursion....
22.809524
205
0.76618
0
0
0
0
0
0
0
0
1,148
0.798887
f8126dd049c2dae8dffb8bb81f37f683297e9ca7
408
py
Python
todolist/main/models.py
gda2048/TODOlist
cc6c359ab0a8d2f43ed82b19dfc0eb5d640f8b9f
[ "MIT" ]
1
2019-12-19T19:04:02.000Z
2019-12-19T19:04:02.000Z
todolist/main/models.py
gda2048/TODOlist
cc6c359ab0a8d2f43ed82b19dfc0eb5d640f8b9f
[ "MIT" ]
5
2020-02-12T02:57:13.000Z
2021-12-13T20:02:16.000Z
todolist/main/models.py
gda2048/TODOlist
cc6c359ab0a8d2f43ed82b19dfc0eb5d640f8b9f
[ "MIT" ]
null
null
null
from django.db import models class Card(models.Model): """ Stores all information about the TODOlist item """ id = models.AutoField(primary_key=True) name = models.CharField('Название', max_length=50) description = models.TextField('Описание', max_length=500) is_archived = models.BooleanFi...
29.142857
68
0.70098
405
0.928899
0
0
0
0
0
0
124
0.284404
f812c1ff23e3b82b8ed9c4bca10c6b857649c53a
2,358
py
Python
src/qbrobot/util/log.py
jucuguru/crypto-robot-basic
3addaaff9fb2f41d8e9dcd66bae7ae7f75216704
[ "BSD-2-Clause" ]
null
null
null
src/qbrobot/util/log.py
jucuguru/crypto-robot-basic
3addaaff9fb2f41d8e9dcd66bae7ae7f75216704
[ "BSD-2-Clause" ]
null
null
null
src/qbrobot/util/log.py
jucuguru/crypto-robot-basic
3addaaff9fb2f41d8e9dcd66bae7ae7f75216704
[ "BSD-2-Clause" ]
null
null
null
import logging from qbrobot import qsettings try : from util import send_dingding except ImportError: DINGDING_CANUSE = False else: DINGDING_CANUSE = True """ class DingDingLogger pass all args to logger.method, and call dingding.send_msg() 1. debug message don't send to dingding. 2....
25.912088
116
0.651399
909
0.385496
0
0
0
0
0
0
830
0.351993
f81309425c4d43dc4fcef12218a6de6d14c72768
722
py
Python
Country cleaning/Chile/PRT/OfflineRB.py
Demonliquid/cars-python-cleaning
91c516a33c4522114dc024cfaf04f1c1d594f973
[ "MIT" ]
null
null
null
Country cleaning/Chile/PRT/OfflineRB.py
Demonliquid/cars-python-cleaning
91c516a33c4522114dc024cfaf04f1c1d594f973
[ "MIT" ]
null
null
null
Country cleaning/Chile/PRT/OfflineRB.py
Demonliquid/cars-python-cleaning
91c516a33c4522114dc024cfaf04f1c1d594f973
[ "MIT" ]
null
null
null
# %% import os import pandas as pd import numpy as np import datetime # %% CARGA DE DATOS path = r'F:\Trabajo\Promotive\Chile\PRT\7\CSV\3' os.chdir(path) files = os.listdir(path) files # %% files_xls = [f for f in files if f[-3:] == 'csv'] files_xls # %% columnas = ['PPU', 'MARCA', 'MODELO', 'ANO_FABRICACION', 'NU...
17.609756
90
0.65651
0
0
0
0
0
0
0
0
245
0.339335
f815471c4b7feac192ccd8f44032afcd4c9605be
3,850
py
Python
datasets/lfw_crop.py
laoreja/face-identity-transformer
5569d93017ad9371deae7e2b35564523c64b501e
[ "BSD-3-Clause" ]
13
2020-10-09T07:15:02.000Z
2022-03-28T20:51:30.000Z
datasets/lfw_crop.py
laoreja/face-identity-transformer
5569d93017ad9371deae7e2b35564523c64b501e
[ "BSD-3-Clause" ]
2
2021-03-03T15:04:51.000Z
2021-06-02T03:42:03.000Z
datasets/lfw_crop.py
laoreja/face-identity-transformer
5569d93017ad9371deae7e2b35564523c64b501e
[ "BSD-3-Clause" ]
5
2021-03-02T11:44:19.000Z
2021-07-09T16:42:02.000Z
import os.path as osp import numpy as np from PIL import Image import torch.utils.data as data import torch __all__ = ['LFW_CROP'] EXTENSION_FACTOR = 2 class LFW_CROP(data.Dataset): def __init__(self, train, transform, args): self.root = osp.join(args.data_root, 'lfw') self.transform = transfor...
37.745098
114
0.540779
3,692
0.958961
0
0
0
0
0
0
222
0.057662
f816945723bd501f06ebbe8199fa11cd256a3a52
1,065
py
Python
test.py
JFF-Bohdan/pyimei
d881f4a11374d29828867e2de397d1fcc8413d25
[ "MIT" ]
1
2021-07-29T17:39:34.000Z
2021-07-29T17:39:34.000Z
test.py
JFF-Bohdan/pyimei
d881f4a11374d29828867e2de397d1fcc8413d25
[ "MIT" ]
null
null
null
test.py
JFF-Bohdan/pyimei
d881f4a11374d29828867e2de397d1fcc8413d25
[ "MIT" ]
3
2018-08-07T08:01:01.000Z
2020-03-24T17:14:31.000Z
from pyimei import ImeiSupport def checkImeisArray(imeis): for imei in imeis: if ImeiSupport.isValid(imei): print("IMEI: '{}' is valid".format(imei)) else: print("IMEI '{}' is NOT valid".format(imei)) #testing classes ImeiSupport.test() valid_imeis = [ 356...
23.152174
73
0.66385
0
0
0
0
0
0
0
0
234
0.219718
f816d939ecc6c4f196c356dcf81afa3b4caf0b94
2,175
py
Python
aioauth/responses.py
grmnz/aioauth
e69c989bc81284d60798599816c39ff91074a24b
[ "MIT" ]
null
null
null
aioauth/responses.py
grmnz/aioauth
e69c989bc81284d60798599816c39ff91074a24b
[ "MIT" ]
null
null
null
aioauth/responses.py
grmnz/aioauth
e69c989bc81284d60798599816c39ff91074a24b
[ "MIT" ]
null
null
null
""" .. code-block:: python from aioauth import responses Response objects used throughout the project. ---- """ from dataclasses import dataclass, field from http import HTTPStatus from typing import Dict from .collections import HTTPHeaderDict from .constances import default_headers from .types import ErrorTyp...
20.518868
111
0.722299
1,730
0.795402
0
0
1,818
0.835862
0
0
1,078
0.495632
f818d292ca6f1460d6aa1027f16f35e13ba6829c
5,441
py
Python
fipomdp/experiments/NYC_experiment.py
xbrlej/FiPOMDP
b7a97aaaf43a43e5ee9b8776c0e7f6d0bb09392f
[ "MIT" ]
null
null
null
fipomdp/experiments/NYC_experiment.py
xbrlej/FiPOMDP
b7a97aaaf43a43e5ee9b8776c0e7f6d0bb09392f
[ "MIT" ]
null
null
null
fipomdp/experiments/NYC_experiment.py
xbrlej/FiPOMDP
b7a97aaaf43a43e5ee9b8776c0e7f6d0bb09392f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import logging import platform import time from functools import partial from statistics import stdev from typing import List, Tuple, Dict, Union, Any import psutil from joblib import Parallel, delayed from fimdp.objectives import BUCHI from fipomdp import ConsPOMDP from fipomdp.energy_solvers ...
33.58642
147
0.695093
0
0
0
0
0
0
0
0
1,432
0.263187
f818e9acfc35ef6a4d51efdba0e1aa6dcf47703d
399
py
Python
examples/connect_to_wifi.py
flaiming/TechFurMeet-Micropython
00ff427429dfc186e33aa5e77bafe39eb820b854
[ "MIT" ]
1
2018-01-19T12:05:32.000Z
2018-01-19T12:05:32.000Z
examples/connect_to_wifi.py
flaiming/TechFurMeet-Micropython
00ff427429dfc186e33aa5e77bafe39eb820b854
[ "MIT" ]
null
null
null
examples/connect_to_wifi.py
flaiming/TechFurMeet-Micropython
00ff427429dfc186e33aa5e77bafe39eb820b854
[ "MIT" ]
null
null
null
import network import time # deactivate AP ap = network.WLAN(network.AP_IF) ap.active(False) # activate static network wlan = network.WLAN(network.STA_IF) wlan.active(True) # connect to local WIFI wlan.connect('TFM-Attendees') # wait until connected while not wlan.isconnected(): print('connecting...') time....
19
49
0.736842
0
0
0
0
0
0
0
0
152
0.380952
f8197ad55d7f3b5e1e727b66b9aaef3047efa623
3,317
py
Python
hikcamerabot/services/tasks/video.py
CamVipQ/hikvision-camera-bot
84afa0a4dc2fc1ebda71b5020520dc1c300cf3b2
[ "MIT" ]
44
2019-03-07T00:25:44.000Z
2022-02-20T15:57:11.000Z
hikcamerabot/services/tasks/video.py
CamVipQ/hikvision-camera-bot
84afa0a4dc2fc1ebda71b5020520dc1c300cf3b2
[ "MIT" ]
25
2019-02-17T13:37:27.000Z
2022-03-22T16:11:46.000Z
hikcamerabot/services/tasks/video.py
CamVipQ/hikvision-camera-bot
84afa0a4dc2fc1ebda71b5020520dc1c300cf3b2
[ "MIT" ]
14
2019-06-28T05:40:10.000Z
2022-03-24T08:05:01.000Z
import asyncio import logging import os import time from addict import Addict from aiogram.types import Message from hikcamerabot.config.config import get_result_queue from hikcamerabot.constants import Event, VideoGifType from hikcamerabot.utils.utils import format_ts, gen_random_str class RecordVideoTask: _vi...
35.666667
88
0.621948
3,026
0.91227
0
0
0
0
1,857
0.559843
482
0.145312
f81adf96e79c10244b5314e809ea884419299412
71,349
py
Python
HyperOXO/hypercube.py
drtjc/Hyper
83579186d915de603d27b8757dfc5a0f82c6770e
[ "MIT" ]
null
null
null
HyperOXO/hypercube.py
drtjc/Hyper
83579186d915de603d27b8757dfc5a0f82c6770e
[ "MIT" ]
null
null
null
HyperOXO/hypercube.py
drtjc/Hyper
83579186d915de603d27b8757dfc5a0f82c6770e
[ "MIT" ]
null
null
null
""" Provides functionalilty for working with celled hypercubes. Hypercubes are extensions of lines, squares and cubes into higher dimensions. Celled hypercubes can be thought as a grid or lattice structure. From this point, hypercubes is used to mean celled hypercubes. A hypercube can be described by its dimension a...
30.374202
116
0.510575
0
0
17,170
0.240624
0
0
0
0
57,395
0.804347
f81ca2ce592e84428e81a66ce38e515a6ee5edcf
42
py
Python
firecloud/__about__.py
jnktsj/fiss
2cfce1f6dc0c43f62c51e8a9296946b9990a76fa
[ "BSD-3-Clause" ]
20
2017-08-05T08:44:51.000Z
2022-03-24T15:33:48.000Z
firecloud/__about__.py
jnktsj/fiss
2cfce1f6dc0c43f62c51e8a9296946b9990a76fa
[ "BSD-3-Clause" ]
117
2016-10-26T15:31:48.000Z
2022-02-16T23:06:33.000Z
firecloud/__about__.py
jnktsj/fiss
2cfce1f6dc0c43f62c51e8a9296946b9990a76fa
[ "BSD-3-Clause" ]
21
2017-03-13T15:16:03.000Z
2022-02-25T19:14:36.000Z
# Package version __version__ = "0.16.31"
14
23
0.714286
0
0
0
0
0
0
0
0
26
0.619048
f81ce517b53ccd795c4a506f2213bfeafa42c8e0
255
py
Python
django_selectel_storage/exceptions.py
Stuvros/django-selectel-storage
076f7e3c58d9391e2e7e27feb0526736d101c2b5
[ "MIT" ]
27
2015-01-28T09:17:09.000Z
2021-06-21T20:48:01.000Z
django_selectel_storage/exceptions.py
Stuvros/django-selectel-storage
076f7e3c58d9391e2e7e27feb0526736d101c2b5
[ "MIT" ]
9
2015-08-07T15:03:00.000Z
2020-05-01T04:54:02.000Z
django_selectel_storage/exceptions.py
Stuvros/django-selectel-storage
076f7e3c58d9391e2e7e27feb0526736d101c2b5
[ "MIT" ]
19
2015-05-20T14:16:25.000Z
2022-03-31T06:31:59.000Z
class SelectelException(ValueError): pass class InvalidSchema(SelectelException): pass class EmptyUsername(SelectelException): pass class EmptyPassword(SelectelException): pass class EmptyContainerName(SelectelException): pass
13.421053
44
0.772549
242
0.94902
0
0
0
0
0
0
0
0
f81e6f765fb2c951a1b3a358bc3ab07fe69f4752
11,140
py
Python
simpa_tests/manual_tests/acoustic_forward_models/KWaveAcousticForwardConvenienceFunction.py
IMSY-DKFZ/simpa
b8bddcf43a4bff2564f0ec208dc511b82e49bfb4
[ "MIT" ]
3
2022-03-14T15:40:09.000Z
2022-03-20T02:34:25.000Z
simpa_tests/manual_tests/acoustic_forward_models/KWaveAcousticForwardConvenienceFunction.py
jgroehl/simpa
e56f0802e5a8555ee8bb139dd4f776025e7e9267
[ "MIT" ]
3
2022-03-18T07:19:12.000Z
2022-03-30T12:15:19.000Z
simpa_tests/manual_tests/acoustic_forward_models/KWaveAcousticForwardConvenienceFunction.py
IMSY-DKFZ/simpa
b8bddcf43a4bff2564f0ec208dc511b82e49bfb4
[ "MIT" ]
null
null
null
# SPDX-FileCopyrightText: 2021 Division of Intelligent Medical Systems, DKFZ # SPDX-FileCopyrightText: 2021 Janek Groehl # SPDX-License-Identifier: MIT from simpa.core.device_digital_twins import SlitIlluminationGeometry, LinearArrayDetectionGeometry, PhotoacousticDevice from simpa import perform_k_wave_acoustic_forw...
48.859649
119
0.668223
10,019
0.899372
0
0
0
0
0
0
1,589
0.142639
f81ea939afded2dfd41116deec7708196341c5d1
10,881
py
Python
oc_ocdm/counter_handler/filesystem_counter_handler.py
arcangelo7/oc_ocdm
128d062ce9d858024aafd26d7d238c7a26cc8914
[ "0BSD" ]
1
2020-12-17T15:33:01.000Z
2020-12-17T15:33:01.000Z
oc_ocdm/counter_handler/filesystem_counter_handler.py
arcangelo7/oc_ocdm
128d062ce9d858024aafd26d7d238c7a26cc8914
[ "0BSD" ]
26
2021-01-08T08:32:23.000Z
2022-03-29T10:01:40.000Z
oc_ocdm/counter_handler/filesystem_counter_handler.py
arcangelo7/oc_ocdm
128d062ce9d858024aafd26d7d238c7a26cc8914
[ "0BSD" ]
3
2021-04-16T08:44:44.000Z
2022-02-15T11:09:22.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright (c) 2016, Silvio Peroni <essepuntato@gmail.com> # # Permission to use, copy, modify, and/or distribute this software for any purpose # with or without fee is hereby granted, provided that the above copyright notice # and this permission notice appear in all copies. ...
42.503906
111
0.637074
9,776
0.898447
0
0
815
0.074901
0
0
2,015
0.185185
f81fb7d0b255f47fb45c7a694f335756c5c2bb24
3,823
py
Python
backend_app/serializers.py
ilveroluca/backend
91b80b154c4e1e45587797cc41bf2b2b75c23e68
[ "MIT" ]
null
null
null
backend_app/serializers.py
ilveroluca/backend
91b80b154c4e1e45587797cc41bf2b2b75c23e68
[ "MIT" ]
null
null
null
backend_app/serializers.py
ilveroluca/backend
91b80b154c4e1e45587797cc41bf2b2b75c23e68
[ "MIT" ]
null
null
null
from rest_framework import serializers from backend_app import models class AllowedPropertySerializer(serializers.ModelSerializer): class Meta: model = models.AllowedProperty fields = '__all__' # exclude = ['id'] class DatasetSerializer(serializers.ModelSerializer): class Meta: ...
27.905109
96
0.698666
3,667
0.959194
0
0
0
0
0
0
593
0.155114
f820475f96913877c23f5aa594fcc87cf676cc00
1,296
py
Python
src/api_status_monitor/consumer/database_connection.py
jjaakola/bang-a-gong
d30f889c18eeaff3d62d47cd02e93516e4d24dd7
[ "MIT" ]
null
null
null
src/api_status_monitor/consumer/database_connection.py
jjaakola/bang-a-gong
d30f889c18eeaff3d62d47cd02e93516e4d24dd7
[ "MIT" ]
null
null
null
src/api_status_monitor/consumer/database_connection.py
jjaakola/bang-a-gong
d30f889c18eeaff3d62d47cd02e93516e4d24dd7
[ "MIT" ]
null
null
null
"""The database connection manager. """ import logging import psycopg2 class DatabaseConnection(): """Database connection manager. """ def __init__(self, host, port, user, dbname, password, sslmode): self._conn = None self._host = host self._port = port self._user = user ...
31.609756
86
0.500772
1,221
0.94213
0
0
0
0
0
0
165
0.127315
f8207cbc88a40509eaabe2f12c2e9fb96d02736a
1,154
py
Python
app/cvp.py
ekiminatorn/murmur-rest
594060264cd6ea594d5c07f40163782946f48eb2
[ "Unlicense", "MIT" ]
73
2015-01-08T19:58:36.000Z
2022-01-25T20:44:07.000Z
app/cvp.py
ekiminatorn/murmur-rest
594060264cd6ea594d5c07f40163782946f48eb2
[ "Unlicense", "MIT" ]
34
2015-01-08T19:52:34.000Z
2022-03-15T08:36:30.000Z
app/cvp.py
ekiminatorn/murmur-rest
594060264cd6ea594d5c07f40163782946f48eb2
[ "Unlicense", "MIT" ]
33
2015-01-08T19:22:40.000Z
2022-01-19T06:28:37.000Z
""" cvp.py Functions for generating CVP feeds. :copyright: (C) 2014 by github.com/alfg. :license: MIT, see README for more details. """ def cvp_player_to_dict(player): """ Convert a player object from a Tree to a CVP-compliant dict. """ return { "session": player.session, "userid": ...
26.837209
78
0.604853
0
0
0
0
0
0
0
0
467
0.404679
f82135374f4390dc528fb4356d78faff21f4ca0a
5,951
py
Python
Tools/Tools/Scripts/webkitpy/layout_tests/port/base_unittest.py
VincentWei/mdolphin-core
48ffdcf587a48a7bb4345ae469a45c5b64ffad0e
[ "Apache-2.0" ]
6
2017-05-31T01:46:45.000Z
2018-06-12T10:53:30.000Z
Tools/Tools/Scripts/webkitpy/layout_tests/port/base_unittest.py
FMSoftCN/mdolphin-core
48ffdcf587a48a7bb4345ae469a45c5b64ffad0e
[ "Apache-2.0" ]
null
null
null
Tools/Tools/Scripts/webkitpy/layout_tests/port/base_unittest.py
FMSoftCN/mdolphin-core
48ffdcf587a48a7bb4345ae469a45c5b64ffad0e
[ "Apache-2.0" ]
2
2017-07-17T06:02:42.000Z
2018-09-19T10:08:38.000Z
# Copyright (C) 2010 Google Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the f...
46.858268
175
0.682406
4,263
0.71635
0
0
0
0
0
0
3,075
0.51672
f8237a8940cd62de0269063bae0eb6296bc0aa2a
2,796
py
Python
data/classifier/general_test.py
alexv1/tensorflow_learn
ae936ffdc211a11403d6a06401a2115334b46402
[ "Apache-2.0" ]
null
null
null
data/classifier/general_test.py
alexv1/tensorflow_learn
ae936ffdc211a11403d6a06401a2115334b46402
[ "Apache-2.0" ]
null
null
null
data/classifier/general_test.py
alexv1/tensorflow_learn
ae936ffdc211a11403d6a06401a2115334b46402
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from skimage import transform import tensorflow as tf import numpy as np import glob import face_recognition as FR import os import shutil def read_one_image(image_file, width, height): # img = io.imread(image_file) img = FR.load_image_file(image_file) img = transform.resize(img,(wi...
27.96
87
0.672031
0
0
0
0
0
0
0
0
441
0.152174
f8238013e026edf0a1b82a52242ee8f202d32c83
693
py
Python
func.py
CrownCrafter/School
488810b223ad746d7d1b396e609ce8f90f25662c
[ "MIT" ]
null
null
null
func.py
CrownCrafter/School
488810b223ad746d7d1b396e609ce8f90f25662c
[ "MIT" ]
null
null
null
func.py
CrownCrafter/School
488810b223ad746d7d1b396e609ce8f90f25662c
[ "MIT" ]
1
2021-02-06T04:28:17.000Z
2021-02-06T04:28:17.000Z
def cyl(h, r): area_cyl = 2 * 3.14 * r * h return(area_cyl) def con(r, l): area_con = 3.14 * r * l return(area_con) def final_price(cost): tax = 0.18 * cost re_price = cost + tax return(re_price) print("Enter Values of cylindrical part of tent ") h = float(input("Height : ")) r = float(inpu...
28.875
53
0.658009
0
0
0
0
0
0
0
0
181
0.261183
f823c6094a403ab6a62faccb2e76b2e2b2d997a0
1,282
py
Python
pymoku/plotly_support.py
manekawije/Liquid
284991ceca70ec3fcd0cca7e19f4100463600a6c
[ "MIT" ]
null
null
null
pymoku/plotly_support.py
manekawije/Liquid
284991ceca70ec3fcd0cca7e19f4100463600a6c
[ "MIT" ]
null
null
null
pymoku/plotly_support.py
manekawije/Liquid
284991ceca70ec3fcd0cca7e19f4100463600a6c
[ "MIT" ]
null
null
null
# Plotly integration for the Moku:Lab Datalogger # Copyright 2016 Liquid Instruments Pty. Ltd. from pymoku import InvalidOperationException def stream_init(moku, uname, api_key, str_id1, str_id2, npoints=100, mode='lines', line={}): line = ';'.join([ '='.join(i) for i in list(line.items())]) settings = [ ('plo...
26.163265
92
0.705148
0
0
0
0
0
0
0
0
295
0.230109
f8277c470e26c658915e5f878e41e448502ec2a5
1,126
py
Python
test_publisher.py
cpgillem/markdown_publisher
a8e6bacea95196b9a18ad8fa2f85822c5d9c4e74
[ "MIT" ]
null
null
null
test_publisher.py
cpgillem/markdown_publisher
a8e6bacea95196b9a18ad8fa2f85822c5d9c4e74
[ "MIT" ]
3
2015-04-11T08:16:56.000Z
2015-04-11T08:17:32.000Z
test_publisher.py
cpgillem/markdown-publisher
a8e6bacea95196b9a18ad8fa2f85822c5d9c4e74
[ "MIT" ]
null
null
null
import publisher test_pdf_filename = "test/test.pdf" test_css_filename = "test/test.css" test_md_filename = "test/test.md" test_html_filename = "test/test.html" test_sender = "cpg@yakko.cs.wmich.edu" test_recipient = "cpgillem@gmail.com" test_md = "# Test heading\n\n- test item 1\n- test item 2" def from_html_file()...
32.171429
87
0.781528
0
0
0
0
0
0
0
0
195
0.173179
f82900deb38425b32b0150ae828a4448ba15499c
24
py
Python
src/train/__init__.py
gracengu/multinomial_classification
2346533415aff151d1774d36405360ca236cee3f
[ "MIT" ]
2
2021-11-16T12:52:58.000Z
2021-12-13T04:00:39.000Z
src/train/__init__.py
gracengu/multinomial_classification
2346533415aff151d1774d36405360ca236cee3f
[ "MIT" ]
null
null
null
src/train/__init__.py
gracengu/multinomial_classification
2346533415aff151d1774d36405360ca236cee3f
[ "MIT" ]
null
null
null
from .train import Train
24
24
0.833333
0
0
0
0
0
0
0
0
0
0
f82c17e0d48a8946b94491663089d67afc63ece3
1,185
py
Python
tracpro/msgs/migrations/0005_inboxmessage.py
rapidpro/tracpro
a68a782a7ff9bb0ccee85368132d8847c280fea3
[ "BSD-3-Clause" ]
5
2015-07-21T15:58:31.000Z
2019-09-14T22:34:00.000Z
tracpro/msgs/migrations/0005_inboxmessage.py
rapidpro/tracpro
a68a782a7ff9bb0ccee85368132d8847c280fea3
[ "BSD-3-Clause" ]
197
2015-03-24T15:26:04.000Z
2017-11-28T19:24:37.000Z
tracpro/msgs/migrations/0005_inboxmessage.py
rapidpro/tracpro
a68a782a7ff9bb0ccee85368132d8847c280fea3
[ "BSD-3-Clause" ]
10
2015-03-24T12:26:36.000Z
2017-02-21T13:08:57.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('orgs', '0013_auto_20150715_1831'), ('contacts', '0004_auto_20150324_1024'), ('msgs', '0004_message_pollrun'), ] oper...
38.225806
118
0.599156
1,076
0.908017
0
0
0
0
0
0
304
0.25654
f82d5b036daead0dff75c2761e785f8a14568edb
191
py
Python
src/Models/__init__.py
shulip/ShoppingMallSystem
01e5a04a8353ca319ed2dc002fc358f6e44c33dd
[ "MIT" ]
null
null
null
src/Models/__init__.py
shulip/ShoppingMallSystem
01e5a04a8353ca319ed2dc002fc358f6e44c33dd
[ "MIT" ]
null
null
null
src/Models/__init__.py
shulip/ShoppingMallSystem
01e5a04a8353ca319ed2dc002fc358f6e44c33dd
[ "MIT" ]
1
2021-04-22T15:14:21.000Z
2021-04-22T15:14:21.000Z
#!/usr/bin/env python # -*- coding:utf-8 -*- from .Contract import * from .Receivable import * from .Receipt import * from .Shop import * from .Statement import * from .Application import *
21.222222
26
0.701571
0
0
0
0
0
0
0
0
44
0.230366
f82d7cf376b5b98be3742039b95afbfff6e6b1f8
1,630
py
Python
description tm.py
jfoerderer/lda-topic-modeling
998701f87df3a3d034d9208ff60266dcd6dc2b59
[ "MIT" ]
2
2017-09-02T09:00:24.000Z
2017-09-08T07:18:38.000Z
description tm.py
jfoerderer/lda-topic-modeling
998701f87df3a3d034d9208ff60266dcd6dc2b59
[ "MIT" ]
null
null
null
description tm.py
jfoerderer/lda-topic-modeling
998701f87df3a3d034d9208ff60266dcd6dc2b59
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import csv from stop_words import get_stop_words from nltk.stem.porter import PorterStemmer from gensim import corpora import gensim import os import re from nltk.tokenize import RegexpTokenizer #SET PATH path = r'' inputname="" def remove_html_tags(text): """Remove html tags from a s...
26.721311
99
0.628834
0
0
0
0
0
0
0
0
118
0.072393
f82ef0c0ee2c3fc021e7566fc3d68636a538299f
596
py
Python
scripts/load_sample_data.py
thobbs/logsandra
a17abc995dcb0573f3db2f714c1b47d3aff8b20a
[ "MIT" ]
7
2015-05-18T13:00:54.000Z
2018-08-06T08:27:57.000Z
scripts/load_sample_data.py
thobbs/logsandra
a17abc995dcb0573f3db2f714c1b47d3aff8b20a
[ "MIT" ]
null
null
null
scripts/load_sample_data.py
thobbs/logsandra
a17abc995dcb0573f3db2f714c1b47d3aff8b20a
[ "MIT" ]
4
2015-06-16T11:09:53.000Z
2020-04-27T19:25:57.000Z
#!/usr/bin/env python import sys import os sys.path.append(os.path.join(os.path.dirname('__file__'), '..', 'src')) from random import randint from datetime import datetime, timedelta from logsandra.model.client import CassandraClient client = CassandraClient('test', 'localhost', 9160, 3) keywords = ['foo', 'bar', ...
28.380952
76
0.697987
0
0
0
0
0
0
0
0
143
0.239933
f830e618925548200af372e7691ce927a36784c1
867
py
Python
registry/setup.py
fjrmoreews/bioshadock_client
26a1de6e130689b6385144253525c861d2a2199d
[ "Apache-2.0" ]
1
2015-11-25T19:03:58.000Z
2015-11-25T19:03:58.000Z
registry/setup.py
fjrmoreews/bioshadock_client
26a1de6e130689b6385144253525c861d2a2199d
[ "Apache-2.0" ]
2
2015-11-24T14:45:44.000Z
2015-11-26T15:28:30.000Z
registry/setup.py
fjrmoreews/bioshadock_client
26a1de6e130689b6385144253525c861d2a2199d
[ "Apache-2.0" ]
1
2015-11-27T10:57:15.000Z
2015-11-27T10:57:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup, find_packages setup( # name of the lib name='bioshadock_biotools', # version version='1.0.1', packages=find_packages(), author="Francois Moreews", description="Import tool for biotools from Dockerfile", i...
18.847826
59
0.575548
0
0
0
0
0
0
0
0
461
0.531719
f831926e75acbe42ce6d5e5261d3946d9b9dfea1
1,176
py
Python
_example/xor_embedded/make.py
backwardn/go-tflite
30f5e2a268d2eb053f758636609c5c379a3016b5
[ "MIT" ]
3
2020-01-09T02:57:30.000Z
2020-07-17T15:56:50.000Z
_example/xor_embedded/make.py
backwardn/go-tflite
30f5e2a268d2eb053f758636609c5c379a3016b5
[ "MIT" ]
null
null
null
_example/xor_embedded/make.py
backwardn/go-tflite
30f5e2a268d2eb053f758636609c5c379a3016b5
[ "MIT" ]
null
null
null
import numpy as np from tensorflow.keras.models import Sequential from tensorflow.keras.layers import Dense from tensorflow.keras.optimizers import RMSprop from tensorflow.lite.python import lite X_train = np.array([[0.0, 0.0], [1.0, 0.0], [0.0, 1.0], [1.0, ...
30.947368
75
0.662415
0
0
0
0
0
0
0
0
149
0.126701
f835c7244c8f288b00b860e6cef6f64c28c3ea69
473
py
Python
app/sso/user/models.py
ChristianKreuzberger/django-oauth-sso
b019e2e8232ae141b50b8270e79e0617e24f54bb
[ "MIT" ]
null
null
null
app/sso/user/models.py
ChristianKreuzberger/django-oauth-sso
b019e2e8232ae141b50b8270e79e0617e24f54bb
[ "MIT" ]
null
null
null
app/sso/user/models.py
ChristianKreuzberger/django-oauth-sso
b019e2e8232ae141b50b8270e79e0617e24f54bb
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import AbstractUser from django.utils.translation import ugettext_lazy as _ class User(AbstractUser): """ Extends the basic django user model with a longer first and last name """ first_name = models.CharField( _("first name"), ...
21.5
73
0.649049
332
0.701903
0
0
0
0
0
0
108
0.22833
f837af8b513ac4ce60f3ce335c72f8849a0bd813
1,710
py
Python
src/fusanet_utils/features/base.py
fusa-project/fusa-net-utils
b8740c67c0c789889b7abce477c894d77c70a20c
[ "MIT" ]
null
null
null
src/fusanet_utils/features/base.py
fusa-project/fusa-net-utils
b8740c67c0c789889b7abce477c894d77c70a20c
[ "MIT" ]
null
null
null
src/fusanet_utils/features/base.py
fusa-project/fusa-net-utils
b8740c67c0c789889b7abce477c894d77c70a20c
[ "MIT" ]
null
null
null
import logging from abc import ABC, abstractmethod from os.path import isfile, splitext import pathlib import torch from .waveform import get_waveform logger = logging.getLogger(__name__) class Feature(ABC): def __init__(self, params): self.params = params super().__init__() @abstr...
35.625
83
0.657895
1,516
0.88655
0
0
75
0.04386
0
0
112
0.065497
f837f76576c4f735618a20e51681085aeb556de5
251
py
Python
led/hhh/rta2.py
tushar-tdm/osvi
813499162b7f487ccafa8c08d3e5bf6d05b074de
[ "CC-BY-3.0" ]
3
2020-02-21T01:16:26.000Z
2020-07-12T08:06:11.000Z
led/hhh/rta2.py
tushar-tdm/osvi
813499162b7f487ccafa8c08d3e5bf6d05b074de
[ "CC-BY-3.0" ]
6
2020-02-11T23:27:43.000Z
2022-03-11T23:34:39.000Z
led/hhh/rta2.py
tushar-tdm/osvi
813499162b7f487ccafa8c08d3e5bf6d05b074de
[ "CC-BY-3.0" ]
null
null
null
import os import sys import serial import time import struct ser = serial.Serial('/dev/ttyACM0',9600) led = sys.argv[1] act = sys.argv[2] l = str(led) """a = str(act)""" time.sleep(5) ser.write(struct.pack(l.encode()) """ ser.write(l.encode()) """
14.764706
40
0.661355
0
0
0
0
0
0
0
0
61
0.243028
f838fea76677e89d488005a23aab7f853eac184d
11,397
py
Python
app.py
KendraObika/Froggit
3734d74de6b7febabb6c1645b61e42928203cf63
[ "MIT" ]
null
null
null
app.py
KendraObika/Froggit
3734d74de6b7febabb6c1645b61e42928203cf63
[ "MIT" ]
null
null
null
app.py
KendraObika/Froggit
3734d74de6b7febabb6c1645b61e42928203cf63
[ "MIT" ]
null
null
null
""" Primary module for Froggit This module contains the main controller class for the Froggit application. There is no need for any additional classes in this module. If you need more classes, 99% of the time they belong in either the lanes module or the models module. If you are unsure about where a new class should...
41.443636
87
0.668246
10,737
0.94209
0
0
0
0
0
0
7,690
0.674739
f83913edc4b000ba4986205d63145c52269b4655
1,252
py
Python
utils.py
rsoorajs/deecubes-telegram-bot
223710eb117c1333fefcff22bcf473e89e41c769
[ "MIT" ]
2
2017-10-08T19:02:01.000Z
2020-05-16T21:55:18.000Z
utils.py
rsoorajs/deecubes-telegram-bot
223710eb117c1333fefcff22bcf473e89e41c769
[ "MIT" ]
null
null
null
utils.py
rsoorajs/deecubes-telegram-bot
223710eb117c1333fefcff22bcf473e89e41c769
[ "MIT" ]
3
2018-08-05T18:36:58.000Z
2020-05-16T21:55:19.000Z
import logging from functools import wraps from PIL import Image, ImageFont, ImageDraw from config import LIST_ALLOWED_USERS def restricted(func): @wraps(func) def wrapped(_, bot, update, *args, **kwargs): user_id = update.effective_user.id if LIST_ALLOWED_USERS: if user_id not in LIST_ALLOWED_USER...
25.04
90
0.683706
0
0
0
0
310
0.247604
0
0
146
0.116613
f83abdd41d8480514557524b539c95519e6c83ef
152
py
Python
__init__.py
cmt-qo/cm-flakes
c11f37b50b088cf5c876ef8a6161b7d8d775e99b
[ "MIT" ]
6
2019-11-04T07:04:24.000Z
2021-02-10T21:35:00.000Z
__init__.py
cmt-qo/cm-flakes
c11f37b50b088cf5c876ef8a6161b7d8d775e99b
[ "MIT" ]
null
null
null
__init__.py
cmt-qo/cm-flakes
c11f37b50b088cf5c876ef8a6161b7d8d775e99b
[ "MIT" ]
2
2020-08-07T09:29:41.000Z
2021-02-10T21:35:05.000Z
from .Camera import * from .GloveBox import * from .Microscope import * from .Stage import * from .UserInterface import * from .NeuralNetwork import *
25.333333
28
0.756579
0
0
0
0
0
0
0
0
0
0
f83ba25f5a20e6c46fa842756d48009b7d4b11f6
4,444
py
Python
neural_semigroups/mace4_semigroups_dataset.py
zarebulic/neural-semigroup-experiment
c554acb17d264ba810009f8b86c35ee9f8c4d1f4
[ "Apache-2.0" ]
6
2020-04-05T23:24:54.000Z
2021-11-15T11:17:09.000Z
neural_semigroups/mace4_semigroups_dataset.py
zarebulic/neural-semigroup-experiment
c554acb17d264ba810009f8b86c35ee9f8c4d1f4
[ "Apache-2.0" ]
23
2020-03-15T09:09:54.000Z
2022-03-29T22:32:23.000Z
neural_semigroups/mace4_semigroups_dataset.py
zarebulic/neural-semigroup-experiment
c554acb17d264ba810009f8b86c35ee9f8c4d1f4
[ "Apache-2.0" ]
null
null
null
""" Copyright 2019-2021 Boris Shminke 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 or agreed t...
34.71875
78
0.617912
3,627
0.816157
0
0
0
0
0
0
2,727
0.613636
f83bb94361c259b35e4ff208fa028f2496100f01
7,501
py
Python
samples/data_inspect_utils.py
shachargluska/centerpose
01c2c8bfa9d3ee91807f2ffdcc48728d104265bd
[ "MIT" ]
245
2019-11-29T02:55:25.000Z
2022-03-30T07:30:18.000Z
samples/data_inspect_utils.py
shachargluska/centerpose
01c2c8bfa9d3ee91807f2ffdcc48728d104265bd
[ "MIT" ]
24
2019-11-29T10:05:00.000Z
2022-03-30T07:16:06.000Z
samples/data_inspect_utils.py
FishLiuabc/centerpose
555d753cd82693476f91f78c53aa4147f5a83015
[ "MIT" ]
45
2019-11-29T05:12:02.000Z
2022-03-21T02:20:36.000Z
from __future__ import absolute_import, division, print_function import cv2 import random import numpy as np import colorsys import matplotlib.pyplot as plt import matplotlib.patches as patches from matplotlib.patches import Polygon from skimage.measure import find_contours def log(text, array=None): """Prints a...
35.382075
94
0.55046
0
0
0
0
0
0
0
0
2,108
0.281029
f83bc822a6f47feb415380dd8f541756419c1e6c
265
py
Python
tests/conftest.py
sparkythehuman/sms-service--send-message
8f095ba181f1d42df3968fe34d5e20f30851e021
[ "MIT" ]
null
null
null
tests/conftest.py
sparkythehuman/sms-service--send-message
8f095ba181f1d42df3968fe34d5e20f30851e021
[ "MIT" ]
null
null
null
tests/conftest.py
sparkythehuman/sms-service--send-message
8f095ba181f1d42df3968fe34d5e20f30851e021
[ "MIT" ]
null
null
null
import pytest @pytest.fixture(autouse=True) def set_up(monkeypatch): monkeypatch.setenv('TABLE_NAME', 'test-table') monkeypatch.setenv('TWILIO_ACCOUNT_SID', 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') monkeypatch.setenv('TWILIO_AUTH_TOKEN', 'my_auth_token')
33.125
82
0.784906
0
0
0
0
249
0.939623
0
0
114
0.430189
f83c3a927ff9df79fe83f0ce7fdfd551b1c6f921
7,741
py
Python
dapy/filters/particle.py
hassaniqbal209/data-assimilation
ec52d655395dbed547edf4b4f3df29f017633f1b
[ "MIT" ]
11
2020-07-29T07:46:39.000Z
2022-03-17T01:28:07.000Z
dapy/filters/particle.py
hassaniqbal209/data-assimilation
ec52d655395dbed547edf4b4f3df29f017633f1b
[ "MIT" ]
1
2020-07-14T11:49:17.000Z
2020-07-29T07:43:22.000Z
dapy/filters/particle.py
hassaniqbal209/data-assimilation
ec52d655395dbed547edf4b4f3df29f017633f1b
[ "MIT" ]
10
2020-07-14T11:34:24.000Z
2022-03-07T09:08:12.000Z
"""Particle filters for inference in state space models.""" import abc from typing import Tuple, Dict, Callable, Any, Optional import numpy as np from numpy.random import Generator from scipy.special import logsumexp from scipy.sparse import csr_matrix from dapy.filters.base import AbstractEnsembleFilter from dapy.mod...
44.745665
88
0.689058
7,346
0.948973
0
0
165
0.021315
0
0
3,951
0.510399
f83d223baea30c7408f539bf887906161d4b99ea
1,477
py
Python
pokemon.py
bran-almeida/Pokemon_Game
061c9e1b53d8cbaa7366634535288bb2868d6885
[ "MIT" ]
null
null
null
pokemon.py
bran-almeida/Pokemon_Game
061c9e1b53d8cbaa7366634535288bb2868d6885
[ "MIT" ]
null
null
null
pokemon.py
bran-almeida/Pokemon_Game
061c9e1b53d8cbaa7366634535288bb2868d6885
[ "MIT" ]
null
null
null
import random class Pokemon: def __init__(self, especie, level=None, nome=None): self.especie = especie if nome: self.nome = nome else: self.nome = especie if level: self.level = level else: self.level = ra...
27.867925
83
0.564658
1,462
0.986505
0
0
0
0
0
0
365
0.246289
f83da86dbe71993fb962e0b2187a7e3ca515bae8
2,254
py
Python
recipes/Python/577563_Vectorize_Operation/recipe-577563.py
tdiprima/code
61a74f5f93da087d27c70b2efe779ac6bd2a3b4f
[ "MIT" ]
2,023
2017-07-29T09:34:46.000Z
2022-03-24T08:00:45.000Z
recipes/Python/577563_Vectorize_Operation/recipe-577563.py
unhacker/code
73b09edc1b9850c557a79296655f140ce5e853db
[ "MIT" ]
32
2017-09-02T17:20:08.000Z
2022-02-11T17:49:37.000Z
recipes/Python/577563_Vectorize_Operation/recipe-577563.py
unhacker/code
73b09edc1b9850c557a79296655f140ce5e853db
[ "MIT" ]
780
2017-07-28T19:23:28.000Z
2022-03-25T20:39:41.000Z
""" Copyright 2011 Shao-Chuan Wang <shaochuan.wang AT gmail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to ...
40.25
81
0.732476
0
0
0
0
0
0
0
0
1,175
0.521295