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
746ad24f4c6d8c4a95e7552e3e0e1d8b16c80e9f
48
py
Python
test_data.py
dutch213/pt-voicebox
8fd13c64dda26de450e815f38b66a14df23fb536
[ "MIT" ]
null
null
null
test_data.py
dutch213/pt-voicebox
8fd13c64dda26de450e815f38b66a14df23fb536
[ "MIT" ]
null
null
null
test_data.py
dutch213/pt-voicebox
8fd13c64dda26de450e815f38b66a14df23fb536
[ "MIT" ]
1
2019-09-30T01:31:25.000Z
2019-09-30T01:31:25.000Z
text_small = 'A penny saved is a penny earned.'
24
47
0.729167
9
48
3.777778
0.777778
0.352941
0
0
0
0
0
0
0
0
0
0
0.1875
48
1
48
48
0.871795
0
0
0
0
0
0.666667
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
749bb59129a6576576ecde1f4772d372a4d7c768
190
py
Python
hello.py
sokjc/BuildWeekGitDemo
84de601f7ad09be331afae51ed5015ccb42fcaec
[ "MIT" ]
null
null
null
hello.py
sokjc/BuildWeekGitDemo
84de601f7ad09be331afae51ed5015ccb42fcaec
[ "MIT" ]
4
2019-11-13T23:20:40.000Z
2019-11-13T23:33:29.000Z
hello.py
sokjc/BuildWeekGitDemo
84de601f7ad09be331afae51ed5015ccb42fcaec
[ "MIT" ]
null
null
null
""" Prints Hello World """ def say_hi(name): return f'Hello {name}!' def say_bye(name): return f'Bye {name}' if __name__ == 'main': say_hi("World!") say_bye("World!")
11.176471
27
0.578947
28
190
3.642857
0.428571
0.117647
0.215686
0
0
0
0
0
0
0
0
0
0.231579
190
16
28
11.875
0.69863
0.094737
0
0
0
0
0.240741
0
0
0
0
0
0
1
0.285714
false
0
0
0.285714
0.571429
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
77b7c508ab80180b8a316697ed6fefab12ac5aa0
10,756
py
Python
tests/test_vectors/did_doc/did_doc_bob.py
alex-polosky/didcomm-python
955866024c9f6191df9c5a898cc77e1979781eae
[ "Apache-2.0" ]
8
2021-09-04T19:28:18.000Z
2021-12-22T16:00:18.000Z
tests/test_vectors/did_doc/did_doc_bob.py
alex-polosky/didcomm-python
955866024c9f6191df9c5a898cc77e1979781eae
[ "Apache-2.0" ]
4
2021-07-27T23:44:33.000Z
2021-10-13T13:29:39.000Z
tests/test_vectors/did_doc/did_doc_bob.py
alex-polosky/didcomm-python
955866024c9f6191df9c5a898cc77e1979781eae
[ "Apache-2.0" ]
7
2021-07-22T08:19:13.000Z
2022-01-04T14:46:38.000Z
from authlib.common.encoding import json_dumps from didcomm.common.types import ( VerificationMethodType, VerificationMaterial, VerificationMaterialFormat, ) from didcomm.did_doc.did_doc import VerificationMethod, DIDDoc, DIDCommService from didcomm.protocols.routing.forward import ( PROFILE_DIDCOMM_V2, PROFILE_DIDCOMM_AIP2_ENV_RFC587, ) BOB_VERIFICATION_METHOD_KEY_AGREEM_X25519_1 = VerificationMethod( id="did:example:bob#key-x25519-1", controller="did:example:bob#key-x25519-1", type=VerificationMethodType.JSON_WEB_KEY_2020, verification_material=VerificationMaterial( format=VerificationMaterialFormat.JWK, value=json_dumps( { "kty": "OKP", "crv": "X25519", "x": "GDTrI66K0pFfO54tlCSvfjjNapIs44dzpneBgyx0S3E", } ), ), ) BOB_VERIFICATION_METHOD_KEY_AGREEM_X25519_2 = VerificationMethod( id="did:example:bob#key-x25519-2", controller="did:example:bob#key-x25519-2", type=VerificationMethodType.JSON_WEB_KEY_2020, verification_material=VerificationMaterial( format=VerificationMaterialFormat.JWK, value=json_dumps( { "kty": "OKP", "crv": "X25519", "x": "UT9S3F5ep16KSNBBShU2wh3qSfqYjlasZimn0mB8_VM", } ), ), ) BOB_VERIFICATION_METHOD_KEY_AGREEM_X25519_3 = VerificationMethod( id="did:example:bob#key-x25519-3", controller="did:example:bob#key-x25519-3", type=VerificationMethodType.JSON_WEB_KEY_2020, verification_material=VerificationMaterial( format=VerificationMaterialFormat.JWK, value=json_dumps( { "kty": "OKP", "crv": "X25519", "x": "82k2BTUiywKv49fKLZa-WwDi8RBf0tB0M8bvSAUQ3yY", } ), ), ) BOB_VERIFICATION_METHOD_KEY_AGREEM_X25519_NOT_IN_SECRETS_1 = VerificationMethod( id="did:example:bob#key-x25519-not-secrets-1", controller="did:example:bob#key-x25519-not-secrets-1", type=VerificationMethodType.JSON_WEB_KEY_2020, verification_material=VerificationMaterial( format=VerificationMaterialFormat.JWK, value=json_dumps( { "kty": "OKP", "crv": "X25519", "x": "82k2BTUiywKv49fKLZa-WwDi8RBf0tB0M8bvSAUQ3yY", } ), ), ) BOB_VERIFICATION_METHOD_KEY_AGREEM_P256_1 = VerificationMethod( id="did:example:bob#key-p256-1", controller="did:example:bob#key-p256-1", type=VerificationMethodType.JSON_WEB_KEY_2020, verification_material=VerificationMaterial( format=VerificationMaterialFormat.JWK, value=json_dumps( { "kty": "EC", "crv": "P-256", "x": "FQVaTOksf-XsCUrt4J1L2UGvtWaDwpboVlqbKBY2AIo", "y": "6XFB9PYo7dyC5ViJSO9uXNYkxTJWn0d_mqJ__ZYhcNY", } ), ), ) BOB_VERIFICATION_METHOD_KEY_AGREEM_P256_2 = VerificationMethod( id="did:example:bob#key-p256-2", controller="did:example:bob#key-p256-2", type=VerificationMethodType.JSON_WEB_KEY_2020, verification_material=VerificationMaterial( format=VerificationMaterialFormat.JWK, value=json_dumps( { "kty": "EC", "crv": "P-256", "x": "n0yBsGrwGZup9ywKhzD4KoORGicilzIUyfcXb1CSwe0", "y": "ov0buZJ8GHzV128jmCw1CaFbajZoFFmiJDbMrceCXIw", } ), ), ) BOB_VERIFICATION_METHOD_KEY_AGREEM_P256_NOT_IN_SECRETS_1 = VerificationMethod( id="did:example:bob#key-p256-not-secrets-1", controller="did:example:bob#key-p256-not-secrets-1", type=VerificationMethodType.JSON_WEB_KEY_2020, verification_material=VerificationMaterial( format=VerificationMaterialFormat.JWK, value=json_dumps( { "kty": "EC", "crv": "P-256", "x": "n0yBsGrwGZup9ywKhzD4KoORGicilzIUyfcXb1CSwe0", "y": "ov0buZJ8GHzV128jmCw1CaFbajZoFFmiJDbMrceCXIw", } ), ), ) BOB_VERIFICATION_METHOD_KEY_AGREEM_P384_1 = VerificationMethod( id="did:example:bob#key-p384-1", controller="did:example:bob#key-p384-1", type=VerificationMethodType.JSON_WEB_KEY_2020, verification_material=VerificationMaterial( format=VerificationMaterialFormat.JWK, value=json_dumps( { "kty": "EC", "crv": "P-384", "x": "MvnE_OwKoTcJVfHyTX-DLSRhhNwlu5LNoQ5UWD9Jmgtdxp_kpjsMuTTBnxg5RF_Y", "y": "X_3HJBcKFQEG35PZbEOBn8u9_z8V1F9V1Kv-Vh0aSzmH-y9aOuDJUE3D4Hvmi5l7", } ), ), ) BOB_VERIFICATION_METHOD_KEY_AGREEM_P384_2 = VerificationMethod( id="did:example:bob#key-p384-2", controller="did:example:bob#key-p384-2", type=VerificationMethodType.JSON_WEB_KEY_2020, verification_material=VerificationMaterial( format=VerificationMaterialFormat.JWK, value=json_dumps( { "kty": "EC", "crv": "P-384", "x": "2x3HOTvR8e-Tu6U4UqMd1wUWsNXMD0RgIunZTMcZsS-zWOwDgsrhYVHmv3k_DjV3", "y": "W9LLaBjlWYcXUxOf6ECSfcXKaC3-K9z4hCoP0PS87Q_4ExMgIwxVCXUEB6nf0GDd", } ), ), ) BOB_VERIFICATION_METHOD_KEY_AGREEM_P384_NOT_IN_SECRETS_1 = VerificationMethod( id="did:example:bob#key-p384-not-secrets-1", controller="did:example:bob#key-p384-not-secrets-1", type=VerificationMethodType.JSON_WEB_KEY_2020, verification_material=VerificationMaterial( format=VerificationMaterialFormat.JWK, value=json_dumps( { "kty": "EC", "crv": "P-384", "x": "2x3HOTvR8e-Tu6U4UqMd1wUWsNXMD0RgIunZTMcZsS-zWOwDgsrhYVHmv3k_DjV3", "y": "W9LLaBjlWYcXUxOf6ECSfcXKaC3-K9z4hCoP0PS87Q_4ExMgIwxVCXUEB6nf0GDd", } ), ), ) BOB_VERIFICATION_METHOD_KEY_AGREEM_P521_1 = VerificationMethod( id="did:example:bob#key-p521-1", controller="did:example:bob#key-p521-1", type=VerificationMethodType.JSON_WEB_KEY_2020, verification_material=VerificationMaterial( format=VerificationMaterialFormat.JWK, value=json_dumps( { "kty": "EC", "crv": "P-521", "x": "Af9O5THFENlqQbh2Ehipt1Yf4gAd9RCa3QzPktfcgUIFADMc4kAaYVViTaDOuvVS2vMS1KZe0D5kXedSXPQ3QbHi", "y": "ATZVigRQ7UdGsQ9j-omyff6JIeeUv3CBWYsZ0l6x3C_SYqhqVV7dEG-TafCCNiIxs8qeUiXQ8cHWVclqkH4Lo1qH", } ), ), ) BOB_VERIFICATION_METHOD_KEY_AGREEM_P521_2 = VerificationMethod( id="did:example:bob#key-p521-2", controller="did:example:bob#key-p521-2", type=VerificationMethodType.JSON_WEB_KEY_2020, verification_material=VerificationMaterial( format=VerificationMaterialFormat.JWK, value=json_dumps( { "kty": "EC", "crv": "P-521", "x": "ATp_WxCfIK_SriBoStmA0QrJc2pUR1djpen0VdpmogtnKxJbitiPq-HJXYXDKriXfVnkrl2i952MsIOMfD2j0Ots", "y": "AEJipR0Dc-aBZYDqN51SKHYSWs9hM58SmRY1MxgXANgZrPaq1EeGMGOjkbLMEJtBThdjXhkS5VlXMkF0cYhZELiH", } ), ), ) BOB_VERIFICATION_METHOD_KEY_AGREEM_P521_NOT_IN_SECRETS_1 = VerificationMethod( id="did:example:bob#key-p521-not-secrets-1", controller="did:example:bob#key-p521-not-secrets-1", type=VerificationMethodType.JSON_WEB_KEY_2020, verification_material=VerificationMaterial( format=VerificationMaterialFormat.JWK, value=json_dumps( { "kty": "EC", "crv": "P-521", "x": "ATp_WxCfIK_SriBoStmA0QrJc2pUR1djpen0VdpmogtnKxJbitiPq-HJXYXDKriXfVnkrl2i952MsIOMfD2j0Ots", "y": "AEJipR0Dc-aBZYDqN51SKHYSWs9hM58SmRY1MxgXANgZrPaq1EeGMGOjkbLMEJtBThdjXhkS5VlXMkF0cYhZELiH", } ), ), ) DID_DOC_BOB_SPEC_TEST_VECTORS = DIDDoc( did="did:example:bob", authentication_kids=[], key_agreement_kids=[ "did:example:bob#key-x25519-1", "did:example:bob#key-x25519-2", "did:example:bob#key-x25519-3", "did:example:bob#key-p256-1", "did:example:bob#key-p256-2", "did:example:bob#key-p384-1", "did:example:bob#key-p384-2", "did:example:bob#key-p521-1", "did:example:bob#key-p521-2", ], didcomm_services=[], verification_methods=[ BOB_VERIFICATION_METHOD_KEY_AGREEM_X25519_1, BOB_VERIFICATION_METHOD_KEY_AGREEM_X25519_2, BOB_VERIFICATION_METHOD_KEY_AGREEM_X25519_3, BOB_VERIFICATION_METHOD_KEY_AGREEM_P256_1, BOB_VERIFICATION_METHOD_KEY_AGREEM_P256_2, BOB_VERIFICATION_METHOD_KEY_AGREEM_P384_1, BOB_VERIFICATION_METHOD_KEY_AGREEM_P384_2, BOB_VERIFICATION_METHOD_KEY_AGREEM_P521_1, BOB_VERIFICATION_METHOD_KEY_AGREEM_P521_2, ], ) DID_DOC_BOB_WITH_NO_SECRETS = DIDDoc( did="did:example:bob", authentication_kids=[], key_agreement_kids=[ "did:example:bob#key-x25519-1", "did:example:bob#key-x25519-2", "did:example:bob#key-x25519-3", "did:example:bob#key-x25519-not-secrets-1", "did:example:bob#key-p256-1", "did:example:bob#key-p256-2", "did:example:bob#key-p256-not-secrets-1", "did:example:bob#key-p384-1", "did:example:bob#key-p384-2", "did:example:bob#key-p384-not-secrets-1", "did:example:bob#key-p521-1", "did:example:bob#key-p521-2", "did:example:bob#key-p521-not-secrets-1", ], didcomm_services=[ DIDCommService( id="did:example:123456789abcdefghi#didcomm-1", service_endpoint="http://example.com/path", accept=[PROFILE_DIDCOMM_V2, PROFILE_DIDCOMM_AIP2_ENV_RFC587], routing_keys=["did:example:mediator1#key-x25519-1"], ) ], verification_methods=[ BOB_VERIFICATION_METHOD_KEY_AGREEM_X25519_1, BOB_VERIFICATION_METHOD_KEY_AGREEM_X25519_2, BOB_VERIFICATION_METHOD_KEY_AGREEM_X25519_3, BOB_VERIFICATION_METHOD_KEY_AGREEM_X25519_NOT_IN_SECRETS_1, BOB_VERIFICATION_METHOD_KEY_AGREEM_P256_1, BOB_VERIFICATION_METHOD_KEY_AGREEM_P256_2, BOB_VERIFICATION_METHOD_KEY_AGREEM_P256_NOT_IN_SECRETS_1, BOB_VERIFICATION_METHOD_KEY_AGREEM_P384_1, BOB_VERIFICATION_METHOD_KEY_AGREEM_P384_2, BOB_VERIFICATION_METHOD_KEY_AGREEM_P384_NOT_IN_SECRETS_1, BOB_VERIFICATION_METHOD_KEY_AGREEM_P521_1, BOB_VERIFICATION_METHOD_KEY_AGREEM_P521_2, BOB_VERIFICATION_METHOD_KEY_AGREEM_P521_NOT_IN_SECRETS_1, ], )
37.217993
112
0.660469
1,064
10,756
6.343985
0.109962
0.077037
0.096296
0.113778
0.864741
0.864741
0.841037
0.758519
0.68237
0.68237
0
0.085572
0.235125
10,756
288
113
37.347222
0.734897
0
0
0.588028
0
0
0.287282
0.263853
0
0
0
0
0
1
0
false
0
0.014085
0
0.014085
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
77deb6b0b2b69eb932f58c7e25975217e421516f
22
py
Python
mlcomp/__version__.py
gorogoroyasu/mlcomp
fc6572ca5b226b35df97f13badd4420b30468a3b
[ "Apache-2.0" ]
null
null
null
mlcomp/__version__.py
gorogoroyasu/mlcomp
fc6572ca5b226b35df97f13badd4420b30468a3b
[ "Apache-2.0" ]
null
null
null
mlcomp/__version__.py
gorogoroyasu/mlcomp
fc6572ca5b226b35df97f13badd4420b30468a3b
[ "Apache-2.0" ]
null
null
null
__version__ = '19.10'
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
bb355912d7fb50cdb37068323738ea4163fbb501
50
py
Python
restful_client_lite/contrib/__init__.py
huandzh/restful-client-lite
565eae3da1ea09faa5e5c35f091b1ddbbdf63821
[ "MIT" ]
null
null
null
restful_client_lite/contrib/__init__.py
huandzh/restful-client-lite
565eae3da1ea09faa5e5c35f091b1ddbbdf63821
[ "MIT" ]
3
2020-03-24T17:27:19.000Z
2021-02-02T22:17:37.000Z
restful_client_lite/contrib/__init__.py
huandzh/restful-client-lite
565eae3da1ea09faa5e5c35f091b1ddbbdf63821
[ "MIT" ]
1
2019-07-23T08:30:07.000Z
2019-07-23T08:30:07.000Z
import restful_client_lite.contrib.aliyun # noqa
25
49
0.84
7
50
5.714286
1
0
0
0
0
0
0
0
0
0
0
0
0.1
50
1
50
50
0.888889
0.08
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
bb4dfb7f23b6a26a727b0b35f07c14a2065781f5
88
py
Python
hysynth/pwl/adaptation/__init__.py
HySynth/HySynth
b33b34ff5db138b5d007d0dcd32d53c9f8964b62
[ "MIT" ]
4
2021-03-05T11:18:35.000Z
2021-12-09T18:51:32.000Z
hysynth/pwl/adaptation/__init__.py
HySynth/HySynth
b33b34ff5db138b5d007d0dcd32d53c9f8964b62
[ "MIT" ]
null
null
null
hysynth/pwl/adaptation/__init__.py
HySynth/HySynth
b33b34ff5db138b5d007d0dcd32d53c9f8964b62
[ "MIT" ]
null
null
null
from .modecreation import wrapper_adapt_ha as adapt_ha from .relaxation import relax_ha
29.333333
54
0.863636
14
88
5.142857
0.642857
0.194444
0
0
0
0
0
0
0
0
0
0
0.113636
88
2
55
44
0.923077
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
24889a82e929ca9de22dd78076a6b0391908580e
102
py
Python
vanadis/__init__.py
CyanideCN/vanadis
ebd2373fb55d5913eb1384ab434e083fe714ecab
[ "MIT" ]
1
2019-12-01T11:31:23.000Z
2019-12-01T11:31:23.000Z
vanadis/__init__.py
CyanideCN/vanadis
ebd2373fb55d5913eb1384ab434e083fe714ecab
[ "MIT" ]
null
null
null
vanadis/__init__.py
CyanideCN/vanadis
ebd2373fb55d5913eb1384ab434e083fe714ecab
[ "MIT" ]
2
2019-09-24T00:46:24.000Z
2019-12-01T11:31:24.000Z
from vanadis.colormap import Colormap from vanadis.palette import parse_palette __version__ = '0.0.3'
25.5
41
0.823529
15
102
5.266667
0.6
0.278481
0
0
0
0
0
0
0
0
0
0.032967
0.107843
102
4
42
25.5
0.835165
0
0
0
0
0
0.048544
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
70002a880015aa89c74a21252da3a7d2ee75bbee
175
py
Python
fake-logs.py
vdyc/fake-logs
2c3ad03a9e75601e0678b16fef74da40e7869c39
[ "MIT" ]
11
2018-05-31T01:44:44.000Z
2021-12-06T02:37:08.000Z
fake-logs.py
vdyc/fake-logs
2c3ad03a9e75601e0678b16fef74da40e7869c39
[ "MIT" ]
1
2018-06-29T23:33:58.000Z
2018-06-29T23:33:58.000Z
fake-logs.py
knil-sama/fake-logs
efabb85f5c183e8883dd2b4b2c5a1f150ee37ae2
[ "MIT" ]
7
2018-06-28T22:54:27.000Z
2021-12-07T02:13:57.000Z
# pylint: disable=C0103 from fake_logs.fake_logs_cli import run_from_cli # Run this module with "python fake-logs.py <arguments>" if __name__ == "__main__": run_from_cli()
21.875
56
0.765714
28
175
4.25
0.642857
0.201681
0.168067
0
0
0
0
0
0
0
0
0.026316
0.131429
175
7
57
25
0.756579
0.434286
0
0
0
0
0.083333
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
700f2d05287bd203c86f26dabfc48c57f6d67bc9
36
py
Python
{{ cookiecutter.repo_name }}/test/__init__.py
jakebrinkmann/waldo-jakebrinkmann
a625bff7ba9a3319968f7512d8bfa05408737dcf
[ "MIT" ]
null
null
null
{{ cookiecutter.repo_name }}/test/__init__.py
jakebrinkmann/waldo-jakebrinkmann
a625bff7ba9a3319968f7512d8bfa05408737dcf
[ "MIT" ]
null
null
null
{{ cookiecutter.repo_name }}/test/__init__.py
jakebrinkmann/waldo-jakebrinkmann
a625bff7ba9a3319968f7512d8bfa05408737dcf
[ "MIT" ]
null
null
null
"""Common testing configuration. """
18
32
0.722222
3
36
8.666667
1
0
0
0
0
0
0
0
0
0
0
0
0.083333
36
2
33
18
0.787879
0.805556
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
701cfb2d1769c68fa4f8e83e56f740618bdd189e
660
py
Python
python/p206.py
wephy/project-euler
cc4824478282d3e1514a1bf7a1821b938db5bfcb
[ "MIT" ]
null
null
null
python/p206.py
wephy/project-euler
cc4824478282d3e1514a1bf7a1821b938db5bfcb
[ "MIT" ]
1
2021-06-07T19:03:35.000Z
2021-06-07T19:03:35.000Z
python/p206.py
wephy/project-euler
cc4824478282d3e1514a1bf7a1821b938db5bfcb
[ "MIT" ]
null
null
null
hCt9qspZX3CUTwBX9HG6GQABhqCAAAAAAGE5SZ3Re54kLcex66CI4XpifZAnr8jtsdFAT949S9OHHBCU6J215RnnL47iCvKVfYe18MA6qanH-eDqIHbM3DSPy_4sYAVbG371PL5QJCu9McMdHJ0RfdzvpQGMD2V6FjUZeYLtwqLpY0uO-meMPQsZx-MCwPKb3hEGwQQI-CdVHgSAMycDOujcJjcrdhmJrGHIW8DjVdQFITJccIAgUfBg7yJrhof2ZErJR-NrSsRsOhbC9MLKNl2pQvJA76NK1I45ZRURmWD22V_1iaiZ50FLs5bkSswmzY7q2fYxg08PfyobcuwEJ7MpoYgFenIYyFLfSZ2VaKzZZmPCTeWIU29Em4Ub4lSS_oJuniuGyHtaFywrQG2D6WKGHUWZRRYsEMOzIHdFUXElpEqCjg352Z-B619evI7b1xAEaOXUnMCeJ38xKzWG1rEq7gyFlpA8pTyuGRXB_oJAscg4KRgzBE6PRfSVjM5iS-Fh27Wwzmpo-tivXZm9_sYi8Pat2zMcNc1fyesErr2E2OER8Ief0ypfNOdT2XEBf0MHjg8S70cyZ5pYNGqZgonYP3NxunNmCjEOXGETFWEUIMz57xSbJ7Qc2aSJg-qgjBy82UpNatiTXfUR5g==
660
660
0.983333
15
660
42.933333
1
0
0
0
0
0
0
0
0
0
0
0.159091
0
660
1
660
660
0.816667
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0
1
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
5
7022cd02cfe4d0cce479a5c2234c0a6dcff7d4fc
126
py
Python
src/fractal/world/state.py
jedhsu/fractal
97833ddc5063fae72352cf590738fef508c02f0c
[ "MIT" ]
null
null
null
src/fractal/world/state.py
jedhsu/fractal
97833ddc5063fae72352cf590738fef508c02f0c
[ "MIT" ]
null
null
null
src/fractal/world/state.py
jedhsu/fractal
97833ddc5063fae72352cf590738fef508c02f0c
[ "MIT" ]
null
null
null
""" World State =========== A type of world state described by fractums. # [TODO] clarify """ class WorldState: pass
9
44
0.603175
15
126
5.066667
0.866667
0.263158
0
0
0
0
0
0
0
0
0
0
0.222222
126
13
45
9.692308
0.77551
0.690476
0
0
0
0
0
0
0
0
0
0.076923
0
1
0
true
0.5
0
0
0.5
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
1
1
0
0
0
0
0
5
70847caa255b9b8d9745b8c12f44880dd5f8a500
59
py
Python
mci/config/__init__.py
brighthive/master-client-index
b5aeb600d7e9e7c07a0b57deb2b4d89b3f90fd2f
[ "MIT" ]
2
2019-05-29T14:10:56.000Z
2019-06-27T02:53:01.000Z
mci/config/__init__.py
brighthive/master-client-index
b5aeb600d7e9e7c07a0b57deb2b4d89b3f90fd2f
[ "MIT" ]
22
2019-05-01T21:19:53.000Z
2020-07-01T23:15:21.000Z
mci/config/__init__.py
brighthive/master-client-index
b5aeb600d7e9e7c07a0b57deb2b4d89b3f90fd2f
[ "MIT" ]
1
2020-04-29T18:18:31.000Z
2020-04-29T18:18:31.000Z
from mci.config.config import ConfigurationFactory, Config
29.5
58
0.864407
7
59
7.285714
0.714286
0
0
0
0
0
0
0
0
0
0
0
0.084746
59
1
59
59
0.944444
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
5607c61953d385070641dec76447b56f846696d9
36
py
Python
core/serializers/fields/__init__.py
xuhang57/atmosphere
f53fea2a74ee89ccc8852906799b1d9a7e9178b7
[ "BSD-3-Clause" ]
null
null
null
core/serializers/fields/__init__.py
xuhang57/atmosphere
f53fea2a74ee89ccc8852906799b1d9a7e9178b7
[ "BSD-3-Clause" ]
null
null
null
core/serializers/fields/__init__.py
xuhang57/atmosphere
f53fea2a74ee89ccc8852906799b1d9a7e9178b7
[ "BSD-3-Clause" ]
null
null
null
from .base import ModelRelatedField
18
35
0.861111
4
36
7.75
1
0
0
0
0
0
0
0
0
0
0
0
0.111111
36
1
36
36
0.96875
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
56a370c0ada2716642a687d2e8f4b7fa62b95936
185
py
Python
lclpy/localsearch/move/__init__.py
nobody1570/lspy
1cf6efbafbbf8ddb54ba7a875e82c562f010edd1
[ "MIT" ]
3
2021-11-27T22:11:38.000Z
2022-02-10T11:42:06.000Z
lclpy/localsearch/move/__init__.py
nobody1570/lspy
1cf6efbafbbf8ddb54ba7a875e82c562f010edd1
[ "MIT" ]
null
null
null
lclpy/localsearch/move/__init__.py
nobody1570/lspy
1cf6efbafbbf8ddb54ba7a875e82c562f010edd1
[ "MIT" ]
null
null
null
"""This package contains everything related to move functions, classes who are used to alter the state of the problems and are able to generate valid "moves" in the neighbourhood. """
30.833333
74
0.778378
29
185
4.965517
0.827586
0
0
0
0
0
0
0
0
0
0
0
0.167568
185
5
75
37
0.935065
0.951351
0
null
1
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
1
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
3b173baeb0ede574558f6c7067f04c9d61a3ceab
69
py
Python
src/cron_serv/job_runner/remote_celery_runner.py
windperson/docker-crontab
de2847d4930b617b0c306a4c74d6b991b1125881
[ "MIT" ]
null
null
null
src/cron_serv/job_runner/remote_celery_runner.py
windperson/docker-crontab
de2847d4930b617b0c306a4c74d6b991b1125881
[ "MIT" ]
null
null
null
src/cron_serv/job_runner/remote_celery_runner.py
windperson/docker-crontab
de2847d4930b617b0c306a4c74d6b991b1125881
[ "MIT" ]
null
null
null
# TODO: add mechanism to init celery worker for given celery queue.
34.5
68
0.768116
11
69
4.818182
0.909091
0
0
0
0
0
0
0
0
0
0
0
0.188406
69
1
69
69
0.946429
0.942029
0
null
0
null
0
0
null
0
0
1
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
1
0
0
0
1
0
0
0
0
0
0
5
3b23ab93498f1fcc432fb4e0ff23fa68bb57b991
134
py
Python
{{cookiecutter.project_slug}}/{{cookiecutter.initial_app_slug}}/models.py
City-of-Helsinki/drf-cookiecutter
adf5e2dddc14129d22a3ffecceccbde535324b76
[ "MIT" ]
null
null
null
{{cookiecutter.project_slug}}/{{cookiecutter.initial_app_slug}}/models.py
City-of-Helsinki/drf-cookiecutter
adf5e2dddc14129d22a3ffecceccbde535324b76
[ "MIT" ]
null
null
null
{{cookiecutter.project_slug}}/{{cookiecutter.initial_app_slug}}/models.py
City-of-Helsinki/drf-cookiecutter
adf5e2dddc14129d22a3ffecceccbde535324b76
[ "MIT" ]
null
null
null
from django.db import models class {{ cookiecutter.initial_model_name }}(models.Model): name = models.CharField(max_length=100)
22.333333
58
0.761194
18
134
5.5
0.777778
0.181818
0.30303
0
0
0
0
0
0
0
0
0.025641
0.126866
134
5
59
26.8
0.820513
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0.333333
null
null
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
1
0
0
0
1
0
0
0
0
5
3b31c32f2c7739e90ffc6ceb89a9a92e2e039ef5
114
py
Python
microPython/lib/microCoAPy/reading.py
renzoe/IANVS
dc41f3a95668006b4857dcf78746bf444ae19476
[ "MIT" ]
2
2020-10-05T03:34:11.000Z
2020-12-21T02:34:28.000Z
microPython/lib/microCoAPy/reading.py
renzoe/IANVS
dc41f3a95668006b4857dcf78746bf444ae19476
[ "MIT" ]
null
null
null
microPython/lib/microCoAPy/reading.py
renzoe/IANVS
dc41f3a95668006b4857dcf78746bf444ae19476
[ "MIT" ]
2
2020-05-22T11:11:30.000Z
2021-04-04T22:21:58.000Z
class Reading: # Period is the index in the array def __init__(self, attack): self.attack = attack
28.5
38
0.657895
16
114
4.4375
0.75
0.28169
0
0
0
0
0
0
0
0
0
0
0.27193
114
4
39
28.5
0.855422
0.280702
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0
0
0.666667
0
1
0
0
null
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
3b4fbd964cddfcdcdd7cbfc311b8270dedd1d478
562
py
Python
program/tools.py
techtuxbr/WatchDogs
695011f63ecb5f5ef6142db79dfa5cc1c1599479
[ "MIT" ]
6
2018-01-01T03:20:33.000Z
2021-04-14T15:33:17.000Z
program/tools.py
techtuxbr/WatchDogs
695011f63ecb5f5ef6142db79dfa5cc1c1599479
[ "MIT" ]
null
null
null
program/tools.py
techtuxbr/WatchDogs
695011f63ecb5f5ef6142db79dfa5cc1c1599479
[ "MIT" ]
3
2018-04-04T04:48:36.000Z
2021-04-14T15:33:18.000Z
import os from . import computer def shutdown(): if computer.os() == "Windows": os.system("shutdown -s") elif computer.os() == "Linux": os.system("shutdown -h") else: print("Sistema operacional nao detectado, impossivel executar a operacao desejada") def reboot(): if computer.os() == "Windows": os.system("shutdown -r") elif computer.os() == "Linux": os.system("shutdown -r") else: print("Sistema operacional nao detectado, impossivel executar a operacao desejada")
31.222222
92
0.601423
63
562
5.365079
0.412698
0.118343
0.189349
0.112426
0.852071
0.852071
0.852071
0.43787
0.43787
0.43787
0
0
0.265125
562
18
93
31.222222
0.818402
0
0
0.625
0
0
0.395604
0
0
0
0
0
0
1
0.125
true
0
0.125
0
0.25
0.125
0
0
0
null
0
1
0
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
3b62f7e9bdee607a2321fcd36e132aed9c7cb515
67
py
Python
src/synamic/core/default_data/__init__.py
SabujXi/SynamicX
13773409ae5ed9b953b3531e23ce87166c041b79
[ "MIT" ]
7
2017-10-15T16:58:47.000Z
2020-07-02T01:08:21.000Z
src/synamic/core/default_data/__init__.py
SabujXi/SynamicX
13773409ae5ed9b953b3531e23ce87166c041b79
[ "MIT" ]
5
2021-03-18T20:30:32.000Z
2022-03-11T23:20:09.000Z
src/synamic/core/default_data/__init__.py
SabujXi/SynamicX
13773409ae5ed9b953b3531e23ce87166c041b79
[ "MIT" ]
2
2018-02-04T14:03:38.000Z
2018-02-04T15:25:59.000Z
from synamic.core.default_data._manager import DefaultDataManager
33.5
66
0.880597
8
67
7.125
1
0
0
0
0
0
0
0
0
0
0
0
0.074627
67
1
67
67
0.919355
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
8e9425f863e57bdffa947240f9a122fd0b23eb48
158
py
Python
vidispine/errors.py
newmediaresearch/vidispine-adapter
95d5b1956c3767ff9ff0626048f52628d5322cab
[ "MIT" ]
null
null
null
vidispine/errors.py
newmediaresearch/vidispine-adapter
95d5b1956c3767ff9ff0626048f52628d5322cab
[ "MIT" ]
1
2021-03-16T11:02:59.000Z
2021-03-16T11:02:59.000Z
vidispine/errors.py
newmediaresearch/vidispine-adapter
95d5b1956c3767ff9ff0626048f52628d5322cab
[ "MIT" ]
null
null
null
class ConfigError(Exception): pass class APIError(Exception): pass class InvalidInput(Exception): pass class NotFound(APIError): pass
9.294118
30
0.696203
16
158
6.875
0.4375
0.354545
0.490909
0
0
0
0
0
0
0
0
0
0.227848
158
16
31
9.875
0.901639
0
0
0.5
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
5
8ee25d153228f483b607994a729c2f476e31683d
18
py
Python
python/testData/intentions/PyConvertCollectionLiteralIntentionTest/convertTupleToSetNotAvailableInAssignmentTarget.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/intentions/PyConvertCollectionLiteralIntentionTest/convertTupleToSetNotAvailableInAssignmentTarget.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/intentions/PyConvertCollectionLiteralIntentionTest/convertTupleToSetNotAvailableInAssignmentTarget.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
x, <caret>y = 1, 2
18
18
0.5
5
18
1.8
1
0
0
0
0
0
0
0
0
0
0
0.142857
0.222222
18
1
18
18
0.5
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
d94d3a694a0eb5f59a9223afa201da700900f31e
455
py
Python
namecheapapi/api/whoisguard.py
porfel/namecheapapi
c34d8b3d6298c7fe09a42d8b81d7b6d9ed6e5667
[ "MIT" ]
23
2016-06-17T10:17:10.000Z
2022-03-01T13:21:59.000Z
namecheapapi/api/whoisguard.py
porfel/namecheapapi
c34d8b3d6298c7fe09a42d8b81d7b6d9ed6e5667
[ "MIT" ]
null
null
null
namecheapapi/api/whoisguard.py
porfel/namecheapapi
c34d8b3d6298c7fe09a42d8b81d7b6d9ed6e5667
[ "MIT" ]
9
2016-10-14T14:04:18.000Z
2021-12-31T21:10:38.000Z
from namecheapapi.api.session import Session class WhoisguardAPI: def __init__(self, session: Session) -> None: self.session = session def change_email_address(self): pass def enable(self): pass def disable(self): pass def unallot(self): pass def discard(self): pass def allot(self): pass def get_list(self): pass def renew(self): pass
14.21875
49
0.573626
52
455
4.884615
0.442308
0.251969
0.30315
0
0
0
0
0
0
0
0
0
0.347253
455
31
50
14.677419
0.855219
0
0
0.4
0
0
0
0
0
0
0
0
0
1
0.45
false
0.4
0.05
0
0.55
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
5
d976f92a2faa7285b4a4675f0c39584618927945
114
py
Python
Problems/Logistic function/task.py
gabrielizalo/jetbrains-academy-python-credit-calculator
093bffde653510348adb35188ecf5cb99e11e73e
[ "MIT" ]
null
null
null
Problems/Logistic function/task.py
gabrielizalo/jetbrains-academy-python-credit-calculator
093bffde653510348adb35188ecf5cb99e11e73e
[ "MIT" ]
null
null
null
Problems/Logistic function/task.py
gabrielizalo/jetbrains-academy-python-credit-calculator
093bffde653510348adb35188ecf5cb99e11e73e
[ "MIT" ]
null
null
null
import math my_int = int(input()) sigmoid = math.exp(my_int) / (math.exp(my_int) + 1) print(round(sigmoid, 2))
14.25
51
0.666667
20
114
3.65
0.55
0.205479
0.246575
0.328767
0
0
0
0
0
0
0
0.020619
0.149123
114
7
52
16.285714
0.731959
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0.25
1
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
d982d6b9f4e0c44653cea95aec01313fa42b6853
64
py
Python
allennlp/semparse/domain_languages/common/__init__.py
schmmd/allennlp
fbc28cefe03b1ea3ff65300d475d34f5f9629a5c
[ "Apache-2.0" ]
17
2019-11-19T19:02:35.000Z
2021-11-16T16:19:07.000Z
allennlp/semparse/domain_languages/common/__init__.py
TalSchuster/allennlp-MultiLang
dbb28b939652491d2f633326edccca2cd0e528c8
[ "Apache-2.0" ]
1
2021-05-31T11:12:02.000Z
2021-06-01T05:34:27.000Z
allennlp/semparse/domain_languages/common/__init__.py
TalSchuster/allennlp-MultiLang
dbb28b939652491d2f633326edccca2cd0e528c8
[ "Apache-2.0" ]
10
2019-12-06T11:32:37.000Z
2022-01-06T15:39:09.000Z
from allennlp.semparse.domain_languages.common.date import Date
32
63
0.875
9
64
6.111111
0.888889
0
0
0
0
0
0
0
0
0
0
0
0.0625
64
1
64
64
0.916667
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
79651d2c25aeb69492e957a060fc6e155728f66d
273
py
Python
src/authentication/mailchimp/__init__.py
pykulytsky/freelance-service
0f6e36093128ae3e63bd7dcf21959882eae7e683
[ "MIT" ]
null
null
null
src/authentication/mailchimp/__init__.py
pykulytsky/freelance-service
0f6e36093128ae3e63bd7dcf21959882eae7e683
[ "MIT" ]
45
2021-01-18T14:01:20.000Z
2021-08-02T07:40:10.000Z
src/authentication/mailchimp/__init__.py
pykulytsky/freelance-service
0f6e36093128ae3e63bd7dcf21959882eae7e683
[ "MIT" ]
1
2021-01-26T09:58:22.000Z
2021-01-26T09:58:22.000Z
from authentication.mailchimp.client import AppMailchimp from authentication.mailchimp.http import MailchimpHTTPException from authentication.mailchimp.member import MailchimpMember __all__ = [ AppMailchimp, MailchimpMember, MailchimpHTTPException, ]
27.3
65
0.805861
22
273
9.818182
0.5
0.25
0.375
0
0
0
0
0
0
0
0
0
0.150183
273
9
66
30.333333
0.931034
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.375
0
0.375
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
79974024050522546a155ac715650e995e4a7bcb
48
py
Python
wagtail_unsplash/forms.py
zerolab/wagtail-unsplash
c543603428d15c6b5a7fd3f3cf917ab1c855bda9
[ "MIT" ]
null
null
null
wagtail_unsplash/forms.py
zerolab/wagtail-unsplash
c543603428d15c6b5a7fd3f3cf917ab1c855bda9
[ "MIT" ]
null
null
null
wagtail_unsplash/forms.py
zerolab/wagtail-unsplash
c543603428d15c6b5a7fd3f3cf917ab1c855bda9
[ "MIT" ]
null
null
null
# class UnsplashSearchForm(Form): # query =
24
33
0.666667
4
48
8
1
0
0
0
0
0
0
0
0
0
0
0
0.208333
48
2
34
24
0.842105
0.895833
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
79d4cd89303b4d6c54290df0e0c7977a3f5e5678
3,951
py
Python
python/app/plugins/port/Mssql/Mssql_Weakpwd.py
taomujian/linbing
fe772a58f41e3b046b51a866bdb7e4655abaf51a
[ "MIT" ]
351
2020-02-26T05:23:26.000Z
2022-03-26T12:39:19.000Z
python/app/plugins/port/Mssql/Mssql_Weakpwd.py
taomujian/linbing
fe772a58f41e3b046b51a866bdb7e4655abaf51a
[ "MIT" ]
15
2020-03-26T07:31:49.000Z
2022-03-09T02:12:17.000Z
python/app/plugins/port/Mssql/Mssql_Weakpwd.py
taomujian/linbing
fe772a58f41e3b046b51a866bdb7e4655abaf51a
[ "MIT" ]
99
2020-02-28T07:30:46.000Z
2022-03-16T16:41:09.000Z
#!/usr/bin/env python3 import socket import binascii from urllib.parse import urlparse class Mssql_Weakpwd_BaseVerify: def __init__(self, url): self.info = { 'name': 'Mssql 弱口令漏洞', 'description': 'Mssql 弱口令漏洞', 'date': '', 'exptype': 'check', 'type': 'Weakpwd' } self.url = url url_parse = urlparse(self.url) self.host = url_parse.hostname self.port = url_parse.port if not self.port: self.port = '1433' self.data = '0200020000000000123456789000000000000000000000000000000000000000000000000000ZZ5440000000000000000000000000000000000000000000000000000000000X3360000000000000000000000000000000000000000000000000000000000Y373933340000000000000000000000000000000000000000000000000000040301060a09010000000002000000000070796d7373716c000000000000000000000000000000000000000000000007123456789000000000000000000000000000000000000000000000000000ZZ3360000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000Y0402000044422d4c6962726172790a00000000000d1175735f656e676c69736800000000000000000000000000000201004c000000000000000000000a000000000000000000000000000069736f5f31000000000000000000000000000000000000000000000000000501353132000000030000000000000000' def check(self): """ 检测是否存在漏洞 :param: :return bool True or False: 是否存在漏洞 """ for pwd in open('app/password.txt', 'r', encoding = 'utf-8').readlines(): if pwd != '': pwd = pwd.strip() try: s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect((self.host, int(self.port))) husername = binascii.b2a_hex('sa'.encode('utf-8')) lusername = len('sa') lpassword = len(pwd) hpwd = binascii.b2a_hex(pwd.encode('utf-8')) address = binascii.b2a_hex(self.host.encode('utf-8')) +'3a'.encode('utf-8')+ binascii.b2a_hex(str(self.port).encode('utf-8')) data1 = self.data.replace(self.data[16:16+len(address.decode('utf-8'))], address.decode('utf-8')) data2 = data1.replace(data1[78:78+len(husername.decode('utf-8'))], husername.decode('utf-8')) data3 = data2.replace(data2[140:140+len(hpwd.decode('utf-8'))], hpwd.decode('utf-8')) if lusername >= 16: data4 = data3.replace('0X', str(hex(lusername)).replace('0x', '')) else: data4 = data3.replace('X', str(hex(lusername)).replace('0x', '')) if lpassword >= 16: data5 = data4.replace('0Y', str(hex(lpassword)).replace('0x', '')) else: data5 = data4.replace('Y', str(hex(lpassword)).replace('0x', '')) hladd = hex(len(self.host) + len(str(1433))+1).replace('0x', '') data6 = data5.replace('ZZ', str(hladd)) data7 = binascii.a2b_hex(data6) s.send(data7) if 'master' in s.recv(1024).decode('utf-8'): print('存在SQLserver弱口令,弱口令为:', pwd) return True except Exception as e: print(e) pass finally: s.close() print('不存在Mssql弱口令') return False if __name__ == "__main__": Mssql_Weakpwd = Mssql_Weakpwd_BaseVerify('http://127.0.0.1') Mssql_Weakpwd.check()
54.875
1,198
0.649709
312
3,951
8.137821
0.371795
0.020481
0.02757
0.013391
0.03781
0
0
0
0
0
0
0.413828
0.242217
3,951
72
1,199
54.875
0.434202
0.018983
0
0.033898
0
0
0.367735
0.306489
0
1
0
0
0
1
0.033898
false
0.101695
0.050847
0
0.135593
0.050847
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
0
0
null
1
0
0
0
0
0
0
1
0
0
0
0
0
5
8dc8021d8ec8dcd5f7a220d91dc3d0a95259b8f0
17,352
py
Python
app/stratified.py
CMUSTRUDEL/flask-browser
35729fbc34d116f45ac3ac8cc3f0a8973de8d7f8
[ "MIT" ]
1
2020-07-28T23:26:18.000Z
2020-07-28T23:26:18.000Z
app/stratified.py
scohen02/flask-browser
7ef8fefcf89da5a2c02581750793d7707a42f737
[ "MIT" ]
1
2020-09-16T04:44:34.000Z
2020-09-23T03:01:23.000Z
app/stratified.py
scohen02/flask-browser
7ef8fefcf89da5a2c02581750793d7707a42f737
[ "MIT" ]
2
2020-06-17T23:48:53.000Z
2020-07-13T19:23:07.000Z
high_perspective = ['5ea3af45bd35432a1e7096b1', '5e6f15e8bd35431fc2c12b7b', '5e53f22ebd35431fc2b0337d', '5e8facbfbd35432047c7e69c', '5eadd270bd354374a770a538', '5e4b9ccaac8db7c6351925bf', '5ea6e951bd35434eae5e4982', '5e9fa678bd35436be69b2a5e', '5e7f7b2ebd35434d8d1265cf', '5e945565bd35431c83878b5d', '5eeb0729bd35431ff8d3fadc', '5eac756dbd35433d9c0a6b0d', '5ec0873fbd35433920be190e', '5e573cbfbd35431fc2b267cd', '5e7da4b1bd3543638522a940', '5e5a07e8bd35431fc2b44f58', '5e4b53ceac8db7c6355c9fe9', '5e498c9ebd3543364e1aea31', '5e40af8bac8db7c63592a473', '5e9edb4dbd35435c5164c588', '5ea1429ebd354365e6648e46', '5e913582bd354324a0279c9f', '5eb89dcbbd35433c86bee265', '5e9bc38abd35431275afa132', '5e9426c1bd35431d0a017b8b', '5e3dd864bd3543283f73ef51', '5e7af5a3bd354337a360a294', '5ec4ae6fbd35437562a49708', '5eb26bdabd35433285e3abc8', '5ea3ef41bd35437d287c3677', '5e7b1407bd3543371760fa2e', '5e7b1407bd35434522e33399', '5e9588febd35432157acf29a', '5e73cb19bd35431fc2c41813', '5e3adb28bd35434aff586c46', '5e9c4184bd3543311a08e327', '5e9c4181bd35432480a79a60', '5e7a8106bd354342b897c958', '5e7aca43bd3543414b890ff0', '5e7eaaabbd3543685a4fb635', '5e5ab27fbd354329f97a09c8', '5e7b141fbd3543502a1ed6ac', '5e7b141fbd35434522e333c2', '5e7b141fbd354337fedbd3b0', '5e9803a2bd35431499b57bc0', '5ea5279cbd35432154792bd3', '5eb4ce3abd35435dcaa89707', '5e5e57acbd354329f97c702d', '5eb68bd9bd354305b74c3230', '5e7bc75fbd35433b485bc1be', '5e7b140cbd354340bd553bf3', '5e7b140cbd35434522e333a0', '5e7eb4dfbd35436a3619a540', '5eac46cbbd354329ed00b45d', '5e2845eabd35433a5078cde6', '5e7b1421bd35434d6637497f', '5e799d1ebd35432c2a28f4ab', '5ebba46bbd3543261a0b75e0', '5eb80d57fd9edf3879106c1d', '5e659345bd35432eba36b7e3', '5e4f012dac8db7c635ab2885', '5e53c75bbd354329f9757690', '5e9e7cddbd3543498b9b4e77', '5ec5ace1bd77503ee0bf8bc5', '5e258361bd35431073ac3196', '5eba5c16bd3543767f4dc065', '5e9fc536bd35433b7a60cf1d', '5e7b1424bd35434bc1381fe7', '5e2a7a74bd35437512484d8f', '5e7b1412bd354340bd553bfd', '5e7b141cbd3543371760fa52', '5e7a0de3bd3543722ec74ac7', '5ea0ff6ebd354377ca40a4d0', '5e93ce09bd35431bfda7cf15', '5ebfd5fbbd35430e04e3969a', '5e7bd33abd35434f4aed8c48', '5ec24ab8fd9edf38797e3a9e', '5e67fc7dbd35431fc2bd8024', '5e7b1401bd354337fedbd37b', '5e4cdbd8ac8db7c6359f99ff', '5e8a870abd3543695e4646ea', '5e88be3ebd35436e5533d48c', '5ea13209bd3543279b20339e', '5e3d541abd354331243eb4dc', '5e7b5d8bbd35434bc13852f8', '5e3d5421bd354321def3b482', '5e906bdabd35432488423e99', '5ecbb846bd35436bd3761837', '5e3ac211bd35433e32a10a14', '5eae11b7fd9edf387986262c', '5e7a1c9cbd35434c25a24681', '5e314504bd35436fd5e63379', '5e629368bd354329f97f532c', '5e2e7b63bd3543403ea57f38', '5e899510bd35437194c16949', '5eb759d4bd3543638bd9dab8', '5ed0b76bbd35437e4ab4a36e', '5e7e3e1ebd354371da09d498', '5e6502debd354322f37901aa', '5e9e3c53bd35431df45323b6', '5e83f501bd35437389f55db9', '5eac250cbd354310d1e8f9be', '5e8d7b82bd354311592ae22a', '5e7f81f6bd354353733d1c29', '5e5dc89cbd35431fc2b6c4a5', '5e6c56c6bd35432c2a253fdf', '5e47a07ebd354329f96d490c', '5e7b1411bd35433aadd9ed6b', '5e316339bd3543565cc189a4', '5e410203bd3543203ed17185', '5e5b5821bd3543229fdb149c', '5e4ee034ac8db7c6356c0f02', '5e9ad4c4bd3543595dfc4d8c', '5e820063bd3543669d23cd8d', '5e28b809bd35434210d66a08', '5e2c6bc3bd354367182fbe4e', '5e9fea52bd35432a086f49de', '5ea809b1bd35437467ae834e', '5e8c3624bd35437c478834e9', '5e87efa0bd35436e55336283', '5e399811bd35434a9d0c7c1c', '5e41707eac8db7c635289a8f', '5e267d8cbd35434377d46964', '5e3c16febd35432092e40f25', '5e4bae02bd3543229fd3ed6f', '5ea28fdebd354337c3614541', '5e7b57cebd3543372dd318a5', '5e645fa0bd35433947c40a20', '5eb653d8bd35436dd89cd730', '5ed3c151bd77503ee03c9514', '5eb10aa6bd3543708c780cea', '5e23c281763a8b26aaa38d89', '5e3bdc13ac8db7c63512e0b4', '5e7b1416bd35434a5981374e', '5ea41232bd35436afab04ae0', '5eb500f5bd354356e39f3c39', '5ea713d4bd35430d3824abf0', '5eb865bdbd354314cb2a0e69', '5ec73b17bd354371606365be', '5e7bf025bd35434194ff4bc7', '5e328471bd3543683789cf71', '5ea27887bd35431a256e8765', '5e8d4551bd354311592ac165', '5e7ecf1fbd35436e8cd50cd9', '5e7dc6d2bd3543728790e011', '5e7ba8b3bd354337e6dc73d3', '5eb68bd5bd354305b74c322b', '5ebd1bf7bd35435432e0df85', '5e7b1409bd35434bc1381fb4', '5e9083a6bd3543219db58a7d', '5eb90372bd35434142386ca2', '5e97ec4dbd35432047cc45ae', '5e4a93acbd354334d1c95df3', '5e9023a6bd35431f6aedacda', '5e7b1420bd35434d6637497e', '5e7bd6ccbd354337a36137eb', '5e31532bbd35434ff0390cdd', '5e7b1417bd35434522e333b3', '5e8066cbbd354353248bc6e5', '5e6ccd72bd35432dd15ea0cc', '5ea7e713bd3543282eea804d', '5ea2f19dbd354325cb56843b', '5ec30743bd354333e0995046', '5e7b1420bd35433aadd9ed88', '5ec46630bd3543259500dd73', '5e7db811bd3543626e053297', '5e5f218abd354338b13aa20b', '5e868e16bd354365d5b36d44', '5ea250a7bd35430e69143741', '5e2f36edbd354337baabe23a', '5e5a0808bd35431fc2b44f77', '5e7ddcaebd354361056f5445', '5e85918cbd354369f86152c3', '5e8f748ebd3543228aa00d90', '5e5933b9bd3543229fda1f26', '5e5773a0bd354329f977dc9d', '5e2adeb7bd35436fc59907ca', '5eb2e3c8bd35436d5d050802', '5e7b1406bd3543371760fa2c', '5e7b1405bd354340bd553be9', '5e9507d1bd35431499b3f91f', '5e848590bd35436bf6e4f4b3', '5e4bbbe6bd3543339ae6c10d', '5e645f88bd354325d6a39b75', '5e3d0df5bd35431cf0fd2961', '5e7b1417bd35434e768d80c3', '5e3d5415bd3543225ac4afb7', '5eb383c4bd354319d96e04a4', '5e7b1410bd35434522e333a7', '5e5aa6debd35431fc2b4bc51', '5e5e8bd3bd354329f97c8e62', '5ebaff4fbd35437097d7ddb5', '5eaa5938bd35437f3e44c55d', '5e7ea488bd354363e2c0e9db', '5eb06626bd35435932b3721e', '5e3abe82bd354349e90125b5', '5e9d4261bd35437da961e410', '5e9bbbf3bd35430b1be15b80', '5e8590eebd35437469ebe552', '5ebdb1a3bd354368ec4d5b5d', '5e59df4abd354338b1373872', '5e39a3a7bd35433f22ea7747', '5eada0c7bd3543688a59f52e', '5ec62fdfbd77503ee0c4fa81', '5ec4af67bd3543763417e159', '5e2fe146bd35432aa312468c', '5e8ea238bd35430ccad168c2', '5e7c0f7bbd35434253589b8a', '5ebb5c47bd354377295bea59', '5e401745ac8db7c635984743', '5ea488f6bd3543694bcebeaa', '5e9ecd3bbd35436dcd9981ce', '5ec89851bd77503ee07636be', '5ec1370bbd35433e5b1c94c6', '5ea945c9bd354376991ebe60', '5eb8f08dbd3543798ac5ebbb', '5e6cc699bd35431d4926562b', '5e679a07bd35432c2a23a944', '5e9ea7c0bd354347cbce357b', '5e53e3dcbd354338b13337e2', '5e63c358bd35431fc2bad491', '5e7d19b8bd354371a6e99715', '5e7be575bd3543414b89b0e0', '5eb39988bd35433e98b6fdda', '5e917538bd3543163cf2719b', '5e522329bd35432dd14d1da0', '5ecbdfc8bd35432fdf8a33f5', '5e906fe7bd35430f344c1e20', '5e938361bd35431db66e910b', '5e951c4cbd3543219db80589', '5e99d6d3bd35432927e34c30', '5ec9f26fbd77503ee08adf1e', '5e3d3d67bd35431de5230ca7', '5ea002a2bd35430b2d2e64f7', '5e91ba74bd354324fc148633', '5e48e41eac8db7c6358bc2e6', '5e8e7d1dbd35430a0b73a519', '5ed26ce8bd77503ee02bf99e', '5e7b7029bd354342535834bb', '5e7a19e6bd35433743549fb5', '5e657561bd354338b13eb2ce', '5ebcacc6bd354342d0983969', '5e272a8dbd354343faf9c2e1', '5ea7aa99bd35435552888f55', '5e4fbdbcac8db7c6354a86f2', '5e8066cebd3543464e2f41b8', '5e7b140fbd354340bd553bf8', '5eb6525cbd3543765272c09a', '5e902a27bd35431bfda5c9c8', '5e7e3521bd354374b86cc1d6', '5e7fd9d2bd35433d98b5b771', '5e265742bd35433893bdfd6a', '5e7ce40fbd354368c77c0c80', '5e7caa2ebd35437090d6f34c', '5e7a9186bd35434c25a298c4', '5e3c87b9bd354322f36055e4', '5ea64998bd35434639f60d6e', '5e858651bd354370f2b4f91b', '5e7afb8dbd35434ac8ae80fa', '5e99ff1abd35437ddc472bf2', '5ebe7fc7bd35434d39d5b90c', '5ea649a2bd35434639f60d76', '5e7b1410bd35434d66374960', '5e3aa2d3bd35433cba038a9d', '5e316a60bd354302f7ea3ec7', '5eba1ac3bd3543060d0db36c', '5ea64757bd3543493f0964bd', '5e7fd1a8bd35434921e9b731', '5e7a8c25bd35433d37431a65', '5e9ab7a1bd3543342c24002c', '5e7fb11abd354352ec828e2d', '5ea4cac8bd35431390138980', '5ebbf339bd35436b3ea057fe', '5e253296bd35430f1bd5734f', '5e3aa55fbd3543366e1bf4c4', '5e47970bbd3543364e199ece', '5ec61526bd77503ee09d5b2d', '5e7a962fbd35434b72d27879', '5e2e87f0bd354373f054d5ed', '5e54483ebd35432dd14e8194', '5e4a2bdabd354338b12cc653', '5e39c0c0bd3543435c2bb57e', '5e3d3c20bd354332d1e9559b', '5ebb6398bd35437a9356b37d', '5e95206bbd354323b1c17743', '5e4a6a0abd354332d1f2617c', '5e7b1414bd35434522e333af', '5e3aaab0bd35433e32a0fc59', '5e7a862dbd354337cf18c647', '5e3d12e0bd35432ad7dff825', '5e6cc529bd354320f1a8c98c', '5ea310d1bd35436ae2e6a350', '5e3ba5c7bd3543322b529593', '5ecd106dbd77503ee084d044', '5e7d5b17bd35436e8cd41c04', '5e3ac54cbd35433d83132664', '5e97d4f5bd35431d6c09869f', '5e8c2ad4bd3543797eb5f62a', '5e5fd085ac8db7c6352dd31a', '5ed0862bbd354355218c17a9', '5e272ccabd35434161a98f5d', '5e48964cbd354334d1c82509', '5e2ec388bd354321507e4d72', '5e7cc162bd354362c56e9e39', '5e682bedbd35431fc2bda3aa', '5e7a1dbabd35434bc13777f2', '5eb06041bd354369b7ef3ea0', '5ed31d92bd354362ae5aeaea', '5e256551bd35431415399ed2', '5e8fdd32bd354323b1be9110', '5e6f7196bd35431fc2c1609b', '5e761b8ebd35433947cdece3', '5e3bdfa3bd354337bc964985', '5e3c2f1fbd35431da4fbf642', '5e6b00b4bd35431d4925458d', '5e4d308bac8db7c63536add9', '5eb70a14bd354327d3030cae', '5e7a7b24bd35434b72d2679b', '5ec5470bbd35431e2bc6da0c', '5e7d7b94bd3543616a30f1a7', '5eb2610abd35433915efd181', '5ea9e2b3bd35430953cc4603', '5e645f8abd354325d6a39b78', '5e899bddbd3543753d0d7412', '5ed23465bd77503ee0de3e9f', '5e7a96b6bd35434f4aecc3cd', '5e2622b2bd35434eaa4c2c42', '5e9e599abd354353bdd065e7', '5e7b3d91bd354338debcdd70', '5eb60ffbbd354374108c8125', '5eabdb4dbd354348bfdfc486', '5ea002a2bd3543014d1f2f06', '5ea002a1bd35430b2d2e64f6', '5e5f1f91bd354329f97cf0d7', '5e7a7861bd354343331edbf8', '5ec8e9c2bd77503ee00b0f1f', '5ecb6f42bd35437b08063bf8', '5eb7d268bd35435086a417ab', '5ebeb0d3bd35431a33fbe487', '5eaffa31bd3543614b1c3016', '5e7cd71abd354360093c9726', '5e85a029bd35436624b09b04', '5e7bf18ebd35433e51cbf278', '5e8c0339bd3543094cfbe40c', '5ec8aef7bd354336f5c29594', '5e93c42abd35431a34cfb008', '5e8bf32ebd3543159f2582e2', '5eb023d3bd354338c1ffce64', '5e59a624bd35431fc2b40e6e', '5ecf6ea1bd354379eaa08910', '5e7a9e25bd35433ed568a3f5', '5e3ef393bd35432b276d4438', '5e418388ac8db7c6354c280a', '5e2a149cbd354363642b2462', '5ea6d571bd354326d88e6a56', '5e957591bd35431a34d0b8de', '5e3d4e42bd35432524f8d755', '5e93e33abd354324255292d0', '5e683d18bd354338b1408261', '5e8ab021bd354376b96fa261', '5e2a250bbd354369dbaa0fd7', '5e7b6193bd35433fc6b56f51', '5e7a911dbd35433cdf895601', '5e399812bd35434a9d0c7c1e', '5e7b140bbd35434522e3339e', '5e3e4c23ac8db7c6355d0daa', '5ece9964bd77503ee00a576a', '5ea29ac1bd35431d9bd05446', '5e71d2bbbd35432eba3d8e3d', '5e4d91dfbd354329f971720e', '5e976153bd354315313689fb', '5e90439dbd3543153132c19f', '5e3a31f7bd354343dcdaf96e', '5ea0a066bd35435e12e60e99', '5e7bc99fbd35433fc6b5b15e', '5e48eafbbd35431cf004601c', '5e261220bd354340d0cb18a5', '5e5d480ebd354338b1396b8f', '5e814e9fbd35435eb45ef974', '5eca7e7cbd77503ee051cc35', '5ec03505bd354341739827c9', '5ec66ad2bd354336ac2eda08', '5e7b1422bd35434a59813765', '5e7a8c0fbd35433d37431a48', '5e3aa0dbac8db7c63524b52b', '5eccf4fdbd77503ee0580b6b', '5e61e85dbd354329f97ed5cc', '5e7c0026bd3543507c554256', '5ec2cb70bd35432fda6fbacb', '5ec96cb7bd77503ee0b16e85', '5ea95b57bd354338f58a7fb3', '5e427a00ac8db7c6354cfb29', '5e7bd33cbd35434f4aed8c4d', '5ea43cc6bd354350caad2d74', '5ec4f6c5bd354378049625f0', '5e3c0f62bd3543339add0f3e', '5e3e06c7bd35432c9d2e2a1c', '5e7c015fbd3543372dd38936', '5e9a1525bd3543321fe56c7f', '5ec67603bd354348616243dd', '5e5b6a75bd35431d33658e9d', '5e43a2c7bd35431cf0014ec8', '5e4d1763bd354336ddfa06cd', '5e7a846abd354345e894ab0e', '5e9a88f7bd354362aee1ae66', '5e7c430dbd354347e0965473', '5e57651bbd354329f977d2cb', '5e3a8b01bd354345530000e0', '5e4f0c9aac8db7c635bf5ae5', '5ea19cc3bd35433d1f3870fd', '5ea3cf91bd35434f0abc63b3', '5e52ea71bd35431cf009e005', '5e512012ac8db7c635ec7617', '5e7b7eeebd3543414b897709', '5e9172e5bd3543248842e40a', '5e4666b6bd354334d1c6c4a6', '5eafc780bd354374b3773d9d', '5e3bb933bd354349bb5a3066', '5e7b140cbd35434a5981373b', '5e2742abbd354348b7a3aa74', '5e82b045bd35435ddc3843e5', '5e7b13f1bd35434522e33380', '5e997a9abd354352da8680ec', '5e7ce02bbd354361056ea950', '5e4960e5ac8db7c63573ff80', '5ec8a8e7bd35431974e4a4ed', '5e8fda7cbd354319a3c08279', '5e812502bd3543649bb155d3', '5e49c9ceac8db7c6353d6ef9', '5e441dbebd354322c5e93322', '5eb37b5cbd354342e014d54c', '5e3d541dbd354331243eb4e5', '5e3d541dbd35432586fdfaa9', '5e2c9fedbd35437d92fe0e01', '5e72155bbd35432eba3db61f', '5eaa4f03bd35433bcbe79a92', '5e6ef607bd35431fc2c115a3', '5e3c97a0ac8db7c635ae15f7', '5e6b77ffbd35431dba220474', '5e7a24e0bd354338874727e1', '5e3e6a27bd35432981a64085', '5eca1b95bd77503ee0c1cc4f', '5ea6b76bbd3543120570a268', '5e24d950bd354312608c1cfd', '5ebcb644bd35433fa5085001', '5ea6fddbbd35437d7d5b76fb', '5e91a037bd35431e2a669624', '5e7e0ed7bd354373da170b01', '5e8d7e93bd3543141202718c', '5e9d798fbd35431f2574a55c', '5e86d942bd354374e3114294', '5ec6ae52bd35432d7049717f', '5e2f8f2abd35437c044c5678', '5e3bc667bd35434943fd38a1', '5e8f5806bd354316a17e812d', '5ebe5f00bd35434c6a200fec', '5eb22096bd35433055913b15', '5ebe73bbbd35433030f5c2f1', '5e9752d2bd35432157adccda', '5e957cdebd35431838f5caa5', '5e3d17d2bd354338b1250c27', '5ea7c776bd354336bb185861', '5e7af95dbd354337435532a1', '5e7a1747bd3543414b889483', '5e7dc292bd35436fb997569c', '5eb05f16bd35435ec877ab6f', '5e396fc3bd35434477f47398', '5e813d69bd354354052754a2', '5e85f91bbd354364b6f0d21d', '5e6ebf28bd35431fc2c0ef2b', '5e80ae9dbd354353a0dc2383', '5e7b115fbd35433d95df83f2', '5e3de604ac8db7c6356f4cb8', '5ec8329bbd77503ee0db30d3', '5e513218bd35432496a894bf', '5ea7a46ebd35433a9b67df99', '5e914dedbd35431e73fc59fe', '5ec9430abd3543575458d4a1', '5e5f4f96bd35432c2a211fb8', '5e6f7167bd35431fc2c16047', '5e5358a6bd35431cf00a1b7e', '5ec622a4bd35433ac1a19a89', '5e80536abd354348df041fa4', '5eb9933ebd35433f945b59c7', '5e89aec9bd3543724075c56e', '5e42d988ac8db7c635fe2702', '5e848be8bd354373ddad65b2', '5e530df0bd35431fc2af9b00', '5e892366bd354373f16c5095', '5e8afa90bd35437156ee4d64', '5e9d2afabd35431a8b85b190', '5e7a98c9bd35433f084f7a96', '5e2f4d20bd35434dda2bc0bd', '5e9d3dd0bd35434f2949ae2c', '5e4d6c82bd354329f9715653', '5e99b714bd35436f01407ffe', '5e2f1da1bd35436b0ef74e2e', '5e3a3308bd35433ee0d5e60d', '5e81fbc5bd354362e531d3c6', '5eb51c04bd3543462f3e3f81', '5e39ecb0bd35433ee0d5b850', '5e573d38bd35431cf00c3d14', '5e4d9981ac8db7c635f954d9', '5e53223abd354337716e6896', '5e93669cbd35432157abc5fa', '5e4f06f9ac8db7c635b4f8ca', '5e49cfa2ac8db7c63548b4a2', '5e86cd52bd3543734eea91e8', '5eb616abbd354362352a6c06', '5e41a7c8ac8db7c6359415c0', '5e33d611bd3543374c1ee86e', '5e63a96dbd354338b13da5b2', '5ed1d191bd3543696fa10202', '5e3123f9bd35435f7c991348', '5e9a8a00bd35436c60a03caa', '5e8df015bd3543139ef158ed', '5ec033c2bd35435bd6a0f94c', '5e8b0151bd3543662c40c906', '5e7b3802bd35434f4aed2853', '5e62afb3bd354338b13cfe61', '5e922a66bd354322dacba73d', '5ed328edbd77503ee0480db3', '5e41a3a6bd35431d1d9b69cf', '5e3d541bbd354321def3b477', '5ec27a5dbd35433e4834cf5f', '5e59a622bd35431fc2b40e6a', '5e9163acbd35431838f3b24c', '5eba2371bd35430b0f1b4336', '5e4c5d94ac8db7c6359b3334', '5eb26c95bd3543397d48efc4', '5e3d540cbd354331243eb4c5', '5ec57c62bd77503ee07b7c72', '5e7a2d5abd354340bd54a35c', '5e2518f0bd354312608c52af', '5e93be6fbd35431a34cfac2b', '5e47a930bd35431fc2a780c3', '5e7e8b4bbd35436edd19a3e1', '5e469548bd354329f96c8fa2', '5eb25067bd35434d30e63415', '5ebcd306fd9edf38796ca0dc', '5e52737dac8db7c6354b5a39', '5e7c2d8dbd35434b72d37742', '5e43a73fbd354332d1ed7f63', '5e812be3bd3543540527480c', '5e405d59bd354331ede4f2a1', '5e8d8b29bd35430acd9d8044', '5e8c0340bd354315e28186fc', '5e7c198dbd35433d95e03389', '5e9d9a0abd35435c5c88c2df', '5ea9f8e1fd9edf3879dad6aa', '5e80a416bd354354d26ad3a5', '5e7b6182bd354343331f72c5', '5e9b59afbd35430138fccaad', '5e4f544cbd35432496a7139e', '5e3da920bd3543221becc934', '5ebdb713bd35433b7c49b4b4', '5e2b2495bd35437ab5668262', '5e83b8c4bd354370f2b3dda4', '5e26695fbd35434b483d6555', '5ec97be7bd77503ee0c4d60b', '5ed4977dbd77503ee0951848', '5e3313a4bd35432b90cddaf0', '5e7b13f4bd354337fedbd36d', '5e974957bd3543228aa45c53', '5e505c51bd35432746908c25', '5e405980ac8db7c635fadb9f', '5e4b5becac8db7c6358131a6', '5e7b1406bd3543371760fa2d', '5e3ac484bd35433cba039f8f', '5e7bd789bd35433e9229c5b0', '5e32f620bd35435e1f04cf71', '5ec8c0a5bd3543089e62db6f', '5e63b642bd3543229fdeee0d', '5eb4433abd35434d916378b6', '5e7fc0a7bd35434a41518387', '5e8cd3e5bd35430f79a5f0a0', '5e4eb7cdac8db7c6351d1a0a', '5e908fe4bd35431aa857ccdf', '5eae781cfd9edf38793cf3a6', '5e4161a4ac8db7c6350bfabb', '5ea15e73bd35435f7ae585d2', '5e3edca7bd3543221bed8703', '5e6b2549bd3543229fe23ddf', '5e80260abd354341a9ea36a6', '5eaadba2bd35430c1265fe1b', '5e87f808bd35436f34d52f32', '5e7b2aa1bd35433e51cb6ae3', '5ec985fdbd77503ee0d36118', '5ea69c4ebd354348d61288bd', '5e714e6abd35431fc2c29076', '5e918381bd35432047c91374', '5ec67e9ebd77503ee033b2ab', '5eb025a2bd3543053232e572', '5e63d7f8bd354338b13dc573', '5eb55b2dbd35434cc6c1530c', '5e654cfebd354329f9813007', '5e7b13fcbd3543502a1ed66d', '5e8d638cbd35430afe952931', '5e85af6cbd3543695e4381bb', '5ebc520cbd3543460d87ca9a', '5e8ee59dbd35431f03cd9ccf', '5ea2cc5dbd354361b5517921', '5eb16a6bbd35434d4cb6a1e6', '5e7d435cbd3543650d540cf3', '5ea40508bd354338a05e2a15', '5e41a52abd354336ddf21e5c', '5e98378fbd35430f345040b9', '5eb37b9bbd35432e35585b84', '5e9ad2c7bd3543589e6945dd', '5e682929bd354329f9831f75', '5ec74cf5bd77503ee080be8d', '5ed36c36bd77503ee0beea33', '5e8f66c8bd35432157a985a3', '5ea8fc7dbd35437a56e6059a', '5e8c9943bd35430e64549066', '5e876f88bd354374b2d0e0ee', '5e3a7ac5bd35434a59376f5d', '5ed36c32bd77503ee0bee3e0', '5e83ef81bd35437340cbac8c']
27.987097
47
0.857077
621
17,352
23.94686
1
0
0
0
0
0
0
0
0
0
0
0.565358
0.035788
17,352
619
48
28.03231
0.323471
0
0
0
0
0
0.856155
0.856155
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
8de5be88baa48c5cb3d1465913d121332bdd3a81
1,102
py
Python
flask_mrest/SupportUser.py
cindy-zimmerman/vmb-mrest
223f3d1ae719f7cf40d3c1ed75d8bf2df66d8534
[ "MIT" ]
null
null
null
flask_mrest/SupportUser.py
cindy-zimmerman/vmb-mrest
223f3d1ae719f7cf40d3c1ed75d8bf2df66d8534
[ "MIT" ]
null
null
null
flask_mrest/SupportUser.py
cindy-zimmerman/vmb-mrest
223f3d1ae719f7cf40d3c1ed75d8bf2df66d8534
[ "MIT" ]
null
null
null
import os import base64 from flask.ext.login import UserMixin from flask.ext.login import AnonymousUserMixin as AnonymousUser from flask.ext.bcrypt import Bcrypt, generate_password_hash class User(UserMixin): # proxy for a database of users user_database = {"JohnDoe": ("JohnDoe", "John"), "JaneDoe": ("JaneDoe", "Jane") } def __init__(self, uid, username, upload_inv): self.id = uid self.username = username self.upload_inv = upload_inv @classmethod def get(cls,id): return cls.user_database.get(id) class Anonymous(AnonymousUser, dict): def __init__(self): super(Anonymous, self).__init__() self.username = None def __getattribute__(self, item): if item in ['pw', 'password']: raise AttributeError("Anonymous users have no '%s' attribute" % item) else: return super(Anonymous, self).__getattribute__(item) def hasBankRights(self): return False def is_authenticated(self): return False def is_active(self): return True
25.045455
81
0.647913
129
1,102
5.310078
0.472868
0.039416
0.052555
0.049635
0.125547
0
0
0
0
0
0
0.002436
0.254991
1,102
43
82
25.627907
0.831912
0.026316
0
0.064516
1
0
0.078431
0
0
0
0
0
0
1
0.225806
false
0.064516
0.16129
0.129032
0.645161
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
1
0
1
0
1
1
0
0
5
8df000584f4b7291b748f4fbd37a28b8196a6d61
20
py
Python
dock/cccp/__init__.py
Plane-walker/Okeanos
8c8365b1a3133e1b94b62401b416483db0046698
[ "Apache-2.0" ]
6
2021-12-02T07:03:25.000Z
2022-01-05T08:17:10.000Z
dock/cccp/__init__.py
Plane-walker/Okeanus
8c8365b1a3133e1b94b62401b416483db0046698
[ "Apache-2.0" ]
120
2021-12-02T07:38:56.000Z
2022-03-31T05:20:52.000Z
dock/cccp/__init__.py
Plane-walker/Okeanus
8c8365b1a3133e1b94b62401b416483db0046698
[ "Apache-2.0" ]
null
null
null
from .cccp import *
10
19
0.7
3
20
4.666667
1
0
0
0
0
0
0
0
0
0
0
0
0.2
20
1
20
20
0.875
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
5c02e2477edf8576c98dcd4bbda56e5b399d79b3
67
py
Python
bmsapp/__init__.py
alanmitchell/bmon
35b3377efa66d978bb471fe0c69ee0a939ba744b
[ "Apache-2.0" ]
11
2017-03-11T04:29:37.000Z
2021-11-16T11:37:21.000Z
bmsapp/__init__.py
alanmitchell/bmon
35b3377efa66d978bb471fe0c69ee0a939ba744b
[ "Apache-2.0" ]
34
2015-11-24T18:59:34.000Z
2021-08-13T00:42:34.000Z
bmsapp/__init__.py
alanmitchell/bmon
35b3377efa66d978bb471fe0c69ee0a939ba744b
[ "Apache-2.0" ]
7
2016-01-15T01:54:22.000Z
2020-04-26T08:01:06.000Z
from . import logging_setup # causes logging setup code to run.
33.5
66
0.746269
10
67
4.9
0.8
0.489796
0
0
0
0
0
0
0
0
0
0
0.208955
67
1
67
67
0.924528
0.492537
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
5c033f4834bb97ba17bcdface650dc0571d49342
227
py
Python
sqlint/parser/__init__.py
moriaki3193/sqlint
fdb3d872ba44818e82b2c5947e9b9e6cce4d4c18
[ "MIT" ]
1
2020-01-11T13:32:44.000Z
2020-01-11T13:32:44.000Z
sqlint/parser/__init__.py
moriaki3193/sqlint
fdb3d872ba44818e82b2c5947e9b9e6cce4d4c18
[ "MIT" ]
null
null
null
sqlint/parser/__init__.py
moriaki3193/sqlint
fdb3d872ba44818e82b2c5947e9b9e6cce4d4c18
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from sqlint.parser import config from sqlint.parser import parser from sqlint.parser import pattern from sqlint.parser import token __all__ = [ 'config', 'parser', 'pattern', 'token' ]
16.214286
33
0.674009
28
227
5.321429
0.392857
0.268456
0.42953
0.590604
0
0
0
0
0
0
0
0.005556
0.207048
227
13
34
17.461538
0.822222
0.092511
0
0
0
0
0.117647
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0
1
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
0
0
0
5
5c46bd1770de1f14eb11b3af419045f80a00dc44
386
py
Python
sesion7.py
organizacion-sesion-3-anabel-palasi/sesion7-tarea-individual
da7a961ba5f2906849eb922b8576a1e73d8c0189
[ "MIT" ]
null
null
null
sesion7.py
organizacion-sesion-3-anabel-palasi/sesion7-tarea-individual
da7a961ba5f2906849eb922b8576a1e73d8c0189
[ "MIT" ]
null
null
null
sesion7.py
organizacion-sesion-3-anabel-palasi/sesion7-tarea-individual
da7a961ba5f2906849eb922b8576a1e73d8c0189
[ "MIT" ]
null
null
null
from __future__ import print_function import sys # Calcula la suma def suma(num1, num2): pass # Calcula la resta def resta(num1, num2): pass # Calcula la multiplicacion def multiplicacion(num1, num2): pass # Calcula la raiz cuadrada def raizcuadrada(numero): pass # Calcula el módulo def modulo(num1,num2): pass # Calcula x elevado a y def elevado(num1, num2): pass
14.296296
37
0.73057
57
386
4.859649
0.45614
0.144404
0.216607
0.274368
0.227437
0
0
0
0
0
0
0.032154
0.194301
386
26
38
14.846154
0.858521
0.318653
0
0.428571
0
0
0
0
0
0
0
0
0
1
0.428571
false
0.428571
0.142857
0
0.571429
0.071429
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
5
30847c92eb838fd0bfb14db5e32984fc8e07ac9c
38
py
Python
app/module/spotify_to_youtube/__init__.py
MisakaMikoto0502/zeroday
e0a7a652ccca1af10e3ded01eef0baa8eccf0976
[ "MIT" ]
null
null
null
app/module/spotify_to_youtube/__init__.py
MisakaMikoto0502/zeroday
e0a7a652ccca1af10e3ded01eef0baa8eccf0976
[ "MIT" ]
null
null
null
app/module/spotify_to_youtube/__init__.py
MisakaMikoto0502/zeroday
e0a7a652ccca1af10e3ded01eef0baa8eccf0976
[ "MIT" ]
1
2020-11-12T23:02:15.000Z
2020-11-12T23:02:15.000Z
from .convert import SpotifyConverter
19
37
0.868421
4
38
8.25
1
0
0
0
0
0
0
0
0
0
0
0
0.105263
38
1
38
38
0.970588
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
30b9b1ece5d857a5f2050b68e4b79d687c66666c
161
py
Python
pursuit/reward.py
goncalo-rodrigues/thesis
c6d531b72ddeaf2320a4346912df5519138d11d7
[ "MIT" ]
null
null
null
pursuit/reward.py
goncalo-rodrigues/thesis
c6d531b72ddeaf2320a4346912df5519138d11d7
[ "MIT" ]
null
null
null
pursuit/reward.py
goncalo-rodrigues/thesis
c6d531b72ddeaf2320a4346912df5519138d11d7
[ "MIT" ]
null
null
null
def get_reward_function(num_agents, world_size): def reward(state, actions, next_state): return 100 if next_state.terminal else -1 return reward
32.2
49
0.73913
24
161
4.708333
0.708333
0.159292
0
0
0
0
0
0
0
0
0
0.030769
0.192547
161
4
50
40.25
0.838462
0
0
0
0
0
0
0
0
0
0
0
0
1
0.5
false
0
0
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
eb5555057c6adb4ae0be70b7fd8db7343818bc6d
380
py
Python
nenupy/crosslet/__init__.py
AlanLoh/nenupy
5b9e6ae7cc28d0dc4ed450a408b124f71a1c9cc8
[ "MIT" ]
4
2018-10-02T16:32:32.000Z
2022-03-08T10:55:36.000Z
nenupy/crosslet/__init__.py
AlanLoh/nenupy
5b9e6ae7cc28d0dc4ed450a408b124f71a1c9cc8
[ "MIT" ]
54
2018-10-16T14:48:29.000Z
2022-02-24T11:02:59.000Z
nenupy/crosslet/__init__.py
AlanLoh/nenupy
5b9e6ae7cc28d0dc4ed450a408b124f71a1c9cc8
[ "MIT" ]
2
2020-10-12T14:29:17.000Z
2021-11-24T13:11:16.000Z
#! /usr/bin/python3 # -*- coding: utf-8 -*- """ .. inheritance-diagram:: nenupy.crosslet.xstdata nenupy.crosslet.tvdata :parts: 3 .. inheritance-diagram:: nenupy.crosslet.imageprod :parts: 3 """ from .uvw import UVW from .imageprod import NearField, NenuFarTV from .crosslet import Crosslet from .xstdata import XST_Data from .tvdata import TV_Data
18.095238
75
0.689474
46
380
5.652174
0.5
0.161538
0.184615
0.246154
0
0
0
0
0
0
0
0.012987
0.189474
380
20
76
19
0.831169
0.505263
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
eb75a3113177b94c18cc05282d3572eba264451b
19
py
Python
yfinance/version.py
le-minhphuc/yfinance
fc0f97926ef6a960dc8e6649dc74d06c1840195b
[ "Apache-2.0" ]
3
2021-08-08T18:39:14.000Z
2022-03-16T11:50:49.000Z
yfinance/version.py
le-minhphuc/yfinance
fc0f97926ef6a960dc8e6649dc74d06c1840195b
[ "Apache-2.0" ]
null
null
null
yfinance/version.py
le-minhphuc/yfinance
fc0f97926ef6a960dc8e6649dc74d06c1840195b
[ "Apache-2.0" ]
1
2022-02-26T14:06:48.000Z
2022-02-26T14:06:48.000Z
version = "0.1.63"
9.5
18
0.578947
4
19
2.75
1
0
0
0
0
0
0
0
0
0
0
0.25
0.157895
19
1
19
19
0.4375
0
0
0
0
0
0.315789
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
eb779b9b7d03c890f37e745e569728ea8808a2b4
178
py
Python
buffers/__init__.py
MCPS-team/onboard
3cddb23d04dbc386e2e63823322923d3ae66529d
[ "MIT" ]
null
null
null
buffers/__init__.py
MCPS-team/onboard
3cddb23d04dbc386e2e63823322923d3ae66529d
[ "MIT" ]
8
2020-04-04T13:32:38.000Z
2022-03-12T00:20:51.000Z
buffers/__init__.py
MCPS-team/onboard
3cddb23d04dbc386e2e63823322923d3ae66529d
[ "MIT" ]
null
null
null
from .interface import SensorsData, PotholeEvent, PotholeEventHistory from .sensors_buffer import SensorsBuffer from .frame_buffer import FrameBuffer from .swapper import Swapper
44.5
69
0.870787
20
178
7.65
0.6
0.156863
0
0
0
0
0
0
0
0
0
0
0.095506
178
4
70
44.5
0.950311
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
eb7952d74015f362fa580adcf9e8434ae8ea7aed
118
py
Python
osrsmath/general/player.py
Palfore/OSRSmath
373eb1e7f9702b98de318b3c708084353626a177
[ "MIT" ]
5
2020-06-30T06:51:25.000Z
2021-11-16T01:04:48.000Z
osrsmath/general/player.py
Palfore/OSRS-Combat
373eb1e7f9702b98de318b3c708084353626a177
[ "MIT" ]
15
2020-06-19T14:36:38.000Z
2021-04-16T16:17:08.000Z
osrsmath/general/player.py
Palfore/OSRS-Combat
373eb1e7f9702b98de318b3c708084353626a177
[ "MIT" ]
null
null
null
from typing import Dict, List class Player: def __init__(self, levels: Dict[str, int]): self.levels = levels
19.666667
45
0.694915
17
118
4.588235
0.764706
0.25641
0
0
0
0
0
0
0
0
0
0
0.20339
118
5
46
23.6
0.829787
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.25
0
0.75
0
1
0
0
null
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
eb92d674f052da79bed448a378e2e09ca92136e3
10,913
py
Python
Pass/views.py
franklinwagbara/Brookstone-Pastoral-Management-System
a8a4cd66fbb7284e3cd61539bc313100ebd14f94
[ "MIT" ]
null
null
null
Pass/views.py
franklinwagbara/Brookstone-Pastoral-Management-System
a8a4cd66fbb7284e3cd61539bc313100ebd14f94
[ "MIT" ]
null
null
null
Pass/views.py
franklinwagbara/Brookstone-Pastoral-Management-System
a8a4cd66fbb7284e3cd61539bc313100ebd14f94
[ "MIT" ]
null
null
null
from django.shortcuts import render, redirect from StudentManager.functions import viewStudents from StudentManager.models import Students, Allowed, CurrentSeason, Seasons, CheckIn, Pointers import concurrent.futures import threading from django.utils import timezone import datetime from Manager.functions import incrementTotalCheckIn, decrementTotalCheckIn from django.http import HttpResponseRedirect from django.core.mail import send_mail from django.template.loader import render_to_string from django.utils.html import strip_tags from django.contrib import messages from django.urls import reverse from django.contrib.auth.decorators import login_required from Dashboard.decorators import management @login_required(login_url='login') def viewStudentsList(request): #if bool(Group.objects.get(name="accounts") in User.objects.get(username=request.user).groups.all() or # Group.objects.get(name="principal") in User.objects.get(username=request.user).groups.all() or # Group.objects.get(name="administrator") in User.objects.get(username=request.user).groups.all()) == False: # return render(request, 'dashboard/dashboard.html', # {'CheckStat': CheckStat.objects.get(id=1), # 'students': Students.objects.all().filter(CheckedOut="Yes").order_by('LastName') | Students.objects.all().filter(CheckedIn="Yes").order_by('LastName'), # 'mode': 'viewCheckIn'}) return viewStudents(request, "viewStudentsPass.html") @login_required(login_url='login') @management def viewStudentsListAdmin(request): #if bool(Group.objects.get(name="accounts") in User.objects.get(username=request.user).groups.all() or # Group.objects.get(name="principal") in User.objects.get(username=request.user).groups.all() or # Group.objects.get(name="administrator") in User.objects.get(username=request.user).groups.all()) == False: # return render(request, 'dashboard/dashboard.html', # {'CheckStat': CheckStat.objects.get(id=1), # 'students': Students.objects.all().filter(CheckedOut="Yes").order_by('LastName') | Students.objects.all().filter(CheckedIn="Yes").order_by('LastName'), # 'mode': 'viewCheckIn'}) return viewStudents(request, "viewStudentsPassAdmin.html") @login_required(login_url='login') @management def viewCheckInProfileAdmin(request, pk): student = Students.objects.get(pk=pk) season = CurrentSeason.objects.get(pk=1).Season checkin = "" allowed = "" if CheckIn.objects.filter(Student=student, Season=season).exists(): checkedIn = "Yes" checkin = CheckIn.objects.get(Student=student, Season=season) else: checkedIn = "No" if Allowed.objects.filter(Student=student, Season=season).exists(): allowed = Allowed.objects.get(Student=student, Season=season) else: allowed = "" return render(request, "checkInProfilePassAdmin.html", {'student': student, 'checkedIn': checkedIn, 'checkin': checkin, 'allowed': allowed}) @login_required(login_url='login') def viewCheckInProfile(request, pk): student = Students.objects.get(pk=pk) season = CurrentSeason.objects.get(pk=1).Season checkin = "" allowed = "" if CheckIn.objects.filter(Student=student, Season=season).exists(): checkedIn = "Yes" checkin = CheckIn.objects.get(Student=student, Season=season) else: checkedIn = "No" if Allowed.objects.filter(Student=student, Season=season).exists(): allowed = Allowed.objects.get(Student=student, Season=season) else: allowed = "" return render(request, "checkInProfilePass.html", {'student': student, 'checkedIn': checkedIn, 'checkin': checkin, 'allowed': allowed}) def Pass_helperAdmin(request, id): if request.method == "POST": reason = request.POST.getlist("reason")[0] current_season = CurrentSeason.objects.get(pk=1) season = Seasons.objects.get(SeasonName=current_season) student = Students.objects.get(pk=id) if Pointers.objects.filter(id=1).exists(): pass_code = Pointers.objects.get(id=1).PassCodePointer + 1 Pointers.objects.filter(id=1).update(PassCodePointer=pass_code) Pointers.save else: pass_code = CheckIn.objects.all().count() + 1 Pointers.objects.create(id=1, Season=season, PassCodePointer=pass_code) Pointers.save pass_code = str(pass_code).zfill(4) print("here") if Allowed.objects.filter(Student=student, Season=season).exists(): Allowed.objects.create(Student=student, Season=season, Clear="Yes") Allowed.save else: Allowed.objects.filter(Student=student, Season=season).update(Clear="Yes") Allowed.save if CheckIn.objects.filter(Student=student, Season=season).exists(): CheckIn.objects.filter(Student=student, Season=season).update(Passed="Yes", PassCode=pass_code, ReasonPass=reason, DateTimeStamp=timezone.now(), ByStaffPass=(str(request.user.last_name) + ", " + str(request.user.first_name))) CheckIn.save #incrementTotalCheckIn() else: CheckIn.objects.create(Student=student, Season=season, Passed="Yes", PassCode=pass_code, ReasonPass=reason, DateTimeStamp=timezone.now(), ByStaffPass=(str(request.user.last_name) + ", " + str(request.user.first_name))) CheckIn.save #incrementTotalCheckIn() print("checked in----") def Pass_helper(request, id): if request.method == "POST": current_season = CurrentSeason.objects.get(pk=1) season = Seasons.objects.get(SeasonName=current_season) student = Students.objects.get(pk=id) if Pointers.objects.filter(id=1).exists(): pass_code = Pointers.objects.get(id=1).PassCodePointer + 1 Pointers.objects.filter(id=1).update(PassCodePointer=pass_code) Pointers.save() else: pass_code = CheckIn.objects.all().count() + 1 Pointers.objects.create(id=1, Season=season, PassCodePointer=pass_code) Pointers.save pass_code = str(pass_code).zfill(4) if CheckIn.objects.filter(Student=student, Season=season).exists(): CheckIn.objects.filter(Student=student, Season=season).update(Passed="Yes", PassCode=pass_code, ReasonPass="Fulfilled all requirements.", DateTimeStamp=timezone.now(), ByStaffPass=(str(request.user.last_name) + ", " + str(request.user.first_name))) CheckIn.save #incrementTotalCheckIn() else: CheckIn.objects.create(Student=student, Season=season, Passed="Yes", PassCode=pass_code, ReasonPass="Fulfilled all requirements.", DateTimeStamp=timezone.now(), ByStaffPass=(str(request.user.last_name) + ", " + str(request.user.first_name))) CheckIn.save #incrementTotalCheckIn() print("checked in----") def sendEMail(request, mailHead, recipient, template, context): msg="" if recipient != "None": html_message = render_to_string("" + template, { 'context': context}) plain_message = strip_tags(html_message) try: send_mail(mailHead, plain_message, 'wagbarafranklin@yahoo.com', [recipient], html_message=html_message, fail_silently=False) msg = "Email sent Successfully!" return msg except: msg = "Email failed!" return msg else: msg = "Operation Failed! No recipient provided." return msg def wardCheckedInEmail(request, pk): student = Students.objects.get(pk=pk) mailHead = "You Ward have being Checked-in into Brookstone Secondary Boarding Facility" #recipient = student.ParentEmail recipient = "wagbarafranklin@yahoo.com" context = student template = "EmailPassSuccess.html" message = sendEMail(request, mailHead, recipient, template, context) return message @login_required(login_url='login') def Pass(request, pk): #with concurrent.futures.ThreadPoolExecutor() as executor: # results = [executor.submit(checkin_helper, request, id), executor.submit(wardCheckedInEmail, request, id)] # for f in concurrent.futures.as_completed(results): # if f.result() != "EmailNoneResult": # message = f.result() # return message t1 = threading.Thread(target=Pass_helper, args=[request, pk]) t2 = threading.Thread(target=wardCheckedInEmail, args=[request, pk]) message = t1.start() message2 = t2.start() message = "Verification Successfull! Student is cleared to pass." if "Successfull" in message: messages.success(request, message) else: messages.error(request, message) return redirect("/Pass/viewCheckInProfile/" + str(pk)) #return HttpResponseRedirect(request.META.get('HTTP_REFERER')) #return redirect("/Pass/viewCheckInProfile/" + str(pk)) @login_required(login_url='login') @management def PassAdmin(request, pk): # with concurrent.futures.ThreadPoolExecutor() as executor: # results = [executor.submit(checkin_helper, request, id), executor.submit(wardCheckedInEmail, request, id)] # for f in concurrent.futures.as_completed(results): # if f.result() != "EmailNoneResult": # message = f.result() # return message t1 = threading.Thread(target=Pass_helperAdmin, args=[request, pk]) t2 = threading.Thread(target=wardCheckedInEmail, args=[request, pk]) message = t1.start() message2 = t2.start() message = "Verification Successfull! Student is cleared to pass." if "Successfull" in message: print("here " + message) messages.success(request, message) else: messages.error(request, message) return redirect("/Pass/viewCheckInProfileAdmin/" + str(pk))
44.182186
175
0.619903
1,107
10,913
6.04878
0.168022
0.046296
0.050777
0.06601
0.773148
0.773148
0.722073
0.708483
0.689964
0.670848
0
0.003858
0.263722
10,913
247
176
44.182186
0.829496
0.199487
0
0.627119
0
0
0.085593
0.025735
0
0
0
0
0
1
0.056497
false
0.20904
0.090395
0.011299
0.20339
0.022599
0
0
0
null
0
0
0
0
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
5
eba4d643676a3fcce78f4399bac11148652b8553
124
py
Python
yzrpc/config/__init__.py
ml444/yz-rpc
f3b6cb76dab72e1763d759080854c11aa6ade872
[ "Apache-2.0" ]
5
2021-04-28T09:12:04.000Z
2021-11-25T13:50:32.000Z
yzrpc/config/__init__.py
ml444/yz-rpc
f3b6cb76dab72e1763d759080854c11aa6ade872
[ "Apache-2.0" ]
null
null
null
yzrpc/config/__init__.py
ml444/yz-rpc
f3b6cb76dab72e1763d759080854c11aa6ade872
[ "Apache-2.0" ]
2
2021-07-27T04:11:51.000Z
2022-01-06T09:36:06.000Z
#!/usr/bin/python3.7+ # -*- coding:utf-8 -*- """ @auth: cml @date: 2021/2/24 @desc: ... """ from .default_settings import *
13.777778
31
0.580645
18
124
3.944444
1
0
0
0
0
0
0
0
0
0
0
0.093458
0.137097
124
8
32
15.5
0.570093
0.645161
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
ebad9a394b12abe7840739a3ca9d53633742ebed
55
py
Python
sdr_availability/__init__.py
enavu/sdr_avail
d2f5ea4dd927df99e2161b632f382a902761c302
[ "MIT" ]
null
null
null
sdr_availability/__init__.py
enavu/sdr_avail
d2f5ea4dd927df99e2161b632f382a902761c302
[ "MIT" ]
null
null
null
sdr_availability/__init__.py
enavu/sdr_avail
d2f5ea4dd927df99e2161b632f382a902761c302
[ "MIT" ]
null
null
null
from .data_manips import * from .input_prompts import *
27.5
28
0.8
8
55
5.25
0.75
0
0
0
0
0
0
0
0
0
0
0
0.127273
55
2
28
27.5
0.875
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
ebb519f9e5ae7b3eda0281e55c42072bb63c6377
296
py
Python
hitcarder/exception.py
Gavin-Yi/BatchHitcarder
fa3e913d9d8c8f1465b3f27ce03c7766fec22058
[ "MIT" ]
6
2021-09-01T06:12:50.000Z
2022-01-27T08:47:41.000Z
hitcarder/exception.py
Gavin-Yi/BatchHitcarder
fa3e913d9d8c8f1465b3f27ce03c7766fec22058
[ "MIT" ]
null
null
null
hitcarder/exception.py
Gavin-Yi/BatchHitcarder
fa3e913d9d8c8f1465b3f27ce03c7766fec22058
[ "MIT" ]
1
2021-08-05T08:09:36.000Z
2021-08-05T08:09:36.000Z
# -*- coding: utf-8 -*- """Exceptions used in hitcarder. Author: Tishacy """ class LoginError(Exception): """Login Exception""" pass class RegexMatchError(Exception): """Regex Matching Exception""" pass class DecodeError(Exception): """JSON Decode Exception""" pass
14.8
34
0.652027
29
296
6.655172
0.689655
0.202073
0.186529
0
0
0
0
0
0
0
0
0.004219
0.199324
296
19
35
15.578947
0.810127
0.442568
0
0.5
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
5
ebcc6f5254e82cee3db7865a84bb8aee75a34a57
79
py
Python
apps/reviews/views/__init__.py
Haizza1/RandomCameras-Backend
b679e2c685a9f9582f5f1a6b4c79c91c2328e326
[ "MIT" ]
1
2021-06-09T01:35:59.000Z
2021-06-09T01:35:59.000Z
apps/reviews/views/__init__.py
Haizza1/RandomCameras-Backend
b679e2c685a9f9582f5f1a6b4c79c91c2328e326
[ "MIT" ]
null
null
null
apps/reviews/views/__init__.py
Haizza1/RandomCameras-Backend
b679e2c685a9f9582f5f1a6b4c79c91c2328e326
[ "MIT" ]
null
null
null
from .lens import LensReviewsViewSet from .cameras import CamerasReviewsViewSet
39.5
42
0.886076
8
79
8.75
0.75
0
0
0
0
0
0
0
0
0
0
0
0.088608
79
2
42
39.5
0.972222
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
ebce3d3df7c2796b060c8d4e73e0006d7f4ed728
58
py
Python
iterables/Exercises/gradepoints.py
WebucatorTraining/classfiles-actionable-python
930c154a6dbfa6c54768557a998b4dbafb43df38
[ "MIT" ]
2
2022-01-04T22:25:01.000Z
2022-01-16T16:50:23.000Z
iterables/Exercises/gradepoints.py
WebucatorTraining/classfiles-actionable-python
930c154a6dbfa6c54768557a998b4dbafb43df38
[ "MIT" ]
null
null
null
iterables/Exercises/gradepoints.py
WebucatorTraining/classfiles-actionable-python
930c154a6dbfa6c54768557a998b4dbafb43df38
[ "MIT" ]
null
null
null
def main(): pass # replace this with your code main()
14.5
38
0.655172
9
58
4.222222
0.888889
0
0
0
0
0
0
0
0
0
0
0
0.241379
58
4
39
14.5
0.863636
0.465517
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
true
0.333333
0
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
1
1
1
0
0
0
0
0
5
ccff3d169f22ef74f9615d39c14374163ece2518
36
py
Python
synthraw/__init__.py
crowsonkb/synthraw
9ed10500901c1b68cd0babaa4027c239a14ef5f5
[ "MIT" ]
1
2021-08-21T10:32:16.000Z
2021-08-21T10:32:16.000Z
synthraw/__init__.py
crowsonkb/synthraw
9ed10500901c1b68cd0babaa4027c239a14ef5f5
[ "MIT" ]
null
null
null
synthraw/__init__.py
crowsonkb/synthraw
9ed10500901c1b68cd0babaa4027c239a14ef5f5
[ "MIT" ]
null
null
null
from .synthraw import DNG, DNGError
18
35
0.805556
5
36
5.8
1
0
0
0
0
0
0
0
0
0
0
0
0.138889
36
1
36
36
0.935484
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
69013d2731858024fbb4fdf9b3a5c3d2885fed7b
328
py
Python
analyze/routes.py
GustavoBoaz/aganalyze
623b7b7b0cf2a8306d9aa571254e7b68c732105b
[ "MIT" ]
null
null
null
analyze/routes.py
GustavoBoaz/aganalyze
623b7b7b0cf2a8306d9aa571254e7b68c732105b
[ "MIT" ]
null
null
null
analyze/routes.py
GustavoBoaz/aganalyze
623b7b7b0cf2a8306d9aa571254e7b68c732105b
[ "MIT" ]
null
null
null
import flask from flask import Flask, session, render_template,redirect, url_for from run import server @server.route('/') def index(): return render_template("tbases/t_index.html", startpage=True) #@server.route('/dashboard/') #def dashboard(): # return render_template("tbases/t_index.html", startpage=True)
29.818182
68
0.731707
43
328
5.44186
0.488372
0.179487
0.17094
0.222222
0.418803
0.418803
0.418803
0.418803
0.418803
0
0
0
0.134146
328
11
69
29.818182
0.823944
0.332317
0
0
0
0
0.096618
0
0
0
0
0
0
1
0.166667
true
0
0.5
0.166667
0.833333
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
1
1
0
0
5
690dcee11dbc753e3a1f7041e59491292f284107
316
py
Python
aiobook/core/facebook/types/__init__.py
Valenookua/aiobook
0551a4691d1ada0020649cbcdb1b8099ae139557
[ "MIT" ]
4
2019-07-29T12:24:32.000Z
2022-02-01T13:52:03.000Z
aiobook/core/facebook/types/__init__.py
Valenookua/aiobook
0551a4691d1ada0020649cbcdb1b8099ae139557
[ "MIT" ]
null
null
null
aiobook/core/facebook/types/__init__.py
Valenookua/aiobook
0551a4691d1ada0020649cbcdb1b8099ae139557
[ "MIT" ]
null
null
null
from .buttons import \ UrlButton, CallButton, LogOutButton, LogInButton, PostbackButton, GamePlayButton from .elements import Element, MediaElement, OpenGraphElement from .quick_replies import QuickReply from .templates import\ ButtonTemplate, MediaTemplate, GenericTemplate, OpenGraphTemplate, ListTemplate
45.142857
84
0.832278
28
316
9.357143
0.785714
0
0
0
0
0
0
0
0
0
0
0
0.113924
316
6
85
52.666667
0.935714
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
69295772982beccf64f633652a5dad9de85f9bf8
13,358
py
Python
pqb/queries.py
josegomezr/pyqb
a600cc6e4e9acdaaf2cff171d13eb85c9ed1757c
[ "Apache-2.0" ]
null
null
null
pqb/queries.py
josegomezr/pyqb
a600cc6e4e9acdaaf2cff171d13eb85c9ed1757c
[ "Apache-2.0" ]
null
null
null
pqb/queries.py
josegomezr/pyqb
a600cc6e4e9acdaaf2cff171d13eb85c9ed1757c
[ "Apache-2.0" ]
null
null
null
#encoding=utf-8 from . import statements from . import grouping from . import expressions import json class Select: """SELECT Query Builder""" def __init__(self, *fields): """ Inicializa la consulta SELECT opcionalmente los argumentos pasados serna considerados campos para la proyección. """ super(self.__class__, self).__init__() self.raw_fields = fields self.raw_fields = [] self.raw_fields_group = [] self.fields = [] self.group_fields = [] self.raw_tables = [] self.raw_order_by = [] self.order_by_fields = [] self.tables = [] self.where_criteria = grouping.BaseGrouper() def __prepareData__(self): """ Helper para preparar los datos para la produccion del SQL final. """ if isinstance(self.raw_fields, str): self.raw_fields = self.raw_fields.split(',') for x in self.raw_fields: self.fields.append(expressions.AliasExpression(x).result()) if len(self.fields) == 0: self.fields.append('*') for x in self.raw_tables: self.tables.append(expressions.AliasExpression(x).result()) if isinstance(self.raw_fields_group, str): self.raw_fields_group = self.raw_fields_group.split(',') for x in self.raw_fields_group: self.group_fields.append(expressions.AliasExpression(x).result()) if isinstance(self.raw_order_by, str): self.raw_order_by = self.raw_order_by.split(',') for x in self.raw_order_by: self.order_by_fields.append(expressions.OrderByExpression(*x).result()) def from_(self, table, alias=None): """ Establece el origen de datos (y un alias opcionalmente). """ if isinstance(table, str): table = [[table, alias]] self.raw_tables = table return self def where(self, field, value = None, operator = '='): """ Establece condiciones para la consulta unidas por AND """ if field is None: return self conjunction = None if value is None and isinstance(field, dict): for field, value in field.items(): operator, value = value if isinstance(value, tuple) else ('=', value) self.where(field, value, operator) else: if self.where_criteria.size() > 0: conjunction = 'AND' self.where_criteria.append(expressions.ConditionExpression(field, value, operator=operator, conjunction=conjunction)) return self def where_or(self, field, value = None, operator = '='): """ Establece condiciones para la consulta unidas por OR """ if field is None: return self conjunction = None if value is None and isinstance(field, dict): for field, value in field.items(): operator, value = value if isinstance(value, tuple) else ('=', value) self.where_or(field, value, operator) else: if self.where_criteria.size() > 0: conjunction = 'OR' self.where_criteria.append(expressions.ConditionExpression(field, value, operator=operator, conjunction=conjunction)) return self def group_by(self, *args): """ Indica los campos para agrupación """ if len(args) == 1: self.raw_fields_group = args[0].split(',') else: self.raw_fields_group = list(args) return self def order_by(self, field, orientation='ASC'): """ Indica los campos y el criterio de ordenamiento """ if isinstance(field, list): self.raw_order_by.append(field) else: self.raw_order_by.append([field, orientation]) return self def result(self, *args, **kwargs): """ Construye la consulta SQL """ prettify = kwargs.get('pretty', False) self.__prepareData__() sql = 'SELECT ' sql += ', '.join(self.fields) if len(self.tables) > 0: if prettify: sql += '\n' else: sql += ' ' sql += 'FROM ' sql += ', '.join(self.tables) if self.where_criteria.size() > 0: if prettify: sql += '\n' else: sql += ' ' sql += 'WHERE ' sql += self.where_criteria.result() if len(self.group_fields) > 0: if prettify: sql += '\n' else: sql += ' ' sql += 'GROUP BY ' sql += ', '.join(self.group_fields) if len(self.order_by_fields) > 0: if prettify: sql += '\n' else: sql += ' ' sql += 'ORDER BY ' sql += ', '.join(self.order_by_fields) if prettify: sql += '\n' else: sql += ' ' return sql class Delete(object): """ DELETE Query Builder """ def __init__(self, type): """ Inicializa la consulta, type = recurso (Vertex|Edge) """ super(Delete, self).__init__() self._class = None self._cluster = None self._type = None self.data = {} self.where_criteria = grouping.BaseGrouper() self._type = type def class_(self, _class): """ Especifica la clase para eliminar """ self._class = _class return self def where(self, field, value = None, operator = None): """ Establece condiciones para la consulta unidas por AND """ if field is None: return self conjunction = None if value is None and isinstance(field, dict): for f,v in field.items(): if self.where_criteria.size() > 0: conjunction = 'AND' self.where_criteria.append(expressions.ConditionExpression(f, v, operator=operator, conjunction=conjunction)) else: if self.where_criteria.size() > 0: conjunction = 'AND' self.where_criteria.append(expressions.ConditionExpression(field, value, operator=operator, conjunction=conjunction)) return self def where_or(self, field, value = None, operator = None): """ Establece condiciones para la consulta unidas por OR """ if field is None: return self conjunction = None if value is None and isinstance(field, dict): for f,v in field.items(): if self.where_criteria.size() > 0: conjunction = 'OR' self.where_criteria.append(expressions.ConditionExpression(f, v, operator=operator, conjunction=conjunction)) else: if self.where_criteria.size() > 0: conjunction = 'OR' self.where_criteria.append(expressions.ConditionExpression(field, value, operator=operator, conjunction=conjunction)) return self def result(self, *args, **kwargs): """ Construye la consulta SQL """ prettify = kwargs.get('pretty', False) sql = 'DELETE %s %s' % (self._type, self._class) if prettify: sql += '\n' else: sql += ' ' if self.where_criteria.size() > 0: sql += 'WHERE ' sql += self.where_criteria.result() if prettify: sql += '\n' else: sql += ' ' return sql class Create(object): "CREATE query builder" def __init__(self, type): """ Inicializa la consulta, type = recurso (Vertex|Edge) """ super(Create, self).__init__() self._class = None self._cluster = None self._type = None self._from = None self._to = None self.data = {} self._type = type def class_(self, _class): """ Especifica la clase para crear """ self._class = _class return self def cluster(self, cluster): """ Especifica el cluster donde se almacenara el nuevo recurso """ self._cluster = cluster return self def from_(self, From): """ [Edge-only] especifica el origen del lado """ if self._type.lower() != 'edge': raise ValueError('Cannot set From/To to non-edge objects') self._from = From return self def to(self, to): """ [Edge-only] especifica el destino del lado """ if self._type.lower() != 'edge': raise ValueError('Cannot set From/To to non-edge objects') self._to = to return self def set(self, field, value = None): """ [Edge|Vertex] establece datos del recurso """ if value is None and isinstance(field, dict): self.content(field) if field and value: self.data[field] = value return self def content(self, obj): """ [Edge|Vertex] establece datos del recurso """ self.data.update(obj) return self def result(self, *args, **kwargs): """ Construye la consulta SQL """ prettify = kwargs.get('pretty', False) sql = 'CREATE %s %s' % (self._type, self._class) if prettify: sql += '\n' else: sql += ' ' if self._type.lower() == 'edge': sql += " FROM %s TO %s " % (self._from, self._to) if self._cluster: sql += 'CLUSTER %s' % self._cluster if prettify: sql += '\n' else: sql += ' ' if self.data: sql += 'CONTENT ' + json.dumps(self.data) return sql class Update(object): """ UPDATE Query Builder """ def __init__(self, _class): """ Inicializa la clase, _class = origen donde actualizar """ super(Update, self).__init__() self._class = None self._cluster = None self.data = {} self.where_criteria = grouping.BaseGrouper() self._class = _class def set(self, field, value = None): """ [Edge|Vertex] establece datos del recurso """ if value is None and isinstance(field, dict): self.content(field) if field and value: self.data[field] = value return self def content(self, obj): """ [Edge|Vertex] establece datos del recurso """ self.data.update(obj) return self def where(self, field, value = None, operator = None): """ Establece condiciones para la consulta unidas por AND """ if field is None: return self conjunction = None if value is None and isinstance(field, dict): for f,v in field.items(): if self.where_criteria.size() > 0: conjunction = 'AND' self.where_criteria.append(expressions.ConditionExpression(f, v, operator=operator, conjunction=conjunction)) else: if self.where_criteria.size() > 0: conjunction = 'AND' self.where_criteria.append(expressions.ConditionExpression(field, value, operator=operator, conjunction=conjunction)) return self def where_or(self, field, value = None, operator = None): """ Establece condiciones para la consulta unidas por OR """ if field is None: return self conjunction = None if value is None and isinstance(field, dict): for f,v in field.items(): if self.where_criteria.size() > 0: conjunction = 'OR' self.where_criteria.append(expressions.ConditionExpression(f, v, operator=operator, conjunction=conjunction)) else: if self.where_criteria.size() > 0: conjunction = 'OR' self.where_criteria.append(expressions.ConditionExpression(field, value, operator=operator, conjunction=conjunction)) return self def result(self, *args, **kwargs): """ Construye la consulta SQL """ prettify = kwargs.get('pretty', False) sql = 'UPDATE %s' % self._class if prettify: sql += '\n' else: sql += ' ' if self.data: sql += 'MERGE ' + json.dumps(self.data) if prettify: sql += '\n' else: sql += ' ' if self.where_criteria.size() > 0: sql += 'WHERE ' sql += self.where_criteria.result() if prettify: sql += '\n' else: sql += ' ' return sql
30.428246
129
0.52186
1,378
13,358
4.936139
0.100871
0.041017
0.072479
0.036313
0.773596
0.744634
0.718612
0.703764
0.682446
0.629521
0
0.002388
0.37296
13,358
438
130
30.497717
0.809694
0.103084
0
0.703448
0
0
0.029352
0
0
0
0
0
0
1
0.093103
false
0
0.013793
0
0.217241
0
0
0
0
null
0
0
0
0
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
693d94ba1a3f3a9dc2fd595c8130f3d17e2be15c
175
py
Python
tests/integration/examples/abstract/workflows/foo.py
stucox/gadk
6144619d78608df0559e03ee5eab76500fb9b496
[ "MIT" ]
1
2020-08-13T17:34:02.000Z
2020-08-13T17:34:02.000Z
tests/integration/examples/abstract/workflows/foo.py
stucox/gadk
6144619d78608df0559e03ee5eab76500fb9b496
[ "MIT" ]
2
2020-05-04T14:11:02.000Z
2022-03-25T12:00:00.000Z
tests/integration/examples/abstract/workflows/foo.py
stucox/gadk
6144619d78608df0559e03ee5eab76500fb9b496
[ "MIT" ]
1
2022-03-25T11:31:59.000Z
2022-03-25T11:31:59.000Z
from .lib import Service class FooService(Service): def __init__(self) -> None: super().__init__("foo") def service_name(self) -> str: return "foo"
17.5
34
0.617143
21
175
4.714286
0.714286
0
0
0
0
0
0
0
0
0
0
0
0.251429
175
9
35
19.444444
0.755725
0
0
0
0
0
0.034286
0
0
0
0
0
0
1
0.333333
false
0
0.166667
0.166667
0.833333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
15d627fb466b56e4430a1667a7726a0f92474259
265
py
Python
src/ecr/core/manager.py
eXceediDeaL/edl-coderunner
52f7eedd0727b8a428b61640cd9fad33c083d0fc
[ "Apache-2.0" ]
1
2018-11-18T09:30:11.000Z
2018-11-18T09:30:11.000Z
src/ecr/core/manager.py
eXceediDeaL/edl-coderunner
52f7eedd0727b8a428b61640cd9fad33c083d0fc
[ "Apache-2.0" ]
6
2018-11-23T10:44:58.000Z
2018-12-04T03:44:00.000Z
src/ecr/core/manager.py
eXceediDeaL/edl-coderunner
52f7eedd0727b8a428b61640cd9fad33c083d0fc
[ "Apache-2.0" ]
null
null
null
# pylint: disable=W0611 from ._manager import getSystemCommand from ._WorkItem import WorkItem, WorkItemType, initializeCodeDirectory from ._WorkManager import WorkManager, WorkManagerState, hasInitialized, initialize, clear, load from ._Runner import runCommands
37.857143
96
0.845283
26
265
8.461538
0.692308
0
0
0
0
0
0
0
0
0
0
0.016807
0.101887
265
6
97
44.166667
0.907563
0.079245
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
c650c6356878d9e86bee6daa1b754452e9b539eb
418
py
Python
Projects/Project1/regan/__init__.py
adelezaini/MachineLearning
dc3f34f5d509bed6a993705373c46be4da3f97db
[ "MIT" ]
null
null
null
Projects/Project1/regan/__init__.py
adelezaini/MachineLearning
dc3f34f5d509bed6a993705373c46be4da3f97db
[ "MIT" ]
1
2021-10-03T15:16:07.000Z
2021-10-03T15:16:07.000Z
Projects/Project1/regan/__init__.py
adelezaini/MachineLearning
dc3f34f5d509bed6a993705373c46be4da3f97db
[ "MIT" ]
null
null
null
from .crossvalidation import cross_validation from .bootstrap_biasvar import Confidence_Interval, bias_variance_complexity, bootstrap, bias_variance_analysis from .regression import lasso_reg, ridge_reg, OLS_solver, FrankeFunction, create_X, Split_and_Scale, MSE, R2, Plot_FrankeFunction, create_xyz_dataset, plot_ols_complexity, Rolling_Mean from .run_and_plot import run_plot_compare, compare_lmd_CV, compare_lmd_BS
83.6
184
0.875598
59
418
5.745763
0.627119
0.070796
0
0
0
0
0
0
0
0
0
0.002591
0.076555
418
4
185
104.5
0.875648
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
d6a27e5418cbce5cf508a3b79d3166bd5cbc1044
251
py
Python
tests/test.py
MAfarrag/Oasis
10822befc3b6028bcbd3950dabaf4d0a62802871
[ "MIT" ]
2
2020-06-08T15:25:06.000Z
2021-01-05T15:36:22.000Z
tests/test.py
MAfarrag/Oasis
10822befc3b6028bcbd3950dabaf4d0a62802871
[ "MIT" ]
null
null
null
tests/test.py
MAfarrag/Oasis
10822befc3b6028bcbd3950dabaf4d0a62802871
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sun Jan 19 16:34:44 2020 @author: mofarrag """ import Oasis #try: # import Hapi #except ImportError: # try: # import HAPI # except ImportError: # import sys # sys.path.append(".") # import Hapi
13.944444
35
0.613546
33
251
4.666667
0.69697
0.194805
0.168831
0.246753
0.38961
0
0
0
0
0
0
0.067358
0.231076
251
17
36
14.764706
0.73057
0.832669
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
d6fcaa478553acb9cf4e4009c708e5d61fef43cd
304
py
Python
src/scripts/descriptions/__init__.py
anku94/themis_tritonsort
68fd3e2f1c0b2947e187151a2e9717f6b9b0ed0d
[ "BSD-3-Clause" ]
11
2015-12-14T05:35:17.000Z
2021-11-08T22:02:32.000Z
src/scripts/descriptions/__init__.py
anku94/themis_tritonsort
68fd3e2f1c0b2947e187151a2e9717f6b9b0ed0d
[ "BSD-3-Clause" ]
null
null
null
src/scripts/descriptions/__init__.py
anku94/themis_tritonsort
68fd3e2f1c0b2947e187151a2e9717f6b9b0ed0d
[ "BSD-3-Clause" ]
8
2015-12-22T19:31:16.000Z
2020-12-15T12:09:00.000Z
from validateDescription import DescriptionValidator from validateDescription import ValidationFailedError from descriptionutils import Description __all__ = ["validateDescription.DescriptionValidator", "validateDescription.ValidationFailedError", "descriptionutils.Description"]
38
55
0.819079
19
304
12.894737
0.421053
0.187755
0.236735
0
0
0
0
0
0
0
0
0
0.134868
304
7
56
43.428571
0.931559
0
0
0
0
0
0.358553
0.358553
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
1
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
5
ba3670feb7c46377d58127dcc7929de286433fd6
128
py
Python
dlrnapi_client/apis/__init__.py
ssbarnea/dlrnapi_client
e09d278713cdd16cea69bfc64689166d2a886f19
[ "Apache-2.0" ]
1
2017-10-02T19:36:52.000Z
2017-10-02T19:36:52.000Z
dlrnapi_client/apis/__init__.py
ssbarnea/dlrnapi_client
e09d278713cdd16cea69bfc64689166d2a886f19
[ "Apache-2.0" ]
4
2018-07-16T20:14:58.000Z
2022-02-04T07:03:03.000Z
dlrnapi_client/apis/__init__.py
ssbarnea/dlrnapi_client
e09d278713cdd16cea69bfc64689166d2a886f19
[ "Apache-2.0" ]
1
2019-12-09T14:40:47.000Z
2019-12-09T14:40:47.000Z
from __future__ import absolute_import # import apis into api package # from dlrnapi_client.apis.default_api import DefaultApi
25.6
56
0.84375
18
128
5.611111
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.125
128
4
57
32
0.901786
0.648438
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
ba9b44104700c4eb6687ba7f5685b3e1ed88c9b7
173
py
Python
src/researchhub_case/models.py
ResearchHub/ResearchHub-Backend-Open
d36dca33afae2d442690694bb2ab17180d84bcd3
[ "MIT" ]
18
2021-05-20T13:20:16.000Z
2022-02-11T02:40:18.000Z
src/researchhub_case/models.py
ResearchHub/ResearchHub-Backend-Open
d36dca33afae2d442690694bb2ab17180d84bcd3
[ "MIT" ]
109
2021-05-21T20:14:23.000Z
2022-03-31T20:56:10.000Z
src/researchhub_case/models.py
ResearchHub/ResearchHub-Backend-Open
d36dca33afae2d442690694bb2ab17180d84bcd3
[ "MIT" ]
4
2021-05-17T13:47:53.000Z
2022-02-12T10:48:21.000Z
# flake8: noqa from .related_models.researchhub_case_abstract_model import ( AbstractResearchhubCase ) from .related_models.author_claim_case_model import AuthorClaimCase
28.833333
67
0.867052
20
173
7.1
0.7
0.15493
0.239437
0
0
0
0
0
0
0
0
0.006329
0.086705
173
5
68
34.6
0.892405
0.069364
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
bacd16fe0c6e4501acacbe60bb9f0162d36c54ce
210
py
Python
src/1 mac_changer/macchanger-1.py
raminjafary/ethical-hacking
e76f74f4f23e1d8cb7f433d19871dcf966507dfc
[ "MIT" ]
null
null
null
src/1 mac_changer/macchanger-1.py
raminjafary/ethical-hacking
e76f74f4f23e1d8cb7f433d19871dcf966507dfc
[ "MIT" ]
null
null
null
src/1 mac_changer/macchanger-1.py
raminjafary/ethical-hacking
e76f74f4f23e1d8cb7f433d19871dcf966507dfc
[ "MIT" ]
null
null
null
#!/usr/bin/python import subprocess subprocess.call("ifconfig enp2s0 down",shell=True) subprocess.call("ifconfig enp2s0 hw ether 00:11:22:33:44:55",shell=True) subprocess.call("ifconfig enp2s0 up",shell=True)
30
72
0.780952
33
210
4.969697
0.606061
0.256098
0.402439
0.512195
0.45122
0.45122
0
0
0
0
0
0.092308
0.071429
210
7
73
30
0.748718
0.07619
0
0
0
0
0.412371
0
0
0
0
0
0
1
0
true
0
0.25
0
0.25
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
2415c4dbd94ba996410f1487a93d43f09fd2713d
82
py
Python
pgcolorbar/__init__.py
franzhaas/pgcolorbar
0c1ed11bbac50c5a24ecd295d3542d8e0d48f336
[ "MIT" ]
5
2019-05-09T07:14:55.000Z
2022-03-12T20:42:22.000Z
pgcolorbar/__init__.py
franzhaas/pgcolorbar
0c1ed11bbac50c5a24ecd295d3542d8e0d48f336
[ "MIT" ]
1
2020-06-25T16:17:22.000Z
2020-06-25T23:03:21.000Z
pgcolorbar/__init__.py
franzhaas/pgcolorbar
0c1ed11bbac50c5a24ecd295d3542d8e0d48f336
[ "MIT" ]
3
2019-12-18T09:12:54.000Z
2021-12-25T14:55:14.000Z
""" PgColorbar. A colorbar to use in PyQtGraph """ from .misc import __version__
16.4
46
0.731707
11
82
5.090909
1
0
0
0
0
0
0
0
0
0
0
0
0.170732
82
4
47
20.5
0.823529
0.512195
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
242f8344bc55eaec405fee260f56aeb346b9bc33
242
py
Python
tinykit/__init__.py
iromli/timo
e20efa702d9af6aa54597be2719a577db1717c90
[ "MIT" ]
null
null
null
tinykit/__init__.py
iromli/timo
e20efa702d9af6aa54597be2719a577db1717c90
[ "MIT" ]
1
2015-09-09T21:12:06.000Z
2015-09-09T21:12:06.000Z
tinykit/__init__.py
iromli/timo
e20efa702d9af6aa54597be2719a577db1717c90
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals __version__ = "0.2-dev" from .db import Database # noqa from .models import Model # noqa
24.2
39
0.818182
33
242
5.30303
0.545455
0.228571
0.365714
0
0
0
0
0
0
0
0
0.009662
0.144628
242
9
40
26.888889
0.835749
0.03719
0
0
0
0
0.030435
0
0
0
0
0
0
1
0
false
0
0.857143
0
0.857143
0.142857
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
5
79fb4e1f58618ea1810f2bc47fe2f1a5f6d567ee
2,018
py
Python
src/course4/week2/tests/test_tsp.py
manoldonev/algo1-assignments
936ed30bab844d9ed9bbf14e9785174865aac4c3
[ "MIT" ]
null
null
null
src/course4/week2/tests/test_tsp.py
manoldonev/algo1-assignments
936ed30bab844d9ed9bbf14e9785174865aac4c3
[ "MIT" ]
null
null
null
src/course4/week2/tests/test_tsp.py
manoldonev/algo1-assignments
936ed30bab844d9ed9bbf14e9785174865aac4c3
[ "MIT" ]
null
null
null
"""Week2 Test Cases Traveling Salesman Problem""" import math from src.course4.week2.tsp import generate_complete_euclidean_distanace_graph, traveling_salesman_problem def test_tsp1(): points = [(1, 1), (4, 1), (1, 4), (4, 4)] result = traveling_salesman_problem(points) assert result == 12 def test_tsp2(): points = [(0, 0), (0, 3), (3, 3)] result = traveling_salesman_problem(points) assert math.floor(result) == 10 def test_tsp3(): points = [(0, 0), (4, 3), (4, 0), (0, 3)] result = traveling_salesman_problem(points) assert result == 14 def test_tsp4(): points = [ (1.000, 1.00), (1.125, 1.00), (1.250, 1.00), (1.500, 1.00), (1.750, 1.00), (2.000, 1.00), (1.000, 2.00), (1.125, 2.00), (1.250, 2.00), (1.500, 2.00), (1.750, 2.00), (2.000, 2.00) ] result = traveling_salesman_problem(points) assert result == 4 def test_tsp5(): points = [ (0.549963E-07, 0.985808E-08), (-28.8733, -0.797739E-07), (-79.2916, -21.4033), (-14.6577, -43.3896), (-64.7473, 21.8982), (-29.0585, -43.2167), (-72.0785, 0.181581), (-36.0366, -21.6135), (-50.4808, 7.37447), (-50.5859, -21.5882), (-0.135819, -28.7293), (-65.0866, -36.0625), (-21.4983, 7.31942), (-57.5687, -43.2506), (-43.0700, 14.5548) ] result = traveling_salesman_problem(points) assert math.floor(result) == 284 def test_tsp6(): points = [(0, 2.05), (3.414213562373095, 3.4642135623730947), (0.5857864376269049, 0.6357864376269047), (0.5857864376269049, 3.4642135623730947), (2, 0), (4.05, 2.05), (2, 4.10), (3.414213562373095, 0.6357864376269047)] result = traveling_salesman_problem(points) assert math.floor(result) == 12
26.207792
105
0.516353
261
2,018
3.900383
0.35249
0.026523
0.188605
0.176817
0.311395
0.311395
0.311395
0.167976
0.167976
0
0
0.335004
0.30773
2,018
76
106
26.552632
0.393701
0.021308
0
0.131148
1
0
0
0
0
0
0
0
0.098361
1
0.098361
false
0
0.032787
0
0.131148
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
033771ee225a34e014e0d887d187c08c1468ea19
102
py
Python
statelint/nodes/succeed_state.py
taro-kayo/statelint
033f3d24da02ecaf43c7df7775a0fa440a7154c6
[ "Apache-2.0" ]
null
null
null
statelint/nodes/succeed_state.py
taro-kayo/statelint
033f3d24da02ecaf43c7df7775a0fa440a7154c6
[ "Apache-2.0" ]
null
null
null
statelint/nodes/succeed_state.py
taro-kayo/statelint
033f3d24da02ecaf43c7df7775a0fa440a7154c6
[ "Apache-2.0" ]
null
null
null
from .mixins import EndMixin from .state import State class SucceedState(EndMixin, State): pass
14.571429
36
0.764706
13
102
6
0.615385
0
0
0
0
0
0
0
0
0
0
0
0.176471
102
6
37
17
0.928571
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.25
0.5
0
0.75
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
1
0
0
0
0
5
03399ae13ca15542971dcb2768648625794fa9e7
4,901
py
Python
rules.py
turnerdj95/supreme-meme
ea11d931a55baf2bf99f3b5a0cb1c25fd6dca1c1
[ "MIT" ]
null
null
null
rules.py
turnerdj95/supreme-meme
ea11d931a55baf2bf99f3b5a0cb1c25fd6dca1c1
[ "MIT" ]
1
2020-03-14T20:39:43.000Z
2020-03-14T20:39:43.000Z
rules.py
turnerdj95/supreme-meme
ea11d931a55baf2bf99f3b5a0cb1c25fd6dca1c1
[ "MIT" ]
1
2020-03-08T03:56:02.000Z
2020-03-08T03:56:02.000Z
"""" Author: Evan Gibson Purpose: Set win conditions and rules for player behavior that don't initiate """ # Create class for checking board game for win conditions class diaglysis: def __init__(self, board_array, # the board is the only thing that needs to checked for win conditions player_value, # The integer or float that corresponds to this player's checker marker last_play, # The board coordinate for the last play position, we only need to check the last position num_check_win = 4 # The number of adjacent tiles that create a win condition ): self.array = board_array self.play_v = player_value self.win_c = num_check_win # Interpreted as a two item list indexable iterable self.position = last_play def down_right(self): # Execution function for down and right check dr = lambda d, x, y:tuple([x+d, y+d]) # Trying is necessary because we will often index outside of allowable limits try: value_point = [self.array[dr(n, self.position[0], self.position[1])] for n in range(self.win_c)] except: return False # Condition for win is calculated by getting the player's value multipled by the number of spaces he/she has in this row if (self.win_c * self.play_v) == sum(value_point): return True else: return False def down_left(self): # Execution function for down and right check dl = lambda d, x, y:tuple([x-d, y+d]) # Trying is necessary because we will often index outside of allowable limits try: value_point = [self.array[dl(n, self.position[0], self.position[1])] for n in range(self.win_c)] except: return False # Condition for win is calculated by getting the player's value multipled by the number of spaces he/she has in this row if (self.win_c * self.play_v) == sum(value_point): return True else: return False def up_left(self): # Execution function for down and right check ul = lambda d, x, y:tuple([x-d, y-d]) # Trying is necessary because we will often index outside of allowable limits try: value_point = [self.array[ul(n, self.position[0], self.position[1])] for n in range(self.win_c)] except: return False # Condition for win is calculated by getting the player's value multipled by the number of spaces he/she has in this row if (self.win_c * self.play_v) == sum(value_point): return True else: return False def up_right(self): # Execution function for down and right check ur = lambda d, x, y:tuple([x+d, y-d]) # Trying is necessary because we will often index outside of allowable limits try: value_point = [self.array[ur(n, self.position[0], self.position[1])] for n in range(self.win_c)] except: return False # Condition for win is calculated by getting the player's value multipled by the number of spaces he/she has in this row if (self.win_c * self.play_v) == sum(value_point): return True else: return False def just_right(self): jr = lambda d, x, y: tuple([x, y+d]) try: value_point = [self.array[jr(n, self.position[0], self.position[1])] for n in range(self.win_c)] except: return False # Condition for win is calculated by getting the player's value multipled by the number of spaces he/she has in this row if (self.win_c * self.play_v) == sum(value_point): return True else: return False def just_left(self): jl = lambda d, x, y: tuple([x, y-d]) try: value_point = [self.array[jl(n, self.position[0], self.position[1])] for n in range(self.win_c)] except: return False # Condition for win is calculated by getting the player's value multipled by the number of spaces he/she has in this row if (self.win_c * self.play_v) == sum(value_point): return True else: return False def just_down(self): jd = lambda d, x, y: tuple([x+d, y]) try: value_point = [self.array[jd(n, self.position[0], self.position[1])] for n in range(self.win_c)] except: return False # Condition for win is calculated by getting the player's value multipled by the number of spaces he/she has in this row if (self.win_c * self.play_v) == sum(value_point): return True else: return False # We don't need a just_up function because it won't ever flag true
34.034722
128
0.608039
731
4,901
3.995896
0.165527
0.035947
0.041082
0.021568
0.77405
0.766518
0.766518
0.766518
0.760698
0.698391
0
0.004456
0.313201
4,901
143
129
34.272727
0.863339
0.381351
0
0.604938
0
0
0
0
0
0
0
0
0
1
0.098765
false
0
0
0
0.37037
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
0340cde03271facf1f2f72fd9aa4f3c28aaf3393
161
py
Python
apps/dcl/nnm/dcl_util.py
yt7589/cvep
1f77169bdbb614ea32a30d98eba87b028b19890b
[ "Apache-2.0" ]
null
null
null
apps/dcl/nnm/dcl_util.py
yt7589/cvep
1f77169bdbb614ea32a30d98eba87b028b19890b
[ "Apache-2.0" ]
null
null
null
apps/dcl/nnm/dcl_util.py
yt7589/cvep
1f77169bdbb614ea32a30d98eba87b028b19890b
[ "Apache-2.0" ]
1
2020-09-24T04:28:20.000Z
2020-09-24T04:28:20.000Z
# import datetime class DclUtil(object): @staticmethod def datetime_format(): return datetime.datetime.now().strftime("%Y-%m-%d-%H_%M_%S")
23
68
0.639752
20
161
5
0.8
0
0
0
0
0
0
0
0
0
0
0
0.198758
161
7
68
23
0.775194
0
0
0
0
0
0.109677
0
0
0
0
0
0
1
0.2
true
0
0.2
0.2
0.8
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
1
1
0
0
5
0349d06e9ed851735265efce10ebb9e745eacad2
12,070
py
Python
venv/lib/python3.6/site-packages/matchbook/endpoints/betting.py
slarkjm0803/autobets
f92a5d999acaf5d7c83ca2768a260c2282eabbee
[ "MIT" ]
1
2020-03-06T14:29:12.000Z
2020-03-06T14:29:12.000Z
venv/lib/python3.6/site-packages/matchbook/endpoints/betting.py
slarkjm0803/autobets
f92a5d999acaf5d7c83ca2768a260c2282eabbee
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/matchbook/endpoints/betting.py
slarkjm0803/autobets
f92a5d999acaf5d7c83ca2768a260c2282eabbee
[ "MIT" ]
null
null
null
import datetime from matchbook.endpoints.baseendpoint import BaseEndpoint from matchbook import resources from matchbook.enums import Side, Status, AggregationType from matchbook.utils import clean_locals class Betting(BaseEndpoint): def get_orders(self, event_ids=None, market_ids=None, runner_ids=None, offer_id=None, offset=0, per_page=500, interval=None, side=Side.Default, status=Status.Default, session=None): """ Get all orders which fit the argument filters. :param event_ids: operate only on orders on specified events. :type event_ids: comma separated string :param market_ids: operate only on orders on specified markets. :type market_ids: comma separated string :param runner_ids: operate only on orders on specified runners. :type runner_ids: comma separated string :param offer_id: specific order id to use. :param offset: starting point of results. Default 0. :type offset: int :param per_page: no. of offers returned in a single response, Max 500. Default 20. :type per_page: int :param interval: check for orders updated/created in last x seconds, status param must be 'matched'. :type interval: int :param side: filter results by side (dependent on exchange-type). Default None. :type side: MatchbookAPI.bin.enums.Side :param status: operate only on orders with specified status. Default None. :type status: MatchbookAPI.bin.enums.Status :param session: requests session to be used. :type session: requests.Session :returns: Orders data :raises: MatchbookAPI.bin.exceptions.ApiError """ params = clean_locals(locals()) params['exchange-type'] = self.client.exchange_type method = 'offers' date_time_sent = datetime.datetime.utcnow() if offer_id: method = 'offers/{0}'.format(offer_id) params = {'odds-type': self.client.odds_type} response = self.request("GET", self.client.urn_edge, method, params=params, session=session).json() else: response = self.request( "GET", self.client.urn_edge, method, params=params, target='offers', session=session ) date_time_received = datetime.datetime.utcnow() return self.process_response(response, resources.Order, date_time_sent, date_time_received) def send_orders(self, runner_id, odds, side, stake, temp_id=None, session=None): """ Place an order(s) on a runner, multiple orders can be places by providing lists of the required arguments. :param runner_id: runner(s) on which to place bets. :type runner_id: int :param odds: odds at which we wish to place the bet. :type odds: float :param side: The type of bet to place, dependent on exchange. :type side: MatchbookAPI.bin.enums.Side :param stake: amount in account currency to place on the bet. :type stake: float :param temp_id: A helper ID generated by the client to help understand the correlation between multiple submitted offers and their responses. :type temp_id: str :param session: requests session to be used. :type session: requests.Session :returns: Orders responses, i.e. filled or at exchange or errors. :raises: MatchbookAPI.bin.exceptions.ApiError """ date_time_sent = datetime.datetime.utcnow() params = { 'offers': [], 'odds-type': self.client.odds_type, 'exchange-type': self.client.exchange_type, 'currency': self.client.currency, } if isinstance(runner_id, list): if isinstance(temp_id, list): for i, _ in enumerate(runner_id): params['offers'].append({'runner-id': runner_id[i], 'side': side[i], 'stake': stake[i], 'odds': odds[i], 'temp-id': temp_id[i]}) else: for i, _ in enumerate(runner_id): params['offers'].append({'runner-id': runner_id[i], 'side': side[i], 'stake': stake[i], 'odds': odds[i]}) else: params['offers'].append( {'runner-id': runner_id, 'side': side, 'stake': stake, 'odds': odds, 'temp-id': temp_id} ) method = 'offers' response = self.request("POST", self.client.urn_edge, method, data=params, session=session) date_time_received = datetime.datetime.utcnow() return self.process_response( response.json().get('offers', []), resources.Order, date_time_sent, date_time_received ) def get_agg_matched_bets(self, event_ids=None, market_ids=None, runner_ids=None, side=None, offset=0, per_page=500, aggregation_type=AggregationType.Default, session=None): # TODO: Make aggregate matched bets resource """ Get matched bets aggregated. :param event_ids: operate only on orders on specified events. :type event_ids: comma separated string :param market_ids: operate only on orders on specified markets. :type market_ids: comma separated string :param runner_ids: operate only on orders on specified runners. :type runner_ids: comma separated string :param offset: starting point of results. Default 0. :type offset: int :param per_page: no. of offers returned in a single response, Max 500. Default 20. :type per_page: int :param side: filter results by side (dependent on exchange-type). Default None. :type side: MatchbookAPI.bin.enums.Side :param aggregation_type: how to aggregate bets :type aggregation_type: matchbook.enums.AggregationType :param session: requests session to be used. :type session: requests.Session :returns: Orders data :raises: MatchbookAPI.bin.exceptions.ApiError """ params = clean_locals(locals()) date_time_sent = datetime.datetime.utcnow() method = 'bets/matched/aggregated' response = self.request("GET", self.client.urn_edge, method, params=params, target='bets', session=session) date_time_received = datetime.datetime.utcnow() return self.process_response( response, resources.MatchedBets, date_time_sent, date_time_received ) def get_positions(self, event_ids=None, market_ids=None, runner_ids=None, offset=0, per_page=500, session=None): #TODO: Make positions resource """ Get potential profit or loss on each runner. :param event_ids: operate only on orders on specified events. :type event_ids: comma separated string :param market_ids: operate only on orders on specified markets. :type market_ids: comma separated string :param runner_ids: operate only on orders on specified runners. :type runner_ids: comma separated string :param offset: starting point of results. Default 0. :type offset: int :param per_page: no. of offers returned in a single response, Max 500. Default 20. :type per_page: int :param session: requests session to be used. :type session: requests.Session :returns: Orders data :raises: MatchbookAPI.bin.exceptions.ApiError """ params = clean_locals(locals()) date_time_sent = datetime.datetime.utcnow() method = 'account/positions' response = self.request("GET", self.client.urn_edge, method, params=params, session=session) date_time_received = datetime.datetime.utcnow() return self.process_response( response.json().get('bets', []), resources.Order, date_time_sent, date_time_received ) def amend_orders(self, order_id, odds, side, stake, session=None): """ Adjust/Update an order(s), multiple orders can be adjusted by providing lists of the required arguments. :param order_id: order id to adjust. :type order_id: int :param odds: odds at which we wish to place the bet. :type odds: float :param side: back,lay|win,lose side to place bets on. :type side: MatchbookAPI.bin.enums.Side :param stake: amount in account currency to place on the bet. :type stake: float :param session: requests session to be used. :type session: requests.Session :returns: Orders responses, i.e. filled or at exchange or errors. :raises: MatchbookAPI.bin.exceptions.ApiError """ date_time_sent = datetime.datetime.utcnow() params = { 'offers': [], 'odds-type': self.client.odds_type, 'exchange-type': self.client.exchange_type, 'currency': self.client.currency, } if isinstance(order_id, list): method = 'offers' for i, _ in enumerate(order_id): params['offers'].append({'id': order_id[i], 'side': side[i], 'stake': stake[i], 'odds': odds[i]}) else: method = 'offers/{}'.format(order_id) del params['offers'] params['stake'] = stake params['odds'] = odds response = self.request('PUT', self.client.urn_edge, method, data=params, session=session) date_time_received = datetime.datetime.utcnow() return self.process_response( response.json().get('offers', response.json()), resources.Order, date_time_sent, date_time_received ) def delete_bulk_orders(self, event_ids=None, market_ids=None, runner_ids=None, offer_ids=None, session=None): """ Delete all orders which fit the argument filters. :param event_ids: bulk delete orders on specified events. :type event_ids: comma separated string :param market_ids: bulk delete orders on specified markets. :type market_ids: comma separated string :param runner_ids: bulk delete orders on specified runners. :type runner_ids: comma separated string :param offer_ids: delete specific order id. Max offerids in one delete request is 25 :type offer_ids: comma separated string :param session: requests session to be used. :type session: requests.Session :returns: orders deletion report. :raises: MatchbookAPI.bin.exceptions.ApiError """ params = clean_locals(locals()) date_time_sent = datetime.datetime.utcnow() method = 'offers' response = self.request('DELETE', self.client.urn_edge, method, data=params, session=session) date_time_received = datetime.datetime.utcnow() return self.process_response( response.json().get('offers', []), resources.Order, date_time_sent, date_time_received ) def delete_order(self, offer_id, session=None): """ Delete all orders which fit the argument filters. :param offer_id: delete specific order id. :type offer_id: int :param session: requests session to be used. :type session: requests.Session :returns: order deletion report. :raises: MatchbookAPI.bin.exceptions.ApiError """ date_time_sent = datetime.datetime.utcnow() method = 'offers/{}'.format(offer_id) response = self.request('DELETE', self.client.urn_edge, method, session=session) date_time_received = datetime.datetime.utcnow() return self.process_response( response.json(), resources.Order, date_time_sent, date_time_received )
48.28
150
0.629329
1,452
12,070
5.110193
0.130165
0.030189
0.041509
0.040297
0.763477
0.756199
0.731536
0.723181
0.704178
0.683423
0
0.003796
0.279702
12,070
249
151
48.473896
0.849666
0.414664
0
0.448598
0
0
0.065292
0.003921
0
0
0
0.008032
0
1
0.065421
false
0
0.046729
0
0.186916
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
0379c4a5ad96f82ebc3e812082974fee44d8656f
219
py
Python
test_cli/offline_docs/test_cli.py
top-on/offline-docs-py
eaaf343dec2aea7d31d448280a2c1f1aa9f18b49
[ "MIT" ]
null
null
null
test_cli/offline_docs/test_cli.py
top-on/offline-docs-py
eaaf343dec2aea7d31d448280a2c1f1aa9f18b49
[ "MIT" ]
null
null
null
test_cli/offline_docs/test_cli.py
top-on/offline-docs-py
eaaf343dec2aea7d31d448280a2c1f1aa9f18b49
[ "MIT" ]
null
null
null
"""Functional tests of CLI.""" from offline_docs.cli import clean, python def test_python(): """Run 'python' command of CLI.""" python() def test_clean(): """Run 'clean' command of CLI.""" clean()
14.6
42
0.616438
29
219
4.551724
0.482759
0.113636
0.19697
0
0
0
0
0
0
0
0
0
0.214612
219
14
43
15.642857
0.767442
0.369863
0
0
0
0
0
0
0
0
0
0
0
1
0.4
true
0
0.2
0
0.6
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
1
0
0
0
1
0
0
5
ceea6b8cf03cdef1e12e126a72aeae22381afb60
30
py
Python
example_11.py
iljuhas7/lab-15
4d82ff5594193f2d45b7f0a53826ccd5df1b3e5c
[ "MIT" ]
null
null
null
example_11.py
iljuhas7/lab-15
4d82ff5594193f2d45b7f0a53826ccd5df1b3e5c
[ "MIT" ]
null
null
null
example_11.py
iljuhas7/lab-15
4d82ff5594193f2d45b7f0a53826ccd5df1b3e5c
[ "MIT" ]
null
null
null
import os os.mkdir("NewDir")
7.5
18
0.7
5
30
4.2
0.8
0
0
0
0
0
0
0
0
0
0
0
0.133333
30
3
19
10
0.807692
0
0
0
0
0
0.2
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
cefb02cd9b850652024943ed96dd5424d5a01812
5,947
py
Python
test/test_alert_definition_api.py
hpcc-systems/uptrends-python
2e05ba851a4e65bde3c40514f499c475465bef90
[ "BSD-3-Clause" ]
null
null
null
test/test_alert_definition_api.py
hpcc-systems/uptrends-python
2e05ba851a4e65bde3c40514f499c475465bef90
[ "BSD-3-Clause" ]
null
null
null
test/test_alert_definition_api.py
hpcc-systems/uptrends-python
2e05ba851a4e65bde3c40514f499c475465bef90
[ "BSD-3-Clause" ]
null
null
null
# coding: utf-8 """ Uptrends API v4 This document describes Uptrends API version 4. This Swagger environment also lets you execute API methods directly. Please note that this is not a sandbox environment: these API methods operate directly on your actual Uptrends account. For more information, please visit https://www.uptrends.com/api. # noqa: E501 OpenAPI spec version: 1.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import uptrends from uptrends.api.alert_definition_api import AlertDefinitionApi # noqa: E501 from uptrends.rest import ApiException class TestAlertDefinitionApi(unittest.TestCase): """AlertDefinitionApi unit test stubs""" def setUp(self): self.api = uptrends.api.alert_definition_api.AlertDefinitionApi() # noqa: E501 def tearDown(self): pass def test_alert_definition_add_monitor_group_to_alert_definition(self): """Test case for alert_definition_add_monitor_group_to_alert_definition Adds a monitor group to the specified alert definition. # noqa: E501 """ pass def test_alert_definition_add_monitor_to_alert_definition(self): """Test case for alert_definition_add_monitor_to_alert_definition Adds a monitor to the specified alert definition. # noqa: E501 """ pass def test_alert_definition_add_operator_group_to_escalation_level(self): """Test case for alert_definition_add_operator_group_to_escalation_level Adds an operator group to the specified escalation level. # noqa: E501 """ pass def test_alert_definition_add_operator_to_escalation_level(self): """Test case for alert_definition_add_operator_to_escalation_level Adds an operator to the specified escalation level. # noqa: E501 """ pass def test_alert_definition_create_alert_definition(self): """Test case for alert_definition_create_alert_definition Creates a new alert definition. # noqa: E501 """ pass def test_alert_definition_delete_alert_definition(self): """Test case for alert_definition_delete_alert_definition Deletes an existing alert definition. # noqa: E501 """ pass def test_alert_definition_get_all_alert_definitions(self): """Test case for alert_definition_get_all_alert_definitions Gets a list of all alert definitions. # noqa: E501 """ pass def test_alert_definition_get_all_members(self): """Test case for alert_definition_get_all_members Gets a list of all monitor and monitor group guids of the specified alert definition. # noqa: E501 """ pass def test_alert_definition_get_escalation_level(self): """Test case for alert_definition_get_escalation_level Gets the escalation level information of the specified alert definition. # noqa: E501 """ pass def test_alert_definition_get_escalation_level_integration(self): """Test case for alert_definition_get_escalation_level_integration Gets the integrations for the specified escalation level. # noqa: E501 """ pass def test_alert_definition_get_escalation_level_operator(self): """Test case for alert_definition_get_escalation_level_operator Gets the operator and operator group guids for the specified escalation level. # noqa: E501 """ pass def test_alert_definition_get_specified_alert_definitions(self): """Test case for alert_definition_get_specified_alert_definitions Gets the specified alert definition. # noqa: E501 """ pass def test_alert_definition_patch_alert_definition(self): """Test case for alert_definition_patch_alert_definition Partially updates the definition of the specified alert definition. # noqa: E501 """ pass def test_alert_definition_put_alert_definition(self): """Test case for alert_definition_put_alert_definition Updates the definition of the specified alert definition. # noqa: E501 """ pass def test_alert_definition_remove_monitor_from_alert_definition(self): """Test case for alert_definition_remove_monitor_from_alert_definition Removes a monitor for the specified alert definition. # noqa: E501 """ pass def test_alert_definition_remove_monitor_group_from_alert_definition(self): """Test case for alert_definition_remove_monitor_group_from_alert_definition Removes a monitor group for the specified alert definition. # noqa: E501 """ pass def test_alert_definition_remove_operator_from_escalation_level(self): """Test case for alert_definition_remove_operator_from_escalation_level Removes an operator for the specified escalation level. # noqa: E501 """ pass def test_alert_definition_remove_operator_group_from_escalation_level(self): """Test case for alert_definition_remove_operator_group_from_escalation_level Removes an operator group for the specified escalation level. # noqa: E501 """ pass def test_alert_definition_update_integration_for_escalation_with_patch(self): """Test case for alert_definition_update_integration_for_escalation_with_patch Partially updates an integration to the specified escalation level. # noqa: E501 """ pass def test_alert_definition_update_integration_for_escalation_with_put(self): """Test case for alert_definition_update_integration_for_escalation_with_put Updates an integration for the specified escalation level. # noqa: E501 """ pass if __name__ == '__main__': unittest.main()
33.982857
321
0.721708
733
5,947
5.504775
0.151432
0.256506
0.054523
0.079306
0.782652
0.733086
0.682528
0.660223
0.557621
0.464684
0
0.016283
0.225492
5,947
174
322
34.178161
0.859748
0.538927
0
0.403846
0
0
0.003529
0
0
0
0
0
0
1
0.423077
false
0.403846
0.096154
0
0.538462
0
0
0
0
null
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
5
3003e50ef223c2fe1c80b0cb1858ef5b2f1d2df2
400
py
Python
Python/URI 1435.py
LGUSTM/URI
553c62270aa7dd3f42ff0241ec5c190ef7eaa5b8
[ "MIT" ]
null
null
null
Python/URI 1435.py
LGUSTM/URI
553c62270aa7dd3f42ff0241ec5c190ef7eaa5b8
[ "MIT" ]
null
null
null
Python/URI 1435.py
LGUSTM/URI
553c62270aa7dd3f42ff0241ec5c190ef7eaa5b8
[ "MIT" ]
null
null
null
#-*- coding: utf-8 -*- x = [][] while True: n = int(input()) if n == 0: break; else: for i in range(n): for j in range(n) x.append(0) for i in range(n): for j in range(n) x.insert(j, +1) if n-2 > 0: for i in range(1, n-1): for j in range(1, n-1): x.
20
39
0.3525
60
400
2.35
0.366667
0.297872
0.22695
0.234043
0.539007
0.35461
0.35461
0.35461
0.35461
0.35461
0
0.050505
0.505
400
19
40
21.052632
0.661616
0.0525
0
0.25
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
1
0
0
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
300e5849ed78d39773882ba236fa9cd677c82ca2
197
py
Python
venv/lib/python3.8/site-packages/pylint_django/tests/input/func_noerror_gettext_lazy_format.py
DiegoSilvaHoffmann/Small-Ecommerce
c6f9d75cc6dd558aa1ba9abe0186a27fe15b32d2
[ "MIT" ]
1
2022-03-08T11:29:15.000Z
2022-03-08T11:29:15.000Z
venv/lib/python3.8/site-packages/pylint_django/tests/input/func_noerror_gettext_lazy_format.py
DiegoSilvaHoffmann/Small-Ecommerce
c6f9d75cc6dd558aa1ba9abe0186a27fe15b32d2
[ "MIT" ]
2
2021-05-12T06:25:57.000Z
2022-03-01T04:16:03.000Z
env/lib/python3.9/site-packages/pylint_django/tests/input/func_noerror_gettext_lazy_format.py
simotwo/AbileneParadox-ddd
c85961efb37aba43c0d99ed1c36d083507e2b2d3
[ "MIT" ]
7
2021-04-26T15:52:19.000Z
2021-05-04T02:18:56.000Z
""" Checks that Pylint does not complain about django lazy proxy when using gettext_lazy """ from django.utils.translation import gettext_lazy gettext_lazy('{something}').format(something='lala')
24.625
60
0.791878
27
197
5.666667
0.740741
0.215686
0
0
0
0
0
0
0
0
0
0
0.106599
197
7
61
28.142857
0.869318
0.426396
0
0
0
0
0.142857
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
3020060ee4e2f36ccebccf062d3e410da92acae4
71
py
Python
neuralpredictors/data/datasets/statics/__init__.py
Shahdsaf/neuralpredictors
0afc744ccfe7ec733355d0978e0216f49fbc1e98
[ "MIT" ]
9
2020-11-26T18:22:32.000Z
2022-01-22T15:51:52.000Z
neuralpredictors/data/datasets/statics/__init__.py
Shahdsaf/neuralpredictors
0afc744ccfe7ec733355d0978e0216f49fbc1e98
[ "MIT" ]
60
2020-10-21T15:32:28.000Z
2022-02-25T10:38:16.000Z
neuralpredictors/data/datasets/statics/__init__.py
Shahdsaf/neuralpredictors
0afc744ccfe7ec733355d0978e0216f49fbc1e98
[ "MIT" ]
21
2020-10-21T09:29:17.000Z
2022-02-07T10:04:46.000Z
from .base import StaticImageSet from .filetree import FileTreeDataset
23.666667
37
0.859155
8
71
7.625
0.75
0
0
0
0
0
0
0
0
0
0
0
0.112676
71
2
38
35.5
0.968254
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
3072739e3c86175f4f4b186bb41ded1e8e226334
48
py
Python
scripts/hello_kitty.py
zodiacfireworks/introduction-to-programming-in-python
60d07dcbf7bcffebb221a7055596f90444626583
[ "Unlicense", "MIT" ]
null
null
null
scripts/hello_kitty.py
zodiacfireworks/introduction-to-programming-in-python
60d07dcbf7bcffebb221a7055596f90444626583
[ "Unlicense", "MIT" ]
null
null
null
scripts/hello_kitty.py
zodiacfireworks/introduction-to-programming-in-python
60d07dcbf7bcffebb221a7055596f90444626583
[ "Unlicense", "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- print("hello kitty!")
16
25
0.5625
6
48
4.5
1
0
0
0
0
0
0
0
0
0
0
0.02439
0.145833
48
2
26
24
0.634146
0.479167
0
0
0
0
0.521739
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
06af3c1711c197a16ee000d8371e697fec7da088
221
py
Python
examples/helloworld.py
JettHu/mongo-orm
e92c41019b020e092741aecdc965520290633844
[ "Apache-2.0" ]
null
null
null
examples/helloworld.py
JettHu/mongo-orm
e92c41019b020e092741aecdc965520290633844
[ "Apache-2.0" ]
null
null
null
examples/helloworld.py
JettHu/mongo-orm
e92c41019b020e092741aecdc965520290633844
[ "Apache-2.0" ]
1
2021-01-08T01:57:50.000Z
2021-01-08T01:57:50.000Z
from mongo_orm import Model from mongo_orm import StringField from mongo_orm import CommonField class User(Model): name = StringField('user_name', type_check=True) test_field = CommonField('test', default=-9999)
27.625
52
0.778281
31
221
5.354839
0.548387
0.162651
0.216867
0.325301
0
0
0
0
0
0
0
0.021053
0.140271
221
7
53
31.571429
0.852632
0
0
0
0
0
0.058824
0
0
0
0
0
0
1
0
false
0
0.5
0
1
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
5
ebeefa091f343696c04d8ed035bac0621231352a
547
py
Python
archive/2016/week3/homework/xor.py
YAtOff/python0
b5af5004131d64dd52d42746eddb72b6c43a13c7
[ "Apache-2.0" ]
6
2017-11-08T14:04:39.000Z
2019-03-24T22:11:04.000Z
archive/2016/week3/homework/xor.py
YAtOff/python0
b5af5004131d64dd52d42746eddb72b6c43a13c7
[ "Apache-2.0" ]
null
null
null
archive/2016/week3/homework/xor.py
YAtOff/python0
b5af5004131d64dd52d42746eddb72b6c43a13c7
[ "Apache-2.0" ]
7
2015-10-27T09:04:58.000Z
2019-03-03T14:18:26.000Z
""" Дефинирайте функцията `xor` (изключващо ИЛИ), която има следната таблица на истинност: +----------------------+ |Input |Output| +-------+-------+------| |A |B | | +-------+-------+------| |False |False |False | +-------+-------+------| |False |True |True | +-------+-------+------| |True |False |True | +-------+-------+------| |True |True |False | +-------+-------+------+ >>> xor(True, True) False >>> xor(True, False) True """ def xor(a, b): raise Exception('Not implemented')
18.862069
75
0.374771
43
547
4.767442
0.511628
0.195122
0.190244
0.165854
0.302439
0
0
0
0
0
0
0
0.21755
547
28
76
19.535714
0.478972
0.886654
0
0
0
0
0.263158
0
0
0
0
0
0
1
0.5
false
0
0
0
0.5
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
5
234e8ec35a933dbe9b8593770d8444b4f3e7abbf
465
py
Python
aidapy/meta/__init__.py
drdavis/aidapy
c69ce9d8edc6b2d7a83efdf5a2a1a76ff8393ec5
[ "MIT" ]
null
null
null
aidapy/meta/__init__.py
drdavis/aidapy
c69ce9d8edc6b2d7a83efdf5a2a1a76ff8393ec5
[ "MIT" ]
null
null
null
aidapy/meta/__init__.py
drdavis/aidapy
c69ce9d8edc6b2d7a83efdf5a2a1a76ff8393ec5
[ "MIT" ]
null
null
null
from .meta import get_proc_gen from .meta import get_dsids from .meta import proc_gen_from_file from .meta import sort_files_from_txt from .meta import _dsid_table from .meta import _systematic_trees from .meta import _systematic_ud_prefixes from .meta import _systematic_weights from .meta import _systematic_singles from .meta import _systematic_btag_weights __ALL__ = [ 'get_proc_gen', 'get_dsids', 'proc_gen_from_file', 'sort_files_from_txt' ]
25.833333
42
0.808602
71
465
4.788732
0.295775
0.235294
0.411765
0.352941
0
0
0
0
0
0
0
0
0.139785
465
17
43
27.352941
0.85
0
0
0
0
0
0.124731
0
0
0
0
0
0
1
0
false
0
0.625
0
0.625
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
2382c709184f8c5e94301eec51e8dc0b11f7485f
51
py
Python
marcottievents/etl/exml/__init__.py
soccermetrics/marcotti-events
759f3a4ee130fa155fd48e216ef6197a69ee2a33
[ "MIT" ]
22
2015-12-14T20:38:32.000Z
2020-12-26T07:40:26.000Z
marcottievents/etl/exml/__init__.py
soccermetrics/marcotti-events
759f3a4ee130fa155fd48e216ef6197a69ee2a33
[ "MIT" ]
null
null
null
marcottievents/etl/exml/__init__.py
soccermetrics/marcotti-events
759f3a4ee130fa155fd48e216ef6197a69ee2a33
[ "MIT" ]
6
2015-12-20T05:08:57.000Z
2020-06-28T23:57:31.000Z
from .base import BaseXML, FeedElement, FeedParser
25.5
50
0.823529
6
51
7
1
0
0
0
0
0
0
0
0
0
0
0
0.117647
51
1
51
51
0.933333
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
88d1d569ea0ab4b81afbfad2f5eac6b3455a4978
96
py
Python
venv/lib/python3.8/site-packages/jeepney/bindgen.py
Retraces/UkraineBot
3d5d7f8aaa58fa0cb8b98733b8808e5dfbdb8b71
[ "MIT" ]
2
2022-03-13T01:58:52.000Z
2022-03-31T06:07:54.000Z
venv/lib/python3.8/site-packages/jeepney/bindgen.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
19
2021-11-20T04:09:18.000Z
2022-03-23T15:05:55.000Z
venv/lib/python3.8/site-packages/jeepney/bindgen.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
null
null
null
/home/runner/.cache/pip/pool/ea/f2/c8/d53ffbac437df1f03c084b37a86dcb937cc9b32f0cd8412ff499c36c2d
96
96
0.895833
9
96
9.555556
1
0
0
0
0
0
0
0
0
0
0
0.354167
0
96
1
96
96
0.541667
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
88d9d217cd3ecf9b70b53d37bd3dfeab0bc406ab
12,664
py
Python
stack_it/utils/templatetags/node_mixin.py
Jufik/django_stack_it
d95e960ad7ee7f62d5370fb36d0a8dc863a0edd6
[ "MIT" ]
8
2019-04-15T13:14:19.000Z
2022-03-09T17:35:11.000Z
stack_it/utils/templatetags/node_mixin.py
Jufik/django_stack_it
d95e960ad7ee7f62d5370fb36d0a8dc863a0edd6
[ "MIT" ]
3
2019-03-19T13:53:52.000Z
2020-02-11T23:54:45.000Z
stack_it/utils/templatetags/node_mixin.py
Jufik/django_stack_it
d95e960ad7ee7f62d5370fb36d0a8dc863a0edd6
[ "MIT" ]
3
2019-06-05T12:52:26.000Z
2019-07-24T08:14:49.000Z
import logging from django.template import VariableDoesNotExist from django import template from stack_it.contents.abstracts import BaseContentMixin from stack_it.models import Page, Template as TemplateModel from django.db import transaction from django.utils.safestring import mark_safe # Get an instance of a logger logger = logging.getLogger(__name__) register = template.Library() def get_template(request, templatename): if hasattr(request, "templates"): if request.templates.get(templatename) is not None: _template = request.templates.get(templatename) else: with transaction.atomic(): _template, _ = TemplateModel.objects.get_or_create(path=templatename) request.templates.update({templatename: _template}) else: with transaction.atomic(): _template, _ = TemplateModel.objects.get_or_create(path=templatename) request.templates = {templatename: _template} return _template class ContentNodeMixin(template.Node): CONTENT_MODEL = None ADMIN_TEMPLATE = "stack_it/editable.html" INSTANCE_PARAMETER_NAME = None def __init__(self, instance, content_type, key, widget, nodelist): super(ContentNodeMixin, self).__init__() self.instance = template.Variable(instance) self.key_variable = key self.widget = widget self.nodelist = nodelist self.messages = [] self.content_type = content_type self.alternative_content_types = list( dict(BaseContentMixin.CONTENT_TYPES).keys() ) self.alternative_content_types.remove(self.content_type) self.admin_template = template.loader.get_template(self.ADMIN_TEMPLATE) def create_content(self, instance, content_type, key, value): """ Creates related content This is meant to be overriden Returns: CONTENT_MODEL instance: Returns the CONTENT_MODEL instance which's just been created """ attrs = dict( [ (self.INSTANCE_PARAMETER_NAME, instance), ("content_type", content_type), ("key", key), ("value", value), ] ) with transaction.atomic(): content_instance = self.CONTENT_MODEL.objects.create(**attrs) getattr(instance, f"{self.content_type}s").update( dict(((self.key, content_instance),)) ) return content_instance def _get_instance(self, context): return self.instance.resolve(context) def _get_key(self, context): try: return self.key_variable.resolve(context) except AttributeError: return self.key_variable def content(self, context): instance = self._get_instance(context) self.key = self._get_key(context) original_output = self.nodelist.render(context) if self.key in getattr(instance, f"{self.content_type}s").keys(): return getattr(instance, f"{self.content_type}s").get(self.key) for content_type in self.alternative_content_types: # Checking the key cannot be found anywhere else® if self.key in getattr(instance, f"{content_type}s").keys(): content_instance = getattr(instance, f"{content_type}s").get(self.key) content_instance.content_type = self.content_type with transaction.atomic(): content_instance.save() msg = ( "warning", f"Automatically changed {self.key} for instance {content_instance}!", ) self.messages.append(msg) getattr(instance, f"{content_type}s").pop(self.key) getattr(instance, f"{self.content_type}s").update( {self.key: content_instance} ) return content_instance return self.create_content( instance, self.content_type, self.key, original_output ) def render(self, context): content = self.content(context) if hasattr(context["request"], "user") and context["request"].user.is_staff: return self.admin_template.render( { "id": content.id, "key": self.key, "widget": self.widget, "value": mark_safe(content.value), } ) return mark_safe(content.value) class TemplateContentNodeMixin(ContentNodeMixin): def __init__(self, instance, content_type, key, widget, nodelist): super(TemplateContentNodeMixin, self).__init__( instance, content_type, key, widget, nodelist ) self.instance = instance def _get_instance(self, context): request = context["request"] return get_template(request, self.instance) class TextTagMixin(object): CONTENT_MODEL = None ADMIN_TEMPLATE = "stack_it/editable.html" INSTANCE_PARAMETER_NAME = None def __init__(self, instance, content_type, key, content): super(TextTagMixin, self).__init__() self.instance = instance self.key = key self.content = content self.messages = [] self.content_type = content_type self.alternative_content_types = list( dict(BaseContentMixin.CONTENT_TYPES).keys() ) self.alternative_content_types.remove(self.content_type) def create_content(self, instance, content_type, key, value): """ Creates related content This is meant to be overriden Returns: CONTENT_MODEL instance: Returns the CONTENT_MODEL instance which's just been created """ attrs = dict( [ (self.INSTANCE_PARAMETER_NAME, instance), ("content_type", content_type), ("key", key), ("value", value), ] ) with transaction.atomic(): content_instance = self.CONTENT_MODEL.objects.create(**attrs) getattr(instance, f"{self.content_type}s").update( dict(((self.key, content_instance),)) ) return content_instance def __call__(self): instance = self.instance if self.key in getattr(instance, f"{self.content_type}s").keys(): return getattr(instance, f"{self.content_type}s").get(self.key) for content_type in self.alternative_content_types: # Checking the key cannot be found anywhere else® if self.key in getattr(instance, f"{content_type}s").keys(): content_instance = getattr(instance, f"{content_type}s").get(self.key) content_instance.content_type = self.content_type content_instance.save() msg = ( "warning", f"Automatically changed {self.key} for instance {content_instance}!", ) self.messages.append(msg) getattr(instance, f"{content_type}s").pop(self.key) getattr(instance, f"{self.content_type}s").update( {self.key: content_instance} ) return content_instance return self.create_content(instance, self.content_type, self.key, self.content) class ImageTagMixin(object): CONTENT_MODEL = None ADMIN_TEMPLATE = "stack_it/editable.html" INSTANCE_PARAMETER_NAME = None def __init__(self, instance, content_type, key, size, color): super(ImageTagMixin, self).__init__() self.instance = instance self.key = key self.size = size self.color = color self.messages = [] self.content_type = content_type self.alternative_content_types = list( dict(BaseContentMixin.CONTENT_TYPES).keys() ) self.alternative_content_types.remove(self.content_type) self.admin_template = template.loader.get_template(self.ADMIN_TEMPLATE) def create_content( self, instance, content_type, key, size="800x600", color=(0, 0, 0) ): """ Creates related content This is meant to be overriden Returns: CONTENT_MODEL instance: Returns the CONTENT_MODEL instance which's just been created """ attrs = dict( [ (self.INSTANCE_PARAMETER_NAME, instance), ("content_type", content_type), ("key", key), ("size", size), ("color", color), ] ) with transaction.atomic(): content_instance = self.CONTENT_MODEL.init(**attrs) getattr(instance, f"{self.content_type}s").update( dict(((self.key, content_instance),)) ) return content_instance def __call__(self): instance = self.instance if self.key in getattr(instance, f"{self.content_type}s").keys(): return getattr(instance, f"{self.content_type}s").get(self.key) for content_type in self.alternative_content_types: # Checking the key cannot be found anywhere else® if self.key in getattr(instance, f"{content_type}s").keys(): content_instance = getattr(instance, f"{content_type}s").get(self.key) content_instance.content_type = self.content_type content_instance.save() msg = ( "warning", f"Automatically changed {self.key} for instance {content_instance}!", ) self.messages.append(msg) getattr(instance, f"{content_type}s").pop(self.key) getattr(instance, f"{self.content_type}s").update( {self.key: content_instance} ) return content_instance return self.create_content( instance, self.content_type, self.key, self.size, self.color ) class PageTagMixin(object): CONTENT_MODEL = None ADMIN_TEMPLATE = "stack_it/editable.html" INSTANCE_PARAMETER_NAME = None def __init__(self, instance, content_type, key, title): super(PageTagMixin, self).__init__() self.instance = instance self.key = key self.title = title self.messages = [] self.content_type = content_type self.alternative_content_types = list( dict(BaseContentMixin.CONTENT_TYPES).keys() ) self.alternative_content_types.remove(self.content_type) def create_content(self, instance, content_type, key, title): """ Creates related content This is meant to be overriden Returns: CONTENT_MODEL instance: Returns the CONTENT_MODEL instance which's just been created """ with transaction.atomic(): page = Page.get_or_create(title=title) content_instance, created = self.CONTENT_MODEL.objects.get_or_create( **dict( [ (self.INSTANCE_PARAMETER_NAME, instance), ("content_type", content_type), ("key", key), ("value", page), ] ) ) getattr(instance, f"{self.content_type}s").update( dict(((self.key, content_instance),)) ) return content_instance def __call__(self): instance = self.instance if self.key in getattr(instance, f"{self.content_type}s").keys(): return getattr(instance, f"{self.content_type}s").get(self.key) for content_type in self.alternative_content_types: # Checking the key cannot be found anywhere else® if self.key in getattr(instance, f"{content_type}s").keys(): content_instance = getattr(instance, f"{content_type}s").get(self.key) content_instance.content_type = self.content_type content_instance.save() msg = ( "warning", f"Automatically changed {self.key} for instance {content_instance}!", ) self.messages.append(msg) getattr(instance, f"{content_type}s").pop(self.key) getattr(instance, f"{self.content_type}s").update( {self.key: content_instance} ) return content_instance return self.create_content(instance, self.content_type, self.key, self.title)
37.467456
96
0.598231
1,345
12,664
5.421561
0.095911
0.111629
0.065826
0.043884
0.777564
0.774685
0.759737
0.759737
0.752606
0.735326
0
0.001023
0.305433
12,664
337
97
37.578635
0.827535
0.065698
0
0.590226
0
0
0.087379
0.007561
0
0
0
0
0
1
0.067669
false
0
0.026316
0.003759
0.244361
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
cc3ee299e9459c9e80052e393a6d4538040c5868
2,869
py
Python
survey/mixins/data_mixins.py
vahndi/quant-survey
1a0fcf0c22e2c7306cba0218f82d24c97d28ee1f
[ "MIT" ]
2
2021-04-10T21:50:36.000Z
2022-03-26T16:46:52.000Z
survey/mixins/data_mixins.py
vahndi/quant-survey
1a0fcf0c22e2c7306cba0218f82d24c97d28ee1f
[ "MIT" ]
11
2020-08-30T18:47:14.000Z
2021-09-09T15:57:19.000Z
survey/mixins/data_mixins.py
vahndi/quant-survey
1a0fcf0c22e2c7306cba0218f82d24c97d28ee1f
[ "MIT" ]
null
null
null
from typing import Callable, Optional from numpy import nan from pandas import Series, isnull, Interval from pandas.core.dtypes.inference import is_number class ObjectDataMixin(object): _data: Optional[Series] _validate_data: Callable[[Series], None] def _set_data(self, data: Series): self.data = data @property def data(self) -> Series: return self._data @data.setter def data(self, data: Series): if data is None: self._data = None else: self._validate_data(data) self._data = data class NumericDataMixin(object): _data: Optional[Series] _validate_data: Callable[[Series], None] def _set_data(self, data: Series): self.data = data @property def data(self) -> Series: return self._data @data.setter def data(self, data: Series): if data is None: self._data = None else: self._validate_data(data) try: data = data.astype(int) except ValueError: data = data.astype(float) self._data = data class SingleCategoryDataMixin(object): _data: Optional[Series] name: str _validate_data: Callable[[Series], None] def _set_data(self, data: Series): if data is not None: self.data = data @property def data(self) -> Series: return self._data @data.setter def data(self, data: Series): if data is None: self._data = None else: data = Series( index=data.index, data=[nan if isnull(d) else d if type(d) is str else d if type(d) is Interval else str(int(d)) if is_number(d) and d == int(d) else str(d) for d in data.values], name=self.name ).astype('category') self._validate_data(data) self._data = data class MultiCategoryDataMixin(object): _data: Optional[Series] name: str _validate_data: Callable[[Series], None] def _set_data(self, data: Series): self.data = data @property def data(self) -> Series: return self._data @data.setter def data(self, data: Series): if data is None: self._data = None else: data = Series( index=data.index, data=[ nan if isnull(d) else nan if type(d) is str and d == '' else d if type(d) is str else str(d) for d in data.values ], name=self.name ) self._validate_data(data) self._data = data
23.710744
70
0.524922
329
2,869
4.449848
0.151976
0.131148
0.098361
0.098361
0.762978
0.754781
0.747951
0.720628
0.683743
0.659836
0
0
0.388637
2,869
120
71
23.908333
0.834664
0
0
0.73913
0
0
0.002788
0
0
0
0
0
0
1
0.130435
false
0
0.043478
0.043478
0.369565
0
0
0
0
null
0
0
0
0
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
cc79d6e8399be55a7bcc8d37427cc5cc1dfd5dab
77
py
Python
dataspace/count/__init__.py
Sam-prog-sudo/dataspace
2bab85c4dfa713deb835a46e9214c43a3a674082
[ "MIT" ]
3
2021-06-28T09:45:51.000Z
2022-01-10T15:38:07.000Z
dataspace/count/__init__.py
Sam-prog-sudo/dataspace
2bab85c4dfa713deb835a46e9214c43a3a674082
[ "MIT" ]
null
null
null
dataspace/count/__init__.py
Sam-prog-sudo/dataspace
2bab85c4dfa713deb835a46e9214c43a3a674082
[ "MIT" ]
1
2021-07-01T08:50:32.000Z
2021-07-01T08:50:32.000Z
from .count import _count_empty_, _count_null_, _count_unique_, _count_zero_
38.5
76
0.857143
11
77
4.909091
0.636364
0
0
0
0
0
0
0
0
0
0
0
0.090909
77
1
77
77
0.771429
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
cc811e547a3da00e6ae44e1534c31a8f5a34b1ac
224
py
Python
transforms/__init__.py
arpastrana/coronary-mesh-convolution
617e96face7f5686ef9772473c623b4dd3494047
[ "MIT" ]
26
2021-09-22T13:21:35.000Z
2022-03-31T10:42:17.000Z
transforms/__init__.py
arpastrana/coronary-mesh-convolution
617e96face7f5686ef9772473c623b4dd3494047
[ "MIT" ]
null
null
null
transforms/__init__.py
arpastrana/coronary-mesh-convolution
617e96face7f5686ef9772473c623b4dd3494047
[ "MIT" ]
3
2021-12-24T08:37:34.000Z
2022-03-30T19:40:36.000Z
from .feature_descriptors import FeatureDescriptors from .flow_extensions import RemoveFlowExtensions from .geodesics import InletGeodesics from .heat_sampling import HeatSamplingCluster from .rotation import RandomRotation
37.333333
51
0.888393
23
224
8.521739
0.652174
0
0
0
0
0
0
0
0
0
0
0
0.089286
224
5
52
44.8
0.960784
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
ccc7a0fa6409b22fc3312a6ce7a51188b886fcc9
125
gyp
Python
lib-opencc-android/src/main/jni/OpenCC/binding.gyp
huxiaomao/android-opencc
a251591316323151a97d977c39c85e0571c60971
[ "MIT" ]
5,895
2015-01-01T12:28:18.000Z
2022-03-31T07:50:46.000Z
lib-opencc-android/src/main/jni/OpenCC/binding.gyp
huxiaomao/android-opencc
a251591316323151a97d977c39c85e0571c60971
[ "MIT" ]
479
2015-01-01T12:24:31.000Z
2022-03-25T06:15:40.000Z
lib-opencc-android/src/main/jni/OpenCC/binding.gyp
huxiaomao/android-opencc
a251591316323151a97d977c39c85e0571c60971
[ "MIT" ]
888
2015-01-01T11:17:44.000Z
2022-03-31T06:44:44.000Z
{ "includes": [ "node/global.gypi", "node/configs.gypi", "node/dicts.gypi", "node/node_opencc.gypi", ] }
13.888889
28
0.552
14
125
4.857143
0.5
0.352941
0
0
0
0
0
0
0
0
0
0
0.232
125
8
29
15.625
0.708333
0
0
0
0
0
0.616
0.168
0
0
0
0
0
1
0
true
0
0
0
0
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
ccc83bcf90b6ba3ffe7b85809031d22f1a70e459
49
py
Python
test_concat.py
gnumber13/fastapi_webpage
1d993a5e08ba3243c3c472b402234d42cec7f5e5
[ "Apache-2.0" ]
null
null
null
test_concat.py
gnumber13/fastapi_webpage
1d993a5e08ba3243c3c472b402234d42cec7f5e5
[ "Apache-2.0" ]
null
null
null
test_concat.py
gnumber13/fastapi_webpage
1d993a5e08ba3243c3c472b402234d42cec7f5e5
[ "Apache-2.0" ]
null
null
null
import units as un un.concat_blogs('markdown/')
12.25
28
0.755102
8
49
4.5
0.875
0
0
0
0
0
0
0
0
0
0
0
0.122449
49
3
29
16.333333
0.837209
0
0
0
0
0
0.183673
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
ccc94b51bdd15e2bdac688d0a638f51191e25921
85
py
Python
python/python_backup/PRAC_PYTHON/deb.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/python_backup/PRAC_PYTHON/deb.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/python_backup/PRAC_PYTHON/deb.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
a=input("enter a no") if a>0: print "a is positive" else: print "a is negative"
17
23
0.635294
17
85
3.176471
0.647059
0.222222
0.296296
0
0
0
0
0
0
0
0
0.015152
0.223529
85
5
24
17
0.80303
0
0
0
0
0
0.439024
0
0
0
0
0
0
0
null
null
0
0
null
null
0.4
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
1
0
0
0
0
0
0
0
0
5
aea4c0712d6987f270cc22024beb9cac08259c24
149
py
Python
SUAVE/SUAVE-2.5.0/trunk/SUAVE/Analyses/Energy/__init__.py
Vinicius-Tanigawa/Undergraduate-Research-Project
e92372f07882484b127d7affe305eeec2238b8a9
[ "MIT" ]
null
null
null
SUAVE/SUAVE-2.5.0/trunk/SUAVE/Analyses/Energy/__init__.py
Vinicius-Tanigawa/Undergraduate-Research-Project
e92372f07882484b127d7affe305eeec2238b8a9
[ "MIT" ]
null
null
null
SUAVE/SUAVE-2.5.0/trunk/SUAVE/Analyses/Energy/__init__.py
Vinicius-Tanigawa/Undergraduate-Research-Project
e92372f07882484b127d7affe305eeec2238b8a9
[ "MIT" ]
null
null
null
## @defgroup Analyses-Energy Energy # This is the analysis that controls energy network evaluations. # @ingroup Analyses from .Energy import Energy
24.833333
64
0.791946
19
149
6.210526
0.736842
0
0
0
0
0
0
0
0
0
0
0
0.147651
149
5
65
29.8
0.929134
0.758389
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
aea61510a22db06f3e6b798ff3e5806848f24a48
133
py
Python
hardware/temperature_sensor/__init__.py
magnusnordlander/silvia-pi
3b927f73f8c8608a17f1f0e6458d06eff0f1d09a
[ "MIT" ]
16
2020-06-09T22:34:18.000Z
2021-02-09T15:31:16.000Z
hardware/temperature_sensor/__init__.py
magnusnordlander/silvia-pi
3b927f73f8c8608a17f1f0e6458d06eff0f1d09a
[ "MIT" ]
null
null
null
hardware/temperature_sensor/__init__.py
magnusnordlander/silvia-pi
3b927f73f8c8608a17f1f0e6458d06eff0f1d09a
[ "MIT" ]
1
2020-09-03T15:21:15.000Z
2020-09-03T15:21:15.000Z
from .EmulatedSensor import EmulatedSensor try: from .Max31865Sensor import Max31865Sensor except NotImplementedError: pass
19
46
0.81203
12
133
9
0.666667
0
0
0
0
0
0
0
0
0
0
0.089286
0.157895
133
6
47
22.166667
0.875
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.2
0.4
0
0.4
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
aeeb2b9f063f758ea71efe85c75272379bc9ea16
10,367
py
Python
tests/v1tests/test_offices_view.py
Davidodari/POLITICO-API
479560f7accc3a6e46a8cec34c4f435ae9284138
[ "MIT" ]
1
2019-09-05T23:20:21.000Z
2019-09-05T23:20:21.000Z
tests/v1tests/test_offices_view.py
Davidodari/POLITICO-API
479560f7accc3a6e46a8cec34c4f435ae9284138
[ "MIT" ]
4
2019-02-12T10:06:12.000Z
2019-02-20T05:00:40.000Z
tests/v1tests/test_offices_view.py
Davidodari/POLITICO-API
479560f7accc3a6e46a8cec34c4f435ae9284138
[ "MIT" ]
4
2019-02-08T23:54:24.000Z
2019-02-19T16:26:59.000Z
from tests.v1tests import BaseTestCase import json class OfficeEndpointsTestCase(BaseTestCase): def test_create_office(self): """Tests valid data POST Http method request on /offices endpoint""" # Post, uses office specification model response = self.client.post('api/v1/offices', data=json.dumps(self.office)) # Data section returned as per response specification expected_response_json = { 'data': [{ 'id': 1, 'type': 'Senior', 'name': 'Permanent Secretary' }], 'status': 201 } self.assertEqual(response.status_code, 201, "Should Return a 201 HTTP Status Code Response:Created") self.assertEqual(expected_response_json, response.json) def test_create_office_invalid_forbidden(self): """Tests invalid data on POST method request on /offices endpoint""" response = self.client.post('api/v1/offices', json={ 'type': 'n', 'name': 'p' }) self.assertEqual(response.status_code, 400, "Should Return a 400 HTTP Status Code Response:Bad Request") # Should return error message self.assertIn("Check Input Values", response.json['error']) def test_create_office_bad_request(self): """Tests malformed POST Http method request on /offices endpoint""" response = self.client.post('api/v1/offices', json={ # Missing type key 'name': 'Permanent Secretary' }) self.assertEqual(response.status_code, 400, "Should Return a 400 HTTP Status Code Response:Bad Request") # Should return error message self.assertIn("Missing Key value", response.json['error']) def test_view_all_offices(self): """Tests GET Http method request on /offices endpoint""" # Post, create an office first self.client.post('api/v1/offices', data=json.dumps(self.office)) # Retrieve the office response = self.client.get('api/v1/offices') self.assertEqual(response.status_code, 200, "Should Return a 200 HTTP Status Code Response:Success") expected_response_json = { "data": [{ "id": 1, 'type': 'Senior', 'name': 'Permanent Secretary' }], "status": 200 } # Converts to string self.assertEqual(response.json, expected_response_json) def test_view_all_offices_bad_request(self): """Tests malformed GET Http method request on /office endpoint""" response = self.client.get('api/v1/ofices') self.assertEqual(response.status_code, 404, "Should Return a 404 HTTP Status Code Response:Resource Not Found") # Should return error message self.assertEqual(response.json, self.error_default_not_found) def test_view_specific_office(self): """Tests GET Http method request on /office/{:id} endpoint""" # Post, add an office self.client.post('api/v1/offices', data=json.dumps(self.office)) # Get data for specific office response = self.client.get('api/v1/offices/1') expected_response = { "id": 1, "name": "Permanent Secretary", "type": "Senior" } self.assertEqual(response.status_code, 200, "Should Return a 200 HTTP Status Code:Success") # Returns Dict as string and compares if its in response self.assertEqual(response.json['data'][0], expected_response) def test_view_specific_office_invalid_id(self): """Tests malformed GET Http method request on /office/{:id} endpoint""" response = self.client.get('api/v1/offices/{}'.format(4578)) self.assertEqual(response.status_code, 404, "Should Return a 404 HTTP Status Code Response:Bad Request") # Should return error message self.assertEqual(response.json['error'], "Invalid Id Not Found", "Should return resource not found response") def test_view_specific_office_not_found(self): """Tests malformed GET Http method request on /office/{:id} endpoint""" response = self.client.get('api/v1/offies/{}'.format(0)) self.assertEqual(response.status_code, 404, "Should Return a 404 HTTP Status Code Response:Not Found") # Should return error message self.assertEqual(response.json, self.error_default_not_found, "Should return resource not found response") def test_view_specific_office_invalid_id_value_error(self): """Tests valid request but invalid data on DELETE request on /parties/{:id}/name endpoint""" self.client.post('api/v1/offices', data=json.dumps(self.office)) response = self.client.get('api/v1/offices/e') self.assertEqual(response.status_code, 400, "Should Return a 404 HTTP Status Code Response:Not Found") # Should return error message self.assertEqual(response.json['error'], 'Invalid Id', 'Should return not found response') def test_edit_government_office(self): """Tests PATCH Http method request on /offices/{:id}/name endpoint""" # Save Post First self.client.post('api/v1/offices', data=json.dumps(self.office)) edit_request_json = { "name": "Secretary General" } # Update Name response = self.client.patch('api/v1/offices/{}/name'.format(1), data=json.dumps(edit_request_json)) self.assertEqual(response.status_code, 200, "Should Return a 200 HTTP Status Code Response:Updated") self.assertEqual(edit_request_json.get('name'), response.json[0]['data'][0]['name']) def test_edit_office_invalid_id(self): """Tests invalid id on PATCH request on /offices/{:id}/name endpoint""" edit_request_json = { "name": "Secretary General" } response = self.client.patch('api/v1/offices/0/name', data=json.dumps(edit_request_json)) self.assertEqual(response.status_code, 404, "Should Return a 404 HTTP Status Code Response:Not Found") # Should return error message self.assertEqual(response.json['error'], 'Invalid Id Not Found', 'Should return invalid id response') def test_edit_offices_not_found(self): """Tests valid but non existent id on PATCH request on /parties/{:id}/name endpoint""" edit_request_json = { "name": "Secretary" } response = self.client.patch('api/v1/offices/3/name', data=json.dumps(edit_request_json)) self.assertEqual(response.status_code, 404, "Should Return a 404 HTTP Status Code Response:Not Found") # Should return error message self.assertEqual(response.json['error'], 'Invalid Id Not Found', 'Should return not found response') def test_edit_office_invalid_data(self): """Tests valid request but invalid data on PATCH request on /offices/{:id}/name endpoint""" self.client.post('api/v1/offices', data=json.dumps(self.office)) edit_request_json = { "name": "D" } response = self.client.patch('api/v1/offices/1/name', data=json.dumps(edit_request_json)) self.assertEqual(response.status_code, 400, "Should Return a 404 HTTP Status Code Response:Not Found") # Should return error message self.assertEqual(response.json['error'], 'Incorrect Data Received,Bad request', 'Should return not found response') def test_edit_office_invalid_id_value_error(self): """Tests valid request but invalid data on PATCH request on /offices/{:id}/name endpoint""" self.client.post('api/v1/offices', data=json.dumps(self.office)) edit_request_json = { "name": "Secretary General" } response = self.client.patch('api/v1/offices/e/name', data=json.dumps(edit_request_json)) self.assertEqual(response.status_code, 400, "Should Return a 404 HTTP Status Code Response:Not Found") # Should return error message self.assertEqual(response.json['error'], 'Invalid Id', 'Should return not found response') def test_delete_office(self): """Tests DELETE Http method request on /offices/{:id} endpoint""" # Save Post First self.client.post('api/v1/offices', data=json.dumps(self.office)) # Delete Party response = self.client.delete('api/v1/offices/{0}'.format(1)) self.assertEqual(response.status_code, 200, "Should Return a 200 HTTP Status Code Response:Deleted") self.assertEqual("Deleted Successfully", response.json['message']) def test_delete_office_not_found(self): """"Tests malformed DELETE Http method request on /offices/{:id} endpoint""" # Save Post First response = self.client.delete('api/v1/offices/{0}'.format(-1)) self.assertEqual(response.status_code, 404, "Should Return a 404 HTTP Status Code Response:Not Found") # Should return error message self.assertEqual(response.json['error'], 'Invalid Id Not Found', "Should return resource not found response") def test_delete_office_invalid_id_value_error(self): """Tests valid request but invalid data on DELETE request on /offices/{:id}/name endpoint""" self.client.post('api/v1/offices', data=json.dumps(self.office)) response = self.client.delete('api/v1/offices/e') self.assertEqual(response.status_code, 400, "Should Return a 404 HTTP Status Code Response:Not Found") # Should return error message self.assertEqual(response.json['error'], 'Invalid Id') def test_no_duplication(self): # Create self.client.post('api/v1/offices', data=json.dumps(self.office)) response = self.client.post('api/v1/offices', data=json.dumps(self.office)) self.assertEqual(response.status_code, 409, "Should Create Party") self.assertEqual(response.json['error'], "Office Already Exists", "Should Create Non Duplicate Ids")
52.095477
119
0.638082
1,265
10,367
5.127273
0.098814
0.068455
0.109929
0.080481
0.818378
0.777675
0.759019
0.716004
0.678384
0.671292
0
0.020484
0.251278
10,367
198
120
52.358586
0.815125
0.18038
0
0.406015
0
0
0.266547
0.012642
0
0
0
0
0.270677
1
0.135338
false
0
0.015038
0
0.157895
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
4e1536206b4d1cfa352364c637cc311aadf1bba8
25
py
Python
spatialpandas/tools/__init__.py
isabella232/spatialpandas
0a4e08ecf2c9e2f69c65c627cc353d88b6cd2807
[ "BSD-2-Clause" ]
null
null
null
spatialpandas/tools/__init__.py
isabella232/spatialpandas
0a4e08ecf2c9e2f69c65c627cc353d88b6cd2807
[ "BSD-2-Clause" ]
1
2021-04-17T15:22:28.000Z
2021-04-17T15:22:28.000Z
spatialpandas/tools/__init__.py
isabella232/spatialpandas
0a4e08ecf2c9e2f69c65c627cc353d88b6cd2807
[ "BSD-2-Clause" ]
1
2021-04-17T15:22:00.000Z
2021-04-17T15:22:00.000Z
from .sjoin import sjoin
12.5
24
0.8
4
25
5
0.75
0
0
0
0
0
0
0
0
0
0
0
0.16
25
1
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
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
4e1eabc768330804ee534a0cb7e28c5a75de5c29
146
py
Python
bin/iamonds/hexiamonds-4x9.py
tiwo/puzzler
7ad3d9a792f0635f7ec59ffa85fb46b54fd77a7e
[ "Intel" ]
null
null
null
bin/iamonds/hexiamonds-4x9.py
tiwo/puzzler
7ad3d9a792f0635f7ec59ffa85fb46b54fd77a7e
[ "Intel" ]
null
null
null
bin/iamonds/hexiamonds-4x9.py
tiwo/puzzler
7ad3d9a792f0635f7ec59ffa85fb46b54fd77a7e
[ "Intel" ]
1
2022-01-02T16:54:14.000Z
2022-01-02T16:54:14.000Z
#!/usr/bin/env python # $Id$ """74 solutions""" import puzzler from puzzler.puzzles.hexiamonds import Hexiamonds4x9 puzzler.run(Hexiamonds4x9)
14.6
52
0.760274
18
146
6.166667
0.777778
0
0
0
0
0
0
0
0
0
0
0.046154
0.109589
146
9
53
16.222222
0.807692
0.260274
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
4e2e8400bd4aedfb9f4d368c1bd911bfd03fe5ee
76
py
Python
anomaly_tuning/__init__.py
albertcthomas/anomaly_tuning
db97e2abd8442acf35a83f7aa8e5a76b6e364a7c
[ "BSD-3-Clause" ]
40
2016-12-04T20:15:21.000Z
2022-02-06T21:52:25.000Z
anomaly_tuning/__init__.py
Jimmy-INL/anomaly_tuning
db97e2abd8442acf35a83f7aa8e5a76b6e364a7c
[ "BSD-3-Clause" ]
1
2017-05-05T12:03:38.000Z
2017-12-27T09:46:21.000Z
anomaly_tuning/__init__.py
Jimmy-INL/anomaly_tuning
db97e2abd8442acf35a83f7aa8e5a76b6e364a7c
[ "BSD-3-Clause" ]
10
2016-12-04T20:17:19.000Z
2021-03-25T01:38:05.000Z
from .tuning import anomaly_tuning # noqa from . import estimators # noqa
25.333333
42
0.763158
10
76
5.7
0.6
0
0
0
0
0
0
0
0
0
0
0
0.184211
76
2
43
38
0.919355
0.118421
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
4e2f2f4ea324919ab4334ec765caf1955860ad9d
355
py
Python
tests/micropython/opt_level.py
sebi5361/micropython
6c054cd124bc6229bee127128264dc0829dea53c
[ "MIT" ]
181
2018-01-31T08:22:21.000Z
2021-12-25T12:46:18.000Z
tests/micropython/opt_level.py
sebi5361/micropython
6c054cd124bc6229bee127128264dc0829dea53c
[ "MIT" ]
20
2020-04-09T05:49:12.000Z
2022-01-26T10:41:04.000Z
tests/micropython/opt_level.py
sebi5361/micropython
6c054cd124bc6229bee127128264dc0829dea53c
[ "MIT" ]
87
2018-03-22T00:41:48.000Z
2022-02-05T10:09:59.000Z
import micropython as micropython # check we can get and set the level micropython.opt_level(0) print(micropython.opt_level()) micropython.opt_level(1) print(micropython.opt_level()) # check that the optimisation levels actually differ micropython.opt_level(0) exec('print(__debug__)') micropython.opt_level(1) exec('print(__debug__)') exec('assert 0')
23.666667
52
0.794366
52
355
5.153846
0.442308
0.313433
0.425373
0.179104
0
0
0
0
0
0
0
0.015528
0.092958
355
14
53
25.357143
0.81677
0.239437
0
0.8
0
0
0.149813
0
0
0
0
0
0.1
1
0
true
0
0.1
0
0.1
0.4
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
4e385c979c3d6fe7b6ab08deb28eb80c81738d3c
144
py
Python
ch04/ch04_04/ch04_04.py
z2x3c4v5bz/pybook_yehnan
3c7f8124ac49f4abe2682f2a01835af3c3759132
[ "MIT" ]
null
null
null
ch04/ch04_04/ch04_04.py
z2x3c4v5bz/pybook_yehnan
3c7f8124ac49f4abe2682f2a01835af3c3759132
[ "MIT" ]
null
null
null
ch04/ch04_04/ch04_04.py
z2x3c4v5bz/pybook_yehnan
3c7f8124ac49f4abe2682f2a01835af3c3759132
[ "MIT" ]
null
null
null
if __name__ == '__main__': s = 'abcde' print(s[::-1]) print(s[-1::-1]) print(s[-1:0:-1]) # failed ''' edcba edcba edcb '''
9
30
0.472222
21
144
2.857143
0.52381
0.3
0.35
0.266667
0
0
0
0
0
0
0
0.056604
0.263889
144
15
31
9.6
0.509434
0.041667
0
0
0
0
0.118182
0
0
0
0
0
0
1
0
false
0
0
0
0
0.6
1
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
0
0
0
1
0
5
4e392149246411b52371c79da0f48d3e9c133b36
76
py
Python
pvlibs/data_import/__init__.py
bfw930/pvlibs
94bed6cbca1b349eac29136d6703959aeb61bf29
[ "MIT" ]
null
null
null
pvlibs/data_import/__init__.py
bfw930/pvlibs
94bed6cbca1b349eac29136d6703959aeb61bf29
[ "MIT" ]
5
2020-03-24T17:26:11.000Z
2020-12-15T04:39:42.000Z
pvlibs/data_import/__init__.py
bfw930/pvlibs
94bed6cbca1b349eac29136d6703959aeb61bf29
[ "MIT" ]
null
null
null
''' Imports ''' # core import protocols from .core import parse_data_file
12.666667
33
0.723684
10
76
5.3
0.8
0.377358
0
0
0
0
0
0
0
0
0
0
0.171053
76
5
34
15.2
0.84127
0.407895
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
9d69633c65b20950e0e9fe21127560173c00cd10
84
py
Python
frozenweb/__init__.py
rufrozen/frozenweb
e84672425d8d26fe33cd491aa97e997a36dccdb7
[ "MIT" ]
null
null
null
frozenweb/__init__.py
rufrozen/frozenweb
e84672425d8d26fe33cd491aa97e997a36dccdb7
[ "MIT" ]
null
null
null
frozenweb/__init__.py
rufrozen/frozenweb
e84672425d8d26fe33cd491aa97e997a36dccdb7
[ "MIT" ]
null
null
null
from .config import Config from .builder import Builder from .server import Server
16.8
28
0.809524
12
84
5.666667
0.416667
0
0
0
0
0
0
0
0
0
0
0
0.154762
84
4
29
21
0.957746
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
9d7f64fb1575c5608220291b2e4bb2628e61e832
10,116
py
Python
linAlgVis.py
testinggg-art/Linear_Algebra_With_Python
bd5c6bdac07e65b52e92960aee781f63489a0260
[ "MIT" ]
1,719
2020-12-30T07:26:45.000Z
2022-03-31T21:05:57.000Z
linAlgVis.py
testinggg-art/Linear_Algebra_With_Python
bd5c6bdac07e65b52e92960aee781f63489a0260
[ "MIT" ]
1
2021-01-13T00:02:03.000Z
2021-01-13T00:02:03.000Z
linAlgVis.py
testinggg-art/Linear_Algebra_With_Python
bd5c6bdac07e65b52e92960aee781f63489a0260
[ "MIT" ]
421
2020-12-30T07:27:23.000Z
2022-03-01T17:40:41.000Z
import matplotlib.pyplot as plt import numpy as np import numpy def linearCombo(a, b, c): '''This function is for visualizing linear combination of standard basis in 3D. Function syntax: linearCombo(a, b, c), where a, b, c are the scalar multiplier, also the elements of the vector. ''' fig = plt.figure(figsize = (10,10)) ax = fig.add_subplot(projection='3d') ######################## Standard basis and Scalar Multiplid Vectors######################### vec = np.array([[[0, 0, 0, 1, 0, 0]], # e1 [[0, 0, 0, 0, 1, 0]], # e2 [[0, 0, 0, 0, 0, 1]], # e3 [[0, 0, 0, a, 0, 0]], # a* e1 [[0, 0, 0, 0, b, 0]], # b* e2 [[0, 0, 0, 0, 0, c]], # c* e3 [[0, 0, 0, a, b, c]]]) # ae1 + be2 + ce3 colors = ['b','b','b','r','r','r','g'] for i in range(vec.shape[0]): X, Y, Z, U, V, W = zip(*vec[i,:,:]) ax.quiver(X, Y, Z, U, V, W, length=1, normalize=False, color = colors[i] ,arrow_length_ratio = .08, pivot = 'tail', linestyles = 'solid',linewidths = 3, alpha =.6) #################################Plot Rectangle Boxes############################## dlines = np.array([[[a, 0, 0],[a, b, 0]], [[0, b, 0],[a, b, 0]], [[0, 0, c],[a, b, c]], [[0, 0, c],[a, 0, c]], [[a, 0, c],[a, b, c]], [[0, 0, c],[0, b, c]], [[0, b, c],[a, b, c]], [[a, 0, 0],[a, 0, c]], [[0, b, 0],[0, b, c]], [[a, b, 0],[a, b, c]]]) colors = ['k','k','g','k','k','k','k','k','k'] for i in range(dlines.shape[0]): ax.plot(dlines[i,:,0], dlines[i,:,1], dlines[i,:,2], lw =3, ls = '--', color = 'black', alpha=0.5) #################################Annotation######################################## ax.text(x = a, y = b, z = c, s= ' $(%0.d, %0.d, %.0d)$'% (a, b, c), size = 18) ax.text(x = a, y = 0, z = 0, s= ' $%0.d e_1 = (%0.d, 0, 0)$'% (a, a), size = 15) ax.text(x = 0, y = b, z = 0, s= ' $%0.d e_2 = (0, %0.d, 0)$'% (b, b), size = 15) ax.text(x = 0, y = 0, z = c, s= ' $%0.d e_3 = (0, 0, %0.d)$' %(c, c), size = 15) #################################Axis Setting###################################### ax.grid() ax.set_xlim([0, a+1]) ax.set_ylim([0, b+1]) ax.set_zlim([0, c+1]) ax.set_xlabel('x-axis', size = 18) ax.set_ylabel('y-axis', size = 18) ax.set_zlabel('z-axis', size = 18) ax.set_title('Vector $(%0.d, %0.d, %.0d)$ Visualization' %(a, b, c), size = 20) ax.view_init(elev=20., azim=15) if __name__ == '__main__': a = 7 b = 4 c = 9 linearCombo(a, b, c) def linearComboNonStd(a, b, c, vec1, vec2, vec3): '''This function is for visualizing linear combination of non-standard basis in 3D. Function syntax: linearCombo(a, b, c, vec1, vec2, vec3), where a, b, c are the scalar multiplier, ve1, vec2 and vec3 are the basis. ''' fig = plt.figure(figsize = (10,10)) ax = fig.add_subplot(projection='3d') ########################Plot basis############################## vec1 = np.array([[0, 0, 0, vec1[0], vec1[1], vec1[2]]]) X, Y, Z, U, V, W = zip(*vec1) ax.quiver(X, Y, Z, U, V, W, length=1, normalize=False, color = 'blue',arrow_length_ratio = .08, pivot = 'tail', linestyles = 'solid',linewidths = 3) vec2 = np.array([[0, 0, 0, vec2[0], vec2[1], vec2[2]]]) X, Y, Z, U, V, W = zip(*vec2) ax.quiver(X, Y, Z, U, V, W, length=1, normalize=False, color = 'blue',arrow_length_ratio = .08, pivot = 'tail', linestyles = 'solid',linewidths = 3) vec3 = np.array([[0, 0, 0, vec3[0], vec3[1], vec3[2]]]) X, Y, Z, U, V, W = zip(*vec3) ax.quiver(X, Y, Z, U, V, W, length=1, normalize=False, color = 'blue',arrow_length_ratio = .08, pivot = 'tail', linestyles = 'solid',linewidths = 3) ###########################Plot Scalar Muliplied Vectors#################### avec1 = a * vec1 X, Y, Z, U, V, W = zip(*avec1) ax.quiver(X, Y, Z, U, V, W, length=1, normalize=False, color = 'red', alpha = .6,arrow_length_ratio = a/100, pivot = 'tail', linestyles = 'solid',linewidths = 3) bvec2 = b * vec2 X, Y, Z, U, V, W = zip(*bvec2) ax.quiver(X, Y, Z, U, V, W, length=1, normalize=False, color = 'red', alpha = .6,arrow_length_ratio = b/100, pivot = 'tail', linestyles = 'solid',linewidths = 3) cvec3 = c * vec3 X, Y, Z, U, V, W = zip(*cvec3) ax.quiver(X, Y, Z, U, V, W, length=1, normalize=False, color = 'red', alpha = .6,arrow_length_ratio = c/100, pivot = 'tail', linestyles = 'solid',linewidths = 3) combo = avec1 + bvec2 + cvec3 X, Y, Z, U, V, W = zip(*combo) ax.quiver(X, Y, Z, U, V, W, length=1, normalize=False, color = 'green', alpha = .7,arrow_length_ratio = np.linalg.norm(combo)/300, pivot = 'tail', linestyles = 'solid',linewidths = 3) #################################Plot Rectangle Boxes############################## point1 = [avec1[0, 3], avec1[0, 4], avec1[0, 5]] point2 = [avec1[0, 3]+bvec2[0, 3], avec1[0, 4]+bvec2[0, 4], avec1[0, 5]+bvec2[0, 5]] line1 = np.array([point1, point2]) ax.plot(line1[:,0], line1[:,1], line1[:,2], lw =3, ls = '--', color = 'black', alpha=0.5) point1 = [bvec2[0, 3], bvec2[0, 4], bvec2[0, 5]] point2 = [avec1[0, 3]+bvec2[0, 3], avec1[0, 4]+bvec2[0, 4], avec1[0, 5]+bvec2[0, 5]] line1 = np.array([point1, point2]) ax.plot(line1[:,0], line1[:,1], line1[:,2], lw =3, ls = '--', color = 'black', alpha=0.5) point1 = [bvec2[0, 3], bvec2[0, 4], bvec2[0, 5]] point2 = [cvec3[0, 3]+bvec2[0, 3], cvec3[0, 4]+bvec2[0, 4], cvec3[0, 5]+bvec2[0, 5]] line1 = np.array([point1, point2]) ax.plot(line1[:,0], line1[:,1], line1[:,2], lw =3, ls = '--', color = 'black', alpha=0.5) point1 = [cvec3[0, 3], cvec3[0, 4], cvec3[0, 5]] point2 = [cvec3[0, 3]+bvec2[0, 3], cvec3[0, 4]+bvec2[0, 4], cvec3[0, 5]+bvec2[0, 5]] line1 = np.array([point1, point2]) ax.plot(line1[:,0], line1[:,1], line1[:,2], lw =3, ls = '--', color = 'black', alpha=0.5) point1 = [cvec3[0, 3], cvec3[0, 4], cvec3[0, 5]] point2 = [cvec3[0, 3]+avec1[0, 3], cvec3[0, 4]+avec1[0, 4], cvec3[0, 5]+avec1[0, 5]] line1 = np.array([point1, point2]) ax.plot(line1[:,0], line1[:,1], line1[:,2], lw =3, ls = '--', color = 'black', alpha=0.5) point1 = [avec1[0, 3], avec1[0, 4], avec1[0, 5]] point2 = [cvec3[0, 3]+avec1[0, 3], cvec3[0, 4]+avec1[0, 4], cvec3[0, 5]+avec1[0, 5]] line1 = np.array([point1, point2]) ax.plot(line1[:,0], line1[:,1], line1[:,2], lw =3, ls = '--', color = 'black', alpha=0.5) ## point1 = [avec1[0, 3]+bvec2[0, 3]+cvec3[0, 3], avec1[0, 4]+bvec2[0, 4]+cvec3[0, 4], avec1[0, 5]+bvec2[0, 5]+cvec3[0, 5]] point2 = [cvec3[0, 3]+avec1[0, 3], cvec3[0, 4]+avec1[0, 4], cvec3[0, 5]+avec1[0, 5]] line1 = np.array([point1, point2]) ax.plot(line1[:,0], line1[:,1], line1[:,2], lw =3, ls = '--', color = 'black', alpha=0.5) ## point1 = [avec1[0, 3]+bvec2[0, 3]+cvec3[0, 3], avec1[0, 4]+bvec2[0, 4]+cvec3[0, 4], avec1[0, 5]+bvec2[0, 5]+cvec3[0, 5]] point2 = [cvec3[0, 3]+bvec2[0, 3], cvec3[0, 4]+bvec2[0, 4], cvec3[0, 5]+bvec2[0, 5]] line1 = np.array([point1, point2]) ax.plot(line1[:,0], line1[:,1], line1[:,2], lw =3, ls = '--', color = 'black', alpha=0.5) ## point1 = [avec1[0, 3]+bvec2[0, 3]+cvec3[0, 3], avec1[0, 4]+bvec2[0, 4]+cvec3[0, 4], avec1[0, 5]+bvec2[0, 5]+cvec3[0, 5]] point2 = [bvec2[0, 3]+avec1[0, 3], bvec2[0, 4]+avec1[0, 4], bvec2[0, 5]+avec1[0, 5]] line1 = np.array([point1, point2]) ax.plot(line1[:,0], line1[:,1], line1[:,2], lw =3, ls = '--', color = 'black', alpha=0.5) #################################Annotation######################################## ax.text(x = vec1[0,3], y = vec1[0,4], z = vec1[0,5], s= ' $v_1 =(%0.d, %0.d, %.0d)$'% (vec1[0,3], vec1[0,4], vec1[0,4]), size = 8) ax.text(x = vec2[0,3], y = vec2[0,4], z = vec2[0,5], s= ' $v_2 =(%0.d, %0.d, %.0d)$'% (vec2[0,3], vec2[0,4], vec2[0,4]), size = 8) ax.text(x = vec3[0,3], y = vec3[0,4], z = vec3[0,5], s= ' $v_3= (%0.d, %0.d, %.0d)$'% (vec3[0,3], vec3[0,4], vec3[0,4]), size = 8) ax.text(x = avec1[0,3], y = avec1[0,4], z = avec1[0,5], s= ' $%.0d v_1 =(%0.d, %0.d, %.0d)$'% (a, avec1[0,3], avec1[0,4], avec1[0,4]), size = 8) ax.text(x = bvec2[0,3], y = bvec2[0,4], z = bvec2[0,5], s= ' $%.0d v_2 =(%0.d, %0.d, %.0d)$'% (b, bvec2[0,3], bvec2[0,4], bvec2[0,4]), size = 8) ax.text(x = cvec3[0,3], y = cvec3[0,4], z = cvec3[0,5], s= ' $%.0d v_3= (%0.d, %0.d, %.0d)$'% (c, cvec3[0,3], cvec3[0,4], cvec3[0,4]), size = 8) # ax.text(x = 0, y = b, z = 0, s= ' $%0.d e_2 = (0, %0.d, 0)$'% (b, b), size = 15) # ax.text(x = 0, y = 0, z = c, s= ' $%0.d e_3 = (0, 0, %0.d)$' %(c, c), size = 15) #################################Axis Setting###################################### ax.grid() ax.set_xlim([0, 15]) ax.set_ylim([0, 15]) ax.set_zlim([0, 15]) ax.set_xlabel('x-axis', size = 18) ax.set_ylabel('y-axis', size = 18) ax.set_zlabel('z-axis', size = 18) #ax.set_title('Vector $(%0.d, %0.d, %.0d)$ Visualization' %(a, b, c), size = 20) ax.view_init(elev=20., azim=15) if __name__ == '__main__': a = 2 b = 3 c = 4 vec1 = np.array([2,1,0]) vec2 = np.array([0,3,1]) vec3 = np.array([1,2,3]) linearComboNonStd(a, b, c, vec1,vec2,vec3)
49.106796
151
0.447608
1,638
10,116
2.727106
0.089744
0.022834
0.01276
0.014327
0.800313
0.765167
0.755317
0.667114
0.60891
0.60891
0
0.117192
0.272044
10,116
205
152
49.346341
0.489408
0.085409
0
0.430464
0
0
0.065362
0
0
0
0
0
0
1
0.013245
false
0
0.019868
0
0.033113
0
0
0
0
null
0
0
0
1
1
1
0
0
1
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
9db1ca32e26f2e175183e2943958ba3a55af376e
65
py
Python
__init__.py
merialdo/research.mojito
7da21b49ada517d9fdd90aa9efcf3da88265165d
[ "Apache-2.0" ]
null
null
null
__init__.py
merialdo/research.mojito
7da21b49ada517d9fdd90aa9efcf3da88265165d
[ "Apache-2.0" ]
null
null
null
__init__.py
merialdo/research.mojito
7da21b49ada517d9fdd90aa9efcf3da88265165d
[ "Apache-2.0" ]
null
null
null
from mojito.mojito import Mojito from mojito.chart import chart
21.666667
32
0.830769
10
65
5.4
0.4
0.37037
0
0
0
0
0
0
0
0
0
0
0.138462
65
2
33
32.5
0.964286
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
9dc2cb446a270414b43e9b175af330f494870955
159
py
Python
Python learnings/Django projects/advcbv/basic_app/admin.py
warpalatino/public
f04ce183799bcdd2fb8dc376d41d286314c19460
[ "MIT" ]
1
2021-01-04T10:37:16.000Z
2021-01-04T10:37:16.000Z
Python learnings/Django projects/advcbv/basic_app/admin.py
warpalatino/public
f04ce183799bcdd2fb8dc376d41d286314c19460
[ "MIT" ]
null
null
null
Python learnings/Django projects/advcbv/basic_app/admin.py
warpalatino/public
f04ce183799bcdd2fb8dc376d41d286314c19460
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import School,Student # Register your models here. admin.site.register(School) admin.site.register(Student)
26.5
35
0.792453
22
159
5.727273
0.545455
0.142857
0.269841
0
0
0
0
0
0
0
0
0
0.125786
159
5
36
31.8
0.906475
0.163522
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
9dd09a1bbc3ec48519916588b9590e901a1add30
189
py
Python
mc_luigi/tools/__init__.py
constantinpape/mc_luigi
c8dac84ace7d422f7ec25d722204b25d625c84e1
[ "MIT" ]
null
null
null
mc_luigi/tools/__init__.py
constantinpape/mc_luigi
c8dac84ace7d422f7ec25d722204b25d625c84e1
[ "MIT" ]
null
null
null
mc_luigi/tools/__init__.py
constantinpape/mc_luigi
c8dac84ace7d422f7ec25d722204b25d625c84e1
[ "MIT" ]
null
null
null
from .tools import config_logger, run_decorator, get_replace_slices from .numpy_tools import get_unique_rows, find_matching_row_indices, find_matching_indices, replace_from_dict, cartesian
63
120
0.883598
28
189
5.464286
0.678571
0.143791
0
0
0
0
0
0
0
0
0
0
0.074074
189
2
121
94.5
0.874286
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
9dd211d6cb9ef639dc6cf5621bf37236b25be30b
54
py
Python
src/destination/abstract_classes/__init__.py
tomfran/lastfm-project
a4acd177d69235e49653f103a897a18c37c3d230
[ "MIT" ]
1
2021-07-21T16:51:12.000Z
2021-07-21T16:51:12.000Z
src/destination/abstract_classes/__init__.py
tomfran/lastfm-project
a4acd177d69235e49653f103a897a18c37c3d230
[ "MIT" ]
null
null
null
src/destination/abstract_classes/__init__.py
tomfran/lastfm-project
a4acd177d69235e49653f103a897a18c37c3d230
[ "MIT" ]
null
null
null
from .abstract_destination import AbstractDestination
27
53
0.907407
5
54
9.6
1
0
0
0
0
0
0
0
0
0
0
0
0.074074
54
1
54
54
0.96
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
9df69d1993ba1962b1a8947d4eeebefe11fd9e8d
270
py
Python
config.py
mixtek/Webscraping_Mars
d4db4a6976a1975edd8a7778f00669f62a47f112
[ "ADSL" ]
null
null
null
config.py
mixtek/Webscraping_Mars
d4db4a6976a1975edd8a7778f00669f62a47f112
[ "ADSL" ]
null
null
null
config.py
mixtek/Webscraping_Mars
d4db4a6976a1975edd8a7778f00669f62a47f112
[ "ADSL" ]
null
null
null
# Twitter API Keys consumer_key = "k4dGS4RNgveXn70tuR8fujiAu" consumer_secret = "frPRDp5msMHGMSYuN1O6NNHxeVWQqXaxnM4dbNV9xkYUUYX4zY" access_token = "998672844635680768-Z2zPjjlcomyQ56dwfymWJYqXfttZcQR" access_token_secret = "pmqEqTWYOI5LzFINOAiF8Uuah6K4j0eRfWn3qx3QlsEe8"
54
70
0.892593
17
270
13.882353
0.764706
0.09322
0
0
0
0
0
0
0
0
0
0.156863
0.055556
270
5
71
54
0.768627
0.059259
0
0
0
0
0.671937
0.671937
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
d17b112e5e233866791d1600d3442d247b62bad5
98
py
Python
example/tasks.py
khorolets/kuyruk
c65924cc3e3f51b7c20bf98cb2b92cffe2f63dd8
[ "MIT" ]
null
null
null
example/tasks.py
khorolets/kuyruk
c65924cc3e3f51b7c20bf98cb2b92cffe2f63dd8
[ "MIT" ]
null
null
null
example/tasks.py
khorolets/kuyruk
c65924cc3e3f51b7c20bf98cb2b92cffe2f63dd8
[ "MIT" ]
null
null
null
from kuyruk import Kuyruk kuyruk = Kuyruk() @kuyruk.task() def echo(message): print message
12.25
25
0.714286
13
98
5.384615
0.615385
0.514286
0.514286
0
0
0
0
0
0
0
0
0
0.183673
98
7
26
14
0.875
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0.2
null
null
0.2
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
1
0
0
0
0
0
0
0
0
5