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
24754739ced6ee56569032d166efd3dfea1c454c
603
py
Python
rehive/api/resources/metric_resources.py
rehive/rehive-python
72cf7208db8e99711ea8568073577be3459c79fc
[ "MIT" ]
8
2017-06-23T13:33:59.000Z
2022-01-17T10:55:23.000Z
rehive/api/resources/metric_resources.py
rehive/rehive-python
72cf7208db8e99711ea8568073577be3459c79fc
[ "MIT" ]
59
2017-06-23T13:21:01.000Z
2022-01-10T17:41:22.000Z
rehive/api/resources/metric_resources.py
rehive/rehive-python
72cf7208db8e99711ea8568073577be3459c79fc
[ "MIT" ]
3
2017-10-12T18:43:29.000Z
2018-12-26T09:38:42.000Z
from .base_resources import ResourceList, ResourceCollection class APIMetrics(ResourceList, ResourceCollection): def __init__(self, client, endpoint='', filters=None): self.resources = (APIMetricPoints,) super(APIMetrics, self).__init__(client, endpoint, filters) @classmethod def get_resource_name(cls): return 'metrics' class APIMetricPoints(ResourceList): def __init__(self, client, endpoint, filters=None): super(APIMetricPoints, self).__init__(client, endpoint, filters) @classmethod def get_resource_name(cls): return 'points'
28.714286
72
0.718076
60
603
6.866667
0.416667
0.135922
0.203884
0.082524
0.5
0.5
0.5
0.325243
0.325243
0.325243
0
0
0.18408
603
20
73
30.15
0.837398
0
0
0.285714
0
0
0.021559
0
0
0
0
0
0
1
0.285714
false
0
0.071429
0.142857
0.642857
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
1
0
0
0
1
1
0
0
4
24776427f0454c4009fbc6c69e350cb25fa988b9
247
py
Python
math_functions.py
marcoandreazampini/SummerSchool2021_Git01
47cf8672abd8f248822822b30d63a195cd23be09
[ "Apache-2.0" ]
null
null
null
math_functions.py
marcoandreazampini/SummerSchool2021_Git01
47cf8672abd8f248822822b30d63a195cd23be09
[ "Apache-2.0" ]
null
null
null
math_functions.py
marcoandreazampini/SummerSchool2021_Git01
47cf8672abd8f248822822b30d63a195cd23be09
[ "Apache-2.0" ]
null
null
null
import pytest def sum(a,b): return a + b def test_sum(): assert sum(2,4) == 6 def banafshedivide(a,b): return a / b def multiMarco(a,b): return a**b #if __name__ == '__main__': # a = sum(banafshedivide(multiMarco(3,4),6),10))
13
49
0.615385
42
247
3.404762
0.452381
0.083916
0.167832
0.188811
0.251748
0.181818
0
0
0
0
0
0.041237
0.214575
247
18
50
13.722222
0.695876
0.299595
0
0
0
0
0
0
0
0
0
0
0.111111
1
0.444444
false
0
0.111111
0.333333
0.888889
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
4
249c95086e37b7c1008bf74fd6d6e26a88136c75
430
py
Python
hook-me-up.py
bornfight/shell-me-up-scotty
3c5378e894ccdd07f0e9e13c23156a3fb6652f82
[ "Apache-2.0" ]
3
2016-04-04T14:42:28.000Z
2018-06-20T12:03:51.000Z
hook-me-up.py
bornfight/shell-me-up-scotty
3c5378e894ccdd07f0e9e13c23156a3fb6652f82
[ "Apache-2.0" ]
14
2016-03-24T23:24:19.000Z
2018-07-07T10:38:39.000Z
hook-me-up.py
bornfight/shell-me-up-scotty
3c5378e894ccdd07f0e9e13c23156a3fb6652f82
[ "Apache-2.0" ]
3
2016-03-24T23:01:57.000Z
2018-06-19T18:31:35.000Z
#!/usr/bin/env python from os import system system("python ./scripts/init.py") system("python ./scripts/php.py") system("python ./scripts/apps.py") system("python ./scripts/ssh.py") system("python ./scripts/github.py") print "Calibration complete. Have a nice day." contributors = [ "@krukru", "@Dvorsky", "@renatoruk", "@flackovic" ] print "Special thanks to the contributors:" print ", ".join(contributors)
19.545455
46
0.681395
54
430
5.425926
0.592593
0.204778
0.324232
0.286689
0
0
0
0
0
0
0
0
0.14186
430
21
47
20.47619
0.794038
0.046512
0
0
0
0
0.562347
0
0
0
0
0
0
0
null
null
0
0.066667
null
null
0.2
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
1
0
0
0
0
0
0
0
0
4
24a6964d1342cc2541d7620731b03bcd27ff1545
140
py
Python
api/auth/urls.py
flatcoke/komong
b7c4721795b36dc936cf9060aba97d693a33c5b8
[ "MIT" ]
1
2019-07-31T07:18:07.000Z
2019-07-31T07:18:07.000Z
api/auth/urls.py
flatcoke/komong
b7c4721795b36dc936cf9060aba97d693a33c5b8
[ "MIT" ]
null
null
null
api/auth/urls.py
flatcoke/komong
b7c4721795b36dc936cf9060aba97d693a33c5b8
[ "MIT" ]
1
2019-04-10T05:03:35.000Z
2019-04-10T05:03:35.000Z
from rest_framework_jwt.views import obtain_jwt_token from django.urls import path urlpatterns = [ path('token/', obtain_jwt_token), ]
20
53
0.778571
20
140
5.15
0.6
0.174757
0.271845
0
0
0
0
0
0
0
0
0
0.135714
140
6
54
23.333333
0.85124
0
0
0
0
0
0.042857
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
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
24d0e742b12620f31779f74d377a696c476739d7
5,430
py
Python
das/forms.py
knowwinter/monkey
4689e765d0a254abef26a33a51b33a1158bebecd
[ "Apache-2.0" ]
null
null
null
das/forms.py
knowwinter/monkey
4689e765d0a254abef26a33a51b33a1158bebecd
[ "Apache-2.0" ]
null
null
null
das/forms.py
knowwinter/monkey
4689e765d0a254abef26a33a51b33a1158bebecd
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from django import forms class UserForm(forms.Form): username = forms.CharField(required=True, max_length=30, error_messages={'required': "用户名不能为空"}) password = forms.CharField(required=False, max_length=30, error_messages={'required': '密码不能为空'}) email = forms.EmailField(required=True, error_messages={'required': '邮箱不能为空'}) telephone = forms.CharField(max_length=11, required=False) first_name = forms.CharField(max_length=30, required=False) last_name = forms.CharField(max_length=30, required=False) is_active = forms.IntegerField(max_value=2, min_value=0, required=False) nickname = forms.CharField(max_length=32, required=False) avatar = forms.CharField(max_length=100, required=False) role = forms.CharField(required=False) class LoginForm(forms.Form): username = forms.CharField(required=True, max_length=30, error_messages={'required': "用户名不能为空"}) password = forms.CharField(required=True, max_length=30, error_messages={'required': '密码不能为空'}) class CateForm(forms.Form): name = forms.CharField(max_length=30, required=True, error_messages={'required': "分类名称不能为空"}) parent = forms.IntegerField(required=True) description = forms.CharField(max_length=80) url_slug = forms.CharField(max_length=80) class PostForm(forms.Form): title = forms.CharField(max_length=30, required=True, error_messages={'required': "文章标题不能为空"}) content = forms.CharField(widget=forms.Textarea, required=False) # url_slug = forms.CharField(max_length=80) pub_author = forms.IntegerField(required=True) article_status = forms.CharField(max_length=1, required=False) comment_status = forms.CharField(max_length=1, required=False) article_type = forms.CharField(max_length=30) # article_mime_type = forms.CharField(max_length=30) category = forms.IntegerField(required=False) tags = forms.CharField(required=False) # parent = forms.IntegerField(required=False) class TagForm(forms.Form): name = forms.CharField(max_length=30, required=True, error_messages={'required': "分类名称不能为空"}) description = forms.CharField(max_length=80) # url_slug = forms.SlugField(max_length=80) class CommentForm(forms.Form): comment = forms.CharField(max_length=500, required=True) user = forms.IntegerField(required=False) comment_author = forms.CharField(max_length=30) article = forms.IntegerField(required=True) parent = forms.IntegerField(required=False) comment_author_ip = forms.GenericIPAddressField(required=False) comment_author_email = forms.EmailField(required=False) class CommentStatusForm(forms.Form): comment_status = forms.CharField(required=True) class ArticleStatusForm(forms.Form): article_status = forms.CharField(required=True) class SiteMetaForm(forms.Form): site_name = forms.CharField(max_length=30, required=True) description = forms.CharField(max_length=100, required=False) keywords = forms.CharField(max_length=100, required=False) author = forms.CharField(max_length=100, required=True) title = forms.CharField(max_length=100, required=False) subtitle = forms.CharField(max_length=100, required=False) announcement = forms.CharField(max_length=50, required=False) favicon = forms.CharField(max_length=255, required=False) head_background_img = forms.CharField(max_length=255, required=False) author_img = forms.CharField(max_length=255, required=False) head_code = forms.CharField(max_length=2000, required=False) foot_code = forms.CharField(max_length=2000, required=False) is_weibo = forms.CharField(max_length=1, required=False) wb_uid = forms.CharField(max_length=15, required=False) is_wechat = forms.CharField(max_length=1, required=False) wechat_qrcode = forms.CharField(max_length=255, required=False) is_qqgroup = forms.CharField(max_length=1, required=False) qqgroup_url = forms.CharField(max_length=500, required=False) is_twitter = forms.CharField(max_length=1, required=False) twitter_id = forms.CharField(max_length=50, required=False) class MediaForm(forms.Form): o_file_name = forms.CharField(max_length=100, required=False) description = forms.CharField(max_length=200, required=False) alt = forms.CharField(max_length=50, required=False) class GroupForm(forms.Form): name = forms.CharField(max_length=80, required=True) members = forms.CharField(required=False) perm = forms.CharField(max_length=10, required=True) class UserStatusForm(forms.Form): user_status = forms.CharField(required=True) class MenuForm(forms.Form): menu_name = forms.CharField(max_length=100, required=True) menu_type = forms.CharField(max_length=20, required=True) position_id = forms.IntegerField(required=False) class MenuOptionForm(forms.Form): option_name = forms.CharField(max_length=100, required=True) option_title = forms.CharField(max_length=30, required=False) option_value = forms.CharField(max_length=2000, required=False) option_icon = forms.CharField(max_length=30, required=False) menu_id = forms.IntegerField(required=True) user_menu_id = forms.IntegerField(required=False) option_level = forms.IntegerField(required=False) option_template = forms.CharField(max_length=2000, required=False) class MenuPositionForm(forms.Form): menu_id = forms.IntegerField(required=True)
43.44
100
0.756906
696
5,430
5.741379
0.170977
0.213714
0.212713
0.287788
0.674424
0.607107
0.498999
0.293293
0.143143
0.119119
0
0.027602
0.125967
5,430
124
101
43.790323
0.81437
0.036832
0
0.088889
0
0
0.022971
0
0
0
0
0
0
1
0
false
0.022222
0.011111
0
1
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
4
24f5179e1960610a5320e72ab87f78d5bcf9a4f8
95
py
Python
geolocations_service/service/brumadinho/apps.py
BrunaDolavale/brumadinho_location
0acd5bffd9c96fb0a5565e71a394f685c3550463
[ "MIT" ]
666
2019-01-28T00:32:43.000Z
2019-01-30T22:16:41.000Z
geolocations_service/service/brumadinho/apps.py
BrunaDolavale/brumadinho_location
0acd5bffd9c96fb0a5565e71a394f685c3550463
[ "MIT" ]
68
2019-01-28T13:17:26.000Z
2019-01-30T22:04:30.000Z
geolocations_service/service/brumadinho/apps.py
BrunaDolavale/brumadinho_location
0acd5bffd9c96fb0a5565e71a394f685c3550463
[ "MIT" ]
142
2019-01-27T21:19:45.000Z
2019-01-30T22:09:58.000Z
from django.apps import AppConfig class BrumadinhoConfig(AppConfig): name = 'brumadinho'
15.833333
34
0.768421
10
95
7.3
0.9
0
0
0
0
0
0
0
0
0
0
0
0.157895
95
5
35
19
0.9125
0
0
0
0
0
0.105263
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
70055c69d34c30981e57d51002ac43cb20b19bc2
134
py
Python
pattern-13.py
Ayush05m/patterns-python
cbfdf42af8f206d7193f20dc7576289a5426bbcc
[ "MIT" ]
1
2020-06-05T19:06:23.000Z
2020-06-05T19:06:23.000Z
pattern-13.py
Ayush05m/patterns-python
cbfdf42af8f206d7193f20dc7576289a5426bbcc
[ "MIT" ]
null
null
null
pattern-13.py
Ayush05m/patterns-python
cbfdf42af8f206d7193f20dc7576289a5426bbcc
[ "MIT" ]
1
2020-10-04T17:47:17.000Z
2020-10-04T17:47:17.000Z
for x in range(65,70): for y in range(65,x+1): print(chr(x),end='') print() """ # p[attern A BB CCC DDDD EEEEE """
8.933333
28
0.514925
25
134
2.76
0.72
0.202899
0.26087
0
0
0
0
0
0
0
0
0.072917
0.283582
134
15
29
8.933333
0.645833
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
4
700dfbf6e36cce33faf290db1be971eaefadc64e
204
py
Python
src/argteller/__init__.py
mozjay0619/argteller-viz
963c6d43019efb2b0e9bcdb4b3053b57cd4ff373
[ "BSD-3-Clause" ]
null
null
null
src/argteller/__init__.py
mozjay0619/argteller-viz
963c6d43019efb2b0e9bcdb4b3053b57cd4ff373
[ "BSD-3-Clause" ]
7
2021-08-04T15:54:07.000Z
2021-09-17T17:40:38.000Z
src/argteller/__init__.py
mozjay0619/argteller-viz
963c6d43019efb2b0e9bcdb4b3053b57cd4ff373
[ "BSD-3-Clause" ]
null
null
null
from .decorators.class_decorator import ArgtellerClassDecorator from .decorators.method_decorator import ArgtellerMethodDecorator __all__ = [ "ArgtellerClassDecorator", "ArgtellerMethodDecorator" ]
25.5
65
0.843137
15
204
11.066667
0.6
0.168675
0
0
0
0
0
0
0
0
0
0
0.098039
204
8
66
25.5
0.902174
0
0
0
0
0
0.229268
0.229268
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
1
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
70127c07136d907255bf42c16490360e4c5cd6f3
526
py
Python
structs/grid.py
canbatuhan/ILP-Clustering
2016fd2ef7345d6c5b54e22b78d4a15f5453c88e
[ "MIT" ]
null
null
null
structs/grid.py
canbatuhan/ILP-Clustering
2016fd2ef7345d6c5b54e22b78d4a15f5453c88e
[ "MIT" ]
null
null
null
structs/grid.py
canbatuhan/ILP-Clustering
2016fd2ef7345d6c5b54e22b78d4a15f5453c88e
[ "MIT" ]
null
null
null
import numpy as np class Grid: def __init__(self, size) -> None: self.__height = size self.__width = size def __len__(self) -> int: return self.__height * self.__width def get_height(self) -> int: return self.__height def get_width(self) -> int: return self.__width def get_width_as_range(self) -> int: return np.arange(self.__height+1, dtype=np.uint8) def get_height_as_range(self) -> int: return np.arange(self.__width+1, dtype=np.uint8)
23.909091
57
0.631179
74
526
4.054054
0.297297
0.116667
0.216667
0.17
0.366667
0.213333
0.213333
0.213333
0
0
0
0.010283
0.260456
526
21
58
25.047619
0.760925
0
0
0
0
0
0
0
0
0
0
0
0
1
0.4
false
0
0.066667
0.333333
0.866667
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
701c53abd15e4b03ec5b8a88a9d5eb9d7b69ae26
245
py
Python
ariadne_server/resolvers/query/__init__.py
seanaye/FeatherLight-API
4d42a424762311ee35b3fd4f689883aa4197eb2e
[ "MIT" ]
null
null
null
ariadne_server/resolvers/query/__init__.py
seanaye/FeatherLight-API
4d42a424762311ee35b3fd4f689883aa4197eb2e
[ "MIT" ]
null
null
null
ariadne_server/resolvers/query/__init__.py
seanaye/FeatherLight-API
4d42a424762311ee35b3fd4f689883aa4197eb2e
[ "MIT" ]
null
null
null
from .info import QUERY as info from .bypass import QUERY as bypass from .decode_invoice import QUERY as decode_invoice from .check_macaroon import QUERY as check_macaroon QUERY = [ info, bypass, decode_invoice, check_macaroon ]
22.272727
51
0.763265
35
245
5.171429
0.285714
0.243094
0.287293
0
0
0
0
0
0
0
0
0
0.195918
245
11
52
22.272727
0.918782
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0.2
0.4
0
0.4
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
1
0
0
0
0
4
703f21744e2a4283e4cfca8118ac42b7681032c4
421
py
Python
tests/functional/utils.py
nayaverdier/aws-lambda-powertools-python
cd15ee97746356a84c6f196dbd2d26a34ea50411
[ "Apache-2.0", "MIT-0" ]
null
null
null
tests/functional/utils.py
nayaverdier/aws-lambda-powertools-python
cd15ee97746356a84c6f196dbd2d26a34ea50411
[ "Apache-2.0", "MIT-0" ]
225
2021-07-05T08:23:30.000Z
2022-03-31T08:27:43.000Z
tests/functional/utils.py
nayaverdier/aws-lambda-powertools-python
cd15ee97746356a84c6f196dbd2d26a34ea50411
[ "Apache-2.0", "MIT-0" ]
null
null
null
import base64 import json from pathlib import Path from typing import Any def load_event(file_name: str) -> Any: path = Path(str(Path(__file__).parent.parent) + "/events/" + file_name) return json.loads(path.read_text()) def str_to_b64(data: str) -> str: return base64.b64encode(data.encode()).decode("utf-8") def b64_to_str(data: str) -> str: return base64.b64decode(data.encode()).decode("utf-8")
23.388889
75
0.703088
65
421
4.369231
0.446154
0.056338
0.070423
0.112676
0.295775
0
0
0
0
0
0
0.044568
0.147268
421
17
76
24.764706
0.746518
0
0
0
0
0
0.042755
0
0
0
0
0
0
1
0.272727
false
0
0.363636
0.181818
0.909091
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
1
1
0
0
4
70a15f409684f546d09311fc6dbb2d5e2699a0bb
132
py
Python
pydis_site/apps/staff/apps.py
Transfusion/site
6992491f8c5f074e17c34d09553a715425112652
[ "MIT" ]
700
2018-11-17T15:56:51.000Z
2022-03-30T22:53:17.000Z
pydis_site/apps/staff/apps.py
Transfusion/site
6992491f8c5f074e17c34d09553a715425112652
[ "MIT" ]
542
2018-11-17T13:39:42.000Z
2022-03-31T11:24:00.000Z
pydis_site/apps/staff/apps.py
Transfusion/site
6992491f8c5f074e17c34d09553a715425112652
[ "MIT" ]
178
2018-11-21T09:06:56.000Z
2022-03-31T07:43:28.000Z
from django.apps import AppConfig class StaffConfig(AppConfig): """Django AppConfig for the staff app.""" name = 'staff'
16.5
45
0.69697
16
132
5.75
0.75
0
0
0
0
0
0
0
0
0
0
0
0.19697
132
7
46
18.857143
0.867925
0.265152
0
0
0
0
0.054945
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
70a3bd9065e5f2d20bbf3cf6fedc8341e0dd0af8
859
py
Python
contact/models.py
StoneMasons4106/clay-cabinet
6defd2fcf55d5589777d2e92154668344e923b52
[ "MIT" ]
null
null
null
contact/models.py
StoneMasons4106/clay-cabinet
6defd2fcf55d5589777d2e92154668344e923b52
[ "MIT" ]
null
null
null
contact/models.py
StoneMasons4106/clay-cabinet
6defd2fcf55d5589777d2e92154668344e923b52
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class Content(models.Model): name = models.CharField(max_length=254) contact_blurb = models.CharField(max_length=500) google_maps_link = models.URLField(max_length=2000, null=True, blank=True) address = models.CharField(max_length=500, null=True, blank=True) email = models.EmailField(max_length=200, null=True, blank=True) phone = models.CharField(max_length=25, null=True, blank=True) def __str__(self): return self.name class BlackList(models.Model): name = models.CharField(max_length=254) first_name = models.CharField(max_length=254, blank=True, null=True) last_name = models.CharField(max_length=254, blank=True, null=True) email = models.EmailField(max_length=254, blank=True, null=True) def __str__(self): return self.name
33.038462
78
0.728754
122
859
4.942623
0.327869
0.149254
0.208955
0.278607
0.613599
0.524046
0.432836
0.298507
0.159204
0.159204
0
0.041494
0.158324
859
26
79
33.038462
0.792531
0.027939
0
0.352941
0
0
0
0
0
0
0
0
0
1
0.117647
false
0
0.058824
0.117647
1
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
4
5616607f5ca4ce929f009c26618ee593fac3830e
6,809
py
Python
category_populate.py
dgabrahams/Udacity-NanoDegree-Fullstack-Project-4
0babc66023edd0a75a8a2a33a3d7b58d3747816f
[ "MIT" ]
null
null
null
category_populate.py
dgabrahams/Udacity-NanoDegree-Fullstack-Project-4
0babc66023edd0a75a8a2a33a3d7b58d3747816f
[ "MIT" ]
null
null
null
category_populate.py
dgabrahams/Udacity-NanoDegree-Fullstack-Project-4
0babc66023edd0a75a8a2a33a3d7b58d3747816f
[ "MIT" ]
null
null
null
# import os # import sys # from sqlalchemy import Column, ForeignKey, Integer, String # from sqlalchemy.ext.declarative import declarative_base # from sqlalchemy.orm import relationship # from sqlalchemy import create_engine # engine = create_engine('sqlite:///categorylist.db') # connection = engine.connect() # result = connection.execute("select username from users") # for row in result: # print("username:", row['username']) # connection.close() # from flask_sqlalchemy import SQLAlchemy from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker from category_database_setup import Base, Category, StockItem engine = create_engine('sqlite:///categorylist.db') Base.metadata.bind=engine DBSession = sessionmaker(bind = engine) session = DBSession() basketball = Category(name = "Basketball") session.add(basketball) session.commit() baseball = Category(name = "Baseball") session.add(baseball) session.commit() bat = StockItem(name="Bat", description = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.", created_by="default", category=baseball) session.add(bat) session.commit() frisbee = Category(name = "Frisbee") session.add(frisbee) session.commit() frisbee_item = StockItem(name="Frisbee", description = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.", created_by="default", category=frisbee) session.add(frisbee_item) session.commit() soccer = Category(name = "Soccer") session.add(soccer) session.commit() shinguards = StockItem(name="Shinguards", description = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.", created_by="default", category=soccer) session.add(shinguards) twoshinguards = StockItem(name="Two Shinguards", description = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.", created_by="default", category=soccer) session.add(twoshinguards) jersey = StockItem(name="Jersey", description = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.", created_by="default", category=soccer) session.add(jersey) cleats = StockItem(name="Soccer Cleats", description = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.", created_by="default", category=soccer) session.add(cleats) session.commit() snowboarding = Category(name = "Snowboarding") session.add(snowboarding) session.commit() snowboard = StockItem(name="Snowboard", description = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.", created_by="default", category=snowboarding) session.add(snowboard) goggles = StockItem(name="Goggles", description = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.", created_by="default", category=snowboarding) session.add(goggles) session.commit() rockclimbing = Category(name = "Rock Climbing") session.add(rockclimbing) session.commit() foosball = Category(name = "Foosball") session.add(foosball) session.commit() skating = Category(name = "Skating") session.add(skating) session.commit() hockey = Category(name = "Hockey") session.add(hockey) session.commit() stick = StockItem(name="Stick", description = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.", created_by="default", category=hockey) session.add(stick) session.commit() firstResult = session.query(Category).first() firstResult.name items = session.query(StockItem).all() for item in items: print item.name
71.673684
550
0.802027
946
6,809
5.752643
0.143763
0.033076
0.03473
0.042999
0.717383
0.705623
0.691657
0.691657
0.691657
0.691657
0
0
0.130562
6,809
94
551
72.43617
0.919257
0.069026
0
0.225806
0
0.145161
0.670988
0.003953
0
0
0
0
0
0
null
null
0
0.048387
null
null
0.016129
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
4
561cdbd320ff5c033ea517933c88f41d1e56f6ff
1,077
py
Python
ambari-client/python-client/src/main/python/ambari_client/model/views.py
panfeiyy/ambari
24077510723ede93d3024784f0b04422adaf56d6
[ "Apache-2.0" ]
16
2018-05-24T10:28:24.000Z
2021-08-05T03:13:26.000Z
ambari-client/python-client/src/main/python/ambari_client/model/views.py
panfeiyy/ambari
24077510723ede93d3024784f0b04422adaf56d6
[ "Apache-2.0" ]
3
2021-05-09T12:37:16.000Z
2022-03-02T10:13:24.000Z
ambari-client/python-client/src/main/python/ambari_client/model/views.py
panfeiyy/ambari
24077510723ede93d3024784f0b04422adaf56d6
[ "Apache-2.0" ]
17
2018-07-06T08:57:00.000Z
2021-11-04T11:00:36.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import logging from ambari_client.model.base_model import BaseModel, ModelList from ambari_client.model import paths, utils, status LOG = logging.getLogger(__name__) # TODO def get_views(resource_root, blueprint_name): pass # TODO class ViewModel(BaseModel): pass
31.676471
75
0.766017
157
1,077
5.191083
0.617834
0.07362
0.031902
0.039264
0
0
0
0
0
0
0
0.00451
0.176416
1,077
33
76
32.636364
0.914318
0.719591
0
0.25
0
0
0
0
0
0
0
0.030303
0
1
0.125
false
0.25
0.375
0
0.625
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
1
1
0
1
0
0
4
562680f14e8b11c8dcff9d26686cc5be3f672405
1,225
py
Python
lianjia/filter_url.py
pyday/lianjia
bf6e8629495b4d69d92ff5c34f07f29274ab9682
[ "Apache-2.0" ]
null
null
null
lianjia/filter_url.py
pyday/lianjia
bf6e8629495b4d69d92ff5c34f07f29274ab9682
[ "Apache-2.0" ]
null
null
null
lianjia/filter_url.py
pyday/lianjia
bf6e8629495b4d69d92ff5c34f07f29274ab9682
[ "Apache-2.0" ]
null
null
null
# coding:utf-8 from lianjia.geturl import GetMissionUrl from scrapy.exceptions import IgnoreRequest class LjprojectSpiderMiddleware(object): def __init__(self): test = GetMissionUrl() self.urls = test.get_crawled_urls() def process_request(self, request, spider): if request.url in self.urls: spider.logger.info(request.url + "has been crawled !!") raise IgnoreRequest else: return None class LjprojectDealMiddleware(object): def __init__(self): test = GetMissionUrl() self.urlList = test.get_crawled_deal_urls() def process_request(self, request, spider): if request.url in self.urlList: spider.logger.info(request.url + "has been crawled !!") raise IgnoreRequest else: return None class LjprojectListingMiddleware(object): def __init__(self): test = GetMissionUrl() self.urlList = test.get_crawled_listing_urls() def process_request(self, request, spider): if request.url in self.urlList: spider.logger.info(request.url + "has been crawled !!") raise IgnoreRequest else: return None
26.630435
67
0.64
132
1,225
5.765152
0.30303
0.078844
0.051248
0.067017
0.74113
0.74113
0.74113
0.691196
0.691196
0.691196
0
0.001126
0.275102
1,225
45
68
27.222222
0.855856
0.009796
0
0.71875
0
0
0.047107
0
0
0
0
0
0
1
0.1875
false
0
0.0625
0
0.4375
0
0
0
0
null
0
0
0
0
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
5638c481c8314885b4d6433c631dbe4bb014c433
402
py
Python
planar_ising/planar_ising/graph_edges_mapping.py
ValeryTyumen/planar_ising
5a1803487e1dd59c5d5e790cc949b7234bf52ac8
[ "MIT" ]
8
2019-05-02T20:27:21.000Z
2020-11-01T20:41:38.000Z
planar_ising/planar_ising/graph_edges_mapping.py
ValeryTyumen/planar_ising
5a1803487e1dd59c5d5e790cc949b7234bf52ac8
[ "MIT" ]
1
2019-09-03T18:15:53.000Z
2019-09-06T16:41:12.000Z
planar_ising/planar_ising/graph_edges_mapping.py
ValeryTyumen/planar_ising
5a1803487e1dd59c5d5e790cc949b7234bf52ac8
[ "MIT" ]
3
2019-08-11T23:08:58.000Z
2022-03-19T09:09:50.000Z
class GraphEdgesMapping: def __init__(self, first_dual_edges_mapping, second_dual_edges_mapping): self._first = first_dual_edges_mapping self._second = second_dual_edges_mapping @property def size(self): return self._first.shape[0] @property def first(self): return self._first @property def second(self): return self._second
18.272727
76
0.674129
48
402
5.208333
0.3125
0.144
0.256
0.168
0
0
0
0
0
0
0
0.003344
0.256219
402
21
77
19.142857
0.832776
0
0
0.230769
0
0
0
0
0
0
0
0
0
1
0.307692
false
0
0
0.230769
0.615385
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
565028cf27a350f1163d578521696ad76fa174d4
65
py
Python
tests/src/wildcard_module.py
bayashi-cl/expander
b3623b656a71801233797e05781295a6101fefd8
[ "CC0-1.0" ]
null
null
null
tests/src/wildcard_module.py
bayashi-cl/expander
b3623b656a71801233797e05781295a6101fefd8
[ "CC0-1.0" ]
1
2022-03-12T20:41:21.000Z
2022-03-13T06:34:30.000Z
tests/src/wildcard_module.py
bayashi-cl/expander
b3623b656a71801233797e05781295a6101fefd8
[ "CC0-1.0" ]
null
null
null
import testlib_a.sublib_c as lib lib.func() print(lib.variable)
13
32
0.784615
12
65
4.083333
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.107692
65
4
33
16.25
0.844828
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
0.333333
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
5654708d5cda5f6ce8c9133a12c13d0693143f4b
975
py
Python
admin/registry.py
bpeschier/reek-admin
563d1add4d37ec277760ce8a3609573b25851af3
[ "MIT" ]
null
null
null
admin/registry.py
bpeschier/reek-admin
563d1add4d37ec277760ce8a3609573b25851af3
[ "MIT" ]
null
null
null
admin/registry.py
bpeschier/reek-admin
563d1add4d37ec277760ce8a3609573b25851af3
[ "MIT" ]
null
null
null
from collections import OrderedDict from django.utils.translation import ugettext_lazy as _ class AlreadyRegistered(Exception): pass class NotRegistered(Exception): pass class RegistryMixin: """ Reusable registry """ def __init__(self): super().__init__() self._registry = OrderedDict() def register(self, obj): if obj.label in self._registry: raise AlreadyRegistered( _('"%s" is already registered') % obj.label ) else: self._registry[obj.label] = obj def get(self, label): if label not in self._registry: raise NotRegistered(_('"%s" is not registered') % label) return self._registry[label] def values(self): return self._registry.values() def keys(self): return self._registry.keys() def get_labels(self): return [ (c.label, c.name) for c in self.values() ]
20.744681
68
0.594872
105
975
5.333333
0.4
0.15
0.096429
0.067857
0
0
0
0
0
0
0
0
0.305641
975
46
69
21.195652
0.827179
0.017436
0
0.068966
0
0
0.05101
0
0
0
0
0
0
1
0.206897
false
0.068966
0.068966
0.103448
0.517241
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
5657d5d99c6c6eb352fbcab87c5a99c041235122
387
py
Python
b2/part.py
sam-centrevilletech/B2_Command_Line_Tool
9cdef21cc43cb1d45590349754a4c866372ca6e1
[ "MIT" ]
null
null
null
b2/part.py
sam-centrevilletech/B2_Command_Line_Tool
9cdef21cc43cb1d45590349754a4c866372ca6e1
[ "MIT" ]
2
2022-02-24T21:17:18.000Z
2022-03-16T20:45:45.000Z
b2/part.py
sam-centrevilletech/B2_Command_Line_Tool
9cdef21cc43cb1d45590349754a4c866372ca6e1
[ "MIT" ]
null
null
null
###################################################################### # # File: b2/part.py # # Copyright 2019 Backblaze Inc. All Rights Reserved. # # License https://www.backblaze.com/using_b2_code.html # ###################################################################### from b2sdk.part import * # noqa import b2._sdk_deprecation b2._sdk_deprecation.deprecate_module('b2.part')
25.8
70
0.478036
36
387
4.944444
0.722222
0.067416
0.179775
0
0
0
0
0
0
0
0
0.028169
0.082687
387
14
71
27.642857
0.473239
0.322997
0
0
0
0
0.061947
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
4
3b246c731af38e76ca6b836026f4d3fcaf928558
70
py
Python
redismutex/__init__.py
abeerupadhyay/py-redismutex
c78c3fd4ce2b820de2e359cb293f73c220a669a5
[ "MIT" ]
3
2018-05-01T08:02:43.000Z
2018-06-07T15:48:27.000Z
redismutex/__init__.py
esquarer/py-redismutex
c78c3fd4ce2b820de2e359cb293f73c220a669a5
[ "MIT" ]
1
2021-06-16T17:52:57.000Z
2021-06-16T17:52:57.000Z
redismutex/__init__.py
esquarer/py-redismutex
c78c3fd4ce2b820de2e359cb293f73c220a669a5
[ "MIT" ]
1
2021-05-12T15:46:35.000Z
2021-05-12T15:46:35.000Z
from __future__ import absolute_import from .mutex import RedisMutex
17.5
38
0.857143
9
70
6.111111
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.128571
70
3
39
23.333333
0.901639
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
3b2ded358809c72987f0d92ab9161458e9aac748
138
py
Python
common/print_with_time.py
kenichi-ogawa-1988/docker-build-symlink
0a1aded397ce810ec738d5185a1f04ab48cb99ab
[ "MIT" ]
null
null
null
common/print_with_time.py
kenichi-ogawa-1988/docker-build-symlink
0a1aded397ce810ec738d5185a1f04ab48cb99ab
[ "MIT" ]
null
null
null
common/print_with_time.py
kenichi-ogawa-1988/docker-build-symlink
0a1aded397ce810ec738d5185a1f04ab48cb99ab
[ "MIT" ]
null
null
null
from datetime import datetime def print_with_time(*values: object): dt = datetime.now().isoformat() print(f'[{dt}] ', *values)
17.25
37
0.666667
18
138
5
0.722222
0
0
0
0
0
0
0
0
0
0
0
0.173913
138
7
38
19.714286
0.789474
0
0
0
0
0
0.050725
0
0
0
0
0
0
1
0.25
false
0
0.25
0
0.5
0.5
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
1
0
4
3b3d4844392e75e2271951656bab0cd924041d53
114
py
Python
indexpy/http/background.py
2890841438/index.py
0b97d917c06cccc5c95b00a29e24d79b5ced53de
[ "Apache-2.0" ]
null
null
null
indexpy/http/background.py
2890841438/index.py
0b97d917c06cccc5c95b00a29e24d79b5ced53de
[ "Apache-2.0" ]
null
null
null
indexpy/http/background.py
2890841438/index.py
0b97d917c06cccc5c95b00a29e24d79b5ced53de
[ "Apache-2.0" ]
null
null
null
from starlette.background import BackgroundTask, BackgroundTasks __all__ = ["BackgroundTask", "BackgroundTasks"]
28.5
64
0.824561
9
114
10
0.777778
0.644444
0
0
0
0
0
0
0
0
0
0
0.087719
114
3
65
38
0.865385
0
0
0
0
0
0.254386
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
3b5da578b265fa84e1fd43d6694a0418ca9be7e9
130
py
Python
clea/__init__.py
scieloorg/clea
83779d614c31a33d9b34d7240441891d2e295ce9
[ "BSD-2-Clause" ]
4
2019-03-16T04:31:06.000Z
2020-12-28T22:42:10.000Z
clea/__init__.py
scieloorg/clea
83779d614c31a33d9b34d7240441891d2e295ce9
[ "BSD-2-Clause" ]
6
2019-04-05T14:49:16.000Z
2021-05-26T19:30:23.000Z
clea/__init__.py
scieloorg/clea
83779d614c31a33d9b34d7240441891d2e295ce9
[ "BSD-2-Clause" ]
3
2019-03-16T04:30:55.000Z
2021-05-25T12:08:27.000Z
from .core import Article, Branch, InvalidInput, SubArticle # noqa from .misc import clean_empty # noqa __version__ = "0.4.4"
21.666667
67
0.738462
18
130
5.055556
0.777778
0
0
0
0
0
0
0
0
0
0
0.027778
0.169231
130
5
68
26
0.814815
0.069231
0
0
0
0
0.042373
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
3b696a9a2d611d4b1d4feb369099f39e32417dcb
1,012
py
Python
tests/regression_tests/test_ellipsis_match.py
wapcaplet/doctest2
b376983d02c6b475c74f6431603a8cb0448addb5
[ "PSF-2.0" ]
1
2017-08-11T18:41:33.000Z
2017-08-11T18:41:33.000Z
tests/regression_tests/test_ellipsis_match.py
wapcaplet/doctest2
b376983d02c6b475c74f6431603a8cb0448addb5
[ "PSF-2.0" ]
null
null
null
tests/regression_tests/test_ellipsis_match.py
wapcaplet/doctest2
b376983d02c6b475c74f6431603a8cb0448addb5
[ "PSF-2.0" ]
null
null
null
import unittest import doctest2 class TestEllipsisMatch (unittest.TestCase): def test_no_ellipsis(self): result = doctest2._ellipsis_match("foo", "foo") self.assertTrue(result) def test_true_at_start(self): result = doctest2._ellipsis_match("...bar", "foobar") self.assertTrue(result) def test_false_at_start(self): result = doctest2._ellipsis_match("...bar", "foofoo") self.assertFalse(result) def test_true_in_middle(self): result = doctest2._ellipsis_match("aa...aa", "aaaa") self.assertTrue(result) def test_false_in_middle(self): result = doctest2._ellipsis_match("aa...aa", "aaa") self.assertFalse(result) def test_true_at_end(self): result = doctest2._ellipsis_match("foo...", "foobar") self.assertTrue(result) def test_false_at_end(self): result = doctest2._ellipsis_match("bar...", "foobar") self.assertFalse(result) if __name__ == '__main__': pass
27.351351
61
0.657115
118
1,012
5.279661
0.279661
0.078652
0.202247
0.292135
0.791332
0.741573
0.52809
0.46549
0.138042
0
0
0.010038
0.212451
1,012
36
62
28.111111
0.771644
0
0
0.269231
0
0
0.082097
0
0
0
0
0
0.269231
1
0.269231
false
0.038462
0.076923
0
0.384615
0
0
0
0
null
0
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
4
3b8ae9f6822f2253d9d04a5ca0345957bf0b0be1
280
py
Python
bot/api/WeatherExceptions.py
Fra179/BotOrarioScolastico
6d740492a27207095913472b4a8c99818c448ecc
[ "MIT" ]
null
null
null
bot/api/WeatherExceptions.py
Fra179/BotOrarioScolastico
6d740492a27207095913472b4a8c99818c448ecc
[ "MIT" ]
null
null
null
bot/api/WeatherExceptions.py
Fra179/BotOrarioScolastico
6d740492a27207095913472b4a8c99818c448ecc
[ "MIT" ]
1
2020-10-04T08:30:54.000Z
2020-10-04T08:30:54.000Z
class InvalidApiKeyError(Exception): def __init__(self): self.message = "The API key you inserted isn't valid" class InvalidCityNameError(Exception): def __init__(self): self.message = "Couldn't find any city with this name or code. Please check again."
31.111111
91
0.710714
37
280
5.162162
0.756757
0.125654
0.167539
0.209424
0.324607
0.324607
0
0
0
0
0
0
0.203571
280
8
92
35
0.856502
0
0
0.333333
0
0
0.364286
0
0
0
0
0
0
1
0.333333
false
0
0
0
0.666667
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
4
3b8fcf7e800ea3a85168f08d1391ac63446619ec
81
py
Python
modules/src/recipe.py
vedantrathore/Monica
164bf4b3d2f80bd48a827d3e35e0b58786c9c0c5
[ "MIT" ]
18
2016-10-30T12:11:27.000Z
2021-08-19T15:00:36.000Z
modules/src/recipe.py
vedantrathore/Monica
164bf4b3d2f80bd48a827d3e35e0b58786c9c0c5
[ "MIT" ]
12
2016-12-01T08:07:51.000Z
2017-04-28T16:40:55.000Z
modules/src/recipe.py
vedantrathore/Monica
164bf4b3d2f80bd48a827d3e35e0b58786c9c0c5
[ "MIT" ]
23
2016-12-01T09:49:46.000Z
2019-06-18T11:10:59.000Z
import requests, json from templates.generic import GenericTemplate api_key = ""
20.25
45
0.814815
10
81
6.5
0.9
0
0
0
0
0
0
0
0
0
0
0
0.123457
81
4
46
20.25
0.915493
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0
1
0
0
null
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
8eaeca33a8789994c680a6779c52c1650cef7f3c
172
py
Python
www/core/__init__.py
ki-tools/sls_ki_synapse_admin_py
d9483d01000b61c4e8d129bdc06497ae1a27484b
[ "Apache-2.0" ]
null
null
null
www/core/__init__.py
ki-tools/sls_ki_synapse_admin_py
d9483d01000b61c4e8d129bdc06497ae1a27484b
[ "Apache-2.0" ]
null
null
null
www/core/__init__.py
ki-tools/sls_ki_synapse_admin_py
d9483d01000b61c4e8d129bdc06497ae1a27484b
[ "Apache-2.0" ]
null
null
null
from .env import Env from .synapse import Synapse from .exceptions import AuthEmailNotVerifiedError, AuthForbiddenError, AuthLoginFailureError from .cookies import Cookies
34.4
92
0.860465
18
172
8.222222
0.5
0
0
0
0
0
0
0
0
0
0
0
0.104651
172
4
93
43
0.961039
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
8ebbc8f72752d5aef978799a0a0c2c9b527adfdb
239
py
Python
Django_DB_MySQL/sample/models.py
Flychild193/pythonBot
519c1f1e8cce254b1780ced86ac3b79e377133e8
[ "MIT" ]
null
null
null
Django_DB_MySQL/sample/models.py
Flychild193/pythonBot
519c1f1e8cce254b1780ced86ac3b79e377133e8
[ "MIT" ]
null
null
null
Django_DB_MySQL/sample/models.py
Flychild193/pythonBot
519c1f1e8cce254b1780ced86ac3b79e377133e8
[ "MIT" ]
2
2022-03-18T15:28:04.000Z
2022-03-25T09:26:10.000Z
from django.db import models class Customer(models.Model): name = models.CharField(max_length=200) phonenumber = models.CharField(max_length=200) address = models.CharField(max_length=200) # Create your models here.
23.9
50
0.728033
31
239
5.516129
0.580645
0.263158
0.315789
0.421053
0.473684
0
0
0
0
0
0
0.045918
0.179916
239
9
51
26.555556
0.826531
0.100418
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.2
0
1
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
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
8eca1893e33375770c05024bd15edbdab4c6db39
68
py
Python
code/abc044_a_02.py
KoyanagiHitoshi/AtCoder
731892543769b5df15254e1f32b756190378d292
[ "MIT" ]
3
2019-08-16T16:55:48.000Z
2021-04-11T10:21:40.000Z
code/abc044_a_02.py
KoyanagiHitoshi/AtCoder
731892543769b5df15254e1f32b756190378d292
[ "MIT" ]
null
null
null
code/abc044_a_02.py
KoyanagiHitoshi/AtCoder
731892543769b5df15254e1f32b756190378d292
[ "MIT" ]
null
null
null
n,k,x,y=(int(input()) for _ in range(4)) print(n*x-(x-y)*max(n-k,0))
34
40
0.573529
19
68
2
0.684211
0.105263
0
0
0
0
0
0
0
0
0
0.031746
0.073529
68
2
41
34
0.571429
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0
0
0
0.5
1
0
0
null
0
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
8eeea5324d7bcef5fb066cd674af2cded15dd495
300
py
Python
class_SerVivo.py
carlotamartin/Mi-primer-ejercicio-POO
79cc7f13b6a7c0ce1bd0069b23a53e02be7474da
[ "Apache-2.0" ]
null
null
null
class_SerVivo.py
carlotamartin/Mi-primer-ejercicio-POO
79cc7f13b6a7c0ce1bd0069b23a53e02be7474da
[ "Apache-2.0" ]
null
null
null
class_SerVivo.py
carlotamartin/Mi-primer-ejercicio-POO
79cc7f13b6a7c0ce1bd0069b23a53e02be7474da
[ "Apache-2.0" ]
null
null
null
class SerVivo: def __init__(self): self._vivo = True def is_vivo(self): return self._vivo def morir(self): self._vivo= False #Se pone _ porque es una clase abstracta y solo se puede usar en esta clase #Se pone __ porque es una clase privada solo la usa cada clase
30
75
0.676667
48
300
4
0.583333
0.125
0.125
0.145833
0.229167
0.229167
0
0
0
0
0
0
0.266667
300
9
76
33.333333
0.872727
0.45
0
0
0
0
0
0
0
0
0
0
0
1
0.428571
false
0
0
0.142857
0.714286
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
8ef47bb385edf010bef4aa52142982039fb428bc
967
py
Python
app/test/test_article.py
Roney-juma/News_app
5d0e1a6de2d1cb50759b4ab2f51a397e640a9b35
[ "MIT" ]
null
null
null
app/test/test_article.py
Roney-juma/News_app
5d0e1a6de2d1cb50759b4ab2f51a397e640a9b35
[ "MIT" ]
null
null
null
app/test/test_article.py
Roney-juma/News_app
5d0e1a6de2d1cb50759b4ab2f51a397e640a9b35
[ "MIT" ]
null
null
null
import unittest from app.models import Article class ArticleTest(unittest.TestCase): ''' Test Class to test the behaviour of the Article class ''' def setUp(self): ''' Set up method that will run before every Test ''' self.new_article = Article("Coronavirus updates", "Got $3,000? 3 Edge Computing Stocks to Buy Right Now ", "Dream Sports, the headquartered firm builds what it calls…", "https://techcrunch.com/2020/09/14/indian-fantasy-sports-app-dream11s-parent-firm-raises-225m-at-over-2-5b-valuation/", "https://static.coindesk.com/wp-content/uploads/2020/09/claudio-schwarz-purzlbaum-htol9OLeW20-unsplash.jpg", "2020-09-1413:47:13Z", "The folks building the next generation of digital money in Switzerland understand the need to collaborate.Stablecoins, digital tokens pegged one i") def test_instance(self): self.assertTrue(isinstance(self.new_article, Article))
53.722222
316
0.70424
133
967
5.120301
0.721805
0.026432
0.041116
0.061674
0
0
0
0
0
0
0
0.054847
0.189245
967
18
317
53.722222
0.809949
0.102378
0
0
0
0.375
0.621687
0.028916
0
0
0
0
0.125
1
0.25
false
0
0.25
0
0.625
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
1
1
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
4
8ef484b3b43f542298891195d974717449df9e14
46
py
Python
Data-Analysis/venv_macos/lib/python3.8/site-packages/IPython/utils/_sysinfo.py
Qiaozhi94/Python-Projects
aefc6cf49c1f4f2cc9beba8dbe80cfa826ba75c4
[ "MIT" ]
null
null
null
Data-Analysis/venv_macos/lib/python3.8/site-packages/IPython/utils/_sysinfo.py
Qiaozhi94/Python-Projects
aefc6cf49c1f4f2cc9beba8dbe80cfa826ba75c4
[ "MIT" ]
2
2021-06-08T21:41:55.000Z
2021-09-08T02:06:41.000Z
Data-Analysis/venv_macos/lib/python3.8/site-packages/IPython/utils/_sysinfo.py
Qiaozhi94/Python-Projects
aefc6cf49c1f4f2cc9beba8dbe80cfa826ba75c4
[ "MIT" ]
null
null
null
# GENERATED BY setup.py commit = u"2922831ac"
15.333333
23
0.73913
7
46
4.857143
1
0
0
0
0
0
0
0
0
0
0
0.179487
0.152174
46
2
24
23
0.692308
0.456522
0
0
1
0
0.391304
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
d91f17281e3b79d918915f7bd9561fae651821ed
47
py
Python
awards/__init__.py
Sundaybrian/prodev
ed51fbd7c70941de36f7bc59c1940acfafaecf72
[ "MIT" ]
null
null
null
awards/__init__.py
Sundaybrian/prodev
ed51fbd7c70941de36f7bc59c1940acfafaecf72
[ "MIT" ]
7
2020-06-05T22:53:10.000Z
2022-02-10T08:29:14.000Z
awards/__init__.py
Sundaybrian/prodev
ed51fbd7c70941de36f7bc59c1940acfafaecf72
[ "MIT" ]
null
null
null
default_app_config = 'awards.apps.AwardsConfig'
47
47
0.851064
6
47
6.333333
1
0
0
0
0
0
0
0
0
0
0
0
0.042553
47
1
47
47
0.844444
0
0
0
0
0
0.5
0.5
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
79b77bdde4693a676e1e8f81b0eea739a4fca46f
185
py
Python
pyctm/uv_map.py
mateusazis/pyctm
7851d3279ea2ce790e24ea996cf8ce3637823ee7
[ "MIT" ]
null
null
null
pyctm/uv_map.py
mateusazis/pyctm
7851d3279ea2ce790e24ea996cf8ce3637823ee7
[ "MIT" ]
null
null
null
pyctm/uv_map.py
mateusazis/pyctm
7851d3279ea2ce790e24ea996cf8ce3637823ee7
[ "MIT" ]
null
null
null
class UvMap(object): def __init__(self, coords=[], texture_file_name='', name=''): self.coords = tuple(coords) self.texture_file_name = texture_file_name self.name = name
30.833333
63
0.697297
25
185
4.76
0.44
0.277311
0.378151
0
0
0
0
0
0
0
0
0
0.162162
185
5
64
37
0.767742
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0
0
0.4
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
79bd18147692a8088b5181391fbc169fbb62d48a
44
py
Python
fast/__init__.py
jonatasoli/fastcli
77d6ba86495e501326820ec3c7be8f1ce5e7a792
[ "MIT" ]
null
null
null
fast/__init__.py
jonatasoli/fastcli
77d6ba86495e501326820ec3c7be8f1ce5e7a792
[ "MIT" ]
null
null
null
fast/__init__.py
jonatasoli/fastcli
77d6ba86495e501326820ec3c7be8f1ce5e7a792
[ "MIT" ]
null
null
null
__app_name__ = "fast" __version__ = "0.0.1"
14.666667
21
0.681818
7
44
3
0.857143
0
0
0
0
0
0
0
0
0
0
0.078947
0.136364
44
2
22
22
0.473684
0
0
0
0
0
0.204545
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
8dc418ab57e8c6bd327fc748e0875ad37c81b6e5
1,333
py
Python
webserver/mqtt_config.py
fabocode/nested-loop-server
ada7a079880e860a5d04cbb75e100bf555bce352
[ "MIT" ]
null
null
null
webserver/mqtt_config.py
fabocode/nested-loop-server
ada7a079880e860a5d04cbb75e100bf555bce352
[ "MIT" ]
null
null
null
webserver/mqtt_config.py
fabocode/nested-loop-server
ada7a079880e860a5d04cbb75e100bf555bce352
[ "MIT" ]
null
null
null
import yaml class MQTTConfig: def __init__(self, config_file): with open(config_file, 'r') as f: self.config = yaml.load(f, Loader=yaml.FullLoader) self.broker_address = self.config.get('FLESPI_MQTT')["HOSTNAME"] self.port = int(self.config.get('FLESPI_MQTT')["PORT"]) self.username = self.config.get('FLESPI_MQTT')["USERNAME"] self.password = str(self.config.get('FLESPI_MQTT')["PASSWORD"]) self.id = self.config.get('HEV')["ID"] self.client_name = self.config.get('HEV')["CLIENT_NAME"] self.credit_purchased_pub = self.config.get('NOTIFICATIONS')["CREDIT_PURCHASED_PUB"] self.credit_purchased_resp = self.config.get('NOTIFICATIONS')["CREDIT_PURCHASED_SUB"] def get_credit_purchased_pub(self): return self.credit_purchased_pub def get_credit_purchased_resp(self): return self.credit_purchased_resp def get_broker_address(self): return self.broker_address def get_port(self): return self.port def get_username(self): return self.username def get_password(self): return self.password def get_id(self): return self.id
37.027778
98
0.6009
156
1,333
4.891026
0.25
0.131062
0.136304
0.099607
0.304063
0.107471
0
0
0
0
0
0
0.288822
1,333
35
99
38.085714
0.804852
0
0
0
0
0
0.11853
0
0
0
0
0
0
1
0.296296
false
0.111111
0.037037
0.259259
0.62963
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
8dc5cc6feef735147021d2f6593ef62f25581180
141
py
Python
tests/__init__.py
ryan109/pyinfra
6814920c634a2a047299875077633f72ecc46fce
[ "MIT" ]
1
2020-04-12T16:15:15.000Z
2020-04-12T16:15:15.000Z
tests/__init__.py
gchazot/pyinfra
40dd01f11086dba2be20fa2f509556abb40d84f8
[ "MIT" ]
null
null
null
tests/__init__.py
gchazot/pyinfra
40dd01f11086dba2be20fa2f509556abb40d84f8
[ "MIT" ]
null
null
null
# pyinfra # File: tests/__init__.py # Desc: bootstrap basic logging for the tests import logging logging.basicConfig(level=logging.DEBUG)
15.666667
45
0.780142
19
141
5.578947
0.789474
0
0
0
0
0
0
0
0
0
0
0
0.134752
141
8
46
17.625
0.868852
0.531915
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
8dca7644272fcca5af3df176230441c8c3abbe5b
434
py
Python
src/utils/networking/multiprocessingUtils.py
joacorapela/svGPFA
181c03f47a3b7023ac7f873c2ec98cba54a73feb
[ "MIT" ]
2
2020-09-01T16:46:20.000Z
2022-02-28T19:43:04.000Z
src/utils/networking/multiprocessingUtils.py
joacorapela/svGPFA
181c03f47a3b7023ac7f873c2ec98cba54a73feb
[ "MIT" ]
13
2020-12-22T20:16:28.000Z
2021-06-01T16:18:00.000Z
src/utils/networking/multiprocessingUtils.py
joacorapela/svGPFA
181c03f47a3b7023ac7f873c2ec98cba54a73feb
[ "MIT" ]
1
2020-03-26T18:14:52.000Z
2020-03-26T18:14:52.000Z
class FileLock: def __init__(self, filename): self.filename = filename with open(self.filename, 'w') as f: f.write('done') def lock(self): with open(self.filename, 'w') as f: f.write('working') def unlock(self): with open(self.filename, 'w') as f: f.write('done') def is_locked(self): return open(self.filename, 'r').read() == 'working'
22.842105
59
0.541475
56
434
4.107143
0.375
0.313043
0.278261
0.26087
0.486957
0.486957
0.486957
0.486957
0.486957
0.486957
0
0
0.308756
434
18
60
24.111111
0.766667
0
0
0.384615
0
0
0.060185
0
0
0
0
0
0
1
0.307692
false
0
0
0.076923
0.461538
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
8dcdc134e54b9ad4f171c8b43477ad8673838d96
289
py
Python
IOMC/EventVertexGenerators/python/VtxSmearedEarly10TeVX322Y100_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
IOMC/EventVertexGenerators/python/VtxSmearedEarly10TeVX322Y100_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
IOMC/EventVertexGenerators/python/VtxSmearedEarly10TeVX322Y100_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms from IOMC.EventVertexGenerators.VtxSmearedParameters_cfi import Early10TeVX322Y100VtxSmearingParameters,VtxSmearedCommon VtxSmeared = cms.EDProducer("BetafuncEvtVtxGenerator", Early10TeVX322Y100VtxSmearingParameters, VtxSmearedCommon )
26.272727
120
0.865052
20
289
12.45
0.8
0.441767
0
0
0
0
0
0
0
0
0
0.060837
0.089965
289
10
121
28.9
0.885932
0
0
0
0
0
0.08042
0.08042
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
1
0
1
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
8de7644b448ec7971d72e5d154273b02c46e4b3e
230
py
Python
src/CodeLearn/plaintextCode/BloomTech/BTU5W1/U5W1P2_Task1_w1.py
MingjunGeng/Code-Knowledge
5b376f6b3ff9e7fa0ab41c7b57e3a80313fa0daa
[ "MIT" ]
null
null
null
src/CodeLearn/plaintextCode/BloomTech/BTU5W1/U5W1P2_Task1_w1.py
MingjunGeng/Code-Knowledge
5b376f6b3ff9e7fa0ab41c7b57e3a80313fa0daa
[ "MIT" ]
null
null
null
src/CodeLearn/plaintextCode/BloomTech/BTU5W1/U5W1P2_Task1_w1.py
MingjunGeng/Code-Knowledge
5b376f6b3ff9e7fa0ab41c7b57e3a80313fa0daa
[ "MIT" ]
1
2022-03-18T04:52:10.000Z
2022-03-18T04:52:10.000Z
#!/usr/bin/python3 # --- 001 > U5W2P1_Task1_w1 def solution(s): return int(s) if __name__ == "__main__": print('----------start------------') s = "12" print(solution( s )) print('------------end------------')
23
40
0.46087
25
230
3.84
0.76
0.1875
0
0
0
0
0
0
0
0
0
0.058824
0.186957
230
10
41
23
0.454545
0.186957
0
0
0
0
0.344086
0.290323
0
0
0
0
0
1
0.142857
false
0
0
0.142857
0.285714
0.428571
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
1
0
4
8df949a7466dfc27abf94637a844590ae6507b42
101
py
Python
applications/mupiopolitico/apps.py
PEM-Humboldt/visor-geografico-I2d-backend
5b5f4e0eee07e14bd8124cec624b5a5004c4d168
[ "MIT" ]
null
null
null
applications/mupiopolitico/apps.py
PEM-Humboldt/visor-geografico-I2d-backend
5b5f4e0eee07e14bd8124cec624b5a5004c4d168
[ "MIT" ]
null
null
null
applications/mupiopolitico/apps.py
PEM-Humboldt/visor-geografico-I2d-backend
5b5f4e0eee07e14bd8124cec624b5a5004c4d168
[ "MIT" ]
null
null
null
from django.apps import AppConfig class MupiopoliticoConfig(AppConfig): name = 'mupiopolitico'
16.833333
37
0.782178
10
101
7.9
0.9
0
0
0
0
0
0
0
0
0
0
0
0.148515
101
5
38
20.2
0.918605
0
0
0
0
0
0.128713
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
8df9cd7a0941d30b14d6eb751a5f656b53792eb7
124
py
Python
iman/apps.py
gladsonvm/fileupload-api
96f7830fe62217d433dda7df314f65bdb3d42a1d
[ "MIT" ]
null
null
null
iman/apps.py
gladsonvm/fileupload-api
96f7830fe62217d433dda7df314f65bdb3d42a1d
[ "MIT" ]
null
null
null
iman/apps.py
gladsonvm/fileupload-api
96f7830fe62217d433dda7df314f65bdb3d42a1d
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from django.apps import AppConfig class ImanConfig(AppConfig): name = 'iman'
15.5
39
0.782258
15
124
6.133333
0.8
0
0
0
0
0
0
0
0
0
0
0
0.16129
124
7
40
17.714286
0.884615
0
0
0
0
0
0.032258
0
0
0
0
0
0
1
0
false
0
0.5
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
5c1ae897917103a32520fe568bd65f0b49d7d697
121
py
Python
src/item.py
rguillon/mmrpg
94f06b8bb13d4a94caeed247d7ceb1675b785148
[ "MIT" ]
null
null
null
src/item.py
rguillon/mmrpg
94f06b8bb13d4a94caeed247d7ceb1675b785148
[ "MIT" ]
null
null
null
src/item.py
rguillon/mmrpg
94f06b8bb13d4a94caeed247d7ceb1675b785148
[ "MIT" ]
null
null
null
from item_modifier import * class Item(Object): def __init__(yaml_node): self.node = yaml_node def
12.1
29
0.644628
16
121
4.4375
0.6875
0.225352
0
0
0
0
0
0
0
0
0
0
0.280992
121
9
30
13.444444
0.816092
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0.2
null
null
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
4
5c2c9cff7d7b7c9ed936c37453a1f32e803dfab8
334
py
Python
evolution/layers/reshape.py
vfcosta/coegan-trained
44174e68909d9c03bf2e4b7e4c7a48237a560183
[ "MIT" ]
null
null
null
evolution/layers/reshape.py
vfcosta/coegan-trained
44174e68909d9c03bf2e4b7e4c7a48237a560183
[ "MIT" ]
null
null
null
evolution/layers/reshape.py
vfcosta/coegan-trained
44174e68909d9c03bf2e4b7e4c7a48237a560183
[ "MIT" ]
1
2021-06-11T16:52:55.000Z
2021-06-11T16:52:55.000Z
import torch.nn as nn class Reshape(nn.Module): def __init__(self, shape): super().__init__() self.shape = shape def forward(self, input_data): return input_data.view(self.shape) def __repr__(self): return self.__class__.__name__ + '(' \ + 'shape=' + str(self.shape) + ')'
20.875
46
0.586826
40
334
4.35
0.5
0.206897
0.149425
0
0
0
0
0
0
0
0
0
0.275449
334
15
47
22.266667
0.719008
0
0
0
0
0
0.023952
0
0
0
0
0
0
1
0.3
false
0
0.1
0.2
0.7
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
4
3088e7e532abd96e92359911b739309667b4bd6c
202
py
Python
phanterpwa/interface/Admin/api/controllers/__init__.py
PhanterJR/phanterpwa
6daff40845b3a853cd08d319c4ce148f8deebed7
[ "MIT" ]
2
2019-06-06T10:37:01.000Z
2021-10-16T03:36:28.000Z
phanterpwa/interface/Admin/backapps/api/controllers/__init__.py
PhanterJR/phanterpwa
6daff40845b3a853cd08d319c4ce148f8deebed7
[ "MIT" ]
null
null
null
phanterpwa/interface/Admin/backapps/api/controllers/__init__.py
PhanterJR/phanterpwa
6daff40845b3a853cd08d319c4ce148f8deebed7
[ "MIT" ]
null
null
null
import os import glob files = glob.glob(os.path.join(os.path.dirname(__file__), "*.py")) __all__ = [os.path.basename(x)[0:-3] for x in files if os.path.basename(x) != "__init__.py" and x[-3:] == ".py"]
40.4
112
0.658416
37
202
3.27027
0.513514
0.198347
0.231405
0.247934
0
0
0
0
0
0
0
0.01676
0.113861
202
4
113
50.5
0.659218
0
0
0
0
0
0.089109
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
3089fb6b929859b649dfbbcccb8ce8a85b3a9741
40
py
Python
src/actuariat_python/exams/__init__.py
Pandinosaurus/actuariat_python
77533a75fcc63a5a7ebca664a19a24c9439670ee
[ "MIT" ]
5
2017-03-13T15:58:40.000Z
2021-02-03T12:52:58.000Z
src/actuariat_python/exams/__init__.py
Pandinosaurus/actuariat_python
77533a75fcc63a5a7ebca664a19a24c9439670ee
[ "MIT" ]
13
2015-06-14T22:01:37.000Z
2021-01-05T13:57:00.000Z
src/actuariat_python/exams/__init__.py
Pandinosaurus/actuariat_python
77533a75fcc63a5a7ebca664a19a24c9439670ee
[ "MIT" ]
9
2017-01-15T15:06:55.000Z
2022-01-18T20:42:48.000Z
""" @file @brief shortcuts to exams """
8
25
0.625
5
40
5
1
0
0
0
0
0
0
0
0
0
0
0
0.175
40
4
26
10
0.757576
0.775
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
308b1852787975c468ee7bc0ccd039c43b93cdbe
156
py
Python
reddit2telegram/channels/~inactive/r_tf2/app.py
mainyordle/reddit2telegram
1163e15aed3b6ff0fba65b222d3d9798f644c386
[ "MIT" ]
187
2016-09-20T09:15:54.000Z
2022-03-29T12:22:33.000Z
reddit2telegram/channels/~inactive/r_tf2/app.py
mainyordle/reddit2telegram
1163e15aed3b6ff0fba65b222d3d9798f644c386
[ "MIT" ]
84
2016-09-22T14:25:07.000Z
2022-03-19T01:26:17.000Z
reddit2telegram/channels/~inactive/r_tf2/app.py
mainyordle/reddit2telegram
1163e15aed3b6ff0fba65b222d3d9798f644c386
[ "MIT" ]
172
2016-09-21T15:39:39.000Z
2022-03-16T15:15:58.000Z
#encoding:utf-8 subreddit = 'tf2+tf2memes+tf2shitposterclub' t_channel = '@r_TF2' def send_post(submission, r2t): return r2t.send_simple(submission)
17.333333
44
0.75641
21
156
5.428571
0.809524
0
0
0
0
0
0
0
0
0
0
0.051095
0.121795
156
8
45
19.5
0.781022
0.089744
0
0
0
0
0.255319
0.212766
0
0
0
0
0
1
0.25
false
0
0
0.25
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
1
0
0
0
1
0
0
0
4
309e1f9086f6f28a83c3ee274b3de03c2297a0d4
128
py
Python
3. Python Advanced (September 2021)/3.1 Python Advanced (September 2021)/17. Modules/02_ascii_art.py
kzborisov/SoftUni
ccb2b8850adc79bfb2652a45124c3ff11183412e
[ "MIT" ]
1
2021-02-07T07:51:12.000Z
2021-02-07T07:51:12.000Z
3. Python Advanced (September 2021)/3.1 Python Advanced (September 2021)/17. Modules/02_ascii_art.py
kzborisov/softuni
9c5b45c74fa7d9748e9b3ea65a5ae4e15c142751
[ "MIT" ]
null
null
null
3. Python Advanced (September 2021)/3.1 Python Advanced (September 2021)/17. Modules/02_ascii_art.py
kzborisov/softuni
9c5b45c74fa7d9748e9b3ea65a5ae4e15c142751
[ "MIT" ]
null
null
null
import pyfiglet def ascii_art(text): return pyfiglet.print_figlet(text) input_str = input() print(ascii_art(input_str))
12.8
38
0.757813
19
128
4.842105
0.578947
0.173913
0
0
0
0
0
0
0
0
0
0
0.140625
128
9
39
14.222222
0.836364
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.2
0.2
0.6
0.4
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
4
30a4ce91d0e782188f75faf770a6f31e7084faae
407
py
Python
attendance_extension/tests/__init__.py
aleksas/erpnext_attendance_extension
559abb1c4077d5052ef97cb309fe60bfda3c4828
[ "MIT" ]
5
2019-04-05T07:26:51.000Z
2021-04-27T20:18:16.000Z
attendance_extension/tests/__init__.py
aleksas/erpnext_attendance_extension
559abb1c4077d5052ef97cb309fe60bfda3c4828
[ "MIT" ]
null
null
null
attendance_extension/tests/__init__.py
aleksas/erpnext_attendance_extension
559abb1c4077d5052ef97cb309fe60bfda3c4828
[ "MIT" ]
6
2019-04-08T06:12:38.000Z
2021-09-26T15:33:35.000Z
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # MIT License. See license.txt from __future__ import unicode_literals import frappe from werkzeug.wrappers import Request from werkzeug.test import EnvironBuilder def set_request(**kwargs): builder = EnvironBuilder(**kwargs) frappe.local.request = Request(builder.get_environ()) def insert_test_data(doctype, sort_fn=None): pass
23.941176
68
0.796069
54
407
5.814815
0.685185
0.076433
0
0
0
0
0
0
0
0
0
0.011173
0.120393
407
16
69
25.4375
0.865922
0.233415
0
0
0
0
0
0
0
0
0
0
0
1
0.222222
false
0.111111
0.444444
0
0.666667
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
1
0
1
0
0
4
30ab3ab8d965bbc2f2bb62857acb53e47002d2ee
104
py
Python
count_items.py
aaronhma/1000-algorithms
e49d1c40f2f7a2920e7579aadb84ddcf83e48c17
[ "MIT" ]
2
2020-05-10T17:38:55.000Z
2020-06-05T06:16:36.000Z
count_items.py
aaronhma/1000-algorithms
e49d1c40f2f7a2920e7579aadb84ddcf83e48c17
[ "MIT" ]
null
null
null
count_items.py
aaronhma/1000-algorithms
e49d1c40f2f7a2920e7579aadb84ddcf83e48c17
[ "MIT" ]
null
null
null
def countItems(a: list) -> int: if len(a) == 0: return 0 else: return 1 + countItems(a[1:])
17.333333
32
0.557692
17
104
3.411765
0.647059
0.37931
0
0
0
0
0
0
0
0
0
0.052632
0.269231
104
5
33
20.8
0.710526
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0
0
0.6
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
4
30fc71d8cf7751bfa2e9db10445dc6904fb6eeee
122
py
Python
{{ cookiecutter.repo_service_reponame }}/src/{{ cookiecutter.slug }}/exception.py
boilpy/boilpy
78f353a4b45e1df2e573993d686418dfc1f13cc8
[ "MIT" ]
8
2018-11-03T12:50:42.000Z
2021-12-15T15:36:14.000Z
{{ cookiecutter.repo_service_reponame }}/src/{{ cookiecutter.slug }}/exception.py
boilpy/boilpy
78f353a4b45e1df2e573993d686418dfc1f13cc8
[ "MIT" ]
1
2021-09-03T16:55:39.000Z
2021-09-03T16:55:39.000Z
{{ cookiecutter.repo_service_reponame }}/src/{{ cookiecutter.slug }}/exception.py
boilpy/boilpy
78f353a4b45e1df2e573993d686418dfc1f13cc8
[ "MIT" ]
null
null
null
class {{ cookiecutter.slug.capitalize() }}Error(Exception): pass class DependencyNotFoundError(ImportError): pass
24.4
59
0.754098
11
122
8.363636
0.818182
0
0
0
0
0
0
0
0
0
0
0
0.131148
122
5
60
24.4
0.867925
0
0
0.5
0
0
0
0
0
0
0
0
0
0
null
null
0.5
0.25
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
1
0
0
0
0
0
4
eb550bc4bb6ed7e93cf207b63361baf5ff5e1512
173
py
Python
webarm/devices/apps.py
AlexGolovaschenko/WebArm
1019b73b1ad5560a626261bbce05137c01edcee5
[ "MIT" ]
null
null
null
webarm/devices/apps.py
AlexGolovaschenko/WebArm
1019b73b1ad5560a626261bbce05137c01edcee5
[ "MIT" ]
null
null
null
webarm/devices/apps.py
AlexGolovaschenko/WebArm
1019b73b1ad5560a626261bbce05137c01edcee5
[ "MIT" ]
null
null
null
from django.apps import AppConfig class DevicesConfig(AppConfig): name = 'devices' verbose_name = "Устройства" def ready(self): import devices.signals
19.222222
33
0.699422
19
173
6.315789
0.789474
0
0
0
0
0
0
0
0
0
0
0
0.219653
173
9
34
19.222222
0.888889
0
0
0
0
0
0.097701
0
0
0
0
0
0
1
0.166667
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
cce4dce5b9f5d04486f556527fd661ca612a40c8
139
py
Python
Files.py/1019.py
gomes-gabriel/URI
5c79eccb37cd0633c2ed58144e876013bfad679a
[ "MIT" ]
null
null
null
Files.py/1019.py
gomes-gabriel/URI
5c79eccb37cd0633c2ed58144e876013bfad679a
[ "MIT" ]
null
null
null
Files.py/1019.py
gomes-gabriel/URI
5c79eccb37cd0633c2ed58144e876013bfad679a
[ "MIT" ]
null
null
null
N = int(input()) _hour = str(N // 3600) N = N % 3600 _min = str(N // 60) _sec = str(N % 60) print(_hour + ':', _min + ':', _sec, sep='')
15.444444
44
0.496403
23
139
2.73913
0.478261
0.190476
0.190476
0
0
0
0
0
0
0
0
0.113208
0.23741
139
8
45
17.375
0.481132
0
0
0
0
0
0.014388
0
0
0
0
0
0
1
0
false
0
0
0
0
0.166667
1
0
0
null
0
1
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
cce5edbf79e57b50e37f8680a737c8dbe02a278b
65
py
Python
donghuangzhong/src/modules/sniffer/__init__.py
onsis/hack-tools
1a1dfebfab8c83379f17563900d3aeb9f240c658
[ "Apache-2.0" ]
null
null
null
donghuangzhong/src/modules/sniffer/__init__.py
onsis/hack-tools
1a1dfebfab8c83379f17563900d3aeb9f240c658
[ "Apache-2.0" ]
null
null
null
donghuangzhong/src/modules/sniffer/__init__.py
onsis/hack-tools
1a1dfebfab8c83379f17563900d3aeb9f240c658
[ "Apache-2.0" ]
null
null
null
__all__ = ['http_sniffer','password_sniffer','database_sniffer']
32.5
64
0.784615
7
65
6.285714
0.714286
0
0
0
0
0
0
0
0
0
0
0
0.046154
65
1
65
65
0.709677
0
0
0
0
0
0.676923
0
0
0
0
0
0
1
0
false
1
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
4
ccf14f8ee6fa6a7415893ce9f3bec07f05d81569
630
py
Python
src/stocks/predicate.py
korias24/stocks
05ebada44f3439aa6b4ae70591a2923e852c3dfa
[ "MIT" ]
null
null
null
src/stocks/predicate.py
korias24/stocks
05ebada44f3439aa6b4ae70591a2923e852c3dfa
[ "MIT" ]
null
null
null
src/stocks/predicate.py
korias24/stocks
05ebada44f3439aa6b4ae70591a2923e852c3dfa
[ "MIT" ]
1
2021-09-26T20:09:05.000Z
2021-09-26T20:09:05.000Z
# -*- coding: utf-8 -*- import functools def notp(p): def _p(x): return not p(x) return _p def binop(op, *ps): def _p(x): return functools.reduce(op, [p(x) for p in ps]) return _p def andp(*ps): return binop(lambda x, y: x and y, *ps) def orp(*ps): return binop(lambda x, y: x or y, *ps) def lt(v): def p(x): return x < v return p def gt(v): def p(x): return x > v return p def lte(v): return notp(gt(v)) def gte(v): return notp(lt(v)) def eql(v): def p(x): return x == v return p def neql(v): return notp(eql(v))
12.857143
55
0.51746
114
630
2.824561
0.263158
0.043478
0.149068
0.170807
0.360248
0.360248
0.360248
0.223602
0.223602
0.223602
0
0.00237
0.330159
630
48
56
13.125
0.760664
0.033333
0
0.322581
0
0
0
0
0
0
0
0
0
1
0.483871
false
0
0.032258
0.322581
1
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
4
690bed21b32719b0a98357ab70a66cc5a0bb244e
160
py
Python
sprite.py
karx1/GusTheGame
b0deb1c74816d6e6209ab4ce1916aaaf333b5fd3
[ "Unlicense" ]
1
2021-08-31T13:44:48.000Z
2021-08-31T13:44:48.000Z
sprite.py
karx1/GusTheGame
b0deb1c74816d6e6209ab4ce1916aaaf333b5fd3
[ "Unlicense" ]
null
null
null
sprite.py
karx1/GusTheGame
b0deb1c74816d6e6209ab4ce1916aaaf333b5fd3
[ "Unlicense" ]
null
null
null
import arcade class Sprite(arcade.Sprite): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.interacted_text = ""
26.666667
41
0.6375
18
160
5.166667
0.666667
0.215054
0
0
0
0
0
0
0
0
0
0
0.20625
160
6
42
26.666667
0.732283
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.6
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
4
690ed1078cd48ec17aa195531156b84d312478d4
137
py
Python
StadicViewer/__init__.py
sariths/stadicViewer
a8031bfd43ef5f1d91db66232442897fe9c5c004
[ "MIT" ]
1
2020-04-29T08:22:07.000Z
2020-04-29T08:22:07.000Z
StadicViewer/__init__.py
sariths/stadicViewer
a8031bfd43ef5f1d91db66232442897fe9c5c004
[ "MIT" ]
null
null
null
StadicViewer/__init__.py
sariths/stadicViewer
a8031bfd43ef5f1d91db66232442897fe9c5c004
[ "MIT" ]
2
2017-06-06T19:09:11.000Z
2021-07-25T23:42:56.000Z
# coding=utf-8 """ Contains all the scripts that parse json/hea files and process them into formats that are required for charts. """
34.25
114
0.737226
22
137
4.590909
0.954545
0
0
0
0
0
0
0
0
0
0
0.008929
0.182482
137
4
115
34.25
0.892857
0.905109
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
69117d95822f480890fbe60923a38ed34acd3fc7
16,181
py
Python
bluebottle/time_based/tests/test_scenarios.py
terrameijar/bluebottle
b4f5ba9c4f03e678fdd36091b29240307ea69ffd
[ "BSD-3-Clause" ]
10
2015-05-28T18:26:40.000Z
2021-09-06T10:07:03.000Z
bluebottle/time_based/tests/test_scenarios.py
terrameijar/bluebottle
b4f5ba9c4f03e678fdd36091b29240307ea69ffd
[ "BSD-3-Clause" ]
762
2015-01-15T10:00:59.000Z
2022-03-31T15:35:14.000Z
bluebottle/time_based/tests/test_scenarios.py
terrameijar/bluebottle
b4f5ba9c4f03e678fdd36091b29240307ea69ffd
[ "BSD-3-Clause" ]
9
2015-02-20T13:19:30.000Z
2022-03-08T14:09:17.000Z
from datetime import date, timedelta from django.utils.timezone import now from bluebottle.initiatives.tests.factories import InitiativeFactory from bluebottle.initiatives.tests.steps import api_initiative_transition from bluebottle.test.factory_models.accounts import BlueBottleUserFactory from bluebottle.test.utils import BluebottleTestCase, JSONAPITestClient, BluebottleAdminTestCase from bluebottle.time_based.tests.factories import DateActivityFactory, DateActivitySlotFactory from bluebottle.time_based.tests.steps import api_user_joins_activity, assert_participant_status, \ api_participant_transition, assert_status, assert_slot_participant_status, assert_not_slot_participant, \ api_user_joins_slot, api_slot_participant_transition, api_create_date_activity, api_create_date_slot, \ api_update_date_slot, api_activity_transition class DateActivityScenarioTestCase(BluebottleAdminTestCase): def setUp(self): super().setUp() self.owner = BlueBottleUserFactory.create() self.supporter = BlueBottleUserFactory.create() self.initiative = InitiativeFactory.create(owner=self.owner, status='draft') self.client = JSONAPITestClient() def test_create_with_multiple_slots(self): activity_data = { 'title': 'Beach clean-up Katwijk', 'review': False, 'slot_selection': 'all', 'registration-deadline': str(date.today() + timedelta(days=1)), 'capacity': 10, 'description': 'We will clean up the beach south of Katwijk' } activity = api_create_date_activity(self, self.initiative, activity_data) data = { 'start': str(now() + timedelta(days=10)), 'is-online': True, 'duration': '2:30:00', } slot1 = api_create_date_slot(self, activity, data) assert_status(self, slot1, 'open') data = { 'start': str(now() + timedelta(days=11)), 'duration': '2:30:00', } slot2 = api_create_date_slot(self, activity, data) assert_status(self, slot2, 'draft') self.assertEqual(activity.slots.count(), 2) api_initiative_transition(self, self.initiative, 'submit') assert_status(self, self.initiative, 'submitted') self.initiative.states.approve(save=True) assert_status(self, activity, 'draft') assert_status(self, slot1, 'open') assert_status(self, slot2, 'draft') data = { 'start': str(now() + timedelta(days=11)), 'duration': '2:30:00', 'is_online': False } slot2 = api_update_date_slot(self, slot2, data) assert_status(self, slot2, 'draft') assert_status(self, activity, 'draft') api_activity_transition(self, activity, 'submit', status_code=400, msg="Submitting the activity should not yet be allowed") data = { 'start': str(now() + timedelta(days=11)), 'duration': '2:30:00', 'is_online': True } slot2 = api_update_date_slot(self, slot2, data) assert_status(self, slot2, 'open') assert_status(self, activity, 'draft') api_activity_transition(self, activity, 'submit') assert_status(self, activity, 'open') class DateParticipantScenarioTestCase(BluebottleTestCase): def setUp(self): super().setUp() self.owner = BlueBottleUserFactory.create() self.supporter = BlueBottleUserFactory.create() self.activity = DateActivityFactory.create(status='open', owner=self.owner, slots=[]) self.slot1 = DateActivitySlotFactory.create(activity=self.activity) self.slot2 = DateActivitySlotFactory.create(activity=self.activity) self.slot3 = DateActivitySlotFactory.create(activity=self.activity) self.slot4 = DateActivitySlotFactory.create(activity=self.activity) self.client = JSONAPITestClient() def test_user_joins_activity(self): api_user_joins_activity(self, self.activity, self.supporter) assert_participant_status(self, self.activity, self.supporter, status='accepted') assert_slot_participant_status(self, self.slot1, self.supporter, status='registered') assert_slot_participant_status(self, self.slot2, self.supporter, status='registered') assert_slot_participant_status(self, self.slot3, self.supporter, status='registered') assert_slot_participant_status(self, self.slot4, self.supporter, status='registered') def test_user_joins_review_activity_accepted(self): self.activity.review = True self.activity.save() api_user_joins_activity(self, self.activity, self.supporter) assert_participant_status(self, self.activity, self.supporter, status='new') api_participant_transition(self, self.activity, self.supporter, transition='accept', request_user=self.owner) assert_participant_status(self, self.activity, self.supporter, status='accepted') api_participant_transition(self, self.activity, self.supporter, transition='remove', request_user=self.owner) assert_participant_status(self, self.activity, self.supporter, status='rejected') api_participant_transition(self, self.activity, self.supporter, transition='accept', request_user=self.owner) assert_participant_status(self, self.activity, self.supporter, status='accepted') def test_user_withdraws_from_activity(self): api_user_joins_activity(self, self.activity, self.supporter) assert_participant_status(self, self.activity, self.supporter, status='accepted') api_participant_transition(self, self.activity, self.supporter, transition='withdraw') assert_participant_status(self, self.activity, self.supporter, status='withdrawn') api_participant_transition(self, self.activity, self.supporter, transition='reapply') assert_participant_status(self, self.activity, self.supporter, status='accepted') def test_user_withdraws_from_review_activity(self): self.activity.review = True self.activity.save() api_user_joins_activity(self, self.activity, self.supporter) assert_participant_status(self, self.activity, self.supporter, status='new') api_participant_transition(self, self.activity, self.supporter, transition='withdraw') assert_participant_status(self, self.activity, self.supporter, status='withdrawn') api_participant_transition(self, self.activity, self.supporter, transition='reapply') assert_participant_status(self, self.activity, self.supporter, status='new') api_participant_transition(self, self.activity, self.supporter, transition='reject', request_user=self.owner) assert_participant_status(self, self.activity, self.supporter, status='rejected') def test_user_fills_activity(self): self.activity.capacity = 1 self.activity.save() api_user_joins_activity(self, self.activity, self.supporter) assert_participant_status(self, self.activity, self.supporter, status='accepted') assert_status(self, model=self.activity, status='full') api_participant_transition(self, self.activity, self.supporter, transition='withdraw') assert_participant_status(self, self.activity, self.supporter, status='withdrawn') assert_status(self, model=self.activity, status='open') api_participant_transition(self, self.activity, self.supporter, transition='reapply') assert_participant_status(self, self.activity, self.supporter, status='accepted') assert_status(self, model=self.activity, status='full') api_participant_transition(self, self.activity, self.supporter, transition='remove', request_user=self.owner) assert_participant_status(self, self.activity, self.supporter, status='rejected') assert_status(self, model=self.activity, status='open') def test_user_selects_slots(self): self.activity.slot_selection = 'free' self.activity.save() api_user_joins_activity(self, self.activity, self.supporter) assert_participant_status(self, self.activity, self.supporter, status='accepted') assert_not_slot_participant(self, self.slot1, self.supporter) assert_not_slot_participant(self, self.slot2, self.supporter) api_user_joins_slot(self, self.slot1, self.supporter) assert_slot_participant_status(self, self.slot1, self.supporter, status='registered') assert_not_slot_participant(self, self.slot2, self.supporter) api_user_joins_slot(self, self.slot2, self.supporter) assert_slot_participant_status(self, self.slot2, self.supporter, status='registered') def test_user_fills_slot(self): self.activity.slot_selection = 'free' self.activity.save() self.slot1.capacity = 1 self.slot1.save() self.slot2.capacity = 2 self.slot2.save() api_user_joins_activity(self, self.activity, self.supporter) assert_participant_status(self, self.activity, self.supporter, status='accepted') assert_not_slot_participant(self, self.slot1, self.supporter) assert_not_slot_participant(self, self.slot2, self.supporter) api_user_joins_slot(self, self.slot1, self.supporter) assert_slot_participant_status(self, self.slot1, self.supporter, status='registered') assert_status(self, self.slot1, 'full') api_slot_participant_transition(self, self.slot1, self.supporter, transition='withdraw') assert_slot_participant_status(self, self.slot1, self.supporter, status='withdrawn') assert_status(self, self.slot1, 'open') api_slot_participant_transition(self, self.slot1, self.supporter, transition='reapply') assert_slot_participant_status(self, self.slot1, self.supporter, status='registered') assert_status(self, self.slot1, 'full') api_participant_transition(self, self.activity, self.supporter, transition='withdraw') assert_participant_status(self, self.activity, self.supporter, status='withdrawn') assert_slot_participant_status(self, self.slot1, self.supporter, status='registered') assert_status(self, self.slot1, 'open') api_participant_transition(self, self.activity, self.supporter, transition='reapply') assert_participant_status(self, self.activity, self.supporter, status='accepted') assert_slot_participant_status(self, self.slot1, self.supporter, status='registered') assert_status(self, self.slot1, 'full') api_user_joins_slot(self, self.slot2, self.supporter) assert_slot_participant_status(self, self.slot2, self.supporter, status='registered') assert_status(self, self.slot2, 'open') api_user_joins_slot(self, self.slot2, self.supporter, status_code=400) def test_slot_reopens(self): self.activity.slot_selection = 'free' self.activity.save() self.slot1.capacity = 1 self.slot1.save() self.slot2.capacity = 2 self.slot2.save() another_supporter = BlueBottleUserFactory.create() api_user_joins_activity(self, self.activity, self.supporter) assert_participant_status(self, self.activity, self.supporter, status='accepted') api_user_joins_activity(self, self.activity, another_supporter) assert_participant_status(self, self.activity, another_supporter, status='accepted') api_user_joins_slot(self, self.slot1, another_supporter) api_user_joins_slot(self, self.slot2, another_supporter) assert_status(self, self.slot1, 'full') assert_slot_participant_status(self, self.slot1, another_supporter, status='registered') api_slot_participant_transition(self, self.slot1, another_supporter, transition='withdraw') assert_status(self, self.slot2, 'open') api_user_joins_slot(self, self.slot1, self.supporter) api_user_joins_slot(self, self.slot2, self.supporter) assert_slot_participant_status(self, self.slot1, self.supporter, status='registered') assert_slot_participant_status(self, self.slot2, self.supporter, status='registered') assert_status(self, self.slot1, 'full') assert_status(self, self.slot2, 'full') api_slot_participant_transition(self, self.slot1, self.supporter, transition='withdraw') assert_slot_participant_status(self, self.slot1, self.supporter, status='withdrawn') assert_status(self, self.slot1, 'open') def test_accept_more_users_to_slot_review_activity(self): self.activity.slot_selection = 'free' self.activity.review = True self.activity.save() self.slot1.capacity = 1 self.slot1.save() self.slot2.capacity = 2 self.slot2.save() supporter2 = BlueBottleUserFactory.create() supporter3 = BlueBottleUserFactory.create() api_user_joins_activity(self, self.activity, self.supporter) api_user_joins_activity(self, self.activity, supporter2) api_user_joins_activity(self, self.activity, supporter3) assert_participant_status(self, self.activity, self.supporter, status='new') api_user_joins_slot(self, self.slot1, self.supporter) api_user_joins_slot(self, self.slot1, supporter2) api_user_joins_slot(self, self.slot1, supporter3) api_user_joins_slot(self, self.slot2, self.supporter) api_user_joins_slot(self, self.slot2, supporter2) api_user_joins_slot(self, self.slot2, supporter3) assert_status(self, self.slot1, 'open') assert_status(self, self.slot2, 'open') self.assertEqual( self.slot1.accepted_participants.count(), 0, 'Slots should not have any accepted members yet' ) api_participant_transition(self, self.activity, self.supporter, transition='accept', request_user=self.owner) assert_status( self, self.slot1, 'full', 'Slot1 should be full now.' ) assert_status( self, self.slot2, 'open', 'Slot2 still has spots left and should be open.' ) api_participant_transition(self, self.activity, supporter2, transition='accept', request_user=self.owner) assert_status(self, self.slot1, 'full') assert_status(self, self.slot2, 'full') api_participant_transition( self, self.activity, supporter3, transition='accept', request_user=self.owner) assert_slot_participant_status(self, self.slot1, self.supporter, 'registered') assert_participant_status(self, self.activity, self.supporter, 'accepted') assert_participant_status(self, self.activity, supporter2, 'accepted') assert_participant_status(self, self.activity, supporter3, 'accepted') self.assertEqual( self.slot1.accepted_participants.count(), 3, 'Slot1 should have 3 accepted participants, although capacity was only 1.' ) self.assertEqual( self.slot2.accepted_participants.count(), 3, 'Slot1 should have 3 accepted participants, although capacity was only 2.' ) api_slot_participant_transition(self, self.slot2, supporter3, 'withdraw') assert_slot_participant_status(self, self.slot2, supporter3, 'withdrawn') self.assertEqual( self.slot2.accepted_participants.count(), 2, 'Slot1 should now have 2 accepted participants' ) assert_status(self, self.slot2, 'full') api_participant_transition(self, self.activity, supporter2, 'withdraw') assert_slot_participant_status(self, self.slot2, supporter2, 'registered') assert_status( self, self.slot2, 'open', 'Slot2 should now be ' )
53.40264
109
0.694889
1,819
16,181
5.953821
0.079714
0.094552
0.084026
0.084949
0.812742
0.787996
0.750416
0.672022
0.643675
0.632133
0
0.013257
0.20283
16,181
302
110
53.57947
0.826343
0
0
0.605839
0
0
0.082751
0.001298
0
0
0
0
0.332117
1
0.043796
false
0
0.029197
0
0.080292
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
6927f4f3a71502afe12a315d5101f41809067ea9
88
py
Python
lab2/CmdApp.py
YevhenKhomenko/crossplatform_labs
15bc2268ec699c380c1c78a0bdca7c1bf1b85aa6
[ "MIT" ]
null
null
null
lab2/CmdApp.py
YevhenKhomenko/crossplatform_labs
15bc2268ec699c380c1c78a0bdca7c1bf1b85aa6
[ "MIT" ]
null
null
null
lab2/CmdApp.py
YevhenKhomenko/crossplatform_labs
15bc2268ec699c380c1c78a0bdca7c1bf1b85aa6
[ "MIT" ]
null
null
null
from CmdController import Controller if __name__ == '__main__': Controller().run()
17.6
36
0.727273
9
88
6.222222
0.888889
0
0
0
0
0
0
0
0
0
0
0
0.159091
88
5
37
17.6
0.756757
0
0
0
0
0
0.089888
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
15d37c9df87a85cdb02d6a6394b026714ec6b89b
1,808
py
Python
tests/model/test_counter.py
DanielMorton/Petrel
07aee79087bf071f0906f806258c0a32d9cd44c6
[ "Apache-2.0" ]
null
null
null
tests/model/test_counter.py
DanielMorton/Petrel
07aee79087bf071f0906f806258c0a32d9cd44c6
[ "Apache-2.0" ]
null
null
null
tests/model/test_counter.py
DanielMorton/Petrel
07aee79087bf071f0906f806258c0a32d9cd44c6
[ "Apache-2.0" ]
null
null
null
from unittest import TestCase from petrel.model import AvgCounter class TestCounter(TestCase): def test_counter(self): avg_counter = AvgCounter() avg_counter.update(2, 1) avg_counter.update(3, 1) avg_counter.update(1, 1) assert avg_counter.avg == 2.0 assert avg_counter.sum == 6.0 assert avg_counter.count == 3 avg_counter.update(2, 1) assert avg_counter.avg == 2.0 assert avg_counter.sum == 8.0 assert avg_counter.count == 4 avg_counter.update(7, 1) assert avg_counter.avg == 3.0 assert avg_counter.sum == 15.0 assert avg_counter.count == 5 avg_counter.reset() assert avg_counter.sum == 0.0 assert avg_counter.count == 0 def test_avg_counter(self): avg_counter = AvgCounter() avg_counter.update_avg(2, 2) assert avg_counter.avg == 2.0 assert avg_counter.sum == 4.0 assert avg_counter.count == 2 avg_counter.update_avg(3, 3) assert avg_counter.avg == 2.6 assert avg_counter.sum == 13.0 assert avg_counter.count == 5 avg_counter.update_avg(8, 1) assert avg_counter.avg == 3.5 assert avg_counter.sum == 21.0 assert avg_counter.count == 6 def test_variable_count(self): avg_counter = AvgCounter() avg_counter.update(2, 2) assert avg_counter.avg == 1.0 assert avg_counter.sum == 2.0 assert avg_counter.count == 2 avg_counter.update(3, 3) assert avg_counter.avg == 1.0 assert avg_counter.sum == 5.0 assert avg_counter.count == 5 avg_counter.update(7, 1) assert avg_counter.avg == 2.0 assert avg_counter.sum == 12.0 assert avg_counter.count == 6
32.872727
38
0.60896
260
1,808
4.034615
0.126923
0.42898
0.442326
0.2755
0.768351
0.667302
0.577693
0.577693
0.416587
0.231649
0
0.057994
0.294248
1,808
54
39
33.481481
0.764107
0
0
0.4
0
0
0
0
0
0
0
0
0.58
1
0.06
false
0
0.04
0
0.12
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
4
15e3fad854152cea8fa0491c7fbd222cdeebecfe
1,000
py
Python
kitsupublisher/exceptions.py
cgwire-sunding/kitsu-publisher
a1e037bb66cb10532b1b1784469cea0a22f00bcb
[ "MIT" ]
6
2020-08-31T13:57:50.000Z
2021-11-11T20:24:05.000Z
kitsupublisher/exceptions.py
cgwire-sunding/kitsu-publisher
a1e037bb66cb10532b1b1784469cea0a22f00bcb
[ "MIT" ]
14
2020-03-09T15:44:39.000Z
2020-08-10T08:01:08.000Z
kitsupublisher/exceptions.py
cgwire-sunding/kitsu-publisher
a1e037bb66cb10532b1b1784469cea0a22f00bcb
[ "MIT" ]
2
2020-03-09T11:10:07.000Z
2020-07-24T06:10:03.000Z
class TranslationException(Exception): """ Error raised when a translation file can't be found. """ pass class MediaNotSetUp(Exception): """ Error raised when a media file can't be found or set up. """ pass class DataRetrievingError(Exception): """ Error raised when some raw content has not been retrieved. """ pass class ContextNotFoundError(Exception): """ Error raised when the context class of a software was not found. """ pass class InvalidNodeError(Exception): """ Error raised when, in a nodal context (i.e. Houdini) a node is not found. """ pass class RenderCameraError(Exception): """ Error raised when a render camera has failed to be set. """ pass class RenderNotSupported(Exception): """ Error raised when a render is not currently supported. """ pass class OutputPathError(Exception): """ Error raised when an output path is invalid. """ pass
18.181818
77
0.646
120
1,000
5.383333
0.45
0.173375
0.247678
0.297214
0.219814
0.095975
0
0
0
0
0
0
0.267
1,000
54
78
18.518519
0.88131
0.463
0
0.5
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
4
15ff6a167c2c6fd3e90e91a10209a93383911d1c
7,077
py
Python
tests/unit/server/test_types.py
arareko/pysoa
a90e428558500cf692f7f6e33fd358dd2779c328
[ "Apache-2.0" ]
91
2017-05-08T22:41:33.000Z
2022-02-09T11:37:07.000Z
tests/unit/server/test_types.py
arareko/pysoa
a90e428558500cf692f7f6e33fd358dd2779c328
[ "Apache-2.0" ]
63
2017-06-14T20:08:49.000Z
2021-06-16T23:08:25.000Z
tests/unit/server/test_types.py
arareko/pysoa
a90e428558500cf692f7f6e33fd358dd2779c328
[ "Apache-2.0" ]
26
2017-10-13T23:23:13.000Z
2022-01-11T16:58:17.000Z
from __future__ import ( absolute_import, unicode_literals, ) import logging import attr import pytest from pysoa.common.errors import Error from pysoa.common.types import ActionResponse from pysoa.server.errors import ActionError from pysoa.server.types import EnrichedActionRequest from pysoa.test.compatibility import mock @attr.s class SuperEnrichedActionRequest(EnrichedActionRequest): metrics = attr.ib(default=None) analytics_logger = attr.ib(default=None) class TestEnrichedActionRequest(object): def test_call_local_action_no_server(self): r = EnrichedActionRequest(action='foo', body={'bar': 'baz'}) with pytest.raises(ActionError) as error_context: r.call_local_action('other_foo', {'color': 'red'}) assert error_context.value.errors[0].code == 'SERVER_ERROR' response = r.call_local_action('other_foo', {'color': 'red'}, raise_action_errors=False) assert response.action == 'other_foo' assert response.errors assert response.errors[0].code == 'SERVER_ERROR' def test_call_local_action_no_action(self): server = mock.MagicMock() server.action_class_map = {'unused_foo': mock.MagicMock()} r = EnrichedActionRequest(action='foo', body={'bar': 'baz'}) r._server = server with pytest.raises(ActionError) as error_context: r.call_local_action('other_foo', {'color': 'red'}) assert error_context.value.errors[0].code == 'UNKNOWN' assert error_context.value.errors[0].field == 'action' response = r.call_local_action('other_foo', {'color': 'red'}, raise_action_errors=False) assert response.action == 'other_foo' assert response.errors assert response.errors[0].code == 'UNKNOWN' assert response.errors[0].field == 'action' def test_call_local_action_standard_request(self): action = mock.MagicMock() action.return_value.side_effect = ActionError([Error('FOO', 'Foo error')]) server = mock.MagicMock() server.settings = {'a_setting': 'a_value'} server.action_class_map = {'other_foo': action} r = EnrichedActionRequest(action='foo', body={'bar': 'baz'}) r._server = server with pytest.raises(ActionError) as error_context: r.call_local_action('other_foo', {'color': 'red'}) assert error_context.value.errors[0].code == 'FOO' action.assert_called_once_with(server.settings) assert action.return_value.call_count == 1 other_r = action.return_value.call_args[0][0] assert other_r is not r assert other_r != r assert other_r.action == 'other_foo' assert other_r.body == {'color': 'red'} assert other_r.context == {} assert other_r.control == {} assert getattr(other_r, '_server') is server action.reset_mock() response = r.call_local_action('other_foo', {'color': 'red'}, raise_action_errors=False) assert response.action == 'other_foo' assert response.errors assert response.errors[0].code == 'FOO' action.assert_called_once_with(server.settings) assert action.return_value.call_count == 1 other_r = action.return_value.call_args[0][0] assert other_r is not r assert other_r != r assert other_r.action == 'other_foo' assert other_r.body == {'color': 'red'} assert other_r.context == {} assert other_r.control == {} assert getattr(other_r, '_server') is server def test_call_local_action_other_request_details(self): action = mock.MagicMock() action.return_value.return_value = ActionResponse(action='another_foo', errors=[Error('BAR', 'Bar error')]) server = mock.MagicMock() server.settings = {'a_setting': 'a_value'} server.action_class_map = {'another_foo': action} r = EnrichedActionRequest(action='foo', body={'bar': 'baz'}, context={'auth': 'abc123'}, control={'speed': 5}) r._server = server with pytest.raises(ActionError) as error_context: r.call_local_action('another_foo', {'height': '10m'}) assert error_context.value.errors[0].code == 'BAR' action.assert_called_once_with(server.settings) assert action.return_value.call_count == 1 other_r = action.return_value.call_args[0][0] assert other_r is not r assert other_r != r assert other_r.action == 'another_foo' assert other_r.body == {'height': '10m'} assert other_r.context == {'auth': 'abc123'} assert other_r.control == {'speed': 5} assert getattr(other_r, '_server') is server action.reset_mock() response = r.call_local_action('another_foo', {'height': '10m'}, raise_action_errors=False) assert response.action == 'another_foo' assert response.errors assert response.errors[0].code == 'BAR' action.assert_called_once_with(server.settings) assert action.return_value.call_count == 1 other_r = action.return_value.call_args[0][0] assert other_r is not r assert other_r != r assert other_r.action == 'another_foo' assert other_r.body == {'height': '10m'} assert other_r.context == {'auth': 'abc123'} assert other_r.control == {'speed': 5} assert getattr(other_r, '_server') is server def test_call_local_action_super_enriched_request(self): action = mock.MagicMock() action.return_value.return_value = ActionResponse(action='another_foo', body={'sweet': 'success'}) server = mock.MagicMock() server.settings = {'a_setting': 'a_value'} server.action_class_map = {'another_foo': action} logger = logging.getLogger('test') r = SuperEnrichedActionRequest( action='foo', body={'bar': 'baz'}, context={'auth_token': 'def456', 'auth': 'original'}, control={'repeat': True}, metrics='A custom object', analytics_logger=logger, ) r._server = server response = r.call_local_action('another_foo', {'entity_id': '1a8t27oh'}, context={'auth': 'new', 'foo': 'bar'}) assert response.action == 'another_foo' assert response.body == {'sweet': 'success'} action.assert_called_once_with(server.settings) assert action.return_value.call_count == 1 other_r = action.return_value.call_args[0][0] assert isinstance(other_r, SuperEnrichedActionRequest) assert other_r is not r assert other_r != r assert other_r.action == 'another_foo' assert other_r.body == {'entity_id': '1a8t27oh'} assert other_r.context == {'auth_token': 'def456', 'auth': 'new', 'foo': 'bar'} assert other_r.control == {'repeat': True} assert other_r.metrics == 'A custom object' assert other_r.analytics_logger is logger assert getattr(other_r, '_server') is server
37.444444
119
0.644906
865
7,077
5.03237
0.120231
0.059269
0.088215
0.048243
0.77303
0.73972
0.721801
0.660924
0.639789
0.619802
0
0.010822
0.229617
7,077
188
120
37.643617
0.787601
0
0
0.604167
0
0
0.11064
0
0
0
0
0
0.472222
1
0.034722
false
0
0.069444
0
0.131944
0
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
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
4
c60f342d37a3149c2653a26ada2e64594a682404
351
py
Python
0-notes/job-search/Cracking_the_Coding_Interview/C01ArraysStrings/questions/1.4-question.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
null
null
null
0-notes/job-search/Cracking_the_Coding_Interview/C01ArraysStrings/questions/1.4-question.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
null
null
null
0-notes/job-search/Cracking_the_Coding_Interview/C01ArraysStrings/questions/1.4-question.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
null
null
null
# Palindrome Permutation # Given a string, write a function to check if it is a permutation of a palindrome. A palindrome is a word or phrase that is the same forwards and backwards. A permutation is a rearrangement of letters. The palindrome does not need to be limited to just dictionary words. You can ignore casing and non-letter characters.
87.75
324
0.789174
59
351
4.694915
0.661017
0.032491
0
0
0
0
0
0
0
0
0
0
0.185185
351
3
325
117
0.968531
0.982906
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
c6383243a50ab18a63c44779945b96e15e4cfac0
9
py
Python
u.py
waiting23/python
0c51a9ca4e492522fa705494e7bb5a51907dc497
[ "MIT" ]
2
2019-05-22T09:11:34.000Z
2019-05-22T09:13:51.000Z
u.py
waiting23/python
0c51a9ca4e492522fa705494e7bb5a51907dc497
[ "MIT" ]
null
null
null
u.py
waiting23/python
0c51a9ca4e492522fa705494e7bb5a51907dc497
[ "MIT" ]
null
null
null
num1 = 1
4.5
8
0.555556
2
9
2.5
1
0
0
0
0
0
0
0
0
0
0
0.333333
0.333333
9
1
9
9
0.5
0
0
0
0
0
0
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
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
d6aa6c104a4a92613bbf932adc0b47d440024078
230
py
Python
bank_api/errors.py
robinstauntoncollins/bank-api
b19cadf5a65f5e66ca14688af8774f400d4fb0f8
[ "Unlicense" ]
null
null
null
bank_api/errors.py
robinstauntoncollins/bank-api
b19cadf5a65f5e66ca14688af8774f400d4fb0f8
[ "Unlicense" ]
null
null
null
bank_api/errors.py
robinstauntoncollins/bank-api
b19cadf5a65f5e66ca14688af8774f400d4fb0f8
[ "Unlicense" ]
null
null
null
from flask import jsonify def make_error(status_code: int, message: str): response = jsonify({ 'status_code': status_code, 'message': message }) response.status_code = status_code return response
20.909091
47
0.669565
27
230
5.481481
0.518519
0.337838
0.216216
0.27027
0
0
0
0
0
0
0
0
0.243478
230
10
48
23
0.850575
0
0
0
0
0
0.078261
0
0
0
0
0
0
1
0.125
false
0
0.125
0
0.375
0
1
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
d6ebcbc6ede9207cf20d3aeed438eb81740a2bdb
249
py
Python
presenter/__init__.py
Zepp333333/Cyclist-Performance
9a36e8fd9c9478f98dbe929e5a31e4e87fdc1932
[ "MIT" ]
null
null
null
presenter/__init__.py
Zepp333333/Cyclist-Performance
9a36e8fd9c9478f98dbe929e5a31e4e87fdc1932
[ "MIT" ]
1
2021-09-09T14:04:55.000Z
2021-09-10T17:58:37.000Z
presenter/__init__.py
Zepp333333/HARDIO
9a36e8fd9c9478f98dbe929e5a31e4e87fdc1932
[ "MIT" ]
null
null
null
# Copyright (c) 2021. Sergei Sazonov. All Rights Reserved from .base_presenter import BasePresenter from .presenter import Presenter from .presenter_config import AppConfig, AppDashIDs, Buttons, Inputs, Tabs from .master_layout import MasterLayout
41.5
74
0.827309
31
249
6.548387
0.709677
0.147783
0
0
0
0
0
0
0
0
0
0.018265
0.120482
249
5
75
49.8
0.908676
0.220884
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
4
d6fc58102ea2ceb5c3358b0ef1b45f16c3084798
126
py
Python
Hub/ecointeraction/sedyl/apps.py
maximedaniel/ITAME
ca820337911695fa3625b32dcad5d87ff0b192d0
[ "MIT" ]
null
null
null
Hub/ecointeraction/sedyl/apps.py
maximedaniel/ITAME
ca820337911695fa3625b32dcad5d87ff0b192d0
[ "MIT" ]
1
2021-06-10T23:19:09.000Z
2021-06-10T23:19:09.000Z
Hub/ecointeraction/sedyl/apps.py
maximedaniel/ITAME
ca820337911695fa3625b32dcad5d87ff0b192d0
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from django.apps import AppConfig class SedylConfig(AppConfig): name = 'sedyl'
15.75
39
0.785714
15
126
6.266667
0.8
0
0
0
0
0
0
0
0
0
0
0
0.15873
126
7
40
18
0.886792
0
0
0
0
0
0.039683
0
0
0
0
0
0
1
0
false
0
0.5
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
ba4e26b63e0db5f9f7f84f63865c51bd98707b6a
1,068
py
Python
twitch_auth/app_settings.py
hivegu/django-simpletwitchauth
1a60bff0b0c5a8e44765b2bc6e494324300c9cd0
[ "MIT" ]
6
2018-05-13T11:49:56.000Z
2021-12-03T15:25:33.000Z
twitch_auth/app_settings.py
hivegu/django-simpletwitchauth
1a60bff0b0c5a8e44765b2bc6e494324300c9cd0
[ "MIT" ]
1
2021-02-15T15:51:38.000Z
2021-02-15T15:51:38.000Z
twitch_auth/app_settings.py
hivegu/django-simpletwitchauth
1a60bff0b0c5a8e44765b2bc6e494324300c9cd0
[ "MIT" ]
4
2017-07-19T04:45:57.000Z
2019-04-14T14:10:38.000Z
class AppSettings(object): def __init__(self, prefix): self.prefix = prefix def _setting(self, name, dflt): from django.conf import settings getter = getattr(settings, 'TWITCH_AUTH_SETTING_GETTER', lambda name, dflt: getattr(settings, name, dflt)) return getter(self.prefix + name, dflt) @property def SCOPE(self): return self._setting("SCOPE", "user_read") @property def PROTOCOL(self): return self._setting("PROTOCOL", "http://") @property def CLIENT_ID(self): return self._setting("CLIENT_ID", "") @property def CLIENT_SECRET(self): return self._setting("CLIENT_SECRET", "") @property def REDIRECT_URI(self): return self._setting("REDIRECT_URI", "/") # Ugly? Guido recommends this himself ... # http://mail.python.org/pipermail/python-ideas/2012-May/014969.html import sys app_settings = AppSettings('TWITCH_AUTH_') app_settings.__name__ = __name__ sys.modules[__name__] = app_settings
26.7
74
0.638577
121
1,068
5.330579
0.404959
0.085271
0.108527
0.162791
0.083721
0
0
0
0
0
0
0.012376
0.243446
1,068
39
75
27.384615
0.785891
0.099251
0
0.178571
0
0
0.106361
0.027112
0
0
0
0
0
1
0.25
false
0
0.071429
0.178571
0.571429
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
4
ba59161ab0b857d95d346c1d4baee59b412d3eb2
26
py
Python
classificador_lyra/__init__.py
MinisterioPublicoRJ/classificador-lyra
da840cb4ea9f3298c1813a1e147f5651873d2762
[ "MIT" ]
8
2018-10-24T13:33:31.000Z
2022-02-21T13:11:50.000Z
classificador_lyra/__init__.py
adelsonsena/classificador-lyra
da840cb4ea9f3298c1813a1e147f5651873d2762
[ "MIT" ]
3
2019-06-18T20:05:53.000Z
2021-06-01T22:51:55.000Z
classificador_lyra/__init__.py
adelsonsena/classificador-lyra
da840cb4ea9f3298c1813a1e147f5651873d2762
[ "MIT" ]
2
2019-05-24T12:38:27.000Z
2020-08-30T20:10:53.000Z
__version__ = '0.0.0dev0'
13
25
0.692308
4
26
3.5
0.75
0
0
0
0
0
0
0
0
0
0
0.173913
0.115385
26
1
26
26
0.434783
0
0
0
0
0
0.346154
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
ba5f894ccfe0919912cf82752a356bf08fbe2b45
195
py
Python
rant/admin.py
carolwanjohi/rant-on
55a4ab524ab60846a4f6cbb6537dde2b8cb0601c
[ "MIT" ]
null
null
null
rant/admin.py
carolwanjohi/rant-on
55a4ab524ab60846a4f6cbb6537dde2b8cb0601c
[ "MIT" ]
6
2020-02-12T00:16:24.000Z
2021-09-07T23:49:32.000Z
rant/admin.py
carolwanjohi/rant-on
55a4ab524ab60846a4f6cbb6537dde2b8cb0601c
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Profile, Rant, Reaction # Register your models here. admin.site.register(Profile) admin.site.register(Rant) admin.site.register(Reaction)
17.727273
43
0.794872
27
195
5.740741
0.481481
0.174194
0.329032
0
0
0
0
0
0
0
0
0
0.112821
195
10
44
19.5
0.895954
0.133333
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.4
0
0.4
0
1
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
0
0
0
4
ba6d2f2ca514ad93bd12772b5bdc276499d6f7cb
2,318
py
Python
DailyProgrammer/DP20140810.py
DayGitH/Python-Challenges
bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf
[ "MIT" ]
2
2020-12-23T18:59:22.000Z
2021-04-14T13:16:09.000Z
DailyProgrammer/DP20140810.py
DayGitH/Python-Challenges
bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf
[ "MIT" ]
null
null
null
DailyProgrammer/DP20140810.py
DayGitH/Python-Challenges
bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf
[ "MIT" ]
null
null
null
""" [8/10/2014] Challenge #174 [Extra] Functional Thinking https://www.reddit.com/r/dailyprogrammer/comments/2d52d8/8102014_challenge_174_extra_functional_thinking/ # *(Extra)*: Functional Thinking I'm trying a new bonus challenge today with any theme I can think of, such as rewriting an existing solution using a different paradigm or with a limitation on how you can write it. I'm going to see how this is received and may or may not make this a recurring thing. I will be writing these to primarily be a learning exercise - both for me and for you, the readers of /r/DailyProgrammer - so if you are interested in learning about new languages, new ways of writing solutions or modern programming in general then this may be of interest for you. For today, though, you are to rewrite a solution (that you've wrote) to *any* previous challenge (and as many as you want to), in a functional programming language. If you're new to functional programming languages, like I am, it's a paradigm of programming that treats a program as an evaluation of functions only, avoiding variables. Everything is treated as a function, and programs written in such a language are designed and look substantially different to one written in an imperative language such as Python, Java or Ruby. There are a boat load of languages you can choose from. One of the popular ones on /r/DailyProgrammer is [Haskell](http://en.wikipedia.org/wiki/Haskell_%28programming_language%29). There is the Lisp family (including [Common Lisp](http://en.wikipedia.org/wiki/Common_Lisp), [Scheme](http://en.wikipedia.org/wiki/Scheme_(programming_language) and [Clojure](http://en.wikipedia.org/wiki/Clojure)). [R](http://en.wikipedia.org/wiki/R_%28programming_language%29) is also debatably a functional language, or at least can be used as one. There are others too. Pick one you like and rewrite one of your existing solutions in it. Do you use Haskell or something already? Rewrite it in a new functional language! They're all different in some way or another. I'm trying to learn Clojure at the moment myself so I'll be submitting some of my own solutions. ## Post Format When you post your solution, please give the name (and the link) to the challenge which the solution is for. """ def main(): pass if __name__ == "__main__": main()
64.388889
119
0.780846
394
2,318
4.543147
0.441624
0.01676
0.041899
0.050279
0.100559
0
0
0
0
0
0
0.016268
0.151424
2,318
35
120
66.228571
0.893747
0.968939
0
0
0
0
0.125
0
0
0
0
0
0
1
0.25
true
0.25
0
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
1
1
1
0
0
0
0
0
4
ba6fed91e5c4fe6dd5f011d24ba9149888fe5aa4
198
py
Python
tests/test_wzdx_sandbox.py
usdot-its-jpo-data-portal/wzdx_sandbox
5815070162a48fc65549cf9ddc11433716a39ecd
[ "Apache-2.0" ]
1
2019-11-21T14:58:06.000Z
2019-11-21T14:58:06.000Z
tests/test_wzdx_sandbox.py
usdot-its-jpo-data-portal/wzdx_sandbox
5815070162a48fc65549cf9ddc11433716a39ecd
[ "Apache-2.0" ]
9
2019-11-14T16:59:20.000Z
2021-08-24T19:43:33.000Z
tests/test_wzdx_sandbox.py
usdot-its-jpo-data-portal/wzdx_sandbox
5815070162a48fc65549cf9ddc11433716a39ecd
[ "Apache-2.0" ]
2
2021-05-01T18:37:23.000Z
2021-12-14T18:02:35.000Z
import unittest import os class TestWZDxSandboxImports(unittest.TestCase): def test_imports(self): from wzdx_sandbox.wzdx_sandbox import ITSSandbox, WorkZoneSandbox, WorkZoneRawSandbox
28.285714
93
0.813131
21
198
7.52381
0.761905
0.139241
0
0
0
0
0
0
0
0
0
0
0.136364
198
7
93
28.285714
0.923977
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
1
0
1.4
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
ba7a4fbaa1ee1e8949d6d3debec3573438a47eda
94
py
Python
skud/worker_kpp/apps.py
ToTHXaT/Paps_Lab
e91907ab2190d0f2cbb0c60e85d2c3ccff6d14b9
[ "MIT" ]
null
null
null
skud/worker_kpp/apps.py
ToTHXaT/Paps_Lab
e91907ab2190d0f2cbb0c60e85d2c3ccff6d14b9
[ "MIT" ]
null
null
null
skud/worker_kpp/apps.py
ToTHXaT/Paps_Lab
e91907ab2190d0f2cbb0c60e85d2c3ccff6d14b9
[ "MIT" ]
null
null
null
from django.apps import AppConfig class WorkerKppConfig(AppConfig): name = 'worker_kpp'
15.666667
33
0.765957
11
94
6.454545
0.909091
0
0
0
0
0
0
0
0
0
0
0
0.159574
94
5
34
18.8
0.898734
0
0
0
0
0
0.106383
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
ba7d531cc9b6df26f500338601ab846f38ec239f
24
py
Python
app/api/v1/__init__.py
MetaGenScope/metagenscope-server
609cd57c626c857c8efde8237a1f22f4d1e6065d
[ "MIT" ]
null
null
null
app/api/v1/__init__.py
MetaGenScope/metagenscope-server
609cd57c626c857c8efde8237a1f22f4d1e6065d
[ "MIT" ]
35
2019-12-09T19:29:10.000Z
2020-02-02T19:06:53.000Z
app/api/v1/__init__.py
MetaGenScope/metagenscope-server
609cd57c626c857c8efde8237a1f22f4d1e6065d
[ "MIT" ]
null
null
null
"""API v1 blueprint."""
12
23
0.583333
3
24
4.666667
1
0
0
0
0
0
0
0
0
0
0
0.047619
0.125
24
1
24
24
0.619048
0.708333
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
ba804d8c3882b452dcea799c1daf15f8f73b5085
74
py
Python
02_linear_models/solutions/solution_04.py
jparrax/datascience_middle_course
347dfd6f68fa0f90eac35e8154f3ea469ccbdea2
[ "CC0-1.0" ]
2
2021-11-10T10:13:25.000Z
2022-01-12T08:11:59.000Z
02_linear_models/solutions/solution_04.py
jparrax/datascience_middle_course
347dfd6f68fa0f90eac35e8154f3ea469ccbdea2
[ "CC0-1.0" ]
2
2022-01-11T19:45:49.000Z
2022-01-11T20:36:03.000Z
02_linear_models/solutions/solution_04.py
jparrax/datascience_middle_course
347dfd6f68fa0f90eac35e8154f3ea469ccbdea2
[ "CC0-1.0" ]
1
2022-01-12T08:12:11.000Z
2022-01-12T08:12:11.000Z
import numpy as np sample_weight = np.ones_like(y) sample_weight[-1] = 10
18.5
31
0.756757
14
74
3.785714
0.785714
0.45283
0
0
0
0
0
0
0
0
0
0.046875
0.135135
74
3
32
24.666667
0.78125
0
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
ba89fecfea6d089c533432d81b465d2f559b6a70
380
py
Python
runwate.py
jamesmunns/wate
883358a86b91d7b4ed6e13b0ee4524b40bf20f8a
[ "MIT" ]
null
null
null
runwate.py
jamesmunns/wate
883358a86b91d7b4ed6e13b0ee4524b40bf20f8a
[ "MIT" ]
null
null
null
runwate.py
jamesmunns/wate
883358a86b91d7b4ed6e13b0ee4524b40bf20f8a
[ "MIT" ]
null
null
null
# Import the app object import os from wate import app from wate.db_ops import DB_USER_KEY, DB_PASS_KEY, DB_HOST_KEY # Check for database variables assert DB_USER_KEY in os.environ, "Set the Database Username!" assert DB_PASS_KEY in os.environ, "Set the Database Password!" assert DB_HOST_KEY in os.environ, "Set the Database Host!" # Run app.run(host='0.0.0.0', debug = True)
27.142857
62
0.771053
71
380
3.943662
0.380282
0.085714
0.075
0.15
0.3
0.3
0.3
0
0
0
0
0.012308
0.144737
380
13
63
29.230769
0.849231
0.142105
0
0
0
0
0.251553
0
0
0
0
0
0.428571
1
0
true
0.285714
0.428571
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
1
1
1
0
0
0
0
4
ba93b67d37ac5f3d771bf9f0d42f00fe95cd0a8d
598
py
Python
apitest.py
ophcode/sormasapi
01da5b362608568d8881af85177e1928a46b2715
[ "CC0-1.0" ]
4
2021-05-23T21:13:52.000Z
2021-09-06T20:58:13.000Z
apitest.py
ophcode/sormasapi
01da5b362608568d8881af85177e1928a46b2715
[ "CC0-1.0" ]
null
null
null
apitest.py
ophcode/sormasapi
01da5b362608568d8881af85177e1928a46b2715
[ "CC0-1.0" ]
null
null
null
import sormasapi import config import os from pprint import pprint if __name__ == "__main__": if config.useproxy: os.environ['HTTPS_PROXY'] = config.proxy #caseuuid = "XXXXXX-XXXXXX-XXXXXX-XXXXXXXX" #Informationen für einen Fall anzeigen #case = sormasapi.query("cases",caseuuid) #pprint(case) #person = sormasapi.query("persons","XXXXXX-XXXXXX-XXXXXX-XXXXXXXX") #Informationen einer Person anzeigen #pprint(person) #contactjson = sormasapi.query("XXXXXX-XXXXXX-XXXXXX-XXXXXXXX") #Informationen eines Kontaktes anzeigen #pprint(contactjson)
29.9
109
0.719064
66
598
6.378788
0.454545
0.171021
0.128266
0.185273
0.27791
0
0
0
0
0
0
0
0.173913
598
19
110
31.473684
0.852227
0.617057
0
0
0
0
0.086758
0
0
0
0
0
0
1
0
true
0
0.571429
0
0.571429
0.142857
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
4
bac9ce9f91197a5e9ef4e0354ccb314c1864b37f
3,022
py
Python
diploma/models.py
besmertn/diploma
602ce9b9f4d1338d54d95769505c6315ddd14095
[ "MIT" ]
null
null
null
diploma/models.py
besmertn/diploma
602ce9b9f4d1338d54d95769505c6315ddd14095
[ "MIT" ]
null
null
null
diploma/models.py
besmertn/diploma
602ce9b9f4d1338d54d95769505c6315ddd14095
[ "MIT" ]
null
null
null
import enum from time import time import jwt from flask import current_app from flask_login import UserMixin from werkzeug.security import generate_password_hash, check_password_hash from diploma import db, login class User(UserMixin, db.Model): id = db.Column(db.Integer, primary_key=True) username = db.Column(db.String(64), index=True, unique=True) email = db.Column(db.String(120), index=True, unique=True) password_hash = db.Column(db.String(128)) def __repr__(self): return '<User {}>'.format(self.username) def get_id(self): return self.id def set_password(self, password): self.password_hash = generate_password_hash(password) def check_password(self, password): if not self.password_hash: return None return check_password_hash(self.password_hash, password) def get_reset_password_token(self, expires_in=600): return jwt.encode( {'reset_password': self.id, 'exp': time() + expires_in}, current_app.config['SECRET_KEY'], algorithm='HS256').decode('utf-8') @staticmethod def verify_reset_password_token(token): try: _id = jwt.decode(token, current_app.config['SECRET_KEY'], algorithms=['HS256'])['reset_password'] except: return return User.query.get(_id) @login.user_loader def load_user(id): return User.query.get(int(id)) class SensorStatus(int, enum.Enum): NOT_RESPONDING = 0 ACTIVE = 1 NOT_ACTIVE = 2 @staticmethod def as_dict(): return {0: 'Not Responding', 1: 'Active', 2: 'Not Active'} class SyncType(int, enum.Enum): EACH_DAY = 0 EACH_12_HOURS = 1 EACH_6_HOURS = 2 EACH_3_HOURS = 3 HOURLY = 4 @staticmethod def as_dict(): return {0: 'Each day', 1: 'Each 12 Hours', 2: 'Each 6 Hours', 3: 'Each 3 Hours', 4: 'Hourly'} class Sensor(db.Model): id = db.Column(db.Integer, primary_key=True) user_id = db.Column(db.Integer, index=True) region_key = db.Column(db.Integer, index=True) region_name = db.Column(db.String(128)) coordinates = db.Column(db.String(128)) status = db.Column(db.Enum(SensorStatus), index=True, ) sync_type = db.Column(db.Enum(SyncType)) is_shared = db.Column(db.Boolean, index=True, default=False) def as_dict(self): return {c.name: getattr(self, c.name) for c in Sensor.__table__.columns} class Record(db.Model): id = db.Column(db.Integer, primary_key=True) sensor_id = db.Column(db.Integer, db.ForeignKey('sensor.id'), index=True) timestamp = db.Column(db.TIMESTAMP, index=True) pm10 = db.Column(db.Float, nullable=False) pm25 = db.Column(db.Float, nullable=False) temperature = db.Column(db.Integer, nullable=False) humidity = db.Column(db.Float, nullable=False) rainfall = db.Column(db.Float, nullable=False) def as_dict(self): return {c.name: getattr(self, c.name) for c in Record.__table__.columns}
30.22
101
0.664461
427
3,022
4.540984
0.262295
0.082517
0.103146
0.061372
0.297576
0.231563
0.147499
0.114492
0.114492
0.114492
0
0.021821
0.211449
3,022
99
102
30.525253
0.791859
0
0
0.133333
1
0
0.0546
0
0
0
0
0
0
1
0.146667
false
0.146667
0.093333
0.106667
0.826667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
1
0
1
1
0
0
4
baf60167581e559aea73cfc313aca4d57667280a
223
py
Python
account/compat.py
AHDCreative/django_user_accounts
5ab37c5298123189a29fb4c7048ea6a69e2509ff
[ "MIT" ]
null
null
null
account/compat.py
AHDCreative/django_user_accounts
5ab37c5298123189a29fb4c7048ea6a69e2509ff
[ "MIT" ]
null
null
null
account/compat.py
AHDCreative/django_user_accounts
5ab37c5298123189a29fb4c7048ea6a69e2509ff
[ "MIT" ]
null
null
null
import django from django.urls import resolve, reverse, NoReverseMatch def is_authenticated(user): if django.VERSION >= (1, 10): return user.is_authenthicated else: return user.is_authenthicated()
22.3
56
0.713004
27
223
5.777778
0.666667
0.128205
0.153846
0.333333
0
0
0
0
0
0
0
0.016949
0.206278
223
9
57
24.777778
0.864407
0
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0.285714
0
0.714286
0
1
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
4
242bce699f727104f368d0dfe825ca8fd58f4f5d
850
py
Python
components/modules/alliance/alliance_admin/urls.py
joshyka/fedn
398f9bb9f913f640254294b97b118292af6996ce
[ "Apache-2.0" ]
null
null
null
components/modules/alliance/alliance_admin/urls.py
joshyka/fedn
398f9bb9f913f640254294b97b118292af6996ce
[ "Apache-2.0" ]
null
null
null
components/modules/alliance/alliance_admin/urls.py
joshyka/fedn
398f9bb9f913f640254294b97b118292af6996ce
[ "Apache-2.0" ]
null
null
null
from django.urls import path from . import views app_name = 'alliance_admin' urlpatterns = [ path('projects/<user>/<project>/alliance_admin/', views.index, name='index'), path('projects/<user>/<project>/alliance_admin/<str:uid>/logs', views.logs, name='logs'), path('projects/<user>/<project>/alliance_admin/create', views.create, name='create'), path('projects/<user>/<project>/alliance_admin/<str:uid>/details', views.details, name='details'), path('projects/<user>/<project>/alliance_admin/<int:id>/start', views.start, name='start'), path('projects/<user>/<project>/alliance_admin/<int:id>/stop', views.stop, name='stop'), path('projects/<user>/<project>/alliance_admin/<str:uid>/project', views.project, name='project'), path('projects/<user>/<project>/alliance_admin/<str:uid>/log', views.log, name='log'), ]
50
102
0.696471
112
850
5.196429
0.223214
0.201031
0.219931
0.316151
0.553265
0.553265
0.429553
0.429553
0
0
0
0
0.087059
850
16
103
53.125
0.75
0
0
0
0
0
0.561176
0.496471
0
0
0
0
0
1
0
false
0
0.153846
0
0.153846
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
244e423f656677181467f1339f9c7d08c01e8a65
3,836
bzl
Python
example/third_party/org_codehaus_plexus.bzl
wix-playground/rules_maven_third_party
ff0b486df194779d7d8e6c9102cd12138e3305c3
[ "Apache-2.0" ]
null
null
null
example/third_party/org_codehaus_plexus.bzl
wix-playground/rules_maven_third_party
ff0b486df194779d7d8e6c9102cd12138e3305c3
[ "Apache-2.0" ]
null
null
null
example/third_party/org_codehaus_plexus.bzl
wix-playground/rules_maven_third_party
ff0b486df194779d7d8e6c9102cd12138e3305c3
[ "Apache-2.0" ]
null
null
null
load("@rules_maven_third_party//:import_external.bzl", import_external = "import_external") def dependencies(): import_external( name = "org_codehaus_plexus_plexus_archiver", artifact = "org.codehaus.plexus:plexus-archiver:3.4", artifact_sha256 = "3c6611c98547dbf3f5125848c273ba719bc10df44e3f492fa2e302d6135a6ea5", srcjar_sha256 = "1887e8269928079236c9e1a75af5b5e256f4bfafaaed18da5c9c84faf5b26a91", deps = [ "@commons_io_commons_io", "@org_apache_commons_commons_compress", "@org_codehaus_plexus_plexus_io", "@org_codehaus_plexus_plexus_utils", "@org_iq80_snappy_snappy", ], runtime_deps = [ "@org_tukaani_xz", ], ) import_external( name = "org_codehaus_plexus_plexus_component_annotations", artifact = "org.codehaus.plexus:plexus-component-annotations:1.7.1", artifact_sha256 = "a7fee9435db716bff593e9fb5622bcf9f25e527196485929b0cd4065c43e61df", srcjar_sha256 = "18999359e8c1c5eb1f17a06093ceffc21f84b62b4ee0d9ab82f2e10d11049a78", excludes = [ "junit:junit", ], ) import_external( name = "org_codehaus_plexus_plexus_container_default", artifact = "org.codehaus.plexus:plexus-container-default:1.0-alpha-9-stable-1", artifact_sha256 = "7c758612888782ccfe376823aee7cdcc7e0cdafb097f7ef50295a0b0c3a16edf", srcjar_sha256 = "330e1bf490259c64fd6b27097adb8d41159500f849743b8680f3515044483d62", deps = [ "@classworlds_classworlds", "@junit_junit", "@org_codehaus_plexus_plexus_utils", ], ) import_external( name = "org_codehaus_plexus_plexus_interactivity_api", artifact = "org.codehaus.plexus:plexus-interactivity-api:1.0-alpha-4", artifact_sha256 = "4f60eb379f93d8b616bc3b4d299f466bc54fcced959f7ad082dae78b89d6a3f0", srcjar_sha256 = "2eae2dc145b8dca70671f4607255b5419b6609741c753b925debcef598d56206", deps = [ "@classworlds_classworlds", ], excludes = [ "org.codehaus.plexus:plexus-container-default", "plexus:plexus-utils", ], ) import_external( name = "org_codehaus_plexus_plexus_interpolation", artifact = "org.codehaus.plexus:plexus-interpolation:1.11", artifact_sha256 = "fd9507feb858fa620d1b4aa4b7039fdea1a77e09d3fd28cfbddfff468d9d8c28", srcjar_sha256 = "92e960ff19db5b1f8cd399d20bd52c2dd3c81c080029f2a9b7c77e077d0b0d83", ) import_external( name = "org_codehaus_plexus_plexus_io", artifact = "org.codehaus.plexus:plexus-io:2.7.1", artifact_sha256 = "20aa9dd74536ad9ce65d1253b5c4386747483a7a65c48008c9affb51854539cf", deps = [ "@commons_io_commons_io", "@org_codehaus_plexus_plexus_utils", ], ) import_external( name = "org_codehaus_plexus_plexus_utils", artifact = "org.codehaus.plexus:plexus-utils:3.0.24", artifact_sha256 = "83ee748b12d06afb0ad4050a591132b3e8025fbb1990f1ed002e8b73293e69b4", srcjar_sha256 = "ec01853bc765eddc0accf19993482c14ab0aa59dccec4efd361ef23649153935", ) import_external( name = "org_codehaus_plexus_plexus_velocity", artifact = "org.codehaus.plexus:plexus-velocity:1.1.8", artifact_sha256 = "36b3ea3d0cef03f36bd2c4e0f34729c3de80fd375059bdccbf52b10a42c6ec2c", srcjar_sha256 = "906065102c989b1a82ab0871de1489381835af84cdb32c668c8af59d8a7767fe", deps = [ "@commons_collections_commons_collections", "@org_codehaus_plexus_plexus_container_default", ], excludes = [ "velocity:velocity", "velocity:velocity-api", ], )
37.607843
93
0.686131
285
3,836
8.859649
0.238596
0.109307
0.148119
0.200396
0.397228
0.288713
0.158812
0.077624
0.077624
0.077624
0
0.224806
0.226538
3,836
101
94
37.980198
0.626222
0
0
0.372093
0
0.011628
0.575078
0.551877
0
0
0
0
0
1
0.011628
true
0
0.104651
0
0.116279
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
1
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
79e5dde182344db0587b691ea8f9dbb38fe89ed6
71,297
py
Python
java/JavaParserModifiedListener.py
sriniiyer/concode
864e30807f6988731ac3b4b98af6562c18bb42ff
[ "MIT" ]
48
2018-09-13T15:42:30.000Z
2022-03-14T06:45:48.000Z
java/JavaParserModifiedListener.py
sriniiyer/concode
864e30807f6988731ac3b4b98af6562c18bb42ff
[ "MIT" ]
5
2021-01-25T13:58:32.000Z
2022-01-29T19:02:36.000Z
java/JavaParserModifiedListener.py
sriniiyer/concode
864e30807f6988731ac3b4b98af6562c18bb42ff
[ "MIT" ]
12
2018-10-05T20:12:38.000Z
2021-12-13T13:50:25.000Z
# Generated from ./JavaParserModified.g4 by ANTLR 4.6 from antlr4 import * if __name__ is not None and "." in __name__: from .JavaParserModified import JavaParserModified else: from JavaParserModified import JavaParserModified # This class defines a complete listener for a parse tree produced by JavaParserModified. class JavaParserModifiedListener(ParseTreeListener): # Enter a parse tree produced by JavaParserModified#compilationUnit. def enterCompilationUnit(self, ctx:JavaParserModified.CompilationUnitContext): pass # Exit a parse tree produced by JavaParserModified#compilationUnit. def exitCompilationUnit(self, ctx:JavaParserModified.CompilationUnitContext): pass # Enter a parse tree produced by JavaParserModified#identifierNT. def enterIdentifierNT(self, ctx:JavaParserModified.IdentifierNTContext): pass # Exit a parse tree produced by JavaParserModified#identifierNT. def exitIdentifierNT(self, ctx:JavaParserModified.IdentifierNTContext): pass # Enter a parse tree produced by JavaParserModified#packageDeclaration. def enterPackageDeclaration(self, ctx:JavaParserModified.PackageDeclarationContext): pass # Exit a parse tree produced by JavaParserModified#packageDeclaration. def exitPackageDeclaration(self, ctx:JavaParserModified.PackageDeclarationContext): pass # Enter a parse tree produced by JavaParserModified#nt_0. def enterNt_0(self, ctx:JavaParserModified.Nt_0Context): pass # Exit a parse tree produced by JavaParserModified#nt_0. def exitNt_0(self, ctx:JavaParserModified.Nt_0Context): pass # Enter a parse tree produced by JavaParserModified#importDeclaration. def enterImportDeclaration(self, ctx:JavaParserModified.ImportDeclarationContext): pass # Exit a parse tree produced by JavaParserModified#importDeclaration. def exitImportDeclaration(self, ctx:JavaParserModified.ImportDeclarationContext): pass # Enter a parse tree produced by JavaParserModified#nt_1. def enterNt_1(self, ctx:JavaParserModified.Nt_1Context): pass # Exit a parse tree produced by JavaParserModified#nt_1. def exitNt_1(self, ctx:JavaParserModified.Nt_1Context): pass # Enter a parse tree produced by JavaParserModified#typeDeclaration. def enterTypeDeclaration(self, ctx:JavaParserModified.TypeDeclarationContext): pass # Exit a parse tree produced by JavaParserModified#typeDeclaration. def exitTypeDeclaration(self, ctx:JavaParserModified.TypeDeclarationContext): pass # Enter a parse tree produced by JavaParserModified#modifier. def enterModifier(self, ctx:JavaParserModified.ModifierContext): pass # Exit a parse tree produced by JavaParserModified#modifier. def exitModifier(self, ctx:JavaParserModified.ModifierContext): pass # Enter a parse tree produced by JavaParserModified#classOrInterfaceModifier. def enterClassOrInterfaceModifier(self, ctx:JavaParserModified.ClassOrInterfaceModifierContext): pass # Exit a parse tree produced by JavaParserModified#classOrInterfaceModifier. def exitClassOrInterfaceModifier(self, ctx:JavaParserModified.ClassOrInterfaceModifierContext): pass # Enter a parse tree produced by JavaParserModified#variableModifier. def enterVariableModifier(self, ctx:JavaParserModified.VariableModifierContext): pass # Exit a parse tree produced by JavaParserModified#variableModifier. def exitVariableModifier(self, ctx:JavaParserModified.VariableModifierContext): pass # Enter a parse tree produced by JavaParserModified#nt_2. def enterNt_2(self, ctx:JavaParserModified.Nt_2Context): pass # Exit a parse tree produced by JavaParserModified#nt_2. def exitNt_2(self, ctx:JavaParserModified.Nt_2Context): pass # Enter a parse tree produced by JavaParserModified#nt_43. def enterNt_43(self, ctx:JavaParserModified.Nt_43Context): pass # Exit a parse tree produced by JavaParserModified#nt_43. def exitNt_43(self, ctx:JavaParserModified.Nt_43Context): pass # Enter a parse tree produced by JavaParserModified#classDeclaration. def enterClassDeclaration(self, ctx:JavaParserModified.ClassDeclarationContext): pass # Exit a parse tree produced by JavaParserModified#classDeclaration. def exitClassDeclaration(self, ctx:JavaParserModified.ClassDeclarationContext): pass # Enter a parse tree produced by JavaParserModified#nt_3. def enterNt_3(self, ctx:JavaParserModified.Nt_3Context): pass # Exit a parse tree produced by JavaParserModified#nt_3. def exitNt_3(self, ctx:JavaParserModified.Nt_3Context): pass # Enter a parse tree produced by JavaParserModified#typeParameters. def enterTypeParameters(self, ctx:JavaParserModified.TypeParametersContext): pass # Exit a parse tree produced by JavaParserModified#typeParameters. def exitTypeParameters(self, ctx:JavaParserModified.TypeParametersContext): pass # Enter a parse tree produced by JavaParserModified#nt_4. def enterNt_4(self, ctx:JavaParserModified.Nt_4Context): pass # Exit a parse tree produced by JavaParserModified#nt_4. def exitNt_4(self, ctx:JavaParserModified.Nt_4Context): pass # Enter a parse tree produced by JavaParserModified#typeParameter. def enterTypeParameter(self, ctx:JavaParserModified.TypeParameterContext): pass # Exit a parse tree produced by JavaParserModified#typeParameter. def exitTypeParameter(self, ctx:JavaParserModified.TypeParameterContext): pass # Enter a parse tree produced by JavaParserModified#nt_5. def enterNt_5(self, ctx:JavaParserModified.Nt_5Context): pass # Exit a parse tree produced by JavaParserModified#nt_5. def exitNt_5(self, ctx:JavaParserModified.Nt_5Context): pass # Enter a parse tree produced by JavaParserModified#typeBound. def enterTypeBound(self, ctx:JavaParserModified.TypeBoundContext): pass # Exit a parse tree produced by JavaParserModified#typeBound. def exitTypeBound(self, ctx:JavaParserModified.TypeBoundContext): pass # Enter a parse tree produced by JavaParserModified#nt_6. def enterNt_6(self, ctx:JavaParserModified.Nt_6Context): pass # Exit a parse tree produced by JavaParserModified#nt_6. def exitNt_6(self, ctx:JavaParserModified.Nt_6Context): pass # Enter a parse tree produced by JavaParserModified#enumDeclaration. def enterEnumDeclaration(self, ctx:JavaParserModified.EnumDeclarationContext): pass # Exit a parse tree produced by JavaParserModified#enumDeclaration. def exitEnumDeclaration(self, ctx:JavaParserModified.EnumDeclarationContext): pass # Enter a parse tree produced by JavaParserModified#nt_7. def enterNt_7(self, ctx:JavaParserModified.Nt_7Context): pass # Exit a parse tree produced by JavaParserModified#nt_7. def exitNt_7(self, ctx:JavaParserModified.Nt_7Context): pass # Enter a parse tree produced by JavaParserModified#enumConstants. def enterEnumConstants(self, ctx:JavaParserModified.EnumConstantsContext): pass # Exit a parse tree produced by JavaParserModified#enumConstants. def exitEnumConstants(self, ctx:JavaParserModified.EnumConstantsContext): pass # Enter a parse tree produced by JavaParserModified#enumConstant. def enterEnumConstant(self, ctx:JavaParserModified.EnumConstantContext): pass # Exit a parse tree produced by JavaParserModified#enumConstant. def exitEnumConstant(self, ctx:JavaParserModified.EnumConstantContext): pass # Enter a parse tree produced by JavaParserModified#enumBodyDeclarations. def enterEnumBodyDeclarations(self, ctx:JavaParserModified.EnumBodyDeclarationsContext): pass # Exit a parse tree produced by JavaParserModified#enumBodyDeclarations. def exitEnumBodyDeclarations(self, ctx:JavaParserModified.EnumBodyDeclarationsContext): pass # Enter a parse tree produced by JavaParserModified#nt_8. def enterNt_8(self, ctx:JavaParserModified.Nt_8Context): pass # Exit a parse tree produced by JavaParserModified#nt_8. def exitNt_8(self, ctx:JavaParserModified.Nt_8Context): pass # Enter a parse tree produced by JavaParserModified#interfaceDeclaration. def enterInterfaceDeclaration(self, ctx:JavaParserModified.InterfaceDeclarationContext): pass # Exit a parse tree produced by JavaParserModified#interfaceDeclaration. def exitInterfaceDeclaration(self, ctx:JavaParserModified.InterfaceDeclarationContext): pass # Enter a parse tree produced by JavaParserModified#classBody. def enterClassBody(self, ctx:JavaParserModified.ClassBodyContext): pass # Exit a parse tree produced by JavaParserModified#classBody. def exitClassBody(self, ctx:JavaParserModified.ClassBodyContext): pass # Enter a parse tree produced by JavaParserModified#interfaceBody. def enterInterfaceBody(self, ctx:JavaParserModified.InterfaceBodyContext): pass # Exit a parse tree produced by JavaParserModified#interfaceBody. def exitInterfaceBody(self, ctx:JavaParserModified.InterfaceBodyContext): pass # Enter a parse tree produced by JavaParserModified#classBodyDeclaration. def enterClassBodyDeclaration(self, ctx:JavaParserModified.ClassBodyDeclarationContext): pass # Exit a parse tree produced by JavaParserModified#classBodyDeclaration. def exitClassBodyDeclaration(self, ctx:JavaParserModified.ClassBodyDeclarationContext): pass # Enter a parse tree produced by JavaParserModified#memberDeclaration. def enterMemberDeclaration(self, ctx:JavaParserModified.MemberDeclarationContext): pass # Exit a parse tree produced by JavaParserModified#memberDeclaration. def exitMemberDeclaration(self, ctx:JavaParserModified.MemberDeclarationContext): pass # Enter a parse tree produced by JavaParserModified#nt_9. def enterNt_9(self, ctx:JavaParserModified.Nt_9Context): pass # Exit a parse tree produced by JavaParserModified#nt_9. def exitNt_9(self, ctx:JavaParserModified.Nt_9Context): pass # Enter a parse tree produced by JavaParserModified#nt_44. def enterNt_44(self, ctx:JavaParserModified.Nt_44Context): pass # Exit a parse tree produced by JavaParserModified#nt_44. def exitNt_44(self, ctx:JavaParserModified.Nt_44Context): pass # Enter a parse tree produced by JavaParserModified#methodDeclaration. def enterMethodDeclaration(self, ctx:JavaParserModified.MethodDeclarationContext): pass # Exit a parse tree produced by JavaParserModified#methodDeclaration. def exitMethodDeclaration(self, ctx:JavaParserModified.MethodDeclarationContext): pass # Enter a parse tree produced by JavaParserModified#methodBody. def enterMethodBody(self, ctx:JavaParserModified.MethodBodyContext): pass # Exit a parse tree produced by JavaParserModified#methodBody. def exitMethodBody(self, ctx:JavaParserModified.MethodBodyContext): pass # Enter a parse tree produced by JavaParserModified#typeTypeOrVoid. def enterTypeTypeOrVoid(self, ctx:JavaParserModified.TypeTypeOrVoidContext): pass # Exit a parse tree produced by JavaParserModified#typeTypeOrVoid. def exitTypeTypeOrVoid(self, ctx:JavaParserModified.TypeTypeOrVoidContext): pass # Enter a parse tree produced by JavaParserModified#genericMethodDeclaration. def enterGenericMethodDeclaration(self, ctx:JavaParserModified.GenericMethodDeclarationContext): pass # Exit a parse tree produced by JavaParserModified#genericMethodDeclaration. def exitGenericMethodDeclaration(self, ctx:JavaParserModified.GenericMethodDeclarationContext): pass # Enter a parse tree produced by JavaParserModified#genericConstructorDeclaration. def enterGenericConstructorDeclaration(self, ctx:JavaParserModified.GenericConstructorDeclarationContext): pass # Exit a parse tree produced by JavaParserModified#genericConstructorDeclaration. def exitGenericConstructorDeclaration(self, ctx:JavaParserModified.GenericConstructorDeclarationContext): pass # Enter a parse tree produced by JavaParserModified#nt_10. def enterNt_10(self, ctx:JavaParserModified.Nt_10Context): pass # Exit a parse tree produced by JavaParserModified#nt_10. def exitNt_10(self, ctx:JavaParserModified.Nt_10Context): pass # Enter a parse tree produced by JavaParserModified#constructorDeclaration. def enterConstructorDeclaration(self, ctx:JavaParserModified.ConstructorDeclarationContext): pass # Exit a parse tree produced by JavaParserModified#constructorDeclaration. def exitConstructorDeclaration(self, ctx:JavaParserModified.ConstructorDeclarationContext): pass # Enter a parse tree produced by JavaParserModified#fieldDeclaration. def enterFieldDeclaration(self, ctx:JavaParserModified.FieldDeclarationContext): pass # Exit a parse tree produced by JavaParserModified#fieldDeclaration. def exitFieldDeclaration(self, ctx:JavaParserModified.FieldDeclarationContext): pass # Enter a parse tree produced by JavaParserModified#interfaceBodyDeclaration. def enterInterfaceBodyDeclaration(self, ctx:JavaParserModified.InterfaceBodyDeclarationContext): pass # Exit a parse tree produced by JavaParserModified#interfaceBodyDeclaration. def exitInterfaceBodyDeclaration(self, ctx:JavaParserModified.InterfaceBodyDeclarationContext): pass # Enter a parse tree produced by JavaParserModified#interfaceMemberDeclaration. def enterInterfaceMemberDeclaration(self, ctx:JavaParserModified.InterfaceMemberDeclarationContext): pass # Exit a parse tree produced by JavaParserModified#interfaceMemberDeclaration. def exitInterfaceMemberDeclaration(self, ctx:JavaParserModified.InterfaceMemberDeclarationContext): pass # Enter a parse tree produced by JavaParserModified#nt_11. def enterNt_11(self, ctx:JavaParserModified.Nt_11Context): pass # Exit a parse tree produced by JavaParserModified#nt_11. def exitNt_11(self, ctx:JavaParserModified.Nt_11Context): pass # Enter a parse tree produced by JavaParserModified#constDeclaration. def enterConstDeclaration(self, ctx:JavaParserModified.ConstDeclarationContext): pass # Exit a parse tree produced by JavaParserModified#constDeclaration. def exitConstDeclaration(self, ctx:JavaParserModified.ConstDeclarationContext): pass # Enter a parse tree produced by JavaParserModified#nt_12. def enterNt_12(self, ctx:JavaParserModified.Nt_12Context): pass # Exit a parse tree produced by JavaParserModified#nt_12. def exitNt_12(self, ctx:JavaParserModified.Nt_12Context): pass # Enter a parse tree produced by JavaParserModified#constantDeclarator. def enterConstantDeclarator(self, ctx:JavaParserModified.ConstantDeclaratorContext): pass # Exit a parse tree produced by JavaParserModified#constantDeclarator. def exitConstantDeclarator(self, ctx:JavaParserModified.ConstantDeclaratorContext): pass # Enter a parse tree produced by JavaParserModified#nt_13. def enterNt_13(self, ctx:JavaParserModified.Nt_13Context): pass # Exit a parse tree produced by JavaParserModified#nt_13. def exitNt_13(self, ctx:JavaParserModified.Nt_13Context): pass # Enter a parse tree produced by JavaParserModified#nt_45. def enterNt_45(self, ctx:JavaParserModified.Nt_45Context): pass # Exit a parse tree produced by JavaParserModified#nt_45. def exitNt_45(self, ctx:JavaParserModified.Nt_45Context): pass # Enter a parse tree produced by JavaParserModified#nt_56. def enterNt_56(self, ctx:JavaParserModified.Nt_56Context): pass # Exit a parse tree produced by JavaParserModified#nt_56. def exitNt_56(self, ctx:JavaParserModified.Nt_56Context): pass # Enter a parse tree produced by JavaParserModified#interfaceMethodDeclaration. def enterInterfaceMethodDeclaration(self, ctx:JavaParserModified.InterfaceMethodDeclarationContext): pass # Exit a parse tree produced by JavaParserModified#interfaceMethodDeclaration. def exitInterfaceMethodDeclaration(self, ctx:JavaParserModified.InterfaceMethodDeclarationContext): pass # Enter a parse tree produced by JavaParserModified#interfaceMethodModifier. def enterInterfaceMethodModifier(self, ctx:JavaParserModified.InterfaceMethodModifierContext): pass # Exit a parse tree produced by JavaParserModified#interfaceMethodModifier. def exitInterfaceMethodModifier(self, ctx:JavaParserModified.InterfaceMethodModifierContext): pass # Enter a parse tree produced by JavaParserModified#genericInterfaceMethodDeclaration. def enterGenericInterfaceMethodDeclaration(self, ctx:JavaParserModified.GenericInterfaceMethodDeclarationContext): pass # Exit a parse tree produced by JavaParserModified#genericInterfaceMethodDeclaration. def exitGenericInterfaceMethodDeclaration(self, ctx:JavaParserModified.GenericInterfaceMethodDeclarationContext): pass # Enter a parse tree produced by JavaParserModified#nt_14. def enterNt_14(self, ctx:JavaParserModified.Nt_14Context): pass # Exit a parse tree produced by JavaParserModified#nt_14. def exitNt_14(self, ctx:JavaParserModified.Nt_14Context): pass # Enter a parse tree produced by JavaParserModified#variableDeclarators. def enterVariableDeclarators(self, ctx:JavaParserModified.VariableDeclaratorsContext): pass # Exit a parse tree produced by JavaParserModified#variableDeclarators. def exitVariableDeclarators(self, ctx:JavaParserModified.VariableDeclaratorsContext): pass # Enter a parse tree produced by JavaParserModified#nt_15. def enterNt_15(self, ctx:JavaParserModified.Nt_15Context): pass # Exit a parse tree produced by JavaParserModified#nt_15. def exitNt_15(self, ctx:JavaParserModified.Nt_15Context): pass # Enter a parse tree produced by JavaParserModified#variableDeclarator. def enterVariableDeclarator(self, ctx:JavaParserModified.VariableDeclaratorContext): pass # Exit a parse tree produced by JavaParserModified#variableDeclarator. def exitVariableDeclarator(self, ctx:JavaParserModified.VariableDeclaratorContext): pass # Enter a parse tree produced by JavaParserModified#nt_16. def enterNt_16(self, ctx:JavaParserModified.Nt_16Context): pass # Exit a parse tree produced by JavaParserModified#nt_16. def exitNt_16(self, ctx:JavaParserModified.Nt_16Context): pass # Enter a parse tree produced by JavaParserModified#variableDeclaratorId. def enterVariableDeclaratorId(self, ctx:JavaParserModified.VariableDeclaratorIdContext): pass # Exit a parse tree produced by JavaParserModified#variableDeclaratorId. def exitVariableDeclaratorId(self, ctx:JavaParserModified.VariableDeclaratorIdContext): pass # Enter a parse tree produced by JavaParserModified#variableInitializer. def enterVariableInitializer(self, ctx:JavaParserModified.VariableInitializerContext): pass # Exit a parse tree produced by JavaParserModified#variableInitializer. def exitVariableInitializer(self, ctx:JavaParserModified.VariableInitializerContext): pass # Enter a parse tree produced by JavaParserModified#nt_46. def enterNt_46(self, ctx:JavaParserModified.Nt_46Context): pass # Exit a parse tree produced by JavaParserModified#nt_46. def exitNt_46(self, ctx:JavaParserModified.Nt_46Context): pass # Enter a parse tree produced by JavaParserModified#nt_57. def enterNt_57(self, ctx:JavaParserModified.Nt_57Context): pass # Exit a parse tree produced by JavaParserModified#nt_57. def exitNt_57(self, ctx:JavaParserModified.Nt_57Context): pass # Enter a parse tree produced by JavaParserModified#nt_17. def enterNt_17(self, ctx:JavaParserModified.Nt_17Context): pass # Exit a parse tree produced by JavaParserModified#nt_17. def exitNt_17(self, ctx:JavaParserModified.Nt_17Context): pass # Enter a parse tree produced by JavaParserModified#arrayInitializer. def enterArrayInitializer(self, ctx:JavaParserModified.ArrayInitializerContext): pass # Exit a parse tree produced by JavaParserModified#arrayInitializer. def exitArrayInitializer(self, ctx:JavaParserModified.ArrayInitializerContext): pass # Enter a parse tree produced by JavaParserModified#nt_18. def enterNt_18(self, ctx:JavaParserModified.Nt_18Context): pass # Exit a parse tree produced by JavaParserModified#nt_18. def exitNt_18(self, ctx:JavaParserModified.Nt_18Context): pass # Enter a parse tree produced by JavaParserModified#classOrInterfaceType. def enterClassOrInterfaceType(self, ctx:JavaParserModified.ClassOrInterfaceTypeContext): pass # Exit a parse tree produced by JavaParserModified#classOrInterfaceType. def exitClassOrInterfaceType(self, ctx:JavaParserModified.ClassOrInterfaceTypeContext): pass # Enter a parse tree produced by JavaParserModified#nt_47. def enterNt_47(self, ctx:JavaParserModified.Nt_47Context): pass # Exit a parse tree produced by JavaParserModified#nt_47. def exitNt_47(self, ctx:JavaParserModified.Nt_47Context): pass # Enter a parse tree produced by JavaParserModified#nt_19. def enterNt_19(self, ctx:JavaParserModified.Nt_19Context): pass # Exit a parse tree produced by JavaParserModified#nt_19. def exitNt_19(self, ctx:JavaParserModified.Nt_19Context): pass # Enter a parse tree produced by JavaParserModified#typeArgument. def enterTypeArgument(self, ctx:JavaParserModified.TypeArgumentContext): pass # Exit a parse tree produced by JavaParserModified#typeArgument. def exitTypeArgument(self, ctx:JavaParserModified.TypeArgumentContext): pass # Enter a parse tree produced by JavaParserModified#nt_20. def enterNt_20(self, ctx:JavaParserModified.Nt_20Context): pass # Exit a parse tree produced by JavaParserModified#nt_20. def exitNt_20(self, ctx:JavaParserModified.Nt_20Context): pass # Enter a parse tree produced by JavaParserModified#qualifiedNameList. def enterQualifiedNameList(self, ctx:JavaParserModified.QualifiedNameListContext): pass # Exit a parse tree produced by JavaParserModified#qualifiedNameList. def exitQualifiedNameList(self, ctx:JavaParserModified.QualifiedNameListContext): pass # Enter a parse tree produced by JavaParserModified#formalParameters. def enterFormalParameters(self, ctx:JavaParserModified.FormalParametersContext): pass # Exit a parse tree produced by JavaParserModified#formalParameters. def exitFormalParameters(self, ctx:JavaParserModified.FormalParametersContext): pass # Enter a parse tree produced by JavaParserModified#nt_21. def enterNt_21(self, ctx:JavaParserModified.Nt_21Context): pass # Exit a parse tree produced by JavaParserModified#nt_21. def exitNt_21(self, ctx:JavaParserModified.Nt_21Context): pass # Enter a parse tree produced by JavaParserModified#nt_48. def enterNt_48(self, ctx:JavaParserModified.Nt_48Context): pass # Exit a parse tree produced by JavaParserModified#nt_48. def exitNt_48(self, ctx:JavaParserModified.Nt_48Context): pass # Enter a parse tree produced by JavaParserModified#formalParameterList. def enterFormalParameterList(self, ctx:JavaParserModified.FormalParameterListContext): pass # Exit a parse tree produced by JavaParserModified#formalParameterList. def exitFormalParameterList(self, ctx:JavaParserModified.FormalParameterListContext): pass # Enter a parse tree produced by JavaParserModified#formalParameter. def enterFormalParameter(self, ctx:JavaParserModified.FormalParameterContext): pass # Exit a parse tree produced by JavaParserModified#formalParameter. def exitFormalParameter(self, ctx:JavaParserModified.FormalParameterContext): pass # Enter a parse tree produced by JavaParserModified#lastFormalParameter. def enterLastFormalParameter(self, ctx:JavaParserModified.LastFormalParameterContext): pass # Exit a parse tree produced by JavaParserModified#lastFormalParameter. def exitLastFormalParameter(self, ctx:JavaParserModified.LastFormalParameterContext): pass # Enter a parse tree produced by JavaParserModified#nt_22. def enterNt_22(self, ctx:JavaParserModified.Nt_22Context): pass # Exit a parse tree produced by JavaParserModified#nt_22. def exitNt_22(self, ctx:JavaParserModified.Nt_22Context): pass # Enter a parse tree produced by JavaParserModified#qualifiedName. def enterQualifiedName(self, ctx:JavaParserModified.QualifiedNameContext): pass # Exit a parse tree produced by JavaParserModified#qualifiedName. def exitQualifiedName(self, ctx:JavaParserModified.QualifiedNameContext): pass # Enter a parse tree produced by JavaParserModified#literal. def enterLiteral(self, ctx:JavaParserModified.LiteralContext): pass # Exit a parse tree produced by JavaParserModified#literal. def exitLiteral(self, ctx:JavaParserModified.LiteralContext): pass # Enter a parse tree produced by JavaParserModified#nt_char_literal. def enterNt_char_literal(self, ctx:JavaParserModified.Nt_char_literalContext): pass # Exit a parse tree produced by JavaParserModified#nt_char_literal. def exitNt_char_literal(self, ctx:JavaParserModified.Nt_char_literalContext): pass # Enter a parse tree produced by JavaParserModified#nt_string_literal. def enterNt_string_literal(self, ctx:JavaParserModified.Nt_string_literalContext): pass # Exit a parse tree produced by JavaParserModified#nt_string_literal. def exitNt_string_literal(self, ctx:JavaParserModified.Nt_string_literalContext): pass # Enter a parse tree produced by JavaParserModified#nt_bool_literal. def enterNt_bool_literal(self, ctx:JavaParserModified.Nt_bool_literalContext): pass # Exit a parse tree produced by JavaParserModified#nt_bool_literal. def exitNt_bool_literal(self, ctx:JavaParserModified.Nt_bool_literalContext): pass # Enter a parse tree produced by JavaParserModified#nt_null_literal. def enterNt_null_literal(self, ctx:JavaParserModified.Nt_null_literalContext): pass # Exit a parse tree produced by JavaParserModified#nt_null_literal. def exitNt_null_literal(self, ctx:JavaParserModified.Nt_null_literalContext): pass # Enter a parse tree produced by JavaParserModified#nt_decimal_literal. def enterNt_decimal_literal(self, ctx:JavaParserModified.Nt_decimal_literalContext): pass # Exit a parse tree produced by JavaParserModified#nt_decimal_literal. def exitNt_decimal_literal(self, ctx:JavaParserModified.Nt_decimal_literalContext): pass # Enter a parse tree produced by JavaParserModified#nt_hex_literal. def enterNt_hex_literal(self, ctx:JavaParserModified.Nt_hex_literalContext): pass # Exit a parse tree produced by JavaParserModified#nt_hex_literal. def exitNt_hex_literal(self, ctx:JavaParserModified.Nt_hex_literalContext): pass # Enter a parse tree produced by JavaParserModified#nt_oct_literal. def enterNt_oct_literal(self, ctx:JavaParserModified.Nt_oct_literalContext): pass # Exit a parse tree produced by JavaParserModified#nt_oct_literal. def exitNt_oct_literal(self, ctx:JavaParserModified.Nt_oct_literalContext): pass # Enter a parse tree produced by JavaParserModified#nt_binary_literal. def enterNt_binary_literal(self, ctx:JavaParserModified.Nt_binary_literalContext): pass # Exit a parse tree produced by JavaParserModified#nt_binary_literal. def exitNt_binary_literal(self, ctx:JavaParserModified.Nt_binary_literalContext): pass # Enter a parse tree produced by JavaParserModified#nt_float_literal. def enterNt_float_literal(self, ctx:JavaParserModified.Nt_float_literalContext): pass # Exit a parse tree produced by JavaParserModified#nt_float_literal. def exitNt_float_literal(self, ctx:JavaParserModified.Nt_float_literalContext): pass # Enter a parse tree produced by JavaParserModified#nt_hex_float_literal. def enterNt_hex_float_literal(self, ctx:JavaParserModified.Nt_hex_float_literalContext): pass # Exit a parse tree produced by JavaParserModified#nt_hex_float_literal. def exitNt_hex_float_literal(self, ctx:JavaParserModified.Nt_hex_float_literalContext): pass # Enter a parse tree produced by JavaParserModified#integerLiteral. def enterIntegerLiteral(self, ctx:JavaParserModified.IntegerLiteralContext): pass # Exit a parse tree produced by JavaParserModified#integerLiteral. def exitIntegerLiteral(self, ctx:JavaParserModified.IntegerLiteralContext): pass # Enter a parse tree produced by JavaParserModified#floatLiteral. def enterFloatLiteral(self, ctx:JavaParserModified.FloatLiteralContext): pass # Exit a parse tree produced by JavaParserModified#floatLiteral. def exitFloatLiteral(self, ctx:JavaParserModified.FloatLiteralContext): pass # Enter a parse tree produced by JavaParserModified#nt_49. def enterNt_49(self, ctx:JavaParserModified.Nt_49Context): pass # Exit a parse tree produced by JavaParserModified#nt_49. def exitNt_49(self, ctx:JavaParserModified.Nt_49Context): pass # Enter a parse tree produced by JavaParserModified#nt_23. def enterNt_23(self, ctx:JavaParserModified.Nt_23Context): pass # Exit a parse tree produced by JavaParserModified#nt_23. def exitNt_23(self, ctx:JavaParserModified.Nt_23Context): pass # Enter a parse tree produced by JavaParserModified#annotation. def enterAnnotation(self, ctx:JavaParserModified.AnnotationContext): pass # Exit a parse tree produced by JavaParserModified#annotation. def exitAnnotation(self, ctx:JavaParserModified.AnnotationContext): pass # Enter a parse tree produced by JavaParserModified#nt_24. def enterNt_24(self, ctx:JavaParserModified.Nt_24Context): pass # Exit a parse tree produced by JavaParserModified#nt_24. def exitNt_24(self, ctx:JavaParserModified.Nt_24Context): pass # Enter a parse tree produced by JavaParserModified#elementValuePairs. def enterElementValuePairs(self, ctx:JavaParserModified.ElementValuePairsContext): pass # Exit a parse tree produced by JavaParserModified#elementValuePairs. def exitElementValuePairs(self, ctx:JavaParserModified.ElementValuePairsContext): pass # Enter a parse tree produced by JavaParserModified#elementValuePair. def enterElementValuePair(self, ctx:JavaParserModified.ElementValuePairContext): pass # Exit a parse tree produced by JavaParserModified#elementValuePair. def exitElementValuePair(self, ctx:JavaParserModified.ElementValuePairContext): pass # Enter a parse tree produced by JavaParserModified#elementValue. def enterElementValue(self, ctx:JavaParserModified.ElementValueContext): pass # Exit a parse tree produced by JavaParserModified#elementValue. def exitElementValue(self, ctx:JavaParserModified.ElementValueContext): pass # Enter a parse tree produced by JavaParserModified#nt_50. def enterNt_50(self, ctx:JavaParserModified.Nt_50Context): pass # Exit a parse tree produced by JavaParserModified#nt_50. def exitNt_50(self, ctx:JavaParserModified.Nt_50Context): pass # Enter a parse tree produced by JavaParserModified#nt_25. def enterNt_25(self, ctx:JavaParserModified.Nt_25Context): pass # Exit a parse tree produced by JavaParserModified#nt_25. def exitNt_25(self, ctx:JavaParserModified.Nt_25Context): pass # Enter a parse tree produced by JavaParserModified#nt_51. def enterNt_51(self, ctx:JavaParserModified.Nt_51Context): pass # Exit a parse tree produced by JavaParserModified#nt_51. def exitNt_51(self, ctx:JavaParserModified.Nt_51Context): pass # Enter a parse tree produced by JavaParserModified#elementValueArrayInitializer. def enterElementValueArrayInitializer(self, ctx:JavaParserModified.ElementValueArrayInitializerContext): pass # Exit a parse tree produced by JavaParserModified#elementValueArrayInitializer. def exitElementValueArrayInitializer(self, ctx:JavaParserModified.ElementValueArrayInitializerContext): pass # Enter a parse tree produced by JavaParserModified#annotationTypeDeclaration. def enterAnnotationTypeDeclaration(self, ctx:JavaParserModified.AnnotationTypeDeclarationContext): pass # Exit a parse tree produced by JavaParserModified#annotationTypeDeclaration. def exitAnnotationTypeDeclaration(self, ctx:JavaParserModified.AnnotationTypeDeclarationContext): pass # Enter a parse tree produced by JavaParserModified#nt_26. def enterNt_26(self, ctx:JavaParserModified.Nt_26Context): pass # Exit a parse tree produced by JavaParserModified#nt_26. def exitNt_26(self, ctx:JavaParserModified.Nt_26Context): pass # Enter a parse tree produced by JavaParserModified#annotationTypeBody. def enterAnnotationTypeBody(self, ctx:JavaParserModified.AnnotationTypeBodyContext): pass # Exit a parse tree produced by JavaParserModified#annotationTypeBody. def exitAnnotationTypeBody(self, ctx:JavaParserModified.AnnotationTypeBodyContext): pass # Enter a parse tree produced by JavaParserModified#annotationTypeElementDeclaration. def enterAnnotationTypeElementDeclaration(self, ctx:JavaParserModified.AnnotationTypeElementDeclarationContext): pass # Exit a parse tree produced by JavaParserModified#annotationTypeElementDeclaration. def exitAnnotationTypeElementDeclaration(self, ctx:JavaParserModified.AnnotationTypeElementDeclarationContext): pass # Enter a parse tree produced by JavaParserModified#annotationTypeElementRest. def enterAnnotationTypeElementRest(self, ctx:JavaParserModified.AnnotationTypeElementRestContext): pass # Exit a parse tree produced by JavaParserModified#annotationTypeElementRest. def exitAnnotationTypeElementRest(self, ctx:JavaParserModified.AnnotationTypeElementRestContext): pass # Enter a parse tree produced by JavaParserModified#annotationMethodOrConstantRest. def enterAnnotationMethodOrConstantRest(self, ctx:JavaParserModified.AnnotationMethodOrConstantRestContext): pass # Exit a parse tree produced by JavaParserModified#annotationMethodOrConstantRest. def exitAnnotationMethodOrConstantRest(self, ctx:JavaParserModified.AnnotationMethodOrConstantRestContext): pass # Enter a parse tree produced by JavaParserModified#annotationMethodRest. def enterAnnotationMethodRest(self, ctx:JavaParserModified.AnnotationMethodRestContext): pass # Exit a parse tree produced by JavaParserModified#annotationMethodRest. def exitAnnotationMethodRest(self, ctx:JavaParserModified.AnnotationMethodRestContext): pass # Enter a parse tree produced by JavaParserModified#annotationConstantRest. def enterAnnotationConstantRest(self, ctx:JavaParserModified.AnnotationConstantRestContext): pass # Exit a parse tree produced by JavaParserModified#annotationConstantRest. def exitAnnotationConstantRest(self, ctx:JavaParserModified.AnnotationConstantRestContext): pass # Enter a parse tree produced by JavaParserModified#defaultValue. def enterDefaultValue(self, ctx:JavaParserModified.DefaultValueContext): pass # Exit a parse tree produced by JavaParserModified#defaultValue. def exitDefaultValue(self, ctx:JavaParserModified.DefaultValueContext): pass # Enter a parse tree produced by JavaParserModified#block. def enterBlock(self, ctx:JavaParserModified.BlockContext): pass # Exit a parse tree produced by JavaParserModified#block. def exitBlock(self, ctx:JavaParserModified.BlockContext): pass # Enter a parse tree produced by JavaParserModified#blockStatement. def enterBlockStatement(self, ctx:JavaParserModified.BlockStatementContext): pass # Exit a parse tree produced by JavaParserModified#blockStatement. def exitBlockStatement(self, ctx:JavaParserModified.BlockStatementContext): pass # Enter a parse tree produced by JavaParserModified#localVariableDeclaration. def enterLocalVariableDeclaration(self, ctx:JavaParserModified.LocalVariableDeclarationContext): pass # Exit a parse tree produced by JavaParserModified#localVariableDeclaration. def exitLocalVariableDeclaration(self, ctx:JavaParserModified.LocalVariableDeclarationContext): pass # Enter a parse tree produced by JavaParserModified#nt_27. def enterNt_27(self, ctx:JavaParserModified.Nt_27Context): pass # Exit a parse tree produced by JavaParserModified#nt_27. def exitNt_27(self, ctx:JavaParserModified.Nt_27Context): pass # Enter a parse tree produced by JavaParserModified#localTypeDeclaration. def enterLocalTypeDeclaration(self, ctx:JavaParserModified.LocalTypeDeclarationContext): pass # Exit a parse tree produced by JavaParserModified#localTypeDeclaration. def exitLocalTypeDeclaration(self, ctx:JavaParserModified.LocalTypeDeclarationContext): pass # Enter a parse tree produced by JavaParserModified#nt_28. def enterNt_28(self, ctx:JavaParserModified.Nt_28Context): pass # Exit a parse tree produced by JavaParserModified#nt_28. def exitNt_28(self, ctx:JavaParserModified.Nt_28Context): pass # Enter a parse tree produced by JavaParserModified#nt_52. def enterNt_52(self, ctx:JavaParserModified.Nt_52Context): pass # Exit a parse tree produced by JavaParserModified#nt_52. def exitNt_52(self, ctx:JavaParserModified.Nt_52Context): pass # Enter a parse tree produced by JavaParserModified#nt_58. def enterNt_58(self, ctx:JavaParserModified.Nt_58Context): pass # Exit a parse tree produced by JavaParserModified#nt_58. def exitNt_58(self, ctx:JavaParserModified.Nt_58Context): pass # Enter a parse tree produced by JavaParserModified#statement. def enterStatement(self, ctx:JavaParserModified.StatementContext): pass # Exit a parse tree produced by JavaParserModified#statement. def exitStatement(self, ctx:JavaParserModified.StatementContext): pass # Enter a parse tree produced by JavaParserModified#catchClause. def enterCatchClause(self, ctx:JavaParserModified.CatchClauseContext): pass # Exit a parse tree produced by JavaParserModified#catchClause. def exitCatchClause(self, ctx:JavaParserModified.CatchClauseContext): pass # Enter a parse tree produced by JavaParserModified#nt_29. def enterNt_29(self, ctx:JavaParserModified.Nt_29Context): pass # Exit a parse tree produced by JavaParserModified#nt_29. def exitNt_29(self, ctx:JavaParserModified.Nt_29Context): pass # Enter a parse tree produced by JavaParserModified#catchType. def enterCatchType(self, ctx:JavaParserModified.CatchTypeContext): pass # Exit a parse tree produced by JavaParserModified#catchType. def exitCatchType(self, ctx:JavaParserModified.CatchTypeContext): pass # Enter a parse tree produced by JavaParserModified#finallyBlock. def enterFinallyBlock(self, ctx:JavaParserModified.FinallyBlockContext): pass # Exit a parse tree produced by JavaParserModified#finallyBlock. def exitFinallyBlock(self, ctx:JavaParserModified.FinallyBlockContext): pass # Enter a parse tree produced by JavaParserModified#resourceSpecification. def enterResourceSpecification(self, ctx:JavaParserModified.ResourceSpecificationContext): pass # Exit a parse tree produced by JavaParserModified#resourceSpecification. def exitResourceSpecification(self, ctx:JavaParserModified.ResourceSpecificationContext): pass # Enter a parse tree produced by JavaParserModified#nt_30. def enterNt_30(self, ctx:JavaParserModified.Nt_30Context): pass # Exit a parse tree produced by JavaParserModified#nt_30. def exitNt_30(self, ctx:JavaParserModified.Nt_30Context): pass # Enter a parse tree produced by JavaParserModified#resources. def enterResources(self, ctx:JavaParserModified.ResourcesContext): pass # Exit a parse tree produced by JavaParserModified#resources. def exitResources(self, ctx:JavaParserModified.ResourcesContext): pass # Enter a parse tree produced by JavaParserModified#resource. def enterResource(self, ctx:JavaParserModified.ResourceContext): pass # Exit a parse tree produced by JavaParserModified#resource. def exitResource(self, ctx:JavaParserModified.ResourceContext): pass # Enter a parse tree produced by JavaParserModified#switchBlockStatementGroup. def enterSwitchBlockStatementGroup(self, ctx:JavaParserModified.SwitchBlockStatementGroupContext): pass # Exit a parse tree produced by JavaParserModified#switchBlockStatementGroup. def exitSwitchBlockStatementGroup(self, ctx:JavaParserModified.SwitchBlockStatementGroupContext): pass # Enter a parse tree produced by JavaParserModified#nt_31. def enterNt_31(self, ctx:JavaParserModified.Nt_31Context): pass # Exit a parse tree produced by JavaParserModified#nt_31. def exitNt_31(self, ctx:JavaParserModified.Nt_31Context): pass # Enter a parse tree produced by JavaParserModified#switchLabel. def enterSwitchLabel(self, ctx:JavaParserModified.SwitchLabelContext): pass # Exit a parse tree produced by JavaParserModified#switchLabel. def exitSwitchLabel(self, ctx:JavaParserModified.SwitchLabelContext): pass # Enter a parse tree produced by JavaParserModified#forControl. def enterForControl(self, ctx:JavaParserModified.ForControlContext): pass # Exit a parse tree produced by JavaParserModified#forControl. def exitForControl(self, ctx:JavaParserModified.ForControlContext): pass # Enter a parse tree produced by JavaParserModified#forInit. def enterForInit(self, ctx:JavaParserModified.ForInitContext): pass # Exit a parse tree produced by JavaParserModified#forInit. def exitForInit(self, ctx:JavaParserModified.ForInitContext): pass # Enter a parse tree produced by JavaParserModified#enhancedForControl. def enterEnhancedForControl(self, ctx:JavaParserModified.EnhancedForControlContext): pass # Exit a parse tree produced by JavaParserModified#enhancedForControl. def exitEnhancedForControl(self, ctx:JavaParserModified.EnhancedForControlContext): pass # Enter a parse tree produced by JavaParserModified#parExpression. def enterParExpression(self, ctx:JavaParserModified.ParExpressionContext): pass # Exit a parse tree produced by JavaParserModified#parExpression. def exitParExpression(self, ctx:JavaParserModified.ParExpressionContext): pass # Enter a parse tree produced by JavaParserModified#nt_32. def enterNt_32(self, ctx:JavaParserModified.Nt_32Context): pass # Exit a parse tree produced by JavaParserModified#nt_32. def exitNt_32(self, ctx:JavaParserModified.Nt_32Context): pass # Enter a parse tree produced by JavaParserModified#expressionList. def enterExpressionList(self, ctx:JavaParserModified.ExpressionListContext): pass # Exit a parse tree produced by JavaParserModified#expressionList. def exitExpressionList(self, ctx:JavaParserModified.ExpressionListContext): pass # Enter a parse tree produced by JavaParserModified#nt_33. def enterNt_33(self, ctx:JavaParserModified.Nt_33Context): pass # Exit a parse tree produced by JavaParserModified#nt_33. def exitNt_33(self, ctx:JavaParserModified.Nt_33Context): pass # Enter a parse tree produced by JavaParserModified#nt_53. def enterNt_53(self, ctx:JavaParserModified.Nt_53Context): pass # Exit a parse tree produced by JavaParserModified#nt_53. def exitNt_53(self, ctx:JavaParserModified.Nt_53Context): pass # Enter a parse tree produced by JavaParserModified#nt_59. def enterNt_59(self, ctx:JavaParserModified.Nt_59Context): pass # Exit a parse tree produced by JavaParserModified#nt_59. def exitNt_59(self, ctx:JavaParserModified.Nt_59Context): pass # Enter a parse tree produced by JavaParserModified#nt_61. def enterNt_61(self, ctx:JavaParserModified.Nt_61Context): pass # Exit a parse tree produced by JavaParserModified#nt_61. def exitNt_61(self, ctx:JavaParserModified.Nt_61Context): pass # Enter a parse tree produced by JavaParserModified#nt_63. def enterNt_63(self, ctx:JavaParserModified.Nt_63Context): pass # Exit a parse tree produced by JavaParserModified#nt_63. def exitNt_63(self, ctx:JavaParserModified.Nt_63Context): pass # Enter a parse tree produced by JavaParserModified#nt_64. def enterNt_64(self, ctx:JavaParserModified.Nt_64Context): pass # Exit a parse tree produced by JavaParserModified#nt_64. def exitNt_64(self, ctx:JavaParserModified.Nt_64Context): pass # Enter a parse tree produced by JavaParserModified#nt_65. def enterNt_65(self, ctx:JavaParserModified.Nt_65Context): pass # Exit a parse tree produced by JavaParserModified#nt_65. def exitNt_65(self, ctx:JavaParserModified.Nt_65Context): pass # Enter a parse tree produced by JavaParserModified#nt_66. def enterNt_66(self, ctx:JavaParserModified.Nt_66Context): pass # Exit a parse tree produced by JavaParserModified#nt_66. def exitNt_66(self, ctx:JavaParserModified.Nt_66Context): pass # Enter a parse tree produced by JavaParserModified#nt_67. def enterNt_67(self, ctx:JavaParserModified.Nt_67Context): pass # Exit a parse tree produced by JavaParserModified#nt_67. def exitNt_67(self, ctx:JavaParserModified.Nt_67Context): pass # Enter a parse tree produced by JavaParserModified#nt_68. def enterNt_68(self, ctx:JavaParserModified.Nt_68Context): pass # Exit a parse tree produced by JavaParserModified#nt_68. def exitNt_68(self, ctx:JavaParserModified.Nt_68Context): pass # Enter a parse tree produced by JavaParserModified#nt_69. def enterNt_69(self, ctx:JavaParserModified.Nt_69Context): pass # Exit a parse tree produced by JavaParserModified#nt_69. def exitNt_69(self, ctx:JavaParserModified.Nt_69Context): pass # Enter a parse tree produced by JavaParserModified#expression. def enterExpression(self, ctx:JavaParserModified.ExpressionContext): pass # Exit a parse tree produced by JavaParserModified#expression. def exitExpression(self, ctx:JavaParserModified.ExpressionContext): pass # Enter a parse tree produced by JavaParserModified#lambdaExpression. def enterLambdaExpression(self, ctx:JavaParserModified.LambdaExpressionContext): pass # Exit a parse tree produced by JavaParserModified#lambdaExpression. def exitLambdaExpression(self, ctx:JavaParserModified.LambdaExpressionContext): pass # Enter a parse tree produced by JavaParserModified#nt_34. def enterNt_34(self, ctx:JavaParserModified.Nt_34Context): pass # Exit a parse tree produced by JavaParserModified#nt_34. def exitNt_34(self, ctx:JavaParserModified.Nt_34Context): pass # Enter a parse tree produced by JavaParserModified#lambdaParameters. def enterLambdaParameters(self, ctx:JavaParserModified.LambdaParametersContext): pass # Exit a parse tree produced by JavaParserModified#lambdaParameters. def exitLambdaParameters(self, ctx:JavaParserModified.LambdaParametersContext): pass # Enter a parse tree produced by JavaParserModified#lambdaBody. def enterLambdaBody(self, ctx:JavaParserModified.LambdaBodyContext): pass # Exit a parse tree produced by JavaParserModified#lambdaBody. def exitLambdaBody(self, ctx:JavaParserModified.LambdaBodyContext): pass # Enter a parse tree produced by JavaParserModified#nt_35. def enterNt_35(self, ctx:JavaParserModified.Nt_35Context): pass # Exit a parse tree produced by JavaParserModified#nt_35. def exitNt_35(self, ctx:JavaParserModified.Nt_35Context): pass # Enter a parse tree produced by JavaParserModified#primary. def enterPrimary(self, ctx:JavaParserModified.PrimaryContext): pass # Exit a parse tree produced by JavaParserModified#primary. def exitPrimary(self, ctx:JavaParserModified.PrimaryContext): pass # Enter a parse tree produced by JavaParserModified#nt_36. def enterNt_36(self, ctx:JavaParserModified.Nt_36Context): pass # Exit a parse tree produced by JavaParserModified#nt_36. def exitNt_36(self, ctx:JavaParserModified.Nt_36Context): pass # Enter a parse tree produced by JavaParserModified#classType. def enterClassType(self, ctx:JavaParserModified.ClassTypeContext): pass # Exit a parse tree produced by JavaParserModified#classType. def exitClassType(self, ctx:JavaParserModified.ClassTypeContext): pass # Enter a parse tree produced by JavaParserModified#nt_37. def enterNt_37(self, ctx:JavaParserModified.Nt_37Context): pass # Exit a parse tree produced by JavaParserModified#nt_37. def exitNt_37(self, ctx:JavaParserModified.Nt_37Context): pass # Enter a parse tree produced by JavaParserModified#creator. def enterCreator(self, ctx:JavaParserModified.CreatorContext): pass # Exit a parse tree produced by JavaParserModified#creator. def exitCreator(self, ctx:JavaParserModified.CreatorContext): pass # Enter a parse tree produced by JavaParserModified#nt_38. def enterNt_38(self, ctx:JavaParserModified.Nt_38Context): pass # Exit a parse tree produced by JavaParserModified#nt_38. def exitNt_38(self, ctx:JavaParserModified.Nt_38Context): pass # Enter a parse tree produced by JavaParserModified#createdName. def enterCreatedName(self, ctx:JavaParserModified.CreatedNameContext): pass # Exit a parse tree produced by JavaParserModified#createdName. def exitCreatedName(self, ctx:JavaParserModified.CreatedNameContext): pass # Enter a parse tree produced by JavaParserModified#innerCreator. def enterInnerCreator(self, ctx:JavaParserModified.InnerCreatorContext): pass # Exit a parse tree produced by JavaParserModified#innerCreator. def exitInnerCreator(self, ctx:JavaParserModified.InnerCreatorContext): pass # Enter a parse tree produced by JavaParserModified#nt_54. def enterNt_54(self, ctx:JavaParserModified.Nt_54Context): pass # Exit a parse tree produced by JavaParserModified#nt_54. def exitNt_54(self, ctx:JavaParserModified.Nt_54Context): pass # Enter a parse tree produced by JavaParserModified#nt_60. def enterNt_60(self, ctx:JavaParserModified.Nt_60Context): pass # Exit a parse tree produced by JavaParserModified#nt_60. def exitNt_60(self, ctx:JavaParserModified.Nt_60Context): pass # Enter a parse tree produced by JavaParserModified#nt_62. def enterNt_62(self, ctx:JavaParserModified.Nt_62Context): pass # Exit a parse tree produced by JavaParserModified#nt_62. def exitNt_62(self, ctx:JavaParserModified.Nt_62Context): pass # Enter a parse tree produced by JavaParserModified#nt_39. def enterNt_39(self, ctx:JavaParserModified.Nt_39Context): pass # Exit a parse tree produced by JavaParserModified#nt_39. def exitNt_39(self, ctx:JavaParserModified.Nt_39Context): pass # Enter a parse tree produced by JavaParserModified#arrayCreatorRest. def enterArrayCreatorRest(self, ctx:JavaParserModified.ArrayCreatorRestContext): pass # Exit a parse tree produced by JavaParserModified#arrayCreatorRest. def exitArrayCreatorRest(self, ctx:JavaParserModified.ArrayCreatorRestContext): pass # Enter a parse tree produced by JavaParserModified#classCreatorRest. def enterClassCreatorRest(self, ctx:JavaParserModified.ClassCreatorRestContext): pass # Exit a parse tree produced by JavaParserModified#classCreatorRest. def exitClassCreatorRest(self, ctx:JavaParserModified.ClassCreatorRestContext): pass # Enter a parse tree produced by JavaParserModified#explicitGenericInvocation. def enterExplicitGenericInvocation(self, ctx:JavaParserModified.ExplicitGenericInvocationContext): pass # Exit a parse tree produced by JavaParserModified#explicitGenericInvocation. def exitExplicitGenericInvocation(self, ctx:JavaParserModified.ExplicitGenericInvocationContext): pass # Enter a parse tree produced by JavaParserModified#typeArgumentsOrDiamond. def enterTypeArgumentsOrDiamond(self, ctx:JavaParserModified.TypeArgumentsOrDiamondContext): pass # Exit a parse tree produced by JavaParserModified#typeArgumentsOrDiamond. def exitTypeArgumentsOrDiamond(self, ctx:JavaParserModified.TypeArgumentsOrDiamondContext): pass # Enter a parse tree produced by JavaParserModified#nonWildcardTypeArgumentsOrDiamond. def enterNonWildcardTypeArgumentsOrDiamond(self, ctx:JavaParserModified.NonWildcardTypeArgumentsOrDiamondContext): pass # Exit a parse tree produced by JavaParserModified#nonWildcardTypeArgumentsOrDiamond. def exitNonWildcardTypeArgumentsOrDiamond(self, ctx:JavaParserModified.NonWildcardTypeArgumentsOrDiamondContext): pass # Enter a parse tree produced by JavaParserModified#nonWildcardTypeArguments. def enterNonWildcardTypeArguments(self, ctx:JavaParserModified.NonWildcardTypeArgumentsContext): pass # Exit a parse tree produced by JavaParserModified#nonWildcardTypeArguments. def exitNonWildcardTypeArguments(self, ctx:JavaParserModified.NonWildcardTypeArgumentsContext): pass # Enter a parse tree produced by JavaParserModified#nt_40. def enterNt_40(self, ctx:JavaParserModified.Nt_40Context): pass # Exit a parse tree produced by JavaParserModified#nt_40. def exitNt_40(self, ctx:JavaParserModified.Nt_40Context): pass # Enter a parse tree produced by JavaParserModified#typeList. def enterTypeList(self, ctx:JavaParserModified.TypeListContext): pass # Exit a parse tree produced by JavaParserModified#typeList. def exitTypeList(self, ctx:JavaParserModified.TypeListContext): pass # Enter a parse tree produced by JavaParserModified#nt_41. def enterNt_41(self, ctx:JavaParserModified.Nt_41Context): pass # Exit a parse tree produced by JavaParserModified#nt_41. def exitNt_41(self, ctx:JavaParserModified.Nt_41Context): pass # Enter a parse tree produced by JavaParserModified#nt_55. def enterNt_55(self, ctx:JavaParserModified.Nt_55Context): pass # Exit a parse tree produced by JavaParserModified#nt_55. def exitNt_55(self, ctx:JavaParserModified.Nt_55Context): pass # Enter a parse tree produced by JavaParserModified#typeType. def enterTypeType(self, ctx:JavaParserModified.TypeTypeContext): pass # Exit a parse tree produced by JavaParserModified#typeType. def exitTypeType(self, ctx:JavaParserModified.TypeTypeContext): pass # Enter a parse tree produced by JavaParserModified#primitiveType. def enterPrimitiveType(self, ctx:JavaParserModified.PrimitiveTypeContext): pass # Exit a parse tree produced by JavaParserModified#primitiveType. def exitPrimitiveType(self, ctx:JavaParserModified.PrimitiveTypeContext): pass # Enter a parse tree produced by JavaParserModified#nt_42. def enterNt_42(self, ctx:JavaParserModified.Nt_42Context): pass # Exit a parse tree produced by JavaParserModified#nt_42. def exitNt_42(self, ctx:JavaParserModified.Nt_42Context): pass # Enter a parse tree produced by JavaParserModified#typeArguments. def enterTypeArguments(self, ctx:JavaParserModified.TypeArgumentsContext): pass # Exit a parse tree produced by JavaParserModified#typeArguments. def exitTypeArguments(self, ctx:JavaParserModified.TypeArgumentsContext): pass # Enter a parse tree produced by JavaParserModified#superSuffix. def enterSuperSuffix(self, ctx:JavaParserModified.SuperSuffixContext): pass # Exit a parse tree produced by JavaParserModified#superSuffix. def exitSuperSuffix(self, ctx:JavaParserModified.SuperSuffixContext): pass # Enter a parse tree produced by JavaParserModified#explicitGenericInvocationSuffix. def enterExplicitGenericInvocationSuffix(self, ctx:JavaParserModified.ExplicitGenericInvocationSuffixContext): pass # Exit a parse tree produced by JavaParserModified#explicitGenericInvocationSuffix. def exitExplicitGenericInvocationSuffix(self, ctx:JavaParserModified.ExplicitGenericInvocationSuffixContext): pass # Enter a parse tree produced by JavaParserModified#arguments. def enterArguments(self, ctx:JavaParserModified.ArgumentsContext): pass # Exit a parse tree produced by JavaParserModified#arguments. def exitArguments(self, ctx:JavaParserModified.ArgumentsContext): pass # Enter a parse tree produced by JavaParserModified#star_0. def enterStar_0(self, ctx:JavaParserModified.Star_0Context): pass # Exit a parse tree produced by JavaParserModified#star_0. def exitStar_0(self, ctx:JavaParserModified.Star_0Context): pass # Enter a parse tree produced by JavaParserModified#star_1. def enterStar_1(self, ctx:JavaParserModified.Star_1Context): pass # Exit a parse tree produced by JavaParserModified#star_1. def exitStar_1(self, ctx:JavaParserModified.Star_1Context): pass # Enter a parse tree produced by JavaParserModified#star_2. def enterStar_2(self, ctx:JavaParserModified.Star_2Context): pass # Exit a parse tree produced by JavaParserModified#star_2. def exitStar_2(self, ctx:JavaParserModified.Star_2Context): pass # Enter a parse tree produced by JavaParserModified#star_3. def enterStar_3(self, ctx:JavaParserModified.Star_3Context): pass # Exit a parse tree produced by JavaParserModified#star_3. def exitStar_3(self, ctx:JavaParserModified.Star_3Context): pass # Enter a parse tree produced by JavaParserModified#star_4. def enterStar_4(self, ctx:JavaParserModified.Star_4Context): pass # Exit a parse tree produced by JavaParserModified#star_4. def exitStar_4(self, ctx:JavaParserModified.Star_4Context): pass # Enter a parse tree produced by JavaParserModified#star_5. def enterStar_5(self, ctx:JavaParserModified.Star_5Context): pass # Exit a parse tree produced by JavaParserModified#star_5. def exitStar_5(self, ctx:JavaParserModified.Star_5Context): pass # Enter a parse tree produced by JavaParserModified#star_6. def enterStar_6(self, ctx:JavaParserModified.Star_6Context): pass # Exit a parse tree produced by JavaParserModified#star_6. def exitStar_6(self, ctx:JavaParserModified.Star_6Context): pass # Enter a parse tree produced by JavaParserModified#star_7. def enterStar_7(self, ctx:JavaParserModified.Star_7Context): pass # Exit a parse tree produced by JavaParserModified#star_7. def exitStar_7(self, ctx:JavaParserModified.Star_7Context): pass # Enter a parse tree produced by JavaParserModified#star_8. def enterStar_8(self, ctx:JavaParserModified.Star_8Context): pass # Exit a parse tree produced by JavaParserModified#star_8. def exitStar_8(self, ctx:JavaParserModified.Star_8Context): pass # Enter a parse tree produced by JavaParserModified#star_9. def enterStar_9(self, ctx:JavaParserModified.Star_9Context): pass # Exit a parse tree produced by JavaParserModified#star_9. def exitStar_9(self, ctx:JavaParserModified.Star_9Context): pass # Enter a parse tree produced by JavaParserModified#star_10. def enterStar_10(self, ctx:JavaParserModified.Star_10Context): pass # Exit a parse tree produced by JavaParserModified#star_10. def exitStar_10(self, ctx:JavaParserModified.Star_10Context): pass # Enter a parse tree produced by JavaParserModified#star_11. def enterStar_11(self, ctx:JavaParserModified.Star_11Context): pass # Exit a parse tree produced by JavaParserModified#star_11. def exitStar_11(self, ctx:JavaParserModified.Star_11Context): pass # Enter a parse tree produced by JavaParserModified#star_12. def enterStar_12(self, ctx:JavaParserModified.Star_12Context): pass # Exit a parse tree produced by JavaParserModified#star_12. def exitStar_12(self, ctx:JavaParserModified.Star_12Context): pass # Enter a parse tree produced by JavaParserModified#star_13. def enterStar_13(self, ctx:JavaParserModified.Star_13Context): pass # Exit a parse tree produced by JavaParserModified#star_13. def exitStar_13(self, ctx:JavaParserModified.Star_13Context): pass # Enter a parse tree produced by JavaParserModified#star_14. def enterStar_14(self, ctx:JavaParserModified.Star_14Context): pass # Exit a parse tree produced by JavaParserModified#star_14. def exitStar_14(self, ctx:JavaParserModified.Star_14Context): pass # Enter a parse tree produced by JavaParserModified#star_15. def enterStar_15(self, ctx:JavaParserModified.Star_15Context): pass # Exit a parse tree produced by JavaParserModified#star_15. def exitStar_15(self, ctx:JavaParserModified.Star_15Context): pass # Enter a parse tree produced by JavaParserModified#star_16. def enterStar_16(self, ctx:JavaParserModified.Star_16Context): pass # Exit a parse tree produced by JavaParserModified#star_16. def exitStar_16(self, ctx:JavaParserModified.Star_16Context): pass # Enter a parse tree produced by JavaParserModified#star_17. def enterStar_17(self, ctx:JavaParserModified.Star_17Context): pass # Exit a parse tree produced by JavaParserModified#star_17. def exitStar_17(self, ctx:JavaParserModified.Star_17Context): pass # Enter a parse tree produced by JavaParserModified#star_18. def enterStar_18(self, ctx:JavaParserModified.Star_18Context): pass # Exit a parse tree produced by JavaParserModified#star_18. def exitStar_18(self, ctx:JavaParserModified.Star_18Context): pass # Enter a parse tree produced by JavaParserModified#star_19. def enterStar_19(self, ctx:JavaParserModified.Star_19Context): pass # Exit a parse tree produced by JavaParserModified#star_19. def exitStar_19(self, ctx:JavaParserModified.Star_19Context): pass # Enter a parse tree produced by JavaParserModified#star_20. def enterStar_20(self, ctx:JavaParserModified.Star_20Context): pass # Exit a parse tree produced by JavaParserModified#star_20. def exitStar_20(self, ctx:JavaParserModified.Star_20Context): pass # Enter a parse tree produced by JavaParserModified#star_21. def enterStar_21(self, ctx:JavaParserModified.Star_21Context): pass # Exit a parse tree produced by JavaParserModified#star_21. def exitStar_21(self, ctx:JavaParserModified.Star_21Context): pass # Enter a parse tree produced by JavaParserModified#star_22. def enterStar_22(self, ctx:JavaParserModified.Star_22Context): pass # Exit a parse tree produced by JavaParserModified#star_22. def exitStar_22(self, ctx:JavaParserModified.Star_22Context): pass # Enter a parse tree produced by JavaParserModified#star_23. def enterStar_23(self, ctx:JavaParserModified.Star_23Context): pass # Exit a parse tree produced by JavaParserModified#star_23. def exitStar_23(self, ctx:JavaParserModified.Star_23Context): pass # Enter a parse tree produced by JavaParserModified#star_24. def enterStar_24(self, ctx:JavaParserModified.Star_24Context): pass # Exit a parse tree produced by JavaParserModified#star_24. def exitStar_24(self, ctx:JavaParserModified.Star_24Context): pass # Enter a parse tree produced by JavaParserModified#star_25. def enterStar_25(self, ctx:JavaParserModified.Star_25Context): pass # Exit a parse tree produced by JavaParserModified#star_25. def exitStar_25(self, ctx:JavaParserModified.Star_25Context): pass # Enter a parse tree produced by JavaParserModified#star_26. def enterStar_26(self, ctx:JavaParserModified.Star_26Context): pass # Exit a parse tree produced by JavaParserModified#star_26. def exitStar_26(self, ctx:JavaParserModified.Star_26Context): pass # Enter a parse tree produced by JavaParserModified#star_27. def enterStar_27(self, ctx:JavaParserModified.Star_27Context): pass # Exit a parse tree produced by JavaParserModified#star_27. def exitStar_27(self, ctx:JavaParserModified.Star_27Context): pass # Enter a parse tree produced by JavaParserModified#star_28. def enterStar_28(self, ctx:JavaParserModified.Star_28Context): pass # Exit a parse tree produced by JavaParserModified#star_28. def exitStar_28(self, ctx:JavaParserModified.Star_28Context): pass # Enter a parse tree produced by JavaParserModified#star_29. def enterStar_29(self, ctx:JavaParserModified.Star_29Context): pass # Exit a parse tree produced by JavaParserModified#star_29. def exitStar_29(self, ctx:JavaParserModified.Star_29Context): pass # Enter a parse tree produced by JavaParserModified#star_30. def enterStar_30(self, ctx:JavaParserModified.Star_30Context): pass # Exit a parse tree produced by JavaParserModified#star_30. def exitStar_30(self, ctx:JavaParserModified.Star_30Context): pass # Enter a parse tree produced by JavaParserModified#star_31. def enterStar_31(self, ctx:JavaParserModified.Star_31Context): pass # Exit a parse tree produced by JavaParserModified#star_31. def exitStar_31(self, ctx:JavaParserModified.Star_31Context): pass # Enter a parse tree produced by JavaParserModified#star_32. def enterStar_32(self, ctx:JavaParserModified.Star_32Context): pass # Exit a parse tree produced by JavaParserModified#star_32. def exitStar_32(self, ctx:JavaParserModified.Star_32Context): pass # Enter a parse tree produced by JavaParserModified#star_33. def enterStar_33(self, ctx:JavaParserModified.Star_33Context): pass # Exit a parse tree produced by JavaParserModified#star_33. def exitStar_33(self, ctx:JavaParserModified.Star_33Context): pass # Enter a parse tree produced by JavaParserModified#star_34. def enterStar_34(self, ctx:JavaParserModified.Star_34Context): pass # Exit a parse tree produced by JavaParserModified#star_34. def exitStar_34(self, ctx:JavaParserModified.Star_34Context): pass # Enter a parse tree produced by JavaParserModified#star_35. def enterStar_35(self, ctx:JavaParserModified.Star_35Context): pass # Exit a parse tree produced by JavaParserModified#star_35. def exitStar_35(self, ctx:JavaParserModified.Star_35Context): pass # Enter a parse tree produced by JavaParserModified#star_36. def enterStar_36(self, ctx:JavaParserModified.Star_36Context): pass # Exit a parse tree produced by JavaParserModified#star_36. def exitStar_36(self, ctx:JavaParserModified.Star_36Context): pass # Enter a parse tree produced by JavaParserModified#star_37. def enterStar_37(self, ctx:JavaParserModified.Star_37Context): pass # Exit a parse tree produced by JavaParserModified#star_37. def exitStar_37(self, ctx:JavaParserModified.Star_37Context): pass # Enter a parse tree produced by JavaParserModified#star_38. def enterStar_38(self, ctx:JavaParserModified.Star_38Context): pass # Exit a parse tree produced by JavaParserModified#star_38. def exitStar_38(self, ctx:JavaParserModified.Star_38Context): pass # Enter a parse tree produced by JavaParserModified#star_39. def enterStar_39(self, ctx:JavaParserModified.Star_39Context): pass # Exit a parse tree produced by JavaParserModified#star_39. def exitStar_39(self, ctx:JavaParserModified.Star_39Context): pass # Enter a parse tree produced by JavaParserModified#star_40. def enterStar_40(self, ctx:JavaParserModified.Star_40Context): pass # Exit a parse tree produced by JavaParserModified#star_40. def exitStar_40(self, ctx:JavaParserModified.Star_40Context): pass
35.018173
118
0.755993
7,586
71,297
6.999736
0.079752
0.05096
0.084934
0.152881
0.880546
0.691544
0.690829
0.556911
0.329962
0.032411
0
0.020977
0.186964
71,297
2,035
119
35.035381
0.895061
0.390311
0
0.496689
1
0
0.000023
0
0
0
0
0
0
1
0.496689
false
0.496689
0.005519
0
0.503311
0
0
0
0
null
0
0
0
1
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
0
0
0
4
79fb8860e938c069607aef67758b46ea3bb017c3
87
py
Python
routes/apps.py
berpress/django_train
90fefe553754316a04c85a550f0d44306e5d3e7b
[ "Apache-2.0" ]
null
null
null
routes/apps.py
berpress/django_train
90fefe553754316a04c85a550f0d44306e5d3e7b
[ "Apache-2.0" ]
6
2021-03-19T04:10:40.000Z
2021-09-22T19:07:30.000Z
routes/apps.py
berpress/django_train
90fefe553754316a04c85a550f0d44306e5d3e7b
[ "Apache-2.0" ]
null
null
null
from django.apps import AppConfig class RoutesConfig(AppConfig): name = "routes"
14.5
33
0.747126
10
87
6.5
0.9
0
0
0
0
0
0
0
0
0
0
0
0.172414
87
5
34
17.4
0.902778
0
0
0
0
0
0.068966
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
032044c1258a1667cdd37807d09d68065eeb6f5f
40
py
Python
celldeath/__init__.py
sgmiriuka/celldeath
0b5062117006fa1ca5170ce1397bfafab51a0143
[ "MIT" ]
2
2022-01-10T02:45:57.000Z
2022-01-10T08:25:41.000Z
celldeath/__init__.py
sgmiriuka/celldeath
0b5062117006fa1ca5170ce1397bfafab51a0143
[ "MIT" ]
null
null
null
celldeath/__init__.py
sgmiriuka/celldeath
0b5062117006fa1ca5170ce1397bfafab51a0143
[ "MIT" ]
1
2021-01-13T16:45:52.000Z
2021-01-13T16:45:52.000Z
# __INIT__.PY __version__='v1.0.0'
5
20
0.625
6
40
2.833333
0.833333
0
0
0
0
0
0
0
0
0
0
0.09375
0.2
40
7
21
5.714286
0.4375
0.275
0
0
0
0
0.24
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
03391e357623e8007403fdd87a45ad5ed00196c3
133
py
Python
app/load.py
zxftr45/rr_ml_workshop_19
29dce64fdcf3d15157470dc9d2a4fa7edca3bf4c
[ "MIT" ]
null
null
null
app/load.py
zxftr45/rr_ml_workshop_19
29dce64fdcf3d15157470dc9d2a4fa7edca3bf4c
[ "MIT" ]
6
2020-01-28T22:51:13.000Z
2021-06-08T20:07:25.000Z
app/load.py
zxftr45/rr_ml_workshop_19
29dce64fdcf3d15157470dc9d2a4fa7edca3bf4c
[ "MIT" ]
null
null
null
from app.services.image_recognition_service import ImageRecognitionService if __name__ == "__main__": ImageRecognitionService()
26.6
74
0.827068
12
133
8.333333
0.916667
0
0
0
0
0
0
0
0
0
0
0
0.105263
133
4
75
33.25
0.840336
0
0
0
0
0
0.06015
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
0362afc6bd9f5f4a73d8a8fba8b1538ef026bb7c
203
py
Python
demo_app/models.py
Papagoat/django-tinymce-demo
0aade5230d73878593fc553e5a29eeaee197ac38
[ "MIT" ]
null
null
null
demo_app/models.py
Papagoat/django-tinymce-demo
0aade5230d73878593fc553e5a29eeaee197ac38
[ "MIT" ]
null
null
null
demo_app/models.py
Papagoat/django-tinymce-demo
0aade5230d73878593fc553e5a29eeaee197ac38
[ "MIT" ]
null
null
null
from django.db import models from tinymce.models import HTMLField # Create your models here. class Demo(models.Model): demo_title = models.CharField(max_length=200) demo_textfield = HTMLField()
25.375
49
0.773399
28
203
5.5
0.678571
0
0
0
0
0
0
0
0
0
0
0.017341
0.147783
203
7
50
29
0.872832
0.118227
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.4
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
037659d0862e72baf660b1d7a47b9621f22abb19
277
py
Python
usr/share/pyshared/ajenti/usersync/base.py
lupyuen/RaspberryPiImage
664e8a74b4628d710feab5582ef59b344b9ffddd
[ "Apache-2.0" ]
7
2016-03-07T02:07:21.000Z
2022-01-21T02:22:41.000Z
usr/share/pyshared/ajenti/usersync/base.py
lupyuen/RaspberryPiImage
664e8a74b4628d710feab5582ef59b344b9ffddd
[ "Apache-2.0" ]
null
null
null
usr/share/pyshared/ajenti/usersync/base.py
lupyuen/RaspberryPiImage
664e8a74b4628d710feab5582ef59b344b9ffddd
[ "Apache-2.0" ]
8
2016-06-14T06:01:11.000Z
2020-04-22T09:21:44.000Z
from ajenti.api import * @interface class UserSyncProvider (BasePlugin): allows_renaming = False syncs_root = False def test(self): return False def check_password(self, username, password): return False def sync(self): pass
17.3125
49
0.646209
31
277
5.677419
0.709677
0.136364
0.159091
0
0
0
0
0
0
0
0
0
0.285199
277
16
50
17.3125
0.888889
0
0
0.181818
0
0
0
0
0
0
0
0
0
1
0.272727
false
0.181818
0.090909
0.181818
0.818182
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
0641e191af33ccf15af34f61bf76076eaf5a8ff7
1,167
py
Python
samples/data-serialization/ds-python-grpc/Notification.py
obecto/perper
ce25abde413bdb4c054a06d810939e98fac04d62
[ "MIT" ]
24
2019-11-11T13:26:12.000Z
2022-03-18T23:38:07.000Z
samples/data-serialization/ds-python-grpc/Notification.py
obecto/perper
ce25abde413bdb4c054a06d810939e98fac04d62
[ "MIT" ]
76
2020-01-25T16:48:37.000Z
2022-01-03T09:26:11.000Z
samples/data-serialization/ds-python-grpc/Notification.py
obecto/perper
ce25abde413bdb4c054a06d810939e98fac04d62
[ "MIT" ]
4
2020-06-25T13:21:37.000Z
2021-11-03T09:05:11.000Z
from collections import OrderedDict from pyignite import GenericObjectMeta from pyignite.datatypes import LongObject, IntObject, String, BoolObject class Notification(metaclass=GenericObjectMeta, schema=OrderedDict()): pass class StreamItemNotification(metaclass=GenericObjectMeta, schema=OrderedDict([ ('cache', String), ('ephemeral', BoolObject), ('key', LongObject), ('parameter', IntObject), ('stream', String) ])): pass class StreamTriggerNotification(metaclass=GenericObjectMeta, schema=OrderedDict([ ('delegate', String), ('stream', String) ])): pass class CallResultNotification(metaclass=GenericObjectMeta, schema=OrderedDict([ ('call', String), ('caller', String) ])): pass class CallTriggerNotification(metaclass=GenericObjectMeta, schema=OrderedDict([ ('call', String), ('delegate', String) ])): pass class CallData(metaclass=GenericObjectMeta, schema=OrderedDict([ ('agent', String), ('agentDelegate', String), ('delegate', String), ('callerAgentDelegate', String), ('caller', String), ('finished', BoolObject), ('localToData', BoolObject), ])): pass
25.369565
81
0.700943
94
1,167
8.702128
0.361702
0.190709
0.234719
0.315403
0.129584
0.129584
0
0
0
0
0
0
0.156812
1,167
46
82
25.369565
0.831301
0
0
0.447368
0
0
0.118151
0
0
0
0
0
0
1
0
true
0.157895
0.078947
0
0.236842
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
1
0
0
0
0
0
4
064e387455da1cfbdb8726be307aee2a6f566d8f
190
py
Python
Scripts/renderMonkey_autoFocus.py
ShawnFrueh/mecco_renderMonkey
1b80293c45c320fc1276092691e4798e17675977
[ "MIT" ]
null
null
null
Scripts/renderMonkey_autoFocus.py
ShawnFrueh/mecco_renderMonkey
1b80293c45c320fc1276092691e4798e17675977
[ "MIT" ]
null
null
null
Scripts/renderMonkey_autoFocus.py
ShawnFrueh/mecco_renderMonkey
1b80293c45c320fc1276092691e4798e17675977
[ "MIT" ]
null
null
null
#python import lx lx.eval("dialog.setup info") lx.eval("dialog.title {Autofocus}") lx.eval("dialog.msg {To autofocus, mouse over the area of focus and hit ctrl+F.}") lx.eval("dialog.open")
23.75
82
0.721053
33
190
4.151515
0.666667
0.175182
0.350365
0
0
0
0
0
0
0
0
0
0.110526
190
7
83
27.142857
0.810651
0.031579
0
0
0
0
0.672131
0
0
0
0
0
0
1
0
true
0
0.2
0
0.2
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
ebeb228af4e9066e2d060e5ed106332a49cfe98f
224
py
Python
models/__init__.py
AdrianGilGamboa/uposports
298ab77f4cebb42d85744d3bd77740f35bc0196c
[ "MIT" ]
null
null
null
models/__init__.py
AdrianGilGamboa/uposports
298ab77f4cebb42d85744d3bd77740f35bc0196c
[ "MIT" ]
null
null
null
models/__init__.py
AdrianGilGamboa/uposports
298ab77f4cebb42d85744d3bd77740f35bc0196c
[ "MIT" ]
1
2020-11-03T19:30:46.000Z
2020-11-03T19:30:46.000Z
# -*- coding: utf-8 -*- from . import abono from . import cliente from . import empleado from . import instalacion from . import material from . import pago from . import reserva from . import tarjeta from . import efectivo
20.363636
25
0.736607
30
224
5.5
0.466667
0.545455
0
0
0
0
0
0
0
0
0
0.005464
0.183036
224
11
26
20.363636
0.896175
0.09375
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
ebf01417aad536da61d87ee76d091ccb426fed91
194
py
Python
apps/s3/apps.py
drtnn/polyrobot__backend
65b45fc55e338e8a83296211d782b218d785400b
[ "Apache-2.0" ]
null
null
null
apps/s3/apps.py
drtnn/polyrobot__backend
65b45fc55e338e8a83296211d782b218d785400b
[ "Apache-2.0" ]
1
2022-02-08T18:33:28.000Z
2022-02-08T18:33:28.000Z
apps/s3/apps.py
drtnn/polyrobot__backend
65b45fc55e338e8a83296211d782b218d785400b
[ "Apache-2.0" ]
null
null
null
from django.apps import AppConfig class S3Config(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'apps.s3' def ready(self): import apps.s3.signals
19.4
56
0.701031
25
194
5.36
0.76
0.089552
0
0
0
0
0
0
0
0
0
0.019355
0.201031
194
9
57
21.555556
0.845161
0
0
0
0
0
0.185567
0.149485
0
0
0
0
0
1
0.166667
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
ebf840bddae1ed00c54a19f94ac4fe83e2f3f00f
80
py
Python
src/telliot/reporter_plugins/__init__.py
oraclown/pytelliot-test
0f44e5f6d0ef3fe132b2dc0b7fd64c71b10556b0
[ "MIT" ]
2
2021-09-07T15:14:48.000Z
2021-09-07T15:18:12.000Z
src/telliot/reporter_plugins/__init__.py
oraclown/pytelliot-test
0f44e5f6d0ef3fe132b2dc0b7fd64c71b10556b0
[ "MIT" ]
null
null
null
src/telliot/reporter_plugins/__init__.py
oraclown/pytelliot-test
0f44e5f6d0ef3fe132b2dc0b7fd64c71b10556b0
[ "MIT" ]
1
2021-09-02T20:53:58.000Z
2021-09-02T20:53:58.000Z
"""Subpackage for TellorDAO-supported Reporters used by the `telliot` CLI."""
26.666667
56
0.7375
10
80
5.9
1
0
0
0
0
0
0
0
0
0
0
0
0.1375
80
2
57
40
0.855072
0.8875
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
ebff6adb05cba645c2ef8708333a582d29675618
8,934
py
Python
jskit/encoders/models.py
bharat-saini-bcs/jaseci
c4263bd0323cfee0fc1d8e783681ca203d5a4981
[ "MIT" ]
null
null
null
jskit/encoders/models.py
bharat-saini-bcs/jaseci
c4263bd0323cfee0fc1d8e783681ca203d5a4981
[ "MIT" ]
null
null
null
jskit/encoders/models.py
bharat-saini-bcs/jaseci
c4263bd0323cfee0fc1d8e783681ca203d5a4981
[ "MIT" ]
null
null
null
import torch import torch.nn as nn from transformers import BertModel import torch.nn.functional as F def dot_attention(q, k, v, v_mask=None, dropout=None): attention_weights = torch.matmul(q, k.transpose(-1, -2)) if v_mask is not None: extended_v_mask = (1.0 - v_mask.unsqueeze(1)) * -100000.0 attention_weights += extended_v_mask attention_weights = F.softmax(attention_weights, -1) if dropout is not None: attention_weights = dropout(attention_weights) output = torch.matmul(attention_weights, v) return output class BiEncoderShared(nn.Module): def __init__(self, config,model_name, *inputs, **kwargs): super(BiEncoderShared, self).__init__() self.cont_cand_model =BertModel.from_pretrained(model_name) try: self.dropout = nn.Dropout(config.hidden_dropout_prob) self.context_fc = nn.Linear(config.hidden_size, 64) self.candidate_fc = nn.Linear(config.hidden_size, 64) except: self.dropout = nn.Dropout(config.dropout) self.context_fc = nn.Linear(config.dim, 64) self.candidate_fc = nn.Linear(config.dim, 64) def forward(self, context_data=None,candidate_data=None, labels=None,eval=False,get_embedding=False): ## only select the first candidate (whose lbl==1) if get_embedding and context_data is not None: context_input_ids,context_segment_ids, context_input_masks =context_data["context_input_ids"], context_data['context_segment_ids'], context_data["context_input_masks"] context_vec = self.cont_cand_model(context_input_ids.unsqueeze(0), context_input_masks.unsqueeze(0), context_segment_ids.unsqueeze(0))[-1] # [bs,dim] context_vec = self.context_fc(self.dropout(context_vec)) context_vec = F.normalize(context_vec, 2, -1) return context_vec elif get_embedding and candidate_data is not None: candidates_input_ids, candidates_segment_ids,candidates_input_masks =candidate_data["candidate_input_ids"],candidate_data['candidates_segment_ids'],candidate_data["candidate_input_masks"] res_cnt, seq_length = candidates_input_ids.shape batch_size=1 candidates_input_ids = candidates_input_ids.view(-1, seq_length) candidates_input_masks = candidates_input_masks.view(-1, seq_length) candidates_segment_ids = candidates_segment_ids.view(-1, seq_length) candidates_vec = self.cont_cand_model(candidates_input_ids, candidates_input_masks, candidates_segment_ids)[-1] # [bs,dim] candidates_vec = candidates_vec.view(batch_size, res_cnt, -1) candidates_vec = self.candidate_fc(self.dropout(candidates_vec)) candidates_vec = F.normalize(candidates_vec, 2, -1) return candidates_vec context_input_ids,context_segment_ids, context_input_masks =context_data["context_input_ids"], context_data['context_segment_ids'], context_data["context_input_masks"] candidates_input_ids, candidates_segment_ids,candidates_input_masks =candidate_data["candidate_input_ids"],candidate_data['candidates_segment_ids'],candidate_data["candidate_input_masks"] if labels is not None: candidates_input_ids = candidates_input_ids[:, 0, :].unsqueeze(1) candidates_segment_ids = candidates_segment_ids[:, 0, :].unsqueeze(1) candidates_input_masks = candidates_input_masks[:, 0, :].unsqueeze(1) if eval: context_vec = self.cont_cand_model(context_input_ids.unsqueeze(0), context_input_masks.unsqueeze(0), context_segment_ids.unsqueeze(0))[-1] # [bs,dim] res_cnt, seq_length = candidates_input_ids.shape batch_size=1 else: context_vec = self.cont_cand_model(context_input_ids, context_input_masks, context_segment_ids)[-1] batch_size, res_cnt, seq_length = candidates_input_ids.shape candidates_input_ids = candidates_input_ids.view(-1, seq_length) candidates_input_masks = candidates_input_masks.view(-1, seq_length) candidates_segment_ids = candidates_segment_ids.view(-1, seq_length) candidates_vec = self.cont_cand_model(candidates_input_ids, candidates_input_masks, candidates_segment_ids)[-1] # [bs,dim] candidates_vec = candidates_vec.view(batch_size, res_cnt, -1) context_vec = self.context_fc(self.dropout(context_vec)) context_vec = F.normalize(context_vec, 2, -1) candidates_vec = self.candidate_fc(self.dropout(candidates_vec)) candidates_vec = F.normalize(candidates_vec, 2, -1) if labels is not None: candidates_vec = candidates_vec.squeeze(1) dot_product = torch.matmul(context_vec, candidates_vec.t()) # [bs, bs] mask = torch.eye(context_input_ids.size(0)).to(context_input_ids.device) loss = F.log_softmax(dot_product * 5, dim=-1) * mask loss = (-loss.sum(dim=1)).mean() return loss else: context_vec = context_vec.unsqueeze(1) dot_product = torch.matmul(context_vec, candidates_vec.permute(0, 2, 1)) # take this as logits dot_product.squeeze_(1) cos_similarity = (dot_product + 1) / 2 return cos_similarity class PolyEncoderModelShared(nn.Module): def __init__(self, config, model_name, *inputs, **kwargs): super().__init__(config, model_name *inputs, **kwargs) self.cont_cand_model =BertModel.from_pretrained(model_name,config=config) self.vec_dim = 64 self.poly_m = kwargs['poly_m'] self.poly_code_embeddings = nn.Embedding(self.poly_m + 1, config.hidden_size) try: self.dropout = nn.Dropout(config.hidden_dropout_prob) self.context_fc = nn.Linear(config.hidden_size, self.vec_dim) self.candidate_fc = nn.Linear(config.hidden_size, self.vec_dim) except: self.dropout = nn.Dropout(config.dropout) self.context_fc = nn.Linear(config.dim, self.vec_dim) self.candidate_fc = nn.Linear(config.dim, self.vec_dim) def forward(self, context_data,candidate_data, labels=None): context_input_ids,context_segment_ids, context_input_masks =context_data["context_input_ids"], context_data['context_segment_ids'], context_data["context_input_masks"] candidates_input_ids, candidates_segment_ids,candidates_input_masks =candidate_data["candidate_input_ids"],candidate_data['candidates_segment_ids'],candidate_data["candidate_input_masks"] ## only select the first candidate (whose lbl==1) if labels is not None: candidates_input_ids = candidates_input_ids[:, 0, :].unsqueeze(1) candidates_segment_ids = candidates_segment_ids[:, 0, :].unsqueeze(1) candidates_input_masks = candidates_input_masks[:, 0, :].unsqueeze(1) batch_size, res_cnt, seq_length = candidates_input_ids.shape state_vecs = self.model(context_input_ids, context_input_masks, context_segment_ids)[0] # [bs, length, dim] poly_code_ids = torch.arange(self.poly_m, dtype=torch.long, device=context_input_ids.device) poly_code_ids += 1 poly_code_ids = poly_code_ids.unsqueeze(0).expand(batch_size, self.poly_m) poly_codes = self.poly_code_embeddings(poly_code_ids) context_vecs = dot_attention(poly_codes, state_vecs, state_vecs, context_input_masks, self.dropout) ## candidate encoder candidates_input_ids = candidates_input_ids.view(-1, seq_length) candidates_input_masks = candidates_input_masks.view(-1, seq_length) candidates_segment_ids = candidates_segment_ids.view(-1, seq_length) state_vecs = self.model(candidates_input_ids, candidates_input_masks, candidates_segment_ids)[0] # [bs, length, dim] poly_code_ids = torch.zeros(batch_size * res_cnt, 1, dtype=torch.long, device=context_input_ids.device) poly_codes = self.poly_code_embeddings(poly_code_ids) candidates_vec = dot_attention(poly_codes, state_vecs, state_vecs, candidates_input_masks, self.dropout) candidates_vec = candidates_vec.view(batch_size, res_cnt, -1) ##Norm here first, which is equivalent to getting context_vec and candidate_vec in some way context_vecs = self.context_fc(self.dropout(context_vecs)) context_vecs = F.normalize(context_vecs, 2, -1) # [bs, m, dim] candidates_vec = self.candidate_fc(self.dropout(candidates_vec)) candidates_vec = F.normalize(candidates_vec, 2, -1) ## poly final context vector aggregation if labels is not None: candidates_vec = candidates_vec.view(1, batch_size, -1).expand(batch_size, batch_size, self.vec_dim) final_context_vec = dot_attention(candidates_vec, context_vecs, context_vecs, None, self.dropout) final_context_vec = F.normalize(final_context_vec, 2, -1) # [bs, res_cnt, dim], res_cnt==bs when training dot_product = torch.sum(final_context_vec * candidates_vec, -1) # [bs, res_cnt], res_cnt==bs when training if labels is not None: mask = torch.eye(context_input_ids.size(0)).to(context_input_ids.device) loss = F.log_softmax(dot_product * 5, dim=-1) * mask loss = (-loss.sum(dim=1)).mean() return loss else: cos_similarity = (dot_product + 1) / 2 return cos_similarity
54.145455
195
0.748825
1,278
8,934
4.875587
0.104069
0.050072
0.057776
0.04943
0.771465
0.74675
0.739689
0.732146
0.711282
0.594768
0
0.013528
0.14775
8,934
165
196
54.145455
0.804833
0.049138
0
0.567164
0
0
0.042134
0.015225
0
0
0
0
0
1
0.037313
false
0
0.029851
0
0.134328
0
0
0
0
null
0
0
0
0
1
1
1
1
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
2313f06b791677cf9d230847c6acd7b9e11c7c9b
15
py
Python
src/charter/__init__.py
paw-lu/charter
ad36fbc1589b0e77af102b2b92873b7b412ef4eb
[ "MIT" ]
null
null
null
src/charter/__init__.py
paw-lu/charter
ad36fbc1589b0e77af102b2b92873b7b412ef4eb
[ "MIT" ]
null
null
null
src/charter/__init__.py
paw-lu/charter
ad36fbc1589b0e77af102b2b92873b7b412ef4eb
[ "MIT" ]
null
null
null
"""Charter."""
7.5
14
0.466667
1
15
7
1
0
0
0
0
0
0
0
0
0
0
0
0.066667
15
1
15
15
0.5
0.533333
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
231828544152223d5c0082934e6bb3ba178e118b
153
py
Python
models/__init__.py
hmartelb/speech-denoising
78424200d16215c100d9eb47e73dfc67845a0fbf
[ "MIT" ]
4
2021-06-20T10:31:50.000Z
2022-03-15T01:19:14.000Z
models/__init__.py
hmartelb/speech-denoising
78424200d16215c100d9eb47e73dfc67845a0fbf
[ "MIT" ]
null
null
null
models/__init__.py
hmartelb/speech-denoising
78424200d16215c100d9eb47e73dfc67845a0fbf
[ "MIT" ]
4
2021-08-14T19:06:13.000Z
2022-02-25T05:09:35.000Z
# from .DWaveNet import DWaveNet from .UNet import UNet from .UNetDNP import UNetDNP from .TransUNet import TransUNet # from .Sepformer import Sepformer
25.5
34
0.810458
20
153
6.2
0.35
0
0
0
0
0
0
0
0
0
0
0
0.143791
153
5
35
30.6
0.946565
0.411765
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
23432934a599455bca0cca3050a310f0a6906fcb
48
py
Python
code/abc099_a_04.py
KoyanagiHitoshi/AtCoder
731892543769b5df15254e1f32b756190378d292
[ "MIT" ]
3
2019-08-16T16:55:48.000Z
2021-04-11T10:21:40.000Z
code/abc099_a_04.py
KoyanagiHitoshi/AtCoder
731892543769b5df15254e1f32b756190378d292
[ "MIT" ]
null
null
null
code/abc099_a_04.py
KoyanagiHitoshi/AtCoder
731892543769b5df15254e1f32b756190378d292
[ "MIT" ]
null
null
null
n=int(input()) print("ABC" if n<1000 else "ABD")
24
33
0.645833
10
48
3.1
0.9
0
0
0
0
0
0
0
0
0
0
0.093023
0.104167
48
2
33
24
0.627907
0
0
0
0
0
0.122449
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
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
0
0
0
0
0
1
0
4
2358027df1a7aa24c833e401869f365ea0b0cea3
168
py
Python
app/get_keywords.py
sy-app/ll-now-post-tweet
cfde28735a14f40d52b5d670169f6a834e558f6e
[ "MIT" ]
3
2021-08-19T11:32:16.000Z
2021-12-14T01:57:31.000Z
app/get_keywords.py
sy-app/ll-now-generate-image
4e48f22a5456f1b005f0ae22c5e1a592a0f0a6bf
[ "MIT" ]
null
null
null
app/get_keywords.py
sy-app/ll-now-generate-image
4e48f22a5456f1b005f0ae22c5e1a592a0f0a6bf
[ "MIT" ]
null
null
null
def get_keywords(tweets_features): query = tweets_features['search_metadata']['query'] keywords = query.split(' -filter')[0].split(' OR ') return keywords
28
55
0.690476
20
168
5.6
0.65
0.25
0
0
0
0
0
0
0
0
0
0.007042
0.154762
168
5
56
33.6
0.78169
0
0
0
0
0
0.190476
0
0
0
0
0
0
1
0.25
false
0
0
0
0.5
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
4
23824a2155ca9120ee5b3b4c998fbcfcd139060c
96
py
Python
.definitions.py
nebiolabs/tasmanian
d0df15287617c03ecda6ad31b75680dd14e303ea
[ "Xnet", "X11" ]
1
2020-04-08T09:52:14.000Z
2020-04-08T09:52:14.000Z
.definitions.py
nebiolabs/tasmanian
d0df15287617c03ecda6ad31b75680dd14e303ea
[ "Xnet", "X11" ]
3
2021-02-19T15:46:01.000Z
2021-06-22T18:45:11.000Z
.definitions.py
nebiolabs/tasmanian-mismatch
65baf0d777f01b8903247775eec4bf7b17fe60d6
[ "Xnet", "X11" ]
null
null
null
#!/bin/python import os ROOT_DIR = os.path.dirname(os.path.abspath(__file__)) print(ROOT_DIR)
13.714286
53
0.75
16
96
4.125
0.6875
0.212121
0
0
0
0
0
0
0
0
0
0
0.09375
96
6
54
16
0.758621
0.125
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0.333333
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
88d6e9d1bd9c6c1d13a63a95048c2e86b97457ad
3,709
py
Python
serial_pc_control/cmds_mouse.py
carlosperate/python-serial-pc-control
1389dac2ad33255dbd0edad565ebc498dc515a44
[ "MIT" ]
6
2021-05-04T17:48:34.000Z
2022-03-01T01:44:05.000Z
serial_pc_control/cmds_mouse.py
carlosperate/python-serial-pc-control
1389dac2ad33255dbd0edad565ebc498dc515a44
[ "MIT" ]
2
2021-12-31T02:16:47.000Z
2022-03-01T17:54:04.000Z
serial_pc_control/cmds_mouse.py
carlosperate/serial-pc-control
7c9c18bcbf61773d9afefd4677c14cd4e350ed8b
[ "MIT" ]
2
2021-02-05T17:51:57.000Z
2021-12-23T10:58:44.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright (c) 2020 Carlos Pereira Atencio # SPDX-License-Identifier: MIT """Functions to run mouse commands on the host PC.""" import pyautogui # type: ignore def init() -> None: """Configure pyautogui for smooth mouse movement.""" pyautogui.FAILSAFE = False pyautogui.MINIMUM_DURATION = 0.0 pyautogui.MINIMUM_SLEEP = 0.0 pyautogui.PAUSE = 0.0 def move_up(pixels: str) -> None: """Move the mouse up a number of pixels. :param pixels: Number of pixels to move the mouse pointer. """ pyautogui.moveRel( xOffset=int(pixels), yOffset=0, duration=0.0, pause=None, _pause=False ) def move_down(pixels: str) -> None: """Move the mouse down a number of pixels. :param pixels: Number of pixels to move the mouse pointer. """ pixels *= -1 pyautogui.moveRel( xOffset=int(pixels), yOffset=0, duration=0.0, pause=None, _pause=False ) def move_left(pixels: str) -> None: """Move the mouse left a number of pixels. :param pixels: Number of pixels to move the mouse pointer. """ pixels *= -1 pyautogui.moveRel( xOffset=0, yOffset=int(pixels), duration=0.0, pause=None, _pause=False ) def move_right(pixels: str) -> None: """Move the mouse right a number of pixels. :param pixels: Number of pixels to move the mouse pointer. """ pyautogui.moveRel( xOffset=0, yOffset=int(pixels), duration=0.0, pause=None, _pause=False ) def move_vertical(pixels: str) -> None: """Move the mouse vertically a number of pixels. :param pixels: Number of pixels to move the mouse pointer, a positive number will move up and negative down. """ pyautogui.moveRel( xOffset=0, yOffset=int(pixels), duration=0.0, pause=None, _pause=False ) def move_horizontal(pixels: str) -> None: """Move the mouse horizontally a number of pixels. :param pixels: Number of pixels to move the mouse pointer, a positive number will move right and negative left. """ pyautogui.moveRel( xOffset=int(pixels), yOffset=0, duration=0.0, pause=None, _pause=False ) def move_relative(pixels_x_y: str) -> None: """Move the mouse horizontally and vertically a number of pixels. :param pixels: Number of pixels to move the mouse pointer, x and y values separated by a space. """ x_and_y = pixels_x_y.split(" ") x = int(x_and_y[0]) y = int(x_and_y[1]) pyautogui.moveRel( xOffset=x, yOffset=y, duration=0.0, pause=None, _pause=False ) def left_click(throw_away: str = "") -> None: """Perform a left click action. :param throw_away: The command parser always sends a parameter, for this command nothing is expected, so it will throw an error if something is sent. """ if throw_away: raise ValueError("The left click command does not expect a value.") pyautogui.click(clicks=1, interval=0.0, button="left") def right_click(throw_away: str = "") -> None: """Perform a right click action. :param throw_away: The command parser always sends a parameter, for this command nothing is expected, so it will throw an error if something is sent. """ if throw_away: raise ValueError("The right click command does not expect a value.") pyautogui.click(clicks=1, interval=0.0, button="right") def scroll(steps: str) -> None: """Move the mouse horizontally a number of pixels. :param steps: Number of pixels to move the mouse pointer, a positive number will move right and negative left. """ pyautogui.scroll(steps, pause=None, _pause=False)
29.436508
78
0.661903
535
3,709
4.523364
0.203738
0.046281
0.079339
0.046281
0.767769
0.767769
0.700826
0.67686
0.663636
0.663636
0
0.014747
0.232138
3,709
125
79
29.672
0.834972
0.445133
0
0.346939
0
0
0.05612
0
0
0
0
0
0
1
0.22449
false
0
0.020408
0
0.244898
0
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
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
4