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
a5be65677d4a641a1faddc9c5cd3c9b214799563
208
py
Python
_setup/management/commands/setup.py
marcoEDU/HackerspaceWebsiteTemplate
29621a5f5daef7a8073f368b7d95a1df654c8ba9
[ "MIT" ]
9
2019-11-04T04:46:08.000Z
2019-12-29T22:24:38.000Z
_setup/management/commands/setup.py
marcoEDU/HackerspaceWebsiteTemplate
29621a5f5daef7a8073f368b7d95a1df654c8ba9
[ "MIT" ]
27
2020-02-17T17:57:00.000Z
2020-04-23T20:25:44.000Z
_setup/management/commands/setup.py
marcoEDU/HackerspaceWebsiteTemplate
29621a5f5daef7a8073f368b7d95a1df654c8ba9
[ "MIT" ]
4
2020-02-17T13:39:18.000Z
2020-04-12T07:56:45.000Z
from django.core.management.base import BaseCommand from _setup.models import Setup class Command(BaseCommand): help = "start the setup" def handle(self, *args, **options): Setup()._menu()
20.8
51
0.701923
26
208
5.538462
0.769231
0
0
0
0
0
0
0
0
0
0
0
0.1875
208
9
52
23.111111
0.852071
0
0
0
0
0
0.072115
0
0
0
0
0
0
1
0.166667
false
0
0.333333
0
0.833333
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
0
1
0
0
4
3c37313c8a5e38458b4a6ec413a35e4efb2a78d0
29
py
Python
peon/src/lint/principles/definition/no_public_methods_without_a_contract_interface.py
roch1990/peon
0e9e40956c05138c0820fe380b354fdd1fe95e01
[ "MIT" ]
32
2020-05-18T14:02:59.000Z
2022-02-06T15:00:12.000Z
peon/src/lint/principles/definition/no_orm.py
roch1990/peon
0e9e40956c05138c0820fe380b354fdd1fe95e01
[ "MIT" ]
42
2020-05-22T20:29:08.000Z
2021-03-10T21:24:23.000Z
peon/src/lint/principles/definition/no_public_methods_without_a_contract_interface.py
roch1990/peon
0e9e40956c05138c0820fe380b354fdd1fe95e01
[ "MIT" ]
4
2020-07-02T06:32:42.000Z
2022-01-24T22:46:02.000Z
"""Nothing to do here...."""
14.5
28
0.517241
4
29
3.75
1
0
0
0
0
0
0
0
0
0
0
0
0.137931
29
1
29
29
0.6
0.758621
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
3c4c254e3413e41241a6614b74253bb28bfbe663
67
py
Python
ja/code_snippets/results/result.api-tags-update.py
quotecenter/documentation-1
f365703264761aa2b19d5d1d8ec55a3a6082ef4d
[ "BSD-3-Clause" ]
null
null
null
ja/code_snippets/results/result.api-tags-update.py
quotecenter/documentation-1
f365703264761aa2b19d5d1d8ec55a3a6082ef4d
[ "BSD-3-Clause" ]
null
null
null
ja/code_snippets/results/result.api-tags-update.py
quotecenter/documentation-1
f365703264761aa2b19d5d1d8ec55a3a6082ef4d
[ "BSD-3-Clause" ]
null
null
null
{'host': 'hostname', 'tags': ['role:database','environment:test']}
33.5
66
0.641791
7
67
6.142857
1
0
0
0
0
0
0
0
0
0
0
0
0.059701
67
1
67
67
0.68254
0
0
0
0
0
0.671642
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
0
0
0
1
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
3c53f43410e811bef0bc3986177433ec4253cf94
101
py
Python
atomtools/__init__.py
atomse/atomtools
6771dca631dc9330822bb50826e2700ba6973b32
[ "MIT" ]
null
null
null
atomtools/__init__.py
atomse/atomtools
6771dca631dc9330822bb50826e2700ba6973b32
[ "MIT" ]
null
null
null
atomtools/__init__.py
atomse/atomtools
6771dca631dc9330822bb50826e2700ba6973b32
[ "MIT" ]
null
null
null
""" independent chemical symbols """ __version__ = '1.9.4' def version(): return __version__
9.181818
28
0.663366
11
101
5.363636
0.818182
0
0
0
0
0
0
0
0
0
0
0.037037
0.19802
101
10
29
10.1
0.691358
0.277228
0
0
0
0
0.076923
0
0
0
0
0
0
1
0.333333
false
0
0
0.333333
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
1
0
0
0
1
1
0
0
4
3c563c4c27b1f1998bed1fb8843954604a2c8dc4
64
py
Python
AtCoder/ABC/150/A.500 Yen Coins.py
shinkeonkim/today-ps
f3e5e38c5215f19579bb0422f303a9c18c626afa
[ "Apache-2.0" ]
2
2020-01-29T06:54:41.000Z
2021-11-07T13:23:27.000Z
AtCoder/ABC/150/A.500 Yen Coins.py
shinkeonkim/Today_PS
bb0cda0ee1b9c57e1cfa38355e29d0f1c6167a44
[ "Apache-2.0" ]
null
null
null
AtCoder/ABC/150/A.500 Yen Coins.py
shinkeonkim/Today_PS
bb0cda0ee1b9c57e1cfa38355e29d0f1c6167a44
[ "Apache-2.0" ]
null
null
null
K,X=map(int,input().split()) print("Yes" if K*500>=X else "No" )
32
35
0.609375
14
64
2.785714
0.857143
0
0
0
0
0
0
0
0
0
0
0.051724
0.09375
64
2
35
32
0.62069
0
0
0
0
0
0.076923
0
0
0
0
0
0
1
0
true
0
0
0
0
0.5
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
0
0
0
1
0
4
b1b6296a9f7860ce6c425005dcedc0dfdc83f5a5
74
py
Python
server/tests/steps/__init__.py
JeremyJacquemont/weaverbird
e04ab6f9c8381986ab71078e5199ece7a875e743
[ "BSD-3-Clause" ]
54
2019-11-20T15:07:39.000Z
2022-03-24T22:13:51.000Z
server/tests/steps/__init__.py
JeremyJacquemont/weaverbird
e04ab6f9c8381986ab71078e5199ece7a875e743
[ "BSD-3-Clause" ]
786
2019-10-20T11:48:37.000Z
2022-03-23T08:58:18.000Z
server/tests/steps/__init__.py
JeremyJacquemont/weaverbird
e04ab6f9c8381986ab71078e5199ece7a875e743
[ "BSD-3-Clause" ]
10
2019-11-21T10:16:16.000Z
2022-03-21T10:34:06.000Z
""" This module contains unit tests for every supported pipeline step """
18.5
65
0.756757
10
74
5.6
1
0
0
0
0
0
0
0
0
0
0
0
0.162162
74
3
66
24.666667
0.903226
0.878378
0
null
0
null
0
0
null
0
0
0
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
0
0
0
0
1
0
0
0
0
0
0
4
b1b8ed8e3f60e68ed929fda43ce41efbb0572f53
235
py
Python
hug_peewee/__init__.py
timothycrosley/hug_peewee
168b7b106bbe5cdc885d206f188e12458aa12d8f
[ "MIT" ]
7
2016-05-23T04:01:23.000Z
2017-10-02T18:23:50.000Z
hug_peewee/__init__.py
hugapi/hug_peewee
168b7b106bbe5cdc885d206f188e12458aa12d8f
[ "MIT" ]
1
2016-06-21T14:33:54.000Z
2016-06-21T14:33:54.000Z
hug_peewee/__init__.py
timothycrosley/hug_peewee
168b7b106bbe5cdc885d206f188e12458aa12d8f
[ "MIT" ]
4
2016-05-21T11:14:46.000Z
2017-06-28T11:07:06.000Z
"""Defines how the hug_peewee package exposes modules as well as exposes it's version number""" from hug_peewee._version import current from hug_peewee.connection import ENGINES from hug_peewee import connection __version__ = current
33.571429
95
0.829787
35
235
5.314286
0.542857
0.193548
0.209677
0
0
0
0
0
0
0
0
0
0.12766
235
6
96
39.166667
0.907317
0.378723
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.75
0
0.75
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
b1c2b033f23d111caa431ecb4473ce4f1ef07a19
469
py
Python
mysite/services/plot_bound_service.py
mscibxablach/PhotoApp2
84cf70bd5f6442ed325f1082a6e0087883e06d37
[ "MIT" ]
null
null
null
mysite/services/plot_bound_service.py
mscibxablach/PhotoApp2
84cf70bd5f6442ed325f1082a6e0087883e06d37
[ "MIT" ]
null
null
null
mysite/services/plot_bound_service.py
mscibxablach/PhotoApp2
84cf70bd5f6442ed325f1082a6e0087883e06d37
[ "MIT" ]
null
null
null
from mysite.plot_bound_detector.PlotBoundCalculator import PlotBoundCalculator class PlotBoundService: def __init__(self, plot_bound_detector): self.plot_bound_detector = plot_bound_detector def get_plot_bound_ratio(self, image): top_chunks, bottom_chunks = self.plot_bound_detector.get_plot_bound(image) top, bottom, ratio = PlotBoundCalculator.calculate_distance_ratio(top_chunks, bottom_chunks) return top, bottom, ratio
33.5
100
0.782516
57
469
6
0.368421
0.184211
0.248538
0.184211
0
0
0
0
0
0
0
0
0.157783
469
13
101
36.076923
0.865823
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.125
0
0.625
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
0
1
0
0
4
b1c3034e622fe8d88e389a94d7012e55273c12fe
153
py
Python
main.py
csepy/csepy
3dc39e60948d62bede48bddac0ad5aa8533550d3
[ "MIT" ]
1
2019-12-11T10:41:40.000Z
2019-12-11T10:41:40.000Z
main.py
csepy/csepy
3dc39e60948d62bede48bddac0ad5aa8533550d3
[ "MIT" ]
null
null
null
main.py
csepy/csepy
3dc39e60948d62bede48bddac0ad5aa8533550d3
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import sys from csepy.csepy import Start if len(sys.argv) > 1: Start(sysargs=sys.argv) elif __name__ == '__main__': Start()
15.3
29
0.679739
23
153
4.173913
0.695652
0.145833
0
0
0
0
0
0
0
0
0
0.015873
0.176471
153
9
30
17
0.746032
0.111111
0
0
0
0
0.059259
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
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
0
0
0
4
b1ca8455cd7c541d98a06230949c561591580fc6
301
py
Python
authentik/stages/user_delete/apps.py
BeryJu/passbook
350f0d836580f4411524614f361a76c4f27b8a2d
[ "MIT" ]
15
2020-01-05T09:09:57.000Z
2020-11-28T05:27:39.000Z
authentik/stages/user_delete/apps.py
BeryJu/passbook
350f0d836580f4411524614f361a76c4f27b8a2d
[ "MIT" ]
302
2020-01-21T08:03:59.000Z
2020-12-04T05:04:57.000Z
authentik/stages/user_delete/apps.py
BeryJu/passbook
350f0d836580f4411524614f361a76c4f27b8a2d
[ "MIT" ]
3
2020-03-04T08:21:59.000Z
2020-08-01T20:37:18.000Z
"""authentik delete stage app config""" from django.apps import AppConfig class AuthentikStageUserDeleteConfig(AppConfig): """authentik delete stage config""" name = "authentik.stages.user_delete" label = "authentik_stages_user_delete" verbose_name = "authentik Stages.User Delete"
27.363636
49
0.757475
33
301
6.757576
0.515152
0.201794
0.255605
0.336323
0.26009
0
0
0
0
0
0
0
0.149502
301
10
50
30.1
0.871094
0.209302
0
0
0
0
0.370044
0.246696
0
0
0
0
0
1
0
false
0
0.2
0
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
0
1
0
0
4
b1f3fc6fc3b8c675db655d99b051e863d571ff21
24,881
py
Python
tests/examples/minlplib/graphpart_2g-0088-0088.py
ouyang-w-19/decogo
52546480e49776251d4d27856e18a46f40c824a1
[ "MIT" ]
2
2021-07-03T13:19:10.000Z
2022-02-06T10:48:13.000Z
tests/examples/minlplib/graphpart_2g-0088-0088.py
ouyang-w-19/decogo
52546480e49776251d4d27856e18a46f40c824a1
[ "MIT" ]
1
2021-07-04T14:52:14.000Z
2021-07-15T10:17:11.000Z
tests/examples/minlplib/graphpart_2g-0088-0088.py
ouyang-w-19/decogo
52546480e49776251d4d27856e18a46f40c824a1
[ "MIT" ]
null
null
null
# MINLP written by GAMS Convert at 04/21/18 13:52:22 # # Equation counts # Total E G L N X C B # 65 65 0 0 0 0 0 0 # # Variable counts # x b i s1s s2s sc si # Total cont binary integer sos1 sos2 scont sint # 193 1 192 0 0 0 0 0 # FX 0 0 0 0 0 0 0 0 # # Nonzero counts # Total const NL DLL # 385 193 192 0 # # Reformulation has removed 1 variable and 1 equation from pyomo.environ import * model = m = ConcreteModel() m.b1 = Var(within=Binary,bounds=(0,1),initialize=0) m.b2 = Var(within=Binary,bounds=(0,1),initialize=0) m.b3 = Var(within=Binary,bounds=(0,1),initialize=0) m.b4 = Var(within=Binary,bounds=(0,1),initialize=0) m.b5 = Var(within=Binary,bounds=(0,1),initialize=0) m.b6 = Var(within=Binary,bounds=(0,1),initialize=0) m.b7 = Var(within=Binary,bounds=(0,1),initialize=0) m.b8 = Var(within=Binary,bounds=(0,1),initialize=0) m.b9 = Var(within=Binary,bounds=(0,1),initialize=0) m.b10 = Var(within=Binary,bounds=(0,1),initialize=0) m.b11 = Var(within=Binary,bounds=(0,1),initialize=0) m.b12 = Var(within=Binary,bounds=(0,1),initialize=0) m.b13 = Var(within=Binary,bounds=(0,1),initialize=0) m.b14 = Var(within=Binary,bounds=(0,1),initialize=0) m.b15 = Var(within=Binary,bounds=(0,1),initialize=0) m.b16 = Var(within=Binary,bounds=(0,1),initialize=0) m.b17 = Var(within=Binary,bounds=(0,1),initialize=0) m.b18 = Var(within=Binary,bounds=(0,1),initialize=0) m.b19 = Var(within=Binary,bounds=(0,1),initialize=0) m.b20 = Var(within=Binary,bounds=(0,1),initialize=0) m.b21 = Var(within=Binary,bounds=(0,1),initialize=0) m.b22 = Var(within=Binary,bounds=(0,1),initialize=0) m.b23 = Var(within=Binary,bounds=(0,1),initialize=0) m.b24 = Var(within=Binary,bounds=(0,1),initialize=0) m.b25 = Var(within=Binary,bounds=(0,1),initialize=0) m.b26 = Var(within=Binary,bounds=(0,1),initialize=0) m.b27 = Var(within=Binary,bounds=(0,1),initialize=0) m.b28 = Var(within=Binary,bounds=(0,1),initialize=0) m.b29 = Var(within=Binary,bounds=(0,1),initialize=0) m.b30 = Var(within=Binary,bounds=(0,1),initialize=0) m.b31 = Var(within=Binary,bounds=(0,1),initialize=0) m.b32 = Var(within=Binary,bounds=(0,1),initialize=0) m.b33 = Var(within=Binary,bounds=(0,1),initialize=0) m.b34 = Var(within=Binary,bounds=(0,1),initialize=0) m.b35 = Var(within=Binary,bounds=(0,1),initialize=0) m.b36 = Var(within=Binary,bounds=(0,1),initialize=0) m.b37 = Var(within=Binary,bounds=(0,1),initialize=0) m.b38 = Var(within=Binary,bounds=(0,1),initialize=0) m.b39 = Var(within=Binary,bounds=(0,1),initialize=0) m.b40 = Var(within=Binary,bounds=(0,1),initialize=0) m.b41 = Var(within=Binary,bounds=(0,1),initialize=0) m.b42 = Var(within=Binary,bounds=(0,1),initialize=0) m.b43 = Var(within=Binary,bounds=(0,1),initialize=0) m.b44 = Var(within=Binary,bounds=(0,1),initialize=0) m.b45 = Var(within=Binary,bounds=(0,1),initialize=0) m.b46 = Var(within=Binary,bounds=(0,1),initialize=0) m.b47 = Var(within=Binary,bounds=(0,1),initialize=0) m.b48 = Var(within=Binary,bounds=(0,1),initialize=0) m.b49 = Var(within=Binary,bounds=(0,1),initialize=0) m.b50 = Var(within=Binary,bounds=(0,1),initialize=0) m.b51 = Var(within=Binary,bounds=(0,1),initialize=0) m.b52 = Var(within=Binary,bounds=(0,1),initialize=0) m.b53 = Var(within=Binary,bounds=(0,1),initialize=0) m.b54 = Var(within=Binary,bounds=(0,1),initialize=0) m.b55 = Var(within=Binary,bounds=(0,1),initialize=0) m.b56 = Var(within=Binary,bounds=(0,1),initialize=0) m.b57 = Var(within=Binary,bounds=(0,1),initialize=0) m.b58 = Var(within=Binary,bounds=(0,1),initialize=0) m.b59 = Var(within=Binary,bounds=(0,1),initialize=0) m.b60 = Var(within=Binary,bounds=(0,1),initialize=0) m.b61 = Var(within=Binary,bounds=(0,1),initialize=0) m.b62 = Var(within=Binary,bounds=(0,1),initialize=0) m.b63 = Var(within=Binary,bounds=(0,1),initialize=0) m.b64 = Var(within=Binary,bounds=(0,1),initialize=0) m.b65 = Var(within=Binary,bounds=(0,1),initialize=0) m.b66 = Var(within=Binary,bounds=(0,1),initialize=0) m.b67 = Var(within=Binary,bounds=(0,1),initialize=0) m.b68 = Var(within=Binary,bounds=(0,1),initialize=0) m.b69 = Var(within=Binary,bounds=(0,1),initialize=0) m.b70 = Var(within=Binary,bounds=(0,1),initialize=0) m.b71 = Var(within=Binary,bounds=(0,1),initialize=0) m.b72 = Var(within=Binary,bounds=(0,1),initialize=0) m.b73 = Var(within=Binary,bounds=(0,1),initialize=0) m.b74 = Var(within=Binary,bounds=(0,1),initialize=0) m.b75 = Var(within=Binary,bounds=(0,1),initialize=0) m.b76 = Var(within=Binary,bounds=(0,1),initialize=0) m.b77 = Var(within=Binary,bounds=(0,1),initialize=0) m.b78 = Var(within=Binary,bounds=(0,1),initialize=0) m.b79 = Var(within=Binary,bounds=(0,1),initialize=0) m.b80 = Var(within=Binary,bounds=(0,1),initialize=0) m.b81 = Var(within=Binary,bounds=(0,1),initialize=0) m.b82 = Var(within=Binary,bounds=(0,1),initialize=0) m.b83 = Var(within=Binary,bounds=(0,1),initialize=0) m.b84 = Var(within=Binary,bounds=(0,1),initialize=0) m.b85 = Var(within=Binary,bounds=(0,1),initialize=0) m.b86 = Var(within=Binary,bounds=(0,1),initialize=0) m.b87 = Var(within=Binary,bounds=(0,1),initialize=0) m.b88 = Var(within=Binary,bounds=(0,1),initialize=0) m.b89 = Var(within=Binary,bounds=(0,1),initialize=0) m.b90 = Var(within=Binary,bounds=(0,1),initialize=0) m.b91 = Var(within=Binary,bounds=(0,1),initialize=0) m.b92 = Var(within=Binary,bounds=(0,1),initialize=0) m.b93 = Var(within=Binary,bounds=(0,1),initialize=0) m.b94 = Var(within=Binary,bounds=(0,1),initialize=0) m.b95 = Var(within=Binary,bounds=(0,1),initialize=0) m.b96 = Var(within=Binary,bounds=(0,1),initialize=0) m.b97 = Var(within=Binary,bounds=(0,1),initialize=0) m.b98 = Var(within=Binary,bounds=(0,1),initialize=0) m.b99 = Var(within=Binary,bounds=(0,1),initialize=0) m.b100 = Var(within=Binary,bounds=(0,1),initialize=0) m.b101 = Var(within=Binary,bounds=(0,1),initialize=0) m.b102 = Var(within=Binary,bounds=(0,1),initialize=0) m.b103 = Var(within=Binary,bounds=(0,1),initialize=0) m.b104 = Var(within=Binary,bounds=(0,1),initialize=0) m.b105 = Var(within=Binary,bounds=(0,1),initialize=0) m.b106 = Var(within=Binary,bounds=(0,1),initialize=0) m.b107 = Var(within=Binary,bounds=(0,1),initialize=0) m.b108 = Var(within=Binary,bounds=(0,1),initialize=0) m.b109 = Var(within=Binary,bounds=(0,1),initialize=0) m.b110 = Var(within=Binary,bounds=(0,1),initialize=0) m.b111 = Var(within=Binary,bounds=(0,1),initialize=0) m.b112 = Var(within=Binary,bounds=(0,1),initialize=0) m.b113 = Var(within=Binary,bounds=(0,1),initialize=0) m.b114 = Var(within=Binary,bounds=(0,1),initialize=0) m.b115 = Var(within=Binary,bounds=(0,1),initialize=0) m.b116 = Var(within=Binary,bounds=(0,1),initialize=0) m.b117 = Var(within=Binary,bounds=(0,1),initialize=0) m.b118 = Var(within=Binary,bounds=(0,1),initialize=0) m.b119 = Var(within=Binary,bounds=(0,1),initialize=0) m.b120 = Var(within=Binary,bounds=(0,1),initialize=0) m.b121 = Var(within=Binary,bounds=(0,1),initialize=0) m.b122 = Var(within=Binary,bounds=(0,1),initialize=0) m.b123 = Var(within=Binary,bounds=(0,1),initialize=0) m.b124 = Var(within=Binary,bounds=(0,1),initialize=0) m.b125 = Var(within=Binary,bounds=(0,1),initialize=0) m.b126 = Var(within=Binary,bounds=(0,1),initialize=0) m.b127 = Var(within=Binary,bounds=(0,1),initialize=0) m.b128 = Var(within=Binary,bounds=(0,1),initialize=0) m.b129 = Var(within=Binary,bounds=(0,1),initialize=0) m.b130 = Var(within=Binary,bounds=(0,1),initialize=0) m.b131 = Var(within=Binary,bounds=(0,1),initialize=0) m.b132 = Var(within=Binary,bounds=(0,1),initialize=0) m.b133 = Var(within=Binary,bounds=(0,1),initialize=0) m.b134 = Var(within=Binary,bounds=(0,1),initialize=0) m.b135 = Var(within=Binary,bounds=(0,1),initialize=0) m.b136 = Var(within=Binary,bounds=(0,1),initialize=0) m.b137 = Var(within=Binary,bounds=(0,1),initialize=0) m.b138 = Var(within=Binary,bounds=(0,1),initialize=0) m.b139 = Var(within=Binary,bounds=(0,1),initialize=0) m.b140 = Var(within=Binary,bounds=(0,1),initialize=0) m.b141 = Var(within=Binary,bounds=(0,1),initialize=0) m.b142 = Var(within=Binary,bounds=(0,1),initialize=0) m.b143 = Var(within=Binary,bounds=(0,1),initialize=0) m.b144 = Var(within=Binary,bounds=(0,1),initialize=0) m.b145 = Var(within=Binary,bounds=(0,1),initialize=0) m.b146 = Var(within=Binary,bounds=(0,1),initialize=0) m.b147 = Var(within=Binary,bounds=(0,1),initialize=0) m.b148 = Var(within=Binary,bounds=(0,1),initialize=0) m.b149 = Var(within=Binary,bounds=(0,1),initialize=0) m.b150 = Var(within=Binary,bounds=(0,1),initialize=0) m.b151 = Var(within=Binary,bounds=(0,1),initialize=0) m.b152 = Var(within=Binary,bounds=(0,1),initialize=0) m.b153 = Var(within=Binary,bounds=(0,1),initialize=0) m.b154 = Var(within=Binary,bounds=(0,1),initialize=0) m.b155 = Var(within=Binary,bounds=(0,1),initialize=0) m.b156 = Var(within=Binary,bounds=(0,1),initialize=0) m.b157 = Var(within=Binary,bounds=(0,1),initialize=0) m.b158 = Var(within=Binary,bounds=(0,1),initialize=0) m.b159 = Var(within=Binary,bounds=(0,1),initialize=0) m.b160 = Var(within=Binary,bounds=(0,1),initialize=0) m.b161 = Var(within=Binary,bounds=(0,1),initialize=0) m.b162 = Var(within=Binary,bounds=(0,1),initialize=0) m.b163 = Var(within=Binary,bounds=(0,1),initialize=0) m.b164 = Var(within=Binary,bounds=(0,1),initialize=0) m.b165 = Var(within=Binary,bounds=(0,1),initialize=0) m.b166 = Var(within=Binary,bounds=(0,1),initialize=0) m.b167 = Var(within=Binary,bounds=(0,1),initialize=0) m.b168 = Var(within=Binary,bounds=(0,1),initialize=0) m.b169 = Var(within=Binary,bounds=(0,1),initialize=0) m.b170 = Var(within=Binary,bounds=(0,1),initialize=0) m.b171 = Var(within=Binary,bounds=(0,1),initialize=0) m.b172 = Var(within=Binary,bounds=(0,1),initialize=0) m.b173 = Var(within=Binary,bounds=(0,1),initialize=0) m.b174 = Var(within=Binary,bounds=(0,1),initialize=0) m.b175 = Var(within=Binary,bounds=(0,1),initialize=0) m.b176 = Var(within=Binary,bounds=(0,1),initialize=0) m.b177 = Var(within=Binary,bounds=(0,1),initialize=0) m.b178 = Var(within=Binary,bounds=(0,1),initialize=0) m.b179 = Var(within=Binary,bounds=(0,1),initialize=0) m.b180 = Var(within=Binary,bounds=(0,1),initialize=0) m.b181 = Var(within=Binary,bounds=(0,1),initialize=0) m.b182 = Var(within=Binary,bounds=(0,1),initialize=0) m.b183 = Var(within=Binary,bounds=(0,1),initialize=0) m.b184 = Var(within=Binary,bounds=(0,1),initialize=0) m.b185 = Var(within=Binary,bounds=(0,1),initialize=0) m.b186 = Var(within=Binary,bounds=(0,1),initialize=0) m.b187 = Var(within=Binary,bounds=(0,1),initialize=0) m.b188 = Var(within=Binary,bounds=(0,1),initialize=0) m.b189 = Var(within=Binary,bounds=(0,1),initialize=0) m.b190 = Var(within=Binary,bounds=(0,1),initialize=0) m.b191 = Var(within=Binary,bounds=(0,1),initialize=0) m.b192 = Var(within=Binary,bounds=(0,1),initialize=0) m.obj = Objective(expr=67634*m.b1*m.b22 - 83602*m.b1*m.b4 + 61711*m.b1*m.b25 - 59956*m.b1*m.b169 - 83602*m.b2*m.b5 + 67634*m.b2*m.b23 + 61711*m.b2*m.b26 - 59956*m.b2*m.b170 - 83602*m.b3*m.b6 + 67634*m.b3*m.b24 + 61711*m.b3*m.b27 - 59956*m.b3*m.b171 + 127500*m.b4*m.b7 + 35260*m.b4*m.b28 - 110030*m.b4*m.b172 + 127500*m.b5*m.b8 + 35260*m.b5*m.b29 - 110030*m.b5*m.b173 + 127500*m.b6*m.b9 + 35260*m.b6*m.b30 - 110030*m.b6*m.b174 - 68458*m.b7*m.b10 - 22985*m.b7*m.b31 - 35743*m.b7*m.b175 - 68458*m.b8* m.b11 - 22985*m.b8*m.b32 - 35743*m.b8*m.b176 - 68458*m.b9*m.b12 - 22985*m.b9*m.b33 - 35743*m.b9* m.b177 + 173612*m.b10*m.b13 + 199680*m.b10*m.b34 + 92582*m.b10*m.b178 + 173612*m.b11*m.b14 + 199680*m.b11*m.b35 + 92582*m.b11*m.b179 + 173612*m.b12*m.b15 + 199680*m.b12*m.b36 + 92582*m.b12* m.b180 + 117135*m.b13*m.b16 - 147716*m.b13*m.b37 + 130308*m.b13*m.b181 + 117135*m.b14*m.b17 - 147716*m.b14*m.b38 + 130308*m.b14*m.b182 + 117135*m.b15*m.b18 - 147716*m.b15*m.b39 + 130308*m.b15 *m.b183 + 91667*m.b16*m.b19 + 153955*m.b16*m.b40 - 21093*m.b16*m.b184 + 91667*m.b17*m.b20 + 153955*m.b17*m.b41 - 21093*m.b17*m.b185 + 91667*m.b18*m.b21 + 153955*m.b18*m.b42 - 21093*m.b18* m.b186 + 74165*m.b19*m.b22 - 220722*m.b19*m.b43 - 162288*m.b19*m.b187 + 74165*m.b20*m.b23 - 220722*m.b20*m.b44 - 162288*m.b20*m.b188 + 74165*m.b21*m.b24 - 220722*m.b21*m.b45 - 162288*m.b21* m.b189 + 35287*m.b22*m.b46 - 73662*m.b22*m.b190 + 35287*m.b23*m.b47 - 73662*m.b23*m.b191 + 35287* m.b24*m.b48 - 73662*m.b24*m.b192 + 47953*m.b25*m.b28 + 2925*m.b25*m.b46 - 24145*m.b25*m.b49 + 47953*m.b26*m.b29 + 2925*m.b26*m.b47 - 24145*m.b26*m.b50 + 47953*m.b27*m.b30 + 2925*m.b27*m.b48 - 24145*m.b27*m.b51 - 122136*m.b28*m.b31 - 77871*m.b28*m.b52 - 122136*m.b29*m.b32 - 77871*m.b29* m.b53 - 122136*m.b30*m.b33 - 77871*m.b30*m.b54 - 129158*m.b31*m.b34 - 45165*m.b31*m.b55 - 129158* m.b32*m.b35 - 45165*m.b32*m.b56 - 129158*m.b33*m.b36 - 45165*m.b33*m.b57 - 44654*m.b34*m.b37 + 18064*m.b34*m.b58 - 44654*m.b35*m.b38 + 18064*m.b35*m.b59 - 44654*m.b36*m.b39 + 18064*m.b36*m.b60 - 164293*m.b37*m.b40 - 62562*m.b37*m.b61 - 164293*m.b38*m.b41 - 62562*m.b38*m.b62 - 164293*m.b39 *m.b42 - 62562*m.b39*m.b63 + 15254*m.b40*m.b43 - 73788*m.b40*m.b64 + 15254*m.b41*m.b44 - 73788* m.b41*m.b65 + 15254*m.b42*m.b45 - 73788*m.b42*m.b66 + 67357*m.b43*m.b46 + 145724*m.b43*m.b67 + 67357*m.b44*m.b47 + 145724*m.b44*m.b68 + 67357*m.b45*m.b48 + 145724*m.b45*m.b69 + 77518*m.b46* m.b70 + 77518*m.b47*m.b71 + 77518*m.b48*m.b72 + 73006*m.b49*m.b52 - 97425*m.b49*m.b70 - 36871* m.b49*m.b73 + 73006*m.b50*m.b53 - 97425*m.b50*m.b71 - 36871*m.b50*m.b74 + 73006*m.b51*m.b54 - 97425*m.b51*m.b72 - 36871*m.b51*m.b75 - 85230*m.b52*m.b55 - 63550*m.b52*m.b76 - 85230*m.b53*m.b56 - 63550*m.b53*m.b77 - 85230*m.b54*m.b57 - 63550*m.b54*m.b78 - 153638*m.b55*m.b58 + 84496*m.b55* m.b79 - 153638*m.b56*m.b59 + 84496*m.b56*m.b80 - 153638*m.b57*m.b60 + 84496*m.b57*m.b81 + 7440* m.b58*m.b61 - 67520*m.b58*m.b82 + 7440*m.b59*m.b62 - 67520*m.b59*m.b83 + 7440*m.b60*m.b63 - 67520 *m.b60*m.b84 + 97476*m.b61*m.b64 - 234690*m.b61*m.b85 + 97476*m.b62*m.b65 - 234690*m.b62*m.b86 + 97476*m.b63*m.b66 - 234690*m.b63*m.b87 + 114707*m.b64*m.b67 + 218718*m.b64*m.b88 + 114707*m.b65* m.b68 + 218718*m.b65*m.b89 + 114707*m.b66*m.b69 + 218718*m.b66*m.b90 - 72968*m.b67*m.b70 + 54754* m.b67*m.b91 - 72968*m.b68*m.b71 + 54754*m.b68*m.b92 - 72968*m.b69*m.b72 + 54754*m.b69*m.b93 - 169837*m.b70*m.b94 - 169837*m.b71*m.b95 - 169837*m.b72*m.b96 - 18652*m.b73*m.b76 + 114918*m.b73* m.b94 - 6803*m.b73*m.b97 - 18652*m.b74*m.b77 + 114918*m.b74*m.b95 - 6803*m.b74*m.b98 - 18652* m.b75*m.b78 + 114918*m.b75*m.b96 - 6803*m.b75*m.b99 - 35802*m.b76*m.b79 - 95280*m.b76*m.b100 - 35802*m.b77*m.b80 - 95280*m.b77*m.b101 - 35802*m.b78*m.b81 - 95280*m.b78*m.b102 + 70821*m.b79* m.b82 - 58023*m.b79*m.b103 + 70821*m.b80*m.b83 - 58023*m.b80*m.b104 + 70821*m.b81*m.b84 - 58023* m.b81*m.b105 - 61946*m.b82*m.b85 - 264072*m.b82*m.b106 - 61946*m.b83*m.b86 - 264072*m.b83*m.b107 - 61946*m.b84*m.b87 - 264072*m.b84*m.b108 - 92130*m.b85*m.b88 + 16108*m.b85*m.b109 - 92130*m.b86 *m.b89 + 16108*m.b86*m.b110 - 92130*m.b87*m.b90 + 16108*m.b87*m.b111 + 159379*m.b88*m.b91 + 204734*m.b88*m.b112 + 159379*m.b89*m.b92 + 204734*m.b89*m.b113 + 159379*m.b90*m.b93 + 204734* m.b90*m.b114 - 189099*m.b91*m.b94 - 64588*m.b91*m.b115 - 189099*m.b92*m.b95 - 64588*m.b92*m.b116 - 189099*m.b93*m.b96 - 64588*m.b93*m.b117 + 130590*m.b94*m.b118 + 130590*m.b95*m.b119 + 130590* m.b96*m.b120 - 8447*m.b97*m.b100 + 90736*m.b97*m.b118 + 38420*m.b97*m.b121 - 8447*m.b98*m.b101 + 90736*m.b98*m.b119 + 38420*m.b98*m.b122 - 8447*m.b99*m.b102 + 90736*m.b99*m.b120 + 38420*m.b99* m.b123 + 22308*m.b100*m.b103 + 177432*m.b100*m.b124 + 22308*m.b101*m.b104 + 177432*m.b101*m.b125 + 22308*m.b102*m.b105 + 177432*m.b102*m.b126 - 14134*m.b103*m.b106 - 28668*m.b103*m.b127 - 14134 *m.b104*m.b107 - 28668*m.b104*m.b128 - 14134*m.b105*m.b108 - 28668*m.b105*m.b129 - 61805*m.b106* m.b109 - 22047*m.b106*m.b130 - 61805*m.b107*m.b110 - 22047*m.b107*m.b131 - 61805*m.b108*m.b111 - 22047*m.b108*m.b132 + 29936*m.b109*m.b112 - 36716*m.b109*m.b133 + 29936*m.b110*m.b113 - 36716* m.b110*m.b134 + 29936*m.b111*m.b114 - 36716*m.b111*m.b135 - 189188*m.b112*m.b115 + 56108*m.b112* m.b136 - 189188*m.b113*m.b116 + 56108*m.b113*m.b137 - 189188*m.b114*m.b117 + 56108*m.b114*m.b138 + 87321*m.b115*m.b118 + 43200*m.b115*m.b139 + 87321*m.b116*m.b119 + 43200*m.b116*m.b140 + 87321* m.b117*m.b120 + 43200*m.b117*m.b141 - 105343*m.b118*m.b142 - 105343*m.b119*m.b143 - 105343*m.b120 *m.b144 + 1787*m.b121*m.b124 - 39963*m.b121*m.b142 - 49240*m.b121*m.b145 + 1787*m.b122*m.b125 - 39963*m.b122*m.b143 - 49240*m.b122*m.b146 + 1787*m.b123*m.b126 - 39963*m.b123*m.b144 - 49240* m.b123*m.b147 - 19759*m.b124*m.b127 - 51266*m.b124*m.b148 - 19759*m.b125*m.b128 - 51266*m.b125* m.b149 - 19759*m.b126*m.b129 - 51266*m.b126*m.b150 - 156795*m.b127*m.b130 - 90008*m.b127*m.b151 - 156795*m.b128*m.b131 - 90008*m.b128*m.b152 - 156795*m.b129*m.b132 - 90008*m.b129*m.b153 + 76764*m.b130*m.b133 - 54058*m.b130*m.b154 + 76764*m.b131*m.b134 - 54058*m.b131*m.b155 + 76764* m.b132*m.b135 - 54058*m.b132*m.b156 - 20555*m.b133*m.b136 - 275957*m.b133*m.b157 - 20555*m.b134* m.b137 - 275957*m.b134*m.b158 - 20555*m.b135*m.b138 - 275957*m.b135*m.b159 + 17070*m.b136*m.b139 - 154864*m.b136*m.b160 + 17070*m.b137*m.b140 - 154864*m.b137*m.b161 + 17070*m.b138*m.b141 - 154864*m.b138*m.b162 - 162791*m.b139*m.b142 - 8148*m.b139*m.b163 - 162791*m.b140*m.b143 - 8148* m.b140*m.b164 - 162791*m.b141*m.b144 - 8148*m.b141*m.b165 - 3896*m.b142*m.b166 - 3896*m.b143* m.b167 - 3896*m.b144*m.b168 - 105352*m.b145*m.b148 + 45364*m.b145*m.b166 - 37043*m.b145*m.b169 - 105352*m.b146*m.b149 + 45364*m.b146*m.b167 - 37043*m.b146*m.b170 - 105352*m.b147*m.b150 + 45364* m.b147*m.b168 - 37043*m.b147*m.b171 + 211004*m.b148*m.b151 - 65416*m.b148*m.b172 + 211004*m.b149* m.b152 - 65416*m.b149*m.b173 + 211004*m.b150*m.b153 - 65416*m.b150*m.b174 - 12091*m.b151*m.b154 + 47044*m.b151*m.b175 - 12091*m.b152*m.b155 + 47044*m.b152*m.b176 - 12091*m.b153*m.b156 + 47044* m.b153*m.b177 - 64916*m.b154*m.b157 - 158531*m.b154*m.b178 - 64916*m.b155*m.b158 - 158531*m.b155* m.b179 - 64916*m.b156*m.b159 - 158531*m.b156*m.b180 - 19908*m.b157*m.b160 + 66609*m.b157*m.b181 - 19908*m.b158*m.b161 + 66609*m.b158*m.b182 - 19908*m.b159*m.b162 + 66609*m.b159*m.b183 - 22331* m.b160*m.b163 - 32557*m.b160*m.b184 - 22331*m.b161*m.b164 - 32557*m.b161*m.b185 - 22331*m.b162* m.b165 - 32557*m.b162*m.b186 - 218808*m.b163*m.b166 - 85264*m.b163*m.b187 - 218808*m.b164*m.b167 - 85264*m.b164*m.b188 - 218808*m.b165*m.b168 - 85264*m.b165*m.b189 - 75908*m.b166*m.b190 - 75908 *m.b167*m.b191 - 75908*m.b168*m.b192 - 75258*m.b169*m.b172 + 15236*m.b169*m.b190 - 75258*m.b170* m.b173 + 15236*m.b170*m.b191 - 75258*m.b171*m.b174 + 15236*m.b171*m.b192 - 72030*m.b172*m.b175 - 72030*m.b173*m.b176 - 72030*m.b174*m.b177 - 3058*m.b175*m.b178 - 3058*m.b176*m.b179 - 3058*m.b177 *m.b180 + 33988*m.b178*m.b181 + 33988*m.b179*m.b182 + 33988*m.b180*m.b183 + 116509*m.b181*m.b184 + 116509*m.b182*m.b185 + 116509*m.b183*m.b186 + 59421*m.b184*m.b187 + 59421*m.b185*m.b188 + 59421*m.b186*m.b189 - 277077*m.b187*m.b190 - 277077*m.b188*m.b191 - 277077*m.b189*m.b192 , sense=minimize) m.c1 = Constraint(expr= m.b1 + m.b2 + m.b3 == 1) m.c2 = Constraint(expr= m.b4 + m.b5 + m.b6 == 1) m.c3 = Constraint(expr= m.b7 + m.b8 + m.b9 == 1) m.c4 = Constraint(expr= m.b10 + m.b11 + m.b12 == 1) m.c5 = Constraint(expr= m.b13 + m.b14 + m.b15 == 1) m.c6 = Constraint(expr= m.b16 + m.b17 + m.b18 == 1) m.c7 = Constraint(expr= m.b19 + m.b20 + m.b21 == 1) m.c8 = Constraint(expr= m.b22 + m.b23 + m.b24 == 1) m.c9 = Constraint(expr= m.b25 + m.b26 + m.b27 == 1) m.c10 = Constraint(expr= m.b28 + m.b29 + m.b30 == 1) m.c11 = Constraint(expr= m.b31 + m.b32 + m.b33 == 1) m.c12 = Constraint(expr= m.b34 + m.b35 + m.b36 == 1) m.c13 = Constraint(expr= m.b37 + m.b38 + m.b39 == 1) m.c14 = Constraint(expr= m.b40 + m.b41 + m.b42 == 1) m.c15 = Constraint(expr= m.b43 + m.b44 + m.b45 == 1) m.c16 = Constraint(expr= m.b46 + m.b47 + m.b48 == 1) m.c17 = Constraint(expr= m.b49 + m.b50 + m.b51 == 1) m.c18 = Constraint(expr= m.b52 + m.b53 + m.b54 == 1) m.c19 = Constraint(expr= m.b55 + m.b56 + m.b57 == 1) m.c20 = Constraint(expr= m.b58 + m.b59 + m.b60 == 1) m.c21 = Constraint(expr= m.b61 + m.b62 + m.b63 == 1) m.c22 = Constraint(expr= m.b64 + m.b65 + m.b66 == 1) m.c23 = Constraint(expr= m.b67 + m.b68 + m.b69 == 1) m.c24 = Constraint(expr= m.b70 + m.b71 + m.b72 == 1) m.c25 = Constraint(expr= m.b73 + m.b74 + m.b75 == 1) m.c26 = Constraint(expr= m.b76 + m.b77 + m.b78 == 1) m.c27 = Constraint(expr= m.b79 + m.b80 + m.b81 == 1) m.c28 = Constraint(expr= m.b82 + m.b83 + m.b84 == 1) m.c29 = Constraint(expr= m.b85 + m.b86 + m.b87 == 1) m.c30 = Constraint(expr= m.b88 + m.b89 + m.b90 == 1) m.c31 = Constraint(expr= m.b91 + m.b92 + m.b93 == 1) m.c32 = Constraint(expr= m.b94 + m.b95 + m.b96 == 1) m.c33 = Constraint(expr= m.b97 + m.b98 + m.b99 == 1) m.c34 = Constraint(expr= m.b100 + m.b101 + m.b102 == 1) m.c35 = Constraint(expr= m.b103 + m.b104 + m.b105 == 1) m.c36 = Constraint(expr= m.b106 + m.b107 + m.b108 == 1) m.c37 = Constraint(expr= m.b109 + m.b110 + m.b111 == 1) m.c38 = Constraint(expr= m.b112 + m.b113 + m.b114 == 1) m.c39 = Constraint(expr= m.b115 + m.b116 + m.b117 == 1) m.c40 = Constraint(expr= m.b118 + m.b119 + m.b120 == 1) m.c41 = Constraint(expr= m.b121 + m.b122 + m.b123 == 1) m.c42 = Constraint(expr= m.b124 + m.b125 + m.b126 == 1) m.c43 = Constraint(expr= m.b127 + m.b128 + m.b129 == 1) m.c44 = Constraint(expr= m.b130 + m.b131 + m.b132 == 1) m.c45 = Constraint(expr= m.b133 + m.b134 + m.b135 == 1) m.c46 = Constraint(expr= m.b136 + m.b137 + m.b138 == 1) m.c47 = Constraint(expr= m.b139 + m.b140 + m.b141 == 1) m.c48 = Constraint(expr= m.b142 + m.b143 + m.b144 == 1) m.c49 = Constraint(expr= m.b145 + m.b146 + m.b147 == 1) m.c50 = Constraint(expr= m.b148 + m.b149 + m.b150 == 1) m.c51 = Constraint(expr= m.b151 + m.b152 + m.b153 == 1) m.c52 = Constraint(expr= m.b154 + m.b155 + m.b156 == 1) m.c53 = Constraint(expr= m.b157 + m.b158 + m.b159 == 1) m.c54 = Constraint(expr= m.b160 + m.b161 + m.b162 == 1) m.c55 = Constraint(expr= m.b163 + m.b164 + m.b165 == 1) m.c56 = Constraint(expr= m.b166 + m.b167 + m.b168 == 1) m.c57 = Constraint(expr= m.b169 + m.b170 + m.b171 == 1) m.c58 = Constraint(expr= m.b172 + m.b173 + m.b174 == 1) m.c59 = Constraint(expr= m.b175 + m.b176 + m.b177 == 1) m.c60 = Constraint(expr= m.b178 + m.b179 + m.b180 == 1) m.c61 = Constraint(expr= m.b181 + m.b182 + m.b183 == 1) m.c62 = Constraint(expr= m.b184 + m.b185 + m.b186 == 1) m.c63 = Constraint(expr= m.b187 + m.b188 + m.b189 == 1) m.c64 = Constraint(expr= m.b190 + m.b191 + m.b192 == 1)
57.594907
120
0.609823
4,639
24,881
3.270748
0.097219
0.113887
0.189811
0.265735
0.444144
0.443815
0.443419
0.442892
0.442892
0
0
0.278988
0.188216
24,881
431
121
57.728538
0.472225
0.02733
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.002907
0
0.002907
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
591544736dee889a1ad1712033f97f49316ca027
878
py
Python
slgnn/tests/test_dude_datasets.py
thomasly/slgnn
caa1e7814498da41ad025b4e62c569fe511848ff
[ "MIT" ]
2
2020-08-31T00:55:31.000Z
2020-09-01T19:59:30.000Z
slgnn/tests/test_dude_datasets.py
thomasly/slgnn
caa1e7814498da41ad025b4e62c569fe511848ff
[ "MIT" ]
null
null
null
slgnn/tests/test_dude_datasets.py
thomasly/slgnn
caa1e7814498da41ad025b4e62c569fe511848ff
[ "MIT" ]
null
null
null
import unittest from slgnn.data_processing.pyg_datasets import JAK1Dude, JAK2Dude, JAK3Dude from slgnn.config import FILTERED_PUBCHEM_FP_LEN class TestDudeDatasets(unittest.TestCase): def test_jak1_jak2_jak3(self): jak = JAK1Dude() data = jak[0] self.assertEqual(data.x.size()[1], 6) self.assertEqual(data.y.size(), (1, FILTERED_PUBCHEM_FP_LEN)) self.assertEqual(data.edge_index.size()[0], 2) jak = JAK3Dude() data = jak[0] self.assertEqual(data.x.size()[1], 6) self.assertEqual(data.y.size(), (1, FILTERED_PUBCHEM_FP_LEN)) self.assertEqual(data.edge_index.size()[0], 2) jak = JAK2Dude() data = jak[0] self.assertEqual(data.x.size()[1], 6) self.assertEqual(data.y.size(), (1, FILTERED_PUBCHEM_FP_LEN)) self.assertEqual(data.edge_index.size()[0], 2)
33.769231
75
0.650342
120
878
4.591667
0.3
0.245009
0.310345
0.145191
0.626134
0.626134
0.626134
0.626134
0.626134
0.626134
0
0.038905
0.209567
878
25
76
35.12
0.755043
0
0
0.6
0
0
0
0
0
0
0
0
0.45
1
0.05
false
0
0.15
0
0.25
0
0
0
0
null
1
1
0
0
0
0
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
4
5928af9e55df5c63ec8af250e216608d9fc8f5f4
98
py
Python
back/babar_server/apps.py
dryvenn/babar3
6f193ddbc1170739d8b1bf39033ad64d9bc85747
[ "MIT" ]
null
null
null
back/babar_server/apps.py
dryvenn/babar3
6f193ddbc1170739d8b1bf39033ad64d9bc85747
[ "MIT" ]
null
null
null
back/babar_server/apps.py
dryvenn/babar3
6f193ddbc1170739d8b1bf39033ad64d9bc85747
[ "MIT" ]
null
null
null
from django.apps import AppConfig class BabarServerConfig(AppConfig): name = 'babar_server'
16.333333
35
0.77551
11
98
6.818182
0.909091
0
0
0
0
0
0
0
0
0
0
0
0.153061
98
5
36
19.6
0.903614
0
0
0
0
0
0.122449
0
0
0
0
0
0
1
0
false
0
0.333333
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
0
0
1
0
1
0
0
4
592e7d89cf5c9656938590ffdcdc9d0e25c43785
348
py
Python
openeo/extra/spectral_indices/__init__.py
bontekasper/openeo-python-client
3a3cfd4ce619dd648e7dec0684281f4fecf4c2e3
[ "Apache-2.0" ]
75
2017-11-17T11:49:15.000Z
2022-02-15T14:21:42.000Z
openeo/extra/spectral_indices/__init__.py
jdries/openeo-python-client
63e70bdb27749ba51553bb3fa46135125d8bc9d9
[ "Apache-2.0" ]
238
2017-12-05T14:48:30.000Z
2022-03-31T15:42:38.000Z
openeo/extra/spectral_indices/__init__.py
jdries/openeo-python-client
63e70bdb27749ba51553bb3fa46135125d8bc9d9
[ "Apache-2.0" ]
28
2018-01-24T08:42:54.000Z
2022-01-27T09:16:26.000Z
""" Easily calculate spectral indices (vegetation, water, urban etc.). Supports the indices defined in the `Awesome Spectral Indices <https://awesome-ee-spectral-indices.readthedocs.io/>`_ project by `David Montero Loaiza <https://github.com/davemlz>`_. .. versionadded:: 0.9.1 """ from openeo.extra.spectral_indices.spectral_indices import *
24.857143
89
0.761494
45
348
5.8
0.733333
0.287356
0
0
0
0
0
0
0
0
0
0.009677
0.109195
348
13
90
26.769231
0.832258
0.793103
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
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
1
0
1
0
1
0
0
4
5931c1c134b0268e77149eba2bae55cf381275c9
124
py
Python
koyeb_nb2/__init__.py
ffreemt/koyeb-nb2
b1bf1c53e3a36e2f9153bf52c5a49974a4c5bb1e
[ "MIT" ]
4
2021-07-22T06:25:20.000Z
2022-01-25T07:45:29.000Z
koyeb_nb2/__init__.py
ffreemt/koyeb-nb2
b1bf1c53e3a36e2f9153bf52c5a49974a4c5bb1e
[ "MIT" ]
null
null
null
koyeb_nb2/__init__.py
ffreemt/koyeb-nb2
b1bf1c53e3a36e2f9153bf52c5a49974a4c5bb1e
[ "MIT" ]
1
2022-02-21T04:57:13.000Z
2022-02-21T04:57:13.000Z
"""Init.""" __version__ = "0.1.0" from .koyeb_nb2 import koyeb_nb2 # from .nb2chan import nb2chan __all__ = ("koyeb_nb2",)
17.714286
32
0.693548
18
124
4.166667
0.555556
0.32
0
0
0
0
0
0
0
0
0
0.074766
0.137097
124
6
33
20.666667
0.626168
0.282258
0
0
0
0
0.168675
0
0
0
0
0
0
1
0
false
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
0
0
1
0
0
0
0
4
593601b4c837155f9f3a4f26494f09a38cfdfac3
1,933
py
Python
autos/test/utils/test_date.py
hans-t/autos
4cb370187cb7a8104cedb1942a4c159033729677
[ "MIT" ]
1
2016-08-17T15:34:15.000Z
2016-08-17T15:34:15.000Z
autos/test/utils/test_date.py
hans-t/autos
4cb370187cb7a8104cedb1942a4c159033729677
[ "MIT" ]
6
2016-08-17T15:34:55.000Z
2021-04-30T20:38:05.000Z
autos/test/utils/test_date.py
hans-t/autos
4cb370187cb7a8104cedb1942a4c159033729677
[ "MIT" ]
null
null
null
import datetime import unittest import autos.utils.date as date class TestDateRange(unittest.TestCase): def test_returns_today_date_as_default(self): actual = list(date.date_range()) expected = [datetime.date.today()] self.assertEqual(actual, expected) def test_returns_correct_range(self): actual = list(date.date_range( since=(datetime.date.today() - datetime.timedelta(days=3)), until=(datetime.date.today() - datetime.timedelta(days=1)), )) expected = [ (datetime.date.today() - datetime.timedelta(days=1)), (datetime.date.today() - datetime.timedelta(days=2)), (datetime.date.today() - datetime.timedelta(days=3)), ] self.assertEqual(actual, expected) class TestGetPastDate(unittest.TestCase): def test_returns_today_date_by_default(self): actual = date.get_past_date() expected = (datetime.date.today() - datetime.timedelta(days=0)) self.assertEqual(actual, expected) def test_returns_past_3_days_ago_date(self): actual = date.get_past_date(days=3) expected = datetime.date.today() - datetime.timedelta(days=3) self.assertEqual(actual, expected) def test_returns_past_5_weeks_ago_date(self): actual = date.get_past_date(weeks=5) expected = datetime.date.today() - datetime.timedelta(weeks=5) self.assertEqual(actual, expected) def test_returns_past_3_days_and_2_weeks_ago_date(self): actual = date.get_past_date(days=3, weeks=2) expected = datetime.date.today() - datetime.timedelta(days=3, weeks=2) self.assertEqual(actual, expected) def test_returns_future_date_on_negative_input(self): actual = date.get_past_date(days=-3, weeks=-2) expected = datetime.date.today() + datetime.timedelta(days=3, weeks=2) self.assertEqual(actual, expected)
35.796296
78
0.675634
240
1,933
5.225
0.175
0.105263
0.149123
0.199362
0.839713
0.839713
0.712919
0.4689
0.448166
0.414673
0
0.014332
0.205898
1,933
53
79
36.471698
0.802606
0
0
0.175
0
0
0
0
0
0
0
0
0.175
1
0.175
false
0
0.075
0
0.3
0
0
0
0
null
0
0
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
5940f01c6528e0a3945e2e12def8db6eafb0e519
62
py
Python
app/routers/__init__.py
gmelodie/pystebin
20f3dab499a3ce65151f5802501838ac731f27a7
[ "MIT" ]
null
null
null
app/routers/__init__.py
gmelodie/pystebin
20f3dab499a3ce65151f5802501838ac731f27a7
[ "MIT" ]
null
null
null
app/routers/__init__.py
gmelodie/pystebin
20f3dab499a3ce65151f5802501838ac731f27a7
[ "MIT" ]
null
null
null
# This empty file allows us to # use app/ as a python package
20.666667
30
0.725806
12
62
3.75
1
0
0
0
0
0
0
0
0
0
0
0
0.225806
62
2
31
31
0.9375
0.919355
0
null
0
null
0
0
null
0
0
0
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
0
0
0
0
1
0
0
0
0
0
0
4
3cd5b0060e03877a8f0dd19c9bc072a2a0daa667
504
py
Python
corded/errors.py
an-dyy/Corded
ff34faca51ac2ca039adfc2fadd7b3f274ee7353
[ "MIT" ]
null
null
null
corded/errors.py
an-dyy/Corded
ff34faca51ac2ca039adfc2fadd7b3f274ee7353
[ "MIT" ]
null
null
null
corded/errors.py
an-dyy/Corded
ff34faca51ac2ca039adfc2fadd7b3f274ee7353
[ "MIT" ]
null
null
null
from aiohttp import ClientResponse class CordedError(Exception): pass # HTTP Errors class HTTPError(CordedError): def __init__(self, response: ClientResponse): self.response = response class BadRequest(HTTPError): pass class Unauthorized(HTTPError): pass class Forbidden(HTTPError): pass class NotFound(HTTPError): pass class PayloadTooLarge(HTTPError): pass class TooManyRequests(HTTPError): pass class DiscordServerError(HTTPError): pass
12
49
0.724206
49
504
7.367347
0.44898
0.252078
0.299169
0
0
0
0
0
0
0
0
0
0.206349
504
41
50
12.292683
0.9025
0.021825
0
0.4
0
0
0
0
0
0
0
0
0
1
0.05
false
0.4
0.05
0
0.55
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
0
1
0
0
1
0
0
4
598e5274cc65503776f601b6837077db8def9b94
46
py
Python
bosm2015/events/__init__.py
dvm-bitspilani/BITS-BOSM-2015
df3e69ee6ee9b179a2d6cd6cad61423c177dbe0a
[ "MIT" ]
1
2015-09-15T17:19:30.000Z
2015-09-15T17:19:30.000Z
bosm2015/events/__init__.py
DVM-BITS-Pilani/BITS-BOSM-2015
df3e69ee6ee9b179a2d6cd6cad61423c177dbe0a
[ "MIT" ]
null
null
null
bosm2015/events/__init__.py
DVM-BITS-Pilani/BITS-BOSM-2015
df3e69ee6ee9b179a2d6cd6cad61423c177dbe0a
[ "MIT" ]
1
2016-03-28T19:44:41.000Z
2016-03-28T19:44:41.000Z
default_app_config = 'events.apps.EventConfig'
46
46
0.847826
6
46
6.166667
1
0
0
0
0
0
0
0
0
0
0
0
0.043478
46
1
46
46
0.840909
0
0
0
0
0
0.489362
0.489362
0
0
0
0
0
1
0
false
0
0
0
0
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
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
59a7a556c492e3a49c350c0315f663c2b8af5ee2
102
py
Python
TOV_mmdetection/mmdet/models/point/dense_heads/__init__.py
ucas-vg/PointTinyBenchmark
63fc417c40ed9484f8d7bb6a2212162c9e98b711
[ "MIT" ]
10
2022-03-14T11:06:36.000Z
2022-03-31T11:41:07.000Z
TOV_mmdetection/mmdet/models/point/dense_heads/__init__.py
ucas-vg/PointTinyBenchmark
63fc417c40ed9484f8d7bb6a2212162c9e98b711
[ "MIT" ]
4
2022-03-31T03:57:01.000Z
2022-03-31T15:53:48.000Z
TOV_mmdetection/mmdet/models/point/dense_heads/__init__.py
ucas-vg/PointTinyBenchmark
63fc417c40ed9484f8d7bb6a2212162c9e98b711
[ "MIT" ]
null
null
null
from .cpr_head import CPRHead from .p2p_head import P2PHead __all__ = [ 'CPRHead', 'P2PHead', ]
12.75
29
0.696078
13
102
5
0.615385
0.307692
0
0
0
0
0
0
0
0
0
0.036585
0.196078
102
7
30
14.571429
0.756098
0
0
0
0
0
0.137255
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
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
0
0
0
4
59add92cd68055e251eb39c564ee95abc9a2ddc8
168
py
Python
tests/conftest.py
williamjmorenor/now-lms
9630e41406080d2b9e6165dadf05c02aacd75b2b
[ "Apache-2.0" ]
null
null
null
tests/conftest.py
williamjmorenor/now-lms
9630e41406080d2b9e6165dadf05c02aacd75b2b
[ "Apache-2.0" ]
9
2021-10-30T15:32:00.000Z
2022-03-27T23:26:28.000Z
tests/conftest.py
williamjmorenor/now-lms
9630e41406080d2b9e6165dadf05c02aacd75b2b
[ "Apache-2.0" ]
1
2021-10-17T22:33:03.000Z
2021-10-17T22:33:03.000Z
import pytest from now_lms import init_app, lms_app lms_app.app_context().push() @pytest.fixture(scope="package", autouse=True) def setup_database(): init_app()
16.8
46
0.755952
26
168
4.615385
0.653846
0.116667
0.15
0
0
0
0
0
0
0
0
0
0.119048
168
9
47
18.666667
0.810811
0
0
0
0
0
0.041667
0
0
0
0
0
0
1
0.166667
true
0
0.333333
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
0
0
0
1
0
1
0
0
0
0
4
59baec6da3f63bc62c73797fa7d658c5f57b15ae
233
py
Python
chap8/8-15/printing_functions.py
StewedChickenwithStats/Answers-to-Python-Crash-Course
9ffbe02abba5d111f702d920db7932303daf59d4
[ "MIT" ]
1
2022-02-21T07:05:48.000Z
2022-02-21T07:05:48.000Z
chap8/8-15/printing_functions.py
StewedChickenwithStats/Answers-to-Python-Crash-Course
9ffbe02abba5d111f702d920db7932303daf59d4
[ "MIT" ]
null
null
null
chap8/8-15/printing_functions.py
StewedChickenwithStats/Answers-to-Python-Crash-Course
9ffbe02abba5d111f702d920db7932303daf59d4
[ "MIT" ]
null
null
null
def print_models(unprinted_designs, completed_models): while unprinted_designs: current_design = unprinted_designs.pop() print("Printing model: " + current_design) completed_models.append(current_design)
33.285714
54
0.738197
25
233
6.52
0.52
0.294479
0
0
0
0
0
0
0
0
0
0
0.184549
233
6
55
38.833333
0.857895
0
0
0
0
0
0.06867
0
0
0
0
0
0
1
0.2
false
0
0
0
0.2
0.8
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
4
59d908f4be72f7a18be43f72e29fd88568403e48
92
py
Python
remove_bg/apps.py
iamr0b0tx/image-background-remove-tool
2e0785a379b6eef9083325d803fd9cca338602f0
[ "Apache-2.0" ]
1
2021-12-04T14:48:20.000Z
2021-12-04T14:48:20.000Z
remove_bg/apps.py
iamr0b0tx/image-background-remove-tool
2e0785a379b6eef9083325d803fd9cca338602f0
[ "Apache-2.0" ]
null
null
null
remove_bg/apps.py
iamr0b0tx/image-background-remove-tool
2e0785a379b6eef9083325d803fd9cca338602f0
[ "Apache-2.0" ]
null
null
null
from django.apps import AppConfig class RemoveBgConfig(AppConfig): name = 'remove_bg'
15.333333
33
0.76087
11
92
6.272727
0.909091
0
0
0
0
0
0
0
0
0
0
0
0.163043
92
5
34
18.4
0.896104
0
0
0
0
0
0.097826
0
0
0
0
0
0
1
0
false
0
0.333333
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
0
0
1
0
1
0
0
4
59e1d1f40a360c02a68eff83ab410fa3dde5ae26
56
py
Python
zeppelin_handy_helpers/__init__.py
sbilello/zeppelin-handy-helper
b42ff373d186330501b6854710c2bed02aac2e64
[ "MIT" ]
null
null
null
zeppelin_handy_helpers/__init__.py
sbilello/zeppelin-handy-helper
b42ff373d186330501b6854710c2bed02aac2e64
[ "MIT" ]
null
null
null
zeppelin_handy_helpers/__init__.py
sbilello/zeppelin-handy-helper
b42ff373d186330501b6854710c2bed02aac2e64
[ "MIT" ]
null
null
null
from argumentsactions import Read, Check, Stop, Monitor
28
55
0.821429
7
56
6.571429
1
0
0
0
0
0
0
0
0
0
0
0
0.125
56
1
56
56
0.938776
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
0
0
0
4
ab87f0e28c665ece367a8093987386b4c0dfe423
152
py
Python
taattack/constraints/pre_constraints/pre_constraint.py
linerxliner/ValCAT
e62985c6c64f6415bb2bb4716bd02d9686badd47
[ "MIT" ]
null
null
null
taattack/constraints/pre_constraints/pre_constraint.py
linerxliner/ValCAT
e62985c6c64f6415bb2bb4716bd02d9686badd47
[ "MIT" ]
null
null
null
taattack/constraints/pre_constraints/pre_constraint.py
linerxliner/ValCAT
e62985c6c64f6415bb2bb4716bd02d9686badd47
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod class PreConstraint(ABC): @abstractmethod def filter(self, ids, workload): raise NotImplemented()
19
36
0.710526
16
152
6.75
0.8125
0.314815
0
0
0
0
0
0
0
0
0
0
0.210526
152
7
37
21.714286
0.9
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.6
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
0
0
1
0
0
4
ab8d5ceb516083a39959ea19ee740e4a3936317c
453
py
Python
app/rooms/examples/__init__.py
olegliubimov/code-examples-python
7af8c58138a9dd0f3b0be12eff1768ae23e449d3
[ "MIT" ]
21
2020-05-13T21:08:44.000Z
2022-02-18T01:32:16.000Z
app/rooms/examples/__init__.py
olegliubimov/code-examples-python
7af8c58138a9dd0f3b0be12eff1768ae23e449d3
[ "MIT" ]
8
2020-11-23T09:28:04.000Z
2022-02-02T12:04:08.000Z
app/rooms/examples/__init__.py
olegliubimov/code-examples-python
7af8c58138a9dd0f3b0be12eff1768ae23e449d3
[ "MIT" ]
26
2020-05-12T22:20:01.000Z
2022-03-09T10:57:27.000Z
from .eg001_create_room_with_data import eg001Rooms from .eg002_create_room_with_template import eg002 from .eg003_export_data_from_room import eg003 from .eg004_add_forms_to_room import eg004 from .eg005_get_rooms_with_filters import eg005 from .eg006_create_external_form_fill_session import eg006 from .eg007_create_form_group import eg007 from .eg008_grant_office_access_to_form_group import eg008 from .eg009_assign_form_to_form_group import eg009
45.3
58
0.900662
75
453
4.92
0.44
0.073171
0.121951
0.092141
0
0
0
0
0
0
0
0.129496
0.07947
453
9
59
50.333333
0.755396
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
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
4
ab99ca85fe014ffebc601677aa1f1112395b8dbb
8,450
py
Python
mozillians/mozspaces/migrations/0001_initial.py
caktus/mozillians
312eb5d993b60092fa4f8eb94548c1db4b21fa01
[ "BSD-3-Clause" ]
null
null
null
mozillians/mozspaces/migrations/0001_initial.py
caktus/mozillians
312eb5d993b60092fa4f8eb94548c1db4b21fa01
[ "BSD-3-Clause" ]
null
null
null
mozillians/mozspaces/migrations/0001_initial.py
caktus/mozillians
312eb5d993b60092fa4f8eb94548c1db4b21fa01
[ "BSD-3-Clause" ]
null
null
null
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'MozSpace' db.create_table('mozspaces_mozspace', ( ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('name', self.gf('django.db.models.fields.CharField')(max_length=100)), ('address', self.gf('django.db.models.fields.CharField')(max_length=300)), ('region', self.gf('django.db.models.fields.CharField')(default='', max_length=100, blank=True)), ('city', self.gf('django.db.models.fields.CharField')(max_length=100)), ('country', self.gf('django.db.models.fields.CharField')(max_length=5)), ('timezone', self.gf('django.db.models.fields.CharField')(max_length=100)), ('lon', self.gf('django.db.models.fields.FloatField')()), ('lat', self.gf('django.db.models.fields.FloatField')()), ('phone', self.gf('django.db.models.fields.CharField')(default='', max_length=100, blank=True)), ('email', self.gf('django.db.models.fields.EmailField')(default='', max_length=75, blank=True)), ('coordinator', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['auth.User'])), ('extra_text', self.gf('django.db.models.fields.TextField')(default='', blank=True)), ('cover_photo', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='featured_mozspace', null=True, to=orm['mozspaces.Photo'])), )) db.send_create_signal('mozspaces', ['MozSpace']) # Adding model 'Keyword' db.create_table('mozspaces_keyword', ( ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('keyword', self.gf('django.db.models.fields.CharField')(unique=True, max_length=50)), ('mozspace', self.gf('django.db.models.fields.related.ForeignKey')(related_name='keywords', to=orm['mozspaces.MozSpace'])), )) db.send_create_signal('mozspaces', ['Keyword']) # Adding model 'Photo' db.create_table('mozspaces_photo', ( ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('photofile', self.gf('django.db.models.fields.files.ImageField')(max_length=100)), ('mozspace', self.gf('django.db.models.fields.related.ForeignKey')(related_name='photos', to=orm['mozspaces.MozSpace'])), )) db.send_create_signal('mozspaces', ['Photo']) def backwards(self, orm): # Deleting model 'MozSpace' db.delete_table('mozspaces_mozspace') # Deleting model 'Keyword' db.delete_table('mozspaces_keyword') # Deleting model 'Photo' db.delete_table('mozspaces_photo') models = { 'auth.group': { 'Meta': {'object_name': 'Group'}, 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}) }, 'auth.permission': { 'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) }, 'auth.user': { 'Meta': {'object_name': 'User'}, 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2013, 2, 11, 5, 41, 51, 842704)'}), 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}), 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2013, 2, 11, 5, 41, 51, 842643)'}), 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}), 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) }, 'contenttypes.contenttype': { 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) }, 'mozspaces.keyword': { 'Meta': {'object_name': 'Keyword'}, 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'keyword': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '50'}), 'mozspace': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'keywords'", 'to': "orm['mozspaces.MozSpace']"}) }, 'mozspaces.mozspace': { 'Meta': {'object_name': 'MozSpace'}, 'address': ('django.db.models.fields.CharField', [], {'max_length': '300'}), 'city': ('django.db.models.fields.CharField', [], {'max_length': '100'}), 'coordinator': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"}), 'country': ('django.db.models.fields.CharField', [], {'max_length': '5'}), 'cover_photo': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'featured_mozspace'", 'null': 'True', 'to': "orm['mozspaces.Photo']"}), 'email': ('django.db.models.fields.EmailField', [], {'default': "''", 'max_length': '75', 'blank': 'True'}), 'extra_text': ('django.db.models.fields.TextField', [], {'default': "''", 'blank': 'True'}), 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'lat': ('django.db.models.fields.FloatField', [], {}), 'lon': ('django.db.models.fields.FloatField', [], {}), 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}), 'phone': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '100', 'blank': 'True'}), 'region': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '100', 'blank': 'True'}), 'timezone': ('django.db.models.fields.CharField', [], {'max_length': '100'}) }, 'mozspaces.photo': { 'Meta': {'object_name': 'Photo'}, 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'mozspace': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'photos'", 'to': "orm['mozspaces.MozSpace']"}), 'photofile': ('django.db.models.fields.files.ImageField', [], {'max_length': '100'}) } } complete_apps = ['mozspaces']
66.015625
184
0.578107
896
8,450
5.337054
0.135045
0.108741
0.187369
0.26767
0.743622
0.721246
0.700962
0.658302
0.576328
0.437474
0
0.017125
0.191479
8,450
127
185
66.535433
0.682816
0.01858
0
0.121495
0
0
0.532408
0.308992
0
0
0
0
0
1
0.018692
false
0.009346
0.037383
0
0.084112
0
0
0
0
null
0
1
1
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
ab9dc0799decd06f8a93d48ca12f13599883b3a9
434
py
Python
aio_parallel_tools/aio_task_pool/__init__.py
Python-Tools/aio_parallel_tools
23589c3ffce6de2748c1c90bd0dae2c414995a65
[ "MIT" ]
null
null
null
aio_parallel_tools/aio_task_pool/__init__.py
Python-Tools/aio_parallel_tools
23589c3ffce6de2748c1c90bd0dae2c414995a65
[ "MIT" ]
1
2021-12-13T20:26:32.000Z
2021-12-13T20:26:32.000Z
aio_parallel_tools/aio_task_pool/__init__.py
Python-Tools/aio_parallel_tools
23589c3ffce6de2748c1c90bd0dae2c414995a65
[ "MIT" ]
null
null
null
"""All Supported Task Pools.""" from .aio_fixed_task_pool_simple import AioFixedTaskPoolSimple from .aio_fixed_task_pool_lifo import AioFixedTaskPoolLifo from .aio_fixed_task_pool_priority import AioFixedTaskPoolPriority from .aio_autoscale_task_pool_simple import AioAutoScaleTaskPoolSimple from .aio_autoscale_task_pool_lifo import AioAutoScaleTaskPoolLifo from .aio_autoscale_task_pool_priority import AioAutoScaleTaskPoolPriority
54.25
74
0.90553
52
434
7.096154
0.365385
0.113821
0.097561
0.130081
0.357724
0
0
0
0
0
0
0
0.064516
434
7
75
62
0.908867
0.057604
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
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
4
abbaad23c1ce5571be37ce1fc2b6147f47741a86
2,235
py
Python
pylabnet/network/client_server/dio_breakout.py
wi11dey/pylabnet
a6e3362f727c45aaa60e61496e858ae92e85574d
[ "MIT" ]
10
2020-01-07T23:28:49.000Z
2022-02-02T19:09:17.000Z
pylabnet/network/client_server/dio_breakout.py
wi11dey/pylabnet
a6e3362f727c45aaa60e61496e858ae92e85574d
[ "MIT" ]
249
2019-12-28T19:38:49.000Z
2022-03-28T16:45:32.000Z
pylabnet/network/client_server/dio_breakout.py
wi11dey/pylabnet
a6e3362f727c45aaa60e61496e858ae92e85574d
[ "MIT" ]
5
2020-11-17T19:45:10.000Z
2022-01-04T18:07:04.000Z
from pylabnet.network.core.service_base import ServiceBase from pylabnet.network.core.client_base import ClientBase class Service(ServiceBase): def exposed_measure_voltage(self, board, channel): return self._module.measure_voltage(board, channel) def exposed_set_high_voltage(self, board, channel, voltage): return self._module.set_high_voltage(board, channel, voltage) def exposed_set_low_voltage(self, board, channel, voltage): return self._module.set_low_voltage(board, channel, voltage) def exposed_get_high_voltage(self, board, channel): return self._module.get_high_voltage(board, channel) def exposed_get_low_voltage(self, board, channel): return self._module.get_low_voltage(board, channel) def exposed_save(self): return self._module.save() def exposed_override(self, board, channel, state=True): return self._module.override(board, channel, state) def exposed_disable_override(self, board, channel): return self._module.disable_override(board, channel) def close_server(self): """ Closes the server for which the service is running Overwrites parent class method """ self._module.close() super().close_server() class Client(ClientBase): def measure_voltage(self, board, channel): return self._service.exposed_measure_voltage(board, channel) def set_high_voltage(self, board, channel, voltage): return self._service.exposed_set_high_voltage(board, channel, voltage) def set_low_voltage(self, board, channel, voltage): return self._service.exposed_set_low_voltage(board, channel, voltage) def get_high_voltage(self, board, channel): return self._service.exposed_get_high_voltage(board, channel) def get_low_voltage(self, board, channel): return self._service.exposed_get_low_voltage(board, channel) def save(self): return self._service.exposed_save() def override(self, board, channel, state=True): return self._service.exposed_override(board, channel, state) def disable_override(self, board, channel): return self._service.exposed_disable_override(board, channel)
32.867647
78
0.727964
283
2,235
5.477032
0.144876
0.216774
0.144516
0.148387
0.720645
0.633548
0.554839
0.374839
0.218065
0.073548
0
0
0.183445
2,235
67
79
33.358209
0.849315
0.036689
0
0
0
0
0
0
0
0
0
0
0
1
0.435897
false
0
0.051282
0.410256
0.948718
0
0
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
1
0
0
0
1
1
0
0
4
abcbb7f54a54cd7ced1c2c2810046352d8bc8f95
162
py
Python
tests/context.py
mrcagney/googlemaps_helpers
75dfcc3e5e788d04c3af3e7608909b349ac83e8d
[ "MIT" ]
1
2017-06-25T17:58:37.000Z
2017-06-25T17:58:37.000Z
tests/context.py
araichev/googlemaps_helpers
75dfcc3e5e788d04c3af3e7608909b349ac83e8d
[ "MIT" ]
null
null
null
tests/context.py
araichev/googlemaps_helpers
75dfcc3e5e788d04c3af3e7608909b349ac83e8d
[ "MIT" ]
null
null
null
import os import sys from pathlib import Path sys.path.insert(0, os.path.abspath('..')) import googlemaps_helpers ROOT = Path('.') DATA_DIR = Path('tests/data')
18
41
0.728395
25
162
4.64
0.6
0
0
0
0
0
0
0
0
0
0
0.006993
0.117284
162
9
42
18
0.804196
0
0
0
0
0
0.079755
0
0
0
0
0
0
1
0
false
0
0.571429
0
0.571429
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
0
1
0
0
4
e63f5b8d6d575798769a87479a74be1de6ac4c07
200
py
Python
src/web_api/routers/__init__.py
poyang31/hw_2021_12
2c16166c943b2ab57f1a889f133c118568bc49f4
[ "MIT" ]
3
2021-12-19T07:18:20.000Z
2021-12-20T01:31:21.000Z
src/web_api/routers/__init__.py
poyang31/hw_2021_12
2c16166c943b2ab57f1a889f133c118568bc49f4
[ "MIT" ]
null
null
null
src/web_api/routers/__init__.py
poyang31/hw_2021_12
2c16166c943b2ab57f1a889f133c118568bc49f4
[ "MIT" ]
2
2021-12-19T12:44:21.000Z
2021-12-19T13:44:28.000Z
from ...kernel import Config, Database config = Config() database = Database(config) articles_collection = database.get_collection("articles") results_collection = database.get_collection("results")
28.571429
57
0.8
22
200
7.090909
0.409091
0.179487
0.269231
0.397436
0
0
0
0
0
0
0
0
0.09
200
6
58
33.333333
0.857143
0
0
0
0
0
0.075
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
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
0
0
0
4
e6484a525734c18b092fd6cf27a23d53233675bd
97
py
Python
run.py
sepro/Flask-Server-Panel
4763174aa8a6f74e72c14a67ec5be243b5e06ca2
[ "MIT" ]
16
2016-11-06T13:54:10.000Z
2022-01-29T15:48:50.000Z
run.py
sepro/Flask-Server-Panel
4763174aa8a6f74e72c14a67ec5be243b5e06ca2
[ "MIT" ]
3
2017-07-02T11:59:53.000Z
2020-03-12T17:18:00.000Z
run.py
sepro/Flask-Server-Panel
4763174aa8a6f74e72c14a67ec5be243b5e06ca2
[ "MIT" ]
3
2016-11-07T19:55:15.000Z
2021-04-22T10:32:24.000Z
#!/usr/bin/env python3 from serverpanel import create_app app = create_app('config') app.run()
13.857143
34
0.742268
15
97
4.666667
0.733333
0.257143
0
0
0
0
0
0
0
0
0
0.011765
0.123711
97
6
35
16.166667
0.811765
0.216495
0
0
0
0
0.08
0
0
0
0
0
0
1
0
false
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
0
0
1
0
0
0
0
4
0514880fddf957f0aea219dcf3f55bba5a35362c
619
py
Python
clovek.py
SamoFMF/Five-in-a-row
a60fd174de37db9a3b7f3ed458d7345220cda400
[ "MIT" ]
null
null
null
clovek.py
SamoFMF/Five-in-a-row
a60fd174de37db9a3b7f3ed458d7345220cda400
[ "MIT" ]
null
null
null
clovek.py
SamoFMF/Five-in-a-row
a60fd174de37db9a3b7f3ed458d7345220cda400
[ "MIT" ]
null
null
null
#################### ## IGRALEC ČLOVEK ## #################### class Clovek(): def __init__(self, gui): self.gui = gui def igraj(self): # To metodo kliče GUI, ko je igralec na potezi. # Ko je clovek na potezi, čakamo na uporabniški # vmesnik, da sporoči, da je uporabnik kliknil na # ploščo. pass def prekini(self): # To metodo kliče GUI, če je treba prekiniti razmišljanje. # Človek jo lahko ignorira. pass def klik(self, p): # Povlečemo potezo. Če ni veljavna, se ne bo zgodilo nič. self.gui.povleci_potezo(p)
26.913043
66
0.558966
77
619
4.428571
0.584416
0.061584
0.070381
0.099707
0.117302
0
0
0
0
0
0
0
0.3021
619
23
67
26.913043
0.789352
0.487884
0
0.222222
0
0
0
0
0
0
0
0.043478
0
1
0.444444
false
0.222222
0
0
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
1
0
1
0
0
1
0
0
4
051940ea736fc63d6edc9288a775d23d20f5723b
92
py
Python
Pacote download/PythonExercíciosHARDMODE/ex014HM.py
RodrigoMASRamos/Projects.py
ed15981b320914c9667305dcd5fb5b7906fd9b00
[ "MIT" ]
null
null
null
Pacote download/PythonExercíciosHARDMODE/ex014HM.py
RodrigoMASRamos/Projects.py
ed15981b320914c9667305dcd5fb5b7906fd9b00
[ "MIT" ]
null
null
null
Pacote download/PythonExercíciosHARDMODE/ex014HM.py
RodrigoMASRamos/Projects.py
ed15981b320914c9667305dcd5fb5b7906fd9b00
[ "MIT" ]
null
null
null
#ex014: Escreva um programa que converta um a temperatura digitada em ºC e converta para ºF
46
91
0.804348
16
92
4.625
0.875
0
0
0
0
0
0
0
0
0
0
0.039474
0.173913
92
1
92
92
0.934211
0.978261
0
null
0
null
0
0
null
0
0
0
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
0
0
0
0
1
0
0
0
0
0
0
4
051fa018ceffddfa5f729edb2cd40ef40e11b157
38
py
Python
examples/build_example5.py
berkeman/examples
985e907fee4120e9266544e4fc66cdbddf5d87b9
[ "Apache-2.0" ]
null
null
null
examples/build_example5.py
berkeman/examples
985e907fee4120e9266544e4fc66cdbddf5d87b9
[ "Apache-2.0" ]
null
null
null
examples/build_example5.py
berkeman/examples
985e907fee4120e9266544e4fc66cdbddf5d87b9
[ "Apache-2.0" ]
1
2020-02-15T17:10:20.000Z
2020-02-15T17:10:20.000Z
def main(urd): urd.build('example7')
12.666667
22
0.684211
6
38
4.333333
0.833333
0
0
0
0
0
0
0
0
0
0
0.029412
0.105263
38
2
23
19
0.735294
0
0
0
0
0
0.210526
0
0
0
0
0
0
1
0.5
false
0
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
1
0
0
0
0
0
0
0
4
0546c5ed3e96d4fb038bf15e038b72e738131eea
887
py
Python
scinoephile/ocr/segmentation/__init__.py
KarlTDebiec/scinoephile
5ccdf600bbe08c0902eefa7bfba814ad1937fc2c
[ "BSD-3-Clause" ]
2
2019-02-14T12:14:17.000Z
2020-07-06T07:11:30.000Z
scinoephile/ocr/segmentation/__init__.py
KarlTDebiec/Scinoephile
5ccdf600bbe08c0902eefa7bfba814ad1937fc2c
[ "BSD-3-Clause" ]
null
null
null
scinoephile/ocr/segmentation/__init__.py
KarlTDebiec/Scinoephile
5ccdf600bbe08c0902eefa7bfba814ad1937fc2c
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # scinoephile.ocr.segmentation.__init__.py # # Copyright (C) 2017-2019 Karl T Debiec # All rights reserved. # # This software may be modified and distributed under the terms of the # BSD license. See the LICENSE file for details. ################################### MODULES ################################### ################################## VARIABLES ################################## ################################## FUNCTIONS ################################## ################################### CLASSES ################################### from scinoephile.ocr.segmentation.SegmentationDataset import \ SegmentationDataset from scinoephile.ocr.segmentation.SegmentationTestDataset import \ SegmentationTestDataset from scinoephile.ocr.segmentation.SegmentationTrainDataset import \ SegmentationTrainDataset
34.115385
79
0.529876
66
887
7.060606
0.712121
0.120172
0.223176
0.193133
0
0
0
0
0
0
0
0.011407
0.110485
887
25
80
35.48
0.579214
0.341601
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
055ea5d4189669c5cb458bd930a4b15f85275810
191
py
Python
alura/elasticsearch_001/example01.py
flaviogf/Cursos
2b120dbcd24a907121f58482fdcdfa01b164872c
[ "MIT" ]
2
2021-02-20T23:50:07.000Z
2021-08-15T03:04:35.000Z
alura/elasticsearch_001/example01.py
flaviogf/Cursos
2b120dbcd24a907121f58482fdcdfa01b164872c
[ "MIT" ]
18
2019-08-07T02:33:00.000Z
2021-03-18T22:52:38.000Z
alura/elasticsearch_001/example01.py
flaviogf/Cursos
2b120dbcd24a907121f58482fdcdfa01b164872c
[ "MIT" ]
2
2020-09-28T13:00:09.000Z
2021-12-30T12:21:08.000Z
from requests import put, delete response = delete('http://localhost:9200/customer') print(response.json()) response = put('http://localhost:9200/customer?pretty') print(response.json())
19.1
55
0.743455
24
191
5.916667
0.541667
0.183099
0.239437
0.352113
0
0
0
0
0
0
0
0.045977
0.089005
191
9
56
21.222222
0.770115
0
0
0.4
0
0
0.350785
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0.4
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
0
0
0
4
057a6b7ab6719a01edee9788a7108a0565a5d98e
649
py
Python
fuzzinator/igalia/fuzzinator/call/__init__.py
pmatos/jsc32-fuzz
a0310b144ca100005abc39527b49ec0feba3c870
[ "Apache-2.0" ]
null
null
null
fuzzinator/igalia/fuzzinator/call/__init__.py
pmatos/jsc32-fuzz
a0310b144ca100005abc39527b49ec0feba3c870
[ "Apache-2.0" ]
5
2021-06-28T09:36:59.000Z
2021-07-13T06:54:26.000Z
fuzzinator/igalia/fuzzinator/call/__init__.py
pmatos/jsc32-fuzz
a0310b144ca100005abc39527b49ec0feba3c870
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 Paulo Matos, Igalia S.L. # Copyright (c) 2020 Paulo Matos, Igalia S.L. # # Licensed under the BSD 3-Clause License # <LICENSE.rst or https://opensource.org/licenses/BSD-3-Clause>. # This file may not be copied, modified, or distributed except # according to those terms. from .remotefile_writer_decorator import RemoteFileWriterDecorator from .subprocess_remotecall import SubprocessRemoteCall from .subprocess_jsccall import SubprocessJSCCall from .jsc_gdb_backtrace_decorator import JSCGdbBacktraceDecorator try: from .test_runner_subprocess_remotecall import TestRunnerSubprocessRemoteCall except ImportError: pass
36.055556
81
0.818182
81
649
6.432099
0.691358
0.038388
0.06142
0.065259
0.069098
0
0
0
0
0
0
0.017513
0.120185
649
17
82
38.176471
0.894921
0.42681
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.125
0.75
0
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
1
0
1
0
0
4
058c0308aef1cf16b0a77b37e6dcd45838acff8f
285
py
Python
aiokraken/websockets/schemas/__init__.py
asmodehn/aiokraken
b260bd41d5aa091e6a4f1818328426fbe6f625c0
[ "MIT" ]
null
null
null
aiokraken/websockets/schemas/__init__.py
asmodehn/aiokraken
b260bd41d5aa091e6a4f1818328426fbe6f625c0
[ "MIT" ]
82
2019-08-30T09:37:49.000Z
2022-03-29T14:53:22.000Z
aiokraken/websockets/schemas/__init__.py
asmodehn/aiokraken
b260bd41d5aa091e6a4f1818328426fbe6f625c0
[ "MIT" ]
null
null
null
# TODO : Marshmallow schemas : Possible optimizations # - if input is a list ( and not a dict/ class instance), iterate on it, zipped with declared fields. # - from an existing schema, have a way to "restrict" the field to a "smaller" field. # A kind fo gradual typing i guess...
57
102
0.712281
45
285
4.511111
0.866667
0
0
0
0
0
0
0
0
0
0
0
0.207018
285
4
103
71.25
0.89823
0.968421
0
null
0
null
0
0
null
0
0
0.25
null
1
null
true
0
0
null
null
null
0
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
4
5577987242a13ea688a37e77c831b6f4af978735
63
py
Python
oc/data.py
wearelumenai/flowclus
3a44fa4e75859db04dbf47ffdda68b9bbc365bfe
[ "MIT" ]
null
null
null
oc/data.py
wearelumenai/flowclus
3a44fa4e75859db04dbf47ffdda68b9bbc365bfe
[ "MIT" ]
null
null
null
oc/data.py
wearelumenai/flowclus
3a44fa4e75859db04dbf47ffdda68b9bbc365bfe
[ "MIT" ]
1
2019-08-21T11:22:21.000Z
2019-08-21T11:22:21.000Z
import flowsim.client as c get_chunk = c.get_chunk(port=8080)
15.75
34
0.777778
12
63
3.916667
0.75
0.170213
0.382979
0
0
0
0
0
0
0
0
0.072727
0.126984
63
3
35
21
0.781818
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
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
0
0
1
0
0
0
0
4
55b9ae0fc19477d26b055ebc46f913fbd39605a6
410
py
Python
rlutils/gym/envs/reset_obs/__init__.py
vermouth1992/rl-util
4c06ab8f5c96a44e58f88cf30146bcb837057112
[ "Apache-2.0" ]
null
null
null
rlutils/gym/envs/reset_obs/__init__.py
vermouth1992/rl-util
4c06ab8f5c96a44e58f88cf30146bcb837057112
[ "Apache-2.0" ]
null
null
null
rlutils/gym/envs/reset_obs/__init__.py
vermouth1992/rl-util
4c06ab8f5c96a44e58f88cf30146bcb837057112
[ "Apache-2.0" ]
null
null
null
from .ant import AntEnv as AntResetObsEnv from .half_cheetah import HalfCheetahEnv as HalfCheetahResetObsEnv from .hopper import HopperEnv as HopperResetObsEnv from .inverted_pendulum import InvertedPendulumEnv as InvertedPendulumResetObsEnv from .pendulum import PendulumEnv as PendulumResetObsEnv from .swimmer import SwimmerEnv as SwimmerResetObsEnv from .walker2d import Walker2dEnv as Walker2dResetObsEnv
51.25
81
0.880488
44
410
8.159091
0.568182
0.077994
0
0
0
0
0
0
0
0
0
0.008152
0.102439
410
7
82
58.571429
0.967391
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
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
4
55bc331ef4b98002ddc5827fbc7f85ba9deb93b9
253
py
Python
tests/bundles/security/_app/config.py
achiang/flask-unchained
12788a6e618904a25ff2b571eb05ff1dc8f1840f
[ "MIT" ]
null
null
null
tests/bundles/security/_app/config.py
achiang/flask-unchained
12788a6e618904a25ff2b571eb05ff1dc8f1840f
[ "MIT" ]
null
null
null
tests/bundles/security/_app/config.py
achiang/flask-unchained
12788a6e618904a25ff2b571eb05ff1dc8f1840f
[ "MIT" ]
null
null
null
from flask_unchained import AppBundleConfig class Config(AppBundleConfig): SECRET_KEY = 'not-secret-key' SECURITY_SEND_REGISTER_EMAIL = True SECURITY_SEND_PASSWORD_CHANGED_EMAIL = True SECURITY_SEND_PASSWORD_RESET_NOTICE_EMAIL = True
25.3
52
0.810277
31
253
6.16129
0.612903
0.188482
0.17801
0.219895
0.303665
0
0
0
0
0
0
0
0.146245
253
9
53
28.111111
0.884259
0
0
0
0
0
0.055336
0
0
0
0
0
0
1
0
false
0.333333
0.166667
0
1
0
0
0
0
null
0
0
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
1
0
0
1
0
0
4
e954bf474dfc9855a605771ddc93558d9cad69b9
250
py
Python
tools/conan/conans/client/generators/env.py
aversiveplusplus/aversiveplusplus
5f5fe9faca50197fd6207e2c816efa7e9af6c804
[ "BSD-3-Clause" ]
29
2016-01-27T09:43:44.000Z
2020-03-12T04:16:02.000Z
tools/conan/conans/client/generators/env.py
aversiveplusplus/aversiveplusplus
5f5fe9faca50197fd6207e2c816efa7e9af6c804
[ "BSD-3-Clause" ]
20
2016-01-22T15:59:33.000Z
2016-10-28T10:22:45.000Z
tools/conan/conans/client/generators/env.py
aversiveplusplus/aversiveplusplus
5f5fe9faca50197fd6207e2c816efa7e9af6c804
[ "BSD-3-Clause" ]
6
2016-02-11T14:09:04.000Z
2018-03-17T00:18:35.000Z
from conans.model import Generator from conans.paths import CONANENV class ConanEnvGenerator(Generator): @property def filename(self): return CONANENV @property def content(self): return self.deps_env_info.dumps()
17.857143
41
0.708
29
250
6.034483
0.655172
0.114286
0
0
0
0
0
0
0
0
0
0
0.224
250
13
42
19.230769
0.902062
0
0
0.222222
0
0
0
0
0
0
0
0
0
1
0.222222
false
0
0.222222
0.222222
0.777778
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
1
0
0
0
1
1
0
0
4
e954e4a63bb4b93667cf684a538cc015df81937d
87
py
Python
Classwork/format.py
rhiggins2308/G00364712-problemSet
90ab72c15e3093104102224a96c728e1cf196157
[ "Apache-2.0" ]
null
null
null
Classwork/format.py
rhiggins2308/G00364712-problemSet
90ab72c15e3093104102224a96c728e1cf196157
[ "Apache-2.0" ]
null
null
null
Classwork/format.py
rhiggins2308/G00364712-problemSet
90ab72c15e3093104102224a96c728e1cf196157
[ "Apache-2.0" ]
null
null
null
for i in range(1, 11): print('{:2d} {:3d} {:4d} {:5d}'.format(i, i**2, i**3, i**4))
43.5
64
0.45977
19
87
2.105263
0.789474
0
0
0
0
0
0
0
0
0
0
0.138889
0.172414
87
2
64
43.5
0.416667
0
0
0
0
0
0.261364
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
4
e954ef550937681a58be7452f287a5052d6b5268
508
py
Python
build/lib/pyconfluent/kafka_streams/processor/serialization/_bytes.py
newellp2019/pyconfluent
b1de0b8255678c2e6a3a7d016df57b9f40cdc861
[ "MIT" ]
330
2017-07-12T09:05:43.000Z
2022-03-14T06:44:59.000Z
winton_kafka_streams/processor/serialization/_bytes.py
sribarrow/winton-kafka-streams
5867a1c42fc80bba07173fd1d004b2849b429fdf
[ "Apache-2.0" ]
39
2017-07-13T10:36:07.000Z
2021-06-14T06:28:38.000Z
winton_kafka_streams/processor/serialization/_bytes.py
sribarrow/winton-kafka-streams
5867a1c42fc80bba07173fd1d004b2849b429fdf
[ "Apache-2.0" ]
71
2017-07-12T10:51:55.000Z
2021-12-28T08:57:10.000Z
from .deserializer import Deserializer from .serializer import Serializer class BytesSerializer(Serializer[bytes]): def serialize(self, topic: str, data: bytes) -> bytes: return data def configure(self, configs, is_key): pass def close(self): pass class BytesDeserializer(Deserializer[bytes]): def deserialize(self, topic: str, data: bytes) -> bytes: return data def configure(self, configs, is_key): pass def close(self): pass
20.32
60
0.65748
58
508
5.724138
0.37931
0.048193
0.072289
0.096386
0.506024
0.506024
0.506024
0.506024
0.506024
0.506024
0
0
0.251969
508
24
61
21.166667
0.873684
0
0
0.625
0
0
0
0
0
0
0
0
0
1
0.375
false
0.25
0.125
0.125
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
1
1
0
0
4
e9560dbe378f9d515aad2e5c7e4eb118920e9ce9
231
py
Python
kulkunen/apps.py
HotStew/respa
04f39efb15b4f4206a122e665f8377c7198e1f25
[ "MIT" ]
49
2015-10-21T06:25:31.000Z
2022-03-20T07:24:20.000Z
kulkunen/apps.py
HotStew/respa
04f39efb15b4f4206a122e665f8377c7198e1f25
[ "MIT" ]
728
2015-06-24T13:26:54.000Z
2022-03-24T12:18:41.000Z
kulkunen/apps.py
digipointtku/respa
a529e0df4d3f072df7801adb5bf97a5f4abd1243
[ "MIT" ]
46
2015-06-26T10:52:57.000Z
2021-12-17T09:38:25.000Z
from django.apps import AppConfig from .signal_handlers import install_signal_handlers class KulkunenConfig(AppConfig): name = 'kulkunen' verbose_name = 'Kulkunen' def ready(self): install_signal_handlers()
19.25
52
0.744589
26
231
6.384615
0.615385
0.253012
0.253012
0
0
0
0
0
0
0
0
0
0.186147
231
11
53
21
0.882979
0
0
0
0
0
0.069264
0
0
0
0
0
0
1
0.142857
false
0
0.285714
0
0.857143
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
0
0
0
0
1
0
0
4
e958928218e1e125deca00701163a20fbcef9695
171
py
Python
python/crawlab/config.py
twinsant/crawlab-sdk
f0c52fc4e943531cf80637534f8749cde26115a2
[ "BSD-3-Clause" ]
34
2019-11-26T10:31:34.000Z
2022-03-22T04:24:18.000Z
python/crawlab/config.py
zicokuo/crawlab-sdk
6bd7f93702f830ae00e97cf40c906aa9dcc75717
[ "BSD-3-Clause" ]
12
2020-06-12T01:40:01.000Z
2021-11-05T01:52:26.000Z
python/crawlab/config.py
zicokuo/crawlab-sdk
6bd7f93702f830ae00e97cf40c906aa9dcc75717
[ "BSD-3-Clause" ]
32
2020-01-14T00:56:19.000Z
2022-03-15T06:19:44.000Z
import os from typing import Optional def get_task_id() -> Optional[str]: try: return os.getenv('CRAWLAB_TASK_ID') except Exception: return None
17.1
43
0.666667
23
171
4.782609
0.73913
0.109091
0
0
0
0
0
0
0
0
0
0
0.251462
171
9
44
19
0.859375
0
0
0
0
0
0.087719
0
0
0
0
0
0
1
0.142857
true
0
0.285714
0
0.714286
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
0
0
1
0
0
4
e967f76b52b8ec5e00b354c0d084cb665c15fbe9
336
py
Python
mail/test.py
Codefans-fan/p2pSpider
2f76fb43f3527cea8ed208089153ec12660907f4
[ "MIT" ]
null
null
null
mail/test.py
Codefans-fan/p2pSpider
2f76fb43f3527cea8ed208089153ec12660907f4
[ "MIT" ]
null
null
null
mail/test.py
Codefans-fan/p2pSpider
2f76fb43f3527cea8ed208089153ec12660907f4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ''' Created on Mar 18, 2016 @author: fky ''' import smtplib if not 'SMTP_SSL' in smtplib.__all__: print('''error: Server does not support SMTP-over-SSL. You could use STARTTLS instead. If SSL is needed, an upgrade to Python 2.6 on the server-side should do the trick.''') print(smtplib.__all__)
28
178
0.678571
54
336
4.055556
0.777778
0.091324
0
0
0
0
0
0
0
0
0
0.033333
0.196429
336
11
179
30.545455
0.777778
0.178571
0
0
0
0.25
0.653697
0
0
0
0
0
0
1
0
true
0
0.25
0
0.25
0.5
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
1
0
0
0
0
1
0
4
e98ecf097c2c9046944999bb0d6dc720f6a57edf
205
py
Python
gist/manager/gist_manager.py
shafikshaon/daybook
cff3ebc636741e8424d1c078c9811db664675a8a
[ "MIT" ]
null
null
null
gist/manager/gist_manager.py
shafikshaon/daybook
cff3ebc636741e8424d1c078c9811db664675a8a
[ "MIT" ]
null
null
null
gist/manager/gist_manager.py
shafikshaon/daybook
cff3ebc636741e8424d1c078c9811db664675a8a
[ "MIT" ]
null
null
null
__author__ = 'Shafikur Rahman' from django.db import models class GistManager(models.Manager): def get_queryset(self): return super(GistManager, self).get_queryset().filter(is_delete=False)
22.777778
78
0.75122
26
205
5.653846
0.807692
0.14966
0
0
0
0
0
0
0
0
0
0
0.146341
205
8
79
25.625
0.84
0
0
0
0
0
0.073171
0
0
0
0
0
0
1
0.2
false
0
0.2
0.2
0.8
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
0
1
1
0
0
4
e99637a22dcc9e9cbe5bc0c1e7463c20267481fc
111
py
Python
pacote2/modulo2.py
renzon/novatec
9b6511217c4972bf8584dea8bca1460d4bcb9d87
[ "MIT" ]
null
null
null
pacote2/modulo2.py
renzon/novatec
9b6511217c4972bf8584dea8bca1460d4bcb9d87
[ "MIT" ]
null
null
null
pacote2/modulo2.py
renzon/novatec
9b6511217c4972bf8584dea8bca1460d4bcb9d87
[ "MIT" ]
2
2016-05-21T12:28:13.000Z
2020-09-06T21:58:36.000Z
def para_float(n): return float(n) if __name__ == '__main__': print(para_float(3)) print(__name__)
18.5
26
0.657658
16
111
3.6875
0.625
0.305085
0
0
0
0
0
0
0
0
0
0.011236
0.198198
111
6
27
18.5
0.651685
0
0
0
0
0
0.071429
0
0
0
0
0
0
1
0.2
false
0
0
0.2
0.4
0.4
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
4
e999dfc31ee5ed5c34f06ba7058001c6adcf10db
49
py
Python
src/nmrezman/phase02/__init__.py
mozzilab/NM_Radiology_AI
8df83c14e88534142f43411e33913682eab26582
[ "MIT" ]
1
2022-03-17T12:28:12.000Z
2022-03-17T12:28:12.000Z
src/nmrezman/phase02/__init__.py
mozzilab/NM_Radiology_AI
8df83c14e88534142f43411e33913682eab26582
[ "MIT" ]
null
null
null
src/nmrezman/phase02/__init__.py
mozzilab/NM_Radiology_AI
8df83c14e88534142f43411e33913682eab26582
[ "MIT" ]
null
null
null
# %% from . import ( train, classify, )
7
15
0.469388
4
49
5.75
1
0
0
0
0
0
0
0
0
0
0
0
0.367347
49
6
16
8.166667
0.741935
0.040816
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.25
0
0.25
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
0
0
0
0
0
4
e9a3f59e12da403654e9af9c3b6b89d0775b91f8
156
py
Python
pypkg/utils.py
movermeyer/pypkg
c094dd2459a19fdb348805601987b9d9f4ff7214
[ "MIT" ]
null
null
null
pypkg/utils.py
movermeyer/pypkg
c094dd2459a19fdb348805601987b9d9f4ff7214
[ "MIT" ]
null
null
null
pypkg/utils.py
movermeyer/pypkg
c094dd2459a19fdb348805601987b9d9f4ff7214
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Common utilities. """ def fancy(message): """Print message with surrounding ~'s.""" return "~{0}~".format(message)
17.333333
45
0.564103
17
156
5.176471
0.882353
0
0
0
0
0
0
0
0
0
0
0.016
0.198718
156
8
46
19.5
0.688
0.487179
0
0
0
0
0.079365
0
0
0
0
0
0
1
0.5
false
0
0
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
1
0
0
0
0
1
0
0
4
e9aa6b9ae9ef98a8a4bdd4d924e13cd81b3b1409
222
py
Python
weborquesta/concerts/admin.py
miguel-rojorev/weborquesta
d0c98e1acea1346d521deb2ec15ae76d9c855546
[ "MIT" ]
null
null
null
weborquesta/concerts/admin.py
miguel-rojorev/weborquesta
d0c98e1acea1346d521deb2ec15ae76d9c855546
[ "MIT" ]
null
null
null
weborquesta/concerts/admin.py
miguel-rojorev/weborquesta
d0c98e1acea1346d521deb2ec15ae76d9c855546
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Concert # Register your models here. class ConcertAdmin(admin.ModelAdmin): readonly_fields = ('created', 'updated') admin.site.register(Concert, ConcertAdmin)
24.666667
44
0.765766
26
222
6.5
0.692308
0
0
0
0
0
0
0
0
0
0
0
0.13964
222
9
45
24.666667
0.884817
0.117117
0
0
0
0
0.071795
0
0
0
0
0
0
1
0
false
0
0.4
0
0.8
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
0
1
0
0
4
e9b4bf1ae714a4ffb0b5a1a6f5dd7235d425eff1
2,915
py
Python
DailyProgrammer/DP20130712C.py
DayGitH/Python-Challenges
bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf
[ "MIT" ]
2
2020-12-23T18:59:22.000Z
2021-04-14T13:16:09.000Z
DailyProgrammer/DP20130712C.py
DayGitH/Python-Challenges
bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf
[ "MIT" ]
null
null
null
DailyProgrammer/DP20130712C.py
DayGitH/Python-Challenges
bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf
[ "MIT" ]
null
null
null
""" [07/12/13] Challenge #126 [Hard] Not-So-Normal Triangle Search https://www.reddit.com/r/dailyprogrammer/comments/1i65z6/071213_challenge_126_hard_notsonormal_triangle/ # [](#HardIcon) *(Hard)*: Not-So-Normal Triangle Search A three-dimensional triangle can be defined with three points in 3D space: one for each corner. One can compute the [surface-normal](http://en.wikipedia.org/wiki/Normal_(geometry\)) of this triangle by using the three points to compute the [cross-product](http://en.wikipedia.org/wiki/Cross_product). You will be given a set of N points, such that N is greater than or equal to 3. Your goal is to find the maximum set of non-intersecting triangles that can be constructed with these N points (points may be shared between triangles) such that this set's average surface normal is as close to the given vector's direction as possible. "Closeness" between the average surface normal and target vector is defined as minimizing for the smallest angle between the two (as computed through the [dot-product](http://en.wikipedia.org/wiki/Dot_product) ). Though each triangle has two surface normals (one for each of the two sides), we don't care about which one you choose: just make sure that when printing the results, you respect the [right-hand rule](http://en.wikipedia.org/wiki/Right-hand_rule) for consistency. At **minimum**, this set must match the target vector with less than 10 degrees of difference. *Original author: /u/nint22. This challenge is a little more math-heavy than usual, but don't worry: the math isn't hard, and Wikipedia has all the formulas you'll need. Triangle-triangle intersection will be the most tricky part!* # Formal Inputs & Outputs ## Input Description You will be given an integer N which represents the N-following lines, each being a 3D point in space. Each line has three [Real-numbers](https://en.wikipedia.org/wiki/Real_number) that are space -delimited. The last line, which will be line N+1, is the target vector that you are trying to align-with: it is also represented as three space-delimited Real-numbers. ## Output Description Find the largest set of triangles whose average surface normals match the target vector direction within at minimum 10 degrees. Print the result as one triangle per line, where a triangle is defined as the three point indices used. If no set is found, print "No valid result found". # Sample Inputs & Outputs ## Sample Input 5 0.6652 -0.1405 0.7143 0.2223 0.3001 0.7125 -0.9931 0.9613 0.0669 0.0665 0.6426 -0.4931 -0.1100 -0.3525 0.3548 0.577 -0.577 0.577 ## Sample Output **The author is still working on a solution to generate some results with; first person to post good demo data gets a +1 gold medal! The following results are "bad"/"faked", and are only examples of "valid output format".** 0 1 2 1 4 2 """ def main(): pass if __name__ == "__main__": main()
55
119
0.759177
502
2,915
4.37251
0.456175
0.025057
0.031891
0.041002
0.072893
0.052847
0
0
0
0
0
0.051964
0.161578
2,915
52
120
56.057692
0.846154
0.9753
0
0
0
0
0.125
0
0
0
0
0
0
1
0.25
true
0.25
0
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
1
1
1
0
0
0
0
0
4
e9bb771a2f1a6aa3ab3223ceefad39b130c84560
132
py
Python
codes_auto/1662.minimum-numbers-of-function-calls-to-make-target-array.py
smartmark-pro/leetcode_record
6504b733d892a705571eb4eac836fb10e94e56db
[ "MIT" ]
null
null
null
codes_auto/1662.minimum-numbers-of-function-calls-to-make-target-array.py
smartmark-pro/leetcode_record
6504b733d892a705571eb4eac836fb10e94e56db
[ "MIT" ]
null
null
null
codes_auto/1662.minimum-numbers-of-function-calls-to-make-target-array.py
smartmark-pro/leetcode_record
6504b733d892a705571eb4eac836fb10e94e56db
[ "MIT" ]
null
null
null
# # @lc app=leetcode.cn id=1662 lang=python3 # # [1662] minimum-numbers-of-function-calls-to-make-target-array # None # @lc code=end
18.857143
63
0.719697
22
132
4.318182
0.909091
0
0
0
0
0
0
0
0
0
0
0.076271
0.106061
132
7
64
18.857143
0.728814
0.871212
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
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
4
e9c50363815e88e98abc65a73193f47de2d9893e
158
py
Python
server.py
lqf96/cwng-bknd
c75abc80e37cf071df0cbb9d5b5890cd1c1cbf38
[ "MIT" ]
null
null
null
server.py
lqf96/cwng-bknd
c75abc80e37cf071df0cbb9d5b5890cd1c1cbf38
[ "MIT" ]
null
null
null
server.py
lqf96/cwng-bknd
c75abc80e37cf071df0cbb9d5b5890cd1c1cbf38
[ "MIT" ]
null
null
null
#! /usr/bin/env python2.7 import os from app import app # Change working directory os.chdir(os.path.dirname(__file__)) # Run application app.run(debug=True)
17.555556
35
0.759494
26
158
4.461538
0.769231
0
0
0
0
0
0
0
0
0
0
0.014388
0.120253
158
8
36
19.75
0.820144
0.411392
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
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
4
75b7870ab3ebd68e0796e10ad102e4295d268aa8
183
py
Python
books/models.py
oliverroick/django-tests
eda18ee59caa2b3705d6184223c6696fb396a640
[ "MIT" ]
null
null
null
books/models.py
oliverroick/django-tests
eda18ee59caa2b3705d6184223c6696fb396a640
[ "MIT" ]
null
null
null
books/models.py
oliverroick/django-tests
eda18ee59caa2b3705d6184223c6696fb396a640
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import User class Book(models.Model): title = models.CharField(max_length=100) author = models.ForeignKey(User)
22.875
44
0.765027
26
183
5.346154
0.692308
0.143885
0
0
0
0
0
0
0
0
0
0.019108
0.142077
183
7
45
26.142857
0.866242
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.4
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
0
0
1
0
1
0
0
4
75ba9aebf9ef3d94df3b7f6542659cee435d8857
123
py
Python
pingyingdict/data_clean/__init__.py
sujing863/crawler-dict
28def871bae76e4b8abf065464bf60b9645b8de8
[ "MIT" ]
null
null
null
pingyingdict/data_clean/__init__.py
sujing863/crawler-dict
28def871bae76e4b8abf065464bf60b9645b8de8
[ "MIT" ]
null
null
null
pingyingdict/data_clean/__init__.py
sujing863/crawler-dict
28def871bae76e4b8abf065464bf60b9645b8de8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ @Time : 2021/1/9 17:28 @Author : s_jing @File : __init__.py.py @Software: PyCharm """
12.3
25
0.544715
18
123
3.444444
0.944444
0
0
0
0
0
0
0
0
0
0
0.115789
0.227642
123
9
26
13.666667
0.536842
0.910569
0
null
0
null
0
0
null
0
0
0
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
0
0
0
0
1
0
0
0
0
0
0
4
75ceee4ba687c5393e6aa609a774d79abb464f1f
129
py
Python
django_command_admin/apps.py
andrewp-as-is/django-admin-commands.py
88b5d22ca45104a1fc095c9b2855f5355c9eb8ea
[ "Unlicense" ]
1
2021-09-23T18:16:56.000Z
2021-09-23T18:16:56.000Z
django_command_admin/apps.py
andrewp-as-is/django-command-admin.py
88b5d22ca45104a1fc095c9b2855f5355c9eb8ea
[ "Unlicense" ]
null
null
null
django_command_admin/apps.py
andrewp-as-is/django-command-admin.py
88b5d22ca45104a1fc095c9b2855f5355c9eb8ea
[ "Unlicense" ]
null
null
null
from django.apps import AppConfig class Config(AppConfig): name = 'django_command_admin' verbose_name = 'command-admin'
21.5
34
0.751938
16
129
5.875
0.6875
0.255319
0
0
0
0
0
0
0
0
0
0
0.162791
129
5
35
25.8
0.87037
0
0
0
0
0
0.255814
0
0
0
0
0
0
1
0
false
0
0.25
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
0
0
0
0
1
0
0
4
f958283d3b79624894f6a8dd6cdea1da20a2cedc
249
py
Python
disno/objects/__init__.py
QwireDev/disno
9ae5323dd689532a86898a98223e1f8162b46700
[ "MIT" ]
null
null
null
disno/objects/__init__.py
QwireDev/disno
9ae5323dd689532a86898a98223e1f8162b46700
[ "MIT" ]
3
2022-02-26T03:15:03.000Z
2022-03-17T01:39:51.000Z
disno/objects/__init__.py
QwireDev/disno
9ae5323dd689532a86898a98223e1f8162b46700
[ "MIT" ]
null
null
null
""" disno.objects ~~~~~~~~~~~~~ Independently usable object models for the Discord API. Docs reference: https://discord.dev :copyright: (c) 2021-present Qwire Development Team :license: MIT, see LICENSE for more details. """ from .user import *
17.785714
55
0.706827
32
249
5.5
0.90625
0
0
0
0
0
0
0
0
0
0
0.018779
0.144578
249
13
56
19.153846
0.807512
0.879518
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
4
f97014fd46fdd0372d4b0be997b5cff546ae2fc1
164
py
Python
maincrawler/apps.py
sharawy/genie_crawler
a7a7075f67fe1ee9d1e0343dc1ae062040303fe2
[ "BSD-3-Clause" ]
null
null
null
maincrawler/apps.py
sharawy/genie_crawler
a7a7075f67fe1ee9d1e0343dc1ae062040303fe2
[ "BSD-3-Clause" ]
null
null
null
maincrawler/apps.py
sharawy/genie_crawler
a7a7075f67fe1ee9d1e0343dc1ae062040303fe2
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.apps import AppConfig class SpidermanagerConfig(AppConfig): name = 'maincrawler'
18.222222
39
0.75
18
164
6.555556
0.833333
0
0
0
0
0
0
0
0
0
0
0.007194
0.152439
164
8
40
20.5
0.841727
0.128049
0
0
0
0
0.078014
0
0
0
0
0
0
1
0
false
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
0
0
1
0
1
0
0
4
f9a7b4d316b6213f2d53ffbf5be4a31efdff66ea
68
py
Python
pycc/cli/__init__.py
kevinconway/pycc
69ba99d78a859ba61c2ce7ee35766e21c789db21
[ "Apache-2.0" ]
17
2015-04-01T13:51:25.000Z
2021-12-15T21:07:09.000Z
pycc/cli/__init__.py
kevinconway/pycc
69ba99d78a859ba61c2ce7ee35766e21c789db21
[ "Apache-2.0" ]
3
2018-09-05T04:34:24.000Z
2019-05-27T00:44:33.000Z
pycc/cli/__init__.py
kevinconway/pycc
69ba99d78a859ba61c2ce7ee35766e21c789db21
[ "Apache-2.0" ]
5
2018-05-19T23:50:44.000Z
2021-08-05T08:39:57.000Z
"""Modules related to the command line interface of the project."""
34
67
0.75
10
68
5.1
0.9
0
0
0
0
0
0
0
0
0
0
0
0.147059
68
1
68
68
0.87931
0.897059
0
null
0
null
0
0
null
0
0
0
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
0
0
0
0
1
0
0
0
0
0
0
4
f9b9ff1aaf491a902bceccf7116ff07f45d3c5a4
180
py
Python
moto/datasync/__init__.py
symroe/moto
4e106995af6f2820273528fca8a4e9ee288690a5
[ "Apache-2.0" ]
null
null
null
moto/datasync/__init__.py
symroe/moto
4e106995af6f2820273528fca8a4e9ee288690a5
[ "Apache-2.0" ]
1
2022-02-19T02:10:45.000Z
2022-02-19T02:15:52.000Z
moto/datasync/__init__.py
symroe/moto
4e106995af6f2820273528fca8a4e9ee288690a5
[ "Apache-2.0" ]
null
null
null
from ..core.models import base_decorator from .models import datasync_backends datasync_backend = datasync_backends["us-east-1"] mock_datasync = base_decorator(datasync_backends)
30
49
0.838889
24
180
6
0.541667
0.333333
0
0
0
0
0
0
0
0
0
0.006061
0.083333
180
5
50
36
0.866667
0
0
0
0
0
0.05
0
0
0
0
0
0
1
0
false
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
0
0
1
0
0
0
0
4
f9bc7375f1ddc22ec2ec09f1af7ce0ed1a13bec1
22
py
Python
ibm_watson/version.py
mmmryd/python-sdk
9f5283cb07c3e8eda87ce65a4eae75ed89a3f006
[ "Apache-2.0" ]
null
null
null
ibm_watson/version.py
mmmryd/python-sdk
9f5283cb07c3e8eda87ce65a4eae75ed89a3f006
[ "Apache-2.0" ]
null
null
null
ibm_watson/version.py
mmmryd/python-sdk
9f5283cb07c3e8eda87ce65a4eae75ed89a3f006
[ "Apache-2.0" ]
null
null
null
__version__ = '5.2.3'
11
21
0.636364
4
22
2.5
1
0
0
0
0
0
0
0
0
0
0
0.157895
0.136364
22
1
22
22
0.368421
0
0
0
0
0
0.227273
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
f9bd05044e9ce4808ba5f30d3fc0c18cf1015451
297
py
Python
takeyourmeds/utils/decorators.py
takeyourmeds/takeyourmeds-web
edf24188f26948902cfb69793b4d5aa3cf8b6dea
[ "MIT" ]
11
2015-06-01T16:31:42.000Z
2022-03-01T01:20:58.000Z
takeyourmeds/utils/decorators.py
takeyourmeds/takeyourmeds-web
edf24188f26948902cfb69793b4d5aa3cf8b6dea
[ "MIT" ]
111
2015-07-20T13:23:16.000Z
2017-09-08T08:17:10.000Z
takeyourmeds/utils/decorators.py
takeyourmeds/takeyourmeds-web
edf24188f26948902cfb69793b4d5aa3cf8b6dea
[ "MIT" ]
6
2015-07-15T08:08:12.000Z
2018-06-23T00:13:13.000Z
from django.conf import settings from django.contrib.auth.decorators import user_passes_test logout_required = user_passes_test( lambda x: not x.is_authenticated(), settings.LOGIN_REDIRECT_URL, ) superuser_required = user_passes_test(lambda u: (u.is_authenticated() and u.is_superuser))
29.7
90
0.804714
43
297
5.255814
0.55814
0.132743
0.185841
0.19469
0.247788
0
0
0
0
0
0
0
0.114478
297
9
91
33
0.859316
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0.428571
0.285714
0
0.285714
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
1
0
0
0
0
0
4
f9db0d5d227fd6db7255afd53d2c3b71af4b7b37
68
py
Python
tests/pyconverter-test/cases/array_generics2.py
jaydeetay/pxt
aad1beaf15edc46e1327806367298cbc942dcbc1
[ "MIT" ]
977
2019-05-06T23:12:55.000Z
2022-03-29T19:11:44.000Z
tests/pyconverter-test/cases/array_generics2.py
jaydeetay/pxt
aad1beaf15edc46e1327806367298cbc942dcbc1
[ "MIT" ]
3,980
2019-05-09T20:48:14.000Z
2022-03-28T20:33:07.000Z
tests/pyconverter-test/cases/array_generics2.py
jaydeetay/pxt
aad1beaf15edc46e1327806367298cbc942dcbc1
[ "MIT" ]
306
2016-04-09T05:28:07.000Z
2019-05-02T14:23:29.000Z
obstacles: List[List[number]] = [] obstacles.removeAt(0).removeAt(0)
34
34
0.735294
9
68
5.555556
0.555556
0.36
0
0
0
0
0
0
0
0
0
0.03125
0.058824
68
2
35
34
0.75
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0
0
0
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
0
0
0
0
0
4
f9e9d0d9d659c467f3fb9af001243442f7cbfe24
1,058
py
Python
lookerapi/apis/__init__.py
jcarah/python_sdk
3bff34d04a828c940c3f93055e10b6a0095c2327
[ "MIT" ]
null
null
null
lookerapi/apis/__init__.py
jcarah/python_sdk
3bff34d04a828c940c3f93055e10b6a0095c2327
[ "MIT" ]
null
null
null
lookerapi/apis/__init__.py
jcarah/python_sdk
3bff34d04a828c940c3f93055e10b6a0095c2327
[ "MIT" ]
null
null
null
from __future__ import absolute_import # import apis into api package from .api_auth_api import ApiAuthApi from .auth_api import AuthApi from .color_collection_api import ColorCollectionApi from .config_api import ConfigApi from .connection_api import ConnectionApi from .content_api import ContentApi from .dashboard_api import DashboardApi from .data_action_api import DataActionApi from .datagroup_api import DatagroupApi from .folder_api import FolderApi from .group_api import GroupApi from .homepage_api import HomepageApi from .integration_api import IntegrationApi from .look_api import LookApi from .lookml_model_api import LookmlModelApi from .project_api import ProjectApi from .query_api import QueryApi from .render_task_api import RenderTaskApi from .role_api import RoleApi from .scheduled_plan_api import ScheduledPlanApi from .session_api import SessionApi from .space_api import SpaceApi from .theme_api import ThemeApi from .user_api import UserApi from .user_attribute_api import UserAttributeApi from .workspace_api import WorkspaceApi
35.266667
52
0.865784
147
1,058
5.972789
0.435374
0.266515
0.029613
0
0
0
0
0
0
0
0
0
0.108696
1,058
29
53
36.482759
0.931071
0.026465
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
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
1
0
1
0
1
0
0
4
dda6edc62888e96f6b9bd19db40967ea5f10245e
9,454
py
Python
diofant/tests/printing/test_mathematica.py
rajkk1/diofant
6b361334569e4ec2e8c7d30dc324387a4ad417c2
[ "BSD-3-Clause" ]
57
2016-09-13T23:16:26.000Z
2022-03-29T06:45:51.000Z
diofant/tests/printing/test_mathematica.py
rajkk1/diofant
6b361334569e4ec2e8c7d30dc324387a4ad417c2
[ "BSD-3-Clause" ]
402
2016-05-11T11:11:47.000Z
2022-03-31T14:27:02.000Z
diofant/tests/printing/test_mathematica.py
rajkk1/diofant
6b361334569e4ec2e8c7d30dc324387a4ad417c2
[ "BSD-3-Clause" ]
20
2016-05-11T08:17:37.000Z
2021-09-10T09:15:51.000Z
"""Mathematica code printing tests.""" import pytest from diofant import (QQ, Catalan, Derivative, Dummy, E, Eq, EulerGamma, Function, Gt, Heaviside, Integer, Integral, Lambda, Le, Limit, Matrix, Max, Min, Ne, Or, Piecewise, Poly, Rational, RootOf, RootSum, SparseMatrix, Sum, Tuple, acos, acosh, acot, acoth, asin, asinh, atan, atanh, binomial, conjugate, cos, cosh, cot, coth, csch, erfc, exp, factorial, factorial2, false, fibonacci, gamma, hyper, im, log, loggamma, mathematica_code, meijerg, oo, pi, polygamma, polylog, re, rf, sech, sign, sin, sinh, symbols, tan, tanh, true, zeta) from diofant.abc import x, y, z __all__ = () f = Function('f') def test_Integer(): assert mathematica_code(Integer(67)) == '67' assert mathematica_code(Integer(-1)) == '-1' def test_Rational(): assert mathematica_code(Rational(3, 7)) == '3/7' assert mathematica_code(Rational(18, 9)) == '2' assert mathematica_code(Rational(3, -7)) == '-3/7' assert mathematica_code(Rational(-3, -7)) == '3/7' assert mathematica_code(x + Rational(3, 7)) == 'x + 3/7' assert mathematica_code(Rational(3, 7)*x) == '(3/7)*x' def test_symbols(): assert mathematica_code(x) == 'x' d = Dummy('d') assert mathematica_code(d) == f'd{d.dummy_index}' def test_Function(): assert mathematica_code(f(x, y, z)) == 'f[x, y, z]' assert mathematica_code(sin(x) ** cos(x)) == 'Sin[x]^Cos[x]' assert mathematica_code(sign(x)) == 'Sign[x]' assert mathematica_code(atanh(x), user_functions={'atanh': 'ArcTanh'}) == 'ArcTanh[x]' assert (mathematica_code(meijerg(((1, 1), (3, 4)), ((1,), ()), x)) == 'MeijerG[{{1, 1}, {3, 4}}, {{1}, {}}, x]') assert (mathematica_code(hyper((1, 2, 3), (3, 4), x)) == 'HypergeometricPFQ[{1, 2, 3}, {3, 4}, x]') assert mathematica_code(Min(x, y)) == 'Min[x, y]' assert mathematica_code(Max(x, y)) == 'Max[x, y]' assert mathematica_code(Max(x, 2)) == 'Max[2, x]' # issue sympy/sympy#15344 assert mathematica_code(binomial(x, y)) == 'Binomial[x, y]' assert mathematica_code(log(x)) == 'Log[x]' assert mathematica_code(tan(x)) == 'Tan[x]' assert mathematica_code(cot(x)) == 'Cot[x]' assert mathematica_code(asin(x)) == 'ArcSin[x]' assert mathematica_code(acos(x)) == 'ArcCos[x]' assert mathematica_code(atan(x)) == 'ArcTan[x]' assert mathematica_code(acot(x)) == 'ArcCot[x]' assert mathematica_code(sinh(x)) == 'Sinh[x]' assert mathematica_code(cosh(x)) == 'Cosh[x]' assert mathematica_code(tanh(x)) == 'Tanh[x]' assert mathematica_code(coth(x)) == 'Coth[x]' assert mathematica_code(asinh(x)) == 'ArcSinh[x]' assert mathematica_code(acosh(x)) == 'ArcCosh[x]' assert mathematica_code(atanh(x)) == 'ArcTanh[x]' assert mathematica_code(acoth(x)) == 'ArcCoth[x]' assert mathematica_code(sech(x)) == 'Sech[x]' assert mathematica_code(csch(x)) == 'Csch[x]' assert mathematica_code(erfc(x)) == 'Erfc[x]' assert mathematica_code(conjugate(x)) == 'Conjugate[x]' assert mathematica_code(re(x)) == 'Re[x]' assert mathematica_code(im(x)) == 'Im[x]' assert mathematica_code(polygamma(x, y)) == 'PolyGamma[x, y]' assert mathematica_code(factorial(x)) == 'Factorial[x]' assert mathematica_code(factorial2(x)) == 'Factorial2[x]' assert mathematica_code(rf(x, y)) == 'Pochhammer[x, y]' assert mathematica_code(gamma(x)) == 'Gamma[x]' assert mathematica_code(zeta(x)) == 'Zeta[x]' assert mathematica_code(Heaviside(x)) == 'UnitStep[x]' assert mathematica_code(fibonacci(x)) == 'Fibonacci[x]' assert mathematica_code(polylog(x, y)) == 'PolyLog[x, y]' assert mathematica_code(loggamma(x)) == 'LogGamma[x]' class MyFunc1(Function): @classmethod def eval(cls, x): pass class MyFunc2(Function): @classmethod def eval(cls, x, y): pass pytest.raises(ValueError, lambda: mathematica_code(MyFunc1(x), user_functions={'MyFunc1': ['Myfunc1']})) assert mathematica_code(MyFunc1(x), user_functions={'MyFunc1': 'Myfunc1'}) == 'Myfunc1[x]' assert mathematica_code(MyFunc2(x, y), user_functions={'MyFunc2': [(lambda *x: False, 'Myfunc2')]}) == 'MyFunc2[x, y]' def test_Lambda(): f1 = Lambda(x, x**2) assert mathematica_code(f1) == 'Function[{x}, x^2]' f2 = Lambda((x, y), x + 2*y) assert mathematica_code(f2) == 'Function[{x, y}, x + 2*y]' def test_Derivative(): assert mathematica_code(Derivative(f(x), x, x)) == 'Hold[D[f[x], x, x]]' assert mathematica_code(Derivative(sin(x), x)) == 'Hold[D[Sin[x], x]]' assert mathematica_code(Derivative(x, x)) == 'Hold[D[x, x]]' assert mathematica_code(Derivative(sin(x)*y**4, (x, 2))) == 'Hold[D[y^4*Sin[x], x, x]]' assert mathematica_code(Derivative(sin(x)*y**4, x, y, x)) == 'Hold[D[y^4*Sin[x], x, y, x]]' assert mathematica_code(Derivative(sin(x)*y**4, x, (y, 3), x)) == 'Hold[D[y^4*Sin[x], x, y, y, y, x]]' def test_Pow(): assert mathematica_code(x**3) == 'x^3' assert mathematica_code(x**(y**3)) == 'x^(y^3)' assert mathematica_code(1/(f(x)*3.5)**(x - y**x)/(x**2 + y)) == \ '(3.5*f[x])^(-x + y^x)/(x^2 + y)' assert mathematica_code(x**-1.0) == 'x^(-1.0)' assert mathematica_code(x**Rational(2, 3)) == 'x^(2/3)' def test_Mul(): A, B, C, D = symbols('A B C D', commutative=False) assert mathematica_code(x*y*z) == 'x*y*z' assert mathematica_code(x*y*A) == 'x*y*A' assert mathematica_code(x*y*A*B) == 'x*y*A**B' assert mathematica_code(x*y*A*B*C) == 'x*y*A**B**C' assert mathematica_code(x*A*B*(C + D)*A*y) == 'x*y*A**B**(C + D)**A' def test_constants(): assert mathematica_code(pi) == 'Pi' assert mathematica_code(oo) == 'Infinity' assert mathematica_code(-oo) == '-Infinity' assert mathematica_code(EulerGamma) == 'EulerGamma' assert mathematica_code(Catalan) == 'Catalan' assert mathematica_code(E) == 'E' def test_containers(): assert mathematica_code([1, 2, 3, [4, 5, [6, 7]], 8, [9, 10], 11]) == \ '{1, 2, 3, {4, 5, {6, 7}}, 8, {9, 10}, 11}' assert mathematica_code((1, 2, (3, 4))) == '{1, 2, {3, 4}}' assert mathematica_code([1]) == '{1}' assert mathematica_code((1,)) == '{1}' assert mathematica_code(Tuple(*[1, 2, 3])) == '{1, 2, 3}' def test_Integral(): assert mathematica_code(Integral(sin(sin(x)), x)) == 'Hold[Integrate[Sin[Sin[x]], x]]' assert mathematica_code(Integral(exp(-x**2 - y**2), (x, -oo, oo), (y, -oo, oo))) == \ 'Hold[Integrate[E^(-x^2 - y^2), {x, -Infinity, Infinity}, ' \ '{y, -Infinity, Infinity}]]' def test_Sum(): assert mathematica_code(Sum(sin(x), (x, 0, 10))) == 'Hold[Sum[Sin[x], {x, 0, 10}]]' assert mathematica_code(Sum(exp(-x**2 - y**2), (x, -oo, oo), (y, -oo, oo))) == \ 'Hold[Sum[E^(-x^2 - y^2), {x, -Infinity, Infinity}, ' \ '{y, -Infinity, Infinity}]]' def test_Matrix(): assert mathematica_code(Matrix()) == '{}' m = Matrix([[1, 2], [3, 4444]]) assert mathematica_code(m) == mathematica_code(m.as_immutable()) == '{{1, 2}, {3, 4444}}' m = SparseMatrix(m) assert mathematica_code(m) == mathematica_code(m.as_immutable()) == '{{1, 2}, {3, 4444}}' def test_Relational(): assert mathematica_code(Eq(x, y)) == 'x == y' assert mathematica_code(Ne(x, y/(1 + y**2))) == 'x != (y/(y^2 + 1))' assert mathematica_code(Le(0, x**2)) == '0 <= x^2' assert mathematica_code(Gt(pi, 3, evaluate=False)) == 'Pi > 3' def test_Booleans(): assert mathematica_code(true) == 'True' assert mathematica_code(false) == 'False' def test_Piecewise(): g = Piecewise((0, Or(x <= -1, x >= 1)), (1 - x, x > 0), (1 + x, True)) assert (mathematica_code(g) == 'Piecewise[{{0, x >= 1 || x <= -1}, ' '{-x + 1, x > 0}, {x + 1, True}}]') def test_RootOf(): p = Poly(x**3 + y*x + 1, x) assert mathematica_code(RootOf(p, 0)) == 'Root[#^3 + #*y + 1 &, 1]' def test_RootSum(): r = RootSum(x**3 + x + 3, Lambda(y, log(y*z))) assert mathematica_code(r) == ('RootSum[Function[{x}, x^3 + x + 3], ' 'Function[{y}, Log[y*z]]]') def test_AlgebraicElement(): r = RootOf(x**7 + 3*x - 1, 3) K = QQ.algebraic_field(r) a = K([1, 0, 3, 2, 1]) assert mathematica_code(a) == ('AlgebraicNumber[Root[#^7 + 3*# - 1 &, 4],' ' {1, 0, 3, 2, 1}]') def test_Limit(): e = Limit(sin(x)/x, x, 0) assert mathematica_code(e) == 'Hold[Limit[Sin[x]/x, x -> 0, Direction -> -1]]' e = Limit(sin(x)/x, x, 0, '-') assert mathematica_code(e) == 'Hold[Limit[Sin[x]/x, x -> 0, Direction -> 1]]' e = Limit(sin(x)/x, x, 0, 'real') assert mathematica_code(e) == 'Hold[Limit[Sin[x]/x, x -> 0, Direction -> Reals]]'
39.066116
106
0.549503
1,320
9,454
3.831061
0.121212
0.317382
0.423571
0.174016
0.403994
0.315207
0.24916
0.212379
0.156417
0.143168
0
0.034434
0.247409
9,454
241
107
39.228216
0.676318
0.005923
0
0.076087
0
0.027174
0.173251
0.012246
0
0
0
0
0.554348
1
0.119565
false
0.01087
0.016304
0
0.146739
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
1
0
0
0
0
0
0
0
0
0
4
ddb1de287f831a4918362804d976483c34dcebd6
1,099
py
Python
lab01/app/views.py
cesar-limachi/TECSUP-DAE-2021-2-B-CESAR-LIMACHI
ff7f980fa9c1e4d6923d3e9387684e2c460c9453
[ "MIT" ]
null
null
null
lab01/app/views.py
cesar-limachi/TECSUP-DAE-2021-2-B-CESAR-LIMACHI
ff7f980fa9c1e4d6923d3e9387684e2c460c9453
[ "MIT" ]
null
null
null
lab01/app/views.py
cesar-limachi/TECSUP-DAE-2021-2-B-CESAR-LIMACHI
ff7f980fa9c1e4d6923d3e9387684e2c460c9453
[ "MIT" ]
null
null
null
from django.shortcuts import render # Create your views here. from django.http import HttpResponse def index(request): return HttpResponse("Desde la vista App") def sumar(request, numero1, numero2): sum = numero1 + numero2 return HttpResponse("La suma de %s + %s = %s" % (numero1, numero2, sum)) ### !! %s = sicnifica que sera de tipo string !! %f = sera de tipo flotante def restar(request, numero1, numero2): res = numero1 - numero2 return HttpResponse("La resta de %s - %s = %s" % (numero1, numero2, res)) ### !! %s = sicnifica que sera de tipo string !! %f = sera de tipo flotante def multiplicar(request, numero1, numero2): mul = numero1 * numero2 return HttpResponse("La multiplicacion de %s * %s = %s" % (numero1, numero2, mul)) ### !! %s = sicnifica que sera de tipo string !! %f = sera de tipo flotante def dividir(request, numero1, numero2): div = numero1 / numero2 return HttpResponse("La division de %s / %s = %f" % (numero1, numero2, div)) ### !! %s = sicnifica que sera de tipo string !! %f = sera de tipo flotante
32.323529
86
0.649682
147
1,099
4.857143
0.285714
0.235294
0.112045
0.179272
0.551821
0.361345
0.281513
0.281513
0.281513
0.281513
0
0.028136
0.22384
1,099
33
87
33.30303
0.80891
0.282985
0
0
0
0
0.161917
0
0
0
0
0
0
1
0.3125
false
0
0.125
0.0625
0.75
0
0
0
0
null
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
4
ddb491885ff83241bc37af4823f4bc9b800f8d7a
46
py
Python
Python studying/Codes of examples/A2.1-temp.py
BoyangSheng/Skill-studing
974c37365fff72e2c7b1e27ae52cb267c7070c9e
[ "Apache-2.0" ]
1
2020-12-09T07:58:01.000Z
2020-12-09T07:58:01.000Z
Python studying/Codes of examples/A2.1-temp.py
BoyangSheng/Skill-studying
974c37365fff72e2c7b1e27ae52cb267c7070c9e
[ "Apache-2.0" ]
null
null
null
Python studying/Codes of examples/A2.1-temp.py
BoyangSheng/Skill-studying
974c37365fff72e2c7b1e27ae52cb267c7070c9e
[ "Apache-2.0" ]
null
null
null
a = 1 b = 2 temp = a a = b b = temp print(a,b)
7.666667
10
0.5
13
46
1.769231
0.461538
0.173913
0
0
0
0
0
0
0
0
0
0.064516
0.326087
46
6
10
7.666667
0.677419
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.166667
1
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
ddc9286f59f9124e4f4e0c6ecbaa2c37cd784ff9
79
py
Python
src/nexgen/beamlines/__init__.py
DominicOram/nexgen
5a0dbb7bc7f8f3876e4cd69c6cd4eb7df0587af8
[ "BSD-3-Clause" ]
null
null
null
src/nexgen/beamlines/__init__.py
DominicOram/nexgen
5a0dbb7bc7f8f3876e4cd69c6cd4eb7df0587af8
[ "BSD-3-Clause" ]
null
null
null
src/nexgen/beamlines/__init__.py
DominicOram/nexgen
5a0dbb7bc7f8f3876e4cd69c6cd4eb7df0587af8
[ "BSD-3-Clause" ]
null
null
null
"""Utilities for writing NeXus files for beamlines at Diamond Light Source."""
39.5
78
0.772152
11
79
5.545455
0.909091
0
0
0
0
0
0
0
0
0
0
0
0.139241
79
1
79
79
0.897059
0.911392
0
null
0
null
0
0
null
0
0
0
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
0
0
0
0
1
0
0
0
0
0
0
4
ddff2f8584068d18fe643132689a35a4030776e6
1,214
py
Python
sme/test/test_parameter.py
henryiii/spatial-model-editor
2138d03ae4c7cc353b40324dfd1a3e763d7085d9
[ "MIT" ]
4
2019-07-18T15:05:09.000Z
2020-03-14T09:50:07.000Z
sme/test/test_parameter.py
henryiii/spatial-model-editor
2138d03ae4c7cc353b40324dfd1a3e763d7085d9
[ "MIT" ]
418
2020-10-08T07:42:27.000Z
2022-03-08T12:10:52.000Z
sme/test/test_parameter.py
henryiii/spatial-model-editor
2138d03ae4c7cc353b40324dfd1a3e763d7085d9
[ "MIT" ]
2
2021-09-02T11:20:38.000Z
2021-10-13T14:05:32.000Z
import unittest import sme class TestParameter(unittest.TestCase): def test_parameter(self): # get an existing parameter m = sme.open_example_model() p = m.parameters["param"] # verify name and properties self.assertEqual(repr(p), "<sme.Parameter named 'param'>") self.assertEqual(str(p)[0:33], "<sme.Parameter>\n - name: 'param'") self.assertEqual(p.name, "param") self.assertEqual(p.value, "1") # assign new values p.name = "New param" p.value = "0.8765" self.assertEqual(repr(p), "<sme.Parameter named 'New param'>") self.assertEqual(str(p)[0:37], "<sme.Parameter>\n - name: 'New param'") self.assertEqual(p.name, "New param") self.assertEqual(p.value, "0.8765") # check change was propagated to model self.assertRaises( sme.InvalidArgument, lambda: m.parameters["param"], ) p2 = m.parameters["New param"] self.assertEqual(p2.name, "New param") self.assertEqual(p2.value, "0.8765") self.assertEqual(p2, p) self.assertEqual(p2, m.parameters[0]) self.assertEqual(p2, m.parameters[-1])
32.810811
80
0.593081
149
1,214
4.812081
0.315436
0.271967
0.223152
0.160391
0.53696
0.251046
0.103208
0
0
0
0
0.03352
0.262768
1,214
36
81
33.722222
0.767598
0.088138
0
0
0
0
0.185118
0
0
0
0
0
0.538462
1
0.038462
false
0
0.076923
0
0.153846
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
1
0
0
0
0
0
0
0
0
0
4
fb178614390156be5b6fcc8f6a9ee15bc1688061
26
py
Python
sandbox/static/robots.txt.py
vituocgia/wshop-core
5f6d1ec9e9158f13aab136c5bd901c41e69a1dba
[ "BSD-3-Clause" ]
null
null
null
sandbox/static/robots.txt.py
vituocgia/wshop-core
5f6d1ec9e9158f13aab136c5bd901c41e69a1dba
[ "BSD-3-Clause" ]
null
null
null
sandbox/static/robots.txt.py
vituocgia/wshop-core
5f6d1ec9e9158f13aab136c5bd901c41e69a1dba
[ "BSD-3-Clause" ]
null
null
null
XXXXXXXXXXX X XXXXXXXXX
8.666667
14
0.807692
3
26
7
1
0
0
0
0
0
0
0
0
0
0
0
0.192308
26
2
15
13
1
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
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
0
0
0
0
0
0
4
fb31adae6786c68cb6e78e21813f7ff011d04f84
858
py
Python
before-2021/src/main/python/loadenv.py
wangyaomail/zzti-spark-learn
e02c2b40d490c9a1edfc888edf67f780b162ccc6
[ "MIT" ]
1
2019-04-04T02:37:59.000Z
2019-04-04T02:37:59.000Z
before-2021/src/main/python/loadenv.py
wangyaomail/zzti-spark-learn
e02c2b40d490c9a1edfc888edf67f780b162ccc6
[ "MIT" ]
null
null
null
before-2021/src/main/python/loadenv.py
wangyaomail/zzti-spark-learn
e02c2b40d490c9a1edfc888edf67f780b162ccc6
[ "MIT" ]
null
null
null
import sys import os from os.path import * def pl(): return dirname(dirname(dirname(dirname(os.path.abspath(__file__))))) class SparkEnv: def __init__(self, name): os.environ['HADOOP_HOME'] = dirname(dirname(dirname(dirname(os.path.abspath(__file__))))) + r'/hadoopdir' os.environ['SPARK_HOME'] = r"D:\assistlibs\hadoop\spark-2.2.3-bin-hadoop2.6" sys.path.append(r"D:\assistlibs\hadoop\spark-2.2.3-bin-hadoop2.6\python") from pyspark import SparkContext self.sc = SparkContext("local", name) self.sc.setLogLevel("WARN") from pyspark.sql import SparkSession self.ss = SparkSession.builder.appName(name).getOrCreate() def postInit(self): return (self, self.sc, self.ss) def projLoc(self): return dirname(dirname(dirname(dirname(os.path.abspath(__file__)))))
33
113
0.67366
115
858
4.869565
0.391304
0.225
0.225
0.15
0.394643
0.394643
0.394643
0.394643
0.314286
0.132143
0
0.014205
0.179487
858
25
114
34.32
0.78125
0
0
0.105263
0
0.052632
0.162005
0.115385
0
0
0
0
0
1
0.210526
false
0
0.263158
0.157895
0.684211
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
0
0
1
0
0
0
4
fb348fc3d4a0145c0673f6bb3b16a1d1c994d3cd
77
py
Python
EulerProject/0xx/00x/006/main.py
mathtimes/math-lab
33b23a0f484174281daeff3ea6c80f56e32188df
[ "MIT" ]
1
2022-03-23T03:29:51.000Z
2022-03-23T03:29:51.000Z
EulerProject/0xx/00x/006/main.py
mathtimes/math-lab
33b23a0f484174281daeff3ea6c80f56e32188df
[ "MIT" ]
null
null
null
EulerProject/0xx/00x/006/main.py
mathtimes/math-lab
33b23a0f484174281daeff3ea6c80f56e32188df
[ "MIT" ]
null
null
null
i1 = i2 = 0 for i in range(1,101): i1 += i i2 += i**2 print(i1**2-i2)
15.4
22
0.480519
18
77
2.055556
0.611111
0
0
0
0
0
0
0
0
0
0
0.240741
0.298701
77
5
23
15.4
0.444444
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.2
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
0
0
0
0
0
0
0
4
34841b7ae87804683a21023c845043f92dc29a4e
79
py
Python
django/wx/apps.py
yanhuaijun/learngit
a61314ee528f376b4a42fe0ecb072c036fc5f3b2
[ "Unlicense" ]
2
2020-03-02T03:56:24.000Z
2020-12-07T16:14:21.000Z
django/wx/apps.py
yanhuaijun/learngit
a61314ee528f376b4a42fe0ecb072c036fc5f3b2
[ "Unlicense" ]
48
2021-09-28T17:59:43.000Z
2022-03-31T06:15:01.000Z
django/wx/apps.py
yanhuaijun/learngit
a61314ee528f376b4a42fe0ecb072c036fc5f3b2
[ "Unlicense" ]
1
2020-01-23T12:58:57.000Z
2020-01-23T12:58:57.000Z
from django.apps import AppConfig class WxConfig(AppConfig): name = 'wx'
13.166667
33
0.721519
10
79
5.7
0.9
0
0
0
0
0
0
0
0
0
0
0
0.189873
79
5
34
15.8
0.890625
0
0
0
0
0
0.025316
0
0
0
0
0
0
1
0
false
0
0.333333
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
0
0
1
0
1
0
0
4
34b7a0cf3cd2a9e01d49610638f22defe4ea0909
267
py
Python
netbox/utilities/querysets.py
BrnoPCmaniak/netbox
7b517abdb68a6324950dfd0375861163c7bfff00
[ "Apache-2.0" ]
6
2017-12-01T05:13:39.000Z
2020-01-23T13:04:43.000Z
netbox/utilities/querysets.py
BrnoPCmaniak/netbox
7b517abdb68a6324950dfd0375861163c7bfff00
[ "Apache-2.0" ]
4
2021-06-08T22:29:06.000Z
2022-03-12T00:48:51.000Z
netbox/utilities/querysets.py
BrnoPCmaniak/netbox
7b517abdb68a6324950dfd0375861163c7bfff00
[ "Apache-2.0" ]
3
2017-11-18T01:28:22.000Z
2018-05-17T14:04:43.000Z
class DummyQuerySet: """ A fake QuerySet that can be used to cache relationships to objects that have been deleted. """ def __init__(self, queryset): self._cache = [obj for obj in queryset.all()] def all(self): return self._cache
26.7
94
0.64794
36
267
4.638889
0.666667
0.107784
0
0
0
0
0
0
0
0
0
0
0.265918
267
9
95
29.666667
0.852041
0.337079
0
0
0
0
0
0
0
0
0
0
0
1
0.4
false
0
0
0.2
0.8
0
0
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
4
9b912e1b1bc34ca1099a36ef24a379ccf005b21f
195
py
Python
ExtractionModule/fileStructureIdentifier.py
k41nt/ECEN403-ML-for-Data-Organization
eebdc144194cb58cddaf98bbb017b80627ef9107
[ "MIT" ]
null
null
null
ExtractionModule/fileStructureIdentifier.py
k41nt/ECEN403-ML-for-Data-Organization
eebdc144194cb58cddaf98bbb017b80627ef9107
[ "MIT" ]
null
null
null
ExtractionModule/fileStructureIdentifier.py
k41nt/ECEN403-ML-for-Data-Organization
eebdc144194cb58cddaf98bbb017b80627ef9107
[ "MIT" ]
null
null
null
""" Title:: File Structure Identifier Brief:: Implementation of the program that trains the model for identifying a known set of document classes Author:: Nicholas Hemstreet Date:: 04/02/2019 """
32.5
107
0.779487
28
195
5.428571
0.928571
0
0
0
0
0
0
0
0
0
0
0.047619
0.138462
195
6
108
32.5
0.857143
0.958974
0
null
0
null
0
0
null
0
0
0
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
0
0
0
0
1
0
0
0
0
0
0
4
32c9f77066369f6a388cf69e5af4300e4050a903
48
py
Python
bread/protocols/__init__.py
systocrat/bread
e34a40e8554f847f5c564da144f7eef6c0326718
[ "MIT" ]
11
2016-05-17T06:18:03.000Z
2017-02-11T03:03:26.000Z
bread/protocols/__init__.py
systocrat/bread
e34a40e8554f847f5c564da144f7eef6c0326718
[ "MIT" ]
3
2016-05-21T19:05:05.000Z
2016-05-21T21:51:07.000Z
bread/protocols/__init__.py
systocrat/bread
e34a40e8554f847f5c564da144f7eef6c0326718
[ "MIT" ]
null
null
null
__all__ = [ 'flash', 'http', 'irc', 'ssh2' ]
8
11
0.479167
5
48
3.8
1
0
0
0
0
0
0
0
0
0
0
0.027027
0.229167
48
6
12
8
0.486486
0
0
0
0
0
0.326531
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
32deec76612f389d70bd747e5fa7f4ff693a4d8e
191
py
Python
chapter_6/catnapping.py
aaronmccollum/automate-the-boring-stuff-with-python
c2b38240800086c6a0c8d0f790904c1e3a0aa2a4
[ "MIT" ]
null
null
null
chapter_6/catnapping.py
aaronmccollum/automate-the-boring-stuff-with-python
c2b38240800086c6a0c8d0f790904c1e3a0aa2a4
[ "MIT" ]
null
null
null
chapter_6/catnapping.py
aaronmccollum/automate-the-boring-stuff-with-python
c2b38240800086c6a0c8d0f790904c1e3a0aa2a4
[ "MIT" ]
null
null
null
# Using triple-quote marks to create a multiline string in Python print('''Dear Alice, Eve's cat has been arrested for catnapping, cat burglary, and extortion. Sincerely, Bob''')
21.222222
73
0.717277
28
191
4.892857
0.964286
0
0
0
0
0
0
0
0
0
0
0
0.198953
191
8
74
23.875
0.895425
0.329843
0
0
0
0
0.863248
0
0
0
0
0
0
1
0
true
0
0
0
0
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
1
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
fd049ae1fc1ccec0e2126815847ff85669c0fcaa
13,574
py
Python
tests/test_pp_inbox.py
KonnexionsGmbH/dcr
3b58be5df66831e5389558599cf1d234da605aeb
[ "CNRI-Python", "Naumen", "Condor-1.1", "MS-PL" ]
2
2022-02-24T15:13:23.000Z
2022-03-28T00:45:31.000Z
tests/test_pp_inbox.py
KonnexionsGmbH/dcr
3b58be5df66831e5389558599cf1d234da605aeb
[ "CNRI-Python", "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
tests/test_pp_inbox.py
KonnexionsGmbH/dcr
3b58be5df66831e5389558599cf1d234da605aeb
[ "CNRI-Python", "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
# pylint: disable=unused-argument """Testing Module pp.inbox.""" import os.path import pathlib import shutil import cfg.cls_setup import cfg.glob import db.cls_db_core import db.cls_run import pytest import utils import dcr # ----------------------------------------------------------------------------- # Constants & Globals. # ----------------------------------------------------------------------------- # pylint: disable=W0212 # @pytest.mark.issue # ----------------------------------------------------------------------------- # Test RUN_ACTION_PROCESS_INBOX - accepted - duplicate. # ----------------------------------------------------------------------------- def test_run_action_process_inbox_accepted_duplicate(fxtr_setup_empty_db_and_inbox): """Test RUN_ACTION_PROCESS_INBOX - accepted duplicate.""" cfg.glob.logger.debug(cfg.glob.LOGGER_START) # ------------------------------------------------------------------------- stem_name_1: str = "pdf_text_ok" file_ext: str = "pdf" pytest.helpers.copy_files_4_pytest_2_dir( source_files=[ (stem_name_1, file_ext), ], target_path=cfg.glob.setup.directory_inbox, ) stem_name_2: str = "pdf_text_ok_1" pytest.helpers.copy_files_4_pytest_2_dir( source_files=[(stem_name_1, file_ext)], target_path=cfg.glob.setup.directory_inbox_accepted ) os.rename( utils.get_full_name(cfg.glob.setup.directory_inbox_accepted, stem_name_1 + "." + file_ext), utils.get_full_name(cfg.glob.setup.directory_inbox_accepted, stem_name_2 + "." + file_ext), ) # ------------------------------------------------------------------------- dcr.main([dcr.DCR_ARGV_0, db.cls_run.Run.ACTION_CODE_INBOX]) # ------------------------------------------------------------------------- cfg.glob.logger.info("=========> test_run_action_process_inbox_accepted_duplicate <=========") pytest.helpers.verify_content_of_inboxes( inbox=( [], [ stem_name_1 + "." + file_ext, ], ), inbox_accepted=( [], [ stem_name_2 + "." + file_ext, ], ), ) # ------------------------------------------------------------------------- cfg.glob.logger.debug(cfg.glob.LOGGER_END) # ----------------------------------------------------------------------------- # Test RUN_ACTION_PROCESS_INBOX - french. # ----------------------------------------------------------------------------- def test_run_action_process_inbox_french(fxtr_setup_empty_inbox): """Test RUN_ACTION_PROCESS_INBOX - French.""" cfg.glob.logger.debug(cfg.glob.LOGGER_START) # ------------------------------------------------------------------------- initial_database_data_path = pathlib.Path(cfg.glob.setup.initial_database_data) initial_database_data_path_directory = os.path.dirname(initial_database_data_path) initial_database_data_path_file_name = os.path.basename(initial_database_data_path) initial_database_data_path_file_name_test = "initial_database_data_french.json" # copy test file shutil.copy( utils.get_full_name(pytest.helpers.get_test_inbox_directory_name(), initial_database_data_path_file_name_test), utils.get_full_name(initial_database_data_path_directory, initial_database_data_path_file_name), ) cfg.glob.db_core = db.cls_db_core.DBCore(is_admin=True) cfg.glob.db_core.create_database() # ------------------------------------------------------------------------- # Copy language subdirectory pytest.helpers.copy_directories_4_pytest_2_dir( source_directories=["french"], target_dir=str(cfg.glob.setup.directory_inbox) ) # ------------------------------------------------------------------------- values_original = pytest.helpers.backup_config_params( cfg.cls_setup.Setup._DCR_CFG_SECTION_ENV_TEST, [ (cfg.cls_setup.Setup._DCR_CFG_VERBOSE, "false"), ], ) dcr.main([dcr.DCR_ARGV_0, db.cls_run.Run.ACTION_CODE_INBOX]) pytest.helpers.restore_config_params( cfg.cls_setup.Setup._DCR_CFG_SECTION_ENV_TEST, values_original, ) # ------------------------------------------------------------------------- cfg.glob.logger.info("=========> test_run_action_process_inbox_french <=========") pytest.helpers.verify_content_of_inboxes( inbox=( ["french"], [], ), inbox_accepted=( [], [ "docx_french_ok_1.docx", "pdf_french_ok_2.jpg", "pdf_french_ok_3.pdf", "pdf_french_scanned_4.pdf", ], ), ) # ------------------------------------------------------------------------- base_directory = str(cfg.glob.setup.directory_inbox) language_directory_name = str(utils.get_full_name(base_directory, pathlib.Path("french"))) assert os.path.isdir(utils.get_os_independent_name(base_directory)), ( "base directory '" + base_directory + "' after processing missing" ) assert os.path.isdir(utils.get_os_independent_name(language_directory_name)), ( "language directory '" + language_directory_name + "' after processing missing" ) assert 0 == len(os.listdir(language_directory_name)), ( str(len(os.listdir(language_directory_name))) + " files still found after processing" ) # ------------------------------------------------------------------------- # Check empty language subdirectory # TBD # ------------------------------------------------------------------------- # Test not language English in document # TBD # ------------------------------------------------------------------------- cfg.glob.logger.debug(cfg.glob.LOGGER_END) # ----------------------------------------------------------------------------- # Test RUN_ACTION_PROCESS_INBOX - ignore duplicates. # ----------------------------------------------------------------------------- def test_run_action_process_inbox_ignore_duplicates(fxtr_setup_empty_db_and_inbox): """Test RUN_ACTION_PROCESS_INBOX - ignore duplicates.""" cfg.glob.logger.debug(cfg.glob.LOGGER_START) # ------------------------------------------------------------------------- pytest.helpers.copy_files_4_pytest_2_dir( source_files=[ ("pdf_text_ok", "pdf"), ("pdf_text_ok_protected", "pdf"), ], target_path=cfg.glob.setup.directory_inbox, ) # ------------------------------------------------------------------------- values_original = pytest.helpers.backup_config_params( cfg.cls_setup.Setup._DCR_CFG_SECTION_ENV_TEST, [ (cfg.cls_setup.Setup._DCR_CFG_IGNORE_DUPLICATES, "true"), ], ) dcr.main([dcr.DCR_ARGV_0, db.cls_run.Run.ACTION_CODE_INBOX]) pytest.helpers.restore_config_params( cfg.cls_setup.Setup._DCR_CFG_SECTION_ENV_TEST, values_original, ) # ------------------------------------------------------------------------- cfg.glob.logger.info("=========> test_run_action_process_inbox_ignore_duplicates <=========") pytest.helpers.verify_content_of_inboxes( inbox_accepted=( [], [ "pdf_text_ok_1.pdf", "pdf_text_ok_protected_2.pdf", ], ), ) # ------------------------------------------------------------------------- cfg.glob.logger.debug(cfg.glob.LOGGER_END) # ----------------------------------------------------------------------------- # Test RUN_ACTION_PROCESS_INBOX - rejected. # ----------------------------------------------------------------------------- def test_run_action_process_inbox_rejected(fxtr_rmdir_opt, fxtr_setup_empty_db_and_inbox): """Test RUN_ACTION_PROCESS_INBOX - rejected.""" cfg.glob.logger.debug(cfg.glob.LOGGER_START) # ------------------------------------------------------------------------- fxtr_rmdir_opt(cfg.glob.setup.directory_inbox_accepted) fxtr_rmdir_opt(cfg.glob.setup.directory_inbox_rejected) pytest.helpers.copy_files_4_pytest_2_dir( source_files=[ ("pdf_text_ok", "pdf"), ("pdf_text_ok_protected", "pdf"), ("pdf_wrong_format", "pdf"), ], target_path=cfg.glob.setup.directory_inbox, ) # ------------------------------------------------------------------------- values_original = pytest.helpers.backup_config_params( cfg.cls_setup.Setup._DCR_CFG_SECTION_ENV_TEST, [ (cfg.cls_setup.Setup._DCR_CFG_IGNORE_DUPLICATES, "false"), ], ) dcr.main([dcr.DCR_ARGV_0, db.cls_run.Run.ACTION_CODE_INBOX]) pytest.helpers.restore_config_params( cfg.cls_setup.Setup._DCR_CFG_SECTION_ENV_TEST, values_original, ) # ------------------------------------------------------------------------- cfg.glob.logger.info("=========> test_run_action_process_inbox_rejected <=========") pytest.helpers.verify_content_of_inboxes( inbox=( [], [], ), inbox_accepted=( [], [ "pdf_text_ok_1.pdf", ], ), inbox_rejected=( [], [ "pdf_text_ok_protected_2.pdf", "pdf_wrong_format_3.pdf", ], ), ) # ------------------------------------------------------------------------- cfg.glob.logger.debug(cfg.glob.LOGGER_END) # ------------------------------------------------------------------------- cfg.glob.logger.debug(cfg.glob.LOGGER_END) # ----------------------------------------------------------------------------- # Test RUN_ACTION_PROCESS_INBOX - rejected - duplicate. # ----------------------------------------------------------------------------- def test_run_action_process_inbox_rejected_duplicate(fxtr_setup_empty_db_and_inbox): """Test RUN_ACTION_PROCESS_INBOX - rejected duplicate.""" cfg.glob.logger.debug(cfg.glob.LOGGER_START) # ------------------------------------------------------------------------- stem_name_1: str = "pdf_wrong_format" file_ext: str = "pdf" pytest.helpers.copy_files_4_pytest_2_dir( source_files=[(stem_name_1, file_ext)], target_path=cfg.glob.setup.directory_inbox ) stem_name_2: str = "pdf_wrong_format_1" pytest.helpers.copy_files_4_pytest_2_dir( source_files=[(stem_name_1, file_ext)], target_path=cfg.glob.setup.directory_inbox_rejected ) os.rename( utils.get_full_name(cfg.glob.setup.directory_inbox_rejected, stem_name_1 + "." + file_ext), utils.get_full_name(cfg.glob.setup.directory_inbox_rejected, stem_name_2 + "." + file_ext), ) # ------------------------------------------------------------------------- dcr.main([dcr.DCR_ARGV_0, db.cls_run.Run.ACTION_CODE_INBOX]) # ------------------------------------------------------------------------- cfg.glob.logger.info("=========> test_run_action_process_inbox_rejected_duplicate <=========") pytest.helpers.verify_content_of_inboxes( inbox=( [], [ stem_name_1 + "." + file_ext, ], ), inbox_rejected=( [], [ stem_name_2 + "." + file_ext, ], ), ) # ------------------------------------------------------------------------- cfg.glob.logger.debug(cfg.glob.LOGGER_END) # ----------------------------------------------------------------------------- # Test RUN_ACTION_PROCESS_INBOX - rejected - 901. # ----------------------------------------------------------------------------- def test_run_action_process_inbox_rejected_901(fxtr_rmdir_opt, fxtr_setup_empty_db_and_inbox): """Test RUN_ACTION_PROCESS_INBOX - rejected - 901.""" cfg.glob.logger.debug(cfg.glob.LOGGER_START) # ------------------------------------------------------------------------- fxtr_rmdir_opt(cfg.glob.setup.directory_inbox_accepted) fxtr_rmdir_opt(cfg.glob.setup.directory_inbox_rejected) pytest.helpers.copy_files_4_pytest_2_dir( source_files=[ ("unknown_file_extension", "xxx"), ("unknown_file_extension_protected", "xxx"), ], target_path=cfg.glob.setup.directory_inbox, ) # ------------------------------------------------------------------------- values_original = pytest.helpers.backup_config_params( cfg.cls_setup.Setup._DCR_CFG_SECTION_ENV_TEST, [ (cfg.cls_setup.Setup._DCR_CFG_IGNORE_DUPLICATES, "false"), ], ) dcr.main([dcr.DCR_ARGV_0, db.cls_run.Run.ACTION_CODE_INBOX]) pytest.helpers.restore_config_params( cfg.cls_setup.Setup._DCR_CFG_SECTION_ENV_TEST, values_original, ) # ------------------------------------------------------------------------- cfg.glob.logger.info("=========> test_run_action_process_inbox_rejected <=========") pytest.helpers.verify_content_of_inboxes( inbox=( [], [], ), inbox_accepted=( [], [], ), inbox_rejected=( [], [ "unknown_file_extension_1.xxx", "unknown_file_extension_protected_2.xxx", ], ), )
34.894602
119
0.488728
1,275
13,574
4.743529
0.101176
0.059028
0.064484
0.079365
0.808532
0.783234
0.738426
0.659392
0.647487
0.626984
0
0.005925
0.191764
13,574
388
120
34.984536
0.545347
0.293134
0
0.574899
0
0
0.112187
0.060093
0
0
0
0
0.012146
1
0.024292
false
0
0.040486
0
0.064777
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
0
0
0
0
0
0
0
0
0
0
4
fd11b1139944bd752268bb8a0297e5c3aaf4b282
269
py
Python
backend/common/routes.py
dogzz9445/TAWeb
a1392ba0993bde38362dd9f927d959246f9be8a6
[ "MIT" ]
null
null
null
backend/common/routes.py
dogzz9445/TAWeb
a1392ba0993bde38362dd9f927d959246f9be8a6
[ "MIT" ]
null
null
null
backend/common/routes.py
dogzz9445/TAWeb
a1392ba0993bde38362dd9f927d959246f9be8a6
[ "MIT" ]
null
null
null
from common.api.views.base import RestViewSet from common.api.views.analyzed import AnalyzedRestViewSet routes = [ {'regex': r'rest', 'viewset': RestViewSet, 'basename': 'Rest'}, {'regex': r'analyzed', 'viewset': AnalyzedRestViewSet, 'basename': 'Analyzed'} ]
33.625
82
0.713755
29
269
6.62069
0.517241
0.104167
0.135417
0.1875
0
0
0
0
0
0
0
0
0.122677
269
7
83
38.428571
0.813559
0
0
0
0
0
0.237918
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
1
0
0
null
0
0
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
0
0
0
4
fd3c59f08a477a78201eab7f73db6829cfe6e55c
102
py
Python
tests/shunit/data/bad_i18n_newline_4.py
saloniig/TWLight
cd92e690b79676299d95394abf9e66885eac9d73
[ "MIT" ]
67
2017-12-14T22:27:48.000Z
2022-03-13T18:21:31.000Z
tests/shunit/data/bad_i18n_newline_4.py
saloniig/TWLight
cd92e690b79676299d95394abf9e66885eac9d73
[ "MIT" ]
433
2017-03-24T22:51:23.000Z
2022-03-31T19:36:22.000Z
tests/shunit/data/bad_i18n_newline_4.py
Mahuton/TWLight
90b299d07b0479f21dc90e17b8d05f5a221b0de1
[ "MIT" ]
105
2017-06-23T03:53:41.000Z
2022-03-30T17:24:29.000Z
# Single-quoted string is preceded by newline. # Translators: This is a helpful comment. _( '4')
17
46
0.696078
14
102
5
0.928571
0
0
0
0
0
0
0
0
0
0
0.012346
0.205882
102
5
47
20.4
0.851852
0.823529
0
0
0
0
0.066667
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
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
4
fd3e1733cd44c7f7b0c8512e869221b0e047b9eb
345
py
Python
aids/strings/reverse_string.py
ueg1990/aids
bb543c6f53983d59edbc6a522ca10d64efd9c42e
[ "MIT" ]
null
null
null
aids/strings/reverse_string.py
ueg1990/aids
bb543c6f53983d59edbc6a522ca10d64efd9c42e
[ "MIT" ]
null
null
null
aids/strings/reverse_string.py
ueg1990/aids
bb543c6f53983d59edbc6a522ca10d64efd9c42e
[ "MIT" ]
null
null
null
''' Reverse a string ''' def reverse_string_iterative(string): result = '' for char in range(len(string) - 1, -1 , -1): result += char return result def reverse_string_recursive(string): if string: return reverse_string_recursive(string[1:]) + string[0] return '' def reverse_string_pythonic(string): return string[::-1]
18.157895
60
0.686957
46
345
4.978261
0.369565
0.227074
0.209607
0.244541
0
0
0
0
0
0
0
0.021201
0.17971
345
19
61
18.157895
0.787986
0.046377
0
0
0
0
0
0
0
0
0
0
0
1
0.272727
false
0
0
0.090909
0.636364
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
0
0
0
0
4
fd4379f6d09f55a18b920bcaea9af72f97dad7d1
156
py
Python
get_next_person.py
jbarry1506/python_unittest
595c75842a6ef1efe3358d9e9ab597d4595b9179
[ "Apache-2.0" ]
null
null
null
get_next_person.py
jbarry1506/python_unittest
595c75842a6ef1efe3358d9e9ab597d4595b9179
[ "Apache-2.0" ]
null
null
null
get_next_person.py
jbarry1506/python_unittest
595c75842a6ef1efe3358d9e9ab597d4595b9179
[ "Apache-2.0" ]
null
null
null
def get_next_person(user): person = get_random_person() while person in user['people_seen']: person = get_random_person() return person
26
40
0.692308
21
156
4.809524
0.52381
0.178218
0.29703
0.415842
0
0
0
0
0
0
0
0
0.217949
156
5
41
31.2
0.827869
0
0
0.4
0
0
0.070513
0
0
0
0
0
0
1
0.2
false
0
0
0
0.4
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
0
0
0
4
fd554d52691f4300524eb83c3a711288a3d0c950
155
py
Python
src/__init__.py
Nardri/rbac-service
c5cf6baf60e95a7790156c85e37c76c697efd585
[ "MIT" ]
null
null
null
src/__init__.py
Nardri/rbac-service
c5cf6baf60e95a7790156c85e37c76c697efd585
[ "MIT" ]
null
null
null
src/__init__.py
Nardri/rbac-service
c5cf6baf60e95a7790156c85e37c76c697efd585
[ "MIT" ]
null
null
null
"""Blueprint module""" from flask import Blueprint # instantiating the blue print rbac_blueprint = Blueprint('rbac-service', __name__, url_prefix='/v1')
22.142857
70
0.76129
19
155
5.894737
0.789474
0
0
0
0
0
0
0
0
0
0
0.007299
0.116129
155
6
71
25.833333
0.810219
0.296774
0
0
0
0
0.145631
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
1
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
0
0
1
0
4
b5d2cbeaf5785f2e2fbda62ab676efdf3cd543e2
93
py
Python
tests/unit/custom/test_table.py
matthewgdv/sqlhandler
b82fd159195f6bb63175bb8a8d81fc421e7d5835
[ "MIT" ]
null
null
null
tests/unit/custom/test_table.py
matthewgdv/sqlhandler
b82fd159195f6bb63175bb8a8d81fc421e7d5835
[ "MIT" ]
null
null
null
tests/unit/custom/test_table.py
matthewgdv/sqlhandler
b82fd159195f6bb63175bb8a8d81fc421e7d5835
[ "MIT" ]
null
null
null
# import pytest class TestTable: def test___new__(self): # synced assert True
13.285714
37
0.655914
11
93
5.090909
1
0
0
0
0
0
0
0
0
0
0
0
0.27957
93
6
38
15.5
0.835821
0.215054
0
0
0
0
0
0
0
0
0
0
0.333333
1
0.333333
false
0
0
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
1
0
0
0
0
1
0
0
4
b5e4b8f58ce0c5497c11f04fe4958e9651341919
61
py
Python
dvgutils/pipeline/observable.py
jagin/dvg-utils
a7d19ead75398b09a9f1e146464cf4227f06a476
[ "MIT" ]
7
2020-09-02T08:39:22.000Z
2021-10-13T18:13:04.000Z
dvgutils/pipeline/observable.py
jagin/dvg-utils
a7d19ead75398b09a9f1e146464cf4227f06a476
[ "MIT" ]
null
null
null
dvgutils/pipeline/observable.py
jagin/dvg-utils
a7d19ead75398b09a9f1e146464cf4227f06a476
[ "MIT" ]
null
null
null
from ..helpers import Observable observable = Observable()
12.2
32
0.770492
6
61
7.833333
0.666667
0.851064
0
0
0
0
0
0
0
0
0
0
0.147541
61
4
33
15.25
0.903846
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
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
0
0
1
0
0
0
0
4
bd01114fa4f05782588c0ed0171a87e55e343961
484
py
Python
test/DATA_FLOW/Descriptor/utils_test.py
globalSolutionsContinex/data_flow_driver
f02cf9552bb606cbef2197b08f0c37b9a898cca9
[ "MIT" ]
null
null
null
test/DATA_FLOW/Descriptor/utils_test.py
globalSolutionsContinex/data_flow_driver
f02cf9552bb606cbef2197b08f0c37b9a898cca9
[ "MIT" ]
null
null
null
test/DATA_FLOW/Descriptor/utils_test.py
globalSolutionsContinex/data_flow_driver
f02cf9552bb606cbef2197b08f0c37b9a898cca9
[ "MIT" ]
null
null
null
import DataFlow.Descriptor.utils as utils record = { "nombre": "nuñez buritica ana maira", "identidad": "30664743", "dv": "4" } s = lambda record: utils.return_format(record['nombre'] if utils.is_company(record['identidad'], record['dv']) else utils.get_name(record['nombre'], 0)) print(s(record)) print(utils.get_name(record['nombre'], 0)) print(utils.get_name(record['nombre'], 1)) print(utils.get_name(record['nombre'], 2)) print(utils.get_name(record['nombre'], 3))
32.266667
152
0.698347
70
484
4.728571
0.428571
0.253776
0.181269
0.271903
0.444109
0.444109
0.181269
0
0
0
0
0.032333
0.105372
484
14
153
34.571429
0.732102
0
0
0
0
0
0.200828
0
0
0
0
0
0
1
0
false
0
0.083333
0
0.083333
0.416667
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
0
0
1
0
4
1fbffab544bd6ea83202f5ecb1f373393deda4b1
482
py
Python
causal_world/metrics/__init__.py
michaelfeil/CausalWorld
ff866159ef0ee9c407893ae204e93eb98dd68be2
[ "MIT" ]
2
2021-09-22T08:20:12.000Z
2021-11-16T14:20:45.000Z
causal_world/metrics/__init__.py
michaelfeil/CausalWorld
ff866159ef0ee9c407893ae204e93eb98dd68be2
[ "MIT" ]
null
null
null
causal_world/metrics/__init__.py
michaelfeil/CausalWorld
ff866159ef0ee9c407893ae204e93eb98dd68be2
[ "MIT" ]
null
null
null
from causal_world.metrics.metric_base import BaseMetric from causal_world.metrics.mean_accumulated_reward_metric import \ MeanAccumulatedRewardMetric from causal_world.metrics.mean_full_integrated_fractional_success \ import MeanFullIntegratedFractionalSuccess from causal_world.metrics.mean_last_fractional_success import \ MeanLastFractionalSuccess from causal_world.metrics.mean_last_integrated_fractional_success import \ MeanLastIntegratedFractionalSuccess
34.428571
74
0.879668
50
482
8.08
0.4
0.123762
0.185644
0.272277
0.277228
0.148515
0
0
0
0
0
0
0.091286
482
13
75
37.076923
0.922374
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.555556
0
0.555556
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
1fc65f377efde5db6aedb28057a54fa3b930a2ed
208
py
Python
src/__init__.py
hoaphumanoid/twitter_bot
fc9f0823ed1b4396c46d543659e8f787bf336631
[ "MIT" ]
6
2016-01-16T17:55:51.000Z
2016-10-05T14:52:48.000Z
src/__init__.py
hoaphumanoid/twitter_bot
fc9f0823ed1b4396c46d543659e8f787bf336631
[ "MIT" ]
null
null
null
src/__init__.py
hoaphumanoid/twitter_bot
fc9f0823ed1b4396c46d543659e8f787bf336631
[ "MIT" ]
2
2018-05-16T19:26:20.000Z
2018-09-23T11:31:45.000Z
__title__ = 'Twitter bot' __version__ = '1.0' __author__ = 'Miguel Gonzalez-Fierro' __license__ = 'MIT license' __copyright__ = 'Copyright 2016 Miguel Gonzalez-Fierro' # Version synonym VERSION = __version__
26
55
0.774038
23
208
5.956522
0.652174
0.20438
0.291971
0
0
0
0
0
0
0
0
0.033149
0.129808
208
8
56
26
0.723757
0.072115
0
0
0
0
0.4375
0
0
0
0
0
0
1
0
false
0
0
0
0
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
0
0
0
0
0
4
1fccc40545531254974d43b6125bd87432eef806
303
py
Python
booleans_operators.py
CrazyJ36/python
4cff6e7240672a273d978521bb511065f45d4312
[ "MIT" ]
null
null
null
booleans_operators.py
CrazyJ36/python
4cff6e7240672a273d978521bb511065f45d4312
[ "MIT" ]
null
null
null
booleans_operators.py
CrazyJ36/python
4cff6e7240672a273d978521bb511065f45d4312
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # and, or, not if 1 < 2 and 1 < 3: print("true") else: print("false") if 1 < 0 or 1 > 2: print("true") else: print("false") if 1 != 2: print("true") if 1 != 2: print("true") if not 1 < 0: # "not <expr>" means false print("1 is not less than 0")
13.173913
41
0.518152
54
303
2.907407
0.388889
0.076433
0.076433
0.210191
0.490446
0.490446
0.33121
0
0
0
0
0.079439
0.293729
303
22
42
13.772727
0.654206
0.194719
0
0.714286
0
0
0.190871
0
0
0
0
0
0
1
0
true
0
0
0
0
0.5
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
1
0
4
1fe56d64876fff97bd6e7179c1bc2ed5eb449b3b
3,212
py
Python
convert/explode-dump.py
google/freebase-wikidata-converter
4e18711137030c41ee4ea558e2b7eb8292211b8d
[ "Apache-2.0" ]
57
2015-10-01T19:06:32.000Z
2022-03-06T13:40:08.000Z
convert/explode-dump.py
randyamiel/freebase-wikidata-converter
4e18711137030c41ee4ea558e2b7eb8292211b8d
[ "Apache-2.0" ]
null
null
null
convert/explode-dump.py
randyamiel/freebase-wikidata-converter
4e18711137030c41ee4ea558e2b7eb8292211b8d
[ "Apache-2.0" ]
23
2015-10-01T19:02:05.000Z
2021-07-12T12:34:13.000Z
""" Copyright 2015 Google Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ import gzip import sys filters = [ '<http://rdf.freebase.com/ns/common.notable_for.display_name>', '<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>', '<http://rdf.freebase.com/ns/type.object.type>', '<http://rdf.freebase.com/ns/type.type.instance>', '<http://rdf.freebase.com/ns/type.object.key>', '<http://www.w3.org/2000/01/rdf-schema#label>', '<http://rdf.freebase.com/ns/type.object.name>', '<http://rdf.freebase.com/ns/common.topic.topic_equivalent_webpage>', '<http://rdf.freebase.com/ns/common.topic.notable_for>', '<http://rdf.freebase.com/ns/common.notable_for.predicate>', '<http://rdf.freebase.com/ns/common.notable_for.notable_object>', '<http://rdf.freebase.com/ns/common.notable_for.object>', '<http://rdf.freebase.com/ns/common.topic.notable_types>', '<http://rdf.freebase.com/ns/common.topic.description>', '<http://rdf.freebase.com/key/dataworld.freeq>', '<http://rdf.freebase.com/ns/type.permission.controls>', '<http://rdf.freebase.com/ns/type.object.permission>', '<http://rdf.freebase.com/key/en>', '<http://rdf.freebase.com/ns/common.document.text>', '<http://rdf.freebase.com/ns/common.topic.article>', '<http://rdf.freebase.com/ns/common.topic.image>', '<http://rdf.freebase.com/ns/common.topic.alias>', '<http://rdf.freebase.com/ns/common.document.source_uri>', '<http://rdf.freebase.com/ns/dataworld.gardening_hint.last_referenced_by>', '<http://rdf.freebase.com/ns/type.object.id>', '<http://rdf.freebase.com/ns/dataworld.gardening_hint.replaced_by>', '<http://rdf.freebase.com/ns/freebase.object_hints.best_hrid>' ] linecount = 0 filtercount = 0 result = open(sys.argv[2], 'w') types = open(sys.argv[3], 'w') labels = open(sys.argv[4], 'w') for line in gzip.open(sys.argv[1]): linecount += 1 if linecount % 1000000 == 0 : print filtercount, linecount / 1000000 sub, pred, obj, dot = line.split("\t") if not (sub.startswith('<http://rdf.freebase.com/ns/m.') or sub.startswith('<http://rdf.freebase.com/ns/g.')): continue if pred == '<http://rdf.freebase.com/ns/type.object.type>': types.write(sub[28:-1] + "\t" + obj[24:-1] + "\n") continue if pred == '<http://rdf.freebase.com/ns/type.object.name>': labels.write(sub[28:-1] + "\t" + obj + "\n") continue if pred in filters: continue if pred.startswith('/fictional_universe'): continue if 'wikipedia' in pred: continue if 'topic_server' in pred: continue result.write(line) filtercount += 1 print filtercount, linecount result.close() types.close() labels.close() print "saved"
37.788235
112
0.687733
478
3,212
4.579498
0.317992
0.092736
0.198721
0.238465
0.460027
0.440841
0.405208
0.213796
0.040201
0.040201
0
0.019957
0.126401
3,212
84
113
38.238095
0.760157
0
0
0.111111
0
0.015873
0.611702
0
0
0
0
0
0
0
null
null
0
0.031746
null
null
0.047619
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
1
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
4
1f0202e25a3d2ab818e4bb1fee427c2978e3c41b
461
py
Python
cnlp/data/data_loaders/data_loader.py
pfchai/CNLP
0ef4a6e3b019c1472ba432ca9e9b2e074ca1c86f
[ "Apache-2.0" ]
null
null
null
cnlp/data/data_loaders/data_loader.py
pfchai/CNLP
0ef4a6e3b019c1472ba432ca9e9b2e074ca1c86f
[ "Apache-2.0" ]
null
null
null
cnlp/data/data_loaders/data_loader.py
pfchai/CNLP
0ef4a6e3b019c1472ba432ca9e9b2e074ca1c86f
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from cnlp.common.registrable import Registrable class DataLoader(Registrable): default_implementation = 'simple' def __len__(self): raise TypeError def __iter__(self): raise NotImplementedError def iter_instances(self): raise NotImplementedError def index_with(self, vocab): raise NotImplementedError def set_target_device(self, device): raise NotImplementedError
19.208333
47
0.689805
46
461
6.630435
0.586957
0.314754
0.265574
0.203279
0
0
0
0
0
0
0
0.002841
0.236443
461
23
48
20.043478
0.863636
0.045553
0
0.307692
0
0
0.013699
0
0
0
0
0
0
1
0.384615
false
0
0.076923
0
0.615385
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
0
0
0
0
4
1f0d46591886aad062f1440c5bceb182ba90a24f
86
py
Python
faker/providers/miscelleneous.py
kaflesudip/faker
e27fbf6744e730a34e57a3ad747290c8c36656d4
[ "MIT" ]
1
2016-12-06T15:07:50.000Z
2016-12-06T15:07:50.000Z
faker/providers/miscelleneous.py
kaflesudip/faker
e27fbf6744e730a34e57a3ad747290c8c36656d4
[ "MIT" ]
null
null
null
faker/providers/miscelleneous.py
kaflesudip/faker
e27fbf6744e730a34e57a3ad747290c8c36656d4
[ "MIT" ]
1
2021-03-27T01:40:50.000Z
2021-03-27T01:40:50.000Z
# coding=utf-8 # module provided just for backward compatibility from .misc import *
17.2
49
0.767442
12
86
5.5
1
0
0
0
0
0
0
0
0
0
0
0.013889
0.162791
86
4
50
21.5
0.902778
0.697674
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
0
0
0
4
1f1d17ad6b9921b494a933c0d05f17beb4b1b584
336
py
Python
pymux/panes.py
jonathanslenders/old-pymux
f5b0562ae880a0e0c26df0fa7954ae60dc92cc62
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
pymux/panes.py
jonathanslenders/old-pymux
f5b0562ae880a0e0c26df0fa7954ae60dc92cc62
[ "BSD-2-Clause-FreeBSD" ]
1
2016-08-10T22:36:09.000Z
2016-08-10T22:36:09.000Z
pymux/panes.py
jonathanslenders/old-pymux
f5b0562ae880a0e0c26df0fa7954ae60dc92cc62
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
from libpymux.panes import ExecPane import os class BashPane(ExecPane): def __init__(self, pane_executor, pymux_pane_env): super().__init__(pane_executor) self._pymux_pane_env = pymux_pane_env def _do_exec(self): os.environ['PYMUX_PANE'] = self._pymux_pane_env os.execv('/bin/bash', ['bash'])
25.846154
55
0.690476
46
336
4.543478
0.478261
0.215311
0.229665
0.15311
0
0
0
0
0
0
0
0
0.196429
336
12
56
28
0.774074
0
0
0
0
0
0.068657
0
0
0
0
0
0
1
0.222222
false
0
0.222222
0
0.555556
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
0
0
0
1
0
0
4
1f1e7b9611e9baa5e580ba625962adb1b7ac7e33
4,866
py
Python
src/tanuki/data_backend/data_backend.py
M-J-Murray/tanuki
cfd0dec1003651156e8d34eae191898b66765bc7
[ "BSD-3-Clause" ]
null
null
null
src/tanuki/data_backend/data_backend.py
M-J-Murray/tanuki
cfd0dec1003651156e8d34eae191898b66765bc7
[ "BSD-3-Clause" ]
null
null
null
src/tanuki/data_backend/data_backend.py
M-J-Murray/tanuki
cfd0dec1003651156e8d34eae191898b66765bc7
[ "BSD-3-Clause" ]
null
null
null
from __future__ import annotations from abc import abstractclassmethod, abstractmethod, abstractproperty from typing import ( TYPE_CHECKING, Any, Generator, Generic, Optional, Type, TypeVar, Union, ) import numpy as np from pandas import DataFrame from tanuki.data_store.data_type import DataType from tanuki.database.data_token import DataToken if TYPE_CHECKING: from tanuki.data_store.index.index import Index from tanuki.data_store.index.index_alias import IndexAlias from tanuki.data_store.query import Query B = TypeVar("B", bound="DataBackend") class LocIndexer(Generic[B]): @abstractmethod def __getitem__(self, item: Union[int, list, slice]) -> B: raise NotImplementedError() class ILocIndexer(Generic[B]): @abstractmethod def __getitem__(self, item: Union[Any, list, slice]) -> B: raise NotImplementedError() class DataBackend: @abstractmethod def is_link(self: B) -> bool: raise NotImplementedError() @abstractmethod def link_token(self: B) -> Optional[DataToken]: raise NotImplementedError() @abstractmethod def to_pandas(self) -> DataFrame: raise NotImplementedError() @abstractproperty def columns(self) -> list[str]: raise NotImplementedError() @abstractproperty def values(self) -> np.ndarray: raise NotImplementedError() @abstractproperty def dtypes(self) -> dict[str, DataType]: raise NotImplementedError() @abstractmethod def cast_columns(self, column_dtypes: dict[str, type]) -> DataBackend: raise NotImplementedError() @abstractmethod def to_dict(self, orient) -> dict[str, any]: raise NotImplementedError() @abstractproperty def index(self) -> Index: raise NotImplementedError() @abstractproperty def index_name(self) -> Union[str, list[str]]: raise NotImplementedError() @abstractproperty def loc(self: B) -> LocIndexer[B]: raise NotImplementedError() @abstractproperty def iloc(self: B) -> ILocIndexer[B]: raise NotImplementedError() @abstractmethod def equals(self, other: Any) -> bool: raise NotImplementedError() @abstractmethod def __eq__(self, other: Any) -> DataFrame: raise NotImplementedError() @abstractmethod def __ne__(self, other: Any) -> DataFrame: raise NotImplementedError() @abstractmethod def __gt__(self, other: Any) -> DataFrame: raise NotImplementedError() @abstractmethod def __ge__(self, other: Any) -> DataFrame: raise NotImplementedError() @abstractmethod def __lt__(self, other: Any) -> DataFrame: raise NotImplementedError() @abstractmethod def __le__(self, other: Any) -> DataFrame: raise NotImplementedError() @abstractmethod def __len__(self) -> int: raise NotImplementedError() @abstractmethod def __iter__(self) -> Generator[str, None, None]: raise NotImplementedError() @abstractmethod def iterrows(self) -> Generator[tuple[int, B], None, None]: raise NotImplementedError() @abstractmethod def itertuples(self, ignore_index: bool = False) -> Generator[tuple, None, None]: raise NotImplementedError() @abstractmethod def __getitem__(self, item: Union[str, list[bool]]) -> Any: raise NotImplementedError() @abstractmethod def getitems(self, item: list[str]) -> B: raise NotImplementedError() @abstractmethod def getmask(self, mask: list[bool]) -> B: raise NotImplementedError() @abstractmethod def query(self, query: Query) -> B: raise NotImplementedError() @abstractmethod def __setitem__(self, item: str, value: Any) -> None: raise NotImplementedError() @abstractmethod def get_index(self, index_alias: IndexAlias) -> Index: raise NotImplementedError() @abstractmethod def set_index(self: B, index: Union[Index, IndexAlias]) -> B: raise NotImplementedError() @abstractmethod def reset_index(self: B) -> B: raise NotImplementedError() @abstractmethod def append(self: B, new_backend: B, ignore_index: bool = False) -> B: raise NotImplementedError() @abstractmethod def drop_indices(self: B, indices: list[int]) -> B: raise NotImplementedError() @abstractclassmethod def concat(cls: Type[B], all_backends: list[B], ignore_index: bool = False) -> B: raise NotImplementedError() @abstractmethod def nunique(self: B) -> int: raise NotImplementedError() @abstractmethod def __str__(self: B) -> str: raise NotImplementedError() @abstractmethod def __repr__(self: B) -> str: raise NotImplementedError()
25.610526
85
0.666872
482
4,866
6.553942
0.207469
0.296296
0.336815
0.363406
0.541944
0.313707
0.186135
0.186135
0.039886
0.039886
0
0
0.233457
4,866
189
86
25.746032
0.846917
0
0
0.546099
0
0
0.002466
0
0
0
0
0
0
1
0.276596
false
0
0.070922
0
0.368794
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
0
0
0
0
4
1f37d707e6e41c618189f2b6c26576a54cc8d19e
1,121
py
Python
demo.py
vietbt/EVRPpp
76aa3549a6a2481fb01725d8d95bfb8c55537534
[ "Apache-2.0" ]
5
2021-07-21T04:14:08.000Z
2022-01-03T14:22:45.000Z
demo.py
vietbt/EVRPpp
76aa3549a6a2481fb01725d8d95bfb8c55537534
[ "Apache-2.0" ]
null
null
null
demo.py
vietbt/EVRPpp
76aa3549a6a2481fb01725d8d95bfb8c55537534
[ "Apache-2.0" ]
null
null
null
from env.evrp import EVRPEnv from utils.config import read_config import numpy as np from env.worker import VectorizedEVRP from utils.plot import convert_plt_to_numpy, convert_plt_to_tf, plot_tours from utils import try_import_tensorflow tf = try_import_tensorflow() if __name__ == "__main__": config = read_config("config.json") env = EVRPEnv(config.env_config) tours = [[1, 69, 85, 129, 119, 55, 13, 90, 66, 46, 62, 65, 45, 12, 101, 75, 82, 63, 97, 146, 19, 91, 26, 128], [1, 37, 17, 33, 8, 20, 86, 29, 134, 146, 48, 126, 34, 105, 133, 24, 22, 124, 84, 57, 92, 36, 98], [1, 116, 125, 49, 59, 47, 31, 122, 145, 88, 99, 32, 7, 80, 61, 112, 2, 108, 6, 42, 94, 117, 137], [1, 79, 87, 9, 73, 103, 54, 111, 115, 44, 3, 18, 127], [1, 121, 143, 56, 138, 83, 15, 38, 123, 78, 23, 120, 81, 141, 147, 16, 28, 107, 25, 67, 100, 74, 89, 72, 10, 131], [1, 14, 110, 144, 51, 52, 39, 104, 64, 113, 27, 76, 114, 11, 135, 93, 109, 118, 102, 21, 53, 41, 71, 5], [1, 50, 58, 96, 140, 147, 142, 132, 70, 40, 30, 43, 95, 4, 77, 130, 106, 139, 35, 68, 136, 60]] plt = plot_tours(env, tours, 123) plt.show()
74.733333
682
0.607493
221
1,121
2.977376
0.782805
0.041033
0.036474
0
0
0
0
0
0
0
0
0.393665
0.211418
1,121
14
683
80.071429
0.350679
0
0
0
0
0
0.017164
0
0
0
0
0
0
1
0
false
0
0.538462
0
0.538462
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
1f3860ea31ccd6021fe828d99eee79a71f6746ee
186
py
Python
e9/9.py
neutronest/eulerproject-douby
0f3d6d01ef3a12a7a8f0c92c12302d154c3bb870
[ "MIT" ]
4
2015-11-05T09:02:07.000Z
2021-08-06T15:24:30.000Z
e9/9.py
neutronest/eulerproject-douby
0f3d6d01ef3a12a7a8f0c92c12302d154c3bb870
[ "MIT" ]
null
null
null
e9/9.py
neutronest/eulerproject-douby
0f3d6d01ef3a12a7a8f0c92c12302d154c3bb870
[ "MIT" ]
2
2015-02-10T05:29:14.000Z
2016-05-02T14:54:52.000Z
for i in xrange(1000): for j in xrange(1000 - i): k = 1000 - i - j if i and j and k and i * i + j * j == k * k: print i, j, k print i * j * k
26.571429
52
0.408602
36
186
2.111111
0.277778
0.105263
0.315789
0.210526
0.223684
0
0
0
0
0
0
0.123711
0.478495
186
6
53
31
0.659794
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0.333333
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
1
0
0
0
0
0
0
0
0
4
1f3fb0a4a149ea0cf68111e74441dcfdcd474b49
535
py
Python
bestbuyapi/api/stores.py
lv10/bestbuyapi
a424473e94fbcd21dd7a93d46233000c856188e8
[ "MIT" ]
10
2015-11-19T18:06:23.000Z
2022-03-22T20:29:18.000Z
bestbuyapi/api/stores.py
lv10/bestbuyapi
a424473e94fbcd21dd7a93d46233000c856188e8
[ "MIT" ]
2
2020-01-29T00:43:40.000Z
2021-01-27T18:32:15.000Z
bestbuyapi/api/stores.py
lv10/bestbuyapi
a424473e94fbcd21dd7a93d46233000c856188e8
[ "MIT" ]
2
2020-01-09T09:15:48.000Z
2020-12-26T11:02:49.000Z
from ..api.base import BestBuyCore from ..constants import STORES_API from ..utils.exceptions import BestBuyStoresAPIError class BestBuyStoresAPI(BestBuyCore): def _api_name(self): return STORES_API # ================================= # Search by store by name or id # ================================= def search_by_id(self, store_id, **kwargs): """Searches the stores api given an id""" payload = {"query": f"storeId={store_id}", "params": kwargs} return self._call(payload)
29.722222
68
0.586916
59
535
5.169492
0.542373
0.088525
0
0
0
0
0
0
0
0
0
0
0.2
535
17
69
31.470588
0.712617
0.254206
0
0
0
0
0.074169
0
0
0
0
0
0
1
0.222222
false
0
0.333333
0.111111
0.888889
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
1
1
0
0
4