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
428e68587c52b7b6849378562e2b96528915612f
575
py
Python
office365/directory/application.py
nsmcan/Office365-REST-Python-Client
e5e00cc3604c1ed8cc629ef6b948887614ecb204
[ "MIT" ]
null
null
null
office365/directory/application.py
nsmcan/Office365-REST-Python-Client
e5e00cc3604c1ed8cc629ef6b948887614ecb204
[ "MIT" ]
null
null
null
office365/directory/application.py
nsmcan/Office365-REST-Python-Client
e5e00cc3604c1ed8cc629ef6b948887614ecb204
[ "MIT" ]
null
null
null
from office365.directory.directoryObject import DirectoryObject class Application(DirectoryObject): """ Represents an application. Any application that outsources authentication to Azure Active Directory (Azure AD) must be registered in a directory. Application registration involves telling Azure AD about your application, including the URL where it's located, the URL to send replies after authentication, the URI to identify your application, and more. For more information, see Basics of Registering an Application in Azure AD """ pass
44.230769
114
0.77913
73
575
6.136986
0.657534
0.046875
0
0
0
0
0
0
0
0
0
0.006383
0.182609
575
12
115
47.916667
0.946809
0.742609
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.333333
0.333333
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
0
1
1
1
0
1
0
0
4
429efc7d27fd578da849a79676ea8c38e9030f2a
88
py
Python
hello/apps.py
HarshalSawant1234/python-sample-web
cb0ca64498ca0433dd06ffae2656e487b4573103
[ "MIT" ]
null
null
null
hello/apps.py
HarshalSawant1234/python-sample-web
cb0ca64498ca0433dd06ffae2656e487b4573103
[ "MIT" ]
null
null
null
hello/apps.py
HarshalSawant1234/python-sample-web
cb0ca64498ca0433dd06ffae2656e487b4573103
[ "MIT" ]
null
null
null
from django.apps import AppConfig class HelloConfig(AppConfig): name = 'hello'
17.6
34
0.715909
10
88
6.3
0.9
0
0
0
0
0
0
0
0
0
0
0
0.204545
88
4
35
22
0.9
0
0
0
0
0
0.059524
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
42aa95f7e120b7a2f14281a6a18515a52fe92642
6,189
py
Python
Final Project Material/GodPlan.py
Iceman1590/AT-TVectorAirgig
7a3fb03ba9c2dd53108d6e8164d36938e56187e1
[ "Apache-2.0" ]
null
null
null
Final Project Material/GodPlan.py
Iceman1590/AT-TVectorAirgig
7a3fb03ba9c2dd53108d6e8164d36938e56187e1
[ "Apache-2.0" ]
null
null
null
Final Project Material/GodPlan.py
Iceman1590/AT-TVectorAirgig
7a3fb03ba9c2dd53108d6e8164d36938e56187e1
[ "Apache-2.0" ]
null
null
null
#GodsPlan - Isaac's Program that has the Vector go through course twice import anki_vector import time from anki_vector.util import Pose, degrees, Speed def main(): args = anki_vector.util.parse_command_args() with anki_vector.Robot(args.serial, show_3d_viewer=True, enable_nav_map_feed=True) as robot: x = 0.0 y = 0.0 a = 0.0 i = 0 objectx = [0.0,0.0,0.0,0.0] #empty array for x coordinates objecty = [0.0,0.0,0.0,0.0] #empty array for y coordinates robot.behavior.say_text("Initializing") robot.behavior.go_to_pose(Pose(0, 0, 0, angle_z=degrees(0)), relative_to_robot=False) #commands Vector to proceed to an initial point of (0,0,0) if (x == 0 and y == 0): #if the current position is (0,0) while(x != 1000 and y == 0): #while Vector is not at position (1000,0) latest_nav_map = robot.nav_map.latest_nav_map #represents Vector's proximity map content = latest_nav_map.get_content(x+50,y) #Vector evaluates position 50mm in front of his current one print(f"Sampling point at {x+50.0}, {y} and found content: {content}") if(content > 2): #if an object is detected robot.behavior.say_text("Object detected") print("saving object position") objectx[i] = x + 50.0 #x position of object is stored into position array objecty[i] = y #y position of object is stored into position array i = i + 1 print(objectx) print(objecty) robot.behavior.go_to_pose(Pose(0, 100, 0, angle_z=degrees(0)), relative_to_robot=True) #Vector proceeds 100mm to his left robot.behavior.go_to_pose(Pose(200, 0, 0, angle_z=degrees(0)), relative_to_robot=True) #Moves 200mm forward robot.behavior.go_to_pose(Pose(0, -100, 0, angle_z=degrees(0)), relative_to_robot=True) #Moves 100mm right x = x + 200 #accounts for Vector's position change upon object detection and allows him to continue x = x + 50 #Vector moves 50mm forward robot.behavior.go_to_pose(Pose(x, y, 0, angle_z=degrees(0)), relative_to_robot=False) if (x == 1000 and y == 0): #process is repeated once the corners of the rectangles are reached while(x == 1000 and y != 450): latest_nav_map = robot.nav_map.latest_nav_map content = latest_nav_map.get_content(x,y+50) print(f"Sampling point at {x}, {y+50} and found content: {content}") if(content > 2): robot.behavior.say_text("Object detected") print("saving object position") objectx[i] = x objecty[i] = y + 50.0 i = i + 1 print(objectx) print(objecty) robot.behavior.go_to_pose(Pose(-100, 0, 0, angle_z=degrees(0)), relative_to_robot=True) robot.behavior.go_to_pose(Pose(0, 200, 0, angle_z=degrees(0)), relative_to_robot=True) robot.behavior.go_to_pose(Pose(100, 0, 0, angle_z=degrees(0)), relative_to_robot=True) y = y + 200 y = y + 50 robot.behavior.go_to_pose(Pose(x, y, 0, angle_z=degrees(90)), relative_to_robot=False) if (x == 1000 and y == 450): while(x != 0 and y == 450): latest_nav_map = robot.nav_map.latest_nav_map content = latest_nav_map.get_content(x-50,y) print(f"Sampling point at {x-50}, {y} and found content: {content}") if(content > 2): robot.behavior.say_text("Object detected") print("saving object position") objectx[i] = x - 50.0 objecty[i] = y i = i + 1 print(objectx) print(objecty) robot.behavior.go_to_pose(Pose(0, -100, 0, angle_z=degrees(0)), relative_to_robot=True) robot.behavior.go_to_pose(Pose(200, 0, 0, angle_z=degrees(0)), relative_to_robot=True) robot.behavior.go_to_pose(Pose(0, 100, 0, angle_z=degrees(0)), relative_to_robot=True) x = x - 200 x = x - 50 robot.behavior.go_to_pose(Pose(x, y, 0, angle_z=degrees(180)), relative_to_robot=False) if (x == 0 and y == 450): while(x == 0 and y != 0): latest_nav_map = robot.nav_map.latest_nav_map content = latest_nav_map.get_content(x,y-50) print(f"Sampling point at {x}, {y-50} and found content: {content}") if(content > 2): robot.behavior.say_text("Object detected") print("saving object position") objectx[i] = x objecty[i] = y - 50.0 i = i + 1 print(objectx) print(objecty) robot.behavior.go_to_pose(Pose(100, 0, 0, angle_z=degrees(0)), relative_to_robot=True) robot.behavior.go_to_pose(Pose(0, -200, 0, angle_z=degrees(0)), relative_to_robot=True) robot.behavior.go_to_pose(Pose(-100, 0, 0, angle_z=degrees(0)), relative_to_robot=True) y = y - 200 y = y - 50 robot.behavior.go_to_pose(Pose(x, y, 0, angle_z=degrees(-90)), relative_to_robot=False) fixed_object = robot.world.create_custom_fixed_object(Pose(objectx[0], objecty[0], 0, angle_z=degrees(90)), 50, 50, 50, relative_to_robot=False) #Vector extrapolates cubes from the position arrays onto the virtual environment fixed_object = robot.world.create_custom_fixed_object(Pose(objectx[1], objecty[1], 0, angle_z=degrees(90)), 50, 50, 50, relative_to_robot=False) fixed_object = robot.world.create_custom_fixed_object(Pose(objectx[2], objecty[2], 0, angle_z=degrees(90)), 50, 50, 50, relative_to_robot=False) fixed_object = robot.world.create_custom_fixed_object(Pose(objectx[3], objecty[3], 0, angle_z=degrees(90)), 50, 50, 50, relative_to_robot=False) if fixed_object: print("fixed custom objects created successfully") if (x == 0 and y == 0): #Vector proceeds along course once again while(x != 1000 and y == 0): x = x + 100 robot.behavior.go_to_pose(Pose(x, y, 0, angle_z=degrees(0)), relative_to_robot=False) if (x == 1000 and y == 0): while(x == 1000 and y != 450): y = y + 75 robot.behavior.go_to_pose(Pose(x, y, 0, angle_z=degrees(90)), relative_to_robot=False) if (x == 1000 and y == 450): while(x != 0 and y == 450): x = x - 100 robot.behavior.go_to_pose(Pose(x, y, 0, angle_z=degrees(180)), relative_to_robot=False) if (x == 0 and y == 450): while(x == 0 and y != 0): y = y - 75 robot.behavior.go_to_pose(Pose(x, y, 0, angle_z=degrees(-90)), relative_to_robot=False) if __name__ == "__main__": main()
50.729508
228
0.670545
1,053
6,189
3.760684
0.132004
0.014646
0.044192
0.088384
0.764899
0.764141
0.743687
0.721465
0.692172
0.683081
0
0.066345
0.196316
6,189
122
229
50.729508
0.729795
0.135078
0
0.578947
0
0
0.084964
0
0
0
0
0
0
1
0.008772
false
0
0.026316
0
0.035088
0.149123
0
0
0
null
0
0
0
0
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
35e91a46b081b2e1fa8455526447b677573506f2
238
py
Python
exit/views.py
michaelfeigen/portal
fafde88e02ef3ed7aa29a2dfea209d928b5e58d6
[ "MIT" ]
2
2018-08-01T19:50:40.000Z
2018-08-01T20:26:53.000Z
exit/views.py
michaelfeigen/portal
fafde88e02ef3ed7aa29a2dfea209d928b5e58d6
[ "MIT" ]
null
null
null
exit/views.py
michaelfeigen/portal
fafde88e02ef3ed7aa29a2dfea209d928b5e58d6
[ "MIT" ]
null
null
null
from django.shortcuts import render, render_to_response from django.http import HttpResponse from django.views import generic, View class IndexView(View): def get(self, request): return render_to_response('exit/exit.html')
23.8
56
0.773109
33
238
5.454545
0.636364
0.166667
0.177778
0
0
0
0
0
0
0
0
0
0.151261
238
9
57
26.444444
0.891089
0
0
0
0
0
0.061135
0
0
0
0
0
0
1
0.166667
false
0
0.5
0.166667
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
0
0
1
1
1
0
0
4
35f6038f77bcf4134656c51836684e205779ffb7
92
py
Python
djs_playground/apps.py
akarca/django-summernote
35e91fec097f156988a9c3f50929d8e348908f97
[ "MIT" ]
869
2015-01-09T02:57:19.000Z
2022-03-24T13:18:57.000Z
djs_playground/apps.py
akarca/django-summernote
35e91fec097f156988a9c3f50929d8e348908f97
[ "MIT" ]
402
2015-01-13T21:54:20.000Z
2022-03-15T13:58:43.000Z
djs_playground/apps.py
akarca/django-summernote
35e91fec097f156988a9c3f50929d8e348908f97
[ "MIT" ]
286
2015-01-21T07:34:45.000Z
2022-03-24T17:08:21.000Z
from django.apps import AppConfig class DjsConfig(AppConfig): name = 'djs_playground'
15.333333
33
0.76087
11
92
6.272727
0.909091
0
0
0
0
0
0
0
0
0
0
0
0.163043
92
5
34
18.4
0.896104
0
0
0
0
0
0.152174
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
c4406c83beb567708edf214a8aa1320e71fb3216
68
py
Python
voxel_globe/channel_test/__init__.py
ngageoint/voxel-globe
91f386de652b704942165889c10468b2c4cf4eec
[ "MIT" ]
28
2015-07-27T23:57:24.000Z
2020-04-05T15:10:52.000Z
voxel_globe/channel_test/__init__.py
VisionSystemsInc/voxel_globe
6eb3fca5586726428e9d914f7b730ca164c64a52
[ "MIT" ]
50
2016-02-11T15:50:22.000Z
2016-10-27T22:38:27.000Z
voxel_globe/channel_test/__init__.py
ngageoint/voxel-globe
91f386de652b704942165889c10468b2c4cf4eec
[ "MIT" ]
8
2015-07-27T19:22:03.000Z
2021-01-04T09:44:48.000Z
default_app_config='voxel_globe.channel_test.apps.ChannelTestConfig'
68
68
0.911765
9
68
6.444444
1
0
0
0
0
0
0
0
0
0
0
0
0
68
1
68
68
0.852941
0
0
0
0
0
0.681159
0.681159
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
c45f8f363a42b9de4a236cdb6ec53b8078316e48
257
py
Python
Optimizers/Gradient-Descent/python/GD/__init__.py
dkaramit/OpSDE
c20bfbc17b905408aebcc8e32e6265f32738a285
[ "MIT" ]
null
null
null
Optimizers/Gradient-Descent/python/GD/__init__.py
dkaramit/OpSDE
c20bfbc17b905408aebcc8e32e6265f32738a285
[ "MIT" ]
null
null
null
Optimizers/Gradient-Descent/python/GD/__init__.py
dkaramit/OpSDE
c20bfbc17b905408aebcc8e32e6265f32738a285
[ "MIT" ]
1
2021-12-15T02:03:01.000Z
2021-12-15T02:03:01.000Z
from .GradientDescent import GradientDescent, modelBase, lossFunc from .VanillaGD import VanillaGD from .AdaDeltaGD import AdaDeltaGD from .RMSpropGD import RMSpropGD from .AdamGD import AdamGD from .AdaMaxGD import AdaMaxGD from .NAdamGD import NAdamGD
25.7
66
0.836576
30
257
7.166667
0.366667
0
0
0
0
0
0
0
0
0
0
0
0.128405
257
9
67
28.555556
0.959821
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
4
c484683627e52c32c60e425228aec59555d8b65a
14,246
py
Python
tests/aiohttp/test_aiohttp_simple_api.py
m-nikhil/connexion
5789a42ddf4791530c7f788fad9a7dc753b5bb73
[ "Apache-2.0" ]
null
null
null
tests/aiohttp/test_aiohttp_simple_api.py
m-nikhil/connexion
5789a42ddf4791530c7f788fad9a7dc753b5bb73
[ "Apache-2.0" ]
null
null
null
tests/aiohttp/test_aiohttp_simple_api.py
m-nikhil/connexion
5789a42ddf4791530c7f788fad9a7dc753b5bb73
[ "Apache-2.0" ]
null
null
null
import sys import pytest import yaml from connexion import AioHttpApp from conftest import TEST_FOLDER try: import ujson as json except ImportError: import json @pytest.fixture def aiohttp_app(aiohttp_api_spec_dir): app = AioHttpApp(__name__, port=5001, specification_dir=aiohttp_api_spec_dir, debug=True) options = {"validate_responses": True} app.add_api('swagger_simple.yaml', validate_responses=True, pass_context_arg_name='request_ctx', options=options) return app async def test_app(aiohttp_app, aiohttp_client): # Create the app and run the test_app testcase below. app_client = await aiohttp_client(aiohttp_app.app) get_bye = await app_client.get('/v1.0/bye/jsantos') assert get_bye.status == 200 assert (await get_bye.read()) == b'Goodbye jsantos' async def test_app_with_relative_path(aiohttp_api_spec_dir, aiohttp_client): # Create the app with a relative path and run the test_app testcase below. app = AioHttpApp(__name__, port=5001, specification_dir='..' / aiohttp_api_spec_dir.relative_to(TEST_FOLDER), debug=True) app.add_api('swagger_simple.yaml') app_client = await aiohttp_client(app.app) get_bye = await app_client.get('/v1.0/bye/jsantos') assert get_bye.status == 200 assert (await get_bye.read()) == b'Goodbye jsantos' async def test_swagger_json(aiohttp_api_spec_dir, aiohttp_client): """ Verify the swagger.json file is returned for default setting passed to app. """ app = AioHttpApp(__name__, port=5001, specification_dir=aiohttp_api_spec_dir, debug=True) api = app.add_api('swagger_simple.yaml') app_client = await aiohttp_client(app.app) swagger_json = await app_client.get('/v1.0/swagger.json') assert swagger_json.status == 200 json_ = await swagger_json.json() assert api.specification.raw == json_ async def test_swagger_yaml(aiohttp_api_spec_dir, aiohttp_client): """ Verify the swagger.yaml file is returned for default setting passed to app. """ app = AioHttpApp(__name__, port=5001, specification_dir=aiohttp_api_spec_dir, debug=True) api = app.add_api('swagger_simple.yaml') app_client = await aiohttp_client(app.app) spec_response = await app_client.get('/v1.0/swagger.yaml') data_ = await spec_response.read() assert spec_response.status == 200 assert api.specification.raw == yaml.load(data_, yaml.FullLoader) async def test_no_swagger_json(aiohttp_api_spec_dir, aiohttp_client): """ Verify the swagger.json file is not returned when set to False when creating app. """ options = {"swagger_json": False} app = AioHttpApp(__name__, port=5001, specification_dir=aiohttp_api_spec_dir, options=options, debug=True) app.add_api('swagger_simple.yaml') app_client = await aiohttp_client(app.app) swagger_json = await app_client.get('/v1.0/swagger.json') # type: flask.Response assert swagger_json.status == 404 async def test_no_swagger_yaml(aiohttp_api_spec_dir, aiohttp_client): """ Verify the swagger.json file is not returned when set to False when creating app. """ options = {"swagger_json": False} app = AioHttpApp(__name__, port=5001, specification_dir=aiohttp_api_spec_dir, options=options, debug=True) app.add_api('swagger_simple.yaml') app_client = await aiohttp_client(app.app) spec_response = await app_client.get('/v1.0/swagger.yaml') # type: flask.Response assert spec_response.status == 404 async def test_swagger_ui(aiohttp_api_spec_dir, aiohttp_client): app = AioHttpApp(__name__, port=5001, specification_dir=aiohttp_api_spec_dir, debug=True) app.add_api('swagger_simple.yaml') app_client = await aiohttp_client(app.app) swagger_ui = await app_client.get('/v1.0/ui') assert swagger_ui.status == 200 assert swagger_ui.url.path == '/v1.0/ui/' assert b'url = "/v1.0/swagger.json"' in (await swagger_ui.read()) swagger_ui = await app_client.get('/v1.0/ui/') assert swagger_ui.status == 200 assert b'url = "/v1.0/swagger.json"' in (await swagger_ui.read()) async def test_swagger_ui_config_json(aiohttp_api_spec_dir, aiohttp_client): """ Verify the swagger-ui-config.json file is returned for swagger_ui_config option passed to app. """ swagger_ui_config = {"displayOperationId": True} options = {"swagger_ui_config": swagger_ui_config} app = AioHttpApp(__name__, port=5001, specification_dir=aiohttp_api_spec_dir, options=options, debug=True) api = app.add_api('swagger_simple.yaml') app_client = await aiohttp_client(app.app) swagger_ui_config_json = await app_client.get('/v1.0/ui/swagger-ui-config.json') json_ = await swagger_ui_config_json.read() assert swagger_ui_config_json.status == 200 assert swagger_ui_config == json.loads(json_) async def test_no_swagger_ui_config_json(aiohttp_api_spec_dir, aiohttp_client): """ Verify the swagger-ui-config.json file is not returned when the swagger_ui_config option not passed to app. """ app = AioHttpApp(__name__, port=5001, specification_dir=aiohttp_api_spec_dir, debug=True) app.add_api('swagger_simple.yaml') app_client = await aiohttp_client(app.app) swagger_ui_config_json = await app_client.get('/v1.0/ui/swagger-ui-config.json') assert swagger_ui_config_json.status == 404 async def test_swagger_ui_index(aiohttp_api_spec_dir, aiohttp_client): app = AioHttpApp(__name__, port=5001, specification_dir=aiohttp_api_spec_dir, debug=True) app.add_api('openapi_secure.yaml') app_client = await aiohttp_client(app.app) swagger_ui = await app_client.get('/v1.0/ui/index.html') assert swagger_ui.status == 200 assert b'url: "/v1.0/openapi.json"' in (await swagger_ui.read()) assert b'swagger-ui-config.json' not in (await swagger_ui.read()) async def test_swagger_ui_index_with_config(aiohttp_api_spec_dir, aiohttp_client): swagger_ui_config = {"displayOperationId": True} options = {"swagger_ui_config": swagger_ui_config} app = AioHttpApp(__name__, port=5001, specification_dir=aiohttp_api_spec_dir, options=options, debug=True) app.add_api('openapi_secure.yaml') app_client = await aiohttp_client(app.app) swagger_ui = await app_client.get('/v1.0/ui/index.html') assert swagger_ui.status == 200 assert b'configUrl: "swagger-ui-config.json"' in (await swagger_ui.read()) async def test_pythonic_path_param(aiohttp_api_spec_dir, aiohttp_client): app = AioHttpApp(__name__, port=5001, specification_dir=aiohttp_api_spec_dir, debug=True) app.add_api('openapi_simple.yaml', pythonic_params=True) app_client = await aiohttp_client(app.app) pythonic = await app_client.get('/v1.0/pythonic/100') assert pythonic.status == 200 j = await pythonic.json() assert j['id_'] == 100 async def test_cookie_param(aiohttp_api_spec_dir, aiohttp_client): app = AioHttpApp(__name__, port=5001, specification_dir=aiohttp_api_spec_dir, debug=True) app.add_api('openapi_simple.yaml', pass_context_arg_name="request") app_client = await aiohttp_client(app.app) response = await app_client.get('/v1.0/test-cookie-param', headers={"Cookie": "test_cookie=hello"}) assert response.status == 200 j = await response.json() assert j['cookie_value'] == "hello" async def test_swagger_ui_static(aiohttp_api_spec_dir, aiohttp_client): app = AioHttpApp(__name__, port=5001, specification_dir=aiohttp_api_spec_dir, debug=True) app.add_api('swagger_simple.yaml') app_client = await aiohttp_client(app.app) swagger_ui = await app_client.get('/v1.0/ui/lib/swagger-oauth.js') assert swagger_ui.status == 200 app_client = await aiohttp_client(app.app) swagger_ui = await app_client.get('/v1.0/ui/swagger-ui.min.js') assert swagger_ui.status == 200 async def test_no_swagger_ui(aiohttp_api_spec_dir, aiohttp_client): options = {"swagger_ui": False} app = AioHttpApp(__name__, port=5001, specification_dir=aiohttp_api_spec_dir, options=options, debug=True) app.add_api('swagger_simple.yaml') app_client = await aiohttp_client(app.app) swagger_ui = await app_client.get('/v1.0/ui/') assert swagger_ui.status == 404 app2 = AioHttpApp(__name__, port=5001, specification_dir=aiohttp_api_spec_dir, debug=True) options = {"swagger_ui": False} app2.add_api('swagger_simple.yaml', options=options) app2_client = await aiohttp_client(app.app) swagger_ui2 = await app2_client.get('/v1.0/ui/') assert swagger_ui2.status == 404 async def test_middlewares(aiohttp_api_spec_dir, aiohttp_client): async def middleware(app, handler): async def middleware_handler(request): response = (await handler(request)) response.body += b' middleware' return response return middleware_handler options = {"middlewares": [middleware]} app = AioHttpApp(__name__, port=5001, specification_dir=aiohttp_api_spec_dir, debug=True, options=options) app.add_api('swagger_simple.yaml') app_client = await aiohttp_client(app.app) get_bye = await app_client.get('/v1.0/bye/jsantos') assert get_bye.status == 200 assert (await get_bye.read()) == b'Goodbye jsantos middleware' async def test_response_with_str_body(aiohttp_app, aiohttp_client): # Create the app and run the test_app testcase below. app_client = await aiohttp_client(aiohttp_app.app) get_bye = await app_client.get('/v1.0/aiohttp_str_response') assert get_bye.status == 200 assert (await get_bye.read()) == b'str response' async def test_response_with_non_str_and_non_json_body(aiohttp_app, aiohttp_client): app_client = await aiohttp_client(aiohttp_app.app) get_bye = await app_client.get( '/v1.0/aiohttp_non_str_non_json_response' ) assert get_bye.status == 200 assert (await get_bye.read()) == b'1234' async def test_response_with_bytes_body(aiohttp_app, aiohttp_client): # Create the app and run the test_app testcase below. app_client = await aiohttp_client(aiohttp_app.app) get_bye = await app_client.get('/v1.0/aiohttp_bytes_response') assert get_bye.status == 200 assert (await get_bye.read()) == b'bytes response' async def test_validate_responses(aiohttp_app, aiohttp_client): app_client = await aiohttp_client(aiohttp_app.app) get_bye = await app_client.get('/v1.0/aiohttp_validate_responses') assert get_bye.status == 200 assert (await get_bye.json()) == {"validate": True} async def test_get_users(aiohttp_client, aiohttp_app): app_client = await aiohttp_client(aiohttp_app.app) resp = await app_client.get('/v1.0/users') assert resp.url.path == '/v1.0/users/' # followed redirect assert resp.status == 200 json_data = await resp.json() assert json_data == \ [{'name': 'John Doe', 'id': 1}, {'name': 'Nick Carlson', 'id': 2}] async def test_create_user(aiohttp_client, aiohttp_app): app_client = await aiohttp_client(aiohttp_app.app) user = {'name': 'Maksim'} resp = await app_client.post('/v1.0/users', json=user, headers={'Content-type': 'application/json'}) assert resp.status == 201 async def test_access_request_context(aiohttp_client, aiohttp_app): app_client = await aiohttp_client(aiohttp_app.app) resp = await app_client.post('/v1.0/aiohttp_access_request_context/') assert resp.status == 204 async def test_query_parsing_simple(aiohttp_client, aiohttp_app): expected_query = 'query' app_client = await aiohttp_client(aiohttp_app.app) resp = await app_client.get( '/v1.0/aiohttp_query_parsing_str', params={ 'query': expected_query, }, ) assert resp.status == 200 json_data = await resp.json() assert json_data == {'query': expected_query} async def test_query_parsing_array(aiohttp_client, aiohttp_app): expected_query = ['queryA', 'queryB'] app_client = await aiohttp_client(aiohttp_app.app) resp = await app_client.get( '/v1.0/aiohttp_query_parsing_array', params={ 'query': ','.join(expected_query), }, ) assert resp.status == 200 json_data = await resp.json() assert json_data == {'query': expected_query} async def test_query_parsing_array_multi(aiohttp_client, aiohttp_app): expected_query = ['queryA', 'queryB', 'queryC'] query_str = '&'.join(['query=%s' % q for q in expected_query]) app_client = await aiohttp_client(aiohttp_app.app) resp = await app_client.get( '/v1.0/aiohttp_query_parsing_array_multi?%s' % query_str, ) assert resp.status == 200 json_data = await resp.json() assert json_data == {'query': expected_query} if sys.version_info[0:2] >= (3, 5): @pytest.fixture def aiohttp_app_async_def(aiohttp_api_spec_dir): app = AioHttpApp(__name__, port=5001, specification_dir=aiohttp_api_spec_dir, debug=True) app.add_api('swagger_simple_async_def.yaml', validate_responses=True) return app async def test_validate_responses_async_def(aiohttp_app_async_def, aiohttp_client): app_client = await aiohttp_client(aiohttp_app_async_def.app) get_bye = await app_client.get('/v1.0/aiohttp_validate_responses') assert get_bye.status == 200 assert (await get_bye.read()) == b'{"validate": true}'
37.687831
119
0.684964
1,943
14,246
4.696346
0.081832
0.056219
0.053699
0.065205
0.807233
0.761425
0.717808
0.68811
0.669151
0.65874
0
0.022614
0.211568
14,246
377
120
37.787798
0.789797
0.020216
0
0.557554
0
0
0.123385
0.038464
0
0
0
0
0.194245
1
0.007194
false
0.007194
0.028777
0
0.05036
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
671b33b07073bfa3aa1e5d96532b9b861a7d1e81
93
py
Python
glacier-ice-arena/Schedules/apps.py
mitchellbohn/glacier-arena-website
43b35a178ea47113268bacaf676268c4cf5c5245
[ "MIT" ]
null
null
null
glacier-ice-arena/Schedules/apps.py
mitchellbohn/glacier-arena-website
43b35a178ea47113268bacaf676268c4cf5c5245
[ "MIT" ]
null
null
null
glacier-ice-arena/Schedules/apps.py
mitchellbohn/glacier-arena-website
43b35a178ea47113268bacaf676268c4cf5c5245
[ "MIT" ]
null
null
null
from django.apps import AppConfig class SchedulesConfig(AppConfig): name = 'Schedules'
15.5
33
0.763441
10
93
7.1
0.9
0
0
0
0
0
0
0
0
0
0
0
0.16129
93
5
34
18.6
0.910256
0
0
0
0
0
0.096774
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
672b39e6969edc79175a2072c31dd418e305b895
70
py
Python
test/input/037.py
EliRibble/pyfmt
e84a5531a7c06703eddd9dbc2072b0c8deae8c57
[ "MIT" ]
null
null
null
test/input/037.py
EliRibble/pyfmt
e84a5531a7c06703eddd9dbc2072b0c8deae8c57
[ "MIT" ]
null
null
null
test/input/037.py
EliRibble/pyfmt
e84a5531a7c06703eddd9dbc2072b0c8deae8c57
[ "MIT" ]
null
null
null
class C(): pass # a really complex class class D(C, B): pass
10
24
0.585714
12
70
3.416667
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.3
70
6
25
11.666667
0.836735
0.314286
0
0.5
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
4
6736043d24fa8a913e96a438c04aec00019d5c78
5,920
py
Python
test.py
kivy/kivy-remote-shell
76c466c3fc7c09028bba74dff22fffcac2fbd4f5
[ "MIT" ]
84
2015-01-02T11:03:01.000Z
2021-12-24T07:39:31.000Z
test.py
kivy/kivy-remote-shell
76c466c3fc7c09028bba74dff22fffcac2fbd4f5
[ "MIT" ]
27
2015-02-08T04:01:40.000Z
2021-08-09T06:23:13.000Z
test.py
kivy/kivy-remote-shell
76c466c3fc7c09028bba74dff22fffcac2fbd4f5
[ "MIT" ]
33
2015-03-02T18:53:13.000Z
2022-01-07T21:59:05.000Z
__version__ = '0.2' import socket import fcntl import struct from twisted.internet import reactor from twisted.cred import portal, checkers from twisted.conch import manhole, manhole_ssh from twisted.conch.ssh import keys from twisted.conch.insults import insults app = None #+---[RSA 3072]----+ #|E .o o=.o.=.. | #|o...=**=o= = | #|o.o.+*++= + . . | #|o+ . ....+ . o +.| #| o ..S. . . +| #| o .. | #| . . | #| . . | #| .. | #+----[SHA256]-----+ private_rsa="""-----BEGIN OPENSSH PRIVATE KEY----- b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAABlwAAAAdzc2gtcn NhAAAAAwEAAQAAAYEArtmBetbHICKPEQAYsE74WS5m9JNnHVmkijJ+shnVW6QGLcG6meov WcTiEq0Ti8/r7Yj5oNg7gheNjKEck5QJQJELNIiVQQ8iMDOZrwAgwpLxKnQiYW+X4EoIqk lRPQvng3SL9uJ2Rz5Q9Ti353Ir1CBD5J9EpsIUkY0LfiAXjAdMgMzOMGnIvept+uEnSQR0 OmMYxdpRVTLVn6mBbvNCWXpJTPm5ksBgGfkLyyLdLIOIXBnIuL6FrtRCH9khW28cx8oxcs sz5eEOEEY2WV6CRuT+hpinTBPQzzqQDbckTfNGVqULPlc40eF9Swa3n9YrKJRL32P9bK31 ZUGWWJuzy6XSZ0D/WdrZEG+DTzHe4Qe8li2Of7DK0dRYvPj564QJWLRvQIzpUgjA/wkbAj Jq1kyCzZSd2WYxQz175UNZzT7sHRXGHq4kh7Ooa57o9ebZf0xErep178lOg4MIcrOlK5AZ p3HJV8HkfFQ5P0ULVUANc150pjCkNX0AnGzWKk0DAAAFiO+OF3/vjhd/AAAAB3NzaC1yc2 EAAAGBAK7ZgXrWxyAijxEAGLBO+FkuZvSTZx1ZpIoyfrIZ1VukBi3BupnqL1nE4hKtE4vP 6+2I+aDYO4IXjYyhHJOUCUCRCzSIlUEPIjAzma8AIMKS8Sp0ImFvl+BKCKpJUT0L54N0i/ bidkc+UPU4t+dyK9QgQ+SfRKbCFJGNC34gF4wHTIDMzjBpyL3qbfrhJ0kEdDpjGMXaUVUy 1Z+pgW7zQll6SUz5uZLAYBn5C8si3SyDiFwZyLi+ha7UQh/ZIVtvHMfKMXLLM+XhDhBGNl legkbk/oaYp0wT0M86kA23JE3zRlalCz5XONHhfUsGt5/WKyiUS99j/Wyt9WVBllibs8ul 0mdA/1na2RBvg08x3uEHvJYtjn+wytHUWLz4+euECVi0b0CM6VIIwP8JGwIyatZMgs2Und lmMUM9e+VDWc0+7B0Vxh6uJIezqGue6PXm2X9MRK3qde/JToODCHKzpSuQGadxyVfB5HxU OT9FC1VADXNedKYwpDV9AJxs1ipNAwAAAAMBAAEAAAGBAJzNuJ2GAZujAnR3hqyOlY+82l 3Z1y5uFu5MrGxiWIHPji74vrSLXR1/QFMJXi8TLvydy2hgorVfE/UbAzqiFs4NhWP+XQO0 Y6+ghuF3FuoHxzmQXsjMwAJHwo+cIrvBckTkfyTQIMxxaT8RN3PbYszghqJ/5pw6DyIcwE LC2vscDJKxmPO32mve0fSceJO159n4xt2glTH33bZK2CW9CDKgRR5AEhk2ZrjELLxmrrzd 1KrsAKMVUWPhPM+89HpAIK5ml8xkBgv2+VBtOWyro6UD0QTJJY1oSfkpMcY9dTeMWRMvN4 peU0YRSRPsk3/9WPtCTRLY0tIT5Z2i9kOhtQajEpG0P+3doEaoDOjvSRkskcXFQ/whP/x2 pPR+etp/51QcdiiUdDgA6Kk4GaDvqoNpeA74G5BZAZ1DVm2rtSkaq3IHzRX4H0u2aWi/tz LYZmF4QZFQ0aTFr8VZ2RWE4WUHwTGzvD3UQNu4/LnN2fDtVnRvXseLb2QpxLnVzvyCGQAA AMA8azSzTLir5FI07YCRtF4+cbVu9si08jDaeb7xHlQseGxM41iXDb+aiq2O8kf5eA4stn ogwc6m2vuK4AaQCs3RAuYqsg5jCrSb2ON8lg9P8tcwx2R5eL0rn0I6caoUGtU4OiAGaxnl FtCMFg0q8Q4iA69gf6ar1ZsduuUQ8o1pwPa8uENoeEvjcKOByZ7UtsrxtMZIR9ra1ULnQ6 KB7lKVf510Ck3D+YsUjd8kXvCgHWrsjUS1h9TYEv4Urc7a9Q4AAADBAN5Yp4LaPnIF8De3 Kc4x36qInILoHewsEPoohFCwKddns1t1w+AJ8Gxztk1GS9rP5YIIF0sxiPomygk5SK6bdu 6slsdJGcOYcU0Pj1/FRo6ldrx3C4A7oEZ6hQ7qoVZn6KGBTim8xW20WjGcjN3cbt7NuW4M cU/biurucF2GcxHsDciKonYkWDhj9RJr93lMm1A5kvRAR+xH7D0jULAaJAWxD44MxLchsD vT4m/QjXL/yqAIDmPASVPY5QXfaav3dwAAAMEAyVB6Vcd9f/XfaLN0dqDHmM34xLNTweSJ mfMEDY8+6dxrGQLzm/iXYI1kAY5DRHliv6cnJSgYER8taKKr2Zv7rq9Gn8TOOgLWRpykr9 wprxjnrGigtOh745mNzNYPQyl5ezELyPXQWwKRPoWcMYK97Fp1KoNbym01oViW/gjudshR k2VSfgZ8APPrk3TdAyYVP8q8us8DFvKv+y2TtMHaItkDtRPsUegcLGwKFbuACVeztKA8rz Et+tV+X6nVLZHVAAAADGtlbmVsc29uQEV2ZQECAwQFBg== -----END OPENSSH PRIVATE KEY----- """ public_rsa="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCu2YF61scgIo8RABiwTvhZLmb0k2cdWaSKMn6yGdVbpAYtwbqZ6i9ZxOISrROLz+vtiPmg2DuCF42MoRyTlAlAkQs0iJVBDyIwM5mvACDCkvEqdCJhb5fgSgiqSVE9C+eDdIv24nZHPlD1OLfncivUIEPkn0SmwhSRjQt+IBeMB0yAzM4waci96m364SdJBHQ6YxjF2lFVMtWfqYFu80JZeklM+bmSwGAZ+QvLIt0sg4hcGci4voWu1EIf2SFbbxzHyjFyyzPl4Q4QRjZZXoJG5P6GmKdME9DPOpANtyRN80ZWpQs+VzjR4X1LBref1isolEvfY/1srfVlQZZYm7PLpdJnQP9Z2tkQb4NPMd7hB7yWLY5/sMrR1Fi8+PnrhAlYtG9AjOlSCMD/CRsCMmrWTILNlJ3ZZjFDPXvlQ1nNPuwdFcYeriSHs6hrnuj15tl/TESt6nXvyU6Dgwhys6UrkBmncclXweR8VDk/RQtVQA1zXnSmMKQ1fQCcbNYqTQM=" class PythonManhole(manhole.ColoredManhole): def __init__(self): glob = { '__name__':'__main__', '__doc__':None, '__package__':None, '__spec__':None, '__annotations__':{}, '__builtins__':__builtins__ } super().__init__(glob) def makeConnection(self, cxt): self.transport = cxt.transport return super().makeConnection(cxt) def lineReceived(self, *args): # Catch exit() try: return super().lineReceived(*args) except SystemExit: self.transport.loseConnection() def getManholeFactory(**users): # Create a terminal realm = manhole_ssh.TerminalRealm() realm.chainedProtocolFactory.protocolFactory = PythonManhole users = {key: value.encode() for key, value in users.items()} p = portal.Portal(realm) p.registerChecker( checkers.InMemoryUsernamePasswordDatabaseDontUse(**users)) # Create a factory f = manhole_ssh.ConchFactory(p) f.publicKeys[b'ssh-rsa'] = keys.Key.fromString(public_rsa) f.privateKeys[b'ssh-rsa'] = keys.Key.fromString(private_rsa) return f #class MainScreen: # # def __init__(self, **kwargs): # ip = socket.gethostbyname(socket.gethostname()) # if ip.startswith('127.'): # interfaces = ['eth0', 'eth1', 'eth2', 'wlan0', 'wlan1', 'wifi0', # 'tiwlan0', 'tiwlan1', 'ath0', 'ath1', 'ppp0'] # for ifname in interfaces: # try: # ip = self.get_interface_ip(ifname) # break # except IOError: # pass # self.lan_ip = ip # # def get_interface_ip(self, ifname): # s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) # return socket.inet_ntoa(fcntl.ioctl( # s.fileno(), # 0x8915, # SIOCGIFADDR # struct.pack('256s', ifname[:15].encode('utf-8')) # )[20:24]) # # # # def on_pause(self): # return True if __name__ == '__main__': # Define the local variables connection = reactor.listenTCP(8001, getManholeFactory(admin='kivy')) reactor.run()
42.285714
565
0.769595
400
5,920
11.21
0.6325
0.004014
0.005352
0.006244
0.012935
0.012935
0.00223
0.00223
0.00223
0
0
0.097124
0.142568
5,920
139
566
42.589928
0.786249
0.187838
0
0
0
0.012048
0.682476
0.637985
0
1
0
0
0
1
0.048193
false
0.012048
0.096386
0
0.192771
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
null
1
0
0
0
0
0
0
0
0
0
0
0
0
4
675afecb3288b2528658114093061063f025d7e9
3,863
py
Python
qa/web_tests/tests/administration/test_show_edit_user_details.py
robertstarmer/aurora
ae98329c8dc466dea2c8040203624f0bfc1c7cfe
[ "Apache-2.0" ]
23
2015-01-22T22:23:35.000Z
2021-10-21T23:08:29.000Z
qa/web_tests/tests/administration/test_show_edit_user_details.py
sysbot/aurora
9e319d4eb8c760cf84cb80ed2959cd52976af11c
[ "Apache-2.0" ]
2
2015-10-13T00:47:45.000Z
2019-05-06T14:52:33.000Z
qa/web_tests/tests/administration/test_show_edit_user_details.py
sysbot/aurora
9e319d4eb8c760cf84cb80ed2959cd52976af11c
[ "Apache-2.0" ]
27
2015-03-18T19:39:30.000Z
2022-03-11T00:58:09.000Z
from selenium import webdriver from selenium.webdriver.common.by import By from selenium.common.exceptions import NoSuchElementException from selenium.webdriver.common.action_chains import ActionChains from selenium.webdriver.support.ui import Select import unittest from qa.web_tests import config import time import random class TestShowEditDetailsUser(unittest.TestCase): def setUp(self): self.base_url = config.base_url self.verificationErrors = [] self.accept_next_alert = True self.driver = webdriver.Firefox() self.driver.implicitly_wait(config.implicitly_wait) def test_show_edit_details_user(self): user_name = "test_user_ui"+str(random.randint(1,100)) driver = self.driver driver.maximize_window() driver.get(self.base_url + "/") driver.find_element_by_name("username").send_keys(config.username) driver.find_element_by_name("password").send_keys(config.password) driver.find_element_by_css_selector("input.loginSubmit").click() Move = ActionChains(driver).move_to_element(driver.find_element_by_link_text("Settings")) Move.perform() driver.find_element_by_link_text("Users").click() #Creation driver.find_element_by_link_text("Create User").click() driver.find_element_by_id("name").send_keys(user_name) driver.find_element_by_id("email").send_keys(user_name+"@example.com") driver.find_element_by_id("password").send_keys("password") driver.find_element_by_id("confirm_password").send_keys("password") driver.find_element(By.XPATH, "//input[@id='select_tenant_id']").click() driver.find_element_by_link_text("openstack").click() driver.find_element(By.XPATH, "//input[@id='select_role_id']").click() driver.find_element_by_link_text("Member").click() driver.find_element_by_name("_action_save").click() time.sleep(3) self.assertTrue(driver.find_element_by_xpath("//tbody/tr/td[text()='"+user_name+"']").is_displayed()) #Show driver.find_element_by_xpath("//tbody/tr/td[text()='"+user_name+"']/../td/a").click() self.assertTrue(driver.find_element_by_xpath("//table/tbody").is_displayed()) #Edit driver.find_element_by_link_text("Edit User").click() driver.find_element_by_id("name").clear() driver.find_element_by_id("name").send_keys(user_name+"_edit") driver.find_element_by_id("email").clear() driver.find_element_by_id("email").send_keys(user_name+"_edit"+"@example.com") driver.find_element_by_id("password").send_keys("password") driver.find_element_by_id("confirm_password").send_keys("password") driver.find_element(By.XPATH, "//input[@id='select_tenant_id']").click() driver.find_element_by_link_text("openstack").click() driver.find_element_by_name("_action_update").click() time.sleep(3) self.assertTrue(driver.find_element_by_xpath("//tbody/tr/td[text()='"+user_name+"_edit"+"']").is_displayed()) #deletion driver.find_element_by_xpath("//tbody/tr/td[text()='"+user_name+"_edit"+"']/../td/input[@type='checkbox']").click() driver.find_element_by_name("_action_delete").click() driver.find_element_by_id("btn-confirm").click() time.sleep(1) self.assertFalse(self.is_element_present(By.XPATH,"//tbody/tr/td[text()='"+user_name+"_edit"+"']")) def is_element_present(self, how, what): try: self.driver.find_element(by=how, value=what) except NoSuchElementException, e: return False return True def tearDown(self): self.driver.save_screenshot(config.screen_path) self.driver.quit() self.assertEqual([], self.verificationErrors) if __name__ == "__main__": unittest.main()
49.525641
123
0.698162
506
3,863
4.988142
0.231225
0.130745
0.222266
0.248415
0.532488
0.498811
0.431458
0.385499
0.347861
0.335182
0
0.002149
0.156614
3,863
78
124
49.525641
0.77256
0.006213
0
0.147059
0
0
0.151199
0.06074
0.044118
0
0
0
0.073529
0
null
null
0.073529
0.132353
null
null
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
1
0
0
1
0
0
0
0
0
4
675e8be15f0c9969dd849f521845390bb175611e
16,152
py
Python
surv_ci_info/losses.py
muskang48/SurvCI
8bd778f288ebb9664e61b354bbf07b2a23d1e952
[ "MIT" ]
1
2022-03-08T09:42:35.000Z
2022-03-08T09:42:35.000Z
surv_ci_info/losses.py
muskang48/SurvCI
8bd778f288ebb9664e61b354bbf07b2a23d1e952
[ "MIT" ]
null
null
null
surv_ci_info/losses.py
muskang48/SurvCI
8bd778f288ebb9664e61b354bbf07b2a23d1e952
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """losses.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/10XqSVHkvHpf-XabH9bEXqDZsx-UxagV- """ import torch import numpy as np import torch.nn as nn import pdb from lifelines.utils import concordance_index from surv_ci_info.utilities import lindisc, mmd2_lin, auc np.random.seed(1234) torch.manual_seed(seed=1234) def imb_loss(model,x,w): ''' Returns the IPM (Integral Probability Metric) term ''' imb = 0.0 fi = model.get_repr(x) if model.imb_func=='lin_disc': imb = lindisc(fi, w, model.p_ipm) elif model.imb_func=='mmd2_lin': imb = mmd2_lin(fi, w, model.p_ipm) return imb ###################################################################################### def mse_loss(model,x,y,e,w): ''' Returns MSE Loss''' #shape_co,scale_co, logits_co , shape_tr,scale_tr, logits_tr = model.forward(x,w) shape_co, scale_co, logits_co, shape_tr, scale_tr, logits_tr, shape_co_c, scale_co_c, logits_co_c, shape_tr_c, scale_tr_c, logits_tr_c = model.forward(x, w) t_max = y[e==1] #Time-to-event/Uncensored Samples c_max = y[e==0] #Time-to-censoring/Censored Samples w_t = w[e==1] #Treatment indicator for Uncensored Samples w_c = w[e==0] #Treatment indicator for Censored Samples #pdb.set_trace() t_pred_co = auc(model,t_max[w_t==0],shape_co,scale_co,logits_co) #Predicted time to event for control samples t_pred_tr = auc(model,t_max[w_t==1], shape_tr, scale_tr,logits_tr) #Predicted time to event for treated samples #true_t = torch.cat((t[w==0],t[w==1]),0) pred_t = torch.cat((t_pred_co,t_pred_tr),0) #Predicted T c_pred_co = auc(model, c_max[w_c == 0], shape_co_c, scale_co_c, logits_co_c) #Predicted time to censoring for control samples c_pred_tr = auc(model, c_max[w_c == 1], shape_tr_c, scale_tr_c, logits_tr_c) #Predicted time to censoring for treated samples # true_t = torch.cat((t[w==0],t[w==1]),0) pred_c = torch.cat((c_pred_co, c_pred_tr), 0) #Predicted C pred_y = pred_t*e + pred_c*(1-e) #Predicted Y p_w = w.sum() / len(w) # Probability of Treatement=1 w_tr = w/(2*p_w) w_co = (1-w)/(2*(1-p_w)) wts = w_tr + w_co return torch.mean(torch.multiply(wts,torch.square((y-pred_y)))) ############################################################################### def l2_loss(model): layers = model.get_layers() #n_layers = model.get_layers_dim() #pdb.set_trace() #reg_loss = sum([torch.square(layers[i].weight).sum()/2 for i in range(len(layers))]) reg_loss = sum([torch.square(layers[i].weight).sum()/2 for i in range(0,len(layers)) if i%2==0]) return reg_loss # def mse_loss(model,x,y,e,w): # '''Returns MSE Loss ''' # shape_co,scale_co, logits_co , shape_tr,scale_tr, logits_tr,shape_co_c,scale_co_c, logits_co_c , shape_tr_c,scale_tr_c, logits_tr_c = model.forward(x,w) # t_pred_co = auc(model,y[w==0],shape_co,scale_co,logits_co) # t_pred_tr = auc(model,y[w==1], shape_tr, scale_tr,logits_tr) # c_pred_co = auc(model,y[w==0],shape_co_c,scale_co_c,logits_co_c) # c_pred_tr = auc(model,y[w==1], shape_tr_c, scale_tr_c,logits_tr_c) # #pdb.set_trace() # true_t = torch.cat((t[w==0],t[w==1]),0) # pred_t = torch.cat((t_pred_co,t_pred_tr),0) # # true_c = torch.cat((c[w==0],c[w==1]),0) # # pred_c = torch.cat((c_pred_co,c_pred_tr),0) # # true_y = min(true_t,true_c) # # pred_y = min(pred_t,pred_c) # # p_w = w.sum()/len(w) #Probability of Treatement=1 # # w_tr = w/(2*p_w) # # w_co = (1-w)/(2*(1-p_w)) # # wts = w_tr + w_co # #return torch.mean(torch.multiply(wts,torch.square((true_t-pred_t)))) # return torch.mean(torch.square((true_t-pred_t))) # def mse_loss(model,x,t,e,w): # '''Returns MSE Loss ''' # shape_co,scale_co, logits_co , shape_tr,scale_tr, logits_tr,shape_co_c,scale_co_c, logits_co_c , shape_tr_c,scale_tr_c, logits_tr_c = model.forward(x,w) # t_pred_co = auc(model,t[w==0],shape_co,scale_co,logits_co) # t_pred_tr = auc(model,t[w==1], shape_tr, scale_tr,logits_tr) # true_t = torch.cat((t[w==0],t[w==1]),0) # pred_t = torch.cat((t_pred_co,t_pred_tr),0) # true_y = min(true_t,true_c) # pred_y = min(pred_t,pred_c) # p_w = w.sum()/len(w) #Probability of Treatement=1 # w_tr = w/(2*p_w) # w_co = (1-w)/(2*(1-p_w)) # wts = w_tr + w_co # return torch.mean(torch.multiply(wts,torch.square((true_t-pred_t)))) # # return torch.mean(torch.square((true_t-pred_t))) # #return torch.mean(torch.square((true_t[e==1]-pred_t[e==1]))) # def _lognormal_loss(t, c,e, shape, scale,shape_c,scale_c): # '''Returns Unconditional Log Normal Loss (Does not depends on features x)''' # eta_ = shape.expand(t.shape[0], -1) # beta_ = scale.expand(t.shape[0], -1) # eta_c = shape_c.expand(c.shape[0], -1) # beta_c = scale_c.expand(c.shape[0], -1) # ll = 0. # mu = eta_ # sigma = beta_ # mu_c = eta_c # sigma_c = beta_c # f = - torch.log(t)- sigma - 0.5*np.log(2*np.pi) # f = f - torch.div((torch.log(t) - mu)**2, 2.*torch.exp(2*sigma)) # f_c = - torch.log(c)- sigma_c - 0.5*np.log(2*np.pi) # f_c = f_c - torch.div((torch.log(c) - mu_c)**2, 2.*torch.exp(2*sigma_c)) # s = torch.div(torch.log(t) - mu, torch.exp(sigma)*np.sqrt(2)) # s = 0.5 - 0.5*torch.erf(s) # s = torch.log(s) # s_c = torch.div(torch.log(c) - mu_c, torch.exp(sigma_c)*np.sqrt(2)) # s_c = 0.5 - 0.5*torch.erf(s_c) # s_c = torch.log(s_c) # uncens = np.where(e.cpu().data.numpy() == 1)[0] # cens = np.where(e.cpu().data.numpy() != 1)[0] # ll += f[uncens].sum() + s[cens].sum() + s_c[uncens].sum() + f_c[cens].sum() # return -ll.mean() # def _weibull_loss(t, e, shape, scale): # '''Returns Unconditional Weibull Loss (Does not depends on features x)''' # eta_ = shape.expand(t.shape[0], -1) # beta_ = scale.expand(t.shape[0], -1) # ll = 0. # s = - (torch.pow(torch.exp(beta_)*t, torch.exp(eta_))) # f = eta_ + beta_ + ((torch.exp(eta_)-1)*(beta_+torch.log(t))) # f = f + s # uncens = np.where(e.cpu().data.numpy() == 1)[0] # cens = np.where(e.cpu().data.numpy() != 1)[0] # ll += f[uncens].sum() + s[cens].sum() # return -ll.mean() # def unconditional_mse(model,t,e,w): # shape_co,scale_co,shape_tr,scale_tr = model.get_shape_scale(w) # t_pred_co = auc_unconditional(model,t[w==0],shape_co,scale_co) # t_pred_tr = auc_unconditional(model,t[w==1], shape_tr, scale_tr) # true_t = torch.cat((t[w==0],t[w==1]),0) # pred_t = torch.cat((t_pred_co,t_pred_tr),0) # return torch.mean(torch.square((true_t-pred_t))) def _lognormal_loss(y,e, shape, scale,shape_c,scale_c): '''Returns Unconditional Log Normal Loss (Does not depends on features x)''' eta_ = shape.expand(y.shape[0], -1) beta_ = scale.expand(y.shape[0], -1) eta_c = shape_c.expand(y.shape[0], -1) beta_c = scale_c.expand(y.shape[0], -1) ll = 0 mu = eta_ sigma = beta_ mu_c = eta_c sigma_c = beta_c f = - torch.log(y)- sigma - 0.5*np.log(2*np.pi) f = f - torch.div((torch.log(y) - mu)**2, 2.*torch.exp(2*sigma)) f_c = - torch.log(y)- sigma_c - 0.5*np.log(2*np.pi) f_c = f_c - torch.div((torch.log(y) - mu_c)**2, 2.*torch.exp(2*sigma_c)) s_c = torch.div(torch.log(y) - mu, torch.exp(sigma)*np.sqrt(2)) s_c = 0.5 - 0.5*torch.erf(s_c) s_c = torch.log(s_c) s = torch.div(torch.log(y) - mu_c, torch.exp(sigma_c)*np.sqrt(2)) s = 0.5 - 0.5*torch.erf(s) s = torch.log(s) uncens = np.where(e.cpu().data.numpy() == 1)[0] cens = np.where(e.cpu().data.numpy() != 1)[0] #ll += f[uncens].sum() + s[cens].sum() + s_c[uncens].sum() + f_c[cens].sum() ll += f[uncens].sum() + s[uncens].sum() + f_c[cens].sum() + s_c[cens].sum() return -ll.mean() def _weibull_loss(t, e, shape, scale): '''Returns Unconditional Weibull Loss (Does not depends on features x)''' eta_ = shape.expand(t.shape[0], -1) beta_ = scale.expand(t.shape[0], -1) ll = 0.0 s = - (torch.pow(torch.exp(beta_)*t, torch.exp(eta_))) f = eta_ + beta_ + ((torch.exp(eta_)-1)*(beta_+torch.log(t))) f = f + s uncens = np.where(e.cpu().data.numpy() == 1)[0] cens = np.where(e.cpu().data.numpy() != 1)[0] ll += f[uncens].sum() + s[cens].sum() return -ll.mean() # def unconditional_loss(model, t, c, e, w): # '''Returns Unconditional Loss (Does not depends on features x)''' # shape_co,scale_co,shape_tr,scale_tr = model.get_shape_scale(w) # shape_co_c,scale_co_c,shape_tr_c, scale_tr_c = model.get_shape_scale_c(w) # tot_unc_loss = 0.0 # if model.dist == 'Weibull': # unco_loss_co = _weibull_loss(t[w==0], e[w==0], shape_co,scale_co) # unco_loss_tr = _weibull_loss(t[w==1], e[w==1], shape_tr,scale_tr) # unco_loss_co_c = _weibull_loss(c[w==0], e[w==0], shape_co_c,scale_co_c) # elif model.dist == 'LogNormal': # unco_loss_co = _lognormal_loss(t[w==0], c[w==0], e[w==0], shape_co,scale_co,shape_co_c,scale_co_c) # unco_loss_tr = _lognormal_loss(t[w==1], c[w==1], e[w==1], shape_tr,scale_tr, shape_tr_c,scale_tr_c) # else: # raise NotImplementedError('Distribution: '+model.dist+ # ' not implemented yet.') # tot_unc_loss = unco_loss_co + unco_loss_tr # return tot_unc_loss def unconditional_loss(model, y, e, w): '''Returns Unconditional Loss (Does not depends on features x)''' shape_co,scale_co,shape_tr,scale_tr = model.get_shape_scale(w) shape_co_c,scale_co_c,shape_tr_c, scale_tr_c = model.get_shape_scale_c(w) tot_unc_loss = 0.0 if model.dist == 'Weibull': unco_loss_co = _weibull_loss(t[w==0], e[w==0], shape_co,scale_co) unco_loss_tr = _weibull_loss(t[w==1], e[w==1], shape_tr,scale_tr) unco_loss_co_c = _weibull_loss(c[w==0], e[w==0], shape_co_c,scale_co_c) elif model.dist == 'LogNormal': unco_loss_co = _lognormal_loss(y[w==0], e[w==0], shape_co,scale_co,shape_co_c,scale_co_c) unco_loss_tr = _lognormal_loss(y[w==1], e[w==1], shape_tr,scale_tr, shape_tr_c,scale_tr_c) else: raise NotImplementedError('Distribution: '+model.dist+ ' not implemented yet.') tot_unc_loss = unco_loss_co + unco_loss_tr return tot_unc_loss ###################################################################################### def _conditional_lognormal_loss(y, e, shape,scale,logits,shape_c,scale_c,logits_c,alpha, elbo=True): '''Returns Conditional Loss (Depends on features x)''' lossf = [] losss = [] lossf_c = [] losss_c = [] k = shape.shape[1] #Number of Primitive Distributions eta_ = shape beta_ = scale eta_c = shape_c beta_c = scale_c for g in range(k): mu = eta_[:, g] sigma = beta_[:, g] mu_c = eta_c[:, g] sigma_c = beta_c[:, g] f = - torch.log(y) - sigma - 0.5*np.log(2*np.pi) f = f - torch.div((torch.log(y) - mu)**2, 2.*torch.exp(2*sigma)) f_c = - torch.log(y) - sigma_c - 0.5*np.log(2*np.pi) f_c = f_c - torch.div((torch.log(y) - mu_c)**2, 2.*torch.exp(2*sigma_c)) s_c = torch.div(torch.log(y) - mu, torch.exp(sigma)*np.sqrt(2)) s_c = 0.5 - 0.5*torch.erf(s_c) s_c = torch.log(s_c) s = torch.div(torch.log(y) - mu_c, torch.exp(sigma_c)*np.sqrt(2)) s = 0.5 - 0.5*torch.erf(s) s = torch.log(s) lossf.append(f) losss.append(s) lossf_c.append(f_c) losss_c.append(s_c) losss = torch.stack(losss, dim=1) lossf = torch.stack(lossf, dim=1) losss_c = torch.stack(losss_c, dim=1) lossf_c = torch.stack(lossf_c, dim=1) if elbo: lossg = nn.Softmax(dim=1)(logits) lossg_c = nn.Softmax(dim=1)(logits_c) #losss = lossg*losss losss = lossg_c*losss lossf = lossg*lossf #losss_c = lossg_c*losss_c losss_c = lossg*losss_c lossf_c = lossg_c*lossf_c losss = losss.sum(dim=1) lossf = lossf.sum(dim=1) losss_c = losss_c.sum(dim=1) lossf_c = lossf_c.sum(dim=1) else: lossg_c = nn.LogSoftmax(dim=1)(logits_c) lossg = nn.LogSoftmax(dim=1)(logits) #losss = lossg + losss losss = lossg_c + losss lossf = lossg + lossf #losss_c = lossg_c + losss_c losss_c = lossg + losss_c lossf_c = lossg_c + lossf_c losss = torch.logsumexp(losss, dim=1) lossf = torch.logsumexp(lossf, dim=1) losss_c = torch.logsumexp(losss_c, dim=1) lossf_c = torch.logsumexp(lossf_c, dim=1) uncens = np.where(e.cpu().data.numpy() == 1)[0] cens = np.where(e.cpu().data.numpy() != 1)[0] #ll = lossf[uncens].sum() + losss_c[uncens].sum() + alpha*(losss[cens].sum() + lossf_c[cens].sum()) ll = lossf[uncens].sum() + losss[uncens].sum() + alpha*(losss_c[cens].sum() + lossf_c[cens].sum()) return -ll/float(len(uncens)+len(cens)) def _conditional_weibull_loss(t, e, shape, scale, logits, alpha, elbo=True): '''Returns Conditional Loss (Depends on features x)''' k = shape.shape[1] #Number of Primitive Distributions eta_ = shape beta_ = scale lossf = [] losss = [] for g in range(k): shape_ = eta_[:, g] scale_ = beta_[:, g] s = - (torch.pow(torch.exp(scale_)*t, torch.exp(shape_))) f = shape_ + scale_ + ((torch.exp(scale_)-1)*(scale_+torch.log(t))) f = f + s lossf.append(f) losss.append(s) losss = torch.stack(losss, dim=1) lossf = torch.stack(lossf, dim=1) if elbo: lossg = nn.Softmax(dim=1)(logits) losss = lossg*losss lossf = lossg*lossf losss = losss.sum(dim=1) lossf = lossf.sum(dim=1) else: lossg = nn.LogSoftmax(dim=1)(logits) losss = lossg + losss lossf = lossg + lossf losss = torch.logsumexp(losss, dim=1) lossf = torch.logsumexp(lossf, dim=1) uncens = np.where(e.cpu().data.numpy() == 1)[0] cens = np.where(e.cpu().data.numpy() != 1)[0] ll = lossf[uncens].sum() + alpha*losss[cens].sum() return -ll/float(len(uncens)+len(cens)) def conditional_loss(model, x, y, e, w, elbo=True): alpha = model.discount shape_co, scale_co, logits_co, shape_tr, scale_tr, logits_tr,shape_co_c, scale_co_c, logits_co_c, shape_tr_c, scale_tr_c, logits_tr_c = model.forward(x, w) if model.dist == 'Weibull': cond_loss_co = _conditional_weibull_loss(t[w==0], e[w==0], shape_co, scale_co, logits_co,alpha,elbo) cond_loss_tr = _conditional_weibull_loss(t[w==1], e[w==1],shape_tr,scale_tr,logits_tr, alpha,elbo) elif model.dist == 'LogNormal': cond_loss_co = _conditional_lognormal_loss(y[w==0],e[w==0],shape_co,scale_co,logits_co,shape_co_c, scale_co_c, logits_co_c,alpha, elbo) cond_loss_tr = _conditional_lognormal_loss(y[w==1], e[w==1],shape_tr,scale_tr,logits_tr, shape_tr_c, scale_tr_c, logits_tr_c,alpha,elbo) else: raise NotImplementedError('Distribution: '+model.dist+ ' not implemented yet.') tot_cond_loss = cond_loss_co + cond_loss_tr return tot_cond_loss ###################################################################################### # def calculate_ci(model,x,t,e,w): # treated_idx = torch.where(w>0)[0] # control_idx = torch.where(w<1)[0] # shape_co,scale_co,logits_co, shape_tr,scale_tr, logits_tr = model.forward(x,w) #Predicted Factual Parameters # shape_co ,scale_co = softmax_out(shape_co, scale_co, logits_co) # shape_tr, scale_tr = softmax_out(shape_tr,scale_tr,logits_tr) # shape_co = shape_co.detach().numpy() # scale_co = scale_co.detach().numpy() # shape_tr = shape_tr.detach().numpy() # scale_tr = scale_tr.detach().numpy() # if model.dist == 'LogNormal': # t_co_samples = sample_lognormal(mu=shape_co, sigma=np.exp(scale_co)) # t_tr_samples = sample_lognormal(mu=shape_tr, sigma=np.exp(scale_tr)) # elif model.dist == 'Weibull': # t_co_samples = sample_weibull(shape=shape_co, scale=np.exp(scale_co)) # t_tr_samples = sample_weibull(shape=shape_tr, scale=np.exp(scale_tr)) # else: # print('Sampling Distribution function not defined') # t_pred_co = np.median(t_co_samples,axis=1) # t_pred_tr = np.median(t_tr_samples,axis=1) # c_index_co = concordance_index(event_times=t[control_idx],predicted_scores=t_pred_co,event_observed=e[control_idx]) # c_index_tr = concordance_index(event_times=t[treated_idx],predicted_scores=t_pred_tr,event_observed=e[treated_idx]) # return ((c_index_co + c_index_tr) * 0.5)
36.296629
158
0.639364
2,905
16,152
3.304303
0.067126
0.027711
0.027503
0.030628
0.798937
0.745911
0.702677
0.688405
0.658298
0.644025
0
0.020105
0.16549
16,152
445
159
36.296629
0.692039
0.466506
0
0.443299
1
0
0.014613
0
0
0
0
0
0
1
0.046392
false
0
0.030928
0
0.123711
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
678e38a3ad40c22abe1fd1f83cc56f77df9edc19
403
py
Python
tests/test_mapping.py
jackwish/shrub
acd14c72269c88e3143997288efcc6f0130c4c8e
[ "Apache-2.0" ]
2
2020-09-23T01:16:39.000Z
2022-01-26T23:16:21.000Z
tests/test_mapping.py
jackwish/shrub
acd14c72269c88e3143997288efcc6f0130c4c8e
[ "Apache-2.0" ]
1
2020-09-23T01:09:54.000Z
2020-09-23T01:09:54.000Z
tests/test_mapping.py
jackwish/shrub
acd14c72269c88e3143997288efcc6f0130c4c8e
[ "Apache-2.0" ]
null
null
null
import shrub def test_mapping(): assert(len(shrub.mapping.DTYPE_NAME2ONNX) == 8) assert(len(shrub.mapping.DTYPE_NAME2TFLITE) == 8) assert(len(shrub.mapping.DTYPE_ONNX2NAME) == 8) assert(len(shrub.mapping.DTYPE_ONNX2TFLITE) == 8) assert(len(shrub.mapping.DTYPE_TFLITE2NAME) == 8) assert(len(shrub.mapping.DTYPE_TFLITE2ONNX) == 8) if __name__ == '__main__': test_mapping()
26.866667
53
0.709677
52
403
5.192308
0.346154
0.2
0.311111
0.466667
0.596296
0.5
0
0
0
0
0
0.034884
0.146402
403
14
54
28.785714
0.75
0
0
0
0
0
0.019851
0
0
0
0
0
0.6
1
0.1
true
0
0.1
0
0.2
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
1
0
0
1
0
0
0
0
0
0
4
67da6bb16e8a91bb94eee7339d33876de29c867c
126
py
Python
QA/pycopia/remote/WindowsClient.py
kdart/pycopia
1446fabaedf8c6bdd4ab1fc3f0ea731e0ef8da9d
[ "Apache-2.0" ]
89
2015-03-26T11:25:20.000Z
2022-01-12T06:25:14.000Z
QA/pycopia/remote/windows_client.py
kdart/pycopia3
8a7c820f096245411eabbb72345e4f30a35988b6
[ "Apache-2.0" ]
1
2015-07-05T03:27:43.000Z
2015-07-11T06:21:20.000Z
QA/pycopia/remote/WindowsClient.py
kdart/pycopia
1446fabaedf8c6bdd4ab1fc3f0ea731e0ef8da9d
[ "Apache-2.0" ]
30
2015-04-30T01:35:54.000Z
2022-01-12T06:19:49.000Z
""" Client stub for connecting to file operations server. Any Windows client (controller) abstractions should go here. """
18
73
0.753968
16
126
5.9375
0.9375
0
0
0
0
0
0
0
0
0
0
0
0.166667
126
6
74
21
0.904762
0.912698
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
67dd8b74af1043bdf37be5a3651a138918564a54
102
py
Python
items/anime_name_item.py
DaivdYuan/spider-common
c2237f47df4d40eb443249213668fdcb71a39fcf
[ "MIT" ]
null
null
null
items/anime_name_item.py
DaivdYuan/spider-common
c2237f47df4d40eb443249213668fdcb71a39fcf
[ "MIT" ]
null
null
null
items/anime_name_item.py
DaivdYuan/spider-common
c2237f47df4d40eb443249213668fdcb71a39fcf
[ "MIT" ]
null
null
null
import scrapy class CommonAnimeNameItem(scrapy.Item): id = scrapy.Field() name = scrapy.Field()
11.333333
39
0.72549
12
102
6.166667
0.666667
0.297297
0
0
0
0
0
0
0
0
0
0
0.156863
102
8
40
12.75
0.860465
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.25
0
1
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
4
67fff8233354ecba7d675b0320a700974cb482c2
82
py
Python
src/python/grapl-template-generator/grapl_template_generator/common_types.py
grapl-security/grapl
24caa7fb4424645495d99fb338e2231fc4f66712
[ "Apache-2.0" ]
291
2020-04-24T03:40:06.000Z
2022-03-29T02:47:16.000Z
src/python/grapl-template-generator/grapl_template_generator/common_types.py
silocityit/grapl
3ec918cc4c0ce18fafff0a2917c726fa0fd0f1d0
[ "Apache-2.0" ]
848
2020-04-26T19:23:37.000Z
2022-03-31T16:57:39.000Z
src/python/grapl-template-generator/grapl_template_generator/common_types.py
silocityit/grapl
3ec918cc4c0ce18fafff0a2917c726fa0fd0f1d0
[ "Apache-2.0" ]
43
2020-04-27T20:59:18.000Z
2022-03-29T21:56:09.000Z
from typing import NewType VersionConstraint = NewType("VersionConstraint", str)
20.5
53
0.817073
8
82
8.375
0.75
0.716418
0
0
0
0
0
0
0
0
0
0
0.109756
82
3
54
27.333333
0.917808
0
0
0
0
0
0.207317
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
db1b9e3f8c72ee8876f5acc56e21976b1eae9a18
38
py
Python
venv/lib/python3.6/rlcompleter.py
bradjballard/personal_search_engine
530c5224721a7d700ca0c7c78a513bbc81f05c38
[ "NCSA" ]
null
null
null
venv/lib/python3.6/rlcompleter.py
bradjballard/personal_search_engine
530c5224721a7d700ca0c7c78a513bbc81f05c38
[ "NCSA" ]
null
null
null
venv/lib/python3.6/rlcompleter.py
bradjballard/personal_search_engine
530c5224721a7d700ca0c7c78a513bbc81f05c38
[ "NCSA" ]
null
null
null
/anaconda/lib/python3.6/rlcompleter.py
38
38
0.842105
6
38
5.333333
1
0
0
0
0
0
0
0
0
0
0
0.052632
0
38
1
38
38
0.789474
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
4
db1dff7a51584bdbc6830fd777abce713ab2ae43
212
py
Python
src/python/src/database/models/mixins/mysql_primary_key.py
halimov-oa/scrapy-boilerplate
fe3c552fed26bedb0618c245ab923aa34a89ac9d
[ "MIT" ]
34
2019-12-13T10:31:39.000Z
2022-03-09T15:59:07.000Z
src/python/src/database/models/mixins/mysql_primary_key.py
halimov-oa/scrapy-boilerplate
fe3c552fed26bedb0618c245ab923aa34a89ac9d
[ "MIT" ]
49
2020-02-25T19:41:09.000Z
2022-02-27T12:05:25.000Z
src/python/src/database/models/mixins/mysql_primary_key.py
halimov-oa/scrapy-boilerplate
fe3c552fed26bedb0618c245ab923aa34a89ac9d
[ "MIT" ]
23
2019-12-23T15:19:42.000Z
2022-03-09T16:00:15.000Z
# -*- coding: utf-8 -*- from sqlalchemy import Column from sqlalchemy.dialects.mysql import BIGINT class MysqlPrimaryKeyMixin: id = Column("id", BIGINT(unsigned=True), primary_key=True, autoincrement=True)
26.5
82
0.754717
26
212
6.115385
0.692308
0.176101
0
0
0
0
0
0
0
0
0
0.005405
0.127358
212
7
83
30.285714
0.854054
0.099057
0
0
0
0
0.010582
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
db2b1fa55c475bf4b8d21fa57c8e10714492d56b
152
py
Python
00_Original/images/missing_data.py
felixdittrich92/numerisches_python
0f895ee19b4fa3cf7ad38cd3dfe3cd7020ee34a7
[ "MIT" ]
null
null
null
00_Original/images/missing_data.py
felixdittrich92/numerisches_python
0f895ee19b4fa3cf7ad38cd3dfe3cd7020ee34a7
[ "MIT" ]
null
null
null
00_Original/images/missing_data.py
felixdittrich92/numerisches_python
0f895ee19b4fa3cf7ad38cd3dfe3cd7020ee34a7
[ "MIT" ]
null
null
null
s = str(fac(900)) for start, l in [(387, 12), (589, 24), (1410, 15), (1850, 27)]: s = s[:start] + '\x1b[6;30;42m' + "?"*l + '\x1b[0m' + s[start+l:]
38
69
0.473684
29
152
2.482759
0.724138
0.166667
0
0
0
0
0
0
0
0
0
0.270492
0.197368
152
3
70
50.666667
0.319672
0
0
0
0
0
0.138158
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
e1eb8402049c9b1f1167b8c797adba816012337d
258
py
Python
lpp_index/urls.py
uehara1414/lang-processing-play
5d7a48bda3671250607c94d9008a9606c99512d0
[ "MIT" ]
null
null
null
lpp_index/urls.py
uehara1414/lang-processing-play
5d7a48bda3671250607c94d9008a9606c99512d0
[ "MIT" ]
null
null
null
lpp_index/urls.py
uehara1414/lang-processing-play
5d7a48bda3671250607c94d9008a9606c99512d0
[ "MIT" ]
null
null
null
from django.conf.urls import url from django.conf.urls.static import static from django.views.generic import RedirectView from django.contrib.staticfiles.views import serve from . import views urlpatterns = [ url(r'^api', views.index, name='index'), ]
23.454545
50
0.771318
37
258
5.378378
0.486486
0.201005
0.140704
0.180905
0
0
0
0
0
0
0
0
0.127907
258
10
51
25.8
0.884444
0
0
0
0
0
0.034884
0
0
0
0
0
0
1
0
false
0
0.625
0
0.625
0
0
0
0
null
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
e1f8f281344fc4511f5a73d3220e92333d6e9b47
97
py
Python
Inventory management System - JSON/Text.py
AshishJangra27/Python-Elite-Batch-GFG
7b25f2083944ad152d9460924b0a061ba39b7246
[ "Apache-2.0" ]
1
2022-02-13T13:16:22.000Z
2022-02-13T13:16:22.000Z
Inventory management System - JSON/Text.py
AshishJangra27/Python-Elite-Batch-GFG
7b25f2083944ad152d9460924b0a061ba39b7246
[ "Apache-2.0" ]
null
null
null
Inventory management System - JSON/Text.py
AshishJangra27/Python-Elite-Batch-GFG
7b25f2083944ad152d9460924b0a061ba39b7246
[ "Apache-2.0" ]
null
null
null
fd = open('Sales.txt','a') fd.write("1111,Ashish,63278648732,1001,5 Star,5,4,20 \n") fd.close()
19.4
57
0.659794
19
97
3.368421
0.842105
0
0
0
0
0
0
0
0
0
0
0.269663
0.082474
97
4
58
24.25
0.449438
0
0
0
0
0
0.572917
0.3125
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
c01a1aad67bed29de4de66d291086d5ec0176c4f
168
py
Python
scoring/tests/__init__.py
stkrizh/otus
6bff5cf62661bb7bab6eac6cb563a63a52a56423
[ "MIT" ]
1
2021-07-25T11:11:55.000Z
2021-07-25T11:11:55.000Z
scoring/tests/__init__.py
stkrizh/otus
6bff5cf62661bb7bab6eac6cb563a63a52a56423
[ "MIT" ]
3
2020-03-24T17:33:29.000Z
2021-08-23T20:20:31.000Z
scoring/tests/__init__.py
stkrizh/otus
6bff5cf62661bb7bab6eac6cb563a63a52a56423
[ "MIT" ]
null
null
null
from scoring import settings settings.REDIS_DB = settings.REDIS_TESTING_DB settings.RETRY_DELAY = 0.1 settings.RETRY_N_TIMES = 2 settings.REDIS_CONNECTION_TIMEOUT = 1
24
45
0.839286
26
168
5.115385
0.615385
0.293233
0
0
0
0
0
0
0
0
0
0.02649
0.10119
168
6
46
28
0.854305
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.2
0
0.2
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
c0467976c4d9f6bc97e823836672754dd298727a
261
py
Python
curso-em-video/aula_06/tipos-primitivos.py
talysonxx/python
520b108731e28c7dc1fca3523b925be506fd8340
[ "MIT" ]
null
null
null
curso-em-video/aula_06/tipos-primitivos.py
talysonxx/python
520b108731e28c7dc1fca3523b925be506fd8340
[ "MIT" ]
null
null
null
curso-em-video/aula_06/tipos-primitivos.py
talysonxx/python
520b108731e28c7dc1fca3523b925be506fd8340
[ "MIT" ]
null
null
null
n1 = int(input('Digite um número: ')) n2 = int(input('Digite outro número: ')) s = n1 + n2 print('A soma entre', n1, 'e', n2, 'vale:', s) print(f'A soma entre {n1} e {n2} vale: {s}') print('A soma entre {0} e {1} vale: {2}'.format(n1, n2, s)) # print(type(n1))
32.625
59
0.582375
50
261
3.04
0.42
0.098684
0.197368
0.197368
0.328947
0.328947
0.328947
0.328947
0.328947
0
0
0.064815
0.172414
261
7
60
37.285714
0.638889
0.057471
0
0
0
0
0.504098
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
4
c04af60893cbc9a79e88c1b690f07b03dc1d65cd
1,683
py
Python
hangman_txt.py
BrianDunneKK/BoardGames
57b39c4a72de45c95de310dfa5bcdbe5115c3f88
[ "MIT" ]
null
null
null
hangman_txt.py
BrianDunneKK/BoardGames
57b39c4a72de45c95de310dfa5bcdbe5115c3f88
[ "MIT" ]
null
null
null
hangman_txt.py
BrianDunneKK/BoardGames
57b39c4a72de45c95de310dfa5bcdbe5115c3f88
[ "MIT" ]
null
null
null
hangman_txt = (""" _________ |/ | | | | | ========""", """ _________ |/ | | | | | | ========""", """ _________ |/ | | (_) | | | | ========""", """ ________ |/ | | (_) | | | | | | ========""", """ _________ |/ | | (_) | /| | | | | ========""", """ _________ |/ | | (_) | /|\ | | | | ========""", """ ________ |/ | | (_) | /|\ | | | / | ========""", """ ________ |/ | | (_) | /|\ | | | / \ | ========""")
25.5
40
0.051099
2
1,683
5
1
0
0
0
0
0
0
0
0
0
0
0
0.819964
1,683
66
41
25.5
0.033003
0
0
0.615385
0
0
0.950119
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
1
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
22188bcb5eccb73bffda30496a66e9470f6a09a9
414
py
Python
src/tracereq/__init__.py
asyrofist/tracereq
4aa5071c6499e26771185f711af4393a865cb69a
[ "MIT" ]
1
2020-11-24T05:32:04.000Z
2020-11-24T05:32:04.000Z
src/tracereq/__init__.py
asyrofist/tracereq
4aa5071c6499e26771185f711af4393a865cb69a
[ "MIT" ]
null
null
null
src/tracereq/__init__.py
asyrofist/tracereq
4aa5071c6499e26771185f711af4393a865cb69a
[ "MIT" ]
null
null
null
"""Ini adalah indeks inisialiasi modul ini dimuat, terdiri atas prepreocessing, vsm, lda, dan lsa. semua data tersimpan dengan baik, bisa dipelajar dengan cepat. """ from tracereq.lda import latentDirichlet from tracereq.lsa import latentSemantic from tracereq.preprocessing_evaluation import (pengukuranEvaluasi, prosesData) from tracereq.vsm import measurement
46
98
0.729469
45
414
6.688889
0.688889
0.159468
0
0
0
0
0
0
0
0
0
0
0.222222
414
8
99
51.75
0.934783
0.381643
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.8
0
0.8
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
4
2238e6683094748b08ef6ff239f7b5732702c55f
732
py
Python
kaffepause/accounts/types.py
Eirsteir/kaffepause
77535f057e68d575831e3a44f36285ab2fe621d4
[ "MIT" ]
null
null
null
kaffepause/accounts/types.py
Eirsteir/kaffepause
77535f057e68d575831e3a44f36285ab2fe621d4
[ "MIT" ]
2
2022-02-28T21:04:22.000Z
2022-03-01T21:05:37.000Z
kaffepause/accounts/types.py
Eirsteir/kaffepause
77535f057e68d575831e3a44f36285ab2fe621d4
[ "MIT" ]
null
null
null
import graphene class AccountNode(graphene.ObjectType): class Meta: interfaces = (graphene.relay.Node,) name = "Account" uuid = graphene.UUID() email = graphene.String() archived = graphene.Boolean() verified = graphene.Boolean() secondary_email = graphene.String() def resolve_uuid(parent, info): return parent.id def resolve_archived(parent, info): return parent.status.archived def resolve_verified(parent, info): return parent.status.verified def resolve_secondary_email(parent, info): return parent.status.secondary_email @classmethod def get_queryset(cls, queryset, info): return queryset.select_related("status")
24.4
48
0.680328
79
732
6.189873
0.392405
0.102249
0.130879
0.179959
0.171779
0
0
0
0
0
0
0
0.226776
732
29
49
25.241379
0.863958
0
0
0
0
0
0.01776
0
0
0
0
0
0
1
0.238095
false
0
0.047619
0.238095
0.857143
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
2256827affd76dde25350ff31e60a4b339d4ce1c
47
py
Python
modules/2.79/bpy/types/ShaderNodeTexMusgrave.py
cmbasnett/fake-bpy-module
acb8b0f102751a9563e5b5e5c7cd69a4e8aa2a55
[ "MIT" ]
null
null
null
modules/2.79/bpy/types/ShaderNodeTexMusgrave.py
cmbasnett/fake-bpy-module
acb8b0f102751a9563e5b5e5c7cd69a4e8aa2a55
[ "MIT" ]
null
null
null
modules/2.79/bpy/types/ShaderNodeTexMusgrave.py
cmbasnett/fake-bpy-module
acb8b0f102751a9563e5b5e5c7cd69a4e8aa2a55
[ "MIT" ]
null
null
null
ShaderNodeTexMusgrave.texture_mapping = None
11.75
44
0.851064
4
47
9.75
1
0
0
0
0
0
0
0
0
0
0
0
0.106383
47
3
45
15.666667
0.928571
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
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
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
2266f0110cb8e6502cf44385acc91c9b572bdc00
77
py
Python
tests/gpu_master_test.py
j-helland/grn
f1e9ca416e767ffaa9e215ba8f2d21daf4a605dc
[ "Unlicense" ]
null
null
null
tests/gpu_master_test.py
j-helland/grn
f1e9ca416e767ffaa9e215ba8f2d21daf4a605dc
[ "Unlicense" ]
5
2021-11-16T18:34:47.000Z
2021-11-18T17:54:02.000Z
tests/gpu_master_test.py
j-helland/grn
f1e9ca416e767ffaa9e215ba8f2d21daf4a605dc
[ "Unlicense" ]
null
null
null
from grn.core.gpu_master import serve if __name__ == '__main__': serve()
19.25
37
0.714286
11
77
4.181818
0.909091
0
0
0
0
0
0
0
0
0
0
0
0.168831
77
4
38
19.25
0.71875
0
0
0
0
0
0.102564
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
97fade40ef93e365f9e784dc848bb22f2ee9aef2
144
py
Python
examples/basic/context.py
Dev-47/melid
c7d77832a51a0674aa62f5da5807672723ff9201
[ "MIT" ]
null
null
null
examples/basic/context.py
Dev-47/melid
c7d77832a51a0674aa62f5da5807672723ff9201
[ "MIT" ]
null
null
null
examples/basic/context.py
Dev-47/melid
c7d77832a51a0674aa62f5da5807672723ff9201
[ "MIT" ]
null
null
null
import pathlib import sys BASE_DIR = pathlib.Path(__file__).parent.parent.parent sys.path.append(str(BASE_DIR.absolute())) import melid as _
16
54
0.784722
22
144
4.818182
0.590909
0.132075
0
0
0
0
0
0
0
0
0
0
0.104167
144
8
55
18
0.821705
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.6
0
0.6
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
3f0ce5461fe78a23913182645b18f12dac256223
52
py
Python
steelpy/codes/__init__.py
svortega/steelpy
bef35eb8ab8728fc29f57b7070b5f3bac0b0e840
[ "MIT" ]
4
2021-09-28T12:52:01.000Z
2022-02-24T22:30:22.000Z
steelpy/codes/__init__.py
svortega/steelpy
bef35eb8ab8728fc29f57b7070b5f3bac0b0e840
[ "MIT" ]
null
null
null
steelpy/codes/__init__.py
svortega/steelpy
bef35eb8ab8728fc29f57b7070b5f3bac0b0e840
[ "MIT" ]
null
null
null
# Copyright (c) 2019 steelpy #__all__ = ("codes")
10.4
28
0.634615
6
52
4.833333
1
0
0
0
0
0
0
0
0
0
0
0.095238
0.192308
52
4
29
13
0.595238
0.865385
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
3f162791647a98b0eb16de7577fcf67244dd3a49
432
py
Python
deform/__init__.py
timgates42/deform
47e01076586470adf7bf1f84882670d31ab7816d
[ "CC-BY-3.0" ]
null
null
null
deform/__init__.py
timgates42/deform
47e01076586470adf7bf1f84882670d31ab7816d
[ "CC-BY-3.0" ]
2
2021-01-19T13:37:07.000Z
2021-01-19T20:21:50.000Z
deform/__init__.py
timgates42/deform
47e01076586470adf7bf1f84882670d31ab7816d
[ "CC-BY-3.0" ]
null
null
null
"""Deform.""" # flake8: noqa from . import exception # API from . import form # API from . import renderer # API from .exception import TemplateError # API from .exception import ValidationFailure # API from .field import Field # API from .form import Button # API from .form import Form # API from .schema import FileData # API from .template import ZPTRendererFactory # API from .template import default_renderer # API
30.857143
47
0.740741
56
432
5.696429
0.321429
0.219436
0.081505
0.106583
0
0
0
0
0
0
0
0.002849
0.1875
432
13
48
33.230769
0.905983
0.150463
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
3f301a79ae676362200c908f080637f4c233bbbe
461
py
Python
src/tfi/doc/example_code_generators/__init__.py
ajbouh/tfi
6e89e8c8f1ca3b285c788cc6b802fc44f9001290
[ "MIT" ]
160
2017-09-13T00:32:05.000Z
2018-05-21T18:17:32.000Z
src/tfi/doc/example_code_generators/__init__.py
tesserai/tfi
6e89e8c8f1ca3b285c788cc6b802fc44f9001290
[ "MIT" ]
6
2017-09-14T17:54:21.000Z
2018-01-27T19:31:18.000Z
src/tfi/doc/example_code_generators/__init__.py
ajbouh/tfi
6e89e8c8f1ca3b285c788cc6b802fc44f9001290
[ "MIT" ]
11
2017-09-13T00:37:08.000Z
2018-03-05T08:03:34.000Z
from tfi.doc.example_code_generators.json import Json as _Json from tfi.doc.example_code_generators.tensorflow_grpc import TensorFlowGrpc as _TensorFlowGrpc _EXAMPLE_CODE_GENERATORS = {} def example_code_generator(name): return _EXAMPLE_CODE_GENERATORS[name] def _register_code_generator(ex): _EXAMPLE_CODE_GENERATORS[ex.name] = ex _register_code_generator(_Json()) # _register_code_generator(_Python()) _register_code_generator(_TensorFlowGrpc())
28.8125
93
0.83731
59
461
5.983051
0.322034
0.186969
0.29745
0.096317
0.175637
0.175637
0
0
0
0
0
0
0.088937
461
15
94
30.733333
0.840476
0.075922
0
0
0
0
0
0
0
0
0
0
0
1
0.222222
false
0
0.222222
0.111111
0.555556
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
3f469d46d54551b8b8707c9f502cf8c1fc253d69
75
py
Python
exercicio2.py
paulo-caixeta/00_CURSO_PYTHON
03097c7ed625796560a79c01511b8990f37efa6a
[ "MIT" ]
null
null
null
exercicio2.py
paulo-caixeta/00_CURSO_PYTHON
03097c7ed625796560a79c01511b8990f37efa6a
[ "MIT" ]
null
null
null
exercicio2.py
paulo-caixeta/00_CURSO_PYTHON
03097c7ed625796560a79c01511b8990f37efa6a
[ "MIT" ]
null
null
null
x = 10 while not (x == 0): x = x-1 if x % 2 != 0: print (x)
8.333333
19
0.36
16
75
1.75
0.625
0
0
0
0
0
0
0
0
0
0
0.142857
0.44
75
9
20
8.333333
0.5
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0.2
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
1
0
0
0
0
0
0
0
0
4
3f58f975b5be0fc26d24c79f2e27da4a961b26a9
125
py
Python
backend/monitoring/models.py
ealmonte32/api
702254c48677cf5a6f2fe298bced854299868eef
[ "MIT" ]
null
null
null
backend/monitoring/models.py
ealmonte32/api
702254c48677cf5a6f2fe298bced854299868eef
[ "MIT" ]
7
2020-12-04T22:01:16.000Z
2022-02-10T09:47:59.000Z
backend/monitoring/models.py
ealmonte32/api
702254c48677cf5a6f2fe298bced854299868eef
[ "MIT" ]
2
2020-12-21T20:01:54.000Z
2021-01-13T07:08:01.000Z
from django.db import models class CeleryPulseTimestamp(models.Model): timestamp = models.DateTimeField(auto_now=True)
20.833333
51
0.8
15
125
6.6
0.866667
0
0
0
0
0
0
0
0
0
0
0
0.12
125
5
52
25
0.9
0
0
0
0
0
0
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
58cad04060b4562909aa09b293a6aad8bad39b63
112
py
Python
notebooks/solutions/alignment_00.py
cpaniaguam/pandas-head-to-tail
c809b6ae5834057c51006ecc908266e6d5d05b15
[ "CC-BY-4.0" ]
88
2016-12-29T06:49:10.000Z
2022-03-19T20:37:27.000Z
notebooks/solutions/alignment_00.py
paritosh666/pandas-head-to-tail
891a72ea5a21f8e0c8f6a6d22c03a1de26a6f30b
[ "CC-BY-4.0" ]
8
2018-06-17T21:47:27.000Z
2018-07-11T22:31:17.000Z
notebooks/solutions/alignment_00.py
paritosh666/pandas-head-to-tail
891a72ea5a21f8e0c8f6a6d22c03a1de26a6f30b
[ "CC-BY-4.0" ]
76
2016-12-30T08:56:28.000Z
2022-02-27T08:05:26.000Z
cpi = pd.read_csv("data/cpi.csv", parse_dates=['DATE']) gdp = pd.read_csv("data/gdp.csv", parse_dates=['DATE'])
37.333333
55
0.678571
20
112
3.6
0.45
0.166667
0.25
0.361111
0
0
0
0
0
0
0
0
0.071429
112
2
56
56
0.692308
0
0
0
0
0
0.285714
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
58d2abca3c4bfdbd670642eb6576b6b246d31e86
123
py
Python
coati/errors.py
lgovea/coati
636ec99d5baff4cdcbfe7478611cf54d4cbf4546
[ "MIT" ]
null
null
null
coati/errors.py
lgovea/coati
636ec99d5baff4cdcbfe7478611cf54d4cbf4546
[ "MIT" ]
9
2017-05-25T23:43:41.000Z
2017-09-15T22:05:48.000Z
coati/errors.py
lgovea/coati
636ec99d5baff4cdcbfe7478611cf54d4cbf4546
[ "MIT" ]
2
2017-10-13T20:08:22.000Z
2018-12-05T21:17:06.000Z
"""Custom exceptions classes""" class CoatiException(Exception): pass class CLIException(CoatiException): pass
12.3
35
0.731707
11
123
8.181818
0.727273
0
0
0
0
0
0
0
0
0
0
0
0.170732
123
9
36
13.666667
0.882353
0.203252
0
0.5
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
4
58eee1794ef8c7d31621bce108b49e8b3d3b4968
216
py
Python
tests/test_design.py
antmicro/topwrap
e9b2d41c0d7ce197b099ca06c67597c48b243e56
[ "Apache-2.0" ]
1
2021-12-08T06:26:54.000Z
2021-12-08T06:26:54.000Z
tests/test_design.py
antmicro/topwrap
e9b2d41c0d7ce197b099ca06c67597c48b243e56
[ "Apache-2.0" ]
null
null
null
tests/test_design.py
antmicro/topwrap
e9b2d41c0d7ce197b099ca06c67597c48b243e56
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2021 Antmicro # SPDX-License-Identifier: Apache-2.0 class TestDesign: def test_design(self): from fpga_topwrap.design import build_design build_design('tests/data/design.yaml')
21.6
52
0.717593
29
216
5.206897
0.827586
0.145695
0
0
0
0
0
0
0
0
0
0.034091
0.185185
216
9
53
24
0.823864
0.291667
0
0
0
0
0.146667
0.146667
0
0
0
0
0
1
0.25
false
0
0.25
0
0.75
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
4
58f7dad78efa04c40ff607d153b38e840b77848e
167
py
Python
src/models/__init__.py
hemantranvir/flask_rest_server
44e00199aaf05ea3945d65ae83eb59a50f58191e
[ "MIT" ]
null
null
null
src/models/__init__.py
hemantranvir/flask_rest_server
44e00199aaf05ea3945d65ae83eb59a50f58191e
[ "MIT" ]
null
null
null
src/models/__init__.py
hemantranvir/flask_rest_server
44e00199aaf05ea3945d65ae83eb59a50f58191e
[ "MIT" ]
null
null
null
from flask_sqlalchemy import SQLAlchemy from flask_bcrypt import Bcrypt db = SQLAlchemy() bcrypt = Bcrypt() from .CustomerModel import CustomerModel, CustomerSchema
20.875
56
0.826347
19
167
7.157895
0.421053
0.132353
0
0
0
0
0
0
0
0
0
0
0.125749
167
7
57
23.857143
0.931507
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.6
0
0.6
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
58fd098d94be16e3dcdc32f1eff5f2488b39baab
8,761
py
Python
salespersonTrackerREST/migrations/0001_initial.py
VirangParekh/salesperson-tracker-web
601ccfb397fb73754f44ecbaa0cf5226183ac018
[ "MIT" ]
null
null
null
salespersonTrackerREST/migrations/0001_initial.py
VirangParekh/salesperson-tracker-web
601ccfb397fb73754f44ecbaa0cf5226183ac018
[ "MIT" ]
null
null
null
salespersonTrackerREST/migrations/0001_initial.py
VirangParekh/salesperson-tracker-web
601ccfb397fb73754f44ecbaa0cf5226183ac018
[ "MIT" ]
null
null
null
# Generated by Django 3.0.4 on 2020-04-19 09:03 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name="Manager", fields=[ ( "id", models.AutoField( auto_created=True, primary_key=True, serialize=False, verbose_name="ID", ), ), ("Name", models.CharField(max_length=100)), ("Photo", models.ImageField(upload_to="managers")), ("Age", models.IntegerField()), ( "user_ref", models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, ), ), ], ), migrations.CreateModel( name="warehouse", fields=[ ("Item_Group_Code", models.IntegerField()), ( "Company_Item_code", models.IntegerField(primary_key=True, serialize=False), ), ("Company_Code", models.IntegerField()), ("Quantity", models.IntegerField()), ("Name", models.CharField(max_length=100)), ("Photo", models.ImageField(upload_to="Item")), ("Description", models.TextField()), ], ), migrations.CreateModel( name="Salesperson", fields=[ ( "id", models.AutoField( auto_created=True, primary_key=True, serialize=False, verbose_name="ID", ), ), ("Name", models.CharField(max_length=100)), ("Photo", models.ImageField(upload_to="salesperson")), ("Age", models.IntegerField()), ("last_location_lat", models.FloatField()), ("last_location_long", models.FloatField()), ("isLoggedin", models.BooleanField(default=False)), ( "Managed_By", models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to="salespersonTrackerREST.Manager", ), ), ( "User_ref", models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, ), ), ], ), migrations.CreateModel( name="ItemAssign", fields=[ ( "id", models.AutoField( auto_created=True, primary_key=True, serialize=False, verbose_name="ID", ), ), ("Assign_Date", models.DateField()), ("Assign_Time", models.TimeField()), ("assign_quantity", models.IntegerField()), ( "Assigned_By", models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to="salespersonTrackerREST.Manager", ), ), ( "Assigned_To", models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to="salespersonTrackerREST.Salesperson", ), ), ( "Item_Ref", models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to="salespersonTrackerREST.warehouse", ), ), ], ), migrations.CreateModel( name="Inventory", fields=[ ( "id", models.AutoField( auto_created=True, primary_key=True, serialize=False, verbose_name="ID", ), ), ("Quantity", models.IntegerField(blank=True)), ( "Salesperson_Ref", models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to="salespersonTrackerREST.Salesperson", ), ), ( "item_Ref", models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to="salespersonTrackerREST.warehouse", ), ), ], ), migrations.CreateModel( name="DailyTarget", fields=[ ( "id", models.AutoField( auto_created=True, primary_key=True, serialize=False, verbose_name="ID", ), ), ("Assigned_Date", models.DateField()), ("Assigned_Time", models.TimeField()), ("Quantity", models.IntegerField()), ("Completed", models.BooleanField()), ("Notes", models.TextField()), ( "Assigned_By", models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to="salespersonTrackerREST.Manager", ), ), ( "Assigned_To", models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to="salespersonTrackerREST.Salesperson", ), ), ( "Item_Ref", models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to="salespersonTrackerREST.Inventory", ), ), ], ), migrations.CreateModel( name="Bill", fields=[ ( "id", models.AutoField( auto_created=True, primary_key=True, serialize=False, verbose_name="ID", ), ), ("Issued_To", models.CharField(max_length=100)), ("Quantity", models.IntegerField()), ("Buyer_Contact", models.IntegerField()), ("Buyer_email", models.CharField(max_length=100)), ("SoftCopy", models.FileField(upload_to="Bills")), ( "Salesperson_Ref", models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to="salespersonTrackerREST.Salesperson", ), ), ( "Target_ref", models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to="salespersonTrackerREST.DailyTarget", ), ), ( "item_ref", models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to="salespersonTrackerREST.Inventory", ), ), ], ), ]
35.326613
75
0.384773
530
8,761
6.2
0.190566
0.038953
0.063907
0.100426
0.665855
0.640901
0.640901
0.640901
0.640901
0.640901
0
0.007133
0.519918
8,761
247
76
35.469636
0.774132
0.005136
0
0.716667
1
0
0.106266
0.044526
0
0
0
0
0
1
0
false
0
0.0125
0
0.029167
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
1
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
45196f8e8bdbbfc73a09bb69cc9fee53fcd84270
94
py
Python
tests/wasp1/AllAnswerSets/choice_32.test.py
bernardocuteri/wasp
05c8f961776dbdbf7afbf905ee00fc262eba51ad
[ "Apache-2.0" ]
19
2015-12-03T08:53:45.000Z
2022-03-31T02:09:43.000Z
tests/wasp1/AllAnswerSets/choice_32.test.py
bernardocuteri/wasp
05c8f961776dbdbf7afbf905ee00fc262eba51ad
[ "Apache-2.0" ]
80
2017-11-25T07:57:32.000Z
2018-06-10T19:03:30.000Z
tests/wasp1/AllAnswerSets/choice_32.test.py
bernardocuteri/wasp
05c8f961776dbdbf7afbf905ee00fc262eba51ad
[ "Apache-2.0" ]
6
2015-01-15T07:51:48.000Z
2020-06-18T14:47:48.000Z
input = """ a v b. :- b. a v x v y :- x. x v y :- y. :- not x, not y. """ output = """ """
7.230769
16
0.351064
20
94
1.65
0.4
0.121212
0.181818
0
0
0
0
0
0
0
0
0
0.351064
94
12
17
7.833333
0.540984
0
0
0.222222
0
0
0.659574
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
1
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
453b5b4e8b38ba0e2d53b79a2b2e11497aeea32c
91
py
Python
userprofile/models.py
testdrivenio/django-static-media-files
fa88f76d69097b42777d0ea07afc659cc2de9a6b
[ "MIT" ]
2
2022-03-06T00:28:57.000Z
2022-03-13T12:14:04.000Z
userprofile/models.py
testdrivenio/django-static-media-files
fa88f76d69097b42777d0ea07afc659cc2de9a6b
[ "MIT" ]
null
null
null
userprofile/models.py
testdrivenio/django-static-media-files
fa88f76d69097b42777d0ea07afc659cc2de9a6b
[ "MIT" ]
1
2022-03-18T10:58:00.000Z
2022-03-18T10:58:00.000Z
from django.db import models class Profile(models.Model): image = models.FileField()
15.166667
30
0.736264
12
91
5.583333
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.164835
91
5
31
18.2
0.881579
0
0
0
0
0
0
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
18b49d7dbbd022e16b86be797bf2a099ad1e0ab9
314
py
Python
kats/metrics/__init__.py
vishalbelsare/Kats
b555e97c84662b8b92b23fd3687c72583e0e9a47
[ "MIT" ]
null
null
null
kats/metrics/__init__.py
vishalbelsare/Kats
b555e97c84662b8b92b23fd3687c72583e0e9a47
[ "MIT" ]
null
null
null
kats/metrics/__init__.py
vishalbelsare/Kats
b555e97c84662b8b92b23fd3687c72583e0e9a47
[ "MIT" ]
null
null
null
# Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from . import metrics # noqa # usort: skip from . import metadata # noqa # usort: skip from .metrics import * # noqa # usort: skip
34.888889
65
0.72293
47
314
4.829787
0.638298
0.118943
0.171806
0.14978
0
0
0
0
0
0
0
0
0.203822
314
8
66
39.25
0.908
0.713376
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
18c32074c6efda493629cc562b03c3a9fff7cf0d
53
py
Python
dependencies/panda/direct/tkwidgets/__init__.py
SuperM0use24/Project-Altis
8dec7518a4d3f902cee261fd522ebebc3c171a42
[ "Apache-2.0" ]
null
null
null
dependencies/panda/direct/tkwidgets/__init__.py
SuperM0use24/Project-Altis
8dec7518a4d3f902cee261fd522ebebc3c171a42
[ "Apache-2.0" ]
20
2021-05-03T18:02:23.000Z
2022-03-12T12:01:04.000Z
Lib/site-packages/direct/tkwidgets/__init__.py
fochoao/cpython
3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9
[ "bzip2-1.0.6", "0BSD" ]
1
2021-04-09T00:02:59.000Z
2021-04-09T00:02:59.000Z
"""This package provides various Tkinter widgets."""
26.5
52
0.754717
6
53
6.666667
1
0
0
0
0
0
0
0
0
0
0
0
0.113208
53
1
53
53
0.851064
0.867925
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
7a1a32a47c1375b2a8adde669ad3ee7dcd270434
57
py
Python
src/refactory/patterns/__init__.py
lmmx/refactory
39e97528733f4cb2607a89184e3b0049f9784547
[ "MIT" ]
null
null
null
src/refactory/patterns/__init__.py
lmmx/refactory
39e97528733f4cb2607a89184e3b0049f9784547
[ "MIT" ]
1
2022-02-07T22:18:30.000Z
2022-02-07T22:18:30.000Z
src/refactory/patterns/__init__.py
lmmx/refactory
39e97528733f4cb2607a89184e3b0049f9784547
[ "MIT" ]
null
null
null
from . import early_returns __all__ = ["early_returns"]
14.25
27
0.754386
7
57
5.285714
0.714286
0.648649
0
0
0
0
0
0
0
0
0
0
0.140351
57
3
28
19
0.755102
0
0
0
0
0
0.22807
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
e1454a980f4075874311356f7961c1948fff1fb6
628
py
Python
supplychainpy/reporting/blueprints/dashboard/__init__.py
luisccalves/supplychainpy
63a10b77ffdcc5bca71e815c70667c819d8f9af0
[ "BSD-3-Clause" ]
231
2016-05-30T02:34:45.000Z
2022-03-28T17:00:29.000Z
supplychainpy/reporting/blueprints/dashboard/__init__.py
luisccalves/supplychainpy
63a10b77ffdcc5bca71e815c70667c819d8f9af0
[ "BSD-3-Clause" ]
77
2016-03-23T16:28:34.000Z
2021-09-30T22:08:03.000Z
supplychainpy/reporting/blueprints/dashboard/__init__.py
luisccalves/supplychainpy
63a10b77ffdcc5bca71e815c70667c819d8f9af0
[ "BSD-3-Clause" ]
103
2016-08-10T19:53:09.000Z
2022-03-16T16:34:38.000Z
from supplychainpy.reporting.blueprints.dashboard.views import (dashboard, sku_detail, get_classification_summary, abxyz,top_shortages, top_excess, sku, total_inventory, currency)
69.777778
91
0.246815
22
628
6.772727
0.863636
0
0
0
0
0
0
0
0
0
0
0
0.730892
628
8
92
78.5
0.881657
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.125
0
0.125
0.125
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
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
e14a648f118f64b66d46c6bef51efbe98d1113e8
116
py
Python
webapp/api/games.py
wyld/vassal_online
6b410dd3a83abf25c1ca97dc3aae4c3ea0a04d34
[ "BSD-3-Clause" ]
null
null
null
webapp/api/games.py
wyld/vassal_online
6b410dd3a83abf25c1ca97dc3aae4c3ea0a04d34
[ "BSD-3-Clause" ]
1
2017-12-14T07:00:26.000Z
2017-12-14T07:00:26.000Z
webapp/api/games.py
wyld/vassal_online
6b410dd3a83abf25c1ca97dc3aae4c3ea0a04d34
[ "BSD-3-Clause" ]
null
null
null
from repository import games from api.base import ListResource class GamesList(ListResource): repository = games
16.571429
33
0.818966
14
116
6.785714
0.642857
0
0
0
0
0
0
0
0
0
0
0
0.137931
116
6
34
19.333333
0.95
0
0
0
0
0
0
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
e173016c8e970a70e458c6c3b49322c784d2b38b
129
py
Python
tests/fixture/test_rename.py
qianchilang/learning-pytest
453e42a64b532c166856e43d312519b0afe0e91d
[ "MIT" ]
42
2019-02-15T07:44:51.000Z
2022-01-31T02:04:17.000Z
tests/fixture/test_rename.py
qianchilang/learning-pytest
453e42a64b532c166856e43d312519b0afe0e91d
[ "MIT" ]
2
2019-07-08T01:14:47.000Z
2021-07-22T08:36:41.000Z
tests/fixture/test_rename.py
qianchilang/learning-pytest
453e42a64b532c166856e43d312519b0afe0e91d
[ "MIT" ]
21
2019-06-13T07:46:07.000Z
2022-02-15T02:58:33.000Z
import pytest @pytest.fixture(name='age') def calculate_average_age(): return 28 def test_age(age): assert age == 28
11.727273
28
0.689922
19
129
4.526316
0.631579
0
0
0
0
0
0
0
0
0
0
0.038462
0.193798
129
10
29
12.9
0.788462
0
0
0
0
0
0.023256
0
0
0
0
0
0.166667
1
0.333333
false
0
0.166667
0.166667
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
4
e184ec5d6e7f1db6dd339ee4d34dfb62c95de234
102
py
Python
front/front/wsgi.py
VladimirSiv/semantic-search-system
96b6581f191aacb1157b1408b2726e317ddc2c49
[ "MIT" ]
1
2021-07-01T08:53:46.000Z
2021-07-01T08:53:46.000Z
front/front/wsgi.py
VladimirSiv/semantic-search-system
96b6581f191aacb1157b1408b2726e317ddc2c49
[ "MIT" ]
null
null
null
front/front/wsgi.py
VladimirSiv/semantic-search-system
96b6581f191aacb1157b1408b2726e317ddc2c49
[ "MIT" ]
1
2021-12-29T01:18:38.000Z
2021-12-29T01:18:38.000Z
from front.logging import logger_setup from front.server import app logger_setup() application = app
17
38
0.823529
15
102
5.466667
0.6
0.219512
0
0
0
0
0
0
0
0
0
0
0.127451
102
5
39
20.4
0.921348
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
e19e2a6a5a79fc91cce47f10b91f7a1ac7faf129
21
py
Python
tests/lib/__init__.py
LeandroIssa/acer-air-monitor-2018
0d394eb6a228d950802fc1f94bbe6189cd902ea3
[ "MIT" ]
null
null
null
tests/lib/__init__.py
LeandroIssa/acer-air-monitor-2018
0d394eb6a228d950802fc1f94bbe6189cd902ea3
[ "MIT" ]
13
2021-10-04T16:27:08.000Z
2022-03-18T16:17:39.000Z
tests/lib/__init__.py
LeandroIssa/acer-air-monitor-2018
0d394eb6a228d950802fc1f94bbe6189cd902ea3
[ "MIT" ]
1
2022-03-02T16:22:40.000Z
2022-03-02T16:22:40.000Z
"""Tests for lib."""
10.5
20
0.52381
3
21
3.666667
1
0
0
0
0
0
0
0
0
0
0
0
0.142857
21
1
21
21
0.611111
0.666667
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
e1b4b0e34d0eb56135f0a76cdd2178d0cc59fb17
35
py
Python
python/testData/psi/assignment/TuplePack.py
truthiswill/intellij-community
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
[ "Apache-2.0" ]
2
2018-12-29T09:53:39.000Z
2018-12-29T09:53:42.000Z
python/testData/psi/assignment/TuplePack.py
truthiswill/intellij-community
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/psi/assignment/TuplePack.py
truthiswill/intellij-community
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
<dst>some_tuple = <src1>1, <src2>2
17.5
34
0.657143
7
35
3.142857
1
0
0
0
0
0
0
0
0
0
0
0.129032
0.114286
35
1
35
35
0.580645
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
4
8356b36707609c84b96b81530a2cd5929992a7f5
9,619
py
Python
pdfimage/pdf.py
MatthewDaws/PDFImage
c5bcdbc324a28271fb9fa006989270ef0d1ea0d5
[ "MIT" ]
3
2019-06-11T14:12:15.000Z
2022-02-17T10:57:20.000Z
pdfimage/pdf.py
MatthewDaws/PDFImage
c5bcdbc324a28271fb9fa006989270ef0d1ea0d5
[ "MIT" ]
null
null
null
pdfimage/pdf.py
MatthewDaws/PDFImage
c5bcdbc324a28271fb9fa006989270ef0d1ea0d5
[ "MIT" ]
null
null
null
""" pdf.py ~~~~~~ Common data structures for PDF files. Some resources: - https://stackoverflow.com/questions/10935091/imagemagick-generate-raw-image-data-for-pdf-flate-embedding - https://www.prepressure.com/pdf/basics/compression - https://www.adobe.com/devnet/pdf/pdf_reference.html """ import collections as _collections class PDFObjectId(): """Identified for a PDF object. :param number: The number of the object :param generation: The "generation" of the object """ def __init__(self, number, generation): self._num = number self._gen = generation @property def number(self): return self._num @property def generation(self): return self._gen def __eq__(self, other): return isinstance(other, PDFObjectId) and self._num == other._num and self._gen == other._gen def __hash__(self): return hash(str(self._num) + str(self._gen)) def __repr__(self): return "PDFObjectId({}, {})".format(self._num, self._gen) def __bytes__(self): return "{} {} R".format(self._num, self._gen).encode() class PDFObject(PDFObjectId): """A PDF object. Unlike its base class :class:`PDFObjectId`, the id numbers are mutable, which allows generation of the object before assigning numbers. :param data: Contents of the object; should be a typed PDF object. :param number: The number of the object :param generation: The "generation" of the object """ def __init__(self, data=None, number=None, generation=None): super().__init__(number, generation) self._data = data @property def data(self): return self._data @data.setter def data(self, d): self._data = d @property def number(self): return self._num @number.setter def number(self, n): self._num = n @property def generation(self): return self._gen @generation.setter def generation(self, g): self._gen = g def __repr__(self): return "PDFObject({}, {})".format(self._num, self._gen) def __bytes__(self): if self.number is None or self.generation is None: raise ValueError("Not initialised with a valid id") return super().__bytes__() class PDFBoolean(): def __init__(self, value): self._v = value @property def value(self): return self._v def __bool__(self): return self._v == True def __eq__(self, other): return isinstance(other, PDFBoolean) and self._v == other._v def __hash__(self): return hash(bytes(self)) def __repr__(self): return "PDFBoolean({})".format(bool(self)) def __bytes__(self): if bool(self): return b"true" return b"false" class PDFNumeric(): """A numeric object. Initialise with an int, a float, or a string or bytes. Raises `ValueError` on failure to convert.""" def __init__(self, value): if isinstance(value, bytes): value = value.decode() if isinstance(value, str): if "." in value: value = float(value) else: value = int(value) self._v = value @property def value(self): return self._v def __eq__(self, other): return isinstance(other, PDFNumeric) and self._v == other._v def __hash__(self): return hash(self._v) def __int__(self): return int(self._v) def __float__(self): return float(self._v) def __repr__(self): return "PDFNumeric({})".format(self._v) def __bytes__(self): return str(self._v).encode() class PDFString(): """Actually a _bytes_ string!""" def __init__(self, value): try: self._v = bytes(value) except TypeError: self._v = value.encode() @property def value(self): return self._v def __eq__(self, other): return isinstance(other, PDFString) and self._v == other._v def __hash__(self): return hash(self._v) def __repr__(self): return "PDFString({})".format(self._v) def __bytes__(self): out = b"(" for i in range(len(self._v)): x = self._v[i:i+1] if x == b"\n": out += b"\\n" elif x == b"\r": out += b"\\r" elif x == b"\t": out += b"\\t" elif x == b"\b": out += b"\\b" elif x == b"\f": out += b"\\f" elif x == b"(": out += b"\\(" elif x == b")": out += b"\\)" elif x == b"\\": out += b"\\\\" else: out += x return out + b")" class PDFName(): def __init__(self, name): try: self._v = bytes(name) except TypeError: self._v = name.encode() @property def name(self): return self._v def __eq__(self, other): return isinstance(other, PDFName) and self._v == other._v def __hash__(self): return hash(self._v) def __repr__(self): return "PDFName({})".format(self._v) def __bytes__(self): out = b"/" for x in self._v: if x >= 33 and x <= 126: out += bytes([x]) elif x == 0: raise ValueError("Cannot have 0 byte in name") else: h = hex(x)[2:].upper().encode() if len(h) == 1: h = b"0" + h out += b"#" + h return out class PDFNull(): def __eq__(self, other): return isinstance(other, PDFNull) def __repr__(self): return "PDFNull()" def __bytes__(self): return b"null" class PDFArray(): def __init__(self, entries=[]): self._v = list(entries) def __getitem__(self, i): return self._v[i] def __eq__(self, other): return isinstance(other, PDFArray) and self._v == other._v def __hash__(self): return hash(self._v) def __repr__(self): return "PDFArray({})".format(self._v) def __bytes__(self): out = b" ".join(bytes(x) for x in self._v) return b"[" + out + b"]" class PDFDictionary(_collections.UserDict): def __init__(self, entry_pairs=[]): super().__init__() for k, v in entry_pairs: self.data[k] = v def __hash__(self): return hash(self.data) def __eq__(self, other): return isinstance(other, PDFDictionary) and self.data == other.data def __repr__(self): return "PDFDictionary({})".format(self.data) def __bytes__(self): out = b"\n".join(b" ".join([bytes(k) for k in x]) for x in self.data.items()) return b"<<" + out + b">>" class PDFSimpleDict(_collections.UserDict): """A simplied PDF Dictionary object, which is just a thin wrapper around a standard Python dictionary. Can be converted to a full :class:`PDFDictionary` instance according to these rules: - Each key must be convertible to a :class:`PDFName` instance (i.e. a string or bytes string) - Values can be: - Strings / Bytes, which are converted to :class:`PDFName` instances - Numbers, which are converted to :class:`PDFNumeric` instances - `bool`s, which are converted to :class:`PDFBoolean` instances - Should otherwise be pdf object already """ def __init__(self): super().__init__() def to_dict(self): """Convert to a :class:`PDFDictionary` instance""" value_pairs = [] for key, value in self.items(): key = PDFName(key) if isinstance(value, str) or isinstance(value, bytes): value = PDFName(value) elif isinstance(value, bool): value = PDFBoolean(value) elif isinstance(value, int) or isinstance(value, float): value = PDFNumeric(value) value_pairs.append((key, value)) return PDFDictionary(value_pairs) class PDFRawStream(): """Raw because the associated dictionary is not present.""" def __init__(self, data): self._v = bytes(data) @property def contents(self): return self._v def __eq__(self, other): return isinstance(other, PDFRawStream) and self._v == other._v def __hash__(self): return hash(self._v) def __repr__(self): return "PDFRawStream(length={})".format(len(self._v)) def __bytes__(self): return b"stream\n" + self._v + b"\nendstream" class PDFStream(PDFDictionary): """Combines a dictionary and the associated stream.""" def __init__(self, entry_pairs, stream_data): super().__init__(entry_pairs) self._stream_data = stream_data @property def stream_contents(self): return self._stream_data def __hash__(self): return hash(self.data) + hash(self._stream_data) def __eq__(self, other): return (isinstance(other, PDFStream) and self.data == other.data and self._stream_data == other._stream_data) def __repr__(self): return "PDFDictionary({}, stream length={})".format(self.data, len(self._stream_data)) def __bytes__(self): out = b"\n".join(b" ".join([bytes(k) for k in x]) for x in self.data.items()) out = b"<<" + out + b">>" return out + b"\n" + b"stream\n" + self._stream_data + b"\nendstream"
26.425824
106
0.572617
1,182
9,619
4.369712
0.159898
0.075508
0.026331
0.036205
0.369603
0.318683
0.291191
0.225557
0.192836
0.18122
0
0.002829
0.301799
9,619
363
107
26.498623
0.76623
0.162595
0
0.37395
1
0
0.04581
0.002903
0
0
0
0
0
1
0.298319
false
0
0.004202
0.205882
0.596639
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
4
835e36623c004488bad09cb1a94affe184d26e21
223
py
Python
7kyu/(7 kyu) Last/(7 kyu) Last.py
e1r0nd/codewars
9b05e32a26ee5f36a4b3f1e76a71e0c79b3c865b
[ "MIT" ]
49
2018-04-30T06:42:45.000Z
2021-07-22T16:39:02.000Z
(7 kyu) Last/(7 kyu) Last.py
novsunheng/codewars
c54b1d822356889b91587b088d02ca0bd3d8dc9e
[ "MIT" ]
1
2020-08-31T02:36:53.000Z
2020-08-31T10:14:00.000Z
(7 kyu) Last/(7 kyu) Last.py
novsunheng/codewars
c54b1d822356889b91587b088d02ca0bd3d8dc9e
[ "MIT" ]
25
2018-04-02T20:57:58.000Z
2021-05-28T15:24:51.000Z
# #1 # def last(*args): # last = args[-1] # try: # return last[-1] # except TypeError: # return last #2 def last(*args): try: return args[-1][-1] except: return args[-1]
15.928571
27
0.466368
28
223
3.714286
0.321429
0.230769
0.211538
0
0
0
0
0
0
0
0
0.049645
0.367713
223
13
28
17.153846
0.687943
0.511211
0
0
0
0
0
0
0
0
0
0
0
1
0.2
true
0
0
0
0.6
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
836af6a34de0136e0ed2bf3ec306b2f3db5dcbd7
97
py
Python
external/lemonade/dist/lemonade/exceptions.py
almartin82/bayeslite
a27f243b5f16cc6a01e84336a829e5b65d665b7b
[ "Apache-2.0" ]
964
2015-09-24T15:02:05.000Z
2022-03-29T21:41:21.000Z
external/lemonade/dist/lemonade/exceptions.py
almartin82/bayeslite
a27f243b5f16cc6a01e84336a829e5b65d665b7b
[ "Apache-2.0" ]
435
2015-09-23T16:46:58.000Z
2020-04-19T12:32:03.000Z
external/lemonade/dist/lemonade/exceptions.py
almartin82/bayeslite
a27f243b5f16cc6a01e84336a829e5b65d665b7b
[ "Apache-2.0" ]
86
2015-10-24T20:08:30.000Z
2021-08-09T13:53:00.000Z
class BadGrammarError(Exception): pass class EmptyGrammarError(BadGrammarError): pass
12.125
41
0.762887
8
97
9.25
0.625
0
0
0
0
0
0
0
0
0
0
0
0.175258
97
7
42
13.857143
0.925
0
0
0.5
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
4
55e249c60c92e1cec3e84821b44e188c953bf5ae
1,084
py
Python
applications/MultilevelMonteCarloApplication/external_libraries/XMC/xmc/__init__.py
ma6yu/Kratos
02380412f8a833a2cdda6791e1c7f9c32e088530
[ "BSD-4-Clause" ]
null
null
null
applications/MultilevelMonteCarloApplication/external_libraries/XMC/xmc/__init__.py
ma6yu/Kratos
02380412f8a833a2cdda6791e1c7f9c32e088530
[ "BSD-4-Clause" ]
null
null
null
applications/MultilevelMonteCarloApplication/external_libraries/XMC/xmc/__init__.py
ma6yu/Kratos
02380412f8a833a2cdda6791e1c7f9c32e088530
[ "BSD-4-Clause" ]
null
null
null
__version__ = "2.0.0-dev" # Alphabeticak order # TODO add method and class definition modules from .bayesianEstimator import BayesianEstimator from .errorEstimator import ErrorEstimator from .estimationAssembler import EstimationAssembler from .hierarchyOptimiser import HierarchyOptimiser from .distributedEnvironmentFramework import * from .modelEstimator import ModelEstimator from .momentEstimator import ( MomentEstimator, CombinedMomentEstimator, MultiMomentEstimator, MultiCombinedMomentEstimator, ) from .monoCriterion import MonoCriterion from .monteCarloIndex import MonteCarloIndex from .monteCarloSampler import MonteCarloSampler from .multiCriterion import MultiCriterion from .randomGeneratorWrapper import RandomGeneratorWrapper from .sampleGenerator import SampleGenerator from .classDefs_solverWrapper.singleLevelRNGSolverWrapper import SingleLevelRNGSolverWrapper from .classDefs_solverWrapper.multiLevelRNGSolverWrapper import MultiLevelRNGSolverWrapper from .statisticalEstimator import StatisticalEstimator from .xmcAlgorithm import XMCAlgorithm
40.148148
92
0.872694
88
1,084
10.681818
0.420455
0.02766
0.055319
0
0
0
0
0
0
0
0
0.003061
0.095941
1,084
26
93
41.692308
0.956122
0.058118
0
0
0
0
0.008841
0
0
0
0
0.038462
0
1
0
false
0
0.73913
0
0.73913
0
0
0
1
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
0
1
0
1
0
0
4
55ed43007f2efa8c42ed2c3720b3263c4671b241
1,882
py
Python
src/tt_impacts/tt_impacts/models.py
al-arz/the-tale
542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5
[ "BSD-3-Clause" ]
85
2017-11-21T12:22:02.000Z
2022-03-27T23:07:17.000Z
src/tt_impacts/tt_impacts/models.py
al-arz/the-tale
542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5
[ "BSD-3-Clause" ]
545
2017-11-04T14:15:04.000Z
2022-03-27T14:19:27.000Z
src/tt_impacts/tt_impacts/models.py
al-arz/the-tale
542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5
[ "BSD-3-Clause" ]
45
2017-11-11T12:36:30.000Z
2022-02-25T06:10:44.000Z
from django.db import models class Impact(models.Model): id = models.BigAutoField(primary_key=True) actor_type = models.IntegerField() actor = models.BigIntegerField() target_type = models.IntegerField() target = models.BigIntegerField() amount = models.BigIntegerField() transaction = models.UUIDField(editable=False) created_at = models.DateTimeField(auto_now_add=True, db_index=True) created_at_turn = models.BigIntegerField() class Meta: db_table = 'impacts' index_together = (('actor_type', 'actor', 'created_at'), ('target_type', 'target', 'created_at'), ('actor_type', 'actor', 'target_type', 'target', 'created_at')) class ActorImpact(models.Model): id = models.BigAutoField(primary_key=True) actor_type = models.IntegerField() actor = models.BigIntegerField() target_type = models.IntegerField() target = models.BigIntegerField() amount = models.BigIntegerField() created_at = models.DateTimeField(auto_now_add=True) updated_at = models.DateTimeField(auto_now=True) updated_at_turn = models.BigIntegerField() class Meta: db_table = 'actors_impacts' unique_together = (('actor_type', 'actor', 'target_type', 'target'),) index_together = (('actor_type', 'actor'), ('target_type', 'target')) class TargetImpact(models.Model): id = models.BigAutoField(primary_key=True) target_type = models.IntegerField() target = models.BigIntegerField() amount = models.BigIntegerField() created_at = models.DateTimeField(auto_now_add=True) updated_at = models.DateTimeField(auto_now=True) updated_at_turn = models.BigIntegerField() class Meta: db_table = 'targets_impacts' unique_together = (('target_type', 'target'),)
28.089552
89
0.668969
198
1,882
6.111111
0.207071
0.190909
0.090909
0.103306
0.831405
0.77686
0.752066
0.689256
0.581818
0.581818
0
0
0.21254
1,882
66
90
28.515152
0.816464
0
0
0.595238
0
0
0.112174
0
0
0
0
0
0
1
0
false
0
0.02381
0
0.761905
0
0
0
0
null
0
0
0
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
4
3601e1c7b43ee3aed1739bbbc1bd283ca5bd8f31
204
py
Python
deploy/env/local/bin/rst2s5.py
wangvictor2012/liuwei
0a06f8fd56d78162f81f1e7e7def7bfdeb4472e1
[ "BSD-3-Clause" ]
null
null
null
deploy/env/local/bin/rst2s5.py
wangvictor2012/liuwei
0a06f8fd56d78162f81f1e7e7def7bfdeb4472e1
[ "BSD-3-Clause" ]
null
null
null
deploy/env/local/bin/rst2s5.py
wangvictor2012/liuwei
0a06f8fd56d78162f81f1e7e7def7bfdeb4472e1
[ "BSD-3-Clause" ]
null
null
null
#!/root/SciPyCentral/deploy/env/bin/python # EASY-INSTALL-SCRIPT: 'docutils==0.12','rst2s5.py' __requires__ = 'docutils==0.12' import pkg_resources pkg_resources.run_script('docutils==0.12', 'rst2s5.py')
34
55
0.754902
30
204
4.9
0.633333
0.183673
0.22449
0.231293
0.340136
0.340136
0
0
0
0
0
0.067358
0.053922
204
5
56
40.8
0.694301
0.446078
0
0
0
0
0.333333
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
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
36a9078ab62d2eb397eddbff67f543f90b75bdf3
242
py
Python
main/serializers.py
tanishkaa31/Air-Quality-Index-Prediction
59b53e239765dd1b7ab2b3dbf91e289b190306c9
[ "MIT" ]
1
2022-02-08T05:16:30.000Z
2022-02-08T05:16:30.000Z
main/serializers.py
tanishkaa31/Air-Quality-Index-Prediction
59b53e239765dd1b7ab2b3dbf91e289b190306c9
[ "MIT" ]
null
null
null
main/serializers.py
tanishkaa31/Air-Quality-Index-Prediction
59b53e239765dd1b7ab2b3dbf91e289b190306c9
[ "MIT" ]
1
2021-06-17T19:58:36.000Z
2021-06-17T19:58:36.000Z
from rest_framework import fields, serializers from .models import Data_Predicted class DataPredSerializers(serializers.ModelSerializer): class Meta: fields = ('Date','PM10','NO2','SO2','O3','AQI') model = Data_Predicted
30.25
55
0.719008
27
242
6.333333
0.740741
0.152047
0
0
0
0
0
0
0
0
0
0.024752
0.165289
242
7
56
34.571429
0.821782
0
0
0
0
0
0.078512
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
36b88b1bc73c2ca4c42b163efe26e8ce91ddc454
207
py
Python
pydis_site/apps/home/views/__init__.py
Transfusion/site
6992491f8c5f074e17c34d09553a715425112652
[ "MIT" ]
1
2021-02-13T04:37:07.000Z
2021-02-13T04:37:07.000Z
pydis_site/apps/home/views/__init__.py
Transfusion/site
6992491f8c5f074e17c34d09553a715425112652
[ "MIT" ]
null
null
null
pydis_site/apps/home/views/__init__.py
Transfusion/site
6992491f8c5f074e17c34d09553a715425112652
[ "MIT" ]
null
null
null
from .account import DeleteView as AccountDeleteView, SettingsView as AccountSettingsView from .home import HomeView, timeline __all__ = ["AccountDeleteView", "AccountSettingsView", "HomeView", "timeline"]
41.4
89
0.811594
19
207
8.631579
0.631579
0.195122
0
0
0
0
0
0
0
0
0
0
0.101449
207
4
90
51.75
0.88172
0
0
0
0
0
0.251208
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
36c9f1cc2b3128297a9c528d2df3c518e177f4dc
254
py
Python
__init__.py
dieforfree/md2zhihu
cae92866fc7de7e3325e38b9ee371e3317ec4703
[ "Apache-2.0" ]
null
null
null
__init__.py
dieforfree/md2zhihu
cae92866fc7de7e3325e38b9ee371e3317ec4703
[ "Apache-2.0" ]
null
null
null
__init__.py
dieforfree/md2zhihu
cae92866fc7de7e3325e38b9ee371e3317ec4703
[ "Apache-2.0" ]
1
2021-09-18T07:04:48.000Z
2021-09-18T07:04:48.000Z
""" package-name is utility to create sub process. """ from .version import __version__ from .version import __name__ from . import md2zhihu from . import mistune from .md2zhihu import main from .md2zhihu import AssetRepo from .md2zhihu import Config
18.142857
46
0.783465
34
254
5.617647
0.470588
0.188482
0.282723
0
0
0
0
0
0
0
0
0.018692
0.15748
254
13
47
19.538462
0.873832
0.181102
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
4
36d3d09c766c0997c477daf14842fc8df0ae8a34
903
py
Python
salt/log/mixins.py
tomdoherty/salt
f87d5d7abbf9777773c4d91fdafecb8b1a728e76
[ "Apache-2.0" ]
9,425
2015-01-01T05:59:24.000Z
2022-03-31T20:44:05.000Z
salt/log/mixins.py
tomdoherty/salt
f87d5d7abbf9777773c4d91fdafecb8b1a728e76
[ "Apache-2.0" ]
33,507
2015-01-01T00:19:56.000Z
2022-03-31T23:48:20.000Z
salt/log/mixins.py
tomdoherty/salt
f87d5d7abbf9777773c4d91fdafecb8b1a728e76
[ "Apache-2.0" ]
5,810
2015-01-01T19:11:45.000Z
2022-03-31T02:37:20.000Z
""" :codeauthor: Pedro Algarvio (pedro@algarvio.me) salt.log.mixins ~~~~~~~~~~~~~~~ .. versionadded:: 0.17.0 Some mix-in classes to be used in salt's logging """ # pylint: disable=unused-import from salt._logging.mixins import ( ExcInfoOnLogLevelFormatMixin as ExcInfoOnLogLevelFormatMixIn, ) from salt._logging.mixins import LoggingGarbageMixin as LoggingGarbageMixIn from salt._logging.mixins import LoggingMixinMeta as LoggingMixInMeta from salt._logging.mixins import LoggingProfileMixin as LoggingProfileMixIn from salt._logging.mixins import LoggingTraceMixin as LoggingTraceMixIn # pylint: enable=unused-import # from salt.utils.versions import warn_until_date # warn_until_date( # '20220101', # 'Please stop using \'{name}\' and instead use \'salt._logging.mixins\'. ' # '\'{name}\' will go away after {{date}}.'.format( # name=__name__ # ) # )
28.21875
78
0.728682
103
903
6.252427
0.475728
0.074534
0.158385
0.163043
0.209627
0
0
0
0
0
0
0.015727
0.155039
903
31
79
29.129032
0.828309
0.503876
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.714286
0
0.714286
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
0
1
0
1
0
1
0
0
4
7fc69a7ff741b7fe49896b1d2c8221ad08c5d9d3
79
py
Python
params.py
FRC830/opencv-tools
8de3b35cc02f1bf173abd65c665e1cb311664ca0
[ "MIT" ]
null
null
null
params.py
FRC830/opencv-tools
8de3b35cc02f1bf173abd65c665e1cb311664ca0
[ "MIT" ]
null
null
null
params.py
FRC830/opencv-tools
8de3b35cc02f1bf173abd65c665e1cb311664ca0
[ "MIT" ]
null
null
null
from __future__ import division, print_function, unicode_literals params = {}
19.75
65
0.810127
9
79
6.444444
1
0
0
0
0
0
0
0
0
0
0
0
0.126582
79
3
66
26.333333
0.84058
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0.5
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
1
0
4
7fca6930f4f5a8b0ef6c1a031e19db7c86e43fa4
116
py
Python
src/schnetpack/nn/initializers.py
giadefa/schnetpack
9dabc3b6e3b28deb2fb3743ea1857c46b055efbf
[ "MIT" ]
713
2017-11-02T09:03:20.000Z
2022-03-20T06:45:17.000Z
src/schnetpack/nn/initializers.py
giadefa/schnetpack
9dabc3b6e3b28deb2fb3743ea1857c46b055efbf
[ "MIT" ]
239
2018-09-11T21:09:08.000Z
2022-03-18T09:25:11.000Z
src/schnetpack/nn/initializers.py
giadefa/schnetpack
9dabc3b6e3b28deb2fb3743ea1857c46b055efbf
[ "MIT" ]
166
2018-09-13T13:01:06.000Z
2022-03-31T12:59:12.000Z
from functools import partial from torch.nn.init import constant_ zeros_initializer = partial(constant_, val=0.0)
19.333333
47
0.810345
17
116
5.352941
0.705882
0
0
0
0
0
0
0
0
0
0
0.019608
0.12069
116
5
48
23.2
0.872549
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
7fd967dfd8e0c6a32e3c339de3735cf073b90b5e
162
py
Python
scripts/item/consume_2433236.py
Snewmy/swordie
ae01ed4ec0eb20a18730e8cd209eea0b84a8dd17
[ "MIT" ]
null
null
null
scripts/item/consume_2433236.py
Snewmy/swordie
ae01ed4ec0eb20a18730e8cd209eea0b84a8dd17
[ "MIT" ]
null
null
null
scripts/item/consume_2433236.py
Snewmy/swordie
ae01ed4ec0eb20a18730e8cd209eea0b84a8dd17
[ "MIT" ]
null
null
null
# Chalk Damage Skin success = sm.addDamageSkin(2433236) if success: sm.chat("The Chalk Damage Skin has been added to your account's damage skin collection.")
32.4
93
0.759259
25
162
4.92
0.72
0.243902
0.243902
0
0
0
0
0
0
0
0
0.051471
0.160494
162
4
94
40.5
0.852941
0.104938
0
0
0
0
0.545455
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
3d1825e516e5ef35ea7017bf645110eeddae2044
105
py
Python
profile_project/profile_app/admin.py
nitesh-01/django-backend-rest-api
06140200ab3a5ef5ab035f8f49c575e448df609b
[ "MIT" ]
null
null
null
profile_project/profile_app/admin.py
nitesh-01/django-backend-rest-api
06140200ab3a5ef5ab035f8f49c575e448df609b
[ "MIT" ]
null
null
null
profile_project/profile_app/admin.py
nitesh-01/django-backend-rest-api
06140200ab3a5ef5ab035f8f49c575e448df609b
[ "MIT" ]
null
null
null
from django.contrib import admin from profile_app import models admin.site.register(models.UserProfile)
21
39
0.847619
15
105
5.866667
0.733333
0
0
0
0
0
0
0
0
0
0
0
0.095238
105
4
40
26.25
0.926316
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
3d22a98a7fb409dba3c653423965d84338cd80ba
89
py
Python
test/test_binary_tree_zigzag_level_order_traversal.py
spencercjh/sync-leetcode-today-problem-python3-example
4957e5eadb697334741df0fc297bec2edaa9e2ab
[ "Apache-2.0" ]
null
null
null
test/test_binary_tree_zigzag_level_order_traversal.py
spencercjh/sync-leetcode-today-problem-python3-example
4957e5eadb697334741df0fc297bec2edaa9e2ab
[ "Apache-2.0" ]
null
null
null
test/test_binary_tree_zigzag_level_order_traversal.py
spencercjh/sync-leetcode-today-problem-python3-example
4957e5eadb697334741df0fc297bec2edaa9e2ab
[ "Apache-2.0" ]
null
null
null
solution = BinaryTreeZigzagLevelOrderTraversal() assert X == solution.zigzagLevelOrder( )
44.5
48
0.831461
6
89
12.333333
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.078652
89
2
49
44.5
0.902439
0
0
0
0
0
0
0
0
0
0
0
0.5
1
0
false
0
0
0
0
0
1
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
4
3d5a2e53947ae3488506e57c8697bc2f8ee93c11
12,213
py
Python
tests/asp/cautious/3col.example3.cautious.asp.test.py
bernardocuteri/wasp
05c8f961776dbdbf7afbf905ee00fc262eba51ad
[ "Apache-2.0" ]
19
2015-12-03T08:53:45.000Z
2022-03-31T02:09:43.000Z
tests/asp/cautious/3col.example3.cautious.asp.test.py
bernardocuteri/wasp
05c8f961776dbdbf7afbf905ee00fc262eba51ad
[ "Apache-2.0" ]
80
2017-11-25T07:57:32.000Z
2018-06-10T19:03:30.000Z
tests/asp/cautious/3col.example3.cautious.asp.test.py
bernardocuteri/wasp
05c8f961776dbdbf7afbf905ee00fc262eba51ad
[ "Apache-2.0" ]
6
2015-01-15T07:51:48.000Z
2020-06-18T14:47:48.000Z
input = """ 1 2 0 0 1 3 0 0 1 4 0 0 1 5 0 0 1 6 0 0 1 7 0 0 1 8 0 0 1 9 0 0 1 10 0 0 1 11 0 0 1 12 0 0 1 13 0 0 1 14 0 0 1 15 0 0 1 16 0 0 1 17 0 0 1 18 0 0 1 19 0 0 1 20 0 0 1 21 0 0 1 22 0 0 1 23 0 0 1 24 0 0 1 25 0 0 1 26 0 0 1 27 0 0 1 28 0 0 1 29 0 0 1 30 0 0 1 31 0 0 1 32 0 0 1 33 0 0 1 34 0 0 1 35 0 0 1 36 0 0 1 37 0 0 1 38 0 0 1 39 0 0 1 40 0 0 1 41 0 0 1 42 0 0 1 43 0 0 1 44 0 0 1 45 0 0 1 46 0 0 1 47 0 0 1 48 0 0 1 49 0 0 1 50 0 0 1 51 0 0 1 52 0 0 1 53 0 0 1 54 0 0 1 55 0 0 1 56 0 0 1 57 0 0 1 58 0 0 1 59 0 0 1 60 0 0 1 61 0 0 1 62 0 0 1 63 0 0 1 64 0 0 1 65 0 0 1 66 0 0 1 67 0 0 1 68 0 0 1 69 0 0 1 70 0 0 1 71 0 0 1 72 0 0 1 73 0 0 1 74 0 0 1 75 0 0 1 76 0 0 1 77 0 0 1 78 0 0 1 79 0 0 1 80 0 0 1 81 0 0 1 82 0 0 1 83 0 0 1 84 0 0 1 85 0 0 1 86 0 0 1 87 0 0 1 88 0 0 1 89 0 0 1 90 0 0 1 91 2 1 92 93 1 92 2 1 91 93 1 93 0 0 1 94 2 1 95 96 1 95 2 1 94 96 1 96 0 0 1 97 2 1 98 99 1 98 2 1 97 99 1 99 0 0 1 100 2 1 101 102 1 101 2 1 100 102 1 102 0 0 1 103 2 1 104 105 1 104 2 1 103 105 1 105 0 0 1 106 2 1 107 108 1 107 2 1 106 108 1 108 0 0 1 109 2 1 110 111 1 110 2 1 109 111 1 111 0 0 1 112 2 1 113 114 1 113 2 1 112 114 1 114 0 0 1 115 2 1 116 117 1 116 2 1 115 117 1 117 0 0 1 118 2 1 119 120 1 119 2 1 118 120 1 120 0 0 1 121 2 1 122 123 1 122 2 1 121 123 1 123 0 0 1 124 2 1 125 126 1 125 2 1 124 126 1 126 0 0 1 127 2 1 128 129 1 128 2 1 127 129 1 129 0 0 1 130 2 1 131 132 1 131 2 1 130 132 1 132 0 0 1 133 2 1 134 135 1 134 2 1 133 135 1 135 0 0 1 136 2 1 137 138 1 137 2 1 136 138 1 138 0 0 1 139 2 1 140 141 1 140 2 1 139 141 1 141 0 0 1 142 2 1 143 144 1 143 2 1 142 144 1 144 0 0 1 145 2 1 146 147 1 146 2 1 145 147 1 147 0 0 1 148 2 1 149 150 1 149 2 1 148 150 1 150 0 0 1 151 2 1 152 153 1 152 2 1 151 153 1 153 0 0 1 154 2 1 155 156 1 155 2 1 154 156 1 156 0 0 1 157 2 1 158 159 1 158 2 1 157 159 1 159 0 0 1 160 2 1 161 162 1 161 2 1 160 162 1 162 0 0 1 163 2 1 164 165 1 164 2 1 163 165 1 165 0 0 1 166 2 1 167 168 1 167 2 1 166 168 1 168 0 0 1 169 2 1 170 171 1 170 2 1 169 171 1 171 0 0 1 172 2 1 173 174 1 173 2 1 172 174 1 174 0 0 1 175 2 1 176 177 1 176 2 1 175 177 1 177 0 0 1 178 2 1 179 180 1 179 2 1 178 180 1 180 0 0 1 181 2 1 182 183 1 182 2 1 181 183 1 183 0 0 1 184 2 1 185 186 1 185 2 1 184 186 1 186 0 0 1 187 2 1 188 189 1 188 2 1 187 189 1 189 0 0 1 190 2 1 191 192 1 191 2 1 190 192 1 192 0 0 1 193 2 1 194 195 1 194 2 1 193 195 1 195 0 0 1 196 2 1 197 198 1 197 2 1 196 198 1 198 0 0 1 199 2 1 200 201 1 200 2 1 199 201 1 201 0 0 1 202 2 1 203 204 1 203 2 1 202 204 1 204 0 0 1 205 2 1 206 207 1 206 2 1 205 207 1 207 0 0 1 208 2 1 209 210 1 209 2 1 208 210 1 210 0 0 1 211 2 1 212 213 1 212 2 1 211 213 1 213 0 0 1 214 2 1 215 216 1 215 2 1 214 216 1 216 0 0 1 217 2 1 218 219 1 218 2 1 217 219 1 219 0 0 1 220 2 1 221 222 1 221 2 1 220 222 1 222 0 0 1 223 2 1 224 225 1 224 2 1 223 225 1 225 0 0 1 226 2 1 227 228 1 227 2 1 226 228 1 228 0 0 1 229 2 1 230 231 1 230 2 1 229 231 1 231 0 0 1 232 2 1 233 234 1 233 2 1 232 234 1 234 0 0 1 235 2 1 236 237 1 236 2 1 235 237 1 237 0 0 1 238 2 1 239 240 1 239 2 1 238 240 1 240 0 0 1 241 2 1 242 243 1 242 2 1 241 243 1 243 0 0 1 244 2 1 245 246 1 245 2 1 244 246 1 246 0 0 1 247 2 1 248 249 1 248 2 1 247 249 1 249 0 0 1 250 2 1 251 252 1 251 2 1 250 252 1 252 0 0 1 253 2 1 254 255 1 254 2 1 253 255 1 255 0 0 1 256 2 1 257 258 1 257 2 1 256 258 1 258 0 0 1 259 2 1 260 261 1 260 2 1 259 261 1 261 0 0 1 262 2 1 263 264 1 263 2 1 262 264 1 264 0 0 1 265 2 1 266 267 1 266 2 1 265 267 1 267 0 0 1 268 2 1 269 270 1 269 2 1 268 270 1 270 0 0 2 271 3 0 2 211 151 91 1 1 1 0 271 2 272 3 0 2 214 154 94 1 1 1 0 272 2 273 3 0 2 217 157 97 1 1 1 0 273 2 274 3 0 2 220 160 100 1 1 1 0 274 2 275 3 0 2 223 163 103 1 1 1 0 275 2 276 3 0 2 226 166 106 1 1 1 0 276 2 277 3 0 2 229 169 109 1 1 1 0 277 2 278 3 0 2 232 172 112 1 1 1 0 278 2 279 3 0 2 235 175 115 1 1 1 0 279 2 280 3 0 2 238 178 118 1 1 1 0 280 2 281 3 0 2 241 181 121 1 1 1 0 281 2 282 3 0 2 244 184 124 1 1 1 0 282 2 283 3 0 2 247 187 127 1 1 1 0 283 2 284 3 0 2 250 190 130 1 1 1 0 284 2 285 3 0 2 253 193 133 1 1 1 0 285 2 286 3 0 2 256 196 136 1 1 1 0 286 2 287 3 0 2 259 199 139 1 1 1 0 287 2 288 3 0 2 262 202 142 1 1 1 0 288 2 289 3 0 2 265 205 145 1 1 1 0 289 2 290 3 0 2 268 208 148 1 1 1 0 290 2 291 3 0 1 211 151 91 1 1 1 1 291 2 292 3 0 1 214 154 94 1 1 1 1 292 2 293 3 0 1 217 157 97 1 1 1 1 293 2 294 3 0 1 220 160 100 1 1 1 1 294 2 295 3 0 1 223 163 103 1 1 1 1 295 2 296 3 0 1 226 166 106 1 1 1 1 296 2 297 3 0 1 229 169 109 1 1 1 1 297 2 298 3 0 1 232 172 112 1 1 1 1 298 2 299 3 0 1 235 175 115 1 1 1 1 299 2 300 3 0 1 238 178 118 1 1 1 1 300 2 301 3 0 1 241 181 121 1 1 1 1 301 2 302 3 0 1 244 184 124 1 1 1 1 302 2 303 3 0 1 247 187 127 1 1 1 1 303 2 304 3 0 1 250 190 130 1 1 1 1 304 2 305 3 0 1 253 193 133 1 1 1 1 305 2 306 3 0 1 256 196 136 1 1 1 1 306 2 307 3 0 1 259 199 139 1 1 1 1 307 2 308 3 0 1 262 202 142 1 1 1 1 308 2 309 3 0 1 265 205 145 1 1 1 1 309 2 310 3 0 1 268 208 148 1 1 1 1 310 1 1 2 0 268 220 1 1 2 0 265 253 1 1 2 0 265 223 1 1 2 0 265 217 1 1 2 0 262 256 1 1 2 0 262 253 1 1 2 0 262 226 1 1 2 0 262 211 1 1 2 0 259 226 1 1 2 0 256 217 1 1 2 0 256 211 1 1 2 0 253 226 1 1 2 0 253 217 1 1 2 0 250 235 1 1 2 0 250 226 1 1 2 0 247 244 1 1 2 0 247 241 1 1 2 0 247 235 1 1 2 0 247 229 1 1 2 0 241 235 1 1 2 0 241 226 1 1 2 0 238 235 1 1 2 0 238 211 1 1 2 0 235 211 1 1 2 0 232 229 1 1 2 0 232 220 1 1 2 0 229 217 1 1 2 0 226 223 1 1 2 0 226 217 1 1 2 0 223 211 1 1 2 0 220 217 1 1 2 0 217 211 1 1 2 0 214 211 1 1 2 0 208 160 1 1 2 0 205 193 1 1 2 0 205 163 1 1 2 0 205 157 1 1 2 0 202 196 1 1 2 0 202 193 1 1 2 0 202 166 1 1 2 0 202 151 1 1 2 0 199 166 1 1 2 0 196 157 1 1 2 0 196 151 1 1 2 0 193 166 1 1 2 0 193 157 1 1 2 0 190 175 1 1 2 0 190 166 1 1 2 0 187 184 1 1 2 0 187 181 1 1 2 0 187 175 1 1 2 0 187 169 1 1 2 0 181 175 1 1 2 0 181 166 1 1 2 0 178 175 1 1 2 0 178 151 1 1 2 0 175 151 1 1 2 0 172 169 1 1 2 0 172 160 1 1 2 0 169 157 1 1 2 0 166 163 1 1 2 0 166 157 1 1 2 0 163 151 1 1 2 0 160 157 1 1 2 0 157 151 1 1 2 0 154 151 1 1 2 0 148 100 1 1 2 0 145 133 1 1 2 0 145 103 1 1 2 0 145 97 1 1 2 0 142 136 1 1 2 0 142 133 1 1 2 0 142 106 1 1 2 0 142 91 1 1 2 0 139 106 1 1 2 0 136 97 1 1 2 0 136 91 1 1 2 0 133 106 1 1 2 0 133 97 1 1 2 0 130 115 1 1 2 0 130 106 1 1 2 0 127 124 1 1 2 0 127 121 1 1 2 0 127 115 1 1 2 0 127 109 1 1 2 0 121 115 1 1 2 0 121 106 1 1 2 0 118 115 1 1 2 0 118 91 1 1 2 0 115 91 1 1 2 0 112 109 1 1 2 0 112 100 1 1 2 0 109 97 1 1 2 0 106 103 1 1 2 0 106 97 1 1 2 0 103 91 1 1 2 0 100 97 1 1 2 0 97 91 1 1 2 0 94 91 0 22 link(1,17) 23 link(17,1) 24 link(2,6) 25 link(6,2) 26 link(2,16) 27 link(16,2) 28 link(2,18) 29 link(18,2) 30 link(3,5) 31 link(5,3) 32 link(3,6) 33 link(6,3) 34 link(3,15) 35 link(15,3) 36 link(3,20) 37 link(20,3) 38 link(4,15) 39 link(15,4) 40 link(5,18) 41 link(18,5) 42 link(5,20) 43 link(20,5) 44 link(6,15) 45 link(15,6) 46 link(6,18) 47 link(18,6) 48 link(7,12) 49 link(12,7) 50 link(7,15) 51 link(15,7) 52 link(8,9) 53 link(9,8) 54 link(8,10) 55 link(10,8) 56 link(8,12) 57 link(12,8) 58 link(8,14) 59 link(14,8) 60 link(10,12) 61 link(12,10) 62 link(10,15) 63 link(15,10) 64 link(11,12) 65 link(12,11) 66 link(11,20) 67 link(20,11) 68 link(12,20) 69 link(20,12) 70 link(13,14) 71 link(14,13) 72 link(13,17) 73 link(17,13) 74 link(14,18) 75 link(18,14) 76 link(15,16) 77 link(16,15) 78 link(15,18) 79 link(18,15) 80 link(16,20) 81 link(20,16) 82 link(17,18) 83 link(18,17) 84 link(18,20) 85 link(20,18) 86 link(19,20) 87 link(20,19) 88 colour(red0) 89 colour(green0) 90 colour(blue0) 91 chosenColour(20,blue0) 94 chosenColour(19,blue0) 97 chosenColour(18,blue0) 100 chosenColour(17,blue0) 103 chosenColour(16,blue0) 106 chosenColour(15,blue0) 109 chosenColour(14,blue0) 112 chosenColour(13,blue0) 115 chosenColour(12,blue0) 118 chosenColour(11,blue0) 121 chosenColour(10,blue0) 124 chosenColour(9,blue0) 127 chosenColour(8,blue0) 130 chosenColour(7,blue0) 133 chosenColour(6,blue0) 136 chosenColour(5,blue0) 139 chosenColour(4,blue0) 142 chosenColour(3,blue0) 145 chosenColour(2,blue0) 148 chosenColour(1,blue0) 151 chosenColour(20,green0) 154 chosenColour(19,green0) 157 chosenColour(18,green0) 160 chosenColour(17,green0) 163 chosenColour(16,green0) 166 chosenColour(15,green0) 169 chosenColour(14,green0) 172 chosenColour(13,green0) 175 chosenColour(12,green0) 178 chosenColour(11,green0) 181 chosenColour(10,green0) 184 chosenColour(9,green0) 187 chosenColour(8,green0) 190 chosenColour(7,green0) 193 chosenColour(6,green0) 196 chosenColour(5,green0) 199 chosenColour(4,green0) 202 chosenColour(3,green0) 205 chosenColour(2,green0) 208 chosenColour(1,green0) 211 chosenColour(20,red0) 214 chosenColour(19,red0) 217 chosenColour(18,red0) 220 chosenColour(17,red0) 223 chosenColour(16,red0) 226 chosenColour(15,red0) 229 chosenColour(14,red0) 232 chosenColour(13,red0) 235 chosenColour(12,red0) 238 chosenColour(11,red0) 241 chosenColour(10,red0) 244 chosenColour(9,red0) 247 chosenColour(8,red0) 250 chosenColour(7,red0) 253 chosenColour(6,red0) 256 chosenColour(5,red0) 259 chosenColour(4,red0) 262 chosenColour(3,red0) 265 chosenColour(2,red0) 268 chosenColour(1,red0) 2 node(1) 3 node(2) 4 node(3) 5 node(4) 6 node(5) 7 node(6) 8 node(7) 9 node(8) 10 node(9) 11 node(10) 12 node(11) 13 node(12) 14 node(13) 15 node(14) 16 node(15) 17 node(16) 18 node(17) 19 node(18) 20 node(19) 21 node(20) 92 notChosenColour(20,blue0) 95 notChosenColour(19,blue0) 98 notChosenColour(18,blue0) 101 notChosenColour(17,blue0) 104 notChosenColour(16,blue0) 107 notChosenColour(15,blue0) 110 notChosenColour(14,blue0) 113 notChosenColour(13,blue0) 116 notChosenColour(12,blue0) 119 notChosenColour(11,blue0) 122 notChosenColour(10,blue0) 125 notChosenColour(9,blue0) 128 notChosenColour(8,blue0) 131 notChosenColour(7,blue0) 134 notChosenColour(6,blue0) 137 notChosenColour(5,blue0) 140 notChosenColour(4,blue0) 143 notChosenColour(3,blue0) 146 notChosenColour(2,blue0) 149 notChosenColour(1,blue0) 152 notChosenColour(20,green0) 155 notChosenColour(19,green0) 158 notChosenColour(18,green0) 161 notChosenColour(17,green0) 164 notChosenColour(16,green0) 167 notChosenColour(15,green0) 170 notChosenColour(14,green0) 173 notChosenColour(13,green0) 176 notChosenColour(12,green0) 179 notChosenColour(11,green0) 182 notChosenColour(10,green0) 185 notChosenColour(9,green0) 188 notChosenColour(8,green0) 191 notChosenColour(7,green0) 194 notChosenColour(6,green0) 197 notChosenColour(5,green0) 200 notChosenColour(4,green0) 203 notChosenColour(3,green0) 206 notChosenColour(2,green0) 209 notChosenColour(1,green0) 212 notChosenColour(20,red0) 215 notChosenColour(19,red0) 218 notChosenColour(18,red0) 221 notChosenColour(17,red0) 224 notChosenColour(16,red0) 227 notChosenColour(15,red0) 230 notChosenColour(14,red0) 233 notChosenColour(13,red0) 236 notChosenColour(12,red0) 239 notChosenColour(11,red0) 242 notChosenColour(10,red0) 245 notChosenColour(9,red0) 248 notChosenColour(8,red0) 251 notChosenColour(7,red0) 254 notChosenColour(6,red0) 257 notChosenColour(5,red0) 260 notChosenColour(4,red0) 263 notChosenColour(3,red0) 266 notChosenColour(2,red0) 269 notChosenColour(1,red0) 0 B+ 0 B- 1 0 1 """ output = """ {node(1), node(2), node(3), node(4), node(5), node(6), node(7), node(8), node(9), node(10), node(11), node(12), node(13), node(14), node(15), node(16), node(17), node(18), node(19), node(20), link(1,17), link(17,1), link(2,6), link(6,2), link(2,16), link(16,2), link(2,18), link(18,2), link(3,5), link(5,3), link(3,6), link(6,3), link(3,15), link(15,3), link(3,20), link(20,3), link(4,15), link(15,4), link(5,18), link(18,5), link(5,20), link(20,5), link(6,15), link(15,6), link(6,18), link(18,6), link(7,12), link(12,7), link(7,15), link(15,7), link(8,9), link(9,8), link(8,10), link(10,8), link(8,12), link(12,8), link(8,14), link(14,8), link(10,12), link(12,10), link(10,15), link(15,10), link(11,12), link(12,11), link(11,20), link(20,11), link(12,20), link(20,12), link(13,14), link(14,13), link(13,17), link(17,13), link(14,18), link(18,14), link(15,16), link(16,15), link(15,18), link(18,15), link(16,20), link(20,16), link(17,18), link(18,17), link(18,20), link(20,18), link(19,20), link(20,19), colour(red0), colour(green0), colour(blue0)} """
18.201192
1,048
0.680095
3,497
12,213
2.375179
0.092079
0.047917
0.053455
0.047676
0.162052
0.057067
0
0
0
0
0
0.588013
0.241792
12,213
670
1,049
18.228358
0.308963
0
0
0.002985
0
0.001493
0.997462
0.211742
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
1
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
3d5b9a51b320d9e41f9a4fb0420f1c5f6cf0d6e8
2,036
py
Python
tests/test_scheduler.py
changrunner/zeppos_airflow
1cb6aa952603ff5f0e9993622658846b5ca03034
[ "Apache-2.0" ]
null
null
null
tests/test_scheduler.py
changrunner/zeppos_airflow
1cb6aa952603ff5f0e9993622658846b5ca03034
[ "Apache-2.0" ]
null
null
null
tests/test_scheduler.py
changrunner/zeppos_airflow
1cb6aa952603ff5f0e9993622658846b5ca03034
[ "Apache-2.0" ]
null
null
null
import unittest from zeppos_airflow.scheduler import Scheduler from datetime import datetime, timedelta class TestTheProjectMethods(unittest.TestCase): def test_startdate_yesterday_method(self): now = datetime.utcnow() - timedelta(days=1) self.assertEqual(now.year, Scheduler.StartDate.yesterday().year) self.assertEqual(now.month , Scheduler.StartDate.yesterday().month) self.assertEqual(now.day, Scheduler.StartDate.yesterday().day) self.assertEqual(0, Scheduler.StartDate.yesterday().hour) self.assertEqual(0, Scheduler.StartDate.yesterday().minute) self.assertEqual(0, Scheduler.StartDate.yesterday().second) self.assertEqual(0, Scheduler.StartDate.yesterday().microsecond) def test_startdate_yesterday_usa_central_timezone_method(self): # This test works if you are on US Central time zone. # TODO: Make timezone sensative. now = datetime.now() - timedelta(days=1) self.assertEqual(now.year, Scheduler.StartDate.yesterday_usa_central_timezone().year) self.assertEqual(now.month , Scheduler.StartDate.yesterday_usa_central_timezone().month) self.assertEqual(now.day, Scheduler.StartDate.yesterday_usa_central_timezone().day) self.assertEqual(0, Scheduler.StartDate.yesterday_usa_central_timezone().hour) self.assertEqual(0, Scheduler.StartDate.yesterday_usa_central_timezone().minute) self.assertEqual(0, Scheduler.StartDate.yesterday_usa_central_timezone().second) self.assertEqual(0, Scheduler.StartDate.yesterday_usa_central_timezone().microsecond) def test_startdate_one_hour_ago_method(self): self.assertEqual((datetime.utcnow() - timedelta(hours=1)).strftime('%Y-%m-%dT%H:00:00+00:00'), str(Scheduler.StartDate.one_hour_ago()) ) def test_retry_delay_five_minutes_method(self): self.assertEqual('0:05:00', str(Scheduler.RetryDelay.five_minutes())) if __name__ == '__main__': unittest.main()
52.205128
102
0.728389
237
2,036
6.037975
0.265823
0.201258
0.264151
0.139762
0.61775
0.592593
0.554857
0.408106
0.25856
0.08805
0
0.014035
0.160118
2,036
38
103
53.578947
0.822807
0.040275
0
0
0
0
0.019477
0.011789
0
0
0
0.026316
0.533333
1
0.133333
false
0
0.1
0
0.266667
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
1
1
0
0
0
0
0
0
0
0
0
4
e9f766324c74d3283ce20921bea6341dbbba70ff
601
py
Python
classes-objects/Demos/Bird.py
WebucatorTraining/classfiles-actionable-python
930c154a6dbfa6c54768557a998b4dbafb43df38
[ "MIT" ]
2
2022-01-04T22:25:01.000Z
2022-01-16T16:50:23.000Z
classes-objects/Demos/Bird.py
WebucatorTraining/classfiles-actionable-python
930c154a6dbfa6c54768557a998b4dbafb43df38
[ "MIT" ]
null
null
null
classes-objects/Demos/Bird.py
WebucatorTraining/classfiles-actionable-python
930c154a6dbfa6c54768557a998b4dbafb43df38
[ "MIT" ]
null
null
null
from FlyingObject import FlyingObject class Bird(FlyingObject): _birds = [] def __init__(self, name): super().__init__(name) type(self)._birds.append(self) self._healthy_wings = True def take_off(self): if self.healthy_wings: super().take_off() def land(self): super().land() @classmethod def birds(cls): return cls._birds @property def healthy_wings(self): return self._healthy_wings @healthy_wings.setter def healthy_wings(self, healthy): self._healthy_wings = healthy
22.259259
38
0.615641
68
601
5.102941
0.367647
0.242075
0.184438
0.10951
0
0
0
0
0
0
0
0
0.28619
601
27
39
22.259259
0.808858
0
0
0
0
0
0
0
0
0
0
0
0
1
0.285714
false
0
0.047619
0.095238
0.52381
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
4
1829fc55f67db260a8143b5d65c3f879833928b3
92
py
Python
tarakania_rpg/rpg/npc.py
MKokyn/discord-bot
00f58512739be9b2eec1adb16214c72da59e696b
[ "MIT" ]
1
2021-06-04T16:50:42.000Z
2021-06-04T16:50:42.000Z
tarakania_rpg/rpg/npc.py
MKokyn/discord-bot
00f58512739be9b2eec1adb16214c72da59e696b
[ "MIT" ]
3
2021-06-02T00:22:51.000Z
2021-06-03T15:20:25.000Z
tarakania_rpg/rpg/npc.py
MKokyn/discord-bot
00f58512739be9b2eec1adb16214c72da59e696b
[ "MIT" ]
2
2019-08-22T07:30:12.000Z
2021-06-04T16:49:42.000Z
from .rpg_object import RPGObject class NPC(RPGObject): config_filename = "npcs.yaml"
15.333333
33
0.75
12
92
5.583333
0.916667
0
0
0
0
0
0
0
0
0
0
0
0.163043
92
5
34
18.4
0.87013
0
0
0
0
0
0.097826
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
183c6d172d7bee10132cda885b67f682b87f25b1
223
py
Python
Lyft-Dental/Django-WebRtc/chat/admin.py
Abhik1998/Lyft-sample_project
3f9a79fb86c7abee713ae37245f5e7971be09139
[ "MIT" ]
1
2021-01-09T08:42:24.000Z
2021-01-09T08:42:24.000Z
Lyft-Dental/Django-WebRtc/chat/admin.py
Abhik1998/Lyft-sample_project
3f9a79fb86c7abee713ae37245f5e7971be09139
[ "MIT" ]
null
null
null
Lyft-Dental/Django-WebRtc/chat/admin.py
Abhik1998/Lyft-sample_project
3f9a79fb86c7abee713ae37245f5e7971be09139
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import * # Register your models here. class RoomAdmin(admin.ModelAdmin): filter_horizontal = ('users',) admin.site.register(Room, RoomAdmin) admin.site.register(ChatMessage)
22.3
36
0.784753
28
223
6.214286
0.642857
0.16092
0.195402
0
0
0
0
0
0
0
0
0
0.107623
223
10
37
22.3
0.874372
0.116592
0
0
0
0
0.02551
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.666667
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
0
0
1
0
1
0
0
4
187de7b85446bc8b5b91b07b7965385719f77284
20
py
Python
gff/BCBio/__init__.py
bgruening/bcbb
dbfb52711f0bfcc1d26c5a5b53c9ff4f50dc0027
[ "MIT" ]
339
2015-01-04T13:23:04.000Z
2022-03-25T23:09:09.000Z
gff/BCBio/__init__.py
bgruening/bcbb
dbfb52711f0bfcc1d26c5a5b53c9ff4f50dc0027
[ "MIT" ]
39
2015-01-14T21:31:09.000Z
2021-11-18T15:15:33.000Z
gff/BCBio/__init__.py
bgruening/bcbb
dbfb52711f0bfcc1d26c5a5b53c9ff4f50dc0027
[ "MIT" ]
176
2015-01-10T17:40:44.000Z
2022-03-25T05:14:21.000Z
"""BCBio module """
6.666667
15
0.55
2
20
5.5
1
0
0
0
0
0
0
0
0
0
0
0
0.15
20
2
16
10
0.647059
0.6
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
188043beb8530977cd89ad6c18353649bc90a890
442
py
Python
python_package_plaw/maths.py
pjlaw/python-package-plaw
1337d9012802631336dcee95a3b7253973f89250
[ "MIT" ]
null
null
null
python_package_plaw/maths.py
pjlaw/python-package-plaw
1337d9012802631336dcee95a3b7253973f89250
[ "MIT" ]
null
null
null
python_package_plaw/maths.py
pjlaw/python-package-plaw
1337d9012802631336dcee95a3b7253973f89250
[ "MIT" ]
null
null
null
import fire from typing import Union def add_numbers(a: Union[int, float], b: Union[int, float]) -> int: return int(a + b) def subtract_numbers(a: Union[int, float], b: Union[int, float]) -> int: return int(a - b) def multiply_numbers(a, b): return a * b def main(): fire.Fire( { "add": add_numbers, "subtract": subtract_numbers, } ) if __name__ == "__main__": main()
15.785714
72
0.570136
60
442
3.983333
0.3
0.133891
0.217573
0.133891
0.435146
0.435146
0.435146
0.435146
0.435146
0.435146
0
0
0.289593
442
27
73
16.37037
0.761147
0
0
0
0
0
0.042986
0
0
0
0
0
0
1
0.235294
false
0
0.117647
0.176471
0.529412
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
43ec747ea690fedd5346dd041ac9d50a69375edf
46
py
Python
DeepBind/custom_keras_objects.py
Luma-1994/lama
60d802e2e4cce789f03eea11b038212ba5f7fd1b
[ "MIT" ]
137
2018-03-13T17:44:46.000Z
2022-02-18T06:07:45.000Z
DeepBind/custom_keras_objects.py
Luma-1994/lama
60d802e2e4cce789f03eea11b038212ba5f7fd1b
[ "MIT" ]
111
2018-03-14T08:16:35.000Z
2022-03-04T18:26:41.000Z
DeepBind/custom_keras_objects.py
Luma-1994/lama
60d802e2e4cce789f03eea11b038212ba5f7fd1b
[ "MIT" ]
57
2018-03-14T08:39:24.000Z
2022-02-01T15:56:04.000Z
import tensorflow as tf OBJECTS = {"tf": tf}
11.5
23
0.673913
7
46
4.428571
0.714286
0
0
0
0
0
0
0
0
0
0
0
0.195652
46
3
24
15.333333
0.837838
0
0
0
0
0
0.043478
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
43fd1b4de71b9a26497e631a315dc42ca3707a18
80
py
Python
mymoney/apps/banktransactions/__init__.py
ychab/mymoney
9ee665d40648fd0b95f6e90d82ccf2bfc791e8af
[ "BSD-3-Clause" ]
67
2015-12-22T10:27:34.000Z
2022-03-10T21:33:18.000Z
mymoney/apps/banktransactions/__init__.py
clebercarmo/mymoney
9ee665d40648fd0b95f6e90d82ccf2bfc791e8af
[ "BSD-3-Clause" ]
null
null
null
mymoney/apps/banktransactions/__init__.py
clebercarmo/mymoney
9ee665d40648fd0b95f6e90d82ccf2bfc791e8af
[ "BSD-3-Clause" ]
35
2016-08-07T11:43:51.000Z
2022-02-21T21:20:06.000Z
default_app_config = 'mymoney.apps.banktransactions.apps.BankTransactionConfig'
40
79
0.875
8
80
8.5
0.875
0
0
0
0
0
0
0
0
0
0
0
0.0375
80
1
80
80
0.883117
0
0
0
0
0
0.7
0.7
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
a10fc3e0ca7a428998a0509fc3eb1c41a9ff55d7
27
py
Python
conman/state.py
saysjonathan/pyconman
9429c613f590e645b381b08b687e74f066efc274
[ "MIT" ]
null
null
null
conman/state.py
saysjonathan/pyconman
9429c613f590e645b381b08b687e74f066efc274
[ "MIT" ]
null
null
null
conman/state.py
saysjonathan/pyconman
9429c613f590e645b381b08b687e74f066efc274
[ "MIT" ]
null
null
null
(absent, present) = (0, 1)
13.5
26
0.555556
4
27
3.75
1
0
0
0
0
0
0
0
0
0
0
0.090909
0.185185
27
1
27
27
0.590909
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
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
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
a1202eb8b07970cad90b9acb8bbff8c46ab7c3ce
584
py
Python
atoman/filtering/filters/__init__.py
chrisdjscott/Atoman
e87ac31bbdcf53bb8f3efdfb109787d604890394
[ "MIT" ]
9
2015-11-23T12:13:34.000Z
2021-11-18T05:23:35.000Z
atoman/filtering/filters/__init__.py
chrisdjscott/Atoman
e87ac31bbdcf53bb8f3efdfb109787d604890394
[ "MIT" ]
1
2017-07-17T20:27:50.000Z
2017-07-23T05:27:15.000Z
atoman/filtering/filters/__init__.py
chrisdjscott/Atoman
e87ac31bbdcf53bb8f3efdfb109787d604890394
[ "MIT" ]
4
2015-11-23T12:13:37.000Z
2017-05-03T08:24:19.000Z
from __future__ import absolute_import # import all filter modules here, so they get loaded at startup from . import acnaFilter from . import atomIdFilter from . import bondOrderFilter from . import bubblesFilter from . import chargeFilter from . import clusterFilter from . import coordinationNumberFilter from . import cropBoxFilter from . import cropSphereFilter from . import displacementFilter from . import pointDefectsFilter from . import sliceFilter from . import slipFilter from . import speciesFilter from . import voronoiNeighboursFilter from . import voronoiVolumeFilter
29.2
63
0.830479
64
584
7.5
0.46875
0.333333
0
0
0
0
0
0
0
0
0
0
0.138699
584
19
64
30.736842
0.954274
0.104452
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
a17229d85ce45fe8709afe1f00f1a8130a3eb7cb
386
py
Python
cac/gradskip/__init__.py
FujitsuLaboratories/CAC
d12df8e47f61eaf7d7b0ed355e2d1aa296453f86
[ "Apache-2.0" ]
8
2021-09-30T07:24:43.000Z
2022-02-21T07:30:46.000Z
cac/gradskip/__init__.py
FujitsuLaboratories/CAC
d12df8e47f61eaf7d7b0ed355e2d1aa296453f86
[ "Apache-2.0" ]
null
null
null
cac/gradskip/__init__.py
FujitsuLaboratories/CAC
d12df8e47f61eaf7d7b0ed355e2d1aa296453f86
[ "Apache-2.0" ]
null
null
null
# TODO: Review and modify comments """ :mod:`torch.cac.gradskip` is a package implementing optimization algorithm with cac-gradient-skip. Most commonly used methods are already supported, and the interface is general enough, so that more sophisticated ones can be also easily integrated in the future. """ from .cac_sgd import SGD from torch.optim.optimizer import Optimizer, required
35.090909
98
0.800518
57
386
5.403509
0.824561
0
0
0
0
0
0
0
0
0
0
0
0.137306
386
10
99
38.6
0.924925
0.766839
0
0
0
0
0
0
0
0
0
0.1
0
1
0
true
0
1
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
1
0
1
0
1
0
0
4
a193b65b84744d19eb2ea8cc6677f8c1d74dad08
729
py
Python
tests/unit_tests/handlers/test_delivery_delivery_handlers.py
mariya/arteria-delivery
ec2fd79cfc6047a44dd251183b971535e9afd0dc
[ "MIT" ]
null
null
null
tests/unit_tests/handlers/test_delivery_delivery_handlers.py
mariya/arteria-delivery
ec2fd79cfc6047a44dd251183b971535e9afd0dc
[ "MIT" ]
18
2016-11-10T14:32:54.000Z
2019-10-14T07:07:54.000Z
tests/unit_tests/handlers/test_delivery_delivery_handlers.py
mariya/arteria-delivery
ec2fd79cfc6047a44dd251183b971535e9afd0dc
[ "MIT" ]
6
2016-10-18T12:16:46.000Z
2019-09-11T11:38:17.000Z
import json from mock import MagicMock from tornado.testing import * from tornado.web import Application from delivery.app import routes from tests.test_utils import DummyConfig, FAKE_RUNFOLDERS class TestDeliveryHandlers(AsyncHTTPTestCase): API_BASE = "/api/1.0" mock_runfolder_repo = MagicMock() def get_app(self): self.mock_runfolder_repo.get_runfolders.return_value = FAKE_RUNFOLDERS self.mock_runfolder_repo.get_runfolder.return_value = FAKE_RUNFOLDERS[0] return Application( routes( config=DummyConfig(), runfolder_repo=self.mock_runfolder_repo)) def test_post_delivery_runfolder(self): # TODO Write tests pass
22.78125
80
0.714678
86
729
5.802326
0.430233
0.130261
0.136273
0.126253
0.096192
0
0
0
0
0
0
0.0053
0.223594
729
31
81
23.516129
0.876325
0.021948
0
0
0
0
0.011268
0
0
0
0
0.032258
0
1
0.111111
false
0.055556
0.333333
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
1
0
0
0
0
1
1
0
1
0
0
4
a1a1b4d8ec45eec5a77cf61b55b3acb66959fa57
53
py
Python
setting.py
zjhgx163/spider_crawler
0dea613bd4bb0ccef0373ff87049ab5b66c0d8bf
[ "MIT" ]
null
null
null
setting.py
zjhgx163/spider_crawler
0dea613bd4bb0ccef0373ff87049ab5b66c0d8bf
[ "MIT" ]
null
null
null
setting.py
zjhgx163/spider_crawler
0dea613bd4bb0ccef0373ff87049ab5b66c0d8bf
[ "MIT" ]
null
null
null
image_location = "/Users/gaoxianghu/temp/image/food"
26.5
52
0.792453
7
53
5.857143
0.857143
0
0
0
0
0
0
0
0
0
0
0
0.056604
53
1
53
53
0.82
0
0
0
0
0
0.622642
0.622642
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
a1a27c746c974e14972f3f64cb4b19d414333e7b
129
py
Python
paper_trader/engine/persistence.py
saltisgood/paper_trader
977db605e11cc5edcb8b882374d2aeb19c07e73f
[ "Unlicense" ]
null
null
null
paper_trader/engine/persistence.py
saltisgood/paper_trader
977db605e11cc5edcb8b882374d2aeb19c07e73f
[ "Unlicense" ]
null
null
null
paper_trader/engine/persistence.py
saltisgood/paper_trader
977db605e11cc5edcb8b882374d2aeb19c07e73f
[ "Unlicense" ]
null
null
null
from typing import Protocol class Persistence(Protocol): def load_symbols(self): raise NotImplementedError()
18.428571
36
0.705426
13
129
6.923077
0.923077
0
0
0
0
0
0
0
0
0
0
0
0.232558
129
6
37
21.5
0.909091
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.25
0
0.75
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
4
a1a6533e4f9eb9ea06ba8e156dd17329d2f27e6e
34
py
Python
homeassistant/components/volkszaehler/__init__.py
domwillcode/home-assistant
f170c80bea70c939c098b5c88320a1c789858958
[ "Apache-2.0" ]
30,023
2016-04-13T10:17:53.000Z
2020-03-02T12:56:31.000Z
homeassistant/components/volkszaehler/__init__.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
31,101
2020-03-02T13:00:16.000Z
2022-03-31T23:57:36.000Z
homeassistant/components/volkszaehler/__init__.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
11,956
2016-04-13T18:42:31.000Z
2020-03-02T09:32:12.000Z
"""The volkszaehler component."""
17
33
0.705882
3
34
8
1
0
0
0
0
0
0
0
0
0
0
0
0.088235
34
1
34
34
0.774194
0.794118
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
a1ae66b7768a0e18e196ecdf38669c8f3c6743dc
572
py
Python
Backtrack/22. Generate Parentheses.py
Into-Y0u/Github-Baby
5e4e6b02f49c2c99533289be9d49911006cad919
[ "MIT" ]
2
2022-01-25T04:30:26.000Z
2022-01-25T10:36:15.000Z
Backtrack/22. Generate Parentheses.py
Into-Y0u/Leetcode-Baby
681ad4df01ee908f76d888aa4ccc10f04c03c56f
[ "MIT" ]
null
null
null
Backtrack/22. Generate Parentheses.py
Into-Y0u/Leetcode-Baby
681ad4df01ee908f76d888aa4ccc10f04c03c56f
[ "MIT" ]
null
null
null
class Solution: def generateParenthesis(self, n: int) -> List[str]: st = [] res = [] def backtracking(op ,cl): if op == cl == n : res.append("".join(st)) return if op < n : st.append("(") backtracking(op+1,cl) st.pop() if cl < op : st.append(")") backtracking(op,cl+1) st.pop() backtracking(0,0) return res
24.869565
55
0.342657
51
572
3.843137
0.411765
0.214286
0.163265
0.22449
0
0
0
0
0
0
0
0.015267
0.541958
572
22
56
26
0.732824
0
0
0.111111
1
0
0.003497
0
0
0
0
0
0
1
0.111111
false
0
0
0
0.277778
0
0
0
0
null
1
0
1
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
a1d267c8aaeeb73e0a355bd6948ba95ea36eb7d9
6,742
py
Python
dependencies/html_format.py
razputin42/RainyDM
49a22442980572eda529e9cc7357cd9025d789d8
[ "MIT" ]
9
2018-05-31T14:33:17.000Z
2021-11-30T16:17:33.000Z
dependencies/html_format.py
razputin42/RainyDM
49a22442980572eda529e9cc7357cd9025d789d8
[ "MIT" ]
20
2018-05-24T13:06:10.000Z
2019-01-07T16:16:45.000Z
dependencies/html_format.py
razputin42/RainyDM
49a22442980572eda529e9cc7357cd9025d789d8
[ "MIT" ]
1
2018-09-20T03:03:58.000Z
2018-09-20T03:03:58.000Z
general_desc = """ <div><span class="bold">$name</span><span>: $desc</span></div> """ general_head = """ <html> <body> """ general_foot = """ </html> </body> """ not_srd = """ <!DOCTYPE html> <html> <head> <style> .name { font-size:225%; font-family:Georgia, serif; font-variant:small-caps; font-weight:bold; color:#A73335; </style> </head> <body> <div contenteditable="false" style="width:310px; font-family:Arial,Helvetica,sans-serif;font-size:17px;"> <div class="name"> $name is not SRD :( </div> """ item_dict = dict( header=""" <!DOCTYPE html> <html> <head> <style> .gradient { margin:10px 0px; } .name { font-size:225%; font-family:Georgia, serif; font-variant:small-caps; font-weight:bold; color:#A73335; } .description { font-style:italic; } .bold { font-weight:bold; } .red { color:#A73335; } table { width:100%; border:0px; border-collapse:collapse; color:#A73335; } th, td { width:50px; text-align:center; } .actions { font-size:175%; font-variant:small-caps; margin:17px 0px 0px 0px; } .hr { background: #A73335; height:2px; } .attack_odd { margin:10px 0px; color: black; } .attack_even { margin:10px 0px; color: white; } .bolditalic { font-weight:bold; font-style:italic; } </style> </head> <body> <div contenteditable="true" style="width:310px; font-family:Arial,Helvetica,sans-serif;font-size:17px;"> """, gradient=""" <div class="gradient"><img scr="assets/linear_gradient.png;" /></div> """, name=""" <div class="name"> $desc </div> """, desc=""" <div><span class="bold">$name</span><span> $desc</span></div> """, dmg=""" <div><span class="bold">Damage</span><span> $dmg1 $dmgType</span></div> """, dmg_vers=""" <div><span class="bold">Damage</span><span> $dmg1($dmg2) $dmgType</span></div> """, text=""" <div><span> $text</span></div> """, foot=""" </div> </body> </html> """, body35=""" No description available """ ) spell_dict = dict( entire=""" <!DOCTYPE html> <html> <head> <style> .gradient { margin:10px 0px; } .name { font-size:225%; font-family:Georgia, serif; font-variant:small-caps; font-weight:bold; color:#A73335; } .description { font-style:italic; } .bold { font-weight:bold; } .red { color:#A73335; } table { width:100%; border:0px; border-collapse:collapse; color:#A73335; } th, td { width:50px; text-align:center; } .actions { font-size:175%; font-variant:small-caps; margin:17px 0px 0px 0px; } .hr { background: #A73335; height:2px; } .attack_odd { margin:10px 0px; color: black; } .attack_even { margin:10px 0px; color: white; } .bolditalic { font-weight:bold; font-style:italic; } </style> </head> <body> <div contenteditable="true" style="width:310px; font-family:Arial,Helvetica,sans-serif;font-size:17px;"> <div class="name"> $name </div> <div class="description">$level $school</div> <div class="gradient"><img scr="assets/linear_gradient.png;" /></div> <br> <div><span class="bold">Casting Time:</span><span> $time</span></div> <div><span class="bold">Range:</span><span> $range</span></div> <div><span class="bold">Component:</span><span> $components</span></div> <div><span class="bold">Duration:</span><span> $duration</span></div> <br> <div><span class="bold">$classes</span></div> <br> <div><span>$text</span></div> </div> </body> </html> """ ) monster_dict = dict( first=""" <!DOCTYPE html> <html> <head> <style> .gradient { margin:10px 0px; } .name { font-size:225%; font-family:Georgia, serif; font-variant:small-caps; font-weight:bold; color:#A73335; } .description { font-style:italic; } .bold { font-weight:bold; } .red { color:#A73335; } table { width:100%; border:0px; border-collapse:collapse; color:#A73335; } th, td { width:50px; text-align:center; } .actions { font-size:175%; font-variant:small-caps; margin:17px 0px 0px 0px; } .hr { background: #A73335; height:2px; } .attack_odd { margin:10px 0px; color: black; } .attack_even { margin:10px 0px; color: white; } .bolditalic { font-weight:bold; font-style:italic; } </style> </head> <body> <div contenteditable="true" style="width:310px; font-family:Arial,Helvetica,sans-serif;font-size:17px;"> <div class="name"> $name </div> <div class="description">$size $type, $alignment</div> <div class="gradient"><img scr="assets/linear_gradient.png;" /></div> <div class="red"> <div ><span class="bold red">Armor Class</span><span> $armor_class </span></div> <div><span class="bold red">Hit Points</span><span> $hit_points</span></div> <div><span class="bold red">Speed</span><span> $speed</span></div> </div> <div class="gradient"><img scr="assets/linear_gradient.png;" /></div> <table cellspacing = "0"> <tr><th>STR</th> <th>DEX</th><th>CON</th><th>INT</th><th>WIS</th><th>CHA</th></tr> <tr><td style="padding: 0 10px;">$str ($str_mod)</td> <td style="padding: 0 10px;">$dex ($dex_mod)</td> <td style="padding: 0 10px;">$con ($con_mod)</td><td style="padding: 0 10px;">$int ($int_mod)</td> <td style="padding: 0 10px;">$wis ($wis_mod)</td><td style="padding: 0 10px;">$cha ($cha_mod)</td></tr> </table> <br> """, desc=""" <div><span class="bold">$name</span><span> $desc</span></div> """, cr=""" <div><span class="bold">Challenge Rating</span><span> $cr</span><span class="description"> ($xp XP)</span></div> """, gradient=""" <div class="gradient"><img scr="assets/linear_gradient.png;" /></div> """, special_abilities=""" <div><span class="bolditalic">$name</span><span> $desc</span></div> """, second=""" <div class="actions red">Actions</div> <div class="gradient"><img scr="assets/linear_gradient.png;" /></div> """, action_odd=""" <div class="hr"></div> <div class="attack_even"><span class="bolditalic">$name</span><span> $text</span></div> """, action_even=""" <div class="attack_odd"><span class="bolditalic">$name</span><span> $text</span></div> """, legendary_header=""" <div class="actions red">Legendary Actions</div> <div class="gradient"><img scr="assets/linear_gradient.png;" /></div> """, rest=""" </div> </body> </html> """)
20.680982
114
0.57431
843
6,742
4.551601
0.147094
0.034663
0.046912
0.058379
0.785249
0.748241
0.709148
0.664321
0.646599
0.624707
0
0.036292
0.211213
6,742
325
115
20.744615
0.68522
0
0
0.692053
0
0.07947
0.917384
0.250816
0
0
0
0
0
1
0
false
0
0
0
0
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
a1d4e19b7248f984312a98c59d1b5ba833cf75ff
448
py
Python
venv/Lib/site-packages/pywhatkit/__init__.py
AsterLaoWhy/Navi
819e4cc9e70721d65da5979e0c7a6fead9eb9d6e
[ "MIT" ]
1
2021-02-01T10:02:16.000Z
2021-02-01T10:02:16.000Z
venv/Lib/site-packages/pywhatkit/__init__.py
AsterLaoWhy/Navi
819e4cc9e70721d65da5979e0c7a6fead9eb9d6e
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pywhatkit/__init__.py
AsterLaoWhy/Navi
819e4cc9e70721d65da5979e0c7a6fead9eb9d6e
[ "MIT" ]
null
null
null
"""This piece of software was last updated on 26-August-2020 at 18:52 IST. Pull requests are always welcomed""" from pywhatkit.mainfunctions import sendwhatmsg_to_group, watch_tutorial_in_English, watch_tutorial_in_Hindi, developer_contact, showHistory, shutdown, cancelShutdown, prnt_sleeptm, check_window, sendwhatmsg, info, playonyt, image_to_ascii_art, search from pywhatkit.chr_to_handwriting import text_to_handwriting import pywhatkit.help
64
251
0.850446
64
448
5.671875
0.796875
0.071625
0.082645
0
0
0
0
0
0
0
0
0.02457
0.091518
448
6
252
74.666667
0.867322
0.234375
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
b80593d44778a86d533b9c7bc029ebf7b4116a5e
64
py
Python
contests_atcoder/abc192/abc192_b_golf.py
takelifetime/competitive-programming
e7cf8ef923ccefad39a1727ca94c610d650fcb76
[ "BSD-2-Clause" ]
null
null
null
contests_atcoder/abc192/abc192_b_golf.py
takelifetime/competitive-programming
e7cf8ef923ccefad39a1727ca94c610d650fcb76
[ "BSD-2-Clause" ]
1
2021-01-02T06:36:51.000Z
2021-01-02T06:36:51.000Z
contests_atcoder/abc192/abc192_b_golf.py
takelifetime/competitive-programming
e7cf8ef923ccefad39a1727ca94c610d650fcb76
[ "BSD-2-Clause" ]
null
null
null
print("YNeos"[any((c<"a")^i%2for i,c in enumerate(input()))::2])
64
64
0.609375
13
64
3
0.846154
0
0
0
0
0
0
0
0
0
0
0.032787
0.046875
64
1
64
64
0.606557
0
0
0
0
0
0.092308
0
0
0
0
0
0
1
0
true
0
0
0
0
1
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
1
0
4
b81d7589a15addc2a1138e3b13fa2ea003d4f761
80
py
Python
tests/__init__.py
giacomolanciano/monasca-predictor
f0e07304d51cfa06b189ff1ea2350d26c4461329
[ "Apache-2.0" ]
null
null
null
tests/__init__.py
giacomolanciano/monasca-predictor
f0e07304d51cfa06b189ff1ea2350d26c4461329
[ "Apache-2.0" ]
null
null
null
tests/__init__.py
giacomolanciano/monasca-predictor
f0e07304d51cfa06b189ff1ea2350d26c4461329
[ "Apache-2.0" ]
null
null
null
from monasca_predictor.common import util util.initialize_logging("predictor")
20
41
0.85
10
80
6.6
0.8
0
0
0
0
0
0
0
0
0
0
0
0.075
80
3
42
26.666667
0.891892
0
0
0
0
0
0.1125
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
62d25e71d4d92904cd1b3317fc3a438522d1c87e
2,933
py
Python
cbsite/settings/base.py
cbidici/cbsite
594e327ad0c0bfa5015461eb243176c3aec7b68d
[ "MIT" ]
null
null
null
cbsite/settings/base.py
cbidici/cbsite
594e327ad0c0bfa5015461eb243176c3aec7b68d
[ "MIT" ]
1
2020-05-10T14:45:22.000Z
2020-05-10T15:06:50.000Z
cbsite/settings/base.py
cbidici/cbsite
594e327ad0c0bfa5015461eb243176c3aec7b68d
[ "MIT" ]
null
null
null
""" Django settings for cbsite project. Generated by 'django-admin startproject' using Django 3.0.4. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ import os # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # Application definition INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'rest_framework', 'rest_framework.authtoken', 'blog.apps.BlogConfig', 'siteapp.apps.SiteappConfig', 'markdownme.apps.MarkdownmeConfig', ] MIDDLEWARE = [ 'django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'cbsite.middleware.CorsMiddleware' ] ROOT_URLCONF = 'cbsite.urls' TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [], 'APP_DIRS': True, 'OPTIONS': { 'context_processors': [ 'django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', ], }, }, ] WSGI_APPLICATION = 'cbsite.wsgi.application' # Password validation # https://docs.djangoproject.com/en/3.0/ref/settings/#auth-password-validators AUTH_PASSWORD_VALIDATORS = [ { 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', }, { 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', }, { 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', }, { 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', }, ] # Internationalization # https://docs.djangoproject.com/en/3.0/topics/i18n/ LANGUAGE_CODE = 'en-us' TIME_ZONE = 'UTC' USE_I18N = True USE_L10N = True USE_TZ = True # Static files (CSS, JavaScript, Images) # https://docs.djangoproject.con/3.0/howto/static-files/ STATIC_URL = '/dj_static/' STATIC_ROOT = os.path.join(BASE_DIR, "static/") REST_FRAMEWORK = { 'DEFAULT_AUTHENTICATION_CLASSES': [ 'rest_framework.authentication.TokenAuthentication', 'rest_framework.authentication.SessionAuthentication', ], }
26.423423
91
0.698602
302
2,933
6.662252
0.42053
0.096918
0.059145
0.049702
0.187873
0.15507
0.077535
0.077535
0.039761
0
0
0.007806
0.170133
2,933
110
92
26.663636
0.818817
0.222639
0
0.028986
1
0
0.600707
0.525618
0
0
0
0
0
1
0
false
0.072464
0.014493
0
0.014493
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
1
1
null
0
0
0
0
0
0
0
1
0
0
0
0
0
4
62edfd6e7e4545287890ba8a020c71a23403dfcc
49
py
Python
psrc/__init__.py
viverlxl/resource_pool
6fa226e0ac504df604362bf0ef84cb3a9f21109c
[ "MIT" ]
2
2019-10-09T10:30:23.000Z
2020-01-20T01:36:10.000Z
psrc/__init__.py
viverlxl/resource_pool
6fa226e0ac504df604362bf0ef84cb3a9f21109c
[ "MIT" ]
null
null
null
psrc/__init__.py
viverlxl/resource_pool
6fa226e0ac504df604362bf0ef84cb3a9f21109c
[ "MIT" ]
1
2020-07-28T22:57:50.000Z
2020-07-28T22:57:50.000Z
from .pool import ConnPool __all__ = ["ConnPool"]
24.5
26
0.755102
6
49
5.5
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.122449
49
2
27
24.5
0.767442
0
0
0
0
0
0.16
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
1a1db7e4d2754ea7f9720c1b13d8f17a8f5fe304
40
py
Python
det3d/models/necks/__init__.py
alsun-oven/CenterPoint
cafd89c4008270e648e97202bc256aff968e8109
[ "MIT" ]
1,124
2020-06-22T00:48:18.000Z
2022-03-31T22:03:35.000Z
det3d/models/necks/__init__.py
alsun-oven/CenterPoint
cafd89c4008270e648e97202bc256aff968e8109
[ "MIT" ]
290
2020-06-23T01:29:04.000Z
2022-03-29T16:27:32.000Z
det3d/models/necks/__init__.py
alsun-oven/CenterPoint
cafd89c4008270e648e97202bc256aff968e8109
[ "MIT" ]
326
2020-06-22T01:48:10.000Z
2022-03-31T08:15:08.000Z
from .rpn import RPN __all__ = ["RPN"]
10
20
0.65
6
40
3.666667
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.2
40
3
21
13.333333
0.6875
0
0
0
0
0
0.075
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
1a2083cdec3db860c808f6269f747e5add970091
111
py
Python
examples/simple_server.py
jasonjohnson/microrpc
96bd3836c43a7fec5bf71b773d66f0f019d5f675
[ "MIT" ]
null
null
null
examples/simple_server.py
jasonjohnson/microrpc
96bd3836c43a7fec5bf71b773d66f0f019d5f675
[ "MIT" ]
null
null
null
examples/simple_server.py
jasonjohnson/microrpc
96bd3836c43a7fec5bf71b773d66f0f019d5f675
[ "MIT" ]
null
null
null
from microrpc import Server server = Server() @server.rpc def add_two(a, b): return a + b server.run()
10.090909
27
0.666667
18
111
4.055556
0.666667
0.493151
0.493151
0
0
0
0
0
0
0
0
0
0.216216
111
10
28
11.1
0.83908
0
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0.166667
0.5
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
4
a7e21606ef29a6b18c303556a5b4fca14314a23f
108
py
Python
utils/__init__.py
Elvira521feng/FewshotFinanceNER
06a3088fa737f98618403f5f3b20e6a2fd7f84df
[ "MIT" ]
null
null
null
utils/__init__.py
Elvira521feng/FewshotFinanceNER
06a3088fa737f98618403f5f3b20e6a2fd7f84df
[ "MIT" ]
null
null
null
utils/__init__.py
Elvira521feng/FewshotFinanceNER
06a3088fa737f98618403f5f3b20e6a2fd7f84df
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # @Time : 2020/10/26 4:50 下午 # @Author : JiangYanQun # @File : __init__.py.py
27
31
0.555556
16
108
3.5
0.9375
0
0
0
0
0
0
0
0
0
0
0.144578
0.231481
108
4
32
27
0.53012
0.925926
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
c52ad9fb0b046504041f8caf13cb28fe677766a7
152
py
Python
.venv/bin/django-admin.py
Stam21/alcali
471e714353e94311080ce6f23c980bc35d739ecb
[ "MIT" ]
null
null
null
.venv/bin/django-admin.py
Stam21/alcali
471e714353e94311080ce6f23c980bc35d739ecb
[ "MIT" ]
null
null
null
.venv/bin/django-admin.py
Stam21/alcali
471e714353e94311080ce6f23c980bc35d739ecb
[ "MIT" ]
null
null
null
#!/home/stam/Desktop/alcali/.venv/bin/python3 from django.core import management if __name__ == "__main__": management.execute_from_command_line()
25.333333
45
0.776316
20
152
5.35
0.9
0
0
0
0
0
0
0
0
0
0
0.007299
0.098684
152
5
46
30.4
0.773723
0.289474
0
0
0
0
0.074766
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
c56827de9631a1513c1bf670b746df8d89afd9cd
84
py
Python
src/__init__.py
Joffreybvn/alan-discord
56ac04f7b4e6f65ccbe37b34eb12e342d7c027c4
[ "MIT" ]
null
null
null
src/__init__.py
Joffreybvn/alan-discord
56ac04f7b4e6f65ccbe37b34eb12e342d7c027c4
[ "MIT" ]
null
null
null
src/__init__.py
Joffreybvn/alan-discord
56ac04f7b4e6f65ccbe37b34eb12e342d7c027c4
[ "MIT" ]
null
null
null
from .database import Database from .bot import Bot __all__ = ["Database", "Bot"]
14
30
0.714286
11
84
5.090909
0.454545
0
0
0
0
0
0
0
0
0
0
0
0.166667
84
5
31
16.8
0.8
0
0
0
0
0
0.13253
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
c5700d34b2d081b6fbc9888a5d8b2e7004502ab6
117
py
Python
scheduler/reminders/models.py
maplefeline/scheduler
cb17aca882d64944efdc7622a4536790457170e4
[ "MIT" ]
null
null
null
scheduler/reminders/models.py
maplefeline/scheduler
cb17aca882d64944efdc7622a4536790457170e4
[ "MIT" ]
18
2020-12-01T06:54:23.000Z
2022-03-02T03:06:10.000Z
scheduler/reminders/models.py
maplefeline/scheduler
cb17aca882d64944efdc7622a4536790457170e4
[ "MIT" ]
null
null
null
from django.db import models # type: ignore class Reminder(models.Model): date = models.DateTimeField("date")
19.5
44
0.726496
15
117
5.666667
0.8
0
0
0
0
0
0
0
0
0
0
0
0.162393
117
5
45
23.4
0.867347
0.102564
0
0
0
0
0.038835
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
c5724ace9225fb979981757352baba4bb350c760
93
py
Python
tests/__init__.py
mpacer/jupyter_local_storage_contents_manager
394bbde6f695cedb15c84bd012b1334cfbaad584
[ "BSD-3-Clause" ]
null
null
null
tests/__init__.py
mpacer/jupyter_local_storage_contents_manager
394bbde6f695cedb15c84bd012b1334cfbaad584
[ "BSD-3-Clause" ]
null
null
null
tests/__init__.py
mpacer/jupyter_local_storage_contents_manager
394bbde6f695cedb15c84bd012b1334cfbaad584
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """Unit test package for jupyter_local_storage_contents_manager."""
23.25
67
0.709677
12
93
5.166667
1
0
0
0
0
0
0
0
0
0
0
0.012195
0.11828
93
3
68
31
0.743902
0.903226
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
3d664ee3c13d3b211dfcfe82c6e97ed066d5c5bd
3,294
py
Python
libraries/ml-lab-py/lab_api/swagger_client/models/__init__.py
felixridinger/machine-learning-lab
410e2f5fecb7ea91dcec12a5b9cb9161331191bf
[ "Apache-2.0", "MIT" ]
55
2020-08-28T12:26:15.000Z
2022-02-01T08:57:26.000Z
libraries/ml-lab-py/lab_api/swagger_client/models/__init__.py
felixridinger/machine-learning-lab
410e2f5fecb7ea91dcec12a5b9cb9161331191bf
[ "Apache-2.0", "MIT" ]
38
2020-09-01T17:17:22.000Z
2022-03-31T15:44:57.000Z
libraries/ml-lab-py/lab_api/swagger_client/models/__init__.py
felixridinger/machine-learning-lab
410e2f5fecb7ea91dcec12a5b9cb9161331191bf
[ "Apache-2.0", "MIT" ]
19
2020-08-31T16:38:09.000Z
2022-03-09T13:59:58.000Z
# coding: utf-8 # flake8: noqa """ ML Lab Service Functionality to create and manage Lab projects, services, datasets, models, and experiments. # noqa: E501 OpenAPI spec version: 3.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import # import models into model package from lab_api.swagger_client.models.experiment_resources import ExperimentResources from lab_api.swagger_client.models.git_info import GitInfo from lab_api.swagger_client.models.host_info import HostInfo from lab_api.swagger_client.models.lab_event import LabEvent from lab_api.swagger_client.models.lab_experiment import LabExperiment from lab_api.swagger_client.models.lab_file import LabFile from lab_api.swagger_client.models.lab_file_collection import LabFileCollection from lab_api.swagger_client.models.lab_file_response import LabFileResponse from lab_api.swagger_client.models.lab_info import LabInfo from lab_api.swagger_client.models.lab_info_response import LabInfoResponse from lab_api.swagger_client.models.lab_job import LabJob from lab_api.swagger_client.models.lab_job_response import LabJobResponse from lab_api.swagger_client.models.lab_project import LabProject from lab_api.swagger_client.models.lab_project_config import LabProjectConfig from lab_api.swagger_client.models.lab_project_response import LabProjectResponse from lab_api.swagger_client.models.lab_projects_statistics import LabProjectsStatistics from lab_api.swagger_client.models.lab_scheduled_job import LabScheduledJob from lab_api.swagger_client.models.lab_service import LabService from lab_api.swagger_client.models.lab_service_response import LabServiceResponse from lab_api.swagger_client.models.lab_statistics_response import LabStatisticsResponse from lab_api.swagger_client.models.lab_user import LabUser from lab_api.swagger_client.models.lab_user_response import LabUserResponse from lab_api.swagger_client.models.list_of_lab_events_response import ListOfLabEventsResponse from lab_api.swagger_client.models.list_of_lab_experiments_response import ListOfLabExperimentsResponse from lab_api.swagger_client.models.list_of_lab_files_response import ListOfLabFilesResponse from lab_api.swagger_client.models.list_of_lab_jobs_response import ListOfLabJobsResponse from lab_api.swagger_client.models.list_of_lab_projects_response import ListOfLabProjectsResponse from lab_api.swagger_client.models.list_of_lab_scheduled_jobs_response import ListOfLabScheduledJobsResponse from lab_api.swagger_client.models.list_of_lab_services_response import ListOfLabServicesResponse from lab_api.swagger_client.models.list_of_lab_users import ListOfLabUsers from lab_api.swagger_client.models.list_of_lab_users_response import ListOfLabUsersResponse from lab_api.swagger_client.models.list_of_strings_response import ListOfStringsResponse from lab_api.swagger_client.models.status_message_format import StatusMessageFormat from lab_api.swagger_client.models.string_response import StringResponse from lab_api.swagger_client.models.unified_error_message import UnifiedErrorMessage from lab_api.swagger_client.models.unified_format_metadata import UnifiedFormatMetadata from lab_api.swagger_client.models.value_list_format_metadata import ValueListFormatMetadata
59.890909
111
0.890103
463
3,294
5.984881
0.231102
0.137135
0.133526
0.226994
0.472754
0.472754
0.40996
0.326236
0.12703
0.031036
0
0.002602
0.066485
3,294
54
112
61
0.898537
0.084699
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
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
3d6b55973cab09d9195b92f42509fe5c7e1c30be
4,649
py
Python
molsysmt/hbonds/buch.py
uibcdf/MolSysMT
9866a6fb090df9fff36af113a45164da4b674c09
[ "MIT" ]
3
2020-06-02T03:55:52.000Z
2022-03-21T04:43:52.000Z
molsysmt/hbonds/buch.py
uibcdf/MolSysMT
9866a6fb090df9fff36af113a45164da4b674c09
[ "MIT" ]
28
2020-06-24T00:55:53.000Z
2021-07-16T22:09:19.000Z
molsysmt/hbonds/buch.py
uibcdf/MolSysMT
9866a6fb090df9fff36af113a45164da4b674c09
[ "MIT" ]
1
2021-06-17T18:55:25.000Z
2021-06-17T18:55:25.000Z
# Source: V. J. Buch. J. Chem. Phys. 96, 3814-3823 (1992) from molsysmt._private_tools._digestion import * from molsysmt._private_tools.exceptions import * from molsysmt.hbonds.donors_and_acceptors import get_acceptor_atoms, get_donor_atoms from molsysmt.multitool.select import select from molsysmt.distances import neighbors from molsysmt import puw import numpy as np def buch(molecular_system, selection='all', selection_2=None, frame_indices='all', threshold='2.3 angstroms', acceptors=None, donors=None, pbc=False, optimize=False, output_form='dict', engine='MolSysMT', syntaxis='MolSysMT'): molecular_system = digest_molecular_system(molecular_system) engine = digest_engine(engine) frame_indices = digest_frame_indices(frame_indices) output = None if selection_2 is None: if acceptors is None: acceptors_1 = get_acceptor_atoms(molecular_system, selection=selection, engine=engine, syntaxis=syntaxis) else: acceptors_1 = select(molecular_system, selection=selection, mask=acceptors, syntaxis=syntaxis) if donors is None: donors_1 = get_donor_atoms(molecular_system, selection=selection, engine=engine, syntaxis=syntaxis) else: donors_1 = select(molecular_system, selection=selection, mask=donors, syntaxis=syntaxis) neighs, _ = neighbors(molecular_system, selection=acceptors_1, selection_2=donors_1[0], frame_indices=frame_indices, threshold=threshold, pbc=pbc, engine=engine, syntaxis=syntaxis) if output_form == 'dict': output = {} n_acceptors = len(acceptors_1) for frame_index in range(neighs.shape[0]): for ii in range(n_acceptors): for donor_index in neighs[frame_index][ii]: hbond_id = tuple(donors_1[donor_index].tolist()+[acceptors_1[ii]]) try: output[hbond_id].append(frame_index) except: output[hbond_id]=[frame_index] else: raise NotImplementedError else: if acceptors is None: acceptors_1 = get_acceptor_atoms(molecular_system, selection=selection, engine=engine, syntaxis=syntaxis) acceptors_2 = get_acceptor_atoms(molecular_system, selection=selection_2, engine=engine, syntaxis=syntaxis) else: acceptors_1 = select(molecular_system, selection=selection, mask=acceptors, syntaxis=syntaxis) acceptors_2 = select(molecular_system, selection=selection_2, mask=acceptors, syntaxis=syntaxis) if donors is None: donors_1 = get_donor_atoms(molecular_system, selection=selection, engine=engine, syntaxis=syntaxis) donors_2 = get_donor_atoms(molecular_system, selection=selection_2, engine=engine, syntaxis=syntaxis) else: donors_1 = select(molecular_system, selection=selection, mask=donors, syntaxis=syntaxis) donors_2 = select(molecular_system, selection=selection_2, mask=donors, syntaxis=syntaxis) neighs, _ = neighbors(molecular_system, selection=acceptors_1, selection_2=donors_2[0], frame_indices=frame_indices, threshold=threshold, pbc=pbc, engine=engine, syntaxis=syntaxis) neighs_2, _ = neighbors(molecular_system, selection=acceptors_2, selection_2=donors_1[0], frame_indices=frame_indices, threshold=threshold, pbc=pbc, engine=engine, syntaxis=syntaxis) if output_form == 'dict': output = {} n_acceptors = len(acceptors_1) for frame_index in range(neighs.shape[0]): for ii in range(n_acceptors): for donor_index in neighs[frame_index][ii]: hbond_id = tuple(donors_2[donor_index].tolist()+[acceptors_1[ii]]) try: output[hbond_id].append(frame_index) except: output[hbond_id]=[frame_index] n_acceptors = len(acceptors_2) for frame_index in range(neighs_2.shape[0]): for ii in range(n_acceptors): for donor_index in neighs_2[frame_index][ii]: hbond_id = tuple(donors_1[donor_index].tolist()+[acceptors_2[ii]]) try: output[hbond_id].append(frame_index) except: output[hbond_id]=[frame_index] else: raise NotImplementedError() return output
44.27619
124
0.641643
526
4,649
5.418251
0.15019
0.1
0.134737
0.138947
0.755789
0.741053
0.73193
0.725263
0.696491
0.696491
0
0.018053
0.273177
4,649
104
125
44.701923
0.825392
0.011831
0
0.61039
0
0
0.010237
0
0
0
0
0
0
1
0.012987
false
0
0.090909
0
0.116883
0
0
0
0
null
0
0
0
0
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
3d99c97581ea0e15ded6a0a315a7067c1e42f98d
1,418
py
Python
migrations/versions/9908a9bf1dbd_json_to_jsonb.py
joelbcastillo/NYCOpenRecords
001dfa21cc33d75a9067cae78752c5ba5734718b
[ "Apache-2.0" ]
null
null
null
migrations/versions/9908a9bf1dbd_json_to_jsonb.py
joelbcastillo/NYCOpenRecords
001dfa21cc33d75a9067cae78752c5ba5734718b
[ "Apache-2.0" ]
1
2018-10-17T15:50:47.000Z
2018-10-17T15:50:47.000Z
migrations/versions/9908a9bf1dbd_json_to_jsonb.py
joelbcastillo/NYCOpenRecords
001dfa21cc33d75a9067cae78752c5ba5734718b
[ "Apache-2.0" ]
null
null
null
"""JSON to JSONB Revision ID: 9908a9bf1dbd Revises: 971f341c0204 Create Date: 2017-06-02 18:16:00.920315 """ # revision identifiers, used by Alembic. revision = '9908a9bf1dbd' down_revision = 'cf62ec87d973' from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import postgresql def upgrade(): op.alter_column('agencies', 'agency_features', type_=postgresql.JSONB(astext_type=sa.Text()), nullable=True) op.alter_column('users', 'mailing_address', type_=postgresql.JSONB(astext_type=sa.Text()), nullable=True) op.alter_column('requests', 'privacy', type_=postgresql.JSONB(astext_type=sa.Text()), nullable=True) op.alter_column('events', 'previous_value', type_=postgresql.JSONB(astext_type=sa.Text()), nullable=True) op.alter_column('events', 'new_value', type_=postgresql.JSONB(astext_type=sa.Text()), nullable=True) def downgrade(): op.alter_column('agencies', 'agency_features', type_=postgresql.JSON(astext_type=sa.Text()), nullable=True) op.alter_column('users', 'mailing_address', type_=postgresql.JSON(astext_type=sa.Text()), nullable=True) op.alter_column('requests', 'privacy', type_=postgresql.JSON(astext_type=sa.Text()), nullable=True) op.alter_column('events', 'previous_value', type_=postgresql.JSON(astext_type=sa.Text()), nullable=True) op.alter_column('events', 'new_value', type_=postgresql.JSON(astext_type=sa.Text()), nullable=True)
44.3125
112
0.753879
192
1,418
5.364583
0.276042
0.067961
0.126214
0.15534
0.750485
0.750485
0.750485
0.750485
0.682524
0.682524
0
0.038014
0.090973
1,418
31
113
45.741935
0.761055
0.100141
0
0
0
0
0.165615
0
0
0
0
0
0
1
0.117647
false
0
0.176471
0
0.294118
0
0
0
0
null
0
0
0
0
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
3ddb05b44b5b8cd9d77b0f835411e2c30ebcb072
55
py
Python
python/a.py
goodagood/cross.lang.http
144a33342c04c8e93200dee04ffe33f58026afd7
[ "Apache-2.0" ]
null
null
null
python/a.py
goodagood/cross.lang.http
144a33342c04c8e93200dee04ffe33f58026afd7
[ "Apache-2.0" ]
null
null
null
python/a.py
goodagood/cross.lang.http
144a33342c04c8e93200dee04ffe33f58026afd7
[ "Apache-2.0" ]
null
null
null
import server server.set_path('./tmp') server.run()
7.857143
24
0.690909
8
55
4.625
0.75
0
0
0
0
0
0
0
0
0
0
0
0.127273
55
6
25
9.166667
0.770833
0
0
0
0
0
0.092593
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