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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dce90c0271d5a7a4ca2ddf7d090cf8370469b6bb | 63 | py | Python | Algoritmi Grafuri/Edmonds-Karp.py | ParaschivAlex/FMI-Thangs | 26d8a13b08344744ee6ab56f088dd4adb665980e | [
"MIT"
] | null | null | null | Algoritmi Grafuri/Edmonds-Karp.py | ParaschivAlex/FMI-Thangs | 26d8a13b08344744ee6ab56f088dd4adb665980e | [
"MIT"
] | null | null | null | Algoritmi Grafuri/Edmonds-Karp.py | ParaschivAlex/FMI-Thangs | 26d8a13b08344744ee6ab56f088dd4adb665980e | [
"MIT"
] | null | null | null | # O(V*E^2)
# # max flow din Edmon-karp e suma bottleneckurilor | 31.5 | 51 | 0.698413 | 12 | 63 | 3.666667 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019231 | 0.174603 | 63 | 2 | 51 | 31.5 | 0.826923 | 0.904762 | 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 |
dcec5b04396e47bcfac437ce2ae1204809c9e8b9 | 226 | py | Python | rlpyt/envs/mazeworld/setup.py | williamd4112/curiosity_baselines | 45939f3f24c53cfff5153ef012486a6a058660be | [
"MIT"
] | 5 | 2021-02-19T01:35:22.000Z | 2022-03-29T20:48:34.000Z | rlpyt/envs/mazeworld/setup.py | Improbable-AI/curiosity_baselines | 42dca92b2fb66c0790a72206bf48595d3b5b487f | [
"MIT"
] | 3 | 2021-09-08T03:31:49.000Z | 2022-03-12T00:59:45.000Z | rlpyt/envs/mazeworld/setup.py | williamd4112/curiosity_baselines | 45939f3f24c53cfff5153ef012486a6a058660be | [
"MIT"
] | 2 | 2021-04-17T09:11:56.000Z | 2022-03-24T04:21:17.000Z | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from setuptools import setup
setup(name='mazeworld',
version='0.0.1',
install_requires=['gym']
)
| 20.545455 | 38 | 0.747788 | 28 | 226 | 5.5 | 0.607143 | 0.194805 | 0.311688 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016129 | 0.176991 | 226 | 10 | 39 | 22.6 | 0.811828 | 0 | 0 | 0 | 0 | 0 | 0.075221 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0.125 | 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 |
dcf92145a88f217f6301b5ae3df1551643213cc6 | 2,007 | py | Python | utils/test/test_range_types.py | PolSl-PBL-7/DragonEye | 13ba314809e62ec1118756a00453a7e175df4329 | [
"MIT"
] | 2 | 2021-11-17T17:08:24.000Z | 2021-12-15T10:00:40.000Z | utils/test/test_range_types.py | PolSl-PBL-7/DragonEye | 13ba314809e62ec1118756a00453a7e175df4329 | [
"MIT"
] | 16 | 2021-11-06T19:24:06.000Z | 2022-02-06T20:31:48.000Z | utils/test/test_range_types.py | PolSl-PBL-7/DragonEye | 13ba314809e62ec1118756a00453a7e175df4329 | [
"MIT"
] | null | null | null | from utils.range_types import ClosedRange, OpenRange, Range
def test_left_of_open_range():
a = 2
assert a not in OpenRange(3, 5)
def test_on_left_boundary_open_range():
a = 2
assert a not in OpenRange(2, 5)
def test_right_of_open_range():
a = 6
assert a not in OpenRange(3, 5)
def test_on... | 19.485437 | 75 | 0.703538 | 347 | 2,007 | 3.757925 | 0.086455 | 0.107362 | 0.092025 | 0.110429 | 0.903374 | 0.893405 | 0.72546 | 0.558282 | 0.456288 | 0.393405 | 0 | 0.038023 | 0.213752 | 2,007 | 102 | 76 | 19.676471 | 0.78834 | 0 | 0 | 0.606557 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.327869 | 1 | 0.327869 | false | 0 | 0.016393 | 0 | 0.344262 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
0d2ab2789b462d6a36adfa08bd3f1a2ca53af288 | 194 | py | Python | ticketing_system/domain/base.py | Uncensored-Developer/ticketing_system | 366be0087c845e3249b30f186ceb1f0bc8b70aa3 | [
"MIT"
] | 1 | 2020-05-16T09:24:51.000Z | 2020-05-16T09:24:51.000Z | ticketing_system/domain/base.py | Uncensored-Developer/ticketing_system | 366be0087c845e3249b30f186ceb1f0bc8b70aa3 | [
"MIT"
] | null | null | null | ticketing_system/domain/base.py | Uncensored-Developer/ticketing_system | 366be0087c845e3249b30f186ceb1f0bc8b70aa3 | [
"MIT"
] | 1 | 2020-10-08T13:14:27.000Z | 2020-10-08T13:14:27.000Z | from abc import ABC, abstractmethod
class Base(ABC):
@classmethod
@abstractmethod
def from_dict(cls, adict):
pass
@abstractmethod
def to_dict(self):
pass
| 13.857143 | 35 | 0.634021 | 22 | 194 | 5.5 | 0.636364 | 0.280992 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.293814 | 194 | 13 | 36 | 14.923077 | 0.883212 | 0 | 0 | 0.444444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0.222222 | 0.111111 | 0 | 0.444444 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
0d405512c2ae98cddd34400aa094db210a8435d4 | 220 | py | Python | shapes/sharpshapes.py | DamonRomano/NSS-Back-End-Exercises | 11fdaedae60467f3f59fd2bb1ce0be9e6f401e3e | [
"Unlicense",
"MIT"
] | null | null | null | shapes/sharpshapes.py | DamonRomano/NSS-Back-End-Exercises | 11fdaedae60467f3f59fd2bb1ce0be9e6f401e3e | [
"Unlicense",
"MIT"
] | null | null | null | shapes/sharpshapes.py | DamonRomano/NSS-Back-End-Exercises | 11fdaedae60467f3f59fd2bb1ce0be9e6f401e3e | [
"Unlicense",
"MIT"
] | null | null | null | def __init__(self):
pass
def area(self, width = 0, height = 0, depth = 0, radius = 0):
area = 0
if radius > 0:
if height > 0:
area = radius**2 * pi * height
else:
area = radius**2 * pi
elif | 16.923077 | 61 | 0.540909 | 34 | 220 | 3.382353 | 0.441176 | 0.121739 | 0.191304 | 0.226087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060811 | 0.327273 | 220 | 13 | 62 | 16.923077 | 0.716216 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.1 | 0 | null | null | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
0d52131da36a119d24ea9eefa845c0a7975faab9 | 183 | py | Python | geocoding/logger.py | nitturis/coronaIndia | 0794509bd98c997490afa81d3114923a6dc22c2b | [
"MIT"
] | 36 | 2020-03-15T14:26:19.000Z | 2021-12-13T10:53:58.000Z | geocoding/logger.py | nitturis/coronaIndia | 0794509bd98c997490afa81d3114923a6dc22c2b | [
"MIT"
] | 21 | 2020-03-19T17:19:57.000Z | 2020-04-29T16:42:28.000Z | geocoding/logger.py | nitturis/coronaIndia | 0794509bd98c997490afa81d3114923a6dc22c2b | [
"MIT"
] | 38 | 2020-03-19T17:16:17.000Z | 2021-03-16T21:05:40.000Z | from loguru import logger
import sys
def get_logger(name):
logger.add(sys.stderr, format="{time} {level} {message}", level="INFO")
logger.add(f"{name}.log")
return logger | 26.142857 | 75 | 0.688525 | 27 | 183 | 4.62963 | 0.666667 | 0.144 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153005 | 183 | 7 | 76 | 26.142857 | 0.806452 | 0 | 0 | 0 | 0 | 0 | 0.206522 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | 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 |
b49c4a157c07e0ddccd6e8bb6acd3c82aac4741e | 69 | py | Python | CondTools/L1TriggerExt/python/L1ConfigRSPayloadsExt_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | CondTools/L1TriggerExt/python/L1ConfigRSPayloadsExt_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | CondTools/L1TriggerExt/python/L1ConfigRSPayloadsExt_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | #from L1TriggerConfig.DTTrackFinder.L1MuDTTFMasksOnline_cfi import *
| 34.5 | 68 | 0.884058 | 6 | 69 | 10 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030769 | 0.057971 | 69 | 1 | 69 | 69 | 0.892308 | 0.971014 | 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 |
b49d56a3a211ab283d7051da5179c713c8a4468a | 3,753 | py | Python | lib/surface/topic/flags_file.py | bshaffer/google-cloud-sdk | f587382fd112f238c0d6d5ca3dab8f52d2b5c5f9 | [
"Apache-2.0"
] | null | null | null | lib/surface/topic/flags_file.py | bshaffer/google-cloud-sdk | f587382fd112f238c0d6d5ca3dab8f52d2b5c5f9 | [
"Apache-2.0"
] | null | null | null | lib/surface/topic/flags_file.py | bshaffer/google-cloud-sdk | f587382fd112f238c0d6d5ca3dab8f52d2b5c5f9 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*- #
# Copyright 2018 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | 32.076923 | 80 | 0.676525 | 531 | 3,753 | 4.728814 | 0.457627 | 0.032258 | 0.020709 | 0.027081 | 0.082836 | 0.068499 | 0 | 0 | 0 | 0 | 0 | 0.011267 | 0.219558 | 3,753 | 116 | 81 | 32.353448 | 0.846023 | 0.895817 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
370c624f2ba06de176ec9ff15d1b8dffd7f13a61 | 217 | py | Python | indy_client/test/client/wallet/test_link_obj.py | sergeykupryushin/indy-node | 3162c5750e99af3512218d5843ba065c7d0f07db | [
"Apache-2.0"
] | 1 | 2018-07-05T19:34:29.000Z | 2018-07-05T19:34:29.000Z | indy_client/test/client/wallet/test_link_obj.py | sergeykupryushin/indy-node | 3162c5750e99af3512218d5843ba065c7d0f07db | [
"Apache-2.0"
] | null | null | null | indy_client/test/client/wallet/test_link_obj.py | sergeykupryushin/indy-node | 3162c5750e99af3512218d5843ba065c7d0f07db | [
"Apache-2.0"
] | 1 | 2021-06-06T15:48:30.000Z | 2021-06-06T15:48:30.000Z | import pytest
from indy_client.client.wallet.connection import Connection
@pytest.mark.skip(reason='INDY-105')
def test_link_has_requested_proofs():
testLink = Connection("Test")
# testLink.requestedProofs
| 21.7 | 59 | 0.78341 | 27 | 217 | 6.111111 | 0.703704 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015625 | 0.115207 | 217 | 9 | 60 | 24.111111 | 0.84375 | 0.110599 | 0 | 0 | 0 | 0 | 0.062827 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
2e9da74abaa24a32f028c11d83d7b6df34b5c4d2 | 64 | py | Python | run.py | yekudename/reader | 93955051d1ac959f7713e66f67bf8b57d8b13df2 | [
"Apache-2.0"
] | null | null | null | run.py | yekudename/reader | 93955051d1ac959f7713e66f67bf8b57d8b13df2 | [
"Apache-2.0"
] | null | null | null | run.py | yekudename/reader | 93955051d1ac959f7713e66f67bf8b57d8b13df2 | [
"Apache-2.0"
] | null | null | null | #!flask/Scripts/python
from app import app
app.run(debug = True) | 21.333333 | 22 | 0.765625 | 11 | 64 | 4.454545 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109375 | 64 | 3 | 23 | 21.333333 | 0.859649 | 0.328125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
2eb2de3ce959b255ec6b03fb24b527651a8ba243 | 253,055 | py | Python | day8/source_rc.py | ldolin/shixi0 | ccc08130b0d16542f1c7bc259019d5a219a7c9b2 | [
"Apache-2.0"
] | null | null | null | day8/source_rc.py | ldolin/shixi0 | ccc08130b0d16542f1c7bc259019d5a219a7c9b2 | [
"Apache-2.0"
] | null | null | null | day8/source_rc.py | ldolin/shixi0 | ccc08130b0d16542f1c7bc259019d5a219a7c9b2 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Resource object code
#
# Created by: The Resource Compiler for PyQt5 (Qt v5.13.0)
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore
qt_resource_data = b"\
\x00\x00\xb3\x15\
\xff\
\xd8\xff\xe0\x00\x10\x4a\x46\x49\x46\x00\x01\x01\x00\x00\x01\x00\
\x01\x00\x00\x... | 65.220361 | 103 | 0.727206 | 61,258 | 253,055 | 3.003444 | 0.005012 | 0.011055 | 0.006408 | 0.005153 | 0.03853 | 0.016909 | 0.01193 | 0.01074 | 0.009273 | 0.008457 | 0 | 0.327246 | 0.015676 | 253,055 | 3,879 | 104 | 65.237175 | 0.411389 | 0.000601 | 0 | 0.005436 | 0 | 0.988092 | 0.000004 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0.000518 | false | 0 | 0.000259 | 0 | 0.000777 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
2ee229c6fbb9435012269dccb11f32658230ed3e | 970 | py | Python | app/GeoApis.py | WadeBarnes/geolocation-api | f222a6d8f57d063f49287462a6c457d5c2a1de7e | [
"Apache-2.0"
] | null | null | null | app/GeoApis.py | WadeBarnes/geolocation-api | f222a6d8f57d063f49287462a6c457d5c2a1de7e | [
"Apache-2.0"
] | null | null | null | app/GeoApis.py | WadeBarnes/geolocation-api | f222a6d8f57d063f49287462a6c457d5c2a1de7e | [
"Apache-2.0"
] | 1 | 2021-09-14T20:23:15.000Z | 2021-09-14T20:23:15.000Z | import os
import json
from enum import Enum
class GeoApiEnum(Enum):
def _generate_next_value_(name, start, count, last_values):
return name
class GeoApis(object):
def __init__(self):
self._apis = self.__load_api_list()
def __get_script_dir(self):
return os.path.dirname(os.path.r... | 27.714286 | 104 | 0.662887 | 129 | 970 | 4.666667 | 0.44186 | 0.039867 | 0.036545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.230928 | 970 | 35 | 105 | 27.714286 | 0.806971 | 0.095876 | 0 | 0 | 1 | 0 | 0.05562 | 0.045191 | 0 | 0 | 0 | 0 | 0 | 1 | 0.291667 | false | 0 | 0.125 | 0.166667 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
2ee487ea4d70db330a14f9abb6b744e8f182e7ac | 229 | py | Python | Algorithms/python/KidsWiththeGreatestNumberofCandies/KidsWiththeGreatestNumberofCandies.py | YoshlikMedia/LeetCode-solution | 517dc118ed6595578820f2b1088c95b14779ada7 | [
"MIT"
] | null | null | null | Algorithms/python/KidsWiththeGreatestNumberofCandies/KidsWiththeGreatestNumberofCandies.py | YoshlikMedia/LeetCode-solution | 517dc118ed6595578820f2b1088c95b14779ada7 | [
"MIT"
] | null | null | null | Algorithms/python/KidsWiththeGreatestNumberofCandies/KidsWiththeGreatestNumberofCandies.py | YoshlikMedia/LeetCode-solution | 517dc118ed6595578820f2b1088c95b14779ada7 | [
"MIT"
] | null | null | null | class Solution:
def kidsWithCandies(self, candies: List[int], extraCandies: int) -> List[bool]:
max_candies = max(candies)
return [True if (candy + extraCandies) >= max_candies else False for candy in candies] | 57.25 | 94 | 0.694323 | 29 | 229 | 5.413793 | 0.655172 | 0.191083 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.200873 | 229 | 4 | 94 | 57.25 | 0.857924 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 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 |
2ef9a816b58d3fcef4724a0d42dcb1dc7a988f12 | 113 | py | Python | simulations/auxin_demo.py | jquetzalcoatl/SyntheticVasculature | 6c1ccc5031870108dc5492c8b25c1ea31b1a7671 | [
"MIT"
] | 2 | 2021-11-14T15:45:53.000Z | 2022-03-02T18:24:41.000Z | simulations/auxin_demo.py | jquetzalcoatl/SyntheticVasculature | 6c1ccc5031870108dc5492c8b25c1ea31b1a7671 | [
"MIT"
] | null | null | null | simulations/auxin_demo.py | jquetzalcoatl/SyntheticVasculature | 6c1ccc5031870108dc5492c8b25c1ea31b1a7671 | [
"MIT"
] | null | null | null | """
demo of the auxin-based model runner
runs a simulation
saves underlying network
saves images
"""
| 16.142857 | 36 | 0.690265 | 15 | 113 | 5.2 | 0.933333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.247788 | 113 | 6 | 37 | 18.833333 | 0.917647 | 0.920354 | 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 |
2c09444536ad6a98c63eaf5dafadfd4627300cae | 101 | py | Python | day04/exceptions/assert.py | zhangyage/Python-oldboy | a95c1b465929e2be641e425fcb5e15b366800831 | [
"Apache-2.0"
] | 1 | 2020-06-04T08:44:09.000Z | 2020-06-04T08:44:09.000Z | day04/exceptions/assert.py | zhangyage/Python-oldboy | a95c1b465929e2be641e425fcb5e15b366800831 | [
"Apache-2.0"
] | null | null | null | day04/exceptions/assert.py | zhangyage/Python-oldboy | a95c1b465929e2be641e425fcb5e15b366800831 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding:utf-8 -*-
#断言
#assert语句用于检测表达式是否为真。假如为假,引发AssertionError错误:
| 16.833333 | 46 | 0.673267 | 11 | 101 | 6.181818 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011494 | 0.138614 | 101 | 5 | 47 | 20.2 | 0.770115 | 0.861386 | 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 |
2c159aafae21dd2f3f22874d48e2a5fd04b8941c | 106 | py | Python | apis/__init__.py | ZekunZh/Lite-HRNet | d74f9c9ddc58868fbcc90a6524a50ad91fa5c56e | [
"Apache-2.0"
] | null | null | null | apis/__init__.py | ZekunZh/Lite-HRNet | d74f9c9ddc58868fbcc90a6524a50ad91fa5c56e | [
"Apache-2.0"
] | null | null | null | apis/__init__.py | ZekunZh/Lite-HRNet | d74f9c9ddc58868fbcc90a6524a50ad91fa5c56e | [
"Apache-2.0"
] | null | null | null | from .train import init_random_seed, train_model
__all__ = [
'train_model',
'init_random_seed'
]
| 15.142857 | 48 | 0.716981 | 14 | 106 | 4.714286 | 0.571429 | 0.30303 | 0.424242 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.188679 | 106 | 6 | 49 | 17.666667 | 0.767442 | 0 | 0 | 0 | 0 | 0 | 0.254717 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 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 |
2c17e657728eb6b7d7328ec6e6d54619af625f2d | 228 | py | Python | django_unicorn/db.py | nyradr/django-unicorn | 48a112ee1187715c4dbb54b24cb7b4688a24ac4b | [
"MIT"
] | 1 | 2021-02-11T13:26:06.000Z | 2021-02-11T13:26:06.000Z | django_unicorn/db.py | nyradr/django-unicorn | 48a112ee1187715c4dbb54b24cb7b4688a24ac4b | [
"MIT"
] | null | null | null | django_unicorn/db.py | nyradr/django-unicorn | 48a112ee1187715c4dbb54b24cb7b4688a24ac4b | [
"MIT"
] | 1 | 2022-02-10T07:47:01.000Z | 2022-02-10T07:47:01.000Z | from django.db.models import Model
class DbModel:
def __init__(self, name: str, model_class: Model, *, defaults: dict = {}):
self.name = name
self.model_class = model_class
self.defaults = defaults
| 25.333333 | 78 | 0.653509 | 29 | 228 | 4.896552 | 0.517241 | 0.28169 | 0.211268 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.245614 | 228 | 8 | 79 | 28.5 | 0.825581 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
2576542ce021df7e21fbe441af4a54b19070e078 | 208 | py | Python | api/bulk/main.py | usc-isi-i2/datamart-api | da0792786fc342fc3cd6fbfcdeacae0eac6bff0d | [
"MIT"
] | null | null | null | api/bulk/main.py | usc-isi-i2/datamart-api | da0792786fc342fc3cd6fbfcdeacae0eac6bff0d | [
"MIT"
] | 113 | 2020-06-22T18:40:53.000Z | 2021-07-06T04:18:40.000Z | api/bulk/main.py | usc-isi-i2/datamart-api | da0792786fc342fc3cd6fbfcdeacae0eac6bff0d | [
"MIT"
] | 1 | 2020-10-23T07:37:51.000Z | 2020-10-23T07:37:51.000Z | from flask_restful import Resource
from .bulk import BulkDataResource
class BulkResource(Resource):
def get(self, dataset=None, variable=None):
bdr = BulkDataResource()
return bdr.get()
| 23.111111 | 47 | 0.721154 | 24 | 208 | 6.208333 | 0.708333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.197115 | 208 | 8 | 48 | 26 | 0.892216 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.833333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
25b0eb50c046922d069f15534c6e12b3052d7fee | 591 | py | Python | InnerEye-DataQuality/tests/datasets/test_cifar10_asym.py | faz1993/InnerEye-DeepLearning | fb258d5c9a3ba18565b5a67e7ac1f00127d9ecb9 | [
"MIT"
] | 402 | 2020-09-22T16:38:16.000Z | 2022-03-30T09:56:03.000Z | InnerEye-DataQuality/tests/datasets/test_cifar10_asym.py | wensincai/InnerEye-DeepLearning | ccb53d01ad0f1c20336588c0066059b8de5266fd | [
"MIT"
] | 259 | 2020-09-23T09:32:33.000Z | 2022-03-30T18:15:01.000Z | InnerEye-DataQuality/tests/datasets/test_cifar10_asym.py | wensincai/InnerEye-DeepLearning | ccb53d01ad0f1c20336588c0066059b8de5266fd | [
"MIT"
] | 112 | 2020-09-23T00:12:58.000Z | 2022-03-31T07:39:55.000Z | # ------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License (MIT). See LICENSE in the repo root for license information.
# -------------------------------------------------------------------... | 53.727273 | 94 | 0.553299 | 54 | 591 | 5.888889 | 0.685185 | 0.069182 | 0.08805 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022346 | 0.091371 | 591 | 10 | 95 | 59.1 | 0.569832 | 0.565144 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | true | 0 | 0.5 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
25b78eca89d9ebfe64eacee91598b3c78f15a0e4 | 65 | py | Python | cambiaahora/testimonios/__init__.py | shiminasai/plataforma_FADCANIC | 14831525e4104da7f05ce87e59238f1e4193c184 | [
"MIT"
] | null | null | null | cambiaahora/testimonios/__init__.py | shiminasai/plataforma_FADCANIC | 14831525e4104da7f05ce87e59238f1e4193c184 | [
"MIT"
] | null | null | null | cambiaahora/testimonios/__init__.py | shiminasai/plataforma_FADCANIC | 14831525e4104da7f05ce87e59238f1e4193c184 | [
"MIT"
] | 2 | 2015-05-19T20:50:41.000Z | 2015-05-19T20:51:04.000Z | default_app_config = 'cambiaahora.testimonios.apps.OpinionConfig' | 65 | 65 | 0.876923 | 7 | 65 | 7.857143 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030769 | 65 | 1 | 65 | 65 | 0.873016 | 0 | 0 | 0 | 0 | 0 | 0.636364 | 0.636364 | 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 |
25bdd22a553c4c02358824d82c8a78c2920c6897 | 44 | py | Python | midburn/config/dev.py | mtr574/projectMidbrunFirstReg | 2569c3f07e1af746bfc1f213632708c76d8fc829 | [
"Apache-2.0"
] | null | null | null | midburn/config/dev.py | mtr574/projectMidbrunFirstReg | 2569c3f07e1af746bfc1f213632708c76d8fc829 | [
"Apache-2.0"
] | 1 | 2016-04-05T03:36:55.000Z | 2016-04-05T03:36:55.000Z | midburn/config/dev.py | mtr574/projectMidbrunFirstReg | 2569c3f07e1af746bfc1f213632708c76d8fc829 | [
"Apache-2.0"
] | 3 | 2016-11-04T12:10:03.000Z | 2017-02-23T08:52:53.000Z | from midburn.settings import *
DEBUG = True | 14.666667 | 30 | 0.772727 | 6 | 44 | 5.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159091 | 44 | 3 | 31 | 14.666667 | 0.918919 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
25dc926261224f36480223a5267fc8593020b74a | 221 | py | Python | irfInterface/irfInterfaceLib.py | fermi-lat/irfs | cebe27fc6a974ac4448f15d7944b21e419c585e9 | [
"BSD-3-Clause"
] | null | null | null | irfInterface/irfInterfaceLib.py | fermi-lat/irfs | cebe27fc6a974ac4448f15d7944b21e419c585e9 | [
"BSD-3-Clause"
] | 4 | 2020-02-21T20:16:38.000Z | 2022-03-22T17:39:03.000Z | irfInterface/irfInterfaceLib.py | fermi-lat/irfs | cebe27fc6a974ac4448f15d7944b21e419c585e9 | [
"BSD-3-Clause"
] | 1 | 2020-07-07T18:30:05.000Z | 2020-07-07T18:30:05.000Z | #
# $Header$
#
def generate(env, **kw):
if not kw.get('depsOnly',0):
env.Tool('addLibrary', library=['irfInterface'])
env.Tool('astroLib')
env.Tool('st_facilitiesLib')
def exists(env):
return 1
| 17 | 56 | 0.606335 | 28 | 221 | 4.75 | 0.714286 | 0.157895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011364 | 0.20362 | 221 | 12 | 57 | 18.416667 | 0.744318 | 0.036199 | 0 | 0 | 1 | 0 | 0.259615 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0 | 0.142857 | 0.428571 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
25dfd3f3c2f7aed6bd3fb35a551d0f8a20267f1a | 130 | py | Python | apps/info/routers.py | ycheng-aa/qr_server | 50871dafa9b5d296a53c906e13ce93de6d783e54 | [
"MIT"
] | null | null | null | apps/info/routers.py | ycheng-aa/qr_server | 50871dafa9b5d296a53c906e13ce93de6d783e54 | [
"MIT"
] | null | null | null | apps/info/routers.py | ycheng-aa/qr_server | 50871dafa9b5d296a53c906e13ce93de6d783e54 | [
"MIT"
] | null | null | null | from apps.common.routers import routers
from apps.info.views import MessageViewSet
routers.register(r'messages', MessageViewSet)
| 26 | 45 | 0.838462 | 17 | 130 | 6.411765 | 0.647059 | 0.146789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084615 | 130 | 4 | 46 | 32.5 | 0.915966 | 0 | 0 | 0 | 0 | 0 | 0.061538 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
25f31b8b99db3f8480b0f76e8715cc7be4b1f3bf | 236 | py | Python | code/Python Crash Course A Hands-On/PART I-BASICS/Chapter 2/simple_message.py | GaryWonggg/Paython-Learning | 8636358a96caf062cf68a43826810a6cf5ab2496 | [
"MIT"
] | null | null | null | code/Python Crash Course A Hands-On/PART I-BASICS/Chapter 2/simple_message.py | GaryWonggg/Paython-Learning | 8636358a96caf062cf68a43826810a6cf5ab2496 | [
"MIT"
] | 1 | 2021-01-02T15:41:19.000Z | 2021-01-02T15:41:19.000Z | code/Python Crash Course A Hands-On/PART I-BASICS/Chapter 2/simple_message.py | GaryWonggg/Paython-Learning | 8636358a96caf062cf68a43826810a6cf5ab2496 | [
"MIT"
] | null | null | null | """
“Avoiding Name Errors When Using Variables”
page : 112
"""
message = "Hello Python world!"
print(message)
message = "Hello Python Crash Course world!"
print(message)
message = "Hello Python Crash Course reader!"
print(message)
| 14.75 | 45 | 0.724576 | 30 | 236 | 5.7 | 0.533333 | 0.210526 | 0.315789 | 0.280702 | 0.538012 | 0.538012 | 0.538012 | 0.538012 | 0 | 0 | 0 | 0.015152 | 0.161017 | 236 | 15 | 46 | 15.733333 | 0.848485 | 0.237288 | 0 | 0.5 | 0 | 0 | 0.488372 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 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 | 0 | 1 | 0 | 4 |
d3621fc90c5e638c349ef146cf1e9879537f0e36 | 161 | py | Python | twiggy/features/__init__.py | tirkarthi/twiggy | 054a07e71f2ceae231270fc62cb7f0a59cf72958 | [
"BSD-3-Clause"
] | 36 | 2015-02-06T06:19:27.000Z | 2022-01-31T18:36:22.000Z | twiggy/features/__init__.py | tirkarthi/twiggy | 054a07e71f2ceae231270fc62cb7f0a59cf72958 | [
"BSD-3-Clause"
] | 51 | 2015-01-13T18:15:06.000Z | 2021-05-16T06:03:07.000Z | twiggy/features/__init__.py | tirkarthi/twiggy | 054a07e71f2ceae231270fc62cb7f0a59cf72958 | [
"BSD-3-Clause"
] | 6 | 2016-05-31T20:11:12.000Z | 2021-09-08T16:37:26.000Z | """Optional additions of logging functionality"""
import warnings
warnings.warn("Use of features is currently discouraged, pending refactoring", RuntimeWarning)
| 40.25 | 94 | 0.819876 | 18 | 161 | 7.333333 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.099379 | 161 | 3 | 95 | 53.666667 | 0.910345 | 0.267081 | 0 | 0 | 0 | 0 | 0.544643 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
d3a3fe9281609413081dc54f4bc05319fda55b8d | 153 | py | Python | mm_base/models/mm_plus_points/middleware.py | Calypse/scrimio | 6cc3e0756a8cdca3c918c26018e12079c08399a5 | [
"MIT"
] | null | null | null | mm_base/models/mm_plus_points/middleware.py | Calypse/scrimio | 6cc3e0756a8cdca3c918c26018e12079c08399a5 | [
"MIT"
] | null | null | null | mm_base/models/mm_plus_points/middleware.py | Calypse/scrimio | 6cc3e0756a8cdca3c918c26018e12079c08399a5 | [
"MIT"
] | null | null | null |
def plus_award_points(q_dict, q_queryset, logger):
"""
Reads match result.
Awards player's Plus Points accordingly
"""
pass
| 19.125 | 50 | 0.627451 | 19 | 153 | 4.842105 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.287582 | 153 | 7 | 51 | 21.857143 | 0.844037 | 0.385621 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
6cad04f17e23fa3e75476b1e128338c73082134a | 85 | py | Python | dprojx/dappx/apps.py | Dementyevasl/Conference_management | 5a2ae7ddaab2559b9b60b7f2313122ccf6d1a958 | [
"CNRI-Python"
] | null | null | null | dprojx/dappx/apps.py | Dementyevasl/Conference_management | 5a2ae7ddaab2559b9b60b7f2313122ccf6d1a958 | [
"CNRI-Python"
] | 9 | 2020-02-12T00:25:03.000Z | 2022-03-11T23:53:09.000Z | dprojx/dappx/apps.py | Dementyevasl/Conference_management | 5a2ae7ddaab2559b9b60b7f2313122ccf6d1a958 | [
"CNRI-Python"
] | null | null | null | from django.apps import AppConfig
class DappxConfig(AppConfig):
name = 'dappx'
| 14.166667 | 33 | 0.741176 | 10 | 85 | 6.3 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 85 | 5 | 34 | 17 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
6cc841914758da0fda54fc094d8274b641bf4f9e | 230 | py | Python | src/sage/version.py | dimpase/sagetrac-mirror | 473cd41f19ec23df7e207391cfb0cf41c7c4ef46 | [
"BSL-1.0"
] | null | null | null | src/sage/version.py | dimpase/sagetrac-mirror | 473cd41f19ec23df7e207391cfb0cf41c7c4ef46 | [
"BSL-1.0"
] | null | null | null | src/sage/version.py | dimpase/sagetrac-mirror | 473cd41f19ec23df7e207391cfb0cf41c7c4ef46 | [
"BSL-1.0"
] | null | null | null | # Sage version information for Python scripts
# This file is auto-generated by the sage-update-version script, do not edit!
version = '9.4.beta4'
date = '2021-07-01'
banner = 'SageMath version 9.4.beta4, Release Date: 2021-07-01'
| 38.333333 | 77 | 0.743478 | 39 | 230 | 4.384615 | 0.717949 | 0.093567 | 0.105263 | 0.163743 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111675 | 0.143478 | 230 | 5 | 78 | 46 | 0.756345 | 0.517391 | 0 | 0 | 1 | 0 | 0.657407 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
6ccdf4222c1bfa338afc7bc5d19baeee41b059c5 | 419 | py | Python | src/learn/bots/_21/bot.py | benjaminaaron/GO_DILab | 20630d1a1d513a25de20b2edaeeac097a1b53be4 | [
"MIT"
] | 8 | 2017-10-19T21:21:27.000Z | 2018-01-31T14:36:21.000Z | src/learn/bots/_21/bot.py | benjaminaaron/GO_DILab | 20630d1a1d513a25de20b2edaeeac097a1b53be4 | [
"MIT"
] | 9 | 2017-10-19T15:28:09.000Z | 2017-12-05T11:42:44.000Z | src/learn/bots/_21/bot.py | nathanaelbosch/GO_DILab | 20630d1a1d513a25de20b2edaeeac097a1b53be4 | [
"MIT"
] | 1 | 2020-11-05T21:59:13.000Z | 2020-11-05T21:59:13.000Z | import os
from src.learn.bots.ValueBot import ValueBot
import src.learn.bots.utils as utils
from src.play.model.Game import WHITE, BLACK
class Bot_21(ValueBot):
def get_path_to_self(self):
return os.path.abspath(__file__)
@staticmethod
def generate_nn_input(flat_board, color):
X = utils.e... | 23.277778 | 49 | 0.708831 | 61 | 419 | 4.590164 | 0.590164 | 0.05 | 0.085714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009036 | 0.207637 | 419 | 17 | 50 | 24.647059 | 0.834337 | 0 | 0 | 0 | 0 | 0 | 0.02148 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.307692 | 0.153846 | 0.846154 | 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 |
6cd00fe06d0831a8058d7c09a79e5b83751650d0 | 102 | py | Python | pytorch/introduction_to_pytorch.py | dragonnikkirocks/100Days | 36a989a6fdb644cde64f9d4f4aa1c03884988fa3 | [
"MIT"
] | null | null | null | pytorch/introduction_to_pytorch.py | dragonnikkirocks/100Days | 36a989a6fdb644cde64f9d4f4aa1c03884988fa3 | [
"MIT"
] | null | null | null | pytorch/introduction_to_pytorch.py | dragonnikkirocks/100Days | 36a989a6fdb644cde64f9d4f4aa1c03884988fa3 | [
"MIT"
] | null | null | null | #Familiarising with python
#https://www.youtube.com/playlist?list=PL_lsbAsL_o2CTlGHgMxNrKhzP97BaG9ZN
| 25.5 | 73 | 0.852941 | 12 | 102 | 7.083333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041237 | 0.04902 | 102 | 3 | 74 | 34 | 0.835052 | 0.95098 | 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 |
6cdb2bcca231d21dc44e137ad5342445981fb914 | 45,300 | py | Python | src/v20/trade.py | polythilene/v20-python | f35c4a7fbe4668d3a611e75b9b6c556ead4ed183 | [
"MIT"
] | 195 | 2016-06-21T06:19:16.000Z | 2022-03-21T11:09:58.000Z | src/v20/trade.py | polythilene/v20-python | f35c4a7fbe4668d3a611e75b9b6c556ead4ed183 | [
"MIT"
] | 37 | 2016-07-05T11:14:23.000Z | 2021-06-22T00:42:28.000Z | src/v20/trade.py | polythilene/v20-python | f35c4a7fbe4668d3a611e75b9b6c556ead4ed183 | [
"MIT"
] | 102 | 2016-07-15T19:24:48.000Z | 2022-03-24T06:21:59.000Z | import ujson as json
from v20.base_entity import BaseEntity
from v20.base_entity import EntityDict
from v20.request import Request
from v20 import spec_properties
class Trade(BaseEntity):
"""
The specification of a Trade within an Account. This includes the full
representation of the Trade's dependent Or... | 32.196162 | 96 | 0.546887 | 4,122 | 45,300 | 5.941048 | 0.07739 | 0.048022 | 0.040794 | 0.052677 | 0.77202 | 0.734901 | 0.725264 | 0.690841 | 0.682633 | 0.669525 | 0 | 0.004019 | 0.368366 | 45,300 | 1,406 | 97 | 32.219061 | 0.851851 | 0.197506 | 0 | 0.707057 | 0 | 0 | 0.200835 | 0.094043 | 0 | 0 | 0 | 0 | 0 | 1 | 0.01731 | false | 0 | 0.006658 | 0 | 0.073236 | 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 |
6cfc89865ee246acded84f2ef57080d5142d9741 | 341 | py | Python | lab_1/formatter/logger.py | anh-honcharuk/Metaprogramming | f49f885c1d89fbf0e4edf5fa9c9b00327f3a7ba0 | [
"Apache-2.0"
] | 1 | 2020-10-27T19:07:42.000Z | 2020-10-27T19:07:42.000Z | lab_1/formatter/logger.py | anh-honcharuk/Metaprogramming | f49f885c1d89fbf0e4edf5fa9c9b00327f3a7ba0 | [
"Apache-2.0"
] | null | null | null | lab_1/formatter/logger.py | anh-honcharuk/Metaprogramming | f49f885c1d89fbf0e4edf5fa9c9b00327f3a7ba0 | [
"Apache-2.0"
] | null | null | null | class Logger:
def __init__(self, name):
self.logger = list()
self.file_name = name
def write_error(self, line, message):
self.logger.append( '[' + self.file_name + "] ERROR: " + message + ", line: " + str(line) + '\n' )
# print( '[' + self.file_name + "] ERROR: " + message + ", ... | 37.888889 | 106 | 0.539589 | 40 | 341 | 4.4 | 0.4 | 0.136364 | 0.204545 | 0.193182 | 0.397727 | 0.397727 | 0.397727 | 0.397727 | 0 | 0 | 0 | 0 | 0.269795 | 341 | 8 | 107 | 42.625 | 0.706827 | 0.225806 | 0 | 0 | 0 | 0 | 0.076336 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
9f12dc56eab12ee561bdfbc55a05b11bf144a971 | 382 | py | Python | ssk/models/__init__.py | jobliz/solid-state-kinetics | c5767b400b19bd0256c806001664f0b369718bab | [
"MIT"
] | 2 | 2017-03-08T21:32:11.000Z | 2017-07-19T03:27:18.000Z | ssk/models/__init__.py | jobliz/solid-state-kinetics | c5767b400b19bd0256c806001664f0b369718bab | [
"MIT"
] | null | null | null | ssk/models/__init__.py | jobliz/solid-state-kinetics | c5767b400b19bd0256c806001664f0b369718bab | [
"MIT"
] | null | null | null | """
This submodule collects several kinetic models, static and customizable.
For complex process simulation, though, you might have to write custom
differential equations.
Literature.
Basics and applications of solid-state kinetics: A pharmaceutical perspective
http://onlinelibrary.wiley.com/doi/10.1002/jps.20559/abs... | 25.466667 | 77 | 0.806283 | 49 | 382 | 6.285714 | 0.938776 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032836 | 0.123037 | 382 | 14 | 78 | 27.285714 | 0.886567 | 0.840314 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
9f1c9c775a8fbaa5f197d5798b879fce0b95e97c | 298 | py | Python | poc/setup.py | zoobab/kapow | ffef8b398fb29eba0945cb99423d23f8d9d01c0f | [
"Apache-2.0"
] | null | null | null | poc/setup.py | zoobab/kapow | ffef8b398fb29eba0945cb99423d23f8d9d01c0f | [
"Apache-2.0"
] | null | null | null | poc/setup.py | zoobab/kapow | ffef8b398fb29eba0945cb99423d23f8d9d01c0f | [
"Apache-2.0"
] | null | null | null | from setuptools import setup
print("""
. . .,---.,---., .|, .,---.|
| | ||---||---'|\ |||\ || _.|
| | || || \ | \ ||| \ || |
`-'-'` '` `` `'`` `'`---'o
================================
You are installing a proof-of-concept software that IS NOT PRODUCTION READY.
""")
setup()
| 18.625 | 76 | 0.33557 | 20 | 298 | 4.95 | 0.95 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.231544 | 298 | 15 | 77 | 19.866667 | 0.432314 | 0 | 0 | 0 | 0 | 0 | 0.818792 | 0.107383 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.1 | 0 | 0.1 | 0.1 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
9f29809eee60b2db67817f3da274827d4a70ecee | 350 | py | Python | tests/test.py | davidlares/davidTasks | da9ea03b6697e48a463c8e8145927f5afc519dbd | [
"MIT"
] | null | null | null | tests/test.py | davidlares/davidTasks | da9ea03b6697e48a463c8e8145927f5afc519dbd | [
"MIT"
] | null | null | null | tests/test.py | davidlares/davidTasks | da9ea03b6697e48a463c8e8145927f5afc519dbd | [
"MIT"
] | null | null | null | import unittest # testing library
# current app
from flask import current_app
# model
from app import db, User, Task
from app import create_app
class FirstTestCase(unittest.TestCase):
# before test
def setUp(self):
pass
# after test
def tearDown(self):
pass
def test_first(self):
... | 19.444444 | 39 | 0.674286 | 47 | 350 | 4.957447 | 0.574468 | 0.085837 | 0.111588 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007663 | 0.254286 | 350 | 17 | 40 | 20.588235 | 0.885057 | 0.16 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0.272727 | false | 0.181818 | 0.363636 | 0 | 0.727273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 4 |
9f34f749f59f956499a737cfd504ae1d72c76c8f | 91 | py | Python | archives/apps.py | Gao-Chuan/blog | 4dcbf0720e50be7f11841778889301b7dcb14e2d | [
"Apache-2.0"
] | 5 | 2018-11-16T20:23:19.000Z | 2020-10-02T21:54:03.000Z | archives/apps.py | Gao-Chuan/blog | 4dcbf0720e50be7f11841778889301b7dcb14e2d | [
"Apache-2.0"
] | 236 | 2018-11-17T01:56:47.000Z | 2019-12-05T01:57:03.000Z | archives/apps.py | yar-kik/django_blog | 3457ba7921ffe60299958f336599ecee4901bd04 | [
"MIT"
] | 26 | 2018-11-09T21:16:25.000Z | 2019-06-11T04:38:12.000Z | from django.apps import AppConfig
class ArchivesConfig(AppConfig):
name = 'archives'
| 15.166667 | 33 | 0.758242 | 10 | 91 | 6.9 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164835 | 91 | 5 | 34 | 18.2 | 0.907895 | 0 | 0 | 0 | 0 | 0 | 0.087912 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
9f7c45d97ebefbb19be007d9898615033a715b78 | 194 | py | Python | GUI/maidfiddler/ui/resources.py | drakomut/COM3D2.MaidFiddler | 31b1d0f369a4036aff2f851df44a3c1ef4ff2604 | [
"MIT"
] | 121 | 2018-03-05T19:06:30.000Z | 2021-02-02T15:45:02.000Z | GUI/maidfiddler/ui/resources.py | drakomut/COM3D2.MaidFiddler | 31b1d0f369a4036aff2f851df44a3c1ef4ff2604 | [
"MIT"
] | 59 | 2018-08-25T12:37:43.000Z | 2021-01-21T13:19:07.000Z | GUI/maidfiddler/ui/resources.py | drakomut/COM3D2.MaidFiddler | 31b1d0f369a4036aff2f851df44a3c1ef4ff2604 | [
"MIT"
] | 24 | 2018-03-13T04:07:30.000Z | 2021-01-15T13:14:54.000Z | from maidfiddler.util.util import open_bytes
NO_THUMBNAIL = open_bytes("templates/no_thumbnail.png")
APP_ICON = open_bytes("templates/app_icon.ico")
ERR_ICON = open_bytes("templates/error.png") | 38.8 | 55 | 0.814433 | 30 | 194 | 4.966667 | 0.5 | 0.241611 | 0.362416 | 0.295302 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06701 | 194 | 5 | 56 | 38.8 | 0.823204 | 0 | 0 | 0 | 0 | 0 | 0.34359 | 0.246154 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
9fa628f88e16639cbfdf14e0b121ae6836b518ee | 243 | py | Python | readthedocs/projects/exceptions.py | dbdaryl/readthedocs.org | 09a14c7ffaf571fd136037c0f343926e275f6ce7 | [
"MIT"
] | 1 | 2019-01-05T09:49:52.000Z | 2019-01-05T09:49:52.000Z | readthedocs/projects/exceptions.py | dbdaryl/readthedocs.org | 09a14c7ffaf571fd136037c0f343926e275f6ce7 | [
"MIT"
] | 4 | 2021-02-08T21:06:49.000Z | 2021-12-13T20:51:17.000Z | readthedocs/projects/exceptions.py | dbdaryl/readthedocs.org | 09a14c7ffaf571fd136037c0f343926e275f6ce7 | [
"MIT"
] | 3 | 2016-08-04T12:53:13.000Z | 2016-11-02T14:17:55.000Z | """Project exceptions"""
class ProjectImportError (Exception):
"""Failure to import a project from a repository."""
pass
class ProjectSpamError(Exception):
"""Error raised when a project field has detected spam"""
pass
| 15.1875 | 61 | 0.691358 | 27 | 243 | 6.222222 | 0.740741 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.205761 | 243 | 15 | 62 | 16.2 | 0.870466 | 0.481481 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
9fb79cff4cddb33cea772355895468f85c47b974 | 183 | py | Python | app/request.py | cinston/Blog | 744d90b96ef90330f8ce6f43756b8de80ec659dc | [
"Unlicense"
] | null | null | null | app/request.py | cinston/Blog | 744d90b96ef90330f8ce6f43756b8de80ec659dc | [
"Unlicense"
] | null | null | null | app/request.py | cinston/Blog | 744d90b96ef90330f8ce6f43756b8de80ec659dc | [
"Unlicense"
] | null | null | null | # import requests
# def random_quote():
# url='http://quotes.stormconsultancy.co.uk/random.json'
# blockquote= requests.get(url)
# quote= blockquote.json()
# return quote | 26.142857 | 59 | 0.688525 | 22 | 183 | 5.681818 | 0.681818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15847 | 183 | 7 | 60 | 26.142857 | 0.811688 | 0.928962 | 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 |
9fb87b6f6d8c1f5017f91ebca18bd30c786610d5 | 170 | py | Python | src/main/python/plugins/example/json/JsonWriter.py | mayadebellis/incubator-sdap-edge | c0899e508a06d614aa58ec9e991443640ba39e65 | [
"Apache-2.0"
] | 6 | 2017-11-16T07:34:47.000Z | 2021-11-10T19:20:10.000Z | src/main/python/plugins/example/json/JsonWriter.py | mayadebellis/incubator-sdap-edge | c0899e508a06d614aa58ec9e991443640ba39e65 | [
"Apache-2.0"
] | 5 | 2019-02-11T23:46:22.000Z | 2019-12-02T21:47:31.000Z | src/main/python/plugins/example/json/JsonWriter.py | mayadebellis/incubator-sdap-edge | c0899e508a06d614aa58ec9e991443640ba39e65 | [
"Apache-2.0"
] | 9 | 2017-11-16T07:34:54.000Z | 2021-11-10T19:20:02.000Z | import requestresponder
class JsonWriter(requestresponder.RequestResponder):
def get(self, requestHandler):
requestHandler.write('{"test": "aaa"}')
| 24.285714 | 52 | 0.7 | 14 | 170 | 8.5 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.182353 | 170 | 6 | 53 | 28.333333 | 0.856115 | 0 | 0 | 0 | 0 | 0 | 0.088235 | 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 |
9fbc89dece813d21df3f8c9bca16d371812d2fc5 | 386 | py | Python | blackscholes/example/pricing.py | flios/blackscholes | cfa786233b5820a4633ac18e261b59aef58183b5 | [
"MIT"
] | null | null | null | blackscholes/example/pricing.py | flios/blackscholes | cfa786233b5820a4633ac18e261b59aef58183b5 | [
"MIT"
] | null | null | null | blackscholes/example/pricing.py | flios/blackscholes | cfa786233b5820a4633ac18e261b59aef58183b5 | [
"MIT"
] | null | null | null | from blackscholes import BSModel
import numpy as np
BS = BSModel([])
bs = BS(1220, 22/365, 2.2719/100, 0, "C", vol= 0.2, spot=1240)
print(bs)
print(bs.price)
bs = BS(1220, 22/365, 2.2719/100, 0, "C", vol= np.array([0.2,0.3]), spot=1240)
print(bs)
print(bs.price)
bs = BS(1220, 22/365, 2.2719/100, 0, "C", vol= np.array... | 27.571429 | 95 | 0.639896 | 81 | 386 | 3.049383 | 0.308642 | 0.17004 | 0.097166 | 0.121457 | 0.692308 | 0.615385 | 0.615385 | 0.615385 | 0.615385 | 0.615385 | 0 | 0.236686 | 0.124352 | 386 | 14 | 96 | 27.571429 | 0.494083 | 0 | 0 | 0.5 | 0 | 0 | 0.007752 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 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 | 1 | 0 | 4 |
9fcdf9622b84bfbf569822553397c6e7f1b8c8f9 | 148 | py | Python | match/haloPhi.py | Max-astro/A2Project | 5d40263742133f214936b06b622d08092e694aed | [
"MIT"
] | null | null | null | match/haloPhi.py | Max-astro/A2Project | 5d40263742133f214936b06b622d08092e694aed | [
"MIT"
] | null | null | null | match/haloPhi.py | Max-astro/A2Project | 5d40263742133f214936b06b622d08092e694aed | [
"MIT"
] | null | null | null | import numpy as np
import sys
import h5py
import illustris_python as il
f = h5py.File('/Raid1/Illustris/Illustris-1/snap_ics.hdf5', 'r')
| 16.444444 | 65 | 0.716216 | 24 | 148 | 4.333333 | 0.708333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041322 | 0.182432 | 148 | 8 | 66 | 18.5 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0.309353 | 0.302158 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.8 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
4c7c422fe5a659b50d3e0cb6aaf559e88bf98db8 | 978 | py | Python | packages/winpanda/extra/src/winpanda/cfgm/exceptions.py | KostiantynOleksiienko/dcos | 7fb35e445bbfa4135f9addf36cb9453c0077bff6 | [
"Apache-2.0"
] | 2 | 2019-11-27T13:10:26.000Z | 2019-12-03T10:35:56.000Z | packages/winpanda/extra/src/winpanda/cfgm/exceptions.py | KostiantynOleksiienko/dcos | 7fb35e445bbfa4135f9addf36cb9453c0077bff6 | [
"Apache-2.0"
] | 5 | 2019-12-02T21:00:37.000Z | 2019-12-05T07:47:42.000Z | packages/winpanda/extra/src/winpanda/cfgm/exceptions.py | KostiantynOleksiienko/dcos | 7fb35e445bbfa4135f9addf36cb9453c0077bff6 | [
"Apache-2.0"
] | 3 | 2019-10-21T11:31:25.000Z | 2019-11-20T06:54:47.000Z | """Panda package management for Windows.
DC/OS package configuration files manager exceptions definition.
"""
from common import exceptions as cm_exc
from core import exceptions as cr_exc
class PkgConfManagerError(cm_exc.WinpandaError):
"""Generic DC/OS package configuration files manager error."""
pass
c... | 23.853659 | 77 | 0.752556 | 111 | 978 | 6.594595 | 0.387387 | 0.038251 | 0.105191 | 0.229508 | 0.505464 | 0.445355 | 0.196721 | 0.196721 | 0.196721 | 0.196721 | 0 | 0 | 0.167689 | 978 | 40 | 78 | 24.45 | 0.899263 | 0.486708 | 0 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.428571 | 0.142857 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
4c97230e255f72e67a2b4fdf53e9eb4e3478519b | 43 | py | Python | arq/version.py | steinitzu/arq | 88afd6183283dcdf506f9331fd202f9f39ef83ac | [
"MIT"
] | null | null | null | arq/version.py | steinitzu/arq | 88afd6183283dcdf506f9331fd202f9f39ef83ac | [
"MIT"
] | 1 | 2021-01-11T11:01:49.000Z | 2021-01-22T08:26:07.000Z | arq/version.py | steinitzu/arq | 88afd6183283dcdf506f9331fd202f9f39ef83ac | [
"MIT"
] | 1 | 2021-01-10T09:30:06.000Z | 2021-01-10T09:30:06.000Z | __all__ = ('VERSION',)
VERSION = '0.19.1'
| 10.75 | 22 | 0.581395 | 6 | 43 | 3.5 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 0.162791 | 43 | 3 | 23 | 14.333333 | 0.472222 | 0 | 0 | 0 | 0 | 0 | 0.302326 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
4cafcb6828240c81afbbe5126497577c3a391c67 | 172 | py | Python | boilerplate/model/Department.py | DitoHI/flask-graphql | e27924ffe72f61feb8108f63af9245a1a5efa42f | [
"MIT"
] | 1 | 2019-07-09T04:37:27.000Z | 2019-07-09T04:37:27.000Z | boilerplate/model/Department.py | DitoHI/flask-graphql | e27924ffe72f61feb8108f63af9245a1a5efa42f | [
"MIT"
] | null | null | null | boilerplate/model/Department.py | DitoHI/flask-graphql | e27924ffe72f61feb8108f63af9245a1a5efa42f | [
"MIT"
] | null | null | null | from mongoengine import Document
from mongoengine.fields import StringField
class Department(Document):
meta = {"collection": "department"}
name = StringField()
| 19.111111 | 42 | 0.75 | 17 | 172 | 7.588235 | 0.647059 | 0.232558 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162791 | 172 | 8 | 43 | 21.5 | 0.895833 | 0 | 0 | 0 | 0 | 0 | 0.116279 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
4cbf20f79cae0078ac2779013bbb65e9a183940e | 191 | py | Python | app/old_app.py | RasPat1/wordle-world-whirl | b2060bffb1bb9627196d99a40cd1b89894227e00 | [
"MIT"
] | null | null | null | app/old_app.py | RasPat1/wordle-world-whirl | b2060bffb1bb9627196d99a40cd1b89894227e00 | [
"MIT"
] | null | null | null | app/old_app.py | RasPat1/wordle-world-whirl | b2060bffb1bb9627196d99a40cd1b89894227e00 | [
"MIT"
] | null | null | null | # from flask import Flask
# from flask import render_template
# app = Flask(__name__)
# @app.route('/')
# def index():
# name = "tst"
# return render_template('hello.html', name=name)
| 17.363636 | 51 | 0.664921 | 25 | 191 | 4.84 | 0.56 | 0.14876 | 0.247934 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.17801 | 191 | 10 | 52 | 19.1 | 0.770701 | 0.905759 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
4cc868411e4ee91c29111fd2d9dad52c9e6c46cd | 110 | py | Python | src/jupytray/__main__.py | tfiers/jupytray | 801cbe0b038379c3ce050e19e24348f441e74ba5 | [
"MIT"
] | 4 | 2020-10-21T15:56:21.000Z | 2022-02-01T17:16:39.000Z | src/jupytray/__main__.py | tfiers/jupyter-tray-app | c17079e2a967bda9a4c154d0fdea6e6328bea996 | [
"MIT"
] | null | null | null | src/jupytray/__main__.py | tfiers/jupyter-tray-app | c17079e2a967bda9a4c154d0fdea6e6328bea996 | [
"MIT"
] | null | null | null | """
This script is executed when running `python -m jupytray`.
"""
from .tray_app import run_app
run_app()
| 12.222222 | 58 | 0.709091 | 17 | 110 | 4.411765 | 0.823529 | 0.16 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172727 | 110 | 8 | 59 | 13.75 | 0.824176 | 0.527273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
4ccd1acca3e432fd25c3857206e5c7611ebca6c9 | 332 | py | Python | pyopenproject/business/services/budget_service_impl.py | webu/pyopenproject | 40b2cb9fe0fa3f89bc0fe2a3be323422d9ecf966 | [
"MIT"
] | 5 | 2021-02-25T15:54:28.000Z | 2021-04-22T15:43:36.000Z | pyopenproject/business/services/budget_service_impl.py | webu/pyopenproject | 40b2cb9fe0fa3f89bc0fe2a3be323422d9ecf966 | [
"MIT"
] | 7 | 2021-03-15T16:26:23.000Z | 2022-03-16T13:45:18.000Z | pyopenproject/business/services/budget_service_impl.py | webu/pyopenproject | 40b2cb9fe0fa3f89bc0fe2a3be323422d9ecf966 | [
"MIT"
] | 6 | 2021-06-18T18:59:11.000Z | 2022-03-27T04:58:52.000Z | from pyopenproject.business.budget_service import BudgetService
from pyopenproject.business.services.command.budget.find import Find
class BudgetServiceImpl(BudgetService):
def __init__(self, connection):
super().__init__(connection)
def find(self, budget):
return Find(self.connection, budget... | 30.181818 | 68 | 0.768072 | 36 | 332 | 6.833333 | 0.527778 | 0.138211 | 0.203252 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141566 | 332 | 10 | 69 | 33.2 | 0.863158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.285714 | 0.142857 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 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 |
4cdd102b4ab0a17faeb77c9d18dccaa91b925be7 | 55 | py | Python | datazeus/__init__.py | mfhorita/Datazeus | b2a716105191e7e08ed1a66deb89a0841a927111 | [
"MIT"
] | 1 | 2021-11-26T00:21:01.000Z | 2021-11-26T00:21:01.000Z | datazeus/__init__.py | mfhorita/Datazeus | b2a716105191e7e08ed1a66deb89a0841a927111 | [
"MIT"
] | null | null | null | datazeus/__init__.py | mfhorita/Datazeus | b2a716105191e7e08ed1a66deb89a0841a927111 | [
"MIT"
] | null | null | null | if not __name__ == '__main__':
from .main import *
| 18.333333 | 30 | 0.636364 | 7 | 55 | 3.857143 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.236364 | 55 | 2 | 31 | 27.5 | 0.642857 | 0 | 0 | 0 | 0 | 0 | 0.145455 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
4cdf5f020acd1d6f3f54295eacd08d51eadcb0f4 | 232 | py | Python | src/anoapycore/chart/pairplot/__init__.py | ah4d1/anoapycore | b530a7fd97e0f97659b3936733db8bc906efaa3e | [
"BSD-3-Clause"
] | null | null | null | src/anoapycore/chart/pairplot/__init__.py | ah4d1/anoapycore | b530a7fd97e0f97659b3936733db8bc906efaa3e | [
"BSD-3-Clause"
] | null | null | null | src/anoapycore/chart/pairplot/__init__.py | ah4d1/anoapycore | b530a7fd97e0f97659b3936733db8bc906efaa3e | [
"BSD-3-Clause"
] | null | null | null | # chart.pairplot
import matplotlib.pyplot as __plt
import seaborn as __sns
import multipledispatch as __dispatch
def show (a_data) :
__sns.pairplot(a_data)
def shows (a_data,a_columns) :
__sns.pairplot(a_data[a_columns])
| 19.333333 | 37 | 0.771552 | 35 | 232 | 4.657143 | 0.485714 | 0.122699 | 0.147239 | 0.196319 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.150862 | 232 | 11 | 38 | 21.090909 | 0.827411 | 0.060345 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.428571 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
980d566a680851b7aec065990ab6d8f69102efa3 | 570 | py | Python | Population.py | robbierobinette/rcv-tensorflow | 984852902f465bb6f61ba863e4b76092249911d0 | [
"MIT"
] | null | null | null | Population.py | robbierobinette/rcv-tensorflow | 984852902f465bb6f61ba863e4b76092249911d0 | [
"MIT"
] | null | null | null | Population.py | robbierobinette/rcv-tensorflow | 984852902f465bb6f61ba863e4b76092249911d0 | [
"MIT"
] | null | null | null | from Voter import Voter
from Party import Party
from typing import List
class Population:
def __init__(self, party: Party):
super().__init__()
self.party = party
def partisan_sample_voter(self) -> Voter:
pass
def unit_sample_voter(self) -> Voter:
pass
def generate_pa... | 25.909091 | 74 | 0.664912 | 78 | 570 | 4.602564 | 0.320513 | 0.122563 | 0.072423 | 0.100279 | 0.412256 | 0.412256 | 0.261838 | 0.261838 | 0.261838 | 0.261838 | 0 | 0 | 0.224561 | 570 | 21 | 75 | 27.142857 | 0.812217 | 0 | 0 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.133333 | 0.2 | 0.133333 | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
e23a843cb50b8ea256f9ac5f731922f3f4cc0b69 | 224 | py | Python | PythonAPI/daos/batch_dao.py | lamarhinchen/assessment-tracker | 6f1fa6aec73b3b1298b7d0a13c16d49e8a10d326 | [
"Unlicense"
] | 3 | 2021-05-25T23:36:43.000Z | 2021-06-15T18:09:52.000Z | PythonAPI/daos/batch_dao.py | lamarhinchen/assessment-tracker | 6f1fa6aec73b3b1298b7d0a13c16d49e8a10d326 | [
"Unlicense"
] | 16 | 2021-05-26T14:03:45.000Z | 2021-06-08T03:27:26.000Z | PythonAPI/daos/batch_dao.py | lamarhinchen/assessment-tracker | 6f1fa6aec73b3b1298b7d0a13c16d49e8a10d326 | [
"Unlicense"
] | 4 | 2021-05-26T03:07:48.000Z | 2021-06-29T19:28:57.000Z | from abc import abstractmethod, ABC
class BatchDAO(ABC):
@abstractmethod
def get_all_batches_by_year(self, trainer_id, year):
pass
@abstractmethod
def get_batch_by_id(self, batch_id):
pass
| 18.666667 | 56 | 0.696429 | 30 | 224 | 4.9 | 0.566667 | 0.231293 | 0.272109 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.236607 | 224 | 11 | 57 | 20.363636 | 0.859649 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.25 | 0.125 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
e23d0305a0817ae8fac851453716db905f150814 | 181 | py | Python | dinosaurus/__init__.py | achapkowski/dinosaurus | 5a89a9162c86e84cffe0690530c36aa9ad8c6ece | [
"Apache-2.0"
] | 5 | 2017-02-15T13:02:37.000Z | 2019-04-29T04:31:37.000Z | dinosaurus/__init__.py | achapkowski/dinosaurus | 5a89a9162c86e84cffe0690530c36aa9ad8c6ece | [
"Apache-2.0"
] | null | null | null | dinosaurus/__init__.py | achapkowski/dinosaurus | 5a89a9162c86e84cffe0690530c36aa9ad8c6ece | [
"Apache-2.0"
] | null | null | null | from __future__ import absolute_import
from __future__ import print_function
from ._server import Server
#from service import *
#from server import manage, ags
__version__ = "1.0.0" | 30.166667 | 38 | 0.81768 | 26 | 181 | 5.115385 | 0.5 | 0.150376 | 0.240602 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018987 | 0.127072 | 181 | 6 | 39 | 30.166667 | 0.822785 | 0.281768 | 0 | 0 | 0 | 0 | 0.03876 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 0 | 0.75 | 0.25 | 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 |
e24c58c7a0764d68b2261b49254b1eb7972eeef6 | 112 | py | Python | languages/python/django-oso/django_oso/__init__.py | delicb/oso | feaa7318db4c6c7d1b6e745a94837e7d0bce1136 | [
"Apache-2.0"
] | 1 | 2021-07-08T17:36:08.000Z | 2021-07-08T17:36:08.000Z | languages/python/django-oso/django_oso/__init__.py | delicb/oso | feaa7318db4c6c7d1b6e745a94837e7d0bce1136 | [
"Apache-2.0"
] | null | null | null | languages/python/django-oso/django_oso/__init__.py | delicb/oso | feaa7318db4c6c7d1b6e745a94837e7d0bce1136 | [
"Apache-2.0"
] | 1 | 2021-06-04T22:15:54.000Z | 2021-06-04T22:15:54.000Z | import oso
from .oso import Oso
__version__ = "0.8.0"
default_app_config = "django_oso.apps.DjangoOsoConfig"
| 14 | 54 | 0.767857 | 17 | 112 | 4.647059 | 0.705882 | 0.227848 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030928 | 0.133929 | 112 | 7 | 55 | 16 | 0.783505 | 0 | 0 | 0 | 0 | 0 | 0.321429 | 0.276786 | 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 |
e2601fa4dafadab989a0e0de568dfddc91632463 | 1,024 | py | Python | marqeta/response_models/pagination.py | marqeta/marqeta-python | 66fa690eb910825c510a391720b0fe717fac0234 | [
"MIT"
] | 21 | 2019-04-12T09:02:17.000Z | 2022-02-18T11:39:06.000Z | marqeta/response_models/pagination.py | marqeta/marqeta-python | 66fa690eb910825c510a391720b0fe717fac0234 | [
"MIT"
] | 1 | 2020-07-22T21:27:40.000Z | 2020-07-23T17:38:43.000Z | marqeta/response_models/pagination.py | marqeta/marqeta-python | 66fa690eb910825c510a391720b0fe717fac0234 | [
"MIT"
] | 10 | 2019-05-08T14:20:37.000Z | 2021-09-20T18:09:26.000Z | from datetime import datetime, date
from marqeta.response_models import datetime_object
import json
import re
class Pagination(object):
def __init__(self, json_response):
self.json_response = json_response
def __str__(self):
return json.dumps(self.json_response, default=self.json_serial)
... | 24.97561 | 82 | 0.675781 | 130 | 1,024 | 5.015385 | 0.276923 | 0.110429 | 0.196319 | 0.138037 | 0.23773 | 0.23773 | 0.104294 | 0 | 0 | 0 | 0 | 0 | 0.222656 | 1,024 | 40 | 83 | 25.6 | 0.819095 | 0 | 0 | 0.166667 | 0 | 0 | 0.081055 | 0.045898 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.133333 | 0.233333 | 0.733333 | 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 |
e2a250524545d7dd6656e513ec597561b2741c18 | 284 | py | Python | ope-backend/src/domain/dto/product_order_to_update_dto.py | clauddio-silva/ope-1 | 8be8a10c0db3d2f17e8e90a594abdf5770d53fa3 | [
"CC0-1.0"
] | 2 | 2021-08-12T23:31:38.000Z | 2021-08-24T11:16:53.000Z | ope-backend/src/domain/dto/product_order_to_update_dto.py | clauddio-silva/ope-1 | 8be8a10c0db3d2f17e8e90a594abdf5770d53fa3 | [
"CC0-1.0"
] | 1 | 2021-09-16T18:17:23.000Z | 2021-09-16T18:17:23.000Z | ope-backend/src/domain/dto/product_order_to_update_dto.py | clauddio-silva/ope-1 | 8be8a10c0db3d2f17e8e90a594abdf5770d53fa3 | [
"CC0-1.0"
] | 6 | 2021-08-23T23:19:53.000Z | 2021-11-30T23:24:12.000Z | from flask_restx import fields
Product_OrderToUpdate = {
'id': fields.Integer(readonly=True),
'product_id': fields.Integer(required=True),
'order_id': fields.Integer(required=True),
'price': fields.Float(required=True),
'amount': fields.Integer(required=True),
} | 31.555556 | 48 | 0.711268 | 34 | 284 | 5.823529 | 0.470588 | 0.262626 | 0.227273 | 0.378788 | 0.272727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137324 | 284 | 9 | 49 | 31.555556 | 0.808163 | 0 | 0 | 0 | 0 | 0 | 0.108772 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
e2a821ed471b37dd8c3f52ee2dd1ae0688547330 | 441 | py | Python | dps/datasets/__init__.py | alcinos/dps | 5467db1216e9f9089376d2c71f524ced2382e4f6 | [
"Apache-2.0"
] | null | null | null | dps/datasets/__init__.py | alcinos/dps | 5467db1216e9f9089376d2c71f524ced2382e4f6 | [
"Apache-2.0"
] | null | null | null | dps/datasets/__init__.py | alcinos/dps | 5467db1216e9f9089376d2c71f524ced2382e4f6 | [
"Apache-2.0"
] | null | null | null | from .load import load_emnist, emnist_classes, load_omniglot, omniglot_classes, load_backgrounds, background_names
from .base import (
ArrayFeature, ImageFeature, Dataset, ImageDataset,
ImageClassificationDataset, EmnistDataset, OmniglotDataset, PatchesDataset, GridPatchesDataset,
VisualArithmeticDataset, G... | 55.125 | 114 | 0.843537 | 35 | 441 | 10.457143 | 0.714286 | 0.060109 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104308 | 441 | 8 | 115 | 55.125 | 0.926582 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
e2abd79a26a9de4c8975442f9a76e5ca3e053d5b | 196 | py | Python | hodolbot/views/covid19.py | solar0037/hodolbot | f758375efce2dede58d920d41cab4a8ad38d1d58 | [
"MIT"
] | null | null | null | hodolbot/views/covid19.py | solar0037/hodolbot | f758375efce2dede58d920d41cab4a8ad38d1d58 | [
"MIT"
] | 3 | 2021-08-02T01:59:04.000Z | 2021-08-02T01:59:15.000Z | hodolbot/views/covid19.py | solar0037/hodolbot | f758375efce2dede58d920d41cab4a8ad38d1d58 | [
"MIT"
] | null | null | null | from hodolbot.classes import View
from hodolbot.controllers import covid19_handler
class Covid19View(View):
command = "코로나"
@staticmethod
def get():
return covid19_handler()
| 19.6 | 48 | 0.72449 | 22 | 196 | 6.363636 | 0.727273 | 0.171429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038462 | 0.204082 | 196 | 9 | 49 | 21.777778 | 0.858974 | 0 | 0 | 0 | 0 | 0 | 0.015306 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0.142857 | 0.857143 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
2c44a49e31dbcff0a1bc433d6ff821091a993db8 | 188 | py | Python | Rango/bin/django-admin.py | shiziwen/excise-tango-with-django-1.7 | 358b0fec8b3b8863a1a03d2e3be76d0ec5378571 | [
"Apache-2.0"
] | null | null | null | Rango/bin/django-admin.py | shiziwen/excise-tango-with-django-1.7 | 358b0fec8b3b8863a1a03d2e3be76d0ec5378571 | [
"Apache-2.0"
] | 4 | 2021-03-18T20:20:15.000Z | 2021-09-07T23:43:19.000Z | Rango/bin/django-admin.py | shiziwen/excise-tango-with-django-1.7 | 358b0fec8b3b8863a1a03d2e3be76d0ec5378571 | [
"Apache-2.0"
] | null | null | null | #!/Users/mac/Documents/codes/Django/excise-tango-with-django-1.7/Rango/bin/python
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| 31.333333 | 81 | 0.787234 | 27 | 188 | 5.074074 | 0.851852 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011561 | 0.079787 | 188 | 5 | 82 | 37.6 | 0.780347 | 0.425532 | 0 | 0 | 0 | 0 | 0.074766 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
2c8612523b00b7b70eee4f2e9d69eecca300c07d | 233 | py | Python | tonic/__init__.py | Eyalcohenx/tonic | afc15c6fa23fed4f696f68f0acf961964b0172dc | [
"MIT"
] | 350 | 2020-08-06T13:49:11.000Z | 2022-03-24T08:53:59.000Z | tonic/__init__.py | Eyalcohenx/tonic | afc15c6fa23fed4f696f68f0acf961964b0172dc | [
"MIT"
] | 12 | 2020-08-07T02:21:58.000Z | 2021-05-20T11:50:44.000Z | tonic/__init__.py | Eyalcohenx/tonic | afc15c6fa23fed4f696f68f0acf961964b0172dc | [
"MIT"
] | 35 | 2020-08-06T16:53:40.000Z | 2021-12-17T06:01:09.000Z | from . import agents
from . import environments
from . import explorations
from . import replays
from .utils import logger
from .utils.trainer import Trainer
__all__ = [agents, environments, explorations, logger, replays, Trainer]
| 23.3 | 72 | 0.7897 | 28 | 233 | 6.428571 | 0.357143 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145923 | 233 | 9 | 73 | 25.888889 | 0.904523 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.857143 | 0 | 0.857143 | 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 |
2ca4134b83b0a8325c593ab026cba3e8f850db19 | 102 | py | Python | Incident-Response/Tools/dfirtrack/dfirtrack_main/apps.py | sn0b4ll/Incident-Playbook | cf519f58fcd4255674662b3620ea97c1091c1efb | [
"MIT"
] | 1 | 2021-07-24T17:22:50.000Z | 2021-07-24T17:22:50.000Z | Incident-Response/Tools/dfirtrack/dfirtrack_main/apps.py | sn0b4ll/Incident-Playbook | cf519f58fcd4255674662b3620ea97c1091c1efb | [
"MIT"
] | 2 | 2022-02-28T03:40:31.000Z | 2022-02-28T03:40:52.000Z | Incident-Response/Tools/dfirtrack/dfirtrack_main/apps.py | sn0b4ll/Incident-Playbook | cf519f58fcd4255674662b3620ea97c1091c1efb | [
"MIT"
] | 2 | 2022-02-25T08:34:51.000Z | 2022-03-16T17:29:44.000Z | from django.apps import AppConfig
class DfirtrackMainConfig(AppConfig):
name = 'dfirtrack_main'
| 17 | 37 | 0.784314 | 11 | 102 | 7.181818 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147059 | 102 | 5 | 38 | 20.4 | 0.908046 | 0 | 0 | 0 | 0 | 0 | 0.137255 | 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 |
2cb59e4674fe553e3e382f992db888d8eda3eef4 | 1,187 | py | Python | cap_09_flask_login/exemplo_flask_login/app/models.py | santiagosilas/BasicoFlaskDevWeb | de7b952427e453b365c84a7f26882174d5cb13ae | [
"MIT"
] | 1 | 2020-11-12T15:27:20.000Z | 2020-11-12T15:27:20.000Z | cap_09_flask_login/exemplo_flask_login/app/models.py | santiagosilas/BasicoFlaskDevWeb | de7b952427e453b365c84a7f26882174d5cb13ae | [
"MIT"
] | null | null | null | cap_09_flask_login/exemplo_flask_login/app/models.py | santiagosilas/BasicoFlaskDevWeb | de7b952427e453b365c84a7f26882174d5cb13ae | [
"MIT"
] | null | null | null | # coding:utf-8
from datetime import datetime
from flask_sqlalchemy import SQLAlchemy
from app import db
class User(db.Model):
"""
@summary: A User class that extends the SQLAlchemy db.Model class
For authentication we need a User model class that will store the username
and password associated with a ... | 30.435897 | 79 | 0.665543 | 169 | 1,187 | 4.585799 | 0.426036 | 0.051613 | 0.064516 | 0.061935 | 0.092903 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00783 | 0.246841 | 1,187 | 39 | 80 | 30.435897 | 0.85906 | 0.272957 | 0 | 0.083333 | 0 | 0 | 0.01074 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.125 | 0.125 | 0.208333 | 0.833333 | 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 |
e2c3c77e8549c9ccc1e618002070ed5cdf02dff2 | 490 | py | Python | tests/utils.py | rgaudin/pywikiapi | b7de74fd2314f9e85cff585115f5b4b114da7625 | [
"MIT"
] | 9 | 2019-05-18T09:57:50.000Z | 2021-07-22T17:48:47.000Z | tests/utils.py | rgaudin/pywikiapi | b7de74fd2314f9e85cff585115f5b4b114da7625 | [
"MIT"
] | 2 | 2020-03-01T13:53:50.000Z | 2020-08-10T16:21:14.000Z | tests/utils.py | rgaudin/pywikiapi | b7de74fd2314f9e85cff585115f5b4b114da7625 | [
"MIT"
] | 2 | 2021-04-05T08:59:54.000Z | 2021-12-20T21:27:35.000Z | from datetime import tzinfo, timedelta as td
class UTC(tzinfo):
"""Simple UTC tzinfo to avoid external deps"""
def utcoffset(self, dt):
return td()
def tzname(self, dt):
return "UTC"
def dst(self, dt):
return td()
class NonUTC(tzinfo):
"""Simple NON-UTC tzinfo to avoid... | 17.5 | 54 | 0.591837 | 66 | 490 | 4.393939 | 0.393939 | 0.124138 | 0.248276 | 0.144828 | 0.641379 | 0.372414 | 0.372414 | 0.372414 | 0.372414 | 0.372414 | 0 | 0.002899 | 0.295918 | 490 | 27 | 55 | 18.148148 | 0.837681 | 0.173469 | 0 | 0.533333 | 0 | 0 | 0.022843 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0.066667 | 0.4 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
e2d09aa3da3affecf6e229fc5192f0eaf4e0e7b1 | 538 | py | Python | edi_835_parser/elements/__init__.py | javigoncompte/edi-835-parser | 0e44450adea0297bf6e0fbc74ad52cc01f709953 | [
"MIT"
] | 20 | 2021-01-21T21:34:20.000Z | 2022-03-06T16:07:42.000Z | edi_835_parser/elements/__init__.py | javigoncompte/edi-835-parser | 0e44450adea0297bf6e0fbc74ad52cc01f709953 | [
"MIT"
] | 7 | 2021-03-10T18:08:54.000Z | 2022-02-05T04:40:34.000Z | edi_835_parser/elements/__init__.py | javigoncompte/edi-835-parser | 0e44450adea0297bf6e0fbc74ad52cc01f709953 | [
"MIT"
] | 13 | 2021-01-22T19:05:48.000Z | 2022-02-04T23:27:08.000Z | from abc import ABC, abstractmethod
class Element(ABC):
def __set_name__(self, owner, name):
self.private_name = '_' + name
def __get__(self, obj, objtype=None):
return getattr(obj, self.private_name)
def __set__(self, obj, value):
value = self.parser(value)
setattr(obj, self.private_name, value)
@abs... | 18.551724 | 49 | 0.713755 | 74 | 538 | 4.797297 | 0.364865 | 0.092958 | 0.126761 | 0.101408 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169145 | 538 | 28 | 50 | 19.214286 | 0.794183 | 0 | 0 | 0 | 0 | 0 | 0.001859 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.055556 | 0.055556 | 0.111111 | 0.611111 | 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 |
e2d4d19955c2e0a8a994a1f0dfae268f1fca8fd6 | 95 | py | Python | eca_catalogue/measurement/__init__.py | byteweaver/django-eca-catalogue | a2d2eb4e03785c53f03fcf6afe0c4285e329472f | [
"BSD-3-Clause"
] | 3 | 2015-03-26T04:04:56.000Z | 2018-08-12T10:34:44.000Z | eca_catalogue/measurement/__init__.py | byteweaver/django-eca-catalogue | a2d2eb4e03785c53f03fcf6afe0c4285e329472f | [
"BSD-3-Clause"
] | 3 | 2020-02-11T21:18:46.000Z | 2021-06-10T17:23:28.000Z | eca_catalogue/measurement/__init__.py | byteweaver/django-eca-catalogue | a2d2eb4e03785c53f03fcf6afe0c4285e329472f | [
"BSD-3-Clause"
] | 2 | 2017-03-02T03:28:12.000Z | 2017-05-14T20:41:54.000Z | """This app provides models defining any type of product measurement like, size weight etc."""
| 47.5 | 94 | 0.768421 | 14 | 95 | 5.214286 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147368 | 95 | 1 | 95 | 95 | 0.901235 | 0.926316 | 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 |
e2d6f3f68fd9a5025fbd98a9e28c8e646d431a3c | 401 | py | Python | ShitDB/errors.py | v1s1t0r999/ShitDB | 930e214b3d3311a10e41554393ad7d4d6cce40e8 | [
"MIT"
] | 1 | 2022-01-25T06:18:47.000Z | 2022-01-25T06:18:47.000Z | ShitDB/errors.py | v1s1t0r999/ShitDB | 930e214b3d3311a10e41554393ad7d4d6cce40e8 | [
"MIT"
] | null | null | null | ShitDB/errors.py | v1s1t0r999/ShitDB | 930e214b3d3311a10e41554393ad7d4d6cce40e8 | [
"MIT"
] | null | null | null | """
Just to keep the library clean and structured
"""
class ShitException(Exception):
pass
class BadArgs(ShitException):
pass
class NotFound(ShitException):
pass
class Forbidden(ShitException):
pass
class ServiceUnavailable(ShitException):
pass
class RateLimi... | 11.794118 | 46 | 0.663342 | 36 | 401 | 7.388889 | 0.5 | 0.203008 | 0.413534 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.269327 | 401 | 33 | 47 | 12.151515 | 0.90785 | 0.112219 | 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 |
e2e02f37e6343641d86581ce84c6a84497c98232 | 574 | py | Python | complex_boolean_expressions.py | guyjacks/codementor-learn-python | 7e4fb4e03e37cad2b97527a8bcbb1a71d2bc8f86 | [
"MIT"
] | null | null | null | complex_boolean_expressions.py | guyjacks/codementor-learn-python | 7e4fb4e03e37cad2b97527a8bcbb1a71d2bc8f86 | [
"MIT"
] | null | null | null | complex_boolean_expressions.py | guyjacks/codementor-learn-python | 7e4fb4e03e37cad2b97527a8bcbb1a71d2bc8f86 | [
"MIT"
] | null | null | null | print "Does 2 plus 2 equals six evaluate to true?"
print 2 + 2 == 6
print "\n"
print "Does 10 plus 2 equals 12 evaluate to true?"
print 10 + 2 == 12
print "\n"
print "Is 10 times 2 less than 10?"
print 10 * 2 < 10
print "\n"
print "Is 5 times 5 greater than 15?"
print 5 * 5 > 15
print "\n"
print "Does 5 * 5 + 3 equ... | 21.259259 | 64 | 0.602787 | 111 | 574 | 3.117117 | 0.297297 | 0.040462 | 0.190751 | 0.16474 | 0.234104 | 0.234104 | 0.234104 | 0.234104 | 0.144509 | 0 | 0 | 0.146853 | 0.252613 | 574 | 26 | 65 | 22.076923 | 0.659674 | 0 | 0 | 0.3 | 0 | 0 | 0.487805 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 1 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
e2f6fed2b4cbc61a09ab9ede8caebcc7c5a1cfaa | 208 | py | Python | Patterns/pyprakhar.py | sanchit781/HACKTOBERFEST2021_PATTERN | c457eb2a1c7b729bdaa26ade7d4c7eb4092291e2 | [
"MIT"
] | 229 | 2021-09-10T13:24:47.000Z | 2022-03-18T16:54:29.000Z | Patterns/pyprakhar.py | sanchit781/HACKTOBERFEST2021_PATTERN | c457eb2a1c7b729bdaa26ade7d4c7eb4092291e2 | [
"MIT"
] | 164 | 2021-09-10T12:04:39.000Z | 2021-10-29T21:20:42.000Z | Patterns/pyprakhar.py | sanchit781/HACKTOBERFEST2021_PATTERN | c457eb2a1c7b729bdaa26ade7d4c7eb4092291e2 | [
"MIT"
] | 567 | 2021-09-10T17:35:27.000Z | 2021-12-11T12:45:43.000Z | #Unique Pyramid Pattern of Digits
n = 6
for i in range (1, n + 1):
for j in range (1, i - 1):
print (j, end = " ")
for j in range (i - 1, 0, -1):
print (j, end = " ")
print ()
| 23.111111 | 35 | 0.461538 | 36 | 208 | 2.666667 | 0.444444 | 0.21875 | 0.166667 | 0.229167 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062016 | 0.379808 | 208 | 8 | 36 | 26 | 0.682171 | 0.153846 | 0 | 0.285714 | 0 | 0 | 0.011429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.428571 | 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 |
e2fb217d1a03cead1dbf7645abfe2ecb5c11b77f | 336 | py | Python | Python/leetcode/NumberOfDigitOne.py | darrencheng0817/AlgorithmLearning | aec1ddd0c51b619c1bae1e05f940d9ed587aa82f | [
"MIT"
] | 2 | 2015-12-02T06:44:01.000Z | 2016-05-04T21:40:54.000Z | Python/leetcode/NumberOfDigitOne.py | darrencheng0817/AlgorithmLearning | aec1ddd0c51b619c1bae1e05f940d9ed587aa82f | [
"MIT"
] | null | null | null | Python/leetcode/NumberOfDigitOne.py | darrencheng0817/AlgorithmLearning | aec1ddd0c51b619c1bae1e05f940d9ed587aa82f | [
"MIT"
] | null | null | null | '''
Created on 1.12.2016
@author: Darren
''''''
Given an integer n, count the total number of digit 1 appearing in all non-negative integers less than or equal to n.
For example:
Given n = 13,
Return 6, because digit 1 occurred in the following numbers: 1, 10, 11, 12, 13.
Beware of overf... | 18.666667 | 119 | 0.633929 | 53 | 336 | 4.018868 | 0.773585 | 0.056338 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086066 | 0.27381 | 336 | 17 | 120 | 19.764706 | 0.786885 | 0.901786 | 0 | 0.25 | 0 | 0.25 | 0.974453 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
e2fc5d3f64dfe652bc737a0584594abb5c93b647 | 10,289 | py | Python | authors/apps/authentication/tests/test_user_registration.py | andela/ah-legion | 223f8c207d3de40f5d9fe7d5bb57b452b04af86f | [
"BSD-3-Clause"
] | 3 | 2019-03-23T16:56:32.000Z | 2019-05-22T20:42:52.000Z | authors/apps/authentication/tests/test_user_registration.py | andela/ah-legion | 223f8c207d3de40f5d9fe7d5bb57b452b04af86f | [
"BSD-3-Clause"
] | 31 | 2019-02-26T13:19:35.000Z | 2021-12-13T19:56:18.000Z | authors/apps/authentication/tests/test_user_registration.py | andela/ah-legion | 223f8c207d3de40f5d9fe7d5bb57b452b04af86f | [
"BSD-3-Clause"
] | 6 | 2019-03-22T09:41:34.000Z | 2019-10-17T05:07:38.000Z | from django.urls import reverse
from rest_framework import status
from rest_framework.test import APITestCase, APIClient
class RegistrationTestCase(APITestCase):
url = reverse('authentication:register')
def test_user_registration(self):
"""Test for a valid user registration."""
signup_data = ... | 38.535581 | 133 | 0.567402 | 1,021 | 10,289 | 5.475024 | 0.096964 | 0.055814 | 0.102862 | 0.048301 | 0.837925 | 0.769589 | 0.716279 | 0.673882 | 0.565832 | 0.457961 | 0 | 0.012811 | 0.317232 | 10,289 | 266 | 134 | 38.680451 | 0.782918 | 0.06852 | 0 | 0.40678 | 0 | 0 | 0.205821 | 0.002416 | 0 | 0 | 0 | 0 | 0.105932 | 1 | 0.055085 | false | 0.186441 | 0.012712 | 0 | 0.076271 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
390617be46b14dacf2d0414142af4eec5d526873 | 224 | py | Python | util/ctx.py | Antonio32A/CrabBot | 0986ba789cacfcfb47e8d7ff21791b774f12e470 | [
"MIT"
] | 1 | 2020-06-26T00:50:49.000Z | 2020-06-26T00:50:49.000Z | util/ctx.py | Antonio32A/CrabBot | 0986ba789cacfcfb47e8d7ff21791b774f12e470 | [
"MIT"
] | null | null | null | util/ctx.py | Antonio32A/CrabBot | 0986ba789cacfcfb47e8d7ff21791b774f12e470 | [
"MIT"
] | null | null | null | import discord
from discord.ext import commands
class Context(commands.Context):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
@property
def crab(self):
return self.bot
| 20.363636 | 41 | 0.660714 | 27 | 224 | 5.185185 | 0.62963 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.21875 | 224 | 10 | 42 | 22.4 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.125 | 0.75 | 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 |
3907aec6bda142b77498cbf845aa0c72273dfc16 | 162 | py | Python | src/restaurants/apps.py | thomasrjones211/django2 | 135db5052836236e3f94063828d7f029e7702819 | [
"MIT"
] | 3 | 2018-05-02T20:37:11.000Z | 2020-10-15T17:19:26.000Z | src/restaurants/apps.py | thomasrjones211/django2 | 135db5052836236e3f94063828d7f029e7702819 | [
"MIT"
] | 1 | 2019-06-10T21:35:13.000Z | 2019-06-10T21:35:13.000Z | src/restaurants/apps.py | thomasrjones211/django2 | 135db5052836236e3f94063828d7f029e7702819 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.apps import AppConfig
class RestaurantsConfig(AppConfig):
name = 'restaurants'
| 18 | 39 | 0.746914 | 18 | 162 | 6.444444 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007299 | 0.154321 | 162 | 8 | 40 | 20.25 | 0.839416 | 0.12963 | 0 | 0 | 0 | 0 | 0.079137 | 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 |
39240f182bf2a4fe9b3b76491963dc9395ed3e1c | 118 | py | Python | router-config-generator/__init__.py | quackbox/router-config-generator | eca35d79877bfc6329ad8869c37da2854f83cb41 | [
"MIT"
] | 2 | 2022-01-23T23:34:36.000Z | 2022-02-01T11:02:09.000Z | router-config-generator/__init__.py | quackbox/router-config-generator | eca35d79877bfc6329ad8869c37da2854f83cb41 | [
"MIT"
] | 8 | 2021-11-01T10:59:18.000Z | 2022-02-01T11:38:41.000Z | router-config-generator/__init__.py | quackbox/router-config-generator | eca35d79877bfc6329ad8869c37da2854f83cb41 | [
"MIT"
] | 1 | 2022-02-08T12:23:53.000Z | 2022-02-08T12:23:53.000Z | import flask
import os
SECRET_KEY = os.urandom(32)
app = flask.Flask(__name__)
app.config['SECRET_KEY'] = SECRET_KEY | 16.857143 | 37 | 0.762712 | 19 | 118 | 4.368421 | 0.526316 | 0.325301 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019231 | 0.118644 | 118 | 7 | 37 | 16.857143 | 0.778846 | 0 | 0 | 0 | 0 | 0 | 0.084034 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
394315f48c42bab4f16e3e25e857ff988830e63d | 173 | py | Python | helpers.py | angelika-mamchych/BudgetBuddy | 7f231d2f97159e85ceca916e9edae8d55796844c | [
"MIT"
] | null | null | null | helpers.py | angelika-mamchych/BudgetBuddy | 7f231d2f97159e85ceca916e9edae8d55796844c | [
"MIT"
] | 32 | 2018-05-03T17:01:23.000Z | 2018-10-30T18:46:29.000Z | helpers.py | angelika-mamchych/BudgetBuddy | 7f231d2f97159e85ceca916e9edae8d55796844c | [
"MIT"
] | null | null | null | import json
class obj(object):
def __init__(self, dict_):
self.__dict__.update(dict_)
def dict2obj(d):
return json.loads(json.dumps(d), object_hook=obj)
| 15.727273 | 53 | 0.682081 | 25 | 173 | 4.28 | 0.64 | 0.149533 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007143 | 0.190751 | 173 | 10 | 54 | 17.3 | 0.757143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 0.166667 | 0.833333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1a680b7d92a2d6d8839c2b869da7aa24fde09917 | 40 | py | Python | nornir_f5/__init__.py | kpressouyre/nornir_f5 | 9e36ae3e19ac6d45d3858579856fbcc196fe512f | [
"Apache-2.0"
] | 1 | 2021-03-23T04:21:08.000Z | 2021-03-23T04:21:08.000Z | nornir_f5/__init__.py | kpressouyre/nornir_f5 | 9e36ae3e19ac6d45d3858579856fbcc196fe512f | [
"Apache-2.0"
] | 1 | 2021-12-01T19:42:14.000Z | 2021-12-01T19:42:14.000Z | nornir_f5/__init__.py | kpressouyre/nornir_f5 | 9e36ae3e19ac6d45d3858579856fbcc196fe512f | [
"Apache-2.0"
] | 1 | 2021-11-25T18:12:47.000Z | 2021-11-25T18:12:47.000Z | """Nornir F5."""
__version__ = "0.5.0"
| 10 | 21 | 0.55 | 6 | 40 | 3 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 0.15 | 40 | 3 | 22 | 13.333333 | 0.411765 | 0.25 | 0 | 0 | 0 | 0 | 0.208333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
1abbaeecf117028b371afe1e25adfdb9ac45ce0c | 211 | py | Python | Python 3/Crash course/capitalize with double spacing.py | DarkShadow4/python | 4cd94e0cf53ee06c9c31e9272572ca9656697c30 | [
"MIT"
] | null | null | null | Python 3/Crash course/capitalize with double spacing.py | DarkShadow4/python | 4cd94e0cf53ee06c9c31e9272572ca9656697c30 | [
"MIT"
] | null | null | null | Python 3/Crash course/capitalize with double spacing.py | DarkShadow4/python | 4cd94e0cf53ee06c9c31e9272572ca9656697c30 | [
"MIT"
] | 1 | 2020-08-19T17:25:22.000Z | 2020-08-19T17:25:22.000Z | string_single_spaced = "hola esto esta separado por un espacio"
string_double_spaced = "hola esto esta separado por doble espacio"
print (string_single_spaced.title())
print (string_double_spaced.title())
| 42.2 | 72 | 0.791469 | 30 | 211 | 5.3 | 0.466667 | 0.150943 | 0.226415 | 0.226415 | 0.36478 | 0.36478 | 0 | 0 | 0 | 0 | 0 | 0 | 0.132701 | 211 | 4 | 73 | 52.75 | 0.868852 | 0 | 0 | 0 | 0 | 0 | 0.402844 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 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 | 0 | 0 | 0 | 1 | 0 | 4 |
1acc0b687a3ba0da990182dfaad058e7a2f99c18 | 64 | py | Python | nasbench301/surrogate_models/bananas/bananas_src/bo/pp/gp/__init__.py | Basvanstein/nasbench301 | 2984dec45c760d47762f50efe39b71e9d1ac22e0 | [
"Apache-2.0"
] | 167 | 2019-10-26T19:54:49.000Z | 2021-12-14T15:25:32.000Z | nasbench301/surrogate_models/bananas/bananas_src/bo/pp/gp/__init__.py | Basvanstein/nasbench301 | 2984dec45c760d47762f50efe39b71e9d1ac22e0 | [
"Apache-2.0"
] | 12 | 2020-11-07T12:50:19.000Z | 2022-01-21T08:52:53.000Z | nasbench301/surrogate_models/bananas/bananas_src/bo/pp/gp/__init__.py | Basvanstein/nasbench301 | 2984dec45c760d47762f50efe39b71e9d1ac22e0 | [
"Apache-2.0"
] | 23 | 2019-10-28T12:26:32.000Z | 2020-10-12T12:31:39.000Z | """
Code for Gaussian process (GP) utilities and functions.
"""
| 16 | 55 | 0.703125 | 8 | 64 | 5.625 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15625 | 64 | 3 | 56 | 21.333333 | 0.833333 | 0.859375 | 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 |
1ad1498f8660f39a1f59272a11bfae7b2cf709a5 | 204 | py | Python | wsgi_basic/token/providers/backends/uuid.py | QthCN/wsgi-basic | e080304aeaa9922fc9367dbb5cb57a7ab9494b38 | [
"Apache-2.0"
] | null | null | null | wsgi_basic/token/providers/backends/uuid.py | QthCN/wsgi-basic | e080304aeaa9922fc9367dbb5cb57a7ab9494b38 | [
"Apache-2.0"
] | null | null | null | wsgi_basic/token/providers/backends/uuid.py | QthCN/wsgi-basic | e080304aeaa9922fc9367dbb5cb57a7ab9494b38 | [
"Apache-2.0"
] | null | null | null | from __future__ import absolute_import
import uuid
from wsgi_basic.token.providers.core import Driver
class Provider(Driver):
def gen_token_id(self, token_data):
return uuid.uuid4().hex
| 15.692308 | 50 | 0.759804 | 29 | 204 | 5.034483 | 0.724138 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005917 | 0.171569 | 204 | 12 | 51 | 17 | 0.857988 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.5 | 0.166667 | 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 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
46f8da7eac6c0bcb4bb379329dc4b9de91597ec4 | 208 | py | Python | tilec/__init__.py | ACTCollaboration/tilec | 11ed8d027ad6ffac09b3e291a047f33e97673f14 | [
"BSD-3-Clause"
] | 1 | 2021-01-04T14:51:44.000Z | 2021-01-04T14:51:44.000Z | tilec/__init__.py | ACTCollaboration/tilec | 11ed8d027ad6ffac09b3e291a047f33e97673f14 | [
"BSD-3-Clause"
] | 4 | 2019-09-03T22:19:16.000Z | 2020-07-13T12:38:08.000Z | tilec/__init__.py | ACTCollaboration/tilec | 11ed8d027ad6ffac09b3e291a047f33e97673f14 | [
"BSD-3-Clause"
] | 1 | 2020-08-10T14:51:11.000Z | 2020-08-10T14:51:11.000Z | # -*- coding: utf-8 -*-
"""Top-level package for tilec."""
__author__ = """Mathew Madhavacheril"""
__email__ = ''
from ._version import get_versions
__version__ = get_versions()['version']
del get_versions
| 20.8 | 39 | 0.701923 | 24 | 208 | 5.416667 | 0.75 | 0.253846 | 0.276923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005525 | 0.129808 | 208 | 9 | 40 | 23.111111 | 0.712707 | 0.245192 | 0 | 0 | 0 | 0 | 0.178808 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 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 |
2000df8c32d9c1b0906225daae890d1605d304ba | 1,750 | py | Python | tests/legacy_unittest/test_icon_score_mapper.py | bayeshack2016/icon-service | 36cab484d2e41548d7f2f74526f127ee3a4423fc | [
"Apache-2.0"
] | 52 | 2018-08-24T02:28:43.000Z | 2021-07-06T04:44:22.000Z | tests/legacy_unittest/test_icon_score_mapper.py | bayeshack2016/icon-service | 36cab484d2e41548d7f2f74526f127ee3a4423fc | [
"Apache-2.0"
] | 62 | 2018-09-17T06:59:16.000Z | 2021-12-15T06:02:51.000Z | tests/legacy_unittest/test_icon_score_mapper.py | bayeshack2016/icon-service | 36cab484d2e41548d7f2f74526f127ee3a4423fc | [
"Apache-2.0"
] | 35 | 2018-09-14T02:42:10.000Z | 2022-02-05T10:34:46.000Z | # -*- coding: utf-8 -*-
# Copyright 2018 ICON Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... | 32.407407 | 96 | 0.761143 | 227 | 1,750 | 5.69163 | 0.480176 | 0.069659 | 0.04644 | 0.065015 | 0.076625 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006186 | 0.168571 | 1,750 | 53 | 97 | 33.018868 | 0.881787 | 0.461714 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.227273 | false | 0.181818 | 0.318182 | 0 | 0.636364 | 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 | 1 | 0 | 1 | 0 | 0 | 4 |
20224f89d7aff85df5085113915c8b9958d6fc56 | 125 | py | Python | app/dto/task.py | loge1998/fitness-app | f21e1a27e01f2890741fbff2b32288ac55dda44d | [
"MIT"
] | null | null | null | app/dto/task.py | loge1998/fitness-app | f21e1a27e01f2890741fbff2b32288ac55dda44d | [
"MIT"
] | null | null | null | app/dto/task.py | loge1998/fitness-app | f21e1a27e01f2890741fbff2b32288ac55dda44d | [
"MIT"
] | null | null | null | from pydantic.main import BaseModel
class Task(BaseModel):
title: str
due_date: str
is_completed: bool = False
| 15.625 | 35 | 0.712 | 17 | 125 | 5.117647 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.224 | 125 | 7 | 36 | 17.857143 | 0.896907 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 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 |
202af718914f068570fdb4922e113ade00f20f14 | 4,396 | py | Python | API/app/test/test_user_db.py | Niewidzialny84/PathFighters | 9cf9cfcde60cb5e57c5c68ba995c34955b78caf9 | [
"MIT"
] | 9 | 2021-08-19T16:57:13.000Z | 2022-01-25T16:14:11.000Z | API/app/test/test_user_db.py | Niewidzialny84/PathFighters | 9cf9cfcde60cb5e57c5c68ba995c34955b78caf9 | [
"MIT"
] | 29 | 2021-10-18T15:37:53.000Z | 2022-01-26T08:28:37.000Z | API/app/test/test_user_db.py | Niewidzialny84/PathFighters | 9cf9cfcde60cb5e57c5c68ba995c34955b78caf9 | [
"MIT"
] | 1 | 2022-01-19T01:53:11.000Z | 2022-01-19T01:53:11.000Z | """
Test User Db
"""
import unittest
from app.main import db
from app.main.model.user_model import User
from app.test.base import BaseTestCase
class TestUserDb(BaseTestCase):
def test_user_db_proper_creation(self):
""" Test checks if creation user process conducted properly. """
user = User(
... | 29.112583 | 76 | 0.564149 | 517 | 4,396 | 4.624758 | 0.112186 | 0.097867 | 0.11376 | 0.0711 | 0.811376 | 0.778754 | 0.723965 | 0.660811 | 0.650774 | 0.598494 | 0 | 0.019743 | 0.30869 | 4,396 | 150 | 77 | 29.306667 | 0.767029 | 0.08121 | 0 | 0.660194 | 0 | 0 | 0.097121 | 0 | 0 | 0 | 0 | 0 | 0.194175 | 1 | 0.058252 | false | 0.106796 | 0.038835 | 0 | 0.106796 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
2038270416cdfaed9f36523d4b451103e6f1d3f8 | 133 | py | Python | 0706/font_manager.py | maple135790/AI-IOT-Python-Practice | f7b9be12814a46e21241e16a5d8cdd9599be1715 | [
"MIT"
] | null | null | null | 0706/font_manager.py | maple135790/AI-IOT-Python-Practice | f7b9be12814a46e21241e16a5d8cdd9599be1715 | [
"MIT"
] | null | null | null | 0706/font_manager.py | maple135790/AI-IOT-Python-Practice | f7b9be12814a46e21241e16a5d8cdd9599be1715 | [
"MIT"
] | null | null | null | import matplotlib.font_manager
a = sorted([f.name for f in matplotlib.font_manager.fontManager.ttflist])
for i in a:
print(i) | 22.166667 | 73 | 0.744361 | 22 | 133 | 4.409091 | 0.636364 | 0.28866 | 0.43299 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 133 | 6 | 74 | 22.166667 | 0.866071 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 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 |
64cb3109e5db699d8f1b18f4104941fa783b98d6 | 995 | py | Python | flask_sentinel/utils.py | simms21/flask-sentinel | 046470bdb5e6787d65cf98d31781b558364fb989 | [
"BSD-3-Clause"
] | null | null | null | flask_sentinel/utils.py | simms21/flask-sentinel | 046470bdb5e6787d65cf98d31781b558364fb989 | [
"BSD-3-Clause"
] | null | null | null | flask_sentinel/utils.py | simms21/flask-sentinel | 046470bdb5e6787d65cf98d31781b558364fb989 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
flask-sentinel.utils
~~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2015 by Nicola Iarocci.
:license: BSD, see LICENSE for more details.
"""
class Config(object):
def __init__(self, app):
self.prefix = 'SENTINEL'
self.app = app
app.config.setdefault(self.... | 32.096774 | 74 | 0.59196 | 120 | 995 | 4.691667 | 0.375 | 0.124334 | 0.202487 | 0.245115 | 0.362345 | 0.17762 | 0 | 0 | 0 | 0 | 0 | 0.012937 | 0.223116 | 995 | 30 | 75 | 33.166667 | 0.715395 | 0.150754 | 0 | 0 | 0 | 0 | 0.198538 | 0.029233 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0 | 0.176471 | 0.470588 | 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 | 1 | 0 | 0 | 0 | 4 |
64cdd2430a6959225ae2abe644ce8c6777a51c89 | 372 | py | Python | scripts/npc/skin_henesys1.py | G00dBye/YYMS | 1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb | [
"MIT"
] | 54 | 2019-04-16T23:24:48.000Z | 2021-12-18T11:41:50.000Z | scripts/npc/skin_henesys1.py | G00dBye/YYMS | 1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb | [
"MIT"
] | 3 | 2019-05-19T15:19:41.000Z | 2020-04-27T16:29:16.000Z | scripts/npc/skin_henesys1.py | G00dBye/YYMS | 1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb | [
"MIT"
] | 49 | 2020-11-25T23:29:16.000Z | 2022-03-26T16:20:24.000Z | # Ms. Tan (1012105) | Henesys Skin-Care
sm.sendNext("Well, hello! Welcome to the Henesys Skin-Care! "
"Would you like to have a firm, tight, healthy looking skin like mine? "
"With a #b#t5153000##k, you can let us take care of the rest and have the kind of skin you've always wanted!")
sm.sendSa... | 53.142857 | 122 | 0.672043 | 65 | 372 | 3.846154 | 0.661538 | 0.088 | 0.12 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072414 | 0.22043 | 372 | 6 | 123 | 62 | 0.789655 | 0.099462 | 0 | 0 | 0 | 0.25 | 0.798799 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 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 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b39a8581c91e1ce069badef6cf4efcf9c0ad8b10 | 399 | py | Python | omeganlp/litmodel/sequenceclassification.py | yuiant/omeganlp | 4258958b6d84a664d6fca0ca32a927a725b392c4 | [
"MIT"
] | 9 | 2022-02-12T07:17:52.000Z | 2022-02-14T04:46:21.000Z | omeganlp/litmodel/sequenceclassification.py | yuiant/omeganlp | 4258958b6d84a664d6fca0ca32a927a725b392c4 | [
"MIT"
] | null | null | null | omeganlp/litmodel/sequenceclassification.py | yuiant/omeganlp | 4258958b6d84a664d6fca0ca32a927a725b392c4 | [
"MIT"
] | 2 | 2022-02-13T16:14:49.000Z | 2022-02-14T04:46:30.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from torchmetrics import Accuracy, MetricCollection
from omeganlp.litmodel import LitModel
class SequenceClassificationModel(LitModel):
@property
def val_metrics(self):
return MetricCollection({"val/acc": Accuracy(top_k=1)})
@property
def test_m... | 23.470588 | 64 | 0.709273 | 46 | 399 | 6.065217 | 0.586957 | 0.078853 | 0.121864 | 0.236559 | 0.114695 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009036 | 0.16792 | 399 | 16 | 65 | 24.9375 | 0.831325 | 0.105263 | 0 | 0.222222 | 0 | 0 | 0.042254 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0.222222 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
b39e1642e99b35e16ee6b444b7b3fb9792de95e4 | 2,870 | py | Python | server.py | filip-marinic/LGS_SimSuite | d0accdb68b3a5acc58ac1e079d8bc1d750c1d16c | [
"MIT"
] | null | null | null | server.py | filip-marinic/LGS_SimSuite | d0accdb68b3a5acc58ac1e079d8bc1d750c1d16c | [
"MIT"
] | null | null | null | server.py | filip-marinic/LGS_SimSuite | d0accdb68b3a5acc58ac1e079d8bc1d750c1d16c | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# LGS SimSuite Server
#Copyright (c) 2015 Filip Marinic
from time import sleep, gmtime, strftime
import socket
import math
import sys
TCP_S_IP = '0.0.0.0'
BUFFER_SIZE = 10
FRAME_ID = 1000000000
frames_sent = 0
MESSAGE = "_9HXuFd6BoQGA0t5nvoLfOBUhP9rKGCFKPUG6JvFfBr6zJZDwzHlgTyCoBk04sxPQEaQ20Poey... | 46.290323 | 1,282 | 0.818118 | 236 | 2,870 | 9.79661 | 0.402542 | 0.045415 | 0.027682 | 0.029844 | 0.049308 | 0.049308 | 0.025087 | 0.025087 | 0.025087 | 0 | 0 | 0.103233 | 0.105575 | 2,870 | 61 | 1,283 | 47.04918 | 0.797429 | 0.055052 | 0 | 0.235294 | 0 | 0 | 0.522349 | 0.469154 | 0 | 1 | 0 | 0 | 0 | 0 | null | null | 0 | 0.078431 | null | null | 0.078431 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b3d4fafbc815013e4d24de75b9ba5b5328342422 | 154 | py | Python | src/server/MhmServer/extensions.py | jbrr/mosquito_heat_map | 2cce46a5e26526bd04a83486a62733ab343376ba | [
"MIT"
] | null | null | null | src/server/MhmServer/extensions.py | jbrr/mosquito_heat_map | 2cce46a5e26526bd04a83486a62733ab343376ba | [
"MIT"
] | 2 | 2020-07-07T20:31:40.000Z | 2022-02-10T19:17:35.000Z | src/server/MhmServer/extensions.py | jbrr/mosquito_heat_map | 2cce46a5e26526bd04a83486a62733ab343376ba | [
"MIT"
] | null | null | null | from flask_cors import CORS
from flask_sqlalchemy import SQLAlchemy
from flask_migrate import Migrate
cors = CORS()
db = SQLAlchemy()
migrate = Migrate() | 22 | 39 | 0.805195 | 21 | 154 | 5.761905 | 0.333333 | 0.223141 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136364 | 154 | 7 | 40 | 22 | 0.909774 | 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 |
b3d589583a51dfd33c8fdc24e58c6620a34ae5c2 | 30 | py | Python | Tutorial6/__init__.py | kyogesh/techtoniques | 7056d9a7adf647b7d6ac7e48ad9c450edf820865 | [
"MIT"
] | 1 | 2020-06-26T15:02:48.000Z | 2020-06-26T15:02:48.000Z | Tutorial6/__init__.py | kyogesh/flask-tutorials | 7056d9a7adf647b7d6ac7e48ad9c450edf820865 | [
"MIT"
] | 3 | 2021-06-08T20:52:39.000Z | 2022-01-13T02:09:21.000Z | Tutorial6/__init__.py | kyogesh/techtoniques | 7056d9a7adf647b7d6ac7e48ad9c450edf820865 | [
"MIT"
] | 1 | 2020-06-26T15:02:51.000Z | 2020-06-26T15:02:51.000Z | """
Use class based views
"""
| 7.5 | 21 | 0.6 | 4 | 30 | 4.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 30 | 3 | 22 | 10 | 0.75 | 0.7 | 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 |
b3f64306f5aba93ee0c798603d9cd603c326f752 | 46 | py | Python | src/__init__.py | gtaodiscord/modmail | 9584f29aff57969368310f56f3f75e3e0b889b11 | [
"MIT"
] | null | null | null | src/__init__.py | gtaodiscord/modmail | 9584f29aff57969368310f56f3f75e3e0b889b11 | [
"MIT"
] | null | null | null | src/__init__.py | gtaodiscord/modmail | 9584f29aff57969368310f56f3f75e3e0b889b11 | [
"MIT"
] | null | null | null | from .internal import Bot
__all__ = ("Bot",)
| 11.5 | 25 | 0.673913 | 6 | 46 | 4.5 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173913 | 46 | 3 | 26 | 15.333333 | 0.710526 | 0 | 0 | 0 | 0 | 0 | 0.065217 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
373f00040bd89af13e2f6412253885dfc66c5aa3 | 106 | py | Python | demo/apps/views.py | Bit03/django-spectre | 5f64cc82415458ca62cb86060f2476061b853639 | [
"MIT"
] | null | null | null | demo/apps/views.py | Bit03/django-spectre | 5f64cc82415458ca62cb86060f2476061b853639 | [
"MIT"
] | null | null | null | demo/apps/views.py | Bit03/django-spectre | 5f64cc82415458ca62cb86060f2476061b853639 | [
"MIT"
] | null | null | null | from django.views import generic
class DemoView(generic.TemplateView):
template_name = 'demo.html'
| 15.142857 | 37 | 0.764151 | 13 | 106 | 6.153846 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.150943 | 106 | 6 | 38 | 17.666667 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0.085714 | 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 |
3769145181c821f81b75ff173b1ebae91e117e85 | 342 | py | Python | berliner/mist/__init__.py | hypergravity/berliner | bab6c9146fce14469a69422c834669f41c4ed6e7 | [
"MIT"
] | 4 | 2019-04-10T06:14:01.000Z | 2021-08-30T05:41:32.000Z | berliner/mist/__init__.py | hypergravity/berliner | bab6c9146fce14469a69422c834669f41c4ed6e7 | [
"MIT"
] | null | null | null | berliner/mist/__init__.py | hypergravity/berliner | bab6c9146fce14469a69422c834669f41c4ed6e7 | [
"MIT"
] | 1 | 2020-03-23T02:38:10.000Z | 2020-03-23T02:38:10.000Z | from ._track import read_track, read_tracks_ptn
from ._isochrone import read_isochrones, read_isochrones_ptn
from .bc import read_bc, read_bc_dir, read_bc_dir_one
"""
_isochrone.py read_mist_isochrone: read MIST isohrones
_track.py read_eep_track: read MIST eep tracks
bc MIST bolometric... | 34.2 | 60 | 0.754386 | 50 | 342 | 4.76 | 0.36 | 0.12605 | 0.07563 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.195906 | 342 | 9 | 61 | 38 | 0.865455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
37821221460b97d5944a3226d71bf706d0c6a55d | 136 | py | Python | hw/andrey_yelin/lesson_02/lesson2.py | alexander-sidorov/qap-05 | 6db7c0a1eeadd15f7d3f826e7f0ac4be3949ec8c | [
"MIT"
] | 9 | 2021-12-10T21:30:07.000Z | 2022-02-25T21:32:34.000Z | hw/andrey_yelin/lesson_02/lesson2.py | alexander-sidorov/qap-05 | 6db7c0a1eeadd15f7d3f826e7f0ac4be3949ec8c | [
"MIT"
] | 22 | 2021-12-11T08:46:58.000Z | 2022-02-02T15:56:37.000Z | hw/andrey_yelin/lesson_02/lesson2.py | alexander-sidorov/qap-05 | 6db7c0a1eeadd15f7d3f826e7f0ac4be3949ec8c | [
"MIT"
] | 8 | 2021-12-11T09:15:45.000Z | 2022-02-02T08:09:09.000Z | def example() -> None:
assert True, "not True"
assert 3 + 7 == 10
assert "gg" == "gg" # noqa: SIM300
assert 2 + 4 == 6
| 22.666667 | 39 | 0.514706 | 20 | 136 | 3.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108696 | 0.323529 | 136 | 5 | 40 | 27.2 | 0.652174 | 0.088235 | 0 | 0 | 0 | 0 | 0.098361 | 0 | 0 | 0 | 0 | 0 | 0.8 | 1 | 0.2 | true | 0 | 0 | 0 | 0.2 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
3783bccb295169cc53cac4934b71664d63e739d6 | 51 | py | Python | amdam/api/pyll/samples/clipboard_sample.py | hlop3z/amdam | 1e681a4356162fc21e9c778712d9124ea241f1b9 | [
"MIT"
] | null | null | null | amdam/api/pyll/samples/clipboard_sample.py | hlop3z/amdam | 1e681a4356162fc21e9c778712d9124ea241f1b9 | [
"MIT"
] | null | null | null | amdam/api/pyll/samples/clipboard_sample.py | hlop3z/amdam | 1e681a4356162fc21e9c778712d9124ea241f1b9 | [
"MIT"
] | null | null | null | import clipboard
clipboard.copy( data['message'] )
| 17 | 33 | 0.764706 | 6 | 51 | 6.5 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098039 | 51 | 2 | 34 | 25.5 | 0.847826 | 0 | 0 | 0 | 0 | 0 | 0.137255 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
3788b9eddd4bc767ef36066619828a15da270c3a | 184 | py | Python | terra/dependencies.py | seyuboglu/terra | 7d5f8d8cdfbf819b52fb997b5b9746746d86b295 | [
"Apache-2.0"
] | 1 | 2022-03-15T00:13:58.000Z | 2022-03-15T00:13:58.000Z | terra/dependencies.py | seyuboglu/terra | 7d5f8d8cdfbf819b52fb997b5b9746746d86b295 | [
"Apache-2.0"
] | 2 | 2021-09-16T05:00:30.000Z | 2021-11-19T21:37:09.000Z | terra/dependencies.py | seyuboglu/terra | 7d5f8d8cdfbf819b52fb997b5b9746746d86b295 | [
"Apache-2.0"
] | null | null | null | from functools import lru_cache
@lru_cache
def get_dependencies():
from pip._internal.operations import freeze # lazy import to reduce startup
return list(freeze.freeze())
| 20.444444 | 80 | 0.766304 | 25 | 184 | 5.48 | 0.72 | 0.116788 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168478 | 184 | 8 | 81 | 23 | 0.895425 | 0.157609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
379e759972b282c253d33d61927b4e342f577510 | 91 | py | Python | terra/bigquery/apps.py | dymaxionlabs/platform | 98fe893d4632d62fea3e2357f16d970014037cdf | [
"BSD-3-Clause"
] | null | null | null | terra/bigquery/apps.py | dymaxionlabs/platform | 98fe893d4632d62fea3e2357f16d970014037cdf | [
"BSD-3-Clause"
] | null | null | null | terra/bigquery/apps.py | dymaxionlabs/platform | 98fe893d4632d62fea3e2357f16d970014037cdf | [
"BSD-3-Clause"
] | null | null | null | from django.apps import AppConfig
class BigqueryConfig(AppConfig):
name = 'bigquery'
| 15.166667 | 33 | 0.758242 | 10 | 91 | 6.9 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164835 | 91 | 5 | 34 | 18.2 | 0.907895 | 0 | 0 | 0 | 0 | 0 | 0.087912 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
80668901f0c28c459d6093bf04cccd2840540dfc | 91 | py | Python | pygw2/core/exceptions.py | Natsku123/pygw2 | c8e579c07f4d33c7afadc8dee510be0a5e71d16e | [
"MIT"
] | 1 | 2020-01-19T21:27:53.000Z | 2020-01-19T21:27:53.000Z | pygw2/core/exceptions.py | Natsku123/pygw2 | c8e579c07f4d33c7afadc8dee510be0a5e71d16e | [
"MIT"
] | 1 | 2021-12-09T21:18:13.000Z | 2021-12-09T21:18:13.000Z | pygw2/core/exceptions.py | Natsku123/pygw2 | c8e579c07f4d33c7afadc8dee510be0a5e71d16e | [
"MIT"
] | null | null | null |
class ApiError(Exception):
"""Raised if API returns something unexpected."""
pass
| 18.2 | 53 | 0.692308 | 10 | 91 | 6.3 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.197802 | 91 | 4 | 54 | 22.75 | 0.863014 | 0.472527 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
806c0a63ebe247006e20b71a98ce183d3694bb6a | 53 | py | Python | src/python/v2/example/call/path/A.py | youngzil/quickstart-python | 988aabb9357ee35aa06ec0d18c36d201b9e640b1 | [
"Apache-2.0"
] | null | null | null | src/python/v2/example/call/path/A.py | youngzil/quickstart-python | 988aabb9357ee35aa06ec0d18c36d201b9e640b1 | [
"Apache-2.0"
] | null | null | null | src/python/v2/example/call/path/A.py | youngzil/quickstart-python | 988aabb9357ee35aa06ec0d18c36d201b9e640b1 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
def add(x,y):
print('和为:%d'%(x+y)) | 17.666667 | 24 | 0.528302 | 12 | 53 | 2.333333 | 0.833333 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022222 | 0.150943 | 53 | 3 | 24 | 17.666667 | 0.6 | 0.226415 | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
80746ab2b4e12eaabc0ecd61bc8dcf8821786610 | 89 | py | Python | sample_project/sandbox/apps.py | alan-fernandes/django-djaesy | bc95d65af8ad08a8bbe7275dbccabec581f4f2ac | [
"MIT"
] | 1 | 2021-08-28T00:48:11.000Z | 2021-08-28T00:48:11.000Z | sample_project/sandbox/apps.py | alan-fernandes/django-djaesy | bc95d65af8ad08a8bbe7275dbccabec581f4f2ac | [
"MIT"
] | 5 | 2020-06-05T22:01:14.000Z | 2021-06-09T18:10:50.000Z | sample_project/sandbox/apps.py | alan-fernandes/django-djaesy | bc95d65af8ad08a8bbe7275dbccabec581f4f2ac | [
"MIT"
] | 1 | 2020-10-30T20:46:19.000Z | 2020-10-30T20:46:19.000Z | from django.apps import AppConfig
class SandboxConfig(AppConfig):
name = 'sandbox'
| 14.833333 | 33 | 0.752809 | 10 | 89 | 6.7 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168539 | 89 | 5 | 34 | 17.8 | 0.905405 | 0 | 0 | 0 | 0 | 0 | 0.078652 | 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 |
80a6776252a4414d420a34eff3309b78b18022b9 | 47 | py | Python | lib/aws/s3/__init__.py | goztrk/django-htk | c56bf112e5d627780d2f4288460eae5cce80fa9e | [
"MIT"
] | 206 | 2015-10-15T07:05:08.000Z | 2021-02-19T11:48:36.000Z | lib/aws/s3/__init__.py | goztrk/django-htk | c56bf112e5d627780d2f4288460eae5cce80fa9e | [
"MIT"
] | 8 | 2017-10-16T10:18:31.000Z | 2022-03-09T14:24:27.000Z | lib/aws/s3/__init__.py | goztrk/django-htk | c56bf112e5d627780d2f4288460eae5cce80fa9e | [
"MIT"
] | 61 | 2015-10-15T08:12:44.000Z | 2022-03-10T12:25:06.000Z | from utils import S3Manager
s3 = S3Manager()
| 9.4 | 27 | 0.744681 | 6 | 47 | 5.833333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078947 | 0.191489 | 47 | 4 | 28 | 11.75 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.