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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ff1151373de24cc1f513dd18cb58ade7715addfa | 189 | py | Python | pitch/forms.py | robertoalcaras/ProjetoIntegrador | 796fb5d78ed9ad7b842bc76259dfb5f71b25dc48 | [
"MIT"
] | 1 | 2022-03-08T11:29:09.000Z | 2022-03-08T11:29:09.000Z | pitch/forms.py | robertoalcaras/ProjetoIntegrador | 796fb5d78ed9ad7b842bc76259dfb5f71b25dc48 | [
"MIT"
] | null | null | null | pitch/forms.py | robertoalcaras/ProjetoIntegrador | 796fb5d78ed9ad7b842bc76259dfb5f71b25dc48 | [
"MIT"
] | null | null | null | from django import forms
from django.forms import fields
from pitch.models import Pitch
class PitchForm(forms.ModelForm):
class Meta:
model = Pitch
fields = '__all__'
| 18.9 | 33 | 0.708995 | 24 | 189 | 5.416667 | 0.541667 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.232804 | 189 | 9 | 34 | 21 | 0.896552 | 0 | 0 | 0 | 0 | 0 | 0.037234 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.714286 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
2061336b7da864ceb5a28ab3e2416a17630085bc | 243 | py | Python | mlbench_core/dataset/nlp/pytorch/__init__.py | mlbench/mlbench-core | 4fd3c7e6f1a5be69e52383ab2eb64cad257218c2 | [
"Apache-2.0"
] | 14 | 2018-11-12T17:23:32.000Z | 2022-03-11T22:45:49.000Z | mlbench_core/dataset/nlp/pytorch/__init__.py | mlbench/mlbench-core | 4fd3c7e6f1a5be69e52383ab2eb64cad257218c2 | [
"Apache-2.0"
] | 330 | 2018-10-09T12:15:56.000Z | 2022-03-01T18:07:40.000Z | mlbench_core/dataset/nlp/pytorch/__init__.py | mlbench/mlbench-core | 4fd3c7e6f1a5be69e52383ab2eb64cad257218c2 | [
"Apache-2.0"
] | 9 | 2019-02-28T19:11:58.000Z | 2020-08-17T17:52:37.000Z | from mlbench_core.dataset.nlp.pytorch.wmt16.utils import build_collate_fn
from .wikitext2_dataset import Wikitext2Dataset
from .wmt16_dataset import WMT16Dataset
from .wmt17.batching import get_batches
from .wmt17_dataset import WMT17Dataset
| 34.714286 | 73 | 0.872428 | 33 | 243 | 6.212121 | 0.606061 | 0.190244 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063063 | 0.08642 | 243 | 6 | 74 | 40.5 | 0.86036 | 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 |
207c836f8a661d6a89d64e2de827f6d41ded3bf2 | 95 | py | Python | preprocessor/passes/FixedComments.py | wdanilo/HaskellBooster | 34302344a4af60e247207742e2d8dede1ee9949b | [
"Apache-2.0"
] | 18 | 2015-03-26T03:13:31.000Z | 2020-03-09T07:42:43.000Z | preprocessor/passes/FixedComments.py | wdanilo/HaskellBooster | 34302344a4af60e247207742e2d8dede1ee9949b | [
"Apache-2.0"
] | null | null | null | preprocessor/passes/FixedComments.py | wdanilo/HaskellBooster | 34302344a4af60e247207742e2d8dede1ee9949b | [
"Apache-2.0"
] | null | null | null | import re
def run(txt):
pattern = re.compile(r'--.*')
return pattern.sub('', txt)
| 15.833333 | 33 | 0.557895 | 13 | 95 | 4.076923 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.242105 | 95 | 6 | 34 | 15.833333 | 0.736111 | 0 | 0 | 0 | 0 | 0 | 0.041667 | 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 |
2088e5ae1caefcf9944dda70fac93497e6311b5f | 151 | py | Python | hbutils/random/__init__.py | HansBug/hbutils | 6872311c8a441c5955572e0093b10189a2b90708 | [
"Apache-2.0"
] | null | null | null | hbutils/random/__init__.py | HansBug/hbutils | 6872311c8a441c5955572e0093b10189a2b90708 | [
"Apache-2.0"
] | 25 | 2021-10-03T06:19:05.000Z | 2022-03-27T12:48:57.000Z | hbutils/random/__init__.py | HansBug/hbutils | 6872311c8a441c5955572e0093b10189a2b90708 | [
"Apache-2.0"
] | null | null | null | """
Overview:
Sequence module, include some useful random value generator.
"""
from .binary import *
from .sequence import *
from .string import *
| 18.875 | 64 | 0.721854 | 18 | 151 | 6.055556 | 0.722222 | 0.183486 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.178808 | 151 | 7 | 65 | 21.571429 | 0.879032 | 0.490066 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
209251a2f0cbd46faad5096c3dfc6bfd1093e27d | 88 | py | Python | birthday/__init__.py | bashu/django-birthday | c80737210266e7bab005c4ac91f0e1304a85dd3e | [
"BSD-3-Clause"
] | 12 | 2017-02-11T12:08:12.000Z | 2022-01-06T06:25:38.000Z | birthday/__init__.py | bashu/django-birthday | c80737210266e7bab005c4ac91f0e1304a85dd3e | [
"BSD-3-Clause"
] | 5 | 2017-01-20T06:42:46.000Z | 2021-10-10T19:23:48.000Z | birthday/__init__.py | bashu/django-birthday | c80737210266e7bab005c4ac91f0e1304a85dd3e | [
"BSD-3-Clause"
] | 6 | 2017-04-28T15:12:28.000Z | 2021-12-29T18:12:37.000Z | from .fields import BirthdayField # noqa
from .managers import BirthdayManager # noqa
| 29.333333 | 45 | 0.795455 | 10 | 88 | 7 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159091 | 88 | 2 | 46 | 44 | 0.945946 | 0.102273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
20bd60e0f7938212cb6549e3a1a1c19d745a0871 | 290 | py | Python | highton/fields/__init__.py | seibert-media/Highton | 1519e4fb105f62882c2e7bc81065d994649558d8 | [
"Apache-2.0"
] | 18 | 2015-06-24T02:33:12.000Z | 2022-02-11T10:33:58.000Z | highton/fields/__init__.py | seibert-media/Highton | 1519e4fb105f62882c2e7bc81065d994649558d8 | [
"Apache-2.0"
] | 13 | 2016-01-14T19:11:24.000Z | 2020-04-21T08:53:27.000Z | highton/fields/__init__.py | seibert-media/Highton | 1519e4fb105f62882c2e7bc81065d994649558d8 | [
"Apache-2.0"
] | 15 | 2015-04-15T15:08:31.000Z | 2022-02-11T15:34:19.000Z | from .field import Field
from .date_field import DateField
from .datetime_field import DatetimeField
from .integer_field import IntegerField
from .string_field import StringField
from .list_field import ListField
from .object_field import ObjectField
from .boolean_field import BooleanField | 36.25 | 41 | 0.865517 | 39 | 290 | 6.25641 | 0.435897 | 0.360656 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106897 | 290 | 8 | 42 | 36.25 | 0.942085 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
455d5d81577eadf839a93d2d7d70a1eea01e673f | 26 | py | Python | src/version.py | Tinkerjoe-Git/botty | 11d27f917ff6d954afbb8a87e88e6462b0fb0703 | [
"MIT"
] | null | null | null | src/version.py | Tinkerjoe-Git/botty | 11d27f917ff6d954afbb8a87e88e6462b0fb0703 | [
"MIT"
] | null | null | null | src/version.py | Tinkerjoe-Git/botty | 11d27f917ff6d954afbb8a87e88e6462b0fb0703 | [
"MIT"
] | null | null | null | __version__ = '0.6.6-dev'
| 13 | 25 | 0.653846 | 5 | 26 | 2.6 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 0.115385 | 26 | 1 | 26 | 26 | 0.434783 | 0 | 0 | 0 | 0 | 0 | 0.346154 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
457ef0dc657b1ec1dba73b938df996f6ece18e36 | 179 | py | Python | python-3/beginner/1015.py | MisaelAugusto/uri | 22bee72edf44f939d7a290383336b4d061faecbb | [
"MIT"
] | null | null | null | python-3/beginner/1015.py | MisaelAugusto/uri | 22bee72edf44f939d7a290383336b4d061faecbb | [
"MIT"
] | null | null | null | python-3/beginner/1015.py | MisaelAugusto/uri | 22bee72edf44f939d7a290383336b4d061faecbb | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
X1, Y1 = map(float, input().split())
X2, Y2 = map(float, input().split())
DISTANCE = ( (X2 - X1)**2 + (Y2 - Y1)**2 ) ** (0.5)
print("%.4f" % (DISTANCE)) | 22.375 | 51 | 0.497207 | 27 | 179 | 3.296296 | 0.62963 | 0.179775 | 0.292135 | 0.404494 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09589 | 0.184358 | 179 | 8 | 52 | 22.375 | 0.513699 | 0.117318 | 0 | 0 | 0 | 0 | 0.025478 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
45c84653a42fdcbe4fd130d07619d8df4e836690 | 252 | py | Python | cms/utils/compat/__init__.py | stefanfoulis/django-cms | 5af564879b4222aa00a8ee27fbb7d1b3ae0cbde5 | [
"BSD-3-Clause"
] | null | null | null | cms/utils/compat/__init__.py | stefanfoulis/django-cms | 5af564879b4222aa00a8ee27fbb7d1b3ae0cbde5 | [
"BSD-3-Clause"
] | 3 | 2021-06-08T19:03:14.000Z | 2022-03-11T23:12:38.000Z | cms/utils/compat/__init__.py | stefanfoulis/django-cms | 5af564879b4222aa00a8ee27fbb7d1b3ae0cbde5 | [
"BSD-3-Clause"
] | null | null | null | from distutils.version import LooseVersion
import django
# These means "less than or equal to DJANGO_FOO_BAR"
DJANGO_1_6 = LooseVersion(django.get_version()) < LooseVersion('1.7')
DJANGO_1_7 = LooseVersion(django.get_version()) < LooseVersion('1.8')
| 31.5 | 69 | 0.781746 | 37 | 252 | 5.108108 | 0.540541 | 0.074074 | 0.222222 | 0.296296 | 0.433862 | 0.433862 | 0 | 0 | 0 | 0 | 0 | 0.035556 | 0.107143 | 252 | 7 | 70 | 36 | 0.804444 | 0.198413 | 0 | 0 | 0 | 0 | 0.03 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
afdc997346a7bcef703aad59c284c3a52d7719b0 | 150 | py | Python | config.py | automation-liberation/stock-checker | 5a78ed75e582c58d835794689bac66814b97f8ee | [
"Apache-2.0"
] | null | null | null | config.py | automation-liberation/stock-checker | 5a78ed75e582c58d835794689bac66814b97f8ee | [
"Apache-2.0"
] | null | null | null | config.py | automation-liberation/stock-checker | 5a78ed75e582c58d835794689bac66814b97f8ee | [
"Apache-2.0"
] | null | null | null | import os
from dotenv import load_dotenv
load_dotenv()
broker_url = os.environ.get('BROKER_URL')
result_backend = os.environ.get('RESULT_BACKEND')
| 16.666667 | 49 | 0.786667 | 23 | 150 | 4.869565 | 0.478261 | 0.178571 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106667 | 150 | 8 | 50 | 18.75 | 0.835821 | 0 | 0 | 0 | 0 | 0 | 0.16 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
b355888ba48d1a2d5b18ba5c17476efbf90691be | 47 | py | Python | veles/tests/forge/First/workflow.py | AkshayJainG/veles | 21106f41a8e7e7e74453cd16a5059a0e6b1c315e | [
"Apache-2.0"
] | 1,007 | 2015-07-20T12:01:41.000Z | 2022-03-30T23:08:35.000Z | veles/tests/forge/First/workflow.py | AkshayJainG/veles | 21106f41a8e7e7e74453cd16a5059a0e6b1c315e | [
"Apache-2.0"
] | 52 | 2015-07-21T10:26:24.000Z | 2019-01-24T05:46:43.000Z | veles/tests/forge/First/workflow.py | AkshayJainG/veles | 21106f41a8e7e7e74453cd16a5059a0e6b1c315e | [
"Apache-2.0"
] | 235 | 2015-07-20T09:42:42.000Z | 2021-12-06T18:12:26.000Z | def run(load, main):
load(None)
main()
| 11.75 | 20 | 0.553191 | 7 | 47 | 3.714286 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.276596 | 47 | 3 | 21 | 15.666667 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b36a5c6d1222860ee4b77f89ad4b6148ccd89589 | 184 | py | Python | python/paddle/trainer_config_helpers/tests/configs/test_l2_distance_layer.py | QingshuChen/Paddle | 25a92be3e123ed21fd98c7be6bd7e3a6320756a3 | [
"Apache-2.0"
] | 3 | 2018-04-16T23:35:32.000Z | 2019-08-12T01:01:07.000Z | python/paddle/trainer_config_helpers/tests/configs/test_l2_distance_layer.py | hero9968/PaddlePaddle-book | 1ff47b284c565d030b198705d5f18b4bd4ce53e5 | [
"Apache-2.0"
] | 9 | 2017-09-13T07:39:31.000Z | 2017-10-18T05:58:23.000Z | python/paddle/trainer_config_helpers/tests/configs/test_l2_distance_layer.py | QingshuChen/Paddle | 25a92be3e123ed21fd98c7be6bd7e3a6320756a3 | [
"Apache-2.0"
] | 2 | 2020-11-04T08:07:46.000Z | 2020-11-06T08:33:24.000Z | from paddle.trainer_config_helpers import *
outputs(
l2_distance_layer(
x=data_layer(
name='x', size=128), y=data_layer(
name='y', size=128)))
| 23 | 46 | 0.586957 | 24 | 184 | 4.25 | 0.666667 | 0.176471 | 0.254902 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053435 | 0.288043 | 184 | 7 | 47 | 26.285714 | 0.725191 | 0 | 0 | 0 | 0 | 0 | 0.01087 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 0 | 0.166667 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
2fb26fd7cd2cd367992653a1ba50370736b999dc | 606 | py | Python | DailyProgrammer/DP20120618C.py | DayGitH/Python-Challenges | bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf | [
"MIT"
] | 2 | 2020-12-23T18:59:22.000Z | 2021-04-14T13:16:09.000Z | DailyProgrammer/DP20120618C.py | DayGitH/Python-Challenges | bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf | [
"MIT"
] | null | null | null | DailyProgrammer/DP20120618C.py | DayGitH/Python-Challenges | bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf | [
"MIT"
] | null | null | null | """
Today's difficult problem is similar to challenge #64's difficult problem
Baseball is very famous in the USA. Your task is write a program that retrieves the current statistic for a requested
team. THIS [http://www.baseball-reference.com/] site is to be used for the reference. You are also encouraged to
retrieve s... | 31.894737 | 120 | 0.744224 | 97 | 606 | 4.56701 | 0.649485 | 0.045147 | 0.076749 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004008 | 0.176568 | 606 | 18 | 121 | 33.666667 | 0.883768 | 0.881188 | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | true | 0.25 | 0 | 0 | 0.25 | 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 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
2fbee128c397d4867761cbf2570b9e61f1c90bd3 | 660 | py | Python | drona/utils/loss_functions.py | kkothari2001/Drona | 0f1723956b88ad15ba2d9ded10e81650925dfd47 | [
"MIT"
] | null | null | null | drona/utils/loss_functions.py | kkothari2001/Drona | 0f1723956b88ad15ba2d9ded10e81650925dfd47 | [
"MIT"
] | null | null | null | drona/utils/loss_functions.py | kkothari2001/Drona | 0f1723956b88ad15ba2d9ded10e81650925dfd47 | [
"MIT"
] | null | null | null | import numpy as np
class LossFunction():
'''All loss functions need to be subclasses of this class. Newer loss functions are defined by inheriting this class'''
def __init__(self, func_name: str) -> None:
self.name = func_name
def __str__(self) -> str:
return "{} Loss Function Object".fo... | 27.5 | 123 | 0.656061 | 84 | 660 | 4.928571 | 0.488095 | 0.057971 | 0.05314 | 0.086957 | 0.207729 | 0.207729 | 0.207729 | 0.207729 | 0.207729 | 0 | 0 | 0 | 0.218182 | 660 | 23 | 124 | 28.695652 | 0.802326 | 0.171212 | 0 | 0.153846 | 0 | 0 | 0.066543 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.384615 | false | 0.076923 | 0.076923 | 0.153846 | 0.769231 | 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 |
2fc60131200988e0c4d83053d3d075af212963e9 | 116 | py | Python | question.py | samnalkande/basic-program-by-python | 1f7eabe2cab18b694f6649e33dccb26eba08feae | [
"MIT"
] | null | null | null | question.py | samnalkande/basic-program-by-python | 1f7eabe2cab18b694f6649e33dccb26eba08feae | [
"MIT"
] | null | null | null | question.py | samnalkande/basic-program-by-python | 1f7eabe2cab18b694f6649e33dccb26eba08feae | [
"MIT"
] | 3 | 2020-10-04T15:56:25.000Z | 2021-10-01T11:31:44.000Z | class Question:
def __init__(self,prompt,answer):
self.prompt = prompt
self.answer = answer
| 23.2 | 38 | 0.62069 | 13 | 116 | 5.230769 | 0.538462 | 0.294118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.293103 | 116 | 4 | 39 | 29 | 0.829268 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
2fd7a46d3d1fd8972fd56748dc851108a0151e6b | 3,163 | py | Python | Python_Translator/CODE.py | SatyaSharma73/Python-languageTranslator- | 22e9fcdaf2383693ee630107e938fe461ad5f0da | [
"MIT"
] | null | null | null | Python_Translator/CODE.py | SatyaSharma73/Python-languageTranslator- | 22e9fcdaf2383693ee630107e938fe461ad5f0da | [
"MIT"
] | null | null | null | Python_Translator/CODE.py | SatyaSharma73/Python-languageTranslator- | 22e9fcdaf2383693ee630107e938fe461ad5f0da | [
"MIT"
] | null | null | null | from googletrans import *
from gtts import gTTS
import os
#text = '''The computer was born to solve problems that did not exist before'''
print("Langauges : ")
print('''
af'--'Afrikaans', 'sq'--'Albanian','ar'--'Arabic','hy'--'Armenian',
'bn'--'Bengali','ca'--'Catalan','zh'--'Chinese','... | 55.491228 | 175 | 0.582991 | 393 | 3,163 | 4.692112 | 0.430025 | 0.032538 | 0.024403 | 0.022777 | 0.613883 | 0.613883 | 0.613883 | 0.613883 | 0.613883 | 0.613883 | 0 | 0.001807 | 0.125198 | 3,163 | 56 | 176 | 56.482143 | 0.664619 | 0.396459 | 0 | 0 | 0 | 0.242424 | 0.751634 | 0.479847 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0.30303 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
2ffb4a0be2fe59dd582b0a70f154b60cf970306b | 1,393 | py | Python | stubs/ev3_pybricks_v1_0_0/usocket.py | mattytrentini/micropython-stubs | 4d596273823b69e9e5bcf5fa67f249c374ee0bbc | [
"MIT"
] | null | null | null | stubs/ev3_pybricks_v1_0_0/usocket.py | mattytrentini/micropython-stubs | 4d596273823b69e9e5bcf5fa67f249c374ee0bbc | [
"MIT"
] | null | null | null | stubs/ev3_pybricks_v1_0_0/usocket.py | mattytrentini/micropython-stubs | 4d596273823b69e9e5bcf5fa67f249c374ee0bbc | [
"MIT"
] | null | null | null | """
Module: 'usocket' on LEGO EV3 v1.0.0
"""
# MCU: sysname=ev3, nodename=ev3, release=('v1.0.0',), version=('0.0.0',), machine=ev3
# Stubber: 1.3.2 - updated
from typing import Any
AF_INET = 2
AF_INET6 = 10
AF_UNIX = 1
MSG_DONTROUTE = 4
MSG_DONTWAIT = 64
SOCK_DGRAM = 2
SOCK_RAW = 3
SOCK_STREAM = 1
SOL_SOCKET = 1
SO_B... | 14.978495 | 86 | 0.549174 | 192 | 1,393 | 3.901042 | 0.380208 | 0.17757 | 0.249666 | 0.340454 | 0.384513 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035491 | 0.312276 | 1,393 | 92 | 87 | 15.141304 | 0.746347 | 0.105528 | 0 | 0.362069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.362069 | false | 0.362069 | 0.017241 | 0 | 0.396552 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
6407cff89cb89dd675565dea64638a1128d286ab | 179 | py | Python | proj/signals.py | SD2E/uploads-agent | a26885f82c30f14b742396646e1d38eba345b259 | [
"BSD-3-Clause"
] | null | null | null | proj/signals.py | SD2E/uploads-agent | a26885f82c30f14b742396646e1d38eba345b259 | [
"BSD-3-Clause"
] | null | null | null | proj/signals.py | SD2E/uploads-agent | a26885f82c30f14b742396646e1d38eba345b259 | [
"BSD-3-Clause"
] | null | null | null | from celery.signals import celeryd_after_setup
@celeryd_after_setup.connect
def capture_worker_name(sender, instance, **kwargs):
instance.app.conf.WORKER_NAME = str(sender)
| 25.571429 | 52 | 0.810056 | 25 | 179 | 5.52 | 0.72 | 0.173913 | 0.246377 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.100559 | 179 | 6 | 53 | 29.833333 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
64103a30e3a1bb0d0c87792de21d328b16092690 | 95 | py | Python | RPI/src/BluetoothServoController.py | IChowdhury01/Attachable-Smart-Lock | 118e09e3956dd6ad315c5e163ccb88ae55b15cdf | [
"MIT"
] | 1 | 2020-05-30T00:48:34.000Z | 2020-05-30T00:48:34.000Z | RPI/src/BluetoothServoController.py | IChowdhury01/Attachable-Smart-Lock | 118e09e3956dd6ad315c5e163ccb88ae55b15cdf | [
"MIT"
] | null | null | null | RPI/src/BluetoothServoController.py | IChowdhury01/Attachable-Smart-Lock | 118e09e3956dd6ad315c5e163ccb88ae55b15cdf | [
"MIT"
] | 1 | 2020-05-30T00:48:37.000Z | 2020-05-30T00:48:37.000Z | from bluetooth import *
import RPi.GPIO as GPIO
from Adafruit_PWM_Servo_Driver import PWM
| 19 | 42 | 0.8 | 15 | 95 | 4.866667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.178947 | 95 | 4 | 43 | 23.75 | 0.935897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
ff6fb5690ca3f0be3b7b475479136c5f47e16909 | 173 | py | Python | mkconfig/core/error.py | mcfongtw/MkConfig | 2015ad46352a1c7b42b510369f410e98c52df53b | [
"MIT"
] | 1 | 2016-11-29T13:41:21.000Z | 2016-11-29T13:41:21.000Z | mkconfig/core/error.py | mcfongtw/MkConfig | 2015ad46352a1c7b42b510369f410e98c52df53b | [
"MIT"
] | null | null | null | mkconfig/core/error.py | mcfongtw/MkConfig | 2015ad46352a1c7b42b510369f410e98c52df53b | [
"MIT"
] | null | null | null |
class IllegalStateException(Exception):
"""
An error when program enter an unexpected state
"""
def __init__(self, message):
self.message = message | 21.625 | 51 | 0.66474 | 18 | 173 | 6.166667 | 0.777778 | 0.198198 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.248555 | 173 | 8 | 52 | 21.625 | 0.853846 | 0.271676 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 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 |
ff7459c35f2acdd9c2bd1438cc4c53f2c1539dbf | 255 | py | Python | sciapp/action/__init__.py | cycleuser/imagepy | 5dc1a9a8137280c5215287392ba1b23d368bd7e9 | [
"BSD-4-Clause"
] | 1 | 2020-06-17T05:16:46.000Z | 2020-06-17T05:16:46.000Z | sciapp/action/__init__.py | cycleuser/imagepy | 5dc1a9a8137280c5215287392ba1b23d368bd7e9 | [
"BSD-4-Clause"
] | null | null | null | sciapp/action/__init__.py | cycleuser/imagepy | 5dc1a9a8137280c5215287392ba1b23d368bd7e9 | [
"BSD-4-Clause"
] | null | null | null | from .action import SciAction
from .imgact import ImgAction
from .tolact import Tool, DefaultTool, ImageTool, ShapeTool, TableTool
from .meaact import DistanceTool, AngleTool, SlopeTool, AreaTool, CoordinateTool
from .shpact import *
from .roiact import * | 42.5 | 80 | 0.815686 | 30 | 255 | 6.933333 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121569 | 255 | 6 | 81 | 42.5 | 0.928571 | 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 |
ff8463c247425a5bb294cf25d8094af6616ba031 | 72 | py | Python | tests/data_for_tests/py_file_for_tests.py | victordomingos/Count_files.py | 7d826f1646bbbc7a3dc481c3a2744e57d50c43a0 | [
"MIT"
] | 24 | 2018-05-05T12:30:30.000Z | 2021-08-17T04:38:39.000Z | tests/data_for_tests/py_file_for_tests.py | NataliaBondarenko/Count-files | 7d826f1646bbbc7a3dc481c3a2744e57d50c43a0 | [
"MIT"
] | 72 | 2018-05-02T21:18:25.000Z | 2020-09-06T09:26:21.000Z | tests/data_for_tests/py_file_for_tests.py | NataliaBondarenko/Count-files | 7d826f1646bbbc7a3dc481c3a2744e57d50c43a0 | [
"MIT"
] | 9 | 2018-05-06T10:30:30.000Z | 2021-06-13T07:19:54.000Z | #!/usr/bin/env python3
"""A file with the extension .py to run tests"""
| 24 | 48 | 0.680556 | 13 | 72 | 3.769231 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016393 | 0.152778 | 72 | 2 | 49 | 36 | 0.786885 | 0.888889 | 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 |
ff85cc94496157207a138c10b813488e9f359071 | 427 | py | Python | tests/conftest.py | symonk/Restpite | 6ad39382cfb4d4d8a27734b2da36418c9442af26 | [
"MIT"
] | null | null | null | tests/conftest.py | symonk/Restpite | 6ad39382cfb4d4d8a27734b2da36418c9442af26 | [
"MIT"
] | 5 | 2020-12-06T20:54:25.000Z | 2020-12-11T14:39:07.000Z | tests/conftest.py | symonk/Restpite | 6ad39382cfb4d4d8a27734b2da36418c9442af26 | [
"MIT"
] | null | null | null | import pytest
from tests.data_providers import data_service
@pytest.fixture
def random_headers_dict(
data_provider,
):
yield data_provider.lower_case_headers_of_len()
@pytest.fixture
def data_provider():
yield data_service
@pytest.fixture
def restpite_version() -> str:
from restpite import __vers... | 15.25 | 51 | 0.751756 | 56 | 427 | 5.339286 | 0.5 | 0.173913 | 0.214047 | 0.160535 | 0.180602 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163934 | 427 | 27 | 52 | 15.814815 | 0.837535 | 0 | 0 | 0.235294 | 0 | 0 | 0.051522 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.176471 | 0.058824 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
4406caa3cc16f8edd0e392d8281d23604c838ba5 | 28 | py | Python | data/studio21_generated/introductory/3426/starter_code.py | vijaykumawat256/Prompt-Summarization | 614f5911e2acd2933440d909de2b4f86653dc214 | [
"Apache-2.0"
] | null | null | null | data/studio21_generated/introductory/3426/starter_code.py | vijaykumawat256/Prompt-Summarization | 614f5911e2acd2933440d909de2b4f86653dc214 | [
"Apache-2.0"
] | null | null | null | data/studio21_generated/introductory/3426/starter_code.py | vijaykumawat256/Prompt-Summarization | 614f5911e2acd2933440d909de2b4f86653dc214 | [
"Apache-2.0"
] | null | null | null | def tax_calculator(total):
| 14 | 26 | 0.785714 | 4 | 28 | 5.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107143 | 28 | 2 | 27 | 14 | 0.84 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
4422b1f5de3bb6aa69c69a0ab08436c6143f248f | 31 | py | Python | vanquisher/samples/__init__.py | Gustavo6046/vanquisher-old | 3937eb0d7cc77b2573ac43be93bc6efd4adf5010 | [
"MIT"
] | null | null | null | vanquisher/samples/__init__.py | Gustavo6046/vanquisher-old | 3937eb0d7cc77b2573ac43be93bc6efd4adf5010 | [
"MIT"
] | null | null | null | vanquisher/samples/__init__.py | Gustavo6046/vanquisher-old | 3937eb0d7cc77b2573ac43be93bc6efd4adf5010 | [
"MIT"
] | null | null | null | """Just a bunch of samples."""
| 15.5 | 30 | 0.612903 | 5 | 31 | 3.8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16129 | 31 | 1 | 31 | 31 | 0.730769 | 0.774194 | 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 |
4436767c2f1195b00192354e0a631fac47debadf | 147 | py | Python | chat/apps.py | Sanquira/immortalfighters | 388018bfb5df4e4fdadb866a599b46e0387add6e | [
"MIT"
] | null | null | null | chat/apps.py | Sanquira/immortalfighters | 388018bfb5df4e4fdadb866a599b46e0387add6e | [
"MIT"
] | 5 | 2020-02-20T10:20:33.000Z | 2021-09-22T18:43:04.000Z | chat/apps.py | Sanquira/immortalfighters | 388018bfb5df4e4fdadb866a599b46e0387add6e | [
"MIT"
] | null | null | null | """
Defined the chat application
"""
from django.apps import AppConfig
class ChatConfig(AppConfig):
"""Chat application"""
name = 'chat'
| 14.7 | 33 | 0.687075 | 16 | 147 | 6.3125 | 0.75 | 0.29703 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183673 | 147 | 9 | 34 | 16.333333 | 0.841667 | 0.306122 | 0 | 0 | 0 | 0 | 0.044944 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 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 |
92286c75d381f2325d6f717b9c2f5f8a0a364d6c | 1,604 | py | Python | pequenos_grupos/migrations/0002_auto_20200124_1441.py | iamgomes/ichurch | c6569aeb0388102affc8cf17c5fc0c781b2c2732 | [
"MIT"
] | 2 | 2020-02-26T22:43:27.000Z | 2022-01-07T01:26:00.000Z | pequenos_grupos/migrations/0002_auto_20200124_1441.py | iamgomes/ichurch | c6569aeb0388102affc8cf17c5fc0c781b2c2732 | [
"MIT"
] | 9 | 2020-02-11T23:41:49.000Z | 2021-09-22T18:26:57.000Z | pequenos_grupos/migrations/0002_auto_20200124_1441.py | iamgomes/ichurch | c6569aeb0388102affc8cf17c5fc0c781b2c2732 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.1 on 2020-01-24 17:41
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pequenos_grupos', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='celula',
name='bairro',
... | 29.703704 | 74 | 0.548005 | 161 | 1,604 | 5.354037 | 0.298137 | 0.167053 | 0.213457 | 0.25058 | 0.742459 | 0.742459 | 0.699536 | 0.655452 | 0.551044 | 0.551044 | 0 | 0.031511 | 0.327307 | 1,604 | 53 | 75 | 30.264151 | 0.767377 | 0.028055 | 0 | 0.638298 | 1 | 0 | 0.074502 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.021277 | 0 | 0.085106 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
926bca5f6cc8a919e8c31082d18baf76ff98e849 | 286 | py | Python | har2tree/__init__.py | Felalex57/har2tree | 5ae851c6f4a6f764447865198e6ed9f6008ea738 | [
"BSD-3-Clause"
] | 2 | 2019-02-22T22:37:56.000Z | 2019-07-15T17:33:02.000Z | har2tree/__init__.py | Felalex57/har2tree | 5ae851c6f4a6f764447865198e6ed9f6008ea738 | [
"BSD-3-Clause"
] | 106 | 2020-06-08T12:31:41.000Z | 2022-03-29T19:19:52.000Z | har2tree/__init__.py | Felalex57/har2tree | 5ae851c6f4a6f764447865198e6ed9f6008ea738 | [
"BSD-3-Clause"
] | 5 | 2019-03-07T16:03:16.000Z | 2020-02-13T13:24:38.000Z | from .parser import CrawledTree # noqa
from .nodes import HostNode, URLNode, HarTreeNode # noqa
from .har2tree import Har2Tree, HarFile # noqa
from .helper import Har2TreeError, Har2TreeLogAdapter # noqa
import logging
logging.getLogger(__name__).addHandler(logging.NullHandler())
| 35.75 | 61 | 0.800699 | 32 | 286 | 7.03125 | 0.59375 | 0.106667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016 | 0.125874 | 286 | 7 | 62 | 40.857143 | 0.884 | 0.066434 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.833333 | 0 | 0.833333 | 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 |
2b9705c60c1aebdd3310b49d133a255e80013f37 | 93 | py | Python | tplinkcloud/UserAdmin/apps.py | sunnygods888/loT-Prototype-Platform | 9bbfe2d38fbbb2fcc9901e8ea369f1b8accf1cc5 | [
"MIT"
] | null | null | null | tplinkcloud/UserAdmin/apps.py | sunnygods888/loT-Prototype-Platform | 9bbfe2d38fbbb2fcc9901e8ea369f1b8accf1cc5 | [
"MIT"
] | null | null | null | tplinkcloud/UserAdmin/apps.py | sunnygods888/loT-Prototype-Platform | 9bbfe2d38fbbb2fcc9901e8ea369f1b8accf1cc5 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class UseradminConfig(AppConfig):
name = 'UserAdmin'
| 15.5 | 33 | 0.763441 | 10 | 93 | 7.1 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16129 | 93 | 5 | 34 | 18.6 | 0.910256 | 0 | 0 | 0 | 0 | 0 | 0.096774 | 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 |
2bae55e298ec080b19b6812d0ea3536f5f7417ea | 47 | py | Python | Rama_conf.py | mmayar/Conflicto | db062a4992ae510cc113c41e6d48af1685ad20bf | [
"MIT"
] | null | null | null | Rama_conf.py | mmayar/Conflicto | db062a4992ae510cc113c41e6d48af1685ad20bf | [
"MIT"
] | null | null | null | Rama_conf.py | mmayar/Conflicto | db062a4992ae510cc113c41e6d48af1685ad20bf | [
"MIT"
] | null | null | null | #conf
Linea 3
Linea 5
Linea 7
Linea 9
| 3.133333 | 7 | 0.595745 | 9 | 47 | 3.111111 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137931 | 0.382979 | 47 | 14 | 8 | 3.357143 | 0.827586 | 0.085106 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
2bb0135d58f404f4cba64e7549bbb99eef73a46f | 68,371 | py | Python | scripts/rebuild_models.py | reskyner/learning-ligand | c15b44326d0f6563ba4681239e6c19ed6faaf40b | [
"BSD-3-Clause"
] | 2 | 2021-01-22T10:13:50.000Z | 2022-01-10T20:09:19.000Z | scripts/rebuild_models.py | reskyner/learning-ligand | c15b44326d0f6563ba4681239e6c19ed6faaf40b | [
"BSD-3-Clause"
] | null | null | null | scripts/rebuild_models.py | reskyner/learning-ligand | c15b44326d0f6563ba4681239e6c19ed6faaf40b | [
"BSD-3-Clause"
] | 1 | 2022-01-10T20:09:21.000Z | 2022-01-10T20:09:21.000Z | # import json
import pandas as pd
import os
import joblib
from sklearn.ensemble import RandomForestRegressor
from scipy.stats import pearsonr
# training set lists
training_sets = {"Full training set": ["10gs", "184l", "185l", "186l", "187l", "188l", "1a28", "1a4k", "1a4r", "1a4w", "1a69", "1a94", "1a99", "1a9m", "1a9q... | 1,035.924242 | 65,437 | 0.509748 | 8,600 | 68,371 | 4.039186 | 0.442674 | 0.0038 | 0.001439 | 0.001267 | 0.515848 | 0.407491 | 0.327317 | 0.27665 | 0.234505 | 0.171402 | 0 | 0.21849 | 0.125141 | 68,371 | 66 | 65,438 | 1,035.924242 | 0.36225 | 0.000702 | 0 | 0 | 0 | 0 | 0.489147 | 0.003732 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.104167 | 0 | 0.104167 | 0.020833 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
2bd7ffa0b43114cbd2cb5ed8c97c66c11be7a5bf | 126 | py | Python | 7KYU/heron.py | yaznasivasai/python_codewars | 25493591dde4649dc9c1ec3bece8191a3bed6818 | [
"MIT"
] | 4 | 2021-07-17T22:48:03.000Z | 2022-03-25T14:10:58.000Z | 7KYU/heron.py | yaznasivasai/python_codewars | 25493591dde4649dc9c1ec3bece8191a3bed6818 | [
"MIT"
] | null | null | null | 7KYU/heron.py | yaznasivasai/python_codewars | 25493591dde4649dc9c1ec3bece8191a3bed6818 | [
"MIT"
] | 3 | 2021-06-14T14:18:16.000Z | 2022-03-16T06:02:02.000Z | from math import sqrt
def heron(a, b, c):
s = (a + b + c) / 2
return round(sqrt(s * (s - a) * (s - b) * (s - c)), 2) | 21 | 58 | 0.452381 | 25 | 126 | 2.28 | 0.52 | 0.070175 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023529 | 0.325397 | 126 | 6 | 58 | 21 | 0.647059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 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 |
2bede06533752f0f970df88dacfc1a77ee2e52e3 | 161 | py | Python | Module 2/Chapter01/sample_chaditry.py | real-slim-chadi/Python_Master-the-Art-of-Design-Patterns | 95ec92272374e330b04d931208abbb184c7c7908 | [
"MIT"
] | null | null | null | Module 2/Chapter01/sample_chaditry.py | real-slim-chadi/Python_Master-the-Art-of-Design-Patterns | 95ec92272374e330b04d931208abbb184c7c7908 | [
"MIT"
] | null | null | null | Module 2/Chapter01/sample_chaditry.py | real-slim-chadi/Python_Master-the-Art-of-Design-Patterns | 95ec92272374e330b04d931208abbb184c7c7908 | [
"MIT"
] | null | null | null | class Person(object):
def __init__(self, name, age):
self.name=name
self.age=age
def get_person(self,):
return "Hi"
print("hi")
| 20.125 | 34 | 0.57764 | 22 | 161 | 4 | 0.545455 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 161 | 7 | 35 | 23 | 0.765217 | 0 | 0 | 0 | 0 | 0 | 0.024845 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0 | 0.142857 | 0.571429 | 0.142857 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
ecfcf31bc90ca5ad92dcd8b3ad3017423ae3ec70 | 145 | py | Python | pwning/exp1/attack.py | ripples-alive/CTF-Script | 13efd252c7dc7bab6516c96a08c6c5bb303b2c8e | [
"MIT"
] | null | null | null | pwning/exp1/attack.py | ripples-alive/CTF-Script | 13efd252c7dc7bab6516c96a08c6c5bb303b2c8e | [
"MIT"
] | null | null | null | pwning/exp1/attack.py | ripples-alive/CTF-Script | 13efd252c7dc7bab6516c96a08c6c5bb303b2c8e | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import os
import random
import string
print ''.join([random.choice(string.letters + string.digits) for i in xrange(32)])
| 18.125 | 82 | 0.737931 | 23 | 145 | 4.652174 | 0.782609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015748 | 0.124138 | 145 | 7 | 83 | 20.714286 | 0.826772 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.75 | null | null | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
a61d48acd093b13838733d3234277be8980821b5 | 723 | py | Python | lib/systems/propane.py | pulsar-chem/BPModule | f8e64e04fdb01947708f098e833600c459c2ff0e | [
"BSD-3-Clause"
] | null | null | null | lib/systems/propane.py | pulsar-chem/BPModule | f8e64e04fdb01947708f098e833600c459c2ff0e | [
"BSD-3-Clause"
] | null | null | null | lib/systems/propane.py | pulsar-chem/BPModule | f8e64e04fdb01947708f098e833600c459c2ff0e | [
"BSD-3-Clause"
] | null | null | null | import pulsar as psr
def load_ref_system():
""" Returns propane as found in the IQMol fragment library.
All credit to https://github.com/nutjunkie/IQmol
"""
return psr.make_system("""
H 1.9131 -0.1215 1.0479
C 1.2683 -0.0636 0.1619
H 1.5702 ... | 38.052632 | 63 | 0.437068 | 106 | 723 | 2.95283 | 0.59434 | 0.025559 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.419847 | 0.456432 | 723 | 18 | 64 | 40.166667 | 0.37659 | 0.143845 | 0 | 0 | 0 | 0 | 0.859766 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | true | 0 | 0.066667 | 0 | 0.2 | 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 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
a63258b58f4e6c407527b16c91caae88ecb4a63f | 179 | py | Python | test/com/facebook/buck/features/python/testdata/python_test/test_setup_class_failure.py | Unknoob/buck | 2dfc734354b326f2f66896dde7746a11965d5a13 | [
"Apache-2.0"
] | 8,027 | 2015-01-02T05:31:44.000Z | 2022-03-31T07:08:09.000Z | test/com/facebook/buck/features/python/testdata/python_test/test_setup_class_failure.py | Unknoob/buck | 2dfc734354b326f2f66896dde7746a11965d5a13 | [
"Apache-2.0"
] | 2,355 | 2015-01-01T15:30:53.000Z | 2022-03-30T20:21:16.000Z | test/com/facebook/buck/features/python/testdata/python_test/test_setup_class_failure.py | Unknoob/buck | 2dfc734354b326f2f66896dde7746a11965d5a13 | [
"Apache-2.0"
] | 1,280 | 2015-01-09T03:29:04.000Z | 2022-03-30T15:14:14.000Z | import unittest
class Test(unittest.TestCase):
@classmethod
def setUpClass(cls):
raise Exception("setup failure!")
def test_that_passes(self):
pass
| 16.272727 | 41 | 0.664804 | 20 | 179 | 5.85 | 0.85 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.24581 | 179 | 10 | 42 | 17.9 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0.078212 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0.285714 | 0.142857 | 0 | 0.571429 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
a64dc34ff2ab2f8e30e8c4af047087b0ed0ed307 | 112 | py | Python | nipype/interfaces/mixins/__init__.py | dPys/nipype | 75030b29297808e7c9a9e91b411b685154dff60b | [
"Apache-2.0"
] | 1 | 2019-03-25T14:11:18.000Z | 2019-03-25T14:11:18.000Z | nipype/interfaces/mixins/__init__.py | dPys/nipype | 75030b29297808e7c9a9e91b411b685154dff60b | [
"Apache-2.0"
] | 1 | 2017-01-05T01:24:33.000Z | 2017-01-05T01:24:33.000Z | nipype/interfaces/mixins/__init__.py | wtriplett/nipype | 388f140fceaf55438a987e9cdfa2a8e995428afd | [
"Apache-2.0"
] | null | null | null | from .reporting import (
ReportCapableInterface,
ReportCapableInputSpec,
ReportCapableOutputSpec,
)
| 18.666667 | 28 | 0.767857 | 6 | 112 | 14.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.178571 | 112 | 5 | 29 | 22.4 | 0.934783 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
a6699aa3f135b585543802f1781537bfc3b22cd8 | 285 | py | Python | ank/components/split_app.py | sunary/ank | f5c783aa51227aea9d8860c649533deed3149852 | [
"MIT"
] | 61 | 2016-06-21T23:43:38.000Z | 2021-11-21T14:23:46.000Z | ank/components/split_app.py | sunary/ank | f5c783aa51227aea9d8860c649533deed3149852 | [
"MIT"
] | 3 | 2018-10-01T23:48:00.000Z | 2018-10-01T23:56:58.000Z | ank/components/split_app.py | sunary/ank | f5c783aa51227aea9d8860c649533deed3149852 | [
"MIT"
] | 4 | 2016-06-27T12:36:15.000Z | 2019-12-27T08:05:32.000Z | __author__ = 'sunary'
from ank.components.pipe_app import PipeApp
class SplitApp(PipeApp):
def init_app(self):
pass
def start(self):
self.logger.info('Start {}'.format(self.__class__.__name__))
def process(self, message=None):
return message
| 16.764706 | 68 | 0.663158 | 35 | 285 | 5 | 0.685714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.224561 | 285 | 16 | 69 | 17.8125 | 0.791855 | 0 | 0 | 0 | 0 | 0 | 0.049123 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.111111 | 0.111111 | 0.111111 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
a6b073ad809050cca2ca1bbabf41233c2b1e0791 | 228 | py | Python | cli/brahma_cli/test/config.py | gve-vse-tim/brahma-project-asic | c13b0638b966f9dd66bbdca5ba6cfa2b8a5f1dcf | [
"BSD-Source-Code"
] | 2 | 2020-07-23T20:29:25.000Z | 2020-09-02T13:13:44.000Z | cli/brahma_cli/test/config.py | gve-vse-tim/brahma-project-asic | c13b0638b966f9dd66bbdca5ba6cfa2b8a5f1dcf | [
"BSD-Source-Code"
] | 6 | 2021-03-10T04:18:15.000Z | 2022-02-26T22:19:00.000Z | cli/brahma_cli/test/config.py | gve-vse-tim/brahma-project-asic | c13b0638b966f9dd66bbdca5ba6cfa2b8a5f1dcf | [
"BSD-Source-Code"
] | 1 | 2020-08-18T15:59:37.000Z | 2020-08-18T15:59:37.000Z | #!/usr/bin/env python
# dCloud Credentials
apic = {
'ip': '198.18.133.200',
'url': 'https://198.18.133.200',
'user': 'admin',
'password': 'C1sco12345'
}
saas = {
'ip': __SAAS_IP__
'token': __TOKEN___
}
| 15.2 | 36 | 0.557018 | 28 | 228 | 4.178571 | 0.714286 | 0.08547 | 0.136752 | 0.188034 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.158192 | 0.223684 | 228 | 14 | 37 | 16.285714 | 0.502825 | 0.171053 | 0 | 0 | 0 | 0 | 0.40107 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.1 | 0 | null | null | 0 | 1 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
a6de92b78989521f969dd3038d427476b70ea054 | 27 | py | Python | utils/Personal/decorator.py | Samrid-Pandit/Samrids-Bot | f0f4dd740111bc328493668899ae047dd68c4776 | [
"Apache-2.0"
] | 3 | 2020-10-24T08:58:04.000Z | 2020-12-02T14:59:31.000Z | utils/Personal/decorator.py | Samrid-Pandit/Ihihi-Bot | f0f4dd740111bc328493668899ae047dd68c4776 | [
"Apache-2.0"
] | 4 | 2020-10-24T03:58:21.000Z | 2020-10-28T11:39:32.000Z | utils/Personal/decorator.py | Samrid-Pandit/Samrids-Bot | f0f4dd740111bc328493668899ae047dd68c4776 | [
"Apache-2.0"
] | 1 | 2020-10-24T08:58:03.000Z | 2020-10-24T08:58:03.000Z | """
BOT IS STILL IN DEV
""" | 9 | 19 | 0.555556 | 5 | 27 | 3 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 27 | 3 | 20 | 9 | 0.714286 | 0.703704 | 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 |
a6fad9ff5e27efc729f9ac2c5a9697a018681be8 | 182 | py | Python | python_tests/opencv_test.py | qihqi/custom_loader | aaf54c8465a48ef3162dd5cbf9ac3185c44b3e30 | [
"BSD-3-Clause"
] | null | null | null | python_tests/opencv_test.py | qihqi/custom_loader | aaf54c8465a48ef3162dd5cbf9ac3185c44b3e30 | [
"BSD-3-Clause"
] | null | null | null | python_tests/opencv_test.py | qihqi/custom_loader | aaf54c8465a48ef3162dd5cbf9ac3185c44b3e30 | [
"BSD-3-Clause"
] | null | null | null | import os
os.chdir('/data/home/qihan/cluster/custom_loader/third_party/opencv-python/tests')
import cv2
cap = cv2.VideoCapture("SampleVideo_1280x720_1mb.mp4")
assert cap.isOpened()
| 26 | 82 | 0.807692 | 27 | 182 | 5.296296 | 0.851852 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064327 | 0.06044 | 182 | 6 | 83 | 30.333333 | 0.77193 | 0 | 0 | 0 | 0 | 0 | 0.538462 | 0.538462 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
470baf2de1880e24d7ed4057883ed92d2a93a0ef | 168 | py | Python | envitro/__init__.py | MarcMeszaros/envitro | 19e925cd152c08d4db8126542afed35188cafff4 | [
"Apache-2.0"
] | 4 | 2015-11-01T03:28:23.000Z | 2016-04-04T01:09:18.000Z | envitro/__init__.py | MarcMeszaros/envitro | 19e925cd152c08d4db8126542afed35188cafff4 | [
"Apache-2.0"
] | null | null | null | envitro/__init__.py | MarcMeszaros/envitro | 19e925cd152c08d4db8126542afed35188cafff4 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# pylint: disable=C0111,W0401,W0622
from __future__ import absolute_import
from . import decorators
from .core import *
__version__ = '0.5.0'
| 18.666667 | 38 | 0.720238 | 23 | 168 | 4.869565 | 0.73913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111888 | 0.14881 | 168 | 8 | 39 | 21 | 0.671329 | 0.327381 | 0 | 0 | 0 | 0 | 0.045455 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
4713fda54b3ec50040ec51bc55351be189d80255 | 257 | py | Python | lang/Python/catalan-numbers-pascals-triangle-2.py | ethansaxenian/RosettaDecode | 8ea1a42a5f792280b50193ad47545d14ee371fb7 | [
"MIT"
] | null | null | null | lang/Python/catalan-numbers-pascals-triangle-2.py | ethansaxenian/RosettaDecode | 8ea1a42a5f792280b50193ad47545d14ee371fb7 | [
"MIT"
] | null | null | null | lang/Python/catalan-numbers-pascals-triangle-2.py | ethansaxenian/RosettaDecode | 8ea1a42a5f792280b50193ad47545d14ee371fb7 | [
"MIT"
] | null | null | null | def catalan_number(n):
nm = dm = 1
for k in range(2, n+1):
nm, dm = ( nm*(n+k), dm*k )
return nm/dm
print([catalan_number(n) for n in range(1, 16)])
[1, 2, 5, 14, 42, 132, 429, 1430, 4862, 16796, 58786, 208012, 742900, 2674440, 9694845]
| 25.7 | 87 | 0.579767 | 49 | 257 | 3 | 0.571429 | 0.081633 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.323077 | 0.241245 | 257 | 9 | 88 | 28.555556 | 0.430769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.285714 | 0.142857 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
5b76820737a3ad4c39bfe5a76ec1d7e40adc5ed6 | 3,649 | gyp | Python | JSON/json.gyp | OptimusLime/node-iesor | 00ef521521497996935ed40a097134782319b48c | [
"MIT"
] | 1 | 2020-04-12T22:58:41.000Z | 2020-04-12T22:58:41.000Z | JSON/json.gyp | OptimusLime/node-iesor | 00ef521521497996935ed40a097134782319b48c | [
"MIT"
] | null | null | null | JSON/json.gyp | OptimusLime/node-iesor | 00ef521521497996935ed40a097134782319b48c | [
"MIT"
] | null | null | null | {
"targets": [
{
"target_name": "json",
"product_name": "json",
"variables": {
"json_dir%": "../"
},
'cflags!': [ '-fno-exceptions' ],
'cflags_cc!': [ '-fno-exceptions' ],
'conditions': [
['OS=="m... | 28.732283 | 62 | 0.288846 | 216 | 3,649 | 4.62963 | 0.305556 | 0.147 | 0.22 | 0.224 | 0.311 | 0.162 | 0 | 0 | 0 | 0 | 0 | 0.010185 | 0.569471 | 3,649 | 127 | 63 | 28.732283 | 0.626353 | 0 | 0 | 0.312 | 0 | 0 | 0.338082 | 0.166301 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
5bd8e40d4c86f2993f4b60a6c3964ec74cc236da | 253 | py | Python | allenact_plugins/habitat_plugin/__init__.py | klemenkotar/dcrl | 457be7af1389db37ec12e165dfad646e17359162 | [
"MIT"
] | 187 | 2020-08-28T16:59:41.000Z | 2022-03-27T19:10:11.000Z | allenact_plugins/habitat_plugin/__init__.py | klemenkotar/dcrl | 457be7af1389db37ec12e165dfad646e17359162 | [
"MIT"
] | 120 | 2020-08-28T15:30:36.000Z | 2022-03-13T00:38:44.000Z | allenact_plugins/habitat_plugin/__init__.py | klemenkotar/dcrl | 457be7af1389db37ec12e165dfad646e17359162 | [
"MIT"
] | 45 | 2020-08-28T18:30:04.000Z | 2022-03-29T11:13:28.000Z | from allenact.utils.system import ImportChecker
with ImportChecker(
"\n\nPlease install habitat following\n\n"
"https://allenact.org/installation/installation-framework/#installation-of-habitat\n\n"
):
import habitat
import habitat_sim
| 28.111111 | 91 | 0.766798 | 31 | 253 | 6.225806 | 0.580645 | 0.020725 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 253 | 8 | 92 | 31.625 | 0.877273 | 0 | 0 | 0 | 0 | 0.142857 | 0.494071 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.571429 | 0 | 0.571429 | 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 |
75175de307688a761f6adecd3f3d958306f7f847 | 421 | py | Python | mchub/configuration/env.py | ComputeCanada/magic_castle-ui | 6ce719bfe7b6668489d885592e42283ab5ba1f86 | [
"BSD-3-Clause"
] | 5 | 2020-05-06T14:50:57.000Z | 2020-06-15T19:41:29.000Z | mchub/configuration/env.py | ComputeCanada/magic_castle-ui | 6ce719bfe7b6668489d885592e42283ab5ba1f86 | [
"BSD-3-Clause"
] | 14 | 2020-05-06T15:12:50.000Z | 2020-08-27T01:26:23.000Z | mchub/configuration/env.py | ComputeCanada/magic_castle-ui | 6ce719bfe7b6668489d885592e42283ab5ba1f86 | [
"BSD-3-Clause"
] | 2 | 2020-05-06T18:23:39.000Z | 2020-05-06T18:23:39.000Z | from os import path, environ, getcwd
# Paths and filenames
RUN_PATH = environ.get("MCH_RUN_PATH", getcwd())
CLUSTERS_PATH = environ.get("MCH_CLUSTERS_PATH", path.join(RUN_PATH, "clusters"))
DIST_PATH = environ.get("MCH_DIST_PATH", path.join(RUN_PATH, "dist"))
DATABASE_PATH = environ.get("MCH_DATABASE_PATH", path.join(... | 52.625 | 81 | 0.783848 | 64 | 421 | 4.828125 | 0.28125 | 0.213592 | 0.226537 | 0.275081 | 0.184466 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078385 | 421 | 8 | 82 | 52.625 | 0.796392 | 0.045131 | 0 | 0 | 0 | 0 | 0.264339 | 0.067332 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
f356748e30de7061354de9f6611d6a8c4cb4ffae | 374 | py | Python | upath/tests/utils.py | fsspec/universal_pathlib | 29b20316c2a35fa5ed69548cf1c7bf383a620076 | [
"MIT"
] | 13 | 2021-12-17T22:52:32.000Z | 2022-03-27T22:21:31.000Z | upath/tests/utils.py | fsspec/universal_pathlib | 29b20316c2a35fa5ed69548cf1c7bf383a620076 | [
"MIT"
] | 13 | 2021-12-02T14:32:58.000Z | 2022-03-28T15:25:55.000Z | upath/tests/utils.py | fsspec/universal_pathlib | 29b20316c2a35fa5ed69548cf1c7bf383a620076 | [
"MIT"
] | 6 | 2022-02-14T22:46:07.000Z | 2022-03-29T11:55:20.000Z | import sys
import pytest
def skip_on_windows(func):
return pytest.mark.skipif(
sys.platform.startswith("win"), reason="Don't run on Windows"
)(func)
def only_on_windows(func):
return pytest.mark.skipif(
not sys.platform.startswith("win"), reason="Only run on Windows"
)(func)
def po... | 19.684211 | 72 | 0.660428 | 51 | 374 | 4.764706 | 0.470588 | 0.148148 | 0.213992 | 0.156379 | 0.691358 | 0.288066 | 0.288066 | 0 | 0 | 0 | 0 | 0 | 0.192513 | 374 | 18 | 73 | 20.777778 | 0.804636 | 0 | 0 | 0.333333 | 0 | 0 | 0.128342 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.166667 | 0.25 | 0.666667 | 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 |
f370ce2590f2f39f1f3293c2a781569960fc5efc | 75 | py | Python | src/backend/app/models/__init__.py | douglasdaly/dougliz-wedding | da673baf3a7387c3818960c0ffa12ab7c830a89b | [
"MIT"
] | 5 | 2020-02-02T02:39:23.000Z | 2021-08-17T15:50:57.000Z | src/backend/app/models/__init__.py | douglasdaly/dougliz-wedding | da673baf3a7387c3818960c0ffa12ab7c830a89b | [
"MIT"
] | 4 | 2021-03-31T19:39:57.000Z | 2022-01-22T09:29:10.000Z | src/backend/app/models/__init__.py | douglasdaly/dougliz-wedding | da673baf3a7387c3818960c0ffa12ab7c830a89b | [
"MIT"
] | 1 | 2020-04-12T17:11:43.000Z | 2020-04-12T17:11:43.000Z | # -*- coding: utf-8 -*-
"""
Model object specification and validation.
"""
| 15 | 42 | 0.626667 | 8 | 75 | 5.875 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015873 | 0.16 | 75 | 4 | 43 | 18.75 | 0.730159 | 0.866667 | 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 |
f3a1d2c66a4eecba6da42de6f091a05617819af9 | 413 | py | Python | imeerk/calendars/icalendar/IcalCalendars.py | nikialeksey/imeerk | fdf9cbdf9c139418ec872489f9615dbd88b378c2 | [
"MIT"
] | null | null | null | imeerk/calendars/icalendar/IcalCalendars.py | nikialeksey/imeerk | fdf9cbdf9c139418ec872489f9615dbd88b378c2 | [
"MIT"
] | 9 | 2018-10-19T18:35:53.000Z | 2018-11-14T08:34:52.000Z | imeerk/calendars/icalendar/IcalCalendars.py | nikialeksey/imeerk | fdf9cbdf9c139418ec872489f9615dbd88b378c2 | [
"MIT"
] | null | null | null | import abc
import typing
from .IcalCalendar import IcalCalendar
class IcalCalendars:
__metaclass__ = abc.ABCMeta
@abc.abstractmethod
def add(self, url, name):
# type: (str, str) -> None
pass
@abc.abstractmethod
def calendar(self, url: str) -> IcalCalendar:
pass
@abc... | 18.772727 | 63 | 0.636804 | 47 | 413 | 5.489362 | 0.489362 | 0.197674 | 0.232558 | 0.186047 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.261501 | 413 | 21 | 64 | 19.666667 | 0.845902 | 0.058111 | 0 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0.214286 | 0.214286 | 0 | 0.571429 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
45f537bcc0e8b46ad485bb0fb3c8b5fb58801f85 | 258 | py | Python | configuration.py | winemug/omnipy | 391ffc777e040c8d89edc9b9da47c8e03583bf7b | [
"MIT"
] | 76 | 2019-02-07T14:55:11.000Z | 2021-12-31T21:01:43.000Z | configuration.py | diabetlum/omnipy | 391ffc777e040c8d89edc9b9da47c8e03583bf7b | [
"MIT"
] | 12 | 2019-03-13T07:29:30.000Z | 2020-02-29T10:56:45.000Z | configuration.py | diabetlum/omnipy | 391ffc777e040c8d89edc9b9da47c8e03583bf7b | [
"MIT"
] | 35 | 2018-10-29T07:17:50.000Z | 2020-12-15T15:54:43.000Z | class OmnipyConfiguration(object):
def __init__(self):
self.mqtt_host = ""
self.mqtt_port = 1883
self.mqtt_clientid = ""
self.mqtt_command_topic = ""
self.mqtt_response_topic = ""
self.mqtt_rate_topic = ""
| 28.666667 | 37 | 0.604651 | 28 | 258 | 5.107143 | 0.535714 | 0.335664 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021739 | 0.286822 | 258 | 8 | 38 | 32.25 | 0.755435 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.25 | 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 |
341475bf88ddc040817164b53a536c983697cec4 | 274 | py | Python | kombu/utils/uuid.py | 7Geese/kombu | b51d1d678e198a80d7e5fd95f32674c7d8e04a75 | [
"BSD-3-Clause"
] | 5,079 | 2015-01-01T03:39:46.000Z | 2022-03-31T07:38:22.000Z | desktop/core/ext-py/kombu-4.3.0/kombu/utils/uuid.py | zks888/hue | 93a8c370713e70b216c428caa2f75185ef809deb | [
"Apache-2.0"
] | 1,623 | 2015-01-01T08:06:24.000Z | 2022-03-30T19:48:52.000Z | desktop/core/ext-py/kombu-4.3.0/kombu/utils/uuid.py | zks888/hue | 93a8c370713e70b216c428caa2f75185ef809deb | [
"Apache-2.0"
] | 2,033 | 2015-01-04T07:18:02.000Z | 2022-03-28T19:55:47.000Z | """UUID utilities."""
from __future__ import absolute_import, unicode_literals
from uuid import uuid4
def uuid(_uuid=uuid4):
"""Generate unique id in UUID4 format.
See Also:
For now this is provided by :func:`uuid.uuid4`.
"""
return str(_uuid())
| 19.571429 | 56 | 0.675182 | 37 | 274 | 4.783784 | 0.702703 | 0.101695 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018605 | 0.215328 | 274 | 13 | 57 | 21.076923 | 0.804651 | 0.416058 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.5 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
341b7f6b1fb5af95fe3b764b1099100b56c341ca | 65 | py | Python | lab3/src/main/resources/read.py | AlexeyShik/Translation-Methods | c205ec471c097517f3551480d6a2dd31e8de677d | [
"MIT"
] | null | null | null | lab3/src/main/resources/read.py | AlexeyShik/Translation-Methods | c205ec471c097517f3551480d6a2dd31e8de677d | [
"MIT"
] | null | null | null | lab3/src/main/resources/read.py | AlexeyShik/Translation-Methods | c205ec471c097517f3551480d6a2dd31e8de677d | [
"MIT"
] | null | null | null | a = int(input())
b = int ( input ( ) )
a = int(input())
| 10.833333 | 28 | 0.415385 | 9 | 65 | 3 | 0.444444 | 0.888889 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.353846 | 65 | 5 | 29 | 13 | 0.642857 | 0 | 0 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
3450d47bcc950074ff33e69a3fdeae8533a1e2fa | 421 | py | Python | project0001api/project0001api/src/permissions.py | Hir0v0/SNS-API | 7616494ccb59bd94e0999bb40ee576557d2cc4f2 | [
"MIT"
] | null | null | null | project0001api/project0001api/src/permissions.py | Hir0v0/SNS-API | 7616494ccb59bd94e0999bb40ee576557d2cc4f2 | [
"MIT"
] | null | null | null | project0001api/project0001api/src/permissions.py | Hir0v0/SNS-API | 7616494ccb59bd94e0999bb40ee576557d2cc4f2 | [
"MIT"
] | null | null | null | from rest_framework import permissions
class IsAuthor(permissions.BasePermission):
"""Set permissions for post or comment author"""
def has_object_permission(self, request, view, obj):
return obj.user == request.user
def has_permission(self, request, view):
if request.method in permission... | 35.083333 | 61 | 0.72209 | 52 | 421 | 5.730769 | 0.634615 | 0.110738 | 0.14094 | 0.167785 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.204276 | 421 | 12 | 61 | 35.083333 | 0.889552 | 0.099762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.125 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 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 |
347eaef6b445306756879086f4cfa25895f9e30f | 227 | py | Python | sorosim.py | L5vD5/SMINet | ea25ec2ec11dcd5393a199f3d298949b69c94640 | [
"MIT"
] | null | null | null | sorosim.py | L5vD5/SMINet | ea25ec2ec11dcd5393a199f3d298949b69c94640 | [
"MIT"
] | null | null | null | sorosim.py | L5vD5/SMINet | ea25ec2ec11dcd5393a199f3d298949b69c94640 | [
"MIT"
] | null | null | null | import numpy as np
# file_path = './test.txt'
# rawdata = np.loadtxt(file_path,delimiter=',')
# print(rawdata.shape)
# rawdata[:,3:] = 1000 * rawdata[:,3:]
# np.savez('test2.npz', rawdata)
print(np.load('test2.npz')['arr_0']) | 25.222222 | 47 | 0.651982 | 34 | 227 | 4.264706 | 0.617647 | 0.110345 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044554 | 0.110132 | 227 | 9 | 48 | 25.222222 | 0.673267 | 0.700441 | 0 | 0 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 4 |
caa47bf409848622f71fc906e87140177a6d3cb0 | 219 | py | Python | torch_kalman/process/utils/design_matrix/__init__.py | Suhwan-Dev/torch-kalman | f310c42e264d1642819e4c49a8b0212209a18a85 | [
"MIT"
] | null | null | null | torch_kalman/process/utils/design_matrix/__init__.py | Suhwan-Dev/torch-kalman | f310c42e264d1642819e4c49a8b0212209a18a85 | [
"MIT"
] | null | null | null | torch_kalman/process/utils/design_matrix/__init__.py | Suhwan-Dev/torch-kalman | f310c42e264d1642819e4c49a8b0212209a18a85 | [
"MIT"
] | null | null | null | from .design_matrices import (
VarianceMultiplierMatrix,
MeasureVarianceMultiplierMatrix,
ProcessVarianceMultiplierMatrix,
TransitionMatrix,
MeasureMatrix
)
from .dynamic_matrix import DynamicMatrix
| 24.333333 | 41 | 0.808219 | 14 | 219 | 12.5 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155251 | 219 | 8 | 42 | 27.375 | 0.945946 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
cab151440dbf625761e8cf20940763213c9ccae3 | 96 | py | Python | students/K33422/laboratory_works/Chanova_Sofya/laboratory_work_3/college/college_app/apps.py | ShubhamKunal/ITMO_ICT_WebDevelopment_2020-2021 | bb91c91a56d21cec2b12ae4cc722eaa652a88420 | [
"MIT"
] | 4 | 2020-09-03T15:41:42.000Z | 2021-12-24T15:28:20.000Z | students/K33422/laboratory_works/Chanova_Sofya/laboratory_work_3/college/college_app/apps.py | ShubhamKunal/ITMO_ICT_WebDevelopment_2020-2021 | bb91c91a56d21cec2b12ae4cc722eaa652a88420 | [
"MIT"
] | 48 | 2020-09-13T20:22:42.000Z | 2021-04-30T11:13:30.000Z | students/K33422/laboratory_works/Chanova_Sofya/laboratory_work_3/college/college_app/apps.py | ShubhamKunal/ITMO_ICT_WebDevelopment_2020-2021 | bb91c91a56d21cec2b12ae4cc722eaa652a88420 | [
"MIT"
] | 69 | 2020-09-06T10:32:37.000Z | 2021-11-28T18:13:17.000Z | from django.apps import AppConfig
class CollegeAppConfig(AppConfig):
name = 'college_app'
| 16 | 34 | 0.770833 | 11 | 96 | 6.636364 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15625 | 96 | 5 | 35 | 19.2 | 0.901235 | 0 | 0 | 0 | 0 | 0 | 0.114583 | 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 |
cab45d27368a28e419f5ca1507ef50c4ed7232e9 | 628 | py | Python | app/validators/cart.py | TianJin85/mall | d58d6aeb45b3ef7120d3c813c0a4182e7cf25ca8 | [
"MIT"
] | null | null | null | app/validators/cart.py | TianJin85/mall | d58d6aeb45b3ef7120d3c813c0a4182e7cf25ca8 | [
"MIT"
] | 1 | 2021-06-02T01:35:11.000Z | 2021-06-02T01:35:11.000Z | app/validators/cart.py | TianJin85/mall | d58d6aeb45b3ef7120d3c813c0a4182e7cf25ca8 | [
"MIT"
] | null | null | null | # -*- encoding: utf-8 -*-
"""
@File : cart.py
@Time : 2020/4/26 15:47
@Author : Tianjin
@Email : tianjincn@163.com
@Software: PyCharm
"""
from wtforms import DateTimeField, PasswordField, FieldList, IntegerField, StringField, TextField, Form, BooleanField
from wtforms.validators import DataRequired, Regexp, E... | 36.941176 | 117 | 0.730892 | 66 | 628 | 6.939394 | 0.757576 | 0.144105 | 0.189956 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027372 | 0.127389 | 628 | 16 | 118 | 39.25 | 0.808394 | 0.219745 | 0 | 0 | 0 | 0 | 0.074689 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.166667 | 0.333333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 4 |
cac6ff4c2b842fbca63679450e4044e98d67ca6f | 81 | py | Python | characters/Messi.py | Alfred-CQ/Git_Taller_Grupo11 | c767d4ed54d95d0244a64fc50ffce5e8ba7abb82 | [
"Apache-2.0"
] | null | null | null | characters/Messi.py | Alfred-CQ/Git_Taller_Grupo11 | c767d4ed54d95d0244a64fc50ffce5e8ba7abb82 | [
"Apache-2.0"
] | 1 | 2021-06-12T23:44:26.000Z | 2021-06-12T23:47:46.000Z | characters/Messi.py | Alfred-CQ/Git_Taller_Grupo11 | c767d4ed54d95d0244a64fc50ffce5e8ba7abb82 | [
"Apache-2.0"
] | 5 | 2021-06-12T22:27:13.000Z | 2021-06-12T22:36:51.000Z | class Messi:
def SayName(self):
print("Hi,I'm Lionel.I am the GOAT")
| 20.25 | 44 | 0.604938 | 14 | 81 | 3.5 | 0.928571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.259259 | 81 | 3 | 45 | 27 | 0.816667 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
cac798240518b7d81b4126492be65643719d6842 | 124 | py | Python | problemsets/Codeforces/Python/A281.py | juarezpaulino/coderemite | a4649d3f3a89d234457032d14a6646b3af339ac1 | [
"Apache-2.0"
] | null | null | null | problemsets/Codeforces/Python/A281.py | juarezpaulino/coderemite | a4649d3f3a89d234457032d14a6646b3af339ac1 | [
"Apache-2.0"
] | null | null | null | problemsets/Codeforces/Python/A281.py | juarezpaulino/coderemite | a4649d3f3a89d234457032d14a6646b3af339ac1 | [
"Apache-2.0"
] | null | null | null | """
*
* Author: Juarez Paulino(coderemite)
* Email: juarez.paulino@gmail.com
*
"""
a=input()
print(a[0].upper()+a[1:]) | 15.5 | 38 | 0.604839 | 17 | 124 | 4.411765 | 0.764706 | 0.346667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018868 | 0.145161 | 124 | 8 | 39 | 15.5 | 0.688679 | 0.604839 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
1b2adfe3d2cdc65bbcc3b23bc1227e78e4ad0275 | 102 | py | Python | src/investmentstk/models/broker_balance.py | fernandobrito/investments-toolkit | 40663857d83ec99be7aecd78cf50d092c7144d8f | [
"Apache-2.0"
] | 3 | 2021-08-23T16:47:22.000Z | 2021-11-19T12:41:19.000Z | src/investmentstk/models/broker_balance.py | fernandobrito/investments-toolkit | 40663857d83ec99be7aecd78cf50d092c7144d8f | [
"Apache-2.0"
] | 14 | 2021-08-28T14:17:50.000Z | 2021-11-28T20:12:54.000Z | src/investmentstk/models/broker_balance.py | fernandobrito/investments-toolkit | 40663857d83ec99be7aecd78cf50d092c7144d8f | [
"Apache-2.0"
] | 1 | 2021-11-04T06:51:32.000Z | 2021-11-04T06:51:32.000Z | from pydantic import BaseModel
class BrokerBalance(BaseModel):
balance: float
currency: str
| 14.571429 | 31 | 0.754902 | 11 | 102 | 7 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.196078 | 102 | 6 | 32 | 17 | 0.939024 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 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 |
1b31050c32a8ceeea7beed47199f8574d0334833 | 116 | py | Python | precessor/util.py | valohai/precessor | c8c88c1841cb004c2872cbb15ddbc23ff273f332 | [
"MIT"
] | null | null | null | precessor/util.py | valohai/precessor | c8c88c1841cb004c2872cbb15ddbc23ff273f332 | [
"MIT"
] | null | null | null | precessor/util.py | valohai/precessor | c8c88c1841cb004c2872cbb15ddbc23ff273f332 | [
"MIT"
] | null | null | null | def force_bytes(value):
if isinstance(value, bytes):
return value
return str(value).encode('utf-8')
| 23.2 | 37 | 0.655172 | 16 | 116 | 4.6875 | 0.6875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010989 | 0.215517 | 116 | 4 | 38 | 29 | 0.813187 | 0 | 0 | 0 | 0 | 0 | 0.043103 | 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 |
1b4a53d4831164c7daf5a15457d6ec19eb300540 | 125 | py | Python | tests.py | datalayer-contrib/data8-datascience | 3d806a4c1491e19581d547be202c79a06bccd14f | [
"BSD-3-Clause"
] | null | null | null | tests.py | datalayer-contrib/data8-datascience | 3d806a4c1491e19581d547be202c79a06bccd14f | [
"BSD-3-Clause"
] | null | null | null | tests.py | datalayer-contrib/data8-datascience | 3d806a4c1491e19581d547be202c79a06bccd14f | [
"BSD-3-Clause"
] | null | null | null | import pytest
import sys
if __name__ == "__main__":
sys.exit(pytest.main(['--nbval-lax', '--cov=datascience', 'tests'])) | 25 | 72 | 0.664 | 16 | 125 | 4.6875 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12 | 125 | 5 | 72 | 25 | 0.681818 | 0 | 0 | 0 | 0 | 0 | 0.325397 | 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 |
1b6b6a351793f7e3d752e71443666626533d3105 | 248 | py | Python | pix2vertex/constants.py | moonryul/pix2vertex.pytorch | 858e44b33e968c3752894bcf11aa1e341096c9ef | [
"MIT"
] | 169 | 2020-05-01T08:54:18.000Z | 2022-02-10T19:18:26.000Z | pix2vertex/constants.py | moonryul/pix2vertex.pytorch | 858e44b33e968c3752894bcf11aa1e341096c9ef | [
"MIT"
] | 8 | 2020-05-10T21:58:30.000Z | 2021-05-02T03:11:09.000Z | pix2vertex/constants.py | moonryul/pix2vertex.pytorch | 858e44b33e968c3752894bcf11aa1e341096c9ef | [
"MIT"
] | 21 | 2020-05-01T08:54:24.000Z | 2021-12-31T11:49:58.000Z | predictor_url = 'http://dlib.net/files/shape_predictor_68_face_landmarks.dat.bz2'
predictor_file = '../weights/shape_predictor_68_face_landmarks.dat'
p2v_model_gdrive_id = '1op5_zyH4CWm_JFDdCUPZM4X-A045ETex'
sample_image = '../examples/sample.jpg'
| 49.6 | 81 | 0.826613 | 35 | 248 | 5.4 | 0.742857 | 0.148148 | 0.169312 | 0.21164 | 0.338624 | 0.338624 | 0 | 0 | 0 | 0 | 0 | 0.055085 | 0.048387 | 248 | 4 | 82 | 62 | 0.745763 | 0 | 0 | 0 | 0 | 0 | 0.669355 | 0.415323 | 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 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
1bbe67fe52f64d311f09d5c54770c02187be1903 | 38 | py | Python | anchorhub/validation/tests/__init__.py | samjabrahams/anchorhub | 5ade359b08297d4003a5f477389c01de9e634b54 | [
"Apache-2.0"
] | 9 | 2016-01-20T12:54:14.000Z | 2017-06-25T19:36:44.000Z | anchorhub/validation/tests/__init__.py | samjabrahams/anchorhub | 5ade359b08297d4003a5f477389c01de9e634b54 | [
"Apache-2.0"
] | null | null | null | anchorhub/validation/tests/__init__.py | samjabrahams/anchorhub | 5ade359b08297d4003a5f477389c01de9e634b54 | [
"Apache-2.0"
] | 3 | 2018-09-05T13:05:29.000Z | 2021-08-21T08:12:26.000Z | """
Tests for validation submodule
""" | 12.666667 | 30 | 0.710526 | 4 | 38 | 6.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131579 | 38 | 3 | 31 | 12.666667 | 0.818182 | 0.789474 | 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 |
1bcdce03f5e699d910dd686e0ea31fa20e2ce30b | 5,226 | py | Python | tests/test_knowledge_manager.py | deepshig/mastermind | 0517343ea8522d8e3981e5613abca5bb173c2de8 | [
"MIT"
] | 2 | 2021-01-02T13:02:16.000Z | 2022-01-06T01:59:01.000Z | tests/test_knowledge_manager.py | deepshig/mastermind | 0517343ea8522d8e3981e5613abca5bb173c2de8 | [
"MIT"
] | 1 | 2020-09-22T00:38:02.000Z | 2020-10-27T18:19:32.000Z | tests/test_knowledge_manager.py | deepshig/mastermind | 0517343ea8522d8e3981e5613abca5bb173c2de8 | [
"MIT"
] | null | null | null | import pytest
import sys
sys.path.append('../')
from knowledge_manager import KnowledgeManager, get_assignment # NOQA
def test_get_assignment():
input_code = [4, 5, 3, 2]
expected_assignment = {'1:green': True, '2:pink': True,
'3:red': True, '4:violet': True}
assert get_assig... | 31.672727 | 79 | 0.679104 | 706 | 5,226 | 4.719547 | 0.113314 | 0.176471 | 0.201681 | 0.210084 | 0.803121 | 0.666567 | 0.647359 | 0.633553 | 0.633553 | 0.62515 | 0 | 0.041994 | 0.220819 | 5,226 | 164 | 80 | 31.865854 | 0.776277 | 0.015882 | 0 | 0.619048 | 0 | 0 | 0.021956 | 0 | 0 | 0 | 0 | 0 | 0.238095 | 1 | 0.028571 | false | 0 | 0.028571 | 0 | 0.057143 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
59f07abb89df6365bfbb69bbcce3ae61b0e80be6 | 117 | py | Python | bootstrap.py | chrisguitarguy/Python-Crawler | 16655d97bfb73bb2abfe339b9f2200ed309f9ae5 | [
"0BSD"
] | 3 | 2015-01-27T07:15:11.000Z | 2019-11-06T01:56:58.000Z | bootstrap.py | chrisguitarguy/Python-Crawler | 16655d97bfb73bb2abfe339b9f2200ed309f9ae5 | [
"0BSD"
] | null | null | null | bootstrap.py | chrisguitarguy/Python-Crawler | 16655d97bfb73bb2abfe339b9f2200ed309f9ae5 | [
"0BSD"
] | null | null | null | from crawler import Main
import wx
if __name__ == '__main__':
app = wx.App(False)
Main()
app.MainLoop()
| 14.625 | 26 | 0.641026 | 16 | 117 | 4.1875 | 0.625 | 0.208955 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.239316 | 117 | 7 | 27 | 16.714286 | 0.752809 | 0 | 0 | 0 | 0 | 0 | 0.068376 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
9422ecf1be9d27292397bc7600cfbceb86a541f3 | 70 | py | Python | catalyst/rl/onpolicy/algorithms/__init__.py | sergeyshilin/catalyst | f4dfaac7bc3fe98b2a0a9cf0b4347b100750f82f | [
"Apache-2.0"
] | 3 | 2019-11-02T05:37:06.000Z | 2020-01-13T02:26:07.000Z | catalyst/rl/onpolicy/algorithms/__init__.py | sergeyshilin/catalyst | f4dfaac7bc3fe98b2a0a9cf0b4347b100750f82f | [
"Apache-2.0"
] | null | null | null | catalyst/rl/onpolicy/algorithms/__init__.py | sergeyshilin/catalyst | f4dfaac7bc3fe98b2a0a9cf0b4347b100750f82f | [
"Apache-2.0"
] | null | null | null | # flake8: noqa
from .reinforce import REINFORCE
from .ppo import PPO
| 14 | 32 | 0.771429 | 10 | 70 | 5.4 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017241 | 0.171429 | 70 | 4 | 33 | 17.5 | 0.913793 | 0.171429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
9426ca6f4f8e93109009ee26984c912519e6f429 | 80 | py | Python | django_comment_migrate/__init__.py | helloygou/django-comment-migrate | 1e700d97e0c5d9c1a07d84cebaa808d895679b27 | [
"MIT"
] | 23 | 2020-11-19T05:41:42.000Z | 2022-02-14T02:59:43.000Z | django_comment_migrate/__init__.py | 2429160671/django-comment-migrate | cb97874c9e1c218e4c78b54564c9ae4cca667182 | [
"MIT"
] | 9 | 2020-12-30T03:05:21.000Z | 2021-12-22T09:35:19.000Z | django_comment_migrate/__init__.py | 2429160671/django-comment-migrate | cb97874c9e1c218e4c78b54564c9ae4cca667182 | [
"MIT"
] | 10 | 2020-12-03T09:23:52.000Z | 2022-02-15T08:36:59.000Z | default_app_config = 'django_comment_migrate.apps.DjangoCommentMigrationConfig'
| 40 | 79 | 0.9 | 8 | 80 | 8.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0375 | 80 | 1 | 80 | 80 | 0.883117 | 0 | 0 | 0 | 0 | 0 | 0.7 | 0.7 | 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 |
942f14cd89c8e6a8b8753fc01d5ffe81ef2d5b6c | 651 | py | Python | pywick/meters/__init__.py | ashishpatel26/pywick | 1afffd1c21c2b188836d3599e802146182757bb5 | [
"MIT"
] | 2 | 2020-11-28T07:56:09.000Z | 2021-11-08T09:30:39.000Z | pywick/meters/__init__.py | ashishpatel26/pywick | 1afffd1c21c2b188836d3599e802146182757bb5 | [
"MIT"
] | null | null | null | pywick/meters/__init__.py | ashishpatel26/pywick | 1afffd1c21c2b188836d3599e802146182757bb5 | [
"MIT"
] | null | null | null | """
Meters are used to accumulate values over time or batch and generally provide some statistical measure of your process.
"""
from pywick.meters.averagemeter import AverageMeter
from pywick.meters.averagevaluemeter import AverageValueMeter
from pywick.meters.classerrormeter import ClassErrorMeter
from pywick.meters.... | 43.4 | 119 | 0.863287 | 79 | 651 | 7.113924 | 0.405063 | 0.177936 | 0.284698 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095238 | 651 | 14 | 120 | 46.5 | 0.95416 | 0.182796 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
946ad3f3d03c0f468d4888aa7c3c4d1496853bcf | 128 | py | Python | thundra/plugins/log/log_support.py | sturmianseq/thundra-agent-python | 4cee02d790eb7b8e4dea4e2e9dcd1f67533b1c56 | [
"Apache-2.0"
] | 22 | 2018-03-05T20:02:46.000Z | 2021-04-09T12:00:18.000Z | thundra/plugins/log/log_support.py | sturmianseq/thundra-agent-python | 4cee02d790eb7b8e4dea4e2e9dcd1f67533b1c56 | [
"Apache-2.0"
] | 13 | 2018-03-26T07:57:57.000Z | 2021-06-29T14:22:52.000Z | thundra/plugins/log/log_support.py | sturmianseq/thundra-agent-python | 4cee02d790eb7b8e4dea4e2e9dcd1f67533b1c56 | [
"Apache-2.0"
] | 3 | 2018-07-04T19:00:25.000Z | 2020-12-01T11:57:29.000Z | _sampler = None
def get_sampler():
return _sampler
def set_sampler(sampler):
global _sampler
_sampler = sampler
| 11.636364 | 25 | 0.703125 | 15 | 128 | 5.6 | 0.466667 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.234375 | 128 | 10 | 26 | 12.8 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.166667 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
946bde8080ad1f225c590ee7f77feb9733642101 | 244 | py | Python | src/controllers/categoriesController.py | TTIP-UNQ-Team6/gastapp_back | 0613aba610f765b55cb3bb10fec4d0d5f3685f88 | [
"MIT"
] | null | null | null | src/controllers/categoriesController.py | TTIP-UNQ-Team6/gastapp_back | 0613aba610f765b55cb3bb10fec4d0d5f3685f88 | [
"MIT"
] | null | null | null | src/controllers/categoriesController.py | TTIP-UNQ-Team6/gastapp_back | 0613aba610f765b55cb3bb10fec4d0d5f3685f88 | [
"MIT"
] | null | null | null | from model.category import expense_category, income_category
def get_all_for_expenses():
return [c.value for c in expense_category.ExpenseCategory]
def get_all_for_incomes():
return [c.value for c in income_category.IncomeCategory]
| 24.4 | 62 | 0.79918 | 36 | 244 | 5.138889 | 0.5 | 0.162162 | 0.097297 | 0.12973 | 0.194595 | 0.194595 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135246 | 244 | 9 | 63 | 27.111111 | 0.876777 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | true | 0 | 0.2 | 0.4 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
948bdc59af0f75aaa69c54313119872ac7830d30 | 8,197 | py | Python | src/blockchain/azext_blockchain/generated/_params.py | Mannan2812/azure-cli-extensions | e2b34efe23795f6db9c59100534a40f0813c3d95 | [
"MIT"
] | 207 | 2017-11-29T06:59:41.000Z | 2022-03-31T10:00:53.000Z | src/blockchain/azext_blockchain/generated/_params.py | Mannan2812/azure-cli-extensions | e2b34efe23795f6db9c59100534a40f0813c3d95 | [
"MIT"
] | 4,061 | 2017-10-27T23:19:56.000Z | 2022-03-31T23:18:30.000Z | src/blockchain/azext_blockchain/generated/_params.py | Mannan2812/azure-cli-extensions | e2b34efe23795f6db9c59100534a40f0813c3d95 | [
"MIT"
] | 802 | 2017-10-11T17:36:26.000Z | 2022-03-31T22:24:32.000Z | # --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incor... | 61.631579 | 120 | 0.704038 | 998 | 8,197 | 5.552104 | 0.131263 | 0.095831 | 0.095109 | 0.070565 | 0.788486 | 0.756001 | 0.719365 | 0.695181 | 0.654936 | 0.654936 | 0 | 0.000578 | 0.156399 | 8,197 | 132 | 121 | 62.098485 | 0.800723 | 0.06173 | 0 | 0.524752 | 0 | 0 | 0.388071 | 0.073187 | 0 | 0 | 0 | 0 | 0 | 1 | 0.009901 | false | 0.069307 | 0.039604 | 0 | 0.049505 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
84798dcbd7cb7516210e5ecf46008e7a69cab86b | 209 | py | Python | imagepy/core/engine/__init__.py | bigleftgo/imagepy | a3a30205ba99eb27884cea0ae4d54b60d4efa829 | [
"BSD-4-Clause"
] | 1 | 2020-05-26T08:25:33.000Z | 2020-05-26T08:25:33.000Z | imagepy/core/engine/__init__.py | bigleftgo/imagepy | a3a30205ba99eb27884cea0ae4d54b60d4efa829 | [
"BSD-4-Clause"
] | null | null | null | imagepy/core/engine/__init__.py | bigleftgo/imagepy | a3a30205ba99eb27884cea0ae4d54b60d4efa829 | [
"BSD-4-Clause"
] | null | null | null | from .filter import Filter
from .simple import Simple
from .free import Free
from .macros import Macros
from .mkdown import MkDown
from .widget import Widget
from .table import Table
from .report import Report | 26.125 | 26 | 0.813397 | 32 | 209 | 5.3125 | 0.3125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148325 | 209 | 8 | 27 | 26.125 | 0.955056 | 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 |
848781a1789a7950d85ceadcb6564757821520aa | 52 | py | Python | botx/clients/methods/__init__.py | ExpressApp/pybotx | 97c8b1ce5d45a05567ed01d545cb43174a2dcbb9 | [
"MIT"
] | 13 | 2021-01-21T12:43:10.000Z | 2022-03-23T11:11:59.000Z | botx/clients/methods/__init__.py | ExpressApp/pybotx | 97c8b1ce5d45a05567ed01d545cb43174a2dcbb9 | [
"MIT"
] | 259 | 2020-02-26T08:51:03.000Z | 2022-03-23T11:08:36.000Z | botx/clients/methods/__init__.py | ExpressApp/pybotx | 97c8b1ce5d45a05567ed01d545cb43174a2dcbb9 | [
"MIT"
] | 5 | 2019-12-02T16:19:22.000Z | 2021-11-22T20:33:34.000Z | """Definition for logic of requests to BotX API."""
| 26 | 51 | 0.711538 | 8 | 52 | 4.625 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 52 | 1 | 52 | 52 | 0.840909 | 0.865385 | 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 |
84945b0c760f0d314e6ec8c536dac5aeff1a1032 | 3,219 | py | Python | trial/sort/bubble.py | chaosannals/trial-python | 740b91fa4b1b1b9839b7524515995a6d417612ca | [
"MIT"
] | null | null | null | trial/sort/bubble.py | chaosannals/trial-python | 740b91fa4b1b1b9839b7524515995a6d417612ca | [
"MIT"
] | 8 | 2020-12-26T07:48:15.000Z | 2022-03-12T00:25:14.000Z | trial/sort/bubble.py | chaosannals/trial-python | 740b91fa4b1b1b9839b7524515995a6d417612ca | [
"MIT"
] | null | null | null | '''
冒泡排序及其变种鸡尾酒排序、快速排序
'''
import math
def bubble_sort_2(source):
'''
双循环结构冒泡排序
平均时间复杂度:O(n^2)
'''
target = source[:]
count = len(target)
for i in range(0, count):
for j in range(0, count - i - 1):
if target[j] > target[j + 1]:
tmp = target[j]
... | 23.844444 | 52 | 0.447655 | 372 | 3,219 | 3.846774 | 0.126344 | 0.205451 | 0.190776 | 0.205451 | 0.732355 | 0.672956 | 0.604472 | 0.579315 | 0.543676 | 0.518519 | 0 | 0.028444 | 0.442995 | 3,219 | 134 | 53 | 24.022388 | 0.76966 | 0.062131 | 0 | 0.731959 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051546 | false | 0 | 0.010309 | 0 | 0.113402 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
8499fee3b6e05705615a5b400b3c19e11b4abd83 | 286 | py | Python | common/urls.py | pingszi/mytools | 88b2f7871947e0b3408bd06e74e9b0efb9b67fd8 | [
"Apache-2.0"
] | 1 | 2019-05-21T09:07:28.000Z | 2019-05-21T09:07:28.000Z | common/urls.py | pingszi/mytools | 88b2f7871947e0b3408bd06e74e9b0efb9b67fd8 | [
"Apache-2.0"
] | null | null | null | common/urls.py | pingszi/mytools | 88b2f7871947e0b3408bd06e74e9b0efb9b67fd8 | [
"Apache-2.0"
] | null | null | null | from django.conf.urls import url
from django.conf import settings
from django.conf.urls.static import static
from .views import findall
urlpatterns = [
# 根据sql查询所有数据
url('findall', findall, name="findall"),
]+static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
| 20.428571 | 65 | 0.765734 | 38 | 286 | 5.684211 | 0.394737 | 0.138889 | 0.194444 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136364 | 286 | 13 | 66 | 22 | 0.874494 | 0.038462 | 0 | 0 | 0 | 0 | 0.051471 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.571429 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
84a124c6a1f80496ec7499e4b38c8d804fb14a96 | 1,305 | py | Python | data/migrations/0002_auto_20200630_1402.py | DavidWz0403/Challange | a9c9051ae92e80c6c7ed849fa968a54a7949bc35 | [
"MIT"
] | null | null | null | data/migrations/0002_auto_20200630_1402.py | DavidWz0403/Challange | a9c9051ae92e80c6c7ed849fa968a54a7949bc35 | [
"MIT"
] | null | null | null | data/migrations/0002_auto_20200630_1402.py | DavidWz0403/Challange | a9c9051ae92e80c6c7ed849fa968a54a7949bc35 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.7 on 2020-06-30 12:02
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('data', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='data',
name='inputAnswer1',
... | 29.659091 | 74 | 0.557088 | 123 | 1,305 | 5.804878 | 0.333333 | 0.168067 | 0.210084 | 0.243697 | 0.705882 | 0.705882 | 0.654062 | 0.654062 | 0.654062 | 0.588235 | 0 | 0.041249 | 0.312644 | 1,305 | 43 | 75 | 30.348837 | 0.754738 | 0.034483 | 0 | 0.648649 | 1 | 0 | 0.08903 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.027027 | 0 | 0.108108 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
170046e4c87d2c5175e8e2e69f583ff0f9f73bb4 | 196 | py | Python | allauth/socialaccount/apps.py | christopherpoland/django-allauth | df78274669a87f5c1a9147843b353353230d1940 | [
"MIT"
] | 2 | 2022-01-24T23:30:18.000Z | 2022-01-26T00:21:22.000Z | allauth/socialaccount/apps.py | christopherpoland/django-allauth | df78274669a87f5c1a9147843b353353230d1940 | [
"MIT"
] | 8 | 2021-04-08T21:58:27.000Z | 2022-03-12T00:44:58.000Z | allauth/socialaccount/apps.py | safwanrahman/django-allauth | dac31fdac2c13a97829e6879e09431c735abab4e | [
"MIT"
] | 3 | 2020-06-21T20:52:12.000Z | 2021-07-31T11:07:21.000Z | from django.apps import AppConfig
from allauth.compat import ugettext_lazy as _
class SocialAccountConfig(AppConfig):
name = 'allauth.socialaccount'
verbose_name = _('Social Accounts')
| 21.777778 | 45 | 0.77551 | 22 | 196 | 6.727273 | 0.772727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153061 | 196 | 8 | 46 | 24.5 | 0.891566 | 0 | 0 | 0 | 0 | 0 | 0.183673 | 0.107143 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
ca1b05a7b7f610cd5d0a10b99d9b1aed3734e3d0 | 179 | py | Python | py_deprecate/behaviors/base.py | multi-vac/py-deprecate | c56642f99f6871874aa2c84346c07bfe92dd7e93 | [
"MIT"
] | 7 | 2021-03-28T13:02:58.000Z | 2021-03-31T06:07:01.000Z | py_deprecate/behaviors/base.py | multi-vac/py_deprecate | c56642f99f6871874aa2c84346c07bfe92dd7e93 | [
"MIT"
] | null | null | null | py_deprecate/behaviors/base.py | multi-vac/py_deprecate | c56642f99f6871874aa2c84346c07bfe92dd7e93 | [
"MIT"
] | null | null | null | from abc import ABC
from typing import Callable
class BaseBehavior(ABC):
def execute(self, message: str, func: Callable, *args, **kwargs):
raise NotImplementedError
| 22.375 | 69 | 0.726257 | 22 | 179 | 5.909091 | 0.772727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.189944 | 179 | 7 | 70 | 25.571429 | 0.896552 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
047f3c01a992bffcb779d2bc88b7edf45dda734b | 27 | py | Python | custom_components/racelandshop/models/__init__.py | racelandshop/integration | 424057dcad30f20ed0276aec07d28b48b2b187be | [
"MIT"
] | null | null | null | custom_components/racelandshop/models/__init__.py | racelandshop/integration | 424057dcad30f20ed0276aec07d28b48b2b187be | [
"MIT"
] | null | null | null | custom_components/racelandshop/models/__init__.py | racelandshop/integration | 424057dcad30f20ed0276aec07d28b48b2b187be | [
"MIT"
] | null | null | null | """Racelandshop models."""
| 13.5 | 26 | 0.666667 | 2 | 27 | 9 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074074 | 27 | 1 | 27 | 27 | 0.72 | 0.740741 | 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 |
04819d23b05f7f633a716a680537d615207a9475 | 48 | py | Python | Python/Topics/Escape sequences/Find the length/main.py | drtierney/hyperskill-problems | b74da993f0ac7bcff1cbd5d89a3a1b06b05f33e0 | [
"MIT"
] | 5 | 2020-08-29T15:15:31.000Z | 2022-03-01T18:22:34.000Z | Python/Topics/Escape sequences/Find the length/main.py | drtierney/hyperskill-problems | b74da993f0ac7bcff1cbd5d89a3a1b06b05f33e0 | [
"MIT"
] | null | null | null | Python/Topics/Escape sequences/Find the length/main.py | drtierney/hyperskill-problems | b74da993f0ac7bcff1cbd5d89a3a1b06b05f33e0 | [
"MIT"
] | 1 | 2020-12-02T11:13:14.000Z | 2020-12-02T11:13:14.000Z | line = 'That is \n mine'
print(len(repr(line)))
| 16 | 24 | 0.645833 | 9 | 48 | 3.444444 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145833 | 48 | 2 | 25 | 24 | 0.756098 | 0 | 0 | 0 | 0 | 0 | 0.3125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
04a6123291141f334b0344adb9e8c1f3a5e7d2e8 | 93 | py | Python | test.py | JacobSanford/SupyGif | 17568a5a8e416e5e7f0161afb0f687e1c2c07939 | [
"MIT"
] | null | null | null | test.py | JacobSanford/SupyGif | 17568a5a8e416e5e7f0161afb0f687e1c2c07939 | [
"MIT"
] | null | null | null | test.py | JacobSanford/SupyGif | 17568a5a8e416e5e7f0161afb0f687e1c2c07939 | [
"MIT"
] | null | null | null | from supybot.test import *
class SupyGifTestCase(PluginTestCase):
plugins = ('SupyGif')
| 18.6 | 38 | 0.741935 | 9 | 93 | 7.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.150538 | 93 | 4 | 39 | 23.25 | 0.873418 | 0 | 0 | 0 | 0 | 0 | 0.075269 | 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 |
04c0ada49efd73a2f2bd690c84de204907845ff8 | 177 | py | Python | django/repos/forms.py | roy-n-roy/DockerHubUpdateNotifier | 7a27d7a8e8ee2cc2fe3a41602fbb1bedac369776 | [
"MIT"
] | null | null | null | django/repos/forms.py | roy-n-roy/DockerHubUpdateNotifier | 7a27d7a8e8ee2cc2fe3a41602fbb1bedac369776 | [
"MIT"
] | 32 | 2020-04-06T00:31:24.000Z | 2021-02-09T23:01:51.000Z | django/repos/forms.py | roy-n-roy/DockerHubUpdateNotifier | 7a27d7a8e8ee2cc2fe3a41602fbb1bedac369776 | [
"MIT"
] | null | null | null | from django.forms import ModelForm
from .models import Watching
class WatchingForm(ModelForm):
class Meta:
model = Watching
fields = ("repository_tag", )
| 17.7 | 37 | 0.689266 | 19 | 177 | 6.368421 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.237288 | 177 | 9 | 38 | 19.666667 | 0.896296 | 0 | 0 | 0 | 0 | 0 | 0.079096 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
04fc50f02ca6a7b20d0dfa3ba6cd7bc34f5d9a05 | 527 | py | Python | MudCommand.py | fhaynes/slithermud | f14da3d65cdc5187678e8e7cc05e56643a663c56 | [
"Artistic-1.0"
] | null | null | null | MudCommand.py | fhaynes/slithermud | f14da3d65cdc5187678e8e7cc05e56643a663c56 | [
"Artistic-1.0"
] | null | null | null | MudCommand.py | fhaynes/slithermud | f14da3d65cdc5187678e8e7cc05e56643a663c56 | [
"Artistic-1.0"
] | null | null | null | class MudCommand:
"""
This is the base class for all commands in the MUD.
"""
def __init__(self):
self.info = {}
self.info['cmdName'] = ''
self.info['helpText'] = ''
self.info['useExample'] = ''
def setType(self, type):
self.info['actiontype'] = ... | 25.095238 | 55 | 0.542694 | 56 | 527 | 5.035714 | 0.446429 | 0.22695 | 0.148936 | 0.191489 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.318786 | 527 | 21 | 56 | 25.095238 | 0.785515 | 0.096774 | 0 | 0 | 0 | 0 | 0.132743 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.357143 | false | 0 | 0 | 0.214286 | 0.642857 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
b6e5a7dacb15fc4a4f8132780664fc83c640e1bf | 55 | py | Python | lib/ns_jwt/ns_jwt/__init__.py | RENCI-NRIG/notary-service | 5d519d925d011004aefd6a4acdfc8565f5b76a94 | [
"MIT"
] | 8 | 2019-05-27T23:00:18.000Z | 2022-03-01T11:10:39.000Z | lib/ns_jwt/ns_jwt/__init__.py | RENCI-NRIG/notary-service | 5d519d925d011004aefd6a4acdfc8565f5b76a94 | [
"MIT"
] | 52 | 2018-10-12T18:59:43.000Z | 2022-03-28T21:16:35.000Z | lib/ns_jwt/ns_jwt/__init__.py | RENCI-NRIG/notary-service | 5d519d925d011004aefd6a4acdfc8565f5b76a94 | [
"MIT"
] | 1 | 2020-04-30T19:34:54.000Z | 2020-04-30T19:34:54.000Z | from .ns_jwt import NSJWT, NSJWTError
name = "ns_jwt"
| 13.75 | 37 | 0.745455 | 9 | 55 | 4.333333 | 0.777778 | 0.25641 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163636 | 55 | 3 | 38 | 18.333333 | 0.847826 | 0 | 0 | 0 | 0 | 0 | 0.109091 | 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 |
b6f1d3a8d8ee45d95aa0b2cdf57bad56a84cc8fb | 314 | py | Python | exercicios/03. modulos/019.py | augustolimads/Exercicios_Python | 2ea33e0a9ee2be1a75335fa1ac169f2654c73c4b | [
"Apache-2.0"
] | null | null | null | exercicios/03. modulos/019.py | augustolimads/Exercicios_Python | 2ea33e0a9ee2be1a75335fa1ac169f2654c73c4b | [
"Apache-2.0"
] | null | null | null | exercicios/03. modulos/019.py | augustolimads/Exercicios_Python | 2ea33e0a9ee2be1a75335fa1ac169f2654c73c4b | [
"Apache-2.0"
] | null | null | null | from random import choice
print('Sorteio de alunos')
a1 = input('Digite o nome do aluno 1:')
a2 = input('Digite o nome do aluno 2:')
a3 = input('Digite o nome do aluno 3:')
a4 = input('Digite o nome do aluno 4:')
lista = [a1,a2,a3,a4]
escolhido = choice(lista)
print('O aluno escolhido foi: {}'.format(escolhido))
| 31.4 | 52 | 0.691083 | 55 | 314 | 3.945455 | 0.472727 | 0.202765 | 0.221198 | 0.294931 | 0.423963 | 0.423963 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 0.159236 | 314 | 9 | 53 | 34.888889 | 0.776515 | 0 | 0 | 0 | 0 | 0 | 0.452229 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0.222222 | 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 |
8e167d14e0cdf1316296269fb4071e59194f2f23 | 16,969 | py | Python | napari/layers/utils/_tests/test_text_manager.py | jojoelfe/napari | b52a136dad392c091b0008c0b8d7fcc5ef460f66 | [
"BSD-3-Clause"
] | 7 | 2018-07-03T17:35:46.000Z | 2018-11-07T15:48:58.000Z | napari/layers/utils/_tests/test_text_manager.py | maweigert/napari | 48cdf4d1c4bcf6f76603e90b1c0c7498e2aba6c0 | [
"BSD-3-Clause"
] | 120 | 2018-09-04T22:05:13.000Z | 2019-03-02T01:13:57.000Z | napari/layers/utils/_tests/test_text_manager.py | maweigert/napari | 48cdf4d1c4bcf6f76603e90b1c0c7498e2aba6c0 | [
"BSD-3-Clause"
] | 8 | 2018-09-04T21:48:26.000Z | 2019-01-29T04:48:30.000Z | import numpy as np
import pandas as pd
import pytest
from pydantic import ValidationError
from napari.layers.utils.string_encoding import (
ConstantStringEncoding,
FormatStringEncoding,
ManualStringEncoding,
)
from napari.layers.utils.text_manager import TextManager
@pytest.mark.filterwarnings('ignore::D... | 31.021938 | 79 | 0.661206 | 2,143 | 16,969 | 5.013066 | 0.081195 | 0.141301 | 0.054454 | 0.065531 | 0.797729 | 0.780322 | 0.730708 | 0.70902 | 0.675417 | 0.643675 | 0 | 0.016679 | 0.187342 | 16,969 | 546 | 80 | 31.078755 | 0.762364 | 0.044905 | 0 | 0.514139 | 0 | 0 | 0.111221 | 0.025733 | 0 | 0 | 0 | 0 | 0.151671 | 1 | 0.089974 | false | 0 | 0.015424 | 0 | 0.105398 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
8e2394f4ef3e5327c0c98b3855ac0b706311847e | 23 | py | Python | poetry/__version__.py | zymergen-luke/poetry | 69a6bbe90630b4f1920dc6677771f92f05f564ac | [
"MIT"
] | null | null | null | poetry/__version__.py | zymergen-luke/poetry | 69a6bbe90630b4f1920dc6677771f92f05f564ac | [
"MIT"
] | null | null | null | poetry/__version__.py | zymergen-luke/poetry | 69a6bbe90630b4f1920dc6677771f92f05f564ac | [
"MIT"
] | null | null | null | __version__ = "0.12.6"
| 11.5 | 22 | 0.652174 | 4 | 23 | 2.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0.130435 | 23 | 1 | 23 | 23 | 0.35 | 0 | 0 | 0 | 0 | 0 | 0.26087 | 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 |
8e2f5a34df5d4eb84027ef871e95d17ab09ac582 | 829 | py | Python | tests/test_csv_data.py | soundmaking/sdfspu | 164af2602d07b18c45a8182cd5e9638628c7e165 | [
"MIT"
] | null | null | null | tests/test_csv_data.py | soundmaking/sdfspu | 164af2602d07b18c45a8182cd5e9638628c7e165 | [
"MIT"
] | null | null | null | tests/test_csv_data.py | soundmaking/sdfspu | 164af2602d07b18c45a8182cd5e9638628c7e165 | [
"MIT"
] | null | null | null | import pytest
import sdfspu.csv_data as cd
@pytest.fixture
def data():
return cd.DataObject()
def test_object_type(data):
assert isinstance(data, cd.DataObject)
def test_info_msg(data):
assert isinstance(data.info_msg(), str)
# TODO tests for DataObject methods
# def test_read_csv(data):
# asse... | 15.072727 | 44 | 0.717732 | 122 | 829 | 4.52459 | 0.360656 | 0.139493 | 0.177536 | 0.228261 | 0.315217 | 0.315217 | 0.152174 | 0 | 0 | 0 | 0 | 0 | 0.195416 | 829 | 54 | 45 | 15.351852 | 0.827586 | 0.633293 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018519 | 0.222222 | 1 | 0.333333 | false | 0 | 0.222222 | 0.111111 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
f3f61f66f5d380f8fe443e508fddefe37b713157 | 241 | py | Python | Python/StacksQueuesDeques/DequesFromPython.py | zumrudu-anka/DataStructures | d062c4074fad4ebef274826b704e9cb4dc82b8bb | [
"MIT"
] | 12 | 2019-07-18T11:32:02.000Z | 2021-09-30T18:10:49.000Z | Python/StacksQueuesDeques/DequesFromPython.py | zumrudu-anka/DataStructures | d062c4074fad4ebef274826b704e9cb4dc82b8bb | [
"MIT"
] | null | null | null | Python/StacksQueuesDeques/DequesFromPython.py | zumrudu-anka/DataStructures | d062c4074fad4ebef274826b704e9cb4dc82b8bb | [
"MIT"
] | 2 | 2019-07-31T20:59:20.000Z | 2021-09-30T18:10:50.000Z | from collections import deque
queue = deque(["data","ml","ai"])
print(queue)
queue.insert(0,"deep")
print(queue)
queue.insert(0,"learning")
print(queue)
queue.pop()
print(queue)
queue.popleft()
print(queue)
queue.append("ai")
print(queue)
| 15.0625 | 33 | 0.717842 | 36 | 241 | 4.805556 | 0.444444 | 0.346821 | 0.433526 | 0.242775 | 0.254335 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00905 | 0.082988 | 241 | 15 | 34 | 16.066667 | 0.773756 | 0 | 0 | 0.461538 | 0 | 0 | 0.091286 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.076923 | 0.461538 | 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 |
f3fb633e0bde556e3f2392839d1306d7c4c7e627 | 68 | py | Python | jupyter notebook/myscript/hello.py | xxcfun/learnMachineLearning | 5c93fca9073a85ba2829b01561ceca28cd43b196 | [
"Apache-2.0"
] | null | null | null | jupyter notebook/myscript/hello.py | xxcfun/learnMachineLearning | 5c93fca9073a85ba2829b01561ceca28cd43b196 | [
"Apache-2.0"
] | null | null | null | jupyter notebook/myscript/hello.py | xxcfun/learnMachineLearning | 5c93fca9073a85ba2829b01561ceca28cd43b196 | [
"Apache-2.0"
] | null | null | null | def hello(name):
print("hello", name, "!")
hello("xxcfun") | 13.6 | 30 | 0.544118 | 8 | 68 | 4.625 | 0.625 | 0.486486 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.220588 | 68 | 5 | 31 | 13.6 | 0.698113 | 0 | 0 | 0 | 0 | 0 | 0.184615 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
6d100a237757d2059cb7028173e0f5718375e4af | 158 | py | Python | minimatch/cli.py | spiralx/py-minimatch | 44ce8ed891d616d126e7e7c2a72a8953c4493029 | [
"MIT"
] | 1 | 2016-06-13T05:54:32.000Z | 2016-06-13T05:54:32.000Z | minimatch/cli.py | spiralx/py-minimatch | 44ce8ed891d616d126e7e7c2a72a8953c4493029 | [
"MIT"
] | null | null | null | minimatch/cli.py | spiralx/py-minimatch | 44ce8ed891d616d126e7e7c2a72a8953c4493029 | [
"MIT"
] | null | null | null | from __future__ import absolute_import, print_function
import sys
from .match import MiniMatch
def main():
print("Running! sys.argv:", str(sys.argv))
| 15.8 | 54 | 0.746835 | 22 | 158 | 5.090909 | 0.636364 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151899 | 158 | 9 | 55 | 17.555556 | 0.835821 | 0 | 0 | 0 | 0 | 0 | 0.113924 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0.6 | 0 | 0.8 | 0.4 | 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 |
6d2d7a34d46d1437a6e7e768d3e2962620b2dc62 | 177 | py | Python | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/core/djangoapps/django_comment_common/admin.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | 3 | 2021-12-15T04:58:18.000Z | 2022-02-06T12:15:37.000Z | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/core/djangoapps/django_comment_common/admin.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | null | null | null | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/core/djangoapps/django_comment_common/admin.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | 1 | 2019-01-02T14:38:50.000Z | 2019-01-02T14:38:50.000Z | """
Admin for managing the connection to the Forums backend service.
"""
from django.contrib import admin
from .models import ForumsConfig
admin.site.register(ForumsConfig)
| 16.090909 | 64 | 0.785311 | 23 | 177 | 6.043478 | 0.73913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141243 | 177 | 10 | 65 | 17.7 | 0.914474 | 0.361582 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
6d35a627659687b62cfe13076e986a1267fceda0 | 2,938 | py | Python | hermetrics/tests/test_metric.py | SoldAI/hermetrics | 5e07a4f40376779015ef2f5b964d7ac060ed6e25 | [
"MIT"
] | 3 | 2020-01-18T02:37:49.000Z | 2022-01-27T19:24:15.000Z | hermetrics/tests/test_metric.py | SoldAI/hermetrics | 5e07a4f40376779015ef2f5b964d7ac060ed6e25 | [
"MIT"
] | null | null | null | hermetrics/tests/test_metric.py | SoldAI/hermetrics | 5e07a4f40376779015ef2f5b964d7ac060ed6e25 | [
"MIT"
] | 2 | 2020-01-26T20:40:19.000Z | 2021-08-11T12:05:01.000Z | import unittest
from hermetrics.metric import Metric
class TestMetric(unittest.TestCase):
def test_distance(self):
"""
Test for distance function
"""
m = Metric()
self.assertEqual(m.distance("abc", "abc"), 0)
self.assertEqual(m.distance("abc", "def"), 1)
... | 35.829268 | 64 | 0.568754 | 361 | 2,938 | 4.534626 | 0.105263 | 0.348198 | 0.371411 | 0.145388 | 0.768479 | 0.739768 | 0.51741 | 0.358583 | 0.317043 | 0.280391 | 0 | 0.044516 | 0.258339 | 2,938 | 82 | 65 | 35.829268 | 0.706746 | 0.063649 | 0 | 0.109091 | 0 | 0 | 0.037505 | 0 | 0 | 0 | 0 | 0 | 0.690909 | 1 | 0.109091 | false | 0 | 0.036364 | 0 | 0.163636 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
6d3d9c73620ad5ced6e852e7ad4b1b53d33ef824 | 3,252 | py | Python | CircuitAnalysis/BuildTimes/binomial-10.py | isislovecruft/torflow | 666689ad18d358d764a35d041a7b16adb8d3287c | [
"BSD-3-Clause"
] | null | null | null | CircuitAnalysis/BuildTimes/binomial-10.py | isislovecruft/torflow | 666689ad18d358d764a35d041a7b16adb8d3287c | [
"BSD-3-Clause"
] | 1 | 2018-12-18T15:58:40.000Z | 2018-12-26T16:52:51.000Z | CircuitAnalysis/BuildTimes/binomial-10.py | isislovecruft/torflow | 666689ad18d358d764a35d041a7b16adb8d3287c | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python
#
# Uses the binomial distribution to estimate the expected number of
# circuit 10-circ groups before a false positive that discards all of our
# 10-circ groups for a few different parameters.
import math
def fact(n):
if n==1: return 1
return n*fact(n-1)
def choose(n, k): return fact(n)/(fact(... | 40.148148 | 77 | 0.702952 | 599 | 3,252 | 3.736227 | 0.130217 | 0.116175 | 0.160858 | 0.235925 | 0.790885 | 0.623324 | 0.623324 | 0.623324 | 0.623324 | 0.623324 | 0 | 0.093538 | 0.138684 | 3,252 | 80 | 78 | 40.65 | 0.705462 | 0.061808 | 0 | 0.421875 | 0 | 0 | 0.366382 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.015625 | null | null | 0.46875 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
6d444960ee9d5b40cc89256e7953f0ed682cb964 | 86 | py | Python | python/testData/inspections/PyUnresolvedReferencesInspection/UnusedImportBeforeStarDunderAll/a.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2018-12-29T09:53:39.000Z | 2018-12-29T09:53:42.000Z | python/testData/inspections/PyUnresolvedReferencesInspection/UnusedImportBeforeStarDunderAll/a.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/inspections/PyUnresolvedReferencesInspection/UnusedImportBeforeStarDunderAll/a.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 1 | 2018-10-03T12:35:06.000Z | 2018-10-03T12:35:06.000Z | import b
<warning descr="Unused import statement">from p1 import *</warning>
print(b)
| 21.5 | 67 | 0.755814 | 13 | 86 | 5 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013158 | 0.116279 | 86 | 3 | 68 | 28.666667 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0.267442 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.666667 | null | null | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
6d5112575e1d429527e5d1e154c2a87f69d2a6d1 | 133 | py | Python | ramsay/ramsay/settings/stage.py | cjswedes/real-wear | 7fc63d03578f58f29347dd1a01b6edefb82c282e | [
"MIT"
] | null | null | null | ramsay/ramsay/settings/stage.py | cjswedes/real-wear | 7fc63d03578f58f29347dd1a01b6edefb82c282e | [
"MIT"
] | 46 | 2019-04-03T23:42:54.000Z | 2022-01-13T01:10:27.000Z | ramsay/ramsay/settings/stage.py | cjswedes/real-wear | 7fc63d03578f58f29347dd1a01b6edefb82c282e | [
"MIT"
] | null | null | null | from .base import *
DEBUG = True
ALLOWED_HOSTS += ['ramsay-project-env.i5empc3jzg.us-east-2.elasticbeanstalk.com', 'localhost']
| 26.6 | 95 | 0.729323 | 17 | 133 | 5.647059 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025641 | 0.120301 | 133 | 4 | 96 | 33.25 | 0.794872 | 0 | 0 | 0 | 0 | 0 | 0.534884 | 0.465116 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
6d57c64969cedf485d87eef3a504fecc1b246ff5 | 116 | py | Python | mldm/__init__.py | huangjianqin/mldm | 65605e44cba632ce7726b8027166c9860cd8651e | [
"Apache-2.0"
] | null | null | null | mldm/__init__.py | huangjianqin/mldm | 65605e44cba632ce7726b8027166c9860cd8651e | [
"Apache-2.0"
] | null | null | null | mldm/__init__.py | huangjianqin/mldm | 65605e44cba632ce7726b8027166c9860cd8651e | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
# Created on 2019/4/18 12:35
# Project: mldm
# Author: huangjianqin | 23.2 | 29 | 0.655172 | 18 | 116 | 4.222222 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122449 | 0.155172 | 116 | 5 | 30 | 23.2 | 0.653061 | 0.922414 | 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 |
edcb0a0263375c916d57ecab06d91dd7f4e6d4d9 | 27 | py | Python | hindi_numbers_info/grammaticalDetails.py | gvvishwanath/numbers-to-words | 16e016a8b135bf1ba4791e2426ce9d40d3bfd8ad | [
"MIT"
] | 1 | 2020-07-03T08:03:28.000Z | 2020-07-03T08:03:28.000Z | hindi_numbers_info/grammaticalDetails.py | gvvishwanath/numbers-to-words | 16e016a8b135bf1ba4791e2426ce9d40d3bfd8ad | [
"MIT"
] | null | null | null | hindi_numbers_info/grammaticalDetails.py | gvvishwanath/numbers-to-words | 16e016a8b135bf1ba4791e2426ce9d40d3bfd8ad | [
"MIT"
] | null | null | null | minusSignWord = "rNaatmak"
| 13.5 | 26 | 0.777778 | 2 | 27 | 10.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 27 | 1 | 27 | 27 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0.296296 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
edcecc3b7341f254da718ff51aa5ba48e347d75a | 12,428 | py | Python | tests/service_pb2_grpc.py | hubo1016/aiogrpc | ad56fb7ca57c9e49b57aa4beabdbc5fdc219c502 | [
"Apache-2.0"
] | 116 | 2017-08-11T10:10:42.000Z | 2021-05-22T03:23:34.000Z | tests/service_pb2_grpc.py | hubo1016/aiogrpc | ad56fb7ca57c9e49b57aa4beabdbc5fdc219c502 | [
"Apache-2.0"
] | 14 | 2017-10-20T08:08:35.000Z | 2021-07-28T03:32:03.000Z | tests/service_pb2_grpc.py | hubo1016/aiogrpc | ad56fb7ca57c9e49b57aa4beabdbc5fdc219c502 | [
"Apache-2.0"
] | 12 | 2017-08-14T03:55:28.000Z | 2020-06-10T09:53:46.000Z | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc
import service_pb2 as service__pb2
class TestServiceStub(object):
"""Test service
"""
def __init__(self, channel):
"""Constructor.
Args:
channel: A grpc.Channel.
"""
self.Normal... | 41.565217 | 115 | 0.647087 | 1,000 | 12,428 | 7.755 | 0.1 | 0.064475 | 0.062282 | 0.059574 | 0.741973 | 0.738233 | 0.731528 | 0.696454 | 0.695938 | 0.695938 | 0 | 0.005582 | 0.279208 | 12,428 | 298 | 116 | 41.704698 | 0.860125 | 0.033312 | 0 | 0.67623 | 1 | 0 | 0.080909 | 0.040748 | 0 | 0 | 0 | 0 | 0 | 1 | 0.07377 | false | 0 | 0.008197 | 0.032787 | 0.127049 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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.