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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
aab66d3f930b91ed6ee542a038971d5294bc6db2 | 462 | py | Python | code-everyday-challenge/n252_random_point_in_circle.py | ved93/Deliberate-Practice-code-everyday-challenge | f32ced6452fa6b503b332df195e2b14791dd3094 | [
"MIT"
] | null | null | null | code-everyday-challenge/n252_random_point_in_circle.py | ved93/Deliberate-Practice-code-everyday-challenge | f32ced6452fa6b503b332df195e2b14791dd3094 | [
"MIT"
] | null | null | null | code-everyday-challenge/n252_random_point_in_circle.py | ved93/Deliberate-Practice-code-everyday-challenge | f32ced6452fa6b503b332df195e2b14791dd3094 | [
"MIT"
] | null | null | null |
# https://jyopari.github.io/randomCirc.html
# https://stackoverflow.com/questions/5837572/generate-a-random-point-within-a-circle-uniformly/50746409#50746409
# https://leetcode.com/problems/generate-random-point-in-a-circle/discuss/1113623/JS-Python-Java-C%2B%2B-or-Polar-Notation-Solution-w-Explanation
# https://st... | 22 | 145 | 0.779221 | 63 | 462 | 5.587302 | 0.587302 | 0.09375 | 0.119318 | 0.170455 | 0.539773 | 0.539773 | 0.539773 | 0.539773 | 0.539773 | 0.539773 | 0 | 0.126728 | 0.060606 | 462 | 20 | 146 | 23.1 | 0.684332 | 0.939394 | 0 | null | 1 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
2ab3c9ec995a5d42363b66eb9e0bac76438e6eb1 | 1,328 | py | Python | pycausal_explorer/datasets/lalonde_nsw_jobs.py | gotolino/pycausal-explorer | 250309674c0657b9ccd318aea0893827da1badfe | [
"MIT"
] | 3 | 2022-01-28T12:32:43.000Z | 2022-02-12T23:26:52.000Z | pycausal_explorer/datasets/lalonde_nsw_jobs.py | gotolino/pycausal-explorer | 250309674c0657b9ccd318aea0893827da1badfe | [
"MIT"
] | 8 | 2022-02-06T19:34:47.000Z | 2022-03-11T17:24:23.000Z | pycausal_explorer/datasets/lalonde_nsw_jobs.py | gotolino/pycausal-explorer | 250309674c0657b9ccd318aea0893827da1badfe | [
"MIT"
] | null | null | null | """
Data sets were downloaded from NYU website: http://users.nber.org/~rdehejia/nswdata2.html
The data are drawn from a paper by Robert Lalonde,
"Evaluating the Econometric Evaluations of Training Programs,"
American Economic Review, Vol. 76, pp. 604-620.
We are grateful to him for allowing us to u... | 39.058824 | 106 | 0.71988 | 199 | 1,328 | 4.708543 | 0.592965 | 0.01921 | 0.044824 | 0.03842 | 0.11953 | 0.11953 | 0.070438 | 0 | 0 | 0 | 0 | 0.031579 | 0.213102 | 1,328 | 33 | 107 | 40.242424 | 0.865072 | 0.750753 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0.6 | 0.2 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
2adcfb10a3cc5f924d284b6e0bc2e36da4e9c859 | 242 | py | Python | py/cidoc_crm_types/properties/p164i_was_time_span_of.py | minorg/cidoc-crm-types | 9018bdbf0658e4d28a87bc94543e467be45d8aa5 | [
"Apache-2.0"
] | null | null | null | py/cidoc_crm_types/properties/p164i_was_time_span_of.py | minorg/cidoc-crm-types | 9018bdbf0658e4d28a87bc94543e467be45d8aa5 | [
"Apache-2.0"
] | null | null | null | py/cidoc_crm_types/properties/p164i_was_time_span_of.py | minorg/cidoc-crm-types | 9018bdbf0658e4d28a87bc94543e467be45d8aa5 | [
"Apache-2.0"
] | null | null | null | from .p160i_is_temporal_projection_of import P160iIsTemporalProjectionOf
from dataclasses import dataclass
@dataclass
class P164iWasTimeSpanOf(P160iIsTemporalProjectionOf):
URI = "http://erlangen-crm.org/current/P164i_was_time-span_of"
| 30.25 | 72 | 0.85124 | 27 | 242 | 7.37037 | 0.814815 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067568 | 0.082645 | 242 | 7 | 73 | 34.571429 | 0.828829 | 0 | 0 | 0 | 0 | 0 | 0.223141 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 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 |
2ae6f78c8cb0ef15056203c9666f3d11ea26a709 | 402 | py | Python | bot/userstorage/__init__.py | vBazilevich/GuitarChallengeBot | 5f5f967fe57d98c330a42e144a4eba8f48985087 | [
"Apache-2.0"
] | 22 | 2021-09-24T15:04:16.000Z | 2021-10-07T18:40:03.000Z | bot/userstorage/__init__.py | vBazilevich/GuitarChallengeBot | 5f5f967fe57d98c330a42e144a4eba8f48985087 | [
"Apache-2.0"
] | 14 | 2021-09-19T12:05:17.000Z | 2021-10-09T12:21:54.000Z | bot/userstorage/__init__.py | vBazilevich/GuitarChallengeBot | 5f5f967fe57d98c330a42e144a4eba8f48985087 | [
"Apache-2.0"
] | null | null | null | from .missingdatabaseurlerror import MissingUserDatabaseURLError
from .updatingnonexistingusererror import UpdatingNonExistingUserError
from .accessingnonexistingusererror import AccessingNonExistingUserError
from .userstorage import UserStorage
__all__ = ["MissingUserDatabaseURLError",
"UpdatingNonExisting... | 40.2 | 72 | 0.81592 | 21 | 402 | 15.428571 | 0.380952 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.139303 | 402 | 9 | 73 | 44.666667 | 0.936416 | 0 | 0 | 0 | 0 | 0 | 0.236318 | 0.208955 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 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 |
2af99a5914fb5778bd6f5e0f204f83d634810b23 | 1,387 | py | Python | Service/lis/rsaLis.py | Chise1/bili2.0 | e07a7705d09006136fdc9e6bb22646957b719416 | [
"MIT"
] | 1 | 2020-07-02T08:39:20.000Z | 2020-07-02T08:39:20.000Z | Service/lis/rsaLis.py | Chise1/bili2.0 | e07a7705d09006136fdc9e6bb22646957b719416 | [
"MIT"
] | null | null | null | Service/lis/rsaLis.py | Chise1/bili2.0 | e07a7705d09006136fdc9e6bb22646957b719416 | [
"MIT"
] | null | null | null | # -*- encoding: utf-8 -*-
"""
@File : rsaLis.py
@Time : 2020/5/5 21:51
@Author : chise
@Email : chise123@live.com
@Software: PyCharm
@info :RSA使用到的公钥和秘钥
"""
PublicKey="""-----BEGIN PUBLIC KEY-----
MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCsEef8bPDSqkDfq6gvjUFIQZ2I
GEoJchmQR5sqUZvZZvsDt0mshqvuF+0sCCkQfL9Usd29y7... | 42.030303 | 64 | 0.866619 | 83 | 1,387 | 14.481928 | 0.891566 | 0.014975 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.124242 | 0.048306 | 1,387 | 33 | 65 | 42.030303 | 0.786364 | 0.114636 | 0 | 0.083333 | 0 | 0 | 0.969697 | 0.858313 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
63252036b45acb15eea8a206d2809b5b831fb512 | 245 | py | Python | vjudge_interface/requests/get_group_data.py | Quinas/vjudge-interface | 3302ae084f7781bc465443c9fd957065bce67fc0 | [
"MIT"
] | null | null | null | vjudge_interface/requests/get_group_data.py | Quinas/vjudge-interface | 3302ae084f7781bc465443c9fd957065bce67fc0 | [
"MIT"
] | 3 | 2021-03-31T19:28:18.000Z | 2021-12-13T20:24:37.000Z | vjudge_interface/requests/get_group_data.py | Quinas/vjudge_interface | 3302ae084f7781bc465443c9fd957065bce67fc0 | [
"MIT"
] | null | null | null | from .request import Request
class GetGroupData(Request):
def __init__(self, short_name: str):
super().__init__()
self.short_name = short_name
self.path = "group/{}".format(short_name)
self.method = "get"
| 20.416667 | 49 | 0.632653 | 29 | 245 | 4.931034 | 0.586207 | 0.251748 | 0.181818 | 0.237762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.244898 | 245 | 11 | 50 | 22.272727 | 0.772973 | 0 | 0 | 0 | 0 | 0 | 0.044898 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.428571 | 0 | 1 | 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 | 0 | 0 | 4 |
2de32e20dc76c74193b001292acd40eecc01f203 | 116 | py | Python | pyops/libs/__init__.py | webji/pyops | df3403c8900ea76bf62d68610ae9d024fa046fc3 | [
"Apache-2.0"
] | 1 | 2018-01-11T06:27:19.000Z | 2018-01-11T06:27:19.000Z | pyops/libs/__init__.py | webji/pyops | df3403c8900ea76bf62d68610ae9d024fa046fc3 | [
"Apache-2.0"
] | 3 | 2018-01-10T05:51:18.000Z | 2018-01-11T06:34:37.000Z | pyops/libs/__init__.py | webji/pyops | df3403c8900ea76bf62d68610ae9d024fa046fc3 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
# Author: Will<willji@outlook.com>
# Created on 2018-01-10 13:04:12
| 23.2 | 34 | 0.655172 | 20 | 116 | 3.8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148515 | 0.12931 | 116 | 4 | 35 | 29 | 0.60396 | 0.931034 | 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 |
2df484a1b2a4a39c34ca729f98b8f15ca8e0c9cc | 20,294 | py | Python | pytests_stale/cbas/cbas_x509.py | sumedhpb/TAF | fc6f4cb8dc0b8234393f2e52a7b4a1aa723d9449 | [
"Apache-2.0"
] | 9 | 2019-02-19T05:55:00.000Z | 2022-01-20T10:37:28.000Z | pytests_stale/cbas/cbas_x509.py | sumedhpb/TAF | fc6f4cb8dc0b8234393f2e52a7b4a1aa723d9449 | [
"Apache-2.0"
] | 2 | 2019-02-19T07:28:54.000Z | 2019-06-18T11:22:29.000Z | pytests_stale/cbas/cbas_x509.py | sumedhpb/TAF | fc6f4cb8dc0b8234393f2e52a7b4a1aa723d9449 | [
"Apache-2.0"
] | 155 | 2018-11-13T14:57:07.000Z | 2022-03-28T11:53:22.000Z | from basetestcase import BaseTestCase
from security_utils.x509main import x509main
from membase.api.rest_client import RestConnection, RestHelper
import commands
import json
from remote.remote_util import RemoteMachineShellConnection
import subprocess
import copy
from lib.BucketLib.BucketOperations import BucketHelper
... | 56.372222 | 243 | 0.65847 | 2,442 | 20,294 | 5.295659 | 0.122441 | 0.040984 | 0.053588 | 0.071451 | 0.746984 | 0.725874 | 0.696103 | 0.676307 | 0.663934 | 0.658367 | 0 | 0.029752 | 0.216616 | 20,294 | 359 | 244 | 56.529248 | 0.783683 | 0.026855 | 0 | 0.443182 | 0 | 0.007576 | 0.196254 | 0.052727 | 0 | 0 | 0 | 0 | 0.075758 | 0 | null | null | 0.07197 | 0.037879 | null | null | 0.011364 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
9304fbdb605c62298f615b842fb398760c55ae2b | 146 | py | Python | exercicios/ex061.py | MaikolSantos/curso-em-video-python3 | 3a1ab2761b8a0f98e128083a7b0e50b19a75b7bf | [
"MIT"
] | null | null | null | exercicios/ex061.py | MaikolSantos/curso-em-video-python3 | 3a1ab2761b8a0f98e128083a7b0e50b19a75b7bf | [
"MIT"
] | null | null | null | exercicios/ex061.py | MaikolSantos/curso-em-video-python3 | 3a1ab2761b8a0f98e128083a7b0e50b19a75b7bf | [
"MIT"
] | null | null | null | t = int(input('Digite o primeiro termo: '))
r = int(input('Digite a Razão: '))
c = 1
while c <= 10:
print(t, end=' ')
t += r
c += 1
| 14.6 | 43 | 0.5 | 25 | 146 | 2.92 | 0.64 | 0.219178 | 0.383562 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038835 | 0.294521 | 146 | 9 | 44 | 16.222222 | 0.669903 | 0 | 0 | 0 | 0 | 0 | 0.287671 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 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 |
93157191ffc1ce8957944bf35a326dc54a0c8bcc | 279 | py | Python | mad_gui/plugins/helper.py | potetopotatooo/mad-gui | 86f789e33deba15f39869bbfcd2e9297a317831f | [
"MIT"
] | 4 | 2021-09-01T12:25:10.000Z | 2022-01-04T13:11:09.000Z | mad_gui/plugins/helper.py | potetopotatooo/mad-gui | 86f789e33deba15f39869bbfcd2e9297a317831f | [
"MIT"
] | 7 | 2021-08-03T10:38:44.000Z | 2021-12-21T16:01:52.000Z | mad_gui/plugins/helper.py | mad-lab-fau/mad-gui | 40cf3359ee76d38d7855bfae63bffd7afb345729 | [
"MIT"
] | 3 | 2021-08-10T13:21:24.000Z | 2022-02-02T10:01:30.000Z | from mad_gui.plugins.base import BasePlugin
from typing import List, Type, TypeVar
T = TypeVar("T", bound=BasePlugin)
def filter_plugins(plugin_list: List[Type[BasePlugin]], baseclass: Type[T]) -> List[Type[T]]:
return [b for b in plugin_list if issubclass(b, baseclass)]
| 31 | 93 | 0.74552 | 43 | 279 | 4.744186 | 0.534884 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.132616 | 279 | 8 | 94 | 34.875 | 0.842975 | 0 | 0 | 0 | 0 | 0 | 0.003584 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0.2 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
93659e62900be38df60c16160da076ab470ca156 | 292 | py | Python | core/views.py | ThallyssonKlein/DjangoBasicAuth | 93c60c973f3ad07bfc1fd1ba9139d118d4a645bc | [
"WTFPL"
] | 1 | 2022-01-18T13:54:26.000Z | 2022-01-18T13:54:26.000Z | core/views.py | ThallyssonKlein/DjangoBasicAuth | 93c60c973f3ad07bfc1fd1ba9139d118d4a645bc | [
"WTFPL"
] | null | null | null | core/views.py | ThallyssonKlein/DjangoBasicAuth | 93c60c973f3ad07bfc1fd1ba9139d118d4a645bc | [
"WTFPL"
] | null | null | null | from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework.permissions import IsAuthenticated
class Home(APIView):
permission_classes = (IsAuthenticated, )
def get(self, request, format=None):
return Response('Ok', status=200)
| 29.2 | 54 | 0.777397 | 35 | 292 | 6.371429 | 0.657143 | 0.107623 | 0.2287 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012048 | 0.14726 | 292 | 9 | 55 | 32.444444 | 0.883534 | 0 | 0 | 0 | 0 | 0 | 0.006849 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0.142857 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 4 |
fa787d8753a60e50157b1f4fcf47af4ab06c8ba2 | 452 | py | Python | rpi Code/scanner_tests/python_scan.py | wrightsh/Michigan-Linear-Book-Scanner | 38caadb08030646c92b605877e4dedcdb8a6ec5e | [
"MIT"
] | 9 | 2015-11-05T00:47:34.000Z | 2021-08-22T11:56:20.000Z | rpi Code/scanner_tests/python_scan.py | wrightsh/Michigan-Linear-Book-Scanner | 38caadb08030646c92b605877e4dedcdb8a6ec5e | [
"MIT"
] | 1 | 2015-07-14T08:48:03.000Z | 2015-07-14T08:48:03.000Z | rpi Code/scanner_tests/python_scan.py | wrightsh/Michigan-Linear-Book-Scanner | 38caadb08030646c92b605877e4dedcdb8a6ec5e | [
"MIT"
] | 5 | 2015-04-10T15:40:51.000Z | 2019-09-28T19:02:07.000Z |
import pexpect
command = 'sudo scanimage --format=tiff --batch="my_batch_scan_2_%d.tiff" --batch-prompt'
scanner_1 = pexpect.spawn(command)
scanner_1.expect('Press <RETURN> to continue.')
scanner_1.sendline('')
print "Alive: ", scanner_1.isalive()
scanner_1.expect('Press <RETURN> to continue.')
scanner_1.sendlin... | 19.652174 | 89 | 0.725664 | 63 | 452 | 5 | 0.396825 | 0.228571 | 0.133333 | 0.180952 | 0.673016 | 0.593651 | 0.593651 | 0.593651 | 0.593651 | 0.593651 | 0 | 0.024814 | 0.108407 | 452 | 22 | 90 | 20.545455 | 0.756824 | 0 | 0 | 0.727273 | 0 | 0 | 0.398664 | 0.073497 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | null | null | 0.272727 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
fa91a5f0c20acfe53424a9a84fbbf82e6cf74b93 | 201 | py | Python | PrefixSums/test_passingcars.py | matt-sm/codility | 355eef4a1be67f5758faa884cb97a5c0ff65169e | [
"MIT"
] | null | null | null | PrefixSums/test_passingcars.py | matt-sm/codility | 355eef4a1be67f5758faa884cb97a5c0ff65169e | [
"MIT"
] | null | null | null | PrefixSums/test_passingcars.py | matt-sm/codility | 355eef4a1be67f5758faa884cb97a5c0ff65169e | [
"MIT"
] | null | null | null | import pytest
import passingcars
testdata = [([0, 1, 0, 1, 1], 5)]
@pytest.mark.parametrize("A,expected", testdata)
def test_passingcars(A, expected):
assert passingcars.solution(A) == expected
| 20.1 | 48 | 0.711443 | 27 | 201 | 5.259259 | 0.555556 | 0.190141 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034682 | 0.139303 | 201 | 9 | 49 | 22.333333 | 0.786127 | 0 | 0 | 0 | 0 | 0 | 0.049751 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0.5 | 0.333333 | 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 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 4 |
fabd3201d388f096448060dc1433afda02c50447 | 113 | py | Python | modules/__init__.py | cfatduck/poloniexlendingbot | b59ab8709220b3be1481ca8949a80f944b05018e | [
"MIT"
] | 640 | 2017-05-12T21:18:02.000Z | 2018-04-26T11:36:34.000Z | modules/__init__.py | cfatduck/poloniexlendingbot | b59ab8709220b3be1481ca8949a80f944b05018e | [
"MIT"
] | 312 | 2015-08-18T11:15:20.000Z | 2017-05-12T19:54:44.000Z | modules/__init__.py | cfatduck/poloniexlendingbot | b59ab8709220b3be1481ca8949a80f944b05018e | [
"MIT"
] | 216 | 2017-05-14T16:09:34.000Z | 2018-04-20T21:55:57.000Z | # coding=utf-8
# We need this file so Python knows it is okay to import modules from this folder. Do not Delete.
| 37.666667 | 97 | 0.752212 | 22 | 113 | 3.863636 | 0.954545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010989 | 0.19469 | 113 | 2 | 98 | 56.5 | 0.923077 | 0.955752 | 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 |
fae285f5a4912652ec55be17ba9e7d8eb360a86f | 143 | py | Python | web_scraping.py | MrInternauta/Python-apuntes | c001c8f055955091af7f995ab2fd53b3c9d11a57 | [
"MIT"
] | null | null | null | web_scraping.py | MrInternauta/Python-apuntes | c001c8f055955091af7f995ab2fd53b3c9d11a57 | [
"MIT"
] | null | null | null | web_scraping.py | MrInternauta/Python-apuntes | c001c8f055955091af7f995ab2fd53b3c9d11a57 | [
"MIT"
] | null | null | null | #Permite obtener datos de un sitio web y poderlos almacernar en la computadora
#Ejemplo: automatizar bajada de imagenes de https://xkcd.com/
| 47.666667 | 79 | 0.79021 | 22 | 143 | 5.136364 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 143 | 2 | 80 | 71.5 | 0.933884 | 0.958042 | 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 |
fae81146a8dfa84a76dfbd96e51a6028b6b80f03 | 288 | py | Python | Assignment1/Python Program (1)/Python Program/leapyear.py | poojavaibhavsahu/Pooja_Python | 58122bfa8586883145042b11fe1cc013c803ab4f | [
"bzip2-1.0.6"
] | null | null | null | Assignment1/Python Program (1)/Python Program/leapyear.py | poojavaibhavsahu/Pooja_Python | 58122bfa8586883145042b11fe1cc013c803ab4f | [
"bzip2-1.0.6"
] | null | null | null | Assignment1/Python Program (1)/Python Program/leapyear.py | poojavaibhavsahu/Pooja_Python | 58122bfa8586883145042b11fe1cc013c803ab4f | [
"bzip2-1.0.6"
] | null | null | null | year=int(input("Enter the year in 4 digits:"))
if year%4==0 and year%100!=0:
print(year,"year is leap year")
elif year%100==0 and year%400==0:
print(year, "year is leap year")
elif year%400==0:
print(year, "year is leap year")
else:
print(year, "year is not a leap year")
| 28.8 | 46 | 0.649306 | 56 | 288 | 3.339286 | 0.357143 | 0.192513 | 0.278075 | 0.320856 | 0.524064 | 0.524064 | 0.524064 | 0.524064 | 0.524064 | 0 | 0 | 0.081197 | 0.1875 | 288 | 9 | 47 | 32 | 0.717949 | 0 | 0 | 0.333333 | 0 | 0 | 0.350694 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.444444 | 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 |
fae96171bd50b086a3a82694cc26c0b60b296420 | 1,684 | py | Python | src/python/pants/backend/python/rules/python_test_runner_test.py | mpopenko-exos/pants | 47d27037c8b13291fc9023e56ddd1b1defdf1b8e | [
"Apache-2.0"
] | null | null | null | src/python/pants/backend/python/rules/python_test_runner_test.py | mpopenko-exos/pants | 47d27037c8b13291fc9023e56ddd1b1defdf1b8e | [
"Apache-2.0"
] | 1 | 2018-09-04T17:37:34.000Z | 2018-09-04T19:42:58.000Z | src/python/pants/backend/python/rules/python_test_runner_test.py | mpopenko-exos/pants | 47d27037c8b13291fc9023e56ddd1b1defdf1b8e | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from pants.backend.python.rules.python_test_runner import calculate_timeout_seconds
def test_configured_timeout_greater_than_max():
assert calculate_timeout_seconds(
timeouts_enabl... | 21.87013 | 83 | 0.751781 | 214 | 1,684 | 5.53271 | 0.214953 | 0.120777 | 0.174831 | 0.195946 | 0.774493 | 0.711149 | 0.628378 | 0.530405 | 0.530405 | 0.413851 | 0 | 0.023622 | 0.170428 | 1,684 | 76 | 84 | 22.157895 | 0.823908 | 0.074822 | 0 | 0.754386 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140351 | 1 | 0.140351 | true | 0 | 0.017544 | 0 | 0.157895 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
faf7f6b4fa3773ae78f39a278debe929d52eb82e | 85 | py | Python | soie/routing/__init__.py | Eliot00/soie | 875b73997d4328e8f492eb2d64aca37bbf7335aa | [
"Apache-2.0"
] | null | null | null | soie/routing/__init__.py | Eliot00/soie | 875b73997d4328e8f492eb2d64aca37bbf7335aa | [
"Apache-2.0"
] | null | null | null | soie/routing/__init__.py | Eliot00/soie | 875b73997d4328e8f492eb2d64aca37bbf7335aa | [
"Apache-2.0"
] | null | null | null | from .routers import Router
from .routes import Route
__all__ = ["Router", "Route"]
| 17 | 29 | 0.729412 | 11 | 85 | 5.272727 | 0.636364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152941 | 85 | 4 | 30 | 21.25 | 0.805556 | 0 | 0 | 0 | 0 | 0 | 0.129412 | 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 |
fafb9daebeb6dc42a5c2f8716258b879629d4bc5 | 1,312 | py | Python | typedef/errors.py | bnbdr/typedef | 53fd2a8858eadc4496ea6f99891dcd33d28907f2 | [
"MIT"
] | 2 | 2019-05-24T12:04:58.000Z | 2020-04-17T16:34:56.000Z | typedef/errors.py | bnbdr/typedef | 53fd2a8858eadc4496ea6f99891dcd33d28907f2 | [
"MIT"
] | null | null | null | typedef/errors.py | bnbdr/typedef | 53fd2a8858eadc4496ea6f99891dcd33d28907f2 | [
"MIT"
] | null | null | null | class TypedefBaseException(Exception):
"""
Base exception for package
"""
class BufferTooShort(TypedefBaseException):
"""
Raised whenever the input buffer/file is too small to initialize the type
"""
class UnsupportedInitializationMethod(TypedefBaseException):
"""
Raised when trying ... | 22.237288 | 140 | 0.71189 | 139 | 1,312 | 6.719424 | 0.510791 | 0.194861 | 0.192719 | 0.192719 | 0.222698 | 0.100642 | 0.100642 | 0 | 0 | 0 | 0 | 0.001947 | 0.217226 | 1,312 | 58 | 141 | 22.62069 | 0.907498 | 0.480183 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 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 |
4f0c418c9c8e9f781f828f264c24d6d3f67e812c | 823 | py | Python | tests/onegov/pay/test_utils.py | politbuero-kampagnen/onegov-cloud | 20148bf321b71f617b64376fe7249b2b9b9c4aa9 | [
"MIT"
] | null | null | null | tests/onegov/pay/test_utils.py | politbuero-kampagnen/onegov-cloud | 20148bf321b71f617b64376fe7249b2b9b9c4aa9 | [
"MIT"
] | null | null | null | tests/onegov/pay/test_utils.py | politbuero-kampagnen/onegov-cloud | 20148bf321b71f617b64376fe7249b2b9b9c4aa9 | [
"MIT"
] | null | null | null | from decimal import Decimal
from onegov.pay import Price
def test_price():
assert Price(0, 'CHF') == Price(0, 'CHF')
assert Price(0, 'CHF') < Price(1, 'CHF')
assert Price(10, 'CHF') + Price(20, 'CHF') == Price(30, 'CHF')
assert Price.zero() + Price(10, 'CHF') == Price(10, 'CHF')
assert Price(10, '... | 30.481481 | 67 | 0.55164 | 115 | 823 | 3.930435 | 0.208696 | 0.132743 | 0.243363 | 0.176991 | 0.307522 | 0.219027 | 0.219027 | 0.219027 | 0.150442 | 0 | 0 | 0.077287 | 0.229648 | 823 | 26 | 68 | 31.653846 | 0.635647 | 0 | 0 | 0 | 0 | 0 | 0.140948 | 0 | 0 | 0 | 0 | 0 | 0.619048 | 1 | 0.047619 | true | 0 | 0.095238 | 0 | 0.142857 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
87cd94c9c07c049e17f70ea38c4358e0102f04f9 | 286 | py | Python | modules/2.79/bpy_extras/view3d_utils.py | cmbasnett/fake-bpy-module | acb8b0f102751a9563e5b5e5c7cd69a4e8aa2a55 | [
"MIT"
] | null | null | null | modules/2.79/bpy_extras/view3d_utils.py | cmbasnett/fake-bpy-module | acb8b0f102751a9563e5b5e5c7cd69a4e8aa2a55 | [
"MIT"
] | null | null | null | modules/2.79/bpy_extras/view3d_utils.py | cmbasnett/fake-bpy-module | acb8b0f102751a9563e5b5e5c7cd69a4e8aa2a55 | [
"MIT"
] | null | null | null | def region_2d_to_vector_3d(region, rv3d, coord):
pass
def region_2d_to_origin_3d(region, rv3d, coord, clamp=None):
pass
def region_2d_to_location_3d(region, rv3d, coord, depth_location):
pass
def location_3d_to_region_2d(region, rv3d, coord, default=None):
pass
| 16.823529 | 66 | 0.748252 | 46 | 286 | 4.282609 | 0.326087 | 0.162437 | 0.304569 | 0.19797 | 0.172589 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050209 | 0.164336 | 286 | 16 | 67 | 17.875 | 0.774059 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0.5 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
87d02f838f5f5fcd8fb38fb301124462f1509800 | 215 | py | Python | tests/manual/test_performance_regressions.py | AaronReer/ancp-bids | 4a71d98f2549a5a22704c11bfa1fd260c8135879 | [
"MIT"
] | null | null | null | tests/manual/test_performance_regressions.py | AaronReer/ancp-bids | 4a71d98f2549a5a22704c11bfa1fd260c8135879 | [
"MIT"
] | null | null | null | tests/manual/test_performance_regressions.py | AaronReer/ancp-bids | 4a71d98f2549a5a22704c11bfa1fd260c8135879 | [
"MIT"
] | null | null | null | from ..base_test_case import *
import ancpbids
class PerformanceRegressionTestCase(BaseTestCase):
def test_batch_loading(self):
for i in range(0, 10):
ds = ancpbids.load_dataset(DS005_DIR)
| 23.888889 | 50 | 0.716279 | 27 | 215 | 5.481481 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035088 | 0.204651 | 215 | 8 | 51 | 26.875 | 0.830409 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
87d915c876f8e2c1457fc91a08e8874c54b6c270 | 105 | py | Python | gym_carla/setup.py | kushantp58/RL_CARLA | c5fe2a9743d985f03fe824b7b39cfcb3f9dfb0bc | [
"Apache-2.0"
] | 33 | 2021-02-26T10:03:28.000Z | 2022-03-23T07:24:51.000Z | gym_carla/setup.py | kushantp58/RL_CARLA | c5fe2a9743d985f03fe824b7b39cfcb3f9dfb0bc | [
"Apache-2.0"
] | 7 | 2021-03-10T11:52:48.000Z | 2022-02-06T18:31:09.000Z | gym_carla/setup.py | kushantp58/RL_CARLA | c5fe2a9743d985f03fe824b7b39cfcb3f9dfb0bc | [
"Apache-2.0"
] | 7 | 2021-03-17T10:27:07.000Z | 2022-01-27T05:47:38.000Z | from setuptools import setup
setup(name='gym_carla', version='0.1', install_requires=['gym', 'pygame'])
| 26.25 | 74 | 0.733333 | 15 | 105 | 5 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020833 | 0.085714 | 105 | 3 | 75 | 35 | 0.760417 | 0 | 0 | 0 | 0 | 0 | 0.2 | 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 |
87f45af9f7c00162658a4ffea38c25987bb32623 | 73 | py | Python | ilf/ethereum/__init__.py | RainOfPhone/ilf | 83c34c2147f05a26fde81f94acb58fe5719b05a2 | [
"Apache-2.0"
] | 2 | 2022-02-24T10:05:54.000Z | 2022-03-21T06:29:56.000Z | ilf/ethereum/__init__.py | RainOfPhone/ilf | 83c34c2147f05a26fde81f94acb58fe5719b05a2 | [
"Apache-2.0"
] | null | null | null | ilf/ethereum/__init__.py | RainOfPhone/ilf | 83c34c2147f05a26fde81f94acb58fe5719b05a2 | [
"Apache-2.0"
] | null | null | null | from .solidity import AccountManager, SolType, Method
from .evm import *
| 24.333333 | 53 | 0.794521 | 9 | 73 | 6.444444 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136986 | 73 | 2 | 54 | 36.5 | 0.920635 | 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 |
e2174fb27ea5694b83142389809fe22643cf34f1 | 179 | py | Python | team_in_Python.py | agancsos/python | 00f7ca4372ae18f35474a9b899457057511ab71b | [
"MIT"
] | null | null | null | team_in_Python.py | agancsos/python | 00f7ca4372ae18f35474a9b899457057511ab71b | [
"MIT"
] | null | null | null | team_in_Python.py | agancsos/python | 00f7ca4372ae18f35474a9b899457057511ab71b | [
"MIT"
] | null | null | null | team={};
team[Lead]=\"t\";
team[SR Analyst]=\"Rob\";
team[SR Analyst]=\"Usha\";
team[SR Analyst]=\"Tom\";
for title,person in team.iteritems():
print person,\",\",title
| 19.888889 | 38 | 0.597765 | 25 | 179 | 4.28 | 0.56 | 0.168224 | 0.364486 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134078 | 179 | 8 | 39 | 22.375 | 0.690323 | 0 | 0 | 0 | 0 | 0 | 0.098837 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.142857 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
354c9dfb1758354fb97388bf112bb6e468780b74 | 37 | py | Python | venv/lib/python3.5/site-packages/bears/java/__init__.py | prashant0598/CoffeeApp | 4fa006aebf06e12ed34766450ddcfa548ee63307 | [
"MIT"
] | null | null | null | venv/lib/python3.5/site-packages/bears/java/__init__.py | prashant0598/CoffeeApp | 4fa006aebf06e12ed34766450ddcfa548ee63307 | [
"MIT"
] | null | null | null | venv/lib/python3.5/site-packages/bears/java/__init__.py | prashant0598/CoffeeApp | 4fa006aebf06e12ed34766450ddcfa548ee63307 | [
"MIT"
] | null | null | null | """
Contains Java related bears.
"""
| 9.25 | 28 | 0.648649 | 4 | 37 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162162 | 37 | 3 | 29 | 12.333333 | 0.774194 | 0.756757 | 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 |
35598bc4ededeafd4f27e28db0ecaaf411e07c45 | 166 | py | Python | examples/save_data.py | BuildJet/xBOUT | 523a78c8fa62cc390cfb9e434fc152c51ba9db7c | [
"Apache-2.0"
] | 15 | 2018-12-08T15:57:58.000Z | 2022-03-22T11:40:25.000Z | examples/save_data.py | BuildJet/xBOUT | 523a78c8fa62cc390cfb9e434fc152c51ba9db7c | [
"Apache-2.0"
] | 210 | 2018-12-07T19:12:14.000Z | 2022-03-28T13:06:05.000Z | examples/save_data.py | BuildJet/xBOUT | 523a78c8fa62cc390cfb9e434fc152c51ba9db7c | [
"Apache-2.0"
] | 13 | 2019-02-12T14:39:19.000Z | 2021-09-07T18:54:30.000Z | from xcollect.boutdataset import open_boutdataset
from combine import combine_boutdata
ds = open_boutdataset(datapath="./BOUT.dmp.*.nc")
ds.bout.save(savepath=".")
| 23.714286 | 49 | 0.789157 | 22 | 166 | 5.818182 | 0.636364 | 0.234375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084337 | 166 | 6 | 50 | 27.666667 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0.096386 | 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 |
357772aa823c0033c4dfeeaf6046cc05db51a022 | 92 | py | Python | jinja_app/apps.py | Waixi00008/django_tutorial | 2d6b26022c70c0e2332a146aeda39be1e99f7f39 | [
"MIT"
] | 1 | 2021-12-03T04:19:56.000Z | 2021-12-03T04:19:56.000Z | jinja_app/apps.py | Waixi00008/django_tutorial | 2d6b26022c70c0e2332a146aeda39be1e99f7f39 | [
"MIT"
] | 1 | 2020-10-16T09:22:51.000Z | 2020-10-16T09:22:51.000Z | jinja_app/apps.py | Waixi00008/django_tutorial | 2d6b26022c70c0e2332a146aeda39be1e99f7f39 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class JinjaAppConfig(AppConfig):
name = 'jinja_app'
| 15.333333 | 33 | 0.76087 | 11 | 92 | 6.272727 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163043 | 92 | 5 | 34 | 18.4 | 0.896104 | 0 | 0 | 0 | 0 | 0 | 0.097826 | 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 |
358e0ab419e732f335bf09755f0e3787829a9435 | 202 | py | Python | backend/flungo_portfolio/main/serializers.py | mahmoodDehghan/flungo-portfolio | 7f5e853ef47494823d7de417f60334311eae8f9c | [
"MIT"
] | null | null | null | backend/flungo_portfolio/main/serializers.py | mahmoodDehghan/flungo-portfolio | 7f5e853ef47494823d7de417f60334311eae8f9c | [
"MIT"
] | null | null | null | backend/flungo_portfolio/main/serializers.py | mahmoodDehghan/flungo-portfolio | 7f5e853ef47494823d7de417f60334311eae8f9c | [
"MIT"
] | null | null | null | from rest_framework import serializers
from django.contrib.auth import get_user_model
class UserSerializer(serializers.ModelSerializer):
class Meta:
model=get_user_model()
fields=['password'] | 28.857143 | 50 | 0.806931 | 25 | 202 | 6.32 | 0.68 | 0.088608 | 0.151899 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118812 | 202 | 7 | 51 | 28.857143 | 0.88764 | 0 | 0 | 0 | 0 | 0 | 0.039409 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.166667 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 4 |
35909fc8d7c7baf11257a4948a9a2c7c318d49e0 | 53 | py | Python | model/framework/PyBioMed/PyProtein/__init__.py | ersilia-os/eos2ta5 | 013ac89843ce6ddb5256d7af1bdff266c5fedb7c | [
"MIT"
] | 90 | 2016-12-23T05:36:15.000Z | 2022-03-19T21:00:46.000Z | model/framework/PyBioMed/PyProtein/__init__.py | ersilia-os/eos2ta5 | 013ac89843ce6ddb5256d7af1bdff266c5fedb7c | [
"MIT"
] | 9 | 2019-04-24T08:16:22.000Z | 2022-03-28T03:38:02.000Z | model/framework/PyBioMed/PyProtein/__init__.py | ersilia-os/eos2ta5 | 013ac89843ce6ddb5256d7af1bdff266c5fedb7c | [
"MIT"
] | 52 | 2017-03-24T15:50:47.000Z | 2022-03-28T13:46:59.000Z | # -*- coding: utf-8 -*-
"""
construct a package!
"""
| 10.6 | 23 | 0.509434 | 6 | 53 | 4.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023256 | 0.188679 | 53 | 4 | 24 | 13.25 | 0.604651 | 0.811321 | 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 |
ea6ce3d8e63b67dfe756996e3b30b7ab89c912cf | 168 | py | Python | pacote-download/Ex29.py | nkonai/Curso-em-video-Python | c05a60b3daa7d448e1e7f0d4d23f62df5d2c8df2 | [
"MIT"
] | null | null | null | pacote-download/Ex29.py | nkonai/Curso-em-video-Python | c05a60b3daa7d448e1e7f0d4d23f62df5d2c8df2 | [
"MIT"
] | null | null | null | pacote-download/Ex29.py | nkonai/Curso-em-video-Python | c05a60b3daa7d448e1e7f0d4d23f62df5d2c8df2 | [
"MIT"
] | null | null | null | velocidade = float(input('Velocidade do carro em km:'))
if velocidade >80:
print('Voce foi multado no valor de {:.2f} reais'.format((velocidade-80)*7))
print('end') | 42 | 80 | 0.696429 | 26 | 168 | 4.5 | 0.807692 | 0.205128 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041096 | 0.130952 | 168 | 4 | 81 | 42 | 0.760274 | 0 | 0 | 0 | 0 | 0 | 0.414201 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
ea77b1abddbed73f86bf71edb8733e9cab96b27b | 4,332 | py | Python | KnowledgeMapping/PythonBaseExp/json2csv/t.py | nickliqian/ralph_doc_to_chinese | be120ce2bb94a8e8395630218985f5e51ae087d9 | [
"MIT"
] | 8 | 2018-05-22T01:11:33.000Z | 2020-03-19T01:44:55.000Z | KnowledgeMapping/PythonBaseExp/json2csv/t.py | yangliangguang/keep_learning | 47ab39c726cb28713ad22bf4cf39d6b146715910 | [
"MIT"
] | null | null | null | KnowledgeMapping/PythonBaseExp/json2csv/t.py | yangliangguang/keep_learning | 47ab39c726cb28713ad22bf4cf39d6b146715910 | [
"MIT"
] | 3 | 2018-07-25T09:31:53.000Z | 2019-09-14T14:05:31.000Z | # coding=utf-8
import json
import re
# origin = '{"priority": "1.0", "type": "失信被执行人名单", "age": "46", "sexy": "男", "lastmod": "2018-03-06T16:19:37", "StdStg": 6899, "loc": "http://shixin.court.gov.cn/detail?id=701170373", "duty": "一、 被申请执行人为杨思卫、毛友萍、曲宝庆。二、执行标的为借款本金人民币30万元及利息人民币10869.74元整(截止至2017年1月20日),2017年1月21日起,利息在原... | 139.741935 | 1,407 | 0.713758 | 444 | 4,332 | 6.918919 | 0.509009 | 0.019531 | 0.029297 | 0.035156 | 0.18457 | 0.110352 | 0.101237 | 0.101237 | 0.101237 | 0.101237 | 0 | 0.135627 | 0.0741 | 4,332 | 31 | 1,408 | 139.741935 | 0.630267 | 0.598569 | 0 | 0 | 0 | 0.083333 | 0.833623 | 0.403478 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
577690713f70b3e18072e8beb9fb0b70afaf47b2 | 218 | py | Python | api/interests/serializers.py | Juangr1803/Foro-AgrodatAI | a8f23afd32d2ec60d25a03c97f5f353fd0ef5e0b | [
"MIT"
] | 1 | 2021-04-19T16:13:39.000Z | 2021-04-19T16:13:39.000Z | api/interests/serializers.py | Juangr1803/Foro-AgrodatAI | a8f23afd32d2ec60d25a03c97f5f353fd0ef5e0b | [
"MIT"
] | null | null | null | api/interests/serializers.py | Juangr1803/Foro-AgrodatAI | a8f23afd32d2ec60d25a03c97f5f353fd0ef5e0b | [
"MIT"
] | null | null | null | # Rest_Framework
from rest_framework import serializers
# Models
from .models import Interest
class InterestSerializer(serializers.ModelSerializer):
class Meta:
model = Interest
fields = '__all__'
| 21.8 | 54 | 0.747706 | 22 | 218 | 7.136364 | 0.636364 | 0.165605 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.197248 | 218 | 9 | 55 | 24.222222 | 0.897143 | 0.09633 | 0 | 0 | 0 | 0 | 0.036082 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
577b7719132c79e96800a918057ca9b5a9d0a1fc | 406 | py | Python | pyabsa/functional/config/__init__.py | yangheng95/LCF-ABSA | 0eeb4788269a498d34c2aff942e03af78026617e | [
"MIT"
] | 31 | 2019-10-07T03:05:39.000Z | 2020-06-17T01:34:21.000Z | pyabsa/functional/config/__init__.py | yangheng95/LCF-ABSA | 0eeb4788269a498d34c2aff942e03af78026617e | [
"MIT"
] | 7 | 2019-10-16T13:37:52.000Z | 2020-03-30T03:40:56.000Z | pyabsa/functional/config/__init__.py | yangheng95/LCF-ABSA | 0eeb4788269a498d34c2aff942e03af78026617e | [
"MIT"
] | 3 | 2020-01-12T13:03:35.000Z | 2020-06-11T08:26:01.000Z | # -*- coding: utf-8 -*-
# file: __init__.py.py
# time: 2021/6/5 0005
# author: yangheng <yangheng@m.scnu.edu.cn>
# github: https://github.com/yangheng95
# Copyright (C) 2021. All Rights Reserved.
from .apc_config_manager import APCConfigManager
from .atepc_config_manager import ATEPCConfigManager
from .tc_con... | 33.833333 | 53 | 0.76601 | 54 | 406 | 5.537037 | 0.703704 | 0.173913 | 0.254181 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048295 | 0.133005 | 406 | 11 | 54 | 36.909091 | 0.801136 | 0.450739 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
577c7948df46f2767e62d42fe58408fb94013597 | 816 | py | Python | pytglib/api/types/passport_element.py | iTeam-co/pytglib | e5e75e0a85f89b77762209b32a61b0a883c0ae61 | [
"MIT"
] | 6 | 2019-10-30T08:57:27.000Z | 2021-02-08T14:17:43.000Z | pytglib/api/types/passport_element.py | iTeam-co/python-telegram | e5e75e0a85f89b77762209b32a61b0a883c0ae61 | [
"MIT"
] | 1 | 2021-08-19T05:44:10.000Z | 2021-08-19T07:14:56.000Z | pytglib/api/types/passport_element.py | iTeam-co/python-telegram | e5e75e0a85f89b77762209b32a61b0a883c0ae61 | [
"MIT"
] | 5 | 2019-12-04T05:30:39.000Z | 2021-05-21T18:23:32.000Z |
from ..utils import Object
class PassportElement(Object):
"""
Contains information about a Telegram Passport element
No parameters required.
"""
ID = "passportElement"
def __init__(self, **kwargs):
pass
@staticmethod
def read(q: dict, *args) -> "PassportElementIde... | 35.478261 | 452 | 0.767157 | 65 | 816 | 9.569231 | 0.692308 | 0.016077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.178922 | 816 | 22 | 453 | 37.090909 | 0.928358 | 0.096814 | 0 | 0 | 0 | 0.1 | 0.611189 | 0.516084 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.5 | 0.1 | 0 | 0.7 | 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 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
5781ce2543ac64ed44bea43ea52d45aa4d64f960 | 111 | py | Python | tmdprimer/stop_classification/domain/metrics.py | dragoon/lstm-primer | 34693474084507ba9398011bb3effd61514724f0 | [
"MIT"
] | 2 | 2020-05-29T12:59:47.000Z | 2020-10-22T11:18:10.000Z | tmdprimer/stop_classification/domain/metrics.py | dragoon/rnn-primer | 34693474084507ba9398011bb3effd61514724f0 | [
"MIT"
] | 2 | 2021-01-26T08:53:22.000Z | 2021-03-04T15:03:10.000Z | tmdprimer/stop_classification/domain/metrics.py | dragoon/tmd-primer | 05ea0d65f7741b574a51914bc6e1e7e11f9fddd6 | [
"MIT"
] | null | null | null | from dataclasses import dataclass
@dataclass
class ClassificationMetric:
tp: int
fn: int
fp: int
| 12.333333 | 33 | 0.711712 | 13 | 111 | 6.076923 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.243243 | 111 | 8 | 34 | 13.875 | 0.940476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 0 | 0.833333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
57be9cba24cc4ab0d20009c5740121ca61f50458 | 326 | py | Python | app/generic/features.py | Lameaux/mock_server | c387af54d1b974ce1ed5f841de214a45d07fe901 | [
"MIT"
] | null | null | null | app/generic/features.py | Lameaux/mock_server | c387af54d1b974ce1ed5f841de214a45d07fe901 | [
"MIT"
] | null | null | null | app/generic/features.py | Lameaux/mock_server | c387af54d1b974ce1ed5f841de214a45d07fe901 | [
"MIT"
] | null | null | null | import time
def sleep_seconds(request):
sleep_seconds_arg = request.args.get('sleep_seconds', default=0, type=float)
time.sleep(sleep_seconds_arg)
return sleep_seconds_arg
def override_status_code(request):
status_code_arg = request.args.get('status_code', default=200, type=int)
return status_co... | 27.166667 | 80 | 0.769939 | 48 | 326 | 4.916667 | 0.395833 | 0.254237 | 0.190678 | 0.144068 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014184 | 0.134969 | 326 | 12 | 81 | 27.166667 | 0.822695 | 0 | 0 | 0 | 0 | 0 | 0.073395 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
57c0dab4db903e7b4b5a9b74c66339f0df3e9c62 | 200 | py | Python | Chapter02/Exercise2.02/exercise2.02.py | lmoshood/The-Django-Workshop | 52e86a8f93cb38bf70d50e9b8d2c6d7dac416f62 | [
"MIT"
] | null | null | null | Chapter02/Exercise2.02/exercise2.02.py | lmoshood/The-Django-Workshop | 52e86a8f93cb38bf70d50e9b8d2c6d7dac416f62 | [
"MIT"
] | null | null | null | Chapter02/Exercise2.02/exercise2.02.py | lmoshood/The-Django-Workshop | 52e86a8f93cb38bf70d50e9b8d2c6d7dac416f62 | [
"MIT"
] | 1 | 2020-05-27T13:41:58.000Z | 2020-05-27T13:41:58.000Z | #!/usr/bin/env python3
from reviews.models import Contributor
contributor = Contributor.objects.create(first_names='Rowel', last_names='Atienza', email='RowelAtienza@example.com')
print(contributor) | 33.333333 | 117 | 0.805 | 25 | 200 | 6.36 | 0.84 | 0.27673 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005348 | 0.065 | 200 | 6 | 118 | 33.333333 | 0.84492 | 0.105 | 0 | 0 | 0 | 0 | 0.201117 | 0.134078 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
57c30b9f000622ddab28274646fa191f955504a2 | 181 | py | Python | npe2/manifest/menus.py | nclack/npe2 | 92555a848de10ad597f35721fd14e4b13c51c82d | [
"BSD-3-Clause"
] | 1 | 2022-03-29T00:29:45.000Z | 2022-03-29T00:29:45.000Z | npe2/manifest/menus.py | nclack/npe2 | 92555a848de10ad597f35721fd14e4b13c51c82d | [
"BSD-3-Clause"
] | 102 | 2021-11-23T20:18:15.000Z | 2022-03-31T22:59:46.000Z | npe2/manifest/menus.py | nclack/npe2 | 92555a848de10ad597f35721fd14e4b13c51c82d | [
"BSD-3-Clause"
] | 4 | 2021-11-22T23:04:47.000Z | 2022-02-10T00:12:09.000Z | import warnings
warnings.warn(
"please import menus from npe2.manifest.contributions",
DeprecationWarning,
stacklevel=2,
)
from .contributions._menus import * # noqa
| 18.1 | 59 | 0.740331 | 19 | 181 | 7 | 0.684211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013423 | 0.176796 | 181 | 9 | 60 | 20.111111 | 0.879195 | 0.022099 | 0 | 0 | 0 | 0 | 0.297143 | 0.154286 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.428571 | 0 | 0.428571 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
57de282017a32a64ac94d636017e3b2ff6721278 | 119 | py | Python | text_complexity_analyzer_cm/__init__.py | seduerr91/persuasiveness-metric | ea1c0cffe5a3fd9d2e423e54b35942127fe94b97 | [
"MIT"
] | 1 | 2022-03-08T21:31:23.000Z | 2022-03-08T21:31:23.000Z | text_complexity_analyzer_cm/__init__.py | seduerr91/persuasiveness-metric | ea1c0cffe5a3fd9d2e423e54b35942127fe94b97 | [
"MIT"
] | null | null | null | text_complexity_analyzer_cm/__init__.py | seduerr91/persuasiveness-metric | ea1c0cffe5a3fd9d2e423e54b35942127fe94b97 | [
"MIT"
] | null | null | null | '''
This module contains the classes and functions that handle the processing of text using the coh-metrix indices.
''' | 39.666667 | 111 | 0.781513 | 18 | 119 | 5.166667 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151261 | 119 | 3 | 112 | 39.666667 | 0.920792 | 0.932773 | 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 |
57ecef0559fdee793ca172910c6b4f2fd4b6cfb7 | 615 | py | Python | homework-2/tests.py | laurendayoun/intro-to-python | b9e80c799b3575e6695f68840d724ba0c2779a9e | [
"MIT"
] | null | null | null | homework-2/tests.py | laurendayoun/intro-to-python | b9e80c799b3575e6695f68840d724ba0c2779a9e | [
"MIT"
] | null | null | null | homework-2/tests.py | laurendayoun/intro-to-python | b9e80c799b3575e6695f68840d724ba0c2779a9e | [
"MIT"
] | null | null | null | splice_tests = ["Goodbye", "friends", "!", "flower", "rose!",
"favorite flower ", ".", "My favorite flower is ", "My friend is a rose!"]
list_tests = [[5, 10, 15], ['a', 'b', 'c', 'd', 'e'], [4, 8, 12, 16, 4, 8, 12, 16, 4, 8, 12, 16, 4, 8, 12, 16, 4, 8, 12, 16], [3, 6, 9, 3, 6, 9, 3, 6, 9, 3, 6, 9, 3, ... | 102.5 | 291 | 0.356098 | 102 | 615 | 2.127451 | 0.382353 | 0.0553 | 0.082949 | 0.138249 | 0.37788 | 0.37788 | 0.37788 | 0.37788 | 0.37788 | 0.37788 | 0 | 0.331507 | 0.406504 | 615 | 5 | 292 | 123 | 0.263014 | 0 | 0 | 0 | 0 | 0 | 0.146341 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
17b325396b3d1a3fec4ec7c2dd6db76afe8bfd23 | 98 | py | Python | pricing/flight_price/apps.py | amadeus4dev/amadeus-flight-price-analysis-django | bb28eb15934fd14dc5580bb22bd37e32fd9f8014 | [
"MIT"
] | 1 | 2022-01-10T03:38:05.000Z | 2022-01-10T03:38:05.000Z | pricing/flight_price/apps.py | amadeus4dev/amadeus-flight-price-analysis-django | bb28eb15934fd14dc5580bb22bd37e32fd9f8014 | [
"MIT"
] | null | null | null | pricing/flight_price/apps.py | amadeus4dev/amadeus-flight-price-analysis-django | bb28eb15934fd14dc5580bb22bd37e32fd9f8014 | [
"MIT"
] | 1 | 2021-06-28T23:17:42.000Z | 2021-06-28T23:17:42.000Z | from django.apps import AppConfig
class FlightPriceConfig(AppConfig):
name = 'flight_price'
| 16.333333 | 35 | 0.77551 | 11 | 98 | 6.818182 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153061 | 98 | 5 | 36 | 19.6 | 0.903614 | 0 | 0 | 0 | 0 | 0 | 0.122449 | 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 |
17d39886bab0cab7ebe8b53722fe12bdec1973a9 | 356 | py | Python | Week4/If_Statements.py | DianaSerb/ITFProjects | bc000366a6273b3bb4a9483dc43ece688f571932 | [
"MIT"
] | null | null | null | Week4/If_Statements.py | DianaSerb/ITFProjects | bc000366a6273b3bb4a9483dc43ece688f571932 | [
"MIT"
] | null | null | null | Week4/If_Statements.py | DianaSerb/ITFProjects | bc000366a6273b3bb4a9483dc43ece688f571932 | [
"MIT"
] | null | null | null | x = 'expected result'
y = 'expected result'
if x == y and type(x) == type(y):
print("Test passed")
else:
print("Test failed")
if x == y:
if type(x) is int:
print("Test failed") #nested if
elif type(x) is str: #elif -> else if
print("Test passed")
else:
print("Test faile... | 18.736842 | 45 | 0.553371 | 53 | 356 | 3.716981 | 0.320755 | 0.274112 | 0.304569 | 0.28934 | 0.345178 | 0.345178 | 0.345178 | 0 | 0 | 0 | 0 | 0 | 0.292135 | 356 | 18 | 46 | 19.777778 | 0.781746 | 0.067416 | 0 | 0.6 | 0 | 0 | 0.291793 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.133333 | 0 | 0 | 0 | 0.4 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
aa097b6b30689d9096a28a289f24921ee7252b48 | 1,810 | py | Python | scrapmartapp/models.py | vivekx01/oldscrapmart | 0e22e729f1855129d365bfdf123e6981e8eefaa8 | [
"MIT"
] | null | null | null | scrapmartapp/models.py | vivekx01/oldscrapmart | 0e22e729f1855129d365bfdf123e6981e8eefaa8 | [
"MIT"
] | null | null | null | scrapmartapp/models.py | vivekx01/oldscrapmart | 0e22e729f1855129d365bfdf123e6981e8eefaa8 | [
"MIT"
] | null | null | null | from django.db import models
# Create your models here.
class userinfo(models.Model):
username=models.CharField(max_length=10)
dob=models.DateField()
phone=models.CharField(max_length=10)
securityquestion=models.CharField(max_length=50)
securityanswer=models.CharField(max_length=50)
cla... | 31.754386 | 67 | 0.71768 | 227 | 1,810 | 5.537445 | 0.264317 | 0.274463 | 0.329356 | 0.439141 | 0.768496 | 0.657916 | 0.657916 | 0.595863 | 0.494829 | 0.494829 | 0 | 0.035193 | 0.167956 | 1,810 | 56 | 68 | 32.321429 | 0.799469 | 0.01326 | 0 | 0.547619 | 0 | 0 | 0.026072 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.02381 | 0.095238 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
aa13bf7232570320f51edcd2a30d088e9bc8330d | 37 | py | Python | ntlib/sofficectl/__init__.py | lugino-emeritus/py-ntlib | 54ba6e35ae1c26a411fbc22b5f76edb6069f96d4 | [
"MIT"
] | 2 | 2021-12-22T12:16:20.000Z | 2022-03-11T11:04:13.000Z | ntlib/sofficectl/__init__.py | lugino-emeritus/py-ntlib | 54ba6e35ae1c26a411fbc22b5f76edb6069f96d4 | [
"MIT"
] | null | null | null | ntlib/sofficectl/__init__.py | lugino-emeritus/py-ntlib | 54ba6e35ae1c26a411fbc22b5f76edb6069f96d4 | [
"MIT"
] | null | null | null | """LibreOffice python TCP bridge"""
| 18.5 | 36 | 0.702703 | 4 | 37 | 6.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135135 | 37 | 1 | 37 | 37 | 0.8125 | 0.783784 | 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 |
aa161b0c275fef3ad86360dc0102637ad8b6b698 | 94 | py | Python | world-1/desafio-001.py | udanielnogueira/Python.CursoEmVideo | 3783af84813d9fa785eee61180793a15754c79b3 | [
"MIT"
] | null | null | null | world-1/desafio-001.py | udanielnogueira/Python.CursoEmVideo | 3783af84813d9fa785eee61180793a15754c79b3 | [
"MIT"
] | null | null | null | world-1/desafio-001.py | udanielnogueira/Python.CursoEmVideo | 3783af84813d9fa785eee61180793a15754c79b3 | [
"MIT"
] | null | null | null | '''
Crie um programa que escreva "Olá, Mundo!" na tela.
'''
msg = 'Olá, Mundo!'
print(msg)
| 10.444444 | 51 | 0.606383 | 14 | 94 | 4.071429 | 0.785714 | 0.280702 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.202128 | 94 | 8 | 52 | 11.75 | 0.76 | 0.542553 | 0 | 0 | 0 | 0 | 0.323529 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
a4d4e682759045d921067efcb8c7a14f9bfd15bd | 839 | py | Python | locators.py | xLEADERx/whatsapp_scrape | b1e54fc4b2aa4417c62bbbc1df11ea9bb642dc1d | [
"MIT"
] | 1 | 2020-05-01T21:00:20.000Z | 2020-05-01T21:00:20.000Z | locators.py | xLEADERx/whatsapp_scrape | b1e54fc4b2aa4417c62bbbc1df11ea9bb642dc1d | [
"MIT"
] | null | null | null | locators.py | xLEADERx/whatsapp_scrape | b1e54fc4b2aa4417c62bbbc1df11ea9bb642dc1d | [
"MIT"
] | null | null | null | from selenium.webdriver.common.by import By
class MainPageLocators(object):
"""
A class for main page locators. All main page locators should come here
"""
TARGET_LIST = ['Rati Gupta', 'Rohit', 'Pradeep kumar Dwivedi', 'Me']
SEARCH_BUTTON = (By.XPATH, '/html/body/div[1]/div/div/div[3]/div/di... | 55.933333 | 99 | 0.61621 | 141 | 839 | 3.617021 | 0.347518 | 0.247059 | 0.123529 | 0.156863 | 0.439216 | 0.413725 | 0.413725 | 0.413725 | 0.413725 | 0.345098 | 0 | 0.037448 | 0.140644 | 839 | 14 | 100 | 59.928571 | 0.669903 | 0.098927 | 0 | 0 | 0 | 0.3 | 0.536552 | 0.484138 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 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 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
a4dbda6a5ddb7765c10544b95a18e47c45d985ec | 90 | py | Python | qrshare/models/__init__.py | mensch272/qrshare | 335f8a96e4fdecc1e520d5dd2900f9860b3a70e8 | [
"Apache-2.0"
] | 3 | 2020-12-23T22:30:39.000Z | 2021-02-17T20:50:28.000Z | qrshare/models/__init__.py | mHaisham/qrshare | 335f8a96e4fdecc1e520d5dd2900f9860b3a70e8 | [
"Apache-2.0"
] | null | null | null | qrshare/models/__init__.py | mHaisham/qrshare | 335f8a96e4fdecc1e520d5dd2900f9860b3a70e8 | [
"Apache-2.0"
] | null | null | null | from .zip import ZipContent
from .qrcontainer import QRContainer
from .route import Route
| 22.5 | 36 | 0.833333 | 12 | 90 | 6.25 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 90 | 3 | 37 | 30 | 0.961538 | 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 |
3521a9920092844998b58210c0902fcd43463957 | 171 | py | Python | Python/1 - if,else,switch case and math operations/3_convert_fahrenheit_to_celsius.py | joaomateusferr/teach_programming | f275e3decf88c24ba1c5d95a0b344c45490a21b4 | [
"MIT"
] | null | null | null | Python/1 - if,else,switch case and math operations/3_convert_fahrenheit_to_celsius.py | joaomateusferr/teach_programming | f275e3decf88c24ba1c5d95a0b344c45490a21b4 | [
"MIT"
] | null | null | null | Python/1 - if,else,switch case and math operations/3_convert_fahrenheit_to_celsius.py | joaomateusferr/teach_programming | f275e3decf88c24ba1c5d95a0b344c45490a21b4 | [
"MIT"
] | null | null | null | def main():
f = float(input('Enter the temperature in fahrenheit: '))
c = (f-32)*5/9
print("The temperature in celsius is " + str(round(c,2)))
main() | 24.428571 | 61 | 0.578947 | 26 | 171 | 3.807692 | 0.769231 | 0.282828 | 0.323232 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039063 | 0.251462 | 171 | 7 | 62 | 24.428571 | 0.734375 | 0 | 0 | 0 | 0 | 0 | 0.389535 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 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 |
3521ec4241acd93341befe2f7e15f320ac65867b | 2,053 | py | Python | tests/test_errors.py | kalaspuff/trailing | 95999adeb5a36cef29b6aabb345037f6ba8a23b1 | [
"MIT"
] | null | null | null | tests/test_errors.py | kalaspuff/trailing | 95999adeb5a36cef29b6aabb345037f6ba8a23b1 | [
"MIT"
] | null | null | null | tests/test_errors.py | kalaspuff/trailing | 95999adeb5a36cef29b6aabb345037f6ba8a23b1 | [
"MIT"
] | null | null | null | import pytest
import cure
from cure import camel_case_dict, case_shift_dict_or_list, decorator, snake_case_dict
@pytest.mark.parametrize("value", [cure(), decorator(), cure.decorator()])
def test_missing_func(value):
with pytest.raises(TypeError):
value()
@pytest.mark.parametrize("value", [cure, decora... | 27.373333 | 85 | 0.676084 | 269 | 2,053 | 4.97026 | 0.185874 | 0.119671 | 0.191473 | 0.299177 | 0.821242 | 0.748691 | 0.580404 | 0.545999 | 0.545999 | 0.4727 | 0 | 0.01976 | 0.186556 | 2,053 | 74 | 86 | 27.743243 | 0.780838 | 0 | 0 | 0.481481 | 0 | 0 | 0.035558 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.148148 | false | 0 | 0.055556 | 0.018519 | 0.240741 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 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 |
3540f92f7b4f5b59a700d7b21a25f03f9a32239a | 180 | py | Python | genpubkey.py | Yunori/RSA-attacks | 1aa54eabc2c01d9ec0018d728856b062c3f29493 | [
"Apache-2.0"
] | null | null | null | genpubkey.py | Yunori/RSA-attacks | 1aa54eabc2c01d9ec0018d728856b062c3f29493 | [
"Apache-2.0"
] | null | null | null | genpubkey.py | Yunori/RSA-attacks | 1aa54eabc2c01d9ec0018d728856b062c3f29493 | [
"Apache-2.0"
] | null | null | null | from randomexponent import randomexponent
from PublicKey import PublicKey
def genpubkey(p1, p2):
phi = (p1 - 1) * (p2 - 1)
return PublicKey(randomexponent(phi), p1 * p2)
| 22.5 | 50 | 0.705556 | 23 | 180 | 5.521739 | 0.478261 | 0.062992 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055172 | 0.194444 | 180 | 7 | 51 | 25.714286 | 0.82069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
10232e8dfe0b6ca37042eced8ec86c911173c2c6 | 21 | py | Python | example_snippets/multimenus_snippets/NewSnippets/SymPy/Functions/Special functions/Orthogonal Polynomials/Root k of the nth Chebyshev polynomial of the first kind.py | kuanpern/jupyterlab-snippets-multimenus | 477f51cfdbad7409eab45abe53cf774cd70f380c | [
"BSD-3-Clause"
] | null | null | null | example_snippets/multimenus_snippets/NewSnippets/SymPy/Functions/Special functions/Orthogonal Polynomials/Root k of the nth Chebyshev polynomial of the first kind.py | kuanpern/jupyterlab-snippets-multimenus | 477f51cfdbad7409eab45abe53cf774cd70f380c | [
"BSD-3-Clause"
] | null | null | null | example_snippets/multimenus_snippets/NewSnippets/SymPy/Functions/Special functions/Orthogonal Polynomials/Root k of the nth Chebyshev polynomial of the first kind.py | kuanpern/jupyterlab-snippets-multimenus | 477f51cfdbad7409eab45abe53cf774cd70f380c | [
"BSD-3-Clause"
] | 1 | 2021-02-04T04:51:48.000Z | 2021-02-04T04:51:48.000Z | chebyshevt_root(n, k) | 21 | 21 | 0.809524 | 4 | 21 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 21 | 1 | 21 | 21 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
10253cbdf24467af32cfd586d4d7bccb4284cd45 | 239 | py | Python | ceres/util/coins_initial_config/coins_initial_config.py | duderino999/ceres-combineharvester | f63ab6c4d0e33c3b6550c1f5641f28ab2c68b001 | [
"Apache-2.0"
] | 39 | 2021-08-04T14:49:27.000Z | 2022-03-29T16:30:19.000Z | ceres/util/coins_initial_config/coins_initial_config.py | duderino999/ceres-combineharvester | f63ab6c4d0e33c3b6550c1f5641f28ab2c68b001 | [
"Apache-2.0"
] | 30 | 2021-08-19T22:44:31.000Z | 2022-03-29T19:09:26.000Z | ceres/util/coins_initial_config/coins_initial_config.py | duderino999/ceres-combineharvester | f63ab6c4d0e33c3b6550c1f5641f28ab2c68b001 | [
"Apache-2.0"
] | 23 | 2021-08-07T07:33:20.000Z | 2022-03-27T11:15:00.000Z | from pathlib import Path
from typing import Union
import pkg_resources
def initial_coin_config_file(coin: str, filename: Union[str, Path]) -> str:
return pkg_resources.resource_string(__name__, f"{coin}-initial-{filename}").decode() | 29.875 | 89 | 0.778243 | 34 | 239 | 5.176471 | 0.617647 | 0.136364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.112971 | 239 | 8 | 89 | 29.875 | 0.830189 | 0 | 0 | 0 | 0 | 0 | 0.104167 | 0.104167 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.6 | 0.2 | 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 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
103d668b620adf1e194ae15b39bd35940a12f452 | 145 | py | Python | test/test_doctest.py | IloveKanade/k3utdocker | fc753ece08c9747ac8be2f584a95cbb0691fc445 | [
"MIT"
] | null | null | null | test/test_doctest.py | IloveKanade/k3utdocker | fc753ece08c9747ac8be2f584a95cbb0691fc445 | [
"MIT"
] | 2 | 2021-08-16T15:41:17.000Z | 2022-03-23T07:02:50.000Z | test/test_doctest.py | IloveKanade/k3utdocker | fc753ece08c9747ac8be2f584a95cbb0691fc445 | [
"MIT"
] | 1 | 2021-08-16T08:58:24.000Z | 2021-08-16T08:58:24.000Z | import doctest
import k3utdocker
def load_tests(loader, tests, ignore):
tests.addTests(doctest.DocTestSuite(k3utdocker))
return tests
| 16.111111 | 52 | 0.772414 | 17 | 145 | 6.529412 | 0.647059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01626 | 0.151724 | 145 | 8 | 53 | 18.125 | 0.886179 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
10a22114c503dfe6debc014dccd92367473147e1 | 176 | py | Python | src/typeDefs/metricsDataRecord.py | ShekharGupta5/wrldc_mis_state_files_ingestion | 1479cb70425bbcc0cfddd3b07cef5ab07fcbda94 | [
"MIT"
] | null | null | null | src/typeDefs/metricsDataRecord.py | ShekharGupta5/wrldc_mis_state_files_ingestion | 1479cb70425bbcc0cfddd3b07cef5ab07fcbda94 | [
"MIT"
] | null | null | null | src/typeDefs/metricsDataRecord.py | ShekharGupta5/wrldc_mis_state_files_ingestion | 1479cb70425bbcc0cfddd3b07cef5ab07fcbda94 | [
"MIT"
] | 3 | 2021-02-08T13:16:53.000Z | 2021-12-18T19:49:10.000Z | from typing import TypedDict
import datetime as dt
class IMetricsDataRecord(TypedDict):
data_time: dt.datetime
entity_tag: str
metric_name: str
data_val: str
| 17.6 | 36 | 0.75 | 24 | 176 | 5.333333 | 0.708333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.204545 | 176 | 9 | 37 | 19.555556 | 0.914286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.285714 | 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 |
10b924a654d2492b50462a1dca73dc282c1ecd8e | 93 | py | Python | borrowers/apps.py | minsystems/minloansng | 225f7c553dc1c7180431c5b84250560b74b0e9cc | [
"PostgreSQL",
"MIT"
] | null | null | null | borrowers/apps.py | minsystems/minloansng | 225f7c553dc1c7180431c5b84250560b74b0e9cc | [
"PostgreSQL",
"MIT"
] | null | null | null | borrowers/apps.py | minsystems/minloansng | 225f7c553dc1c7180431c5b84250560b74b0e9cc | [
"PostgreSQL",
"MIT"
] | null | null | null | from django.apps import AppConfig
class BorrowersConfig(AppConfig):
name = 'borrowers'
| 15.5 | 33 | 0.763441 | 10 | 93 | 7.1 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16129 | 93 | 5 | 34 | 18.6 | 0.910256 | 0 | 0 | 0 | 0 | 0 | 0.096774 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
52d73ba38275eae6d2c1c72b7bdfd7c4e18c9f5f | 270 | py | Python | rally/osclients.py | DeanHwd/rally | d284aa0746c54f1c375470e76dd206d19877a7fd | [
"Apache-2.0"
] | null | null | null | rally/osclients.py | DeanHwd/rally | d284aa0746c54f1c375470e76dd206d19877a7fd | [
"Apache-2.0"
] | null | null | null | rally/osclients.py | DeanHwd/rally | d284aa0746c54f1c375470e76dd206d19877a7fd | [
"Apache-2.0"
] | null | null | null | from rally.common import logging
LOG = logging.getLogger(__name__)
LOG.warning("rally.osclients module moved to rally.plugins.openstack.osclients"
"rally.osclients module is going to be removed.")
from rally.plugins.openstack.osclients import * # noqa
| 27 | 79 | 0.755556 | 35 | 270 | 5.714286 | 0.571429 | 0.09 | 0.2 | 0.3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159259 | 270 | 9 | 80 | 30 | 0.881057 | 0.014815 | 0 | 0 | 0 | 0 | 0.420455 | 0.125 | 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 | 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 |
52eff55df8d035c2930f3e404a03fc9cee1d47a7 | 601 | py | Python | src/sympc/utils/__init__.py | hershd23/SyMPC | af178dbc99cd1077871346113a4a05abbb510ffc | [
"MIT"
] | null | null | null | src/sympc/utils/__init__.py | hershd23/SyMPC | af178dbc99cd1077871346113a4a05abbb510ffc | [
"MIT"
] | null | null | null | src/sympc/utils/__init__.py | hershd23/SyMPC | af178dbc99cd1077871346113a4a05abbb510ffc | [
"MIT"
] | null | null | null | """Util functions needed around the repository."""
from .mpc_utils import RING_SIZE_TO_TYPE
from .mpc_utils import count_wraps
from .mpc_utils import decompose
from .mpc_utils import generate_random_element
from .mpc_utils import get_new_generator
from .mpc_utils import get_type_from_ring
from .utils import islocal
fr... | 25.041667 | 50 | 0.768719 | 82 | 601 | 5.219512 | 0.341463 | 0.231308 | 0.168224 | 0.252336 | 0.098131 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154742 | 601 | 23 | 51 | 26.130435 | 0.84252 | 0.073211 | 0 | 0 | 1 | 0 | 0.23412 | 0.041742 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.45 | 0 | 0.45 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
5e2da48c253255f68c068ca3dd8985319ef189db | 147 | py | Python | tests/skl_datasets_reg/RandomReg_10/skl_dataset_RandomReg_10_SVR_rbf_9_code_gen.py | antoinecarme/sklearn_model_explanation | feeeb75576931f4a05a786d936babc0a664eef46 | [
"BSD-3-Clause"
] | 13 | 2017-12-22T09:12:51.000Z | 2021-07-26T06:31:54.000Z | tests/skl_datasets_reg/RandomReg_10/skl_dataset_RandomReg_10_SVR_rbf_9_code_gen.py | antoinecarme/sklearn_model_explanation | feeeb75576931f4a05a786d936babc0a664eef46 | [
"BSD-3-Clause"
] | 11 | 2017-09-19T20:00:35.000Z | 2018-02-05T07:59:06.000Z | tests/skl_datasets_reg/RandomReg_10/skl_dataset_RandomReg_10_SVR_rbf_9_code_gen.py | antoinecarme/sklearn_model_explanation | feeeb75576931f4a05a786d936babc0a664eef46 | [
"BSD-3-Clause"
] | 4 | 2017-12-11T12:33:32.000Z | 2020-02-09T15:08:56.000Z | from sklearn_explain.tests.skl_datasets_reg import skl_datasets_test as skltest
skltest.test_reg_dataset_and_model("RandomReg_10" , "SVR_rbf_9")
| 29.4 | 79 | 0.857143 | 24 | 147 | 4.75 | 0.791667 | 0.192982 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022059 | 0.07483 | 147 | 4 | 80 | 36.75 | 0.816176 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 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 |
5e36cd27d6e3922871158d8ebaa784f122df370e | 968 | py | Python | app/net_scan/models.py | dnr6419/iot_project | 7385eb3262a97b33faf5523fbafc0c27bb641be6 | [
"MIT"
] | null | null | null | app/net_scan/models.py | dnr6419/iot_project | 7385eb3262a97b33faf5523fbafc0c27bb641be6 | [
"MIT"
] | null | null | null | app/net_scan/models.py | dnr6419/iot_project | 7385eb3262a97b33faf5523fbafc0c27bb641be6 | [
"MIT"
] | null | null | null | from django.db import models
# Create your models here.
class scan_result(models.Model):
ip = models.CharField(max_length= 30)
port = models.IntegerField()
description = models.TextField()
#cdate = models.TextField()
cdate = models.DateTimeField(auto_now_add=True)
def __str__(self):
re... | 34.571429 | 82 | 0.709711 | 131 | 968 | 4.969466 | 0.29771 | 0.16129 | 0.193548 | 0.258065 | 0.596006 | 0.485407 | 0.485407 | 0.371736 | 0.371736 | 0.371736 | 0 | 0.018939 | 0.181818 | 968 | 28 | 83 | 34.571429 | 0.80303 | 0.051653 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.047619 | 0.142857 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
eaa888f8e23745ea77dbc9f5577be41e797a23c5 | 10,278 | py | Python | backend/boards/serializers.py | JeffreyZZ/knboard | 6a2c8d924d5eb36da1f55f0aa27aae206c62177e | [
"MIT"
] | null | null | null | backend/boards/serializers.py | JeffreyZZ/knboard | 6a2c8d924d5eb36da1f55f0aa27aae206c62177e | [
"MIT"
] | null | null | null | backend/boards/serializers.py | JeffreyZZ/knboard | 6a2c8d924d5eb36da1f55f0aa27aae206c62177e | [
"MIT"
] | null | null | null | from datetime import datetime
from django.contrib.auth import get_user_model
from django.db import IntegrityError
from rest_framework import serializers
from rest_framework.validators import ValidationError
from accounts.serializers import BoardMemberSerializer
from .models import Board, Note, Question, QuestionCommen... | 38.208178 | 138 | 0.654213 | 1,084 | 10,278 | 6.103321 | 0.146679 | 0.076632 | 0.021161 | 0.016929 | 0.792926 | 0.75786 | 0.741687 | 0.73549 | 0.683495 | 0.675333 | 0 | 0 | 0.250924 | 10,278 | 269 | 139 | 38.208178 | 0.859332 | 0.100798 | 0 | 0.653266 | 0 | 0 | 0.118699 | 0 | 0 | 0 | 0 | 0.003717 | 0 | 1 | 0.050251 | false | 0 | 0.035176 | 0 | 0.356784 | 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 |
eab81f11b8432ecb305f850bb1d5380c20012394 | 94 | py | Python | air_quality_cli/__init__.py | sugat009/air-quality-cli | d5c2bf113eae524989fa56f99bab280658d4278a | [
"MIT"
] | 1 | 2021-02-15T17:21:00.000Z | 2021-02-15T17:21:00.000Z | air_quality_cli/__init__.py | sugat009/air-quality-cli | d5c2bf113eae524989fa56f99bab280658d4278a | [
"MIT"
] | null | null | null | air_quality_cli/__init__.py | sugat009/air-quality-cli | d5c2bf113eae524989fa56f99bab280658d4278a | [
"MIT"
] | null | null | null | """
Object initializations for CLI.
"""
from rich.console import Console
console = Console()
| 13.428571 | 32 | 0.734043 | 11 | 94 | 6.272727 | 0.727273 | 0.405797 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148936 | 94 | 6 | 33 | 15.666667 | 0.8625 | 0.329787 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
eabf961797e543d7a9f22bf2af475840ffcfbaed | 170 | py | Python | __init__.py | phatollie/MensaQ | 567619e96ed4f75cddc40bdabb847bd5a9cad0dc | [
"MIT"
] | 1 | 2021-06-11T20:46:04.000Z | 2021-06-11T20:46:04.000Z | __init__.py | phatollie/MensaQ | 567619e96ed4f75cddc40bdabb847bd5a9cad0dc | [
"MIT"
] | null | null | null | __init__.py | phatollie/MensaQ | 567619e96ed4f75cddc40bdabb847bd5a9cad0dc | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
###############################################
# Authored by Justin Acevedo in the year 2021 #
############################################### | 42.5 | 48 | 0.270588 | 11 | 170 | 4.181818 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033113 | 0.111765 | 170 | 4 | 49 | 42.5 | 0.271523 | 0.382353 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
eac94686d2f54cca9c085098aec9144316765cef | 15,453 | py | Python | python/test/test_correlation.py | dmason1-usgs/earthquake-detection-formats | e1827f353418795b25327967ad2da96d4ff2f2c0 | [
"CC0-1.0"
] | 6 | 2019-02-19T07:43:26.000Z | 2021-10-05T00:32:30.000Z | python/test/test_correlation.py | dmason1-usgs/earthquake-detection-formats | e1827f353418795b25327967ad2da96d4ff2f2c0 | [
"CC0-1.0"
] | 32 | 2016-10-03T20:23:11.000Z | 2021-04-20T19:56:51.000Z | python/test/test_correlation.py | dmason1-usgs/earthquake-detection-formats | e1827f353418795b25327967ad2da96d4ff2f2c0 | [
"CC0-1.0"
] | 7 | 2016-10-03T20:18:57.000Z | 2021-03-24T21:40:14.000Z | #!/usr/bin/env python
#package imports
import detectionformats.correlation
import detectionformats.site
import detectionformats.source
import detectionformats.hypocenter
import detectionformats.association
import detectionformats.eventtype
#stdlib imports
import unittest
import datetime
class TestCorrelation(unittes... | 64.120332 | 728 | 0.724649 | 1,522 | 15,453 | 7.348226 | 0.068988 | 0.123391 | 0.213877 | 0.088519 | 0.873838 | 0.689557 | 0.647353 | 0.647353 | 0.647353 | 0.647353 | 0 | 0.019481 | 0.149615 | 15,453 | 240 | 729 | 64.3875 | 0.831596 | 0.003883 | 0 | 0.518349 | 0 | 0.004587 | 0.108324 | 0.007993 | 0 | 0 | 0 | 0 | 0.706422 | 1 | 0.027523 | false | 0 | 0.036697 | 0 | 0.151376 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
ead03259cad2ce1c19e81845bfefe12662ad5098 | 101 | py | Python | model/__init__.py | krrg/rf-ugpapi-async | d1cdaa5ac6acfadcbd9cfa808e198d325606b2dc | [
"Apache-2.0"
] | null | null | null | model/__init__.py | krrg/rf-ugpapi-async | d1cdaa5ac6acfadcbd9cfa808e198d325606b2dc | [
"Apache-2.0"
] | null | null | null | model/__init__.py | krrg/rf-ugpapi-async | d1cdaa5ac6acfadcbd9cfa808e198d325606b2dc | [
"Apache-2.0"
] | null | null | null | import asyncpg
import yaml
# Read in database configuration
dbconfig = yaml.load("db/config.yml")
| 12.625 | 37 | 0.762376 | 14 | 101 | 5.5 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148515 | 101 | 7 | 38 | 14.428571 | 0.895349 | 0.29703 | 0 | 0 | 0 | 0 | 0.19403 | 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 |
d801b93568bf8f5ec63a34e58aed130e45ab2676 | 250 | py | Python | projects/DropLoss/droploss/cfg.py | timy90022/DropLoss | b6ed7f0808ea3ce1ae5b8b9cb24ff55079a0a498 | [
"Apache-2.0"
] | 43 | 2021-02-06T09:01:21.000Z | 2022-03-23T08:47:20.000Z | projects/DropLoss/droploss/cfg.py | e-271/DropLoss | 2eb46f5d3ac8e207f81f30bb2426085e686aacfd | [
"Apache-2.0"
] | 1 | 2021-09-23T09:16:15.000Z | 2021-09-23T09:16:15.000Z | projects/DropLoss/droploss/cfg.py | e-271/DropLoss | 2eb46f5d3ac8e207f81f30bb2426085e686aacfd | [
"Apache-2.0"
] | 6 | 2021-02-06T16:48:26.000Z | 2022-03-11T08:53:44.000Z | def add_config(cfg):
"""
Add config from EQL.
"""
cfg.MODEL.ROI_HEADS.LAMBDA = 0.00177
cfg.MODEL.ROI_HEADS.PRIOR_PROB = 0.001
# legacy cfg key (make model compatible with previous ckpt)
cfg.MODEL.ROI_HEADS.FREQ_INFO = ""
| 25 | 63 | 0.66 | 38 | 250 | 4.184211 | 0.631579 | 0.150943 | 0.207547 | 0.301887 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051546 | 0.224 | 250 | 9 | 64 | 27.777778 | 0.768041 | 0.316 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
d83adb14527cff2453984c432ba975d01501da7b | 139 | py | Python | tests/auth_tests/models/with_last_login_attr.py | jpmallarino/django | 659d2421c7adbbcd205604002d521d82d6b0b465 | [
"BSD-3-Clause",
"0BSD"
] | 61,676 | 2015-01-01T00:05:13.000Z | 2022-03-31T20:37:54.000Z | tests/auth_tests/models/with_last_login_attr.py | jpmallarino/django | 659d2421c7adbbcd205604002d521d82d6b0b465 | [
"BSD-3-Clause",
"0BSD"
] | 8,884 | 2015-01-01T00:12:05.000Z | 2022-03-31T19:53:11.000Z | tests/auth_tests/models/with_last_login_attr.py | jpmallarino/django | 659d2421c7adbbcd205604002d521d82d6b0b465 | [
"BSD-3-Clause",
"0BSD"
] | 33,143 | 2015-01-01T02:04:52.000Z | 2022-03-31T19:42:46.000Z | from django.contrib.auth.base_user import AbstractBaseUser
class UserWithDisabledLastLoginField(AbstractBaseUser):
last_login = None
| 23.166667 | 58 | 0.841727 | 14 | 139 | 8.214286 | 0.928571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107914 | 139 | 5 | 59 | 27.8 | 0.927419 | 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 |
dc2cc340abfe965fe2c5fa15f5e612937b1b863f | 20 | py | Python | hdltools/vcd/tools/__init__.py | brunosmmm/hdltools | a98ca8c4d168740fa229c939a7b1f31ea73eec24 | [
"MIT"
] | 2 | 2020-02-28T13:02:39.000Z | 2021-06-30T09:15:35.000Z | hdltools/vcd/tools/__init__.py | brunosmmm/hdltools | a98ca8c4d168740fa229c939a7b1f31ea73eec24 | [
"MIT"
] | 1 | 2020-03-22T17:32:45.000Z | 2020-03-23T15:43:39.000Z | hdltools/vcd/tools/__init__.py | brunosmmm/hdltools | a98ca8c4d168740fa229c939a7b1f31ea73eec24 | [
"MIT"
] | null | null | null | """Tool helpers."""
| 10 | 19 | 0.55 | 2 | 20 | 5.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 20 | 1 | 20 | 20 | 0.611111 | 0.65 | 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 |
dc3dbe7942a6e6b7968dd9462d682a829fdab31d | 20,153 | py | Python | tests/wsgi/test_segment_manager.py | vishalbelsare/trough | c1586f32509e14a20b6305d4f0820c3424169083 | [
"BSD-2-Clause"
] | null | null | null | tests/wsgi/test_segment_manager.py | vishalbelsare/trough | c1586f32509e14a20b6305d4f0820c3424169083 | [
"BSD-2-Clause"
] | null | null | null | tests/wsgi/test_segment_manager.py | vishalbelsare/trough | c1586f32509e14a20b6305d4f0820c3424169083 | [
"BSD-2-Clause"
] | null | null | null | import pytest
from trough.wsgi.segment_manager import server
import ujson
import trough
from trough.settings import settings
import doublethink
import rethinkdb as r
import requests # :-\ urllib3?
import hdfs3
import time
import tempfile
import os
import sqlite3
import logging
import socket
trough.settings.configure_l... | 42.073069 | 218 | 0.682132 | 2,523 | 20,153 | 5.277447 | 0.113357 | 0.073 | 0.075103 | 0.083965 | 0.793166 | 0.774991 | 0.746301 | 0.712655 | 0.695682 | 0.667443 | 0 | 0.017631 | 0.192279 | 20,153 | 478 | 219 | 42.161088 | 0.800221 | 0.108172 | 0 | 0.66185 | 0 | 0 | 0.245784 | 0.05769 | 0 | 0 | 0 | 0 | 0.32659 | 1 | 0.020231 | false | 0 | 0.043353 | 0 | 0.066474 | 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 |
dc7ce91da57fef0b7dde835b4e9e62420083ead0 | 92 | py | Python | hirearefugee/useroffer/apps.py | maximilianharr/hirearefugee | 307afb512af86128d5ce011f1779964dd71976fd | [
"Apache-2.0"
] | 1 | 2020-09-07T07:20:04.000Z | 2020-09-07T07:20:04.000Z | hirearefugee/useroffer/apps.py | maximilianharr/hirearefugee | 307afb512af86128d5ce011f1779964dd71976fd | [
"Apache-2.0"
] | 2 | 2020-09-14T18:13:55.000Z | 2020-09-14T21:21:28.000Z | hirearefugee/useroffer/apps.py | maximilianharr/hirearefugee | 307afb512af86128d5ce011f1779964dd71976fd | [
"Apache-2.0"
] | null | null | null | from django.apps import AppConfig
class UserOfferConfig(AppConfig):
name = 'useroffer'
| 18.4 | 33 | 0.771739 | 10 | 92 | 7.1 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152174 | 92 | 4 | 34 | 23 | 0.910256 | 0 | 0 | 0 | 0 | 0 | 0.097826 | 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 |
dcb16a21b648c692eb187e794f2277718ea6b5a3 | 280 | py | Python | example51.py | augustone/100examples | 94b593b5690a7403e1bf7424047f9a67822d2fd7 | [
"Unlicense"
] | 21 | 2017-05-01T10:23:42.000Z | 2021-09-27T17:11:43.000Z | example51.py | augustone/100examples | 94b593b5690a7403e1bf7424047f9a67822d2fd7 | [
"Unlicense"
] | null | null | null | example51.py | augustone/100examples | 94b593b5690a7403e1bf7424047f9a67822d2fd7 | [
"Unlicense"
] | 6 | 2017-05-26T12:23:26.000Z | 2020-06-30T01:57:36.000Z | #!/usr/bin/python3
__author__ = ""
"""
example 051
& 运算符 转为二进制 按补码计算 同为1,结果1,否则0
0010
0011
————
0010
"""
print(' 2 & 3 = %d' % (2 & 3)) # 0010 & 0011
print(' 2 & -3 = %d' % (2 & -3)) # 0010 & 1101
print(' -2 & 3 = %d' % (-2 & 3)) # 1110 & 0011
| 14 | 48 | 0.432143 | 40 | 280 | 3.025 | 0.525 | 0.099174 | 0.173554 | 0.198347 | 0.31405 | 0.31405 | 0.231405 | 0 | 0 | 0 | 0 | 0.297297 | 0.339286 | 280 | 19 | 49 | 14.736842 | 0.335135 | 0.189286 | 0 | 0 | 0 | 0 | 0.299213 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.75 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 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 | 1 | 0 | 4 |
f49b4431be243062667de363ebd0eb24bab86871 | 6,551 | py | Python | question/serializers.py | sbabashahi/backend | 4b72bed480bc6384538bdcdeba4f593569eca03b | [
"MIT"
] | 3 | 2021-06-26T17:27:37.000Z | 2021-07-11T15:01:50.000Z | question/serializers.py | mahdi-asadzadeh/backend | 2a286d904239cf04a5d2c48277ec8dbc4a48870f | [
"MIT"
] | null | null | null | question/serializers.py | mahdi-asadzadeh/backend | 2a286d904239cf04a5d2c48277ec8dbc4a48870f | [
"MIT"
] | 1 | 2021-08-18T13:02:50.000Z | 2021-08-18T13:02:50.000Z | from django.db import transaction
from rest_framework import serializers
from question.models import Question, Answer
from company.models import Company
from company.serializers import PublicUserCompanySerializer
from utilities import utilities
class PublicAnswerSerializer(serializers.Serializer):
id = serialize... | 44.564626 | 128 | 0.695619 | 687 | 6,551 | 6.454148 | 0.123726 | 0.129905 | 0.061344 | 0.05954 | 0.745151 | 0.702977 | 0.702977 | 0.687641 | 0.684935 | 0.660126 | 0 | 0.005497 | 0.194627 | 6,551 | 146 | 129 | 44.869863 | 0.834913 | 0.006564 | 0 | 0.66129 | 0 | 0 | 0.061635 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.080645 | false | 0 | 0.048387 | 0 | 0.524194 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
f4c5696a6515bfcf99c339fa24903b4f4d70f178 | 2,564 | py | Python | lib/svtplay_dl/service/services.py | kricka91/svtplay-dl | 559e950e6897a0badd65b1d6ef75881cd8a4f44a | [
"MIT"
] | null | null | null | lib/svtplay_dl/service/services.py | kricka91/svtplay-dl | 559e950e6897a0badd65b1d6ef75881cd8a4f44a | [
"MIT"
] | null | null | null | lib/svtplay_dl/service/services.py | kricka91/svtplay-dl | 559e950e6897a0badd65b1d6ef75881cd8a4f44a | [
"MIT"
] | null | null | null | from __future__ import absolute_import
from svtplay_dl.service.aftonbladet import Aftonbladet, Aftonbladettv
from svtplay_dl.service.bambuser import Bambuser
from svtplay_dl.service.bigbrother import Bigbrother
from svtplay_dl.service.cmore import Cmore
from svtplay_dl.service.disney import Disney
from svtplay_dl.serv... | 28.488889 | 69 | 0.796022 | 344 | 2,564 | 5.796512 | 0.145349 | 0.231695 | 0.273821 | 0.421264 | 0.033099 | 0.033099 | 0 | 0 | 0 | 0 | 0 | 0.002764 | 0.153276 | 2,564 | 89 | 70 | 28.808989 | 0.915707 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.494253 | 0 | 0.494253 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
f4e71628f3995124080caf8c17fc833f17842283 | 436 | py | Python | Chatbot_Model/Info_Extraction/Event_Extraction/Preprocess_data.py | guci314/Chatbot_CN | 02044eed4a141aa8c61d6064c166f95dbdae894c | [
"Apache-2.0"
] | 8 | 2019-08-12T12:38:35.000Z | 2022-02-21T03:25:04.000Z | Chatbot_Model/Info_Extraction/Event_Extraction/Preprocess_data.py | JianboTang/Chatbot_CN | a0f7194252a189f8bc2b62fd16eb2abe432c0bf9 | [
"Apache-2.0"
] | null | null | null | Chatbot_Model/Info_Extraction/Event_Extraction/Preprocess_data.py | JianboTang/Chatbot_CN | a0f7194252a189f8bc2b62fd16eb2abe432c0bf9 | [
"Apache-2.0"
] | 5 | 2020-01-08T15:30:38.000Z | 2022-02-15T02:39:46.000Z | # -*- coding: utf-8 -*-
"""
-------------------------------------------------
File Name: Preprocess_data.py
Description : 数据预处理及词向量处理
Author : charl
date: 2018/11/30
-------------------------------------------------
Change Activity: 2018/11/30:
---------------------------------------... | 21.8 | 58 | 0.424312 | 33 | 436 | 5.515152 | 0.818182 | 0.065934 | 0.087912 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046961 | 0.169725 | 436 | 19 | 59 | 22.947368 | 0.455801 | 0.743119 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
f4e7a01e8277cf8177df0323b9e72a680d823e3a | 412 | py | Python | responsibleai/responsibleai/_managers/base_manager.py | ms-kashyap/responsible-ai-widgets | 56906fb30d9b81a5edc5443d24312bc2d32e5165 | [
"MIT"
] | 119 | 2021-12-02T21:00:47.000Z | 2022-03-31T06:44:31.000Z | responsibleai/responsibleai/_managers/base_manager.py | ms-kashyap/responsible-ai-widgets | 56906fb30d9b81a5edc5443d24312bc2d32e5165 | [
"MIT"
] | 293 | 2021-11-30T16:45:49.000Z | 2022-03-31T23:57:13.000Z | responsibleai/responsibleai/_managers/base_manager.py | ms-kashyap/responsible-ai-widgets | 56906fb30d9b81a5edc5443d24312bc2d32e5165 | [
"MIT"
] | 28 | 2021-12-07T17:28:04.000Z | 2022-03-31T07:47:11.000Z | # Copyright (c) Microsoft Corporation
# Licensed under the MIT License.
"""Defines the base class for managers."""
import warnings
from responsibleai.managers.base_manager import * # noqa: F401, F403
warnings.warn(
"MODULE-DEPRECATION-WARNING: The module "
"responsibleai._managers.base_manager is deprecate... | 27.466667 | 69 | 0.759709 | 47 | 412 | 6.574468 | 0.680851 | 0.203884 | 0.242718 | 0.31068 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017143 | 0.150485 | 412 | 14 | 70 | 29.428571 | 0.865714 | 0.296117 | 0 | 0 | 0 | 0 | 0.517731 | 0.347518 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.285714 | 0 | 0.285714 | 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 |
f4ef69e9b1a7d809e8ec952f2494afb93659dadd | 834 | py | Python | tests/test_191.py | sungho-joo/leetcode2github | ce7730ef40f6051df23681dd3c0e1e657abba620 | [
"MIT"
] | null | null | null | tests/test_191.py | sungho-joo/leetcode2github | ce7730ef40f6051df23681dd3c0e1e657abba620 | [
"MIT"
] | null | null | null | tests/test_191.py | sungho-joo/leetcode2github | ce7730ef40f6051df23681dd3c0e1e657abba620 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import pytest
"""
Test 191. Number of 1 Bits
"""
@pytest.fixture(scope="session")
def init_variables_191():
from src.leetcode_191_number_of_1_bits import Solution
solution = Solution()
def _init_variables_191():
return solution
yield _init_variables_191
class TestCla... | 28.758621 | 117 | 0.679856 | 89 | 834 | 6.022472 | 0.404494 | 0.218284 | 0.268657 | 0.11194 | 0.367537 | 0.307836 | 0.307836 | 0.307836 | 0.307836 | 0 | 0 | 0.22381 | 0.244604 | 834 | 28 | 118 | 29.785714 | 0.626984 | 0.023981 | 0 | 0 | 0 | 0 | 0.008986 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0 | null | null | 0 | 0.133333 | null | null | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
7624e4734f5fd5ca65965de5c2f527d22f31b025 | 37 | py | Python | database/config.py | Asguerrero/cs257 | 77eb5b288e7084c94e6ef27de589ab00446b880b | [
"MIT"
] | null | null | null | database/config.py | Asguerrero/cs257 | 77eb5b288e7084c94e6ef27de589ab00446b880b | [
"MIT"
] | null | null | null | database/config.py | Asguerrero/cs257 | 77eb5b288e7084c94e6ef27de589ab00446b880b | [
"MIT"
] | null | null | null | database = ''
user = ''
password = '' | 12.333333 | 13 | 0.540541 | 3 | 37 | 6.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.216216 | 37 | 3 | 14 | 12.333333 | 0.689655 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.333333 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
762e6c1694e7e185ff2b1bd1318041a688f0fb4f | 86 | py | Python | run_taoba_monitor.py | Miffy1030-llf/new_llf-bot | d300252cb053df4aead1970dc5dcd773fd689031 | [
"MIT"
] | null | null | null | run_taoba_monitor.py | Miffy1030-llf/new_llf-bot | d300252cb053df4aead1970dc5dcd773fd689031 | [
"MIT"
] | null | null | null | run_taoba_monitor.py | Miffy1030-llf/new_llf-bot | d300252cb053df4aead1970dc5dcd773fd689031 | [
"MIT"
] | 1 | 2020-09-03T11:32:36.000Z | 2020-09-03T11:32:36.000Z | from taoba.taobaMonitor import TaobaMonitor as tm
tm().start_monitor() | 28.666667 | 49 | 0.674419 | 10 | 86 | 5.7 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.255814 | 86 | 3 | 50 | 28.666667 | 0.890625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
762e735b0f255a332cd1706faaf34723ba1d0f1e | 792 | py | Python | src/rolls.py | schrummy14/dnd_5ed_character_gen | 9245619a961924c7d33eb95ea3004e51729e5b69 | [
"Apache-2.0"
] | null | null | null | src/rolls.py | schrummy14/dnd_5ed_character_gen | 9245619a961924c7d33eb95ea3004e51729e5b69 | [
"Apache-2.0"
] | null | null | null | src/rolls.py | schrummy14/dnd_5ed_character_gen | 9245619a961924c7d33eb95ea3004e51729e5b69 | [
"Apache-2.0"
] | null | null | null | from random import randint
## Function that simulates dice rolls to calculate attribute scores
#
# @param min_val Min value the dice can take (reroll 1s)
# @param max_val Max value the dice can take (roll d10)
# @param numDice Number of dice to roll
def rollAtribute(min_val, max_val, numDice):
minRoll = max_va... | 19.317073 | 67 | 0.647727 | 118 | 792 | 4.288136 | 0.457627 | 0.179842 | 0.193676 | 0.059289 | 0.075099 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059423 | 0.256313 | 792 | 40 | 68 | 19.8 | 0.79966 | 0.270202 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.32 | false | 0 | 0.04 | 0.28 | 0.68 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
522fd9fd484172f03d15fce502219dc3b0c6652a | 2,373 | py | Python | akivymd/factory_registers.py | JUDE122-MAX/akivymd | b2daddd2f58889859514286606f46a4af6f03828 | [
"MIT"
] | 51 | 2020-06-18T15:14:02.000Z | 2022-03-07T05:46:11.000Z | akivymd/factory_registers.py | JUDE122-MAX/akivymd | b2daddd2f58889859514286606f46a4af6f03828 | [
"MIT"
] | 16 | 2020-07-19T08:13:45.000Z | 2021-06-05T20:55:12.000Z | akivymd/factory_registers.py | JUDE122-MAX/akivymd | b2daddd2f58889859514286606f46a4af6f03828 | [
"MIT"
] | 15 | 2020-07-18T10:34:10.000Z | 2021-07-03T09:07:37.000Z | from kivy.factory import Factory
r = Factory.register
r("AKAddWidgetAnimationBehavior", module="akivymd.uix.behaviors.addwidget")
r("AKBadgeLayout", module="akivymd.uix.badgelayout")
r("AKFloatingRoundedAppbar", module="akivymd.uix.bottomappbar")
r("AKFloatingRoundedAppbarAvatarItem", module="akivymd.uix.bottomappbar"... | 55.186047 | 75 | 0.79646 | 247 | 2,373 | 7.647773 | 0.283401 | 0.268396 | 0.330334 | 0.052938 | 0.477501 | 0.063526 | 0 | 0 | 0 | 0 | 0 | 0.001312 | 0.036241 | 2,373 | 42 | 76 | 56.5 | 0.824661 | 0 | 0 | 0 | 0 | 0 | 0.697429 | 0.442056 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.02439 | 0 | 0.02439 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
bfe3b90a6d31d73dd6bb85de91051fef3c7b17df | 217 | py | Python | src/battlecard.py | battlecard/battlecard-server | 70bc72ea6c6be555022f9ff93689ad33c310184c | [
"MIT"
] | null | null | null | src/battlecard.py | battlecard/battlecard-server | 70bc72ea6c6be555022f9ff93689ad33c310184c | [
"MIT"
] | null | null | null | src/battlecard.py | battlecard/battlecard-server | 70bc72ea6c6be555022f9ff93689ad33c310184c | [
"MIT"
] | null | null | null | #/usr/bin/python3
from http.server import BaseHTTPRequestHandler
class BattleCardServer(BaseHTTPRequestHandler):
def __init__(self):
BaseHTTPRequestHandler.__init__()
def do_GET(self):
pass
| 19.727273 | 47 | 0.737327 | 21 | 217 | 7.190476 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00565 | 0.184332 | 217 | 10 | 48 | 21.7 | 0.847458 | 0.073733 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.166667 | 0.166667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
bffb39779b7303c00ce18ff0353d28ba57b56296 | 113 | py | Python | alfred/backup/Alfred.alfredpreferences/workflows/user.workflow.F455B544-D4E3-402B-B987-8D3EA582A111/wunderlist/api/user.py | jlhall/dotfiles | bc4315c59cda532a5a810fb85ee525faddb8ab2c | [
"MIT"
] | 1 | 2022-01-28T22:20:44.000Z | 2022-01-28T22:20:44.000Z | alfred/backup/Alfred.alfredpreferences/workflows/user.workflow.F455B544-D4E3-402B-B987-8D3EA582A111/wunderlist/api/user.py | jlhall/dotfiles | bc4315c59cda532a5a810fb85ee525faddb8ab2c | [
"MIT"
] | null | null | null | alfred/backup/Alfred.alfredpreferences/workflows/user.workflow.F455B544-D4E3-402B-B987-8D3EA582A111/wunderlist/api/user.py | jlhall/dotfiles | bc4315c59cda532a5a810fb85ee525faddb8ab2c | [
"MIT"
] | null | null | null | import wunderlist.api.base as api
def user():
req = api.get('user')
user = req.json()
return user
| 12.555556 | 33 | 0.610619 | 17 | 113 | 4.058824 | 0.647059 | 0.202899 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.256637 | 113 | 8 | 34 | 14.125 | 0.821429 | 0 | 0 | 0 | 0 | 0 | 0.035398 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 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 | 0 | 0 | 1 | 0 | 0 | 4 |
bffe72ed886b328b60f52e2f80eaecf2437b9b70 | 308 | py | Python | __init__.py | senavs/AbstractDataTypes | 83afdb3b5c7e4a303cf2b0f0cf65152e43e2778d | [
"MIT"
] | 1 | 2021-04-14T10:03:59.000Z | 2021-04-14T10:03:59.000Z | __init__.py | senavs/AbstractDataTypes | 83afdb3b5c7e4a303cf2b0f0cf65152e43e2778d | [
"MIT"
] | 2 | 2019-07-02T14:59:12.000Z | 2019-07-07T14:37:41.000Z | __init__.py | senavs/AbstractDataTypes | 83afdb3b5c7e4a303cf2b0f0cf65152e43e2778d | [
"MIT"
] | null | null | null | from .queue.queue import Queue
from .circular_queue.circular_queue import CircularQueue
from .deque.deque import Deque
from .stack.stack import Stack
from .linked_list.linked_list import LinkedList
from .doubly_linked_list.doubly_linked_list import DoublyLinkedList
from .binary_search_tree.tree import Tree
| 38.5 | 67 | 0.863636 | 45 | 308 | 5.688889 | 0.333333 | 0.15625 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 308 | 7 | 68 | 44 | 0.914286 | 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 |
8721d352b4b23aaf4ca9787ce2c938d934ac6279 | 310 | py | Python | tests/test_constraints.py | quentin-ag/exaqute-api | be75f95eb6e2ca5316f1c32900887a2ff31b8a5a | [
"BSD-4-Clause"
] | null | null | null | tests/test_constraints.py | quentin-ag/exaqute-api | be75f95eb6e2ca5316f1c32900887a2ff31b8a5a | [
"BSD-4-Clause"
] | 1 | 2021-09-20T10:18:15.000Z | 2021-11-09T23:12:43.000Z | tests/test_constraints.py | quentin-ag/exaqute-api | be75f95eb6e2ca5316f1c32900887a2ff31b8a5a | [
"BSD-4-Clause"
] | 1 | 2021-08-24T17:59:02.000Z | 2021-08-24T17:59:02.000Z | import pytest
from exaqute import constraint, task
def test_constraint():
@constraint(computing_units=2)
@task()
def _(x, y):
return x + y
with pytest.raises(AssertionError):
@constraint(computing_units="abc")
@task()
def _2(x, y):
return x + y
| 17.222222 | 42 | 0.587097 | 37 | 310 | 4.783784 | 0.486486 | 0.045198 | 0.271186 | 0.101695 | 0.112994 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009259 | 0.303226 | 310 | 17 | 43 | 18.235294 | 0.810185 | 0 | 0 | 0.333333 | 0 | 0 | 0.009677 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 1 | 0.25 | false | 0 | 0.166667 | 0.166667 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
874cd9979556777cb379ba988f4499359d1e4f3f | 62,114 | py | Python | magnetic_tracking.py | ya54/SolarUnet-magnetic-tracking | e80f9ef35aa946d1b50601b10f8b95444afc3504 | [
"MIT"
] | 1 | 2020-09-01T17:10:48.000Z | 2020-09-01T17:10:48.000Z | magnetic_tracking.py | deepsuncode/SolarUnet | bfdfb1c0be5938b98f262b999243b65431b859ff | [
"MIT"
] | null | null | null | magnetic_tracking.py | deepsuncode/SolarUnet | bfdfb1c0be5938b98f262b999243b65431b859ff | [
"MIT"
] | 2 | 2021-10-16T20:10:21.000Z | 2021-11-28T16:00:01.000Z | # =========================================================================
# (c) Copyright 2020
# All rights reserved
# Programs written by Haodi Jiang
# Department of Computer Science
# New Jersey Institute of Technology
# University Heights, Newark, NJ 07102, USA
#
# Permission to use, copy, modify, an... | 48.300156 | 222 | 0.608913 | 8,100 | 62,114 | 4.268889 | 0.053333 | 0.025768 | 0.03748 | 0.024987 | 0.796836 | 0.752704 | 0.734455 | 0.71051 | 0.69122 | 0.678032 | 0 | 0.021784 | 0.317867 | 62,114 | 1,285 | 223 | 48.337743 | 0.794312 | 0.137602 | 0 | 0.661433 | 0 | 0 | 0.008265 | 0.003287 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030422 | false | 0.025515 | 0.010795 | 0 | 0.068695 | 0.002944 | 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 |
87614e9344c7a508b72d42c3e54c0e1c723d1758 | 55 | py | Python | BOJwithDongbinNa/2751/2751.py | jiyolla/StudyForCodingTestWithDongbinNa | c070829dd9c7b02b139e56511832c4a3b9f5982f | [
"MIT"
] | null | null | null | BOJwithDongbinNa/2751/2751.py | jiyolla/StudyForCodingTestWithDongbinNa | c070829dd9c7b02b139e56511832c4a3b9f5982f | [
"MIT"
] | null | null | null | BOJwithDongbinNa/2751/2751.py | jiyolla/StudyForCodingTestWithDongbinNa | c070829dd9c7b02b139e56511832c4a3b9f5982f | [
"MIT"
] | null | null | null | print(*sorted(list(map(int, [*open(0)][1:]))),sep='\n') | 55 | 55 | 0.563636 | 10 | 55 | 3.1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037037 | 0.018182 | 55 | 1 | 55 | 55 | 0.537037 | 0 | 0 | 0 | 0 | 0 | 0.035714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 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 |
8762720c6151d6e947b6598ffe68be92042f4521 | 23,397 | py | Python | checkers_py/oneapi_gpu_checker.py | intel/diagnostics-utility | 380166619294e4292621855f7cfd4cc8e39c6123 | [
"BSD-3-Clause"
] | 5 | 2021-12-13T07:35:43.000Z | 2022-01-14T15:36:26.000Z | checkers_py/oneapi_gpu_checker.py | intel/diagnostics-utility | 380166619294e4292621855f7cfd4cc8e39c6123 | [
"BSD-3-Clause"
] | null | null | null | checkers_py/oneapi_gpu_checker.py | intel/diagnostics-utility | 380166619294e4292621855f7cfd4cc8e39c6123 | [
"BSD-3-Clause"
] | null | null | null | # /*******************************************************************************
# Copyright Intel Corporation.
# This software and the related documents are Intel copyrighted materials, and your use of them
# is governed by the express license under which they were provided to you (License).
# Unless the License pro... | 43.979323 | 110 | 0.636022 | 2,853 | 23,397 | 4.997546 | 0.097091 | 0.027774 | 0.031421 | 0.022444 | 0.828237 | 0.760485 | 0.712723 | 0.690981 | 0.652195 | 0.596648 | 0 | 0.009838 | 0.235372 | 23,397 | 531 | 111 | 44.062147 | 0.784349 | 0.03073 | 0 | 0.534831 | 0 | 0.002247 | 0.335201 | 0.056293 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042697 | false | 0.062921 | 0.017978 | 0.002247 | 0.085393 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
5eb971b9502d3bfb4589d191f21b7f97362124d3 | 101 | py | Python | python/y2019/d17/__main__.py | luke-dixon/aoc | 94851a5866a1ef29e3ba10098160cba883882683 | [
"MIT"
] | 1 | 2021-01-12T20:04:01.000Z | 2021-01-12T20:04:01.000Z | python/y2019/d17/__main__.py | luke-dixon/aoc | 94851a5866a1ef29e3ba10098160cba883882683 | [
"MIT"
] | null | null | null | python/y2019/d17/__main__.py | luke-dixon/aoc | 94851a5866a1ef29e3ba10098160cba883882683 | [
"MIT"
] | null | null | null | import sys
from .day17 import Day17
if __name__ == '__main__':
Day17(args=sys.argv[1:]).main()
| 14.428571 | 35 | 0.673267 | 15 | 101 | 4 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 0.168317 | 101 | 6 | 36 | 16.833333 | 0.630952 | 0 | 0 | 0 | 0 | 0 | 0.079208 | 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 |
5ec4ad02aab85db413748f1c07bbe9b4c4d203a1 | 532 | py | Python | tests/raylab/policy/modules/conftest.py | angelolovatto/raylab | ebaea8df1a391fb844e75df62ccf1e2e07311d88 | [
"MIT"
] | 29 | 2020-05-05T13:25:33.000Z | 2022-01-03T14:12:29.000Z | tests/raylab/policy/modules/conftest.py | angelolovatto/raylab | ebaea8df1a391fb844e75df62ccf1e2e07311d88 | [
"MIT"
] | 215 | 2019-11-26T12:59:39.000Z | 2022-02-01T12:38:31.000Z | tests/raylab/policy/modules/conftest.py | angelolovatto/raylab | ebaea8df1a391fb844e75df62ccf1e2e07311d88 | [
"MIT"
] | 7 | 2020-06-12T01:42:02.000Z | 2021-05-27T03:40:42.000Z | import pytest
import torch
from ray.rllib import SampleBatch
@pytest.fixture(scope="module")
def batch(obs_space, action_space):
from raylab.utils.debug import fake_batch
samples = fake_batch(obs_space, action_space, batch_size=32)
return {k: torch.from_numpy(v) for k, v in samples.items()}
@pytest.fix... | 19.703704 | 64 | 0.753759 | 78 | 532 | 5 | 0.410256 | 0.133333 | 0.123077 | 0.207692 | 0.276923 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004396 | 0.144737 | 532 | 26 | 65 | 20.461538 | 0.852747 | 0 | 0 | 0.176471 | 0 | 0 | 0.011278 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.235294 | 0.176471 | 0.705882 | 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 |
5ec4ea42191c92f80dd9fb04d549c8de532c800b | 1,521 | py | Python | setup.py | TiePie/python-libtiepie | d2a9875855298a58d6a16be5b61aaa89a558e7d8 | [
"MIT"
] | 6 | 2020-01-04T02:00:35.000Z | 2022-03-22T00:32:26.000Z | setup.py | TiePie/python-libtiepie | d2a9875855298a58d6a16be5b61aaa89a558e7d8 | [
"MIT"
] | 3 | 2020-08-05T15:16:29.000Z | 2022-03-21T07:00:27.000Z | setup.py | TiePie/python-libtiepie | d2a9875855298a58d6a16be5b61aaa89a558e7d8 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(name='python-libtiepie',
version='0.9.7',
description='Python bindings for LibTiePie',
license='MIT',
author='TiePie engineering',
author_email='support@tiepie.nl',
url='https://github.com/TiePie/python-libtiep... | 42.25 | 68 | 0.587114 | 144 | 1,521 | 6.159722 | 0.465278 | 0.171364 | 0.225479 | 0.205186 | 0.173619 | 0.087937 | 0 | 0 | 0 | 0 | 0 | 0.02139 | 0.262327 | 1,521 | 35 | 69 | 43.457143 | 0.769162 | 0.013149 | 0 | 0 | 0 | 0 | 0.617333 | 0.014667 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.03125 | 0 | 0.03125 | 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 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
5ed2eceb61a3e86d0d14ffca416f996ef3f5a33d | 52 | py | Python | sciencebeam_parser/models/citation/__init__.py | elifesciences/sciencebeam-parser | 66964f283612b8d6fa8a23ad8790292c1ec07651 | [
"MIT"
] | 13 | 2021-08-04T12:11:17.000Z | 2022-03-28T20:41:20.000Z | sciencebeam_parser/models/citation/__init__.py | elifesciences/sciencebeam-parser | 66964f283612b8d6fa8a23ad8790292c1ec07651 | [
"MIT"
] | 33 | 2021-08-05T08:37:59.000Z | 2022-03-29T18:42:09.000Z | sciencebeam_parser/models/citation/__init__.py | elifesciences/sciencebeam-parser | 66964f283612b8d6fa8a23ad8790292c1ec07651 | [
"MIT"
] | 1 | 2022-01-05T14:53:06.000Z | 2022-01-05T14:53:06.000Z | # This module refers to the `citation` GROBID model
| 26 | 51 | 0.769231 | 8 | 52 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173077 | 52 | 1 | 52 | 52 | 0.930233 | 0.942308 | 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 |
0d8d9b02a490f584601867cf1d92f128f92e576e | 593 | py | Python | apps/mappings/migrations/0004_auto_20201221_0748.py | fylein/fyle-qbo-api | 627339ddbab37cafc8aa419a757d826759d86778 | [
"MIT"
] | null | null | null | apps/mappings/migrations/0004_auto_20201221_0748.py | fylein/fyle-qbo-api | 627339ddbab37cafc8aa419a757d826759d86778 | [
"MIT"
] | 22 | 2020-01-03T11:00:00.000Z | 2022-03-22T11:12:35.000Z | apps/mappings/migrations/0004_auto_20201221_0748.py | fylein/fyle-qbo-api | 627339ddbab37cafc8aa419a757d826759d86778 | [
"MIT"
] | 3 | 2020-03-09T12:56:31.000Z | 2020-06-10T07:55:47.000Z | # Generated by Django 3.0.3 on 2020-12-21 07:48
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('mappings', '0003_auto_20200930_0738'),
]
operations = [
migrations.AlterModelTable(
name='costcentermapping',
table='cost_ce... | 22.807692 | 48 | 0.58516 | 50 | 593 | 6.8 | 0.68 | 0.220588 | 0.255882 | 0.217647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07598 | 0.311973 | 593 | 25 | 49 | 23.72 | 0.757353 | 0.075885 | 0 | 0.315789 | 1 | 0 | 0.234432 | 0.042125 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.210526 | 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 |
0df67aab4360ae75b020a35a1bcfd9ec9733a790 | 338 | py | Python | mease/decorators.py | florianpaquet/mease | b9fbd08bbe162c8890c2a2124674371170c319ef | [
"MIT"
] | 2 | 2015-12-02T06:58:39.000Z | 2017-12-05T23:05:47.000Z | mease/decorators.py | florianpaquet/mease | b9fbd08bbe162c8890c2a2124674371170c319ef | [
"MIT"
] | 2 | 2021-04-30T20:29:06.000Z | 2022-02-11T03:38:07.000Z | mease/decorators.py | florianpaquet/mease | b9fbd08bbe162c8890c2a2124674371170c319ef | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
__all__ = ('method_decorator',)
def method_decorator(method):
def wrap(instance, function=None, *args, **kwargs):
def inner_wrap(callback):
method(instance, callback, *args, **kwargs)
if function:
return inner_wrap(function)
return inner_wra... | 24.142857 | 55 | 0.615385 | 37 | 338 | 5.378378 | 0.459459 | 0.135678 | 0.190955 | 0.231156 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004 | 0.260355 | 338 | 13 | 56 | 26 | 0.792 | 0.06213 | 0 | 0 | 0 | 0 | 0.050794 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
219053704a003123fb93e59779d02f84c8ed3001 | 274 | py | Python | test/test2.py | ElenaGao/python | 2da2fcb7c119eb0ec4e4f290df93f9c5897a5575 | [
"Apache-2.0"
] | null | null | null | test/test2.py | ElenaGao/python | 2da2fcb7c119eb0ec4e4f290df93f9c5897a5575 | [
"Apache-2.0"
] | null | null | null | test/test2.py | ElenaGao/python | 2da2fcb7c119eb0ec4e4f290df93f9c5897a5575 | [
"Apache-2.0"
] | null | null | null | # -*- coding: UTF-8 -*-
i = int(raw_input('净利润:'))
arr=[1000000,600000,400000,200000,100000,0]
rat=[0.01,0.015,0.03,0.05,0.075,0.1]
r=0L
for idx in range(0,6):
if i>arr[idx]:
r=r+(i-arr[idx])*rat[idx]
print i-arr[idx]*rat[idx]
i=arr[idx]
print r | 22.833333 | 43 | 0.569343 | 58 | 274 | 2.672414 | 0.534483 | 0.103226 | 0.180645 | 0.129032 | 0.167742 | 0 | 0 | 0 | 0 | 0 | 0 | 0.246637 | 0.186131 | 274 | 12 | 44 | 22.833333 | 0.44843 | 0.076642 | 0 | 0 | 0 | 0 | 0.015873 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.2 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
21973efb1e8bf6cd555fdde39d066888f5865b6e | 627 | py | Python | {{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}.py | giacomomarchioro/cookiecutter-minimalpygimpplugin | 3b15de49d03097718dbaca2bd84b93f784587a0a | [
"BSD-3-Clause"
] | null | null | null | {{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}.py | giacomomarchioro/cookiecutter-minimalpygimpplugin | 3b15de49d03097718dbaca2bd84b93f784587a0a | [
"BSD-3-Clause"
] | null | null | null | {{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}.py | giacomomarchioro/cookiecutter-minimalpygimpplugin | 3b15de49d03097718dbaca2bd84b93f784587a0a | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python
'''
{{cookiecutter.project_short_description}}
'''
from gimpfu import *
def {{ cookiecutter.project_slug }}(img,drw):
img=gimp.image_list()[0]
layers = img.layers
register(
"{{ cookiecutter.project_slug }}",
"{{ cookiecutter.project_short_description }}",
"{{ cookie... | 26.125 | 58 | 0.590112 | 55 | 627 | 6.472727 | 0.472727 | 0.373596 | 0.258427 | 0.294944 | 0.230337 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010373 | 0.23126 | 627 | 23 | 59 | 27.26087 | 0.728216 | 0.025518 | 0 | 0.352941 | 0 | 0 | 0.457143 | 0.346429 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.058824 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
21a24d1dba21052d03135fb1009733738cf777e3 | 200 | py | Python | ipify_me/__init__.py | infosecB/ipify-me | fc910a487e4048407abb565d4b079f3f701c1ac7 | [
"Apache-2.0"
] | null | null | null | ipify_me/__init__.py | infosecB/ipify-me | fc910a487e4048407abb565d4b079f3f701c1ac7 | [
"Apache-2.0"
] | null | null | null | ipify_me/__init__.py | infosecB/ipify-me | fc910a487e4048407abb565d4b079f3f701c1ac7 | [
"Apache-2.0"
] | null | null | null | """Top-level package for Ipify Me."""
__author__ = """Brendan Chamberlain"""
__email__ = 'brendan@infosecb.com'
__version__ = '1.1.0'
from .core import get_ipify_ip
from .core import print_ipify_ip
| 22.222222 | 38 | 0.74 | 29 | 200 | 4.551724 | 0.724138 | 0.121212 | 0.212121 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017143 | 0.125 | 200 | 8 | 39 | 25 | 0.737143 | 0.155 | 0 | 0 | 0 | 0 | 0.269939 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0.2 | 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 |
21aeefb51d62cecbe523221fa5620e39fa254a56 | 79 | py | Python | src/afterpay/exceptions/afterpay_error.py | nyneava/afterpay-python | ec9f9230ce321a2d9876ac93f222c24ffe7eee1a | [
"MIT"
] | null | null | null | src/afterpay/exceptions/afterpay_error.py | nyneava/afterpay-python | ec9f9230ce321a2d9876ac93f222c24ffe7eee1a | [
"MIT"
] | null | null | null | src/afterpay/exceptions/afterpay_error.py | nyneava/afterpay-python | ec9f9230ce321a2d9876ac93f222c24ffe7eee1a | [
"MIT"
] | null | null | null | class AfterpayError(Exception):
"""
Unspecified error
"""
pass
| 13.166667 | 31 | 0.594937 | 6 | 79 | 7.833333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.291139 | 79 | 5 | 32 | 15.8 | 0.839286 | 0.21519 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
21c91f1467661917fb27cdd7025feb6797d49916 | 50 | py | Python | tests/__init__.py | lsst-sqre/squash-rest-api | 4c42115418e8770da3fc42e8046e63e6d7e536d7 | [
"MIT"
] | null | null | null | tests/__init__.py | lsst-sqre/squash-rest-api | 4c42115418e8770da3fc42e8046e63e6d7e536d7 | [
"MIT"
] | 22 | 2021-01-04T15:20:41.000Z | 2022-03-21T21:02:17.000Z | tests/__init__.py | lsst-sqre/squash-rest-api | 4c42115418e8770da3fc42e8046e63e6d7e536d7 | [
"MIT"
] | null | null | null | """squash-api unit tests and functional tests."""
| 25 | 49 | 0.72 | 7 | 50 | 5.142857 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12 | 50 | 1 | 50 | 50 | 0.818182 | 0.86 | 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 |
21dd8b80f0d12e3aa1efc6aee365310c3e0ca0a7 | 215 | py | Python | mmdet/det_core/bbox/coder/__init__.py | rgwang/mmdetection-mini | 3845bb38e6af7a28364d28cb581af68bf46739f3 | [
"MIT"
] | 1 | 2020-09-18T08:03:12.000Z | 2020-09-18T08:03:12.000Z | mmdet/det_core/bbox/coder/__init__.py | rgwang/mmdetection-mini | 3845bb38e6af7a28364d28cb581af68bf46739f3 | [
"MIT"
] | null | null | null | mmdet/det_core/bbox/coder/__init__.py | rgwang/mmdetection-mini | 3845bb38e6af7a28364d28cb581af68bf46739f3 | [
"MIT"
] | null | null | null | from .base_bbox_coder import BaseBBoxCoder
from .delta_xywh_bbox_coder import DeltaXYWHBBoxCoder
from .yolo_bbox_coder import YOLOBBoxCoder
__all__ = [
'BaseBBoxCoder', 'DeltaXYWHBBoxCoder','YOLOBBoxCoder'
]
| 23.888889 | 58 | 0.818605 | 23 | 215 | 7.173913 | 0.521739 | 0.163636 | 0.272727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116279 | 215 | 8 | 59 | 26.875 | 0.868421 | 0 | 0 | 0 | 0 | 0 | 0.204651 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
21e1d518af7f65456c6a0db217011a0c6f56ab3f | 12,458 | py | Python | nautobot_golden_config/migrations/0001_initial.py | jvanderaa/nautobot-plugin-golden-config | d928ce9da926976f4ad96d99daabb0941ba66a20 | [
"Apache-2.0"
] | 49 | 2021-02-27T13:10:07.000Z | 2022-03-29T21:35:13.000Z | nautobot_golden_config/migrations/0001_initial.py | jvanderaa/nautobot-plugin-golden-config | d928ce9da926976f4ad96d99daabb0941ba66a20 | [
"Apache-2.0"
] | 123 | 2021-02-27T15:39:33.000Z | 2022-03-30T08:53:32.000Z | nautobot_golden_config/migrations/0001_initial.py | jvanderaa/nautobot-plugin-golden-config | d928ce9da926976f4ad96d99daabb0941ba66a20 | [
"Apache-2.0"
] | 34 | 2021-02-27T19:24:58.000Z | 2022-03-15T12:18:26.000Z | # Generated by Django 3.1.8 on 2021-05-09 18:33
import django.core.serializers.json
from django.db import migrations, models
import django.db.models.deletion
import taggit.managers
import uuid
class Migration(migrations.Migration):
initial = True
dependencies = [
("extras", "0004_populate_default_s... | 44.33452 | 120 | 0.48515 | 975 | 12,458 | 6.043077 | 0.142564 | 0.04277 | 0.038697 | 0.041073 | 0.778004 | 0.74389 | 0.729464 | 0.688052 | 0.672098 | 0.647658 | 0 | 0.009961 | 0.395649 | 12,458 | 280 | 121 | 44.492857 | 0.772613 | 0.003612 | 0 | 0.637363 | 1 | 0 | 0.142857 | 0.025381 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.018315 | 0 | 0.032967 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.