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
87e9b74dcfc8c95b4c981f83078804b2f2ec77be
69
py
Python
nuvolasdk/__main__.py
tiliado/nuvolasdk
9f61dcf13520846d937775a995933fce1f66271a
[ "BSD-2-Clause" ]
3
2019-05-30T22:16:45.000Z
2021-02-05T04:48:27.000Z
nuvolasdk/__main__.py
Acidburn0zzz/nuvolasdk
ffb398ba952832bd0ec2465ca6f0dba3ac2c8892
[ "BSD-2-Clause" ]
13
2017-06-01T17:45:31.000Z
2021-07-31T15:13:44.000Z
nuvolasdk/__main__.py
Acidburn0zzz/nuvolasdk
ffb398ba952832bd0ec2465ca6f0dba3ac2c8892
[ "BSD-2-Clause" ]
3
2020-02-21T07:52:23.000Z
2021-07-27T08:18:23.000Z
import sys import nuvolasdk sys.exit(nuvolasdk.run(".", sys.argv))
11.5
38
0.724638
10
69
5
0.6
0
0
0
0
0
0
0
0
0
0
0
0.115942
69
5
39
13.8
0.819672
0
0
0
0
0
0.014493
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
87fa46812ad554b3f483f99728f9a7bdb248bd7a
51
py
Python
__main__.py
DARKPOISON-yt/miyu-animals
ba80d3cd45e91d43b4af89a77437ac12d8c932e8
[ "MIT" ]
2
2022-01-12T05:32:22.000Z
2022-01-12T05:51:07.000Z
__main__.py
DARKPOISON-yt/miyu-animals
ba80d3cd45e91d43b4af89a77437ac12d8c932e8
[ "MIT" ]
1
2022-01-12T07:24:30.000Z
2022-01-16T04:47:48.000Z
__main__.py
DARKPOISON-yt/miyu-animals
ba80d3cd45e91d43b4af89a77437ac12d8c932e8
[ "MIT" ]
null
null
null
import animalapi as a print(a.animal_data("dogs"))
17
28
0.764706
9
51
4.222222
0.888889
0
0
0
0
0
0
0
0
0
0
0
0.098039
51
3
28
17
0.826087
0
0
0
0
0
0.076923
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0.5
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
1
0
5
356736145a32b2b739427016f159aa0c557ae1a7
18,484
py
Python
soda/core/soda/sodacl/antlr/SodaCLAntlrLexer.py
sodadata/soda-core
d9b98d4f6f3364c5eb8210e8288c4c861bcf8f8a
[ "Apache-2.0" ]
4
2022-03-23T02:43:42.000Z
2022-03-31T15:20:54.000Z
soda/core/soda/sodacl/antlr/SodaCLAntlrLexer.py
sodadata/soda-core
d9b98d4f6f3364c5eb8210e8288c4c861bcf8f8a
[ "Apache-2.0" ]
543
2022-03-22T09:02:17.000Z
2022-03-31T16:29:41.000Z
soda/core/soda/sodacl/antlr/SodaCLAntlrLexer.py
sodadata/soda-core
d9b98d4f6f3364c5eb8210e8288c4c861bcf8f8a
[ "Apache-2.0" ]
1
2022-03-27T03:37:55.000Z
2022-03-27T03:37:55.000Z
# Generated from /Users/tom/Code/soda-core/soda/core/soda/sodacl/antlr/SodaCLAntlr.g4 by ANTLR 4.9.3 from antlr4 import * from io import StringIO import sys if sys.version_info[1] > 5: from typing import TextIO else: from typing.io import TextIO def serializedATN(): with StringIO() as buf: buf.write("\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964\28") buf.write("\u01d3\b\1\4\2\t\2\4\3\t\3\4\4\t\4\4\5\t\5\4\6\t\6\4\7") buf.write("\t\7\4\b\t\b\4\t\t\t\4\n\t\n\4\13\t\13\4\f\t\f\4\r\t\r") buf.write("\4\16\t\16\4\17\t\17\4\20\t\20\4\21\t\21\4\22\t\22\4\23") buf.write("\t\23\4\24\t\24\4\25\t\25\4\26\t\26\4\27\t\27\4\30\t\30") buf.write("\4\31\t\31\4\32\t\32\4\33\t\33\4\34\t\34\4\35\t\35\4\36") buf.write("\t\36\4\37\t\37\4 \t \4!\t!\4\"\t\"\4#\t#\4$\t$\4%\t%") buf.write("\4&\t&\4\'\t\'\4(\t(\4)\t)\4*\t*\4+\t+\4,\t,\4-\t-\4.") buf.write("\t.\4/\t/\4\60\t\60\4\61\t\61\4\62\t\62\4\63\t\63\4\64") buf.write("\t\64\4\65\t\65\4\66\t\66\4\67\t\67\3\2\3\2\3\2\3\2\3") buf.write("\2\3\2\3\2\3\2\3\2\3\2\3\2\3\2\3\2\3\2\3\2\3\2\3\3\3\3") buf.write("\3\3\3\3\3\3\3\4\3\4\3\4\3\4\3\4\3\4\3\4\3\4\3\4\3\4\3") buf.write("\4\3\4\3\4\3\4\3\4\3\4\3\4\3\4\3\5\3\5\3\5\3\5\3\5\3\5") buf.write("\3\5\3\5\3\6\3\6\3\6\3\6\3\6\3\6\3\6\3\6\3\6\3\6\3\6\3") buf.write("\6\3\6\3\6\3\6\3\6\3\6\3\6\3\6\3\7\3\7\3\7\3\7\3\7\3\7") buf.write("\3\7\3\7\3\7\3\7\3\7\3\7\3\7\3\7\3\7\3\7\3\7\3\7\3\7\3") buf.write("\7\3\b\3\b\3\b\3\b\3\b\3\b\3\b\3\b\3\b\3\b\3\b\3\b\3\b") buf.write("\3\b\3\b\3\b\3\b\3\b\3\b\3\t\3\t\3\n\3\n\3\13\3\13\3\f") buf.write("\3\f\3\f\3\f\3\f\3\f\3\f\3\f\3\f\3\f\3\r\3\r\3\r\3\r\3") buf.write("\r\3\r\3\r\3\r\3\r\3\r\3\r\3\r\3\r\3\r\3\16\3\16\3\16") buf.write("\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\17\3\17\3\17") buf.write("\3\17\3\17\3\17\3\17\3\20\3\20\3\20\3\20\3\20\3\20\3\20") buf.write("\3\20\3\20\3\20\3\20\3\20\3\20\3\20\3\20\3\20\3\20\3\20") buf.write("\3\20\3\21\3\21\3\21\3\21\3\21\3\21\3\21\3\21\3\21\3\21") buf.write("\3\21\3\21\3\21\3\21\3\21\3\21\3\21\3\22\3\22\3\22\3\22") buf.write("\3\22\3\22\3\22\3\22\3\22\3\22\3\22\3\22\3\22\3\22\3\22") buf.write("\3\23\3\23\3\23\3\23\3\23\3\23\3\23\3\23\3\23\3\23\3\23") buf.write("\3\23\3\23\3\23\3\23\3\23\3\24\3\24\3\25\3\25\3\25\3\25") buf.write("\3\26\3\26\3\26\3\26\3\27\3\27\3\27\3\27\3\27\3\27\3\27") buf.write("\3\27\3\30\3\30\3\30\3\30\3\31\3\31\3\31\3\32\3\32\3\32") buf.write("\3\32\3\32\3\33\3\33\3\33\3\33\3\33\3\34\3\34\3\34\3\34") buf.write("\3\34\3\35\3\35\3\35\3\35\3\35\3\35\3\35\3\36\3\36\3\36") buf.write("\3\36\3\36\3\37\3\37\3\37\3\37\3 \3 \3 \3 \3!\3!\3!\3") buf.write("!\3\"\3\"\3#\3#\3$\3$\3%\3%\3&\3&\3\'\3\'\3(\3(\3)\3)") buf.write("\3*\3*\3+\3+\3,\3,\3,\3-\3-\3-\3.\3.\3.\3/\3/\3/\3\60") buf.write("\3\60\3\61\3\61\3\62\3\62\3\63\3\63\3\63\3\63\6\63\u01b6") buf.write("\n\63\r\63\16\63\u01b7\3\63\3\63\3\64\3\64\3\64\3\64\6") buf.write("\64\u01c0\n\64\r\64\16\64\u01c1\3\64\3\64\3\65\3\65\7") buf.write("\65\u01c8\n\65\f\65\16\65\u01cb\13\65\3\66\6\66\u01ce") buf.write("\n\66\r\66\16\66\u01cf\3\67\3\67\2\28\3\3\5\4\7\5\t\6") buf.write("\13\7\r\b\17\t\21\n\23\13\25\f\27\r\31\16\33\17\35\20") buf.write("\37\21!\22#\23%\24\'\25)\26+\27-\30/\31\61\32\63\33\65") buf.write("\34\67\359\36;\37= ?!A\"C#E$G%I&K\'M(O)Q*S+U,W-Y.[/]\60") buf.write("_\61a\62c\63e\64g\65i\66k\67m8\3\2\7\3\2$$\3\2bb\5\2C") buf.write("\\aac|\b\2\"\"*+..>@]]__\3\2\62;\2\u01d8\2\3\3\2\2\2\2") buf.write("\5\3\2\2\2\2\7\3\2\2\2\2\t\3\2\2\2\2\13\3\2\2\2\2\r\3") buf.write("\2\2\2\2\17\3\2\2\2\2\21\3\2\2\2\2\23\3\2\2\2\2\25\3\2") buf.write("\2\2\2\27\3\2\2\2\2\31\3\2\2\2\2\33\3\2\2\2\2\35\3\2\2") buf.write("\2\2\37\3\2\2\2\2!\3\2\2\2\2#\3\2\2\2\2%\3\2\2\2\2\'\3") buf.write("\2\2\2\2)\3\2\2\2\2+\3\2\2\2\2-\3\2\2\2\2/\3\2\2\2\2\61") buf.write("\3\2\2\2\2\63\3\2\2\2\2\65\3\2\2\2\2\67\3\2\2\2\29\3\2") buf.write("\2\2\2;\3\2\2\2\2=\3\2\2\2\2?\3\2\2\2\2A\3\2\2\2\2C\3") buf.write("\2\2\2\2E\3\2\2\2\2G\3\2\2\2\2I\3\2\2\2\2K\3\2\2\2\2M") buf.write("\3\2\2\2\2O\3\2\2\2\2Q\3\2\2\2\2S\3\2\2\2\2U\3\2\2\2\2") buf.write("W\3\2\2\2\2Y\3\2\2\2\2[\3\2\2\2\2]\3\2\2\2\2_\3\2\2\2") buf.write("\2a\3\2\2\2\2c\3\2\2\2\2e\3\2\2\2\2g\3\2\2\2\2i\3\2\2") buf.write("\2\2k\3\2\2\2\2m\3\2\2\2\3o\3\2\2\2\5\177\3\2\2\2\7\u0084") buf.write("\3\2\2\2\t\u0096\3\2\2\2\13\u009e\3\2\2\2\r\u00b1\3\2") buf.write("\2\2\17\u00c5\3\2\2\2\21\u00d8\3\2\2\2\23\u00da\3\2\2") buf.write("\2\25\u00dc\3\2\2\2\27\u00de\3\2\2\2\31\u00e8\3\2\2\2") buf.write("\33\u00f6\3\2\2\2\35\u0101\3\2\2\2\37\u0108\3\2\2\2!\u011b") buf.write("\3\2\2\2#\u012c\3\2\2\2%\u013b\3\2\2\2\'\u014b\3\2\2\2") buf.write(")\u014d\3\2\2\2+\u0151\3\2\2\2-\u0155\3\2\2\2/\u015d\3") buf.write("\2\2\2\61\u0161\3\2\2\2\63\u0164\3\2\2\2\65\u0169\3\2") buf.write("\2\2\67\u016e\3\2\2\29\u0173\3\2\2\2;\u017a\3\2\2\2=\u017f") buf.write("\3\2\2\2?\u0183\3\2\2\2A\u0187\3\2\2\2C\u018b\3\2\2\2") buf.write("E\u018d\3\2\2\2G\u018f\3\2\2\2I\u0191\3\2\2\2K\u0193\3") buf.write("\2\2\2M\u0195\3\2\2\2O\u0197\3\2\2\2Q\u0199\3\2\2\2S\u019b") buf.write("\3\2\2\2U\u019d\3\2\2\2W\u019f\3\2\2\2Y\u01a2\3\2\2\2") buf.write("[\u01a5\3\2\2\2]\u01a8\3\2\2\2_\u01ab\3\2\2\2a\u01ad\3") buf.write("\2\2\2c\u01af\3\2\2\2e\u01b1\3\2\2\2g\u01bb\3\2\2\2i\u01c5") buf.write("\3\2\2\2k\u01cd\3\2\2\2m\u01d1\3\2\2\2op\7h\2\2pq\7t\2") buf.write("\2qr\7g\2\2rs\7u\2\2st\7j\2\2tu\7p\2\2uv\7g\2\2vw\7u\2") buf.write("\2wx\7u\2\2xy\7\"\2\2yz\7w\2\2z{\7u\2\2{|\7k\2\2|}\7p") buf.write("\2\2}~\7i\2\2~\4\3\2\2\2\177\u0080\7y\2\2\u0080\u0081") buf.write("\7k\2\2\u0081\u0082\7v\2\2\u0082\u0083\7j\2\2\u0083\6") buf.write("\3\2\2\2\u0084\u0085\7t\2\2\u0085\u0086\7q\2\2\u0086\u0087") buf.write("\7y\2\2\u0087\u0088\7a\2\2\u0088\u0089\7e\2\2\u0089\u008a") buf.write("\7q\2\2\u008a\u008b\7w\2\2\u008b\u008c\7p\2\2\u008c\u008d") buf.write("\7v\2\2\u008d\u008e\7\"\2\2\u008e\u008f\7u\2\2\u008f\u0090") buf.write("\7c\2\2\u0090\u0091\7o\2\2\u0091\u0092\7g\2\2\u0092\u0093") buf.write("\7\"\2\2\u0093\u0094\7c\2\2\u0094\u0095\7u\2\2\u0095\b") buf.write("\3\2\2\2\u0096\u0097\7f\2\2\u0097\u0098\7g\2\2\u0098\u0099") buf.write("\7h\2\2\u0099\u009a\7c\2\2\u009a\u009b\7w\2\2\u009b\u009c") buf.write("\7n\2\2\u009c\u009d\7v\2\2\u009d\n\3\2\2\2\u009e\u009f") buf.write("\7u\2\2\u009f\u00a0\7c\2\2\u00a0\u00a1\7o\2\2\u00a1\u00a2") buf.write("\7g\2\2\u00a2\u00a3\7\"\2\2\u00a3\u00a4\7f\2\2\u00a4\u00a5") buf.write("\7c\2\2\u00a5\u00a6\7{\2\2\u00a6\u00a7\7\"\2\2\u00a7\u00a8") buf.write("\7n\2\2\u00a8\u00a9\7c\2\2\u00a9\u00aa\7u\2\2\u00aa\u00ab") buf.write("\7v\2\2\u00ab\u00ac\7\"\2\2\u00ac\u00ad\7y\2\2\u00ad\u00ae") buf.write("\7g\2\2\u00ae\u00af\7g\2\2\u00af\u00b0\7m\2\2\u00b0\f") buf.write("\3\2\2\2\u00b1\u00b2\7u\2\2\u00b2\u00b3\7c\2\2\u00b3\u00b4") buf.write("\7o\2\2\u00b4\u00b5\7g\2\2\u00b5\u00b6\7\"\2\2\u00b6\u00b7") buf.write("\7f\2\2\u00b7\u00b8\7c\2\2\u00b8\u00b9\7{\2\2\u00b9\u00ba") buf.write("\7\"\2\2\u00ba\u00bb\7n\2\2\u00bb\u00bc\7c\2\2\u00bc\u00bd") buf.write("\7u\2\2\u00bd\u00be\7v\2\2\u00be\u00bf\7\"\2\2\u00bf\u00c0") buf.write("\7o\2\2\u00c0\u00c1\7q\2\2\u00c1\u00c2\7p\2\2\u00c2\u00c3") buf.write("\7v\2\2\u00c3\u00c4\7j\2\2\u00c4\16\3\2\2\2\u00c5\u00c6") buf.write("\7c\2\2\u00c6\u00c7\7p\2\2\u00c7\u00c8\7q\2\2\u00c8\u00c9") buf.write("\7o\2\2\u00c9\u00ca\7c\2\2\u00ca\u00cb\7n\2\2\u00cb\u00cc") buf.write("\7{\2\2\u00cc\u00cd\7\"\2\2\u00cd\u00ce\7u\2\2\u00ce\u00cf") buf.write("\7e\2\2\u00cf\u00d0\7q\2\2\u00d0\u00d1\7t\2\2\u00d1\u00d2") buf.write("\7g\2\2\u00d2\u00d3\7\"\2\2\u00d3\u00d4\7h\2\2\u00d4\u00d5") buf.write("\7q\2\2\u00d5\u00d6\7t\2\2\u00d6\u00d7\7\"\2\2\u00d7\20") buf.write("\3\2\2\2\u00d8\u00d9\7f\2\2\u00d9\22\3\2\2\2\u00da\u00db") buf.write("\7j\2\2\u00db\24\3\2\2\2\u00dc\u00dd\7o\2\2\u00dd\26\3") buf.write("\2\2\2\u00de\u00df\7x\2\2\u00df\u00e0\7c\2\2\u00e0\u00e1") buf.write("\7n\2\2\u00e1\u00e2\7w\2\2\u00e2\u00e3\7g\2\2\u00e3\u00e4") buf.write("\7u\2\2\u00e4\u00e5\7\"\2\2\u00e5\u00e6\7k\2\2\u00e6\u00e7") buf.write("\7p\2\2\u00e7\30\3\2\2\2\u00e8\u00e9\7o\2\2\u00e9\u00ea") buf.write("\7w\2\2\u00ea\u00eb\7u\2\2\u00eb\u00ec\7v\2\2\u00ec\u00ed") buf.write("\7\"\2\2\u00ed\u00ee\7g\2\2\u00ee\u00ef\7z\2\2\u00ef\u00f0") buf.write("\7k\2\2\u00f0\u00f1\7u\2\2\u00f1\u00f2\7v\2\2\u00f2\u00f3") buf.write("\7\"\2\2\u00f3\u00f4\7k\2\2\u00f4\u00f5\7p\2\2\u00f5\32") buf.write("\3\2\2\2\u00f6\u00f7\7e\2\2\u00f7\u00f8\7j\2\2\u00f8\u00f9") buf.write("\7g\2\2\u00f9\u00fa\7e\2\2\u00fa\u00fb\7m\2\2\u00fb\u00fc") buf.write("\7u\2\2\u00fc\u00fd\7\"\2\2\u00fd\u00fe\7h\2\2\u00fe\u00ff") buf.write("\7q\2\2\u00ff\u0100\7t\2\2\u0100\34\3\2\2\2\u0101\u0102") buf.write("\7h\2\2\u0102\u0103\7k\2\2\u0103\u0104\7n\2\2\u0104\u0105") buf.write("\7v\2\2\u0105\u0106\7g\2\2\u0106\u0107\7t\2\2\u0107\36") buf.write("\3\2\2\2\u0108\u0109\7e\2\2\u0109\u010a\7q\2\2\u010a\u010b") buf.write("\7p\2\2\u010b\u010c\7h\2\2\u010c\u010d\7k\2\2\u010d\u010e") buf.write("\7i\2\2\u010e\u010f\7w\2\2\u010f\u0110\7t\2\2\u0110\u0111") buf.write("\7c\2\2\u0111\u0112\7v\2\2\u0112\u0113\7k\2\2\u0113\u0114") buf.write("\7q\2\2\u0114\u0115\7p\2\2\u0115\u0116\7u\2\2\u0116\u0117") buf.write("\7\"\2\2\u0117\u0118\7h\2\2\u0118\u0119\7q\2\2\u0119\u011a") buf.write("\7t\2\2\u011a \3\2\2\2\u011b\u011c\7h\2\2\u011c\u011d") buf.write("\7q\2\2\u011d\u011e\7t\2\2\u011e\u011f\7\"\2\2\u011f\u0120") buf.write("\7g\2\2\u0120\u0121\7c\2\2\u0121\u0122\7e\2\2\u0122\u0123") buf.write("\7j\2\2\u0123\u0124\7\"\2\2\u0124\u0125\7f\2\2\u0125\u0126") buf.write("\7c\2\2\u0126\u0127\7v\2\2\u0127\u0128\7c\2\2\u0128\u0129") buf.write("\7u\2\2\u0129\u012a\7g\2\2\u012a\u012b\7v\2\2\u012b\"") buf.write("\3\2\2\2\u012c\u012d\7h\2\2\u012d\u012e\7q\2\2\u012e\u012f") buf.write("\7t\2\2\u012f\u0130\7\"\2\2\u0130\u0131\7g\2\2\u0131\u0132") buf.write("\7c\2\2\u0132\u0133\7e\2\2\u0133\u0134\7j\2\2\u0134\u0135") buf.write("\7\"\2\2\u0135\u0136\7v\2\2\u0136\u0137\7c\2\2\u0137\u0138") buf.write("\7d\2\2\u0138\u0139\7n\2\2\u0139\u013a\7g\2\2\u013a$\3") buf.write("\2\2\2\u013b\u013c\7h\2\2\u013c\u013d\7q\2\2\u013d\u013e") buf.write("\7t\2\2\u013e\u013f\7\"\2\2\u013f\u0140\7g\2\2\u0140\u0141") buf.write("\7c\2\2\u0141\u0142\7e\2\2\u0142\u0143\7j\2\2\u0143\u0144") buf.write("\7\"\2\2\u0144\u0145\7e\2\2\u0145\u0146\7q\2\2\u0146\u0147") buf.write("\7n\2\2\u0147\u0148\7w\2\2\u0148\u0149\7o\2\2\u0149\u014a") buf.write("\7p\2\2\u014a&\3\2\2\2\u014b\u014c\7\60\2\2\u014c(\3\2") buf.write("\2\2\u014d\u014e\7h\2\2\u014e\u014f\7q\2\2\u014f\u0150") buf.write("\7t\2\2\u0150*\3\2\2\2\u0151\u0152\7c\2\2\u0152\u0153") buf.write("\7p\2\2\u0153\u0154\7f\2\2\u0154,\3\2\2\2\u0155\u0156") buf.write("\7d\2\2\u0156\u0157\7g\2\2\u0157\u0158\7v\2\2\u0158\u0159") buf.write("\7y\2\2\u0159\u015a\7g\2\2\u015a\u015b\7g\2\2\u015b\u015c") buf.write("\7p\2\2\u015c.\3\2\2\2\u015d\u015e\7p\2\2\u015e\u015f") buf.write("\7q\2\2\u015f\u0160\7v\2\2\u0160\60\3\2\2\2\u0161\u0162") buf.write("\7k\2\2\u0162\u0163\7p\2\2\u0163\62\3\2\2\2\u0164\u0165") buf.write("\7y\2\2\u0165\u0166\7c\2\2\u0166\u0167\7t\2\2\u0167\u0168") buf.write("\7p\2\2\u0168\64\3\2\2\2\u0169\u016a\7h\2\2\u016a\u016b") buf.write("\7c\2\2\u016b\u016c\7k\2\2\u016c\u016d\7n\2\2\u016d\66") buf.write("\3\2\2\2\u016e\u016f\7r\2\2\u016f\u0170\7c\2\2\u0170\u0171") buf.write("\7u\2\2\u0171\u0172\7u\2\2\u01728\3\2\2\2\u0173\u0174") buf.write("\7e\2\2\u0174\u0175\7j\2\2\u0175\u0176\7c\2\2\u0176\u0177") buf.write("\7p\2\2\u0177\u0178\7i\2\2\u0178\u0179\7g\2\2\u0179:\3") buf.write("\2\2\2\u017a\u017b\7n\2\2\u017b\u017c\7c\2\2\u017c\u017d") buf.write("\7u\2\2\u017d\u017e\7v\2\2\u017e<\3\2\2\2\u017f\u0180") buf.write("\7c\2\2\u0180\u0181\7x\2\2\u0181\u0182\7i\2\2\u0182>\3") buf.write("\2\2\2\u0183\u0184\7o\2\2\u0184\u0185\7k\2\2\u0185\u0186") buf.write("\7p\2\2\u0186@\3\2\2\2\u0187\u0188\7o\2\2\u0188\u0189") buf.write("\7c\2\2\u0189\u018a\7z\2\2\u018aB\3\2\2\2\u018b\u018c") buf.write("\7]\2\2\u018cD\3\2\2\2\u018d\u018e\7_\2\2\u018eF\3\2\2") buf.write("\2\u018f\u0190\7}\2\2\u0190H\3\2\2\2\u0191\u0192\7\177") buf.write("\2\2\u0192J\3\2\2\2\u0193\u0194\7*\2\2\u0194L\3\2\2\2") buf.write("\u0195\u0196\7+\2\2\u0196N\3\2\2\2\u0197\u0198\7.\2\2") buf.write("\u0198P\3\2\2\2\u0199\u019a\7\'\2\2\u019aR\3\2\2\2\u019b") buf.write("\u019c\7-\2\2\u019cT\3\2\2\2\u019d\u019e\7/\2\2\u019e") buf.write("V\3\2\2\2\u019f\u01a0\7#\2\2\u01a0\u01a1\7?\2\2\u01a1") buf.write("X\3\2\2\2\u01a2\u01a3\7>\2\2\u01a3\u01a4\7@\2\2\u01a4") buf.write("Z\3\2\2\2\u01a5\u01a6\7>\2\2\u01a6\u01a7\7?\2\2\u01a7") buf.write("\\\3\2\2\2\u01a8\u01a9\7@\2\2\u01a9\u01aa\7?\2\2\u01aa") buf.write("^\3\2\2\2\u01ab\u01ac\7?\2\2\u01ac`\3\2\2\2\u01ad\u01ae") buf.write("\7>\2\2\u01aeb\3\2\2\2\u01af\u01b0\7@\2\2\u01b0d\3\2\2") buf.write("\2\u01b1\u01b5\7$\2\2\u01b2\u01b6\n\2\2\2\u01b3\u01b4") buf.write("\7^\2\2\u01b4\u01b6\7$\2\2\u01b5\u01b2\3\2\2\2\u01b5\u01b3") buf.write("\3\2\2\2\u01b6\u01b7\3\2\2\2\u01b7\u01b5\3\2\2\2\u01b7") buf.write("\u01b8\3\2\2\2\u01b8\u01b9\3\2\2\2\u01b9\u01ba\7$\2\2") buf.write("\u01baf\3\2\2\2\u01bb\u01bf\7b\2\2\u01bc\u01c0\n\3\2\2") buf.write("\u01bd\u01be\7^\2\2\u01be\u01c0\7b\2\2\u01bf\u01bc\3\2") buf.write("\2\2\u01bf\u01bd\3\2\2\2\u01c0\u01c1\3\2\2\2\u01c1\u01bf") buf.write("\3\2\2\2\u01c1\u01c2\3\2\2\2\u01c2\u01c3\3\2\2\2\u01c3") buf.write("\u01c4\7b\2\2\u01c4h\3\2\2\2\u01c5\u01c9\t\4\2\2\u01c6") buf.write("\u01c8\n\5\2\2\u01c7\u01c6\3\2\2\2\u01c8\u01cb\3\2\2\2") buf.write("\u01c9\u01c7\3\2\2\2\u01c9\u01ca\3\2\2\2\u01caj\3\2\2") buf.write("\2\u01cb\u01c9\3\2\2\2\u01cc\u01ce\t\6\2\2\u01cd\u01cc") buf.write("\3\2\2\2\u01ce\u01cf\3\2\2\2\u01cf\u01cd\3\2\2\2\u01cf") buf.write("\u01d0\3\2\2\2\u01d0l\3\2\2\2\u01d1\u01d2\7\"\2\2\u01d2") buf.write("n\3\2\2\2\t\2\u01b5\u01b7\u01bf\u01c1\u01c9\u01cf\2") return buf.getvalue() class SodaCLAntlrLexer(Lexer): atn = ATNDeserializer().deserialize(serializedATN()) decisionsToDFA = [ DFA(ds, i) for i, ds in enumerate(atn.decisionToState) ] T__0 = 1 T__1 = 2 T__2 = 3 T__3 = 4 T__4 = 5 T__5 = 6 T__6 = 7 T__7 = 8 T__8 = 9 T__9 = 10 T__10 = 11 T__11 = 12 T__12 = 13 T__13 = 14 T__14 = 15 T__15 = 16 T__16 = 17 T__17 = 18 T__18 = 19 FOR = 20 AND = 21 BETWEEN = 22 NOT = 23 IN = 24 WARN = 25 FAIL = 26 PASS = 27 CHANGE = 28 LAST = 29 AVG = 30 MIN = 31 MAX = 32 SQUARE_LEFT = 33 SQUARE_RIGHT = 34 CURLY_LEFT = 35 CURLY_RIGHT = 36 ROUND_LEFT = 37 ROUND_RIGHT = 38 COMMA = 39 PERCENT = 40 PLUS = 41 MINUS = 42 NOT_EQUAL = 43 NOT_EQUAL_SQL = 44 LTE = 45 GTE = 46 EQUAL = 47 LT = 48 GT = 49 IDENTIFIER_DOUBLE_QUOTE = 50 IDENTIFIER_BACKTICK = 51 IDENTIFIER_UNQUOTED = 52 DIGITS = 53 S = 54 channelNames = [ u"DEFAULT_TOKEN_CHANNEL", u"HIDDEN" ] modeNames = [ "DEFAULT_MODE" ] literalNames = [ "<INVALID>", "'freshness using'", "'with'", "'row_count same as'", "'default'", "'same day last week'", "'same day last month'", "'anomaly score for '", "'d'", "'h'", "'m'", "'values in'", "'must exist in'", "'checks for'", "'filter'", "'configurations for'", "'for each dataset'", "'for each table'", "'for each column'", "'.'", "'for'", "'and'", "'between'", "'not'", "'in'", "'warn'", "'fail'", "'pass'", "'change'", "'last'", "'avg'", "'min'", "'max'", "'['", "']'", "'{'", "'}'", "'('", "')'", "','", "'%'", "'+'", "'-'", "'!='", "'<>'", "'<='", "'>='", "'='", "'<'", "'>'", "' '" ] symbolicNames = [ "<INVALID>", "FOR", "AND", "BETWEEN", "NOT", "IN", "WARN", "FAIL", "PASS", "CHANGE", "LAST", "AVG", "MIN", "MAX", "SQUARE_LEFT", "SQUARE_RIGHT", "CURLY_LEFT", "CURLY_RIGHT", "ROUND_LEFT", "ROUND_RIGHT", "COMMA", "PERCENT", "PLUS", "MINUS", "NOT_EQUAL", "NOT_EQUAL_SQL", "LTE", "GTE", "EQUAL", "LT", "GT", "IDENTIFIER_DOUBLE_QUOTE", "IDENTIFIER_BACKTICK", "IDENTIFIER_UNQUOTED", "DIGITS", "S" ] ruleNames = [ "T__0", "T__1", "T__2", "T__3", "T__4", "T__5", "T__6", "T__7", "T__8", "T__9", "T__10", "T__11", "T__12", "T__13", "T__14", "T__15", "T__16", "T__17", "T__18", "FOR", "AND", "BETWEEN", "NOT", "IN", "WARN", "FAIL", "PASS", "CHANGE", "LAST", "AVG", "MIN", "MAX", "SQUARE_LEFT", "SQUARE_RIGHT", "CURLY_LEFT", "CURLY_RIGHT", "ROUND_LEFT", "ROUND_RIGHT", "COMMA", "PERCENT", "PLUS", "MINUS", "NOT_EQUAL", "NOT_EQUAL_SQL", "LTE", "GTE", "EQUAL", "LT", "GT", "IDENTIFIER_DOUBLE_QUOTE", "IDENTIFIER_BACKTICK", "IDENTIFIER_UNQUOTED", "DIGITS", "S" ] grammarFileName = "SodaCLAntlr.g4" def __init__(self, input=None, output:TextIO = sys.stdout): super().__init__(input, output) self.checkVersion("4.9.3") self._interp = LexerATNSimulator(self, self.atn, self.decisionsToDFA, PredictionContextCache()) self._actions = None self._predicates = None
59.054313
103
0.560052
4,214
18,484
2.424063
0.150451
0.125893
0.053744
0.055605
0.323152
0.19628
0.145472
0.12697
0.12697
0.12374
0
0.337426
0.154079
18,484
312
104
59.24359
0.315874
0.005302
0
0
1
0.52381
0.577902
0.517735
0
0
0
0
0
1
0.006803
false
0.013605
0.017007
0
0.241497
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
1
1
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
356936e019216341163555e81a4beb4f9d4afda5
23
py
Python
baron.py
Alexandra-Baron/belhard_52
446974fbceaac6b66798b22f52610fa964921337
[ "MIT" ]
null
null
null
baron.py
Alexandra-Baron/belhard_52
446974fbceaac6b66798b22f52610fa964921337
[ "MIT" ]
null
null
null
baron.py
Alexandra-Baron/belhard_52
446974fbceaac6b66798b22f52610fa964921337
[ "MIT" ]
null
null
null
print('baron') #surname
11.5
14
0.73913
3
23
5.666667
1
0
0
0
0
0
0
0
0
0
0
0
0.043478
23
2
15
11.5
0.772727
0.304348
0
0
0
0
0.3125
0
0
0
0
0
0
1
0
true
0
0
0
0
1
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
1
0
5
3570bfb5e37e372122a4c5fd8deb941dd9988012
74
py
Python
plugins/hello.py
Ruthenic/tesm
8f44b5f5f9ef31eff7c3275717fb6be63388d14c
[ "Unlicense" ]
null
null
null
plugins/hello.py
Ruthenic/tesm
8f44b5f5f9ef31eff7c3275717fb6be63388d14c
[ "Unlicense" ]
1
2021-02-15T22:04:04.000Z
2021-02-15T22:04:09.000Z
plugins/hello.py
Ruthenic/tesm
8f44b5f5f9ef31eff7c3275717fb6be63388d14c
[ "Unlicense" ]
1
2021-02-15T22:01:27.000Z
2021-02-15T22:01:27.000Z
def hw(addr,vaddr,inst): print("Hello, world!") return addr,vaddr
18.5
26
0.648649
11
74
4.363636
0.818182
0.375
0
0
0
0
0
0
0
0
0
0
0.189189
74
3
27
24.666667
0.8
0
0
0
0
0
0.175676
0
0
0
0
0
0
1
0.333333
false
0
0
0
0.666667
0.333333
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
5
357db2db44ce50a2b1b9bec68ff6e072054cb5ac
162
py
Python
forcepush/inputs/__init__.py
wouterrvdb/ForcePush
eec35e01b4e9c283897c8e0febe1378a36ac8583
[ "MIT" ]
null
null
null
forcepush/inputs/__init__.py
wouterrvdb/ForcePush
eec35e01b4e9c283897c8e0febe1378a36ac8583
[ "MIT" ]
6
2018-11-04T19:32:49.000Z
2018-11-11T14:59:28.000Z
forcepush/inputs/__init__.py
wouterrvdb/ForcePush
eec35e01b4e9c283897c8e0febe1378a36ac8583
[ "MIT" ]
1
2018-11-09T15:55:45.000Z
2018-11-09T15:55:45.000Z
from forcepush.logic import player from .input_manager import InputManager input_manager = InputManager() input_manager.register_handler(player.movement_handler)
32.4
55
0.87037
20
162
6.8
0.55
0.264706
0.352941
0
0
0
0
0
0
0
0
0
0.074074
162
5
55
32.4
0.906667
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
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
5
3587b9c770fdc7e846922863731e2ab605ee0ba7
76
py
Python
slack_logging_handler/__init__.py
danie1cohen/slack_handler
33c4a04f4e5f4a6e187dbba8808a41d4a86fc1a5
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
slack_logging_handler/__init__.py
danie1cohen/slack_handler
33c4a04f4e5f4a6e187dbba8808a41d4a86fc1a5
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
slack_logging_handler/__init__.py
danie1cohen/slack_handler
33c4a04f4e5f4a6e187dbba8808a41d4a86fc1a5
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
from .slack_logging_handler import SlackHandler, color_picker, build_logger
38
75
0.881579
10
76
6.3
1
0
0
0
0
0
0
0
0
0
0
0
0.078947
76
1
76
76
0.9
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
35ad7f3991729dbf0b8dc5b6d59394b6fe3d5c0b
25
py
Python
src/test/pythonFiles/definition/three.py
ChaseKnowlden/vscode-jupyter
9bdaf87f0b6dcd717c508e9023350499a6093f97
[ "MIT" ]
615
2020-11-11T22:55:28.000Z
2022-03-30T21:48:08.000Z
src/test/pythonFiles/definition/three.py
ChaseKnowlden/vscode-jupyter
9bdaf87f0b6dcd717c508e9023350499a6093f97
[ "MIT" ]
8,428
2020-11-11T22:06:43.000Z
2022-03-31T23:42:34.000Z
src/test/pythonFiles/definition/three.py
vasili8m/vscode-python
846eee870e8b7bab38172600836faedb5fb80166
[ "MIT" ]
158
2020-11-12T07:49:02.000Z
2022-03-27T20:50:20.000Z
import two two.ct().fun()
12.5
14
0.68
5
25
3.4
0.8
0
0
0
0
0
0
0
0
0
0
0
0.08
25
2
14
12.5
0.73913
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
ea6b563adc4b45d42748a0ee76b24f8473adb6f5
252
py
Python
krankenfinder/preprocessor.py
tuxedocat/ntcir13-medweb
2be52d56b1d57fbbd5b6c7b3b7f5021da56f99d7
[ "MIT" ]
null
null
null
krankenfinder/preprocessor.py
tuxedocat/ntcir13-medweb
2be52d56b1d57fbbd5b6c7b3b7f5021da56f99d7
[ "MIT" ]
null
null
null
krankenfinder/preprocessor.py
tuxedocat/ntcir13-medweb
2be52d56b1d57fbbd5b6c7b3b7f5021da56f99d7
[ "MIT" ]
null
null
null
"""Perform pre-process such as normalization by rules""" import pandas as pd import re import functools def apply_ja(s: str) -> str: return s def _ja_split_sentence(s: str) -> str: return s def _ja_normalize(s: str) -> str: return s
14
56
0.68254
41
252
4.04878
0.536585
0.072289
0.126506
0.23494
0.313253
0.228916
0.228916
0
0
0
0
0
0.218254
252
17
57
14.823529
0.84264
0.198413
0
0.333333
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
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
1
1
1
0
0
5
57616397f5e3530c3130e8d47e20bb3cef6c8712
202
py
Python
lib/matplotlib/tests/test_gridspec.py
jbbrokaw/matplotlib
86ec1b6fc5628bfb2d09797c58d7eed0ca8c2427
[ "MIT", "BSD-3-Clause" ]
113
2015-08-16T22:38:56.000Z
2022-01-27T16:46:09.000Z
lib/matplotlib/tests/test_gridspec.py
yingkailiang/matplotlib
255a79b106c98c1904489afe6a754e4d943179d6
[ "MIT", "BSD-3-Clause" ]
7
2015-05-08T19:36:25.000Z
2015-06-30T15:32:17.000Z
lib/matplotlib/tests/test_gridspec.py
yingkailiang/matplotlib
255a79b106c98c1904489afe6a754e4d943179d6
[ "MIT", "BSD-3-Clause" ]
41
2015-08-16T22:38:28.000Z
2022-01-26T21:21:30.000Z
import matplotlib.gridspec as gridspec from nose.tools import assert_equal def test_equal(): gs = gridspec.GridSpec(2, 1) assert_equal(gs[0, 0], gs[0, 0]) assert_equal(gs[:, 0], gs[:, 0])
22.444444
38
0.673267
33
202
4
0.454545
0.090909
0.19697
0.212121
0
0
0
0
0
0
0
0.048193
0.178218
202
8
39
25.25
0.746988
0
0
0
0
0
0
0
0
0
0
0
0.5
1
0.166667
false
0
0.333333
0
0.5
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
1
0
0
0
0
5
576948986b51fe6e064f72bb52b6b7f07dae284f
202
py
Python
main.py
seunghaekim/achapters003-ggded
a507d941b9ed985e50a3e06a28d67e1a8d305325
[ "MIT" ]
null
null
null
main.py
seunghaekim/achapters003-ggded
a507d941b9ed985e50a3e06a28d67e1a8d305325
[ "MIT" ]
1
2018-05-24T23:36:05.000Z
2018-05-27T15:33:54.000Z
main.py
gtsz-rcp/achapters003-ggded
a507d941b9ed985e50a3e06a28d67e1a8d305325
[ "MIT" ]
null
null
null
import BartlebyMachine.main as bartleby import BartlebyMachine.book as book bartleby = bartleby.Bartleby() bartleby.addTableOfContent('toc.ggded.yaml') bartleby.markdownToLatex() bartleby.writeLatex()
25.25
44
0.831683
22
202
7.636364
0.545455
0.285714
0.285714
0
0
0
0
0
0
0
0
0
0.074257
202
7
45
28.857143
0.898396
0
0
0
0
0
0.069307
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
5
57d1547aa37e3a3af1928de52e11d20cfcd5d2dc
19
py
Python
paraml/localDocker.py
yadudoc/ParaML
17464483c09785068c797b66ac591f01a17150a8
[ "Apache-2.0" ]
null
null
null
paraml/localDocker.py
yadudoc/ParaML
17464483c09785068c797b66ac591f01a17150a8
[ "Apache-2.0" ]
null
null
null
paraml/localDocker.py
yadudoc/ParaML
17464483c09785068c797b66ac591f01a17150a8
[ "Apache-2.0" ]
null
null
null
localDockerIPP = {
9.5
18
0.736842
1
19
14
1
0
0
0
0
0
0
0
0
0
0
0
0.157895
19
1
19
19
0.875
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0
1
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
5
57d89de9b57ef5c17068645713e365ab53e5808d
119
py
Python
home/admin.py
mysteriousCoder9991/To-Do-List-Rahul
fee2fc321ef22893ec51cec630f1d8b7c8c1a0af
[ "CC0-1.0" ]
null
null
null
home/admin.py
mysteriousCoder9991/To-Do-List-Rahul
fee2fc321ef22893ec51cec630f1d8b7c8c1a0af
[ "CC0-1.0" ]
null
null
null
home/admin.py
mysteriousCoder9991/To-Do-List-Rahul
fee2fc321ef22893ec51cec630f1d8b7c8c1a0af
[ "CC0-1.0" ]
null
null
null
from django.contrib import admin from home.models import Task # Register your models here. admin.site.register(Task)
29.75
33
0.798319
18
119
5.277778
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.134454
119
4
34
29.75
0.92233
0.218487
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
57f375490a6904b0b8279a2472dbd0441fea9d0e
61
py
Python
rlgym/envs/__init__.py
syKevinPeng/rocket-league-gym
23b949e7a5a89b384b5e6c06ab6b3d8ca01e35f3
[ "Apache-2.0" ]
63
2021-03-07T00:00:09.000Z
2022-03-27T16:11:26.000Z
rlgym/envs/__init__.py
syKevinPeng/rocket-league-gym
23b949e7a5a89b384b5e6c06ab6b3d8ca01e35f3
[ "Apache-2.0" ]
21
2021-03-12T16:02:30.000Z
2022-03-29T01:59:32.000Z
rlgym/envs/__init__.py
syKevinPeng/rocket-league-gym
23b949e7a5a89b384b5e6c06ab6b3d8ca01e35f3
[ "Apache-2.0" ]
23
2021-03-12T16:04:35.000Z
2022-03-28T15:49:24.000Z
from .environment import Environment from .match import Match
30.5
36
0.852459
8
61
6.5
0.5
0
0
0
0
0
0
0
0
0
0
0
0.114754
61
2
37
30.5
0.962963
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
17e07cc092c05af6e9d91ddb9ee809cea8352925
25
py
Python
jtracker/__init__.py
jthub/jt-cli
dff134b8ce7102bc11c0bb64e4a2cb510ebaedd0
[ "Apache-2.0" ]
2
2018-12-13T01:09:34.000Z
2020-02-04T13:31:34.000Z
jtracker/__init__.py
jtracker-io/jt-cli
dff134b8ce7102bc11c0bb64e4a2cb510ebaedd0
[ "Apache-2.0" ]
36
2018-04-20T20:50:03.000Z
2019-02-27T04:39:03.000Z
jtracker/__init__.py
jthub/jt-cli
dff134b8ce7102bc11c0bb64e4a2cb510ebaedd0
[ "Apache-2.0" ]
1
2018-09-24T18:50:38.000Z
2018-09-24T18:50:38.000Z
__version__ = '0.2.0a33'
12.5
24
0.68
4
25
3.25
1
0
0
0
0
0
0
0
0
0
0
0.227273
0.12
25
1
25
25
0.363636
0
0
0
0
0
0.32
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
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
aa0d21e167fcae5137ecd9fc28f7b2d904820f48
50
py
Python
thresh/__main__.py
06f7b1afdb2a4801b0dbde6635f227b7/thresh
0de63f46c65061b2a8a71b4ce9596dc0bc2e4b62
[ "MIT" ]
null
null
null
thresh/__main__.py
06f7b1afdb2a4801b0dbde6635f227b7/thresh
0de63f46c65061b2a8a71b4ce9596dc0bc2e4b62
[ "MIT" ]
6
2021-08-05T16:39:48.000Z
2022-02-01T20:55:13.000Z
thresh/__main__.py
06f7b1afdb2a4801b0dbde6635f227b7/thresh
0de63f46c65061b2a8a71b4ce9596dc0bc2e4b62
[ "MIT" ]
null
null
null
import sys from . import main main(sys.argv[1:])
10
18
0.7
9
50
3.888889
0.666667
0
0
0
0
0
0
0
0
0
0
0.02381
0.16
50
4
19
12.5
0.809524
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
aa29f8ac9599baf866d35eab52faeed2193075e3
1,422
py
Python
tests/pages/login_page.py
Schveitzer/selenium-python-bdd-behave-example
2dc16006a27565b2aac3712292f4449f8d162c7d
[ "Apache-2.0" ]
null
null
null
tests/pages/login_page.py
Schveitzer/selenium-python-bdd-behave-example
2dc16006a27565b2aac3712292f4449f8d162c7d
[ "Apache-2.0" ]
null
null
null
tests/pages/login_page.py
Schveitzer/selenium-python-bdd-behave-example
2dc16006a27565b2aac3712292f4449f8d162c7d
[ "Apache-2.0" ]
null
null
null
from selenium.webdriver.common.by import By from browser import Driver class LoginPage(Driver): instance = None @classmethod def get_instance(cls): if cls.instance is None: cls.instance = LoginPage() return cls.instance def open(self, context): self.driver.get(context.baseUrl) def button_login(self): return self.driver.find_element(By.CLASS_NAME, "login") def input_email(self): return self.driver.find_element(By.ID, "email") def input_password(self): return self.driver.find_element(By.ID, "passwd") def button_submit_login(self): return self.driver.find_element(By.ID, "SubmitLogin") def welcome_message(self): return self.driver.find_element(By.CLASS_NAME, "info-account") def invalid_credentials_message(self): return self.driver.find_element(By.XPATH, "//li[text() ='Authentication failed.']") def button_sign_in_out(self): return self.driver.find_element(By.XPATH, "//a[contains(@class, 'log')]") def user_name(self): return self.driver.find_element(By.XPATH, "//div[@class='header_user_info']//span") def login(self, user, password): self.button_login().click() self.input_email().send_keys(user) self.input_password().send_keys(password) self.button_submit_login().click() LOGIN_PAGE = LoginPage.get_instance()
28.44
91
0.675105
186
1,422
4.978495
0.322581
0.097192
0.12095
0.172786
0.353132
0.353132
0.353132
0.353132
0.090713
0
0
0
0.199015
1,422
49
92
29.020408
0.812994
0
0
0
0
0
0.100563
0.026723
0
0
0
0
0
1
0.333333
false
0.121212
0.060606
0.242424
0.727273
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
1
1
0
0
5
a4e6a36cee74410d3434b518573a4496b1ab3d6c
60
py
Python
extlibs/freetype-2.5.2/src/tools/docmaker/PaxHeaders.20920/docmaker.py
halak/bibim
ad01efa8aac4f074f64bf033ac0f1ed382060334
[ "curl" ]
3
2016-08-28T06:48:11.000Z
2019-12-04T13:04:34.000Z
extlibs/freetype-2.5.2/src/tools/docmaker/PaxHeaders.20920/docmaker.py
Darkttd/Bibim
9dec24529ef89536f7686abc1245ea5fc7fa9474
[ "curl" ]
8
2016-04-24T13:07:28.000Z
2016-06-01T10:04:42.000Z
extlibs/freetype-2.5.2/src/tools/docmaker/PaxHeaders.20920/docmaker.py
Darkttd/Bibim
9dec24529ef89536f7686abc1245ea5fc7fa9474
[ "curl" ]
1
2016-08-28T06:47:43.000Z
2016-08-28T06:47:43.000Z
30 atime=1386526222.135502298 30 ctime=1374498496.154314241
20
29
0.866667
8
60
6.5
0.875
0
0
0
0
0
0
0
0
0
0
0.75
0.066667
60
2
30
30
0.178571
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
5
35133e39ad8476010c0652e630f94dbcd18b6e2b
54
py
Python
Q07__/43_Network_Delay_Time/test.py
hsclinical/leetcode
48a57f6a5d5745199c5685cd2c8f5c4fa293e54a
[ "Apache-2.0" ]
null
null
null
Q07__/43_Network_Delay_Time/test.py
hsclinical/leetcode
48a57f6a5d5745199c5685cd2c8f5c4fa293e54a
[ "Apache-2.0" ]
null
null
null
Q07__/43_Network_Delay_Time/test.py
hsclinical/leetcode
48a57f6a5d5745199c5685cd2c8f5c4fa293e54a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python from Solution import MyCalendarTwo
13.5
34
0.796296
7
54
6.142857
1
0
0
0
0
0
0
0
0
0
0
0
0.111111
54
3
35
18
0.895833
0.296296
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
3516ad3e70ac774ed75d96040bd3b9889e3a12c0
131
py
Python
todo/admin.py
fidele000/Ftodo-RestAPI-Django
8c695503e04a3957920910acb9f1bb823ece4287
[ "MIT" ]
null
null
null
todo/admin.py
fidele000/Ftodo-RestAPI-Django
8c695503e04a3957920910acb9f1bb823ece4287
[ "MIT" ]
null
null
null
todo/admin.py
fidele000/Ftodo-RestAPI-Django
8c695503e04a3957920910acb9f1bb823ece4287
[ "MIT" ]
null
null
null
from todo.models import UserProfile from django.contrib import admin # Register your models here. admin.site.register(UserProfile)
26.2
35
0.832061
18
131
6.055556
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.10687
131
5
36
26.2
0.931624
0.198473
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
352a69ff2eb811c23b55800b5a443be651f4e339
135
py
Python
igramscraper/endpoints/instagram_query_id.py
a7t0fwa7/instagram-scraper
9d21fbaed8099a0deffcd1a7b874ce47ababa52e
[ "MIT" ]
1
2021-09-26T05:42:13.000Z
2021-09-26T05:42:13.000Z
igramscraper/endpoints/instagram_query_id.py
a7t0fwa7/instagram-scraper
9d21fbaed8099a0deffcd1a7b874ce47ababa52e
[ "MIT" ]
null
null
null
igramscraper/endpoints/instagram_query_id.py
a7t0fwa7/instagram-scraper
9d21fbaed8099a0deffcd1a7b874ce47ababa52e
[ "MIT" ]
null
null
null
class InstagramQueryId: USER_MEDIAS = '17880160963012870' USER_STORIES = '17890626976041463' STORIES = '17873473675158481'
27
38
0.755556
10
135
10
0.8
0
0
0
0
0
0
0
0
0
0
0.455357
0.17037
135
4
39
33.75
0.4375
0
0
0
0
0
0.377778
0
0
0
0
0
0
1
0
false
0
0
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
5
103ec40d55831f26c6b9c3ac87ff716f619e26dc
236
py
Python
kafka_streamer/topic/datatype/byte.py
sam-mosleh/kafka-streamer
be977af192b33a335b42af0a42ad05d9f3f9fef4
[ "BSD-3-Clause" ]
1
2020-06-26T00:10:05.000Z
2020-06-26T00:10:05.000Z
kafka_streamer/topic/datatype/byte.py
sam-mosleh/kafka-streamer
be977af192b33a335b42af0a42ad05d9f3f9fef4
[ "BSD-3-Clause" ]
null
null
null
kafka_streamer/topic/datatype/byte.py
sam-mosleh/kafka-streamer
be977af192b33a335b42af0a42ad05d9f3f9fef4
[ "BSD-3-Clause" ]
null
null
null
from typing import Optional from .base import KafkaDataType class ByteDataType(KafkaDataType): def deserialize(self, data: bytes) -> bytes: return data def serialize(self, data: Optional[bytes]): return data
19.666667
48
0.70339
27
236
6.148148
0.555556
0.096386
0.180723
0
0
0
0
0
0
0
0
0
0.220339
236
11
49
21.454545
0.902174
0
0
0.285714
0
0
0
0
0
0
0
0
0
1
0.285714
false
0
0.285714
0.285714
1
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
5
1067b5d0da1317c7679814711426930674ccd440
137
py
Python
bsc/config/configuration.py
simao-ferreira/bscscan-wrapper
33b860ab55f8e880d90dd4cb5db790db0f22b84c
[ "BSD-3-Clause" ]
null
null
null
bsc/config/configuration.py
simao-ferreira/bscscan-wrapper
33b860ab55f8e880d90dd4cb5db790db0f22b84c
[ "BSD-3-Clause" ]
null
null
null
bsc/config/configuration.py
simao-ferreira/bscscan-wrapper
33b860ab55f8e880d90dd4cb5db790db0f22b84c
[ "BSD-3-Clause" ]
null
null
null
from bsc.config.helper import get_key_from_file ADDRESS = get_key_from_file('address.json') API_KEY = get_key_from_file('api_key.json')
27.4
47
0.817518
25
137
4.04
0.44
0.178218
0.29703
0.415842
0.415842
0
0
0
0
0
0
0
0.080292
137
4
48
34.25
0.801587
0
0
0
0
0
0.175182
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
1
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
5
10a59d839641483a089d7fcfefaea880293af369
65
py
Python
nexuscasc/api/endpoint/__init__.py
vjda/nexus3-casc-cli
6d33503c19f75b73b656293141911e083331faf0
[ "MIT" ]
7
2020-06-30T08:15:53.000Z
2022-03-22T10:28:09.000Z
nexuscasc/api/endpoint/__init__.py
vjda/nexus3-casc-cli
6d33503c19f75b73b656293141911e083331faf0
[ "MIT" ]
1
2021-09-27T03:24:46.000Z
2021-09-27T03:24:46.000Z
nexuscasc/api/endpoint/__init__.py
vjda/nexus3-casc-cli
6d33503c19f75b73b656293141911e083331faf0
[ "MIT" ]
1
2020-12-07T14:55:30.000Z
2020-12-07T14:55:30.000Z
from .script import Script from .status_check import CheckStatus
21.666667
37
0.846154
9
65
6
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.123077
65
2
38
32.5
0.947368
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
10aceb85cff7e8a2d7e82c1b99b8992c37d08654
1,205
py
Python
wikipedia_parser/wikipedia_api/urls.py
ojones/wikipedia_parser
db548290fbc392299bba8adfda9fe18baa1e66fe
[ "MIT" ]
9
2016-02-24T20:09:26.000Z
2019-03-10T11:33:34.000Z
wikipedia_parser/wikipedia_api/urls.py
ojones/wikipedia_parser
db548290fbc392299bba8adfda9fe18baa1e66fe
[ "MIT" ]
1
2019-02-13T17:38:50.000Z
2019-02-13T17:38:50.000Z
wikipedia_parser/wikipedia_api/urls.py
ojones/wikipedia_parser
db548290fbc392299bba8adfda9fe18baa1e66fe
[ "MIT" ]
1
2016-04-05T05:28:51.000Z
2016-04-05T05:28:51.000Z
ENDPOINT = "https://en.wikipedia.org/w/api.php" def make_url(id, is_expanded=False, is_html=False): # TODO: isdigit is not robust enough, title could be number instead of string return make_id_url(id, is_expanded, is_html) if str(id).isdigit() else make_title_url(id, is_expanded, is_html) def make_title_url(id, is_expanded=False, is_html=False): url = ENDPOINT + "?action=query&titles=" + url_safe_spaces(str(id)) + "&prop=revisions|pageprops&rvprop=content&format=json" if is_expanded: url += "&rvexpandtemplates" if is_html: url = ENDPOINT + "?format=json&rvprop=content&prop=revisions&rvparse=&titles=" + url_safe_spaces(str(id)) + "&rvlimit=1&action=query" return url def make_id_url(id, is_expanded=False, is_html=False): url = ENDPOINT + "?action=query&pageids=" + url_safe_spaces(str(id)) + "&prop=revisions|pageprops&rvprop=content&format=json" if is_expanded: url += "&rvexpandtemplates" if is_html: url = ENDPOINT + "?format=json&rvprop=content&prop=revisions&rvparse=&pageids=" + url_safe_spaces(str(id)) + "&rvlimit=1&action=query" return url def url_safe_spaces(text): return text.replace(" ", "%20")
35.441176
142
0.701245
176
1,205
4.613636
0.295455
0.086207
0.043103
0.092365
0.796798
0.796798
0.676108
0.676108
0.637931
0.637931
0
0.003933
0.156017
1,205
34
143
35.441176
0.794494
0.062241
0
0.421053
0
0
0.341895
0.276351
0
0
0
0.029412
0
1
0.210526
false
0
0
0.105263
0.421053
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
1
0
0
0
1
0
0
0
5
52b3b7d2476e1996684985e7139f6cd3c88d823e
1,958
py
Python
tests/integration_tests/test_integration.py
VladSkripniuk/optuna
81d5b67a81ae14d606e6d6120ce50d02e90b0942
[ "MIT" ]
2
2020-05-04T11:26:02.000Z
2020-07-18T12:59:58.000Z
tests/integration_tests/test_integration.py
VladSkripniuk/optuna
81d5b67a81ae14d606e6d6120ce50d02e90b0942
[ "MIT" ]
2
2020-02-13T01:05:40.000Z
2020-03-12T08:19:02.000Z
tests/integration_tests/test_integration.py
VladSkripniuk/optuna
81d5b67a81ae14d606e6d6120ce50d02e90b0942
[ "MIT" ]
1
2020-12-25T03:27:26.000Z
2020-12-25T03:27:26.000Z
import pytest def test_import(): # type: () -> None from optuna.integration import chainer # NOQA from optuna.integration import chainermn # NOQA from optuna.integration import keras # NOQA from optuna.integration import lightgbm # NOQA from optuna.integration import mxnet # NOQA from optuna.integration import tensorflow # NOQA from optuna.integration import xgboost # NOQA from optuna.integration import ChainerMNStudy # NOQA from optuna.integration import ChainerPruningExtension # NOQA from optuna.integration import KerasPruningCallback # NOQA from optuna.integration import LightGBMPruningCallback # NOQA from optuna.integration import MXNetPruningCallback # NOQA from optuna.integration import TensorFlowPruningHook # NOQA from optuna.integration import XGBoostPruningCallback # NOQA with pytest.raises(ImportError): from optuna.integration import unknown_module # type: ignore # NOQA def test_module_attributes(): # type: () -> None import optuna assert hasattr(optuna.integration, 'chainer') assert hasattr(optuna.integration, 'chainermn') assert hasattr(optuna.integration, 'keras') assert hasattr(optuna.integration, 'lightgbm') assert hasattr(optuna.integration, 'mxnet') assert hasattr(optuna.integration, 'tensorflow') assert hasattr(optuna.integration, 'xgboost') assert hasattr(optuna.integration, 'ChainerMNStudy') assert hasattr(optuna.integration, 'ChainerPruningExtension') assert hasattr(optuna.integration, 'KerasPruningCallback') assert hasattr(optuna.integration, 'LightGBMPruningCallback') assert hasattr(optuna.integration, 'MXNetPruningCallback') assert hasattr(optuna.integration, 'TensorFlowPruningHook') assert hasattr(optuna.integration, 'XGBoostPruningCallback') with pytest.raises(AttributeError): optuna.integration.unknown_attribute # type: ignore
39.959184
76
0.754341
192
1,958
7.666667
0.182292
0.346467
0.213995
0.275136
0.273777
0
0
0
0
0
0
0
0.171093
1,958
48
77
40.791667
0.906962
0.068948
0
0
0
0
0.107598
0.049362
0
0
0
0
0.388889
1
0.055556
true
0
0.527778
0
0.583333
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
1
0
0
0
0
5
52e3594a58274b46e9c615d5967c562314c20380
153
py
Python
test_scripts/ns_instance/get_one.py
lremember/VFC
837559db1396091811382359100bfc60e1aab5b2
[ "MIT" ]
1
2019-10-10T00:52:18.000Z
2019-10-10T00:52:18.000Z
test_scripts/ns_instance/get_one.py
lremember/VFC-Files
837559db1396091811382359100bfc60e1aab5b2
[ "MIT" ]
null
null
null
test_scripts/ns_instance/get_one.py
lremember/VFC-Files
837559db1396091811382359100bfc60e1aab5b2
[ "MIT" ]
null
null
null
import requests resp = requests.get('http://10.12.5.131:30280/api/nslcm/v1/ns/caaed655-8eee-47eb-8649-7fbef4e8fb29') print resp.status_code, resp.json()
38.25
100
0.771242
26
153
4.5
0.884615
0
0
0
0
0
0
0
0
0
0
0.2
0.052288
153
3
101
51
0.606897
0
0
0
0
0.333333
0.503268
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
1
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
5
52f49701388b6b4f72ce4fe637bdc70d2f6aa455
129
py
Python
try1/libs/__init__.py
kiranscaria/structure_knowledge_distillation
73a266fe44bc7fc3a110d3ed07dee2374ea953c6
[ "MIT" ]
null
null
null
try1/libs/__init__.py
kiranscaria/structure_knowledge_distillation
73a266fe44bc7fc3a110d3ed07dee2374ea953c6
[ "MIT" ]
null
null
null
try1/libs/__init__.py
kiranscaria/structure_knowledge_distillation
73a266fe44bc7fc3a110d3ed07dee2374ea953c6
[ "MIT" ]
null
null
null
from .bn import ABN from .misc import GlobalAvgPool2d from .residual import IdentityResidualBlock from .dense import DenseModule
25.8
43
0.844961
16
129
6.8125
0.625
0
0
0
0
0
0
0
0
0
0
0.00885
0.124031
129
4
44
32.25
0.955752
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
52f72a57c0cdea9c69cc5c0d491e67325ac421a7
117
py
Python
src/dbxdeploy/deploy/WorkingDirFactory.py
DataSentics/dbx-deploy
c019d80a2b947b4f180071e97c3981daa3a2214a
[ "MIT" ]
null
null
null
src/dbxdeploy/deploy/WorkingDirFactory.py
DataSentics/dbx-deploy
c019d80a2b947b4f180071e97c3981daa3a2214a
[ "MIT" ]
null
null
null
src/dbxdeploy/deploy/WorkingDirFactory.py
DataSentics/dbx-deploy
c019d80a2b947b4f180071e97c3981daa3a2214a
[ "MIT" ]
null
null
null
import os from pathlib import Path class WorkingDirFactory: def create(self): return Path(os.getcwd())
14.625
32
0.700855
15
117
5.466667
0.8
0
0
0
0
0
0
0
0
0
0
0
0.222222
117
7
33
16.714286
0.901099
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.4
0.2
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
1
1
0
0
5
5e151f5a4b526e74d5d8279d8292b3fb3210acb6
594
py
Python
core/Logo.py
LeafyIsHereZ/G_O_D
667a001100ec286efac268e4f0235250f1542a32
[ "MIT" ]
null
null
null
core/Logo.py
LeafyIsHereZ/G_O_D
667a001100ec286efac268e4f0235250f1542a32
[ "MIT" ]
null
null
null
core/Logo.py
LeafyIsHereZ/G_O_D
667a001100ec286efac268e4f0235250f1542a32
[ "MIT" ]
null
null
null
def Logo(): print(""" ____________________ ______________ ____________ | | | | | @ | ____________| | ______ | | _______. # | | | | | | | | | # | | __________ | | | | | | | # | | | | | | | | | | | $ | | | | | | | | | | | $ | | ------| | | | | | | | | # | |________| | | ------ | | |______| @ |__________________| |____________| |__________@ """)
39.6
56
0.247475
3
594
4
1
0
0
0
0
0
0
0
0
0
0
0
0.570707
594
14
57
42.428571
0.047059
0
0
0.153846
0
0
0.948276
0
0
0
0
0
0
1
0.076923
true
0
0
0
0.076923
0.076923
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
1
0
0
0
0
0
1
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
5e160674c50f046023b3a4eb35da72229245fa05
257
py
Python
novaplaylist/scrapers/__init__.py
gtnx/nova-playlist
5f6a9eb615efa3852bb8dd8625baf5d498a0f576
[ "WTFPL" ]
null
null
null
novaplaylist/scrapers/__init__.py
gtnx/nova-playlist
5f6a9eb615efa3852bb8dd8625baf5d498a0f576
[ "WTFPL" ]
null
null
null
novaplaylist/scrapers/__init__.py
gtnx/nova-playlist
5f6a9eb615efa3852bb8dd8625baf5d498a0f576
[ "WTFPL" ]
null
null
null
# -*- coding: utf-8 -*- from Scraper import Scraper from FipScraper import FipScraper from NovaScraper import NovaScraper from OuiScraper import OuiScraper from NostalgieScraper import NostalgieScraper from RadioparadiseScraper import RadioparadiseScraper
28.555556
53
0.848249
27
257
8.074074
0.407407
0
0
0
0
0
0
0
0
0
0
0.004405
0.116732
257
8
54
32.125
0.955947
0.081712
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
5e296bd2b064fbc105b7b939b7a1d7f794117e67
83
py
Python
MicroPython/esptool-master/espressif/efuse/esp32s2/__init__.py
hu-tianyi/AuTrix
4058cfba6d2d96b6a3f6b6564c0a85c855e57fa9
[ "MIT" ]
1
2021-11-06T23:42:36.000Z
2021-11-06T23:42:36.000Z
MicroPython/esptool-master/espressif/efuse/esp32s2/__init__.py
hu-tianyi/AuTrix
4058cfba6d2d96b6a3f6b6564c0a85c855e57fa9
[ "MIT" ]
null
null
null
MicroPython/esptool-master/espressif/efuse/esp32s2/__init__.py
hu-tianyi/AuTrix
4058cfba6d2d96b6a3f6b6564c0a85c855e57fa9
[ "MIT" ]
null
null
null
from .fields import EspEfuses # noqa: F401 from . import operations # noqa: F401
27.666667
43
0.73494
11
83
5.545455
0.636364
0.262295
0
0
0
0
0
0
0
0
0
0.089552
0.192771
83
2
44
41.5
0.820896
0.253012
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
ead67aa7abbd443c7e2ef49fa4762ad5b95c79ee
538
py
Python
options/model_options/__init__.py
chorseng/UMD
680681fea76abcea02ff5f351727bcbb468c372a
[ "MIT" ]
48
2019-05-12T08:42:55.000Z
2022-03-15T07:54:40.000Z
options/model_options/__init__.py
chorseng/UMD
680681fea76abcea02ff5f351727bcbb468c372a
[ "MIT" ]
6
2019-09-14T14:46:57.000Z
2021-07-10T02:22:34.000Z
options/model_options/__init__.py
chorseng/UMD
680681fea76abcea02ff5f351727bcbb468c372a
[ "MIT" ]
11
2019-09-12T03:46:42.000Z
2021-10-03T17:43:39.000Z
from .context_encoder_options import ContextEncoderOption from .image_encoder_options import ImageEncoderOption, ContextImageEncoderOption, ProductImageEncoderOption from .mfb_fusion_options import MFBFusionOption, ContextMFBFusionOption, ContextAttentionMFBFusionOption, \ ProductMFBFusionOption, ProductAttentionMFBFusionOption from .similarity_options import SimilarityOption from .text_decoder_options import TextDecoderOption from .text_encoder_options import TextEncoderOption, ContextTextEncoderOption, ProductTextEncoderOption
76.857143
107
0.905204
43
538
11.069767
0.581395
0.163866
0.12605
0
0
0
0
0
0
0
0
0
0.066915
538
7
108
76.857143
0.948207
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.857143
0
0.857143
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
d821a4cc590fae800886dae3e51beb40d1ac06d0
6,403
py
Python
tests/test_boundary.py
denisvasilik/binalyzer-template-provider
a9973ade3999fefea0420dac916733365d1cd924
[ "MIT" ]
null
null
null
tests/test_boundary.py
denisvasilik/binalyzer-template-provider
a9973ade3999fefea0420dac916733365d1cd924
[ "MIT" ]
null
null
null
tests/test_boundary.py
denisvasilik/binalyzer-template-provider
a9973ade3999fefea0420dac916733365d1cd924
[ "MIT" ]
null
null
null
""" test_boundary ~~~~~~~~~~~~~ This module implements tests related to a template's boundary. A boundary attribute influences the following attributes: * Offset of current template * Absolute address of current template * Size of current template * Size of parent template NOTE: The current template is the template where the boundary is declared. """ import io from binalyzer_core import Binalyzer, Template, ValueProperty from binalyzer_template_provider import XMLTemplateParser def test_boundary_attribute(): template = XMLTemplateParser( """ <template boundary="0x800"></template> """ ).parse() assert isinstance(template, Template) assert isinstance(template.boundary_property, ValueProperty) assert template.offset == 0 assert template.boundary == 0x800 assert template.size == 0 def test_boundary_attribute_nested(): template = XMLTemplateParser( """ <template boundary="0x200"> <template boundary="0x100"> <field size="1"></field> </template> </template> """ ).parse() assert template.absolute_address == 0 assert template.offset == 0 assert template.size == 0x200 assert template.children[0].absolute_address == 0 assert template.children[0].offset == 0 assert template.children[0].size == 0x100 def test_boundary_attribute_nested_with_inner_element_having_greater_boundary(): template = XMLTemplateParser( """ <template boundary="0x200"> <template boundary="0x500"> <field name="field" size="1"> </field> </template> </template> """ ).parse() assert template.absolute_address == 0 assert template.offset == 0 assert template.size == 0x600 assert template.children[0].absolute_address == 0 assert template.children[0].offset == 0 assert template.children[0].size == 0x500 def test_boundary_attribute_with_offset(): template = XMLTemplateParser( """ <template offset="0x20" boundary="0x100"> </template> """ ).parse() assert isinstance(template, Template) assert isinstance(template.boundary_property, ValueProperty) assert template.offset == 256 assert template.size == 0 def test_boundary_attribute_with_offset_and_child(): template = XMLTemplateParser( """ <template offset="0x20" boundary="0x100"> <field size="1"></field> </template> """ ).parse() assert isinstance(template, Template) assert isinstance(template.boundary_property, ValueProperty) assert template.offset == 256 assert template.size == 256 def test_boundary_attribute_with_parent_offset_on_boundary(): template = XMLTemplateParser( """ <template> <layout name="layout" offset="0x200"> <area name="area" boundary="0x200"> <field name="field" size="1"></field> </area> </layout> </template> """ ).parse() assert template.layout.area.absolute_address == 0x200 assert template.layout.offset == 0x200 assert template.layout.area.offset == 0x0 assert template.layout.area.boundary == 0x200 assert template.layout.area.size == 0x200 def test_boundary_attribute_with_parent_offset_besides_boundary(): template = XMLTemplateParser( """ <template> <layout name="layout" offset="0x300"> <area name="area" boundary="0x200"> <field name="field" size="1"></field> </area> </layout> </template>""" ).parse() assert template.layout.offset == 0x300 assert template.layout.area.offset == 0x100 assert template.layout.area.absolute_address == 0x400 assert template.layout.area.boundary == 0x200 assert template.layout.area.size == 0x200 def test_boundary_attribute_with_parent_offset_besides_boundary_and_nested(): template = XMLTemplateParser( """ <template> <layout name="layout" offset="0x300"> <area name="area" boundary="0x200"> <field name="field" boundary="0x100"> <field name="nested_field" size="1"></field> </field> </area> </layout> </template> """ ).parse() assert template.layout.area.absolute_address == 0x400 assert template.layout.area.offset == 0x100 assert template.layout.area.size == 0x200 assert template.layout.area.field.size == 0x100 assert template.layout.area.field.offset == 0x0 def test_boundary_and_sizing_stretch(): template = XMLTemplateParser( """ <template boundary="0x100"> <header name="header" size="4"> </header> <payload name="payload" sizing="stretch"> </payload> </template> """ ).parse() binalyzer = Binalyzer(template) binalyzer.data = io.BytesIO(bytes([0x01] * binalyzer.template.size)) binalyzer.template.header.value = bytes([0x02] * 4) assert binalyzer.template.payload.size == 252 assert binalyzer.template.size == 256 assert binalyzer.template.header.size == 4 assert binalyzer.template.header.value == bytes([0x02] * 4) assert binalyzer.template.payload.value == bytes([0x01] * 252) def test_boundary_and_sizing_stretch_with_offset(): template = XMLTemplateParser( """ <template offset="0x20" boundary="0x100"> <header name="header" size="4"> </header> <payload name="payload" sizing="stretch"> </payload> </template> """ ).parse() binalyzer = Binalyzer(template) binalyzer.template.header.value = bytes([0x02] * 4) binalyzer.template.payload.value = bytes([0x01] * binalyzer.template.payload.size) assert binalyzer.template.offset == 256 assert binalyzer.template.size == 256 assert binalyzer.template.header.size == 4 assert binalyzer.template.header.value == bytes([0x02] * 4) assert binalyzer.template.payload.offset == 4 assert binalyzer.template.payload.size == 252 assert binalyzer.template.payload.value == bytes( [0x01] * binalyzer.template.payload.size )
32.015
86
0.63111
651
6,403
6.096774
0.121352
0.119929
0.075586
0.078609
0.816075
0.771227
0.738725
0.667423
0.634417
0.604434
0
0.048364
0.25082
6,403
199
87
32.175879
0.779029
0.054193
0
0.645161
0
0
0
0
0
0
0.031326
0
0.55914
1
0.107527
false
0
0.032258
0
0.139785
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
1
0
0
0
0
0
0
0
0
0
5
dc53e3f9dfad954addff39dc5a7d2f1309f21e08
22
py
Python
venv/lib/python3.6/site-packages/mypy/version.py
humphrey-mutuma/Awards
4d5c934d503cdcb5466e7a345c57bfd62fb3c90f
[ "MIT" ]
2
2022-01-21T12:51:19.000Z
2022-01-21T12:51:30.000Z
venv/lib/python3.6/site-packages/mypy/version.py
humphrey-mutuma/Awards
4d5c934d503cdcb5466e7a345c57bfd62fb3c90f
[ "MIT" ]
4
2021-03-19T03:30:10.000Z
2021-09-08T01:16:55.000Z
venv/lib/python3.6/site-packages/mypy/version.py
humphrey-mutuma/Awards
4d5c934d503cdcb5466e7a345c57bfd62fb3c90f
[ "MIT" ]
2
2020-12-28T13:41:55.000Z
2021-01-21T10:07:47.000Z
__version__ = "0.720"
11
21
0.681818
3
22
3.666667
1
0
0
0
0
0
0
0
0
0
0
0.210526
0.136364
22
1
22
22
0.368421
0
0
0
0
0
0.227273
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
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
dc5ed786732e65b5efb0db8a93d4913290b8f307
172
py
Python
blogapp/admin.py
melodyPereira05/ShopStop
acb37841858e4861fab0bce09f85d4406ef6b8a4
[ "MIT" ]
null
null
null
blogapp/admin.py
melodyPereira05/ShopStop
acb37841858e4861fab0bce09f85d4406ef6b8a4
[ "MIT" ]
null
null
null
blogapp/admin.py
melodyPereira05/ShopStop
acb37841858e4861fab0bce09f85d4406ef6b8a4
[ "MIT" ]
null
null
null
from django.contrib import admin # Register your models here. from .models import BlogModel, CommentModel admin.site.register(BlogModel) admin.site.register(CommentModel)
24.571429
43
0.825581
22
172
6.454545
0.545455
0.126761
0.239437
0
0
0
0
0
0
0
0
0
0.098837
172
6
44
28.666667
0.916129
0.151163
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
dc7c74837ce3eb08e9619d0d93cf6e4abd8b8fd5
22
py
Python
Assingments/module03/week04/monday/sulfaroa.inclass.py
tonysulfaro/MI-250
e746fd261107531e100a5cb98d6b6c90bd9234d8
[ "MIT" ]
null
null
null
Assingments/module03/week04/monday/sulfaroa.inclass.py
tonysulfaro/MI-250
e746fd261107531e100a5cb98d6b6c90bd9234d8
[ "MIT" ]
null
null
null
Assingments/module03/week04/monday/sulfaroa.inclass.py
tonysulfaro/MI-250
e746fd261107531e100a5cb98d6b6c90bd9234d8
[ "MIT" ]
null
null
null
# stuff for something
11
21
0.772727
3
22
5.666667
1
0
0
0
0
0
0
0
0
0
0
0
0.181818
22
1
22
22
0.944444
0.863636
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
dc92fa0eda88058bb9d83ab728e13719297dfbe3
35
py
Python
HMongo/__init__.py
dominon12/HMongo
aff7db62e46cc45e564a29a117824975942978e2
[ "CC0-1.0" ]
1
2020-08-02T07:31:50.000Z
2020-08-02T07:31:50.000Z
HMongo/__init__.py
dominon12/HMongo
aff7db62e46cc45e564a29a117824975942978e2
[ "CC0-1.0" ]
null
null
null
HMongo/__init__.py
dominon12/HMongo
aff7db62e46cc45e564a29a117824975942978e2
[ "CC0-1.0" ]
null
null
null
from HMongo.MongoDB import MongoDB
17.5
34
0.857143
5
35
6
0.8
0
0
0
0
0
0
0
0
0
0
0
0.114286
35
1
35
35
0.967742
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
dcbb8cb2478540133f6b1a2720ac246d6b20c32d
255
py
Python
peek/api/authentication.py
and3rson/notez
7476e098d40c7d4e20c2d79e8b45667dbbde6082
[ "MIT" ]
1
2017-07-02T12:46:54.000Z
2017-07-02T12:46:54.000Z
peek/api/authentication.py
and3rson/notez
7476e098d40c7d4e20c2d79e8b45667dbbde6082
[ "MIT" ]
null
null
null
peek/api/authentication.py
and3rson/notez
7476e098d40c7d4e20c2d79e8b45667dbbde6082
[ "MIT" ]
null
null
null
from rest_framework.authentication import SessionAuthentication class CSRFExemptSessionAuthentication(SessionAuthentication): def enforce_csrf(self, request): # pragma: no cover return # To not perform the CSRF check previously happening
36.428571
69
0.8
26
255
7.769231
0.923077
0
0
0
0
0
0
0
0
0
0
0
0.156863
255
6
70
42.5
0.939535
0.262745
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.25
0.25
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
5
76127eed5a686b9c30dc04c37376bd395ac9caaf
142
py
Python
idm_lp/database/chat_enter.py
lper1/dgm-.
aae14b2758b220f42030745bb941e7012bf77ae2
[ "MIT" ]
47
2020-09-15T11:13:35.000Z
2022-03-30T06:37:52.000Z
idm_lp/database/chat_enter.py
lper1/dgm-.
aae14b2758b220f42030745bb941e7012bf77ae2
[ "MIT" ]
2
2020-10-27T15:30:33.000Z
2020-11-14T16:50:01.000Z
idm_lp/database/chat_enter.py
lper1/dgm-.
aae14b2758b220f42030745bb941e7012bf77ae2
[ "MIT" ]
111
2020-09-27T20:06:42.000Z
2022-03-19T20:29:29.000Z
from typing import Optional from pydantic import BaseModel class ChatEnterModel(BaseModel): peer_id: int hello_text: Optional[str]
15.777778
32
0.774648
18
142
6
0.777778
0
0
0
0
0
0
0
0
0
0
0
0.176056
142
8
33
17.75
0.923077
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.4
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
520f2a8f274bb0fff4806a118a0c101786198a4b
96
py
Python
zisan/Seg/davisinteractive/metrics/__init__.py
JintuZheng/zisan
84b30d1ee91754d4351841a2077c78146028adfc
[ "MIT" ]
40
2020-02-14T07:03:16.000Z
2022-03-07T10:52:18.000Z
zisan/Seg/davisinteractive/metrics/__init__.py
EpsilionJT/zisan
84b30d1ee91754d4351841a2077c78146028adfc
[ "MIT" ]
1
2021-09-04T07:40:26.000Z
2021-09-04T14:51:03.000Z
zisan/Seg/davisinteractive/metrics/__init__.py
EpsilionJT/zisan
84b30d1ee91754d4351841a2077c78146028adfc
[ "MIT" ]
9
2020-02-24T01:08:11.000Z
2021-12-15T07:35:14.000Z
from __future__ import absolute_import from .jaccard import batched_f_measure, batched_jaccard
24
55
0.875
13
96
5.846154
0.615385
0
0
0
0
0
0
0
0
0
0
0
0.104167
96
3
56
32
0.883721
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
5216901ab920cfa98a2cc8b0e1c1f3e8773d9e1b
178
py
Python
dmarc_reporting/__init__.py
virtualtam/django-dmarc-reporting
e56aac02206924cd7f73c68b06fe088c7628381d
[ "BSD-3-Clause" ]
4
2018-01-28T23:56:32.000Z
2020-06-22T02:10:36.000Z
dmarc_reporting/__init__.py
virtualtam/django-dmarc-reporting
e56aac02206924cd7f73c68b06fe088c7628381d
[ "BSD-3-Clause" ]
13
2018-01-22T18:02:26.000Z
2020-01-19T14:59:56.000Z
dmarc_reporting/__init__.py
virtualtam/django-dmarc-reporting
e56aac02206924cd7f73c68b06fe088c7628381d
[ "BSD-3-Clause" ]
3
2018-02-06T00:08:51.000Z
2020-06-30T23:18:55.000Z
"""django-dmarc-reporting""" __author__ = "VirtualTam" __title__ = "django-dmarc-reporting" __version__ = '0.1' default_app_config = 'dmarc_reporting.apps.DmarcReportingConfig'
25.428571
64
0.780899
19
178
6.526316
0.736842
0.33871
0.322581
0
0
0
0
0
0
0
0
0.012195
0.078652
178
6
65
29.666667
0.743902
0.123596
0
0
0
0
0.506667
0.42
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
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
52897c97df636b69f2b4b6cc14e11fc8e411524e
43
py
Python
demae/dest/__init__.py
uiureo/demae
818d6584164f04001bf0e75f62c526284521ce69
[ "MIT" ]
6
2017-10-20T09:15:10.000Z
2019-03-18T23:07:05.000Z
demae/dest/__init__.py
uiureo/demae
818d6584164f04001bf0e75f62c526284521ce69
[ "MIT" ]
null
null
null
demae/dest/__init__.py
uiureo/demae
818d6584164f04001bf0e75f62c526284521ce69
[ "MIT" ]
null
null
null
# flake8: noqa from .s3_dest import S3Dest
14.333333
27
0.767442
7
43
4.571429
1
0
0
0
0
0
0
0
0
0
0
0.083333
0.162791
43
2
28
21.5
0.805556
0.27907
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
87193401f2d42dfa3093c478300ae6407318078a
77
py
Python
knowledge_graph/crawler/text_crawler/text_crawler/spiders/xywy/__init__.py
Syhen/knowledge-graph
35b35624f78ec58b3ca9f1e6eaf4a5e5ff80edc2
[ "MIT" ]
2
2019-07-01T02:18:33.000Z
2020-01-14T11:20:44.000Z
knowledge_graph/crawler/text_crawler/text_crawler/spiders/xywy/__init__.py
Syhen/knowledge-graph
35b35624f78ec58b3ca9f1e6eaf4a5e5ff80edc2
[ "MIT" ]
null
null
null
knowledge_graph/crawler/text_crawler/text_crawler/spiders/xywy/__init__.py
Syhen/knowledge-graph
35b35624f78ec58b3ca9f1e6eaf4a5e5ff80edc2
[ "MIT" ]
2
2020-03-19T10:22:34.000Z
2022-03-06T01:41:56.000Z
# -*- coding: utf-8 -*- """ Author: @heyao Created On: 2019/6/24 下午1:57 """
11
28
0.545455
12
77
3.5
1
0
0
0
0
0
0
0
0
0
0
0.174603
0.181818
77
6
29
12.833333
0.492063
0.87013
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
1
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
5e50c179029bae24ea356f3371d5d98c187ea2e6
66
py
Python
setify/__init__.py
MinaGabriel/setify
81c3f09662a0f52e9ab0c0bbefb154cc92837585
[ "MIT" ]
null
null
null
setify/__init__.py
MinaGabriel/setify
81c3f09662a0f52e9ab0c0bbefb154cc92837585
[ "MIT" ]
null
null
null
setify/__init__.py
MinaGabriel/setify
81c3f09662a0f52e9ab0c0bbefb154cc92837585
[ "MIT" ]
null
null
null
from . import datasets from . import utils __version__ = '0.9.3'
13.2
22
0.712121
10
66
4.3
0.8
0.465116
0
0
0
0
0
0
0
0
0
0.055556
0.181818
66
4
23
16.5
0.740741
0
0
0
0
0
0.075758
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
5
5e52e104a02667fa8d905173cc0f486738f5f4ed
1,333
py
Python
src/cluster/migrations/0006_auto_20180801_1521.py
mrc-rius/computational_marketing_master_thesis
347cf9ef64fcee36cf7068d0d214ef1c9de11cb5
[ "MIT" ]
null
null
null
src/cluster/migrations/0006_auto_20180801_1521.py
mrc-rius/computational_marketing_master_thesis
347cf9ef64fcee36cf7068d0d214ef1c9de11cb5
[ "MIT" ]
null
null
null
src/cluster/migrations/0006_auto_20180801_1521.py
mrc-rius/computational_marketing_master_thesis
347cf9ef64fcee36cf7068d0d214ef1c9de11cb5
[ "MIT" ]
null
null
null
# Generated by Django 2.0.5 on 2018-08-01 13:21 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('cluster', '0005_costs'), ] operations = [ migrations.RemoveField( model_name='vehicle', name='vehicle_power', ), migrations.RemoveField( model_name='vehicle', name='vehicle_price', ), migrations.AddField( model_name='vehicle', name='vehicle_max_power', field=models.IntegerField(default=0), ), migrations.AddField( model_name='vehicle', name='vehicle_max_price', field=models.DecimalField(decimal_places=2, default=0, max_digits=10), ), migrations.AddField( model_name='vehicle', name='vehicle_min_power', field=models.IntegerField(default=0), ), migrations.AddField( model_name='vehicle', name='vehicle_min_price', field=models.DecimalField(decimal_places=2, default=0, max_digits=10), ), migrations.AddField( model_name='vehicle', name='vehicle_power_unit', field=models.CharField(default='KW', max_length=5), ), ]
28.361702
82
0.56189
128
1,333
5.65625
0.351563
0.212707
0.154696
0.19337
0.741713
0.741713
0.727901
0.595304
0.516575
0.516575
0
0.033296
0.324081
1,333
46
83
28.978261
0.770255
0.033758
0
0.625
1
0
0.139969
0
0
0
0
0
0
1
0
false
0
0.025
0
0.1
0
0
0
0
null
1
0
1
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
5e78a2ae6d02171f2eec7799c77aa12509f76972
548
py
Python
forms.py
ljj6218/custom_process
5cf93943337d653c08fad5c91c8d19361baac5be
[ "Apache-2.0" ]
1
2021-01-17T16:53:31.000Z
2021-01-17T16:53:31.000Z
forms.py
ljj6218/custom_process
5cf93943337d653c08fad5c91c8d19361baac5be
[ "Apache-2.0" ]
null
null
null
forms.py
ljj6218/custom_process
5cf93943337d653c08fad5c91c8d19361baac5be
[ "Apache-2.0" ]
null
null
null
from flask_wtf import FlaskForm from wtforms import StringField, PasswordField from wtforms.validators import DataRequired, EqualTo class RegisterForm(FlaskForm): """登录表单类""" username = StringField('用户名', validators=[DataRequired()]) password = PasswordField('密码', validators=[DataRequired()]) password_2 = PasswordField('重复密码', validators=[DataRequired()]) class LoginForm(FlaskForm): """登录表单类""" username = StringField('用户名', validators=[DataRequired()]) password = PasswordField('密码', validators=[DataRequired()])
34.25
67
0.731752
50
548
7.98
0.42
0.275689
0.225564
0.165414
0.516291
0.516291
0.516291
0.516291
0.516291
0.516291
0
0.002096
0.129562
548
16
68
34.25
0.834382
0.020073
0
0.4
0
0
0.026565
0
0
0
0
0
0
1
0
false
0.4
0.3
0
1
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
5
5e79c011f4593831f28ec841f3c7f56bdee12cc1
173
py
Python
chip_eight/__init__.py
apalmer/computer-emulation
2284e26ac9054c147da1145debc5bd73cc6214f1
[ "MIT" ]
null
null
null
chip_eight/__init__.py
apalmer/computer-emulation
2284e26ac9054c147da1145debc5bd73cc6214f1
[ "MIT" ]
5
2020-03-31T11:18:49.000Z
2021-02-14T01:46:17.000Z
chip_eight/__init__.py
apalmer/computer-emulation
2284e26ac9054c147da1145debc5bd73cc6214f1
[ "MIT" ]
null
null
null
from .screen import Screen from .keyboard import Keyboard from .memory import Memory from .cpu import Cpu from .computer import Computer from .runner import boot, load, run
24.714286
35
0.803468
26
173
5.346154
0.423077
0
0
0
0
0
0
0
0
0
0
0
0.150289
173
6
36
28.833333
0.945578
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
5e9e5511ed23326c7e155fd0df1fbc8299a697d9
82
py
Python
__init__.py
nujabes0321456/Handphone-Ecm-Simulation
116a18591e8be8d3afe62134082ae90311f51e72
[ "MIT" ]
null
null
null
__init__.py
nujabes0321456/Handphone-Ecm-Simulation
116a18591e8be8d3afe62134082ae90311f51e72
[ "MIT" ]
null
null
null
__init__.py
nujabes0321456/Handphone-Ecm-Simulation
116a18591e8be8d3afe62134082ae90311f51e72
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Nov 12 10:39:07 2020 @author: BK """
10.25
35
0.54878
14
82
3.214286
1
0
0
0
0
0
0
0
0
0
0
0.203125
0.219512
82
7
36
11.714286
0.5
0.865854
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
1
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
5eaa284356e1ff61fc4f74152eec226019206f08
4,075
py
Python
Cnet/SummaryCallback.py
chriamue/Cnet
27f15835fe70597729973a8189c10da750846607
[ "MIT" ]
null
null
null
Cnet/SummaryCallback.py
chriamue/Cnet
27f15835fe70597729973a8189c10da750846607
[ "MIT" ]
null
null
null
Cnet/SummaryCallback.py
chriamue/Cnet
27f15835fe70597729973a8189c10da750846607
[ "MIT" ]
null
null
null
import numpy as np from keras.callbacks import Callback from keras import backend as K import tensorflow as tf class SummaryCallback(Callback): def __init__(self, trainer, validation=False): super(SummaryCallback, self) self.trainer = trainer self.summarysteps = trainer.config['summarysteps'] self.validation = validation self.image = tf.Variable(0., validate_shape=False) self.mask = tf.Variable(0., validate_shape=False) self.predicted = tf.Variable(0., validate_shape=False) model = self.trainer.model.model self.fetches = [tf.assign(self.image, model.inputs[0], validate_shape=False), tf.assign(self.mask, model.targets[0], validate_shape=False), tf.assign(self.predicted, model.outputs[0], validate_shape=False)] model._function_kwargs = {'fetches': self.fetches} def on_train_begin(self, logs={}): self.losses = [] model = self.trainer.model.model self.fetches = [tf.assign(self.image, model.inputs[0], validate_shape=False), tf.assign(self.mask, model.targets[0], validate_shape=False), tf.assign(self.predicted, model.outputs[0], validate_shape=False)] model._function_kwargs = {'fetches': self.fetches} def on_train_end(self, logs={}): model = self.trainer.model.model model._function_kwargs = {'fetches': []} def on_batch_end(self, batch, logs={}): loss = logs.get('loss') self.losses.append(loss) if self.validation is False: self.trainer.global_step += 1 self.trainer.loss += loss if batch % self.summarysteps == 0: if self.trainer.summarywriter: self.trainer.summarywriter.add_scalar( self.trainer.name+'loss', loss, global_step=self.trainer.global_step) image = K.eval(self.image) if not type(image) is np.float32: image = image[0] image = np.rollaxis(image, axis=2, start=0) mask = K.eval(self.mask)[0] mask = np.rollaxis(mask, axis=2, start=0)[1] predicted = K.eval(self.predicted)[0] predicted = np.rollaxis(predicted, axis=2, start=0)[1] self.trainer.summarywriter.add_image( self.trainer.name+'image',image/255.0, global_step=self.trainer.global_step) self.trainer.summarywriter.add_image( self.trainer.name+'mask', mask.astype(np.float32), global_step=self.trainer.global_step) self.trainer.summarywriter.add_image( self.trainer.name+'predicted', predicted/(predicted.max()+0.0001), global_step=self.trainer.global_step) else: if self.trainer.summarywriter: self.trainer.summarywriter.add_scalar( self.trainer.name+'val_loss', loss, global_step=self.trainer.global_step) image = K.eval(self.image) if not type(image) is np.float32: image = image[0] image = np.rollaxis(image, axis=2, start=0) mask = K.eval(self.mask)[0] mask = np.rollaxis(mask, axis=2, start=0)[1] predicted = K.eval(self.predicted)[0] predicted = np.rollaxis(predicted, axis=2, start=0)[1] self.trainer.summarywriter.add_image( self.trainer.name+'val_image',image/255.0, global_step=self.trainer.global_step) self.trainer.summarywriter.add_image( self.trainer.name+'val_mask', mask, global_step=self.trainer.global_step) self.trainer.summarywriter.add_image( self.trainer.name+'val_predicted', predicted/(predicted.max()+0.0001), global_step=self.trainer.global_step)
53.618421
136
0.58135
471
4,075
4.915074
0.150743
0.156803
0.07257
0.108855
0.77149
0.760259
0.747732
0.719222
0.719222
0.717927
0
0.020099
0.304049
4,075
75
137
54.333333
0.796192
0
0
0.528571
0
0
0.023804
0
0
0
0
0
0
1
0.057143
false
0
0.057143
0
0.128571
0
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
5eb5286785b2a40810337bd11a4ddd440770c80f
88
py
Python
model/__init__.py
mfacar/controltac
bbf001e3d54635264d798bb6ce050eac7bebf4ee
[ "MIT" ]
3
2019-02-21T07:53:54.000Z
2022-02-28T15:01:37.000Z
model/__init__.py
mfacar/controltac
bbf001e3d54635264d798bb6ce050eac7bebf4ee
[ "MIT" ]
null
null
null
model/__init__.py
mfacar/controltac
bbf001e3d54635264d798bb6ce050eac7bebf4ee
[ "MIT" ]
1
2019-01-09T08:32:44.000Z
2019-01-09T08:32:44.000Z
from .GloVeModel import GloVeModel from .Word2vecGoogleModel import Word2vecGoogleModel
29.333333
52
0.886364
8
88
9.75
0.5
0
0
0
0
0
0
0
0
0
0
0.025
0.090909
88
2
53
44
0.95
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
5ed2bb1eb3e80a304b646cedffb9f266c8c9c066
154
py
Python
fltk/synthpriv/datasets/__init__.py
tudelft-eemcs-dml/fltk-testbed-gr-1
bbe01d5d82a447ad8b6d9e3f350f831922a8b8b7
[ "BSD-2-Clause" ]
null
null
null
fltk/synthpriv/datasets/__init__.py
tudelft-eemcs-dml/fltk-testbed-gr-1
bbe01d5d82a447ad8b6d9e3f350f831922a8b8b7
[ "BSD-2-Clause" ]
null
null
null
fltk/synthpriv/datasets/__init__.py
tudelft-eemcs-dml/fltk-testbed-gr-1
bbe01d5d82a447ad8b6d9e3f350f831922a8b8b7
[ "BSD-2-Clause" ]
null
null
null
from .adult import DistAdultDataset from .purchase import DistPurchaseDataset from .synthetic import SyntheticDataset from .texas import DistTexasDataset
30.8
41
0.87013
16
154
8.375
0.625
0
0
0
0
0
0
0
0
0
0
0
0.103896
154
4
42
38.5
0.971014
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
0d901ca4746c3045e2eb543fb259f3c3c07ab0c0
65
py
Python
__init__.py
brennanmcfarland/arctic-flaming-monkey-typhoon
ea2d73c30f6c1de4d7c6c3d7c5e0df6ebc6c54d0
[ "MIT" ]
null
null
null
__init__.py
brennanmcfarland/arctic-flaming-monkey-typhoon
ea2d73c30f6c1de4d7c6c3d7c5e0df6ebc6c54d0
[ "MIT" ]
null
null
null
__init__.py
brennanmcfarland/arctic-flaming-monkey-typhoon
ea2d73c30f6c1de4d7c6c3d7c5e0df6ebc6c54d0
[ "MIT" ]
null
null
null
import os import sys sys.path.append(os.path.abspath('./arc23'))
16.25
43
0.738462
11
65
4.363636
0.636364
0
0
0
0
0
0
0
0
0
0
0.033333
0.076923
65
3
44
21.666667
0.766667
0
0
0
0
0
0.107692
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
0dad542d774c36d750573d823e021d4b1e610c88
64
py
Python
src/obfuscapk/obfuscators/new_signature/__init__.py
Elyorbe/Obfuscapk
2ba18df4b5efe44b4fab271ab5ccfe51488fa693
[ "MIT" ]
688
2019-08-23T16:43:10.000Z
2022-03-29T19:35:07.000Z
src/obfuscapk/obfuscators/new_signature/__init__.py
Ktm2590/Obfuscapk
4072b6dea88e91b75064a84c7d3adebe005e8207
[ "MIT" ]
124
2019-09-07T13:10:59.000Z
2022-03-17T16:47:29.000Z
src/obfuscapk/obfuscators/new_signature/__init__.py
Ktm2590/Obfuscapk
4072b6dea88e91b75064a84c7d3adebe005e8207
[ "MIT" ]
204
2019-08-23T14:43:52.000Z
2022-03-30T21:04:50.000Z
#!/usr/bin/env python3 from .new_signature import NewSignature
16
39
0.796875
9
64
5.555556
1
0
0
0
0
0
0
0
0
0
0
0.017544
0.109375
64
3
40
21.333333
0.859649
0.328125
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
0deb8159c570c3a7bc43b264600cb49b98ebf11a
211
py
Python
best_browsable_api/templatetags/browsable_api.py
alsur/best-browsable-api
9fb36c79bb775ab6cca89ed49b5e79f8a46ef4ef
[ "MIT" ]
2
2020-02-24T22:49:52.000Z
2020-03-02T21:16:15.000Z
best_browsable_api/templatetags/browsable_api.py
alsur/best-browsable-api
9fb36c79bb775ab6cca89ed49b5e79f8a46ef4ef
[ "MIT" ]
null
null
null
best_browsable_api/templatetags/browsable_api.py
alsur/best-browsable-api
9fb36c79bb775ab6cca89ed49b5e79f8a46ef4ef
[ "MIT" ]
1
2021-11-25T15:21:24.000Z
2021-11-25T15:21:24.000Z
from django.template import Library from django.utils.encoding import force_text register = Library() def force_text_filter(obj): return force_text(obj) register.filter('force_text', force_text_filter)
17.583333
48
0.796209
30
211
5.366667
0.466667
0.279503
0.186335
0
0
0
0
0
0
0
0
0
0.123223
211
11
49
19.181818
0.87027
0
0
0
0
0
0.047393
0
0
0
0
0
0
1
0.166667
false
0
0.333333
0.166667
0.666667
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
1
1
0
0
5
218297ac435c6ff30e2a0bec7160c9044bea773e
19,433
py
Python
pythonUtils/TUI_tools/automatic_questioner.py
tgquintela/pythonUtils
6f2e5ba3be67a48d3cd5cf72dcabfae04cfa7afe
[ "MIT" ]
1
2015-07-21T05:15:11.000Z
2015-07-21T05:15:11.000Z
pythonUtils/TUI_tools/automatic_questioner.py
tgquintela/pythonUtils
6f2e5ba3be67a48d3cd5cf72dcabfae04cfa7afe
[ "MIT" ]
null
null
null
pythonUtils/TUI_tools/automatic_questioner.py
tgquintela/pythonUtils
6f2e5ba3be67a48d3cd5cf72dcabfae04cfa7afe
[ "MIT" ]
null
null
null
""" automatic_questioner -------------------- Module which serves as a interactor between the possible database with the described structure and which contains information about functions and variables of other packages. Scheme of the db ---------------- # {'function_name': # {'variables': # {'variable_name': # {'question_info': # {'qtype': ['simple_input', 'confirmation_question', # 'selection_options', 'selection_list_options'], # 'question_spec': 'question_spec'}, # 'default': default}}, ######## # 'descendants': [{'agg_description': # {variable_name: # {'variable_value': 'function_name'} # }, # 'agg_name': 'aggregated_parameter_name'}] # }} ######## OR # 'descendants': [{'agg_description': 'function_name' # 'agg_name': 'aggregated_parameter_name'}] # }} #TODO: checker 1 function with list of functions and dicts of dicts """ from tui_questioner import general_questioner def check_quest_info(db): """Function which carry out the automatic checking of the database of function and variables. Parameters ---------- db: dict the dictionary of all the information about the system with all its functions and dependencies between them in order to ask for their variables authomatically. Returns ------- check: boolean returns the correctness of the database. path: list path of the possible error. message: str message of the error if it exists. """ ## 0. Initial preset variables needed # Function to compare lists def equality_elements_list(a, b): a = a.keys() if type(a) == dict else a b = b.keys() if type(b) == dict else b c = a[-1::-1] return a == b or c == b # List of elements available in some dicts at some levels first_level = ['descendants', 'variables'] desc_2_level = ['agg_description', 'agg_name'] vars_2_level = ['question_info', 'default'] vars_3_level = ['qtype', 'question_spec'] # Messages of errors m0 = "The given database of functions is not a dictionary." m1 = "The function '%s' does not have "+str(first_level)+" as keys." m2 = "The variables of function '%s' is not a dict." m3 = "Incorrect keys "+str(vars_2_level)+" in function %s and variable %s." m4 = "Incorrect question_info format for function %s and variable %s." m5 = "Not a string the 'qtype' of function %s and variable %s." m6 = "Incorrect 'question_spec' format for function %s and variable %s." m7 = "Descendants of the function %s is not a list." m8 = "Elements of the list of descendants not a dict for function %s." m9 = "Incorrect structure of a dict in descendants for function %s." m10 = "Incorrect type of agg_description for function %s and variable %s." m11 = "Incorrect type of agg_description for function %s." ## Check db is a dict if type(db) != dict: return False, [], m0 ## Loop for check each function in db for funct in db.keys(): ## Check main keys: first_bl = equality_elements_list(db[funct], first_level) if not first_bl: return False, [funct], m1 % funct ## Check variables if not type(db[funct]['variables']) == dict: check = False path = [funct, 'variables'] message = m2 % funct return check, path, message for var in db[funct]['variables']: varsbles = db[funct]['variables'] v2_bl = equality_elements_list(varsbles[var], vars_2_level) v3_bl = equality_elements_list(varsbles[var]['question_info'], vars_3_level) qtype_bl = db[funct]['variables'][var]['question_info']['qtype'] qtype_bl = type(qtype_bl) != str qspec_bl = db[funct]['variables'][var]['question_info'] qspec_bl = type(qspec_bl['question_spec']) != dict if not v2_bl: check = False path = [funct, 'variables', var] message = m3 % (funct, var) return check, path, message ### Check question_info if not v3_bl: check = False path = [funct, 'variables', 'question_info'] message = m4 % (funct, var) return check, path, message if qtype_bl: check = False path = [funct, 'variables', 'question_info', 'qtype'] message = m5 % (funct, var) return check, path, message if qspec_bl: check = False path = [funct, 'variables', 'question_info', 'question_spec'] message = m6 % (funct, var) return check, path, message ## Check descendants if not type(db[funct]['descendants']) == list: check = False path = [funct, 'descendants'] message = m7 % funct return check, path, message for var_desc in db[funct]['descendants']: if not type(var_desc) == dict: check = False path = [funct, 'descendants'] message = m8 % funct return check, path, message d2_bl = equality_elements_list(var_desc.keys(), desc_2_level) if not d2_bl: check = False path = [funct, 'descendants'] message = m9 % funct return check, path, message if type(var_desc['agg_description']) == str: pass elif type(var_desc['agg_description']) == dict: for varname in var_desc['agg_description']: if not type(var_desc['agg_description'][varname]) == dict: check = False path = [funct, 'descendants', 'agg_description'] message = m10 % (funct, varname) return check, path, message else: check = False path = [funct, 'descendants', 'agg_description'] message = m11 % funct return check, path, message return True, [], '' def automatic_questioner(function_name, db, choosen={}): """Function which carry out the automatic questioning task. Parameters ---------- function_name: str the function for which we are interested in their params in order to call it. db: dict the dictionary of all the information about the system with all its functions and dependencies between them in order to ask for their variables authomatically. choosen: dict previous choosen parameters. The function will avoid to ask for the pre-set parameters. Returns ------- choosen_values: dict the selected values which are disposed to input in the function we want to call. """ ## Initialize variables needed m1 = "Not value for a variables in order to create aggregate variables." choosen_values = choosen if function_name in db.keys(): data_f = db[function_name] else: # Better raise error? return choosen_values # Put the variables for var in data_f['variables'].keys(): # Put the variables if there are still not selected if var not in choosen_values.keys(): question = data_f['variables'][var]['question_info'] choosen_values[var] = general_questioner(**question) # Put aggregated variables (descendants) for var_desc in data_f['descendants']: # Possible variables and aggregated parameter name agg_description = var_desc['agg_description'] agg_param = var_desc['agg_name'] # prepare possible input for existant aggregated value in choosen ifaggvar = agg_param in choosen_values aggvarval = choosen_values[agg_param] if ifaggvar else {} ## Without dependant variable if type(agg_description) == str: # Obtain function name fn = choosen_values[agg_param] # Recurrent call aux = automatic_questioner(fn, db, aggvarval) # Aggregate to our values choosen_values[agg_param] = aux ## With dependant variable elif type(agg_description) == dict: for var in var_desc['agg_description']: if not var in choosen_values: raise Exception(m1) ## Give a list and return a dict in the aggparam variable elif type(choosen_values[var]) == str: # Obtain function name fn = var_desc['agg_description'][var][choosen_values[var]] # Recurrent call aux = automatic_questioner(fn, db, aggvarval) # Aggregate to our values choosen_values[agg_param] = aux ## Give a list and return a list in the aggparam variable elif type(choosen_values[var]) == list: choosen_values[agg_param] = [] aggvarval = [] if type(aggvarval) != list else aggvarval for i in range(len(choosen_values[var])): val = choosen_values[var][i] fn = var_desc['agg_description'][var][val] aux = automatic_questioner(fn, db, aggvarval[i]) choosen_values.append(aux) return choosen_values def get_default(function_name, db, choosen={}): """Function which returns a dictionary of choosen values by default. Parameters ---------- function_name: str the function for which we are interested in their params in order to call it. db: dict the dictionary of all the information about the system with all its functions and dependencies between them in order to ask for their variables authomatically. choosen: dict previous choosen parameters. The function will avoid to ask for the pre-set parameters. Returns ------- choosen_values: dict the selected values which are disposed to input in the function we want to call. ----- TODO: Possibility of being integrated with authomatic_questioner after testing. """ ## Initialize variables needed m1 = "Not value for a variables in order to create aggregate variables." choosen_values = choosen if function_name in db.keys(): data_f = db[function_name] else: # Better raise error? return choosen_values # Get the variables for var in data_f['variables'].keys(): # Put the variables if there are still not selected if var not in choosen_values.keys(): default = data_f['variables'][var]['default'] choosen_values[var] = default # Get aggregated variables (descendants) for var_desc in data_f['descendants']: # Possible variables and aggregated parameter name agg_description = var_desc['agg_description'] agg_param = var_desc['agg_name'] # prepare possible input for existant aggregated value in choosen ifaggvar = agg_param in choosen_values aggvarval = choosen_values[agg_param] if ifaggvar else {} ## Without dependant variable if type(agg_description) == str: # Obtain function name fn = choosen_values[agg_param] # Recurrent call aux = get_default(fn, db, aggvarval) # Aggregate to our values choosen_values[agg_param] = aux ## With dependant variable elif type(agg_description) == dict: for var in var_desc['agg_description']: if not var in choosen_values: raise Exception(m1) ## Give a list and return a dict in the aggparam variable elif type(choosen_values[var]) == str: # Obtain function name fn = var_desc['agg_description'][var][choosen_values[var]] # Recurrent call aux = get_default(fn, db, aggvarval) # Aggregate to our values choosen_values[agg_param] = aux ## Give a list and return a list in the aggparam variable elif type(choosen_values[var]) == list: choosen_values[agg_param] = [] aggvarval = [] if type(aggvarval) != list else aggvarval for i in range(len(choosen_values[var])): val = choosen_values[var][i] fn = var_desc['agg_description'][var][val] aux = get_default(fn, db, aggvarval[i]) choosen_values.append(aux) return choosen_values ############################################################################### ############################################################################### ############################################################################### def get_default3(function_name, db, choosen={}): """Function which returns a dictionary of choosen values by default. Parameters ---------- function_name: str the function for which we are interested in their params in order to call it. db: dict the dictionary of all the information about the system with all its functions and dependencies between them in order to ask for their variables authomatically. choosen: dict previous choosen parameters. The function will avoid to ask for the pre-set parameters. Returns ------- choosen_values: dict the selected values which are disposed to input in the function we want to call. ----- TODO: Possibility of being integrated with authomatic_questioner after testing. """ choosen_values = choosen if function_name in db.keys(): data_f = db[function_name] else: # Better raise error? return choosen_values # Get the variables for var in data_f['variables'].keys(): # Put the variables if there are still not selected if var not in choosen_values.keys(): default = data_f['variables'][var]['default'] choosen_values[var] = default # Get the aggregated variables (descendants) for i in range(len(data_f['descendants'])): # Possible variables and aggregated parameter name vars_values = data_f['descendants'][i]['variable_values'] agg_param = data_f['descendants'][i]['parameters'] variables = vars_values.keys() # prepare possible input for existant aggregated value in choosen ifaggvar = agg_param in choosen_values aggvarval = choosen_values[agg_param] if ifaggvar else {} for var in variables: # boolean variables value = choosen_values[var] iflist = type(value) == list ifvars = var in choosen_values.keys() # if we have to return a list if ifvars and iflist: # Initialization values n = len(value) aggvarval = aggvarval if ifaggvar else [{} for i in range(n)] results = [] i = 0 for val in value: # Obtain function_name f_name = vars_values[var][value] # Recurrent call aux = get_default(f_name, db, aggvarval[i]) # Insert in the correspondent list results.append(aux) i += 1 # if we have to return a dict elif ifvars and not iflist: # Obtain function_name f_name = vars_values[var][value] # Recurrent call choosen_values[agg_param] = get_default(f_name, db, aggvarval) return choosen_values def automatic_questioner3(function_name, db, choosen={}): """Function which carry out the automatic questioning task. Parameters ---------- function_name: str the function for which we are interested in their params in order to call it. db: dict the dictionary of all the information about the system with all its functions and dependencies between them in order to ask for their variables authomatically. choosen: dict previous choosen parameters. The function will avoid to ask for the pre-set parameters. Returns ------- choosen_values: dict the selected values which are disposed to input in the function we want to call. """ ## Initialize variables needed m1 = "Not value for a variables in order to create aggregate variables." choosen_values = choosen if function_name in db.keys(): data_f = db[function_name] else: # Better raise error? return choosen_values # Put the variables for var in data_f['variables'].keys(): # Put the variables if there are still not selected if var not in choosen_values.keys(): question = data_f['variables'][var]['question_info'] choosen_values[var] = general_questioner(**question) # Put aggregated variables (descendants) for i in range(len(data_f['descendants'])): # Possible variables and aggregated parameter name vars_values = data_f['descendants'][i]['variable_values'] agg_param = data_f['descendants'][i]['parameters'] variables = vars_values.keys() # prepare possible input for existant aggregated value in choosen ifaggvar = agg_param in choosen_values aggvarval = choosen_values[agg_param] if ifaggvar else {} for var in variables: # boolean variables value = choosen_values[var] iflist = type(value) == list ifvars = var in choosen_values.keys() # if we have to return a list if ifvars and iflist: # Initialization values n = len(value) aggvarval = aggvarval if ifaggvar else [{} for i in range(n)] results = [] i = 0 for val in value: # Obtain function_name f_name = vars_values[var][value] # Recurrent call aux = authomatic_questioner(f_name, db, aggvarval[i]) # Insert in the correspondent list results.append(aux) i += 1 # if we have to return a dict elif ifvars and not iflist: # Obtain function_name f_name = vars_values[var][value] # Recurrent call choosen_values[agg_param] = authomatic_questioner(f_name, db, aggvarval) return choosen_values
38.178782
79
0.571039
2,204
19,433
4.904265
0.096642
0.074567
0.023684
0.0272
0.809696
0.780831
0.748543
0.701545
0.672865
0.672865
0
0.004333
0.334997
19,433
508
80
38.253937
0.832082
0.329388
0
0.665272
0
0
0.137333
0
0
0
0
0.005906
0
1
0.025105
false
0.004184
0.004184
0
0.121339
0
0
0
0
null
0
0
0
1
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
21b3fec0173c302b2a96d37e59342441bc978f8f
771
py
Python
dezero/__init__.py
teijeong/deeplearning-from-scratch
d2d237cc592c4454e4a3cc08987b64fb5823fe9e
[ "MIT" ]
null
null
null
dezero/__init__.py
teijeong/deeplearning-from-scratch
d2d237cc592c4454e4a3cc08987b64fb5823fe9e
[ "MIT" ]
null
null
null
dezero/__init__.py
teijeong/deeplearning-from-scratch
d2d237cc592c4454e4a3cc08987b64fb5823fe9e
[ "MIT" ]
null
null
null
_IS_SIMPLE_CORE = False if _IS_SIMPLE_CORE: from dezero.core_simple import Variable from dezero.core_simple import Function from dezero.core_simple import using_config from dezero.core_simple import no_grad from dezero.core_simple import as_array from dezero.core_simple import as_variable from dezero.core_simple import setup_variable else: from dezero.core import Variable from dezero.core import Parameter from dezero.core import Function from dezero.core import using_config from dezero.core import no_grad from dezero.core import as_array from dezero.core import as_variable from dezero.core import setup_variable from dezero.layers import Layer from dezero.models import Model setup_variable()
30.84
49
0.782101
113
771
5.123894
0.20354
0.29361
0.362694
0.276339
0.715026
0.493955
0
0
0
0
0
0
0.189364
771
24
50
32.125
0.9264
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.809524
0
0.809524
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
5
21b4deffa81da9293406de8d5540a10588bef5e1
258
py
Python
src/python/WMCore/WMBS/Oracle/Jobs/GetCouchID.py
hufnagel/WMCore
b150cc725b68fc1cf8e6e0fa07c826226a4421fa
[ "Apache-2.0" ]
21
2015-11-19T16:18:45.000Z
2021-12-02T18:20:39.000Z
src/python/WMCore/WMBS/Oracle/Jobs/GetCouchID.py
hufnagel/WMCore
b150cc725b68fc1cf8e6e0fa07c826226a4421fa
[ "Apache-2.0" ]
5,671
2015-01-06T14:38:52.000Z
2022-03-31T22:11:14.000Z
src/python/WMCore/WMBS/Oracle/Jobs/GetCouchID.py
hufnagel/WMCore
b150cc725b68fc1cf8e6e0fa07c826226a4421fa
[ "Apache-2.0" ]
67
2015-01-21T15:55:38.000Z
2022-02-03T19:53:13.000Z
#!/usr/bin/env python """ _GetCouchID_ Oracle implementation of Jobs.GetCouchID """ from WMCore.WMBS.MySQL.Jobs.GetCouchID import GetCouchID as MySQLGetCouchID class GetCouchID(MySQLGetCouchID): """ Identical to MySQL version. """ pass
14.333333
75
0.72093
28
258
6.571429
0.75
0.152174
0
0
0
0
0
0
0
0
0
0
0.178295
258
17
76
15.176471
0.867925
0.399225
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.333333
0.333333
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
1
0
1
0
0
5
21d71d966f589f9f39f36110b83d6464db28ade3
182
py
Python
reqcli/source/__init__.py
shiftinv/reqcli
3b8fe42bcddf7676bb7d9a70f6bd2a430ae7beb1
[ "Apache-2.0" ]
null
null
null
reqcli/source/__init__.py
shiftinv/reqcli
3b8fe42bcddf7676bb7d9a70f6bd2a430ae7beb1
[ "Apache-2.0" ]
null
null
null
reqcli/source/__init__.py
shiftinv/reqcli
3b8fe42bcddf7676bb7d9a70f6bd2a430ae7beb1
[ "Apache-2.0" ]
null
null
null
from .basesource import BaseSource from .config import SourceConfig from .reqdata import CertType, ReqData from .status import StatusCheckMode from .unloadable import UnloadableType
30.333333
38
0.851648
21
182
7.380952
0.52381
0
0
0
0
0
0
0
0
0
0
0
0.115385
182
5
39
36.4
0.962733
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
21dd08026ab840016da3af8afc3b8b473ff0ea0e
129
py
Python
ros_ws/src/baxter_interface/src/baxter_interface/settings.py
mesneym/Baxter-Arm-PP
fdbf86309bc64c31af105daa026b2f8519710129
[ "MIT" ]
null
null
null
ros_ws/src/baxter_interface/src/baxter_interface/settings.py
mesneym/Baxter-Arm-PP
fdbf86309bc64c31af105daa026b2f8519710129
[ "MIT" ]
null
null
null
ros_ws/src/baxter_interface/src/baxter_interface/settings.py
mesneym/Baxter-Arm-PP
fdbf86309bc64c31af105daa026b2f8519710129
[ "MIT" ]
null
null
null
version https://git-lfs.github.com/spec/v1 oid sha256:ecf7c6e4073ed731198a562b6cb7ecaae49c80b9594f3e2dfeef108ea4868bc0 size 2045
32.25
75
0.883721
13
129
8.769231
1
0
0
0
0
0
0
0
0
0
0
0.349594
0.046512
129
3
76
43
0.577236
0
0
0
0
0
0
0
0
1
0
0
0
0
null
null
0
0
null
null
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
0
0
0
null
1
0
0
0
1
0
0
0
0
0
0
0
0
5
21e54a9c5e36676e70191dac141c984ff5ba76eb
20
py
Python
checkov/version.py
meghaddn/checkov
422966b2d66451679bce280d9faed73edd46d927
[ "Apache-2.0" ]
null
null
null
checkov/version.py
meghaddn/checkov
422966b2d66451679bce280d9faed73edd46d927
[ "Apache-2.0" ]
null
null
null
checkov/version.py
meghaddn/checkov
422966b2d66451679bce280d9faed73edd46d927
[ "Apache-2.0" ]
null
null
null
version = '2.0.396'
10
19
0.6
4
20
3
1
0
0
0
0
0
0
0
0
0
0
0.294118
0.15
20
1
20
20
0.411765
0
0
0
0
0
0.35
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
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
21e954d80f556d58c4a495c29d1ec66744407e90
489
py
Python
wyze_sdk/service/__init__.py
RebelTat/wyze-sdk
249b1df71e80c97fc2e5fb5977431b887f7361c2
[ "Unlicense" ]
132
2021-05-03T12:33:58.000Z
2022-03-31T18:03:26.000Z
wyze_sdk/service/__init__.py
RebelTat/wyze-sdk
249b1df71e80c97fc2e5fb5977431b887f7361c2
[ "Unlicense" ]
51
2021-05-01T20:24:20.000Z
2022-03-30T20:37:05.000Z
wyze_sdk/service/__init__.py
RebelTat/wyze-sdk
249b1df71e80c97fc2e5fb5977431b887f7361c2
[ "Unlicense" ]
21
2021-05-05T14:01:38.000Z
2022-03-29T02:58:39.000Z
from .api_service import ApiServiceClient # noqa from .auth_service import AuthServiceClient # noqa from .earth_service import EarthServiceClient # noqa from .ford_service import FordServiceClient # noqa from .general_api_service import GeneralApiServiceClient # noqa from .platform_service import PlatformServiceClient # noqa from .scale_service import ScaleServiceClient # noqa from .venus_service import VenusServiceClient # noqa from .wyze_response import WyzeResponse # noqa
48.9
64
0.834356
55
489
7.236364
0.418182
0.261307
0.080402
0
0
0
0
0
0
0
0
0
0.128834
489
9
65
54.333333
0.934272
0.08998
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
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
21f685d227aa850fc5ba0f71dfff090c50ea3edd
360
py
Python
Mundo 01/daniellindo.py
lucsap/Python3
0696a87dbcd90bd79892de8fef68d532d127ee5c
[ "MIT" ]
null
null
null
Mundo 01/daniellindo.py
lucsap/Python3
0696a87dbcd90bd79892de8fef68d532d127ee5c
[ "MIT" ]
null
null
null
Mundo 01/daniellindo.py
lucsap/Python3
0696a87dbcd90bd79892de8fef68d532d127ee5c
[ "MIT" ]
null
null
null
a, b, c = input().split(' ') def age (dias): dias = dias anos = dias // 360 meses = (((dias / 360) - (dias // 360) * 360) // 30 dyas = ((((dias / 360) - (dias // 360) * 360) / 30) - (((dias / 360) - (dias // 360) * 360) // 30)) *30 print(f'{anos} ano(s), {meses} mes(es) e {dyas} dia(s)') age_a = age(a) age_b = age(b) age_c = age(c)
21.176471
107
0.472222
58
360
2.87931
0.362069
0.293413
0.197605
0.251497
0.341317
0.341317
0
0
0
0
0
0.145038
0.272222
360
16
108
22.5
0.492366
0
0
0
0
0.1
0.132022
0
0
0
0
0
0
0
null
null
0
0
null
null
0.1
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
1
0
0
0
0
0
0
0
0
5
df2b345968cc879b1739ee100161c2999e24f063
155
py
Python
xssor/tcp.py
boundmania/xssor2
181aac7e62a77092dd23692a486456af0985a735
[ "BSD-2-Clause" ]
2,126
2017-06-25T07:03:18.000Z
2022-03-30T16:36:30.000Z
xssor/tcp.py
boundmania/xssor2
181aac7e62a77092dd23692a486456af0985a735
[ "BSD-2-Clause" ]
4
2017-06-29T06:54:30.000Z
2021-06-08T11:43:03.000Z
xssor/tcp.py
boundmania/xssor2
181aac7e62a77092dd23692a486456af0985a735
[ "BSD-2-Clause" ]
466
2017-06-25T09:37:46.000Z
2022-03-28T15:44:11.000Z
sys_name = "XSS'OR" sys_copyright = "@evilcos.me" def sys(req): return { 'sys_name': sys_name, 'sys_copyright': sys_copyright, }
15.5
39
0.593548
20
155
4.3
0.5
0.244186
0.232558
0
0
0
0
0
0
0
0
0
0.264516
155
9
40
17.222222
0.754386
0
0
0
0
0
0.246753
0
0
0
0
0
0
1
0.142857
false
0
0
0.142857
0.285714
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
1
0
0
0
5
df3700638507969c0de353b31cc106ba8da8502d
13,278
py
Python
landsat_cloudScore.py
sig-gis/Ecuador_SEPAL
edc7899c20cf724591385994722ee8c3d27fd9f3
[ "MIT" ]
13
2018-09-11T05:42:45.000Z
2021-12-01T07:12:56.000Z
landsat_cloudScore.py
g-adzan/Ecuador_SEPAL
edc7899c20cf724591385994722ee8c3d27fd9f3
[ "MIT" ]
1
2020-06-15T07:24:59.000Z
2020-06-26T18:39:25.000Z
landsat_cloudScore.py
g-adzan/Ecuador_SEPAL
edc7899c20cf724591385994722ee8c3d27fd9f3
[ "MIT" ]
6
2018-12-18T23:20:45.000Z
2021-12-01T07:13:07.000Z
# Sentinel-2 package from paramsTemplate import * import ee from Py6S import * import math import datetime import os, sys from utils import * import sun_angles import view_angles import time class env(object): def __init__(self): """Initialize the environment.""" # Initialize the Earth Engine object, using the authentication credentials. ee.Initialize() self.epsg = "EPSG:32717" ########################################## # variable for the landsat data request # ########################################## self.metadataCloudCoverMax = 100; ########################################## # Export variables # ########################################## self.assetId ="projects/Sacha/PreprocessedData/L8_Annual_CloudScore/" self.name = "LS_CS_" self.exportScale = 20 self.cloudScoreThresh = 1; ########################################## # variable band selection # ########################################## self.percentiles = [25,75] self.divideBands = ee.List(['blue','green','red','nir','swir1','swir2']) self.bandNamesLandsat = ee.List(['blue','green','red','nir','swir1','thermal','swir2','sr_atmos_opacity','pixel_qa','radsat_qa']) self.sensorBandDictLandsatSR = ee.Dictionary({'L8' : ee.List([1,2,3,4,5,7,6,9,10,11]),\ 'L7' : ee.List([0,1,2,3,4,5,6,7,9,10]),\ 'L5' : ee.List([0,1,2,3,4,5,6,7,9,10]),\ 'L4' : ee.List([0,1,2,3,4,5,6,7,9,10])}) ########################################## # enable / disable modules # ########################################## self.cloudMask = True class functions(): def __init__(self): """Initialize the Surfrace Reflectance app.""" # get the environment self.env = env() def main(self,studyArea,startDate,endDate,startDay,endDay,week,regionName): self.env.startDate = startDate self.env.endDate = endDate self.env.startDoy = startDay self.env.endDoy = endDay self.env.regionName = regionName self.studyArea = studyArea landsat8 = ee.ImageCollection('LANDSAT/LC08/C01/T1_SR').filterDate(self.env.startDate,self.env.endDate).filterBounds(studyArea) landsat8 = landsat8.filterMetadata('CLOUD_COVER','less_than',self.env.metadataCloudCoverMax) landsat8 = landsat8.select(self.env.sensorBandDictLandsatSR.get('L8'),self.env.bandNamesLandsat) landsat5 = ee.ImageCollection('LANDSAT/LT05/C01/T1_SR').filterDate(self.env.startDate,self.env.endDate).filterBounds(studyArea) landsat5 = landsat5.filterMetadata('CLOUD_COVER','less_than',self.env.metadataCloudCoverMax) landsat5 = landsat5.select(self.env.sensorBandDictLandsatSR.get('L5'),self.env.bandNamesLandsat).map(self.defringe) landsat7 = ee.ImageCollection('LANDSAT/LE07/C01/T1_SR').filterDate(self.env.startDate,self.env.endDate).filterBounds(studyArea) landsat7 = landsat7.filterMetadata('CLOUD_COVER','less_than',self.env.metadataCloudCoverMax) landsat7 = landsat7.select(self.env.sensorBandDictLandsatSR.get('L7'),self.env.bandNamesLandsat) landsat = landsat5.merge(landsat7).merge(landsat8) if landsat.size().getInfo() > 0: landsat = landsat.map(self.scaleLandsat) # mask clouds using cloud mask function if self.env.cloudMask == True: #print "removing some more clouds" landsat = landsat.map(self.maskClouds) landsat = landsat.select(['cloudScore','pixel_qa']) landsat = self.percentile(landsat,self.env.percentiles) landsat = landsat.set('system:time_start',ee.Date(self.env.startDate).millis()) self.exportMap(landsat,studyArea,week) print(landsat.getInfo()) return landsat def scaleLandsat(self,img): """Landast is scaled by factor 0.0001 """ thermal = img.select(ee.List(['thermal'])).multiply(0.1) scaled = ee.Image(img).select(self.env.divideBands).multiply(ee.Number(0.0001)) return img.select(['pixel_qa']).addBands(scaled).addBands(thermal) def maskClouds(self,img): """ Computes spectral indices of cloudyness and take the minimum of them. Each spectral index is fairly lenient because the group minimum is a somewhat stringent comparison policy. side note -> this seems like a job for machine learning :) originally written by Matt Hancher for Landsat imageryadapted to Sentinel by Chris Hewig and Ian Housman """ score = ee.Image(1.0); # Clouds are reasonably bright in the blue band. blue_rescale = img.select('blue').subtract(ee.Number(0.1)).divide(ee.Number(0.3).subtract(ee.Number(0.1))) score = score.min(blue_rescale); # Clouds are reasonably bright in all visible bands. visible = img.select('red').add(img.select('green')).add(img.select('blue')) visible_rescale = visible.subtract(ee.Number(0.2)).divide(ee.Number(0.8).subtract(ee.Number(0.2))) score = score.min(visible_rescale); # Clouds are reasonably bright in all infrared bands. infrared = img.select('nir').add(img.select('swir1')).add(img.select('swir2')) infrared_rescale = infrared.subtract(ee.Number(0.3)).divide(ee.Number(0.8).subtract(ee.Number(0.3))) score = score.min(infrared_rescale); # Clouds are reasonably cool in temperature. temp_rescale = img.select('thermal').subtract(ee.Number(300)).divide(ee.Number(290).subtract(ee.Number(300))) score = score.min(temp_rescale); # However, clouds are not snow. ndsi = img.normalizedDifference(['green', 'swir1']); ndsi_rescale = ndsi.subtract(ee.Number(0.8)).divide(ee.Number(0.6).subtract(ee.Number(0.8))) score = score.min(ndsi_rescale).multiply(100).byte().rename(['cloudScore']); mask = score.lt(self.env.cloudScoreThresh).rename(['cloudMask']); img = img.updateMask(mask).addBands([mask]).addBands([score]); return img; def defringe(self,img): # threshold for defringing landsat5 and 7 fringeCountThreshold = 279 k = ee.Kernel.fixed(41, 41, [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]]); m = ee.Image(img).mask().reduce(ee.Reducer.min()) sum = m.reduceNeighborhood(ee.Reducer.sum(), k, 'kernel') mask = sum.gte(fringeCountThreshold) return img.updateMask(mask) def percentile(self,collection,p): median = ee.ImageCollection(collection).reduce(ee.Reducer.median()).rename(['cloudScore','pixel_qa']); percentiles = collection.reduce(ee.Reducer.percentile(p)) return median.addBands(percentiles) def exportMap(self,img,studyArea,week): geom = studyArea.getInfo(); sd = str(self.env.startDate.getRelative('day','year').getInfo()).zfill(3); ed = str(self.env.endDate.getRelative('day','year').getInfo()).zfill(3); year = str(self.env.startDate.get('year').getInfo()); regionName = self.env.regionName.replace(" ",'_') + "_" task_ordered= ee.batch.Export.image.toAsset(image=img, description = self.env.name + regionName + str(week).zfill(3) +'_'+ year + sd + ed, assetId= self.env.assetId + self.env.name + regionName + str(week).zfill(3)+'_'+ year + sd + ed, region=geom['coordinates'], maxPixels=1e13, crs=self.env.epsg, scale=self.env.exportScale) task_ordered.start() print(self.env.assetId + self.env.name + regionName + str(week).zfill(3)+'_'+ year + sd + ed) if __name__ == "__main__": ee.Initialize() start = 0 for i in range(0,2,1): #2018 starts at week 104 runNumber = start+ i print runNumber year = ee.Date("2009-01-01") startDay = 0 endDay = 364 startDate = year.advance(startDay,'day').advance(i,'year') endDate = year.advance(endDay,'day').advance(i,'year') regionName = 'ECUADOR' studyArea = ee.FeatureCollection("projects/Sacha/AncillaryData/StudyRegions/Ecuador_EcoRegions_Complete") studyArea = studyArea.geometry().bounds() functions().main(studyArea,startDate,endDate,startDay,endDay,runNumber,regionName)
49.177778
134
0.517322
2,662
13,278
2.558603
0.107062
0.40229
0.589341
0.766995
0.427103
0.370577
0.361474
0.342975
0.316547
0.306857
0
0.1863
0.239193
13,278
269
135
49.360595
0.487923
0.046694
0
0.26087
0
0
0.049171
0.015911
0
0
0
0
0
0
null
null
0
0.062112
null
null
0.018634
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
1
0
0
0
0
0
0
0
0
5
df3cb858c8f979e6360bd656b571ea5ead0faa45
165
py
Python
twitter/tweets/admin.py
vBubbaa/django-twitter
925405dd05cbef3b325b2168663e183b927d8586
[ "MIT" ]
1
2020-02-08T02:16:05.000Z
2020-02-08T02:16:05.000Z
twitter/tweets/admin.py
vBubbaa/django-twitter
925405dd05cbef3b325b2168663e183b927d8586
[ "MIT" ]
5
2020-02-13T22:36:04.000Z
2021-09-22T18:36:50.000Z
twitter/tweets/admin.py
vBubbaa/django-twitter
925405dd05cbef3b325b2168663e183b927d8586
[ "MIT" ]
null
null
null
from django.contrib import admin from tweets.models import Tweet, Comment, Likes admin.site.register(Tweet) admin.site.register(Comment) admin.site.register(Likes)
23.571429
47
0.818182
24
165
5.625
0.5
0.2
0.377778
0
0
0
0
0
0
0
0
0
0.084848
165
6
48
27.5
0.89404
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.4
0
0.4
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
df452d057297999c5291d56048a22f67ca0d30d3
10,809
py
Python
tests/api/v3_1_0/test_identity_groups.py
CiscoISE/ciscoisesdk
860b0fc7cc15d0c2a39c64608195a7ab3d5f4885
[ "MIT" ]
36
2021-05-18T16:24:19.000Z
2022-03-05T13:44:41.000Z
tests/api/v3_1_0/test_identity_groups.py
CiscoISE/ciscoisesdk
860b0fc7cc15d0c2a39c64608195a7ab3d5f4885
[ "MIT" ]
15
2021-06-08T19:03:37.000Z
2022-02-25T14:47:33.000Z
tests/api/v3_1_0/test_identity_groups.py
CiscoISE/ciscoisesdk
860b0fc7cc15d0c2a39c64608195a7ab3d5f4885
[ "MIT" ]
6
2021-06-10T09:32:01.000Z
2022-01-12T08:34:39.000Z
# -*- coding: utf-8 -*- """IdentityServicesEngineAPI identity_groups API fixtures and tests. Copyright (c) 2021 Cisco and/or its affiliates. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ import pytest from fastjsonschema.exceptions import JsonSchemaException from ciscoisesdk.exceptions import MalformedRequest from ciscoisesdk.exceptions import ciscoisesdkException from tests.environment import IDENTITY_SERVICES_ENGINE_VERSION pytestmark = pytest.mark.skipif(IDENTITY_SERVICES_ENGINE_VERSION != '3.1.0', reason='version does not match') def is_valid_get_identity_group_by_name(json_schema_validate, obj): if not obj: return False assert hasattr(obj, 'headers') assert hasattr(obj, 'content') assert hasattr(obj, 'text') assert hasattr(obj, 'response') json_schema_validate('jsd_1f18bdd1938755409bf6db6b29e85d3a_v3_1_0').validate(obj.response) return True def get_identity_group_by_name(api): endpoint_result = api.identity_groups.get_identity_group_by_name( name='string' ) return endpoint_result @pytest.mark.identity_groups def test_get_identity_group_by_name(api, validator): try: assert is_valid_get_identity_group_by_name( validator, get_identity_group_by_name(api) ) except Exception as original_e: with pytest.raises((JsonSchemaException, MalformedRequest)): print("ERROR: {error}".format(error=original_e)) raise original_e def get_identity_group_by_name_default(api): endpoint_result = api.identity_groups.get_identity_group_by_name( name='string' ) return endpoint_result @pytest.mark.identity_groups def test_get_identity_group_by_name_default(api, validator): try: assert is_valid_get_identity_group_by_name( validator, get_identity_group_by_name_default(api) ) except Exception as original_e: with pytest.raises((JsonSchemaException, MalformedRequest, TypeError)): raise original_e def is_valid_get_identity_group_by_id(json_schema_validate, obj): if not obj: return False assert hasattr(obj, 'headers') assert hasattr(obj, 'content') assert hasattr(obj, 'text') assert hasattr(obj, 'response') json_schema_validate('jsd_ca3df31c13b857e6b5dbc8357a8ab010_v3_1_0').validate(obj.response) return True def get_identity_group_by_id(api): endpoint_result = api.identity_groups.get_identity_group_by_id( id='string' ) return endpoint_result @pytest.mark.identity_groups def test_get_identity_group_by_id(api, validator): try: assert is_valid_get_identity_group_by_id( validator, get_identity_group_by_id(api) ) except Exception as original_e: with pytest.raises((JsonSchemaException, MalformedRequest)): print("ERROR: {error}".format(error=original_e)) raise original_e def get_identity_group_by_id_default(api): endpoint_result = api.identity_groups.get_identity_group_by_id( id='string' ) return endpoint_result @pytest.mark.identity_groups def test_get_identity_group_by_id_default(api, validator): try: assert is_valid_get_identity_group_by_id( validator, get_identity_group_by_id_default(api) ) except Exception as original_e: with pytest.raises((JsonSchemaException, MalformedRequest, TypeError)): raise original_e def is_valid_update_identity_group_by_id(json_schema_validate, obj): if not obj: return False assert hasattr(obj, 'headers') assert hasattr(obj, 'content') assert hasattr(obj, 'text') assert hasattr(obj, 'response') json_schema_validate('jsd_1c0689e940ba5526946ad15976cc3365_v3_1_0').validate(obj.response) return True def update_identity_group_by_id(api): endpoint_result = api.identity_groups.update_identity_group_by_id( active_validation=False, description='string', id='string', name='string', parent='string', payload=None ) return endpoint_result @pytest.mark.identity_groups def test_update_identity_group_by_id(api, validator): try: assert is_valid_update_identity_group_by_id( validator, update_identity_group_by_id(api) ) except Exception as original_e: with pytest.raises((JsonSchemaException, MalformedRequest)): print("ERROR: {error}".format(error=original_e)) raise original_e def update_identity_group_by_id_default(api): endpoint_result = api.identity_groups.update_identity_group_by_id( active_validation=False, id='string', description=None, name=None, parent=None, payload=None ) return endpoint_result @pytest.mark.identity_groups def test_update_identity_group_by_id_default(api, validator): try: assert is_valid_update_identity_group_by_id( validator, update_identity_group_by_id_default(api) ) except Exception as original_e: with pytest.raises((JsonSchemaException, MalformedRequest, TypeError)): raise original_e def is_valid_get_identity_groups(json_schema_validate, obj): if not obj: return False assert hasattr(obj, 'headers') assert hasattr(obj, 'content') assert hasattr(obj, 'text') assert hasattr(obj, 'response') json_schema_validate('jsd_9d904c521059563490c4a93871b33d51_v3_1_0').validate(obj.response) return True def get_identity_groups(api): endpoint_result = api.identity_groups.get_identity_groups( filter='value1,value2', filter_type='string', page=0, size=0, sortasc='string', sortdsc='string' ) return endpoint_result @pytest.mark.identity_groups def test_get_identity_groups(api, validator): try: assert is_valid_get_identity_groups( validator, get_identity_groups(api) ) except Exception as original_e: with pytest.raises((JsonSchemaException, MalformedRequest)): print("ERROR: {error}".format(error=original_e)) raise original_e def get_identity_groups_default(api): endpoint_result = api.identity_groups.get_identity_groups( filter=None, filter_type=None, page=None, size=None, sortasc=None, sortdsc=None ) return endpoint_result @pytest.mark.identity_groups def test_get_identity_groups_default(api, validator): try: assert is_valid_get_identity_groups( validator, get_identity_groups_default(api) ) except Exception as original_e: with pytest.raises((JsonSchemaException, MalformedRequest, TypeError)): raise original_e def is_valid_create_identity_group(json_schema_validate, obj): if not obj: return False assert hasattr(obj, 'headers') assert hasattr(obj, 'content') assert hasattr(obj, 'text') assert hasattr(obj, 'response') json_schema_validate('jsd_592250bf19f653f9a5c48d1fb1890409_v3_1_0').validate(obj.response) return True def create_identity_group(api): endpoint_result = api.identity_groups.create_identity_group( active_validation=False, description='string', name='string', parent='string', payload=None ) return endpoint_result @pytest.mark.identity_groups def test_create_identity_group(api, validator): try: assert is_valid_create_identity_group( validator, create_identity_group(api) ) except Exception as original_e: with pytest.raises((JsonSchemaException, MalformedRequest)): print("ERROR: {error}".format(error=original_e)) raise original_e def create_identity_group_default(api): endpoint_result = api.identity_groups.create_identity_group( active_validation=False, description=None, name=None, parent=None, payload=None ) return endpoint_result @pytest.mark.identity_groups def test_create_identity_group_default(api, validator): try: assert is_valid_create_identity_group( validator, create_identity_group_default(api) ) except Exception as original_e: with pytest.raises((JsonSchemaException, MalformedRequest, TypeError)): raise original_e def is_valid_get_version(json_schema_validate, obj): if not obj: return False assert hasattr(obj, 'headers') assert hasattr(obj, 'content') assert hasattr(obj, 'text') assert hasattr(obj, 'response') json_schema_validate('jsd_aab79aee0b455bfea8a6d7c6464a2a09_v3_1_0').validate(obj.response) return True def get_version(api): endpoint_result = api.identity_groups.get_version( ) return endpoint_result @pytest.mark.identity_groups def test_get_version(api, validator): try: assert is_valid_get_version( validator, get_version(api) ) except Exception as original_e: with pytest.raises((JsonSchemaException, MalformedRequest)): print("ERROR: {error}".format(error=original_e)) raise original_e def get_version_default(api): endpoint_result = api.identity_groups.get_version( ) return endpoint_result @pytest.mark.identity_groups def test_get_version_default(api, validator): try: assert is_valid_get_version( validator, get_version_default(api) ) except Exception as original_e: with pytest.raises((JsonSchemaException, MalformedRequest, TypeError)): raise original_e
30.108635
109
0.710056
1,314
10,809
5.542618
0.143075
0.078539
0.067967
0.054373
0.781683
0.772484
0.771111
0.762598
0.760676
0.748867
0
0.018549
0.216949
10,809
358
110
30.192737
0.841919
0.10741
0
0.669118
0
0
0.065138
0.026761
0
0
0
0
0.132353
1
0.110294
false
0
0.018382
0
0.216912
0.022059
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
10c3757c6e05df8208e7be624a2efb8195b9654b
2,885
py
Python
castle.py
PK1210/SuperMario
6b06f130df23ed4f244305deb5dcf85f249ccf78
[ "MIT" ]
11
2018-10-02T17:47:24.000Z
2021-03-24T13:13:48.000Z
castle.py
PrajwalKrishna/SuperMario
6b06f130df23ed4f244305deb5dcf85f249ccf78
[ "MIT" ]
9
2018-10-02T17:42:36.000Z
2018-11-02T05:33:22.000Z
castle.py
PrajwalKrishna/SuperMario
6b06f130df23ed4f244305deb5dcf85f249ccf78
[ "MIT" ]
14
2018-10-02T17:53:26.000Z
2020-01-22T12:27:00.000Z
'''This file makes castles at the end of level''' from obstacles import Obstacle from base import Dimension, Point, FLOOR CASTLE_SHAPE = [ [' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', '/', '\\', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' '], [' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', '/', ' ', ' ', '\\', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' '], [' ', ' ', ' ', ' ', ' ', ' ', '/', '\\', ' ', ' ', ' ', ' ', '/', ' ', ' ', ' ', ' ', '\\', ' ', ' ', ' ', ' ', '/', '\\', ' ', ' ', ' ', ' ', ' ', ' '], [' ', ' ', ' ', ' ', ' ', '/', ' ', ' ', '\\', ' ', ' ', '/', ' ', ' ', ' ', ' ', ' ', ' ', '\\', ' ', ' ', '/', ' ', ' ', '\\', ' ', ' ', ' ', ' ', ' '], [' ', '/', '\\', ' ', 'D', 'D', 'H', 'H', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'H', 'H', 'D', 'D', ' ', '/', '\\', ' '], ['/', ' ', ' ', '\\', 'D', 'D', ' ', ' ', ' ', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', ' ', ' ', ' ', 'D', 'D', '/', ' ', ' ', '\\'], ['D', 'H', 'H', 'D', 'D', 'D', ' ', ' ', ' ', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', ' ', ' ', ' ', 'D', 'D', 'D', 'H', 'H', 'D'], ['D', ' ', ' ', ' ', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', ' ', ' ', ' ', 'D'], ['D', ' ', ' ', ' ', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', ' ', ' ', ' ', 'D'], ['D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', ' ', ' ', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'], ['D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', ' ', ' ', ' ', ' ', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'], ['D', 'D', 'D', 'D', 'H', 'H', 'H', 'D', 'D', 'D', 'D', 'D', ' ', ' ', ' ', ' ', ' ', ' ', 'D', 'D', 'D', 'D', 'D', 'H', 'H', 'H', 'D', 'D', 'D', 'D'], ['D', 'D', 'D', 'D', 'H', 'H', 'H', 'D', 'D', 'D', 'D', 'D', ' ', ' ', ' ', ' ', ' ', ' ', 'D', 'D', 'D', 'D', 'D', 'H', 'H', 'H', 'D', 'D', 'D', 'D'], ['D', 'D', 'D', 'D', 'H', 'H', 'H', 'D', 'D', 'D', 'D', 'D', ' ', ' ', ' ', ' ', ' ', ' ', 'D', 'D', 'D', 'D', 'D', 'H', 'H', 'H', 'D', 'D', 'D', 'D'], ['D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', ' ', ' ', ' ', ' ', ' ', ' ', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'] ] class Castle(Obstacle): '''Castle from mario World ''' def __init__(self, y, board): dimensions = Dimension(15, 30) focus = Point(FLOOR - dimensions.length, y) shape = CASTLE_SHAPE Obstacle.__init__(self, focus, shape, dimensions, board) self.draw()
45.793651
82
0.191334
315
2,885
1.720635
0.111111
0.822878
1.173432
1.490775
0.479705
0.479705
0.479705
0.479705
0.479705
0.479705
0
0.001987
0.302253
2,885
62
83
46.532258
0.267263
0.02357
0
0.243902
0
0
0.164647
0
0
0
0
0
0
1
0.02439
false
0
0.04878
0
0.097561
0
0
0
1
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
5
804517e720353ad604bf55e4e59431e5905fdefd
134
py
Python
chapter5_operations/prediction_monitoring_pattern/src/ml/data.py
sudabon/ml-system-in-actions
4fb1b3e53e4ed7c36e82f7d4b5570e3959aef525
[ "MIT" ]
133
2021-04-24T09:57:58.000Z
2022-03-29T06:23:56.000Z
chapter5_operations/prediction_monitoring_pattern/src/ml/data.py
sudabon/ml-system-in-actions
4fb1b3e53e4ed7c36e82f7d4b5570e3959aef525
[ "MIT" ]
6
2021-04-24T09:58:40.000Z
2021-11-19T04:04:40.000Z
chapter5_operations/prediction_monitoring_pattern/src/ml/data.py
sudabon/ml-system-in-actions
4fb1b3e53e4ed7c36e82f7d4b5570e3959aef525
[ "MIT" ]
40
2021-05-21T23:32:40.000Z
2022-03-30T00:33:08.000Z
from typing import List from pydantic import BaseModel class Data(BaseModel): data: List[List[float]] = [[5.1, 3.5, 1.4, 0.2]]
16.75
52
0.671642
23
134
3.913043
0.652174
0.044444
0
0
0
0
0
0
0
0
0
0.072727
0.179104
134
7
53
19.142857
0.745455
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
8046c89969c91f83312e4296b71f4b2ee0e5d15a
50
py
Python
tests/testutils/repo/__init__.py
gtristan/buildstream-plugins
96206318b2cade5329a64b0f15b362ed57222086
[ "Apache-2.0" ]
null
null
null
tests/testutils/repo/__init__.py
gtristan/buildstream-plugins
96206318b2cade5329a64b0f15b362ed57222086
[ "Apache-2.0" ]
null
null
null
tests/testutils/repo/__init__.py
gtristan/buildstream-plugins
96206318b2cade5329a64b0f15b362ed57222086
[ "Apache-2.0" ]
null
null
null
from .bzrrepo import Bzr from .gitrepo import Git
16.666667
24
0.8
8
50
5
0.75
0
0
0
0
0
0
0
0
0
0
0
0.16
50
2
25
25
0.952381
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
33bc6a09e2391273689172b4bb260920c4499923
208
py
Python
elephunk/records/activity.py
pitluga/elephunk
98649bed91a86b86e008b84093cf85b2d6612b3b
[ "MIT" ]
null
null
null
elephunk/records/activity.py
pitluga/elephunk
98649bed91a86b86e008b84093cf85b2d6612b3b
[ "MIT" ]
1
2021-03-25T21:56:14.000Z
2021-03-25T21:56:14.000Z
elephunk/records/activity.py
pitluga/elephunk
98649bed91a86b86e008b84093cf85b2d6612b3b
[ "MIT" ]
null
null
null
from elephunk.database import Row class Activity(Row): @property def formatted_xact_start(self): if self.xact_start == None: return "" return self.xact_start.isoformat()
20.8
42
0.649038
25
208
5.24
0.68
0.206107
0.198473
0
0
0
0
0
0
0
0
0
0.264423
208
9
43
23.111111
0.856209
0
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0
0.714286
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
5
33df7dca27c2430873eaecf7fc69d16811319be0
2,312
py
Python
Examples/python_server/openapi_server/com/h21lab/TS29573_N32_Handshake/handler/__init__.py
H21lab/5GC_build
bbc8bbd9158a2124ca486572906020a91789733e
[ "Apache-2.0" ]
12
2020-06-04T06:58:13.000Z
2021-12-15T14:26:56.000Z
Examples/python_server/openapi_server/com/h21lab/TS29573_N32_Handshake/handler/__init__.py
H21lab/5GC_build
bbc8bbd9158a2124ca486572906020a91789733e
[ "Apache-2.0" ]
3
2021-05-27T12:13:58.000Z
2021-12-15T05:45:44.000Z
Examples/python_server/openapi_server/com/h21lab/TS29573_N32_Handshake/handler/__init__.py
H21lab/5GC_build
bbc8bbd9158a2124ca486572906020a91789733e
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # flake8: noqa from __future__ import absolute_import # import models into model package from openapi_server.com.h21lab.TS29573_N32_Handshake.handler.api_ie_mapping import ApiIeMapping from openapi_server.com.h21lab.TS29573_N32_Handshake.handler.api_signature import ApiSignature from openapi_server.com.h21lab.TS29573_N32_Handshake.handler.callback_name import CallbackName from openapi_server.com.h21lab.TS29573_N32_Handshake.handler.failed_modification_info import FailedModificationInfo from openapi_server.com.h21lab.TS29573_N32_Handshake.handler.failure_reason import FailureReason from openapi_server.com.h21lab.TS29573_N32_Handshake.handler.http_method import HttpMethod from openapi_server.com.h21lab.TS29573_N32_Handshake.handler.ie_info import IeInfo from openapi_server.com.h21lab.TS29573_N32_Handshake.handler.ie_location import IeLocation from openapi_server.com.h21lab.TS29573_N32_Handshake.handler.ie_type import IeType from openapi_server.com.h21lab.TS29573_N32_Handshake.handler.invalid_param import InvalidParam from openapi_server.com.h21lab.TS29573_N32_Handshake.handler.ipx_provider_sec_info import IpxProviderSecInfo from openapi_server.com.h21lab.TS29573_N32_Handshake.handler.n32f_context_info import N32fContextInfo from openapi_server.com.h21lab.TS29573_N32_Handshake.handler.n32f_error_detail import N32fErrorDetail from openapi_server.com.h21lab.TS29573_N32_Handshake.handler.n32f_error_info import N32fErrorInfo from openapi_server.com.h21lab.TS29573_N32_Handshake.handler.n32f_error_type import N32fErrorType from openapi_server.com.h21lab.TS29573_N32_Handshake.handler.problem_details import ProblemDetails from openapi_server.com.h21lab.TS29573_N32_Handshake.handler.protection_policy import ProtectionPolicy from openapi_server.com.h21lab.TS29573_N32_Handshake.handler.sec_negotiate_req_data import SecNegotiateReqData from openapi_server.com.h21lab.TS29573_N32_Handshake.handler.sec_negotiate_rsp_data import SecNegotiateRspData from openapi_server.com.h21lab.TS29573_N32_Handshake.handler.sec_param_exch_req_data import SecParamExchReqData from openapi_server.com.h21lab.TS29573_N32_Handshake.handler.sec_param_exch_rsp_data import SecParamExchRspData from openapi_server.com.h21lab.TS29573_N32_Handshake.handler.security_capability import SecurityCapability
82.571429
115
0.904412
319
2,312
6.206897
0.244514
0.122222
0.188889
0.222222
0.623737
0.623737
0.623737
0.623737
0.623737
0.387374
0
0.09787
0.045415
2,312
27
116
85.62963
0.799275
0.025519
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
33f227b669535dd2ebed1193bcfa15e5712769fc
21
py
Python
.idea/VirtualEnvironment/Lib/site-packages/tests/outcomes/imports/test_import_absolute_error_circular/main2.py
Vladpetr/NewsPortal
cd4127fbc09d9c8f5e65c8ae699856c6d380a320
[ "Apache-2.0" ]
null
null
null
.idea/VirtualEnvironment/Lib/site-packages/tests/outcomes/imports/test_import_absolute_error_circular/main2.py
Vladpetr/NewsPortal
cd4127fbc09d9c8f5e65c8ae699856c6d380a320
[ "Apache-2.0" ]
5
2021-04-08T22:02:15.000Z
2022-02-10T14:53:45.000Z
.idea/VirtualEnvironment/Lib/site-packages/tests/outcomes/imports/test_import_absolute_error_circular/main2.py
Vladpetr/NewsPortal
cd4127fbc09d9c8f5e65c8ae699856c6d380a320
[ "Apache-2.0" ]
null
null
null
import main x = 1040
7
11
0.714286
4
21
3.75
1
0
0
0
0
0
0
0
0
0
0
0.25
0.238095
21
2
12
10.5
0.6875
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
1
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
5
1d0f7f01a69919bb2bbd31e8fa57e787d45330fa
269
py
Python
regtests/test-all.py
ahakingdom/Rusthon
5b6b78111b62281cd1381e53362c5d4b520ade30
[ "BSD-3-Clause" ]
622
2015-01-01T14:53:51.000Z
2022-03-27T14:52:25.000Z
regtests/test-all.py
ahakingdom/Rusthon
5b6b78111b62281cd1381e53362c5d4b520ade30
[ "BSD-3-Clause" ]
74
2015-01-05T01:24:09.000Z
2021-04-26T00:06:38.000Z
regtests/test-all.py
ahakingdom/Rusthon
5b6b78111b62281cd1381e53362c5d4b520ade30
[ "BSD-3-Clause" ]
67
2015-01-18T22:54:54.000Z
2022-03-01T12:54:23.000Z
import os, subprocess os.chdir( os.path.split(__file__)[0] ) subprocess.check_call(['python', 'test-c++.py']) subprocess.check_call(['python', 'test-go.py']) subprocess.check_call(['python', 'test-javascript.py']) subprocess.check_call(['python', 'test-markdowns.py'])
38.428571
55
0.724907
38
269
4.921053
0.447368
0.320856
0.406417
0.534759
0.652406
0.497326
0
0
0
0
0
0.003922
0.052045
269
6
56
44.833333
0.729412
0
0
0
0
0
0.297398
0
0
0
0
0
0
1
0
true
0
0.166667
0
0.166667
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
1
0
0
0
0
0
0
5
1d1ca093c254f273108febb80072804b5b4d4bd5
56
py
Python
lungs_ml/lungs_ml/visualization_service/__init__.py
dumaevrinat/lung_diseases
caa24a0c263e82106f585b7bcb0c57417fc9a06a
[ "MIT" ]
3
2021-05-09T01:50:41.000Z
2022-01-06T08:07:48.000Z
lungs_ml/lungs_ml/visualization_service/__init__.py
dumaevrinat/lung_diseases
caa24a0c263e82106f585b7bcb0c57417fc9a06a
[ "MIT" ]
null
null
null
lungs_ml/lungs_ml/visualization_service/__init__.py
dumaevrinat/lung_diseases
caa24a0c263e82106f585b7bcb0c57417fc9a06a
[ "MIT" ]
null
null
null
from .visualization_service import VisualizationService
28
55
0.910714
5
56
10
1
0
0
0
0
0
0
0
0
0
0
0
0.071429
56
1
56
56
0.961538
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
1d6a17d00a22259f05f692d122f82f750f1c0096
11,700
py
Python
tests/test_aioweenect.py
eifinger/aioweenect
8617cdf86ca18ec585b0c52657819061a7f363c9
[ "MIT" ]
1
2021-11-30T15:46:14.000Z
2021-11-30T15:46:14.000Z
tests/test_aioweenect.py
eifinger/aioweenect
459f7488e9a780db1c309b5e303df63bc599ed4f
[ "MIT" ]
65
2021-04-19T07:36:25.000Z
2022-03-29T20:15:37.000Z
tests/test_aioweenect.py
eifinger/aioweenect
8617cdf86ca18ec585b0c52657819061a7f363c9
[ "MIT" ]
1
2022-01-17T17:50:57.000Z
2022-01-17T17:50:57.000Z
"""Tests for `aioweenect.aioweenect`.""" import json import os from typing import Any import aiohttp import pytest from aioweenect import AioWeenect API_HOST = "apiv4.weenect.com" API_VERSION = "/v4" @pytest.mark.asyncio async def test_get_user_with_invalid_token(aresponses): """Test getting user information with a timed out token.""" aresponses.add( API_HOST, f"{API_VERSION}/user/login", "POST", response=load_json_fixture("login_response.json"), ) aresponses.add( API_HOST, f"{API_VERSION}/user/100000", "GET", aresponses.Response( body="{" '"description": "Signature has expired",' '"error": "Invalid token",' '"status_code": 401' "}", status=401, ), ) aresponses.add( API_HOST, f"{API_VERSION}/user/login", "POST", response=load_json_fixture("login_response.json"), ) aresponses.add( API_HOST, f"{API_VERSION}/user/100000", "GET", response=load_json_fixture("get_user_response.json"), ) async with aiohttp.ClientSession() as session: aioweenect = AioWeenect(username="user", password="password", session=session) response = await aioweenect.get_user("100000") assert response["postal_code"] == "55128" @pytest.mark.asyncio async def test_get_user(aresponses): """Test getting user information.""" aresponses.add( API_HOST, f"{API_VERSION}/user/login", "POST", response=load_json_fixture("login_response.json"), ) aresponses.add( API_HOST, f"{API_VERSION}/user/100000", "GET", response=load_json_fixture("get_user_response.json"), ) async with aiohttp.ClientSession() as session: aioweenect = AioWeenect(username="user", password="password", session=session) response = await aioweenect.get_user("100000") assert response["postal_code"] == "55128" @pytest.mark.asyncio async def test_get_subscription_offers(aresponses): """Test getting subscription offer information.""" aresponses.add( API_HOST, f"{API_VERSION}/user/login", "POST", response=load_json_fixture("login_response.json"), ) aresponses.add( API_HOST, f"{API_VERSION}/subscriptionoffer", "GET", response=load_json_fixture("get_subscription_offer_response.json"), ) async with aiohttp.ClientSession() as session: aioweenect = AioWeenect(username="user", password="password", session=session) response = await aioweenect.get_subscription_offers() assert ( response["items"][0]["option_offers"][0]["price_offer"]["de"]["amount"] == 199 ) @pytest.mark.asyncio async def test_get_subscription(aresponses): """Test getting subscription information.""" aresponses.add( API_HOST, f"{API_VERSION}/user/login", "POST", response=load_json_fixture("login_response.json"), ) aresponses.add( API_HOST, f"{API_VERSION}/mysubscription/100000", "GET", response=load_json_fixture("get_subscription_response.json"), ) async with aiohttp.ClientSession() as session: aioweenect = AioWeenect(username="user", password="password", session=session) response = await aioweenect.get_subscription("100000") assert response["options"][0]["amount"] == 99 @pytest.mark.asyncio async def test_get_zones(aresponses): """Test getting zone information.""" aresponses.add( API_HOST, f"{API_VERSION}/user/login", "POST", response=load_json_fixture("login_response.json"), ) aresponses.add( API_HOST, f"{API_VERSION}/mytracker/100000/zones", "GET", response=load_json_fixture("get_zones_response.json"), ) async with aiohttp.ClientSession() as session: aioweenect = AioWeenect(username="user", password="password", session=session) response = await aioweenect.get_zones("100000") assert response["items"][0]["distance"] == 100 @pytest.mark.asyncio async def test_add_zone(aresponses): """Test adding a zone.""" aresponses.add( API_HOST, f"{API_VERSION}/user/login", "POST", response=load_json_fixture("login_response.json"), ) aresponses.add( API_HOST, f"{API_VERSION}/mytracker/100000/zones", "POST", response=load_json_fixture("add_zone_response.json"), ) async with aiohttp.ClientSession() as session: aioweenect = AioWeenect(username="user", password="password", session=session) response = await aioweenect.add_zone( tracker_id="100000", address="test", latitude=90.0, longitude=1.0, name="test", ) assert response["number"] == 186177 @pytest.mark.asyncio async def test_remove_zone(aresponses): """Test removing a zone.""" aresponses.add( API_HOST, f"{API_VERSION}/user/login", "POST", response=load_json_fixture("login_response.json"), ) aresponses.add( API_HOST, f"{API_VERSION}/mytracker/100000/zones/100000", "DELETE", aresponses.Response(text="", status=204), ) async with aiohttp.ClientSession() as session: aioweenect = AioWeenect(username="user", password="password", session=session) response = await aioweenect.remove_zone(tracker_id="100000", zone_id="100000") assert response is None @pytest.mark.asyncio async def test_get_position(aresponses): """Test getting position information.""" aresponses.add( API_HOST, f"{API_VERSION}/user/login", "POST", response=load_json_fixture("login_response.json"), ) aresponses.add( API_HOST, f"{API_VERSION}/mytracker/100000/position", "GET", response=load_json_fixture("get_position_response.json"), ) async with aiohttp.ClientSession() as session: aioweenect = AioWeenect(username="user", password="password", session=session) response = await aioweenect.get_position( tracker_id="100000", start="2019-04-14T23:05:00.000Z", end="2019-04-15T23:05:00.000Z", ) assert response[0]["latitude"] == 49.0268016 @pytest.mark.asyncio async def test_get_activity(aresponses): """Test getting activity information.""" aresponses.add( API_HOST, f"{API_VERSION}/user/login", "POST", response=load_json_fixture("login_response.json"), ) aresponses.add( API_HOST, f"{API_VERSION}/mytracker/100000/activity", "GET", response=load_json_fixture("get_activity_response.json"), ) async with aiohttp.ClientSession() as session: aioweenect = AioWeenect(username="user", password="password", session=session) response = await aioweenect.get_activity( tracker_id="100000", start="2019-04-14T23:05:00.000Z", end="2019-04-15T23:05:00.000Z", ) assert response["distance"] == 31246.108984983595 @pytest.mark.asyncio async def test_get_trackers(aresponses): """Test getting tracker information.""" aresponses.add( API_HOST, f"{API_VERSION}/user/login", "POST", response=load_json_fixture("login_response.json"), ) aresponses.add( API_HOST, f"{API_VERSION}/mytracker", "GET", response=load_json_fixture("get_trackers_response.json"), ) async with aiohttp.ClientSession() as session: aioweenect = AioWeenect(username="user", password="password", session=session) response = await aioweenect.get_trackers() assert response["items"][0]["user"]["firstname"] == "Test" @pytest.mark.asyncio async def test_set_update_interval(aresponses): """Test setting the update interval.""" aresponses.add( API_HOST, f"{API_VERSION}/user/login", "POST", response=load_json_fixture("login_response.json"), ) aresponses.add( API_HOST, f"{API_VERSION}/mytracker/100000/mode", "POST", aresponses.Response(text="", status=204), ) async with aiohttp.ClientSession() as session: aioweenect = AioWeenect(username="user", password="password", session=session) response = await aioweenect.set_update_interval( tracker_id="100000", update_interval="30M" ) assert response is None @pytest.mark.asyncio async def test_activate_super_live(aresponses): """Test activating super live mode.""" aresponses.add( API_HOST, f"{API_VERSION}/user/login", "POST", response=load_json_fixture("login_response.json"), ) aresponses.add( API_HOST, f"{API_VERSION}/mytracker/100000/st-mode", "POST", aresponses.Response(text="", status=204), ) async with aiohttp.ClientSession() as session: aioweenect = AioWeenect(username="user", password="password", session=session) response = await aioweenect.activate_super_live(tracker_id="100000") assert response is None @pytest.mark.asyncio async def test_refresh_location(aresponses): """Test requesting a location refresh.""" aresponses.add( API_HOST, f"{API_VERSION}/user/login", "POST", response=load_json_fixture("login_response.json"), ) aresponses.add( API_HOST, f"{API_VERSION}/mytracker/100000/position/refresh", "POST", aresponses.Response(text="", status=204), ) async with aiohttp.ClientSession() as session: aioweenect = AioWeenect(username="user", password="password", session=session) response = await aioweenect.refresh_location(tracker_id="100000") assert response is None @pytest.mark.asyncio async def test_vibrate(aresponses): """Test sending a vibration command.""" aresponses.add( API_HOST, f"{API_VERSION}/user/login", "POST", response=load_json_fixture("login_response.json"), ) aresponses.add( API_HOST, f"{API_VERSION}/mytracker/100000/vibrate", "POST", aresponses.Response(text="", status=204), ) async with aiohttp.ClientSession() as session: aioweenect = AioWeenect(username="user", password="password", session=session) response = await aioweenect.vibrate(tracker_id="100000") assert response is None @pytest.mark.asyncio async def test_ring(aresponses): """Test sending a ring command.""" aresponses.add( API_HOST, f"{API_VERSION}/user/login", "POST", response=load_json_fixture("login_response.json"), ) aresponses.add( API_HOST, f"{API_VERSION}/mytracker/100000/ring", "POST", aresponses.Response(text="", status=204), ) async with aiohttp.ClientSession() as session: aioweenect = AioWeenect(username="user", password="password", session=session) response = await aioweenect.ring(tracker_id="100000") assert response is None def load_json_fixture(filename: str) -> Any: """Load a fixture.""" path = os.path.join(os.path.dirname(__file__), "fixtures", filename) with open(path, encoding="utf-8") as fptr: content = fptr.read() json_content = json.loads(content) return json_content
30
86
0.632479
1,279
11,700
5.609851
0.117279
0.032195
0.071359
0.089199
0.78662
0.774355
0.746063
0.715122
0.701742
0.701742
0
0.037375
0.240769
11,700
389
87
30.077121
0.770348
0.004274
0
0.627329
0
0
0.200778
0.114278
0
0
0
0
0.046584
1
0.003106
false
0.046584
0.018634
0
0.024845
0
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
1d74e97efadd41011e3ccd4342ff340067a56730
91
py
Python
misago/misago/core/testproject/searchfilters.py
vascoalramos/misago-deployment
20226072138403108046c0afad9d99eb4163cedc
[ "MIT" ]
2
2021-03-06T21:06:13.000Z
2021-03-09T15:05:12.000Z
misago/misago/core/testproject/searchfilters.py
vascoalramos/misago-deployment
20226072138403108046c0afad9d99eb4163cedc
[ "MIT" ]
null
null
null
misago/misago/core/testproject/searchfilters.py
vascoalramos/misago-deployment
20226072138403108046c0afad9d99eb4163cedc
[ "MIT" ]
null
null
null
def test_filter(search): return search.replace("MMM", "Marines, Marauders and Medics")
30.333333
65
0.736264
12
91
5.5
0.916667
0
0
0
0
0
0
0
0
0
0
0
0.131868
91
2
66
45.5
0.835443
0
0
0
0
0
0.351648
0
0
0
0
0
0
1
0.5
false
0
0
0.5
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
5
d526a9a8e4a3595c4775593685fa3f51c8e750a7
52
py
Python
app/views/alekseyl/active_record/__init__.py
iu5team/rms
179bba96fd72eacb89e01f8d75d9ab6a4e4a875a
[ "MIT" ]
null
null
null
app/views/alekseyl/active_record/__init__.py
iu5team/rms
179bba96fd72eacb89e01f8d75d9ab6a4e4a875a
[ "MIT" ]
38
2016-04-06T10:29:45.000Z
2016-05-18T19:50:20.000Z
app/views/alekseyl/domain_model/__init__.py
iu5team/rms
179bba96fd72eacb89e01f8d75d9ab6a4e4a875a
[ "MIT" ]
null
null
null
from task import Task from employee import Employee
17.333333
29
0.846154
8
52
5.5
0.5
0
0
0
0
0
0
0
0
0
0
0
0.153846
52
2
30
26
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
d54328cdb3f1811e3f51ee37018b0980f5363da2
194
py
Python
libs/core/cornflow_core/shared/__init__.py
ggsdc/corn
4c17c46a70f95b8882bcb6a55ef7daa1f69e0456
[ "MIT" ]
2
2020-07-09T20:58:47.000Z
2020-07-20T20:40:46.000Z
libs/core/cornflow_core/shared/__init__.py
baobabsoluciones/cornflow
bd7cae22107e5fe148704d5f41d4f58f9c410b40
[ "Apache-2.0" ]
2
2022-03-31T08:42:10.000Z
2022-03-31T12:05:23.000Z
libs/core/cornflow_core/shared/__init__.py
ggsdc/corn
4c17c46a70f95b8882bcb6a55ef7daa1f69e0456
[ "MIT" ]
null
null
null
""" Exposes the objects and functions of the module """ from .utils import db, bcrypt from .validators import ( check_email_pattern, check_password_pattern, validate_and_continue, )
19.4
47
0.747423
25
194
5.56
0.76
0
0
0
0
0
0
0
0
0
0
0
0.180412
194
9
48
21.555556
0.874214
0.242268
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.166667
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
1
1
0
0
0
0
5
d55fcd9b23acbfad6ba762a414d0f98225711151
197
py
Python
partsdb/tools/__init__.py
HaseloffLab/PartsDB
759a7edb9426810344b106ef2629b8ca5d151043
[ "MIT" ]
2
2020-11-23T21:49:52.000Z
2021-12-03T00:21:26.000Z
partsdb/tools/__init__.py
HaseloffLab/PartsDB
759a7edb9426810344b106ef2629b8ca5d151043
[ "MIT" ]
null
null
null
partsdb/tools/__init__.py
HaseloffLab/PartsDB
759a7edb9426810344b106ef2629b8ca5d151043
[ "MIT" ]
null
null
null
from cutGenes import prepareLibrary from compRev import compRev from getUtrCoordinates import getUtrCoordinates from annotateBlastp import annotateBlastp from saveSeqs import saveSequences
39.4
48
0.857868
20
197
8.45
0.45
0
0
0
0
0
0
0
0
0
0
0
0.142132
197
5
49
39.4
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
d5734dbd74c1e8a2ba4dd27012d760b009a2e029
80
py
Python
api-prototype/database/run_dev.py
LandRegistry/land-charges-discovery
60b893b97d6ff77ad552d510d878f622ea66f564
[ "MIT" ]
2
2015-03-31T08:29:44.000Z
2015-04-10T13:56:12.000Z
api-prototype/database/run_dev.py
LandRegistry/land-charges-discovery
60b893b97d6ff77ad552d510d878f622ea66f564
[ "MIT" ]
null
null
null
api-prototype/database/run_dev.py
LandRegistry/land-charges-discovery
60b893b97d6ff77ad552d510d878f622ea66f564
[ "MIT" ]
1
2021-04-11T06:06:06.000Z
2021-04-11T06:06:06.000Z
from service.server import app import os app.run( host="0.0.0.0", debug=True )
16
37
0.7125
16
80
3.5625
0.6875
0.105263
0.105263
0
0
0
0
0
0
0
0
0.057971
0.1375
80
4
38
20
0.768116
0
0
0
0
0
0.0875
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
d58b685571c1568c7b4ccd6ec2e698349c38afcd
65
py
Python
players/__init__.py
gdahia/ufba-ai-minesweeper
ba87df32c430481672a55a5b2c421cd6f97ad443
[ "MIT" ]
null
null
null
players/__init__.py
gdahia/ufba-ai-minesweeper
ba87df32c430481672a55a5b2c421cd6f97ad443
[ "MIT" ]
2
2018-02-08T18:15:45.000Z
2018-02-08T18:18:00.000Z
players/__init__.py
gdahia/ufba-ai-minesweeper
ba87df32c430481672a55a5b2c421cd6f97ad443
[ "MIT" ]
null
null
null
import players.player import players.logical import players.user
16.25
22
0.861538
9
65
6.222222
0.555556
0.696429
0
0
0
0
0
0
0
0
0
0
0.092308
65
3
23
21.666667
0.949153
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
d59270d4067c5d75f231b1e49ed6fb6b6c22efdb
17,996
py
Python
2019/Day13_pretty.py
hrmorley34/AdventofCode
74590422717fb5c6b80ef3fca226359d354c4aec
[ "MIT" ]
null
null
null
2019/Day13_pretty.py
hrmorley34/AdventofCode
74590422717fb5c6b80ef3fca226359d354c4aec
[ "MIT" ]
null
null
null
2019/Day13_pretty.py
hrmorley34/AdventofCode
74590422717fb5c6b80ef3fca226359d354c4aec
[ "MIT" ]
null
null
null
import time import colorama from Day09 import Memory, IntcodeComputer PUZZLE_INPUT = "1,380,379,385,1008,2823,432584,381,1005,381,12,99,109,2824,1101,0,0,383,1101,0,0,382,20102,1,382,1,20102,1,383,2,21102,1,37,0,1105,1,578,4,382,4,383,204,1,1001,382,1,382,1007,382,42,381,1005,381,22,1001,383,1,383,1007,383,26,381,1005,381,18,1006,385,69,99,104,-1,104,0,4,386,3,384,1007,384,0,381,1005,381,94,107,0,384,381,1005,381,108,1105,1,161,107,1,392,381,1006,381,161,1101,-1,0,384,1105,1,119,1007,392,40,381,1006,381,161,1101,0,1,384,21002,392,1,1,21102,24,1,2,21102,0,1,3,21102,138,1,0,1105,1,549,1,392,384,392,20102,1,392,1,21101,0,24,2,21101,0,3,3,21101,161,0,0,1105,1,549,1101,0,0,384,20001,388,390,1,20101,0,389,2,21101,0,180,0,1106,0,578,1206,1,213,1208,1,2,381,1006,381,205,20001,388,390,1,21002,389,1,2,21101,0,205,0,1106,0,393,1002,390,-1,390,1101,1,0,384,20102,1,388,1,20001,389,391,2,21102,1,228,0,1105,1,578,1206,1,261,1208,1,2,381,1006,381,253,21001,388,0,1,20001,389,391,2,21101,253,0,0,1106,0,393,1002,391,-1,391,1102,1,1,384,1005,384,161,20001,388,390,1,20001,389,391,2,21102,1,279,0,1105,1,578,1206,1,316,1208,1,2,381,1006,381,304,20001,388,390,1,20001,389,391,2,21102,1,304,0,1106,0,393,1002,390,-1,390,1002,391,-1,391,1102,1,1,384,1005,384,161,21001,388,0,1,21002,389,1,2,21101,0,0,3,21101,0,338,0,1106,0,549,1,388,390,388,1,389,391,389,21002,388,1,1,20102,1,389,2,21101,4,0,3,21102,1,365,0,1106,0,549,1007,389,25,381,1005,381,75,104,-1,104,0,104,0,99,0,1,0,0,0,0,0,0,380,19,21,1,1,21,109,3,22102,1,-2,1,21201,-1,0,2,21102,1,0,3,21101,0,414,0,1105,1,549,21201,-2,0,1,21202,-1,1,2,21102,1,429,0,1105,1,601,1202,1,1,435,1,386,0,386,104,-1,104,0,4,386,1001,387,-1,387,1005,387,451,99,109,-3,2105,1,0,109,8,22202,-7,-6,-3,22201,-3,-5,-3,21202,-4,64,-2,2207,-3,-2,381,1005,381,492,21202,-2,-1,-1,22201,-3,-1,-3,2207,-3,-2,381,1006,381,481,21202,-4,8,-2,2207,-3,-2,381,1005,381,518,21202,-2,-1,-1,22201,-3,-1,-3,2207,-3,-2,381,1006,381,507,2207,-3,-4,381,1005,381,540,21202,-4,-1,-1,22201,-3,-1,-3,2207,-3,-4,381,1006,381,529,22102,1,-3,-7,109,-8,2105,1,0,109,4,1202,-2,42,566,201,-3,566,566,101,639,566,566,2102,1,-1,0,204,-3,204,-2,204,-1,109,-4,2105,1,0,109,3,1202,-1,42,594,201,-2,594,594,101,639,594,594,20102,1,0,-2,109,-3,2105,1,0,109,3,22102,26,-2,1,22201,1,-1,1,21101,557,0,2,21102,671,1,3,21101,0,1092,4,21101,630,0,0,1105,1,456,21201,1,1731,-2,109,-3,2106,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,2,2,0,0,2,0,0,0,0,0,2,2,2,0,2,2,2,0,0,2,0,0,0,0,0,2,0,2,0,0,2,2,0,2,2,2,0,0,1,1,0,0,2,2,2,0,0,2,0,2,2,2,2,0,0,2,2,0,2,2,2,2,0,0,0,0,2,0,2,0,2,2,2,2,0,2,0,0,0,0,1,1,0,0,2,2,2,2,0,2,0,2,2,2,0,2,0,0,0,2,0,0,2,2,2,2,2,0,2,0,0,0,2,2,0,0,2,2,2,2,2,0,1,1,0,0,2,2,0,0,0,2,0,2,2,2,2,0,0,0,2,0,0,2,2,2,0,0,2,0,0,0,2,2,2,0,2,0,0,0,2,0,2,0,1,1,0,2,0,0,2,2,2,0,2,2,0,2,0,2,0,0,2,0,0,2,0,0,0,0,0,0,0,2,2,0,2,2,0,0,2,2,2,2,2,0,1,1,0,2,0,2,2,2,2,0,2,0,2,0,2,2,0,2,0,2,0,2,2,2,2,0,0,0,2,2,2,2,2,0,0,2,0,0,0,2,0,0,1,1,0,2,0,2,2,2,2,0,2,2,0,2,2,2,2,2,0,2,2,2,2,0,2,2,0,2,0,2,2,2,0,2,2,2,0,2,0,0,0,0,1,1,0,2,0,2,2,2,2,2,2,2,2,0,0,2,0,0,2,2,2,2,2,0,0,0,2,0,2,0,2,2,0,2,2,0,0,0,2,2,2,0,1,1,0,2,0,0,0,0,2,0,0,2,0,2,0,2,0,0,2,2,2,2,2,0,2,0,0,2,0,2,0,2,2,0,0,2,2,0,0,2,0,0,1,1,0,0,2,0,0,0,2,2,0,0,0,0,2,2,0,0,0,2,2,0,2,0,0,2,2,0,2,2,0,0,2,0,2,2,2,0,0,2,2,0,1,1,0,2,2,2,0,0,2,0,2,2,0,0,2,2,2,2,2,0,2,2,0,2,2,2,2,2,0,2,0,0,2,0,2,0,2,0,2,2,2,0,1,1,0,0,2,0,2,0,0,0,0,2,2,2,2,0,0,0,0,0,2,2,0,2,2,0,2,0,2,2,2,2,0,0,0,0,2,2,0,2,2,0,1,1,0,0,0,2,0,2,2,2,2,2,2,0,2,2,0,0,0,2,0,2,2,0,2,2,2,2,0,2,0,2,0,0,2,0,0,2,2,2,2,0,1,1,0,0,0,2,2,0,2,2,0,2,2,0,0,2,0,2,0,0,2,0,2,0,0,2,0,0,2,0,2,2,2,0,2,2,2,2,0,0,2,0,1,1,0,0,0,2,2,0,2,2,2,0,2,2,0,0,2,0,0,2,2,2,0,0,0,2,0,0,2,0,2,0,0,2,0,2,2,2,0,0,0,0,1,1,0,0,2,0,2,0,2,0,0,2,2,2,0,2,2,2,2,0,2,2,0,2,2,0,0,0,0,2,0,0,2,2,2,0,0,0,2,2,2,0,1,1,0,2,2,0,2,2,0,0,0,0,0,2,2,2,0,2,2,2,0,2,2,0,0,2,2,0,2,0,2,0,2,0,2,0,0,0,2,2,2,0,1,1,0,2,2,0,2,2,2,2,0,2,2,2,2,2,2,2,2,2,2,0,2,0,2,2,0,0,2,2,0,2,0,2,2,2,2,0,0,2,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,26,39,93,24,77,14,80,83,52,91,93,34,84,34,71,69,88,90,9,41,47,38,55,55,97,48,94,51,98,36,7,89,44,29,22,82,9,40,55,30,48,6,30,71,85,16,56,22,20,34,83,79,18,54,97,37,1,18,41,60,62,10,90,5,66,35,59,62,46,39,95,95,75,30,47,81,92,86,41,23,4,60,17,68,1,38,93,38,63,57,19,91,76,36,17,39,33,15,10,38,55,89,90,80,33,41,68,68,88,42,31,24,50,74,41,58,69,57,13,97,83,92,25,23,27,13,50,92,41,82,23,31,11,53,10,10,49,53,50,73,58,12,84,58,10,95,1,28,76,2,53,86,66,98,20,88,30,39,21,47,31,30,78,28,74,63,90,91,88,78,10,64,52,91,18,65,20,16,90,76,2,22,18,43,90,5,59,62,60,71,41,66,64,39,32,90,10,61,52,71,46,61,18,53,82,80,53,39,70,71,81,48,17,26,14,19,69,16,68,39,39,86,31,34,4,11,81,32,55,54,12,93,34,49,50,2,64,61,44,89,13,45,64,45,87,92,16,81,83,18,4,96,43,88,74,27,16,78,10,12,31,38,28,84,50,28,75,74,39,42,43,41,16,5,76,95,88,49,22,43,13,95,66,68,32,79,66,26,82,43,25,79,10,2,77,22,19,81,4,92,42,54,67,62,18,9,69,69,24,69,87,6,53,56,22,20,98,85,3,79,35,4,32,96,25,69,59,23,14,92,19,34,73,42,44,45,7,85,8,31,55,68,84,59,4,18,65,19,61,37,72,29,46,67,64,40,46,82,8,50,57,8,59,83,47,22,16,1,58,41,93,56,60,17,95,24,63,48,47,89,23,12,37,82,19,9,74,30,15,65,1,86,88,93,75,73,11,80,88,36,49,62,57,59,75,43,91,47,93,98,65,30,90,50,93,81,58,43,84,58,24,33,17,83,48,45,91,60,40,87,75,94,26,95,81,93,62,68,73,71,77,56,89,49,26,56,26,4,26,63,16,64,77,33,16,93,21,68,63,55,15,65,23,14,45,35,22,3,78,50,83,45,96,69,79,7,20,6,75,64,8,7,71,85,16,68,27,50,88,31,34,50,32,83,48,1,35,50,90,10,59,19,80,61,83,34,59,25,7,41,48,56,10,64,23,14,85,70,77,73,91,17,36,60,2,1,77,89,39,84,89,76,55,77,51,24,43,2,31,50,46,50,62,22,48,86,38,19,13,2,96,80,74,82,54,84,49,7,4,1,86,33,50,7,37,51,4,54,37,91,11,12,29,77,78,55,98,15,34,82,7,28,41,16,42,73,44,62,70,61,20,76,24,95,78,40,44,24,25,29,85,83,39,48,5,64,43,81,12,8,84,37,47,80,62,53,32,29,87,7,8,41,1,72,9,38,58,64,31,6,23,15,31,3,53,56,34,35,30,57,75,13,56,36,7,87,88,22,91,60,64,10,45,91,43,83,50,23,79,87,4,80,51,11,3,60,56,86,19,83,76,75,43,44,35,75,25,97,40,20,11,51,31,1,23,89,35,41,68,33,93,9,74,80,81,58,13,13,22,80,54,21,93,19,40,25,46,85,75,62,15,54,90,12,10,31,49,89,51,13,57,92,3,17,28,84,36,90,21,12,86,44,87,66,58,24,83,55,13,91,21,70,91,50,94,77,90,35,6,72,79,95,20,2,45,50,77,15,3,97,73,94,54,12,64,30,9,26,45,84,34,95,57,15,88,33,47,62,69,62,89,29,60,34,47,13,86,66,86,75,5,29,50,19,65,70,81,51,62,43,21,61,87,39,19,49,48,7,23,62,52,2,17,31,54,97,98,83,76,98,4,30,31,56,11,89,7,75,46,13,62,32,70,83,29,23,53,40,90,28,45,64,9,35,52,39,77,71,24,40,69,66,59,98,53,15,57,83,50,65,75,26,1,83,17,73,75,34,72,11,66,18,50,77,8,26,80,61,33,84,12,52,13,7,30,26,61,23,10,88,3,80,80,49,29,40,90,65,25,89,55,42,13,98,23,3,19,46,5,94,5,19,72,63,2,20,36,26,20,4,51,77,93,2,25,86,12,7,56,12,61,85,53,12,15,10,13,13,50,73,34,86,59,94,40,36,9,95,74,55,13,19,71,60,63,74,26,24,10,5,21,86,93,62,62,34,47,85,26,94,60,25,9,93,57,57,97,80,6,80,48,22,11,77,50,9,20,23,21,15,33,49,8,76,94,2,61,88,10,24,56,47,43,48,39,12,52,66,19,68,35,26,46,93,27,51,72,98,58,1,24,5,5,9,51,61,3,42,76,98,83,90,49,94,74,79,73,4,46,55,62,16,19,35,51,19,39,64,87,2,95,65,66,26,81,67,35,54,51,70,10,63,76,51,82,67,48,78,15,19,27,37,24,63,97,55,97,7,49,72,7,76,25,82,84,56,94,47,48,44,91,10,432584" PUZZLE_INPUT = [int(x) for x in PUZZLE_INPUT.split(",")] colorama.init() IMG_A = """ {RST} {DIM}##########################################{RST} {DIM}#{RST} {DIM}#{RST} {DIM}#{RST} {DIM}#{RST} {DIM}#{RST} {BRG}{MAG}OOOOOO {YEL} OOOOO {GRN}O O {CYN} OOOOO {RST} {DIM}#{RST} {DIM}#{RST} {BRG}{MAG}O O {YEL}O O {GRN}OO O {CYN}O O{RST} {DIM}#{RST} {DIM}#{RST} {BRG}{MAG}O O {YEL}O O {GRN}O O O {CYN}O {RST} {DIM}#{RST} {DIM}#{RST} {BRG}{MAG}OOOOOO {YEL}O O {GRN}O O O {CYN}O {RST} {DIM}#{RST} {DIM}#{RST} {BRG}{MAG}O {YEL}O O {GRN}O O O {CYN}O OOO{RST} {DIM}#{RST} {DIM}#{RST} {BRG}{MAG}O {YEL}O O {GRN}O OO {CYN}O O{RST} {DIM}#{RST} {DIM}#{RST} {BRG}{MAG}O {YEL} OOOOO {GRN}O O {CYN} OOOOO {RST} {DIM}#{RST} {DIM}#{RST} {DIM}#{RST} {DIM}#{RST} {DIM}#{RST} {DIM}#{RST} {DIM}#{RST} {DIM}#{RST} ___ ___ ____ ___ ___ {DIM}#{RST} {DIM}#{RST} | \ | \ | / / {DIM}#{RST} {DIM}#{RST} |__/ |__/ |__ \__ \__ {DIM}#{RST} {DIM}#{RST} | | \ | \ \ {DIM}#{RST} {DIM}#{RST} | | \ |___ ___/ ___/ {DIM}#{RST} {DIM}#{RST} {DIM}#{RST} {DIM}#{RST} ___ ____ __ ___ ____ {DIM}#{RST} {DIM}#{RST} / | / \ | \ | {DIM}#{RST} {DIM}#{RST} \__ | |__| |__/ | {DIM}#{RST} {DIM}#{RST} \ | | | | \ | {DIM}#{RST} {DIM}#{RST} ___/ | | | | \ | {DIM}#{RST} {DIM}#{RST} {DIM}#{RST} """.format(DIM=colorama.Style.DIM, RST=colorama.Style.RESET_ALL, BRG=colorama.Style.BRIGHT, MAG=colorama.Fore.MAGENTA, YEL=colorama.Fore.YELLOW, GRN=colorama.Fore.GREEN, CYN=colorama.Fore.CYAN) IMG_B = """ {RST} {DIM}##########################################{RST} {DIM}#{RST} {DIM}#{RST} {DIM}#{RST} {DIM}#{RST} {DIM}#{RST} {BRG}{MAG}OOOOOO {YEL} OOOOO {GRN}O O {CYN} OOOOO {RST} {DIM}#{RST} {DIM}#{RST} {BRG}{MAG}O O {YEL}O O {GRN}OO O {CYN}O O{RST} {DIM}#{RST} {DIM}#{RST} {BRG}{MAG}O O {YEL}O O {GRN}O O O {CYN}O {RST} {DIM}#{RST} {DIM}#{RST} {BRG}{MAG}OOOOOO {YEL}O O {GRN}O O O {CYN}O {RST} {DIM}#{RST} {DIM}#{RST} {BRG}{MAG}O {YEL}O O {GRN}O O O {CYN}O OOO{RST} {DIM}#{RST} {DIM}#{RST} {BRG}{MAG}O {YEL}O O {GRN}O OO {CYN}O O{RST} {DIM}#{RST} {DIM}#{RST} {BRG}{MAG}O {YEL} OOOOO {GRN}O O {CYN} OOOOO {RST} {DIM}#{RST} {DIM}#{RST} {DIM}#{RST} {DIM}#{RST} {DIM}#{RST} {DIM}#{RST} {DIM}#{RST} {DIM}#{RST} ___ ___ ____ ___ ___ {DIM}#{RST} {DIM}#{RST} | \ | \ | / / {DIM}#{RST} {DIM}#{RST} |__/ |__/ |__ \__ \__ {DIM}#{RST} {DIM}#{RST} | | \ | \ \ {DIM}#{RST} {DIM}#{RST} | | \ |___ ___/ ___/ {DIM}#{RST} {DIM}#{RST} {DIM}#{RST} {DIM}#{RST} {BRG} ___ ____ __ ___ ____ {DIM}#{RST} {DIM}#{RST} {BRG}\ \ \ / | / \ | \ | {DIM}#{RST} {DIM}#{RST} {BRG} \ \ \ \__ | |__| |__/ | {DIM}#{RST} {DIM}#{RST} {BRG} / / / \ | | | | \ | {DIM}#{RST} {DIM}#{RST} {BRG}/ / / ___/ | | | | \ | {DIM}#{RST} {DIM}#{RST} {DIM}#{RST} """.format(DIM=colorama.Style.DIM, RST=colorama.Style.RESET_ALL, BRG=colorama.Style.BRIGHT, MAG=colorama.Fore.MAGENTA, YEL=colorama.Fore.YELLOW, GRN=colorama.Fore.GREEN, CYN=colorama.Fore.CYAN) IMG_C = """ {RST} {DIM}##########################################{RST} {DIM}#{RST} {DIM}#{RST} {DIM}#{RST} {DIM}#{RST} {DIM}#{RST} {DIM}#{RST} {DIM}#{RST} {DIM}#{RST} {DIM}#{RST} {DIM}#{RST} {DIM}#{RST} {DIM}#{RST} {DIM}#{RST} {DIM}#{RST} {DIM}#{RST} {DIM}#{RST} {DIM}#{RST} {DIM}#{RST} {DIM}#{RST} {DIM}#{RST} {DIM}#{RST} {DIM}#{RST} {DIM}#{RST} {DIM}#{RST} {DIM}#{RST} {DIM}#{RST} {DIM}#{RST} {DIM}#{RST} {DIM}#{RST} {DIM}#{RST} {DIM}#{RST} {DIM}#{RST} {DIM}#{RST} {DIM}#{RST} {DIM}#{RST} {DIM}#{RST} {DIM}#{RST} {DIM}#{RST} {DIM}#{RST} {DIM}#{RST} {DIM}#{RST} {DIM}#{RST} {DIM}#{RST} {DIM}#{RST} {DIM}#{RST} {DIM}#{RST} {DIM}#{RST} {DIM}#{RST} """.format(DIM=colorama.Style.DIM, RST=colorama.Style.RESET_ALL) ROW_TWOWALL = "{DIM}#{RST} {DIM}#{RST}\ ".format(DIM=colorama.Style.DIM, RST=colorama.Style.RESET_ALL) def cursor(x, y): return '\x1b[%d;%dH' % (y+1, x+1) def goto_cursor(x, y): print('\x1b[%d;%dH' % (y+1, x+1), end="") print(IMG_A, end="") time.sleep(0.5) try: while True: print(cursor(0,0) + IMG_B, end="") time.sleep(0.5) print(cursor(0,0) + IMG_A, end="") time.sleep(0.5) except KeyboardInterrupt: pass # go onwards time.sleep(0.2) print(cursor(0,0) + IMG_C, end="") time.sleep(1) # PART 2 - pretty! i = IntcodeComputer(PUZZLE_INPUT) i.memory[0] = 2 CHARS = {0: " ", 1: colorama.Style.DIM + "#" + colorama.Style.RESET_ALL, 2: colorama.Style.BRIGHT + colorama.Fore.YELLOW + "O" + colorama.Style.RESET_ALL, 3: colorama.Style.BRIGHT + "-" + colorama.Style.RESET_ALL, 4: colorama.Style.BRIGHT + colorama.Fore.CYAN + "*" + colorama.Style.RESET_ALL, } score = 0 tile_grid = {} i.run_until_input() iteration = 0 while True: while len(i.queue[1]): for n in range(3): op = i.queue[1].pop(0) if n == 0: x = op elif n == 1: y = op elif x == -1 and y == 0: score = op else: tile_grid[(x, y)] = op if i.run_until_input(): break else: if iteration == 0: # first frame sl = [cursor(0,0) + colorama.Fore.CYAN \ + colorama.Style.BRIGHT + str(score).rjust(41, " ") \ + " " + colorama.Style.RESET_ALL] for y in range(0, 25): l = [] for x in range(0, 42): l.append(CHARS[tile_grid.get((x, y), 0)]) sl.append(l) for rows in range(3, 20): # Exclude score row & wall for cols in range(1, 42, 4): # Exclude walls scut = sl[:rows] scut[-1] = scut[-1][:cols] while len(scut[-1]) < 41: scut[-1].append(" ") scut[-1].append(CHARS[1]) while len(scut) < 26: scut.append(ROW_TWOWALL) print(cursor(0,0) + "\n".join( ["".join(r) for r in scut]), end="") print(cursor(0,0) + "\n".join( ["".join(r) for r in sl]), end="") time.sleep(0.5) if True: # every frame s = cursor(0,0) + colorama.Fore.CYAN \ + colorama.Style.BRIGHT + str(score).rjust(41, " ") \ + " " + colorama.Style.RESET_ALL + "\n" for y in range(0, 25): for x in range(0, 42): s += CHARS[tile_grid.get((x, y), 0)] s += "\n" print(s, end="") #inp = input("> ").lower() #if inp in ["a", "l", "-1"]: # i.queue[0].append(-1) #elif inp in ["d", "r", "1", "+1"]: # i.queue[0].append(+1) #else: # default to neutral - " ", "s", "w", "n", "0" # i.queue[0].append(0) # -- USE MEMORY HACKS -- #i.queue[0].append(0) #rap = list(i.memory)[639+42*23:639+42*24] # row above paddle #if 4 in rap: # rwp = list(i.memory)[639+42*24:639+42*25] # row with paddle # i.memory[639+42*24+rwp.index(3)] = 0 # delete old paddle # i.memory[639+42*24+rap.index(4)] = 3 # move paddle under ball # -- USE TOO-HIGH NUMBER -- for n in range(1, 24): rwb = list(i.memory)[639+42*n:639+42*(n+1)] # row with ball if 4 in rwb: break rwp = list(i.memory)[639+42*24:639+42*25] # row with paddle i.queue[0].append(rwb.index(4) - rwp.index(3)) # move paddle under ball # ------------------- i.run_until_input() iteration += 1 while True: for x in range(0, 2): brdm = colorama.Style.BRIGHT if x == 0 else colorama.Style.DIM s = cursor(0,0) + colorama.Fore.CYAN + brdm \ + str(score).rjust(41, " ") + " " + colorama.Style.RESET_ALL + "\n" for y in range(0, 25): for x in range(0, 42): s += CHARS[tile_grid.get((x, y), 0)] s += "\n" s += "\n" print(s, end="") time.sleep(0.5)
84.093458
7,674
0.484108
4,015
17,996
2.131009
0.078705
0.100748
0.111501
0.128565
0.505259
0.457574
0.432211
0.409187
0.401356
0.394226
0
0.36323
0.241665
17,996
213
7,675
84.488263
0.263721
0.038842
0
0.553763
0
0.112903
0.752346
0.452508
0
0
0
0
0
1
0.010753
false
0.005376
0.016129
0.005376
0.026882
0.048387
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
1
0
0
0
0
0
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
d59bcbcf157c342c4c3ae8e2b67a6d5833fe44e4
188
py
Python
docsie_universal_importer/providers/dropbox/urls.py
LikaloLLC/docsie-universal-doc-importer
8db9c705971c71f0152b0d4177ea6eb241021843
[ "BSD-3-Clause" ]
null
null
null
docsie_universal_importer/providers/dropbox/urls.py
LikaloLLC/docsie-universal-doc-importer
8db9c705971c71f0152b0d4177ea6eb241021843
[ "BSD-3-Clause" ]
16
2021-06-16T15:00:41.000Z
2021-06-30T11:57:15.000Z
docsie_universal_importer/providers/dropbox/urls.py
LikaloLLC/docsie-universal-doc-importer
8db9c705971c71f0152b0d4177ea6eb241021843
[ "BSD-3-Clause" ]
1
2021-11-17T19:24:45.000Z
2021-11-17T19:24:45.000Z
from docsie_universal_importer.providers.base.urls import default_urlpatterns from .import_provider import DropboxOAuth2Provider urlpatterns = default_urlpatterns(DropboxOAuth2Provider)
31.333333
77
0.893617
19
188
8.578947
0.631579
0.220859
0
0
0
0
0
0
0
0
0
0.011429
0.069149
188
5
78
37.6
0.92
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
5
d59fd2d6da9c09172cd192f955cab61225beac2d
9,072
py
Python
iliad/integrators/stateful/softabs_euler.py
JamesBrofos/Iliad
2220e1e519f479e402072f80f4bc67e419842c4e
[ "MIT" ]
1
2022-03-24T20:32:54.000Z
2022-03-24T20:32:54.000Z
iliad/integrators/stateful/softabs_euler.py
JamesBrofos/Iliad
2220e1e519f479e402072f80f4bc67e419842c4e
[ "MIT" ]
null
null
null
iliad/integrators/stateful/softabs_euler.py
JamesBrofos/Iliad
2220e1e519f479e402072f80f4bc67e419842c4e
[ "MIT" ]
null
null
null
import copy from typing import Tuple import numpy as np from odyssey.distribution import Distribution from iliad.integrators.info import SoftAbsLeapfrogInfo from iliad.integrators.states import SoftAbsLeapfrogState from iliad.integrators.terminal import cond from iliad.integrators.fields import riemannian, softabs def momentum_step( val: Tuple[np.ndarray, np.ndarray, int], step_size: float, state: SoftAbsLeapfrogState, ) -> Tuple[np.ndarray, np.ndarray, int]: """Computes the update to the momentum variable using the equations of motion determined by the SoftAbs metric. Args: val: A tuple containing the current guess for the fixed point of the momentum, the difference between the momentum at this fixed point iteration and the last, and the number of fixed point iterations considered so far. step_size: The integration step-size. state: The current state of the SoftAbs metric system. Returns: pm: The updated momentum variable. delta: The difference between the updated momentum variable and the guess. num_iters: The number of fixed point iterations attempted so far. """ pmcand, _, num_iters = val f = softabs.force(pmcand, state.grad_log_posterior, state.jac_hessian, state.hessian_eigenvals, state.softabs_eigenvals, state.softabs_inv_eigenvals, state.hessian_eigenvecs, state.alpha) pm = state.momentum + step_size * f delta = pm - pmcand num_iters += 1 return pm, delta, num_iters def position_step( val: Tuple[np.ndarray, np.ndarray, int], step_size: float, distr: Distribution, state: SoftAbsLeapfrogState, ) -> Tuple[np.ndarray, np.ndarray, int]: """Computes the update to the position variable using the equations of motion determined by the SoftAbs metric. Args: val: A tuple containing the current guess for the fixed point of the position, the difference between the position at this fixed point iteration and the last, and the number of fixed point iterations considered so far. step_size: The integration step-size. distr: The distribution that guides the time evolution of the Euclidean Hamiltonian trajectory. state: The current state of the SoftAbs metric system. Returns: qn: The updated momentum variable. delta; The difference between the updated position variable and the guess. num_iters: The number of fixed point iterations attempted so far. """ qncand, _, num_iters = val H = distr.hessian(qncand) l, U, lt, inv_lt, metric, inv_metric = softabs.decomposition(H, state.alpha) newvel = inv_metric@state.momentum qn = state.position + step_size * newvel delta = qn - qncand num_iters += 1 return qn, delta, num_iters def euler_a_single_step( distr: Distribution, state: SoftAbsLeapfrogState, info: SoftAbsLeapfrogInfo, step_size: float, thresh: float, max_iters: int, ) -> Tuple[SoftAbsLeapfrogState, SoftAbsLeapfrogInfo]: """The Euler-A integrator is a symplectic map that integrates Hamilton's equations of motion for a general non-separable Hamiltonian. It updates the position implicitly and then computes an explicit update to the momentum variable. Args: distr: The distribution that guides the time evolution of the Euclidean Hamiltonian trajectory. state: An object containing the position and momentum variables of the state in phase space, and possibly previously computed log-posterior, metrics, and gradients. info: An object that keeps track of the number of fixed point iterations and whether or not integration has been successful. step_size: Integration step-size. thresh: Convergence tolerance for fixed point iterations. max_iters: Maximum number of fixed point iterations. Returns: state: An augmented state object with the updated position and momentum and values for the log-posterior and metric and their gradients. info: An augmented information object with the updated number of fixed point iterations and boolean indicator for successful integration. """ # Unpack the position and momentum. qo, po = state.position, state.momentum num_dims = len(qo) # Precompute the initial difference vector, which is set to be an array of # infinite values. delta = np.inf*np.ones(num_dims) # Fixed point iteration to solve the implicit update to the position. val = (qo + step_size*state.velocity, delta, 0) while cond(val, thresh, max_iters): val = position_step(val, step_size, distr, state) qn, delta, num_iters = val success = np.max(np.abs(delta)) < thresh # Update the state with the new position and compute the updated momentum. state.position = qn state.update(distr) state.momentum += step_size*state.force info.num_iters_pos += num_iters info.success &= success return state, info def euler_b_single_step( distr: Distribution, state: SoftAbsLeapfrogState, info: SoftAbsLeapfrogInfo, step_size: float, thresh: float, max_iters: int, ) -> Tuple[SoftAbsLeapfrogState, SoftAbsLeapfrogInfo]: """The Euler-B integrator is a symplectic map that integrates Hamilton's equations of motion for a general non-separable Hamiltonian. It updates the momentum implicitly and then computes an explicit update to the position variable. Args: distr: The distribution that guides the time evolution of the Euclidean Hamiltonian trajectory. state: An object containing the position and momentum variables of the state in phase space, and possibly previously computed log-posterior, metrics, and gradients. info: An object that keeps track of the number of fixed point iterations and whether or not integration has been successful. step_size: Integration step-size. thresh: Convergence tolerance for fixed point iterations. max_iters: Maximum number of fixed point iterations. Returns: state: An augmented state object with the updated position and momentum and values for the log-posterior and metric and their gradients. info: An augmented information object with the updated number of fixed point iterations and boolean indicator for successful integration. """ # Unpack the position and momentum. qo, po = state.position, state.momentum num_dims = len(qo) # Precompute the initial difference vector, which is set to be an array of # infinite values. delta = np.inf*np.ones(num_dims) # Fixed point iteration to solve the implicit update to the momentum. val = (po + step_size*state.force, delta, 0) while cond(val, thresh, max_iters): val = momentum_step(val, step_size, state) pn, delta, num_iters = val vn = state.inv_metric@pn success = np.max(np.abs(delta)) < thresh # Update the state's new position. state.momentum = pn state.velocity = vn state.position += step_size*vn state.update(distr) info.num_iters_mom += num_iters info.success &= success return state, info def softabs_euler_a( state: SoftAbsLeapfrogState, step_size: float, num_steps: int, distr: Distribution, thresh: float, max_iters: int, ) -> Tuple[SoftAbsLeapfrogState, SoftAbsLeapfrogInfo]: state = copy.copy(state) info = SoftAbsLeapfrogInfo() for i in range(num_steps): state, info = euler_a_single_step( distr, state, info, step_size, thresh, max_iters, ) L = np.linalg.cholesky(state.metric) state.velocity = state.inv_metric.dot(state.momentum) state.sqrtm_metric = L state.logdet_metric = 2.0*np.sum(np.log(np.diag(L))) return state, info def softabs_euler_b( state: SoftAbsLeapfrogState, step_size: float, num_steps: int, distr: Distribution, thresh: float, max_iters: int, ) -> Tuple[SoftAbsLeapfrogState, SoftAbsLeapfrogInfo]: state = copy.copy(state) info = SoftAbsLeapfrogInfo() for i in range(num_steps): state, info = euler_b_single_step( distr, state, info, step_size, thresh, max_iters, ) L = np.linalg.cholesky(state.metric) state.velocity = state.inv_metric.dot(state.momentum) state.sqrtm_metric = L state.logdet_metric = 2.0*np.sum(np.log(np.diag(L))) return state, info
37.028571
81
0.666777
1,139
9,072
5.22827
0.166813
0.032242
0.040302
0.030227
0.788245
0.780521
0.775987
0.775987
0.775987
0.734005
0
0.00121
0.271054
9,072
244
82
37.180328
0.899289
0.463183
0
0.619403
0
0
0
0
0
0
0
0
0
1
0.044776
false
0
0.059701
0
0.149254
0
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
63389c79b88b385041f88940082d14d787e5f0f8
443
py
Python
djecommerce/settings/production.py
IHIMEKPEN/Pegasus
572e2af1f2bcd34f4d1a126a2225ee57cbfabd69
[ "MIT" ]
null
null
null
djecommerce/settings/production.py
IHIMEKPEN/Pegasus
572e2af1f2bcd34f4d1a126a2225ee57cbfabd69
[ "MIT" ]
null
null
null
djecommerce/settings/production.py
IHIMEKPEN/Pegasus
572e2af1f2bcd34f4d1a126a2225ee57cbfabd69
[ "MIT" ]
null
null
null
from .base import * DEBUG = config('DEBUG', cast=bool) ALLOWED_HOSTS = ['*'] AUTH_PASSWORD_VALIDATORS = [ {'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator'}, {'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator'}, {'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator'}, {'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator'} ]
34.076923
89
0.758465
41
443
8.02439
0.487805
0.182371
0.206687
0.255319
0.474164
0.474164
0
0
0
0
0
0
0.094808
443
12
90
36.916667
0.820449
0
0
0
0
0
0.640271
0.590498
0
0
0
0
0
1
0
false
0.555556
0.111111
0
0.111111
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
1
1
null
0
0
0
0
0
0
0
1
0
0
0
0
0
5
634127c132f83e8d628f2b778cf43248b08ac691
82
py
Python
server/equationObject.py
petnica-rac-seminari/stunning-calculator-2021
a438e96fa1fc5c152f2cc954653d813e163fc22c
[ "MIT" ]
1
2021-11-05T18:51:13.000Z
2021-11-05T18:51:13.000Z
server/equationObject.py
petnica-rac-seminari/stunning-calculator-2021
a438e96fa1fc5c152f2cc954653d813e163fc22c
[ "MIT" ]
null
null
null
server/equationObject.py
petnica-rac-seminari/stunning-calculator-2021
a438e96fa1fc5c152f2cc954653d813e163fc22c
[ "MIT" ]
null
null
null
from pydantic import BaseModel class EquationObject(BaseModel): equation: str
20.5
32
0.804878
9
82
7.333333
0.888889
0
0
0
0
0
0
0
0
0
0
0
0.146341
82
4
33
20.5
0.942857
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
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
1
0
1
0
1
0
0
5
6377eebb2cce1865b526d1e3e109d9b40686e838
123
py
Python
test/__init__.py
KnowledgeCaptureAndDiscovery/sosen
5a3efb67cb8de04e85dc47a041693d3e671d4ca6
[ "Apache-2.0" ]
4
2020-06-13T15:40:20.000Z
2020-09-21T02:09:29.000Z
test/__init__.py
KnowledgeCaptureAndDiscovery/sosen
5a3efb67cb8de04e85dc47a041693d3e671d4ca6
[ "Apache-2.0" ]
18
2020-06-23T00:00:14.000Z
2021-07-07T10:43:27.000Z
test/__init__.py
KnowledgeCaptureAndDiscovery/sosen
5a3efb67cb8de04e85dc47a041693d3e671d4ca6
[ "Apache-2.0" ]
null
null
null
import unittest from .test_data_to_graph import * from .end_to_end import * if __name__ == "__main__": unittest.main()
20.5
33
0.747967
18
123
4.388889
0.611111
0
0
0
0
0
0
0
0
0
0
0
0.154472
123
6
34
20.5
0.759615
0
0
0
0
0
0.064516
0
0
0
0
0
0
1
0
true
0
0.6
0
0.6
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
63c1af2604223a350ec25c689f4539fe3c6841ce
337
py
Python
object_store_sdk/client.py
easyopsapis/easyops-api-python
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
[ "Apache-2.0" ]
5
2019-07-31T04:11:05.000Z
2021-01-07T03:23:20.000Z
object_store_sdk/client.py
easyopsapis/easyops-api-python
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
[ "Apache-2.0" ]
null
null
null
object_store_sdk/client.py
easyopsapis/easyops-api-python
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import object_store_sdk.api.object_store.object_store_client class Client(object): def __init__(self, server_ip="", server_port=0, service_name=""): self.object_store = object_store_sdk.api.object_store.object_store_client.ObjectStoreClient(server_ip, server_port, service_name)
28.083333
137
0.72997
45
337
5
0.444444
0.342222
0.226667
0.293333
0.4
0.4
0.4
0.4
0.4
0
0
0.007042
0.15727
337
11
138
30.636364
0.785211
0.062315
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.25
0
0.75
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
5
8960c97e16d08772630c4388ec57102ca2e16343
112
py
Python
modeler/api/__init__.py
yngtodd/modeler
30c32687eed1aca01e0249e2ee5d1a8e9c52eace
[ "MIT" ]
null
null
null
modeler/api/__init__.py
yngtodd/modeler
30c32687eed1aca01e0249e2ee5d1a8e9c52eace
[ "MIT" ]
null
null
null
modeler/api/__init__.py
yngtodd/modeler
30c32687eed1aca01e0249e2ee5d1a8e9c52eace
[ "MIT" ]
null
null
null
from .node import ( Node, HierarchicalNode ) from .interaction import Interaction from .scene import Scene
16
36
0.767857
13
112
6.615385
0.461538
0
0
0
0
0
0
0
0
0
0
0
0.178571
112
6
37
18.666667
0.934783
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.6
0
0.6
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
89689307b6e6d0e13d250f40976739bfe45fcce5
152
py
Python
tests/docs/test_async_constructor.py
adriangb/di
f277bb7189c8e8bde41170afb3181e6600b06be8
[ "MIT" ]
57
2021-09-28T00:48:08.000Z
2022-03-16T16:50:39.000Z
tests/docs/test_async_constructor.py
adriangb/di
f277bb7189c8e8bde41170afb3181e6600b06be8
[ "MIT" ]
59
2021-09-25T00:06:22.000Z
2022-03-31T15:49:36.000Z
tests/docs/test_async_constructor.py
adriangb/di
f277bb7189c8e8bde41170afb3181e6600b06be8
[ "MIT" ]
3
2021-12-31T10:03:03.000Z
2021-12-31T16:07:54.000Z
import pytest from docs_src.async_constructor import main @pytest.mark.anyio("asyncio") async def test_async_constructor() -> None: await main()
16.888889
43
0.763158
21
152
5.333333
0.714286
0.285714
0
0
0
0
0
0
0
0
0
0
0.138158
152
8
44
19
0.854962
0
0
0
0
0
0.046053
0
0
0
0
0
0
1
0
true
0
0.4
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
1
0
0
0
0
5
8976d16e102ca14294269632b6ece9c997565d20
1,311
py
Python
test/unittests/test_AnimalN.py
mudkipmaster/gwlf-e
9e058445537dd32d1916f76c4b73ca64261771cd
[ "Apache-2.0" ]
null
null
null
test/unittests/test_AnimalN.py
mudkipmaster/gwlf-e
9e058445537dd32d1916f76c4b73ca64261771cd
[ "Apache-2.0" ]
6
2018-07-24T22:46:28.000Z
2018-07-29T19:13:09.000Z
test/unittests/test_AnimalN.py
mudkipmaster/gwlf-e
9e058445537dd32d1916f76c4b73ca64261771cd
[ "Apache-2.0" ]
1
2018-07-24T18:22:01.000Z
2018-07-24T18:22:01.000Z
import numpy as np from VariableUnittest import VariableUnitTest from gwlfe.Output.AvAnimalNSum import AnimalN class TestAnimalN(VariableUnitTest): def test_AnimalN(self): z = self.z np.testing.assert_array_almost_equal( AnimalN.AnimalN_f(z.NYrs, z.NGPctManApp, z.GrazingAnimal_0, z.NumAnimals, z.AvgAnimalWt, z.AnimalDailyN, z.NGAppNRate, z.Prec, z.DaysMonth, z.NGPctSoilIncRate, z.GRPctManApp, z.GRAppNRate, z.GRPctSoilIncRate, z.NGBarnNRate, z.AWMSNgPct, z.NgAWMSCoeffN, z.RunContPct, z.RunConCoeffN, z.PctGrazing, z.GRBarnNRate, z.AWMSGrPct, z.GrAWMSCoeffN, z.PctStreams, z.GrazingNRate), AnimalN.AnimalN(z.NYrs, z.NGPctManApp, z.GrazingAnimal_0, z.NumAnimals, z.AvgAnimalWt, z.AnimalDailyN, z.NGAppNRate, z.Prec, z.DaysMonth, z.NGPctSoilIncRate, z.GRPctManApp, z.GRAppNRate, z.GRPctSoilIncRate, z.NGBarnNRate, z.AWMSNgPct, z.NgAWMSCoeffN, z.RunContPct, z.RunConCoeffN, z.PctGrazing, z.GRBarnNRate, z.AWMSGrPct, z.GrAWMSCoeffN, z.PctStreams, z.GrazingNRate), decimal=7)
57
117
0.601068
135
1,311
5.785185
0.362963
0.012804
0.015365
0.043534
0.717029
0.717029
0.717029
0.717029
0.717029
0.717029
0
0.003315
0.309687
1,311
22
118
59.590909
0.859669
0
0
0.421053
0
0
0
0
0
0
0
0
0.052632
1
0.052632
false
0
0.157895
0
0.263158
0
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
89a58a1846906edbfdde012d125821a0afd62e44
191
py
Python
matplotlib-tuxing.py
jinghuquan/jing2019-1-7
ccd1f47bd1bbbe9df8ca747a1716a168724645f3
[ "MIT" ]
null
null
null
matplotlib-tuxing.py
jinghuquan/jing2019-1-7
ccd1f47bd1bbbe9df8ca747a1716a168724645f3
[ "MIT" ]
null
null
null
matplotlib-tuxing.py
jinghuquan/jing2019-1-7
ccd1f47bd1bbbe9df8ca747a1716a168724645f3
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt plt.rcParams['font.sans-aerif'] = ['SimHei'] # 用来正常显示中文标签 dete = ['2018/7/21', '2018/7/22', '2018/7/23', '2018/7/24', '2018/7/25', '2018/7/26', '2018/7/21']
38.2
98
0.628272
34
191
3.529412
0.588235
0.291667
0.116667
0
0
0
0
0
0
0
0
0.28655
0.104712
191
5
98
38.2
0.415205
0.052356
0
0
0
0
0.466667
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
5
982406bef6487190b7c376e72a6a1801186677b9
207
py
Python
addons/mendeley/views.py
gaybro8777/osf.io
30408511510a40bc393565817b343ef5fd76ab14
[ "Apache-2.0" ]
628
2015-01-15T04:33:22.000Z
2022-03-30T06:40:10.000Z
addons/mendeley/views.py
gaybro8777/osf.io
30408511510a40bc393565817b343ef5fd76ab14
[ "Apache-2.0" ]
4,712
2015-01-02T01:41:53.000Z
2022-03-30T14:18:40.000Z
addons/mendeley/views.py
Johnetordoff/osf.io
de10bf249c46cede04c78f7e6f7e352c69e6e6b5
[ "Apache-2.0" ]
371
2015-01-12T16:14:08.000Z
2022-03-31T18:58:29.000Z
# -*- coding: utf-8 -*- from .provider import MendeleyCitationsProvider from website.citations.views import GenericCitationViews mendeley_views = GenericCitationViews('mendeley', MendeleyCitationsProvider)
34.5
76
0.826087
18
207
9.444444
0.666667
0.329412
0
0
0
0
0
0
0
0
0
0.005291
0.086957
207
5
77
41.4
0.89418
0.101449
0
0
0
0
0.043478
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
5
985ae5e5fab9906b35fcc63215a4454b16e701b9
148
py
Python
__init__.py
dx1983/qgis-server-font-loader
70864cd73fc801f48959586cd73222a5a53fb6c9
[ "MIT" ]
2
2020-03-20T22:11:01.000Z
2020-03-30T13:29:24.000Z
__init__.py
dx1983/qgis-server-font-loader
70864cd73fc801f48959586cd73222a5a53fb6c9
[ "MIT" ]
1
2019-12-09T11:50:32.000Z
2019-12-09T11:50:32.000Z
__init__.py
dx1983/qgis-server-font-loader
70864cd73fc801f48959586cd73222a5a53fb6c9
[ "MIT" ]
1
2019-09-18T14:18:58.000Z
2019-09-18T14:18:58.000Z
# -*- coding: utf-8 -*- def serverClassFactory(serverIface): from .FontLoader import FontLoaderServer return FontLoaderServer(serverIface)
24.666667
44
0.75
13
148
8.538462
0.846154
0
0
0
0
0
0
0
0
0
0
0.007937
0.148649
148
5
45
29.6
0.873016
0.141892
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
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
1
0
0
1
0
1
0
0
5
985fcbf557c4a3a96c93db1fd6cbf0f34388424a
2,865
py
Python
views/__init__.py
darshanshewale/facerecognition
4c38af9fa80cc429b543301f56bad89cf4575e0c
[ "MIT" ]
66
2020-05-13T08:31:30.000Z
2022-02-07T09:14:36.000Z
views/__init__.py
darshanshewale/facerecognition
4c38af9fa80cc429b543301f56bad89cf4575e0c
[ "MIT" ]
2
2020-10-05T14:31:19.000Z
2021-05-02T01:09:34.000Z
views/__init__.py
darshanshewale/facerecognition
4c38af9fa80cc429b543301f56bad89cf4575e0c
[ "MIT" ]
54
2020-05-17T17:23:36.000Z
2022-03-31T10:02:44.000Z
from flask import render_template, request, redirect, url_for, session from app import app from model import * @app.route('/', methods=["GET"]) def home(): if "username" in session: return render_template('index.html') else: return render_template('login.html') # Register new user @app.route('/register', methods=["GET", "POST"]) def register(): if request.method == "GET": return render_template("register.html") elif request.method == "POST": registerUser() return redirect(url_for("login")) #Check if email already exists in the registratiion page @app.route('/checkusername', methods=["POST"]) def check(): return checkusername() # Everything Login (Routes to renderpage, check if username exist and also verifypassword through Jquery AJAX request) @app.route('/login', methods=["GET"]) def login(): if request.method == "GET": if "username" not in session: return render_template("login.html") else: return redirect(url_for("home")) @app.route('/checkloginusername', methods=["POST"]) def checkUserlogin(): return checkloginusername() @app.route('/checkloginpassword', methods=["POST"]) def checkUserpassword(): return checkloginpassword() #The admin logout @app.route('/logout', methods=["GET"]) # URL for logout def logout(): # logout function session.pop('username', None) # remove user session return redirect(url_for("home")) # redirect to home page with message #Forgot Password @app.route('/forgot-password', methods=["GET"]) def forgotpassword(): return render_template('forgot-password.html') #404 Page @app.route('/404', methods=["GET"]) def errorpage(): return render_template("404.html") #Blank Page @app.route('/blank', methods=["GET"]) def blank(): return render_template('blank.html') #Buttons Page @app.route('/buttons', methods=["GET"]) def buttons(): return render_template("buttons.html") #Cards Page @app.route('/cards', methods=["GET"]) def cards(): return render_template('cards.html') #Charts Page @app.route('/charts', methods=["GET"]) def charts(): return render_template("charts.html") #Tables Page @app.route('/tables', methods=["GET"]) def tables(): return render_template("tables.html") #Utilities-animation @app.route('/utilities-animation', methods=["GET"]) def utilitiesanimation(): return render_template("utilities-animation.html") #Utilities-border @app.route('/utilities-border', methods=["GET"]) def utilitiesborder(): return render_template("utilities-border.html") #Utilities-color @app.route('/utilities-color', methods=["GET"]) def utilitiescolor(): return render_template("utilities-color.html") #utilities-other @app.route('/utilities-other', methods=["GET"]) def utilitiesother(): return render_template("utilities-other.html")
27.548077
118
0.693543
344
2,865
5.718023
0.241279
0.073208
0.152517
0.058973
0.073208
0
0
0
0
0
0
0.00367
0.144154
2,865
103
119
27.815534
0.798532
0.151134
0
0.086957
0
0
0.21393
0.018657
0
0
0
0
0
1
0.26087
true
0.086957
0.043478
0.202899
0.608696
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
1
0
1
1
0
0
5
986aee8d089b1b4e1657cf289df6ac77af06606b
172
py
Python
clubadmin/config/memadmin.py
rpmoseley/clubadmin
35d0094ea5e97e8478ca021ab8e422cebbc26263
[ "MIT" ]
null
null
null
clubadmin/config/memadmin.py
rpmoseley/clubadmin
35d0094ea5e97e8478ca021ab8e422cebbc26263
[ "MIT" ]
null
null
null
clubadmin/config/memadmin.py
rpmoseley/clubadmin
35d0094ea5e97e8478ca021ab8e422cebbc26263
[ "MIT" ]
null
null
null
''' This module provides the configuration information for the database used by the memadmin sub-package of the ClubAdmin package. ''' from .options import DefaultOptions
24.571429
79
0.802326
23
172
6
0.826087
0
0
0
0
0
0
0
0
0
0
0
0.145349
172
6
80
28.666667
0.938776
0.732558
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
987bfba07c3fe2b397548a2e702f0a9f745d4301
40
py
Python
bot/__init__.py
SmartManoj/run-py-bot
50a8081f4641e2f28eed2045980b769286d583f7
[ "MIT" ]
null
null
null
bot/__init__.py
SmartManoj/run-py-bot
50a8081f4641e2f28eed2045980b769286d583f7
[ "MIT" ]
null
null
null
bot/__init__.py
SmartManoj/run-py-bot
50a8081f4641e2f28eed2045980b769286d583f7
[ "MIT" ]
null
null
null
'''Run Python Code on Telegram [BOT]'''
20
39
0.65
6
40
4.333333
1
0
0
0
0
0
0
0
0
0
0
0
0.15
40
1
40
40
0.764706
0.825
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
7f33705e60b51074500793c86dc70434d8862fd6
1,808
py
Python
plenum/test/cli/mock_output.py
steptan/indy-plenum
488bf63c82753a74a92ac6952da784825ffd4a3d
[ "Apache-2.0" ]
null
null
null
plenum/test/cli/mock_output.py
steptan/indy-plenum
488bf63c82753a74a92ac6952da784825ffd4a3d
[ "Apache-2.0" ]
null
null
null
plenum/test/cli/mock_output.py
steptan/indy-plenum
488bf63c82753a74a92ac6952da784825ffd4a3d
[ "Apache-2.0" ]
2
2017-12-13T21:14:54.000Z
2021-06-06T15:48:03.000Z
from prompt_toolkit.output import Output class MockOutput(Output): def __init__(self, recorder=None): self.writes = [] self.recorder = recorder def fileno(self): raise NotImplementedError def cursor_up(self, amount): raise NotImplementedError def erase_screen(self): raise NotImplementedError def hide_cursor(self): raise NotImplementedError def set_attributes(self, attrs): pass def enable_mouse_support(self): raise NotImplementedError def clear_title(self): raise NotImplementedError def quit_alternate_screen(self): raise NotImplementedError def enable_autowrap(self): pass def erase_end_of_line(self): raise NotImplementedError def cursor_backward(self, amount): raise NotImplementedError def flush(self): pass def disable_autowrap(self): raise NotImplementedError def erase_down(self): raise NotImplementedError def cursor_forward(self, amount): raise NotImplementedError def cursor_goto(self, row=0, column=0): raise NotImplementedError def disable_mouse_support(self): raise NotImplementedError def show_cursor(self): raise NotImplementedError def cursor_down(self, amount): raise NotImplementedError def enter_alternate_screen(self): raise NotImplementedError def set_title(self, title): raise NotImplementedError def write_raw(self, data): raise NotImplementedError def write(self, data): self.writes.append(data) if self.recorder: self.recorder.write(data) def reset_attributes(self): pass def scroll_buffer_to_prompt(self): pass
21.270588
43
0.667588
190
1,808
6.168421
0.3
0.389079
0.437713
0.317406
0.477816
0.151877
0
0
0
0
0
0.001516
0.270465
1,808
84
44
21.52381
0.887036
0
0
0.421053
0
0
0
0
0
0
0
0
0
1
0.45614
false
0.087719
0.017544
0
0.491228
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
5
7f46362d80cf6fead566192dc045614cf4e69cb1
502
py
Python
src/node/typing.py
onurkaraman/perseus
0adbacf4d98ac1ee20319be3e4189ebe6fb3ba94
[ "MIT" ]
3
2015-09-03T23:35:21.000Z
2021-02-28T13:13:59.000Z
src/node/typing.py
onurkaraman/perseus
0adbacf4d98ac1ee20319be3e4189ebe6fb3ba94
[ "MIT" ]
null
null
null
src/node/typing.py
onurkaraman/perseus
0adbacf4d98ac1ee20319be3e4189ebe6fb3ba94
[ "MIT" ]
1
2016-07-05T16:55:45.000Z
2016-07-05T16:55:45.000Z
import types def getClassName(object): return object.__class__.__name__ def isList(object): return type(object) == types.ListType def isPrimitive(object): return type(object) in {types.IntType, types.StringType, types.FloatType} def isNone(object): return type(object) == types.NoneType def isBoolean(object): return type(object) == types.BooleanType def isExpressionContext(object): return getClassName(object) in {'Load', 'Store', 'Del', 'AugLoad', 'AugStore', 'Param'}
25.1
91
0.7251
59
502
6.033898
0.457627
0.202247
0.179775
0.247191
0.227528
0
0
0
0
0
0
0
0.145418
502
19
92
26.421053
0.829837
0
0
0
0
0
0.063745
0
0
0
0
0
0
1
0.461538
false
0
0.076923
0.461538
1
0
0
0
0
null
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
5