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
56694cc03cd3c387b101c53b354939bfa5681296
133
py
Python
tests/input/redefined-outer-name/args_and_kwargs.py
DKorytkin/pylint-pytest
097b7767e5f33ad512d421bea9ebb74a251f47bd
[ "MIT" ]
37
2020-06-04T16:34:39.000Z
2022-02-27T13:00:22.000Z
tests/input/redefined-outer-name/args_and_kwargs.py
DKorytkin/pylint-pytest
097b7767e5f33ad512d421bea9ebb74a251f47bd
[ "MIT" ]
26
2020-07-10T15:53:19.000Z
2022-03-28T23:56:03.000Z
tests/input/redefined-outer-name/args_and_kwargs.py
DKorytkin/pylint-pytest
097b7767e5f33ad512d421bea9ebb74a251f47bd
[ "MIT" ]
6
2020-06-29T17:45:38.000Z
2022-02-19T01:09:57.000Z
def args(): pass def kwargs(): pass def not_a_test_function(*args, **kwargs): # invalid test case... assert True
11.083333
41
0.609023
18
133
4.333333
0.666667
0.179487
0
0
0
0
0
0
0
0
0
0
0.263158
133
11
42
12.090909
0.795918
0.150376
0
0.333333
0
0
0
0
0
0
0
0
0.166667
1
0.5
true
0.333333
0
0
0.5
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
1
0
0
0
0
0
4
56764df88ba796cdf483788df053e1f87564f451
154
py
Python
ifnameismain.py
sgriffith3/2022-01-04-Python
edccc1c28dd23ae9c31cb5d5a08b8b7ee13b5afb
[ "MIT" ]
1
2022-01-07T22:36:12.000Z
2022-01-07T22:36:12.000Z
ifnameismain.py
sgriffith3/2022-01-04-Python
edccc1c28dd23ae9c31cb5d5a08b8b7ee13b5afb
[ "MIT" ]
null
null
null
ifnameismain.py
sgriffith3/2022-01-04-Python
edccc1c28dd23ae9c31cb5d5a08b8b7ee13b5afb
[ "MIT" ]
null
null
null
import script2 print("Above output was not desired :(") print(script2.sumthing(1, 3)) print(__name__) if __name__ == "__main__": print("Yes it is")
17.111111
40
0.694805
22
154
4.318182
0.772727
0
0
0
0
0
0
0
0
0
0
0.030769
0.155844
154
9
41
17.111111
0.7
0
0
0
0
0
0.309677
0
0
0
0
0
0
1
0
true
0
0.166667
0
0.166667
0.666667
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
1
0
4
56995e67f8c4aabc214c1757895438a37e6e5f87
163
py
Python
app/api/types/user.py
P4R/django-graphql-api-z1
5b469384631e8e916567865b659641ac5710dfb3
[ "MIT" ]
null
null
null
app/api/types/user.py
P4R/django-graphql-api-z1
5b469384631e8e916567865b659641ac5710dfb3
[ "MIT" ]
null
null
null
app/api/types/user.py
P4R/django-graphql-api-z1
5b469384631e8e916567865b659641ac5710dfb3
[ "MIT" ]
null
null
null
from django.contrib.auth.models import User from graphene_django import DjangoObjectType class UserType(DjangoObjectType): class Meta: model = User
18.111111
44
0.766871
19
163
6.526316
0.684211
0.33871
0
0
0
0
0
0
0
0
0
0
0.184049
163
8
45
20.375
0.932331
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.4
0
0.8
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
3b0a8ffa9dd0bb4e57c93f78a2653b641db427c7
668
py
Python
status/migrations/0004_auto_20200707_0228.py
maliahavlicek/ci_hackathon_july_2020
48c269da0c1f375337164d8bf23df494cccf1d3c
[ "ADSL" ]
1
2020-07-06T05:57:00.000Z
2020-07-06T05:57:00.000Z
status/migrations/0004_auto_20200707_0228.py
maliahavlicek/ci_hackathon_july_2020
48c269da0c1f375337164d8bf23df494cccf1d3c
[ "ADSL" ]
8
2020-07-04T16:53:12.000Z
2022-01-13T02:58:55.000Z
status/migrations/0004_auto_20200707_0228.py
maliahavlicek/ci_hackathon_july_2020
48c269da0c1f375337164d8bf23df494cccf1d3c
[ "ADSL" ]
null
null
null
# Generated by Django 3.0.8 on 2020-07-07 02:28 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('status', '0003_auto_20200707_0200'), ] operations = [ migrations.RemoveField( model_name='allstatusinput', name='help', ), migrations.RemoveField( model_name='allstatusinput', name='mood', ), migrations.RemoveField( model_name='allstatusinput', name='plans', ), migrations.RemoveField( model_name='allstatusinput', name='updated_date', ), ]
23.034483
47
0.549401
57
668
6.298246
0.578947
0.233983
0.289694
0.334262
0.534819
0.534819
0
0
0
0
0
0.070455
0.341317
668
28
48
23.857143
0.745455
0.067365
0
0.521739
1
0
0.177134
0.037037
0
0
0
0
0
1
0
false
0
0.043478
0
0.173913
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
3b274951e3984358cf230320432f7ac81ba627b5
51
py
Python
gmid2/basics/__init__.py
junkyul/gmid2-public
363472b8b69212dd6a9dac61d3e5d23936a5a6d2
[ "MIT" ]
null
null
null
gmid2/basics/__init__.py
junkyul/gmid2-public
363472b8b69212dd6a9dac61d3e5d23936a5a6d2
[ "MIT" ]
null
null
null
gmid2/basics/__init__.py
junkyul/gmid2-public
363472b8b69212dd6a9dac61d3e5d23936a5a6d2
[ "MIT" ]
1
2020-12-28T20:06:37.000Z
2020-12-28T20:06:37.000Z
from .factor import Factor from .uai_files import *
25.5
26
0.803922
8
51
5
0.625
0
0
0
0
0
0
0
0
0
0
0
0.137255
51
2
27
25.5
0.909091
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
3b456ccf88764d6c81b1f6ae16c13835dfdc1031
104
py
Python
chapter-09/exercise013.py
krastin/pp-cs3.0
502be9aac2d84215db176864e443c219e5e26591
[ "MIT" ]
null
null
null
chapter-09/exercise013.py
krastin/pp-cs3.0
502be9aac2d84215db176864e443c219e5e26591
[ "MIT" ]
null
null
null
chapter-09/exercise013.py
krastin/pp-cs3.0
502be9aac2d84215db176864e443c219e5e26591
[ "MIT" ]
null
null
null
width = 7 for x in range(1, width+1): for y in range(1, x+1): print('T', end='') print()
20.8
27
0.5
20
104
2.6
0.55
0.269231
0.307692
0
0
0
0
0
0
0
0
0.068493
0.298077
104
5
28
20.8
0.643836
0
0
0
0
0
0.009524
0
0
0
0
0
0
1
0
false
0
0
0
0
0.4
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
3b6189179a5c3736fb27ab2ae1cb42d8a6ebb16c
77
py
Python
reply_engine/deco/__init__.py
LukWang/opq_reply_engine
f3823b0fc9789f0aab06b04a9319431a04f7a9ad
[ "MIT" ]
1
2022-02-17T14:53:22.000Z
2022-02-17T14:53:22.000Z
reply_engine/deco/__init__.py
LukWang/opq_reply_engine
f3823b0fc9789f0aab06b04a9319431a04f7a9ad
[ "MIT" ]
null
null
null
reply_engine/deco/__init__.py
LukWang/opq_reply_engine
f3823b0fc9789f0aab06b04a9319431a04f7a9ad
[ "MIT" ]
1
2022-02-17T16:32:48.000Z
2022-02-17T16:32:48.000Z
from .plugin_register import plugin_register __all__ = ["plugin_register", ]
25.666667
44
0.805195
9
77
6.111111
0.555556
0.763636
0
0
0
0
0
0
0
0
0
0
0.103896
77
3
45
25.666667
0.797101
0
0
0
0
0
0.192308
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
3b7959272e4d78986959ce7302324fc52f4ca665
656
py
Python
modules/validator.py
pentab/pg_data_importer
01c0796221bd5f1ac046f541b426b14af4afc225
[ "MIT" ]
null
null
null
modules/validator.py
pentab/pg_data_importer
01c0796221bd5f1ac046f541b426b14af4afc225
[ "MIT" ]
null
null
null
modules/validator.py
pentab/pg_data_importer
01c0796221bd5f1ac046f541b426b14af4afc225
[ "MIT" ]
null
null
null
import re def isFloat(string): pattern = r'^[-+]?[0-9]*\.[0-9]+$' state = re.match(pattern, string) return state def isInteger(string): pattern = r'^[-+]?[0-9]+$' state = re.match(pattern, string) return state def isDate(string): pattern = r'^(?:(?:31(\/|-|\.)(?:0?[13578]|1[02]))\1|(?:(?:29|30)(\/|-|\.)(?:0?[13-9]|1[0-2])\2))(?:(?:1[6-9]|[2-9]\d)?\d{2})$|^(?:29(\/|-|\.)0?2\3(?:(?:(?:1[6-9]|[2-9]\d)?(?:0[48]|[2468][048]|[13579][26])|(?:(?:16|[2468][048]|[3579][26])00))))$|^(?:0?[1-9]|1\d|2[0-8])(\/|-|\.)(?:(?:0?[1-9])|(?:1[0-2]))\4(?:(?:1[6-9]|[2-9]\d)?\d{2})$' state = re.match(pattern, string) return state
32.8
340
0.449695
112
656
2.633929
0.3125
0.132203
0.142373
0.19322
0.576271
0.474576
0.454237
0.332203
0.277966
0.277966
0
0.172712
0.117378
656
19
341
34.526316
0.336788
0
0
0.461538
0
0.076923
0.544207
0.52439
0
0
0
0
0
1
0.230769
false
0
0.076923
0
0.538462
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
1
null
0
0
0
0
0
1
0
0
0
0
0
0
0
4
3b88f1008cdfc3bb052a37a5da49735a7ef00292
257
py
Python
Python/Stepik/Beginner/Exam-loops/ramanujan.py
SergeyOcheretenko/PythonLearning
2f84d730b00931b33188a2a831977f385b063c6c
[ "MIT" ]
null
null
null
Python/Stepik/Beginner/Exam-loops/ramanujan.py
SergeyOcheretenko/PythonLearning
2f84d730b00931b33188a2a831977f385b063c6c
[ "MIT" ]
6
2021-12-27T18:27:57.000Z
2022-03-20T15:11:38.000Z
Python/Stepik/Beginner/Exam-loops/ramanujan.py
SergeyOcheretenko/PythonLearning
2f84d730b00931b33188a2a831977f385b063c6c
[ "MIT" ]
1
2022-02-21T18:20:54.000Z
2022-02-21T18:20:54.000Z
for i in range(1, 35000): counter = 0 for j in range(1, int(i ** (1 / 3)) + 2): for k in range(1, int(i ** (1 / 3)) + 2): if j ** 3 + k ** 3 == i: counter += 1 if counter > 2: print(i) counter = 0
25.7
49
0.396887
43
257
2.372093
0.348837
0.205882
0.235294
0.215686
0.294118
0.294118
0.294118
0.294118
0
0
0
0.136986
0.431907
257
9
50
28.555556
0.561644
0
0
0.222222
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.111111
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
8e5bdf3397a81f13c1a2b5dee8b4aeb5ff413dd4
135
py
Python
csep/utils/constants.py
thbeutin/csep2
79bc5c77c90f4dd13dae69425d3cb39aabcec7bf
[ "MIT" ]
null
null
null
csep/utils/constants.py
thbeutin/csep2
79bc5c77c90f4dd13dae69425d3cb39aabcec7bf
[ "MIT" ]
null
null
null
csep/utils/constants.py
thbeutin/csep2
79bc5c77c90f4dd13dae69425d3cb39aabcec7bf
[ "MIT" ]
null
null
null
# saving year as astronomical year # calculated as 365.25*24*60*60 SECONDS_PER_ASTRONOMICAL_YEAR = 31557600 SECONDS_PER_DAY = 60*60*24
27
40
0.807407
23
135
4.521739
0.565217
0.307692
0
0
0
0
0
0
0
0
0
0.210084
0.118519
135
4
41
33.75
0.663866
0.459259
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
8e72399ac03ec0ee197ec201abaa66d220d7dcf8
108
py
Python
APICaller/src/thumb/util.py
grape0919/BitToByte
b37140c566aa51172b077e3bdc3113d169d986c1
[ "MIT" ]
null
null
null
APICaller/src/thumb/util.py
grape0919/BitToByte
b37140c566aa51172b077e3bdc3113d169d986c1
[ "MIT" ]
null
null
null
APICaller/src/thumb/util.py
grape0919/BitToByte
b37140c566aa51172b077e3bdc3113d169d986c1
[ "MIT" ]
null
null
null
def earn(buy, sell): return ((sell-buy)/buy)*100 if __name__ == '__main__': print(earn(1556,1583))
18
31
0.62963
16
108
3.75
0.75
0
0
0
0
0
0
0
0
0
0
0.123596
0.175926
108
6
32
18
0.550562
0
0
0
0
0
0.074074
0
0
0
0
0
0
1
0.25
false
0
0
0.25
0.5
0.25
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
4
8ea18abc9cf978bacf28a7ede74d0e05ab77c8c7
114
py
Python
tests/unit/example_test.py
DEV3L/python-flask-example
371f3ea3f78b98c84401adf8fcb0a6533d2814ae
[ "MIT" ]
null
null
null
tests/unit/example_test.py
DEV3L/python-flask-example
371f3ea3f78b98c84401adf8fcb0a6533d2814ae
[ "MIT" ]
null
null
null
tests/unit/example_test.py
DEV3L/python-flask-example
371f3ea3f78b98c84401adf8fcb0a6533d2814ae
[ "MIT" ]
2
2018-09-20T02:52:59.000Z
2021-01-12T19:56:59.000Z
import unittest class ExampleTest(unittest.TestCase): def test_example_test_case(self): assert True
16.285714
37
0.745614
14
114
5.857143
0.857143
0
0
0
0
0
0
0
0
0
0
0
0.192982
114
6
38
19
0.891304
0
0
0
0
0
0
0
0
0
0
0
0.25
1
0.25
false
0
0.25
0
0.75
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
4
8eda92763c5a2052e2332a4368dcaddf473cf806
141
py
Python
lib/recipetool/__init__.py
SVL-simulator/meta-ros2
577f3715047474289341f0fa96ffe55389a45068
[ "MIT" ]
53
2018-02-28T08:51:32.000Z
2022-02-28T06:49:23.000Z
lib/recipetool/__init__.py
SVL-simulator/meta-ros2
577f3715047474289341f0fa96ffe55389a45068
[ "MIT" ]
415
2016-12-20T17:20:45.000Z
2018-09-23T07:59:23.000Z
lib/recipetool/__init__.py
SVL-simulator/meta-ros2
577f3715047474289341f0fa96ffe55389a45068
[ "MIT" ]
65
2017-02-03T12:36:16.000Z
2021-02-18T11:00:46.000Z
# Enable other layers to have modules in the same named directory from pkgutil import extend_path __path__ = extend_path(__path__, __name__)
35.25
65
0.822695
21
141
4.857143
0.809524
0.196078
0.27451
0
0
0
0
0
0
0
0
0
0.141844
141
3
66
47
0.842975
0.446809
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
8ee4c03614679b29eee342cfa3ccd3053536ec7c
2,064
py
Python
test/test_indentation.py
jackdavidweber/cjs_capstone
8929e4939f5b7b172c595dbb49b1d2ccc7805b8a
[ "MIT" ]
2
2020-07-13T18:58:57.000Z
2020-07-20T23:30:21.000Z
test/test_indentation.py
jackdavidweber/cjs_capstone
8929e4939f5b7b172c595dbb49b1d2ccc7805b8a
[ "MIT" ]
20
2020-06-18T20:49:20.000Z
2020-08-04T16:15:46.000Z
test/test_indentation.py
jackdavidweber/cjs_capstone
8929e4939f5b7b172c595dbb49b1d2ccc7805b8a
[ "MIT" ]
null
null
null
import unittest2 import matrix from Unittest import Unittest class TestIndentation(unittest2.TestCase): def test_indent_if(self): py_code = Unittest( 'if (x == True):\n\tif (y == True):\n\t\tprint("y and x are true")', 'py') js_code = Unittest( 'if (x == true) {\n\tif (y == true) {\n\t\tconsole.log("y and x are true")\n\t}\n}', 'js') matrix.matrix(self, [py_code, js_code]) def test_indent_for_of(self): py_code = Unittest('for j in [1, 2]:\n\tfor k in [3, 4]:\n\t\tj\n\t\tk', 'py') js_code = Unittest( 'for (j of [1, 2]) {\n\tfor (k of [3, 4]) {\n\t\tj\n\t\tk\n\t}\n}', 'js') matrix.matrix(self, [py_code, js_code]) def test_indent_for_range(self): py_code = Unittest( 'for j in range (0, 10, 1):\n\tfor k in range (20, 30, 1):\n\t\tj\n\t\tk', 'py') js_code = Unittest( 'for (let j = 0; j < 10; j += 1) {\n\tfor (let k = 20; k < 30; k += 1) {\n\t\tj\n\t\tk\n\t}\n}', 'js') matrix.matrix(self, [py_code, js_code]) def test_indent_while(self): py_code = Unittest('while (1):\n\twhile (2):\n\t\t3', 'py') js_code = Unittest('while (1) {\n\twhile (2) {\n\t\t3\n\t}\n}', 'js') matrix.matrix(self, [py_code, js_code]) def test_indent_func_and_if(self): py_code = Unittest('def test():\n\tif (1):\n\t\t2', 'py') js_code = Unittest('function test() {\n\tif (1) {\n\t\t2\n\t}\n}', 'js') matrix.matrix(self, [py_code, js_code]) def test_indent_func_if_while_for(self): py_code = Unittest( 'def test():\n\tif (1):\n\t\twhile (2):\n\t\t\tfor j in [3, 4]:\n\t\t\t\t5', 'py') js_code = Unittest( 'function test() {\n\tif (1) {\n\t\twhile (2) {\n\t\t\tfor (j of [3, 4]) {\n\t\t\t\t5\n\t\t\t}\n\t\t}\n\t}\n}', 'js') matrix.matrix(self, [py_code, js_code]) if __name__ == '__main__': unittest2.main()
36.857143
123
0.512112
354
2,064
2.841808
0.152542
0.055666
0.119284
0.107356
0.758449
0.700795
0.700795
0.631213
0.627237
0.627237
0
0.033041
0.281492
2,064
55
124
37.527273
0.645314
0
0
0.466667
0
0.222222
0.378876
0.049903
0
0
0
0
0
1
0.133333
false
0
0.066667
0
0.222222
0.022222
0
0
0
null
0
0
0
0
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
d91a0f283783e2a0ef896f237e1c8e0f6be2169e
67
py
Python
serverlib/Exceptions.py
thepparker/tf2pug-server
a9d81c9d38be18d3eba3f54460581b462f4db604
[ "MIT" ]
null
null
null
serverlib/Exceptions.py
thepparker/tf2pug-server
a9d81c9d38be18d3eba3f54460581b462f4db604
[ "MIT" ]
null
null
null
serverlib/Exceptions.py
thepparker/tf2pug-server
a9d81c9d38be18d3eba3f54460581b462f4db604
[ "MIT" ]
null
null
null
# raised when class UnableToConnectException(Exception): pass
16.75
42
0.776119
6
67
8.666667
1
0
0
0
0
0
0
0
0
0
0
0
0.164179
67
3
43
22.333333
0.928571
0.164179
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
4
d93c3372d3a47244d8c36c6dddbb6effc66c529b
842
py
Python
src/jetson/Sensors/odometry.py
ichalkiad/VW_challenge
333222010ecf3d1ca4a0e181239f761c975453e9
[ "Apache-2.0" ]
1
2017-08-16T08:42:49.000Z
2017-08-16T08:42:49.000Z
src/jetson/Sensors/odometry.py
ichalkiad/VW_challenge
333222010ecf3d1ca4a0e181239f761c975453e9
[ "Apache-2.0" ]
4
2017-08-09T23:01:30.000Z
2017-08-24T16:44:13.000Z
src/jetson/Sensors/odometry.py
yhalk/vw_challenge_ECR
c1ff50070d0f7367ccfbf473c69e90fd2be5e85e
[ "Apache-2.0" ]
null
null
null
class Odometry(): def __init__(self): self._dst_traveled_angle_turned = None,None self._moved = None self._grasp = None def get_dst_traveled_angle_turned(self): return self._dst_traveled_angle_turned def set_dst_traveled_angle_turned(self,value): self._dst_traveled_angle_turned = value dst_traveled_angle_turned = property(get_dst_traveled_angle_turned,set_dst_traveled_angle_turned,'dst_traveled_angle_turned') def get_moved(self): return self._moved def set_moved(self,value): self._moved = value moved = property(get_moved,set_moved,'moved') def get_grasp(self): return self._grasp def set_grasp(self,value): self._grasp = value grasp = property(get_grasp,set_grasp,'grasp')
26.3125
131
0.672209
108
842
4.759259
0.157407
0.192607
0.280156
0.385214
0.416342
0
0
0
0
0
0
0
0.251781
842
31
132
27.16129
0.815873
0
0
0
0
0
0.041568
0.029691
0
0
0
0
0
1
0.35
false
0
0
0.15
0.7
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
0
0
0
4
d94096336cc930e3e6290c590fffa2971536ea41
201
py
Python
count.py
simretmengesha/PublicNLPA
eb62b32a3eb3f7db6fc03579c36f252b72266b65
[ "MIT" ]
null
null
null
count.py
simretmengesha/PublicNLPA
eb62b32a3eb3f7db6fc03579c36f252b72266b65
[ "MIT" ]
null
null
null
count.py
simretmengesha/PublicNLPA
eb62b32a3eb3f7db6fc03579c36f252b72266b65
[ "MIT" ]
null
null
null
import re from itertools import islice, izip words = re.findall("\w+", "the quick person did not realize his speed and the quick person bumped") print Counter(izip(words, islice(words, 1, None)))
28.714286
76
0.731343
32
201
4.59375
0.71875
0.122449
0.190476
0
0
0
0
0
0
0
0
0.005952
0.164179
201
6
77
33.5
0.869048
0
0
0
0
0
0.365
0
0
0
0
0
0
0
null
null
0
0.4
null
null
0.2
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
4
d95e3011a0ce074597e19c22fe511fd72767d0bb
126
py
Python
kaztron/cog/quotedb/__init__.py
Laogeodritt/KazTron
42f35e520875b458ffde7c2729865c95de606aca
[ "MIT" ]
6
2018-07-04T20:41:01.000Z
2021-09-08T08:10:34.000Z
kaztron/cog/quotedb/__init__.py
Laogeodritt/KazTron
42f35e520875b458ffde7c2729865c95de606aca
[ "MIT" ]
259
2018-05-01T22:41:32.000Z
2022-02-08T23:25:00.000Z
kaztron/cog/quotedb/__init__.py
Laogeodritt/KazTron
42f35e520875b458ffde7c2729865c95de606aca
[ "MIT" ]
6
2019-04-16T22:13:15.000Z
2021-12-15T08:06:38.000Z
from .quotecog import QuoteCog from .controller import init_db def setup(bot): init_db() bot.add_cog(QuoteCog(bot))
15.75
31
0.730159
19
126
4.684211
0.578947
0.134831
0
0
0
0
0
0
0
0
0
0
0.174603
126
7
32
18
0.855769
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.4
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
0
0
0
1
0
1
0
0
4
d96b912b30f647d2a490b0191b5bc79238d9da93
285
py
Python
node.py
MaferMazu/arithmetic-operators-pre-and-post-order
8a4283f167f306e926a10e329f8fb1f7b945da03
[ "MIT" ]
null
null
null
node.py
MaferMazu/arithmetic-operators-pre-and-post-order
8a4283f167f306e926a10e329f8fb1f7b945da03
[ "MIT" ]
null
null
null
node.py
MaferMazu/arithmetic-operators-pre-and-post-order
8a4283f167f306e926a10e329f8fb1f7b945da03
[ "MIT" ]
null
null
null
class Node: """ Represent a node in binary tree """ def __init__(self, string,left=None,right=None): self.left = left self.right = right self.string = string def __str__(self): return "("+str(self.left)+str(self.string)+str(self.right)+")"
28.5
70
0.6
38
285
4.289474
0.421053
0.171779
0
0
0
0
0
0
0
0
0
0
0.249123
285
9
71
31.666667
0.761682
0.108772
0
0
0
0
0.00813
0
0
0
0
0
0
1
0.285714
false
0
0
0.142857
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
4
d97711f967482d90d0811f619120ddd8132fa076
2,016
py
Python
django_site/parser_vacancies/migrations/0001_initial.py
StGrail/v.it
765cb720a16b0fff66e013b8b66a80d99168c16b
[ "MIT" ]
null
null
null
django_site/parser_vacancies/migrations/0001_initial.py
StGrail/v.it
765cb720a16b0fff66e013b8b66a80d99168c16b
[ "MIT" ]
1
2020-12-23T19:08:20.000Z
2020-12-23T19:08:20.000Z
django_site/parser_vacancies/migrations/0001_initial.py
StGrail/v.it
765cb720a16b0fff66e013b8b66a80d99168c16b
[ "MIT" ]
null
null
null
# Generated by Django 3.1.4 on 2021-01-10 18:00 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('users', '0004_auto_20210110_1938'), ] operations = [ migrations.CreateModel( name='Skills', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('sql', models.BooleanField(default=False)), ('linux', models.BooleanField(default=False)), ('git', models.BooleanField(default=False)), ('postgresql', models.BooleanField(default=False)), ('django', models.BooleanField(default=False)), ('flask', models.BooleanField(default=False)), ('css', models.BooleanField(default=False)), ('html', models.BooleanField(default=False)), ('bash', models.BooleanField(default=False)), ('mysql', models.BooleanField(default=False)), ('oop', models.BooleanField(default=False)), ('docker', models.BooleanField(default=False)), ('mongodb', models.BooleanField(default=False)), ('pandas', models.BooleanField(default=False)), ('numpy', models.BooleanField(default=False)), ('jira', models.BooleanField(default=False)), ('kubernetes', models.BooleanField(default=False)), ('http', models.BooleanField(default=False)), ('tcp_ip', models.BooleanField(default=False)), ('trello', models.BooleanField(default=False)), ('unix', models.BooleanField(default=False)), ('redis', models.BooleanField(default=False)), ('id_vacancy', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='users.vacancies')), ], ), ]
43.826087
120
0.575397
180
2,016
6.394444
0.394444
0.344049
0.477845
0.573414
0
0
0
0
0
0
0
0.021247
0.27629
2,016
45
121
44.8
0.767649
0.022321
0
0
1
0
0.089893
0.011681
0
0
0
0
0
1
0
false
0
0.052632
0
0.157895
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
d991b58de902e9963aef671a3efee834a0b2f5e7
2,366
py
Python
src/zotero_json_parsing/zotero_data.py
stefantaubert/zotero-folder-export
5910d046f0c206f39a81c57db123c68a1740c6e4
[ "MIT" ]
null
null
null
src/zotero_json_parsing/zotero_data.py
stefantaubert/zotero-folder-export
5910d046f0c206f39a81c57db123c68a1740c6e4
[ "MIT" ]
null
null
null
src/zotero_json_parsing/zotero_data.py
stefantaubert/zotero-folder-export
5910d046f0c206f39a81c57db123c68a1740c6e4
[ "MIT" ]
null
null
null
import dataclasses from dataclasses import dataclass from typing import Dict, List, Optional, Union @dataclass() class Collection(): name: str id: int @dataclass() class Primary(): collectionID: int libraryID: int key: str primary: Primary @dataclass() class Fields(): name: str parentKey: Union[bool, str] fields: Fields childCollections: Union[Dict[str, str], List[int]] = dataclasses.field(default_factory=list) childItems: List[int] = dataclasses.field(default_factory=list) @dataclass() class Descendent(): id: int key: str type: str parent: int level: Optional[int] name: Optional[str] children: List["Descendent"] = dataclasses.field(default_factory=list) descendents: List[Descendent] = dataclasses.field(default_factory=list) @dataclass() class Tag(): tag: str @dataclass() class Item(): version: int itemType: str title: Optional[str] #contentType: str #charset: str #filename: str #dataAdded: Optional[str] #dataModified: str uri: str url: Optional[str] linkMode: Optional[str] localPath: Optional[str] note: Optional[str] parentItem: Optional[str] #language: str #libraryCatalog: str # pages: str # @dataclass() # class Creator(): # firstName: str # lastName: str # creatorType: str # creators: List[Creator] = dataclasses.field(default_factory=list) tags: List[Tag] = dataclasses.field(default_factory=list) collections: List[str] = dataclasses.field(default_factory=list) relations: Dict[str, List[str]] = dataclasses.field(default_factory=list) @dataclass() class Attachment(): title: Optional[str] filename: Optional[str] localPath: Optional[str] itemType: str linkMode: str url: Optional[str] tags: List[Tag] = dataclasses.field(default_factory=list) attachments: List[Attachment] = dataclasses.field(default_factory=list) @dataclass() class Note(): key: str uri: str note: str tags: List[Tag] = dataclasses.field(default_factory=list) notes: List[Note] = dataclasses.field(default_factory=list) @dataclass() class Data(): collections: List[Collection] # = dataclasses.field(default_factory=list) items: List[Item] # = dataclasses.field(default_factory=list) # Schema: ClassVar[Type[Schema]] = Schema # For the type checker
21.509091
94
0.695266
275
2,366
5.930909
0.254545
0.137339
0.197425
0.257511
0.431024
0.330472
0.330472
0.08645
0.05886
0
0
0
0.1847
2,366
109
95
21.706422
0.845516
0.177515
0
0.426471
0
0
0.005187
0
0
0
0
0
0
1
0
true
0
0.044118
0
0.529412
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
1
0
0
4
79498c94f4977fcdf537034c99c52026d5146aae
151
py
Python
src/index.py
oprogramador/facebook-graph-analyser
59c80378d95da10a6ec912b5f0fc1cb9500b03a1
[ "MIT" ]
null
null
null
src/index.py
oprogramador/facebook-graph-analyser
59c80378d95da10a6ec912b5f0fc1cb9500b03a1
[ "MIT" ]
null
null
null
src/index.py
oprogramador/facebook-graph-analyser
59c80378d95da10a6ec912b5f0fc1cb9500b03a1
[ "MIT" ]
null
null
null
import GraphAnalyser import FacebookConnector import sys print GraphAnalyser.findShortestPath(FacebookConnector.getFriends, sys.argv[1], sys.argv[2])
25.166667
92
0.847682
17
151
7.529412
0.588235
0.109375
0
0
0
0
0
0
0
0
0
0.014286
0.072848
151
5
93
30.2
0.9
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0.75
null
null
0.25
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
4
7956d5778eddb65e6ad464cec097c3a26c931868
149
py
Python
initialize_weights.py
catskillsresearch/openasr20
b9821c4ee6a51501e81103c1d6d4db0ea8aaa31e
[ "Apache-2.0" ]
null
null
null
initialize_weights.py
catskillsresearch/openasr20
b9821c4ee6a51501e81103c1d6d4db0ea8aaa31e
[ "Apache-2.0" ]
null
null
null
initialize_weights.py
catskillsresearch/openasr20
b9821c4ee6a51501e81103c1d6d4db0ea8aaa31e
[ "Apache-2.0" ]
1
2021-07-28T02:13:21.000Z
2021-07-28T02:13:21.000Z
import torch.nn as nn def initialize_weights(m): if hasattr(m, 'weight') and m.weight.dim() > 1: nn.init.xavier_uniform_(m.weight.data)
24.833333
51
0.677852
25
149
3.92
0.72
0.214286
0
0
0
0
0
0
0
0
0
0.008197
0.181208
149
5
52
29.8
0.795082
0
0
0
0
0
0.040268
0
0
0
0
0
0
1
0.25
false
0
0.25
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
1
0
0
0
0
0
0
0
4
796fed385d1a59c98f66b17e0390192d519818f7
40
py
Python
test/integration/targets/module_utils/other_mu_dir/a/b/c/d/e/f/g/h/__init__.py
Container-Projects/ansible-provider-docs
100b695b0b0c4d8d08af362069557ffc735d0d7e
[ "PSF-2.0", "BSD-2-Clause", "MIT" ]
37
2017-08-15T15:02:43.000Z
2021-07-23T03:44:31.000Z
test/integration/targets/module_utils/other_mu_dir/a/b/c/d/e/f/g/h/__init__.py
Container-Projects/ansible-provider-docs
100b695b0b0c4d8d08af362069557ffc735d0d7e
[ "PSF-2.0", "BSD-2-Clause", "MIT" ]
12
2018-01-10T05:25:25.000Z
2021-11-28T06:55:48.000Z
test/integration/targets/module_utils/other_mu_dir/a/b/c/d/e/f/g/h/__init__.py
Container-Projects/ansible-provider-docs
100b695b0b0c4d8d08af362069557ffc735d0d7e
[ "PSF-2.0", "BSD-2-Clause", "MIT" ]
49
2017-08-15T09:52:13.000Z
2022-03-21T17:11:54.000Z
data = 'should not be visible abcdefgh'
20
39
0.75
6
40
5
1
0
0
0
0
0
0
0
0
0
0
0
0.175
40
1
40
40
0.909091
0
0
0
0
0
0.75
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
79a40697bbf2fbd1d93e6ca3c041d79268fddd35
103
py
Python
django_demo/book_mysql_test/apps.py
591flybird/Django_demo_2019_0427
b2a092bfdadff77ba5fb4e1cb58ff951b57b0332
[ "MIT" ]
null
null
null
django_demo/book_mysql_test/apps.py
591flybird/Django_demo_2019_0427
b2a092bfdadff77ba5fb4e1cb58ff951b57b0332
[ "MIT" ]
null
null
null
django_demo/book_mysql_test/apps.py
591flybird/Django_demo_2019_0427
b2a092bfdadff77ba5fb4e1cb58ff951b57b0332
[ "MIT" ]
null
null
null
from django.apps import AppConfig class BookMysqlTestConfig(AppConfig): name = 'book_mysql_test'
17.166667
37
0.786408
12
103
6.583333
0.916667
0
0
0
0
0
0
0
0
0
0
0
0.145631
103
5
38
20.6
0.897727
0
0
0
0
0
0.145631
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
79ac89d065123504e7507e68543c7d6b98ddf97c
323
py
Python
commands/doNothing.py
Team4169/2022
89ee7d3c014fcdfa54ad6cf6e2dc660038397965
[ "MIT" ]
null
null
null
commands/doNothing.py
Team4169/2022
89ee7d3c014fcdfa54ad6cf6e2dc660038397965
[ "MIT" ]
null
null
null
commands/doNothing.py
Team4169/2022
89ee7d3c014fcdfa54ad6cf6e2dc660038397965
[ "MIT" ]
null
null
null
from subsystems.climbingsubsystem import ClimbingSubsystem import commands2 class DoNothing(commands2.CommandBase): def __init__(self) -> None: super().__init__() def initialize(self): pass def execute(self) -> None: pass def end(self, interrupted: bool) -> None: pass
17.944444
58
0.653251
33
323
6.151515
0.575758
0.226601
0
0
0
0
0
0
0
0
0
0.008299
0.25387
323
17
59
19
0.834025
0
0
0.272727
0
0
0
0
0
0
0
0
0
1
0.363636
false
0.272727
0.181818
0
0.636364
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
4
79c42e66736b07e73b0ee0d989fb8c2d801d1904
2,179
py
Python
Project_Euler/08_largest_product_in_series/find_largest_product.py
perlygatekeeper/glowing-robot
7ef5eb089f552a1de309092606c95e805e6723a0
[ "Artistic-2.0" ]
2
2015-06-05T15:40:06.000Z
2020-03-19T17:08:37.000Z
Project_Euler/08_largest_product_in_series/find_largest_product.py
perlygatekeeper/glowing-robot
7ef5eb089f552a1de309092606c95e805e6723a0
[ "Artistic-2.0" ]
null
null
null
Project_Euler/08_largest_product_in_series/find_largest_product.py
perlygatekeeper/glowing-robot
7ef5eb089f552a1de309092606c95e805e6723a0
[ "Artistic-2.0" ]
null
null
null
#!/opt/local/bin/python # Python program to find largest product of 13 consequence of digits # from the 1000 below. import sys import math import timeit import time import re def findLargestProduct(n=13): lines = ''' 73167176531330624919225119674426574742355349194934 96983520312774506326239578318016984801869478851843 85861560789112949495459501737958331952853208805511 12540698747158523863050715693290963295227443043557 66896648950445244523161731856403098711121722383113 62229893423380308135336276614282806444486645238749 30358907296290491560440772390713810515859307960866 70172427121883998797908792274921901699720888093776 65727333001053367881220235421809751254540594752243 52584907711670556013604839586446706324415722155397 53697817977846174064955149290862569321978468622482 83972241375657056057490261407972968652414535100474 82166370484403199890008895243450658541227588666881 16427171479924442928230863465674813919123162824586 17866458359124566529476545682848912883142607690042 24219022671055626321111109370544217506941658960408 07198403850962455444362981230987879927244284909188 84580156166097919133875499200524063689912560717606 05886116467109405077541002256983155200055935729725 71636269561882670428252483600823257530420752963450 ''' digits = lines.replace("\n", "") record = 0 for starting in range(len(digits)-12): sequence = digits[starting:starting+13] if not re.search("0", sequence): print( "Sequence %s starting at index %d is %d long." % (sequence, starting, len(sequence) ) ) product = 1 for digit in sequence: product *= int(digit) if product > record: record = product index = starting string = sequence return ( record, index, string ) start_time = timeit.default_timer() sequence_length = 13 # findLargestProduct(sequence_length) ( largest, starting, digits ) = findLargestProduct(sequence_length) print ("Found largest product of %d consecutive digits as %d, starting at the %d-th digit: %s" % ( sequence_length, largest, starting, digits ) ) print( timeit.default_timer() - start_time )
36.932203
145
0.794401
159
2,179
10.836478
0.503145
0.032501
0.018572
0.033662
0.040627
0
0
0
0
0
0
0.550325
0.151905
2,179
58
146
37.568966
0.382035
0.067003
0
0
0
0.021277
0.56826
0.492854
0
0
0
0
0
1
0.021277
false
0
0.106383
0
0.148936
0.06383
0
0
1
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
79cc8f5983d15b34a6ce04e8ea1bc827019cfac6
299
py
Python
client/tests/test_releases.py
public/deis
546d2bb117ba817ea533a595cbffea3de355f366
[ "Apache-2.0" ]
1
2016-05-28T08:44:13.000Z
2016-05-28T08:44:13.000Z
client/tests/test_releases.py
thomasdavis/deis
02120302926fb3fa18f7275859d6a252c63f4a60
[ "Apache-2.0" ]
null
null
null
client/tests/test_releases.py
thomasdavis/deis
02120302926fb3fa18f7275859d6a252c63f4a60
[ "Apache-2.0" ]
null
null
null
""" Unit tests for `git push deis master` and related commands. Run these tests with "python -m unittest client.tests.test_releases" or with "./manage.py test client.ReleasesTest". """ from __future__ import unicode_literals from unittest import TestCase class ReleasesTest(TestCase): pass
19.933333
68
0.769231
41
299
5.463415
0.756098
0
0
0
0
0
0
0
0
0
0
0
0.150502
299
14
69
21.357143
0.88189
0.591973
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.25
0.5
0
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
1
0
1
0
0
4
8dc980a5b51de8fedcc5e95fdeba14886febd12f
121
py
Python
tests/__init__.py
ryderdamen/phonetic-alphabet
23239a532b05c5708629011dd02a228fc11f71e7
[ "MIT" ]
3
2020-05-01T22:23:38.000Z
2021-03-30T17:47:40.000Z
tests/__init__.py
ryderdamen/phonetic-alphabet
23239a532b05c5708629011dd02a228fc11f71e7
[ "MIT" ]
null
null
null
tests/__init__.py
ryderdamen/phonetic-alphabet
23239a532b05c5708629011dd02a228fc11f71e7
[ "MIT" ]
null
null
null
import sys from os.path import dirname, realpath, join root = dirname(dirname(realpath(__file__))) sys.path.append(root)
24.2
43
0.785124
18
121
5.055556
0.611111
0.32967
0
0
0
0
0
0
0
0
0
0
0.099174
121
4
44
30.25
0.834862
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
8dcb381e9ef18e0809d0031b4145ed5a3eb975d9
1,574
py
Python
pyreach/gyms/text_instructions_element.py
google-research/pyreach
f91753ce7a26e77e122eb02a9fdd5a1ce3ce0159
[ "Apache-2.0" ]
13
2021-09-01T01:10:22.000Z
2022-03-05T10:01:52.000Z
pyreach/gyms/text_instructions_element.py
google-research/pyreach
f91753ce7a26e77e122eb02a9fdd5a1ce3ce0159
[ "Apache-2.0" ]
null
null
null
pyreach/gyms/text_instructions_element.py
google-research/pyreach
f91753ce7a26e77e122eb02a9fdd5a1ce3ce0159
[ "Apache-2.0" ]
6
2021-09-20T21:17:53.000Z
2022-03-14T18:42:48.000Z
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. """Reach arm element used for configuration.""" import dataclasses from pyreach.gyms import reach_element @dataclasses.dataclass(frozen=True) class ReachTextInstructions(reach_element.ReachElement): """Text instructions configuration class. Attributes: reach_name: The name of the corresponding device on the Reach server. This name can be empty. is_synchronous: If True, the next Gym observation will synchronize all observactions elements that have this flag set otherwise the next observation is asynchronous. This argument is optional and defaults to False. task_disable: If False, the "task_enable" key is available in the action space; otherwise "task_enable" is not present. This value defaults to False, which make the action space "task_enable" key show up. In general, all new Gym environments should set this to True and use the Task Device instead. """ is_synchronous: bool = False task_disable: bool = False
38.390244
78
0.752859
227
1,574
5.176211
0.563877
0.051064
0.022128
0.027234
0
0
0
0
0
0
0
0.006289
0.191868
1,574
40
79
39.35
0.917453
0.820203
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.833333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
4
8ddcbfe4840c8c9456bff37402a3dc01cb654a2c
332
py
Python
sitreps_server/crud/jira.py
digitronik/sitreps-server
f42e2c4125edeaec81f225c2582ae58c8bbb9ac2
[ "MIT" ]
null
null
null
sitreps_server/crud/jira.py
digitronik/sitreps-server
f42e2c4125edeaec81f225c2582ae58c8bbb9ac2
[ "MIT" ]
null
null
null
sitreps_server/crud/jira.py
digitronik/sitreps-server
f42e2c4125edeaec81f225c2582ae58c8bbb9ac2
[ "MIT" ]
null
null
null
from typing import TypeVar from ..db import Base ModelType = TypeVar("ModelType", bound=Base) from sitreps_server.crud.base import CRUDBase from sitreps_server.models import Jira from sitreps_server.schemas import JiraCreate, JiraUpdate class CRUDItem(CRUDBase[Jira, JiraCreate, JiraUpdate]): pass jira = CRUDItem(Jira)
18.444444
57
0.792169
43
332
6.046512
0.465116
0.126923
0.196154
0
0
0
0
0
0
0
0
0
0.135542
332
17
58
19.529412
0.905923
0
0
0
0
0
0.027108
0
0
0
0
0
0
1
0
false
0.111111
0.555556
0
0.666667
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
1
0
1
0
0
4
5c07f09a8a4e8bfc9b756dd780df4abc15dbaddc
156
py
Python
py/__init__.py
microsoft/SwitchML
f367714550f50513a0bbe2da411994c2bc77ea6b
[ "MIT" ]
3
2021-04-14T22:04:19.000Z
2021-12-01T02:07:56.000Z
py/__init__.py
microsoft/SwitchML
f367714550f50513a0bbe2da411994c2bc77ea6b
[ "MIT" ]
null
null
null
py/__init__.py
microsoft/SwitchML
f367714550f50513a0bbe2da411994c2bc77ea6b
[ "MIT" ]
5
2021-09-13T12:34:38.000Z
2021-12-01T02:07:59.000Z
## Copyright (c) Microsoft Corporation. ## Licensed under the MIT License. # empty __init__.py file to allow this directory to be imported from elsewhere
26
78
0.769231
22
156
5.272727
0.954545
0
0
0
0
0
0
0
0
0
0
0
0.166667
156
5
79
31.2
0.892308
0.929487
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
5c223610e5ad4377e58028a4e8eca4e36e3ce18f
59
py
Python
python/testData/addImport/comment.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/addImport/comment.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/addImport/comment.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
from urllib import urlopen, urlencode # this is a comment
59
59
0.779661
9
59
5.111111
1
0
0
0
0
0
0
0
0
0
0
0
0.186441
59
1
59
59
0.958333
0.288136
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
5c2ea62f767433e36290f02c9d0952c2b9257ddd
8,012
py
Python
src/decoy/glycodecoy.py
lmsac/GproDIA
3fc1cdee535c9743806b7be423aba29daca24406
[ "BSD-3-Clause" ]
2
2021-11-13T21:37:42.000Z
2021-11-16T07:40:06.000Z
src/decoy/glycodecoy.py
lmsac/GproDIA
3fc1cdee535c9743806b7be423aba29daca24406
[ "BSD-3-Clause" ]
null
null
null
src/decoy/glycodecoy.py
lmsac/GproDIA
3fc1cdee535c9743806b7be423aba29daca24406
[ "BSD-3-Clause" ]
null
null
null
import copy import random from assay import GlycoAssayBuilder from decoy import DecoyAssayGenerator class GlycoDecoyAssayGenerator(DecoyAssayGenerator): def __init__(self, assay_builder=None, **kwargs): if assay_builder is None: assay_builder = GlycoAssayBuilder() self.assay_builder = assay_builder super(GlycoDecoyAssayGenerator, self) \ .__init__(assay_builder=assay_builder, **kwargs) def decoy_sequence(self, assay): glycan_site = assay.get('glycanSite', None) if glycan_site is not None: assay = assay.copy() modification = assay.get('modification', None) if modification is None: modification = [] assay['modification'] = modification + [{ 'name': 'GlycoMod', 'position': glycan_site }] result = super(GlycoDecoyAssayGenerator, self) \ .decoy_sequence(assay) if glycan_site is not None: t = next(( (i, x['position']) for i, x in enumerate(result['modification']) if x['name'] == 'GlycoMod' )) result['glycanSite'] = t[1] result['modification'].pop(t[0]) return result def peptide_decoy(self, assay): assay = super(GlycoDecoyAssayGenerator, self) \ .decoy(assay=assay) metadata = assay.get('metadata', None) if metadata is None: assay['metadata'] = {'decoy': True, 'peptideDecoy': True} else: metadata['peptideDecoy'] = True return assay def glycan_decoy(self, assay): new_assay = copy.deepcopy(assay) if self.unknown_fragment_type == 'ignore': new_assay = self.assay_builder.filter_fragments_by_type(new_assay) fragments = new_assay['fragments'] for i, x in enumerate(fragments['fragmentType']): if x in self.assay_builder.fragment_types: continue elif x in self.assay_builder.glycan_fragment_types: if fragments['fragmentGlycan'][i] == x + '0' or \ fragments['fragmentGlycan'][i] == x + '$': continue mz_shift = round(random.uniform(1, 30), 2) / \ (fragments['fragmentCharge'][i] or 1) fragments['fragmentMZ'][i] += mz_shift fragments['fragmentType'][i] = 'DECOY_' + x fragments['fragmentAnnotation'][i] = 'DECOY_' + \ fragments['fragmentAnnotation'][i] + '[+' + \ '{:.2f}'.format(mz_shift) + ']' elif self.unknown_fragment_type == 'error': raise ValueError('fragment not found: ' + x) # precursor_mz = new_assay.get('precursorMZ', None) # if precursor_mz is not None: # new_assay['precursorMZ'] = precursor_mz + \ # round(random.uniform(1, 30), 2) / \ # new_assay.get('precursorCharge', 1) metadata = new_assay.get('metadata', None) if metadata is None: new_assay['metadata'] = {'decoy': True, 'glycanDecoy': True} else: metadata['decoy'] = True metadata['glycanDecoy'] = True return new_assay def decoy(self, assay, decoy_type='peptide'): if decoy_type == 'peptide': return self.peptide_decoy(assay) elif decoy_type == 'glycan': return self.glycan_decoy(assay) if __name__ == '__main__': decoy = GlycoDecoyAssayGenerator() assay0 = { 'peptideSequence': 'TJVSKFDLPNR', 'modification': None, 'precursorCharge': 3, 'precursorMZ': 998.42809, 'glycanStruct': '(N(N(H(H(H(H(H(H(H(H))))))))))', 'fragments': { 'fragmentMZ': [216.097882035, 315.166296035, 402.19832403500004, 530.293287035, 677.361701035, 792.388644035, 905.472708035, 175.11895173499994, 289.1618787349999, 386.2146427349999, 499.29870673499994, 614.325649735, 761.3940637349999, 889.4890267349999, 976.5210547349999, 1075.5894687349999, 299.13499584000004, 398.20340984, 760.39881484, 875.42575784, 988.50982184, 1085.5625858399999, 1272.6695095399998, 445.24815138499997, 488.76416538499996, 538.298372385, 595.319835885, 543.2849309375, 636.8383927875, 1493.759447235, 1696.8388197349998, 1858.8916431349999, 1373.7171885399998, 747.383361635, 848.923047885, 929.949459585, 1010.9758712849999, 1092.002282985, 1173.028694685, 1254.0551063849998, 1335.081518085, 1416.1079297849997, 687.3622322875, 498.59133310166663, 566.2844572683333, 620.3020650683333, 674.3196728683332, 728.3372806683334, 782.3548884683333, 836.3724962683333], 'fragmentNumber': [2, 3, 4, 5, 6, 7, 8, 1, 2, 3, 4, 5, 6, 7, 8, 9, 2, 3, 6, 7, 8, 9, 10, 7, 8, 9, 10, 9, 10, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None], 'fragmentGlycan': [None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, 'Y-N(1)', 'Y-N(2)', 'Y-N(2)H(1)', 'Y$', 'Y-N(1)', 'Y-N(2)', 'Y-N(2)H(1)', 'Y-N(2)H(2)', 'Y-N(2)H(3)', 'Y-N(2)H(4)', 'Y-N(2)H(5)', 'Y-N(2)H(6)', 'Y-N(2)H(7)', 'Y$', 'Y-N(1)', 'Y-N(2)', 'Y-N(2)H(1)', 'Y-N(2)H(2)', 'Y-N(2)H(3)', 'Y-N(2)H(4)', 'Y-N(2)H(5)'], 'fragmentLossType': ['noloss', 'noloss', 'noloss', 'noloss', 'noloss', 'noloss', 'noloss', 'noloss', 'noloss', 'noloss', 'noloss', 'noloss', 'noloss', 'noloss', 'noloss', 'noloss', 'noloss', 'noloss', 'noloss', 'noloss', 'noloss', 'noloss', 'noloss', 'noloss', 'noloss', 'noloss', 'noloss', 'noloss', 'noloss', 'noloss', 'noloss', 'noloss', 'noloss', 'noloss', 'noloss', 'noloss', 'noloss', 'noloss', 'noloss', 'noloss', 'noloss', 'noloss', 'noloss', 'noloss', 'noloss', 'noloss', 'noloss', 'noloss', 'noloss', 'noloss'], 'fragmentType': ['b', 'b', 'b', 'b', 'b', 'b', 'b', 'y', 'y', 'y', 'y', 'y', 'y', 'y', 'y', 'y', 'b$', 'b$', 'b$', 'b$', 'b$', 'b$', 'y$', 'y', 'y', 'y', 'y', 'b$', 'y$', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y'], 'fragmentAnnotation': ['b2^+1', 'b3^+1', 'b4^+1', 'b5^+1', 'b6^+1', 'b7^+1', 'b8^+1', 'y1^+1', 'y2^+1', 'y3^+1', 'y4^+1', 'y5^+1', 'y6^+1', 'y7^+1', 'y8^+1', 'y9^+1', 'b$2^+1', 'b$3^+1', 'b$6^+1', 'b$7^+1', 'b$8^+1', 'b$9^+1', 'y$10^+1', 'y7^+2', 'y8^+2', 'y9^+2', 'y10^+2', 'b$9^+2', 'y$10^+2', 'Y-N(1)^+1', 'Y-N(2)^+1', 'Y-N(2)H(1)^+1', 'Y$^+1', 'Y-N(1)^+2', 'Y-N(2)^+2', 'Y-N(2)H(1)^+2', 'Y-N(2)H(2)^+2', 'Y-N(2)H(3)^+2', 'Y-N(2)H(4)^+2', 'Y-N(2)H(5)^+2', 'Y-N(2)H(6)^+2', 'Y-N(2)H(7)^+2', 'Y$^+2', 'Y-N(1)^+3', 'Y-N(2)^+3', 'Y-N(2)H(1)^+3', 'Y-N(2)H(2)^+3', 'Y-N(2)H(3)^+3', 'Y-N(2)H(4)^+3', 'Y-N(2)H(5)^+3'], 'fragmentIntensity': [1009609.5, 562854.7, 139883.1, 89470.6, 103570.8, 283033.8, 205681.9, 393638.4, 129843.6, 2256995, 5616303, 1028598, 1680987.1, 514180.9, 1157310.5, 577459.3, 146154.4, 102992.3, 27188.2, 83698.5, 32845.3, 42232.4, 70465.8, 24330.3, 170790.8, 153452.1, 73777.4, 21220.6, 101923.3, 8737480, 464471.7, 351479.3, 783311.3, 17168948, 5641570, 5025644, 3937760.5, 3747871.8, 3250004, 3960476.8, 2553953.3, 420593.9, 646249.6, 81078.5, 1249016.5, 1184480.6, 396399.9, 199690.1, 194890.7, 104705.2], 'fragmentCharge': [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3] } } print(decoy.decoy(assay0)) print(decoy.decoy(assay0, decoy_type='glycan'))
62.108527
905
0.537569
1,075
8,012
3.943256
0.252093
0.138712
0.203822
0.266101
0.241331
0.209247
0.179523
0.174334
0.157348
0.156405
0
0.223697
0.257364
8,012
129
906
62.108527
0.48874
0.030205
0
0.083333
0
0.010417
0.200954
0.003867
0
0
0
0
0
1
0.052083
false
0
0.041667
0
0.15625
0.020833
0
0
0
null
0
1
1
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
308e63cddc24f81e1c91ec4b17d6e80c85e65d42
126
py
Python
data_types.py
priyankakushi/machine-learning
f46e077cc6d52a25a2f4ec3576791369ed091d51
[ "CC-BY-3.0" ]
null
null
null
data_types.py
priyankakushi/machine-learning
f46e077cc6d52a25a2f4ec3576791369ed091d51
[ "CC-BY-3.0" ]
null
null
null
data_types.py
priyankakushi/machine-learning
f46e077cc6d52a25a2f4ec3576791369ed091d51
[ "CC-BY-3.0" ]
null
null
null
import tkinter from tkinter import * root = tkinter.tk() root.geometry("250*400+300") root.resizable(0,0) root.mainloop)()
12.6
28
0.722222
19
126
4.789474
0.631579
0
0
0
0
0
0
0
0
0
0
0.099099
0.119048
126
9
29
14
0.720721
0
0
0
0
0
0.087302
0
0
0
0
0
0
0
null
null
0
0.333333
null
null
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
4
309fc387e99e7478999dbae9b85b96e44c10e5fb
591
py
Python
utils/exceptions.py
codyharrington/todolist
2159aca28b3f5b12b22f2282669281bf2430f4c3
[ "MIT" ]
1
2020-01-14T18:46:51.000Z
2020-01-14T18:46:51.000Z
utils/exceptions.py
codyharrington/todolist
2159aca28b3f5b12b22f2282669281bf2430f4c3
[ "MIT" ]
null
null
null
utils/exceptions.py
codyharrington/todolist
2159aca28b3f5b12b22f2282669281bf2430f4c3
[ "MIT" ]
2
2015-09-07T15:06:52.000Z
2020-01-14T18:47:24.000Z
__author__ = 'cody' class AlreadyExistsException(Exception): pass class UserAlreadyExistsException(Exception): pass class NotFoundException(Exception): pass class UnauthorisedException(Exception): pass class AuthenticationFailureException(Exception): pass class ForbiddenException(Exception): pass class MalformedJSONException(Exception): pass class ExpectedJSONObjectException(Exception): pass class NoDataException(Exception): pass class InsufficientFieldsException(Exception): pass class InternalServerErrorException(Exception): pass
17.382353
48
0.786802
46
591
10.021739
0.347826
0.310195
0.390456
0
0
0
0
0
0
0
0
0
0.152284
591
34
49
17.382353
0.92016
0
0
0.478261
0
0
0.006757
0
0
0
0
0
0
1
0
false
0.478261
0
0
0.478261
0
0
0
1
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
4
30c22ee003fc21bb180d73e39ccc386f7101cef1
64,301
py
Python
python/machinetalk/protobuf/message_pb2.py
luminize/machinetalk-protobuf
6ca7c99806401179ece164b07dc87852bfa8df9c
[ "MIT" ]
null
null
null
python/machinetalk/protobuf/message_pb2.py
luminize/machinetalk-protobuf
6ca7c99806401179ece164b07dc87852bfa8df9c
[ "MIT" ]
null
null
null
python/machinetalk/protobuf/message_pb2.py
luminize/machinetalk-protobuf
6ca7c99806401179ece164b07dc87852bfa8df9c
[ "MIT" ]
null
null
null
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: machinetalk/protobuf/message.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from machinetalk.protobuf import nanopb_pb2 as machinetalk_dot_protobuf_dot_nanopb__pb2 from machinetalk.protobuf import types_pb2 as machinetalk_dot_protobuf_dot_types__pb2 from machinetalk.protobuf import object_pb2 as machinetalk_dot_protobuf_dot_object__pb2 from machinetalk.protobuf import log_pb2 as machinetalk_dot_protobuf_dot_log__pb2 from machinetalk.protobuf import motcmds_pb2 as machinetalk_dot_protobuf_dot_motcmds__pb2 from machinetalk.protobuf import task_pb2 as machinetalk_dot_protobuf_dot_task__pb2 from machinetalk.protobuf import canon_pb2 as machinetalk_dot_protobuf_dot_canon__pb2 from machinetalk.protobuf import value_pb2 as machinetalk_dot_protobuf_dot_value__pb2 from machinetalk.protobuf import rtapicommand_pb2 as machinetalk_dot_protobuf_dot_rtapicommand__pb2 from machinetalk.protobuf import rtapi_message_pb2 as machinetalk_dot_protobuf_dot_rtapi__message__pb2 from machinetalk.protobuf import config_pb2 as machinetalk_dot_protobuf_dot_config__pb2 from machinetalk.protobuf import preview_pb2 as machinetalk_dot_protobuf_dot_preview__pb2 from machinetalk.protobuf import status_pb2 as machinetalk_dot_protobuf_dot_status__pb2 DESCRIPTOR = _descriptor.FileDescriptor( name='machinetalk/protobuf/message.proto', package='machinetalk', syntax='proto2', serialized_pb=_b('\n\"machinetalk/protobuf/message.proto\x12\x0bmachinetalk\x1a!machinetalk/protobuf/nanopb.proto\x1a machinetalk/protobuf/types.proto\x1a!machinetalk/protobuf/object.proto\x1a\x1emachinetalk/protobuf/log.proto\x1a\"machinetalk/protobuf/motcmds.proto\x1a\x1fmachinetalk/protobuf/task.proto\x1a machinetalk/protobuf/canon.proto\x1a machinetalk/protobuf/value.proto\x1a\'machinetalk/protobuf/rtapicommand.proto\x1a(machinetalk/protobuf/rtapi_message.proto\x1a!machinetalk/protobuf/config.proto\x1a\"machinetalk/protobuf/preview.proto\x1a!machinetalk/protobuf/status.proto\"\xed\"\n\tContainer\x12(\n\x04type\x18\x01 \x02(\x0e\x32\x1a.machinetalk.ContainerType\x12\x0b\n\x03tsc\x18\x07 \x01(\x10\x12,\n\x07preview\x18\x08 \x03(\x0b\x32\x14.machinetalk.PreviewB\x05\x92?\x02\x18\x03\x12*\n\x06motcmd\x18\t \x01(\x0b\x32\x1a.machinetalk.MotionCommand\x12*\n\x07motstat\x18\n \x01(\x0b\x32\x19.machinetalk.MotionStatus\x12\x1c\n\rlegacy_motcmd\x18\x0b \x01(\x0c\x42\x05\x92?\x02\x18\x03\x12\x1d\n\x0elegacy_motstat\x18\x0c \x01(\x0c\x42\x05\x92?\x02\x18\x03\x12\x31\n\rrtapi_message\x18\r \x01(\x0b\x32\x1a.machinetalk.RTAPI_Message\x12\x31\n\ntask_reply\x18\x0e \x01(\x0b\x32\x16.machinetalk.TaskReplyB\x05\x92?\x02\x18\x03\x12\x30\n\rticket_update\x18\x0f \x01(\x0b\x32\x19.machinetalk.TicketUpdate\x12\x15\n\x06syslog\x18\x12 \x01(\x0c\x42\x05\x92?\x02\x18\x03\x12\x19\n\nlegacy_nml\x18\x13 \x01(\x0c\x42\x05\x92?\x02\x18\x03\x12\x1f\n\x10legacy_motconfig\x18\x14 \x01(\x0c\x42\x05\x92?\x02\x18\x03\x12\x0e\n\x06tv_sec\x18\x15 \x01(\x05\x12\x0f\n\x07tv_nsec\x18\x16 \x01(\x05\x12\r\n\x05topic\x18\x17 \x01(\t\x12\x16\n\x0ereply_required\x18\x18 \x01(\x08\x12>\n\x0cinterp_state\x18\x19 \x01(\x0e\x32!.machinetalk.InterpreterStateTypeB\x05\x92?\x02\x18\x03\x12\x13\n\x0binterp_name\x18\x1a \x01(\t\x12\x0c\n\x04rsvp\x18\x1e \x01(\x05\x12/\n\x0bin_reply_to\x18! \x01(\x0e\x32\x1a.machinetalk.ContainerType\x12+\n\nrcs_status\x18# \x01(\x0e\x32\x17.machinetalk.RCS_STATUS\x12\'\n\x06status\x18( \x01(\x0e\x32\x17.machinetalk.StatusType\x12\x0e\n\x06serial\x18- \x01(\x05\x12\x14\n\x0creply_serial\x18\x32 \x01(\x05\x12\x0e\n\x06ticket\x18\x37 \x01(\x05\x12\x14\n\x0creply_ticket\x18< \x01(\x05\x12\x10\n\x08sequence\x18> \x01(\x05\x12\x0e\n\x06\x63redit\x18\x41 \x01(\x05\x12\x13\n\x0bline_number\x18\x42 \x01(\x05\x12\x13\n\x04name\x18\x43 \x01(\tB\x05\x92?\x02\x18\x03\x12\x0c\n\x04note\x18\x44 \x03(\t\x12\x0f\n\x07retcode\x18\x45 \x01(\x05\x12\x13\n\x04uuid\x18H \x01(\x0c\x42\x05\x92?\x02\x18\x03\x12\r\n\x05trace\x18K \x01(\x08\x12\x10\n\x08instance\x18M \x01(\x05\x12(\n\x05value\x18U \x03(\x0b\x32\x12.machinetalk.ValueB\x05\x92?\x02\x18\x03\x12\x32\n\x08rtapicmd\x18V \x01(\x0b\x32\x19.machinetalk.RTAPICommandB\x05\x92?\x02\x18\x03\x12\x45\n\x14service_announcement\x18X \x03(\x0b\x32 .machinetalk.ServiceAnnouncementB\x05\x92?\x02\x18\x03\x12+\n\x04\x63omp\x18\x64 \x03(\x0b\x32\x16.machinetalk.ComponentB\x05\x92?\x02\x18\x03\x12$\n\x03pin\x18\x02 \x03(\x0b\x32\x10.machinetalk.PinB\x05\x92?\x02\x18\x03\x12*\n\x06signal\x18\x03 \x03(\x0b\x32\x13.machinetalk.SignalB\x05\x92?\x02\x18\x03\x12(\n\x05param\x18g \x03(\x0b\x32\x12.machinetalk.ParamB\x05\x92?\x02\x18\x03\x12*\n\x06thread\x18h \x03(\x0b\x32\x13.machinetalk.ThreadB\x05\x92?\x02\x18\x03\x12&\n\x04ring\x18i \x03(\x0b\x32\x11.machinetalk.RingB\x05\x92?\x02\x18\x03\x12(\n\x05group\x18j \x03(\x0b\x32\x12.machinetalk.GroupB\x05\x92?\x02\x18\x03\x12*\n\x06member\x18k \x03(\x0b\x32\x13.machinetalk.MemberB\x05\x92?\x02\x18\x03\x12.\n\x08\x66unction\x18l \x03(\x0b\x32\x15.machinetalk.FunctionB\x05\x92?\x02\x18\x03\x12\x37\n\x07pparams\x18m \x01(\x0b\x32\x1f.machinetalk.ProtocolParametersB\x05\x92?\x02\x18\x03\x12*\n\x06vtable\x18n \x03(\x0b\x32\x13.machinetalk.VtableB\x05\x92?\x02\x18\x03\x12&\n\x04inst\x18o \x03(\x0b\x32\x11.machinetalk.InstB\x05\x92?\x02\x18\x03\x12,\n\x03\x61pp\x18x \x03(\x0b\x32\x18.machinetalk.ApplicationB\x05\x92?\x02\x18\x03\x12/\n\x08launcher\x18\x82\x01 \x03(\x0b\x32\x15.machinetalk.LauncherB\x05\x92?\x02\x18\x03\x12\x15\n\x05index\x18\x83\x01 \x01(\x05\x42\x05\x92?\x02\x18\x03\x12\x33\n\x0blog_message\x18W \x01(\x0b\x32\x17.machinetalk.LogMessageB\x05\x92?\x02\x18\x03\x12\x37\n\ttpexecute\x18\xc8\x01 \x01(\x0b\x32\x1c.machinetalk.TaskPlanExecuteB\x05\x92?\x02\x18\x03\x12?\n\rtpblockdelete\x18\xc9\x01 \x01(\x0b\x32 .machinetalk.TaskPlanBlockDeleteB\x05\x92?\x02\x18\x03\x12\x41\n\x0etpoptionalstop\x18\xca\x01 \x01(\x0b\x32!.machinetalk.TaskPlanOptionalStopB\x05\x92?\x02\x18\x03\x12\x31\n\x06tpopen\x18\xcb\x01 \x01(\x0b\x32\x19.machinetalk.TaskPlanOpenB\x05\x92?\x02\x18\x03\x12:\n\x0etaskplan_reply\x18\xd2\x01 \x01(\x0b\x32\x1a.machinetalk.TaskPlanReplyB\x05\x92?\x02\x18\x03\x12\x34\n\x0ctraj_set_g5x\x18\xac\x02 \x01(\x0b\x32\x1d.machinetalk.Emc_Traj_Set_G5x\x12\x34\n\x0ctraj_set_g92\x18\xb6\x02 \x01(\x0b\x32\x1d.machinetalk.Emc_Traj_Set_G92\x12>\n\x11traj_set_rotation\x18\xc0\x02 \x01(\x0b\x32\".machinetalk.Emc_Traj_Set_Rotation\x12<\n\x10traj_linear_move\x18\xca\x02 \x01(\x0b\x32!.machinetalk.Emc_Traj_Linear_Move\x12\x30\n\ntraj_probe\x18\xd4\x02 \x01(\x0b\x32\x1b.machinetalk.Emc_Traj_Probe\x12@\n\x12traj_circular_move\x18\xde\x02 \x01(\x0b\x32#.machinetalk.Emc_Traj_Circular_Move\x12\x38\n\x0etraj_rigid_tap\x18\xe8\x02 \x01(\x0b\x32\x1f.machinetalk.Emc_Traj_Rigid_Tap\x12@\n\x12traj_set_term_cond\x18\xf2\x02 \x01(\x0b\x32#.machinetalk.Emc_Traj_Set_Term_Cond\x12\x44\n\x14traj_set_spindlesync\x18\xfc\x02 \x01(\x0b\x32%.machinetalk.Emc_Traj_Set_Spindlesync\x12\x30\n\ntraj_delay\x18\x86\x03 \x01(\x0b\x32\x1b.machinetalk.Emc_Traj_Delay\x12\x30\n\nspindle_on\x18\x90\x03 \x01(\x0b\x32\x1b.machinetalk.Emc_Spindle_On\x12\x36\n\rspindle_speed\x18\x9a\x03 \x01(\x0b\x32\x1e.machinetalk.Emc_Spindle_Speed\x12\x38\n\x0espindle_orient\x18\xa4\x03 \x01(\x0b\x32\x1f.machinetalk.Emc_Spindle_Orient\x12T\n\x1cspindle_wait_orient_complete\x18\xae\x03 \x01(\x0b\x32-.machinetalk.Emc_Spindle_Wait_Orient_Complete\x12\x39\n\x0etool_set_offet\x18\xb8\x03 \x01(\x0b\x32 .machinetalk.Emc_Tool_Set_Offset\x12:\n\x0ftraj_set_offset\x18\xc2\x03 \x01(\x0b\x32 .machinetalk.Emc_Traj_Set_Offset\x12\x34\n\x0ctool_prepare\x18\xcc\x03 \x01(\x0b\x32\x1d.machinetalk.Emc_Tool_Prepare\x12:\n\x0ftool_set_number\x18\xd6\x03 \x01(\x0b\x32 .machinetalk.Emc_Tool_Set_Number\x12@\n\x12traj_set_fo_enable\x18\xe0\x03 \x01(\x0b\x32#.machinetalk.Emc_Traj_Set_Fo_Enable\x12@\n\x12traj_set_so_enable\x18\xea\x03 \x01(\x0b\x32#.machinetalk.Emc_Traj_Set_So_Enable\x12@\n\x12traj_set_fh_enable\x18\xf4\x03 \x01(\x0b\x32#.machinetalk.Emc_Traj_Set_Fh_Enable\x12:\n\x0fmotion_adaptive\x18\xfe\x03 \x01(\x0b\x32 .machinetalk.Emc_Motion_Adaptive\x12<\n\x10operator_display\x18\x88\x04 \x01(\x0b\x32!.machinetalk.Emc_Operator_Display\x12\x36\n\roperator_text\x18\x92\x04 \x01(\x0b\x32\x1e.machinetalk.Emc_Operator_Text\x12\x38\n\x0eoperator_error\x18\x9c\x04 \x01(\x0b\x32\x1f.machinetalk.Emc_Operator_Error\x12:\n\x0fmotion_set_dout\x18\xa6\x04 \x01(\x0b\x32 .machinetalk.Emc_Motion_Set_Dout\x12:\n\x0fmotion_set_aout\x18\xb0\x04 \x01(\x0b\x32 .machinetalk.Emc_Motion_Set_Aout\x12\x38\n\x0e\x61ux_input_wait\x18\xba\x04 \x01(\x0b\x32\x1f.machinetalk.Emc_Aux_Input_Wait\x12<\n\x10\x65xec_plugin_call\x18\xc4\x04 \x01(\x0b\x32!.machinetalk.Emc_Exec_Plugin_Ca1l\x12\x38\n\x0eio_plugin_call\x18\xce\x04 \x01(\x0b\x32\x1f.machinetalk.Emc_Io_Plugin_Call\x12?\n\x11\x65mc_status_config\x18\xd8\x04 \x01(\x0b\x32\x1c.machinetalk.EmcStatusConfigB\x05\x92?\x02\x18\x03\x12?\n\x11\x65mc_status_motion\x18\xd9\x04 \x01(\x0b\x32\x1c.machinetalk.EmcStatusMotionB\x05\x92?\x02\x18\x03\x12\x37\n\remc_status_io\x18\xda\x04 \x01(\x0b\x32\x18.machinetalk.EmcStatusIoB\x05\x92?\x02\x18\x03\x12;\n\x0f\x65mc_status_task\x18\xdb\x04 \x01(\x0b\x32\x1a.machinetalk.EmcStatusTaskB\x05\x92?\x02\x18\x03\x12?\n\x11\x65mc_status_interp\x18\xdc\x04 \x01(\x0b\x32\x1c.machinetalk.EmcStatusInterpB\x05\x92?\x02\x18\x03\x12\x37\n\remc_status_ui\x18\xdd\x04 \x01(\x0b\x32\x18.machinetalk.EmcStatusUIB\x05\x92?\x02\x18\x03\x12\x45\n\x12\x65mc_command_params\x18\xe2\x04 \x01(\x0b\x32!.machinetalk.EmcCommandParametersB\x05\x92?\x02\x18\x03:\x06\x92?\x03H\xf4\x03') , dependencies=[machinetalk_dot_protobuf_dot_nanopb__pb2.DESCRIPTOR,machinetalk_dot_protobuf_dot_types__pb2.DESCRIPTOR,machinetalk_dot_protobuf_dot_object__pb2.DESCRIPTOR,machinetalk_dot_protobuf_dot_log__pb2.DESCRIPTOR,machinetalk_dot_protobuf_dot_motcmds__pb2.DESCRIPTOR,machinetalk_dot_protobuf_dot_task__pb2.DESCRIPTOR,machinetalk_dot_protobuf_dot_canon__pb2.DESCRIPTOR,machinetalk_dot_protobuf_dot_value__pb2.DESCRIPTOR,machinetalk_dot_protobuf_dot_rtapicommand__pb2.DESCRIPTOR,machinetalk_dot_protobuf_dot_rtapi__message__pb2.DESCRIPTOR,machinetalk_dot_protobuf_dot_config__pb2.DESCRIPTOR,machinetalk_dot_protobuf_dot_preview__pb2.DESCRIPTOR,machinetalk_dot_protobuf_dot_status__pb2.DESCRIPTOR,]) _sym_db.RegisterFileDescriptor(DESCRIPTOR) _CONTAINER = _descriptor.Descriptor( name='Container', full_name='machinetalk.Container', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='type', full_name='machinetalk.Container.type', index=0, number=1, type=14, cpp_type=8, label=2, has_default_value=False, default_value=2, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='tsc', full_name='machinetalk.Container.tsc', index=1, number=7, type=16, cpp_type=2, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='preview', full_name='machinetalk.Container.preview', index=2, number=8, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=_descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003'))), _descriptor.FieldDescriptor( name='motcmd', full_name='machinetalk.Container.motcmd', index=3, number=9, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='motstat', full_name='machinetalk.Container.motstat', index=4, number=10, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='legacy_motcmd', full_name='machinetalk.Container.legacy_motcmd', index=5, number=11, type=12, cpp_type=9, label=1, has_default_value=False, default_value=_b(""), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=_descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003'))), _descriptor.FieldDescriptor( name='legacy_motstat', full_name='machinetalk.Container.legacy_motstat', index=6, number=12, type=12, cpp_type=9, label=1, has_default_value=False, default_value=_b(""), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=_descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003'))), _descriptor.FieldDescriptor( name='rtapi_message', full_name='machinetalk.Container.rtapi_message', index=7, number=13, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='task_reply', full_name='machinetalk.Container.task_reply', index=8, number=14, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=_descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003'))), _descriptor.FieldDescriptor( name='ticket_update', full_name='machinetalk.Container.ticket_update', index=9, number=15, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='syslog', full_name='machinetalk.Container.syslog', index=10, number=18, type=12, cpp_type=9, label=1, has_default_value=False, default_value=_b(""), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=_descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003'))), _descriptor.FieldDescriptor( name='legacy_nml', full_name='machinetalk.Container.legacy_nml', index=11, number=19, type=12, cpp_type=9, label=1, has_default_value=False, default_value=_b(""), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=_descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003'))), _descriptor.FieldDescriptor( name='legacy_motconfig', full_name='machinetalk.Container.legacy_motconfig', index=12, number=20, type=12, cpp_type=9, label=1, has_default_value=False, default_value=_b(""), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=_descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003'))), _descriptor.FieldDescriptor( name='tv_sec', full_name='machinetalk.Container.tv_sec', index=13, number=21, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='tv_nsec', full_name='machinetalk.Container.tv_nsec', index=14, number=22, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='topic', full_name='machinetalk.Container.topic', index=15, number=23, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='reply_required', full_name='machinetalk.Container.reply_required', index=16, number=24, type=8, cpp_type=7, label=1, has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='interp_state', full_name='machinetalk.Container.interp_state', index=17, number=25, type=14, cpp_type=8, label=1, has_default_value=False, default_value=1, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=_descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003'))), _descriptor.FieldDescriptor( name='interp_name', full_name='machinetalk.Container.interp_name', index=18, number=26, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='rsvp', full_name='machinetalk.Container.rsvp', index=19, number=30, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='in_reply_to', full_name='machinetalk.Container.in_reply_to', index=20, number=33, type=14, cpp_type=8, label=1, has_default_value=False, default_value=2, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='rcs_status', full_name='machinetalk.Container.rcs_status', index=21, number=35, type=14, cpp_type=8, label=1, has_default_value=False, default_value=-1, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='status', full_name='machinetalk.Container.status', index=22, number=40, type=14, cpp_type=8, label=1, has_default_value=False, default_value=1, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='serial', full_name='machinetalk.Container.serial', index=23, number=45, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='reply_serial', full_name='machinetalk.Container.reply_serial', index=24, number=50, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='ticket', full_name='machinetalk.Container.ticket', index=25, number=55, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='reply_ticket', full_name='machinetalk.Container.reply_ticket', index=26, number=60, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='sequence', full_name='machinetalk.Container.sequence', index=27, number=62, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='credit', full_name='machinetalk.Container.credit', index=28, number=65, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='line_number', full_name='machinetalk.Container.line_number', index=29, number=66, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='name', full_name='machinetalk.Container.name', index=30, number=67, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=_descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003'))), _descriptor.FieldDescriptor( name='note', full_name='machinetalk.Container.note', index=31, number=68, type=9, cpp_type=9, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='retcode', full_name='machinetalk.Container.retcode', index=32, number=69, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='uuid', full_name='machinetalk.Container.uuid', index=33, number=72, type=12, cpp_type=9, label=1, has_default_value=False, default_value=_b(""), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=_descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003'))), _descriptor.FieldDescriptor( name='trace', full_name='machinetalk.Container.trace', index=34, number=75, type=8, cpp_type=7, label=1, has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='instance', full_name='machinetalk.Container.instance', index=35, number=77, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='value', full_name='machinetalk.Container.value', index=36, number=85, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=_descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003'))), _descriptor.FieldDescriptor( name='rtapicmd', full_name='machinetalk.Container.rtapicmd', index=37, number=86, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=_descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003'))), _descriptor.FieldDescriptor( name='service_announcement', full_name='machinetalk.Container.service_announcement', index=38, number=88, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=_descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003'))), _descriptor.FieldDescriptor( name='comp', full_name='machinetalk.Container.comp', index=39, number=100, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=_descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003'))), _descriptor.FieldDescriptor( name='pin', full_name='machinetalk.Container.pin', index=40, number=2, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=_descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003'))), _descriptor.FieldDescriptor( name='signal', full_name='machinetalk.Container.signal', index=41, number=3, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=_descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003'))), _descriptor.FieldDescriptor( name='param', full_name='machinetalk.Container.param', index=42, number=103, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=_descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003'))), _descriptor.FieldDescriptor( name='thread', full_name='machinetalk.Container.thread', index=43, number=104, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=_descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003'))), _descriptor.FieldDescriptor( name='ring', full_name='machinetalk.Container.ring', index=44, number=105, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=_descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003'))), _descriptor.FieldDescriptor( name='group', full_name='machinetalk.Container.group', index=45, number=106, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=_descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003'))), _descriptor.FieldDescriptor( name='member', full_name='machinetalk.Container.member', index=46, number=107, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=_descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003'))), _descriptor.FieldDescriptor( name='function', full_name='machinetalk.Container.function', index=47, number=108, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=_descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003'))), _descriptor.FieldDescriptor( name='pparams', full_name='machinetalk.Container.pparams', index=48, number=109, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=_descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003'))), _descriptor.FieldDescriptor( name='vtable', full_name='machinetalk.Container.vtable', index=49, number=110, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=_descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003'))), _descriptor.FieldDescriptor( name='inst', full_name='machinetalk.Container.inst', index=50, number=111, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=_descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003'))), _descriptor.FieldDescriptor( name='app', full_name='machinetalk.Container.app', index=51, number=120, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=_descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003'))), _descriptor.FieldDescriptor( name='launcher', full_name='machinetalk.Container.launcher', index=52, number=130, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=_descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003'))), _descriptor.FieldDescriptor( name='index', full_name='machinetalk.Container.index', index=53, number=131, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=_descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003'))), _descriptor.FieldDescriptor( name='log_message', full_name='machinetalk.Container.log_message', index=54, number=87, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=_descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003'))), _descriptor.FieldDescriptor( name='tpexecute', full_name='machinetalk.Container.tpexecute', index=55, number=200, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=_descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003'))), _descriptor.FieldDescriptor( name='tpblockdelete', full_name='machinetalk.Container.tpblockdelete', index=56, number=201, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=_descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003'))), _descriptor.FieldDescriptor( name='tpoptionalstop', full_name='machinetalk.Container.tpoptionalstop', index=57, number=202, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=_descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003'))), _descriptor.FieldDescriptor( name='tpopen', full_name='machinetalk.Container.tpopen', index=58, number=203, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=_descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003'))), _descriptor.FieldDescriptor( name='taskplan_reply', full_name='machinetalk.Container.taskplan_reply', index=59, number=210, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=_descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003'))), _descriptor.FieldDescriptor( name='traj_set_g5x', full_name='machinetalk.Container.traj_set_g5x', index=60, number=300, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='traj_set_g92', full_name='machinetalk.Container.traj_set_g92', index=61, number=310, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='traj_set_rotation', full_name='machinetalk.Container.traj_set_rotation', index=62, number=320, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='traj_linear_move', full_name='machinetalk.Container.traj_linear_move', index=63, number=330, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='traj_probe', full_name='machinetalk.Container.traj_probe', index=64, number=340, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='traj_circular_move', full_name='machinetalk.Container.traj_circular_move', index=65, number=350, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='traj_rigid_tap', full_name='machinetalk.Container.traj_rigid_tap', index=66, number=360, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='traj_set_term_cond', full_name='machinetalk.Container.traj_set_term_cond', index=67, number=370, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='traj_set_spindlesync', full_name='machinetalk.Container.traj_set_spindlesync', index=68, number=380, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='traj_delay', full_name='machinetalk.Container.traj_delay', index=69, number=390, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='spindle_on', full_name='machinetalk.Container.spindle_on', index=70, number=400, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='spindle_speed', full_name='machinetalk.Container.spindle_speed', index=71, number=410, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='spindle_orient', full_name='machinetalk.Container.spindle_orient', index=72, number=420, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='spindle_wait_orient_complete', full_name='machinetalk.Container.spindle_wait_orient_complete', index=73, number=430, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='tool_set_offet', full_name='machinetalk.Container.tool_set_offet', index=74, number=440, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='traj_set_offset', full_name='machinetalk.Container.traj_set_offset', index=75, number=450, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='tool_prepare', full_name='machinetalk.Container.tool_prepare', index=76, number=460, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='tool_set_number', full_name='machinetalk.Container.tool_set_number', index=77, number=470, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='traj_set_fo_enable', full_name='machinetalk.Container.traj_set_fo_enable', index=78, number=480, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='traj_set_so_enable', full_name='machinetalk.Container.traj_set_so_enable', index=79, number=490, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='traj_set_fh_enable', full_name='machinetalk.Container.traj_set_fh_enable', index=80, number=500, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='motion_adaptive', full_name='machinetalk.Container.motion_adaptive', index=81, number=510, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='operator_display', full_name='machinetalk.Container.operator_display', index=82, number=520, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='operator_text', full_name='machinetalk.Container.operator_text', index=83, number=530, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='operator_error', full_name='machinetalk.Container.operator_error', index=84, number=540, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='motion_set_dout', full_name='machinetalk.Container.motion_set_dout', index=85, number=550, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='motion_set_aout', full_name='machinetalk.Container.motion_set_aout', index=86, number=560, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='aux_input_wait', full_name='machinetalk.Container.aux_input_wait', index=87, number=570, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='exec_plugin_call', full_name='machinetalk.Container.exec_plugin_call', index=88, number=580, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='io_plugin_call', full_name='machinetalk.Container.io_plugin_call', index=89, number=590, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='emc_status_config', full_name='machinetalk.Container.emc_status_config', index=90, number=600, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=_descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003'))), _descriptor.FieldDescriptor( name='emc_status_motion', full_name='machinetalk.Container.emc_status_motion', index=91, number=601, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=_descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003'))), _descriptor.FieldDescriptor( name='emc_status_io', full_name='machinetalk.Container.emc_status_io', index=92, number=602, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=_descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003'))), _descriptor.FieldDescriptor( name='emc_status_task', full_name='machinetalk.Container.emc_status_task', index=93, number=603, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=_descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003'))), _descriptor.FieldDescriptor( name='emc_status_interp', full_name='machinetalk.Container.emc_status_interp', index=94, number=604, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=_descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003'))), _descriptor.FieldDescriptor( name='emc_status_ui', full_name='machinetalk.Container.emc_status_ui', index=95, number=605, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=_descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003'))), _descriptor.FieldDescriptor( name='emc_command_params', full_name='machinetalk.Container.emc_command_params', index=96, number=610, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=_descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003'))), ], extensions=[ ], nested_types=[], enum_types=[ ], options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('\222?\003H\364\003')), is_extendable=False, syntax='proto2', extension_ranges=[], oneofs=[ ], serialized_start=514, serialized_end=4975, ) _CONTAINER.fields_by_name['type'].enum_type = machinetalk_dot_protobuf_dot_types__pb2._CONTAINERTYPE _CONTAINER.fields_by_name['preview'].message_type = machinetalk_dot_protobuf_dot_preview__pb2._PREVIEW _CONTAINER.fields_by_name['motcmd'].message_type = machinetalk_dot_protobuf_dot_motcmds__pb2._MOTIONCOMMAND _CONTAINER.fields_by_name['motstat'].message_type = machinetalk_dot_protobuf_dot_motcmds__pb2._MOTIONSTATUS _CONTAINER.fields_by_name['rtapi_message'].message_type = machinetalk_dot_protobuf_dot_rtapi__message__pb2._RTAPI_MESSAGE _CONTAINER.fields_by_name['task_reply'].message_type = machinetalk_dot_protobuf_dot_task__pb2._TASKREPLY _CONTAINER.fields_by_name['ticket_update'].message_type = machinetalk_dot_protobuf_dot_task__pb2._TICKETUPDATE _CONTAINER.fields_by_name['interp_state'].enum_type = machinetalk_dot_protobuf_dot_types__pb2._INTERPRETERSTATETYPE _CONTAINER.fields_by_name['in_reply_to'].enum_type = machinetalk_dot_protobuf_dot_types__pb2._CONTAINERTYPE _CONTAINER.fields_by_name['rcs_status'].enum_type = machinetalk_dot_protobuf_dot_types__pb2._RCS_STATUS _CONTAINER.fields_by_name['status'].enum_type = machinetalk_dot_protobuf_dot_types__pb2._STATUSTYPE _CONTAINER.fields_by_name['value'].message_type = machinetalk_dot_protobuf_dot_value__pb2._VALUE _CONTAINER.fields_by_name['rtapicmd'].message_type = machinetalk_dot_protobuf_dot_rtapicommand__pb2._RTAPICOMMAND _CONTAINER.fields_by_name['service_announcement'].message_type = machinetalk_dot_protobuf_dot_object__pb2._SERVICEANNOUNCEMENT _CONTAINER.fields_by_name['comp'].message_type = machinetalk_dot_protobuf_dot_object__pb2._COMPONENT _CONTAINER.fields_by_name['pin'].message_type = machinetalk_dot_protobuf_dot_object__pb2._PIN _CONTAINER.fields_by_name['signal'].message_type = machinetalk_dot_protobuf_dot_object__pb2._SIGNAL _CONTAINER.fields_by_name['param'].message_type = machinetalk_dot_protobuf_dot_object__pb2._PARAM _CONTAINER.fields_by_name['thread'].message_type = machinetalk_dot_protobuf_dot_object__pb2._THREAD _CONTAINER.fields_by_name['ring'].message_type = machinetalk_dot_protobuf_dot_object__pb2._RING _CONTAINER.fields_by_name['group'].message_type = machinetalk_dot_protobuf_dot_object__pb2._GROUP _CONTAINER.fields_by_name['member'].message_type = machinetalk_dot_protobuf_dot_object__pb2._MEMBER _CONTAINER.fields_by_name['function'].message_type = machinetalk_dot_protobuf_dot_object__pb2._FUNCTION _CONTAINER.fields_by_name['pparams'].message_type = machinetalk_dot_protobuf_dot_object__pb2._PROTOCOLPARAMETERS _CONTAINER.fields_by_name['vtable'].message_type = machinetalk_dot_protobuf_dot_object__pb2._VTABLE _CONTAINER.fields_by_name['inst'].message_type = machinetalk_dot_protobuf_dot_object__pb2._INST _CONTAINER.fields_by_name['app'].message_type = machinetalk_dot_protobuf_dot_config__pb2._APPLICATION _CONTAINER.fields_by_name['launcher'].message_type = machinetalk_dot_protobuf_dot_config__pb2._LAUNCHER _CONTAINER.fields_by_name['log_message'].message_type = machinetalk_dot_protobuf_dot_log__pb2._LOGMESSAGE _CONTAINER.fields_by_name['tpexecute'].message_type = machinetalk_dot_protobuf_dot_task__pb2._TASKPLANEXECUTE _CONTAINER.fields_by_name['tpblockdelete'].message_type = machinetalk_dot_protobuf_dot_task__pb2._TASKPLANBLOCKDELETE _CONTAINER.fields_by_name['tpoptionalstop'].message_type = machinetalk_dot_protobuf_dot_task__pb2._TASKPLANOPTIONALSTOP _CONTAINER.fields_by_name['tpopen'].message_type = machinetalk_dot_protobuf_dot_task__pb2._TASKPLANOPEN _CONTAINER.fields_by_name['taskplan_reply'].message_type = machinetalk_dot_protobuf_dot_task__pb2._TASKPLANREPLY _CONTAINER.fields_by_name['traj_set_g5x'].message_type = machinetalk_dot_protobuf_dot_canon__pb2._EMC_TRAJ_SET_G5X _CONTAINER.fields_by_name['traj_set_g92'].message_type = machinetalk_dot_protobuf_dot_canon__pb2._EMC_TRAJ_SET_G92 _CONTAINER.fields_by_name['traj_set_rotation'].message_type = machinetalk_dot_protobuf_dot_canon__pb2._EMC_TRAJ_SET_ROTATION _CONTAINER.fields_by_name['traj_linear_move'].message_type = machinetalk_dot_protobuf_dot_canon__pb2._EMC_TRAJ_LINEAR_MOVE _CONTAINER.fields_by_name['traj_probe'].message_type = machinetalk_dot_protobuf_dot_canon__pb2._EMC_TRAJ_PROBE _CONTAINER.fields_by_name['traj_circular_move'].message_type = machinetalk_dot_protobuf_dot_canon__pb2._EMC_TRAJ_CIRCULAR_MOVE _CONTAINER.fields_by_name['traj_rigid_tap'].message_type = machinetalk_dot_protobuf_dot_canon__pb2._EMC_TRAJ_RIGID_TAP _CONTAINER.fields_by_name['traj_set_term_cond'].message_type = machinetalk_dot_protobuf_dot_canon__pb2._EMC_TRAJ_SET_TERM_COND _CONTAINER.fields_by_name['traj_set_spindlesync'].message_type = machinetalk_dot_protobuf_dot_canon__pb2._EMC_TRAJ_SET_SPINDLESYNC _CONTAINER.fields_by_name['traj_delay'].message_type = machinetalk_dot_protobuf_dot_canon__pb2._EMC_TRAJ_DELAY _CONTAINER.fields_by_name['spindle_on'].message_type = machinetalk_dot_protobuf_dot_canon__pb2._EMC_SPINDLE_ON _CONTAINER.fields_by_name['spindle_speed'].message_type = machinetalk_dot_protobuf_dot_canon__pb2._EMC_SPINDLE_SPEED _CONTAINER.fields_by_name['spindle_orient'].message_type = machinetalk_dot_protobuf_dot_canon__pb2._EMC_SPINDLE_ORIENT _CONTAINER.fields_by_name['spindle_wait_orient_complete'].message_type = machinetalk_dot_protobuf_dot_canon__pb2._EMC_SPINDLE_WAIT_ORIENT_COMPLETE _CONTAINER.fields_by_name['tool_set_offet'].message_type = machinetalk_dot_protobuf_dot_canon__pb2._EMC_TOOL_SET_OFFSET _CONTAINER.fields_by_name['traj_set_offset'].message_type = machinetalk_dot_protobuf_dot_canon__pb2._EMC_TRAJ_SET_OFFSET _CONTAINER.fields_by_name['tool_prepare'].message_type = machinetalk_dot_protobuf_dot_canon__pb2._EMC_TOOL_PREPARE _CONTAINER.fields_by_name['tool_set_number'].message_type = machinetalk_dot_protobuf_dot_canon__pb2._EMC_TOOL_SET_NUMBER _CONTAINER.fields_by_name['traj_set_fo_enable'].message_type = machinetalk_dot_protobuf_dot_canon__pb2._EMC_TRAJ_SET_FO_ENABLE _CONTAINER.fields_by_name['traj_set_so_enable'].message_type = machinetalk_dot_protobuf_dot_canon__pb2._EMC_TRAJ_SET_SO_ENABLE _CONTAINER.fields_by_name['traj_set_fh_enable'].message_type = machinetalk_dot_protobuf_dot_canon__pb2._EMC_TRAJ_SET_FH_ENABLE _CONTAINER.fields_by_name['motion_adaptive'].message_type = machinetalk_dot_protobuf_dot_canon__pb2._EMC_MOTION_ADAPTIVE _CONTAINER.fields_by_name['operator_display'].message_type = machinetalk_dot_protobuf_dot_canon__pb2._EMC_OPERATOR_DISPLAY _CONTAINER.fields_by_name['operator_text'].message_type = machinetalk_dot_protobuf_dot_canon__pb2._EMC_OPERATOR_TEXT _CONTAINER.fields_by_name['operator_error'].message_type = machinetalk_dot_protobuf_dot_canon__pb2._EMC_OPERATOR_ERROR _CONTAINER.fields_by_name['motion_set_dout'].message_type = machinetalk_dot_protobuf_dot_canon__pb2._EMC_MOTION_SET_DOUT _CONTAINER.fields_by_name['motion_set_aout'].message_type = machinetalk_dot_protobuf_dot_canon__pb2._EMC_MOTION_SET_AOUT _CONTAINER.fields_by_name['aux_input_wait'].message_type = machinetalk_dot_protobuf_dot_canon__pb2._EMC_AUX_INPUT_WAIT _CONTAINER.fields_by_name['exec_plugin_call'].message_type = machinetalk_dot_protobuf_dot_canon__pb2._EMC_EXEC_PLUGIN_CA1L _CONTAINER.fields_by_name['io_plugin_call'].message_type = machinetalk_dot_protobuf_dot_canon__pb2._EMC_IO_PLUGIN_CALL _CONTAINER.fields_by_name['emc_status_config'].message_type = machinetalk_dot_protobuf_dot_status__pb2._EMCSTATUSCONFIG _CONTAINER.fields_by_name['emc_status_motion'].message_type = machinetalk_dot_protobuf_dot_status__pb2._EMCSTATUSMOTION _CONTAINER.fields_by_name['emc_status_io'].message_type = machinetalk_dot_protobuf_dot_status__pb2._EMCSTATUSIO _CONTAINER.fields_by_name['emc_status_task'].message_type = machinetalk_dot_protobuf_dot_status__pb2._EMCSTATUSTASK _CONTAINER.fields_by_name['emc_status_interp'].message_type = machinetalk_dot_protobuf_dot_status__pb2._EMCSTATUSINTERP _CONTAINER.fields_by_name['emc_status_ui'].message_type = machinetalk_dot_protobuf_dot_status__pb2._EMCSTATUSUI _CONTAINER.fields_by_name['emc_command_params'].message_type = machinetalk_dot_protobuf_dot_status__pb2._EMCCOMMANDPARAMETERS DESCRIPTOR.message_types_by_name['Container'] = _CONTAINER Container = _reflection.GeneratedProtocolMessageType('Container', (_message.Message,), dict( DESCRIPTOR = _CONTAINER, __module__ = 'machinetalk.protobuf.message_pb2' # @@protoc_insertion_point(class_scope:machinetalk.Container) )) _sym_db.RegisterMessage(Container) _CONTAINER.fields_by_name['preview'].has_options = True _CONTAINER.fields_by_name['preview']._options = _descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003')) _CONTAINER.fields_by_name['legacy_motcmd'].has_options = True _CONTAINER.fields_by_name['legacy_motcmd']._options = _descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003')) _CONTAINER.fields_by_name['legacy_motstat'].has_options = True _CONTAINER.fields_by_name['legacy_motstat']._options = _descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003')) _CONTAINER.fields_by_name['task_reply'].has_options = True _CONTAINER.fields_by_name['task_reply']._options = _descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003')) _CONTAINER.fields_by_name['syslog'].has_options = True _CONTAINER.fields_by_name['syslog']._options = _descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003')) _CONTAINER.fields_by_name['legacy_nml'].has_options = True _CONTAINER.fields_by_name['legacy_nml']._options = _descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003')) _CONTAINER.fields_by_name['legacy_motconfig'].has_options = True _CONTAINER.fields_by_name['legacy_motconfig']._options = _descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003')) _CONTAINER.fields_by_name['interp_state'].has_options = True _CONTAINER.fields_by_name['interp_state']._options = _descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003')) _CONTAINER.fields_by_name['name'].has_options = True _CONTAINER.fields_by_name['name']._options = _descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003')) _CONTAINER.fields_by_name['uuid'].has_options = True _CONTAINER.fields_by_name['uuid']._options = _descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003')) _CONTAINER.fields_by_name['value'].has_options = True _CONTAINER.fields_by_name['value']._options = _descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003')) _CONTAINER.fields_by_name['rtapicmd'].has_options = True _CONTAINER.fields_by_name['rtapicmd']._options = _descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003')) _CONTAINER.fields_by_name['service_announcement'].has_options = True _CONTAINER.fields_by_name['service_announcement']._options = _descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003')) _CONTAINER.fields_by_name['comp'].has_options = True _CONTAINER.fields_by_name['comp']._options = _descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003')) _CONTAINER.fields_by_name['pin'].has_options = True _CONTAINER.fields_by_name['pin']._options = _descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003')) _CONTAINER.fields_by_name['signal'].has_options = True _CONTAINER.fields_by_name['signal']._options = _descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003')) _CONTAINER.fields_by_name['param'].has_options = True _CONTAINER.fields_by_name['param']._options = _descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003')) _CONTAINER.fields_by_name['thread'].has_options = True _CONTAINER.fields_by_name['thread']._options = _descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003')) _CONTAINER.fields_by_name['ring'].has_options = True _CONTAINER.fields_by_name['ring']._options = _descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003')) _CONTAINER.fields_by_name['group'].has_options = True _CONTAINER.fields_by_name['group']._options = _descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003')) _CONTAINER.fields_by_name['member'].has_options = True _CONTAINER.fields_by_name['member']._options = _descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003')) _CONTAINER.fields_by_name['function'].has_options = True _CONTAINER.fields_by_name['function']._options = _descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003')) _CONTAINER.fields_by_name['pparams'].has_options = True _CONTAINER.fields_by_name['pparams']._options = _descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003')) _CONTAINER.fields_by_name['vtable'].has_options = True _CONTAINER.fields_by_name['vtable']._options = _descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003')) _CONTAINER.fields_by_name['inst'].has_options = True _CONTAINER.fields_by_name['inst']._options = _descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003')) _CONTAINER.fields_by_name['app'].has_options = True _CONTAINER.fields_by_name['app']._options = _descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003')) _CONTAINER.fields_by_name['launcher'].has_options = True _CONTAINER.fields_by_name['launcher']._options = _descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003')) _CONTAINER.fields_by_name['index'].has_options = True _CONTAINER.fields_by_name['index']._options = _descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003')) _CONTAINER.fields_by_name['log_message'].has_options = True _CONTAINER.fields_by_name['log_message']._options = _descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003')) _CONTAINER.fields_by_name['tpexecute'].has_options = True _CONTAINER.fields_by_name['tpexecute']._options = _descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003')) _CONTAINER.fields_by_name['tpblockdelete'].has_options = True _CONTAINER.fields_by_name['tpblockdelete']._options = _descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003')) _CONTAINER.fields_by_name['tpoptionalstop'].has_options = True _CONTAINER.fields_by_name['tpoptionalstop']._options = _descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003')) _CONTAINER.fields_by_name['tpopen'].has_options = True _CONTAINER.fields_by_name['tpopen']._options = _descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003')) _CONTAINER.fields_by_name['taskplan_reply'].has_options = True _CONTAINER.fields_by_name['taskplan_reply']._options = _descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003')) _CONTAINER.fields_by_name['emc_status_config'].has_options = True _CONTAINER.fields_by_name['emc_status_config']._options = _descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003')) _CONTAINER.fields_by_name['emc_status_motion'].has_options = True _CONTAINER.fields_by_name['emc_status_motion']._options = _descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003')) _CONTAINER.fields_by_name['emc_status_io'].has_options = True _CONTAINER.fields_by_name['emc_status_io']._options = _descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003')) _CONTAINER.fields_by_name['emc_status_task'].has_options = True _CONTAINER.fields_by_name['emc_status_task']._options = _descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003')) _CONTAINER.fields_by_name['emc_status_interp'].has_options = True _CONTAINER.fields_by_name['emc_status_interp']._options = _descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003')) _CONTAINER.fields_by_name['emc_status_ui'].has_options = True _CONTAINER.fields_by_name['emc_status_ui']._options = _descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003')) _CONTAINER.fields_by_name['emc_command_params'].has_options = True _CONTAINER.fields_by_name['emc_command_params']._options = _descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\222?\002\030\003')) _CONTAINER.has_options = True _CONTAINER._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('\222?\003H\364\003')) # @@protoc_insertion_point(module_scope)
70.582876
8,126
0.775338
8,957
64,301
5.195266
0.068215
0.0502
0.055895
0.069046
0.800103
0.718851
0.649976
0.599605
0.554455
0.53866
0
0.067282
0.09877
64,301
910
8,127
70.66044
0.73572
0.003608
0
0.549944
1
0.003367
0.190328
0.124643
0
0
0
0
0
1
0
false
0
0.021324
0
0.021324
0
0
0
0
null
0
0
0
1
1
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
30e48bfb007beb196a70237d84c74bebde2bff8b
913
py
Python
google/appengine/api/remote_socket/_remote_socket_error.py
MiCHiLU/google_appengine_sdk
3da9f20d7e65e26c4938d2c4054bc4f39cbc5522
[ "Apache-2.0" ]
790
2015-01-03T02:13:39.000Z
2020-05-10T19:53:57.000Z
AppServer/google/appengine/api/remote_socket/_remote_socket_error.py
nlake44/appscale
6944af660ca4cb772c9b6c2332ab28e5ef4d849f
[ "Apache-2.0" ]
1,361
2015-01-08T23:09:40.000Z
2020-04-14T00:03:04.000Z
AppServer/google/appengine/api/remote_socket/_remote_socket_error.py
nlake44/appscale
6944af660ca4cb772c9b6c2332ab28e5ef4d849f
[ "Apache-2.0" ]
155
2015-01-08T22:59:31.000Z
2020-04-08T08:01:53.000Z
#!/usr/bin/env python # # Copyright 2007 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # """Socket exception classes. These exception classes are used instead of those provided by the system. They are in a separate file to avoid circular dependencies. """ class error(IOError): """Base error class.""" class gaierror(error): pass class herror(error): pass class timeout(error): pass
23.410256
74
0.743702
137
913
4.956204
0.656934
0.088365
0.038292
0.047128
0
0
0
0
0
0
0
0.010638
0.176342
913
38
75
24.026316
0.892287
0.820372
0
0.428571
0
0
0
0
0
0
0
0
0
1
0
true
0.428571
0
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
1
0
0
4
eb4b8ccddd5abc9af12db3fb2de65f011c28cdbf
53
py
Python
FactorioCalcFastAPI/data/localeasd.py
kshshkim/factorioCalcPy
2a7c6ca567a3bf0d2b19f3cf0bc05274f83d4205
[ "MIT" ]
1
2021-09-21T01:42:05.000Z
2021-09-21T01:42:05.000Z
FactorioCalcFastAPI/data/localeasd.py
kshshkim/factorioCalcPy
2a7c6ca567a3bf0d2b19f3cf0bc05274f83d4205
[ "MIT" ]
null
null
null
FactorioCalcFastAPI/data/localeasd.py
kshshkim/factorioCalcPy
2a7c6ca567a3bf0d2b19f3cf0bc05274f83d4205
[ "MIT" ]
null
null
null
# import re # import io # # def get_list(): # io.
10.6
17
0.54717
8
53
3.5
0.75
0
0
0
0
0
0
0
0
0
0
0
0.283019
53
5
18
10.6
0.736842
0.811321
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
eb5a9eded244e80c14d180ddf6c423a8cb57e543
105
py
Python
log_correlation_asgi/__init__.py
shaihulud/log-correlation-asgi
148699099a0dd59ac52d66bf19d96b48b6c0f552
[ "MIT" ]
null
null
null
log_correlation_asgi/__init__.py
shaihulud/log-correlation-asgi
148699099a0dd59ac52d66bf19d96b48b6c0f552
[ "MIT" ]
null
null
null
log_correlation_asgi/__init__.py
shaihulud/log-correlation-asgi
148699099a0dd59ac52d66bf19d96b48b6c0f552
[ "MIT" ]
null
null
null
from .filter import ContextDataFilter from .middleware import get_logging_dict, LogCorrelationMiddleware
35
66
0.885714
11
105
8.272727
0.818182
0
0
0
0
0
0
0
0
0
0
0
0.085714
105
2
67
52.5
0.947917
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
ebe239e846171958070d437c7c44aa5d27aa8ccc
253
py
Python
pythonapm/surfacers/log.py
dm03514/python-apm
940ee66992412878ec99244feaa878719a887830
[ "Unlicense" ]
1
2018-09-19T13:48:57.000Z
2018-09-19T13:48:57.000Z
pythonapm/surfacers/log.py
dm03514/python-apm
940ee66992412878ec99244feaa878719a887830
[ "Unlicense" ]
14
2018-05-31T23:58:10.000Z
2018-06-09T12:48:09.000Z
pythonapm/surfacers/log.py
dm03514/python-apm
940ee66992412878ec99244feaa878719a887830
[ "Unlicense" ]
null
null
null
import logging from . import Surfacer logger = logging.getLogger(__name__) class LogSurfacer(Surfacer): def clear(self): pass def flush(self): pass def record(self, metric): logger.debug( metric.dict(), )
13.315789
36
0.620553
28
253
5.464286
0.642857
0.104575
0.143791
0
0
0
0
0
0
0
0
0
0.280632
253
18
37
14.055556
0.840659
0
0
0
0
0
0
0
0
0
0
0
0
1
0.3
false
0.2
0.2
0
0.6
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
4
6910661c116549cd2a629869798aa5fd67dfe554
7,983
py
Python
ServerSide/views.py
Coullence/DRF_Percels-Couriers_API_V.0.0.2
906786115861b316f8ecf023c8af82f2dacff68e
[ "MIT" ]
null
null
null
ServerSide/views.py
Coullence/DRF_Percels-Couriers_API_V.0.0.2
906786115861b316f8ecf023c8af82f2dacff68e
[ "MIT" ]
null
null
null
ServerSide/views.py
Coullence/DRF_Percels-Couriers_API_V.0.0.2
906786115861b316f8ecf023c8af82f2dacff68e
[ "MIT" ]
null
null
null
from django.views.decorators.csrf import csrf_exempt from django.shortcuts import render from django.http import HttpResponse, JsonResponse from rest_framework.parsers import JSONParser from rest_framework.decorators import api_view from rest_framework.response import Response from rest_framework import status from rest_framework.views import APIView from rest_framework import generics from rest_framework import mixins from rest_framework.authentication import BaseAuthentication, SessionAuthentication, TokenAuthentication from rest_framework.permissions import IsAuthenticated from .serializers import StationsSerializer,CustomersSerializer, ItemsSerializer, PaymentsSerializer from .models import Stations,Customers, Items, Payments # Create your views here. class GenericAPIView(generics.GenericAPIView, mixins.ListModelMixin, mixins.CreateModelMixin, mixins.UpdateModelMixin, mixins.RetrieveModelMixin, mixins.DestroyModelMixin): serializer_class = StationsSerializer queryset = Stations.objects.all() lookup_field = 'id' # authentication_class = [SessionAuthentication, BaseAuthentication, TokenAuthentication] authentication_class = [TokenAuthentication] permission_classes = [IsAuthenticated] def get(self, request, id = None): if id: return self.retrieve(request) else: return self.list(request) def post(self, request): return self.create(request) def put(self, request, id=None): return self.update(request, id) def delete(self, request, id): return self.destroy(request, id) # Stations,Customers, Items, Payments class StationsAPIView(generics.GenericAPIView, mixins.ListModelMixin, mixins.CreateModelMixin, mixins.UpdateModelMixin, mixins.RetrieveModelMixin, mixins.DestroyModelMixin): serializer_class = StationsSerializer queryset = Stations.objects.all() lookup_field = 'id' # authentication_class = [SessionAuthentication, BaseAuthentication, TokenAuthentication] authentication_class = [TokenAuthentication] permission_classes = [IsAuthenticated] def get(self, request, id = None): if id: return self.retrieve(request) else: return self.list(request) def post(self, request): return self.create(request) def put(self, request, id=None): return self.update(request, id) def delete(self, request, id): return self.destroy(request, id) class CustomersAPIView(generics.GenericAPIView, mixins.ListModelMixin, mixins.CreateModelMixin, mixins.UpdateModelMixin, mixins.RetrieveModelMixin, mixins.DestroyModelMixin): serializer_class = CustomersSerializer queryset = Customers.objects.all() lookup_field = 'id' # authentication_class = [SessionAuthentication, BaseAuthentication, TokenAuthentication] authentication_class = [TokenAuthentication] permission_classes = [IsAuthenticated] def get(self, request, id = None): if id: return self.retrieve(request) else: return self.list(request) def post(self, request): return self.create(request) def put(self, request, id=None): return self.update(request, id) def delete(self, request, id): return self.destroy(request, id) class ItemsAPIView(generics.GenericAPIView, mixins.ListModelMixin, mixins.CreateModelMixin, mixins.UpdateModelMixin, mixins.RetrieveModelMixin, mixins.DestroyModelMixin): serializer_class = ItemsSerializer queryset = Items.objects.all() lookup_field = 'id' # authentication_class = [SessionAuthentication, BaseAuthentication, TokenAuthentication] authentication_class = [TokenAuthentication] permission_classes = [IsAuthenticated] def get(self, request, id = None): if id: return self.retrieve(request) else: return self.list(request) def post(self, request): return self.create(request) def put(self, request, id=None): return self.update(request, id) def delete(self, request, id): return self.destroy(request, id) class PaymentsAPIView(generics.GenericAPIView, mixins.ListModelMixin, mixins.CreateModelMixin, mixins.UpdateModelMixin, mixins.RetrieveModelMixin, mixins.DestroyModelMixin): serializer_class = PaymentsSerializer queryset = Payments.objects.all() lookup_field = 'id' # authentication_class = [SessionAuthentication, BaseAuthentication, TokenAuthentication] authentication_class = [TokenAuthentication] permission_classes = [IsAuthenticated] def get(self, request, id = None): if id: return self.retrieve(request) else: return self.list(request) def post(self, request): return self.create(request) def put(self, request, id=None): return self.update(request, id) def delete(self, request, id): return self.destroy(request, id) # # @api_view(['GET','POST']) # class ArticlesMain(APIView): # def get(self, request): # articles = Article.objects.all() # serializer = ArticleSerializer(articles, many=True) # return Response(serializer.data) # def post(self, request): # serializer = ArticleSerializer(data=request.data) # if serializer.is_valid(): # serializer.save() # return Response(serializer.data, status=status.HTTP_201_CREATED) # return Response(serializer.errors, status=status.HTTP_400_BAD_REQUEST) # # @api_view(['GET','PUT','DELETE']) # class ArticleDetail(APIView): # def get_object(self, id): # try: # return Article.objects.get(id=id) # except Article.DoesNotExist: # return HttpResponse(status=status.HTTP_404_NOT_FOUND) # def get(self, request, id): # article = self.get_object(id) # serializer = ArticleSerializer(article) # return Response(serializer.data) # def put(self, request, id): # article = self.get_object(id) # serializer = ArticleSerializer(article, data=request.data) # if serializer.is_valid(): # serializer.save() # return Response(serializer.data) # return Response(serializer.errors, status=status.HTTP_400_BAD_REQUEST) # def delete(self, request, id): # article = self.get_object(id) # article.delete() # return Response(status=status.HTTP_204_NO_CONTENT) # # Only for postman testing exempt csrf_toke # @api_view(['GET','POST']) # def articles_data(request): # if request.method =='GET': # articles = Article.objects.all() # serializer = ArticleSerializer(articles, many=True) # return Response(serializer.data) # elif request.method =='POST': # serializer = ArticleSerializer(data=request.data) # if serializer.is_valid(): # serializer.save() # return Response(serializer.data, status=status.HTTP_201_CREATED) # return Response(serializer.errors, status=status.HTTP_400_BAD_REQUEST) # @csrf_exempt # def article_detail(request, pk): # try: # article = Article.objects.get(pk=pk) # except Article.DoesNotExist: # return HttpResponse(status=404) # if request.method == 'GET': # serializer = ArticleSerializer(article) # return JsonResponse(serializer.data) # elif request.method == 'PUT': # data = JSONParser().parse(request) # serializer = ArticleSerializer(article, data=data) # if serializer.is_valid(): # serializer.save() # return JsonResponse(serializer.data) # return JsonResponse(serializer.errors, status=400) # elif request.method == 'DELETE': # article.delete() # return HttpResponse(status=204 )
34.708696
174
0.685457
799
7,983
6.760951
0.141427
0.046649
0.043317
0.03147
0.71455
0.696039
0.677897
0.677897
0.663458
0.663458
0
0.004815
0.219466
7,983
229
175
34.860262
0.862141
0.405361
0
0.747475
0
0
0.002141
0
0
0
0
0
0
1
0.20202
false
0
0.141414
0.151515
0.89899
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
4
6919df5ae74e3f2a3a738079824c713c915b518b
129
py
Python
neuroscout/tests/test_views.py
rbroc/neuroscout
da6b0097050c1a468baf03d3c71161adbf688d5b
[ "BSD-3-Clause" ]
5
2018-07-16T16:23:21.000Z
2021-08-20T15:43:23.000Z
neuroscout/tests/test_views.py
rbroc/neuroscout
da6b0097050c1a468baf03d3c71161adbf688d5b
[ "BSD-3-Clause" ]
719
2018-07-09T17:19:57.000Z
2022-03-30T15:30:59.000Z
neuroscout/tests/test_views.py
rbroc/neuroscout
da6b0097050c1a468baf03d3c71161adbf688d5b
[ "BSD-3-Clause" ]
9
2019-07-10T17:45:31.000Z
2021-08-30T21:51:21.000Z
''' Test basic views ''' def test_swagger(auth_client): rv = auth_client.get('/swagger/') assert rv.status_code == 200
14.333333
37
0.658915
18
129
4.5
0.722222
0.246914
0
0
0
0
0
0
0
0
0
0.028571
0.186047
129
8
38
16.125
0.742857
0.124031
0
0
0
0
0.085714
0
0
0
0
0
0.333333
1
0.333333
false
0
0
0
0.333333
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
4
6932d6e6064c776d9bbde61b74aa94d0c2e2e7f3
36,959
py
Python
boto3_type_annotations_with_docs/boto3_type_annotations/servicediscovery/paginator.py
cowboygneox/boto3_type_annotations
450dce1de4e066b939de7eac2ec560ed1a7ddaa2
[ "MIT" ]
119
2018-12-01T18:20:57.000Z
2022-02-02T10:31:29.000Z
boto3_type_annotations_with_docs/boto3_type_annotations/servicediscovery/paginator.py
cowboygneox/boto3_type_annotations
450dce1de4e066b939de7eac2ec560ed1a7ddaa2
[ "MIT" ]
15
2018-11-16T00:16:44.000Z
2021-11-13T03:44:18.000Z
boto3_type_annotations_with_docs/boto3_type_annotations/servicediscovery/paginator.py
cowboygneox/boto3_type_annotations
450dce1de4e066b939de7eac2ec560ed1a7ddaa2
[ "MIT" ]
11
2019-05-06T05:26:51.000Z
2021-09-28T15:27:59.000Z
from typing import Dict from typing import List from botocore.paginate import Paginator class ListInstances(Paginator): def paginate(self, ServiceId: str, PaginationConfig: Dict = None) -> Dict: """ Creates an iterator that will paginate through responses from :py:meth:`ServiceDiscovery.Client.list_instances`. See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/ListInstances>`_ **Request Syntax** :: response_iterator = paginator.paginate( ServiceId='string', PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } ) **Response Syntax** :: { 'Instances': [ { 'Id': 'string', 'Attributes': { 'string': 'string' } }, ], } **Response Structure** - *(dict) --* - **Instances** *(list) --* Summary information about the instances that are associated with the specified service. - *(dict) --* A complex type that contains information about the instances that you registered by using a specified service. - **Id** *(string) --* The ID for an instance that you created by using a specified service. - **Attributes** *(dict) --* A string map that contains the following information: * The attributes that are associate with the instance. * For each attribute, the applicable value. Supported attribute keys include the following: * ``AWS_ALIAS_DNS_NAME`` : For an alias record that routes traffic to an Elastic Load Balancing load balancer, the DNS name that is associated with the load balancer. * ``AWS_INSTANCE_CNAME`` : For a CNAME record, the domain name that Route 53 returns in response to DNS queries, for example, ``example.com`` . * ``AWS_INSTANCE_IPV4`` : For an A record, the IPv4 address that Route 53 returns in response to DNS queries, for example, ``192.0.2.44`` . * ``AWS_INSTANCE_IPV6`` : For an AAAA record, the IPv6 address that Route 53 returns in response to DNS queries, for example, ``2001:0db8:85a3:0000:0000:abcd:0001:2345`` . * ``AWS_INSTANCE_PORT`` : For an SRV record, the value that Route 53 returns for the port. In addition, if the service includes ``HealthCheckConfig`` , the port on the endpoint that Route 53 sends requests to. - *(string) --* - *(string) --* :type ServiceId: string :param ServiceId: **[REQUIRED]** The ID of the service that you want to list instances for. :type PaginationConfig: dict :param PaginationConfig: A dictionary that provides parameters to control pagination. - **MaxItems** *(integer) --* The total number of items to return. If the total number of items available is more than the value specified in max-items then a ``NextToken`` will be provided in the output that you can use to resume pagination. - **PageSize** *(integer) --* The size of each page. - **StartingToken** *(string) --* A token to specify where to start paginating. This is the ``NextToken`` from a previous response. :rtype: dict :returns: """ pass class ListNamespaces(Paginator): def paginate(self, Filters: List = None, PaginationConfig: Dict = None) -> Dict: """ Creates an iterator that will paginate through responses from :py:meth:`ServiceDiscovery.Client.list_namespaces`. See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/ListNamespaces>`_ **Request Syntax** :: response_iterator = paginator.paginate( Filters=[ { 'Name': 'TYPE', 'Values': [ 'string', ], 'Condition': 'EQ'|'IN'|'BETWEEN' }, ], PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } ) **Response Syntax** :: { 'Namespaces': [ { 'Id': 'string', 'Arn': 'string', 'Name': 'string', 'Type': 'DNS_PUBLIC'|'DNS_PRIVATE'|'HTTP', 'Description': 'string', 'ServiceCount': 123, 'Properties': { 'DnsProperties': { 'HostedZoneId': 'string' }, 'HttpProperties': { 'HttpName': 'string' } }, 'CreateDate': datetime(2015, 1, 1) }, ], } **Response Structure** - *(dict) --* - **Namespaces** *(list) --* An array that contains one ``NamespaceSummary`` object for each namespace that matches the specified filter criteria. - *(dict) --* A complex type that contains information about a namespace. - **Id** *(string) --* The ID of the namespace. - **Arn** *(string) --* The Amazon Resource Name (ARN) that AWS Cloud Map assigns to the namespace when you create it. - **Name** *(string) --* The name of the namespace. When you create a namespace, AWS Cloud Map automatically creates a Route 53 hosted zone that has the same name as the namespace. - **Type** *(string) --* The type of the namespace, either public or private. - **Description** *(string) --* A description for the namespace. - **ServiceCount** *(integer) --* The number of services that were created using the namespace. - **Properties** *(dict) --* A complex type that contains information that is specific to the namespace type. - **DnsProperties** *(dict) --* A complex type that contains the ID for the Route 53 hosted zone that AWS Cloud Map creates when you create a namespace. - **HostedZoneId** *(string) --* The ID for the Route 53 hosted zone that AWS Cloud Map creates when you create a namespace. - **HttpProperties** *(dict) --* A complex type that contains the name of an HTTP namespace. - **HttpName** *(string) --* The name of an HTTP namespace. - **CreateDate** *(datetime) --* The date and time that the namespace was created. :type Filters: list :param Filters: A complex type that contains specifications for the namespaces that you want to list. If you specify more than one filter, a namespace must match all filters to be returned by ``ListNamespaces`` . - *(dict) --* A complex type that identifies the namespaces that you want to list. You can choose to list public or private namespaces. - **Name** *(string) --* **[REQUIRED]** Specify ``TYPE`` . - **Values** *(list) --* **[REQUIRED]** If you specify ``EQ`` for ``Condition`` , specify either ``DNS_PUBLIC`` or ``DNS_PRIVATE`` . If you specify ``IN`` for ``Condition`` , you can specify ``DNS_PUBLIC`` , ``DNS_PRIVATE`` , or both. - *(string) --* - **Condition** *(string) --* The operator that you want to use to determine whether ``ListNamespaces`` returns a namespace. Valid values for ``condition`` include: * ``EQ`` : When you specify ``EQ`` for the condition, you can choose to list only public namespaces or private namespaces, but not both. ``EQ`` is the default condition and can be omitted. * ``IN`` : When you specify ``IN`` for the condition, you can choose to list public namespaces, private namespaces, or both. * ``BETWEEN`` : Not applicable :type PaginationConfig: dict :param PaginationConfig: A dictionary that provides parameters to control pagination. - **MaxItems** *(integer) --* The total number of items to return. If the total number of items available is more than the value specified in max-items then a ``NextToken`` will be provided in the output that you can use to resume pagination. - **PageSize** *(integer) --* The size of each page. - **StartingToken** *(string) --* A token to specify where to start paginating. This is the ``NextToken`` from a previous response. :rtype: dict :returns: """ pass class ListOperations(Paginator): def paginate(self, Filters: List = None, PaginationConfig: Dict = None) -> Dict: """ Creates an iterator that will paginate through responses from :py:meth:`ServiceDiscovery.Client.list_operations`. See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/ListOperations>`_ **Request Syntax** :: response_iterator = paginator.paginate( Filters=[ { 'Name': 'NAMESPACE_ID'|'SERVICE_ID'|'STATUS'|'TYPE'|'UPDATE_DATE', 'Values': [ 'string', ], 'Condition': 'EQ'|'IN'|'BETWEEN' }, ], PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } ) **Response Syntax** :: { 'Operations': [ { 'Id': 'string', 'Status': 'SUBMITTED'|'PENDING'|'SUCCESS'|'FAIL' }, ], } **Response Structure** - *(dict) --* - **Operations** *(list) --* Summary information about the operations that match the specified criteria. - *(dict) --* A complex type that contains information about an operation that matches the criteria that you specified in a ListOperations request. - **Id** *(string) --* The ID for an operation. - **Status** *(string) --* The status of the operation. Values include the following: * **SUBMITTED** : This is the initial state immediately after you submit a request. * **PENDING** : AWS Cloud Map is performing the operation. * **SUCCESS** : The operation succeeded. * **FAIL** : The operation failed. For the failure reason, see ``ErrorMessage`` . :type Filters: list :param Filters: A complex type that contains specifications for the operations that you want to list, for example, operations that you started between a specified start date and end date. If you specify more than one filter, an operation must match all filters to be returned by ``ListOperations`` . - *(dict) --* A complex type that lets you select the operations that you want to list. - **Name** *(string) --* **[REQUIRED]** Specify the operations that you want to get: * **NAMESPACE_ID** : Gets operations related to specified namespaces. * **SERVICE_ID** : Gets operations related to specified services. * **STATUS** : Gets operations based on the status of the operations: ``SUBMITTED`` , ``PENDING`` , ``SUCCEED`` , or ``FAIL`` . * **TYPE** : Gets specified types of operation. * **UPDATE_DATE** : Gets operations that changed status during a specified date/time range. - **Values** *(list) --* **[REQUIRED]** Specify values that are applicable to the value that you specify for ``Name`` : * **NAMESPACE_ID** : Specify one namespace ID. * **SERVICE_ID** : Specify one service ID. * **STATUS** : Specify one or more statuses: ``SUBMITTED`` , ``PENDING`` , ``SUCCEED`` , or ``FAIL`` . * **TYPE** : Specify one or more of the following types: ``CREATE_NAMESPACE`` , ``DELETE_NAMESPACE`` , ``UPDATE_SERVICE`` , ``REGISTER_INSTANCE`` , or ``DEREGISTER_INSTANCE`` . * **UPDATE_DATE** : Specify a start date and an end date in Unix date/time format and Coordinated Universal Time (UTC). The start date must be the first value. - *(string) --* - **Condition** *(string) --* The operator that you want to use to determine whether an operation matches the specified value. Valid values for condition include: * ``EQ`` : When you specify ``EQ`` for the condition, you can specify only one value. ``EQ`` is supported for ``NAMESPACE_ID`` , ``SERVICE_ID`` , ``STATUS`` , and ``TYPE`` . ``EQ`` is the default condition and can be omitted. * ``IN`` : When you specify ``IN`` for the condition, you can specify a list of one or more values. ``IN`` is supported for ``STATUS`` and ``TYPE`` . An operation must match one of the specified values to be returned in the response. * ``BETWEEN`` : Specify a start date and an end date in Unix date/time format and Coordinated Universal Time (UTC). The start date must be the first value. ``BETWEEN`` is supported for ``UPDATE_DATE`` . :type PaginationConfig: dict :param PaginationConfig: A dictionary that provides parameters to control pagination. - **MaxItems** *(integer) --* The total number of items to return. If the total number of items available is more than the value specified in max-items then a ``NextToken`` will be provided in the output that you can use to resume pagination. - **PageSize** *(integer) --* The size of each page. - **StartingToken** *(string) --* A token to specify where to start paginating. This is the ``NextToken`` from a previous response. :rtype: dict :returns: """ pass class ListServices(Paginator): def paginate(self, Filters: List = None, PaginationConfig: Dict = None) -> Dict: """ Creates an iterator that will paginate through responses from :py:meth:`ServiceDiscovery.Client.list_services`. See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/ListServices>`_ **Request Syntax** :: response_iterator = paginator.paginate( Filters=[ { 'Name': 'NAMESPACE_ID', 'Values': [ 'string', ], 'Condition': 'EQ'|'IN'|'BETWEEN' }, ], PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } ) **Response Syntax** :: { 'Services': [ { 'Id': 'string', 'Arn': 'string', 'Name': 'string', 'Description': 'string', 'InstanceCount': 123, 'DnsConfig': { 'NamespaceId': 'string', 'RoutingPolicy': 'MULTIVALUE'|'WEIGHTED', 'DnsRecords': [ { 'Type': 'SRV'|'A'|'AAAA'|'CNAME', 'TTL': 123 }, ] }, 'HealthCheckConfig': { 'Type': 'HTTP'|'HTTPS'|'TCP', 'ResourcePath': 'string', 'FailureThreshold': 123 }, 'HealthCheckCustomConfig': { 'FailureThreshold': 123 }, 'CreateDate': datetime(2015, 1, 1) }, ], } **Response Structure** - *(dict) --* - **Services** *(list) --* An array that contains one ``ServiceSummary`` object for each service that matches the specified filter criteria. - *(dict) --* A complex type that contains information about a specified service. - **Id** *(string) --* The ID that AWS Cloud Map assigned to the service when you created it. - **Arn** *(string) --* The Amazon Resource Name (ARN) that AWS Cloud Map assigns to the service when you create it. - **Name** *(string) --* The name of the service. - **Description** *(string) --* The description that you specify when you create the service. - **InstanceCount** *(integer) --* The number of instances that are currently associated with the service. Instances that were previously associated with the service but that have been deleted are not included in the count. - **DnsConfig** *(dict) --* A complex type that contains information about the Amazon Route 53 DNS records that you want AWS Cloud Map to create when you register an instance. - **NamespaceId** *(string) --* The ID of the namespace to use for DNS configuration. - **RoutingPolicy** *(string) --* The routing policy that you want to apply to all Route 53 DNS records that AWS Cloud Map creates when you register an instance and specify this service. .. note:: If you want to use this service to register instances that create alias records, specify ``WEIGHTED`` for the routing policy. You can specify the following values: **MULTIVALUE** If you define a health check for the service and the health check is healthy, Route 53 returns the applicable value for up to eight instances. For example, suppose the service includes configurations for one A record and a health check, and you use the service to register 10 instances. Route 53 responds to DNS queries with IP addresses for up to eight healthy instances. If fewer than eight instances are healthy, Route 53 responds to every DNS query with the IP addresses for all of the healthy instances. If you don't define a health check for the service, Route 53 assumes that all instances are healthy and returns the values for up to eight instances. For more information about the multivalue routing policy, see `Multivalue Answer Routing <http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/routing-policy.html#routing-policy-multivalue>`__ in the *Route 53 Developer Guide* . **WEIGHTED** Route 53 returns the applicable value from one randomly selected instance from among the instances that you registered using the same service. Currently, all records have the same weight, so you can't route more or less traffic to any instances. For example, suppose the service includes configurations for one A record and a health check, and you use the service to register 10 instances. Route 53 responds to DNS queries with the IP address for one randomly selected instance from among the healthy instances. If no instances are healthy, Route 53 responds to DNS queries as if all of the instances were healthy. If you don't define a health check for the service, Route 53 assumes that all instances are healthy and returns the applicable value for one randomly selected instance. For more information about the weighted routing policy, see `Weighted Routing <http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/routing-policy.html#routing-policy-weighted>`__ in the *Route 53 Developer Guide* . - **DnsRecords** *(list) --* An array that contains one ``DnsRecord`` object for each Route 53 DNS record that you want AWS Cloud Map to create when you register an instance. - *(dict) --* A complex type that contains information about the Route 53 DNS records that you want AWS Cloud Map to create when you register an instance. - **Type** *(string) --* The type of the resource, which indicates the type of value that Route 53 returns in response to DNS queries. Note the following: * **A, AAAA, and SRV records:** You can specify settings for a maximum of one A, one AAAA, and one SRV record. You can specify them in any combination. * **CNAME records:** If you specify ``CNAME`` for ``Type`` , you can't define any other records. This is a limitation of DNS: you can't create a CNAME record and any other type of record that has the same name as a CNAME record. * **Alias records:** If you want AWS Cloud Map to create a Route 53 alias record when you register an instance, specify ``A`` or ``AAAA`` for ``Type`` . * **All records:** You specify settings other than ``TTL`` and ``Type`` when you register an instance. The following values are supported: **A** Route 53 returns the IP address of the resource in IPv4 format, such as 192.0.2.44. **AAAA** Route 53 returns the IP address of the resource in IPv6 format, such as 2001:0db8:85a3:0000:0000:abcd:0001:2345. **CNAME** Route 53 returns the domain name of the resource, such as www.example.com. Note the following: * You specify the domain name that you want to route traffic to when you register an instance. For more information, see RegisterInstanceRequest$Attributes . * You must specify ``WEIGHTED`` for the value of ``RoutingPolicy`` . * You can't specify both ``CNAME`` for ``Type`` and settings for ``HealthCheckConfig`` . If you do, the request will fail with an ``InvalidInput`` error. **SRV** Route 53 returns the value for an SRV record. The value for an SRV record uses the following values: ``priority weight port service-hostname`` Note the following about the values: * The values of ``priority`` and ``weight`` are both set to ``1`` and can't be changed. * The value of ``port`` comes from the value that you specify for the ``AWS_INSTANCE_PORT`` attribute when you submit a RegisterInstance request. * The value of ``service-hostname`` is a concatenation of the following values: * The value that you specify for ``InstanceId`` when you register an instance. * The name of the service. * The name of the namespace. For example, if the value of ``InstanceId`` is ``test`` , the name of the service is ``backend`` , and the name of the namespace is ``example.com`` , the value of ``service-hostname`` is: ``test.backend.example.com`` If you specify settings for an SRV record and if you specify values for ``AWS_INSTANCE_IPV4`` , ``AWS_INSTANCE_IPV6`` , or both in the ``RegisterInstance`` request, AWS Cloud Map automatically creates ``A`` and/or ``AAAA`` records that have the same name as the value of ``service-hostname`` in the SRV record. You can ignore these records. - **TTL** *(integer) --* The amount of time, in seconds, that you want DNS resolvers to cache the settings for this record. .. note:: Alias records don't include a TTL because Route 53 uses the TTL for the AWS resource that an alias record routes traffic to. If you include the ``AWS_ALIAS_DNS_NAME`` attribute when you submit a RegisterInstance request, the ``TTL`` value is ignored. Always specify a TTL for the service; you can use a service to register instances that create either alias or non-alias records. - **HealthCheckConfig** *(dict) --* *Public DNS namespaces only.* A complex type that contains settings for an optional health check. If you specify settings for a health check, AWS Cloud Map associates the health check with the records that you specify in ``DnsConfig`` . .. warning:: If you specify a health check configuration, you can specify either ``HealthCheckCustomConfig`` or ``HealthCheckConfig`` but not both. Health checks are basic Route 53 health checks that monitor an AWS endpoint. For information about pricing for health checks, see `Amazon Route 53 Pricing <http://aws.amazon.com/route53/pricing/>`__ . Note the following about configuring health checks. **A and AAAA records** If ``DnsConfig`` includes configurations for both A and AAAA records, AWS Cloud Map creates a health check that uses the IPv4 address to check the health of the resource. If the endpoint that is specified by the IPv4 address is unhealthy, Route 53 considers both the A and AAAA records to be unhealthy. **CNAME records** You can't specify settings for ``HealthCheckConfig`` when the ``DNSConfig`` includes ``CNAME`` for the value of ``Type`` . If you do, the ``CreateService`` request will fail with an ``InvalidInput`` error. **Request interval** A Route 53 health checker in each health-checking region sends a health check request to an endpoint every 30 seconds. On average, your endpoint receives a health check request about every two seconds. However, health checkers don't coordinate with one another, so you'll sometimes see several requests per second followed by a few seconds with no health checks at all. **Health checking regions** Health checkers perform checks from all Route 53 health-checking regions. For a list of the current regions, see `Regions <http://docs.aws.amazon.com/Route53/latest/APIReference/API_HealthCheckConfig.html#Route53-Type-HealthCheckConfig-Regions>`__ . **Alias records** When you register an instance, if you include the ``AWS_ALIAS_DNS_NAME`` attribute, AWS Cloud Map creates a Route 53 alias record. Note the following: * Route 53 automatically sets ``EvaluateTargetHealth`` to true for alias records. When ``EvaluateTargetHealth`` is true, the alias record inherits the health of the referenced AWS resource. such as an ELB load balancer. For more information, see `EvaluateTargetHealth <http://docs.aws.amazon.com/Route53/latest/APIReference/API_AliasTarget.html#Route53-Type-AliasTarget-EvaluateTargetHealth>`__ . * If you include ``HealthCheckConfig`` and then use the service to register an instance that creates an alias record, Route 53 doesn't create the health check. **Charges for health checks** Health checks are basic Route 53 health checks that monitor an AWS endpoint. For information about pricing for health checks, see `Amazon Route 53 Pricing <http://aws.amazon.com/route53/pricing/>`__ . - **Type** *(string) --* The type of health check that you want to create, which indicates how Route 53 determines whether an endpoint is healthy. .. warning:: You can't change the value of ``Type`` after you create a health check. You can create the following types of health checks: * **HTTP** : Route 53 tries to establish a TCP connection. If successful, Route 53 submits an HTTP request and waits for an HTTP status code of 200 or greater and less than 400. * **HTTPS** : Route 53 tries to establish a TCP connection. If successful, Route 53 submits an HTTPS request and waits for an HTTP status code of 200 or greater and less than 400. .. warning:: If you specify HTTPS for the value of ``Type`` , the endpoint must support TLS v1.0 or later. * **TCP** : Route 53 tries to establish a TCP connection. If you specify ``TCP`` for ``Type`` , don't specify a value for ``ResourcePath`` . For more information, see `How Route 53 Determines Whether an Endpoint Is Healthy <http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-determining-health-of-endpoints.html>`__ in the *Route 53 Developer Guide* . - **ResourcePath** *(string) --* The path that you want Route 53 to request when performing health checks. The path can be any value for which your endpoint will return an HTTP status code of 2xx or 3xx when the endpoint is healthy, such as the file ``/docs/route53-health-check.html`` . Route 53 automatically adds the DNS name for the service. If you don't specify a value for ``ResourcePath`` , the default value is ``/`` . If you specify ``TCP`` for ``Type`` , you must *not* specify a value for ``ResourcePath`` . - **FailureThreshold** *(integer) --* The number of consecutive health checks that an endpoint must pass or fail for Route 53 to change the current status of the endpoint from unhealthy to healthy or vice versa. For more information, see `How Route 53 Determines Whether an Endpoint Is Healthy <http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-determining-health-of-endpoints.html>`__ in the *Route 53 Developer Guide* . - **HealthCheckCustomConfig** *(dict) --* A complex type that contains information about an optional custom health check. A custom health check, which requires that you use a third-party health checker to evaluate the health of your resources, is useful in the following circumstances: * You can't use a health check that is defined by ``HealthCheckConfig`` because the resource isn't available over the internet. For example, you can use a custom health check when the instance is in an Amazon VPC. (To check the health of resources in a VPC, the health checker must also be in the VPC.) * You want to use a third-party health checker regardless of where your resources are. .. warning:: If you specify a health check configuration, you can specify either ``HealthCheckCustomConfig`` or ``HealthCheckConfig`` but not both. To change the status of a custom health check, submit an ``UpdateInstanceCustomHealthStatus`` request. Cloud Map doesn't monitor the status of the resource, it just keeps a record of the status specified in the most recent ``UpdateInstanceCustomHealthStatus`` request. Here's how custom health checks work: * You create a service and specify a value for ``FailureThreshold`` . The failure threshold indicates the number of 30-second intervals you want AWS Cloud Map to wait between the time that your application sends an UpdateInstanceCustomHealthStatus request and the time that AWS Cloud Map stops routing internet traffic to the corresponding resource. * You register an instance. * You configure a third-party health checker to monitor the resource that is associated with the new instance. .. note:: AWS Cloud Map doesn't check the health of the resource directly. * The third-party health-checker determines that the resource is unhealthy and notifies your application. * Your application submits an ``UpdateInstanceCustomHealthStatus`` request. * AWS Cloud Map waits for (``FailureThreshold`` x 30) seconds. * If another ``UpdateInstanceCustomHealthStatus`` request doesn't arrive during that time to change the status back to healthy, AWS Cloud Map stops routing traffic to the resource. Note the following about configuring custom health checks. - **FailureThreshold** *(integer) --* The number of 30-second intervals that you want Cloud Map to wait after receiving an ``UpdateInstanceCustomHealthStatus`` request before it changes the health status of a service instance. For example, suppose you specify a value of ``2`` for ``FailureTheshold`` , and then your application sends an ``UpdateInstanceCustomHealthStatus`` request. Cloud Map waits for approximately 60 seconds (2 x 30) before changing the status of the service instance based on that request. Sending a second or subsequent ``UpdateInstanceCustomHealthStatus`` request with the same value before ``FailureThreshold x 30`` seconds has passed doesn't accelerate the change. Cloud Map still waits ``FailureThreshold x 30`` seconds after the first request to make the change. - **CreateDate** *(datetime) --* The date and time that the service was created. :type Filters: list :param Filters: A complex type that contains specifications for the namespaces that you want to list services for. If you specify more than one filter, an operation must match all filters to be returned by ``ListServices`` . - *(dict) --* A complex type that lets you specify the namespaces that you want to list services for. - **Name** *(string) --* **[REQUIRED]** Specify ``NAMESPACE_ID`` . - **Values** *(list) --* **[REQUIRED]** The values that are applicable to the value that you specify for ``Condition`` to filter the list of services. - *(string) --* - **Condition** *(string) --* The operator that you want to use to determine whether a service is returned by ``ListServices`` . Valid values for ``Condition`` include the following: * ``EQ`` : When you specify ``EQ`` , specify one namespace ID for ``Values`` . ``EQ`` is the default condition and can be omitted. * ``IN`` : When you specify ``IN`` , specify a list of the IDs for the namespaces that you want ``ListServices`` to return a list of services for. * ``BETWEEN`` : Not applicable. :type PaginationConfig: dict :param PaginationConfig: A dictionary that provides parameters to control pagination. - **MaxItems** *(integer) --* The total number of items to return. If the total number of items available is more than the value specified in max-items then a ``NextToken`` will be provided in the output that you can use to resume pagination. - **PageSize** *(integer) --* The size of each page. - **StartingToken** *(string) --* A token to specify where to start paginating. This is the ``NextToken`` from a previous response. :rtype: dict :returns: """ pass
72.897436
493
0.586407
4,252
36,959
5.078786
0.116181
0.016856
0.010697
0.012596
0.544941
0.485761
0.41593
0.383376
0.363232
0.332531
0
0.013009
0.330285
36,959
506
494
73.041502
0.859446
0.878027
0
0.466667
0
0
0
0
0
0
0
0
0
1
0.266667
false
0.266667
0.2
0
0.733333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
4
6949b87df361452d314a98feb6d2b353fc29659d
69
py
Python
django_bootstrap_markdown/__init__.py
aj-may/django-bootstrap-markdown
84364a0d7723427b84e5cf9f7e309f42c9a6ca4c
[ "MIT" ]
5
2015-03-30T14:24:52.000Z
2017-03-15T02:31:00.000Z
django_bootstrap_markdown/__init__.py
aj-may/django-bootstrap-markdown
84364a0d7723427b84e5cf9f7e309f42c9a6ca4c
[ "MIT" ]
null
null
null
django_bootstrap_markdown/__init__.py
aj-may/django-bootstrap-markdown
84364a0d7723427b84e5cf9f7e309f42c9a6ca4c
[ "MIT" ]
5
2015-04-21T14:57:08.000Z
2020-07-11T18:40:07.000Z
default_app_config = 'django_bootstrap_markdown.apps.MarkdownConfig'
34.5
68
0.884058
8
69
7.125
1
0
0
0
0
0
0
0
0
0
0
0
0.043478
69
1
69
69
0.863636
0
0
0
0
0
0.652174
0.652174
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
6957c55140bb9fc65ad0726b1b62a5b3aaa58943
36
py
Python
tests/test_controls3.py
whitegreyblack/PyWin
78f3637b4c03c11d7f6ef15b20a1acf699d4be24
[ "MIT" ]
null
null
null
tests/test_controls3.py
whitegreyblack/PyWin
78f3637b4c03c11d7f6ef15b20a1acf699d4be24
[ "MIT" ]
null
null
null
tests/test_controls3.py
whitegreyblack/PyWin
78f3637b4c03c11d7f6ef15b20a1acf699d4be24
[ "MIT" ]
null
null
null
"""Tests control3 ui components"""
12
34
0.694444
4
36
6.25
1
0
0
0
0
0
0
0
0
0
0
0.032258
0.138889
36
2
35
18
0.774194
0.777778
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
15c1f23546adba638ee55f918117b79a84e90f77
107
py
Python
examples/demo_LSI_sim.py
qiancao/BoneBox
0d10dac7c93f16f0643bebc62c63be2f4bd099f6
[ "BSD-3-Clause" ]
1
2022-03-11T20:49:19.000Z
2022-03-11T20:49:19.000Z
examples/demo_LSI_sim.py
qiancao/BoneBox
0d10dac7c93f16f0643bebc62c63be2f4bd099f6
[ "BSD-3-Clause" ]
null
null
null
examples/demo_LSI_sim.py
qiancao/BoneBox
0d10dac7c93f16f0643bebc62c63be2f4bd099f6
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Mar 23 15:43:25 2022 @author: qcao """
11.888889
35
0.588785
18
107
3.5
1
0
0
0
0
0
0
0
0
0
0
0.16092
0.186916
107
8
36
13.375
0.563218
0.878505
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
15c61ed2f25f907f8ee53b00c64a56b6dbbbdcc2
153
py
Python
simple program/area of triangle.py
PraghadeshManivannan/Python
7a42269c5f8cfd9178f1ed39ffc2afea1dd6c5aa
[ "MIT" ]
null
null
null
simple program/area of triangle.py
PraghadeshManivannan/Python
7a42269c5f8cfd9178f1ed39ffc2afea1dd6c5aa
[ "MIT" ]
null
null
null
simple program/area of triangle.py
PraghadeshManivannan/Python
7a42269c5f8cfd9178f1ed39ffc2afea1dd6c5aa
[ "MIT" ]
null
null
null
b = int(input("Enter the base of triangle:")) h = int(input("Enter the height of triangle:")) print("The area of the triangle is",round(0.5*b*h,2))
30.6
54
0.660131
29
153
3.482759
0.586207
0.158416
0.257426
0.316832
0
0
0
0
0
0
0
0.023438
0.163399
153
4
55
38.25
0.765625
0
0
0
0
0
0.560811
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
1
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
15cf6689b052642837a90a34612629feaf752a83
179
py
Python
mass/tasks.py
lsapan/channels-mass-broadcast
4f60e059ea9e3a861cc47250347900a4d0b8bd7f
[ "MIT" ]
null
null
null
mass/tasks.py
lsapan/channels-mass-broadcast
4f60e059ea9e3a861cc47250347900a4d0b8bd7f
[ "MIT" ]
null
null
null
mass/tasks.py
lsapan/channels-mass-broadcast
4f60e059ea9e3a861cc47250347900a4d0b8bd7f
[ "MIT" ]
null
null
null
import json import uuid from celery import shared_task from channels import Group @shared_task def broadcast(): Group('test').send({"text": json.dumps(str(uuid.uuid4()))})
16.272727
63
0.731844
26
179
4.961538
0.653846
0.155039
0
0
0
0
0
0
0
0
0
0.006452
0.134078
179
10
64
17.9
0.825806
0
0
0
0
0
0.044693
0
0
0
0
0
0
1
0.142857
true
0
0.571429
0
0.714286
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
4
c604a6675223e25f1c41b047b5f78a6d64de6779
154
py
Python
library_of_pantheon_backend/items/admin_forms.py
nathanhfoster/library-of-pantheon
b90acf1ecc575004d0f741762cded78301608947
[ "MIT" ]
1
2021-11-23T03:04:33.000Z
2021-11-23T03:04:33.000Z
library_of_pantheon_backend/items/admin_forms.py
nathanhfoster/library-of-pantheon
b90acf1ecc575004d0f741762cded78301608947
[ "MIT" ]
null
null
null
library_of_pantheon_backend/items/admin_forms.py
nathanhfoster/library-of-pantheon
b90acf1ecc575004d0f741762cded78301608947
[ "MIT" ]
null
null
null
from django import forms from .models import Item class ItemAdminForm(forms.ModelForm): class Meta: model = Item fields = '__all__'
17.111111
37
0.675325
18
154
5.555556
0.722222
0
0
0
0
0
0
0
0
0
0
0
0.25974
154
8
38
19.25
0.877193
0
0
0
0
0
0.045455
0
0
0
0
0
0
1
0
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
0
0
0
1
0
1
0
0
4
c64c8a0ff046233a9c51c09556143cff56315481
12,244
py
Python
tasks.py
ardkastrati/EEGEyeNet-DataPreparation
3fd2f99af1d6fa62fc7fd7aa1577b411d5e8cb2d
[ "MIT" ]
null
null
null
tasks.py
ardkastrati/EEGEyeNet-DataPreparation
3fd2f99af1d6fa62fc7fd7aa1577b411d5e8cb2d
[ "MIT" ]
null
null
null
tasks.py
ardkastrati/EEGEyeNet-DataPreparation
3fd2f99af1d6fa62fc7fd7aa1577b411d5e8cb2d
[ "MIT" ]
null
null
null
from data_preparation.preparator import Preparator from preparation_config import preparation_config as config import numpy as np def left_right_task_data_preparation(feature_extraction = False, verbose=False): # We use the antisaccade dataset to extract the data for left and right benchmark task. saccade = config['saccade_trigger'] fixation = config['fixation_trigger'] cue = config['antisaccade']['cue_trigger'] if not feature_extraction: preparator = Preparator(load_directory=config['LOAD_ANTISACCADE_PATH'], save_directory=config['SAVE_PATH'], load_file_pattern=config['ANTISACCADE_FILE_PATTERN'], save_file_name=config['output_name'], verbose=verbose) preparator.extract_data_at_events(extract_pattern=[cue, saccade, fixation], name_start_time='Beginning of cue', start_time=lambda events: events['latency'], name_length_time='Size blocks of 500', length_time=500, start_channel=1, end_channel=129, padding=False) else: preparator = Preparator(load_directory=config['LOAD_ANTISACCADE_PATH'], save_directory=config['SAVE_PATH'], load_file_pattern=config['ANTISACCADE_HILBERT_FILE_PATTERN'], save_file_name=config['output_name'], verbose=verbose) preparator.extract_data_at_events(extract_pattern=[cue, saccade, fixation], name_start_time='At saccade on-set', start_time=lambda events: events['latency'].shift(-1), name_length_time='Fixed blocks of 1', length_time=1, start_channel=1, end_channel=258, padding=False) preparator.blocks(on_blocks=['20'], off_blocks=['30']) # take only blocks of pro-saccade preparator.addFilter(name='Keep right direction', f=lambda events: (events['type'].isin(['10']) & events['type'].shift(-1).isin(saccade) & (events['end_x'].shift(-1) < 400)) | (events['type'].isin(['11']) & events['type'].shift(-1).isin(saccade) & (events['end_x'].shift(-1) > 400))) preparator.addFilter(name='Keep saccade if it comes after a reasonable reaction time', f=lambda events: events['latency'].shift(-1) - events['latency'] > 50) preparator.addFilter(name='Keep only the ones with big enough amplitude', f=lambda events: events['amplitude'].shift(-1) > 2) preparator.addLabel(name='Giving label 0 for left and 1 for right', f=lambda events: events['type'].apply(lambda x: 0 if x == '10' else 1)) preparator.run() def direction_task_data_preparation(feature_extraction=False, verbose=False): # We use the 'dots' dataset for direction task fixation = config['fixation_trigger'] saccade = config['saccade_trigger'] cue = config['dots']['cue_trigger'] end_cue = config['dots']['end_cue_trigger'] if not feature_extraction: preparator = Preparator(load_directory=config['LOAD_DOTS_PATH'], save_directory=config['SAVE_PATH'], load_file_pattern=config['DOTS_FILE_PATTERN'], save_file_name=config['output_name'], verbose=verbose) # no padding, but cut 500 somewhere in between # we are interested only on the 5-triggers (fixation 41 cue saccade fixation) and we cut 500 data points in the middle preparator.extract_data_at_events(extract_pattern=[fixation, end_cue, cue, saccade, fixation], name_start_time='250 timepoints before the saccade', start_time=lambda events: (events['latency'].shift(-3) - 250), name_length_time='Fixed blocks of 500', length_time=500, start_channel=1, end_channel=129, padding=False) else: preparator = Preparator(load_directory=config['LOAD_DOTS_PATH'], save_directory=config['SAVE_PATH'], load_file_pattern=config['DOTS_HILBERT_FILE_PATTERN'], save_file_name=config['output_name'], verbose=verbose) # we are interested only on the 5-triggers (fixation 41 cue saccade fixation) and we cut 1 point at saccade on-set preparator.extract_data_at_events(extract_pattern=[fixation, end_cue, cue, saccade, fixation], name_start_time='At saccade on-set', start_time=lambda events: (events['latency'].shift(-3)), name_length_time='Fixed blocks of 1', length_time=1, start_channel=1, end_channel=258, padding=False) preparator.blocks(on_blocks=['55'], off_blocks=['56']) # take only blocks 55 preparator.ignoreEvent(name='Ignore microsaccades', f=(lambda events: events['type'].isin(saccade) & (events['amplitude'] < 2))) preparator.ignoreEvent(name='Ignore microfixations', f=(lambda events: events['type'].isin(fixation) & (events['duration'] < 150))) preparator.addFilter(name='Keep saccade if it comes after a reasonable RT', f=lambda events: events['latency'].shift(-3) - events['latency'].shift(-2) > 50) preparator.addLabel(name='amplitude', f=lambda events: np.sqrt((events['end_x'].shift(-3) - events['start_x'].shift(-3)) ** 2 + (events['end_y'].shift(-3) - events['start_y'].shift(-3)) ** 2)) preparator.addLabel(name='angle', f=lambda events: np.arctan2(events['end_y'].shift(-3) - events['start_y'].shift(-3), events['end_x'].shift(-3) - events['start_x'].shift(-3))) preparator.run() def direction_with_processing_speed_dataset(feature_extraction=False, verbose=False): # fixation, saccade, fixation # saccade should be bigger than 0.5 (amplitude) (Repetition) # We use the 'processing_speed' dataset for this direction task fixation = config['fixation_trigger'] saccade = config['saccade_trigger'] if not feature_extraction: preparator = Preparator(load_directory=config['LOAD_PROCESSING_SPEED_PATH'], save_directory=config['SAVE_PATH'], load_file_pattern=config['PROCESSING_SPEED_FILE_PATTERN'], save_file_name=config['output_name'], verbose=verbose) preparator.extract_data_at_events(extract_pattern=[fixation, saccade, fixation], name_start_time='at the fixation start', start_time=lambda events: (events['latency']), name_length_time='Fixed blocks of 500', length_time=500, start_channel=1, end_channel=129, padding=True) # we are interested only on the triplets, fixation saccade fixation else: preparator = Preparator(load_directory=config['LOAD_PROCESSING_SPEED_PATH'], save_directory=config['SAVE_PATH'], load_file_pattern=config['PROCESSING_SPEED_HILBERT_FILE_PATTERN'], save_file_name=config['output_name'], verbose=verbose) preparator.extract_data_at_events(extract_pattern=[fixation, saccade, fixation], name_start_time='at saccade onset', start_time=lambda events: (events['latency'].shift(-1)), name_length_time='Size 1', length_time=1, start_channel=1, end_channel=258, padding=False) # we are interested only on saccade on-set (where the data is feature extracted by hilbert trafo) preparator.addFilter(name='Keep only long enough fixations1', f=lambda events:events['duration'] > 50) preparator.addFilter(name='Keep only big enough saccade', f=lambda events: events['amplitude'].shift(-1) > 0.5) preparator.addFilter(name='Keep only long enough fixations2', f=lambda events: events['duration'].shift(-2) > 50) preparator.addLabel(name='amplitude', f=lambda events: np.sqrt((events['end_x'].shift(-1) - events['start_x'].shift(-1)) ** 2 + (events['end_y'].shift(-1) - events['start_y'].shift(-1)) ** 2)) preparator.addLabel(name='angle', f=lambda events: np.arctan2(events['end_y'].shift(-1) - events['start_y'].shift(-1), events['end_x'].shift(-1) - events['start_x'].shift(-1))) preparator.run() def position_task_data_preparation(feature_extraction, verbose=False): # We use the 'dots' dataset for position task fixation = config['fixation_trigger'] if not feature_extraction: preparator = Preparator(load_directory=config['LOAD_DOTS_PATH'], save_directory=config['SAVE_PATH'], load_file_pattern=config['DOTS_FILE_PATTERN'], save_file_name=config['output_name'], verbose=verbose) # no padding, but cut 500 somewhere in between preparator.extract_data_at_events(extract_pattern=[fixation], name_start_time='At fixation start', start_time=lambda events: (events['latency']), name_length_time='Fixed blocks of 500', length_time=500, start_channel=1, end_channel=129, padding=False) # we are interested only on the fixations (at a dot) else: preparator = Preparator(load_directory=config['LOAD_DOTS_PATH'], save_directory=config['SAVE_PATH'], load_file_pattern=config['DOTS_HILBERT_FILE_PATTERN'], save_file_name=config['output_name'], verbose=verbose) preparator.extract_data_at_events(extract_pattern=[fixation], name_start_time='At fixation start', start_time=lambda events: (events['latency']), name_length_time='Fixed blocks of 1', length_time=1, start_channel=1, end_channel=258, padding=False) # we are interested only on the fixations preparator.blocks(on_blocks=['55'], off_blocks=['56']) # take only blocks 55 preparator.addFilter(name='Keep fixation that are long enough', f=lambda events: events['duration'] >= 500) preparator.addLabel(name='x_position', f=lambda events: events['avgpos_x']) preparator.addLabel(name='y_position', f=lambda events: events['avgpos_y']) preparator.run() def segmentation_task_data_preparation(feature_extraction=False, verbose=False): raise NotImplementedError("Segmentation task is not implemented yet.") def main(): if config['task'] == 'LR_task': if config['dataset'] == 'antisaccade': left_right_task_data_preparation(config['feature_extraction']) else: raise ValueError("This task cannot be prepared (is not implemented yet) with the given dataset.") elif config['task'] == 'Direction_task': if config['dataset'] == 'dots': direction_task_data_preparation(config['feature_extraction']) elif config['dataset'] == 'processing_speed': direction_with_processing_speed_dataset() else: raise ValueError("This task cannot be prepared with the given dataset.") elif config['task'] == 'Position_task': if config['dataset'] == 'dots': position_task_data_preparation(config['feature_extraction']) else: raise ValueError("This task cannot be prepared (is not implemented yet) with the given dataset.") elif config['task'] == 'Segmentation_task': segmentation_task_data_preparation(config['feature_extraction']) else: raise NotImplementedError("Task " + config['task'] + " is not implemented yet.") main()
76.049689
236
0.618834
1,406
12,244
5.177098
0.119488
0.041214
0.05193
0.033933
0.807941
0.755461
0.705179
0.678527
0.646105
0.633329
0
0.019674
0.269356
12,244
160
237
76.525
0.793986
0.079059
0
0.48062
0
0
0.193729
0.023628
0
0
0
0
0
1
0.046512
false
0
0.023256
0
0.069767
0
0
0
0
null
0
0
0
1
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
d65c72db45725011a1df79e5eab38aceb15b27eb
346
py
Python
opendeep/data/__init__.py
vitruvianscience/OpenDeep
e96efc449101094354b615cf15afe6d03644fc36
[ "Apache-2.0" ]
252
2015-03-13T21:55:22.000Z
2021-09-06T21:37:38.000Z
opendeep/data/__init__.py
afcarl/OpenDeep
e96efc449101094354b615cf15afe6d03644fc36
[ "Apache-2.0" ]
16
2015-03-14T06:47:04.000Z
2016-09-23T19:13:35.000Z
opendeep/data/__init__.py
afcarl/OpenDeep
e96efc449101094354b615cf15afe6d03644fc36
[ "Apache-2.0" ]
68
2015-03-14T00:05:53.000Z
2020-06-04T13:36:13.000Z
from __future__ import division, absolute_import, print_function # to get dataset types like Dataset, Filedataset, etc. from .dataset import * from .dataset_file import * from .dataset_memory import * from .text import * from .dataset_image import * # to get premade datasets from .standard_datasets import * # for streams from . import stream
24.714286
64
0.786127
47
346
5.574468
0.510638
0.167939
0.194656
0
0
0
0
0
0
0
0
0
0.153179
346
13
65
26.615385
0.894198
0.254335
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0.125
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
4
d66c2b1e87b9532c36241006f7535112a89b5211
1,596
py
Python
django_anysign/api.py
peopledoc/django-anysign
9f6b1639613becb8bf72b67cf4b6f332485f4ae9
[ "BSD-3-Clause" ]
17
2017-11-21T14:57:01.000Z
2021-11-29T04:04:22.000Z
django_anysign/api.py
Nirmalvekariya/django-anysign
3b00b1ecb339de40b5634497c3b1ecb80a0ed57e
[ "BSD-3-Clause" ]
2
2019-04-17T08:03:00.000Z
2022-02-03T14:47:07.000Z
django_anysign/api.py
Nirmalvekariya/django-anysign
3b00b1ecb339de40b5634497c3b1ecb80a0ed57e
[ "BSD-3-Clause" ]
3
2019-01-22T11:11:20.000Z
2019-10-19T00:26:34.000Z
"""Declaration of API shortcuts. Everything declared (or imported) in this module is exposed in :mod:`django_anysign.api` package, i.e. available when one does ``from django_anysign import api as django_anysign``. Here are the motivations of such an "api" module: * as a `django-anysign` library user, in order to use `django-anysign`, I just do ``from django_anysign import api as django_anysign``. It is enough for most use cases. I do not need to bother with more `django_anysign` internals. I know this API will be maintained, documented, and not deprecated/refactored without notice. * as a `django-anysign` library developer, in order to maintain `django-anysign` API, I focus on things declared in :mod:`django_anysign.api`. It is enough. It is required. I take care of this API. If there is a change in this API between consecutive releases, then I use :class:`DeprecationWarning` and I mention it in release notes. It also means that things not exposed in :mod:`django_anysign.api` are not part of the deprecation policy. They can be moved, changed, removed without notice. """ from django_anysign.backend import SignatureBackend # NoQA from django_anysign.loading import get_signature_backend # NoQA from django_anysign.loading import get_signature_type_model # NoQA from django_anysign.loading import get_signature_model # NoQA from django_anysign.loading import get_signer_model # NoQA from django_anysign.models import SignatureType # NoQA from django_anysign.models import SignatureFactory # NoQA from django_anysign.models import SignerFactory # NoQA
48.363636
79
0.788221
247
1,596
4.991903
0.425101
0.210868
0.137875
0.119221
0.400649
0.342255
0.216545
0.216545
0
0
0
0
0.151629
1,596
32
80
49.875
0.910635
0.714912
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
4
d6758119847d4b062fd773572a54d721b05da57b
124
py
Python
django/setup.py
dfrankow/data_sync
23ff91392e2e4dee8cab4c732ed1b856bc246971
[ "MIT" ]
null
null
null
django/setup.py
dfrankow/data_sync
23ff91392e2e4dee8cab4c732ed1b856bc246971
[ "MIT" ]
null
null
null
django/setup.py
dfrankow/data_sync
23ff91392e2e4dee8cab4c732ed1b856bc246971
[ "MIT" ]
null
null
null
"""Package setup. See https://docs.djangoproject.com/en/4.0/intro/reusable-apps/""" from setuptools import setup setup()
15.5
65
0.733871
18
124
5.055556
0.888889
0
0
0
0
0
0
0
0
0
0
0.017857
0.096774
124
7
66
17.714286
0.794643
0.629032
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
d687205cf1946bbc9a57a1464349cbcd548956da
62
py
Python
python/hetu/cpu_links/__init__.py
initzhang/Hetu
447111a358e4dc6df5db9c216bdb3590fff05f84
[ "Apache-2.0" ]
82
2021-07-20T02:45:54.000Z
2022-03-14T07:08:45.000Z
python/hetu/cpu_links/__init__.py
initzhang/Hetu
447111a358e4dc6df5db9c216bdb3590fff05f84
[ "Apache-2.0" ]
4
2021-11-25T13:39:21.000Z
2022-03-13T04:14:14.000Z
python/hetu/cpu_links/__init__.py
initzhang/Hetu
447111a358e4dc6df5db9c216bdb3590fff05f84
[ "Apache-2.0" ]
13
2021-07-18T14:40:56.000Z
2022-03-09T06:37:42.000Z
from __future__ import absolute_import from .dnnl_op import *
20.666667
38
0.83871
9
62
5.111111
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.129032
62
2
39
31
0.851852
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
d69aa473b6f55beb10e8b31617fdc4e72cc1ceae
337
py
Python
wharf_management/wharf_management/doctype/cargo/cargo_dashboard.py
staumoepeau/pms
67aa43fb27f75482275b50dff17f5919e6c394b1
[ "MIT" ]
1
2021-02-19T11:45:24.000Z
2021-02-19T11:45:24.000Z
wharf_management/wharf_management/doctype/cargo/cargo_dashboard.py
staumoepeau/pms
67aa43fb27f75482275b50dff17f5919e6c394b1
[ "MIT" ]
1
2021-08-12T08:29:50.000Z
2021-08-17T06:12:02.000Z
wharf_management/wharf_management/doctype/cargo/cargo_dashboard.py
staumoepeau/pms
67aa43fb27f75482275b50dff17f5919e6c394b1
[ "MIT" ]
4
2020-07-22T20:30:00.000Z
2021-08-07T12:36:01.000Z
from frappe import _ #def get_data(): # return { # 'heatmap': True, # 'heatmap_message': _('This is based on the attendance of this Student'), # 'fieldname': 'cargo', # 'transactions': [ # { # 'label': _('Gate1'), # 'items': ['Gate1'] # }, # { # 'label': _('Student Activity'), # 'items': ['Gate2' ] # } # ] # }
18.722222
75
0.52819
32
337
5.375
0.8125
0
0
0
0
0
0
0
0
0
0
0.011673
0.237389
337
18
76
18.722222
0.657588
0.84273
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
4
d6ab45b269f89b1040cf7b0f606eb363ca9776b0
219
py
Python
app/data/cache.py
matheusnalmeida/Sistema-de-transporte-de-passageiros
e7c67586af0f814def990690a8389ca90d64fba0
[ "MIT" ]
null
null
null
app/data/cache.py
matheusnalmeida/Sistema-de-transporte-de-passageiros
e7c67586af0f814def990690a8389ca90d64fba0
[ "MIT" ]
null
null
null
app/data/cache.py
matheusnalmeida/Sistema-de-transporte-de-passageiros
e7c67586af0f814def990690a8389ca90d64fba0
[ "MIT" ]
null
null
null
class Cache: _instance = None def __init__(self): self.data = {} @classmethod def instance(cls): if cls._instance is None: cls._instance = cls() return cls._instance
19.909091
33
0.56621
24
219
4.833333
0.541667
0.284483
0
0
0
0
0
0
0
0
0
0
0.342466
219
11
34
19.909091
0.805556
0
0
0
0
0
0
0
0
0
0
0
0
1
0.222222
false
0
0
0
0.555556
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
4
ba56e1fb85a4954c8cbcb0f1dd32351cef48e79b
215
py
Python
kedro/extras/datasets/redis/__init__.py
daniel-falk/kedro
19187199339ddc4a757aaaa328f319ec4c1e452a
[ "Apache-2.0" ]
2,047
2022-01-10T15:22:12.000Z
2022-03-31T13:38:56.000Z
kedro/extras/datasets/redis/__init__.py
daniel-falk/kedro
19187199339ddc4a757aaaa328f319ec4c1e452a
[ "Apache-2.0" ]
170
2022-01-10T12:44:31.000Z
2022-03-31T17:01:24.000Z
kedro/extras/datasets/redis/__init__.py
daniel-falk/kedro
19187199339ddc4a757aaaa328f319ec4c1e452a
[ "Apache-2.0" ]
112
2022-01-10T19:15:24.000Z
2022-03-30T11:20:52.000Z
"""``AbstractDataSet`` implementation to load/save data from/to a redis db.""" __all__ = ["PickleDataSet"] from contextlib import suppress with suppress(ImportError): from .redis_dataset import PickleDataSet
23.888889
78
0.762791
25
215
6.36
0.72
0
0
0
0
0
0
0
0
0
0
0
0.134884
215
8
79
26.875
0.854839
0.334884
0
0
0
0
0.094891
0
0
0
0
0
0
1
0
false
0
0.75
0
0.75
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
bab28a0f3710ae94258a1cabdbca06c93ed56326
6,290
py
Python
www.costco.ca/costco.py
zzh-python/all-project
915a47fb42d63ff3a36814992283c2f4ed8703a3
[ "Apache-2.0" ]
58
2019-03-01T08:15:19.000Z
2022-03-28T03:16:17.000Z
www.costco.ca/costco.py
zzh-python/all-project
915a47fb42d63ff3a36814992283c2f4ed8703a3
[ "Apache-2.0" ]
2
2020-06-08T08:07:46.000Z
2020-11-02T11:48:05.000Z
www.costco.ca/costco.py
zzh-python/all-project
915a47fb42d63ff3a36814992283c2f4ed8703a3
[ "Apache-2.0" ]
37
2019-02-26T23:30:08.000Z
2022-01-27T05:10:18.000Z
from bs4 import BeautifulSoup import requests from urllib.error import HTTPError import time from email.mime.text import MIMEText import smtplib #python 内置函数,无需安装 import urllib3 #必看: #除import提到的包外,还需要安装的包 # pip install pyopenssl # pip install ndg-httpsclient # pip install pyasn1 #setmsg函数中补充发件邮箱和密码信息以及收件邮箱信息 cook="AKA_A2=A; akaas_AS_CA=2147483647~rv=36~id=7b1cd9906c25e2b9921a215064e74665; _abck=6B7A81BDE3A9C62647BCEF4C2F608948CFE2714D24700000B481A45B16D5B238~-1~vS+b0FVki0n8eXxlqKhWjvNUHW8upaX4KLlt9Wt2lDY=~-1~-1; bm_sz=4A4FE015930AE871B27A8CB3D0DC8AF9~QAAQTXHiz3qAZOplAQAANaqa+sNrLwxFN4RifkuyAFPhoJImDqgd5SbQ0O/n/fSa8Cb2PL0iMIweZYY7Ity+ZTfuKQBhF7vt/6Yb5ZR3ijobT354Tr1KZVmltKR92ZSeybwNphRnFIsR4gvprwIZJGQxo3nh6WOP+tiVTvMjBh452Xd7Slhy7+bJ6P7u; check=true; AMCVS_97B21CFE5329614E0A490D45%40AdobeOrg=1; AMCV_97B21CFE5329614E0A490D45%40AdobeOrg=-330454231%7CMCIDTS%7C17796%7CMCMID%7C62350747535273031870287669242920445768%7CMCAAMLH-1538112567%7C9%7CMCAAMB-1538112567%7CRKhpRz8krg2tLO6pguXWp5olkAcUniQYPHaMWWgdJ3xzPWQmdj0y%7CMCOPTOUT-1537514967s%7CNONE%7CvVersion%7C3.1.2; s_cc=true; CRTOABE=0; ak_bmsc=CAF07F25E40A8F696497B5B8B5DB8B4CCFE2714D24700000B481A45B38376045~pl600+C8HPl6yWLVqueQvtcKiqoBAkfUKOGqdslwge/U3qh1UDNueDEL2SsxenvDhzbjt5zWUEClytAPcw+h8q1y6lDrQULEu0kIbeulcmahUgBAGMNTNn1ZH0FU/KHHpohZ9eSssBzSuNVintSTWugVl73Spg94NLWvfJSvryhueuBZee8VPkVPZH6Sy8hXHqsD6IwdKE+tN0jf3awgRPFkuiaDaSInuqUZmEfAhZLZFUvQQWZaTefj0ozdn9+y3D; WRUID20171123=1924093959766611; BVImplnative_review_form=20040_1_0; spid=ABD939D6-F356-491A-821F-D7617338E8CF; sp_ssid=1537507777847; BVBRANDID=1e95c795-552e-458d-bb0a-f9a3ca556a59; BVBRANDSID=b9504abe-17fb-42e0-a323-6bbdf7c5f36d; JSESSIONID=0000qdukakIbAYRI3tNQ3mIinuf:163c2ees7; WC_SESSION_ESTABLISHED=true; WC_PERSISTENT=dNnGQ1r06GR%2Bu5r%2FM7Z%2FnDDpUhQ%3D%0A%3B2018-09-20+22%3A30%3A17.098_1537507817096-77013_10302_-1002%2C-24%2CCAD%2CjPk%2BTNMAc4rqoc89xgCzLp02PM7FeGCovimAoinWmSFdYrMWgf8535%2Fx3GlbJV6escHGzmkZ6oFDLeWpYbLrIA%3D%3D_10302; WC_AUTHENTICATION_-1002=-1002%2C5M9R2fZEDWOZ1d8MBwy40LOFIV0%3D; WC_ACTIVEPOINTER=-24%2C10302; WC_USERACTIVITY_-1002=-1002%2C10302%2Cnull%2Cnull%2Cnull%2Cnull%2Cnull%2Cnull%2Cnull%2Cnull%2CkKMlcCtoJEP%2Bj9bJjSGPFGugv3rA4J%2BzUBHYySw3VMfrQBy2eiimhZQ%2FTNuM%2BAqQcKifgb1rVecL7luknzCf8amwHeEUfAJvwSNoO%2F5jrR77VCgS%2BmS6a5ebncjN4MHrVpn3Hy7T4m%2FmhlFlIEc51eKSDzOicU5E0wi6hljyclHZ%2B0Bl%2F3foMdcGpB7C8WI8Kv4eIZdtiOjoE94l4kUv7g%3D%3D; WC_GENERIC_ACTIVITYDATA=[7522564441%3Atrue%3Afalse%3A0%3AT%2BW69MSk0L7vnquXgj7XC8ou7Go%3D][com.ibm.commerce.context.audit.AuditContext|1537507817096-77013][com.ibm.commerce.store.facade.server.context.StoreGeoCodeContext|null%26null%26null%26null%26null%26null][CTXSETNAME|Store][com.ibm.commerce.context.globalization.GlobalizationContext|-24%26CAD%26-24%26CAD][com.ibm.commerce.catalog.businesscontext.CatalogContext|11201%26null%26false%26false%26false][com.ibm.commerce.context.ExternalCartContext|null][com.ibm.commerce.context.base.BaseContext|10302%26-1002%26-1002%26-1][com.ibm.commerce.context.experiment.ExperimentContext|null][com.ibm.commerce.context.entitlement.EntitlementContext|4000000000000001004%264000000000000001004%26null%26-2000%26null%26null%26null][com.ibm.commerce.giftcenter.context.GiftCenterContext|null%26null%26null]; C_CLIENT_SESSION_ID=1d8430e5-6ed1-4c22-90fe-1970ecac7f12; hl_p=1df1ead2-4347-4571-84cd-254c86d45791; C_LOC=CAAB; C_2LOC=false; s_sq=%5B%5BB%5D%5D; bm_sv=B477B80EE15212FFB9049929ACF0D205~D8dzhv9NU+NTSo7YMFXAzfDLoAMTUlRrBpznYUFEdNNXpJUWr14ro9lRrR6aaqlo9j1vIimS/Kmv08R72A1rGkjrliJYI/SRBhDOvUtyn1cFBkXeWwZaR99k7DnDddbeBMPwpSoTwrJqA9amjeI1S3+IbnVlZJcX6aiSmvuHiJU=; mbox=session#458bd7a27abd4c068925623dcc0a715d#1537510111|PC#458bd7a27abd4c068925623dcc0a715d.28_61#1600752569; __CT_Data=gpv=12&ckp=tld&dm=costco.ca&apv_81_www33=12&cpv_81_www33=12&rpv_81_www33=11; ctm={'pgv':2138690657458712|'vst':3070183073991961|'vstr':331026244913032|'intr':1537508317727|'v':1}" header={ "accept":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8", "accept-encoding":"gzip, deflate, br", "accept-language":"zh-CN,zh;q=0.9", "cache-control":"max-age=0", "cookie":cook, "upgrade-insecure-requests":"1", "user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.186 Safari/537.36", } def getObj(url,encode='utf-8'): for i in range(1): try: urllib3.disable_warnings() html=requests.get(url,headers=header,verify=False) html.encoding=encode break except HTTPError as e: # time.sleep(3) print('再次请求') print('HTTPError') return None try: bsObj = BeautifulSoup(html.text,'html.parser') except AttributeError as e: return None return bsObj def sendmsg(msg): # 发件人Email地址和密码: from_addr = '1509662199@qq.com' password = '' # 输入SMTP服务器地址: smtp_server = 'smtp.qq.com' #163邮箱为'smtp.163.com' # 收件人地址: to_addr = '1509662199@qq.com' server = smtplib.SMTP(smtp_server, 25) # SMTP协议默认端口是25 server.set_debuglevel(1) server.login(from_addr, password) server.sendmail(from_addr, [to_addr], msg.as_string()) server.quit() def main(): url='https://www.costco.ca/Elizabeth-Arden-Ceramide-Advanced-Time-Complex-Capsules.product.100296958.html' #默认当前状态为无货 now=False while True: bsObj=getObj(url) try: if bsObj.find('div',{'id':'ctas'}).find('input',{'id':'add-to-cart-btn'}).attrs['value']=='Out of Stock': #缺货 if now==True:#判断上个状态是否有货 #上个状态有货,发送缺货提醒 msg = MIMEText('缺货', 'plain', 'utf-8') sendmsg(msg) #修改状态 now=False else: if now==False:#判断上个状态是否有货 #上个状态无货,发送有货提醒 msg = MIMEText('有货', 'plain', 'utf-8') sendmsg(msg) #修改状态 now=True except: print('AttributeError') #隔多久查看一次,秒为单位 time.sleep(10) main()
74
3,598
0.747854
658
6,290
7.06383
0.606383
0.011618
0.027108
0.027108
0.032272
0.021515
0.021515
0
0
0
0
0.207082
0.142448
6,290
84
3,599
74.880952
0.654616
0.047059
0
0.142857
0
0.063492
0.710088
0.609035
0
0
0
0
0
1
0.047619
false
0.031746
0.111111
0
0.206349
0.047619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
0
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
bab4386c3d3f087c25110cb0bc8b063612c34336
87
py
Python
codes_auto/71.simplify-path.py
smartmark-pro/leetcode_record
6504b733d892a705571eb4eac836fb10e94e56db
[ "MIT" ]
null
null
null
codes_auto/71.simplify-path.py
smartmark-pro/leetcode_record
6504b733d892a705571eb4eac836fb10e94e56db
[ "MIT" ]
null
null
null
codes_auto/71.simplify-path.py
smartmark-pro/leetcode_record
6504b733d892a705571eb4eac836fb10e94e56db
[ "MIT" ]
null
null
null
# # @lc app=leetcode.cn id=71 lang=python3 # # [71] simplify-path # None # @lc code=end
12.428571
40
0.655172
15
87
3.8
0.866667
0
0
0
0
0
0
0
0
0
0
0.068493
0.16092
87
7
41
12.428571
0.712329
0.804598
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
badef09b5cdc28d2e1bd0dcfa450b01cab9ba763
155
py
Python
RandomGen/RandomRange.py
rn44/statsCalculator
b827edfc49d9251c7490ede3e578b58b49d9bb13
[ "MIT" ]
null
null
null
RandomGen/RandomRange.py
rn44/statsCalculator
b827edfc49d9251c7490ede3e578b58b49d9bb13
[ "MIT" ]
null
null
null
RandomGen/RandomRange.py
rn44/statsCalculator
b827edfc49d9251c7490ede3e578b58b49d9bb13
[ "MIT" ]
2
2020-11-07T03:34:17.000Z
2020-12-10T16:34:55.000Z
import random def randInt(a, b): num = random.randint(a, b) return num def randDec(a, b): num = float(random.uniform(a, b)) return num
12.916667
37
0.612903
25
155
3.8
0.44
0.084211
0.189474
0.231579
0
0
0
0
0
0
0
0
0.258065
155
11
38
14.090909
0.826087
0
0
0.285714
0
0
0
0
0
0
0
0
0
1
0.285714
false
0
0.142857
0
0.714286
0
1
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
4
bae7dccad0b60908e90704d6e24e9a059c54c935
239
py
Python
tests/auth_helper.py
thadk/us-congress-pizza-flag-tracker
428cc9d6f68cdcc77ea30015fd06de20b8eb1da8
[ "CC0-1.0" ]
null
null
null
tests/auth_helper.py
thadk/us-congress-pizza-flag-tracker
428cc9d6f68cdcc77ea30015fd06de20b8eb1da8
[ "CC0-1.0" ]
null
null
null
tests/auth_helper.py
thadk/us-congress-pizza-flag-tracker
428cc9d6f68cdcc77ea30015fd06de20b8eb1da8
[ "CC0-1.0" ]
null
null
null
import base64 from AuthActions import AuthActions def get_token(username, password): login_response = AuthActions.login_user(username, password) user_pw_token = login_response["accessToken"].encode(); return user_pw_token
19.916667
63
0.778243
29
239
6.137931
0.551724
0.179775
0.123596
0
0
0
0
0
0
0
0
0.009804
0.146444
239
11
64
21.727273
0.862745
0
0
0
0
0
0.04661
0
0
0
0
0
0
1
0.166667
false
0.333333
0.333333
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
1
0
1
0
0
4
79f1ff62a1b8f252c224e1a648b45756a345864a
807
py
Python
Web/test.py
cmd2001/Open-TesutoHime
2c30aa35650383adfb99496aebd425dffd287eda
[ "MIT" ]
11
2020-11-28T16:45:35.000Z
2021-08-31T07:56:26.000Z
Web/test.py
cmd2001/Open-TesutoHime
2c30aa35650383adfb99496aebd425dffd287eda
[ "MIT" ]
null
null
null
Web/test.py
cmd2001/Open-TesutoHime
2c30aa35650383adfb99496aebd425dffd287eda
[ "MIT" ]
2
2021-05-16T03:09:58.000Z
2021-08-21T07:24:58.000Z
from userManager import UserManager from problemManager import ProblemManager # a = UserManager() # a.Add_User('u1', '123456', 'user1', '123', '3') # a.Modify_User('u1', '531', '', '' , '') # a.Modify_User('u1', '', 'u1', '' , '') # a.Modify_User('u1', '', '', '321' , '') # a.Modify_User('u1', '', '', '' , '2') # a.Modify_User('u1', '123456', 'user1', '123', '3') # print(a.Check_Login('u1', '123')) # print(a.Check_Login('u1', '321')) # print(a.Check_Login('u2', '321')) # print(a.Get_Friendly_Name('u1')) # print(a.Get_Student_ID('u1')) # print(a.Get_Privilege('u1')) # b = ProblemManager() # b.Add_Problem('Title', 'Description', 'I', 'O', 'EI', 'EO', 'DR', '0') # b.Modify_Problem(1000, 'Title', 'Description', 'I', 'O', 'EI', 'EO', 'DR', '0') # print(b.Get_Max_ID()) # print(b.Get_Problem(1000))
33.625
81
0.581165
116
807
3.87931
0.327586
0.08
0.122222
0.144444
0.284444
0.204444
0.111111
0.111111
0
0
0
0.086037
0.121437
807
23
82
35.086957
0.54866
0.85254
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
4
79ff69900cf81af90b1605b03fa02e0f8675ae0f
223
py
Python
src/easynlp/__init__.py
easynlp/easynlp
4b3b405a64ca166cc19ee9c43b79a475cf699996
[ "MIT" ]
6
2021-07-09T08:13:44.000Z
2021-11-10T04:09:33.000Z
src/easynlp/__init__.py
easynlp/easynlp
4b3b405a64ca166cc19ee9c43b79a475cf699996
[ "MIT" ]
1
2021-07-09T17:18:16.000Z
2021-07-09T17:18:16.000Z
src/easynlp/__init__.py
easynlp/easynlp
4b3b405a64ca166cc19ee9c43b79a475cf699996
[ "MIT" ]
1
2022-02-09T15:37:14.000Z
2022-02-09T15:37:14.000Z
__version__ = "0.2.1" from .classification import classification from .translation import translation from .ner import ner from .summarization import summarization from .question_answering import question_answering
27.875
51
0.816143
26
223
6.769231
0.461538
0.193182
0
0
0
0
0
0
0
0
0
0.015625
0.139013
223
7
52
31.857143
0.901042
0
0
0
0
0
0.023148
0
0
0
0
0
0
1
0
false
0
0.833333
0
0.833333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
031d2fc97b1ea8777d08d7f0c6f9bf62f2aa2c18
63
py
Python
src/algorithm/abs_algorithm.py
cwjokaka/Python-ML-PyQt
91207f60fd9f390436e7e9bec032ee71c3298add
[ "MIT" ]
2
2020-01-09T02:31:50.000Z
2021-02-09T13:23:19.000Z
src/algorithm/abs_algorithm.py
cwjokaka/Python-ML-PyQt
91207f60fd9f390436e7e9bec032ee71c3298add
[ "MIT" ]
null
null
null
src/algorithm/abs_algorithm.py
cwjokaka/Python-ML-PyQt
91207f60fd9f390436e7e9bec032ee71c3298add
[ "MIT" ]
null
null
null
class AbsAlgorithm(object): def output(self): pass
15.75
27
0.634921
7
63
5.714286
1
0
0
0
0
0
0
0
0
0
0
0
0.269841
63
4
28
15.75
0.869565
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
0
0
0
4
03576f839e7fb5021e8b458cd5d3b245b53f0c8f
71
py
Python
api/waitress_server.py
irwanmaulana42/GeoWINE
fbcb7a3f3c529d1aa95040006a93451bf030ff7b
[ "MIT" ]
2
2021-05-05T02:33:44.000Z
2021-08-01T17:23:02.000Z
api/waitress_server.py
irwanmaulana42/GeoWINE
fbcb7a3f3c529d1aa95040006a93451bf030ff7b
[ "MIT" ]
null
null
null
api/waitress_server.py
irwanmaulana42/GeoWINE
fbcb7a3f3c529d1aa95040006a93451bf030ff7b
[ "MIT" ]
1
2021-05-05T02:33:48.000Z
2021-05-05T02:33:48.000Z
import waitress, api waitress.serve(api.app, host='0.0.0.0', port=9990)
35.5
50
0.732394
14
71
3.714286
0.642857
0.115385
0.115385
0
0
0
0
0
0
0
0
0.121212
0.070423
71
2
50
35.5
0.666667
0
0
0
0
0
0.097222
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
3024eda61b2d9a7c6e12a3aad199e2e5b14241d1
461
py
Python
robo_init/util.py
traversaro/robo-init
27795aff31aaf96215fb7ee5ebfe0993add95feb
[ "BSD-3-Clause" ]
6
2021-06-09T11:48:25.000Z
2021-06-15T15:32:53.000Z
robo_init/util.py
traversaro/robo-init
27795aff31aaf96215fb7ee5ebfe0993add95feb
[ "BSD-3-Clause" ]
null
null
null
robo_init/util.py
traversaro/robo-init
27795aff31aaf96215fb7ee5ebfe0993add95feb
[ "BSD-3-Clause" ]
1
2021-06-14T12:31:30.000Z
2021-06-14T12:31:30.000Z
import yaml class folded_unicode(str): pass class literal_unicode(str): pass def folded_unicode_representer(dumper, data): return dumper.represent_scalar(u'tag:yaml.org,2002:str', data, style='>') def literal_unicode_representer(dumper, data): return dumper.represent_scalar(u'tag:yaml.org,2002:str', data, style='|') yaml.add_representer(folded_unicode, folded_unicode_representer) yaml.add_representer(literal_unicode, literal_unicode_representer)
35.461538
77
0.806941
64
461
5.5625
0.328125
0.146067
0.078652
0.157303
0.460674
0.460674
0.460674
0.460674
0.460674
0.460674
0
0.018868
0.08026
461
12
78
38.416667
0.820755
0
0
0
0
0
0.095445
0.091106
0
0
0
0
0
1
0.222222
false
0.222222
0.111111
0.222222
0.777778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
1
1
0
0
4
30369dbbf33e1d6ce38103861b755cdfc6b0f23a
84
py
Python
server/Config.py
Redfoggg/serialreader-socketio
0f6b6612ed70bb903c65e46bea4b4f5a421dba3a
[ "MIT" ]
null
null
null
server/Config.py
Redfoggg/serialreader-socketio
0f6b6612ed70bb903c65e46bea4b4f5a421dba3a
[ "MIT" ]
null
null
null
server/Config.py
Redfoggg/serialreader-socketio
0f6b6612ed70bb903c65e46bea4b4f5a421dba3a
[ "MIT" ]
null
null
null
DATABASE_URI='postgres+psycopg2://postgres:ssamp001@localhost:5432/projetosenai'
28
81
0.821429
9
84
7.555556
0.888889
0
0
0
0
0
0
0
0
0
0
0.1
0.047619
84
2
82
42
0.75
0
0
0
0
0
0.802469
0.802469
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
303fac20fdd674a6fb374a1784e24ca16470f3ad
64
py
Python
tests/__init__.py
timb07/irritable
6d250dd716890b7b78b2b42e2f04be3058b09856
[ "BSD-3-Clause" ]
1
2017-08-08T01:55:42.000Z
2017-08-08T01:55:42.000Z
tests/__init__.py
timb07/irritable
6d250dd716890b7b78b2b42e2f04be3058b09856
[ "BSD-3-Clause" ]
3
2017-08-08T00:21:04.000Z
2021-03-25T21:46:40.000Z
tests/__init__.py
timb07/irritable
6d250dd716890b7b78b2b42e2f04be3058b09856
[ "BSD-3-Clause" ]
2
2017-08-08T01:29:53.000Z
2017-08-08T05:16:51.000Z
# -*- coding: utf-8 -*- """Unit test package for irritable."""
16
38
0.578125
8
64
4.625
1
0
0
0
0
0
0
0
0
0
0
0.018868
0.171875
64
3
39
21.333333
0.679245
0.859375
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
307a2f6b0ef52f963e59f943fbee6842896db5bd
174
py
Python
Modulo_Publica_Curiosidades.py
YanSym/Amazonia_Azul_Reporter
3d425ba73f225a9171dd7673ca2ab10d13166467
[ "MIT" ]
2
2021-11-24T12:03:23.000Z
2021-12-05T15:48:22.000Z
Modulo_Publica_Curiosidades.py
YanSym/Amazonia_Azul_Reporter
3d425ba73f225a9171dd7673ca2ab10d13166467
[ "MIT" ]
null
null
null
Modulo_Publica_Curiosidades.py
YanSym/Amazonia_Azul_Reporter
3d425ba73f225a9171dd7673ca2ab10d13166467
[ "MIT" ]
1
2022-03-25T14:17:57.000Z
2022-03-25T14:17:57.000Z
from metodos_auxiliares_curiosidades import CuriosidadesClass # instancia o objeto objeto_publicacao = CuriosidadesClass() # publicação objeto_publicacao.publica_conteudo()
24.857143
61
0.867816
17
174
8.588235
0.764706
0.219178
0
0
0
0
0
0
0
0
0
0
0.086207
174
7
62
24.857143
0.918239
0.166667
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
062419b175d26619e23c30babf1e2e92587a8a21
131
py
Python
tests/context.py
SoftwareCraftsmanship2016Bristol/connect4server
621c3c3d01f0466acea5e0ee34d7a511bf0bd7de
[ "MIT" ]
null
null
null
tests/context.py
SoftwareCraftsmanship2016Bristol/connect4server
621c3c3d01f0466acea5e0ee34d7a511bf0bd7de
[ "MIT" ]
1
2016-05-22T12:46:56.000Z
2017-11-14T11:09:12.000Z
tests/context.py
SoftwareCraftsmanship2016Bristol/connect4server
621c3c3d01f0466acea5e0ee34d7a511bf0bd7de
[ "MIT" ]
null
null
null
""" Hitchhikers Guide Context Technique. """ import os import sys sys.path.insert(0, os.path.abspath('..')) import connect4server
14.555556
41
0.732824
17
131
5.647059
0.705882
0
0
0
0
0
0
0
0
0
0
0.017241
0.114504
131
8
42
16.375
0.810345
0.274809
0
0
0
0
0.022989
0
0
0
0
0
0
1
0
true
0
0.75
0
0.75
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
063c353e1c1700aa3ec9e9a33f0a1ad3c023943c
29
py
Python
version.py
AntiBlueQuirk/OoT-Randomizer
02cd096783f95625762538ea58ae661bf79b1934
[ "MIT" ]
null
null
null
version.py
AntiBlueQuirk/OoT-Randomizer
02cd096783f95625762538ea58ae661bf79b1934
[ "MIT" ]
null
null
null
version.py
AntiBlueQuirk/OoT-Randomizer
02cd096783f95625762538ea58ae661bf79b1934
[ "MIT" ]
null
null
null
__version__ = '4.11.7 f.LUM'
14.5
28
0.655172
6
29
2.5
1
0
0
0
0
0
0
0
0
0
0
0.16
0.137931
29
1
29
29
0.44
0
0
0
0
0
0.413793
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
066b0d8859d916a7ed925e6547faa61d4468eb3e
169
py
Python
tracker/config.py
JelteF/bottor
3a6a1ba7fe90c0989c585e9cd01fcc0393b726ae
[ "MIT" ]
4
2015-05-24T17:30:30.000Z
2017-11-27T20:25:53.000Z
tracker/config.py
JelteF/bottor
3a6a1ba7fe90c0989c585e9cd01fcc0393b726ae
[ "MIT" ]
null
null
null
tracker/config.py
JelteF/bottor
3a6a1ba7fe90c0989c585e9cd01fcc0393b726ae
[ "MIT" ]
null
null
null
DEBUG = True SECRET_KEY = 'secret_key' SQLALCHEMY_DATABASE_URI = 'sqlite:///app.db' DATABASE_CONNECT_OPTIONS = {} CSRF_ENABLED = True CSRF_SESSION_KEY = 'secret_key'
16.9
44
0.763314
23
169
5.173913
0.652174
0.226891
0.201681
0
0
0
0
0
0
0
0
0
0.12426
169
9
45
18.777778
0.804054
0
0
0
0
0
0.213018
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
066ef320015492cc38ef91048ec21e1951c20857
234
py
Python
PythonExercicios/ex007.py
cedricgenaro/Python
2ba952b42a9c49efaeb064e230db8d4426cd5ca8
[ "MIT" ]
null
null
null
PythonExercicios/ex007.py
cedricgenaro/Python
2ba952b42a9c49efaeb064e230db8d4426cd5ca8
[ "MIT" ]
null
null
null
PythonExercicios/ex007.py
cedricgenaro/Python
2ba952b42a9c49efaeb064e230db8d4426cd5ca8
[ "MIT" ]
null
null
null
print('\n{:=^60}'.format(' Média ')) nt1 = float(input('Digite a primeira nota: ')) nt2 = float(input('Digite a segunda nota: ')) print('-'*60) print('\n A média entre {} e {} é igual a : {:.1f}'.format(nt1, nt2, (nt1 + nt2) / 2))
26
86
0.576923
37
234
3.648649
0.540541
0.088889
0.237037
0.251852
0
0
0
0
0
0
0
0.061538
0.166667
234
8
87
29.25
0.630769
0
0
0
0
0
0.463203
0
0
0
0
0
0
1
0
false
0
0
0
0
0.6
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
4
068a3ffd88bd612cc0c480d21cf14b52b3fab9fb
156
py
Python
Chapter 11/ch11_1_1.py
bpbpublications/TEST-YOUR-SKILLS-IN-PYTHON-LANGUAGE
f6a4194684515495d00aa38347a725dd08f39a0c
[ "MIT" ]
null
null
null
Chapter 11/ch11_1_1.py
bpbpublications/TEST-YOUR-SKILLS-IN-PYTHON-LANGUAGE
f6a4194684515495d00aa38347a725dd08f39a0c
[ "MIT" ]
null
null
null
Chapter 11/ch11_1_1.py
bpbpublications/TEST-YOUR-SKILLS-IN-PYTHON-LANGUAGE
f6a4194684515495d00aa38347a725dd08f39a0c
[ "MIT" ]
null
null
null
data = 12,34,'Gariyasi', 'Prakriti', 19, 20 print(data) # print() can be used to display the value of tuple data: (12,34,'Gariyasi', 'Prakriti', 19, 20)
39
96
0.660256
26
156
3.961538
0.653846
0.116505
0.15534
0.31068
0.543689
0.543689
0.543689
0
0
0
0
0.123077
0.166667
156
4
96
39
0.669231
0.602564
0
0
0
0
0.275862
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
1
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
4
06a2dea21d89ce6c3cf933f2cbf53939f580aa26
7,225
py
Python
neowise/neowise/plots.py
mihirkestur/neowise
2bce24812fb276f07bdbced605c28e0f865dd6eb
[ "MIT" ]
11
2020-08-10T19:55:58.000Z
2020-10-12T03:02:46.000Z
neowise/neowise/plots.py
mihirkestur/neowise
2bce24812fb276f07bdbced605c28e0f865dd6eb
[ "MIT" ]
null
null
null
neowise/neowise/plots.py
mihirkestur/neowise
2bce24812fb276f07bdbced605c28e0f865dd6eb
[ "MIT" ]
2
2020-08-13T11:25:58.000Z
2021-03-02T14:18:58.000Z
import numpy as np import matplotlib.pyplot as plt class StaticPlotHelpers: """ Static Plot Helpers Used to initiate the instance variables of Static Plots Arguments: costs_tr: Array of costs of training data through the entire training duration of the network costs_cv: Array of costs of cross validation data through the entire duration of the network accu_tr_arr: Array containing the accuracy of the training data of the network through the entire training duration accu_cv_arr: Array containing the accuracy of the cross validation data of the network through the entire training duration """ def __init__(self, costs_tr, costs_cv, accu_tr_arr, accu_cv_arr): self.costs_tr, self.costs_cv = costs_tr, costs_cv self.accu_tr_arr, self.accu_cv_arr = accu_tr_arr, accu_cv_arr class AnimatePlotHelpers: """ Animate Plot Helpers Used to initiate the instance variables of Animated Plots Arguments: x_ax: X axis data for plotting y_ax: Y axis data for plotting X_lab: Label of the X axis of the plot Y_lab: Label of the Y axis of the plot plot_title: Title of the plot leg: Legend of the plot loca: Location of legends plot_col: Color of the plotted line direc: Directory in which the images should be saved freq: Frequency with which the plot should update """ def __init__(self, x_ax, y_ax, X_lab, Y_lab, plot_title, leg, loca, plot_col, direc, freq): self.x_ax, self.y_ax, self.X_lab, self.Y_lab = x_ax, y_ax, X_lab, Y_lab self.plot_title, self.leg, self.loca, self.plot_col, self.direc, self.freq = plot_title, leg, loca, plot_col, direc, freq class PlotCostStatic(StaticPlotHelpers): """ Plot Cost Static Plots the Cost vs Number of iterations Plot Arguments: costs_tr: Array of costs of training data through the entire training duration of the network costs_cv: Array of costs of cross validation data through the entire duration of the network accu_tr_arr: Array containing the accuracy of the training data of the network through the entire training duration accu_cv_arr: Array containing the accuracy of the cross validation data of the network through the entire training duration """ def __init__(self, costs_tr, costs_cv, accu_tr_arr, accu_cv_arr): StaticPlotHelpers.__init__(self, costs_tr, costs_cv, accu_tr_arr, accu_cv_arr) def __call__(self): itera = np.arange(1, len(self.costs_tr) + 1, 1) plt.xlabel('Number of Iterations') plt.ylabel('Cost') plt.title('Cost Function Variation') plt.plot(itera, self.costs_tr, color='c', linewidth=2) if len(self.costs_cv) != 0: plt.plot(itera, self.costs_cv, color='#9ef705', linewidth=2) plt.legend(["Train", "Cross Val"], loc='upper right') class PlotTrCvStatic(StaticPlotHelpers): """ Plot Train CrossVal Static Plots the accuracies of train and cross val vs number of iterations Arguments: costs_tr: Array of costs of training data through the entire training duration of the network costs_cv: Array of costs of cross validation data through the entire duration of the network accu_tr_arr: Array containing the accuracy of the training data of the network through the entire training duration accu_cv_arr: Array containing the accuracy of the cross validation data of the network through the entire training duration """ def __init__(self, costs_tr, costs_cv, accu_tr_arr, accu_cv_arr): StaticPlotHelpers.__init__(self, costs_tr, costs_cv, accu_tr_arr, accu_cv_arr) def __call__(self): itera = np.arange(1, len(self.costs_tr) + 1, 1) plt.xlabel('Number of Iterations') plt.ylabel('Accuracy') plt.title('Train - Cross Val Accuracy Curve') plt.plot(itera, self.accu_tr_arr, color='m', linewidth=2) if len(self.accu_cv_arr) != 0: plt.plot(itera, self.accu_cv_arr, color='r', linewidth=2) plt.legend(["Train", "Cross Val"], loc='lower right') class AnimatePlot(AnimatePlotHelpers): """ Animate Plot Animates the plot which has only one argument for y axis Arguments: x_ax: X axis data for plotting y_ax: Y axis data for plotting X_lab: Label of the X axis of the plot Y_lab: Label of the Y axis of the plot plot_title: Title of the plot leg: Legend of the plot loca: Location of legends plot_col: Color of the plotted line direc: Directory in which the images should be saved freq: Frequency with which the plot should update """ def __init__(self, x_ax, y_ax, X_lab, Y_lab, plot_title, leg, loca, plot_col, direc, freq): AnimatePlotHelpers.__init__(self, x_ax, y_ax, X_lab, Y_lab, plot_title, leg, loca, plot_col, direc, freq) def __call__(self): y_vals = self.y_ax x_vals = self.x_ax l = 0 for k in range(1, len(x_vals) + 1): plt.xlabel(self.X_lab) plt.ylabel(self.Y_lab) plt.title(self.plot_title) plt.legend([self.leg], loc=self.loca) plt.plot(x_vals[0:l], y_vals[0:l], color=self.plot_col) l = l + 1 if k % self.freq == 0: plt.savefig(self.direc + 'plot{}.png'.format(k // self.freq)) return class AnimatePlotMulti(AnimatePlotHelpers): """ Animate Plot Multi Animates the plot with more than one arguments for Y axis Arguments: x_ax: X axis data for plotting y_ax: Y axis data for plotting X_lab: Label of the X axis of the plot Y_lab: Label of the Y axis of the plot plot_title: Title of the plot leg: Legend of the plot loca: Location of legends plot_col: Color of the plotted line direc: Directory in which the images should be saved freq: Frequency with which the plot should update """ def __init__(self, x_ax, y_ax, X_lab, Y_lab, plot_title, leg, loca, plot_col, direc, freq): AnimatePlotHelpers.__init__(self, x_ax, y_ax, X_lab, Y_lab, plot_title, leg, loca, plot_col, direc, freq) def __call__(self): x_vals = {} y_vals = {} for m in range(0, len(self.x_ax)): x_vals["X" + str(m)] = self.x_ax[m] for g in range(0, len(self.y_ax)): y_vals["Y" + str(g)] = self.y_ax[g] for h in range(0, len(self.leg)): plt.plot([], [], color=self.plot_col[h], label=self.leg[h]) plt.legend(loc=self.loca) l = 0 for k in range(1, len(self.x_ax[0]) + 1): plt.xlabel(self.X_lab) plt.ylabel(self.Y_lab) plt.title(self.plot_title) for d in range(0, len(self.x_ax)): if len(x_vals["X" + str(d)]) != 0: plt.plot(x_vals["X" + str(d)][0:l], y_vals["Y" + str(d)][0:l], color=self.plot_col[d]) l = l + 1 if k % self.freq == 0: plt.savefig(self.direc + 'plot{}.png'.format(k // self.freq)) return
42.251462
132
0.648304
1,123
7,225
3.978629
0.11398
0.043644
0.042972
0.048344
0.768129
0.734109
0.717099
0.709042
0.67547
0.654432
0
0.006787
0.265882
7,225
170
133
42.5
0.835596
0.423253
0
0.447368
0
0
0.049741
0
0
0
0
0
0
1
0.131579
false
0
0.026316
0
0.263158
0
0
0
0
null
0
0
0
0
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
06b272b0981a25dfb432ab8eb06fed0072d3f958
122
py
Python
__init__.py
JRegimbal/hpc-fast-trainer
011fbb542fdd3a9ddd4509b3a221654f3466ed45
[ "MIT" ]
null
null
null
__init__.py
JRegimbal/hpc-fast-trainer
011fbb542fdd3a9ddd4509b3a221654f3466ed45
[ "MIT" ]
1
2020-07-06T16:11:29.000Z
2020-07-06T16:11:29.000Z
__init__.py
JRegimbal/hpc-fast-trainer
011fbb542fdd3a9ddd4509b3a221654f3466ed45
[ "MIT" ]
null
null
null
__version__ = "0.0.1" from rodan.jobs import module_loader module_loader('rodan.jobs.hpc_fast_trainer.hpc_fast_trainer')
24.4
61
0.819672
20
122
4.5
0.6
0.2
0.311111
0
0
0
0
0
0
0
0
0.026549
0.07377
122
4
62
30.5
0.769912
0
0
0
0
0
0.401639
0.360656
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
ebee1785f628c253f2577a2f938a0aa79e90a495
61
py
Python
exec_tensorboard.py
lulindev/lenet-pytorch
a7de252c03df6b4d6d7d95b2a328fb3c3678dfd8
[ "MIT" ]
null
null
null
exec_tensorboard.py
lulindev/lenet-pytorch
a7de252c03df6b4d6d7d95b2a328fb3c3678dfd8
[ "MIT" ]
null
null
null
exec_tensorboard.py
lulindev/lenet-pytorch
a7de252c03df6b4d6d7d95b2a328fb3c3678dfd8
[ "MIT" ]
null
null
null
import os os.system('tensorboard --logdir=runs --bind_all')
15.25
49
0.737705
9
61
4.888889
0.888889
0
0
0
0
0
0
0
0
0
0
0
0.098361
61
3
50
20.333333
0.8
0
0
0
0
0
0.590164
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
ebfb12ae0547778670e28f4cbaa0e1a5f50190e4
233
py
Python
scripts/albert/common/strutil/__init__.py
ArthurRizar/dialog_state_tracking_bert
8ee16a854d0ccaad44918c4ede16851acf11ceaa
[ "Apache-2.0" ]
null
null
null
scripts/albert/common/strutil/__init__.py
ArthurRizar/dialog_state_tracking_bert
8ee16a854d0ccaad44918c4ede16851acf11ceaa
[ "Apache-2.0" ]
null
null
null
scripts/albert/common/strutil/__init__.py
ArthurRizar/dialog_state_tracking_bert
8ee16a854d0ccaad44918c4ede16851acf11ceaa
[ "Apache-2.0" ]
null
null
null
#coding:utf-8 ################################################### # File Name: __init__.py # Author: Meng Zhao # mail: @ # Created Time: Mon 26 Mar 2018 01:57:18 PM CST #=============================================================
25.888889
62
0.343348
22
233
3.454545
1
0
0
0
0
0
0
0
0
0
0
0.0625
0.107296
233
8
63
29.125
0.302885
0.72103
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
23269fbfa22fce299010234f1fed09fb21a89b6f
13,981
py
Python
rally_openstack/cfg/nova.py
RSE-Cambridge/rally-openstack
32bbc091bbce1db625a2fc22da28b32718befa13
[ "Apache-2.0" ]
null
null
null
rally_openstack/cfg/nova.py
RSE-Cambridge/rally-openstack
32bbc091bbce1db625a2fc22da28b32718befa13
[ "Apache-2.0" ]
null
null
null
rally_openstack/cfg/nova.py
RSE-Cambridge/rally-openstack
32bbc091bbce1db625a2fc22da28b32718befa13
[ "Apache-2.0" ]
1
2021-08-10T03:11:51.000Z
2021-08-10T03:11:51.000Z
# Copyright 2013: Mirantis Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. from rally.common import cfg OPTS = {"openstack": [ # prepoll delay, timeout, poll interval # "start": (0, 300, 1) cfg.FloatOpt("nova_server_start_prepoll_delay", default=0.0, deprecated_group="benchmark", help="Time to sleep after start before polling for status"), cfg.FloatOpt("nova_server_start_timeout", default=300.0, deprecated_group="benchmark", help="Server start timeout"), cfg.FloatOpt("nova_server_start_poll_interval", deprecated_group="benchmark", default=1.0, help="Server start poll interval"), # "stop": (0, 300, 2) cfg.FloatOpt("nova_server_stop_prepoll_delay", default=0.0, help="Time to sleep after stop before polling for status"), cfg.FloatOpt("nova_server_stop_timeout", default=300.0, deprecated_group="benchmark", help="Server stop timeout"), cfg.FloatOpt("nova_server_stop_poll_interval", default=2.0, deprecated_group="benchmark", help="Server stop poll interval"), # "boot": (1, 300, 1) cfg.FloatOpt("nova_server_boot_prepoll_delay", default=1.0, deprecated_group="benchmark", help="Time to sleep after boot before polling for status"), cfg.FloatOpt("nova_server_boot_timeout", default=300.0, deprecated_group="benchmark", help="Server boot timeout"), cfg.FloatOpt("nova_server_boot_poll_interval", default=2.0, deprecated_group="benchmark", help="Server boot poll interval"), # "delete": (2, 300, 2) cfg.FloatOpt("nova_server_delete_prepoll_delay", default=2.0, deprecated_group="benchmark", help="Time to sleep after delete before polling for status"), cfg.FloatOpt("nova_server_delete_timeout", default=300.0, deprecated_group="benchmark", help="Server delete timeout"), cfg.FloatOpt("nova_server_delete_poll_interval", default=2.0, deprecated_group="benchmark", help="Server delete poll interval"), # "reboot": (2, 300, 2) cfg.FloatOpt("nova_server_reboot_prepoll_delay", default=2.0, deprecated_group="benchmark", help="Time to sleep after reboot before polling for status"), cfg.FloatOpt("nova_server_reboot_timeout", default=300.0, deprecated_group="benchmark", help="Server reboot timeout"), cfg.FloatOpt("nova_server_reboot_poll_interval", default=2.0, deprecated_group="benchmark", help="Server reboot poll interval"), # "rebuild": (1, 300, 1) cfg.FloatOpt("nova_server_rebuild_prepoll_delay", default=1.0, deprecated_group="benchmark", help="Time to sleep after rebuild before polling for status"), cfg.FloatOpt("nova_server_rebuild_timeout", default=300.0, deprecated_group="benchmark", help="Server rebuild timeout"), cfg.FloatOpt("nova_server_rebuild_poll_interval", default=1.0, deprecated_group="benchmark", help="Server rebuild poll interval"), # "rescue": (2, 300, 2) cfg.FloatOpt("nova_server_rescue_prepoll_delay", default=2.0, deprecated_group="benchmark", help="Time to sleep after rescue before polling for status"), cfg.FloatOpt("nova_server_rescue_timeout", default=300.0, deprecated_group="benchmark", help="Server rescue timeout"), cfg.FloatOpt("nova_server_rescue_poll_interval", default=2.0, deprecated_group="benchmark", help="Server rescue poll interval"), # "unrescue": (2, 300, 2) cfg.FloatOpt("nova_server_unrescue_prepoll_delay", default=2.0, deprecated_group="benchmark", help="Time to sleep after unrescue " "before polling for status"), cfg.FloatOpt("nova_server_unrescue_timeout", default=300.0, deprecated_group="benchmark", help="Server unrescue timeout"), cfg.FloatOpt("nova_server_unrescue_poll_interval", default=2.0, deprecated_group="benchmark", help="Server unrescue poll interval"), # "suspend": (2, 300, 2) cfg.FloatOpt("nova_server_suspend_prepoll_delay", default=2.0, deprecated_group="benchmark", help="Time to sleep after suspend before polling for status"), cfg.FloatOpt("nova_server_suspend_timeout", default=300.0, deprecated_group="benchmark", help="Server suspend timeout"), cfg.FloatOpt("nova_server_suspend_poll_interval", default=2.0, deprecated_group="benchmark", help="Server suspend poll interval"), # "resume": (2, 300, 2) cfg.FloatOpt("nova_server_resume_prepoll_delay", default=2.0, deprecated_group="benchmark", help="Time to sleep after resume before polling for status"), cfg.FloatOpt("nova_server_resume_timeout", default=300.0, deprecated_group="benchmark", help="Server resume timeout"), cfg.FloatOpt("nova_server_resume_poll_interval", default=2.0, deprecated_group="benchmark", help="Server resume poll interval"), # "pause": (2, 300, 2) cfg.FloatOpt("nova_server_pause_prepoll_delay", default=2.0, deprecated_group="benchmark", help="Time to sleep after pause before polling for status"), cfg.FloatOpt("nova_server_pause_timeout", default=300.0, deprecated_group="benchmark", help="Server pause timeout"), cfg.FloatOpt("nova_server_pause_poll_interval", default=2.0, deprecated_group="benchmark", help="Server pause poll interval"), # "unpause": (2, 300, 2) cfg.FloatOpt("nova_server_unpause_prepoll_delay", default=2.0, deprecated_group="benchmark", help="Time to sleep after unpause before polling for status"), cfg.FloatOpt("nova_server_unpause_timeout", default=300.0, deprecated_group="benchmark", help="Server unpause timeout"), cfg.FloatOpt("nova_server_unpause_poll_interval", default=2.0, deprecated_group="benchmark", help="Server unpause poll interval"), # "shelve": (2, 300, 2) cfg.FloatOpt("nova_server_shelve_prepoll_delay", default=2.0, deprecated_group="benchmark", help="Time to sleep after shelve before polling for status"), cfg.FloatOpt("nova_server_shelve_timeout", default=300.0, deprecated_group="benchmark", help="Server shelve timeout"), cfg.FloatOpt("nova_server_shelve_poll_interval", default=2.0, deprecated_group="benchmark", help="Server shelve poll interval"), # "unshelve": (2, 300, 2) cfg.FloatOpt("nova_server_unshelve_prepoll_delay", default=2.0, deprecated_group="benchmark", help="Time to sleep after unshelve before " "polling for status"), cfg.FloatOpt("nova_server_unshelve_timeout", default=300.0, deprecated_group="benchmark", help="Server unshelve timeout"), cfg.FloatOpt("nova_server_unshelve_poll_interval", default=2.0, deprecated_group="benchmark", help="Server unshelve poll interval"), # "image_create": (0, 300, 2) cfg.FloatOpt("nova_server_image_create_prepoll_delay", default=0.0, deprecated_group="benchmark", help="Time to sleep after image_create before polling" " for status"), cfg.FloatOpt("nova_server_image_create_timeout", default=300.0, deprecated_group="benchmark", help="Server image_create timeout"), cfg.FloatOpt("nova_server_image_create_poll_interval", default=2.0, deprecated_group="benchmark", help="Server image_create poll interval"), # "image_delete": (0, 300, 2) cfg.FloatOpt("nova_server_image_delete_prepoll_delay", default=0.0, deprecated_group="benchmark", help="Time to sleep after image_delete before polling" " for status"), cfg.FloatOpt("nova_server_image_delete_timeout", default=300.0, deprecated_group="benchmark", help="Server image_delete timeout"), cfg.FloatOpt("nova_server_image_delete_poll_interval", default=2.0, deprecated_group="benchmark", help="Server image_delete poll interval"), # "resize": (2, 400, 5) cfg.FloatOpt("nova_server_resize_prepoll_delay", default=2.0, deprecated_group="benchmark", help="Time to sleep after resize before polling for status"), cfg.FloatOpt("nova_server_resize_timeout", default=400.0, deprecated_group="benchmark", help="Server resize timeout"), cfg.FloatOpt("nova_server_resize_poll_interval", default=5.0, deprecated_group="benchmark", help="Server resize poll interval"), # "resize_confirm": (0, 200, 2) cfg.FloatOpt("nova_server_resize_confirm_prepoll_delay", default=0.0, deprecated_group="benchmark", help="Time to sleep after resize_confirm before polling" " for status"), cfg.FloatOpt("nova_server_resize_confirm_timeout", default=200.0, deprecated_group="benchmark", help="Server resize_confirm timeout"), cfg.FloatOpt("nova_server_resize_confirm_poll_interval", default=2.0, deprecated_group="benchmark", help="Server resize_confirm poll interval"), # "resize_revert": (0, 200, 2) cfg.FloatOpt("nova_server_resize_revert_prepoll_delay", default=0.0, deprecated_group="benchmark", help="Time to sleep after resize_revert before polling" " for status"), cfg.FloatOpt("nova_server_resize_revert_timeout", default=200.0, deprecated_group="benchmark", help="Server resize_revert timeout"), cfg.FloatOpt("nova_server_resize_revert_poll_interval", default=2.0, deprecated_group="benchmark", help="Server resize_revert poll interval"), # "live_migrate": (1, 400, 2) cfg.FloatOpt("nova_server_live_migrate_prepoll_delay", default=1.0, deprecated_group="benchmark", help="Time to sleep after live_migrate before polling" " for status"), cfg.FloatOpt("nova_server_live_migrate_timeout", default=400.0, deprecated_group="benchmark", help="Server live_migrate timeout"), cfg.FloatOpt("nova_server_live_migrate_poll_interval", default=2.0, deprecated_group="benchmark", help="Server live_migrate poll interval"), # "migrate": (1, 400, 2) cfg.FloatOpt("nova_server_migrate_prepoll_delay", default=1.0, deprecated_group="benchmark", help="Time to sleep after migrate before polling for status"), cfg.FloatOpt("nova_server_migrate_timeout", default=400.0, deprecated_group="benchmark", help="Server migrate timeout"), cfg.FloatOpt("nova_server_migrate_poll_interval", default=2.0, deprecated_group="benchmark", help="Server migrate poll interval"), # "detach": cfg.FloatOpt("nova_detach_volume_timeout", default=200.0, deprecated_group="benchmark", help="Nova volume detach timeout"), cfg.FloatOpt("nova_detach_volume_poll_interval", default=2.0, deprecated_group="benchmark", help="Nova volume detach poll interval") ]}
45.245955
79
0.574852
1,455
13,981
5.292096
0.082474
0.092857
0.126623
0.171818
0.858571
0.756104
0.71039
0.632208
0.515195
0.362597
0
0.03061
0.329376
13,981
308
80
45.392857
0.790636
0.081897
0
0.494424
0
0
0.38295
0.160416
0
0
0
0
0
1
0
false
0
0.003717
0
0.003717
0
0
0
0
null
0
0
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
232757c4e72b796a84c711d1ceca6367fb2991be
154
py
Python
app/services/base.py
bmdefreitas/star-wars-api-python
e118843b7a304433549085f5ee6a08bf455b4d43
[ "Apache-2.0" ]
null
null
null
app/services/base.py
bmdefreitas/star-wars-api-python
e118843b7a304433549085f5ee6a08bf455b4d43
[ "Apache-2.0" ]
null
null
null
app/services/base.py
bmdefreitas/star-wars-api-python
e118843b7a304433549085f5ee6a08bf455b4d43
[ "Apache-2.0" ]
null
null
null
from flask_restful import abort class BaseService: def not_found(self, id, name): abort(404, message="{} {} não encontrado".format(name, id))
30.8
67
0.688312
21
154
4.952381
0.857143
0
0
0
0
0
0
0
0
0
0
0.02381
0.181818
154
5
67
30.8
0.801587
0
0
0
0
0
0.129032
0
0
0
0
0
0
1
0.25
false
0
0.25
0
0.75
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
4
88fd8be3dea61ead725a89265b74fc6f62d9b2a7
208
py
Python
book_app/urls.py
paulwilliamsen/django_lender
245017feeefdee8bcd3301a6eec3f601e4503b37
[ "MIT" ]
null
null
null
book_app/urls.py
paulwilliamsen/django_lender
245017feeefdee8bcd3301a6eec3f601e4503b37
[ "MIT" ]
null
null
null
book_app/urls.py
paulwilliamsen/django_lender
245017feeefdee8bcd3301a6eec3f601e4503b37
[ "MIT" ]
null
null
null
from .views import book_detail_view, book_list_view from django.urls import path urlpatterns = [ path('<int:pk>', book_detail_view, name='book_detail'), path('', book_list_view, name='book_list'), ]
26
59
0.725962
31
208
4.548387
0.451613
0.212766
0.198582
0
0
0
0
0
0
0
0
0
0.134615
208
7
60
29.714286
0.783333
0
0
0
0
0
0.134615
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
002174d0c0be6b9c29c5a5794535e3a46119a934
633
py
Python
tests/test_gy.py
cls1991/gy
65ad594a2d238d8954e39816ed1a50b081ab4f9b
[ "Apache-2.0" ]
21
2017-12-19T14:30:15.000Z
2021-04-03T16:54:02.000Z
tests/test_gy.py
cls1991/gy
65ad594a2d238d8954e39816ed1a50b081ab4f9b
[ "Apache-2.0" ]
1
2021-07-27T17:16:00.000Z
2021-07-27T17:16:00.000Z
tests/test_gy.py
cls1991/gy
65ad594a2d238d8954e39816ed1a50b081ab4f9b
[ "Apache-2.0" ]
6
2017-12-20T02:30:24.000Z
2018-01-08T07:18:36.000Z
# coding: utf8 import subprocess def execute(cmd): out = None if cmd: try: out, err = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE).communicate() except ValueError: pass return out def test_gy(): assert execute(['gy']) def test_gy_update(): assert execute(['gy', 'update']) def test_gy_ls(): assert execute(['gy', 'ls']) def test_gy_generate(): assert execute(['gy', 'generate']) assert execute(['gy', 'generate', 'java']) assert execute(['gy', 'generate', 'java', 'lua']) def test_gy_help(): assert execute(['gy', '--help'])
16.657895
94
0.589258
77
633
4.727273
0.402597
0.25
0.288462
0.18956
0.239011
0.153846
0
0
0
0
0
0.002079
0.240126
633
37
95
17.108108
0.754678
0.018957
0
0
0
0
0.101777
0
0
0
0
0
0.333333
1
0.285714
false
0.047619
0.047619
0
0.380952
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
4
0031f04f75a141304c93027877d852466fab5e6f
354
py
Python
ch_02/src/ecommerce/products.py
real-slim-chadi/Python-Object-Oriented-Programming---4th-edition
7c486866171786b620795fa33a79ec9ac9a8ba1b
[ "MIT" ]
43
2021-06-03T18:39:09.000Z
2022-03-29T20:32:13.000Z
ch_02/src/ecommerce/products.py
real-slim-chadi/Python-Object-Oriented-Programming---4th-edition
7c486866171786b620795fa33a79ec9ac9a8ba1b
[ "MIT" ]
16
2022-02-08T22:41:30.000Z
2022-03-25T22:48:28.000Z
ch_02/src/ecommerce/products.py
real-slim-chadi/Python-Object-Oriented-Programming---4th-edition
7c486866171786b620795fa33a79ec9ac9a8ba1b
[ "MIT" ]
36
2021-06-19T07:14:09.000Z
2022-03-12T22:17:09.000Z
""" Python 3 Object-Oriented Programming 4th ed. Chapter 2, Objects in Python. """ import ecommerce.database as database from .database import Database from .database import Database as DB from .database import Database, Query from .contact.email import send_mail class Product: def __init__(self, name: str) -> None: self.name = name
17.7
44
0.737288
49
354
5.22449
0.612245
0.140625
0.210938
0.304688
0.234375
0
0
0
0
0
0
0.010417
0.186441
354
19
45
18.631579
0.878472
0.211864
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.625
0
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
0
0
0
1
0
1
0
0
4
00501b0dda7122f988b4d059dcf03fda6081cfaf
165
py
Python
spider/wiki/wiki/items.py
855team/__Pedia-Search__
f54db7c7cf2e0d99168f1cd4be026b5e488df6fe
[ "MIT" ]
null
null
null
spider/wiki/wiki/items.py
855team/__Pedia-Search__
f54db7c7cf2e0d99168f1cd4be026b5e488df6fe
[ "MIT" ]
null
null
null
spider/wiki/wiki/items.py
855team/__Pedia-Search__
f54db7c7cf2e0d99168f1cd4be026b5e488df6fe
[ "MIT" ]
1
2021-02-23T11:56:49.000Z
2021-02-23T11:56:49.000Z
import scrapy class WikiItem(scrapy.Item): page_id = scrapy.Field() title = scrapy.Field() sections = scrapy.Field() linked_items = scrapy.Field()
18.333333
33
0.672727
20
165
5.45
0.6
0.40367
0
0
0
0
0
0
0
0
0
0
0.206061
165
8
34
20.625
0.832061
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.166667
0
1
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
4
cc6391ba46d7503c49465c4d7f176fea1a547869
5,698
py
Python
python/test/test_search_api.py
openlattice/api-clients
1d5be9861785b295089b732f37464e31bf80c8ca
[ "Apache-2.0" ]
null
null
null
python/test/test_search_api.py
openlattice/api-clients
1d5be9861785b295089b732f37464e31bf80c8ca
[ "Apache-2.0" ]
1
2021-01-20T00:20:01.000Z
2021-01-20T00:20:01.000Z
python/test/test_search_api.py
openlattice/api-clients
1d5be9861785b295089b732f37464e31bf80c8ca
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ OpenLattice API OpenLattice API # noqa: E501 The version of the OpenAPI document: 0.0.1 Contact: support@openlattice.com Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest import openlattice from openlattice.api.search_api import SearchApi # noqa: E501 from openlattice.rest import ApiException class TestSearchApi(unittest.TestCase): """SearchApi unit test stubs""" def setUp(self): self.api = openlattice.api.search_api.SearchApi() # noqa: E501 def tearDown(self): pass def test_execute_advanced_entity_set_data_query(self): """Test case for execute_advanced_entity_set_data_query Executes a search over the data of a given entity set to find rows that match the search term # noqa: E501 """ pass def test_execute_app_search(self): """Test case for execute_app_search Executes a search over all apps to find ones that match the given search term # noqa: E501 """ pass def test_execute_app_type_search(self): """Test case for execute_app_type_search Executes a search over all app types to find ones that match the given search term # noqa: E501 """ pass def test_execute_association_type_search(self): """Test case for execute_association_type_search Executes a search over all association types to find ones that match the given search term # noqa: E501 """ pass def test_execute_entity_neighbor_search(self): """Test case for execute_entity_neighbor_search Executes a search for all neighbors of an entity that are connected by an association # noqa: E501 """ pass def test_execute_entity_neighbor_search_bulk(self): """Test case for execute_entity_neighbor_search_bulk Executes a search for all neighbors of multiple entities of the same entity set that are connected by an association # noqa: E501 """ pass def test_execute_entity_set_collection_search(self): """Test case for execute_entity_set_collection_search Executes a search over all EntitySetCollections to find ones that match the given search term # noqa: E501 """ pass def test_execute_entity_set_data_query(self): """Test case for execute_entity_set_data_query Executes a search over the data of a given entity set to find rows that match the search term # noqa: E501 """ pass def test_execute_entity_set_keyword_query(self): """Test case for execute_entity_set_keyword_query The query, entityType, and propertyTypes params are all optional, but at least one must be specified otherwise an error will be thrown. All specified params are required to be present in each entity set returned. If entityType and propertyTypes are both specified, the propertyTypes param will be ignored. # noqa: E501 """ pass def test_execute_entity_type_collection_search(self): """Test case for execute_entity_type_collection_search Executes a search over all EntityTypeCollections to find ones that match the given search term # noqa: E501 """ pass def test_execute_entity_type_search(self): """Test case for execute_entity_type_search Executes a search over all entity types to find ones that match the given search term # noqa: E501 """ pass def test_execute_filtered_entity_neighbor_id_search(self): """Test case for execute_filtered_entity_neighbor_id_search Executes a search for all neighbors of multiple entities of the same entity set that are connected by an association and returns a simple version of the neighborDetails # noqa: E501 """ pass def test_execute_filtered_entity_neighbor_search(self): """Test case for execute_filtered_entity_neighbor_search Executes a search for all neighbors of multiple entities of the same entity set that are connected by an association # noqa: E501 """ pass def test_execute_fqn_property_type_search(self): """Test case for execute_fqn_property_type_search Executes a search over all property types to find ones that match the given name and namespace, including partial matches # noqa: E501 """ pass def test_execute_organization_search(self): """Test case for execute_organization_search Executes a search over all organizations to find ones that match the given search term # noqa: E501 """ pass def test_execute_property_type_search(self): """Test case for execute_property_type_search Executes a search over all property types to find ones that match the given search term # noqa: E501 """ pass def test_get_entity_sets(self): """Test case for get_entity_sets Executes a search over all existing entity sets to populate the home page. The path parameters instruct which page to return and how large the page should be. # noqa: E501 """ pass def test_get_popular_entity_set(self): """Test case for get_popular_entity_set Get the most popular entity sets. # noqa: E501 """ pass def test_search_entity_set_data(self): """Test case for search_entity_set_data Executes a search over the data of a given entity set to find rows that match the search term # noqa: E501 """ pass if __name__ == '__main__': unittest.main()
33.916667
327
0.696385
785
5,698
4.84586
0.173248
0.046267
0.054942
0.074921
0.695321
0.666404
0.623817
0.553102
0.460305
0.391693
0
0.016474
0.2543
5,698
167
328
34.11976
0.878795
0.606704
0
0.4
1
0
0.004474
0
0
0
0
0
0
1
0.42
false
0.4
0.1
0
0.54
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
4
cc81e9004a7866dc381f7ee9b353cb37985e0f2e
379
py
Python
apps/alerts/migrations/0003_auto_20201212_1255.py
npujol/ebay_alerts
f1ca2a543fa0cd8d6aa803a54a4e226a3014da19
[ "MIT" ]
1
2021-05-10T22:59:39.000Z
2021-05-10T22:59:39.000Z
apps/alerts/migrations/0003_auto_20201212_1255.py
npujol/ebay_alerts
f1ca2a543fa0cd8d6aa803a54a4e226a3014da19
[ "MIT" ]
13
2020-12-10T13:52:04.000Z
2021-02-01T10:13:13.000Z
apps/alerts/migrations/0003_auto_20201212_1255.py
npujol/ebay_alerts
f1ca2a543fa0cd8d6aa803a54a4e226a3014da19
[ "MIT" ]
null
null
null
# Generated by Django 3.1.4 on 2020-12-12 12:55 from django.db import migrations class Migration(migrations.Migration): dependencies = [("alerts", "0002_auto_20201211_1205")] operations = [ migrations.RenameField(model_name="account", old_name="id", new_name="uuid"), migrations.RenameField(model_name="alert", old_name="id", new_name="uuid"), ]
27.071429
85
0.69657
50
379
5.1
0.64
0.031373
0.203922
0.235294
0.156863
0.156863
0
0
0
0
0
0.097484
0.16095
379
13
86
29.153846
0.704403
0.118734
0
0
1
0
0.159639
0.069277
0
0
0
0
0
1
0
false
0
0.142857
0
0.571429
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
4
cc8b686ee1bcc22f71b556b3ef966655658aac83
138
py
Python
countercalc/looping_calculator.py
phizzl3/PrintShopScripts
26cf12d189836907370fd8671ef0d8eba7cd3411
[ "MIT" ]
1
2021-01-19T20:36:35.000Z
2021-01-19T20:36:35.000Z
countercalc/looping_calculator.py
phizzl3/counter-calculator
26cf12d189836907370fd8671ef0d8eba7cd3411
[ "MIT" ]
null
null
null
countercalc/looping_calculator.py
phizzl3/counter-calculator
26cf12d189836907370fd8671ef0d8eba7cd3411
[ "MIT" ]
null
null
null
import os from counter_calculator import main if __name__ == "__main__": while True: os.system('cls') main()
17.25
35
0.594203
16
138
4.5625
0.75
0
0
0
0
0
0
0
0
0
0
0
0.311594
138
8
36
17.25
0.768421
0
0
0
0
0
0.079137
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
cc93e98502430b71cf6c3685aa25811ef975753a
163
py
Python
mysterious-mice/spacebook/guestbook/urls.py
Vthechamp22/summer-code-jam-2021
0a8bf1f22f6c73300891fd779da36efd8e1304c1
[ "MIT" ]
40
2020-08-02T07:38:22.000Z
2021-07-26T01:46:50.000Z
mysterious-mice/spacebook/guestbook/urls.py
Vthechamp22/summer-code-jam-2021
0a8bf1f22f6c73300891fd779da36efd8e1304c1
[ "MIT" ]
134
2020-07-31T12:15:45.000Z
2020-12-13T04:42:19.000Z
mysterious-mice/spacebook/guestbook/urls.py
Vthechamp22/summer-code-jam-2021
0a8bf1f22f6c73300891fd779da36efd8e1304c1
[ "MIT" ]
101
2020-07-31T12:00:47.000Z
2021-11-01T09:06:58.000Z
from django.urls import path from .views import Guestbook app_name = "guestbook" urlpatterns = [ path("guestbook/", Guestbook.as_view(), name="guestbook"), ]
20.375
62
0.723926
20
163
5.8
0.6
0.224138
0
0
0
0
0
0
0
0
0
0
0.141104
163
7
63
23.285714
0.828571
0
0
0
0
0
0.171779
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
cccdc29675c63d0c8a4501f0bccf0b25dd9b3825
128
py
Python
aadnes_journey/screens/inventory.py
mradrianhh/Aadnes-journey
13d6065eb0997b5ee9ea64e38de104d035178ef4
[ "MIT" ]
null
null
null
aadnes_journey/screens/inventory.py
mradrianhh/Aadnes-journey
13d6065eb0997b5ee9ea64e38de104d035178ef4
[ "MIT" ]
null
null
null
aadnes_journey/screens/inventory.py
mradrianhh/Aadnes-journey
13d6065eb0997b5ee9ea64e38de104d035178ef4
[ "MIT" ]
null
null
null
from .screen_interface import ScreenInterface class Inventory(ScreenInterface): def show(self): print("Inventory")
21.333333
45
0.742188
13
128
7.230769
0.846154
0
0
0
0
0
0
0
0
0
0
0
0.171875
128
6
46
21.333333
0.886792
0
0
0
0
0
0.069767
0
0
0
0
0
0
1
0.25
false
0
0.25
0
0.75
0.25
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
4
aeac4b04050db57b1c8153d4ed370afb81de5d33
85
py
Python
nginx/datadog_checks/nginx/__init__.py
chotiwat/integrations-core
57a4437790cafcb769e120aa64d84aaecbf6a414
[ "BSD-3-Clause" ]
null
null
null
nginx/datadog_checks/nginx/__init__.py
chotiwat/integrations-core
57a4437790cafcb769e120aa64d84aaecbf6a414
[ "BSD-3-Clause" ]
1
2021-08-02T14:53:43.000Z
2021-08-02T14:53:43.000Z
nginx/datadog_checks/nginx/__init__.py
chotiwat/integrations-core
57a4437790cafcb769e120aa64d84aaecbf6a414
[ "BSD-3-Clause" ]
1
2021-08-02T14:36:24.000Z
2021-08-02T14:36:24.000Z
from . import nginx Nginx = nginx.Nginx __version__ = "1.2.0" __all__ = ['nginx']
10.625
21
0.658824
12
85
4
0.666667
0.625
0.625
0
0
0
0
0
0
0
0
0.043478
0.188235
85
7
22
12.142857
0.652174
0
0
0
0
0
0.117647
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
aeb038eb80c04ff90d814889556230e0e496797d
10,651
py
Python
Soft Cosine Measure/filter_same_elements_from_queries.py
frankatimm/BA_JoFra
3c618e663691061cc402a3124b901e94bd799e48
[ "MIT" ]
null
null
null
Soft Cosine Measure/filter_same_elements_from_queries.py
frankatimm/BA_JoFra
3c618e663691061cc402a3124b901e94bd799e48
[ "MIT" ]
null
null
null
Soft Cosine Measure/filter_same_elements_from_queries.py
frankatimm/BA_JoFra
3c618e663691061cc402a3124b901e94bd799e48
[ "MIT" ]
null
null
null
# query_basic = 'Mann, Männer, Frau, Frauen, Kinder, Menschen, Mensch, Jugendliche, Teenager, Familie, Jung, Alt, Identität, Religion, Kultur, Herkunft, Gesellschaft, Deutschland, Ehefrau, Ehemann, Ehepaar' # query_basic = 'Mann, Männer, Frau, Frauen, Kinder, Menschen, Mensch, Jugendliche, Teenager, Familie, Jung, Alt, Identität, Religion, Kultur, Herkunft, Gesellschaft, Deutschland, Ehefrau, Ehemann, Ehepaar Mensch Deutschland Land Mensch Demokrat Europa Staat Afd Kind Unternehmen Bildung Chance Jahr Bürger Familie Zukunft Eu Wirtschaft Sicherheit Freiheit Ziel Schule Euro Entwicklung Welt Gesellschaft Weg Schutz Möglichkeit Leistung Arbeit Seite Verantwortung Politik Leben Recht Zeit Union Bereich Digitalisierung Forschung Demokratie Arbeitsplatz Beispiel Wettbewerb Rahmen Wohlstand Ausbau Bund Interesse Förderung Maßnahme Prozent Frau Beitrag Zusammenarbeit Aufgabe Ausbildung Investition Infrastruktur Mittel Wachstum Teil Steuer Hochschule Geld Einführung Integration Versorgung Ebene Herausforderung Entscheidung Grundlage Eltern Raum Regel Marktwirtschaft Landwirtschaft Bürgerinnen Datum Partner Kultur Rahmenbedingung Dienst Energie Region Chen Stärkung Einsatz Voraussetzung Gesetz Betrieb Ge Programm Finanzierung Kommune Innovation Vielfalt Rente Lösung Hilfe Cdu Csu Technologie Unterstützung Reform Mittelstand Prinzip Erfolg Beruf Altersvorsorge Schritt Bürokratie Zugang Form Idee Generation Bundestagswahl Rechtsstaat Partei Regelung Bundesregierung Markt Pflege Mobilität Grundgesetz Ort Schüler Nutzung Million Arbeitsmarkt Angebot Anreiz Einkommen Alter Arbeitnehmer Grenze Abschaffung Kosten Bundeswehr Blick Menschenrecht Stadt Zahl Verwaltung Wert Frieden Migration Nation Volk Milliarde Rolle Parlament Art Standard Einrichtung Kraft Nato Kontorolle Sprache Bedeutung Arbeitgeber Produkt Ezb Fortschritt Wettbewerbsfähigkeit Verbraucher Asyl Selbstbestimmung Industrie Höhe Anspruch Internet % Studierend Schuld Verbesserung Instrument Sinn Hand Ausland Grund Wissenschaft Mann Beschäftigt Behinderung Polizei Kooperation Fall System Usa Lernen Stärke Problem Regierungsprogramm Türkei Vorbild Patient Finanz Kriminalität Währung' # # query_generic_masculine = ' Kinder Länder Lehrer Dauer Schweizer Steuerzahler Ferner Mitarbeiter Zeitalter Mitglieder Männer Träger Opfer Wälder Asylbewerber Krankenhäuser Erbschaftsteuer Gründer Täter Rentner Miteinander Digitalsteuer Mutter Väter Völker Bundesländer Vermögensteuer Unternehmer Anbieter Grunderwerbsteuer Umsatzsteuer Gewerbesteuer Einkommensteuer Wasser Tarifpartner Sparer Pariser Regierungspolitiker Vorreiter Minister Stabilitätsanker Verkehrsträger Hinweisgeber Vaterländer Mieter Impulsgeber Wähler Vermögenssteuer Moderner Gelder Forscher Sozialer Straftäter Neuer Politiker Master Sozialgesetzbücher Beitragszahler Stromsteuer Fächer Krimineller Rentenalter Fairer Digitalzeitalter Transfer Güter Richter Meister Freier Mütter Magister Internationaler Urheber Leistungsträger Gefährder Partnerländer Bewerber Ausländer Einwanderer Geschlechter Entwicklungsländer Bezugsdauer Leider September Vorbilder Handwerker Vater Digitaler Bundeskanzler Nutzer Künstlicher Riester Nummer Vertreter Wirtschaftsgüter Genfer Geldgeber Ämter Leiharbeitnehmer Parlamentarier Gläubiger Grundpfeiler Mittelmeer Volksvertreter Finger Leistungsempfänger Bündnispartner Hersteller Grundsteuer Wissenschaftler Hunger Mandatsträger Besserer Zentraler Europäer Flexiblerer Aussiedler Aktivierender Whistleblower Fehler Erzieher Biersteuer Flexibler Newcomer Wettbewerber Erneuerbarer Nebeneinander Neugier Klassenzimmer Auftraggeber Pfeiler Herkunftsländer Renteneintrittsalter Betreiber Anleger CO-neutraler Zweitwohnungssteuer MINT-Fächer Zuwanderer Deutscher Finanztransaktionssteuer Jugendämter Geber Angehöriger Energieträger Königsteiner Justizminister Gegner Effektiver Sozialpartner Oktober Eigentümer Berliner Jäger Sicher Landesämter Entscheidungsträger Freiberufler Strafmündigkeitsalter November EU-Ausländer Mehrwertsteuer Technischer Eckpfeiler Schaumweinsteuer Fischereisteuer Generationsübergreifender Treiber Kindesalter Nachhaltiger Bezieher Verfassungsrechtler Einwohner Körperschaftsteuer Einkommensteuerzahler Speicher Voller Erfinder Quereinsteiger Mehrgenerationenhäuser Wirksamer Beschäftigtenvertreter Vermieter Rentenbezieher Gewässer Zeitarbeitnehmer Per Lindner Finanzminister Schiller Regenwälder Weimarer Semester Anwohner Gesetzgeber Wachstumstreiber Handelspartner Entwickler Gesellschafter Weder Trinkwasser Erzeuger Kleinkinder Stromzähler Wider Schlecker Ungeborener Ehepartner Luftverkehrssteuer Schuldner Fördergelder Existenzgründer Steuerschlupflöcher Tier Marschflugkörper Legalwaffenbesitzer Wiener Gemeinsamer Stimmungsbilder Schulabgänger Clan-Mitglieder Flüchtlingskinder Aufenthaltsdauer Marktteilnehmer Sportler Personenstandsregister Standesämter Abgeltungsteuer Berufsschüler Fürsprecher Prozentualer Automobilhersteller Deutsch-französischer Aachener Spätaussiedler Kandidatenländer Urlaubssemester EU-Bürger Berufsfelder Niedriglohnempfänger Abgelehnter Asylantragsteller Schwellenländer Verfahrensdauer EU-Länder Endlager Tech-Gründer Ausreisepflichtiger Erbschaftssteuer Dienstleister Identitätstäuscher Mitwirkungsverweigerer Datenträger Mitbürger Papier Alzheimer Amtsträger Quantencomputer Provider Parlamentarischer' query_basic = 'Mann, Männer, Frau, Frauen, Kinder, Menschen, Mensch, Jugendliche, Teenager, Familie, Jung, Alt, Identität, Religion, Kultur, Herkunft, Gesellschaft, Deutschland, Ehefrau, Ehemann, Ehepaar Mensch Grüne Bündnis Land Zukunft Deutschland Bundestagswahlprogramm Europa Arbeit Kind Zeit Jahr Unternehmen Gesellschaft Recht Euro Ziel Frau Politik Leben Eu Wirtschaft Kapitel Energie Bildung Beschäftigt Wandel Kommune Welt Schutz Demokratie Bürger Staat Bund Familie Entwicklung Teilhabe Zugang Prozent Schule Linke Weg Ge Umwelt Ort Einkommen Stadt Förderung Möglichkeit Chance Sicherheit Krise Energiewende Bereich Verantwortung Beispiel Angebot Arbeitsplatz Ausbau Lohn Pflege Mittel Infrastruktur Investition Region Kosten Ausbildung Geld JugendlicheBeitrag Forschung Aufgabe Teil Freiheit Gerechtigkeit Vielfalt Klimaschutz Grundlage Finanzierung Raum Produkt Rente Hand Leistung Ebene Betrieb Bürgerinnen Armut Bank Mobilität Blick Mut Einsatz Hochschule Rahmen Kultur Maßnahme Behinderung Versorgung Tier Anspruch Bundesregierung Million Standard Schritt Markt Union Unterstützung Alter Landwirtschaft Reform Programm Eltern Wohlstand Digitalisierung Regel Netz Gesundheit Interesse Natur Gewalt Frage Hilfe Parlament Menschenrecht Chen Erfolg Struktur Form Transparenz Verbraucher Beteiligung Verkehr Beruf Folge Wissenschaft Bedingung Industrie Entscheidung Sicherung Projekt Weiterbildung Job Voraussetzung Mann Arbeitsbedingung Stärkung Dienstleistung Umbau Wohnung Milliarde Haushalt Einführung Gesetz Einrichtung Internet Qualität Datum Konzern Kopf Nutzung Frieden Innovation Sinn Personal Verfügung Risiko Kontorolle Strom Seite Herausforderung Anreiz Platz Lösung Ressource Steuer Zusammenarbeit Grenze Regelung Auto Wettbewerb Gewerkschaft System Rolle Beschäftigung Regierung Lebensmittel Miete Spd Arbeitsmarkt Ende Problem Initiative Engagement Handeln Kitas Finanzmarkt' query_gender_neutral = 'BürgerInnen VerbraucherInnen UrheberInnen ArbeitnehmerInnen SteuerzahlerInnen ArbeitgeberInnen NutzerInnen ErzieherInnen rInnen KünstlerInnen MitarbeiterInnen SchülerInnen PatientInnen BäuerInnen braucherInnen GläubigerInnen Innen UnternehmerInnen ManagerInnen LehrerInnen cherInnen KundInnen ExpertInnen LeiharbeiterInnen terInnen SparerInnen MieterInnen EU-BürgerInnen UnionsbürgerInnen MigrantInnen FreiberuflerInnen NeurentnerInnen HändlerInnen ProduzentInnen ExistenzgründerInnen zahlerInnen AkteurInnen ErzeugerInnen KapitalgeberInnen RegierungschefInnen erzahlerInnen merInnen VertreterInnen NormalverdienerInnen datInnen TierschützerInnen JournalistInnen DemonstrantInnen AktionärInnen SchuldnerInnen tümerInnen FinanzvermittlerInnen EndverbraucherInnen NeugründerInnen KindergärtnerInnen SexarbeiterInnen DrogenkonsumentInnen RentnerInnen MinijobberInnen ArbeitsvermittlerInnen BeraterInnen VerwerterInnen BildungsverliererInnen AnwohnerInnen Nicht-EU-BürgerInnen BildungsaufsteigerInnen PolizistInnen RichterInnen WissenschaftlerInnen schaftlerInnen KinderärztInnen HausärztInnen LeistungserbringerInnen PatientInnenvertreterInnen BeitragszahlerInnen SpitzenkandidatInnen KonsumentInnen KäuferInnen dInnen SozialarbeiterInnen AsylbewerberInnen JunglandwirtInnen QuereinsteigerInnen LebenspartnerInnen VerkehrsteilnehmerInnen InhaberInnen StromkundInnen LandwirtInnen berInnen PolitikerInnen IT-SicherheitsexpertInnen EmpfängerInnen RedakteurInnen AnwältInnen SüdeuropäerInnen rungschefInnen VorkämpferInnen SozialdemokratInnen MandatsträgerInnen KandidatInnen gerInnen TäterInnen ZeugInnen AkademikerInnen StaatsanwältInnen GründerInnen StrafverteidigerInnen gInnen GärtnerInnen ÖkozüchterInnen gärtnerInnen rantInnen VerarbeiterInnen SyrerInnen FischerInnen digerInnen CSU-PolitikerInnen WiedereinsteigerInnen EigentümerInnen BezieherInnen JustizbeamtInnen PrivatkundInnen rerInnen BetreiberInnen legerInnen AnbieterInnen GeringverdienerInnen KollegInnen BühnendarstellerInnen AutorInnen ZeitzeugInnen PädagogInnen SportathletInnen WählerInnen LobbyistInnen EntscheidungsträgerInnen RätInnen ProtagonistInnen AussteigerInnen GrenzpendlerInnen teurInnen EuropäerInnen AnschlussinhaberInnen ZuwanderInnen EU-BinnenmigrantInnen EinwanderInnen PartnerInnen SozialpartnerInnen TeilnehmerInnen tInnen KleinbäuerInnen KindersoldatInnen SoldatInnen PilotInnen VorreiterInnen VerfechterInnen TechnokratInnen PopulistInnen' query_basic = query_basic.split() query_gender_neutral = query_gender_neutral.split() for i in query_basic: for j in query_gender_neutral: if(i==j): print(i) break #output: #Bürger # Steuer # Partner # Schüler # Alter # Arbeitnehmer # Arbeitgeber # Verbraucher
332.84375
3,438
0.836541
941
10,651
9.451647
0.742827
0.006746
0.008095
0.006746
0.054644
0.054644
0.054644
0.054644
0.054644
0.054644
0
0
0.152098
10,651
31
3,439
343.580645
0.98483
0.550934
0
0
0
0.222222
0.944069
0.070916
0
0
0
0
0
1
0
false
0
0
0
0
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
aeb36c58f51229619b08f934e46f77cd4f1c1fb3
115
py
Python
todos/__init__.py
e-k-m/todos
b017a74dd22e42beaf4838cfdb9ed14d349e41e9
[ "MIT" ]
null
null
null
todos/__init__.py
e-k-m/todos
b017a74dd22e42beaf4838cfdb9ed14d349e41e9
[ "MIT" ]
null
null
null
todos/__init__.py
e-k-m/todos
b017a74dd22e42beaf4838cfdb9ed14d349e41e9
[ "MIT" ]
null
null
null
""" FIXME """ from todos import version __author__ = "Eric Matti" __version__ = version.__version__ __all__ = []
11.5
33
0.713043
12
115
5.5
0.75
0.424242
0
0
0
0
0
0
0
0
0
0
0.165217
115
9
34
12.777778
0.6875
0.043478
0
0
0
0
0.098039
0
0
0
0
0.111111
0
1
0
false
0
0.25
0
0.25
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
1
0
0
0
0
0
0
0
0
0
0
4
aeba4705617e5851064d4bfa16905e7b8499b476
174
py
Python
src/controller/mainWindowController.py
waleson-melo/gerenciador_de_senhas
62d329d2c3bb28eb7c47454a3f9a68487762612a
[ "MIT" ]
3
2021-01-13T22:29:52.000Z
2021-06-19T22:40:46.000Z
src/controller/mainWindowController.py
waleson-melo/gerenciador_de_senhas
62d329d2c3bb28eb7c47454a3f9a68487762612a
[ "MIT" ]
null
null
null
src/controller/mainWindowController.py
waleson-melo/gerenciador_de_senhas
62d329d2c3bb28eb7c47454a3f9a68487762612a
[ "MIT" ]
1
2021-06-27T04:06:47.000Z
2021-06-27T04:06:47.000Z
import src.view.mainWindowView as mw class MainWindowController: def __init__(self): self.mew = mw.MainWindowView() def run(self): self.mew.start()
19.333333
38
0.666667
21
174
5.333333
0.666667
0.142857
0.196429
0
0
0
0
0
0
0
0
0
0.229885
174
9
39
19.333333
0.835821
0
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0.166667
0
0.666667
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
1
0
0
0
0
0
0
0
4
aebf411aac820a35f8e7f3a1fdb8b4c85478edaa
141
py
Python
setup.py
aYukiYoshida/pyigata
670db3e09e5e4a3fb430b57f213ac95801ab1996
[ "MIT" ]
null
null
null
setup.py
aYukiYoshida/pyigata
670db3e09e5e4a3fb430b57f213ac95801ab1996
[ "MIT" ]
null
null
null
setup.py
aYukiYoshida/pyigata
670db3e09e5e4a3fb430b57f213ac95801ab1996
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Learn more: https://github.com/kennethreitz/setup.py from setuptools import setup setup()
17.625
54
0.695035
20
141
4.9
0.9
0
0
0
0
0
0
0
0
0
0
0.01626
0.12766
141
8
55
17.625
0.780488
0.680851
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
4e2b73c62e0474367b528e7222705e311970c837
192
py
Python
statscanpy/test/test_datasearch.py
andrewjdyck/statscanpy
95ffeea09a633a76c3ef0e3a3fc2d6a3edf624cf
[ "MIT" ]
2
2020-04-27T16:32:14.000Z
2021-01-29T13:19:48.000Z
statscanpy/test/test_datasearch.py
u821896/statscanpy
95ffeea09a633a76c3ef0e3a3fc2d6a3edf624cf
[ "MIT" ]
1
2022-02-23T20:02:56.000Z
2022-03-01T16:10:53.000Z
statscanpy/test/test_datasearch.py
u821896/statscanpy
95ffeea09a633a76c3ef0e3a3fc2d6a3edf624cf
[ "MIT" ]
3
2019-09-19T18:26:04.000Z
2021-05-05T19:42:18.000Z
from unittest import TestCase import statscanpy as sc class TestSearch(TestCase): def test_search_returns(self): search = sc.DataSearch('14100287') print(search)
21.333333
42
0.6875
22
192
5.909091
0.772727
0
0
0
0
0
0
0
0
0
0
0.054795
0.239583
192
9
43
21.333333
0.835616
0
0
0
0
0
0.041451
0
0
0
0
0
0
1
0.166667
false
0
0.333333
0
0.666667
0.166667
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
4e418994fa7136eef53378e274127f3c0d91d020
215
py
Python
impurityModel/ed/__init__.py
johanjoensson/impurityModel
61662914822fd54a3331302449e11d3401493d3d
[ "MIT" ]
null
null
null
impurityModel/ed/__init__.py
johanjoensson/impurityModel
61662914822fd54a3331302449e11d3401493d3d
[ "MIT" ]
null
null
null
impurityModel/ed/__init__.py
johanjoensson/impurityModel
61662914822fd54a3331302449e11d3401493d3d
[ "MIT" ]
null
null
null
""" A package dealing with many-body impurity models using exact diagonalization. Examples of functionalities: - Calculate spectra, e.g. XAS, XPS, PS. - Calculate static expectation values """
23.888889
77
0.693023
25
215
5.96
0.96
0
0
0
0
0
0
0
0
0
0
0
0.227907
215
8
78
26.875
0.89759
0.953488
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
9d861242436df8df6a494f0e8ae079ac66147fb8
556
py
Python
pytglib/api/types/search_messages_filter_empty.py
iTeam-co/pytglib
e5e75e0a85f89b77762209b32a61b0a883c0ae61
[ "MIT" ]
6
2019-10-30T08:57:27.000Z
2021-02-08T14:17:43.000Z
pytglib/api/types/search_messages_filter_empty.py
iTeam-co/python-telegram
e5e75e0a85f89b77762209b32a61b0a883c0ae61
[ "MIT" ]
1
2021-08-19T05:44:10.000Z
2021-08-19T07:14:56.000Z
pytglib/api/types/search_messages_filter_empty.py
iTeam-co/python-telegram
e5e75e0a85f89b77762209b32a61b0a883c0ae61
[ "MIT" ]
5
2019-12-04T05:30:39.000Z
2021-05-21T18:23:32.000Z
from ..utils import Object class SearchMessagesFilterEmpty(Object): """ Returns all found messages, no filter is applied Attributes: ID (:obj:`str`): ``SearchMessagesFilterEmpty`` No parameters required. Returns: SearchMessagesFilter Raises: :class:`telegram.Error` """ ID = "searchMessagesFilterEmpty" def __init__(self, **kwargs): pass @staticmethod def read(q: dict, *args) -> "SearchMessagesFilterEmpty": return SearchMessagesFilterEmpty()
17.935484
60
0.624101
45
556
7.622222
0.777778
0
0
0
0
0
0
0
0
0
0
0
0.278777
556
30
61
18.533333
0.855362
0.375899
0
0
0
0
0.166113
0.166113
0
0
0
0
0
1
0.25
false
0.125
0.125
0.125
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
1
1
0
0
4
9db6874b60899ef7660eb70e42963583bed9a036
140
py
Python
Webapp/run.py
Agulaa/Brovie_test
1a3de8d370cdfd73108ddbbe99a4130027f86e7f
[ "MIT" ]
null
null
null
Webapp/run.py
Agulaa/Brovie_test
1a3de8d370cdfd73108ddbbe99a4130027f86e7f
[ "MIT" ]
null
null
null
Webapp/run.py
Agulaa/Brovie_test
1a3de8d370cdfd73108ddbbe99a4130027f86e7f
[ "MIT" ]
null
null
null
from app import create_app app = create_app() @app.route('/') def index(): return app if __name__ == '__main__': app.run()
10.769231
26
0.607143
19
140
3.947368
0.631579
0.24
0.32
0
0
0
0
0
0
0
0
0
0.242857
140
13
27
10.769231
0.707547
0
0
0
0
0
0.06383
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0.142857
0.428571
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
4
9dc63c3fee90a1ffb4a85c0545368eb4f474da72
301
py
Python
produto/admin.py
jdochoas99/erp
f07c85cb27e3a04005ca1e1d0fd36f12c71c6594
[ "MIT" ]
null
null
null
produto/admin.py
jdochoas99/erp
f07c85cb27e3a04005ca1e1d0fd36f12c71c6594
[ "MIT" ]
null
null
null
produto/admin.py
jdochoas99/erp
f07c85cb27e3a04005ca1e1d0fd36f12c71c6594
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import * # Register your models here. admin.site.register(Produto) admin.site.register(unidadeProduto) admin.site.register(tipoItemProduto) admin.site.register(ProdutoEstoque) admin.site.register(categoriaProduto) admin.site.register(subcategoriaProduto)
30.1
40
0.840532
36
301
7.027778
0.444444
0.213439
0.403162
0
0
0
0
0
0
0
0
0
0.063123
301
9
41
33.444444
0.897163
0.086379
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.25
0
0.25
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4