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
7f0697d4a1639956fd078c1f9ff90fac11c0c794
160
py
Python
applications/view/manage/__init__.py
wangyuan02605/webcloud
e57a2713125b751ee8bb8da29b789e2044e789aa
[ "MIT" ]
null
null
null
applications/view/manage/__init__.py
wangyuan02605/webcloud
e57a2713125b751ee8bb8da29b789e2044e789aa
[ "MIT" ]
null
null
null
applications/view/manage/__init__.py
wangyuan02605/webcloud
e57a2713125b751ee8bb8da29b789e2044e789aa
[ "MIT" ]
null
null
null
from flask import Flask from applications.view.manage.manage import manage_BP def register_manage_views(app: Flask): app.register_blueprint(manage_BP)
16
53
0.80625
23
160
5.391304
0.521739
0.129032
0
0
0
0
0
0
0
0
0
0
0.13125
160
9
54
17.777778
0.892086
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.5
0
0.75
0.25
1
0
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
1
0
0
1
0
1
0
0
5
7f0f28cb48819b1046d8600bcc901637f68b5633
103
py
Python
number/palindromenumber.py
mengyangbai/leetcode
e7a6906ecc5bce665dec5d0f057b302a64d50f40
[ "MIT" ]
null
null
null
number/palindromenumber.py
mengyangbai/leetcode
e7a6906ecc5bce665dec5d0f057b302a64d50f40
[ "MIT" ]
null
null
null
number/palindromenumber.py
mengyangbai/leetcode
e7a6906ecc5bce665dec5d0f057b302a64d50f40
[ "MIT" ]
null
null
null
class Solution(object): def isPalindrome(self, x): return x >= 0 and x == int(str(x)[::-1])
34.333333
48
0.572816
16
103
3.6875
0.8125
0
0
0
0
0
0
0
0
0
0
0.025316
0.23301
103
3
48
34.333333
0.721519
0
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0
0.333333
1
0
1
0
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
1
0
0
0
1
1
0
0
5
615f4654373081c4a9913e7f443619a61b8683cc
983
py
Python
project/routes.py
kz-lt/sgfcup
eda613dc7af5895e05693d1a54af4c941cd089f4
[ "WTFPL" ]
1
2015-01-02T16:42:39.000Z
2015-01-02T16:42:39.000Z
project/routes.py
kz-lt/sgfcup
eda613dc7af5895e05693d1a54af4c941cd089f4
[ "WTFPL" ]
null
null
null
project/routes.py
kz-lt/sgfcup
eda613dc7af5895e05693d1a54af4c941cd089f4
[ "WTFPL" ]
null
null
null
from flask import Flask def register_routes(app: Flask): from project.controllers.admin import blueprint as admin_blueprint from project.controllers.gallery import blueprint as gallery_blueprint from project.controllers.settings import blueprint as settings_blueprint from project.controllers.static import blueprint as static_blueprint from project.controllers.upload import blueprint as upload_blueprint from project.controllers.view import blueprint as view_blueprint app.register_blueprint(admin_blueprint) app.register_blueprint(gallery_blueprint) app.register_blueprint(settings_blueprint) app.register_blueprint(static_blueprint) app.register_blueprint(upload_blueprint) app.register_blueprint(view_blueprint) # only register the oauth routes if enabled if app.config["AUTH_OPENID_ENABLED"]: from project.controllers.oauth import blueprint as oauth_blueprint app.register_blueprint(oauth_blueprint)
40.958333
76
0.807731
120
983
6.416667
0.208333
0.1
0.2
0.263636
0
0
0
0
0
0
0
0
0.145473
983
23
77
42.73913
0.916667
0.041709
0
0
0
0
0.020213
0
0
0
0
0
0
1
0.058824
false
0
0.470588
0
0.529412
0.823529
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
1
1
0
5
61683c93512e6222cf9b39737d0214698b24dfd6
64
py
Python
0.0.5/modulos/main_modulos/__init__.py
Pharaoh00/Pharaoh-Toolkit
19692e4cf9a6b5ca9800526da8e6a85b5639290d
[ "MIT" ]
null
null
null
0.0.5/modulos/main_modulos/__init__.py
Pharaoh00/Pharaoh-Toolkit
19692e4cf9a6b5ca9800526da8e6a85b5639290d
[ "MIT" ]
null
null
null
0.0.5/modulos/main_modulos/__init__.py
Pharaoh00/Pharaoh-Toolkit
19692e4cf9a6b5ca9800526da8e6a85b5639290d
[ "MIT" ]
null
null
null
__all__ = ["passwordgeneretor", "calculadora", "namegenerator"]
32
63
0.75
4
64
11
1
0
0
0
0
0
0
0
0
0
0
0
0.078125
64
1
64
64
0.745763
0
0
0
0
0
0.640625
0
0
0
0
0
0
1
0
false
1
0
0
0
0
1
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
5
6193c9878dcadf0f2c5862b6663593863ff5fd04
465
py
Python
pbj/electrostatics/pb_formulation/formulations/__init__.py
bem4solvation/pbj
4fa9c111596359192539787ae241a79d4316b15b
[ "MIT" ]
null
null
null
pbj/electrostatics/pb_formulation/formulations/__init__.py
bem4solvation/pbj
4fa9c111596359192539787ae241a79d4316b15b
[ "MIT" ]
1
2022-02-18T17:34:37.000Z
2022-02-18T17:34:37.000Z
pbj/electrostatics/pb_formulation/formulations/__init__.py
bem4solvation/pbj
4fa9c111596359192539787ae241a79d4316b15b
[ "MIT" ]
null
null
null
from . import direct from . import direct_permuted from . import direct_external from . import direct_external_permuted from . import juffer from . import lu from . import alpha_beta from . import alpha_beta_external_potential from . import alpha_beta_single_blocked from . import first_kind_internal from . import first_kind_external from . import muller_internal from . import muller_external from . import direct_stern from . import slic from . import slic_prop
27.352941
43
0.827957
67
465
5.462687
0.283582
0.437158
0.218579
0.155738
0
0
0
0
0
0
0
0
0.137634
465
16
44
29.0625
0.912718
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
1
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
1
0
1
0
1
0
0
5
619b200cd35d19b8500369c48433b834f4e755bb
125
py
Python
tndm/layers/__init__.py
XLSMALL/TF2Keras-LFADs
e40595d10c90a91077f9f7b399248040c8a8e91f
[ "MIT" ]
3
2021-10-09T23:37:13.000Z
2021-12-21T04:17:43.000Z
tndm/layers/__init__.py
XLSMALL/TF2Keras-LFADs
e40595d10c90a91077f9f7b399248040c8a8e91f
[ "MIT" ]
2
2021-10-08T21:27:50.000Z
2021-10-09T22:09:47.000Z
tndm/layers/__init__.py
XLSMALL/TF2Keras-LFADs
e40595d10c90a91077f9f7b399248040c8a8e91f
[ "MIT" ]
5
2021-10-08T10:41:33.000Z
2022-03-30T22:20:07.000Z
from .generator_gru import GeneratorGRU from .gaussian_sampling import GaussianSampling from .masked_dense import MaskedDense
41.666667
47
0.888
15
125
7.2
0.733333
0
0
0
0
0
0
0
0
0
0
0
0.088
125
3
48
41.666667
0.947368
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
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
5
61c367fa7d6b7f01ae1bff83ac6a10d33e386975
149
py
Python
src/genie/libs/telemetry/plugins/crashdumps/nxos/plugin.py
CiscoTestAutomation/genietelemetrylibs
728828bb141f26f1052f1c1f4465e1a48013449c
[ "Apache-2.0" ]
5
2018-06-27T00:56:14.000Z
2020-09-06T21:29:18.000Z
src/genie/libs/telemetry/plugins/crashdumps/nxos/plugin.py
CiscoTestAutomation/genietelemetry
286cd1d281c7375c3d161955fa3ce52e1da52372
[ "Apache-2.0" ]
null
null
null
src/genie/libs/telemetry/plugins/crashdumps/nxos/plugin.py
CiscoTestAutomation/genietelemetry
286cd1d281c7375c3d161955fa3ce52e1da52372
[ "Apache-2.0" ]
2
2019-11-13T14:59:48.000Z
2020-02-09T18:50:09.000Z
''' GenieTelemetry Crashdumps Plugin for NXOS ''' # GenieTelemetry from ..plugin import Plugin as BasePlugin class Plugin(BasePlugin): pass
12.416667
41
0.738255
16
149
6.875
0.6875
0
0
0
0
0
0
0
0
0
0
0
0.181208
149
11
42
13.545455
0.901639
0.38255
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.333333
0.333333
0
0.666667
0
1
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
1
1
0
1
0
0
5
4ee6ab9bf33edf062b48de90d5fa51387835f5a4
43
py
Python
src/OTLMOW/Facility/Exceptions/UnionTypeError.py
davidvlaminck/OTLClassPython
71330afeb37c3ea6d9981f521ff8f4a3f8b946fc
[ "MIT" ]
2
2022-02-01T08:58:11.000Z
2022-02-08T13:35:17.000Z
src/OTLMOW/Facility/Exceptions/UnionTypeError.py
davidvlaminck/OTLMOW
71330afeb37c3ea6d9981f521ff8f4a3f8b946fc
[ "MIT" ]
null
null
null
src/OTLMOW/Facility/Exceptions/UnionTypeError.py
davidvlaminck/OTLMOW
71330afeb37c3ea6d9981f521ff8f4a3f8b946fc
[ "MIT" ]
null
null
null
class UnionTypeError(ValueError): pass
21.5
34
0.767442
5
43
6.8
1
0
0
0
0
0
0
0
0
0
0
0
0.139535
43
2
35
21.5
0.891892
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0.5
0
null
null
0
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
1
0
0
1
0
0
0
0
0
5
4ef15219847f8ebc558d82981b2a87df3ff0d1d8
177
py
Python
0x03-python-data_structures/dev/3-print_reversed_list_integer.py
johncoleman83/bootcampschool-higher_level_programming
a83c3b7092cfe893c87e495f8d8eec9228c9b808
[ "MIT" ]
null
null
null
0x03-python-data_structures/dev/3-print_reversed_list_integer.py
johncoleman83/bootcampschool-higher_level_programming
a83c3b7092cfe893c87e495f8d8eec9228c9b808
[ "MIT" ]
null
null
null
0x03-python-data_structures/dev/3-print_reversed_list_integer.py
johncoleman83/bootcampschool-higher_level_programming
a83c3b7092cfe893c87e495f8d8eec9228c9b808
[ "MIT" ]
1
2020-09-25T17:54:36.000Z
2020-09-25T17:54:36.000Z
#!/usr/bin/python3 def print_reversed_list_integer(my_list=[]): if my_list: for i in range(len(my_list) - 1, -1, -1): print("{:d}".format(my_list[i]))
22.125
49
0.581921
29
177
3.310345
0.62069
0.25
0
0
0
0
0
0
0
0
0
0.029197
0.225989
177
7
50
25.285714
0.671533
0.096045
0
0
0
0
0.025157
0
0
0
0
0
0
1
0.25
false
0
0
0
0.25
0.5
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
1
0
0
0
0
0
1
0
5
f60c8a1c27bda0c2a743b273a1c96093f1f98963
111
py
Python
esrally/driver/__init__.py
akhil-rane/rally
bc5513ca3a5a9faaebabf952af196335467a289a
[ "Apache-2.0" ]
null
null
null
esrally/driver/__init__.py
akhil-rane/rally
bc5513ca3a5a9faaebabf952af196335467a289a
[ "Apache-2.0" ]
null
null
null
esrally/driver/__init__.py
akhil-rane/rally
bc5513ca3a5a9faaebabf952af196335467a289a
[ "Apache-2.0" ]
null
null
null
# expose only the minimum API from .driver import DriverActor, StartBenchmark, BenchmarkComplete, TaskFinished
37
80
0.837838
12
111
7.75
1
0
0
0
0
0
0
0
0
0
0
0
0.117117
111
2
81
55.5
0.94898
0.243243
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
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
1
0
1
0
0
5
f63f7aec004a4b56279c3c64c79479da58f2d1d5
40
py
Python
greenrpc/error.py
brettlangdon/greenrpc
540976ed89f28ddc8eb78d0523b4bee17d4f4643
[ "MIT" ]
10
2015-04-06T14:04:50.000Z
2020-05-25T18:15:29.000Z
greenrpc/error.py
brettlangdon/greenrpc
540976ed89f28ddc8eb78d0523b4bee17d4f4643
[ "MIT" ]
1
2017-02-24T04:52:05.000Z
2017-02-24T04:52:05.000Z
greenrpc/error.py
brettlangdon/greenrpc
540976ed89f28ddc8eb78d0523b4bee17d4f4643
[ "MIT" ]
null
null
null
class RPCException(Exception): pass
13.333333
30
0.75
4
40
7.5
1
0
0
0
0
0
0
0
0
0
0
0
0.175
40
2
31
20
0.909091
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
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
1
0
0
0
0
0
5
f6722866e285d23b424f8096ed08a4c508ae29c7
50
py
Python
GSVimage/__init__.py
tanayrastogi/streetViewImages
37197200a0bbca82c077bc604cb8558eac824112
[ "MIT" ]
null
null
null
GSVimage/__init__.py
tanayrastogi/streetViewImages
37197200a0bbca82c077bc604cb8558eac824112
[ "MIT" ]
null
null
null
GSVimage/__init__.py
tanayrastogi/streetViewImages
37197200a0bbca82c077bc604cb8558eac824112
[ "MIT" ]
null
null
null
from GSVimage.getGSV import GoogleStreetViewImages
50
50
0.92
5
50
9.2
1
0
0
0
0
0
0
0
0
0
0
0
0.06
50
1
50
50
0.978723
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
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
5
f67536330f006ca29ed0052c12314ba152344176
74
py
Python
py/AK/start.py
mabotech/mabo.io
7f646db9d5ee3cd0b137866bf8eaf295890f134c
[ "MIT" ]
null
null
null
py/AK/start.py
mabotech/mabo.io
7f646db9d5ee3cd0b137866bf8eaf295890f134c
[ "MIT" ]
null
null
null
py/AK/start.py
mabotech/mabo.io
7f646db9d5ee3cd0b137866bf8eaf295890f134c
[ "MIT" ]
1
2021-01-30T01:47:01.000Z
2021-01-30T01:47:01.000Z
import ak_client if __name__ == '__main__': ak_client.main()
8.222222
26
0.621622
9
74
4
0.666667
0.444444
0
0
0
0
0
0
0
0
0
0
0.27027
74
8
27
9.25
0.666667
0
0
0
0
0
0.112676
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
0
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
1
0
1
0
0
0
0
5
f6757d548d9cb01314e85585e422b4ef75c51a3f
65
py
Python
scripts/qgis_fixes/fix_unicode_keep_u.py
dyna-mis/Hilabeling
cb7d5d4be29624a20c8a367162dbc6fd779b2b52
[ "MIT" ]
null
null
null
scripts/qgis_fixes/fix_unicode_keep_u.py
dyna-mis/Hilabeling
cb7d5d4be29624a20c8a367162dbc6fd779b2b52
[ "MIT" ]
null
null
null
scripts/qgis_fixes/fix_unicode_keep_u.py
dyna-mis/Hilabeling
cb7d5d4be29624a20c8a367162dbc6fd779b2b52
[ "MIT" ]
1
2021-12-25T08:40:30.000Z
2021-12-25T08:40:30.000Z
from libfuturize.fixes.fix_unicode_keep_u import FixUnicodeKeepU
32.5
64
0.907692
9
65
6.222222
1
0
0
0
0
0
0
0
0
0
0
0
0.061538
65
1
65
65
0.918033
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
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
5
9c9eba4f126910c40f64a20fe827e5f5a077b7bf
88
py
Python
torch_kalman/utils/nn/__init__.py
Suhwan-Dev/torch-kalman
f310c42e264d1642819e4c49a8b0212209a18a85
[ "MIT" ]
null
null
null
torch_kalman/utils/nn/__init__.py
Suhwan-Dev/torch-kalman
f310c42e264d1642819e4c49a8b0212209a18a85
[ "MIT" ]
null
null
null
torch_kalman/utils/nn/__init__.py
Suhwan-Dev/torch-kalman
f310c42e264d1642819e4c49a8b0212209a18a85
[ "MIT" ]
null
null
null
from .named_embedding import NamedEmbedding from .fourier_season import FourierSeasonNN
29.333333
43
0.886364
10
88
7.6
0.8
0
0
0
0
0
0
0
0
0
0
0
0.090909
88
2
44
44
0.95
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
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
5
9cf680d8b779a698eb086a66031ca9ee6d6e0c23
208
py
Python
swiss_german_alignment/stt_output/reader/base.py
festivalhopper/swiss-parliaments-corpus-paper
f462634b96435d199d54541f47cf3810b4597ff9
[ "MIT" ]
3
2020-10-07T19:46:03.000Z
2021-01-13T00:55:39.000Z
swiss_german_alignment/stt_output/reader/base.py
festivalhopper/swiss-parliaments-corpus-paper
f462634b96435d199d54541f47cf3810b4597ff9
[ "MIT" ]
null
null
null
swiss_german_alignment/stt_output/reader/base.py
festivalhopper/swiss-parliaments-corpus-paper
f462634b96435d199d54541f47cf3810b4597ff9
[ "MIT" ]
1
2021-02-08T15:48:11.000Z
2021-02-08T15:48:11.000Z
from abc import ABC, abstractmethod from typing import List from ..model import Word class SttOutputReader(ABC): @abstractmethod def read(self, path_to_stt_output: str) -> List[Word]: pass
18.909091
58
0.721154
28
208
5.25
0.678571
0.231293
0
0
0
0
0
0
0
0
0
0
0.201923
208
10
59
20.8
0.885542
0
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0.142857
0.428571
0
0.714286
0
1
0
0
null
1
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
1
0
1
0
0
5
140f377e640b9e5b52bbb4f91cea56de5ed8f639
160
py
Python
openprovider/modules/nsgroup.py
danielterhorst/openprovider.py
fdd8b7dd200de058adeda8c8638b361af0a2639f
[ "MIT" ]
11
2015-03-27T01:06:41.000Z
2021-01-10T18:29:05.000Z
openprovider/modules/nsgroup.py
danielterhorst/openprovider.py
fdd8b7dd200de058adeda8c8638b361af0a2639f
[ "MIT" ]
12
2015-01-02T10:55:20.000Z
2020-10-05T08:16:49.000Z
openprovider/modules/nsgroup.py
danielterhorst/openprovider.py
fdd8b7dd200de058adeda8c8638b361af0a2639f
[ "MIT" ]
7
2015-12-16T10:33:18.000Z
2021-11-01T15:40:26.000Z
# coding=utf-8 from openprovider.modules import common class NSGroupModule(common.Module): """Bindings to API methods in the nsgroup module.""" pass
17.777778
56
0.73125
21
160
5.571429
0.904762
0
0
0
0
0
0
0
0
0
0
0.007576
0.175
160
8
57
20
0.878788
0.375
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.333333
0.333333
0
0.666667
0
1
0
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
1
1
0
0
0
0
5
14335e7e761cc909cf244c3f5be27cfcab6d9b98
436
py
Python
smartduck_strategy/duck.py
johnklee/learn_dp_from_bad_smell_design
88506487ce64a1b9492ec28fe235ae596ddf1472
[ "MIT" ]
null
null
null
smartduck_strategy/duck.py
johnklee/learn_dp_from_bad_smell_design
88506487ce64a1b9492ec28fe235ae596ddf1472
[ "MIT" ]
4
2022-01-02T06:49:43.000Z
2022-02-15T12:36:41.000Z
smartduck_strategy/duck.py
johnklee/learn_dp_from_bad_smell_design
88506487ce64a1b9492ec28fe235ae596ddf1472
[ "MIT" ]
null
null
null
class Duck: def quack(self): return 'quack!' def swim(self): return 'I can swim!' def display(self): return 'I am a duck!' class MallardDuck(Duck): def display(self): return 'I am a mallard duck ^^' class RedheadDuck(Duck): def display(self): return 'I am a redhead duck @_@' class RubberDuck(Duck): def quack(self): return 'squeak!' def display(self): return 'I am a rubber duck ><"'
15.571429
36
0.626147
63
436
4.31746
0.301587
0.257353
0.202206
0.294118
0.544118
0.382353
0.382353
0.205882
0
0
0
0
0.245413
436
27
37
16.148148
0.826748
0
0
0.333333
0
0
0.236239
0
0
0
0
0
0
1
0.388889
false
0
0
0.388889
1
0
0
0
0
null
1
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
1
0
0
0
1
0
0
0
5
14885b08e0584cdb2c4f58b22f0b9a27fb601ab2
202
py
Python
pycgp/__init__.py
Jarino/pycgp
c3281c0deff3388cb7cfd79339b84391f6499ae1
[ "MIT" ]
4
2018-02-08T17:34:58.000Z
2021-09-20T01:37:32.000Z
pycgp/__init__.py
Jarino/pycgp
c3281c0deff3388cb7cfd79339b84391f6499ae1
[ "MIT" ]
1
2018-02-09T09:59:09.000Z
2018-02-09T10:52:26.000Z
pycgp/__init__.py
Jarino/pycgp
c3281c0deff3388cb7cfd79339b84391f6499ae1
[ "MIT" ]
1
2018-12-12T03:51:33.000Z
2018-12-12T03:51:33.000Z
from .mutation import point_mutation, probabilistic_mutation, active_mutation, single_mutation from .selection import truncation_selection from .ev_params import EvParams from .params import Params
40.4
95
0.851485
25
202
6.64
0.48
0.144578
0
0
0
0
0
0
0
0
0
0
0.113861
202
4
96
50.5
0.927374
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
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
5
14bb77714726d7f50653cfe4949d45e2e45f2d06
129
py
Python
fastda/models/utils/__init__.py
zhyx12/fastda
0378dc67bc30eb66ae5934cc798f4a8152055f30
[ "MIT" ]
3
2021-12-03T17:20:57.000Z
2021-12-06T08:53:36.000Z
fastda/models/utils/__init__.py
zhyx12/fastda
0378dc67bc30eb66ae5934cc798f4a8152055f30
[ "MIT" ]
null
null
null
fastda/models/utils/__init__.py
zhyx12/fastda
0378dc67bc30eb66ae5934cc798f4a8152055f30
[ "MIT" ]
1
2021-12-05T01:17:19.000Z
2021-12-05T01:17:19.000Z
# Author: Vincent Zhang # Mail: zhyx12@gmail.com # ---------------------------------------------- from .gradient_reverse import *
32.25
48
0.48062
11
129
5.545455
1
0
0
0
0
0
0
0
0
0
0
0.017094
0.093023
129
4
49
32.25
0.504274
0.705426
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
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
1
0
1
0
0
5
1ade33b30eacb0f74a84ba12ff990e76d34d500f
127
py
Python
lang/Python/pythagorean-triples-3.py
ethansaxenian/RosettaDecode
8ea1a42a5f792280b50193ad47545d14ee371fb7
[ "MIT" ]
1
2018-11-09T22:08:38.000Z
2018-11-09T22:08:38.000Z
lang/Python/pythagorean-triples-3.py
ethansaxenian/RosettaDecode
8ea1a42a5f792280b50193ad47545d14ee371fb7
[ "MIT" ]
null
null
null
lang/Python/pythagorean-triples-3.py
ethansaxenian/RosettaDecode
8ea1a42a5f792280b50193ad47545d14ee371fb7
[ "MIT" ]
1
2018-11-09T22:08:40.000Z
2018-11-09T22:08:40.000Z
10 (0, 0) 100 (7, 17) 1000 (70, 325) 10000 (703, 4858) 100000 (7026, 64741) 1000000 (70229, 808950) 10000000 (702309, 9706567)
15.875
26
0.669291
21
127
4.047619
0.952381
0
0
0
0
0
0
0
0
0
0
0.801887
0.165354
127
7
27
18.142857
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
213c97137a88472a8a4352c27f96ebd9ce50a2d6
52
py
Python
scripts/qgis_fixes/fix_raw_input.py
dyna-mis/Hilabeling
cb7d5d4be29624a20c8a367162dbc6fd779b2b52
[ "MIT" ]
null
null
null
scripts/qgis_fixes/fix_raw_input.py
dyna-mis/Hilabeling
cb7d5d4be29624a20c8a367162dbc6fd779b2b52
[ "MIT" ]
null
null
null
scripts/qgis_fixes/fix_raw_input.py
dyna-mis/Hilabeling
cb7d5d4be29624a20c8a367162dbc6fd779b2b52
[ "MIT" ]
1
2021-12-25T08:40:30.000Z
2021-12-25T08:40:30.000Z
from lib2to3.fixes.fix_raw_input import FixRawInput
26
51
0.884615
8
52
5.5
1
0
0
0
0
0
0
0
0
0
0
0.041667
0.076923
52
1
52
52
0.875
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
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
5
214dd03b20792da10094359cedb37a5bcff7ea1e
192
py
Python
aio_pybars/__init__.py
rrader/aio_pybars
a02e824cffd4242f4eea2abd9618f6a51e2e413b
[ "BSD-3-Clause" ]
1
2018-07-24T04:11:53.000Z
2018-07-24T04:11:53.000Z
aio_pybars/__init__.py
rrader/aio_pybars
a02e824cffd4242f4eea2abd9618f6a51e2e413b
[ "BSD-3-Clause" ]
null
null
null
aio_pybars/__init__.py
rrader/aio_pybars
a02e824cffd4242f4eea2abd9618f6a51e2e413b
[ "BSD-3-Clause" ]
null
null
null
from .loader import FSTemplateLoader from .render import render, AIOBarsResponse async def setup(app, templates_dir, Loader=FSTemplateLoader): app['loader'] = Loader(app, templates_dir)
27.428571
61
0.786458
23
192
6.478261
0.521739
0.161074
0.201342
0
0
0
0
0
0
0
0
0
0.125
192
6
62
32
0.886905
0
0
0
0
0
0.03125
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
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
5
dcc6cb86a4bc2b15c45fcd53114ac39955c9a1c6
213
py
Python
test/src/628-pythonwrappedcvmfsserver/do_install.py
chrisburr/cvmfs
74691036341e6010c83e9dff093f0bcad6fd08e1
[ "BSD-3-Clause" ]
2
2021-05-15T05:22:23.000Z
2021-05-15T05:23:00.000Z
test/src/628-pythonwrappedcvmfsserver/do_install.py
chrisburr/cvmfs
74691036341e6010c83e9dff093f0bcad6fd08e1
[ "BSD-3-Clause" ]
2
2018-05-04T13:43:45.000Z
2018-08-27T13:53:45.000Z
test/src/628-pythonwrappedcvmfsserver/do_install.py
chrisburr/cvmfs
74691036341e6010c83e9dff093f0bcad6fd08e1
[ "BSD-3-Clause" ]
1
2021-12-13T00:20:14.000Z
2021-12-13T00:20:14.000Z
#!/usr/bin/env python from LbCVMFS import Tools def print_wrapper(msg): print "WRAPPER:" , msg if __name__ == "__main__": with Tools.cvmfsTransaction(): print_wrapper("not installing anything")
19.363636
48
0.694836
26
213
5.307692
0.769231
0.26087
0.217391
0
0
0
0
0
0
0
0
0
0.187793
213
10
49
21.3
0.797688
0.093897
0
0
0
0
0.203125
0
0
0
0
0
0
0
null
null
0
0.166667
null
null
0.5
1
0
0
null
1
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
1
0
0
0
0
0
0
1
0
5
0d40b520801c1a2b3cd4bd5de3bb651a7e862f44
141
py
Python
07.Debuging and functuion/triangleArea.py
nikolayvutov/Python
55163496dac452a7110b7f76edc6894ee195f1fe
[ "MIT" ]
null
null
null
07.Debuging and functuion/triangleArea.py
nikolayvutov/Python
55163496dac452a7110b7f76edc6894ee195f1fe
[ "MIT" ]
null
null
null
07.Debuging and functuion/triangleArea.py
nikolayvutov/Python
55163496dac452a7110b7f76edc6894ee195f1fe
[ "MIT" ]
null
null
null
def triangleArea(side, height): return side * height / 2 side = float(input()) height = float(input()) print(triangleArea(side, height))
23.5
33
0.702128
18
141
5.5
0.5
0.30303
0.444444
0
0
0
0
0
0
0
0
0.008333
0.148936
141
6
33
23.5
0.816667
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0
0.2
0.4
0.2
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
0
1
0
0
0
5
b49dc35cd54e38d851d6dae98eb3c0a315445561
247
py
Python
libtools/ui/__init__.py
HeadCrab654/Marutools
427bea3730fb9da6e4a5cf81e244586f833df51a
[ "MIT" ]
null
null
null
libtools/ui/__init__.py
HeadCrab654/Marutools
427bea3730fb9da6e4a5cf81e244586f833df51a
[ "MIT" ]
null
null
null
libtools/ui/__init__.py
HeadCrab654/Marutools
427bea3730fb9da6e4a5cf81e244586f833df51a
[ "MIT" ]
null
null
null
__all__=["GUI", "TUI", "WEB", "UI"] def UI(config, logger): return GUI(config, logger) def GUI(config, logger, library="auto"): from .GUI_tkinter import TKINTER return TKINTER(config, logger) def TUI(): pass def WEB(): pass
17.642857
40
0.639676
34
247
4.5
0.441176
0.313725
0.196078
0
0
0
0
0
0
0
0
0
0.202429
247
14
41
17.642857
0.77665
0
0
0.2
0
0
0.060484
0
0
0
0
0
0
1
0.4
false
0.2
0.1
0.1
0.7
0
0
0
0
null
1
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
1
0
1
0
0
1
0
0
5
b4a0921b6f4e650d7a45736dba1799438398ec8f
51
py
Python
enthought/pyface/ui/null/window.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
3
2016-12-09T06:05:18.000Z
2018-03-01T13:00:29.000Z
enthought/pyface/ui/null/window.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
1
2020-12-02T00:51:32.000Z
2020-12-02T08:48:55.000Z
enthought/pyface/ui/null/window.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
null
null
null
# proxy module from pyface.ui.null.window import *
17
35
0.764706
8
51
4.875
1
0
0
0
0
0
0
0
0
0
0
0
0.137255
51
2
36
25.5
0.886364
0.235294
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
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
1
0
1
0
0
5
b4a2394b19162088cc418380481afb6339d6aa93
3,111
py
Python
tests/unit/test_principals.py
yoava333/parliament
fed166676245ae6318df6b3a2f5cb3cfee097800
[ "BSD-3-Clause" ]
2
2020-09-23T12:20:23.000Z
2022-03-10T18:40:37.000Z
tests/unit/test_principals.py
yoava333/parliament
fed166676245ae6318df6b3a2f5cb3cfee097800
[ "BSD-3-Clause" ]
null
null
null
tests/unit/test_principals.py
yoava333/parliament
fed166676245ae6318df6b3a2f5cb3cfee097800
[ "BSD-3-Clause" ]
1
2020-02-06T09:48:52.000Z
2020-02-06T09:48:52.000Z
import unittest from nose.tools import raises, assert_equal, assert_true, assert_false from parliament import analyze_policy_string class TestPrincipals(unittest.TestCase): """Test class for principals""" def test_policy_with_principal(self): # S3 bucket policy policy = analyze_policy_string( """{ "Version":"2012-10-17", "Statement":[ { "Sid":"AddPerm", "Effect":"Allow", "Principal": "*", "Action":["s3:GetObject"], "Resource":["arn:aws:s3:::examplebucket/*"] } ] }""", ignore_private_auditors=True, ) assert_equal( policy.finding_ids, set(), "Basic S3 bucket policy", ) policy = analyze_policy_string( """{ "Version":"2012-10-17", "Statement":[ { "Effect":"Allow", "Principal": {"AWS": ["arn:aws:iam::000000000000:root","arn:aws:iam::111111111111:root"]}, "Action":["s3:GetObject"], "Resource":["arn:aws:s3:::examplebucket/*"] } ] }""", ignore_private_auditors=True, ) assert_equal( policy.finding_ids, set(), "S3 bucket policy with two accounts granted access via account ARN", ) policy = analyze_policy_string( """{ "Version":"2012-10-17", "Statement":[ { "Effect":"Allow", "Principal":{"AWS":"000000000000"}, "Action":["s3:GetObject"], "Resource":["arn:aws:s3:::examplebucket/*"] } ] }""", ignore_private_auditors=True, ) assert_equal( policy.finding_ids, set(), "S3 bucket policy with one account granted access via ID", ) policy = analyze_policy_string( """{ "Version":"2012-10-17", "Statement":[ { "Effect":"Allow", "Principal": { "AWS": "arn:aws:iam::000000000000:user/alice" }, "Action":["s3:GetObject"], "Resource":["arn:aws:s3:::examplebucket/*"] } ] }""", ignore_private_auditors=True, ) assert_equal( policy.finding_ids, set(), "S3 bucket policy with ARN of user", ) policy = analyze_policy_string( """{ "Version":"2012-10-17", "Statement":[ { "Effect":"Allow", "Principal": { "Federated": "cognito-identity.amazonaws.com" }, "Action":["s3:GetObject"], "Resource":["arn:aws:s3:::examplebucket/*"] } ] }""", ignore_private_auditors=True, ) assert_equal( policy.finding_ids, set(), "Federated access", ) def test_bad_principals(self): # Good principal policy = analyze_policy_string( """{ "Version":"2012-10-17", "Statement":[ { "Sid":"AddPerm", "Effect":"Allow", "Principal": "*", "Action":["s3:GetObject"], "Resource":["arn:aws:s3:::examplebucket/*"] } ] }""", ignore_private_auditors=True, ) assert_equal( policy.finding_ids, set(), "Basic S3 bucket policy", )
24.496063
96
0.531019
290
3,111
5.537931
0.241379
0.033624
0.082814
0.0934
0.74533
0.74533
0.74533
0.74533
0.74533
0.74533
0
0.05239
0.300546
3,111
126
97
24.690476
0.685662
0.018644
0
0.461538
0
0
0.130755
0
0
0
0
0
0.134615
1
0.038462
false
0
0.057692
0
0.115385
0
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
b4ce0435b456074215739349ef6117c27fee17fe
194
py
Python
console/longpool/stop.py
ihydrogen/hydrogen-chat-bot-py
b21ece5cf2532c0f0d31b5db75fe6b91229f5d59
[ "Apache-2.0" ]
9
2017-02-19T16:09:53.000Z
2021-01-05T12:18:22.000Z
console/longpool/stop.py
ihydrogen/hydrogen-chat-bot-py
b21ece5cf2532c0f0d31b5db75fe6b91229f5d59
[ "Apache-2.0" ]
1
2017-11-28T04:37:33.000Z
2017-11-28T04:37:33.000Z
console/longpool/stop.py
ihydrogen/hydrogen-chat-bot-py
b21ece5cf2532c0f0d31b5db75fe6b91229f5d59
[ "Apache-2.0" ]
null
null
null
import bot_header def main(c): if bot_header.LONG_POOL_THREAD_INSTANCE is not None: bot_header.LONG_POOL_THREAD_INSTANCE.stop() else: raise Exception("Nothing to stop")
24.25
56
0.721649
29
194
4.517241
0.689655
0.206107
0.198473
0.259542
0.473282
0.473282
0
0
0
0
0
0
0.206186
194
8
57
24.25
0.850649
0
0
0
0
0
0.076923
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.333333
0
1
0
0
null
1
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
0
0
0
0
0
0
0
5
b4ce1347b252d27bacbfaf6233ac36aef5a559c6
230
py
Python
webca/webca/config/apps.py
jesusfer/webca
1c3608e0a02aaba9bd8594d80a247d692cbd04ad
[ "Apache-2.0" ]
null
null
null
webca/webca/config/apps.py
jesusfer/webca
1c3608e0a02aaba9bd8594d80a247d692cbd04ad
[ "Apache-2.0" ]
3
2018-05-07T18:37:14.000Z
2021-06-10T20:19:35.000Z
webca/webca/config/apps.py
jesusfer/webca
1c3608e0a02aaba9bd8594d80a247d692cbd04ad
[ "Apache-2.0" ]
null
null
null
"""Configuration for the config applications.""" from django.apps import AppConfig class ConfigConfig(AppConfig): """Configuration for the config applications.""" name = 'webca.config' verbose_name = 'Configuration'
25.555556
52
0.734783
24
230
7
0.625
0.190476
0.22619
0.297619
0.440476
0
0
0
0
0
0
0
0.156522
230
8
53
28.75
0.865979
0.369565
0
0
0
0
0.186567
0
0
0
0
0
0
1
0
false
0
0.25
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
0
0
0
0
1
0
0
5
37070b42089b050bb8e1b70fe9980efe416d311d
124
py
Python
flask/backend/resources/static_data.py
gradiuscypher/how-do-i-shot-web
b3a1ceb01946033428918d4e9067fe67cd5d8192
[ "MIT" ]
null
null
null
flask/backend/resources/static_data.py
gradiuscypher/how-do-i-shot-web
b3a1ceb01946033428918d4e9067fe67cd5d8192
[ "MIT" ]
2
2020-05-06T06:38:56.000Z
2020-05-06T06:38:56.000Z
flask/backend/resources/static_data.py
gradiuscypher/how-do-i-shot-web
b3a1ceb01946033428918d4e9067fe67cd5d8192
[ "MIT" ]
null
null
null
from flask_restful import Resource class StaticData(Resource): def get(self): return {'data1': 1, 'data2': 2}
17.714286
39
0.66129
16
124
5.0625
0.9375
0
0
0
0
0
0
0
0
0
0
0.041237
0.217742
124
6
40
20.666667
0.793814
0
0
0
0
0
0.080645
0
0
0
0
0
0
1
0.25
false
0
0.25
0.25
1
0
1
0
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
1
0
0
0
1
1
0
0
5
370b34b12e19fb61cc0bf2e69ab9e320340fa548
96
py
Python
src/diamondquest/view/__init__.py
mousepawgames/diamondquest
0f1488cffceee04766c3d35b42806c5d54a54d1d
[ "BSD-3-Clause" ]
2
2020-06-09T17:44:55.000Z
2021-05-27T02:01:52.000Z
src/diamondquest/view/__init__.py
mousepawgames/diamondquest
0f1488cffceee04766c3d35b42806c5d54a54d1d
[ "BSD-3-Clause" ]
10
2021-05-16T01:57:53.000Z
2021-05-16T02:44:30.000Z
src/diamondquest/view/__init__.py
mousepawgames/diamondquest
0f1488cffceee04766c3d35b42806c5d54a54d1d
[ "BSD-3-Clause" ]
4
2020-07-20T13:09:26.000Z
2021-05-13T21:07:57.000Z
from .view import View from diamondquest.common.mode import ModeType from .window import Window
24
45
0.833333
14
96
5.714286
0.571429
0
0
0
0
0
0
0
0
0
0
0
0.125
96
3
46
32
0.952381
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
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
5
370e8a869602571e208af60ebd6a760666cefe48
3,495
py
Python
gam/db/__init__.py
EnderDas/gam
f4aa2958badb032b2d115ccd1d5f8841b3cae502
[ "Apache-2.0" ]
null
null
null
gam/db/__init__.py
EnderDas/gam
f4aa2958badb032b2d115ccd1d5f8841b3cae502
[ "Apache-2.0" ]
null
null
null
gam/db/__init__.py
EnderDas/gam
f4aa2958badb032b2d115ccd1d5f8841b3cae502
[ "Apache-2.0" ]
null
null
null
#db.__init__.py from .__save__ import Save from .__load__ import Load class _player: def _give_coins(self, player, amount): p = Load()._loadPlayer(player.name) p['CREDITS']['COINS'] += amount Save()._savePlayer(player.name, p) new = player.__class__.__init__(player, player.name) del player return new def _give_bills(self, player, amount): p = Load()._loadPlayer(player.name) p['CREDITS']['BILLS'] += amount Save()._savePlayer(player.name, p) new = player.__class__.__init__(player, player.name) del player return new def _give_chips(self, player, amount): p = Load()._loadPlayer(player.name) p['CREDITS']['CHIPS'] += amount Save()._savePlayer(player.name, p) new = player.__class__.__init__(player, player.name) del player return new def _give_sword(self, player, stag): p = Load()._loadPlayer(player.name) if stag in p['WEAPONS']: raise "DatabaseError :: Sword already in WEAPONS" else: p['WEAPONS'].append(stag) Save()._savePlayer(player.name, p) new = player.__class__.__init__(player, player.name) del player return new def _give_exp(self, player, amount): p = Load()._loadPlayer(player.name) p['EXP'] += amount Save()._savePlayer(player.name, p) new = player.__class__.__init__(player, player.name) del player return new def _take_coins(self, player, amount): p = Load()._loadPlayer(player.name) p['CREDITS']['COINS'] -= amount Save()._savePlayer(player.name, p) new = player.__class__.__init__(player, player.name) del player return new def _take_bills(self, player, amount): p = Load()._loadPlayer(player.name) p['CREDITS']['BILLS'] -= amount Save()._savePlayer(player.name, p) new = player.__class__.__init__(player, player.name) del player return new def _take_chips(self, player, amount): p = Load()._loadPlayer(player.name) p['CREDITS']['CHIPS'] -= amount Save()._savePlayer(player.name, p) new = player.__class__.__init__(player, player.name) del player return new def _take_sword(self, player, stag): p = Load()._loadPlayer(player.name) if stag in p['WEAPONS']: p['WEAPONS'].remove(stag) else: raise "DatabaseError :: Sword doesn't exist" Save()._savePlayer(player.name, p) new = player.__class__.__init__(player, player.name) del player return new def _current_wep_change(self, player, stag): p = Load()._loadPlayer(player.name) if stag in p['WEAPONS']: if stag == p['CURRENT WEAPON']: raise "DatabaseError :: Sword already equiped" else: p['CURRENT WEAPON'] = stag Save()._savePlayer(player.name, p) else: raise "DatabaseError :: Player doesn't own sword" new = player.__class__.__init__(player, player.name) del player return new def _name_chang(self, player, change): raise DeprecatedError def _card_change(self, player, change): p = Load()._loadPlayer(player.name)
33.285714
63
0.573677
390
3,495
4.784615
0.125641
0.166131
0.100214
0.123794
0.792069
0.778671
0.760986
0.760986
0.760986
0.738478
0
0
0.308441
3,495
104
64
33.605769
0.772031
0.004006
0
0.651685
0
0
0.087085
0
0
0
0
0
0
1
0.134831
false
0
0.022472
0
0.280899
0
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
2eab010269f7a90848bcb4918a9d8cdd94de1433
94
py
Python
jirasync/__main__.py
rochacbruno/jirasync
19bd34fa86a0f5ef5e36663bda015274126b5c57
[ "MIT" ]
3
2019-06-25T14:20:27.000Z
2019-08-04T04:18:28.000Z
jirasync/__main__.py
rochacbruno/jirasync
19bd34fa86a0f5ef5e36663bda015274126b5c57
[ "MIT" ]
16
2019-07-26T21:39:05.000Z
2021-01-11T20:21:30.000Z
jirasync/__main__.py
rochacbruno/jirasync
19bd34fa86a0f5ef5e36663bda015274126b5c57
[ "MIT" ]
4
2019-05-02T23:05:11.000Z
2021-07-06T08:09:04.000Z
# coding: utf-8 from jirasync.cli import cli # this allows to run `python -m jirasync` cli()
15.666667
41
0.712766
16
94
4.1875
0.8125
0.328358
0
0
0
0
0
0
0
0
0
0.012987
0.180851
94
5
42
18.8
0.857143
0.56383
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
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
1
0
1
0
0
0
0
5
2ec4ea51a3e2e9728acd6ae1405d2b60356eefc3
6,055
py
Python
cosmpy/protos/cosmos/airdrop/v1beta1/query_pb2_grpc.py
daeMOn63/cosmpy
9b108fdbba805c174caf2af7f0be4ac06e65ac77
[ "Apache-2.0" ]
null
null
null
cosmpy/protos/cosmos/airdrop/v1beta1/query_pb2_grpc.py
daeMOn63/cosmpy
9b108fdbba805c174caf2af7f0be4ac06e65ac77
[ "Apache-2.0" ]
null
null
null
cosmpy/protos/cosmos/airdrop/v1beta1/query_pb2_grpc.py
daeMOn63/cosmpy
9b108fdbba805c174caf2af7f0be4ac06e65ac77
[ "Apache-2.0" ]
null
null
null
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc from cosmos.airdrop.v1beta1 import query_pb2 as cosmos_dot_airdrop_dot_v1beta1_dot_query__pb2 class QueryStub(object): """Query defines the gRPC querier service. """ def __init__(self, channel): """Constructor. Args: channel: A grpc.Channel. """ self.AllFunds = channel.unary_unary( '/cosmos.airdrop.v1beta1.Query/AllFunds', request_serializer=cosmos_dot_airdrop_dot_v1beta1_dot_query__pb2.QueryAllFundsRequest.SerializeToString, response_deserializer=cosmos_dot_airdrop_dot_v1beta1_dot_query__pb2.QueryAllFundsResponse.FromString, ) self.Fund = channel.unary_unary( '/cosmos.airdrop.v1beta1.Query/Fund', request_serializer=cosmos_dot_airdrop_dot_v1beta1_dot_query__pb2.QueryFundRequest.SerializeToString, response_deserializer=cosmos_dot_airdrop_dot_v1beta1_dot_query__pb2.QueryFundResponse.FromString, ) self.Params = channel.unary_unary( '/cosmos.airdrop.v1beta1.Query/Params', request_serializer=cosmos_dot_airdrop_dot_v1beta1_dot_query__pb2.QueryParamsRequest.SerializeToString, response_deserializer=cosmos_dot_airdrop_dot_v1beta1_dot_query__pb2.QueryParamsResponse.FromString, ) class QueryServicer(object): """Query defines the gRPC querier service. """ def AllFunds(self, request, context): """AllFunds queries all active airdrop funds """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') def Fund(self, request, context): """Fund queries a specific airdrop fund """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') def Params(self, request, context): """Params queries the current modules parameters """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') def add_QueryServicer_to_server(servicer, server): rpc_method_handlers = { 'AllFunds': grpc.unary_unary_rpc_method_handler( servicer.AllFunds, request_deserializer=cosmos_dot_airdrop_dot_v1beta1_dot_query__pb2.QueryAllFundsRequest.FromString, response_serializer=cosmos_dot_airdrop_dot_v1beta1_dot_query__pb2.QueryAllFundsResponse.SerializeToString, ), 'Fund': grpc.unary_unary_rpc_method_handler( servicer.Fund, request_deserializer=cosmos_dot_airdrop_dot_v1beta1_dot_query__pb2.QueryFundRequest.FromString, response_serializer=cosmos_dot_airdrop_dot_v1beta1_dot_query__pb2.QueryFundResponse.SerializeToString, ), 'Params': grpc.unary_unary_rpc_method_handler( servicer.Params, request_deserializer=cosmos_dot_airdrop_dot_v1beta1_dot_query__pb2.QueryParamsRequest.FromString, response_serializer=cosmos_dot_airdrop_dot_v1beta1_dot_query__pb2.QueryParamsResponse.SerializeToString, ), } generic_handler = grpc.method_handlers_generic_handler( 'cosmos.airdrop.v1beta1.Query', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) # This class is part of an EXPERIMENTAL API. class Query(object): """Query defines the gRPC querier service. """ @staticmethod def AllFunds(request, target, options=(), channel_credentials=None, call_credentials=None, insecure=False, compression=None, wait_for_ready=None, timeout=None, metadata=None): return grpc.experimental.unary_unary(request, target, '/cosmos.airdrop.v1beta1.Query/AllFunds', cosmos_dot_airdrop_dot_v1beta1_dot_query__pb2.QueryAllFundsRequest.SerializeToString, cosmos_dot_airdrop_dot_v1beta1_dot_query__pb2.QueryAllFundsResponse.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod def Fund(request, target, options=(), channel_credentials=None, call_credentials=None, insecure=False, compression=None, wait_for_ready=None, timeout=None, metadata=None): return grpc.experimental.unary_unary(request, target, '/cosmos.airdrop.v1beta1.Query/Fund', cosmos_dot_airdrop_dot_v1beta1_dot_query__pb2.QueryFundRequest.SerializeToString, cosmos_dot_airdrop_dot_v1beta1_dot_query__pb2.QueryFundResponse.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod def Params(request, target, options=(), channel_credentials=None, call_credentials=None, insecure=False, compression=None, wait_for_ready=None, timeout=None, metadata=None): return grpc.experimental.unary_unary(request, target, '/cosmos.airdrop.v1beta1.Query/Params', cosmos_dot_airdrop_dot_v1beta1_dot_query__pb2.QueryParamsRequest.SerializeToString, cosmos_dot_airdrop_dot_v1beta1_dot_query__pb2.QueryParamsResponse.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
43.561151
126
0.683898
603
6,055
6.482587
0.174129
0.040931
0.077769
0.092351
0.794577
0.785367
0.785367
0.713993
0.683039
0.654643
0
0.016196
0.245417
6,055
138
127
43.876812
0.839352
0.085384
0
0.470588
1
0
0.073113
0.044599
0
0
0
0
0
1
0.078431
false
0
0.019608
0.029412
0.156863
0
0
0
0
null
0
0
0
0
1
1
1
0
1
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
5
2c1335435a559f6de725c7ae333cffb6dc2aaf97
234
py
Python
testinvenio/records/minters.py
Alzpeta/testinvenio
210e4b6ce6b1edcb2ce9ded1bc683745e7eb421a
[ "MIT" ]
null
null
null
testinvenio/records/minters.py
Alzpeta/testinvenio
210e4b6ce6b1edcb2ce9ded1bc683745e7eb421a
[ "MIT" ]
null
null
null
testinvenio/records/minters.py
Alzpeta/testinvenio
210e4b6ce6b1edcb2ce9ded1bc683745e7eb421a
[ "MIT" ]
null
null
null
from invenio_pidstore.minters import recid_minter from invenio_oaiserver.minters import oaiid_minter def minter(record_uuid, data): rminter = recid_minter(record_uuid, data) oaiid_minter(record_uuid, data) return rminter
29.25
50
0.807692
32
234
5.625
0.46875
0.2
0.266667
0.333333
0
0
0
0
0
0
0
0
0.136752
234
7
51
33.428571
0.891089
0
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.333333
0
0.666667
0
0
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
0
0
1
0
1
0
0
5
2c1ab2a2e018cbacb3853d08cd450171a29308f2
73
py
Python
datacatalog/linkedstores/measurement/__init__.py
SD2E/python-datacatalog
51ab366639505fb6e8a14cd6b446de37080cd20d
[ "CNRI-Python" ]
null
null
null
datacatalog/linkedstores/measurement/__init__.py
SD2E/python-datacatalog
51ab366639505fb6e8a14cd6b446de37080cd20d
[ "CNRI-Python" ]
2
2019-07-25T15:39:04.000Z
2019-10-21T15:31:46.000Z
datacatalog/linkedstores/measurement/__init__.py
SD2E/python-datacatalog
51ab366639505fb6e8a14cd6b446de37080cd20d
[ "CNRI-Python" ]
1
2019-10-15T14:33:44.000Z
2019-10-15T14:33:44.000Z
from .store import MeasurementDocument, MeasurementStore, StoreInterface
36.5
72
0.876712
6
73
10.666667
1
0
0
0
0
0
0
0
0
0
0
0
0.082192
73
1
73
73
0.955224
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
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
1
0
1
0
0
0
0
5
2592775731e54c3343430c4e49b35cfbd4156a86
2,928
py
Python
tests/test_system.py
3Peso/mosk
24eccf2f2898f2508f32b52f55de30815475cddb
[ "CC0-1.0" ]
3
2021-05-22T11:14:10.000Z
2022-02-18T00:32:10.000Z
tests/test_system.py
3Peso/mosk
24eccf2f2898f2508f32b52f55de30815475cddb
[ "CC0-1.0" ]
1
2021-06-20T07:18:58.000Z
2021-09-19T12:24:03.000Z
tests/test_system.py
3Peso/mosk
24eccf2f2898f2508f32b52f55de30815475cddb
[ "CC0-1.0" ]
1
2021-06-09T07:43:03.000Z
2021-06-09T07:43:03.000Z
from unittest import TestCase class TestNVRAMCollectorSupportedSystem(TestCase): def test__supportedsystem(self): """ Should be "Darwin" :return: """ from artefact.localhost.system import NVRAMCollector collector = NVRAMCollector(parameters={}, parent={}) self.assertEqual("['Darwin']", str(collector.supported_platform)) class TestLocalTimeSupportedSystem(TestCase): def test__supportedsystem(self): """ Should be "Darwin" :return: """ from artefact.localhost.system import LocalTime collector = LocalTime(parameters={}, parent={}) self.assertEqual("['Darwin']", str(collector.supported_platform)) class TestDetectFusionDriveSupportedSystem(TestCase): def test__supportedsystem(self): """ Should be "Darwin" :return: """ from artefact.localhost.system import DetectFusionDrive collector = DetectFusionDrive(parameters={}, parent={}) self.assertEqual("['Darwin']", str(collector.supported_platform)) class TestDetectFileFaultSupportedSystem(TestCase): def test__supportedsystem(self): """ Should be "Darwin" :return: """ from artefact.localhost.system import DetectFileByName collector = DetectFileByName(parameters={}, parent={}) self.assertEqual("['Darwin']", str(collector.supported_platform)) class TestDetectFileByNameSupportedSystem(TestCase): def test__supportedsystem(self): """ Should be "Darwin" :return: """ from artefact.localhost.system import DetectFileByName collector = DetectFileByName(parameters={}, parent={}) self.assertEqual("['Darwin']", str(collector.supported_platform)) class TestInstalledApplicationsSupportedSystem(TestCase): def test__supportedsystem(self): """ Should be "Darwin" :return: """ from artefact.localhost.system import InstalledApplications collector = InstalledApplications(parameters={}, parent={}) self.assertEqual("['Darwin']", str(collector.supported_platform)) class TestFileSystemInformationSupportedSystem(TestCase): def test__supportedsystem(self): """ Should be "Darwin" :return: """ from artefact.localhost.system import FileSystemInformation collector = FileSystemInformation(parameters={}, parent={}) self.assertEqual("['Darwin']", str(collector.supported_platform)) class TestHardwareInformationSupportedSystem(TestCase): def test__supportedsystem(self): """ Should be "Darwin" :return: """ from artefact.localhost.system import HardwareInformation collector = HardwareInformation(parameters={}, parent={}) self.assertEqual("['Darwin']", str(collector.supported_platform))
31.148936
73
0.661202
228
2,928
8.385965
0.166667
0.046025
0.062762
0.125523
0.70136
0.70136
0.70136
0.70136
0.70136
0.666841
0
0
0.226776
2,928
94
74
31.148936
0.844523
0.076161
0
0.487805
0
0
0.03256
0
0
0
0
0
0.195122
1
0.195122
false
0
0.219512
0
0.609756
0
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
25bd23aa76c85e7f918ab9baf55da8301e07468a
7,583
py
Python
tests/polys/conftest.py
hussinhassan80/galois
5553d0f17d5f4dcf105f92028fcde8f6afd53b6d
[ "MIT" ]
null
null
null
tests/polys/conftest.py
hussinhassan80/galois
5553d0f17d5f4dcf105f92028fcde8f6afd53b6d
[ "MIT" ]
null
null
null
tests/polys/conftest.py
hussinhassan80/galois
5553d0f17d5f4dcf105f92028fcde8f6afd53b6d
[ "MIT" ]
null
null
null
""" A pytest conftest module that provides pytest fixtures for galois/polys/ tests. """ import os import pickle import pytest import numpy as np import galois from ..fields.conftest import field, field_folder ############################################################################### # Helper functions ############################################################################### def read_pickle(field_folder, filename): GF, folder = field_folder folder = os.path.join(folder, "..", "..", "..", "polys", "data", os.path.basename(folder)) # Convert from folder in fields/data/ to polys/data/ with open(os.path.join(folder, filename), "rb") as f: print(f"Loading {f}...") d = pickle.load(f) return GF, d ############################################################################### # Fixtures for polynomial arithmetic over finite fields ############################################################################### @pytest.fixture(scope="session") def poly_add(field_folder): GF, d = read_pickle(field_folder, "add.pkl") d["GF"] = GF d["X"] = [galois.Poly(p, field=GF) for p in d["X"]] d["Y"] = [galois.Poly(p, field=GF) for p in d["Y"]] d["Z"] = [galois.Poly(p, field=GF) for p in d["Z"]] return d @pytest.fixture(scope="session") def poly_subtract(field_folder): GF, d = read_pickle(field_folder, "subtract.pkl") d["GF"] = GF d["X"] = [galois.Poly(p, field=GF) for p in d["X"]] d["Y"] = [galois.Poly(p, field=GF) for p in d["Y"]] d["Z"] = [galois.Poly(p, field=GF) for p in d["Z"]] return d @pytest.fixture(scope="session") def poly_multiply(field_folder): GF, d = read_pickle(field_folder, "multiply.pkl") d["GF"] = GF d["X"] = [galois.Poly(p, field=GF) for p in d["X"]] d["Y"] = [galois.Poly(p, field=GF) for p in d["Y"]] d["Z"] = [galois.Poly(p, field=GF) for p in d["Z"]] return d @pytest.fixture(scope="session") def poly_scalar_multiply(field_folder): GF, d = read_pickle(field_folder, "scalar_multiply.pkl") d["GF"] = GF d["X"] = [galois.Poly(p, field=GF) for p in d["X"]] d["Y"] = d["Y"] d["Z"] = [galois.Poly(p, field=GF) for p in d["Z"]] return d @pytest.fixture(scope="session") def poly_divmod(field_folder): GF, d = read_pickle(field_folder, "divmod.pkl") d["GF"] = GF d["X"] = [galois.Poly(p, field=GF) for p in d["X"]] d["Y"] = [galois.Poly(p, field=GF) for p in d["Y"]] d["Q"] = [galois.Poly(p, field=GF) for p in d["Q"]] d["R"] = [galois.Poly(p, field=GF) for p in d["R"]] return d @pytest.fixture(scope="session") def poly_power(field_folder): GF, d = read_pickle(field_folder, "power.pkl") d["GF"] = GF d["X"] = [galois.Poly(p, field=GF) for p in d["X"]] d["Y"] = d["Y"] d["Z"] = [[galois.Poly(p, field=GF) for p in l] for l in d["Z"]] return d @pytest.fixture(scope="session") def poly_evaluate(field_folder): GF, d = read_pickle(field_folder, "evaluate.pkl") d["GF"] = GF d["X"] = [galois.Poly(p, field=GF) for p in d["X"]] d["Y"] = GF(d["Y"]) d["Z"] = GF(d["Z"]) return d @pytest.fixture(scope="session") def poly_evaluate_matrix(field_folder): GF, d = read_pickle(field_folder, "evaluate_matrix.pkl") d["GF"] = GF d["X"] = [galois.Poly(p, field=GF) for p in d["X"]] d["Y"] = [GF(y) for y in d["Y"]] d["Z"] = [GF(z) for z in d["Z"]] return d ############################################################################### # Fixtures for polynomial arithmetic methods ############################################################################### @pytest.fixture(scope="session") def poly_reverse(field_folder): GF, d = read_pickle(field_folder, "reverse.pkl") d["GF"] = GF d["X"] = [galois.Poly(p, field=GF) for p in d["X"]] d["Z"] = [galois.Poly(p, field=GF) for p in d["Z"]] return d @pytest.fixture(scope="session") def poly_roots(field_folder): GF, d = read_pickle(field_folder, "roots.pkl") d["GF"] = GF d["X"] = [galois.Poly(p, field=GF) for p in d["X"]] d["R"] = [GF(r) for r in d["R"]] d["M"] = [np.array(m) for m in d["M"]] return d @pytest.fixture(scope="session") def poly_derivative(field_folder): GF, d = read_pickle(field_folder, "derivative.pkl") d["GF"] = GF d["X"] = [galois.Poly(p, field=GF) for p in d["X"]] d["Y"] = d["Y"] d["Z"] = [galois.Poly(p, field=GF) for p in d["Z"]] return d ############################################################################### # Fixtures for polynomial arithmetic functions ############################################################################### @pytest.fixture(scope="session") def poly_egcd(field_folder): GF, d = read_pickle(field_folder, "egcd.pkl") d["GF"] = GF d["X"] = [galois.Poly(p, field=GF) for p in d["X"]] d["Y"] = [galois.Poly(p, field=GF) for p in d["Y"]] d["D"] = [galois.Poly(p, field=GF) for p in d["D"]] d["S"] = [galois.Poly(p, field=GF) for p in d["S"]] d["T"] = [galois.Poly(p, field=GF) for p in d["T"]] return d @pytest.fixture(scope="session") def poly_lcm(field_folder): GF, d = read_pickle(field_folder, "lcm.pkl") d["GF"] = GF d["X"] = [[galois.Poly(p, field=GF) for p in X] for X in d["X"]] d["Z"] = [galois.Poly(p, field=GF) for p in d["Z"]] return d @pytest.fixture(scope="session") def poly_prod(field_folder): GF, d = read_pickle(field_folder, "prod.pkl") d["GF"] = GF d["X"] = [[galois.Poly(p, field=GF) for p in X] for X in d["X"]] d["Z"] = [galois.Poly(p, field=GF) for p in d["Z"]] return d @pytest.fixture(scope="session") def poly_crt(field_folder): GF, d = read_pickle(field_folder, "crt.pkl") d["GF"] = GF d["X"] = [[galois.Poly(p, field=GF) for p in X] for X in d["X"]] d["Y"] = [[galois.Poly(p, field=GF) for p in Y] for Y in d["Y"]] d["Z"] = [galois.Poly(p, field=GF) if p is not None else None for p in d["Z"]] return d @pytest.fixture(scope="session") def poly_modular_power(field_folder): GF, d = read_pickle(field_folder, "modular_power.pkl") d["GF"] = GF d["X"] = [galois.Poly(p, field=GF) for p in d["X"]] d["E"] = d["E"] d["M"] = [galois.Poly(p, field=GF) for p in d["M"]] d["Z"] = [galois.Poly(p, field=GF) for p in d["Z"]] return d ############################################################################### # Fixtures for special polynomials ############################################################################### @pytest.fixture(scope="session") def poly_is_monic(field_folder): GF, d = read_pickle(field_folder, "is_monic.pkl") d["GF"] = GF d["X"] = [galois.Poly(p, field=GF) for p in d["X"]] d["Z"] = d["Z"] return d @pytest.fixture(scope="session") def poly_is_irreducible(field_folder): GF, d = read_pickle(field_folder, "is_irreducible.pkl") d["GF"] = GF d["IS"] = [galois.Poly(p, field=GF) for p in d["IS"]] d["IS_NOT"] = [galois.Poly(p, field=GF) for p in d["IS_NOT"]] return d @pytest.fixture(scope="session") def poly_is_primitive(field_folder): GF, d = read_pickle(field_folder, "is_primitive.pkl") d["GF"] = GF d["IS"] = [galois.Poly(p, field=GF) for p in d["IS"]] d["IS_NOT"] = [galois.Poly(p, field=GF) for p in d["IS_NOT"]] return d @pytest.fixture(scope="session") def poly_is_square_free(field_folder): GF, d = read_pickle(field_folder, "is_square_free.pkl") d["GF"] = GF d["X"] = [galois.Poly(p, field=GF) for p in d["X"]] d["Z"] = d["Z"] return d
31.861345
148
0.531979
1,203
7,583
3.266833
0.077307
0.037405
0.125954
0.183206
0.812723
0.802545
0.778117
0.769466
0.646565
0.490331
0
0
0.178689
7,583
237
149
31.995781
0.631021
0.042595
0
0.594118
0
0
0.091993
0
0
0
0
0
0
1
0.123529
false
0
0.035294
0
0.282353
0.005882
0
0
0
null
0
0
1
1
1
1
1
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
5
25e747439c8b6bd854fd3bd246a73644a7c443fc
330
py
Python
codewars/8kyu/dinamuh/RemoveFirstAndLastCharacter/test.py
dinamuh/Training_one
d18e8fb12608ce1753162c20252ca928c4df97ab
[ "MIT" ]
null
null
null
codewars/8kyu/dinamuh/RemoveFirstAndLastCharacter/test.py
dinamuh/Training_one
d18e8fb12608ce1753162c20252ca928c4df97ab
[ "MIT" ]
2
2019-01-22T10:53:42.000Z
2019-01-31T08:02:48.000Z
codewars/8kyu/dinamuh/RemoveFirstAndLastCharacter/test.py
dinamuh/Training_one
d18e8fb12608ce1753162c20252ca928c4df97ab
[ "MIT" ]
13
2019-01-22T10:37:42.000Z
2019-01-25T13:30:43.000Z
from main import remove_char def test_remove_char(benchmark): assert benchmark(remove_char, 'eloquent') == 'loquen' assert benchmark(remove_char, 'country') == 'ountr' assert benchmark(remove_char, 'person') == 'erso' assert benchmark(remove_char, 'place') == 'lac' assert benchmark(remove_char, 'ok') == ''
33
57
0.693939
39
330
5.666667
0.461538
0.316742
0.475113
0.565611
0
0
0
0
0
0
0
0
0.160606
330
9
58
36.666667
0.797834
0
0
0
0
0
0.139394
0
0
0
0
0
0.714286
1
0.142857
false
0
0.142857
0
0.285714
0
0
0
0
null
1
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
1
0
0
0
0
0
0
0
0
0
5
25f5d4c11241e3926f90b58eeb58b5022a44db7c
49
py
Python
transformnd/transforms/__init__.py
clbarnes/transformnd
168250f9208635b2b9074ca57f42682afc767796
[ "MIT" ]
null
null
null
transformnd/transforms/__init__.py
clbarnes/transformnd
168250f9208635b2b9074ca57f42682afc767796
[ "MIT" ]
null
null
null
transformnd/transforms/__init__.py
clbarnes/transformnd
168250f9208635b2b9074ca57f42682afc767796
[ "MIT" ]
null
null
null
"""Implementations of some common transforms."""
24.5
48
0.755102
5
49
7.4
1
0
0
0
0
0
0
0
0
0
0
0
0.102041
49
1
49
49
0.840909
0.857143
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
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
d32209d7af8dfd91bb4d41509b51354dac114184
163
py
Python
src/wai/annotations/domain/image/__init__.py
waikato-ufdl/wai-annotations-core
bac3429e9488efb456972c74f9d462f951c4af3d
[ "Apache-2.0" ]
null
null
null
src/wai/annotations/domain/image/__init__.py
waikato-ufdl/wai-annotations-core
bac3429e9488efb456972c74f9d462f951c4af3d
[ "Apache-2.0" ]
3
2021-06-30T23:42:47.000Z
2022-03-01T03:45:07.000Z
src/wai/annotations/domain/image/__init__.py
waikato-ufdl/wai-annotations-core
bac3429e9488efb456972c74f9d462f951c4af3d
[ "Apache-2.0" ]
null
null
null
""" Package for domains that deal with still images. """ from ._ImageFormat import ImageFormat from ._Image import Image from ._ImageInstance import ImageInstance
23.285714
48
0.803681
20
163
6.4
0.65
0
0
0
0
0
0
0
0
0
0
0
0.134969
163
6
49
27.166667
0.907801
0.294479
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
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
1
0
1
0
0
5
d348709cb41660cd7a9e753dd9903b225b924231
50
py
Python
graphgallery/nn/layers/pytorch/dropout/__init__.py
EdisonLeeeee/GraphGallery
4eec9c5136bda14809bd22584b26cc346cdb633b
[ "MIT" ]
300
2020-08-09T04:27:41.000Z
2022-03-30T07:43:41.000Z
graphgallery/nn/layers/pytorch/dropout/__init__.py
EdisonLeeeee/GraphGallery
4eec9c5136bda14809bd22584b26cc346cdb633b
[ "MIT" ]
5
2020-11-05T06:16:50.000Z
2021-12-11T05:05:22.000Z
graphgallery/nn/layers/pytorch/dropout/__init__.py
EdisonLeeeee/GraphGallery
4eec9c5136bda14809bd22584b26cc346cdb633b
[ "MIT" ]
51
2020-09-23T15:37:12.000Z
2022-03-05T01:28:56.000Z
from .dropout import SparseDropout, MixedDropout
25
49
0.84
5
50
8.4
1
0
0
0
0
0
0
0
0
0
0
0
0.12
50
1
50
50
0.954545
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
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
5
d36217c2833b5aa0075a8c376d74d7e1f96b88d3
279
py
Python
src/glow/invertible_layers/__init__.py
priyathamkat/unpaired-image-denoising
de059cd0ad6bda7d615dadcdb4f7408b165cdc8e
[ "MIT" ]
2
2021-04-14T15:51:04.000Z
2021-06-05T13:41:35.000Z
src/glow/invertible_layers/__init__.py
priyathamkat/unpaired-image-denoising
de059cd0ad6bda7d615dadcdb4f7408b165cdc8e
[ "MIT" ]
null
null
null
src/glow/invertible_layers/__init__.py
priyathamkat/unpaired-image-denoising
de059cd0ad6bda7d615dadcdb4f7408b165cdc8e
[ "MIT" ]
null
null
null
from .invertible import InvertibleModule, InvertibleSequential from .actnorm import Actnorm from .additive import Additive from .affine import Affine from .conv1x1 import Conv1x1 __all__ = ["InvertibleModule", "InvertibleSequential", "Actnorm", "Additive", "Affine", "Conv1x1"]
34.875
98
0.799283
28
279
7.821429
0.357143
0.328767
0
0
0
0
0
0
0
0
0
0.024096
0.107527
279
7
99
39.857143
0.855422
0
0
0
0
0
0.229391
0
0
0
0
0
0
1
0
false
0
0.833333
0
0.833333
0
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
1
0
1
0
0
5
d377b79758ec9a88590ce131a8ae20351d5ac38b
75
py
Python
core/bot/__init__.py
HoussemCharf/DiscordBot
2ec870a558af6665933fc213dc07275bdf44386c
[ "MIT" ]
1
2019-06-04T11:00:20.000Z
2019-06-04T11:00:20.000Z
core/bot/__init__.py
HoussemCharf/DiscordBot
2ec870a558af6665933fc213dc07275bdf44386c
[ "MIT" ]
null
null
null
core/bot/__init__.py
HoussemCharf/DiscordBot
2ec870a558af6665933fc213dc07275bdf44386c
[ "MIT" ]
null
null
null
from .Bot import Bot from .cache import Cache # features to implement here!
25
29
0.786667
12
75
4.916667
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.16
75
3
29
25
0.936508
0.36
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
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
1
0
1
0
0
5
d392988b3ee9ed11f5ed65ce8a6d871bd1614d3d
110
py
Python
crprop/__init__.py
zdgriffith/cr-geomag-prop
def171c8793a58aff7869dbc37e9b1506129ca61
[ "MIT" ]
null
null
null
crprop/__init__.py
zdgriffith/cr-geomag-prop
def171c8793a58aff7869dbc37e9b1506129ca61
[ "MIT" ]
null
null
null
crprop/__init__.py
zdgriffith/cr-geomag-prop
def171c8793a58aff7869dbc37e9b1506129ca61
[ "MIT" ]
null
null
null
# __init__.py from .__version__ import __version__ from .particle_utils import * from .coord_utils import *
15.714286
36
0.790909
14
110
5.214286
0.571429
0.30137
0
0
0
0
0
0
0
0
0
0
0.145455
110
6
37
18.333333
0.776596
0.1
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
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
1
0
1
0
0
0
0
5
d39cccdb92bb11ca15bc2b652130550d24478938
3,713
py
Python
flow_solver_test.py
alexrkoch/three-point-flow
69ca77e4aacf020b0833dfc01f66638464e878f1
[ "MIT" ]
null
null
null
flow_solver_test.py
alexrkoch/three-point-flow
69ca77e4aacf020b0833dfc01f66638464e878f1
[ "MIT" ]
null
null
null
flow_solver_test.py
alexrkoch/three-point-flow
69ca77e4aacf020b0833dfc01f66638464e878f1
[ "MIT" ]
null
null
null
import pytest import pandas as pd from geopy import distance, point import flow_solver as fs def test_define_head_rank(): df = pd.DataFrame({"lat":[35.765909,35.765341,35.765707], "lon":[-78.724288,-78.723918,-78.72343], "head":[387.5,375.2,360]}) df = fs.__define_head_rank(df) assert df.loc[1.0].iloc[2] >= df.loc[2.0].iloc[2] >= df.loc[3.0].iloc[2] def test_create_geopy_points(): df = pd.DataFrame({"lat":[35.765909,35.765341,35.765707], "lon":[-78.724288,-78.723918,-78.72343], "head":[387.5,375.2,360], "head_rank":[1.0,2.0,3.0]}) df = df.set_index('head_rank') low_point, mid_point, high_point = fs.__create_geopy_points(df) assert low_point.latitude == 35.765707 def test_create_head_variables(): df = pd.DataFrame({"lat":[35.765909,35.765341,35.765707], "lon":[-78.724288,-78.723918,-78.72343], "head":[387.5,375.2,360], "head_rank":[1.0,2.0,3.0]}) df = df.set_index('head_rank') low_head, mid_head, high_head = fs.__create_head_variables(df) assert low_head == 360 def test_length_low_to_high(): df = pd.DataFrame({"lat":[35.765909,35.765341,35.765707], "lon":[-78.724288,-78.723918,-78.72343], "head":[387.5,375.2,360], "head_rank":[1.0,2.0,3.0]}) df = df.set_index('head_rank') low_point, mid_point, high_point = fs.__create_geopy_points(df) low_head, mid_head, high_head = fs.__create_head_variables(df) length = fs.__length_low_to_high(low_point, high_point) assert length == 264.9634085161976 def test_get_bearing(): df = pd.DataFrame({"lat":[35.765909,35.765341,35.765707], "lon":[-78.724288,-78.723918,-78.72343], "head":[387.5,375.2,360], "head_rank":[1.0,2.0,3.0]}) df = df.set_index('head_rank') low_point, mid_point, high_point = fs.__create_geopy_points(df) low_head, mid_head, high_head = fs.__create_head_variables(df) length = fs.__length_low_to_high(low_point, high_point) bearing = fs.__get_bearing(low_point, high_point) assert round(bearing) == 286 def test_equipotential_midpoint(): df = pd.DataFrame({"lat":[35.765909,35.765341,35.765707], "lon":[-78.724288,-78.723918,-78.72343], "head":[387.5,375.2,360], "head_rank":[1.0,2.0,3.0]}) df = df.set_index('head_rank') low_point, mid_point, high_point = fs.__create_geopy_points(df) low_head, mid_head, high_head = fs.__create_head_variables(df) length = fs.__length_low_to_high(low_point, high_point) bearing = fs.__get_bearing(low_point, high_point) equipotential_point = fs.__equipotential_midpoint(low_point, low_head, mid_head, high_head,length, bearing) assert round(equipotential_point.latitude, 6) == 35.765818 assert round(equipotential_point.longitude, 6) == -78.723905 def test_get_flow_azimuth(): df = pd.DataFrame({"lat":[35.765909,35.765341,35.765707], "lon":[-78.724288,-78.723918,-78.72343], "head":[387.5,375.2,360], "head_rank":[1.0,2.0,3.0]}) df = df.set_index('head_rank') low_point, mid_point, high_point = fs.__create_geopy_points(df) low_head, mid_head, high_head = fs.__create_head_variables(df) length = fs.__length_low_to_high(low_point, high_point) bearing = fs.__get_bearing(low_point, high_point) equipotential_point = fs.__equipotential_midpoint(low_point, low_head, mid_head, high_head, length, bearing) flow_azimuth = fs.__get_flow_azimuth(mid_point, equipotential_point, low_point) assert flow_azimuth == 91
45.280488
110
0.649609
574
3,713
3.879791
0.11324
0.057476
0.075438
0.050292
0.761563
0.746295
0.746295
0.746295
0.746295
0.746295
0
0.167335
0.193644
3,713
81
111
45.839506
0.576486
0
0
0.69863
0
0
0.047953
0
0
0
0
0
0.109589
1
0.09589
false
0
0.054795
0
0.150685
0
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
6cbbe129190e254f5d7370b8a8c2a35dc82d07e7
143
py
Python
mac/pyobjc-framework-Quartz/Examples/QuartzComposer/Chart/main.py
albertz/music-player
d23586f5bf657cbaea8147223be7814d117ae73d
[ "BSD-2-Clause" ]
132
2015-01-01T10:02:42.000Z
2022-03-09T12:51:01.000Z
mac/pyobjc-framework-Quartz/Examples/QuartzComposer/Chart/main.py
mba811/music-player
7998986b34cfda2244ef622adefb839331b81a81
[ "BSD-2-Clause" ]
6
2015-01-06T08:23:19.000Z
2019-03-14T12:22:06.000Z
mac/pyobjc-framework-Quartz/Examples/QuartzComposer/Chart/main.py
mba811/music-player
7998986b34cfda2244ef622adefb839331b81a81
[ "BSD-2-Clause" ]
27
2015-02-23T11:51:43.000Z
2022-03-07T02:34:18.000Z
from PyObjCTools import NibClassBuilder, AppHelper NibClassBuilder.extractClasses("MainMenu") import AppController AppHelper.runEventLoop()
17.875
50
0.853147
12
143
10.166667
0.75
0
0
0
0
0
0
0
0
0
0
0
0.083916
143
7
51
20.428571
0.931298
0
0
0
0
0
0.055944
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
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
1
0
1
0
0
0
0
5
6cf3ec6133443589051421bf700f85f669a31b22
110
py
Python
pawn/pawnshop_management/pawn_methods.py
EricMendoza412/pawn
3592217364470e1ceb80482ecdfa081fb3c9e378
[ "MIT" ]
null
null
null
pawn/pawnshop_management/pawn_methods.py
EricMendoza412/pawn
3592217364470e1ceb80482ecdfa081fb3c9e378
[ "MIT" ]
null
null
null
pawn/pawnshop_management/pawn_methods.py
EricMendoza412/pawn
3592217364470e1ceb80482ecdfa081fb3c9e378
[ "MIT" ]
null
null
null
import frappe @frappe.whitelist(allow_guest=True) def test_method(name): return "hello {0}".format(name)
22
35
0.745455
16
110
5
0.875
0
0
0
0
0
0
0
0
0
0
0.010309
0.118182
110
5
36
22
0.814433
0
0
0
0
0
0.081081
0
0
0
0
0
0
1
0.25
false
0
0.25
0.25
0.75
0
1
0
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
1
0
0
0
1
1
0
0
5
6cffe835fd66839e3a0b21ec2db497545665154f
80
py
Python
pvlibs/general/__init__.py
bfw930/pvlibs
94bed6cbca1b349eac29136d6703959aeb61bf29
[ "MIT" ]
null
null
null
pvlibs/general/__init__.py
bfw930/pvlibs
94bed6cbca1b349eac29136d6703959aeb61bf29
[ "MIT" ]
5
2020-03-24T17:26:11.000Z
2020-12-15T04:39:42.000Z
pvlibs/general/__init__.py
bfw930/pvlibs
94bed6cbca1b349eac29136d6703959aeb61bf29
[ "MIT" ]
null
null
null
''' Imports ''' # general helper functions from .core import str_parse_params
13.333333
34
0.7375
10
80
5.7
1
0
0
0
0
0
0
0
0
0
0
0
0.1625
80
5
35
16
0.850746
0.425
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
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
1
0
1
0
0
5
9f0c8235abd469496beed5adab9cfe13a21434cd
114
py
Python
sqlhild/postgres/function.py
willemt/sqlhild
13815095cc38b0b72479891640a8b385d8db46d5
[ "BSD-3-Clause" ]
null
null
null
sqlhild/postgres/function.py
willemt/sqlhild
13815095cc38b0b72479891640a8b385d8db46d5
[ "BSD-3-Clause" ]
null
null
null
sqlhild/postgres/function.py
willemt/sqlhild
13815095cc38b0b72479891640a8b385d8db46d5
[ "BSD-3-Clause" ]
null
null
null
import sqlhild class current_schema(sqlhild.function.Function): def __call__(self): return 'PUBLIC'
16.285714
48
0.719298
13
114
5.923077
0.846154
0
0
0
0
0
0
0
0
0
0
0
0.192982
114
6
49
19
0.836957
0
0
0
0
0
0.052632
0
0
0
0
0
0
1
0.25
false
0
0.25
0.25
1
0
1
0
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
1
0
0
0
1
1
0
0
5
9f30f27272bd4eaedc3d1a744b1b4761e6893a37
208
py
Python
kolibri/core/webpack/settings.py
arceduardvincent/kolibri
26073dda2569bb38bfe1e08ba486e96f650d10ce
[ "MIT" ]
null
null
null
kolibri/core/webpack/settings.py
arceduardvincent/kolibri
26073dda2569bb38bfe1e08ba486e96f650d10ce
[ "MIT" ]
3
2016-05-24T21:12:01.000Z
2017-03-09T22:43:08.000Z
kolibri/core/webpack/settings.py
DXCanas/kolibri
4571fc5e5482a2dc9cd8f93dd45222a69d8a68b4
[ "MIT" ]
1
2021-07-26T11:38:29.000Z
2021-07-26T11:38:29.000Z
from __future__ import absolute_import from __future__ import print_function from __future__ import unicode_literals import re IGNORE_PATTERNS = (re.compile(I) for I in [r'.+\.hot-update.js', r'.+\.map'])
23.111111
77
0.769231
31
208
4.645161
0.645161
0.208333
0.333333
0
0
0
0
0
0
0
0
0
0.120192
208
8
78
26
0.786885
0
0
0
0
0
0.115385
0
0
0
0
0
0
1
0
false
0
0.8
0
0.8
0.2
0
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
0
0
5
9f70635131e788cd753d2b593e3d72260790768e
216
py
Python
models/cars.py
protosam/py-flask-ponyorm-template
de04b684039b531563d80befa43170c113f07ad6
[ "MIT" ]
null
null
null
models/cars.py
protosam/py-flask-ponyorm-template
de04b684039b531563d80befa43170c113f07ad6
[ "MIT" ]
null
null
null
models/cars.py
protosam/py-flask-ponyorm-template
de04b684039b531563d80befa43170c113f07ad6
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from .shared.base import db from pony import orm from .users import User class Car(db.Entity): make = orm.Required(str) model = orm.Required(str) owner = orm.Required(User)
21.6
32
0.680556
33
216
4.454545
0.636364
0.22449
0.190476
0
0
0
0
0
0
0
0
0.005848
0.208333
216
9
33
24
0.853801
0.097222
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.428571
0
1
0
0
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
0
0
5
9f71fa1715bbe1d13b64790f3f80a22a3780e812
749
py
Python
openapi_client/test/test_submission.py
osuka/dognews-scraper
12373064061157083a48ced8e2cabf9d1ace30a5
[ "MIT" ]
1
2019-11-15T13:19:36.000Z
2019-11-15T13:19:36.000Z
openapi_client/test/test_submission.py
osuka/news-extractor
12373064061157083a48ced8e2cabf9d1ace30a5
[ "MIT" ]
null
null
null
openapi_client/test/test_submission.py
osuka/news-extractor
12373064061157083a48ced8e2cabf9d1ace30a5
[ "MIT" ]
null
null
null
""" Dognews Server API Dognews Server client API # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech """ import sys import unittest import openapi_client from openapi_client.model.user import User globals()['User'] = User from openapi_client.model.submission import Submission class TestSubmission(unittest.TestCase): """Submission unit test stubs""" def setUp(self): pass def tearDown(self): pass def testSubmission(self): """Test Submission""" # FIXME: construct object with mandatory attributes with example values # model = Submission() # noqa: E501 pass if __name__ == '__main__': unittest.main()
19.710526
79
0.672897
88
749
5.602273
0.545455
0.079108
0.068966
0.089249
0
0
0
0
0
0
0
0.015707
0.23498
749
37
80
20.243243
0.844677
0.395194
0
0.2
1
0
0.028777
0
0
0
0
0.027027
0
1
0.2
false
0.2
0.333333
0
0.6
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
1
0
0
0
0
1
1
0
1
0
0
5
9fa7239826a1b7a5622d89d42651a96bfb19d609
113
py
Python
tracardi/process_engine/action/v1/traits/condition_set/model/config.py
bytepl/tracardi
e8fa4684fa6bd3d05165fe48aa925fc6c1e74923
[ "MIT" ]
153
2021-11-02T00:35:41.000Z
2022-03-25T16:37:44.000Z
tracardi/process_engine/action/v1/traits/condition_set/model/config.py
bytepl/tracardi
e8fa4684fa6bd3d05165fe48aa925fc6c1e74923
[ "MIT" ]
243
2021-10-17T17:00:22.000Z
2022-03-28T10:13:34.000Z
tracardi/process_engine/action/v1/traits/condition_set/model/config.py
bytepl/tracardi
e8fa4684fa6bd3d05165fe48aa925fc6c1e74923
[ "MIT" ]
14
2021-10-17T11:39:04.000Z
2022-03-14T14:44:02.000Z
from pydantic import BaseModel from typing import Dict class Config(BaseModel): conditions: Dict[str, str]
16.142857
30
0.769912
15
113
5.8
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.168142
113
6
31
18.833333
0.925532
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
1
0
1
0
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
1
0
1
0
0
5
9fa968b5a9afd840b0e32c3b45e66775c9158afa
61,123
py
Python
fdi/migrations/0019_auto_20171016_1038.py
uktrade/export-wins-data
46caa444812e89abe504bec8c15aa7f7ba1a247e
[ "MIT" ]
5
2016-09-12T12:52:45.000Z
2020-03-24T14:43:13.000Z
fdi/migrations/0019_auto_20171016_1038.py
uktrade/export-wins-data
46caa444812e89abe504bec8c15aa7f7ba1a247e
[ "MIT" ]
435
2016-10-18T12:51:39.000Z
2021-06-09T17:22:08.000Z
fdi/migrations/0019_auto_20171016_1038.py
uktrade/export-wins-data
46caa444812e89abe504bec8c15aa7f7ba1a247e
[ "MIT" ]
2
2016-12-06T10:37:21.000Z
2017-02-22T17:27:43.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.3 on 2017-10-16 10:38 from __future__ import unicode_literals from django_countries import Countries as DjCountries from django.db import migrations from fdi.utils import datahub_country_iso_code dh_sectors = [ {'id': 'af959812-6095-e211-a939-e4115bead28a', 'name': 'Advanced Engineering', 'disabled_on': None}, {'id': '9538cecc-5f95-e211-a939-e4115bead28a', 'name': 'Aerospace', 'disabled_on': None}, {'id': 'af22c9d2-5f95-e211-a939-e4115bead28a', 'name': 'Aerospace : Aircraft Design', 'disabled_on': None}, {'id': 'e9e181d2-f6a0-e211-b972-e4115bead28a', 'name': 'Aerospace : Component Manufacturing', 'disabled_on': None}, {'id': 'b122c9d2-5f95-e211-a939-e4115bead28a', 'name': 'Aerospace : Component Manufacturing : Engines', 'disabled_on': None}, {'id': 'e74171b4-efe9-e511-8ffa-e4115bead28a', 'name': 'Aerospace : Component Manufacturing : test widgerts', 'disabled_on': None}, {'id': 'b722c9d2-5f95-e211-a939-e4115bead28a', 'name': 'Aerospace : Maintenance', 'disabled_on': None}, {'id': 'b906a205-f5a0-e211-b972-e4115bead28a', 'name': 'Aerospace : Manufacturing and Assembly', 'disabled_on': None}, {'id': 'b422c9d2-5f95-e211-a939-e4115bead28a', 'name': 'Aerospace : Manufacturing and Assembly : Aircraft', 'disabled_on': None}, {'id': 'b522c9d2-5f95-e211-a939-e4115bead28a', 'name': 'Aerospace : Manufacturing and Assembly : Helicopters', 'disabled_on': None}, {'id': 'b622c9d2-5f95-e211-a939-e4115bead28a', 'name': 'Aerospace : Manufacturing and Assembly : Space Technology', 'disabled_on': None}, {'id': 'b322c9d2-5f95-e211-a939-e4115bead28a', 'name': 'Aerospace : Manufacturing and Assembly : UAVs', 'disabled_on': None}, {'id': '9638cecc-5f95-e211-a939-e4115bead28a', 'name': 'Agriculture, Horticulture and Fisheries', 'disabled_on': None}, {'id': '9738cecc-5f95-e211-a939-e4115bead28a', 'name': 'Airports', 'disabled_on': None}, {'id': '9838cecc-5f95-e211-a939-e4115bead28a', 'name': 'Automotive', 'disabled_on': None}, {'id': 'b1ee00d9-5f95-e211-a939-e4115bead28a', 'name': 'Automotive : Automotive Maintenance', 'disabled_on': None}, {'id': 'b0ee00d9-5f95-e211-a939-e4115bead28a', 'name': 'Automotive : Automotive Retail', 'disabled_on': None}, {'id': 'b022c9d2-5f95-e211-a939-e4115bead28a', 'name': 'Automotive : Component Manufacturing', 'disabled_on': None}, {'id': 'a4ee00d9-5f95-e211-a939-e4115bead28a', 'name': 'Automotive : Component Manufacturing : Bodies and Coachwork', 'disabled_on': None}, {'id': 'bb22c9d2-5f95-e211-a939-e4115bead28a', 'name': 'Automotive : Component Manufacturing : Electronic Components', 'disabled_on': None}, {'id': 'ba22c9d2-5f95-e211-a939-e4115bead28a', 'name': 'Automotive : Component Manufacturing : Engines and Transmission', 'disabled_on': None}, {'id': 'a5ee00d9-5f95-e211-a939-e4115bead28a', 'name': 'Automotive : Component Manufacturing : Tyres', 'disabled_on': None}, {'id': 'b822c9d2-5f95-e211-a939-e4115bead28a', 'name': 'Automotive : Design Engineering', 'disabled_on': None}, {'id': 'b222c9d2-5f95-e211-a939-e4115bead28a', 'name': 'Automotive : Manufacturing and Assembly', 'disabled_on': None}, {'id': 'afee00d9-5f95-e211-a939-e4115bead28a', 'name': 'Automotive : Manufacturing and Assembly : Agricultural Machinery', 'disabled_on': None}, {'id': 'adee00d9-5f95-e211-a939-e4115bead28a', 'name': 'Automotive : Manufacturing and Assembly : Bicycles', 'disabled_on': None}, {'id': 'a9ee00d9-5f95-e211-a939-e4115bead28a', 'name': 'Automotive : Manufacturing and Assembly : Caravans', 'disabled_on': None}, {'id': 'a6ee00d9-5f95-e211-a939-e4115bead28a', 'name': 'Automotive : Manufacturing and Assembly : Cars', 'disabled_on': None}, {'id': 'abee00d9-5f95-e211-a939-e4115bead28a', 'name': 'Automotive : Manufacturing and Assembly : Containers', 'disabled_on': None}, {'id': 'aeee00d9-5f95-e211-a939-e4115bead28a', 'name': 'Automotive : Manufacturing and Assembly : Invalid Carriages', 'disabled_on': None}, {'id': 'a8ee00d9-5f95-e211-a939-e4115bead28a', 'name': 'Automotive : Manufacturing and Assembly : Lorries', 'disabled_on': None}, {'id': 'acee00d9-5f95-e211-a939-e4115bead28a', 'name': 'Automotive : Manufacturing and Assembly : Motorcycles', 'disabled_on': None}, {'id': 'aaee00d9-5f95-e211-a939-e4115bead28a', 'name': 'Automotive : Manufacturing and Assembly : Trailers', 'disabled_on': None}, {'id': 'a7ee00d9-5f95-e211-a939-e4115bead28a', 'name': 'Automotive : Manufacturing and Assembly : Vans', 'disabled_on': None}, {'id': 'b922c9d2-5f95-e211-a939-e4115bead28a', 'name': 'Automotive : Motorsport', 'disabled_on': None}, {'id': '9938cecc-5f95-e211-a939-e4115bead28a', 'name': 'Biotechnology and Pharmaceuticals', 'disabled_on': None}, {'id': '6ef7ffde-5f95-e211-a939-e4115bead28a', 'name': 'Biotechnology and Pharmaceuticals : Bio and Pharma Marketing and Sales', 'disabled_on': None}, {'id': '70f7ffde-5f95-e211-a939-e4115bead28a', 'name': 'Biotechnology and Pharmaceuticals : Bio and Pharma Marketing and Sales : Bio and Pharma Retail', 'disabled_on': None}, {'id': '6ff7ffde-5f95-e211-a939-e4115bead28a', 'name': 'Biotechnology and Pharmaceuticals : Bio and Pharma Marketing and Sales : Bio and Pharma Wholesale', 'disabled_on': None}, {'id': 'b7ee00d9-5f95-e211-a939-e4115bead28a', 'name': 'Biotechnology and Pharmaceuticals : Biotechnology', 'disabled_on': None}, {'id': '67f7ffde-5f95-e211-a939-e4115bead28a', 'name': 'Biotechnology and Pharmaceuticals : Biotechnology : Agribio', 'disabled_on': None}, {'id': 'b8ee00d9-5f95-e211-a939-e4115bead28a', 'name': 'Biotechnology and Pharmaceuticals : Biotechnology : Biodiagnostics', 'disabled_on': None}, {'id': '64f7ffde-5f95-e211-a939-e4115bead28a', 'name': 'Biotechnology and Pharmaceuticals : Biotechnology : Biomanufacturing', 'disabled_on': None}, {'id': '66f7ffde-5f95-e211-a939-e4115bead28a', 'name': 'Biotechnology and Pharmaceuticals : Biotechnology : Bioremediation', 'disabled_on': None}, {'id': 'b9ee00d9-5f95-e211-a939-e4115bead28a', 'name': 'Biotechnology and Pharmaceuticals : Biotechnology : Biotherapeutics', 'disabled_on': None}, {'id': '65f7ffde-5f95-e211-a939-e4115bead28a', 'name': 'Biotechnology and Pharmaceuticals : Biotechnology : Industrialbio', 'disabled_on': None}, {'id': '68f7ffde-5f95-e211-a939-e4115bead28a', 'name': 'Biotechnology and Pharmaceuticals : Biotechnology : Platform Technologies', 'disabled_on': None}, {'id': '6df7ffde-5f95-e211-a939-e4115bead28a', 'name': 'Biotechnology and Pharmaceuticals : Clinical Trials', 'disabled_on': None}, {'id': '6af7ffde-5f95-e211-a939-e4115bead28a', 'name': 'Biotechnology and Pharmaceuticals : Lab Services', 'disabled_on': None}, {'id': '6cf7ffde-5f95-e211-a939-e4115bead28a', 'name': 'Biotechnology and Pharmaceuticals : Lab Services : Contract Research', 'disabled_on': None}, {'id': '6bf7ffde-5f95-e211-a939-e4115bead28a', 'name': 'Biotechnology and Pharmaceuticals : Lab Services : Reagents, Consumables and Instruments', 'disabled_on': None}, {'id': 'b2ee00d9-5f95-e211-a939-e4115bead28a', 'name': 'Biotechnology and Pharmaceuticals : Pharmaceuticals', 'disabled_on': None}, {'id': 'b5ee00d9-5f95-e211-a939-e4115bead28a', 'name': 'Biotechnology and Pharmaceuticals : Pharmaceuticals : Basic Pharmaceutical Products', 'disabled_on': None}, {'id': 'b3ee00d9-5f95-e211-a939-e4115bead28a', 'name': 'Biotechnology and Pharmaceuticals : Pharmaceuticals : Drug Discovery', 'disabled_on': None}, {'id': 'b4ee00d9-5f95-e211-a939-e4115bead28a', 'name': 'Biotechnology and Pharmaceuticals : Pharmaceuticals : Drug Manufacture', 'disabled_on': None}, {'id': 'b6ee00d9-5f95-e211-a939-e4115bead28a', 'name': 'Biotechnology and Pharmaceuticals : Pharmaceuticals : Neutraceuticals', 'disabled_on': None}, {'id': '69f7ffde-5f95-e211-a939-e4115bead28a', 'name': 'Biotechnology and Pharmaceuticals : Vaccines', 'disabled_on': None}, {'id': '9a38cecc-5f95-e211-a939-e4115bead28a', 'name': 'Business (and Consumer) Services', 'disabled_on': None}, {'id': '71f7ffde-5f95-e211-a939-e4115bead28a', 'name': 'Business (and Consumer) Services : Commercial Real Estate Services', 'disabled_on': None}, {'id': '72f7ffde-5f95-e211-a939-e4115bead28a', 'name': 'Business (and Consumer) Services : Contact Centres', 'disabled_on': None}, {'id': '73f7ffde-5f95-e211-a939-e4115bead28a', 'name': 'Business (and Consumer) Services : HR Services', 'disabled_on': None}, {'id': '74f7ffde-5f95-e211-a939-e4115bead28a', 'name': 'Business (and Consumer) Services : Marketing Services', 'disabled_on': None}, {'id': '75f7ffde-5f95-e211-a939-e4115bead28a', 'name': 'Business (and Consumer) Services : Marketing Services : Market Research', 'disabled_on': None}, {'id': '76f7ffde-5f95-e211-a939-e4115bead28a', 'name': 'Business (and Consumer) Services : Shared Service Centres', 'disabled_on': None}, {'id': '9b38cecc-5f95-e211-a939-e4115bead28a', 'name': 'Chemicals', 'disabled_on': None}, {'id': '79f7ffde-5f95-e211-a939-e4115bead28a', 'name': 'Chemicals : Agricultural Chemicals', 'disabled_on': None}, {'id': '77f7ffde-5f95-e211-a939-e4115bead28a', 'name': 'Chemicals : Basic Chemicals', 'disabled_on': None}, {'id': '549c37e5-5f95-e211-a939-e4115bead28a', 'name': 'Chemicals : Cleaning Preparations', 'disabled_on': None}, {'id': '559c37e5-5f95-e211-a939-e4115bead28a', 'name': 'Chemicals : Miscellaneous Chemicals', 'disabled_on': None}, {'id': '7af7ffde-5f95-e211-a939-e4115bead28a', 'name': 'Chemicals : Paint, Coating and Adhesive Products', 'disabled_on': None}, {'id': '78f7ffde-5f95-e211-a939-e4115bead28a', 'name': 'Chemicals : Synthetic Materials', 'disabled_on': None}, {'id': '9c38cecc-5f95-e211-a939-e4115bead28a', 'name': 'Clothing, Footwear and Fashion', 'disabled_on': None}, {'id': '569c37e5-5f95-e211-a939-e4115bead28a', 'name': 'Clothing, Footwear and Fashion : Clothing', 'disabled_on': None}, {'id': '579c37e5-5f95-e211-a939-e4115bead28a', 'name': 'Clothing, Footwear and Fashion : Clothing : Workwear', 'disabled_on': None}, {'id': '589c37e5-5f95-e211-a939-e4115bead28a', 'name': 'Clothing, Footwear and Fashion : Footwear', 'disabled_on': None}, {'id': '9d38cecc-5f95-e211-a939-e4115bead28a', 'name': 'Communications', 'disabled_on': None}, {'id': '599c37e5-5f95-e211-a939-e4115bead28a', 'name': 'Communications : Broadband', 'disabled_on': None}, {'id': '639c37e5-5f95-e211-a939-e4115bead28a', 'name': 'Communications : Communications Wholesale', 'disabled_on': None}, {'id': '5a9c37e5-5f95-e211-a939-e4115bead28a', 'name': 'Communications : Convergent', 'disabled_on': None}, {'id': '5b9c37e5-5f95-e211-a939-e4115bead28a', 'name': 'Communications : Fixed Line', 'disabled_on': None}, {'id': '5c9c37e5-5f95-e211-a939-e4115bead28a', 'name': 'Communications : Mobile', 'disabled_on': None}, {'id': '5d9c37e5-5f95-e211-a939-e4115bead28a', 'name': 'Communications : Mobile : 3G Services', 'disabled_on': None}, {'id': '5e9c37e5-5f95-e211-a939-e4115bead28a', 'name': 'Communications : Mobile : GSM', 'disabled_on': None}, {'id': '5f9c37e5-5f95-e211-a939-e4115bead28a', 'name': 'Communications : Retail', 'disabled_on': None}, {'id': '609c37e5-5f95-e211-a939-e4115bead28a', 'name': 'Communications : Wireless', 'disabled_on': None}, {'id': '619c37e5-5f95-e211-a939-e4115bead28a', 'name': 'Communications : Wireless : Wi-Fi', 'disabled_on': None}, {'id': '629c37e5-5f95-e211-a939-e4115bead28a', 'name': 'Communications : Wireless : Wi-Max', 'disabled_on': None}, {'id': '9e38cecc-5f95-e211-a939-e4115bead28a', 'name': 'Construction', 'disabled_on': None}, {'id': '9f38cecc-5f95-e211-a939-e4115bead28a', 'name': 'Creative and Media', 'disabled_on': None}, {'id': '649c37e5-5f95-e211-a939-e4115bead28a', 'name': 'Creative and Media : Architecture', 'disabled_on': None}, {'id': '659c37e5-5f95-e211-a939-e4115bead28a', 'name': 'Creative and Media : Art, Design and Creativity', 'disabled_on': None}, {'id': 'e5a038eb-5f95-e211-a939-e4115bead28a', 'name': 'Creative and Media : Art, Design and Creativity : Artistic and Literary Creation', 'disabled_on': None}, {'id': '689c37e5-5f95-e211-a939-e4115bead28a', 'name': 'Creative and Media : Art, Design and Creativity : Arts Facilities Operation', 'disabled_on': None}, {'id': '669c37e5-5f95-e211-a939-e4115bead28a', 'name': 'Creative and Media : Art, Design and Creativity : Design', 'disabled_on': None}, {'id': '679c37e5-5f95-e211-a939-e4115bead28a', 'name': 'Creative and Media : Art, Design and Creativity : Fashion', 'disabled_on': None}, {'id': 'e4a038eb-5f95-e211-a939-e4115bead28a', 'name': 'Creative and Media : Art, Design and Creativity : Live Theatrical Presentations', 'disabled_on': None}, {'id': 'f4a038eb-5f95-e211-a939-e4115bead28a', 'name': 'Creative and Media : Creative and Media Distribution', 'disabled_on': None}, {'id': 'f5a038eb-5f95-e211-a939-e4115bead28a', 'name': 'Creative and Media : Creative and Media Distribution : Film and Video', 'disabled_on': None}, {'id': 'f1a038eb-5f95-e211-a939-e4115bead28a', 'name': 'Creative and Media : Creative and Media Equipment', 'disabled_on': None}, {'id': 'f3a038eb-5f95-e211-a939-e4115bead28a', 'name': 'Creative and Media : Creative and Media Equipment : Musical Instrument Manufacture', 'disabled_on': None}, {'id': 'f2a038eb-5f95-e211-a939-e4115bead28a', 'name': 'Creative and Media : Creative and Media Equipment : Photo and Cinema Equipment', 'disabled_on': None}, {'id': '941a72f1-5f95-e211-a939-e4115bead28a', 'name': 'Creative and Media : Creative and Media Retail', 'disabled_on': None}, {'id': '971a72f1-5f95-e211-a939-e4115bead28a', 'name': 'Creative and Media : Creative and Media Retail : Antiques and Antiquities', 'disabled_on': None}, {'id': '961a72f1-5f95-e211-a939-e4115bead28a', 'name': 'Creative and Media : Creative and Media Retail : Art', 'disabled_on': None}, {'id': '951a72f1-5f95-e211-a939-e4115bead28a', 'name': 'Creative and Media : Creative and Media Retail : Books, Newspapers and Stationery', 'disabled_on': None}, {'id': 'f6a038eb-5f95-e211-a939-e4115bead28a', 'name': 'Creative and Media : Creative and Media Wholesaling', 'disabled_on': None}, {'id': 'f7a038eb-5f95-e211-a939-e4115bead28a', 'name': 'Creative and Media : Creative and Media Wholesaling : Multimedia Sales', 'disabled_on': None}, {'id': 'f8a038eb-5f95-e211-a939-e4115bead28a', 'name': 'Creative and Media : Creative and Media Wholesaling : Musical Instruments', 'disabled_on': None}, {'id': 'f9a038eb-5f95-e211-a939-e4115bead28a', 'name': 'Creative and Media : Creative and Media Wholesaling : Photographic Goods', 'disabled_on': None}, {'id': 'e6a038eb-5f95-e211-a939-e4115bead28a', 'name': 'Creative and Media : Events and Attractions', 'disabled_on': None}, {'id': 'e7a038eb-5f95-e211-a939-e4115bead28a', 'name': 'Creative and Media : Media', 'disabled_on': None}, {'id': 'eda038eb-5f95-e211-a939-e4115bead28a', 'name': 'Creative and Media : Media : Advertising', 'disabled_on': None}, {'id': 'e8a038eb-5f95-e211-a939-e4115bead28a', 'name': 'Creative and Media : Media : Film, Photography and Animation', 'disabled_on': None}, {'id': 'e9a038eb-5f95-e211-a939-e4115bead28a', 'name': 'Creative and Media : Media : Music', 'disabled_on': None}, {'id': 'eca038eb-5f95-e211-a939-e4115bead28a', 'name': 'Creative and Media : Media : Publishing', 'disabled_on': None}, {'id': 'eea038eb-5f95-e211-a939-e4115bead28a', 'name': 'Creative and Media : Media Reproduction', 'disabled_on': None}, {'id': 'efa038eb-5f95-e211-a939-e4115bead28a', 'name': 'Creative and Media : Media Reproduction : Printing', 'disabled_on': None}, {'id': 'f0a038eb-5f95-e211-a939-e4115bead28a', 'name': 'Creative and Media : Media Reproduction : Reproduction', 'disabled_on': None}, {'id': 'eba038eb-5f95-e211-a939-e4115bead28a', 'name': 'Creative and Media : Media : TV and Radio', 'disabled_on': None}, {'id': 'eaa038eb-5f95-e211-a939-e4115bead28a', 'name': 'Creative and Media : Media : Video Games', 'disabled_on': None}, {'id': '7dbb9fc6-5f95-e211-a939-e4115bead28a', 'name': 'Defence', 'disabled_on': None}, {'id': 'b0959812-6095-e211-a939-e4115bead28a', 'name': 'Defence and Security', 'disabled_on': None}, {'id': 'a038cecc-5f95-e211-a939-e4115bead28a', 'name': 'Education and Training', 'disabled_on': None}, {'id': 'a138cecc-5f95-e211-a939-e4115bead28a', 'name': 'Electronics and IT Hardware', 'disabled_on': None}, {'id': '9f1a72f1-5f95-e211-a939-e4115bead28a', 'name': 'Electronics and IT Hardware : Electronic Instruments', 'disabled_on': None}, {'id': '981a72f1-5f95-e211-a939-e4115bead28a', 'name': 'Electronics and IT Hardware : Electronics and IT Technologies', 'disabled_on': None}, {'id': '9d1a72f1-5f95-e211-a939-e4115bead28a', 'name': 'Electronics and IT Hardware : Electronics and IT Technologies : Broadcasting', 'disabled_on': None}, {'id': '9b1a72f1-5f95-e211-a939-e4115bead28a', 'name': 'Electronics and IT Hardware : Electronics and IT Technologies : Component Technologies', 'disabled_on': None}, {'id': '9e1a72f1-5f95-e211-a939-e4115bead28a', 'name': 'Electronics and IT Hardware : Electronics and IT Technologies : Computing', 'disabled_on': None}, {'id': '9a1a72f1-5f95-e211-a939-e4115bead28a', 'name': 'Electronics and IT Hardware : Electronics and IT Technologies : Display Technologies', 'disabled_on': None}, {'id': '991a72f1-5f95-e211-a939-e4115bead28a', 'name': 'Electronics and IT Hardware : Electronics and IT Technologies : Network Technologies', 'disabled_on': None}, {'id': '9c1a72f1-5f95-e211-a939-e4115bead28a', 'name': 'Electronics and IT Hardware : Electronics and IT Technologies : Security Technologies', 'disabled_on': None}, {'id': 'b1959812-6095-e211-a939-e4115bead28a', 'name': 'Energy', 'disabled_on': None}, {'id': 'a238cecc-5f95-e211-a939-e4115bead28a', 'name': 'Environment', 'disabled_on': None}, {'id': 'a01a72f1-5f95-e211-a939-e4115bead28a', 'name': 'Environment : Air Pollution and Noise Control', 'disabled_on': None}, {'id': 'b2959812-6095-e211-a939-e4115bead28a', 'name': 'Environment and Water', 'disabled_on': None}, {'id': 'a31a72f1-5f95-e211-a939-e4115bead28a', 'name': 'Environment : Environmental Monitoring', 'disabled_on': None}, {'id': '98e61afa-5f95-e211-a939-e4115bead28a', 'name': 'Environment : Fuel Cells', 'disabled_on': None}, {'id': 'a11a72f1-5f95-e211-a939-e4115bead28a', 'name': 'Environment : Marine Pollution Control', 'disabled_on': None}, {'id': 'a21a72f1-5f95-e211-a939-e4115bead28a', 'name': 'Environment : Sanitation and Remediation', 'disabled_on': None}, {'id': 'a51a72f1-5f95-e211-a939-e4115bead28a', 'name': 'Environment : Waste Management', 'disabled_on': None}, {'id': '94e61afa-5f95-e211-a939-e4115bead28a', 'name': 'Environment : Waste Management : Hazardous Waste Management', 'disabled_on': None}, {'id': '96e61afa-5f95-e211-a939-e4115bead28a', 'name': 'Environment : Waste Management : Non-Metal Waste and Scrap Recycling', 'disabled_on': None}, {'id': '95e61afa-5f95-e211-a939-e4115bead28a', 'name': 'Environment : Waste Management : Sewage Collection and Treatment', 'disabled_on': None}, {'id': '97e61afa-5f95-e211-a939-e4115bead28a', 'name': 'Environment : Waste to Energy', 'disabled_on': None}, {'id': 'a41a72f1-5f95-e211-a939-e4115bead28a', 'name': 'Environment : Water Management', 'disabled_on': None}, {'id': 'a338cecc-5f95-e211-a939-e4115bead28a', 'name': 'Financial Services (including Professional Services)', 'disabled_on': None}, {'id': '99e61afa-5f95-e211-a939-e4115bead28a', 'name': 'Financial Services (including Professional Services) : Asset Management', 'disabled_on': None}, {'id': '9ae61afa-5f95-e211-a939-e4115bead28a', 'name': 'Financial Services (including Professional Services) : Banking', 'disabled_on': None}, {'id': '9de61afa-5f95-e211-a939-e4115bead28a', 'name': 'Financial Services (including Professional Services) : Banking : Commercial Banking', 'disabled_on': None}, {'id': '9ee61afa-5f95-e211-a939-e4115bead28a', 'name': 'Financial Services (including Professional Services) : Banking : Investment Banking', 'disabled_on': None}, {'id': '9ce61afa-5f95-e211-a939-e4115bead28a', 'name': 'Financial Services (including Professional Services) : Banking : Private Banking', 'disabled_on': None}, {'id': '9be61afa-5f95-e211-a939-e4115bead28a', 'name': 'Financial Services (including Professional Services) : Banking : Retail Banking', 'disabled_on': None}, {'id': '9fe61afa-5f95-e211-a939-e4115bead28a', 'name': 'Financial Services (including Professional Services) : Capital Markets', 'disabled_on': None}, {'id': 'a2e61afa-5f95-e211-a939-e4115bead28a', 'name': 'Financial Services (including Professional Services) : Capital Markets : Hedge Funds', 'disabled_on': None}, {'id': 'a0e61afa-5f95-e211-a939-e4115bead28a', 'name': 'Financial Services (including Professional Services) : Capital Markets : Private Equity', 'disabled_on': None}, {'id': 'a1e61afa-5f95-e211-a939-e4115bead28a', 'name': 'Financial Services (including Professional Services) : Capital Markets : Venture Capital', 'disabled_on': None}, {'id': 'a3e61afa-5f95-e211-a939-e4115bead28a', 'name': 'Financial Services (including Professional Services) : Foreign Exchange', 'disabled_on': None}, {'id': 'a4e61afa-5f95-e211-a939-e4115bead28a', 'name': 'Financial Services (including Professional Services) : Insurance', 'disabled_on': None}, {'id': '75363000-6095-e211-a939-e4115bead28a', 'name': 'Financial Services (including Professional Services) : Insurance : Commercial Insurance', 'disabled_on': None}, {'id': 'a6e61afa-5f95-e211-a939-e4115bead28a', 'name': 'Financial Services (including Professional Services) : Insurance : Home Insurance', 'disabled_on': None}, {'id': '76363000-6095-e211-a939-e4115bead28a', 'name': 'Financial Services (including Professional Services) : Insurance : Life Insurance', 'disabled_on': None}, {'id': 'a5e61afa-5f95-e211-a939-e4115bead28a', 'name': 'Financial Services (including Professional Services) : Insurance : Motor Insurance', 'disabled_on': None}, {'id': '74363000-6095-e211-a939-e4115bead28a', 'name': 'Financial Services (including Professional Services) : Insurance : Travel Insurance', 'disabled_on': None}, {'id': '77363000-6095-e211-a939-e4115bead28a', 'name': 'Financial Services (including Professional Services) : Listings', 'disabled_on': None}, {'id': '78363000-6095-e211-a939-e4115bead28a', 'name': 'Financial Services (including Professional Services) : Professional Services', 'disabled_on': None}, {'id': '79363000-6095-e211-a939-e4115bead28a', 'name': 'Financial Services (including Professional Services) : Professional Services : Accountancy Services', 'disabled_on': None}, {'id': '7b363000-6095-e211-a939-e4115bead28a', 'name': 'Financial Services (including Professional Services) : Professional Services : Legal Services', 'disabled_on': None}, {'id': '7a363000-6095-e211-a939-e4115bead28a', 'name': 'Financial Services (including Professional Services) : Professional Services : Management Consultancy', 'disabled_on': None}, {'id': 'a538cecc-5f95-e211-a939-e4115bead28a', 'name': 'Food and Drink', 'disabled_on': None}, {'id': '7d363000-6095-e211-a939-e4115bead28a', 'name': 'Food and Drink : Bakery Products', 'disabled_on': None}, {'id': '82363000-6095-e211-a939-e4115bead28a', 'name': 'Food and Drink : Beverages and Alcoholic Drinks', 'disabled_on': None}, {'id': '7c363000-6095-e211-a939-e4115bead28a', 'name': 'Food and Drink : Brewing', 'disabled_on': None}, {'id': '80363000-6095-e211-a939-e4115bead28a', 'name': 'Food and Drink : Dairy Products', 'disabled_on': None}, {'id': '84363000-6095-e211-a939-e4115bead28a', 'name': 'Food and Drink : Food and Drink Manufacturing', 'disabled_on': None}, {'id': '81363000-6095-e211-a939-e4115bead28a', 'name': 'Food and Drink : Frozen and Chilled Foods', 'disabled_on': None}, {'id': '83363000-6095-e211-a939-e4115bead28a', 'name': 'Food and Drink : Fruit and Vegetables', 'disabled_on': None}, {'id': '7f363000-6095-e211-a939-e4115bead28a', 'name': 'Food and Drink : Meat Products', 'disabled_on': None}, {'id': '85363000-6095-e211-a939-e4115bead28a', 'name': 'Food and Drink : Pet Food', 'disabled_on': None}, {'id': '7e363000-6095-e211-a939-e4115bead28a', 'name': 'Food and Drink : Ready Meals', 'disabled_on': None}, {'id': '86363000-6095-e211-a939-e4115bead28a', 'name': 'Food and Drink : Secondary Food Processing', 'disabled_on': None}, {'id': '64535406-6095-e211-a939-e4115bead28a', 'name': 'Food and Drink : Tobacco Products', 'disabled_on': None}, {'id': 'a638cecc-5f95-e211-a939-e4115bead28a', 'name': 'Giftware, Jewellery and Tableware', 'disabled_on': None}, {'id': 'ac22c9d2-5f95-e211-a939-e4115bead28a', 'name': 'Global Sports Projects', 'disabled_on': None}, {'id': '65535406-6095-e211-a939-e4115bead28a', 'name': 'Global Sports Projects : Major Events', 'disabled_on': None}, {'id': 'a738cecc-5f95-e211-a939-e4115bead28a', 'name': 'Healthcare and Medical', 'disabled_on': None}, {'id': '75535406-6095-e211-a939-e4115bead28a', 'name': 'Healthcare and Medical : Healthcare Marketing and Sales', 'disabled_on': None}, {'id': '64f1690c-6095-e211-a939-e4115bead28a', 'name': 'Healthcare and Medical : Healthcare Marketing and Sales : Healthcare Retail', 'disabled_on': None}, {'id': '76535406-6095-e211-a939-e4115bead28a', 'name': 'Healthcare and Medical : Healthcare Marketing and Sales : Healthcare Wholesale', 'disabled_on': None}, {'id': '66535406-6095-e211-a939-e4115bead28a', 'name': 'Healthcare and Medical : Healthcare Services', 'disabled_on': None}, {'id': '6b535406-6095-e211-a939-e4115bead28a', 'name': 'Healthcare and Medical : Healthcare Services : Dentists', 'disabled_on': None}, {'id': '6a535406-6095-e211-a939-e4115bead28a', 'name': 'Healthcare and Medical : Healthcare Services : Medical Practice', 'disabled_on': None}, {'id': '69535406-6095-e211-a939-e4115bead28a', 'name': 'Healthcare and Medical : Healthcare Services : Nursing Homes', 'disabled_on': None}, {'id': '68535406-6095-e211-a939-e4115bead28a', 'name': 'Healthcare and Medical : Healthcare Services : Private Sector', 'disabled_on': None}, {'id': '67535406-6095-e211-a939-e4115bead28a', 'name': 'Healthcare and Medical : Healthcare Services : Public Sector', 'disabled_on': None}, {'id': '6c535406-6095-e211-a939-e4115bead28a', 'name': 'Healthcare and Medical : Healthcare Services : Vets', 'disabled_on': None}, {'id': '73535406-6095-e211-a939-e4115bead28a', 'name': 'Healthcare and Medical : Medical Consumables', 'disabled_on': None}, {'id': '6d535406-6095-e211-a939-e4115bead28a', 'name': 'Healthcare and Medical : Medical Devices and Systems', 'disabled_on': None}, {'id': '6e535406-6095-e211-a939-e4115bead28a', 'name': 'Healthcare and Medical : Medical Devices and Systems : Optical Precision Instruments', 'disabled_on': None}, {'id': '6f535406-6095-e211-a939-e4115bead28a', 'name': 'Healthcare and Medical : Medical Equipment', 'disabled_on': None}, {'id': '70535406-6095-e211-a939-e4115bead28a', 'name': 'Healthcare and Medical : Medical Equipment : Dental Aesthetics', 'disabled_on': None}, {'id': '71535406-6095-e211-a939-e4115bead28a', 'name': 'Healthcare and Medical : Medical Equipment : Glass', 'disabled_on': None}, {'id': '72535406-6095-e211-a939-e4115bead28a', 'name': 'Healthcare and Medical : Medical Equipment : Spectacles and Unmounted Lenses', 'disabled_on': None}, {'id': '74535406-6095-e211-a939-e4115bead28a', 'name': 'Healthcare and Medical : Medical Lab Services', 'disabled_on': None}, {'id': 'a838cecc-5f95-e211-a939-e4115bead28a', 'name': 'Household Goods, Furniture and Furnishings', 'disabled_on': None}, {'id': 'b3959812-6095-e211-a939-e4115bead28a', 'name': 'ICT', 'disabled_on': None}, {'id': 'a938cecc-5f95-e211-a939-e4115bead28a', 'name': 'Leisure and Tourism', 'disabled_on': None}, {'id': '66f1690c-6095-e211-a939-e4115bead28a', 'name': 'Leisure and Tourism : Gaming', 'disabled_on': None}, {'id': '67f1690c-6095-e211-a939-e4115bead28a', 'name': 'Leisure and Tourism : Gaming : Casino Gambling', 'disabled_on': None}, {'id': '68f1690c-6095-e211-a939-e4115bead28a', 'name': 'Leisure and Tourism : Gaming : Mass-Market Gambling', 'disabled_on': None}, {'id': '65f1690c-6095-e211-a939-e4115bead28a', 'name': 'Leisure and Tourism : Sports and Leisure Infrastructure', 'disabled_on': None}, {'id': 'b4959812-6095-e211-a939-e4115bead28a', 'name': 'Life Sciences', 'disabled_on': None}, {'id': 'aa38cecc-5f95-e211-a939-e4115bead28a', 'name': 'Marine', 'disabled_on': None}, {'id': 'b5959812-6095-e211-a939-e4115bead28a', 'name': 'Mass Transport', 'disabled_on': None}, {'id': 'ab38cecc-5f95-e211-a939-e4115bead28a', 'name': 'Mechanical Electrical and Process Engineering', 'disabled_on': None}, {'id': 'a422c9d2-5f95-e211-a939-e4115bead28a', 'name': 'Metallurgical Process Plant', 'disabled_on': None}, {'id': 'a522c9d2-5f95-e211-a939-e4115bead28a', 'name': 'Metals, Minerals and Materials', 'disabled_on': None}, {'id': '6df1690c-6095-e211-a939-e4115bead28a', 'name': 'Metals, Minerals and Materials : Ceramics', 'disabled_on': None}, {'id': '6ef1690c-6095-e211-a939-e4115bead28a', 'name': 'Metals, Minerals and Materials : Composite Materials', 'disabled_on': None}, {'id': '6ff1690c-6095-e211-a939-e4115bead28a', 'name': 'Metals, Minerals and Materials : Elastomers and Rubbers', 'disabled_on': None}, {'id': '6af1690c-6095-e211-a939-e4115bead28a', 'name': 'Metals, Minerals and Materials : Metals', 'disabled_on': None}, {'id': '6bf1690c-6095-e211-a939-e4115bead28a', 'name': 'Metals, Minerals and Materials : Minerals', 'disabled_on': None}, {'id': '6cf1690c-6095-e211-a939-e4115bead28a', 'name': 'Metals, Minerals and Materials : Plastics', 'disabled_on': None}, {'id': 'a622c9d2-5f95-e211-a939-e4115bead28a', 'name': 'Mining', 'disabled_on': None}, {'id': '44329c18-6095-e211-a939-e4115bead28a', 'name': 'More Sectors', 'disabled_on': None}, {'id': 'a722c9d2-5f95-e211-a939-e4115bead28a', 'name': 'Oil and Gas', 'disabled_on': None}, {'id': 'a822c9d2-5f95-e211-a939-e4115bead28a', 'name': 'Ports and Logistics', 'disabled_on': None}, {'id': 'a922c9d2-5f95-e211-a939-e4115bead28a', 'name': 'Power', 'disabled_on': None}, {'id': '70f1690c-6095-e211-a939-e4115bead28a', 'name': 'Power : Nuclear', 'disabled_on': None}, {'id': '632b6af2-b583-e511-a84e-e4115bead28a', 'name': 'Power : Nuclear : Nuclear De-commissiong', 'disabled_on': None}, {'id': 'aa22c9d2-5f95-e211-a939-e4115bead28a', 'name': 'Railways', 'disabled_on': None}, {'id': '7ebb9fc6-5f95-e211-a939-e4115bead28a', 'name': 'Renewable Energy', 'disabled_on': None}, {'id': '71f1690c-6095-e211-a939-e4115bead28a', 'name': 'Renewable Energy : Biomass', 'disabled_on': None}, {'id': '72f1690c-6095-e211-a939-e4115bead28a', 'name': 'Renewable Energy : Geothermal', 'disabled_on': None}, {'id': '73f1690c-6095-e211-a939-e4115bead28a', 'name': 'Renewable Energy : Hydro', 'disabled_on': None}, {'id': '74f1690c-6095-e211-a939-e4115bead28a', 'name': 'Renewable Energy : Solar', 'disabled_on': None}, {'id': '75f1690c-6095-e211-a939-e4115bead28a', 'name': 'Renewable Energy : Tidal', 'disabled_on': None}, {'id': '76f1690c-6095-e211-a939-e4115bead28a', 'name': 'Renewable Energy : Wave', 'disabled_on': None}, {'id': 'a4959812-6095-e211-a939-e4115bead28a', 'name': 'Renewable Energy : Wind', 'disabled_on': None}, {'id': 'e331b3d4-5329-e511-b6bc-e4115bead28a', 'name': 'Renewable Energy : Wind : Renewable energy: Wind: Offshore', 'disabled_on': None}, {'id': '034be3be-5329-e511-b6bc-e4115bead28a', 'name': 'Renewable Energy : Wind : Renewable energy: Wind: Onshore', 'disabled_on': None}, {'id': '355f977b-8ac3-e211-a646-e4115bead28a', 'name': 'Retail', 'disabled_on': None}, {'id': 'a438cecc-5f95-e211-a939-e4115bead28a', 'name': 'Security', 'disabled_on': None}, {'id': '906f43f9-267e-e511-a84e-e4115bead28a', 'name': 'Security : Cyber Security', 'disabled_on': None}, {'id': 'ab22c9d2-5f95-e211-a939-e4115bead28a', 'name': 'Software and Computer Services Business to Business (B2B)', 'disabled_on': None}, {'id': 'a9959812-6095-e211-a939-e4115bead28a', 'name': 'Software and Computer Services Business to Business (B2B) : Biometrics', 'disabled_on': None}, {'id': 'ab959812-6095-e211-a939-e4115bead28a', 'name': 'Software and Computer Services Business to Business (B2B) : E-Procurement', 'disabled_on': None}, {'id': 'a6959812-6095-e211-a939-e4115bead28a', 'name': 'Software and Computer Services Business to Business (B2B) : Financial Applications', 'disabled_on': None}, {'id': 'a7959812-6095-e211-a939-e4115bead28a', 'name': 'Software and Computer Services Business to Business (B2B) : Healthcare Applications', 'disabled_on': None}, {'id': 'a5959812-6095-e211-a939-e4115bead28a', 'name': 'Software and Computer Services Business to Business (B2B) : Industry Applications', 'disabled_on': None}, {'id': 'aa959812-6095-e211-a939-e4115bead28a', 'name': 'Software and Computer Services Business to Business (B2B) : Online Retailing', 'disabled_on': None}, {'id': 'a8959812-6095-e211-a939-e4115bead28a', 'name': 'Software and Computer Services Business to Business (B2B) : Security Related Software', 'disabled_on': None}, {'id': 'ac959812-6095-e211-a939-e4115bead28a', 'name': 'Software and Computer Services Business to Business (B2B) : Support Services', 'disabled_on': None}, {'id': 'ad959812-6095-e211-a939-e4115bead28a', 'name': 'Software and Computer Services Business to Business (B2B) : Support Services : Equipment Maintenance and Repair', 'disabled_on': None}, {'id': 'ae959812-6095-e211-a939-e4115bead28a', 'name': 'Software and Computer Services Business to Business (B2B) : Support Services : Internet Service Providers', 'disabled_on': None}, {'id': 'ad22c9d2-5f95-e211-a939-e4115bead28a', 'name': 'Textiles, Interior Textiles and Carpets', 'disabled_on': None}, {'id': 'ae22c9d2-5f95-e211-a939-e4115bead28a', 'name': 'Water', 'disabled_on': None}, ] dh_countries = [ {'id': '87756b9a-5d95-e211-a939-e4115bead28a', 'name': 'Afghanistan', 'disabled_on': None}, {'id': '88756b9a-5d95-e211-a939-e4115bead28a', 'name': 'Aland Islands', 'disabled_on': None}, {'id': '945f66a0-5d95-e211-a939-e4115bead28a', 'name': 'Albania', 'disabled_on': None}, {'id': '955f66a0-5d95-e211-a939-e4115bead28a', 'name': 'Algeria', 'disabled_on': None}, {'id': '965f66a0-5d95-e211-a939-e4115bead28a', 'name': 'American Samoa', 'disabled_on': None}, {'id': '975f66a0-5d95-e211-a939-e4115bead28a', 'name': 'Andorra', 'disabled_on': None}, {'id': '985f66a0-5d95-e211-a939-e4115bead28a', 'name': 'Angola', 'disabled_on': None}, {'id': '995f66a0-5d95-e211-a939-e4115bead28a', 'name': 'Anguilla', 'disabled_on': None}, {'id': '9a5f66a0-5d95-e211-a939-e4115bead28a', 'name': 'Antarctica', 'disabled_on': None}, {'id': '9b5f66a0-5d95-e211-a939-e4115bead28a', 'name': 'Antigua and Barbuda', 'disabled_on': None}, {'id': '9c5f66a0-5d95-e211-a939-e4115bead28a', 'name': 'Argentina', 'disabled_on': None}, {'id': '9d5f66a0-5d95-e211-a939-e4115bead28a', 'name': 'Armenia', 'disabled_on': None}, {'id': '9e5f66a0-5d95-e211-a939-e4115bead28a', 'name': 'Aruba', 'disabled_on': None}, {'id': '9f5f66a0-5d95-e211-a939-e4115bead28a', 'name': 'Australia', 'disabled_on': None}, {'id': 'a05f66a0-5d95-e211-a939-e4115bead28a', 'name': 'Austria', 'disabled_on': None}, {'id': 'a15f66a0-5d95-e211-a939-e4115bead28a', 'name': 'Azerbaijan', 'disabled_on': None}, {'id': 'a25f66a0-5d95-e211-a939-e4115bead28a', 'name': 'Bahamas', 'disabled_on': None}, {'id': 'a35f66a0-5d95-e211-a939-e4115bead28a', 'name': 'Bahrain', 'disabled_on': None}, {'id': 'a45f66a0-5d95-e211-a939-e4115bead28a', 'name': 'Bangladesh', 'disabled_on': None}, {'id': 'a55f66a0-5d95-e211-a939-e4115bead28a', 'name': 'Barbados', 'disabled_on': None}, {'id': 'a65f66a0-5d95-e211-a939-e4115bead28a', 'name': 'Belarus', 'disabled_on': None}, {'id': 'a75f66a0-5d95-e211-a939-e4115bead28a', 'name': 'Belgium', 'disabled_on': None}, {'id': 'a85f66a0-5d95-e211-a939-e4115bead28a', 'name': 'Belize', 'disabled_on': None}, {'id': 'a95f66a0-5d95-e211-a939-e4115bead28a', 'name': 'Benin', 'disabled_on': None}, {'id': 'aa5f66a0-5d95-e211-a939-e4115bead28a', 'name': 'Bermuda', 'disabled_on': None}, {'id': 'ab5f66a0-5d95-e211-a939-e4115bead28a', 'name': 'Bhutan', 'disabled_on': None}, {'id': '98c8d93d-5d06-e311-a78e-e4115bead28a', 'name': 'BLANK', 'disabled_on': None}, {'id': 'ac5f66a0-5d95-e211-a939-e4115bead28a', 'name': 'Bolivia', 'disabled_on': None}, {'id': 'ad5f66a0-5d95-e211-a939-e4115bead28a', 'name': 'Bosnia and Herzegovina', 'disabled_on': None}, {'id': 'ae5f66a0-5d95-e211-a939-e4115bead28a', 'name': 'Botswana', 'disabled_on': None}, {'id': 'af5f66a0-5d95-e211-a939-e4115bead28a', 'name': 'Bouvet Island', 'disabled_on': None}, {'id': 'b05f66a0-5d95-e211-a939-e4115bead28a', 'name': 'Brazil', 'disabled_on': None}, {'id': 'b15f66a0-5d95-e211-a939-e4115bead28a', 'name': 'British Indian Ocean Territory', 'disabled_on': None}, {'id': 'b25f66a0-5d95-e211-a939-e4115bead28a', 'name': 'British Virgin Islands', 'disabled_on': None}, {'id': '56af72a6-5d95-e211-a939-e4115bead28a', 'name': 'Brunei', 'disabled_on': None}, {'id': '57af72a6-5d95-e211-a939-e4115bead28a', 'name': 'Bulgaria', 'disabled_on': None}, {'id': '58af72a6-5d95-e211-a939-e4115bead28a', 'name': 'Burkina', 'disabled_on': None}, {'id': '59af72a6-5d95-e211-a939-e4115bead28a', 'name': 'Burma', 'disabled_on': None}, {'id': '5aaf72a6-5d95-e211-a939-e4115bead28a', 'name': 'Burundi', 'disabled_on': None}, {'id': '5baf72a6-5d95-e211-a939-e4115bead28a', 'name': 'Cambodia', 'disabled_on': None}, {'id': '5caf72a6-5d95-e211-a939-e4115bead28a', 'name': 'Cameroon', 'disabled_on': None}, {'id': '5daf72a6-5d95-e211-a939-e4115bead28a', 'name': 'Canada', 'disabled_on': None}, {'id': '5eaf72a6-5d95-e211-a939-e4115bead28a', 'name': 'Cape Verde', 'disabled_on': None}, {'id': '5faf72a6-5d95-e211-a939-e4115bead28a', 'name': 'Cayman Islands', 'disabled_on': None}, {'id': '60af72a6-5d95-e211-a939-e4115bead28a', 'name': 'Central African Republic', 'disabled_on': None}, {'id': '61af72a6-5d95-e211-a939-e4115bead28a', 'name': 'Chad', 'disabled_on': None}, {'id': '62af72a6-5d95-e211-a939-e4115bead28a', 'name': 'Chile', 'disabled_on': None}, {'id': '63af72a6-5d95-e211-a939-e4115bead28a', 'name': 'China', 'disabled_on': None}, {'id': '64af72a6-5d95-e211-a939-e4115bead28a', 'name': 'Christmas Island', 'disabled_on': None}, {'id': '65af72a6-5d95-e211-a939-e4115bead28a', 'name': 'Cocos (Keeling) Islands', 'disabled_on': None}, {'id': '66af72a6-5d95-e211-a939-e4115bead28a', 'name': 'Colombia', 'disabled_on': None}, {'id': '67af72a6-5d95-e211-a939-e4115bead28a', 'name': 'Comoros', 'disabled_on': None}, {'id': '69af72a6-5d95-e211-a939-e4115bead28a', 'name': 'Congo', 'disabled_on': None}, {'id': '68af72a6-5d95-e211-a939-e4115bead28a', 'name': 'Congo (Democratic Republic)', 'disabled_on': None}, {'id': '6aaf72a6-5d95-e211-a939-e4115bead28a', 'name': 'Cook Islands', 'disabled_on': None}, {'id': '6baf72a6-5d95-e211-a939-e4115bead28a', 'name': 'Costa Rica', 'disabled_on': None}, {'id': '6caf72a6-5d95-e211-a939-e4115bead28a', 'name': 'Croatia', 'disabled_on': None}, {'id': '6daf72a6-5d95-e211-a939-e4115bead28a', 'name': 'Cuba', 'disabled_on': None}, {'id': '6eaf72a6-5d95-e211-a939-e4115bead28a', 'name': 'Cyprus', 'disabled_on': None}, {'id': '6faf72a6-5d95-e211-a939-e4115bead28a', 'name': 'Czech Republic', 'disabled_on': None}, {'id': '70af72a6-5d95-e211-a939-e4115bead28a', 'name': 'Denmark', 'disabled_on': None}, {'id': '71af72a6-5d95-e211-a939-e4115bead28a', 'name': 'Djibouti', 'disabled_on': None}, {'id': '72af72a6-5d95-e211-a939-e4115bead28a', 'name': 'Dominica', 'disabled_on': None}, {'id': '73af72a6-5d95-e211-a939-e4115bead28a', 'name': 'Dominican Republic', 'disabled_on': None}, {'id': '74af72a6-5d95-e211-a939-e4115bead28a', 'name': 'East Timor', 'disabled_on': None}, {'id': '75af72a6-5d95-e211-a939-e4115bead28a', 'name': 'Ecuador', 'disabled_on': None}, {'id': '76af72a6-5d95-e211-a939-e4115bead28a', 'name': 'Egypt', 'disabled_on': None}, {'id': 'd2f682ac-5d95-e211-a939-e4115bead28a', 'name': 'El Salvador', 'disabled_on': None}, {'id': 'd3f682ac-5d95-e211-a939-e4115bead28a', 'name': 'Equatorial Guinea', 'disabled_on': None}, {'id': 'd4f682ac-5d95-e211-a939-e4115bead28a', 'name': 'Eritrea', 'disabled_on': None}, {'id': 'd5f682ac-5d95-e211-a939-e4115bead28a', 'name': 'Estonia', 'disabled_on': None}, {'id': 'd6f682ac-5d95-e211-a939-e4115bead28a', 'name': 'Ethiopia', 'disabled_on': None}, {'id': 'd7f682ac-5d95-e211-a939-e4115bead28a', 'name': 'Falkland Islands', 'disabled_on': None}, {'id': 'd8f682ac-5d95-e211-a939-e4115bead28a', 'name': 'Faroe Islands', 'disabled_on': None}, {'id': 'd9f682ac-5d95-e211-a939-e4115bead28a', 'name': 'Fiji', 'disabled_on': None}, {'id': 'daf682ac-5d95-e211-a939-e4115bead28a', 'name': 'Finland', 'disabled_on': None}, {'id': '82756b9a-5d95-e211-a939-e4115bead28a', 'name': 'France', 'disabled_on': None}, {'id': 'dbf682ac-5d95-e211-a939-e4115bead28a', 'name': 'French Guiana', 'disabled_on': None}, {'id': 'dcf682ac-5d95-e211-a939-e4115bead28a', 'name': 'French Polynesia', 'disabled_on': None}, {'id': 'ddf682ac-5d95-e211-a939-e4115bead28a', 'name': 'French Southern Territories', 'disabled_on': None}, {'id': 'def682ac-5d95-e211-a939-e4115bead28a', 'name': 'Gabon', 'disabled_on': None}, {'id': 'dff682ac-5d95-e211-a939-e4115bead28a', 'name': 'Gambia, The', 'disabled_on': None}, {'id': 'e0f682ac-5d95-e211-a939-e4115bead28a', 'name': 'Georgia', 'disabled_on': None}, {'id': '83756b9a-5d95-e211-a939-e4115bead28a', 'name': 'Germany', 'disabled_on': None}, {'id': 'e1f682ac-5d95-e211-a939-e4115bead28a', 'name': 'Ghana', 'disabled_on': None}, {'id': 'e2f682ac-5d95-e211-a939-e4115bead28a', 'name': 'Gibraltar', 'disabled_on': None}, {'id': 'e3f682ac-5d95-e211-a939-e4115bead28a', 'name': 'Greece', 'disabled_on': None}, {'id': 'e4f682ac-5d95-e211-a939-e4115bead28a', 'name': 'Greenland', 'disabled_on': None}, {'id': 'e5f682ac-5d95-e211-a939-e4115bead28a', 'name': 'Grenada', 'disabled_on': None}, {'id': 'e6f682ac-5d95-e211-a939-e4115bead28a', 'name': 'Guadeloupe', 'disabled_on': None}, {'id': 'e7f682ac-5d95-e211-a939-e4115bead28a', 'name': 'Guam', 'disabled_on': None}, {'id': 'e8f682ac-5d95-e211-a939-e4115bead28a', 'name': 'Guatemala', 'disabled_on': None}, {'id': '77756b9a-5d95-e211-a939-e4115bead28a', 'name': 'Guernsey', 'disabled_on': None}, {'id': 'e9f682ac-5d95-e211-a939-e4115bead28a', 'name': 'Guinea', 'disabled_on': None}, {'id': 'eaf682ac-5d95-e211-a939-e4115bead28a', 'name': 'Guinea-Bissau', 'disabled_on': None}, {'id': 'ebf682ac-5d95-e211-a939-e4115bead28a', 'name': 'Guyana', 'disabled_on': None}, {'id': 'ecf682ac-5d95-e211-a939-e4115bead28a', 'name': 'Haiti', 'disabled_on': None}, {'id': 'edf682ac-5d95-e211-a939-e4115bead28a', 'name': 'Heard Island and McDonald Island', 'disabled_on': None}, {'id': 'eff682ac-5d95-e211-a939-e4115bead28a', 'name': 'Honduras', 'disabled_on': None}, {'id': 'f0f682ac-5d95-e211-a939-e4115bead28a', 'name': 'Hong Kong (SAR)', 'disabled_on': None}, {'id': '6d6a9ab2-5d95-e211-a939-e4115bead28a', 'name': 'Hungary', 'disabled_on': None}, {'id': '6e6a9ab2-5d95-e211-a939-e4115bead28a', 'name': 'Iceland', 'disabled_on': None}, {'id': '6f6a9ab2-5d95-e211-a939-e4115bead28a', 'name': 'India', 'disabled_on': None}, {'id': '706a9ab2-5d95-e211-a939-e4115bead28a', 'name': 'Indonesia', 'disabled_on': None}, {'id': '716a9ab2-5d95-e211-a939-e4115bead28a', 'name': 'Iran', 'disabled_on': None}, {'id': '726a9ab2-5d95-e211-a939-e4115bead28a', 'name': 'Iraq', 'disabled_on': None}, {'id': '736a9ab2-5d95-e211-a939-e4115bead28a', 'name': 'Ireland', 'disabled_on': None}, {'id': '79756b9a-5d95-e211-a939-e4115bead28a', 'name': 'Isle of Man', 'disabled_on': None}, {'id': '746a9ab2-5d95-e211-a939-e4115bead28a', 'name': 'Israel', 'disabled_on': None}, {'id': '84756b9a-5d95-e211-a939-e4115bead28a', 'name': 'Italy', 'disabled_on': None}, {'id': '756a9ab2-5d95-e211-a939-e4115bead28a', 'name': 'Ivory Coast', 'disabled_on': None}, {'id': '766a9ab2-5d95-e211-a939-e4115bead28a', 'name': 'Jamaica', 'disabled_on': None}, {'id': '85756b9a-5d95-e211-a939-e4115bead28a', 'name': 'Japan', 'disabled_on': None}, {'id': '78756b9a-5d95-e211-a939-e4115bead28a', 'name': 'Jersey', 'disabled_on': None}, {'id': '776a9ab2-5d95-e211-a939-e4115bead28a', 'name': 'Jordan', 'disabled_on': None}, {'id': '786a9ab2-5d95-e211-a939-e4115bead28a', 'name': 'Kazakhstan', 'disabled_on': None}, {'id': '796a9ab2-5d95-e211-a939-e4115bead28a', 'name': 'Kenya', 'disabled_on': None}, {'id': '7a6a9ab2-5d95-e211-a939-e4115bead28a', 'name': 'Kiribati', 'disabled_on': None}, {'id': '7b6a9ab2-5d95-e211-a939-e4115bead28a', 'name': 'Korea (North)', 'disabled_on': None}, {'id': '7c6a9ab2-5d95-e211-a939-e4115bead28a', 'name': 'Korea (South)', 'disabled_on': None}, {'id': '7a756b9a-5d95-e211-a939-e4115bead28a', 'name': 'Kosovo', 'disabled_on': None}, {'id': '7d6a9ab2-5d95-e211-a939-e4115bead28a', 'name': 'Kuwait', 'disabled_on': None}, {'id': '7e6a9ab2-5d95-e211-a939-e4115bead28a', 'name': 'Kyrgyzstan', 'disabled_on': None}, {'id': '7f6a9ab2-5d95-e211-a939-e4115bead28a', 'name': 'Laos', 'disabled_on': None}, {'id': '806a9ab2-5d95-e211-a939-e4115bead28a', 'name': 'Latvia', 'disabled_on': None}, {'id': '816a9ab2-5d95-e211-a939-e4115bead28a', 'name': 'Lebanon', 'disabled_on': None}, {'id': '826a9ab2-5d95-e211-a939-e4115bead28a', 'name': 'Lesotho', 'disabled_on': None}, {'id': '836a9ab2-5d95-e211-a939-e4115bead28a', 'name': 'Liberia', 'disabled_on': None}, {'id': '846a9ab2-5d95-e211-a939-e4115bead28a', 'name': 'Libya', 'disabled_on': None}, {'id': '856a9ab2-5d95-e211-a939-e4115bead28a', 'name': 'Liechtenstein', 'disabled_on': None}, {'id': '866a9ab2-5d95-e211-a939-e4115bead28a', 'name': 'Lithuania', 'disabled_on': None}, {'id': '876a9ab2-5d95-e211-a939-e4115bead28a', 'name': 'Luxembourg', 'disabled_on': None}, {'id': '886a9ab2-5d95-e211-a939-e4115bead28a', 'name': 'Macao (SAR)', 'disabled_on': None}, {'id': '896a9ab2-5d95-e211-a939-e4115bead28a', 'name': 'Macedonia', 'disabled_on': None}, {'id': '0350bdb8-5d95-e211-a939-e4115bead28a', 'name': 'Madagascar', 'disabled_on': None}, {'id': '0450bdb8-5d95-e211-a939-e4115bead28a', 'name': 'Malawi', 'disabled_on': None}, {'id': '0550bdb8-5d95-e211-a939-e4115bead28a', 'name': 'Malaysia', 'disabled_on': None}, {'id': '0650bdb8-5d95-e211-a939-e4115bead28a', 'name': 'Maldives', 'disabled_on': None}, {'id': '0750bdb8-5d95-e211-a939-e4115bead28a', 'name': 'Mali', 'disabled_on': None}, {'id': '0850bdb8-5d95-e211-a939-e4115bead28a', 'name': 'Malta', 'disabled_on': None}, {'id': '0950bdb8-5d95-e211-a939-e4115bead28a', 'name': 'Marshall Islands', 'disabled_on': None}, {'id': '0a50bdb8-5d95-e211-a939-e4115bead28a', 'name': 'Martinique', 'disabled_on': None}, {'id': '0b50bdb8-5d95-e211-a939-e4115bead28a', 'name': 'Mauritania', 'disabled_on': None}, {'id': '0c50bdb8-5d95-e211-a939-e4115bead28a', 'name': 'Mauritius', 'disabled_on': None}, {'id': '0d50bdb8-5d95-e211-a939-e4115bead28a', 'name': 'Mayotte', 'disabled_on': None}, {'id': '0e50bdb8-5d95-e211-a939-e4115bead28a', 'name': 'Mexico', 'disabled_on': None}, {'id': '0f50bdb8-5d95-e211-a939-e4115bead28a', 'name': 'Micronesia', 'disabled_on': None}, {'id': '1050bdb8-5d95-e211-a939-e4115bead28a', 'name': 'Moldova', 'disabled_on': None}, {'id': '1150bdb8-5d95-e211-a939-e4115bead28a', 'name': 'Monaco', 'disabled_on': None}, {'id': '1250bdb8-5d95-e211-a939-e4115bead28a', 'name': 'Mongolia', 'disabled_on': None}, {'id': '7f756b9a-5d95-e211-a939-e4115bead28a', 'name': 'Montenegro', 'disabled_on': None}, {'id': '1350bdb8-5d95-e211-a939-e4115bead28a', 'name': 'Montserrat', 'disabled_on': None}, {'id': '1450bdb8-5d95-e211-a939-e4115bead28a', 'name': 'Morocco', 'disabled_on': None}, {'id': '1550bdb8-5d95-e211-a939-e4115bead28a', 'name': 'Mozambique', 'disabled_on': None}, {'id': '1650bdb8-5d95-e211-a939-e4115bead28a', 'name': 'Namibia', 'disabled_on': None}, {'id': '1750bdb8-5d95-e211-a939-e4115bead28a', 'name': 'Nauru', 'disabled_on': None}, {'id': '1850bdb8-5d95-e211-a939-e4115bead28a', 'name': 'Nepal', 'disabled_on': None}, {'id': '1950bdb8-5d95-e211-a939-e4115bead28a', 'name': 'Netherlands', 'disabled_on': None}, {'id': '1a50bdb8-5d95-e211-a939-e4115bead28a', 'name': 'Netherlands Antilles', 'disabled_on': None}, {'id': '1b50bdb8-5d95-e211-a939-e4115bead28a', 'name': 'New Caledonia', 'disabled_on': None}, {'id': '1c50bdb8-5d95-e211-a939-e4115bead28a', 'name': 'New Zealand', 'disabled_on': None}, {'id': '1d50bdb8-5d95-e211-a939-e4115bead28a', 'name': 'Nicaragua', 'disabled_on': None}, {'id': '4461b8be-5d95-e211-a939-e4115bead28a', 'name': 'Niger', 'disabled_on': None}, {'id': '4561b8be-5d95-e211-a939-e4115bead28a', 'name': 'Nigeria', 'disabled_on': None}, {'id': '4661b8be-5d95-e211-a939-e4115bead28a', 'name': 'Niue', 'disabled_on': None}, {'id': '4761b8be-5d95-e211-a939-e4115bead28a', 'name': 'Norfolk Island', 'disabled_on': None}, {'id': '4861b8be-5d95-e211-a939-e4115bead28a', 'name': 'Northern Mariana Islands', 'disabled_on': None}, {'id': '4961b8be-5d95-e211-a939-e4115bead28a', 'name': 'Norway', 'disabled_on': None}, {'id': '35afd8d0-5d95-e211-a939-e4115bead28a', 'name': 'Occupied Palestinian Territories', 'disabled_on': None}, {'id': '4a61b8be-5d95-e211-a939-e4115bead28a', 'name': 'Oman', 'disabled_on': None}, {'id': '4b61b8be-5d95-e211-a939-e4115bead28a', 'name': 'Pakistan', 'disabled_on': None}, {'id': '4c61b8be-5d95-e211-a939-e4115bead28a', 'name': 'Palau', 'disabled_on': None}, {'id': '4d61b8be-5d95-e211-a939-e4115bead28a', 'name': 'Panama', 'disabled_on': None}, {'id': '4e61b8be-5d95-e211-a939-e4115bead28a', 'name': 'Papua New Guinea', 'disabled_on': None}, {'id': '4f61b8be-5d95-e211-a939-e4115bead28a', 'name': 'Paraguay', 'disabled_on': None}, {'id': '5061b8be-5d95-e211-a939-e4115bead28a', 'name': 'Peru', 'disabled_on': None}, {'id': '5161b8be-5d95-e211-a939-e4115bead28a', 'name': 'Philippines', 'disabled_on': None}, {'id': '5261b8be-5d95-e211-a939-e4115bead28a', 'name': 'Pitcairn, Henderson, Ducie and Oeno Islands', 'disabled_on': None}, {'id': '5361b8be-5d95-e211-a939-e4115bead28a', 'name': 'Poland', 'disabled_on': None}, {'id': '5461b8be-5d95-e211-a939-e4115bead28a', 'name': 'Portugal', 'disabled_on': None}, {'id': '5561b8be-5d95-e211-a939-e4115bead28a', 'name': 'Puerto Rico', 'disabled_on': None}, {'id': '5661b8be-5d95-e211-a939-e4115bead28a', 'name': 'Qatar', 'disabled_on': None}, {'id': '5761b8be-5d95-e211-a939-e4115bead28a', 'name': 'Reunion', 'disabled_on': None}, {'id': '5861b8be-5d95-e211-a939-e4115bead28a', 'name': 'Romania', 'disabled_on': None}, {'id': '5961b8be-5d95-e211-a939-e4115bead28a', 'name': 'Russia', 'disabled_on': None}, {'id': '5a61b8be-5d95-e211-a939-e4115bead28a', 'name': 'Rwanda', 'disabled_on': None}, {'id': '5b61b8be-5d95-e211-a939-e4115bead28a', 'name': 'Samoa', 'disabled_on': None}, {'id': '5c61b8be-5d95-e211-a939-e4115bead28a', 'name': 'San Marino', 'disabled_on': None}, {'id': '5d61b8be-5d95-e211-a939-e4115bead28a', 'name': 'Sao Tome and Principe', 'disabled_on': None}, {'id': '1a0be5c4-5d95-e211-a939-e4115bead28a', 'name': 'Saudi Arabia', 'disabled_on': None}, {'id': '1b0be5c4-5d95-e211-a939-e4115bead28a', 'name': 'Senegal', 'disabled_on': None}, {'id': '1c0be5c4-5d95-e211-a939-e4115bead28a', 'name': 'Serbia', 'disabled_on': None}, {'id': '1d0be5c4-5d95-e211-a939-e4115bead28a', 'name': 'Seychelles', 'disabled_on': None}, {'id': '1e0be5c4-5d95-e211-a939-e4115bead28a', 'name': 'Sierra Leone', 'disabled_on': None}, {'id': '1f0be5c4-5d95-e211-a939-e4115bead28a', 'name': 'Singapore', 'disabled_on': None}, {'id': '200be5c4-5d95-e211-a939-e4115bead28a', 'name': 'Slovakia', 'disabled_on': None}, {'id': '210be5c4-5d95-e211-a939-e4115bead28a', 'name': 'Slovenia', 'disabled_on': None}, {'id': '220be5c4-5d95-e211-a939-e4115bead28a', 'name': 'Solomon Islands', 'disabled_on': None}, {'id': '230be5c4-5d95-e211-a939-e4115bead28a', 'name': 'Somalia', 'disabled_on': None}, {'id': '240be5c4-5d95-e211-a939-e4115bead28a', 'name': 'South Africa', 'disabled_on': None}, {'id': '250be5c4-5d95-e211-a939-e4115bead28a', 'name': 'South Georgia and South Sandwich Islands', 'disabled_on': None}, {'id': '86756b9a-5d95-e211-a939-e4115bead28a', 'name': 'Spain', 'disabled_on': None}, {'id': '260be5c4-5d95-e211-a939-e4115bead28a', 'name': 'Sri Lanka', 'disabled_on': None}, {'id': '7b756b9a-5d95-e211-a939-e4115bead28a', 'name': 'St Barthelemy', 'disabled_on': None}, {'id': '270be5c4-5d95-e211-a939-e4115bead28a', 'name': 'St Helena', 'disabled_on': None}, {'id': '280be5c4-5d95-e211-a939-e4115bead28a', 'name': 'St Kitts and Nevis', 'disabled_on': None}, {'id': '290be5c4-5d95-e211-a939-e4115bead28a', 'name': 'St Lucia', 'disabled_on': None}, {'id': '7c756b9a-5d95-e211-a939-e4115bead28a', 'name': 'St Martin', 'disabled_on': None}, {'id': '2a0be5c4-5d95-e211-a939-e4115bead28a', 'name': 'St Pierre and Miquelon', 'disabled_on': None}, {'id': '2b0be5c4-5d95-e211-a939-e4115bead28a', 'name': 'St Vincent', 'disabled_on': None}, {'id': '2c0be5c4-5d95-e211-a939-e4115bead28a', 'name': 'Sudan', 'disabled_on': None}, {'id': '7e756b9a-5d95-e211-a939-e4115bead28a', 'name': 'Sudan, South', 'disabled_on': None}, {'id': '2d0be5c4-5d95-e211-a939-e4115bead28a', 'name': 'Surinam', 'disabled_on': None}, {'id': '2e0be5c4-5d95-e211-a939-e4115bead28a', 'name': 'Svalbard and Jan Mayen Islands', 'disabled_on': None}, {'id': '2f0be5c4-5d95-e211-a939-e4115bead28a', 'name': 'Swaziland', 'disabled_on': None}, {'id': '300be5c4-5d95-e211-a939-e4115bead28a', 'name': 'Sweden', 'disabled_on': None}, {'id': '310be5c4-5d95-e211-a939-e4115bead28a', 'name': 'Switzerland', 'disabled_on': None}, {'id': 'a46ee1ca-5d95-e211-a939-e4115bead28a', 'name': 'Syria', 'disabled_on': None}, {'id': 'a56ee1ca-5d95-e211-a939-e4115bead28a', 'name': 'Taiwan', 'disabled_on': None}, {'id': 'a66ee1ca-5d95-e211-a939-e4115bead28a', 'name': 'Tajikistan', 'disabled_on': None}, {'id': 'a76ee1ca-5d95-e211-a939-e4115bead28a', 'name': 'Tanzania', 'disabled_on': None}, {'id': '76756b9a-5d95-e211-a939-e4115bead28a', 'name': 'TEST', 'disabled_on': None}, {'id': 'a86ee1ca-5d95-e211-a939-e4115bead28a', 'name': 'Thailand', 'disabled_on': None}, {'id': 'a96ee1ca-5d95-e211-a939-e4115bead28a', 'name': 'Togo', 'disabled_on': None}, {'id': 'aa6ee1ca-5d95-e211-a939-e4115bead28a', 'name': 'Tokelau', 'disabled_on': None}, {'id': 'ab6ee1ca-5d95-e211-a939-e4115bead28a', 'name': 'Tonga', 'disabled_on': None}, {'id': 'ac6ee1ca-5d95-e211-a939-e4115bead28a', 'name': 'Trinidad and Tobago', 'disabled_on': None}, {'id': 'ad6ee1ca-5d95-e211-a939-e4115bead28a', 'name': 'Tunisia', 'disabled_on': None}, {'id': 'ae6ee1ca-5d95-e211-a939-e4115bead28a', 'name': 'Turkey', 'disabled_on': None}, {'id': 'af6ee1ca-5d95-e211-a939-e4115bead28a', 'name': 'Turkmenistan', 'disabled_on': None}, {'id': 'b06ee1ca-5d95-e211-a939-e4115bead28a', 'name': 'Turks and Caicos Islands', 'disabled_on': None}, {'id': 'b16ee1ca-5d95-e211-a939-e4115bead28a', 'name': 'Tuvalu', 'disabled_on': None}, {'id': 'b26ee1ca-5d95-e211-a939-e4115bead28a', 'name': 'Uganda', 'disabled_on': None}, {'id': 'b36ee1ca-5d95-e211-a939-e4115bead28a', 'name': 'Ukraine', 'disabled_on': None}, {'id': 'b46ee1ca-5d95-e211-a939-e4115bead28a', 'name': 'United Arab Emirates', 'disabled_on': None}, {'id': '80756b9a-5d95-e211-a939-e4115bead28a', 'name': 'United Kingdom', 'disabled_on': None}, {'id': '81756b9a-5d95-e211-a939-e4115bead28a', 'name': 'United States', 'disabled_on': None}, {'id': 'b56ee1ca-5d95-e211-a939-e4115bead28a', 'name': 'United States Minor Outlying Islands', 'disabled_on': None}, {'id': 'b66ee1ca-5d95-e211-a939-e4115bead28a', 'name': 'Uruguay', 'disabled_on': None}, {'id': 'b76ee1ca-5d95-e211-a939-e4115bead28a', 'name': 'Uzbekistan', 'disabled_on': None}, {'id': 'b86ee1ca-5d95-e211-a939-e4115bead28a', 'name': 'Vanuatu', 'disabled_on': None}, {'id': 'eef682ac-5d95-e211-a939-e4115bead28a', 'name': 'Vatican City', 'disabled_on': None}, {'id': 'b96ee1ca-5d95-e211-a939-e4115bead28a', 'name': 'Venezuela', 'disabled_on': None}, {'id': 'ba6ee1ca-5d95-e211-a939-e4115bead28a', 'name': 'Vietnam', 'disabled_on': None}, {'id': 'bb6ee1ca-5d95-e211-a939-e4115bead28a', 'name': 'Virgin Islands (US)', 'disabled_on': None}, {'id': '34afd8d0-5d95-e211-a939-e4115bead28a', 'name': 'Wallis and Futuna', 'disabled_on': None}, {'id': '36afd8d0-5d95-e211-a939-e4115bead28a', 'name': 'Western Sahara', 'disabled_on': None}, {'id': '37afd8d0-5d95-e211-a939-e4115bead28a', 'name': 'Yemen', 'disabled_on': None}, {'id': '38afd8d0-5d95-e211-a939-e4115bead28a', 'name': 'Zambia', 'disabled_on': None}, {'id': '39afd8d0-5d95-e211-a939-e4115bead28a', 'name': 'Zimbabwe', 'disabled_on': None}, ] dh_uk_regions = [ {'id': '934cd12a-6095-e211-a939-e4115bead28a', 'name': 'Alderney', 'disabled_on': None}, {'id': '1718e330-6095-e211-a939-e4115bead28a', 'name': 'All', 'disabled_on': None}, {'id': '8b4cd12a-6095-e211-a939-e4115bead28a', 'name': 'Channel Islands', 'disabled_on': None}, {'id': '844cd12a-6095-e211-a939-e4115bead28a', 'name': 'East Midlands', 'disabled_on': None}, {'id': '864cd12a-6095-e211-a939-e4115bead28a', 'name': 'East of England', 'disabled_on': None}, {'id': '8a4cd12a-6095-e211-a939-e4115bead28a', 'name': 'England', 'disabled_on': None}, {'id': '804cd12a-6095-e211-a939-e4115bead28a', 'name': 'FDI Hub', 'disabled_on': None}, {'id': '904cd12a-6095-e211-a939-e4115bead28a', 'name': 'Guernsey', 'disabled_on': None}, {'id': '8f4cd12a-6095-e211-a939-e4115bead28a', 'name': 'Isle of Man', 'disabled_on': None}, {'id': '924cd12a-6095-e211-a939-e4115bead28a', 'name': 'Jersey', 'disabled_on': None}, {'id': '874cd12a-6095-e211-a939-e4115bead28a', 'name': 'London', 'disabled_on': None}, {'id': '814cd12a-6095-e211-a939-e4115bead28a', 'name': 'North East', 'disabled_on': None}, {'id': '8e4cd12a-6095-e211-a939-e4115bead28a', 'name': 'Northern Ireland', 'disabled_on': None}, {'id': '824cd12a-6095-e211-a939-e4115bead28a', 'name': 'North West', 'disabled_on': None}, {'id': '914cd12a-6095-e211-a939-e4115bead28a', 'name': 'Sark', 'disabled_on': None}, {'id': '8c4cd12a-6095-e211-a939-e4115bead28a', 'name': 'Scotland', 'disabled_on': None}, {'id': '884cd12a-6095-e211-a939-e4115bead28a', 'name': 'South East', 'disabled_on': None}, {'id': '894cd12a-6095-e211-a939-e4115bead28a', 'name': 'South West', 'disabled_on': None}, {'id': 'e1dd40e9-3dfd-e311-8a2b-e4115bead28a', 'name': 'UKTI Dubai Hub', 'disabled_on': None}, {'id': '8d4cd12a-6095-e211-a939-e4115bead28a', 'name': 'Wales', 'disabled_on': None}, {'id': '854cd12a-6095-e211-a939-e4115bead28a', 'name': 'West Midlands', 'disabled_on': None}, {'id': '834cd12a-6095-e211-a939-e4115bead28a', 'name': 'Yorkshire and The Humber', 'disabled_on': None}, ] def first_import_of_dh_data(apps, schema_editor): UKRegion = apps.get_model('fdi', 'UKRegion') Sector = apps.get_model('fdi', 'Sector') Country = apps.get_model('fdi', 'Country') for sector in dh_sectors: Sector(id=sector['id'], name=sector['name']).save() for country in dh_countries: Country( id=country['id'], name=country['name'], iso_code=datahub_country_iso_code(country['name'])).save() for region in dh_uk_regions: UKRegion(id=region['id'], name=region['name']).save() class Migration(migrations.Migration): dependencies = [ ('fdi', '0018_auto_20171012_1430'), ] operations = [ migrations.RunPython(first_import_of_dh_data), ]
106.30087
195
0.68336
7,262
61,123
5.673919
0.172267
0.205417
0.17974
0.204252
0.630643
0.372537
0.314193
0.289632
0.253131
0.172338
0
0.195004
0.116552
61,123
574
196
106.486063
0.568048
0.001113
0
0
1
0
0.707692
0.312308
0
0
0
0
0
1
0.001789
false
0
0.010733
0
0.017889
0
0
0
0
null
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
1
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
4cccaa787589d56b9e3924df332438a321c9967e
126
py
Python
benchmark_cythonize.py
camlorn/collision_tutorial
f37c44010ebe2b4f08c9ed7582594cd9a7f446aa
[ "Unlicense" ]
3
2020-12-20T02:27:55.000Z
2020-12-24T16:54:32.000Z
benchmark_cythonize.py
ahicks92/collision_tutorial
f37c44010ebe2b4f08c9ed7582594cd9a7f446aa
[ "Unlicense" ]
null
null
null
benchmark_cythonize.py
ahicks92/collision_tutorial
f37c44010ebe2b4f08c9ed7582594cd9a7f446aa
[ "Unlicense" ]
1
2020-11-26T23:42:23.000Z
2020-11-26T23:42:23.000Z
import pyximport pyximport.install(pyimport=True, load_py_module_on_import_failure=True) import benchmark benchmark.main()
15.75
71
0.849206
17
126
6
0.705882
0
0
0
0
0
0
0
0
0
0
0
0.079365
126
7
72
18
0.87931
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.75
0
0.75
0
1
0
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
1
0
1
0
0
5
4cd2b9afbd5f0dea1685289da9abbcab30c5f8a9
123
py
Python
secretsanta/__init__.py
tylerparsons/secretsanta
9a31e31f56e15bf199830f9e49393f1774c3ead1
[ "MIT" ]
1
2017-12-16T17:01:41.000Z
2017-12-16T17:01:41.000Z
secretsanta/__init__.py
tylerparsons/secretsanta
9a31e31f56e15bf199830f9e49393f1774c3ead1
[ "MIT" ]
null
null
null
secretsanta/__init__.py
tylerparsons/secretsanta
9a31e31f56e15bf199830f9e49393f1774c3ead1
[ "MIT" ]
null
null
null
from connection import Connection from connectiongraph import ConnectionGraph from secretsanta import SecretSanta
30.75
43
0.829268
12
123
8.5
0.416667
0
0
0
0
0
0
0
0
0
0
0
0.170732
123
3
44
41
1
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
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
5
4cdd044f2431781e8954e320ae2988f2e476bb47
1,893
py
Python
dev tests/timer_resolution.py
ElliotGarbus/MidiClockGenerator
440ac1c731170e56434f0326add65d7f0a263e14
[ "MIT" ]
9
2019-11-20T00:37:41.000Z
2021-11-20T17:16:57.000Z
dev tests/timer_resolution.py
ElliotGarbus/MidiClockGenerator
440ac1c731170e56434f0326add65d7f0a263e14
[ "MIT" ]
null
null
null
dev tests/timer_resolution.py
ElliotGarbus/MidiClockGenerator
440ac1c731170e56434f0326add65d7f0a263e14
[ "MIT" ]
1
2020-11-21T12:08:15.000Z
2020-11-21T12:08:15.000Z
import math import time LOOPS = 10 ** 6 print(f'time.time_ns(): {time.time_ns()}') print(f'time.time(): {time.time()}') print(f'time.perf_counter_ns(): {time.perf_counter_ns()}') print(f'time.perf_counter(): {time.perf_counter()}') print(f'time.monotonic_ns(): {time.monotonic_ns()}') print(f'time.monotonic(): {time.monotonic()}') print(f'time.process_time_ns(): {time.process_time_ns()}') print(f'time.process_time(): {time.process_time()}\n') min_dt = [abs(time.time_ns() - time.time_ns()) for _ in range(LOOPS)] min_dt = min([dt for dt in min_dt if dt != 0]) print(f'min time_ns() delta: {min_dt} ns') min_dt = [abs(time.time() - time.time()) for _ in range(LOOPS)] min_dt = min([dt for dt in min_dt if dt != 0]) print(f'min time() delta: {math.ceil(min_dt * 1e9)} ns') min_dt = [abs(time.perf_counter_ns() - time.perf_counter_ns()) for _ in range(LOOPS)] min_dt = min([dt for dt in min_dt if dt != 0]) print(f'min perf_counter_ns() delta: {min_dt} ns') min_dt = [abs(time.perf_counter() - time.perf_counter()) for _ in range(LOOPS)] min_dt = min([dt for dt in min_dt if dt != 0]) print(f'min perf_counter() delta: {math.ceil(min_dt * 1e9)} ns') min_dt = [abs(time.monotonic_ns() - time.monotonic_ns()) for _ in range(LOOPS)] min_dt = min([dt for dt in min_dt if dt != 0]) print(f'min monotonic_ns() delta: {min_dt} ns') min_dt = [abs(time.monotonic() - time.monotonic()) for _ in range(LOOPS)] min_dt = min([dt for dt in min_dt if dt != 0]) print(f'min monotonic() delta: {math.ceil(min_dt * 1e9)} ns') min_dt = [abs(time.process_time_ns() - time.process_time_ns()) for _ in range(LOOPS)] min_dt = min([dt for dt in min_dt if dt != 0]) print(f'min process_time_ns() delta: {min_dt} ns') min_dt = [abs(time.process_time() - time.process_time()) for _ in range(LOOPS)] min_dt = min([dt for dt in min_dt if dt != 0]) print(f'min process_time() delta: {math.ceil(min_dt * 1e9)} ns')
42.066667
85
0.679873
356
1,893
3.390449
0.070225
0.1657
0.06628
0.079536
0.915493
0.877382
0.725766
0.707539
0.589064
0.545982
0
0.011508
0.127839
1,893
45
86
42.066667
0.719564
0
0
0.228571
0
0
0.354805
0.083949
0
0
0
0
0
1
0
false
0
0.057143
0
0.057143
0.457143
0
0
0
null
0
0
0
1
1
1
1
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
5
4cff89ec4064483494170287c4207519ab04322d
29
py
Python
hzncui/__main__.py
joewxboy/hzncui
e38588581472ea95a3b297fb3f08d5f165045833
[ "Apache-2.0" ]
1
2022-02-21T21:38:28.000Z
2022-02-21T21:38:28.000Z
hzncui/__main__.py
joewxboy/hzncui
e38588581472ea95a3b297fb3f08d5f165045833
[ "Apache-2.0" ]
null
null
null
hzncui/__main__.py
joewxboy/hzncui
e38588581472ea95a3b297fb3f08d5f165045833
[ "Apache-2.0" ]
null
null
null
import hzncui hzncui.main()
7.25
13
0.758621
4
29
5.5
0.75
0
0
0
0
0
0
0
0
0
0
0
0.137931
29
3
14
9.666667
0.88
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
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
1
0
0
0
0
5
980254bfe1eafb5a863babb3b9ed4ef4b0e785f7
17,341
py
Python
google/ads/google_ads/v6/proto/resources/batch_job_pb2.py
arammaliachi/google-ads-python
a4fe89567bd43eb784410523a6306b5d1dd9ee67
[ "Apache-2.0" ]
null
null
null
google/ads/google_ads/v6/proto/resources/batch_job_pb2.py
arammaliachi/google-ads-python
a4fe89567bd43eb784410523a6306b5d1dd9ee67
[ "Apache-2.0" ]
null
null
null
google/ads/google_ads/v6/proto/resources/batch_job_pb2.py
arammaliachi/google-ads-python
a4fe89567bd43eb784410523a6306b5d1dd9ee67
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/ads/googleads/v6/resources/batch_job.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from google.ads.google_ads.v6.proto.enums import batch_job_status_pb2 as google_dot_ads_dot_googleads_dot_v6_dot_enums_dot_batch__job__status__pb2 from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 DESCRIPTOR = _descriptor.FileDescriptor( name='google/ads/googleads/v6/resources/batch_job.proto', package='google.ads.googleads.v6.resources', syntax='proto3', serialized_options=b'\n%com.google.ads.googleads.v6.resourcesB\rBatchJobProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V6.Resources\312\002!Google\\Ads\\GoogleAds\\V6\\Resources\352\002%Google::Ads::GoogleAds::V6::Resources', create_key=_descriptor._internal_create_key, serialized_pb=b'\n1google/ads/googleads/v6/resources/batch_job.proto\x12!google.ads.googleads.v6.resources\x1a\x34google/ads/googleads/v6/enums/batch_job_status.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1cgoogle/api/annotations.proto\"\x92\x07\n\x08\x42\x61tchJob\x12@\n\rresource_name\x18\x01 \x01(\tB)\xe0\x41\x05\xfa\x41#\n!googleads.googleapis.com/BatchJob\x12\x14\n\x02id\x18\x07 \x01(\x03\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12)\n\x17next_add_sequence_token\x18\x08 \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12S\n\x08metadata\x18\x04 \x01(\x0b\x32<.google.ads.googleads.v6.resources.BatchJob.BatchJobMetadataB\x03\xe0\x41\x03\x12U\n\x06status\x18\x05 \x01(\x0e\x32@.google.ads.googleads.v6.enums.BatchJobStatusEnum.BatchJobStatusB\x03\xe0\x41\x03\x12(\n\x16long_running_operation\x18\t \x01(\tB\x03\xe0\x41\x03H\x02\x88\x01\x01\x1a\x94\x03\n\x10\x42\x61tchJobMetadata\x12$\n\x12\x63reation_date_time\x18\x08 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12!\n\x0fstart_date_time\x18\x07 \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12&\n\x14\x63ompletion_date_time\x18\t \x01(\tB\x03\xe0\x41\x03H\x02\x88\x01\x01\x12,\n\x1a\x65stimated_completion_ratio\x18\n \x01(\x01\x42\x03\xe0\x41\x03H\x03\x88\x01\x01\x12!\n\x0foperation_count\x18\x0b \x01(\x03\x42\x03\xe0\x41\x03H\x04\x88\x01\x01\x12*\n\x18\x65xecuted_operation_count\x18\x0c \x01(\x03\x42\x03\xe0\x41\x03H\x05\x88\x01\x01\x42\x15\n\x13_creation_date_timeB\x12\n\x10_start_date_timeB\x17\n\x15_completion_date_timeB\x1d\n\x1b_estimated_completion_ratioB\x12\n\x10_operation_countB\x1b\n\x19_executed_operation_count:X\xea\x41U\n!googleads.googleapis.com/BatchJob\x12\x30\x63ustomers/{customer_id}/batchJobs/{batch_job_id}B\x05\n\x03_idB\x1a\n\x18_next_add_sequence_tokenB\x19\n\x17_long_running_operationB\xfa\x01\n%com.google.ads.googleads.v6.resourcesB\rBatchJobProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V6.Resources\xca\x02!Google\\Ads\\GoogleAds\\V6\\Resources\xea\x02%Google::Ads::GoogleAds::V6::Resourcesb\x06proto3' , dependencies=[google_dot_ads_dot_googleads_dot_v6_dot_enums_dot_batch__job__status__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) _BATCHJOB_BATCHJOBMETADATA = _descriptor.Descriptor( name='BatchJobMetadata', full_name='google.ads.googleads.v6.resources.BatchJob.BatchJobMetadata', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='creation_date_time', full_name='google.ads.googleads.v6.resources.BatchJob.BatchJobMetadata.creation_date_time', index=0, number=8, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=b'\340A\003', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='start_date_time', full_name='google.ads.googleads.v6.resources.BatchJob.BatchJobMetadata.start_date_time', index=1, number=7, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=b'\340A\003', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='completion_date_time', full_name='google.ads.googleads.v6.resources.BatchJob.BatchJobMetadata.completion_date_time', index=2, number=9, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=b'\340A\003', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='estimated_completion_ratio', full_name='google.ads.googleads.v6.resources.BatchJob.BatchJobMetadata.estimated_completion_ratio', index=3, number=10, type=1, cpp_type=5, label=1, has_default_value=False, default_value=float(0), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=b'\340A\003', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='operation_count', full_name='google.ads.googleads.v6.resources.BatchJob.BatchJobMetadata.operation_count', index=4, number=11, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=b'\340A\003', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='executed_operation_count', full_name='google.ads.googleads.v6.resources.BatchJob.BatchJobMetadata.executed_operation_count', index=5, number=12, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=b'\340A\003', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ _descriptor.OneofDescriptor( name='_creation_date_time', full_name='google.ads.googleads.v6.resources.BatchJob.BatchJobMetadata._creation_date_time', index=0, containing_type=None, create_key=_descriptor._internal_create_key, fields=[]), _descriptor.OneofDescriptor( name='_start_date_time', full_name='google.ads.googleads.v6.resources.BatchJob.BatchJobMetadata._start_date_time', index=1, containing_type=None, create_key=_descriptor._internal_create_key, fields=[]), _descriptor.OneofDescriptor( name='_completion_date_time', full_name='google.ads.googleads.v6.resources.BatchJob.BatchJobMetadata._completion_date_time', index=2, containing_type=None, create_key=_descriptor._internal_create_key, fields=[]), _descriptor.OneofDescriptor( name='_estimated_completion_ratio', full_name='google.ads.googleads.v6.resources.BatchJob.BatchJobMetadata._estimated_completion_ratio', index=3, containing_type=None, create_key=_descriptor._internal_create_key, fields=[]), _descriptor.OneofDescriptor( name='_operation_count', full_name='google.ads.googleads.v6.resources.BatchJob.BatchJobMetadata._operation_count', index=4, containing_type=None, create_key=_descriptor._internal_create_key, fields=[]), _descriptor.OneofDescriptor( name='_executed_operation_count', full_name='google.ads.googleads.v6.resources.BatchJob.BatchJobMetadata._executed_operation_count', index=5, containing_type=None, create_key=_descriptor._internal_create_key, fields=[]), ], serialized_start=591, serialized_end=995, ) _BATCHJOB = _descriptor.Descriptor( name='BatchJob', full_name='google.ads.googleads.v6.resources.BatchJob', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='resource_name', full_name='google.ads.googleads.v6.resources.BatchJob.resource_name', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=b'\340A\005\372A#\n!googleads.googleapis.com/BatchJob', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='id', full_name='google.ads.googleads.v6.resources.BatchJob.id', index=1, number=7, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=b'\340A\003', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='next_add_sequence_token', full_name='google.ads.googleads.v6.resources.BatchJob.next_add_sequence_token', index=2, number=8, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=b'\340A\003', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='metadata', full_name='google.ads.googleads.v6.resources.BatchJob.metadata', index=3, number=4, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=b'\340A\003', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='status', full_name='google.ads.googleads.v6.resources.BatchJob.status', index=4, number=5, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=b'\340A\003', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='long_running_operation', full_name='google.ads.googleads.v6.resources.BatchJob.long_running_operation', index=5, number=9, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=b'\340A\003', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[_BATCHJOB_BATCHJOBMETADATA, ], enum_types=[ ], serialized_options=b'\352AU\n!googleads.googleapis.com/BatchJob\0220customers/{customer_id}/batchJobs/{batch_job_id}', is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ _descriptor.OneofDescriptor( name='_id', full_name='google.ads.googleads.v6.resources.BatchJob._id', index=0, containing_type=None, create_key=_descriptor._internal_create_key, fields=[]), _descriptor.OneofDescriptor( name='_next_add_sequence_token', full_name='google.ads.googleads.v6.resources.BatchJob._next_add_sequence_token', index=1, containing_type=None, create_key=_descriptor._internal_create_key, fields=[]), _descriptor.OneofDescriptor( name='_long_running_operation', full_name='google.ads.googleads.v6.resources.BatchJob._long_running_operation', index=2, containing_type=None, create_key=_descriptor._internal_create_key, fields=[]), ], serialized_start=233, serialized_end=1147, ) _BATCHJOB_BATCHJOBMETADATA.containing_type = _BATCHJOB _BATCHJOB_BATCHJOBMETADATA.oneofs_by_name['_creation_date_time'].fields.append( _BATCHJOB_BATCHJOBMETADATA.fields_by_name['creation_date_time']) _BATCHJOB_BATCHJOBMETADATA.fields_by_name['creation_date_time'].containing_oneof = _BATCHJOB_BATCHJOBMETADATA.oneofs_by_name['_creation_date_time'] _BATCHJOB_BATCHJOBMETADATA.oneofs_by_name['_start_date_time'].fields.append( _BATCHJOB_BATCHJOBMETADATA.fields_by_name['start_date_time']) _BATCHJOB_BATCHJOBMETADATA.fields_by_name['start_date_time'].containing_oneof = _BATCHJOB_BATCHJOBMETADATA.oneofs_by_name['_start_date_time'] _BATCHJOB_BATCHJOBMETADATA.oneofs_by_name['_completion_date_time'].fields.append( _BATCHJOB_BATCHJOBMETADATA.fields_by_name['completion_date_time']) _BATCHJOB_BATCHJOBMETADATA.fields_by_name['completion_date_time'].containing_oneof = _BATCHJOB_BATCHJOBMETADATA.oneofs_by_name['_completion_date_time'] _BATCHJOB_BATCHJOBMETADATA.oneofs_by_name['_estimated_completion_ratio'].fields.append( _BATCHJOB_BATCHJOBMETADATA.fields_by_name['estimated_completion_ratio']) _BATCHJOB_BATCHJOBMETADATA.fields_by_name['estimated_completion_ratio'].containing_oneof = _BATCHJOB_BATCHJOBMETADATA.oneofs_by_name['_estimated_completion_ratio'] _BATCHJOB_BATCHJOBMETADATA.oneofs_by_name['_operation_count'].fields.append( _BATCHJOB_BATCHJOBMETADATA.fields_by_name['operation_count']) _BATCHJOB_BATCHJOBMETADATA.fields_by_name['operation_count'].containing_oneof = _BATCHJOB_BATCHJOBMETADATA.oneofs_by_name['_operation_count'] _BATCHJOB_BATCHJOBMETADATA.oneofs_by_name['_executed_operation_count'].fields.append( _BATCHJOB_BATCHJOBMETADATA.fields_by_name['executed_operation_count']) _BATCHJOB_BATCHJOBMETADATA.fields_by_name['executed_operation_count'].containing_oneof = _BATCHJOB_BATCHJOBMETADATA.oneofs_by_name['_executed_operation_count'] _BATCHJOB.fields_by_name['metadata'].message_type = _BATCHJOB_BATCHJOBMETADATA _BATCHJOB.fields_by_name['status'].enum_type = google_dot_ads_dot_googleads_dot_v6_dot_enums_dot_batch__job__status__pb2._BATCHJOBSTATUSENUM_BATCHJOBSTATUS _BATCHJOB.oneofs_by_name['_id'].fields.append( _BATCHJOB.fields_by_name['id']) _BATCHJOB.fields_by_name['id'].containing_oneof = _BATCHJOB.oneofs_by_name['_id'] _BATCHJOB.oneofs_by_name['_next_add_sequence_token'].fields.append( _BATCHJOB.fields_by_name['next_add_sequence_token']) _BATCHJOB.fields_by_name['next_add_sequence_token'].containing_oneof = _BATCHJOB.oneofs_by_name['_next_add_sequence_token'] _BATCHJOB.oneofs_by_name['_long_running_operation'].fields.append( _BATCHJOB.fields_by_name['long_running_operation']) _BATCHJOB.fields_by_name['long_running_operation'].containing_oneof = _BATCHJOB.oneofs_by_name['_long_running_operation'] DESCRIPTOR.message_types_by_name['BatchJob'] = _BATCHJOB _sym_db.RegisterFileDescriptor(DESCRIPTOR) BatchJob = _reflection.GeneratedProtocolMessageType('BatchJob', (_message.Message,), { 'BatchJobMetadata' : _reflection.GeneratedProtocolMessageType('BatchJobMetadata', (_message.Message,), { 'DESCRIPTOR' : _BATCHJOB_BATCHJOBMETADATA, '__module__' : 'google.ads.googleads.v6.resources.batch_job_pb2' # @@protoc_insertion_point(class_scope:google.ads.googleads.v6.resources.BatchJob.BatchJobMetadata) }) , 'DESCRIPTOR' : _BATCHJOB, '__module__' : 'google.ads.googleads.v6.resources.batch_job_pb2' # @@protoc_insertion_point(class_scope:google.ads.googleads.v6.resources.BatchJob) }) _sym_db.RegisterMessage(BatchJob) _sym_db.RegisterMessage(BatchJob.BatchJobMetadata) DESCRIPTOR._options = None _BATCHJOB_BATCHJOBMETADATA.fields_by_name['creation_date_time']._options = None _BATCHJOB_BATCHJOBMETADATA.fields_by_name['start_date_time']._options = None _BATCHJOB_BATCHJOBMETADATA.fields_by_name['completion_date_time']._options = None _BATCHJOB_BATCHJOBMETADATA.fields_by_name['estimated_completion_ratio']._options = None _BATCHJOB_BATCHJOBMETADATA.fields_by_name['operation_count']._options = None _BATCHJOB_BATCHJOBMETADATA.fields_by_name['executed_operation_count']._options = None _BATCHJOB.fields_by_name['resource_name']._options = None _BATCHJOB.fields_by_name['id']._options = None _BATCHJOB.fields_by_name['next_add_sequence_token']._options = None _BATCHJOB.fields_by_name['metadata']._options = None _BATCHJOB.fields_by_name['status']._options = None _BATCHJOB.fields_by_name['long_running_operation']._options = None _BATCHJOB._options = None # @@protoc_insertion_point(module_scope)
63.288321
2,115
0.798282
2,318
17,341
5.57679
0.099223
0.023671
0.048735
0.063433
0.815657
0.779531
0.722673
0.672004
0.554112
0.481163
0
0.042034
0.083559
17,341
273
2,116
63.520147
0.771394
0.024278
0
0.52
1
0.012
0.342264
0.296073
0
0
0
0
0
1
0
false
0
0.032
0
0.032
0
0
0
0
null
0
0
0
1
1
1
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
9805c3415ceb8bdb42aa2843501a99ffbc5a13a2
48
py
Python
codeforces/gym/2020 ICPC Universidad Nacional de Colombia Programming Contest/gen.py
tysm/cpsols
262212646203e516d1706edf962290de93762611
[ "MIT" ]
4
2020-10-05T19:24:10.000Z
2021-07-15T00:45:43.000Z
codeforces/gym/2020 ICPC Universidad Nacional de Colombia Programming Contest/gen.py
tysm/cpsols
262212646203e516d1706edf962290de93762611
[ "MIT" ]
null
null
null
codeforces/gym/2020 ICPC Universidad Nacional de Colombia Programming Contest/gen.py
tysm/cpsols
262212646203e516d1706edf962290de93762611
[ "MIT" ]
null
null
null
n = 1e5 print(int(n)) st = "a"*int(n) print(st)
9.6
15
0.5625
11
48
2.454545
0.545455
0.296296
0
0
0
0
0
0
0
0
0
0.05
0.166667
48
4
16
12
0.625
0
0
0
0
0
0.020833
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
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
0
0
0
0
0
1
0
5
e23fcc8a37c22cd83153ed26250e07af40b50435
377
py
Python
Django/TrainingApp2/market/views.py
JuanManuel781/Frameworks-7a-2020
6e150fc37adba4b4b7423041b80ca0f695532479
[ "MIT" ]
null
null
null
Django/TrainingApp2/market/views.py
JuanManuel781/Frameworks-7a-2020
6e150fc37adba4b4b7423041b80ca0f695532479
[ "MIT" ]
null
null
null
Django/TrainingApp2/market/views.py
JuanManuel781/Frameworks-7a-2020
6e150fc37adba4b4b7423041b80ca0f695532479
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.http import HttpResponse # Create your views here. def index(request): # return HttpResponse("Welcome, To Market") return render(request, 'index.html',{}) def listar_categorias(request): return HttpResponse("LISTADO DE CATEGORIAS") def listar_productos(request): return HttpResponse(":::LISTADO DE PRODUCTOS::")
26.928571
52
0.753316
45
377
6.266667
0.533333
0.138298
0.265957
0.22695
0.241135
0
0
0
0
0
0
0
0.137931
377
14
52
26.928571
0.867692
0.172414
0
0
0
0
0.180645
0
0
0
0
0
0
1
0.375
false
0
0.25
0.375
1
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
1
0
0
0
1
1
0
0
5
e26827e735bffbf0e9568c99aac445f177bf7df2
252
py
Python
tests/test_extract_business.py
Baobab-team/baobab-api
e026182a5254ead0949c9b5b339c43a035ef71c8
[ "MIT" ]
null
null
null
tests/test_extract_business.py
Baobab-team/baobab-api
e026182a5254ead0949c9b5b339c43a035ef71c8
[ "MIT" ]
14
2019-12-12T03:30:16.000Z
2020-08-01T22:41:12.000Z
tests/test_extract_business.py
Baobab-team/baobab-api
e026182a5254ead0949c9b5b339c43a035ef71c8
[ "MIT" ]
null
null
null
from app.businesses.data import extract_business_from_csv def test_extract_business_from_csv(test_client, init_db, business, business_upload_file): businesses = extract_business_from_csv(business_upload_file) assert businesses[0] == business
36
89
0.837302
35
252
5.571429
0.485714
0.230769
0.292308
0.338462
0
0
0
0
0
0
0
0.004425
0.103175
252
6
90
42
0.858407
0
0
0
0
0
0
0
0
0
0
0
0.25
1
0.25
false
0
0.25
0
0.5
0
0
0
0
null
1
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
1
0
0
0
0
0
0
0
5
e276eecae8db7717628e27d8097999d02c599a10
130
py
Python
analytic_von_hamos/raytracing/__init__.py
fullerf/analytic_von_hamos
a8e26cf44a14902b0ce324f530c3d304de87c798
[ "MIT" ]
null
null
null
analytic_von_hamos/raytracing/__init__.py
fullerf/analytic_von_hamos
a8e26cf44a14902b0ce324f530c3d304de87c798
[ "MIT" ]
null
null
null
analytic_von_hamos/raytracing/__init__.py
fullerf/analytic_von_hamos
a8e26cf44a14902b0ce324f530c3d304de87c798
[ "MIT" ]
null
null
null
from .analytic import * from .bragg import * from .fitting import * __all__ = analytic.__all__ + bragg.__all__ + fitting.__all__
21.666667
60
0.753846
16
130
5.125
0.375
0.243902
0
0
0
0
0
0
0
0
0
0
0.153846
130
5
61
26
0.745455
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.75
0
0.75
0
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
1
0
1
0
0
5
2c508700c73eb34f62db756bd12ab610600f2cf8
79
py
Python
YouTubeFacesDB/__init__.py
vitay/YouTubeFacesDB
e7225e8d775ad64889fbee57a4452a25573a0360
[ "MIT" ]
11
2018-02-25T16:20:16.000Z
2021-07-27T02:46:09.000Z
YouTubeFacesDB/__init__.py
vitay/YouTubeFacesDB
e7225e8d775ad64889fbee57a4452a25573a0360
[ "MIT" ]
1
2018-12-14T19:56:16.000Z
2018-12-16T22:09:30.000Z
YouTubeFacesDB/__init__.py
vitay/YouTubeFacesDB
e7225e8d775ad64889fbee57a4452a25573a0360
[ "MIT" ]
3
2017-05-05T03:23:17.000Z
2019-11-11T01:39:25.000Z
from Generator import generate_ytf_database from Dataset import YouTubeFacesDB
26.333333
43
0.898734
10
79
6.9
0.8
0
0
0
0
0
0
0
0
0
0
0
0.101266
79
2
44
39.5
0.971831
0
0
0
1
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
2c8894f74907887581c4154ec9c594b78970de64
102
py
Python
setup.py
amaniCinetpay/SDK_api_paiement_cinetpay
0fb2bec39b2235dee4c12d53f06ff793807a4e2f
[ "MIT" ]
null
null
null
setup.py
amaniCinetpay/SDK_api_paiement_cinetpay
0fb2bec39b2235dee4c12d53f06ff793807a4e2f
[ "MIT" ]
null
null
null
setup.py
amaniCinetpay/SDK_api_paiement_cinetpay
0fb2bec39b2235dee4c12d53f06ff793807a4e2f
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup(name = 'cinetpay_sdk', packages = find_packages())
51
56
0.784314
13
102
5.923077
0.692308
0.311688
0
0
0
0
0
0
0
0
0
0
0.117647
102
2
56
51
0.855556
0
0
0
0
0
0.116505
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
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
1
0
1
0
0
0
0
5
e2f1c60446144f990d39c6b008503317439ff0ba
171
py
Python
tick/robust/base/__init__.py
sumau/tick
1b56924a35463e12f7775bc0aec182364f26f2c6
[ "BSD-3-Clause" ]
411
2017-03-30T15:22:05.000Z
2022-03-27T01:58:34.000Z
tick/robust/base/__init__.py
saurabhdash/tick
bbc561804eb1fdcb4c71b9e3e2d83a66e7b13a48
[ "BSD-3-Clause" ]
345
2017-04-13T14:53:20.000Z
2022-03-26T00:46:22.000Z
tick/robust/base/__init__.py
saurabhdash/tick
bbc561804eb1fdcb4c71b9e3e2d83a66e7b13a48
[ "BSD-3-Clause" ]
102
2017-04-25T11:47:53.000Z
2022-02-15T11:45:49.000Z
# License: BSD 3 clause from .learner_robust_glm import LearnerRobustGLM from .model_generalized_linear_with_intercepts import \ ModelGeneralizedLinearWithIntercepts
28.5
55
0.859649
18
171
7.833333
0.888889
0
0
0
0
0
0
0
0
0
0
0.006579
0.111111
171
5
56
34.2
0.921053
0.122807
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
1
0
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
1
0
1
0
0
5
e2f23a7d62c31b056fdbb94ed1a6ef53ff4df8e2
75
py
Python
qcfractal/interface/schema/__init__.py
ChayaSt/QCFractal
2d3c737b0e755d6e5bac743a0beb0714b5a92d0b
[ "BSD-3-Clause" ]
1
2018-03-23T21:24:13.000Z
2018-03-23T21:24:13.000Z
qcfractal/interface/schema/__init__.py
ChayaSt/QCFractal
2d3c737b0e755d6e5bac743a0beb0714b5a92d0b
[ "BSD-3-Clause" ]
null
null
null
qcfractal/interface/schema/__init__.py
ChayaSt/QCFractal
2d3c737b0e755d6e5bac743a0beb0714b5a92d0b
[ "BSD-3-Clause" ]
null
null
null
""" Base init for the projects schema's """ from .schema_getters import *
12.5
35
0.706667
11
75
4.727273
0.909091
0
0
0
0
0
0
0
0
0
0
0
0.173333
75
5
36
15
0.83871
0.466667
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
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
1
0
1
0
0
5
e2f399f13e2729d924404dc6939dd0c4e5236327
50
py
Python
brainframe_qt/ui/resources/ui_elements/widgets/dialogs/message/__init__.py
aotuai/brainframe-qt
082cfd0694e569122ff7c63e56dd0ec4b62d5bac
[ "BSD-3-Clause" ]
17
2021-02-11T18:19:22.000Z
2022-02-08T06:12:50.000Z
brainframe_qt/ui/resources/ui_elements/widgets/dialogs/message/__init__.py
aotuai/brainframe-qt
082cfd0694e569122ff7c63e56dd0ec4b62d5bac
[ "BSD-3-Clause" ]
80
2021-02-11T08:27:31.000Z
2021-10-13T21:33:22.000Z
brainframe_qt/ui/resources/ui_elements/widgets/dialogs/message/__init__.py
aotuai/brainframe-qt
082cfd0694e569122ff7c63e56dd0ec4b62d5bac
[ "BSD-3-Clause" ]
5
2021-02-12T09:51:34.000Z
2022-02-08T09:25:15.000Z
from .brainframe_message import BrainFrameMessage
25
49
0.9
5
50
8.8
1
0
0
0
0
0
0
0
0
0
0
0
0.08
50
1
50
50
0.956522
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
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
5
e2f739915c6c41a5a44e3b34fd13a5298416f614
28,783
py
Python
test.py
TheMatjaz/RangeForce
906b0e303d2e4eecac75dc4680f7d9b1a86bd79c
[ "BSD-3-Clause" ]
null
null
null
test.py
TheMatjaz/RangeForce
906b0e303d2e4eecac75dc4680f7d9b1a86bd79c
[ "BSD-3-Clause" ]
null
null
null
test.py
TheMatjaz/RangeForce
906b0e303d2e4eecac75dc4680f7d9b1a86bd79c
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Copyright © 2019-2020, Matjaž Guštin <dev@matjaz.it> <https://matjaz.it>. # Released under the BSD 3-Clause License """Unit tests of the rangeforce module.""" import math import unittest import rangeforce as rf class TestClip(unittest.TestCase): def test_in_range(self): self.assertEqual(2, rf.clip(2, 0, 3)) self.assertEqual(2, rf.clip(2, 1, 3)) self.assertEqual(2, rf.clip(2, 2, 3)) self.assertEqual(2, rf.clip(2, 2, 2)) self.assertEqual(3, rf.clip(3, 2, 3)) self.assertEqual(3, rf.clip(3, -22, 3)) def test_negative_in_range(self): self.assertEqual(-3, rf.clip(-3, -20, -1)) self.assertEqual(-3, rf.clip(-3, -5, -1)) self.assertEqual(-3, rf.clip(-3, -3, -2)) self.assertEqual(-3, rf.clip(-3, -3, -3)) self.assertEqual(-3, rf.clip(-3, -3, 1)) def test_smaller_than_range(self): self.assertEqual(10, rf.clip(5, 10, 20)) self.assertEqual(10, rf.clip(9, 10, 20)) self.assertEqual(10, rf.clip(0, 10, 20)) self.assertEqual(10, rf.clip(-10, 10, 20)) self.assertEqual(-10, rf.clip(-15, -10, 20)) def test_larger_than_range(self): self.assertEqual(20, rf.clip(30, 10, 20)) self.assertEqual(20, rf.clip(25, 10, 20)) self.assertEqual(20, rf.clip(21, -10, 20)) self.assertEqual(-20, rf.clip(-2, -50, -20)) self.assertEqual(-20, rf.clip(0, -50, -20)) self.assertEqual(-20, rf.clip(1, -50, -20)) class TestUnsignedInts(unittest.TestCase): def test_uint8(self): self.assertRaises(rf.RangeError, rf.uint8, -1) self.assertRaises(rf.RangeError, rf.uint8, -20) self.assertRaises(rf.RangeError, rf.uint8, 2 ** 8) self.assertRaises(rf.RangeError, rf.uint8, 300) self.assertRaises(FileNotFoundError, rf.uint8, 300, ex=FileNotFoundError) for i in range(0, 2 ** 8): self.assertEqual(i, rf.uint8(i)) self.assertIs(i, rf.uint8(i)) def test_uint16(self): self.assertRaises(rf.RangeError, rf.uint16, -1) self.assertRaises(rf.RangeError, rf.uint16, -20) self.assertRaises(rf.RangeError, rf.uint16, 2 ** 16) self.assertRaises(rf.RangeError, rf.uint16, 5446345) self.assertRaises(FileNotFoundError, rf.uint16, 5446345, ex=FileNotFoundError) for i in range(0, 2 ** 16): self.assertEqual(i, rf.uint16(i)) self.assertIs(i, rf.uint16(i)) def test_uint32(self): self.assertRaises(rf.RangeError, rf.uint32, -1) self.assertRaises(rf.RangeError, rf.uint32, -20) self.assertRaises(rf.RangeError, rf.uint32, 2 ** 32) self.assertRaises(rf.RangeError, rf.uint32, 45874349824936) self.assertRaises(FileNotFoundError, rf.uint32, 45874349824936, ex=FileNotFoundError) rf.uint32(0) rf.uint32(1) rf.uint32(2) rf.uint32(0xFFFFFFFE) rf.uint32(0xFFFFFFFF) for i in range(0, 0xFFFFFFFF, 4000): self.assertEqual(i, rf.uint32(i)) self.assertIs(i, rf.uint32(i)) def test_uint64(self): self.assertRaises(rf.RangeError, rf.uint64, -1) self.assertRaises(rf.RangeError, rf.uint64, -20) self.assertRaises(rf.RangeError, rf.uint64, 2 ** 64) self.assertRaises(rf.RangeError, rf.uint64, 345837634922573643925763492312573634) self.assertRaises(FileNotFoundError, rf.uint64, 345837634922573643925763492312573634, ex=FileNotFoundError) rf.uint64(0) rf.uint64(1) rf.uint64(2) rf.uint64(2 ** 64 - 2) rf.uint64(2 ** 64 - 1) for i in range(0, 0xFFFFFFFFFFFFFFFF, 30000000000000): self.assertEqual(i, rf.uint64(i)) self.assertIs(i, rf.uint64(i)) def test_uint_bits(self): self.assertRaises(rf.RangeError, rf.uint_bits, 8, 3) self.assertRaises(rf.RangeError, rf.uint_bits, 8, 2) self.assertRaises(rf.RangeError, rf.uint_bits, -1, 2) self.assertRaises(rf.RangeError, rf.uint_bits, -8, 2) self.assertRaises(FileNotFoundError, rf.uint_bits, -8, 2, ex=FileNotFoundError) for i in range(0, 8): self.assertEqual(i, rf.uint_bits(i, 3)) self.assertIs(i, rf.uint_bits(i, 3)) for i in range(0, 16): self.assertEqual(i, rf.uint_bits(i, 4)) self.assertIs(i, rf.uint_bits(i, 4)) class TestSignedInts(unittest.TestCase): def test_int8(self): self.assertRaises(rf.RangeError, rf.int8, -2 ** 7 - 1) self.assertRaises(rf.RangeError, rf.int8, -150) self.assertRaises(rf.RangeError, rf.int8, 2 ** 7) self.assertRaises(rf.RangeError, rf.int8, 1560) self.assertRaises(FileNotFoundError, rf.int8, 1560, ex=FileNotFoundError) for i in range(-128, 127): self.assertEqual(i, rf.int8(i)) self.assertIs(i, rf.int8(i)) def test_int16(self): self.assertRaises(rf.RangeError, rf.int16, -2 ** 15 - 1) self.assertRaises(rf.RangeError, rf.int16, -675832495) self.assertRaises(rf.RangeError, rf.int16, 2 ** 15) self.assertRaises(rf.RangeError, rf.int16, 5446345) self.assertRaises(FileNotFoundError, rf.int16, 5446345, ex=FileNotFoundError) for i in range(-32768, 32767): self.assertEqual(i, rf.int16(i)) self.assertIs(i, rf.int16(i)) def test_int32(self): self.assertRaises(rf.RangeError, rf.int32, -2 ** 31 - 1) self.assertRaises(rf.RangeError, rf.int32, 2 ** 31) self.assertRaises(rf.RangeError, rf.int32, 45874349824936) self.assertRaises(FileNotFoundError, rf.int32, 45874349824936, ex=FileNotFoundError) rf.int32(-0x8000000) rf.int32(-0x8000000 + 1) rf.int32(-2) rf.int32(-1) rf.int32(0) rf.int32(1) rf.int32(2) rf.int32(0x7FFFFFFE) rf.int32(0x7FFFFFFF) for i in range(-0x8000000, 0x7FFFFFFF, 4000): self.assertEqual(i, rf.int32(i)) self.assertIs(i, rf.int32(i)) def test_int64(self): self.assertRaises(rf.RangeError, rf.int64, -2 ** 64 - 1) self.assertRaises(rf.RangeError, rf.int64, 2 ** 64) self.assertRaises(rf.RangeError, rf.int64, 345837634922573643925763492312573634) self.assertRaises(FileNotFoundError, rf.int64, 345837634922573643925763492312573634, ex=FileNotFoundError) rf.int64(-0x8000000000000000) rf.int64(-0x8000000000000000 + 1) rf.int64(-2) rf.int64(-1) rf.int64(0) rf.int64(1) rf.int64(2) rf.int64(0x7FFFFFFFFFFFFFFE) rf.int64(0x7FFFFFFFFFFFFFFF) for i in range(-0x8000000000000000, 0x7FFFFFFFFFFFFFFF, 30000000000000): self.assertEqual(i, rf.int64(i)) self.assertIs(i, rf.int64(i)) class TestNegativePositiveInt(unittest.TestCase): def test_negative_int(self): self.assertRaises(rf.RangeError, rf.negative_int, 0) self.assertRaises(rf.RangeError, rf.negative_int, 1) self.assertRaises(rf.RangeError, rf.negative_int, 100) self.assertRaises(FileNotFoundError, rf.negative_int, 100, ex=FileNotFoundError) self.assertEqual(-20, rf.negative_int(-20)) self.assertIs(-20, rf.negative_int(-20)) def test_nonpositive_int(self): self.assertRaises(rf.RangeError, rf.nonpositive_int, 1) self.assertRaises(rf.RangeError, rf.nonpositive_int, 100) self.assertRaises(FileNotFoundError, rf.nonpositive_int, 100, ex=FileNotFoundError) self.assertEqual(-20, rf.nonpositive_int(-20)) self.assertIs(-20, rf.nonpositive_int(-20)) self.assertEqual(0, rf.nonpositive_int(0)) self.assertIs(0, rf.nonpositive_int(0)) def test_positive_int(self): self.assertRaises(rf.RangeError, rf.positive_int, 0) self.assertRaises(rf.RangeError, rf.positive_int, -1) self.assertRaises(rf.RangeError, rf.positive_int, -100) self.assertRaises(FileNotFoundError, rf.positive_int, -100, ex=FileNotFoundError) self.assertEqual(20, rf.positive_int(20)) self.assertIs(20, rf.positive_int(20)) def test_nonnegative_int(self): self.assertRaises(rf.RangeError, rf.nonnegative_int, -1) self.assertRaises(rf.RangeError, rf.nonnegative_int, -100) self.assertRaises(FileNotFoundError, rf.nonnegative_int, -100, ex=FileNotFoundError) self.assertEqual(20, rf.nonnegative_int(20)) self.assertIs(20, rf.nonnegative_int(20)) self.assertEqual(0, rf.nonnegative_int(0)) self.assertIs(0, rf.nonnegative_int(0)) class TestLimited(unittest.TestCase): def test_in_closed_range(self): for i in range(100): self.assertEqual(i, rf.limited(i, 0, 99)) for i in range(100): self.assertEqual(i + 0.1, rf.limited(i + 0.1, 0, 100)) def test_in_open_range_upper_bound(self): for i in range(100): self.assertEqual(i, rf.limited(i, 0, None)) for i in range(100): self.assertEqual(i + 0.1, rf.limited(i + 0.1, 0, None)) def test_in_open_range_on_lower_bound(self): for i in range(100): self.assertEqual(i, rf.limited(i, None, 99)) for i in range(100): self.assertEqual(i + 0.1, rf.limited(i + 0.1, None, 99.2)) def test_below_closed_range(self): expected_message = 'Value must be in range [100, 1000]. ' \ '2 found instead.' with self.assertRaises(rf.RangeError) as ex: rf.limited(2, 100, 1000) self.assertEqual(expected_message, str(ex.exception)) def test_below_open_range_on_upper_bound(self): expected_message = 'Value must be in range [100, +inf[. ' \ '2 found instead.' with self.assertRaises(rf.RangeError) as ex: rf.limited(2, 100, None) self.assertEqual(expected_message, str(ex.exception)) def test_above_closed_range(self): expected_message = 'Value must be in range [100, 1000]. ' \ '2000 found instead.' with self.assertRaises(rf.RangeError) as ex: rf.limited(2000, 100, 1000) self.assertEqual(expected_message, str(ex.exception)) def test_above_open_range_on_lower_bound(self): expected_message = 'Value must be in range ]-inf, 1000]. ' \ '2000 found instead.' with self.assertRaises(rf.RangeError) as ex: rf.limited(2000, None, 1000) self.assertEqual(expected_message, str(ex.exception)) def test_custom_value_name(self): expected_message = 'HELLO must be in range [100, 1000]. ' \ '2 found instead.' with self.assertRaises(rf.RangeError) as ex: rf.limited(2, 100, 1000, 'HELLO') self.assertEqual(expected_message, str(ex.exception)) expected_message = 'HELLO must be in range [100, +inf[. ' \ '2 found instead.' with self.assertRaises(rf.RangeError) as ex: rf.limited(2, 100, None, 'HELLO') self.assertEqual(expected_message, str(ex.exception)) expected_message = 'HELLO must be in range [100, 1000]. ' \ '2000 found instead.' with self.assertRaises(rf.RangeError) as ex: rf.limited(2000, 100, 1000, 'HELLO') self.assertEqual(expected_message, str(ex.exception)) expected_message = 'HELLO must be in range ]-inf, 1000]. ' \ '2000 found instead.' with self.assertRaises(rf.RangeError) as ex: rf.limited(2000, None, 1000, 'HELLO') self.assertEqual(expected_message, str(ex.exception)) def test_plus_infinity(self): inf = float('+inf') expected_message = 'Value must be in range [0.0, 1.0]. ' \ 'inf found instead.' with self.assertRaises(rf.RangeError) as ex: rf.limited(inf, 0.0, 1.0) self.assertEqual(expected_message, str(ex.exception)) expected_message = 'Value must be in range ]-inf, 1.0]. ' \ 'inf found instead.' with self.assertRaises(rf.RangeError) as ex: rf.limited(inf, None, 1.0) self.assertEqual(expected_message, str(ex.exception)) self.assertEqual(inf, rf.limited(inf, 0, None)) def test_minus_infinity(self): minf = float('-inf') expected_message = 'Value must be in range [0.0, 1.0]. ' \ '-inf found instead.' with self.assertRaises(rf.RangeError) as ex: rf.limited(minf, 0.0, 1.0) self.assertEqual(expected_message, str(ex.exception)) expected_message = 'Value must be in range [0.0, +inf[. ' \ '-inf found instead.' with self.assertRaises(rf.RangeError) as ex: rf.limited(minf, 0.0, None) self.assertEqual(expected_message, str(ex.exception)) self.assertEqual(minf, rf.limited(minf, None, 0)) def test_nan(self): nan = float('nan') expected_message = 'Value must be in range [0.0, 1.0]. ' \ 'nan found instead.' with self.assertRaises(rf.RangeError) as ex: rf.limited(nan, 0.0, 1.0) self.assertEqual(expected_message, str(ex.exception)) expected_message = 'Value must be in range [0.0, +inf[. ' \ 'nan found instead.' with self.assertRaises(rf.RangeError) as ex: rf.limited(nan, 0.0, None) self.assertEqual(expected_message, str(ex.exception)) expected_message = 'Value must be in range ]-inf, 0]. ' \ 'nan found instead.' with self.assertRaises(rf.RangeError) as ex: rf.limited(nan, None, 0) self.assertEqual(expected_message, str(ex.exception)) def test_infinity_instead_of_none(self): self.assertEqual(10, rf.limited(10, float('-inf'), 20)) def test_double_none(self): expected_message = '[min, max] interval must be closed on at least ' \ 'one extreme.' with self.assertRaises(ValueError) as ex: rf.limited(10, None, None) self.assertEqual(expected_message, str(ex.exception)) def test_unsorted_bounds(self): expected_message = 'Interval extremes [20, 15] not in order.' with self.assertRaises(ValueError) as ex: rf.limited(10, 20, 15) self.assertEqual(expected_message, str(ex.exception)) def test_nan_interval_extreme(self): expected_message = 'NaN is not a valid interval upper bound.' with self.assertRaises(ValueError) as ex: rf.limited(10, 5, float('nan')) self.assertEqual(expected_message, str(ex.exception)) expected_message = 'NaN is not a valid interval lower bound.' with self.assertRaises(ValueError) as ex: rf.limited(10, float('nan'), 5) self.assertEqual(expected_message, str(ex.exception)) def test_enforce_type(self): self.assertEqual(2, rf.limited(2, 0, 10, dtype=int)) expected_message = 'Value must be of type int. float found instead.' with self.assertRaises(TypeError) as ex: rf.limited(2.0, 0, 10, dtype=int) self.assertEqual(expected_message, str(ex.exception)) def test_custom_exception_type(self): expected_message = 'Value must be in range [100, 1000]. ' \ '2 found instead.' with self.assertRaises(FileNotFoundError) as ex: rf.limited(2, 100, 1000, ex=FileNotFoundError) self.assertEqual(expected_message, str(ex.exception)) expected_message = 'HELLO must be in range [100, 1000]. ' \ '2 found instead.' with self.assertRaises(FileNotFoundError) as ex: rf.limited(2, 100, 1000, name='HELLO', ex=FileNotFoundError) self.assertEqual(expected_message, str(ex.exception)) def test_custom_exception_type_does_not_affect_dtype(self): with self.assertRaises(FileNotFoundError) as ex: rf.limited(2.0, 100, 1000, dtype=float, ex=FileNotFoundError) with self.assertRaises(TypeError) as ex: rf.limited(2.0, 100, 1000, dtype=int, ex=FileNotFoundError) class TestExact(unittest.TestCase): def test_exact(self): for i in range(-50, 50): self.assertEqual(i, rf.exactly(i, i)) def test_not_exact(self): expected_message = 'Value must be exactly 100. ' \ '2 found instead.' with self.assertRaises(rf.RangeError) as ex: rf.exactly(2, 100) self.assertEqual(expected_message, str(ex.exception)) def test_everything_differs_from_nan(self): expected_message = 'Value must be exactly NaN. ' \ '2 found instead.' with self.assertRaises(rf.RangeError) as ex: rf.exactly(2, math.nan) self.assertEqual(expected_message, str(ex.exception)) expected_message = 'Value must be exactly NaN. ' \ 'inf found instead.' with self.assertRaises(rf.RangeError) as ex: rf.exactly(math.inf, math.nan) self.assertEqual(expected_message, str(ex.exception)) def test_nan_equal_to_nan(self): self.assertTrue(math.isnan(rf.exactly(math.nan, math.nan))) def test_custom_value_name(self): expected_message = 'HELLO must be exactly NaN. ' \ '2 found instead.' with self.assertRaises(rf.RangeError) as ex: rf.exactly(2, math.nan, name='HELLO') self.assertEqual(expected_message, str(ex.exception)) expected_message = 'HELLO must be exactly 100. ' \ '2 found instead.' with self.assertRaises(rf.RangeError) as ex: rf.exactly(2, 100, name='HELLO') self.assertEqual(expected_message, str(ex.exception)) def test_enforce_type(self): self.assertEqual(2, rf.exactly(2, 2, dtype=int)) expected_message = 'Value must be of type int. float found instead.' with self.assertRaises(TypeError) as ex: rf.exactly(2.0, 2, dtype=int) self.assertEqual(expected_message, str(ex.exception)) expected_message = 'HELLO must be of type int. float found instead.' with self.assertRaises(TypeError) as ex: rf.exactly(2.0, 3, name='HELLO', dtype=int) self.assertEqual(expected_message, str(ex.exception)) def test_custom_exception_type(self): expected_message = 'Value must be exactly 100. ' \ '2 found instead.' with self.assertRaises(FileNotFoundError) as ex: rf.exactly(2, 100, ex=FileNotFoundError) self.assertEqual(expected_message, str(ex.exception)) expected_message = 'HELLO must be exactly 100. ' \ '2 found instead.' with self.assertRaises(FileNotFoundError) as ex: rf.exactly(2, 100, name='HELLO', ex=FileNotFoundError) self.assertEqual(expected_message, str(ex.exception)) def test_custom_exception_type_does_not_affect_dtype(self): with self.assertRaises(FileNotFoundError) as ex: rf.exactly(2.0, 100, dtype=float, ex=FileNotFoundError) with self.assertRaises(TypeError) as ex: rf.exactly(2.0, 100, dtype=int, ex=FileNotFoundError) class TestLimitedLen(unittest.TestCase): def test_in_closed_range(self): for i in range(100): self.assertEqual([2] * i, rf.limited_len([2] * i, 0, 99)) def test_in_open_range_upper_bound(self): for i in range(100): self.assertEqual([2] * i, rf.limited_len([2] * i, 0, None)) def test_in_open_range_on_lower_bound(self): for i in range(100): self.assertEqual([2] * i, rf.limited_len([2] * i, None, 99)) def test_below_closed_range(self): expected_message = 'Length of value must be in range [100, 1000]. ' \ '2 found instead.' with self.assertRaises(rf.RangeError) as ex: rf.limited_len([2] * 2, 100, 1000) self.assertEqual(expected_message, str(ex.exception)) def test_below_open_range_on_upper_bound(self): expected_message = 'Length of value must be in range [100, +inf[. ' \ '2 found instead.' with self.assertRaises(rf.RangeError) as ex: rf.limited_len([2] * 2, 100, None) self.assertEqual(expected_message, str(ex.exception)) def test_above_closed_range(self): expected_message = 'Length of value must be in range [100, 1000]. ' \ '2000 found instead.' with self.assertRaises(rf.RangeError) as ex: rf.limited_len([2] * 2000, 100, 1000) self.assertEqual(expected_message, str(ex.exception)) def test_above_open_range_on_lower_bound(self): expected_message = 'Length of value must be in range ]-inf, 1000]. ' \ '2000 found instead.' with self.assertRaises(rf.RangeError) as ex: rf.limited_len([2] * 2000, None, 1000) self.assertEqual(expected_message, str(ex.exception)) def test_custom_value_name(self): expected_message = 'Length of HELLO must be in range [100, 1000]. ' \ '2 found instead.' with self.assertRaises(rf.RangeError) as ex: rf.limited_len([2] * 2, 100, 1000, 'HELLO') self.assertEqual(expected_message, str(ex.exception)) expected_message = 'Length of HELLO must be in range [100, +inf[. ' \ '2 found instead.' with self.assertRaises(rf.RangeError) as ex: rf.limited_len([2] * 2, 100, None, 'HELLO') self.assertEqual(expected_message, str(ex.exception)) expected_message = 'Length of HELLO must be in range [100, 1000]. ' \ '2000 found instead.' with self.assertRaises(rf.RangeError) as ex: rf.limited_len([2] * 2000, 100, 1000, 'HELLO') self.assertEqual(expected_message, str(ex.exception)) expected_message = 'Length of HELLO must be in range ]-inf, 1000]. ' \ '2000 found instead.' with self.assertRaises(rf.RangeError) as ex: rf.limited_len([2] * 2000, None, 1000, 'HELLO') self.assertEqual(expected_message, str(ex.exception)) def test_negative_min_length(self): expected_message = 'Length lower bound must be non-negative. ' \ '-2 found instead.' with self.assertRaises(ValueError) as ex: rf.limited_len([2] * 2, -2, 10) self.assertEqual(expected_message, str(ex.exception)) def test_negative_max_length(self): expected_message = 'Length upper bound must be non-negative. ' \ '-3 found instead.' with self.assertRaises(ValueError) as ex: rf.limited_len([2] * 2, 0.0, -3) self.assertEqual(expected_message, str(ex.exception)) def test_infinity_instead_of_none(self): self.assertEqual([2] * 10, rf.limited_len([2] * 10, 2, float('+inf'))) def test_double_none(self): expected_message = '[min, max] interval must be closed on at least ' \ 'one extreme.' with self.assertRaises(ValueError) as ex: rf.limited_len([2] * 10, None, None) self.assertEqual(expected_message, str(ex.exception)) def test_unsorted_bounds(self): expected_message = 'Interval extremes [20, 15] not in order.' with self.assertRaises(ValueError) as ex: rf.limited_len([2] * 10, 20, 15) self.assertEqual(expected_message, str(ex.exception)) def test_nan_interval_extreme(self): expected_message = 'NaN is not a valid interval upper bound.' with self.assertRaises(ValueError) as ex: rf.limited_len([2] * 10, 5, float('nan')) self.assertEqual(expected_message, str(ex.exception)) expected_message = 'NaN is not a valid interval lower bound.' with self.assertRaises(ValueError) as ex: rf.limited_len([2] * 10, float('nan'), 5) self.assertEqual(expected_message, str(ex.exception)) def test_custom_exception_type(self): expected_message = 'Length of value must be in range [100, 1000]. ' \ '1 found instead.' with self.assertRaises(FileNotFoundError) as ex: rf.limited_len([2], 100, 1000, ex=FileNotFoundError) self.assertEqual(expected_message, str(ex.exception)) expected_message = 'Length of HELLO must be in range [100, 1000]. ' \ '1 found instead.' with self.assertRaises(FileNotFoundError) as ex: rf.limited_len([2], 100, 1000, name='HELLO', ex=FileNotFoundError) self.assertEqual(expected_message, str(ex.exception)) class TestExactLen(unittest.TestCase): def test_proper_length(self): self.assertEqual([2] * 2, rf.exact_len([2] * 2, 2)) def test_zero_length(self): self.assertEqual([], rf.exact_len([], 0)) def test_smaller_length(self): expected_message = 'Length of value must be exactly 3. ' \ '2 found instead.' with self.assertRaises(rf.RangeError) as ex: rf.exact_len([2] * 2, 3) self.assertEqual(expected_message, str(ex.exception)) def test_greater_length(self): expected_message = 'Length of value must be exactly 3. ' \ '5 found instead.' with self.assertRaises(rf.RangeError) as ex: rf.exact_len([2] * 5, 3) self.assertEqual(expected_message, str(ex.exception)) def test_custom_value_name(self): expected_message = 'Length of HELLO must be exactly 1. ' \ '2 found instead.' with self.assertRaises(rf.RangeError) as ex: rf.exact_len([2] * 2, 1, 'HELLO') self.assertEqual(expected_message, str(ex.exception)) expected_message = 'Length of HELLO WORLD must be exactly 5. ' \ '2 found instead.' with self.assertRaises(rf.RangeError) as ex: rf.exact_len([2] * 2, 5, 'HELLO WORLD') self.assertEqual(expected_message, str(ex.exception)) def test_negative_expected_length(self): expected_message = 'Expected length must be non-negative. ' \ '-2 found instead.' with self.assertRaises(ValueError) as ex: rf.exact_len([2] * 2, -2) self.assertEqual(expected_message, str(ex.exception)) def test_expected_length_must_be_int(self): expected_message = 'Expected length must be an integer. ' \ 'NoneType found instead.' with self.assertRaises(TypeError) as ex: rf.exact_len([2] * 2, None) self.assertEqual(expected_message, str(ex.exception)) expected_message = 'Expected length must be an integer. ' \ 'float found instead.' with self.assertRaises(TypeError) as ex: rf.exact_len([2] * 2, 2.0) self.assertEqual(expected_message, str(ex.exception)) expected_message = 'Expected length must be an integer. ' \ 'float found instead.' with self.assertRaises(TypeError) as ex: rf.exact_len([2] * 2, float('+inf')) self.assertEqual(expected_message, str(ex.exception)) expected_message = 'Expected length must be an integer. ' \ 'float found instead.' with self.assertRaises(TypeError) as ex: rf.exact_len([2] * 2, float('nan')) self.assertEqual(expected_message, str(ex.exception)) def test_custom_exception_type(self): expected_message = 'Length of value must be exactly 100. ' \ '1 found instead.' with self.assertRaises(FileNotFoundError) as ex: rf.exact_len([2], 100, ex=FileNotFoundError) self.assertEqual(expected_message, str(ex.exception)) expected_message = 'Length of HELLO must be exactly 100. ' \ '1 found instead.' with self.assertRaises(FileNotFoundError) as ex: rf.exact_len([2], 100, name='HELLO', ex=FileNotFoundError) self.assertEqual(expected_message, str(ex.exception))
45.470774
115
0.615641
3,635
28,783
4.770839
0.053095
0.109791
0.078884
0.122708
0.878618
0.81565
0.741091
0.67299
0.629627
0.616134
0
0.071354
0.26672
28,783
632
116
45.542722
0.750261
0.00674
0
0.454545
0
0
0.11155
0
0
0
0.007453
0
0.454545
1
0.12
false
0
0.005455
0
0.14
0
0
0
0
null
0
0
0
1
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
5
39157cd9b4602471beed29fb4144332c6bc6d998
156
py
Python
openstack_dashboard/enabled/_1910_object_store_panel_group.py
hemantsonawane95/horizon-apelby
01a5e72219aeca8c1451701ee85e232ed0618751
[ "Apache-2.0" ]
null
null
null
openstack_dashboard/enabled/_1910_object_store_panel_group.py
hemantsonawane95/horizon-apelby
01a5e72219aeca8c1451701ee85e232ed0618751
[ "Apache-2.0" ]
null
null
null
openstack_dashboard/enabled/_1910_object_store_panel_group.py
hemantsonawane95/horizon-apelby
01a5e72219aeca8c1451701ee85e232ed0618751
[ "Apache-2.0" ]
null
null
null
from django.utils.translation import gettext_lazy as _ PANEL_GROUP = 'object_store' PANEL_GROUP_NAME = _('Object Store') PANEL_GROUP_DASHBOARD = 'project'
26
54
0.807692
21
156
5.571429
0.714286
0.25641
0.273504
0.358974
0
0
0
0
0
0
0
0
0.108974
156
5
55
31.2
0.841727
0
0
0
0
0
0.198718
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
1
0
0
null
1
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
0
0
0
0
0
0
0
5
3916256065dafb2688fde9e99254b6a066be9c85
1,237
py
Python
platform/core/polyaxon/tracker/events/pipeline_run.py
hackerwins/polyaxon
ff56a098283ca872abfbaae6ba8abba479ffa394
[ "Apache-2.0" ]
null
null
null
platform/core/polyaxon/tracker/events/pipeline_run.py
hackerwins/polyaxon
ff56a098283ca872abfbaae6ba8abba479ffa394
[ "Apache-2.0" ]
null
null
null
platform/core/polyaxon/tracker/events/pipeline_run.py
hackerwins/polyaxon
ff56a098283ca872abfbaae6ba8abba479ffa394
[ "Apache-2.0" ]
null
null
null
import tracker from events.registry import pipeline_run tracker.subscribe(pipeline_run.PipelineRunCreatedEvent) tracker.subscribe(pipeline_run.PipelineRunUpdatedEvent) tracker.subscribe(pipeline_run.PipelineRunCleanedTriggeredEvent) tracker.subscribe(pipeline_run.PipelineRunViewedEvent) tracker.subscribe(pipeline_run.PipelineRunArchivedEvent) tracker.subscribe(pipeline_run.PipelineRunRestoredEvent) tracker.subscribe(pipeline_run.PipelineRunDeletedEvent) tracker.subscribe(pipeline_run.PipelineRunDeletedTriggeredEvent) tracker.subscribe(pipeline_run.PipelineRunStoppedEvent) tracker.subscribe(pipeline_run.PipelineRunStoppedTriggeredEvent) tracker.subscribe(pipeline_run.PipelineRunResumedEvent) tracker.subscribe(pipeline_run.PipelineRunResumedTriggeredEvent) tracker.subscribe(pipeline_run.PipelineRunRestartedEvent) tracker.subscribe(pipeline_run.PipelineRunRestartedTriggeredEvent) tracker.subscribe(pipeline_run.PipelineRunSkippedEvent) tracker.subscribe(pipeline_run.PipelineRunSkippedTriggeredEvent) tracker.subscribe(pipeline_run.PipelineRunNewStatusEvent) tracker.subscribe(pipeline_run.PipelineRunSucceededEvent) tracker.subscribe(pipeline_run.PipelineRunFailedEvent) tracker.subscribe(pipeline_run.PipelineRunDoneEvent)
49.48
66
0.911884
108
1,237
10.25
0.259259
0.208672
0.433604
0.487805
0
0
0
0
0
0
0
0
0.022635
1,237
24
67
51.541667
0.915633
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.090909
0
0.090909
0
0
0
1
null
1
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
1
0
0
0
0
0
0
5
392a803a04296af2a9783dabb81e80545cd36761
72
py
Python
kerolo2/callbacks/__init__.py
capitancambio/keras-yolo2
4531b00f941ed6638f870d16b0398fa0ff8d082c
[ "MIT" ]
null
null
null
kerolo2/callbacks/__init__.py
capitancambio/keras-yolo2
4531b00f941ed6638f870d16b0398fa0ff8d082c
[ "MIT" ]
null
null
null
kerolo2/callbacks/__init__.py
capitancambio/keras-yolo2
4531b00f941ed6638f870d16b0398fa0ff8d082c
[ "MIT" ]
null
null
null
from .floydhub_logger import FloydhubLoggerCallback, MAPCallback # noqa
36
71
0.861111
7
72
8.714286
1
0
0
0
0
0
0
0
0
0
0
0
0.097222
72
1
72
72
0.938462
0.055556
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
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
1
0
1
0
0
5
3932e13778c5e3f51d068ad2f879db8087f9ac63
33
py
Python
dicominspect/__init__.py
jenspetersen/dicom-inspect
5ed0ff9e105fd75bce1399a85a8cac3fa633f270
[ "MIT" ]
null
null
null
dicominspect/__init__.py
jenspetersen/dicom-inspect
5ed0ff9e105fd75bce1399a85a8cac3fa633f270
[ "MIT" ]
null
null
null
dicominspect/__init__.py
jenspetersen/dicom-inspect
5ed0ff9e105fd75bce1399a85a8cac3fa633f270
[ "MIT" ]
null
null
null
from .inspector import Inspector
16.5
32
0.848485
4
33
7
0.75
0
0
0
0
0
0
0
0
0
0
0
0.121212
33
1
33
33
0.965517
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
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
1
0
0
0
0
5
3941b3fe388f82e649d7fda716ebf987e94b1e88
199
py
Python
fsspyipay/exceptions.py
burhan/pyipay
bec8cd9da5dff7ed80c0948798f2a2010d8be45a
[ "MIT" ]
5
2019-05-10T20:16:54.000Z
2021-05-13T01:32:55.000Z
fsspyipay/exceptions.py
burhan/pyipay
bec8cd9da5dff7ed80c0948798f2a2010d8be45a
[ "MIT" ]
3
2019-05-10T14:10:16.000Z
2022-01-19T18:47:51.000Z
fsspyipay/exceptions.py
burhan/pyipay
bec8cd9da5dff7ed80c0948798f2a2010d8be45a
[ "MIT" ]
3
2019-05-10T20:16:56.000Z
2021-03-29T18:01:52.000Z
# -*- coding: utf-8 -*- class KeyNotFound(Exception): pass class InvalidUrl(Exception): pass class InvalidAlias(Exception): pass class InvalidGatewayResponse(Exception): pass
11.055556
40
0.688442
19
199
7.210526
0.526316
0.379562
0.394161
0
0
0
0
0
0
0
0
0.006329
0.20603
199
17
41
11.705882
0.860759
0.105528
0
0.5
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
1
0
0
null
1
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
1
1
0
0
0
0
0
5
1a84a8d2399042de56b0c429b6ae977a952a83cc
39
py
Python
tests/components/risco/__init__.py
tbarbette/core
8e58c3aa7bc8d2c2b09b6bd329daa1c092d52d3c
[ "Apache-2.0" ]
30,023
2016-04-13T10:17:53.000Z
2020-03-02T12:56:31.000Z
tests/components/risco/__init__.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
31,101
2020-03-02T13:00:16.000Z
2022-03-31T23:57:36.000Z
tests/components/risco/__init__.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
11,956
2016-04-13T18:42:31.000Z
2020-03-02T09:32:12.000Z
"""Tests for the Risco integration."""
19.5
38
0.692308
5
39
5.4
1
0
0
0
0
0
0
0
0
0
0
0
0.128205
39
1
39
39
0.794118
0.820513
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
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
1a85e43213e9ae4267b47af30b73265904ec9076
141
py
Python
src/local_run/nlp.py
ianovski/google-play-store-nlp
afdfe5517bbf30e02f3e3ba80e9267fd574d7ee7
[ "MIT" ]
2
2021-07-29T04:18:11.000Z
2021-08-17T04:49:48.000Z
src/local_run/nlp.py
ianovski/google-play-store-nlp
afdfe5517bbf30e02f3e3ba80e9267fd574d7ee7
[ "MIT" ]
null
null
null
src/local_run/nlp.py
ianovski/google-play-store-nlp
afdfe5517bbf30e02f3e3ba80e9267fd574d7ee7
[ "MIT" ]
null
null
null
import tensorflow as tf import collections import json import os import pandas as pd import csv from transformers import DistilBertTokenizer
17.625
44
0.858156
20
141
6.05
0.65
0
0
0
0
0
0
0
0
0
0
0
0.141844
141
7
45
20.142857
1
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
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
5
1a8acf06bd5f1c66d8e881b79388661806702263
151
py
Python
conda-recipe/run_test.py
Narsil/chempy
ac7217f45a8cfe3b11ca771f78f0a04c07708818
[ "BSD-2-Clause" ]
null
null
null
conda-recipe/run_test.py
Narsil/chempy
ac7217f45a8cfe3b11ca771f78f0a04c07708818
[ "BSD-2-Clause" ]
null
null
null
conda-recipe/run_test.py
Narsil/chempy
ac7217f45a8cfe3b11ca771f78f0a04c07708818
[ "BSD-2-Clause" ]
1
2022-03-21T09:01:48.000Z
2022-03-21T09:01:48.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from chempy.chemistry import Substance assert Substance.from_formula('H2O').composition == {1: 2, 8: 1}
25.166667
64
0.688742
22
151
4.681818
0.818182
0
0
0
0
0
0
0
0
0
0
0.045455
0.125828
151
5
65
30.2
0.734848
0.278146
0
0
0
0
0.028037
0
0
0
0
0
0.5
1
0
true
0
0.5
0
0.5
0
1
0
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
1
0
0
1
0
1
0
0
0
0
5
1a9512940dd8922461a2444dc96e4c9184e2760b
160
py
Python
src/dcos_e2e/__init__.py
Fabs/dcos-e2e
8836dfa5b83f9d61e92b8b4bd8b058404a3bdc20
[ "Apache-2.0" ]
1
2017-07-06T18:27:53.000Z
2017-07-06T18:27:53.000Z
src/dcos_e2e/__init__.py
Fabs/dcos-e2e
8836dfa5b83f9d61e92b8b4bd8b058404a3bdc20
[ "Apache-2.0" ]
96
2017-06-04T23:29:07.000Z
2017-09-07T20:10:42.000Z
src/dcos_e2e/__init__.py
Fabs/dcos-e2e
8836dfa5b83f9d61e92b8b4bd8b058404a3bdc20
[ "Apache-2.0" ]
4
2017-06-01T09:58:25.000Z
2017-08-22T16:32:45.000Z
"""A test harness for running end to end tests.""" from ._version import get_versions __version__ = get_versions()['version'] # type: ignore del get_versions
26.666667
55
0.75
23
160
4.869565
0.695652
0.294643
0.321429
0
0
0
0
0
0
0
0
0
0.14375
160
5
56
32
0.817518
0.3625
0
0
0
0
0.072917
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
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
0
0
1
0
0
0
0
5
1aae91c439e09adc815ca95bad38c931293b3016
185
py
Python
sql_files/dbcopy.py
StavromularBeta/Cannabase
adb840f8e398e9671d66dd9e4c680f75015cc3a9
[ "MIT" ]
1
2021-10-18T08:12:13.000Z
2021-10-18T08:12:13.000Z
sql_files/dbcopy.py
StavromularBeta/Cannabase
adb840f8e398e9671d66dd9e4c680f75015cc3a9
[ "MIT" ]
null
null
null
sql_files/dbcopy.py
StavromularBeta/Cannabase
adb840f8e398e9671d66dd9e4c680f75015cc3a9
[ "MIT" ]
null
null
null
from connector import Connector import datetime class DBCopy(Connector): def __init__(self): super(DBCopy, self).__init__() super(self.__class__, self).__init__()
20.555556
46
0.702703
21
185
5.428571
0.47619
0.263158
0
0
0
0
0
0
0
0
0
0
0.194595
185
8
47
23.125
0.765101
0
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.333333
0
0.666667
0
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
1
0
1
0
0
5
1ab4bc1a513e875750964d20ee8b931af99d548b
181
py
Python
bin/cubes/solid-pentominoes-condominium-b.py
tiwo/puzzler
7ad3d9a792f0635f7ec59ffa85fb46b54fd77a7e
[ "Intel" ]
null
null
null
bin/cubes/solid-pentominoes-condominium-b.py
tiwo/puzzler
7ad3d9a792f0635f7ec59ffa85fb46b54fd77a7e
[ "Intel" ]
null
null
null
bin/cubes/solid-pentominoes-condominium-b.py
tiwo/puzzler
7ad3d9a792f0635f7ec59ffa85fb46b54fd77a7e
[ "Intel" ]
1
2022-01-02T16:54:14.000Z
2022-01-02T16:54:14.000Z
#!/usr/bin/env python # $Id$ """1 solution""" import puzzler from puzzler.puzzles.solid_pentominoes import SolidPentominoesCondominiumB puzzler.run(SolidPentominoesCondominiumB)
18.1
74
0.80663
19
181
7.631579
0.789474
0
0
0
0
0
0
0
0
0
0
0.006061
0.088398
181
9
75
20.111111
0.872727
0.198895
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
1
0
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
1
0
1
0
0
5
1acdba330f6f99ba533f807f11d10d93666aef90
48
py
Python
xclim/testing/tests/test_sdba/__init__.py
aaronspring/xclim
393797308a581428c229920a3b0933c8243cd03a
[ "Apache-2.0" ]
169
2018-09-14T21:14:40.000Z
2022-03-29T14:27:06.000Z
xclim/testing/tests/test_sdba/__init__.py
raquel-ucl/xclim
6102e542e6e08072a60879d6200f9340207cd50e
[ "Apache-2.0" ]
950
2018-08-23T16:13:17.000Z
2022-03-28T19:30:59.000Z
xclim/testing/tests/test_sdba/__init__.py
raquel-ucl/xclim
6102e542e6e08072a60879d6200f9340207cd50e
[ "Apache-2.0" ]
35
2018-12-04T21:12:10.000Z
2022-03-04T20:38:07.000Z
from .diagnostics import * from .utils import *
16
26
0.75
6
48
6
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.166667
48
2
27
24
0.9
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
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
1
0
0
0
0
5
46d380c0ac2c3f9ee66c25c00a677bdb2e1b9bee
29
py
Python
extorch/__init__.py
tarepan/extorch
dad51950d2109d47f946a1ab7b03dfd17b3a9e65
[ "MIT" ]
null
null
null
extorch/__init__.py
tarepan/extorch
dad51950d2109d47f946a1ab7b03dfd17b3a9e65
[ "MIT" ]
null
null
null
extorch/__init__.py
tarepan/extorch
dad51950d2109d47f946a1ab7b03dfd17b3a9e65
[ "MIT" ]
null
null
null
from .conv1d import Conv1dEx
14.5
28
0.827586
4
29
6
1
0
0
0
0
0
0
0
0
0
0
0.08
0.137931
29
1
29
29
0.88
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
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
1
0
0
0
0
5
46e4c8a593b245a59d182071b204d857f9c25383
125
py
Python
funciones.py
Antonio985/SeminarioDeProgramacion
a1bdd7fa6fa202a0a7a2e9a0f72def24d0f1c465
[ "Unlicense" ]
null
null
null
funciones.py
Antonio985/SeminarioDeProgramacion
a1bdd7fa6fa202a0a7a2e9a0f72def24d0f1c465
[ "Unlicense" ]
null
null
null
funciones.py
Antonio985/SeminarioDeProgramacion
a1bdd7fa6fa202a0a7a2e9a0f72def24d0f1c465
[ "Unlicense" ]
null
null
null
#Sintaxis basica de una funcion def mi_funcion(): print("Ejecucion de la funcion") #Llamando la funcion mi_funcion()
20.833333
36
0.728
18
125
4.944444
0.611111
0.202247
0
0
0
0
0
0
0
0
0
0
0.184
125
6
37
20.833333
0.872549
0.392
0
0
0
0
0.306667
0
0
0
0
0
0
1
0.333333
true
0
0
0
0.333333
0.333333
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
1
1
0
0
0
0
0
0
5
46ee50a758a197a7dd644cc132d11fe8600f4266
3,811
py
Python
tests/zoomus/components/webinar/test_register.py
dolohow/zoomus
8498a26af48c2f09957464848d2e8fbf0a034d08
[ "Apache-2.0" ]
178
2020-04-13T17:12:13.000Z
2022-03-30T05:55:30.000Z
tests/zoomus/components/webinar/test_register.py
dolohow/zoomus
8498a26af48c2f09957464848d2e8fbf0a034d08
[ "Apache-2.0" ]
167
2020-04-14T07:37:03.000Z
2022-03-29T02:13:43.000Z
tests/zoomus/components/webinar/test_register.py
dolohow/zoomus
8498a26af48c2f09957464848d2e8fbf0a034d08
[ "Apache-2.0" ]
90
2020-04-14T09:24:19.000Z
2022-03-24T18:33:48.000Z
import datetime import unittest from zoomus import components, util import responses def suite(): """Define all the tests of the module.""" suite = unittest.TestSuite() suite.addTest(unittest.makeSuite(RegisterV1TestCase)) suite.addTest(unittest.makeSuite(RegisterV2TestCase)) return suite class RegisterV1TestCase(unittest.TestCase): def setUp(self): self.component = components.webinar.WebinarComponent( base_uri="http://foo.com", config={ "api_key": "KEY", "api_secret": "SECRET", "version": util.API_VERSION_1, }, ) @responses.activate def test_can_register(self): responses.add( responses.POST, "http://foo.com/webinar/register?id=ID&email=foo@bar.com&first_name=Foo&last_name=Bar" "&api_key=KEY&api_secret=SECRET", ) self.component.register( id="ID", email="foo@bar.com", first_name="Foo", last_name="Bar" ) def test_requires_id(self): with self.assertRaisesRegexp(ValueError, "'id' must be set"): self.component.register() def test_requires_email(self): with self.assertRaisesRegexp(ValueError, "'email' must be set"): self.component.register(id="ID") def test_requires_first_name(self): with self.assertRaisesRegexp(ValueError, "'first_name' must be set"): self.component.register(id="ID", email="foo@bar.com") def test_requires_last_name(self): with self.assertRaisesRegexp(ValueError, "'last_name' must be set"): self.component.register(id="ID", email="foo@bar.com", first_name="foo") @responses.activate def test_start_time_gets_transformed(self): start_time = datetime.datetime(1969, 1, 1, 1, 1) responses.add( responses.POST, "http://foo.com/webinar/register?id=ID&email=foo@bar.com&first_name=foo&last_name=bar" "&start_time=1969-01-01T01%3A01%3A00Z&api_key=KEY&api_secret=SECRET", ) self.component.register( id="ID", email="foo@bar.com", first_name="foo", last_name="bar", start_time=start_time, ) class RegisterV2TestCase(unittest.TestCase): def setUp(self): self.component = components.webinar.WebinarComponentV2( base_uri="http://foo.com", config={ "api_key": "KEY", "api_secret": "SECRET", "version": util.API_VERSION_2, }, ) @responses.activate def test_can_register(self): responses.add( responses.POST, "http://foo.com/webinars/42/registrants", ) response = self.component.register( id="42", email="foo@bar.com", first_name="Foo", last_name="Bar" ) self.assertEqual( response.request.body, '{"id": "42", "email": "foo@bar.com", "first_name": "Foo", "last_name": "Bar"}', ) def test_requires_id(self): with self.assertRaisesRegexp(ValueError, "'id' must be set"): self.component.register() def test_requires_email(self): with self.assertRaisesRegexp(ValueError, "'email' must be set"): self.component.register(id="ID") def test_requires_first_name(self): with self.assertRaisesRegexp(ValueError, "'first_name' must be set"): self.component.register(id="ID", email="foo@bar.com") def test_requires_last_name(self): with self.assertRaisesRegexp(ValueError, "'last_name' must be set"): self.component.register(id="ID", email="foo@bar.com", first_name="foo") if __name__ == "__main__": unittest.main()
33.13913
98
0.605878
438
3,811
5.107306
0.180365
0.075548
0.103263
0.062584
0.759499
0.759499
0.759499
0.759499
0.759499
0.707644
0
0.013153
0.261874
3,811
114
99
33.429825
0.782083
0.009184
0
0.505376
0
0.032258
0.202653
0.025464
0
0
0
0
0.096774
1
0.150538
false
0
0.043011
0
0.225806
0
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
204f71e18f603f01f91a9d9f0ccff544b91ca7c5
186
py
Python
libpython/gary/__init__.py
longnow/panlex-tools
1b10fa140af96078c7c909cd10f3f3c05f641671
[ "MIT" ]
8
2015-11-02T22:55:24.000Z
2018-05-27T22:11:40.000Z
libpython/gary/__init__.py
longnow/panlex-tools
1b10fa140af96078c7c909cd10f3f3c05f641671
[ "MIT" ]
3
2021-03-31T19:12:43.000Z
2021-12-13T20:03:51.000Z
libpython/gary/__init__.py
longnow/panlex-tools
1b10fa140af96078c7c909cd10f3f3c05f641671
[ "MIT" ]
2
2016-07-11T18:00:18.000Z
2019-04-23T14:41:52.000Z
from .source import * from . import text_filter from . import entry_filter from .entry_filter import SimpleFilter,SynonymFilter,PanlexSynonymFilter,PanlexExtractorFilter,PredicateFilter
37.2
110
0.865591
20
186
7.9
0.55
0.126582
0
0
0
0
0
0
0
0
0
0
0.086022
186
4
111
46.5
0.929412
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
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
5
205a10eda134f805eca1f17abd7c3ef49e70f559
10,134
py
Python
University - Team Projects/Technicom APG/modules/generator.py
mpuheim/Various
b96caabde036530329f0ebbe2e3f176dfe691d1c
[ "RSA-MD" ]
null
null
null
University - Team Projects/Technicom APG/modules/generator.py
mpuheim/Various
b96caabde036530329f0ebbe2e3f176dfe691d1c
[ "RSA-MD" ]
null
null
null
University - Team Projects/Technicom APG/modules/generator.py
mpuheim/Various
b96caabde036530329f0ebbe2e3f176dfe691d1c
[ "RSA-MD" ]
null
null
null
import itertools, collections class Generator: # constructor def __init__(self,database): self.database = database self.created_limit = 0 self.created_total = 0 # generate attributes def generate(self,count=100): self.created_limit=self.created_total+count self.genNumericAggregations() self.genNominalAggregations() # aggregation (count,sum,average,max,min,variance) generator for numeric event attributes def genNumericAggregations(self): # check event data if self.database.events == None: raise ValueError('cannot generate aggregated attributes without event data tables') # create aggregation functions name list aggr_names=['count','sum','average','max','min','variance'] # get the key index in the customer table customer_key_index = self.database.customers.getAttributeColumn(self.database.key) # generate aggregations across all event tables for event_tab in self.database.events: # get the key index in the event table event_key_index = event_tab.getAttributeColumn(self.database.key) # generate aggregations for all numeric attributes for attr, type in itertools.izip(event_tab.head,event_tab.types): if type == 'numeric' and attr != self.database.key: # get the key list in the event table keys = event_tab.getAttributeValues(event_key_index) # get the attribute index in event table event_att_index = event_tab.getAttributeColumn(attr) # get the value list in the event table values = event_tab.getAttributeValues(event_att_index) # create temporary dictionary d = dict() for key,value in itertools.izip(keys,values): if key in d: d[key].append(value) else: d[key]=[value] # create metadata temp_counter = 0 ban_list=[0,0,0,0,0,0] for name, i in zip(aggr_names,range(len(aggr_names))): full_name = event_tab.head[event_att_index]+'.'+name # generate only requisite number of attributes if self.created_total+temp_counter > self.created_limit: break # check for duplicity elif full_name in self.database.customers.head: ban_list[i]=1 continue else: # create names of new attributes in header of customer table self.database.customers.head.append(full_name) # set datatype self.database.customers.types.append('numeric') # increase attribute iterator temp_counter+=1 # generate data for customer in self.database.customers.body: # help variables key = customer[customer_key_index] all_values = d[key] if key in d else [] float_values = [float(val) for val in all_values if len(val)>0] count = len(all_values) countf = len(float_values) summ = sum(float_values) if countf>0: average = summ/float(countf) maxval = max(float_values) minval = min(float_values) variance = maxval-minval else: average = '' maxval = '' minval = '' variance = '' # append data if self.created_total+1 <= self.created_limit and ban_list[0]==0: # count customer.append(str(count)) if self.created_total+2 <= self.created_limit and ban_list[1]==0: # sum customer.append(str(summ)) if self.created_total+3 <= self.created_limit and ban_list[2]==0: # average customer.append(str(average)) if self.created_total+4 <= self.created_limit and ban_list[3]==0: # max customer.append(str(maxval)) if self.created_total+5 <= self.created_limit and ban_list[4]==0: # min customer.append(str(minval)) if self.created_total+6 <= self.created_limit and ban_list[5]==0: # variance customer.append(str(variance)) # increase attribute iterator self.created_total+=temp_counter # aggregation (count,unique_count,favourite_frequency,favourite_item) generator for nominal event attributes def genNominalAggregations(self): # check event data if self.database.events == None: raise ValueError('cannot generate aggregated attributes without event data tables') # create aggregation functions name list aggr_names=['count','unique_count','favourite_frequency','favourite_item'] # get the key index in the customer table customer_key_index = self.database.customers.getAttributeColumn(self.database.key) # generate aggregations across all event tables for event_tab in self.database.events: # get the key index in the event table event_key_index = event_tab.getAttributeColumn(self.database.key) # generate aggregations for all nominal attributes for attr, type in itertools.izip(event_tab.head,event_tab.types): if type == 'nominal' and attr != self.database.key: # get the key list in the event table keys = event_tab.getAttributeValues(event_key_index) # get the attribute index in event table event_att_index = event_tab.getAttributeColumn(attr) # get the value list in the event table values = event_tab.getAttributeValues(event_att_index) # create temporary dictionary d = dict() for key,value in itertools.izip(keys,values): if key in d: d[key].append(value) else: d[key]=[value] # create metadata temp_counter = 0 ban_list=[0,0,0,0] for name, i in zip(aggr_names,range(len(aggr_names))): full_name = event_tab.head[event_att_index]+'.'+name # generate only requisite number of attributes if self.created_total+temp_counter > self.created_limit: break # check for duplicity elif full_name in self.database.customers.head: ban_list[i]=1 continue else: # create names of new attributes in header of customer table self.database.customers.head.append(full_name) # set datatype if i!=3: self.database.customers.types.append('numeric') else: self.database.customers.types.append('nominal') # increase attribute iterator temp_counter+=1 # generate data for customer in self.database.customers.body: # help variables key = customer[customer_key_index] all_values = d[key] if key in d else [] def_values = [val for val in all_values if len(val)>0] count = len(all_values) unique_count = len(set(def_values)) best_count = collections.Counter(def_values).most_common(1) if len(def_values)>0: favourite_frequency = best_count[0][1] favourite_item = best_count[0][0] else: favourite_frequency = 0 favourite_item = '' # append data if self.created_total+1 <= self.created_limit and ban_list[0]==0: # count customer.append(str(count)) if self.created_total+2 <= self.created_limit and ban_list[1]==0: # unique count customer.append(str(unique_count)) if self.created_total+3 <= self.created_limit and ban_list[2]==0: # largest frequency customer.append(str(favourite_frequency)) if self.created_total+3 <= self.created_limit and ban_list[3]==0: # most frequent item customer.append(str(favourite_item)) # increase attribute iterator self.created_total+=temp_counter
54.778378
112
0.49181
981
10,134
4.933741
0.12946
0.068182
0.052893
0.044628
0.766116
0.758471
0.720661
0.702273
0.674587
0.674587
0
0.010962
0.441879
10,134
185
113
54.778378
0.84459
0.157687
0
0.590551
0
0
0.028534
0
0
0
0
0
0
0
null
null
0
0.007874
null
null
0
0
0
0
null
0
0
0
0
1
1
1
0
1
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
5
64531e4e340a05ff159f3e485f9f1a5b47db4315
311
py
Python
med_ai_site/whoarewe/models.py
com-med-ai/med_ai_site
91794f43a9bc6925bd95d2daa55244e1de89892a
[ "Apache-2.0" ]
2
2021-09-22T13:16:59.000Z
2021-09-22T13:19:55.000Z
med_ai_site/whoarewe/models.py
com-med-ai/med_ai_site
91794f43a9bc6925bd95d2daa55244e1de89892a
[ "Apache-2.0" ]
null
null
null
med_ai_site/whoarewe/models.py
com-med-ai/med_ai_site
91794f43a9bc6925bd95d2daa55244e1de89892a
[ "Apache-2.0" ]
1
2021-09-22T13:20:00.000Z
2021-09-22T13:20:00.000Z
from django.db import models class WhoAreWe(models.Model): name = models.TextField(max_length=32) text = models.TextField(max_length=4096) stylist_name = models.TextField(max_length = 32) def __str__(self) -> str: return f"{self.name}: {self.stylist_name}" # Create your models here.
25.916667
52
0.70418
43
311
4.883721
0.55814
0.214286
0.257143
0.342857
0.285714
0.285714
0
0
0
0
0
0.031373
0.180064
311
11
53
28.272727
0.792157
0.07717
0
0
0
0
0.112281
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0.142857
1
0
0
0
0
null
1
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
0
1
1
0
0
5
645a55f9e44c23d788ca21609385f073e399ee9d
188
py
Python
defalut/tools/tasks.py
Respekt1/linux_scripts_generall
0f699ad51131aa883feb389dff08fcad07a5af39
[ "BSD-2-Clause" ]
null
null
null
defalut/tools/tasks.py
Respekt1/linux_scripts_generall
0f699ad51131aa883feb389dff08fcad07a5af39
[ "BSD-2-Clause" ]
null
null
null
defalut/tools/tasks.py
Respekt1/linux_scripts_generall
0f699ad51131aa883feb389dff08fcad07a5af39
[ "BSD-2-Clause" ]
null
null
null
@task define shutter(): """Install snipping tool for ubuntu""" call("sudo add-apt-repository ppa:shutter/ppa && sudo apt-get update && sudo apt-get install -yf shutter", shell=True)
26.857143
120
0.707447
28
188
4.75
0.678571
0.105263
0.150376
0
0
0
0
0
0
0
0
0
0.148936
188
6
121
31.333333
0.83125
0
0
0
0
0.333333
0.662162
0
0
0
0
0
0
0
null
null
0
0
null
null
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
1
1
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
5
645e3a5dbe30c6bfd00e6401ca8aa3e79b612a2e
23
py
Python
src/productpage/garbage.py
thiago-a-azevedo/bookinfo-mono
143ad365de32e61f21931d9aa58d81ed38c3e87f
[ "Apache-2.0" ]
null
null
null
src/productpage/garbage.py
thiago-a-azevedo/bookinfo-mono
143ad365de32e61f21931d9aa58d81ed38c3e87f
[ "Apache-2.0" ]
null
null
null
src/productpage/garbage.py
thiago-a-azevedo/bookinfo-mono
143ad365de32e61f21931d9aa58d81ed38c3e87f
[ "Apache-2.0" ]
null
null
null
# garbage file update!
11.5
22
0.73913
3
23
5.666667
1
0
0
0
0
0
0
0
0
0
0
0
0.173913
23
1
23
23
0.894737
0.869565
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
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
646fcf8f90c25520c8be457aa6b0abeb7eaf3f77
106
py
Python
ifupy/arithmetic/__init__.py
nmearl/ifu-data-analysis
e9129f0d6fa113a0764ea83ae68d589eb7806c46
[ "BSD-3-Clause" ]
null
null
null
ifupy/arithmetic/__init__.py
nmearl/ifu-data-analysis
e9129f0d6fa113a0764ea83ae68d589eb7806c46
[ "BSD-3-Clause" ]
1
2015-01-05T16:10:16.000Z
2015-01-05T16:10:16.000Z
ifupy/arithmetic/__init__.py
nmearl/ifupy
e9129f0d6fa113a0764ea83ae68d589eb7806c46
[ "BSD-3-Clause" ]
null
null
null
from collapse import collapse_slice from extract import extract_spectrum from measure import line_measure
26.5
36
0.886792
15
106
6.066667
0.533333
0
0
0
0
0
0
0
0
0
0
0
0.113208
106
3
37
35.333333
0.968085
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
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
5
647c7fe46fac11f24bd112cc52e082788de320b1
89
py
Python
arxiv/canonical/domain/preservation.py
arXiv/arxiv-canonical
a758ed88a568f23a834288aed4dcf7039c1340cf
[ "MIT" ]
5
2019-05-26T22:52:54.000Z
2021-11-05T12:27:11.000Z
arxiv/canonical/domain/preservation.py
arXiv/arxiv-canonical
a758ed88a568f23a834288aed4dcf7039c1340cf
[ "MIT" ]
31
2019-06-24T13:51:25.000Z
2021-11-12T22:27:10.000Z
arxiv/canonical/domain/preservation.py
arXiv/arxiv-canonical
a758ed88a568f23a834288aed4dcf7039c1340cf
[ "MIT" ]
4
2019-01-10T22:01:54.000Z
2021-11-05T12:26:58.000Z
"""Core concepts and structs for the daily preservation record.""" # TODO: implement me!
29.666667
66
0.741573
12
89
5.5
1
0
0
0
0
0
0
0
0
0
0
0
0.146067
89
3
67
29.666667
0.868421
0.910112
0
null
0
null
0
0
null
0
0
0.333333
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
1
0
0
0
1
0
0
0
0
0
0
5
64c5cb743f5800376b1ffa667309b073896f2fb1
316
py
Python
fuser/admin.py
Mustazur1234/Movement-Pass-Clone
c1d9805bdb3e0fe881b9631c594cacfe4009bd94
[ "MIT" ]
29
2021-06-01T20:38:00.000Z
2021-09-14T05:02:07.000Z
fuser/admin.py
Mustazur1234/Movement-Pass-Clone
c1d9805bdb3e0fe881b9631c594cacfe4009bd94
[ "MIT" ]
1
2021-06-20T13:50:12.000Z
2021-06-20T14:43:08.000Z
fuser/admin.py
Mustazur1234/Movement-Pass-Clone
c1d9805bdb3e0fe881b9631c594cacfe4009bd94
[ "MIT" ]
25
2021-06-03T13:29:47.000Z
2021-08-31T16:04:43.000Z
from django.contrib import admin from .models import District, MovementReason, \ MovementPass, MoveType,TimeSpend admin.site.register(District) #admin.site.register(Subdistrict) admin.site.register(MovementReason) admin.site.register(MovementPass) admin.site.register(TimeSpend) admin.site.register(MoveType)
24.307692
47
0.81962
37
316
7
0.378378
0.208494
0.393822
0.200772
0
0
0
0
0
0
0
0
0.079114
316
12
48
26.333333
0.890034
0.101266
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.25
0.25
0
0.25
0
0
0
0
null
1
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
1
1
0
0
0
0
0
5
b3872fa05f44e85b9ae678bae131cb535a8ce818
107
py
Python
enthought/envisage/ui/workbench/workbench_window.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
3
2016-12-09T06:05:18.000Z
2018-03-01T13:00:29.000Z
enthought/envisage/ui/workbench/workbench_window.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
1
2020-12-02T00:51:32.000Z
2020-12-02T08:48:55.000Z
enthought/envisage/ui/workbench/workbench_window.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
null
null
null
# proxy module from __future__ import absolute_import from envisage.ui.workbench.workbench_window import *
26.75
52
0.850467
14
107
6.071429
0.714286
0
0
0
0
0
0
0
0
0
0
0
0.102804
107
3
53
35.666667
0.885417
0.11215
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
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
1
0
1
0
0
5
b391ae7e09280b23f66f3aea65fe52155ac7fdd7
152
py
Python
cups/GasCups.py
xafardero/pycups
fd9bbfcc07f5f87d4e84801e15d60e46a42432db
[ "MIT" ]
null
null
null
cups/GasCups.py
xafardero/pycups
fd9bbfcc07f5f87d4e84801e15d60e46a42432db
[ "MIT" ]
1
2019-10-21T08:35:45.000Z
2019-10-21T08:35:45.000Z
cups/GasCups.py
xafardero/pycups
fd9bbfcc07f5f87d4e84801e15d60e46a42432db
[ "MIT" ]
1
2019-10-16T18:55:00.000Z
2019-10-16T18:55:00.000Z
import string from CupsGenerator import CupsGenerator class GasCupsGenerator(CupsGenerator): def _start_with(self) -> string: return '02'
19
39
0.75
16
152
7
0.75
0
0
0
0
0
0
0
0
0
0
0.016129
0.184211
152
7
40
21.714286
0.887097
0
0
0
0
0
0.013158
0
0
0
0
0
0
1
0.2
false
0
0.4
0.2
1
0
1
0
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
0
0
1
1
1
0
0
5
b3c6c9a3c6fdd6244a713a7f8111cb48607fe829
209
py
Python
day9/server/models/db.py
smalljiny/raspi-class-example
7f92f34d366b94f9ae3c7da5ebeacdeb628be446
[ "Apache-2.0" ]
null
null
null
day9/server/models/db.py
smalljiny/raspi-class-example
7f92f34d366b94f9ae3c7da5ebeacdeb628be446
[ "Apache-2.0" ]
null
null
null
day9/server/models/db.py
smalljiny/raspi-class-example
7f92f34d366b94f9ae3c7da5ebeacdeb628be446
[ "Apache-2.0" ]
null
null
null
from pymysql import connect # DB 연결 def get_connection(): return connect(host='192.168.25.61', user='pi', password='1qazxsw2!', db='raspi', charset='utf8')
20.9
40
0.535885
24
209
4.625
0.916667
0
0
0
0
0
0
0
0
0
0
0.092199
0.325359
209
9
41
23.222222
0.695035
0.023923
0
0
0
0
0.163366
0
0
0
0
0
0
1
0.142857
true
0.142857
0.142857
0.142857
0.428571
0
1
0
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
1
0
1
0
0
0
5
3787385676a1cdbad9b7df90ed9c35fa51d8970d
50
py
Python
crawler/__init__.py
capaximperii/Alyke
acb266dc5cd137d0423873c1368089c2d1d67f37
[ "MIT" ]
null
null
null
crawler/__init__.py
capaximperii/Alyke
acb266dc5cd137d0423873c1368089c2d1d67f37
[ "MIT" ]
null
null
null
crawler/__init__.py
capaximperii/Alyke
acb266dc5cd137d0423873c1368089c2d1d67f37
[ "MIT" ]
null
null
null
from crawler.CrawlerFactory import CrawlerFactory
25
49
0.9
5
50
9
0.8
0
0
0
0
0
0
0
0
0
0
0
0.08
50
1
50
50
0.978261
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
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
5
378faa6fc28989387667c950497212c8bfd0c03a
83
py
Python
dbesg/exceptions.py
lee3jjang/dbesg
74c2e0c492af5feb3a45afc3c31eaea58d79d8c8
[ "MIT" ]
1
2020-07-21T13:10:33.000Z
2020-07-21T13:10:33.000Z
dbesg/exceptions.py
lee3jjang/dbesg
74c2e0c492af5feb3a45afc3c31eaea58d79d8c8
[ "MIT" ]
1
2020-07-15T00:30:53.000Z
2020-07-15T00:34:03.000Z
dbesg/exceptions.py
lee3jjang/dbesg
74c2e0c492af5feb3a45afc3c31eaea58d79d8c8
[ "MIT" ]
1
2021-01-10T06:01:10.000Z
2021-01-10T06:01:10.000Z
class OrderError(ValueError): pass class CompoundedError(ValueError): pass
16.6
34
0.759036
8
83
7.875
0.625
0.444444
0
0
0
0
0
0
0
0
0
0
0.168675
83
5
35
16.6
0.913043
0
0
0.5
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
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
1
1
0
0
0
0
0
5
808d0530ee31c016d48f71b0845c3e30cad8c025
96
py
Python
venv/lib/python3.8/site-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py
Retraces/UkraineBot
3d5d7f8aaa58fa0cb8b98733b8808e5dfbdb8b71
[ "MIT" ]
2
2022-03-13T01:58:52.000Z
2022-03-31T06:07:54.000Z
venv/lib/python3.8/site-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
19
2021-11-20T04:09:18.000Z
2022-03-23T15:05:55.000Z
venv/lib/python3.8/site-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
null
null
null
/home/runner/.cache/pip/pool/ef/07/3d/1b711f0ef03e59817f3c59f334e6fb4f46fff89a86e2f0fe7be9e54a2f
96
96
0.895833
9
96
9.555556
1
0
0
0
0
0
0
0
0
0
0
0.375
0
96
1
96
96
0.520833
0
0
0
0
0
0
0
0
1
0
0
0
0
null
null
0
0
null
null
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
0
0
0
null
1
0
0
0
1
0
0
0
0
0
0
0
0
5