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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
13f7fae22df5cb95a5579d147284258dfeb43c98 | 222 | py | Python | client_examples/example1/functions/transactions.py | rrhg/accounting-data-entry-helper | 81486c4b4bdff315966a7a61b2c45aa4d8e71fe8 | [
"MIT"
] | null | null | null | client_examples/example1/functions/transactions.py | rrhg/accounting-data-entry-helper | 81486c4b4bdff315966a7a61b2c45aa4d8e71fe8 | [
"MIT"
] | 1 | 2022-02-07T20:22:13.000Z | 2022-02-07T20:22:13.000Z | client_examples/example1/functions/transactions.py | rrhg/accounting-data-entry-helper | 81486c4b4bdff315966a7a61b2c45aa4d8e71fe8 | [
"MIT"
] | null | null | null |
def use_end_of_period_for_all_trans_w_date_errors():
# return False
""" every time there are errors reading the date of a line, it will be substituded for the end of period, example 10/31/2021"""
return True | 31.714286 | 131 | 0.738739 | 39 | 222 | 3.974359 | 0.769231 | 0.064516 | 0.141935 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044944 | 0.198198 | 222 | 7 | 132 | 31.714286 | 0.825843 | 0.603604 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
b92a101714d6f4e65b5d9ac6f6c70725feaced81 | 154 | py | Python | Python 3/FCTRL2.py | amanovishnu/Dejkins | 1c2b194445381a351f05a69b27eb4e42c5d0f70a | [
"Unlicense"
] | null | null | null | Python 3/FCTRL2.py | amanovishnu/Dejkins | 1c2b194445381a351f05a69b27eb4e42c5d0f70a | [
"Unlicense"
] | 1 | 2018-02-08T12:54:58.000Z | 2018-02-08T12:54:58.000Z | Python 3/FCTRL2.py | amanovishnu/Code-For-Fun | 1c2b194445381a351f05a69b27eb4e42c5d0f70a | [
"Unlicense"
] | null | null | null | import math
n = int(input())
listx = []
for i in range(n):
x = int(input())
listx.append(math.factorial(x))
for i in range(n):
print(listx[i]) | 19.25 | 35 | 0.603896 | 27 | 154 | 3.444444 | 0.518519 | 0.172043 | 0.27957 | 0.236559 | 0.258065 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.207792 | 154 | 8 | 36 | 19.25 | 0.762295 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.125 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b94c27f59d8b686e2502b0d97738ae6efd657b1a | 209 | py | Python | artic/checkdir.py | ColinAnthony/fieldbioinformatics | 41f9881218ffe22476662e35ac7786ecbd950696 | [
"MIT"
] | null | null | null | artic/checkdir.py | ColinAnthony/fieldbioinformatics | 41f9881218ffe22476662e35ac7786ecbd950696 | [
"MIT"
] | null | null | null | artic/checkdir.py | ColinAnthony/fieldbioinformatics | 41f9881218ffe22476662e35ac7786ecbd950696 | [
"MIT"
] | null | null | null |
import os.path
import sys
passexists = os.path.exists('data/%s/pass' % (sys.argv[1]))
failexists = os.path.exists('data/%s/fail' % (sys.argv[1]))
print("%s\t%s\t%s" % (sys.argv[1], passexists, failexists))
| 23.222222 | 59 | 0.655502 | 36 | 209 | 3.805556 | 0.416667 | 0.131387 | 0.175182 | 0.233577 | 0.248175 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016043 | 0.105263 | 209 | 8 | 60 | 26.125 | 0.716578 | 0 | 0 | 0 | 0 | 0 | 0.163462 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.4 | 0.4 | 0 | 0.4 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 4 |
b98fd22fc3a1a2acc97f1b8dcb6e84a6e99df8ff | 14,224 | py | Python | built-in/PyTorch/Official/cv/semantic_segmentation/AttU_Net_for_PyTorch/network.py | Ascend/modelzoo | f018cfed33dbb1cc2110b9ea2e233333f71cc509 | [
"Apache-2.0"
] | 12 | 2020-12-13T08:34:24.000Z | 2022-03-20T15:17:17.000Z | built-in/PyTorch/Official/cv/semantic_segmentation/AttU_Net_for_PyTorch/network.py | Ascend/modelzoo | f018cfed33dbb1cc2110b9ea2e233333f71cc509 | [
"Apache-2.0"
] | 1 | 2022-01-20T03:11:05.000Z | 2022-01-20T06:53:39.000Z | built-in/PyTorch/Official/cv/semantic_segmentation/AttU_Net_for_PyTorch/network.py | Ascend/modelzoo | f018cfed33dbb1cc2110b9ea2e233333f71cc509 | [
"Apache-2.0"
] | 2 | 2021-07-10T12:40:46.000Z | 2021-12-17T07:55:15.000Z | # BSD 3-Clause License
#
# Copyright (c) 2017 xxxx
# All rights reserved.
# Copyright 2021 Huawei Technologies Co., Ltd
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain th... | 31.124726 | 102 | 0.588583 | 2,236 | 14,224 | 3.547406 | 0.117174 | 0.046647 | 0.040847 | 0.029501 | 0.744957 | 0.712935 | 0.704866 | 0.686586 | 0.684443 | 0.683812 | 0 | 0.084896 | 0.280371 | 14,224 | 456 | 103 | 31.192982 | 0.690016 | 0.124086 | 0 | 0.70903 | 0 | 0 | 0.011515 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.073579 | false | 0 | 0.013378 | 0 | 0.153846 | 0.003344 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b9ac53a2c2d0560a0079b1a3740141ae343a9732 | 150 | py | Python | src/odroid_go/utils/__init__.py | willemserruys/Snake | 5302b02e6f7bf04561e97bf001f758e6ddbaa17b | [
"MIT"
] | null | null | null | src/odroid_go/utils/__init__.py | willemserruys/Snake | 5302b02e6f7bf04561e97bf001f758e6ddbaa17b | [
"MIT"
] | null | null | null | src/odroid_go/utils/__init__.py | willemserruys/Snake | 5302b02e6f7bf04561e97bf001f758e6ddbaa17b | [
"MIT"
] | null | null | null | from .go_consts import *
from .lcd import ILI9341, colors, fonts
from .button import Button
from .speaker import Speaker
from .battery import Battery
| 25 | 39 | 0.8 | 22 | 150 | 5.409091 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03125 | 0.146667 | 150 | 5 | 40 | 30 | 0.898438 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
b9ced8f217f356568008b3cec9696d08e0ab6bc8 | 397 | py | Python | influxable/db/function/selectors.py | shivamMg/influxable | 80dbb3a0a7857416aac84831816bd9e401f5a062 | [
"MIT"
] | 30 | 2019-07-28T12:57:21.000Z | 2022-03-30T05:02:57.000Z | influxable/db/function/selectors.py | shivamMg/influxable | 80dbb3a0a7857416aac84831816bd9e401f5a062 | [
"MIT"
] | 9 | 2020-04-23T11:29:29.000Z | 2022-02-04T09:15:16.000Z | influxable/db/function/selectors.py | shivamMg/influxable | 80dbb3a0a7857416aac84831816bd9e401f5a062 | [
"MIT"
] | 5 | 2021-03-23T04:05:42.000Z | 2022-01-28T12:04:37.000Z | from . import _generate_function, _generate_function_with_param
Bottom = _generate_function_with_param('BOTTOM')
First = _generate_function('FIRST')
Last = _generate_function('LAST')
Max = _generate_function('MAX')
Min = _generate_function('MIN')
Percentile = _generate_function_with_param('PERCENTILE')
Sample = _gener... | 36.090909 | 63 | 0.81864 | 48 | 397 | 6.145833 | 0.291667 | 0.542373 | 0.338983 | 0.423729 | 0.210169 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075567 | 397 | 10 | 64 | 39.7 | 0.803815 | 0 | 0 | 0 | 1 | 0 | 0.100756 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b9fa9f9f55dc63d49c75c8d23e0be0a54a2411c2 | 236 | py | Python | webapp/candysorter/ext/google/cloud/translation.py | mehmandarov/FindYourCandy | 4879227d54570cf0a5ba0cc3023b875f95cefa8c | [
"Apache-2.0"
] | 1 | 2017-07-17T15:18:39.000Z | 2017-07-17T15:18:39.000Z | webapp/candysorter/ext/google/cloud/translation.py | mehmandarov/FindYourCandy | 4879227d54570cf0a5ba0cc3023b875f95cefa8c | [
"Apache-2.0"
] | 1 | 2018-10-08T17:34:41.000Z | 2018-10-08T17:34:41.000Z | webapp/candysorter/ext/google/cloud/translation.py | mehmandarov/FindYourCandy | 4879227d54570cf0a5ba0cc3023b875f95cefa8c | [
"Apache-2.0"
] | 2 | 2018-06-27T08:09:56.000Z | 2018-06-27T08:59:11.000Z | from google.cloud import translate
class TranslatorClient(translate.Client):
def translate_text(self, text, source_lang, target_lang):
return self.translate([text], source_language=source_lang, target_language=target_lang) | 39.333333 | 95 | 0.79661 | 30 | 236 | 6.033333 | 0.533333 | 0.143646 | 0.176796 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118644 | 236 | 6 | 95 | 39.333333 | 0.870192 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.25 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
6a0acebc77ddb4d23e1527ecd1b38c92834b7150 | 135 | py | Python | pointers/__init__.py | 2231puppy/pointers.py | 0a56fe67bb645bddc90992d280136478a530baf4 | [
"MIT"
] | null | null | null | pointers/__init__.py | 2231puppy/pointers.py | 0a56fe67bb645bddc90992d280136478a530baf4 | [
"MIT"
] | null | null | null | pointers/__init__.py | 2231puppy/pointers.py | 0a56fe67bb645bddc90992d280136478a530baf4 | [
"MIT"
] | null | null | null | from .pointer import Pointer, decay, to_ptr, dereference_address
from .malloc import malloc, IsMallocPointerError, MallocPointer, free | 67.5 | 69 | 0.837037 | 16 | 135 | 6.9375 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103704 | 135 | 2 | 69 | 67.5 | 0.917355 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
6a16a1e1062e05c9ed7bfe9baea3cadcf7f4dfbd | 106 | py | Python | CalenderModule.py | jibinmathew691993/PythonHackerrank | 14ab5b620435a006d5ccff17536bc01acd7c22dc | [
"MIT"
] | null | null | null | CalenderModule.py | jibinmathew691993/PythonHackerrank | 14ab5b620435a006d5ccff17536bc01acd7c22dc | [
"MIT"
] | null | null | null | CalenderModule.py | jibinmathew691993/PythonHackerrank | 14ab5b620435a006d5ccff17536bc01acd7c22dc | [
"MIT"
] | null | null | null | import calendar
m,d,y=map(int,input().split())
print((calendar.day_name[calendar.weekday(y,m,d)]).upper()) | 35.333333 | 59 | 0.726415 | 19 | 106 | 4 | 0.736842 | 0.052632 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028302 | 106 | 3 | 59 | 35.333333 | 0.737864 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
6a34f9c924f5bb8a0056d438a05f3565915b2058 | 83 | py | Python | Torneo/apps/liga/apps.py | Estuardiaz2611/Djangotuto2 | bdb8665c7e2a95296ab85e1e986bbcdca1828fa7 | [
"MIT"
] | null | null | null | Torneo/apps/liga/apps.py | Estuardiaz2611/Djangotuto2 | bdb8665c7e2a95296ab85e1e986bbcdca1828fa7 | [
"MIT"
] | null | null | null | Torneo/apps/liga/apps.py | Estuardiaz2611/Djangotuto2 | bdb8665c7e2a95296ab85e1e986bbcdca1828fa7 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class LigaConfig(AppConfig):
name = 'liga'
| 13.833333 | 33 | 0.73494 | 10 | 83 | 6.1 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180723 | 83 | 5 | 34 | 16.6 | 0.897059 | 0 | 0 | 0 | 0 | 0 | 0.048193 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
6a387fe46a9b094497bf5c43d47780e0d29ca2fb | 88 | py | Python | src/main.py | Sagnik-Dey/PasswordGenerator | 9cbd153f0d27d7d51c6fe98fe97aa9bee871126f | [
"MIT"
] | null | null | null | src/main.py | Sagnik-Dey/PasswordGenerator | 9cbd153f0d27d7d51c6fe98fe97aa9bee871126f | [
"MIT"
] | null | null | null | src/main.py | Sagnik-Dey/PasswordGenerator | 9cbd153f0d27d7d51c6fe98fe97aa9bee871126f | [
"MIT"
] | null | null | null | from app import mainApp
if __name__ == "__main__":
mainApp.start_application()
| 17.6 | 31 | 0.704545 | 10 | 88 | 5.3 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.204545 | 88 | 5 | 32 | 17.6 | 0.757143 | 0 | 0 | 0 | 0 | 0 | 0.089888 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
6a3fd2bbad5825fe0655374f8b7994c67fba3edf | 109 | py | Python | CompanyManagement/apps.py | SajedeNick1999/Payslip-Management- | 21e40c5c3ea040733d609a014b66b24135624b73 | [
"MIT"
] | 1 | 2020-08-16T14:27:00.000Z | 2020-08-16T14:27:00.000Z | CompanyManagement/apps.py | SajedeNick1999/Payslip-Management-System | 21e40c5c3ea040733d609a014b66b24135624b73 | [
"MIT"
] | null | null | null | CompanyManagement/apps.py | SajedeNick1999/Payslip-Management-System | 21e40c5c3ea040733d609a014b66b24135624b73 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class CompanymanagementConfig(AppConfig):
name = 'CompanyManagement'
| 18.166667 | 41 | 0.798165 | 10 | 109 | 8.7 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137615 | 109 | 5 | 42 | 21.8 | 0.925532 | 0 | 0 | 0 | 0 | 0 | 0.155963 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
6a4200c7ffbabb1e6ece8d096e30bfaaec1375c2 | 301 | py | Python | 2.1 Weather/opscentretools/datatools.py | met-office-lab/example-notebooks | 11bda2174f2c8f5060bb3cb630f99f2629c07346 | [
"BSD-3-Clause"
] | 1 | 2020-07-31T21:07:44.000Z | 2020-07-31T21:07:44.000Z | 2.1 Weather/opscentretools/datatools.py | met-office-lab/example-notebooks | 11bda2174f2c8f5060bb3cb630f99f2629c07346 | [
"BSD-3-Clause"
] | 2 | 2016-09-12T11:11:17.000Z | 2016-10-14T16:23:48.000Z | 2.1 Weather/opscentretools/datatools.py | met-office-lab/example-notebooks | 11bda2174f2c8f5060bb3cb630f99f2629c07346 | [
"BSD-3-Clause"
] | 1 | 2016-09-08T13:53:47.000Z | 2016-09-08T13:53:47.000Z | import jade_utils.iris_tools as iris_tools
import sys
# Suppress warnings
if not sys.warnoptions:
import warnings
warnings.simplefilter("ignore")
def estimate_cube_size(cube):
# Return the estimated size of a cube without realising its data
return iris_tools.estimate_cube_size(cube)
| 27.363636 | 68 | 0.787375 | 44 | 301 | 5.204545 | 0.613636 | 0.117904 | 0.139738 | 0.174672 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159468 | 301 | 10 | 69 | 30.1 | 0.905138 | 0.265781 | 0 | 0 | 0 | 0 | 0.027523 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0.142857 | 0.714286 | 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 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
e01f8d2c8c0dd0a409e81456eafc2053d1dd1b20 | 217 | py | Python | backend/apps/accounts/models.py | yegorLitvinov/costcontrol | f3c9316ea0c9e7f2509087dabdbe7f1cf5fe2d80 | [
"MIT"
] | null | null | null | backend/apps/accounts/models.py | yegorLitvinov/costcontrol | f3c9316ea0c9e7f2509087dabdbe7f1cf5fe2d80 | [
"MIT"
] | 1 | 2020-02-11T21:46:59.000Z | 2020-02-11T21:46:59.000Z | backend/apps/accounts/models.py | yegorLitvinov/costcontrol | f3c9316ea0c9e7f2509087dabdbe7f1cf5fe2d80 | [
"MIT"
] | null | null | null | from django.contrib.auth.models import AbstractUser
from django.db import models
class User(AbstractUser):
email = models.EmailField(unique=True)
USERNAME_FIELD = "email"
REQUIRED_FIELDS = ["username"]
| 21.7 | 51 | 0.751152 | 26 | 217 | 6.192308 | 0.692308 | 0.124224 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.156682 | 217 | 9 | 52 | 24.111111 | 0.879781 | 0 | 0 | 0 | 0 | 0 | 0.059908 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
e02f293712468d42ee311b3e3f7352e1253fd2c2 | 301 | py | Python | dask/bag/__init__.py | cruzdanilo/dask | 965c9e401801689a6a68cec5c0529f912a459960 | [
"BSD-3-Clause"
] | 1 | 2021-02-16T06:12:20.000Z | 2021-02-16T06:12:20.000Z | dask/bag/__init__.py | cruzdanilo/dask | 965c9e401801689a6a68cec5c0529f912a459960 | [
"BSD-3-Clause"
] | null | null | null | dask/bag/__init__.py | cruzdanilo/dask | 965c9e401801689a6a68cec5c0529f912a459960 | [
"BSD-3-Clause"
] | null | null | null | from __future__ import absolute_import, division, print_function
from .core import (Bag, Item, from_sequence, from_url, to_textfiles, concat,
from_delayed, bag_range as range, bag_zip as zip)
from .text import read_text
from ..context import set_options
from ..base import compute
| 37.625 | 76 | 0.760797 | 44 | 301 | 4.886364 | 0.590909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.179402 | 301 | 7 | 77 | 43 | 0.870445 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.833333 | 0 | 0.833333 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
e04f8696aa798a28cbac3e25a8cbaed115e31fa4 | 1,161 | py | Python | API/src/main/resources/Lib/robot/conf/__init__.py | TagExpress/SikuliX1 | de9da11794dd94b3821eddc5c01b534d3f2fe828 | [
"MIT"
] | null | null | null | API/src/main/resources/Lib/robot/conf/__init__.py | TagExpress/SikuliX1 | de9da11794dd94b3821eddc5c01b534d3f2fe828 | [
"MIT"
] | null | null | null | API/src/main/resources/Lib/robot/conf/__init__.py | TagExpress/SikuliX1 | de9da11794dd94b3821eddc5c01b534d3f2fe828 | [
"MIT"
] | null | null | null | # Copyright (c) 2010-2020, sikuli.org, sikulix.com - MIT license
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required b... | 43 | 75 | 0.775194 | 171 | 1,161 | 5.263158 | 0.637427 | 0.066667 | 0.028889 | 0.035556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012295 | 0.159345 | 1,161 | 26 | 76 | 44.653846 | 0.909836 | 0.925926 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
e0521c0e021634ee4de687c8e88ce7f4ad0ee773 | 215 | py | Python | setup.py | jensmcatanho/saved-games-organizer | 534260515268c8cc8b243a4dc976ec246debf666 | [
"MIT"
] | 1 | 2018-05-30T20:50:03.000Z | 2018-05-30T20:50:03.000Z | setup.py | jensmcatanho/saved-games-organizer | 534260515268c8cc8b243a4dc976ec246debf666 | [
"MIT"
] | null | null | null | setup.py | jensmcatanho/saved-games-organizer | 534260515268c8cc8b243a4dc976ec246debf666 | [
"MIT"
] | null | null | null | import os.path
steamdir = "C:\Program Files (x86)\Steam\steamapps\common"
if os.path.exists(steamdir):
print "Directory \"" + steamdir + "\" found."
else:
print "Directory \"" + steamdir + "\" not found."
| 23.888889 | 58 | 0.646512 | 26 | 215 | 5.346154 | 0.692308 | 0.086331 | 0.316547 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011236 | 0.172093 | 215 | 8 | 59 | 26.875 | 0.769663 | 0 | 0 | 0 | 0 | 0 | 0.525581 | 0.130233 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | null | null | 0.333333 | 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 | 0 | 0 | 0 | 0 | 0 | 4 |
e05442d18f885504eba09c2bfa953b0fc3dd8faf | 554 | py | Python | 072.py | zlsun/ProjectEuler | 813ec545484924a052f1bd7fd90a4c676eea3bba | [
"MIT"
] | null | null | null | 072.py | zlsun/ProjectEuler | 813ec545484924a052f1bd7fd90a4c676eea3bba | [
"MIT"
] | null | null | null | 072.py | zlsun/ProjectEuler | 813ec545484924a052f1bd7fd90a4c676eea3bba | [
"MIT"
] | null | null | null | #-*- encoding: utf-8 -*-
"""
Counting fractions
Consider the fraction, n/d, where n and d are positive integers. If n<d and HCF(n,d)=1, it is called a reduced proper fraction.
If we list the set of reduced proper fractions for d ≤ 8 in ascending order of size, we get:
1/8, 1/7, 1/6, 1/5, 1/4, 2/7, 1/3, 3/8, 2/5, 3/7, ... | 34.625 | 127 | 0.662455 | 128 | 554 | 2.882813 | 0.445313 | 0.01626 | 0.04336 | 0.081301 | 0.189702 | 0.189702 | 0.189702 | 0.189702 | 0.189702 | 0 | 0 | 0.121622 | 0.198556 | 554 | 15 | 128 | 36.933333 | 0.704955 | 0.935018 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
0ec242490d51549184f2fa7bec3f6724b9d6b75c | 530 | py | Python | tests/integration/core/_test_ethereum_accounts.py | datacraft-dsc/starfish-py | 95ff24410f056e8e2d313c3af97439fe003e294a | [
"Apache-2.0"
] | 4 | 2019-02-08T03:47:36.000Z | 2019-10-17T21:45:23.000Z | tests/integration/core/_test_ethereum_accounts.py | datacraft-dsc/starfish-py | 95ff24410f056e8e2d313c3af97439fe003e294a | [
"Apache-2.0"
] | 81 | 2019-02-09T01:01:51.000Z | 2020-07-01T08:35:07.000Z | tests/integration/core/_test_ethereum_accounts.py | oceanprotocol/ocean-py | 318ad0de2519e61d0a301c040a48d1839cd82425 | [
"Apache-2.0"
] | 1 | 2021-01-28T12:14:03.000Z | 2021-01-28T12:14:03.000Z | #!/usr/bin/env python
"""
Tests for `starfish-py account`.
"""
import json
import unittest
def test_ethereum_account_load(config, ethereum_accounts):
# address only
account = ethereum_accounts[0]
assert(account)
assert(account.address.lower() == config['ethereum']['accounts']['account1']['address... | 29.444444 | 100 | 0.671698 | 61 | 530 | 5.737705 | 0.557377 | 0.228571 | 0.251429 | 0.257143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008791 | 0.141509 | 530 | 17 | 101 | 31.176471 | 0.76044 | 0.124528 | 0 | 0 | 0 | 0 | 0.211581 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.111111 | false | 0.111111 | 0.222222 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
0eccfaaed177f08c492567bca5091ca6da1785a4 | 86 | py | Python | two_player_games/move.py | lychanl/two-player-games | 5426b14017d992fe64031b6c4009facdb66ef90b | [
"MIT"
] | null | null | null | two_player_games/move.py | lychanl/two-player-games | 5426b14017d992fe64031b6c4009facdb66ef90b | [
"MIT"
] | null | null | null | two_player_games/move.py | lychanl/two-player-games | 5426b14017d992fe64031b6c4009facdb66ef90b | [
"MIT"
] | null | null | null | class Move:
"""A base class for classes that represent moves in games"""
pass
| 21.5 | 64 | 0.674419 | 13 | 86 | 4.461538 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.244186 | 86 | 3 | 65 | 28.666667 | 0.892308 | 0.627907 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
0ee59e1bd054fba860ef88758a625facec8db563 | 41,780 | py | Python | ECUSimulation/config/timing_binding.py | arturmrowca/IVNS | 8915142d16debe4af780a9eb6859e44dea2ca7e6 | [
"MIT"
] | 8 | 2016-03-02T11:47:16.000Z | 2021-11-05T07:49:25.000Z | ECUSimulation/config/timing_binding.py | arturmrowca/IVNS | 8915142d16debe4af780a9eb6859e44dea2ca7e6 | [
"MIT"
] | 1 | 2019-03-19T14:23:52.000Z | 2019-03-25T14:24:45.000Z | ECUSimulation/config/timing_binding.py | PhilippMundhenk/IVNS | b2e395611e9b5111aeda7ab128f3486354bbbf0d | [
"MIT"
] | 5 | 2016-02-11T10:12:27.000Z | 2020-10-09T02:27:41.000Z | # .\timing_binding.py
# -*- coding: utf-8 -*-
# PyXB bindings for NM:b43a187ebbc2a19d7688cccc9f0bf73329ccfd18
# Generated 2015-03-30 16:31:40.632236 by PyXB version 1.2.4 using Python 3.4.1.final.0
# Namespace http://www.tum-create.edu.sg/timingSchema
from __future__ import unicode_literals
import pyxb.binding.saxer
i... | 53.020305 | 340 | 0.764385 | 4,694 | 41,780 | 6.573072 | 0.069024 | 0.041356 | 0.048746 | 0.071563 | 0.779737 | 0.734654 | 0.705225 | 0.703086 | 0.640371 | 0.559506 | 0 | 0.01256 | 0.12147 | 41,780 | 787 | 341 | 53.087675 | 0.828034 | 0.153734 | 0 | 0.502041 | 1 | 0 | 0.163411 | 0.121897 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02449 | false | 0 | 0.034694 | 0 | 0.355102 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
0ef07669442a6e784df54becb3dc8484a1cd288e | 70,481 | py | Python | src/lxml/tests/test_xslt.py | rvencu/lxml | 7cb990cb279cfc4b822b015b0ac4b27efae4b213 | [
"BSD-3-Clause"
] | null | null | null | src/lxml/tests/test_xslt.py | rvencu/lxml | 7cb990cb279cfc4b822b015b0ac4b27efae4b213 | [
"BSD-3-Clause"
] | null | null | null | src/lxml/tests/test_xslt.py | rvencu/lxml | 7cb990cb279cfc4b822b015b0ac4b27efae4b213 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Test cases related to XSLT processing
"""
from __future__ import absolute_import
import io
import sys
import copy
import gzip
import os.path
import unittest
import contextlib
from textwrap import dedent
from tempfile import NamedTemporaryFile, mkdtemp
is_python3 = sys.version_info[0] >= ... | 33.450878 | 128 | 0.566521 | 8,620 | 70,481 | 4.553016 | 0.057773 | 0.052972 | 0.04199 | 0.024155 | 0.788774 | 0.741534 | 0.70385 | 0.679186 | 0.658343 | 0.644737 | 0 | 0.017336 | 0.250309 | 70,481 | 2,106 | 129 | 33.466762 | 0.72543 | 0.020956 | 0 | 0.701891 | 0 | 0.022803 | 0.388553 | 0.069666 | 0 | 0 | 0 | 0.000475 | 0.11624 | 1 | 0.070078 | false | 0.000556 | 0.006118 | 0.001112 | 0.09733 | 0.001112 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
0ef21ce803e9940a0163b9de8637908c107def16 | 1,554 | py | Python | currencyetl/models.py | iwpnd/currency-etl | 36d01d1206138956cf2d168034071044111bbad7 | [
"MIT"
] | 1 | 2020-04-03T09:57:41.000Z | 2020-04-03T09:57:41.000Z | currencyetl/models.py | iwpnd/currency-etl | 36d01d1206138956cf2d168034071044111bbad7 | [
"MIT"
] | null | null | null | currencyetl/models.py | iwpnd/currency-etl | 36d01d1206138956cf2d168034071044111bbad7 | [
"MIT"
] | null | null | null | import datetime
from pydantic import BaseModel
from pydantic import confloat
from pydantic import StrictStr
from pydantic import validator
class Rates(BaseModel):
""" Pydantic model to store conversion rates in
"""
HKD: confloat(gt=0) = None
ISK: confloat(gt=0) = None
PHP: confloat(gt=0) = None
... | 26.338983 | 55 | 0.6287 | 229 | 1,554 | 4.240175 | 0.292576 | 0.329557 | 0.362513 | 0.494336 | 0.090628 | 0.090628 | 0.090628 | 0 | 0 | 0 | 0 | 0.027096 | 0.240026 | 1,554 | 58 | 56 | 26.793103 | 0.795089 | 0.057272 | 0 | 0 | 0 | 0 | 0.009675 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021739 | false | 0 | 0.108696 | 0.021739 | 0.978261 | 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 | 0 | 0 | 1 | 0 | 0 | 4 |
16141e43ee54dcf2411f2e1648dcb1a52f10a66a | 342 | py | Python | brutal/brutal/panic.py | cychan-lbnl/devastator | a23bb21f9da5841fa2036edc68f3a89a2241831b | [
"BSD-3-Clause-LBNL"
] | 1 | 2022-03-16T08:11:02.000Z | 2022-03-16T08:11:02.000Z | brutal/brutal/panic.py | cychan-lbnl/devastator | a23bb21f9da5841fa2036edc68f3a89a2241831b | [
"BSD-3-Clause-LBNL"
] | null | null | null | brutal/brutal/panic.py | cychan-lbnl/devastator | a23bb21f9da5841fa2036edc68f3a89a2241831b | [
"BSD-3-Clause-LBNL"
] | null | null | null | import brutal
class PanicError(BaseException):
def __init__(me, message=None):
BaseException.__init__(me, message)
def panic_unless(ok, fmtstr='', *fmtargs, **fmtkws):
if not ok:
raise PanicError(fmtstr.format(*fmtargs, **fmtkws))
def panic(fmtstr='', *fmtargs, **fmtkws):
raise PanicError(fmtstr.format... | 26.307692 | 55 | 0.71345 | 41 | 342 | 5.731707 | 0.487805 | 0.221277 | 0.110638 | 0.229787 | 0.340426 | 0.340426 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128655 | 342 | 12 | 56 | 28.5 | 0.788591 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.111111 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
161a34b6b506aaa501b88e9458d1e160c748e8c6 | 241 | py | Python | html/webappapis/dynamic-markup-insertion/opening-the-input-stream/resources/http-refresh.py | meyerweb/wpt | f04261533819893c71289614c03434c06856c13e | [
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | html/webappapis/dynamic-markup-insertion/opening-the-input-stream/resources/http-refresh.py | meyerweb/wpt | f04261533819893c71289614c03434c06856c13e | [
"BSD-3-Clause"
] | 7,642 | 2018-05-28T09:38:03.000Z | 2022-03-31T20:55:48.000Z | html/webappapis/dynamic-markup-insertion/opening-the-input-stream/resources/http-refresh.py | meyerweb/wpt | f04261533819893c71289614c03434c06856c13e | [
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | from wptserve.utils import isomorphic_encode
def main(request, response):
time = isomorphic_encode(request.url_parts.query) if request.url_parts.query else b'0'
return 200, [(b'Refresh', time), (b'Content-Type', b"text/html")], b''
| 40.166667 | 90 | 0.73029 | 37 | 241 | 4.648649 | 0.675676 | 0.186047 | 0.174419 | 0.232558 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018957 | 0.124481 | 241 | 5 | 91 | 48.2 | 0.796209 | 0 | 0 | 0 | 0 | 0 | 0.120332 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
1632ccde17c6c5bb917e9c53860a00a7e4b9a18d | 79 | py | Python | Support.py | HuuHoangNguyen/Python_learning | c33940ca95866cefa6381cdef901062be755052d | [
"MIT"
] | null | null | null | Support.py | HuuHoangNguyen/Python_learning | c33940ca95866cefa6381cdef901062be755052d | [
"MIT"
] | null | null | null | Support.py | HuuHoangNguyen/Python_learning | c33940ca95866cefa6381cdef901062be755052d | [
"MIT"
] | null | null | null | #!/usr/bin/python
def print_func( par ):
print "Hello: ", par
return
| 11.285714 | 24 | 0.594937 | 11 | 79 | 4.181818 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.253165 | 79 | 6 | 25 | 13.166667 | 0.779661 | 0.202532 | 0 | 0 | 0 | 0 | 0.114754 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.666667 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
16396645d955336ab4b73621de840c0d05e22a16 | 91 | py | Python | src/tailwind/apps.py | peterhijma/django-tailwind | 765da9f8754d1cf9aa19d25e38380f078bd6355d | [
"MIT"
] | 776 | 2019-04-12T09:41:23.000Z | 2022-03-31T18:05:12.000Z | src/tailwind/apps.py | peterhijma/django-tailwind | 765da9f8754d1cf9aa19d25e38380f078bd6355d | [
"MIT"
] | 122 | 2019-04-12T11:09:00.000Z | 2022-03-30T19:11:11.000Z | src/tailwind/apps.py | peterhijma/django-tailwind | 765da9f8754d1cf9aa19d25e38380f078bd6355d | [
"MIT"
] | 57 | 2019-08-20T15:23:00.000Z | 2022-03-21T22:48:48.000Z | from django.apps import AppConfig
class TailwindConfig(AppConfig):
name = "tailwind"
| 15.166667 | 33 | 0.758242 | 10 | 91 | 6.9 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164835 | 91 | 5 | 34 | 18.2 | 0.907895 | 0 | 0 | 0 | 0 | 0 | 0.087912 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
163e5a8d6c4f32f9ce347f7bf4dc2c50b9bfd616 | 45 | py | Python | poly_py_tools/pjsip/section.py | mjmunger/PolyPyTools | 116014a47479f360ee73006d6ba3ddc7f362c7a1 | [
"MIT"
] | 7 | 2017-11-15T19:25:37.000Z | 2022-01-20T01:30:56.000Z | poly_py_tools/pjsip/section.py | DrDamnit/PolyPyTools | 116014a47479f360ee73006d6ba3ddc7f362c7a1 | [
"MIT"
] | 40 | 2020-05-19T19:46:20.000Z | 2020-11-12T16:13:55.000Z | poly_py_tools/pjsip/section.py | mjmunger/PolyPyTools | 116014a47479f360ee73006d6ba3ddc7f362c7a1 | [
"MIT"
] | null | null | null | class PJSipSection:
section_name = None
| 11.25 | 23 | 0.733333 | 5 | 45 | 6.4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 45 | 3 | 24 | 15 | 0.914286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
1646f8887b0e362afaf15a355cd628e2f2673127 | 95 | py | Python | data/driver.py | alex-ber/RocketPaperScissorsGame | c38c82a17d508c892c686454864ee2356f441d1a | [
"BSD-2-Clause"
] | null | null | null | data/driver.py | alex-ber/RocketPaperScissorsGame | c38c82a17d508c892c686454864ee2356f441d1a | [
"BSD-2-Clause"
] | 1 | 2019-03-20T10:35:36.000Z | 2019-03-21T12:46:44.000Z | data/driver.py | alex-ber/RocketPaperScissorsGame | c38c82a17d508c892c686454864ee2356f441d1a | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/python3
import alexber.rpsgame.app as app
if __name__ == "__main__":
app.main()
| 15.833333 | 33 | 0.694737 | 14 | 95 | 4.142857 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012346 | 0.147368 | 95 | 5 | 34 | 19 | 0.703704 | 0.178947 | 0 | 0 | 0 | 0 | 0.103896 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
168048f7a8390af1e8b9c45c011f0c594a6c5c8d | 457 | py | Python | interview/admin.py | JorgeScp/performance | b7de0498fdcf346ad0b44558ff62f4bf9cc1a986 | [
"MIT"
] | 1 | 2022-01-05T19:52:35.000Z | 2022-01-05T19:52:35.000Z | interview/admin.py | JorgeScp/performance | b7de0498fdcf346ad0b44558ff62f4bf9cc1a986 | [
"MIT"
] | null | null | null | interview/admin.py | JorgeScp/performance | b7de0498fdcf346ad0b44558ff62f4bf9cc1a986 | [
"MIT"
] | null | null | null | from django.contrib import admin
from import_export.admin import ImportExportModelAdmin
from django.apps import apps
from .models import Interview
from django.contrib import admin
# app = apps.get_app_config('interview')
# for model_name, model in app.models.items():
# try:
# admin.site.register(model)
# ... | 22.85 | 54 | 0.750547 | 56 | 457 | 6.053571 | 0.482143 | 0.088496 | 0.100295 | 0.135693 | 0.165192 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166302 | 457 | 19 | 55 | 24.052632 | 0.889764 | 0.398249 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.125 | 0.75 | 0 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 4 |
16854a796e19a6f2b9dc5ea5d508af4fee31cea8 | 53 | py | Python | exercises/grains/grains.py | kishankj/python | 82042de746128127502e109111e6c4e8ab002af6 | [
"MIT"
] | 1,177 | 2017-06-21T20:24:06.000Z | 2022-03-29T02:30:55.000Z | exercises/grains/grains.py | kishankj/python | 82042de746128127502e109111e6c4e8ab002af6 | [
"MIT"
] | 1,890 | 2017-06-18T20:06:10.000Z | 2022-03-31T18:35:51.000Z | exercises/grains/grains.py | kishankj/python | 82042de746128127502e109111e6c4e8ab002af6 | [
"MIT"
] | 1,095 | 2017-06-26T23:06:19.000Z | 2022-03-29T03:25:38.000Z | def square(number):
pass
def total():
pass
| 7.571429 | 19 | 0.584906 | 7 | 53 | 4.428571 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.301887 | 53 | 6 | 20 | 8.833333 | 0.837838 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
16979899c5cd184f9968ca98c3621097e3348fd9 | 179 | py | Python | herc/backends/__init__.py | broadinstitute/herc | dd75ed41a1433f8b6c6f0d338194a3488b76fc11 | [
"Apache-2.0",
"BSD-3-Clause"
] | 8 | 2015-03-04T19:10:03.000Z | 2017-05-30T09:42:06.000Z | herc/backends/__init__.py | broadinstitute/herc | dd75ed41a1433f8b6c6f0d338194a3488b76fc11 | [
"Apache-2.0",
"BSD-3-Clause"
] | 13 | 2015-03-04T21:05:08.000Z | 2015-04-10T22:52:47.000Z | herc/backends/__init__.py | broadinstitute/herc | dd75ed41a1433f8b6c6f0d338194a3488b76fc11 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | __author__ = 'hussein'
from .auroracli import AuroraCLI
from .aurorathrift import AuroraThrift
from .auroramock import AuroraMock
from .aurorabackend import BackendInitException
| 25.571429 | 47 | 0.849162 | 18 | 179 | 8.222222 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111732 | 179 | 6 | 48 | 29.833333 | 0.930818 | 0 | 0 | 0 | 0 | 0 | 0.039106 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.8 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
16bf4a5bc7978f166e66ec5a4d209cd13fef898f | 264 | py | Python | gitmine/endpoints.py | joecummings/gitmine | bc6b0455cbe8f148042002ba4ac72482c7b241cf | [
"MIT"
] | 13 | 2020-07-26T00:09:06.000Z | 2022-01-08T19:50:02.000Z | gitmine/endpoints.py | joecummings/gitmine | bc6b0455cbe8f148042002ba4ac72482c7b241cf | [
"MIT"
] | 56 | 2020-07-24T23:00:31.000Z | 2021-08-28T13:59:41.000Z | gitmine/endpoints.py | joecummings/gitmine | bc6b0455cbe8f148042002ba4ac72482c7b241cf | [
"MIT"
] | 1 | 2022-01-08T19:24:10.000Z | 2022-01-08T19:24:10.000Z | from furl import furl
BASE_GH_API = "https://api.github.com"
ISSUES_ENDPOINT = furl(BASE_GH_API, path="/issues")
REPOS_ENDPOINT = furl(BASE_GH_API, path="/repos")
SEARCH_ENDPOINT = furl(BASE_GH_API, path="/search")
USER_ENDPOINT = furl(BASE_GH_API, path="/user")
| 33 | 51 | 0.757576 | 43 | 264 | 4.325581 | 0.348837 | 0.215054 | 0.268817 | 0.349462 | 0.537634 | 0.537634 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 264 | 7 | 52 | 37.714286 | 0.775 | 0 | 0 | 0 | 0 | 0 | 0.17803 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
16c62cf0b9d1c7e645dadf19c7d1c018fec817bb | 161 | py | Python | baozheng/__init__.py | shiniao/baozheng | c1ec89e5ce2395abad089f1e7b92c3b31842e9f8 | [
"MIT"
] | 1 | 2021-02-19T14:51:43.000Z | 2021-02-19T14:51:43.000Z | baozheng/__init__.py | shiniao/baozheng | c1ec89e5ce2395abad089f1e7b92c3b31842e9f8 | [
"MIT"
] | null | null | null | baozheng/__init__.py | shiniao/baozheng | c1ec89e5ce2395abad089f1e7b92c3b31842e9f8 | [
"MIT"
] | null | null | null | import pymysql
# fix install mysql-client error, mysql-client not support python>3.5
pymysql.version_info = (1, 4, 13, "final", 0)
pymysql.install_as_MySQLdb()
| 26.833333 | 69 | 0.757764 | 26 | 161 | 4.576923 | 0.807692 | 0.184874 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049645 | 0.124224 | 161 | 5 | 70 | 32.2 | 0.794326 | 0.416149 | 0 | 0 | 0 | 0 | 0.054348 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
16cc396b4ff87854e080aef2bb1d96cd11a202dd | 14,586 | py | Python | pycas/cas/core/FeatureStructure.py | TalnUPF/dkpro-pycas | a44928742755c11bad175c64de5c6e39455723a7 | [
"Apache-2.0"
] | 5 | 2017-08-18T04:00:08.000Z | 2018-06-01T12:57:21.000Z | pycas/cas/core/FeatureStructure.py | TalnUPF/dkpro-pycas | a44928742755c11bad175c64de5c6e39455723a7 | [
"Apache-2.0"
] | 7 | 2018-05-14T10:44:47.000Z | 2019-11-04T12:13:02.000Z | pycas/cas/core/FeatureStructure.py | TalnUPF/dkpro-pycas | a44928742755c11bad175c64de5c6e39455723a7 | [
"Apache-2.0"
] | 4 | 2018-03-23T15:28:39.000Z | 2019-03-26T14:52:11.000Z | '''
Created on Dec 17, 2016
@author: Dibyojyoti
'''
from abc import ABC, abstractmethod
from pycas.type.cas.Feature import Feature
from pycas.type.cas.CAS_Type import CAS_Type
from builtins import str
from pycas.type.cas.TypeDescription import TypeDescription
class FeatureStructure(ABC):
'''
This is an inter... | 43.410714 | 139 | 0.644316 | 1,855 | 14,586 | 5.043666 | 0.083558 | 0.068833 | 0.028858 | 0.056114 | 0.7795 | 0.769453 | 0.759833 | 0.724027 | 0.657012 | 0.641834 | 0 | 0.000671 | 0.284794 | 14,586 | 336 | 140 | 43.410714 | 0.896185 | 0.012683 | 0 | 0.611111 | 0 | 0 | 0.253444 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.127778 | false | 0.033333 | 0.027778 | 0 | 0.205556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
16d20311b6869bd5326c8d8c0b387bb495d7cc84 | 10,755 | py | Python | tests/test_customized/TestControllers.py | kheeong/sample-platform | f7044f688377489d99e6c0bfb4ac227332eb8361 | [
"ISC"
] | null | null | null | tests/test_customized/TestControllers.py | kheeong/sample-platform | f7044f688377489d99e6c0bfb4ac227332eb8361 | [
"ISC"
] | null | null | null | tests/test_customized/TestControllers.py | kheeong/sample-platform | f7044f688377489d99e6c0bfb4ac227332eb8361 | [
"ISC"
] | null | null | null | from importlib import reload
from flask import g
from mock import mock
from sqlalchemy import and_
from mod_auth.models import Role
from mod_customized.models import TestFork
from mod_regression.models import RegressionTest
from mod_test.models import Fork, Test, TestPlatform
from tests.base import BaseTestCase, mock... | 49.562212 | 118 | 0.676801 | 1,374 | 10,755 | 5.061135 | 0.112809 | 0.070175 | 0.044866 | 0.058671 | 0.739431 | 0.729364 | 0.720449 | 0.680184 | 0.657751 | 0.637906 | 0 | 0.005405 | 0.20874 | 10,755 | 216 | 119 | 49.791667 | 0.811751 | 0.010228 | 0 | 0.53012 | 0 | 0 | 0.080487 | 0.006888 | 0 | 0 | 0 | 0 | 0.186747 | 1 | 0.078313 | false | 0.144578 | 0.126506 | 0.006024 | 0.216867 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
16d75ec9947cb1db443e04b9e2279957abb756d2 | 270 | py | Python | scraper/datatypes.py | lesander/fbgs | 0024b961038609f32acb79d7b08b8f2f14692bb4 | [
"MIT"
] | 10 | 2021-01-30T17:47:20.000Z | 2022-02-17T02:23:51.000Z | scraper/datatypes.py | lesander/fbgs | 0024b961038609f32acb79d7b08b8f2f14692bb4 | [
"MIT"
] | 2 | 2021-02-05T10:53:06.000Z | 2021-04-20T16:52:46.000Z | scraper/datatypes.py | lesander/fbgs | 0024b961038609f32acb79d7b08b8f2f14692bb4 | [
"MIT"
] | 1 | 2021-11-09T09:38:02.000Z | 2021-11-09T09:38:02.000Z | class DataType:
def __init__(self, **kwargs):
vars(self).update(kwargs)
def __str__(self):
return self.__class__.__name__
class FacebookPost(DataType):
pass
class FacebookGroup(DataType):
pass
class FacebookProfile(DataType):
pass
| 18 | 38 | 0.688889 | 29 | 270 | 5.862069 | 0.517241 | 0.211765 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.214815 | 270 | 14 | 39 | 19.285714 | 0.801887 | 0 | 0 | 0.272727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0.272727 | 0 | 0.090909 | 0.636364 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
16ede1b778e95f2030df3df8174cedfa7342f103 | 129 | py | Python | hsapi/high/__init__.py | HornedSungem/SungemSDK-Python | 5ce5eb7f84654aecf6840de773188f436219559d | [
"Apache-2.0"
] | 14 | 2018-08-16T09:11:39.000Z | 2019-12-07T12:54:32.000Z | hsapi/high/__init__.py | zhengqun/SungemSDK-Python | fcd9789721d96b7197543523b65a25a7351944f5 | [
"Apache-2.0"
] | 2 | 2019-08-23T23:31:10.000Z | 2020-06-17T09:21:57.000Z | hsapi/high/__init__.py | zhengqun/SungemSDK-Python | fcd9789721d96b7197543523b65a25a7351944f5 | [
"Apache-2.0"
] | 7 | 2018-10-02T01:46:43.000Z | 2021-06-04T19:10:47.000Z | #! /usr/bin/env python3
# Copyright(c) 2018 Senscape Corporation.
# License: Apache 2.0
from .net import *
from .task import *
| 16.125 | 41 | 0.705426 | 19 | 129 | 4.789474 | 0.894737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065421 | 0.170543 | 129 | 7 | 42 | 18.428571 | 0.785047 | 0.635659 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
bc5cd3f2f670330b35a57a93d3f4cf99e10a1bd0 | 164 | py | Python | exercise2/excercise2.2.py | srfunksensei/think-python | a17fc81b316cd2e873b169e0090eae620442df99 | [
"MIT"
] | null | null | null | exercise2/excercise2.2.py | srfunksensei/think-python | a17fc81b316cd2e873b169e0090eae620442df99 | [
"MIT"
] | null | null | null | exercise2/excercise2.2.py | srfunksensei/think-python | a17fc81b316cd2e873b169e0090eae620442df99 | [
"MIT"
] | null | null | null | width = 17
height = 12.0
delimiter = '.'
print(width/2) # 8.5
print(width/2.0) # 8.5
print(height/3) # 4.0
print(1 + 2 * 5) # 11
print(delimiter * 5) # .....
| 16.4 | 29 | 0.554878 | 30 | 164 | 3.033333 | 0.466667 | 0.21978 | 0.241758 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164063 | 0.219512 | 164 | 9 | 30 | 18.222222 | 0.546875 | 0.121951 | 0 | 0 | 0 | 0 | 0.007246 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.625 | 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 | 0 | 0 | 0 | 1 | 0 | 4 |
bc5ec0dff3567df4b0e490c7bde5636d29158f51 | 281 | py | Python | roscraco/response/__init__.py | cyroxx/roscraco | fc0279928d0241f4eb475ac40b24ab22cb1d900a | [
"BSD-3-Clause"
] | 1 | 2020-09-06T09:30:13.000Z | 2020-09-06T09:30:13.000Z | roscraco/response/__init__.py | cyroxx/roscraco | fc0279928d0241f4eb475ac40b24ab22cb1d900a | [
"BSD-3-Clause"
] | null | null | null | roscraco/response/__init__.py | cyroxx/roscraco | fc0279928d0241f4eb475ac40b24ab22cb1d900a | [
"BSD-3-Clause"
] | null | null | null | from info import RouterInfo
from dmz import DMZSettings
from stats import TrafficStats
from wireless import WirelessSettings
from dhcp import DHCPReservationList, DHCPReservationListItem, \
DHCPServerSettings
from clients import ConnectedClientsList, ConnectedClientsListItem
| 35.125 | 66 | 0.868327 | 27 | 281 | 9.037037 | 0.62963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117438 | 281 | 7 | 67 | 40.142857 | 0.983871 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.857143 | 0 | 0.857143 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
bc60f7b2d3f9511a2702949817ffa919841a8164 | 41,925 | py | Python | oblivious/oblivious.py | nthparty/oblivious | 46f447b957931e98b8bb38c563dd6897e494a33e | [
"MIT"
] | 18 | 2020-06-07T16:48:50.000Z | 2022-03-07T08:03:32.000Z | oblivious/oblivious.py | nthparty/oblivious | 46f447b957931e98b8bb38c563dd6897e494a33e | [
"MIT"
] | 2 | 2020-11-15T17:14:37.000Z | 2021-09-10T03:10:11.000Z | oblivious/oblivious.py | nthparty/oblivious | 46f447b957931e98b8bb38c563dd6897e494a33e | [
"MIT"
] | 3 | 2021-03-21T03:55:48.000Z | 2022-02-08T08:08:31.000Z | """
Python library that serves as an API for common cryptographic primitives
used to implement OPRF, OT, and PSI protocols.
This library exports a collection of primitive operations for working
with elliptic curve points and scalars, classes for representing points,
classes for representing scalars, and two wrapper cl... | 34.706126 | 94 | 0.587979 | 4,708 | 41,925 | 5.099618 | 0.093458 | 0.011246 | 0.016869 | 0.024741 | 0.773752 | 0.748094 | 0.722021 | 0.700779 | 0.688617 | 0.679703 | 0 | 0.109354 | 0.301586 | 41,925 | 1,207 | 95 | 34.73488 | 0.710597 | 0.44935 | 0 | 0.519722 | 0 | 0 | 0.041524 | 0.021948 | 0 | 0 | 0.008603 | 0 | 0.023202 | 1 | 0.157773 | false | 0 | 0.027842 | 0 | 0.382831 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
bce47de1001eb2100ee6241bb8e7a32bf872a0f6 | 1,855 | py | Python | stockmarket/stockmovements/migrations/0008_auto_20190425_1150.py | prabhat-123/Nepalese_stock_data_scrapping | c557b0fca09d8e278b5d380494436d8b207d2602 | [
"MIT"
] | 2 | 2020-04-29T06:03:11.000Z | 2020-07-23T05:17:41.000Z | stockmarket/stockmovements/migrations/0008_auto_20190425_1150.py | prabhat-123/Nepalese_stock_data_scrapping | c557b0fca09d8e278b5d380494436d8b207d2602 | [
"MIT"
] | 7 | 2020-07-20T12:27:57.000Z | 2021-09-22T18:56:42.000Z | stockmarket/stockmovements/migrations/0008_auto_20190425_1150.py | prabhat-123/Nepalese_stock_data_scrapping | c557b0fca09d8e278b5d380494436d8b207d2602 | [
"MIT"
] | null | null | null | # Generated by Django 2.2 on 2019-04-25 06:05
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('stockmovements', '0007_auto_20190424_2220'),
]
operations = [
migrations.RemoveField(
model_name='stockhead',
name='Cl... | 26.884058 | 66 | 0.526146 | 144 | 1,855 | 6.638889 | 0.347222 | 0.122385 | 0.24477 | 0.299163 | 0.707113 | 0.707113 | 0.215481 | 0.215481 | 0.171548 | 0.171548 | 0 | 0.032856 | 0.360108 | 1,855 | 68 | 67 | 27.279412 | 0.772536 | 0.023181 | 0 | 0.677419 | 1 | 0 | 0.159116 | 0.012707 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.016129 | 0 | 0.064516 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
bcf315d1db56048ddc2466b690990ac28b183022 | 709 | py | Python | design-pattern-python/singleton/Singleton.py | MyXOF/DesignPattern | 98a6d22ab9f41258aa1d2f3073ba1fce32be701b | [
"MIT"
] | null | null | null | design-pattern-python/singleton/Singleton.py | MyXOF/DesignPattern | 98a6d22ab9f41258aa1d2f3073ba1fce32be701b | [
"MIT"
] | null | null | null | design-pattern-python/singleton/Singleton.py | MyXOF/DesignPattern | 98a6d22ab9f41258aa1d2f3073ba1fce32be701b | [
"MIT"
] | null | null | null | import threading
class SingletonV1(object):
def __new__(cls, *args, **kwargs):
if not hasattr(cls,"_instance"):
cls._instance = super(SingletonV1,cls).__new__(cls, *args, **kwargs)
return cls._instance
def __init__(self):
pass
class SingletonV2(object):
_lock = threa... | 24.448276 | 88 | 0.599436 | 81 | 709 | 4.814815 | 0.358025 | 0.225641 | 0.102564 | 0.164103 | 0.420513 | 0.184615 | 0.184615 | 0.184615 | 0 | 0 | 0 | 0.008 | 0.294781 | 709 | 28 | 89 | 25.321429 | 0.772 | 0.073343 | 0 | 0.526316 | 0 | 0 | 0.013761 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0.105263 | 0.052632 | 0 | 0.578947 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
bcf4e000a0dfda578bf99d245d2de7b6edc5406d | 215 | py | Python | Mundo 1-Fundamentos/PythonTeste/aula08a.py | JotaPeGabriel/curso-em-video-python3 | 141a9bec8acd7513c10768494fee5c86282dfa75 | [
"MIT"
] | null | null | null | Mundo 1-Fundamentos/PythonTeste/aula08a.py | JotaPeGabriel/curso-em-video-python3 | 141a9bec8acd7513c10768494fee5c86282dfa75 | [
"MIT"
] | null | null | null | Mundo 1-Fundamentos/PythonTeste/aula08a.py | JotaPeGabriel/curso-em-video-python3 | 141a9bec8acd7513c10768494fee5c86282dfa75 | [
"MIT"
] | null | null | null | # from math import sqrt
# num = int(input("Digite um número: "))
# raiz = sqrt(num)
# print(f'A rais de {num} é igual a {raiz:.2f}')
import emoji
print(emoji.emojize("Olá, mundo :smiling_imp: ", use_aliases=True))
| 26.875 | 67 | 0.674419 | 36 | 215 | 3.972222 | 0.777778 | 0.097902 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005495 | 0.153488 | 215 | 7 | 68 | 30.714286 | 0.78022 | 0.576744 | 0 | 0 | 0 | 0 | 0.294118 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 4 |
bcf51e7de320c9cfbed019e0512b6179497b4387 | 226 | py | Python | Idat_Python2022/Semana_7/Practica_Examen_If_elif_ else/2_Ejercicio_Sem07.py | Kennethguerra3/Python_Ejercicio_2022 | cf1297cf1e1585eba699e32c02993818c3d9ecbf | [
"MIT"
] | null | null | null | Idat_Python2022/Semana_7/Practica_Examen_If_elif_ else/2_Ejercicio_Sem07.py | Kennethguerra3/Python_Ejercicio_2022 | cf1297cf1e1585eba699e32c02993818c3d9ecbf | [
"MIT"
] | null | null | null | Idat_Python2022/Semana_7/Practica_Examen_If_elif_ else/2_Ejercicio_Sem07.py | Kennethguerra3/Python_Ejercicio_2022 | cf1297cf1e1585eba699e32c02993818c3d9ecbf | [
"MIT"
] | null | null | null | # if ... elif ... else ...
# https://www.mclibre.org/consultar/python/ejercicios/ej-if-else.html
""" Mejore el programa anterior haciendo que tenga en cuenta que no se puede dividir por cero: """
print("Division por cero ") | 37.666667 | 98 | 0.70354 | 34 | 226 | 4.676471 | 0.852941 | 0.08805 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146018 | 226 | 6 | 99 | 37.666667 | 0.823834 | 0.818584 | 0 | 0 | 0 | 0 | 0.558824 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 4 |
4c27b001909d3e75d68f5712981aa9bced3cd16c | 5,634 | py | Python | scripts/importacao/filiados-partidos/cadastra-filiados-partidos.py | dadosgovbr/scripts-dadosgovbr | 876be31983765a2cc352bc1596dae8fa2e362b39 | [
"MIT"
] | 26 | 2016-07-07T13:01:44.000Z | 2021-06-19T16:04:47.000Z | scripts/importacao/filiados-partidos/cadastra-filiados-partidos.py | dadosgovbr/scripts-dadosgovbr | 876be31983765a2cc352bc1596dae8fa2e362b39 | [
"MIT"
] | null | null | null | scripts/importacao/filiados-partidos/cadastra-filiados-partidos.py | dadosgovbr/scripts-dadosgovbr | 876be31983765a2cc352bc1596dae8fa2e362b39 | [
"MIT"
] | 12 | 2016-03-08T20:50:08.000Z | 2021-09-02T04:48:07.000Z | # -*- coding: utf-8 -*-
import re
import ckanclient
from exceptions import IOError
try:
with open("../../../api.key","r") as f:
api_key=f.readline().strip()
except IOError:
raise Exception(u"Uma chave de API no arquivo api.key é necessária para a operação.")
option_extract = re.compile(r'value="(\w+)... | 45.804878 | 1,158 | 0.679979 | 807 | 5,634 | 4.70632 | 0.334572 | 0.176672 | 0.264086 | 0.031596 | 0.109005 | 0.070037 | 0.043707 | 0.020011 | 0 | 0 | 0 | 0.000839 | 0.154242 | 5,634 | 122 | 1,159 | 46.180328 | 0.796222 | 0.097622 | 0 | 0 | 0 | 0.031579 | 0.72345 | 0.27655 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.031579 | null | null | 0.021053 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
4c6d23e9190d84d09d7d181d73214b1986579bda | 102 | py | Python | reward/utils/memories/__init__.py | lgvaz/torchrl | cfff8acaf70d1fec72169162b95ab5ad3547d17a | [
"MIT"
] | 5 | 2018-06-21T14:33:40.000Z | 2018-08-18T02:26:03.000Z | reward/utils/memories/__init__.py | lgvaz/reward | cfff8acaf70d1fec72169162b95ab5ad3547d17a | [
"MIT"
] | null | null | null | reward/utils/memories/__init__.py | lgvaz/reward | cfff8acaf70d1fec72169162b95ab5ad3547d17a | [
"MIT"
] | 2 | 2018-05-08T03:34:49.000Z | 2018-06-22T15:04:17.000Z | from .common_memories import SimpleMemory, DefaultMemory
__all__ = ["SimpleMemory", "DefaultMemory"]
| 25.5 | 56 | 0.803922 | 9 | 102 | 8.555556 | 0.777778 | 0.649351 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098039 | 102 | 3 | 57 | 34 | 0.836957 | 0 | 0 | 0 | 0 | 0 | 0.245098 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
4c777b8552b64b9599499a30eadb1c2dcf5bce71 | 622 | py | Python | modules/networkx/readwrite/json_graph/__init__.py | fstwn/Cockatoo | 0c5f9c515053bfc31e62d20fddc4ae9bece09d88 | [
"MIT"
] | 9 | 2020-09-26T03:41:21.000Z | 2021-11-29T06:52:35.000Z | modules/networkx/readwrite/json_graph/__init__.py | fstwn/Cockatoo | 0c5f9c515053bfc31e62d20fddc4ae9bece09d88 | [
"MIT"
] | 9 | 2020-08-10T19:38:03.000Z | 2022-02-24T08:41:32.000Z | modules/networkx/readwrite/json_graph/__init__.py | fstwn/Cockatoo | 0c5f9c515053bfc31e62d20fddc4ae9bece09d88 | [
"MIT"
] | 3 | 2020-12-26T08:43:56.000Z | 2021-10-17T19:37:52.000Z | """
*********
JSON data
*********
Generate and parse JSON serializable data for NetworkX graphs.
These formats are suitable for use with the d3.js examples https://d3js.org/
The three formats that you can generate with NetworkX are:
- node-link like in the d3.js example https://bl.ocks.org/mbostock/4062045
- tree ... | 34.555556 | 77 | 0.757235 | 97 | 622 | 4.814433 | 0.463918 | 0.042827 | 0.059957 | 0.070664 | 0.45182 | 0.38758 | 0.233405 | 0.179872 | 0.179872 | 0.179872 | 0 | 0.034926 | 0.125402 | 622 | 17 | 78 | 36.588235 | 0.823529 | 0.733119 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
4c7ae6ef0216eb116f93265268ab246bee2de1b2 | 330 | py | Python | mobie/__init__.py | mobie-org/mobie-utils-python | 0281db2bf3726103b762a50e40849e30942dd6ec | [
"MIT"
] | 1 | 2020-03-03T01:33:06.000Z | 2020-03-03T01:33:06.000Z | mobie/__init__.py | mobie-org/mobie-utils-python | 0281db2bf3726103b762a50e40849e30942dd6ec | [
"MIT"
] | 4 | 2020-06-03T11:43:48.000Z | 2020-06-08T10:58:05.000Z | mobie/__init__.py | platybrowser/mmb-python | 0281db2bf3726103b762a50e40849e30942dd6ec | [
"MIT"
] | 2 | 2020-06-08T07:06:01.000Z | 2020-06-08T07:08:08.000Z | from .image_data import add_image, add_bdv_image
from .open_organelle import add_open_organelle_data
from .registration import add_registered_source
from .segmentation import add_segmentation
from .traces import add_traces
from .view_utils import combine_views, merge_view_file
from .__version__ import __version__, SPE... | 36.666667 | 54 | 0.872727 | 48 | 330 | 5.479167 | 0.4375 | 0.171103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09697 | 330 | 8 | 55 | 41.25 | 0.88255 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
d5b9a8251c071740fcf9c44186a62de732035df9 | 81 | py | Python | vag/apps.py | Nels885/csd_dashboard | aa5a3b970c50a2a93af722f962bd87c3728f233c | [
"MIT"
] | null | null | null | vag/apps.py | Nels885/csd_dashboard | aa5a3b970c50a2a93af722f962bd87c3728f233c | [
"MIT"
] | null | null | null | vag/apps.py | Nels885/csd_dashboard | aa5a3b970c50a2a93af722f962bd87c3728f233c | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class VagConfig(AppConfig):
name = 'vag'
| 13.5 | 33 | 0.728395 | 10 | 81 | 5.9 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185185 | 81 | 5 | 34 | 16.2 | 0.893939 | 0 | 0 | 0 | 0 | 0 | 0.037037 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
d5f3d4525e186eefb1784d3a328ef704a2aae7b6 | 726 | py | Python | setup.py | Anton-4/ascii-canvas | 99b69b40205cbedf4a236295cd4608ffe45e7786 | [
"MIT"
] | null | null | null | setup.py | Anton-4/ascii-canvas | 99b69b40205cbedf4a236295cd4608ffe45e7786 | [
"MIT"
] | null | null | null | setup.py | Anton-4/ascii-canvas | 99b69b40205cbedf4a236295cd4608ffe45e7786 | [
"MIT"
] | null | null | null | from setuptools import setup
from setuptools import find_packages
setup(name='ascii-canvas',
version='1.0.0',
author='Paul Schweizer',
author_email='paulschweizer@gmx.net',
description='Treat strings like Items on a 2D Canvas.',
long_description='',
url='https://github.com/PaulSchw... | 34.571429 | 61 | 0.592287 | 75 | 726 | 5.68 | 0.56 | 0.267606 | 0.352113 | 0.244131 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026718 | 0.278237 | 726 | 20 | 62 | 36.3 | 0.78626 | 0 | 0 | 0 | 0 | 0 | 0.484848 | 0.028926 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.111111 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
d5f82753471ceab066064739ad6ec60678418256 | 166 | py | Python | data_files/LearningPython/Shape.py | PmagPy/PmagPy-notebooks | 490cb13e3a78e1323368125de9a503bd327c7174 | [
"BSD-3-Clause"
] | 2 | 2020-07-05T01:11:33.000Z | 2020-07-05T01:11:39.000Z | data_files/LearningPython/Shape.py | schwehr/PmagPy | 5e9edc5dc9a7a243b8e7f237fa156e0cd782076b | [
"BSD-3-Clause"
] | 1 | 2018-08-27T22:59:09.000Z | 2018-08-27T22:59:09.000Z | data_files/LearningPython/Shape.py | PmagPy/PmagPy-notebooks | 490cb13e3a78e1323368125de9a503bd327c7174 | [
"BSD-3-Clause"
] | null | null | null | from builtins import object
class Shape(object):
def __init__(self,x,y):
self.x = x
self.y = y
def area(self):
return self.x * self.y
| 20.75 | 30 | 0.578313 | 26 | 166 | 3.538462 | 0.5 | 0.163043 | 0.130435 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.313253 | 166 | 7 | 31 | 23.714286 | 0.807018 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0.142857 | 0.714286 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
d5fa33b5ec1dd871328d5e18cc2ed7c43908ec92 | 323 | py | Python | api/src/application/authentication/errors.py | iliaskaras/VCFHandler | 5372659e4472207be964e0d233994a0ffff536fe | [
"MIT"
] | null | null | null | api/src/application/authentication/errors.py | iliaskaras/VCFHandler | 5372659e4472207be964e0d233994a0ffff536fe | [
"MIT"
] | null | null | null | api/src/application/authentication/errors.py | iliaskaras/VCFHandler | 5372659e4472207be964e0d233994a0ffff536fe | [
"MIT"
] | null | null | null | from application.infrastructure.error.errors import VCFHandlerBaseError
class AuthenticationError(VCFHandlerBaseError):
message = 'Authentication Error.'
error_type = 'AuthenticationError'
class AuthorizationError(VCFHandlerBaseError):
message = 'Authorization error.'
error_type = 'AuthorizationErro... | 26.916667 | 71 | 0.798762 | 25 | 323 | 10.24 | 0.56 | 0.203125 | 0.109375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130031 | 323 | 11 | 72 | 29.363636 | 0.911032 | 0 | 0 | 0 | 0 | 0 | 0.241486 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 1 | 0 | 1 | 0 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
911268513affc6d2a0c164d219ce3f97bd361b8c | 260 | py | Python | tests/float/modulo.py | lurch/micropython | 28dfbc2ba2ef41a7810e4e39290031eb2207a0a9 | [
"MIT"
] | 2 | 2022-01-27T14:09:06.000Z | 2022-02-16T23:05:52.000Z | tests/float/modulo.py | roger-/micropython | bad2df3e95cd5719099319d71590a79bf6bc4493 | [
"MIT"
] | null | null | null | tests/float/modulo.py | roger-/micropython | bad2df3e95cd5719099319d71590a79bf6bc4493 | [
"MIT"
] | null | null | null | # check modulo matches python definition
# TODO we currenty fail with this
if False:
print(1.23456 % 0.7)
print(-1.23456 % 0.7)
print(1.23456 % -0.7)
print(-1.23456 % -0.7)
a = 1.23456
b = 0.7
print(a % b)
print(a % -b)
print(-a % b)
print(-a % -b)
| 17.333333 | 40 | 0.603846 | 51 | 260 | 3.078431 | 0.392157 | 0.191083 | 0.280255 | 0.305732 | 0.509554 | 0.509554 | 0.509554 | 0.509554 | 0.509554 | 0.33121 | 0 | 0.196078 | 0.215385 | 260 | 14 | 41 | 18.571429 | 0.573529 | 0.269231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.727273 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
91233bede67097cd189d625608b4249969db5adc | 181 | py | Python | dvc/dependency/https.py | gyliu513/dvc | d932405ee148767c5dbbbc394d6cd414270bf8f0 | [
"Apache-2.0"
] | 2 | 2019-06-23T14:24:48.000Z | 2019-07-08T12:22:53.000Z | dvc/dependency/https.py | dnabanita7/dvc | 638aaa254ea475947545edd046116befe82040f1 | [
"Apache-2.0"
] | null | null | null | dvc/dependency/https.py | dnabanita7/dvc | 638aaa254ea475947545edd046116befe82040f1 | [
"Apache-2.0"
] | 1 | 2019-09-02T00:29:40.000Z | 2019-09-02T00:29:40.000Z | from __future__ import unicode_literals
from dvc.remote.https import RemoteHTTPS
from .http import DependencyHTTP
class DependencyHTTPS(DependencyHTTP):
REMOTE = RemoteHTTPS
| 20.111111 | 40 | 0.828729 | 20 | 181 | 7.25 | 0.65 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.132597 | 181 | 8 | 41 | 22.625 | 0.923567 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
912b428ace5d4ce2f35e8c4df62c49148a6a0a67 | 147 | py | Python | voting_intentions/apps.py | PeoplesMomentum/mxv | 3ad06cc8d3db43c63f24a80a5709aed3ade94789 | [
"MIT"
] | 6 | 2017-12-13T18:28:16.000Z | 2019-12-13T06:06:34.000Z | voting_intentions/apps.py | PeoplesMomentum/mxv | 3ad06cc8d3db43c63f24a80a5709aed3ade94789 | [
"MIT"
] | 159 | 2017-11-05T16:48:20.000Z | 2020-07-17T09:38:18.000Z | voting_intentions/apps.py | PeoplesMomentum/mxv | 3ad06cc8d3db43c63f24a80a5709aed3ade94789 | [
"MIT"
] | 2 | 2018-06-30T19:34:57.000Z | 2018-10-17T11:09:41.000Z | from django.apps import AppConfig
class VotingIntentionsConfig(AppConfig):
name = 'voting_intentions'
verbose_name = 'Voting Intentions'
| 21 | 40 | 0.77551 | 15 | 147 | 7.466667 | 0.733333 | 0.178571 | 0.357143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.156463 | 147 | 6 | 41 | 24.5 | 0.903226 | 0 | 0 | 0 | 0 | 0 | 0.231293 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
912d12257fc4aded1ec63130afd7559b7bdeb0ba | 641 | py | Python | ex30.3.py | Mbdn/Python-Beginner | f750a366d17f5578b63e98d487d3e5b256756f16 | [
"MIT"
] | 1 | 2018-12-21T16:55:15.000Z | 2018-12-21T16:55:15.000Z | ex30.3.py | Mbdn/Python-Beginner | f750a366d17f5578b63e98d487d3e5b256756f16 | [
"MIT"
] | null | null | null | ex30.3.py | Mbdn/Python-Beginner | f750a366d17f5578b63e98d487d3e5b256756f16 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
people = 20
cars = 14
buese = 40
#people是否大于cars and buese 是否小于cars,True and False 等于False
if people > cars and buese < cars:
print "yes"
#False and False 等于False
elif people < cars and buese < cars:
print "no"
#Flase and True 等于 False
elif people < cars and buese > cars:
print... | 20.03125 | 57 | 0.644306 | 102 | 641 | 4.04902 | 0.303922 | 0.169492 | 0.237288 | 0.174334 | 0.416465 | 0.416465 | 0.225182 | 0 | 0 | 0 | 0 | 0.027254 | 0.25585 | 641 | 31 | 58 | 20.677419 | 0.838574 | 0.291732 | 0 | 0.095238 | 0 | 0 | 0.035874 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.428571 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
913482fba4848148812472d709c5743be8dd1cf0 | 273 | py | Python | lib_collection/sort/bubble_sort.py | caser789/libcollection | eb0a6fc36ce1cb57ed587865bbc1576e81c08924 | [
"MIT"
] | null | null | null | lib_collection/sort/bubble_sort.py | caser789/libcollection | eb0a6fc36ce1cb57ed587865bbc1576e81c08924 | [
"MIT"
] | null | null | null | lib_collection/sort/bubble_sort.py | caser789/libcollection | eb0a6fc36ce1cb57ed587865bbc1576e81c08924 | [
"MIT"
] | null | null | null | def sort(lst):
"""
>>> lst = [5, 4, 3, 2, 1]
>>> sort(lst)
>>> lst
[1, 2, 3, 4, 5]
"""
n = len(lst)
for i in range(n-1, 0, -1):
for j in range(i):
if lst[j] > lst[j+1]:
lst[j], lst[j+1] = lst[j+1], lst[j]
| 21 | 51 | 0.351648 | 49 | 273 | 1.959184 | 0.346939 | 0.25 | 0.15625 | 0.25 | 0.28125 | 0.229167 | 0.229167 | 0 | 0 | 0 | 0 | 0.098765 | 0.406593 | 273 | 12 | 52 | 22.75 | 0.493827 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 1 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
9141a5ff31c5b93f3e50dc0bdb0c72c3c126208f | 28,725 | py | Python | server/src/test/unit/weblab/lab/test_server.py | romainrossi/weblabdeusto | 494f1cd291d03dcf1d2e8f3e36d3dbe2348b167f | [
"BSD-2-Clause"
] | 15 | 2015-03-12T12:15:41.000Z | 2021-12-20T17:53:24.000Z | server/src/test/unit/weblab/lab/test_server.py | romainrossi/weblabdeusto | 494f1cd291d03dcf1d2e8f3e36d3dbe2348b167f | [
"BSD-2-Clause"
] | 44 | 2015-01-07T09:22:05.000Z | 2017-01-31T22:44:21.000Z | server/src/test/unit/weblab/lab/test_server.py | romainrossi/weblabdeusto | 494f1cd291d03dcf1d2e8f3e36d3dbe2348b167f | [
"BSD-2-Clause"
] | 22 | 2015-01-13T13:55:48.000Z | 2021-12-16T17:07:00.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2005 onwards University of Deusto
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution.
#
# This software consists of contributions made by many individuals,
# list... | 43.456884 | 132 | 0.637946 | 3,202 | 28,725 | 5.453154 | 0.121799 | 0.036195 | 0.052116 | 0.037111 | 0.754768 | 0.732719 | 0.710555 | 0.703453 | 0.698185 | 0.669778 | 0 | 0.008327 | 0.255875 | 28,725 | 660 | 133 | 43.522727 | 0.808561 | 0.128285 | 0 | 0.583333 | 0 | 0 | 0.095131 | 0.049224 | 0 | 0 | 0 | 0.001515 | 0.203431 | 1 | 0.095588 | false | 0 | 0.041667 | 0.007353 | 0.17402 | 0.002451 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
e676feb3a4dfd0712c163c5d3c0469178487c1f1 | 975 | py | Python | habanero/exceptions.py | yurivict/habanero | 857897a88811153f7460472219fd78d4e68bdc12 | [
"MIT"
] | 115 | 2015-10-07T14:49:35.000Z | 2022-03-31T14:28:07.000Z | habanero/exceptions.py | yurivict/habanero | 857897a88811153f7460472219fd78d4e68bdc12 | [
"MIT"
] | 101 | 2015-10-07T02:24:16.000Z | 2022-03-25T22:46:12.000Z | habanero/exceptions.py | yurivict/habanero | 857897a88811153f7460472219fd78d4e68bdc12 | [
"MIT"
] | 23 | 2015-10-22T05:17:08.000Z | 2022-03-29T09:25:12.000Z | class Error(Exception):
"""Base class for exceptions in this module."""
pass
class RequestError(Error):
"""
Exception raised for request errors.
This error occurrs when a request sent to the Crossref API
results in an error. We give back:
- HTTP status code
- Error message
"""
... | 23.780488 | 78 | 0.627692 | 129 | 975 | 4.674419 | 0.527132 | 0.066335 | 0.046434 | 0.059701 | 0.069652 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016194 | 0.24 | 975 | 40 | 79 | 24.375 | 0.797571 | 0.629744 | 0 | 0.181818 | 0 | 0 | 0.06051 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0.090909 | 0 | 0.272727 | 0.727273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
e67adb84f60bb507f1cf556c8724d7bd941493ed | 71 | py | Python | src/entity/base.py | homoluctus/cdk-py-template | 66bc1f5d5e20f7f482e7bfdd53e6b64ba7ce060c | [
"MIT"
] | null | null | null | src/entity/base.py | homoluctus/cdk-py-template | 66bc1f5d5e20f7f482e7bfdd53e6b64ba7ce060c | [
"MIT"
] | null | null | null | src/entity/base.py | homoluctus/cdk-py-template | 66bc1f5d5e20f7f482e7bfdd53e6b64ba7ce060c | [
"MIT"
] | null | null | null | from dataclasses import dataclass
@dataclass
class Base:
id: str
| 10.142857 | 33 | 0.746479 | 9 | 71 | 5.888889 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.211268 | 71 | 6 | 34 | 11.833333 | 0.946429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
e690200f998046b6133d50aa29d2442852ff270d | 221 | py | Python | py/tests/context.py | andrewblim/advent-of-code-2019 | 5008ef57900f055540a3dd36fb44a337e5d3c870 | [
"MIT"
] | null | null | null | py/tests/context.py | andrewblim/advent-of-code-2019 | 5008ef57900f055540a3dd36fb44a337e5d3c870 | [
"MIT"
] | null | null | null | py/tests/context.py | andrewblim/advent-of-code-2019 | 5008ef57900f055540a3dd36fb44a337e5d3c870 | [
"MIT"
] | null | null | null | import sys
import os
# this suggested organization from
# - https://docs.python-guide.org/writing/structure/
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
import advent_of_code_2019
| 24.555556 | 82 | 0.760181 | 34 | 221 | 4.735294 | 0.735294 | 0.111801 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024752 | 0.085973 | 221 | 8 | 83 | 27.625 | 0.772277 | 0.375566 | 0 | 0 | 0 | 0 | 0.014815 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.75 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
e69afd80750e92481455e91401cdde6da6c50f7e | 3,175 | py | Python | tests/debug.py | Rodolphe2005/pytorch-lightning | fbc127279687d77d1d6e5aae62c4d762f3fb59d1 | [
"Apache-2.0"
] | null | null | null | tests/debug.py | Rodolphe2005/pytorch-lightning | fbc127279687d77d1d6e5aae62c4d762f3fb59d1 | [
"Apache-2.0"
] | null | null | null | tests/debug.py | Rodolphe2005/pytorch-lightning | fbc127279687d77d1d6e5aae62c4d762f3fb59d1 | [
"Apache-2.0"
] | null | null | null | from pytorch_lightning import Trainer
from examples import LightningTemplateModel
from pytorch_lightning.testing import LightningTestModel
from argparse import Namespace
from test_tube import Experiment
from pytorch_lightning.callbacks import ModelCheckpoint
import os
import shutil
import pytorch_lightning as pl
impor... | 27.850877 | 97 | 0.666457 | 415 | 3,175 | 4.86506 | 0.349398 | 0.024269 | 0.009906 | 0.011887 | 0.190688 | 0.190688 | 0.190688 | 0.170381 | 0.170381 | 0.113918 | 0 | 0.010573 | 0.225512 | 3,175 | 113 | 98 | 28.097345 | 0.810492 | 0.426772 | 0 | 0.2 | 0 | 0 | 0.036932 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.333333 | 0.133333 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
e6e6ec01ea1ac38d30c804cb9727a0e11216f396 | 164 | py | Python | extensions/admin_extension/__init__.py | nalabelle/discord-bot | 33c140e6bd3e2ba41d2368dc1918913c6011ab07 | [
"MIT"
] | 1 | 2017-03-22T19:13:09.000Z | 2017-03-22T19:13:09.000Z | extensions/admin_extension/__init__.py | nalabelle/discord-bot | 33c140e6bd3e2ba41d2368dc1918913c6011ab07 | [
"MIT"
] | 1 | 2021-11-13T04:17:21.000Z | 2021-11-13T04:17:21.000Z | extensions/admin_extension/__init__.py | nalabelle/discord-bot | 33c140e6bd3e2ba41d2368dc1918913c6011ab07 | [
"MIT"
] | 3 | 2017-03-22T19:13:34.000Z | 2019-03-14T21:11:52.000Z | from .bot_admin import ExtensionAdmin
def setup(bot):
cog = ExtensionAdmin(bot)
bot.add_cog(cog)
def teardown(bot):
bot.remove_cog('ExtensionAdmin')
| 16.4 | 37 | 0.719512 | 22 | 164 | 5.227273 | 0.5 | 0.295652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170732 | 164 | 9 | 38 | 18.222222 | 0.845588 | 0 | 0 | 0 | 0 | 0 | 0.08589 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
fc0f6b77366754ee90f132e10f2618ebcd1c774c | 2,142 | py | Python | d3jscluster/cluster/migrations/0001_initial.py | guanxiLi/django_check | db591f93028849abf37b3562e236ac660c6c395d | [
"Apache-2.0"
] | null | null | null | d3jscluster/cluster/migrations/0001_initial.py | guanxiLi/django_check | db591f93028849abf37b3562e236ac660c6c395d | [
"Apache-2.0"
] | null | null | null | d3jscluster/cluster/migrations/0001_initial.py | guanxiLi/django_check | db591f93028849abf37b3562e236ac660c6c395d | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2017-06-08 05:18
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Reward... | 38.945455 | 114 | 0.551354 | 199 | 2,142 | 5.78392 | 0.386935 | 0.260643 | 0.312772 | 0.417029 | 0.422242 | 0.118158 | 0.118158 | 0.118158 | 0.118158 | 0.118158 | 0 | 0.036938 | 0.304855 | 2,142 | 54 | 115 | 39.666667 | 0.736064 | 0.031746 | 0 | 0.347826 | 1 | 0 | 0.099952 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.043478 | 0 | 0.130435 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
fc13c39bc7cc04fd32c49b77d7b5d5ee9c44bd6d | 118 | py | Python | core/models.py | sameerapriya/startupmanch | 78e196e870490d2b5bd4d613fbe235e7cd6c7682 | [
"MIT"
] | null | null | null | core/models.py | sameerapriya/startupmanch | 78e196e870490d2b5bd4d613fbe235e7cd6c7682 | [
"MIT"
] | 5 | 2021-03-30T14:06:08.000Z | 2021-09-22T19:26:28.000Z | core/models.py | sameerapriya/startupmanch | 78e196e870490d2b5bd4d613fbe235e7cd6c7682 | [
"MIT"
] | null | null | null | from django.db import models
# Create your models here.
class Company(models.Model):
data = models.TextField()
| 14.75 | 29 | 0.728814 | 16 | 118 | 5.375 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.177966 | 118 | 7 | 30 | 16.857143 | 0.886598 | 0.20339 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
fc14dde6efc605d0376f597de50ae37378e24c05 | 8,074 | py | Python | go/billing/tests/test_tasks.py | lynnUg/vumi-go | 852f906c46d5d26940bd6699f11488b73bbc3742 | [
"BSD-3-Clause"
] | null | null | null | go/billing/tests/test_tasks.py | lynnUg/vumi-go | 852f906c46d5d26940bd6699f11488b73bbc3742 | [
"BSD-3-Clause"
] | null | null | null | go/billing/tests/test_tasks.py | lynnUg/vumi-go | 852f906c46d5d26940bd6699f11488b73bbc3742 | [
"BSD-3-Clause"
] | null | null | null | from datetime import date
from dateutil.relativedelta import relativedelta
import mock
from go.base.tests.helpers import GoDjangoTestCase, DjangoVumiApiHelper
from go.billing.models import MessageCost, Account, Statement
from go.billing import tasks
from go.billing.tests.helpers import (
this_month, mk_transactio... | 35.884444 | 78 | 0.661011 | 911 | 8,074 | 5.600439 | 0.119649 | 0.114661 | 0.066641 | 0.094081 | 0.776362 | 0.749706 | 0.738142 | 0.705018 | 0.681301 | 0.671305 | 0 | 0.045357 | 0.246346 | 8,074 | 224 | 79 | 36.044643 | 0.793098 | 0 | 0 | 0.647727 | 0 | 0 | 0.025142 | 0.005573 | 0 | 0 | 0 | 0 | 0.227273 | 1 | 0.051136 | false | 0 | 0.039773 | 0 | 0.096591 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
fc17bad7bd8ed065c0895742aa3e987d0e8f4233 | 2,733 | py | Python | backups/models.py | TheEdu/python-mysql-backups-django-admin | d92ce1fe5a8cbdb8256d9fb0ab87d91c9d8d43ec | [
"MIT"
] | null | null | null | backups/models.py | TheEdu/python-mysql-backups-django-admin | d92ce1fe5a8cbdb8256d9fb0ab87d91c9d8d43ec | [
"MIT"
] | null | null | null | backups/models.py | TheEdu/python-mysql-backups-django-admin | d92ce1fe5a8cbdb8256d9fb0ab87d91c9d8d43ec | [
"MIT"
] | 1 | 2019-06-24T15:39:00.000Z | 2019-06-24T15:39:00.000Z | from django.db import models
class HostType(models.Model):
codigo = models.CharField(max_length=200)
descripcion = models.CharField(max_length=200)
def __str__(self):
return self.codigo + " - " + self.descripcion
class DataSourceType(models.Model):
codigo = models.CharField(max_length=200)
... | 31.413793 | 82 | 0.723747 | 344 | 2,733 | 5.526163 | 0.197674 | 0.197265 | 0.236718 | 0.315623 | 0.676486 | 0.633877 | 0.596002 | 0.515518 | 0.431878 | 0.431878 | 0 | 0.032399 | 0.164288 | 2,733 | 86 | 83 | 31.77907 | 0.799912 | 0 | 0 | 0.45 | 0 | 0 | 0.004025 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.116667 | false | 0.05 | 0.016667 | 0.116667 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
fc186fe5fab8c6677d397f7b42e864abdf1e5d18 | 118 | py | Python | scripts/field/goPirate.py | G00dBye/YYMS | 1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb | [
"MIT"
] | 54 | 2019-04-16T23:24:48.000Z | 2021-12-18T11:41:50.000Z | scripts/field/goPirate.py | G00dBye/YYMS | 1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb | [
"MIT"
] | 3 | 2019-05-19T15:19:41.000Z | 2020-04-27T16:29:16.000Z | scripts/field/goPirate.py | G00dBye/YYMS | 1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb | [
"MIT"
] | 49 | 2020-11-25T23:29:16.000Z | 2022-03-26T16:20:24.000Z | # Created by MechAviv
# ID :: [1020500]
# Unknown : Unknown
sm.reservedEffect("Effect/Direction3.img/pirate/Scene1")
| 19.666667 | 56 | 0.737288 | 14 | 118 | 6.214286 | 0.928571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086538 | 0.118644 | 118 | 5 | 57 | 23.6 | 0.75 | 0.449153 | 0 | 0 | 0 | 0 | 0.57377 | 0.57377 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
fc2365829ae93cdd6515e903a206c2ff92fc5955 | 723 | py | Python | ari_parser/models/exceptions.py | Hukyl/ari_parser | c0612e48f950386f1c808617d48b1cdb8518a1b4 | [
"MIT"
] | null | null | null | ari_parser/models/exceptions.py | Hukyl/ari_parser | c0612e48f950386f1c808617d48b1cdb8518a1b4 | [
"MIT"
] | null | null | null | ari_parser/models/exceptions.py | Hukyl/ari_parser | c0612e48f950386f1c808617d48b1cdb8518a1b4 | [
"MIT"
] | null | null | null | class DatabaseException(Exception):
pass
class AccountAlreadyExistsException(DatabaseException):
pass
class AccountDoesNotExistException(DatabaseException):
pass
class DependentAlreadyExistsException(DatabaseException):
pass
class UpdatesDoNotExistException(DatabaseException):
pass
cla... | 15.382979 | 58 | 0.798064 | 48 | 723 | 12.020833 | 0.3125 | 0.171577 | 0.225303 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152144 | 723 | 46 | 59 | 15.717391 | 0.941272 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 0 | 0 | 1 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
fc537483b0ddf81fd08c801109eadff7d7ff7874 | 115 | py | Python | app/__init__.py | uniphil/map-kibera-schools | 3ba5379c25e28330baca03533fb6c127daaa0ee6 | [
"BSD-2-Clause"
] | 2 | 2015-03-12T21:40:49.000Z | 2015-03-16T14:23:23.000Z | app/__init__.py | uniphil/map-kibera-schools | 3ba5379c25e28330baca03533fb6c127daaa0ee6 | [
"BSD-2-Clause"
] | 90 | 2015-01-16T19:26:40.000Z | 2019-06-12T07:15:04.000Z | app/__init__.py | uniphil/map-kibera-schools | 3ba5379c25e28330baca03533fb6c127daaa0ee6 | [
"BSD-2-Clause"
] | 3 | 2015-03-27T17:56:37.000Z | 2019-03-15T01:39:32.000Z | # -*- coding: utf-8 -*-
"""
app
~~~
Static site generator for Open Schools Kenya by Feedback Labs
"""
| 14.375 | 65 | 0.565217 | 14 | 115 | 4.642857 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012048 | 0.278261 | 115 | 7 | 66 | 16.428571 | 0.771084 | 0.808696 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
fc695c2015229102b09f1f74dac7a942b4e89c17 | 117 | py | Python | CloneHero/testcuda.py | Crazychicken563/RhythmGameCharterAI | d9647007010ecc9a7ecc93d998527e578d4b12c6 | [
"MIT"
] | null | null | null | CloneHero/testcuda.py | Crazychicken563/RhythmGameCharterAI | d9647007010ecc9a7ecc93d998527e578d4b12c6 | [
"MIT"
] | null | null | null | CloneHero/testcuda.py | Crazychicken563/RhythmGameCharterAI | d9647007010ecc9a7ecc93d998527e578d4b12c6 | [
"MIT"
] | null | null | null | from __future__ import print_function
import torch
x = torch.rand(5, 3)
print(x)
print(torch.cuda.is_available()) | 23.4 | 38 | 0.760684 | 19 | 117 | 4.368421 | 0.684211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019608 | 0.128205 | 117 | 5 | 39 | 23.4 | 0.794118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0.6 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 4 |
fc7a77314d6ae9a3e62189d600c030d14ebea9f9 | 116 | py | Python | tool/parser.py | TPXP/adventofcode-2019 | ee653d6bfb510d14f2c2b3efc730d328c16b3f71 | [
"MIT"
] | 8 | 2019-12-01T08:56:46.000Z | 2019-12-05T21:21:12.000Z | tool/parser.py | TPXP/adventofcode-2019 | ee653d6bfb510d14f2c2b3efc730d328c16b3f71 | [
"MIT"
] | 10 | 2019-11-25T09:56:20.000Z | 2021-05-10T19:57:48.000Z | tool/parser.py | TPXP/adventofcode-2019 | ee653d6bfb510d14f2c2b3efc730d328c16b3f71 | [
"MIT"
] | 5 | 2019-12-01T08:19:57.000Z | 2020-11-23T09:50:19.000Z |
# Base class for parsers
class Parser:
def parse(self, s):
pass
def cleanup(self):
pass
| 10.545455 | 24 | 0.560345 | 15 | 116 | 4.333333 | 0.733333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.362069 | 116 | 10 | 25 | 11.6 | 0.878378 | 0.189655 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0.4 | 0 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
fc8d6aeafa32c979fabbbe84997db42b76cec0b2 | 453 | py | Python | timeseries_forecasting/src/utils/training.py | adrigrillo/dl | fc65b824f7949ee4ffd532d095f48cb995297ad6 | [
"MIT"
] | null | null | null | timeseries_forecasting/src/utils/training.py | adrigrillo/dl | fc65b824f7949ee4ffd532d095f48cb995297ad6 | [
"MIT"
] | null | null | null | timeseries_forecasting/src/utils/training.py | adrigrillo/dl | fc65b824f7949ee4ffd532d095f48cb995297ad6 | [
"MIT"
] | null | null | null | import numpy as np
from keras import backend
from sklearn.metrics import mean_squared_error
def root_mean_square_error(y_true, y_pred):
return backend.sqrt(backend.mean(backend.square(y_pred - y_true), axis=-1))
def calculate_rmse(y_true, y_pred):
return np.sqrt(mean_squared_error(y_true, y_pred))
def nor... | 28.3125 | 89 | 0.766004 | 79 | 453 | 4.088608 | 0.341772 | 0.108359 | 0.074303 | 0.123839 | 0.551084 | 0.455108 | 0.455108 | 0.455108 | 0.455108 | 0.241486 | 0 | 0.007557 | 0.12362 | 453 | 15 | 90 | 30.2 | 0.806045 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
fc8d9a1345567b50a983bbad3487363e41ea8be2 | 106 | py | Python | apps/github_auth/apps.py | coogger/coogger | 9e5e3ca172d8a14272948284a6822000b119119c | [
"MIT"
] | 48 | 2018-04-13T13:00:10.000Z | 2020-03-17T23:35:23.000Z | apps/github_auth/apps.py | coogger/coogger | 9e5e3ca172d8a14272948284a6822000b119119c | [
"MIT"
] | 77 | 2018-03-25T13:17:12.000Z | 2020-08-11T08:24:49.000Z | apps/github_auth/apps.py | coogger/coogger | 9e5e3ca172d8a14272948284a6822000b119119c | [
"MIT"
] | 35 | 2018-03-30T21:43:21.000Z | 2020-08-11T05:51:46.000Z | from django.apps import AppConfig
class GithubAuthConfig(AppConfig):
name = "apps.github_auth"
| 17.666667 | 35 | 0.735849 | 12 | 106 | 6.416667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.188679 | 106 | 5 | 36 | 21.2 | 0.895349 | 0 | 0 | 0 | 0 | 0 | 0.158416 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
5dbcabf9de33dfe474b97eb6a897827ffb871ad3 | 155 | py | Python | MyWork/OldFiles/Beginner/WorkingWithVariables/Variables.py | minefarmer/100-Days-Python | b80b28d299342b490082ac301a0d8b176419f8f9 | [
"Unlicense"
] | null | null | null | MyWork/OldFiles/Beginner/WorkingWithVariables/Variables.py | minefarmer/100-Days-Python | b80b28d299342b490082ac301a0d8b176419f8f9 | [
"Unlicense"
] | null | null | null | MyWork/OldFiles/Beginner/WorkingWithVariables/Variables.py | minefarmer/100-Days-Python | b80b28d299342b490082ac301a0d8b176419f8f9 | [
"Unlicense"
] | null | null | null | name = "Rich"
print(name) # Rich
name = "Angela"
print(name) # Angela
name = input("What is your name?") # Rich
length = len(name)
print(length) # 4
| 15.5 | 42 | 0.632258 | 23 | 155 | 4.26087 | 0.478261 | 0.244898 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00813 | 0.206452 | 155 | 9 | 43 | 17.222222 | 0.788618 | 0.116129 | 0 | 0.285714 | 0 | 0 | 0.212121 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.428571 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
5dc58bda39b899236cced883f5cfeaea645c6394 | 219 | py | Python | beta/api/v2/serializers.py | sentyaev/drf-versioning | 40caa5d3c1b40f0eb945a813bb9eecdd4640bf0e | [
"MIT"
] | 7 | 2021-01-01T05:48:11.000Z | 2022-01-11T15:41:49.000Z | beta/api/v2/serializers.py | sentyaev/drf-versioning | 40caa5d3c1b40f0eb945a813bb9eecdd4640bf0e | [
"MIT"
] | 5 | 2021-03-19T00:58:49.000Z | 2021-09-22T18:45:34.000Z | beta/api/v2/serializers.py | sentyaev/drf-versioning | 40caa5d3c1b40f0eb945a813bb9eecdd4640bf0e | [
"MIT"
] | null | null | null | from rest_framework import serializers
from beta.models import Beta
class BetaSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = Beta
fields = ('url', 'version1', 'version2')
| 21.9 | 61 | 0.721461 | 22 | 219 | 7.136364 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011364 | 0.196347 | 219 | 9 | 62 | 24.333333 | 0.880682 | 0 | 0 | 0 | 0 | 0 | 0.086758 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
5de456df43bb1e1695b5335d01ba6bc83f054e20 | 295 | py | Python | riskGame/classes/agent/passive_agent.py | AmrHendy/RiskGame | c7f9ac86de6118e6522ae3c60b36b914fafad946 | [
"MIT"
] | 4 | 2018-12-14T04:19:10.000Z | 2020-11-22T20:52:45.000Z | riskGame/classes/agent/passive_agent.py | AmrHendy/RiskGameWithAI | c7f9ac86de6118e6522ae3c60b36b914fafad946 | [
"MIT"
] | 1 | 2018-12-14T12:06:49.000Z | 2018-12-21T15:03:53.000Z | riskGame/classes/agent/passive_agent.py | AmrHendy/RiskGameWithAI | c7f9ac86de6118e6522ae3c60b36b914fafad946 | [
"MIT"
] | 4 | 2018-12-14T13:58:20.000Z | 2021-08-18T23:27:20.000Z | from riskGame.classes.agent.agent import Agent
from riskGame.classes.heuristic.bonus.place_bonus_passive import PlaceBonusPassive
class Passive(Agent):
def __init__(self, place_bonus_heuristic=PlaceBonusPassive()):
super(Passive, self).__init__(place_bonus_heuristic, None, None)
| 32.777778 | 82 | 0.80678 | 36 | 295 | 6.222222 | 0.444444 | 0.133929 | 0.169643 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108475 | 295 | 8 | 83 | 36.875 | 0.851711 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.8 | 0.4 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 4 |
5df6c5d054f4f94b42c29975274b205a3f90f7fc | 137 | py | Python | app/models/user.py | AlwaysMessy/steam-fun | e9d4796738ad6df9534d24ce787acc8f45206a31 | [
"MIT"
] | null | null | null | app/models/user.py | AlwaysMessy/steam-fun | e9d4796738ad6df9534d24ce787acc8f45206a31 | [
"MIT"
] | null | null | null | app/models/user.py | AlwaysMessy/steam-fun | e9d4796738ad6df9534d24ce787acc8f45206a31 | [
"MIT"
] | null | null | null | from extensions import db
class User(db.Model):
id = db.Column(db.Integer, primary_key=True)
username = db.Column(db.String(20)) | 27.4 | 48 | 0.715328 | 22 | 137 | 4.409091 | 0.727273 | 0.164948 | 0.206186 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017241 | 0.153285 | 137 | 5 | 49 | 27.4 | 0.818966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
f8dc024c55061dbba46c0fe74cee9ea9f5728667 | 816 | py | Python | Python/lab1 [1-19]/tz17.py | da-foxbite/KSU121 | 133637abb4f465aeecb845e6735ba383a2fdd689 | [
"MIT"
] | 3 | 2019-09-23T06:06:30.000Z | 2020-02-24T10:22:26.000Z | Python/lab1 [1-19]/tz17.py | da-foxbite/KSU141 | 133637abb4f465aeecb845e6735ba383a2fdd689 | [
"MIT"
] | null | null | null | Python/lab1 [1-19]/tz17.py | da-foxbite/KSU141 | 133637abb4f465aeecb845e6735ba383a2fdd689 | [
"MIT"
] | 1 | 2020-10-26T11:00:22.000Z | 2020-10-26T11:00:22.000Z | # 141, Суптеля Владислав
# Дата: 20.02.20
# 17. Швидкість першого автомобіля V1 км/год, другого - V2 км/год, відстань між ними S км.
# Визначити відстань між ними через T годин, якщо автомобілі спочатку рухаються назустріч один одному.
# Дана відстань рівна модулю різниці початкової відстані і загального шляху, пройден... | 74.181818 | 201 | 0.723039 | 129 | 816 | 4.581395 | 0.496124 | 0.050761 | 0.101523 | 0.094755 | 0.507614 | 0.507614 | 0.507614 | 0.507614 | 0.507614 | 0.507614 | 0 | 0.02845 | 0.13848 | 816 | 10 | 202 | 81.6 | 0.810811 | 0.452206 | 0 | 0 | 0 | 1 | 0.761364 | 0.047727 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0.666667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
f8edcd3e84edf61fdb013d455b4392c929f2ff77 | 87 | py | Python | apps/cuenta/apps.py | mariomtzjr/podemos_test | 5efaf02a19aa8c4849e3ad0108546e95af524126 | [
"MIT"
] | null | null | null | apps/cuenta/apps.py | mariomtzjr/podemos_test | 5efaf02a19aa8c4849e3ad0108546e95af524126 | [
"MIT"
] | 8 | 2021-03-30T13:39:24.000Z | 2022-03-12T00:36:15.000Z | apps/cuenta/apps.py | mariomtzjr/podemos_test | 5efaf02a19aa8c4849e3ad0108546e95af524126 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class CuentaConfig(AppConfig):
name = 'cuenta'
| 14.5 | 33 | 0.747126 | 10 | 87 | 6.5 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172414 | 87 | 5 | 34 | 17.4 | 0.902778 | 0 | 0 | 0 | 0 | 0 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
5d0200ece0a6611c71029e4acaa1db7aa5eca79e | 81 | py | Python | practice-app/obj/apps.py | bounswe/bounswe2019group9 | eb0392c7c0bd113923dc3e146d99c4e7303dd90e | [
"MIT"
] | 10 | 2019-02-13T14:48:50.000Z | 2022-03-15T09:30:11.000Z | practice-app/obj/apps.py | bounswe/bounswe2019group9 | eb0392c7c0bd113923dc3e146d99c4e7303dd90e | [
"MIT"
] | 288 | 2019-02-13T14:42:11.000Z | 2021-02-23T13:13:00.000Z | practice-app/obj/apps.py | bounswe/bounswe2019group9 | eb0392c7c0bd113923dc3e146d99c4e7303dd90e | [
"MIT"
] | 5 | 2019-02-15T15:56:27.000Z | 2022-03-15T09:30:25.000Z | from django.apps import AppConfig
class ObjConfig(AppConfig):
name = 'obj'
| 13.5 | 33 | 0.728395 | 10 | 81 | 5.9 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185185 | 81 | 5 | 34 | 16.2 | 0.893939 | 0 | 0 | 0 | 0 | 0 | 0.037037 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
5d0caade93f8ff71511cedd48b234a6b46ac30eb | 58 | py | Python | compile.py | mwong009/mtltrajet | ea3b02170030f3d076bafc79cb10d9c00d17f499 | [
"MIT"
] | 1 | 2020-07-21T14:55:21.000Z | 2020-07-21T14:55:21.000Z | compile.py | LiTrans/ML-MDC | f6cd45749c83304498ce320852faa5080fb510c5 | [
"MIT"
] | null | null | null | compile.py | LiTrans/ML-MDC | f6cd45749c83304498ce320852faa5080fb510c5 | [
"MIT"
] | 2 | 2018-08-31T16:26:23.000Z | 2020-01-02T15:19:32.000Z | from utility import SetupH5PY
SetupH5PY.compile_dataset() | 19.333333 | 29 | 0.862069 | 7 | 58 | 7 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037736 | 0.086207 | 58 | 3 | 30 | 19.333333 | 0.886792 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
5d3d1de528a441b1439376bc6279c3bbae524f37 | 1,095 | py | Python | web3/miner.py | pjryan93/web3.py | e066452a7b0e78d6cb8a9462532d169de901ef99 | [
"MIT"
] | 326 | 2016-04-29T21:51:06.000Z | 2022-03-31T03:20:54.000Z | web3/miner.py | pjryan93/web3.py | e066452a7b0e78d6cb8a9462532d169de901ef99 | [
"MIT"
] | 283 | 2016-04-15T16:41:31.000Z | 2017-11-28T16:41:36.000Z | web3/miner.py | pjryan93/web3.py | e066452a7b0e78d6cb8a9462532d169de901ef99 | [
"MIT"
] | 146 | 2016-04-14T16:27:54.000Z | 2021-10-03T13:31:07.000Z | from web3.module import (
Module,
)
class Miner(Module):
@property
def hashrate(self):
return self.web3.manager.request_blocking("eth_hashrate", [])
def makeDAG(self, number):
return self.web3.manager.request_blocking("miner_makeDag", [number])
def setExtra(self, extra):
... | 28.815789 | 84 | 0.67032 | 122 | 1,095 | 5.836066 | 0.245902 | 0.126404 | 0.176966 | 0.265449 | 0.533708 | 0.533708 | 0.533708 | 0.189607 | 0 | 0 | 0 | 0.011547 | 0.209132 | 1,095 | 37 | 85 | 29.594595 | 0.810624 | 0 | 0 | 0.074074 | 0 | 0 | 0.118721 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.037037 | 0.333333 | 0.740741 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
5d48480dddd1c1dcb3ea46c3e4c92fc1fed2bbe3 | 180 | py | Python | LabVIEW/Projects/Paul's Video Viewer/builds/Depth Comparator/python_code/setup.py | iggy12345/emerson_seed_object_detection | 121c6fe55fb4c903cb2c05f12077c3940973eadc | [
"Apache-2.0"
] | 1 | 2019-03-18T15:16:18.000Z | 2019-03-18T15:16:18.000Z | LabVIEW/Projects/Paul's Video Viewer/builds/Depth Comparator/python_code/setup.py | iggy12345/emerson_seed_object_detection | 121c6fe55fb4c903cb2c05f12077c3940973eadc | [
"Apache-2.0"
] | 35 | 2020-01-28T22:10:25.000Z | 2022-03-11T23:43:16.000Z | LabVIEW/Projects/Paul's Video Viewer/builds/Depth Comparator/python_code/setup.py | iggy12345/emerson_seed_object_detection | 121c6fe55fb4c903cb2c05f12077c3940973eadc | [
"Apache-2.0"
] | null | null | null | from distutils.core import setup
from Cython.Build import cythonize
import numpy as np
setup(
ext_modules=cythonize('distribution.pyx'),
include_dirs=[np.get_include()]
) | 20 | 46 | 0.766667 | 25 | 180 | 5.4 | 0.72 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138889 | 180 | 9 | 47 | 20 | 0.870968 | 0 | 0 | 0 | 0 | 0 | 0.088398 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.428571 | 0 | 0.428571 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
5d48c29fb341e66bbd6065b676226117b8f0336b | 103 | py | Python | apps/subacc/__init__.py | ekivemark/BlueButtonUser | 096cf439cd0c4ccb3d16b0efebf1c34fd3fb8939 | [
"Apache-2.0"
] | 1 | 2020-10-29T07:29:49.000Z | 2020-10-29T07:29:49.000Z | apps/subacc/__init__.py | ekivemark/BlueButtonUser | 096cf439cd0c4ccb3d16b0efebf1c34fd3fb8939 | [
"Apache-2.0"
] | 7 | 2020-02-11T23:03:55.000Z | 2021-12-13T19:42:01.000Z | apps/subacc/__init__.py | ekivemark/BlueButtonUser | 096cf439cd0c4ccb3d16b0efebf1c34fd3fb8939 | [
"Apache-2.0"
] | 2 | 2018-10-06T21:45:51.000Z | 2020-10-10T16:10:36.000Z | """
bbofuser
FILE: __init__.py
Created: 8/3/15 4:50 PM
"""
__author__ = 'Mark Scrimshire:@ekivemark'
| 11.444444 | 41 | 0.68932 | 15 | 103 | 4.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079545 | 0.145631 | 103 | 8 | 42 | 12.875 | 0.636364 | 0.485437 | 0 | 0 | 0 | 0 | 0.604651 | 0.488372 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
5399398a134b1490ec79ab06ddb59240b8a74a53 | 76 | py | Python | server/server/logic/__init__.py | oSoc17/lopeningent_backend | 3e1c149038c3773f66dfbbc2f15ebd0692ecb4cd | [
"MIT"
] | 4 | 2017-07-04T15:18:59.000Z | 2017-07-08T10:48:37.000Z | djangoserver/server/logic/__init__.py | simonneuville/runamic_server | 661eb4c11ccfab4b2e669e688e123a2077c564d4 | [
"MIT"
] | 16 | 2017-07-04T15:36:41.000Z | 2017-10-18T07:47:45.000Z | server/server/logic/__init__.py | oSoc17/lopeningent_backend | 3e1c149038c3773f66dfbbc2f15ebd0692ecb4cd | [
"MIT"
] | 2 | 2020-06-11T23:48:03.000Z | 2020-06-17T23:09:53.000Z | """
This module contains all logic for generating the dynamic data.
"""
| 19 | 67 | 0.697368 | 10 | 76 | 5.3 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210526 | 76 | 3 | 68 | 25.333333 | 0.883333 | 0.828947 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
53d1f9c0375bf37736add68534288eeb47890d6d | 156 | py | Python | payfast/urls.py | HileniNuugonya/django-payfast | 225e3a9ce2621916b78dae84022ec9d0c4cdd224 | [
"MIT"
] | 9 | 2019-07-18T09:14:20.000Z | 2021-04-10T03:55:14.000Z | payfast/urls.py | HileniNuugonya/django-payfast | 225e3a9ce2621916b78dae84022ec9d0c4cdd224 | [
"MIT"
] | 13 | 2017-11-20T21:01:11.000Z | 2018-06-29T10:12:24.000Z | payfast/urls.py | HileniNuugonya/django-payfast | 225e3a9ce2621916b78dae84022ec9d0c4cdd224 | [
"MIT"
] | 16 | 2019-08-06T10:42:25.000Z | 2021-11-02T12:37:35.000Z | from django.conf.urls import url
from payfast.views import notify_handler
urlpatterns = [
url('^notify/$', notify_handler, name='payfast_notify'),
]
| 17.333333 | 60 | 0.737179 | 20 | 156 | 5.6 | 0.6 | 0.232143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141026 | 156 | 8 | 61 | 19.5 | 0.835821 | 0 | 0 | 0 | 0 | 0 | 0.147436 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
53eae983ddce0ffe73919182c7ab359bd7717d9d | 245 | py | Python | src/skymusic/renderers/song_renderers/__init__.py | sky-music/sky-python-music-sheet-maker | df34fc3753dd79884f90b9fd9ee00123c17b43bc | [
"MIT"
] | 23 | 2019-09-03T19:51:36.000Z | 2021-10-12T11:54:54.000Z | src/skymusic/renderers/song_renderers/__init__.py | sky-music/sky-python-music-sheet-maker | df34fc3753dd79884f90b9fd9ee00123c17b43bc | [
"MIT"
] | 148 | 2019-09-16T05:36:20.000Z | 2022-03-13T14:41:11.000Z | src/skymusic/renderers/song_renderers/__init__.py | sky-music/sky-python-music-sheet-maker | df34fc3753dd79884f90b9fd9ee00123c17b43bc | [
"MIT"
] | 21 | 2019-10-08T13:44:03.000Z | 2021-08-31T13:42:47.000Z | from . import song_renderer, html_sr, svg_sr, png_sr, midi_sr, skyjson_sr, ascii_sr
__all__ = [song_renderer, html_sr, svg_sr, png_sr, midi_sr, skyjson_sr, ascii_sr]
import os, sys
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
| 27.222222 | 83 | 0.771429 | 44 | 245 | 3.795455 | 0.431818 | 0.143713 | 0.191617 | 0.215569 | 0.598802 | 0.598802 | 0.598802 | 0.598802 | 0.598802 | 0.598802 | 0 | 0 | 0.110204 | 245 | 8 | 84 | 30.625 | 0.766055 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
53fa4ab58800d2c50e32dd7f6a6aedf7365b11a1 | 26 | py | Python | watches/__init__.py | ViaQ/watches-cli | 25fc4d085798366cc676ebe346da43dd649e4681 | [
"Apache-2.0"
] | 1 | 2016-11-22T16:00:28.000Z | 2016-11-22T16:00:28.000Z | watches/__init__.py | lukas-vlcek/watches-cli | 25fc4d085798366cc676ebe346da43dd649e4681 | [
"Apache-2.0"
] | 30 | 2016-11-30T09:10:17.000Z | 2017-06-07T12:33:46.000Z | watches/__init__.py | lukas-vlcek/watches-cli | 25fc4d085798366cc676ebe346da43dd649e4681 | [
"Apache-2.0"
] | 1 | 2016-12-06T14:52:29.000Z | 2016-12-06T14:52:29.000Z | __version__ = '1.0.4-dev'
| 13 | 25 | 0.653846 | 5 | 26 | 2.6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 0.115385 | 26 | 1 | 26 | 26 | 0.434783 | 0 | 0 | 0 | 0 | 0 | 0.346154 | 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 | 0 | 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 | 4 |
9900dceab572d32ea72112175541505bef63db51 | 162 | py | Python | src/BubotObj/OcfDevice/OcfDevice.py | businka/Bubot_AdminPanel | 4195b63d9d9253cfdc41366befc2c7bb6be2267b | [
"MIT"
] | null | null | null | src/BubotObj/OcfDevice/OcfDevice.py | businka/Bubot_AdminPanel | 4195b63d9d9253cfdc41366befc2c7bb6be2267b | [
"MIT"
] | 2 | 2020-11-14T13:19:46.000Z | 2021-02-23T21:13:23.000Z | src/BubotObj/OcfDevice/OcfDevice.py | businka/bubot_AdminPanel | e2d080a72c333b6d93f324bcaad6cdf40318f672 | [
"MIT"
] | null | null | null | from Bubot.Core.Obj import Obj
class OcfDevice(Obj):
name = 'OcfDevice'
@property
def db(self):
return 'Bubot'
# todo полнотекстовый поиск | 14.727273 | 30 | 0.654321 | 20 | 162 | 5.3 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.253086 | 162 | 11 | 31 | 14.727273 | 0.876033 | 0.154321 | 0 | 0 | 0 | 0 | 0.102941 | 0 | 0 | 0 | 0 | 0.090909 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0.166667 | 0.833333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
54c91f4ce0c7300382bb1cb713a5e8f21bdeff49 | 189 | py | Python | RefactorRenameCommand.py | jayfunk/atom-javascript-refactor | f124272d7f3332f5025021ec335d31b27c59d2f8 | [
"MIT"
] | 5 | 2016-08-17T15:08:34.000Z | 2020-03-28T13:34:13.000Z | RefactorRenameCommand.py | jayfunk/atom-javascript-refactor | f124272d7f3332f5025021ec335d31b27c59d2f8 | [
"MIT"
] | 8 | 2016-08-17T14:58:39.000Z | 2017-06-27T03:39:26.000Z | RefactorRenameCommand.py | skateshop/sublime-javascript-refactor | f124272d7f3332f5025021ec335d31b27c59d2f8 | [
"MIT"
] | null | null | null | Hello, World!import sublime
import sublime_plugin
class RefactorRenameCommand(sublime_plugin.TextCommand):
def run(self, edit, **args):
self.view.insert(edit, 0, "Hello, World!")
| 23.625 | 56 | 0.746032 | 24 | 189 | 5.791667 | 0.666667 | 0.143885 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006098 | 0.132275 | 189 | 7 | 57 | 27 | 0.841463 | 0 | 0 | 0 | 0 | 0 | 0.068783 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.4 | null | null | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
07366e052793ec4493aecdd616121d603522130d | 116 | py | Python | color.py | jkrauze/minicontra | ac9b669f648009c2f75ef67da54fc07fbc96f420 | [
"MIT"
] | null | null | null | color.py | jkrauze/minicontra | ac9b669f648009c2f75ef67da54fc07fbc96f420 | [
"MIT"
] | null | null | null | color.py | jkrauze/minicontra | ac9b669f648009c2f75ef67da54fc07fbc96f420 | [
"MIT"
] | null | null | null | BLACK = 0, 0, 0
WHITE = 200, 200, 200
GRAY = 100, 100, 100
GREEN = 50, 200, 50
RED = 200, 50, 50
BLUE = 50, 50, 200
| 16.571429 | 21 | 0.586207 | 24 | 116 | 2.833333 | 0.416667 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.488372 | 0.258621 | 116 | 6 | 22 | 19.333333 | 0.302326 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
0742ea7315878413af8f7438df218a80112599b6 | 245,922 | py | Python | muti_ddi_parse_from_xml.py | NWPU-903PR/MTDDI | ee4b7f9641aa55681757136f86bae540b046f40b | [
"MIT"
] | 3 | 2021-03-24T07:31:13.000Z | 2021-11-15T11:43:01.000Z | muti_ddi_parse_from_xml.py | NWPU-903PR/MTDDI | ee4b7f9641aa55681757136f86bae540b046f40b | [
"MIT"
] | 1 | 2021-11-25T12:37:23.000Z | 2021-11-25T12:37:23.000Z | muti_ddi_parse_from_xml.py | NWPU-903PR/MTDDI | ee4b7f9641aa55681757136f86bae540b046f40b | [
"MIT"
] | 3 | 2021-04-20T04:31:42.000Z | 2021-12-06T21:25:35.000Z | # -*- coding: UTF-8 -*-
from lxml import etree
judge1_1=" can cause a decrease in the absorption of "
judge1_2=" resulting in a reduced serum concentration and potentially a decrease in efficacy."
#Drug a can cause a decrease in the absorption of Drug b resulting in a reduced serum concentration and potentially a... | 51.948035 | 164 | 0.562719 | 32,280 | 245,922 | 3.972026 | 0.038259 | 0.137704 | 0.083881 | 0.086728 | 0.850691 | 0.839233 | 0.806009 | 0.776738 | 0.666838 | 0.492868 | 0 | 0.131918 | 0.305117 | 245,922 | 4,733 | 165 | 51.959011 | 0.618374 | 0.118749 | 0 | 0.363906 | 0 | 0.00099 | 0.135803 | 0.000872 | 0 | 0 | 0 | 0 | 0 | 1 | 0.00099 | false | 0 | 0.00033 | 0 | 0.00198 | 0.00132 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
0760fc1b9829dee21a4f3cd5e7885a3a622bd1cd | 165 | py | Python | elgamalre/urls.py | irahulgulati/Cryptoic | bd4a6e3d8dd9c383b350ca3496c4144c9a5f7200 | [
"MIT"
] | 1 | 2020-02-29T23:38:46.000Z | 2020-02-29T23:38:46.000Z | elgamalre/urls.py | irahulgulati/Cryptoic | bd4a6e3d8dd9c383b350ca3496c4144c9a5f7200 | [
"MIT"
] | 1 | 2020-03-23T00:00:41.000Z | 2020-03-23T00:00:41.000Z | elgamalre/urls.py | irahulgulati/Cryptoic | bd4a6e3d8dd9c383b350ca3496c4144c9a5f7200 | [
"MIT"
] | null | null | null | from django.urls import path
from elgamalre.views import input_value_view
app_name = 'elgamalre'
urlpatterns = [
path('',input_value_view ,name = 'elgamalre'),
] | 27.5 | 50 | 0.757576 | 22 | 165 | 5.454545 | 0.590909 | 0.166667 | 0.233333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 165 | 6 | 51 | 27.5 | 0.839161 | 0 | 0 | 0 | 0 | 0 | 0.108434 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
4ad0233cdfdb0a730d3b96bccc502aa5d79097a1 | 1,717 | py | Python | services/core-api/tests/utils/test_date_helper.py | bcgov/mds | 6c427a66a5edb4196222607291adef8fd6677038 | [
"Apache-2.0"
] | 25 | 2018-07-09T19:04:37.000Z | 2022-03-15T17:27:10.000Z | services/core-api/tests/utils/test_date_helper.py | areyeslo/mds | e8c38e593e09b78e2a57009c0d003d6c4bfa32e6 | [
"Apache-2.0"
] | 983 | 2018-04-25T20:08:07.000Z | 2022-03-31T21:45:20.000Z | services/core-api/tests/utils/test_date_helper.py | areyeslo/mds | e8c38e593e09b78e2a57009c0d003d6c4bfa32e6 | [
"Apache-2.0"
] | 58 | 2018-05-15T22:35:50.000Z | 2021-11-29T19:40:52.000Z | import pytest, datetime
from app.date_time_helper import get_duration_text
def test_date_difference_month():
start_date = datetime.date(2020, 1, 1)
end_date = datetime.date(2020, 2, 1)
actual = get_duration_text(start_date, end_date)
assert "1 Month " == actual
def test_date_difference_day():
... | 25.626866 | 54 | 0.694234 | 262 | 1,717 | 4.267176 | 0.141221 | 0.128801 | 0.22898 | 0.214669 | 0.849732 | 0.682469 | 0.66458 | 0.642218 | 0.642218 | 0.603757 | 0 | 0.078374 | 0.197437 | 1,717 | 67 | 55 | 25.626866 | 0.732946 | 0 | 0 | 0.357143 | 0 | 0 | 0.044237 | 0 | 0 | 0 | 0 | 0 | 0.190476 | 1 | 0.190476 | false | 0 | 0.047619 | 0 | 0.238095 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
4adccb090a057d9d523a1dcdf92113c3ac9043ba | 19 | py | Python | login.py | hanjinjian/TestGit | 8fa7b46d80c0d0bca24887dc37eb76c07aa51ddc | [
"MIT"
] | null | null | null | login.py | hanjinjian/TestGit | 8fa7b46d80c0d0bca24887dc37eb76c07aa51ddc | [
"MIT"
] | null | null | null | login.py | hanjinjian/TestGit | 8fa7b46d80c0d0bca24887dc37eb76c07aa51ddc | [
"MIT"
] | null | null | null | num = 1
num1 = 11
| 4.75 | 9 | 0.526316 | 4 | 19 | 2.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 0.368421 | 19 | 3 | 10 | 6.333333 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
4af15d6f1d67ec7aee1350916dc8c40951f2ce8c | 78 | py | Python | pre_commit_hooks/loaderon_hooks/tests/testing_samples/check_class_docstring_samples/docstring_error_6.py | alvaroscelza/pre-commit-hooks | fc9a7a376dc733a1e3cc00b5ed35936bcb3c3b3b | [
"MIT"
] | null | null | null | pre_commit_hooks/loaderon_hooks/tests/testing_samples/check_class_docstring_samples/docstring_error_6.py | alvaroscelza/pre-commit-hooks | fc9a7a376dc733a1e3cc00b5ed35936bcb3c3b3b | [
"MIT"
] | null | null | null | pre_commit_hooks/loaderon_hooks/tests/testing_samples/check_class_docstring_samples/docstring_error_6.py | alvaroscelza/pre-commit-hooks | fc9a7a376dc733a1e3cc00b5ed35936bcb3c3b3b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
class TestingClass(object): # SHOULD FAIL
pass
| 13 | 42 | 0.602564 | 9 | 78 | 5.222222 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016667 | 0.230769 | 78 | 5 | 43 | 15.6 | 0.766667 | 0.423077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
4af6f4f2f3b2f83a727f88817798ea2661168bfc | 43 | py | Python | 001257DFedorovPythonBasics/DFedorov001257PythonBasicsPres07p31_dictGener_20200502.py | SafonovMikhail/python_000577 | 739f764e80f1ca354386f00b8e9db1df8c96531d | [
"Apache-2.0"
] | null | null | null | 001257DFedorovPythonBasics/DFedorov001257PythonBasicsPres07p31_dictGener_20200502.py | SafonovMikhail/python_000577 | 739f764e80f1ca354386f00b8e9db1df8c96531d | [
"Apache-2.0"
] | null | null | null | 001257DFedorovPythonBasics/DFedorov001257PythonBasicsPres07p31_dictGener_20200502.py | SafonovMikhail/python_000577 | 739f764e80f1ca354386f00b8e9db1df8c96531d | [
"Apache-2.0"
] | null | null | null | d = {x: x ** 2 for x in range(5)}
print(d)
| 14.333333 | 33 | 0.511628 | 11 | 43 | 2 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 0.255814 | 43 | 2 | 34 | 21.5 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
ab0a8e8dfa32b2c7b0feb2b95fec16b8d7326646 | 710 | py | Python | .env/Lib/site-packages/aws_cdk/aws_lambda/_jsii/__init__.py | mikeccheung/CloudResumeChallengeBE | 4e5d1c79303af6278324280bbe54b3dc7f44c683 | [
"MIT"
] | null | null | null | .env/Lib/site-packages/aws_cdk/aws_lambda/_jsii/__init__.py | mikeccheung/CloudResumeChallengeBE | 4e5d1c79303af6278324280bbe54b3dc7f44c683 | [
"MIT"
] | null | null | null | .env/Lib/site-packages/aws_cdk/aws_lambda/_jsii/__init__.py | mikeccheung/CloudResumeChallengeBE | 4e5d1c79303af6278324280bbe54b3dc7f44c683 | [
"MIT"
] | null | null | null | import abc
import builtins
import datetime
import enum
import typing
import jsii
import jsii.compat
import publication
import aws_cdk.aws_cloudwatch._jsii
import aws_cdk.aws_codeguruprofiler._jsii
import aws_cdk.aws_ec2._jsii
import aws_cdk.aws_efs._jsii
import aws_cdk.aws_events._jsii
import aws_cdk.aws_iam._jsii
im... | 20.882353 | 81 | 0.811268 | 119 | 710 | 4.378151 | 0.310924 | 0.24952 | 0.276392 | 0.337812 | 0.385797 | 0.080614 | 0 | 0 | 0 | 0 | 0 | 0.020281 | 0.097183 | 710 | 33 | 82 | 21.515152 | 0.792512 | 0 | 0 | 0 | 0 | 0 | 0.095775 | 0.03662 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.