hexsha
string
size
int64
ext
string
lang
string
max_stars_repo_path
string
max_stars_repo_name
string
max_stars_repo_head_hexsha
string
max_stars_repo_licenses
list
max_stars_count
int64
max_stars_repo_stars_event_min_datetime
string
max_stars_repo_stars_event_max_datetime
string
max_issues_repo_path
string
max_issues_repo_name
string
max_issues_repo_head_hexsha
string
max_issues_repo_licenses
list
max_issues_count
int64
max_issues_repo_issues_event_min_datetime
string
max_issues_repo_issues_event_max_datetime
string
max_forks_repo_path
string
max_forks_repo_name
string
max_forks_repo_head_hexsha
string
max_forks_repo_licenses
list
max_forks_count
int64
max_forks_repo_forks_event_min_datetime
string
max_forks_repo_forks_event_max_datetime
string
content
string
avg_line_length
float64
max_line_length
int64
alphanum_fraction
float64
qsc_code_num_words_quality_signal
int64
qsc_code_num_chars_quality_signal
float64
qsc_code_mean_word_length_quality_signal
float64
qsc_code_frac_words_unique_quality_signal
float64
qsc_code_frac_chars_top_2grams_quality_signal
float64
qsc_code_frac_chars_top_3grams_quality_signal
float64
qsc_code_frac_chars_top_4grams_quality_signal
float64
qsc_code_frac_chars_dupe_5grams_quality_signal
float64
qsc_code_frac_chars_dupe_6grams_quality_signal
float64
qsc_code_frac_chars_dupe_7grams_quality_signal
float64
qsc_code_frac_chars_dupe_8grams_quality_signal
float64
qsc_code_frac_chars_dupe_9grams_quality_signal
float64
qsc_code_frac_chars_dupe_10grams_quality_signal
float64
qsc_code_frac_chars_replacement_symbols_quality_signal
float64
qsc_code_frac_chars_digital_quality_signal
float64
qsc_code_frac_chars_whitespace_quality_signal
float64
qsc_code_size_file_byte_quality_signal
float64
qsc_code_num_lines_quality_signal
float64
qsc_code_num_chars_line_max_quality_signal
float64
qsc_code_num_chars_line_mean_quality_signal
float64
qsc_code_frac_chars_alphabet_quality_signal
float64
qsc_code_frac_chars_comments_quality_signal
float64
qsc_code_cate_xml_start_quality_signal
float64
qsc_code_frac_lines_dupe_lines_quality_signal
float64
qsc_code_cate_autogen_quality_signal
float64
qsc_code_frac_lines_long_string_quality_signal
float64
qsc_code_frac_chars_string_length_quality_signal
float64
qsc_code_frac_chars_long_word_length_quality_signal
float64
qsc_code_frac_lines_string_concat_quality_signal
float64
qsc_code_cate_encoded_data_quality_signal
float64
qsc_code_frac_chars_hex_words_quality_signal
float64
qsc_code_frac_lines_prompt_comments_quality_signal
float64
qsc_code_frac_lines_assert_quality_signal
float64
qsc_codepython_cate_ast_quality_signal
float64
qsc_codepython_frac_lines_func_ratio_quality_signal
float64
qsc_codepython_cate_var_zero_quality_signal
bool
qsc_codepython_frac_lines_pass_quality_signal
float64
qsc_codepython_frac_lines_import_quality_signal
float64
qsc_codepython_frac_lines_simplefunc_quality_signal
float64
qsc_codepython_score_lines_no_logic_quality_signal
float64
qsc_codepython_frac_lines_print_quality_signal
float64
qsc_code_num_words
int64
qsc_code_num_chars
int64
qsc_code_mean_word_length
int64
qsc_code_frac_words_unique
null
qsc_code_frac_chars_top_2grams
int64
qsc_code_frac_chars_top_3grams
int64
qsc_code_frac_chars_top_4grams
int64
qsc_code_frac_chars_dupe_5grams
int64
qsc_code_frac_chars_dupe_6grams
int64
qsc_code_frac_chars_dupe_7grams
int64
qsc_code_frac_chars_dupe_8grams
int64
qsc_code_frac_chars_dupe_9grams
int64
qsc_code_frac_chars_dupe_10grams
int64
qsc_code_frac_chars_replacement_symbols
int64
qsc_code_frac_chars_digital
int64
qsc_code_frac_chars_whitespace
int64
qsc_code_size_file_byte
int64
qsc_code_num_lines
int64
qsc_code_num_chars_line_max
int64
qsc_code_num_chars_line_mean
int64
qsc_code_frac_chars_alphabet
int64
qsc_code_frac_chars_comments
int64
qsc_code_cate_xml_start
int64
qsc_code_frac_lines_dupe_lines
int64
qsc_code_cate_autogen
int64
qsc_code_frac_lines_long_string
int64
qsc_code_frac_chars_string_length
int64
qsc_code_frac_chars_long_word_length
int64
qsc_code_frac_lines_string_concat
null
qsc_code_cate_encoded_data
int64
qsc_code_frac_chars_hex_words
int64
qsc_code_frac_lines_prompt_comments
int64
qsc_code_frac_lines_assert
int64
qsc_codepython_cate_ast
int64
qsc_codepython_frac_lines_func_ratio
int64
qsc_codepython_cate_var_zero
int64
qsc_codepython_frac_lines_pass
int64
qsc_codepython_frac_lines_import
int64
qsc_codepython_frac_lines_simplefunc
int64
qsc_codepython_score_lines_no_logic
int64
qsc_codepython_frac_lines_print
int64
effective
string
hits
int64
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
103
838
5.582524
0.359223
0.026087
0.052174
0.090435
0
0
0
0
0
0
0
0.011869
0.195704
838
32
86
26.1875
0.841246
0.143198
0
0
0
0
0
0
0
0
0
0
0.238095
1
0.142857
false
0
0.190476
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
6
43
6
0.666667
0.722222
0
0
0
0
0
0
0
0
0
0
0.093023
43
1
43
43
0.923077
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
7
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
70
608
7.285714
0.3
0.152941
0.223529
0.447059
0.427451
0
0
0
0
0
0
0.001742
0.055921
608
21
63
28.952381
0.88676
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.411765
0
0.411765
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
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
102
853
3.823529
0.5
0.076923
0.030769
0.035897
0
0
0
0
0
0
0
0.033989
0.344666
853
28
79
30.464286
0.663685
0.002345
0
0
0
0
0.083529
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
93
682
5.129032
0.344086
0.02935
0.025157
0.016771
0.121593
0
0
0
0
0
0
0.038194
0.155425
682
25
78
27.28
0.789931
0
0
0
0
0
0.011713
0
0
0
0
0
0
1
0
false
0
0.263158
0
0.263158
0.052632
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
2,703
24,200
4.461339
0.18128
0.020897
0.00539
0.007546
0.187661
0.15731
0.147027
0.130525
0.120823
0.111369
0
0.024187
0.366157
24,200
655
289
36.946565
0.761979
0.143802
0
0.256579
0
0.006579
0.050259
0.028849
0
0
0
0
0
1
0.098684
false
0.002193
0.032895
0.002193
0.223684
0.024123
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
588
4,392
4.386054
0.338435
0.029857
0.024428
0.015122
0.183792
0.162078
0.064366
0.044203
0.025591
0.025591
0
0.04675
0.201275
4,392
190
114
23.115789
0.688426
0.172131
0
0.075
0
0
0.094138
0.00761
0
0
0
0
0
1
0.0125
false
0
0.0875
0
0.1125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
38
314
4.473684
0.657895
0.094118
0
0
0
0
0
0
0
0
0
0.022422
0.289809
314
11
57
28.545455
0.73991
0.038217
0
0
0
0
0.089965
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
1,045
6,844
4.64689
0.270813
0.014827
0.012356
0.014003
0.1493
0.08855
0.050659
0.019769
0.019769
0
0
0.022063
0.145675
6,844
261
143
26.222222
0.808449
0.283168
0
0.07874
0
0
0.067138
0.004859
0
0
0
0.007663
0.283465
1
0.007874
false
0.062992
0.03937
0
0.047244
0.007874
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
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
43
334
5.418605
0.837209
0.128755
0
0
0
0
0
0
0
0
0
0
0.239521
334
15
89
22.266667
0.917323
0.643713
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.333333
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
3
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
384
2,382
4.223958
0.335938
0.055487
0.05857
0.038841
0.147349
0.110358
0.110358
0.091245
0.046856
0
0
0.01261
0.234257
2,382
88
133
27.068182
0.876645
0.548279
0
0.162162
0
0
0.007605
0
0
0
0
0
0
1
0.135135
false
0
0
0
0.216216
0.162162
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
1,947
19,761
5.491525
0.134052
0.026375
0.035915
0.025814
0.491957
0.438085
0.415918
0.393191
0.374486
0.324355
0
0.003303
0.325793
19,761
486
102
40.660494
0.798994
0.098882
0
0.291411
0
0
0.080036
0.015951
0
0
0
0.002058
0.340491
1
0.119632
false
0.033742
0.058282
0.030675
0.315951
0.006135
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
1,088
8,395
4.57261
0.201287
0.032563
0.044422
0.017085
0.254271
0.196181
0.156784
0.12201
0.108744
0.093065
0
0.007093
0.244312
8,395
205
170
40.95122
0.777112
0.026206
0
0.141975
0
0.006173
0.100604
0.016998
0
0
0
0
0
1
0.030864
false
0
0.037037
0
0.080247
0.018519
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
51
722
6.72549
0.45098
0.25656
0.093294
0.209913
0.553936
0.553936
0.553936
0.553936
0.553936
0.553936
0
0.004348
0.362881
722
32
46
22.5625
0.741304
0
0
0.740741
0
0
0.124654
0
0
0
0
0
0
1
0.074074
true
0.074074
0.111111
0.074074
0.259259
0
0
0
0
null
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
5
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
322
2,633
5.490683
0.254658
0.061086
0.044118
0.024887
0.074661
0.074661
0.074661
0.026018
0
0
0
0.001861
0.183821
2,633
73
84
36.068493
0.820847
0.032283
0
0.032258
0
0
0.092913
0
0
0
0
0
0.016129
1
0.016129
false
0
0.112903
0
0.145161
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
243
2,386
5.045267
0.288066
0.071778
0.131321
0.104405
0.350734
0.252855
0.252855
0.252855
0.252855
0.150082
0
0.002483
0.324811
2,386
63
110
37.873016
0.758535
0.209975
0
0.095238
0
0
0.214209
0.092573
0
0
0
0
0
1
0.119048
false
0
0.071429
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
78
644
5.410256
0.653846
0.113744
0.137441
0.052133
0
0
0
0
0
0
0
0.013944
0.220497
644
24
79
26.833333
0.826693
0
0
0
0
0
0.270186
0.032609
0
0
0
0
0
1
0.052632
false
0
0.052632
0
0.157895
0.052632
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
4
33
5.5
1
0
0
0
0
0
0
0
0
0
0
0
0.121212
33
1
33
33
0.758621
0.787879
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
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
151
1,114
5.059603
0.423841
0.11911
0.221204
0.089005
0.327225
0.280105
0.280105
0.280105
0.280105
0.280105
0
0.062176
0.133752
1,114
37
99
30.108108
0.729534
0.186715
0
0.117647
0
0
0.334088
0.073613
0
0
0
0
0
1
0.117647
false
0
0.176471
0
0.294118
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
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
285
1,864
3.392982
0.385965
0.049638
0.028956
0.04757
0.080662
0
0
0
0
0
0
0.050652
0.300966
1,864
54
77
34.518519
0.691481
0
0
0
0
0
0.036461
0.01126
0
0
0
0
0
1
0.042553
false
0
0.106383
0
0.191489
0.021277
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
80
705
4.8125
0.3875
0.07013
0.041558
0
0
0
0
0
0
0
0
0.018145
0.296454
705
36
49
19.583333
0.758065
0
0
0.068966
0
0
0.116312
0
0
0
0
0
0.034483
1
0.137931
false
0
0.103448
0.068966
0.344828
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
260
2,388
4.984615
0.396154
0.046296
0.061728
0.030864
0.037037
0
0
0
0
0
0
0.005161
0.350921
2,388
71
124
33.633803
0.830968
0.062814
0
0.037037
0
0
0.060877
0
0
0
0
0
0
1
0.018519
false
0
0.111111
0
0.12963
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
998
8,264
4.803607
0.274549
0.021902
0.016688
0.005841
0.162286
0.096996
0.078849
0.078849
0.045265
0.018356
0
0.008197
0.232333
8,264
250
117
33.056
0.747478
0.106123
0
0.091371
0
0
0.238076
0.036962
0
0
0
0
0
1
0.015228
false
0
0.071066
0
0.101523
0.071066
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
102
780
4.833333
0.284314
0.091278
0.048682
0.056795
0.190669
0.190669
0.190669
0.190669
0.190669
0
0
0.02551
0.246154
780
33
66
23.636364
0.812925
0.40641
0
0
0
0
0.015113
0
0
0
0
0
0
1
0.230769
false
0
0.076923
0
0.538462
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
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
392
2,995
4.818878
0.201531
0.04288
0.059291
0.04235
0.787718
0.716781
0.716781
0.716781
0.716781
0.695606
0
0.013626
0.240401
2,995
78
101
38.397436
0.816703
0.278798
0
0.5625
0
0
0.079672
0
0
0
0
0
0
1
0.0625
false
0
0.041667
0
0.104167
0.229167
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
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
44
425
5.681818
0.818182
0
0
0
0
0
0
0
0
0
0
0.106312
0.291765
425
19
58
22.368421
0.724252
0.105882
0
0
1
0
0.10582
0.060847
0
0
0
0
0
1
0
false
0
0.076923
0
0.307692
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
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
384
2,578
4.1875
0.273438
0.078358
0.084577
0.109453
0.307214
0.244403
0.185945
0.053483
0.053483
0.053483
0
0.017908
0.176881
2,578
63
93
40.920635
0.739868
0
0
0
0
0
0.131401
0.032156
0
0
0
0
0
1
0
false
0
0.137255
0
0.137255
0.156863
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
58
374
4.896552
0.672414
0.077465
0.126761
0.169014
0
0
0
0
0
0
0
0.006349
0.157754
374
15
94
24.933333
0.895238
0.639037
0
0
0
0
0.134921
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0.25
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
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
166
1,185
4.271084
0.325301
0.101551
0.021157
0.022567
0.25952
0.126939
0
0
0
0
0
0.020811
0.229536
1,185
28
147
42.321429
0.75575
0.029536
0
0
0
0
0.08007
0.019147
0
0
0
0
0
1
0.181818
false
0
0.090909
0.045455
0.454545
0.045455
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
19
108
4.736842
0.473684
0.233333
0.288889
0
0
0
0
0
0
0
0
0
0.101852
108
3
41
36
0.927835
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
7
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
368
3,366
4.820652
0.396739
0.039459
0.033822
0.038895
0.228298
0.132469
0.092446
0.052988
0.052988
0
0
0.008666
0.31432
3,366
114
118
29.526316
0.759965
0.067439
0
0.226804
0
0
0.159962
0
0
0
0
0
0
1
0.010309
false
0
0.082474
0
0.103093
0.010309
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
299
2,629
5.12709
0.311037
0.088715
0.127202
0.067841
0.196999
0.095238
0.049576
0.049576
0.049576
0.049576
0
0.011463
0.303157
2,629
68
75
38.661765
0.825328
0.219855
0
0.097561
0
0
0.035454
0
0
0
0
0
0
1
0.04878
false
0
0.04878
0
0.170732
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
324
2,882
5.709877
0.308642
0.048649
0.043243
0.032432
0.571892
0.450811
0.450811
0.374054
0.374054
0.233514
0
0.012733
0.236988
2,882
69
141
41.768116
0.828558
0
0
0.142857
0
0
0.036099
0.036099
0
0
0
0
0.095238
1
0.071429
false
0
0.047619
0
0.357143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
120
944
5.891667
0.391667
0.113154
0.072136
0.070721
0.087694
0
0
0
0
0
0
0
0.144068
944
35
86
26.971429
0.875
0.058263
0
0
0
0
0.085586
0
0
0
0
0
0
1
0.045455
false
0
0.409091
0
0.545455
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
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
89
673
4.685393
0.292135
0.076739
0.071942
0.081535
0
0
0
0
0
0
0
0
0.2526
673
33
54
20.393939
0.829026
0
0
0.1
0
0
0
0
0
0
0
0
0
1
0.35
false
0.1
0.05
0.15
0.7
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
1
1
0
0
4
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
214
1,831
3.892523
0.261682
0.054022
0.028812
0.10084
0.182473
0.141657
0.064826
0
0
0
0
0.016744
0.412889
1,831
52
78
35.211538
0.75814
0.028946
0
0.111111
0
0
0.041761
0
0
0
0
0
0
1
0.066667
false
0
0
0
0.244444
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
443
4,262
5.300226
0.309255
0.185264
0.061329
0.057496
0.237223
0.197615
0.109029
0.061329
0.061329
0.061329
0
0.012567
0.346551
4,262
106
82
40.207547
0.830521
0.320272
0
0.280702
0
0
0
0
0
0
0
0
0.035088
1
0.052632
false
0
0.052632
0
0.175439
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
178
1,594
5.949438
0.38764
0.0661
0.1322
0.151086
0.287063
0.287063
0.287063
0.287063
0.287063
0.234183
0
0.003213
0.218946
1,594
41
114
38.878049
0.84739
0.020075
0
0
0
0
0.174471
0.028223
0
0
0
0
0
1
0
false
0
0.277778
0
0.472222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
101
703
4.742574
0.584158
0.050104
0.070981
0
0
0
0
0
0
0
0
0.015817
0.190612
703
29
71
24.241379
0.826011
0.623044
0
0
0
0
0.103586
0
0
0
0
0
0
1
0.272727
false
0
0
0
0.272727
0.181818
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
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
192
1,708
6.036458
0.401042
0.051769
0.03365
0.029336
0.093184
0.060397
0.060397
0.060397
0
0
0
0.002322
0.24356
1,708
7
1,211
244
0.894737
0
0
0
0
0.6
0.587822
0
0
0
0
0
0
1
0.2
false
0
0.4
0
0.8
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
1
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
6
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
207
1,616
5.357488
0.371981
0.100992
0.075744
0.090171
0.256087
0.205591
0.19477
0.19477
0.19477
0.149684
0
0.013413
0.169554
1,616
55
99
29.381818
0.812966
0
0
0.111111
0
0
0.111386
0
0
0
0
0
0
1
0.194444
false
0.138889
0.138889
0.111111
0.555556
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
1
0
0
0
2
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
367
2,135
3.942779
0.26158
0.121631
0.116102
0.143746
0.542502
0.542502
0.523842
0.523842
0.500346
0.446441
0
0.006957
0.192037
2,135
45
121
47.444444
0.831884
0.709602
0
0
0
0
0.197302
0.096121
0
0
0
0
0
1
0
false
0
0
0
0
0.153846
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
209
1,378
3.942584
0.37799
0.080097
0.058252
0.009709
0
0
0
0
0
0
0
0.035282
0.280116
1,378
43
91
32.046512
0.795363
0.269956
0
0
0
0
0.079885
0
0
0
0
0
0
1
0.035714
false
0
0.214286
0
0.285714
0.035714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
1,388
11,249
5.074207
0.25072
0.063041
0.030669
0.012779
0.242936
0.197217
0.158597
0.13659
0.1116
0.075536
0
0.016191
0.242333
11,249
265
132
42.449057
0.810161
0.224553
0
0.059172
0
0.011834
0.122334
0.021676
0
0
0
0
0
1
0.053254
false
0
0.053254
0.011834
0.153846
0.065089
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
140
1,161
5.635714
0.507143
0.050697
0.050697
0.060837
0.070976
0
0
0
0
0
0
0.013556
0.173988
1,161
37
95
31.378378
0.809176
0.065461
0
0
0
0
0.159889
0.036044
0
0
0
0
0
0
null
null
0
0.115385
null
null
0.038462
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
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
807
5,837
4.988848
0.173482
0.074516
0.034774
0.039742
0.475658
0.429459
0.409836
0.382514
0.338053
0.32762
0
0.004437
0.189138
5,837
158
83
36.943038
0.846186
0.31129
0
0.341463
0
0
0.081039
0.023669
0
0
0
0
0.207317
1
0.073171
false
0
0.085366
0
0.158537
0.012195
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
118
901
4.762712
0.449153
0.049822
0.02847
0.064057
0
0
0
0
0
0
0
0.001437
0.227525
901
37
116
24.351351
0.806034
0
0
0.230769
0
0
0.121111
0
0
0
0
0
0
1
0.076923
false
0.076923
0.192308
0
0.307692
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
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
648
4,773
4.256173
0.259259
0.019942
0.043147
0.018854
0.160261
0.102973
0.093546
0.075417
0.075417
0.056563
0
0.007832
0.250995
4,773
117
148
40.794872
0.763636
0.092185
0
0
0
0.010309
0.133503
0.034706
0
0
0
0
0.010309
1
0.030928
false
0
0.123711
0
0.164948
0.020619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
98
1,070
5.081633
0.530612
0.100402
0.080321
0.096386
0.092369
0
0
0
0
0
0
0
0.156075
1,070
37
80
28.918919
0.551495
0.350467
0
0
0
0
0.125
0
0
0
0
0
0
1
0.105263
false
0
0.210526
0
0.421053
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
32
233
5.9375
0.4375
0.189474
0.357895
0
0
0
0
0
0
0
0
0
0.085837
233
8
55
29.125
0.892019
0.111588
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
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
159
700
2.698113
0.433962
0.020979
0.032634
0.037296
0.04662
0
0
0
0
0
0
0.088415
0.062857
700
32
53
21.875
0.565549
0.127143
0
0
0
0
0.094059
0.039604
0
0
0
0
0
1
0
false
0
0.04
0
0.04
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
189
2,127
4.613757
0.566138
0.080275
0.073395
0.041284
0
0
0
0
0
0
0
0.00674
0.441937
2,127
50
92
42.54
0.727885
0.038552
0
0.046512
0
0
0.324841
0.100441
0
0
0
0
0
1
0
false
0
0.023256
0
0.023256
0.023256
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
2,876
21,785
4.920723
0.280598
0.012295
0.014132
0.013567
0.195308
0.144291
0.08762
0.057589
0.039146
0.033211
0
0.069304
0.176039
21,785
428
3,845
50.899533
0.719109
0.087537
0
0.111748
0
0.014327
0.25739
0.049
0
0
0
0
0
1
0.048711
false
0
0.034384
0
0.100287
0.100287
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
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
506
3,755
5.05336
0.416996
0.034415
0.010168
0.014079
0.035198
0
0
0
0
0
0
0.008045
0.238615
3,755
121
78
31.033058
0.886324
0.499867
0
0.171875
0
0
0.093443
0
0
0
0
0
0
1
0.171875
false
0.03125
0.09375
0
0.40625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
157
955
2.961783
0.33758
0.034409
0.021505
0.034409
0
0
0
0
0
0
0
0.037209
0.324607
955
33
93
28.939394
0.683721
0.048168
0
0
0
0
0
0
0
0
0
0
0
1
0.08
false
0
0.04
0
0.2
0.04
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
390
3,074
4.133333
0.233333
0.073821
0.055831
0.072581
0.233251
0.185484
0.137097
0.093672
0.076923
0.076923
0
0.015557
0.330839
3,074
89
80
34.539326
0.768109
0.058556
0
0.242857
0
0
0.059378
0
0
0
0
0
0
1
0.085714
false
0
0.071429
0
0.228571
0.057143
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
123
720
4.292683
0.373984
0.056818
0.090909
0.151515
0.276515
0.113636
0.113636
0
0
0
0
0.021638
0.101389
720
29
74
24.827586
0.794436
0.070833
0
0
0
0
0.082335
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0.15
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
3
40
10.666667
1
0
0
0
0
0
0
0
0
0
0
0
0.075
40
1
40
40
0.864865
0
0
0
0
0
0.175
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
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
61
394
4.311475
0.459016
0.114068
0.08365
0.106464
0.129278
0.129278
0
0
0
0
0
0.059524
0.147208
394
10
62
39.4
0.723214
0
0
0.2
0
0
0.511392
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
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
65
653
6.8
0.553846
0.049774
0.058824
0.090498
0
0
0
0
0
0
0
0
0.23124
653
20
75
32.65
0.880478
0.168453
0
0
0
0
0.069549
0.039474
0
0
0
0
0
1
0.076923
false
0
0.153846
0
0.461538
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
52
521
6.961538
0.634615
0.232044
0
0
0
0
0
0
0
0
0
0
0.149712
521
33
104
15.787879
0.817156
0.852207
0
0
0
0
0.735294
0.455882
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
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
155
745
3.096774
0.387097
0.0625
0.125
0.166667
0.283333
0.283333
0.283333
0.216667
0.216667
0
0
0.053672
0.049664
745
22
76
33.863636
0.624294
0.798658
0
0
0
0
0.103175
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
3
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
634
4,839
3.242902
0.194006
0.047665
0.038911
0.024319
0.496109
0.428988
0.428988
0.422179
0.349222
0.314202
0
0.080064
0.357305
4,839
147
108
32.918367
0.581029
0.023352
0
0.382353
0
0
0.230883
0.009108
0
0
0
0
0.022059
1
0.022059
false
0
0.022059
0
0.044118
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
443
4,608
5.462754
0.437923
0.026033
0.049174
0.024793
0.112397
0.08843
0.071074
0
0
0
0
0.002818
0.306858
4,608
138
101
33.391304
0.754853
0.24566
0
0.069444
0
0
0.257109
0.006157
0
0
0
0
0
1
0.097222
false
0.222222
0.083333
0.027778
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
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
157
1,032
4.050955
0.464968
0.044025
0.121069
0.044025
0.062893
0
0
0
0
0
0
0.011407
0.235465
1,032
32
96
32.25
0.794677
0.335271
0
0
0
0
0.04291
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
703
5,405
4.530583
0.330014
0.032653
0.04898
0.033909
0.141915
0.115542
0.100471
0.100471
0.065306
0.035793
0
0.016334
0.286401
5,405
161
112
33.571429
0.809437
0.052544
0
0.139785
0
0
0.140556
0.019846
0
0
0
0
0
1
0.010753
false
0.021505
0.107527
0
0.225806
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
3,309
28,928
4.93291
0.170746
0.025914
0.012743
0.009435
0.278135
0.215157
0.18042
0.149482
0.13141
0.091834
0
0.004554
0.339533
28,928
587
155
49.28109
0.849785
0.203471
0
0.263158
0
0.004577
0.145512
0.025612
0
0
0
0
0
1
0.016018
false
0.036613
0.011442
0
0.04119
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
363
2,963
5.443526
0.393939
0.032389
0.035425
0.021255
0
0
0
0
0
0
0
0.006418
0.211272
2,963
81
124
36.580247
0.83911
0.059737
0
0.090909
0
0
0.265996
0
0
0
0
0
0
1
0.015152
false
0.090909
0.136364
0
0.151515
0.19697
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
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
31
272
6.032258
0.516129
0.171123
0
0
0
0
0
0
0
0
0
0
0.180147
272
11
53
24.727273
0.838565
0
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0.285714
0
0.714286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
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
19
184
8.526316
0.526316
0.185185
0.333333
0.308642
0
0
0
0
0
0
0
0
0.065217
184
3
72
61.333333
0.94186
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
6
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
574
4,763
4.893728
0.195122
0.06942
0.032396
0.04984
0.466358
0.395158
0.374511
0.259879
0.212887
0.177287
0
0.000559
0.248793
4,763
135
119
35.281481
0.784516
0
0
0.226415
0
0
0.202603
0.054377
0
0
0
0
0
1
0.056604
false
0
0.084906
0
0.179245
0.103774
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
139
1,315
5.302158
0.589928
0.032564
0.048847
0.062415
0.143826
0.143826
0.143826
0.143826
0.143826
0
0
0.001144
0.335361
1,315
64
97
20.546875
0.842105
0.403042
0
0
1
0
0.024578
0
0
0
0
0
0
1
0.090909
false
0
0.272727
0
0.636364
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
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
54
389
4.814815
0.759259
0.153846
0
0
0
0
0
0
0
0
0
0.102804
0.174807
389
17
52
22.882353
0.707165
0.606684
0
0
0
0
0.02069
0
0
0
0
0
0
1
0
false
0
0.833333
0
0.833333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
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
45
335
4.755556
0.644444
0.126168
0
0
0
0
0
0
0
0
0
0
0.259701
335
13
58
25.769231
0.862903
0
0
0
0
0
0.184524
0
0
0
0
0
0
1
0.076923
false
0.076923
0
0.076923
0.230769
0.153846
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
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
82
927
5.536585
0.45122
0.048458
0.07489
0.092511
0.264317
0.264317
0.264317
0.264317
0.264317
0.264317
0
0.006873
0.372168
927
36
75
25.75
0.773196
0
0
0.0625
0
0
0.151025
0
0
0
0
0
0.03125
1
0.03125
false
0
0.125
0
0.15625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
96
789
3.572917
0.34375
0.093294
0
0
0
0
0
0
0
0
0
0.076389
0.452471
789
34
67
23.205882
0.717593
0.125475
0
0
0
0
0
0
0
0
0
0
0
1
0.086957
false
0
0
0
0.26087
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
623
5,461
5.154093
0.284109
0.028029
0.052943
0.024292
0.216755
0.183121
0.163189
0.13952
0.13952
0.123326
0
0.003036
0.27614
5,461
160
101
34.13125
0.809259
0.081121
0
0.196721
0
0
0.229754
0.017397
0
0
0
0
0
1
0.02459
false
0
0.040984
0
0.07377
0.040984
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
387
3,013
5.263566
0.191214
0.082474
0.17673
0.054983
0.398625
0.376043
0.376043
0.376043
0.376043
0.376043
0
0.005354
0.194159
3,013
88
171
34.238636
0.833608
0.001991
0
0.297297
0
0
0.053262
0
0
0
0
0
0
1
0.094595
false
0
0.27027
0
0.459459
0.013514
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
84
587
4.77381
0.75
0.044888
0
0
0
0
0
0
0
0
0
0.029474
0.190801
587
18
159
32.611111
0.814737
0.609881
0
0
0
0
0.040909
0
0
0
0
0
0
1
0.125
false
0
0.125
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
1,182
8,803
4.051607
0.331641
0.02631
0.024431
0.013364
0.370432
0.32345
0.287743
0.284193
0.229275
0.167049
0
0.009986
0.271953
8,803
187
853
47.074866
0.737245
0.122004
0
0.083333
0
0.008333
0.321191
0.093313
0
0
0
0
0
1
0.091667
false
0
0.033333
0.025
0.233333
0.108333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
41
347
5.512195
0.707317
0
0
0
0
0
0
0
0
0
0
0
0.224784
347
15
62
23.133333
0.840149
0
0
0
0
0
0.057637
0
0
0
0
0
0
1
0.1
false
0
0.3
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
145
1,048
4.593103
0.372414
0.148649
0.144144
0.06006
0.189189
0.189189
0.189189
0.189189
0.189189
0.189189
0
0.022145
0.181298
1,048
35
78
29.942857
0.754079
0.371183
0
0.111111
0
0
0.064915
0
0
0
0
0
0
1
0.111111
false
0
0.222222
0
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
773
4,869
3.371281
0.179819
0.047966
0.027629
0.021489
0.409056
0.359939
0.359939
0.342671
0.342671
0.342671
0
0.054856
0.314849
4,869
205
62
23.75122
0.726319
0.111111
0
0.291391
0
0
0.007889
0
0
0
0
0
0
1
0.205298
false
0
0.013245
0.05298
0.463576
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
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
186
1,608
4.629032
0.435484
0.075494
0.030197
0.046458
0
0
0
0
0
0
0
0.005263
0.291045
1,608
50
109
32.16
0.75
0.143035
0
0.108108
0
0
0.013981
0
0
0
0
0
0
1
0.135135
false
0
0.108108
0
0.432432
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
104
1,036
4.711538
0.211538
0.110204
0.155102
0.110204
0.546939
0.289796
0.289796
0.289796
0.289796
0.289796
0
0.021638
0.375483
1,036
34
68
30.470588
0.735703
0.008687
0
0.428571
0
0
0.007805
0
0
0
0
0
0
1
0.107143
false
0
0
0
0.357143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
1,351
10,989
4.687639
0.19393
0.017685
0.022738
0.01579
0.16264
0.112743
0.059372
0.030633
0.030633
0.021791
0
0.021975
0.304304
10,989
331
184
33.199396
0.806409
0.153608
0
0.082126
0
0
0.002321
0
0
0
0
0
0
1
0.140097
false
0.004831
0.043478
0
0.21256
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
85
537
4.458824
0.658824
0.131926
0.102902
0
0
0
0
0
0
0
0
0.013423
0.167598
537
16
66
33.5625
0.834452
0.402235
0
0
0
0
0.128205
0
0
0
0
0
0
1
0.111111
true
0
0.333333
0
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
2
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
20
145
4.65
0.7
0.322581
0
0
0
0
0
0
0
0
0
0.008929
0.227586
145
8
48
18.125
0.821429
0.110345
0
0
0
0
0.023438
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.6
0.4
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
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
97
567
3.731959
0.546392
0.066298
0.132597
0.071823
0
0
0
0
0
0
0
0.017817
0.208113
567
23
100
24.652174
0.788419
0.174603
0
0
0
0
0
0
0
0
0
0
0
1
0.133333
false
0
0.266667
0
0.533333
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
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
482
4,177
4.628631
0.408714
0.037651
0.034514
0.025549
0.023308
0.023308
0
0
0
0
0
0.007554
0.334451
4,177
111
100
37.630631
0.794964
0.202777
0
0.028571
0
0
0.106156
0
0
0
0
0
0.028571
1
0.085714
false
0
0.1
0.028571
0.342857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
329
2,290
4.246201
0.303951
0.01718
0.060845
0.034359
0.118826
0.091625
0.064424
0.064424
0.064424
0
0
0.046259
0.235371
2,290
75
76
30.533333
0.751571
0.152402
0
0.111111
0
0
0.006803
0
0
0
0
0
0.092593
1
0.111111
false
0
0.148148
0
0.351852
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
14
109
5.642857
0.571429
0.379747
0.506329
0
0
0
0
0
0
0
0
0
0.146789
109
5
51
21.8
0.849462
0.036697
0
0
0
0
0.115385
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0.666667
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
1
0
7
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
1,024
8,192
4.577148
0.15332
0.069127
0.042245
0.047152
0.658844
0.630681
0.593983
0.578195
0.507147
0.478771
0
0.049925
0.264038
8,192
231
81
35.463203
0.727484
0.071167
0
0.475904
0
0
0.063348
0
0
0
0
0
0.096386
1
0.150602
false
0
0.03012
0
0.222892
0.006024
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
118
719
3.686441
0.20339
0.091954
0.055172
0.048276
0.282759
0.264368
0.156322
0.156322
0
0
0
0.01875
0.109875
719
16
85
44.9375
0.660938
0
0
0
0
0
0.392211
0.272601
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
861
6,608
4.350755
0.156794
0.052856
0.024026
0.018687
0.454084
0.402029
0.357181
0.313401
0.285905
0.264015
0
0.037724
0.297972
6,608
196
139
33.714286
0.769778
0.004237
0
0.365385
0
0
0.007264
0
0
0
0
0
0
1
0.057692
false
0
0.038462
0
0.166667
0.00641
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
50
497
6.04
0.44
0.119205
0.13245
0
0
0
0
0
0
0
0
0
0.265594
497
18
73
27.611111
0.827397
0
0
0
0
0
0.072581
0
0
0
0
0
0
1
0.153846
false
0.230769
0.076923
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
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
72
531
4.875
0.597222
0.099715
0
0
0
0
0
0
0
0
0
0.007009
0.193974
531
36
35
14.75
0.813084
0
0
0
0
0
0.009416
0
0
0
0
0
0
1
0.12
false
0
0.24
0.04
0.48
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
211
1,684
4.549763
0.393365
0.058333
0.13125
0.047917
0.183333
0.09375
0.09375
0.09375
0.09375
0.09375
0
0.011895
0.251188
1,684
55
78
30.618182
0.749405
0.089667
0
0.157895
0
0
0.079156
0
0
0
0
0
0.447368
1
0.210526
false
0
0.078947
0
0.342105
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
1
0
0
0
0
0
0
0
2
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
1,085
8,774
4.773272
0.231336
0.020274
0.027805
0.027032
0.424986
0.358177
0.307395
0.268585
0.238463
0.210079
0
0.009862
0.283451
8,774
193
207
45.46114
0.813902
0.122293
0
0.198758
0
0.006211
0.098905
0.0043
0
0
0
0
0
0
null
null
0.006211
0.049689
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
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
545
4,166
4.636697
0.223853
0.060942
0.031658
0.021765
0.168579
0.098932
0.083102
0.056193
0.056193
0.056193
0
0.003979
0.276044
4,166
137
93
30.408759
0.833886
0.165867
0
0.022989
0
0
0.017067
0
0
0
0
0.007299
0
0
null
null
0
0.022989
null
null
0.022989
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1