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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1a539429e54b69d7d5936b2637953a4045729a27
| 61
|
py
|
Python
|
catkin_ws/devel/lib/python2.7/dist-packages/pr2_gazebo_plugins/msg/__init__.py
|
Sinchiguano/Robotic-Arm-Imitation-by-Human-Gesture
|
28a6a855581881d3c9197619a318a5094294e5b6
|
[
"BSD-2-Clause"
] | null | null | null |
catkin_ws/devel/lib/python2.7/dist-packages/pr2_gazebo_plugins/msg/__init__.py
|
Sinchiguano/Robotic-Arm-Imitation-by-Human-Gesture
|
28a6a855581881d3c9197619a318a5094294e5b6
|
[
"BSD-2-Clause"
] | null | null | null |
catkin_ws/devel/lib/python2.7/dist-packages/pr2_gazebo_plugins/msg/__init__.py
|
Sinchiguano/Robotic-Arm-Imitation-by-Human-Gesture
|
28a6a855581881d3c9197619a318a5094294e5b6
|
[
"BSD-2-Clause"
] | null | null | null |
from ._ModelJointsState import *
from ._PlugCommand import *
| 20.333333
| 32
| 0.803279
| 6
| 61
| 7.833333
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.131148
| 61
| 2
| 33
| 30.5
| 0.886792
| 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
|
1a5a8ab21d287d7d763ab7108f93e48bc1c7d53e
| 237
|
py
|
Python
|
Validation/HGCalValidation/python/hgcalDigiValidationEE_cfi.py
|
ckamtsikis/cmssw
|
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
|
[
"Apache-2.0"
] | 852
|
2015-01-11T21:03:51.000Z
|
2022-03-25T21:14:00.000Z
|
Validation/HGCalValidation/python/hgcalDigiValidationEE_cfi.py
|
ckamtsikis/cmssw
|
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
|
[
"Apache-2.0"
] | 30,371
|
2015-01-02T00:14:40.000Z
|
2022-03-31T23:26:05.000Z
|
Validation/HGCalValidation/python/hgcalDigiValidationEE_cfi.py
|
ckamtsikis/cmssw
|
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
|
[
"Apache-2.0"
] | 3,240
|
2015-01-02T05:53:18.000Z
|
2022-03-31T17:24:21.000Z
|
import FWCore.ParameterSet.Config as cms
from Validation.HGCalValidation.hgcalDigiValidationEEDefault_cfi import hgcalDigiValidationEEDefault as _hgcalDigiValidationEEDefault
hgcalDigiValidationEE = _hgcalDigiValidationEEDefault.clone()
| 59.25
| 133
| 0.911392
| 18
| 237
| 11.833333
| 0.722222
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.054852
| 237
| 3
| 134
| 79
| 0.950893
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.666667
| 0
| 0.666667
| 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
|
1a8873be93de083b38229d99d7ecff8709e3ba89
| 228
|
py
|
Python
|
todo/celery.py
|
DipeshYogi/MyTodoList_backend
|
0b4103e791857b7e95981bd8c3d580b28b80e9eb
|
[
"MIT"
] | null | null | null |
todo/celery.py
|
DipeshYogi/MyTodoList_backend
|
0b4103e791857b7e95981bd8c3d580b28b80e9eb
|
[
"MIT"
] | 1
|
2021-03-22T19:07:43.000Z
|
2021-03-22T19:07:43.000Z
|
todo/celery.py
|
DipeshYogi/MyTodoList_backend
|
0b4103e791857b7e95981bd8c3d580b28b80e9eb
|
[
"MIT"
] | null | null | null |
# import os
# from celery import Celery
# os.environ.setdefault("DJANGO_SETTINGS_MODULE", "todo.settings")
# app = Celery("todo")
# app.config_from_object("django.conf:settings", namespace="CELERY")
# app.autodiscover_tasks()
| 25.333333
| 68
| 0.75
| 29
| 228
| 5.724138
| 0.586207
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.096491
| 228
| 8
| 69
| 28.5
| 0.805825
| 0.934211
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0.125
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
1a98a9cfc6c4bae0cb2914f737a3e593898e57fa
| 25
|
py
|
Python
|
python/testData/quickFixes/PyRenameElementQuickFixTest/renameAwaitClassInPy36_after.py
|
fduminy/intellij-community
|
fe13dc9ddb7f0f65397325ded25ecb239675eb59
|
[
"Apache-2.0"
] | 2
|
2018-12-29T09:53:39.000Z
|
2018-12-29T09:53:42.000Z
|
python/testData/quickFixes/PyRenameElementQuickFixTest/renameAwaitClassInPy36_after.py
|
tnorbye/intellij-community
|
f01cf262fc196bf4dbb99e20cd937dee3705a7b6
|
[
"Apache-2.0"
] | null | null | null |
python/testData/quickFixes/PyRenameElementQuickFixTest/renameAwaitClassInPy36_after.py
|
tnorbye/intellij-community
|
f01cf262fc196bf4dbb99e20cd937dee3705a7b6
|
[
"Apache-2.0"
] | 1
|
2022-01-02T19:58:08.000Z
|
2022-01-02T19:58:08.000Z
|
class a(object):
pass
| 12.5
| 16
| 0.64
| 4
| 25
| 4
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.24
| 25
| 2
| 17
| 12.5
| 0.842105
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.5
| 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
| 0
| 1
| 1
| 0
| 0
| 0
| 0
|
0
| 5
|
46ca95d64d1d3dfdd0fc39e3125e2c2bae4e38e1
| 174
|
py
|
Python
|
thinglang/lexer/tokens/inline_comment.py
|
ofples/thinglang
|
b1391e8fb42d518fc0018400eecb608d18da915a
|
[
"MIT"
] | 5
|
2017-11-07T21:32:22.000Z
|
2019-06-30T18:35:17.000Z
|
thinglang/lexer/tokens/inline_comment.py
|
ofples/thinglang
|
b1391e8fb42d518fc0018400eecb608d18da915a
|
[
"MIT"
] | null | null | null |
thinglang/lexer/tokens/inline_comment.py
|
ofples/thinglang
|
b1391e8fb42d518fc0018400eecb608d18da915a
|
[
"MIT"
] | 1
|
2020-03-25T18:14:08.000Z
|
2020-03-25T18:14:08.000Z
|
from thinglang.lexer.lexical_token import LexicalToken
class LexicalInlineComment(LexicalToken):
"""
Signifies the start of an inline comment, given by "#".
"""
| 24.857143
| 59
| 0.729885
| 19
| 174
| 6.631579
| 0.947368
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.178161
| 174
| 7
| 60
| 24.857143
| 0.881119
| 0.316092
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
46f2ad78f8f1eabac0008a988ba2c1dceadccba2
| 320
|
py
|
Python
|
happy_couple/__init__.py
|
streanger/happy_couple
|
16cc621e48f524b44009a47e1e40b18ca7017ebf
|
[
"MIT"
] | null | null | null |
happy_couple/__init__.py
|
streanger/happy_couple
|
16cc621e48f524b44009a47e1e40b18ca7017ebf
|
[
"MIT"
] | null | null | null |
happy_couple/__init__.py
|
streanger/happy_couple
|
16cc621e48f524b44009a47e1e40b18ca7017ebf
|
[
"MIT"
] | null | null | null |
from .happy_couple import script_path, static_file_path, time_template, show_image, create_blank_image, draw_tv_background_and_backlight, absoluteFilePaths, help_content, smooth_image, cat_images, create_new_dir, path_last_element, generate_images, create_image, simple_resize_img, paste_image, check_position, animation
| 320
| 320
| 0.88125
| 46
| 320
| 5.586957
| 0.804348
| 0.093385
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.0625
| 320
| 1
| 320
| 320
| 0.856667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
2052eb085528803dad0a8390e8d50df799ff9b21
| 984
|
py
|
Python
|
format_test_vectors.py
|
arycf/pat-goCopy
|
4e990eb10523223aaec9f827e2080e1db1f7cd88
|
[
"BSD-3-Clause"
] | null | null | null |
format_test_vectors.py
|
arycf/pat-goCopy
|
4e990eb10523223aaec9f827e2080e1db1f7cd88
|
[
"BSD-3-Clause"
] | null | null | null |
format_test_vectors.py
|
arycf/pat-goCopy
|
4e990eb10523223aaec9f827e2080e1db1f7cd88
|
[
"BSD-3-Clause"
] | null | null | null |
import sys
import json
import textwrap
ordered_keys = [
"skS", "pkS", "skB", "pkB", "pkR", "message", "signature",
]
def wrap_line(value):
return textwrap.fill(value, width=72)
if "ed25519-blinding" in sys.argv[1]:
with open(sys.argv[1], "r") as fh:
data = json.load(fh)
formatted = "~~~\n"
for entry in data:
for key in ordered_keys:
if key in entry:
formatted = formatted + wrap_line(key + ": " + str(entry[key])) + "\n"
formatted = formatted + "\n"
print(formatted + "~~~\n")
if "ecdsa-blinding" in sys.argv[1]:
with open(sys.argv[1], "r") as fh:
data = json.load(fh)
formatted = "~~~\n"
for entry in data:
for key in ordered_keys:
if key in entry:
formatted = formatted + wrap_line(key + ": " + str(entry[key])) + "\n"
formatted = formatted + "\n"
print(formatted + "~~~\n")
| 28.941176
| 90
| 0.517276
| 123
| 984
| 4.089431
| 0.341463
| 0.119284
| 0.063618
| 0.067594
| 0.727634
| 0.727634
| 0.727634
| 0.727634
| 0.727634
| 0.727634
| 0
| 0.016591
| 0.32622
| 984
| 33
| 91
| 29.818182
| 0.742081
| 0
| 0
| 0.642857
| 0
| 0
| 0.096643
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.035714
| false
| 0
| 0.107143
| 0.035714
| 0.178571
| 0.071429
| 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
|
2054ac8da8e1ac2977c853aabc34b7921c91ef03
| 183
|
py
|
Python
|
file_worker.py
|
Soebb/voiceChanger
|
ce45d7d76f26c59a30d9dc07fc7827bdaba69f1b
|
[
"Apache-2.0"
] | 1
|
2021-07-23T21:26:19.000Z
|
2021-07-23T21:26:19.000Z
|
file_worker.py
|
Soebb/voiceChanger
|
ce45d7d76f26c59a30d9dc07fc7827bdaba69f1b
|
[
"Apache-2.0"
] | null | null | null |
file_worker.py
|
Soebb/voiceChanger
|
ce45d7d76f26c59a30d9dc07fc7827bdaba69f1b
|
[
"Apache-2.0"
] | null | null | null |
import os
def check_exist_directory():
if os.listdir().count('voice'):
return True
return False
def create_directory_with_save_voice():
os.makedirs('voice/oga/')
| 20.333333
| 39
| 0.693989
| 25
| 183
| 4.84
| 0.72
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.185792
| 183
| 9
| 40
| 20.333333
| 0.812081
| 0
| 0
| 0
| 0
| 0
| 0.081522
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.285714
| true
| 0
| 0.142857
| 0
| 0.714286
| 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
| 0
| 0
| 1
| 0
|
0
| 5
|
649e69bb63fa649890676c6739c4e849eac36e5b
| 195
|
py
|
Python
|
src/kitman/core/sdk/__init__.py
|
madskronborg/saas-toolkit
|
d3dfb084a75d0ca4eba8f684d6d11cc6b254d8b9
|
[
"MIT"
] | null | null | null |
src/kitman/core/sdk/__init__.py
|
madskronborg/saas-toolkit
|
d3dfb084a75d0ca4eba8f684d6d11cc6b254d8b9
|
[
"MIT"
] | null | null | null |
src/kitman/core/sdk/__init__.py
|
madskronborg/saas-toolkit
|
d3dfb084a75d0ca4eba8f684d6d11cc6b254d8b9
|
[
"MIT"
] | null | null | null |
from .request import Request, QueryParams
from .response import Response
from .client import BaseClient, AsyncClientExtension, AsyncHTTPClient
from .decorators import action
from . import errors
| 32.5
| 69
| 0.841026
| 22
| 195
| 7.454545
| 0.545455
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.117949
| 195
| 5
| 70
| 39
| 0.953488
| 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
|
64aea13c7826d02f1c67103ee39b5f51f7537ea3
| 142
|
py
|
Python
|
python-day2/test_sample.py
|
sunilvijendra/python-flask-course
|
be49492098df05f28091c71e7eeecb706409a967
|
[
"MIT"
] | null | null | null |
python-day2/test_sample.py
|
sunilvijendra/python-flask-course
|
be49492098df05f28091c71e7eeecb706409a967
|
[
"MIT"
] | null | null | null |
python-day2/test_sample.py
|
sunilvijendra/python-flask-course
|
be49492098df05f28091c71e7eeecb706409a967
|
[
"MIT"
] | 1
|
2018-07-16T07:01:15.000Z
|
2018-07-16T07:01:15.000Z
|
# content of test_sample.py
def func(x):
return x + 2
def test_answer():
assert func(3) == 5
def test_2():
assert func(10) == 12
| 15.777778
| 27
| 0.612676
| 25
| 142
| 3.36
| 0.64
| 0.166667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.074766
| 0.246479
| 142
| 9
| 28
| 15.777778
| 0.71028
| 0.176056
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.333333
| 1
| 0.5
| false
| 0
| 0
| 0.166667
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 5
|
64ba7cbb29fc15932453710aecbe5c4105add237
| 235
|
py
|
Python
|
pyopenvpn/__init__.py
|
sdwannfv/pyopenvpn
|
b7e4a9494abaf11bc4404b9c225683e7f55c7600
|
[
"MIT"
] | null | null | null |
pyopenvpn/__init__.py
|
sdwannfv/pyopenvpn
|
b7e4a9494abaf11bc4404b9c225683e7f55c7600
|
[
"MIT"
] | null | null | null |
pyopenvpn/__init__.py
|
sdwannfv/pyopenvpn
|
b7e4a9494abaf11bc4404b9c225683e7f55c7600
|
[
"MIT"
] | null | null | null |
from .client import Client
from .settings import Settings
from .control_channel import ControlChannel, AuthFailed
from .data_channel import DataChannel
from .common import Channel, InvalidPacketError, AuthFailed, ProtocolLogicError
| 26.111111
| 79
| 0.846809
| 26
| 235
| 7.576923
| 0.5
| 0.13198
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.114894
| 235
| 8
| 80
| 29.375
| 0.947115
| 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
|
b3979db2323b83334f06edd6d7ca75294e949e9b
| 66
|
py
|
Python
|
viboon555/__init__.py
|
MyViboon/ViboonProfile
|
1c2273d4a251e982dae562744c08cbfa5963d556
|
[
"MIT"
] | null | null | null |
viboon555/__init__.py
|
MyViboon/ViboonProfile
|
1c2273d4a251e982dae562744c08cbfa5963d556
|
[
"MIT"
] | null | null | null |
viboon555/__init__.py
|
MyViboon/ViboonProfile
|
1c2273d4a251e982dae562744c08cbfa5963d556
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
from viboon555.Myprofile import Profile
| 22
| 40
| 0.681818
| 8
| 66
| 5.625
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.072727
| 0.166667
| 66
| 2
| 41
| 33
| 0.745455
| 0.318182
| 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
|
b3e4b9aba31c9f0852b458333f3a3d187c971e03
| 270
|
py
|
Python
|
reg_bench/maps/__init__.py
|
Ohjeah/regression-benchmarks
|
d4700c1a029566303c95e0cbd3bcc54b1385ff1f
|
[
"MIT"
] | null | null | null |
reg_bench/maps/__init__.py
|
Ohjeah/regression-benchmarks
|
d4700c1a029566303c95e0cbd3bcc54b1385ff1f
|
[
"MIT"
] | 1
|
2018-12-07T13:08:49.000Z
|
2019-01-17T13:14:04.000Z
|
reg_bench/maps/__init__.py
|
Ohjeah/regression-benchmarks
|
d4700c1a029566303c95e0cbd3bcc54b1385ff1f
|
[
"MIT"
] | null | null | null |
import numpy as np
from toolz.itertoolz import iterate
from toolz.itertoolz import take
from .maps import all_maps
def generate_map_data(problem, x0, t, params):
f = problem(params)
x = take(iterate(f, x0), t + 1)
x = np.array(x)
return x[:-1], x[1:]
| 20.769231
| 46
| 0.674074
| 46
| 270
| 3.891304
| 0.521739
| 0.100559
| 0.201117
| 0.268156
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.023364
| 0.207407
| 270
| 12
| 47
| 22.5
| 0.813084
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.111111
| false
| 0
| 0.444444
| 0
| 0.666667
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
b3ef7ee50a65199e017b893d428b7c200e850e59
| 130
|
py
|
Python
|
python-sdk/nuscenes/prediction/input_representation/static_layers.py
|
tanjiangyuan/Classification_nuScence
|
b94c4b0b6257fc1c048a676e3fd9e71183108d53
|
[
"Apache-2.0"
] | null | null | null |
python-sdk/nuscenes/prediction/input_representation/static_layers.py
|
tanjiangyuan/Classification_nuScence
|
b94c4b0b6257fc1c048a676e3fd9e71183108d53
|
[
"Apache-2.0"
] | null | null | null |
python-sdk/nuscenes/prediction/input_representation/static_layers.py
|
tanjiangyuan/Classification_nuScence
|
b94c4b0b6257fc1c048a676e3fd9e71183108d53
|
[
"Apache-2.0"
] | null | null | null |
version https://git-lfs.github.com/spec/v1
oid sha256:a0f182a08b6ed5963e991bb415f5a1d486c5b3d4e0b4befdc378b4ea3b185fe2
size 11900
| 32.5
| 75
| 0.884615
| 13
| 130
| 8.846154
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.362903
| 0.046154
| 130
| 3
| 76
| 43.333333
| 0.564516
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
377e88dda5872975a071144f90d19b24eb9db928
| 8,445
|
py
|
Python
|
chowmein/tests/test_label_ranker.py
|
xiaohan2012/topic-model-labeler
|
920cd2b73639c2e8be4b0d176974c37c78092523
|
[
"MIT"
] | 56
|
2017-02-20T15:23:14.000Z
|
2021-09-23T18:24:58.000Z
|
chowmein/tests/test_label_ranker.py
|
xiaohan2012/topic-model-labeler
|
920cd2b73639c2e8be4b0d176974c37c78092523
|
[
"MIT"
] | 2
|
2021-08-31T10:28:54.000Z
|
2021-08-31T10:33:01.000Z
|
chowmein/tests/test_label_ranker.py
|
xiaohan2012/topic-model-labeler
|
920cd2b73639c2e8be4b0d176974c37c78092523
|
[
"MIT"
] | 11
|
2017-10-16T09:08:31.000Z
|
2021-11-15T19:17:22.000Z
|
import numpy as np
from nose.tools import assert_equal
from numpy.testing import (assert_array_almost_equal,
assert_array_equal,
assert_almost_equal)
from chowmein.label_ranker import LabelRanker
ranker = LabelRanker()
index2word = ('topic', 'modeling', 'machine', 'learning')
index2label = ('topic modeling', 'machine learning', 'business management')
topic_models = np.asarray([[0.4, 0.5, 0.1, 0.1],
[0.05, 0.05, 0.4, 0.5],
[0.1, 0.1, 0.1, 0.1]])
pmi_w2l = np.asarray([[1.0, 0.2, 0],
[0.8, 0.3, 0.1],
[-0.2, 0.8, 0],
[0.0, 0.5, 0.1]])
label_models = np.asarray([[0.4, 0.4, 0.1, 0.1],
[0.1, 0.2, 0.3, 0.4],
[0.25, 0.25, 0.25, 0.25]])
def test_relevance_score():
label_relevance_score = ranker.label_relevance_score(topic_models,
pmi_w2l)
assert_array_almost_equal(label_relevance_score,
np.asarray([[0.78, 0.36, 0.06],
[0.01, 0.595, 0.055],
[0.16, 0.18, 0.02]]))
def test_mmr_scores():
label_scores = ranker.label_relevance_score(topic_models,
pmi_w2l)
actual_indices, actual_scores\
= ranker.label_mmr_score(0, [0], # with 1 label
label_scores,
label_models)
assert_array_equal(actual_indices, np.asarray([1, 2]))
alpha = ranker._alpha
assert_array_almost_equal(actual_scores,
np.asarray(
[alpha*0.36 - (1-alpha)*0.606842558,
alpha*0.06 - (1-alpha)*0.223143551]
))
def test_mmr_scores_no_chosen_labels():
label_scores = ranker.label_relevance_score(topic_models,
pmi_w2l)
actual_indices, actual_scores\
= ranker.label_mmr_score(0, [], # with 0 label
label_scores,
label_models)
assert_array_equal(actual_indices, np.asarray([0, 1, 2]))
assert_array_almost_equal(actual_scores,
np.asarray(
[0.78, 0.36, 0.06]
))
def test_mmr_scores_max_part():
# test the `max` part
label_scores = ranker.label_relevance_score(topic_models,
pmi_w2l)
actual_indices, actual_scores\
= ranker.label_mmr_score(0, [0, 1], # with 2 labels
label_scores,
label_models)
assert_array_equal(actual_indices, np.asarray([2]))
alpha = ranker._alpha
assert_array_almost_equal(actual_scores,
np.asarray(
[alpha*0.06 - (1-alpha)*0.223143551]
))
def test_discriminative_scores():
label_discriminative_score = ranker.label_discriminative_score(
ranker.label_relevance_score(topic_models, pmi_w2l),
topic_models,
pmi_w2l)
assert_array_almost_equal(label_discriminative_score,
np.asarray([[0.085, 0.3875, 0.0375],
[0.47, 0.27, 0.04],
[0.395, 0.4775, 0.0575]]))
def test_combined_label_score():
label_score = ranker.combined_label_score(topic_models,
pmi_w2l,
use_discrimination=True,
mu=0.7)
rel_score = np.asarray([[0.78, 0.36, 0.06],
[0.01, 0.595, 0.055],
[0.16, 0.18, 0.02]])
dis_score = np.asarray([[0.085, 0.3875, 0.0375],
[0.47, 0.27, 0.04],
[0.395, 0.4775, 0.0575]])
assert_almost_equal(label_score[0, 0], 0.7205)
assert_array_almost_equal(label_score, rel_score - 0.7 * dis_score)
# without use_discrimination
label_score = ranker.combined_label_score(topic_models,
pmi_w2l,
use_discrimination=False)
assert_array_almost_equal(label_score, rel_score)
def test_select_label_sequentially():
label_score = ranker.combined_label_score(topic_models,
pmi_w2l,
use_discrimination=True,
mu=0.7)
actual = ranker.select_label_sequentially(1, label_score, label_models)
expected = np.asarray([[0], [1], [2]])
assert_array_equal(actual, expected)
def test_select_label_sequentially_all_labels():
label_score = ranker.combined_label_score(topic_models,
pmi_w2l,
use_discrimination=True,
mu=0.7)
actual = ranker.select_label_sequentially(3, label_score, label_models)
expected = np.asarray([[0, 1, 2], [1, 2, 0], [2, 0, 1]])
assert_array_equal(actual, expected)
def test_top_k_labels():
labels = ranker.top_k_labels(topic_models, pmi_w2l, index2label,
label_models, k=1)
assert_equal(labels, [['topic modeling'],
['machine learning'],
['business management']])
def test_top_k_labels_all_labels():
labels = ranker.top_k_labels(topic_models, pmi_w2l, index2label,
label_models, k=3)
assert_equal(labels, [['topic modeling', 'machine learning',
'business management'],
['machine learning', 'business management',
'topic modeling'],
['business management', 'topic modeling',
'machine learning']])
def test_top_k_labels_coverage_OFF_discrim_OFF():
ranker = LabelRanker(apply_intra_topic_coverage=False,
apply_inter_topic_discrimination=False)
labels = ranker.top_k_labels(topic_models, pmi_w2l, index2label,
label_models, k=3)
assert_equal(labels, [['topic modeling', 'machine learning',
'business management'],
['machine learning', 'business management',
'topic modeling'],
['machine learning', # because discri OFF
'topic modeling',
'business management']])
def test_top_k_labels_coverage_OFF_discrim_ON():
ranker = LabelRanker(apply_intra_topic_coverage=False,
apply_inter_topic_discrimination=True)
labels = ranker.top_k_labels(topic_models, pmi_w2l, index2label,
label_models, k=3)
assert_equal(labels, [['topic modeling', 'machine learning',
'business management'],
['machine learning', 'business management',
'topic modeling'],
['business management', 'topic modeling',
'machine learning']])
def test_top_k_labels_coverage_ON_discrim_OFF():
ranker = LabelRanker(apply_intra_topic_coverage=True,
apply_inter_topic_discrimination=False)
labels = ranker.top_k_labels(topic_models, pmi_w2l, index2label,
label_models, k=3)
assert_equal(labels, [['topic modeling', 'machine learning',
'business management'],
['machine learning', 'business management',
'topic modeling'],
['machine learning', # because discri OFF
'topic modeling',
'business management']])
# NOTE:
# Actually, the power of `intra-coverage` is not demonstrated in this testcase
| 43.086735
| 78
| 0.501599
| 863
| 8,445
| 4.618772
| 0.127462
| 0.044155
| 0.052684
| 0.063974
| 0.83141
| 0.801806
| 0.778726
| 0.752885
| 0.695183
| 0.619418
| 0
| 0.065727
| 0.403671
| 8,445
| 195
| 79
| 43.307692
| 0.725774
| 0.024512
| 0
| 0.55414
| 0
| 0
| 0.086777
| 0
| 0
| 0
| 0
| 0
| 0.140127
| 1
| 0.082803
| false
| 0
| 0.025478
| 0
| 0.10828
| 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
|
3799ab3e4f32a367d557a27abe9f27438d65a212
| 38
|
py
|
Python
|
tests/login.py
|
3gii/test
|
a5a079ff28f9cb195750081621ad95e1bb0a15e4
|
[
"MIT"
] | null | null | null |
tests/login.py
|
3gii/test
|
a5a079ff28f9cb195750081621ad95e1bb0a15e4
|
[
"MIT"
] | null | null | null |
tests/login.py
|
3gii/test
|
a5a079ff28f9cb195750081621ad95e1bb0a15e4
|
[
"MIT"
] | null | null | null |
print('hello world')
hello world
uuuu
| 9.5
| 20
| 0.763158
| 6
| 38
| 4.833333
| 0.666667
| 0.689655
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.131579
| 38
| 3
| 21
| 12.666667
| 0.878788
| 0
| 0
| 0
| 0
| 0
| 0.289474
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0.333333
| 1
| 1
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
379f2f61f5c5c94e111fce1a67fee7b9cadeeb9e
| 145
|
py
|
Python
|
HashcatNode/create_database.py
|
HexPandaa/WebHashcat
|
be145758b82a1fca2ccc6893550af6a1e5ce73a3
|
[
"MIT"
] | 191
|
2017-02-22T12:07:52.000Z
|
2022-02-24T22:23:38.000Z
|
HashcatNode/create_database.py
|
rvrsh3ll/WebHashcat
|
ba69cfe10e4f4d08b10feddbfb180f9076cf86ef
|
[
"MIT"
] | 26
|
2018-05-02T09:57:43.000Z
|
2021-03-27T02:18:04.000Z
|
HashcatNode/create_database.py
|
rvrsh3ll/WebHashcat
|
ba69cfe10e4f4d08b10feddbfb180f9076cf86ef
|
[
"MIT"
] | 60
|
2017-05-24T07:29:07.000Z
|
2022-03-04T14:50:06.000Z
|
#!/usr/bin/python3
from hashcat import Session
try:
Session.drop_table()
except:
pass
try:
Session.create_table()
except:
pass
| 11.153846
| 27
| 0.682759
| 19
| 145
| 5.105263
| 0.684211
| 0.206186
| 0.309278
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.008772
| 0.213793
| 145
| 12
| 28
| 12.083333
| 0.842105
| 0.117241
| 0
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.222222
| 0.111111
| 0
| 0.111111
| 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
|
806dd3a1bb3c79d0488b5ea80f426d53c770da39
| 132
|
py
|
Python
|
postlist/admin.py
|
sahin88/Django_Html_Css_Js_BootStrap_SocialMediaApp_FullStack
|
ef34f533793b060a90cc3fa6e2c1b51b3349f14d
|
[
"Unlicense"
] | null | null | null |
postlist/admin.py
|
sahin88/Django_Html_Css_Js_BootStrap_SocialMediaApp_FullStack
|
ef34f533793b060a90cc3fa6e2c1b51b3349f14d
|
[
"Unlicense"
] | null | null | null |
postlist/admin.py
|
sahin88/Django_Html_Css_Js_BootStrap_SocialMediaApp_FullStack
|
ef34f533793b060a90cc3fa6e2c1b51b3349f14d
|
[
"Unlicense"
] | null | null | null |
from django.contrib import admin
from .models import postList, comments
admin.site.register(postList)
admin.site.register(comments)
| 26.4
| 38
| 0.833333
| 18
| 132
| 6.111111
| 0.555556
| 0.163636
| 0.309091
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.083333
| 132
| 4
| 39
| 33
| 0.909091
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
8083a2c57a43d1917a97fc31db1625f71b6e4d74
| 98
|
py
|
Python
|
shlkr_controlserver/run_server_db.py
|
rossilhf/shelllinker
|
68c188e7287dda03376f0779dcf3dfe2c90db19b
|
[
"MIT"
] | 1
|
2020-10-30T02:47:16.000Z
|
2020-10-30T02:47:16.000Z
|
shlkr_controlserver/run_server_db.py
|
rossilhf/shelllinker
|
68c188e7287dda03376f0779dcf3dfe2c90db19b
|
[
"MIT"
] | null | null | null |
shlkr_controlserver/run_server_db.py
|
rossilhf/shelllinker
|
68c188e7287dda03376f0779dcf3dfe2c90db19b
|
[
"MIT"
] | null | null | null |
#!/usr/bin/python3
import server_db
if __name__ == "__main__":
server_db.process_main()
| 16.333333
| 29
| 0.683673
| 13
| 98
| 4.307692
| 0.769231
| 0.285714
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.0125
| 0.183673
| 98
| 5
| 30
| 19.6
| 0.6875
| 0.173469
| 0
| 0
| 0
| 0
| 0.106667
| 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
|
8092b8463950261cc81d6c342df49d648c65b524
| 99
|
py
|
Python
|
goutham_assignment/Profile/admin.py
|
xWaterBottlex/kutumb-assignment
|
c5deb51342394dc7e2c996a24cdf5e2662ded796
|
[
"MIT"
] | null | null | null |
goutham_assignment/Profile/admin.py
|
xWaterBottlex/kutumb-assignment
|
c5deb51342394dc7e2c996a24cdf5e2662ded796
|
[
"MIT"
] | 3
|
2021-06-08T21:41:51.000Z
|
2022-01-13T02:49:13.000Z
|
goutham_assignment/Profile/admin.py
|
GouthamDoddi/kutumb-assignment
|
c5deb51342394dc7e2c996a24cdf5e2662ded796
|
[
"MIT"
] | null | null | null |
from django.contrib import admin
from Profile.models import Profile
admin.site.register(Profile)
| 16.5
| 34
| 0.828283
| 14
| 99
| 5.857143
| 0.642857
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.111111
| 99
| 5
| 35
| 19.8
| 0.931818
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.666667
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
80a7ee86881e643fb32c3d1bce69371eaa2a41f7
| 385
|
py
|
Python
|
server/config.py
|
raavr/angular2-authorization-app
|
f0e5649841a31f3f8772f8690a0fee671d1c4490
|
[
"MIT"
] | null | null | null |
server/config.py
|
raavr/angular2-authorization-app
|
f0e5649841a31f3f8772f8690a0fee671d1c4490
|
[
"MIT"
] | null | null | null |
server/config.py
|
raavr/angular2-authorization-app
|
f0e5649841a31f3f8772f8690a0fee671d1c4490
|
[
"MIT"
] | null | null | null |
import os
DEBUG = False
TOKEN_SECRET = os.environ.get('SECRET_KEY') or 'JWT_SECRET'
MYSQL_DATABASE_USER = os.environ.get('MYSQL_DATABASE_USER') or 'user'
MYSQL_DATABASE_PASSWORD = os.environ.get('MYSQL_DATABASE_PASSWORD') or 'password'
MYSQL_DATABASE_DB = os.environ.get('MYSQL_DATABASE_DB') or 'auth_example'
MYSQL_DATABASE_HOST = os.environ.get('MYSQL_DATABASE_HOST') or 'localhost'
| 48.125
| 81
| 0.802597
| 59
| 385
| 4.898305
| 0.338983
| 0.359862
| 0.207612
| 0.235294
| 0.346021
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.077922
| 385
| 8
| 82
| 48.125
| 0.814085
| 0
| 0
| 0
| 0
| 0
| 0.339378
| 0.059585
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.142857
| 0.142857
| 0
| 0.142857
| 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
| 1
| 0
| 0
| 0
| 0
|
0
| 5
|
80c669f34e5639338e8ecc6863db8480addbe828
| 327
|
py
|
Python
|
docs/src/camelcase1.py
|
DawnOfHell/FastApi-RESTful
|
c2f7d4f3a40c173cd103c73a7f38bd2a14a76e6e
|
[
"MIT"
] | 994
|
2020-01-20T03:19:22.000Z
|
2022-03-31T15:17:00.000Z
|
docs/src/camelcase1.py
|
DawnOfHell/FastApi-RESTful
|
c2f7d4f3a40c173cd103c73a7f38bd2a14a76e6e
|
[
"MIT"
] | 223
|
2020-01-23T21:05:08.000Z
|
2022-02-12T19:43:12.000Z
|
docs/src/camelcase1.py
|
DawnOfHell/FastApi-RESTful
|
c2f7d4f3a40c173cd103c73a7f38bd2a14a76e6e
|
[
"MIT"
] | 81
|
2020-01-26T17:34:11.000Z
|
2022-03-22T09:21:18.000Z
|
from fastapi_utils.camelcase import camel2snake, snake2camel
assert snake2camel("some_field_name", start_lower=False) == "SomeFieldName"
assert snake2camel("some_field_name", start_lower=True) == "someFieldName"
assert camel2snake("someFieldName") == "some_field_name"
assert camel2snake("SomeFieldName") == "some_field_name"
| 46.714286
| 75
| 0.810398
| 37
| 327
| 6.864865
| 0.432432
| 0.141732
| 0.204724
| 0.204724
| 0.653543
| 0.653543
| 0.314961
| 0
| 0
| 0
| 0
| 0.019802
| 0.073395
| 327
| 6
| 76
| 54.5
| 0.818482
| 0
| 0
| 0
| 0
| 0
| 0.342508
| 0
| 0
| 0
| 0
| 0
| 0.8
| 1
| 0
| true
| 0
| 0.2
| 0
| 0.2
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
80f4d1b949c57fb60dc825735426b652eb397bbd
| 26
|
py
|
Python
|
src/gallery/setup.py
|
CovHackSoc/HackSheffield4
|
0778690e8391bc6bada9e550240f2b254e5c872c
|
[
"MIT"
] | null | null | null |
src/gallery/setup.py
|
CovHackSoc/HackSheffield4
|
0778690e8391bc6bada9e550240f2b254e5c872c
|
[
"MIT"
] | 1
|
2021-06-01T22:50:40.000Z
|
2021-06-01T22:50:40.000Z
|
src/gallery/setup.py
|
CovHackSoc/HackSheffield4
|
0778690e8391bc6bada9e550240f2b254e5c872c
|
[
"MIT"
] | 1
|
2018-10-27T13:45:34.000Z
|
2018-10-27T13:45:34.000Z
|
import App
App.init_db()
| 6.5
| 13
| 0.730769
| 5
| 26
| 3.6
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.153846
| 26
| 3
| 14
| 8.666667
| 0.818182
| 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
|
80fde6d9d0dab7cb730aa480f8e9390b9cd0f8ff
| 82
|
py
|
Python
|
src/snakewrap/util.py
|
dohlee/python-snakewrap
|
1bacef53dd8f903b73b4553d09c53048c98b2811
|
[
"MIT"
] | null | null | null |
src/snakewrap/util.py
|
dohlee/python-snakewrap
|
1bacef53dd8f903b73b4553d09c53048c98b2811
|
[
"MIT"
] | null | null | null |
src/snakewrap/util.py
|
dohlee/python-snakewrap
|
1bacef53dd8f903b73b4553d09c53048c98b2811
|
[
"MIT"
] | null | null | null |
def alwayslist(x):
if not isinstance(x, list):
return [x]
return x
| 20.5
| 31
| 0.585366
| 12
| 82
| 4
| 0.666667
| 0.291667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.304878
| 82
| 4
| 32
| 20.5
| 0.842105
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0
| 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
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 5
|
0383324a39d1cf3d71dc2bf8df9b8c5af6375483
| 67
|
py
|
Python
|
kattis/A Real Challenge.py
|
jaredliw/python-question-bank
|
9c8c246623d8d171f875700b57772df0afcbdcdf
|
[
"MIT"
] | 1
|
2021-04-08T07:49:15.000Z
|
2021-04-08T07:49:15.000Z
|
kattis/A Real Challenge.py
|
jaredliw/leetcode-solutions
|
9c8c246623d8d171f875700b57772df0afcbdcdf
|
[
"MIT"
] | null | null | null |
kattis/A Real Challenge.py
|
jaredliw/leetcode-solutions
|
9c8c246623d8d171f875700b57772df0afcbdcdf
|
[
"MIT"
] | 1
|
2022-01-23T02:12:24.000Z
|
2022-01-23T02:12:24.000Z
|
# CPU: 0.05 s
from math import sqrt
print(sqrt(int(input())) * 4)
| 13.4
| 29
| 0.641791
| 13
| 67
| 3.307692
| 0.923077
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.072727
| 0.179104
| 67
| 4
| 30
| 16.75
| 0.709091
| 0.164179
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0.5
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 1
|
0
| 5
|
0384b1257d2ffe03c06cc846b828f80f567cdb1f
| 55
|
py
|
Python
|
django/core/apps/__init__.py
|
onursa/django
|
23d9f517dc3ca31816bb8596f5a59f1ae44304ee
|
[
"BSD-3-Clause"
] | 1
|
2016-08-14T13:08:47.000Z
|
2016-08-14T13:08:47.000Z
|
django/core/apps/__init__.py
|
onursa/django
|
23d9f517dc3ca31816bb8596f5a59f1ae44304ee
|
[
"BSD-3-Clause"
] | null | null | null |
django/core/apps/__init__.py
|
onursa/django
|
23d9f517dc3ca31816bb8596f5a59f1ae44304ee
|
[
"BSD-3-Clause"
] | null | null | null |
from .cache import app_cache, UnavailableApp # NOQA
| 27.5
| 54
| 0.763636
| 7
| 55
| 5.857143
| 0.857143
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.181818
| 55
| 1
| 55
| 55
| 0.911111
| 0.072727
| 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
|
038a13218b7d3bf04fc921f381397d1e310340d9
| 190
|
py
|
Python
|
mono/apis/__init__.py
|
Jenaer/FeatDepth
|
64128b03873b27ffa5e99a5cb1712dd8aa15cb0d
|
[
"MIT"
] | 179
|
2020-08-21T08:57:22.000Z
|
2022-03-26T21:55:20.000Z
|
mono/apis/__init__.py
|
sconlyshootery/feature_metric_depth
|
550420b3fb51a027549716b74c6fbce41651d3a5
|
[
"MIT"
] | 84
|
2020-08-30T14:25:19.000Z
|
2022-03-08T12:29:37.000Z
|
mono/apis/__init__.py
|
sconlyshootery/feature_metric_depth
|
550420b3fb51a027549716b74c6fbce41651d3a5
|
[
"MIT"
] | 31
|
2020-10-01T12:12:19.000Z
|
2022-03-06T08:04:18.000Z
|
#!/usr/bin/env python
# -*- coding:utf-8 -*-
# Author: Duanzhixiang(zhixiangduan@deepmotion.ai)
from .trainer import train_mono
from .env import init_dist, get_root_logger, set_random_seed
| 31.666667
| 60
| 0.768421
| 28
| 190
| 5
| 0.892857
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.005882
| 0.105263
| 190
| 6
| 60
| 31.666667
| 0.817647
| 0.478947
| 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
|
03970f3b4da2cb1d766a642c6189720dba3fd346
| 182
|
py
|
Python
|
lenstest/__init__.py
|
scottprahl/lenstest
|
396946a39be7ea6479aff28f55fe3ee17ea82a48
|
[
"MIT"
] | 1
|
2022-03-04T14:19:35.000Z
|
2022-03-04T14:19:35.000Z
|
lenstest/__init__.py
|
scottprahl/lenstest
|
396946a39be7ea6479aff28f55fe3ee17ea82a48
|
[
"MIT"
] | null | null | null |
lenstest/__init__.py
|
scottprahl/lenstest
|
396946a39be7ea6479aff28f55fe3ee17ea82a48
|
[
"MIT"
] | null | null | null |
"""
Non-interferometric Lens Testing.
Documentation and examples are at <https://lenstest.readthedocs.io>
"""
from .lenstest import *
from .ronchi import *
from .foucault import *
| 18.2
| 67
| 0.747253
| 22
| 182
| 6.181818
| 0.772727
| 0.147059
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.137363
| 182
| 9
| 68
| 20.222222
| 0.866242
| 0.56044
| 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
|
03b4e600cb5a297816b4e361af580328613384a1
| 1,018
|
py
|
Python
|
python/anyascii/_data/_053.py
|
casept/anyascii
|
d4f426b91751254b68eaa84c6cd23099edd668e6
|
[
"ISC"
] | null | null | null |
python/anyascii/_data/_053.py
|
casept/anyascii
|
d4f426b91751254b68eaa84c6cd23099edd668e6
|
[
"ISC"
] | null | null | null |
python/anyascii/_data/_053.py
|
casept/anyascii
|
d4f426b91751254b68eaa84c6cd23099edd668e6
|
[
"ISC"
] | null | null | null |
b='Yun Wen Xiong Gai Gai Bao Cong Yi Xiong Peng Ju Tao Ge Pu E Pao Fu Gong Da Jiu Gong Bi Hua Bei Nao Shi Fang Jiu Yi Za Jiang Kang Jiang Kuang Hu Xia Qu Fan Gui Qie Zang Kuang Fei Hu Yu Gui Kui Hui Dan Gui Lian Lian Suan Du Jiu Jue Xi Pi Qu Yi Ke Yan Bian Ni Qu Shi Xun Qian Nian Sa Zu Sheng Wu Hui Ban Shi Xi Wan Hua Xie Wan Bei Zu Zhuo Xie Dan Mai Nan Dan Ji Bo Shuai Bo Kuang Bian Bu Zhan Ka Lu You Lu Xi Gua Wo Xie Jie Jie Wei Ang Qiong Zhi Mao Yin Wei Shao Ji Que Luan Chi Juan Xie Xu Jin Que Wu Ji E Qing Xi San Chang Wei E Ting Li Zhe Han Li Ya Ya Yan She Di Zha Pang Ya Qie Ya Zhi Ce Pang Ti Li She Hou Ting Zui Cuo Fei Yuan Ce Yuan Xiang Yan Li Jue Sha Dian Chu Jiu Jin Ao Gui Yan Si Li Chang Lan Li Yan Yan Yuan Si Gong Lin Rou Qu Qu Er Lei Du Xian Zhuan San Can Can Can Can Ai Dai You Cha Ji You Shuang Fan Shou Guai Ba Fa Ruo Shi Shu Zhuo Qu Shou Bian Xu Jia Pan Sou Ji Wei Sou Die Rui Cong Kou Gu Ju Ling Gua Dao Kou Zhi Jiao Zhao Ba Ding Ke Tai Chi Shi You Qiu Po Ye Hao Si Tan Chi Le Diao Ji Liao Hong'
| 1,018
| 1,018
| 0.746562
| 257
| 1,018
| 2.957198
| 0.59144
| 0.023684
| 0.023684
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.250491
| 1,018
| 1
| 1,018
| 1,018
| 0.996068
| 0
| 0
| 0
| 0
| 1
| 0.995093
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
03ce1f370416bbee7e061fdf1e64190ab39379db
| 218
|
py
|
Python
|
instauto/api/actions/__init__.py
|
Danielohayon/instauto
|
2df016cb66408b4ccd25bcd6565ea58a02393f02
|
[
"MIT"
] | null | null | null |
instauto/api/actions/__init__.py
|
Danielohayon/instauto
|
2df016cb66408b4ccd25bcd6565ea58a02393f02
|
[
"MIT"
] | null | null | null |
instauto/api/actions/__init__.py
|
Danielohayon/instauto
|
2df016cb66408b4ccd25bcd6565ea58a02393f02
|
[
"MIT"
] | null | null | null |
from .authentication import AuthenticationMixIn
from .post import PostMixin
from .request import RequestMixIn
from .profile import ProfileMixin
from .friendships import FriendshipsMixin
from .search import SearchMixin
| 31.142857
| 47
| 0.862385
| 24
| 218
| 7.833333
| 0.583333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.110092
| 218
| 6
| 48
| 36.333333
| 0.969072
| 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
|
03f504698cb66e0b6853b7bfc02bdf2f8f63b763
| 73
|
py
|
Python
|
runtime/python/Lib/dbm/ndbm.py
|
hwaipy/InteractionFreeNode
|
88642b68430f57b028fd0f276a5709f89279e30d
|
[
"MIT"
] | 207
|
2018-10-01T08:53:01.000Z
|
2022-03-14T12:15:54.000Z
|
Thonny/Lib/dbm/ndbm.py
|
Pydiderot/pydiderotIDE
|
a42fcde3ea837ae40c957469f5d87427e8ce46d3
|
[
"MIT"
] | 30
|
2019-01-04T10:14:56.000Z
|
2020-10-12T14:00:31.000Z
|
Thonny/Lib/dbm/ndbm.py
|
Pydiderot/pydiderotIDE
|
a42fcde3ea837ae40c957469f5d87427e8ce46d3
|
[
"MIT"
] | 76
|
2020-03-16T01:47:46.000Z
|
2022-03-21T16:37:07.000Z
|
"""Provide the _dbm module as a dbm submodule."""
from _dbm import *
| 18.25
| 50
| 0.671233
| 11
| 73
| 4.272727
| 0.818182
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.219178
| 73
| 3
| 51
| 24.333333
| 0.824561
| 0.589041
| 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
|
205ef09aacf6a7f4b7d4ebd3bede195c13a16fc8
| 185
|
py
|
Python
|
trinity/rpc/modules/__init__.py
|
zixuanzh/py-evm
|
de05e73036c663e85083316bc503549044792892
|
[
"MIT"
] | 137
|
2017-03-17T11:37:51.000Z
|
2022-03-07T07:51:28.000Z
|
trinity/rpc/modules/__init__.py
|
zixuanzh/py-evm
|
de05e73036c663e85083316bc503549044792892
|
[
"MIT"
] | 102
|
2017-04-07T10:43:03.000Z
|
2018-11-11T18:01:56.000Z
|
trinity/rpc/modules/__init__.py
|
zixuanzh/py-evm
|
de05e73036c663e85083316bc503549044792892
|
[
"MIT"
] | 39
|
2017-03-17T11:38:52.000Z
|
2021-02-18T23:05:17.000Z
|
from .main import RPCModule # noqa: F401
from .eth import Eth # noqa: F401
from .evm import EVM # noqa: F401
from .net import Net # noqa: F401
from .web3 import Web3 # noqa: F401
| 26.428571
| 41
| 0.697297
| 30
| 185
| 4.3
| 0.333333
| 0.310078
| 0.372093
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.118056
| 0.221622
| 185
| 6
| 42
| 30.833333
| 0.777778
| 0.291892
| 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
| 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
|
4579c11a1ac91f82009f94c5ebe5d98896427c82
| 2,623
|
py
|
Python
|
launcher.py
|
Curbfeeler/PinbotFromES
|
e12734afa37c4c0accef762f39d42503392c8f5b
|
[
"MIT"
] | null | null | null |
launcher.py
|
Curbfeeler/PinbotFromES
|
e12734afa37c4c0accef762f39d42503392c8f5b
|
[
"MIT"
] | null | null | null |
launcher.py
|
Curbfeeler/PinbotFromES
|
e12734afa37c4c0accef762f39d42503392c8f5b
|
[
"MIT"
] | null | null | null |
#################################################################################
##____ ___ _ _ ____ ___ _____ ____ ___
#| _ \_ _| \ | | __ ) / _ \_ _| |___ \ / _ \
#| |_) | || \| | _ \| | | || | __) || | | |
#| __/| || |\ | |_) | |_| || | / __/ | |_| |
#|_|__|___|_|_\_|____/_\___/_|_| __|_____(_)___/_____ ___ ___ _ _
#| _ \ | _ \ / _ \ / ___| | ____| _ \_ _|_ _|_ _/ _ \| \ | |
#| |_) |____| |_) | | | | | | _| | | | | | | | | | | | | \| |
#| __/_____| _ <| |_| | |___ | |___| |_| | | | | | | |_| | |\ |
#|_| |_| \_\\___/ \____| |_____|____/___| |_| |___\___/|_| \_|
##
## A P-ROC Project by Dan Myers, Copyright 2013-2014
## Built on the PyProcGame Framework from Adam Preble and Gerry Stellenberg
## Thanks to Scott Danesi for his Earthshaker Project, which is my starting point
#################################################################################
#################################################################################
## __ ___ __ ___ __________ ____________
## / / / | / / / / | / / ____/ / / / ____/ __ \
## / / / /| |/ / / / |/ / / / /_/ / __/ / /_/ /
## / /___/ ___ / /_/ / /| / /___/ __ / /___/ _, _/
## /_____/_/ |_\____/_/ |_/\____/_/ /_/_____/_/ |_|
##
#################################################################################
import procgame.game
from procgame import *
import pinproc
class Launcher_Mode(game.Mode):
def __init__(self, game):
super(Launcher_Mode, self).__init__(game=game, priority=3)
def mode_started(self):
self.game.coils.flipperEnable.enable()
def mode_stopped(self):
pass
def sw_startButton_active_for_50ms(self, sw):
#if self.troughIsFull()==True:
#Game Starting
#self.game.modes.remove(self)
return procgame.game.SwitchContinue
def sw_outhole_active_for_1s(self, sw):
self.game.coils.acSelect.disable()
self.game.coils.flipperEnable.disable()
self.game.coils.outholeKicker_Knocker.pulse(50)
self.game.score_display.set_text("GAME OVER",0)
self.game.score_display.set_text("Press Start",1)
return procgame.game.SwitchStop
def sw_jetLeft_active(self, sw):
return procgame.game.SwitchStop
def sw_jetRight_active(self, sw):
return procgame.game.SwitchStop
def sw_jetTop_active(self, sw):
return procgame.game.SwitchStop
def sw_slingL_active(self, sw):
return procgame.game.SwitchStop
def sw_slingR_active(self, sw):
return procgame.game.SwitchStop
| 39.149254
| 81
| 0.485703
| 194
| 2,623
| 5.06701
| 0.443299
| 0.09766
| 0.128179
| 0.170905
| 0.312309
| 0.312309
| 0.223805
| 0.183113
| 0.183113
| 0
| 0
| 0.008004
| 0.237896
| 2,623
| 67
| 82
| 39.149254
| 0.483742
| 0.461304
| 0
| 0.206897
| 0
| 0
| 0.018921
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.344828
| false
| 0.034483
| 0.103448
| 0.206897
| 0.724138
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 5
|
457e4fab5dc6be0e0247ff332240d69cd8248fd9
| 61
|
py
|
Python
|
src/rodi_robot/__init__.py
|
dmnunez1993/rodi_robot
|
2c535c1db5c09e4147db8356c3e168e2120cf96f
|
[
"BSD-3-Clause"
] | 7
|
2016-08-21T23:57:16.000Z
|
2021-06-16T17:03:12.000Z
|
src/rodi_robot/__init__.py
|
dmnunez1993/rodi_robot
|
2c535c1db5c09e4147db8356c3e168e2120cf96f
|
[
"BSD-3-Clause"
] | 5
|
2016-08-27T08:43:56.000Z
|
2017-06-14T15:30:08.000Z
|
src/rodi_robot/__init__.py
|
dmnunez1993/rodi_robot
|
2c535c1db5c09e4147db8356c3e168e2120cf96f
|
[
"BSD-3-Clause"
] | 4
|
2016-09-11T17:43:04.000Z
|
2018-05-21T19:28:49.000Z
|
from .transport import Transport
from .main import RodiRobot
| 20.333333
| 32
| 0.836066
| 8
| 61
| 6.375
| 0.625
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.131148
| 61
| 2
| 33
| 30.5
| 0.962264
| 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
|
45b89f30379ae47ba1e6660dd54e8774876c7e60
| 5,249
|
py
|
Python
|
templatecorr/temprel_drop_in.py
|
hesther/templatecorr
|
f7f99e5858d8596cdf213aa88298bfb0b23754fe
|
[
"BSD-3-Clause"
] | 5
|
2022-01-15T18:06:44.000Z
|
2022-03-02T17:18:01.000Z
|
templatecorr/temprel_drop_in.py
|
hesther/templatecorr
|
f7f99e5858d8596cdf213aa88298bfb0b23754fe
|
[
"BSD-3-Clause"
] | 4
|
2021-11-19T22:51:05.000Z
|
2022-02-16T15:26:27.000Z
|
templatecorr/temprel_drop_in.py
|
hesther/templatecorr
|
f7f99e5858d8596cdf213aa88298bfb0b23754fe
|
[
"BSD-3-Clause"
] | 2
|
2021-11-12T15:21:02.000Z
|
2022-03-29T03:09:07.000Z
|
import os
import re
import pandas as pd
import hashlib
from joblib import Parallel, delayed
from multiprocessing import Pool, TimeoutError
import tqdm
from temprel.templates.validate import validate_template
from .correct_templates import templates_from_df
from rdkit import RDLogger
RDLogger.DisableLog('rdApp.*')
def create_hash(pd_row):
return hashlib.md5(pd_row.to_json().encode()).hexdigest()
def unmap(smarts):
return re.sub(r':[0-9]+]', ']', smarts)
def count_products(smiles):
return 1 + smiles.count('.')
def parallel_validate(df, nproc, timeout=3):
pool = Pool(processes=nproc)
async_results = [pool.apply_async(validate_template, (r,)) for r in df.to_dict(orient='records')]
valid = []
for res in tqdm.tqdm(async_results):
try:
valid.append(res.get(timeout))
except TimeoutError:
valid.append(False)
return valid
try:
from temprel.templates.filter import filter_by_bond_edits
from temprel.rdkit import fix_spectators
def templates_from_reactions(df, output_prefix=None, nproc=8, timeout=3, filter_fn=filter_by_bond_edits, filter_kwargs={}):
"""Version with filter (proprietary gitlab version)"""
assert output_prefix is not None, 'Please specify a directory for the output files'
if not os.path.exists(output_prefix):
os.makedirs(output_prefix)
out_json = output_prefix + 'templates.df.json.gz'
assert type(df) is pd.DataFrame
assert 'reaction_smiles' in df.columns
df['reaction_smiles'] = Parallel(n_jobs=nproc, verbose=1)(
delayed(fix_spectators)(rsmi) for rsmi in df['reaction_smiles']
)
rxn_split = df['reaction_smiles'].str.split('>', expand=True)
df[['reactants', 'spectators', 'products']] = rxn_split.rename(
columns={
0: 'reactants',
1: 'spectator',
2: 'products'
}
)
if '_id' not in df.columns:
df['_id'] = df.apply(create_hash, axis=1)
num_products = df['products'].apply(count_products)
df = df[num_products==1]
templates = templates_from_df(df, nproc)
keep_cols = ['dimer_only', 'intra_only', 'necessary_reagent', 'reaction_id', 'reaction_smarts']
df = df.merge(templates[keep_cols], left_on='_id', right_on='reaction_id')
df = df.dropna(subset=['reaction_smarts'])
valid = parallel_validate(df, nproc, timeout)
df = df[valid]
df = filter_fn(df, nproc=nproc, **filter_kwargs)
df['unmapped_template'] = df['reaction_smarts'].apply(unmap)
unique_templates = pd.DataFrame(
df['unmapped_template'].unique(), columns=['unmapped_template']
).reset_index()
df = df.merge(unique_templates, on='unmapped_template')
df = df.drop_duplicates(subset=['products', 'index'])
df['count'] = df.groupby('index')['index'].transform('count')
if out_json[-2] == 'gz':
df.to_json(out_json, compression='gzip')
else:
df.to_json(out_json)
return df
except ImportError:
from temprel.rdkit import remove_spectating_reactants
def templates_from_reactions(df, output_prefix=None, nproc=8, timeout=3):
"""Version without filter (open-source gitlab version)"""
assert output_prefix is not None, 'Please specify a directory for the output files'
if not os.path.exists(output_prefix):
os.makedirs(output_prefix)
out_json = output_prefix + 'templates.df.json.gz'
assert type(df) is pd.DataFrame
assert 'reaction_smiles' in df.columns
df['reaction_smiles'] = Parallel(n_jobs=nproc, verbose=1)(
delayed(remove_spectating_reactants)(rsmi) for rsmi in df['reaction_smiles']
)
rxn_split = df['reaction_smiles'].str.split('>', expand=True)
df[['reactants', 'spectators', 'products']] = rxn_split.rename(
columns={
0: 'reactants',
1: 'spectator',
2: 'products'
}
)
if '_id' not in df.columns:
df['_id'] = df.apply(create_hash, axis=1)
num_products = df['products'].apply(count_products)
df = df[num_products==1]
templates = templates_from_df(df, nproc)
keep_cols = ['dimer_only', 'intra_only', 'necessary_reagent', 'reaction_id', 'reaction_smarts']
df = df.merge(templates[keep_cols], left_on='_id', right_on='reaction_id')
df = df.dropna(subset=['reaction_smarts'])
valid = parallel_validate(df, nproc, timeout)
df = df[valid]
df['unmapped_template'] = df['reaction_smarts'].apply(unmap)
unique_templates = pd.DataFrame(
df['unmapped_template'].unique(), columns=['unmapped_template']
).reset_index()
df = df.merge(unique_templates, on='unmapped_template')
df = df.drop_duplicates(subset=['products', 'index'])
df['count'] = df.groupby('index')['index'].transform('count')
if out_json[-2] == 'gz':
df.to_json(out_json, compression='gzip')
else:
df.to_json(out_json)
return df
| 38.595588
| 127
| 0.630215
| 648
| 5,249
| 4.902778
| 0.225309
| 0.017627
| 0.030217
| 0.016368
| 0.711992
| 0.70255
| 0.70255
| 0.70255
| 0.70255
| 0.70255
| 0
| 0.005783
| 0.242332
| 5,249
| 135
| 128
| 38.881481
| 0.79306
| 0.019051
| 0
| 0.637168
| 0
| 0
| 0.163877
| 0
| 0
| 0
| 0
| 0
| 0.053097
| 1
| 0.053097
| false
| 0
| 0.123894
| 0.026549
| 0.230089
| 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
|
45e3386f6b8be9372a4dac6c6c19a046a9020eb6
| 224
|
py
|
Python
|
crownstone_cloud/__init__.py
|
crownstone/crownstone-lib-python-cloud
|
c6a48ab8c6990c5c99d136d9a8cf1df01a7c094d
|
[
"MIT"
] | 1
|
2020-05-29T23:45:15.000Z
|
2020-05-29T23:45:15.000Z
|
crownstone_cloud/__init__.py
|
crownstone/crownstone-lib-python-cloud
|
c6a48ab8c6990c5c99d136d9a8cf1df01a7c094d
|
[
"MIT"
] | 3
|
2021-11-09T15:36:48.000Z
|
2021-11-12T00:43:23.000Z
|
crownstone_cloud/__init__.py
|
crownstone/crownstone-lib-python-cloud
|
c6a48ab8c6990c5c99d136d9a8cf1df01a7c094d
|
[
"MIT"
] | 1
|
2021-11-09T15:33:01.000Z
|
2021-11-09T15:33:01.000Z
|
"""Top level imports."""
from crownstone_cloud.cloud import CrownstoneCloud
from crownstone_cloud.helpers.aiohttp_client import create_clientsession
from crownstone_cloud.util.runners import run_async
__version__ = "1.4.8"
| 32
| 72
| 0.839286
| 30
| 224
| 5.933333
| 0.7
| 0.235955
| 0.320225
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.014634
| 0.084821
| 224
| 6
| 73
| 37.333333
| 0.853659
| 0.080357
| 0
| 0
| 0
| 0
| 0.025
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.75
| 0
| 0.75
| 0
| 0
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
aff993d5153f46b0fd0061244ca3e442fe5c0716
| 50
|
py
|
Python
|
nitorch/tools/registration/reorient/__init__.py
|
liamchalcroft/nitorch
|
0de179aff97244a82213c528f0d6393725c868c9
|
[
"MIT"
] | 46
|
2020-07-31T10:14:05.000Z
|
2022-03-24T12:51:46.000Z
|
nitorch/tools/registration/reorient/__init__.py
|
liamchalcroft/nitorch
|
0de179aff97244a82213c528f0d6393725c868c9
|
[
"MIT"
] | 36
|
2020-10-06T19:01:38.000Z
|
2022-02-03T18:07:35.000Z
|
nitorch/tools/registration/reorient/__init__.py
|
liamchalcroft/nitorch
|
0de179aff97244a82213c528f0d6393725c868c9
|
[
"MIT"
] | 6
|
2021-01-05T14:59:05.000Z
|
2021-11-18T18:26:45.000Z
|
from .main import reorient
from . import cli as _
| 16.666667
| 26
| 0.76
| 8
| 50
| 4.625
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.2
| 50
| 2
| 27
| 25
| 0.925
| 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
|
b30e340e1875d7d868cc53c5ad8cf3ac4e87c809
| 102
|
py
|
Python
|
robolearn_envs/pybullet/task_envs/__init__.py
|
domingoesteban/robolearn_envs
|
1e10f315abcbb034e613b3b5a7a48662a839c81b
|
[
"BSD-3-Clause"
] | 2
|
2020-08-20T15:46:55.000Z
|
2022-02-16T13:45:59.000Z
|
robolearn_envs/pybullet/task_envs/__init__.py
|
domingoesteban/robolearn_envs
|
1e10f315abcbb034e613b3b5a7a48662a839c81b
|
[
"BSD-3-Clause"
] | null | null | null |
robolearn_envs/pybullet/task_envs/__init__.py
|
domingoesteban/robolearn_envs
|
1e10f315abcbb034e613b3b5a7a48662a839c81b
|
[
"BSD-3-Clause"
] | 1
|
2020-10-03T11:28:15.000Z
|
2020-10-03T11:28:15.000Z
|
from .robot_locomotion_env import RobotLocomotionEnv
from .robot_reaching_env import RobotReachingEnv
| 34
| 52
| 0.901961
| 12
| 102
| 7.333333
| 0.666667
| 0.204545
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.078431
| 102
| 2
| 53
| 51
| 0.93617
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
b3128f54e5953e392511369cdb3b515c8073d485
| 2,353
|
py
|
Python
|
indy_node/test/pool_config/test_send_pool_config_only_trustee.py
|
panickervinod/indy-node
|
5e9402f90a2a6811ffb26e6d549454cc87b10dc7
|
[
"Apache-2.0"
] | 1
|
2019-03-19T23:44:54.000Z
|
2019-03-19T23:44:54.000Z
|
indy_node/test/pool_config/test_send_pool_config_only_trustee.py
|
panickervinod/indy-node
|
5e9402f90a2a6811ffb26e6d549454cc87b10dc7
|
[
"Apache-2.0"
] | null | null | null |
indy_node/test/pool_config/test_send_pool_config_only_trustee.py
|
panickervinod/indy-node
|
5e9402f90a2a6811ffb26e6d549454cc87b10dc7
|
[
"Apache-2.0"
] | null | null | null |
from plenum.common.exceptions import RequestRejectedException, RequestNackedException
from plenum.test.helper import sdk_get_bad_response
from plenum.test.pool_transactions.helper import sdk_add_new_nym
from indy_node.test.pool_config.helper import sdk_pool_config_sent
from plenum.common.constants import STEWARD_STRING
def test_only_trustee_send_pool_config_writes_true_force_false(
nodeSet, looper, sdk_pool_handle, sdk_wallet_trustee, poolConfigWTFF):
sdk_wallet_steward = sdk_add_new_nym(looper, sdk_pool_handle,
sdk_wallet_trustee, 'tmpname', STEWARD_STRING)
req = sdk_pool_config_sent(looper, sdk_pool_handle, sdk_wallet_steward, poolConfigWTFF)
sdk_get_bad_response(looper, [req], RequestRejectedException, '{} can not do this action'.format(STEWARD_STRING))
def test_only_trustee_send_pool_config_writes_false_force_false(
nodeSet, looper, sdk_pool_handle, sdk_wallet_trustee, poolConfigWFFF):
sdk_wallet_steward = sdk_add_new_nym(looper, sdk_pool_handle,
sdk_wallet_trustee, 'tmpname', STEWARD_STRING)
req = sdk_pool_config_sent(looper, sdk_pool_handle, sdk_wallet_steward, poolConfigWFFF)
sdk_get_bad_response(looper, [req], RequestRejectedException, '{} can not do this action'.format(STEWARD_STRING))
def test_only_trustee_send_pool_config_writes_true_force_true(
nodeSet, looper, sdk_pool_handle, sdk_wallet_trustee, poolConfigWTFT):
sdk_wallet_steward = sdk_add_new_nym(looper, sdk_pool_handle,
sdk_wallet_trustee, 'tmpname', STEWARD_STRING)
req = sdk_pool_config_sent(looper, sdk_pool_handle, sdk_wallet_steward, poolConfigWTFT)
sdk_get_bad_response(looper, [req], RequestNackedException, '{} can not do this action'.format(STEWARD_STRING))
def test_only_trustee_send_pool_config_writes_false_force_true(
nodeSet, looper, sdk_pool_handle, sdk_wallet_trustee, poolConfigWFFT):
sdk_wallet_steward = sdk_add_new_nym(looper, sdk_pool_handle,
sdk_wallet_trustee, 'tmpname', STEWARD_STRING)
req = sdk_pool_config_sent(looper, sdk_pool_handle, sdk_wallet_steward, poolConfigWFFT)
sdk_get_bad_response(looper, [req], RequestNackedException, '{} can not do this action'.format(STEWARD_STRING))
| 61.921053
| 117
| 0.767956
| 306
| 2,353
| 5.418301
| 0.160131
| 0.071773
| 0.094089
| 0.137515
| 0.77503
| 0.77503
| 0.77503
| 0.77503
| 0.77503
| 0.77503
| 0
| 0
| 0.165321
| 2,353
| 37
| 118
| 63.594595
| 0.844196
| 0
| 0
| 0.413793
| 0
| 0
| 0.054399
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.137931
| false
| 0
| 0.172414
| 0
| 0.310345
| 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
|
b357a8f9cab2889f95750ca3466579e226693585
| 184
|
py
|
Python
|
sound.py
|
alankuo/COGS189-Final-Project
|
b3d09c151814dca58fbc100829da0d8077012a19
|
[
"MIT"
] | null | null | null |
sound.py
|
alankuo/COGS189-Final-Project
|
b3d09c151814dca58fbc100829da0d8077012a19
|
[
"MIT"
] | null | null | null |
sound.py
|
alankuo/COGS189-Final-Project
|
b3d09c151814dca58fbc100829da0d8077012a19
|
[
"MIT"
] | null | null | null |
import pygame, time # Load the required library
pygame.init()
pygame.mixer.init()
pygame.mixer.music.load('mus.mp3')
pygame.mixer.music.play()
time.sleep(40)
pygame.mixer.music.stop()
| 23
| 47
| 0.76087
| 29
| 184
| 4.827586
| 0.551724
| 0.314286
| 0.342857
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.017647
| 0.076087
| 184
| 8
| 48
| 23
| 0.805882
| 0.13587
| 0
| 0
| 0
| 0
| 0.044304
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.142857
| 0
| 0.142857
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
b35d925b1f9552c1e2d948aa4fd4c878a1bdb1fc
| 13,390
|
py
|
Python
|
test_pyargs.py
|
seanhummel/pyargs
|
f4e836fb8f0f9ad9c3ac9556fca2b6ee02f093db
|
[
"MIT"
] | null | null | null |
test_pyargs.py
|
seanhummel/pyargs
|
f4e836fb8f0f9ad9c3ac9556fca2b6ee02f093db
|
[
"MIT"
] | null | null | null |
test_pyargs.py
|
seanhummel/pyargs
|
f4e836fb8f0f9ad9c3ac9556fca2b6ee02f093db
|
[
"MIT"
] | null | null | null |
from unittest import TestCase
import pyargs
class TestPyArgsOption(TestCase):
def test_should_not_allow_unnamed_arguments(self):
with self.assertRaises(StandardError):
pyargs.PyArgsOption("a")
def test_should_not_allow_unknown_named_arguments(self):
with self.assertRaises(StandardError):
pyargs.PyArgsOption(unknown = "GRATE!")
def test_should_allow_known_named_arguments(self):
for argumentName in pyargs.PyArgsOption.validKeys:
args = []
kvargs = {argumentName: "boolean", "shortname": "a"}
pyargs.PyArgsOption(*args, **kvargs)
def test_should_allow_only_known_datatypes(self):
with self.assertRaises(StandardError):
pyargs.PyArgsOption(shortname = "a", datatype = "X")
pyargs.PyArgsOption(shortname = "a", datatype = "int")
pyargs.PyArgsOption(shortname = "a", datatype = "float")
pyargs.PyArgsOption(shortname = "a", datatype = "boolean")
def test_should_not_allow_empty_arguments(self):
with self.assertRaises(StandardError):
pyargs.PyArgsOption()
def test_should_set_named_value(self):
pyoption = pyargs.PyArgsOption(shortname = "x")
if pyoption["shortname"] != "x":
self.fail("shortname not found in pyoption")
if pyoption.shortname != "x":
self.fail("shortname not found in pyoption")
class TestPyArgs(TestCase):
def test_should_only_allow_PyArgsOption(self):
pyarg = pyargs.PyArgs()
x = pyargs.PyArgsOption(shortname = "a")
pyarg.add_option(x)
self.assertIn(x, pyarg.options)
def test_should_parse_single_character_boolean(self):
pyarg = pyargs.PyArgs()
opt = pyargs.PyArgsOption(shortname = "a")
pyarg.add_option(opt)
opt = pyargs.PyArgsOption(shortname = "t")
pyarg.add_option(opt)
foundargs, remainders = pyarg.parse(["-a", "-t", "remainders"])
self.assertDictContainsSubset({"a": None, "t": None}, foundargs)
self.assertEqual(["remainders"], remainders)
def test_should_be_able_to_find_option(self):
pyarg = pyargs.PyArgs()
a = pyargs.PyArgsOption(shortname = "A", longname = "EH")
b = pyargs.PyArgsOption(shortname = "B", longname = "BEE")
c = pyargs.PyArgsOption(shortname = "C", longname = "CEE")
pyarg.add_option(a)
pyarg.add_option(b)
pyarg.add_option(c)
self.assert_(pyarg.find_option(shortname = "A") == a, "short name not matched")
self.assert_(pyarg.find_option(longname = "BEE") == b, "long name not matched")
self.assert_(pyarg.find_option(shortname = "A", longname = "EH") == a, "short and long names did not match")
def test_should_parse_single_character_with_value(self):
pyarg = pyargs.PyArgs()
pyarg.add_option(pyargs.PyArgsOption(shortname = "a", hasvalue = True))
pyarg.add_option(pyargs.PyArgsOption(shortname = "t", hasvalue = False))
foundargs, remainders = pyarg.parse(["-a", "AVALUE", "-t", "remainders"])
self.assertDictContainsSubset({"a": "AVALUE", "t": None}, foundargs)
self.assertEqual(["remainders"], remainders)
def test_should_parse_single_character_with_buttedup_value(self):
pyarg = pyargs.PyArgs()
pyarg.add_option(pyargs.PyArgsOption(shortname = "a", hasvalue = True))
pyarg.add_option(pyargs.PyArgsOption(shortname = "t", hasvalue = False))
foundargs, remainders = pyarg.parse(["-aAVALUE", "-t", "remainders"])
self.assertDictContainsSubset({"a": "AVALUE", "t": None}, foundargs)
self.assertEqual(["remainders"], remainders)
def test_should_not_parse_unknown_shortname_with_buttedup_value(self):
pyarg = pyargs.PyArgs()
pyarg.add_option(pyargs.PyArgsOption(shortname = "a", hasvalue = True))
pyarg.add_option(pyargs.PyArgsOption(shortname = "t", hasvalue = False))
with self.assertRaises(StandardError):
pyarg.parse(["-bAVALUE", "-t", "remainders"])
def test_should_parse_longname_with_value(self):
pyarg = pyargs.PyArgs()
pyarg.add_option(pyargs.PyArgsOption(longname = "test1", hasvalue = True))
pyarg.add_option(pyargs.PyArgsOption(longname = "test2", hasvalue = False))
pyarg.add_option(pyargs.PyArgsOption(longname = "test3", hasvalue = False))
pyarg.add_option(pyargs.PyArgsOption(shortname = "t", hasvalue = False))
foundargs, remainders = pyarg.parse(["--test1", "AVALUE", "-t", "remainders"])
self.assertDictContainsSubset({"test1": "AVALUE", "t": None}, foundargs)
self.assertEqual(["remainders"], remainders)
def test_should_parse_longname_with_seperated_equalsign_and_value(self):
pyarg = pyargs.PyArgs()
pyarg.add_option(pyargs.PyArgsOption(longname = "test1", hasvalue = True))
pyarg.add_option(pyargs.PyArgsOption(longname = "test2", hasvalue = False))
pyarg.add_option(pyargs.PyArgsOption(longname = "test3", hasvalue = False))
pyarg.add_option(pyargs.PyArgsOption(shortname = "t", hasvalue = False))
foundargs, remainders = pyarg.parse(["--test1", "=", "AVALUE", "-t", "remainders"])
self.assertDictContainsSubset({"test1": "AVALUE", "t": None}, foundargs)
self.assertEqual(["remainders"], remainders)
def test_should_parse_longname_with_equalsign(self):
pyarg = pyargs.PyArgs()
pyarg.add_option(pyargs.PyArgsOption(longname = "test1", hasvalue = True))
pyarg.add_option(pyargs.PyArgsOption(longname = "test2", hasvalue = True))
pyarg.add_option(pyargs.PyArgsOption(longname = "test3", hasvalue = True))
pyarg.add_option(pyargs.PyArgsOption(shortname = "t", hasvalue = False))
foundargs, remainders = pyarg.parse(["--test1=", "AVALUE", "-t", "--test2=AVALUE", "remainders"])
self.assertDictContainsSubset({"test1": "AVALUE", "test2": "AVALUE", "t": None}, foundargs)
self.assertEqual(["remainders"], remainders)
def test_should_parse_longname_with_localname(self):
pyarg = pyargs.PyArgs()
pyarg.add_option(pyargs.PyArgsOption(localname = "ppp", longname = "test1", hasvalue = True))
pyarg.add_option(pyargs.PyArgsOption(longname = "test2", hasvalue = True))
pyarg.add_option(pyargs.PyArgsOption(longname = "test3", hasvalue = True))
pyarg.add_option(pyargs.PyArgsOption(shortname = "t", hasvalue = False))
foundargs, remainders = pyarg.parse(["--test1=", "AVALUE", "-t", "--test2=AVALUE", "remainders"])
self.assertDictContainsSubset({"ppp": "AVALUE", "test2": "AVALUE", "t": None}, foundargs)
self.assertEqual(["remainders"], remainders)
def test_should_should_return_defaults(self):
pyarg = pyargs.PyArgs()
pyarg.add_option(pyargs.PyArgsOption(longname = "test1", hasvalue = True, default = "default1"))
pyarg.add_option(pyargs.PyArgsOption(longname = "test2", hasvalue = True, default = "default2"))
pyarg.add_option(pyargs.PyArgsOption(longname = "test3", hasvalue = True, default = "default3"))
pyarg.add_option(pyargs.PyArgsOption(shortname = "t", hasvalue = False))
foundargs, remainders = pyarg.parse([])
self.assertDictContainsSubset({"test1": "default1", "test2": "default2"}, foundargs)
def callback_test_function(self, name, value):
self.callback_test_called = True
def test_should_make_callback_when_parsed(self):
pyarg = pyargs.PyArgs()
self.callback_test_called = False
pyarg.add_option(
pyargs.PyArgsOption(callback = self.callback_test_function, longname = "test1", hasvalue = True))
pyarg.add_option(
pyargs.PyArgsOption(callback = self.callback_test_function, longname = "test2", hasvalue = True))
pyarg.add_option(
pyargs.PyArgsOption(callback = self.callback_test_function, longname = "test3", hasvalue = True))
pyarg.add_option(pyargs.PyArgsOption(callback = self.callback_test_function, shortname = "t", hasvalue = False))
pyarg.parse(["--test1=", "AVALUE", "-t", "--test2=AVALUE", "remainders"])
self.assertTrue(self.callback_test_called, "Callback failed")
def test_should_only_allow_values_from_set(self):
pyarg = pyargs.PyArgs()
pyarg.add_option(
pyargs.PyArgsOption(
longname = "test1",
hasvalue = True,
allowedvalues = ["default", "AVALUE", "GRASS"],
default = "default1"
)
)
pyarg.add_option(pyargs.PyArgsOption(longname = "test2", hasvalue = True, default = "default2"))
pyarg.add_option(pyargs.PyArgsOption(longname = "test3", hasvalue = True, default = "default3"))
pyarg.add_option(pyargs.PyArgsOption(shortname = "t", hasvalue = False))
with self.assertRaises(StandardError):
pyarg.parse(["--test1=", "NOTGRASS"])
pyarg.parse(["--test1=", "GRASS"])
def test_should_add_multiple_items_as_list(self):
pyarg = pyargs.PyArgs()
pyarg.add_option(pyargs.PyArgsOption(localname = "ppp", longname = "test1", hasvalue = True))
pyarg.add_option(pyargs.PyArgsOption(longname = "test2", hasvalue = True))
pyarg.add_option(pyargs.PyArgsOption(longname = "test3", hasvalue = True))
pyarg.add_option(pyargs.PyArgsOption(shortname = "t", hasvalue = True, islist = True))
foundargs, remainders = pyarg.parse(
["--test1=", "AVALUE", "-t5", "-t1", "-t3", "-t4", "-t5", "--test2=AVALUE", "remainders"])
self.assertDictContainsSubset({"ppp": "AVALUE", "test2": "AVALUE", "t": ["5", "1", "3", "4", "5"]}, foundargs)
self.assertEqual(["remainders"], remainders)
def test_should_add_multiple_items_as_list_asintegers(self):
pyarg = pyargs.PyArgs()
pyarg.add_option(pyargs.PyArgsOption(localname = "ppp", longname = "test1", hasvalue = True))
pyarg.add_option(pyargs.PyArgsOption(longname = "test2", hasvalue = True))
pyarg.add_option(pyargs.PyArgsOption(longname = "test3", hasvalue = True))
pyarg.add_option(pyargs.PyArgsOption(shortname = "t", hasvalue = True, islist = True, datatype = "int"))
foundargs, remainders = pyarg.parse(
["--test1=", "AVALUE", "-t5", "-t1", "-t3", "-t4", "-t5", "--test2=AVALUE", "remainders"])
self.assertDictContainsSubset({"ppp": "AVALUE", "test2": "AVALUE", "t": [5, 1, 3, 4, 5]}, foundargs)
self.assertEqual(["remainders"], remainders)
def test_should_add_multiple_items_as_list_asfloats(self):
pyarg = pyargs.PyArgs()
pyarg.add_option(pyargs.PyArgsOption(localname = "ppp", longname = "test1", hasvalue = True))
pyarg.add_option(pyargs.PyArgsOption(longname = "test2", hasvalue = True))
pyarg.add_option(pyargs.PyArgsOption(longname = "test3", hasvalue = True))
pyarg.add_option(pyargs.PyArgsOption(shortname = "t", hasvalue = True, islist = True, datatype = "float"))
foundargs, remainders = pyarg.parse(
["--test1=", "AVALUE", "-t5", "-t1", "-t3", "-t4", "-t5", "--test2=AVALUE", "remainders"])
self.assertDictContainsSubset({"ppp": "AVALUE", "test2": "AVALUE", "t": [5.0, 1.0, 3.0, 4.0, 5.0]}, foundargs)
self.assertEqual(["remainders"], remainders)
def test_should_add_multiple_items_as_list_asbools(self):
pyarg = pyargs.PyArgs()
pyarg.add_option(pyargs.PyArgsOption(localname = "ppp", longname = "test1", hasvalue = True))
pyarg.add_option(pyargs.PyArgsOption(longname = "test2", hasvalue = True))
pyarg.add_option(pyargs.PyArgsOption(longname = "test3", hasvalue = True))
pyarg.add_option(pyargs.PyArgsOption(shortname = "t", hasvalue = True, islist = True, datatype = "boolean"))
pyarg.add_option(pyargs.PyArgsOption(shortname = "h", hasvalue = True, islist = True, datatype = "boolean"))
foundargs, remainders = pyarg.parse(
["--test1=", "AVALUE", "-t0", "-t1", "-t3", "-t4", "-t0", "-hTrue", "-hFalse", "-htrue", "-hfalse",
"--test2=AVALUE",
"remainders"])
self.assertDictContainsSubset({"ppp": "AVALUE",
"test2": "AVALUE",
"h": [True, False, True, False],
"t": [False, True, True, True, False]},
foundargs)
self.assertEqual(["remainders"], remainders)
def test_should_not_parse_non_booleans(self):
pyarg = pyargs.PyArgs()
pyarg.add_option(pyargs.PyArgsOption(shortname = "h", hasvalue = True, islist = True, datatype = "boolean"))
with self.assertRaises(StandardError):
pyarg.parse(["-hX", "remainders"])
def test_should_not_allow_more_then_one_instance_of_singular_argument(self):
pyarg = pyargs.PyArgs()
pyarg.add_option(pyargs.PyArgsOption(shortname = "a"))
with self.assertRaises(StandardError):
pyarg.parse(["-a", "-a"])
| 55.560166
| 121
| 0.634354
| 1,389
| 13,390
| 5.951764
| 0.102952
| 0.150236
| 0.099915
| 0.128221
| 0.8292
| 0.787105
| 0.766421
| 0.734003
| 0.697109
| 0.681263
| 0
| 0.010565
| 0.222405
| 13,390
| 240
| 122
| 55.791667
| 0.783423
| 0
| 0
| 0.490291
| 0
| 0
| 0.103954
| 0
| 0
| 0
| 0
| 0
| 0.174757
| 1
| 0.126214
| false
| 0
| 0.009709
| 0
| 0.145631
| 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
|
2fa2844935e9e3fae045b641f3dbb5fa796457a4
| 108
|
py
|
Python
|
moorpy/__init__.py
|
erickaloz/MoorPy
|
a36eb864028f3d9aa4545a8f65e9caf4386b7c73
|
[
"BSD-3-Clause"
] | null | null | null |
moorpy/__init__.py
|
erickaloz/MoorPy
|
a36eb864028f3d9aa4545a8f65e9caf4386b7c73
|
[
"BSD-3-Clause"
] | null | null | null |
moorpy/__init__.py
|
erickaloz/MoorPy
|
a36eb864028f3d9aa4545a8f65e9caf4386b7c73
|
[
"BSD-3-Clause"
] | null | null | null |
# make all classes and functions in MoorPy.py available under the main package
from moorpy.MoorPy import *
| 27
| 78
| 0.796296
| 17
| 108
| 5.058824
| 0.882353
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.166667
| 108
| 3
| 79
| 36
| 0.955556
| 0.703704
| 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
|
2fa3a6e120870cb6fee9eb1079641f19a0118aff
| 61
|
py
|
Python
|
python/testData/refactoring/changeSignature/positionalOnlyMarkerPropagatesNewParameterSignatureDefaultToCall.after.py
|
Sajaki/intellij-community
|
6748af2c40567839d11fd652ec77ba263c074aad
|
[
"Apache-2.0"
] | 2
|
2019-04-28T07:48:50.000Z
|
2020-12-11T14:18:08.000Z
|
python/testData/refactoring/changeSignature/positionalOnlyMarkerPropagatesNewParameterSignatureDefaultToCall.after.py
|
Sajaki/intellij-community
|
6748af2c40567839d11fd652ec77ba263c074aad
|
[
"Apache-2.0"
] | 1
|
2020-07-30T19:04:47.000Z
|
2020-07-30T19:04:47.000Z
|
python/testData/refactoring/changeSignature/positionalOnlyMarkerPropagatesNewParameterSignatureDefaultToCall.after.py
|
bradleesand/intellij-community
|
750ff9c10333c9c1278c00dbe8d88c877b1b9749
|
[
"Apache-2.0"
] | 1
|
2020-10-15T05:56:42.000Z
|
2020-10-15T05:56:42.000Z
|
def func(a=None, b=None, /):
pass
func(None, 2)
func()
| 8.714286
| 28
| 0.557377
| 11
| 61
| 3.090909
| 0.636364
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.021277
| 0.229508
| 61
| 6
| 29
| 10.166667
| 0.702128
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| true
| 0.25
| 0
| 0
| 0.25
| 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
| 1
| 0
| 0
| 0
| 0
|
0
| 5
|
2fffe311156711250cd7b0baf8dd467605c49074
| 829
|
py
|
Python
|
tests/snippets/bytearray.py
|
EdwardSam4/RustPython
|
7ec6a7ffd1afbfe71322cbace161483b6877d4a5
|
[
"MIT"
] | null | null | null |
tests/snippets/bytearray.py
|
EdwardSam4/RustPython
|
7ec6a7ffd1afbfe71322cbace161483b6877d4a5
|
[
"MIT"
] | null | null | null |
tests/snippets/bytearray.py
|
EdwardSam4/RustPython
|
7ec6a7ffd1afbfe71322cbace161483b6877d4a5
|
[
"MIT"
] | null | null | null |
#__getitem__ not implemented yet
#a = bytearray(b'abc')
#assert a[0] == b'a'
#assert a[1] == b'b'
assert len(bytearray([1,2,3])) == 3
assert bytearray(b'1a23').isalnum()
assert not bytearray(b'1%a23').isalnum()
assert bytearray(b'abc').isalpha()
assert not bytearray(b'abc1').isalpha()
# travis doesn't like this
#assert bytearray(b'xyz').isascii()
#assert not bytearray([128, 157, 32]).isascii()
assert bytearray(b'1234567890').isdigit()
assert not bytearray(b'12ab').isdigit()
assert bytearray(b'lower').islower()
assert not bytearray(b'Super Friends').islower()
assert bytearray(b' \n\t').isspace()
assert not bytearray(b'\td\n').isspace()
assert bytearray(b'UPPER').isupper()
assert not bytearray(b'tuPpEr').isupper()
assert bytearray(b'Is Title Case').istitle()
assert not bytearray(b'is Not title casE').istitle()
| 25.90625
| 52
| 0.71532
| 128
| 829
| 4.601563
| 0.359375
| 0.271647
| 0.217317
| 0.225806
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.044177
| 0.098914
| 829
| 31
| 53
| 26.741935
| 0.744311
| 0.235223
| 0
| 0
| 0
| 0
| 0.157895
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
6434f0fbba8950c93bce1082c23034477668af3b
| 177
|
py
|
Python
|
util/make_dereferenced_release_schema.py
|
Inova-MPRJ/standard
|
e979b5b8193da70b21cc08034f14bc4950fd389b
|
[
"Apache-2.0"
] | 1
|
2021-04-01T12:03:24.000Z
|
2021-04-01T12:03:24.000Z
|
util/make_dereferenced_release_schema.py
|
Inova-MPRJ/standard
|
e979b5b8193da70b21cc08034f14bc4950fd389b
|
[
"Apache-2.0"
] | null | null | null |
util/make_dereferenced_release_schema.py
|
Inova-MPRJ/standard
|
e979b5b8193da70b21cc08034f14bc4950fd389b
|
[
"Apache-2.0"
] | null | null | null |
import jsonref
from helper import json_dump, json_load
if __name__ == '__main__':
json_dump('dereferenced-release-schema.json', json_load('release-schema.json', jsonref))
| 25.285714
| 92
| 0.768362
| 24
| 177
| 5.166667
| 0.541667
| 0.129032
| 0.274194
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.112994
| 177
| 6
| 93
| 29.5
| 0.789809
| 0
| 0
| 0
| 0
| 0
| 0.333333
| 0.180791
| 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
|
ff28943387e1a09bb302aaf02e29b1daa3e7eb90
| 80
|
py
|
Python
|
yosaipy2/core/cache/__init__.py
|
jellybean4/yosaipy2
|
6c57f1ed2eedf25f8c0b06773a4d2c3c2a01dc26
|
[
"Apache-2.0"
] | null | null | null |
yosaipy2/core/cache/__init__.py
|
jellybean4/yosaipy2
|
6c57f1ed2eedf25f8c0b06773a4d2c3c2a01dc26
|
[
"Apache-2.0"
] | null | null | null |
yosaipy2/core/cache/__init__.py
|
jellybean4/yosaipy2
|
6c57f1ed2eedf25f8c0b06773a4d2c3c2a01dc26
|
[
"Apache-2.0"
] | null | null | null |
from cache_handler import DPCacheHandler
from backend import CustomRedisBackend
| 26.666667
| 40
| 0.9
| 9
| 80
| 7.888889
| 0.777778
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.1
| 80
| 2
| 41
| 40
| 0.986111
| 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
|
ff66a94b6f723ddd06e323fe31815e16d9a3144a
| 109
|
py
|
Python
|
leetCode/algorithms/medium/super_pow.py
|
ferhatelmas/algo
|
a7149c7a605708bc01a5cd30bf5455644cefd04d
|
[
"WTFPL"
] | 25
|
2015-01-21T16:39:18.000Z
|
2021-05-24T07:01:24.000Z
|
leetCode/algorithms/medium/super_pow.py
|
gauravsingh58/algo
|
397859a53429e7a585e5f6964ad24146c6261326
|
[
"WTFPL"
] | 2
|
2020-09-30T19:39:36.000Z
|
2020-10-01T17:15:16.000Z
|
leetCode/algorithms/medium/super_pow.py
|
ferhatelmas/algo
|
a7149c7a605708bc01a5cd30bf5455644cefd04d
|
[
"WTFPL"
] | 15
|
2015-01-21T16:39:27.000Z
|
2020-10-01T17:00:22.000Z
|
class Solution(object):
def superPow(self, a, b):
return pow(a, int("".join(map(str, b))), 1337)
| 27.25
| 54
| 0.587156
| 17
| 109
| 3.764706
| 0.882353
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.046512
| 0.211009
| 109
| 3
| 55
| 36.333333
| 0.697674
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0
| 0.333333
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 5
|
ff77a205674c3810fec4aff00d10994be34bb548
| 150
|
py
|
Python
|
tests/test_import.py
|
bihealth/sodar-cli
|
5fe56513565222eef125752119e634d36b3c8772
|
[
"MIT"
] | null | null | null |
tests/test_import.py
|
bihealth/sodar-cli
|
5fe56513565222eef125752119e634d36b3c8772
|
[
"MIT"
] | 5
|
2021-04-29T12:54:39.000Z
|
2021-08-16T15:05:33.000Z
|
tests/test_import.py
|
bihealth/sodar-cli
|
5fe56513565222eef125752119e634d36b3c8772
|
[
"MIT"
] | null | null | null |
"""Test basic imports."""
import sodar_cli
from sodar_cli import __main__
def test_example():
assert sodar_cli.__version__
assert __main__
| 15
| 32
| 0.753333
| 20
| 150
| 4.85
| 0.6
| 0.247423
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.173333
| 150
| 9
| 33
| 16.666667
| 0.782258
| 0.126667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.4
| 1
| 0.2
| true
| 0
| 0.4
| 0
| 0.6
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
ffa365f6f5d2cc0e400f7422c3980646ff04de6c
| 121
|
py
|
Python
|
gentePrevalente/Empresas/admin.py
|
LeonardoRivero/PruebaTecnica
|
5395951acd44ef29241da0c41516072da171b696
|
[
"BSD-2-Clause"
] | null | null | null |
gentePrevalente/Empresas/admin.py
|
LeonardoRivero/PruebaTecnica
|
5395951acd44ef29241da0c41516072da171b696
|
[
"BSD-2-Clause"
] | null | null | null |
gentePrevalente/Empresas/admin.py
|
LeonardoRivero/PruebaTecnica
|
5395951acd44ef29241da0c41516072da171b696
|
[
"BSD-2-Clause"
] | null | null | null |
from django.contrib import admin
from .models import Empresa
# Register your models here.
admin.site.register(Empresa)
| 17.285714
| 32
| 0.801653
| 17
| 121
| 5.705882
| 0.647059
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.132231
| 121
| 6
| 33
| 20.166667
| 0.92381
| 0.214876
| 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
|
440f84324001863eef3a82c405619c1a32dea793
| 270
|
py
|
Python
|
src/Settings.py
|
strifel/githubYearCommits
|
524df896b6ddb64fceb868b1c013bcd6d81aafe0
|
[
"MIT"
] | null | null | null |
src/Settings.py
|
strifel/githubYearCommits
|
524df896b6ddb64fceb868b1c013bcd6d81aafe0
|
[
"MIT"
] | 14
|
2019-05-19T19:57:03.000Z
|
2021-06-02T00:27:51.000Z
|
src/Settings.py
|
felixletsplayYT/githubYearCommits
|
524df896b6ddb64fceb868b1c013bcd6d81aafe0
|
[
"MIT"
] | 3
|
2019-05-19T17:57:57.000Z
|
2019-10-06T08:50:33.000Z
|
validSettings = {
"password": ".*",
"cache": "^\d+$",
"allow-force": "^(true|false)$",
"allow-user-unregistered": "^(true|false)$",
"duration": "^(year|eternity)$",
"dark-mode-default": "^(true|false)$",
"show-commit-mail": "^(true|false)$"
}
| 30
| 48
| 0.52963
| 26
| 270
| 5.5
| 0.730769
| 0.251748
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.166667
| 270
| 9
| 49
| 30
| 0.635556
| 0
| 0
| 0
| 0
| 0
| 0.619926
| 0.084871
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.111111
| 0
| 0
| 0
| 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
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 5
|
4437b033ddddb094c2d451ac6c45789c9a9aa587
| 107
|
py
|
Python
|
app/core/admin.py
|
Alohomora-team/AlohomoraAPI
|
8c5aefa37c16a1849e5af72b7d130a132d198eb0
|
[
"MIT"
] | 2
|
2019-10-25T02:35:12.000Z
|
2019-11-20T21:18:42.000Z
|
app/core/admin.py
|
Alohomora-team/AlohomoraAPI
|
8c5aefa37c16a1849e5af72b7d130a132d198eb0
|
[
"MIT"
] | 65
|
2019-10-23T12:43:39.000Z
|
2022-02-10T13:18:08.000Z
|
app/core/admin.py
|
Alohomora-team/AlohomoraAPI
|
8c5aefa37c16a1849e5af72b7d130a132d198eb0
|
[
"MIT"
] | null | null | null |
"""Imports the automatic admin interface"""
from django.contrib import admin
# Register your models here.
| 21.4
| 43
| 0.775701
| 14
| 107
| 5.928571
| 0.928571
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.140187
| 107
| 4
| 44
| 26.75
| 0.902174
| 0.607477
| 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
|
445a304f57a95a5bee1f82b024112fdb53787d86
| 47
|
py
|
Python
|
tests/__init__.py
|
qinxian1989/checkfileencoding
|
d31faf4efaf12e5b0dcb0232933bc59197181567
|
[
"MIT"
] | null | null | null |
tests/__init__.py
|
qinxian1989/checkfileencoding
|
d31faf4efaf12e5b0dcb0232933bc59197181567
|
[
"MIT"
] | null | null | null |
tests/__init__.py
|
qinxian1989/checkfileencoding
|
d31faf4efaf12e5b0dcb0232933bc59197181567
|
[
"MIT"
] | null | null | null |
"""Unit test package for checkfileencoding."""
| 23.5
| 46
| 0.744681
| 5
| 47
| 7
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.106383
| 47
| 1
| 47
| 47
| 0.833333
| 0.851064
| 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
|
4484ac6f196205a6b37e9129c0467c3f78dbff9f
| 102
|
py
|
Python
|
003_File_created_at_notepad.py
|
sklmoorthy/python-simplilearn
|
b062d26c0301e3603cf6487a3260cc388dafcc18
|
[
"Apache-2.0"
] | 1
|
2021-12-27T04:21:19.000Z
|
2021-12-27T04:21:19.000Z
|
003_File_created_at_notepad.py
|
sklmoorthy/python-simplilearn
|
b062d26c0301e3603cf6487a3260cc388dafcc18
|
[
"Apache-2.0"
] | null | null | null |
003_File_created_at_notepad.py
|
sklmoorthy/python-simplilearn
|
b062d26c0301e3603cf6487a3260cc388dafcc18
|
[
"Apache-2.0"
] | null | null | null |
# This is created from Notebook++
print("Hello, I am SKL")
print("Welcome to my learning space")
| 20.4
| 37
| 0.686275
| 16
| 102
| 4.375
| 0.9375
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.196078
| 102
| 5
| 37
| 20.4
| 0.853659
| 0.303922
| 0
| 0
| 0
| 0
| 0.651515
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 5
|
4499c23b1c8a1d08e375e89ea1b81764b4e04830
| 266
|
py
|
Python
|
tests/common/exceptions.py
|
affonsobrian/Geld
|
297afbf987ffc7618f9e476e52bf8182863ff4a8
|
[
"MIT"
] | 2
|
2021-11-21T20:46:11.000Z
|
2021-11-23T21:53:38.000Z
|
tests/common/exceptions.py
|
affonsobrian/Geld
|
297afbf987ffc7618f9e476e52bf8182863ff4a8
|
[
"MIT"
] | null | null | null |
tests/common/exceptions.py
|
affonsobrian/Geld
|
297afbf987ffc7618f9e476e52bf8182863ff4a8
|
[
"MIT"
] | null | null | null |
class BaseUrlNotDefined(Exception):
pass
class InvalidCurrencyCode(Exception):
pass
class InvalidDate(Exception):
pass
class InvalidAmount(Exception):
pass
class APICallError(Exception):
pass
class HelperNotDefined(Exception):
pass
| 11.565217
| 37
| 0.736842
| 24
| 266
| 8.166667
| 0.375
| 0.397959
| 0.459184
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.195489
| 266
| 22
| 38
| 12.090909
| 0.915888
| 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
|
922137604cddfaee710b07a515f42ed789258189
| 252
|
py
|
Python
|
qonduit/visualization/pulse.py
|
adgt/qondu
|
9b4b05766f1ac98e8325ad9a53eb6b2573f587d1
|
[
"Apache-2.0"
] | 9
|
2021-02-13T03:06:09.000Z
|
2021-12-30T22:05:43.000Z
|
qonduit/visualization/pulse.py
|
adgt/qondu
|
9b4b05766f1ac98e8325ad9a53eb6b2573f587d1
|
[
"Apache-2.0"
] | 2
|
2021-02-11T23:45:38.000Z
|
2021-12-13T00:06:01.000Z
|
qonduit/visualization/pulse.py
|
adgt/qondu
|
9b4b05766f1ac98e8325ad9a53eb6b2573f587d1
|
[
"Apache-2.0"
] | 2
|
2021-02-17T11:45:40.000Z
|
2022-03-10T16:14:52.000Z
|
import ipywidgets as widgets
from qonduit._backend import *
@pulsemaker
@default
def design_schedule():
pass
@pulsemaker
@default
def design_pulse():
pass
@pulsemaker
@default
def plot_pulse_schedule(phases, freqs, pulses, samples):
pass
| 14.823529
| 56
| 0.761905
| 31
| 252
| 6.032258
| 0.612903
| 0.272727
| 0.320856
| 0.278075
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.15873
| 252
| 17
| 57
| 14.823529
| 0.882075
| 0
| 0
| 0.642857
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.214286
| false
| 0.214286
| 0.142857
| 0
| 0.357143
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 5
|
92361858e8695bccf35a119670f66230f45de693
| 69
|
py
|
Python
|
src/kvt/samplers/__init__.py
|
Ynakatsuka/nishika-22
|
72994cab16486b3a26686642ad72a29b6761b46d
|
[
"BSD-2-Clause"
] | 4
|
2022-02-01T05:04:53.000Z
|
2022-02-02T04:16:31.000Z
|
src/kvt/samplers/__init__.py
|
Ynakatsuka/nishika-22
|
72994cab16486b3a26686642ad72a29b6761b46d
|
[
"BSD-2-Clause"
] | null | null | null |
src/kvt/samplers/__init__.py
|
Ynakatsuka/nishika-22
|
72994cab16486b3a26686642ad72a29b6761b46d
|
[
"BSD-2-Clause"
] | null | null | null |
# flake8: noqa
from .text import BucketSampler, SmartBatchingSampler
| 23
| 53
| 0.826087
| 7
| 69
| 8.142857
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.016393
| 0.115942
| 69
| 2
| 54
| 34.5
| 0.918033
| 0.173913
| 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
|
92675c9f9c32c0365ec3f2a9f0951e92bf9ea630
| 141
|
py
|
Python
|
seiscm/__init__.py
|
gatechzhu/scm
|
b711f8fc85532dbc944c21e4eed61adfb7aed8c7
|
[
"MIT"
] | 15
|
2017-05-23T08:38:09.000Z
|
2022-03-20T08:04:17.000Z
|
seiscm/__init__.py
|
gatechzhu/scm
|
b711f8fc85532dbc944c21e4eed61adfb7aed8c7
|
[
"MIT"
] | 1
|
2022-01-24T08:57:24.000Z
|
2022-01-27T09:05:19.000Z
|
seiscm/__init__.py
|
gatechzhu/scm
|
b711f8fc85532dbc944c21e4eed61adfb7aed8c7
|
[
"MIT"
] | 4
|
2017-09-20T14:37:20.000Z
|
2020-10-31T12:58:37.000Z
|
# -*- coding: utf-8 -*-
from __future__ import print_function, absolute_import, division
from .seiscm import bwr, seismic, phase, frequency
| 28.2
| 64
| 0.758865
| 18
| 141
| 5.611111
| 0.833333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.008197
| 0.134752
| 141
| 4
| 65
| 35.25
| 0.819672
| 0.148936
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0.5
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 1
|
0
| 5
|
92a9e53c03abb536390eb01706efe1cc9a7424fc
| 226
|
py
|
Python
|
ex031 - distancia percorrida.py
|
CelsoAntunesNogueira/Phyton3
|
3a7ec8d7a6f996b2d3c36a9c6d239707e76aace4
|
[
"MIT"
] | null | null | null |
ex031 - distancia percorrida.py
|
CelsoAntunesNogueira/Phyton3
|
3a7ec8d7a6f996b2d3c36a9c6d239707e76aace4
|
[
"MIT"
] | null | null | null |
ex031 - distancia percorrida.py
|
CelsoAntunesNogueira/Phyton3
|
3a7ec8d7a6f996b2d3c36a9c6d239707e76aace4
|
[
"MIT"
] | null | null | null |
a = float(input('Quantos km é sua viagem?'))
print('Sua viagem é de {} km' .format(a))
if a > 200:
print('O preço de sua viagem é R${}'.format((a) * 0.45))
else:
print('O preço de sua viagem é R${}'.format((a)* 0.50))
| 32.285714
| 60
| 0.59292
| 44
| 226
| 3.045455
| 0.454545
| 0.268657
| 0.223881
| 0.19403
| 0.477612
| 0.477612
| 0.477612
| 0.477612
| 0.477612
| 0.477612
| 0
| 0.049451
| 0.19469
| 226
| 6
| 61
| 37.666667
| 0.686813
| 0
| 0
| 0
| 0
| 0
| 0.446903
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.5
| 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
|
2ba1555254c5297922498362a5443c1bc9957029
| 98
|
py
|
Python
|
src/feedback/admin.py
|
DevTeamSCH/vikoverflow-backend
|
bac0a5f8d0f18bea4d99e0d94ee322feb6a8039e
|
[
"MIT"
] | null | null | null |
src/feedback/admin.py
|
DevTeamSCH/vikoverflow-backend
|
bac0a5f8d0f18bea4d99e0d94ee322feb6a8039e
|
[
"MIT"
] | 24
|
2018-10-09T12:34:09.000Z
|
2022-02-10T11:01:32.000Z
|
src/feedback/admin.py
|
DevTeamSCH/vikoverflow-backend
|
bac0a5f8d0f18bea4d99e0d94ee322feb6a8039e
|
[
"MIT"
] | null | null | null |
from django.contrib import admin
from feedback import models
admin.site.register(models.Ticket)
| 16.333333
| 34
| 0.826531
| 14
| 98
| 5.785714
| 0.714286
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.112245
| 98
| 5
| 35
| 19.6
| 0.931034
| 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
|
2bde6de144b0eddb9c449543ab878b5932f1eed0
| 647
|
py
|
Python
|
Pessoa.py
|
querneu/pooii-homework
|
987a1d5a51d1ddc8f92891b65c6a545df7241cc2
|
[
"MIT"
] | null | null | null |
Pessoa.py
|
querneu/pooii-homework
|
987a1d5a51d1ddc8f92891b65c6a545df7241cc2
|
[
"MIT"
] | null | null | null |
Pessoa.py
|
querneu/pooii-homework
|
987a1d5a51d1ddc8f92891b65c6a545df7241cc2
|
[
"MIT"
] | null | null | null |
# Criação de Classe pai Pessoa com atributos nome e sobrenome.
class Pessoa:
# Metodo construtor vazio para criação de instancias vazias.
def __init__(self):
super().__init__()
pass
# GetNome para retornar o valor de nome.
def getNome(self):
return self._nome
# SetNome para Inserir o valor de nome
def setNome(self,nome):
self._nome = nome
# GetSobrenome para retornar o valor de sobrenome
def getSobrenome(self):
return self._sobrenome
# SetSobrenome para Inserir o valor de sobrenome
def setSobrenome(self,sobrenome):
self._sobrenome = sobrenome
| 26.958333
| 64
| 0.672334
| 80
| 647
| 5.2875
| 0.3875
| 0.056738
| 0.07565
| 0.085106
| 0.274232
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.268934
| 647
| 24
| 65
| 26.958333
| 0.894292
| 0.448223
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.041667
| 0
| 1
| 0.416667
| false
| 0.083333
| 0
| 0.166667
| 0.666667
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
|
0
| 5
|
920bd41df841f165285c4c8bd903e399bb218e94
| 120
|
py
|
Python
|
kalamari/__init__.py
|
lowkorn/kalamari
|
501c84bcdea299e2449a7064a454e700ff735aa5
|
[
"MIT"
] | 1
|
2018-10-01T01:05:25.000Z
|
2018-10-01T01:05:25.000Z
|
kalamari/__init__.py
|
lowkorn/kalamari
|
501c84bcdea299e2449a7064a454e700ff735aa5
|
[
"MIT"
] | 6
|
2018-10-05T00:42:33.000Z
|
2019-09-26T15:29:00.000Z
|
kalamari/__init__.py
|
lowkorn/kalamari
|
501c84bcdea299e2449a7064a454e700ff735aa5
|
[
"MIT"
] | 6
|
2018-10-03T01:33:08.000Z
|
2018-10-07T15:17:03.000Z
|
from .kalamari import smartJSON
from .tree import Node, Tree
from .exceptions import TreeHeightError, OverrideRootError
| 30
| 58
| 0.841667
| 14
| 120
| 7.214286
| 0.642857
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.116667
| 120
| 3
| 59
| 40
| 0.95283
| 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
|
a61eb7e7fe9b4a2c3055cd6931899ef4acfdb123
| 161
|
py
|
Python
|
src/python_lei/exceptions.py
|
jdvala/python-lei
|
b85a0d0bc93ee76cf77c4f2fe73038ae48a937c4
|
[
"MIT"
] | 12
|
2020-06-08T13:05:23.000Z
|
2022-01-03T23:53:34.000Z
|
src/python_lei/exceptions.py
|
jdvala/python-lei
|
b85a0d0bc93ee76cf77c4f2fe73038ae48a937c4
|
[
"MIT"
] | 1
|
2020-06-08T10:40:21.000Z
|
2020-06-08T10:40:21.000Z
|
src/python_lei/exceptions.py
|
jdvala/python-lei
|
b85a0d0bc93ee76cf77c4f2fe73038ae48a937c4
|
[
"MIT"
] | 5
|
2020-06-30T21:28:43.000Z
|
2022-01-03T23:53:39.000Z
|
class RecordNotFound(Exception):
pass
class InvalidLEI(Exception):
pass
class InvalidISIN(Exception):
pass
class NotFound(Exception):
pass
| 10.733333
| 32
| 0.714286
| 16
| 161
| 7.1875
| 0.4375
| 0.452174
| 0.469565
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.21118
| 161
| 14
| 33
| 11.5
| 0.905512
| 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
|
a62d5efc519d6664aa94018ebc4cec9a3827141a
| 123
|
py
|
Python
|
pixie_plugin/task_queue/run_worker.py
|
bpschmitt/nr-pixie-security-plugin
|
adadfaebbd79eb04cf1d8e768fb5f0a50effd5ba
|
[
"Apache-2.0"
] | null | null | null |
pixie_plugin/task_queue/run_worker.py
|
bpschmitt/nr-pixie-security-plugin
|
adadfaebbd79eb04cf1d8e768fb5f0a50effd5ba
|
[
"Apache-2.0"
] | 2
|
2021-12-13T22:43:23.000Z
|
2021-12-14T00:00:39.000Z
|
pixie_plugin/task_queue/run_worker.py
|
bpschmitt/nr-pixie-security-plugin
|
adadfaebbd79eb04cf1d8e768fb5f0a50effd5ba
|
[
"Apache-2.0"
] | 2
|
2022-02-14T23:10:24.000Z
|
2022-02-15T04:26:19.000Z
|
from pixie_plugin.task_queue.pixie_plugin_worker import get_worker
worker = get_worker()
worker.work(with_scheduler=True)
| 24.6
| 66
| 0.853659
| 19
| 123
| 5.157895
| 0.631579
| 0.22449
| 0.306122
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.073171
| 123
| 4
| 67
| 30.75
| 0.859649
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 0.333333
| 0
| 1
| 0
| 0
| null | 1
| 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
|
a63e2f082af2cf9435a7c55e91fa27d68b1cf124
| 247
|
py
|
Python
|
elastica/_elastica_numpy.py
|
yeonsu-jung/PyElastica
|
fee87b9da22e310ff925c16fdc839bf8405c51a4
|
[
"MIT"
] | null | null | null |
elastica/_elastica_numpy.py
|
yeonsu-jung/PyElastica
|
fee87b9da22e310ff925c16fdc839bf8405c51a4
|
[
"MIT"
] | 1
|
2022-01-06T11:30:20.000Z
|
2022-02-07T07:11:22.000Z
|
elastica/_elastica_numpy.py
|
yeonsu-jung/PyElastica
|
fee87b9da22e310ff925c16fdc839bf8405c51a4
|
[
"MIT"
] | null | null | null |
class _elastica_numpy:
"""The purpose is to throw deprecation error to people previously
using _elastica_numpy module. Please remove this exception after
v0.3."""
raise ImportError("The module _elastica_numpy is now deprecated.")
| 35.285714
| 70
| 0.757085
| 33
| 247
| 5.484848
| 0.757576
| 0.21547
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.009901
| 0.182186
| 247
| 6
| 71
| 41.166667
| 0.886139
| 0.538462
| 0
| 0
| 0
| 0
| 0.45
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 1
| 0
| 0
| 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
| 1
| 0
|
0
| 5
|
a647376dddf0b2dce09ade43990c3cb379537f8c
| 88
|
py
|
Python
|
ScientificComputing/q5q1.py
|
mr-ice/pipython
|
ea27af520946cb710cb717815be625489fc8a1a3
|
[
"MIT"
] | null | null | null |
ScientificComputing/q5q1.py
|
mr-ice/pipython
|
ea27af520946cb710cb717815be625489fc8a1a3
|
[
"MIT"
] | null | null | null |
ScientificComputing/q5q1.py
|
mr-ice/pipython
|
ea27af520946cb710cb717815be625489fc8a1a3
|
[
"MIT"
] | null | null | null |
"""
junk
"""
print "Hello World"
if __name__=="__main__":
print "Hello again"
| 8.8
| 25
| 0.590909
| 10
| 88
| 4.4
| 0.8
| 0.454545
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.238636
| 88
| 9
| 26
| 9.777778
| 0.656716
| 0
| 0
| 0
| 0
| 0
| 0.405405
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0.666667
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 5
|
a6a5fb7418b3045cdcbadd5888e236d93ca7b075
| 171
|
py
|
Python
|
Lintcode/Tag_String/422. Length of Last Word.py
|
ctc316/algorithm-python
|
ac4580d55e05e93e407c6156c9bb801808027d60
|
[
"MIT"
] | null | null | null |
Lintcode/Tag_String/422. Length of Last Word.py
|
ctc316/algorithm-python
|
ac4580d55e05e93e407c6156c9bb801808027d60
|
[
"MIT"
] | null | null | null |
Lintcode/Tag_String/422. Length of Last Word.py
|
ctc316/algorithm-python
|
ac4580d55e05e93e407c6156c9bb801808027d60
|
[
"MIT"
] | null | null | null |
class Solution:
"""
@param s: A string
@return: the length of last word
"""
def lengthOfLastWord(self, s):
return len(s.strip().split(" ")[-1])
| 24.428571
| 44
| 0.561404
| 22
| 171
| 4.363636
| 0.863636
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.008065
| 0.274854
| 171
| 7
| 44
| 24.428571
| 0.766129
| 0.298246
| 0
| 0
| 0
| 0
| 0.009901
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0
| 0.333333
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 5
|
a6a9b0d0e483fe4926ee74f49acdc92b891170fa
| 327
|
py
|
Python
|
web/flask/app/forms.py
|
brianbruggeman/ideal_gas_law
|
2e951680a1178dc5773c2be7f6d64981487f9f71
|
[
"Apache-2.0"
] | null | null | null |
web/flask/app/forms.py
|
brianbruggeman/ideal_gas_law
|
2e951680a1178dc5773c2be7f6d64981487f9f71
|
[
"Apache-2.0"
] | null | null | null |
web/flask/app/forms.py
|
brianbruggeman/ideal_gas_law
|
2e951680a1178dc5773c2be7f6d64981487f9f71
|
[
"Apache-2.0"
] | null | null | null |
from flask.ext.wtf import Form
from wtforms import DecimalField, validators
class GasLaw(Form):
pressure = DecimalField('Pressure', validators=[validators.optional()])
volume = DecimalField('Volume', validators=[validators.optional()])
temperature = DecimalField('Temperature', validators=[validators.optional()])
| 40.875
| 81
| 0.761468
| 32
| 327
| 7.78125
| 0.46875
| 0.240964
| 0.337349
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.110092
| 327
| 7
| 82
| 46.714286
| 0.85567
| 0
| 0
| 0
| 0
| 0
| 0.076453
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 1
| 0
| 0
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
a6d8750ae90f6d143cb98aed0c04d90b8b195567
| 57
|
py
|
Python
|
src/sage/tensor/modules/all.py
|
switzel/sage
|
7eb8510dacf61b691664cd8f1d2e75e5d473e5a0
|
[
"BSL-1.0"
] | null | null | null |
src/sage/tensor/modules/all.py
|
switzel/sage
|
7eb8510dacf61b691664cd8f1d2e75e5d473e5a0
|
[
"BSL-1.0"
] | null | null | null |
src/sage/tensor/modules/all.py
|
switzel/sage
|
7eb8510dacf61b691664cd8f1d2e75e5d473e5a0
|
[
"BSL-1.0"
] | 1
|
2020-07-24T12:20:37.000Z
|
2020-07-24T12:20:37.000Z
|
from finite_rank_free_module import FiniteRankFreeModule
| 28.5
| 56
| 0.929825
| 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
|
a6ee267ec679316c1af4bc17ad0b37e7c54b627d
| 197
|
py
|
Python
|
src/car.py
|
zodiac403/demo-pi-unit
|
f13c5d164554b68a970537d2a6341237b5cbeac2
|
[
"Apache-2.0"
] | null | null | null |
src/car.py
|
zodiac403/demo-pi-unit
|
f13c5d164554b68a970537d2a6341237b5cbeac2
|
[
"Apache-2.0"
] | null | null | null |
src/car.py
|
zodiac403/demo-pi-unit
|
f13c5d164554b68a970537d2a6341237b5cbeac2
|
[
"Apache-2.0"
] | null | null | null |
class Car:
"""Unit under test."""
def __init__(self, speed):
self.speed = speed
def getSpeed(self):
return self.speed
def brake(self):
self.speed = 0
| 16.416667
| 30
| 0.543147
| 24
| 197
| 4.291667
| 0.541667
| 0.349515
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.007692
| 0.340102
| 197
| 11
| 31
| 17.909091
| 0.784615
| 0.081218
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.428571
| false
| 0
| 0
| 0.142857
| 0.714286
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 5
|
471c38b0cbc06a764cd6551901b4417590f2b336
| 60
|
py
|
Python
|
enthought/pyface/ui/qt4/directory_dialog.py
|
enthought/etsproxy
|
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
|
[
"BSD-3-Clause"
] | 3
|
2016-12-09T06:05:18.000Z
|
2018-03-01T13:00:29.000Z
|
enthought/pyface/ui/qt4/directory_dialog.py
|
enthought/etsproxy
|
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
|
[
"BSD-3-Clause"
] | 1
|
2020-12-02T00:51:32.000Z
|
2020-12-02T08:48:55.000Z
|
enthought/pyface/ui/qt4/directory_dialog.py
|
enthought/etsproxy
|
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
|
[
"BSD-3-Clause"
] | null | null | null |
# proxy module
from pyface.ui.qt4.directory_dialog import *
| 20
| 44
| 0.8
| 9
| 60
| 5.222222
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.018868
| 0.116667
| 60
| 2
| 45
| 30
| 0.867925
| 0.2
| 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
|
472a6658cd6cba66a7ebd5174da5954a013007a5
| 50
|
py
|
Python
|
installers/sasview_console.py
|
opendatafit/sasview
|
c470220eecfc9f6d8a0e27e2ea8919dcb1b38e39
|
[
"BSD-3-Clause"
] | null | null | null |
installers/sasview_console.py
|
opendatafit/sasview
|
c470220eecfc9f6d8a0e27e2ea8919dcb1b38e39
|
[
"BSD-3-Clause"
] | 1
|
2021-09-20T13:20:35.000Z
|
2021-09-20T13:20:35.000Z
|
installers/sasview_console.py
|
opendatafit/sasview
|
c470220eecfc9f6d8a0e27e2ea8919dcb1b38e39
|
[
"BSD-3-Clause"
] | null | null | null |
from sas.sasview.sasview import run_cli
run_cli()
| 16.666667
| 39
| 0.82
| 9
| 50
| 4.333333
| 0.666667
| 0.307692
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.1
| 50
| 2
| 40
| 25
| 0.866667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
5b44b76b7b390ef8fbab7c974516cb6d89383d8f
| 307
|
py
|
Python
|
release/cs_submitter/homepage/views.py
|
kvswim/kv_jhucs_coursesubmit
|
a00f2d1ca52204857bdf34271e13d97b424fcfca
|
[
"MIT"
] | null | null | null |
release/cs_submitter/homepage/views.py
|
kvswim/kv_jhucs_coursesubmit
|
a00f2d1ca52204857bdf34271e13d97b424fcfca
|
[
"MIT"
] | null | null | null |
release/cs_submitter/homepage/views.py
|
kvswim/kv_jhucs_coursesubmit
|
a00f2d1ca52204857bdf34271e13d97b424fcfca
|
[
"MIT"
] | null | null | null |
#Kyle Verdeyen
#Independent Study, Summer 2017
#Joanne Selinski
#View for homepage. Renders index.html for any request.
from django.shortcuts import render_to_response
from django.template import RequestContext
# Create your views here.
def index(request):
return render_to_response('homepage/index.html')
| 30.7
| 55
| 0.820847
| 43
| 307
| 5.767442
| 0.72093
| 0.072581
| 0.129032
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.014652
| 0.110749
| 307
| 9
| 56
| 34.111111
| 0.893773
| 0.442997
| 0
| 0
| 0
| 0
| 0.114458
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.5
| 0.25
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 1
| 1
| 0
|
0
| 5
|
5b8343f4463f5c5cd8845f6c03f10184bba3337d
| 42
|
py
|
Python
|
stream/__init__.py
|
diwu1990/UnaryComputingSim
|
1a4746b7bcc2fcde5144a8b42fc94e6f5cd82b8e
|
[
"MIT"
] | 1
|
2020-06-24T09:54:06.000Z
|
2020-06-24T09:54:06.000Z
|
stream/__init__.py
|
RuokaiYin/UnarySim
|
343ff9abf356a63d526b1df8eb946ad528690a27
|
[
"MIT"
] | null | null | null |
stream/__init__.py
|
RuokaiYin/UnarySim
|
343ff9abf356a63d526b1df8eb946ad528690a27
|
[
"MIT"
] | null | null | null |
from .gen import *
from .shuffle import *
| 14
| 22
| 0.714286
| 6
| 42
| 5
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.190476
| 42
| 2
| 23
| 21
| 0.882353
| 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
|
5bc1397ebab581cde9c0a0ff13780ab8ccde779f
| 23
|
py
|
Python
|
software/python/simple_pendulum/utilities/filters/__init__.py
|
alopezrivera/torque_limited_simple_pendulum
|
2164a41d65c16743ba260a79a04a04cdd72c3903
|
[
"BSD-3-Clause"
] | 15
|
2021-10-16T04:50:34.000Z
|
2022-03-26T23:54:19.000Z
|
software/python/simple_pendulum/utilities/filters/__init__.py
|
alopezrivera/torque_limited_simple_pendulum
|
2164a41d65c16743ba260a79a04a04cdd72c3903
|
[
"BSD-3-Clause"
] | 17
|
2021-11-30T22:17:28.000Z
|
2022-03-21T12:28:45.000Z
|
software/python/simple_pendulum/utilities/filters/__init__.py
|
alopezrivera/torque_limited_simple_pendulum
|
2164a41d65c16743ba260a79a04a04cdd72c3903
|
[
"BSD-3-Clause"
] | 13
|
2021-10-18T07:45:29.000Z
|
2022-03-22T12:56:33.000Z
|
"""
Filters
=======
"""
| 5.75
| 7
| 0.304348
| 1
| 23
| 7
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.130435
| 23
| 4
| 8
| 5.75
| 0.35
| 0.652174
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
5be052293d1d8d4fa04c7113ea9f41246ff61781
| 1,206
|
py
|
Python
|
com/yoclabo/setting/LogicalDOCServer.py
|
YuhichYOC/LogicalDOC-browser
|
36fdface73de0635fe1f29d20d081922aae54d1b
|
[
"Apache-2.0"
] | null | null | null |
com/yoclabo/setting/LogicalDOCServer.py
|
YuhichYOC/LogicalDOC-browser
|
36fdface73de0635fe1f29d20d081922aae54d1b
|
[
"Apache-2.0"
] | null | null | null |
com/yoclabo/setting/LogicalDOCServer.py
|
YuhichYOC/LogicalDOC-browser
|
36fdface73de0635fe1f29d20d081922aae54d1b
|
[
"Apache-2.0"
] | null | null | null |
#
# LogicalDOCServer.py
#
# Copyright 2021 Yuichi Yoshii
# 吉井雄一 @ 吉井産業 you.65535.kir@gmail.com
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
def get_logicaldoc_server_addr() -> str:
return ''
def get_logicaldoc_server_port() -> str:
return ''
def get_logicaldoc_server_tenant() -> str:
return 'logicaldoc'
def get_logicaldoc_server_name() -> str:
return get_logicaldoc_server_addr() \
+ ':' + get_logicaldoc_server_port() \
+ '/' + get_logicaldoc_server_tenant() + '/'
def get_logicaldoc_url() -> str:
return 'http://' + get_logicaldoc_server_name()
def get_logicaldoc_auth_params() -> dict:
return {
'u': '',
'pw': '',
}
| 25.659574
| 74
| 0.689884
| 160
| 1,206
| 5.01875
| 0.54375
| 0.161893
| 0.18929
| 0.109589
| 0.07721
| 0.07721
| 0
| 0
| 0
| 0
| 0
| 0.013542
| 0.20398
| 1,206
| 46
| 75
| 26.217391
| 0.822917
| 0.506634
| 0
| 0.117647
| 0
| 0
| 0.039931
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.352941
| true
| 0
| 0
| 0.352941
| 0.705882
| 0
| 0
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 1
| 1
| 0
|
0
| 5
|
7518b2f125be76c16ad9c723ed975ab9f33048f8
| 116
|
py
|
Python
|
src/Transformers/__init__.py
|
BlackBeard98/Code-Generation
|
769ef8fd9162c0fae6326dc9d08e20bb5d20c067
|
[
"MIT"
] | 1
|
2021-11-03T01:24:21.000Z
|
2021-11-03T01:24:21.000Z
|
src/Transformers/__init__.py
|
BlackBeard98/Code-Generation
|
769ef8fd9162c0fae6326dc9d08e20bb5d20c067
|
[
"MIT"
] | null | null | null |
src/Transformers/__init__.py
|
BlackBeard98/Code-Generation
|
769ef8fd9162c0fae6326dc9d08e20bb5d20c067
|
[
"MIT"
] | null | null | null |
from re import I
from .TrueStaticTransformer import TrueStaticTransformer
from .LogTransformer import LogTransformer
| 38.666667
| 56
| 0.887931
| 12
| 116
| 8.583333
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.094828
| 116
| 3
| 57
| 38.666667
| 0.980952
| 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
|
f362fb02e3c209ae50241301ca6ca5fdfde0f511
| 63
|
py
|
Python
|
wsgi.py
|
capjamesg/indieweb-search
|
856ac117974bba593549136dfc17c3402c9f0066
|
[
"MIT"
] | 14
|
2021-08-31T14:36:55.000Z
|
2022-03-14T15:14:14.000Z
|
wsgi.py
|
capjamesg/indieweb-search
|
856ac117974bba593549136dfc17c3402c9f0066
|
[
"MIT"
] | 22
|
2021-09-24T06:21:49.000Z
|
2022-02-13T15:41:57.000Z
|
wsgi.py
|
capjamesg/indieweb-search
|
856ac117974bba593549136dfc17c3402c9f0066
|
[
"MIT"
] | 1
|
2021-09-24T09:40:14.000Z
|
2021-09-24T09:40:14.000Z
|
from __init__ import create_app
app = create_app()
app.run()
| 10.5
| 31
| 0.746032
| 10
| 63
| 4.1
| 0.6
| 0.439024
| 0.585366
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.15873
| 63
| 5
| 32
| 12.6
| 0.773585
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 0.333333
| 0
| 1
| 0
| 0
| null | 1
| 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
|
f3651e51e4a22adb9a55327a3d21dd4ad417c7a3
| 256
|
py
|
Python
|
tests/functional/pages/main.py
|
PDevgut/buyby
|
3b660b4aeed508ec2d32a5047da4b2e95666e532
|
[
"MIT"
] | null | null | null |
tests/functional/pages/main.py
|
PDevgut/buyby
|
3b660b4aeed508ec2d32a5047da4b2e95666e532
|
[
"MIT"
] | null | null | null |
tests/functional/pages/main.py
|
PDevgut/buyby
|
3b660b4aeed508ec2d32a5047da4b2e95666e532
|
[
"MIT"
] | null | null | null |
from selenium.webdriver.common.by import By
from framework.testlib.pages import PageElement
from framework.testlib.pages import PageObject
class MainPage(PageObject):
h1 = PageElement(By.CSS_SELECTOR, "h1")
p = PageElement(By.CSS_SELECTOR, "p")
| 25.6
| 47
| 0.777344
| 34
| 256
| 5.794118
| 0.5
| 0.13198
| 0.203046
| 0.253807
| 0.314721
| 0
| 0
| 0
| 0
| 0
| 0
| 0.008969
| 0.128906
| 256
| 9
| 48
| 28.444444
| 0.874439
| 0
| 0
| 0
| 0
| 0
| 0.011719
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
f370c1423e9d6539ef09da799c625bfb64652755
| 101
|
py
|
Python
|
routes/piece.py
|
yovelcohen/ccl
|
ba2abe609110f21f1db7c0c95f785e4010df8abd
|
[
"MIT"
] | null | null | null |
routes/piece.py
|
yovelcohen/ccl
|
ba2abe609110f21f1db7c0c95f785e4010df8abd
|
[
"MIT"
] | null | null | null |
routes/piece.py
|
yovelcohen/ccl
|
ba2abe609110f21f1db7c0c95f785e4010df8abd
|
[
"MIT"
] | null | null | null |
class PieceProcessor:
def __init__(self, name, description, image, location, user):
pass
| 25.25
| 65
| 0.693069
| 11
| 101
| 6
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.217822
| 101
| 3
| 66
| 33.666667
| 0.835443
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0.333333
| 0
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 1
| 0
|
0
| 5
|
f3878fe4cd4d1b7c09323121388e8c9b81a09334
| 115
|
py
|
Python
|
18_Math3/Step04/yj.py
|
StudyForCoding/BEAKJOON
|
84e1c5e463255e919ccf6b6a782978c205420dbf
|
[
"MIT"
] | null | null | null |
18_Math3/Step04/yj.py
|
StudyForCoding/BEAKJOON
|
84e1c5e463255e919ccf6b6a782978c205420dbf
|
[
"MIT"
] | 3
|
2020-11-04T05:38:53.000Z
|
2021-03-02T02:15:19.000Z
|
18_Math3/Step04/yj.py
|
StudyForCoding/BEAKJOON
|
84e1c5e463255e919ccf6b6a782978c205420dbf
|
[
"MIT"
] | null | null | null |
import sys
from math import gcd
N, M = map(int, sys.stdin.readline().split())
print(gcd(N,M))
print(N*M//gcd(N,M))
| 19.166667
| 45
| 0.669565
| 24
| 115
| 3.208333
| 0.541667
| 0.103896
| 0.194805
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.113043
| 115
| 6
| 46
| 19.166667
| 0.754902
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.4
| 0
| 0.4
| 0.4
| 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
|
f3ba3beed66a09984d9159af89d87eeb452c5a7a
| 429
|
py
|
Python
|
tfne/encodings/codeepneat/modules/__init__.py
|
githealthy18/Tensorflow-Neuroevolution
|
15f6e906e8000c64f5c9a60907f53fe835f0b28c
|
[
"Apache-2.0"
] | 121
|
2019-06-27T17:30:52.000Z
|
2022-03-24T07:32:42.000Z
|
tfne/encodings/codeepneat/modules/__init__.py
|
githealthy18/Tensorflow-Neuroevolution
|
15f6e906e8000c64f5c9a60907f53fe835f0b28c
|
[
"Apache-2.0"
] | 10
|
2021-01-03T19:52:13.000Z
|
2022-02-10T00:15:26.000Z
|
tfne/encodings/codeepneat/modules/__init__.py
|
githealthy18/Tensorflow-Neuroevolution
|
15f6e906e8000c64f5c9a60907f53fe835f0b28c
|
[
"Apache-2.0"
] | 31
|
2019-07-31T10:45:53.000Z
|
2022-03-21T08:31:09.000Z
|
# Import modules
from tfne.encodings.codeepneat.modules.codeepneat_module_association import MODULES
from tfne.encodings.codeepneat.modules.codeepneat_module_base import CoDeepNEATModuleBase
from tfne.encodings.codeepneat.modules.codeepneat_module_conv2dmaxpool2ddropout import \
CoDeepNEATModuleConv2DMaxPool2DDropout
from tfne.encodings.codeepneat.modules.codeepneat_module_densedropout import CoDeepNEATModuleDenseDropout
| 61.285714
| 105
| 0.902098
| 42
| 429
| 9.02381
| 0.333333
| 0.084433
| 0.17942
| 0.28496
| 0.596306
| 0.596306
| 0.596306
| 0.332454
| 0.332454
| 0
| 0
| 0.009877
| 0.055944
| 429
| 6
| 106
| 71.5
| 0.925926
| 0.032634
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.8
| 0
| 0.8
| 0
| 0
| 0
| 0
| null | 0
| 0
| 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
|
3460d2dafef6dd04a665644500b8d74517875aa0
| 221
|
py
|
Python
|
common/vision/datasets/keypoint_detection/__init__.py
|
ashok-arjun/Transfer-Learning-Library
|
e13bb3e37bc7ca74a382cfdc85a640deaf0333b3
|
[
"MIT"
] | 1,474
|
2020-07-24T02:55:55.000Z
|
2022-03-31T12:35:56.000Z
|
common/vision/datasets/keypoint_detection/__init__.py
|
mxliu/Transfer-Learning-Library
|
7b0ccb3a8087ecc65daf4b1e815e5a3f42106641
|
[
"MIT"
] | 70
|
2020-08-05T10:47:33.000Z
|
2022-03-31T03:48:54.000Z
|
common/vision/datasets/keypoint_detection/__init__.py
|
mxliu/Transfer-Learning-Library
|
7b0ccb3a8087ecc65daf4b1e815e5a3f42106641
|
[
"MIT"
] | 312
|
2020-08-01T11:08:39.000Z
|
2022-03-30T06:03:47.000Z
|
from .rendered_hand_pose import RenderedHandPose
from .hand_3d_studio import Hand3DStudio, Hand3DStudioAll
from .freihand import FreiHand
from .surreal import SURREAL
from .lsp import LSP
from .human36m import Human36M
| 24.555556
| 57
| 0.846154
| 29
| 221
| 6.310345
| 0.482759
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.036082
| 0.122172
| 221
| 8
| 58
| 27.625
| 0.907216
| 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
|
34825fa77c5dfea7a010d652a2769f3369669687
| 114
|
py
|
Python
|
data/connection.py
|
alfatta/python_todo_list
|
5cf71f88827bb895cc268c6cfaadfcc39dd3e62d
|
[
"MIT"
] | null | null | null |
data/connection.py
|
alfatta/python_todo_list
|
5cf71f88827bb895cc268c6cfaadfcc39dd3e62d
|
[
"MIT"
] | null | null | null |
data/connection.py
|
alfatta/python_todo_list
|
5cf71f88827bb895cc268c6cfaadfcc39dd3e62d
|
[
"MIT"
] | null | null | null |
import mongoengine
def global_init():
mongoengine.register_connection(alias='core', name='python_todo_list')
| 22.8
| 74
| 0.789474
| 14
| 114
| 6.142857
| 0.928571
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.096491
| 114
| 4
| 75
| 28.5
| 0.834951
| 0
| 0
| 0
| 0
| 0
| 0.175439
| 0
| 0
| 0
| 0
| 0
| 0
| 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
|
caa0eaa5f91c77165d2fd421c8be31836c4b2491
| 31
|
py
|
Python
|
pairformance/__init__.py
|
epfl-dlab/pairformance
|
b6ef1472ba5e0ca167b99232f56b1d449e20bec1
|
[
"Apache-2.0"
] | 10
|
2021-06-06T09:33:11.000Z
|
2022-01-12T11:17:59.000Z
|
pairformance/__init__.py
|
epfl-dlab/pairformance
|
b6ef1472ba5e0ca167b99232f56b1d449e20bec1
|
[
"Apache-2.0"
] | 1
|
2021-10-05T03:24:25.000Z
|
2021-10-05T08:56:59.000Z
|
pairformance/__init__.py
|
epfl-dlab/pairformance
|
b6ef1472ba5e0ca167b99232f56b1d449e20bec1
|
[
"Apache-2.0"
] | null | null | null |
from .core import Pairformance
| 15.5
| 30
| 0.83871
| 4
| 31
| 6.5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.129032
| 31
| 1
| 31
| 31
| 0.962963
| 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
|
cab9cc202af719c89934ef541e6371e9b71b1b33
| 269
|
py
|
Python
|
dolphintracker/singlecam_tracker/camera_filter/OTPBase.py
|
UmSenhorQualquer/d-track
|
7a7e1cc54176452235731d4ba232545af6e01afc
|
[
"MIT"
] | 1
|
2021-12-24T07:35:07.000Z
|
2021-12-24T07:35:07.000Z
|
dolphintracker/singlecam_tracker/camera_filter/OTPBase.py
|
UmSenhorQualquer/d-track
|
7a7e1cc54176452235731d4ba232545af6e01afc
|
[
"MIT"
] | null | null | null |
dolphintracker/singlecam_tracker/camera_filter/OTPBase.py
|
UmSenhorQualquer/d-track
|
7a7e1cc54176452235731d4ba232545af6e01afc
|
[
"MIT"
] | null | null | null |
import cv2, time, itertools
from numpy import *
from math import *
class OTPBase(object):
def __init__(self, **kwargs):
super(OTPBase, self).__init__()
def compute(self, frame):
return frame
def process(self, frame):
return frame
| 19.214286
| 39
| 0.64684
| 33
| 269
| 5.030303
| 0.575758
| 0.108434
| 0.180723
| 0.240964
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.004975
| 0.252788
| 269
| 14
| 40
| 19.214286
| 0.820896
| 0
| 0
| 0.2
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.3
| false
| 0
| 0.3
| 0.2
| 0.9
| 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
|
cad82d03fbdbb832a41ee1a9000932994577ddf7
| 75
|
py
|
Python
|
flash/core/integrations/fiftyone/__init__.py
|
Actis92/lightning-flash
|
49972268cfc0f95f1bd2b8fbf25036970cc44b59
|
[
"Apache-2.0"
] | 1,457
|
2021-01-28T20:40:16.000Z
|
2022-03-31T06:22:05.000Z
|
flash/core/integrations/fiftyone/__init__.py
|
Actis92/lightning-flash
|
49972268cfc0f95f1bd2b8fbf25036970cc44b59
|
[
"Apache-2.0"
] | 1,123
|
2021-01-28T20:37:56.000Z
|
2022-03-31T19:34:44.000Z
|
flash/core/integrations/fiftyone/__init__.py
|
Actis92/lightning-flash
|
49972268cfc0f95f1bd2b8fbf25036970cc44b59
|
[
"Apache-2.0"
] | 170
|
2021-01-29T00:41:39.000Z
|
2022-03-29T16:09:52.000Z
|
from flash.core.integrations.fiftyone.utils import visualize # noqa: F401
| 37.5
| 74
| 0.813333
| 10
| 75
| 6.1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.044776
| 0.106667
| 75
| 1
| 75
| 75
| 0.865672
| 0.133333
| 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
|
cae13c0a708e9eaf2194118ccc93e8465e45ac4e
| 40
|
py
|
Python
|
app/packagebinder/exceptions.py
|
porowns/Krypted-Auth
|
ed171bfbd1c98a4c171ddf6a20b18691330b1646
|
[
"MIT"
] | 6
|
2017-12-13T21:53:05.000Z
|
2018-10-04T02:47:05.000Z
|
app/packagebinder/exceptions.py
|
porowns/Krypted-Auth
|
ed171bfbd1c98a4c171ddf6a20b18691330b1646
|
[
"MIT"
] | 106
|
2019-08-11T23:00:39.000Z
|
2021-06-10T19:45:54.000Z
|
app/packagebinder/exceptions.py
|
KryptedGaming/kryptedauth
|
ed171bfbd1c98a4c171ddf6a20b18691330b1646
|
[
"MIT"
] | 10
|
2020-01-18T11:28:44.000Z
|
2022-02-21T06:08:39.000Z
|
class BindException(Exception):
pass
| 20
| 31
| 0.775
| 4
| 40
| 7.75
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.15
| 40
| 2
| 32
| 20
| 0.911765
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.5
| 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
| 0
| 1
| 1
| 0
| 0
| 0
| 0
|
0
| 5
|
caf2644400a4beb7408ad08b6d281e9a4e1786b3
| 166
|
py
|
Python
|
tamusers/providers/tampere/urls.py
|
Tampere/django-tamusers
|
5b3d82332c435990dad98f64bb9094cc1502b7ef
|
[
"BSD-2-Clause"
] | null | null | null |
tamusers/providers/tampere/urls.py
|
Tampere/django-tamusers
|
5b3d82332c435990dad98f64bb9094cc1502b7ef
|
[
"BSD-2-Clause"
] | 1
|
2020-04-20T14:05:28.000Z
|
2020-04-20T14:05:28.000Z
|
tamusers/providers/tampere/urls.py
|
Tampere/django-tamusers
|
5b3d82332c435990dad98f64bb9094cc1502b7ef
|
[
"BSD-2-Clause"
] | null | null | null |
from allauth.socialaccount.providers.oauth2.urls import default_urlpatterns
from .provider import TampereProvider
urlpatterns = default_urlpatterns(TampereProvider)
| 33.2
| 75
| 0.879518
| 17
| 166
| 8.470588
| 0.647059
| 0.25
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.006494
| 0.072289
| 166
| 4
| 76
| 41.5
| 0.928571
| 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
|
1b48350aa924719f49b5ed80ecb78cf5b01994b4
| 54
|
py
|
Python
|
gormanian/__init__.py
|
enarjord/gormanian
|
0d7af4346debb8db76b0d6feeafe0f4d119a48e7
|
[
"MIT"
] | null | null | null |
gormanian/__init__.py
|
enarjord/gormanian
|
0d7af4346debb8db76b0d6feeafe0f4d119a48e7
|
[
"MIT"
] | 1
|
2021-08-13T11:44:01.000Z
|
2021-08-13T15:22:40.000Z
|
gormanian/__init__.py
|
enarjord/gormanian
|
0d7af4346debb8db76b0d6feeafe0f4d119a48e7
|
[
"MIT"
] | 1
|
2021-08-13T11:10:11.000Z
|
2021-08-13T11:10:11.000Z
|
from .calendar import GormanianDatetime, convert, now
| 27
| 53
| 0.833333
| 6
| 54
| 7.5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.111111
| 54
| 1
| 54
| 54
| 0.9375
| 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
|
1b4e1f54eef6f5e9d35a181bbc14504033393ad0
| 12
|
py
|
Python
|
src/main.py
|
naiaden/perimetron
|
4b432bb7db99c12d9d0e60350f6db635cabcc7b0
|
[
"MIT"
] | null | null | null |
src/main.py
|
naiaden/perimetron
|
4b432bb7db99c12d9d0e60350f6db635cabcc7b0
|
[
"MIT"
] | null | null | null |
src/main.py
|
naiaden/perimetron
|
4b432bb7db99c12d9d0e60350f6db635cabcc7b0
|
[
"MIT"
] | null | null | null |
print("hoi")
| 12
| 12
| 0.666667
| 2
| 12
| 4
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 12
| 1
| 12
| 12
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0.230769
| 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
|
1b7477a2ff685e6bec8d2e98bbcabe6ab034d357
| 46
|
py
|
Python
|
hello_world/hello_world.py
|
Ersoy-Kardesler/python-examples
|
dcadf5edca37ffc17cbb09fcbea22ea0a86020c3
|
[
"CC0-1.0"
] | null | null | null |
hello_world/hello_world.py
|
Ersoy-Kardesler/python-examples
|
dcadf5edca37ffc17cbb09fcbea22ea0a86020c3
|
[
"CC0-1.0"
] | null | null | null |
hello_world/hello_world.py
|
Ersoy-Kardesler/python-examples
|
dcadf5edca37ffc17cbb09fcbea22ea0a86020c3
|
[
"CC0-1.0"
] | null | null | null |
# AUTHOR: Ercan Ersoy
print("Hello, World!")
| 11.5
| 22
| 0.673913
| 6
| 46
| 5.166667
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.152174
| 46
| 3
| 23
| 15.333333
| 0.794872
| 0.413043
| 0
| 0
| 0
| 0
| 0.52
| 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
|
1ba8687c4b80161fd09ad0b530ae18e1e61952cd
| 32
|
py
|
Python
|
app/src/__init__.py
|
Thibault-Mattera/Recommendation_System_Restaurants
|
dc5b64c2cd4310eb5c34b1398b5bf099649378ec
|
[
"MIT"
] | 1
|
2021-01-19T16:34:09.000Z
|
2021-01-19T16:34:09.000Z
|
app/src/__init__.py
|
Thibault-Mattera/Recommendation_System_Zurich_Restaurants
|
dc5b64c2cd4310eb5c34b1398b5bf099649378ec
|
[
"MIT"
] | null | null | null |
app/src/__init__.py
|
Thibault-Mattera/Recommendation_System_Zurich_Restaurants
|
dc5b64c2cd4310eb5c34b1398b5bf099649378ec
|
[
"MIT"
] | null | null | null |
from .database import Restaurant
| 32
| 32
| 0.875
| 4
| 32
| 7
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.09375
| 32
| 1
| 32
| 32
| 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
|
940f7522fe8a3ce51c0e16d0b4f8189b78d88183
| 160
|
py
|
Python
|
code/opt_algo/testFunctions.py
|
nicolai-schwartze/Masterthesis
|
7857af20c6b233901ab3cedc325bd64704111e16
|
[
"MIT"
] | 1
|
2020-06-13T10:02:02.000Z
|
2020-06-13T10:02:02.000Z
|
code/opt_algo/testFunctions.py
|
nicolai-schwartze/Masterthesis
|
7857af20c6b233901ab3cedc325bd64704111e16
|
[
"MIT"
] | null | null | null |
code/opt_algo/testFunctions.py
|
nicolai-schwartze/Masterthesis
|
7857af20c6b233901ab3cedc325bd64704111e16
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
"""
Created on Thu May 28 17:19:06 2020
@author: Nicolai
----------------
"""
import numpy as np
def sphere(x):
return np.dot(x,x)
| 14.545455
| 35
| 0.55
| 26
| 160
| 3.384615
| 0.884615
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.1
| 0.1875
| 160
| 11
| 36
| 14.545455
| 0.576923
| 0.58125
| 0
| 0
| 0
| 0
| 0
| 0
| 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
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 1
| 1
| 0
|
0
| 5
|
941899bf96073e37556a750db2833b9306e0b5c4
| 69
|
py
|
Python
|
snakepack/analyzers/python/__init__.py
|
jochenvdv/snakepack
|
f27c5953c5f058a82b8cce55b23cdf32cc1f6602
|
[
"MIT"
] | 1
|
2022-01-27T07:15:27.000Z
|
2022-01-27T07:15:27.000Z
|
snakepack/analyzers/python/__init__.py
|
jochenvdv/snakepack
|
f27c5953c5f058a82b8cce55b23cdf32cc1f6602
|
[
"MIT"
] | null | null | null |
snakepack/analyzers/python/__init__.py
|
jochenvdv/snakepack
|
f27c5953c5f058a82b8cce55b23cdf32cc1f6602
|
[
"MIT"
] | null | null | null |
from snakepack.analyzers.python._base import PythonModuleCstAnalyzer
| 34.5
| 68
| 0.898551
| 7
| 69
| 8.714286
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.057971
| 69
| 1
| 69
| 69
| 0.938462
| 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
|
9418ba1d64cce45ca6d9b8fc8d7768025960aa7d
| 68
|
py
|
Python
|
src/sentry/incidents/__init__.py
|
uandco/sentry
|
5b8d45cb71c6617dac8e64265848623fbfce9c99
|
[
"BSD-3-Clause"
] | 1
|
2019-10-17T17:46:16.000Z
|
2019-10-17T17:46:16.000Z
|
src/sentry/incidents/__init__.py
|
uandco/sentry
|
5b8d45cb71c6617dac8e64265848623fbfce9c99
|
[
"BSD-3-Clause"
] | null | null | null |
src/sentry/incidents/__init__.py
|
uandco/sentry
|
5b8d45cb71c6617dac8e64265848623fbfce9c99
|
[
"BSD-3-Clause"
] | null | null | null |
from __future__ import absolute_import
from . import events # NOQA
| 22.666667
| 38
| 0.808824
| 9
| 68
| 5.555556
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.161765
| 68
| 2
| 39
| 34
| 0.877193
| 0.058824
| 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
|
9420acaccf006cbcfea07fc3cd98bd089bae59fb
| 157
|
py
|
Python
|
source/MCPM/__init__.py
|
NewCPM/MCPM
|
9fb9b7725ccc4452701be47d103ab61f81b4595b
|
[
"MIT"
] | 2
|
2018-04-10T22:35:11.000Z
|
2018-05-16T21:00:40.000Z
|
source/MCPM/__init__.py
|
CPM-project/MCPM
|
9fb9b7725ccc4452701be47d103ab61f81b4595b
|
[
"MIT"
] | null | null | null |
source/MCPM/__init__.py
|
CPM-project/MCPM
|
9fb9b7725ccc4452701be47d103ab61f81b4595b
|
[
"MIT"
] | null | null | null |
from os import path
from .version import __version__
MODULE_PATH = path.abspath(__file__)
for i in range(3):
MODULE_PATH = path.dirname(MODULE_PATH)
| 15.7
| 43
| 0.757962
| 24
| 157
| 4.5
| 0.583333
| 0.277778
| 0.259259
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.007634
| 0.165605
| 157
| 9
| 44
| 17.444444
| 0.816794
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.4
| 0
| 0.4
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
94255deba4d18725c0e266baf075342cdddc4f59
| 199
|
py
|
Python
|
game_assigment/GameLogic.py
|
pcruiher08/neural-networks-course
|
1656d06e9adc5aec223da83f6d9fbe1a2af61e47
|
[
"MIT"
] | null | null | null |
game_assigment/GameLogic.py
|
pcruiher08/neural-networks-course
|
1656d06e9adc5aec223da83f6d9fbe1a2af61e47
|
[
"MIT"
] | null | null | null |
game_assigment/GameLogic.py
|
pcruiher08/neural-networks-course
|
1656d06e9adc5aec223da83f6d9fbe1a2af61e47
|
[
"MIT"
] | null | null | null |
class GameLogic:
def __int__(self):
self
def add_lander(self, lander):
self.lander = lander
def update(self, delta_time):
self.lander.update_lander(delta_time)
| 18.090909
| 45
| 0.638191
| 25
| 199
| 4.76
| 0.4
| 0.252101
| 0.268908
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.271357
| 199
| 11
| 45
| 18.090909
| 0.82069
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.428571
| false
| 0
| 0
| 0
| 0.571429
| 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
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 5
|
94261006d3c42b5900bca376dceb5e30f23159c4
| 112
|
py
|
Python
|
mbti/__init__.py
|
Blackbox-user/ideal-adventure
|
29aa5b7b2759346b5417974d1b821e88e8d077aa
|
[
"MIT"
] | null | null | null |
mbti/__init__.py
|
Blackbox-user/ideal-adventure
|
29aa5b7b2759346b5417974d1b821e88e8d077aa
|
[
"MIT"
] | null | null | null |
mbti/__init__.py
|
Blackbox-user/ideal-adventure
|
29aa5b7b2759346b5417974d1b821e88e8d077aa
|
[
"MIT"
] | null | null | null |
#!/usr/bin/env python
#-*- coding:utf-8 -*-
from __future__ import unicode_literals
from views import MBTI_BP
| 16
| 39
| 0.741071
| 17
| 112
| 4.529412
| 0.882353
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.010309
| 0.133929
| 112
| 6
| 40
| 18.666667
| 0.783505
| 0.357143
| 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
|
945133843dbf56551fc7998eadd35d879da0c91d
| 169
|
py
|
Python
|
Backend/users/admin.py
|
denvar15/twentysevench
|
8b13f13037d39b521be99d0aeda1bd3d07a83c7d
|
[
"Apache-2.0"
] | null | null | null |
Backend/users/admin.py
|
denvar15/twentysevench
|
8b13f13037d39b521be99d0aeda1bd3d07a83c7d
|
[
"Apache-2.0"
] | null | null | null |
Backend/users/admin.py
|
denvar15/twentysevench
|
8b13f13037d39b521be99d0aeda1bd3d07a83c7d
|
[
"Apache-2.0"
] | null | null | null |
from django.contrib import admin
from .models import CustomUser, Moder, NowUser
admin.site.register(CustomUser)
admin.site.register(Moder)
admin.site.register(NowUser)
| 24.142857
| 46
| 0.822485
| 23
| 169
| 6.043478
| 0.478261
| 0.194245
| 0.366906
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.08284
| 169
| 6
| 47
| 28.166667
| 0.896774
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.4
| 0
| 0.4
| 0
| 1
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 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
|
947af1c0a66cd25ef687693c6bd2e47f1af37ca9
| 412
|
py
|
Python
|
supermamas/accounts/forms/login.py
|
oasalonen/supermamas
|
3ab2b2370de903cea614ea9dfa10ce1c0504a715
|
[
"Apache-2.0"
] | null | null | null |
supermamas/accounts/forms/login.py
|
oasalonen/supermamas
|
3ab2b2370de903cea614ea9dfa10ce1c0504a715
|
[
"Apache-2.0"
] | null | null | null |
supermamas/accounts/forms/login.py
|
oasalonen/supermamas
|
3ab2b2370de903cea614ea9dfa10ce1c0504a715
|
[
"Apache-2.0"
] | null | null | null |
from wtforms import Form, StringField, PasswordField, validators, BooleanField
from flask_babel import gettext
class LoginForm(Form):
email = StringField(gettext(u"Email"), [validators.InputRequired(gettext(u"Please enter an email"))])
password = PasswordField(gettext(u"Password"), [validators.InputRequired(gettext(u"Please enter a password"))])
remember_me = BooleanField(gettext(u"Remember me"))
| 58.857143
| 115
| 0.776699
| 49
| 412
| 6.489796
| 0.469388
| 0.125786
| 0.188679
| 0.194969
| 0.264151
| 0.264151
| 0
| 0
| 0
| 0
| 0
| 0
| 0.106796
| 412
| 7
| 116
| 58.857143
| 0.86413
| 0
| 0
| 0
| 0
| 0
| 0.164649
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.333333
| 0.333333
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
|
0
| 5
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.