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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8bbfbf6636d3999d937930ee3a723c384301e4a4 | 346 | py | Python | src/octopus/transport/gsioc.py | gar-syn/congo-lab | dc50af4e35903556bc8bc34dc23a7a708c1f5422 | [
"MIT"
] | 1 | 2021-02-02T11:27:25.000Z | 2021-02-02T11:27:25.000Z | src/octopus/transport/gsioc.py | gar-syn/congo-lab | dc50af4e35903556bc8bc34dc23a7a708c1f5422 | [
"MIT"
] | 18 | 2021-02-01T11:35:15.000Z | 2021-08-03T14:23:38.000Z | src/octopus/transport/gsioc.py | gar-syn/congo-lab | dc50af4e35903556bc8bc34dc23a7a708c1f5422 | [
"MIT"
] | null | null | null | # Twisted Imports
from twisted.internet import defer
class Slave (object):
def __init__ (self, immediate_command, buffered_command, name):
self.immediate_command = immediate_command
self.buffered_command = buffered_command
self.name = name
def connect (self, protocolFactory):
r... | 28.833333 | 67 | 0.719653 | 39 | 346 | 6.128205 | 0.512821 | 0.200837 | 0.167364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210983 | 346 | 11 | 68 | 31.454545 | 0.875458 | 0.043353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.125 | 0.625 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
8bc8cdcca8e02d2b74049a8b19cf60583684eca2 | 296 | py | Python | curso/PY2/for/ex7.py | smrsassa/Studying-Python | a5acbce42b85bdd6aea8058ca323fbbd12ce5c22 | [
"MIT"
] | 1 | 2019-10-21T18:19:13.000Z | 2019-10-21T18:19:13.000Z | curso/PY2/for/ex7.py | smrsassa/Studying-python | a5acbce42b85bdd6aea8058ca323fbbd12ce5c22 | [
"MIT"
] | null | null | null | curso/PY2/for/ex7.py | smrsassa/Studying-python | a5acbce42b85bdd6aea8058ca323fbbd12ce5c22 | [
"MIT"
] | null | null | null | ###exercicio 52
n = int(input('digite um numero: '))
if n == 2 or n == 3 or n == 5:
print ('{} é um numero primo'.format(n))
elif n%2 == 0 or n%3 == 0 or n%5 == 0:
print ('{} não é um numero primo'.format(n))
else:
print ('{} é um numero primo'.format(n))
print ('Fim!!!') | 32.888889 | 52 | 0.527027 | 54 | 296 | 2.888889 | 0.407407 | 0.205128 | 0.173077 | 0.269231 | 0.467949 | 0.467949 | 0.333333 | 0 | 0 | 0 | 0 | 0.050228 | 0.260135 | 296 | 9 | 53 | 32.888889 | 0.6621 | 0.040541 | 0 | 0.25 | 0 | 0 | 0.312057 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 1 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
8bd41c38f0c16f2defa63f2cf34cc3689a723d49 | 85 | py | Python | pytorch_template/models/optimizer/__init__.py | nextbitlabs/pytorch-template | d6a5f4cc2d323a4d115b851d523d565e69825c4a | [
"Apache-2.0"
] | 10 | 2020-02-10T11:27:54.000Z | 2021-08-17T02:49:35.000Z | pytorch_template/models/optimizer/__init__.py | nextbitlabs/pytorch-template | d6a5f4cc2d323a4d115b851d523d565e69825c4a | [
"Apache-2.0"
] | 2 | 2020-02-10T11:31:03.000Z | 2020-02-10T13:49:18.000Z | pytorch_template/models/optimizer/__init__.py | nextbitlabs/pytorch-template | d6a5f4cc2d323a4d115b851d523d565e69825c4a | [
"Apache-2.0"
] | null | null | null | from .lookahead import Lookahead
from .radam import RAdam
from .ranger import Ranger
| 21.25 | 32 | 0.823529 | 12 | 85 | 5.833333 | 0.416667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141176 | 85 | 3 | 33 | 28.333333 | 0.958904 | 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 |
8be472e04826933c1405461236deb27251b45019 | 192 | py | Python | critsapi/exceptions.py | Magicked/critsapi | 65ed5f03578b70d05c63c59883d758bf7ca853bc | [
"Apache-2.0"
] | null | null | null | critsapi/exceptions.py | Magicked/critsapi | 65ed5f03578b70d05c63c59883d758bf7ca853bc | [
"Apache-2.0"
] | 1 | 2018-05-08T16:44:02.000Z | 2018-05-08T16:44:02.000Z | critsapi/exceptions.py | Magicked/critsapi | 65ed5f03578b70d05c63c59883d758bf7ca853bc | [
"Apache-2.0"
] | 3 | 2017-06-07T15:47:30.000Z | 2018-08-24T15:37:52.000Z | class CRITsOperationalError(Exception):
""" Critical error oh shiiiii"""
pass
class CRITsInvalidTypeError(Exception):
"""Raised when an invalid TLO type is specified"""
pass
| 21.333333 | 54 | 0.713542 | 20 | 192 | 6.85 | 0.85 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192708 | 192 | 8 | 55 | 24 | 0.883871 | 0.364583 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 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 |
8be5299eaf39d739e6a7a3d2ee079ec4b5b28788 | 54 | py | Python | 04_datacamp/solutions/05_solutions.py | HirahTang/datascience_starter_course | a4429db9ae1795eaf52b795d16897466d769c40c | [
"CC0-1.0"
] | 3 | 2020-09-06T06:01:41.000Z | 2020-09-23T19:03:04.000Z | 02_pandas/solutions/05_solutions.py | glemaitre/smob_paristech_12_2018 | b669206f204a3e57e71efb3dd22e2ffbc4e0a309 | [
"CC0-1.0"
] | 4 | 2019-02-22T21:37:20.000Z | 2019-03-12T13:20:29.000Z | 02_pandas/solutions/05_solutions.py | glemaitre/smob_paristech_12_2018 | b669206f204a3e57e71efb3dd22e2ffbc4e0a309 | [
"CC0-1.0"
] | 5 | 2020-10-26T05:03:09.000Z | 2022-03-24T04:22:09.000Z | df[(df['Sex'] == 'male') & (df['Age'] > 60)].shape[0]
| 27 | 53 | 0.444444 | 9 | 54 | 2.666667 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06383 | 0.12963 | 54 | 1 | 54 | 54 | 0.446809 | 0 | 0 | 0 | 0 | 0 | 0.185185 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
47516a7f74fef5bc3b598ffc54214db46d8d7b85 | 77 | py | Python | src/schema/anniversary/__init__.py | week-with-me/fastapi-mongodb | c1b319a5f93a4a5c9c7800506fd7a1313de38ac1 | [
"MIT"
] | 1 | 2021-12-21T15:01:28.000Z | 2021-12-21T15:01:28.000Z | src/schema/anniversary/__init__.py | week-with-me/fastapi-mongodb | c1b319a5f93a4a5c9c7800506fd7a1313de38ac1 | [
"MIT"
] | null | null | null | src/schema/anniversary/__init__.py | week-with-me/fastapi-mongodb | c1b319a5f93a4a5c9c7800506fd7a1313de38ac1 | [
"MIT"
] | null | null | null | from src.schema.anniversary.crud import CreateAnniversary, UpdateAnniversary
| 38.5 | 76 | 0.883117 | 8 | 77 | 8.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064935 | 77 | 1 | 77 | 77 | 0.944444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
47754784c4b393000fdaea44c2e4714322e0aede | 181 | py | Python | checkout/admin.py | maurosantosdev/lojavirtual | 636c155449169e762db9c4897596136d1f479b92 | [
"MIT"
] | null | null | null | checkout/admin.py | maurosantosdev/lojavirtual | 636c155449169e762db9c4897596136d1f479b92 | [
"MIT"
] | null | null | null | checkout/admin.py | maurosantosdev/lojavirtual | 636c155449169e762db9c4897596136d1f479b92 | [
"MIT"
] | null | null | null | # coding=utf-8
from django.contrib import admin
# Register your models here.
from .models import CartItem, Order, OrderItem
admin.site.register([CartItem, Order, OrderItem])
| 13.923077 | 49 | 0.756906 | 24 | 181 | 5.708333 | 0.666667 | 0.189781 | 0.321168 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006494 | 0.149171 | 181 | 12 | 50 | 15.083333 | 0.883117 | 0.21547 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
477bac8393d7da0d40b0b90186d33f288d20acf4 | 245 | py | Python | src/svqc/svqc/tests/constants.py | leipzig/gatk-sv | 96566cbbaf0f8f9c8452517b38eea1e5dd6ed33a | [
"BSD-3-Clause"
] | 76 | 2020-06-18T21:31:43.000Z | 2022-03-02T18:42:58.000Z | src/svqc/svqc/tests/constants.py | iamh2o/gatk-sv | bf3704bd1d705339577530e267cd4d1b2f77a17f | [
"BSD-3-Clause"
] | 195 | 2020-06-22T15:12:28.000Z | 2022-03-28T18:06:46.000Z | src/svqc/svqc/tests/constants.py | iamh2o/gatk-sv | bf3704bd1d705339577530e267cd4d1b2f77a17f | [
"BSD-3-Clause"
] | 39 | 2020-07-03T06:47:18.000Z | 2022-03-03T03:47:25.000Z | #!/usr/bin/env python
EXPECTED_NUM_TESTS = 4
METRICS_FILE_PATH = "./svqc/tests/test_metrics.txt"
CRITERIA_FILE_PATH = "./svqc/tests/test_criteria.txt"
EXPECTED_OUT_FILE_PATH = "./svqc/tests/test_out.txt"
OUT_FILE_PATH = "./svqc/tests/test.out"
| 30.625 | 53 | 0.771429 | 40 | 245 | 4.375 | 0.4 | 0.182857 | 0.274286 | 0.388571 | 0.548571 | 0.308571 | 0.308571 | 0 | 0 | 0 | 0 | 0.004405 | 0.073469 | 245 | 7 | 54 | 35 | 0.76652 | 0.081633 | 0 | 0 | 0 | 0 | 0.46875 | 0.46875 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
47859ac78b34f39c7544b211356e5d8f939bb1c2 | 103 | py | Python | Untitled Folder/lprint.py | UncleLincoln/trainee | eb9f4be00e80fddd0ab3d3e6ea9a20c55f5bcab8 | [
"MIT"
] | 36 | 2018-11-03T01:37:30.000Z | 2019-04-07T19:52:34.000Z | Untitled Folder/lprint.py | UncleLincoln/trainee | eb9f4be00e80fddd0ab3d3e6ea9a20c55f5bcab8 | [
"MIT"
] | 8 | 2020-11-13T19:06:32.000Z | 2022-01-13T03:24:20.000Z | Untitled Folder/lprint.py | BuErTech/trainee | eb9f4be00e80fddd0ab3d3e6ea9a20c55f5bcab8 | [
"MIT"
] | 86 | 2018-11-03T01:38:25.000Z | 2019-04-07T05:55:02.000Z |
def lprint(msg,*tuple):
print(msg)
if len(tuple)>1:
for obj in tuple:
print(obj)
print("结束") | 11.444444 | 23 | 0.621359 | 18 | 103 | 3.555556 | 0.666667 | 0.3125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012195 | 0.203884 | 103 | 9 | 24 | 11.444444 | 0.768293 | 0 | 0 | 0 | 0 | 0 | 0.019608 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.166667 | 0.666667 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
47a521629f14b5bdf8a489d3e9dcb4756cec05f9 | 99 | py | Python | dakara_server/internal/tests/models.py | DakaraProject/dakara-server | b28fc1a8561e431d562102932f3d6ff3607e545b | [
"MIT"
] | 4 | 2018-07-24T18:22:16.000Z | 2020-01-24T16:30:54.000Z | dakara_server/internal/tests/models.py | DakaraProject/dakara-server | b28fc1a8561e431d562102932f3d6ff3607e545b | [
"MIT"
] | 88 | 2017-11-04T08:58:02.000Z | 2022-03-30T11:39:08.000Z | dakara_server/internal/tests/models.py | DakaraProject/dakara-server | b28fc1a8561e431d562102932f3d6ff3607e545b | [
"MIT"
] | 1 | 2018-05-05T15:37:20.000Z | 2018-05-05T15:37:20.000Z | from django.db import models
class Reference(models.Model):
"""Dummy model used for tests"""
| 16.5 | 36 | 0.717172 | 14 | 99 | 5.071429 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171717 | 99 | 5 | 37 | 19.8 | 0.865854 | 0.262626 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
47c6077686bbf5cc3aed31c161995338bad7532a | 169 | py | Python | collector/app/models/hdfs/hdfs_info.py | ndo04343/Container_based-Hadoop-Distributed-System-Log-Analyzer | 884ea70c344023b10f0475fdc9d1640a6cf9a1e1 | [
"MIT"
] | 2 | 2021-07-30T03:11:01.000Z | 2021-07-30T06:15:48.000Z | collector/app/models/hdfs/hdfs_info.py | ndo04343/container-based-hadoop-distributed-system-log-analyzer | 884ea70c344023b10f0475fdc9d1640a6cf9a1e1 | [
"MIT"
] | 7 | 2021-08-11T12:47:32.000Z | 2021-08-16T10:09:12.000Z | collector/app/models/hdfs/hdfs_info.py | ndo04343/container-based-hadoop-distributed-system-log-analyzer | 884ea70c344023b10f0475fdc9d1640a6cf9a1e1 | [
"MIT"
] | 2 | 2021-08-17T07:58:56.000Z | 2021-08-17T07:59:19.000Z | from pydantic import BaseModel
class HdfsInfo(BaseModel):
size: int
used: int
available: int
usePercentage: int
email: str
datetime: str | 18.777778 | 30 | 0.650888 | 19 | 169 | 5.789474 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.295858 | 169 | 9 | 31 | 18.777778 | 0.92437 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.125 | 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 | 0 | 0 | 1 | 0 | 0 | 4 |
47cb5937cd43eb06270a6500740a3a232006b2d8 | 179 | py | Python | build/sources/hook-tkinterweb.py | PlayerG9/MassFiles | 63aa1c24109dcd9def9eb7691c337f1176731436 | [
"MIT"
] | 1 | 2021-06-28T12:35:09.000Z | 2021-06-28T12:35:09.000Z | build/sources/hook-tkinterweb.py | PlayerG9/MassFiles | 63aa1c24109dcd9def9eb7691c337f1176731436 | [
"MIT"
] | null | null | null | build/sources/hook-tkinterweb.py | PlayerG9/MassFiles | 63aa1c24109dcd9def9eb7691c337f1176731436 | [
"MIT"
] | null | null | null | """pyinstaller hook file.
"""
from PyInstaller.utils.hooks import collect_data_files, eval_statement
import os
datas = collect_data_files('tkinterweb', include_py_files=True)
| 17.9 | 70 | 0.798883 | 24 | 179 | 5.666667 | 0.75 | 0.161765 | 0.235294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106145 | 179 | 9 | 71 | 19.888889 | 0.85 | 0.122905 | 0 | 0 | 0 | 0 | 0.067114 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 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 |
7bd0864ebf0ccba4f864f3e5ea529e9c7962c012 | 448 | py | Python | TSIS6/17.py | ayazhan112/python- | fba09ecc25e11dbfb116f273838b13174f66126d | [
"MIT"
] | null | null | null | TSIS6/17.py | ayazhan112/python- | fba09ecc25e11dbfb116f273838b13174f66126d | [
"MIT"
] | null | null | null | TSIS6/17.py | ayazhan112/python- | fba09ecc25e11dbfb116f273838b13174f66126d | [
"MIT"
] | null | null | null | def make_bold(fn):
def wrapped():
return "<b>" + fn() + "</b>"
return wrapped
def make_italic(fn):
def wrapped():
return "<i>" + fn() + "</i>"
return wrapped
def make_underline(fn):
def wrapped():
return "<u>" + fn() + "</u>"
return wrapped
@make_bold
@ma... | 22.4 | 60 | 0.533482 | 58 | 448 | 4.017241 | 0.258621 | 0.090129 | 0.154506 | 0.23176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.270089 | 448 | 20 | 60 | 22.4 | 0.712538 | 0.09375 | 0 | 0.333333 | 0 | 0 | 0.083117 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.388889 | false | 0 | 0 | 0.222222 | 0.777778 | 0.055556 | 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 |
7bdb9d47b5f46fe5d2092a9a68275c1bf49df377 | 1,219 | py | Python | tests/v2/test_service_update_data.py | anbnyc/datadog-api-client-python | 162bd0c6f2523a809aec08a3197e85dc74b78c21 | [
"Apache-2.0"
] | null | null | null | tests/v2/test_service_update_data.py | anbnyc/datadog-api-client-python | 162bd0c6f2523a809aec08a3197e85dc74b78c21 | [
"Apache-2.0"
] | null | null | null | tests/v2/test_service_update_data.py | anbnyc/datadog-api-client-python | 162bd0c6f2523a809aec08a3197e85dc74b78c21 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
# This product includes software developed at Datadog (https://www.datadoghq.com/).
# Copyright 2019-Present Datadog, Inc.
import sys
import unittest
import datadog_api_client.v2
from datadog... | 31.25641 | 108 | 0.771124 | 136 | 1,219 | 6.735294 | 0.558824 | 0.054585 | 0.087336 | 0.098253 | 0.161572 | 0.161572 | 0.161572 | 0.087336 | 0 | 0 | 0 | 0.014479 | 0.150123 | 1,219 | 38 | 109 | 32.078947 | 0.869691 | 0.334701 | 0 | 0.157895 | 0 | 0 | 0.078086 | 0.028967 | 0 | 0 | 0 | 0.026316 | 0 | 1 | 0.157895 | false | 0.157895 | 0.368421 | 0 | 0.578947 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 4 |
7be0f25ba7936e96f61d5e70551d0e18dcfb67aa | 352 | py | Python | pygrading/exception.py | PhenomingZ/PyGrading | f6059c76d76c0f5bbc5dcda155fb6e454f980864 | [
"Apache-2.0"
] | 1 | 2020-01-20T15:23:09.000Z | 2020-01-20T15:23:09.000Z | pygrading/exception.py | PhenomingZ/PyGrading | f6059c76d76c0f5bbc5dcda155fb6e454f980864 | [
"Apache-2.0"
] | null | null | null | pygrading/exception.py | PhenomingZ/PyGrading | f6059c76d76c0f5bbc5dcda155fb6e454f980864 | [
"Apache-2.0"
] | null | null | null | """
Name: exception.py
Author: Charles Zhang <694556046@qq.com>
Propose: PyGrading exceptions
Coding: UTF-8
"""
class DataTypeError(Exception):
pass
class FunctionsTypeError(Exception):
pass
class FieldMissingError(Exception):
pass
class ExecError(Exception):
pass
class Functio... | 13.037037 | 44 | 0.701705 | 35 | 352 | 7.057143 | 0.628571 | 0.263158 | 0.291498 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035971 | 0.210227 | 352 | 26 | 45 | 13.538462 | 0.852518 | 0.292614 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
d03d4a011cccf3ace7bb91badbcc9f4e2e4189a5 | 3,947 | py | Python | Code/Plot_Video_Reconstruction.py | karenadam/Asynchrony-Increases-Efficiency | d6398cc79a7ec4142cbbfe2a63b9b2748fad5e7a | [
"MIT"
] | 1 | 2021-11-04T12:19:33.000Z | 2021-11-04T12:19:33.000Z | Code/Plot_Video_Reconstruction.py | karenadam/Asynchrony-Increases-Efficiency | d6398cc79a7ec4142cbbfe2a63b9b2748fad5e7a | [
"MIT"
] | null | null | null | Code/Plot_Video_Reconstruction.py | karenadam/Asynchrony-Increases-Efficiency | d6398cc79a7ec4142cbbfe2a63b9b2748fad5e7a | [
"MIT"
] | null | null | null | import matplotlib
import matplotlib.pyplot as plt
import pickle
To_Svg = True
if To_Svg:
figure_spike_sweep = "n_spikes_sweep.svg"
figure_tem_sweep ="n_tems_sweep.svg"
plt.rc('text', usetex=False)
plt.rc('text.latex', unicode = False)
plt.rc('svg',fonttype = 'none')
else:
figure_spike_sweep ... | 24.214724 | 83 | 0.661008 | 691 | 3,947 | 3.619392 | 0.16932 | 0.057577 | 0.041583 | 0.02519 | 0.834466 | 0.805678 | 0.716513 | 0.630148 | 0.614954 | 0.614954 | 0 | 0.049955 | 0.14796 | 3,947 | 162 | 84 | 24.364198 | 0.693726 | 0.115024 | 0 | 0.588785 | 0 | 0 | 0.151734 | 0.046532 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018692 | false | 0.018692 | 0.028037 | 0 | 0.046729 | 0.009346 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
d05de36e4a79a379a4ef5042264321992bfdb56e | 281 | py | Python | paddlennunet/experiment_planning/utils.py | szuboy/nnUNet-paddle | 93c38ac3f038cd5dcbc8bff378e9b49431252157 | [
"Apache-2.0"
] | 3 | 2021-05-18T14:06:48.000Z | 2021-09-25T13:57:40.000Z | paddlennunet/experiment_planning/utils.py | szuboy/paddle-nnUNet | 93c38ac3f038cd5dcbc8bff378e9b49431252157 | [
"Apache-2.0"
] | null | null | null | paddlennunet/experiment_planning/utils.py | szuboy/paddle-nnUNet | 93c38ac3f038cd5dcbc8bff378e9b49431252157 | [
"Apache-2.0"
] | null | null | null | # !/usr/bin/env python
# -*- coding:utf-8 -*-
# author: jeremy.zhang(szujeremy@gmail.com, Shenzhen University, China)
import json
import os
import pickle
import shutil
from collections import OrderedDict
from multiprocessing import Pool
import numpy as np
def crop():
pass
| 16.529412 | 71 | 0.75089 | 39 | 281 | 5.410256 | 0.820513 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004219 | 0.156584 | 281 | 16 | 72 | 17.5625 | 0.886076 | 0.395018 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | true | 0.111111 | 0.777778 | 0 | 0.888889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 4 |
d06c4ee5f68b71d5fc78021ecfd68debff9adc9b | 501 | py | Python | mmseg/models/__init__.py | vietawake/mmSegmentation | 1f643d6d81708ebf5726c48f66d02c70fe99fe00 | [
"Apache-2.0"
] | null | null | null | mmseg/models/__init__.py | vietawake/mmSegmentation | 1f643d6d81708ebf5726c48f66d02c70fe99fe00 | [
"Apache-2.0"
] | null | null | null | mmseg/models/__init__.py | vietawake/mmSegmentation | 1f643d6d81708ebf5726c48f66d02c70fe99fe00 | [
"Apache-2.0"
] | null | null | null | from .backbones import * # noqa: F401,F403
from .builder import (BACKBONES, HEADS, LOSSES, SEGMENTORS, build_backbone,
build_head, build_loss, build_segmentor)
from .decode_heads import * # noqa: F401,F403
from .losses import * # noqa: F401,F403
from .necks import * # noqa: F401,F403
fro... | 38.538462 | 76 | 0.666667 | 59 | 501 | 5.440678 | 0.305085 | 0.155763 | 0.218069 | 0.280374 | 0.741433 | 0.46729 | 0.46729 | 0.46729 | 0.46729 | 0.46729 | 0 | 0.075949 | 0.211577 | 501 | 12 | 77 | 41.75 | 0.736709 | 0.157685 | 0 | 0 | 0 | 0 | 0.195545 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.545455 | 0 | 0.545455 | 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 | 1 | 0 | 1 | 0 | 0 | 4 |
d07b93a020d9d92e30d20c71b5a342df9bb83cd5 | 150 | py | Python | ToDoApp/frontend/views.py | amitkakde007/To-Do-App | a991d74fa7d38b2037d66521f41cd4dc4bccaf44 | [
"MIT"
] | null | null | null | ToDoApp/frontend/views.py | amitkakde007/To-Do-App | a991d74fa7d38b2037d66521f41cd4dc4bccaf44 | [
"MIT"
] | null | null | null | ToDoApp/frontend/views.py | amitkakde007/To-Do-App | a991d74fa7d38b2037d66521f41cd4dc4bccaf44 | [
"MIT"
] | null | null | null | from django.shortcuts import render
# Local Import
# Create your views here.
def Home(request):
return render(request, 'frontend/home.html')
| 13.636364 | 48 | 0.733333 | 20 | 150 | 5.5 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173333 | 150 | 10 | 49 | 15 | 0.887097 | 0.24 | 0 | 0 | 0 | 0 | 0.162162 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 4 |
d092c268a4c03f17bf8b911f1d5bb2dab283140a | 1,180 | py | Python | setup.py | cr3/lookuper | 5e2d0520ad3f78b2c2623f0e9b46390c18edef46 | [
"MIT"
] | null | null | null | setup.py | cr3/lookuper | 5e2d0520ad3f78b2c2623f0e9b46390c18edef46 | [
"MIT"
] | null | null | null | setup.py | cr3/lookuper | 5e2d0520ad3f78b2c2623f0e9b46390c18edef46 | [
"MIT"
] | null | null | null | from setuptools import (
setup,
find_packages,
)
setup(
name='lookuper',
use_scm_version=True,
description='Lookup nested data structures',
long_description=open('README.rst').read(),
url='https://github.com/cr3/lookuper',
author='Marc Tardif',
author_email='marc@interunion.ca',
... | 32.777778 | 71 | 0.615254 | 115 | 1,180 | 6.234783 | 0.608696 | 0.211994 | 0.27894 | 0.181311 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012222 | 0.237288 | 1,180 | 35 | 72 | 33.714286 | 0.784444 | 0 | 0 | 0 | 0 | 0 | 0.562712 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.030303 | 0 | 0.030303 | 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 |
d098e2739c70f7f28b811a22b6e1996d8bde15cc | 608 | py | Python | References/Geovana Neves/TCC_Geovana_Neves_GitHub/SUAVE_modifications/SUAVE-feature-constant_throttle_EAS/trunk/SUAVE/Attributes/Airports/Runway.py | Vinicius-Tanigawa/Undergraduate-Research-Project | e92372f07882484b127d7affe305eeec2238b8a9 | [
"MIT"
] | null | null | null | References/Geovana Neves/TCC_Geovana_Neves_GitHub/SUAVE_modifications/SUAVE-feature-constant_throttle_EAS/trunk/SUAVE/Attributes/Airports/Runway.py | Vinicius-Tanigawa/Undergraduate-Research-Project | e92372f07882484b127d7affe305eeec2238b8a9 | [
"MIT"
] | null | null | null | References/Geovana Neves/TCC_Geovana_Neves_GitHub/SUAVE_modifications/SUAVE-feature-constant_throttle_EAS/trunk/SUAVE/Attributes/Airports/Runway.py | Vinicius-Tanigawa/Undergraduate-Research-Project | e92372f07882484b127d7affe305eeec2238b8a9 | [
"MIT"
] | null | null | null | #Runway.py
#
# Created: Mar, 2014, SUAVE Team
# Modified: Jan, 2016, M. Vegh
# ----------------------------------------------------------------------
# Imports
# ----------------------------------------------------------------------
from SUAVE.Core import Data
# ---------------------------------------------------... | 27.636364 | 72 | 0.330592 | 41 | 608 | 4.804878 | 0.682927 | 0.203046 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015414 | 0.146382 | 608 | 21 | 73 | 28.952381 | 0.364162 | 0.743421 | 0 | 0 | 0 | 0 | 0.047244 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
d0ac0d3566aaeccd65d41744aa078ed37fee0d6c | 346,286 | py | Python | 3algo/homo/3_3_7datap.py | allengrr/deadlock_project | 933878077c45a7df04daa087407bb2620c064617 | [
"MIT"
] | null | null | null | 3algo/homo/3_3_7datap.py | allengrr/deadlock_project | 933878077c45a7df04daa087407bb2620c064617 | [
"MIT"
] | null | null | null | 3algo/homo/3_3_7datap.py | allengrr/deadlock_project | 933878077c45a7df04daa087407bb2620c064617 | [
"MIT"
] | 1 | 2021-03-21T17:54:26.000Z | 2021-03-21T17:54:26.000Z |
wt3_3_7 = {'192.168.122.110': [5.3551, 8.3352, 7.3783, 6.9324, 6.6606, 6.4673, 6.5077, 6.6393, 7.3012, 7.1319, 6.7323, 6.3639, 6.33, 6.6602, 6.9711, 6.8935, 7.1543, 7.3671, 7.2675, 7.223, 7.1379, 7.3225, 7.2638, 7.4282, 7.435, 7.3821, 7.5459, 7.4728, 7.4688, 7.4658, 7.3986, 7.347, 7.4649, 7.4186, 7.4119, 7.358, 7.3216... | 20,369.764706 | 322,873 | 0.621758 | 87,298 | 346,286 | 2.465853 | 0.074229 | 0.001533 | 0.00184 | 0.000743 | 0.636256 | 0.296938 | 0.296482 | 0.085746 | 0.085588 | 0.020807 | 0 | 0.710885 | 0.126078 | 346,286 | 17 | 322,874 | 20,369.764706 | 0.000433 | 0 | 0 | 0 | 0 | 0 | 0.00063 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
d0ae9bc05b62562e6fd0e50cbc3bd6ab8335180c | 101 | py | Python | backend/fields_by_risk/apps.py | idanwekhai/Prodcut-Development-Hiring-Project | 2616bbcbc69b283f16a208a61f2bff49ae84ad9d | [
"MIT"
] | 2 | 2021-12-26T16:50:21.000Z | 2022-02-17T16:51:16.000Z | backend/fields_by_risk/apps.py | idanwekhai/Prodcut-Development-Hiring-Project | 2616bbcbc69b283f16a208a61f2bff49ae84ad9d | [
"MIT"
] | 12 | 2020-02-11T23:24:17.000Z | 2022-02-26T13:33:59.000Z | backend/fields_by_risk/apps.py | idanwekhai/Product-Development-Hiring-Project | 2616bbcbc69b283f16a208a61f2bff49ae84ad9d | [
"MIT"
] | 4 | 2018-12-22T20:39:00.000Z | 2021-09-12T21:14:21.000Z | from django.apps import AppConfig
class FieldsByRiskConfig(AppConfig):
name = 'fields_by_risk'
| 16.833333 | 36 | 0.782178 | 12 | 101 | 6.416667 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148515 | 101 | 5 | 37 | 20.2 | 0.895349 | 0 | 0 | 0 | 0 | 0 | 0.138614 | 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 |
ef7bdf9d8d04db98c420901e3d908329a1d47305 | 223 | py | Python | aoc_solver/lang/python.py | tcollier/aoc_solver | de63dbebd323d8a46deeab1f7fc45d20f70cfdae | [
"MIT"
] | 2 | 2021-12-14T18:13:16.000Z | 2021-12-14T18:42:45.000Z | aoc_solver/lang/python.py | tcollier/aoc_solver | de63dbebd323d8a46deeab1f7fc45d20f70cfdae | [
"MIT"
] | null | null | null | aoc_solver/lang/python.py | tcollier/aoc_solver | de63dbebd323d8a46deeab1f7fc45d20f70cfdae | [
"MIT"
] | null | null | null | from aoc_solver.lang.registry import LanguageSettings, register_language
@register_language(name="python", extension="py")
class PythonSettings(LanguageSettings):
def solve(self):
return f"python {self.file}"
| 27.875 | 72 | 0.766816 | 26 | 223 | 6.461538 | 0.807692 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125561 | 223 | 7 | 73 | 31.857143 | 0.861538 | 0 | 0 | 0 | 0 | 0 | 0.116592 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.2 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
ef8e2b125b7b26bc84d2f03bc1062f62d6b810e2 | 148 | py | Python | elf/types/section/types/gnu_hash_section.py | Valmarelox/elftoolsng | 99c3f4913a7e477007b1d81df83274d7657bf693 | [
"MIT"
] | null | null | null | elf/types/section/types/gnu_hash_section.py | Valmarelox/elftoolsng | 99c3f4913a7e477007b1d81df83274d7657bf693 | [
"MIT"
] | null | null | null | elf/types/section/types/gnu_hash_section.py | Valmarelox/elftoolsng | 99c3f4913a7e477007b1d81df83274d7657bf693 | [
"MIT"
] | null | null | null | from elf.types.section.header import SHType
from .section_base import ElfSection
class GnuHashSection(ElfSection):
TYPE = SHType.SHT_GNU_HASH
| 21.142857 | 43 | 0.810811 | 20 | 148 | 5.85 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128378 | 148 | 6 | 44 | 24.666667 | 0.906977 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
ef9235f2ee57bc787958bbc318870e50cc9a5ed6 | 204 | py | Python | users/serializers.py | Radhesh-Sarma/Resource-Sharing-Portal | b9754ba4a6a49a523ad3f31309cfce83ac45bd28 | [
"MIT"
] | null | null | null | users/serializers.py | Radhesh-Sarma/Resource-Sharing-Portal | b9754ba4a6a49a523ad3f31309cfce83ac45bd28 | [
"MIT"
] | null | null | null | users/serializers.py | Radhesh-Sarma/Resource-Sharing-Portal | b9754ba4a6a49a523ad3f31309cfce83ac45bd28 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from .models import CustomUser
class UserSerializer(serializers.ModelSerializer):
class Meta:
model = CustomUser
fields = ('mobile_number','address','email')
| 22.666667 | 50 | 0.789216 | 22 | 204 | 7.227273 | 0.772727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122549 | 204 | 8 | 51 | 25.5 | 0.888268 | 0 | 0 | 0 | 0 | 0 | 0.123153 | 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 |
ef9645f3e5d1b6ae88ed9a23243084d30e250d93 | 2,288 | py | Python | test_file01.py | MichaelWiciak/PythonUnitTest | d74242004de75532e6baafcbd5669ba4cf906d7b | [
"MIT"
] | null | null | null | test_file01.py | MichaelWiciak/PythonUnitTest | d74242004de75532e6baafcbd5669ba4cf906d7b | [
"MIT"
] | null | null | null | test_file01.py | MichaelWiciak/PythonUnitTest | d74242004de75532e6baafcbd5669ba4cf906d7b | [
"MIT"
] | null | null | null | import unittest
import file01 as file
class TestBasicCalculation(unittest.TestCase):
def test_check_key(self):
self.assertEqual(file.check_key(-1), False)
self.assertEqual(file.check_key(0), True)
self.assertEqual(file.check_key(1), True)
self.assertEqual(file.check_key(50), True)... | 52 | 161 | 0.673951 | 309 | 2,288 | 4.786408 | 0.320388 | 0.223124 | 0.282623 | 0.162272 | 0.59973 | 0.59432 | 0.378634 | 0.35497 | 0.067613 | 0 | 0 | 0.081899 | 0.16215 | 2,288 | 44 | 162 | 52 | 0.689619 | 0 | 0 | 0 | 0 | 0 | 0.160769 | 0 | 0 | 0 | 0 | 0 | 0.69697 | 1 | 0.151515 | false | 0 | 0.060606 | 0 | 0.242424 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
eff36919af002886d4153edbcc121f53d9221504 | 87 | py | Python | pokus2/apps.py | zvolsky/example_translation | 37a8e71df6bdc12dda96b9e84b5c1bb7a16087dc | [
"MIT"
] | null | null | null | pokus2/apps.py | zvolsky/example_translation | 37a8e71df6bdc12dda96b9e84b5c1bb7a16087dc | [
"MIT"
] | null | null | null | pokus2/apps.py | zvolsky/example_translation | 37a8e71df6bdc12dda96b9e84b5c1bb7a16087dc | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class Pokus2Config(AppConfig):
name = 'pokus2'
| 14.5 | 33 | 0.747126 | 10 | 87 | 6.5 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027778 | 0.172414 | 87 | 5 | 34 | 17.4 | 0.875 | 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 |
ef353910b2bf982e61fa1ba6a32ae6bb17604926 | 1,089 | py | Python | test/test_phones.py | romanovaes/python_training | 5df3a9b716e7659fb8f61e0b55e5217cc6a1a89e | [
"Apache-2.0"
] | null | null | null | test/test_phones.py | romanovaes/python_training | 5df3a9b716e7659fb8f61e0b55e5217cc6a1a89e | [
"Apache-2.0"
] | null | null | null | test/test_phones.py | romanovaes/python_training | 5df3a9b716e7659fb8f61e0b55e5217cc6a1a89e | [
"Apache-2.0"
] | null | null | null | import re
def test_phones_on_home_page(app):
contact_from_home_page=app.contact.get_contact_list()[0]
contact_from_edit_page=app.contact.get_contact_info_from_edit_page(0)
assert contact_from_home_page.all_phones_from_home_page==merge_phone_like_on_home_page(contact_from_edit_page)
def test_phones_on_view... | 45.375 | 132 | 0.757576 | 171 | 1,089 | 4.350877 | 0.222222 | 0.206989 | 0.145161 | 0.178763 | 0.469086 | 0.357527 | 0.282258 | 0.198925 | 0.198925 | 0.198925 | 0 | 0.007535 | 0.146924 | 1,089 | 23 | 133 | 47.347826 | 0.793326 | 0 | 0 | 0.111111 | 0 | 0 | 0.007346 | 0 | 0 | 0 | 0 | 0 | 0.277778 | 1 | 0.222222 | false | 0 | 0.055556 | 0.111111 | 0.388889 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
ef4cbb9f321ddcd99df722ab94889e966ce7b496 | 201 | py | Python | lms/lmstests/sandbox/__init__.py | ellenc345/lms | b933e445efbc49532e7ceeeac05666d0b191a502 | [
"BSD-3-Clause"
] | 85 | 2020-03-21T18:52:57.000Z | 2022-03-22T06:33:38.000Z | lms/lmstests/sandbox/__init__.py | ellenc345/lms | b933e445efbc49532e7ceeeac05666d0b191a502 | [
"BSD-3-Clause"
] | 210 | 2020-03-21T22:44:57.000Z | 2022-01-06T22:47:50.000Z | lms/lmstests/sandbox/__init__.py | ellenc345/lms | b933e445efbc49532e7ceeeac05666d0b191a502 | [
"BSD-3-Clause"
] | 27 | 2020-03-31T13:57:33.000Z | 2022-03-06T15:57:32.000Z | from lms.lmstests.sandbox.config import celery as celery_config
from lms.lmstests.sandbox.linters import tasks as flake8_tasks
celery_app = celery_config.app
__all__ = ('flake8_tasks', 'celery_app')
| 28.714286 | 63 | 0.81592 | 30 | 201 | 5.133333 | 0.433333 | 0.090909 | 0.194805 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011111 | 0.104478 | 201 | 6 | 64 | 33.5 | 0.844444 | 0 | 0 | 0 | 0 | 0 | 0.109453 | 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 |
ef59a6a3ef0bbbbe6d2f150ad895c0dea234fb57 | 241 | py | Python | forms/reviewForm.py | cristinacorghi/BeautyProject | c33c280bd7bb3ef40e3a920f52af37ee8ffd68fa | [
"MIT"
] | null | null | null | forms/reviewForm.py | cristinacorghi/BeautyProject | c33c280bd7bb3ef40e3a920f52af37ee8ffd68fa | [
"MIT"
] | null | null | null | forms/reviewForm.py | cristinacorghi/BeautyProject | c33c280bd7bb3ef40e3a920f52af37ee8ffd68fa | [
"MIT"
] | null | null | null | from django import forms
from Store.models.productModel import ProductReviewModel
class ReviewForm(forms.ModelForm):
class Meta:
model = ProductReviewModel
fields = ('product', 'user', 'content', 'stars', 'date_added')
| 26.777778 | 70 | 0.713693 | 25 | 241 | 6.84 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.182573 | 241 | 8 | 71 | 30.125 | 0.86802 | 0 | 0 | 0 | 0 | 0 | 0.136929 | 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 |
3233a55b65cbe76899f546a8fa7c9d99e1522ecd | 896 | py | Python | configs/dev/__init__.py | ajaniv/django-contacts | 863823a3f0ece4cdf702872225d98c93571c1dbf | [
"MIT"
] | null | null | null | configs/dev/__init__.py | ajaniv/django-contacts | 863823a3f0ece4cdf702872225d98c93571c1dbf | [
"MIT"
] | 4 | 2016-05-11T17:55:01.000Z | 2017-06-30T20:40:28.000Z | configs/dev/__init__.py | ajaniv/django-contacts | 863823a3f0ece4cdf702872225d98c93571c1dbf | [
"MIT"
] | null | null | null | """
.. module:: config.dev
:synopsis: Django dev environment settings file.
Django dev environment settings file.
"""
import os
from configs.common.root import * # @UnusedWildImport
from configs.common.django import * # @UnusedWildImport
from configs.common.log import * # @UnusedWildImport
from configs.commo... | 34.461538 | 79 | 0.754464 | 114 | 896 | 5.842105 | 0.526316 | 0.099099 | 0.153153 | 0.247748 | 0.388889 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02231 | 0.149554 | 896 | 25 | 80 | 35.84 | 0.851706 | 0.479911 | 0 | 0 | 0 | 0 | 0.133929 | 0 | 0 | 0 | 0 | 0.04 | 0 | 1 | 0 | false | 0 | 0.583333 | 0 | 0.583333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
3242820aeaa666bb10b381d5706b9725ded2637c | 123 | py | Python | ZeroJudge/b758.py | EmmettTsai/OnlineJudge | e8736ad18b4aa12fafeba7f87a61868b826b5b6a | [
"MIT"
] | null | null | null | ZeroJudge/b758.py | EmmettTsai/OnlineJudge | e8736ad18b4aa12fafeba7f87a61868b826b5b6a | [
"MIT"
] | null | null | null | ZeroJudge/b758.py | EmmettTsai/OnlineJudge | e8736ad18b4aa12fafeba7f87a61868b826b5b6a | [
"MIT"
] | null | null | null | X, Y = map(int, input().split())
X += 2
if Y >= 30:
X += 1
Y -= 30
else:
Y += 30
X %= 24
print('%02d:%02d' % (X, Y))
| 12.3 | 32 | 0.430894 | 25 | 123 | 2.12 | 0.56 | 0.169811 | 0.150943 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159091 | 0.284553 | 123 | 9 | 33 | 13.666667 | 0.443182 | 0 | 0 | 0 | 0 | 0 | 0.073171 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
3245d35c3dea3bf08dc32ff005d40faa2c785da3 | 128 | py | Python | clean_compileds/Removing_Files_Interface.py | danilocgsilva/clean_compilleds | 015e3f05f2d8be7f254f7d1766293fc69b887173 | [
"MIT"
] | null | null | null | clean_compileds/Removing_Files_Interface.py | danilocgsilva/clean_compilleds | 015e3f05f2d8be7f254f7d1766293fc69b887173 | [
"MIT"
] | null | null | null | clean_compileds/Removing_Files_Interface.py | danilocgsilva/clean_compilleds | 015e3f05f2d8be7f254f7d1766293fc69b887173 | [
"MIT"
] | null | null | null | import abc
class Removing_Files_Interface(abc.ABC):
@abc.abstractmethod
def get_file_list(self) -> list:
pass
| 16 | 40 | 0.695313 | 17 | 128 | 5 | 0.764706 | 0.141176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.21875 | 128 | 7 | 41 | 18.285714 | 0.85 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.2 | 0.2 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
32515a3668e3010c8b2ef1a88d739d6553fc65de | 564 | py | Python | mega/match/values/null.py | felipead/sqs-mega-python | 82da3b1650a891336c13c80648edda3d3d2967de | [
"MIT"
] | null | null | null | mega/match/values/null.py | felipead/sqs-mega-python | 82da3b1650a891336c13c80648edda3d3d2967de | [
"MIT"
] | 1 | 2020-05-19T18:57:05.000Z | 2020-05-19T18:57:05.000Z | mega/match/values/null.py | mega-distributed/sqs-mega-python | 82da3b1650a891336c13c80648edda3d3d2967de | [
"MIT"
] | null | null | null | from mega.match.values.value import Value
class Null(Value):
def __init__(self):
super().__init__(None)
@classmethod
def accepts_rhs(cls, rhs) -> bool:
return rhs is None
@classmethod
def _accepts_lhs(cls, lhs, function_type) -> bool:
return True
def _needs_casting(s... | 20.888889 | 69 | 0.638298 | 74 | 564 | 4.594595 | 0.432432 | 0.105882 | 0.105882 | 0.147059 | 0.147059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.271277 | 564 | 26 | 70 | 21.692308 | 0.827251 | 0 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.388889 | false | 0.055556 | 0.055556 | 0.277778 | 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 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
3256e9e1cac593fadb84a40a61b11cd461cfe832 | 33 | py | Python | tools/__init__.py | IATI/new-website | b90783e32d19ac4c821c5ea018a52997a11b5286 | [
"MIT"
] | 4 | 2019-03-28T06:42:17.000Z | 2021-06-06T13:10:51.000Z | tools/__init__.py | IATI/new-website | b90783e32d19ac4c821c5ea018a52997a11b5286 | [
"MIT"
] | 177 | 2018-09-28T14:21:56.000Z | 2022-03-30T21:45:26.000Z | tools/__init__.py | IATI/new-website | b90783e32d19ac4c821c5ea018a52997a11b5286 | [
"MIT"
] | 8 | 2018-10-25T20:43:10.000Z | 2022-03-17T14:19:27.000Z | """Package for the tools app."""
| 16.5 | 32 | 0.636364 | 5 | 33 | 4.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151515 | 33 | 1 | 33 | 33 | 0.75 | 0.787879 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
328b04ca7fef1eed8c1a398235ba9824c16e9d91 | 215 | py | Python | arggo/types/enums.py | mikimn/arggo | 79d7b0e7c391e9e1e8cf4621db95382ad9fd074e | [
"MIT"
] | 2 | 2021-05-26T17:29:50.000Z | 2021-05-29T10:19:10.000Z | arggo/types/enums.py | mikimn/arggo | 79d7b0e7c391e9e1e8cf4621db95382ad9fd074e | [
"MIT"
] | 10 | 2021-03-12T14:33:34.000Z | 2021-05-23T14:48:45.000Z | arggo/types/enums.py | mikimn/arggo | 79d7b0e7c391e9e1e8cf4621db95382ad9fd074e | [
"MIT"
] | 1 | 2021-09-22T18:03:29.000Z | 2021-09-22T18:03:29.000Z | import json
from enum import Enum
class EnumEncoder(json.JSONEncoder):
def default(self, obj):
if isinstance(obj, Enum):
return obj.value
return json.JSONEncoder.default(self, obj)
| 21.5 | 50 | 0.669767 | 27 | 215 | 5.333333 | 0.555556 | 0.208333 | 0.194444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.246512 | 215 | 9 | 51 | 23.888889 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.857143 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
0870b402a6bbaa4b5e479df5cf5ee4e85e22d5b5 | 151 | py | Python | dashboard/source/dashboard/__init__.py | mueller-stephan/car-classification | 6b620091e071535ea112a6e19c1d15de21dadbd1 | [
"MIT"
] | 2 | 2020-03-21T19:26:39.000Z | 2021-06-14T18:45:10.000Z | dashboard/source/dashboard/__init__.py | fabianmax/car-classification | 2c32a57b0404c2da6c341a6f496c9912fbd19b50 | [
"MIT"
] | null | null | null | dashboard/source/dashboard/__init__.py | fabianmax/car-classification | 2c32a57b0404c2da6c341a6f496c9912fbd19b50 | [
"MIT"
] | 5 | 2020-02-26T13:35:23.000Z | 2022-03-11T20:05:34.000Z | from .layout import attempt, finish_page, main_layout, result, start_page
__all__ = ['main_layout', 'attempt', 'result', 'start_page', 'finish_page']
| 37.75 | 75 | 0.748344 | 20 | 151 | 5.15 | 0.5 | 0.194175 | 0.291262 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10596 | 151 | 3 | 76 | 50.333333 | 0.762963 | 0 | 0 | 0 | 0 | 0 | 0.298013 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
0871bbc42052d9f5d8c6e9c12e91172b379a1209 | 305 | py | Python | test-django-project/tests/client/test_client.py | rhenter/django-api-client | c113a94b292ffbc14e2da589dd9fde61f068dd7f | [
"MIT"
] | 15 | 2020-07-25T12:07:14.000Z | 2021-04-27T14:32:05.000Z | test-django-project/tests/client/test_client.py | rhenter/django-api-client | c113a94b292ffbc14e2da589dd9fde61f068dd7f | [
"MIT"
] | null | null | null | test-django-project/tests/client/test_client.py | rhenter/django-api-client | c113a94b292ffbc14e2da589dd9fde61f068dd7f | [
"MIT"
] | 2 | 2021-04-27T14:32:11.000Z | 2021-06-11T19:03:18.000Z | import pytest
from django_api_client.client import api_client_factory
from django_api_client.client.exceptions import APINotFound
def test_get_api_name_error():
with pytest.raises(APINotFound) as error:
api_client_factory('CRAZY NAME')
assert str(error.value) == "API name Not Found."
| 25.416667 | 59 | 0.780328 | 44 | 305 | 5.136364 | 0.522727 | 0.159292 | 0.115044 | 0.168142 | 0.221239 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147541 | 305 | 11 | 60 | 27.727273 | 0.869231 | 0 | 0 | 0 | 0 | 0 | 0.095082 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.142857 | true | 0 | 0.428571 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
08a56d08d2d84f45139ae5c44329b63e5df6194e | 63 | py | Python | downtoearth/__init__.py | defond0/downtoearth | 4a77ab8cf0e7b8ba7c0ad7f630baf45ed6d5c806 | [
"Apache-2.0"
] | 22 | 2017-01-30T22:09:29.000Z | 2021-02-16T07:40:00.000Z | downtoearth/__init__.py | defond0/downtoearth | 4a77ab8cf0e7b8ba7c0ad7f630baf45ed6d5c806 | [
"Apache-2.0"
] | 5 | 2017-02-06T18:01:53.000Z | 2017-11-15T20:12:36.000Z | downtoearth/__init__.py | defond0/downtoearth | 4a77ab8cf0e7b8ba7c0ad7f630baf45ed6d5c806 | [
"Apache-2.0"
] | 6 | 2017-01-31T06:47:13.000Z | 2017-06-28T19:08:12.000Z | from downtoearth.version import VERSION
__version__ = VERSION
| 15.75 | 39 | 0.84127 | 7 | 63 | 7 | 0.571429 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126984 | 63 | 3 | 40 | 21 | 0.890909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
08ea34dcc985237a3017c5f0f9e1ab948550cd9a | 3,222 | py | Python | test/formatter_test.py | nathan5280/callable-journal | d815f2e029b3af53f9631b6a7672c0faec16be0e | [
"MIT"
] | 1 | 2020-10-21T20:56:35.000Z | 2020-10-21T20:56:35.000Z | test/formatter_test.py | nathan5280/callable-journal | d815f2e029b3af53f9631b6a7672c0faec16be0e | [
"MIT"
] | null | null | null | test/formatter_test.py | nathan5280/callable-journal | d815f2e029b3af53f9631b6a7672c0faec16be0e | [
"MIT"
] | null | null | null | import json
from logging import Logger
from ndl_tools import Differ
from callable_journal.encoders import ObjectDictEncoder
from callable_journal.formatter import JournalFormatter
from callable_journal.journal import JournalContent
journal_content = JournalContent(
context=dict(
context=dict(
... | 30.11215 | 87 | 0.592489 | 353 | 3,222 | 5.280453 | 0.195467 | 0.067597 | 0.038627 | 0.042918 | 0.767704 | 0.756974 | 0.726931 | 0.709764 | 0.695815 | 0.673283 | 0 | 0.027515 | 0.244258 | 3,222 | 106 | 88 | 30.396226 | 0.737988 | 0.014277 | 0 | 0.606742 | 0 | 0 | 0.237555 | 0 | 0 | 0 | 0 | 0 | 0.033708 | 1 | 0.033708 | false | 0 | 0.067416 | 0 | 0.101124 | 0.033708 | 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 |
08f49c219032f2da94fe227a1cddfde90aee244b | 2,836 | py | Python | src-tmp/compotable/coveragecomptable-reverse.py | EulerProject/EulerX | 49e63e6a27be97ab30832180a47d214494388e15 | [
"MIT"
] | 15 | 2016-02-17T20:48:29.000Z | 2021-03-05T20:38:05.000Z | src-tmp/compotable/coveragecomptable-reverse.py | eddy7896/EulerX | 49e63e6a27be97ab30832180a47d214494388e15 | [
"MIT"
] | 16 | 2015-02-05T18:38:48.000Z | 2021-06-14T11:38:36.000Z | src-tmp/compotable/coveragecomptable-reverse.py | eddy7896/EulerX | 49e63e6a27be97ab30832180a47d214494388e15 | [
"MIT"
] | 4 | 2016-01-26T03:24:52.000Z | 2020-01-09T07:57:15.000Z | from itertools import chain, combinations
from sets import Set
#Coverage composition table:
#Given rel(A,B) ==> rel(a1,B), rel(a2,B)
#< ==> < , <
#> ==> !<=>o , !<=>o
#= ==> < , <
#! ==> ! , !
#o ==> !<o , !<o
#Given rel(A,B) ==> rel(A,b1), rel(A,b2)
#< ==> !<=>o , !<=>o
#> ==> > , >
#= ==> > , >
#! ==> ! , !
#o ==>... | 19.971831 | 83 | 0.366361 | 340 | 2,836 | 2.988235 | 0.132353 | 0.220472 | 0.259843 | 0.070866 | 0.669291 | 0.669291 | 0.648622 | 0.648622 | 0.648622 | 0.581693 | 0 | 0.014658 | 0.350494 | 2,836 | 142 | 84 | 19.971831 | 0.536916 | 0.178773 | 0 | 0.761905 | 0 | 0 | 0.086655 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.019048 | null | null | 0.009524 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
3e9e579626a0c7a9ce27eca0550a807d855d6771 | 43 | py | Python | notebooks/_solutions/case4_air_quality_analysis22.py | rprops/Python_DS-WS | b2fc449a74be0c82863e5fcf1ddbe7d64976d530 | [
"BSD-3-Clause"
] | 183 | 2016-08-24T12:32:07.000Z | 2022-03-26T14:05:04.000Z | notebooks/_solutions/case4_air_quality_analysis22.py | rprops/Python_DS-WS | b2fc449a74be0c82863e5fcf1ddbe7d64976d530 | [
"BSD-3-Clause"
] | 100 | 2016-12-15T03:44:06.000Z | 2022-03-07T08:14:07.000Z | notebooks/_solutions/case4_air_quality_analysis22.py | rprops/Python_DS-WS | b2fc449a74be0c82863e5fcf1ddbe7d64976d530 | [
"BSD-3-Clause"
] | 204 | 2016-08-24T14:22:58.000Z | 2022-03-29T15:09:03.000Z | data.groupby(data.index.hour).mean().plot() | 43 | 43 | 0.744186 | 7 | 43 | 4.571429 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 43 | 1 | 43 | 43 | 0.744186 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
3eb420a0102ad31ef4a1fbf273831f54773be725 | 42 | py | Python | python_base/day_5/test_package/module2.py | sven820/python | ddb13ffdab45bdb2c8ca8038cfa0c47f2502e554 | [
"Apache-2.0"
] | null | null | null | python_base/day_5/test_package/module2.py | sven820/python | ddb13ffdab45bdb2c8ca8038cfa0c47f2502e554 | [
"Apache-2.0"
] | null | null | null | python_base/day_5/test_package/module2.py | sven820/python | ddb13ffdab45bdb2c8ca8038cfa0c47f2502e554 | [
"Apache-2.0"
] | null | null | null | __author__ = "JJ.sven"
print('test in 2') | 14 | 22 | 0.666667 | 7 | 42 | 3.428571 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027778 | 0.142857 | 42 | 3 | 23 | 14 | 0.638889 | 0 | 0 | 0 | 0 | 0 | 0.372093 | 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 |
3eff32f0874cd0d4bc6ded5c73a8cbe3f5db5ac6 | 112 | py | Python | EHR_statistic_app/apps.py | HurleyJames/Visualization-EHRs | 409bcd5ed6de0c73cef335e0ec8557e5c153d659 | [
"Apache-2.0"
] | 1 | 2021-05-24T15:10:52.000Z | 2021-05-24T15:10:52.000Z | EHR_statistic_app/apps.py | HurleyWong/Visualization-EHRs | 409bcd5ed6de0c73cef335e0ec8557e5c153d659 | [
"Apache-2.0"
] | null | null | null | EHR_statistic_app/apps.py | HurleyWong/Visualization-EHRs | 409bcd5ed6de0c73cef335e0ec8557e5c153d659 | [
"Apache-2.0"
] | null | null | null | from django.apps import AppConfig
class EhrStatisticAppConfig(AppConfig):
name = 'EHR_statistic_app'
| 18.666667 | 40 | 0.758929 | 12 | 112 | 6.916667 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.178571 | 112 | 5 | 41 | 22.4 | 0.902174 | 0 | 0 | 0 | 0 | 0 | 0.158879 | 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 |
41002a362eb036c4db678318b625d1290eea12d5 | 294 | py | Python | occiput_suite/occiput/Registration/TranslationRotation/__init__.py | mscipio/occiput-suite | 9b7dc59ad615d46d811eab965a86ec9efe292a7d | [
"BSD-2-Clause"
] | 7 | 2018-02-22T13:50:21.000Z | 2020-11-16T01:28:22.000Z | occiput_suite/occiput/Registration/TranslationRotation/__init__.py | mscipio/occiput-suite | 9b7dc59ad615d46d811eab965a86ec9efe292a7d | [
"BSD-2-Clause"
] | null | null | null | occiput_suite/occiput/Registration/TranslationRotation/__init__.py | mscipio/occiput-suite | 9b7dc59ad615d46d811eab965a86ec9efe292a7d | [
"BSD-2-Clause"
] | 2 | 2018-02-22T13:50:31.000Z | 2020-01-14T02:17:32.000Z | # occiput
# Stefano Pedemonte
# Harvard University, Martinos Center for Biomedical Imaging
# Apr. 2014, Boston, MA
from __future__ import absolute_import
from .ilang_models import SSD_ilang
from .registration import Registration_Two_Images, Registration_Longitudinal, Registration_N_Images
| 32.666667 | 99 | 0.836735 | 36 | 294 | 6.5 | 0.722222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015504 | 0.122449 | 294 | 8 | 100 | 36.75 | 0.891473 | 0.370748 | 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 |
412ad116201c5308339b3c4ddea9ab5e54615526 | 25,718 | py | Python | djukebox/tests.py | jmichalicek/djukebox | 0b7628f886683887ed357688608fe223033c7e35 | [
"BSD-2-Clause"
] | 2 | 2017-07-19T23:35:25.000Z | 2019-02-11T20:25:53.000Z | djukebox/tests.py | jmichalicek/djukebox | 0b7628f886683887ed357688608fe223033c7e35 | [
"BSD-2-Clause"
] | 5 | 2021-03-18T19:55:22.000Z | 2022-03-11T23:11:27.000Z | djukebox/tests.py | jmichalicek/djukebox | 0b7628f886683887ed357688608fe223033c7e35 | [
"BSD-2-Clause"
] | 1 | 2015-09-28T21:58:13.000Z | 2015-09-28T21:58:13.000Z | """
WARNING! Several of these tests currently ASSUME a test system and could result in a loss of data.
That is unlikely as the files are all put in directories suggesting they were created in the past,
but I cannot control what else you do, so it IS possible.
"""
from django.conf import settings
from django.contrib.a... | 35.620499 | 132 | 0.625593 | 3,036 | 25,718 | 5.162055 | 0.103426 | 0.059342 | 0.025013 | 0.035158 | 0.752169 | 0.727093 | 0.705334 | 0.694678 | 0.65282 | 0.645674 | 0 | 0.010723 | 0.256668 | 25,718 | 721 | 133 | 35.669903 | 0.80907 | 0.145307 | 0 | 0.720358 | 0 | 0 | 0.109693 | 0.008999 | 0 | 0 | 0 | 0.001387 | 0.239374 | 1 | 0.111857 | false | 0.042506 | 0.029083 | 0.008949 | 0.210291 | 0 | 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 |
f5b45c6dae5d965ab9eb7629c5396a3bc09b17e2 | 325 | py | Python | data.py | ruslan-baichurin/mailing-list | 623bdc7bc3751d8beb1d01fbbdbb6ebe2b89297a | [
"MIT"
] | null | null | null | data.py | ruslan-baichurin/mailing-list | 623bdc7bc3751d8beb1d01fbbdbb6ebe2b89297a | [
"MIT"
] | null | null | null | data.py | ruslan-baichurin/mailing-list | 623bdc7bc3751d8beb1d01fbbdbb6ebe2b89297a | [
"MIT"
] | null | null | null | from faker import Faker
from flask_app import User
# Creating an instance of a Faker object
fake = Faker()
Creating and inserting 100 email addresses and registration dates generated by fake into the database
for _ in range(100):
User.add_user(email = fake.email(), created_at = fake.past_datetime(start_date='-365... | 32.5 | 101 | 0.775385 | 51 | 325 | 4.823529 | 0.705882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032727 | 0.153846 | 325 | 9 | 102 | 36.111111 | 0.861818 | 0.116923 | 0 | 0 | 1 | 0 | 0.017544 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.333333 | null | null | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
f5c035226f5727d348c3b18be19bb5a1ae9aba8f | 214 | py | Python | routes/weather.py | ramoseh/wizeline-challenge | 3c4f2b3b50b948cc60e258daeaaef88a7b1f9f7f | [
"MIT"
] | null | null | null | routes/weather.py | ramoseh/wizeline-challenge | 3c4f2b3b50b948cc60e258daeaaef88a7b1f9f7f | [
"MIT"
] | null | null | null | routes/weather.py | ramoseh/wizeline-challenge | 3c4f2b3b50b948cc60e258daeaaef88a7b1f9f7f | [
"MIT"
] | null | null | null | # This file is just for organization purposes,
# normally there will be more functions and validation in a complex proect
# to justify the existance of routes and client
from client.weather import get_gdl_wheather
| 42.8 | 74 | 0.817757 | 34 | 214 | 5.088235 | 0.941176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.158879 | 214 | 4 | 75 | 53.5 | 0.961111 | 0.761682 | 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 |
eb41ba9f0d8ff041671f5e1aa36bf39ffe72a408 | 434 | py | Python | dp_tornado/helper/numeric/random.py | donghak-shin/dp-tornado | 095bb293661af35cce5f917d8a2228d273489496 | [
"MIT"
] | 18 | 2015-04-07T14:28:39.000Z | 2020-02-08T14:03:38.000Z | dp_tornado/helper/numeric/random.py | donghak-shin/dp-tornado | 095bb293661af35cce5f917d8a2228d273489496 | [
"MIT"
] | 7 | 2016-10-05T05:14:06.000Z | 2021-05-20T02:07:22.000Z | dp_tornado/helper/numeric/random.py | donghak-shin/dp-tornado | 095bb293661af35cce5f917d8a2228d273489496 | [
"MIT"
] | 11 | 2015-12-15T09:49:39.000Z | 2021-09-06T18:38:21.000Z | # -*- coding: utf-8 -*-
from dp_tornado.engine.helper import Helper as dpHelper
class RandomHelper(dpHelper):
def int(self, length):
return self.helper.misc.random.numeric(length)
def range(self, minval, maxval):
if not self.helper.misc.type.check.numeric(minval) or not self.helper.misc.typ... | 27.125 | 110 | 0.691244 | 59 | 434 | 5.067797 | 0.525424 | 0.133779 | 0.187291 | 0.133779 | 0.394649 | 0.220736 | 0.220736 | 0 | 0 | 0 | 0 | 0.002849 | 0.191244 | 434 | 15 | 111 | 28.933333 | 0.849003 | 0.048387 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.125 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
de1df2374c7d1d759a8cc1a2826d39d6a11ff46a | 65 | py | Python | app/models/msg/__init__.py | kingyoungfan/v-mall-api | 86ff05608162f6127d8af59c556ef5586bad8f68 | [
"MIT"
] | null | null | null | app/models/msg/__init__.py | kingyoungfan/v-mall-api | 86ff05608162f6127d8af59c556ef5586bad8f68 | [
"MIT"
] | null | null | null | app/models/msg/__init__.py | kingyoungfan/v-mall-api | 86ff05608162f6127d8af59c556ef5586bad8f68 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# @author: yangyang
# @date 4/2/21 16:53
| 16.25 | 23 | 0.553846 | 11 | 65 | 3.272727 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169811 | 0.184615 | 65 | 3 | 24 | 21.666667 | 0.509434 | 0.892308 | 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 |
de297cfd5a09b43ef906531abe93762b78df23f6 | 216 | py | Python | Python-Files/Files Practice/Files.py | waleedrana777/code_snippets | 139fe9e6f2e13a57bd03f78953ce0560e87dfb99 | [
"MIT"
] | null | null | null | Python-Files/Files Practice/Files.py | waleedrana777/code_snippets | 139fe9e6f2e13a57bd03f78953ce0560e87dfb99 | [
"MIT"
] | null | null | null | Python-Files/Files Practice/Files.py | waleedrana777/code_snippets | 139fe9e6f2e13a57bd03f78953ce0560e87dfb99 | [
"MIT"
] | null | null | null | with open ("testcopy.txt", "r") as test_copy:
chunk_size = 10
read_data = test_copy.read(chunk_size)
while len(read_data) > 0:
print(read_data)
read_data = test_copy.read (chunk_size) | 30.857143 | 47 | 0.643519 | 33 | 216 | 3.909091 | 0.515152 | 0.248062 | 0.186047 | 0.248062 | 0.449612 | 0.449612 | 0.449612 | 0 | 0 | 0 | 0 | 0.018405 | 0.24537 | 216 | 7 | 47 | 30.857143 | 0.773006 | 0 | 0 | 0.333333 | 0 | 0 | 0.059908 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 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 |
de354dfbc37a66efe3a54723108126b0dab72104 | 25 | py | Python | homeassistant/components/mfi/__init__.py | domwillcode/home-assistant | f170c80bea70c939c098b5c88320a1c789858958 | [
"Apache-2.0"
] | 30,023 | 2016-04-13T10:17:53.000Z | 2020-03-02T12:56:31.000Z | homeassistant/components/mfi/__init__.py | jagadeeshvenkatesh/core | 1bd982668449815fee2105478569f8e4b5670add | [
"Apache-2.0"
] | 31,101 | 2020-03-02T13:00:16.000Z | 2022-03-31T23:57:36.000Z | homeassistant/components/mfi/__init__.py | jagadeeshvenkatesh/core | 1bd982668449815fee2105478569f8e4b5670add | [
"Apache-2.0"
] | 11,956 | 2016-04-13T18:42:31.000Z | 2020-03-02T09:32:12.000Z | """The mfi component."""
| 12.5 | 24 | 0.6 | 3 | 25 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12 | 25 | 1 | 25 | 25 | 0.681818 | 0.72 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
de5b5a283617f528409c121879f712d4d3f827ef | 190 | py | Python | practice/control_flow/ex3.py | recursivelycurious/wordnik-repl | 9d9e96a8ebc79b95f135d5bc871602b65d2d2b79 | [
"MIT"
] | null | null | null | practice/control_flow/ex3.py | recursivelycurious/wordnik-repl | 9d9e96a8ebc79b95f135d5bc871602b65d2d2b79 | [
"MIT"
] | 8 | 2017-12-29T21:19:00.000Z | 2018-04-01T05:05:05.000Z | practice/control_flow/ex3.py | recursivelycurious/wordnik-repl | 9d9e96a8ebc79b95f135d5bc871602b65d2d2b79 | [
"MIT"
] | 1 | 2017-12-27T23:45:58.000Z | 2017-12-27T23:45:58.000Z | # Make sure that the_flying_circus() returns True
def the_flying_circus():
if 5 >= 6:
print "yay!"
elif (5 <= 6) and 5 == 6:
print "ummm"
else:
return True
| 21.111111 | 49 | 0.557895 | 28 | 190 | 3.642857 | 0.678571 | 0.058824 | 0.294118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046875 | 0.326316 | 190 | 8 | 50 | 23.75 | 0.75 | 0.247368 | 0 | 0 | 0 | 0 | 0.056738 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.285714 | 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 |
de6f9b60d423f873d657e41c9b622205b612e9f1 | 1,734 | py | Python | tod/retinanet.py | ResByte/tod | e96d73a3f53a1f9b9de99c76afa6f2f124c01a66 | [
"Apache-2.0"
] | null | null | null | tod/retinanet.py | ResByte/tod | e96d73a3f53a1f9b9de99c76afa6f2f124c01a66 | [
"Apache-2.0"
] | null | null | null | tod/retinanet.py | ResByte/tod | e96d73a3f53a1f9b9de99c76afa6f2f124c01a66 | [
"Apache-2.0"
] | null | null | null | import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
from typing import List,Dict
__all__ = ["RetinaNet"]
class RetinaNet(nn.Module):
"""RetinaNet model for object detection
As described in : https://arxiv.org/abs/1708.02002
"""
def __init__(self):
super(R... | 23.12 | 68 | 0.589965 | 208 | 1,734 | 4.836538 | 0.538462 | 0.032803 | 0.025845 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013263 | 0.347751 | 1,734 | 74 | 69 | 23.432432 | 0.876216 | 0.540369 | 0 | 0.133333 | 0 | 0 | 0.014173 | 0 | 0 | 0 | 0 | 0.013514 | 0 | 1 | 0.266667 | false | 0 | 0.333333 | 0 | 0.733333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
de8f2bf552559d76be8f302df6a5178a315510f1 | 749 | py | Python | tests/test_tableswithtables.py | Tinche/flattrs | 6c5725aaaaa89f0bbdf444178dc7c626ec95614a | [
"MIT"
] | 7 | 2018-08-27T16:59:55.000Z | 2022-01-20T19:11:28.000Z | tests/test_tableswithtables.py | Tinche/flattrs | 6c5725aaaaa89f0bbdf444178dc7c626ec95614a | [
"MIT"
] | 1 | 2019-12-04T12:17:45.000Z | 2020-01-14T13:37:32.000Z | tests/test_tableswithtables.py | Tinche/flattrs | 6c5725aaaaa89f0bbdf444178dc7c626ec95614a | [
"MIT"
] | 2 | 2019-12-04T12:08:14.000Z | 2019-12-04T12:51:57.000Z | from hypothesis import given
from hypothesis.strategies import composite
from hypothesis.strategies._internal.core import booleans
from flattr import model_from_bytes, model_to_bytes
from .models_tableswithtables import ContainsTable, OptionalTable
from .test_common import common1s
@composite
def contains_tables(dr... | 25.827586 | 73 | 0.805073 | 97 | 749 | 5.896907 | 0.329897 | 0.062937 | 0.073427 | 0.06993 | 0.206294 | 0.206294 | 0.206294 | 0.206294 | 0.206294 | 0.206294 | 0 | 0.004498 | 0.109479 | 749 | 28 | 74 | 26.75 | 0.853073 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.222222 | false | 0 | 0.333333 | 0.111111 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
dedde65cc71c63a202e733b545aaa5876c226ebc | 163 | py | Python | file/file_utils.py | stevencdang/data_proc_lib | 7ecc93efa726ace808019c744980c5c9e0f0f329 | [
"MIT"
] | null | null | null | file/file_utils.py | stevencdang/data_proc_lib | 7ecc93efa726ace808019c744980c5c9e0f0f329 | [
"MIT"
] | null | null | null | file/file_utils.py | stevencdang/data_proc_lib | 7ecc93efa726ace808019c744980c5c9e0f0f329 | [
"MIT"
] | null | null | null | from os import mkdir, path
def trim_ext(file_name):
"""
Trim the file extension from a given file
"""
return file_name[:file_name.rindex('.')]
| 14.818182 | 45 | 0.644172 | 24 | 163 | 4.208333 | 0.666667 | 0.237624 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.239264 | 163 | 10 | 46 | 16.3 | 0.814516 | 0.251534 | 0 | 0 | 0 | 0 | 0.009524 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
dedf5753ac03a4fa886004aad5b4c7481f701f6e | 188 | py | Python | trigger_webapp/trigger_app/serializers.py | ADACS-Australia/mwa_trigger | 335752efda6251d61f40179fed9a19cf4e58ba85 | [
"MIT"
] | null | null | null | trigger_webapp/trigger_app/serializers.py | ADACS-Australia/mwa_trigger | 335752efda6251d61f40179fed9a19cf4e58ba85 | [
"MIT"
] | 9 | 2022-01-31T05:56:48.000Z | 2022-03-16T08:03:59.000Z | trigger_webapp/trigger_app/serializers.py | ADACS-Australia/mwa_trigger | 335752efda6251d61f40179fed9a19cf4e58ba85 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from . import models
class VOEventSerializer(serializers.ModelSerializer):
class Meta:
model = models.VOEvent
fields = '__all__' | 26.857143 | 53 | 0.739362 | 19 | 188 | 7.052632 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.202128 | 188 | 7 | 54 | 26.857143 | 0.893333 | 0 | 0 | 0 | 0 | 0 | 0.037037 | 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 |
72181adc745c56619ee60682e9432eea3a374283 | 92 | py | Python | 2015/02/nurse-injury-rates/graphic_config.py | nprapps/graphics-archive | 97b0ef326b46a959df930f5522d325e537f7a655 | [
"FSFAP"
] | 14 | 2015-05-08T13:41:51.000Z | 2021-02-24T12:34:55.000Z | 2015/02/nurse-injury-rates/graphic_config.py | nprapps/graphics-archive | 97b0ef326b46a959df930f5522d325e537f7a655 | [
"FSFAP"
] | null | null | null | 2015/02/nurse-injury-rates/graphic_config.py | nprapps/graphics-archive | 97b0ef326b46a959df930f5522d325e537f7a655 | [
"FSFAP"
] | 7 | 2015-04-04T04:45:54.000Z | 2021-02-18T11:12:48.000Z | #!/usr/bin/env python
COPY_GOOGLE_DOC_KEY = '1assIFoHbgfYcQ-OdFmm2q7ia2VaGQwrdZ5NmhoKImOk'
| 23 | 68 | 0.836957 | 10 | 92 | 7.4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05814 | 0.065217 | 92 | 3 | 69 | 30.666667 | 0.802326 | 0.217391 | 0 | 0 | 0 | 0 | 0.619718 | 0.619718 | 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 |
725223330b0f6c16f49e1f82a62142011e0d065b | 7,219 | py | Python | tests/test_focal_statistics.py | jasperroebroek/focal-stats | 79788aafddd9a5891f36fb866e317aec064eb77f | [
"MIT"
] | null | null | null | tests/test_focal_statistics.py | jasperroebroek/focal-stats | 79788aafddd9a5891f36fb866e317aec064eb77f | [
"MIT"
] | null | null | null | tests/test_focal_statistics.py | jasperroebroek/focal-stats | 79788aafddd9a5891f36fb866e317aec064eb77f | [
"MIT"
] | null | null | null | import pytest
import numpy as np
import scipy.stats
import focal_stats
def test_focal_stats_values():
a = np.random.rand(5, 5)
# Values when not reducing
assert np.allclose(focal_stats.focal_mean(a)[2, 2], a.mean())
assert np.allclose(focal_stats.focal_sum(a)[2, 2], a.sum())
assert np.allclose(fo... | 41.488506 | 116 | 0.6041 | 1,030 | 7,219 | 4.048544 | 0.102913 | 0.16307 | 0.201439 | 0.04988 | 0.820863 | 0.788729 | 0.695683 | 0.689688 | 0.666906 | 0.602158 | 0 | 0.036546 | 0.268458 | 7,219 | 173 | 117 | 41.728324 | 0.753077 | 0.067599 | 0 | 0.488 | 0 | 0 | 0.009676 | 0 | 0 | 0 | 0 | 0 | 0.248 | 1 | 0.064 | false | 0 | 0.032 | 0 | 0.096 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 1 | 1 | 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 |
a0ddf6dceda607695a55d78b05a9d85a1b88d1c3 | 1,242 | py | Python | project/apps/common/tests/test_utils.py | expert-m/crazy-bear | 46b7a907f940116831378e1eff6d01badbdcc975 | [
"MIT"
] | null | null | null | project/apps/common/tests/test_utils.py | expert-m/crazy-bear | 46b7a907f940116831378e1eff6d01badbdcc975 | [
"MIT"
] | 5 | 2021-08-14T03:12:56.000Z | 2022-02-16T12:37:15.000Z | project/apps/common/tests/test_utils.py | expert-m/crazy-bear | 46b7a907f940116831378e1eff6d01badbdcc975 | [
"MIT"
] | null | null | null | import unittest
import datetime
from unittest.mock import patch
from ..utils import is_sleep_hours
class UtilsTestCase(unittest.TestCase):
def test_is_sleep_hours(self):
timestamp_tpl = dict(year=2020, month=1, day=1)
with patch('project.config.SLEEP_HOURS', [0, 6]):
self.assertTrue(... | 49.68 | 89 | 0.708535 | 160 | 1,242 | 5.2625 | 0.2625 | 0.166271 | 0.171021 | 0.23753 | 0.775534 | 0.775534 | 0.699525 | 0.699525 | 0.699525 | 0.694774 | 0 | 0.025 | 0.162641 | 1,242 | 24 | 90 | 51.75 | 0.784615 | 0 | 0 | 0 | 0 | 0 | 0.041868 | 0.041868 | 0 | 0 | 0 | 0 | 0.526316 | 1 | 0.052632 | false | 0 | 0.210526 | 0 | 0.315789 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
a0e04bd9a099b146c9f32795f8839d1e44e5a27c | 138 | py | Python | Python/PythonTest02/src/calc/calculator.py | tduoth/JsObjects | eb3e2a8b1f47d0da53c8b1a85a7949269711932f | [
"MIT"
] | 22 | 2015-02-26T09:07:18.000Z | 2020-05-10T16:22:05.000Z | Python/PythonTest02/src/calc/calculator.py | tduoth/JsObjects | eb3e2a8b1f47d0da53c8b1a85a7949269711932f | [
"MIT"
] | 123 | 2016-04-05T18:32:41.000Z | 2022-03-13T21:09:21.000Z | Python/PythonTest02/src/calc/calculator.py | tduoth/JsObjects | eb3e2a8b1f47d0da53c8b1a85a7949269711932f | [
"MIT"
] | 56 | 2015-03-19T22:26:37.000Z | 2021-12-06T02:52:02.000Z | #! /usr/bin/python
class Calculator(object):
def add(self, operanda, operandb):
return operanda + operandb
| 11.5 | 38 | 0.586957 | 14 | 138 | 5.785714 | 0.857143 | 0.395062 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.311594 | 138 | 11 | 39 | 12.545455 | 0.852632 | 0.123188 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
9d245149ebf69ed6be2281c027c9347523f846f8 | 178 | py | Python | utils/forGAN.py | khRay13/rmbgGAN | 56bb4190f76e736948b64c189cfa54ac8c2f561e | [
"MIT"
] | 1 | 2021-12-28T03:25:10.000Z | 2021-12-28T03:25:10.000Z | utils/forGAN.py | khRay13/rmbgGAN | 56bb4190f76e736948b64c189cfa54ac8c2f561e | [
"MIT"
] | null | null | null | utils/forGAN.py | khRay13/rmbgGAN | 56bb4190f76e736948b64c189cfa54ac8c2f561e | [
"MIT"
] | 1 | 2019-09-07T16:36:45.000Z | 2019-09-07T16:36:45.000Z | import cv2, numpy as np
def normalize(img):
return cv2.resize(img, (256,256)).reshape(1,256,256,img.shape[-1])/127.5-1
def reverse(pred):
return np.uint8(pred[0]*127.5+127.5) | 25.428571 | 75 | 0.702247 | 36 | 178 | 3.472222 | 0.555556 | 0.096 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192547 | 0.095506 | 178 | 7 | 76 | 25.428571 | 0.583851 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0.2 | 0.4 | 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 |
9d2a625abf985ce37dcd08711df89817f44883bf | 124 | py | Python | pra_request_tracker/pra_request_tracker/record_requests/apps.py | SeattleDSA/pra-request-tracker | 0c4c628d249efc579faaa8f1d352fa0d120a510c | [
"MIT"
] | 1 | 2021-09-30T20:25:49.000Z | 2021-09-30T20:25:49.000Z | pra_request_tracker/pra_request_tracker/record_requests/apps.py | SeattleDSA/pra-request-tracker | 0c4c628d249efc579faaa8f1d352fa0d120a510c | [
"MIT"
] | 14 | 2021-06-29T18:04:09.000Z | 2021-07-23T20:15:46.000Z | pra_request_tracker/pra_request_tracker/record_requests/apps.py | SeattleDSA/pra-request-tracker | 0c4c628d249efc579faaa8f1d352fa0d120a510c | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class RecordRequestsConfig(AppConfig):
name = "pra_request_tracker.record_requests"
| 20.666667 | 48 | 0.814516 | 14 | 124 | 7 | 0.928571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.120968 | 124 | 5 | 49 | 24.8 | 0.899083 | 0 | 0 | 0 | 0 | 0 | 0.282258 | 0.282258 | 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 |
9d2df282540e52bdbe226c4d65730deeadb92981 | 777 | py | Python | eridanus/theme.py | mithrandi/eridanus | 11c80c7024548ce7c41800b077d3d0a738a04875 | [
"MIT"
] | null | null | null | eridanus/theme.py | mithrandi/eridanus | 11c80c7024548ce7c41800b077d3d0a738a04875 | [
"MIT"
] | 5 | 2021-03-18T20:19:01.000Z | 2022-03-11T23:14:44.000Z | eridanus/theme.py | mithrandi/eridanus | 11c80c7024548ce7c41800b077d3d0a738a04875 | [
"MIT"
] | 1 | 2018-01-10T15:15:15.000Z | 2018-01-10T15:15:15.000Z | from nevow import tags
from xmantissa import webtheme
class Theme(webtheme.XHTMLDirectoryTheme):
def head(self, request, website):
def styleSheetLink(href):
return tags.link(rel='stylesheet', type='text/css', href=href)
root = website.cleartextRoot(request.getHeader('host'))
... | 35.318182 | 118 | 0.656371 | 94 | 777 | 5.425532 | 0.457447 | 0.101961 | 0.062745 | 0.194118 | 0.333333 | 0.270588 | 0.203922 | 0 | 0 | 0 | 0 | 0.006182 | 0.16731 | 777 | 21 | 119 | 37 | 0.782071 | 0 | 0 | 0.142857 | 0 | 0 | 0.177606 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0.071429 | 0.142857 | 0.071429 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
19c9c9eb7ed8f2b44077c4676056af489637fc78 | 39 | py | Python | imagetagger/venv/lib/python3.7/genericpath.py | wrigsa/ImageTagger | d8a7ab7d004eeda8deae423eccc7236c4accab47 | [
"MIT"
] | 8 | 2020-04-09T13:37:16.000Z | 2021-11-22T01:26:02.000Z | env/lib/python3.7/genericpath.py | karenhao/Office-365-Flask-App-kudos | 95500ec55169f49eb281fff9905ad0b7f94d6fa3 | [
"MIT"
] | 23 | 2019-01-19T08:54:48.000Z | 2022-03-11T23:39:37.000Z | env/lib/python3.7/genericpath.py | karenhao/Office-365-Flask-App-kudos | 95500ec55169f49eb281fff9905ad0b7f94d6fa3 | [
"MIT"
] | 5 | 2021-01-12T07:03:31.000Z | 2021-09-27T16:30:24.000Z | /anaconda3/lib/python3.7/genericpath.py | 39 | 39 | 0.846154 | 6 | 39 | 5.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 0 | 39 | 1 | 39 | 39 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
19cffed3b0db8111eaaeb0a3642f149aa071c373 | 320 | py | Python | siam_tracker/models/utils/__init__.py | microsoft/PySiamTracking | a82dabeaa42a7816dbd8e823da7b7e92ebb622ce | [
"MIT"
] | 28 | 2020-03-18T04:41:21.000Z | 2022-02-24T16:44:01.000Z | siam_tracker/models/utils/__init__.py | HengFan2010/PySiamTracking | a82dabeaa42a7816dbd8e823da7b7e92ebb622ce | [
"MIT"
] | 1 | 2020-04-05T15:23:22.000Z | 2020-04-07T16:23:12.000Z | siam_tracker/models/utils/__init__.py | HengFan2010/PySiamTracking | a82dabeaa42a7816dbd8e823da7b7e92ebb622ce | [
"MIT"
] | 11 | 2020-03-19T00:30:06.000Z | 2021-11-10T08:22:35.000Z | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
from .conv_module import ConvModule, build_conv_layer, build_stack_conv_layers
from .fully_connected import build_stack_fc_layers
from .norm import build_norm_layer
from .weight_init import random_init_weights, constant_init
| 40 | 78 | 0.85 | 47 | 320 | 5.446809 | 0.638298 | 0.078125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10625 | 320 | 7 | 79 | 45.714286 | 0.895105 | 0.278125 | 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 |
19d767d14af1b40db62545b3723307933ba5912f | 79 | py | Python | app/python/testServer.py | FabianGD/epycure-react | 998b6f9b2edb35401d4d3928099b48257ad442ad | [
"MIT"
] | null | null | null | app/python/testServer.py | FabianGD/epycure-react | 998b6f9b2edb35401d4d3928099b48257ad442ad | [
"MIT"
] | null | null | null | app/python/testServer.py | FabianGD/epycure-react | 998b6f9b2edb35401d4d3928099b48257ad442ad | [
"MIT"
] | null | null | null | import zmq as zmq
def test():
pass
if __name__ = '__main__':
test()
| 8.777778 | 25 | 0.594937 | 11 | 79 | 3.545455 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.291139 | 79 | 8 | 26 | 9.875 | 0.696429 | 0 | 0 | 0 | 0 | 0 | 0.102564 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.2 | 0.2 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
19eb0511787ab425e917e885a10264b345a3e948 | 192 | py | Python | tests/plugins/advanced.py | nnop/pluginbase | af0454a6f0a7cdd118e63a116a2b60efc3827c32 | [
"BSD-3-Clause"
] | 803 | 2015-01-21T05:03:13.000Z | 2022-03-25T11:21:58.000Z | tests/plugins/advanced.py | nnop/pluginbase | af0454a6f0a7cdd118e63a116a2b60efc3827c32 | [
"BSD-3-Clause"
] | 20 | 2015-01-01T17:25:50.000Z | 2021-05-16T16:22:43.000Z | tests/plugins/advanced.py | nnop/pluginbase | af0454a6f0a7cdd118e63a116a2b60efc3827c32 | [
"BSD-3-Clause"
] | 185 | 2015-03-18T11:09:57.000Z | 2022-03-24T05:10:36.000Z | from pluginbase import get_plugin_source
def get_app():
rv = get_plugin_source(stacklevel=1)
if rv is not None:
return rv.app
def get_app_name():
return get_app().name
| 16 | 40 | 0.692708 | 31 | 192 | 4.032258 | 0.548387 | 0.144 | 0.24 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006757 | 0.229167 | 192 | 11 | 41 | 17.454545 | 0.837838 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0.142857 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
19ef0123edd86d1e400c64f60343dd26d110c371 | 960 | py | Python | APIServer/database/models.py | gcallah/SOCNET | dd8f0894e8ed071df7f78f3b61dddc7d5cf7be61 | [
"MIT"
] | 1 | 2021-02-04T19:16:16.000Z | 2021-02-04T19:16:16.000Z | APIServer/database/models.py | gcallah/SOCNET | dd8f0894e8ed071df7f78f3b61dddc7d5cf7be61 | [
"MIT"
] | null | null | null | APIServer/database/models.py | gcallah/SOCNET | dd8f0894e8ed071df7f78f3b61dddc7d5cf7be61 | [
"MIT"
] | 1 | 2021-02-12T21:27:25.000Z | 2021-02-12T21:27:25.000Z | from APIServer import db
class Alert(db.Model):
__tablename__ = "alerts"
id = db.Column(db.Integer, primary_key=True)
event_datetime = db.Column(db.Text)
event_zipcode = db.Column(db.Text)
event_city = db.Column(db.Text)
event_state = db.Column(db.Text)
event_country = db.Column(db.Text)
... | 28.235294 | 68 | 0.695833 | 141 | 960 | 4.524823 | 0.283688 | 0.213166 | 0.266458 | 0.219436 | 0.523511 | 0.315047 | 0.315047 | 0.315047 | 0 | 0 | 0 | 0.003783 | 0.173958 | 960 | 33 | 69 | 29.090909 | 0.800757 | 0 | 0 | 0.083333 | 0 | 0 | 0.021875 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.041667 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
c21a022a61d625a4361f65b54f449c14183f823e | 233 | py | Python | psdaq/psdaq/tests/test_rogue.py | ZhenghengLi/lcls2 | 94e75c6536954a58c8937595dcac295163aa1cdf | [
"BSD-3-Clause-LBNL"
] | 16 | 2017-11-09T17:10:56.000Z | 2022-03-09T23:03:10.000Z | psdaq/psdaq/tests/test_rogue.py | ZhenghengLi/lcls2 | 94e75c6536954a58c8937595dcac295163aa1cdf | [
"BSD-3-Clause-LBNL"
] | 6 | 2017-12-12T19:30:05.000Z | 2020-07-09T00:28:33.000Z | psdaq/psdaq/tests/test_rogue.py | ZhenghengLi/lcls2 | 94e75c6536954a58c8937595dcac295163aa1cdf | [
"BSD-3-Clause-LBNL"
] | 25 | 2017-09-18T20:02:43.000Z | 2022-03-27T22:27:42.000Z | import pytest
def test_rogue():
# do this simple test since rogue has a rather complex boost dependency
# which we have gotten wrong in the past - valmar and cpo
import rogue
if __name__ == "__main__":
test_rogue()
| 23.3 | 75 | 0.708155 | 35 | 233 | 4.428571 | 0.828571 | 0.116129 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.236052 | 233 | 9 | 76 | 25.888889 | 0.870787 | 0.536481 | 0 | 0 | 0 | 0 | 0.07619 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0.4 | 0 | 0.6 | 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 |
dfa769b64eb8829466337b399b04f21194ed88d4 | 152 | py | Python | theme_eliiza/__init__.py | eliiza/theme_eliiza | a11b740df418aa096dc4cdc9f0e102b89fbd9bbc | [
"MIT"
] | null | null | null | theme_eliiza/__init__.py | eliiza/theme_eliiza | a11b740df418aa096dc4cdc9f0e102b89fbd9bbc | [
"MIT"
] | null | null | null | theme_eliiza/__init__.py | eliiza/theme_eliiza | a11b740df418aa096dc4cdc9f0e102b89fbd9bbc | [
"MIT"
] | null | null | null | from .plotnine import (eliiza_purple, eliiza_teal,
eliiza_navy, eliiza_dark_purple,
theme_eliiza, phi)
| 38 | 56 | 0.565789 | 15 | 152 | 5.333333 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.381579 | 152 | 3 | 57 | 50.666667 | 0.851064 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
dfb9fc253954ebd2b64c469fa6fcf9c3de366684 | 945 | py | Python | 01_introduction/guess_a_number.py | brunnerp/PythonFachkurs | 56589190451ba2155defb1947dcc58f945c471a0 | [
"MIT"
] | null | null | null | 01_introduction/guess_a_number.py | brunnerp/PythonFachkurs | 56589190451ba2155defb1947dcc58f945c471a0 | [
"MIT"
] | null | null | null | 01_introduction/guess_a_number.py | brunnerp/PythonFachkurs | 56589190451ba2155defb1947dcc58f945c471a0 | [
"MIT"
] | null | null | null | from random import randint
def guess_a_number():
"""Game to guess a number the computer randomly generated."""
# TODO:
# generate a random number (uniformly distributed between 0 and 100)
# read input from the user and validate that the input is numeric (use the function check_raw)
# check whethe... | 30.483871 | 104 | 0.725926 | 142 | 945 | 4.697183 | 0.443662 | 0.052474 | 0.053973 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00534 | 0.207407 | 945 | 30 | 105 | 31.5 | 0.88518 | 0.660317 | 0 | 0 | 1 | 0 | 0.061224 | 0 | 0 | 0 | 0 | 0.033333 | 0 | 1 | 0.571429 | false | 0 | 0.142857 | 0 | 0.857143 | 0.142857 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
dfd5786e6377004b622bc4a279dcc89bee324700 | 197 | py | Python | src/applications/reminders/views/reminder.py | tgrx/obliviscor | 31f9a4476892460c931b9a8fc5403c3afcc47607 | [
"Apache-2.0"
] | null | null | null | src/applications/reminders/views/reminder.py | tgrx/obliviscor | 31f9a4476892460c931b9a8fc5403c3afcc47607 | [
"Apache-2.0"
] | 20 | 2020-04-16T23:45:50.000Z | 2020-05-05T14:22:03.000Z | src/applications/reminders/views/reminder.py | tgrx/obliviscor | 31f9a4476892460c931b9a8fc5403c3afcc47607 | [
"Apache-2.0"
] | null | null | null | from django.views.generic import DetailView
from applications.reminders.models import Reminder
class ReminderView(DetailView):
template_name = "reminders/reminder.html"
model = Reminder
| 21.888889 | 50 | 0.796954 | 22 | 197 | 7.090909 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137056 | 197 | 8 | 51 | 24.625 | 0.917647 | 0 | 0 | 0 | 0 | 0 | 0.116751 | 0.116751 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
dff4673d4758fdd80081debb2a5376fc1ba056fa | 177 | py | Python | pythondesafios/desafio047.py | matheus-rosario/curso-python | ac9ccf7fc4b3f708821e44787a1bdc231d9426ac | [
"MIT"
] | null | null | null | pythondesafios/desafio047.py | matheus-rosario/curso-python | ac9ccf7fc4b3f708821e44787a1bdc231d9426ac | [
"MIT"
] | null | null | null | pythondesafios/desafio047.py | matheus-rosario/curso-python | ac9ccf7fc4b3f708821e44787a1bdc231d9426ac | [
"MIT"
] | null | null | null | #Crie um programa que mostre na tela todos os números pares que estão no intervalo entre 1 e 50.
print('Os números pares entre 1 e 50 são:')
for c in range(2, 51, 2):
print(c) | 44.25 | 96 | 0.723164 | 37 | 177 | 3.459459 | 0.702703 | 0.140625 | 0.21875 | 0.140625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070423 | 0.19774 | 177 | 4 | 97 | 44.25 | 0.830986 | 0.536723 | 0 | 0 | 0 | 0 | 0.414634 | 0 | 0 | 0 | 0 | 0.25 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.666667 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
5f0ad559628e9ed1c7c9a05fb15e31281a2a97e3 | 2,204 | py | Python | src/genie/libs/parser/slxos/tests/ShowVersion/cli/equal/golden_output1_expected.py | fpessoanunes/genieparser | 8597aae1799f8a540214d6dbcfd545d2ebe369e4 | [
"Apache-2.0"
] | null | null | null | src/genie/libs/parser/slxos/tests/ShowVersion/cli/equal/golden_output1_expected.py | fpessoanunes/genieparser | 8597aae1799f8a540214d6dbcfd545d2ebe369e4 | [
"Apache-2.0"
] | null | null | null | src/genie/libs/parser/slxos/tests/ShowVersion/cli/equal/golden_output1_expected.py | fpessoanunes/genieparser | 8597aae1799f8a540214d6dbcfd545d2ebe369e4 | [
"Apache-2.0"
] | null | null | null | expected_output = {
"version": {
"build_time": "08:13:43 Apr 7, 2021",
"firmware_ver": "18r.1.00h",
"install_time": "07:14:32 Jun 1, 2021",
"slot": {
"L1/0": {
"name": "L1/0",
"primary_ver": "18r.1.00h",
"secondary_ver": "... | 31.042254 | 53 | 0.329855 | 197 | 2,204 | 3.563452 | 0.228426 | 0.179487 | 0.209402 | 0.299145 | 0.68661 | 0.68661 | 0.68661 | 0.68661 | 0.68661 | 0.68661 | 0 | 0.150576 | 0.48775 | 2,204 | 70 | 54 | 31.485714 | 0.471213 | 0 | 0 | 0.414286 | 0 | 0 | 0.357078 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
5f0b50dded526a4282d3d071925ecd73c0e6d1c4 | 91 | py | Python | ciscoise/__init__.py | rahul-nitkkr/ise-guest-migrator | 9174256cc6cbe527efa4e791c6cbeae915a6d1da | [
"MIT"
] | null | null | null | ciscoise/__init__.py | rahul-nitkkr/ise-guest-migrator | 9174256cc6cbe527efa4e791c6cbeae915a6d1da | [
"MIT"
] | 1 | 2021-11-18T02:35:11.000Z | 2021-11-18T13:00:25.000Z | ciscoise/__init__.py | rahul-nitkkr/ise-guest-migrator | 9174256cc6cbe527efa4e791c6cbeae915a6d1da | [
"MIT"
] | 1 | 2021-11-18T17:03:24.000Z | 2021-11-18T17:03:24.000Z | from .session import ISESession
# from .exception import ISEError
from .client import ISE
| 18.2 | 33 | 0.802198 | 12 | 91 | 6.083333 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 91 | 4 | 34 | 22.75 | 0.948052 | 0.340659 | 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 |
5f0c15e6f46abed739e81832c81f9458871833f3 | 285 | py | Python | insurance/insurance/doctype/employer/test_employer.py | philliyg/insurance | 590da1be4c86aa68e2ada91929b9d86bc88a450d | [
"MIT"
] | 2 | 2017-04-15T00:19:38.000Z | 2018-04-10T20:38:02.000Z | insurance/insurance/doctype/employer/test_employer.py | philliyg/insurance | 590da1be4c86aa68e2ada91929b9d86bc88a450d | [
"MIT"
] | null | null | null | insurance/insurance/doctype/employer/test_employer.py | philliyg/insurance | 590da1be4c86aa68e2ada91929b9d86bc88a450d | [
"MIT"
] | 5 | 2017-04-15T00:19:39.000Z | 2018-01-25T14:08:08.000Z | # -*- coding: utf-8 -*-
# Copyright (c) 2015, Opensource Solutions Philippines and Contributors
# See license.txt
from __future__ import unicode_literals
import frappe
import unittest
# test_records = frappe.get_test_records('Employer')
class TestEmployer(unittest.TestCase):
pass
| 21.923077 | 71 | 0.782456 | 35 | 285 | 6.142857 | 0.828571 | 0.102326 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02008 | 0.126316 | 285 | 12 | 72 | 23.75 | 0.843373 | 0.554386 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.2 | 0.6 | 0 | 0.8 | 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 |
5f1b26a9b34d29d5088e9b517e9dbdaba82ef42f | 149 | py | Python | nytimesarticlev2/tests.py | rushic24/NYTimesArticleAPI | e9d9ca3febbc350c3e15579b47de4e3973a9d352 | [
"MIT"
] | 1 | 2021-11-07T20:08:03.000Z | 2021-11-07T20:08:03.000Z | nytimesarticlev2/tests.py | rushic24/NYTimesArticleAPI | e9d9ca3febbc350c3e15579b47de4e3973a9d352 | [
"MIT"
] | null | null | null | nytimesarticlev2/tests.py | rushic24/NYTimesArticleAPI | e9d9ca3febbc350c3e15579b47de4e3973a9d352 | [
"MIT"
] | null | null | null | import unittest
import os
class nytimesarticlev2Tests(unittest.TestCase):
def __init__(self):
self.api_key = os.environ["NYT_API_KEY"]
| 18.625 | 48 | 0.738255 | 19 | 149 | 5.421053 | 0.684211 | 0.116505 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008065 | 0.167785 | 149 | 7 | 49 | 21.285714 | 0.822581 | 0 | 0 | 0 | 0 | 0 | 0.073826 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
5f2860b8b5af73c01b7e4adfa2a123a1e55d46c1 | 299 | py | Python | src/pyucis/source_file.py | cmarqu/pyucis | ea080ea1fb09be5d1a1e6eabe83f205a7d17d229 | [
"Apache-2.0"
] | null | null | null | src/pyucis/source_file.py | cmarqu/pyucis | ea080ea1fb09be5d1a1e6eabe83f205a7d17d229 | [
"Apache-2.0"
] | null | null | null | src/pyucis/source_file.py | cmarqu/pyucis | ea080ea1fb09be5d1a1e6eabe83f205a7d17d229 | [
"Apache-2.0"
] | null | null | null | '''
Created on Jan 5, 2020
@author: ballance
'''
from pyucis.unimpl_error import UnimplError
class SourceFile():
def __init__(self):
pass
def getFilename(self) -> str:
raise UnimplError()
def setFilename(self, filename : str):
raise UnimplError() | 17.588235 | 43 | 0.622074 | 32 | 299 | 5.65625 | 0.75 | 0.088398 | 0.209945 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023148 | 0.277592 | 299 | 17 | 44 | 17.588235 | 0.814815 | 0.137124 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0.125 | 0.125 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
a02b9b9f5fe976e83ab6d47cd93fc9e1f1e1c34e | 5,525 | py | Python | lib/VAE.py | nkaeming/unsupervised-machine-learning-of-topological-phase-transitions-from-experimental-data | 5f63ca8990f1aac2df2cbbc15529e892d945241f | [
"MIT"
] | 6 | 2021-04-01T14:06:09.000Z | 2022-03-16T09:39:21.000Z | lib/VAE.py | nkaeming/unsupervised-machine-learning-of-topological-phase-transitions-from-experimental-data | 5f63ca8990f1aac2df2cbbc15529e892d945241f | [
"MIT"
] | null | null | null | lib/VAE.py | nkaeming/unsupervised-machine-learning-of-topological-phase-transitions-from-experimental-data | 5f63ca8990f1aac2df2cbbc15529e892d945241f | [
"MIT"
] | 1 | 2021-03-20T12:49:53.000Z | 2021-03-20T12:49:53.000Z | import tensorflow as tf
class CVAE(tf.keras.Model):
"""Convolutional variational autoencoder."""
def __init__(self, latent_dim, encoder, decoder):
super(CVAE, self).__init__()
self.latent_dim = latent_dim
self.encoder = encoder
self.decoder = decoder
@tf.function
def ... | 46.428571 | 125 | 0.571765 | 669 | 5,525 | 4.512706 | 0.137519 | 0.078834 | 0.124876 | 0.092746 | 0.76681 | 0.756211 | 0.729381 | 0.717125 | 0.698576 | 0.682676 | 0 | 0.049724 | 0.312036 | 5,525 | 118 | 126 | 46.822034 | 0.744541 | 0.033665 | 0 | 0.464646 | 0 | 0 | 0.016544 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.070707 | false | 0 | 0.010101 | 0 | 0.161616 | 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 |
a06416b8f2fcb4a4383a3e4d4285d12d62890263 | 2,191 | py | Python | application_form/migrations/0010_remove_models.py | frwickst/apartment-application-service | 40387327a0f82ba01bfcb6ab8532ea4aec40d37a | [
"MIT"
] | 1 | 2021-03-15T11:29:12.000Z | 2021-03-15T11:29:12.000Z | application_form/migrations/0010_remove_models.py | frwickst/apartment-application-service | 40387327a0f82ba01bfcb6ab8532ea4aec40d37a | [
"MIT"
] | 130 | 2020-09-07T08:30:29.000Z | 2022-03-29T11:49:27.000Z | application_form/migrations/0010_remove_models.py | frwickst/apartment-application-service | 40387327a0f82ba01bfcb6ab8532ea4aec40d37a | [
"MIT"
] | 4 | 2020-09-07T05:34:13.000Z | 2021-11-07T12:51:21.000Z | # Generated by Django 2.2.21 on 2021-05-19 06:59
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("application_form", "0009_blank_rejection_description"),
]
operations = [
migrations.RemoveField(
model_name="hasoapartmentpriority",
... | 28.089744 | 65 | 0.566408 | 137 | 2,191 | 8.912409 | 0.291971 | 0.17199 | 0.21294 | 0.2457 | 0.570025 | 0.511057 | 0.227682 | 0 | 0 | 0 | 0 | 0.013793 | 0.338202 | 2,191 | 77 | 66 | 28.454545 | 0.828276 | 0.020995 | 0 | 0.746479 | 1 | 0 | 0.267382 | 0.161923 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.014085 | 0 | 0.056338 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
a06dc8a7dc1f96f1bea6e74a75716b28bdc5a94d | 804 | py | Python | deep-rl/lib/python2.7/site-packages/OpenGL/GL/SGIX/calligraphic_fragment.py | ShujaKhalid/deep-rl | 99c6ba6c3095d1bfdab81bd01395ced96bddd611 | [
"MIT"
] | 87 | 2015-04-09T16:57:27.000Z | 2022-02-21T13:21:12.000Z | deep-rl/lib/python2.7/site-packages/OpenGL/GL/SGIX/calligraphic_fragment.py | ShujaKhalid/deep-rl | 99c6ba6c3095d1bfdab81bd01395ced96bddd611 | [
"MIT"
] | 47 | 2015-04-09T21:05:30.000Z | 2021-06-22T15:21:18.000Z | deep-rl/lib/python2.7/site-packages/OpenGL/GL/SGIX/calligraphic_fragment.py | ShujaKhalid/deep-rl | 99c6ba6c3095d1bfdab81bd01395ced96bddd611 | [
"MIT"
] | 16 | 2015-04-09T19:10:22.000Z | 2020-07-19T05:41:06.000Z | '''OpenGL extension SGIX.calligraphic_fragment
This module customises the behaviour of the
OpenGL.raw.GL.SGIX.calligraphic_fragment to provide a more
Python-friendly API
The official definition of this extension is available here:
http://www.opengl.org/registry/specs/SGIX/calligraphic_fragment.txt
'''
from OpenGL i... | 34.956522 | 71 | 0.817164 | 104 | 804 | 6.211538 | 0.5 | 0.092879 | 0.185759 | 0.069659 | 0.193498 | 0.193498 | 0.139319 | 0.139319 | 0 | 0 | 0 | 0 | 0.116915 | 804 | 23 | 72 | 34.956522 | 0.909859 | 0.482587 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | true | 0 | 0.777778 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
a0975e014ddf87b5af85686e9a8dbac4cd12f6cc | 1,055 | py | Python | 4/state/StateSwitcher.py | ytyaru/Pygame.GameState.201707251432 | c2a67c9f0c6ff9ee5c495be02d8c775b897f16d2 | [
"CC0-1.0"
] | null | null | null | 4/state/StateSwitcher.py | ytyaru/Pygame.GameState.201707251432 | c2a67c9f0c6ff9ee5c495be02d8c775b897f16d2 | [
"CC0-1.0"
] | null | null | null | 4/state/StateSwitcher.py | ytyaru/Pygame.GameState.201707251432 | c2a67c9f0c6ff9ee5c495be02d8c775b897f16d2 | [
"CC0-1.0"
] | null | null | null | import pygame
from pygame.locals import *
from abc import ABCMeta, abstractmethod
from .GameState import GameState
from .SelectState import SelectState
from .AnimateState import AnimateState
from .ResultState import ResultState
class StateSwitcher:
def __init__(self):
self.__states = [c(self) for c in [Sel... | 37.678571 | 84 | 0.709005 | 147 | 1,055 | 4.680272 | 0.278912 | 0.111919 | 0.19186 | 0.271802 | 0.297965 | 0.260174 | 0.168605 | 0.098837 | 0.098837 | 0 | 0 | 0.010676 | 0.200948 | 1,055 | 27 | 85 | 39.074074 | 0.805457 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.28 | false | 0 | 0.28 | 0.04 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
a0c460cb009cfb6197f4b632aabc49e5b862ee21 | 558 | py | Python | race_service/adapters/__init__.py | langrenn-sprint/race-service | a5f3ca8d381e8e4d81bae25cccee0cb47b64400b | [
"Apache-2.0"
] | null | null | null | race_service/adapters/__init__.py | langrenn-sprint/race-service | a5f3ca8d381e8e4d81bae25cccee0cb47b64400b | [
"Apache-2.0"
] | 62 | 2021-09-14T18:47:38.000Z | 2022-03-21T22:14:20.000Z | race_service/adapters/__init__.py | langrenn-sprint/race-service | a5f3ca8d381e8e4d81bae25cccee0cb47b64400b | [
"Apache-2.0"
] | null | null | null | """Package for all adapters."""
from .events_adapter import (
ContestantsNotFoundException,
EventNotFoundException,
EventsAdapter,
FormatConfigurationNotFoundException,
RaceclassesNotFoundException,
)
from .race_results_adapter import RaceResultsAdapter
from .raceplans_adapter import RaceplansAdapte... | 34.875 | 54 | 0.849462 | 51 | 558 | 9.078431 | 0.568627 | 0.224622 | 0.082073 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 558 | 15 | 55 | 37.2 | 0.933468 | 0.044803 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.571429 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
26312aa93e08ac0036dd94b9667a046324511b55 | 163 | py | Python | answers/AkshajV1309/Day3/D3Q2.py | arc03/30-DaysOfCode-March-2021 | 6d6e11bf70280a578113f163352fa4fa8408baf6 | [
"MIT"
] | 22 | 2021-03-16T14:07:47.000Z | 2021-08-13T08:52:50.000Z | answers/AkshajV1309/Day3/D3Q2.py | arc03/30-DaysOfCode-March-2021 | 6d6e11bf70280a578113f163352fa4fa8408baf6 | [
"MIT"
] | 174 | 2021-03-16T21:16:40.000Z | 2021-06-12T05:19:51.000Z | answers/AkshajV1309/Day3/D3Q2.py | arc03/30-DaysOfCode-March-2021 | 6d6e11bf70280a578113f163352fa4fa8408baf6 | [
"MIT"
] | 135 | 2021-03-16T16:47:12.000Z | 2021-06-27T14:22:38.000Z | og=list(input("Enter number "))
new=set(og)
print("".join(og),"is a Unique Number") if len(new)==len(og) else print("".join(og),"is not a Unique Number")
| 23.285714 | 109 | 0.625767 | 29 | 163 | 3.517241 | 0.551724 | 0.176471 | 0.215686 | 0.254902 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153374 | 163 | 6 | 110 | 27.166667 | 0.73913 | 0 | 0 | 0 | 0 | 0 | 0.325153 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 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 |
2655094988cacbab449d54b515d8fca1ad43ea7e | 1,309 | py | Python | src/model.py | skvis/Text_Generation_Using_LSTM | 87ae1a75173bc219a9b1e869e41346c8a57d23f4 | [
"MIT"
] | null | null | null | src/model.py | skvis/Text_Generation_Using_LSTM | 87ae1a75173bc219a9b1e869e41346c8a57d23f4 | [
"MIT"
] | null | null | null | src/model.py | skvis/Text_Generation_Using_LSTM | 87ae1a75173bc219a9b1e869e41346c8a57d23f4 | [
"MIT"
] | null | null | null | import config
import tensorflow as tf
import joblib
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Embedding, Bidirectional, LSTM, Dense, Dropout
def rnn():
vocab_size = joblib.load(f'{config.MODEL_PATH}vocab_size.pkl')
max_length = joblib.load(f"{config.MODEL_PATH}max_len... | 29.75 | 82 | 0.669977 | 175 | 1,309 | 4.88 | 0.257143 | 0.131148 | 0.087822 | 0.093677 | 0.775176 | 0.748244 | 0.748244 | 0.748244 | 0.713115 | 0.522248 | 0 | 0.023901 | 0.200917 | 1,309 | 43 | 83 | 30.44186 | 0.792543 | 0 | 0 | 0.636364 | 0 | 0 | 0.113063 | 0.096257 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060606 | false | 0 | 0.151515 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 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 |
cd0f94914332e937ad7f2ba45e3e4120e805d558 | 33 | py | Python | tests/__init__.py | cmsteffen-code/steffentools | af26d7e9e7e0e749c4ffbe23bfdd407bd20f0dbe | [
"MIT"
] | null | null | null | tests/__init__.py | cmsteffen-code/steffentools | af26d7e9e7e0e749c4ffbe23bfdd407bd20f0dbe | [
"MIT"
] | null | null | null | tests/__init__.py | cmsteffen-code/steffentools | af26d7e9e7e0e749c4ffbe23bfdd407bd20f0dbe | [
"MIT"
] | null | null | null | """SteffenTools Tests Module."""
| 16.5 | 32 | 0.69697 | 3 | 33 | 7.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 33 | 1 | 33 | 33 | 0.766667 | 0.787879 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
cd139569d323f2ae0c0543c420264ace83419781 | 43 | py | Python | Ladder 11/Python/054.Little Elephant and Function.py | purush34/a2oj-solutions | 1ce6e2647b2f2ae47d3c03337ae4af1a7d5c8edb | [
"MIT"
] | null | null | null | Ladder 11/Python/054.Little Elephant and Function.py | purush34/a2oj-solutions | 1ce6e2647b2f2ae47d3c03337ae4af1a7d5c8edb | [
"MIT"
] | 1 | 2021-12-01T06:53:18.000Z | 2021-12-01T07:09:31.000Z | Ladder 11/Python/054.Little Elephant and Function.py | purush34/a2oj-solutions | 1ce6e2647b2f2ae47d3c03337ae4af1a7d5c8edb | [
"MIT"
] | 4 | 2021-10-31T16:36:28.000Z | 2021-12-01T05:48:31.000Z | x = int(input())
print(x,*list(range(1,x))) | 21.5 | 26 | 0.604651 | 9 | 43 | 2.888889 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025 | 0.069767 | 43 | 2 | 26 | 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 |
cd24e98cf82cdd9b7bdb1b3f42b7116059e387c1 | 101 | py | Python | rep/test/__init__.py | HolyBayes/rep | 8a8d70f87e148e6fd73ff0c3a8606e6074a5c47b | [
"Apache-2.0"
] | 726 | 2015-04-16T08:16:30.000Z | 2022-03-25T19:19:42.000Z | rep/test/__init__.py | HolyBayes/rep | 8a8d70f87e148e6fd73ff0c3a8606e6074a5c47b | [
"Apache-2.0"
] | 86 | 2015-04-16T23:57:01.000Z | 2021-09-26T01:03:47.000Z | rep/test/__init__.py | HolyBayes/rep | 8a8d70f87e148e6fd73ff0c3a8606e6074a5c47b | [
"Apache-2.0"
] | 167 | 2015-04-16T11:42:18.000Z | 2022-01-11T15:10:19.000Z | from __future__ import division, print_function, absolute_import
__author__ = 'Tatiana Likhomanenko' | 33.666667 | 64 | 0.851485 | 11 | 101 | 6.909091 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09901 | 101 | 3 | 65 | 33.666667 | 0.835165 | 0 | 0 | 0 | 0 | 0 | 0.196078 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 4 |
cd3cfae98e656e08089ce3cfa8ec28672d50ab0e | 185 | py | Python | 00-09/08.py | emergent/nlp100.python | 636546ce1c4368faa6685eec315773c5c9fb424a | [
"Apache-2.0"
] | null | null | null | 00-09/08.py | emergent/nlp100.python | 636546ce1c4368faa6685eec315773c5c9fb424a | [
"Apache-2.0"
] | null | null | null | 00-09/08.py | emergent/nlp100.python | 636546ce1c4368faa6685eec315773c5c9fb424a | [
"Apache-2.0"
] | null | null | null | def cipher(s):
return ''.join((map(lambda c: chr(219-ord(c)) if 97 <= ord(c) <= 122 else c, s)))
print(cipher('Anyone who has never made a mistake has never tried anything new.'))
| 37 | 85 | 0.654054 | 34 | 185 | 3.558824 | 0.764706 | 0.066116 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052288 | 0.172973 | 185 | 4 | 86 | 46.25 | 0.738562 | 0 | 0 | 0 | 0 | 0 | 0.351351 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.333333 | 0.666667 | 0.333333 | 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 |
26a66cc4e862c3f894e261974698f35489234b02 | 208 | py | Python | common/WebError.py | daijingjing/tornado_web_base | e0f76e847843354ee0b6e8d9e80a09c602b9cd29 | [
"MIT"
] | null | null | null | common/WebError.py | daijingjing/tornado_web_base | e0f76e847843354ee0b6e8d9e80a09c602b9cd29 | [
"MIT"
] | null | null | null | common/WebError.py | daijingjing/tornado_web_base | e0f76e847843354ee0b6e8d9e80a09c602b9cd29 | [
"MIT"
] | null | null | null | # -*- encoding: utf-8 -*-
class WebError(Exception):
def __init__(self, code, message=''):
Exception.__init__(self)
self.code = code
self.message = message
def __str__(self):
return self.message
| 17.333333 | 38 | 0.682692 | 26 | 208 | 5 | 0.5 | 0.123077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00578 | 0.168269 | 208 | 11 | 39 | 18.909091 | 0.745665 | 0.110577 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0 | 0.142857 | 0.571429 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
26e94ae3453e647f5d08c9a0666d5c210f15d02d | 194 | py | Python | tests/mocks/urllib2/mock_http_error.py | tervay/the-blue-alliance | e14c15cb04b455f90a2fcfdf4c1cdbf8454e17f8 | [
"MIT"
] | 266 | 2015-01-04T00:10:48.000Z | 2022-03-28T18:42:05.000Z | tests/mocks/urllib2/mock_http_error.py | gregmarra/the-blue-alliance | 5bedaf5c80b4623984760d3da3289640639112f9 | [
"MIT"
] | 2,673 | 2015-01-01T20:14:33.000Z | 2022-03-31T18:17:16.000Z | tests/mocks/urllib2/mock_http_error.py | gregmarra/the-blue-alliance | 5bedaf5c80b4623984760d3da3289640639112f9 | [
"MIT"
] | 230 | 2015-01-04T00:10:48.000Z | 2022-03-26T18:12:04.000Z | from urllib2 import HTTPError
class MockHTTPError(HTTPError):
def __init__(self, code):
super(MockHTTPError, self).__init__('https://thebluealliance.com', code, 'mock', {}, None)
| 24.25 | 98 | 0.706186 | 21 | 194 | 6.142857 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006098 | 0.154639 | 194 | 7 | 99 | 27.714286 | 0.780488 | 0 | 0 | 0 | 0 | 0 | 0.159794 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
f816a4eff155db38439535b0fb2058c2d686489f | 50 | py | Python | boa3_test/example/arithmetic_test/Concatenation.py | jplippi/neo3-boa | 052be4adebb665113715bb80067d954f7ad85ad5 | [
"Apache-2.0"
] | null | null | null | boa3_test/example/arithmetic_test/Concatenation.py | jplippi/neo3-boa | 052be4adebb665113715bb80067d954f7ad85ad5 | [
"Apache-2.0"
] | null | null | null | boa3_test/example/arithmetic_test/Concatenation.py | jplippi/neo3-boa | 052be4adebb665113715bb80067d954f7ad85ad5 | [
"Apache-2.0"
] | null | null | null | def Main(a: str, b: str) -> str:
return a + b
| 16.666667 | 32 | 0.52 | 10 | 50 | 2.6 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.3 | 50 | 2 | 33 | 25 | 0.742857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
f8220c2cb811e661612f67d009da7a137c883c60 | 35 | py | Python | homeassistant/components/alpha_vantage/__init__.py | petewill/home-assistant | 5859dba4344f05fb8774aa1207e47ac28f627a67 | [
"Apache-2.0"
] | 4 | 2019-07-03T22:36:57.000Z | 2019-08-10T15:33:25.000Z | homeassistant/components/alpha_vantage/__init__.py | petewill/home-assistant | 5859dba4344f05fb8774aa1207e47ac28f627a67 | [
"Apache-2.0"
] | 39 | 2016-12-16T12:40:34.000Z | 2017-02-13T17:53:42.000Z | homeassistant/components/alpha_vantage/__init__.py | petewill/home-assistant | 5859dba4344f05fb8774aa1207e47ac28f627a67 | [
"Apache-2.0"
] | 6 | 2020-04-10T06:21:11.000Z | 2021-07-01T08:53:38.000Z | """The alpha_vantage component."""
| 17.5 | 34 | 0.714286 | 4 | 35 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085714 | 35 | 1 | 35 | 35 | 0.75 | 0.8 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
f835f60e01f5bbcb14df54904c291b87a317d881 | 1,180 | py | Python | code/python/ForeignExchangeRate/v1/fds/sdk/ForeignExchangeRate/models/__init__.py | factset/enterprise-sdk | 3fd4d1360756c515c9737a0c9a992c7451d7de7e | [
"Apache-2.0"
] | 6 | 2022-02-07T16:34:18.000Z | 2022-03-30T08:04:57.000Z | code/python/ForeignExchangeRate/v1/fds/sdk/ForeignExchangeRate/models/__init__.py | factset/enterprise-sdk | 3fd4d1360756c515c9737a0c9a992c7451d7de7e | [
"Apache-2.0"
] | 2 | 2022-02-07T05:25:57.000Z | 2022-03-07T14:18:04.000Z | code/python/ForeignExchangeRate/v1/fds/sdk/ForeignExchangeRate/models/__init__.py | factset/enterprise-sdk | 3fd4d1360756c515c9737a0c9a992c7451d7de7e | [
"Apache-2.0"
] | null | null | null | # flake8: noqa
# import all models into this package
# if you have many models here with many references from one model to another this may
# raise a RecursionError
# to avoid this, import only the models that you directly need like:
# from from fds.sdk.ForeignExchangeRate.model.pet import Pet
# or import this package... | 51.304348 | 94 | 0.85 | 159 | 1,180 | 6.251572 | 0.396226 | 0.084507 | 0.120724 | 0.350101 | 0.476861 | 0.34004 | 0.094567 | 0 | 0 | 0 | 0 | 0.000935 | 0.094068 | 1,180 | 22 | 95 | 53.636364 | 0.928906 | 0.311864 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
f872a0257f7dd476f03c3ac6e31c2a682173971e | 32 | py | Python | homeassistant/components/ciscospark/__init__.py | itewk/home-assistant | 769cf19052f8c9ef374d8ba8ae7705ccc7bf4cf4 | [
"Apache-2.0"
] | 23 | 2017-11-15T21:03:53.000Z | 2021-03-29T21:33:48.000Z | homeassistant/components/ciscospark/__init__.py | itewk/home-assistant | 769cf19052f8c9ef374d8ba8ae7705ccc7bf4cf4 | [
"Apache-2.0"
] | 39 | 2016-12-16T12:40:34.000Z | 2017-02-13T17:53:42.000Z | homeassistant/components/ciscospark/__init__.py | itewk/home-assistant | 769cf19052f8c9ef374d8ba8ae7705ccc7bf4cf4 | [
"Apache-2.0"
] | 10 | 2018-01-01T00:12:51.000Z | 2021-12-21T23:08:05.000Z | """The ciscospark component."""
| 16 | 31 | 0.6875 | 3 | 32 | 7.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09375 | 32 | 1 | 32 | 32 | 0.758621 | 0.78125 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
6efeec87bcf12a89c0b72c4ff731735678a7ea10 | 52 | py | Python | atmos_space_flight/Python/airflight3dof.py | als0052/AtmosSpaceDynamics | acf20f4ba320f55bf7e33d959539e7938a4b24d2 | [
"CNRI-Python"
] | null | null | null | atmos_space_flight/Python/airflight3dof.py | als0052/AtmosSpaceDynamics | acf20f4ba320f55bf7e33d959539e7938a4b24d2 | [
"CNRI-Python"
] | null | null | null | atmos_space_flight/Python/airflight3dof.py | als0052/AtmosSpaceDynamics | acf20f4ba320f55bf7e33d959539e7938a4b24d2 | [
"CNRI-Python"
] | null | null | null | #!/usr/bin/env python
# Filename: airflight3dof.py
| 13 | 28 | 0.730769 | 7 | 52 | 5.428571 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021739 | 0.115385 | 52 | 3 | 29 | 17.333333 | 0.804348 | 0.903846 | 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 |
3e1080a762ef92ebc27fda63b21bf086bcd145aa | 107 | py | Python | models/s2cnn/__init__.py | Abdulah-Fawaz/Benchmarking-Surface-DL | 9693379f26d57f9aabf28b973f40a9f6f627d26f | [
"MIT"
] | 2 | 2021-12-04T07:04:56.000Z | 2021-12-13T16:28:50.000Z | models/s2cnn/__init__.py | Abdulah-Fawaz/Benchmarking-Surface-DL | 9693379f26d57f9aabf28b973f40a9f6f627d26f | [
"MIT"
] | 1 | 2021-12-21T09:36:11.000Z | 2022-01-25T10:26:43.000Z | models/s2cnn/__init__.py | Abdulah-Fawaz/Benchmarking-Surface-DL | 9693379f26d57f9aabf28b973f40a9f6f627d26f | [
"MIT"
] | 1 | 2022-02-27T17:38:19.000Z | 2022-02-27T17:38:19.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sun Nov 29 10:26:43 2020
@author: fa19
"""
| 11.888889 | 35 | 0.588785 | 18 | 107 | 3.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183908 | 0.186916 | 107 | 8 | 36 | 13.375 | 0.54023 | 0.878505 | 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 |
3e1afff7340152a12491e2f0e7d2c4f13ecd9ceb | 244 | py | Python | clustering/__init__.py | ramansbach/cluster_analysis | 6fe0be86cebf34558b501d86905a77c6e0164b5a | [
"MIT"
] | null | null | null | clustering/__init__.py | ramansbach/cluster_analysis | 6fe0be86cebf34558b501d86905a77c6e0164b5a | [
"MIT"
] | null | null | null | clustering/__init__.py | ramansbach/cluster_analysis | 6fe0be86cebf34558b501d86905a77c6e0164b5a | [
"MIT"
] | null | null | null | from __future__ import absolute_import, division, print_function
from .version import __version__ # noqa
from .clustering import * # noqa
from .smoluchowski import *
from .fractald import *
from .morphology import *
from .visualize import *
| 30.5 | 64 | 0.786885 | 29 | 244 | 6.275862 | 0.482759 | 0.164835 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151639 | 244 | 7 | 65 | 34.857143 | 0.879227 | 0.036885 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0.142857 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.