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
213ca174c7e73148f746fa9b06f5e066de631b92
191
py
Python
protobuf_parser/__init__.py
Gobot1234/protobuf_parser
dec0b73334747a33cdca1c9ac254bd7dc41fca00
[ "Apache-2.0" ]
null
null
null
protobuf_parser/__init__.py
Gobot1234/protobuf_parser
dec0b73334747a33cdca1c9ac254bd7dc41fca00
[ "Apache-2.0" ]
null
null
null
protobuf_parser/__init__.py
Gobot1234/protobuf_parser
dec0b73334747a33cdca1c9ac254bd7dc41fca00
[ "Apache-2.0" ]
null
null
null
# Copyright (c) James Hilton-Balfe under the MIT License see LICENSE """A module to interact with Google's Protocol Buffer Compiler (protoc)""" from ._impl import * from ._version import *
27.285714
74
0.748691
28
191
5.035714
0.892857
0
0
0
0
0
0
0
0
0
0
0
0.162304
191
6
75
31.833333
0.88125
0.712042
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
2145feb2012bb0e250c682f2aa8501f29ce20018
60
py
Python
nuit/tests/__init__.py
pwilczynskiclearcode/django-nuit
e1b619c00db36fba48683e9cf3d51cf4460f99c8
[ "Apache-2.0" ]
5
2016-05-15T12:43:24.000Z
2018-10-06T07:45:38.000Z
nuit/tests/__init__.py
pwilczynskiclearcode/django-nuit
e1b619c00db36fba48683e9cf3d51cf4460f99c8
[ "Apache-2.0" ]
12
2016-04-21T22:01:55.000Z
2017-04-20T09:27:56.000Z
nuit/tests/__init__.py
pwilczynskiclearcode/django-nuit
e1b619c00db36fba48683e9cf3d51cf4460f99c8
[ "Apache-2.0" ]
6
2016-04-21T23:27:48.000Z
2018-02-22T16:24:11.000Z
# Test discovery for 1.6 from nuit.tests.test_main import *
20
34
0.766667
11
60
4.090909
0.909091
0
0
0
0
0
0
0
0
0
0
0.039216
0.15
60
2
35
30
0.843137
0.366667
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
dce557af8130ef11307c4189214e9c583552a50a
99
py
Python
src/spaceone/inventory/connector/aws_auto_scaling_connector/__init__.py
jean1042/plugin-aws-cloud-services
1cf192557b03478af33ae81f40b2a49f735716bb
[ "Apache-2.0" ]
4
2020-06-22T01:48:07.000Z
2020-08-24T00:51:09.000Z
src/spaceone/inventory/connector/aws_auto_scaling_connector/__init__.py
jean1042/plugin-aws-cloud-services
1cf192557b03478af33ae81f40b2a49f735716bb
[ "Apache-2.0" ]
2
2020-07-20T01:58:32.000Z
2020-08-04T07:41:37.000Z
src/spaceone/inventory/connector/aws_auto_scaling_connector/__init__.py
jean1042/plugin-aws-cloud-services
1cf192557b03478af33ae81f40b2a49f735716bb
[ "Apache-2.0" ]
6
2020-06-22T09:19:40.000Z
2020-09-17T06:35:37.000Z
from spaceone.inventory.connector.aws_auto_scaling_connector.connector import AutoScalingConnector
49.5
98
0.919192
11
99
8
0.818182
0
0
0
0
0
0
0
0
0
0
0
0.040404
99
1
99
99
0.926316
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
dcec5c5a013fe73fc268a5dbc5386c1089e3ed91
82
py
Python
CodingBat/Warmup-1/parrot_trouble.py
arthxvr/coding--python
1e91707be6cb8fef816dad0c1a65f2cc3327357e
[ "MIT" ]
null
null
null
CodingBat/Warmup-1/parrot_trouble.py
arthxvr/coding--python
1e91707be6cb8fef816dad0c1a65f2cc3327357e
[ "MIT" ]
null
null
null
CodingBat/Warmup-1/parrot_trouble.py
arthxvr/coding--python
1e91707be6cb8fef816dad0c1a65f2cc3327357e
[ "MIT" ]
null
null
null
def parrot_trouble(talking, hour): return talking and (hour < 7 or hour > 20)
27.333333
46
0.695122
13
82
4.307692
0.769231
0
0
0
0
0
0
0
0
0
0
0.046154
0.207317
82
2
47
41
0.815385
0
0
0
0
0
0
0
0
0
0
0
0
1
0.5
false
0
0
0.5
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
5
0d03f6edb56b8dd87b660882a9c1573e53d8cc66
173
py
Python
tests/sample_migrations/0015.py
SuadeLabs/infi.clickhouse_orm
cd724c213224583bff5e78cc63221ecec769c317
[ "BSD-3-Clause" ]
3
2022-01-07T15:50:59.000Z
2022-01-20T02:21:46.000Z
tests/sample_migrations/0015.py
SuadeLabs/infi.clickhouse_orm
cd724c213224583bff5e78cc63221ecec769c317
[ "BSD-3-Clause" ]
3
2021-07-28T21:55:25.000Z
2021-08-14T11:30:08.000Z
tests/sample_migrations/0015.py
SuadeLabs/infi.clickhouse_orm
cd724c213224583bff5e78cc63221ecec769c317
[ "BSD-3-Clause" ]
null
null
null
from clickhouse_orm import migrations from ..test_migrations import * operations = [migrations.AlterTable(Model4_compressed), migrations.AlterTable(Model2LowCardinality)]
28.833333
100
0.843931
17
173
8.411765
0.647059
0.27972
0
0
0
0
0
0
0
0
0
0.012579
0.080925
173
5
101
34.6
0.886792
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
5
0d4da38b2a9c09960330df3a6aaa4c8857711c52
421
py
Python
gym_copter/envs/__init__.py
simondlevy/gym-copter
7236769b7586b92026d4b47f12363258c84d9508
[ "MIT" ]
14
2019-11-03T05:17:46.000Z
2022-02-26T05:37:32.000Z
gym_copter/envs/__init__.py
simondlevy/gym-copter
7236769b7586b92026d4b47f12363258c84d9508
[ "MIT" ]
77
2020-05-17T01:56:29.000Z
2021-06-19T02:46:52.000Z
gym_copter/envs/__init__.py
simondlevy/gym-copter
7236769b7586b92026d4b47f12363258c84d9508
[ "MIT" ]
6
2020-01-01T07:22:15.000Z
2021-05-11T17:45:33.000Z
''' Copyright (C) 2019 Simon D. Levy MIT License ''' from gym_copter.envs.lander1d import Lander1D # noqa: F401 from gym_copter.envs.lander2d import Lander2D # noqa: F401 from gym_copter.envs.lander3d import Lander3D # noqa: F401 from gym_copter.envs.hover1d import Hover1D # noqa: F401 from gym_copter.envs.hover2d import Hover2D # noqa: F401 from gym_copter.envs.hover3d import Hover3D # noqa: F401
32.384615
60
0.750594
62
421
5
0.33871
0.135484
0.251613
0.329032
0.403226
0.403226
0
0
0
0
0
0.097421
0.171021
421
12
61
35.083333
0.790831
0.266033
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
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
5
b4c66082255c60b091b0f568fd25b0b7a336be47
23
py
Python
src/radio81/main.py
corzani/radio81
eefe00efc768b3c91ada2a6a695eb143f8570393
[ "MIT" ]
null
null
null
src/radio81/main.py
corzani/radio81
eefe00efc768b3c91ada2a6a695eb143f8570393
[ "MIT" ]
null
null
null
src/radio81/main.py
corzani/radio81
eefe00efc768b3c91ada2a6a695eb143f8570393
[ "MIT" ]
null
null
null
def main(): start()
11.5
11
0.521739
3
23
4
1
0
0
0
0
0
0
0
0
0
0
0
0.26087
23
2
12
11.5
0.705882
0
0
0
0
0
0
0
0
0
0
0
0
1
0.5
true
0
0
0
0.5
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
0
0
0
0
0
5
b4d560e877026670b66a24000852922307d0c07d
405
py
Python
view/AutoScaleView.py
liujiage/DevOpsK8s
b722a855394887a91f42c46586b9724f3258f620
[ "Apache-2.0" ]
1
2022-02-26T05:20:28.000Z
2022-02-26T05:20:28.000Z
view/AutoScaleView.py
liujiage/DevOpsK8s
b722a855394887a91f42c46586b9724f3258f620
[ "Apache-2.0" ]
null
null
null
view/AutoScaleView.py
liujiage/DevOpsK8s
b722a855394887a91f42c46586b9724f3258f620
[ "Apache-2.0" ]
null
null
null
from services.dao.AutoScaleSettingDao import AutoScaleSettingDao from vo.AutoScaleSettingVO import AutoScaleSettingVO class AutoScaleView: def __init__(self): self.assDao = AutoScaleSettingDao() def getSetting(self) -> AutoScaleSettingVO: return self.assDao.query() def saveSetting(self, setting = AutoScaleSettingVO()): return self.assDao.updateOrInsert(setting)
27
64
0.753086
37
405
8.135135
0.513514
0.099668
0.186047
0.225914
0
0
0
0
0
0
0
0
0.17037
405
14
65
28.928571
0.895833
0
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0.222222
0.222222
0.888889
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
5
372b7b9e9ea4bbd0a2cf43d58723295a5d2b9700
98
py
Python
bot/bot.py
mercdev-corp/repsoter
5ab98e84556143d4688ae5497443916fa63431b0
[ "MIT" ]
2
2020-10-26T09:26:13.000Z
2022-03-22T18:10:01.000Z
bot/bot.py
mercdev-corp/repsoter
5ab98e84556143d4688ae5497443916fa63431b0
[ "MIT" ]
null
null
null
bot/bot.py
mercdev-corp/repsoter
5ab98e84556143d4688ae5497443916fa63431b0
[ "MIT" ]
2
2020-02-11T08:11:19.000Z
2022-03-20T18:16:41.000Z
from telegram import Bot from .settings import settings bot = Bot(token=settings.TG_BOT_TOKEN)
14
38
0.795918
15
98
5.066667
0.466667
0.210526
0
0
0
0
0
0
0
0
0
0
0.142857
98
6
39
16.333333
0.904762
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
5
2eb409ec88817b5aea42c9fecdcb097f5805619d
146
py
Python
2_B_1_C_Date.py
julia-komleva/algorithm-training
46c42cfed007ba27c7848bfc52009b64148dd84e
[ "MIT" ]
null
null
null
2_B_1_C_Date.py
julia-komleva/algorithm-training
46c42cfed007ba27c7848bfc52009b64148dd84e
[ "MIT" ]
null
null
null
2_B_1_C_Date.py
julia-komleva/algorithm-training
46c42cfed007ba27c7848bfc52009b64148dd84e
[ "MIT" ]
null
null
null
first, second, year = map(int, input().split()) if first == second: print(1) elif first < 13 and second < 13: print(0) else: print(1)
18.25
47
0.60274
23
146
3.826087
0.652174
0.25
0
0
0
0
0
0
0
0
0
0.0625
0.232877
146
8
48
18.25
0.723214
0
0
0.285714
0
0
0
0
0
0
0
0
0
1
0
true
0
0
0
0
0.428571
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
1
0
5
2ebf2b711d5bac59fcf0168828cf681fb406ccf8
97
py
Python
Datadex/__init__.py
steventhe24th/Beehive
38b48f9d1960116a9207364265966e9badaf5dd7
[ "MIT" ]
null
null
null
Datadex/__init__.py
steventhe24th/Beehive
38b48f9d1960116a9207364265966e9badaf5dd7
[ "MIT" ]
14
2021-11-04T05:59:46.000Z
2022-01-19T04:34:18.000Z
Datadex/__init__.py
steventhe24th/DataDex
8f8fe564ab0140412946325fc49ab5099439e9ee
[ "MIT" ]
null
null
null
from Datadex.main import Vespiqueen,VespiqueenTools,Combee,CombeeKeras, Beehive, Diglett, Utility
97
97
0.865979
11
97
7.636364
1
0
0
0
0
0
0
0
0
0
0
0
0.061856
97
1
97
97
0.923077
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
2eee6c323611a8a7fe82dc49eb87f1dc974e571d
58
py
Python
typings/bl_previews_utils/__init__.py
Argmaster/PyR3
6786bcb6a101fe4bd4cc50fe43767b8178504b15
[ "MIT" ]
2
2021-12-12T18:51:52.000Z
2022-02-23T09:49:16.000Z
src/blender/blender_autocomplete-master/2.92/bl_previews_utils/__init__.py
JonasWard/ClayAdventures
a716445ac690e4792e70658319aa1d5299f9c9e9
[ "MIT" ]
2
2021-11-08T12:09:02.000Z
2021-12-12T23:01:12.000Z
src/blender/blender_autocomplete-master/2.92/bl_previews_utils/__init__.py
JonasWard/ClayAdventures
a716445ac690e4792e70658319aa1d5299f9c9e9
[ "MIT" ]
null
null
null
import sys import typing from . import bl_previews_render
14.5
32
0.844828
9
58
5.222222
0.777778
0
0
0
0
0
0
0
0
0
0
0
0.137931
58
3
33
19.333333
0.94
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
257f43148dd0d3d1da7f30f12a115695a88789eb
5,031
py
Python
analysis/overlapParadigms.py
jlubo/memory-consolidation-stc
f9934760e12de324360297d7fc7902623169cb4d
[ "Apache-2.0" ]
2
2021-03-02T21:46:56.000Z
2021-06-30T03:12:07.000Z
analysis/overlapParadigms.py
jlubo/memory-consolidation-stc
f9934760e12de324360297d7fc7902623169cb4d
[ "Apache-2.0" ]
null
null
null
analysis/overlapParadigms.py
jlubo/memory-consolidation-stc
f9934760e12de324360297d7fc7902623169cb4d
[ "Apache-2.0" ]
3
2021-03-22T12:56:52.000Z
2021-09-13T07:42:36.000Z
############################################################## ### Definitions of assembly neurons in different paradigms ### ### of overlap between cell assemblies ### ############################################################## ### Copyright 2020-2021 Jannik Luboeinski ### licensed under Apache-2.0 (http://www.apache.org/licenses/LICENSE-2.0) import numpy as np # coreDefinitions # Returns the neuron numbers belonging to each of three assemblies in a given paradigm # paradigm: name of the paradigm to consider # core_size: the size of one assembly # return: the three assemblies def coreDefinitions(paradigm, core_size = 600): # full_overlap # Returns the neuron number belonging to each of three assemblies with equal overlaps # overlap: overlap between each two cell assemblies (0.1 equals "OVERLAP10" and so on) # return: the three assemblies def full_overlap(overlap): tot_wo_overlap = 1-overlap half_overlap = overlap / 2 tot2_wo_overlap_oh = 2-overlap-half_overlap core1 = np.arange(core_size) core2 = np.arange(int(np.round(tot_wo_overlap*core_size)), int(np.round(tot_wo_overlap*core_size))+core_size) core3 = np.concatenate(( np.arange(int(np.round(tot2_wo_overlap_oh*core_size)), int(np.round(tot2_wo_overlap_oh*core_size))+int(np.round(tot_wo_overlap*core_size))), \ np.arange(int(np.round(half_overlap*core_size))), \ np.arange(int(np.round(tot_wo_overlap*core_size)), int(np.round(tot_wo_overlap*core_size))+int(np.round(half_overlap*core_size))) )) return (core1, core2, core3) # no_ABC_overlap # Returns the neuron number belonging to each of three assemblies with equal overlaps but no common overlap # overlap: overlap between each two cell assemblies (0.1 equals "OVERLAP10 no ABC" and so on) # return: the three assemblies def no_ABC_overlap(overlap): tot_wo_overlap = 1-overlap tot2_wo_overlap_oh = 2 - 2*overlap core1 = np.arange(core_size) core2 = np.arange(int(np.round(tot_wo_overlap*core_size)), int(np.round(tot_wo_overlap*core_size))+core_size) core3 = np.concatenate(( np.arange(int(np.round(tot2_wo_overlap_oh*core_size)), int(np.round(tot2_wo_overlap_oh*core_size))+int(np.round(tot_wo_overlap*core_size))), \ np.arange(int(np.round(overlap*core_size))) )) return (core1, core2, core3) # no_AC_no_ABC_overlap # Returns the neuron number belonging to each of three assemblies with "no AC, no ABC" overlap # overlap: overlap between each two cell assemblies (0.1 equals "OVERLAP10 no AC, no ABC" and so on) # return: the three assemblies def no_AC_no_ABC_overlap(overlap): tot_wo_overlap = 1-overlap tot2_wo_overlap_oh = 2 - 2*overlap core1 = np.arange(core_size) core2 = np.arange(int(np.round(tot_wo_overlap*core_size)), int(np.round(tot_wo_overlap*core_size))+core_size) core3 = np.arange(int(np.round(tot2_wo_overlap_oh*core_size)), int(np.round(tot2_wo_overlap_oh*core_size))+core_size) return (core1, core2, core3) # no_BC_no_ABC_overlap # Returns the neuron number belonging to each of three assemblies with "no BC, no ABC" overlap # overlap: overlap between each two cell assemblies (0.1 equals "OVERLAP10 no BC, no ABC" and so on) # return: the three assemblies def no_BC_no_ABC_overlap(overlap): tot_wo_overlap = 1-overlap core1 = np.arange(core_size) core2 = np.arange(int(np.round(tot_wo_overlap*core_size)), int(np.round(tot_wo_overlap*core_size))+core_size) core3 = np.concatenate(( np.arange(int(np.round(tot_wo_overlap*core_size))+core_size, 2*int(np.round(tot_wo_overlap*core_size))+core_size), \ np.arange(int(np.round(overlap*core_size))) )) return (core1, core2, core3) # handling the different overlap paradigms: if paradigm == "NOOVERLAP": core1 = np.arange(core_size) core2 = np.arange(core_size, 2*core_size) core3 = np.arange(2*core_size, 3*core_size) elif paradigm == "OVERLAP10": core1, core2, core3 = full_overlap(0.1) elif paradigm == "OVERLAP10 no ABC": core1, core2, core3 = no_ABC_overlap(0.1) elif paradigm == "OVERLAP10 no AC, no ABC": core1, core2, core3 = no_AC_no_ABC_overlap(0.1) elif paradigm == "OVERLAP10 no BC, no ABC": core1, core2, core3 = no_BC_no_ABC_overlap(0.1) elif paradigm == "OVERLAP15": core1, core2, core3 = full_overlap(0.15) elif paradigm == "OVERLAP15 no ABC": core1, core2, core3 = no_ABC_overlap(0.15) elif paradigm == "OVERLAP15 no AC, no ABC": core1, core2, core3 = no_AC_no_ABC_overlap(0.15) elif paradigm == "OVERLAP15 no BC, no ABC": core1, core2, core3 = no_BC_no_ABC_overlap(0.15) elif paradigm == "OVERLAP20": core1, core2, core3 = full_overlap(0.2) elif paradigm == "OVERLAP20 no ABC": core1, core2, core3 = no_ABC_overlap(0.2) elif paradigm == "OVERLAP20 no AC, no ABC": core1, core2, core3 = no_AC_no_ABC_overlap(0.2) elif paradigm == "OVERLAP20 no BC, no ABC": core1, core2, core3 = no_BC_no_ABC_overlap(0.2) else: raise ValueError("Unknown paradigm: " + paradigm) return (core1, core2, core3)
48.375
169
0.714768
793
5,031
4.327869
0.116015
0.097902
0.06993
0.05303
0.835373
0.815268
0.787005
0.736305
0.69493
0.617716
0
0.040149
0.148479
5,031
103
170
48.84466
0.760971
0.279865
0
0.369231
0
0
0.069404
0
0
0
0
0
0
1
0.076923
false
0
0.015385
0
0.169231
0
0
0
0
null
0
0
0
1
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
2594f3fc6b9ef72837f5514a05376f90cfcd6f33
145
py
Python
robopom/__init__.py
qky666/robopom
631204718a49108afc3d0cb5f7f4e7e914fdfd1f
[ "Apache-2.0" ]
null
null
null
robopom/__init__.py
qky666/robopom
631204718a49108afc3d0cb5f7f4e7e914fdfd1f
[ "Apache-2.0" ]
null
null
null
robopom/__init__.py
qky666/robopom
631204718a49108afc3d0cb5f7f4e7e914fdfd1f
[ "Apache-2.0" ]
null
null
null
from .RobopomSeleniumPlugin import RobopomSeleniumPlugin from .RobopomPage import RobopomPage from .ComponentVariables import ComponentVariables
36.25
56
0.896552
12
145
10.833333
0.416667
0
0
0
0
0
0
0
0
0
0
0
0.082759
145
3
57
48.333333
0.977444
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
25a16a0fd72885ebf712493fac9c9f784012eddb
172
py
Python
app/database.py
leandcesar/bobotinho-api
7a3ce31fb2220e00b4b1fabf10e1c32afde314a9
[ "MIT" ]
null
null
null
app/database.py
leandcesar/bobotinho-api
7a3ce31fb2220e00b4b1fabf10e1c32afde314a9
[ "MIT" ]
null
null
null
app/database.py
leandcesar/bobotinho-api
7a3ce31fb2220e00b4b1fabf10e1c32afde314a9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from flask_sqlalchemy import SQLAlchemy from sqlalchemy.orm import load_only, validates from sqlalchemy.event import listens_for db = SQLAlchemy()
24.571429
47
0.784884
23
172
5.73913
0.652174
0.212121
0
0
0
0
0
0
0
0
0
0.006667
0.127907
172
6
48
28.666667
0.873333
0.122093
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.75
0
0.75
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
5
25bff9d96eb88b8a36e0cd1506c31bfaa8372e4e
164
py
Python
Lib/site-packages/hexview/__init__.py
fochoao/cpython
3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9
[ "bzip2-1.0.6", "0BSD" ]
null
null
null
Lib/site-packages/hexview/__init__.py
fochoao/cpython
3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9
[ "bzip2-1.0.6", "0BSD" ]
20
2021-05-03T18:02:23.000Z
2022-03-12T12:01:04.000Z
Lib/site-packages/hexview/__init__.py
fochoao/cpython
3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9
[ "bzip2-1.0.6", "0BSD" ]
null
null
null
__all__ = ["HexViewWidget", "QT_COLORS", "make_color_icon"] from .hexview import HexViewWidget from .hexview import QT_COLORS from .hexview import make_color_icon
27.333333
59
0.804878
22
164
5.545455
0.454545
0.270492
0.418033
0
0
0
0
0
0
0
0
0
0.109756
164
5
60
32.8
0.835616
0
0
0
0
0
0.22561
0
0
0
0
0
0
1
0
false
0
0.75
0
0.75
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
5
25d88518387f0533b566e1613e615112a923ef1b
57
py
Python
models/modules/__init__.py
leliyliu/Fixed-Point-Training
0f31512abbbab9216bd852c27be5c3774663d62e
[ "Apache-2.0" ]
1
2021-09-27T06:25:08.000Z
2021-09-27T06:25:08.000Z
models/modules/__init__.py
leliyliu/Fixed-Point-Training
0f31512abbbab9216bd852c27be5c3774663d62e
[ "Apache-2.0" ]
null
null
null
models/modules/__init__.py
leliyliu/Fixed-Point-Training
0f31512abbbab9216bd852c27be5c3774663d62e
[ "Apache-2.0" ]
null
null
null
from .cptconv import CPTConv2d from .qconv import qconv2d
28.5
30
0.842105
8
57
6
0.75
0
0
0
0
0
0
0
0
0
0
0.04
0.122807
57
2
31
28.5
0.92
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
25e4ef0d7e3ab6f4824d03c2c59d4d291036d2b5
164
py
Python
haul3/libs/hres.py
hotkeymuc/haul
22533491e3a22ce9fabd81f281282a09880b400c
[ "MIT" ]
2
2021-07-04T13:00:50.000Z
2022-03-19T21:39:06.000Z
haul3/libs/hres.py
hotkeymuc/haul
22533491e3a22ce9fabd81f281282a09880b400c
[ "MIT" ]
null
null
null
haul3/libs/hres.py
hotkeymuc/haul
22533491e3a22ce9fabd81f281282a09880b400c
[ "MIT" ]
null
null
null
# HAUL Resources def get(i): return None def use(filename): # Do nothing, it is overridden when testing; in order to load resources at runtime return -1
20.5
84
0.707317
26
164
4.461538
0.884615
0
0
0
0
0
0
0
0
0
0
0.007874
0.22561
164
8
85
20.5
0.905512
0.579268
0
0
0
0
0
0
0
0
0
0
0
1
0.5
false
0
0
0.5
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
5
25eb40c3b0ae9ad2a0c9bddab79c5b5063397adf
158
py
Python
Pytorch/Visualization/visualizers/__init__.py
Kuga23/Deep-Learning
86980338208c702b6bfcbcfffdb18498e389a56b
[ "MIT" ]
null
null
null
Pytorch/Visualization/visualizers/__init__.py
Kuga23/Deep-Learning
86980338208c702b6bfcbcfffdb18498e389a56b
[ "MIT" ]
null
null
null
Pytorch/Visualization/visualizers/__init__.py
Kuga23/Deep-Learning
86980338208c702b6bfcbcfffdb18498e389a56b
[ "MIT" ]
null
null
null
from .saliency_map import SaliencyMap from .gradcam import GradCam from .fooling_image import FoolingImage from .class_visualization import ClassVisualization
39.5
51
0.879747
19
158
7.157895
0.631579
0
0
0
0
0
0
0
0
0
0
0
0.094937
158
4
51
39.5
0.951049
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
d30a04e2627210f39105bc7564497a8178f8d7ce
212
py
Python
sws_webstuff/redirect_class.py
Aurvandill137/sws_webstuff
c2ae109f419c2448d25f33e7f9b88cc9670e26cf
[ "MIT" ]
null
null
null
sws_webstuff/redirect_class.py
Aurvandill137/sws_webstuff
c2ae109f419c2448d25f33e7f9b88cc9670e26cf
[ "MIT" ]
null
null
null
sws_webstuff/redirect_class.py
Aurvandill137/sws_webstuff
c2ae109f419c2448d25f33e7f9b88cc9670e26cf
[ "MIT" ]
null
null
null
class Redirect: def __init__(self, url: str = ""): self.redirect_url = url def to_dict(self): tmp_dict = { "redirect_url": self.redirect_url, } return tmp_dict
23.555556
46
0.551887
25
212
4.28
0.44
0.308411
0.280374
0
0
0
0
0
0
0
0
0
0.34434
212
9
47
23.555556
0.769784
0
0
0
0
0
0.056338
0
0
0
0
0
0
1
0.25
false
0
0
0
0.5
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
5
d310db6250d225147d73d5cf6e24dc43a2a07a2f
113
py
Python
homeserver/cloud/admin.py
shravan097/Mero-Home-Cloud
1e0c3f45b3dc5845efd9f0adb05341dca9b66130
[ "MIT" ]
1
2017-08-11T00:37:07.000Z
2017-08-11T00:37:07.000Z
homeserver/cloud/admin.py
shravan097/Mero-Home-Cloud
1e0c3f45b3dc5845efd9f0adb05341dca9b66130
[ "MIT" ]
16
2017-05-31T22:08:41.000Z
2017-07-09T03:56:09.000Z
homeserver/cloud/admin.py
shravan097/Mero-Home-Cloud
1e0c3f45b3dc5845efd9f0adb05341dca9b66130
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import File # Register your models here. admin.site.register(File)
22.6
32
0.80531
17
113
5.352941
0.647059
0
0
0
0
0
0
0
0
0
0
0
0.123894
113
5
33
22.6
0.919192
0.230089
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
d36b3a55a43b08076f303d7d615a57af91181653
57
py
Python
myallennlp/data/__init__.py
picsolab/COLING2020-BiasStudy
e877cb0625d1f529334507d08db1a6e517fa77b1
[ "MIT" ]
1
2020-12-04T20:32:21.000Z
2020-12-04T20:32:21.000Z
myallennlp/data/__init__.py
picsolab/COLING2020-BiasStudy
e877cb0625d1f529334507d08db1a6e517fa77b1
[ "MIT" ]
null
null
null
myallennlp/data/__init__.py
picsolab/COLING2020-BiasStudy
e877cb0625d1f529334507d08db1a6e517fa77b1
[ "MIT" ]
1
2020-11-28T19:56:44.000Z
2020-11-28T19:56:44.000Z
from myallennlp.data.dataset_readers import tweet_reader
28.5
56
0.894737
8
57
6.125
1
0
0
0
0
0
0
0
0
0
0
0
0.070175
57
1
57
57
0.924528
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
d38a7ed8134f2b08d8135cb187d80f8a606fe700
328
py
Python
exercicios_basico/ex002.py
montalvas/python
483c2097f6f91bfae127dafcb63e3006eeecad1d
[ "MIT" ]
null
null
null
exercicios_basico/ex002.py
montalvas/python
483c2097f6f91bfae127dafcb63e3006eeecad1d
[ "MIT" ]
null
null
null
exercicios_basico/ex002.py
montalvas/python
483c2097f6f91bfae127dafcb63e3006eeecad1d
[ "MIT" ]
null
null
null
nome = input('Qual o seu nome? ') sobrenome = input('Qual o seu sobrenome? ') print('Seja bem-vindo(a), {} {}!'.format(nome, sobrenome)) print('Ordem natural: {0} {1}'.format(nome, sobrenome)) print('Ordem inversa: {1} {0}'.format(nome, sobrenome)) print('Outra forma: {0} {1} {other}'.format(nome, sobrenome, other = 'Santos'))
54.666667
79
0.661585
47
328
4.617021
0.446809
0.299539
0.35023
0.331797
0.267281
0
0
0
0
0
0
0.020619
0.112805
328
6
79
54.666667
0.725086
0
0
0
0
0
0.431611
0
0
0
0
0
0
1
0
false
0
0
0
0
0.666667
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
5
d3971446c612b48c54e07bdf48652dfc9d5c5ba8
19
py
Python
printstuff2.py
bjigarjian/cs32240-labdemo
480358ce54050e55cc7e2a20243bbd480ec3dffb
[ "MIT" ]
null
null
null
printstuff2.py
bjigarjian/cs32240-labdemo
480358ce54050e55cc7e2a20243bbd480ec3dffb
[ "MIT" ]
null
null
null
printstuff2.py
bjigarjian/cs32240-labdemo
480358ce54050e55cc7e2a20243bbd480ec3dffb
[ "MIT" ]
null
null
null
print('OTHERSTUFF')
19
19
0.789474
2
19
7.5
1
0
0
0
0
0
0
0
0
0
0
0
0
19
1
19
19
0.789474
0
0
0
0
0
0.5
0
0
0
0
0
0
1
0
true
0
0
0
0
1
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
1
0
5
6cf1cb4716cd237e48c25e14b6bb49f32b03b77c
301
py
Python
bug_master/commands/__init__.py
eliorerz/bug_master_bot
a4fd5953a4bc3730857d71d231bcaf6d2297366b
[ "MIT" ]
null
null
null
bug_master/commands/__init__.py
eliorerz/bug_master_bot
a4fd5953a4bc3730857d71d231bcaf6d2297366b
[ "MIT" ]
null
null
null
bug_master/commands/__init__.py
eliorerz/bug_master_bot
a4fd5953a4bc3730857d71d231bcaf6d2297366b
[ "MIT" ]
null
null
null
from .channel_configuration_command import ChannelConfigurationCommand from .command import Command from .command_handler import CommandHandler from .supported_commands import NotSupportedCommandError __all__ = ["Command", "CommandHandler", "ChannelConfigurationCommand", "NotSupportedCommandError"]
43
98
0.863787
25
301
10.08
0.48
0.103175
0
0
0
0
0
0
0
0
0
0
0.076412
301
6
99
50.166667
0.906475
0
0
0
0
0
0.239203
0.169435
0
0
0
0
0
1
0
false
0
0.8
0
0.8
0
1
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
5
9f0c74afd66f5ace80b49376e71c5cd7ccce2091
5,770
py
Python
myScripts/mapchina.py
Victoryhhaa/COVID-19-NLP-vis
68d25744fe9b35b06971f1f3710a54f674344ecf
[ "MIT" ]
null
null
null
myScripts/mapchina.py
Victoryhhaa/COVID-19-NLP-vis
68d25744fe9b35b06971f1f3710a54f674344ecf
[ "MIT" ]
null
null
null
myScripts/mapchina.py
Victoryhhaa/COVID-19-NLP-vis
68d25744fe9b35b06971f1f3710a54f674344ecf
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import time, json import pandas as pd from pyecharts.charts import Map import pyecharts.options as opts n = "dataSets/china_provincedata.csv" def render_mapcountChina_rate(dateId): data = pd.read_csv(n) data = data[data['dateId'] == dateId] #print(data['currentConfirmedCount']) list_data = zip(list(data['provinceShortName']), list((data['deadCount']*1000 // data['confirmedCount'])/10)) # [('湖北', 48206), ('广东', 1241), ('河南', 1169), ('浙江', 1145), ..., ('澳门', 10), ('西藏', 1)] #------------------------------------------------------------------------------------- # 第二步:绘制全国疫情地图 # 参考文章:https://blog.csdn.net/shineych/article/details/104231072 [shineych大神] #------------------------------------------------------------------------------------- c = ( Map() .add('', list_data, 'china') .set_global_opts( title_opts=opts.TitleOpts(title='全国疫情分布图(死亡率)'+str(dateId)), visualmap_opts=opts.VisualMapOpts(is_show=True, split_number=6, is_piecewise=True, # 是否为分段型 pos_top='center', pieces=[ {'min': 40, 'color': '#7f1818'}, #不指定 max {'min': 20, 'max': 40}, {'min': 10, 'max': 20}, {'min': 8, 'max': 10}, {'min': 4, 'max': 8}, {'min': 1, 'max': 4}, {'min': 0.6, 'max': 1}, {'min': 0.1, 'max': 0.5}, {'min': 0, 'max': 0} ]), ) ) return c def render_mapcountChina_death(dateId): data = pd.read_csv(n) data = data[data['dateId'] == dateId] #print(data['currentConfirmedCount']) list_data = zip(list(data['provinceShortName']), list(data['deadCount'])) # [('湖北', 48206), ('广东', 1241), ('河南', 1169), ('浙江', 1145), ..., ('澳门', 10), ('西藏', 1)] #------------------------------------------------------------------------------------- # 第二步:绘制全国疫情地图 # 参考文章:https://blog.csdn.net/shineych/article/details/104231072 [shineych大神] #------------------------------------------------------------------------------------- c = ( Map() .add('', list_data, 'china') .set_global_opts( title_opts=opts.TitleOpts(title='全国疫情分布图(累计死亡人数)'+str(dateId)), visualmap_opts=opts.VisualMapOpts(is_show=True, split_number=6, is_piecewise=True, # 是否为分段型 pos_top='center', pieces=[ {'min': 10000, 'color': '#7f1818'}, #不指定 max {'min': 1000, 'max': 10000}, {'min': 500, 'max': 999}, {'min': 100, 'max': 499}, {'min': 10, 'max': 99}, {'min': 0, 'max': 9} ], ), ) ) return c def render_mapcountChina_current(dateId): data = pd.read_csv(n) data = data[data['dateId'] == dateId] #print(data['currentConfirmedCount']) list_data = zip(list(data['provinceShortName']), list(data['currentConfirmedCount'])) # [('湖北', 48206), ('广东', 1241), ('河南', 1169), ('浙江', 1145), ..., ('澳门', 10), ('西藏', 1)] #------------------------------------------------------------------------------------- # 第二步:绘制全国疫情地图 # 参考文章:https://blog.csdn.net/shineych/article/details/104231072 [shineych大神] #------------------------------------------------------------------------------------- c = ( Map() .add('', list_data, 'china') .set_global_opts( title_opts=opts.TitleOpts(title='全国疫情分布图(现存)'+str(dateId)), visualmap_opts=opts.VisualMapOpts(is_show=True, split_number=6, is_piecewise=True, # 是否为分段型 pos_top='center', pieces=[ {'min': 10000, 'color': '#7f1818'}, #不指定 max {'min': 1000, 'max': 10000}, {'min': 500, 'max': 999}, {'min': 100, 'max': 499}, {'min': 10, 'max': 99}, {'min': 0, 'max': 9} ], ), ) ) return c def render_mapcountChina(dateId,type = 0): if(type==0): return render_mapcountChina_current(dateId) elif(type==1): return render_mapcountChina_death(dateId) elif(type==2): return render_mapcountChina_rate(dateId) if __name__ == "__main__": render_mapcountChina(20200212).render('全国疫情地图.html')
47.68595
121
0.34714
428
5,770
4.549065
0.264019
0.049307
0.045198
0.024653
0.749358
0.724191
0.724191
0.724191
0.724191
0.724191
0
0.065968
0.437782
5,770
121
122
47.68595
0.534217
0.208492
0
0.561798
0
0
0.087186
0.011449
0
0
0
0
0
1
0.044944
false
0
0.044944
0
0.157303
0
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
9f21bc5098cbceae03ddb046476d8bf0ed9fdb1d
23,562
py
Python
fn_email_header_validation/fn_email_header_validation/util/customize.py
nickpartner-goahead/resilient-community-apps
097c0dbefddbd221b31149d82af9809420498134
[ "MIT" ]
65
2017-12-04T13:58:32.000Z
2022-03-24T18:33:17.000Z
fn_email_header_validation/fn_email_header_validation/util/customize.py
nickpartner-goahead/resilient-community-apps
097c0dbefddbd221b31149d82af9809420498134
[ "MIT" ]
48
2018-03-02T19:17:14.000Z
2022-03-09T22:00:38.000Z
fn_email_header_validation/fn_email_header_validation/util/customize.py
nickpartner-goahead/resilient-community-apps
097c0dbefddbd221b31149d82af9809420498134
[ "MIT" ]
95
2018-01-11T16:23:39.000Z
2022-03-21T11:34:29.000Z
# -*- coding: utf-8 -*- """Generate the Resilient customizations required for fn_email_header_validation""" from __future__ import print_function from resilient_circuits.util import * def customization_data(client=None): """Produce any customization definitions (types, fields, message destinations, etc) that should be installed by `resilient-circuits customize` """ # This import data contains: # Function inputs: # artifact_id # attachment_id # email_header_validation_target_email # incident_id # Message Destinations: # fn_email_header_validation # Functions: # email_header_validation_using_dkimarc # Workflows: # example_email_header_validation_using_dkimarc_artifact # example_email_header_validation_using_dkimarc_attachment # Rules: # Example: Email Header Validation Using DKIM/ARC [Artifact] # Example: Email Header Validation Using DKIM/ARC [Attachment] yield ImportDefinition(u""" eyJzZXJ2ZXJfdmVyc2lvbiI6IHsibWFqb3IiOiAzMCwgIm1pbm9yIjogMCwgImJ1aWxkX251 bWJlciI6IDAsICJ2ZXJzaW9uIjogIjMwLjAuMCJ9LCAiZXhwb3J0X2Zvcm1hdF92ZXJzaW9u IjogMiwgImlkIjogNCwgImV4cG9ydF9kYXRlIjogMTUzNzMwMTY1MTczNSwgImZpZWxkcyI6 IFt7ImlkIjogNTEsICJuYW1lIjogImluY190cmFpbmluZyIsICJ0ZXh0IjogIlNpbXVsYXRp b24iLCAicHJlZml4IjogbnVsbCwgInR5cGVfaWQiOiAwLCAidG9vbHRpcCI6ICJXaGV0aGVy IHRoZSBpbmNpZGVudCBpcyBhIHNpbXVsYXRpb24gb3IgYSByZWd1bGFyIGluY2lkZW50LiAg VGhpcyBmaWVsZCBpcyByZWFkLW9ubH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hdGlvbiBVc2luZyBES0lNL0FSQyBbQXJ0aWZhY3RdIiwgInByb2dyYW1tYXRp Y19uYW1lIjogImV4YW1wbGVfZW1haWxfaGVhZGVyX3ZhbGlkYXRpb25fdXNpbmdfZGtpbWFy Y19hcnRpZmFjdCIsICJvYmplY3RfdHlwZSI6ICJhcnRpZmFjdCIsICJkZXNjcmlwdGlvbiI6 IG51bGwsICJ1dWlkIjogbnVsbCwgImFjdGlvbnMiOiBbXX0sIHsid29ya2Zsb3dfaWQiOiAz NiwgIm5hbWUiOiAiRXhhbXBsZTogRW1haWwgSGVhZGVyIFZhbGlkYXRpb24gVXNpbmcgREtJ TS9BUkMgW0F0dGFjaG1lbnRdIiwgInByb2dyYW1tYXRpY19uYW1lIjogImV4YW1wbGVfZW1h aWxfaGVhZGVyX3ZhbGlkYXRpb25fdXNpbmdfZGtpbWFyY19hdHRhY2htZW50IiwgIm9iamVj dF90eXBlIjogImF0dGFjaG1lbnQiLCAiZGVzY3JpcHRpb24iOiBudWxsLCAidXVpZCI6IG51 bGwsICJhY3Rpb25zIjogW119XX1dfQo= """ )
68.494186
87
0.971649
466
23,562
49.051502
0.877682
0.00385
0.00735
0.005687
0.009143
0.0077
0.0035
0
0
0
0
0.12443
0.02313
23,562
343
88
68.693878
0.868662
0.032128
0
0
1
0
0.989107
0.97549
0
1
0
0
0
1
0.003175
false
0
0.009524
0
0.012698
0.003175
0
0
1
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
1
0
0
0
0
0
0
0
0
0
0
0
0
5
9f2bc3480539612d7566c589a61c50774458c0ea
285
py
Python
tests/test_either/test_either_from.py
flpStrri/tupperware
23e241d49d56e5a94044258c5056bd9486e34c5f
[ "BSD-2-Clause" ]
4
2020-05-26T19:05:48.000Z
2021-06-28T15:30:21.000Z
tests/test_either/test_either_from.py
flpStrri/tupperware
23e241d49d56e5a94044258c5056bd9486e34c5f
[ "BSD-2-Clause" ]
null
null
null
tests/test_either/test_either_from.py
flpStrri/tupperware
23e241d49d56e5a94044258c5056bd9486e34c5f
[ "BSD-2-Clause" ]
null
null
null
from tupperware.either import Either, Left, Right def test_should_return_right_when_creating_either_from_value(): assert Either.from_value(2) == Right(2) def test_should_return_right_when_creating_either_from_failure(): assert Either.from_failure("error") == Left("error")
28.5
65
0.8
41
285
5.121951
0.414634
0.190476
0.12381
0.180952
0.438095
0.438095
0.438095
0.438095
0.438095
0
0
0.007843
0.105263
285
9
66
31.666667
0.815686
0
0
0
0
0
0.035088
0
0
0
0
0
0.4
1
0.4
true
0
0.2
0
0.6
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
0
0
1
0
0
5
9f4f6cd8443af9de1afb0985f45ae43d6f0f3a35
499
py
Python
bg.py
Blue-IT-Marketing/p2ploans.site
0666771a604d1410155baff252b0053e04ef719c
[ "MIT" ]
null
null
null
bg.py
Blue-IT-Marketing/p2ploans.site
0666771a604d1410155baff252b0053e04ef719c
[ "MIT" ]
null
null
null
bg.py
Blue-IT-Marketing/p2ploans.site
0666771a604d1410155baff252b0053e04ef719c
[ "MIT" ]
3
2019-01-14T09:21:17.000Z
2019-08-15T20:28:11.000Z
import os import webapp2 import jinja2 from google.appengine.ext import ndb from google.appengine.api import users from google.appengine.api import mail import datetime,random,string from google.appengine.api import memcache import logging #Jinja Loader template_env = jinja2.Environment( loader=jinja2.FileSystemLoader(os.getcwd())) class bgDataHandler(webapp2.RequestHandler): def get(self): pass app = webapp2.WSGIApplication([ ('/bg/data', bgDataHandler), ], debug=True)
18.481481
44
0.773547
63
499
6.111111
0.587302
0.103896
0.197403
0.171429
0.218182
0
0
0
0
0
0
0.013921
0.136273
499
26
45
19.192308
0.87935
0.024048
0
0
0
0
0.016495
0
0
0
0
0
0
1
0.058824
false
0.058824
0.529412
0
0.647059
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
1
0
1
0
0
5
9f7359dd1fef14ea6f61df6a19d37f68371c6a13
41
py
Python
accounts/tests.py
sahilr05/sitechecker
9c5d99109cfe2cbf46eb9f3cb397fc0f3505f039
[ "MIT" ]
2
2021-02-21T09:24:54.000Z
2021-05-12T18:42:37.000Z
accounts/tests.py
sahilr05/sitechecker
9c5d99109cfe2cbf46eb9f3cb397fc0f3505f039
[ "MIT" ]
null
null
null
accounts/tests.py
sahilr05/sitechecker
9c5d99109cfe2cbf46eb9f3cb397fc0f3505f039
[ "MIT" ]
null
null
null
from django.test import TestCase # NOQA
20.5
40
0.780488
6
41
5.333333
1
0
0
0
0
0
0
0
0
0
0
0
0.170732
41
1
41
41
0.941176
0.097561
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
9f7e44470aaf0ab86f5a3f1c931a0ac9a41312eb
18
py
Python
mejora-actual.py
Kotov2002/python
e74751ac3fff40f9c360fdb7471a88e69cbacbc8
[ "MIT" ]
null
null
null
mejora-actual.py
Kotov2002/python
e74751ac3fff40f9c360fdb7471a88e69cbacbc8
[ "MIT" ]
null
null
null
mejora-actual.py
Kotov2002/python
e74751ac3fff40f9c360fdb7471a88e69cbacbc8
[ "MIT" ]
null
null
null
print(Hola Mundo)
9
17
0.777778
3
18
4.666667
1
0
0
0
0
0
0
0
0
0
0
0
0.111111
18
1
18
18
0.875
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
1
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
1
0
5
9f8ce0c20d0161d837b22d70d8356f56bb05d05e
153
py
Python
python/fedml/model/__init__.py
NCLPhD/FedML
ffa15262ee963b9c856f34f0b2202f4dfeb3a76b
[ "Apache-2.0" ]
null
null
null
python/fedml/model/__init__.py
NCLPhD/FedML
ffa15262ee963b9c856f34f0b2202f4dfeb3a76b
[ "Apache-2.0" ]
null
null
null
python/fedml/model/__init__.py
NCLPhD/FedML
ffa15262ee963b9c856f34f0b2202f4dfeb3a76b
[ "Apache-2.0" ]
null
null
null
from .mobile.mnn_lenet import create_mnn_lenet5_model from .model_hub import ( create, ) __all__ = [ "create", "create_mnn_lenet5_model", ]
15.3
53
0.712418
20
153
4.85
0.5
0.247423
0.309278
0.412371
0
0
0
0
0
0
0
0.016129
0.189542
153
9
54
17
0.766129
0
0
0
0
0
0.189542
0.150327
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
1
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
9f9fe34f172efef0e311f07b1e923d427867174f
390
py
Python
django_green_grove/backends.py
dreipol/django-green-grove
32a32ff6919a72d0544baaae9707827fa7d69414
[ "MIT" ]
2
2017-06-28T19:29:37.000Z
2017-07-01T22:50:05.000Z
django_green_grove/backends.py
dreipol/django-green-grove
32a32ff6919a72d0544baaae9707827fa7d69414
[ "MIT" ]
null
null
null
django_green_grove/backends.py
dreipol/django-green-grove
32a32ff6919a72d0544baaae9707827fa7d69414
[ "MIT" ]
null
null
null
from django.conf import settings from storages.backends.s3boto import S3BotoStorage class BackupStorage(S3BotoStorage): access_key = getattr(settings, 'BACKUP_BUCKET_AWS_ACCESS_KEY_ID') secret_key = getattr(settings, 'BACKUP_BUCKET_AWS_SECRET_ACCESS_KEY') bucket_name = getattr(settings, 'BACKUP_BUCKET_BUCKET_NAME') location = getattr(settings, 'BACKUP_BUCKET_LOCATION')
39
73
0.810256
48
390
6.208333
0.4375
0.201342
0.281879
0.362416
0.221477
0.221477
0
0
0
0
0
0.008671
0.112821
390
9
74
43.333333
0.852601
0
0
0
0
0
0.289744
0.289744
0
0
0
0
0
1
0
false
0
0.285714
0
1
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
5
9fae572fc749768feaa3a1c0032156b7d33c23ac
1,367
py
Python
python/008/008.py
seaneshbaugh/rosetta-euler
14f24dfc347e7d9a4c9c0f090acf2811aa65f453
[ "MIT" ]
36
2015-01-24T08:11:52.000Z
2021-03-21T00:32:00.000Z
python/008/008.py
seaneshbaugh/rosetta-euler
14f24dfc347e7d9a4c9c0f090acf2811aa65f453
[ "MIT" ]
null
null
null
python/008/008.py
seaneshbaugh/rosetta-euler
14f24dfc347e7d9a4c9c0f090acf2811aa65f453
[ "MIT" ]
4
2015-01-24T08:17:42.000Z
2022-01-11T16:10:56.000Z
from operator import mul from functools import reduce def each_cons(l, n): return [l[i : i + n] for i in range(len(l) - n + 1)] x = ("73167176531330624919225119674426574742355349194934" "96983520312774506326239578318016984801869478851843" "85861560789112949495459501737958331952853208805511" "12540698747158523863050715693290963295227443043557" "66896648950445244523161731856403098711121722383113" "62229893423380308135336276614282806444486645238749" "30358907296290491560440772390713810515859307960866" "70172427121883998797908792274921901699720888093776" "65727333001053367881220235421809751254540594752243" "52584907711670556013604839586446706324415722155397" "53697817977846174064955149290862569321978468622482" "83972241375657056057490261407972968652414535100474" "82166370484403199890008895243450658541227588666881" "16427171479924442928230863465674813919123162824586" "17866458359124566529476545682848912883142607690042" "24219022671055626321111109370544217506941658960408" "07198403850962455444362981230987879927244284909188" "84580156166097919133875499200524063689912560717606" "05886116467109405077541002256983155200055935729725" "71636269561882670428252483600823257530420752963450") print(max([reduce(mul, [int(digit) for digit in digits]) for digits in each_cons(x, 5)]))
47.137931
89
0.84199
64
1,367
17.953125
0.703125
0.013925
0
0
0
0
0
0
0
0
0
0.817292
0.103146
1,367
28
90
48.821429
0.119902
0
0
0
0
0
0.731529
0.731529
0
0
0
0
0
1
0.04
false
0
0.08
0.04
0.16
0.04
0
0
1
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
9fafb16f755f033a72ed2509ed6c9611ba471a3e
134
py
Python
dodo.py
philippjfr/datashader
eb9218cb810297aea2ae1030349cef6a6f3ab3cb
[ "BSD-3-Clause" ]
39
2016-07-06T21:38:39.000Z
2021-08-05T06:46:02.000Z
dodo.py
philippjfr/datashader
eb9218cb810297aea2ae1030349cef6a6f3ab3cb
[ "BSD-3-Clause" ]
72
2016-04-21T13:22:57.000Z
2018-09-21T19:40:09.000Z
dodo.py
philippjfr/datashader
eb9218cb810297aea2ae1030349cef6a6f3ab3cb
[ "BSD-3-Clause" ]
10
2016-04-19T07:57:27.000Z
2018-05-25T00:26:35.000Z
import os if "PYCTDEV_ECOSYSTEM" not in os.environ: os.environ["PYCTDEV_ECOSYSTEM"] = "conda" from pyctdev import * # noqa: api
22.333333
45
0.716418
19
134
4.947368
0.631579
0.340426
0
0
0
0
0
0
0
0
0
0
0.171642
134
5
46
26.8
0.846847
0.067164
0
0
0
0
0.317073
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
4c9a62a82cf65e7093da7fdfd275ac6db00cf5eb
15,455
py
Python
challenge-2/main.py
DanielYosilevich/gae
8b24ce61a257d269ab2d20d7ad37c5cf50a32b25
[ "MIT" ]
null
null
null
challenge-2/main.py
DanielYosilevich/gae
8b24ce61a257d269ab2d20d7ad37c5cf50a32b25
[ "MIT" ]
null
null
null
challenge-2/main.py
DanielYosilevich/gae
8b24ce61a257d269ab2d20d7ad37c5cf50a32b25
[ "MIT" ]
null
null
null
from google.appengine.ext import ndb import webapp2 import json class MainPage(webapp2.RequestHandler): def get(self): self.response.out.write(""" <html> <head> <title>Backend Challenge</title> <link rel="stylesheet" type="text/css" href="/css/main.css" /> </head> <body> <header> <h2> Backend Challenge </h2> <hr> </header> <main> <div class = forms-wrapper> <span>SET</span> <div class = form-container> <form action="/set" method="get"> <input name="name" placeholder = "Name" required> <input name="value" placeholder = "Value" required> <input type="submit" value="Query"> </form> </div> <span>UNSET</span> <div class = form-container> <form action="/unset" method="get"> <input name="name" placeholder = "Name" required> <input type="submit" value="Query"> </form> </div> <span>GET</span> <div class = form-container> <form action="/get" method="get"> <input name="name" placeholder = "Name" required> <input type="submit" value="Query"> </form> </div> <span>NUM_EQUAL_TO</span> <div class = form-container> <form action="/numequalto" method="get"> <input name="value" placeholder = "Value" required> <input type="submit" value="Query"> </form> </div> <div class = form-container> <form action="/entries" method="get"> <input type="submit" value="Entries List"> </form> </div> <div class = form-container> <form action="/undo" method="get"> <input type="submit" value="Undo"> </form> </div> <div class = form-container> <form action="/undotracker" method="get"> <input type="submit" value="Undo Tracker"> </form> </div> <div class = form-container> <form action="/redo" method="get"> <input type="submit" value="Redo"> </form> </div> <div class = form-container> <form action="/redotracker" method="get"> <input type="submit" value="Redo Tracker"> </form> </div> <div class = form-container> <form action="/clean" method="get"> <input type="submit" value="Clean"> </form> </div> </div> </main> </body> </html>""" ) class Item(ndb.Model): name = ndb.StringProperty() value = ndb.StringProperty() class ActionU(ndb.Model): item_id = ndb.StringProperty() item_val_prev = ndb.StringProperty() item_val_curr = ndb.StringProperty() op = ndb.StringProperty() date = ndb.DateTimeProperty(auto_now_add=True) class ActionR(ndb.Model): item_id = ndb.StringProperty() item_val_prev = ndb.StringProperty() item_val_curr = ndb.StringProperty() op = ndb.StringProperty() date = ndb.DateTimeProperty(auto_now_add=True) class SetPage(webapp2.RequestHandler): def get(self): q = ActionR.query().fetch() list_of_keys = ndb.put_multi(q) ndb.delete_multi(list_of_keys) name = self.request.get('name') value = self.request.get('value') key = ndb.Key('Item',name) item = key.get() item_id = name if not item: op = 'INITIAL_SET' item_val_prev = 'NONE' else: op = 'SET' item_val_prev = item.value action = ActionU(op = op,item_id = item_id,item_val_prev = item_val_prev ,item_val_curr = value) action.put() item = Item(id=name) item.name = name item.value = value res = map(str,name + ' was set to: ' + value) item.put() self.response.write(""" <html> <head> <script> var res = %s </script> <title>Set</title> <link rel="stylesheet" type="text/css" href="/css/main.css" /> </head> <body> <header> <h2>Set</h2> <hr> </header> <main> <div data-v="item"></div> <hr> <br> <form action="/" method="get"> <div><input type="submit" value="Home"></div> </form> </main> <script> document.querySelector('[data-v = "item"]').innerHTML = res.join(''); </script> </body> </html>""" % (res)) class UnsetPage(webapp2.RequestHandler): def get(self): q = ActionR.query().fetch() list_of_keys = ndb.put_multi(q) ndb.delete_multi(list_of_keys) name = self.request.get('name') key = ndb.Key('Item',name) item = key.get() if not item: res = map(str,'No Entry with name: ' + name + '!') else: action = ActionU(op = 'UNSET',item_id = name,item_val_prev = item.value ,item_val_curr = 'NONE') action.put() item.key.delete() res = map(str,'Entry with name: ' + name + ' was sucessfully removed!') self.response.write(""" <html> <head> <script> var res = %s </script> <title>Unset</title> <link rel="stylesheet" type="text/css" href="/css/main.css" /> </head> <body> <header> <h2>Unset</h2> <hr> </header> <main> <div data-v="item"></div> <hr> <br> <form action="/" method="get"> <div><input type="submit" value="Home"></div> </form> </main> <script> document.querySelector('[data-v = "item"]').innerHTML = res.join(''); </script> </body> </html>""" % (res)) class GetPage(webapp2.RequestHandler): def get(self): q = ActionR.query().fetch() list_of_keys = ndb.put_multi(q) ndb.delete_multi(list_of_keys) name = self.request.get('name') q = Item.query(Item.name == name).fetch() res = map(str,q) nam = map(str,name) self.response.write(""" <html> <head> <script> var res = %s var nam = %s let val if(res.length) val = res.join('').split(',')[3].slice(8,-1) else val = 'NONE' </script> <title>Get</title> <link rel="stylesheet" type="text/css" href="/css/main.css" /> </head> <body> <header> <h2>Get</h2> <hr> </header> <main> <div data-v="item"></div> <hr> <br> <form action="/" method="get"> <div><input type="submit" value="Home"></div> </form> </main> <script> document.querySelector('[data-v = "item"]').innerHTML = `Name <span>${nam.join('')}</span> matches value <span>${val}</span>!`; </script> </body> </html>""" % (res,nam)) class NumEqualToPage(webapp2.RequestHandler): def get(self): q = ActionR.query().fetch() list_of_keys = ndb.put_multi(q) ndb.delete_multi(list_of_keys) value = self.request.get('value') q = Item.query(Item.value == value).fetch() res = map(str,q) val = map(str,value) self.response.write(""" <html> <head> <script> var res = %s var val = %s </script> <title>NumEqualTo</title> <link rel="stylesheet" type="text/css" href="/css/main.css" /> </head> <body> <header> <h2>NumEqualTo</h2> <hr> </header> <main> <div data-v="item"></div> <hr> <br> <form action="/" method="get"> <div><input type="submit" value="Home"></div> </form> </main> <script> document.querySelector('[data-v = "item"]').innerHTML = `Value <span>${val.join('')}</span> matched <span>${res.length}</span> entries!`; </script> </body> </html>""" % (res,val)) class EntriesPage(webapp2.RequestHandler): def get(self): q = Item.query().fetch() a = map(str, q) self.response.write(""" <html> <head> <script> var a = %s </script> <title>Database entries</title> <link rel="stylesheet" type="text/css" href="/css/main.css" /> </head> <body> <header> <h2> Database Entries </h2> <hr> </header> <main> <div data-v = "list"></div> <form action="/" method="get"> <div><input type="submit" value="Home"></div> </form> </main> <script> let st = `<ul>`; a.forEach((el) => st += `<li> ${el} </li>`) st += `</ul> <hr>` document.querySelector('[data-v = "list"]').innerHTML = st; </script> </body> </html>""" % (a)) class UndoPage(webapp2.RequestHandler): def get(self): q = ndb.gql("SELECT * FROM ActionU ORDER BY date DESC") row = q.get() if not row: o = json.dumps('NONE') num = json.dumps('NONE') prev = json.dumps('NONE') curr = json.dumps('NONE') else: action = ActionR(op = row.op,item_id = row.item_id,item_val_prev = row.item_val_prev ,item_val_curr = row.item_val_curr) action.put() o = json.dumps(row.op) prev = json.dumps(row.item_val_prev) curr = json.dumps(row.item_val_curr) num = json.dumps(row.item_id) if row.op == 'INITIAL_SET': key = ndb.Key('Item',row.item_id) item = key.get() item.key.delete() else: item = Item(id=row.item_id) item.name = row.item_id item.value = row.item_val_prev item.put() key = row.key action = key.get() action.key.delete() self.response.write(""" <html> <head> <script> var o = %s var num = %s var prev = %s var curr = %s </script> <title>Undo</title> <link rel="stylesheet" type="text/css" href="/css/main.css" /> </head> <body> <header> <h2> Undo </h2> <hr> </header> <main> <div data-v = "list"></div> <br> <form action="/" method="get"> <div><input type="submit" value="Home"></div> </form> </main> <script> document.querySelector('[data-v = "list"]').innerHTML = (o !== 'NONE') ? ` Operation ${o} ${num} ${curr} was undone!` : 'Nothing to Undo!' </script> </body> </html>""" % (o,num,prev,curr)) class UndoTrackerPage(webapp2.RequestHandler): def get(self): q = ActionU.query().fetch() a = map(str, q) self.response.write(""" <html> <head> <script> var a = %s </script> <title>Undo Tracker</title> <link rel="stylesheet" type="text/css" href="/css/main.css" /> </head> <body> <header> <h2> Undo Tracker </h2> <hr> </header> <main> <div data-v = "list"></div> <form action="/" method="get"> <div><input type="submit" value="Home"></div> </form> </main> <script> let st = `<ul>`; a.forEach((el) => st += `<li> ${el} </li>`) st += `</ul> <hr>` document.querySelector('[data-v = "list"]').innerHTML = st; </script> </body> </html>""" % (a)) class RedoPage(webapp2.RequestHandler): def get(self): q = ndb.gql("SELECT * FROM ActionR ORDER BY date DESC") row = q.get() if not row: o = json.dumps('NONE') num = json.dumps('NONE') prev = json.dumps('NONE') curr = json.dumps('NONE') else: o = json.dumps(row.op) prev = json.dumps(row.item_val_prev) curr = json.dumps(row.item_val_curr) num = json.dumps(row.item_id) item = Item(id=row.item_id) item.name = row.item_id item.value = row.item_val_curr item.put() key = row.key action = key.get() action.key.delete() self.response.write(""" <html> <head> <script> var o = %s var num = %s var prev = %s var curr = %s </script> <title>Redo</title> <link rel="stylesheet" type="text/css" href="/css/main.css" /> </head> <body> <header> <h2> Redo </h2> <hr> </header> <main> <div data-v = "list"></div> <br> <form action="/" method="get"> <div><input type="submit" value="Home"></div> </form> </main> <script> document.querySelector('[data-v = "list"]').innerHTML = (o !== 'NONE') ? ` Performed backroll to operation ${o} ${num} ${curr}!` : 'Nothing to Redo!' </script> </body> </html>""" % (o,num,prev,curr)) class RedoTrackerPage(webapp2.RequestHandler): def get(self): q = ActionR.query().fetch() a = map(str, q) self.response.write(""" <html> <head> <script> var a = %s </script> <title>Redo Tracker</title> <link rel="stylesheet" type="text/css" href="/css/main.css" /> </head> <body> <header> <h2> Redo Tracker </h2> <hr> </header> <main> <div data-v = "list"></div> <form action="/" method="get"> <div><input type="submit" value="Home"></div> </form> </main> <script> let st = `<ul>`; a.forEach((el) => st += `<li> ${el} </li>`) st += `</ul> <hr>` document.querySelector('[data-v = "list"]').innerHTML = st; </script> </body> </html>""" % (a)) class CleanPage(webapp2.RequestHandler): def get(self): q = Item.query().fetch() list_of_keys = ndb.put_multi(q) ndb.delete_multi(list_of_keys) q = ActionU.query().fetch() list_of_keys = ndb.put_multi(q) ndb.delete_multi(list_of_keys) q = ActionR.query().fetch() list_of_keys = ndb.put_multi(q) ndb.delete_multi(list_of_keys) self.response.write(""" <html> <head> <title>Clean Database</title> <link rel="stylesheet" type="text/css" href="/css/main.css" /> </head> <body> <header> <h2>Clean Database </h2> <hr> </header> <main> <h3>Removed All Database Entries!</h3> <form action="/" method="get"> <div><input type="submit" value="Home"></div> </form> </main> </body> </html>""" ) app = webapp2.WSGIApplication([ ('/', MainPage), ('/set', SetPage), ('/unset', UnsetPage), ('/get', GetPage), ('/numequalto', NumEqualToPage), ('/entries', EntriesPage), ('/undo', UndoPage), ('/undotracker', UndoTrackerPage), ('/redo', RedoPage), ('/redotracker', RedoTrackerPage), ('/clean', CleanPage) ], debug=True)
28.88785
134
0.490391
1,712
15,455
4.364486
0.09229
0.019673
0.04015
0.053533
0.773822
0.744111
0.723635
0.687232
0.652302
0.618844
0
0.00391
0.338078
15,455
534
135
28.941948
0.726491
0
0
0.782524
0
0.029126
0.651288
0.033195
0
0
0
0
0
1
0.021359
false
0
0.005825
0
0.07767
0
0
0
0
null
0
0
0
0
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
4c9a7293f30f645d3f6318bcf058570c0a4549b7
2,783
py
Python
etl/parsers/etw/Microsoft_Windows_Shell_DefaultPrograms.py
IMULMUL/etl-parser
76b7c046866ce0469cd129ee3f7bb3799b34e271
[ "Apache-2.0" ]
104
2020-03-04T14:31:31.000Z
2022-03-28T02:59:36.000Z
etl/parsers/etw/Microsoft_Windows_Shell_DefaultPrograms.py
IMULMUL/etl-parser
76b7c046866ce0469cd129ee3f7bb3799b34e271
[ "Apache-2.0" ]
7
2020-04-20T09:18:39.000Z
2022-03-19T17:06:19.000Z
etl/parsers/etw/Microsoft_Windows_Shell_DefaultPrograms.py
IMULMUL/etl-parser
76b7c046866ce0469cd129ee3f7bb3799b34e271
[ "Apache-2.0" ]
16
2020-03-05T18:55:59.000Z
2022-03-01T10:19:28.000Z
# -*- coding: utf-8 -*- """ Microsoft-Windows-Shell-DefaultPrograms GUID : 65d99466-7a8e-489c-b8e1-962bc945031e """ from construct import Int8sl, Int8ul, Int16ul, Int16sl, Int32sl, Int32ul, Int64sl, Int64ul, Bytes, Double, Float32l, Struct from etl.utils import WString, CString, SystemTime, Guid from etl.dtyp import Sid from etl.parsers.etw.core import Etw, declare, guid @declare(guid=guid("65d99466-7a8e-489c-b8e1-962bc945031e"), event_id=1, version=0) class Microsoft_Windows_Shell_DefaultPrograms_1_0(Etw): pattern = Struct( "SqmSessionGuid" / Guid, "SqmID" / Int32ul, "SqmType" / Int32ul, "SqmDWORDDatapointValue" / Int32ul ) @declare(guid=guid("65d99466-7a8e-489c-b8e1-962bc945031e"), event_id=2, version=0) class Microsoft_Windows_Shell_DefaultPrograms_2_0(Etw): pattern = Struct( "SqmSessionGuid" / Guid, "SqmID" / Int32ul, "SqmType" / Int32ul, "SqmDWORDDatapointValue" / Int32ul ) @declare(guid=guid("65d99466-7a8e-489c-b8e1-962bc945031e"), event_id=3, version=0) class Microsoft_Windows_Shell_DefaultPrograms_3_0(Etw): pattern = Struct( "SqmSessionGuid" / Guid, "SqmID" / Int32ul, "SqmType" / Int32ul, "SqmDWORDDatapointValue" / Int32ul ) @declare(guid=guid("65d99466-7a8e-489c-b8e1-962bc945031e"), event_id=4, version=0) class Microsoft_Windows_Shell_DefaultPrograms_4_0(Etw): pattern = Struct( "SqmSessionGuid" / Guid, "SqmID" / Int32ul, "SqmType" / Int32ul, "SqmDWORDDatapointValue" / Int32ul ) @declare(guid=guid("65d99466-7a8e-489c-b8e1-962bc945031e"), event_id=5, version=0) class Microsoft_Windows_Shell_DefaultPrograms_5_0(Etw): pattern = Struct( "SqmSessionGuid" / Guid, "SqmID" / Int32ul, "SqmType" / Int32ul, "SqmDWORDDatapointValue" / Int32ul ) @declare(guid=guid("65d99466-7a8e-489c-b8e1-962bc945031e"), event_id=6, version=0) class Microsoft_Windows_Shell_DefaultPrograms_6_0(Etw): pattern = Struct( "SqmSessionGuid" / Guid, "SqmID" / Int32ul, "SqmType" / Int32ul, "SqmDWORDDatapointValue" / Int32ul ) @declare(guid=guid("65d99466-7a8e-489c-b8e1-962bc945031e"), event_id=7, version=0) class Microsoft_Windows_Shell_DefaultPrograms_7_0(Etw): pattern = Struct( "SqmSessionGuid" / Guid, "SqmID" / Int32ul, "SqmType" / Int32ul, "SqmDWORDDatapointValue" / Int32ul ) @declare(guid=guid("65d99466-7a8e-489c-b8e1-962bc945031e"), event_id=8, version=0) class Microsoft_Windows_Shell_DefaultPrograms_8_0(Etw): pattern = Struct( "SqmSessionGuid" / Guid, "SqmID" / Int32ul, "SqmType" / Int32ul, "SqmDWORDDatapointValue" / Int32ul )
30.582418
123
0.68092
298
2,783
6.197987
0.187919
0.077964
0.102328
0.17542
0.855441
0.855441
0.83595
0.623714
0.623714
0.623714
0
0.136018
0.19691
2,783
90
124
30.922222
0.69038
0.038088
0
0.588235
0
0
0.251874
0.173913
0
0
0
0
0
1
0
false
0
0.058824
0
0.294118
0
0
0
0
null
0
0
1
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
5
4cfdf9fcab18ae799fc3f87cede5e51e242a052d
117
py
Python
data/__init__.py
Amirelkanov/AmEl_Tourism_VK
cc5a0cb0ca3a3ac91ab5ec05ae878fc0b82d7768
[ "Apache-2.0" ]
1
2020-04-15T09:00:59.000Z
2020-04-15T09:00:59.000Z
data/__init__.py
Amirelkanov/AmEl_Tourism_VK
cc5a0cb0ca3a3ac91ab5ec05ae878fc0b82d7768
[ "Apache-2.0" ]
null
null
null
data/__init__.py
Amirelkanov/AmEl_Tourism_VK
cc5a0cb0ca3a3ac91ab5ec05ae878fc0b82d7768
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- from .articles import Article, Category from .user_info import VKUserInfo
19.5
39
0.717949
16
117
5.1875
0.875
0
0
0
0
0
0
0
0
0
0
0.009901
0.136752
117
5
40
23.4
0.811881
0.324786
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
9810da4a18019e06ee3f11864903aa81e016d205
2,724
py
Python
tests/test_decorator.py
filipre/signalbot
781aace7fba553beaf76ec4ed70412eb07a4ac81
[ "MIT" ]
8
2021-11-21T22:19:19.000Z
2022-03-25T01:26:51.000Z
tests/test_decorator.py
filipre/signalbot
781aace7fba553beaf76ec4ed70412eb07a4ac81
[ "MIT" ]
9
2022-02-28T10:01:23.000Z
2022-03-14T06:03:44.000Z
tests/test_decorator.py
filipre/signalbot
781aace7fba553beaf76ec4ed70412eb07a4ac81
[ "MIT" ]
null
null
null
import unittest from unittest.mock import patch import logging from signalbot import Command, Context, triggered from signalbot.utils import ChatTestCase, SendMessagesMock, ReceiveMessagesMock class TriggeredCommand(Command): def describe(self) -> str: return "😤 Triggered Command: Decorator Example" @triggered("Trump", "Biden") async def handle(self, c: Context): await c.send("I am triggered") class TriggeredCaseSensitiveCommand(Command): def describe(self) -> str: return "😤 Triggered Command: Decorator Example" @triggered("Trump", "Biden", case_sensitive=True) async def handle(self, c: Context): await c.send("I am triggered") class TriggeredTest(ChatTestCase): def setUp(self): super().setUp() self.signal_bot.register(TriggeredCommand()) @patch("signalbot.SignalAPI.send", new_callable=SendMessagesMock) @patch("signalbot.SignalAPI.receive", new_callable=ReceiveMessagesMock) async def test_triggered(self, receive_mock, send_mock): receive_mock.define(["Trump"]) await self.run_bot() self.assertEqual(send_mock.call_count, 1) @patch("signalbot.SignalAPI.send", new_callable=SendMessagesMock) @patch("signalbot.SignalAPI.receive", new_callable=ReceiveMessagesMock) async def test_also_triggered(self, receive_mock, send_mock): receive_mock.define(["Biden"]) await self.run_bot() self.assertEqual(send_mock.call_count, 1) @patch("signalbot.SignalAPI.send", new_callable=SendMessagesMock) @patch("signalbot.SignalAPI.receive", new_callable=ReceiveMessagesMock) async def test_not_triggered(self, receive_mock, send_mock): receive_mock.define(["Scholz"]) await self.run_bot() self.assertEqual(send_mock.call_count, 0) class TriggeredCaseSensitiveTest(ChatTestCase): def setUp(self): super().setUp() self.signal_bot.register(TriggeredCaseSensitiveCommand()) @patch("signalbot.SignalAPI.send", new_callable=SendMessagesMock) @patch("signalbot.SignalAPI.receive", new_callable=ReceiveMessagesMock) async def test_triggered(self, receive_mock, send_mock): receive_mock.define(["Trump"]) await self.run_bot() self.assertEqual(send_mock.call_count, 1) @patch("signalbot.SignalAPI.send", new_callable=SendMessagesMock) @patch("signalbot.SignalAPI.receive", new_callable=ReceiveMessagesMock) async def test_not_triggered(self, receive_mock, send_mock): receive_mock.define(["trump"]) await self.run_bot() self.assertEqual(send_mock.call_count, 0) if __name__ == "__main__": logging.basicConfig(level="INFO") unittest.main()
35.842105
79
0.720264
309
2,724
6.165049
0.210356
0.073491
0.120735
0.070866
0.79685
0.79685
0.79685
0.79685
0.79685
0.771129
0
0.002205
0.167401
2,724
75
80
36.32
0.836861
0
0
0.655172
0
0
0.153084
0.093612
0
0
0
0
0.086207
1
0.068966
false
0
0.086207
0.034483
0.258621
0
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
981747046b424e96fd1e39cd36ec771602926ebf
96
py
Python
app/tests/runtest.py
yeyan00/fastapi-demo
ac3a7c5942ded55e832a5354c0cb056044c38dd6
[ "Apache-2.0" ]
4
2020-12-22T17:23:57.000Z
2021-12-20T01:28:25.000Z
app/tests/runtest.py
yeyan00/fastapi-tutorial
7432e4f95bc7630456e9f186a8104bc4e3ae5f81
[ "Apache-2.0" ]
null
null
null
app/tests/runtest.py
yeyan00/fastapi-tutorial
7432e4f95bc7630456e9f186a8104bc4e3ae5f81
[ "Apache-2.0" ]
null
null
null
import pytest if __name__ == "__main__": #pytest.main(['-s', 'test_2.py']) pytest.main()
24
37
0.614583
13
96
3.846154
0.692308
0.4
0
0
0
0
0
0
0
0
0
0.0125
0.166667
96
4
38
24
0.6125
0.333333
0
0
0
0
0.125
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
e24008bc003819e07db34dbf89677cf3bf061489
33
py
Python
src/repositories/__init__.py
ramasubbaiya/flask-api-starter-kit
3f00769f349908ffa5ccc7acb332d70e1f2c6f6f
[ "MIT" ]
393
2016-11-21T10:52:01.000Z
2022-03-28T13:37:27.000Z
src/repositories/__init__.py
Faisal-FS/flask-api-starter-kit
d8a1cfd7428684114c4acd9cc432d1f5fdbe0f19
[ "MIT" ]
10
2019-09-04T03:43:35.000Z
2019-09-11T06:35:22.000Z
src/repositories/__init__.py
Faisal-FS/flask-api-starter-kit
d8a1cfd7428684114c4acd9cc432d1f5fdbe0f19
[ "MIT" ]
127
2017-04-20T11:33:00.000Z
2022-03-28T06:28:44.000Z
from .user import UserRepository
16.5
32
0.848485
4
33
7
1
0
0
0
0
0
0
0
0
0
0
0
0.121212
33
1
33
33
0.965517
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
e27a6048aa1ab6fd36f4fefebd86011ae06f5260
142
py
Python
modules/__init__.py
MirPresT/factvest
864ff8d22b5387531c57538242c57ee0fdba509b
[ "MIT" ]
null
null
null
modules/__init__.py
MirPresT/factvest
864ff8d22b5387531c57538242c57ee0fdba509b
[ "MIT" ]
null
null
null
modules/__init__.py
MirPresT/factvest
864ff8d22b5387531c57538242c57ee0fdba509b
[ "MIT" ]
null
null
null
from .priceHistory import PriceHistory from .returnHistory import ReturnHistory from .performance import Performance from .price import Price
28.4
40
0.859155
16
142
7.625
0.375
0
0
0
0
0
0
0
0
0
0
0
0.112676
142
4
41
35.5
0.968254
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
e29a8844944de3994b1295693fd23c2eec894704
156
py
Python
staticforms/handlers/ping.py
unocongafas/staticforms
d16d298fcb4b18f2a8658ba40c1ee14e17dd8305
[ "Apache-2.0" ]
null
null
null
staticforms/handlers/ping.py
unocongafas/staticforms
d16d298fcb4b18f2a8658ba40c1ee14e17dd8305
[ "Apache-2.0" ]
null
null
null
staticforms/handlers/ping.py
unocongafas/staticforms
d16d298fcb4b18f2a8658ba40c1ee14e17dd8305
[ "Apache-2.0" ]
null
null
null
"""Ping.""" from starlette.responses import UJSONResponse async def get(request): """Handle ping request.""" return UJSONResponse({'pong': True})
19.5
45
0.685897
17
156
6.294118
0.823529
0
0
0
0
0
0
0
0
0
0
0
0.153846
156
7
46
22.285714
0.810606
0.032051
0
0
0
0
0.033613
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
e2a07c0c3d200381d80c2e568c829b3f1e51ff66
161
py
Python
Aula_55/dao/livro_dao.py
Mateus-Silva11/AulasPython
d34dc4f62ade438e68b0a80e0baac4d6ec0d378e
[ "MIT" ]
null
null
null
Aula_55/dao/livro_dao.py
Mateus-Silva11/AulasPython
d34dc4f62ade438e68b0a80e0baac4d6ec0d378e
[ "MIT" ]
null
null
null
Aula_55/dao/livro_dao.py
Mateus-Silva11/AulasPython
d34dc4f62ade438e68b0a80e0baac4d6ec0d378e
[ "MIT" ]
null
null
null
from Aula_55.dao.base_dao import BaseDao from Aula_55.model.livro import Livro class LivroDao(BaseDao): def __init__(self): super().__init__(Livro)
23
40
0.745342
24
161
4.541667
0.625
0.146789
0.183486
0
0
0
0
0
0
0
0
0.02963
0.161491
161
6
41
26.833333
0.777778
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.4
0
0.8
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
5
2c9ce5e90582090ff1877f5b99ab86154c50d543
4,854
py
Python
pkmodel/check_inputs.py
NERC-DTP-Students/pk-project
36c1e52f5dcdb5cfb2c59b3d6a4bde415ff71e94
[ "MIT" ]
null
null
null
pkmodel/check_inputs.py
NERC-DTP-Students/pk-project
36c1e52f5dcdb5cfb2c59b3d6a4bde415ff71e94
[ "MIT" ]
9
2021-10-21T09:47:30.000Z
2021-10-21T16:05:26.000Z
pkmodel/check_inputs.py
NERC-DTP-Students/pk-project
36c1e52f5dcdb5cfb2c59b3d6a4bde415ff71e94
[ "MIT" ]
null
null
null
def check_inputs(number_of_models, model_1_inputs, model_2_inputs=None): """Checks that the user inputs make logical sense e.g. have they specified the number of models to be 2 but only given data for one model.""" # check model comparison information # check model 2 is added if number of models is set to 2 if number_of_models == 2 and model_2_inputs is None: raise ValueError("Expect model 2 data and got None. To fix either set number_of_models = 1 \ or enter data for Model 2") # warning if number of models is set to 1 but data for model 2 exists if number_of_models == 1 and model_2_inputs is not None: print("Warning: model 2 data will not be used. \ To fix set number_of_models = 2.") # check model 1 data # warning if instantenous dose is specified # but no times are given for the dose if model_1_inputs["m1_instantaneous_dose_amount"] != 0 \ and model_1_inputs["m1_dose_times"] == []: raise ValueError("Warning: enter times for instantenous dose \ or set m1_instantaneous_dose_amount to 0.") # warning if times are given for the instantanous dose # but no dose quantity is given if model_1_inputs["m1_instantaneous_dose_amount"] == 0 \ and model_1_inputs["m1_dose_times"]: print("Warning: no m1_instantenous_dose_amount entered") # warnings if compartment volumes are zero or negative if model_1_inputs["m1_volume_c"] <= 0: raise ValueError("Set m1_volume_c to a positive value.") if model_1_inputs["m1_volume_1"] <= 0: raise ValueError("Set m1_volume_1 to a positive value.") if model_1_inputs["m1_number_of_compartments"] == 2 \ and model_1_inputs["m1_volume_2"] <= 0: raise ValueError("Set m1_volume_2 to a positive value \ or set m1_number_of_compartments to 1.") # warning if size of second peripheral compartment is non-zero # and number of compartments is set to 1 if model_1_inputs["m1_number_of_compartments"] == 1 \ and model_1_inputs["m1_volume_2"] != 0: print("Warning: 2nd peripheral compartment won't be included. \ Set m1_number_of_compartments to 2 to include.") # warning if dosing is set to subcutaneous but ka is 0 if model_1_inputs["m1_dose_entry"] == 'subcutaneous' \ and model_1_inputs["m1_k_a"] == 0: print("Warning: Dosing is set to subcutaneous and ka = 0 \ so dose won't be absorbed.") # warning if dosing is not subcutenous but ka is non-zero if model_1_inputs["m1_dose_entry"] != 'subcutaneous' \ and model_1_inputs["m1_k_a"] != 0: print("Warning: m1_dose_entry not subcutaneous \ so dose compartment won't be added.") # check model 2 data # warning if instantenous dose is specified # but no times are given for the dose if model_2_inputs["m2_instantaneous_dose_amount"] != 0 \ and model_2_inputs["m2_dose_times"] == []: raise ValueError("Warning: enter times for instantenous dose \ or set m2_instantaneous_dose_amount to 0.") # warning if times are given for the instantanous dose # but no dose quantity is given if model_2_inputs["m2_instantaneous_dose_amount"] == 0 \ and model_2_inputs["m2_dose_times"]: print("Warning: no m2_instantenous_dose_amount entered") # warnings if compartment volumes are zero or negative if model_2_inputs["m2_volume_c"] <= 0: raise ValueError("Set m2_volume_c to a positive value.") if model_2_inputs["m2_volume_1"] <= 0: raise ValueError("Set m2_volume_1 to a positive value.") if model_2_inputs["m2_number_of_compartments"] == 2 \ and model_2_inputs["m2_volume_2"] <= 0: raise ValueError("Set m2_volume_2 to a positive value \ or set m2_number_of_compartments to 1.") # warning if size of second peripheral compartment is non-zero # and number of compartments is set to 1 if model_2_inputs["m2_number_of_compartments"] == 1 \ and model_2_inputs["m2_volume_2"] != 0: print("Warning: 2nd peripheral compartment won't be included. \ Set m2_number_of_compartments to 2 to include.") # warning if dosing is set to subcutaneous but ka is 0 if model_2_inputs["m2_dose_entry"] == 'subcutaneous' \ and model_2_inputs["m2_k_a"] == 0: print("Warning: Dosing is set to subcutaneous and ka = 0 \ so dose won't be absorbed.") # warning if dosing is not subcutenous but ka is non-zero if model_2_inputs["m2_dose_entry"] != 'subcutaneous' \ and model_2_inputs["m2_k_a"] != 0: print("Warning: m2_dose_entry not subcutaneous \ so dose compartment won't be added.")
44.127273
100
0.671817
744
4,854
4.142473
0.123656
0.044776
0.066191
0.063595
0.848151
0.827385
0.768332
0.753407
0.667099
0.625568
0
0.036844
0.250721
4,854
109
101
44.53211
0.810558
0.242686
0
0.163934
0
0
0.196154
0.073077
0
0
0
0
0
1
0.016393
false
0
0
0
0.016393
0.147541
0
0
0
null
0
0
0
1
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
e2bdced932cce98369b2f9ffdcacba397a7aa2a2
437
py
Python
8kyu/test_get_nth_even_number.py
adun/codewars.py
89e7d81e9ca05a432007d634892c1cba28f5b715
[ "MIT" ]
null
null
null
8kyu/test_get_nth_even_number.py
adun/codewars.py
89e7d81e9ca05a432007d634892c1cba28f5b715
[ "MIT" ]
null
null
null
8kyu/test_get_nth_even_number.py
adun/codewars.py
89e7d81e9ca05a432007d634892c1cba28f5b715
[ "MIT" ]
null
null
null
# Return the Nth Even Number # nthEven(1) //=> 0, the first even number is 0 # nthEven(3) //=> 4, the 3rd even number is 4 (0, 2, 4) # nthEven(100) //=> 198 # nthEven(1298734) //=> 2597466 # The input will not be 0. def nth_even(n): return 2 * (n - 1) def test_nth_even(): assert nth_even(1) == 0 assert nth_even(2) == 2 assert nth_even(3) == 4 assert nth_even(100) == 198 assert nth_even(1298734) == 2597466
23
55
0.613272
75
437
3.466667
0.346667
0.215385
0.25
0
0
0
0
0
0
0
0
0.176119
0.23341
437
18
56
24.277778
0.6
0.464531
0
0
0
0
0
0
0
0
0
0
0.625
1
0.25
false
0
0
0.125
0.375
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
1
0
1
0
0
0
1
0
0
0
5
e2d587c1a192a050e59a9489002e9b85119c5a80
95
py
Python
analysis/__init__.py
teacup123123/fx-predictor
5c25b6f0cb5435a2294262f4ac2681b38abb1dac
[ "MIT" ]
null
null
null
analysis/__init__.py
teacup123123/fx-predictor
5c25b6f0cb5435a2294262f4ac2681b38abb1dac
[ "MIT" ]
null
null
null
analysis/__init__.py
teacup123123/fx-predictor
5c25b6f0cb5435a2294262f4ac2681b38abb1dac
[ "MIT" ]
null
null
null
import os.path root, _ = os.path.split(__file__) pickles_root = os.path.join(root, 'pickles')
19
44
0.726316
15
95
4.2
0.533333
0.285714
0.31746
0
0
0
0
0
0
0
0
0
0.115789
95
4
45
23.75
0.75
0
0
0
0
0
0.073684
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
5
3929a5ceeb4b46cf45ac3e647d20880ea2937e33
57
py
Python
package_creator/__init__.py
gavinhughpalmer/sfdc-field-creator
7cd3fb2382b435e70c71dc4ef9a5de797dab4b8d
[ "MIT" ]
1
2019-10-07T20:01:41.000Z
2019-10-07T20:01:41.000Z
package_creator/__init__.py
gavinhughpalmer/sfdc-field-creator
7cd3fb2382b435e70c71dc4ef9a5de797dab4b8d
[ "MIT" ]
null
null
null
package_creator/__init__.py
gavinhughpalmer/sfdc-field-creator
7cd3fb2382b435e70c71dc4ef9a5de797dab4b8d
[ "MIT" ]
2
2019-04-02T18:50:15.000Z
2021-05-06T20:41:04.000Z
from package_creator.config_manager import ConfigManager
28.5
56
0.912281
7
57
7.142857
1
0
0
0
0
0
0
0
0
0
0
0
0.070175
57
1
57
57
0.943396
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
1a76a7b2bac4a3896503a2c3a27ddc7c43571748
133
py
Python
sites/moodle/get_website_url.py
GeorgOhneH/ethz-document-fetcher
42921e5d71698a269eb54cf9d3979e4a7d88a9cf
[ "MIT" ]
15
2020-03-17T15:43:46.000Z
2022-01-08T04:23:49.000Z
sites/moodle/get_website_url.py
GeorgOhneH/ethz-document-fetcher
42921e5d71698a269eb54cf9d3979e4a7d88a9cf
[ "MIT" ]
5
2020-03-12T10:05:27.000Z
2021-03-03T16:01:47.000Z
sites/moodle/get_website_url.py
GeorgOhneH/ethz-document-fetcher
42921e5d71698a269eb54cf9d3979e4a7d88a9cf
[ "MIT" ]
2
2020-03-17T17:09:20.000Z
2020-12-28T22:59:17.000Z
from .constants import BASE_URL def get_website_url(moodle_id, **kwargs): return BASE_URL + f"/course/view.php?id={moodle_id}"
22.166667
56
0.744361
22
133
4.227273
0.727273
0.150538
0
0
0
0
0
0
0
0
0
0
0.12782
133
5
57
26.6
0.801724
0
0
0
0
0
0.233083
0.233083
0
0
0
0
0
1
0.333333
false
0
0.333333
0.333333
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
1
0
0
0
5
1a8ef1bc92009e30a6a9d036241a67e95834408d
996
py
Python
Packages/Patterns_Packages/Alphabets/Upper_Case_alphabets/S.py
SaikumarS2611/Python
205f5aaba3bd2de714503b5bed8853d24e85329e
[ "MIT" ]
null
null
null
Packages/Patterns_Packages/Alphabets/Upper_Case_alphabets/S.py
SaikumarS2611/Python
205f5aaba3bd2de714503b5bed8853d24e85329e
[ "MIT" ]
null
null
null
Packages/Patterns_Packages/Alphabets/Upper_Case_alphabets/S.py
SaikumarS2611/Python
205f5aaba3bd2de714503b5bed8853d24e85329e
[ "MIT" ]
null
null
null
def for_S(): """ Upper case Alphabet letter 'S' pattern using Python for loop""" for row in range(7): for col in range(5): if row%3==0 and col>0 and col<4 or col==0 and row%3!=0 and row<3 or col==4 and row%3!=0 and row>3: print('*', end = ' ') else: print(' ', end = ' ') print() def while_S(): """ Upper case Alphabet letter 'S' pattern using Python while loop""" row = 0 while row<7: col = 0 while col<5: if row%3==0 and col>0 and col<4 or col==0 and row%3!=0 and row<3 or col==4 and row%3!=0 and row>3: print('*', end = ' ') else: print(' ', end = ' ') col += 1 print() row += 1
36.888889
123
0.35743
122
996
2.901639
0.229508
0.112994
0.158192
0.135593
0.717514
0.717514
0.717514
0.717514
0.717514
0.474576
0
0.068085
0.528112
996
26
124
38.307692
0.685106
0.123494
0
0.5
0
0
0.009592
0
0
0
0
0
0
1
0.1
false
0
0
0
0.1
0.3
0
0
0
null
0
0
0
0
1
1
1
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
1a925cb46f3891f1fdd63403046a5b8d39c0a1ad
229
py
Python
genegram/__init__.py
vadyushkins/Genegram
930d388a90c338fbde998a6be34a29f0a656c288
[ "Apache-2.0" ]
1
2021-11-21T20:41:12.000Z
2021-11-21T20:41:12.000Z
genegram/__init__.py
vadyushkins/Genegram
930d388a90c338fbde998a6be34a29f0a656c288
[ "Apache-2.0" ]
30
2021-09-16T14:41:46.000Z
2021-10-16T10:43:47.000Z
genegram/__init__.py
vadyushkins/Genegram
930d388a90c338fbde998a6be34a29f0a656c288
[ "Apache-2.0" ]
2
2021-09-07T13:04:27.000Z
2021-09-07T13:05:51.000Z
import genegram.shared from genegram.shared import * import genegram.cfpq_pyalgo from genegram.cfpq_pyalgo import * import genegram.parsing from genegram.parsing import * import genegram.predict from genegram.predict import *
19.083333
34
0.829694
30
229
6.266667
0.266667
0.297872
0.319149
0
0
0
0
0
0
0
0
0
0.117904
229
11
35
20.818182
0.930693
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
1a9e152d6f94befa705236b11f0938129242bf8c
19
py
Python
h2o/__init__.py
iceb0y/pyh2o
619d46bb381a2ad0b99147c8a11271b9cfc6cce2
[ "MIT" ]
21
2016-09-05T08:24:58.000Z
2021-01-12T08:16:02.000Z
h2o/__init__.py
iceboy-sjtu/pyh2o
619d46bb381a2ad0b99147c8a11271b9cfc6cce2
[ "MIT" ]
null
null
null
h2o/__init__.py
iceboy-sjtu/pyh2o
619d46bb381a2ad0b99147c8a11271b9cfc6cce2
[ "MIT" ]
2
2017-04-07T13:36:26.000Z
2019-12-31T03:21:37.000Z
from .h2o import *
9.5
18
0.684211
3
19
4.333333
1
0
0
0
0
0
0
0
0
0
0
0.066667
0.210526
19
1
19
19
0.8
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
1aa1609a1f703471c04dfca75ac6ed0b93ec005a
208
py
Python
mediaman/core/index/base.py
MattCCS/MediaMan
388c0d16da437b0ede4f0903a01e41dc8e927ae6
[ "BSD-3-Clause-Clear" ]
1
2019-05-06T19:51:08.000Z
2019-05-06T19:51:08.000Z
mediaman/core/index/base.py
MattCCS/MediaMan
388c0d16da437b0ede4f0903a01e41dc8e927ae6
[ "BSD-3-Clause-Clear" ]
1
2021-02-08T20:22:34.000Z
2021-02-08T20:22:34.000Z
mediaman/core/index/base.py
MattCCS/MediaMan
388c0d16da437b0ede4f0903a01e41dc8e927ae6
[ "BSD-3-Clause-Clear" ]
null
null
null
from mediaman.core.index import abstract class BaseIndex(abstract.AbstractIndex): def stats(self): return self.stats.capacity() def capacity(self): return self.service.capacity()
17.333333
40
0.697115
24
208
6.041667
0.625
0.137931
0.193103
0
0
0
0
0
0
0
0
0
0.206731
208
11
41
18.909091
0.878788
0
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0.166667
0.333333
1
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
1
0
0
0
1
1
0
0
5
1abc2dfe82c091849b7f24bf3182adcbd97f0ced
226
py
Python
stripe_modern/api_resources/reporting/__init__.py
photocrowd/stripe-python
7c705e3d41f38f8524e419eb7ea18c1425a4ad89
[ "MIT" ]
null
null
null
stripe_modern/api_resources/reporting/__init__.py
photocrowd/stripe-python
7c705e3d41f38f8524e419eb7ea18c1425a4ad89
[ "MIT" ]
null
null
null
stripe_modern/api_resources/reporting/__init__.py
photocrowd/stripe-python
7c705e3d41f38f8524e419eb7ea18c1425a4ad89
[ "MIT" ]
null
null
null
from __future__ import absolute_import, division, print_function # flake8: noqa from stripe_modern.api_resources.reporting.report_run import ReportRun from stripe_modern.api_resources.reporting.report_type import ReportType
32.285714
72
0.871681
30
226
6.166667
0.633333
0.108108
0.172973
0.205405
0.464865
0.464865
0.464865
0
0
0
0
0.004831
0.084071
226
6
73
37.666667
0.888889
0.053097
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0.333333
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
201f39b869282b1e173c28dc51096f1b3b70a825
87
py
Python
stockmanager/admin.py
JAYBLA/Inventory-Management-System
121882e1846eebe5bb4a99e7c5e92768c813610b
[ "MIT" ]
1
2022-03-12T04:00:10.000Z
2022-03-12T04:00:10.000Z
stocks/quotes/admin.py
DhruvilShah22/Stock-PortFolio
361060239d8c26e54877a3ecbbddc2c6d64b53be
[ "MIT" ]
null
null
null
stocks/quotes/admin.py
DhruvilShah22/Stock-PortFolio
361060239d8c26e54877a3ecbbddc2c6d64b53be
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Stock admin.site.register(Stock)
17.4
32
0.816092
13
87
5.461538
0.692308
0
0
0
0
0
0
0
0
0
0
0
0.114943
87
4
33
21.75
0.922078
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
204d3ee53613dc4292c9220909d5e3fa51295f15
1,173
py
Python
gripql/python/gripql/operators.py
pagreene/grip
0ee07f6e14dd5062b88e75efe5263801503792d1
[ "MIT" ]
null
null
null
gripql/python/gripql/operators.py
pagreene/grip
0ee07f6e14dd5062b88e75efe5263801503792d1
[ "MIT" ]
null
null
null
gripql/python/gripql/operators.py
pagreene/grip
0ee07f6e14dd5062b88e75efe5263801503792d1
[ "MIT" ]
null
null
null
from __future__ import absolute_import, print_function, unicode_literals def and_(*expressions): return {"and": {"expressions": expressions}} def or_(*expressions): return {"or": {"expressions": expressions}} def not_(expression): return {"not": expression} def eq(key, value): return {"condition": {"key": key, "value": value, "condition": "EQ"}} def neq(key, value): return {"condition": {"key": key, "value": value, "condition": "NEQ"}} def gt(key, value): return {"condition": {"key": key, "value": value, "condition": "GT"}} def gte(key, value): return {"condition": {"key": key, "value": value, "condition": "GTE"}} def lt(key, value): return {"condition": {"key": key, "value": value, "condition": "LT"}} def lte(key, value): return {"condition": {"key": key, "value": value, "condition": "LTE"}} def in_(key, values): if not isinstance(values, list): if not isinstance(values, dict): values = [values] return {"condition": {"key": key, "value": values, "condition": "IN"}} def contains(key, value): return {"condition": {"key": key, "value": value, "condition": "CONTAINS"}}
23.938776
79
0.613811
137
1,173
5.175182
0.226277
0.169252
0.203103
0.236953
0.510578
0.473907
0.473907
0.473907
0.473907
0
0
0
0.180733
1,173
48
80
24.4375
0.737773
0
0
0
0
0
0.224211
0
0
0
0
0
0
1
0.423077
false
0
0.038462
0.384615
0.884615
0.038462
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
5
644a41da13f77f2c2cf05082f95f44263e687ca5
90
py
Python
core/api/permissions.py
christianmtr/my_django_template
0d51bd62b6ea2d4dc66053914162944d5af25b39
[ "MIT" ]
4
2020-08-10T01:56:06.000Z
2021-10-18T08:02:14.000Z
core/api/permissions.py
christianmtr/my_django_template
0d51bd62b6ea2d4dc66053914162944d5af25b39
[ "MIT" ]
null
null
null
core/api/permissions.py
christianmtr/my_django_template
0d51bd62b6ea2d4dc66053914162944d5af25b39
[ "MIT" ]
null
null
null
from rest_framework.permissions import BasePermission # add your custom permissions here
22.5
53
0.855556
11
90
6.909091
0.909091
0
0
0
0
0
0
0
0
0
0
0
0.122222
90
3
54
30
0.962025
0.355556
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
644fe0dfd40c59baba3f28d2847e7a07d5f4209a
20,530
py
Python
server/tests/server_test.py
albrycht/MoveBlockDetector
b9a5c5634788e06bb565976afea933b04f9f47ac
[ "MIT" ]
1
2021-03-20T10:21:45.000Z
2021-03-20T10:21:45.000Z
server/tests/server_test.py
albrycht/MoveBlockDetector
b9a5c5634788e06bb565976afea933b04f9f47ac
[ "MIT" ]
null
null
null
server/tests/server_test.py
albrycht/MoveBlockDetector
b9a5c5634788e06bb565976afea933b04f9f47ac
[ "MIT" ]
null
null
null
from textwrap import dedent import requests from falcon import testing from unidiff import PatchSet import json from detector import split_to_leading_whitespace_and_trim_text from main import create_api from tests.detector_tests import ChangedLines from tests.github_token import GITHUB_TOKEN class MyTestCase(testing.TestCase): def setUp(self): super(MyTestCase, self).setUp() self.app = create_api() class TestMyApp(MyTestCase): def test_get_message(self): expected_response = {u'message': u'Hello world!'} result = self.simulate_get('/moved-blocks') self.assertEqual(result.json, expected_response) def test_post_message_with_diff_text(self): diff_text = dedent(""" --- file1 2019-05-29 19:23:25.228980900 +0200 +++ file2 2019-05-29 19:23:38.127013700 +0200 @@ -1,5 +1,5 @@ -1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 -2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 -3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 +4 1 1 1 1 1 1 1 1 1 1 1 1 1 1 +5 2 2 2 2 2 2 2 2 2 2 2 2 2 2 +6 3 3 3 3 3 3 3 3 3 3 3 3 3 3 ala ma kota """) post_data = { 'diff_text': diff_text, } result = self.simulate_post('/moved-blocks', json=post_data) self.assertEqual(len(result.json), 1) self.assertEqual(len(result.json[0]['lines']), 3) def test_post_message_with_added_and_removed_lines(self): removed_lines = ChangedLines("file_with_removed_lines", { 1: "1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1", 2: "2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2", 3: "3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3", 4: "4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4", 5: "5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5" }) added_lines = ChangedLines("file_with_added_lines", { 10: "-------------------------------------------", 11: "-------------------------------------------", 12: "1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1", 13: "2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2", 14: "3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3", 15: "4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4", 16: "-------------------------------------------", }) post_data = { 'added_lines': added_lines.to_lines_dicts(), 'removed_lines': removed_lines.to_lines_dicts(), } result = self.simulate_post('/moved-blocks', json=post_data) self.assertEqual(len(result.json), 1) self.assertEqual(len(result.json[0]['lines']), 4) self.assertDictEqual(result.json[0]['lines'][0], { 'added_line': { 'file': 'file_with_added_lines', 'line_no': 12, 'leading_whitespaces': '', 'trim_text': '1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1' }, 'removed_line': { 'file': 'file_with_removed_lines', 'line_no': 1, 'leading_whitespaces': '', 'trim_text': '1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1' }, 'match_probability': 1 } ) def diff_to_added_and_removed_lines(self, diff_text): patch = PatchSet(diff_text) added_lines = [] removed_lines = [] for patched_file in patch: for hunk in patched_file: for line in hunk: leading_whitespace, trim_text = split_to_leading_whitespace_and_trim_text(line.value.rstrip('\n')) file = patched_file.path if line.is_added: line_no = line.target_line_no lines_list = added_lines elif line.is_removed: line_no = line.source_line_no lines_list = removed_lines else: continue lines_list.append({ 'file': file, 'line_no': line_no, 'trim_text': trim_text, 'leading_whitespaces': leading_whitespace, }) return { 'added_lines': added_lines, 'removed_lines': removed_lines, } def test_compare_diff_with_javascript_plugin(self): url = 'https://github.com/albrycht/MoveBlockDetector/pull/1.diff' r = requests.get(url, headers={'Authorization': f'token {GITHUB_TOKEN}', 'Accept': 'application/vnd.github.v3.sha'}) parsed_diff = self.diff_to_added_and_removed_lines(r.text) from_js = { "added_lines": [ { "file": "tests/some_text_file.txt", "line_no": 1, "trim_text": "In quis pharetra neque. Vestibulum in enim lacus. In vitae est dolor. Donec a dolor diam. Morbi aliquam et leo ut viverra. Curabitur at mauris purus.", "leading_whitespaces": "", }, { "file": "tests/some_text_file.txt", "line_no": 2, "trim_text": "Curabitur urna eros, ullamcorper ut tellus sed, lobortis tempus leo. Nulla semper purus ut finibus porttitor. Ut ac est sit amet lacus ornare rutrum.", "leading_whitespaces": "", }, { "file": "tests/some_text_file.txt", "line_no": 3, "trim_text": "Duis turpis risus, aliquet quis quam ut, faucibus faucibus tortor. Ut eu porttitor dolor.", "leading_whitespaces": "", }, { "file": "tests/some_text_file.txt", "line_no": 11, "trim_text": "Aliquam non justo nisl. Aliquam luctus condimentum libero, ut dapibus tortor lacinia quis. Donec lobortis libero at tellus tristique tempor.", "leading_whitespaces": "", }, { "file": "tests/some_text_file.txt", "line_no": 12, "trim_text": "Aliquam et ipsum at dolor sagittis egestas eu id tellus. Cras id dictum augue, id volutpat nisi. Duis vestibulum tortor in nibh tempor faucibus.", "leading_whitespaces": "", }, { "file": "tests/some_text_file.txt", "line_no": 13, "trim_text": "Vestibulum suscipit ex ac laoreet vehicula. Cras porttitor bibendum sem sed elementum. Morbi non ex at lectus maximus dictum et ultricies massa.", "leading_whitespaces": "", }, { "file": "tests/some_text_file.txt", "line_no": 14, "trim_text": "In aliquet lorem quis risus congue, non dictum urna pulvinar. In eu enim a lacus suscipit pellentesque. Donec molestie, tellus id ultricies tincidunt,", "leading_whitespaces": "", }, { "file": "tests/some_text_file.txt", "line_no": 15, "trim_text": "risus magna congue velit, quis euismod ligula nisl eu quam. Sed vel consequat justo, non aliquam leo.", "leading_whitespaces": "", }, { "file": "tests/some_text_file.txt", "line_no": 16, "trim_text": "Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.", "leading_whitespaces": "", }, { "file": "tests/some_text_file.txt", "line_no": 24, "trim_text": "Maecenas fermentum, quam varius feugiat accumsan, risus ligula maximus justo, et interdum lacus lacus et nunc.", "leading_whitespaces": "", }, { "file": "tests/some_text_file.txt", "line_no": 25, "trim_text": "Vivamus imperdiet enim non risus aliquam rutrum. Nunc erat eros, lobortis ut vehicula at, sollicitudin tempor nibh.", "leading_whitespaces": "", }, { "file": "tests/some_text_file.txt", "line_no": 26, "trim_text": "Nam et magna at urna molestie malesuada. Nunc et sem egestas, dapibus lorem eu, efficitur augue. Morbi volutpat ante quis pellentesque euismod.", "leading_whitespaces": "", }, { "file": "tests/some_text_file.txt", "line_no": 27, "trim_text": "Curabitur scelerisque tempus enim, sit amet imperdiet felis facilisis ac. Curabitur luctus ornare orci. Duis ultrices ex risus,", "leading_whitespaces": "", }, { "file": "tests/some_text_file.txt", "line_no": 28, "trim_text": "vitae imperdiet neque mattis ullamcorper. Proin vel egestas leo. Etiam lectus risus, congue ac blandit vitae, lobortis et felis.", "leading_whitespaces": "", }, { "file": "tests/some_text_file.txt", "line_no": 29, "trim_text": "", "leading_whitespaces": "", }, { "file": "tests/some_text_file.txt", "line_no": 30, "trim_text": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. In semper, nunc sit amet blandit semper, lacus eros congue neque,", "leading_whitespaces": "", }, { "file": "tests/some_text_file.txt", "line_no": 31, "trim_text": "vitae rhoncus sapien nisi et velit. Fusce arcu ipsum, tempus ut ullamcorper eget, pretium eu libero. Suspendisse potenti.", "leading_whitespaces": "", }, { "file": "tests/some_text_file.txt", "line_no": 32, "trim_text": "Fusce ac ullamcorper nulla, quis facilisis urna. Proin congue ex pulvinar, congue lacus sit amet, mollis odio.", "leading_whitespaces": "", }, { "file": "tests/some_text_file.txt", "line_no": 33, "trim_text": "Pellentesque cursus ultrices enim ut varius. Cras pellentesque felis a faucibus vestibulum. Vestibulum commodo, ipsum sagittis pretium porta,", "leading_whitespaces": "", }, { "file": "tests/some_text_file.txt", "line_no": 34, "trim_text": "massa orci condimentum orci, non porta velit nunc id ipsum. Sed turpis dolor, molestie vitae leo vitae, imperdiet fringilla diam.", "leading_whitespaces": "", }, { "file": "tests/some_text_file.txt", "line_no": 35, "trim_text": "Nullam dolor elit, finibus id massa at, placerat mollis enim. Nullam condimentum egestas leo efficitur porttitor. Integer et eros nunc.", "leading_whitespaces": "", }, { "file": "tests/some_text_file.txt", "line_no": 36, "trim_text": "Maecenas fringilla sem et ante accumsan, vitae hendrerit tellus malesuada. In non sodales ligula. Vivamus at mollis tortor.", "leading_whitespaces": "", }, { "file": "tests/some_text_file.txt", "line_no": 37, "trim_text": "", "leading_whitespaces": "", }, { "file": "tests/some_text_file.txt", "line_no": 38, "trim_text": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. In semper, nunc sit amet blandit semper, lacus eros congue neque,", "leading_whitespaces": "", }, { "file": "tests/some_text_file.txt", "line_no": 39, "trim_text": "vitae rhoncus sapien nisi et velit. Fusce arcu ipsum, tempus ut ullamcorper eget, pretium eu libero. Suspendisse potenti.", "leading_whitespaces": "", }, { "file": "tests/some_text_file.txt", "line_no": 40, "trim_text": "Fusce ac ullamcorper nulla, quis facilisis urna. Proin congue ex pulvinar, congue lacus sit amet, mollis odio.", "leading_whitespaces": "", }, { "file": "tests/some_text_file.txt", "line_no": 41, "trim_text": "Pellentesque cursus ultrices enim ut varius. Cras pellentesque felis a faucibus vestibulum. Vestibulum commodo, ipsum sagittis pretium porta,", "leading_whitespaces": "", }, { "file": "tests/some_text_file.txt", "line_no": 42, "trim_text": "massa orci condimentum orci, non porta velit nunc id ipsum. Sed turpis dolor, molestie vitae leo vitae, imperdiet fringilla diam.", "leading_whitespaces": "", }, { "file": "tests/some_text_file.txt", "line_no": 43, "trim_text": "Nullam dolor elit, finibus id massa at, placerat mollis enim. Nullam condimentum egestas leo efficitur porttitor. Integer et eros nunc.", "leading_whitespaces": "", }, { "file": "tests/some_text_file.txt", "line_no": 44, "trim_text": "Maecenas fringilla sem et ante accumsan, vitae hendrerit tellus malesuada. In non sodales ligula. Vivamus at mollis tortor.", "leading_whitespaces": "", } ], "removed_lines": [ { "file": "tests/some_text_file.txt", "line_no": 1, "trim_text": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. In semper, nunc sit amet blandit semper, lacus eros congue neque,", "leading_whitespaces": "", }, { "file": "tests/some_text_file.txt", "line_no": 2, "trim_text": "vitae rhoncus sapien nisi et velit. Fusce arcu ipsum, tempus ut ullamcorper eget, pretium eu libero. Suspendisse potenti.", "leading_whitespaces": "", }, { "file": "tests/some_text_file.txt", "line_no": 3, "trim_text": "Fusce ac ullamcorper nulla, quis facilisis urna. Proin congue ex pulvinar, congue lacus sit amet, mollis odio.", "leading_whitespaces": "", }, { "file": "tests/some_text_file.txt", "line_no": 4, "trim_text": "Pellentesque cursus ultrices enim ut varius. Cras pellentesque felis a faucibus vestibulum. Vestibulum commodo, ipsum sagittis pretium porta,", "leading_whitespaces": "", }, { "file": "tests/some_text_file.txt", "line_no": 5, "trim_text": "massa orci condimentum orci, non porta velit nunc id ipsum. Sed turpis dolor, molestie vitae leo vitae, imperdiet fringilla diam.", "leading_whitespaces": "", }, { "file": "tests/some_text_file.txt", "line_no": 6, "trim_text": "Nullam dolor elit, finibus id massa at, placerat mollis enim. Nullam condimentum egestas leo efficitur porttitor. Integer et eros nunc.", "leading_whitespaces": "", }, { "file": "tests/some_text_file.txt", "line_no": 7, "trim_text": "Maecenas fringilla sem et ante accumsan, vitae hendrerit tellus malesuada. In non sodales ligula. Vivamus at mollis tortor.", "leading_whitespaces": "", }, { "file": "tests/some_text_file.txt", "line_no": 15, "trim_text": "In quis pharetra neque. Vestibulum in enim lacus. In vitae est dolor. Donec a dolor diam. Morbi aliquam et leo ut viverra. Curabitur at mauris purus.", "leading_whitespaces": "", }, { "file": "tests/some_text_file.txt", "line_no": 16, "trim_text": "Curabitur urna eros, ullamcorper ut tellus sed, lobortis tempus leo. Nulla semper purus ut finibus porttitor. Ut ac est sit amet lacus ornare rutrum.", "leading_whitespaces": "", }, { "file": "tests/some_text_file.txt", "line_no": 17, "trim_text": "Duis turpis risus, aliquet quis quam ut, faucibus faucibus tortor. Ut eu porttitor dolor.", "leading_whitespaces": "", }, { "file": "tests/some_text_file.txt", "line_no": 25, "trim_text": "Aliquam non justo nisl. Aliquam luctus condimentum libero, ut dapibus tortor lacinia quis. Donec lobortis libero at tellus tristique tempor.", "leading_whitespaces": "", }, { "file": "tests/some_text_file.txt", "line_no": 26, "trim_text": "Aliquam et ipsum at dolor sagittis egestas eu id tellus. Cras id dictum augue, id volutpat nisi. Duis vestibulum tortor in nibh tempor faucibus.", "leading_whitespaces": "", }, { "file": "tests/some_text_file.txt", "line_no": 27, "trim_text": "Vestibulum suscipit ex ac laoreet vehicula. Cras porttitor bibendum sem sed elementum. Morbi non ex at lectus maximus dictum et ultricies massa.", "leading_whitespaces": "", }, { "file": "tests/some_text_file.txt", "line_no": 28, "trim_text": "In aliquet lorem quis risus congue, non dictum urna pulvinar. In eu enim a lacus suscipit pellentesque. Donec molestie, tellus id ultricies tincidunt,", "leading_whitespaces": "", }, { "file": "tests/some_text_file.txt", "line_no": 29, "trim_text": "risus magna congue velit, quis euismod ligula nisl eu quam. Sed vel consequat justo, non aliquam leo.", "leading_whitespaces": "", }, { "file": "tests/some_text_file.txt", "line_no": 30, "trim_text": "Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.", "leading_whitespaces": "", } ] } for key in ['added_lines', 'removed_lines']: for from_js_line_dict, parsed_diff_line_dict in zip(from_js[key], parsed_diff[key]): self.assertDictEqual(from_js_line_dict, parsed_diff_line_dict)
49.46988
186
0.491866
2,233
20,530
4.355575
0.132109
0.023031
0.032696
0.041127
0.78429
0.769278
0.763932
0.756735
0.750154
0.750154
0
0.041818
0.40945
20,530
414
187
49.589372
0.760393
0
0
0.425316
0
0.126582
0.489576
0.065757
0
0
0
0
0.017722
1
0.01519
false
0
0.022785
0
0.04557
0
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
6477ace092dc50df0c1eaf2cd63fecee75f266e6
342
py
Python
crowdsrc/src/views/__init__.py
BenEast/crowdsrc-backend
d06f0379e60bbac11128b3dd94dbc2d40b5f7a2e
[ "MIT" ]
null
null
null
crowdsrc/src/views/__init__.py
BenEast/crowdsrc-backend
d06f0379e60bbac11128b3dd94dbc2d40b5f7a2e
[ "MIT" ]
null
null
null
crowdsrc/src/views/__init__.py
BenEast/crowdsrc-backend
d06f0379e60bbac11128b3dd94dbc2d40b5f7a2e
[ "MIT" ]
null
null
null
from .views import * from .auth_views import * from .crowd_views import * from .user_views import * from .user_settings_views import * from .project_views import * from .skill_views import * from .task_views import * from .task_submission_views import * from .team_message_views import * from .review_views import * from .stats_views import *
28.5
36
0.792398
50
342
5.14
0.3
0.513619
0.642023
0.14786
0
0
0
0
0
0
0
0
0.137427
342
12
37
28.5
0.871186
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
6487bafb51fc3dcff6cdbed37429732ca7a4f0c7
104
py
Python
bin/downloads.py
meghdadFar/snlp
deb37b12bc5112b74d0bf8187f47b5d36bf6b943
[ "MIT" ]
4
2021-01-12T15:16:16.000Z
2021-08-06T08:38:35.000Z
bin/downloads.py
meghdadFar/snlp
deb37b12bc5112b74d0bf8187f47b5d36bf6b943
[ "MIT" ]
null
null
null
bin/downloads.py
meghdadFar/snlp
deb37b12bc5112b74d0bf8187f47b5d36bf6b943
[ "MIT" ]
null
null
null
#!/usr/bin/env python import nltk nltk.download('averaged_perceptron_tagger') nltk.download('stopwords')
26
43
0.807692
14
104
5.857143
0.785714
0.292683
0
0
0
0
0
0
0
0
0
0
0.048077
104
4
44
26
0.828283
0.192308
0
0
0
0
0.416667
0.309524
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
64a5de31631ecbb9f0be0e66ab762b5de94e082f
220
py
Python
jaguar/components/__init__.py
calston/tinyjaguar
78614b6c3beb82a1b20cb0bda038c972214119d5
[ "MIT" ]
9
2017-03-16T15:59:43.000Z
2020-10-08T03:39:13.000Z
jaguar/components/__init__.py
calston/tinyjaguar
78614b6c3beb82a1b20cb0bda038c972214119d5
[ "MIT" ]
null
null
null
jaguar/components/__init__.py
calston/tinyjaguar
78614b6c3beb82a1b20cb0bda038c972214119d5
[ "MIT" ]
null
null
null
from .lcd import CharacterDisplay from .mcp41 import MCP410x0 from .segment import SegmentDisplay from .shift_register import ShiftRegister from .mcp3008 import MCP3008 from .button import Button from .out import Output
27.5
41
0.840909
29
220
6.344828
0.517241
0
0
0
0
0
0
0
0
0
0
0.072917
0.127273
220
7
42
31.428571
0.885417
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
64b380e2c9e5fc61b5b3c34b57f0eb932404bfe0
30
py
Python
strategies/gdumb/__init__.py
rmassidda/reproducible-continual-learning
ed7b7db634038d9d4312c2c54b15ca8eead1c07c
[ "MIT" ]
53
2021-04-20T15:41:23.000Z
2022-03-30T17:24:36.000Z
strategies/gdumb/__init__.py
rmassidda/reproducible-continual-learning
ed7b7db634038d9d4312c2c54b15ca8eead1c07c
[ "MIT" ]
14
2021-10-08T10:35:31.000Z
2022-03-29T14:00:06.000Z
strategies/gdumb/__init__.py
rmassidda/reproducible-continual-learning
ed7b7db634038d9d4312c2c54b15ca8eead1c07c
[ "MIT" ]
7
2021-11-02T15:39:57.000Z
2022-03-31T03:25:04.000Z
from .experiment import GDumb
15
29
0.833333
4
30
6.25
1
0
0
0
0
0
0
0
0
0
0
0
0.133333
30
1
30
30
0.961538
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
64ceebc77ce40e1c33743bbecc2c36f9d1d71d9d
249
py
Python
nginxpla/nginxpla_module.py
evirma/nginxpla
24ff15809cb3c6f81821c09d07e52c629fca491a
[ "MIT" ]
null
null
null
nginxpla/nginxpla_module.py
evirma/nginxpla
24ff15809cb3c6f81821c09d07e52c629fca491a
[ "MIT" ]
null
null
null
nginxpla/nginxpla_module.py
evirma/nginxpla
24ff15809cb3c6f81821c09d07e52c629fca491a
[ "MIT" ]
null
null
null
from abc import ABCMeta, abstractmethod class NginxplaModule: __metaclass__ = ABCMeta is_needed = None @abstractmethod def report(self) -> str: pass def handle_report(self, report: str) -> str: return report
16.6
48
0.658635
27
249
5.851852
0.666667
0.126582
0
0
0
0
0
0
0
0
0
0
0.273092
249
14
49
17.785714
0.872928
0
0
0
0
0
0
0
0
0
0
0
0
1
0.222222
false
0.111111
0.111111
0.111111
0.777778
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
1
1
0
0
5
64d043d0d3cd986fb4b52ffc61033db81c9c234c
143
py
Python
travelperk_python_api_types/users/users/name.py
namelivia/travelperk-python-api-types
d71cee9757938ed4189479c81e4f2ff1f73ca489
[ "MIT" ]
null
null
null
travelperk_python_api_types/users/users/name.py
namelivia/travelperk-python-api-types
d71cee9757938ed4189479c81e4f2ff1f73ca489
[ "MIT" ]
1
2021-09-03T04:20:35.000Z
2021-09-03T04:20:35.000Z
travelperk_python_api_types/users/users/name.py
namelivia/travelperk-python-api-types
d71cee9757938ed4189479c81e4f2ff1f73ca489
[ "MIT" ]
null
null
null
from pydantic.dataclasses import dataclass @dataclass class Name: first_name: str last_name: str middle_name: str title: str
14.3
42
0.72028
19
143
5.263158
0.631579
0.21
0
0
0
0
0
0
0
0
0
0
0.230769
143
9
43
15.888889
0.909091
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.142857
0
0.857143
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
1
0
0
5
b38115b2a5969adce31b983c85bbe4525bc5a513
1,047
py
Python
tabpy/tabpy_server/handlers/__init__.py
phantomcosmonaut/TabPy
43cce449cdcb5c99202d68f1a6af4d355d3e3734
[ "MIT" ]
null
null
null
tabpy/tabpy_server/handlers/__init__.py
phantomcosmonaut/TabPy
43cce449cdcb5c99202d68f1a6af4d355d3e3734
[ "MIT" ]
null
null
null
tabpy/tabpy_server/handlers/__init__.py
phantomcosmonaut/TabPy
43cce449cdcb5c99202d68f1a6af4d355d3e3734
[ "MIT" ]
null
null
null
from tabpy.tabpy_server.handlers.base_handler import BaseHandler from tabpy.tabpy_server.handlers.main_handler import MainHandler from tabpy.tabpy_server.handlers.management_handler import ManagementHandler from tabpy.tabpy_server.handlers.endpoint_handler import EndpointHandler from tabpy.tabpy_server.handlers.endpoints_handler import EndpointsHandler from tabpy.tabpy_server.handlers.evaluation_plane_handler import EvaluationPlaneHandler from tabpy.tabpy_server.handlers.query_plane_handler import QueryPlaneHandler from tabpy.tabpy_server.handlers.service_info_handler import ServiceInfoHandler from tabpy.tabpy_server.handlers.status_handler import StatusHandler from tabpy.tabpy_server.handlers.login_handler import LoginHandler from tabpy.tabpy_server.handlers.users_handler import UsersHandler from tabpy.tabpy_server.handlers.settings_handler import SettingsHandler from tabpy.tabpy_server.handlers.models_handler import ModelsHandler from tabpy.tabpy_server.handlers.upload_destination_handler import ( UploadDestinationHandler, )
61.588235
87
0.897803
130
1,047
6.984615
0.284615
0.138767
0.215859
0.30837
0.431718
0
0
0
0
0
0
0
0.059217
1,047
16
88
65.4375
0.921827
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.875
0
0.875
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
b3838ddc79a4c37ae9a5aca953738f06d772d53c
317
py
Python
Raspberry/raspberry-bluetooth-conf/bluetooth_connect_resend.py
AMM-VSU/scada-vsu
5aedd7c7f0738af980dfa62264c5b8f711cc04eb
[ "MIT" ]
1
2017-10-29T10:01:34.000Z
2017-10-29T10:01:34.000Z
Raspberry/raspberry-bluetooth-conf/bluetooth_connect_resend.py
AMM-VSU/SCADA-VSU
5aedd7c7f0738af980dfa62264c5b8f711cc04eb
[ "MIT" ]
null
null
null
Raspberry/raspberry-bluetooth-conf/bluetooth_connect_resend.py
AMM-VSU/SCADA-VSU
5aedd7c7f0738af980dfa62264c5b8f711cc04eb
[ "MIT" ]
null
null
null
import serial from time import sleep while True: try: bluetoothSerial = serial.Serial( "/dev/rfcomm2", baudrate=9600 ) s = bluetoothSerial.readline() print s bluetoothSerial = serial.Serial("/dev/rfcomm1", baudrate=9600) bluetoothSerial.write(s) except: pass
24.384615
72
0.637224
33
317
6.121212
0.606061
0.207921
0.267327
0.29703
0
0
0
0
0
0
0
0.043103
0.268139
317
12
73
26.416667
0.827586
0
0
0
0
0
0.07571
0
0
0
0
0
0
0
null
null
0.090909
0.181818
null
null
0.090909
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
1
0
0
0
0
0
5
b3bf4cb7f349322c3c88a39d900e628db0e33c08
220
py
Python
dpd_info_client_api/settings.py
haloween/dpd-client-info-service-api-python
8715e04e10b845b6e9fafa5d11eed42968adc764
[ "MIT" ]
1
2019-08-10T09:14:37.000Z
2019-08-10T09:14:37.000Z
dpd_info_client_api/settings.py
haloween/dpd-client-info-service-api-python
8715e04e10b845b6e9fafa5d11eed42968adc764
[ "MIT" ]
null
null
null
dpd_info_client_api/settings.py
haloween/dpd-client-info-service-api-python
8715e04e10b845b6e9fafa5d11eed42968adc764
[ "MIT" ]
null
null
null
class DPDSettingsObject(object): DPD_API_USERNAME = None DPD_API_PASSWORD = None DPD_API_FID = None DPD_API_SANDBOX_USERNAME = None DPD_API_SANDBOX_PASSWORD = None DPD_API_SANDBOX_FID = None
16.923077
35
0.736364
30
220
4.9
0.333333
0.244898
0.340136
0.346939
0
0
0
0
0
0
0
0
0.222727
220
12
36
18.333333
0.859649
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0.285714
0
0
1
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
5
b3cebd89170907df4a426134fd8fd0771545948b
66
py
Python
src/data/__init__.py
Javicadserres/wind-production-forecast
903fbf53d2ea34dc1a63e89cee252e76d6c25876
[ "MIT" ]
null
null
null
src/data/__init__.py
Javicadserres/wind-production-forecast
903fbf53d2ea34dc1a63e89cee252e76d6c25876
[ "MIT" ]
null
null
null
src/data/__init__.py
Javicadserres/wind-production-forecast
903fbf53d2ea34dc1a63e89cee252e76d6c25876
[ "MIT" ]
null
null
null
from .dataset import Dataset from .preprocessing import FrameTorch
33
37
0.863636
8
66
7.125
0.625
0
0
0
0
0
0
0
0
0
0
0
0.106061
66
2
37
33
0.966102
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
b3f24c714175958ec5b23d791693618252889a49
6,431
py
Python
tests/test_smith_waterman.py
shaomingyang-lab/smart-match
7e92412f7c6cb3ab7ce6b6a1f8e366b991ff31ce
[ "MIT" ]
null
null
null
tests/test_smith_waterman.py
shaomingyang-lab/smart-match
7e92412f7c6cb3ab7ce6b6a1f8e366b991ff31ce
[ "MIT" ]
null
null
null
tests/test_smith_waterman.py
shaomingyang-lab/smart-match
7e92412f7c6cb3ab7ce6b6a1f8e366b991ff31ce
[ "MIT" ]
1
2022-03-19T07:45:51.000Z
2022-03-19T07:45:51.000Z
import unittest import smart_match class TestSmithWaterman(unittest.TestCase): def setUp(self): smart_match.use('SW') def test_similarity(self): self.assertAlmostEqual(smart_match.similarity('Web Aplications', 'Web Application Development With PHP'), 0.8666666666666667) self.assertAlmostEqual(smart_match.similarity('', 'eee'), 0) self.assertAlmostEqual(smart_match.similarity('aaa', 'eee'), 0) self.assertAlmostEqual(smart_match.similarity('eee', 'aaa'), 0) self.assertAlmostEqual(smart_match.similarity('ddd', 'aaa'), 0) self.assertAlmostEqual(smart_match.similarity('aaa', 'ddd'), 0) self.assertAlmostEqual(smart_match.similarity('test string1', 'test string2'), 0.9166666666666666) self.assertAlmostEqual(smart_match.similarity('test', 'test string2'), 1) self.assertAlmostEqual(smart_match.similarity('', 'test string2'), 0) self.assertAlmostEqual(smart_match.similarity('aaa bbb ccc ddd', 'aaa bbb ccc eee'), 0.8) self.assertAlmostEqual(smart_match.similarity('a b c d', 'a b c e'), 0.8571428571428571) self.assertAlmostEqual(smart_match.similarity('Healed', 'Sealed'), 0.8333333333333334) self.assertAlmostEqual(smart_match.similarity('Healed', 'Healthy'), 0.6666666666666666) self.assertAlmostEqual(smart_match.similarity('Healed', 'Heard'), 0.6) self.assertAlmostEqual(smart_match.similarity('Healed', 'Hearded'), 0.5666666666666667) self.assertAlmostEqual(smart_match.similarity('Healed', 'Help'), 0.5) self.assertAlmostEqual(smart_match.similarity('Healed', 'Sold'), 0.25) self.assertAlmostEqual(smart_match.similarity('Sam J Chapman', 'Samuel John Chapman'),0.7846153846153846) self.assertAlmostEqual(smart_match.similarity('Sam Chapman', 'S Chapman'),0.8888888888888888) self.assertAlmostEqual(smart_match.similarity('John Smith', 'Samuel John Chapman'),0.5) self.assertAlmostEqual(smart_match.similarity('John Smith', 'Sam Chapman'),0.1) self.assertAlmostEqual(smart_match.similarity('John Smith', 'Sam J Chapman'),0.1) self.assertAlmostEqual(smart_match.similarity('John Smith', 'S Chapman'),0.1111111111111111) self.assertAlmostEqual(smart_match.similarity('Web Database Applications', 'Web Database Applications with PHP & MySQL'),1) self.assertAlmostEqual(smart_match.similarity('Web Database Applications', 'Creating Database Web Applications with PHP and ASP'),0.8160) self.assertAlmostEqual(smart_match.similarity('Web Database Applications', 'Building Database Applications on the Web Using PHP3'),0.8800) self.assertAlmostEqual(smart_match.similarity('Web Database Applications', 'Building Web Database Applications with Visual Studio 6'),1) self.assertAlmostEqual(smart_match.similarity('Web Database Applications', 'Web Application Development With PHP'),0.496) self.assertAlmostEqual(smart_match.similarity('Web Database Applications', 'WebRAD: Building Database Applications on the Web with Visual FoxPro and Web Connection'),0.88) self.assertAlmostEqual(smart_match.similarity('Web Database Applications', 'Structural Assessment: The Role of Large and Full-Scale Testing'),0.096) self.assertAlmostEqual(smart_match.similarity('Web Database Applications', 'How to Find a Scholarship Online'),0.08) self.assertAlmostEqual(smart_match.similarity('Web Aplications', 'Web Database Applications with PHP & MySQL'),0.76) self.assertAlmostEqual(smart_match.similarity('Web Aplications', 'Creating Database Web Applications with PHP and ASP'),0.9333333333333333) self.assertAlmostEqual(smart_match.similarity('Web Aplications', 'Building Database Applications on the Web Using PHP3'),0.7333333333333333) self.assertAlmostEqual(smart_match.similarity('Web Aplications', 'Building Web Database Applications with Visual Studio 6'),0.76) self.assertAlmostEqual(smart_match.similarity('Web Aplications', 'Web Application Development With PHP'),0.8666666666666666) self.assertAlmostEqual(smart_match.similarity('Web Aplications', 'WebRAD: Building Database Applications on the Web with Visual FoxPro and Web Connection'),0.7333333333333333) self.assertAlmostEqual(smart_match.similarity('Web Aplications', 'Structural Assessment: The Role of Large and Full-Scale Testing'),0.1333333333333333) self.assertAlmostEqual(smart_match.similarity('Web Aplications', 'How to Find a Scholarship Online'),0.1333333333333333) def test_dissimilarity(self): self.assertAlmostEqual(smart_match.dissimilarity('Web Aplications', 'Web Application Development With PHP'), 0.1333333333333333) self.assertAlmostEqual(smart_match.dissimilarity('', 'eee'), 1) self.assertAlmostEqual(smart_match.dissimilarity('aaa', 'eee'), 1) self.assertAlmostEqual(smart_match.dissimilarity('Healed', 'Help'), 0.5) self.assertAlmostEqual(smart_match.dissimilarity('Healed', 'Sold'), 0.75) self.assertAlmostEqual(smart_match.dissimilarity('Web Database Applications', 'Web Application Development With PHP'),0.504) self.assertAlmostEqual(smart_match.dissimilarity('Web Database Applications', 'WebRAD: Building Database Applications on the Web with Visual FoxPro and Web Connection'),0.12) self.assertAlmostEqual(smart_match.dissimilarity('Web Database Applications', 'Structural Assessment: The Role of Large and Full-Scale Testing'),0.904) def test_score(self): self.assertEqual(smart_match.score('Web Aplications', 'Web Application Development With PHP'), 65) self.assertAlmostEqual(smart_match.score('', 'eee'), -3) self.assertAlmostEqual(smart_match.score('aaa', 'eee'), 0) self.assertAlmostEqual(smart_match.score('Healed', 'Help'), 10) self.assertAlmostEqual(smart_match.score('Healed', 'Sold'), 5) self.assertAlmostEqual(smart_match.score('Web Database Applications', 'Web Application Development With PHP'),62) self.assertAlmostEqual(smart_match.score('Web Database Applications', 'WebRAD: Building Database Applications on the Web with Visual FoxPro and Web Connection'),110) self.assertAlmostEqual(smart_match.score('Web Database Applications', 'Structural Assessment: The Role of Large and Full-Scale Testing'),12) if __name__ == '__main__': unittest.main()
89.319444
183
0.747162
750
6,431
6.316
0.156
0.120329
0.29639
0.353388
0.866582
0.838083
0.680388
0.545493
0.370065
0.199704
0
0.066005
0.13777
6,431
71
184
90.577465
0.788278
0
0
0
0
0
0.347535
0
0
0
0
0
0.846154
1
0.061538
false
0
0.030769
0
0.107692
0
0
0
0
null
0
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
5
b600db2438537515fc330fb4c9d4b6733b83970a
1,714
py
Python
robotsdk/ubtmessage.py
BrightLin/Yanshee_play_wechat_jump_game
f2a7bacd96fd016a6666e36383426000d4c6ab3f
[ "Apache-2.0" ]
null
null
null
robotsdk/ubtmessage.py
BrightLin/Yanshee_play_wechat_jump_game
f2a7bacd96fd016a6666e36383426000d4c6ab3f
[ "Apache-2.0" ]
null
null
null
robotsdk/ubtmessage.py
BrightLin/Yanshee_play_wechat_jump_game
f2a7bacd96fd016a6666e36383426000d4c6ab3f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- import os import time import socket import threading from ctypes import * from ubtinit import * def sendmsg(ADDR,buf): #-------- send udp msg --------------------- udpclientSock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) udpclientSock.sendto(buf, ADDR) udpclientSock.close() def initserver(port): #-------udp server function------------------ socket_fd = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) socket_fd.setsockopt(socket.SOL_SOCKET,socket.SO_REUSEADDR, 1) socket_fd.bind(("",port)) return socket_fd def report(name): #-------report run status function-------- api.ubtReportStatusToApp(name, "start") while True: time.sleep(3) api.ubtReportStatusToApp(name, "run") def reportstatus(name): #-------report run status thread -------- th = threading.Thread(target=report, args=(name,)) th.setDaemon(True) th.start() def commwithrobot(name,addr,fd): #---------communicate wiht robot function--- sendmsg(addr,"start") while True: data,clientaddr = fd.recvfrom(512) print data, "from", clientaddr try: if data == b'stop': stop(name,addr[0]) sendmsg(addr,"stop") break except Exception,e: print "error occur:\t",repr(e) fd.close() os._exit(0) def processmessage(name,addr,server_socket): #-------process mssage thread -------- th = threading.Thread(target=commwithrobot, args=(name,addr,server_socket)) th.setDaemon(True) th.start()
1,714
1,714
0.571179
188
1,714
5.138298
0.441489
0.062112
0.037267
0.041408
0.186335
0.080745
0.080745
0.080745
0
0
0
0.006319
0.261377
1,714
1
1,714
1,714
0.756714
0.994749
0
0.142857
0
0
0.027465
0
0
0
0
0
0
0
null
null
0
0.142857
null
null
0.047619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
1
0
1
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
5
3766756ce033a36b9287ee8b5c6f0003b06a8c12
170
py
Python
matchzoo/utils/__init__.py
MDoid10111/EMNLP2020
97e4da06abc72873a4830cfa53c035a27eb3975b
[ "MIT" ]
42
2020-10-13T19:47:37.000Z
2022-03-26T09:56:46.000Z
matchzoo/utils/__init__.py
MDoid10111/EMNLP2020
97e4da06abc72873a4830cfa53c035a27eb3975b
[ "MIT" ]
3
2020-01-29T16:37:50.000Z
2022-02-04T12:01:51.000Z
matchzoo/utils/__init__.py
MDoid10111/EMNLP2020
97e4da06abc72873a4830cfa53c035a27eb3975b
[ "MIT" ]
5
2020-11-30T14:48:44.000Z
2022-02-19T17:18:21.000Z
from .one_hot import one_hot from .get_file import get_file from .tensor_type import TensorType from .list_recursive_subclasses import list_recursive_concrete_subclasses
34
73
0.882353
26
170
5.384615
0.5
0.085714
0
0
0
0
0
0
0
0
0
0
0.094118
170
4
74
42.5
0.909091
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
376a99220dc5eb51b3a4eae4f4669e3f971f67ba
216
py
Python
topCoder/srms/200s/srm284/div2/truck_loads.py
gauravsingh58/algo
397859a53429e7a585e5f6964ad24146c6261326
[ "WTFPL" ]
1
2020-09-30T19:53:08.000Z
2020-09-30T19:53:08.000Z
topCoder/srms/200s/srm284/div2/truck_loads.py
gauravsingh58/algo
397859a53429e7a585e5f6964ad24146c6261326
[ "WTFPL" ]
null
null
null
topCoder/srms/200s/srm284/div2/truck_loads.py
gauravsingh58/algo
397859a53429e7a585e5f6964ad24146c6261326
[ "WTFPL" ]
1
2020-10-15T09:10:57.000Z
2020-10-15T09:10:57.000Z
class Truckloads: def numTrucks(self, numCrates, loadSize): if numCrates <= loadSize: return 1 return self.numTrucks(numCrates/2, loadSize) + self.numTrucks((numCrates+1)/2, loadSize)
36
96
0.662037
24
216
5.958333
0.458333
0.237762
0.307692
0
0
0
0
0
0
0
0
0.024096
0.231481
216
5
97
43.2
0.837349
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0
0
0.8
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
1
0
0
5
376c836ecb9153d279d3d5818b24fcc7940e7afd
135
py
Python
ch21/FunctionGotchas/FunctionWithoutReturns.py
eroicaleo/LearningPython
297d46eddce6e43ce0c160d2660dff5f5d616800
[ "MIT" ]
1
2020-10-12T13:33:29.000Z
2020-10-12T13:33:29.000Z
ch21/FunctionGotchas/FunctionWithoutReturns.py
eroicaleo/LearningPython
297d46eddce6e43ce0c160d2660dff5f5d616800
[ "MIT" ]
null
null
null
ch21/FunctionGotchas/FunctionWithoutReturns.py
eroicaleo/LearningPython
297d46eddce6e43ce0c160d2660dff5f5d616800
[ "MIT" ]
1
2016-11-09T07:28:45.000Z
2016-11-09T07:28:45.000Z
#!/usr/bin/env python3 def proc(x): print(x) x = proc("testing 1, 2, 3...") print("below is x: ") print(x) print("above is x: ")
13.5
30
0.57037
25
135
3.08
0.6
0.233766
0.181818
0
0
0
0
0
0
0
0
0.036697
0.192593
135
9
31
15
0.669725
0.155556
0
0.333333
0
0
0.371681
0
0
0
0
0
0
1
0.166667
false
0
0
0
0.166667
0.666667
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
5
37a370f1e97dfcded16c8e7f7733ed6e18fda3f1
38
py
Python
src/utilities/__init__.py
UndergroundDetection/MICEMD
5e55f323c6464d93e56554f8b6cca2d0b7724b23
[ "MIT" ]
4
2020-09-17T02:44:20.000Z
2022-03-15T06:30:52.000Z
src/utilities/__init__.py
UndergroundDetection/MicEMD
5e55f323c6464d93e56554f8b6cca2d0b7724b23
[ "MIT" ]
null
null
null
src/utilities/__init__.py
UndergroundDetection/MicEMD
5e55f323c6464d93e56554f8b6cca2d0b7724b23
[ "MIT" ]
2
2020-08-28T02:30:03.000Z
2020-08-28T14:11:47.000Z
"""the package is used for the GUI"""
19
37
0.657895
7
38
3.571429
0.857143
0
0
0
0
0
0
0
0
0
0
0
0.184211
38
1
38
38
0.806452
0.815789
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
37c9df726cadd0c3750f1c9ad8ce683bdd411db7
257
py
Python
atlas/foundations_internal/src/foundations_internal/__init__.py
DeepLearnI/atlas
8aca652d7e647b4e88530b93e265b536de7055ed
[ "Apache-2.0" ]
296
2020-03-16T19:55:00.000Z
2022-01-10T19:46:05.000Z
atlas/foundations_internal/src/foundations_internal/__init__.py
DeepLearnI/atlas
8aca652d7e647b4e88530b93e265b536de7055ed
[ "Apache-2.0" ]
57
2020-03-17T11:15:57.000Z
2021-07-10T14:42:27.000Z
atlas/foundations_internal/src/foundations_internal/__init__.py
DeepLearnI/atlas
8aca652d7e647b4e88530b93e265b536de7055ed
[ "Apache-2.0" ]
38
2020-03-17T21:06:05.000Z
2022-02-08T03:19:34.000Z
def _append_module(): import sys from foundations_internal.global_state import module_manager module_manager.append_module(sys.modules[__name__]) def root(): from pathlib import Path return Path(__file__).parents[0] _append_module()
19.769231
64
0.758755
33
257
5.393939
0.606061
0.202247
0
0
0
0
0
0
0
0
0
0.004651
0.163424
257
12
65
21.416667
0.823256
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
true
0
0.375
0
0.75
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
1
0
1
0
0
5
806d67e1d0ad46732646485c705eb3e85f94687d
2,877
py
Python
manuallists/modeling/train_probabilistic_models.py
tedunderwood/noveltmmeta
0f6ad02db30aa7b5b67ac19eacc2919249fbfae9
[ "MIT" ]
13
2018-09-23T15:39:15.000Z
2022-01-26T00:24:30.000Z
manuallists/modeling/train_probabilistic_models.py
tedunderwood/noveltmmeta
0f6ad02db30aa7b5b67ac19eacc2919249fbfae9
[ "MIT" ]
1
2020-05-02T20:47:07.000Z
2020-05-04T04:02:26.000Z
manuallists/modeling/train_probabilistic_models.py
tedunderwood/noveltmmeta
0f6ad02db30aa7b5b67ac19eacc2919249fbfae9
[ "MIT" ]
7
2018-07-08T21:06:48.000Z
2021-02-18T20:42:01.000Z
#!/usr/bin/env python3 # main_experiment.py # USAGE syntax: # python3 main_experiment.py *command* import sys, os, csv, random import numpy as np import pandas as pd import versatiletrainer2 import metaselector from math import sqrt import matplotlib.pyplot as plt from scipy import stats def train_juvmodel(): sourcefolder = 'samplematrix.csv' sizecap = 700 c_range = [.00001, .0001, .001, .01, 0.1, 1, 10, 100] featurestart = 1003 featureend = 1103 featurestep = 100 modelparams = 'logistic', 12, featurestart, featureend, featurestep, c_range metadatapath = '../union_of_subsets.csv' name = 'juvmodel' vocabpath = 'dummyvariable' tags4positive = {'juvenile'} tags4negative = {'longfiction', 'shortfiction', 'nonfiction', 'poetry', 'drama'} floor = 1800 ceiling = 2011 metadata, masterdata, classvector, classdictionary, orderedIDs, authormatches, vocablist = versatiletrainer2.get_simple_data(sourcefolder, metadatapath, vocabpath, tags4positive, tags4negative, sizecap, excludebelow = floor, excludeabove = ceiling, forbid4positive = {'nothing'}, forbid4negative = {'nothing'}, force_even_distribution = False, negative_strategy = 'random', numfeatures = 7500) matrix, maxaccuracy, metadata, coefficientuples, features4max, best_regularization_coef = versatiletrainer2.tune_a_model(metadata, masterdata, classvector, classdictionary, orderedIDs, authormatches, vocablist, tags4positive, tags4negative, modelparams, name, 'output/' + name + '.csv') def train_nonmodel(): sourcefolder = 'samplematrix.csv' sizecap = 700 c_range = [.00001, .0001, .001, .01, 0.1, 1, 10, 100] featurestart = 1003 featureend = 1103 featurestep = 100 modelparams = 'logistic', 12, featurestart, featureend, featurestep, c_range metadatapath = '../union_of_subsets.csv' name = 'nonmodel' vocabpath = 'dummyvariable' tags4positive = {'notfiction'} tags4negative = {'longfiction', 'shortfiction', 'juvenile', 'poetry', 'drama'} floor = 1800 ceiling = 2011 metadata, masterdata, classvector, classdictionary, orderedIDs, authormatches, vocablist = versatiletrainer2.get_simple_data(sourcefolder, metadatapath, vocabpath, tags4positive, tags4negative, sizecap, excludebelow = floor, excludeabove = ceiling, forbid4positive = {'nothing'}, forbid4negative = {'nothing'}, force_even_distribution = False, negative_strategy = 'random', numfeatures = 7500) matrix, maxaccuracy, metadata, coefficientuples, features4max, best_regularization_coef = versatiletrainer2.tune_a_model(metadata, masterdata, classvector, classdictionary, orderedIDs, authormatches, vocablist, tags4positive, tags4negative, modelparams, name, 'output/' + name + '.csv') ## MAIN command = sys.argv[1] if command == "juv": train_juvmodel() if command == "non": train_nonmodel()
39.410959
397
0.735836
287
2,877
7.264808
0.397213
0.011511
0.055635
0.084412
0.748201
0.748201
0.748201
0.748201
0.748201
0.748201
0
0.051852
0.15537
2,877
72
398
39.958333
0.806173
0.033368
0
0.553191
0
0
0.110991
0.016577
0
0
0
0
0
1
0.042553
false
0
0.170213
0
0.212766
0
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
808809bd15a3ed9767ab8501fd5b3e2ba08e92e0
56
py
Python
EllucianEthosPythonClient/ResourceWrappers/__init__.py
rmetcalf9/EllucainEthosPythonClient
6913322b1e583f655f67399f2baa763833583c27
[ "MIT" ]
1
2021-02-09T22:05:50.000Z
2021-02-09T22:05:50.000Z
EllucianEthosPythonClient/ResourceWrappers/__init__.py
rmetcalf9/EllucainEthosPythonClient
6913322b1e583f655f67399f2baa763833583c27
[ "MIT" ]
1
2020-07-02T11:44:54.000Z
2020-07-02T11:45:38.000Z
EllucianEthosPythonClient/ResourceWrappers/__init__.py
rmetcalf9/EllucainEthosPythonClient
6913322b1e583f655f67399f2baa763833583c27
[ "MIT" ]
1
2021-01-13T21:35:11.000Z
2021-01-13T21:35:11.000Z
from .ResourceWrapperFactory import getResourceWrapper
18.666667
54
0.892857
4
56
12.5
1
0
0
0
0
0
0
0
0
0
0
0
0.089286
56
2
55
28
0.980392
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
80b2f0ce1f564621d44a552d7d05f5e6c861d756
220
py
Python
tests/test_computing_plugin.py
marcojrfurtado/osmosis-on-premise-driver-plus
7a6a0cadbc0345978d45856c6e80d5c9374c4670
[ "Apache-2.0" ]
1
2019-03-15T14:43:23.000Z
2019-03-15T14:43:23.000Z
tests/test_computing_plugin.py
marcojrfurtado/osmosis-on-premise-driver-plus
7a6a0cadbc0345978d45856c6e80d5c9374c4670
[ "Apache-2.0" ]
1
2019-03-20T01:01:02.000Z
2019-03-22T14:58:38.000Z
tests/test_computing_plugin.py
marcojrfurtado/osmosis-on-premise-driver-plus
7a6a0cadbc0345978d45856c6e80d5c9374c4670
[ "Apache-2.0" ]
4
2019-03-12T18:32:17.000Z
2020-09-12T22:25:22.000Z
# Copyright 2018 Ocean Protocol Foundation # SPDX-License-Identifier: Apache-2.0 from osmosis_on_premise_driver.computing_plugin import Plugin def test_computing_plugin(): assert Plugin().type() == 'On premise'
24.444444
61
0.777273
29
220
5.689655
0.793103
0.109091
0
0
0
0
0
0
0
0
0
0.031414
0.131818
220
8
62
27.5
0.832461
0.35
0
0
0
0
0.071942
0
0
0
0
0
0.333333
1
0.333333
true
0
0.333333
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
1
0
0
0
0
5
80b8a78ee56909e306529751674e26fb24098a72
405
py
Python
sdk/python/pulumi_aws/glacier/__init__.py
pulumi-bot/pulumi-aws
756c60135851e015232043c8206567101b8ebd85
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/glacier/__init__.py
pulumi-bot/pulumi-aws
756c60135851e015232043c8206567101b8ebd85
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/glacier/__init__.py
pulumi-bot/pulumi-aws
756c60135851e015232043c8206567101b8ebd85
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: from alias import * from build import * from fleet import * from vault import * from detector import * from ip_set import * from member import * from threat_intel_set import *
28.928571
87
0.733333
64
405
4.59375
0.703125
0.238095
0
0
0
0
0
0
0
0
0
0.003021
0.182716
405
13
88
31.153846
0.885196
0.540741
0
0
1
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
1
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
80c128a18321f8e01dd2d77839f8742399827fa3
143
py
Python
src/orders/admin.py
Saruni0305/oop-work-2
371787017cdd8446220b646c0070c4e53065bff5
[ "MIT" ]
24
2018-11-17T21:02:06.000Z
2021-11-18T23:02:00.000Z
src/orders/admin.py
Saruni0305/oop-work-2
371787017cdd8446220b646c0070c4e53065bff5
[ "MIT" ]
9
2020-06-05T21:43:20.000Z
2021-11-15T17:49:01.000Z
src/orders/admin.py
SaruniM/oop-work-2
371787017cdd8446220b646c0070c4e53065bff5
[ "MIT" ]
15
2019-03-08T20:19:17.000Z
2021-12-29T10:16:14.000Z
from django.contrib import admin from .models import Order, ProductPurchase admin.site.register(Order) admin.site.register(ProductPurchase)
17.875
42
0.825175
18
143
6.555556
0.555556
0.152542
0.288136
0
0
0
0
0
0
0
0
0
0.097902
143
7
43
20.428571
0.914729
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
80ee41793626a486c913bb30271b40ad2d141e2c
366
py
Python
src/BattleEventsListener.py
gle8098/hundred-years-war
c74820337dd4ea6129c0b2aaa012be5666814e76
[ "WTFPL" ]
null
null
null
src/BattleEventsListener.py
gle8098/hundred-years-war
c74820337dd4ea6129c0b2aaa012be5666814e76
[ "WTFPL" ]
null
null
null
src/BattleEventsListener.py
gle8098/hundred-years-war
c74820337dd4ea6129c0b2aaa012be5666814e76
[ "WTFPL" ]
null
null
null
class BattleEventsListener: def on_battle_begins(self): pass def on_battle_ends(self): pass def on_reflected_attack(self, attack_obj): pass def on_unit_damaged(self, attack_obj): pass def on_unit_killed(self, attack_obj): pass def on_squad_killed(self, attack_obj): pass
19.263158
47
0.612022
46
366
4.521739
0.347826
0.144231
0.216346
0.326923
0.495192
0.355769
0.25
0
0
0
0
0
0.325137
366
18
48
20.333333
0.842105
0
0
0.461538
0
0
0
0
0
0
0
0
0
1
0.461538
false
0.461538
0
0
0.538462
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
5
0382661dbe3edf72184962836f50a395a661d814
38
py
Python
tests/components/verisure/__init__.py
domwillcode/home-assistant
f170c80bea70c939c098b5c88320a1c789858958
[ "Apache-2.0" ]
23
2017-11-15T21:03:53.000Z
2021-03-29T21:33:48.000Z
tests/components/verisure/__init__.py
domwillcode/home-assistant
f170c80bea70c939c098b5c88320a1c789858958
[ "Apache-2.0" ]
58
2020-08-03T07:33:02.000Z
2022-03-31T06:02:05.000Z
tests/components/verisure/__init__.py
klauern/home-assistant-core
c18ba6aec0627e6afb6442c678edb5ff2bb17db6
[ "Apache-2.0" ]
14
2018-08-19T16:28:26.000Z
2021-09-02T18:26:53.000Z
"""Tests for Verisure integration."""
19
37
0.710526
4
38
6.75
1
0
0
0
0
0
0
0
0
0
0
0
0.105263
38
1
38
38
0.794118
0.815789
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
03ef02526beaca3b0237f5b0f2e442616f925f16
50
py
Python
detectors/medics/cnn2d/data/__init__.py
zhampel/FakeFinder
2891a8649acc1dabdef07554d6acb346dd23dbae
[ "Apache-2.0" ]
48
2020-06-12T15:46:14.000Z
2022-03-19T16:02:05.000Z
detectors/medics/cnn2d/data/__init__.py
zhampel/FakeFinder
2891a8649acc1dabdef07554d6acb346dd23dbae
[ "Apache-2.0" ]
37
2021-03-11T18:44:08.000Z
2022-03-30T02:47:53.000Z
detectors/medics/cnn2d/data/__init__.py
zhampel/FakeFinder
2891a8649acc1dabdef07554d6acb346dd23dbae
[ "Apache-2.0" ]
17
2020-06-13T12:25:42.000Z
2021-11-22T14:49:26.000Z
from .datasets import * from .utils import cudaify
25
26
0.8
7
50
5.714286
0.714286
0
0
0
0
0
0
0
0
0
0
0
0.14
50
2
26
25
0.930233
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
2075dc4ff207a0d0d8044c423a951793864d95d2
195
py
Python
wurst/transformations/utils.py
kais-siala/wurst
448dd4e9e0bfbde956c2913222222509ff2b14e1
[ "BSD-2-Clause" ]
12
2020-02-04T18:03:17.000Z
2022-03-29T16:29:33.000Z
wurst/transformations/utils.py
kais-siala/wurst
448dd4e9e0bfbde956c2913222222509ff2b14e1
[ "BSD-2-Clause" ]
21
2017-09-13T09:11:56.000Z
2018-11-13T13:43:51.000Z
wurst/transformations/utils.py
kais-siala/wurst
448dd4e9e0bfbde956c2913222222509ff2b14e1
[ "BSD-2-Clause" ]
5
2020-06-03T23:56:32.000Z
2022-02-12T10:27:58.000Z
from copy import deepcopy from ..filesystem import get_uuid def copy_dataset(ds): """Copy dataset and generate new codes.""" cp = deepcopy(ds) cp["code"] = get_uuid() return cp
19.5
46
0.671795
28
195
4.571429
0.607143
0.109375
0
0
0
0
0
0
0
0
0
0
0.215385
195
9
47
21.666667
0.836601
0.184615
0
0
1
0
0.026144
0
0
0
0
0
0
1
0.166667
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
1
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
5
208f2457e581fc60d16ff187308dd55050c4f4a6
167
py
Python
basket/templatetags/basket_tools.py
EllieThurlwell/project-five
60a6b0d5820f797ff271a32ee652d2f4e97a2160
[ "BSD-Source-Code" ]
null
null
null
basket/templatetags/basket_tools.py
EllieThurlwell/project-five
60a6b0d5820f797ff271a32ee652d2f4e97a2160
[ "BSD-Source-Code" ]
14
2022-03-01T14:49:32.000Z
2022-03-01T16:41:07.000Z
basket/templatetags/basket_tools.py
EllieThurlwell/project-five
60a6b0d5820f797ff271a32ee652d2f4e97a2160
[ "BSD-Source-Code" ]
null
null
null
from django import template register = template.Library() @register.filter(name='calc_itemtotal') def calc_itemtotal(price, quantity): return price * quantity
16.7
39
0.766467
20
167
6.3
0.7
0.206349
0
0
0
0
0
0
0
0
0
0
0.137725
167
9
40
18.555556
0.875
0
0
0
0
0
0.083832
0
0
0
0
0
0
1
0.2
false
0
0.2
0.2
0.6
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
5
455af315bcf3dfb09058197912db399c1270133b
46
py
Python
Autokey/CapsKeybinds/ctrl shift/pageup.py
MisaghM/Capslock-Keybindings
00332c7d39cf776c43fe13aa08e1c2969747425d
[ "MIT" ]
1
2021-11-05T19:39:36.000Z
2021-11-05T19:39:36.000Z
Autokey/CapsKeybinds/ctrl shift/pageup.py
MisaghM/Capslock-Keybindings
00332c7d39cf776c43fe13aa08e1c2969747425d
[ "MIT" ]
null
null
null
Autokey/CapsKeybinds/ctrl shift/pageup.py
MisaghM/Capslock-Keybindings
00332c7d39cf776c43fe13aa08e1c2969747425d
[ "MIT" ]
null
null
null
keyboard.send_keys("<ctrl>+<shift>+<page_up>")
46
46
0.717391
7
46
4.428571
1
0
0
0
0
0
0
0
0
0
0
0
0
46
1
46
46
0.673913
0
0
0
0
0
0.510638
0.510638
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
1
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
456be99450b0a3983f7f3f89906b3fcf8fa808fb
39
py
Python
lib/python3.4/site-packages/dal_tagulous/__init__.py
pabulumm/neighbors
59f3f3ae727fe52c7897beaf73d157b02cdcb7a3
[ "BSD-3-Clause" ]
null
null
null
lib/python3.4/site-packages/dal_tagulous/__init__.py
pabulumm/neighbors
59f3f3ae727fe52c7897beaf73d157b02cdcb7a3
[ "BSD-3-Clause" ]
null
null
null
lib/python3.4/site-packages/dal_tagulous/__init__.py
pabulumm/neighbors
59f3f3ae727fe52c7897beaf73d157b02cdcb7a3
[ "BSD-3-Clause" ]
null
null
null
"""django-tagulous support for DAL."""
19.5
38
0.692308
5
39
5.4
1
0
0
0
0
0
0
0
0
0
0
0
0.102564
39
1
39
39
0.771429
0.820513
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
456f0ae62bd0fcf4abf8a9eb162cff39d45177d1
174
py
Python
vi/tests/grid/test_xy.py
pveierland/permve-ntnu-it3105
6a7e4751de47b091c1c9c59560c19a8452698d81
[ "CC0-1.0" ]
null
null
null
vi/tests/grid/test_xy.py
pveierland/permve-ntnu-it3105
6a7e4751de47b091c1c9c59560c19a8452698d81
[ "CC0-1.0" ]
null
null
null
vi/tests/grid/test_xy.py
pveierland/permve-ntnu-it3105
6a7e4751de47b091c1c9c59560c19a8452698d81
[ "CC0-1.0" ]
null
null
null
import vi.grid.xy from nose.tools import assert_equals def test_from_string(): xy = vi.grid.xy.from_string('2,4') assert_equals(xy.x, 2) assert_equals(xy.y, 4)
19.333333
38
0.701149
32
174
3.625
0.5
0.310345
0.137931
0.206897
0
0
0
0
0
0
0
0.027586
0.166667
174
8
39
21.75
0.772414
0
0
0
0
0
0.017241
0
0
0
0
0
0.5
1
0.166667
false
0
0.333333
0
0.5
0
0
0
0
null
1
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
1
0
0
0
0
5
45be47950a3eaf9fce82fa07dd1b4b65269c1041
26
py
Python
__init__.py
ChristopherDaw/chrisdaw.net
0d155aab2ea5d18e747ff5e9776c5e04de606303
[ "MIT" ]
null
null
null
__init__.py
ChristopherDaw/chrisdaw.net
0d155aab2ea5d18e747ff5e9776c5e04de606303
[ "MIT" ]
null
null
null
__init__.py
ChristopherDaw/chrisdaw.net
0d155aab2ea5d18e747ff5e9776c5e04de606303
[ "MIT" ]
null
null
null
from .chrisdaw import app
13
25
0.807692
4
26
5.25
1
0
0
0
0
0
0
0
0
0
0
0
0.153846
26
1
26
26
0.954545
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
45c0756015f1ee09ab7424da7a258bf6dd28be87
138
py
Python
Python Advanced/Workshop/errors.py
a-shiro/SoftUni-Courses
7d0ca6401017a28b5ff7e7fa3e5df8bba8ddbe77
[ "MIT" ]
null
null
null
Python Advanced/Workshop/errors.py
a-shiro/SoftUni-Courses
7d0ca6401017a28b5ff7e7fa3e5df8bba8ddbe77
[ "MIT" ]
null
null
null
Python Advanced/Workshop/errors.py
a-shiro/SoftUni-Courses
7d0ca6401017a28b5ff7e7fa3e5df8bba8ddbe77
[ "MIT" ]
null
null
null
class InvalidSignError(Exception): pass class PositionTakenError(Exception): pass class ColumnIsFullError(Exception): pass
13.8
36
0.76087
12
138
8.75
0.5
0.371429
0.342857
0
0
0
0
0
0
0
0
0
0.173913
138
10
37
13.8
0.921053
0
0
0.5
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
1
0
0
null
1
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
1
0
0
0
0
0
5
45d489804dc05ce72e4ee4b5b2bff3038f41b990
94
py
Python
catalyst/rl/utils/criterion/__init__.py
andrey-avdeev/catalyst
fd17aaba7775c99b7e2b1ce86e60aa8f2379acc3
[ "Apache-2.0" ]
46
2020-03-27T20:12:32.000Z
2021-11-21T19:08:51.000Z
catalyst/rl/utils/criterion/__init__.py
andrey-avdeev/catalyst
fd17aaba7775c99b7e2b1ce86e60aa8f2379acc3
[ "Apache-2.0" ]
2
2020-04-06T10:43:04.000Z
2020-07-01T18:26:10.000Z
catalyst/rl/utils/criterion/__init__.py
andrey-avdeev/catalyst
fd17aaba7775c99b7e2b1ce86e60aa8f2379acc3
[ "Apache-2.0" ]
5
2020-04-17T14:09:53.000Z
2021-05-10T08:58:29.000Z
# flake8: noqa from .categorical import categorical_loss from .quantile import quantile_loss
18.8
41
0.829787
12
94
6.333333
0.583333
0
0
0
0
0
0
0
0
0
0
0.012195
0.12766
94
4
42
23.5
0.914634
0.12766
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
45dd4eb92a2d79259e15d62a9cca19f7e0976b15
52
py
Python
redbox/request/classes/__init__.py
cytopia/prometheus-redbox_exporter
cfef30d9b705cc0176b74c7a527709a27937ce25
[ "MIT" ]
3
2021-02-27T13:40:32.000Z
2021-03-18T18:44:07.000Z
redbox/request/classes/__init__.py
cytopia/prometheus-redbox_exporter
cfef30d9b705cc0176b74c7a527709a27937ce25
[ "MIT" ]
null
null
null
redbox/request/classes/__init__.py
cytopia/prometheus-redbox_exporter
cfef30d9b705cc0176b74c7a527709a27937ce25
[ "MIT" ]
null
null
null
"""Module Imports.""" from .request import Request
13
28
0.711538
6
52
6.166667
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.134615
52
3
29
17.333333
0.822222
0.288462
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
afdfd7d3041f84622de6372b6ea033b922f2f21b
150
py
Python
src/frontend/hello/__init__.py
arnulfojr/money-manager
8600f1ff258a89f5742ffad4d5f589fd1def5259
[ "MIT" ]
1
2020-08-18T08:03:44.000Z
2020-08-18T08:03:44.000Z
src/frontend/hello/__init__.py
arnulfojr/money-manager
8600f1ff258a89f5742ffad4d5f589fd1def5259
[ "MIT" ]
null
null
null
src/frontend/hello/__init__.py
arnulfojr/money-manager
8600f1ff258a89f5742ffad4d5f589fd1def5259
[ "MIT" ]
null
null
null
from flask import Blueprint blueprint = Blueprint('frontend', __name__, url_prefix='/hello') # import controllers from controllers import hello
13.636364
64
0.773333
17
150
6.529412
0.588235
0.324324
0
0
0
0
0
0
0
0
0
0
0.146667
150
10
65
15
0.867188
0.12
0
0
0
0
0.109375
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0.666667
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
1
0
5
b32b634abe5eb4f9e6fe386c0a761625165036f5
237
py
Python
src/fecc_instructions/SETE.py
castor91/fecc
bc46059c0d7a428d15b95050b70dec374b4bea28
[ "MIT" ]
1
2018-02-04T14:48:15.000Z
2018-02-04T14:48:15.000Z
src/fecc_instructions/SETE.py
castor91/fecc
bc46059c0d7a428d15b95050b70dec374b4bea28
[ "MIT" ]
null
null
null
src/fecc_instructions/SETE.py
castor91/fecc
bc46059c0d7a428d15b95050b70dec374b4bea28
[ "MIT" ]
null
null
null
from AbstractGenericInstruction import AbstractGenericInstruction as AGI class SETE(AGI): def __init__(self, value): super(SETE, self).__init__(value) def generate(self): return 'sete %{}'.format(self._value)
21.545455
72
0.700422
26
237
6.038462
0.576923
0.11465
0
0
0
0
0
0
0
0
0
0
0.194093
237
10
73
23.7
0.82199
0
0
0
1
0
0.033755
0
0
0
0
0
0
1
0.333333
false
0
0.166667
0.166667
0.833333
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
1
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
5
b32e4bfd0ccecf987fbcfcb4c6a6f4bdfae77858
40
py
Python
search_sites.py
sunlightlabs/elenas_inbox
dee64ef0c438fad38f02646bfd252adcff042cd2
[ "BSD-3-Clause" ]
5
2015-10-30T21:40:05.000Z
2021-03-02T02:09:47.000Z
search_sites.py
sunlightlabs/elenas_inbox
dee64ef0c438fad38f02646bfd252adcff042cd2
[ "BSD-3-Clause" ]
null
null
null
search_sites.py
sunlightlabs/elenas_inbox
dee64ef0c438fad38f02646bfd252adcff042cd2
[ "BSD-3-Clause" ]
1
2019-03-19T17:32:58.000Z
2019-03-19T17:32:58.000Z
import haystack haystack.autodiscover()
20
23
0.85
4
40
8.5
0.75
0
0
0
0
0
0
0
0
0
0
0
0.075
40
2
23
20
0.918919
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
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
1
0
1
0
0
0
0
5
2faf554fdd446b1955b99d1ea2e5923adc33334f
155
py
Python
normalizer/models.py
pitpalac36/Fraud-Detector
463a737da9b2c11a5c7bd11f5a5ecbc5586d80e7
[ "MIT" ]
null
null
null
normalizer/models.py
pitpalac36/Fraud-Detector
463a737da9b2c11a5c7bd11f5a5ecbc5586d80e7
[ "MIT" ]
null
null
null
normalizer/models.py
pitpalac36/Fraud-Detector
463a737da9b2c11a5c7bd11f5a5ecbc5586d80e7
[ "MIT" ]
null
null
null
from dataclasses import dataclass from dataclasses_json import dataclass_json @dataclass_json @dataclass class NormDTO: tran_id: str data: list
14.090909
43
0.793548
20
155
5.95
0.6
0.252101
0.369748
0
0
0
0
0
0
0
0
0
0.174194
155
10
44
15.5
0.929688
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.285714
0
0.714286
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
1
0
0
5
2fcc48f0b97f2592bb74b1d24ba713a5e2857b98
83
py
Python
hello-world.py
Atlasshrugs00/astr-119
be30734d2580acd947e5b2e22e3039d0d42419f3
[ "MIT" ]
null
null
null
hello-world.py
Atlasshrugs00/astr-119
be30734d2580acd947e5b2e22e3039d0d42419f3
[ "MIT" ]
8
2021-09-24T04:02:52.000Z
2021-12-09T05:45:22.000Z
hello-world.py
Atlasshrugs00/astr-119
be30734d2580acd947e5b2e22e3039d0d42419f3
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 #this progam will write Hello World! print("Hello World!")
16.6
36
0.722892
13
83
4.615385
0.846154
0.333333
0
0
0
0
0
0
0
0
0
0.013889
0.13253
83
5
37
16.6
0.819444
0.674699
0
0
0
0
0.461538
0
0
0
0
0
0
1
0
true
0
0
0
0
1
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
1
0
5
2feee93606d88b2141976ca4bafd7a6ce29b0204
1,370
py
Python
homework_04/11_liliya_lyubenova/test_problem.py
valentinvarbanov/software_engineering_2021
33ece7d1e4889840621626e30f975d6cfd370b38
[ "MIT" ]
7
2021-10-05T14:54:55.000Z
2022-02-16T06:07:12.000Z
homework_04/11_liliya_lyubenova/test_problem.py
valentinvarbanov/software_engineering_2021
33ece7d1e4889840621626e30f975d6cfd370b38
[ "MIT" ]
2
2021-12-04T10:49:46.000Z
2022-02-28T06:09:06.000Z
homework_04/11_liliya_lyubenova/test_problem.py
valentinvarbanov/software_engineering_2021
33ece7d1e4889840621626e30f975d6cfd370b38
[ "MIT" ]
null
null
null
""" Tests for problem.py """ from problem import Point, Circle, RelativePosition def test_no_common_points(): """ First test """ circle_1 = Circle(Point(1.0, 4.0), 3.2) circle_2 = Circle(Point(8.0, 4.0), 3.3) assert circle_1.find_relative_position(circle_2) == RelativePosition.NO_COMMON_POINTS, True def test_touching(): """ Second test """ circle_1 = Circle(Point(1.0, 4.0), 3.2) circle_2 = Circle(Point(8.0, 4.0), 3.8) assert circle_1.find_relative_position(circle_2) == RelativePosition.TOUCHING, True def test_intersecting(): """ Third test """ circle_1 = Circle(Point(1.0, 4.0), 5.2) circle_2 = Circle(Point(8.0, 4.0), 3.8) assert circle_1.find_relative_position(circle_2) == RelativePosition.INTERSECTING, True def test_same_touching(): """ Fourth test """ circle_1 = Circle(Point(1.0, 4.0), 3.2) circle_2 = Circle(Point(1.0, 4.0), 4.0) assert circle_1.find_relative_position(circle_2) == RelativePosition.SAME, True circle_1 = Circle(Point(1.0, 4.0), 3.2) circle_2 = Circle(Point(4.0, 4.0), 7.8) assert circle_1.find_relative_position(circle_2) == RelativePosition.SAME, True circle_1 = Circle(Point(1.0, 4.0), 4.8) circle_2 = Circle(Point(4.0, 4.0), 7.8) assert circle_1.find_relative_position(circle_2) == RelativePosition.SAME, True
30.444444
95
0.665693
221
1,370
3.923077
0.153846
0.034602
0.044983
0.10496
0.761246
0.761246
0.761246
0.754325
0.754325
0.659746
0
0.085791
0.183212
1,370
44
96
31.136364
0.689008
0.048175
0
0.478261
0
0
0
0
0
0
0
0
0.26087
1
0.173913
false
0
0.043478
0
0.217391
0
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
ff4138cdbc65770b1e7e0fd4f95810d2cea5d95b
126
py
Python
blog/admin.py
kpi-web-guild/django-girls-blog-igorkruglyak
97bc1df281377b81f70098ae2bb830d2d8ae7447
[ "MIT" ]
null
null
null
blog/admin.py
kpi-web-guild/django-girls-blog-igorkruglyak
97bc1df281377b81f70098ae2bb830d2d8ae7447
[ "MIT" ]
33
2019-05-20T01:06:16.000Z
2021-01-09T18:16:33.000Z
blog/admin.py
kpi-web-guild/django-girls-blog-igorkruglyak
97bc1df281377b81f70098ae2bb830d2d8ae7447
[ "MIT" ]
2
2019-08-02T19:44:14.000Z
2021-01-08T21:28:04.000Z
"""Configuration for admin Blog app.""" from django.contrib import admin from .models import Post admin.site.register(Post)
18
39
0.769841
18
126
5.388889
0.722222
0
0
0
0
0
0
0
0
0
0
0
0.126984
126
6
40
21
0.881818
0.261905
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
ff522b2b021c76c6467dcb0b8e5e16e7c293f110
40
py
Python
main.py
Ryan-Johnson-1315/nba-stats
7e1d4639c3b2eaba087ebaa4740325721a985102
[ "MIT" ]
null
null
null
main.py
Ryan-Johnson-1315/nba-stats
7e1d4639c3b2eaba087ebaa4740325721a985102
[ "MIT" ]
null
null
null
main.py
Ryan-Johnson-1315/nba-stats
7e1d4639c3b2eaba087ebaa4740325721a985102
[ "MIT" ]
null
null
null
from Line import * LineCmd().cmdloop()
10
19
0.7
5
40
5.6
1
0
0
0
0
0
0
0
0
0
0
0
0.15
40
3
20
13.333333
0.823529
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
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
1
0
1
0
0
0
0
5