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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d4041861e345b8a9af2026d13d2e02b8bead278c
| 183
|
py
|
Python
|
python/pyramid.py
|
angelopassaro/Hacktoberfest-1
|
21f90f5d49efba9b1a27f4d9b923f5017ab43f0e
|
[
"Apache-2.0"
] | 1
|
2020-10-06T01:20:07.000Z
|
2020-10-06T01:20:07.000Z
|
python/pyramid.py
|
angelopassaro/Hacktoberfest-1
|
21f90f5d49efba9b1a27f4d9b923f5017ab43f0e
|
[
"Apache-2.0"
] | null | null | null |
python/pyramid.py
|
angelopassaro/Hacktoberfest-1
|
21f90f5d49efba9b1a27f4d9b923f5017ab43f0e
|
[
"Apache-2.0"
] | null | null | null |
num_rows = int(input("Enter the number of rows"));
for i in range(0, num_rows):
for j in range(0, num_rows-(i-1)):
print(end=" ")
for j in range(0, i+1):
print("*", end=" ")
print()
| 22.875
| 50
| 0.617486
| 37
| 183
| 2.972973
| 0.459459
| 0.190909
| 0.218182
| 0.2
| 0.418182
| 0
| 0
| 0
| 0
| 0
| 0
| 0.032468
| 0.15847
| 183
| 7
| 51
| 26.142857
| 0.681818
| 0
| 0
| 0
| 0
| 0
| 0.147541
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0.428571
| 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
| 1
|
0
| 5
|
d42e620d6785d633e84cd940018cdda01ae9241c
| 83
|
py
|
Python
|
deepctr/__init__.py
|
shenweichen/mlmodels
|
9564e05ce9b33d6bf2a15779ef6a42831869c390
|
[
"Apache-2.0"
] | null | null | null |
deepctr/__init__.py
|
shenweichen/mlmodels
|
9564e05ce9b33d6bf2a15779ef6a42831869c390
|
[
"Apache-2.0"
] | null | null | null |
deepctr/__init__.py
|
shenweichen/mlmodels
|
9564e05ce9b33d6bf2a15779ef6a42831869c390
|
[
"Apache-2.0"
] | null | null | null |
from .utils import check_version
__version__ = '0.9.1'
check_version(__version__)
| 16.6
| 32
| 0.795181
| 12
| 83
| 4.666667
| 0.666667
| 0.428571
| 0.678571
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.040541
| 0.108434
| 83
| 4
| 33
| 20.75
| 0.716216
| 0
| 0
| 0
| 0
| 0
| 0.060241
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 0.333333
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
d46a0ac0a91861600e428d1437efb6d38ceb7ab4
| 75
|
py
|
Python
|
virtual/lib/python3.7/site-packages/validate_email/__init__.py
|
mmbukane-shy6/PITCH
|
e460f7a9d999282b90e1d39c71bd8a60ce6f242e
|
[
"MIT"
] | null | null | null |
virtual/lib/python3.7/site-packages/validate_email/__init__.py
|
mmbukane-shy6/PITCH
|
e460f7a9d999282b90e1d39c71bd8a60ce6f242e
|
[
"MIT"
] | null | null | null |
virtual/lib/python3.7/site-packages/validate_email/__init__.py
|
mmbukane-shy6/PITCH
|
e460f7a9d999282b90e1d39c71bd8a60ce6f242e
|
[
"MIT"
] | null | null | null |
from .validate_email import validate_email, validate_email_or_fail # NOQA
| 37.5
| 74
| 0.853333
| 11
| 75
| 5.363636
| 0.636364
| 0.661017
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.106667
| 75
| 1
| 75
| 75
| 0.880597
| 0.053333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
2e36cd917aa7e6e89b8401d12123403afc400fc4
| 388
|
py
|
Python
|
pos_dict.py
|
henryhust/Coreference-Chinese
|
21b8edba978a3e3f0fe055d3d3f2269f6616593b
|
[
"Apache-2.0"
] | null | null | null |
pos_dict.py
|
henryhust/Coreference-Chinese
|
21b8edba978a3e3f0fe055d3d3f2269f6616593b
|
[
"Apache-2.0"
] | null | null | null |
pos_dict.py
|
henryhust/Coreference-Chinese
|
21b8edba978a3e3f0fe055d3d3f2269f6616593b
|
[
"Apache-2.0"
] | null | null | null |
POS_DICT = {'UNK': 0, 'x': 1, 'JJ': 2, 'DEG': 3, 'NN': 4, 'PU': 5, 'VV': 6, 'NR': 7, 'LC': 8, 'VA': 9, 'AD': 10, 'P': 11, 'PN': 12, 'CD': 13, 'M': 14, 'CC': 15, 'ETC': 16, 'VC': 17, 'DEC': 18, 'DT': 19, 'AS': 20, 'NT': 21, 'SP': 22, 'IJ': 23, 'DEV': 24, 'DER': 25, 'MSP': 26, 'VE': 27, 'BA': 28, 'OD': 29, 'SB': 30, 'CS': 31, 'LB': 32, 'ON': 33, 'X': 34, 'FW': 35, 'INF': 36, 'URL': 37}
| 129.333333
| 386
| 0.399485
| 78
| 388
| 1.974359
| 0.987179
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.213592
| 0.203608
| 388
| 2
| 387
| 194
| 0.28479
| 0
| 0
| 0
| 0
| 0
| 0.209302
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
2e4198128a5e9fbd00a0d9458a4669d81f9a8650
| 74
|
py
|
Python
|
news_processor/managers.py
|
sharif-42/News_Aggregation_System
|
8df4b562e57410bf059bb38367a14ac5ba12fb00
|
[
"MIT"
] | null | null | null |
news_processor/managers.py
|
sharif-42/News_Aggregation_System
|
8df4b562e57410bf059bb38367a14ac5ba12fb00
|
[
"MIT"
] | 4
|
2021-03-19T02:55:45.000Z
|
2021-06-10T19:08:12.000Z
|
news_processor/managers.py
|
sharif-42/News_Aggregation_System
|
8df4b562e57410bf059bb38367a14ac5ba12fb00
|
[
"MIT"
] | null | null | null |
from django.db import models
class NewsManager(models.Manager):
pass
| 14.8
| 34
| 0.77027
| 10
| 74
| 5.7
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.162162
| 74
| 4
| 35
| 18.5
| 0.919355
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.333333
| 0.333333
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
|
0
| 5
|
2e6b033218c70d3590388e4f7b168281db91b350
| 50
|
py
|
Python
|
src/models/__init__.py
|
PaulRitter/dualis-scanner
|
cd4e823cbe7d4c2c1fd58691b7a51cdce3225f3a
|
[
"MIT"
] | null | null | null |
src/models/__init__.py
|
PaulRitter/dualis-scanner
|
cd4e823cbe7d4c2c1fd58691b7a51cdce3225f3a
|
[
"MIT"
] | 1
|
2021-11-12T15:47:57.000Z
|
2021-11-12T15:47:57.000Z
|
src/models/__init__.py
|
PaulRitter/dualis-scanner
|
cd4e823cbe7d4c2c1fd58691b7a51cdce3225f3a
|
[
"MIT"
] | null | null | null |
from .course import Course
from .exam import Exam
| 16.666667
| 26
| 0.8
| 8
| 50
| 5
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.16
| 50
| 2
| 27
| 25
| 0.952381
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
cf292f995b5edd870d4736b2be1ecd0770e18075
| 253
|
py
|
Python
|
python/testData/highlighting/fStringMissingRightBrace.py
|
fduminy/intellij-community
|
fe13dc9ddb7f0f65397325ded25ecb239675eb59
|
[
"Apache-2.0"
] | 2
|
2018-12-29T09:53:39.000Z
|
2018-12-29T09:53:42.000Z
|
python/testData/highlighting/fStringMissingRightBrace.py
|
tnorbye/intellij-community
|
f01cf262fc196bf4dbb99e20cd937dee3705a7b6
|
[
"Apache-2.0"
] | null | null | null |
python/testData/highlighting/fStringMissingRightBrace.py
|
tnorbye/intellij-community
|
f01cf262fc196bf4dbb99e20cd937dee3705a7b6
|
[
"Apache-2.0"
] | 1
|
2018-10-03T12:35:06.000Z
|
2018-10-03T12:35:06.000Z
|
f'{42}'
f'{42!r}'
f'{42!r:03}'
f'{42:03}'
f'{42!r:{y}.{z}}'
f'<error descr="'}' is expected">{</error>'
f'<error descr="'}' is expected">{42:{</error>'
f'<error descr="'}' is expected">{42!r:{</error>'
f'{{'
f'{{<error descr="'}' is expected">{</error>'
| 25.3
| 49
| 0.529644
| 45
| 253
| 2.977778
| 0.222222
| 0.11194
| 0.328358
| 0.38806
| 0.768657
| 0.768657
| 0.41791
| 0
| 0
| 0
| 0
| 0.077586
| 0.083004
| 253
| 10
| 50
| 25.3
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0.795276
| 0.188976
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 1
| 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
| 5
|
cf5503fb395be95eba5325070e8ffae363a4c1da
| 160
|
py
|
Python
|
tests/test_A001246.py
|
eliott02022000/oeis
|
5a2245660fd91012f1bddad99698bdc4a80cebe0
|
[
"MIT"
] | null | null | null |
tests/test_A001246.py
|
eliott02022000/oeis
|
5a2245660fd91012f1bddad99698bdc4a80cebe0
|
[
"MIT"
] | null | null | null |
tests/test_A001246.py
|
eliott02022000/oeis
|
5a2245660fd91012f1bddad99698bdc4a80cebe0
|
[
"MIT"
] | null | null | null |
from oeis import A001246
def test_catalan():
test = A001246(3, 20)
assert 1 in test
assert 4 in test
assert 25 in test
assert 196 in test
| 16
| 25
| 0.65625
| 27
| 160
| 3.851852
| 0.555556
| 0.230769
| 0.346154
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.196429
| 0.3
| 160
| 9
| 26
| 17.777778
| 0.732143
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.571429
| 1
| 0.142857
| false
| 0
| 0.142857
| 0
| 0.285714
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
cf7625d5cc732461a5bd35b797ad32d771e973cc
| 127
|
py
|
Python
|
dummy.py
|
zkry/stalemoves
|
72a3dc36a1958f044a5d0a7413ec8fe4125cd139
|
[
"MIT"
] | null | null | null |
dummy.py
|
zkry/stalemoves
|
72a3dc36a1958f044a5d0a7413ec8fe4125cd139
|
[
"MIT"
] | null | null | null |
dummy.py
|
zkry/stalemoves
|
72a3dc36a1958f044a5d0a7413ec8fe4125cd139
|
[
"MIT"
] | null | null | null |
version https://git-lfs.github.com/spec/v1
oid sha256:e0eb8e76ed1915414c3c19aa95b66dc48bdadf2f7ccf750c45e7882e61cd3030
size 41
| 31.75
| 75
| 0.88189
| 13
| 127
| 8.615385
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.355372
| 0.047244
| 127
| 3
| 76
| 42.333333
| 0.570248
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
d841e449f263d5e081e55b251d3a3b38b11d6fda
| 147
|
py
|
Python
|
generalfile/__init__.py
|
Mandera/generalfile
|
5e476a1c075fa072c7e52e62455feeb78b9bb298
|
[
"MIT"
] | 1
|
2021-02-10T11:22:16.000Z
|
2021-02-10T11:22:16.000Z
|
generalfile/__init__.py
|
Mandera/generalfile
|
5e476a1c075fa072c7e52e62455feeb78b9bb298
|
[
"MIT"
] | null | null | null |
generalfile/__init__.py
|
Mandera/generalfile
|
5e476a1c075fa072c7e52e62455feeb78b9bb298
|
[
"MIT"
] | null | null | null |
from generalfile.path import Path
from generalfile.errors import CaseSensitivityError, InvalidCharacterError
Path.get_lock_dir().create_folder()
| 24.5
| 74
| 0.857143
| 17
| 147
| 7.235294
| 0.705882
| 0.243902
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.081633
| 147
| 5
| 75
| 29.4
| 0.911111
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.666667
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
d8461a57d208854eee43658900e97f82dbd1890e
| 2,099
|
py
|
Python
|
pf/isbn/test_isbn.py
|
JonJagger/two-day-courses
|
3d447df40be3155838d638555237ec56df76e682
|
[
"CC-BY-4.0"
] | 49
|
2015-01-14T11:59:18.000Z
|
2021-12-17T08:29:28.000Z
|
pf/isbn/test_isbn.py
|
JonJagger/two-day-courses
|
3d447df40be3155838d638555237ec56df76e682
|
[
"CC-BY-4.0"
] | 4
|
2015-01-13T10:12:34.000Z
|
2018-06-17T07:31:55.000Z
|
pf/isbn/test_isbn.py
|
JonJagger/two-day-courses
|
3d447df40be3155838d638555237ec56df76e682
|
[
"CC-BY-4.0"
] | 13
|
2015-01-12T11:47:49.000Z
|
2019-11-21T01:20:32.000Z
|
#
# test_isbn.py - model answer for the isbn exercise
#
from isbn import is_valid_isbn
import unittest
class Test_ISBN_13(unittest.TestCase):
def test_valid_isbn(self):
self.assertTrue(is_valid_isbn('9780470059029'))
self.assertTrue(is_valid_isbn('978 0 471 48648 0'))
self.assertTrue(is_valid_isbn('978-0596809485'))
self.assertTrue(is_valid_isbn('978-0-13-149505-0'))
self.assertTrue(is_valid_isbn('978-0-262-13472-9'))
def test_invalid_length(self):
self.assertFalse(is_valid_isbn('978047005902'))
self.assertFalse(is_valid_isbn(''))
self.assertFalse(is_valid_isbn('978-0596809485-123123'))
def test_invalid_characters(self):
self.assertFalse(is_valid_isbn('a780470059029'))
self.assertFalse(is_valid_isbn('978047005902_'))
self.assertFalse(is_valid_isbn('978+0470059029'))
self.assertFalse(is_valid_isbn('978047005902_9'))
def test_invalid_check_digit(self):
self.assertFalse(is_valid_isbn('9780470059020'))
self.assertFalse(is_valid_isbn('978 0 471 48648 1'))
class Test_ISBN_10(unittest.TestCase):
def test_valid_isbn(self):
self.assertTrue(is_valid_isbn('0471958697'))
self.assertTrue(is_valid_isbn('0 471 60695 2'))
self.assertTrue(is_valid_isbn('0-470-84525-2'))
self.assertTrue(is_valid_isbn('0-321-14653-0'))
self.assertTrue(is_valid_isbn('0-821-14653-X'))
def test_invalid_length(self):
self.assertFalse(is_valid_isbn('123123978047005902'))
self.assertFalse(is_valid_isbn(''))
self.assertFalse(is_valid_isbn('978'))
def test_invalid_characters(self):
self.assertFalse(is_valid_isbn('a471958697'))
self.assertFalse(is_valid_isbn('047195869_'))
self.assertFalse(is_valid_isbn('04719X8697'))
def test_invalid_check_digit(self):
self.assertFalse(is_valid_isbn('0471958698'))
self.assertFalse(is_valid_isbn('0 471 60695 1'))
self.assertFalse(is_valid_isbn('0-470-84525-X'))
if __name__ == '__main__':
unittest.main()
| 34.409836
| 64
| 0.702716
| 281
| 2,099
| 4.921708
| 0.209964
| 0.201735
| 0.230658
| 0.286334
| 0.790311
| 0.73825
| 0.597252
| 0.451193
| 0.451193
| 0.451193
| 0
| 0.173563
| 0.171034
| 2,099
| 60
| 65
| 34.983333
| 0.621264
| 0.023344
| 0
| 0.238095
| 0
| 0
| 0.172043
| 0.010264
| 0
| 0
| 0
| 0
| 0.666667
| 1
| 0.190476
| false
| 0
| 0.047619
| 0
| 0.285714
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 1
| 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
| 5
|
d8d205788e2fc11b7b9365c4c77c323d0fb664ce
| 68
|
py
|
Python
|
lidardet/datasets/__init__.py
|
Jiaolong/trajectory-prediction
|
3fd4e6253b44dfdc86e7c08e93c002baf66f2e46
|
[
"Apache-2.0"
] | 6
|
2021-05-10T09:42:01.000Z
|
2022-01-04T08:03:42.000Z
|
lidardet/datasets/__init__.py
|
Jiaolong/trajectory-prediction
|
3fd4e6253b44dfdc86e7c08e93c002baf66f2e46
|
[
"Apache-2.0"
] | 3
|
2021-08-16T02:19:10.000Z
|
2022-01-10T02:05:48.000Z
|
lidardet/datasets/__init__.py
|
Jiaolong/trajectory-prediction
|
3fd4e6253b44dfdc86e7c08e93c002baf66f2e46
|
[
"Apache-2.0"
] | 1
|
2021-07-15T00:51:58.000Z
|
2021-07-15T00:51:58.000Z
|
from .trajectory import MTPDataset, CoverNetDataset, HeatMapDataset
| 34
| 67
| 0.867647
| 6
| 68
| 9.833333
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.088235
| 68
| 1
| 68
| 68
| 0.951613
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
d8fcaf3bf3f6020c7c4a84b7d7830e78fd57222f
| 95
|
py
|
Python
|
app_routes/threads/thread_id/messages/message_id/__init__.py
|
kskarbinski/threads-api
|
c144c1cb51422095922310d278f80e4996c10ea0
|
[
"MIT"
] | null | null | null |
app_routes/threads/thread_id/messages/message_id/__init__.py
|
kskarbinski/threads-api
|
c144c1cb51422095922310d278f80e4996c10ea0
|
[
"MIT"
] | null | null | null |
app_routes/threads/thread_id/messages/message_id/__init__.py
|
kskarbinski/threads-api
|
c144c1cb51422095922310d278f80e4996c10ea0
|
[
"MIT"
] | null | null | null |
from .threads_thread_id_messages_message_id_route import ThreadsThreadIdMessagesMessageIdRoute
| 47.5
| 94
| 0.947368
| 10
| 95
| 8.4
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.042105
| 95
| 1
| 95
| 95
| 0.923077
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
2b0404431306965b2d0e61784c41882a3d80e633
| 105
|
py
|
Python
|
usbgen/usb/__init__.py
|
matematik7/usbgen
|
ba22e77ca90b31a0cd52b2982bd8cb00717d387a
|
[
"MIT"
] | null | null | null |
usbgen/usb/__init__.py
|
matematik7/usbgen
|
ba22e77ca90b31a0cd52b2982bd8cb00717d387a
|
[
"MIT"
] | 1
|
2019-08-13T15:50:14.000Z
|
2019-12-09T03:10:41.000Z
|
usbgen/usb/__init__.py
|
matematik7/usbgen
|
ba22e77ca90b31a0cd52b2982bd8cb00717d387a
|
[
"MIT"
] | null | null | null |
from constants import *
from descriptors import *
from defaults import defaults
import video
import cdc
| 15
| 29
| 0.819048
| 14
| 105
| 6.142857
| 0.5
| 0.232558
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.161905
| 105
| 6
| 30
| 17.5
| 0.977273
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
2b3e248ba0f107e47a645830f7bdeb668801237c
| 122
|
py
|
Python
|
mysite/polls/admin.py
|
mtlberri/djtutorial
|
189348dfc7072065da52d53dbc88f6edfb8cdce5
|
[
"MIT"
] | null | null | null |
mysite/polls/admin.py
|
mtlberri/djtutorial
|
189348dfc7072065da52d53dbc88f6edfb8cdce5
|
[
"MIT"
] | null | null | null |
mysite/polls/admin.py
|
mtlberri/djtutorial
|
189348dfc7072065da52d53dbc88f6edfb8cdce5
|
[
"MIT"
] | null | null | null |
from django.contrib import admin
# Register your models here.
from.models import Question
admin.site.register(Question)
| 17.428571
| 32
| 0.811475
| 17
| 122
| 5.823529
| 0.647059
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.122951
| 122
| 6
| 33
| 20.333333
| 0.925234
| 0.213115
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.666667
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
2b74d0e75e330f7b9d67f1c678ed8f1d9f66617d
| 30
|
py
|
Python
|
anycsv/__init__.py
|
sebneu/anycsv
|
b8ad7b5750929923b529fc0637f4f9058c090e62
|
[
"MIT"
] | 6
|
2016-10-20T01:57:13.000Z
|
2021-07-21T00:33:51.000Z
|
anycsv/__init__.py
|
sebneu/anycsv
|
b8ad7b5750929923b529fc0637f4f9058c090e62
|
[
"MIT"
] | 1
|
2017-04-15T05:24:09.000Z
|
2017-05-19T19:39:15.000Z
|
anycsv/__init__.py
|
sebneu/anycsv
|
b8ad7b5750929923b529fc0637f4f9058c090e62
|
[
"MIT"
] | 8
|
2016-06-12T16:27:44.000Z
|
2019-03-26T20:32:21.000Z
|
from csv_parser import reader
| 15
| 29
| 0.866667
| 5
| 30
| 5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.133333
| 30
| 1
| 30
| 30
| 0.961538
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
9928152102499ae0a7dc4a0037a2891e2e703510
| 92
|
py
|
Python
|
test/cases/original/basic_created_by.py
|
johnlinp/rrcrrc
|
6cf12492eb28e128be4e7c99baf58b941402d1cc
|
[
"BSD-3-Clause"
] | null | null | null |
test/cases/original/basic_created_by.py
|
johnlinp/rrcrrc
|
6cf12492eb28e128be4e7c99baf58b941402d1cc
|
[
"BSD-3-Clause"
] | null | null | null |
test/cases/original/basic_created_by.py
|
johnlinp/rrcrrc
|
6cf12492eb28e128be4e7c99baf58b941402d1cc
|
[
"BSD-3-Clause"
] | null | null | null |
import sys
# Created by John on 4/6/89.
def basic_created_by ():
# do some cool things
| 15.333333
| 28
| 0.684783
| 17
| 92
| 3.588235
| 0.882353
| 0.295082
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.056338
| 0.228261
| 92
| 5
| 29
| 18.4
| 0.802817
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.5
| null | null | 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
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
992eab7cfe01a30b4028dd1e1fb01d94f6009d53
| 57
|
py
|
Python
|
Tkinter Library/test.py
|
ssergiuk/codes
|
ea1dea9cf3985228dacb02d31de01bc929fda939
|
[
"MIT"
] | null | null | null |
Tkinter Library/test.py
|
ssergiuk/codes
|
ea1dea9cf3985228dacb02d31de01bc929fda939
|
[
"MIT"
] | null | null | null |
Tkinter Library/test.py
|
ssergiuk/codes
|
ea1dea9cf3985228dacb02d31de01bc929fda939
|
[
"MIT"
] | null | null | null |
from backend import *
print(search(year = "1918"))
| 11.4
| 29
| 0.631579
| 7
| 57
| 5.142857
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.090909
| 0.22807
| 57
| 4
| 30
| 14.25
| 0.727273
| 0
| 0
| 0
| 0
| 0
| 0.075472
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 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
| 1
| 0
| 0
| 1
|
0
| 5
|
995bc6fa75036fb338d5b9564fd231a5a20eeb51
| 110
|
py
|
Python
|
star_resty/__init__.py
|
lazy-labs/star_resty
|
e7f37d63b740e77bf65d72f94b840efcb893cace
|
[
"BSD-3-Clause"
] | 3
|
2019-08-23T10:55:54.000Z
|
2021-02-24T18:55:34.000Z
|
star_resty/__init__.py
|
slv0/star_resty
|
e7f37d63b740e77bf65d72f94b840efcb893cace
|
[
"BSD-3-Clause"
] | null | null | null |
star_resty/__init__.py
|
slv0/star_resty
|
e7f37d63b740e77bf65d72f94b840efcb893cace
|
[
"BSD-3-Clause"
] | null | null | null |
from .apidocs import setup_spec
from .method import *
from .operation import Operation
from .payload import *
| 22
| 32
| 0.8
| 15
| 110
| 5.8
| 0.533333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.145455
| 110
| 4
| 33
| 27.5
| 0.925532
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
995f6be3be6cdfd0552383f18ac68f2aa021462a
| 11,148
|
py
|
Python
|
tests/core/p2p-proto/bcc/test_requests.py
|
renaynay/trinity
|
b85f37281b21c00dce91b7c61ba018788467c270
|
[
"MIT"
] | 3
|
2019-06-17T13:59:20.000Z
|
2021-05-02T22:09:13.000Z
|
tests/core/p2p-proto/bcc/test_requests.py
|
renaynay/trinity
|
b85f37281b21c00dce91b7c61ba018788467c270
|
[
"MIT"
] | null | null | null |
tests/core/p2p-proto/bcc/test_requests.py
|
renaynay/trinity
|
b85f37281b21c00dce91b7c61ba018788467c270
|
[
"MIT"
] | 2
|
2019-12-14T02:52:32.000Z
|
2021-02-18T23:04:44.000Z
|
import pytest
import asyncio
from async_generator import asynccontextmanager
import ssz
from p2p.peer import (
MsgBuffer,
)
from eth2.beacon.types.blocks import (
BeaconBlock,
)
from trinity.constants import TO_NETWORKING_BROADCAST_CONFIG
from trinity.protocol.bcc.commands import (
BeaconBlocks,
)
from trinity.protocol.bcc.events import GetBeaconBlocksEvent
from trinity.protocol.bcc.servers import BCCRequestServer
from trinity.protocol.bcc.peer import BCCPeerPoolEventServer
from trinity.tools.bcc_factories import (
BeaconBlockFactory,
BeaconContextFactory,
AsyncBeaconChainDBFactory,
BCCPeerPoolFactory,
BCCPeerPairFactory,
)
from tests.core.integration_test_helpers import (
run_peer_pool_event_server,
)
from eth2.beacon.fork_choice.higher_slot import higher_slot_scoring
from eth2.beacon.state_machines.forks.serenity import SERENITY_CONFIG
@asynccontextmanager
async def get_request_server_setup(request, event_loop, event_bus, chain_db):
genesis = await chain_db.coro_get_canonical_block_by_slot(
SERENITY_CONFIG.GENESIS_SLOT,
BeaconBlock,
)
alice_chain_db = AsyncBeaconChainDBFactory(blocks=(genesis,))
alice_context = BeaconContextFactory(chain_db=alice_chain_db)
bob_context = BeaconContextFactory(chain_db=chain_db)
peer_pair = BCCPeerPairFactory(
alice_peer_context=alice_context,
bob_peer_context=bob_context,
event_bus=event_bus,
)
async with peer_pair as (alice, bob):
async with BCCPeerPoolFactory.run_for_peer(bob) as bob_peer_pool: # noqa: E501
response_buffer = MsgBuffer()
alice.add_subscriber(response_buffer)
async with run_peer_pool_event_server(
event_bus, bob_peer_pool, handler_type=BCCPeerPoolEventServer
):
bob_request_server = BCCRequestServer(
event_bus, TO_NETWORKING_BROADCAST_CONFIG, bob_context.chain_db)
asyncio.ensure_future(bob_request_server.run())
await event_bus.wait_until_all_endpoints_subscribed_to(GetBeaconBlocksEvent)
def finalizer():
event_loop.run_until_complete(bob_request_server.cancel())
request.addfinalizer(finalizer)
yield alice, response_buffer
@pytest.mark.asyncio
async def test_get_single_block_by_slot(request, event_loop, event_bus):
block = BeaconBlockFactory()
chain_db = AsyncBeaconChainDBFactory(blocks=(block,))
async with get_request_server_setup(
request, event_loop, event_bus, chain_db
) as (alice, response_buffer):
alice.sub_proto.send_get_blocks(block.signing_root, 1, request_id=5)
response = await response_buffer.msg_queue.get()
assert isinstance(response.command, BeaconBlocks)
assert response.payload == {
"request_id": 5,
"encoded_blocks": (ssz.encode(block),),
}
@pytest.mark.asyncio
async def test_get_single_block_by_root(request, event_loop, event_bus):
block = BeaconBlockFactory()
chain_db = AsyncBeaconChainDBFactory(blocks=(block,))
async with get_request_server_setup(
request, event_loop, event_bus, chain_db
) as (alice, response_buffer):
alice.sub_proto.send_get_blocks(block.slot, 1, request_id=5)
response = await response_buffer.msg_queue.get()
assert isinstance(response.command, BeaconBlocks)
assert response.payload == {
"request_id": 5,
"encoded_blocks": (ssz.encode(block),),
}
@pytest.mark.asyncio
async def test_get_no_blocks(request, event_loop, event_bus):
block = BeaconBlockFactory()
chain_db = AsyncBeaconChainDBFactory(blocks=(block,))
async with get_request_server_setup(
request, event_loop, event_bus, chain_db
) as (alice, response_buffer):
alice.sub_proto.send_get_blocks(block.slot, 0, request_id=5)
response = await response_buffer.msg_queue.get()
assert isinstance(response.command, BeaconBlocks)
assert response.payload == {
"request_id": 5,
"encoded_blocks": (),
}
@pytest.mark.asyncio
async def test_get_unknown_block_by_slot(request, event_loop, event_bus):
block = BeaconBlockFactory()
chain_db = AsyncBeaconChainDBFactory(blocks=(block,))
async with get_request_server_setup(
request, event_loop, event_bus, chain_db
) as (alice, response_buffer):
alice.sub_proto.send_get_blocks(block.slot + 100, 1, request_id=5)
response = await response_buffer.msg_queue.get()
assert isinstance(response.command, BeaconBlocks)
assert response.payload == {
"request_id": 5,
"encoded_blocks": (),
}
@pytest.mark.asyncio
async def test_get_unknown_block_by_root(request, event_loop, event_bus):
block = BeaconBlockFactory()
chain_db = AsyncBeaconChainDBFactory(blocks=(block,))
async with get_request_server_setup(
request, event_loop, event_bus, chain_db
) as (alice, response_buffer):
alice.sub_proto.send_get_blocks(b"\x00" * 32, 1, request_id=5)
response = await response_buffer.msg_queue.get()
assert isinstance(response.command, BeaconBlocks)
assert response.payload == {
"request_id": 5,
"encoded_blocks": (),
}
@pytest.mark.asyncio
async def test_get_canonical_block_range_by_slot(request, event_loop, event_bus):
chain_db = AsyncBeaconChainDBFactory(blocks=())
genesis = BeaconBlockFactory()
base_branch = BeaconBlockFactory.create_branch(3, root=genesis)
non_canonical_branch = BeaconBlockFactory.create_branch(
3,
root=base_branch[-1],
state_root=b"\x00" * 32,
)
canonical_branch = BeaconBlockFactory.create_branch(
4,
root=base_branch[-1],
state_root=b"\x11" * 32,
)
for branch in [[genesis], base_branch, non_canonical_branch, canonical_branch]:
scorings = (higher_slot_scoring for block in branch)
await chain_db.coro_persist_block_chain(branch, BeaconBlock, scorings)
async with get_request_server_setup(
request, event_loop, event_bus, chain_db
) as (alice, response_buffer):
alice.sub_proto.send_get_blocks(genesis.slot + 2, 4, request_id=5)
response = await response_buffer.msg_queue.get()
assert isinstance(response.command, BeaconBlocks)
assert response.payload["request_id"] == 5
blocks = tuple(
ssz.decode(block, BeaconBlock) for block in response.payload["encoded_blocks"])
assert len(blocks) == 4
assert [block.slot for block in blocks] == [genesis.slot + s for s in [2, 3, 4, 5]]
assert blocks == base_branch[1:] + canonical_branch[:2]
@pytest.mark.asyncio
async def test_get_canonical_block_range_by_root(request, event_loop, event_bus):
chain_db = AsyncBeaconChainDBFactory(blocks=())
genesis = BeaconBlockFactory()
base_branch = BeaconBlockFactory.create_branch(3, root=genesis)
non_canonical_branch = BeaconBlockFactory.create_branch(
3,
root=base_branch[-1],
state_root=b"\x00" * 32,
)
canonical_branch = BeaconBlockFactory.create_branch(
4,
root=base_branch[-1],
state_root=b"\x11" * 32,
)
for branch in [[genesis], base_branch, non_canonical_branch, canonical_branch]:
scorings = (higher_slot_scoring for block in branch)
await chain_db.coro_persist_block_chain(branch, BeaconBlock, scorings)
async with get_request_server_setup(
request, event_loop, event_bus, chain_db
) as (alice, response_buffer):
alice.sub_proto.send_get_blocks(base_branch[1].signing_root, 4, request_id=5)
response = await response_buffer.msg_queue.get()
assert isinstance(response.command, BeaconBlocks)
assert response.payload["request_id"] == 5
blocks = tuple(
ssz.decode(block, BeaconBlock) for block in response.payload["encoded_blocks"])
assert len(blocks) == 4
assert [block.slot for block in blocks] == [genesis.slot + s for s in [2, 3, 4, 5]]
assert blocks == base_branch[1:] + canonical_branch[:2]
@pytest.mark.asyncio
async def test_get_incomplete_canonical_block_range(request, event_loop, event_bus):
chain_db = AsyncBeaconChainDBFactory(blocks=())
genesis = BeaconBlockFactory()
base_branch = BeaconBlockFactory.create_branch(3, root=genesis)
non_canonical_branch = BeaconBlockFactory.create_branch(
3,
root=base_branch[-1],
state_root=b"\x00" * 32,
)
canonical_branch = BeaconBlockFactory.create_branch(
4,
root=base_branch[-1],
state_root=b"\x11" * 32,
)
for branch in [[genesis], base_branch, non_canonical_branch, canonical_branch]:
scorings = (higher_slot_scoring for block in branch)
await chain_db.coro_persist_block_chain(branch, BeaconBlock, scorings)
async with get_request_server_setup(
request, event_loop, event_bus, chain_db
) as (alice, response_buffer):
alice.sub_proto.send_get_blocks(genesis.slot + 3, 10, request_id=5)
response = await response_buffer.msg_queue.get()
assert isinstance(response.command, BeaconBlocks)
assert response.payload["request_id"] == 5
blocks = tuple(
ssz.decode(block, BeaconBlock) for block in response.payload["encoded_blocks"])
assert len(blocks) == 5
assert [block.slot for block in blocks] == [genesis.slot + s for s in [3, 4, 5, 6, 7]]
assert blocks == base_branch[-1:] + canonical_branch
@pytest.mark.asyncio
async def test_get_non_canonical_branch(request, event_loop, event_bus):
chain_db = AsyncBeaconChainDBFactory(blocks=())
genesis = BeaconBlockFactory()
base_branch = BeaconBlockFactory.create_branch(3, root=genesis)
non_canonical_branch = BeaconBlockFactory.create_branch(
3,
root=base_branch[-1],
state_root=b"\x00" * 32,
)
canonical_branch = BeaconBlockFactory.create_branch(
4,
root=base_branch[-1],
state_root=b"\x11" * 32,
)
for branch in [[genesis], base_branch, non_canonical_branch, canonical_branch]:
scorings = (higher_slot_scoring for block in branch)
await chain_db.coro_persist_block_chain(branch, BeaconBlock, scorings)
async with get_request_server_setup(
request, event_loop, event_bus, chain_db
) as (alice, response_buffer):
alice.sub_proto.send_get_blocks(non_canonical_branch[1].signing_root, 3, request_id=5)
response = await response_buffer.msg_queue.get()
assert isinstance(response.command, BeaconBlocks)
assert response.payload["request_id"] == 5
blocks = tuple(
ssz.decode(block, BeaconBlock) for block in response.payload["encoded_blocks"])
assert len(blocks) == 1
assert blocks[0].slot == genesis.slot + 5
assert blocks[0] == non_canonical_branch[1]
| 34.8375
| 94
| 0.696268
| 1,344
| 11,148
| 5.483631
| 0.105655
| 0.028494
| 0.041248
| 0.054138
| 0.768928
| 0.756852
| 0.756852
| 0.746269
| 0.746269
| 0.746269
| 0
| 0.014138
| 0.213222
| 11,148
| 319
| 95
| 34.946708
| 0.826132
| 0.000897
| 0
| 0.625
| 0
| 0
| 0.022629
| 0
| 0
| 0
| 0
| 0
| 0.120968
| 1
| 0.004032
| false
| 0
| 0.060484
| 0
| 0.064516
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
41e22299f2179ccd69774517987150085fd15533
| 96
|
py
|
Python
|
venv/lib/python3.8/site-packages/numpy/f2py/tests/test_return_complex.py
|
Retraces/UkraineBot
|
3d5d7f8aaa58fa0cb8b98733b8808e5dfbdb8b71
|
[
"MIT"
] | 2
|
2022-03-13T01:58:52.000Z
|
2022-03-31T06:07:54.000Z
|
venv/lib/python3.8/site-packages/numpy/f2py/tests/test_return_complex.py
|
DesmoSearch/Desmobot
|
b70b45df3485351f471080deb5c785c4bc5c4beb
|
[
"MIT"
] | 19
|
2021-11-20T04:09:18.000Z
|
2022-03-23T15:05:55.000Z
|
venv/lib/python3.8/site-packages/numpy/f2py/tests/test_return_complex.py
|
DesmoSearch/Desmobot
|
b70b45df3485351f471080deb5c785c4bc5c4beb
|
[
"MIT"
] | null | null | null |
/home/runner/.cache/pip/pool/fb/bb/41/dc87dcf9f8f123b71bc4b39823d344a86157b57cc36cc4bbe1a0ae01b1
| 96
| 96
| 0.895833
| 9
| 96
| 9.555556
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.364583
| 0
| 96
| 1
| 96
| 96
| 0.53125
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
5106d9003f4bd361477b58e4aeec325079ee019e
| 23,878
|
py
|
Python
|
polyaxon/streams/api.py
|
wbuchwalter/polyaxon
|
a01396ea86a74082c457bfbc2c91d283b6ff6fba
|
[
"MIT"
] | null | null | null |
polyaxon/streams/api.py
|
wbuchwalter/polyaxon
|
a01396ea86a74082c457bfbc2c91d283b6ff6fba
|
[
"MIT"
] | null | null | null |
polyaxon/streams/api.py
|
wbuchwalter/polyaxon
|
a01396ea86a74082c457bfbc2c91d283b6ff6fba
|
[
"MIT"
] | null | null | null |
import asyncio
import json
import logging
from sanic import Sanic
from websockets import ConnectionClosed
from django.core.exceptions import ValidationError
import auditor
from db.models.build_jobs import BuildJob
from db.models.experiment_jobs import ExperimentJob
from db.models.experiments import Experiment
from db.models.jobs import Job
from db.models.projects import Project
from event_manager.events.build_job import BUILD_JOB_LOGS_VIEWED
from event_manager.events.experiment import EXPERIMENT_LOGS_VIEWED, EXPERIMENT_RESOURCES_VIEWED
from event_manager.events.experiment_job import (
EXPERIMENT_JOB_LOGS_VIEWED,
EXPERIMENT_JOB_RESOURCES_VIEWED
)
from event_manager.events.job import JOB_LOGS_VIEWED
from libs.permissions.projects import has_project_permissions
from libs.redis_db import RedisToStream
from polyaxon.settings import CeleryQueues, RoutingKeys
from streams.authentication import authorized
from streams.consumers import Consumer
from streams.socket_manager import SocketManager
_logger = logging.getLogger('polyaxon.streams.api')
SOCKET_SLEEP = 2
MAX_RETRIES = 7
RESOURCES_CHECK = 7
CHECK_DELAY = 5
app = Sanic(__name__)
def get_error_message(message):
return json.dumps({'status': 'error', 'log_lines': [message]})
def validate_project(request, username, project_name):
try:
project = Project.objects.get(name=project_name, user__username=username)
except Project.DoesNotExist:
return None, 'Project was not found'
if not has_project_permissions(request.app.user, project, 'GET'):
return None, "You don't have access to this project"
return project, None
def validate_experiment(request, username, project_name, experiment_id):
project, message = validate_project(request=request,
username=username,
project_name=project_name)
if project is None:
return None, message
try:
experiment = Experiment.objects.get(project=project, id=experiment_id)
except (Experiment.DoesNotExist, ValidationError):
return None, 'Experiment was not found'
if not experiment.is_running:
return None, 'Experiment was not running'
return experiment, None
def validate_experiment_job(request, username, project_name, experiment_id, job_id):
experiment, message = validate_experiment(request=request,
username=username,
project_name=project_name,
experiment_id=experiment_id)
if experiment is None:
return None, None, message
try:
job = ExperimentJob.objects.get(experiment=experiment, id=job_id)
except (ExperimentJob.DoesNotExist, ValidationError):
return None, None, 'Experiment was not found'
if not job.is_running:
return None, None, 'Job was not running'
return job, experiment, None
def validate_job(request, username, project_name, job_id):
project, message = validate_project(request=request,
username=username,
project_name=project_name)
if project is None:
return None, message
try:
job = Job.objects.get(project=project, id=job_id)
except (Experiment.DoesNotExist, ValidationError):
return None, 'Job was not found'
if not job.is_running:
return None, 'Job was not running'
return job, None
def validate_build(request, username, project_name, build_id):
project, message = validate_project(request=request,
username=username,
project_name=project_name)
if project is None:
return None, message
try:
job = BuildJob.objects.get(project=project, id=build_id)
except (Experiment.DoesNotExist, ValidationError):
return None, 'Build was not found'
if not job.is_running:
return None, 'Build was not running'
return job, None
@authorized()
async def experiment_job_resources(request, ws, username, project_name, experiment_id, job_id):
job, _, message = validate_experiment_job(request=request,
username=username,
project_name=project_name,
experiment_id=experiment_id,
job_id=job_id)
if job is None:
await ws.send(get_error_message(message))
return
job_uuid = job.uuid.hex
job_name = '{}.{}'.format(job.role, job.id)
auditor.record(event_type=EXPERIMENT_JOB_RESOURCES_VIEWED,
instance=job,
actor_id=request.app.user.id)
if not RedisToStream.is_monitored_job_resources(job_uuid=job_uuid):
_logger.info('Job resources with uuid `%s` is now being monitored', job_name)
RedisToStream.monitor_job_resources(job_uuid=job_uuid)
if job_uuid in request.app.job_resources_ws_mangers:
ws_manager = request.app.job_resources_ws_mangers[job_uuid]
else:
ws_manager = SocketManager()
request.app.job_resources_ws_mangers[job_uuid] = ws_manager
def handle_job_disconnected_ws(ws):
ws_manager.remove_sockets(ws)
if not ws_manager.ws:
_logger.info('Stopping resources monitor for job %s', job_name)
RedisToStream.remove_job_resources(job_uuid=job_uuid)
request.app.job_resources_ws_mangers.pop(job_uuid, None)
_logger.info('Quitting resources socket for job %s', job_name)
ws_manager.add_socket(ws)
should_check = 0
while True:
resources = RedisToStream.get_latest_job_resources(job=job_uuid, job_name=job_name)
should_check += 1
# After trying a couple of time, we must check the status of the job
if should_check > RESOURCES_CHECK:
job.refresh_from_db()
if job.is_done:
_logger.info('removing all socket because the job `%s` is done', job_name)
ws_manager.ws = set([])
handle_job_disconnected_ws(ws)
return
else:
should_check -= CHECK_DELAY
if resources:
try:
await ws.send(resources)
except ConnectionClosed:
handle_job_disconnected_ws(ws)
return
# Just to check if connection closed
if ws._connection_lost: # pylint:disable=protected-access
handle_job_disconnected_ws(ws)
return
await asyncio.sleep(SOCKET_SLEEP)
@authorized()
async def experiment_resources(request, ws, username, project_name, experiment_id):
experiment, message = validate_experiment(request=request,
username=username,
project_name=project_name,
experiment_id=experiment_id)
if experiment is None:
await ws.send(get_error_message(message))
return
experiment_uuid = experiment.uuid.hex
auditor.record(event_type=EXPERIMENT_RESOURCES_VIEWED,
instance=experiment,
actor_id=request.app.user.id)
if not RedisToStream.is_monitored_experiment_resources(experiment_uuid=experiment_uuid):
_logger.info('Experiment resource with uuid `%s` is now being monitored', experiment_uuid)
RedisToStream.monitor_experiment_resources(experiment_uuid=experiment_uuid)
if experiment_uuid in request.app.experiment_resources_ws_mangers:
ws_manager = request.app.experiment_resources_ws_mangers[experiment_uuid]
else:
ws_manager = SocketManager()
request.app.experiment_resources_ws_mangers[experiment_uuid] = ws_manager
def handle_experiment_disconnected_ws(ws):
ws_manager.remove_sockets(ws)
if not ws_manager.ws:
_logger.info('Stopping resources monitor for uuid %s', experiment_uuid)
RedisToStream.remove_experiment_resources(experiment_uuid=experiment_uuid)
request.app.experiment_resources_ws_mangers.pop(experiment_uuid, None)
_logger.info('Quitting resources socket for uuid %s', experiment_uuid)
jobs = []
for job in experiment.jobs.values('uuid', 'role', 'id'):
job['uuid'] = job['uuid'].hex
job['name'] = '{}.{}'.format(job.pop('role'), job.pop('id'))
jobs.append(job)
ws_manager.add_socket(ws)
should_check = 0
while True:
resources = RedisToStream.get_latest_experiment_resources(jobs)
should_check += 1
# After trying a couple of time, we must check the status of the experiment
if should_check > RESOURCES_CHECK:
experiment.refresh_from_db()
if experiment.is_done:
_logger.info(
'removing all socket because the experiment `%s` is done', experiment_uuid)
ws_manager.ws = set([])
handle_experiment_disconnected_ws(ws)
return
else:
should_check -= CHECK_DELAY
if resources:
try:
await ws.send(resources)
except ConnectionClosed:
handle_experiment_disconnected_ws(ws)
return
# Just to check if connection closed
if ws._connection_lost: # pylint:disable=protected-access
handle_experiment_disconnected_ws(ws)
return
await asyncio.sleep(SOCKET_SLEEP)
@authorized()
async def experiment_job_logs(request, ws, username, project_name, experiment_id, job_id):
job, experiment, message = validate_experiment_job(request=request,
username=username,
project_name=project_name,
experiment_id=experiment_id,
job_id=job_id)
if job is None:
await ws.send(get_error_message(message))
return
job_uuid = job.uuid.hex
auditor.record(event_type=EXPERIMENT_JOB_LOGS_VIEWED,
instance=job,
actor_id=request.app.user.id)
if not RedisToStream.is_monitored_job_logs(job_uuid=job_uuid):
_logger.info('Job uuid `%s` logs is now being monitored', job_uuid)
RedisToStream.monitor_job_logs(job_uuid=job_uuid)
# start consumer
if job_uuid in request.app.job_logs_consumers:
consumer = request.app.job_logs_consumers[job_uuid]
else:
_logger.info('Add job log consumer for %s', job_uuid)
consumer = Consumer(
routing_key='{}.{}.{}'.format(RoutingKeys.LOGS_SIDECARS_EXPERIMENTS,
experiment.uuid.hex,
job_uuid),
queue='{}.{}'.format(CeleryQueues.STREAM_LOGS_SIDECARS, job_uuid))
request.app.job_logs_consumers[job_uuid] = consumer
consumer.run()
# add socket manager
consumer.add_socket(ws)
should_quite = False
num_message_retries = 0
while True:
num_message_retries += 1
for message in consumer.get_messages():
num_message_retries = 0
disconnected_ws = set()
for _ws in consumer.ws:
try:
await _ws.send(message)
except ConnectionClosed:
disconnected_ws.add(_ws)
consumer.remove_sockets(disconnected_ws)
# After trying a couple of time, we must check the status of the experiment
if num_message_retries > MAX_RETRIES:
job.refresh_from_db()
if job.is_done:
_logger.info('removing all socket because the job `%s` is done', job_uuid)
consumer.ws = set([])
else:
num_message_retries -= CHECK_DELAY
# Just to check if connection closed
if ws._connection_lost: # pylint:disable=protected-access
_logger.info('Quitting logs socket for job uuid %s', job_uuid)
consumer.remove_sockets({ws, })
should_quite = True
if not consumer.ws:
_logger.info('Stopping logs monitor for job uuid %s', job_uuid)
RedisToStream.remove_job_logs(job_uuid=job_uuid)
# if job_uuid in request.app.job_logs_consumers:
# consumer = request.app.job_logs_consumers.pop(job_uuid, None)
# if consumer:
# consumer.stop()
should_quite = True
if should_quite:
return
await asyncio.sleep(SOCKET_SLEEP)
@authorized()
async def experiment_logs(request, ws, username, project_name, experiment_id):
experiment, message = validate_experiment(request=request,
username=username,
project_name=project_name,
experiment_id=experiment_id)
if experiment is None:
await ws.send(get_error_message(message))
return
experiment_uuid = experiment.uuid.hex
auditor.record(event_type=EXPERIMENT_LOGS_VIEWED,
instance=experiment,
actor_id=request.app.user.id)
if not RedisToStream.is_monitored_experiment_logs(experiment_uuid=experiment_uuid):
_logger.info('Experiment uuid `%s` logs is now being monitored', experiment_uuid)
RedisToStream.monitor_experiment_logs(experiment_uuid=experiment_uuid)
# start consumer
if experiment_uuid in request.app.experiment_logs_consumers:
consumer = request.app.experiment_logs_consumers[experiment_uuid]
else:
_logger.info('Add experiment log consumer for %s', experiment_uuid)
consumer = Consumer(
routing_key='{}.{}.*'.format(RoutingKeys.LOGS_SIDECARS_EXPERIMENTS, experiment_uuid),
queue='{}.{}'.format(CeleryQueues.STREAM_LOGS_SIDECARS, experiment_uuid))
request.app.experiment_logs_consumers[experiment_uuid] = consumer
consumer.run()
# add socket manager
consumer.add_socket(ws)
should_quite = False
num_message_retries = 0
while True:
num_message_retries += 1
for message in consumer.get_messages():
num_message_retries = 0
disconnected_ws = set()
for _ws in consumer.ws:
try:
await _ws.send(message)
except ConnectionClosed:
disconnected_ws.add(_ws)
consumer.remove_sockets(disconnected_ws)
# After trying a couple of time, we must check the status of the experiment
if num_message_retries > MAX_RETRIES:
experiment.refresh_from_db()
if experiment.is_done:
_logger.info(
'removing all socket because the experiment `%s` is done', experiment_uuid)
consumer.ws = set([])
else:
num_message_retries -= CHECK_DELAY
# Just to check if connection closed
if ws._connection_lost: # pylint:disable=protected-access
_logger.info('Quitting logs socket for experiment uuid %s', experiment_uuid)
consumer.remove_sockets({ws, })
should_quite = True
if not consumer.ws:
_logger.info('Stopping logs monitor for experiment uuid %s', experiment_uuid)
RedisToStream.remove_experiment_logs(experiment_uuid=experiment_uuid)
# if experiment_uuid in request.app.experiment_logs_consumers:
# consumer = request.app.experiment_logs_consumers.pop(experiment_uuid, None)
# if consumer:
# consumer.stop()
should_quite = True
if should_quite:
return
await asyncio.sleep(SOCKET_SLEEP)
@authorized()
async def job_logs(request, ws, username, project_name, job_id):
job, message = validate_job(request=request,
username=username,
project_name=project_name,
job_id=job_id)
if job is None:
await ws.send(get_error_message(message))
return
job_uuid = job.uuid.hex
auditor.record(event_type=JOB_LOGS_VIEWED,
instance=job,
actor_id=request.app.user.id)
if not RedisToStream.is_monitored_job_logs(job_uuid=job_uuid):
_logger.info('Job uuid `%s` logs is now being monitored', job_uuid)
RedisToStream.monitor_job_logs(job_uuid=job_uuid)
# start consumer
if job_uuid in request.app.job_logs_consumers:
consumer = request.app.job_logs_consumers[job_uuid]
else:
_logger.info('Add job log consumer for %s', job_uuid)
consumer = Consumer(
routing_key='{}.{}'.format(RoutingKeys.LOGS_SIDECARS_JOBS, job_uuid),
queue='{}.{}'.format(CeleryQueues.STREAM_LOGS_SIDECARS, job_uuid))
request.app.job_logs_consumers[job_uuid] = consumer
consumer.run()
# add socket manager
consumer.add_socket(ws)
should_quite = False
num_message_retries = 0
while True:
num_message_retries += 1
for message in consumer.get_messages():
num_message_retries = 0
disconnected_ws = set()
for _ws in consumer.ws:
try:
await _ws.send(message)
except ConnectionClosed:
disconnected_ws.add(_ws)
consumer.remove_sockets(disconnected_ws)
# After trying a couple of time, we must check the status of the experiment
if num_message_retries > MAX_RETRIES:
job.refresh_from_db()
if job.is_done:
_logger.info('removing all socket because the job `%s` is done', job_uuid)
consumer.ws = set([])
else:
num_message_retries -= CHECK_DELAY
# Just to check if connection closed
if ws._connection_lost: # pylint:disable=protected-access
_logger.info('Quitting logs socket for job uuid %s', job_uuid)
consumer.remove_sockets({ws, })
should_quite = True
if not consumer.ws:
_logger.info('Stopping logs monitor for job uuid %s', job_uuid)
RedisToStream.remove_job_logs(job_uuid=job_uuid)
# if job_uuid in request.app.job_logs_consumers:
# consumer = request.app.job_logs_consumers.pop(job_uuid, None)
# if consumer:
# consumer.stop()
should_quite = True
if should_quite:
return
await asyncio.sleep(SOCKET_SLEEP)
@authorized()
async def build_logs(request, ws, username, project_name, build_id):
job, message = validate_build(request=request,
username=username,
project_name=project_name,
build_id=build_id)
if job is None:
await ws.send(get_error_message(message))
return
job_uuid = job.uuid.hex
auditor.record(event_type=BUILD_JOB_LOGS_VIEWED,
instance=job,
actor_id=request.app.user.id)
if not RedisToStream.is_monitored_job_logs(job_uuid=job_uuid):
_logger.info('Job uuid `%s` logs is now being monitored', job_uuid)
RedisToStream.monitor_job_logs(job_uuid=job_uuid)
# start consumer
if job_uuid in request.app.job_logs_consumers:
consumer = request.app.job_logs_consumers[job_uuid]
else:
_logger.info('Add job log consumer for %s', job_uuid)
consumer = Consumer(
routing_key='{}.{}'.format(RoutingKeys.LOGS_SIDECARS_BUILDS, job_uuid),
queue='{}.{}'.format(CeleryQueues.STREAM_LOGS_SIDECARS, job_uuid))
request.app.job_logs_consumers[job_uuid] = consumer
consumer.run()
# add socket manager
consumer.add_socket(ws)
should_quite = False
num_message_retries = 0
while True:
num_message_retries += 1
for message in consumer.get_messages():
num_message_retries = 0
disconnected_ws = set()
for _ws in consumer.ws:
try:
await _ws.send(message)
except ConnectionClosed:
disconnected_ws.add(_ws)
consumer.remove_sockets(disconnected_ws)
# After trying a couple of time, we must check the status of the experiment
if num_message_retries > MAX_RETRIES:
job.refresh_from_db()
if job.is_done:
_logger.info('removing all socket because the job `%s` is done', job_uuid)
consumer.ws = set([])
else:
num_message_retries -= CHECK_DELAY
# Just to check if connection closed
if ws._connection_lost: # pylint:disable=protected-access
_logger.info('Quitting logs socket for job uuid %s', job_uuid)
consumer.remove_sockets({ws, })
should_quite = True
if not consumer.ws:
_logger.info('Stopping logs monitor for job uuid %s', job_uuid)
RedisToStream.remove_job_logs(job_uuid=job_uuid)
# if job_uuid in request.app.job_logs_consumers:
# consumer = request.app.job_logs_consumers.pop(job_uuid, None)
# if consumer:
# consumer.stop()
should_quite = True
if should_quite:
return
await asyncio.sleep(SOCKET_SLEEP)
EXPERIMENT_URL = '/v1/<username>/<project_name>/experiments/<experiment_id>'
BUILD_URL = '/v1/<username>/<project_name>/builds/<build_id>'
JOB_URL = '/v1/<username>/<project_name>/jobs/<job_id>'
def add_url(endpoint, base_url, url):
app.add_websocket_route(endpoint, '{}/{}'.format(base_url, url))
app.add_websocket_route(endpoint, '/ws{}/{}'.format(base_url, url))
# Experiment Job urls
add_url(endpoint=experiment_job_resources, base_url=EXPERIMENT_URL, url='jobs/<job_id>/resources')
add_url(endpoint=experiment_job_logs, base_url=EXPERIMENT_URL, url='jobs/<job_id>/logs')
# Experiment urls
add_url(endpoint=experiment_resources, base_url=EXPERIMENT_URL, url='resources')
add_url(endpoint=experiment_logs, base_url=EXPERIMENT_URL, url='logs')
# Job urls
# add_url(endpoint=job_resources, base_url=EXPERIMENT_URL, url='resources')
add_url(endpoint=job_logs, base_url=JOB_URL, url='logs')
# Build Job urls
# add_url(endpoint=job_resources, base_url=EXPERIMENT_URL, url='resources')
add_url(endpoint=build_logs, base_url=BUILD_URL, url='logs')
@app.listener('after_server_start')
async def notify_server_started(app, loop): # pylint:disable=redefined-outer-name
app.job_resources_ws_mangers = {}
app.experiment_resources_ws_mangers = {}
app.job_logs_consumers = {}
app.experiment_logs_consumers = {}
@app.listener('after_server_stop')
async def notify_server_stopped(app, loop): # pylint:disable=redefined-outer-name
app.job_resources_ws_mangers = {}
app.experiment_resources_ws_manger = {}
consumer_keys = list(app.job_logs_consumers.keys())
for consumer_key in consumer_keys:
consumer = app.job_logs_consumers.pop(consumer_key, None)
consumer.stop()
consumer_keys = list(app.experiment_logs_consumers.keys())
for consumer_key in consumer_keys:
consumer = app.experiment_logs_consumers.pop(consumer_key, None)
consumer.stop()
| 39.337727
| 98
| 0.634727
| 2,780
| 23,878
| 5.186691
| 0.066187
| 0.04078
| 0.031625
| 0.023719
| 0.846314
| 0.798807
| 0.757889
| 0.700881
| 0.661211
| 0.64526
| 0
| 0.001352
| 0.287629
| 23,878
| 606
| 99
| 39.40264
| 0.846326
| 0.079487
| 0
| 0.679487
| 0
| 0
| 0.080259
| 0.007752
| 0
| 0
| 0
| 0
| 0
| 1
| 0.019231
| false
| 0
| 0.047009
| 0.002137
| 0.143162
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
510f800b8f949bb797ddb7ed6c619e26d200efe6
| 101
|
py
|
Python
|
SharedResources/__init__.py
|
kangasta/rf-shared-resources
|
f977e98da57c259be8794c6f8c444cdabe2bc3a7
|
[
"MIT"
] | null | null | null |
SharedResources/__init__.py
|
kangasta/rf-shared-resources
|
f977e98da57c259be8794c6f8c444cdabe2bc3a7
|
[
"MIT"
] | 1
|
2022-01-17T16:03:57.000Z
|
2022-01-18T11:51:37.000Z
|
SharedResources/__init__.py
|
kangasta/rf-shared-resources
|
f977e98da57c259be8794c6f8c444cdabe2bc3a7
|
[
"MIT"
] | null | null | null |
from ._version import __version__
from ._shared_resources import load_resource_file, SharedResources
| 33.666667
| 66
| 0.881188
| 12
| 101
| 6.666667
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.089109
| 101
| 2
| 67
| 50.5
| 0.869565
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
512a085913874adce887be79d905e7702cc387c3
| 186
|
py
|
Python
|
examples/while1.py
|
pwlodarczyk92/python-problems
|
aadd3ae50cc5d80324902256f3909536e0d29e80
|
[
"MIT"
] | null | null | null |
examples/while1.py
|
pwlodarczyk92/python-problems
|
aadd3ae50cc5d80324902256f3909536e0d29e80
|
[
"MIT"
] | null | null | null |
examples/while1.py
|
pwlodarczyk92/python-problems
|
aadd3ae50cc5d80324902256f3909536e0d29e80
|
[
"MIT"
] | null | null | null |
x = 0
while x < 5:
print(x)
x = x + 1
print(x)
print("########")
x = 0
while x < 5:
x = x + 1
print(x)
print(x)
print("########")
y = 0
while y < 5:
print(y)
y = y + 2
print(y)
| 8.857143
| 17
| 0.44086
| 38
| 186
| 2.157895
| 0.210526
| 0.365854
| 0.402439
| 0.195122
| 0.573171
| 0.365854
| 0.365854
| 0
| 0
| 0
| 0
| 0.067669
| 0.284946
| 186
| 21
| 18
| 8.857143
| 0.548872
| 0
| 0
| 0.823529
| 0
| 0
| 0.085562
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.470588
| 0
| 0
| 0
| null | 1
| 1
| 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
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 5
|
512a4cda91282ded0415f64ea6e24d31c35e094f
| 175
|
py
|
Python
|
operations/accounts/fields.py
|
kaizer88/emps
|
2669b32c46befcf1a19390fb25013817e6b00980
|
[
"MIT"
] | null | null | null |
operations/accounts/fields.py
|
kaizer88/emps
|
2669b32c46befcf1a19390fb25013817e6b00980
|
[
"MIT"
] | null | null | null |
operations/accounts/fields.py
|
kaizer88/emps
|
2669b32c46befcf1a19390fb25013817e6b00980
|
[
"MIT"
] | null | null | null |
from django.forms.fields import MultipleChoiceField
class TrustedMultipleChoiceField(MultipleChoiceField):
def valid_value(*args, **kwargs):
return True
| 15.909091
| 54
| 0.742857
| 16
| 175
| 8.0625
| 0.9375
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.188571
| 175
| 11
| 55
| 15.909091
| 0.908451
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| true
| 0
| 0.25
| 0.25
| 1
| 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
| 1
| 0
| 0
| 1
| 1
| 0
|
0
| 5
|
513d9db4a5971ecd50e6a3fc74f88d68e3d4b1e5
| 148
|
py
|
Python
|
chat/admin.py
|
melissa-koi/NotesApp
|
396920214bee7ab804c7465966abcc54a8706ef7
|
[
"MIT"
] | 1
|
2021-09-16T06:25:30.000Z
|
2021-09-16T06:25:30.000Z
|
chat/admin.py
|
melissa-koi/NotesApp
|
396920214bee7ab804c7465966abcc54a8706ef7
|
[
"MIT"
] | null | null | null |
chat/admin.py
|
melissa-koi/NotesApp
|
396920214bee7ab804c7465966abcc54a8706ef7
|
[
"MIT"
] | null | null | null |
from django.contrib import admin
from .models import User, Notes
# Register your models here.
admin.site.register(User)
admin.site.register(Notes)
| 21.142857
| 32
| 0.797297
| 22
| 148
| 5.363636
| 0.545455
| 0.152542
| 0.288136
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.114865
| 148
| 6
| 33
| 24.666667
| 0.900763
| 0.175676
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
51505cd1dc5d0ac93482200bad866ebe8b898914
| 171
|
py
|
Python
|
mltb/__init__.py
|
ghayth82/mltb
|
6b347678ec04ae9241e4c2d26a8dfa5fdb803ca2
|
[
"BSD-2-Clause"
] | 1
|
2020-04-02T00:57:13.000Z
|
2020-04-02T00:57:13.000Z
|
mltb/__init__.py
|
ghayth82/mltb
|
6b347678ec04ae9241e4c2d26a8dfa5fdb803ca2
|
[
"BSD-2-Clause"
] | null | null | null |
mltb/__init__.py
|
ghayth82/mltb
|
6b347678ec04ae9241e4c2d26a8dfa5fdb803ca2
|
[
"BSD-2-Clause"
] | null | null | null |
from . import hyperopt
from . import lightgbm
from . import metrics
from . import pdtb
from . import plot
from . import shap
from . import tools
__version__ = '0.4.dev1'
| 17.1
| 24
| 0.74269
| 25
| 171
| 4.92
| 0.52
| 0.569106
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.021583
| 0.187135
| 171
| 9
| 25
| 19
| 0.863309
| 0
| 0
| 0
| 0
| 0
| 0.046784
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.875
| 0
| 0.875
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
5a938e783dc343d9e0cca0fe244ba1f593c31d62
| 55
|
py
|
Python
|
conftest.py
|
trompamusic/ce-queries-template
|
cc5ae69d0e76623bfd72e9453f569f6624bf7c3b
|
[
"Apache-2.0"
] | 1
|
2020-06-18T15:43:18.000Z
|
2020-06-18T15:43:18.000Z
|
conftest.py
|
trompamusic/ce-queries-template
|
cc5ae69d0e76623bfd72e9453f569f6624bf7c3b
|
[
"Apache-2.0"
] | 60
|
2019-12-17T11:08:28.000Z
|
2021-03-02T16:19:41.000Z
|
conftest.py
|
trompamusic/trompace-client
|
cc5ae69d0e76623bfd72e9453f569f6624bf7c3b
|
[
"Apache-2.0"
] | null | null | null |
import pytest
pytest.register_assert_rewrite("tests")
| 13.75
| 39
| 0.836364
| 7
| 55
| 6.285714
| 0.857143
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.072727
| 55
| 3
| 40
| 18.333333
| 0.862745
| 0
| 0
| 0
| 0
| 0
| 0.090909
| 0
| 0
| 0
| 0
| 0
| 0.5
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
5aa2ec8884c05ee0ce54cf32f33ab1797e49a472
| 75
|
py
|
Python
|
run_in_docker.py
|
typeli/leetcode-board
|
335a2a0d1b61c3c34025c932dfe8801032b6db16
|
[
"MIT"
] | 4
|
2019-06-23T14:00:28.000Z
|
2020-02-24T01:16:14.000Z
|
run_in_docker.py
|
typeli/leetcode-board
|
335a2a0d1b61c3c34025c932dfe8801032b6db16
|
[
"MIT"
] | null | null | null |
run_in_docker.py
|
typeli/leetcode-board
|
335a2a0d1b61c3c34025c932dfe8801032b6db16
|
[
"MIT"
] | 3
|
2019-06-22T12:47:44.000Z
|
2019-07-02T16:00:35.000Z
|
import os
os.system("cd /code && python3 mock_data.py && python3 app.py")
| 18.75
| 63
| 0.693333
| 13
| 75
| 3.923077
| 0.769231
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.03125
| 0.146667
| 75
| 3
| 64
| 25
| 0.765625
| 0
| 0
| 0
| 0
| 0
| 0.666667
| 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
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
5abcb95c8b8fa03676d59208bea3fd6df85c6412
| 180
|
py
|
Python
|
GCPDNSUpdater/__init__.py
|
shanewiseman/gcp_dns_updater
|
c5f1a665d2eec78a2288df647509fe5f4f09bf80
|
[
"MIT"
] | null | null | null |
GCPDNSUpdater/__init__.py
|
shanewiseman/gcp_dns_updater
|
c5f1a665d2eec78a2288df647509fe5f4f09bf80
|
[
"MIT"
] | null | null | null |
GCPDNSUpdater/__init__.py
|
shanewiseman/gcp_dns_updater
|
c5f1a665d2eec78a2288df647509fe5f4f09bf80
|
[
"MIT"
] | null | null | null |
from .updater import Updater
from .exception import GCPDNSUpdaterException
from .config import Config
from .test import GCPDNSUpdaterTest
from .request_record import RequestRecord
| 30
| 45
| 0.861111
| 21
| 180
| 7.333333
| 0.52381
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.111111
| 180
| 5
| 46
| 36
| 0.9625
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
5abf15b8bb2ecbe00b57c34d12b762e4ab42654e
| 81
|
py
|
Python
|
api/exceptions.py
|
andres0820m/test_amazon
|
e290f79f514e10ec08050526fa33dcd49e39ff6e
|
[
"MIT"
] | null | null | null |
api/exceptions.py
|
andres0820m/test_amazon
|
e290f79f514e10ec08050526fa33dcd49e39ff6e
|
[
"MIT"
] | null | null | null |
api/exceptions.py
|
andres0820m/test_amazon
|
e290f79f514e10ec08050526fa33dcd49e39ff6e
|
[
"MIT"
] | null | null | null |
class ApiKeyError(Exception):
pass
class UserNotExist(Exception):
pass
| 11.571429
| 30
| 0.728395
| 8
| 81
| 7.375
| 0.625
| 0.440678
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.197531
| 81
| 6
| 31
| 13.5
| 0.907692
| 0
| 0
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.5
| 0
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
|
0
| 5
|
5ac264b38e422a35dbb595af5cf466c92dedb341
| 195
|
py
|
Python
|
opstrat/__init__.py
|
diveyez/opstrat
|
cee94d0cc088cf85d950be4aa11cb62f0ee18da5
|
[
"MIT"
] | 37
|
2021-06-13T01:32:17.000Z
|
2022-03-30T05:36:06.000Z
|
opstrat/__init__.py
|
diveyez/opstrat
|
cee94d0cc088cf85d950be4aa11cb62f0ee18da5
|
[
"MIT"
] | 6
|
2021-07-12T19:23:31.000Z
|
2022-03-11T15:57:22.000Z
|
opstrat/__init__.py
|
diveyez/opstrat
|
cee94d0cc088cf85d950be4aa11cb62f0ee18da5
|
[
"MIT"
] | 21
|
2021-06-12T22:47:45.000Z
|
2022-03-24T05:06:00.000Z
|
__version__ = "0.1.7"
__author__ = "Abhijith Chandradas"
from .basic_multi import *
from .basic_single import *
from .yf import *
from .blackscholes import black_scholes
#from .helpers import *
| 21.666667
| 39
| 0.764103
| 26
| 195
| 5.307692
| 0.653846
| 0.217391
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.017964
| 0.14359
| 195
| 8
| 40
| 24.375
| 0.808383
| 0.112821
| 0
| 0
| 0
| 0
| 0.139535
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.666667
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
5acb447b7165960ac12efa88413503965ad0b0a3
| 1,833
|
py
|
Python
|
tests/models/wrappers/test_autorecursive.py
|
tug-cps/datamodels
|
ae0e59e29e07648c414218c5b4d972d2c8f48a68
|
[
"MIT"
] | null | null | null |
tests/models/wrappers/test_autorecursive.py
|
tug-cps/datamodels
|
ae0e59e29e07648c414218c5b4d972d2c8f48a68
|
[
"MIT"
] | null | null | null |
tests/models/wrappers/test_autorecursive.py
|
tug-cps/datamodels
|
ae0e59e29e07648c414218c5b4d972d2c8f48a68
|
[
"MIT"
] | null | null | null |
import numpy as np
from datamodels import Model
from datamodels.wrappers import AutoRecursive
def test_predict_without_inputs():
lookback = 0
predictions = 10
number_input_features = 1
number_output_features = number_input_features
class TestModel(Model):
def __init__(self) -> None:
super().__init__()
self.x_shape = (lookback + 1, number_input_features)
self.y_shape = (1, number_output_features)
def predict_model(self, x):
# predicts zeros, one time-step (batch, 1, input features = output features)
return np.zeros((x.shape[0], 1, x.shape[2]))
model = TestModel()
x = np.ones((1, lookback + 1, number_input_features))
y_true = np.zeros((predictions, number_output_features))
wrapper = AutoRecursive(model)
y_pred = wrapper.predict(x[0], predictions)
assert np.all(np.isclose(y_pred, y_true))
def test_predict_with_inputs():
lookback = 0
predictions = 10
number_input_features = 1
number_inputs = 3
number_output_features = 1
class TestModel(Model):
def __init__(self) -> None:
super().__init__()
self.x_shape = (lookback + 1, number_input_features)
self.y_shape = (1, number_output_features)
def predict_model(self, x):
# predicts zeros, one time-step (batch, 1, output features)
return np.zeros((x.shape[0], 1, number_output_features))
model = TestModel()
x = np.ones((1, lookback + 1, number_input_features))
inputs = np.random.random((predictions, lookback + 1, number_inputs))
y_true = np.zeros((predictions, number_output_features))
wrapper = AutoRecursive(model)
y_pred = wrapper.predict(x[0], predictions, inputs)
assert np.all(np.isclose(y_pred, y_true))
| 30.04918
| 88
| 0.658483
| 236
| 1,833
| 4.834746
| 0.211864
| 0.06135
| 0.116564
| 0.07362
| 0.755478
| 0.755478
| 0.755478
| 0.755478
| 0.755478
| 0.641543
| 0
| 0.02
| 0.236225
| 1,833
| 61
| 89
| 30.04918
| 0.795
| 0.072013
| 0
| 0.682927
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.04878
| 1
| 0.146341
| false
| 0
| 0.073171
| 0.04878
| 0.317073
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
5ad8be9d87245913d83ef50d5f24e47143550388
| 416
|
py
|
Python
|
misago/misago/threads/checksums.py
|
vascoalramos/misago-deployment
|
20226072138403108046c0afad9d99eb4163cedc
|
[
"MIT"
] | 2
|
2021-03-06T21:06:13.000Z
|
2021-03-09T15:05:12.000Z
|
misago/misago/threads/checksums.py
|
vascoalramos/misago-deployment
|
20226072138403108046c0afad9d99eb4163cedc
|
[
"MIT"
] | null | null | null |
misago/misago/threads/checksums.py
|
vascoalramos/misago-deployment
|
20226072138403108046c0afad9d99eb4163cedc
|
[
"MIT"
] | null | null | null |
from ..markup import checksums
def is_post_valid(post):
valid_checksum = make_post_checksum(post)
return post.checksum == valid_checksum
def make_post_checksum(post):
post_seeds = [str(v) for v in (post.id, str(post.posted_on.date()))]
return checksums.make_checksum(post.parsed, post_seeds)
def update_post_checksum(post):
post.checksum = make_post_checksum(post)
return post.checksum
| 24.470588
| 72
| 0.747596
| 61
| 416
| 4.836066
| 0.360656
| 0.284746
| 0.216949
| 0.20339
| 0.311864
| 0.311864
| 0.311864
| 0.311864
| 0
| 0
| 0
| 0
| 0.151442
| 416
| 16
| 73
| 26
| 0.835694
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.3
| false
| 0
| 0.1
| 0
| 0.7
| 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
| 1
| 0
|
0
| 5
|
5adcfc05ec30aa7c05cad2644b172c2bd6db41f8
| 68
|
py
|
Python
|
deceptionlogic/api/__init__.py
|
deceptionlogic/deception-api
|
08b0366eb1b970c0c8375dc889a970566b5431e5
|
[
"MIT"
] | 3
|
2018-02-03T19:05:43.000Z
|
2020-06-16T11:22:05.000Z
|
deceptionlogic/api/__init__.py
|
deceptionlogic/deception-api
|
08b0366eb1b970c0c8375dc889a970566b5431e5
|
[
"MIT"
] | null | null | null |
deceptionlogic/api/__init__.py
|
deceptionlogic/deception-api
|
08b0366eb1b970c0c8375dc889a970566b5431e5
|
[
"MIT"
] | null | null | null |
"""
DeceptionLogic API Client Module
"""
from .client import Client
| 13.6
| 32
| 0.75
| 8
| 68
| 6.375
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.147059
| 68
| 4
| 33
| 17
| 0.87931
| 0.470588
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
5af8e95639c5b0b33acc0944f6a6771d901be6cf
| 21
|
py
|
Python
|
pattern/heartpattern.py
|
keviv12/python-practice
|
5f5f8fc0d245b6d2670222e3a3f88ca6db288862
|
[
"MIT"
] | null | null | null |
pattern/heartpattern.py
|
keviv12/python-practice
|
5f5f8fc0d245b6d2670222e3a3f88ca6db288862
|
[
"MIT"
] | null | null | null |
pattern/heartpattern.py
|
keviv12/python-practice
|
5f5f8fc0d245b6d2670222e3a3f88ca6db288862
|
[
"MIT"
] | null | null | null |
print("heart print")
| 10.5
| 20
| 0.714286
| 3
| 21
| 5
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.095238
| 21
| 1
| 21
| 21
| 0.789474
| 0
| 0
| 0
| 0
| 0
| 0.52381
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 1
| 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
| 1
|
0
| 5
|
517dbd9cd79291eb254f3f38c2c303aef32b6b60
| 98
|
py
|
Python
|
Python learn scripts/pattern3.py
|
Akshaychdev/Python-Scripts-Notebooks
|
f4246c0d7310abaf0b88c4e0f45807d5ab004d88
|
[
"MIT"
] | null | null | null |
Python learn scripts/pattern3.py
|
Akshaychdev/Python-Scripts-Notebooks
|
f4246c0d7310abaf0b88c4e0f45807d5ab004d88
|
[
"MIT"
] | null | null | null |
Python learn scripts/pattern3.py
|
Akshaychdev/Python-Scripts-Notebooks
|
f4246c0d7310abaf0b88c4e0f45807d5ab004d88
|
[
"MIT"
] | null | null | null |
for i in range(1,6):
for j in range (1,i):
print (j, end = '')
print ( )
| 16.333333
| 27
| 0.408163
| 16
| 98
| 2.5
| 0.5625
| 0.35
| 0.4
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.053571
| 0.428571
| 98
| 5
| 28
| 19.6
| 0.660714
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.5
| 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
| 1
|
0
| 5
|
51c68b189215372b81a3c019fa76781514556c49
| 210
|
py
|
Python
|
examples/reservation/createReservationsJinja2/getAllBusinessGroups.py
|
torchedplatypi/vra7-rest-wrapper
|
11553fbba8037f7131a50247d9478a75265b42f9
|
[
"MIT"
] | 18
|
2015-07-07T19:18:38.000Z
|
2019-07-19T07:39:17.000Z
|
examples/reservation/createReservationsJinja2/getAllBusinessGroups.py
|
torchedplatypi/vra7-rest-wrapper
|
11553fbba8037f7131a50247d9478a75265b42f9
|
[
"MIT"
] | 5
|
2015-08-14T17:02:26.000Z
|
2017-05-23T08:43:36.000Z
|
examples/reservation/createReservationsJinja2/getAllBusinessGroups.py
|
torchedplatypi/vra7-rest-wrapper
|
11553fbba8037f7131a50247d9478a75265b42f9
|
[
"MIT"
] | 24
|
2015-08-14T09:12:44.000Z
|
2021-05-04T16:30:08.000Z
|
#!/usr/bin/python
import json
import getpass
from vraapiclient import reservation
from globalconfig import url,usr,passwd
client = reservation.ReservationClient(url,usr,passwd)
client.getAllBusinessGroups()
| 19.090909
| 54
| 0.828571
| 25
| 210
| 6.96
| 0.6
| 0.068966
| 0.137931
| 0.206897
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.095238
| 210
| 10
| 55
| 21
| 0.915789
| 0.07619
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.5
| 0.666667
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 0
|
0
| 5
|
51d61de57441c4218f80120a3503a8bdeac38865
| 258
|
py
|
Python
|
src/scs_host/bus/__init__.py
|
south-coast-science/scs_host_bbe_southern
|
007243c22f2ff258a8748b577c79806b6571c920
|
[
"MIT"
] | 1
|
2021-11-30T07:10:56.000Z
|
2021-11-30T07:10:56.000Z
|
src/scs_host/bus/__init__.py
|
south-coast-science/scs_host_bbe_southern
|
007243c22f2ff258a8748b577c79806b6571c920
|
[
"MIT"
] | 1
|
2020-07-13T14:54:08.000Z
|
2020-11-16T10:11:04.000Z
|
src/scs_host/bus/__init__.py
|
south-coast-science/scs_host_bbe_southern
|
007243c22f2ff258a8748b577c79806b6571c920
|
[
"MIT"
] | 2
|
2017-11-07T16:59:02.000Z
|
2019-09-29T15:39:37.000Z
|
"""
Created on 25 Dec 2020
@author: Bruno Beloff (bruno.beloff@southcoastscience.com)
"""
from scs_host.bus.i2c import I2C
# --------------------------------------------------------------------------------------------------------------------
I2C.init()
| 19.846154
| 118
| 0.387597
| 21
| 258
| 4.714286
| 0.809524
| 0.222222
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.038298
| 0.089147
| 258
| 12
| 119
| 21.5
| 0.382979
| 0.775194
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
cf92b7b35ba529edc389d41b02493eaea603aa9d
| 98
|
py
|
Python
|
inno_tim/mainapp/admin.py
|
malfin/INNO_TIM_HACKATON
|
899f9924a4d31d32ccd92a8a2b9e553daf1e5588
|
[
"Apache-2.0"
] | null | null | null |
inno_tim/mainapp/admin.py
|
malfin/INNO_TIM_HACKATON
|
899f9924a4d31d32ccd92a8a2b9e553daf1e5588
|
[
"Apache-2.0"
] | null | null | null |
inno_tim/mainapp/admin.py
|
malfin/INNO_TIM_HACKATON
|
899f9924a4d31d32ccd92a8a2b9e553daf1e5588
|
[
"Apache-2.0"
] | null | null | null |
from django.contrib import admin
from mainapp.models import Command
admin.site.register(Command)
| 19.6
| 34
| 0.836735
| 14
| 98
| 5.857143
| 0.714286
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.102041
| 98
| 5
| 35
| 19.6
| 0.931818
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.666667
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
cf9cd117474a351e79e4a1fd3a443560ba906a37
| 139
|
py
|
Python
|
optim/__init__.py
|
ryuji0123/tmp
|
030d1ae5a55657c4c29490b45011b6b42864c85b
|
[
"MIT"
] | 10
|
2021-02-20T17:12:35.000Z
|
2022-03-23T09:51:01.000Z
|
optim/__init__.py
|
ryuji0123/tmp
|
030d1ae5a55657c4c29490b45011b6b42864c85b
|
[
"MIT"
] | 12
|
2021-03-01T01:04:32.000Z
|
2021-04-04T12:43:36.000Z
|
optim/__init__.py
|
ryuji0123/tmp
|
030d1ae5a55657c4c29490b45011b6b42864c85b
|
[
"MIT"
] | 6
|
2021-03-03T08:08:35.000Z
|
2021-11-09T10:47:33.000Z
|
from optim.get_optimizer import get_optimizer
from optim.get_scheduler import get_scheduler
__all__ = ['get_optimizer', 'get_scheduler']
| 23.166667
| 45
| 0.827338
| 19
| 139
| 5.526316
| 0.368421
| 0.342857
| 0.228571
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.100719
| 139
| 5
| 46
| 27.8
| 0.84
| 0
| 0
| 0
| 0
| 0
| 0.18705
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.666667
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
cfa5548d593caa21cbd5090986a7ba8bdd8cc61b
| 110
|
py
|
Python
|
connexion_tornado/__init__.py
|
rafaelcaricio/connexion-tornado
|
67b722442ffd9558f74efe87a97d7f55d200fd8b
|
[
"MIT"
] | null | null | null |
connexion_tornado/__init__.py
|
rafaelcaricio/connexion-tornado
|
67b722442ffd9558f74efe87a97d7f55d200fd8b
|
[
"MIT"
] | null | null | null |
connexion_tornado/__init__.py
|
rafaelcaricio/connexion-tornado
|
67b722442ffd9558f74efe87a97d7f55d200fd8b
|
[
"MIT"
] | null | null | null |
class TornadoApp:
def add_api(self, yaml=None):
pass
def listen(self, port):
pass
| 11
| 33
| 0.563636
| 14
| 110
| 4.357143
| 0.785714
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.345455
| 110
| 9
| 34
| 12.222222
| 0.847222
| 0
| 0
| 0.4
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.4
| false
| 0.4
| 0
| 0
| 0.6
| 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
| 1
| 0
| 0
| 1
| 0
|
0
| 5
|
cfde313a11ce38d883387be57f4dfbe7f8fe82ce
| 85
|
py
|
Python
|
custom_run.py
|
altcnews/bitmex_grid
|
730345267d707ea19972a24182ab5a814caf1a28
|
[
"Apache-2.0"
] | 1
|
2020-08-20T13:17:54.000Z
|
2020-08-20T13:17:54.000Z
|
custom_run.py
|
altcnews/bitmex_grid
|
730345267d707ea19972a24182ab5a814caf1a28
|
[
"Apache-2.0"
] | null | null | null |
custom_run.py
|
altcnews/bitmex_grid
|
730345267d707ea19972a24182ab5a814caf1a28
|
[
"Apache-2.0"
] | 2
|
2019-12-31T13:26:06.000Z
|
2020-03-02T13:47:18.000Z
|
#!/usr/bin/env python
from market_maker import custom_strategy
custom_strategy.run()
| 21.25
| 40
| 0.823529
| 13
| 85
| 5.153846
| 0.846154
| 0.41791
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.082353
| 85
| 4
| 41
| 21.25
| 0.858974
| 0.235294
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
cfe17060e2f1983f98b3fe9d79276995cfc5e8f8
| 235
|
py
|
Python
|
gentle/__init__.py
|
wkranti/gentle
|
4968736849cd5b307654be4fd0a8e7af12bf2f6b
|
[
"MIT"
] | 3
|
2017-03-19T09:12:50.000Z
|
2020-05-08T10:55:21.000Z
|
gentle/__init__.py
|
wkranti/gentle
|
4968736849cd5b307654be4fd0a8e7af12bf2f6b
|
[
"MIT"
] | 1
|
2017-01-28T22:45:40.000Z
|
2017-01-31T01:18:39.000Z
|
gentle/__init__.py
|
wkranti/gentle
|
4968736849cd5b307654be4fd0a8e7af12bf2f6b
|
[
"MIT"
] | 1
|
2020-05-09T17:42:58.000Z
|
2020-05-09T17:42:58.000Z
|
from __version__ import __version__
from resources import Resources
from forced_aligner import ForcedAligner
from full_transcriber import FullTranscriber
from resample import resample, resampled
from transcription import Transcription
| 33.571429
| 44
| 0.889362
| 27
| 235
| 7.37037
| 0.481481
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.106383
| 235
| 6
| 45
| 39.166667
| 0.947619
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
321071fd3c147ddd361f9375294f24b10b3a224d
| 142
|
py
|
Python
|
mediatracker/movies/views.py
|
theKeithSequeira/MediaTracker
|
529ac75032f9856d2dff0ed34bd1c71d37aae4cb
|
[
"MIT"
] | null | null | null |
mediatracker/movies/views.py
|
theKeithSequeira/MediaTracker
|
529ac75032f9856d2dff0ed34bd1c71d37aae4cb
|
[
"MIT"
] | null | null | null |
mediatracker/movies/views.py
|
theKeithSequeira/MediaTracker
|
529ac75032f9856d2dff0ed34bd1c71d37aae4cb
|
[
"MIT"
] | null | null | null |
from django.shortcuts import render
# Create your views here.
def movie_list(request):
return render(request,'movies/movie_list.html',{})
| 28.4
| 54
| 0.767606
| 20
| 142
| 5.35
| 0.8
| 0.168224
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.119718
| 142
| 5
| 54
| 28.4
| 0.856
| 0.161972
| 0
| 0
| 0
| 0
| 0.186441
| 0.186441
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0.333333
| 0.333333
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 1
| 0
| 0
|
0
| 5
|
5c703c95a3511e23ea36cf3f6e222803090b64fe
| 166
|
py
|
Python
|
jigsaw/models/bbox/testing/data.py
|
autognc/jigsaw
|
1eee82bbbccecc9dddd140cfef87b6126fa36af9
|
[
"MIT"
] | 3
|
2019-03-13T20:44:22.000Z
|
2019-03-27T22:07:41.000Z
|
jigsaw/models/bbox/testing/data.py
|
autognc/jigsaw
|
1eee82bbbccecc9dddd140cfef87b6126fa36af9
|
[
"MIT"
] | 23
|
2019-03-12T22:38:06.000Z
|
2020-04-04T00:59:38.000Z
|
jigsaw/models/bbox/testing/data.py
|
autognc/jigsaw
|
1eee82bbbccecc9dddd140cfef87b6126fa36af9
|
[
"MIT"
] | null | null | null |
import os
from pathlib import Path
def sample_data_path():
parent_dir = os.path.dirname(os.path.realpath(__file__))
return Path(parent_dir) / "sample_data"
| 20.75
| 60
| 0.746988
| 25
| 166
| 4.6
| 0.56
| 0.173913
| 0.226087
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.150602
| 166
| 7
| 61
| 23.714286
| 0.815603
| 0
| 0
| 0
| 0
| 0
| 0.066265
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0
| 0.4
| 0
| 0.8
| 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
| 1
| 0
|
0
| 5
|
5cb8f4154f33b05125ae7034dc4213a3a88c13a5
| 763
|
py
|
Python
|
tests/unit_tests/test_accounts/factories.py
|
amakarudze/activity_generator
|
8ca4d061ea68fec77928dc3f21dca60e56c68432
|
[
"BSD-3-Clause"
] | null | null | null |
tests/unit_tests/test_accounts/factories.py
|
amakarudze/activity_generator
|
8ca4d061ea68fec77928dc3f21dca60e56c68432
|
[
"BSD-3-Clause"
] | null | null | null |
tests/unit_tests/test_accounts/factories.py
|
amakarudze/activity_generator
|
8ca4d061ea68fec77928dc3f21dca60e56c68432
|
[
"BSD-3-Clause"
] | null | null | null |
import factory
from faker import Factory as FakerFactory
from pytest_factoryboy import register
from accounts.models import User
faker = FakerFactory.create()
class UserFactory(factory.django.DjangoModelFactory):
class Meta:
model = User
first_name = factory.LazyAttribute(lambda x: faker.first_name())
last_name = factory.LazyAttribute(lambda x: faker.last_name())
email = factory.LazyAttribute(lambda x: faker.email())
password = factory.LazyAttribute(lambda x: faker.password())
class TokenFactory(factory.Factory):
class Meta:
model = User
email = factory.LazyAttribute(lambda x: faker.email())
password = factory.LazyAttribute(lambda x: faker.password())
register(UserFactory)
register(TokenFactory)
| 25.433333
| 68
| 0.747051
| 88
| 763
| 6.420455
| 0.318182
| 0.212389
| 0.276106
| 0.286726
| 0.446018
| 0.446018
| 0.318584
| 0.318584
| 0.318584
| 0.318584
| 0
| 0
| 0.161206
| 763
| 29
| 69
| 26.310345
| 0.882813
| 0
| 0
| 0.421053
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.105263
| 0.210526
| 0
| 0.736842
| 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
| 1
| 0
| 0
| 1
| 0
|
0
| 5
|
8f9e0a5830e7aa084d5e95eb566cd9edcc85ecba
| 81
|
py
|
Python
|
src/issuebranch/exceptions.py
|
rca/issuebranch
|
525dbb30617fe452aba32613b50eca2420f22040
|
[
"Apache-2.0"
] | null | null | null |
src/issuebranch/exceptions.py
|
rca/issuebranch
|
525dbb30617fe452aba32613b50eca2420f22040
|
[
"Apache-2.0"
] | 2
|
2017-07-29T13:34:32.000Z
|
2021-09-15T21:25:35.000Z
|
src/issuebranch/exceptions.py
|
rca/issuebranch
|
525dbb30617fe452aba32613b50eca2420f22040
|
[
"Apache-2.0"
] | 3
|
2017-07-27T16:48:58.000Z
|
2018-08-01T18:57:44.000Z
|
class CommandError(Exception):
pass
class PrefixError(Exception):
pass
| 11.571429
| 30
| 0.728395
| 8
| 81
| 7.375
| 0.625
| 0.440678
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.197531
| 81
| 6
| 31
| 13.5
| 0.907692
| 0
| 0
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.5
| 0
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
|
0
| 5
|
8fa1b064d9a35df62872e53a76b65480d7a4da74
| 1,877
|
py
|
Python
|
tests/time/test_time_covariance.py
|
jungtaekkim/bayeso
|
d11c9ff8037cf7fd3f9b41362eaab120f1224c71
|
[
"MIT"
] | 76
|
2018-01-18T03:03:14.000Z
|
2022-02-07T06:41:41.000Z
|
tests/time/test_time_covariance.py
|
POSTECH-CVLab/bayeso
|
d11c9ff8037cf7fd3f9b41362eaab120f1224c71
|
[
"MIT"
] | 20
|
2018-06-29T16:48:03.000Z
|
2021-04-19T00:30:57.000Z
|
tests/time/test_time_covariance.py
|
POSTECH-CVLab/bayeso
|
d11c9ff8037cf7fd3f9b41362eaab120f1224c71
|
[
"MIT"
] | 4
|
2020-01-07T06:24:17.000Z
|
2021-06-11T06:21:42.000Z
|
import numpy as np
import time
import pytest
from bayeso import covariance
from bayeso.utils import utils_covariance
num_rounds = 100
def _cov_main_vector(str_cov, num_dim, num_X, num_Xs):
cur_hyps = utils_covariance.get_hyps(str_cov, num_dim)
cov_ = covariance.cov_main(str_cov, np.zeros((num_X, num_dim)), np.zeros((num_Xs, num_dim)), cur_hyps, False, jitter=0.001)
return cov_
def _cov_main_set(str_cov, num_dim, num_inst_X, num_inst_Xs, num_set_X, num_set_Xs):
cur_hyps = utils_covariance.get_hyps(str_cov, num_dim)
cov_ = covariance.cov_main(str_cov, np.zeros((num_set_X, num_inst_X, num_dim)), np.zeros((num_set_Xs, num_inst_Xs, num_dim)), cur_hyps, False, jitter=0.001)
return cov_
@pytest.mark.timeout(50)
def test_cov_se(benchmark):
cov_ = benchmark.pedantic(_cov_main_vector, args=('se', 3, 1000, 2000), rounds=num_rounds, iterations=1)
print(cov_)
@pytest.mark.timeout(200)
def test_cov_set_se(benchmark):
cov_ = benchmark.pedantic(_cov_main_set, args=('set_se', 3, 100, 200, 10, 40), rounds=num_rounds, iterations=1)
print(cov_)
@pytest.mark.timeout(50)
def test_cov_matern32(benchmark):
cov_ = benchmark.pedantic(_cov_main_vector, args=('matern32', 3, 1000, 2000), rounds=num_rounds, iterations=1)
print(cov_)
@pytest.mark.timeout(200)
def test_cov_set_matern32(benchmark):
cov_ = benchmark.pedantic(_cov_main_set, args=('set_matern32', 3, 100, 200, 10, 40), rounds=num_rounds, iterations=1)
print(cov_)
@pytest.mark.timeout(50)
def test_cov_matern52(benchmark):
cov_ = benchmark.pedantic(_cov_main_vector, args=('matern52', 3, 1000, 2000), rounds=num_rounds, iterations=1)
print(cov_)
@pytest.mark.timeout(200)
def test_cov_set_matern52(benchmark):
cov_ = benchmark.pedantic(_cov_main_set, args=('set_matern52', 3, 100, 200, 10, 40), rounds=num_rounds, iterations=1)
print(cov_)
| 36.803922
| 160
| 0.746937
| 307
| 1,877
| 4.208469
| 0.166124
| 0.05418
| 0.060372
| 0.092879
| 0.821981
| 0.798762
| 0.772446
| 0.744582
| 0.615325
| 0.508514
| 0
| 0.065693
| 0.124134
| 1,877
| 50
| 161
| 37.54
| 0.720195
| 0
| 0
| 0.421053
| 0
| 0
| 0.025573
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.210526
| false
| 0
| 0.131579
| 0
| 0.394737
| 0.157895
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
8fc2e33e2cc127c313810262f346f60140707fb2
| 42,084
|
py
|
Python
|
python/maya/site-packages/pymel-1.0.5/extras/completion/py/maya/_OpenMayaUI.py
|
CountZer0/PipelineConstructionSet
|
0aa73a8a63c72989b2d1c677efd78dad4388d335
|
[
"BSD-3-Clause"
] | 21
|
2015-04-27T05:01:36.000Z
|
2021-11-22T13:45:14.000Z
|
python/maya/site-packages/pymel-1.0.5/extras/completion/py/maya/_OpenMayaUI.py
|
0xb1dd1e/PipelineConstructionSet
|
621349da1b6d1437e95d0c9e48ee9f36d59f19fd
|
[
"BSD-3-Clause"
] | null | null | null |
python/maya/site-packages/pymel-1.0.5/extras/completion/py/maya/_OpenMayaUI.py
|
0xb1dd1e/PipelineConstructionSet
|
621349da1b6d1437e95d0c9e48ee9f36d59f19fd
|
[
"BSD-3-Clause"
] | 7
|
2015-04-11T11:37:19.000Z
|
2020-05-22T09:49:04.000Z
|
def MFnManip3D_lineSize(*args, **kwargs):
pass
def MObjectListFilter_registerFilter(*args, **kwargs):
pass
def new_MDrawRequest(*args, **kwargs):
pass
def MDrawData_geometry(*args, **kwargs):
pass
def MUiMessage_add3dViewRendererChangedCallback(*args, **kwargs):
pass
def new_MTextureEditorDrawInfo(*args, **kwargs):
pass
def MDrawRequest_displayStyle(*args, **kwargs):
pass
def M3dView_pushName(*args, **kwargs):
pass
def delete_MFnManip3D(*args, **kwargs):
pass
def MDrawRequest_setToken(*args, **kwargs):
pass
def MExternalDropData_urls(*args, **kwargs):
pass
def MFnFreePointTriadManip_className(*args, **kwargs):
pass
def M3dView_endProjMatrixOverride(*args, **kwargs):
pass
def MMaterial_getSpecular(*args, **kwargs):
pass
def new_MFnPointOnCurveManip(*args, **kwargs):
pass
def MProgressWindow_setProgress(*args, **kwargs):
pass
def new_MDeviceChannel(*args, **kwargs):
pass
def MDeviceChannel_longName(*args, **kwargs):
pass
def MFnToggleManip_direction(*args, **kwargs):
pass
def MProgressWindow_endProgress(*args, **kwargs):
pass
def MObjectListFilter_UIname(*args, **kwargs):
pass
def MManipData_asMObject(*args, **kwargs):
pass
def M3dView_usingDefaultMaterial(*args, **kwargs):
pass
def MDrawTraversal_filterNode(*args, **kwargs):
pass
def MFnDistanceManip_swiginit(*args, **kwargs):
pass
def MFnStateManip_swiginit(*args, **kwargs):
pass
def MFnPointOnSurfaceManip_surfaceIndex(*args, **kwargs):
pass
def delete_MSelectInfo(*args, **kwargs):
pass
def new_MFnScaleManip(*args, **kwargs):
pass
def MFnRotateManip_connectToRotationCenterPlug(*args, **kwargs):
pass
def MFnCurveSegmentManip_curveIndex(*args, **kwargs):
pass
def MFnRotateManip_rotationIndex(*args, **kwargs):
pass
def MFnCurveSegmentManip_className(*args, **kwargs):
pass
def delete_MHWShaderSwatchGenerator(*args, **kwargs):
pass
def MFnScaleManip_getOrientation(*args, **kwargs):
pass
def MObjectListFilter_setFilterType(*args, **kwargs):
pass
def MFnManip3D_setHandleSize(*args, **kwargs):
pass
def MDrawRequest_setDisplayCulling(*args, **kwargs):
pass
def MFnScaleManip_getOrientationMode(*args, **kwargs):
pass
def MDrawRequest_setView(*args, **kwargs):
pass
def new_MMaterialArray(*args, **kwargs):
pass
def MQtUtil_toMString(*args, **kwargs):
pass
def M3dView_leadColor(*args, **kwargs):
pass
def MDrawTraversal_leafLevelCulling(*args, **kwargs):
pass
def M3dView_pluginObjectDisplay(*args, **kwargs):
pass
def MEvent_isModifierLeftMouseButton(*args, **kwargs):
pass
def MDrawTraversal_enableFiltering(*args, **kwargs):
pass
def MEvent_swiginit(*args, **kwargs):
pass
def delete_MToolsInfo(*args, **kwargs):
pass
def MMaterialArray_append(*args, **kwargs):
pass
def MEvent_mouseButton(*args, **kwargs):
pass
def MProgressWindow_setProgressStatus(*args, **kwargs):
pass
def MDrawRequest_swiginit(*args, **kwargs):
pass
def MFnRotateManip_isSnapModeOn(*args, **kwargs):
pass
def MQtUtil_swigregister(*args, **kwargs):
pass
def MFnPointOnCurveManip_connectToCurvePlug(*args, **kwargs):
pass
def MMaterial_swiginit(*args, **kwargs):
pass
def M3dView_initNames(*args, **kwargs):
pass
def M3dView_portHeight(*args, **kwargs):
pass
def MFnPointOnSurfaceManip_setDrawSurface(*args, **kwargs):
pass
def MQtUtil_findLayout(*args, **kwargs):
pass
def M3dView_getRendererName(*args, **kwargs):
pass
def M3dView_refresh(*args, **kwargs):
pass
def MManipData_asBool(*args, **kwargs):
pass
def MFnPointOnSurfaceManip_swiginit(*args, **kwargs):
pass
def new_MToolsInfo(*args, **kwargs):
pass
def delete_MFnCurveSegmentManip(*args, **kwargs):
pass
def MFnScaleManip_create(*args, **kwargs):
pass
def new_MUiMessage(*args, **kwargs):
pass
def MFnDiscManip_setNormal(*args, **kwargs):
pass
def new_MFeedbackLine(*args, **kwargs):
pass
def MFnRotateManip_setRotateMode(*args, **kwargs):
pass
def MManipData_asLong(*args, **kwargs):
pass
def M3dView_setDrawColor(*args, **kwargs):
pass
def MFnCircleSweepManip_angleIndex(*args, **kwargs):
pass
def delete_MDrawData(*args, **kwargs):
pass
def MQtUtil_getLayoutChildren(*args, **kwargs):
pass
def MFnPointOnCurveManip_setParameter(*args, **kwargs):
pass
def MFnScaleManip_swigregister(*args, **kwargs):
pass
def MProgressWindow_advanceProgress(*args, **kwargs):
pass
def MProgressWindow_reserve(*args, **kwargs):
pass
def MSelectInfo_swigregister(*args, **kwargs):
pass
def M3dView_colorAtIndex(*args, **kwargs):
pass
def MObjectListFilter_dependentOnSceneUpdates(*args, **kwargs):
pass
def disown_MExternalDropCallback(*args, **kwargs):
pass
def MDrawRequest_setComponent(*args, **kwargs):
pass
def M3dView_isShadeActiveOnly(*args, **kwargs):
pass
def new_MFnFreePointTriadManip(*args, **kwargs):
pass
def delete_MFnPointOnSurfaceManip(*args, **kwargs):
pass
def MExternalDropCallback_swiginit(*args, **kwargs):
pass
def MFnCircleSweepManip_setRadius(*args, **kwargs):
pass
def MDrawTraversal_setPerspFrustum(*args, **kwargs):
pass
def MProgressWindow_isCancelled(*args, **kwargs):
pass
def MEvent_setPosition(*args, **kwargs):
pass
def MExternalDropData_hasText(*args, **kwargs):
pass
def MMaterial_getShininess(*args, **kwargs):
pass
def MDrawRequest_setDrawLast(*args, **kwargs):
pass
def MMaterial_evaluateTexture(*args, **kwargs):
pass
def M3dView_beginProjMatrixOverride(*args, **kwargs):
pass
def MDrawRequestQueue_className(*args, **kwargs):
pass
def new_MCursor(*args, **kwargs):
pass
def MMaterial_evaluateEmission(*args, **kwargs):
pass
def MFnRotateManip_swigregister(*args, **kwargs):
pass
def MFnRotateManip_className(*args, **kwargs):
pass
def MFnCircleSweepManip_axisIndex(*args, **kwargs):
pass
def MFnManip3D_setVisible(*args, **kwargs):
pass
def MFnScaleManip_swiginit(*args, **kwargs):
pass
def M3dView_pushViewport(*args, **kwargs):
pass
def MQtUtil_swiginit(*args, **kwargs):
pass
def MFnCircleSweepManip_setDrawAsArc(*args, **kwargs):
pass
def MFnCurveSegmentManip_connectToCurvePlug(*args, **kwargs):
pass
def MManipData_isSimple(*args, **kwargs):
pass
def MUiMessage_swiginit(*args, **kwargs):
pass
def MUiMessage_addCameraChangedCallback(*args, **kwargs):
pass
def MFnScaleManip_className(*args, **kwargs):
pass
def MDrawInfo_swigregister(*args, **kwargs):
pass
def delete_MDrawInfo(*args, **kwargs):
pass
def M3dView_setPluginObjectDisplay(*args, **kwargs):
pass
def MFnCircleSweepManip_setAngle(*args, **kwargs):
pass
def MFnRotateManip_create(*args, **kwargs):
pass
def M3dView_setColorMask(*args, **kwargs):
pass
def MFnFreePointTriadManip_connectToPointPlug(*args, **kwargs):
pass
def MProgressWindow_progressMin(*args, **kwargs):
pass
def M3dView_worldToView(*args, **kwargs):
pass
def MEvent_isModifierShift(*args, **kwargs):
pass
def MExternalDropCallback_externalDropCallback(*args, **kwargs):
pass
def MDrawTraversal_frustumValid(*args, **kwargs):
pass
def MMaterialArray_assign(*args, **kwargs):
pass
def MEvent_isModifierKeyRelease(*args, **kwargs):
pass
def MExternalDropData_dataSize(*args, **kwargs):
pass
def MObjectListFilter_requireListUpdate(*args, **kwargs):
pass
def MProgressWindow_setProgressMax(*args, **kwargs):
pass
def MDrawInfo_displayStatus(*args, **kwargs):
pass
def MDrawInfo_className(*args, **kwargs):
pass
def MManipData_swiginit(*args, **kwargs):
pass
def MMaterial_evaluateTextureTransformation(*args, **kwargs):
pass
def delete_MDeviceState(*args, **kwargs):
pass
def M3dView_backgroundColorTop(*args, **kwargs):
pass
def MFnStateManip_stateIndex(*args, **kwargs):
pass
def MSelectInfo_swiginit(*args, **kwargs):
pass
def MDeviceState_setDevicePosition(*args, **kwargs):
pass
def MFnToggleManip_create(*args, **kwargs):
pass
def MFnScaleManip_isSnapModeOn(*args, **kwargs):
pass
def MFnDirectionManip_swiginit(*args, **kwargs):
pass
def M3dView_setDrawColorAndAlpha(*args, **kwargs):
pass
def delete_MMaterial(*args, **kwargs):
pass
def MFnCircleSweepManip_setStartPoint(*args, **kwargs):
pass
def MFnManip3D_setOptimizePlayback(*args, **kwargs):
pass
def delete_MObjectListFilter(*args, **kwargs):
pass
def M3dView_xrayJoints(*args, **kwargs):
pass
def MDrawInfo_objectDisplayStatus(*args, **kwargs):
pass
def MExternalDropData_mouseButtons(*args, **kwargs):
pass
def MFnDirectionManip_endPointIndex(*args, **kwargs):
pass
def delete_MFnCircleSweepManip(*args, **kwargs):
pass
def M3dView_applicationShell(*args, **kwargs):
pass
def M3dView_textureMode(*args, **kwargs):
pass
def MQtUtil_fullName(*args, **kwargs):
pass
def MFnDistanceManip_startPointIndex(*args, **kwargs):
pass
def MFnDistanceManip_directionIndex(*args, **kwargs):
pass
def delete_MProgressWindow(*args, **kwargs):
pass
def MDrawInfo_completelyInside(*args, **kwargs):
pass
def MDrawRequest_view(*args, **kwargs):
pass
def MDrawTraversal_filteringEnabled(*args, **kwargs):
pass
def M3dView_viewport(*args, **kwargs):
pass
def M3dView_setObjectDisplay(*args, **kwargs):
pass
def MFnPointOnCurveManip_paramIndex(*args, **kwargs):
pass
def MDrawRequest_displayCulling(*args, **kwargs):
pass
def MFnCurveSegmentManip_connectToEndParamPlug(*args, **kwargs):
pass
def MObjectListFilter_swigregister(*args, **kwargs):
pass
def MDrawData_swigregister(*args, **kwargs):
pass
def MDrawRequest_swigregister(*args, **kwargs):
pass
def M3dView_projectionMatrix(*args, **kwargs):
pass
def MExternalDropData_text(*args, **kwargs):
pass
def MFnDistanceManip_create(*args, **kwargs):
pass
def MFnFreePointTriadManip_create(*args, **kwargs):
pass
def MObjectListFilter_deregisterFilter(*args, **kwargs):
pass
def MQtUtil_findControl(*args, **kwargs):
pass
def MFnToggleManip_setStartPoint(*args, **kwargs):
pass
def MMaterialArray_setLength(*args, **kwargs):
pass
def MManipData_asShort(*args, **kwargs):
pass
def M3dView_getLightPath(*args, **kwargs):
pass
def MDeviceChannel_swigregister(*args, **kwargs):
pass
def MFnToggleManip_startPoint(*args, **kwargs):
pass
def M3dView_active3dView(*args, **kwargs):
pass
def MUiMessage_swigregister(*args, **kwargs):
pass
def MFnPointOnSurfaceManip_isDrawSurfaceOn(*args, **kwargs):
pass
def MFnDiscManip_setRadius(*args, **kwargs):
pass
def M3dView_setCamera(*args, **kwargs):
pass
def M3dView_isVisible(*args, **kwargs):
pass
def MFnCircleSweepManip_endCircleIndex(*args, **kwargs):
pass
def MFnScaleManip_setInitialScale(*args, **kwargs):
pass
def MQtUtil_addWidgetToMayaLayout(*args, **kwargs):
pass
def MFnCurveSegmentManip_create(*args, **kwargs):
pass
def MFnDistanceManip_isDrawStartOn(*args, **kwargs):
pass
def MSelectInfo_selectOnHilitedOnly(*args, **kwargs):
pass
def M3dView_activeAffectedColor(*args, **kwargs):
pass
def new_MMaterial(*args, **kwargs):
pass
def M3dView_xray(*args, **kwargs):
pass
def delete_MFeedbackLine(*args, **kwargs):
pass
def MFnCircleSweepManip_startCircleIndex(*args, **kwargs):
pass
def MFnDistanceManip_swigregister(*args, **kwargs):
pass
def MDrawRequestQueue_assign(*args, **kwargs):
pass
def M3dView_setShowViewSelectedChildren(*args, **kwargs):
pass
def MFnPointOnCurveManip_className(*args, **kwargs):
pass
def MFnPointOnCurveManip_connectToParamPlug(*args, **kwargs):
pass
def MMaterial_swigregister(*args, **kwargs):
pass
def MProgressWindow_swiginit(*args, **kwargs):
pass
def MFnDistanceManip_setDirection(*args, **kwargs):
pass
def MFnDirectionManip_setDrawStart(*args, **kwargs):
pass
def MFnDiscManip_centerIndex(*args, **kwargs):
pass
def MFnFreePointTriadManip_swigregister(*args, **kwargs):
pass
def MObjectListFilter_filterType(*args, **kwargs):
pass
def delete_MCursor(*args, **kwargs):
pass
def new_MHWShaderSwatchGenerator(*args, **kwargs):
pass
def MFnToggleManip_toggle(*args, **kwargs):
pass
def MFnScaleManip_scaleCenterIndex(*args, **kwargs):
pass
def MCursor_swigregister(*args, **kwargs):
pass
def MFnToggleManip_swigregister(*args, **kwargs):
pass
def MCursor___eq__(*args, **kwargs):
pass
def delete_MEvent(*args, **kwargs):
pass
def delete_MExternalDropData(*args, **kwargs):
pass
def M3dView_twoSidedLighting(*args, **kwargs):
pass
def MHWShaderSwatchGenerator_swigregister(*args, **kwargs):
pass
def M3dView_referenceLayerColor(*args, **kwargs):
pass
def delete_MTextureEditorDrawInfo(*args, **kwargs):
pass
def MFnManip3D_deleteManipulator(*args, **kwargs):
pass
def MFnRotateManip_displayWithNode(*args, **kwargs):
pass
def MFnCircleSweepManip_centerIndex(*args, **kwargs):
pass
def MFnManip3D_swigregister(*args, **kwargs):
pass
def MFnDistanceManip_className(*args, **kwargs):
pass
def MExternalDropData_hasImage(*args, **kwargs):
pass
def new_M3dView(*args, **kwargs):
pass
def delete_MExternalDropCallback(*args, **kwargs):
pass
def MExternalDropData_image(*args, **kwargs):
pass
def new_MDrawData(*args, **kwargs):
pass
def M3dView_getM3dViewFromModelPanel(*args, **kwargs):
pass
def M3dView_backgroundColor(*args, **kwargs):
pass
def MFnFreePointTriadManip_pointIndex(*args, **kwargs):
pass
def MFnScaleManip_connectToScaleCenterPlug(*args, **kwargs):
pass
def MQtUtil_registerUIType(*args, **kwargs):
pass
def MDrawRequest_setDisplayCullOpposite(*args, **kwargs):
pass
def MFnFreePointTriadManip_setPoint(*args, **kwargs):
pass
def M3dView_activeTemplateColor(*args, **kwargs):
pass
def M3dView_colorMask(*args, **kwargs):
pass
def MEvent_getWindowPosition(*args, **kwargs):
pass
def MDrawInfo_getPrototype(*args, **kwargs):
pass
def MExternalDropCallback_swigregister(*args, **kwargs):
pass
def MFnDistanceManip_setDrawStart(*args, **kwargs):
pass
def MDrawRequest_setMaterial(*args, **kwargs):
pass
def MMaterialArray_swiginit(*args, **kwargs):
pass
def MSelectInfo_view(*args, **kwargs):
pass
def MProgressWindow_setProgressMin(*args, **kwargs):
pass
def M3dView_setMultipleDrawPassCount(*args, **kwargs):
pass
def MFnScaleManip_setSnapIncrement(*args, **kwargs):
pass
def MTextureEditorDrawInfo_className(*args, **kwargs):
pass
def MMaterialArray_remove(*args, **kwargs):
pass
def MDeviceChannel_parent(*args, **kwargs):
pass
def MFnToggleManip_setLength(*args, **kwargs):
pass
def MMaterialArray_length(*args, **kwargs):
pass
def MDrawRequest_drawData(*args, **kwargs):
pass
def MFnStateManip_setInitialState(*args, **kwargs):
pass
def MFnCircleSweepManip_setNormal(*args, **kwargs):
pass
def MFnDiscManip_swigregister(*args, **kwargs):
pass
def M3dView_endSelect(*args, **kwargs):
pass
def MFnDirectionManip_setDirection(*args, **kwargs):
pass
def MExternalDropData_swigregister(*args, **kwargs):
pass
def delete_MFnDirectionManip(*args, **kwargs):
pass
def MFeedbackLine_className(*args, **kwargs):
pass
def MQtUtil_getParent(*args, **kwargs):
pass
def MSelectInfo_selectableComponent(*args, **kwargs):
pass
def M3dView_get3dView(*args, **kwargs):
pass
def MDrawRequest_displayStatus(*args, **kwargs):
pass
def M3dView_objectDisplay(*args, **kwargs):
pass
def MEvent_className(*args, **kwargs):
pass
def M3dView_viewToObjectSpace(*args, **kwargs):
pass
def MDrawInfo_projectionMatrix(*args, **kwargs):
pass
def MEvent_modifiers(*args, **kwargs):
pass
def M3dView_rendererString(*args, **kwargs):
pass
def MFnDiscManip_className(*args, **kwargs):
pass
def M3dView_popViewport(*args, **kwargs):
pass
def MProgressWindow_progressMax(*args, **kwargs):
pass
def MFnRotateManip_setSnapIncrement(*args, **kwargs):
pass
def MDrawTraversal_setLeafLevelCulling(*args, **kwargs):
pass
def M3dView_hiliteColor(*args, **kwargs):
pass
def M3dView_showObjectFilterNameInHUD(*args, **kwargs):
pass
def MMaterialArray_insert(*args, **kwargs):
pass
def MQtUtil_deregisterUIType(*args, **kwargs):
pass
def MSelectInfo_setHighestPriority(*args, **kwargs):
pass
def MMaterial_textureImage(*args, **kwargs):
pass
def delete_MDeviceChannel(*args, **kwargs):
pass
def MFnToggleManip_className(*args, **kwargs):
pass
def MDeviceState_buttonState(*args, **kwargs):
pass
def MManipData_asUnsigned(*args, **kwargs):
pass
def M3dView_getScreenPosition(*args, **kwargs):
pass
def M3dView_multipleDrawEnabled(*args, **kwargs):
pass
def MMaterial_evaluateShininess(*args, **kwargs):
pass
def MFeedbackLine_setShowFeedback(*args, **kwargs):
pass
def MFnPointOnSurfaceManip_setParameters(*args, **kwargs):
pass
def MFnCircleSweepManip_swigregister(*args, **kwargs):
pass
def new_MSelectInfo(*args, **kwargs):
pass
def MFeedbackLine_swiginit(*args, **kwargs):
pass
def MFnPointOnSurfaceManip_paramIndex(*args, **kwargs):
pass
def MFnFreePointTriadManip_isSnapModeOn(*args, **kwargs):
pass
def MFnManip3D_setLineSize(*args, **kwargs):
pass
def MSelectInfo_selectPath(*args, **kwargs):
pass
def MFnDirectionManip_directionIndex(*args, **kwargs):
pass
def MDrawInfo_swiginit(*args, **kwargs):
pass
def M3dView_portWidth(*args, **kwargs):
pass
def MDrawInfo_inSelect(*args, **kwargs):
pass
def MDrawData_className(*args, **kwargs):
pass
def MDrawRequest_setDisplayStyle(*args, **kwargs):
pass
def MDrawRequest_assign(*args, **kwargs):
pass
def M3dView_setDisallowPolygonOffset(*args, **kwargs):
pass
def MDrawInfo_canDrawComponent(*args, **kwargs):
pass
def MFnScaleManip_setOrientation(*args, **kwargs):
pass
def MDrawRequest_matrix(*args, **kwargs):
pass
def MEvent_isModifierMiddleMouseButton(*args, **kwargs):
pass
def MMaterialArray_clear(*args, **kwargs):
pass
def MDrawRequestQueue_swigregister(*args, **kwargs):
pass
def MProgressWindow_startProgress(*args, **kwargs):
pass
def MHWShaderSwatchGenerator_swiginit(*args, **kwargs):
pass
def SWIG_PyInstanceMethod_New(*args, **kwargs):
pass
def MFnStateManip_state(*args, **kwargs):
pass
def MToolsInfo_swiginit(*args, **kwargs):
pass
def MProgressWindow_setInterruptable(*args, **kwargs):
pass
def MQtUtil_getCurrentParent(*args, **kwargs):
pass
def MDrawRequest_className(*args, **kwargs):
pass
def MDeviceChannel_childByIndex(*args, **kwargs):
pass
def MFnToggleManip_directionIndex(*args, **kwargs):
pass
def MFnPointOnCurveManip_curvePoint(*args, **kwargs):
pass
def MToolsInfo_className(*args, **kwargs):
pass
def delete_MDrawRequestQueue(*args, **kwargs):
pass
def M3dView_readBufferTo2dTexture(*args, **kwargs):
pass
def MSelectInfo_selectClosest(*args, **kwargs):
pass
def MFnDiscManip_setCenterPoint(*args, **kwargs):
pass
def MFnManip3D_swiginit(*args, **kwargs):
pass
def MFnCurveSegmentManip_endParameter(*args, **kwargs):
pass
def MFeedbackLine_showFeedback(*args, **kwargs):
pass
def MExternalDropCallback_removeCallback(*args, **kwargs):
pass
def MDrawRequest_isTransparent(*args, **kwargs):
pass
def MUiMessage_add3dViewRenderOverrideChangedCallback(*args, **kwargs):
pass
def MFnScaleManip_setSnapMode(*args, **kwargs):
pass
def M3dView_setMultipleDrawEnable(*args, **kwargs):
pass
def M3dView_numActiveColors(*args, **kwargs):
pass
def MFnScaleManip_displayWithNode(*args, **kwargs):
pass
def MFnPointOnCurveManip_create(*args, **kwargs):
pass
def MQtUtil_findWindow(*args, **kwargs):
pass
def MDrawRequest_setDisplayStatus(*args, **kwargs):
pass
def M3dView_beginGL(*args, **kwargs):
pass
def MFnStateManip_setMaxStates(*args, **kwargs):
pass
def MFnCurveSegmentManip_swiginit(*args, **kwargs):
pass
def MFnCurveSegmentManip_startParameter(*args, **kwargs):
pass
def M3dView_modelViewMatrix(*args, **kwargs):
pass
def MFnPointOnCurveManip_parameter(*args, **kwargs):
pass
def MDrawInfo_setMultiPath(*args, **kwargs):
pass
def MDrawRequest_setIsTransparent(*args, **kwargs):
pass
def MFnDistanceManip_connectToDistancePlug(*args, **kwargs):
pass
def MToolsInfo_swigregister(*args, **kwargs):
pass
def MMaterialArray_setSizeIncrement(*args, **kwargs):
pass
def MFnPointOnCurveManip_setDrawCurve(*args, **kwargs):
pass
def MMaterial_applyTexture(*args, **kwargs):
pass
def MFnPointOnCurveManip_isDrawCurveOn(*args, **kwargs):
pass
def M3dView_displayStyle(*args, **kwargs):
pass
def MProgressWindow_setTitle(*args, **kwargs):
pass
def new_MDrawTraversal(*args, **kwargs):
pass
def MSelectInfo_getAlignmentMatrix(*args, **kwargs):
pass
def MProgressWindow_className(*args, **kwargs):
pass
def M3dView_writeColorBuffer(*args, **kwargs):
pass
def delete_MManipData(*args, **kwargs):
pass
def new_MFnDistanceManip(*args, **kwargs):
pass
def MUiMessage_addUiDeletedCallback(*args, **kwargs):
pass
def delete_MFnRotateManip(*args, **kwargs):
pass
def MFnRotateManip_rotationCenterIndex(*args, **kwargs):
pass
def MFnManip3D_handleSize(*args, **kwargs):
pass
def M3dView_selectMode(*args, **kwargs):
pass
def delete_MFnDistanceManip(*args, **kwargs):
pass
def MSelectInfo_selectForHilite(*args, **kwargs):
pass
def MFnCircleSweepManip_className(*args, **kwargs):
pass
def MDrawRequestQueue_isEmpty(*args, **kwargs):
pass
def MFnRotateManip_swiginit(*args, **kwargs):
pass
def delete_MQtUtil(*args, **kwargs):
pass
def MProgressWindow_title(*args, **kwargs):
pass
def MExternalDropData_html(*args, **kwargs):
pass
def M3dView_setViewSelectedPrefix(*args, **kwargs):
pass
def M3dView_isBackgroundGradient(*args, **kwargs):
pass
def MMaterial_getTextureTransformation(*args, **kwargs):
pass
def M3dView_wireframeOnlyInShadedMode(*args, **kwargs):
pass
def MEvent_getPosition(*args, **kwargs):
pass
def MFnFreePointTriadManip_setDirection(*args, **kwargs):
pass
def delete_MFnScaleManip(*args, **kwargs):
pass
def MDeviceChannel_numChildren(*args, **kwargs):
pass
def MMaterial_evaluateSpecular(*args, **kwargs):
pass
def MTextureEditorDrawInfo_setDrawingFunction(*args, **kwargs):
pass
def MDrawRequestQueue_swiginit(*args, **kwargs):
pass
def delete_MMaterialArray(*args, **kwargs):
pass
def MFnToggleManip_setToggle(*args, **kwargs):
pass
def MMaterialArray_set(*args, **kwargs):
pass
def MQtUtil_className(*args, **kwargs):
pass
def MFnToggleManip_connectToTogglePlug(*args, **kwargs):
pass
def MUiMessage_add3dViewPreMultipleDrawPassMsgCallback(*args, **kwargs):
pass
def MDrawInfo_multiPath(*args, **kwargs):
pass
def MFnToggleManip_swiginit(*args, **kwargs):
pass
def MCursor___ne__(*args, **kwargs):
pass
def new_MFnDirectionManip(*args, **kwargs):
pass
def M3dView_setObjectListFilterName(*args, **kwargs):
pass
def MFnManip3D_manipScale(*args, **kwargs):
pass
def MToolsInfo_setDirtyFlag(*args, **kwargs):
pass
def MFnFreePointTriadManip_swiginit(*args, **kwargs):
pass
def MFnDiscManip_connectToAnglePlug(*args, **kwargs):
pass
def M3dView_widget(*args, **kwargs):
pass
def MFnDiscManip_axisIndex(*args, **kwargs):
pass
def MDrawInfo_inUserInteraction(*args, **kwargs):
pass
def MFnPointOnSurfaceManip_getParameters(*args, **kwargs):
pass
def MDrawData_swiginit(*args, **kwargs):
pass
def MFnDirectionManip_startPointIndex(*args, **kwargs):
pass
def MProgressWindow_progressStatus(*args, **kwargs):
pass
def delete_MDrawTraversal(*args, **kwargs):
pass
def MFnCircleSweepManip_setEndPoint(*args, **kwargs):
pass
def MUiMessage_add3dViewPostMultipleDrawPassMsgCallback(*args, **kwargs):
pass
def new_MDrawRequestQueue(*args, **kwargs):
pass
def M3dView_setDisplayStyle(*args, **kwargs):
pass
def MFnRotateManip_rotateMode(*args, **kwargs):
pass
def MFnDirectionManip_setStartPoint(*args, **kwargs):
pass
def MSelectInfo_addSelection(*args, **kwargs):
pass
def MFnDistanceManip_distanceIndex(*args, **kwargs):
pass
def MDrawRequest_token(*args, **kwargs):
pass
def MFnPointOnCurveManip_swiginit(*args, **kwargs):
pass
def M3dView_getColorIndexAndTable(*args, **kwargs):
pass
def MProgressWindow_setProgressRange(*args, **kwargs):
pass
def M3dView_loadName(*args, **kwargs):
pass
def MManipData_swigregister(*args, **kwargs):
pass
def MDrawRequest_displayCullOpposite(*args, **kwargs):
pass
def MMaterial_getHasTransparency(*args, **kwargs):
pass
def MDrawRequest_setColor(*args, **kwargs):
pass
def MEvent_setModifiers(*args, **kwargs):
pass
def MUiMessage_add3dViewDestroyMsgCallback(*args, **kwargs):
pass
def MMaterial_getHwShaderNode(*args, **kwargs):
pass
def MManipData_asDouble(*args, **kwargs):
pass
def MToolsInfo_resetDirtyFlag(*args, **kwargs):
pass
def M3dView_numberOf3dViews(*args, **kwargs):
pass
def MFnFreePointTriadManip_isDrawAxesOn(*args, **kwargs):
pass
def M3dView_className(*args, **kwargs):
pass
def MFnToggleManip_length(*args, **kwargs):
pass
def MDeviceState_setButtonState(*args, **kwargs):
pass
def MFnDiscManip_create(*args, **kwargs):
pass
def M3dView_window(*args, **kwargs):
pass
def MFnCircleSweepManip_endPoint(*args, **kwargs):
pass
def M3dView_beginSelect(*args, **kwargs):
pass
def MFeedbackLine_setValue(*args, **kwargs):
pass
def new_MFnCurveSegmentManip(*args, **kwargs):
pass
def MUiMessage_add3dViewPostRenderMsgCallback(*args, **kwargs):
pass
def MFnCircleSweepManip_connectToAnglePlug(*args, **kwargs):
pass
def MFnCurveSegmentManip_startParamIndex(*args, **kwargs):
pass
def MDeviceChannel_swiginit(*args, **kwargs):
pass
def MFnDirectionManip_connectToDirectionPlug(*args, **kwargs):
pass
def MFnPointOnSurfaceManip_swigregister(*args, **kwargs):
pass
def MSelectInfo_setSnapPoint(*args, **kwargs):
pass
def M3dView_popName(*args, **kwargs):
pass
def MCursor_assign(*args, **kwargs):
pass
def MQtUtil_mainWindow(*args, **kwargs):
pass
def MFnScaleManip_setOrientationMode(*args, **kwargs):
pass
def M3dView_isLightVisible(*args, **kwargs):
pass
def M3dView_setUserDefinedColor(*args, **kwargs):
pass
def MFnDistanceManip_currentPointIndex(*args, **kwargs):
pass
def MObjectListFilter_setUIName(*args, **kwargs):
pass
def M3dView_beginXorDrawing(*args, **kwargs):
pass
def MDrawTraversal_itemHasStatus(*args, **kwargs):
pass
def MFnManip3D_setManipScale(*args, **kwargs):
pass
def MDrawInfo_view(*args, **kwargs):
pass
def MDrawRequestQueue_add(*args, **kwargs):
pass
def MProgressWindow_isInterruptable(*args, **kwargs):
pass
def MMaterial_setMaterial(*args, **kwargs):
pass
def MQtUtil_findMenuItem(*args, **kwargs):
pass
def MTextureEditorDrawInfo_swigregister(*args, **kwargs):
pass
def MMaterialArray_swigregister(*args, **kwargs):
pass
def M3dView_updateViewingParameters(*args, **kwargs):
pass
def M3dView_displayStatus(*args, **kwargs):
pass
def MHWShaderSwatchGenerator_initialize(*args, **kwargs):
pass
def M3dView_swigregister(*args, **kwargs):
pass
def MManipData_assign(*args, **kwargs):
pass
def MDrawTraversal_traverse(*args, **kwargs):
pass
def M3dView_renderOverrideName(*args, **kwargs):
pass
def M3dView_drawText(*args, **kwargs):
pass
def MFnManip3D_setGlobalSize(*args, **kwargs):
pass
def delete_MFnDiscManip(*args, **kwargs):
pass
def MExternalDropData_hasFormat(*args, **kwargs):
pass
def MFnManip3D_rotateXYZValue(*args, **kwargs):
pass
def MTextureEditorDrawInfo_drawingFunction(*args, **kwargs):
pass
def MDrawInfo_userChangingViewContext(*args, **kwargs):
pass
def MFnDiscManip_setAngle(*args, **kwargs):
pass
def MFnManip3D_isOptimizePlaybackOn(*args, **kwargs):
pass
def MTextureEditorDrawInfo_swiginit(*args, **kwargs):
pass
def M3dView_readColorBuffer(*args, **kwargs):
pass
def MFnCurveSegmentManip_connectToStartParamPlug(*args, **kwargs):
pass
def delete_MDrawRequest(*args, **kwargs):
pass
def new_MExternalDropCallback(*args, **kwargs):
pass
def M3dView_templateColor(*args, **kwargs):
pass
def new_MFnCircleSweepManip(*args, **kwargs):
pass
def MDrawRequest_material(*args, **kwargs):
pass
def M3dView_showViewSelectedChildren(*args, **kwargs):
pass
def MFnFreePointTriadManip_setDrawAxes(*args, **kwargs):
pass
def MFnStateManip_className(*args, **kwargs):
pass
def MFeedbackLine_setTitle(*args, **kwargs):
pass
def M3dView_endXorDrawing(*args, **kwargs):
pass
def MDrawTraversal_itemPath(*args, **kwargs):
pass
def MMaterial_materialIsTextured(*args, **kwargs):
pass
def MExternalDropData_hasColor(*args, **kwargs):
pass
def MFnRotateManip_setInitialRotation(*args, **kwargs):
pass
def MObjectListFilter_name(*args, **kwargs):
pass
def MHWShaderSwatchGenerator_createObj(*args, **kwargs):
pass
def MMaterial_shadingEngine(*args, **kwargs):
pass
def MFnToggleManip_toggleIndex(*args, **kwargs):
pass
def new_MFnManip3D(*args, **kwargs):
pass
def M3dView_setRenderOverrideName(*args, **kwargs):
pass
def MFnScaleManip_snapIncrement(*args, **kwargs):
pass
def M3dView_endGL(*args, **kwargs):
pass
def MFnFreePointTriadManip_setGlobalTriadPlane(*args, **kwargs):
pass
def MSelectInfo_highestPriority(*args, **kwargs):
pass
def new_MEvent(*args, **kwargs):
pass
def MDrawRequest_color(*args, **kwargs):
pass
def new_MFnStateManip(*args, **kwargs):
pass
def new_MFnRotateManip(*args, **kwargs):
pass
def MExternalDropData_color(*args, **kwargs):
pass
def M3dView_userDefinedColorIndex(*args, **kwargs):
pass
def MFnStateManip_create(*args, **kwargs):
pass
def M3dView_display(*args, **kwargs):
pass
def MFnDirectionManip_create(*args, **kwargs):
pass
def MDrawInfo_displayStyle(*args, **kwargs):
pass
def MFnCircleSweepManip_create(*args, **kwargs):
pass
def M3dView_backgroundColorBottom(*args, **kwargs):
pass
def MUiMessage_add3dViewPreRenderMsgCallback(*args, **kwargs):
pass
def MFnScaleManip_scaleIndex(*args, **kwargs):
pass
def MDrawRequest_setMultiPath(*args, **kwargs):
pass
def MFnDistanceManip_setStartPoint(*args, **kwargs):
pass
def M3dView_getLightingMode(*args, **kwargs):
pass
def MQtUtil_toQString(*args, **kwargs):
pass
def M3dView_getLightCount(*args, **kwargs):
pass
def MFnFreePointTriadManip_setSnapMode(*args, **kwargs):
pass
def MDrawTraversal_setOrthoFrustum(*args, **kwargs):
pass
def MFnPointOnSurfaceManip_create(*args, **kwargs):
pass
def MMaterial_className(*args, **kwargs):
pass
def MExternalDropData_hasUrls(*args, **kwargs):
pass
def MFnManip3D_className(*args, **kwargs):
pass
def MMaterialArray_className(*args, **kwargs):
pass
def new_MFnToggleManip(*args, **kwargs):
pass
def delete_MFnPointOnCurveManip(*args, **kwargs):
pass
def MMaterial_evaluateMaterial(*args, **kwargs):
pass
def MFnStateManip_connectToStatePlug(*args, **kwargs):
pass
def MMaterialArray___getitem__(*args, **kwargs):
pass
def MDeviceState_devicePosition(*args, **kwargs):
pass
def MSelectInfo_isRay(*args, **kwargs):
pass
def MDrawRequest_drawLast(*args, **kwargs):
pass
def MManipData_className(*args, **kwargs):
pass
def new_MFnPointOnSurfaceManip(*args, **kwargs):
pass
def MDeviceState_isNull(*args, **kwargs):
pass
def MMaterial_evaluateDiffuse(*args, **kwargs):
pass
def M3dView_disallowPolygonOffset(*args, **kwargs):
pass
def MFnCircleSweepManip_setCenterPoint(*args, **kwargs):
pass
def MFnDiscManip_swiginit(*args, **kwargs):
pass
def MFnManip3D_isVisible(*args, **kwargs):
pass
def MFnCurveSegmentManip_swigregister(*args, **kwargs):
pass
def M3dView_multipleDrawPassCount(*args, **kwargs):
pass
def MFnRotateManip_connectToRotationPlug(*args, **kwargs):
pass
def M3dView_viewToWorld(*args, **kwargs):
pass
def MFnCircleSweepManip_startPoint(*args, **kwargs):
pass
def MSelectInfo_getLocalRay(*args, **kwargs):
pass
def MFnPointOnCurveManip_swigregister(*args, **kwargs):
pass
def M3dView_swiginit(*args, **kwargs):
pass
def MSelectInfo_singleSelection(*args, **kwargs):
pass
def delete_M3dView(*args, **kwargs):
pass
def M3dView_wireframeOnShaded(*args, **kwargs):
pass
def M3dView_getCamera(*args, **kwargs):
pass
def MFnCurveSegmentManip_endParamIndex(*args, **kwargs):
pass
def MUiMessage_className(*args, **kwargs):
pass
def delete_MFnFreePointTriadManip(*args, **kwargs):
pass
def MSelectInfo_className(*args, **kwargs):
pass
def MDrawTraversal_swiginit(*args, **kwargs):
pass
def MFnPointOnSurfaceManip_connectToSurfacePlug(*args, **kwargs):
pass
def MQtUtil_nativeWindow(*args, **kwargs):
pass
def MProgressWindow_progress(*args, **kwargs):
pass
def MFnFreePointTriadManip_isKeyframeAllOn(*args, **kwargs):
pass
def new_MFnDiscManip(*args, **kwargs):
pass
def MMaterial_getDiffuse(*args, **kwargs):
pass
def MDeviceChannel_name(*args, **kwargs):
pass
def MFnToggleManip_setDirection(*args, **kwargs):
pass
def MFnDistanceManip_scalingFactor(*args, **kwargs):
pass
def MDrawRequest_setMatrix(*args, **kwargs):
pass
def MFeedbackLine_clear(*args, **kwargs):
pass
def MFnPointOnSurfaceManip_className(*args, **kwargs):
pass
def MFnStateManip_swigregister(*args, **kwargs):
pass
def MDeviceChannel_hasChildren(*args, **kwargs):
pass
def M3dView_setShowObjectFilterNameInHUD(*args, **kwargs):
pass
def delete_MFnToggleManip(*args, **kwargs):
pass
def MFnDirectionManip_swigregister(*args, **kwargs):
pass
def MExternalDropData_keyboardModifiers(*args, **kwargs):
pass
def new_MProgressWindow(*args, **kwargs):
pass
def MFnDistanceManip_setScalingFactor(*args, **kwargs):
pass
def M3dView_getLightIndex(*args, **kwargs):
pass
def MFeedbackLine_setFormat(*args, **kwargs):
pass
def MFeedbackLine_swigregister(*args, **kwargs):
pass
def MFnRotateManip_setRotationCenter(*args, **kwargs):
pass
def MFnStateManip_positionIndex(*args, **kwargs):
pass
def MObjectListFilter_className(*args, **kwargs):
pass
def MDrawInfo_inclusiveMatrix(*args, **kwargs):
pass
def MExternalDropData_formats(*args, **kwargs):
pass
def M3dView_viewSelectedPrefix(*args, **kwargs):
pass
def M3dView_numUserDefinedColors(*args, **kwargs):
pass
def MEvent_isModifierControl(*args, **kwargs):
pass
def MFnDistanceManip_setDrawLine(*args, **kwargs):
pass
def new_MManipData(*args, **kwargs):
pass
def MExternalDropCallback_addCallback(*args, **kwargs):
pass
def MDrawTraversal_swigregister(*args, **kwargs):
pass
def MDrawInfo_pluginObjectDisplayStatus(*args, **kwargs):
pass
def MMaterial_getEmission(*args, **kwargs):
pass
def M3dView_objectListFilterName(*args, **kwargs):
pass
def MFnToggleManip_lengthIndex(*args, **kwargs):
pass
def MDrawRequest_multiPath(*args, **kwargs):
pass
def MMaterialArray_copy(*args, **kwargs):
pass
def M3dView_readDepthMap(*args, **kwargs):
pass
def MFnDistanceManip_isDrawLineOn(*args, **kwargs):
pass
def MHWShaderSwatchGenerator_getSwatchBackgroundColor(*args, **kwargs):
pass
def MFnRotateManip_snapIncrement(*args, **kwargs):
pass
def M3dView_usingMipmappedTextures(*args, **kwargs):
pass
def MSelectInfo_selectable(*args, **kwargs):
pass
def MFnToggleManip_startPointIndex(*args, **kwargs):
pass
def MDrawRequest_component(*args, **kwargs):
pass
def MObjectListFilter_getList(*args, **kwargs):
pass
def MFnPointOnSurfaceManip_connectToParamPlug(*args, **kwargs):
pass
def MDrawRequestQueue_remove(*args, **kwargs):
pass
def MFnCurveSegmentManip_setEndParameter(*args, **kwargs):
pass
def MToolsInfo_isDirty(*args, **kwargs):
pass
def MFnManip3D_globalSize(*args, **kwargs):
pass
def MExternalDropData_hasHtml(*args, **kwargs):
pass
def MFnPointOnSurfaceManip_setDrawArrows(*args, **kwargs):
pass
def MSelectInfo_selectRect(*args, **kwargs):
pass
def MFnCircleSweepManip_swiginit(*args, **kwargs):
pass
def MDrawRequest_setDrawData(*args, **kwargs):
pass
def MProgressWindow_swigregister(*args, **kwargs):
pass
def M3dView_liveColor(*args, **kwargs):
pass
def M3dView_numDormantColors(*args, **kwargs):
pass
def MDrawTraversal_setFrustum(*args, **kwargs):
pass
def delete_MUiMessage(*args, **kwargs):
pass
def MFnPointOnCurveManip_curveIndex(*args, **kwargs):
pass
def MMaterialArray_sizeIncrement(*args, **kwargs):
pass
def MEvent_swigregister(*args, **kwargs):
pass
def MFnScaleManip_connectToScalePlug(*args, **kwargs):
pass
def MFnDirectionManip_setNormalizeDirection(*args, **kwargs):
pass
def MFnFreePointTriadManip_setKeyframeAll(*args, **kwargs):
pass
def MMaterial_defaultMaterial(*args, **kwargs):
pass
def MDeviceState_swigregister(*args, **kwargs):
pass
def MDeviceState_maxAxis(*args, **kwargs):
pass
def M3dView_getM3dViewFromModelEditor(*args, **kwargs):
pass
def MDeviceChannel_axisIndex(*args, **kwargs):
pass
def MFnStateManip_maxStates(*args, **kwargs):
pass
def MCursor_swiginit(*args, **kwargs):
pass
def MDrawTraversal_numberOfItems(*args, **kwargs):
pass
def MManipData_asFloat(*args, **kwargs):
pass
def new_MDrawInfo(*args, **kwargs):
pass
def MFnCurveSegmentManip_setStartParameter(*args, **kwargs):
pass
def MFnDirectionManip_className(*args, **kwargs):
pass
def MFnDiscManip_angleIndex(*args, **kwargs):
pass
def delete_MFnStateManip(*args, **kwargs):
pass
def new_MQtUtil(*args, **kwargs):
pass
def MEvent_isModifierNone(*args, **kwargs):
pass
def MFnFreePointTriadManip_setDrawArrowHead(*args, **kwargs):
pass
def MFnRotateManip_setSnapMode(*args, **kwargs):
pass
M3dView_kDisplayIkHandles = 128
MExternalDropData_kAltModifier = 134217728
MExternalDropData_kControlModifier = 67108864
MExternalDropData_kShiftModifier = 33554432
M3dView_kExcludePluginShapes = 1073741824
M3dView_kExcludeMotionTrails = 536870912
M3dView_kDisplayNParticles = 268435456
M3dView_kDisplayManipulators = 134217728
M3dView_kDisplayDynamicConstraints = 67108864
M3dView_kDisplayNRigids = 33554432
M3dView_kDisplayImagePlane = 8388608
M3dView_kDisplayHairSystems = 4194304
cvar = None
M3dView_kDisplayFollicles = 2097152
M3dView_kDisplayCameras = 32
M3dView_kDisplayFluids = 1048576
M3dView_kDisplaySubdivSurfaces = 524288
M3dView_kDisplayStrokes = 262144
M3dView_kDisplayDimensions = 2048
M3dView_kDisplayNCloths = 16777216
M3dView_kDisplaySelectHandles = 4096
M3dView_kDisplayPivots = 8192
M3dView_kDisplayTextures = 16384
M3dView_kDisplayGrid = 32768
M3dView_kDisplayCVs = 65536
M3dView_kDisplayHulls = 131072
M3dView_kDisplayLocators = 1024
M3dView_kDisplayDynamics = 512
M3dView_kDisplayDeformers = 256
MMaterial_kReflectivity = 14
MMaterial_kSpecularRollOff = 12
M3dView_kNoStatus = 11
M3dView_kIntermediateObject = 9
M3dView_kDisplayPlanes = 8
M3dView_kActiveTemplate = 6
M3dView_kLightNone = 5
M3dView_kDisplayMeshes = 4
M3dView_kExternalRenderer = 3
M3dView_kDisplayNurbsSurfaces = 2
M3dView_kDisplayLights = 16
M3dView_kActive = 0
M3dView_kDisplayEverything = -1
MMaterial_kSpecularColor = 13
M3dView_kDisplayJoints = 64
M3dView_kActiveAffected = 10
MMaterial_kReflectedColor = 15
M3dView_kActiveComponent = 7
M3dView_kCenter = 1
M3dView_kDepth_Float = M3dView_kCenter
M3dView_kDisplayNurbsCurves = M3dView_kCenter
M3dView_kFlatShaded = M3dView_kCenter
M3dView_kHighQualityRenderer = M3dView_kCenter
M3dView_kLightSelected = M3dView_kCenter
M3dView_kLive = M3dView_kCenter
M3dView_kStippleDashed = M3dView_kCenter
MDrawTraversal_kTemplateItem = M3dView_kCenter
MEvent_shiftKey = M3dView_kCenter
MExternalDropCallback_kNoMayaDefaultAndAccept = M3dView_kCenter
MExternalDropData_kLeftButton = M3dView_kCenter
MFnFreePointTriadManip_kXZPlane = M3dView_kCenter
MFnRotateManip_kWorldSpace = M3dView_kCenter
MFnScaleManip_kArbitraryOrientation = M3dView_kCenter
MMaterial_kTransparency = M3dView_kCenter
MObjectListFilter_kAddRemoveObjects = M3dView_kCenter
MObjectListFilter_kExclusionList = M3dView_kCenter
MTextureEditorDrawInfo_kDrawFunctionFirst = M3dView_kCenter
MTextureEditorDrawInfo_kDrawWireframe = M3dView_kCenter
| 15.127247
| 73
| 0.723387
| 4,217
| 42,084
| 7.037705
| 0.139198
| 0.224409
| 0.314172
| 0.380922
| 0.745333
| 0.093638
| 0
| 0
| 0
| 0
| 0
| 0.0116
| 0.164219
| 42,084
| 2,781
| 74
| 15.132686
| 0.832172
| 0
| 0
| 0.476054
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.476054
| false
| 0.478914
| 0
| 0
| 0.476054
| 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
| 1
| 0
| 0
| 0
| 0
|
0
| 5
|
8fd5fef423206a28b7f6d8226cb8de3e3bb2f321
| 2,227
|
py
|
Python
|
Advanced/Superdense coding.py
|
JHP4911/Quantum-Computing-UK
|
bd724442a6d8061966b24cad870153022b1402e4
|
[
"CC0-1.0"
] | 51
|
2020-11-28T16:23:59.000Z
|
2022-03-11T01:39:18.000Z
|
Advanced/Superdense coding.py
|
JHP4911/Quantum-Computing-UK
|
bd724442a6d8061966b24cad870153022b1402e4
|
[
"CC0-1.0"
] | null | null | null |
Advanced/Superdense coding.py
|
JHP4911/Quantum-Computing-UK
|
bd724442a6d8061966b24cad870153022b1402e4
|
[
"CC0-1.0"
] | 22
|
2020-11-28T16:34:36.000Z
|
2022-03-20T21:50:45.000Z
|
print('\n Superdense Coding')
print('--------------------------\n')
from qiskit import QuantumRegister, ClassicalRegister, QuantumCircuit, execute,IBMQ
from qiskit.tools.monitor import job_monitor
IBMQ.enable_account('ENTER API TOKEN')
provider = IBMQ.get_provider(hub='ibm-q')
q = QuantumRegister(2,'q')
c = ClassicalRegister(2,'c')
backend = provider.get_backend('ibmq_qasm_simulator')
print('Provider: ',backend)
#################### 00 ###########################
circuit = QuantumCircuit(q,c)
circuit.h(q[0]) # Hadamard gate applied to q0
circuit.cx(q[0],q[1]) # CNOT gate applied
circuit.cx(q[0],q[1])
circuit.h(q[0])
circuit.measure(q,c) # Qubits measured
job = execute(circuit, backend, shots=10)
print('Executing Job...\n')
job_monitor(job)
counts = job.result().get_counts()
print('RESULT: ',counts,'\n')
#################### 10 ###########################
circuit = QuantumCircuit(q,c)
circuit.h(q[0])
circuit.cx(q[0],q[1])
circuit.x(q[0]) # X-gate applied
circuit.cx(q[0],q[1])
circuit.h(q[0])
circuit.measure(q,c)
job = execute(circuit, backend, shots=10)
print('Executing Job...\n')
job_monitor(job)
counts = job.result().get_counts()
print('RESULT: ',counts,'\n')
#################### 01 ###########################
circuit = QuantumCircuit(q,c)
circuit.h(q[0])
circuit.cx(q[0],q[1])
circuit.z(q[0]) # Z-gate applied to q0
circuit.cx(q[0],q[1])
circuit.h(q[0])
circuit.measure(q,c)
job = execute(circuit, backend, shots=10)
print('Executing Job...\n')
job_monitor(job)
counts = job.result().get_counts()
print('RESULT: ',counts,'\n')
#################### 11 ###########################
circuit = QuantumCircuit(q,c)
circuit.h(q[0])
circuit.cx(q[0],q[1])
circuit.z(q[0]) # Z-gate applied
circuit.x(q[0]) # X-gate applied
circuit.cx(q[0],q[1])
circuit.h(q[0])
circuit.measure(q,c)
job = execute(circuit, backend, shots=10)
print('Executing Job...\n')
job_monitor(job)
counts = job.result().get_counts()
print('RESULT: ',counts,'\n')
print('Press any key to close')
input()
| 24.206522
| 83
| 0.560844
| 303
| 2,227
| 4.075908
| 0.194719
| 0.032389
| 0.0583
| 0.064777
| 0.707692
| 0.707692
| 0.707692
| 0.707692
| 0.680972
| 0.680972
| 0
| 0.026359
| 0.182308
| 2,227
| 92
| 84
| 24.206522
| 0.65184
| 0.066906
| 0
| 0.8
| 0
| 0
| 0.123804
| 0.014878
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.033333
| 0
| 0.033333
| 0.2
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
8fdfc5ecdff11c4bdf530a8ee9fd1cbe9d939260
| 194
|
py
|
Python
|
wca_allauth/urls.py
|
drfb/wca-django-allauth
|
f1789e76448209b28bb92287e01c8d42a7dd98ac
|
[
"MIT"
] | null | null | null |
wca_allauth/urls.py
|
drfb/wca-django-allauth
|
f1789e76448209b28bb92287e01c8d42a7dd98ac
|
[
"MIT"
] | null | null | null |
wca_allauth/urls.py
|
drfb/wca-django-allauth
|
f1789e76448209b28bb92287e01c8d42a7dd98ac
|
[
"MIT"
] | null | null | null |
from allauth.socialaccount.providers.oauth2.urls import default_urlpatterns
from .provider import WorldCubeAssociationProvider
urlpatterns = default_urlpatterns(WorldCubeAssociationProvider)
| 27.714286
| 75
| 0.886598
| 17
| 194
| 10
| 0.647059
| 0.211765
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.005556
| 0.072165
| 194
| 6
| 76
| 32.333333
| 0.938889
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.666667
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
8ffb4485e914e445c6172bc3ec7276a45d190834
| 139
|
py
|
Python
|
neurotin/__init__.py
|
mscheltienne/neurotin-analysis
|
841b7d86c0c990169cceb02b40d9eb6bd0d07612
|
[
"MIT"
] | null | null | null |
neurotin/__init__.py
|
mscheltienne/neurotin-analysis
|
841b7d86c0c990169cceb02b40d9eb6bd0d07612
|
[
"MIT"
] | null | null | null |
neurotin/__init__.py
|
mscheltienne/neurotin-analysis
|
841b7d86c0c990169cceb02b40d9eb6bd0d07612
|
[
"MIT"
] | null | null | null |
"""
NeuroTin analysis script.
"""
from ._version import __version__ # noqa: F401
from .logger import logger, set_log_level # noqa: F401
| 19.857143
| 55
| 0.733813
| 18
| 139
| 5.277778
| 0.666667
| 0.168421
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.051724
| 0.165468
| 139
| 6
| 56
| 23.166667
| 0.767241
| 0.345324
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
64eb18d5f653a810c4542a522269a3d25908d56c
| 326
|
py
|
Python
|
aws_sam_sample/service.py
|
tadashi-aikawa/aws-sam-sample
|
e45a2ef357018acd80ccb9cecd55bcf19a9150f3
|
[
"MIT"
] | null | null | null |
aws_sam_sample/service.py
|
tadashi-aikawa/aws-sam-sample
|
e45a2ef357018acd80ccb9cecd55bcf19a9150f3
|
[
"MIT"
] | null | null | null |
aws_sam_sample/service.py
|
tadashi-aikawa/aws-sam-sample
|
e45a2ef357018acd80ccb9cecd55bcf19a9150f3
|
[
"MIT"
] | null | null | null |
from typing import Optional
from aws_sam_sample import storage
from aws_sam_sample.dao import Member, find_member
from aws_sam_sample.storage import Account
def fetch_account(name: str) -> Optional[Account]:
return storage.fetch_account(name)
def fetch_member(id: str) -> Optional[Member]:
return find_member(id)
| 23.285714
| 50
| 0.791411
| 49
| 326
| 5.040816
| 0.367347
| 0.08502
| 0.121457
| 0.194332
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.134969
| 326
| 13
| 51
| 25.076923
| 0.875887
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.5
| 0.25
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 1
| 1
| 0
|
0
| 5
|
8f3d44edf35c75a79885319bd9e85a315b134212
| 36
|
py
|
Python
|
apps/blog/models/__init__.py
|
Sult/daf
|
a4da9e8c96f70577e2490c05e82bdf7d0de1a563
|
[
"MIT"
] | null | null | null |
apps/blog/models/__init__.py
|
Sult/daf
|
a4da9e8c96f70577e2490c05e82bdf7d0de1a563
|
[
"MIT"
] | null | null | null |
apps/blog/models/__init__.py
|
Sult/daf
|
a4da9e8c96f70577e2490c05e82bdf7d0de1a563
|
[
"MIT"
] | null | null | null |
from apps.blog.models.blog import *
| 18
| 35
| 0.777778
| 6
| 36
| 4.666667
| 0.833333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.111111
| 36
| 1
| 36
| 36
| 0.875
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
8f6fa3e0fb41b59fe503a23185a64b7016fbe6c4
| 8,006
|
py
|
Python
|
tug_diagnosis/tug_diagnosis/scripts/pymbd/diagnosis/engine.py
|
annajohny/sdp
|
2f66e226fc335ae357001d07fbc74d30ab469509
|
[
"BSD-3-Clause"
] | null | null | null |
tug_diagnosis/tug_diagnosis/scripts/pymbd/diagnosis/engine.py
|
annajohny/sdp
|
2f66e226fc335ae357001d07fbc74d30ab469509
|
[
"BSD-3-Clause"
] | null | null | null |
tug_diagnosis/tug_diagnosis/scripts/pymbd/diagnosis/engine.py
|
annajohny/sdp
|
2f66e226fc335ae357001d07fbc74d30ab469509
|
[
"BSD-3-Clause"
] | null | null | null |
import sys
import time
from ..algorithm.hsdag import Greiner, GreinerO, GreinerN
from ..algorithm.hst import HST, HSTNode, HSTO
from ..algorithm.node import Node
from ..diagnosis.result import Result
def merge(opts1, opts2):
return dict(opts1.items() + opts2.items())
ENGINES = {
'hst-picosat': lambda d, o: PyHSTEngine(d, merge({'sat_solver': 'picosat', 'cache': False}, o)),
'hst-cache-picosat': lambda d, o: PyHSTEngine(d, merge({'sat_solver': 'picosat', 'cache': True}, o)),
'hst-ci-picosat': lambda d, o: PyHSTOEngine(d, merge({'sat_solver': 'picosat', 'cache': False}, o)),
'hst-ci-cache-picosat': lambda d, o: PyHSTOEngine(d, merge({'sat_solver': 'picosat', 'cache': True}, o)),
'hsdag-picosat': lambda d, o: PyHsDagEngine(d, merge({'sat_solver': 'picosat', 'cache': False}, o)),
'hsdag-cache-picosat': lambda d, o: PyHsDagEngine(d, merge({'sat_solver': 'picosat', 'cache': True}, o)),
'hsdag-ci-picosat': lambda d, o: PyHsDagOEngine(d, merge({'sat_solver': 'picosat', 'cache': False}, o)),
'hsdag-ci-cache-picosat': lambda d, o: PyHsDagOEngine(d, merge({'sat_solver': 'picosat', 'cache': True}, o)),
'hsdag-sicf-picosat': lambda d, o: PyHsDagNEngine(d, merge({'sat_solver': 'picosat', 'cache': False}, o)),
'hsdag-sicf-cache-picosat': lambda d, o: PyHsDagNEngine(d, merge({'sat_solver': 'picosat', 'cache': True}, o)),
}
def hittingsets_from_tree(hstree, card=(1, sys.maxint)):
hs = set()
min_card = card[0]
max_card = card[1]
if not min_card:
min_card = 1
if not max_card:
max_card = sys.maxint
if len(hstree.checked_nodes) > 0:
cardinalities = hstree.checked_nodes.keys()
for cardinality in xrange(min_card, min(max(cardinalities), max_card) + 1):
if cardinality in cardinalities:
for node in hstree.checked_nodes[cardinality]:
hs.add(node.h)
return hs
class Engine(object):
'''
Encapsules an algorithm that does the actual hitting set computation.
This implementation does nothing, derived classes must implement at least
the start() method and place a Result object in self.result at the end
'''
def __init__(self, description, options):
'''
Construct a hitting set computation engine from the problem description.
An options hash specific to the algorithm may be given as second parameter.
'''
self.description = description
self.options = options
self.result = None
self.handle = None
def start(self):
pass
def get_result(self):
return self.result
def set_options(self, options):
self.options.update(options)
class PyHsDagEngine(Engine):
def __init__(self, description, options):
super(PyHsDagEngine, self).__init__(description, options)
o = self.options
o['min_card'] = o.get('min_card', 1)
o['max_card'] = o.get('max_card', sys.maxint)
o['max_time'] = o.get('max_time', None)
o['prune'] = o.get('prune', True)
o['cache'] = o.get('cache', False)
o['debug_pruning'] = o.get('debug_pruning', False)
def start(self):
o = self.options
n0 = Node.next_node_number
t0 = time.time()
g = Greiner(self.description, self.handle, o)
self.handle = g.hsdag()
n1 = Node.next_node_number
hs = hittingsets_from_tree(self.handle, (o['min_card'], o['max_card']))
t1 = time.time()
d = self.description
self.result = Result(hs, total_time=t1 - t0, tp_time_check=d.get_check_time(), tp_time_comp=d.get_comp_time(),
num_tpcalls_check=d.get_check_calls(),
num_tpcalls_comp=d.get_comp_calls(), num_nodes=len(self.handle.nodes()),
num_gen_nodes=n1 - n0, cache_hits=g.cache_hits,
cache_misses=g.cache_misses, cache_size=len(self.handle.cs_cache), time_map=g.time_map,
timeout=g.timeout)
class PyHsDagOEngine(PyHsDagEngine):
def start(self):
o = self.options
n0 = Node.next_node_number
t0 = time.time()
g = GreinerO(self.description, self.handle, o)
self.handle = g.hsdag()
n1 = Node.next_node_number
hs = hittingsets_from_tree(self.handle, (o['min_card'], o['max_card']))
t1 = time.time()
d = self.description
self.result = Result(hs, total_time=t1 - t0, tp_time_check=d.get_check_time(), tp_time_comp=d.get_comp_time(),
num_tpcalls_check=d.get_check_calls(),
num_tpcalls_comp=d.get_comp_calls(), num_nodes=len(self.handle.nodes()),
num_gen_nodes=n1 - n0, cache_hits=g.cache_hits,
cache_misses=g.cache_misses, cache_size=len(self.handle.cs_cache), time_map=g.time_map,
timeout=g.timeout)
class PyHSTEngine(Engine):
def __init__(self, description, options):
super(PyHSTEngine, self).__init__(description, options)
o = self.options
o['min_card'] = o.get('min_card', 1)
o['max_card'] = o.get('max_card', sys.maxint)
o['max_time'] = o.get('max_time', None)
o['prune'] = o.get('prune', True)
o['cache'] = o.get('cache', False)
def start(self):
o = self.options
n0 = HSTNode.next_node_number
t0 = time.time()
h = HST(self.description, self.handle, o)
self.handle = h.hst()
hs = hittingsets_from_tree(self.handle, (o['min_card'], o['max_card']))
n1 = HSTNode.next_node_number
t1 = time.time()
d = self.description
self.result = Result(hs, total_time=t1 - t0, tp_time_check=d.get_check_time(), tp_time_comp=d.get_comp_time(),
num_tpcalls_check=d.get_check_calls(),
num_tpcalls_comp=d.get_comp_calls(), num_nodes=self.handle.num_nodes(),
num_gen_nodes=n1 - n0, cache_hits=h.cache_hits,
cache_misses=h.cache_misses, cache_size=len(self.handle.cs_cache))
class PyHSTOEngine(PyHSTEngine):
def start(self):
o = self.options
n0 = HSTNode.next_node_number
t0 = time.time()
h = HSTO(self.description, self.handle, o)
self.handle = h.hst()
hs = hittingsets_from_tree(self.handle, (o['min_card'], o['max_card']))
n1 = HSTNode.next_node_number
t1 = time.time()
d = self.description
self.result = Result(hs, total_time=t1 - t0, tp_time_check=d.get_check_time(), tp_time_comp=d.get_comp_time(),
num_tpcalls_check=d.get_check_calls(),
num_tpcalls_comp=d.get_comp_calls(), num_nodes=self.handle.num_nodes(),
num_gen_nodes=n1 - n0, cache_hits=h.cache_hits,
cache_misses=h.cache_misses, cache_size=len(self.handle.cs_cache))
class PyHsDagNEngine(PyHsDagEngine):
def start(self):
o = self.options
n0 = Node.next_node_number
t0 = time.time()
g = GreinerN(self.description, self.handle, o)
self.handle = g.hsdag()
n1 = Node.next_node_number
hs = hittingsets_from_tree(self.handle, (o['min_card'], o['max_card']))
t1 = time.time()
d = self.description
self.result = Result(hs, total_time=t1 - t0, tp_time_check=d.get_check_time(), tp_time_comp=d.get_comp_time(),
num_tpcalls_check=d.get_check_calls(),
num_tpcalls_comp=d.get_comp_calls(), num_nodes=len(self.handle.nodes()),
num_gen_nodes=n1 - n0, cache_hits=g.cache_hits,
cache_misses=g.cache_misses, cache_size=len(self.handle.cs_cache), time_map=g.time_map,
timeout=g.timeout)
| 43.989011
| 118
| 0.603797
| 1,070
| 8,006
| 4.296262
| 0.125234
| 0.056559
| 0.030455
| 0.03263
| 0.73983
| 0.729389
| 0.726343
| 0.708941
| 0.705678
| 0.688057
| 0
| 0.008838
| 0.265051
| 8,006
| 181
| 119
| 44.232044
| 0.772434
| 0.045466
| 0
| 0.605442
| 0
| 0
| 0.083828
| 0.006063
| 0
| 0
| 0
| 0
| 0
| 1
| 0.088435
| false
| 0.006803
| 0.040816
| 0.013605
| 0.190476
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
8f76961e8ae6794fc7ac07bd7404bef541474b5f
| 673
|
py
|
Python
|
elements_sdk/api/__init__.py
|
elements-storage/elements-sdk-python
|
39c365fe079dcd5928c5fe1bbaa67389bd5a3d81
|
[
"MIT"
] | 6
|
2020-11-16T23:15:18.000Z
|
2022-03-14T03:56:12.000Z
|
elements_sdk/api/__init__.py
|
elements-storage/elements-sdk-python
|
39c365fe079dcd5928c5fe1bbaa67389bd5a3d81
|
[
"MIT"
] | 1
|
2021-07-28T13:03:49.000Z
|
2021-08-25T12:24:01.000Z
|
elements_sdk/api/__init__.py
|
elements-storage/elements-sdk-python
|
39c365fe079dcd5928c5fe1bbaa67389bd5a3d81
|
[
"MIT"
] | null | null | null |
from __future__ import absolute_import
# flake8: noqa
# import apis into api package
from elements_sdk.api.aws_api import AWSApi
from elements_sdk.api.auth_api import AuthApi
from elements_sdk.api.automation_api import AutomationApi
from elements_sdk.api.click_api import ClickApi
from elements_sdk.api.integrations_api import IntegrationsApi
from elements_sdk.api.main_api import MainApi
from elements_sdk.api.media_library_api import MediaLibraryApi
from elements_sdk.api.satellite_api import SatelliteApi
from elements_sdk.api.status_api import StatusApi
from elements_sdk.api.storage_api import StorageApi
from elements_sdk.api.tape_archive_api import TapeArchiveApi
| 39.588235
| 62
| 0.875186
| 102
| 673
| 5.490196
| 0.352941
| 0.235714
| 0.294643
| 0.353571
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.001629
| 0.087667
| 673
| 16
| 63
| 42.0625
| 0.910423
| 0.060921
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 1
| 1
| 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
| 5
|
56fc9f91d14436b7bcb9295cf1144da92eae407d
| 71
|
py
|
Python
|
src/cravision/__init__.py
|
shizuku/cravision
|
3e2dce9dee57485a5c29ada9b4f8988433fbaeeb
|
[
"MIT"
] | 1
|
2021-11-01T11:25:02.000Z
|
2021-11-01T11:25:02.000Z
|
src/cravision/__init__.py
|
Azathoth1729/cravision
|
98513083287bdb260d949cd145664e592d9e8543
|
[
"MIT"
] | null | null | null |
src/cravision/__init__.py
|
Azathoth1729/cravision
|
98513083287bdb260d949cd145664e592d9e8543
|
[
"MIT"
] | 1
|
2021-11-01T11:37:16.000Z
|
2021-11-01T11:37:16.000Z
|
from . import datasets
from . import transforms
__version__ = "0.0.1"
| 14.2
| 24
| 0.732394
| 10
| 71
| 4.8
| 0.7
| 0.416667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.050847
| 0.169014
| 71
| 4
| 25
| 17.75
| 0.762712
| 0
| 0
| 0
| 0
| 0
| 0.070423
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.666667
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
71056e5b40ce3fd10af9a13cdc064849886759e5
| 92
|
py
|
Python
|
examples/wifi/socket_speed_patch.py
|
jfjlaros/arduino-simple-rpc
|
2a78a493031dfa06e826f42d3ec419686676eede
|
[
"MIT"
] | 16
|
2019-06-10T19:26:01.000Z
|
2022-01-16T13:32:01.000Z
|
examples/wifi/socket_speed_patch.py
|
jfjlaros/arduino-simple-rpc
|
2a78a493031dfa06e826f42d3ec419686676eede
|
[
"MIT"
] | 15
|
2019-06-10T20:06:07.000Z
|
2021-12-29T09:37:36.000Z
|
examples/wifi/socket_speed_patch.py
|
jfjlaros/arduino-simple-rpc
|
2a78a493031dfa06e826f42d3ec419686676eede
|
[
"MIT"
] | 6
|
2020-11-19T18:15:43.000Z
|
2022-01-02T14:25:24.000Z
|
from serial.urlhandler import protocol_socket
protocol_socket.time.sleep = lambda x: None
| 18.4
| 45
| 0.826087
| 13
| 92
| 5.692308
| 0.846154
| 0.378378
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.119565
| 92
| 4
| 46
| 23
| 0.91358
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
711816e1ab0797ef361af68e2093eb7fba70db21
| 192
|
py
|
Python
|
extra_tests/test_tk.py
|
olliemath/pypy
|
8b873bd0b8bf76075aba3d915c260789f26f5788
|
[
"Apache-2.0",
"OpenSSL"
] | null | null | null |
extra_tests/test_tk.py
|
olliemath/pypy
|
8b873bd0b8bf76075aba3d915c260789f26f5788
|
[
"Apache-2.0",
"OpenSSL"
] | null | null | null |
extra_tests/test_tk.py
|
olliemath/pypy
|
8b873bd0b8bf76075aba3d915c260789f26f5788
|
[
"Apache-2.0",
"OpenSSL"
] | 1
|
2022-03-30T11:42:37.000Z
|
2022-03-30T11:42:37.000Z
|
from _tkinter.tclobj import FromTclString, AsObj
def test_encoding_mess_from_tcl_string():
# cesu-8 mess
assert FromTclString(b'string\xed\xa0\xbd\xed\xb2\xbb') == 'string\U0001f4bb'
| 32
| 81
| 0.765625
| 28
| 192
| 5.035714
| 0.785714
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.047337
| 0.119792
| 192
| 5
| 82
| 38.4
| 0.786982
| 0.057292
| 0
| 0
| 0
| 0
| 0.256983
| 0.167598
| 0
| 0
| 0
| 0
| 0.333333
| 1
| 0.333333
| true
| 0
| 0.333333
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
712bcf1042ac067e5b754878a8ac3689983d3006
| 8,454
|
py
|
Python
|
entidades/forms.py
|
jmjacquet/IronWeb
|
974d7fca8db69ffcfec15325cdb641a1b4b2c526
|
[
"MIT"
] | null | null | null |
entidades/forms.py
|
jmjacquet/IronWeb
|
974d7fca8db69ffcfec15325cdb641a1b4b2c526
|
[
"MIT"
] | 9
|
2020-09-22T12:34:00.000Z
|
2021-09-10T16:32:04.000Z
|
entidades/forms.py
|
jmjacquet/IronWeb
|
974d7fca8db69ffcfec15325cdb641a1b4b2c526
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
from django import forms
from django.forms import ModelForm
from django.forms.models import BaseInlineFormSet
import datetime
from general.utilidades import *
from django.contrib import admin
from django.utils import *
from django.forms.widgets import TextInput,NumberInput
from django.forms import Widget
from django.db.models import Q
from django.utils.safestring import mark_safe
from crispy_forms.helper import FormHelper
from crispy_forms.layout import Layout, Submit, Div,Button,HTML
from .models import *
from general.utilidades import *
from general.models import gral_empresa
from general.forms import empresas_buscador
from general.flavor import ARCUITField,ARDNIField,ARPostalCodeField
from productos.models import prod_lista_precios
class EntidadesForm(forms.ModelForm):
observaciones = forms.CharField(label='Observaciones / Datos adicionales',widget=forms.Textarea(attrs={'class':'form-control2', 'rows': 5}),required = False)
fact_cuit = ARCUITField(label='CUIT',required = False,widget=PostPendWidgetBuscar(attrs={'class':'form-control','autofocus':'autofocus'},
base_widget=TextInput,data='<i class="fa fa-search" aria-hidden="true"></i>',tooltip=u"Buscar datos y validar CUIT en AFIP"))
fact_categFiscal = forms.ChoiceField(label=u'Categoría Fiscal',required = True,choices=CATEG_FISCAL,initial=5)
fact_nro_doc = ARDNIField(label=u'Número',required = False)
tipo_doc = forms.ChoiceField(label=u'Tipo Documento',required = True,choices=TIPO_DOC)
cod_postal = ARPostalCodeField(label='CP',required = False)
tipo_entidad = forms.IntegerField(widget = forms.HiddenInput(), required = False)
empresa = forms.ModelChoiceField(queryset=gral_empresa.objects.all(),empty_label=None)
dcto_general = forms.DecimalField(label=u'% Dcto.General',initial=0,decimal_places=2,required = False)
tope_cta_cte = forms.DecimalField(widget=PrependWidget(attrs={'class':'form-control','step':0.00},base_widget=NumberInput, data='$'),initial=0.00,decimal_places=2,required = False)
lista_precios_defecto = forms.ModelChoiceField(label=u'Lista Precios x Defecto',queryset=prod_lista_precios.objects.all(),required = False)
class Meta:
model = egr_entidad
exclude = ['id','fecha_creacion','fecha_modif','usuario']
def __init__(self, *args, **kwargs):
request = kwargs.pop('request', None)
super(EntidadesForm, self).__init__(*args, **kwargs)
self.fields['lista_precios_defecto'].queryset = prod_lista_precios.objects.filter(baja=False,empresa__id__in=empresas_habilitadas(request))
try:
empresas = empresas_buscador(request)
self.fields['empresa'].queryset = empresas
self.fields['empresa'].initial = 1
except:
empresas = empresa_actual(request)
self.fields['empresa'].queryset = empresas
def clean(self):
fact_cuit = self.cleaned_data.get('fact_cuit')
tipo_entidad = self.cleaned_data.get('tipo_entidad')
fact_categFiscal = self.cleaned_data.get('fact_categFiscal')
tipo_doc = self.cleaned_data.get('tipo_doc')
if fact_cuit:
try:
entidad=egr_entidad.objects.filter(fact_cuit=fact_cuit,tipo_entidad=tipo_entidad,baja=False)
if entidad:
raise forms.ValidationError("El Nº de CUIT ingresado ya existe en el Sistema! Verifique.")
except egr_entidad.DoesNotExist:
#because we didn't get a match
pass
if fact_categFiscal and tipo_doc:
if (int(fact_categFiscal)==1)and(int(tipo_doc)==80)and(not validar_cuit(fact_cuit)):
raise forms.ValidationError(u'Debe cargar un CUIT válido! Verifique.')
if (int(fact_categFiscal)==1)and(int(tipo_doc)!=80):
raise forms.ValidationError(u'Si es IVA R.I. debe seleccionar CUIT como tipo de Documento! Verifique.')
return self.cleaned_data
class EntidadesEditForm(forms.ModelForm):
observaciones = forms.CharField(label='Observaciones / Datos adicionales',widget=forms.Textarea(attrs={'class':'form-control2', 'rows': 5}),required = False)
fact_cuit = ARCUITField(label='CUIT',required = False,widget=PostPendWidgetBuscar(attrs={'class':'form-control','autofocus':'autofocus'},
base_widget=TextInput,data='<i class="fa fa-search" aria-hidden="true"></i>',tooltip=u"Buscar datos y validar CUIT en AFIP"))
fact_categFiscal = forms.ChoiceField(label=u'Categoría Fiscal',required = True,choices=CATEG_FISCAL,initial=5)
fact_nro_doc = ARDNIField(label=u'Número',required = False)
cod_postal = ARPostalCodeField(label='CP',required = False)
tipo_entidad = forms.IntegerField(widget = forms.HiddenInput(), required = False)
tipo_doc = forms.ChoiceField(label=u'Tipo Documento',required = True,choices=TIPO_DOC,initial=80)
empresa = forms.ModelChoiceField(queryset=gral_empresa.objects.all(),empty_label=None)
dcto_general = forms.DecimalField(label=u'% Dcto.General',initial=0,decimal_places=2,required = False)
tope_cta_cte = forms.DecimalField(widget=PrependWidget(attrs={'class':'form-control','step':0.00},base_widget=NumberInput, data='$'),initial=0.00,decimal_places=2,required = False)
lista_precios_defecto = forms.ModelChoiceField(label=u'Lista Precios x Defecto',queryset=prod_lista_precios.objects.all(),required = False)
class Meta:
model = egr_entidad
exclude = ['id','fecha_creacion','fecha_modif','usuario']
def __init__(self, *args, **kwargs):
request = kwargs.pop('request', None)
super(EntidadesEditForm, self).__init__(*args, **kwargs)
self.fields['lista_precios_defecto'].queryset = prod_lista_precios.objects.filter(baja=False,empresa__id__in=empresas_habilitadas(request))
try:
empresas = empresas_buscador(request)
self.fields['empresa'].queryset = empresas
except:
empresas = empresa_actual(request)
self.fields['empresa'].queryset = empresas
def clean(self):
fact_categFiscal = self.cleaned_data.get('fact_categFiscal')
tipo_doc = self.cleaned_data.get('tipo_doc')
fact_cuit = self.cleaned_data.get('fact_cuit')
if fact_categFiscal and tipo_doc:
if (int(fact_categFiscal)==1)and(int(tipo_doc)==80)and(not validar_cuit(fact_cuit)):
self._errors['fact_cuit'] = ''
raise forms.ValidationError(u'Debe cargar un CUIT válido! Verifique.')
if (int(fact_categFiscal)==1)and(int(tipo_doc)!=80):
self._errors['tipo_doc'] = u''
raise forms.ValidationError(u'Si es IVA R.I. debe seleccionar CUIT como tipo de Documento! Verifique.')
return self.cleaned_data
class VendedoresForm(forms.ModelForm):
observaciones = forms.CharField(label='Observaciones / Datos adicionales',widget=forms.Textarea(attrs={'class':'form-control2', 'rows': 5}),required = False)
fact_nro_doc = ARDNIField(label=u'Número',required = False)
cod_postal = ARPostalCodeField(label='CP',required = False)
tipo_entidad = forms.IntegerField(widget = forms.HiddenInput(), required = False)
empresa = forms.ModelChoiceField(queryset=gral_empresa.objects.all(),empty_label=None)
class Meta:
model = egr_entidad
exclude = ['id','fecha_creacion','fecha_modif','usuario']
def __init__(self, *args, **kwargs):
request = kwargs.pop('request', None)
super(VendedoresForm, self).__init__(*args, **kwargs)
try:
empresas = empresas_buscador(request)
self.fields['empresa'].queryset = empresas
self.fields['empresa'].initial = 1
except:
empresa = empresa_actual(request)
class ImportarEntidadesForm(forms.Form):
archivo = forms.FileField(label='Seleccione un archivo',required=True)
sobreescribir = forms.ChoiceField(label=u'¿Sobreescribir Existentes?',choices=SINO,required=True,initial='S')
empresa = forms.ModelChoiceField(queryset=gral_empresa.objects.all(),empty_label=None,required=True)
tipo_entidad = forms.ChoiceField(label=u'Tipo Entidad',choices=TIPO_ENTIDAD,required=True,initial=1)
def __init__(self, *args, **kwargs):
request = kwargs.pop('request', None)
super(ImportarEntidadesForm, self).__init__(*args, **kwargs)
try:
empresas = empresas_buscador(request)
self.fields['empresa'].queryset = empresas
self.fields['empresa'].initial = 1
except:
empresa = empresa_actual(request)
def clean(self):
archivo = self.cleaned_data.get('archivo')
if archivo:
if not archivo.name.endswith('.csv'):
self.add_error("archivo",u'¡El archivo debe tener extensión .CSV!')
#if file is too large, return
if archivo.multiple_chunks():
self.add_error("archivo",u"El archivo es demasiado grande (%.2f MB)." % (archivo.size/(1000*1000),))
return self.cleaned_data
| 51.54878
| 181
| 0.753963
| 1,114
| 8,454
| 5.559246
| 0.191203
| 0.041983
| 0.026643
| 0.023252
| 0.766026
| 0.741805
| 0.741805
| 0.741805
| 0.731471
| 0.731471
| 0
| 0.007216
| 0.114857
| 8,454
| 164
| 182
| 51.54878
| 0.820126
| 0.009226
| 0
| 0.676056
| 0
| 0
| 0.164815
| 0.01051
| 0
| 0
| 0
| 0
| 0
| 1
| 0.049296
| false
| 0.007042
| 0.147887
| 0
| 0.485915
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
8560255158af50c595a4ce79e208973bf688f5a4
| 250
|
py
|
Python
|
mapper/admin.py
|
VedPatwardhan/Zero-Touch-Register
|
3bb6e059c5c5a0f5074e53a05bfb6154ea66d8f5
|
[
"Apache-2.0"
] | 1
|
2021-03-31T10:34:28.000Z
|
2021-03-31T10:34:28.000Z
|
mapper/admin.py
|
anupampatil44/ZeroTouchRegister
|
72af39a0f606791d2b544f0f9fa956425d9bbedc
|
[
"Apache-2.0"
] | null | null | null |
mapper/admin.py
|
anupampatil44/ZeroTouchRegister
|
72af39a0f606791d2b544f0f9fa956425d9bbedc
|
[
"Apache-2.0"
] | 1
|
2021-03-26T18:53:08.000Z
|
2021-03-26T18:53:08.000Z
|
from django.contrib import admin
from import_export.admin import ImportExportModelAdmin
# Register your models here.
from .models import visitor
# admin.site.register(visitor)
@admin.register(visitor)
class ViewAdmin(ImportExportModelAdmin):
pass
| 31.25
| 54
| 0.828
| 30
| 250
| 6.866667
| 0.533333
| 0.116505
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.104
| 250
| 8
| 55
| 31.25
| 0.919643
| 0.22
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.166667
| 0.666667
| 0
| 0.833333
| 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
| 1
| 1
| 0
| 1
| 0
|
0
| 5
|
85666b6e173a30fb531bac09d25a6cb91c75a593
| 538
|
py
|
Python
|
movieverse/metadatalib/tmdb.py
|
KoenBaak/movieverse
|
2337a7338e350ebb59dec3119bd5ee4235268fc0
|
[
"MIT"
] | null | null | null |
movieverse/metadatalib/tmdb.py
|
KoenBaak/movieverse
|
2337a7338e350ebb59dec3119bd5ee4235268fc0
|
[
"MIT"
] | null | null | null |
movieverse/metadatalib/tmdb.py
|
KoenBaak/movieverse
|
2337a7338e350ebb59dec3119bd5ee4235268fc0
|
[
"MIT"
] | null | null | null |
# --- imports from python standard library -------------------------------------
# --- external imports ---------------------------------------------------------
# --- imports own packages and modules -----------------------------------------
from metadalib.base import MetaDataLibraryBase
from movieverse.async_client import AsyncClient
# ------------------------------------------------------------------------------
class TMDBMetaDataLib(MetaDataLibraryBase, AsyncClient):
def __init__(self) -> None:
# TODO:
pass
| 44.833333
| 80
| 0.44052
| 33
| 538
| 7.030303
| 0.787879
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.115242
| 538
| 11
| 81
| 48.909091
| 0.487395
| 0.596654
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.090909
| 0
| 1
| 0.2
| false
| 0.2
| 0.4
| 0
| 0.8
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 0
|
0
| 5
|
858c2a57841df2ed93e2b141b0e38a6038ebeb08
| 172
|
py
|
Python
|
part-1/string1.py
|
pt-dev/python-newbie
|
3c0043af6071facb73177214670718e45bce8575
|
[
"MIT"
] | null | null | null |
part-1/string1.py
|
pt-dev/python-newbie
|
3c0043af6071facb73177214670718e45bce8575
|
[
"MIT"
] | null | null | null |
part-1/string1.py
|
pt-dev/python-newbie
|
3c0043af6071facb73177214670718e45bce8575
|
[
"MIT"
] | null | null | null |
ss = "Sammy Shark"
print(ss.upper())
print(ss.lower())
print("Is it all alphanum? ")
print(str.isalnum(ss))
print("What about all alpha?")
print(str.isalnum(ss))
print(ss)
| 19.111111
| 30
| 0.69186
| 29
| 172
| 4.103448
| 0.517241
| 0.176471
| 0.252101
| 0.285714
| 0.369748
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.104651
| 172
| 8
| 31
| 21.5
| 0.772727
| 0
| 0
| 0.25
| 0
| 0
| 0.302326
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.875
| 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
| 1
|
0
| 5
|
8593bae3461a23103f4d88a5b6f58a875cbb3bf2
| 222
|
py
|
Python
|
leetCode/1689-Partitioning-Into-Minimum-Number-Of-Deci-Binary-Numbers.py
|
aman11s/Hacktoberfest-GDSC-NIE-2021
|
40e2b06a3a5663d6eb0c1e10edcf993ed2d36929
|
[
"MIT"
] | 3
|
2021-10-03T07:21:46.000Z
|
2021-10-04T19:25:22.000Z
|
leetCode/1689-Partitioning-Into-Minimum-Number-Of-Deci-Binary-Numbers.py
|
aman11s/Hacktoberfest-GDSC-NIE-2021
|
40e2b06a3a5663d6eb0c1e10edcf993ed2d36929
|
[
"MIT"
] | 5
|
2021-10-13T16:27:24.000Z
|
2021-10-21T16:02:43.000Z
|
leetCode/1689-Partitioning-Into-Minimum-Number-Of-Deci-Binary-Numbers.py
|
aman11s/Hacktoberfest-GDSC-NIE-2021
|
40e2b06a3a5663d6eb0c1e10edcf993ed2d36929
|
[
"MIT"
] | 25
|
2021-10-03T07:21:58.000Z
|
2021-10-31T15:31:18.000Z
|
# Author: @Iresharma
# https://leetcode.com/problems/1689-Partitioning-Into-Minimum-Number-Of-Deci-Binary-Numbers/
"""
"""
class Solution:
def minPartitions(self, n: str) -> int:
return max(map(int, list(n)))
| 24.666667
| 93
| 0.68018
| 29
| 222
| 5.206897
| 0.931034
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.020942
| 0.13964
| 222
| 9
| 94
| 24.666667
| 0.769634
| 0.495496
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0
| 0.333333
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 5
|
8593e5a9c4812faa8af0f3bee43aa1b17fbf7027
| 159
|
py
|
Python
|
mock/mock_patch/simple.py
|
aikrasnov/otus-examples
|
607fe0c11d812bdff57d92fc0949d5bdf3356c22
|
[
"MIT"
] | 8
|
2019-11-03T18:59:08.000Z
|
2020-10-10T18:50:09.000Z
|
mock/mock_patch/simple.py
|
aikrasnov/otus-examples
|
607fe0c11d812bdff57d92fc0949d5bdf3356c22
|
[
"MIT"
] | null | null | null |
mock/mock_patch/simple.py
|
aikrasnov/otus-examples
|
607fe0c11d812bdff57d92fc0949d5bdf3356c22
|
[
"MIT"
] | null | null | null |
from unittest.mock import patch
def foo():
return input()
@patch("builtins.input", lambda *args: "string")
def test_foo():
assert foo() == "string"
| 15.9
| 48
| 0.654088
| 21
| 159
| 4.904762
| 0.714286
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.18239
| 159
| 10
| 49
| 15.9
| 0.792308
| 0
| 0
| 0
| 0
| 0
| 0.1625
| 0
| 0
| 0
| 0
| 0
| 0.166667
| 1
| 0.333333
| true
| 0
| 0.166667
| 0.166667
| 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
| 1
| 0
| 0
| 1
| 1
| 0
|
0
| 5
|
85a57f1711275ff4d2b85919f43c0c995d8ff179
| 530
|
py
|
Python
|
cors/constants.py
|
optimizely/cors-python
|
d3fd6ff20b5c1a05ede0950ce817e584bb969d81
|
[
"MIT"
] | null | null | null |
cors/constants.py
|
optimizely/cors-python
|
d3fd6ff20b5c1a05ede0950ce817e584bb969d81
|
[
"MIT"
] | null | null | null |
cors/constants.py
|
optimizely/cors-python
|
d3fd6ff20b5c1a05ede0950ce817e584bb969d81
|
[
"MIT"
] | 1
|
2021-02-14T11:58:36.000Z
|
2021-02-14T11:58:36.000Z
|
ORIGIN = 'Origin'
VARY = 'Vary'
ACCESS_CONTROL_REQUEST_METHOD = 'Access-Control-Request-Method'
ACCESS_CONTROL_REQUEST_HEADERS = 'Access-Control-Request-Headers'
ACCESS_CONTROL_ALLOW_ORIGIN = 'Access-Control-Allow-Origin'
ACCESS_CONTROL_ALLOW_CREDENTIALS = 'Access-Control-Allow-Credentials'
ACCESS_CONTROL_ALLOW_METHODS = 'Access-Control-Allow-Methods'
ACCESS_CONTROL_ALLOW_HEADERS = 'Access-Control-Allow-Headers'
ACCESS_CONTROL_MAX_AGE = 'Access-Control-Max-Age'
ACCESS_CONTROL_EXPOSE_HEADERS = 'Access-Control-Expose-Headers'
| 48.181818
| 69
| 0.841509
| 68
| 530
| 6.205882
| 0.191176
| 0.492891
| 0.341232
| 0.123223
| 0.86019
| 0.86019
| 0.582938
| 0
| 0
| 0
| 0
| 0
| 0.056604
| 530
| 10
| 70
| 53
| 0.844
| 0
| 0
| 0
| 0
| 0
| 0.443396
| 0.424528
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 1
| 1
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
85c07140b30d1fffea4aa5deb01501a893f3e918
| 107
|
py
|
Python
|
src/db/models/tags.py
|
s0hvaperuna/playlist-checker
|
ce9ee4e603070c9bd892a9bec64e792d647618d2
|
[
"MIT"
] | null | null | null |
src/db/models/tags.py
|
s0hvaperuna/playlist-checker
|
ce9ee4e603070c9bd892a9bec64e792d647618d2
|
[
"MIT"
] | null | null | null |
src/db/models/tags.py
|
s0hvaperuna/playlist-checker
|
ce9ee4e603070c9bd892a9bec64e792d647618d2
|
[
"MIT"
] | null | null | null |
from dataclasses import dataclass
from .DbBase import DbBase
@dataclass
class Tag(DbBase):
tag: str
| 11.888889
| 33
| 0.757009
| 14
| 107
| 5.785714
| 0.571429
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.186916
| 107
| 8
| 34
| 13.375
| 0.931034
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 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
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
a41501a414a8f27b4d19904d150d40b4c4c41d50
| 5,786
|
py
|
Python
|
scitbx/math/des_3_100_13.py
|
dperl-sol/cctbx_project
|
b9e390221a2bc4fd00b9122e97c3b79c632c6664
|
[
"BSD-3-Clause-LBNL"
] | 155
|
2016-11-23T12:52:16.000Z
|
2022-03-31T15:35:44.000Z
|
scitbx/math/des_3_100_13.py
|
dperl-sol/cctbx_project
|
b9e390221a2bc4fd00b9122e97c3b79c632c6664
|
[
"BSD-3-Clause-LBNL"
] | 590
|
2016-12-10T11:31:18.000Z
|
2022-03-30T23:10:09.000Z
|
scitbx/math/des_3_100_13.py
|
dperl-sol/cctbx_project
|
b9e390221a2bc4fd00b9122e97c3b79c632c6664
|
[
"BSD-3-Clause-LBNL"
] | 115
|
2016-11-15T08:17:28.000Z
|
2022-02-09T15:30:14.000Z
|
"""
Below are flex arrays with x,y,z points for numerical integration on a sphere with unit weights, a so called
spherical t-design
The design implemented below contains 100 points and provides exact integrals over the surface for polynomial
functions on that sphere up to order 13.
The design has been taken from
http://www2.research.att.com/~njas/sphdesigns/dim3/
"""
from __future__ import absolute_import, division, print_function
from scitbx.array_family import flex
t_x = flex.double([ 0.845786926423 , -0.0634417983892 , -0.845786926456 , -0.529735418328 , 0.0634417986396 , -0.529735418346 , 0.0634417984036 , 0.529735418468 , -0.0634417984896 , 0.52973541844 , 0.845786926346 , -0.845786926415 , 0.929917825559 , -0.196162596035 , -0.929917825491 , 0.311083708412 , 0.196162596119 , 0.311083708425 , 0.196162596063 , -0.311083708452 , -0.196162595926 , -0.311083708551 , 0.929917825507 , -0.929917825406 , -0.842584243732 , -0.495799724243 , 0.842584243612 , -0.210319816656 , 0.495799724512 , -0.210319816854 , 0.495799724443 , 0.210319816609 , -0.495799724459 , 0.210319816771 , -0.842584243891 , 0.842584243715 , 0.896721022727 , 0.311078300883 , -0.896721022772 , 0.314835985985 , -0.311078301038 , 0.314835986057 , -0.31107830098 , -0.314835986039 , 0.31107830104 , -0.314835986019 , 0.896721022766 , -0.896721022776 , -0.986889783137 , -0.155620975564 , 0.986889783118 , 0.0427863048269 , 0.15562097569 , 0.0427863047153 , 0.155620975706 , -0.0427863049388 , -0.155620975684 , -0.0427863048734 , -0.986889783158 , 0.986889783143 , -0.662121344635 , 0.396667964582 , 0.66212134462 , -0.635806457189 , -0.396667964267 , -0.635806457181 , -0.396667964383 , 0.635806457293 , 0.396667964393 , 0.635806457367 , -0.662121344545 , 0.662121344488 , 0.581325232381 , -0.10635914801 , -0.581325232439 , -0.80668996891 , 0.106359148208 , -0.806689968881 , 0.106359148018 , 0.806689969064 , -0.10635914814 , 0.80668996899 , 0.581325232223 , -0.581325232366 , 0.736077680608 , 0.291056986499 , -0.736077680454 , -0.611126401618 , -0.291056986482 , -0.611126401421 , -0.29105698668 , 0.611126401395 , 0.291056986389 , 0.611126401291 , 0.736077680695 , -0.736077680618 , -0.577350269177 , 0.577350269044 , 0.577350269134 , -0.577350269314 , ])
t_y = flex.double([ -0.063441798167 , -0.529735418358 , 0.0634417984532 , 0.845786926364 , -0.529735418249 , -0.845786926353 , 0.529735418303 , -0.845786926255 , 0.529735418273 , 0.845786926264 , 0.0634417983435 , -0.0634417986471 , -0.196162596037 , 0.311083708403 , 0.19616259597 , 0.929917825616 , 0.311083708701 , -0.929917825595 , -0.311083708528 , -0.929917825508 , -0.311083708571 , 0.929917825463 , 0.196162596269 , -0.196162596229 , -0.495799724547 , -0.210319816476 , 0.495799724769 , -0.842584243735 , -0.210319816834 , 0.842584243659 , 0.210319816811 , 0.842584243983 , 0.210319816511 , -0.842584243879 , 0.495799724323 , -0.49579972458 , 0.311078300858 , 0.314835985948 , -0.311078301036 , 0.896721022714 , 0.314835985871 , -0.89672102269 , -0.314835986025 , -0.896721022757 , -0.314835985795 , 0.896721022742 , -0.311078300782 , 0.311078300979 , -0.15562097571 , 0.0427863048563 , 0.155620975792 , -0.986889783106 , 0.0427863047246 , 0.986889783105 , -0.0427863046612 , 0.986889783153 , -0.0427863048966 , -0.986889783147 , 0.155620975538 , -0.155620975623 , 0.396667964571 , -0.63580645716 , -0.396667964319 , -0.662121344638 , -0.635806457356 , 0.662121344671 , 0.635806457223 , 0.662121344445 , 0.635806457261 , -0.662121344469 , -0.396667964636 , 0.39666796434 , -0.106359147977 , -0.806689969022 , 0.106359148266 , 0.581325232279 , -0.806689968851 , -0.581325232326 , 0.806689968901 , -0.581325232067 , 0.806689968943 , 0.581325232153 , 0.106359147993 , -0.106359148293 , 0.291056986738 , -0.611126401593 , -0.29105698644 , 0.73607768052 , -0.611126401475 , -0.736077680629 , 0.611126401332 , -0.736077680752 , 0.611126401765 , 0.736077680828 , -0.291056986626 , 0.291056986373 , -0.577350269035 , 0.577350269266 , -0.577350269225 , 0.577350269039 , ])
t_z = flex.double([ -0.52973541824 , 0.845786926332 , -0.529735418153 , -0.0634417982194 , -0.845786926382 , 0.063441798214 , 0.845786926366 , -0.0634417984998 , -0.845786926378 , 0.063441798606 , 0.529735418341 , 0.529735418194 , 0.311083708385 , 0.929917825554 , 0.311083708631 , -0.196162595726 , -0.929917825437 , 0.196162595807 , 0.929917825506 , -0.196162596176 , -0.929917825521 , 0.196162596231 , -0.311083708397 , -0.311083708724 , -0.210319816836 , -0.842584244 , -0.210319816791 , -0.495799724618 , 0.842584243753 , 0.495799724664 , -0.842584243799 , -0.495799724217 , 0.842584243865 , 0.495799724325 , 0.210319816725 , 0.210319816824 , 0.314835986087 , 0.896721022767 , 0.314835985783 , 0.311078300998 , -0.89672102274 , -0.311078300993 , 0.896721022706 , 0.311078300821 , -0.896721022766 , -0.311078300883 , -0.314835986051 , -0.314835985828 , 0.0427863045687 , -0.986889783148 , 0.042786304716 , -0.155620975834 , 0.986889783134 , 0.155620975871 , -0.986889783134 , -0.155620975508 , 0.986889783127 , 0.155620975562 , -0.0427863047074 , -0.0427863047443 , -0.635806457078 , -0.66212134455 , -0.63580645725 , 0.396667964387 , 0.66212134455 , -0.396667964347 , -0.662121344609 , 0.396667964543 , 0.662121344566 , -0.396667964385 , 0.635806457131 , 0.635806457375 , -0.806689968847 , 0.581325232132 , -0.806689968768 , -0.106359148058 , -0.581325232333 , 0.106359148016 , 0.581325232299 , -0.10635914805 , -0.581325232219 , 0.10635914814 , 0.806689968959 , 0.806689968816 , -0.611126401477 , 0.736077680606 , -0.611126401804 , 0.291056986663 , -0.73607768071 , -0.291056986803 , 0.736077680751 , 0.291056986545 , -0.736077680507 , -0.291056986571 , 0.611126401425 , 0.611126401638 , -0.577350269357 , -0.577350269258 , 0.57735026921 , 0.577350269216 , ])
| 304.526316
| 1,771
| 0.745247
| 688
| 5,786
| 6.252907
| 0.518895
| 0.006974
| 0.007671
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.763369
| 0.117698
| 5,786
| 18
| 1,772
| 321.444444
| 0.079334
| 0.06291
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.4
| 0
| 0.4
| 0.2
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
a429d216f44f9e3b51b450bf615ba15827b05edf
| 76
|
py
|
Python
|
satchmo/projects/skeleton/urls.py
|
funwhilelost/satchmo
|
589a5d797533ea15dfde9af7f36e304092d22a94
|
[
"BSD-3-Clause"
] | null | null | null |
satchmo/projects/skeleton/urls.py
|
funwhilelost/satchmo
|
589a5d797533ea15dfde9af7f36e304092d22a94
|
[
"BSD-3-Clause"
] | null | null | null |
satchmo/projects/skeleton/urls.py
|
funwhilelost/satchmo
|
589a5d797533ea15dfde9af7f36e304092d22a94
|
[
"BSD-3-Clause"
] | null | null | null |
from django.conf.urls import *
from satchmo_store.urls import urlpatterns
| 15.2
| 42
| 0.815789
| 11
| 76
| 5.545455
| 0.727273
| 0.327869
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.131579
| 76
| 4
| 43
| 19
| 0.924242
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
a44d2d341072c844f8aefb2c301187a67a10352d
| 170
|
py
|
Python
|
bolsa/__init__.py
|
LautaroParada/bolsa-santiago
|
327cd4a386ca3da7197f6d338ceb2142c6d5b86f
|
[
"MIT"
] | 5
|
2021-03-05T06:23:29.000Z
|
2021-08-29T15:24:23.000Z
|
bolsa/__init__.py
|
LautaroParada/bolsa-santiago
|
327cd4a386ca3da7197f6d338ceb2142c6d5b86f
|
[
"MIT"
] | null | null | null |
bolsa/__init__.py
|
LautaroParada/bolsa-santiago
|
327cd4a386ca3da7197f6d338ceb2142c6d5b86f
|
[
"MIT"
] | 2
|
2021-03-17T11:28:36.000Z
|
2021-08-29T15:34:02.000Z
|
# -*- coding: utf-8 -*-
"""
Created on Tue Feb 16 14:39:46 2021
@author: lauta
"""
from bolsa.negociacion import NegociacionAPI
from bolsa.consultas import ConsultasAPI
| 18.888889
| 44
| 0.729412
| 24
| 170
| 5.166667
| 0.875
| 0.145161
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.089655
| 0.147059
| 170
| 9
| 45
| 18.888889
| 0.765517
| 0.435294
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
a4622e7268302221803ca50eb945c8b32816ee99
| 62
|
py
|
Python
|
abc/136/a/answer.py
|
TakuyaNoguchi/atcoder
|
d079402e6fe9c9aaf3a6fc9272331ee71fc497da
|
[
"MIT"
] | null | null | null |
abc/136/a/answer.py
|
TakuyaNoguchi/atcoder
|
d079402e6fe9c9aaf3a6fc9272331ee71fc497da
|
[
"MIT"
] | null | null | null |
abc/136/a/answer.py
|
TakuyaNoguchi/atcoder
|
d079402e6fe9c9aaf3a6fc9272331ee71fc497da
|
[
"MIT"
] | null | null | null |
A, B, C = map(int, input().split())
print(C - min(A - B, C))
| 15.5
| 35
| 0.5
| 13
| 62
| 2.384615
| 0.692308
| 0.129032
| 0.193548
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.209677
| 62
| 3
| 36
| 20.666667
| 0.632653
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 0.5
| 1
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 5
|
a473fb04360f06c5dde9b609ecf5eb7ee6049051
| 192
|
py
|
Python
|
Gym/temprl/scripts/whitelist.py
|
Alee08/MultiUAV-RL-RB
|
96a0b350b3176ff6011abe97491de9707416c289
|
[
"ImageMagick"
] | 4
|
2021-07-22T17:16:30.000Z
|
2022-03-03T11:14:12.000Z
|
Gym/temprl/scripts/whitelist.py
|
Alee08/MultiUAV-RL-RB
|
96a0b350b3176ff6011abe97491de9707416c289
|
[
"ImageMagick"
] | null | null | null |
Gym/temprl/scripts/whitelist.py
|
Alee08/MultiUAV-RL-RB
|
96a0b350b3176ff6011abe97491de9707416c289
|
[
"ImageMagick"
] | null | null | null |
# type: ignore
_.automaton # unused property (temprl/wrapper.py:90)
_._one_hot_encoding # unused attribute (temprl/wrapper.py:92)
TemporalGoalWrapper # unused class (temprl/wrapper.py:159)
| 38.4
| 62
| 0.776042
| 25
| 192
| 5.76
| 0.68
| 0.270833
| 0.3125
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.040936
| 0.109375
| 192
| 4
| 63
| 48
| 0.80117
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 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
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
a496c2fec74f42d74b175627e5137db94ecb7123
| 52
|
py
|
Python
|
pic_poster.py
|
AzethMeron/Zeke-2.0
|
58e28c7642efe5591538217d017e7a74d0ca0b70
|
[
"BSD-3-Clause"
] | null | null | null |
pic_poster.py
|
AzethMeron/Zeke-2.0
|
58e28c7642efe5591538217d017e7a74d0ca0b70
|
[
"BSD-3-Clause"
] | null | null | null |
pic_poster.py
|
AzethMeron/Zeke-2.0
|
58e28c7642efe5591538217d017e7a74d0ca0b70
|
[
"BSD-3-Clause"
] | null | null | null |
import data
import triggers
import tools
import cmd
| 10.4
| 15
| 0.846154
| 8
| 52
| 5.5
| 0.625
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.153846
| 52
| 5
| 16
| 10.4
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
a49984234660bf94f6ad91add9189a7c94083023
| 89
|
py
|
Python
|
dags/config/settings.py
|
reljicd/ml_airflow
|
505c663e94ec3abf067609d82b7c8f27fc830e4a
|
[
"Apache-2.0"
] | 13
|
2018-03-21T11:46:40.000Z
|
2022-02-03T02:27:20.000Z
|
dags/config/settings.py
|
reljicd/ml_airflow
|
505c663e94ec3abf067609d82b7c8f27fc830e4a
|
[
"Apache-2.0"
] | 10
|
2019-10-28T11:37:11.000Z
|
2022-03-01T23:10:24.000Z
|
dags/config/settings.py
|
reljicd/ml_airflow
|
505c663e94ec3abf067609d82b7c8f27fc830e4a
|
[
"Apache-2.0"
] | 5
|
2019-07-31T07:10:44.000Z
|
2021-11-04T16:08:00.000Z
|
import os
DB_CONN_ID = os.environ['DB_CONN_ID'] if 'DB_CONN_ID' in os.environ else None
| 22.25
| 77
| 0.764045
| 19
| 89
| 3.263158
| 0.526316
| 0.290323
| 0.387097
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.134831
| 89
| 3
| 78
| 29.666667
| 0.805195
| 0
| 0
| 0
| 0
| 0
| 0.224719
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
f10720009b0f4c208598508863797f883643d9e1
| 153
|
py
|
Python
|
ope-backend/src/domain/dto/product_remove_amount_dto.py
|
clauddio-silva/ope-1
|
8be8a10c0db3d2f17e8e90a594abdf5770d53fa3
|
[
"CC0-1.0"
] | 2
|
2021-08-12T23:31:38.000Z
|
2021-08-24T11:16:53.000Z
|
ope-backend/src/domain/dto/product_remove_amount_dto.py
|
clauddio-silva/ope-1
|
8be8a10c0db3d2f17e8e90a594abdf5770d53fa3
|
[
"CC0-1.0"
] | 1
|
2021-09-16T18:17:23.000Z
|
2021-09-16T18:17:23.000Z
|
ope-backend/src/domain/dto/product_remove_amount_dto.py
|
clauddio-silva/ope-1
|
8be8a10c0db3d2f17e8e90a594abdf5770d53fa3
|
[
"CC0-1.0"
] | 6
|
2021-08-23T23:19:53.000Z
|
2021-11-30T23:24:12.000Z
|
from flask_restx import fields
ProductRemoveAmount = {
'id': fields.Integer(required=True),
'amount_to_remove': fields.Integer(required=True),
}
| 25.5
| 54
| 0.745098
| 18
| 153
| 6.166667
| 0.722222
| 0.234234
| 0.378378
| 0.45045
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.130719
| 153
| 6
| 55
| 25.5
| 0.834586
| 0
| 0
| 0
| 0
| 0
| 0.116883
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.2
| 0
| 0.2
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
f1285435666a488255056f46e545579cea24efb3
| 32,102
|
py
|
Python
|
test/unitTests/stlOperatorTests/untilTestData.py
|
pieter-hendriks/STL-monitoring
|
114b73b1f4b0687b11b8842b3c4a1c8af7b0d9df
|
[
"MIT"
] | null | null | null |
test/unitTests/stlOperatorTests/untilTestData.py
|
pieter-hendriks/STL-monitoring
|
114b73b1f4b0687b11b8842b3c4a1c8af7b0d9df
|
[
"MIT"
] | null | null | null |
test/unitTests/stlOperatorTests/untilTestData.py
|
pieter-hendriks/STL-monitoring
|
114b73b1f4b0687b11b8842b3c4a1c8af7b0d9df
|
[
"MIT"
] | null | null | null |
# These were generated using Laurens' implementation -- both cases are from this one formula - two Until operations are computed.
# Formula: []{0,300}(x1-><>{3,5}x2)
# signals: signals/ex_sin1.csv
# semantics: quantitative
# Algo: short
from stl.signals import Signal
TESTCASE1_INTERVAL_LOWERBOUND: int = 3
TESTCASE1_INTERVAL_UPPERBOUND: int = 5
TESTCASE1_LEFTCHILD_SIGNAL: Signal = Signal(
'lc1', [
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29,
30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57,
58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85,
86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110,
111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132,
133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154,
155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176,
177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198,
199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220,
221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242,
243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264,
265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286,
287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308,
309
], [
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
], [
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
]
)
TESTCASE1_RIGHTCHILD_SIGNAL: Signal = Signal(
'rc1', [
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29,
30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57,
58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85,
86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110,
111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132,
133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154,
155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176,
177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198,
199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220,
221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242,
243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264,
265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286,
287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308,
309
], [
0.0, 0.0, 0.0, 0.0, 0.0, 0.058826673, 0.194712389, 0.259476925, 0.378180274, 0.40972079, 0.463972107,
0.522986054, 0.545206016, 0.706489542, 0.751477687, 0.797382135, 0.77959748, 0.820263959, 0.893548613,
0.953473577, 0.95328881, 0.971531285, 0.990549889, 0.997391279, 0.995344892, 0.988867213, 0.982947859,
0.961077181, 0.96113601, 0.906806579, 0.882403528, 0.848801441, 0.74345059, 0.744990197, 0.638242029,
0.663860436, 0.532792848, 0.543181275, 0.385640446, 0.264338221, 0.315829613, 0.17320498, 0.092904429,
0.067926413, -0.110044949, -0.163508769, -0.263395155, -0.220553656, -0.342609326, -0.416973165, -0.449090251,
-0.517573429, -0.61236945, -0.702456664, -0.730006119, -0.80272959, -0.864778167, -0.871533257, -0.935375603,
-0.971124522, -0.986628749, -0.986410156, -0.991448979, -0.99842581, -0.997133889, -0.995163629, -0.978306003,
-0.928863252, -0.912230431, -0.85768388, -0.879979937, -0.808627527, -0.702363821, -0.741481649, -0.601495716,
-0.553444669, -0.476589532, -0.490844327, -0.353516106, -0.277223546, -0.139102944, -0.192377291, -0.106626537,
0.044688029, 0.160320101, 0.158362573, 0.258254886, 0.299862416, 0.495035051, 0.562757179, 0.528104347,
0.589860787, 0.629633944, 0.729962706, 0.798916117, 0.845816587, 0.883990498, 0.912287211, 0.953595511,
0.957083726, 0.988403765, 0.999556997, 0.99934349, 0.999110503, 0.987450676, 0.970419964, 0.935487435,
0.929451481, 0.885412815, 0.826482172, 0.768526476, 0.772438557, 0.687856593, 0.621144208, 0.554750407,
0.565978393, 0.433935004, 0.323425325, 0.24804298, 0.141677037, 0.142013466, 0.031109534, -0.056169433,
-0.112586007, -0.243782527, -0.330097152, -0.343482333, -0.400978057, -0.525345546, -0.583236681, -0.660521951,
-0.697418888, -0.697383454, -0.731583306, -0.871510236, -0.875383916, -0.900672639, -0.947747621, -0.966079016,
-0.975027786, -0.990999483, -0.999856305, -0.999963115, -0.978763735, -0.982257363, -0.966677425, -0.927023751,
-0.915986006, -0.882415926, -0.832914557, -0.750592996, -0.760087665, -0.649582809, -0.552532116, -0.593415265,
-0.487130934, -0.322128485, -0.353567974, -0.223831828, -0.201822193, -0.118874512, 0.022007661, 0.01238295,
0.212222163, 0.301342546, 0.267199001, 0.417562572, 0.531093852, 0.485533898, 0.578784658, 0.631115248,
0.667505636, 0.758719742, 0.844164494, 0.84337629, 0.880704187, 0.957092721, 0.932453562, 0.981137321,
0.983130986, 0.999963711, 0.99981013, 0.984535704, 0.965186083, 0.957212566, 0.917411166, 0.898830531,
0.904931976, 0.810938287, 0.781679262, 0.713950709, 0.723447108, 0.603290165, 0.600129055, 0.53879427,
0.398758857, 0.326551199, 0.183110803, 0.106025731, 0.119703416, -0.045212923, -0.135513918, -0.092418035,
-0.173940783, -0.347906379, -0.370030962, -0.415248906, -0.50848844, -0.601413201, -0.631568616, -0.694025771,
-0.744993211, -0.823475176, -0.81544584, -0.892351652, -0.924756874, -0.957270246, -0.976472888, -0.989537696,
-0.99566712, -0.999590945, -0.99157962, -0.994905154, -0.978904424, -0.923671775, -0.926825517, -0.898093638,
-0.850382157, -0.788594861, -0.692101654, -0.690288239, -0.610715856, -0.576499039, -0.483098111, -0.377535845,
-0.35129962, -0.347880794, -0.134224652, -0.196491588, 0.004811825, -0.012085965, 0.105536343, 0.244669958,
0.346484555, 0.382648637, 0.463998043, 0.542035083, 0.543411422, 0.642672451, 0.663313225, 0.788864544,
0.826065431, 0.815827802, 0.904630957, 0.910945722, 0.930873733, 0.974453253, 0.969922514, 0.998951644,
0.996313324, 0.990888195, 0.98344209, 0.953366915, 0.956273071, 0.930000746, 0.893851352, 0.881858709,
0.84544711, 0.733996244, 0.666752479, 0.65184552, 0.53165707, 0.548855157, 0.404164769, 0.354511638, 0.31185975,
0.159230887, 0.195382859, 0.074972308, -0.02261868, -0.144113359, -0.127662252, -0.323317844, -0.273906254,
-0.413159274, -0.422145575, -0.570261423, -0.672774255, -0.683155195, -0.751613408, -0.800665174, -0.831225931,
-0.884172687, -0.933198881, -0.909946264, -0.967485829, -0.979668842, -0.98271145, -0.999999987, -0.999601333,
-0.995705607, -0.988228405, -0.945270965, -0.952229589, -0.893940777, -0.884964469, -0.84172006, -0.752305666,
-0.718932254, -0.63749937
], [
0.0, 0.0, 0.0, 0.0, 0.058826673, 0.13588571600000002, 0.06476453600000001, 0.11870334899999996,
0.03154051600000002, 0.05425131700000002, 0.059013946999999956, 0.022219961999999982, 0.16128352600000007,
0.044988144999999924, 0.04590444800000004, -0.017784655000000038, 0.04066647900000009, 0.07328465399999995,
0.059924964000000025, -0.0001847670000000301, 0.01824247499999998, 0.019018603999999995, 0.006841390000000058,
-0.0020463870000000384, -0.0064776789999999584, -0.005919353999999988, -0.021870678000000088,
5.88290000000935e-05, -0.054329431000000095, -0.024403050999999953, -0.033602087, -0.10535085099999997,
0.0015396069999999984, -0.10674816799999998, 0.025618406999999954, -0.13106758799999996, 0.010388426999999978,
-0.157540829, -0.12130222500000004, 0.051491392000000025, -0.142624633, -0.08030055100000001,
-0.024978015999999992, -0.17797136200000002, -0.053463819999999995, -0.099886386, 0.042841499000000005,
-0.12205567, -0.07436383899999999, -0.03211708600000002, -0.06848317800000003, -0.09479602099999995,
-0.09008721399999997, -0.027549455000000056, -0.07272347099999998, -0.062048576999999994, -0.006755089999999964,
-0.06384234600000005, -0.03574891899999999, -0.015504226999999982, 0.00021859299999993365,
-0.0050388229999999146, -0.006976831000000017, 0.0012919209999999737, 0.0019702600000000015,
0.01685762599999996, 0.04944275100000006, 0.016632820999999964, 0.054546551000000054, -0.022296057000000036,
0.07135241000000003, 0.1062637059999999, -0.039117827999999966, 0.13998593300000006, 0.04805104699999996,
0.07685513700000002, -0.014254795000000042, 0.13732822100000003, 0.07629256000000001, 0.13812060199999998,
-0.053274347, 0.08575075400000001, 0.15131456599999998, 0.115632072, -0.001957527999999986, 0.09989231300000001,
0.041607530000000004, 0.19517263499999998, 0.06772212799999999, -0.03465283200000002, 0.061756440000000024,
0.03977315699999995, 0.10032876200000007, 0.06895341099999996, 0.04690046999999997, 0.038173911000000005,
0.02829671300000003, 0.041308299999999964, 0.0034882150000000722, 0.03132003900000002, 0.011153231999999957,
-0.00021350700000000167, -0.0002329869999999623, -0.011659827000000011, -0.01703071200000006,
-0.03493252899999999, -0.00603595400000001, -0.04403866599999995, -0.05893064300000006, -0.057955695999999945,
0.003912080999999956, -0.08458196399999995, -0.06671238499999999, -0.06639380100000003, 0.011227985999999968,
-0.13204338899999996, -0.11050967900000003, -0.07538234499999999, -0.10636594299999999, 0.0003364289999999992,
-0.11090393200000001, -0.087278967, -0.056416574000000004, -0.13119651999999998, -0.086314625,
-0.013385180999999968, -0.057495724000000026, -0.12436748900000005, -0.05789113499999998, -0.07728526999999996,
-0.03689693699999996, 3.543399999994534e-05, -0.034199851999999975, -0.13992693, -0.0038736799999999905,
-0.02528872300000007, -0.04707498199999993, -0.018331395000000028, -0.00894876999999994, -0.015971697000000007,
-0.008856822000000042, -0.00010681000000001273, 0.02119937999999999, -0.003493627999999971,
0.015579938000000015, 0.03965367399999997, 0.011037744999999988, 0.03357008000000006, 0.049501368999999906,
0.0823215610000001, -0.009494669000000067, 0.11050485600000004, 0.09705069300000002, -0.04088314900000001,
0.10628433099999995, 0.165002449, -0.03143948899999999, 0.129736146, 0.022009635, 0.08294768100000001,
0.140882173, -0.009624711000000001, 0.199839213, 0.089120383, -0.034143545, 0.15036357100000003,
0.11353128000000001, -0.045559954000000014, 0.09325075999999999, 0.052330589999999955, 0.03639038800000005,
0.09121410600000002, 0.08544475200000001, -0.0007882040000000146, 0.03732789699999994, 0.07638853400000001,
-0.02463915900000002, 0.04868375899999999, 0.001993665000000089, 0.016832724999999993, -0.00015358100000006925,
-0.015274425999999952, -0.01934962100000004, -0.00797351699999993, -0.0398014000000001, -0.018580634999999956,
0.006101444999999983, -0.09399368899999994, -0.029259024999999994, -0.06772855300000002, 0.009496398999999989,
-0.12015694300000002, -0.003161109999999967, -0.061334785, -0.140035413, -0.07220765800000001,
-0.14344039600000003, -0.07708507199999999, 0.013677685000000009, -0.16491633900000002, -0.09030099500000001,
0.043095883000000015, -0.08152274799999999, -0.173965596, -0.02212458300000003, -0.045217943999999954,
-0.09323953400000007, -0.09292476099999991, -0.030155415000000074, -0.06245715499999993, -0.050967440000000086,
-0.07848196499999993, 0.008029335999999998, -0.07690581200000002, -0.032405221999999956, -0.03251337200000004,
-0.019202641999999992, -0.013064807999999983, -0.00612942400000005, -0.003923824999999992, 0.008011325000000014,
-0.003325534000000019, 0.01600073000000002, 0.05523264900000002, -0.0031537420000000704, 0.02873187900000007,
0.047711481, 0.06178729599999999, 0.09649320699999997, 0.001813414999999985, 0.07957238300000002,
0.03421681700000001, 0.093400928, 0.10556226600000002, 0.026236225000000002, 0.003418825999999986, 0.213656142,
-0.062266935999999995, 0.201303413, -0.01689779, 0.11762230800000001, 0.139133615, 0.10181459700000003,
0.036164081999999986, 0.08134940600000001, 0.07803704, 0.0013763390000000042, 0.099261029, 0.020640773999999973,
0.12555131899999994, 0.037200887000000016, -0.010237628999999915, 0.08880315499999991, 0.0063147650000000555,
0.019928010999999968, 0.04357951999999998, -0.004530739000000006, 0.02902913000000007, -0.002638320000000083,
-0.0054251289999999175, -0.007446104999999981, -0.03007517500000001, 0.002906155999999993,
-0.026272324999999985, -0.03614939400000006, -0.011992643000000025, -0.03641159900000002, -0.11145086599999998,
-0.06724376499999996, -0.014906959000000053, -0.12018845, 0.01719808700000003, -0.144690388,
-0.04965313099999996, -0.04265188800000003, -0.152628863, 0.036151972000000004, -0.12041055099999999,
-0.097590988, -0.121494679, 0.016451106999999993, -0.19565559200000002, 0.049411590000000005, -0.13925302,
-0.008986300999999974, -0.14811584800000005, -0.10251283199999994, -0.010380940000000005, -0.06845821299999999,
-0.04905176600000005, -0.03056075699999994, -0.052946755999999984, -0.04902619400000008, 0.02325261700000003,
-0.057539565000000015, -0.01218301300000002, -0.003042608000000002, -0.017288536999999993,
0.0003986540000000538, 0.0038957259999999883, 0.007477202000000016, 0.04295744000000001, -0.006958624000000024,
0.05828881200000002, 0.008976307999999933, 0.04324440900000004, 0.08941439399999995, 0.03337341199999999,
0.08143288400000004, 0
]
)
TESTCASE2_INTERVAL_LOWERBOUND: int = 0
TESTCASE2_INTERVAL_UPPERBOUND: int = 300
TESTCASE2_LEFTCHILD_SIGNAL: Signal = Signal(
'lc1', [
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29,
30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 40.03079318089668, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52,
53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77,
77.97975389167328, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100,
101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 118.06641014958879,
119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140,
141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 156.72474989444393, 157, 158,
159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180,
181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 196.57044133348074, 197, 198,
199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220,
221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 235.19473860371548, 236, 237, 238,
239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260,
261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 275.30971272907703, 276, 277, 278,
279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300,
301, 302, 303, 304, 305, 306, 307, 308, 309
], [
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
], [
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
]
)
TESTCASE2_RIGHTCHILD_SIGNAL: Signal = Signal(
'rc1', [
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29,
30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 40.03079318089668, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52,
53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77,
77.97975389167328, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100,
101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 118.06641014958879,
119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140,
141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 156.72474989444393, 157, 158,
159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180,
181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 196.57044133348074, 197, 198,
199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220,
221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 235.19473860371548, 236, 237, 238,
239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260,
261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 275.30971272907703, 276, 277, 278,
279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300,
301, 302, 303, 304, 305, 306, 307, 308, 309
], [
-0.058826673, -0.194712389, -0.259476925, -0.378180274, -0.40972079, -0.463972107, -0.522986054, -0.545206016,
-0.706489542, -0.751477687, -0.797382135, -0.797382135, -0.820263959, -0.893548613, -0.953473577, -0.953473577,
-0.971531285, -0.990549889, -0.997391279, -0.997391279, -0.997391279, -0.995344892, -0.988867213, -0.982947859,
-0.96113601, -0.96113601, -0.906806579, -0.882403528, -0.848801441, -0.744990197, -0.744990197, -0.663860436,
-0.663860436, -0.543181275, -0.543181275, -0.385640446, -0.315829613, -0.315829613, -0.17320498, -0.092904429,
-0.067926413, -0.06244610865550543, -0.13961343, -0.218338519, -0.295665571, -0.371099455, -0.444157161,
-0.514370895, -0.581291075, -0.644489204, -0.703560621, -0.758127087, -0.807839209, -0.852378676, -0.891460299,
-0.924833835, -0.952285592, -0.973639793, -0.988759706, -0.997548516, -0.99994995, -0.995948629, -0.985570175,
-0.968881042, -0.945988092, -0.917037909, -0.882215864, -0.841744926, -0.795884232, -0.744927432, -0.689200806,
-0.629061176, -0.564893621, -0.497109009, -0.426141372, -0.35244512, -0.276492135, -0.198768751, -0.119772635,
-0.04162449790535486, -0.044688029, -0.160320101, -0.160320101, -0.258254886, -0.299862416, -0.495035051,
-0.562757179, -0.562757179, -0.589860787, -0.629633944, -0.729962706, -0.798916117, -0.845816587, -0.883990498,
-0.912287211, -0.953595511, -0.957083726, -0.988403765, -0.999556997, -0.999556997, -0.999556997, -0.99934349,
-0.999110503, -0.987450676, -0.970419964, -0.935487435, -0.929451481, -0.885412815, -0.826482172, -0.772438557,
-0.772438557, -0.687856593, -0.621144208, -0.565978393, -0.565978393, -0.433935004, -0.323425325, -0.24804298,
-0.142013466, -0.142013466, -0.031109534, -0.025313324745575263, -0.099883885, -0.179119396, -0.257207993,
-0.333649668, -0.407954959, -0.479648085, -0.548269987, -0.613381277, -0.67456504, -0.731429513, -0.783610589,
-0.830774147, -0.872618197, -0.908874808, -0.939311825, -0.963734359, -0.98198603, -0.993949972, -0.999549577,
-0.998748993, -0.991553344, -0.978008705, -0.958201804, -0.932259465, -0.9003478, -0.86267114, -0.819470733,
-0.771023194, -0.717638736, -0.659659183, -0.597455784, -0.531426831, -0.461995112, -0.389605205, -0.314720626,
-0.237820867, -0.159398324, -0.079955141, -0.022007660999999956, -0.022007661, -0.212222163, -0.301342546,
-0.301342546, -0.417562572, -0.531093852, -0.531093852, -0.578784658, -0.631115248, -0.667505636, -0.758719742,
-0.844164494, -0.844164494, -0.880704187, -0.957092721, -0.957092721, -0.981137321, -0.983130986, -0.999963711,
-0.999963711, -0.999963711, -0.99981013, -0.984535704, -0.965186083, -0.957212566, -0.917411166, -0.904931976,
-0.904931976, -0.810938287, -0.781679262, -0.723447108, -0.723447108, -0.603290165, -0.600129055, -0.53879427,
-0.398758857, -0.326551199, -0.183110803, -0.119703416, -0.119703416, -0.025628319668076792, -0.059994385,
-0.13961343, -0.218338519, -0.295665571, -0.371099455, -0.444157161, -0.514370895, -0.581291075, -0.644489204,
-0.703560621, -0.758127087, -0.807839209, -0.852378676, -0.891460299, -0.924833835, -0.952285592, -0.973639793,
-0.988759706, -0.997548516, -0.99994995, -0.995948629, -0.985570175, -0.968881042, -0.945988092, -0.917037909,
-0.882215864, -0.841744926, -0.795884232, -0.744927432, -0.689200806, -0.629061176, -0.564893621, -0.497109009,
-0.426141372, -0.35244512, -0.276492135, -0.198768751, -0.119772635, -0.040009607, -0.02442677699522954,
-0.105536343, -0.244669958, -0.346484555, -0.382648637, -0.463998043, -0.542035083, -0.543411422, -0.642672451,
-0.663313225, -0.788864544, -0.826065431, -0.826065431, -0.904630957, -0.910945722, -0.930873733, -0.974453253,
-0.974453253, -0.998951644, -0.998951644, -0.998951644, -0.996313324, -0.990888195, -0.98344209, -0.956273071,
-0.956273071, -0.930000746, -0.893851352, -0.881858709, -0.84544711, -0.733996244, -0.666752479, -0.65184552,
-0.548855157, -0.548855157, -0.404164769, -0.354511638, -0.31185975, -0.195382859, -0.195382859, -0.074972308,
-0.044747136773195785, -0.099883885, -0.179119396, -0.257207993, -0.333649668, -0.407954959, -0.479648085,
-0.548269987, -0.613381277, -0.67456504, -0.731429513, -0.783610589, -0.830774147, -0.872618197, -0.908874808,
-0.939311825, -0.963734359, -0.98198603, -0.993949972, -0.999549577, -0.998748993, -0.991553344, -0.978008705,
-0.958201804, -0.932259465, -0.9003478, -0.86267114, -0.819470733, -0.771023194, -0.717638736, -0.659659183,
-0.597455784, -0.531426831, -0.461995112, -0.389605205
], [
-0.0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.0020463870000000384, 0.005919353999999988, 0,
0, 0, 0.024403050999999953, 0.024403050999999953, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.024978015999999992,
0.024978015999999992, 0.024978015999999992, 0.053463819999999995, -0.07961904500000001, -0.078725089,
-0.07732705200000001, -0.075433884, -0.073057706, -0.07021373399999997, -0.06692018, -0.06319812899999999,
-0.05907141700000007, -0.054566465999999925, -0.04971212199999997, -0.044539467, -0.039081623000000065,
-0.03337353600000004, -0.02745175699999991, -0.021354201000000073, -0.01511991299999993, -0.008788810000000091,
-0.0024014339999999246, 0.004001320999999947, 0.010378454000000037, 0.016689132999999967, 0.022892950000000023,
0.028950182999999963, 0.03482204500000008, 0.04047093800000001, 0.045860693999999924, 0.050956800000000024,
0.055726626, 0.06013963, 0.06416755500000004, 0.06778461199999997, 0.07096763699999997, 0.07369625200000002,
0.07595298499999997, 0.07772338400000003, 0.07899611599999999, 0.079763028, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0.00021350700000000167, 0.0002329869999999623, 0.011659827000000011,
0.00603595400000001, 0.00603595400000001, 0.00603595400000001, 0.04403866599999995, 0, 0, 0,
0.06639380100000003, 0, 0, 0, 0.07538234499999999, 0.07538234499999999, 0, 0, 0, 0.056416574000000004,
0.056416574000000004, -0.079875076, -0.07923551099999998, -0.07808859700000004, -0.07644167499999999,
-0.074305291, -0.071693126, -0.06862190199999996, -0.06511129000000004, -0.06118376299999995,
-0.05686447300000008, -0.05218107599999999, -0.04716355799999994, -0.04184405000000002, -0.036256610999999994,
-0.03043701700000001, -0.02442253400000005, -0.018251670999999914, -0.01196394200000006, -0.0055996050000000075,
0.0008005840000000486, 0.007195649000000026, 0.013544638999999914, 0.019806901000000043, 0.02594233899999998,
0.03191166499999998, 0.03767666000000003, 0.04320040700000005, 0.048447538999999984, 0.05338445799999991,
0.05797955300000002, 0.06220339900000005, 0.066028953, 0.069431719, 0.07238990699999998, 0.074884579,
0.07689975900000001, 0.07842254299999998, 0.07944318300000001, 0.079955141, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0.00015358100000006925, 0.00797351699999993, 0.00797351699999993,
0.00797351699999993, 0, 0, 0, 0.029259024999999994, 0, 0, 0, 0.003161109999999967, 0.003161109999999967,
0.061334785, 0.07220765800000001, 0.07220765800000001, 0, 0, 0, 0, -0.080003194, -0.07961904500000001,
-0.078725089, -0.07732705200000001, -0.075433884, -0.073057706, -0.07021373399999997, -0.06692018,
-0.06319812899999999, -0.05907141700000007, -0.054566465999999925, -0.04971212199999997, -0.044539467,
-0.039081623000000065, -0.03337353600000004, -0.02745175699999991, -0.021354201000000073, -0.01511991299999993,
-0.008788810000000091, -0.0024014339999999246, 0.004001320999999947, 0.010378454000000037, 0.016689132999999967,
0.022892950000000023, 0.028950182999999963, 0.03482204500000008, 0.04047093800000001, 0.045860693999999924,
0.050956800000000024, 0.055726626, 0.06013963, 0.06416755500000004, 0.06778461199999997, 0.07096763699999997,
0.07369625200000002, 0.07595298499999997, 0.07772338400000003, 0.07899611599999999, 0.079763028, 0.080019214, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.002638320000000083, 0.0054251289999999175, 0, 0, 0,
0.011992643000000025, 0.011992643000000025, 0.011992643000000025, 0.03641159900000002, 0.014906959000000053,
0.014906959000000053, 0, 0, 0, 0.04265188800000003, 0.04265188800000003, 0, 0, 0, 0.097590988, 0, -0.079875076,
-0.07923551099999998, -0.07808859700000004, -0.07644167499999999, -0.074305291, -0.071693126,
-0.06862190199999996, -0.06511129000000004, -0.06118376299999995, -0.05686447300000008, -0.05218107599999999,
-0.04716355799999994, -0.04184405000000002, -0.036256610999999994, -0.03043701700000001, -0.02442253400000005,
-0.018251670999999914, -0.01196394200000006, -0.0055996050000000075, 0.0008005840000000486,
0.007195649000000026, 0.013544638999999914, 0.019806901000000043, 0.02594233899999998, 0.03191166499999998,
0.03767666000000003, 0.04320040700000005, 0.048447538999999984, 0.05338445799999991, 0.05797955300000002,
0.06220339900000005, 0.066028953, 0.069431719, 0.07238990699999998, 0
]
)
| 102.891026
| 129
| 0.631051
| 4,990
| 32,102
| 4.056313
| 0.226253
| 0.075886
| 0.110864
| 0.144064
| 0.596858
| 0.556346
| 0.556346
| 0.53614
| 0.53614
| 0.504224
| 0
| 0.762086
| 0.191359
| 32,102
| 312
| 130
| 102.891026
| 0.017643
| 0.00704
| 0
| 0.333333
| 1
| 0
| 0.000377
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.003268
| 0
| 0.003268
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
f192033bef2bb6df2c9b7cfce00aa8bcf0d50219
| 76
|
py
|
Python
|
breakouts/django/app/app/app/views.py
|
SashaPatsel/coding-drills
|
c38414a49f7918f59c2e1535a40ba0986d7df8b1
|
[
"MIT"
] | null | null | null |
breakouts/django/app/app/app/views.py
|
SashaPatsel/coding-drills
|
c38414a49f7918f59c2e1535a40ba0986d7df8b1
|
[
"MIT"
] | null | null | null |
breakouts/django/app/app/app/views.py
|
SashaPatsel/coding-drills
|
c38414a49f7918f59c2e1535a40ba0986d7df8b1
|
[
"MIT"
] | null | null | null |
from django.shortcuts import render
def signin(request):
print(request)
| 19
| 35
| 0.776316
| 10
| 76
| 5.9
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.144737
| 76
| 4
| 36
| 19
| 0.907692
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0.333333
| 0
| 0.666667
| 0.333333
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
74bbc155b56b4df869f9c010a4a5ecfa9b772eab
| 54
|
py
|
Python
|
src/olympus/baseline/__init__.py
|
priyansh-1902/olympus
|
f57ad769918c0d5d805c439ab5ffbd180af698fa
|
[
"MIT"
] | 36
|
2020-10-10T14:05:40.000Z
|
2022-02-12T07:21:47.000Z
|
src/olympus/baseline/__init__.py
|
kiminh/olympus
|
054f7b4012faf6e516b5e4c895093c9fea0c793f
|
[
"MIT"
] | 12
|
2020-10-14T09:04:06.000Z
|
2021-10-01T19:25:34.000Z
|
src/olympus/baseline/__init__.py
|
kiminh/olympus
|
054f7b4012faf6e516b5e4c895093c9fea0c793f
|
[
"MIT"
] | 8
|
2020-10-24T12:43:45.000Z
|
2022-02-12T07:21:50.000Z
|
#!/usr/bin/env python
from .baseline import Baseline
| 13.5
| 30
| 0.759259
| 8
| 54
| 5.125
| 0.875
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.12963
| 54
| 3
| 31
| 18
| 0.87234
| 0.37037
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
74cc22813b39e22deadb5896f3b23238aa28157c
| 855
|
py
|
Python
|
ros/ros_comm/rospbconvertor/src/rospbconvertor/batch_include.py
|
numberen/apollo-platform
|
8f359c8d00dd4a98f56ec2276c5663cb6c100e47
|
[
"Apache-2.0"
] | 742
|
2017-07-05T02:49:36.000Z
|
2022-03-30T12:55:43.000Z
|
ros/ros_comm/rospbconvertor/src/rospbconvertor/batch_include.py
|
numberen/apollo-platform
|
8f359c8d00dd4a98f56ec2276c5663cb6c100e47
|
[
"Apache-2.0"
] | 73
|
2017-07-06T12:50:51.000Z
|
2022-03-07T08:07:07.000Z
|
ros/ros_comm/rospbconvertor/src/rospbconvertor/batch_include.py
|
numberen/apollo-platform
|
8f359c8d00dd4a98f56ec2276c5663cb6c100e47
|
[
"Apache-2.0"
] | 425
|
2017-07-04T22:03:29.000Z
|
2022-03-29T06:59:06.000Z
|
from modules.canbus.proto import chassis_detail_pb2
from modules.canbus.proto import chassis_pb2
from modules.common.monitor.proto import monitor_pb2
from modules.common.configs.proto import config_extrinsics_pb2
from modules.common.configs.proto import vehicle_config_pb2
from modules.common.proto import geometry_pb2
from modules.common.proto import header_pb2
from modules.control.proto import control_cmd_pb2
from modules.control.proto import pad_msg_pb2
from modules.decision.proto import decision_pb2
from modules.localization.proto import localization_pb2
from modules.perception.proto import perception_obstacle_pb2
from modules.perception.proto import traffic_light_detection_pb2
from modules.planning.proto import planning_internal_pb2
from modules.planning.proto import planning_pb2
from modules.prediction.proto import prediction_obstacle_pb2
| 50.294118
| 64
| 0.884211
| 125
| 855
| 5.84
| 0.24
| 0.241096
| 0.287671
| 0.136986
| 0.580822
| 0.580822
| 0.216438
| 0
| 0
| 0
| 0
| 0.020228
| 0.074854
| 855
| 16
| 65
| 53.4375
| 0.902655
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
741d31517d8992302cad0e0a41f8bfec164fe01c
| 116
|
py
|
Python
|
scripts/wk/hw/__init__.py
|
2Shirt/WizardK
|
82a2e7f85c80a52f892c1553e7a45ec0174e7bc6
|
[
"MIT"
] | null | null | null |
scripts/wk/hw/__init__.py
|
2Shirt/WizardK
|
82a2e7f85c80a52f892c1553e7a45ec0174e7bc6
|
[
"MIT"
] | 178
|
2017-11-17T19:14:31.000Z
|
2021-12-15T07:43:29.000Z
|
scripts/wk/hw/__init__.py
|
2Shirt/WizardK
|
82a2e7f85c80a52f892c1553e7a45ec0174e7bc6
|
[
"MIT"
] | 1
|
2017-11-17T19:32:36.000Z
|
2017-11-17T19:32:36.000Z
|
"""WizardKit: hw module init"""
from . import ddrescue
from . import diags
from . import obj
from . import sensors
| 16.571429
| 31
| 0.724138
| 16
| 116
| 5.25
| 0.625
| 0.47619
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.181034
| 116
| 6
| 32
| 19.333333
| 0.884211
| 0.215517
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
7485e2527165ea27334fb208824e2beed76b0ba6
| 68
|
py
|
Python
|
app/api/session/__init__.py
|
codingjerk/ztd.blunders-web
|
38d4c1049dc3d0bd0b4294ffa419d25cbfbf2b83
|
[
"MIT"
] | null | null | null |
app/api/session/__init__.py
|
codingjerk/ztd.blunders-web
|
38d4c1049dc3d0bd0b4294ffa419d25cbfbf2b83
|
[
"MIT"
] | null | null | null |
app/api/session/__init__.py
|
codingjerk/ztd.blunders-web
|
38d4c1049dc3d0bd0b4294ffa419d25cbfbf2b83
|
[
"MIT"
] | null | null | null |
from app.api.session import rating, login, logout, signup, validate
| 34
| 67
| 0.794118
| 10
| 68
| 5.4
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.117647
| 68
| 1
| 68
| 68
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
74a9f5f2789a294e4ea22734ec43a670c2965a4c
| 382
|
py
|
Python
|
date_functions.py
|
Arek-jd/scarx-models
|
bf38c88fb1fbfdc5ca42aa126284689d7d877733
|
[
"MIT"
] | null | null | null |
date_functions.py
|
Arek-jd/scarx-models
|
bf38c88fb1fbfdc5ca42aa126284689d7d877733
|
[
"MIT"
] | null | null | null |
date_functions.py
|
Arek-jd/scarx-models
|
bf38c88fb1fbfdc5ca42aa126284689d7d877733
|
[
"MIT"
] | null | null | null |
from datetime import datetime
def get_datetime(date_int):
date_str=str(date_int)
return datetime.strptime(date_str,'%Y%m%d')
def get_datetime_str(date_int):
#returns date as a string
return get_datetime(date_int).strftime('%d.%m.%Y')
def get_dayofweek(date_int):
#returns: 0 - Mon, 1 - Tue, ..., 6 - Sun
return get_datetime(date_int).weekday()
| 29.384615
| 55
| 0.683246
| 60
| 382
| 4.116667
| 0.433333
| 0.17004
| 0.182186
| 0.218623
| 0.194332
| 0
| 0
| 0
| 0
| 0
| 0
| 0.009646
| 0.185864
| 382
| 13
| 56
| 29.384615
| 0.784566
| 0.164921
| 0
| 0
| 0
| 0
| 0.045752
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.375
| false
| 0
| 0.125
| 0.25
| 0.875
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 5
|
77a36ef56dc42545c84b1ac316a90c460629510d
| 4,524
|
py
|
Python
|
language_apps/assignment_statement_v2/gen/AssignmentStatement2Lexer.py
|
SadraGoudarzdashti/IUSTCompiler
|
7aa24df7de10030c313ad2e8f3830d9e2b182ce1
|
[
"MIT"
] | 3
|
2020-12-04T11:01:23.000Z
|
2022-02-12T19:29:35.000Z
|
language_apps/assignment_statement_v2/gen/AssignmentStatement2Lexer.py
|
SadraGoudarzdashti/IUSTCompiler
|
7aa24df7de10030c313ad2e8f3830d9e2b182ce1
|
[
"MIT"
] | null | null | null |
language_apps/assignment_statement_v2/gen/AssignmentStatement2Lexer.py
|
SadraGoudarzdashti/IUSTCompiler
|
7aa24df7de10030c313ad2e8f3830d9e2b182ce1
|
[
"MIT"
] | 30
|
2020-12-04T11:00:19.000Z
|
2021-12-31T15:59:21.000Z
|
# Generated from D:/AnacondaProjects/iust_compilers_teaching/grammars\AssignmentStatement2.g4 by ANTLR 4.8
from antlr4 import *
from io import StringIO
from typing.io import TextIO
import sys
def serializedATN():
with StringIO() as buf:
buf.write("\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964\2\20")
buf.write("w\b\1\4\2\t\2\4\3\t\3\4\4\t\4\4\5\t\5\4\6\t\6\4\7\t\7")
buf.write("\4\b\t\b\4\t\t\t\4\n\t\n\4\13\t\13\4\f\t\f\4\r\t\r\4\16")
buf.write("\t\16\4\17\t\17\4\20\t\20\4\21\t\21\4\22\t\22\3\2\3\2")
buf.write("\3\2\3\3\3\3\3\4\3\4\3\5\3\5\3\6\3\6\3\7\3\7\3\b\3\b\3")
buf.write("\t\6\t\66\n\t\r\t\16\t\67\3\n\6\n;\n\n\r\n\16\n<\3\n\3")
buf.write("\n\7\nA\n\n\f\n\16\nD\13\n\3\n\3\n\6\nH\n\n\r\n\16\nI")
buf.write("\5\nL\n\n\3\13\3\13\3\13\7\13Q\n\13\f\13\16\13T\13\13")
buf.write("\3\13\3\13\3\f\3\f\3\f\7\f[\n\f\f\f\16\f^\13\f\3\r\3\r")
buf.write("\3\16\3\16\3\17\3\17\3\17\3\17\5\17h\n\17\3\20\6\20k\n")
buf.write("\20\r\20\16\20l\3\20\3\20\3\21\3\21\3\22\3\22\3\22\5\22")
buf.write("v\n\22\3R\2\23\3\3\5\4\7\5\t\6\13\7\r\b\17\t\21\n\23\13")
buf.write("\25\f\27\r\31\2\33\2\35\2\37\16!\17#\20\3\2\5\3\2\62;")
buf.write("\4\2C\\c|\5\2\13\13\17\17\"\"\2\177\2\3\3\2\2\2\2\5\3")
buf.write("\2\2\2\2\7\3\2\2\2\2\t\3\2\2\2\2\13\3\2\2\2\2\r\3\2\2")
buf.write("\2\2\17\3\2\2\2\2\21\3\2\2\2\2\23\3\2\2\2\2\25\3\2\2\2")
buf.write("\2\27\3\2\2\2\2\37\3\2\2\2\2!\3\2\2\2\2#\3\2\2\2\3%\3")
buf.write("\2\2\2\5(\3\2\2\2\7*\3\2\2\2\t,\3\2\2\2\13.\3\2\2\2\r")
buf.write("\60\3\2\2\2\17\62\3\2\2\2\21\65\3\2\2\2\23K\3\2\2\2\25")
buf.write("M\3\2\2\2\27W\3\2\2\2\31_\3\2\2\2\33a\3\2\2\2\35g\3\2")
buf.write("\2\2\37j\3\2\2\2!p\3\2\2\2#u\3\2\2\2%&\7<\2\2&\'\7?\2")
buf.write("\2\'\4\3\2\2\2()\7-\2\2)\6\3\2\2\2*+\7/\2\2+\b\3\2\2\2")
buf.write(",-\7,\2\2-\n\3\2\2\2./\7\61\2\2/\f\3\2\2\2\60\61\7*\2")
buf.write("\2\61\16\3\2\2\2\62\63\7+\2\2\63\20\3\2\2\2\64\66\5\31")
buf.write("\r\2\65\64\3\2\2\2\66\67\3\2\2\2\67\65\3\2\2\2\678\3\2")
buf.write("\2\28\22\3\2\2\29;\5\31\r\2:9\3\2\2\2;<\3\2\2\2<:\3\2")
buf.write("\2\2<=\3\2\2\2=>\3\2\2\2>B\7\60\2\2?A\5\31\r\2@?\3\2\2")
buf.write("\2AD\3\2\2\2B@\3\2\2\2BC\3\2\2\2CL\3\2\2\2DB\3\2\2\2E")
buf.write("G\7\60\2\2FH\5\31\r\2GF\3\2\2\2HI\3\2\2\2IG\3\2\2\2IJ")
buf.write("\3\2\2\2JL\3\2\2\2K:\3\2\2\2KE\3\2\2\2L\24\3\2\2\2MR\7")
buf.write("$\2\2NQ\5\35\17\2OQ\13\2\2\2PN\3\2\2\2PO\3\2\2\2QT\3\2")
buf.write("\2\2RS\3\2\2\2RP\3\2\2\2SU\3\2\2\2TR\3\2\2\2UV\7$\2\2")
buf.write("V\26\3\2\2\2W\\\5\33\16\2X[\5\33\16\2Y[\5\31\r\2ZX\3\2")
buf.write("\2\2ZY\3\2\2\2[^\3\2\2\2\\Z\3\2\2\2\\]\3\2\2\2]\30\3\2")
buf.write("\2\2^\\\3\2\2\2_`\t\2\2\2`\32\3\2\2\2ab\t\3\2\2b\34\3")
buf.write("\2\2\2cd\7^\2\2dh\7$\2\2ef\7^\2\2fh\7^\2\2gc\3\2\2\2g")
buf.write("e\3\2\2\2h\36\3\2\2\2ik\t\4\2\2ji\3\2\2\2kl\3\2\2\2lj")
buf.write("\3\2\2\2lm\3\2\2\2mn\3\2\2\2no\b\20\2\2o \3\2\2\2pq\7")
buf.write("\f\2\2q\"\3\2\2\2rs\7>\2\2sv\7?\2\2tv\7>\2\2ur\3\2\2\2")
buf.write("ut\3\2\2\2v$\3\2\2\2\17\2\67<BIKPRZ\\glu\3\b\2\2")
return buf.getvalue()
class AssignmentStatement2Lexer(Lexer):
atn = ATNDeserializer().deserialize(serializedATN())
decisionsToDFA = [ DFA(ds, i) for i, ds in enumerate(atn.decisionToState) ]
T__0 = 1
T__1 = 2
T__2 = 3
T__3 = 4
T__4 = 5
T__5 = 6
T__6 = 7
INT = 8
FLOAT = 9
String = 10
ID = 11
WS = 12
NEWLINE = 13
RELOP = 14
channelNames = [ u"DEFAULT_TOKEN_CHANNEL", u"HIDDEN" ]
modeNames = [ "DEFAULT_MODE" ]
literalNames = [ "<INVALID>",
"':='", "'+'", "'-'", "'*'", "'/'", "'('", "')'", "'\n'" ]
symbolicNames = [ "<INVALID>",
"INT", "FLOAT", "String", "ID", "WS", "NEWLINE", "RELOP" ]
ruleNames = [ "T__0", "T__1", "T__2", "T__3", "T__4", "T__5", "T__6",
"INT", "FLOAT", "String", "ID", "DIGIT", "LETTER", "ESC",
"WS", "NEWLINE", "RELOP" ]
grammarFileName = "AssignmentStatement2.g4"
def __init__(self, input=None, output:TextIO = sys.stdout):
super().__init__(input, output)
self.checkVersion("4.8")
self._interp = LexerATNSimulator(self, self.atn, self.decisionsToDFA, PredictionContextCache())
self._actions = None
self._predicates = None
| 45.69697
| 106
| 0.523652
| 1,130
| 4,524
| 2.055752
| 0.19115
| 0.140336
| 0.107189
| 0.082652
| 0.183814
| 0.093844
| 0.058545
| 0.049505
| 0.019802
| 0.013775
| 0
| 0.253977
| 0.166225
| 4,524
| 98
| 107
| 46.163265
| 0.361877
| 0.022989
| 0
| 0
| 1
| 0.4875
| 0.520833
| 0.478261
| 0.0125
| 0
| 0
| 0
| 0
| 1
| 0.025
| false
| 0
| 0.05
| 0
| 0.375
| 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
| 1
| 1
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
77b32771fdbafd70354406135dd1a297943f5bf5
| 71
|
py
|
Python
|
debugsql/__init__.py
|
mahomahomaho/debugsql
|
9bff1cfda3dcc8a3a71a360dcdc04a8028ab2850
|
[
"BSD-3-Clause"
] | null | null | null |
debugsql/__init__.py
|
mahomahomaho/debugsql
|
9bff1cfda3dcc8a3a71a360dcdc04a8028ab2850
|
[
"BSD-3-Clause"
] | null | null | null |
debugsql/__init__.py
|
mahomahomaho/debugsql
|
9bff1cfda3dcc8a3a71a360dcdc04a8028ab2850
|
[
"BSD-3-Clause"
] | null | null | null |
from .dbsql import init,init_django
__all__ = ['init','init_django']
| 14.2
| 35
| 0.732394
| 10
| 71
| 4.6
| 0.6
| 0.347826
| 0.608696
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.126761
| 71
| 4
| 36
| 17.75
| 0.741935
| 0
| 0
| 0
| 0
| 0
| 0.211268
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
77d41791979fcc8d644d1e110de60064a84668c4
| 142
|
py
|
Python
|
main/courses/models.py
|
mahkhaled/class2go
|
b32cb441e8d96c257f70cb61274812ebeed2649d
|
[
"Apache-2.0"
] | 2
|
2015-10-31T23:12:52.000Z
|
2021-01-19T11:03:00.000Z
|
main/courses/models.py
|
sunu/class2go
|
653b1edd01d390ad387dd788e0fc2d89445fbcab
|
[
"Apache-2.0"
] | null | null | null |
main/courses/models.py
|
sunu/class2go
|
653b1edd01d390ad387dd788e0fc2d89445fbcab
|
[
"Apache-2.0"
] | null | null | null |
from django.db import models
from django.dispatch import receiver
from registration.signals import user_registered
# Create your models here.
| 28.4
| 48
| 0.84507
| 20
| 142
| 5.95
| 0.7
| 0.168067
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.119718
| 142
| 4
| 49
| 35.5
| 0.952
| 0.169014
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
77f7e5babd0e1e0729c8519c989d8cb3ed955160
| 118
|
py
|
Python
|
choices.py
|
sateeshkagale/planets
|
2d9a606ea54b34f52e773d8f5c6a213702e63e07
|
[
"MIT"
] | null | null | null |
choices.py
|
sateeshkagale/planets
|
2d9a606ea54b34f52e773d8f5c6a213702e63e07
|
[
"MIT"
] | null | null | null |
choices.py
|
sateeshkagale/planets
|
2d9a606ea54b34f52e773d8f5c6a213702e63e07
|
[
"MIT"
] | null | null | null |
num = 370
if num > 100:
print(num, 'is greater than', 100)
elif num==0:
print(num, 'is zero')
print('done')
| 14.75
| 38
| 0.584746
| 20
| 118
| 3.45
| 0.6
| 0.231884
| 0.289855
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.111111
| 0.237288
| 118
| 7
| 39
| 16.857143
| 0.655556
| 0
| 0
| 0
| 0
| 0
| 0.220339
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.5
| 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
| 1
|
0
| 5
|
77fc2a94efd04b0bffaa64aab76fcb7dbfe181ec
| 85
|
py
|
Python
|
system/admin.py
|
askarjon111/pfl-draw-lots
|
071a6ff11af49113fb4f49fe4ad47112c63896cd
|
[
"MIT"
] | null | null | null |
system/admin.py
|
askarjon111/pfl-draw-lots
|
071a6ff11af49113fb4f49fe4ad47112c63896cd
|
[
"MIT"
] | null | null | null |
system/admin.py
|
askarjon111/pfl-draw-lots
|
071a6ff11af49113fb4f49fe4ad47112c63896cd
|
[
"MIT"
] | null | null | null |
from django.contrib import admin
from .models import Team
admin.site.register(Team)
| 17
| 32
| 0.811765
| 13
| 85
| 5.307692
| 0.692308
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.117647
| 85
| 4
| 33
| 21.25
| 0.92
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.666667
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
bb3b1379775300190707c905e842cc9cbdeb3391
| 436
|
py
|
Python
|
nodes/vis/__init__.py
|
spaenigs/peptidereactor
|
17efcb993505934f5b9c2d63f5cc040bb244dde9
|
[
"MIT"
] | 3
|
2021-02-03T12:30:37.000Z
|
2021-06-07T07:03:38.000Z
|
nodes/vis/__init__.py
|
spaenigs/peptidereactor
|
17efcb993505934f5b9c2d63f5cc040bb244dde9
|
[
"MIT"
] | 1
|
2021-01-04T14:52:27.000Z
|
2021-01-04T14:52:27.000Z
|
nodes/vis/__init__.py
|
spaenigs/peptidereactor
|
17efcb993505934f5b9c2d63f5cc040bb244dde9
|
[
"MIT"
] | 1
|
2021-06-09T16:16:16.000Z
|
2021-06-09T16:16:16.000Z
|
from . import sds_1_Overview
from . import sds_2_Metrics
from . import sds_3_Curves
from . import sds_4_Similarity
from . import sds_5_Diversity
from . import sds_6_Difference
from . import sds_7_Composition
from . import sds_8_Correlation
from . import sds_9_Time
from . import mds_1_Overview
from . import mds_2_Ranks
from . import mds_3_Clustering
from . import mds_4_Embedding
from . import mds_5_Time
from . import home_Home_tsne
| 25.647059
| 31
| 0.825688
| 75
| 436
| 4.4
| 0.36
| 0.454545
| 0.354545
| 0.115152
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.037333
| 0.139908
| 436
| 17
| 32
| 25.647059
| 0.842667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
246da9e91a6c2fc5c939bfd7f82dd1369eca6415
| 43
|
py
|
Python
|
tests/__init__.py
|
cgubbin/Nonlocal_SMMs
|
80ec58f6ec4140a23f2ee710212d0718e2ca1037
|
[
"MIT"
] | 1
|
2021-05-05T02:50:23.000Z
|
2021-05-05T02:50:23.000Z
|
tests/__init__.py
|
cgubbin/Nonlocal_SMMs
|
80ec58f6ec4140a23f2ee710212d0718e2ca1037
|
[
"MIT"
] | null | null | null |
tests/__init__.py
|
cgubbin/Nonlocal_SMMs
|
80ec58f6ec4140a23f2ee710212d0718e2ca1037
|
[
"MIT"
] | null | null | null |
"""Test suite for nonlocal_smms module."""
| 21.5
| 42
| 0.72093
| 6
| 43
| 5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.116279
| 43
| 1
| 43
| 43
| 0.789474
| 0.837209
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
249a04857c04da7ddadc1c1acd45d9fd25bd34cc
| 182
|
py
|
Python
|
pythran/tests/rosetta/remove_duplicate.py
|
davidbrochart/pythran
|
24b6c8650fe99791a4091cbdc2c24686e86aa67c
|
[
"BSD-3-Clause"
] | 1,647
|
2015-01-13T01:45:38.000Z
|
2022-03-28T01:23:41.000Z
|
pythran/tests/rosetta/remove_duplicate.py
|
davidbrochart/pythran
|
24b6c8650fe99791a4091cbdc2c24686e86aa67c
|
[
"BSD-3-Clause"
] | 1,116
|
2015-01-01T09:52:05.000Z
|
2022-03-18T21:06:40.000Z
|
pythran/tests/rosetta/remove_duplicate.py
|
davidbrochart/pythran
|
24b6c8650fe99791a4091cbdc2c24686e86aa67c
|
[
"BSD-3-Clause"
] | 180
|
2015-02-12T02:47:28.000Z
|
2022-03-14T10:28:18.000Z
|
#from http://rosettacode.org/wiki/Remove_duplicate_elements#Python
#pythran export unique(int list)
#runas unique([1, 2, 3, 2, 3, 4])
def unique(items):
return list(set(items))
| 26
| 66
| 0.725275
| 29
| 182
| 4.482759
| 0.793103
| 0.030769
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.0375
| 0.120879
| 182
| 6
| 67
| 30.333333
| 0.775
| 0.697802
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| false
| 0
| 0
| 0.5
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 5
|
7023bccf83e827ee8562621ab1d1ca39bf30857b
| 58
|
py
|
Python
|
irtools/__init__.py
|
InbarRose/irtools
|
1dcd8bbd0b39d945ad12be8d0afdc67e8f836e29
|
[
"MIT"
] | 4
|
2018-07-23T12:55:57.000Z
|
2018-08-23T13:47:32.000Z
|
irtools/__init__.py
|
InbarRose/irtools
|
1dcd8bbd0b39d945ad12be8d0afdc67e8f836e29
|
[
"MIT"
] | 34
|
2018-07-26T06:45:54.000Z
|
2019-07-15T12:40:35.000Z
|
irtools/__init__.py
|
InbarRose/irtools
|
1dcd8bbd0b39d945ad12be8d0afdc67e8f836e29
|
[
"MIT"
] | null | null | null |
from environment import *
import utils
# name = "irtools"
| 14.5
| 25
| 0.741379
| 7
| 58
| 6.142857
| 0.857143
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.172414
| 58
| 3
| 26
| 19.333333
| 0.895833
| 0.275862
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
7025ec763e4884608509e144ed423d707e643558
| 54
|
py
|
Python
|
first_bot.py
|
SamReha/CMPM146-P2
|
c90b3f11363daa38f9d57e3364b7be1beddb60ee
|
[
"BSD-3-Clause-Attribution"
] | null | null | null |
first_bot.py
|
SamReha/CMPM146-P2
|
c90b3f11363daa38f9d57e3364b7be1beddb60ee
|
[
"BSD-3-Clause-Attribution"
] | null | null | null |
first_bot.py
|
SamReha/CMPM146-P2
|
c90b3f11363daa38f9d57e3364b7be1beddb60ee
|
[
"BSD-3-Clause-Attribution"
] | null | null | null |
def think(state, quip):
return state.get_moves()[0]
| 18
| 29
| 0.703704
| 9
| 54
| 4.111111
| 0.888889
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.021277
| 0.12963
| 54
| 2
| 30
| 27
| 0.765957
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| false
| 0
| 0
| 0.5
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 5
|
702ba8684537c81b8b94d436038b2765c4fa0c2a
| 102
|
py
|
Python
|
nectar/theanoutil/__init__.py
|
Y0mingZhang/nectar
|
ca2bebdfedf46dfee9a2cb2d1bc82ad5c0871c93
|
[
"MIT"
] | null | null | null |
nectar/theanoutil/__init__.py
|
Y0mingZhang/nectar
|
ca2bebdfedf46dfee9a2cb2d1bc82ad5c0871c93
|
[
"MIT"
] | null | null | null |
nectar/theanoutil/__init__.py
|
Y0mingZhang/nectar
|
ca2bebdfedf46dfee9a2cb2d1bc82ad5c0871c93
|
[
"MIT"
] | null | null | null |
from .args import *
from .model import *
from . import rnn
from . import treelstm
from .util import *
| 17
| 22
| 0.72549
| 15
| 102
| 4.933333
| 0.466667
| 0.27027
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.196078
| 102
| 5
| 23
| 20.4
| 0.902439
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
70a020f3608368c1ea87b946d440c02463e21696
| 134
|
py
|
Python
|
src/base/admin.py
|
codacy-badger/hbscorez
|
215e4d2617ac9be91bb9d561bbfc552349cd4781
|
[
"MIT"
] | 12
|
2018-03-20T21:38:53.000Z
|
2021-10-31T10:00:12.000Z
|
src/base/admin.py
|
codacy-badger/hbscorez
|
215e4d2617ac9be91bb9d561bbfc552349cd4781
|
[
"MIT"
] | 79
|
2018-03-18T14:26:47.000Z
|
2022-03-01T15:51:40.000Z
|
src/base/admin.py
|
codacy-badger/hbscorez
|
215e4d2617ac9be91bb9d561bbfc552349cd4781
|
[
"MIT"
] | 4
|
2018-05-18T15:39:56.000Z
|
2020-10-29T09:28:41.000Z
|
from django.contrib import admin
from .models import Env, GlobalMessage
admin.site.register(Env)
admin.site.register(GlobalMessage)
| 19.142857
| 38
| 0.820896
| 18
| 134
| 6.111111
| 0.555556
| 0.163636
| 0.309091
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.097015
| 134
| 6
| 39
| 22.333333
| 0.909091
| 0
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
56648369af47334d6e50e13a81c59e3676ce054a
| 765
|
py
|
Python
|
framework/BaseClass.py
|
surajpaib/Size-Matters
|
1be0ef00f660fe362ab8494c9b8e98d38f058f7a
|
[
"Apache-2.0"
] | null | null | null |
framework/BaseClass.py
|
surajpaib/Size-Matters
|
1be0ef00f660fe362ab8494c9b8e98d38f058f7a
|
[
"Apache-2.0"
] | null | null | null |
framework/BaseClass.py
|
surajpaib/Size-Matters
|
1be0ef00f660fe362ab8494c9b8e98d38f058f7a
|
[
"Apache-2.0"
] | 1
|
2020-03-08T20:38:47.000Z
|
2020-03-08T20:38:47.000Z
|
from abc import ABCMeta, abstractmethod
class BaseClass(metaclass=ABCMeta):
@abstractmethod
def set_model(self, model):
pass
@abstractmethod
def set_optimizer(self, optim):
pass
@abstractmethod
def set_optimizer_model(self, optim, model):
pass
@abstractmethod
def set_percentage(self, perc):
pass
@abstractmethod
def define_strategy(self):
pass
@abstractmethod
def apply_strategy(self):
pass
@abstractmethod
def get_model(self):
pass
@abstractmethod
def get_optimizer(self):
pass
@abstractmethod
def get_optimizer_model(self):
pass
if __name__ == "__main__":
p = BaseClass()
p.get_graph()
| 17
| 48
| 0.622222
| 78
| 765
| 5.846154
| 0.333333
| 0.335526
| 0.368421
| 0.219298
| 0.532895
| 0.162281
| 0
| 0
| 0
| 0
| 0
| 0
| 0.303268
| 765
| 45
| 49
| 17
| 0.855535
| 0
| 0
| 0.5625
| 0
| 0
| 0.010444
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.28125
| false
| 0.28125
| 0.03125
| 0
| 0.34375
| 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
| 1
| 0
| 0
| 0
| 0
|
0
| 5
|
5671896d0bc64002051a781eafae364cf3cc90ba
| 79
|
py
|
Python
|
conan_ue4cli/__init__.py
|
JJC1138/conan-ue4cli
|
76163a21cb63976cacfea46b024d80c12cf39313
|
[
"MIT"
] | null | null | null |
conan_ue4cli/__init__.py
|
JJC1138/conan-ue4cli
|
76163a21cb63976cacfea46b024d80c12cf39313
|
[
"MIT"
] | null | null | null |
conan_ue4cli/__init__.py
|
JJC1138/conan-ue4cli
|
76163a21cb63976cacfea46b024d80c12cf39313
|
[
"MIT"
] | null | null | null |
from .descriptor import __PLUGIN_DESCRIPTOR__
from .version import __version__
| 26.333333
| 45
| 0.873418
| 9
| 79
| 6.666667
| 0.555556
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.101266
| 79
| 2
| 46
| 39.5
| 0.84507
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
56899bf50d330e071473073233a3fbd32a8f285c
| 86
|
py
|
Python
|
tests/my_program_test.py
|
leej3/project_spring_2020
|
7db2024bd054fc5676b3c7dcfee419576f15f60b
|
[
"Apache-2.0"
] | null | null | null |
tests/my_program_test.py
|
leej3/project_spring_2020
|
7db2024bd054fc5676b3c7dcfee419576f15f60b
|
[
"Apache-2.0"
] | null | null | null |
tests/my_program_test.py
|
leej3/project_spring_2020
|
7db2024bd054fc5676b3c7dcfee419576f15f60b
|
[
"Apache-2.0"
] | null | null | null |
import subprocess as sp
def test_executable():
result = sp.run('my_program.py')
| 14.333333
| 36
| 0.709302
| 13
| 86
| 4.538462
| 0.923077
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.174419
| 86
| 5
| 37
| 17.2
| 0.830986
| 0
| 0
| 0
| 0
| 0
| 0.152941
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0.333333
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
568e252507d8ef804baab93b7ac1d41198b0b8fd
| 85
|
py
|
Python
|
atest/testdata/test_libraries/MyLibDir/SubPackage/ClassLib.py
|
rdagum/robotframework
|
b7069d505374e9f09a140ed5a9727d2a40716446
|
[
"ECL-2.0",
"Apache-2.0"
] | 7,073
|
2015-01-01T17:19:16.000Z
|
2022-03-31T22:01:29.000Z
|
atest/testdata/test_libraries/MyLibDir/SubPackage/ClassLib.py
|
imust6226/robotframework
|
08c56fef2ebc64d682c7f99acd77c480d8d0e028
|
[
"ECL-2.0",
"Apache-2.0"
] | 2,412
|
2015-01-02T09:29:05.000Z
|
2022-03-31T13:10:46.000Z
|
atest/testdata/test_libraries/MyLibDir/SubPackage/ClassLib.py
|
3mdeb/robotframework
|
6006ce0b3d5fc6b45c5eb040dc859acd64bfa846
|
[
"ECL-2.0",
"Apache-2.0"
] | 2,298
|
2015-01-03T02:47:15.000Z
|
2022-03-31T02:00:16.000Z
|
class ClassLib:
def keyword_in_mylibdir_subpackage_classlib(self):
pass
| 17
| 54
| 0.741176
| 10
| 85
| 5.9
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.211765
| 85
| 4
| 55
| 21.25
| 0.880597
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0.333333
| 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
| 1
| 0
| 0
| 1
| 0
|
0
| 5
|
5691523efb93526b64cd902dba1860f9cbf0b190
| 34
|
py
|
Python
|
odoo-13.0/venv/lib/python3.8/site-packages/JpegImagePlugin.py
|
VaibhavBhujade/Blockchain-ERP-interoperability
|
b5190a037fb6615386f7cbad024d51b0abd4ba03
|
[
"MIT"
] | 2
|
2021-06-20T16:56:45.000Z
|
2021-06-20T17:30:18.000Z
|
odoo-13.0/venv/lib/python3.8/site-packages/JpegImagePlugin.py
|
VaibhavBhujade/Blockchain-ERP-interoperability
|
b5190a037fb6615386f7cbad024d51b0abd4ba03
|
[
"MIT"
] | null | null | null |
odoo-13.0/venv/lib/python3.8/site-packages/JpegImagePlugin.py
|
VaibhavBhujade/Blockchain-ERP-interoperability
|
b5190a037fb6615386f7cbad024d51b0abd4ba03
|
[
"MIT"
] | null | null | null |
from PIL.JpegImagePlugin import *
| 17
| 33
| 0.823529
| 4
| 34
| 7
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.117647
| 34
| 1
| 34
| 34
| 0.933333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.