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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1b4abadb92c0f2ef727e12e1e324b952d7fc12e3 | 58 | py | Python | nanome/_internal/_volumetric/_serialization/__init__.py | devanshuDesai/nanome | aabb536ef498044e97bc97ed71af940358bf36f2 | [
"MIT"
] | null | null | null | nanome/_internal/_volumetric/_serialization/__init__.py | devanshuDesai/nanome | aabb536ef498044e97bc97ed71af940358bf36f2 | [
"MIT"
] | null | null | null | nanome/_internal/_volumetric/_serialization/__init__.py | devanshuDesai/nanome | aabb536ef498044e97bc97ed71af940358bf36f2 | [
"MIT"
] | null | null | null | from ._volume_data_serializer import _VolumeDataSerializer | 58 | 58 | 0.931034 | 6 | 58 | 8.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051724 | 58 | 1 | 58 | 58 | 0.909091 | 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 |
1b4e19fdbd41abe95c46c70a79df04f95407ffb2 | 32 | py | Python | python/testData/quickdoc/ParamOfLambda.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/quickdoc/ParamOfLambda.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/quickdoc/ParamOfLambda.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | func = lambda pa<the_ref>ram: 42 | 32 | 32 | 0.75 | 7 | 32 | 3.285714 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 0.125 | 32 | 1 | 32 | 32 | 0.75 | 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 |
1b64ad96d456941d6400b1cdd91ea332e64b9240 | 93 | py | Python | ATSAMD51P19A/libsrc/ATSAMD51P19A/SERCOM4_.py | t-ikegami/WioTerminal-CircuitPython | efbdc2e13ad969fe009d88f7ec4b836ca61ae973 | [
"MIT"
] | null | null | null | ATSAMD51P19A/libsrc/ATSAMD51P19A/SERCOM4_.py | t-ikegami/WioTerminal-CircuitPython | efbdc2e13ad969fe009d88f7ec4b836ca61ae973 | [
"MIT"
] | 1 | 2022-01-19T00:16:02.000Z | 2022-01-26T03:43:34.000Z | ATSAMD51P19A/libsrc/ATSAMD51P19A/SERCOM4_.py | t-ikegami/WioTerminal-CircuitPython | efbdc2e13ad969fe009d88f7ec4b836ca61ae973 | [
"MIT"
] | null | null | null | import uctypes as ct
from .SERCOM0_ import SERCOM_
SERCOM4 = ct.struct(0x43000000, SERCOM_)
| 18.6 | 40 | 0.795699 | 13 | 93 | 5.461538 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1375 | 0.139785 | 93 | 4 | 41 | 23.25 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107527 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
1b79baaef3a28af449391a9b4ab9ca45a463dbec | 3,147 | py | Python | saleor/accounts/models.py | glosoftgroup/glosoftgroup-django-pos | b489c402939b9ebabd164c449e7da38fe849d550 | [
"BSD-3-Clause"
] | 2 | 2017-07-11T12:40:59.000Z | 2017-10-18T18:02:46.000Z | saleor/accounts/models.py | glosoftgroup/glosoftgroup-django-pos | b489c402939b9ebabd164c449e7da38fe849d550 | [
"BSD-3-Clause"
] | 12 | 2017-06-19T07:20:41.000Z | 2022-03-15T19:03:33.000Z | saleor/accounts/models.py | glosoftgroup/Hardware | 002bc36b74b85fe3a40597eb8be91833dec017f5 | [
"BSD-3-Clause"
] | null | null | null | from __future__ import unicode_literals
from decimal import Decimal
from uuid import uuid4
from django.conf import settings
from django.core.exceptions import ObjectDoesNotExist
from django.core.urlresolvers import reverse
from django.core.validators import MaxValueValidator, MinValueValidator
from django.db... | 41.407895 | 87 | 0.780108 | 438 | 3,147 | 5.408676 | 0.194064 | 0.081047 | 0.115239 | 0.150697 | 0.720135 | 0.720135 | 0.667792 | 0.667792 | 0.667792 | 0.640777 | 0 | 0.02851 | 0.119479 | 3,147 | 76 | 88 | 41.407895 | 0.826416 | 0 | 0 | 0.548387 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.129032 | false | 0 | 0.241935 | 0.129032 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
1b8074f7c6d67658fd26cd4a36f66c2610f13f2e | 677 | py | Python | publication_backbone/models/base_category_model.py | Excentrics/publication-backbone | 65c9820308b09a6ae1086c265f8d49e36f3724b9 | [
"BSD-3-Clause"
] | 6 | 2016-05-19T14:59:51.000Z | 2020-03-19T10:08:29.000Z | publication_backbone/models/base_category_model.py | Excentrics/publication-backbone | 65c9820308b09a6ae1086c265f8d49e36f3724b9 | [
"BSD-3-Clause"
] | null | null | null | publication_backbone/models/base_category_model.py | Excentrics/publication-backbone | 65c9820308b09a6ae1086c265f8d49e36f3724b9 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
This overrides the Category with the class loaded from the
PUBLICATION_BACKBONE_BASE_CATEGORY_MODEL setting if it exists.
"""
from django.conf import settings
from publication_backbone.utils.loader import load_class
#=========================================================================... | 42.3125 | 90 | 0.635155 | 65 | 677 | 6.292308 | 0.476923 | 0.176039 | 0.207824 | 0.227384 | 0.352078 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001592 | 0.072378 | 677 | 15 | 91 | 45.133333 | 0.649682 | 0.463811 | 0 | 0 | 0 | 0 | 0.431818 | 0.431818 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
1b8892d7bce1f9de7234695c7e02879313a4d3df | 82 | py | Python | test/unit/Algorithms/InvasionPercolationTimedTest.py | thirtywang/OpenPNM | e55ee7ae69a8be3e2b0e6bf24c9ff92b6d24e16a | [
"MIT"
] | 1 | 2021-03-30T21:38:26.000Z | 2021-03-30T21:38:26.000Z | test/unit/Algorithms/InvasionPercolationTimedTest.py | thirtywang/OpenPNM | e55ee7ae69a8be3e2b0e6bf24c9ff92b6d24e16a | [
"MIT"
] | null | null | null | test/unit/Algorithms/InvasionPercolationTimedTest.py | thirtywang/OpenPNM | e55ee7ae69a8be3e2b0e6bf24c9ff92b6d24e16a | [
"MIT"
] | 1 | 2020-07-02T02:21:10.000Z | 2020-07-02T02:21:10.000Z | class InvasionPercolationTimedTest:
def test_setup_for_IP(self):
pass
| 20.5 | 35 | 0.743902 | 9 | 82 | 6.444444 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.207317 | 82 | 3 | 36 | 27.333333 | 0.892308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
941813a43336c40dfa30ddd5a6393edeff7cfbf7 | 257 | py | Python | softgroup/util/__init__.py | thangvubk/SoftGroup | 737123a7ee5a6b994c2ba82927677a800b87e242 | [
"MIT"
] | 75 | 2022-03-03T06:31:50.000Z | 2022-03-31T00:31:51.000Z | softgroup/util/__init__.py | thangvubk/SoftGroup | 737123a7ee5a6b994c2ba82927677a800b87e242 | [
"MIT"
] | 10 | 2022-03-05T12:10:47.000Z | 2022-03-31T14:24:03.000Z | softgroup/util/__init__.py | thangvubk/SoftGroup | 737123a7ee5a6b994c2ba82927677a800b87e242 | [
"MIT"
] | 5 | 2022-03-04T07:13:16.000Z | 2022-03-25T10:13:50.000Z | from .dist import collect_results_gpu, get_dist_info, init_dist, is_main_process
from .fp16 import force_fp32
from .logger import SummaryWriter, get_root_logger
from .optim import build_optimizer
from .rle import rle_decode, rle_encode
from .utils import *
| 36.714286 | 80 | 0.840467 | 41 | 257 | 4.95122 | 0.609756 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017544 | 0.11284 | 257 | 6 | 81 | 42.833333 | 0.872807 | 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 |
941ae16f2502b5dd4aeda741d87bde7de38c792a | 779 | py | Python | tests/tokenizers/test_polypeptide_truncation.py | cancervariants/variant-normalization | e89a9f8366a659c82b2042aeb7effe339851bfb4 | [
"MIT"
] | 1 | 2022-01-19T18:17:49.000Z | 2022-01-19T18:17:49.000Z | tests/tokenizers/test_polypeptide_truncation.py | cancervariants/variation-normalization | 9c8fbab1562591ae9445d82ddd15df29f1ea1f5a | [
"MIT"
] | 99 | 2021-06-07T12:50:34.000Z | 2022-03-23T13:38:29.000Z | tests/tokenizers/test_polypeptide_truncation.py | cancervariants/variant-normalization | e89a9f8366a659c82b2042aeb7effe339851bfb4 | [
"MIT"
] | null | null | null | """A module for testing Polypeptide Truncation tokenization."""
import unittest
from variation.tokenizers import PolypeptideTruncation
from .tokenizer_base import TokenizerBase
from variation.tokenizers.caches import AminoAcidCache
class TestPolypeptideTruncationTokenizer(TokenizerBase, unittest.TestCase):
"""A c... | 35.409091 | 75 | 0.756098 | 73 | 779 | 8 | 0.410959 | 0.215753 | 0.138699 | 0.106164 | 0.14726 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165597 | 779 | 21 | 76 | 37.095238 | 0.898462 | 0.319641 | 0 | 0 | 0 | 0 | 0.085317 | 0.085317 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.363636 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
945f86a27be108bc00b987264a229b50cd1e577b | 190 | py | Python | movement sim/run_formatter.py | Kataiser/radeline | da1fc490556b393623e0c8ced20cbcdb8de68229 | [
"MIT"
] | 3 | 2021-03-18T20:00:21.000Z | 2022-03-01T04:11:13.000Z | movement sim/run_formatter.py | Kataiser/radeline | da1fc490556b393623e0c8ced20cbcdb8de68229 | [
"MIT"
] | 1 | 2021-12-21T23:21:41.000Z | 2021-12-21T23:21:41.000Z | movement sim/run_formatter.py | Kataiser/radeline | da1fc490556b393623e0c8ced20cbcdb8de68229 | [
"MIT"
] | null | null | null | import os
import sys
sys.path.extend((os.path.abspath('..\\packages'), os.getcwd()))
import input_formatter
def main():
input_formatter.main()
if __name__ == '__main__':
main()
| 13.571429 | 63 | 0.673684 | 25 | 190 | 4.72 | 0.56 | 0.237288 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152632 | 190 | 13 | 64 | 14.615385 | 0.732919 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | true | 0 | 0.375 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
94608b572d9b90529338b24fd10b62f8aa8f0376 | 66 | py | Python | code/abc131_a_02.py | KoyanagiHitoshi/AtCoder | 731892543769b5df15254e1f32b756190378d292 | [
"MIT"
] | 3 | 2019-08-16T16:55:48.000Z | 2021-04-11T10:21:40.000Z | code/abc131_a_02.py | KoyanagiHitoshi/AtCoder | 731892543769b5df15254e1f32b756190378d292 | [
"MIT"
] | null | null | null | code/abc131_a_02.py | KoyanagiHitoshi/AtCoder | 731892543769b5df15254e1f32b756190378d292 | [
"MIT"
] | null | null | null | a,b,c,d=input()
print("Good" if a!=b and b!=c and c!=d else "Bad") | 33 | 50 | 0.590909 | 18 | 66 | 2.166667 | 0.611111 | 0.102564 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136364 | 66 | 2 | 50 | 33 | 0.684211 | 0 | 0 | 0 | 0 | 0 | 0.104478 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
94665a335ba44a449460bbdbcd05e587c09f46b2 | 810 | py | Python | albow/widgets/RadioButton.py | hasii2011/albow-python-3 | 04b9d42705b370b62f0e49d10274eebf3ac54bc1 | [
"MIT"
] | 6 | 2019-04-30T23:50:39.000Z | 2019-11-04T06:15:02.000Z | albow/widgets/RadioButton.py | hasii2011/albow-python-3 | 04b9d42705b370b62f0e49d10274eebf3ac54bc1 | [
"MIT"
] | 73 | 2019-05-12T18:43:14.000Z | 2021-04-13T19:19:03.000Z | albow/widgets/RadioButton.py | hasii2011/albow-python-3 | 04b9d42705b370b62f0e49d10274eebf3ac54bc1 | [
"MIT"
] | null | null | null |
from albow.widgets.CheckWidget import CheckWidget
from albow.widgets.RadioControl import RadioControl
class RadioButton(RadioControl, CheckWidget):
"""
RadioButton controls are intended to be used in a group to provide a multiple-choice selection. To achieve
this, all the radio buttons in the group shoul... | 45 | 115 | 0.764198 | 129 | 810 | 4.79845 | 0.620155 | 0.029079 | 0.051696 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.203704 | 810 | 17 | 116 | 47.647059 | 0.95969 | 0.751852 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.25 | 0.5 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 4 |
84b2e25e62e15303f79f765f4accf7f9a6b17ffc | 173 | py | Python | read.data.py | APriceDev/data-recorder | eb4c20ecd8c36efdcc96c76f0cc92bb80b1e8cba | [
"MIT"
] | 1 | 2021-02-11T23:57:15.000Z | 2021-02-11T23:57:15.000Z | read.data.py | APriceDev/data-recorder | eb4c20ecd8c36efdcc96c76f0cc92bb80b1e8cba | [
"MIT"
] | null | null | null | read.data.py | APriceDev/data-recorder | eb4c20ecd8c36efdcc96c76f0cc92bb80b1e8cba | [
"MIT"
] | null | null | null | import csv
with open('data/data.txt', 'r') as csv_file:
csv_reader = csv.reader(csv_file, delimiter=',')
for row in csv_reader:
print(f'{row[0]} {row[1]}')
| 24.714286 | 52 | 0.618497 | 29 | 173 | 3.551724 | 0.62069 | 0.262136 | 0.23301 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014388 | 0.196532 | 173 | 6 | 53 | 28.833333 | 0.726619 | 0 | 0 | 0 | 0 | 0 | 0.184971 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.2 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
84dc9282c2d39e6e936ed13a297aec76676fb454 | 252 | py | Python | src/commands/flow/__init__.py | PranjalPansuriya/JavaScriptEnhancements | 14af4162e86585153cbd4614ad96dff64a0d3192 | [
"MIT"
] | 690 | 2017-04-11T06:45:01.000Z | 2022-03-21T23:20:29.000Z | src/commands/flow/__init__.py | PranjalPansuriya/JavaScriptEnhancements | 14af4162e86585153cbd4614ad96dff64a0d3192 | [
"MIT"
] | 74 | 2017-11-22T18:05:26.000Z | 2021-05-05T16:25:31.000Z | src/commands/flow/__init__.py | PranjalPansuriya/JavaScriptEnhancements | 14af4162e86585153cbd4614ad96dff64a0d3192 | [
"MIT"
] | 42 | 2017-04-13T10:22:40.000Z | 2021-05-27T19:19:04.000Z | from .build_flow import JavascriptEnhancementsBuildFlowCommand
from .add_flow_definition import JavascriptEnhancementsAddFlowDefinitionCommand
__all__ = [
"JavascriptEnhancementsBuildFlowCommand",
"JavascriptEnhancementsAddFlowDefinitionCommand"
] | 36 | 79 | 0.888889 | 14 | 252 | 15.5 | 0.642857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 252 | 7 | 80 | 36 | 0.92735 | 0 | 0 | 0 | 0 | 0 | 0.332016 | 0.332016 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
84ece90458cf21fffc399dd93ff909d28e679e2e | 202 | py | Python | paths.py | eldstal/uware | 41c1e175b48e8b204eef3bf8ee810e0e599758a4 | [
"MIT"
] | null | null | null | paths.py | eldstal/uware | 41c1e175b48e8b204eef3bf8ee810e0e599758a4 | [
"MIT"
] | null | null | null | paths.py | eldstal/uware | 41c1e175b48e8b204eef3bf8ee810e0e599758a4 | [
"MIT"
] | null | null | null | import os
# Directories
ROOT=os.path.dirname(os.path.realpath(__file__))
REPOS=os.path.join(ROOT, "repos")
GAME_CONF=os.path.join(ROOT, "game_config.json")
SRC_CONF=os.path.join(ROOT, "sources.json")
| 22.444444 | 48 | 0.757426 | 34 | 202 | 4.294118 | 0.470588 | 0.205479 | 0.205479 | 0.287671 | 0.246575 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064356 | 202 | 8 | 49 | 25.25 | 0.772487 | 0.054455 | 0 | 0 | 0 | 0 | 0.174603 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 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 |
ca36e0e2bb971755983139312c728b75b54fb293 | 533 | py | Python | Session_08/jelly_beans.py | CristiPV/kea-pyton | 988e56cd5794711b59af104de4dc6f87ffc014f0 | [
"MIT"
] | null | null | null | Session_08/jelly_beans.py | CristiPV/kea-pyton | 988e56cd5794711b59af104de4dc6f87ffc014f0 | [
"MIT"
] | null | null | null | Session_08/jelly_beans.py | CristiPV/kea-pyton | 988e56cd5794711b59af104de4dc6f87ffc014f0 | [
"MIT"
] | null | null | null | class JellyBean:
def __init__( self, mass = 0 ):
self.mass = mass
def __add__( self, other ):
other_mass = other.mass
other.mass = 0
return JellyBean( self.mass + other_mass )
def __sub__( self, other ):
self_mass = self.mass
self.mass -= other.mass
def... | 20.5 | 50 | 0.570356 | 66 | 533 | 4.19697 | 0.30303 | 0.202166 | 0.187726 | 0.129964 | 0.144404 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011019 | 0.318949 | 533 | 26 | 51 | 20.5 | 0.752066 | 0 | 0 | 0 | 0 | 0 | 0.067416 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.263158 | false | 0 | 0 | 0.105263 | 0.473684 | 0.105263 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
ca3d799447390ba3467641c464e7215fb22d70bf | 145 | py | Python | logcabin/filters/__init__.py | srault95/logcabin | 27f0e589284923d49e9255494bb1e7c23da82ca2 | [
"Apache-2.0"
] | null | null | null | logcabin/filters/__init__.py | srault95/logcabin | 27f0e589284923d49e9255494bb1e7c23da82ca2 | [
"Apache-2.0"
] | null | null | null | logcabin/filters/__init__.py | srault95/logcabin | 27f0e589284923d49e9255494bb1e7c23da82ca2 | [
"Apache-2.0"
] | null | null | null | from .json import Json
from .mutate import Mutate
from .noop import Noop
from .regex import Regex
__all__ = ['Json', 'Mutate', 'Noop', 'Regex']
| 20.714286 | 45 | 0.717241 | 21 | 145 | 4.761905 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.158621 | 145 | 6 | 46 | 24.166667 | 0.819672 | 0 | 0 | 0 | 0 | 0 | 0.131034 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.8 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
ca6f0304961fa7e18360735d3be0434967a4734e | 74 | py | Python | smartanthill/test/__init__.py | smartanthill/smartanthill | 05e198bbbda1b64f4d59e5f64a55bdfa94f560f6 | [
"MIT"
] | 1 | 2015-01-15T19:02:44.000Z | 2015-01-15T19:02:44.000Z | smartanthill/test/__init__.py | smartanthill/smartanthill | 05e198bbbda1b64f4d59e5f64a55bdfa94f560f6 | [
"MIT"
] | 2 | 2015-08-18T13:29:57.000Z | 2015-08-18T13:30:08.000Z | smartanthill/test/__init__.py | smartanthill/smartanthill | 05e198bbbda1b64f4d59e5f64a55bdfa94f560f6 | [
"MIT"
] | 1 | 2015-01-15T19:02:46.000Z | 2015-01-15T19:02:46.000Z | # Copyright (C) Ivan Kravets <me@ikravets.com>
# See LICENSE for details.
| 24.666667 | 46 | 0.72973 | 11 | 74 | 4.909091 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148649 | 74 | 2 | 47 | 37 | 0.857143 | 0.932432 | 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 |
ca6f8aa45d378d328c0e3522ce63d5e4c3b3e45a | 17,807 | py | Python | opendebates/tests/test_vote.py | jessamynsmith/django-opendebates | bf4eb3a42a8caf3d31c5cc1c823b4abc853e6c9c | [
"Apache-2.0"
] | null | null | null | opendebates/tests/test_vote.py | jessamynsmith/django-opendebates | bf4eb3a42a8caf3d31c5cc1c823b4abc853e6c9c | [
"Apache-2.0"
] | 2 | 2018-08-24T04:02:58.000Z | 2018-08-24T04:09:14.000Z | opendebates/tests/test_vote.py | jessamynsmith/django-opendebates | bf4eb3a42a8caf3d31c5cc1c823b4abc853e6c9c | [
"Apache-2.0"
] | 1 | 2018-10-02T18:39:05.000Z | 2018-10-02T18:39:05.000Z | import datetime
import json
import os
from django.test import TestCase
from django.contrib.sites.models import Site
from django.test.utils import override_settings
from django.utils import timezone
from opendebates.models import Submission, Vote, Voter, ZipCode
from .factories import (UserFactory, SubmissionFactory, ... | 42.196682 | 96 | 0.635649 | 2,060 | 17,807 | 5.338835 | 0.112136 | 0.087289 | 0.060466 | 0.030915 | 0.768685 | 0.732224 | 0.705401 | 0.699127 | 0.677669 | 0.663848 | 0 | 0.013255 | 0.25855 | 17,807 | 421 | 97 | 42.296912 | 0.819738 | 0.103442 | 0 | 0.673529 | 0 | 0 | 0.141202 | 0.00609 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.061765 | false | 0.061765 | 0.029412 | 0 | 0.094118 | 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 |
ca738cd8c42f3e0909233598220148bb9db2db52 | 142 | py | Python | project/blog/views/home.py | samsonosiomwan/Devs-Prime-Api | 7b43078bb1f848f17f85e8bb94292d1b776eee92 | [
"MIT"
] | null | null | null | project/blog/views/home.py | samsonosiomwan/Devs-Prime-Api | 7b43078bb1f848f17f85e8bb94292d1b776eee92 | [
"MIT"
] | 1 | 2021-10-21T22:13:56.000Z | 2021-10-21T22:13:57.000Z | project/blog/views/home.py | Favourkass/Devsprime-api | 2414a2541efeb76b6a7ebb26c2d05a3bfead153c | [
"MIT"
] | null | null | null | from django.http import JsonResponse
def index(request):
message = 'Welcome to Blog App'
return JsonResponse(dict(message=message))
| 20.285714 | 46 | 0.746479 | 18 | 142 | 5.888889 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169014 | 142 | 6 | 47 | 23.666667 | 0.898305 | 0 | 0 | 0 | 0 | 0 | 0.133803 | 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 |
ca86c2a0c0b6bc55a15e24cf46d97709435c956c | 278 | py | Python | ABP.py | douglasscorrea/boku-player | 6095b2392a5294c45013f6d41ad153ff0a3e8fe9 | [
"Unlicense"
] | null | null | null | ABP.py | douglasscorrea/boku-player | 6095b2392a5294c45013f6d41ad153ff0a3e8fe9 | [
"Unlicense"
] | null | null | null | ABP.py | douglasscorrea/boku-player | 6095b2392a5294c45013f6d41ad153ff0a3e8fe9 | [
"Unlicense"
] | null | null | null | import math
class ABP():
def __init__(self):
self.alpha = -math.inf
self.beta = math.inf
def get_alpha(self):
return self.alpha
def get_beta(self):
return self.beta
def set_alpha(self, alpha):
self.beta = alpha
def set_beta(self, beta):
self.beta = beta | 15.444444 | 28 | 0.679856 | 45 | 278 | 4.022222 | 0.288889 | 0.220994 | 0.154696 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.201439 | 278 | 18 | 29 | 15.444444 | 0.815315 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.384615 | false | 0 | 0.076923 | 0.153846 | 0.692308 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
046b299e32c611ecf0368a8c4c7dbf4ccc253e2c | 72 | py | Python | code/agc020_a_01.py | KoyanagiHitoshi/AtCoder | 731892543769b5df15254e1f32b756190378d292 | [
"MIT"
] | 3 | 2019-08-16T16:55:48.000Z | 2021-04-11T10:21:40.000Z | code/agc020_a_01.py | KoyanagiHitoshi/AtCoder | 731892543769b5df15254e1f32b756190378d292 | [
"MIT"
] | null | null | null | code/agc020_a_01.py | KoyanagiHitoshi/AtCoder | 731892543769b5df15254e1f32b756190378d292 | [
"MIT"
] | null | null | null | N,A,B=map(int,input().split())
print("Alice" if (B-A)%2==0 else "Borys") | 36 | 41 | 0.611111 | 16 | 72 | 2.75 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029851 | 0.069444 | 72 | 2 | 41 | 36 | 0.626866 | 0 | 0 | 0 | 0 | 0 | 0.136986 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
048ee58dea1710fc54cce723316b07442e372ab8 | 278 | py | Python | projects/cats/2.py | AnthonyNg404/61A | 6b8fc656ef5438dc45e58d49b025bc653dda8655 | [
"Unlicense"
] | null | null | null | projects/cats/2.py | AnthonyNg404/61A | 6b8fc656ef5438dc45e58d49b025bc653dda8655 | [
"Unlicense"
] | null | null | null | projects/cats/2.py | AnthonyNg404/61A | 6b8fc656ef5438dc45e58d49b025bc653dda8655 | [
"Unlicense"
] | null | null | null | def word_time(word, elapsed_time):
return [word, elapsed_time]
p0 = [word_time('START', 0), word_time('What', 0.2), word_time('great', 0.4), word_time('luck', 0.8)]
p1 = [word_time('START', 0), word_time('What', 0.6), word_time('great', 0.8), word_time('luck', 1.19)]
p0
p1 | 39.714286 | 102 | 0.651079 | 52 | 278 | 3.269231 | 0.346154 | 0.423529 | 0.176471 | 0.164706 | 0.317647 | 0.317647 | 0.317647 | 0.317647 | 0 | 0 | 0 | 0.077236 | 0.115108 | 278 | 7 | 103 | 39.714286 | 0.613821 | 0 | 0 | 0 | 0 | 0 | 0.129032 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0.166667 | 0.333333 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
04924d41e8132c22f728688edf9880e9922106f2 | 4,073 | py | Python | conf/profile.py | filipecrespooficial/speech-switch | 3b8edf7a954e2b00508765e2a3da3ee38da7c572 | [
"MIT"
] | null | null | null | conf/profile.py | filipecrespooficial/speech-switch | 3b8edf7a954e2b00508765e2a3da3ee38da7c572 | [
"MIT"
] | 2 | 2021-04-30T21:06:38.000Z | 2021-06-02T01:21:16.000Z | conf/profile.py | filipecrespooficial/speech-switch | 3b8edf7a954e2b00508765e2a3da3ee38da7c572 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import configparser
import logging
logger = logging.getLogger('speech-server')
class Profile():
def __init__(self):
try:
self.cfg = configparser.ConfigParser()
self.cfg.read('./conf/config.ini')
self.voicesCpqd = self.c... | 27.52027 | 93 | 0.590719 | 465 | 4,073 | 5.090323 | 0.247312 | 0.08872 | 0.159696 | 0.041403 | 0.092522 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001023 | 0.280137 | 4,073 | 147 | 94 | 27.707483 | 0.806276 | 0.010312 | 0 | 0 | 0 | 0 | 0.099057 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.287129 | false | 0.069307 | 0.019802 | 0.267327 | 0.584158 | 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 |
04a0fd768bcb68b703efd7e123cfced2e3a4b106 | 151 | py | Python | src/psion/jose/__init__.py | revensky/psion | dfe38a1a4f4d6a5029d0973dbe1326415df6d512 | [
"MIT"
] | 2 | 2021-02-22T22:12:23.000Z | 2021-02-22T22:48:33.000Z | src/psion/jose/__init__.py | revensky/psion | dfe38a1a4f4d6a5029d0973dbe1326415df6d512 | [
"MIT"
] | null | null | null | src/psion/jose/__init__.py | revensky/psion | dfe38a1a4f4d6a5029d0973dbe1326415df6d512 | [
"MIT"
] | null | null | null | from .jwk import JsonWebKey, JsonWebKeySet
from .jws import JsonWebSignature, JsonWebSignatureHeader
from .jwt import JsonWebToken, JsonWebTokenClaims
| 37.75 | 57 | 0.860927 | 15 | 151 | 8.666667 | 0.733333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.099338 | 151 | 3 | 58 | 50.333333 | 0.955882 | 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 |
04a540a0c02e0126dcff8f82562f19ce0bff5dab | 2,304 | py | Python | Gathered CTF writeups/ptr-yudai-writeups/2019/ISITDTU_CTF_2019_Quals/easy_rsa2/solve.py | mihaid-b/CyberSakura | f60e6b6bfd6898c69b84424b080090ae98f8076c | [
"MIT"
] | 1 | 2022-03-27T06:00:41.000Z | 2022-03-27T06:00:41.000Z | Gathered CTF writeups/ptr-yudai-writeups/2019/ISITDTU_CTF_2019_Quals/easy_rsa2/solve.py | mihaid-b/CyberSakura | f60e6b6bfd6898c69b84424b080090ae98f8076c | [
"MIT"
] | null | null | null | Gathered CTF writeups/ptr-yudai-writeups/2019/ISITDTU_CTF_2019_Quals/easy_rsa2/solve.py | mihaid-b/CyberSakura | f60e6b6bfd6898c69b84424b080090ae98f8076c | [
"MIT"
] | 1 | 2022-03-27T06:01:42.000Z | 2022-03-27T06:01:42.000Z | import itertools
import math
import gmpy2
c = 843604364113586553130846885921019943144583106367481035190633167411582560584986204511540955430973286792645742834872919682759292110818377407041434325740961863107889654378215076108173237673550192041722978766321093617485400059413078535310271805433160609619213348153672440262969... | 82.285714 | 620 | 0.908854 | 89 | 2,304 | 23.52809 | 0.393258 | 0.013372 | 0.008596 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.860254 | 0.043403 | 2,304 | 27 | 621 | 85.333333 | 0.089837 | 0 | 0 | 0 | 0 | 0 | 0.012153 | 0 | 0 | 1 | 0 | 0 | 0.043478 | 1 | 0 | false | 0 | 0.130435 | 0 | 0.130435 | 0.217391 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
04c4dac54d53e92f161f259c7a26fcbfe3c9491c | 139 | py | Python | Modules/discord/__init__.py | TigerGraph-OSS/DashboardPython | a7b9a3ee7c7f968ece8541d473b09a37484cf31c | [
"MIT"
] | null | null | null | Modules/discord/__init__.py | TigerGraph-OSS/DashboardPython | a7b9a3ee7c7f968ece8541d473b09a37484cf31c | [
"MIT"
] | null | null | null | Modules/discord/__init__.py | TigerGraph-OSS/DashboardPython | a7b9a3ee7c7f968ece8541d473b09a37484cf31c | [
"MIT"
] | null | null | null | def conf():
return {
"id":"discord",
"description":"this is the discord c360 component",
"enabled":False,
} | 23.166667 | 59 | 0.532374 | 14 | 139 | 5.285714 | 0.928571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031579 | 0.316547 | 139 | 6 | 60 | 23.166667 | 0.747368 | 0 | 0 | 0 | 0 | 0 | 0.435714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | true | 0 | 0 | 0.166667 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
04ccb7b19ee44ac6f86710f71196a1fc7325bb7b | 3,219 | py | Python | bcbio/distributed/multitasks.py | matanhofree/bcbio-nextgen | e6938cedb20ff3b7632165105941d71189e46aac | [
"MIT"
] | 1 | 2015-04-08T17:43:39.000Z | 2015-04-08T17:43:39.000Z | bcbio/distributed/multitasks.py | matanhofree/bcbio-nextgen | e6938cedb20ff3b7632165105941d71189e46aac | [
"MIT"
] | null | null | null | bcbio/distributed/multitasks.py | matanhofree/bcbio-nextgen | e6938cedb20ff3b7632165105941d71189e46aac | [
"MIT"
] | null | null | null | """Multiprocessing ready entry points for sample analysis.
"""
from bcbio import structural, utils, chipseq
from bcbio.bam import callable
from bcbio.ngsalign import alignprep
from bcbio.pipeline import (disambiguate, lane, qcsummary, sample, shared, variation,
rnaseq)
from bcbio.variation i... | 24.022388 | 105 | 0.765144 | 445 | 3,219 | 5.27191 | 0.179775 | 0.105712 | 0.158568 | 0.19821 | 0.392157 | 0.26769 | 0.039642 | 0 | 0 | 0 | 0 | 0 | 0.128301 | 3,219 | 133 | 106 | 24.203008 | 0.836066 | 0.017086 | 0 | 0.31 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.31 | true | 0 | 0.05 | 0.31 | 0.67 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
04dc7ef162720695a2feab09ff9127138b618d24 | 1,067 | py | Python | WEEKS/CD_Sata-Structures/_RESOURCES/CODESIGNAL/sudoku2.py | webdevhub42/Lambda | b04b84fb5b82fe7c8b12680149e25ae0d27a0960 | [
"MIT"
] | null | null | null | WEEKS/CD_Sata-Structures/_RESOURCES/CODESIGNAL/sudoku2.py | webdevhub42/Lambda | b04b84fb5b82fe7c8b12680149e25ae0d27a0960 | [
"MIT"
] | null | null | null | WEEKS/CD_Sata-Structures/_RESOURCES/CODESIGNAL/sudoku2.py | webdevhub42/Lambda | b04b84fb5b82fe7c8b12680149e25ae0d27a0960 | [
"MIT"
] | null | null | null | def sudoku2(grid):
seen = set()
# Iterate through grid
for i in range(len(grid)):
for j in range(len(grid[i])):
current_value = grid[i][j]
if current_value != ".":
if (
(current_value + " found in row " + str(i)) in seen
... | 34.419355 | 77 | 0.341143 | 98 | 1,067 | 3.632653 | 0.27551 | 0.269663 | 0.286517 | 0.320225 | 0.615169 | 0.615169 | 0.55618 | 0.202247 | 0.202247 | 0.202247 | 0 | 0.010638 | 0.559513 | 1,067 | 30 | 78 | 35.566667 | 0.746809 | 0.018744 | 0 | 0.344828 | 0 | 0 | 0.096651 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0 | 0 | 0.103448 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
04e391f57ea88658d0c96e09c8eea260bbff11c9 | 50 | py | Python | SC_CODE/jewelry_supply_chain/test.py | Flyincry/cbit-fabricflow | 93e82c5abebcbef11b4df6231509a05467a89b4d | [
"MIT"
] | null | null | null | SC_CODE/jewelry_supply_chain/test.py | Flyincry/cbit-fabricflow | 93e82c5abebcbef11b4df6231509a05467a89b4d | [
"MIT"
] | null | null | null | SC_CODE/jewelry_supply_chain/test.py | Flyincry/cbit-fabricflow | 93e82c5abebcbef11b4df6231509a05467a89b4d | [
"MIT"
] | null | null | null | # Please hold file in 'airflow_home/airflow/dags'
| 25 | 49 | 0.78 | 8 | 50 | 4.75 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12 | 50 | 1 | 50 | 50 | 0.863636 | 0.94 | 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 |
04eca5f551d1af624b1cecc6ff51432a81ae59bc | 7,806 | py | Python | tests/test_tasks_send_report_summary.py | alexanderad/pony-standup-bot | 7ded6b0b6a7c4728bd43afda31375c0d0b5727ca | [
"MIT"
] | 13 | 2016-12-07T08:36:59.000Z | 2021-08-07T08:36:21.000Z | tests/test_tasks_send_report_summary.py | alexanderad/pony-standup-bot | 7ded6b0b6a7c4728bd43afda31375c0d0b5727ca | [
"MIT"
] | 5 | 2016-12-07T19:23:49.000Z | 2018-08-01T12:31:40.000Z | tests/test_tasks_send_report_summary.py | alexanderad/pony-standup-bot | 7ded6b0b6a7c4728bd43afda31375c0d0b5727ca | [
"MIT"
] | 5 | 2018-04-05T20:16:15.000Z | 2022-03-08T15:55:30.000Z | from __future__ import absolute_import
from datetime import datetime
from flexmock import flexmock
import pony.tasks
from tests.test_base import BaseTest
class SendReportSummaryTest(BaseTest):
def setUp(self):
super(SendReportSummaryTest, self).setUp()
self.bot.storage.set('report', {})
... | 33.502146 | 76 | 0.520241 | 743 | 7,806 | 5.179004 | 0.149394 | 0.049116 | 0.057173 | 0.077963 | 0.793139 | 0.767672 | 0.753378 | 0.742204 | 0.691788 | 0.650468 | 0 | 0.003348 | 0.349603 | 7,806 | 232 | 77 | 33.646552 | 0.754579 | 0 | 0 | 0.622449 | 0 | 0 | 0.15424 | 0.008455 | 0 | 0 | 0 | 0 | 0.153061 | 1 | 0.056122 | false | 0 | 0.02551 | 0 | 0.086735 | 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 |
04f8642e4f15e8251374b8a6dce3f164effdc606 | 149 | py | Python | src/noos_tf/__init__.py | noosenergy/terraform-client | 0cc096248117652ec549086182a54e624b6dccf5 | [
"MIT"
] | null | null | null | src/noos_tf/__init__.py | noosenergy/terraform-client | 0cc096248117652ec549086182a54e624b6dccf5 | [
"MIT"
] | null | null | null | src/noos_tf/__init__.py | noosenergy/terraform-client | 0cc096248117652ec549086182a54e624b6dccf5 | [
"MIT"
] | null | null | null | """A Python client wrapping up HashiCorp's Terraform Cloud API."""
from .api import * # noqa
from .client import * # noqa
__version__ = "0.0.6"
| 18.625 | 66 | 0.677852 | 22 | 149 | 4.409091 | 0.727273 | 0.206186 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025 | 0.194631 | 149 | 7 | 67 | 21.285714 | 0.783333 | 0.47651 | 0 | 0 | 0 | 0 | 0.070423 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
b6db792ce5d7f55d67a546984ec055fa16a93aa1 | 87 | py | Python | ctrack/apps.py | dmkent/cattrack | 2387f72d7a384638731a70b377826562f4f22a31 | [
"MIT"
] | null | null | null | ctrack/apps.py | dmkent/cattrack | 2387f72d7a384638731a70b377826562f4f22a31 | [
"MIT"
] | 11 | 2019-10-06T10:48:19.000Z | 2022-02-10T08:25:05.000Z | ctrack/apps.py | dmkent/cattrack | 2387f72d7a384638731a70b377826562f4f22a31 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class CtrackConfig(AppConfig):
name = 'ctrack'
| 14.5 | 33 | 0.747126 | 10 | 87 | 6.5 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172414 | 87 | 5 | 34 | 17.4 | 0.902778 | 0 | 0 | 0 | 0 | 0 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
8e2b11141178006ba17c3befa3b910d4e1e65644 | 174 | py | Python | tests/test_locales.py | hoefling/mimesis | 1960e95609f571ca1b8bbf70465b0df4ce2b9251 | [
"MIT"
] | null | null | null | tests/test_locales.py | hoefling/mimesis | 1960e95609f571ca1b8bbf70465b0df4ce2b9251 | [
"MIT"
] | null | null | null | tests/test_locales.py | hoefling/mimesis | 1960e95609f571ca1b8bbf70465b0df4ce2b9251 | [
"MIT"
] | null | null | null | from mimesis.locales import Locale
def test_locales_count():
assert len(list(Locale)) == 34
def test_locale_in():
assert "ru" in Locale
assert "en" in Locale
| 15.818182 | 34 | 0.695402 | 26 | 174 | 4.5 | 0.576923 | 0.119658 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014493 | 0.206897 | 174 | 10 | 35 | 17.4 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0.022989 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.333333 | true | 0 | 0.166667 | 0 | 0.5 | 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 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
8e2de4deea4da48a7426260cbf744b63571959f1 | 294 | py | Python | tf_learnings/const_run_eval.py | kdbanman/bean_pole_net | 425607a250b059164b1de885a03cf57785cb39cd | [
"Apache-2.0"
] | null | null | null | tf_learnings/const_run_eval.py | kdbanman/bean_pole_net | 425607a250b059164b1de885a03cf57785cb39cd | [
"Apache-2.0"
] | null | null | null | tf_learnings/const_run_eval.py | kdbanman/bean_pole_net | 425607a250b059164b1de885a03cf57785cb39cd | [
"Apache-2.0"
] | null | null | null | import tensorflow as tf
x = tf.constant(3.0)
y = tf.constant(2.0)
z = tf.constant(5.0)
h = x + y
g = h * z
with tf.Session() as sess:
print(sess.run(x)) # 3
print(sess.run(h)) # 5
print(h.eval()) # 5
print(sess.run(g)) # 25
print(sess.run([g, h])) # 25, 5
| 18.375 | 36 | 0.527211 | 56 | 294 | 2.767857 | 0.375 | 0.232258 | 0.309677 | 0.167742 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066038 | 0.278912 | 294 | 15 | 37 | 19.6 | 0.665094 | 0.047619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 0.416667 | 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 |
6d1684cdd57fa9572502df97d30a1a6d84d6abce | 65 | py | Python | browse/models.py | machinalis/django-srd20 | 00c969cbe9353128e681c308bdc6810dfbd46b70 | [
"BSD-3-Clause"
] | 16 | 2015-04-12T00:57:49.000Z | 2018-07-24T16:06:55.000Z | browse/models.py | machinalis/django-srd20 | 00c969cbe9353128e681c308bdc6810dfbd46b70 | [
"BSD-3-Clause"
] | null | null | null | browse/models.py | machinalis/django-srd20 | 00c969cbe9353128e681c308bdc6810dfbd46b70 | [
"BSD-3-Clause"
] | 5 | 2015-07-04T14:39:00.000Z | 2018-07-24T16:06:57.000Z | # Added this file because django won't let me run tests otherwise | 65 | 65 | 0.8 | 12 | 65 | 4.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169231 | 65 | 1 | 65 | 65 | 0.962963 | 0.969231 | 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 |
6d32067d89f70219f4dcdf3d7aef1a24f2772e3b | 18 | py | Python | simple_youtube_video_commenter/version.py | Koldar/simple-youtube-video-commenter | 331664a0af003f3fe14f8cfb264f91318f2f03b6 | [
"MIT"
] | null | null | null | simple_youtube_video_commenter/version.py | Koldar/simple-youtube-video-commenter | 331664a0af003f3fe14f8cfb264f91318f2f03b6 | [
"MIT"
] | null | null | null | simple_youtube_video_commenter/version.py | Koldar/simple-youtube-video-commenter | 331664a0af003f3fe14f8cfb264f91318f2f03b6 | [
"MIT"
] | null | null | null | VERSION = "1.2.6"
| 9 | 17 | 0.555556 | 4 | 18 | 2.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0.166667 | 18 | 1 | 18 | 18 | 0.466667 | 0 | 0 | 0 | 0 | 0 | 0.277778 | 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 |
6d65d0e60aed2a99b9c4bf18250b96844debe9d7 | 1,557 | py | Python | pymfa/tokens/totp.py | tniah/pymfa | 5c2af3ab937a3d288a31bc329842ab138c320674 | [
"Apache-2.0"
] | null | null | null | pymfa/tokens/totp.py | tniah/pymfa | 5c2af3ab937a3d288a31bc329842ab138c320674 | [
"Apache-2.0"
] | null | null | null | pymfa/tokens/totp.py | tniah/pymfa | 5c2af3ab937a3d288a31bc329842ab138c320674 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
pymfa.tokens.totp
~~~~~~~~~~~~~~
"""
from pymfa.tokens.token_class import TokenClass
from passlib import totp
class TOTPToken(TokenClass):
"""The Time-based One-Time Password (TOTP) class."""
_hash_algorithm = 'sha1'
_digits = 6
_time_period = 30
_time_window = 30
... | 25.52459 | 58 | 0.598587 | 191 | 1,557 | 4.565445 | 0.314136 | 0.072248 | 0.068807 | 0.091743 | 0.264908 | 0.22133 | 0.108945 | 0.075688 | 0 | 0 | 0 | 0.006358 | 0.292871 | 1,557 | 60 | 59 | 25.95 | 0.785649 | 0.121387 | 0 | 0.189189 | 0 | 0 | 0.079027 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.216216 | false | 0.081081 | 0.054054 | 0.135135 | 0.540541 | 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 |
edaa4ee8f437f3794dd82a8570983945dda9baf1 | 56 | py | Python | ndg_oauth_server/ndg/oauth/server/templates/__init__.py | cedadev/ndg_oauth | 83f2525bac3d739d1a61817ce3071c491b587793 | [
"BSD-3-Clause"
] | 2 | 2015-09-24T21:08:58.000Z | 2016-10-20T02:34:45.000Z | ndg_oauth_server/ndg/oauth/server/templates/__init__.py | cedadev/ndg_oauth | 83f2525bac3d739d1a61817ce3071c491b587793 | [
"BSD-3-Clause"
] | null | null | null | ndg_oauth_server/ndg/oauth/server/templates/__init__.py | cedadev/ndg_oauth | 83f2525bac3d739d1a61817ce3071c491b587793 | [
"BSD-3-Clause"
] | 1 | 2015-01-06T13:26:55.000Z | 2015-01-06T13:26:55.000Z | '''
Created on Aug 30, 2012
@author: philipkershaw
'''
| 9.333333 | 23 | 0.660714 | 7 | 56 | 5.285714 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 0.178571 | 56 | 5 | 24 | 11.2 | 0.673913 | 0.839286 | 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 |
edb208f18c5c2f41fe83623d5e758ada312f4c55 | 900 | py | Python | part_1/cython_solution/test_order.py | jessmorecroft/Exchange | 7b190b22304c6381db22b7722f0ce4518de3df2c | [
"MIT"
] | 3 | 2020-06-24T20:10:25.000Z | 2021-06-09T21:43:06.000Z | part_1/cython_solution/test_order.py | jessmorecroft/Exchange | 7b190b22304c6381db22b7722f0ce4518de3df2c | [
"MIT"
] | 9 | 2019-06-15T20:01:48.000Z | 2020-06-05T03:40:29.000Z | part_1/cython_solution/test_order.py | jessmorecroft/Exchange | 7b190b22304c6381db22b7722f0ce4518de3df2c | [
"MIT"
] | 8 | 2017-06-15T02:09:23.000Z | 2021-01-11T10:11:38.000Z | #! /usr/bin/env python
import unittest
import Exchange
class TestOrder(unittest.TestCase):
def test_create(self):
o = Exchange.Order("A:AUDUSD:100:1.47\n")
self.assertEqual(o.qty, 100)
self.assertEqual(o.instrument, "AUDUSD")
self.assertEqual(o.id, "A")
self.assertEqual(o.p... | 31.034483 | 55 | 0.616667 | 124 | 900 | 4.379032 | 0.298387 | 0.276243 | 0.294659 | 0.14733 | 0.664825 | 0.664825 | 0.664825 | 0.664825 | 0.664825 | 0.607735 | 0 | 0.054441 | 0.224444 | 900 | 29 | 56 | 31.034483 | 0.723496 | 0.023333 | 0 | 0.434783 | 0 | 0 | 0.117179 | 0 | 0 | 0 | 0 | 0 | 0.478261 | 1 | 0.130435 | false | 0 | 0.086957 | 0 | 0.26087 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
edb3e90c1d88fa3bf48af35989b297403e904593 | 124 | py | Python | housing/api/paginations.py | Unous1996/Pikachu-Housing | acd1f06ddc3b0e5b300ccd5b500e0c2bad5cd1af | [
"Apache-2.0"
] | 1 | 2019-03-23T18:49:31.000Z | 2019-03-23T18:49:31.000Z | housing/api/paginations.py | DeepinSC/Pikachu-Housing | 453201e19812e356106c071bbf9a306931d14fa7 | [
"Apache-2.0"
] | null | null | null | housing/api/paginations.py | DeepinSC/Pikachu-Housing | 453201e19812e356106c071bbf9a306931d14fa7 | [
"Apache-2.0"
] | 1 | 2019-04-24T06:40:49.000Z | 2019-04-24T06:40:49.000Z | from rest_framework.pagination import PageNumberPagination
class HousePagination(PageNumberPagination):
page_size = 10 | 24.8 | 58 | 0.846774 | 12 | 124 | 8.583333 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018182 | 0.112903 | 124 | 5 | 59 | 24.8 | 0.918182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
edb58bac222e2c6fa77e8ad698503cda81e6a2c6 | 378 | py | Python | src/fastapi/src/di/__init__.py | ojos/python-devenv | 23df63ae585386e378da6c45ba6bc26686b931a1 | [
"MIT"
] | null | null | null | src/fastapi/src/di/__init__.py | ojos/python-devenv | 23df63ae585386e378da6c45ba6bc26686b931a1 | [
"MIT"
] | null | null | null | src/fastapi/src/di/__init__.py | ojos/python-devenv | 23df63ae585386e378da6c45ba6bc26686b931a1 | [
"MIT"
] | null | null | null | from .forcast import PostForcastInteractorFactory
from .prize import GetPrizeInteractorFactory
from .rdb import RdbCommandFactory
from .user import CreateUserInteractorFactory, GetUserInteractorFactory
__all__ = [
"PostForcastInteractorFactory",
"GetPrizeInteractorFactory",
"RdbCommandFactory",
"Create... | 29.076923 | 71 | 0.814815 | 23 | 378 | 13.217391 | 0.521739 | 0.335526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.124339 | 378 | 12 | 72 | 31.5 | 0.918429 | 0 | 0 | 0 | 0 | 0 | 0.320106 | 0.275132 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 0 | 0.363636 | 0 | 1 | 0 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
edb78b9cb046295bd64685e003a5e9be134c9ef7 | 15 | py | Python | config/log.py | ipseityperse/app_framework | 71a78439eada92fdbcfac9f62a8f2cea939068c8 | [
"MIT"
] | null | null | null | config/log.py | ipseityperse/app_framework | 71a78439eada92fdbcfac9f62a8f2cea939068c8 | [
"MIT"
] | null | null | null | config/log.py | ipseityperse/app_framework | 71a78439eada92fdbcfac9f62a8f2cea939068c8 | [
"MIT"
] | null | null | null | class log:
| 7.5 | 10 | 0.533333 | 2 | 15 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.4 | 15 | 2 | 11 | 7.5 | 0.888889 | 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 |
ede59ada1132a73c9d2c03068978ee159cb8b218 | 189 | py | Python | docs_src/behind_a_proxy/tutorial001.py | Aryabhata-Rootspring/fastapi | f6237ad05a8468ac19c591181adad38d75372c46 | [
"MIT"
] | 53,007 | 2018-12-08T10:05:29.000Z | 2022-03-31T23:30:02.000Z | docs_src/behind_a_proxy/tutorial001.py | Aryabhata-Rootspring/fastapi | f6237ad05a8468ac19c591181adad38d75372c46 | [
"MIT"
] | 4,155 | 2019-01-05T05:07:49.000Z | 2022-03-31T21:25:38.000Z | docs_src/behind_a_proxy/tutorial001.py | Aryabhata-Rootspring/fastapi | f6237ad05a8468ac19c591181adad38d75372c46 | [
"MIT"
] | 4,092 | 2018-12-09T16:21:00.000Z | 2022-03-31T07:59:45.000Z | from fastapi import FastAPI, Request
app = FastAPI()
@app.get("/app")
def read_main(request: Request):
return {"message": "Hello World", "root_path": request.scope.get("root_path")}
| 21 | 82 | 0.698413 | 26 | 189 | 4.961538 | 0.615385 | 0.124031 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.132275 | 189 | 8 | 83 | 23.625 | 0.786585 | 0 | 0 | 0 | 0 | 0 | 0.21164 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.2 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
ede89de2a05e6e2038d6c76e73c176882bd9bcd8 | 70,374 | py | Python | django/tests/regressiontests/forms/localflavor.py | jonaustin/advisoryscan | ba452c155f0d478450e0c91de5ea00f404e98616 | [
"MIT"
] | null | null | null | django/tests/regressiontests/forms/localflavor.py | jonaustin/advisoryscan | ba452c155f0d478450e0c91de5ea00f404e98616 | [
"MIT"
] | null | null | null | django/tests/regressiontests/forms/localflavor.py | jonaustin/advisoryscan | ba452c155f0d478450e0c91de5ea00f404e98616 | [
"MIT"
] | 1 | 2018-12-06T12:50:52.000Z | 2018-12-06T12:50:52.000Z | # -*- coding: utf-8 -*-
# Tests for the different contrib/localflavor/ form fields.
localflavor_tests = r"""
# USZipCodeField ##############################################################
USZipCodeField validates that the data is either a five-digit U.S. zip code or
a zip+4.
>>> from django.contrib.localflavor.us.fo... | 51.745588 | 18,626 | 0.700159 | 10,053 | 70,374 | 4.900627 | 0.178952 | 0.195145 | 0.158811 | 0.236025 | 0.439898 | 0.369037 | 0.327122 | 0.28273 | 0.274002 | 0.261742 | 0 | 0.070205 | 0.073593 | 70,374 | 1,359 | 18,627 | 51.783664 | 0.685467 | 0.001123 | 0 | 0.605096 | 0 | 0.011147 | 0.999559 | 0.519746 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.001592 | 0.029459 | 0 | 0.029459 | 0.003185 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
edfadbb93fd7c46f5b5595b63ddb7352a389fda4 | 696 | py | Python | tests/test_user.py | dancan-sandys/pitch_project | f039ecebfaab0f7fd67e4c35dabc163f406ea2c8 | [
"MIT"
] | null | null | null | tests/test_user.py | dancan-sandys/pitch_project | f039ecebfaab0f7fd67e4c35dabc163f406ea2c8 | [
"MIT"
] | null | null | null | tests/test_user.py | dancan-sandys/pitch_project | f039ecebfaab0f7fd67e4c35dabc163f406ea2c8 | [
"MIT"
] | null | null | null | import unittest
from app.models import User
from app import db
class TestUser(unittest.TestCase):
def setUp(self):
self.new_user = User(user_id = 1000,user_name = 'Sandy', user_email = 'sandys@gmail', user_password = 'Stanford1*')
def tearDown(self):
User.query.delete()
def test_inst... | 30.26087 | 123 | 0.693966 | 91 | 696 | 5.10989 | 0.362637 | 0.12043 | 0.141935 | 0.193548 | 0.266667 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0.017794 | 0.192529 | 696 | 22 | 124 | 31.636364 | 0.809609 | 0 | 0 | 0 | 0 | 0 | 0.077586 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.266667 | false | 0.133333 | 0.2 | 0 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
610f06cbb5095f1227e88b622c1c111cb1a45797 | 123 | py | Python | wiki/plugins/links/settings.py | Si-elegans/Web-based_GUI_Tools | 58a9b7a76bc46467554192a38ff5329a94e2b627 | [
"Apache-2.0"
] | 3 | 2017-12-01T08:17:38.000Z | 2021-01-29T15:40:06.000Z | wiki/plugins/links/settings.py | Si-elegans/Web-based_GUI_Tools | 58a9b7a76bc46467554192a38ff5329a94e2b627 | [
"Apache-2.0"
] | 9 | 2020-06-05T17:44:02.000Z | 2022-01-13T00:42:34.000Z | wiki/plugins/links/settings.py | Si-elegans/Web-based_GUI_Tools | 58a9b7a76bc46467554192a38ff5329a94e2b627 | [
"Apache-2.0"
] | 1 | 2020-11-08T21:47:32.000Z | 2020-11-08T21:47:32.000Z | from django.conf import settings as django_settings
LOOKUP_LEVEL = getattr(django_settings, 'WIKI_LINKS_LOOKUP_LEVEL', 2)
| 30.75 | 69 | 0.837398 | 18 | 123 | 5.388889 | 0.666667 | 0.28866 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009009 | 0.097561 | 123 | 3 | 70 | 41 | 0.864865 | 0 | 0 | 0 | 0 | 0 | 0.186992 | 0.186992 | 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 |
612907f6ed75a8c7bcaa6a1e62bc0d8250cc1e7e | 4,404 | py | Python | sqlalchemy_collectd/tests/test_stream.py | sqlalchemy/sqlalchemy-collectd | f074fb09b9368213f9c1371a64c5aef4a1e73242 | [
"MIT"
] | 24 | 2018-02-12T04:53:20.000Z | 2022-02-12T22:05:54.000Z | sqlalchemy_collectd/tests/test_stream.py | sqlalchemy/sqlalchemy-collectd | f074fb09b9368213f9c1371a64c5aef4a1e73242 | [
"MIT"
] | 11 | 2018-02-15T08:22:42.000Z | 2022-01-06T15:54:42.000Z | sqlalchemy_collectd/tests/test_stream.py | sqlalchemy/sqlalchemy-collectd | f074fb09b9368213f9c1371a64c5aef4a1e73242 | [
"MIT"
] | 9 | 2018-02-14T08:55:47.000Z | 2021-12-02T07:33:29.000Z | from .. import protocol
from .. import stream
from .. import testing
class BreakIntoValuesTest(testing.TestBase):
def _internal_stream_one_element(self, type_instance="sometypeinstance"):
value = protocol.Values(
type="my_type_one_element",
host="somehost",
plugin="some... | 29.959184 | 77 | 0.504541 | 415 | 4,404 | 5.098795 | 0.144578 | 0.113422 | 0.119093 | 0.045369 | 0.862004 | 0.784499 | 0.714556 | 0.710775 | 0.671078 | 0.565217 | 0 | 0.027196 | 0.382153 | 4,404 | 146 | 78 | 30.164384 | 0.750459 | 0 | 0 | 0.682171 | 0 | 0 | 0.119891 | 0 | 0 | 0 | 0 | 0 | 0.015504 | 1 | 0.046512 | false | 0 | 0.023256 | 0 | 0.108527 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
612e070291c4d2126791f8eddc1af4b47c76395b | 8,064 | py | Python | tests/worker/test_initializers.py | adir-intsights/sergeant | 76229b045309a3d795ac760d9f08da04b5e0a750 | [
"MIT"
] | 152 | 2020-04-05T08:45:37.000Z | 2022-02-24T06:10:06.000Z | tests/worker/test_initializers.py | adir-intsights/sergeant | 76229b045309a3d795ac760d9f08da04b5e0a750 | [
"MIT"
] | 29 | 2020-05-26T10:13:20.000Z | 2022-03-31T10:52:39.000Z | tests/worker/test_initializers.py | adir-intsights/sergeant | 76229b045309a3d795ac760d9f08da04b5e0a750 | [
"MIT"
] | 10 | 2020-06-03T12:30:26.000Z | 2022-02-24T06:10:08.000Z | import unittest
import unittest.mock
import sergeant.worker
class WorkerInitializersTestCase(
unittest.TestCase,
):
def test_init_logger(
self,
):
worker = sergeant.worker.Worker()
worker.config = sergeant.config.WorkerConfig(
name='some_worker',
connector=... | 31.623529 | 84 | 0.445188 | 542 | 8,064 | 6.538745 | 0.136531 | 0.05333 | 0.097348 | 0.122743 | 0.761005 | 0.753104 | 0.732223 | 0.732223 | 0.692156 | 0.692156 | 0 | 0.007658 | 0.46565 | 8,064 | 254 | 85 | 31.748032 | 0.814806 | 0 | 0 | 0.644628 | 0 | 0 | 0.040179 | 0 | 0 | 0 | 0 | 0 | 0.099174 | 1 | 0.012397 | false | 0.016529 | 0.012397 | 0 | 0.028926 | 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 |
b61ab764ba4dfa685fe42932509840475b196ecc | 223 | py | Python | measureguides/views.py | ProjectFFF/FFF | a563e2bb5aafe18d3fa3143d83b6558921eac8ee | [
"BSD-2-Clause"
] | 6 | 2020-09-02T18:48:28.000Z | 2022-02-06T11:13:06.000Z | measureguides/views.py | ProjectFFF/FFF | a563e2bb5aafe18d3fa3143d83b6558921eac8ee | [
"BSD-2-Clause"
] | 23 | 2020-09-04T08:57:28.000Z | 2020-10-25T07:03:47.000Z | measureguides/views.py | ProjectFFF/FFF | a563e2bb5aafe18d3fa3143d83b6558921eac8ee | [
"BSD-2-Clause"
] | null | null | null | from django.shortcuts import render, redirect, get_object_or_404
from .models import Guide
def measureguides(request):
guides = Guide.objects.all()
return render(request, 'measureguides.html', {'guides' : guides})
| 31.857143 | 69 | 0.757848 | 28 | 223 | 5.928571 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015544 | 0.134529 | 223 | 6 | 70 | 37.166667 | 0.84456 | 0 | 0 | 0 | 0 | 0 | 0.107623 | 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 |
b6258d2aa6792117c1236d0c147ad75555ad383f | 62 | py | Python | iridauploader/parsers/nextseq2k_nml/__init__.py | COMBAT-SARS-COV-2/irida-uploader | b9d04d187d6a5a9fdcaef5b27135965ffac99db0 | [
"Apache-2.0"
] | 7 | 2019-01-25T16:56:11.000Z | 2021-01-12T15:32:08.000Z | iridauploader/parsers/nextseq2k_nml/__init__.py | COMBAT-SARS-COV-2/irida-uploader | b9d04d187d6a5a9fdcaef5b27135965ffac99db0 | [
"Apache-2.0"
] | 80 | 2019-01-29T14:54:26.000Z | 2022-03-25T18:51:51.000Z | iridauploader/parsers/nextseq2k_nml/__init__.py | COMBAT-SARS-COV-2/irida-uploader | b9d04d187d6a5a9fdcaef5b27135965ffac99db0 | [
"Apache-2.0"
] | 9 | 2019-03-14T09:58:05.000Z | 2022-01-06T20:14:45.000Z | from iridauploader.parsers.nextseq2k_nml.parser import Parser
| 31 | 61 | 0.887097 | 8 | 62 | 6.75 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017241 | 0.064516 | 62 | 1 | 62 | 62 | 0.913793 | 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 |
b671e0af9b64f25d319b65975fc85f095c6ed9bc | 2,133 | py | Python | halotools/utils/tests/test_2d_rotations.py | aphearin/halotools | 10a23ab83638d8f6f98c30862455fe152d8f322b | [
"BSD-3-Clause"
] | null | null | null | halotools/utils/tests/test_2d_rotations.py | aphearin/halotools | 10a23ab83638d8f6f98c30862455fe152d8f322b | [
"BSD-3-Clause"
] | 27 | 2015-01-14T18:21:50.000Z | 2018-07-10T05:44:21.000Z | halotools/utils/tests/test_2d_rotations.py | aphearin/halotools | 10a23ab83638d8f6f98c30862455fe152d8f322b | [
"BSD-3-Clause"
] | 2 | 2015-09-30T01:06:58.000Z | 2018-04-29T11:40:08.000Z | """
"""
import numpy as np
from ..vector_utilities import rotate_vector_collection
from ..rotations2d import rotation_matrices_from_vectors
from ..rotations2d import rotation_matrices_from_angles
from ..rotations2d import rotation_matrices_from_basis
__all__ = (
"test_rotation_matrices_from_vectors_1",
"test_r... | 21.118812 | 58 | 0.667135 | 310 | 2,133 | 4.287097 | 0.2 | 0.216704 | 0.27088 | 0.180587 | 0.778029 | 0.736644 | 0.456734 | 0.331076 | 0.281415 | 0.281415 | 0 | 0.045646 | 0.219409 | 2,133 | 100 | 59 | 21.33 | 0.752553 | 0.149555 | 0 | 0.333333 | 0 | 0 | 0.10295 | 0.10295 | 0 | 0 | 0 | 0 | 0.098039 | 1 | 0.098039 | false | 0 | 0.098039 | 0 | 0.196078 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b68e6c8bbf72b3df6f2187a589c4d31674f23aa6 | 333 | py | Python | laa_court_data_api_app/models/hearing/external/prosecution_case_identifier.py | ministryofjustice/laa-court-data-api | 2e79faac7469f0b31ecca0539906d281db08f86c | [
"MIT"
] | 1 | 2022-01-27T14:28:40.000Z | 2022-01-27T14:28:40.000Z | laa_court_data_api_app/models/hearing/external/prosecution_case_identifier.py | ministryofjustice/laa-court-data-api | 2e79faac7469f0b31ecca0539906d281db08f86c | [
"MIT"
] | 16 | 2022-01-28T11:01:27.000Z | 2022-03-30T14:01:11.000Z | laa_court_data_api_app/models/hearing/external/prosecution_case_identifier.py | ministryofjustice/laa-court-data-api | 2e79faac7469f0b31ecca0539906d281db08f86c | [
"MIT"
] | null | null | null | from pydantic import BaseModel
from laa_court_data_api_app.models.hearing.external.contact import Contact
class ProsecutionCaseIdentifier(BaseModel):
case_urn: str | None
prosecution_authority_id: str | None
prosecution_authority_code: str | None
prosecution_authority_name: str | None
contact: Co... | 27.75 | 74 | 0.78979 | 41 | 333 | 6.146341 | 0.585366 | 0.111111 | 0.214286 | 0.321429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159159 | 333 | 11 | 75 | 30.272727 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
b6b0388be019b16211725c4fe7be56175932f82c | 170 | py | Python | python/aghast/aghast_generated/DimensionOrder.py | HDembinski/aghast | f3d45a6960033f48fb8f6b7e906cb36b9d9d8e95 | [
"BSD-3-Clause"
] | 18 | 2019-04-15T14:39:35.000Z | 2021-12-21T15:01:02.000Z | python/aghast/aghast_generated/DimensionOrder.py | HDembinski/aghast | f3d45a6960033f48fb8f6b7e906cb36b9d9d8e95 | [
"BSD-3-Clause"
] | 27 | 2019-04-12T20:24:00.000Z | 2021-12-03T08:51:56.000Z | python/aghast/aghast_generated/DimensionOrder.py | diana-hep/stagg | ed97e9abc870e729d300622253aa7e9c870f77ec | [
"BSD-3-Clause"
] | 11 | 2019-04-15T14:41:00.000Z | 2021-11-16T13:28:10.000Z | # automatically generated by the FlatBuffers compiler, do not modify
# namespace: aghast_generated
class DimensionOrder(object):
c_order = 0
fortran_order = 1
| 18.888889 | 68 | 0.758824 | 21 | 170 | 6 | 0.904762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014493 | 0.188235 | 170 | 8 | 69 | 21.25 | 0.898551 | 0.552941 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
fcb2d2132edf3f1cc4657af045aa6f9827f1c834 | 69 | py | Python | tests/testapp/__init__.py | cursive-works/wagtailmedia | 28383a8445d891059a5e709ce747a9a48b30c277 | [
"BSD-3-Clause"
] | 176 | 2016-05-05T03:02:12.000Z | 2022-03-23T08:08:43.000Z | tests/testapp/__init__.py | cursive-works/wagtailmedia | 28383a8445d891059a5e709ce747a9a48b30c277 | [
"BSD-3-Clause"
] | 113 | 2016-10-17T15:59:58.000Z | 2022-03-21T14:45:15.000Z | tests/testapp/__init__.py | cursive-works/wagtailmedia | 28383a8445d891059a5e709ce747a9a48b30c277 | [
"BSD-3-Clause"
] | 69 | 2016-06-17T17:10:33.000Z | 2022-03-08T18:20:46.000Z | default_app_config = "tests.testapp.apps.WagtailmediaTestsAppConfig"
| 34.5 | 68 | 0.869565 | 7 | 69 | 8.285714 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043478 | 69 | 1 | 69 | 69 | 0.878788 | 0 | 0 | 0 | 0 | 0 | 0.652174 | 0.652174 | 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 |
fcb44190cc6af9472a1bc106339100f69fc991b6 | 50 | py | Python | enthought/traits/ui/editors_gen.py | enthought/etsproxy | 4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347 | [
"BSD-3-Clause"
] | 3 | 2016-12-09T06:05:18.000Z | 2018-03-01T13:00:29.000Z | enthought/traits/ui/editors_gen.py | enthought/etsproxy | 4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347 | [
"BSD-3-Clause"
] | 1 | 2020-12-02T00:51:32.000Z | 2020-12-02T08:48:55.000Z | enthought/traits/ui/editors_gen.py | enthought/etsproxy | 4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347 | [
"BSD-3-Clause"
] | null | null | null | # proxy module
from traitsui.editors_gen import *
| 16.666667 | 34 | 0.8 | 7 | 50 | 5.571429 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14 | 50 | 2 | 35 | 25 | 0.906977 | 0.24 | 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 |
fcdc54144363ee3456638f31a6a42e7c96edfc8d | 131 | py | Python | bentoml/yatai/proto/__init__.py | iancoffey/BentoML | 13cbd0ab7ab8d3b51da251264cc3ae0aab8f2d72 | [
"Apache-2.0"
] | null | null | null | bentoml/yatai/proto/__init__.py | iancoffey/BentoML | 13cbd0ab7ab8d3b51da251264cc3ae0aab8f2d72 | [
"Apache-2.0"
] | null | null | null | bentoml/yatai/proto/__init__.py | iancoffey/BentoML | 13cbd0ab7ab8d3b51da251264cc3ae0aab8f2d72 | [
"Apache-2.0"
] | null | null | null | __all__ = [
"deployment_pb2",
"repository_pb2",
"status_pb2",
"yatai_service_pb2_grpc",
"yatai_service_pb2",
]
| 16.375 | 29 | 0.641221 | 14 | 131 | 5.142857 | 0.571429 | 0.333333 | 0.416667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04902 | 0.221374 | 131 | 7 | 30 | 18.714286 | 0.656863 | 0 | 0 | 0 | 0 | 0 | 0.587786 | 0.167939 | 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 |
fcdd09efb1c29a6edff311d05ac72d6384cec170 | 87 | py | Python | fastform/create/apps.py | csc5nz/FastForms | b208734b94b908fce38ca342442a3e15014f8c23 | [
"MIT"
] | 1 | 2021-07-23T19:04:24.000Z | 2021-07-23T19:04:24.000Z | fastform/create/apps.py | csc5nz/FastForms | b208734b94b908fce38ca342442a3e15014f8c23 | [
"MIT"
] | 26 | 2020-01-14T04:32:38.000Z | 2022-03-12T00:54:18.000Z | fastform/create/apps.py | csc5nz/FastForms | b208734b94b908fce38ca342442a3e15014f8c23 | [
"MIT"
] | 1 | 2021-12-17T19:26:57.000Z | 2021-12-17T19:26:57.000Z | from django.apps import AppConfig
class CreateConfig(AppConfig):
name = 'create'
| 14.5 | 33 | 0.747126 | 10 | 87 | 6.5 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172414 | 87 | 5 | 34 | 17.4 | 0.902778 | 0 | 0 | 0 | 0 | 0 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
1e32f2b539607ed4604b56214e031709a782a288 | 132 | py | Python | tests/__init__.py | omershelef/lynx | 4b0815438eb29f8be6d658ce8261aac38ec8c693 | [
"MIT"
] | 1 | 2020-09-17T07:12:54.000Z | 2020-09-17T07:12:54.000Z | tests/__init__.py | omershelef/lynx | 4b0815438eb29f8be6d658ce8261aac38ec8c693 | [
"MIT"
] | null | null | null | tests/__init__.py | omershelef/lynx | 4b0815438eb29f8be6d658ce8261aac38ec8c693 | [
"MIT"
] | null | null | null | import pytest
import sys
def run_tests():
errno = pytest.main("tests/test_decode.py tests/test_encode.py")
sys.exit(errno)
| 18.857143 | 68 | 0.727273 | 21 | 132 | 4.428571 | 0.619048 | 0.193548 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151515 | 132 | 6 | 69 | 22 | 0.830357 | 0 | 0 | 0 | 0 | 0 | 0.310606 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
1ecdaf2672c02ac2080c16aef234ca5f4ba38703 | 241 | py | Python | django_directed_edge/app_settings.py | lamby/django-directed-edge | c78db4dc46186d2382541a247f5548e0d6e5514f | [
"BSD-3-Clause"
] | null | null | null | django_directed_edge/app_settings.py | lamby/django-directed-edge | c78db4dc46186d2382541a247f5548e0d6e5514f | [
"BSD-3-Clause"
] | null | null | null | django_directed_edge/app_settings.py | lamby/django-directed-edge | c78db4dc46186d2382541a247f5548e0d6e5514f | [
"BSD-3-Clause"
] | null | null | null | from django.conf import settings
def setting(suffix, default):
return getattr(settings, 'DIRECTED_EDGE_%s' % suffix, default)
ENABLED = setting('ENABLED', True)
USERNAME = setting('USERNAME', None)
PASSWORD = setting('PASSWORD', None)
| 26.777778 | 66 | 0.742739 | 29 | 241 | 6.103448 | 0.655172 | 0.146893 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128631 | 241 | 8 | 67 | 30.125 | 0.842857 | 0 | 0 | 0 | 0 | 0 | 0.161826 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.166667 | 0.166667 | 0.166667 | 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 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 4 |
94a05e670004e17d2142e5d64107d694479f4577 | 470,763 | py | Python | tests/st/ops/ascend/perf_benchmark/test_bert_all_001.py | KnowingNothing/akg-test | 114d8626b824b9a31af50a482afc07ab7121862b | [
"Apache-2.0"
] | null | null | null | tests/st/ops/ascend/perf_benchmark/test_bert_all_001.py | KnowingNothing/akg-test | 114d8626b824b9a31af50a482afc07ab7121862b | [
"Apache-2.0"
] | null | null | null | tests/st/ops/ascend/perf_benchmark/test_bert_all_001.py | KnowingNothing/akg-test | 114d8626b824b9a31af50a482afc07ab7121862b | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 72.136531 | 122 | 0.511929 | 59,493 | 470,763 | 3.853512 | 0.015279 | 0.064853 | 0.058432 | 0.04491 | 0.872353 | 0.779252 | 0.684812 | 0.617146 | 0.529794 | 0.449954 | 0 | 0.278996 | 0.256722 | 470,763 | 6,525 | 123 | 72.147586 | 0.376196 | 0.284103 | 0 | 0.059101 | 0 | 0 | 0.360395 | 0.081648 | 0 | 0 | 0 | 0 | 0 | 1 | 0.000555 | false | 0 | 0.000832 | 0 | 0.001942 | 0.000832 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
94a69150c1575ab028704d3f4ce4caebbd88bb7e | 547 | py | Python | armulator/armv6/all_registers/hsr.py | matan1008/armulator | 04d24dcec6ab42326018f5e09331e5b4738d6b52 | [
"MIT"
] | 16 | 2018-01-22T14:36:49.000Z | 2021-12-17T15:39:52.000Z | armulator/armv6/all_registers/hsr.py | AhmedMounir/armulator | 04d24dcec6ab42326018f5e09331e5b4738d6b52 | [
"MIT"
] | 3 | 2019-02-19T17:51:47.000Z | 2022-03-31T20:45:21.000Z | armulator/armv6/all_registers/hsr.py | AhmedMounir/armulator | 04d24dcec6ab42326018f5e09331e5b4738d6b52 | [
"MIT"
] | 4 | 2020-06-18T23:51:03.000Z | 2022-02-09T17:43:13.000Z | from armulator.armv6.all_registers.abstract_register import AbstractRegister
class HSR(AbstractRegister):
"""
Hyp Syndrome Register
"""
def __init__(self):
super(HSR, self).__init__()
def set_ec(self, ec):
self.value[0:6] = ec
def get_ec(self):
return self.value[0:6]... | 18.862069 | 76 | 0.603291 | 77 | 547 | 4.077922 | 0.376623 | 0.171975 | 0.133758 | 0.181529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032746 | 0.274223 | 547 | 28 | 77 | 19.535714 | 0.758186 | 0.038391 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4375 | false | 0 | 0.0625 | 0.1875 | 0.75 | 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 |
94b2cf33a9a93272a1eb78a4b5d5116fcafa5e53 | 153 | py | Python | src/polls/admin.py | joeyjojo-zz/django_offline | b5b94a0ea1d70b378da49329b2f4038baf648eb5 | [
"MIT"
] | 1 | 2019-11-07T03:47:31.000Z | 2019-11-07T03:47:31.000Z | src/polls/admin.py | joeyjojo-zz/django_offline | b5b94a0ea1d70b378da49329b2f4038baf648eb5 | [
"MIT"
] | null | null | null | src/polls/admin.py | joeyjojo-zz/django_offline | b5b94a0ea1d70b378da49329b2f4038baf648eb5 | [
"MIT"
] | null | null | null | __author__ = 'Jon'
from polls.models import Poll, Choice
from django.contrib import admin
admin.site.register(Poll)
admin.site.register(Choice)
| 19.125 | 38 | 0.75817 | 21 | 153 | 5.333333 | 0.619048 | 0.160714 | 0.303571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.150327 | 153 | 7 | 39 | 21.857143 | 0.861538 | 0 | 0 | 0 | 0 | 0 | 0.020548 | 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 |
94b9cbd51d9a08dadc0b8e24b28748061bde2503 | 381 | py | Python | botovod/exceptions.py | OlegYurchik/botovod | 20d7c97a4758ce280fcdc601e395b34c4f942a0f | [
"MIT"
] | 7 | 2018-09-03T11:03:55.000Z | 2020-07-11T16:13:56.000Z | botovod/exceptions.py | OlegYurchik/botovod | 20d7c97a4758ce280fcdc601e395b34c4f942a0f | [
"MIT"
] | null | null | null | botovod/exceptions.py | OlegYurchik/botovod | 20d7c97a4758ce280fcdc601e395b34c4f942a0f | [
"MIT"
] | 2 | 2019-09-03T12:09:40.000Z | 2020-06-05T18:09:52.000Z | class BotovodException(Exception):
pass
class AgentException(BotovodException):
pass
class AgentNotExistException(BotovodException):
def __init__(self, name: str):
super().__init__(f"Botovod have not '{name}' agent")
self.name = name
class HandlerNotPassed(BotovodException):
def __... | 21.166667 | 60 | 0.703412 | 38 | 381 | 6.631579 | 0.526316 | 0.071429 | 0.18254 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191601 | 381 | 17 | 61 | 22.411765 | 0.818182 | 0 | 0 | 0.181818 | 0 | 0 | 0.128609 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0.363636 | 0 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
94d56eb554d12e80ee7afee8ea6ac34a7598937a | 187 | py | Python | util/functions.py | sooualil/atlas-feature-extraction-extension | d0f9284ff710d095b1b61c226a28de26f738dd0c | [
"BSD-3-Clause"
] | null | null | null | util/functions.py | sooualil/atlas-feature-extraction-extension | d0f9284ff710d095b1b61c226a28de26f738dd0c | [
"BSD-3-Clause"
] | null | null | null | util/functions.py | sooualil/atlas-feature-extraction-extension | d0f9284ff710d095b1b61c226a28de26f738dd0c | [
"BSD-3-Clause"
] | null | null | null | from nfstream.flow import NFlow
def flow_to_dict(flow: NFlow):
return {key: getattr(flow.udps, key.split('.')[-1]) if 'udps.' in key else getattr(flow, key) for key in flow.keys()}
| 31.166667 | 121 | 0.68984 | 32 | 187 | 3.96875 | 0.59375 | 0.173228 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006289 | 0.149733 | 187 | 5 | 122 | 37.4 | 0.792453 | 0 | 0 | 0 | 0 | 0 | 0.032258 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 4 |
94d837502065fdaf12de58c7fd66917aacf892db | 78 | py | Python | tgapppermissions/public/__init__.py | axant/tgapp-permissions | 9d4d4a477d89ab865429e3c5043601185e58e7b6 | [
"MIT"
] | 1 | 2021-01-13T07:19:43.000Z | 2021-01-13T07:19:43.000Z | tgapppermissions/public/__init__.py | axant/tgapp-permissions | 9d4d4a477d89ab865429e3c5043601185e58e7b6 | [
"MIT"
] | null | null | null | tgapppermissions/public/__init__.py | axant/tgapp-permissions | 9d4d4a477d89ab865429e3c5043601185e58e7b6 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Enable statics for the tgapp-permissions package""" | 39 | 54 | 0.666667 | 10 | 78 | 5.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014706 | 0.128205 | 78 | 2 | 54 | 39 | 0.75 | 0.910256 | 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 |
a201395c2816b4ba2a735decfa67e7c30df5d93b | 41 | py | Python | concreate/version.py | rcernich/concreate | 850d17835e859b2ac03e17f1635564ee0b1772aa | [
"MIT"
] | null | null | null | concreate/version.py | rcernich/concreate | 850d17835e859b2ac03e17f1635564ee0b1772aa | [
"MIT"
] | null | null | null | concreate/version.py | rcernich/concreate | 850d17835e859b2ac03e17f1635564ee0b1772aa | [
"MIT"
] | null | null | null | version = "1.0.0dev0"
schema_version = 1
| 13.666667 | 21 | 0.707317 | 7 | 41 | 4 | 0.714286 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 0.146341 | 41 | 2 | 22 | 20.5 | 0.657143 | 0 | 0 | 0 | 0 | 0 | 0.219512 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
bf8f1d40e65b42ff8456f7b9df8666e4368389ce | 5,827 | py | Python | carrentalsystem/crcapp/migrations/0002_auto_20180909_1600.py | ruchaidandev/car-rental-system-ifb299 | 478e955db4a8fe9e2dd434f4fa3e938e9bb32b46 | [
"MIT"
] | 2 | 2020-03-28T20:05:42.000Z | 2021-09-21T13:17:29.000Z | carrentalsystem/crcapp/migrations/0002_auto_20180909_1600.py | ruchaidandev/car-rental-system-ifb299 | 478e955db4a8fe9e2dd434f4fa3e938e9bb32b46 | [
"MIT"
] | null | null | null | carrentalsystem/crcapp/migrations/0002_auto_20180909_1600.py | ruchaidandev/car-rental-system-ifb299 | 478e955db4a8fe9e2dd434f4fa3e938e9bb32b46 | [
"MIT"
] | null | null | null | # Generated by Django 2.1.1 on 2018-09-09 06:00
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('crcapp', '0001_initial'),
]
operations = [
migrations.RemoveField(
... | 30.830688 | 126 | 0.534409 | 479 | 5,827 | 6.361169 | 0.221294 | 0.094519 | 0.180505 | 0.209386 | 0.698392 | 0.648179 | 0.527076 | 0.448638 | 0.448638 | 0.362652 | 0 | 0.016333 | 0.34855 | 5,827 | 188 | 127 | 30.994681 | 0.786354 | 0.007723 | 0 | 0.747253 | 1 | 0 | 0.107093 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.010989 | 0.016484 | 0 | 0.032967 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
bf99effeb6eda6a3fcd274416980586084d1254e | 173 | py | Python | algorithms_and_data_structures/algorithms/math/operation/numeric/factorial/factorial_reduce.py | JCPedroza/algorithms-and-data-structures-py | e8532060e82bb7f56d667c587469dea2921117df | [
"MIT"
] | 2 | 2022-01-14T01:33:24.000Z | 2022-01-14T03:23:41.000Z | algorithms_and_data_structures/algorithms/math/operation/numeric/factorial/factorial_reduce.py | JCPedroza/algorithms-and-data-structures-py | e8532060e82bb7f56d667c587469dea2921117df | [
"MIT"
] | 1 | 2022-01-14T03:26:58.000Z | 2022-01-14T03:26:58.000Z | algorithms_and_data_structures/algorithms/math/operation/numeric/factorial/factorial_reduce.py | JCPedroza/algorithms-and-data-structures-py | e8532060e82bb7f56d667c587469dea2921117df | [
"MIT"
] | 1 | 2022-01-14T03:23:45.000Z | 2022-01-14T03:23:45.000Z | from functools import reduce
from operator import mul
def factorial(num: int) -> int:
return reduce(mul, range(1, num + 1), 1)
algorithm = factorial
name = 'reduce'
| 15.727273 | 44 | 0.699422 | 25 | 173 | 4.84 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021583 | 0.196532 | 173 | 10 | 45 | 17.3 | 0.848921 | 0 | 0 | 0 | 0 | 0 | 0.034682 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0.166667 | 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 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
449db21bbf037cd212c141976f278ba2287954ad | 434 | py | Python | jogos/atividade01.py | joaov30/Python | e2c5eda9583ecd9ad7a9290c7d367efe8e27a7e4 | [
"MIT"
] | null | null | null | jogos/atividade01.py | joaov30/Python | e2c5eda9583ecd9ad7a9290c7d367efe8e27a7e4 | [
"MIT"
] | null | null | null | jogos/atividade01.py | joaov30/Python | e2c5eda9583ecd9ad7a9290c7d367efe8e27a7e4 | [
"MIT"
] | null | null | null | print("Jogo da advinhação")
print("******************")
numero_secreto = 30
palpite_str = input("Digite o seu palpite: ")
palpite = int(palpite_str)
maior = palpite > numero_secreto
menor = palpite < numero_secreto
if palpite == numero_secreto:
print("Você acertou!")
elif maior:
print("Seu palpite ultrapa... | 20.666667 | 58 | 0.691244 | 58 | 434 | 5.068966 | 0.448276 | 0.265306 | 0.204082 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005525 | 0.165899 | 434 | 21 | 59 | 20.666667 | 0.80663 | 0 | 0 | 0 | 0 | 0 | 0.37931 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.071429 | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 4 |
44d49c21964ace5c9cb8764b9d73d6f202a5b9d5 | 421 | py | Python | products/admin.py | benrpinto/ausimin | 37d9879a729f637ff03d030168904737fd415776 | [
"MIT"
] | null | null | null | products/admin.py | benrpinto/ausimin | 37d9879a729f637ff03d030168904737fd415776 | [
"MIT"
] | null | null | null | products/admin.py | benrpinto/ausimin | 37d9879a729f637ff03d030168904737fd415776 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import CertContent
from .models import ProductContent
from .models import UsesContent
from .models import ProductButton
from home.admin import ContentAdmin
# Register your models here.
admin.site.register(CertContent,ContentAdmin)
admin.site.register(ProductContent,Content... | 32.384615 | 48 | 0.852732 | 50 | 421 | 7.18 | 0.32 | 0.111421 | 0.178273 | 0.24234 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08076 | 421 | 12 | 49 | 35.083333 | 0.927649 | 0.061758 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.6 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
782f20f87f054893fe0b3663cdc2e96aab33c297 | 99 | py | Python | server/club/club_games/apps.py | Jesterboxboy/mahjong-portal | c09362d69a81e81ed30c9159f3a35f9e9def4ac3 | [
"MIT"
] | 10 | 2018-02-12T10:30:22.000Z | 2020-06-29T21:06:15.000Z | server/club/club_games/apps.py | Jesterboxboy/mahjong-portal | c09362d69a81e81ed30c9159f3a35f9e9def4ac3 | [
"MIT"
] | 62 | 2018-01-05T04:52:38.000Z | 2021-04-10T07:14:45.000Z | server/club/club_games/apps.py | MahjongRepository/mahjong-leaderboard | 77dfd26cb812c12fa7c2b11e862bb80a9135ccb0 | [
"MIT"
] | 8 | 2018-05-11T11:05:41.000Z | 2021-03-10T08:10:50.000Z | from django.apps import AppConfig
class ClubGamesConfig(AppConfig):
name = "club.club_games"
| 16.5 | 33 | 0.767677 | 12 | 99 | 6.25 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151515 | 99 | 5 | 34 | 19.8 | 0.892857 | 0 | 0 | 0 | 0 | 0 | 0.151515 | 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 |
78671f305aa338b25686abe5c1445aea2be4edee | 327 | py | Python | run.py | ColombiaPython/meetup-api-python-groups | ff2bbb7e8991e519c29c1cc73b55e31e1106bff0 | [
"MIT"
] | 1 | 2017-12-07T17:15:20.000Z | 2017-12-07T17:15:20.000Z | run.py | jhonjairoroa87/meetup-api-python-groups | ff2bbb7e8991e519c29c1cc73b55e31e1106bff0 | [
"MIT"
] | 1 | 2018-07-11T23:04:15.000Z | 2018-07-11T23:11:35.000Z | run.py | ColombiaPython/meetup-api-python-groups | ff2bbb7e8991e519c29c1cc73b55e31e1106bff0 | [
"MIT"
] | 2 | 2017-05-09T20:14:19.000Z | 2018-01-24T19:16:51.000Z | from app.python_groups import process_python_group_by_location
def process_python_groups():
# process colombia info from meetup api
process_python_group_by_location("CO")
# process latam info from meetup api
process_python_group_by_location("LATAM")
if __name__ == "__main__":
process_python_gr... | 21.8 | 62 | 0.7737 | 44 | 327 | 5.181818 | 0.431818 | 0.285088 | 0.236842 | 0.263158 | 0.517544 | 0.394737 | 0.394737 | 0.394737 | 0.394737 | 0 | 0 | 0 | 0.16208 | 327 | 14 | 63 | 23.357143 | 0.832117 | 0.220183 | 0 | 0 | 0 | 0 | 0.059524 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | true | 0 | 0.166667 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
78723675fbe83719caf251a95d0dda3183d74981 | 24 | py | Python | src/tutorial/projects/add_sat/build/clock_constraints.py | dtantalidis2002/davidthings-spokefpga | 78eee11505b406f4a7972afd95e9eceae61159d4 | [
"Apache-2.0"
] | 41 | 2019-11-05T09:50:49.000Z | 2022-03-30T20:38:18.000Z | src/tutorial/projects/add_sat/build/clock_constraints.py | dtantalidis2002/davidthings-spokefpga | 78eee11505b406f4a7972afd95e9eceae61159d4 | [
"Apache-2.0"
] | 1 | 2020-11-15T20:05:16.000Z | 2020-11-29T16:52:28.000Z | src/tutorial/projects/add_sat/build/clock_constraints.py | dtantalidis2002/davidthings-spokefpga | 78eee11505b406f4a7972afd95e9eceae61159d4 | [
"Apache-2.0"
] | 2 | 2020-08-04T03:32:05.000Z | 2021-10-19T07:33:26.000Z | ctx.addClock("clk", 8 )
| 12 | 23 | 0.625 | 4 | 24 | 3.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 0.125 | 24 | 1 | 24 | 24 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
789b2f71a97b501baeac7d8a8d86aa2bb31fbe4f | 22 | py | Python | pyairctrl/__init__.py | GSzabados/py-air-control | 121be67168f2d395cda5ef93b6d703a00adf3ac6 | [
"MIT"
] | 203 | 2019-01-19T09:45:31.000Z | 2022-03-15T06:42:11.000Z | pyairctrl/__init__.py | GSzabados/py-air-control | 121be67168f2d395cda5ef93b6d703a00adf3ac6 | [
"MIT"
] | 86 | 2019-02-12T22:21:44.000Z | 2022-03-28T16:11:45.000Z | pyairctrl/__init__.py | GSzabados/py-air-control | 121be67168f2d395cda5ef93b6d703a00adf3ac6 | [
"MIT"
] | 56 | 2019-01-28T07:10:48.000Z | 2022-02-09T10:17:38.000Z | """py-air-control."""
| 11 | 21 | 0.545455 | 3 | 22 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 22 | 1 | 22 | 22 | 0.571429 | 0.681818 | 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 |
78c4f9e0af2b4ffb34e95cf14ebbe93bb1b4c91f | 72 | py | Python | pycells/__init__.py | timfi/pycells | 8c53d6f3dcd87ade101a43a28e2b1d89d0257815 | [
"Unlicense"
] | 1 | 2020-08-12T16:56:31.000Z | 2020-08-12T16:56:31.000Z | pycells/__init__.py | tim-fi/pycells | 8c53d6f3dcd87ade101a43a28e2b1d89d0257815 | [
"Unlicense"
] | 5 | 2021-03-19T11:07:10.000Z | 2022-03-12T00:16:43.000Z | pycells/__init__.py | timfi/pycells | 8c53d6f3dcd87ade101a43a28e2b1d89d0257815 | [
"Unlicense"
] | null | null | null | from .simulations import count, pattern
__all__ = ("count", "pattern")
| 18 | 39 | 0.722222 | 8 | 72 | 6 | 0.75 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138889 | 72 | 3 | 40 | 24 | 0.774194 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 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 |
78c8722aaa289d3f9f964df329b40506aaa886f9 | 9,936 | py | Python | tests/test_enhance_command.py | lukasbindreiter/white-brush | 67e5dcda8043f2d7bba440bcb9a84c2fa85ec9ba | [
"MIT"
] | 3 | 2018-04-27T23:04:04.000Z | 2019-11-01T02:54:45.000Z | tests/test_enhance_command.py | lukasbindreiter/white-brush | 67e5dcda8043f2d7bba440bcb9a84c2fa85ec9ba | [
"MIT"
] | 33 | 2018-04-29T15:12:29.000Z | 2022-01-19T21:44:19.000Z | tests/test_enhance_command.py | lukasbindreiter/white-brush | 67e5dcda8043f2d7bba440bcb9a84c2fa85ec9ba | [
"MIT"
] | 2 | 2018-06-16T17:09:25.000Z | 2020-01-14T01:23:34.000Z | import pathlib
import unittest
from white_brush.commands.enhance_command import EnhanceCommand
from white_brush.entities.color_configuration import ColorConfiguration
from white_brush.entities.enhancement_configuration import EnhancementConfiguration
class TestEnhanceCommand(unittest.TestCase):
# region execute... | 37.213483 | 118 | 0.647544 | 1,034 | 9,936 | 5.933269 | 0.128627 | 0.095844 | 0.110839 | 0.067808 | 0.766748 | 0.759576 | 0.717522 | 0.711817 | 0.695192 | 0.664385 | 0 | 0.006008 | 0.262882 | 9,936 | 266 | 119 | 37.353383 | 0.831649 | 0.143116 | 0 | 0.620438 | 0 | 0 | 0.112914 | 0.071146 | 0 | 0 | 0 | 0 | 0.131387 | 1 | 0.072993 | false | 0 | 0.036496 | 0 | 0.124088 | 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 |
152737444997052829ec3eb1b82bc4ac11880afd | 614 | py | Python | python/p018.py | ericdahl/project-euler | 4757e2c44ca9423471b2938fc1e3dd1796f000b3 | [
"BSD-3-Clause"
] | null | null | null | python/p018.py | ericdahl/project-euler | 4757e2c44ca9423471b2938fc1e3dd1796f000b3 | [
"BSD-3-Clause"
] | 1 | 2016-01-18T02:02:50.000Z | 2016-01-18T02:02:50.000Z | python/p018.py | ericdahl/project-euler | 4757e2c44ca9423471b2938fc1e3dd1796f000b3 | [
"BSD-3-Clause"
] | null | null | null |
t = '''
75
95 64
17 47 82
18 35 87 10
20 04 82 47 65
19 01 23 75 03 34
88 02 77 73 07 63 67
99 65 04 28 06 16 70 92
41 41 26 56 83 40 80 70 33
41 48 72 33 47 32 37 16 94 29
53 71 44 65 25 43 91 52 97 51 14
70 11 33 28 77 73 17 78 39 68 17 57
91 71 52 38 17 14 91 43 58 50 27 29 48
63 66 04 68 89 53 67 30 73 16 69 87 40... | 21.928571 | 70 | 0.586319 | 168 | 614 | 2.142857 | 0.559524 | 0.033333 | 0.055556 | 0.072222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.58156 | 0.311075 | 614 | 28 | 71 | 21.928571 | 0.269504 | 0 | 0 | 0 | 0 | 0 | 0.592834 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.041667 | 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 | 0 | 0 | null | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
1564336ed3d93f1dec4925103519691bef5596c3 | 142 | py | Python | validation_tests/analytical_exact/runup_on_beach/produce_results.py | samcom12/anuga_core | f4378114dbf02d666fe6423de45798add5c42806 | [
"Python-2.0",
"OLDAP-2.7"
] | 136 | 2015-05-07T05:47:43.000Z | 2022-02-16T03:07:40.000Z | validation_tests/analytical_exact/runup_on_beach/produce_results.py | samcom12/anuga_core | f4378114dbf02d666fe6423de45798add5c42806 | [
"Python-2.0",
"OLDAP-2.7"
] | 184 | 2015-05-03T09:27:54.000Z | 2021-12-20T04:22:48.000Z | validation_tests/analytical_exact/runup_on_beach/produce_results.py | samcom12/anuga_core | f4378114dbf02d666fe6423de45798add5c42806 | [
"Python-2.0",
"OLDAP-2.7"
] | 70 | 2015-03-18T07:35:22.000Z | 2021-11-01T07:07:29.000Z | import anuga
from anuga.validation_utilities import produce_report
args = anuga.get_args()
produce_report('numerical_runup.py', args=args)
| 17.75 | 53 | 0.816901 | 20 | 142 | 5.55 | 0.6 | 0.234234 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098592 | 142 | 7 | 54 | 20.285714 | 0.867188 | 0 | 0 | 0 | 0 | 0 | 0.12766 | 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 |
1581d3e4d8d0bce83c3db9ff7426baf2890341bc | 45 | py | Python | my_package/sub_package2/__init__.py | almoniplon/new_repos | b71235662fa8910286e9d0523b0a3dee46259e9b | [
"MIT"
] | null | null | null | my_package/sub_package2/__init__.py | almoniplon/new_repos | b71235662fa8910286e9d0523b0a3dee46259e9b | [
"MIT"
] | null | null | null | my_package/sub_package2/__init__.py | almoniplon/new_repos | b71235662fa8910286e9d0523b0a3dee46259e9b | [
"MIT"
] | null | null | null | __all__ = ['module_pck2_a', 'module_pck2_b']
| 22.5 | 44 | 0.733333 | 7 | 45 | 3.571429 | 0.714286 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04878 | 0.088889 | 45 | 1 | 45 | 45 | 0.560976 | 0 | 0 | 0 | 0 | 0 | 0.577778 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
1587732bf38d4e8a8d1ec74538939a97b6913731 | 155 | py | Python | src/data/get_data.py | BIOF309/group-project-jcl | 84914637d512c8d9aca1d146cd72411822a41dbe | [
"MIT"
] | 1 | 2018-12-05T03:47:45.000Z | 2018-12-05T03:47:45.000Z | src/data/get_data.py | BIOF309/group-project-jcl | 84914637d512c8d9aca1d146cd72411822a41dbe | [
"MIT"
] | null | null | null | src/data/get_data.py | BIOF309/group-project-jcl | 84914637d512c8d9aca1d146cd72411822a41dbe | [
"MIT"
] | null | null | null | url = 'https://www.kaggle.com/c/forest-cover-type-kernels-only/download/train.csv'
from urllib.request import urlretrieve
urlretrieve(url, 'train.csv')
| 22.142857 | 82 | 0.767742 | 23 | 155 | 5.173913 | 0.826087 | 0.134454 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.077419 | 155 | 6 | 83 | 25.833333 | 0.832168 | 0 | 0 | 0 | 0 | 0.333333 | 0.538961 | 0 | 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 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
158dc869c74d22f9b74fffbdca492c7c12fbee0d | 179 | py | Python | userlog/apps.py | aaugustin/django-userlog | 6cd34d0a319f6a954fec74420d0d391c32c46060 | [
"BSD-3-Clause"
] | 53 | 2015-01-04T17:53:40.000Z | 2021-07-27T06:53:19.000Z | userlog/apps.py | aaugustin/django-userlog | 6cd34d0a319f6a954fec74420d0d391c32c46060 | [
"BSD-3-Clause"
] | 1 | 2015-07-04T11:42:45.000Z | 2015-07-04T11:42:45.000Z | userlog/apps.py | aaugustin/django-userlog | 6cd34d0a319f6a954fec74420d0d391c32c46060 | [
"BSD-3-Clause"
] | 8 | 2015-09-05T08:03:32.000Z | 2020-02-28T08:48:13.000Z | from django.apps import AppConfig
from django.utils.translation import ugettext_lazy as _
class UserLogConfig(AppConfig):
name = 'userlog'
verbose_name = _("User logs")
| 22.375 | 55 | 0.759777 | 22 | 179 | 6 | 0.772727 | 0.151515 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162011 | 179 | 7 | 56 | 25.571429 | 0.88 | 0 | 0 | 0 | 0 | 0 | 0.089385 | 0 | 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 |
159997060986bdb394ebfe90c7834eb6d37ba52c | 65 | py | Python | processors/tweet_grabber.py | brianhouse/okavango | 4006940ddead3f31eea701efb9b9dcdc7b19402e | [
"MIT"
] | 2 | 2015-01-25T06:20:03.000Z | 2015-02-15T23:54:41.000Z | processors/tweet_grabber.py | brianhouse/okavango_15 | 4006940ddead3f31eea701efb9b9dcdc7b19402e | [
"MIT"
] | null | null | null | processors/tweet_grabber.py | brianhouse/okavango_15 | 4006940ddead3f31eea701efb9b9dcdc7b19402e | [
"MIT"
] | 3 | 2017-11-14T21:18:23.000Z | 2021-06-20T21:08:31.000Z | #!/usr/bin/env python3
from ingest import tweet
tweet.main()
| 8.125 | 24 | 0.707692 | 10 | 65 | 4.6 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018519 | 0.169231 | 65 | 7 | 25 | 9.285714 | 0.833333 | 0.323077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
15b0ba077ead286ae2eb750257078696bb6f735f | 175 | py | Python | admin/preprints/forms.py | gaybro8777/osf.io | 30408511510a40bc393565817b343ef5fd76ab14 | [
"Apache-2.0"
] | 628 | 2015-01-15T04:33:22.000Z | 2022-03-30T06:40:10.000Z | admin/preprints/forms.py | gaybro8777/osf.io | 30408511510a40bc393565817b343ef5fd76ab14 | [
"Apache-2.0"
] | 4,712 | 2015-01-02T01:41:53.000Z | 2022-03-30T14:18:40.000Z | admin/preprints/forms.py | Johnetordoff/osf.io | de10bf249c46cede04c78f7e6f7e352c69e6e6b5 | [
"Apache-2.0"
] | 371 | 2015-01-12T16:14:08.000Z | 2022-03-31T18:58:29.000Z | from django import forms
from osf.models import Preprint
class ChangeProviderForm(forms.ModelForm):
class Meta:
model = Preprint
fields = ('provider',)
| 17.5 | 42 | 0.691429 | 19 | 175 | 6.368421 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.234286 | 175 | 9 | 43 | 19.444444 | 0.902985 | 0 | 0 | 0 | 0 | 0 | 0.045714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
ec60adfab97103d9abf852324d8bbcbe934493fb | 1,013 | py | Python | inventory/migrations/0011_remove_membership_group_remove_membership_inviter_and_more.py | brkyavuz/webnet | 0204214e138acb051a15e5d5b9ffbdc53d4a7691 | [
"MIT"
] | null | null | null | inventory/migrations/0011_remove_membership_group_remove_membership_inviter_and_more.py | brkyavuz/webnet | 0204214e138acb051a15e5d5b9ffbdc53d4a7691 | [
"MIT"
] | null | null | null | inventory/migrations/0011_remove_membership_group_remove_membership_inviter_and_more.py | brkyavuz/webnet | 0204214e138acb051a15e5d5b9ffbdc53d4a7691 | [
"MIT"
] | null | null | null | # Generated by Django 4.0.3 on 2022-03-24 15:17
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('inventory', '0010_publication_article'),
]
operations = [
migrations.RemoveField(
model_name='membership',
name='group',
... | 22.511111 | 50 | 0.509378 | 75 | 1,013 | 6.8 | 0.453333 | 0.205882 | 0.245098 | 0.235294 | 0.258824 | 0.258824 | 0 | 0 | 0 | 0 | 0 | 0.030207 | 0.379072 | 1,013 | 44 | 51 | 23.022727 | 0.780604 | 0.044423 | 0 | 0.552632 | 1 | 0 | 0.138716 | 0.024845 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.026316 | 0 | 0.105263 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
ec6d16bd6f033ab5121843642e710458ab86fc18 | 5,745 | py | Python | francesco/src/preprocessing/data_loader.py | vaibhavi5/PialNet | c55a4af76cf0caf6251907a8e782e90da691dcc1 | [
"BSD-3-Clause"
] | null | null | null | francesco/src/preprocessing/data_loader.py | vaibhavi5/PialNet | c55a4af76cf0caf6251907a8e782e90da691dcc1 | [
"BSD-3-Clause"
] | null | null | null | francesco/src/preprocessing/data_loader.py | vaibhavi5/PialNet | c55a4af76cf0caf6251907a8e782e90da691dcc1 | [
"BSD-3-Clause"
] | null | null | null | import glob
import nibabel as nib
import numpy as np
from tf_utils import misc, TFRecordsManager
def create_TF_records(data_path):
base_path = misc.get_base_path(training=False)
TFManager = TFRecordsManager()
data_purposes = ["train", "val"]
data_purposes += ["test-" + str(threshold) for threshold i... | 43.522727 | 136 | 0.561184 | 836 | 5,745 | 3.66866 | 0.141148 | 0.071731 | 0.039126 | 0.052168 | 0.787088 | 0.787088 | 0.769482 | 0.718618 | 0.699054 | 0.674275 | 0 | 0.06387 | 0.269626 | 5,745 | 131 | 137 | 43.854962 | 0.667064 | 0 | 0 | 0.615385 | 0 | 0 | 0.058486 | 0 | 0 | 0 | 0 | 0 | 0.105769 | 1 | 0.028846 | false | 0 | 0.038462 | 0 | 0.076923 | 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 |
019f744769b140d4fc9f75415ed11e2ae94ec398 | 124 | py | Python | fetchers/models/Job.py | OneStarSolution/prometeo | ed2d534600c0c6207c6d351c54bd3307d15a7859 | [
"MIT"
] | null | null | null | fetchers/models/Job.py | OneStarSolution/prometeo | ed2d534600c0c6207c6d351c54bd3307d15a7859 | [
"MIT"
] | 1 | 2021-05-06T16:48:52.000Z | 2021-05-06T16:48:52.000Z | fetchers/models/Job.py | OneStarSolution/prometeo | ed2d534600c0c6207c6d351c54bd3307d15a7859 | [
"MIT"
] | 4 | 2021-01-12T21:22:41.000Z | 2021-11-10T05:13:25.000Z | from pydantic import BaseModel
class Job(BaseModel):
category: str
location: str
country: str
source: str
| 13.777778 | 30 | 0.685484 | 15 | 124 | 5.666667 | 0.733333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.258065 | 124 | 8 | 31 | 15.5 | 0.923913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 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 |
01afdab802cd4bd6e35a6c369bf299918d431528 | 551 | py | Python | ex1.py | arthurpaulino/PyStochastic | 54f9089bee87d43ef6025082a626a83f5f29e2e3 | [
"Unlicense"
] | null | null | null | ex1.py | arthurpaulino/PyStochastic | 54f9089bee87d43ef6025082a626a83f5f29e2e3 | [
"Unlicense"
] | null | null | null | ex1.py | arthurpaulino/PyStochastic | 54f9089bee87d43ef6025082a626a83f5f29e2e3 | [
"Unlicense"
] | null | null | null | from __future__ import division
from pystochastic import *
proc = PyStochastic()
proc.link('A1','A1',4/9)
proc.link('A1','B1',1/9)
proc.link('A1','A2',2/9)
proc.link('A1','B2',2/9)
proc.link('A2','A1',4/9)
proc.link('A2','B1',1/9)
proc.link('A2','A2',2/9)
proc.link('A2','B2',2/9)
proc.link('B1','A1',4/9)
proc.link('... | 20.407407 | 37 | 0.595281 | 118 | 551 | 2.745763 | 0.161017 | 0.395062 | 0.416667 | 0.216049 | 0.592593 | 0 | 0 | 0 | 0 | 0 | 0 | 0.139806 | 0.065336 | 551 | 26 | 38 | 21.192308 | 0.48932 | 0.043557 | 0 | 0 | 0 | 0 | 0.129524 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
01e6e2c93d4bbe2d03877d550a0c2294c636e9a0 | 435 | py | Python | app/database/models/student_subject_map.py | roshnet/Electron-Server | f21ced024d69d7d96e89a2aa90c80f3d6757b3e1 | [
"MIT"
] | null | null | null | app/database/models/student_subject_map.py | roshnet/Electron-Server | f21ced024d69d7d96e89a2aa90c80f3d6757b3e1 | [
"MIT"
] | 5 | 2021-10-30T06:04:47.000Z | 2021-11-14T21:09:00.000Z | app/database/models/student_subject_map.py | roshnet/Electron-Server | f21ced024d69d7d96e89a2aa90c80f3d6757b3e1 | [
"MIT"
] | 1 | 2022-02-28T15:24:58.000Z | 2022-02-28T15:24:58.000Z | from sqlalchemy import Column, Integer, ForeignKey, String
from app.database.models.base import Base
from app.database.models.subjects import Subjects
from app.database.models.students import Students
class StudentSubjectMap(Base):
__tablename__ = "student_subject_map"
id = Column(Integer, primary_key=True)
... | 36.25 | 58 | 0.790805 | 55 | 435 | 6.090909 | 0.418182 | 0.155224 | 0.20597 | 0.18806 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.124138 | 435 | 11 | 59 | 39.545455 | 0.879265 | 0 | 0 | 0 | 0 | 0 | 0.043678 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.444444 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
01e9dace0378d3299daac95b78fec048df0f8015 | 260 | py | Python | disc-forum-py-main/Discussion_forum/forms.py | DanielDDHM/my-projects-py | f6c3af7f6cd61c69234d25c956027e8c7e626470 | [
"MIT"
] | null | null | null | disc-forum-py-main/Discussion_forum/forms.py | DanielDDHM/my-projects-py | f6c3af7f6cd61c69234d25c956027e8c7e626470 | [
"MIT"
] | null | null | null | disc-forum-py-main/Discussion_forum/forms.py | DanielDDHM/my-projects-py | f6c3af7f6cd61c69234d25c956027e8c7e626470 | [
"MIT"
] | null | null | null | from django.forms import ModelForm
from .models import *
class CreateInForum(ModelForm):
class Meta:
model= forum
fields = "__all__"
class CreateInDiscussion(ModelForm):
class Meta:
model= Discussion
fields = "__all__" | 21.666667 | 36 | 0.669231 | 26 | 260 | 6.384615 | 0.576923 | 0.168675 | 0.216867 | 0.277108 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.257692 | 260 | 12 | 37 | 21.666667 | 0.860104 | 0 | 0 | 0.4 | 0 | 0 | 0.05364 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
01f9d0b2be3282c690d7d32f692ed192694c29ef | 464 | py | Python | wpoke/client.py | sonirico/wpoke | be193a41159dabf912d793eb5a6ebf2f0e9440bb | [
"MIT"
] | 4 | 2019-08-19T12:32:40.000Z | 2019-10-25T20:57:29.000Z | wpoke/client.py | sonirico/wpoke | be193a41159dabf912d793eb5a6ebf2f0e9440bb | [
"MIT"
] | 15 | 2019-07-15T18:30:43.000Z | 2020-09-25T08:10:05.000Z | wpoke/client.py | sonirico/wpoke | be193a41159dabf912d793eb5a6ebf2f0e9440bb | [
"MIT"
] | null | null | null | from aiohttp.client import URL as aio_url
class URL:
def __init__(self, url: str):
self.url = aio_url(url)
def __str__(self):
return str(self.url)
def __repr__(self):
return repr(self.url)
@property
def scheme(self):
return self.url.scheme
def has_scheme(sel... | 20.173913 | 51 | 0.618534 | 66 | 464 | 4.090909 | 0.333333 | 0.207407 | 0.111111 | 0.148148 | 0.214815 | 0.214815 | 0 | 0 | 0 | 0 | 0 | 0 | 0.269397 | 464 | 22 | 52 | 21.090909 | 0.79646 | 0 | 0 | 0 | 0 | 0 | 0.019397 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0.066667 | 0.266667 | 0.8 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
bf003c97fda502bc855627fb6d390a49ac58120e | 90 | py | Python | mako_app/apps.py | Waixi00008/django_tutorial | 2d6b26022c70c0e2332a146aeda39be1e99f7f39 | [
"MIT"
] | 1 | 2021-12-03T04:19:56.000Z | 2021-12-03T04:19:56.000Z | mako_app/apps.py | Waixi00008/django_tutorial | 2d6b26022c70c0e2332a146aeda39be1e99f7f39 | [
"MIT"
] | 1 | 2020-10-16T09:22:51.000Z | 2020-10-16T09:22:51.000Z | mako_app/apps.py | Waixi00008/django_tutorial | 2d6b26022c70c0e2332a146aeda39be1e99f7f39 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class MakoAppConfig(AppConfig):
name = 'mako_app'
| 15 | 33 | 0.755556 | 11 | 90 | 6.090909 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 90 | 5 | 34 | 18 | 0.893333 | 0 | 0 | 0 | 0 | 0 | 0.088889 | 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 |
bf33003de2efab610f8d2ceff655480b950bb2fb | 363 | py | Python | release/stubs/Autodesk/AutoCAD/DatabaseServices/__init__.py | paoloemilioserra/ironpython-stubs | 49d92db7f28f25ccd3654c5f6ae83daa0c401fa1 | [
"MIT"
] | null | null | null | release/stubs/Autodesk/AutoCAD/DatabaseServices/__init__.py | paoloemilioserra/ironpython-stubs | 49d92db7f28f25ccd3654c5f6ae83daa0c401fa1 | [
"MIT"
] | null | null | null | release/stubs/Autodesk/AutoCAD/DatabaseServices/__init__.py | paoloemilioserra/ironpython-stubs | 49d92db7f28f25ccd3654c5f6ae83daa0c401fa1 | [
"MIT"
] | null | null | null | # encoding: utf-8
# module Autodesk.AutoCAD.DatabaseServices
# from D:\Python\ironpython-stubs\release\stubs\Autodesk\AutoCAD\DatabaseServices\__init__.py
# by generator 1.145
# no doc
# no imports
# no functions
# no classes
# variables with complex values
__path__ = [
'D:\\Python\\ironpython-stubs\\release\\stu... | 25.928571 | 93 | 0.760331 | 45 | 363 | 5.955556 | 0.644444 | 0.16791 | 0.347015 | 0.164179 | 0.485075 | 0.485075 | 0.485075 | 0.485075 | 0.485075 | 0 | 0 | 0.01548 | 0.110193 | 363 | 14 | 94 | 25.928571 | 0.814241 | 0.658402 | 0 | 0 | 0 | 0 | 0.704348 | 0.704348 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1729884ec3d3b2777c8af1f7043b7a47ca021235 | 260 | py | Python | ex026.py | heltonsdl/python-3---curso-em-video | 2bb0408ec041628323443cf902fca593f7575941 | [
"MIT"
] | null | null | null | ex026.py | heltonsdl/python-3---curso-em-video | 2bb0408ec041628323443cf902fca593f7575941 | [
"MIT"
] | null | null | null | ex026.py | heltonsdl/python-3---curso-em-video | 2bb0408ec041628323443cf902fca593f7575941 | [
"MIT"
] | null | null | null | f = str ( input( 'Escreva alguma frase:'))
print (' Sua frase contém {} letras "as".'.format(f.count('a')))
print (' Ela aparece pela primeira fez na posição {}.'.format(f.find('a')))
print (' E.aparece pela última vez na posição {}.' .format( f.rfind ('a')))
| 52 | 75 | 0.638462 | 40 | 260 | 4.15 | 0.65 | 0.126506 | 0.180723 | 0.192771 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146154 | 260 | 4 | 76 | 65 | 0.747748 | 0 | 0 | 0 | 0 | 0 | 0.55 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.75 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
172bfecd2d89f7d58a31bda32c01e33375726466 | 86 | py | Python | cpp_enum_class_string_idl/__init__.py | oneofthezombies/cpp-enum-class-string-idl | e1188e6a94d5c7c6a4bc6a7d025b12f4d22c53e1 | [
"MIT"
] | null | null | null | cpp_enum_class_string_idl/__init__.py | oneofthezombies/cpp-enum-class-string-idl | e1188e6a94d5c7c6a4bc6a7d025b12f4d22c53e1 | [
"MIT"
] | null | null | null | cpp_enum_class_string_idl/__init__.py | oneofthezombies/cpp-enum-class-string-idl | e1188e6a94d5c7c6a4bc6a7d025b12f4d22c53e1 | [
"MIT"
] | null | null | null | from .implementation import (
load_interfaces,
load_interface,
generate
)
| 14.333333 | 29 | 0.709302 | 8 | 86 | 7.375 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.232558 | 86 | 5 | 30 | 17.2 | 0.893939 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
172c9e5459da37910f7f4e7173c60ca18c5b405f | 94 | py | Python | zvt/accounts/__init__.py | Evergreen2020/zvt | 446a2512d716a38a12164b6d4468a6c9de01b986 | [
"MIT"
] | 1 | 2020-04-06T04:17:53.000Z | 2020-04-06T04:17:53.000Z | zvt/accounts/__init__.py | Evergreen2020/zvt | 446a2512d716a38a12164b6d4468a6c9de01b986 | [
"MIT"
] | 2 | 2019-12-20T13:12:30.000Z | 2020-01-03T06:24:30.000Z | zvt/accounts/__init__.py | Evergreen2020/zvt | 446a2512d716a38a12164b6d4468a6c9de01b986 | [
"MIT"
] | 1 | 2020-05-16T09:42:02.000Z | 2020-05-16T09:42:02.000Z | # -*- coding: utf-8 -*-
from zvt.accounts.ccxt_account import CCXTAccount
CCXTAccount.init()
| 18.8 | 49 | 0.734043 | 12 | 94 | 5.666667 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012048 | 0.117021 | 94 | 4 | 50 | 23.5 | 0.807229 | 0.223404 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
172fcbc40d0b85db9e7d7b510a91b89381cd68ff | 430 | py | Python | aiogram/types/invoice.py | andrew-ld/aiogram | b55153ccf3ab9ef191bef6c20e467b92f3b270ed | [
"MIT"
] | 2,744 | 2017-11-19T00:56:19.000Z | 2022-03-31T15:48:23.000Z | aiogram/types/invoice.py | andrew-ld/aiogram | b55153ccf3ab9ef191bef6c20e467b92f3b270ed | [
"MIT"
] | 513 | 2018-01-23T16:52:59.000Z | 2022-03-27T01:50:30.000Z | aiogram/types/invoice.py | andrew-ld/aiogram | b55153ccf3ab9ef191bef6c20e467b92f3b270ed | [
"MIT"
] | 813 | 2017-12-05T06:49:48.000Z | 2022-03-29T15:47:50.000Z | from . import base
from . import fields
class Invoice(base.TelegramObject):
"""
This object contains basic information about an invoice.
https://core.telegram.org/bots/api#invoice
"""
title: base.String = fields.Field()
description: base.String = fields.Field()
start_parameter: base.Strin... | 26.875 | 60 | 0.695349 | 52 | 430 | 5.711538 | 0.576923 | 0.185185 | 0.215488 | 0.282828 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.186047 | 430 | 15 | 61 | 28.666667 | 0.848571 | 0.232558 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
1752dd1bb56e0f965e84d765b3281984fc42f7bf | 140,267 | py | Python | src/utils/convengence.py | O151/bysj | 9c0c63202c83c47470dd65822bc22b973ae69176 | [
"MIT"
] | 5 | 2019-08-07T01:32:05.000Z | 2020-02-07T14:08:41.000Z | src/utils/convengence.py | O151/bysj | 9c0c63202c83c47470dd65822bc22b973ae69176 | [
"MIT"
] | null | null | null | src/utils/convengence.py | O151/bysj | 9c0c63202c83c47470dd65822bc22b973ae69176 | [
"MIT"
] | 2 | 2019-03-27T03:15:59.000Z | 2019-12-02T17:58:43.000Z | # -*- coding: utf-8 -*-
"""
Created on Tue Jan 1 16:41:34 2019
@author: Ljx
"""
import matplotlib.pyplot as plt
import numpy as np
sigma1288 = [713459.712876269, 498173.84557395073, 251529.82603825378, 85618.14856803263, 11432.294535108256, 3228.301003745108, 2340.0254167508792, 2059.758265032897, 2074.572595624382... | 2,805.34 | 15,679 | 0.843784 | 14,528 | 140,267 | 8.146682 | 0.597742 | 0.000051 | 0.000177 | 0.000406 | 0.002433 | 0.002433 | 0.002433 | 0.002433 | 0.002433 | 0.002433 | 0 | 0.887052 | 0.052322 | 140,267 | 49 | 15,680 | 2,862.591837 | 0.003318 | 0.000513 | 0 | 0.5625 | 0 | 0 | 0.000235 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.0625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
175d4707296b91d4b8c2e98faed6b8446b90c774 | 120 | py | Python | predthread/__init__.py | julianirwin/predthread | f2ff7cf833864ed7d3866e2c63dd14282ca2da8c | [
"MIT"
] | null | null | null | predthread/__init__.py | julianirwin/predthread | f2ff7cf833864ed7d3866e2c63dd14282ca2da8c | [
"MIT"
] | null | null | null | predthread/__init__.py | julianirwin/predthread | f2ff7cf833864ed7d3866e2c63dd14282ca2da8c | [
"MIT"
] | null | null | null | from .matchresult import MatchResult
from .predthread import PredictionThread
__all__ = [MatchResult, PredictionThread] | 30 | 41 | 0.85 | 11 | 120 | 8.909091 | 0.545455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 120 | 4 | 41 | 30 | 0.907407 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
176285cccd6e714b1e5a4bcb3e5e7685dbf8dbb8 | 58 | py | Python | pymatgen/command_line/tests/__init__.py | cajfisher/pymatgen | 286c304e38102d567723a71f733e0c304b72035d | [
"MIT"
] | 6 | 2015-02-06T08:27:09.000Z | 2021-02-28T14:42:52.000Z | pymatgen/command_line/tests/__init__.py | cajfisher/pymatgen | 286c304e38102d567723a71f733e0c304b72035d | [
"MIT"
] | null | null | null | pymatgen/command_line/tests/__init__.py | cajfisher/pymatgen | 286c304e38102d567723a71f733e0c304b72035d | [
"MIT"
] | 3 | 2018-10-17T19:08:09.000Z | 2021-12-02T20:26:58.000Z | __author__ = "Shyue"
__date__ = "Jun 10, 2011 7:55:47 AM"
| 19.333333 | 36 | 0.672414 | 10 | 58 | 3.1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.229167 | 0.172414 | 58 | 2 | 37 | 29 | 0.416667 | 0 | 0 | 0 | 0 | 0 | 0.482759 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
1764680d61f422d00e977aa06cf7d9eca3b03d6f | 148 | py | Python | src/sampleproject/__main__.py | mw-white/moonraker_poll_api | a45c4dd28e7901148260fadc325c569cec2bbfbf | [
"MIT"
] | 35 | 2019-10-08T16:56:56.000Z | 2022-03-31T21:35:04.000Z | src/sampleproject/__main__.py | mw-white/moonraker_poll_api | a45c4dd28e7901148260fadc325c569cec2bbfbf | [
"MIT"
] | 12 | 2019-10-07T19:41:15.000Z | 2021-01-26T14:45:06.000Z | src/sampleproject/__main__.py | mw-white/moonraker_poll_api | a45c4dd28e7901148260fadc325c569cec2bbfbf | [
"MIT"
] | 7 | 2019-10-08T16:57:06.000Z | 2022-03-02T18:45:21.000Z | """
Package interface.
This is the main package interface.
"""
from sampleproject import cli_int1
if __name__ == '__main__':
cli_int1.main()
| 13.454545 | 35 | 0.716216 | 19 | 148 | 5.052632 | 0.684211 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016393 | 0.175676 | 148 | 10 | 36 | 14.8 | 0.770492 | 0.371622 | 0 | 0 | 0 | 0 | 0.094118 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.