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
ff43880d7c55f155ec148a756cf0c994cb3a1a8c
838
py
Python
bootstrap_scoped/util/_test.py
achillesrasquinha/bootstrap-scoped
e8e3eab2648e6d0acb33161fab196d6c82ff607a
[ "MIT" ]
1
2018-09-14T16:04:21.000Z
2018-09-14T16:04:21.000Z
bootstrap_scoped/util/_test.py
achillesrasquinha/bootstrap-scoped
e8e3eab2648e6d0acb33161fab196d6c82ff607a
[ "MIT" ]
null
null
null
bootstrap_scoped/util/_test.py
achillesrasquinha/bootstrap-scoped
e8e3eab2648e6d0acb33161fab196d6c82ff607a
[ "MIT" ]
null
null
null
# imports - compatibility imports from bootstrap_scoped._compat import StringIO, input # imports - standard imports import sys from contextlib import contextmanager # imports - module imports from bootstrap_scoped.util import get_if_empty __STDIN__ = sys.stdin @contextmanager def mock_input(args): # https://s...
26.1875
85
0.718377
0
0
121
0.144391
137
0.163484
0
0
125
0.149165
ff43b73960dca68d62dec6fa9b19a0ca5ed2c18c
43
py
Python
shufflenet/__init__.py
TropComplique/ShuffleNet-tensorflow
a3e531d23364af0d38a336241a07eb8b37993b74
[ "MIT" ]
45
2017-08-27T17:31:03.000Z
2021-03-01T11:01:40.000Z
shufflenet/__init__.py
kingzhengguang/ImageNet-ShuffleNet-tensorflow
a3e531d23364af0d38a336241a07eb8b37993b74
[ "MIT" ]
9
2017-08-24T09:53:26.000Z
2019-08-22T08:24:50.000Z
shufflenet/__init__.py
kingzhengguang/ImageNet-ShuffleNet-tensorflow
a3e531d23364af0d38a336241a07eb8b37993b74
[ "MIT" ]
20
2017-08-28T16:33:03.000Z
2019-10-31T13:01:55.000Z
from .get_shufflenet import get_shufflenet
21.5
42
0.883721
0
0
0
0
0
0
0
0
0
0
ff43b9110e7c6c410c83280a5c7b6d03cd3574ec
608
py
Python
symphoni-ui/Tests/test_suite.py
tylersuchan/symphoni-fork
9b12a17d6562f5c94e17c840b0ea4af1f74d4a08
[ "Apache-2.0" ]
null
null
null
symphoni-ui/Tests/test_suite.py
tylersuchan/symphoni-fork
9b12a17d6562f5c94e17c840b0ea4af1f74d4a08
[ "Apache-2.0" ]
77
2018-09-13T02:29:50.000Z
2018-12-03T19:31:45.000Z
symphoni-ui/Tests/test_suite.py
tylersuchan/symphoni-fork
9b12a17d6562f5c94e17c840b0ea4af1f74d4a08
[ "Apache-2.0" ]
null
null
null
import unittest import join_button import start_party_button import queue import privacy_button import music_queue import contact_button loader = unittest.TestLoader() suite = unittest.TestSuite() runner = unittest.TextTestRunner(verbosity=3) suite.addTests(loader.loadTestsFromModule(join_button)) suite.addTests(loa...
27.636364
62
0.858553
0
0
0
0
0
0
0
0
0
0
ff46c1924c55c89c1952f77ec63a4d0bb246a216
853
py
Python
Application/Script/script/pyexpect/arp/Cisco.py
onlysheep5200/gperf
f04b1e96fc86aa379fa1cdaedff59224b6904179
[ "Apache-2.0" ]
1
2016-12-08T23:27:42.000Z
2016-12-08T23:27:42.000Z
Application/Script/script/pyexpect/arp/Cisco.py
onlysheep5200/gperf
f04b1e96fc86aa379fa1cdaedff59224b6904179
[ "Apache-2.0" ]
null
null
null
Application/Script/script/pyexpect/arp/Cisco.py
onlysheep5200/gperf
f04b1e96fc86aa379fa1cdaedff59224b6904179
[ "Apache-2.0" ]
null
null
null
#py proc.sendline('show arp') proc.expect('Type Interface') result = [] while True: index = proc.expect(['--More--', '#']) lines = proc.before.strip().replace('\x08', '').splitlines() for line in lines: cols = line.strip().split() length = len(cols) if length == 6 or length == 5: ...
29.413793
78
0.458382
0
0
0
0
0
0
0
0
110
0.128957
ff482cff2e58cffc22549bec344549101d45cd35
682
py
Python
ch9/crx_gates.py
PacktPublishing/Learn-Quantum-Computing-with-Python
e74caf12609ce848de2636019dd15f90d1f3189f
[ "MIT" ]
1
2020-07-09T15:38:59.000Z
2020-07-09T15:38:59.000Z
ch9/crx_gates.py
PacktPublishing/Learn-Quantum-Computing-with-Python
e74caf12609ce848de2636019dd15f90d1f3189f
[ "MIT" ]
null
null
null
ch9/crx_gates.py
PacktPublishing/Learn-Quantum-Computing-with-Python
e74caf12609ce848de2636019dd15f90d1f3189f
[ "MIT" ]
2
2019-04-05T14:42:23.000Z
2019-04-19T16:09:27.000Z
from pyquil import Program from pyquil.parameters import Parameter, quil_sin, quil_cos from pyquil.quilbase import DefGate from pyquil.gates import * import numpy as np thetaParameter = Parameter('theta') controlledRx = np.array([ [1, 0, 0, 0], [0, 1, 0, 0], [0, 0, quil_cos(thetaParameter / 2), -1j * quil...
27.28
77
0.714076
0
0
0
0
0
0
0
0
12
0.017595
ff4b74c3171ca37a261f7014a1e21bacf39c2b04
24,200
py
Python
LexNormNew.py
AnneDirkson/lex_normalization
6a5072002b31606cfd668b8ac303d5deaa95d092
[ "BSD-3-Clause" ]
4
2019-07-15T17:56:59.000Z
2020-04-01T19:18:24.000Z
LexNormNew.py
AnneDirkson/lex_normalization
6a5072002b31606cfd668b8ac303d5deaa95d092
[ "BSD-3-Clause" ]
null
null
null
LexNormNew.py
AnneDirkson/lex_normalization
6a5072002b31606cfd668b8ac303d5deaa95d092
[ "BSD-3-Clause" ]
1
2019-08-01T10:58:37.000Z
2019-08-01T10:58:37.000Z
#!/usr/bin/env python # coding: utf-8 # # Lexical normalization pipeline # # author - AR Dirkson # date - 15-7-2019 # # Python 3 script # # This pipeline takes raw text data and performs: # - Removes URLs, email addresses # - Tokenization with NLTK # - Removes non_English posts (conservatively) usin...
36.890244
288
0.516198
22,578
0.932821
0
0
0
0
0
0
4,896
0.202281
ff4d18734c956fbb0cec7f798227420aa80822c7
4,392
py
Python
examples/households/VisualizeOccupancy.py
a-buntjer/tsib
9d6ddcdca55c9b8afb5324c0da8d0910cb1a326e
[ "MIT" ]
14
2019-12-16T16:54:43.000Z
2021-11-08T11:46:51.000Z
examples/households/VisualizeOccupancy.py
a-buntjer/tsib
9d6ddcdca55c9b8afb5324c0da8d0910cb1a326e
[ "MIT" ]
null
null
null
examples/households/VisualizeOccupancy.py
a-buntjer/tsib
9d6ddcdca55c9b8afb5324c0da8d0910cb1a326e
[ "MIT" ]
7
2020-05-27T19:49:58.000Z
2022-02-02T12:45:33.000Z
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: percent # format_version: '1.3' # jupytext_version: 1.4.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # %% import os import matplotlib.pyplot as plt # %mat...
22.994764
113
0.602004
0
0
0
0
0
0
0
0
1,272
0.289617
ff4dbf32ba6d1faa9492a197d71f8f0f2884bd27
314
py
Python
exsLer Arquivo/ex2 alunos/_main.py
SpaceTheArcher/LP2_2s2017
6616b3ecfe5838d1cfac1dac1c8e66b1b661486e
[ "Apache-2.0" ]
1
2017-08-27T03:45:37.000Z
2017-08-27T03:45:37.000Z
exsLer Arquivo/ex2 alunos/_main.py
SpaceTheArcher/LP2_2s2017
6616b3ecfe5838d1cfac1dac1c8e66b1b661486e
[ "Apache-2.0" ]
null
null
null
exsLer Arquivo/ex2 alunos/_main.py
SpaceTheArcher/LP2_2s2017
6616b3ecfe5838d1cfac1dac1c8e66b1b661486e
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 with open('Alunos.txt') as arquivo: for linha in arquivo: lista = linha.split(";") media = float(lista[1]) + float(lista[2]) with open('saida.txt', 'w') as arquivo2: varLinha = str("{};{}".format(linha,media)) arquivo2.write(varLinha)
28.545455
56
0.541401
0
0
0
0
0
0
0
0
51
0.16242
ff4ddad56cc09f4e515086639ef104f7e8cf7072
6,844
py
Python
databacon/tests/test.py
cameron/databacon
7065232d1e689f176aa298c42ecfe194ccf5b27d
[ "BSD-3-Clause" ]
4
2015-09-09T23:05:39.000Z
2016-10-20T15:24:58.000Z
databacon/tests/test.py
cameron/databacon
7065232d1e689f176aa298c42ecfe194ccf5b27d
[ "BSD-3-Clause" ]
null
null
null
databacon/tests/test.py
cameron/databacon
7065232d1e689f176aa298c42ecfe194ccf5b27d
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import sys sys.path.insert(0, '/mummy/python') sys.path.insert(0, '/datahog/') sys.path.insert(0, '/src') def info(type, value, tb): if hasattr(sys, 'ps1') or not sys.stderr.isatty(): # we are in interactive mode or we don't have a tty-like # device, so we call the default hook ...
26.122137
142
0.720923
0
0
0
0
0
0
0
0
2,704
0.395091
ff4e9ca7e3ce7e44ad223e8d480850fa09b99929
334
py
Python
fungraph/keywordargument.py
davehadley/graci
8c5b86ce364df32e48bca40a46091021459547fb
[ "MIT" ]
1
2020-07-18T17:53:02.000Z
2020-07-18T17:53:02.000Z
fungraph/keywordargument.py
davehadley/graci
8c5b86ce364df32e48bca40a46091021459547fb
[ "MIT" ]
null
null
null
fungraph/keywordargument.py
davehadley/graci
8c5b86ce364df32e48bca40a46091021459547fb
[ "MIT" ]
3
2020-07-31T16:57:50.000Z
2020-07-31T16:58:02.000Z
from typing import NamedTuple class KeywordArgument(NamedTuple): """Use to explicitly search for a function keyword argument node when getting objects from a graph. This is useful in cases where named function names and keyword argument names clash. See Also -------- fungraph.Name """ ...
20.875
88
0.697605
301
0.901198
0
0
0
0
0
0
246
0.736527
ff4f54b1c8c94866bf7755682cc73296b3e13229
2,382
py
Python
Leetcode/Python Solutions/Common Algorithm Templates/DisjointSet.py
Mostofa-Najmus-Sakib/Applied-Algorithm
bc656fd655617407856e0ce45b68585fa81c5035
[ "MIT" ]
1
2020-01-06T02:21:56.000Z
2020-01-06T02:21:56.000Z
Leetcode/Python Solutions/Common Algorithm Templates/DisjointSet.py
Mostofa-Najmus-Sakib/Applied-Algorithm
bc656fd655617407856e0ce45b68585fa81c5035
[ "MIT" ]
null
null
null
Leetcode/Python Solutions/Common Algorithm Templates/DisjointSet.py
Mostofa-Najmus-Sakib/Applied-Algorithm
bc656fd655617407856e0ce45b68585fa81c5035
[ "MIT" ]
3
2021-02-22T17:41:01.000Z
2022-01-13T05:03:19.000Z
""" Language: Python Written by: Mostofa Adib Shakib Optimization Techniques: 1) Union by Rank: We always attach the smaller tree to the root of the larger tree. Since it is the depth of the tree that affects the running time, the tree with the smaller depth gets added under the root of the deeper tree. The depth of ...
27.068182
132
0.685978
1,246
0.52309
0
0
0
0
0
0
1,341
0.562972
ff52620b1cd6c61d10575db074cd0d1ccf5ea327
19,761
py
Python
tests/test_abstract.py
fish2000/CLU
80bc2df5f001b5639d79ba979e19ec77a9931425
[ "BSD-3-Clause" ]
1
2019-07-02T08:17:59.000Z
2019-07-02T08:17:59.000Z
tests/test_abstract.py
fish2000/CLU
80bc2df5f001b5639d79ba979e19ec77a9931425
[ "BSD-3-Clause" ]
13
2019-12-17T02:28:30.000Z
2021-11-17T03:46:10.000Z
tests/test_abstract.py
fish2000/CLU
80bc2df5f001b5639d79ba979e19ec77a9931425
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import print_function import abc import clu.abstract import copy import os import pytest abstract = abc.abstractmethod @pytest.fixture(scope='module') def strings(): yield ('yo', 'dogg', 'iheard', 'youlike') @pytest.fixture(scope='module') def capstrings(): yield ('Y...
40.577002
101
0.556095
19,399
0.979401
168
0.008482
2,333
0.117787
0
0
3,985
0.201191
ff56f2ff008767215761ca02c50006457d3c8cc8
8,395
py
Python
text_run.py
cjymz886/text_bert_cnn
0b7fc34ee4ee3d1486b934737ebe574a054df9ce
[ "MIT" ]
72
2019-03-29T12:13:54.000Z
2022-03-13T15:42:56.000Z
text_run.py
lvcheer/text_bert_cnn
2a781881eea45d888ba3b2f32e20a6b706b07b9e
[ "MIT" ]
3
2019-09-25T03:04:18.000Z
2021-06-15T08:27:14.000Z
text_run.py
lvcheer/text_bert_cnn
2a781881eea45d888ba3b2f32e20a6b706b07b9e
[ "MIT" ]
19
2019-04-03T07:56:38.000Z
2022-03-21T13:37:12.000Z
import sys import os import time from sklearn import metrics from text_model import * from loader import * def evaluate(sess,dev_data): '''批量的形式计算验证集或测试集上数据的平均loss,平均accuracy''' data_len = 0 total_loss = 0.0 total_acc = 0.0 for batch_ids,batch_mask,batch_segment,batch_label in batch_ite...
40.752427
169
0.629065
0
0
0
0
0
0
0
0
1,214
0.143177
ff5751a849108f15acfede92c3f26ffa54292d1b
722
py
Python
tests/conftest.py
haizaar/configmanager
674bce2ec1ac2528588aa7bc1407b545f2264dbc
[ "MIT" ]
13
2017-05-13T13:33:27.000Z
2022-02-03T14:37:50.000Z
tests/conftest.py
haizaar/configmanager
674bce2ec1ac2528588aa7bc1407b545f2264dbc
[ "MIT" ]
118
2017-05-06T22:58:01.000Z
2018-12-03T10:23:38.000Z
tests/conftest.py
haizaar/configmanager
674bce2ec1ac2528588aa7bc1407b545f2264dbc
[ "MIT" ]
4
2018-05-30T03:08:05.000Z
2019-05-09T02:06:48.000Z
import collections import pytest from configmanager import Config, PlainConfig @pytest.fixture def simple_config(): return Config([ ('uploads', collections.OrderedDict([ ('enabled', False), ('threads', 1), ('db', collections.OrderedDict([ ('user', 'root...
21.878788
45
0.477839
0
0
0
0
636
0.880886
0
0
122
0.168975
ff57d1d8442a73a3ba2a1260389c32c6a812ced5
2,633
py
Python
src/azure_run_train.py
yohskua/support-ticket-classification
ba26373583c8dc56902b8e9e4ba716f400a730b9
[ "MIT" ]
2
2020-10-27T19:49:07.000Z
2020-11-04T12:35:15.000Z
src/azure_run_train.py
yohskua/support-ticket-classification
ba26373583c8dc56902b8e9e4ba716f400a730b9
[ "MIT" ]
3
2020-11-13T18:57:14.000Z
2022-02-10T01:54:56.000Z
src/azure_run_train.py
yohskua/support-ticket-classification
ba26373583c8dc56902b8e9e4ba716f400a730b9
[ "MIT" ]
null
null
null
""" Endpoint to launch an experiment on AzureML. """ import os from os.path import dirname from typing import Optional from azureml.train.estimator import Estimator from azureml.core import Workspace, Datastore, Experiment, Run from src.utils import pip_packages from src.azure_utils import load_azure_conf def run_...
35.581081
83
0.720091
0
0
0
0
0
0
0
0
364
0.138245
ff57f5081cf328886c5e3633e7f6b890aa504bf4
2,386
py
Python
utils.py
X-Gamer-Guide/twitch-mod-activity-tracker
b2f59c06732ae5e84e2407540cb63a6842ba27e4
[ "MIT" ]
2
2022-03-09T17:54:53.000Z
2022-03-11T13:49:55.000Z
utils.py
X-Gamer-Guide/twitch-mod-activity-tracker
b2f59c06732ae5e84e2407540cb63a6842ba27e4
[ "MIT" ]
null
null
null
utils.py
X-Gamer-Guide/twitch-mod-activity-tracker
b2f59c06732ae5e84e2407540cb63a6842ba27e4
[ "MIT" ]
null
null
null
################################################################## # # # twitch mod activity tracker # # # # Copyright (C) 2022 X Gamer Guide ...
37.28125
109
0.523889
0
0
0
0
0
0
0
0
953
0.399413
ff59619cfc20a7cda244fc4d89652be6e3d0a62b
644
py
Python
setup.py
Newky/when_can_i_run
e7f5a97acb32db3601ea0e22cd382c270802c6e1
[ "MIT" ]
null
null
null
setup.py
Newky/when_can_i_run
e7f5a97acb32db3601ea0e22cd382c270802c6e1
[ "MIT" ]
null
null
null
setup.py
Newky/when_can_i_run
e7f5a97acb32db3601ea0e22cd382c270802c6e1
[ "MIT" ]
null
null
null
from setuptools import setup def parse_requirements(requirements_path): requirements = [] try: for line in open(requirements_path): if '#' not in line: requirements.append(line) except IOError: print("Could not open requirements file {}".format(requirements_path...
25.76
78
0.675466
0
0
0
0
0
0
0
0
192
0.298137
ff59e51b4fa55a54d473c146ad037ee2a323a7c7
33
py
Python
tests/unit/transformers/addons/__init__.py
sdv-dev/RDT
dbc550fc5e6cd62a032ab412aa8e2687bac82647
[ "MIT" ]
49
2020-05-02T23:36:48.000Z
2022-03-30T17:37:29.000Z
tests/unit/transformers/addons/__init__.py
sdv-dev/RDT
dbc550fc5e6cd62a032ab412aa8e2687bac82647
[ "MIT" ]
250
2020-01-09T16:22:51.000Z
2022-03-31T22:46:48.000Z
tests/unit/transformers/addons/__init__.py
sdv-dev/RDT
dbc550fc5e6cd62a032ab412aa8e2687bac82647
[ "MIT" ]
12
2020-02-22T21:18:20.000Z
2021-11-15T15:03:58.000Z
"""RDT addons testing module."""
16.5
32
0.666667
0
0
0
0
0
0
0
0
32
0.969697
ff5b34e968f98191d2753c8153930c996fac69c1
1,114
py
Python
alembic/versions/93ff199763ac_update_lib_raid_errors_table.py
pkgw/hera_mc
d2769a716a0e68fe709d3834362b94f547136836
[ "BSD-2-Clause" ]
4
2018-01-28T06:58:00.000Z
2020-04-16T11:19:38.000Z
alembic/versions/93ff199763ac_update_lib_raid_errors_table.py
pkgw/hera_mc
d2769a716a0e68fe709d3834362b94f547136836
[ "BSD-2-Clause" ]
474
2016-10-26T17:29:54.000Z
2022-02-15T21:51:52.000Z
alembic/versions/93ff199763ac_update_lib_raid_errors_table.py
pkgw/hera_mc
d2769a716a0e68fe709d3834362b94f547136836
[ "BSD-2-Clause" ]
2
2016-11-15T14:34:55.000Z
2020-11-02T08:07:19.000Z
"""update lib_raid_errors table Revision ID: 93ff199763ac Revises: b1063869f198 Create Date: 2017-07-27 00:13:29.765073+00:00 """ from alembic import op import sqlalchemy as sa from sqlalchemy.schema import Sequence, CreateSequence # revision identifiers, used by Alembic. revision = '93ff199763ac' down_revision = '...
29.315789
98
0.728905
0
0
0
0
0
0
0
0
570
0.51167
ff5c22e528b0317b09aca3288a9e47cff9255e98
1,864
py
Python
notebook/numpy/frac_dimension.py
pipepipexiaji/matplotlib
f7a25f22afeceb11f37354ff8249790090ab3df6
[ "MIT" ]
null
null
null
notebook/numpy/frac_dimension.py
pipepipexiaji/matplotlib
f7a25f22afeceb11f37354ff8249790090ab3df6
[ "MIT" ]
null
null
null
notebook/numpy/frac_dimension.py
pipepipexiaji/matplotlib
f7a25f22afeceb11f37354ff8249790090ab3df6
[ "MIT" ]
null
null
null
import sys, os import numpy as np def frac_dimension(z, threshold=0.9): def pointcount(z,k): s=np.add.reduceat(np.add.reduceat( z, np.arange(0, z.shape[0], k), axis=0 ), np.arange(0, z.shape[1], k), axis=1) return len(np.where( ( s>0 ) & (s<k*k) )[0]) z=(z<t...
34.518519
76
0.526288
0
0
0
0
0
0
0
0
82
0.043991
ff5d5019c2e1556f979ae8023b4f76dfde167be2
705
py
Python
tests/test_quotient.py
ICB-DCM/fiddy
c6300f60e7b67ca3b5255cc27a22293aa2690a96
[ "BSD-3-Clause" ]
3
2022-03-04T13:37:10.000Z
2022-03-04T13:37:16.000Z
tests/test_quotient.py
ICB-DCM/fiddy
c6300f60e7b67ca3b5255cc27a22293aa2690a96
[ "BSD-3-Clause" ]
9
2022-02-04T14:03:15.000Z
2022-02-24T15:41:15.000Z
tests/test_quotient.py
ICB-DCM/fiddy
c6300f60e7b67ca3b5255cc27a22293aa2690a96
[ "BSD-3-Clause" ]
null
null
null
import pytest import fiddy import numpy as np @pytest.fixture def line(): def function(x): return (3 * x + 2)[0] def derivative(x): return 3 return { "function": function, "derivative": derivative, "point": np.array([3]), "dimension": np.array([0]), ...
19.054054
48
0.547518
0
0
0
0
294
0.417021
0
0
106
0.150355
ff5d8d4b13202abe6fea868590e72915ddb862ae
2,388
py
Python
library/dbscripts_mkdirs.py
Acidburn0zzz/upstream-infra
82b91b4de88782d924ce01ae2b4b1b6b34eed6f7
[ "MIT" ]
73
2019-09-25T05:11:53.000Z
2022-03-21T13:18:57.000Z
library/dbscripts_mkdirs.py
Acidburn0zzz/upstream-infra
82b91b4de88782d924ce01ae2b4b1b6b34eed6f7
[ "MIT" ]
5
2019-12-14T23:36:38.000Z
2021-03-19T06:14:23.000Z
library/dbscripts_mkdirs.py
Acidburn0zzz/upstream-infra
82b91b4de88782d924ce01ae2b4b1b6b34eed6f7
[ "MIT" ]
20
2019-12-14T23:24:09.000Z
2022-01-13T04:25:03.000Z
#!/usr/bin/python import errno import grp import os import pwd from stat import * # simple module that creates many directories for users # initially created for dbscripts to create staging directories in the user homes def main(): module = AnsibleModule( argument_spec = dict( permiss...
33.166667
123
0.55402
0
0
0
0
0
0
0
0
313
0.131072
ff5dab03c7e7990a7a73aa7873bb629886472ec5
8,264
py
Python
setup.py
jessa/PySDD
57ccc22c4720ece54f11a593900e0a885023c6cc
[ "Apache-2.0" ]
34
2018-03-21T01:26:57.000Z
2022-03-10T08:53:18.000Z
setup.py
jessa/PySDD
57ccc22c4720ece54f11a593900e0a885023c6cc
[ "Apache-2.0" ]
12
2019-01-22T16:25:02.000Z
2022-02-01T10:21:29.000Z
setup.py
jessa/PySDD
57ccc22c4720ece54f11a593900e0a885023c6cc
[ "Apache-2.0" ]
14
2018-12-17T17:40:48.000Z
2022-03-22T02:53:01.000Z
#!/usr/bin/env python3 # -*- coding: UTF-8 -*- """ setup.py ~~~~~~~~ Usage: python3 setup.py build_ext --inplace :author: Wannes Meert :copyright: Copyright 2017-2019 KU Leuven and Regents of the University of California. :license: Apache License, Version 2.0, see LICENSE for details. """ from setuptools import setup...
32.924303
116
0.60818
2,704
0.327202
0
0
0
0
0
0
2,961
0.358301
ff5f1dd04b9ec5bca1730d92826728afac9748f4
780
py
Python
aws/python/snippets/__init__.py
tutunak/snippets
175b9cf35f5cb2b2cc5fc5f948038e5d560372f0
[ "MIT" ]
null
null
null
aws/python/snippets/__init__.py
tutunak/snippets
175b9cf35f5cb2b2cc5fc5f948038e5d560372f0
[ "MIT" ]
null
null
null
aws/python/snippets/__init__.py
tutunak/snippets
175b9cf35f5cb2b2cc5fc5f948038e5d560372f0
[ "MIT" ]
null
null
null
import boto3 # pip3 install boto3 def boto_init(aws_id, aws_secret): """ :param aws_id: aws key id :param aws_secret: aws secret id :return: bot3 session object """ session = boto3.Session( aws_access_key_id=aws_id, aws_secret_access_key=aws_secret ) return session ...
22.941176
65
0.657692
0
0
0
0
0
0
0
0
393
0.503846
ff628418c4c9d99f04b445fd71df0016faf4b958
2,995
py
Python
Sem7/CS6370_Information_Retrieval/assignment_2/part2.py
akileshbadrinaaraayanan/IITH
955e07af01ba2002f8efe9a4644395fc4e7a46d1
[ "MIT" ]
2
2018-02-21T22:46:54.000Z
2020-01-07T16:03:10.000Z
Sem7/CS6370_Information_Retrieval/assignment_2/part2.py
akileshbadrinaaraayanan/IITH
955e07af01ba2002f8efe9a4644395fc4e7a46d1
[ "MIT" ]
null
null
null
Sem7/CS6370_Information_Retrieval/assignment_2/part2.py
akileshbadrinaaraayanan/IITH
955e07af01ba2002f8efe9a4644395fc4e7a46d1
[ "MIT" ]
3
2018-05-08T01:57:11.000Z
2021-04-21T22:49:00.000Z
""" This module demonstrates finding the top K,median K and least K terms in the inverted index based on their document frequency """ import numpy as np from part1 import createindexes def get_topk(invertedindex): """ This function outputs the top k terms with highest document frequency. It takes the invert...
37.911392
100
0.635392
0
0
0
0
0
0
0
0
1,133
0.378297
ff637ccd06139e8711f83376afafd89f9be9cb1d
425
py
Python
store/migrations/0005_product_stock.py
Dinog59/ProyectoPizza
49c777970b5defa8fa92d22e9280c01efc54f97d
[ "MIT" ]
null
null
null
store/migrations/0005_product_stock.py
Dinog59/ProyectoPizza
49c777970b5defa8fa92d22e9280c01efc54f97d
[ "MIT" ]
null
null
null
store/migrations/0005_product_stock.py
Dinog59/ProyectoPizza
49c777970b5defa8fa92d22e9280c01efc54f97d
[ "MIT" ]
null
null
null
# Generated by Django 3.1.7 on 2021-11-11 02:42 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('store', '0004_auto_20211012_1517'), ] operations = [ migrations.AddField( model_name='product', name='stock', ...
21.25
57
0.6
332
0.781176
0
0
0
0
0
0
95
0.223529
ff66fc191e5cd060a3a30c03c46d05cc46439ecb
2,578
py
Python
benchmark/d3pe/scripts/eval_ope.py
ssimonc/NeoRL
098c58c8e4c3e43e67803f6384619d3bfe7fce5d
[ "Apache-2.0" ]
50
2021-02-07T08:10:28.000Z
2022-03-25T09:10:26.000Z
benchmark/d3pe/scripts/eval_ope.py
ssimonc/NeoRL
098c58c8e4c3e43e67803f6384619d3bfe7fce5d
[ "Apache-2.0" ]
7
2021-07-29T14:58:31.000Z
2022-02-01T08:02:54.000Z
benchmark/d3pe/scripts/eval_ope.py
ssimonc/NeoRL
098c58c8e4c3e43e67803f6384619d3bfe7fce5d
[ "Apache-2.0" ]
4
2021-04-01T16:30:15.000Z
2022-03-31T17:38:05.000Z
import os import json import argparse import numpy as np import matplotlib.pyplot as plt from scipy.stats import pearsonr from d3pe.metric.score import RC_score, TopK_score, get_policy_mean BenchmarkFolder = 'benchmarks' if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('-...
40.920635
92
0.655935
0
0
0
0
0
0
0
0
471
0.1827
ff67b713f5ee8c222855eceb330dedf872537124
374
py
Python
web_page_retrieve.py
yaya967/pythonbasics
94546a3eba1db166157b60f4f2f3c0115f4d2c31
[ "MIT" ]
10
2018-08-08T03:15:47.000Z
2022-01-21T15:31:53.000Z
web_page_retrieve.py
WebBreacher/pythonbasics
3b21ba785f38fa9e06b5018fd942cbb580087b4c
[ "MIT" ]
null
null
null
web_page_retrieve.py
WebBreacher/pythonbasics
3b21ba785f38fa9e06b5018fd942cbb580087b4c
[ "MIT" ]
5
2018-06-28T21:54:34.000Z
2020-11-06T07:24:38.000Z
''' Script to demonstrate how to retrieve a web page using the requests library ''' # Import the contents of the requests library import requests # URL to make the request to url = 'http://whatu.info' # Make the request, don't check for HTTPS certificate issues and store response in 'response' response = requests.ge...
24.933333
93
0.759358
0
0
0
0
0
0
0
0
268
0.716578
ff685253b9c0863707f35b85f1ef58190321a525
1,185
py
Python
python-deprecated/asset.py
unfixed/Dell-Warranty-Lookup
8775636d4b0a8aa30945b7bd8cedbf1b85d885c6
[ "WTFPL" ]
3
2015-02-13T16:14:14.000Z
2017-04-03T15:40:36.000Z
python-deprecated/asset.py
unfixed/Dell-Warranty-Lookup
8775636d4b0a8aa30945b7bd8cedbf1b85d885c6
[ "WTFPL" ]
null
null
null
python-deprecated/asset.py
unfixed/Dell-Warranty-Lookup
8775636d4b0a8aa30945b7bd8cedbf1b85d885c6
[ "WTFPL" ]
null
null
null
#Seperate File - Filename - asset.py class Asset(): def __init__(self,service_tag,name,user,dept): def GetAssetInformation(service_tag): from suds.client import Client import uuid client = Client("http://xserv.dell.com/services/assetservice.asmx?WSDL") r...
40.862069
146
0.624473
1,147
0.967932
0
0
0
0
0
0
134
0.11308
ff6894db50194aa75df64958c810c45cece30015
108
py
Python
app/database/base.py
Sephyr3s/Store-backend
c5e9cc91069e52b0ab11002094a88b1776b669bd
[ "Apache-2.0" ]
null
null
null
app/database/base.py
Sephyr3s/Store-backend
c5e9cc91069e52b0ab11002094a88b1776b669bd
[ "Apache-2.0" ]
null
null
null
app/database/base.py
Sephyr3s/Store-backend
c5e9cc91069e52b0ab11002094a88b1776b669bd
[ "Apache-2.0" ]
null
null
null
from app.database.base_class import Base from app.models.place import Place from app.models.user import User
36
40
0.842593
0
0
0
0
0
0
0
0
0
0
ff69eebfb5fd5176bd938dc3c3b14c86aedd74b9
3,366
py
Python
src/app.py
dyylaan/corona
73e834ecdbcc167542bd169a9b19eae759218ab9
[ "MIT" ]
null
null
null
src/app.py
dyylaan/corona
73e834ecdbcc167542bd169a9b19eae759218ab9
[ "MIT" ]
null
null
null
src/app.py
dyylaan/corona
73e834ecdbcc167542bd169a9b19eae759218ab9
[ "MIT" ]
null
null
null
import datetime import os import yaml import pandas as pd import dash import dash_core_components as dcc import dash_html_components as html from dash.dependencies import Input, Output # Répertoire du fichier des données PROCESSED_DIR = '../data/processed/' # Table principale ALL_DATA_FILE= 'all_data.csv' ENV_...
29.526316
117
0.541295
0
0
0
0
1,350
0.400712
0
0
866
0.25705
ff6cda50a149363e3fbb320406dd695af6260253
2,629
py
Python
templating/core/src/main/python/jsonteng/tags/for_each_tag.py
vmware/json-template-engine
afa606aef47599f8ff7cf7d1f927877a9ce786e7
[ "Apache-2.0" ]
21
2019-09-30T08:41:01.000Z
2022-03-15T08:23:28.000Z
templating/core/src/main/python/jsonteng/tags/for_each_tag.py
vmware/json-template-engine
afa606aef47599f8ff7cf7d1f927877a9ce786e7
[ "Apache-2.0" ]
1
2020-03-17T03:14:00.000Z
2020-05-01T18:02:23.000Z
templating/core/src/main/python/jsonteng/tags/for_each_tag.py
vmware/json-template-engine
afa606aef47599f8ff7cf7d1f927877a9ce786e7
[ "Apache-2.0" ]
7
2019-06-18T14:35:57.000Z
2021-12-06T23:01:30.000Z
# Copyright 2019 VMware, Inc. # SPDX-License-Indentifier: Apache-2.0 from ..exception import TemplateEngineException from .tag_base import TagBase class ForEachTag(TagBase): """ Apply a list of binding data to a template repeatedly and return the resolved templates in a list. """ name = "for-each...
38.101449
74
0.617345
2,478
0.942564
0
0
0
0
0
0
792
0.301255
ff6d5561a4aef51c3287d4dc9af0364e55380487
2,882
py
Python
src/the_tale/the_tale/game/cards/tests/test_give_stability.py
al-arz/the-tale
542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5
[ "BSD-3-Clause" ]
null
null
null
src/the_tale/the_tale/game/cards/tests/test_give_stability.py
al-arz/the-tale
542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5
[ "BSD-3-Clause" ]
null
null
null
src/the_tale/the_tale/game/cards/tests/test_give_stability.py
al-arz/the-tale
542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5
[ "BSD-3-Clause" ]
null
null
null
import smart_imports smart_imports.all() class GiveStabilityMixin(helpers.CardsTestMixin): CARD = None def setUp(self): super(GiveStabilityMixin, self).setUp() places_tt_services.effects.cmd_debug_clear_service() self.place_1, self.place_2, self.place_3 = game_logic.create_test_ma...
41.171429
140
0.670715
2,824
0.979875
0
0
0
0
0
0
108
0.037474
ff6e8eb6842c9a3fb4ed8421653c037eb9df34a1
944
py
Python
main/views.py
lurdray/crypto_invest
8e10bda0771ac48c22827021935be3a28c9c3107
[ "Apache-2.0" ]
1
2021-11-20T14:09:58.000Z
2021-11-20T14:09:58.000Z
main/views.py
lurdray/crypto_invest
8e10bda0771ac48c22827021935be3a28c9c3107
[ "Apache-2.0" ]
null
null
null
main/views.py
lurdray/crypto_invest
8e10bda0771ac48c22827021935be3a28c9c3107
[ "Apache-2.0" ]
null
null
null
from django.shortcuts import render, redirect from django.contrib import messages from django.shortcuts import render from django.utils import timezone from django.http import HttpResponse, HttpResponseRedirect from django.urls import reverse, reverse_lazy from django.contrib.auth import login, logout, authenticate fr...
26.222222
85
0.755297
0
0
0
0
0
0
0
0
146
0.154661
ff70584e9af663a354a11925e5dbf5f1175dd544
673
py
Python
mgt/datamanagers/data_manager.py
wingedsheep/music-generation-tools
02656eb75781925451f51d4ead7d8b6003bdeb29
[ "MIT" ]
12
2021-07-22T12:13:27.000Z
2022-02-13T09:09:08.000Z
mgt/datamanagers/data_manager.py
wingedsheep/music-generation-tools
02656eb75781925451f51d4ead7d8b6003bdeb29
[ "MIT" ]
9
2021-06-26T10:43:16.000Z
2021-12-03T17:25:10.000Z
mgt/datamanagers/data_manager.py
wingedsheep/music-generation-tools
02656eb75781925451f51d4ead7d8b6003bdeb29
[ "MIT" ]
null
null
null
from mgt.datamanagers.midi_wrapper import MidiWrapper class Dictionary(object): def __init__(self, word_to_data, data_to_word): self.wtd = word_to_data self.dtw = data_to_word def word_to_data(self, word): return self.wtd[word] def data_to_word(self, data): return self.d...
19.794118
53
0.655275
610
0.906389
0
0
0
0
0
0
0
0
ff70ad31a7318cd530102a309a6d7b1760414492
1,831
py
Python
16.3-sum-closest.py
leonhx/leetcode-practice
35fabe5a1b98c05a5dd5d6a62201e9cb54be69ec
[ "MIT" ]
null
null
null
16.3-sum-closest.py
leonhx/leetcode-practice
35fabe5a1b98c05a5dd5d6a62201e9cb54be69ec
[ "MIT" ]
null
null
null
16.3-sum-closest.py
leonhx/leetcode-practice
35fabe5a1b98c05a5dd5d6a62201e9cb54be69ec
[ "MIT" ]
null
null
null
# # @lc app=leetcode id=16 lang=python3 # # [16] 3Sum Closest # class Solution: def __init__(self, *, debug=False): super().__init__() self.debug = debug def binarySearchClosest(self, nums: List[int], target: int) -> int: if len(nums) == 0: return None if target <= n...
34.54717
77
0.464227
1,766
0.9645
0
0
0
0
0
0
139
0.075915
ff72d32718ca52261b3ee6803ac5fbc46065c1fa
4,262
py
Python
projects/mmdet3d_plugin/models/utils/detr.py
XiangTodayEatsWhat/detr3d
34a47673011fe13593a3e594a376668acca8bddb
[ "MIT" ]
237
2021-10-13T05:29:29.000Z
2022-03-31T13:04:13.000Z
projects/mmdet3d_plugin/models/utils/detr.py
XiangTodayEatsWhat/detr3d
34a47673011fe13593a3e594a376668acca8bddb
[ "MIT" ]
23
2021-10-20T13:57:27.000Z
2022-03-30T08:03:19.000Z
projects/mmdet3d_plugin/models/utils/detr.py
XiangTodayEatsWhat/detr3d
34a47673011fe13593a3e594a376668acca8bddb
[ "MIT" ]
47
2021-10-14T05:38:30.000Z
2022-03-31T09:15:59.000Z
import torch from mmcv.cnn.bricks.registry import TRANSFORMER_LAYER_SEQUENCE from mmcv.cnn.bricks.transformer import TransformerLayerSequence def inverse_sigmoid(x, eps=1e-5): """Inverse function of sigmoid. Args: x (Tensor): The tensor to do the inverse. eps (float): EPS avoid num...
39.831776
81
0.572032
3,591
0.842167
0
0
3,637
0.852955
0
0
1,599
0.375
ff74ecb0d326e0eac765860b694710655beda7d9
1,594
py
Python
mikaponics/production/serializers/production_list_serializer.py
mikaponics/mikaponics-back
98e1ff8bab7dda3492e5ff637bf5aafd111c840c
[ "BSD-3-Clause" ]
2
2019-04-30T23:51:41.000Z
2019-05-04T00:35:52.000Z
mikaponics/production/serializers/production_list_serializer.py
mikaponics/mikaponics-back
98e1ff8bab7dda3492e5ff637bf5aafd111c840c
[ "BSD-3-Clause" ]
27
2019-04-30T20:22:28.000Z
2022-02-10T08:10:32.000Z
mikaponics/production/serializers/production_list_serializer.py
mikaponics/mikaponics-back
98e1ff8bab7dda3492e5ff637bf5aafd111c840c
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from django.contrib.auth.models import Group from django.contrib.auth import authenticate from django.db.models import Q from django.shortcuts import get_object_or_404 from django.template.loader import render_to_string # HTML / TXT from django.utils import timezone from django.utils.translatio...
37.952381
113
0.693852
1,105
0.693225
0
0
0
0
0
0
349
0.218946
ff74ee1bc3fce59d2d7d4cb04d5cb940742c5669
703
py
Python
14_funcoes/a118_prog_funcional_spoiler_callable.py
smartao/estudos_python
252a2e592ff929dfc6c06fc09b42cb7063ad0b5a
[ "MIT" ]
null
null
null
14_funcoes/a118_prog_funcional_spoiler_callable.py
smartao/estudos_python
252a2e592ff929dfc6c06fc09b42cb7063ad0b5a
[ "MIT" ]
9
2019-11-15T14:21:43.000Z
2020-03-15T14:37:13.000Z
14_funcoes/a118_prog_funcional_spoiler_callable.py
smartao/estudos_python
252a2e592ff929dfc6c06fc09b42cb7063ad0b5a
[ "MIT" ]
null
null
null
#!/usr/bin/python3 ''' def executar(funcao): = Criando a funcao executar if callable(funcao): = Validando se o objeto é tipo de uma funcao funcao() = Executando a funcoa recebida ''' def executar(funcao): if callable(funcao): # server para ingorar o parametro (1) funcao() def bom_dia(): print('Bom ...
23.433333
70
0.699858
0
0
0
0
0
0
0
0
487
0.689802
ff7540d786ab22443dc636b82caf6d053f4d74c0
1,708
py
Python
S4/S4 Library/simulation/sims/template_affordance_provider/tunable_provided_template_affordance.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
1
2021-05-20T19:33:37.000Z
2021-05-20T19:33:37.000Z
S4/S4 Library/simulation/sims/template_affordance_provider/tunable_provided_template_affordance.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
null
null
null
S4/S4 Library/simulation/sims/template_affordance_provider/tunable_provided_template_affordance.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
null
null
null
from sims.template_affordance_provider.tunable_affordance_template_discipline import TunableAffordanceTemplateDiscipline from sims4.tuning.tunable import TunableTuple, TunableSimMinute, TunableList, TunableVariant, OptionalTunable class TunableProvidedTemplateAffordance(TunableTuple): def __init__(self, descripti...
213.5
1,210
0.691452
1,475
0.863583
0
0
0
0
0
0
1,020
0.59719
ff757c0033f146e8ae2a1233be375571d695284f
1,616
py
Python
accounts/utils.py
theonlykingpin/snapfoodclone
0c1a7839424e89d9bc7bfb55c150a92055759702
[ "MIT" ]
11
2021-09-17T07:44:05.000Z
2022-02-06T08:33:30.000Z
accounts/utils.py
theonlykingpin/snapfoodclone
0c1a7839424e89d9bc7bfb55c150a92055759702
[ "MIT" ]
1
2021-10-09T07:37:14.000Z
2021-10-09T07:37:14.000Z
accounts/utils.py
theonlykingpin/snapfoodclone
0c1a7839424e89d9bc7bfb55c150a92055759702
[ "MIT" ]
3
2021-09-27T14:12:13.000Z
2021-10-18T12:21:37.000Z
from datetime import datetime, timedelta from random import randint from django.contrib.auth.mixins import UserPassesTestMixin from django.core.exceptions import ValidationError from accounts.models import Customer, ServiceProvider def phone_number_validator(value): if not value.startswith('98') or len(value) !...
28.857143
98
0.702351
306
0.189356
0
0
0
0
0
0
208
0.128713
ff75e873bc50af3add423f1f76edc56efdae6ca7
2,135
py
Python
2-Python-Fundamentals (Jan 2021)/Course-Exercises-and-Exams/05-Lists-Advanced/02_Exercises/04-Office-Chairs.py
karolinanikolova/SoftUni-Software-Engineering
7891924956598b11a1e30e2c220457c85c40f064
[ "MIT" ]
null
null
null
2-Python-Fundamentals (Jan 2021)/Course-Exercises-and-Exams/05-Lists-Advanced/02_Exercises/04-Office-Chairs.py
karolinanikolova/SoftUni-Software-Engineering
7891924956598b11a1e30e2c220457c85c40f064
[ "MIT" ]
null
null
null
2-Python-Fundamentals (Jan 2021)/Course-Exercises-and-Exams/05-Lists-Advanced/02_Exercises/04-Office-Chairs.py
karolinanikolova/SoftUni-Software-Engineering
7891924956598b11a1e30e2c220457c85c40f064
[ "MIT" ]
null
null
null
# 4. Office Chairs # So you've found a meeting room - phew! ' \ # 'You arrive there ready to present, and find that someone has taken one or more of the chairs!! ' \ # 'You need to find some quick.... check all the other meeting rooms to see if all of the chairs are in use. # You will be given a number n re...
47.444444
120
0.719906
0
0
0
0
0
0
0
0
1,666
0.780328
ff769261d192cb236045382aced01d930dd67c3c
1,378
py
Python
src/SamplePreprocessor.py
msfasha/Arabic-Deep-Learning-OCR
10cd02937eb4aa7f3e40265ec6a4d50f4ef5ef29
[ "MIT" ]
7
2021-12-16T08:23:20.000Z
2022-03-14T19:10:25.000Z
src/SamplePreprocessor.py
msfasha/ArabicDLOCR
10cd02937eb4aa7f3e40265ec6a4d50f4ef5ef29
[ "MIT" ]
3
2021-09-17T14:31:34.000Z
2021-12-09T05:32:12.000Z
src/SamplePreprocessor.py
msfasha/ArabicDLOCR
10cd02937eb4aa7f3e40265ec6a4d50f4ef5ef29
[ "MIT" ]
1
2021-02-21T20:11:30.000Z
2021-02-21T20:11:30.000Z
from __future__ import division from __future__ import print_function import random import numpy as np import cv2 import Config as config def preprocess(img): "scale image into the desired imgSize, transpose it for TF and normalize gray-values" # increase dataset size by applying random stretche...
31.318182
90
0.609579
0
0
0
0
0
0
0
0
389
0.282293
ff769c71c4daf7a143069fafb6b927bdd86beb99
11,249
py
Python
feature_examples/tensorflow/inspecting_tensors/pipelined_model.py
Paperspace/tutorials
8e20ffb687080c44e75dabea594d2b57acc53713
[ "MIT" ]
null
null
null
feature_examples/tensorflow/inspecting_tensors/pipelined_model.py
Paperspace/tutorials
8e20ffb687080c44e75dabea594d2b57acc53713
[ "MIT" ]
78
2021-09-20T11:48:08.000Z
2021-10-21T07:10:39.000Z
feature_examples/tensorflow/inspecting_tensors/pipelined_model.py
Paperspace/tutorials
8e20ffb687080c44e75dabea594d2b57acc53713
[ "MIT" ]
1
2022-02-25T12:07:16.000Z
2022-02-25T12:07:16.000Z
# Copyright (c) 2020 Graphcore Ltd. All rights reserved. import argparse from functools import partial import numpy as np import tensorflow.compat.v1 as tf from tensorflow.keras.datasets import mnist from tensorflow.keras import layers from tensorflow.python import ipu from outfeed_optimizer import OutfeedOptimizer,...
42.289474
131
0.649391
0
0
0
0
0
0
0
0
3,730
0.331585
ff76a6c284f6402781219fe1a5d5ef9cc1b7570a
1,161
py
Python
youtube_list.py
fumen/gae-fumen
cb73c92336ec20e4c5caf5276e51c9618e5a107d
[ "BSD-3-Clause" ]
null
null
null
youtube_list.py
fumen/gae-fumen
cb73c92336ec20e4c5caf5276e51c9618e5a107d
[ "BSD-3-Clause" ]
null
null
null
youtube_list.py
fumen/gae-fumen
cb73c92336ec20e4c5caf5276e51c9618e5a107d
[ "BSD-3-Clause" ]
null
null
null
# from apiclient.discovery import build # from apiclient.errors import HttpError from googleapiclient.discovery import build from googleapiclient.errors import HttpError from oauth2client.tools import argparser DEVELOPER_KEY = "AIzaSyCsrKjMf7_mHYrT6rIJ-oaA6KL5IYg389A" YOUTUBE_API_SERVICE_NAME = "youtube" YOUTUBE_API_V...
30.552632
94
0.70801
0
0
0
0
0
0
0
0
286
0.246339
ff77cf7a8eea7809ab411aa9b0c87d02e9b83629
5,837
py
Python
tests/rbac/test_policies.py
giangbui/fence
5a28b77c30ce7fb11fd05b09a023d0aec1e57e16
[ "Apache-2.0" ]
2
2019-06-10T15:30:51.000Z
2020-01-18T23:24:13.000Z
tests/rbac/test_policies.py
giangbui/fence
5a28b77c30ce7fb11fd05b09a023d0aec1e57e16
[ "Apache-2.0" ]
null
null
null
tests/rbac/test_policies.py
giangbui/fence
5a28b77c30ce7fb11fd05b09a023d0aec1e57e16
[ "Apache-2.0" ]
1
2022-03-31T09:52:46.000Z
2022-03-31T09:52:46.000Z
# pylint: disable=unused-argument """ Run tests for the policy endpoints in the RBAC blueprint. Note that any test which will cause a call to ``fence.blueprints.rbac.lookup_policies`` must add the test policies to the database, otherwise fence will raise an error from not finding a policy. Use something like this: ...
36.710692
82
0.716464
0
0
0
0
0
0
0
0
2,313
0.396265
ff79db00a80e1a45e4d85ba2459fb187941dbe4e
901
py
Python
count.py
amacd31/pypi_download_counter
10c0c239185d0c76dbb0717561b4548439847cc6
[ "BSD-3-Clause" ]
null
null
null
count.py
amacd31/pypi_download_counter
10c0c239185d0c76dbb0717561b4548439847cc6
[ "BSD-3-Clause" ]
null
null
null
count.py
amacd31/pypi_download_counter
10c0c239185d0c76dbb0717561b4548439847cc6
[ "BSD-3-Clause" ]
null
null
null
from datetime import date import pandas as pd import requests from phildb.database import PhilDB from phildb.exceptions import DuplicateError MEASURANDS = ['last_day', 'last_week', 'last_month'] db = PhilDB('pypi_downloads') def get_pypi_info(package_name): r = requests.get('https://pypi.python.org/pypi/{0}/jso...
23.710526
115
0.641509
0
0
0
0
0
0
0
0
137
0.152053
ff7ba6f9e8860cad59ba673c821554190e51c56e
4,773
py
Python
source/evaluate.py
dovietchinh/multi-task-classification
23a70300a7a800bc982f87902b6aa1faaf91b489
[ "RSA-MD" ]
null
null
null
source/evaluate.py
dovietchinh/multi-task-classification
23a70300a7a800bc982f87902b6aa1faaf91b489
[ "RSA-MD" ]
null
null
null
source/evaluate.py
dovietchinh/multi-task-classification
23a70300a7a800bc982f87902b6aa1faaf91b489
[ "RSA-MD" ]
null
null
null
import torch from models.mobilenetv2 import MobileNetV2 import sklearn.metrics from tqdm import tqdm import argparse import logging from utils.dataset import LoadImagesAndLabels, preprocess from utils.torch_utils import select_device import yaml import pandas as pd import os import numpy as np LOGGER = logging.getL...
40.449153
147
0.600251
0
0
0
0
0
0
0
0
1,109
0.232349
ff7c13128a462bb3be23d19e422d7d63b0a4d08d
1,070
py
Python
exec_command.py
Stefantb/CMakeTools
3fd909e0d45034180e8cf97d73779468c555368f
[ "MIT" ]
null
null
null
exec_command.py
Stefantb/CMakeTools
3fd909e0d45034180e8cf97d73779468c555368f
[ "MIT" ]
null
null
null
exec_command.py
Stefantb/CMakeTools
3fd909e0d45034180e8cf97d73779468c555368f
[ "MIT" ]
null
null
null
import imp import Default.exec from . import build_tools from . import logging imp.reload(build_tools) imp.reload(logging) # ***************************************************************************** # # ***************************************************************************** logger = logging.get_logger(__...
28.157895
79
0.483178
513
0.479439
0
0
0
0
0
0
474
0.442991
ff7cee0bbdeb25c035125e937f02eb3a317f2f50
233
py
Python
podcast/admin.py
Msyoka/2cents
8a0f0ddef743b27c715d46ee790eca6f48e8d163
[ "MIT" ]
null
null
null
podcast/admin.py
Msyoka/2cents
8a0f0ddef743b27c715d46ee790eca6f48e8d163
[ "MIT" ]
null
null
null
podcast/admin.py
Msyoka/2cents
8a0f0ddef743b27c715d46ee790eca6f48e8d163
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Profile, Comments, Votes, Podcasts # Register your models here. admin.site.register(Podcasts) admin.site.register(Profile) admin.site.register(Comments) admin.site.register(Votes)
29.125
54
0.815451
0
0
0
0
0
0
0
0
28
0.120172
ff7d34e02261e5588658057813346b3480351089
700
py
Python
test/test_wire2.py
aravindhk/Vides
65d9ea9764ddf5f6ef40e869bd31387d0e3e378f
[ "BSD-4-Clause" ]
2
2021-11-03T17:24:24.000Z
2021-12-02T06:06:50.000Z
test/test_wire2.py
aravindhk/Vides
65d9ea9764ddf5f6ef40e869bd31387d0e3e378f
[ "BSD-4-Clause" ]
null
null
null
test/test_wire2.py
aravindhk/Vides
65d9ea9764ddf5f6ef40e869bd31387d0e3e378f
[ "BSD-4-Clause" ]
null
null
null
from NanoTCAD_ViDES import * #a=array([5.4,0,0,10,6]) #rank = MPI.COMM_WORLD.Get_rank() rank=0; a=array([5.43,0,1,3.85,10.5]) [x,y,z]=atoms_coordinates_nanowire(a); save_format_xyz("Z2.xyz",x/10.0,y/10.0,z/10.0,"Si"); [HH,n,Nc]=create_H_from_xyz(x,y,z,10,thop_Si,3,4); ind=argsort(HH[:,1]); savetxt("H",(real(HH[:,0:10])...
21.212121
52
0.631429
0
0
0
0
0
0
0
0
169
0.241429
ff81e93f9d63ba522af9720a31163a75f3b71887
2,127
py
Python
setup.py
spacemeat/humon-py
f67119be656c169fda5624ef1d33d639e0e84809
[ "MIT" ]
null
null
null
setup.py
spacemeat/humon-py
f67119be656c169fda5624ef1d33d639e0e84809
[ "MIT" ]
null
null
null
setup.py
spacemeat/humon-py
f67119be656c169fda5624ef1d33d639e0e84809
[ "MIT" ]
null
null
null
# We're linking against '../build/bin/libhumon-d.a' which is built by `../build.py`. from setuptools import setup, Extension with open ('README.md', 'r') as f: long_desc = f.read() setup(name="humon", version='0.0.3', description='A Python wrapper over humon\'s C API, for reading Humon token stream...
41.705882
91
0.416549
0
0
0
0
0
0
0
0
867
0.407616
ff82d04b9e540859b9ae5219908e24258f1feaee
21,785
py
Python
tutorial files/spectrast2spectrast_irt.py
tachengxmu/QuantPipe
5d75891dc8672284e90beab363d253ecf14e3775
[ "BSD-3-Clause" ]
1
2020-10-26T08:28:49.000Z
2020-10-26T08:28:49.000Z
tutorial files/spectrast2spectrast_irt.py
tachengxmu/QuantPipe
5d75891dc8672284e90beab363d253ecf14e3775
[ "BSD-3-Clause" ]
5
2020-11-01T03:01:15.000Z
2021-01-21T06:39:00.000Z
tutorial files/spectrast2spectrast_irt.py
tachengxmu/QuantPipe
5d75891dc8672284e90beab363d253ecf14e3775
[ "BSD-3-Clause" ]
null
null
null
#!C:\Anaconda3\python.exe """ Copyright (c) 2012, ETH Zurich, Insitute of Molecular Systems Biology, George Rosenberger 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 co...
50.780886
3,844
0.65972
10,858
0.498416
0
0
0
0
0
0
7,717
0.354235
ff8380265f376dd391d1a11edf2a540c53f53a18
3,755
py
Python
indra/lib/python/indra/base/metrics.py
humbletim/archived-casviewer
3b51b1baae7e7cebf1c7dca62d9c02751709ee57
[ "Unlicense" ]
null
null
null
indra/lib/python/indra/base/metrics.py
humbletim/archived-casviewer
3b51b1baae7e7cebf1c7dca62d9c02751709ee57
[ "Unlicense" ]
null
null
null
indra/lib/python/indra/base/metrics.py
humbletim/archived-casviewer
3b51b1baae7e7cebf1c7dca62d9c02751709ee57
[ "Unlicense" ]
null
null
null
"""\ @file metrics.py @author Phoenix @date 2007-11-27 @brief simple interface for logging metrics $LicenseInfo:firstyear=2007&license=mit$ Copyright (c) 2007-2009, Linden Research, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (...
30.778689
77
0.69241
940
0.250333
0
0
0
0
0
0
2,019
0.537683
ff83eb9a77537e2ab8fa2e7059f2473c401773ef
955
py
Python
CodeChef/KAVGMAT.py
PROxZIMA/Competitive-Coding
ba6b365ea130b6fcaa15c5537b530ed363bab793
[ "MIT" ]
1
2021-01-10T13:29:21.000Z
2021-01-10T13:29:21.000Z
CodeChef/KAVGMAT.py
PROxZIMA/Competitive-Coding
ba6b365ea130b6fcaa15c5537b530ed363bab793
[ "MIT" ]
null
null
null
CodeChef/KAVGMAT.py
PROxZIMA/Competitive-Coding
ba6b365ea130b6fcaa15c5537b530ed363bab793
[ "MIT" ]
null
null
null
# https://www.codechef.com/viewsolution/44674409 from itertools import accumulate def binSearch(arr: tuple, r: int, lens: int, k: int, siz: int) -> int: s, l, siz2, total = 1, lens, siz ** 2, lens + 1 while (s <= l): m = int((s + l) / 2) avg = (arr[r][m] - arr[r][m - siz] - arr[r - siz][m] + ...
28.939394
92
0.489005
0
0
0
0
0
0
0
0
48
0.050262
ff84bc8bc1a66d6322c20e43d9ff178f6a164a04
3,074
py
Python
solver.py
koffes/professorspillet
735b460c4757fe9dbc5f12e25dd3c808a8fe3d1f
[ "MIT" ]
null
null
null
solver.py
koffes/professorspillet
735b460c4757fe9dbc5f12e25dd3c808a8fe3d1f
[ "MIT" ]
null
null
null
solver.py
koffes/professorspillet
735b460c4757fe9dbc5f12e25dd3c808a8fe3d1f
[ "MIT" ]
null
null
null
"""Professor game solver.""" from deck import Deck import tiles from display import Display from board import Board import argparse class Solver: """Solver for the professor game.""" def __init__(self): """Create the deck and start the solver.""" self.deck = Deck(tiles.DECK) self.disp...
34.155556
79
0.559857
2,534
0.824333
0
0
0
0
0
0
405
0.13175
ff8661954cbb2044fab53dc99ce42a19a19a7154
720
py
Python
main.py
henry2ee/danmu
997c8a89caf24fb8735516208b79bd7353577818
[ "MIT" ]
null
null
null
main.py
henry2ee/danmu
997c8a89caf24fb8735516208b79bd7353577818
[ "MIT" ]
null
null
null
main.py
henry2ee/danmu
997c8a89caf24fb8735516208b79bd7353577818
[ "MIT" ]
null
null
null
import time import asyncio from examples.test_bili_danmu import test_tcp_v2_danmu_client as bi_danmu from examples.test_huya_danmu import test_ws_danmu_client as hy_danmu from examples.test_douyu_danmu import test_ws_danmu_client as dy_danmu # loop.run_until_complete(test_tcp_v2_danmu_client()) print('请选择直播平台 1.B站...
24.827586
73
0.791667
0
0
0
0
0
0
0
0
178
0.227041
ff8706b5a00742ca3207eda1bc2ad47956aa1b90
40
py
Python
tributary/lazy/calculations/utils.py
ceball/tributary
5e30f90d1a5cc176c0f231f525d9dc5a81353925
[ "Apache-2.0" ]
357
2018-09-13T19:58:46.000Z
2022-03-31T17:22:20.000Z
tributary/lazy/calculations/utils.py
ceball/tributary
5e30f90d1a5cc176c0f231f525d9dc5a81353925
[ "Apache-2.0" ]
109
2018-09-13T18:37:00.000Z
2022-03-27T00:59:49.000Z
tributary/lazy/calculations/utils.py
ceball/tributary
5e30f90d1a5cc176c0f231f525d9dc5a81353925
[ "Apache-2.0" ]
36
2018-09-17T21:01:05.000Z
2022-03-26T02:41:37.000Z
_CALCULATIONS_GRAPHVIZSHAPE = "ellipse"
20
39
0.85
0
0
0
0
0
0
0
0
9
0.225
ff873ce57d71d33d7d0aa04efbb17bf2b6287acb
394
py
Python
Fundamentals/Exer.035.py
thiagokanagushiku/Python-Exercises
e536ff3c64911d3f25d4b1441c4ef070faab1764
[ "MIT" ]
null
null
null
Fundamentals/Exer.035.py
thiagokanagushiku/Python-Exercises
e536ff3c64911d3f25d4b1441c4ef070faab1764
[ "MIT" ]
null
null
null
Fundamentals/Exer.035.py
thiagokanagushiku/Python-Exercises
e536ff3c64911d3f25d4b1441c4ef070faab1764
[ "MIT" ]
null
null
null
print('\033[31m-=\033[m'*20) print('Analisador de Triângulos') print('\033[31m-=\033[m'*20) PS = float(input('Primeiro segmento:')) SS = float(input('Segundo segmento:')) TS = float(input('Terceiro segmento')) if PS < (SS + TS) and SS < (PS + TS) and TS < (PS + SS): print('Os segmentos acima PODEM FORMAR um triângu...
39.4
62
0.667513
0
0
0
0
0
0
0
0
222
0.557789
ff89c28a62c2b3ce0f84616a879b1b818bbc1672
653
py
Python
dynamic_rest/renderers.py
reinert/dynamic-rest
aaf3973f69b53ed317b9c8468942523715814fa8
[ "MIT" ]
690
2016-02-05T22:46:03.000Z
2022-03-28T18:59:49.000Z
dynamic_rest/renderers.py
reinert/dynamic-rest
aaf3973f69b53ed317b9c8468942523715814fa8
[ "MIT" ]
190
2015-03-06T16:57:21.000Z
2022-02-02T21:56:07.000Z
dynamic_rest/renderers.py
reinert/dynamic-rest
aaf3973f69b53ed317b9c8468942523715814fa8
[ "MIT" ]
117
2016-05-05T13:51:07.000Z
2022-02-28T18:25:56.000Z
"""This module contains custom renderer classes.""" from rest_framework.renderers import BrowsableAPIRenderer class DynamicBrowsableAPIRenderer(BrowsableAPIRenderer): """Renderer class that adds directory support to the Browsable API.""" template = 'dynamic_rest/api.html' def get_context(self, data, med...
31.095238
74
0.690658
540
0.826953
0
0
0
0
0
0
164
0.251149
ff89e4fe7cb73dbb2c2951c31c1b4e05b345c9ee
521
py
Python
sqlstrainer/__init__.py
MoebiusSolutions/sqlstrainer
1be8442deb00971bea17cc676fdfe270552966cf
[ "MIT" ]
null
null
null
sqlstrainer/__init__.py
MoebiusSolutions/sqlstrainer
1be8442deb00971bea17cc676fdfe270552966cf
[ "MIT" ]
null
null
null
sqlstrainer/__init__.py
MoebiusSolutions/sqlstrainer
1be8442deb00971bea17cc676fdfe270552966cf
[ "MIT" ]
null
null
null
"""SQLStrainer filters SQLAlchemy Query objects based any column or hybrid property of a related model. .. code:: from sqlstrainer import strainer strainer = sqlstrainer(mydb) query.filter(strainer.strain(request.args)) mapper ------ .. automodule:: sqlstrainer.mapper strainer -------- .. automodule...
15.323529
103
0.702495
0
0
0
0
0
0
0
0
504
0.96737
ff8ad2742f44d16038167e00c4e49b630ac94e9f
745
py
Python
pylayers/gis/test/test_taoffice.py
usmanwardag/pylayers
2e8a9bdc993b2aacc92610a9c7edf875c6c7b24a
[ "MIT" ]
143
2015-01-09T07:50:20.000Z
2022-03-02T11:26:53.000Z
pylayers/gis/test/test_taoffice.py
usmanwardag/pylayers
2e8a9bdc993b2aacc92610a9c7edf875c6c7b24a
[ "MIT" ]
148
2015-01-13T04:19:34.000Z
2022-03-11T23:48:25.000Z
pylayers/gis/test/test_taoffice.py
usmanwardag/pylayers
2e8a9bdc993b2aacc92610a9c7edf875c6c7b24a
[ "MIT" ]
95
2015-05-01T13:22:42.000Z
2022-03-15T11:22:28.000Z
from pylayers.gis.layout import * from pylayers.simul.link import * L = Layout('TA-Office.ini',force=True) ##L.build() #plt.ion() ##L.showG('st',aw=True,labels=True,nodelist=L.ldiffout) #f,lax= plt.subplots(2,2) #L.showG('s',aw=True,labels=True,fig=f,ax=lax[0][0]) #lax[0][0].set_title('Gs',fontsize=18) #L.showG('st',a...
32.391304
75
0.651007
0
0
0
0
0
0
0
0
634
0.851007
ff8bd9285a91afad46966a1aacbf71a2f7a0647a
4,839
py
Python
pdffitx/tests/modeling/test_running.py
st3107/pdffitx
c746f6dfaf5656e9bb62508a9847c00567b34bbe
[ "BSD-3-Clause" ]
null
null
null
pdffitx/tests/modeling/test_running.py
st3107/pdffitx
c746f6dfaf5656e9bb62508a9847c00567b34bbe
[ "BSD-3-Clause" ]
null
null
null
pdffitx/tests/modeling/test_running.py
st3107/pdffitx
c746f6dfaf5656e9bb62508a9847c00567b34bbe
[ "BSD-3-Clause" ]
null
null
null
import pytest from matplotlib import pyplot as plt from pdffitx.modeling import F, multi_phase, optimize, fit_calib, MyParser @pytest.mark.parametrize( "data_key,kwargs,free_params,use_cf,expected", [ ( "Ni_stru", { 'values': {'scale_G0': 0.1, 'a_G0': 3.42, 'Bi...
32.695946
107
0.468899
0
0
0
0
4,542
0.938624
0
0
1,500
0.309981
ff8ce990defadd7ba91067f5390a302defb75739
4,608
py
Python
pyFolderLock/pyFolderLockCli.py
Writ3r/pyFolderLock
0cb4eac3c91fc0095b5bda9794eaff62c38000b7
[ "MIT" ]
1
2021-02-08T20:03:39.000Z
2021-02-08T20:03:39.000Z
pyFolderLock/pyFolderLockCli.py
Writ3r/pyFolderLock
0cb4eac3c91fc0095b5bda9794eaff62c38000b7
[ "MIT" ]
null
null
null
pyFolderLock/pyFolderLockCli.py
Writ3r/pyFolderLock
0cb4eac3c91fc0095b5bda9794eaff62c38000b7
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import logging import argparse import multiprocessing from pathlib import Path from pyFolderLock import MultiFolderEncryptor, InvalidPasswordError, InvalidArgumentError # ================================================================ # # Program specific part...
33.151079
100
0.532986
0
0
0
0
0
0
0
0
2,152
0.467014
ff8cf0a690ddb21019a081d81240d10700344897
1,032
py
Python
geo.py
biliarski/Geo
3eb8f3073f734ed13d8fa508a2fa29828e13cd11
[ "MIT" ]
null
null
null
geo.py
biliarski/Geo
3eb8f3073f734ed13d8fa508a2fa29828e13cd11
[ "MIT" ]
null
null
null
geo.py
biliarski/Geo
3eb8f3073f734ed13d8fa508a2fa29828e13cd11
[ "MIT" ]
null
null
null
from segpy.reader import create_reader from segpy.writer import write_segy import numpy as np """ Docs: Segpy https://segpy.readthedocs.io/en/latest/ NumPy https://docs.scipy.org/doc/numpy-1.13.0/reference/index.html """ if __name__ == '__main__': with open('data/CUTE.sgy', 'rb') as segy_in_file:...
31.272727
95
0.655039
0
0
0
0
0
0
0
0
525
0.508721
ff8da5b6c055840eb2495a1ff2b0ff2da60c7317
5,405
py
Python
cogs/rng.py
AbstractUmbra/Okayu
0a96ee4acbb82dd19302f90e49b6b7f550b1f8fc
[ "MIT" ]
6
2020-05-05T14:46:45.000Z
2020-08-07T21:48:48.000Z
cogs/rng.py
AbstractUmbra/Okayu
0a96ee4acbb82dd19302f90e49b6b7f550b1f8fc
[ "MIT" ]
1
2020-10-01T18:50:15.000Z
2020-10-01T18:51:12.000Z
cogs/rng.py
AbstractUmbra/Robo-Hz
0a96ee4acbb82dd19302f90e49b6b7f550b1f8fc
[ "MIT" ]
4
2020-10-01T18:30:30.000Z
2020-10-02T00:35:02.000Z
""" This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. """ from __future__ import annotations import random import re from collections import Counter from typing imp...
33.364198
111
0.595745
4,673
0.86457
0
0
3,909
0.723219
4,326
0.80037
1,650
0.305273
ff8ef7348f50df3b9ddae02489685e3cf3e047f9
28,928
py
Python
lib/silfont/scripts/psfrenameglyphs.py
silnrsi/pysilfont
3c7855d21426590a3c0e235c965e8f90b76eccbb
[ "MIT" ]
41
2015-05-21T21:12:26.000Z
2022-02-17T17:23:14.000Z
lib/silfont/scripts/psfrenameglyphs.py
silnrsi/pysilfont
3c7855d21426590a3c0e235c965e8f90b76eccbb
[ "MIT" ]
63
2015-05-15T10:25:55.000Z
2021-02-23T04:51:17.000Z
lib/silfont/scripts/psfrenameglyphs.py
silnrsi/pysilfont
3c7855d21426590a3c0e235c965e8f90b76eccbb
[ "MIT" ]
12
2015-06-12T11:52:08.000Z
2020-09-23T10:40:59.000Z
#!/usr/bin/env python __doc__ = '''Assign new working names to glyphs based on csv input file - csv format oldname,newname''' __url__ = 'http://github.com/silnrsi/pysilfont' __copyright__ = 'Copyright (c) 2017 SIL International (http://www.sil.org)' __license__ = 'Released under the MIT License (http://opensource.org/l...
49.197279
154
0.565715
185
0.006395
0
0
0
0
0
0
9,783
0.338184
ff8fc1feea52ac13e885aa0cfdc3793215a7e44b
2,963
py
Python
firefox.py
G4ryDave/GoogleMapsSightsManager
651899bf29960d68e5023b0b215cb068e16f21c9
[ "MIT" ]
2
2018-12-15T17:56:16.000Z
2021-08-05T12:17:16.000Z
firefox.py
G4ryDave/GoogleMapsSightsManager
651899bf29960d68e5023b0b215cb068e16f21c9
[ "MIT" ]
null
null
null
firefox.py
G4ryDave/GoogleMapsSightsManager
651899bf29960d68e5023b0b215cb068e16f21c9
[ "MIT" ]
null
null
null
import getpass import os import sys import time from selenium import webdriver from selenium.common.exceptions import NoSuchWindowException from selenium.webdriver.firefox.options import Options as FirefoxOptions import savePlace def main(): print("Requested information about the Google Account where you want t...
36.134146
123
0.687479
0
0
0
0
0
0
0
0
962
0.324671
ff915cb80b4b2c60c7c3e4a9792e6477f9f90875
272
py
Python
apiclients/client.py
Crossing-Minds/reco-api-benchmarks
f740072a23e88270632a1acda468854e457d5086
[ "MIT" ]
3
2021-07-21T04:56:10.000Z
2022-01-24T21:14:45.000Z
apiclients/client.py
Crossing-Minds/reco-api-benchmarks
f740072a23e88270632a1acda468854e457d5086
[ "MIT" ]
null
null
null
apiclients/client.py
Crossing-Minds/reco-api-benchmarks
f740072a23e88270632a1acda468854e457d5086
[ "MIT" ]
1
2021-07-21T04:56:11.000Z
2021-07-21T04:56:11.000Z
from xminds.api.client import CrossingMindsApiClient from .config import ENVS_HOST class ApiClientInternal(CrossingMindsApiClient): ENVS_HOST = ENVS_HOST def __init__(self, **kwargs): host = self.ENVS_HOST super().__init__(host=host, **kwargs)
22.666667
52
0.731618
185
0.680147
0
0
0
0
0
0
0
0
ff92af82c1277e2754f71f08f643c5cda12eaa1e
184
py
Python
packages/auto-nlp-deployment/src/trainings/runtimes/docker/__init__.py
fhswf/tagflip-autonlp
f94abb35ed06198567e5d9cbb7abb7e112149d6c
[ "MIT" ]
4
2021-10-05T17:34:02.000Z
2022-03-23T07:33:19.000Z
packages/auto-nlp-deployment/src/trainings/runtimes/docker/__init__.py
fhswf/tagflip-autonlp
f94abb35ed06198567e5d9cbb7abb7e112149d6c
[ "MIT" ]
11
2022-03-01T14:37:52.000Z
2022-03-31T05:11:23.000Z
packages/auto-nlp-deployment/src/trainings/runtimes/docker/__init__.py
fhswf/tagflip-autonlp
f94abb35ed06198567e5d9cbb7abb7e112149d6c
[ "MIT" ]
1
2022-01-29T13:32:22.000Z
2022-01-29T13:32:22.000Z
from .docker_training_runtime import DockerTrainingRuntime from .docker_training_runtime_config import DockerTrainingRuntimeConfig from .docker_training_task import DockerTrainingTask
46
71
0.918478
0
0
0
0
0
0
0
0
0
0
ff92ec13ffa6d364097db1db2973673b5c2e828a
4,763
py
Python
rebiber/arxiv.py
EntilZha/rebiber
88c9fbef12cae73e2ed6f67ee6f32f39040f8299
[ "MIT" ]
null
null
null
rebiber/arxiv.py
EntilZha/rebiber
88c9fbef12cae73e2ed6f67ee6f32f39040f8299
[ "MIT" ]
null
null
null
rebiber/arxiv.py
EntilZha/rebiber
88c9fbef12cae73e2ed6f67ee6f32f39040f8299
[ "MIT" ]
null
null
null
import json import os import pickle from typing import Dict import bibtexparser import typer from functional import pseq from rich.console import Console from rebiber.bib2json import normalize_title console = Console() app = typer.Typer() def construct_paper_db(bib_list_file, start_dir=""): with open(bib_list...
35.022059
118
0.617258
0
0
0
0
2,696
0.56603
0
0
1,078
0.226328
ff9338deaed1eba967366384f655b50234bb3c45
1,315
py
Python
tests/base/sdk/python/tdldk/v1_0/garoot.py
edwinfeener/monolithe
0f024b2ec7d4c5a2229612280e5e559bf2667ba5
[ "BSD-3-Clause" ]
18
2015-06-24T18:35:20.000Z
2022-01-19T19:04:00.000Z
tests/base/sdk/python/tdldk/v1_0/garoot.py
edwinfeener/monolithe
0f024b2ec7d4c5a2229612280e5e559bf2667ba5
[ "BSD-3-Clause" ]
63
2015-11-03T18:57:12.000Z
2020-09-30T02:54:49.000Z
tests/base/sdk/python/tdldk/v1_0/garoot.py
edwinfeener/monolithe
0f024b2ec7d4c5a2229612280e5e559bf2667ba5
[ "BSD-3-Clause" ]
38
2015-10-23T19:04:44.000Z
2021-06-04T08:13:33.000Z
# -*- coding: utf-8 -*- # # __code_header example # put your license header here # it will be added to all the generated files # from .fetchers import GAListsFetcher from .fetchers import GAUsersFetcher from bambou import NURESTRootObject class GARoot(NURESTRootObject): """ Represents a Root in the TDL ...
20.546875
96
0.58327
1,057
0.803802
0
0
0
0
0
0
689
0.523954
ff95a3fe8666b382ddbf8286ef3f8e3b236470ab
389
py
Python
qxtoolkit/__init__.py
QixuanAI/qxtoolkit
044e4316b8b890ce83d56ea52d735af1655f5dda
[ "BSD-3-Clause" ]
null
null
null
qxtoolkit/__init__.py
QixuanAI/qxtoolkit
044e4316b8b890ce83d56ea52d735af1655f5dda
[ "BSD-3-Clause" ]
null
null
null
qxtoolkit/__init__.py
QixuanAI/qxtoolkit
044e4316b8b890ce83d56ea52d735af1655f5dda
[ "BSD-3-Clause" ]
null
null
null
#! /usr/bin/env python ''' Description : FilePath : /qxtoolkit/qxtoolkit/__init__.py Author : qxsoftware@163.com Date : 2020-12-14 16:04:47 LastEditTime: 2021-07-14 10:27:10 Refer to : https://github.com/QixuanAI/qxtoolkit ''' from .imgetter import * from .gen_samples import * from .graffiti import ...
21.611111
51
0.694087
0
0
0
0
0
0
0
0
249
0.640103
ff9604cd6caf292e5456cb41ef1485210012e577
335
py
Python
projects/python exceptions/exceptions.py
singularity-bit/univ
88fab22ecab47293ca27d149dcee4f2c0f1c347b
[ "MIT" ]
null
null
null
projects/python exceptions/exceptions.py
singularity-bit/univ
88fab22ecab47293ca27d149dcee4f2c0f1c347b
[ "MIT" ]
null
null
null
projects/python exceptions/exceptions.py
singularity-bit/univ
88fab22ecab47293ca27d149dcee4f2c0f1c347b
[ "MIT" ]
null
null
null
class exception(Exception): pass def num_there(s): return any(i.isdigit() for i in s) while True: user_input=input("introduceti un sir de caractere: ") try: if num_there(user_input): raise exception break except exception: print("introduceti un doar caractere") pr...
25.769231
57
0.653731
36
0.107463
0
0
0
0
0
0
66
0.197015
ff960735fdb34528546506bb607e3faee741a1e4
927
py
Python
tests/schema/parser/test_parse_string.py
george-fry/statham-schema
19aa64de8750001cbc24f2775e0684f2298f840f
[ "MIT" ]
23
2020-06-25T15:55:29.000Z
2022-03-31T16:51:40.000Z
tests/schema/parser/test_parse_string.py
george-fry/statham-schema
19aa64de8750001cbc24f2775e0684f2298f840f
[ "MIT" ]
25
2020-02-29T15:32:35.000Z
2022-03-03T17:22:45.000Z
tests/schema/parser/test_parse_string.py
george-fry/statham-schema
19aa64de8750001cbc24f2775e0684f2298f840f
[ "MIT" ]
5
2020-10-18T19:14:32.000Z
2022-03-09T10:40:41.000Z
from typing import Any, Dict import pytest from statham.schema.elements import Element, String from statham.schema.parser import parse_element @pytest.mark.parametrize( "schema,expected", [ pytest.param({"type": "string"}, String(), id="with-no-keywords"), pytest.param( { ...
25.054054
74
0.499461
0
0
0
0
779
0.840345
0
0
176
0.18986
ff968ae04edbff3d50de711811fb00ace4d24f74
789
py
Python
linkedList/445 add two numbers||.py
windowssocket/py_leetcode
241dbf8d7dab7db5215c2526321fcdb378b45492
[ "Apache-2.0" ]
3
2018-05-29T02:29:40.000Z
2020-02-05T03:28:16.000Z
linkedList/445 add two numbers||.py
xidongc/py_leetcode
241dbf8d7dab7db5215c2526321fcdb378b45492
[ "Apache-2.0" ]
1
2019-03-08T13:22:32.000Z
2019-03-08T13:22:32.000Z
linkedList/445 add two numbers||.py
xidongc/py_leetcode
241dbf8d7dab7db5215c2526321fcdb378b45492
[ "Apache-2.0" ]
3
2018-05-29T11:50:24.000Z
2018-11-27T12:31:01.000Z
# Definition for singly-linked list. # 从尾到头建立链表 class ListNode(object): def __init__(self, x): self.val = x self.next = None class Solution(object): def addTwoNumbers(self, l1, l2): """ :type l1: ListNode :type l2: ListNode :rtype: ListNode """ x1...
22.542857
66
0.439797
735
0.913043
0
0
0
0
0
0
156
0.193789
ff96bcbff2c0f2f668c7a304aea3d86e2f5859c9
5,461
py
Python
xrdinfo/xrd_all_methods.py
JyrgenSuvalov/X-Road-scripts
42ec7279fc1404f7e37fbc0676f55f4b83052157
[ "MIT" ]
11
2017-11-10T14:24:30.000Z
2021-12-17T08:23:46.000Z
xrdinfo/xrd_all_methods.py
JyrgenSuvalov/X-Road-scripts
42ec7279fc1404f7e37fbc0676f55f4b83052157
[ "MIT" ]
5
2017-11-10T11:50:46.000Z
2021-04-14T10:28:21.000Z
xrdinfo/xrd_all_methods.py
JyrgenSuvalov/X-Road-scripts
42ec7279fc1404f7e37fbc0676f55f4b83052157
[ "MIT" ]
8
2017-10-04T13:37:39.000Z
2020-04-28T13:35:31.000Z
#!/usr/bin/python3 from threading import Thread, Event import argparse import xrdinfo import queue import sys # By default return listMethods DEFAULT_METHOD = 'listMethods' # Default timeout for HTTP requests DEFAULT_TIMEOUT = 5.0 # Do not use threading by default DEFAULT_THREAD_COUNT = 1 def print_error(content)...
33.919255
100
0.600256
0
0
0
0
0
0
0
0
1,779
0.325765
ff98472de29779514bd38ec9ab5d58884f067f9e
3,013
py
Python
web/handlers_public_api.py
PCNI/homeless-helper
2216199da2e4b41be6eb5c287d9c1a054fec3945
[ "MIT" ]
3
2015-05-04T14:52:10.000Z
2020-02-22T07:03:20.000Z
web/handlers_public_api.py
PCNI/homeless-helper
2216199da2e4b41be6eb5c287d9c1a054fec3945
[ "MIT" ]
1
2015-01-12T18:25:03.000Z
2015-01-12T18:53:33.000Z
web/handlers_public_api.py
PCNI/homeless-helper
2216199da2e4b41be6eb5c287d9c1a054fec3945
[ "MIT" ]
null
null
null
import os import sys import time import random import string import json import hashlib import socket import urllib import urllib2 from pprint import pprint import tornado.web import handlers_base BaseHandler = handlers_base.BaseHandler import twilio.twiml from HomelessHelper.config import Config from HomelessHelpe...
33.853933
170
0.699303
2,448
0.812479
0
0
0
0
0
0
217
0.072021
ff9927cca6dd5850053f49e3edbc6473af7f6bc7
587
py
Python
falcon/web.py
irr/python-labs
43bb3a528c151653b2be832c7ff13240a10e18a4
[ "Apache-2.0" ]
4
2015-11-25T09:06:44.000Z
2019-12-11T21:35:21.000Z
falcon/web.py
irr/python-labs
43bb3a528c151653b2be832c7ff13240a10e18a4
[ "Apache-2.0" ]
null
null
null
falcon/web.py
irr/python-labs
43bb3a528c151653b2be832c7ff13240a10e18a4
[ "Apache-2.0" ]
2
2015-11-25T09:19:38.000Z
2016-02-26T03:54:06.000Z
import falcon class WebResource: def on_get(self, req, resp): """Handles GET requests""" resp.status = falcon.HTTP_200 # This is the default status resp.body = ('Test OK!') # falcon.API instances are callable WSGI apps app = falcon.API() # Resources are represented by long-lived class in...
32.611111
159
0.688245
187
0.318569
0
0
0
0
0
0
381
0.649063
ff9a5956d10a9a6fb72dea22176041ce89b5315d
8,803
py
Python
services/Autocorrect/inc/wikipedia_correction.py
muhammad-abbady/JenTab
df7b1450cb14e64edade30ea7de49d05a7d7dbf2
[ "Apache-2.0" ]
9
2021-03-23T11:32:40.000Z
2022-03-31T13:58:41.000Z
services/Autocorrect/inc/wikipedia_correction.py
muhammad-abbady/JenTab
df7b1450cb14e64edade30ea7de49d05a7d7dbf2
[ "Apache-2.0" ]
null
null
null
services/Autocorrect/inc/wikipedia_correction.py
muhammad-abbady/JenTab
df7b1450cb14e64edade30ea7de49d05a7d7dbf2
[ "Apache-2.0" ]
1
2021-04-29T21:27:08.000Z
2021-04-29T21:27:08.000Z
from collections import Counter import re from os.path import join from config import ASSET_PATH class WikipediaCorrection(object): def __init__(self): self.Vocab = [] # Vocab list self.vocab_n = None # Vocab length self.probs = {} # Probabilities dict self.init_vocab() ...
47.074866
852
0.564239
3,852
0.437578
0
0
0
0
0
0
4,830
0.548677
ff9b138f03c8da437646fca20eb6180ca1f35e5b
347
py
Python
finorch/sessions/cit/wrapper.py
ADACS-Australia/SS2021B-DBrown
67b93b316e6f9ab09e3bd5105edbbc71108e0723
[ "MIT" ]
null
null
null
finorch/sessions/cit/wrapper.py
ADACS-Australia/SS2021B-DBrown
67b93b316e6f9ab09e3bd5105edbbc71108e0723
[ "MIT" ]
null
null
null
finorch/sessions/cit/wrapper.py
ADACS-Australia/SS2021B-DBrown
67b93b316e6f9ab09e3bd5105edbbc71108e0723
[ "MIT" ]
null
null
null
from pathlib import Path import finesse from finorch.sessions.abstract_wrapper import AbstractWrapper class CITWrapper(AbstractWrapper): def run(self): katscript = open('script.k', 'r').read() kat = finesse.Model() kat.parse(katscript) out = kat.run() finesse.save(out, P...
21.6875
61
0.654179
240
0.691643
0
0
0
0
0
0
26
0.074928
ff9b480b8efa2a0703a1bdaca93521ce030786a1
1,048
py
Python
app/api/tokens.py
simal1717/Backend_Airbnb_237
d155882cb1e779e648629dd41a1c2e7c83436a90
[ "MIT" ]
null
null
null
app/api/tokens.py
simal1717/Backend_Airbnb_237
d155882cb1e779e648629dd41a1c2e7c83436a90
[ "MIT" ]
null
null
null
app/api/tokens.py
simal1717/Backend_Airbnb_237
d155882cb1e779e648629dd41a1c2e7c83436a90
[ "MIT" ]
null
null
null
from flask import jsonify, g, session from app import db from app.api import bp from app.api.auth import basic_auth, token_auth #? Not GET ? @bp.route('/tokens', methods=['POST']) @basic_auth.login_required def get_token(): #print(1111) token = g.current_user.get_token() #print(2222, token) db.sessio...
29.111111
77
0.660305
0
0
0
0
900
0.858779
0
0
459
0.437977
ff9c5b74ed756cbecfa296d7af1c79400ca156ad
4,869
py
Python
source-code/rupol/dumb25519.py
b-g-goodell/lab-mirror
5b994284677f556e30d189377a4c7a40705afc73
[ "Unlicense" ]
6
2018-08-30T19:17:00.000Z
2021-06-12T06:26:36.000Z
source-code/rupol/dumb25519.py
b-g-goodell/lab-mirror
5b994284677f556e30d189377a4c7a40705afc73
[ "Unlicense" ]
null
null
null
source-code/rupol/dumb25519.py
b-g-goodell/lab-mirror
5b994284677f556e30d189377a4c7a40705afc73
[ "Unlicense" ]
3
2018-08-30T19:49:48.000Z
2020-04-23T18:01:35.000Z
# Dumb25519: a stupid implementation of ed25519 # # Use this code only for prototyping # -- putting this code into production would be dumb # -- assuming this code is secure would also be dumb import random import hashlib # curve parameters b = 256 q = 2**255 - 19 l = 2**252 + 27742317777372353535851937790883648493 ...
23.635922
61
0.556788
2,864
0.588211
0
0
0
0
0
0
599
0.123023
ff9e05c2ec37c37c723574b5d5401eb33290ab98
1,608
py
Python
bsbolt/Utils/MatrixIterator.py
HarryZhang1224/BSBolt
a5df4db8497d7c0274f5f12041c87472c06ff78e
[ "MIT" ]
10
2020-04-05T00:44:44.000Z
2022-02-11T15:11:00.000Z
bsbolt/Utils/MatrixIterator.py
HarryZhang1224/BSBolt
a5df4db8497d7c0274f5f12041c87472c06ff78e
[ "MIT" ]
7
2019-01-25T22:14:40.000Z
2022-01-17T18:58:05.000Z
bsbolt/Utils/MatrixIterator.py
HarryZhang1224/BSBolt
a5df4db8497d7c0274f5f12041c87472c06ff78e
[ "MIT" ]
5
2019-07-19T22:57:36.000Z
2021-11-12T14:57:37.000Z
#! /usr/env python3 import gzip import io from typing import List, Tuple, Union import numpy as np class OpenMatrix: """ Simple class to simple class to iterate through bsbolt matrix file ------------------------------------------------------------------------------------ input: path to matrix file r...
31.529412
108
0.548507
1,505
0.935945
252
0.156716
402
0.25
0
0
288
0.179104
ff9ee3da1f88b893679112e185450b21bd4f45aa
1,036
py
Python
Leetcode/Python/_1694.py
Xrenya/algorithms
aded82cacde2f4f2114241907861251e0e2e5638
[ "MIT" ]
1
2021-11-28T15:03:32.000Z
2021-11-28T15:03:32.000Z
Leetcode/Python/_1694.py
Xrenya/algorithms
aded82cacde2f4f2114241907861251e0e2e5638
[ "MIT" ]
null
null
null
Leetcode/Python/_1694.py
Xrenya/algorithms
aded82cacde2f4f2114241907861251e0e2e5638
[ "MIT" ]
null
null
null
class Solution: def reformatNumber(self, number: str) -> str: number = number.replace('-', '') number = number.replace(' ', '') string = '' while len(number) > 4: string += number[:3] + '-' number = number[3:] if len(number) == 4: string +=...
29.6
67
0.478764
1,002
0.967181
0
0
0
0
0
0
47
0.045367
ffa0775e71e040481abc339f4098a4d9e15eabd9
10,989
py
Python
devro/env/components.py
abnvar/devro
25a9e996e73494728595d3135451c9fceb5f0324
[ "MIT" ]
8
2020-04-19T17:03:44.000Z
2021-04-30T20:22:14.000Z
devro/env/components.py
abnvar/SLAM-devTools
25a9e996e73494728595d3135451c9fceb5f0324
[ "MIT" ]
4
2020-04-22T17:25:18.000Z
2020-04-29T15:43:36.000Z
devro/env/components.py
abnvar/SLAM-devTools
25a9e996e73494728595d3135451c9fceb5f0324
[ "MIT" ]
null
null
null
import cv2 import time import simpy import random import threading import numpy as np from math import sin, cos from devro.visualization import display class DynObstacle(): def __init__(self, radius, velocity, pixelSpan, direction): self.velocity = velocity self.position = {"x":random.randint(0,pi...
33.099398
183
0.57867
10,828
0.985349
311
0.028301
0
0
0
0
1,985
0.180635
ffa0e0f715feda807329cdccf259e6d38c71faf0
537
py
Python
examples/random_walk_test.py
AkillesAILimited/CompilerGym
34c0933ba26b385ebd2cd67f5d8edbb046c6bf02
[ "MIT" ]
null
null
null
examples/random_walk_test.py
AkillesAILimited/CompilerGym
34c0933ba26b385ebd2cd67f5d8edbb046c6bf02
[ "MIT" ]
null
null
null
examples/random_walk_test.py
AkillesAILimited/CompilerGym
34c0933ba26b385ebd2cd67f5d8edbb046c6bf02
[ "MIT" ]
1
2021-10-01T05:52:34.000Z
2021-10-01T05:52:34.000Z
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """Unit tests for //compiler_gym/bin:random_walk.""" import gym from absl.flags import FLAGS from random_walk import run_random_walk def test...
31.588235
65
0.731844
0
0
0
0
0
0
0
0
271
0.504655
ffa1c51a918aeb4c248717083899dd625abcf68f
145
py
Python
print_linux.py
bicubico/neuralprinter
62abb0149d99e85c011e49d5b3b18cfd685b5057
[ "MIT" ]
1
2017-12-28T16:49:07.000Z
2017-12-28T16:49:07.000Z
print_linux.py
bicubico/neuralprinter
62abb0149d99e85c011e49d5b3b18cfd685b5057
[ "MIT" ]
null
null
null
print_linux.py
bicubico/neuralprinter
62abb0149d99e85c011e49d5b3b18cfd685b5057
[ "MIT" ]
null
null
null
#/usr/bin/python3 import os def print_image(filename, print_image = False): if print_image: os.system('lp ' + filename) return
16.111111
47
0.662069
0
0
0
0
0
0
0
0
22
0.151724
ffa2c887adb04c58cc89f60669feffde0c12086e
567
py
Python
diff_ops.py
cetmann/robustness-interpretability
6da6a28c101a0763f3ca59c51f2913eb0525f5c3
[ "MIT" ]
15
2019-06-23T10:27:42.000Z
2021-12-02T13:10:46.000Z
diff_ops.py
cetmann/robustness-interpretability
6da6a28c101a0763f3ca59c51f2913eb0525f5c3
[ "MIT" ]
null
null
null
diff_ops.py
cetmann/robustness-interpretability
6da6a28c101a0763f3ca59c51f2913eb0525f5c3
[ "MIT" ]
1
2019-08-11T23:04:19.000Z
2019-08-11T23:04:19.000Z
""" This file defines the L-Op and R-Op, based on https://j-towns.github.io/2017/06/12/A-new-trick.html """ from __future__ import absolute_import from __future__ import division from __future__ import print_function import tensorflow as tf def Lop(nodes, x, v): lop_out = tf.gradients(nodes, x, grad_ys=v) re...
23.625
99
0.677249
0
0
0
0
0
0
0
0
107
0.188713
ffa6f74f43f47f17e2e67712e39ba72803e3ef7d
4,177
py
Python
seqsearch/search/hmmer.py
xapple/seqsearch
cf3a7691285d245829bc9c6d18354e01e631fc12
[ "MIT" ]
null
null
null
seqsearch/search/hmmer.py
xapple/seqsearch
cf3a7691285d245829bc9c6d18354e01e631fc12
[ "MIT" ]
null
null
null
seqsearch/search/hmmer.py
xapple/seqsearch
cf3a7691285d245829bc9c6d18354e01e631fc12
[ "MIT" ]
1
2015-01-21T14:38:46.000Z
2015-01-21T14:38:46.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Written by Lucas Sinclair. MIT Licensed. Contact at www.sinclair.bio """ # Built-in modules # import warnings, multiprocessing # Internal modules # from seqsearch.databases.pfam import pfam from seqsearch.databases.tigrfam import tigrfam # First party modules # ...
37.294643
99
0.547043
3,532
0.845583
0
0
974
0.233182
0
0
1,387
0.332056
ffa705ad0694eff49275d52588a266e77c3b8d06
2,290
py
Python
tests/test_solve.py
Sen-R/dynamic-programming
cfb6cada511dcef4b442841cf95159d8deb55616
[ "MIT" ]
null
null
null
tests/test_solve.py
Sen-R/dynamic-programming
cfb6cada511dcef4b442841cf95159d8deb55616
[ "MIT" ]
null
null
null
tests/test_solve.py
Sen-R/dynamic-programming
cfb6cada511dcef4b442841cf95159d8deb55616
[ "MIT" ]
null
null
null
from typing import Dict import pytest from numpy.testing import assert_almost_equal import numpy as np from dp._types import Policy from dp import FiniteMDP from dp.solve import ( backup_optimal_values, policy_evaluation, policy_evaluation_affine_operator, ) from .conftest import SimpleMDP, TState, TAction ...
30.131579
75
0.634498
1,384
0.604367
0
0
557
0.243231
0
0
418
0.182533
ffa7ea79eec8298d7bcdbef4fe9e8d9ea1a8557e
109
py
Python
messenger/health_check/__init__.py
EducationalTestingService/halef-messenger
59eccdbf021a5a1e8290b4f61fdc2b1d74947993
[ "Apache-2.0" ]
null
null
null
messenger/health_check/__init__.py
EducationalTestingService/halef-messenger
59eccdbf021a5a1e8290b4f61fdc2b1d74947993
[ "Apache-2.0" ]
1
2017-06-05T22:57:47.000Z
2017-06-05T22:58:45.000Z
messenger/health_check/__init__.py
EducationalTestingService/halef-messenger
59eccdbf021a5a1e8290b4f61fdc2b1d74947993
[ "Apache-2.0" ]
null
null
null
from flask import Blueprint health_check = Blueprint('health_check', __name__) from . import health # noqa
21.8
50
0.779817
0
0
0
0
0
0
0
0
20
0.183486
ffa9885e7671ec6782e68cccef479cdd2f9ce49e
8,192
py
Python
python/paddle/fluid/tests/unittests/test_logspace.py
RangeKing/Paddle
2d87300809ae75d76f5b0b457d8112cb88dc3e27
[ "Apache-2.0" ]
8
2016-08-15T07:02:27.000Z
2016-08-24T09:34:00.000Z
python/paddle/fluid/tests/unittests/test_logspace.py
RangeKing/Paddle
2d87300809ae75d76f5b0b457d8112cb88dc3e27
[ "Apache-2.0" ]
1
2022-01-28T07:23:22.000Z
2022-01-28T07:23:22.000Z
python/paddle/fluid/tests/unittests/test_logspace.py
RangeKing/Paddle
2d87300809ae75d76f5b0b457d8112cb88dc3e27
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. # # 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 app...
35.310345
80
0.586426
7,394
0.902588
0
0
0
0
0
0
1,250
0.152588
ffaa3706e807f3b2ff19ebdc4ddab83d08ac4319
719
py
Python
kwis/urls.py
Navisence/kwispel
cc93f345d3b53040ef1ec4b9e022040dca376173
[ "MIT" ]
1
2016-06-14T18:42:55.000Z
2016-06-14T18:42:55.000Z
kwis/urls.py
Navisence/kwispel
cc93f345d3b53040ef1ec4b9e022040dca376173
[ "MIT" ]
1
2020-02-12T00:33:01.000Z
2020-02-12T00:33:01.000Z
kwis/urls.py
Navisence/kwispel
cc93f345d3b53040ef1ec4b9e022040dca376173
[ "MIT" ]
null
null
null
from django.conf.urls import url from . import views urlpatterns = [ url(r'^$', views.index, name='index'), url(r'^team_overview.png$', views.team_overview), url(r'^rnd_overview.png$', views.rnd_overview), url(r'^ranking/$', views.ranking, name='ranking'), url(r'^ranking/overview.png$', views.rank...
42.294118
84
0.628651
0
0
0
0
0
0
0
0
322
0.447844
ffac01add95f30509a3513e66d50a6bca1ffa573
6,608
py
Python
networks/SRM_SE_GE/resnet.py
eepgxxy/Paddle_Attention_CNNs
a1e102afd03eab4c2839ed8df58ae2640edd5955
[ "Apache-2.0" ]
2
2021-06-21T08:14:25.000Z
2021-09-08T08:24:18.000Z
networks/SRM_SE_GE/resnet.py
eepgxxy/Paddle_Attention_CNNs
a1e102afd03eab4c2839ed8df58ae2640edd5955
[ "Apache-2.0" ]
null
null
null
networks/SRM_SE_GE/resnet.py
eepgxxy/Paddle_Attention_CNNs
a1e102afd03eab4c2839ed8df58ae2640edd5955
[ "Apache-2.0" ]
1
2021-09-08T08:25:15.000Z
2021-09-08T08:25:15.000Z
import paddle import paddle.nn as nn import math def conv3x3(in_planes, out_planes, stride=1): "3x3 convolution with padding" return nn.Conv2D(in_planes, out_planes, kernel_size=3, stride=stride, padding=1, bias=False) class BasicBlock(nn.Layer): expansion = 1 def __init__(self, ...
33.543147
138
0.585805
5,715
0.864861
0
0
0
0
0
0
62
0.009383
ffac6d1ba809686f7d15e2cebadcb98e9286540c
497
py
Python
django_reports/python_jasper.py
empty/django-reports
14b00db4350d159470befc4a6edc48a28c7d4375
[ "MIT" ]
null
null
null
django_reports/python_jasper.py
empty/django-reports
14b00db4350d159470befc4a6edc48a28c7d4375
[ "MIT" ]
null
null
null
django_reports/python_jasper.py
empty/django-reports
14b00db4350d159470befc4a6edc48a28c7d4375
[ "MIT" ]
null
null
null
import requests class JasperServer(object): def __init__(self, endpoint, username, password): self.endpoint = endpoint self.username = username self.password = password def run_report(self, location, params): auth = (self.username, self.password) url = '{endpoint}{lo...
26.157895
72
0.617706
477
0.959759
0
0
0
0
0
0
42
0.084507
ffafa132bf34854b4b313ea5ff73b935c4ed677f
531
py
Python
addons/blender-addon-fbx-bundle/platform_obj.py
V-Sekai/game-tools-V-Sekai
74eb79e9b97bb1954e647ed2f909f4f326189cb5
[ "MIT" ]
2
2021-12-21T16:38:58.000Z
2022-01-08T00:56:35.000Z
addons/blender-addon-fbx-bundle/platform_obj.py
V-Sekai/game-tools-V-Sekai
74eb79e9b97bb1954e647ed2f909f4f326189cb5
[ "MIT" ]
1
2022-01-29T05:46:50.000Z
2022-01-29T05:46:50.000Z
addons/blender-addon-fbx-bundle/platform_obj.py
V-Sekai/game-tools-V-Sekai
74eb79e9b97bb1954e647ed2f909f4f326189cb5
[ "MIT" ]
1
2021-11-07T19:41:34.000Z
2021-11-07T19:41:34.000Z
import bpy import bmesh import operator import mathutils import addon_utils from . import platform class Platform(platform.Platform): extension = 'obj' def __init__(self): super().__init__() def is_valid(self): return True, "" def file_export(self, path): bpy.ops.export_scene.obj( filepath =pat...
14.351351
34
0.704331
429
0.80791
0
0
0
0
0
0
13
0.024482
ffb02da15a5c9b5c682022debb4e2f6e16aa0d87
1,684
py
Python
tests/test_converters.py
kotofos/beaker
ea924dc67713012d4759e84ede619fbe979d34bf
[ "BSD-3-Clause" ]
387
2015-01-08T00:59:09.000Z
2022-03-17T13:12:56.000Z
tests/test_converters.py
kotofos/beaker
ea924dc67713012d4759e84ede619fbe979d34bf
[ "BSD-3-Clause" ]
138
2015-01-02T22:34:35.000Z
2021-12-07T19:23:30.000Z
tests/test_converters.py
kotofos/beaker
ea924dc67713012d4759e84ede619fbe979d34bf
[ "BSD-3-Clause" ]
123
2015-01-21T18:03:18.000Z
2022-01-18T13:56:11.000Z
from beaker._compat import u_ import unittest from beaker.converters import asbool, aslist class AsBool(unittest.TestCase): def test_truth_str(self): for v in ('true', 'yes', 'on', 'y', 't', '1'): self.assertTrue(asbool(v), "%s should be considered True" % (v,)) v = v.upper() ...
30.071429
77
0.583729
1,536
0.912114
0
0
0
0
0
0
341
0.202494
ffb28ac34185b8f470f18a82ae88db3fd1ffb636
8,774
py
Python
dashboard_loader/air_pollution_loader/loader.py
data61/Openboard
aaf7ef49e05c0771094efc6be811c6ae88055252
[ "Apache-2.0" ]
2
2017-08-29T23:05:51.000Z
2019-04-02T21:11:35.000Z
dashboard_loader/air_pollution_loader/loader.py
data61/Openboard
aaf7ef49e05c0771094efc6be811c6ae88055252
[ "Apache-2.0" ]
1
2019-04-02T21:11:26.000Z
2019-04-03T15:12:57.000Z
dashboard_loader/air_pollution_loader/loader.py
data61/Openboard
aaf7ef49e05c0771094efc6be811c6ae88055252
[ "Apache-2.0" ]
null
null
null
# Copyright 2015,2016 NICTA # # 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 to i...
45.226804
206
0.617734
6,307
0.718828
0
0
0
0
0
0
2,014
0.229542
ffb2e8312b0f715809945721f9f90a0a3d3d55b1
4,166
py
Python
4-bandit/code/multithreadedPolicyLinUCB.py
lukaselmer/ethz-data-mining
cb4215c202efc37f3626a25c8301a4ac36813493
[ "MIT" ]
2
2015-01-24T18:22:33.000Z
2019-08-14T06:30:58.000Z
4-bandit/code/multithreadedPolicyLinUCB.py
lukaselmer/ethz-data-mining
cb4215c202efc37f3626a25c8301a4ac36813493
[ "MIT" ]
null
null
null
4-bandit/code/multithreadedPolicyLinUCB.py
lukaselmer/ethz-data-mining
cb4215c202efc37f3626a25c8301a4ac36813493
[ "MIT" ]
2
2016-01-15T21:12:32.000Z
2019-08-14T06:30:59.000Z
# !/usr/bin/env python2.7 import threading import numpy as np # TODO: recommend most uncertain article in case of 2 very similar articles # TODO: use timestamp to lower ucb score over time class SimpleInputOutputThread(threading.Thread): def __init__(self, linucb, article): threading.Thread.__init__(sel...
30.188406
92
0.628661
3,413
0.819251
0
0
0
0
0
0
772
0.18531