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
123ad9a6c56f78cf322240c246b2a2483aa5e071
326
py
Python
config.py
statsu1990/kaggle_google_quest_qa
4b3569aa6d8b58d2315301a3ad86e6ed1d71c6db
[ "MIT" ]
3
2020-02-13T02:11:02.000Z
2021-09-05T13:15:34.000Z
config.py
statsu1990/kaggle_google_quest_qa
4b3569aa6d8b58d2315301a3ad86e6ed1d71c6db
[ "MIT" ]
null
null
null
config.py
statsu1990/kaggle_google_quest_qa
4b3569aa6d8b58d2315301a3ad86e6ed1d71c6db
[ "MIT" ]
null
null
null
PATH = '../input/google-quest-challenge/' #BERT_PRETRAINED_MODEL = 'bert-base-cased' BERT_PRETRAINED_MODEL = 'bert-base-uncased' BERT_TOKENIZER_PATH = '../input/transformers/' + BERT_PRETRAINED_MODEL + '/tokenizer/' BERT_PRETRAINED_MODEL_PATH = '../input/transformers/' + BERT_PRETRAINED_MODEL + '/pretrained_model/'
40.75
101
0.751534
37
326
6.243243
0.351351
0.38961
0.411255
0.199134
0.580087
0.34632
0
0
0
0
0
0
0.09816
326
7
102
46.571429
0.785714
0.125767
0
0
0
0
0.442029
0.275362
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
126e7487809cb90beb4de4d2e2b2d8e5ed3bbb80
275
py
Python
03-datatypes/examples/03-floats.py
luxwarp/python-course
d6ec4961ef43bd9d99954cffaea837220638e83f
[ "0BSD" ]
null
null
null
03-datatypes/examples/03-floats.py
luxwarp/python-course
d6ec4961ef43bd9d99954cffaea837220638e83f
[ "0BSD" ]
null
null
null
03-datatypes/examples/03-floats.py
luxwarp/python-course
d6ec4961ef43bd9d99954cffaea837220638e83f
[ "0BSD" ]
null
null
null
#!/usr/bin/env python3 # Floats (float) is numeric values like 1.0, 100,5 0,478, -1.36 print("1.0 + 0.2 =", 1.0 + 0.2) print("2.4 - 100.7 =", 2.4 - 100.7) print("2.7 * 1.5 =", 2.7 * 1.5) # You can do expressions and mixing integers and floats. print("1 + 2.5 =", 1 + 2.5)
25
63
0.574545
61
275
2.590164
0.442623
0.037975
0.037975
0.050633
0
0
0
0
0
0
0
0.217195
0.196364
275
10
64
27.5
0.497738
0.501818
0
0
0
0
0.328358
0
0
0
0
0
0
1
0
true
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
1
0
4
89e1a9c53dc6347f086ce73a95f9e26add38a845
129
py
Python
lib/JumpScale/lib/sandboxer/__init__.py
Jumpscale/jumpscale6_core
0502ddc1abab3c37ed982c142d21ea3955d471d3
[ "BSD-2-Clause" ]
1
2015-10-26T10:38:13.000Z
2015-10-26T10:38:13.000Z
lib/JumpScale/lib/sandboxer/__init__.py
Jumpscale/jumpscale6_core
0502ddc1abab3c37ed982c142d21ea3955d471d3
[ "BSD-2-Clause" ]
null
null
null
lib/JumpScale/lib/sandboxer/__init__.py
Jumpscale/jumpscale6_core
0502ddc1abab3c37ed982c142d21ea3955d471d3
[ "BSD-2-Clause" ]
null
null
null
from JumpScale import j j.base.loader.makeAvailable(j, 'tools') from Sandboxer import Sandboxer j.tools.sandboxer = Sandboxer()
21.5
39
0.790698
18
129
5.666667
0.5
0.117647
0
0
0
0
0
0
0
0
0
0
0.108527
129
5
40
25.8
0.886957
0
0
0
0
0
0.039063
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
89eb1f8d5a7f0d8efc338ec547c038bda3a22a04
5,007
py
Python
instagram_scraper/utils.py
mikhaelsantos/instagram-scraper
8822580afe71668e93e17a4efe3d89f1688a5a21
[ "Unlicense" ]
null
null
null
instagram_scraper/utils.py
mikhaelsantos/instagram-scraper
8822580afe71668e93e17a4efe3d89f1688a5a21
[ "Unlicense" ]
null
null
null
instagram_scraper/utils.py
mikhaelsantos/instagram-scraper
8822580afe71668e93e17a4efe3d89f1688a5a21
[ "Unlicense" ]
1
2018-08-17T12:32:04.000Z
2018-08-17T12:32:04.000Z
import re def extract_tags(item): """Extracts the hashtags from the caption text.""" caption_text = '' if 'caption' in item and item['caption']: if isinstance(item['caption'], dict): caption_text = item['caption']['text'] else: caption_text = item['caption'] elif 'edge_media_to_caption' in item and \ item['edge_media_to_caption'] and \ item['edge_media_to_caption']['edges']: caption_text = item['edge_media_to_caption']['edges'][0]['node']['text'] if caption_text: # include words and emojis item['tags'] = re.findall( r"(?<!&)#(\w+|(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2648-\u2653\u2660\u2663\u2665\u2666\u2668\u267B\u267F\u2692-\u2694\u2696\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD79\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED0\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3]|\uD83E[\uDD10-\uDD18\uDD80-\uDD84\uDDC0]|(?:0\u20E3|1\u20E3|2\u20E3|3\u20E3|4\u20E3|5\u20E3|6\u20E3|7\u20E3|8\u20E3|9\u20E3|#\u20E3|\\*\u20E3|\uD83C(?:\uDDE6\uD83C(?:\uDDEB|\uDDFD|\uDDF1|\uDDF8|\uDDE9|\uDDF4|\uDDEE|\uDDF6|\uDDEC|\uDDF7|\uDDF2|\uDDFC|\uDDE8|\uDDFA|\uDDF9|\uDDFF|\uDDEA)|\uDDE7\uD83C(?:\uDDF8|\uDDED|\uDDE9|\uDDE7|\uDDFE|\uDDEA|\uDDFF|\uDDEF|\uDDF2|\uDDF9|\uDDF4|\uDDE6|\uDDFC|\uDDFB|\uDDF7|\uDDF3|\uDDEC|\uDDEB|\uDDEE|\uDDF6|\uDDF1)|\uDDE8\uD83C(?:\uDDF2|\uDDE6|\uDDFB|\uDDEB|\uDDF1|\uDDF3|\uDDFD|\uDDF5|\uDDE8|\uDDF4|\uDDEC|\uDDE9|\uDDF0|\uDDF7|\uDDEE|\uDDFA|\uDDFC|\uDDFE|\uDDFF|\uDDED)|\uDDE9\uD83C(?:\uDDFF|\uDDF0|\uDDEC|\uDDEF|\uDDF2|\uDDF4|\uDDEA)|\uDDEA\uD83C(?:\uDDE6|\uDDE8|\uDDEC|\uDDF7|\uDDEA|\uDDF9|\uDDFA|\uDDF8|\uDDED)|\uDDEB\uD83C(?:\uDDF0|\uDDF4|\uDDEF|\uDDEE|\uDDF7|\uDDF2)|\uDDEC\uD83C(?:\uDDF6|\uDDEB|\uDDE6|\uDDF2|\uDDEA|\uDDED|\uDDEE|\uDDF7|\uDDF1|\uDDE9|\uDDF5|\uDDFA|\uDDF9|\uDDEC|\uDDF3|\uDDFC|\uDDFE|\uDDF8|\uDDE7)|\uDDED\uD83C(?:\uDDF7|\uDDF9|\uDDF2|\uDDF3|\uDDF0|\uDDFA)|\uDDEE\uD83C(?:\uDDF4|\uDDE8|\uDDF8|\uDDF3|\uDDE9|\uDDF7|\uDDF6|\uDDEA|\uDDF2|\uDDF1|\uDDF9)|\uDDEF\uD83C(?:\uDDF2|\uDDF5|\uDDEA|\uDDF4)|\uDDF0\uD83C(?:\uDDED|\uDDFE|\uDDF2|\uDDFF|\uDDEA|\uDDEE|\uDDFC|\uDDEC|\uDDF5|\uDDF7|\uDDF3)|\uDDF1\uD83C(?:\uDDE6|\uDDFB|\uDDE7|\uDDF8|\uDDF7|\uDDFE|\uDDEE|\uDDF9|\uDDFA|\uDDF0|\uDDE8)|\uDDF2\uD83C(?:\uDDF4|\uDDF0|\uDDEC|\uDDFC|\uDDFE|\uDDFB|\uDDF1|\uDDF9|\uDDED|\uDDF6|\uDDF7|\uDDFA|\uDDFD|\uDDE9|\uDDE8|\uDDF3|\uDDEA|\uDDF8|\uDDE6|\uDDFF|\uDDF2|\uDDF5|\uDDEB)|\uDDF3\uD83C(?:\uDDE6|\uDDF7|\uDDF5|\uDDF1|\uDDE8|\uDDFF|\uDDEE|\uDDEA|\uDDEC|\uDDFA|\uDDEB|\uDDF4)|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C(?:\uDDEB|\uDDF0|\uDDFC|\uDDF8|\uDDE6|\uDDEC|\uDDFE|\uDDEA|\uDDED|\uDDF3|\uDDF1|\uDDF9|\uDDF7|\uDDF2)|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C(?:\uDDEA|\uDDF4|\uDDFA|\uDDFC|\uDDF8)|\uDDF8\uD83C(?:\uDDFB|\uDDF2|\uDDF9|\uDDE6|\uDDF3|\uDDE8|\uDDF1|\uDDEC|\uDDFD|\uDDF0|\uDDEE|\uDDE7|\uDDF4|\uDDF8|\uDDED|\uDDE9|\uDDF7|\uDDEF|\uDDFF|\uDDEA|\uDDFE)|\uDDF9\uD83C(?:\uDDE9|\uDDEB|\uDDFC|\uDDEF|\uDDFF|\uDDED|\uDDF1|\uDDEC|\uDDF0|\uDDF4|\uDDF9|\uDDE6|\uDDF3|\uDDF7|\uDDF2|\uDDE8|\uDDFB)|\uDDFA\uD83C(?:\uDDEC|\uDDE6|\uDDF8|\uDDFE|\uDDF2|\uDDFF)|\uDDFB\uD83C(?:\uDDEC|\uDDE8|\uDDEE|\uDDFA|\uDDE6|\uDDEA|\uDDF3)|\uDDFC\uD83C(?:\uDDF8|\uDDEB)|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C(?:\uDDF9|\uDDEA)|\uDDFF\uD83C(?:\uDDE6|\uDDF2|\uDDFC))))[\ufe00-\ufe0f\u200d]?)+", caption_text, re.UNICODE) item['tags'] = list(set(item['tags'])) return item def get_original_image(url): """Gets the full-size image from the specified url.""" # remove dimensions to get largest image url = re.sub(r'/[sp]\d{3,}x\d{3,}/', '/', url) # get non-square image if one exists url = re.sub(r'/c\d{1,}.\d{1,}.\d{1,}.\d{1,}/', '/', url) return url def set_story_url(item): """Sets the story url.""" urls = [] if 'video_versions' in item: urls.append(item['video_versions'][0]['url']) if 'image_versions2' in item: urls.append(item['image_versions2']['candidates'][0]['url'].split('?')[0]) item['urls'] = urls return item
108.847826
3,651
0.690633
730
5,007
4.7
0.417808
0.025649
0.012824
0.020985
0.047508
0.026231
0
0
0
0
0
0.166845
0.067505
5,007
45
3,652
111.266667
0.568002
0.04254
0
0.066667
0
0.033333
0.820352
0.784967
0
0
0
0
0
1
0.1
false
0
0.033333
0
0.233333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
89f0162980637253b6ca436d96b92541d4384986
120
py
Python
examples/standalone_app.py
saddy001/remi
1dd886a55b0d2750880253508df43c90db4f0b08
[ "Apache-2.0" ]
1
2018-03-30T16:57:49.000Z
2018-03-30T16:57:49.000Z
examples/standalone_app.py
saddy001/remi
1dd886a55b0d2750880253508df43c90db4f0b08
[ "Apache-2.0" ]
null
null
null
examples/standalone_app.py
saddy001/remi
1dd886a55b0d2750880253508df43c90db4f0b08
[ "Apache-2.0" ]
null
null
null
from remi import start, App from simple_app import MyApp if __name__ == "__main__": start(MyApp, standalone=True)
17.142857
33
0.741667
17
120
4.705882
0.705882
0
0
0
0
0
0
0
0
0
0
0
0.175
120
6
34
20
0.808081
0
0
0
0
0
0.066667
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
d600a5b699bd81d4f87f286c0412f32f92acc617
55
py
Python
run/task/exception.py
run-hub/run
67072c4e837982aca4962f006c7eb180337e8ebc
[ "Unlicense" ]
1
2016-01-14T19:37:31.000Z
2016-01-14T19:37:31.000Z
run/task/exception.py
roll/run
67072c4e837982aca4962f006c7eb180337e8ebc
[ "Unlicense" ]
null
null
null
run/task/exception.py
roll/run
67072c4e837982aca4962f006c7eb180337e8ebc
[ "Unlicense" ]
null
null
null
class ConvertError(Exception): # Public pass
9.166667
30
0.654545
5
55
7.2
1
0
0
0
0
0
0
0
0
0
0
0
0.272727
55
5
31
11
0.9
0.109091
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
4
d61db194bfc91c5eef18a8f2e3d3830fbbe2299c
271
py
Python
Leetcode/Palindrome Partitioning II.py
quake0day/oj
c09333d1738f8735de0d5d825db6f4b707585670
[ "MIT" ]
null
null
null
Leetcode/Palindrome Partitioning II.py
quake0day/oj
c09333d1738f8735de0d5d825db6f4b707585670
[ "MIT" ]
null
null
null
Leetcode/Palindrome Partitioning II.py
quake0day/oj
c09333d1738f8735de0d5d825db6f4b707585670
[ "MIT" ]
null
null
null
class Solution(object): def minCut(self, s): """ :type s: str :rtype: int """ H = [[True for _ in xrange(len(s))] for _ in xrange(len(s))] def isPalindrome(self, s): if s == s[::-1]: return True
16.9375
68
0.446494
34
271
3.5
0.617647
0.084034
0.184874
0.235294
0.252101
0
0
0
0
0
0
0.006135
0.398524
271
16
69
16.9375
0.723926
0.088561
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0
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
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
4
d6507e0f90b1d3d5abb107c0a6671d5183fb8865
38
py
Python
srcfmailmanwrapper/__init__.py
danielchriscarter/srcf-python
a7143afd5340338094131a51f560efcd874457d2
[ "MIT" ]
null
null
null
srcfmailmanwrapper/__init__.py
danielchriscarter/srcf-python
a7143afd5340338094131a51f560efcd874457d2
[ "MIT" ]
2
2020-08-23T17:23:28.000Z
2021-04-01T18:32:11.000Z
srcfmailmanwrapper/__init__.py
danielchriscarter/srcf-python
a7143afd5340338094131a51f560efcd874457d2
[ "MIT" ]
3
2021-01-12T00:06:39.000Z
2021-09-26T23:31:15.000Z
from . import util __all__ = ["util"]
12.666667
18
0.657895
5
38
4.2
0.8
0
0
0
0
0
0
0
0
0
0
0
0.184211
38
2
19
19
0.677419
0
0
0
0
0
0.105263
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
d6584c6c8dc3a1da47bd7f7cc1f456060ecc5d05
234
py
Python
sandbox/lib/jumpscale/JumpscaleLibs/clients/telegram_bot/TelegramBotFactory.py
threefoldtech/threebot_prebuilt
1f0e1c65c14cef079cd80f73927d7c8318755c48
[ "Apache-2.0" ]
null
null
null
sandbox/lib/jumpscale/JumpscaleLibs/clients/telegram_bot/TelegramBotFactory.py
threefoldtech/threebot_prebuilt
1f0e1c65c14cef079cd80f73927d7c8318755c48
[ "Apache-2.0" ]
117
2019-09-01T11:59:19.000Z
2020-07-14T11:10:08.000Z
sandbox/lib/jumpscale/JumpscaleLibs/clients/telegram_bot/TelegramBotFactory.py
threefoldtech/threebot_prebuilt
1f0e1c65c14cef079cd80f73927d7c8318755c48
[ "Apache-2.0" ]
2
2020-04-06T15:21:23.000Z
2020-05-07T04:29:53.000Z
from Jumpscale import j from .TelegramBotClient import TelegramBot JSConfigs = j.baseclasses.object_config_collection class TelegramBotFactory(JSConfigs): __jslocation__ = "j.clients.telegram_bot" _CHILDCLASS = TelegramBot
23.4
50
0.816239
24
234
7.625
0.75
0
0
0
0
0
0
0
0
0
0
0
0.128205
234
9
51
26
0.897059
0
0
0
0
0
0.094017
0.094017
0
0
0
0
0
1
0
false
0
0.333333
0
0.833333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
c39f85de6a95367753b881619c3146bcc06df83c
95
py
Python
cheapiesgr/apps.py
papachristoumarios/ntua-softeng
678b878eea144176eb8623ce52efd1b0bdfa1e5a
[ "MIT" ]
10
2019-03-12T12:44:11.000Z
2021-11-10T14:28:00.000Z
cheapiesgr/apps.py
papachristoumarios/ntua-softeng
678b878eea144176eb8623ce52efd1b0bdfa1e5a
[ "MIT" ]
null
null
null
cheapiesgr/apps.py
papachristoumarios/ntua-softeng
678b878eea144176eb8623ce52efd1b0bdfa1e5a
[ "MIT" ]
5
2019-05-24T08:37:11.000Z
2021-03-14T14:58:36.000Z
from django.apps import AppConfig class CheapiesgrConfig(AppConfig): name = 'cheapiesgr'
15.833333
34
0.768421
10
95
7.3
0.9
0
0
0
0
0
0
0
0
0
0
0
0.157895
95
5
35
19
0.9125
0
0
0
0
0
0.105263
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
c3bbcaac1b4c3eb7ea0472b929c01ba8a155ceb5
15
py
Python
openml_data_integration/protobuf_generator/openml_1547/myconstants.py
tuix/tutorials
733d35a8a39df079e8c2432c441b70785ab08440
[ "Apache-2.0" ]
8
2020-04-21T13:29:04.000Z
2021-12-13T08:59:09.000Z
openml_data_integration/protobuf_generator/openml_1547/myconstants.py
tuix/tutorials
733d35a8a39df079e8c2432c441b70785ab08440
[ "Apache-2.0" ]
3
2021-04-27T11:03:04.000Z
2021-05-24T18:22:57.000Z
openml_data_integration/protobuf_generator/openml_1547/myconstants.py
tuix/tutorials
733d35a8a39df079e8c2432c441b70785ab08440
[ "Apache-2.0" ]
6
2020-07-06T08:23:25.000Z
2021-11-24T10:39:34.000Z
DATA_ID = 1547
7.5
14
0.733333
3
15
3.333333
1
0
0
0
0
0
0
0
0
0
0
0.333333
0.2
15
1
15
15
0.5
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
c3bf3b6220b1341a752239051d140a1c1b00bf32
3,511
py
Python
tests/test_hashing.py
David-Jianguang-Ran/gravity-hash
58c28f07646f3f9177d685c80da4ec4de98cef48
[ "MIT" ]
null
null
null
tests/test_hashing.py
David-Jianguang-Ran/gravity-hash
58c28f07646f3f9177d685c80da4ec4de98cef48
[ "MIT" ]
null
null
null
tests/test_hashing.py
David-Jianguang-Ran/gravity-hash
58c28f07646f3f9177d685c80da4ec4de98cef48
[ "MIT" ]
null
null
null
from unittest import TestCase from gravity_simulation.hashing import * class TestDigest(TestCase): def test_get_digest(self): cases = [ "An enchantress disguised as an old beggar woman arrives at a castle during a ball and offers the host, a cruel and selfish prince, a rose in return for shelter from a storm. When he refuses, she reveals her identity. As punishment for the prince's lack of compassion, the enchantress transforms him into a beast and his servants into household objects, then erases the castle, himself, and his servants from the memories of their loved ones and everyone else in the town. She casts a spell on the rose and warns the prince that the spell will only be broken if he learns to love another, and earn their love in return before the last petal falls, or he will remain a beast forever. ", "0=> th > operator use to overwrite the file if exist other wise it will create new file E.X. cat >example1 => If file 'example1' is exist than it will over write else create new file => the >> operator use to append the end of the file E.X. cat >>example1", "gogogaga", "", "x" ] for each in cases: output = get_digest_v0(each) # test if output is a string of fixed length self.assertIsInstance(output, str) self.assertEqual(len(output), BLOCK_SIZE * 2) def test_avalanche(self): cases = [ ("","a"), ("gogogaga", "kokokaka"), ("abcde", "adcde"), ("An enchantress disguised as an old beggar woman arrives at a castle during a ball and offers the host, a cruel and selfish prince, a rose in return for shelter from a storm. When he refuses, she reveals her identity. As punishment for the prince's lack of compassion, the enchantress transforms him into a beast and his servants into household objects, then erases the castle, himself, and his servants from the memories of their loved ones and everyone else in the town. She casts a spell on the rose and warns the prince that the spell will only be broken if he learns to love another, and earn their love in return before the last petal falls, or he will remain a beast forever. ","An enchantress disguised as an old beggar woman arrives at a castle during a ball and offers the host, a cruel and selfish prince, a rose in return for shelter from a storm. When he refuses, she reveals her identity. As punishment for the prince's lack of compassion, the enchantress transforms him into a beast and his servants into household objects, then erases the castle, himself, and his servants from the memories of their loved ones and everyone else in the town. She casts a spell on the rose and warns the prince that the spell will only be broken if he learns to love another, and earn their love in return before the last petal falls, or he will remain a beast forever and ever. "), ] for each_case in cases: d0 = get_digest_v0(each_case[0]) d1 = get_digest_v0(each_case[1]) # test if outputs are same length and distinct self.assertEqual(len(d0),len(d1)) self.assertNotEqual(d0,d1) # test if there are less than 5 char collisions common = [zero == one for zero, one in zip(d0,d1)] print(f"avalanche effect test, char diff = {sum(common)}") self.assertLessEqual(sum(common),5) # <= this threshold is arbitrary
76.326087
1,393
0.698092
559
3,511
4.359571
0.288014
0.019696
0.034469
0.029545
0.69922
0.669676
0.669676
0.669676
0.669676
0.669676
0
0.007567
0.247223
3,511
45
1,394
78.022222
0.914491
0.04671
0
0.066667
0
0.133333
0.716338
0
0
0
0
0
0.166667
1
0.066667
false
0.066667
0.066667
0
0.166667
0.033333
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
4
c3f241ae53b6959fac76729c56c69cdc3b63c9cf
51
py
Python
_scripts/objecteditor/model/__init__.py
Son-Guhun/Titan-Land-Lands-of-Plenty
edeca1d5437a7397195799ebf4b9585ee4609fed
[ "MIT" ]
12
2019-05-27T16:02:28.000Z
2021-01-08T09:32:08.000Z
_scripts/objecteditor/model/__init__.py
Son-Guhun/Titan-Land-Lands-of-Plenty
edeca1d5437a7397195799ebf4b9585ee4609fed
[ "MIT" ]
209
2019-04-06T15:16:52.000Z
2021-07-03T02:11:53.000Z
_scripts/objecteditor/model/__init__.py
Son-Guhun/Titan-Land-Lands-of-Plenty
edeca1d5437a7397195799ebf4b9585ee4609fed
[ "MIT" ]
1
2021-05-26T12:13:35.000Z
2021-05-26T12:13:35.000Z
from myconfigparser import Decoration, Production
17
49
0.862745
5
51
8.8
1
0
0
0
0
0
0
0
0
0
0
0
0.117647
51
2
50
25.5
0.977778
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
7f002d9960c56d001abb3731ddccba2089c50ab1
160
py
Python
testapp/apps/testmodels/apps.py
jsilva234/django-cropperjs
875d1beee38406526399d9f838e7e2aefc81ad2f
[ "MIT" ]
2
2019-08-01T11:48:17.000Z
2019-10-04T21:30:22.000Z
testapp/apps/testmodels/apps.py
jsilva234/django-cropperjs
875d1beee38406526399d9f838e7e2aefc81ad2f
[ "MIT" ]
null
null
null
testapp/apps/testmodels/apps.py
jsilva234/django-cropperjs
875d1beee38406526399d9f838e7e2aefc81ad2f
[ "MIT" ]
1
2020-07-29T14:35:24.000Z
2020-07-29T14:35:24.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.apps import AppConfig class TestmodelsConfig(AppConfig): name = 'testmodels'
17.777778
39
0.74375
18
160
6.333333
0.833333
0
0
0
0
0
0
0
0
0
0
0.007407
0.15625
160
8
40
20
0.837037
0.13125
0
0
0
0
0.072993
0
0
0
0
0
0
1
0
false
0
0.5
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
7f137405acd5b0f9b1c036fe82b2e527a93cd13e
182
py
Python
PythonProject/model/search/ModelSearchResult.py
vlth/ExcelFileSearcher-python
2e5b2c93bdb3bc4140d3b4b9f486133e123a5c36
[ "MIT" ]
null
null
null
PythonProject/model/search/ModelSearchResult.py
vlth/ExcelFileSearcher-python
2e5b2c93bdb3bc4140d3b4b9f486133e123a5c36
[ "MIT" ]
null
null
null
PythonProject/model/search/ModelSearchResult.py
vlth/ExcelFileSearcher-python
2e5b2c93bdb3bc4140d3b4b9f486133e123a5c36
[ "MIT" ]
null
null
null
import sys from model.data_entities.ModelDatatableRow import ModelDatatableRow class ModelSearchResult: def __init__(self, rows: [ModelDatatableRow]): self.rows = rows
22.75
67
0.774725
19
182
7.157895
0.684211
0.117647
0
0
0
0
0
0
0
0
0
0
0.159341
182
7
68
26
0.888889
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.4
0
0.8
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
6140f4864924eda9b670c10a00a2c03017c34114
172
py
Python
HSCI Simulation/config/log.py
kymanj/hsci-rebal-backtest
b8ffe82d2720e131972cee29dc3ce94095b78a8f
[ "MIT" ]
null
null
null
HSCI Simulation/config/log.py
kymanj/hsci-rebal-backtest
b8ffe82d2720e131972cee29dc3ce94095b78a8f
[ "MIT" ]
null
null
null
HSCI Simulation/config/log.py
kymanj/hsci-rebal-backtest
b8ffe82d2720e131972cee29dc3ce94095b78a8f
[ "MIT" ]
null
null
null
import logging import logging.config from config.conf import * def get_logger(): logging.config.dictConfig(log_config) log = logging.getLogger() return log
14.333333
41
0.732558
22
172
5.636364
0.545455
0.209677
0
0
0
0
0
0
0
0
0
0
0.186047
172
11
42
15.636364
0.885714
0
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0.428571
0
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
0
0
0
1
0
1
0
0
4
614535211fbffaf38f476eca68331d6b1c4b8571
50
py
Python
ourgroceries/exceptions.py
pironic/py-our-groceries
0c6726287123dae287e1e6c27d956c738113ed48
[ "MIT" ]
5
2019-07-21T20:18:50.000Z
2021-03-12T13:57:00.000Z
ourgroceries/exceptions.py
pironic/py-our-groceries
0c6726287123dae287e1e6c27d956c738113ed48
[ "MIT" ]
11
2019-08-05T20:38:15.000Z
2022-03-08T02:32:06.000Z
ourgroceries/exceptions.py
pironic/py-our-groceries
0c6726287123dae287e1e6c27d956c738113ed48
[ "MIT" ]
10
2019-10-22T19:34:53.000Z
2022-03-08T01:57:33.000Z
class InvalidLoginException(Exception): pass
12.5
39
0.78
4
50
9.75
1
0
0
0
0
0
0
0
0
0
0
0
0.16
50
4
40
12.5
0.928571
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
4
61521a23bb3936ffe427e5e47857a88b1ac1f072
409
py
Python
tests/test_str_to_sprite.py
davidbstein/gitfiti
f5787e5b8719b1bf7f017c0a58e9429d7d9c52f6
[ "MIT" ]
null
null
null
tests/test_str_to_sprite.py
davidbstein/gitfiti
f5787e5b8719b1bf7f017c0a58e9429d7d9c52f6
[ "MIT" ]
null
null
null
tests/test_str_to_sprite.py
davidbstein/gitfiti
f5787e5b8719b1bf7f017c0a58e9429d7d9c52f6
[ "MIT" ]
null
null
null
from sprites import str_to_sprite, ONEUP_STR SYMBOLS = ''' .*******. *=~~-~~=* *~~---~~* *=*****=* **-*-*-** .*-----*. ..*****.. ''' NUMBERS = [ [0,4,4,4,4,4,4,4,0], [4,3,2,2,0,2,2,3,4], [4,2,2,0,0,0,2,2,4], [4,3,4,4,4,4,4,3,4], [4,4,0,4,0,4,0,4,4], [0,4,0,0,0,0,0,4,0], [0,0,4,4,4,4,4,0,0], ] def test_symbols_to_numbers(): actual = str_to_sprite(SYMBOLS) assert actual == NUMBERS
14.607143
44
0.457213
86
409
2.081395
0.197674
0.212291
0.201117
0.178771
0.251397
0.156425
0
0
0
0
0
0.182081
0.154034
409
27
45
15.148148
0.33526
0
0
0
0
0
0.173594
0
0
0
0
0
0.045455
1
0.045455
false
0
0.045455
0
0.090909
0
0
0
0
null
1
1
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
0
0
0
0
0
0
0
0
4
615d1643b3681fae499461bb4a105e05c5f7cdca
190
py
Python
pseudo_ircbot.py
EdLeafe/elastic_irc
38959e25c0b9b309b89a46c3f7ab0a3576429621
[ "MIT" ]
null
null
null
pseudo_ircbot.py
EdLeafe/elastic_irc
38959e25c0b9b309b89a46c3f7ab0a3576429621
[ "MIT" ]
1
2020-07-03T14:36:10.000Z
2020-07-03T14:36:10.000Z
pseudo_ircbot.py
EdLeafe/elastic_irc
38959e25c0b9b309b89a46c3f7ab0a3576429621
[ "MIT" ]
null
null
null
import datetime import async_parse_irc yesterday = datetime.date.today() - datetime.timedelta(days=1) start = yesterday.strftime("%Y-%m-%d") async_parse_irc.parse(start=start, quiet=True)
23.75
62
0.773684
28
190
5.107143
0.642857
0.13986
0.181818
0
0
0
0
0
0
0
0
0.005747
0.084211
190
7
63
27.142857
0.816092
0
0
0
0
0
0.042105
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
617945e5c13e5b25e8537f02420f73656a8bb4f4
235
py
Python
server/utils/__init__.py
yseiren87/jellicleSpace
10d693bbc04e6b89a7ce15d2dc9797cec2a553b7
[ "Apache-2.0" ]
null
null
null
server/utils/__init__.py
yseiren87/jellicleSpace
10d693bbc04e6b89a7ce15d2dc9797cec2a553b7
[ "Apache-2.0" ]
7
2021-03-19T04:47:00.000Z
2021-09-22T19:10:46.000Z
server/utils/__init__.py
yseiren87/jellicleSpace
10d693bbc04e6b89a7ce15d2dc9797cec2a553b7
[ "Apache-2.0" ]
null
null
null
from .hash import HashUtil from .log import log, LogUtil from .choice import Choice, ChoiceUtil from .parameter_keys import ParameterKeys from .page import PageAdapter, Page, PageListABC from .response import get_serializer_error_code
33.571429
48
0.838298
32
235
6.03125
0.59375
0
0
0
0
0
0
0
0
0
0
0
0.119149
235
6
49
39.166667
0.932367
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
4
618e5e92671550304fe7e2988adbd2203a5edaeb
78
py
Python
backend/backend/settings/__init__.py
pvgupta24/CryptoWill
d7fe3aaa220e4540d81607ba1b55dea4e37e4baa
[ "MIT" ]
1
2020-02-03T11:55:38.000Z
2020-02-03T11:55:38.000Z
backend/backend/settings/__init__.py
pvgupta24/CryptoWill
d7fe3aaa220e4540d81607ba1b55dea4e37e4baa
[ "MIT" ]
10
2019-08-04T06:10:31.000Z
2022-02-12T18:17:12.000Z
backend/backend/settings/__init__.py
pvgupta24/CryptoWill
d7fe3aaa220e4540d81607ba1b55dea4e37e4baa
[ "MIT" ]
2
2019-08-07T19:47:28.000Z
2020-09-24T00:09:21.000Z
try: from .local import * except Exception: from .production import *
15.6
29
0.679487
9
78
5.888889
0.777778
0
0
0
0
0
0
0
0
0
0
0
0.24359
78
4
30
19.5
0.898305
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
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
61a149a007bdaed2b1f3bdf21b8ba8f1aa8948a9
109
py
Python
notification/strategy/starter.py
EhsanSaZ/send_message_api_bale_bot
803e9b91d1eea477d3060b5dcc4e0099641876c9
[ "MIT" ]
1
2018-11-12T17:00:35.000Z
2018-11-12T17:00:35.000Z
notification/strategy/starter.py
EhsanSaZ/send_message_api_bale_bot
803e9b91d1eea477d3060b5dcc4e0099641876c9
[ "MIT" ]
null
null
null
notification/strategy/starter.py
EhsanSaZ/send_message_api_bale_bot
803e9b91d1eea477d3060b5dcc4e0099641876c9
[ "MIT" ]
null
null
null
class Starter: def start(self, notification_sender, server_actor_ref): raise NotImplementedError
27.25
59
0.761468
12
109
6.666667
1
0
0
0
0
0
0
0
0
0
0
0
0.183486
109
3
60
36.333333
0.898876
0
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
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
0
0
0
1
0
0
4
4ee7880d0727b54a66e34d3af262fe8722c42af8
640
py
Python
src/sibyl/transformations/text/data/phrases.py
UCLA-SEAL/Sibyl
06e9d38ef551284ab48f507dc40d14fde3562fb6
[ "BSD-3-Clause" ]
null
null
null
src/sibyl/transformations/text/data/phrases.py
UCLA-SEAL/Sibyl
06e9d38ef551284ab48f507dc40d14fde3562fb6
[ "BSD-3-Clause" ]
null
null
null
src/sibyl/transformations/text/data/phrases.py
UCLA-SEAL/Sibyl
06e9d38ef551284ab48f507dc40d14fde3562fb6
[ "BSD-3-Clause" ]
null
null
null
POSITIVE_PHRASES = [ "That said, I liked it.", "That said, I loved it.", "That said, I couldn't be happier.", "That said, I'm pleased.", "That being said, I liked it.", "That being said, I loved it.", "That being said, I couldn't be happier.", "That being said, I'm pleased." ] NEGATIVE_PHRASES = [ "That said, I did not like it.", "That said, I hated it.", "That said, I couldn't be more upset.", "That said, I'm unhappy.", "That being said, I did not like it.", "That being said, I hated it.", "That being said, I couldn't be more upset.", "That being said, I'm unhappy." ]
30.47619
49
0.596875
106
640
3.584906
0.216981
0.210526
0.189474
0.294737
0.747368
0.473684
0.473684
0.236842
0
0
0
0
0.259375
640
21
50
30.47619
0.801688
0
0
0
0
0
0.730109
0
0
0
0
0
0
1
0
false
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
4eee06b3e3623184a4edfd4ef7d48d4395142249
164
py
Python
runner.py
xoiss/mk60
1e1be5527a7c6a6f95dfede9e5452faa90f7d456
[ "CC0-1.0" ]
null
null
null
runner.py
xoiss/mk60
1e1be5527a7c6a6f95dfede9e5452faa90f7d456
[ "CC0-1.0" ]
null
null
null
runner.py
xoiss/mk60
1e1be5527a7c6a6f95dfede9e5452faa90f7d456
[ "CC0-1.0" ]
null
null
null
if __name__ == '__main__': from sys import exit from mk60.app import main exit(main()) else: raise RuntimeError("runner must be run, not imported")
23.428571
58
0.676829
23
164
4.478261
0.782609
0
0
0
0
0
0
0
0
0
0
0.015748
0.22561
164
6
59
27.333333
0.795276
0
0
0
0
0
0.243902
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
4efb4b2a7ac038314937ca7c665e30ce81a582c4
357
py
Python
script_runner/main.py
lab-grid/script-runner
69bf681e9af3fb9300ee1b77290ffd06a09a1a70
[ "MIT" ]
4
2021-06-30T18:00:36.000Z
2022-01-25T21:03:34.000Z
script_runner/main.py
lab-grid/script-runner
69bf681e9af3fb9300ee1b77290ffd06a09a1a70
[ "MIT" ]
14
2021-04-26T09:48:37.000Z
2022-03-31T06:10:10.000Z
script_runner/main.py
lab-grid/script-runner
69bf681e9af3fb9300ee1b77290ffd06a09a1a70
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Sets up a flask-restx server for running the swabseq analysis R-script.""" from script_runner.server import app, api from script_runner.api.script import api as script from script_runner.api.health import api as server_health api.add_namespace(script) api.add_namespace(server_health) if __name__ == '__main__': app.run()
22.3125
77
0.773109
57
357
4.578947
0.526316
0.114943
0.183908
0.168582
0
0
0
0
0
0
0
0
0.131653
357
15
78
23.8
0.841935
0.257703
0
0
0
0
0.030888
0
0
0
0
0
0
1
0
true
0
0.428571
0
0.428571
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
f6083403b4085610d0da9b036de730d7e444c995
136
py
Python
examples/hello/input_format_validators/validate.py
Tyilo/problemtools
307bcbf2c90e75db6513ee6e4daa41590d988906
[ "MIT" ]
3
2019-10-22T17:31:19.000Z
2020-07-14T17:33:58.000Z
examples/hello/input_format_validators/validate.py
godmar/problemtools
4e2b2d7797d8f15e5536a9d2b35d251476bef79c
[ "MIT" ]
null
null
null
examples/hello/input_format_validators/validate.py
godmar/problemtools
4e2b2d7797d8f15e5536a9d2b35d251476bef79c
[ "MIT" ]
3
2019-10-22T17:32:01.000Z
2020-02-26T03:43:45.000Z
#!/usr/bin/env python2 from sys import stdin import sys # There shouldn't be any input assert len(stdin.readline()) == 0 sys.exit(42)
15.111111
33
0.720588
24
136
4.083333
0.833333
0
0
0
0
0
0
0
0
0
0
0.034783
0.154412
136
8
34
17
0.817391
0.367647
0
0
0
0
0
0
0
0
0
0
0.25
1
0
true
0
0.5
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
f63c50d1bf29bb5718b52213b5b39bdaa380f0e3
199
py
Python
Algorithms/Implementation/Kangaroo.py
gauthamkrishna-g/HackerRank
472d7a56fc1c1c4f8f03fcabc09d08da4000efde
[ "MIT" ]
1
2017-12-02T14:23:44.000Z
2017-12-02T14:23:44.000Z
Algorithms/Implementation/Kangaroo.py
gauthamkrishna-g/HackerRank
472d7a56fc1c1c4f8f03fcabc09d08da4000efde
[ "MIT" ]
null
null
null
Algorithms/Implementation/Kangaroo.py
gauthamkrishna-g/HackerRank
472d7a56fc1c1c4f8f03fcabc09d08da4000efde
[ "MIT" ]
null
null
null
#!/bin/python3 x1,v1,x2,v2 = input().strip().split(' ') x1,v1,x2,v2 = [int(x1),int(v1),int(x2),int(v2)] print("YES" if (x2 - x1) * (v2 - v1) < 0 and (x2 - x1) % (v2 - v1) == 0 else "NO")
28.428571
83
0.492462
37
199
2.648649
0.459459
0.081633
0.122449
0.163265
0.183673
0
0
0
0
0
0
0.147436
0.21608
199
7
84
28.428571
0.480769
0.065327
0
0
0
0
0.033333
0
0
0
0
0
0
1
0
true
0
0
0
0
0.333333
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
f640c75d44329cd62f0bd63d9e71a578d7df4871
95
py
Python
osc_bge/branch/apps.py
jisuhan3201/osc-bge
125c441d23d7f1fdb2d9b8f42f859082e757e25a
[ "MIT" ]
null
null
null
osc_bge/branch/apps.py
jisuhan3201/osc-bge
125c441d23d7f1fdb2d9b8f42f859082e757e25a
[ "MIT" ]
5
2020-06-05T19:49:47.000Z
2021-09-08T00:50:55.000Z
osc_bge/branch/apps.py
jisuhan3201/osc-bge
125c441d23d7f1fdb2d9b8f42f859082e757e25a
[ "MIT" ]
null
null
null
from django.apps import AppConfig class BranchConfig(AppConfig): name = 'osc_bge.branch'
15.833333
33
0.757895
12
95
5.916667
0.916667
0
0
0
0
0
0
0
0
0
0
0
0.157895
95
5
34
19
0.8875
0
0
0
0
0
0.147368
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
f64d45024fdca2b02f876052c1128c86faaa43e6
134
py
Python
crypto/prime/admin.py
aberrier/crypto-api-back
170014de1d4b7d8622e4e86d7bf75f6273d0f062
[ "MIT" ]
null
null
null
crypto/prime/admin.py
aberrier/crypto-api-back
170014de1d4b7d8622e4e86d7bf75f6273d0f062
[ "MIT" ]
null
null
null
crypto/prime/admin.py
aberrier/crypto-api-back
170014de1d4b7d8622e4e86d7bf75f6273d0f062
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Alert # Register the Alert model in the admin panel admin.site.register(Alert)
19.142857
45
0.798507
21
134
5.095238
0.619048
0
0
0
0
0
0
0
0
0
0
0
0.149254
134
6
46
22.333333
0.938596
0.320896
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
f66acfa950756b0265e49ea6bcbefcc97bbaa364
187
py
Python
lead_manager/venv/Scripts/django-admin.py
MartinMwiti/Django-React-Apps
1e4c91faeda9d129142d4dbe7fd95a70c7a58d5d
[ "MIT" ]
null
null
null
lead_manager/venv/Scripts/django-admin.py
MartinMwiti/Django-React-Apps
1e4c91faeda9d129142d4dbe7fd95a70c7a58d5d
[ "MIT" ]
21
2021-03-11T00:34:32.000Z
2022-03-12T00:39:44.000Z
lead_manager/venv/Scripts/django-admin.py
MartinMwiti/Django-React-Apps
1e4c91faeda9d129142d4dbe7fd95a70c7a58d5d
[ "MIT" ]
null
null
null
#!d:\software development\django-react-apps\lead_manager\venv\scripts\python.exe from django.core import management if __name__ == "__main__": management.execute_from_command_line()
31.166667
80
0.802139
25
187
5.52
0.88
0
0
0
0
0
0
0
0
0
0
0
0.085562
187
5
81
37.4
0.807018
0.42246
0
0
0
0
0.074766
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
9cccec976465dabe3cfc2d20364490a9faddcc8e
157
py
Python
codewof/programming/content/en/price-in-budget/initial.py
taskmaker1/codewof
92d52cd3ee91f0f311ff01a92cf6ec07e5593b8d
[ "MIT" ]
3
2019-08-29T04:11:22.000Z
2021-06-22T16:05:51.000Z
codewof/programming/content/en/price-in-budget/initial.py
taskmaker1/codewof
92d52cd3ee91f0f311ff01a92cf6ec07e5593b8d
[ "MIT" ]
265
2019-05-30T03:51:46.000Z
2022-03-31T01:05:12.000Z
codewof/programming/content/en/price-in-budget/initial.py
samuelsandri/codewof
c9b8b378c06b15a0c42ae863b8f46581de04fdfc
[ "MIT" ]
7
2019-06-29T12:13:37.000Z
2021-09-06T06:49:14.000Z
def is_price_in_budget(price): if price > 100 or price < 500: is_in_budget = True else: is_in_budget = False return is_in_budget
22.428571
34
0.643312
25
157
3.68
0.52
0.347826
0.326087
0
0
0
0
0
0
0
0
0.054545
0.299363
157
6
35
26.166667
0.781818
0
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0
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
0
0
0
0
0
4
9ce720919b9f904e57fa538a3db7657a3599f63d
136
py
Python
pokemongo_bot/cell_workers/migrations/shadowban_log.py
timgates42/PokemonGo-Bot
5e80f20760f32478a84a8f0ced7ca24cdf41fe03
[ "MIT" ]
5,362
2016-07-21T02:38:46.000Z
2022-03-23T13:34:51.000Z
pokemongo_bot/cell_workers/migrations/shadowban_log.py
timgates42/PokemonGo-Bot
5e80f20760f32478a84a8f0ced7ca24cdf41fe03
[ "MIT" ]
5,897
2016-07-21T05:05:49.000Z
2022-03-17T09:21:35.000Z
pokemongo_bot/cell_workers/migrations/shadowban_log.py
timgates42/PokemonGo-Bot
5e80f20760f32478a84a8f0ced7ca24cdf41fe03
[ "MIT" ]
3,379
2016-07-21T02:38:48.000Z
2022-03-30T02:46:57.000Z
from yoyo import step step( "CREATE TABLE IF NOT EXISTS shadowban_log (username text, dated datetime DEFAULT CURRENT_TIMESTAMP)" )
22.666667
104
0.779412
19
136
5.473684
0.947368
0
0
0
0
0
0
0
0
0
0
0
0.169118
136
5
105
27.2
0.920354
0
0
0
0
0
0.720588
0
0
0
0
0
0
1
0
true
0
0.25
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
1
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
9cf36044a78da6b44f50ef7880b953422fdb98f0
360
py
Python
src/python/WMCore/WMBS/Oracle/Jobs/LoadFromIDWithWorkflow.py
khurtado/WMCore
f74e252412e49189a92962945a94f93bec81cd1e
[ "Apache-2.0" ]
21
2015-11-19T16:18:45.000Z
2021-12-02T18:20:39.000Z
src/python/WMCore/WMBS/Oracle/Jobs/LoadFromIDWithWorkflow.py
khurtado/WMCore
f74e252412e49189a92962945a94f93bec81cd1e
[ "Apache-2.0" ]
5,671
2015-01-06T14:38:52.000Z
2022-03-31T22:11:14.000Z
src/python/WMCore/WMBS/Oracle/Jobs/LoadFromIDWithWorkflow.py
khurtado/WMCore
f74e252412e49189a92962945a94f93bec81cd1e
[ "Apache-2.0" ]
67
2015-01-21T15:55:38.000Z
2022-02-03T19:53:13.000Z
#!/usr/bin/env python """ _LoadFromIDWithWorkflow_ Oracle implementation of Jobs.LoadFromIDWithWorkflow. """ from WMCore.WMBS.MySQL.Jobs.LoadFromIDWithWorkflow import LoadFromIDWithWorkflow as MySQLLoadFromIDWithWorkflow class LoadFromIDWithWorkflow(MySQLLoadFromIDWithWorkflow): """ Load jobs by ID but include the workflow name """ pass
21.176471
111
0.788889
33
360
8.545455
0.787879
0.184397
0
0
0
0
0
0
0
0
0
0
0.138889
360
16
112
22.5
0.909677
0.405556
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.333333
0.333333
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
1
0
1
0
0
4
140a20b90e9925d43057fe27d47d950c88b00b9a
214
py
Python
cainiao/__init__.py
shengurun/cainiao
4cdd07716f47e99851dd6571e53b745401de5e85
[ "MIT" ]
1
2020-02-09T09:35:05.000Z
2020-02-09T09:35:05.000Z
cainiao/__init__.py
shengurun/cainiao
4cdd07716f47e99851dd6571e53b745401de5e85
[ "MIT" ]
null
null
null
cainiao/__init__.py
shengurun/cainiao
4cdd07716f47e99851dd6571e53b745401de5e85
[ "MIT" ]
1
2021-10-15T08:08:32.000Z
2021-10-15T08:08:32.000Z
from .clients import WayBillClient, CloudPrintClient from .waybill import WayBill from .cloudprint import CloudPrint __all__ = ("WayBillClient", "WayBill", "CloudPrint", "CloudPrintClient") __version__ = "0.2.0"
26.75
72
0.780374
22
214
7.227273
0.5
0
0
0
0
0
0
0
0
0
0
0.015789
0.11215
214
7
73
30.571429
0.821053
0
0
0
0
0
0.238318
0
0
0
0
0
0
1
0
false
0
0.6
0
0.6
0.2
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
14219aade86da139c62f8446f9211557fa044d42
63
py
Python
tests/__init__.py
griff-rees/uk-boards
bf5726c9716caa5ab1e3a7134e6bc6ee6f4fe5db
[ "MIT" ]
4
2021-05-06T13:14:17.000Z
2022-01-17T17:25:11.000Z
tests/__init__.py
griff-rees/ukboards
338075813e7ac47a2f1c4f1dc8a16f92ea0fac68
[ "MIT" ]
139
2020-12-20T18:49:02.000Z
2022-03-31T18:25:08.000Z
tests/__init__.py
spool/uk_boards
bf5726c9716caa5ab1e3a7134e6bc6ee6f4fe5db
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Unit test package for ukboards."""
15.75
37
0.571429
8
63
4.5
1
0
0
0
0
0
0
0
0
0
0
0.019231
0.174603
63
3
38
21
0.673077
0.857143
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
1428015a750bd87472b35db0b734cb0d701b1223
91
py
Python
LUCE-API/luce_vm/luce_django/luce/API/models.py
maastrichtlawtech/webmon-extension
74b0f449eac4417495e69bb3f6f711bdbebfb2fd
[ "MIT" ]
null
null
null
LUCE-API/luce_vm/luce_django/luce/API/models.py
maastrichtlawtech/webmon-extension
74b0f449eac4417495e69bb3f6f711bdbebfb2fd
[ "MIT" ]
null
null
null
LUCE-API/luce_vm/luce_django/luce/API/models.py
maastrichtlawtech/webmon-extension
74b0f449eac4417495e69bb3f6f711bdbebfb2fd
[ "MIT" ]
1
2022-03-31T09:22:49.000Z
2022-03-31T09:22:49.000Z
from django.db import models class Donor(models.Model): userName = models.TextField()
18.2
33
0.747253
12
91
5.666667
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.153846
91
4
34
22.75
0.883117
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
14291050527211ae9a73fbc73d445b07160f6925
46
py
Python
project/wsgi.py
Hazhzeng/functions-wsgi-demo
2b876fe04374c85a3f890dd32b928313bec40bdd
[ "MIT" ]
5
2020-02-14T02:38:02.000Z
2021-11-05T14:11:28.000Z
project/wsgi.py
Hazhzeng/functions-wsgi-demo
2b876fe04374c85a3f890dd32b928313bec40bdd
[ "MIT" ]
6
2019-11-24T02:42:03.000Z
2022-03-15T19:57:09.000Z
project/wsgi.py
Hazhzeng/functions-wsgi-demo
2b876fe04374c85a3f890dd32b928313bec40bdd
[ "MIT" ]
5
2021-02-21T18:24:19.000Z
2021-11-08T10:59:44.000Z
from . import app application = app.wsgi_app
11.5
26
0.76087
7
46
4.857143
0.714286
0
0
0
0
0
0
0
0
0
0
0
0.173913
46
3
27
15.333333
0.894737
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
143a71f0538e957183a42d1dc096bccb0dd0d05c
345
py
Python
Problems/Two Pointers/easy/MergeStringAlternately/test_merge_string_alternately.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
1
2021-08-16T14:52:05.000Z
2021-08-16T14:52:05.000Z
Problems/Two Pointers/easy/MergeStringAlternately/test_merge_string_alternately.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
Problems/Two Pointers/easy/MergeStringAlternately/test_merge_string_alternately.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
from unittest import TestCase from merge_string_alternately import mergeAlternately class Test(TestCase): def test_merge_alternately(self): self.assertEqual(mergeAlternately("abc", "pqr"), "apbqcr") self.assertEqual(mergeAlternately("ab", "pqrs"), "apbqrs") self.assertEqual(mergeAlternately("abcd", "pq"), "apbqcd")
43.125
66
0.727536
36
345
6.861111
0.611111
0.182186
0.376518
0
0
0
0
0
0
0
0
0
0.142029
345
8
67
43.125
0.834459
0
0
0
0
0
0.104046
0
0
0
0
0
0.428571
1
0.142857
false
0
0.285714
0
0.571429
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
1
0
0
4
1aec96771f903924f129d0d0d74d7863b0884618
188
py
Python
project/__init__.py
carlosasj/gauss-jordan
a5eedf5a175c966f9b402fa4baf8596e9abae369
[ "MIT" ]
null
null
null
project/__init__.py
carlosasj/gauss-jordan
a5eedf5a175c966f9b402fa4baf8596e9abae369
[ "MIT" ]
null
null
null
project/__init__.py
carlosasj/gauss-jordan
a5eedf5a175c966f9b402fa4baf8596e9abae369
[ "MIT" ]
null
null
null
# flake8: noqa from .entrypoint import prompt, do_gauss_jordan from .line import Line from .term import Term from .aux_functions import strip, to_term, iterable_to_matrix, file_to_matrix
26.857143
77
0.819149
30
188
4.866667
0.6
0.109589
0
0
0
0
0
0
0
0
0
0.006098
0.12766
188
6
78
31.333333
0.884146
0.06383
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
4
1af162710ea23264c12a781050d3e701f3748534
49
py
Python
teste.py
Lnogue/pacman_puc
8f5987300dbe308e72d3d8393f7c3a10c787d8c6
[ "Apache-2.0" ]
null
null
null
teste.py
Lnogue/pacman_puc
8f5987300dbe308e72d3d8393f7c3a10c787d8c6
[ "Apache-2.0" ]
null
null
null
teste.py
Lnogue/pacman_puc
8f5987300dbe308e72d3d8393f7c3a10c787d8c6
[ "Apache-2.0" ]
null
null
null
print("testando") a = 2+2 b = 5 * 8 print (b-a)
8.166667
17
0.530612
11
49
2.363636
0.636364
0
0
0
0
0
0
0
0
0
0
0.108108
0.244898
49
6
18
8.166667
0.594595
0
0
0
0
0
0.16
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
4
21116b4e5b8b9dd8e7a148b04c22f971517ce437
52
py
Python
{{ cookiecutter.repo_name }}/{{ cookiecutter.repo_name }}/__main__.py
elaynelemos/cookiecutter-data-science
d85e787e000537cb5d0139ab389d145f8b07b6f3
[ "MIT" ]
2
2020-06-23T12:20:59.000Z
2020-10-10T18:49:14.000Z
{{ cookiecutter.repo_name }}/{{ cookiecutter.repo_name }}/__main__.py
elaynelemos/cookiecutter-data-science
d85e787e000537cb5d0139ab389d145f8b07b6f3
[ "MIT" ]
4
2020-06-04T20:38:27.000Z
2020-06-11T11:24:28.000Z
{{ cookiecutter.repo_name }}/{{ cookiecutter.repo_name }}/__main__.py
elaynelemos/cookiecutter-data-science
d85e787e000537cb5d0139ab389d145f8b07b6f3
[ "MIT" ]
3
2020-06-03T16:04:51.000Z
2020-06-23T12:21:06.000Z
"""Your module main code should be placed here. """
17.333333
47
0.692308
8
52
4.5
1
0
0
0
0
0
0
0
0
0
0
0
0.173077
52
2
48
26
0.837209
0.846154
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
2119fd917831106f61cbfbbba1c701861b726ca6
143
py
Python
drl/agents/architectures/abstract.py
lucaslingle/pytorch_drl
6b2c1142a36553ce5dcb0a5768767579676d5791
[ "MIT" ]
null
null
null
drl/agents/architectures/abstract.py
lucaslingle/pytorch_drl
6b2c1142a36553ce5dcb0a5768767579676d5791
[ "MIT" ]
null
null
null
drl/agents/architectures/abstract.py
lucaslingle/pytorch_drl
6b2c1142a36553ce5dcb0a5768767579676d5791
[ "MIT" ]
null
null
null
import abc import torch as tc class Architecture(tc.nn.Module, metaclass=abc.ABCMeta): """ Computes features from an input. """
14.3
56
0.678322
19
143
5.105263
0.842105
0
0
0
0
0
0
0
0
0
0
0
0.216783
143
9
57
15.888889
0.866071
0.223776
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.666667
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
21239b74bf2b987948e90ce500292ad59e7a5b7b
31
py
Python
test cases/unit/101 relative find program/foo.py
iinuwa/meson
7528c69fcca63889d67c1d6c2463c9e9485585a8
[ "Apache-2.0" ]
4,047
2015-06-18T10:36:48.000Z
2022-03-31T09:47:02.000Z
test cases/unit/101 relative find program/foo.py
iinuwa/meson
7528c69fcca63889d67c1d6c2463c9e9485585a8
[ "Apache-2.0" ]
8,206
2015-06-14T12:20:48.000Z
2022-03-31T22:50:37.000Z
test cases/unit/101 relative find program/foo.py
iinuwa/meson
7528c69fcca63889d67c1d6c2463c9e9485585a8
[ "Apache-2.0" ]
1,489
2015-06-27T04:06:38.000Z
2022-03-29T10:14:48.000Z
#!/usr/bin/env python3 exit(0)
10.333333
22
0.677419
6
31
3.5
1
0
0
0
0
0
0
0
0
0
0
0.071429
0.096774
31
3
23
10.333333
0.678571
0.677419
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
21290251f9d28d190e39ac663bce01dc307f5797
15
py
Python
rampage/__init__.py
shreyaspotnis/rampage
e2565aef7ee16ee06523de975e8aa41aca14e3b2
[ "MIT" ]
null
null
null
rampage/__init__.py
shreyaspotnis/rampage
e2565aef7ee16ee06523de975e8aa41aca14e3b2
[ "MIT" ]
null
null
null
rampage/__init__.py
shreyaspotnis/rampage
e2565aef7ee16ee06523de975e8aa41aca14e3b2
[ "MIT" ]
null
null
null
"""Rampage """
5
10
0.466667
1
15
7
1
0
0
0
0
0
0
0
0
0
0
0
0.133333
15
2
11
7.5
0.538462
0.466667
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
212afb2977f9277d2e72cc90fa88c1f4ddad6351
195
py
Python
celeryanalytics/apps.py
Solar-Helix-Independent-Transport/allianceauth-celeryanalytics
15e84bf5c80d760128014812b825b6f2925378cf
[ "MIT" ]
1
2019-12-01T10:29:45.000Z
2019-12-01T10:29:45.000Z
celeryanalytics/apps.py
pvyParts/allianceauth-celeryanalytics
9e7a645d54329d817e1dec50a3738d87a316364e
[ "MIT" ]
2
2022-01-04T16:02:04.000Z
2022-01-05T08:28:49.000Z
celeryanalytics/apps.py
Solar-Helix-Independent-Transport/allianceauth-celeryanalytics
15e84bf5c80d760128014812b825b6f2925378cf
[ "MIT" ]
2
2021-08-12T04:40:35.000Z
2022-01-04T19:24:01.000Z
from django.apps import AppConfig class CeleryAnalyticsConfig(AppConfig): name = 'celeryanalytics' label = 'celeryanalytics' def ready(self): import celeryanalytics.signals
21.666667
39
0.733333
18
195
7.944444
0.777778
0
0
0
0
0
0
0
0
0
0
0
0.194872
195
8
40
24.375
0.910828
0
0
0
0
0
0.153846
0
0
0
0
0
0
1
0.166667
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
dce93d2afbe14b6bf4539942ed92f66674f8d14d
192
py
Python
countLines.py
binnev/what-can-be-computed
58d01ef09096bda2d0a1876575b992d47fcd0470
[ "CC-BY-4.0" ]
null
null
null
countLines.py
binnev/what-can-be-computed
58d01ef09096bda2d0a1876575b992d47fcd0470
[ "CC-BY-4.0" ]
null
null
null
countLines.py
binnev/what-can-be-computed
58d01ef09096bda2d0a1876575b992d47fcd0470
[ "CC-BY-4.0" ]
null
null
null
import utils from utils import rf def countLines(inString): # split on newlines lines = inString.split("\n") # return the number of lines, as a string return str(len(lines))
19.2
45
0.682292
28
192
4.678571
0.75
0.198473
0
0
0
0
0
0
0
0
0
0
0.229167
192
9
46
21.333333
0.885135
0.296875
0
0
0
0
0.015152
0
0
0
0
0
0
1
0.2
false
0
0.4
0
0.8
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
dcefb0e811551fbe363d4633f912329224e0d5b0
65
py
Python
skopje/__init__.py
hotdogPi/Skopje
3a6a72589539349afcbc8921f8de1f16d866f5e0
[ "MIT" ]
1
2021-07-10T18:46:01.000Z
2021-07-10T18:46:01.000Z
skopje/__init__.py
hotdogPi/Skopje
3a6a72589539349afcbc8921f8de1f16d866f5e0
[ "MIT" ]
null
null
null
skopje/__init__.py
hotdogPi/Skopje
3a6a72589539349afcbc8921f8de1f16d866f5e0
[ "MIT" ]
1
2022-01-13T18:24:56.000Z
2022-01-13T18:24:56.000Z
# What to do upon calling "import skopje" from .skop import skop
21.666667
41
0.753846
11
65
4.454545
0.818182
0
0
0
0
0
0
0
0
0
0
0
0.184615
65
2
42
32.5
0.924528
0.6
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
b4a3a57a382cc1afa9ce35172dc42125af270306
2,145
py
Python
utils/boilerplate/test_elephant.py
cfginn/sap-simulation-package
73314e5380cec5c61a9fe5ff5fbafa25b9e2beac
[ "MIT" ]
null
null
null
utils/boilerplate/test_elephant.py
cfginn/sap-simulation-package
73314e5380cec5c61a9fe5ff5fbafa25b9e2beac
[ "MIT" ]
null
null
null
utils/boilerplate/test_elephant.py
cfginn/sap-simulation-package
73314e5380cec5c61a9fe5ff5fbafa25b9e2beac
[ "MIT" ]
null
null
null
import unittest from pysapets.elephant import Elephant from pysapets.animal import Animal import pysapets.constants as constants from unittest.mock import patch from io import StringIO from copy import deepcopy class ElephantTest(unittest.TestCase): def setUp(self): self.elephant = Elephant() self.friends = [self.elephant, Animal(2, 2), Animal(2, 2), Animal(2, 2), Animal(2, 2)] # test that get_type returns the correct type def test_get_type(self): self.assertEqual(self.elephant.get_type(), constants.ELEPHANT) # test that elephant starts with base health of 5 def test_get_health(self): self.assertEqual(self.elephant.get_health(), 5) # test that elephant starts with base attack of 3 def test_get_attack(self): self.assertEqual(self.elephant.get_attack(), 3) # test that initializing elephant with additional health increases health def test_init_add_health(self): newElephant = Elephant(addHealth = 3) self.assertEqual(newElephant.get_health(), 5 + 3) # test that initializing an elephant with additional attack increases attack def test_init_add_attack(self): newElephant = Elephant(addAttack = 3) self.assertEqual(newElephant.get_attack(), 3 + 3) # test that initializing elephant with additional health and attack increases health and attack def test_init_add_health_attack(self): newElephant = Elephant(addHealth = 3, addAttack = 3) self.assertEqual(newElephant.get_health(), 5 + 3) self.assertEqual(newElephant.get_attack(), 3 + 3) # test that elephant ability has correct trigger def test_get_ability_trigger(self): self.assertEqual(self.elephant.get_ability_trigger(), constants.BEFORE_ATTACK) # test that elephant ability has correct triggeredBy def test_get_ability_triggeredBy(self): self.assertEqual(self.elephant.get_ability_triggeredBy(), constants.SELF) # TODO add relevant tests for elephant ability def test_run_ability(self): pass def test_run_ability_level_1(self): pass def test_run_ability_level_2(self): pass def test_run_ability_level_3(self): pass
32.014925
97
0.748252
294
2,145
5.292517
0.207483
0.053985
0.032134
0.073907
0.532776
0.448586
0.29563
0.18509
0.079692
0.059126
0
0.015211
0.172494
2,145
67
98
32.014925
0.861408
0.244289
0
0.205128
0
0
0
0
0
0
0
0.014925
0.230769
1
0.333333
false
0.102564
0.179487
0
0.538462
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
0
1
0
0
4
b4a6549b47a6935e2adc560ad5318ae84b5054b8
113
py
Python
src/base_unittest.py
fekblom/critic
a6b60c9053e13d4c878d50531860d7389568626d
[ "Apache-2.0" ]
216
2015-01-05T12:48:10.000Z
2022-03-08T00:12:23.000Z
src/base_unittest.py
fekblom/critic
a6b60c9053e13d4c878d50531860d7389568626d
[ "Apache-2.0" ]
55
2015-02-28T12:10:26.000Z
2020-11-18T17:45:16.000Z
src/base_unittest.py
fekblom/critic
a6b60c9053e13d4c878d50531860d7389568626d
[ "Apache-2.0" ]
34
2015-05-02T15:15:10.000Z
2020-06-15T19:20:37.000Z
def independence(): # Simply check that base can be imported. import base print "independence: ok"
16.142857
45
0.672566
14
113
5.428571
0.857143
0
0
0
0
0
0
0
0
0
0
0
0.256637
113
6
46
18.833333
0.904762
0.345133
0
0
0
0
0.222222
0
0
0
0
0
0
0
null
null
0
0.333333
null
null
0.333333
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
4
b4cca09337b02a9336a893eb3318ca00d49f56c0
203
py
Python
venv_restaurant/Scripts/django-admin.py
Frank1963-mpoyi/RUTH-RESTAURANT-BACK-END
b2c657b822295b717e699797a12c3db48f8d3b70
[ "MIT" ]
null
null
null
venv_restaurant/Scripts/django-admin.py
Frank1963-mpoyi/RUTH-RESTAURANT-BACK-END
b2c657b822295b717e699797a12c3db48f8d3b70
[ "MIT" ]
null
null
null
venv_restaurant/Scripts/django-admin.py
Frank1963-mpoyi/RUTH-RESTAURANT-BACK-END
b2c657b822295b717e699797a12c3db48f8d3b70
[ "MIT" ]
null
null
null
#!c:\users\mpoyi tshibuyi\desktop\cv\ruth-restaurant-back-end\venv_restaurant\scripts\python.exe from django.core import management if __name__ == "__main__": management.execute_from_command_line()
33.833333
96
0.802956
28
203
5.392857
0.892857
0
0
0
0
0
0
0
0
0
0
0
0.078818
203
5
97
40.6
0.807487
0.46798
0
0
0
0
0.074766
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
b4de7316ed1e8e13a0577cf10dc2841aba8c4450
114
py
Python
food_reference_listing/database/apps.py
bfssi-forest-dussault/food_reference_listing
85372a81a9201dda02797ab0c11b1bd710f9b70d
[ "MIT" ]
null
null
null
food_reference_listing/database/apps.py
bfssi-forest-dussault/food_reference_listing
85372a81a9201dda02797ab0c11b1bd710f9b70d
[ "MIT" ]
null
null
null
food_reference_listing/database/apps.py
bfssi-forest-dussault/food_reference_listing
85372a81a9201dda02797ab0c11b1bd710f9b70d
[ "MIT" ]
null
null
null
from django.apps import AppConfig class DatabaseConfig(AppConfig): name = 'food_reference_listing.database'
19
44
0.798246
13
114
6.846154
0.923077
0
0
0
0
0
0
0
0
0
0
0
0.131579
114
5
45
22.8
0.89899
0
0
0
0
0
0.27193
0.27193
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
3714521e447b9677165a8e7963ed19bc3ce14d21
64
py
Python
vintageColorizer/__init__.py
Team-16-B/VintageColorizer
80c502fae32f5d4ca92727f2ffa63a48331bd8a8
[ "MIT" ]
1
2021-06-18T09:16:58.000Z
2021-06-18T09:16:58.000Z
vintageColorizer/__init__.py
Team-16-B/VintageColorizer
80c502fae32f5d4ca92727f2ffa63a48331bd8a8
[ "MIT" ]
null
null
null
vintageColorizer/__init__.py
Team-16-B/VintageColorizer
80c502fae32f5d4ca92727f2ffa63a48331bd8a8
[ "MIT" ]
null
null
null
from vintageColorizer._device import _Device device = _Device()
21.333333
44
0.828125
7
64
7.142857
0.571429
0.48
0
0
0
0
0
0
0
0
0
0
0.109375
64
3
45
21.333333
0.877193
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
372ec5bb74cde700d6daf808f9e274dcb999cf1b
49
py
Python
Nino/Files/config.py
rdhuper/Project_Crypto
49e22c1f7d01e4689073f89d2c79a6cf419e47e3
[ "MIT" ]
1
2018-10-13T20:15:52.000Z
2018-10-13T20:15:52.000Z
Nino/Files/config.py
rdhuper/Project_Crypto
49e22c1f7d01e4689073f89d2c79a6cf419e47e3
[ "MIT" ]
1
2018-10-17T04:04:57.000Z
2018-10-17T04:04:57.000Z
Nino/Files/config.py
rdhuper/Project_Crypto
49e22c1f7d01e4689073f89d2c79a6cf419e47e3
[ "MIT" ]
null
null
null
# Enter your password for SQL sqlpw = "password"
16.333333
29
0.734694
7
49
5.142857
0.857143
0
0
0
0
0
0
0
0
0
0
0
0.183673
49
2
30
24.5
0.9
0.55102
0
0
0
0
0.4
0
0
0
0
0
0
1
0
false
1
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
4
2e9e378b71918a48cd1b5aa6e11813c09f19056c
432
py
Python
pia/cli.py
soasme/bamboo
5c2b879dcbeafc46990d6bfda6f376acc7a55f01
[ "0BSD" ]
4
2016-04-04T17:30:43.000Z
2016-04-11T11:03:38.000Z
pia/cli.py
soasme/pia
5c2b879dcbeafc46990d6bfda6f376acc7a55f01
[ "0BSD" ]
2
2016-04-04T09:44:57.000Z
2016-04-04T09:49:44.000Z
pia/cli.py
soasme/pia
5c2b879dcbeafc46990d6bfda6f376acc7a55f01
[ "0BSD" ]
null
null
null
# -*- coding: utf-8 -*- """ pia.cli ~~~~~~~~~~~~~ A simple command line application for pia. """ import click @click.group() def cli(): """ Pia cli group """ pass @cli.command() def run(): """ Run remote pia program. """ pass @cli.command() def dev(): """ Develop a pia program locally. """ def main(): """ Pia main function """ cli() if __name__ == '__main__': main()
11.675676
42
0.509259
50
432
4.24
0.52
0.056604
0.132075
0.160377
0
0
0
0
0
0
0
0.003236
0.284722
432
36
43
12
0.682848
0.407407
0
0.307692
0
0
0.040609
0
0
0
0
0
0
1
0.307692
true
0.153846
0.076923
0
0.384615
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
1
0
0
0
0
0
4
2e9f955cd520a372ad16539bc58013fcc42d5c6b
1,222
py
Python
FEArena/feaapi/admin.py
Superbird11/FEArena
76b32dd9d4fddc62c191225e332560e0e9ed2c9e
[ "MIT" ]
1
2020-12-25T03:33:44.000Z
2020-12-25T03:33:44.000Z
FEArena/feaapi/admin.py
Superbird11/FEArena
76b32dd9d4fddc62c191225e332560e0e9ed2c9e
[ "MIT" ]
null
null
null
FEArena/feaapi/admin.py
Superbird11/FEArena
76b32dd9d4fddc62c191225e332560e0e9ed2c9e
[ "MIT" ]
null
null
null
from django.contrib import admin # Register your models here. from .models import core from .models import build from .models import play admin.site.register(core.FireEmblemGame) admin.site.register(core.Unit) admin.site.register(core.Class) admin.site.register(core.Weapon) admin.site.register(core.Item) admin.site.register(core.Skill) admin.site.register(core.WeaponRankBonus) admin.site.register(core.WeaponTriangleBonus) admin.site.register(core.WeaponRankPointRequirement) admin.site.register(core.BondSupport) admin.site.register(core.RankedSupportTemplate) admin.site.register(core.ExtraSkill) admin.site.register(core.FireEmblemGameRoute) admin.site.register(core.PromotionBonus) admin.site.register(build.BuiltTeam) admin.site.register(build.BuiltUnit) admin.site.register(build.BuiltClass) admin.site.register(build.BuiltWeapon) admin.site.register(build.BuiltItem) admin.site.register(build.RankedSupport) admin.site.register(play.ActiveArena) admin.site.register(play.ActiveTeam) admin.site.register(play.ActiveUnit) admin.site.register(play.ActiveItem) admin.site.register(play.ActiveWeapon) admin.site.register(play.GameFormat) admin.site.register(play.SkillData) admin.site.register(play.MatchRequest)
32.157895
52
0.837152
161
1,222
6.354037
0.254658
0.246334
0.465298
0.28739
0
0
0
0
0
0
0
0
0.043372
1,222
37
53
33.027027
0.875107
0.021277
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.125
0
0.125
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
2edbbcc4cbccb7869b9b3a5ffedc9be2301ea298
371
py
Python
test/test_dc_coastal_change.py
M3nin0/data_cube_utilities
badd774c35babc5becc17e1a2b38a0d1782d3540
[ "Apache-2.0" ]
14
2017-03-20T02:37:18.000Z
2022-01-23T05:36:39.000Z
test/test_dc_coastal_change.py
M3nin0/data_cube_utilities
badd774c35babc5becc17e1a2b38a0d1782d3540
[ "Apache-2.0" ]
7
2021-03-31T20:12:05.000Z
2022-03-12T00:55:06.000Z
test/test_dc_coastal_change.py
M3nin0/data_cube_utilities
badd774c35babc5becc17e1a2b38a0d1782d3540
[ "Apache-2.0" ]
21
2017-03-06T08:55:24.000Z
2021-12-17T04:32:39.000Z
import unittest from data_cube_utilities import dc_coastal_change class TestCoastalChange(unittest.TestCase): def setUp(self): pass def tearDown(self): pass def test_compute_coastal_change(self): pass def test_mask_mosaic_with_coastlines(self): pass def test_mask_mosaic_with_coastal_change(self): pass
16.863636
51
0.703504
46
371
5.326087
0.5
0.163265
0.179592
0.183673
0.236735
0.236735
0.236735
0
0
0
0
0
0.245283
371
21
52
17.666667
0.875
0
0
0.384615
0
0
0
0
0
0
0
0
0
1
0.384615
false
0.384615
0.153846
0
0.615385
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
4
2c08732fa0a75fdc2e73479ce826dbcb4dc29a51
71
py
Python
src/meerkat/exceptions.py
Pawamoy/django-meerkat
5d754120a32695caa7b24c801b858c8f1e904283
[ "0BSD" ]
10
2016-06-09T08:23:10.000Z
2017-07-31T01:26:06.000Z
src/meerkat/exceptions.py
Pawamoy/django-meerkat
5d754120a32695caa7b24c801b858c8f1e904283
[ "0BSD" ]
11
2016-06-14T14:07:44.000Z
2017-05-24T12:49:34.000Z
src/meerkat/exceptions.py
Pawamoy/django-meerkat
5d754120a32695caa7b24c801b858c8f1e904283
[ "0BSD" ]
2
2018-03-14T02:14:03.000Z
2019-06-06T06:54:13.000Z
# -*- coding: utf-8 -*- class RateExceededError(Exception): pass
11.833333
35
0.633803
7
71
6.428571
1
0
0
0
0
0
0
0
0
0
0
0.017544
0.197183
71
5
36
14.2
0.77193
0.295775
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
4
2c1b8264dccf5b44e3002c9c34d2872c3ff19377
234
py
Python
spirit/comment/apps.py
StepanBakshayev/Spirit
28c053983d8323801d022c5314af7fdff4569228
[ "MIT" ]
3
2019-08-18T19:08:48.000Z
2019-12-04T18:14:29.000Z
spirit/comment/apps.py
StepanBakshayev/Spirit
28c053983d8323801d022c5314af7fdff4569228
[ "MIT" ]
16
2015-08-10T18:28:18.000Z
2022-03-11T23:12:48.000Z
spirit/comment/apps.py
StepanBakshayev/Spirit
28c053983d8323801d022c5314af7fdff4569228
[ "MIT" ]
6
2018-06-25T02:17:53.000Z
2020-12-08T01:09:32.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.apps import AppConfig class SpiritCommentConfig(AppConfig): name = 'spirit.comment' verbose_name = "Spirit Comment" label = 'spirit_comment'
18
39
0.722222
26
234
6.230769
0.692308
0.240741
0.209877
0
0
0
0
0
0
0
0
0.005208
0.179487
234
12
40
19.5
0.838542
0.089744
0
0
0
0
0.199052
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
25c058848ef8c6856f73ea330d8c5a94d4371927
85
py
Python
overtrick/pairs/apps.py
katemakescode/overtrick
d5a324e4fe28e82de9703e80c12891a5c2ec4dbe
[ "MIT" ]
null
null
null
overtrick/pairs/apps.py
katemakescode/overtrick
d5a324e4fe28e82de9703e80c12891a5c2ec4dbe
[ "MIT" ]
null
null
null
overtrick/pairs/apps.py
katemakescode/overtrick
d5a324e4fe28e82de9703e80c12891a5c2ec4dbe
[ "MIT" ]
null
null
null
from django.apps import AppConfig class PairsConfig(AppConfig): name = 'pairs'
14.166667
33
0.741176
10
85
6.3
0.9
0
0
0
0
0
0
0
0
0
0
0
0.176471
85
5
34
17
0.9
0
0
0
0
0
0.058824
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
25cd9bc3d7f75b07d01d83640a5c5130f4b01fee
113
py
Python
classification/datasets/const.py
ridgei/MCD_DA
d8d40774aeabd72df73190c9dc1980f9239df128
[ "MIT" ]
null
null
null
classification/datasets/const.py
ridgei/MCD_DA
d8d40774aeabd72df73190c9dc1980f9239df128
[ "MIT" ]
4
2020-12-03T10:21:09.000Z
2020-12-07T05:46:40.000Z
classification/datasets/const.py
ridgei/MCD_DA
d8d40774aeabd72df73190c9dc1980f9239df128
[ "MIT" ]
null
null
null
from os import path from os.path import join DATA_PATH = join(path.sep, 'workspace', 'classification', 'data')
18.833333
65
0.734513
17
113
4.823529
0.529412
0.146341
0
0
0
0
0
0
0
0
0
0
0.141593
113
5
66
22.6
0.845361
0
0
0
0
0
0.238938
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
25df22dfe307df45eab4b57b48d2c6abb54bf112
274
py
Python
src/repository/CredentialsDao.py
Melakeselam/PWDVault
4aea919e48b5a41c64b03e1071d67897dc7f7091
[ "MIT" ]
null
null
null
src/repository/CredentialsDao.py
Melakeselam/PWDVault
4aea919e48b5a41c64b03e1071d67897dc7f7091
[ "MIT" ]
null
null
null
src/repository/CredentialsDao.py
Melakeselam/PWDVault
4aea919e48b5a41c64b03e1071d67897dc7f7091
[ "MIT" ]
null
null
null
from persistence.persistence import Persistence class CredentialsDao: persist = Persistence() def __init__(self) -> None: pass def find_by_host_id(self, host_id): return self.persist.find_by_field_in_table('Credentials', 'host_id', host_id)
21.076923
85
0.715328
35
274
5.2
0.571429
0.131868
0
0
0
0
0
0
0
0
0
0
0.19708
274
12
86
22.833333
0.827273
0
0
0
0
0
0.065934
0
0
0
0
0
0
1
0.285714
false
0.142857
0.142857
0.142857
0.857143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
1
1
0
0
4
25e2b15a5cf678f9bd3a219785267c2408cc430f
302
py
Python
MoinMoin/filter/text_html.py
RealTimeWeb/wikisite
66a22c68c172f0ebb3c88a9885ccd33e2d59c3c5
[ "Apache-2.0" ]
null
null
null
MoinMoin/filter/text_html.py
RealTimeWeb/wikisite
66a22c68c172f0ebb3c88a9885ccd33e2d59c3c5
[ "Apache-2.0" ]
3
2020-06-26T21:21:32.000Z
2020-06-26T21:21:36.000Z
wiki/MoinMoin/filter/text_html.py
simtk/src
52086415ef60527e6556698c6e216e4217961d53
[ "BSD-2-Clause", "MIT" ]
2
2017-01-25T20:06:44.000Z
2021-03-25T18:39:55.000Z
# -*- coding: iso-8859-1 -*- """ MoinMoin - text/xml file Filter @copyright: 2006 MoinMoin:ThomasWaldmann @license: GNU GPL, see COPYING for details. """ from MoinMoin.filter.text_xml import execute as xmlfilter def execute(indexobj, filename): return xmlfilter(indexobj, filename)
21.571429
57
0.708609
37
302
5.756757
0.756757
0.065728
0
0
0
0
0
0
0
0
0
0.03629
0.178808
302
13
58
23.230769
0.822581
0.480132
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0.333333
0.333333
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
1
1
0
0
4
25e45e96fc969578b12ea0d393726bfc7715a3b5
974
py
Python
off_django/migrations/0003_auto_20180405_1228.py
klorophyl/openfoodfacts-django
696e701355af9911e726c5579eacca8989f4c629
[ "Apache-2.0" ]
1
2022-02-02T19:54:34.000Z
2022-02-02T19:54:34.000Z
off_django/migrations/0003_auto_20180405_1228.py
klorophyl/openfoodfacts-django
696e701355af9911e726c5579eacca8989f4c629
[ "Apache-2.0" ]
null
null
null
off_django/migrations/0003_auto_20180405_1228.py
klorophyl/openfoodfacts-django
696e701355af9911e726c5579eacca8989f4c629
[ "Apache-2.0" ]
1
2021-12-27T20:40:18.000Z
2021-12-27T20:40:18.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('off_django', '0002_offfood_serving_quantity'), ] operations = [ migrations.AddField( model_name='offfood', name='image_ingredients_small_url', field=models.TextField(default=None, null=True), ), migrations.AddField( model_name='offfood', name='image_ingredients_url', field=models.TextField(default=None, null=True), ), migrations.AddField( model_name='offfood', name='image_nutrition_small_url', field=models.TextField(default=None, null=True), ), migrations.AddField( model_name='offfood', name='image_nutrition_url', field=models.TextField(default=None, null=True), ), ]
27.828571
60
0.593429
92
974
6.032609
0.380435
0.12973
0.165766
0.194595
0.702703
0.702703
0.702703
0.702703
0.50991
0.50991
0
0.007278
0.294661
974
34
61
28.647059
0.800582
0.021561
0
0.571429
0
0
0.167192
0.107256
0
0
0
0
0
1
0
false
0
0.071429
0
0.178571
0
0
0
0
null
0
0
1
0
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
25fda1fbb8aa9a9005081e4fef7a028981b11dfd
6,592
py
Python
docker/storperf-master/tests/db_tests/job_db_test.py
hashnfv/hashnfv-storperf
9eebe429ae9ec58a593611063da5b541634f8932
[ "Apache-2.0" ]
null
null
null
docker/storperf-master/tests/db_tests/job_db_test.py
hashnfv/hashnfv-storperf
9eebe429ae9ec58a593611063da5b541634f8932
[ "Apache-2.0" ]
null
null
null
docker/storperf-master/tests/db_tests/job_db_test.py
hashnfv/hashnfv-storperf
9eebe429ae9ec58a593611063da5b541634f8932
[ "Apache-2.0" ]
null
null
null
############################################################################## # Copyright (c) 2016 EMC and others. # # All rights reserved. This program and the accompanying materials # are made available under the terms of the Apache License, Version 2.0 # which accompanies this distribution, and is available at # http://www.apache.org/licenses/LICENSE-2.0 ############################################################################## import os import sqlite3 import unittest import mock from storperf.db.job_db import JobDB from storperf.workloads.rr import rr class JobDBTest(unittest.TestCase): def setUp(self): JobDB.db_name = __name__ + '.db' try: os.remove(JobDB.db_name) except OSError: pass self.job = JobDB() def tearDown(self): try: os.remove(JobDB.db_name) except OSError: pass @mock.patch("uuid.uuid4") def test_create_job(self, mock_uuid): expected = "ABCDE-12345" mock_uuid.side_effect = (expected,) self.job.create_job_id() actual = self.job.job_id self.assertEqual( expected, actual, "Did not expect: " + str(actual)) @mock.patch("uuid.uuid4") def test_duplicate_job_generated(self, mock_uuid): duplicate = "EDCBA-12345" expected = "EDCBA-54321" mock_uuid.side_effect = (duplicate, duplicate, expected,) self.job.create_job_id() self.job.create_job_id() actual = self.job.job_id self.assertEqual( expected, actual, "Did not expect: " + str(actual)) @mock.patch("uuid.uuid4") @mock.patch("calendar.timegm") def test_start_job(self, mock_calendar, mock_uuid): job_id = "ABCDE-12345" start_time = "12345" mock_calendar.side_effect = (start_time,) mock_uuid.side_effect = (job_id,) workload = rr() db = sqlite3.connect(JobDB.db_name) cursor = db.cursor() row = cursor.execute( """select * from jobs where job_id = ? and workload = ?""", (job_id, workload.fullname,)) self.assertEqual(None, row.fetchone(), "Should not have been a row in the db") self.job.start_workload(workload) cursor.execute( """select job_id, workload, start from jobs where job_id = ? and workload = ?""", (job_id, workload.fullname,)) row = cursor.fetchone() self.assertNotEqual(None, row, "Should be a row in the db") self.assertEqual(job_id, row[0], "Did not expect " + str(row[0])) self.assertEqual( workload.fullname, row[1], "Did not expect " + str(row[1])) self.assertEqual(start_time, row[2], "Did not expect " + str(row[2])) @mock.patch("uuid.uuid4") @mock.patch("calendar.timegm") def test_end_job(self, mock_calendar, mock_uuid): job_id = "ABCDE-12345" start_time = "12345" end_time = "54321" mock_calendar.side_effect = (start_time, end_time,) mock_uuid.side_effect = (job_id,) workload = rr() self.job.start_workload(workload) self.job.end_workload(workload) db = sqlite3.connect(JobDB.db_name) cursor = db.cursor() cursor.execute( """select job_id, workload, start, end from jobs where job_id = ? and workload = ?""", (job_id, workload.fullname,)) row = cursor.fetchone() self.assertNotEqual(None, row, "Should be a row in the db") self.assertEqual(job_id, row[0], "Did not expect " + str(row[0])) self.assertEqual( workload.fullname, row[1], "Did not expect " + str(row[1])) self.assertEqual(start_time, row[2], "Did not expect " + str(row[2])) self.assertEqual(end_time, row[3], "Did not expect " + str(row[3])) @mock.patch("uuid.uuid4") @mock.patch("calendar.timegm") def test_duplicate_start_job(self, mock_calendar, mock_uuid): job_id = "ABCDE-12345" start_time_1 = "12345" start_time_2 = "12346" mock_calendar.side_effect = (start_time_1, start_time_2) mock_uuid.side_effect = (job_id,) workload = rr() db = sqlite3.connect(JobDB.db_name) cursor = db.cursor() self.job.start_workload(workload) self.job.start_workload(workload) cursor.execute( """select job_id, workload, start from jobs where job_id = ? and workload = ?""", (job_id, workload.fullname,)) row = cursor.fetchone() self.assertNotEqual(None, row, "Should be a row in the db") self.assertEqual(job_id, row[0], "Did not expect " + str(row[0])) self.assertEqual( workload.fullname, row[1], "Did not expect " + str(row[1])) self.assertEqual(start_time_2, row[2], "Did not expect " + str(row[2])) @mock.patch("uuid.uuid4") @mock.patch("calendar.timegm") def test_end_job_without_start(self, mock_calendar, mock_uuid): job_id = "ABCDE-12345" start_time = "12345" end_time = "54321" mock_calendar.side_effect = (start_time, end_time,) mock_uuid.side_effect = (job_id,) workload = rr() self.job.end_workload(workload) db = sqlite3.connect(JobDB.db_name) cursor = db.cursor() cursor.execute( """select job_id, workload, start, end from jobs where job_id = ? and workload = ?""", (job_id, workload.fullname,)) row = cursor.fetchone() self.assertNotEqual(None, row, "Should be a row in the db") self.assertEqual(job_id, row[0], "Did not expect " + str(row[0])) self.assertEqual( workload.fullname, row[1], "Did not expect " + str(row[1])) # The start time is set to the same time as end if it was never set # before self.assertEqual(start_time, row[2], "Did not expect " + str(row[2])) self.assertEqual(start_time, row[3], "Did not expect " + str(row[3])) def test_job_params(self): expected = {u"a": 1, u"b": 2} self.job.job_id = "ABCD" self.job.record_workload_params(expected) actual = self.job.fetch_workload_params(self.job.job_id) self.assertEqual(expected, actual)
33.125628
79
0.569023
810
6,592
4.469136
0.150617
0.04558
0.053039
0.066298
0.759116
0.757735
0.720442
0.706906
0.69558
0.658011
0
0.02653
0.290959
6,592
198
80
33.292929
0.747967
0.051881
0
0.676471
0
0
0.113225
0
0
0
0
0
0.161765
1
0.066176
false
0.014706
0.044118
0
0.117647
0
0
0
0
null
0
0
0
0
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
25febbf66a03d58b0c47f5e8861e698f5ed1d6ea
51
py
Python
solascriptura/modules/__init__.py
glitchassassin/sola-scriptura
fd8b56c0f3278a254849451b72086cefe0734866
[ "MIT" ]
2
2018-09-17T21:05:02.000Z
2020-05-22T21:23:10.000Z
solascriptura/modules/__init__.py
glitchassassin/sola-scriptura
fd8b56c0f3278a254849451b72086cefe0734866
[ "MIT" ]
6
2018-01-04T21:38:58.000Z
2018-01-08T03:15:22.000Z
solascriptura/modules/__init__.py
glitchassassin/sola-scriptura
fd8b56c0f3278a254849451b72086cefe0734866
[ "MIT" ]
1
2019-11-22T17:58:47.000Z
2019-11-22T17:58:47.000Z
## Placeholder - SWORD modules go in this directory
51
51
0.784314
7
51
5.714286
1
0
0
0
0
0
0
0
0
0
0
0
0.156863
51
1
51
51
0.930233
0.941176
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
d353c934ca928318effca3f051fbfeebb0b2a302
103
py
Python
measures/apps.py
uktrade/tamato
4ba2ffb25eea2887e4e081c81da7634cd7b4f9ca
[ "MIT" ]
14
2020-03-25T11:11:29.000Z
2022-03-08T20:41:33.000Z
measures/apps.py
uktrade/tamato
4ba2ffb25eea2887e4e081c81da7634cd7b4f9ca
[ "MIT" ]
352
2020-03-25T10:42:09.000Z
2022-03-30T15:32:26.000Z
measures/apps.py
uktrade/tamato
4ba2ffb25eea2887e4e081c81da7634cd7b4f9ca
[ "MIT" ]
3
2020-08-06T12:22:41.000Z
2022-01-16T11:51:12.000Z
from common.app_config import CommonConfig class MeasuresConfig(CommonConfig): name = "measures"
17.166667
42
0.786408
11
103
7.272727
0.909091
0
0
0
0
0
0
0
0
0
0
0
0.145631
103
5
43
20.6
0.909091
0
0
0
0
0
0.07767
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
d366a48cdf67e21ca07feaecf85af36649e315b3
810
py
Python
cvp/metrics/_metric.py
RaviShah1/cross-validation-pipeline
51bd306685e4ca71015523d950d08fc7405f8075
[ "Apache-2.0" ]
null
null
null
cvp/metrics/_metric.py
RaviShah1/cross-validation-pipeline
51bd306685e4ca71015523d950d08fc7405f8075
[ "Apache-2.0" ]
null
null
null
cvp/metrics/_metric.py
RaviShah1/cross-validation-pipeline
51bd306685e4ca71015523d950d08fc7405f8075
[ "Apache-2.0" ]
null
null
null
class Metric: def __init__(self, name: str): """ Generates the Metric Parameters --------- name : str the name of the metric """ pass def __call__(self) -> float: """ Gets the evaluation score of the y_true and y_pred values Parameters ---------- y_true : np.ndarray the actual values y_pred : np.ndarray the predicted values """ pass def _compute(self) -> float: """ Computes the evalution score Parameters ---------- y_true : np.ndarray the actual values y_pred : np.ndarray the predicted values """ pass
21.315789
66
0.440741
75
810
4.56
0.386667
0.105263
0.140351
0.099415
0.438596
0.438596
0.438596
0.438596
0.438596
0.438596
0
0
0.47037
810
38
67
21.315789
0.797203
0.479012
0
0.428571
1
0
0
0
0
0
0
0
0
1
0.428571
false
0.428571
0
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
4
d3935d1addfb4820d9febfdcde59cfea52e486c1
1,922
py
Python
language_apps/expr2/gen/Expr2Visitor.py
SadraGoudarzdashti/IUSTCompiler
7aa24df7de10030c313ad2e8f3830d9e2b182ce1
[ "MIT" ]
3
2020-12-04T11:01:23.000Z
2022-02-12T19:29:35.000Z
language_apps/expr2/gen/Expr2Visitor.py
SadraGoudarzdashti/IUSTCompiler
7aa24df7de10030c313ad2e8f3830d9e2b182ce1
[ "MIT" ]
null
null
null
language_apps/expr2/gen/Expr2Visitor.py
SadraGoudarzdashti/IUSTCompiler
7aa24df7de10030c313ad2e8f3830d9e2b182ce1
[ "MIT" ]
30
2020-12-04T11:00:19.000Z
2021-12-31T15:59:21.000Z
# Generated from D:/AnacondaProjects/iust_compilers_teaching/grammars\Expr2.g4 by ANTLR 4.8 from antlr4 import * if __name__ is not None and "." in __name__: from .Expr2Parser import Expr2Parser else: from Expr2Parser import Expr2Parser # This class defines a complete generic visitor for a parse tree produced by Expr2Parser. class Expr2Visitor(ParseTreeVisitor): # Visit a parse tree produced by Expr2Parser#start. def visitStart(self, ctx:Expr2Parser.StartContext): return self.visitChildren(ctx) # Visit a parse tree produced by Expr2Parser#expr3. def visitExpr3(self, ctx:Expr2Parser.Expr3Context): return self.visitChildren(ctx) # Visit a parse tree produced by Expr2Parser#expr2. def visitExpr2(self, ctx:Expr2Parser.Expr2Context): return self.visitChildren(ctx) # Visit a parse tree produced by Expr2Parser#expr1. def visitExpr1(self, ctx:Expr2Parser.Expr1Context): return self.visitChildren(ctx) # Visit a parse tree produced by Expr2Parser#term2. def visitTerm2(self, ctx:Expr2Parser.Term2Context): return self.visitChildren(ctx) # Visit a parse tree produced by Expr2Parser#term3. def visitTerm3(self, ctx:Expr2Parser.Term3Context): return self.visitChildren(ctx) # Visit a parse tree produced by Expr2Parser#term1. def visitTerm1(self, ctx:Expr2Parser.Term1Context): return self.visitChildren(ctx) # Visit a parse tree produced by Expr2Parser#fact1. def visitFact1(self, ctx:Expr2Parser.Fact1Context): return self.visitChildren(ctx) # Visit a parse tree produced by Expr2Parser#fact2. def visitFact2(self, ctx:Expr2Parser.Fact2Context): return self.visitChildren(ctx) # Visit a parse tree produced by Expr2Parser#fact3. def visitFact3(self, ctx:Expr2Parser.Fact3Context): return self.visitChildren(ctx) del Expr2Parser
30.507937
91
0.735172
233
1,922
6.021459
0.317597
0.047042
0.078403
0.141126
0.445474
0.445474
0.423378
0.397719
0.397719
0.397719
0
0.037991
0.191988
1,922
63
92
30.507937
0.865422
0.347034
0
0.37037
1
0
0.000811
0
0
0
0
0
0
1
0.37037
false
0
0.111111
0.37037
0.888889
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
4
6c992faf65ce404eb87c15d05139a599ca297ab2
162
py
Python
venv/bin/django-admin.py
kouroshshafi/demo-woid-github
a3619d8f5348b7138b143e12c54539dd2b94bbb0
[ "Apache-2.0" ]
null
null
null
venv/bin/django-admin.py
kouroshshafi/demo-woid-github
a3619d8f5348b7138b143e12c54539dd2b94bbb0
[ "Apache-2.0" ]
null
null
null
venv/bin/django-admin.py
kouroshshafi/demo-woid-github
a3619d8f5348b7138b143e12c54539dd2b94bbb0
[ "Apache-2.0" ]
null
null
null
#!/Users/albalbaloo/Desktop/woid-master/venv/bin/python from django.core import management if __name__ == "__main__": management.execute_from_command_line()
27
55
0.790123
21
162
5.571429
0.904762
0
0
0
0
0
0
0
0
0
0
0
0.092593
162
5
56
32.4
0.795918
0.333333
0
0
0
0
0.074766
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
6ca0c6fedfee99769e4ad267d4ff6ff792aef598
316
py
Python
app/errors/__init__.py
mauermbq/flask-blueprint
eed1c9a4ef357de4bdb20ec81856275fba75637f
[ "MIT" ]
null
null
null
app/errors/__init__.py
mauermbq/flask-blueprint
eed1c9a4ef357de4bdb20ec81856275fba75637f
[ "MIT" ]
3
2021-05-07T21:32:56.000Z
2021-05-07T21:33:01.000Z
app/errors/__init__.py
mauermbq/flask-blueprint
eed1c9a4ef357de4bdb20ec81856275fba75637f
[ "MIT" ]
null
null
null
""" Blueprint of error handler module It's possible to defie template_folder='templates' as argument to the Blueprint() constructor. Default is keeping html files in template subfolder. """ from flask import Blueprint bp = Blueprint('errors', __name__, template_folder='templates') from app.errors import handlers
28.727273
94
0.791139
43
316
5.674419
0.744186
0.114754
0.188525
0
0
0
0
0
0
0
0
0
0.129747
316
10
95
31.6
0.887273
0.572785
0
0
0
0
0.11811
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0.666667
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
1
0
4
6ca8738934dc7eaf5bb06a890c1ae40dbbcbfebc
80
py
Python
wsgi.py
foozzi/cilantro
db730bd5bc91e7110187a15627904371ab99c0d9
[ "BSD-4-Clause-UC" ]
49
2020-07-10T18:27:47.000Z
2022-02-10T10:54:48.000Z
wsgi.py
foozzi/cilantro
db730bd5bc91e7110187a15627904371ab99c0d9
[ "BSD-4-Clause-UC" ]
4
2020-07-17T13:57:39.000Z
2020-08-14T12:40:42.000Z
wsgi.py
foozzi/cilantro
db730bd5bc91e7110187a15627904371ab99c0d9
[ "BSD-4-Clause-UC" ]
4
2020-07-17T16:00:20.000Z
2020-09-29T16:53:11.000Z
from cilantropy.cilantropy import app if __name__ == '__main__': app.run()
16
37
0.7125
10
80
4.9
0.8
0
0
0
0
0
0
0
0
0
0
0
0.175
80
4
38
20
0.742424
0
0
0
0
0
0.1
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
6cd4566dbb8ea3de66173852554eabaa75b0fa54
145
py
Python
pomodoro_timer/configs/app_configs.py
asvatov/pomodoro-timer
d0079372850aed45021f81c2b936fecf5298b63f
[ "MIT" ]
null
null
null
pomodoro_timer/configs/app_configs.py
asvatov/pomodoro-timer
d0079372850aed45021f81c2b936fecf5298b63f
[ "MIT" ]
1
2019-06-25T16:01:47.000Z
2019-06-25T16:01:47.000Z
pomodoro_timer/configs/app_configs.py
asvatov/pomodoro-timer
d0079372850aed45021f81c2b936fecf5298b63f
[ "MIT" ]
null
null
null
APP = "pomodoro-timer" APP_NAME = "Pomodoro Timer" APP_INDICATOR_ID = "pomodoro-timer" APP_DBUS_NAME = "com.github.Pomodoro" APP_VERSION = 0.1
18.125
37
0.751724
22
145
4.681818
0.545455
0.378641
0.466019
0
0
0
0
0
0
0
0
0.015748
0.124138
145
7
38
20.714286
0.795276
0
0
0
0
0
0.42069
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
6ce7c2ce79cf658bc50b58c911a0662bac5e5baa
508
py
Python
nbviewer/nbmanager/scheduler/quartz_scheduler_provider.py
netcadlabs/nbviewer
19546e4e913b66d755a830619e404a6e704dbb30
[ "BSD-3-Clause-Clear" ]
null
null
null
nbviewer/nbmanager/scheduler/quartz_scheduler_provider.py
netcadlabs/nbviewer
19546e4e913b66d755a830619e404a6e704dbb30
[ "BSD-3-Clause-Clear" ]
null
null
null
nbviewer/nbmanager/scheduler/quartz_scheduler_provider.py
netcadlabs/nbviewer
19546e4e913b66d755a830619e404a6e704dbb30
[ "BSD-3-Clause-Clear" ]
null
null
null
from nbviewer.nbmanager.api.scheduler_provider import SchedulerProvider # TODO - https://www.quartz-scheduler.net/documentation class QuartzSchedulerProvider(SchedulerProvider): def __init__(self, log: any, url: str): super().__init__(log) self.url = url def add_notebook_job(self, notebook): pass def add_notebook_jobs(self, notebooks): pass def remove_notebook_job(self, notebook_code: str): pass def get_notebook_jobs(self): pass
23.090909
71
0.692913
60
508
5.566667
0.55
0.062874
0.083832
0.137725
0
0
0
0
0
0
0
0
0.218504
508
21
72
24.190476
0.84131
0.104331
0
0.307692
0
0
0
0
0
0
0
0.047619
0
1
0.384615
false
0.307692
0.076923
0
0.538462
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
0
1
0
0
4
9f1188116527b153204f675fd8c1236c5b715be8
295
py
Python
qatrack/contacts/models.py
crcrewso/qatrackplus
b9da3bc542d9e3eca8b7291bb631d1c7255d528e
[ "MIT" ]
20
2021-03-11T18:37:32.000Z
2022-03-23T19:38:07.000Z
qatrack/contacts/models.py
crcrewso/qatrackplus
b9da3bc542d9e3eca8b7291bb631d1c7255d528e
[ "MIT" ]
75
2021-02-12T02:37:33.000Z
2022-03-29T20:56:16.000Z
qatrack/contacts/models.py
randlet/qatrackplus-ci
ba11d39a07382b11394aaffd0df692b4ddc6239b
[ "MIT" ]
5
2021-04-07T15:46:53.000Z
2021-09-18T16:55:00.000Z
from django.db import models class Contact(models.Model): """basic contact number""" name = models.CharField(max_length=256) number = models.CharField(max_length=256) description = models.TextField() def __str__(self): return "%s : %s " % (self.name, self.number)
24.583333
52
0.667797
37
295
5.162162
0.594595
0.157068
0.188482
0.251309
0.282723
0
0
0
0
0
0
0.025424
0.2
295
11
53
26.818182
0.783898
0.067797
0
0
0
0
0.02974
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0.142857
1
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
4
9f284f75c05306f2abe0175c1df6648a3036c43a
155
py
Python
run.py
ganggas95/E-Wisata
fb66fc7d3d4cc5a45ad9acea42fb306140a6449f
[ "Apache-2.0" ]
null
null
null
run.py
ganggas95/E-Wisata
fb66fc7d3d4cc5a45ad9acea42fb306140a6449f
[ "Apache-2.0" ]
null
null
null
run.py
ganggas95/E-Wisata
fb66fc7d3d4cc5a45ad9acea42fb306140a6449f
[ "Apache-2.0" ]
1
2020-02-12T09:21:15.000Z
2020-02-12T09:21:15.000Z
from app import app if __name__ == '__main__': app.run( app.config['HOST'], app.config['PORT'], app.config['DEBUG'] )
17.222222
27
0.516129
18
155
4
0.611111
0.375
0
0
0
0
0
0
0
0
0
0
0.322581
155
9
28
17.222222
0.685714
0
0
0
0
0
0.134615
0
0
0
0
0
0
1
0
true
0
0.142857
0
0.142857
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
9f58fcde6fb54e1c1bdefd8fc7f6bcf263dacfe6
157
py
Python
scenarios/card_hold_show/executable.py
timgates42/balanced-python
1df86b45c36a97ec2e214480c6806c4df3c79860
[ "MIT" ]
12
2015-04-12T06:18:33.000Z
2021-03-03T23:54:19.000Z
scenarios/card_hold_show/executable.py
takwas/balanced-python
1df86b45c36a97ec2e214480c6806c4df3c79860
[ "MIT" ]
1
2021-11-24T20:10:19.000Z
2021-11-24T20:10:19.000Z
scenarios/card_hold_show/executable.py
takwas/balanced-python
1df86b45c36a97ec2e214480c6806c4df3c79860
[ "MIT" ]
14
2015-03-23T17:52:06.000Z
2021-11-24T11:04:15.000Z
import balanced balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') card_hold = balanced.CardHold.fetch('/card_holds/HL4iHX8OBNW7nVsu6MqyjnQ9')
31.4
75
0.853503
15
157
8.8
0.8
0
0
0
0
0
0
0
0
0
0
0.06
0.044586
157
5
75
31.4
0.82
0
0
0
0
0
0.487342
0.487342
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
1
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
9f59671f8d3a830afb8aa4d6a2a90929cc84624a
205
py
Python
examples/configuration/default_configuration.py
mwek/memoize
bd35641d676dbaaf161a61dbf1176742cfa187cc
[ "Apache-2.0" ]
54
2019-06-04T07:00:23.000Z
2022-03-22T00:56:47.000Z
examples/configuration/default_configuration.py
mwek/memoize
bd35641d676dbaaf161a61dbf1176742cfa187cc
[ "Apache-2.0" ]
7
2020-08-17T15:45:34.000Z
2022-01-19T09:23:16.000Z
examples/configuration/default_configuration.py
mwek/memoize
bd35641d676dbaaf161a61dbf1176742cfa187cc
[ "Apache-2.0" ]
5
2019-10-18T18:05:26.000Z
2021-06-11T10:14:59.000Z
from memoize.configuration import DefaultInMemoryCacheConfiguration from memoize.wrapper import memoize @memoize(configuration=DefaultInMemoryCacheConfiguration()) async def cached(): return 'dummy'
25.625
67
0.839024
18
205
9.555556
0.611111
0.127907
0
0
0
0
0
0
0
0
0
0
0.097561
205
7
68
29.285714
0.92973
0
0
0
0
0
0.02439
0
0
0
0
0
0
1
0
true
0
0.4
0
0.6
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
9f712f6ff71dc51096f737b9d62d489f37f82586
271
py
Python
wsgi/iportalen_django/tags/admin.py
I-sektionen/i-portalen
1713e5814d40c0da1bf3278d60a561e7d3df3550
[ "MIT" ]
4
2016-09-21T17:06:01.000Z
2018-02-06T16:36:44.000Z
wsgi/iportalen_django/tags/admin.py
I-sektionen/i-portalen
1713e5814d40c0da1bf3278d60a561e7d3df3550
[ "MIT" ]
149
2016-03-07T23:50:47.000Z
2022-03-11T23:16:33.000Z
wsgi/iportalen_django/tags/admin.py
I-sektionen/i-portalen
1713e5814d40c0da1bf3278d60a561e7d3df3550
[ "MIT" ]
1
2016-03-07T23:02:06.000Z
2016-03-07T23:02:06.000Z
from utils.admin import HiddenModelAdmin, iportalen_admin_site, iportalen_superadmin_site from django.contrib import admin from .models import Tag # Register your models here. iportalen_admin_site.register(Tag, HiddenModelAdmin) iportalen_superadmin_site.register(Tag)
30.111111
89
0.859779
35
271
6.428571
0.428571
0.222222
0.16
0
0
0
0
0
0
0
0
0
0.088561
271
8
90
33.875
0.910931
0.095941
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.6
0
0.6
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
0
0
0
4
9f81af9271650118f900c91f75d7a50aaf4a6221
23
py
Python
compiler/sema/inference.py
Youngestdev/viper
7855dd0f87f54c926caf04b0e21742b1a2646751
[ "Apache-2.0" ]
25
2019-06-23T15:17:06.000Z
2020-06-05T22:41:21.000Z
compiler/sema/inference.py
Youngestdev/viper
7855dd0f87f54c926caf04b0e21742b1a2646751
[ "Apache-2.0" ]
null
null
null
compiler/sema/inference.py
Youngestdev/viper
7855dd0f87f54c926caf04b0e21742b1a2646751
[ "Apache-2.0" ]
3
2019-07-29T16:03:30.000Z
2019-10-04T15:00:32.000Z
""" Type inference """
5.75
14
0.565217
2
23
6.5
1
0
0
0
0
0
0
0
0
0
0
0
0.173913
23
3
15
7.666667
0.684211
0.608696
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
9fbfa16f40e1b991823042e571e745d37f12e14e
234
py
Python
dynamo/entities/__init__.py
tnorlund/aws-analytics
5533e5d313abf92f0c46e2a5bb32d853ddc9246e
[ "MIT" ]
null
null
null
dynamo/entities/__init__.py
tnorlund/aws-analytics
5533e5d313abf92f0c46e2a5bb32d853ddc9246e
[ "MIT" ]
22
2021-02-27T19:50:35.000Z
2021-03-22T19:36:59.000Z
code/python/dynamo/entities/__init__.py
tnorlund/Blog-backend
d231c32c9e37c38955fc07a6dd3cfaf833c8c99d
[ "MIT" ]
1
2021-01-09T10:02:37.000Z
2021-01-09T10:02:37.000Z
from .visit import * from .location import * from .browser import * from .visitor import * from .session import * from .page import * from .day import * from .week import * from .month import * from .year import * from .util import *
19.5
23
0.717949
33
234
5.090909
0.393939
0.595238
0
0
0
0
0
0
0
0
0
0
0.188034
234
11
24
21.272727
0.884211
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
4
9fc869508ae4d45a48987984f851c74c934ef136
93
py
Python
kobra/__main__.py
jDan735/kobra
28c6c968cde9058741544b7e22ca117826ca26d8
[ "MIT" ]
null
null
null
kobra/__main__.py
jDan735/kobra
28c6c968cde9058741544b7e22ca117826ca26d8
[ "MIT" ]
null
null
null
kobra/__main__.py
jDan735/kobra
28c6c968cde9058741544b7e22ca117826ca26d8
[ "MIT" ]
null
null
null
import kobra.core def main(): kobra.core.kobra() if __name__ == "__main__": main()
11.625
26
0.623656
12
93
4.166667
0.583333
0.36
0
0
0
0
0
0
0
0
0
0
0.215054
93
7
27
13.285714
0.684932
0
0
0
0
0
0.086022
0
0
0
0
0
0
1
0.2
true
0
0.2
0
0.4
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
4c950f7453ebd206d12fabd552386800c3036ada
9,100
py
Python
examples/models/image_classification/TfSingleHiddenLayer.py
zlheui/rafiki
f9a3d01ad1620bd91bd5d4d758fedac54e09a803
[ "Apache-2.0" ]
null
null
null
examples/models/image_classification/TfSingleHiddenLayer.py
zlheui/rafiki
f9a3d01ad1620bd91bd5d4d758fedac54e09a803
[ "Apache-2.0" ]
null
null
null
examples/models/image_classification/TfSingleHiddenLayer.py
zlheui/rafiki
f9a3d01ad1620bd91bd5d4d758fedac54e09a803
[ "Apache-2.0" ]
null
null
null
import tensorflow as tf from tensorflow import keras import json import os import tempfile import numpy as np import base64 from rafiki.model import BaseModel, InvalidModelParamsException, validate_model_class, load_dataset from rafiki.constants import TaskType class TfSingleHiddenLayer(BaseModel): ''' Implements a fully-connected neural network with a single hidden layer on Tensorflow ''' def get_knob_config(self): return { 'knobs': { 'hidden_layer_units': { 'type': 'int', 'range': [2, 128] }, 'epochs': { 'type': 'int', 'range': [1, 1] }, 'learning_rate': { 'type': 'float_exp', 'range': [1e-5, 1e-1] }, 'batch_size': { 'type': 'int_cat', 'values': [1, 2, 4, 8, 16, 32, 64, 128] } } } def get_predict_label_mapping(self): return self._predict_label_mapping def init(self, knobs): self._batch_size = knobs.get('batch_size') self._epochs = knobs.get('epochs') self._hidden_layer_units = knobs.get('hidden_layer_units') self._learning_rate = knobs.get('learning_rate') self._graph = tf.Graph() self._sess = tf.Session(graph=self._graph) def train(self, dataset_uri, task): (images, labels) = self._load_dataset(dataset_uri, task) class_names = np.unique(labels) num_classes = len(class_names) self._predict_label_mapping = dict(zip(range(num_classes), class_names)) train_and_evalutate_label_mapping = {v: k for k, v in self._predict_label_mapping.items()} labels = np.array([train_and_evalutate_label_mapping[label] for label in labels]) with self._graph.as_default(): self._model = self._build_model(num_classes) with self._sess.as_default(): self._model.fit( images, labels, epochs=self._epochs, batch_size=self._batch_size ) def evaluate(self, dataset_uri, task): (images, labels) = self._load_dataset(dataset_uri, task) train_and_evalutate_label_mapping = {v: k for k, v in self._predict_label_mapping.items()} labels = np.array([train_and_evalutate_label_mapping[label] for label in labels]) with self._graph.as_default(): with self._sess.as_default(): (loss, accuracy) = self._model.evaluate(images, labels) return accuracy def predict(self, queries): X = np.array(queries) with self._graph.as_default(): with self._sess.as_default(): probs = self._model.predict(X) return probs def destroy(self): self._sess.close() def dump_parameters(self): # TODO: Not save to & read from a file # Save whole model to temp h5 file tmp = tempfile.NamedTemporaryFile(delete=False) with self._graph.as_default(): with self._sess.as_default(): self._model.save(tmp.name) # Read from temp h5 file & encode it to base64 string with open(tmp.name, 'rb') as f: h5_model_bytes = f.read() h5_model_base64 = base64.b64encode(h5_model_bytes).decode('utf-8') # Remove temp file os.remove(tmp.name) return { 'h5_model_base64': h5_model_base64, 'predict_label_mapping': self._predict_label_mapping } def load_parameters(self, params): h5_model_base64 = params.get('h5_model_base64', None) if h5_model_base64 is None: raise InvalidModelParamsException() # TODO: Not save to & read from a file # Convert back to bytes & write to temp file tmp = tempfile.NamedTemporaryFile(delete=False) h5_model_bytes = base64.b64decode(h5_model_base64.encode('utf-8')) with open(tmp.name, 'wb') as f: f.write(h5_model_bytes) # Load model from temp file with self._graph.as_default(): with self._sess.as_default(): self._model = keras.models.load_model(tmp.name) # Remove temp file os.remove(tmp.name) if 'predict_label_mapping' in params: self._predict_label_mapping = params['predict_label_mapping'] def _load_dataset(self, dataset_uri, task): # Here, we use Rafiki's in-built dataset loader return load_dataset(dataset_uri, task) def _build_model(self, num_classes): hidden_layer_units = self._hidden_layer_units learning_rate = self._learning_rate model = keras.Sequential() model.add(keras.layers.Flatten()) model.add(keras.layers.BatchNormalization()) model.add(keras.layers.Dense( hidden_layer_units, activation=tf.nn.relu )) model.add(keras.layers.Dense( num_classes, activation=tf.nn.softmax )) model.compile( optimizer=keras.optimizers.Adam(lr=learning_rate), loss='sparse_categorical_crossentropy', metrics=['accuracy'] ) return model if __name__ == '__main__': validate_model_class( model_class=TfSingleHiddenLayer, train_dataset_uri='https://github.com/cadmusthefounder/mnist_data/blob/master/output/fashion_train.zip?raw=true', test_dataset_uri='https://github.com/cadmusthefounder/mnist_data/blob/master/output/fashion_test.zip?raw=true', task=TaskType.IMAGE_CLASSIFICATION, queries=[ [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 1, 0, 0, 7, 0, 37, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 0, 27, 84, 11, 0, 0, 0, 0, 0, 0, 119, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 88, 143, 110, 0, 0, 0, 0, 22, 93, 106, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 53, 129, 120, 147, 175, 157, 166, 135, 154, 168, 140, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 11, 137, 130, 128, 160, 176, 159, 167, 178, 149, 151, 144, 0, 0], [0, 0, 0, 0, 0, 0, 1, 0, 2, 1, 0, 3, 0, 0, 115, 114, 106, 137, 168, 153, 156, 165, 167, 143, 157, 158, 11, 0], [0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 3, 0, 0, 89, 139, 90, 94, 153, 149, 131, 151, 169, 172, 143, 159, 169, 48, 0], [0, 0, 0, 0, 0, 0, 2, 4, 1, 0, 0, 0, 98, 136, 110, 109, 110, 162, 135, 144, 149, 159, 167, 144, 158, 169, 119, 0], [0, 0, 2, 2, 1, 2, 0, 0, 0, 0, 26, 108, 117, 99, 111, 117, 136, 156, 134, 154, 154, 156, 160, 141, 147, 156, 178, 0], [3, 0, 0, 0, 0, 0, 0, 21, 53, 92, 117, 111, 103, 115, 129, 134, 143, 154, 165, 170, 154, 151, 154, 143, 138, 150, 165, 43], [0, 0, 23, 54, 65, 76, 85, 118, 128, 123, 111, 113, 118, 127, 125, 139, 133, 136, 160, 140, 155, 161, 144, 155, 172, 161, 189, 62], [0, 68, 94, 90, 111, 114, 111, 114, 115, 127, 135, 136, 143, 126, 127, 151, 154, 143, 148, 125, 162, 162, 144, 138, 153, 162, 196, 58], [70, 169, 129, 104, 98, 100, 94, 97, 98, 102, 108, 106, 119, 120, 129, 149, 156, 167, 190, 190, 196, 198, 198, 187, 197, 189, 184, 36], [16, 126, 171, 188, 188, 184, 171, 153, 135, 120, 126, 127, 146, 185, 195, 209, 208, 255, 209, 177, 245, 252, 251, 251, 247, 220, 206, 49], [0, 0, 0, 12, 67, 106, 164, 185, 199, 210, 211, 210, 208, 190, 150, 82, 8, 0, 0, 0, 178, 208, 188, 175, 162, 158, 151, 11], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]] ] )
44.607843
152
0.518352
1,466
9,100
3.092769
0.206003
0.21438
0.306352
0.392589
0.355315
0.321129
0.298853
0.277239
0.2618
0.2618
0
0.21093
0.326374
9,100
203
153
44.827586
0.528711
0.043407
0
0.246835
0
0.012658
0.057021
0.010828
0
0
0
0.004926
0
1
0.06962
false
0
0.056962
0.018987
0.177215
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
4cb8d136ebd26e2fa31c7a1b81f70cae8eea56c2
203
py
Python
testing/gigi.py
bclau/trening
92da60694da2706856e4c3a787031cb82b9b2b48
[ "Apache-2.0" ]
null
null
null
testing/gigi.py
bclau/trening
92da60694da2706856e4c3a787031cb82b9b2b48
[ "Apache-2.0" ]
null
null
null
testing/gigi.py
bclau/trening
92da60694da2706856e4c3a787031cb82b9b2b48
[ "Apache-2.0" ]
null
null
null
print "Buna! Sung gigi! Sunt petrolier! Gigi Petrolieru'!" print "Gigi este momentan conflictuat despre ce sa faca..." print "Azi sunt mai vorbaret decat deobicei! N-am ce face, se termina sesiunea..."
40.6
82
0.748768
31
203
4.903226
0.806452
0
0
0
0
0
0
0
0
0
0
0
0.152709
203
4
83
50.75
0.883721
0
0
0
0
0
0.866337
0
0
0
0
0
0
0
null
null
0
0
null
null
1
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
1
0
null
0
0
0
0
1
0
0
0
0
0
0
1
0
4
4cbaca48566978aca709be3f417c3e53a7bfd418
307
py
Python
cli/utils.py
mihaiparvu/nvidia-bot
3c1c4df8f79880bbb86e818a3d208c9878d479b4
[ "MIT" ]
28
2021-02-18T20:36:10.000Z
2022-01-09T11:38:00.000Z
cli/utils.py
javadash/nvidia-bot
6f26946532ffd607eb505996773e4dcda0df853a
[ "MIT" ]
null
null
null
cli/utils.py
javadash/nvidia-bot
6f26946532ffd607eb505996773e4dcda0df853a
[ "MIT" ]
14
2021-03-17T06:13:59.000Z
2022-01-26T00:24:26.000Z
import click import questionary class QuestionaryOption(click.Option): def __init__(self, param_decls=None, **attrs): click.Option.__init__(self, param_decls, **attrs) def prompt_for_value(self, ctx): return questionary.select(self.prompt, choices=self.type.choices).unsafe_ask()
27.909091
86
0.736156
39
307
5.461538
0.589744
0.103286
0.122066
0.169014
0
0
0
0
0
0
0
0
0.149837
307
10
87
30.7
0.816092
0
0
0
0
0
0
0
0
0
0
0
0
1
0.285714
false
0
0.285714
0.142857
0.857143
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
4
4cd3c91eb26f0a5f4b316c7e2bbe909064fe4e8e
2,298
py
Python
logger.py
ara-astronomia/AutomazioneTende
c4c0b26cdf6846e60e0e6b77cc246c52cba746e9
[ "MIT" ]
null
null
null
logger.py
ara-astronomia/AutomazioneTende
c4c0b26cdf6846e60e0e6b77cc246c52cba746e9
[ "MIT" ]
150
2019-11-14T17:48:22.000Z
2021-08-05T20:39:31.000Z
logger.py
ara-astronomia/AutomazioneTende
c4c0b26cdf6846e60e0e6b77cc246c52cba746e9
[ "MIT" ]
2
2019-01-23T11:42:25.000Z
2021-01-08T13:01:49.000Z
import logging.handlers import logging import os from config import Config from base.singleton import Singleton class Logger(metaclass=Singleton): def __init__(self, dir_path=os.path.dirname(os.path.realpath(__file__))+os.path.sep): formatter = logging.Formatter('%(levelname)s %(asctime)s file %(filename)s linea %(lineno)d %(message)s') # create console handler and set level ch = logging.StreamHandler() if Config.getValue("loggingLevel") is not None: ch.setLevel(Config.getInt("loggingLevel")) ch.setFormatter(formatter) # create file handler and set level fh = logging.handlers.TimedRotatingFileHandler(dir_path+'server.log', 'D') if Config.getValue("loggingLevel") is not None: fh.setLevel(Config.getInt("loggingLevel")) fh.setFormatter(formatter) self.file_logger = logging.getLogger() self.file_logger.setLevel(Config.getInt("loggingLevel")) self.file_logger.addHandler(ch) self.file_logger.addHandler(fh) @staticmethod def getLogger(): logger = Logger() return logger.file_logger class LoggerClient(metaclass=Singleton): def __init__(self, dir_path=os.path.dirname(os.path.realpath(__file__))+os.path.sep): formatter = logging.Formatter('%(levelname)s %(asctime)s file %(filename)s linea %(lineno)d %(message)s') # create console handler and set level ch = logging.StreamHandler() if Config.getValue("loggingLevel") is not None: ch.setLevel(Config.getInt("loggingLevel")) ch.setFormatter(formatter) # create file handler and set level fh = logging.handlers.TimedRotatingFileHandler(dir_path+'client.log', 'D') if Config.getValue("loggingLevel") is not None: fh.setLevel(Config.getInt("loggingLevel")) fh.setFormatter(formatter) self.file_logger_client = logging.getLogger() self.file_logger_client.setLevel(Config.getInt("loggingLevel")) self.file_logger_client.addHandler(ch) self.file_logger_client.addHandler(fh) @staticmethod def getLogger(): logger = LoggerClient() return logger.file_logger_client
37.672131
114
0.663621
259
2,298
5.752896
0.216216
0.067114
0.075168
0.128859
0.855034
0.771812
0.715436
0.653691
0.653691
0.653691
0
0
0.22846
2,298
60
115
38.3
0.840384
0.061358
0
0.511628
0
0.046512
0.136711
0
0
0
0
0
0
1
0.093023
false
0
0.116279
0
0.302326
0
0
0
0
null
0
0
0
1
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
4cdc507cf33994472459111fbe7ed64ee358d760
6,588
py
Python
tests/scene/test_point.py
FloHofstetter/RailLabel
48d493a36b0a80563f1291676f5ced0ec4133ea2
[ "MIT" ]
null
null
null
tests/scene/test_point.py
FloHofstetter/RailLabel
48d493a36b0a80563f1291676f5ced0ec4133ea2
[ "MIT" ]
null
null
null
tests/scene/test_point.py
FloHofstetter/RailLabel
48d493a36b0a80563f1291676f5ced0ec4133ea2
[ "MIT" ]
null
null
null
import unittest import numpy as np from src.scene.point import ImagePoint, WorldPoint class TestImagePoint(unittest.TestCase): def test_p_x(self) -> None: """ Assert the self.x property. """ with self.subTest(msg="Return correct property"): x: int = 5 y: int = 10 image_point: ImagePoint = ImagePoint(x, y) self.assertAlmostEqual(image_point.x, 5) with self.subTest(msg="Return correct type"): x: float = 5.0 y: float = 10.0 image_point: ImagePoint = ImagePoint(x, y) self.assertIsInstance(image_point.x, int) def test_p_y(self) -> None: """ Assert the self.y property. """ with self.subTest(msg="Return correct property"): x: int = 5 y: int = 10 image_point: ImagePoint = ImagePoint(x, y) self.assertAlmostEqual(image_point.y, 10) with self.subTest(msg="Return correct type"): x: float = 5.0 y: float = 10.0 image_point: ImagePoint = ImagePoint(x, y) self.assertIsInstance(image_point.y, int) def test_p_point(self) -> None: """ Assert the self.point property. """ with self.subTest(msg="Return correct point"): x: int = 5 y: int = 10 image_point: ImagePoint = ImagePoint(x, y) point = np.array([5, 10], dtype=int) self.assertTrue(image_point.point.dtype == point.dtype) def test_m_midpoint(self) -> None: """ Assert correct calculation of midpoint between two ImagePoints. """ x: int = 5 y: int = 10 image_point_a: ImagePoint = ImagePoint(x, y) x: int = 15 y: int = 20 image_point_b: ImagePoint = ImagePoint(x, y) image_point_c: ImagePoint = image_point_a.midpoint(image_point_b) self.assertAlmostEqual(image_point_c.x, 10) self.assertAlmostEqual(image_point_c.y, 15) def test_m___str__(self) -> None: """ Assert correct string representation of ImagePoint. """ x: int = 5 y: int = 10 image_point: ImagePoint = ImagePoint(x, y) string_representation = f"x={x} y={y}" self.assertEqual(str(image_point), string_representation) def test_m___equ__(self) -> None: """ Assert correct equivalency two ImagePoints. """ x: int = 5 y: int = 10 image_point_a: ImagePoint = ImagePoint(x, y) image_point_b: ImagePoint = ImagePoint(y, x) image_point_c: ImagePoint = ImagePoint(x, y) assert image_point_a != image_point_b assert image_point_a == image_point_c class TestWorldPoint(unittest.TestCase): def test_p_x(self) -> None: """ Assert the self.x property. """ with self.subTest(msg="Return correct property"): x: int = 5 y: int = 10 z: int = 15 world_point: WorldPoint = WorldPoint(x, y, z) self.assertAlmostEqual(world_point.x, 5) with self.subTest(msg="Return correct type"): x: float = 5.0 y: float = 10.0 z: float = 15.0 world_point: WorldPoint = WorldPoint(x, y, z) self.assertIsInstance(world_point.x, int) def test_p_y(self) -> None: """ Assert the self.y property. """ with self.subTest(msg="Return correct property"): x: int = 5 y: int = 10 z: int = 15 world_point: WorldPoint = WorldPoint(x, y, z) self.assertAlmostEqual(world_point.y, 10) with self.subTest(msg="Return correct type"): x: float = 5.0 y: float = 10.0 z: float = 15.0 world_point: WorldPoint = WorldPoint(x, y, z) self.assertIsInstance(world_point.y, int) def test_p_z(self) -> None: """ Assert the self.z property. """ with self.subTest(msg="Return correct property"): x: int = 5 y: int = 10 z: int = 15 world_point: WorldPoint = WorldPoint(x, y, z) self.assertAlmostEqual(world_point.z, 15) with self.subTest(msg="Return correct type"): x: float = 5.0 y: float = 10.0 z: float = 15.0 world_point: WorldPoint = WorldPoint(x, y, z) self.assertIsInstance(world_point.z, int) def test_p_point(self) -> None: """ Assert the self.point property. """ with self.subTest(msg="Return correct point"): x: int = 5 y: int = 10 z: int = 15 world_point: WorldPoint = WorldPoint(x, y, z) point = np.array([5, 10, 15], dtype=int) self.assertTrue(world_point.point.dtype == point.dtype) def test_m_midpoint(self) -> None: """ Assert correct calculation of midpoint between two ImagePoints. """ x: int = 5 y: int = 10 z: int = 15 world_point_a: WorldPoint = WorldPoint(x, y, z) x: int = 20 y: int = 25 z: int = 30 world_point_b: WorldPoint = WorldPoint(x, y, z) world_point_c: WorldPoint = world_point_a.midpoint(world_point_b) # For behaviour on rounding x.5 values look at: # https://numpy.org/doc/stable/reference/generated/numpy.rint.html self.assertAlmostEqual(world_point_c.x, 12) # Odd x.5 round down self.assertAlmostEqual(world_point_c.y, 18) # Even x.5 round up self.assertAlmostEqual(world_point_c.z, 22) # Odd x.5 round down def test_m___str__(self) -> None: """ Assert correct string representation of ImagePoint. """ x: int = 5 y: int = 10 z: int = 15 world_point: WorldPoint = WorldPoint(x, y, z) string_representation = f"x={x} y={y} z={z}" self.assertEqual(str(world_point), string_representation) def test_m___equ__(self) -> None: """ Assert correct equivalency two WorldPoints. """ x: int = 5 y: int = 10 z: int = 15 world_point_a: WorldPoint = WorldPoint(x, y, z) world_point_b: WorldPoint = WorldPoint(z, x, y) world_point_c: WorldPoint = WorldPoint(x, y, z) assert world_point_a != world_point_b assert world_point_a == world_point_c
32.136585
74
0.556163
829
6,588
4.260555
0.107358
0.087769
0.051529
0.022084
0.854757
0.762458
0.716308
0.689977
0.689977
0.689977
0
0.029182
0.339405
6,588
204
75
32.294118
0.782399
0.104888
0
0.656716
0
0
0.049848
0
0
0
0
0
0.171642
1
0.097015
false
0
0.022388
0
0.134328
0
0
0
0
null
0
0
0
1
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
4ce63a51796d09d0a17014a9fc2ac0dc26691fea
237
py
Python
tests/import_tests.py
nesnoj/oemof.db
9e549057e0eb057a8d86b701aa73c3c5dae92853
[ "MIT" ]
null
null
null
tests/import_tests.py
nesnoj/oemof.db
9e549057e0eb057a8d86b701aa73c3c5dae92853
[ "MIT" ]
null
null
null
tests/import_tests.py
nesnoj/oemof.db
9e549057e0eb057a8d86b701aa73c3c5dae92853
[ "MIT" ]
null
null
null
from nose.tools import ok_ import oemof import oemof.db as oemofdb def test_that_oemof_is_importable(): ok_(oemof.__version__) def test_oemofdb_imports(): ok_(oemofdb.connection) ok_(oemofdb.engine) ok_(oemofdb.url)
15.8
36
0.751055
34
237
4.794118
0.558824
0.165644
0
0
0
0
0
0
0
0
0
0
0.164557
237
14
37
16.928571
0.823232
0
0
0
0
0
0
0
0
0
0
0
0
1
0.222222
true
0
0.555556
0
0.777778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
1
0
1
0
0
4
4cfef67e02b0fac5329fc1caf9c73585fb1f8ce5
137
py
Python
src/ftarcoder42/build.py
StarkillerX42/starcoder42
86fbd1a4ea90c75b5d2429ac5d1caf4b0d8dbef2
[ "BSD-3-Clause" ]
null
null
null
src/ftarcoder42/build.py
StarkillerX42/starcoder42
86fbd1a4ea90c75b5d2429ac5d1caf4b0d8dbef2
[ "BSD-3-Clause" ]
null
null
null
src/ftarcoder42/build.py
StarkillerX42/starcoder42
86fbd1a4ea90c75b5d2429ac5d1caf4b0d8dbef2
[ "BSD-3-Clause" ]
null
null
null
import subprocess as sub sub.call('f2py -c ftarcoder42.pyf constantf.f90 mathf.f90 physicf.f90 -m' ' ftarcoder42', shell=True)
27.4
73
0.715328
20
137
4.9
0.8
0
0
0
0
0
0
0
0
0
0
0.097345
0.175182
137
4
74
34.25
0.769912
0
0
0
0
0
0.540146
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
e22154cd5b7e0c01be1d0db9da9d5ecb4fbf5209
6,480
py
Python
src/genie/libs/parser/nxos/tests/ShowMacAddressTable/cli/equal/golden_output_3_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
204
2018-06-27T00:55:27.000Z
2022-03-06T21:12:18.000Z
src/genie/libs/parser/nxos/tests/ShowMacAddressTable/cli/equal/golden_output_3_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
468
2018-06-19T00:33:18.000Z
2022-03-31T23:23:35.000Z
src/genie/libs/parser/nxos/tests/ShowMacAddressTable/cli/equal/golden_output_3_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
309
2019-01-16T20:21:07.000Z
2022-03-30T12:56:41.000Z
expected_output = { 'mac_table': { 'vlans': { '100': { 'vlan': '100', 'mac_addresses': { '0000.0000.1111': { 'mac_address': '0000.0000.1111', 'entry': '+', 'interfaces': { 'Port-channel100': { 'interface': 'Port-channel100', 'mac_type': 'dynamic', 'age': 'NA' } }, 'secure': 'F', 'ntfy': 'F', }, '0000.0000.1112': { 'mac_address': '0000.0000.1112', 'interfaces': { 'Port-channel100': { 'interface': 'Port-channel100', 'mac_type': 'dynamic', 'age': 'NA' } }, 'secure': 'F', 'ntfy': 'F', }, '0000.0000.1113': { 'mac_address': '0000.0000.1113', 'interfaces': { 'Port-channel100': { 'interface': 'Port-channel100', 'mac_type': 'dynamic', 'age': 'NA' } }, 'secure': 'F', 'ntfy': 'F', }, '0000.0000.1114': { 'mac_address': '0000.0000.1114', 'interfaces': { 'Port-channel100': { 'interface': 'Port-channel100', 'mac_type': 'dynamic', 'age': 'NA' } }, 'secure': 'F', 'ntfy': 'F', }, '0000.0000.1115': { 'mac_address': '0000.0000.1115', 'interfaces': { 'Port-channel100': { 'interface': 'Port-channel100', 'mac_type': 'dynamic', 'age': 'NA' } }, 'secure': 'F', 'ntfy': 'F', }, '0000.0000.1116': { 'mac_address': '0000.0000.1116', 'interfaces': { 'Port-channel100': { 'interface': 'Port-channel100', 'mac_type': 'dynamic', 'age': 'NA' } }, 'secure': 'F', 'ntfy': 'F', }, '0000.0000.1117': { 'mac_address': '0000.0000.1117', 'interfaces': { 'Port-channel100': { 'interface': 'Port-channel100', 'mac_type': 'dynamic', 'age': 'NA' } }, 'secure': 'F', 'ntfy': 'F', }, '0000.0000.1118': { 'mac_address': '0000.0000.1118', 'interfaces': { 'Port-channel100': { 'interface': 'Port-channel100', 'mac_type': 'dynamic', 'age': 'NA' } }, 'secure': 'F', 'ntfy': 'F', }, '0000.0000.1119': { 'mac_address': '0000.0000.1119', 'interfaces': { 'Port-channel100': { 'interface': 'Port-channel100', 'mac_type': 'dynamic', 'age': 'NA' } }, 'secure': 'F', 'ntfy': 'F', }, '0000.0000.111a': { 'mac_address': '0000.0000.111a', 'entry': '+', 'interfaces': { 'Port-channel100': { 'interface': 'Port-channel100', 'mac_type': 'dynamic', 'age': 'NA' } }, 'secure': 'F', 'ntfy': 'F', }, '0010.9400.0002': { 'mac_address': '0010.9400.0002', 'entry': '*', 'interfaces': { 'Port-channel100': { 'interface': 'Port-channel100', 'mac_type': 'dynamic', 'age': 'NA' } }, 'secure': 'F', 'ntfy': 'F', }, } }, '-': { 'vlan': '-', 'mac_addresses': { '44ae.2502.a907': { 'mac_address': '44ae.2502.a907', 'entry': 'G', 'interfaces': { 'Sup-eth1(R)': { 'interface': 'Sup-eth1(R)', 'mac_type': 'static', 'age': '-' } }, 'secure': 'F', 'ntfy': 'F', } } } } } }
39.512195
66
0.222685
295
6,480
4.79661
0.145763
0.217668
0.093286
0.101767
0.667845
0.667845
0.667845
0.667845
0.667845
0.667845
0
0.159603
0.657716
6,480
163
67
39.754601
0.478359
0
0
0.503067
0
0
0.233025
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
1
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
e22c0befaa5512ccdd1b310ca9e86e617ac4186f
79
py
Python
web_parsers/utils/__init__.py
invanalabs/web-parser
dca9c6354317ec7187f46fd270092372b39f63f8
[ "Apache-2.0" ]
1
2019-10-06T23:11:32.000Z
2019-10-06T23:11:32.000Z
web_parsers/utils/__init__.py
crawlerflow/extraction-engine
dca9c6354317ec7187f46fd270092372b39f63f8
[ "Apache-2.0" ]
2
2020-03-11T09:33:03.000Z
2020-03-18T21:12:28.000Z
web_parsers/utils/__init__.py
crawlerflow/extraction-engine
dca9c6354317ec7187f46fd270092372b39f63f8
[ "Apache-2.0" ]
null
null
null
from .other import yaml_to_json from .selectors import convert_html_to_selector
39.5
47
0.886076
13
79
5
0.769231
0
0
0
0
0
0
0
0
0
0
0
0.088608
79
2
47
39.5
0.902778
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
e23cfbce425720b8b34b74d88b27c40ed8ce71f8
1,892
py
Python
flask/application/app_config.py
nydailynews/trumponomics
4a979f49b8adf45760955caf1b6d34c20cbfc69f
[ "MIT" ]
1
2019-06-03T19:22:34.000Z
2019-06-03T19:22:34.000Z
flask/application/app_config.py
nydailynews/trumponomics
4a979f49b8adf45760955caf1b6d34c20cbfc69f
[ "MIT" ]
null
null
null
flask/application/app_config.py
nydailynews/trumponomics
4a979f49b8adf45760955caf1b6d34c20cbfc69f
[ "MIT" ]
2
2018-11-22T03:09:52.000Z
2019-06-22T19:28:02.000Z
#!/usr/bin/env python # The app.page dict: # 'title': '', # 'url': '', # 'description': '', # 'author': '', # 'datestamp': '', # 'keywords': '', # 'keywords_array': '', # 'shareimg': '', # 'shareimgdesc': '', details = { 'base-unemployment': { 'title': '', 'description': '', 'newthing': '', 'keywords': ''}, 'monthly-job-growth': { 'title': '', 'description': '', 'newthing': '', 'keywords': ''}, 'labor-participation-rate': { 'title': '', 'description': '', 'newthing': '', 'keywords': ''}, 'year-over-year-wage-growth': { 'title': '', 'description': '', 'newthing': '', 'keywords': ''}, 'gdp-growth': { 'title': '', 'description': '', 'newthing': '', 'keywords': ''}, 'african-american-unemployment': { 'title': '', 'description': '', 'newthing': '', 'keywords': ''}, 'manufacturing-jobs': { 'title': '', 'description': '', 'newthing': '', 'keywords': ''}, 'coal-mining-jobs': { 'title': '', 'description': '', 'newthing': '', 'keywords': ''}, 'uninsured-rate': { 'title': '', 'description': '', 'newthing': '', 'keywords': ''}, 'us-trade-deficit': { 'title': '', 'description': '', 'newthing': '', 'keywords': ''}, 'interior-removals': { 'title': '', 'description': '', 'newthing': '', 'keywords': ''}, 'total-outstanding-debt': { 'title': '', 'description': '', 'newthing': '', 'keywords': ''}, 'americans-on-food-stamps': { 'title': '', 'description': '', 'newthing': '', 'keywords': ''} }
23.65
38
0.399049
108
1,892
6.981481
0.462963
0.275862
0.413793
0.551724
0.458886
0
0
0
0
0
0
0
0.350423
1,892
79
39
23.949367
0.613507
0.113108
0
0.761194
0
0
0.40012
0.074985
0
0
0
0
0
1
0
false
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
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
e241acff81ab7a5ff0708fd2bf35315e3fae57e1
100
py
Python
core/app/mqtt_services/apps.py
EmixMaxime/mx-home-security
ec6d329a09bb2e0afbbd7e481937893311f02634
[ "MIT" ]
2
2021-04-29T19:28:59.000Z
2021-04-29T21:20:32.000Z
core/app/mqtt_services/apps.py
EmixMaxime/mx-home-security
ec6d329a09bb2e0afbbd7e481937893311f02634
[ "MIT" ]
101
2020-06-26T19:51:24.000Z
2021-03-28T09:35:55.000Z
core/app/mqtt_services/apps.py
mxmaxime/mx-tech-house
f6b66b8390b348e48d4c6ea0da51e409f3845fd6
[ "MIT" ]
null
null
null
from django.apps import AppConfig class MqttServicesConfig(AppConfig): name = 'mqtt_services'
16.666667
36
0.78
11
100
7
0.909091
0
0
0
0
0
0
0
0
0
0
0
0.15
100
5
37
20
0.905882
0
0
0
0
0
0.13
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
e268813ad9f17d0dfbbf6f95f09c61a8270ce62b
93
py
Python
GoT_crawler/analysis.py
aamzhas/reddit_projects
01f36f873315978faafdae6e8509f706a0863ba9
[ "MIT" ]
null
null
null
GoT_crawler/analysis.py
aamzhas/reddit_projects
01f36f873315978faafdae6e8509f706a0863ba9
[ "MIT" ]
null
null
null
GoT_crawler/analysis.py
aamzhas/reddit_projects
01f36f873315978faafdae6e8509f706a0863ba9
[ "MIT" ]
null
null
null
import csv from textblob import TextBlob as tb if __name__ == "__main__": analyse_data()
18.6
35
0.741935
13
93
4.615385
0.846154
0
0
0
0
0
0
0
0
0
0
0
0.182796
93
5
36
18.6
0.789474
0
0
0
0
0
0.085106
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
e28c34e35ae4b4f3df58206467605471b9788535
14
py
Python
sso/api/handlers/__init__.py
docloud/luna.sso
a62c0ee788b72b39340165e41de16e248eb5edad
[ "MIT" ]
null
null
null
sso/api/handlers/__init__.py
docloud/luna.sso
a62c0ee788b72b39340165e41de16e248eb5edad
[ "MIT" ]
null
null
null
sso/api/handlers/__init__.py
docloud/luna.sso
a62c0ee788b72b39340165e41de16e248eb5edad
[ "MIT" ]
null
null
null
#coding=utf8
4.666667
12
0.714286
2
14
5
1
0
0
0
0
0
0
0
0
0
0
0.083333
0.142857
14
2
13
7
0.75
0.785714
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
2c6b8ac427b82ce738a5cf54c3cc83a98bf7c03e
278
py
Python
bank_card.py
rizuchaa/atm-machine
272882c336e43249d5910c3832be4c605da504a9
[ "Apache-2.0" ]
null
null
null
bank_card.py
rizuchaa/atm-machine
272882c336e43249d5910c3832be4c605da504a9
[ "Apache-2.0" ]
null
null
null
bank_card.py
rizuchaa/atm-machine
272882c336e43249d5910c3832be4c605da504a9
[ "Apache-2.0" ]
null
null
null
# inisiasi set awal kartu class bank_card: # finish def __init__(self, pin, balance): self.set_pin = pin self.set_balance = balance def check_set_pin(self): return self.set_pin def check_set_bal(self): return self.set_balance
21.384615
37
0.643885
39
278
4.25641
0.410256
0.168675
0.120482
0.204819
0
0
0
0
0
0
0
0
0.284173
278
12
38
23.166667
0.834171
0.107914
0
0
0
0
0
0
0
0
0
0
0
1
0.375
false
0
0
0.25
0.75
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
4
2c8d085bc87d2f9a2e5cc8b6d9aa97e5e95633d5
1,212
py
Python
tests/strategies/__init__.py
lycantropos/seidel
d4514f1041fe64c7faf3fd9a3f61769449070b51
[ "MIT" ]
3
2020-07-06T04:28:19.000Z
2021-04-20T07:50:53.000Z
tests/strategies/__init__.py
lycantropos/seidel
d4514f1041fe64c7faf3fd9a3f61769449070b51
[ "MIT" ]
null
null
null
tests/strategies/__init__.py
lycantropos/seidel
d4514f1041fe64c7faf3fd9a3f61769449070b51
[ "MIT" ]
null
null
null
from .factories import (coordinates_to_ported_edges, coordinates_to_ported_edges_with_nodes_pairs, coordinates_to_ported_leaves, coordinates_to_ported_points, coordinates_to_ported_points_pairs_edges_pairs, coordinates_to_ported_points_with_nodes_pairs, coordinates_to_ported_trapezoids, coordinates_to_ported_x_nodes, coordinates_to_ported_y_nodes, coordinates_to_sorted_ported_points_pairs, recursive, to_bound_with_ported_bounding_boxes_pair, to_bound_with_ported_edges_pair, to_bound_with_ported_leaves_pair, to_bound_with_ported_points_pair, to_bound_with_ported_trapezoids_pair, to_bound_with_ported_x_nodes_pair, to_bound_with_ported_y_nodes_pair, to_pairs, to_triplets) from .literals import (coordinates_strategies, floats)
52.695652
71
0.560231
112
1,212
5.3125
0.223214
0.218487
0.287395
0.2
0.322689
0.110924
0
0
0
0
0
0
0.418317
1,212
22
72
55.090909
0.843972
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.090909
0
0.090909
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
2c9a5e861f23480fac50f9be5af7a2dbcb98e3ce
883
py
Python
subsevenzip/__init__.py
dsvensson/subsevenzip-python
078c3876e5fd1ffd84e57ae992a142d247a5832f
[ "0BSD" ]
3
2015-01-05T14:09:25.000Z
2018-03-21T19:33:15.000Z
subsevenzip/__init__.py
dsvensson/subsevenzip-python
078c3876e5fd1ffd84e57ae992a142d247a5832f
[ "0BSD" ]
null
null
null
subsevenzip/__init__.py
dsvensson/subsevenzip-python
078c3876e5fd1ffd84e57ae992a142d247a5832f
[ "0BSD" ]
null
null
null
# Copyright (c) 2015, Daniel Svensson <dsvensson@gmail.com> # # Permission to use, copy, modify, and/or distribute this software for # any purpose with or without fee is hereby granted, provided that the # above copyright notice and this permission notice appear in all copies. # # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH # REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY # AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, # INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR # OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR # PERFORMANCE OF THIS SOFTWARE. from .archive import open # noqa from .exceptions import BadSevenZipArchive # noqa
51.941176
79
0.770102
130
883
5.230769
0.607692
0.052941
0
0
0
0
0
0
0
0
0
0.005548
0.183465
883
16
80
55.1875
0.937587
0.8641
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
4
2c9cde5b74aab37c4a5c3f8526d53c2ae5e2a58f
11
py
Python
conv_net.py
BoltzmannZhaung/Fashion-Boltzmann
fb83f6da564ded93e3577af561ef2950e043e59b
[ "MIT" ]
null
null
null
conv_net.py
BoltzmannZhaung/Fashion-Boltzmann
fb83f6da564ded93e3577af561ef2950e043e59b
[ "MIT" ]
null
null
null
conv_net.py
BoltzmannZhaung/Fashion-Boltzmann
fb83f6da564ded93e3577af561ef2950e043e59b
[ "MIT" ]
null
null
null
Ongoing....
11
11
0.636364
1
11
7
1
0
0
0
0
0
0
0
0
0
0
0
0
11
1
11
11
0.636364
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
4
2cb565f8f4592084ba48eb766f3c4fa262a33c69
717
py
Python
holobot/extensions/moderation/iconfig_provider.py
rexor12/holobot
89b7b416403d13ccfeee117ef942426b08d3651d
[ "MIT" ]
1
2021-05-24T00:17:46.000Z
2021-05-24T00:17:46.000Z
holobot/extensions/moderation/iconfig_provider.py
rexor12/holobot
89b7b416403d13ccfeee117ef942426b08d3651d
[ "MIT" ]
41
2021-03-24T22:50:09.000Z
2021-12-17T12:15:13.000Z
holobot/extensions/moderation/iconfig_provider.py
rexor12/holobot
89b7b416403d13ccfeee117ef942426b08d3651d
[ "MIT" ]
null
null
null
from datetime import timedelta from holobot.sdk.math import Range class IConfigProvider: def get_reason_length_range(self) -> Range[int]: raise NotImplementedError def get_decay_threshold_range(self) -> Range[timedelta]: raise NotImplementedError def get_warn_cleanup_interval(self) -> timedelta: raise NotImplementedError def get_warn_cleanup_delay(self) -> timedelta: raise NotImplementedError def get_mute_duration_range(self) -> Range[timedelta]: raise NotImplementedError def get_mute_cleanup_interval(self) -> timedelta: raise NotImplementedError def get_mute_cleanup_delay(self) -> timedelta: raise NotImplementedError
28.68
60
0.739191
78
717
6.525641
0.333333
0.082515
0.318271
0.353635
0.679764
0.679764
0.587426
0.436149
0
0
0
0
0.199442
717
24
61
29.875
0.88676
0
0
0.411765
0
0
0
0
0
0
0
0
0
1
0.411765
false
0
0.117647
0
0.588235
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
0
1
0
0
4
2cbee0cbd3a8e329664cb277cc0c7a2000dc5e6f
174
py
Python
mamiru/app.py
if1live/mamiru
3d69e9ee75e6e51021c7c5a766afd636c3ab9d2c
[ "MIT" ]
null
null
null
mamiru/app.py
if1live/mamiru
3d69e9ee75e6e51021c7c5a766afd636c3ab9d2c
[ "MIT" ]
null
null
null
mamiru/app.py
if1live/mamiru
3d69e9ee75e6e51021c7c5a766afd636c3ab9d2c
[ "MIT" ]
null
null
null
#-*- coding: utf-8 -*- from .loggers import create_logger from .mpd_player import MPDPlayer mpd_player = MPDPlayer() mpd_player.open() logger = create_logger('mamiru')
13.384615
34
0.729885
23
174
5.304348
0.565217
0.221311
0.295082
0
0
0
0
0
0
0
0
0.006711
0.143678
174
12
35
14.5
0.812081
0.12069
0
0
0
0
0.040268
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
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4