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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6d8c473db84656e4854c56c4078c373c7070de64 | 182 | py | Python | tests/deployment/sagemaker/sagemaker_moto/__init__.py | Shumpei-Kikuta/BentoML | 4fe508934ab431ea5c414ee9d8b84c2104688381 | [
"Apache-2.0"
] | 3,451 | 2019-04-02T01:47:42.000Z | 2022-03-31T16:20:49.000Z | tests/deployment/sagemaker/sagemaker_moto/__init__.py | Shumpei-Kikuta/BentoML | 4fe508934ab431ea5c414ee9d8b84c2104688381 | [
"Apache-2.0"
] | 1,925 | 2019-04-03T00:19:05.000Z | 2022-03-31T22:41:54.000Z | tests/deployment/sagemaker/sagemaker_moto/__init__.py | Shumpei-Kikuta/BentoML | 4fe508934ab431ea5c414ee9d8b84c2104688381 | [
"Apache-2.0"
] | 451 | 2019-04-02T01:53:41.000Z | 2022-03-29T08:49:06.000Z | from moto.core.models import base_decorator
from tests.deployment.sagemaker.sagemaker_moto.model import sagemaker_backends
moto_mock_sagemaker = base_decorator(sagemaker_backends)
| 30.333333 | 78 | 0.879121 | 24 | 182 | 6.375 | 0.541667 | 0.169935 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 182 | 5 | 79 | 36.4 | 0.905325 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
6d8d22eceec1801abe9401b069c7d5604798ecfc | 167 | py | Python | compiler/astnodes/stmt.py | yangdanny97/chocopy-python-frontend | d0fb63fc744771640fa4d06076743f42089899c1 | [
"MIT"
] | 3 | 2020-05-30T16:59:33.000Z | 2020-05-31T00:28:45.000Z | compiler/astnodes/stmt.py | yangdanny97/chocopy-python-frontend | d0fb63fc744771640fa4d06076743f42089899c1 | [
"MIT"
] | 1 | 2020-05-30T17:57:11.000Z | 2020-05-30T20:44:53.000Z | compiler/astnodes/stmt.py | yangdanny97/chocopy-python-frontend | d0fb63fc744771640fa4d06076743f42089899c1 | [
"MIT"
] | null | null | null | from .node import Node
class Stmt(Node):
def __init__(self, location: [int], kind: str):
super().__init__(location, kind)
self.isReturn = False
| 18.555556 | 51 | 0.634731 | 21 | 167 | 4.666667 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.239521 | 167 | 8 | 52 | 20.875 | 0.771654 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
6da9081206a139e812810df27bc44eff170ecb8a | 302 | py | Python | challenges/solving_project_euler/imadken/imadken_15.py | kdj309/H4ckT0b3rF3st-2k21 | 5395c0bfb442a64ad7efc7d83e12e1d08cdb7438 | [
"MIT"
] | 23 | 2021-09-21T15:48:16.000Z | 2022-01-10T10:54:49.000Z | challenges/solving_project_euler/imadken/imadken_15.py | kdj309/H4ckT0b3rF3st-2k21 | 5395c0bfb442a64ad7efc7d83e12e1d08cdb7438 | [
"MIT"
] | 14 | 2021-10-05T07:10:31.000Z | 2021-10-17T04:55:29.000Z | challenges/solving_project_euler/imadken/imadken_15.py | kdj309/H4ckT0b3rF3st-2k21 | 5395c0bfb442a64ad7efc7d83e12e1d08cdb7438 | [
"MIT"
] | 30 | 2021-09-25T19:45:22.000Z | 2021-10-31T19:16:43.000Z |
import math
def Lattice_Paths(n):
# We notice that number of ups == number of downs == n
#So it's like how many possibilities to have n (ups | downs) from 2n
#we use this formula : n!/p!(n-p)!
return math.factorial(2 * n) // (math.factorial(n) ** 2)
print(Lattice_Paths(20)) | 18.875 | 72 | 0.629139 | 51 | 302 | 3.686275 | 0.647059 | 0.12766 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021834 | 0.241722 | 302 | 16 | 73 | 18.875 | 0.799127 | 0.503311 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.25 | 0.75 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
6dbf51293198ddec8815ec54658fd7406fc08078 | 278 | py | Python | base/dependency/module/linkdeps_if.py | btc-ag/revengtools | d58680ef7d6bdc8ef518860d5d13a5acc0d01758 | [
"Apache-2.0"
] | 2 | 2019-07-15T14:59:59.000Z | 2022-01-18T14:23:54.000Z | base/dependency/module/linkdeps_if.py | btc-ag/revengtools | d58680ef7d6bdc8ef518860d5d13a5acc0d01758 | [
"Apache-2.0"
] | 10 | 2018-05-03T13:25:07.000Z | 2021-06-25T15:14:55.000Z | base/dependency/module/linkdeps_if.py | btc-ag/revengtools | d58680ef7d6bdc8ef518860d5d13a5acc0d01758 | [
"Apache-2.0"
] | 1 | 2018-05-02T13:59:27.000Z | 2018-05-02T13:59:27.000Z | '''
Created on 01.10.2010
@author: SIGIESEC
'''
from commons.config_if import AutoConfigurable
class ModuleLinkDepsSupply(AutoConfigurable):
def get_module_link_deps_graph(self):
"""
@rtype: AttributeGraph
"""
raise NotImplementedError
| 19.857143 | 46 | 0.683453 | 27 | 278 | 6.851852 | 0.962963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037209 | 0.226619 | 278 | 13 | 47 | 21.384615 | 0.823256 | 0.226619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 3 |
6de8bc77d99bd8c2b60621a8c6ad7cdc2d5243b7 | 303 | py | Python | asteroid/utils/test_utils.py | groadabike/asteroid | 276d98346ab791d904fbfe79b9b8e374392dd128 | [
"MIT"
] | 3 | 2020-09-30T02:32:08.000Z | 2021-02-05T04:48:01.000Z | asteroid/utils/test_utils.py | groadabike/asteroid | 276d98346ab791d904fbfe79b9b8e374392dd128 | [
"MIT"
] | 1 | 2020-09-17T08:55:12.000Z | 2020-09-17T08:55:12.000Z | asteroid/utils/test_utils.py | groadabike/asteroid | 276d98346ab791d904fbfe79b9b8e374392dd128 | [
"MIT"
] | 1 | 2021-02-05T04:48:05.000Z | 2021-02-05T04:48:05.000Z | import torch
from torch.utils import data
class DummyDataset(data.Dataset):
def __init__(self):
self.inp_dim = 10
self.out_dim = 10
def __len__(self):
return 20
def __getitem__(self, idx):
return torch.randn(1, self.inp_dim), torch.randn(1, self.out_dim)
| 20.2 | 73 | 0.650165 | 44 | 303 | 4.113636 | 0.5 | 0.077348 | 0.110497 | 0.165746 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035242 | 0.250825 | 303 | 14 | 74 | 21.642857 | 0.762115 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.2 | 0.2 | 0.8 | 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 | 0 | 0 | 0 | 3 |
a3074596581b2e6e1338cb3aacd4917c9ac56a11 | 490 | py | Python | examples/exercises/hello/hello_comments.py | iods/meatball | a45b891ac9dc32c7879479891fa7f20212881af8 | [
"MIT"
] | null | null | null | examples/exercises/hello/hello_comments.py | iods/meatball | a45b891ac9dc32c7879479891fa7f20212881af8 | [
"MIT"
] | 4 | 2021-01-21T06:49:25.000Z | 2021-01-21T07:27:08.000Z | examples/exercises/hello/hello_comments.py | iods/meatball | a45b891ac9dc32c7879479891fa7f20212881af8 | [
"MIT"
] | null | null | null | """Example of comments within the Hello World package
This is a further elaboration of the docstring. Here, you can
define the details and steps appropriate for the situation.
Code tells you how. Comments tell you why.
args:
name (int): a description of the parameter
name (str): a description of the paramete... | 27.222222 | 71 | 0.75102 | 77 | 490 | 4.779221 | 0.636364 | 0.040761 | 0.11413 | 0.092391 | 0.141304 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.193878 | 490 | 17 | 72 | 28.823529 | 0.931646 | 0.932653 | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
098180726868cd04527562d1518ad7cee155cdf4 | 217 | py | Python | ramda/comparator.py | jakobkolb/ramda.py | 982b2172f4bb95b9a5b09eff8077362d6f2f0920 | [
"MIT"
] | 56 | 2018-08-06T08:44:58.000Z | 2022-03-17T09:49:03.000Z | ramda/comparator.py | jakobkolb/ramda.py | 982b2172f4bb95b9a5b09eff8077362d6f2f0920 | [
"MIT"
] | 28 | 2019-06-17T11:09:52.000Z | 2022-02-18T16:59:21.000Z | ramda/comparator.py | jakobkolb/ramda.py | 982b2172f4bb95b9a5b09eff8077362d6f2f0920 | [
"MIT"
] | 5 | 2019-09-18T09:24:38.000Z | 2021-07-21T08:40:23.000Z | def comparator(predicate):
"""Makes a comparator function out of a function that reports whether the first
element is less than the second"""
return lambda a, b: predicate(a, b) * -1 + predicate(b, a) * 1
| 43.4 | 83 | 0.691244 | 34 | 217 | 4.411765 | 0.647059 | 0.026667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011696 | 0.211982 | 217 | 4 | 84 | 54.25 | 0.865497 | 0.497696 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
0992c154960937a43085e67ed0f3ab6992054ae9 | 218 | py | Python | tests/api/inbound_eligibility/test_inbound_eligibility.py | Camille-cmd/python-amazon-sp-api | 00a169a0b16700e1498550742f384de74fca4aa3 | [
"MIT"
] | 213 | 2020-12-20T09:43:47.000Z | 2022-03-30T10:00:41.000Z | tests/api/inbound_eligibility/test_inbound_eligibility.py | Camille-cmd/python-amazon-sp-api | 00a169a0b16700e1498550742f384de74fca4aa3 | [
"MIT"
] | 173 | 2021-01-02T10:24:27.000Z | 2022-03-31T08:27:48.000Z | tests/api/inbound_eligibility/test_inbound_eligibility.py | Camille-cmd/python-amazon-sp-api | 00a169a0b16700e1498550742f384de74fca4aa3 | [
"MIT"
] | 109 | 2021-01-06T03:16:47.000Z | 2022-03-24T11:41:29.000Z | from sp_api.api import FbaInboundEligibility
def test_inbound_eligibility():
res = FbaInboundEligibility().get_item_eligibility_preview(asin='TEST_CASE_200', program="INBOUND")
assert res.payload is not None
| 31.142857 | 103 | 0.802752 | 28 | 218 | 5.964286 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015544 | 0.114679 | 218 | 6 | 104 | 36.333333 | 0.849741 | 0 | 0 | 0 | 0 | 0 | 0.091743 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
09bc078388c6992f4d6ef09e484f1896faeb677e | 306 | py | Python | test/fixtures/familia/sumar.py | prefapp/prefapp-core | 4f58bf1a8ce56a6025340dabe629c5278d4cffa7 | [
"Apache-2.0"
] | null | null | null | test/fixtures/familia/sumar.py | prefapp/prefapp-core | 4f58bf1a8ce56a6025340dabe629c5278d4cffa7 | [
"Apache-2.0"
] | 1 | 2021-06-15T08:25:27.000Z | 2021-06-15T08:25:27.000Z | test/fixtures/familia/sumar.py | prefapp/prefapp-core | 4f58bf1a8ce56a6025340dabe629c5278d4cffa7 | [
"Apache-2.0"
] | null | null | null | import prefapp_core
from prefapp_core.comando import Comando
class Sumar(Comando):
def parametrosNecesarios(self):
return {"a": int, "b": int}
def __validar__(self):
return True
def __ejecutar__(self):
self.resultado( "suma", self.arg( "a" ) + self.arg( "b" ) )
| 21.857143 | 67 | 0.627451 | 37 | 306 | 4.918919 | 0.540541 | 0.120879 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.245098 | 306 | 13 | 68 | 23.538462 | 0.787879 | 0 | 0 | 0 | 0 | 0 | 0.026144 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.222222 | 0.222222 | 0.888889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
09cfd57cf56012e779394563108f996153ebb38b | 842 | py | Python | examples/system_chaotic/plot.py | certik/hermes1d-llnl | 8e3b76fd3022af90e5c4c3923337a422d79604d5 | [
"BSD-3-Clause"
] | 1 | 2016-08-18T23:21:55.000Z | 2016-08-18T23:21:55.000Z | examples/system_chaotic/plot.py | certik/hermes1d-llnl | 8e3b76fd3022af90e5c4c3923337a422d79604d5 | [
"BSD-3-Clause"
] | null | null | null | examples/system_chaotic/plot.py | certik/hermes1d-llnl | 8e3b76fd3022af90e5c4c3923337a422d79604d5 | [
"BSD-3-Clause"
] | null | null | null | from pylab import plot, show, legend
import numpy
data = numpy.loadtxt("solution.gp_0")
x = data[:, 0]
y = data[:, 1]
plot(x, y, label="bas-0")
data = numpy.loadtxt("solution.gp_1")
x = data[:, 0]
y = data[:, 1]
plot(x, y, label="bas-1")
data = numpy.loadtxt("solution.gp_2")
x = data[:, 0]
y = data[:, 1]
plot(x, y, lab... | 21.589744 | 41 | 0.60095 | 158 | 842 | 3.126582 | 0.126582 | 0.145749 | 0.259109 | 0.388664 | 0.894737 | 0.688259 | 0.469636 | 0.469636 | 0.469636 | 0.469636 | 0 | 0.044568 | 0.147268 | 842 | 38 | 42 | 22.157895 | 0.643454 | 0 | 0 | 0.4 | 0 | 0 | 0.162528 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 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 | 3 |
61d2016300bae56b2bbf0f4a7f572dd7924c4d15 | 188 | py | Python | MyDjango/MyBlog/urls.py | zhaoguangyang/django-blog | 1fdce79be659e2445d1c89810832ad735c3fc894 | [
"Apache-2.0"
] | null | null | null | MyDjango/MyBlog/urls.py | zhaoguangyang/django-blog | 1fdce79be659e2445d1c89810832ad735c3fc894 | [
"Apache-2.0"
] | null | null | null | MyDjango/MyBlog/urls.py | zhaoguangyang/django-blog | 1fdce79be659e2445d1c89810832ad735c3fc894 | [
"Apache-2.0"
] | null | null | null | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^blog/$', views.get_blogs),
url(r'^detail/(\d+)/$',views.get_details, name='blog_get_detail'),
] | 23.5 | 71 | 0.643617 | 27 | 188 | 4.333333 | 0.592593 | 0.068376 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170213 | 188 | 8 | 72 | 23.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0.203297 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
61d55c92517b26a6d33066460266fc9bbed0bc91 | 4,784 | py | Python | test/unit/test_network_ddf_dvf.py | shannonxtreme/DeepReg | 373f6c28fed1d7376d5c39340b08a3814804efb2 | [
"Apache-2.0"
] | 1 | 2020-11-05T12:17:27.000Z | 2020-11-05T12:17:27.000Z | test/unit/test_network_ddf_dvf.py | shannonxtreme/DeepReg | 373f6c28fed1d7376d5c39340b08a3814804efb2 | [
"Apache-2.0"
] | null | null | null | test/unit/test_network_ddf_dvf.py | shannonxtreme/DeepReg | 373f6c28fed1d7376d5c39340b08a3814804efb2 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
"""
Tests for deepreg/model/network/ddf_dvf.py
"""
import pytest
import tensorflow as tf
from deepreg.model.network.ddf_dvf import build_ddf_dvf_model, ddf_dvf_forward
from deepreg.model.network.util import build_backbone
def test_ddf_dvf_forward():
"""
Testing that ddf_dvf_forward function r... | 35.437037 | 85 | 0.642768 | 628 | 4,784 | 4.517516 | 0.152866 | 0.145929 | 0.143109 | 0.158618 | 0.732111 | 0.704618 | 0.704618 | 0.694395 | 0.670074 | 0.630948 | 0 | 0.013465 | 0.239339 | 4,784 | 134 | 86 | 35.701493 | 0.766145 | 0.070652 | 0 | 0.45283 | 0 | 0 | 0.084696 | 0 | 0 | 0 | 0 | 0 | 0.160377 | 1 | 0.018868 | false | 0 | 0.037736 | 0 | 0.056604 | 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 | 0 | 0 | 0 | 3 |
61de2194d06859c0705005abcd62080da523ee87 | 1,362 | py | Python | Google_FooBar_Challenge/find_the_access_codes.py | psprawka/Interview_Piscine | bcd4c0daa8040b714be407fb425b20d13ba2ae9c | [
"MIT"
] | 3 | 2019-01-07T23:22:16.000Z | 2021-11-26T05:27:25.000Z | Google_FooBar_Challenge/find_the_access_codes.py | psprawka/Interview_Piscine | bcd4c0daa8040b714be407fb425b20d13ba2ae9c | [
"MIT"
] | 2 | 2019-09-14T23:03:51.000Z | 2019-09-16T10:32:44.000Z | Google_FooBar_Challenge/find_the_access_codes.py | psprawka/Interview_Library | bcd4c0daa8040b714be407fb425b20d13ba2ae9c | [
"MIT"
] | null | null | null | def answer(l):
res = 0
length = len(l)
for x in xrange(length):
left = 0
right = 0
for i in xrange(x):
if not (l[x] % l[i]):
left = left + 1
for i in xrange(x + 1, length):
if not (l[i] % l[x]):
right = right + 1
... | 29.608696 | 55 | 0.483113 | 259 | 1,362 | 2.540541 | 0.169884 | 0.455927 | 0.072948 | 0.066869 | 0.474164 | 0.261398 | 0.132219 | 0.054711 | 0 | 0 | 0 | 0.183085 | 0.262115 | 1,362 | 46 | 56 | 29.608696 | 0.471642 | 0.028634 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.641026 | 1 | 0.025641 | false | 0 | 0 | 0 | 0.051282 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
61ea0547063b5f83c3b1c6a2ad35d8317302eb24 | 46 | py | Python | picore/src/pir2/display/__init__.py | subhagho/r2d3.142 | 71f26b7da4ff2384ee1aa9727ea3d40cbcdf3718 | [
"Apache-2.0"
] | null | null | null | picore/src/pir2/display/__init__.py | subhagho/r2d3.142 | 71f26b7da4ff2384ee1aa9727ea3d40cbcdf3718 | [
"Apache-2.0"
] | null | null | null | picore/src/pir2/display/__init__.py | subhagho/r2d3.142 | 71f26b7da4ff2384ee1aa9727ea3d40cbcdf3718 | [
"Apache-2.0"
] | null | null | null | CONST_CONFIG_SECTION_NAME_DISPLAY = 'DISPLAY'
| 23 | 45 | 0.869565 | 6 | 46 | 6 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065217 | 46 | 1 | 46 | 46 | 0.837209 | 0 | 0 | 0 | 0 | 0 | 0.152174 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
61ed04ccf0714a510d9d102f8f8fb5fea508263e | 169 | py | Python | experiment-visualization/experiment_visualization/tests/run_web_server.py | LIUZhaohan0/HyperBoard | 618ec7aaa83ad608450e1d5d2d58f15084dd527f | [
"Apache-2.0"
] | null | null | null | experiment-visualization/experiment_visualization/tests/run_web_server.py | LIUZhaohan0/HyperBoard | 618ec7aaa83ad608450e1d5d2d58f15084dd527f | [
"Apache-2.0"
] | null | null | null | experiment-visualization/experiment_visualization/tests/run_web_server.py | LIUZhaohan0/HyperBoard | 618ec7aaa83ad608450e1d5d2d58f15084dd527f | [
"Apache-2.0"
] | null | null | null | from experiment_visualization.app import WebApp
if __name__ == '__main__':
webapp = WebApp("experiment_visualization/tests/events_example.json")
webapp.start()
| 28.166667 | 73 | 0.775148 | 19 | 169 | 6.315789 | 0.736842 | 0.383333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12426 | 169 | 5 | 74 | 33.8 | 0.810811 | 0 | 0 | 0 | 0 | 0 | 0.343195 | 0.295858 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 | 0 | 0 | 0 | 3 |
110395d9961bcd3ff42f35e79ccd6d9356bcfd7b | 949 | py | Python | scanmodule/migrations/0010_auto_20210807_1912.py | tbaror/SiteScanner | 82623151230ae377ed890a637ab4ce9ce4fc6850 | [
"MIT"
] | null | null | null | scanmodule/migrations/0010_auto_20210807_1912.py | tbaror/SiteScanner | 82623151230ae377ed890a637ab4ce9ce4fc6850 | [
"MIT"
] | null | null | null | scanmodule/migrations/0010_auto_20210807_1912.py | tbaror/SiteScanner | 82623151230ae377ed890a637ab4ce9ce4fc6850 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.5 on 2021-08-07 16:12
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('scanmodule', '0009_auto_20210805_2006'),
]
operations = [
migrations.AlterField(
model_name='siteassest',
... | 27.114286 | 74 | 0.582719 | 93 | 949 | 5.806452 | 0.526882 | 0.148148 | 0.185185 | 0.214815 | 0.52963 | 0.52963 | 0.45 | 0.45 | 0.340741 | 0.340741 | 0 | 0.065053 | 0.303477 | 949 | 34 | 75 | 27.911765 | 0.751891 | 0.047418 | 0 | 0.5 | 1 | 0 | 0.134146 | 0.025499 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.178571 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
11162969f418ccbee8350bd75514e375e04719a3 | 206 | py | Python | Python/Unsorted/4a.py | LittleEndu/Codeforces | 82c49b10702c58bc5ce062801d740a2f5f600062 | [
"MIT"
] | null | null | null | Python/Unsorted/4a.py | LittleEndu/Codeforces | 82c49b10702c58bc5ce062801d740a2f5f600062 | [
"MIT"
] | null | null | null | Python/Unsorted/4a.py | LittleEndu/Codeforces | 82c49b10702c58bc5ce062801d740a2f5f600062 | [
"MIT"
] | null | null | null | intin = int(input())
if intin == 2:
print("NO")
elif intin%2==0:
if intin%4==0:
print("YES")
elif (intin-2)%4==0:
print("YES")
else:
print("NO")
else:
print("NO") | 17.166667 | 24 | 0.475728 | 31 | 206 | 3.16129 | 0.387097 | 0.183673 | 0.204082 | 0.204082 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055944 | 0.305825 | 206 | 12 | 25 | 17.166667 | 0.629371 | 0 | 0 | 0.583333 | 0 | 0 | 0.057971 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.416667 | 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 | 0 | 0 | 1 | 0 | 3 |
1125e58e0e359f5cc4935c529a730f525bc2dc9b | 2,012 | py | Python | Posts/migrations/0003_auto_20200131_1802.py | nuriddin2468/AnimeDocker | 763163bd6f3acaca3e9629e0ff012e5b30fd1673 | [
"MIT"
] | null | null | null | Posts/migrations/0003_auto_20200131_1802.py | nuriddin2468/AnimeDocker | 763163bd6f3acaca3e9629e0ff012e5b30fd1673 | [
"MIT"
] | 3 | 2021-06-08T20:53:20.000Z | 2022-03-12T00:14:05.000Z | Posts/migrations/0003_auto_20200131_1802.py | nuriddin2468/AnimeDocker | 763163bd6f3acaca3e9629e0ff012e5b30fd1673 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.9 on 2020-01-31 13:02
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Posts', '0002_auto_20200131_1603'),
]
operations = [
migrations.AlterField(
model_name='animemodel',
name='author',
... | 34.101695 | 107 | 0.588966 | 192 | 2,012 | 6.015625 | 0.328125 | 0.155844 | 0.194805 | 0.225974 | 0.645022 | 0.625108 | 0.327273 | 0.327273 | 0.327273 | 0.327273 | 0 | 0.042076 | 0.291252 | 2,012 | 58 | 108 | 34.689655 | 0.767882 | 0.022366 | 0 | 0.5 | 1 | 0 | 0.135369 | 0.011705 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.019231 | 0 | 0.076923 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
113f0961bd7e953d8bb69a8b72840dd365742b15 | 7,289 | py | Python | tests/unit/TestSoftwareUnit.py | rakhimov/rtk | adc35e218ccfdcf3a6e3082f6a1a1d308ed4ff63 | [
"BSD-3-Clause"
] | null | null | null | tests/unit/TestSoftwareUnit.py | rakhimov/rtk | adc35e218ccfdcf3a6e3082f6a1a1d308ed4ff63 | [
"BSD-3-Clause"
] | null | null | null | tests/unit/TestSoftwareUnit.py | rakhimov/rtk | adc35e218ccfdcf3a6e3082f6a1a1d308ed4ff63 | [
"BSD-3-Clause"
] | 2 | 2020-04-03T04:14:42.000Z | 2021-02-22T05:30:35.000Z | #!/usr/bin/env python -O
"""
This is the test class for testing software Unit module algorithms and models.
"""
# -*- coding: utf-8 -*-
#
# tests.software.TestUnit.py is part of The RTK Project
#
# All rights reserved.
# Copyright 2007 - 2017 Andrew Rowland andrew.rowland <AT> reliaqual <DOT> com
#
# Redistribut... | 40.270718 | 86 | 0.654411 | 1,031 | 7,289 | 4.534433 | 0.265761 | 0.125775 | 0.296684 | 0.343529 | 0.496471 | 0.420535 | 0.160642 | 0.064385 | 0.064385 | 0.064385 | 0 | 0.036725 | 0.234189 | 7,289 | 180 | 87 | 40.494444 | 0.800788 | 0.281246 | 0 | 0.06422 | 0 | 0 | 0.0222 | 0.005501 | 0 | 0 | 0 | 0 | 0.724771 | 1 | 0.036697 | false | 0 | 0.055046 | 0 | 0.100917 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
11411b837afad52ef6c43829d924333238f8fbfa | 462 | py | Python | 5 kyu/RGB To Hex Conversion.py | mwk0408/codewars_solutions | 9b4f502b5f159e68024d494e19a96a226acad5e5 | [
"MIT"
] | 6 | 2020-09-03T09:32:25.000Z | 2020-12-07T04:10:01.000Z | 5 kyu/RGB To Hex Conversion.py | mwk0408/codewars_solutions | 9b4f502b5f159e68024d494e19a96a226acad5e5 | [
"MIT"
] | 1 | 2021-12-13T15:30:21.000Z | 2021-12-13T15:30:21.000Z | 5 kyu/RGB To Hex Conversion.py | mwk0408/codewars_solutions | 9b4f502b5f159e68024d494e19a96a226acad5e5 | [
"MIT"
] | null | null | null | def rgb(r, g, b):
s=""
if r>255:
r=255
elif g>255:
g=255
elif b>255:
b=255
if r<0:
r=0
elif g<0:
g=0
elif b<0:
b=0
r='{0:x}'.format(r)
g='{0:x}'.format(g)
b='{0:x}'.format(b)
if int(r,16)<=15 and int(r,16)>=0:
r='0'+r
... | 17.769231 | 38 | 0.391775 | 97 | 462 | 1.865979 | 0.185567 | 0.044199 | 0.049724 | 0.165746 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.178322 | 0.380952 | 462 | 25 | 39 | 18.48 | 0.454545 | 0 | 0 | 0 | 0 | 0 | 0.038961 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0 | 0 | 0.08 | 0 | 0 | 0 | 1 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
11463da0885f0ba8374d657ef724edb6cbaac242 | 2,196 | py | Python | src/main.py | carvalhoamc/dtosmote_performance | 034f7142bdea21211ee192ca1d13c5ef7cf074d8 | [
"MIT"
] | 1 | 2020-07-30T15:15:01.000Z | 2020-07-30T15:15:01.000Z | src/main.py | carvalhoamc/dtosmote_performance | 034f7142bdea21211ee192ca1d13c5ef7cf074d8 | [
"MIT"
] | null | null | null | src/main.py | carvalhoamc/dtosmote_performance | 034f7142bdea21211ee192ca1d13c5ef7cf074d8 | [
"MIT"
] | null | null | null | from parameters import releases, input_dir
from performance import Performance
import pandas as pd
def multiclass():
analisys = Performance()
for r in releases:
analisys.average_results(input_dir + 'dto_multiclass_results_' + r + '.csv', kind='multiclass', release=r)
analisys.run_rank_choose_parameters(input_di... | 36 | 112 | 0.716302 | 298 | 2,196 | 4.973154 | 0.16443 | 0.074224 | 0.08637 | 0.074224 | 0.822537 | 0.811066 | 0.734143 | 0.65587 | 0.641026 | 0.507422 | 0 | 0.015765 | 0.133424 | 2,196 | 60 | 113 | 36.6 | 0.763006 | 0 | 0 | 0.302326 | 0 | 0 | 0.287796 | 0.178051 | 0 | 0 | 0 | 0 | 0 | 1 | 0.069767 | false | 0 | 0.069767 | 0 | 0.139535 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fecad3c5dcacbc9ea9550eb95443bebc913624a5 | 267 | py | Python | softdelete/admin/__init__.py | RedMoon32/django-softdelete | eb9232a8f3944f88f14d1968f3b4d2ca9e3c85f1 | [
"BSD-2-Clause"
] | 242 | 2015-05-22T10:08:37.000Z | 2022-03-18T14:41:34.000Z | softdelete/admin/__init__.py | RedMoon32/django-softdelete | eb9232a8f3944f88f14d1968f3b4d2ca9e3c85f1 | [
"BSD-2-Clause"
] | 57 | 2015-01-22T01:00:55.000Z | 2022-03-01T14:03:19.000Z | softdelete/admin/__init__.py | RedMoon32/django-softdelete | eb9232a8f3944f88f14d1968f3b4d2ca9e3c85f1 | [
"BSD-2-Clause"
] | 90 | 2015-01-21T20:37:34.000Z | 2022-03-21T01:10:48.000Z | from softdelete.admin.admin import *
from softdelete.admin.forms import *
__all__ = ['SoftDeleteObjectAdmin',
'SoftDeleteRecordAdmin',
'ChangeSetAdmin',
'SoftDeleteObjectInline',
'SoftDeleteObjectAdminForm',
]
| 24.272727 | 39 | 0.636704 | 16 | 267 | 10.375 | 0.6875 | 0.168675 | 0.228916 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.273408 | 267 | 10 | 40 | 26.7 | 0.85567 | 0 | 0 | 0 | 0 | 0 | 0.387218 | 0.334586 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 1 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fecf9a356db89fc66989eeef5486ad4cca977f49 | 98 | py | Python | ritmista_app/apps.py | victorpecine/api_cadastro_ritmistas | b951ace9496a607d6301c5173ee80e854024a960 | [
"MIT"
] | null | null | null | ritmista_app/apps.py | victorpecine/api_cadastro_ritmistas | b951ace9496a607d6301c5173ee80e854024a960 | [
"MIT"
] | null | null | null | ritmista_app/apps.py | victorpecine/api_cadastro_ritmistas | b951ace9496a607d6301c5173ee80e854024a960 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class RitmistaAppConfig(AppConfig):
name = 'ritmista_app'
| 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 | 0 | 0 | 0 | 3 |
feff2e790d709f859da975b2d11e338eb91d943c | 1,546 | py | Python | IndicNLP/indicnlp/common.py | Adityashar/Sanskrit-Machine-Translation | e67d8f52e02ada89fc8152fe309389ed5feaa36b | [
"BSD-3-Clause"
] | 432 | 2015-01-16T01:44:45.000Z | 2022-03-26T19:20:28.000Z | indicnlp/common.py | pandyahariom/indic_nlp_library | 1d034957c65843d47b154e719abb44953e109706 | [
"MIT"
] | 47 | 2015-01-08T05:38:07.000Z | 2022-01-29T12:25:25.000Z | indicnlp/common.py | pandyahariom/indic_nlp_library | 1d034957c65843d47b154e719abb44953e109706 | [
"MIT"
] | 146 | 2015-02-27T11:30:17.000Z | 2022-03-29T16:55:19.000Z | #
# Copyright (c) 2013-present, Anoop Kunchukuttan
# All rights reserved.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
#
import os
"""
Path to the Indic NLP Resources directory
"""
INDIC_RESOURCES_PATH=''
def init():
"""
... | 26.20339 | 100 | 0.692109 | 196 | 1,546 | 5.255102 | 0.408163 | 0.214563 | 0.227184 | 0.040777 | 0.26699 | 0.26699 | 0.197087 | 0.073786 | 0 | 0 | 0 | 0.003396 | 0.238034 | 1,546 | 58 | 101 | 26.655172 | 0.870968 | 0.428849 | 0 | 0.285714 | 0 | 0 | 0.103121 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.238095 | false | 0 | 0.047619 | 0.047619 | 0.428571 | 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 | 0 | 0 | 0 | 3 |
3a020b4492ba163a054d955a9df548e7b1a83bfc | 176 | py | Python | scripts/setup.py | alexanderjacks/dex7 | f322dde3f32849292d9ca23ae306597ffe545efc | [
"MIT"
] | null | null | null | scripts/setup.py | alexanderjacks/dex7 | f322dde3f32849292d9ca23ae306597ffe545efc | [
"MIT"
] | 5 | 2020-09-07T02:46:27.000Z | 2022-02-26T17:18:43.000Z | scripts/setup.py | alexanderjacks/dex7 | f322dde3f32849292d9ca23ae306597ffe545efc | [
"MIT"
] | null | null | null | ### assuming you have Google Chrome installed...
## remember `pip3 install -r setup.py` before trying any scrapers in this dir
# have a nice day
selenium
chromedriver
requests
| 25.142857 | 77 | 0.767045 | 26 | 176 | 5.192308 | 0.961538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006757 | 0.159091 | 176 | 6 | 78 | 29.333333 | 0.905405 | 0.767045 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3a1e94eacd761b0937b9f5e9fb6cd08141123cd2 | 401 | py | Python | spirecomm/spire/power.py | joshmiller17/spirecomm | 57e0d4e773e0e7accbfb4eb8f512f090432edb08 | [
"MIT"
] | 2 | 2019-08-24T15:52:51.000Z | 2019-08-24T15:53:33.000Z | spirecomm/spire/power.py | joshmiller17/spirecomm | 57e0d4e773e0e7accbfb4eb8f512f090432edb08 | [
"MIT"
] | 61 | 2019-05-18T22:40:52.000Z | 2019-08-24T14:10:51.000Z | spirecomm/spire/power.py | joshmiller17/spirecomm | 57e0d4e773e0e7accbfb4eb8f512f090432edb08 | [
"MIT"
] | null | null | null | class Power:
def __init__(self, power_id, name, amount):
self.power_id = power_id
self.power_name = name
self.amount = amount
@classmethod
def from_json(cls, json_object):
return cls(json_object["id"], json_object["name"], json_object["amount"])
def __eq__(self, other)... | 28.642857 | 81 | 0.650873 | 55 | 401 | 4.4 | 0.309091 | 0.144628 | 0.136364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.234414 | 401 | 13 | 82 | 30.846154 | 0.788274 | 0 | 0 | 0 | 0 | 0 | 0.029925 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0 | 0.2 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
3a2075d46b13ef9b1e6c18af2338a9c1e5a8bb20 | 112 | py | Python | config.py | ankit-g/pg_system_audit | ad2a188fc9eb885bff8de97733e326da17ea77d4 | [
"MIT"
] | null | null | null | config.py | ankit-g/pg_system_audit | ad2a188fc9eb885bff8de97733e326da17ea77d4 | [
"MIT"
] | null | null | null | config.py | ankit-g/pg_system_audit | ad2a188fc9eb885bff8de97733e326da17ea77d4 | [
"MIT"
] | null | null | null | DB_PORT=5432
DB_USERNAME="postgres"
DB_PASSWORD="password"
DB_HOST="127.0.0.1"
DB_DATABASE="eventtriggertest"
| 14 | 30 | 0.794643 | 18 | 112 | 4.666667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095238 | 0.0625 | 112 | 7 | 31 | 16 | 0.704762 | 0 | 0 | 0 | 0 | 0 | 0.372727 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.2 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
3a312c205811b760e53dbe8da7e5d867eff69e7f | 466 | py | Python | automatization_of_data_mining_project/data_set_slicer/depedency_injector/container.py | Sale1996/automatization_of_data_mining_project | 223aec59231586563a3b125bff064f8420630a8f | [
"MIT"
] | null | null | null | automatization_of_data_mining_project/data_set_slicer/depedency_injector/container.py | Sale1996/automatization_of_data_mining_project | 223aec59231586563a3b125bff064f8420630a8f | [
"MIT"
] | null | null | null | automatization_of_data_mining_project/data_set_slicer/depedency_injector/container.py | Sale1996/automatization_of_data_mining_project | 223aec59231586563a3b125bff064f8420630a8f | [
"MIT"
] | null | null | null | from dependency_injector import containers, providers
from data_set_slicer.classes.facade_data_set_slicer import FacadeDataSetSlicer
from data_set_slicer.classes.validator.iterable_data_set_info_validator import IterableDataSetInfoValidator
class Container(containers.DeclarativeContainer):
data_slicer_validator ... | 46.6 | 107 | 0.881974 | 50 | 466 | 7.86 | 0.4 | 0.089059 | 0.132316 | 0.086514 | 0.122137 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070815 | 466 | 9 | 108 | 51.777778 | 0.907621 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 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 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
3a599896dab0617def9de269816bf48694d952d1 | 393 | py | Python | tests/test_cli.py | thomascobb/skeleton-says | e2ea189e075a0847a6679dc066bad47ced5d397a | [
"Apache-2.0"
] | null | null | null | tests/test_cli.py | thomascobb/skeleton-says | e2ea189e075a0847a6679dc066bad47ced5d397a | [
"Apache-2.0"
] | null | null | null | tests/test_cli.py | thomascobb/skeleton-says | e2ea189e075a0847a6679dc066bad47ced5d397a | [
"Apache-2.0"
] | null | null | null | import subprocess
import sys
from skeleton_says import __version__
def test_cli_version() -> None:
cmd = [sys.executable, "-m", "skeleton_says", "--version"]
assert subprocess.check_output(cmd).decode().strip() == __version__
def test_cli_says_hello() -> None:
cmd = [sys.executable, "-m", "skeleton_say... | 26.2 | 71 | 0.704835 | 50 | 393 | 5.18 | 0.42 | 0.138996 | 0.108108 | 0.131274 | 0.486486 | 0.254826 | 0.254826 | 0 | 0 | 0 | 0 | 0 | 0.145038 | 393 | 14 | 72 | 28.071429 | 0.770833 | 0 | 0 | 0 | 0 | 0 | 0.124682 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 1 | 0.222222 | false | 0 | 0.333333 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
28b4f5c5b0d73fb6e31f8ded6a992c1a468199c7 | 178 | py | Python | axju/worker/server/__main__.py | axju/axju | de0b3d9c63b7cca4ed16fb50e865c159b4377953 | [
"MIT"
] | null | null | null | axju/worker/server/__main__.py | axju/axju | de0b3d9c63b7cca4ed16fb50e865c159b4377953 | [
"MIT"
] | null | null | null | axju/worker/server/__main__.py | axju/axju | de0b3d9c63b7cca4ed16fb50e865c159b4377953 | [
"MIT"
] | null | null | null | '''from axju.core.tools import SmartCLI
from axju.worker.git import GitWorker
def main():
cli = SmartCLI(GitWorker)
cli.run()
if __name__ == '__main__':
main()
'''
| 16.181818 | 39 | 0.662921 | 23 | 178 | 4.782609 | 0.652174 | 0.145455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191011 | 178 | 10 | 40 | 17.8 | 0.763889 | 0.955056 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
28c082ff4029fc44e3a54c70a6dce1b7a1f7df29 | 141 | py | Python | src/siphr/__init__.py | shamindras/siphr | 9c3440c9983c2f4f3435bdcc30f8b1631678a38a | [
"MIT"
] | null | null | null | src/siphr/__init__.py | shamindras/siphr | 9c3440c9983c2f4f3435bdcc30f8b1631678a38a | [
"MIT"
] | 31 | 2021-10-01T18:55:21.000Z | 2022-03-31T09:21:39.000Z | src/siphr/__init__.py | shamindras/siphr | 9c3440c9983c2f4f3435bdcc30f8b1631678a38a | [
"MIT"
] | null | null | null | """Top-level package for siphr."""
__author__ = """Shamindra Shrotriya"""
__email__ = "shamindra.shrotriya@gmail.com"
__version__ = "0.1.0"
| 23.5 | 43 | 0.70922 | 17 | 141 | 5.176471 | 0.823529 | 0.409091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02381 | 0.106383 | 141 | 5 | 44 | 28.2 | 0.674603 | 0.198582 | 0 | 0 | 0 | 0 | 0.495327 | 0.271028 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 3 |
28e3989da6b2add1170a1d655a1d0ef4fe1c9efe | 175 | py | Python | demo_op_2.py | Monster880/pytorch_py | 9c5ac5974f48edb5ea3d897a1100a63d488c61d9 | [
"MIT"
] | null | null | null | demo_op_2.py | Monster880/pytorch_py | 9c5ac5974f48edb5ea3d897a1100a63d488c61d9 | [
"MIT"
] | null | null | null | demo_op_2.py | Monster880/pytorch_py | 9c5ac5974f48edb5ea3d897a1100a63d488c61d9 | [
"MIT"
] | null | null | null | import torch
a = torch.rand(2,2)
a = a * 10
print(a)
print(torch.floor(a))
print(torch.ceil(a))
print(torch.round(a))
print(torch.trunc(a))
print(torch.frac(a))
print(a % 2) | 14.583333 | 21 | 0.674286 | 35 | 175 | 3.371429 | 0.342857 | 0.305085 | 0.466102 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032258 | 0.114286 | 175 | 12 | 22 | 14.583333 | 0.729032 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0.7 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
e913962ac1e3d30186ea7a8c99b2959c1f5c8b59 | 1,448 | py | Python | boto3_type_annotations/boto3_type_annotations/xray/paginator.py | cowboygneox/boto3_type_annotations | 450dce1de4e066b939de7eac2ec560ed1a7ddaa2 | [
"MIT"
] | 119 | 2018-12-01T18:20:57.000Z | 2022-02-02T10:31:29.000Z | boto3_type_annotations/boto3_type_annotations/xray/paginator.py | cowboygneox/boto3_type_annotations | 450dce1de4e066b939de7eac2ec560ed1a7ddaa2 | [
"MIT"
] | 15 | 2018-11-16T00:16:44.000Z | 2021-11-13T03:44:18.000Z | boto3_type_annotations/boto3_type_annotations/xray/paginator.py | cowboygneox/boto3_type_annotations | 450dce1de4e066b939de7eac2ec560ed1a7ddaa2 | [
"MIT"
] | 11 | 2019-05-06T05:26:51.000Z | 2021-09-28T15:27:59.000Z | from typing import List
from typing import Dict
from datetime import datetime
from botocore.paginate import Paginator
class BatchGetTraces(Paginator):
def paginate(self, TraceIds: List, PaginationConfig: Dict = None) -> Dict:
pass
class GetGroups(Paginator):
def paginate(self, PaginationConfig: Dict... | 32.177778 | 213 | 0.718923 | 151 | 1,448 | 6.89404 | 0.245033 | 0.069164 | 0.153698 | 0.184438 | 0.649376 | 0.649376 | 0.649376 | 0.536984 | 0.483189 | 0.483189 | 0 | 0 | 0.187845 | 1,448 | 44 | 214 | 32.909091 | 0.885204 | 0 | 0 | 0.464286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0.285714 | 0.142857 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
e920fa4347535b9b7b3e7a402662d23e8b76f550 | 233 | py | Python | application/schemas/requests_schemas.py | ILope92/Elastoo-Test | b1e42d552aecedf286ae498779feaeceb4157c6b | [
"MIT"
] | null | null | null | application/schemas/requests_schemas.py | ILope92/Elastoo-Test | b1e42d552aecedf286ae498779feaeceb4157c6b | [
"MIT"
] | null | null | null | application/schemas/requests_schemas.py | ILope92/Elastoo-Test | b1e42d552aecedf286ae498779feaeceb4157c6b | [
"MIT"
] | null | null | null | from marshmallow import Schema, fields
class POST(Schema):
num = fields.Integer(
required=True,
description="num",
)
timeout = fields.Integer(
required=True,
description="timeout",
)
| 17.923077 | 38 | 0.600858 | 22 | 233 | 6.363636 | 0.590909 | 0.185714 | 0.3 | 0.357143 | 0.514286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.296137 | 233 | 12 | 39 | 19.416667 | 0.853659 | 0 | 0 | 0.2 | 0 | 0 | 0.042918 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e93191e90fcef2d233795eb3693a8d1d31cfd71e | 1,396 | py | Python | fedot/core/dag/graph_node.py | rozlana-g/FEDOT | a909d6c0ef481cc1cf7a5f10f7b1292d8d2def5c | [
"BSD-3-Clause"
] | 358 | 2020-06-11T09:34:53.000Z | 2022-03-31T12:56:22.000Z | fedot/core/dag/graph_node.py | rozlana-g/FEDOT | a909d6c0ef481cc1cf7a5f10f7b1292d8d2def5c | [
"BSD-3-Clause"
] | 467 | 2020-06-11T13:49:45.000Z | 2022-03-31T14:19:48.000Z | fedot/core/dag/graph_node.py | rozlana-g/FEDOT | a909d6c0ef481cc1cf7a5f10f7b1292d8d2def5c | [
"BSD-3-Clause"
] | 48 | 2020-07-13T14:50:45.000Z | 2022-03-26T09:37:13.000Z | from typing import List, Optional, Union
from fedot.core.dag.node_operator import NodeOperator
class GraphNode:
"""
Class for node definition in the DAG-based structure
:param nodes_from: parent nodes which information comes from
:param content: dict for the content in node
The possible para... | 32.465116 | 77 | 0.668338 | 170 | 1,396 | 5.270588 | 0.441176 | 0.040179 | 0.046875 | 0.049107 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.248567 | 1,396 | 42 | 78 | 33.238095 | 0.854147 | 0.323066 | 0 | 0.090909 | 0 | 0 | 0.028729 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.090909 | 0.227273 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
e94055566e95e78cf01fa5ed8780db7963ede9fc | 165 | py | Python | AtCoder/ABC088/A.py | takaaki82/Java-Lessons | c4f11462bf84c091527dde5f25068498bfb2cc49 | [
"MIT"
] | 1 | 2018-11-25T04:15:45.000Z | 2018-11-25T04:15:45.000Z | AtCoder/ABC088/A.py | takaaki82/Java-Lessons | c4f11462bf84c091527dde5f25068498bfb2cc49 | [
"MIT"
] | null | null | null | AtCoder/ABC088/A.py | takaaki82/Java-Lessons | c4f11462bf84c091527dde5f25068498bfb2cc49 | [
"MIT"
] | 2 | 2018-08-08T13:01:14.000Z | 2018-11-25T12:38:36.000Z | N = int(input())
A = int(input())
for a in range(A+1):
for j in range(21):
if a + 500 * j == N:
print("Yes")
exit()
print("No")
| 18.333333 | 29 | 0.430303 | 27 | 165 | 2.62963 | 0.592593 | 0.225352 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058252 | 0.375758 | 165 | 8 | 30 | 20.625 | 0.631068 | 0 | 0 | 0 | 0 | 0 | 0.030303 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 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 | 0 | 0 | 3 |
3a8b835890c39585d71c6d027e7581514acaac13 | 29 | py | Python | tests/resources/sample_settings.py | VerdantAI/fhirbug | 8a8e2555c0edfeee0a7edbc8d67f2fcb2edd3c2d | [
"MIT"
] | 8 | 2019-01-06T18:11:20.000Z | 2022-02-24T02:06:55.000Z | tests/resources/sample_settings.py | VerdantAI/fhirbug | 8a8e2555c0edfeee0a7edbc8d67f2fcb2edd3c2d | [
"MIT"
] | 5 | 2019-01-25T14:15:35.000Z | 2021-06-01T23:22:41.000Z | tests/resources/sample_settings.py | VerdantAI/fhirbug | 8a8e2555c0edfeee0a7edbc8d67f2fcb2edd3c2d | [
"MIT"
] | 3 | 2020-10-14T23:09:29.000Z | 2021-08-09T19:27:31.000Z | DEBUG = True
TESTING = True
| 7.25 | 14 | 0.689655 | 4 | 29 | 5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.241379 | 29 | 3 | 15 | 9.666667 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3a964d0d572c0b726cf5ec370741c32e33566cf3 | 752 | py | Python | src/sftools/cli.py | simonjmendelsohn/key-exchange | a50be8804b16b99fd3275a2b668c622e49e4f924 | [
"MIT"
] | null | null | null | src/sftools/cli.py | simonjmendelsohn/key-exchange | a50be8804b16b99fd3275a2b668c622e49e4f924 | [
"MIT"
] | null | null | null | src/sftools/cli.py | simonjmendelsohn/key-exchange | a50be8804b16b99fd3275a2b668c622e49e4f924 | [
"MIT"
] | null | null | null | import sys
from sftools.encryption_keys.encrypt_data import encrypt_data
from sftools.encryption_keys.generate_personal_keys import generate_personal_keys
from sftools.protocol.validate_data import main as validate_data
from sftools.protocol.run_protocol import main as run_protocol
def main():
if len(sys.argv) < ... | 31.333333 | 102 | 0.715426 | 102 | 752 | 5.009804 | 0.27451 | 0.107632 | 0.195695 | 0.07045 | 0.062622 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009772 | 0.183511 | 752 | 23 | 103 | 32.695652 | 0.822476 | 0 | 0 | 0 | 1 | 0 | 0.207447 | 0.05984 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | true | 0 | 0.263158 | 0 | 0.368421 | 0.105263 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3a9f76b2212b6e2a541100caf86688bdbcb0b201 | 407 | py | Python | 6 kyu/Masquerade Waiting Line.py | mwk0408/codewars_solutions | 9b4f502b5f159e68024d494e19a96a226acad5e5 | [
"MIT"
] | 6 | 2020-09-03T09:32:25.000Z | 2020-12-07T04:10:01.000Z | 6 kyu/Masquerade Waiting Line.py | mwk0408/codewars_solutions | 9b4f502b5f159e68024d494e19a96a226acad5e5 | [
"MIT"
] | 1 | 2021-12-13T15:30:21.000Z | 2021-12-13T15:30:21.000Z | 6 kyu/Masquerade Waiting Line.py | mwk0408/codewars_solutions | 9b4f502b5f159e68024d494e19a96a226acad5e5 | [
"MIT"
] | null | null | null | def friend_find(line):
check=[i for i,j in enumerate(line) if j=="red"]
total=0
for i in check:
if i>=2 and line[i-1]=="blue" and line[i-2]=="blue":
total+=1
elif (i>=1 and i<=len(line)-2) and line[i-1]=="blue" and line[i+1]=="blue":
total+=1
elif (i<=len(line... | 37 | 83 | 0.513514 | 75 | 407 | 2.773333 | 0.293333 | 0.201923 | 0.230769 | 0.173077 | 0.519231 | 0.418269 | 0.418269 | 0.418269 | 0.418269 | 0.307692 | 0 | 0.047782 | 0.280098 | 407 | 11 | 84 | 37 | 0.662116 | 0 | 0 | 0.272727 | 0 | 0 | 0.066176 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.181818 | 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 | 0 | 0 | 0 | 3 |
3ad706162879ff043b404876ab363e6349652974 | 2,678 | py | Python | site/main.py | cranti/blink-web | 887caba0fe7ab073fe9e6b496c616e6467ac6b5c | [
"MIT"
] | null | null | null | site/main.py | cranti/blink-web | 887caba0fe7ab073fe9e6b496c616e6467ac6b5c | [
"MIT"
] | null | null | null | site/main.py | cranti/blink-web | 887caba0fe7ab073fe9e6b496c616e6467ac6b5c | [
"MIT"
] | null | null | null | #TODO:
# - Database stuff (remove it)
# - deployment
#
# - fix image links in the html docs
# - should i use trailing slash for url definitions or not?
# URL mappings
# Home (/)
# Background '/<analysis>/background'
# Analysis Input '/<anaysis>/analyze'
# Analysis Output '/<analysis>/results'
# Code (/code)
# Contact... | 24.568807 | 95 | 0.678491 | 350 | 2,678 | 5.068571 | 0.385714 | 0.055242 | 0.051297 | 0.038331 | 0.099775 | 0.076099 | 0.076099 | 0.076099 | 0 | 0 | 0 | 0.001349 | 0.16953 | 2,678 | 109 | 96 | 24.568807 | 0.796313 | 0.256908 | 0 | 0 | 0 | 0 | 0.1682 | 0.024029 | 0 | 0 | 0 | 0.009174 | 0 | 1 | 0.222222 | false | 0 | 0.074074 | 0.148148 | 0.518519 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
3af071c4d079962d31ac84ecd72df60d504aa07f | 146 | py | Python | Python/w3resource/Challenge2.py | TakaIzuki/school-work | c6f8c4a8f1f07b7e4f027e4d53c40e868780a71b | [
"Unlicense"
] | 1 | 2021-03-12T14:57:38.000Z | 2021-03-12T14:57:38.000Z | Python/w3resource/Challenge2.py | TakaIzuki/school-work | c6f8c4a8f1f07b7e4f027e4d53c40e868780a71b | [
"Unlicense"
] | null | null | null | Python/w3resource/Challenge2.py | TakaIzuki/school-work | c6f8c4a8f1f07b7e4f027e4d53c40e868780a71b | [
"Unlicense"
] | null | null | null | def calcMul(items):
mulTotal = 1
for i in items:
mulTotal *= i
return mulTotal
print("The multiple is: ",calcMul([10,20,30])) | 20.857143 | 46 | 0.609589 | 21 | 146 | 4.238095 | 0.761905 | 0.292135 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064815 | 0.260274 | 146 | 7 | 46 | 20.857143 | 0.759259 | 0 | 0 | 0 | 0 | 0 | 0.115646 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.333333 | 0.166667 | 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 | 0 | 0 | 3 |
aaf92ea72a7cd6f5cf547fa987cf485e3f8fa1eb | 366 | py | Python | src/products/models.py | hoanguyen-rozer/bcrypt-authentication-rest-api | b7b56d8344b53aa4130c29c596ab02e769f0d0e1 | [
"MIT"
] | null | null | null | src/products/models.py | hoanguyen-rozer/bcrypt-authentication-rest-api | b7b56d8344b53aa4130c29c596ab02e769f0d0e1 | [
"MIT"
] | null | null | null | src/products/models.py | hoanguyen-rozer/bcrypt-authentication-rest-api | b7b56d8344b53aa4130c29c596ab02e769f0d0e1 | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib.auth import get_user_model
class Product(models.Model):
title = models.CharField(max_length=255)
category = models.CharField(max_length=100)
price = models.DecimalField(max_digits=5, decimal_places=2, default=39.99)
description = models.TextField()
... | 28.153846 | 78 | 0.743169 | 50 | 366 | 5.24 | 0.7 | 0.076336 | 0.137405 | 0.183206 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039088 | 0.161202 | 366 | 12 | 79 | 30.5 | 0.814332 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0.111111 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
c905e34ac6ffaf7d93f67e8c749e62521c9c0b14 | 37 | py | Python | robber/constants.py | pylipp/robber.py | e84bb0c3dd982a383f3d9da2bf334f94836a7507 | [
"MIT"
] | 23 | 2015-10-27T20:13:46.000Z | 2021-12-22T03:18:29.000Z | robber/constants.py | pylipp/robber.py | e84bb0c3dd982a383f3d9da2bf334f94836a7507 | [
"MIT"
] | 70 | 2016-09-29T07:30:06.000Z | 2020-08-26T06:42:50.000Z | robber/constants.py | pylipp/robber.py | e84bb0c3dd982a383f3d9da2bf334f94836a7507 | [
"MIT"
] | 10 | 2015-05-13T17:35:21.000Z | 2021-05-06T12:40:01.000Z | TENSE_WORDS = ['be', 'have', 'been']
| 18.5 | 36 | 0.567568 | 5 | 37 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135135 | 37 | 1 | 37 | 37 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0.27027 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c97ca405ac3406f51c5f60280d5ea3296cec81ca | 913 | py | Python | hash_speed_demo/slowhash.py | rkday/50-short-programs-in-rust | f5ac395ee8856f1534d6fbe1c87512b608134fe1 | [
"Apache-2.0"
] | 1 | 2019-10-30T22:45:17.000Z | 2019-10-30T22:45:17.000Z | hash_speed_demo/slowhash.py | rkday/50-short-programs-in-rust | f5ac395ee8856f1534d6fbe1c87512b608134fe1 | [
"Apache-2.0"
] | null | null | null | hash_speed_demo/slowhash.py | rkday/50-short-programs-in-rust | f5ac395ee8856f1534d6fbe1c87512b608134fe1 | [
"Apache-2.0"
] | null | null | null | import time
class GoodHashable:
def __init__(self, x):
self.x = x
def __hash__(self):
return self.x
def __eq__(self, other):
return other.x == self.x
class BadHashable:
def __init__(self, x):
self.x = x
def __hash__(self):
return 8
def __eq__(self, o... | 21.738095 | 107 | 0.634173 | 135 | 913 | 4.074074 | 0.318519 | 0.063636 | 0.043636 | 0.043636 | 0.370909 | 0.370909 | 0.370909 | 0.370909 | 0.370909 | 0.127273 | 0 | 0.044604 | 0.238773 | 913 | 41 | 108 | 22.268293 | 0.746763 | 0 | 0 | 0.357143 | 0 | 0 | 0.158817 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.035714 | 0.142857 | 0.535714 | 0.107143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
a3183c40c147c726ee581dea3d396f115c152ab3 | 1,006 | py | Python | tests/aiocells/test___init__.py | isbjorntrading/aiocells | 7aae2a2a79e9f5f649c5b5765059dcc8557cf408 | [
"MIT"
] | 2 | 2020-05-20T16:06:41.000Z | 2022-03-01T10:56:55.000Z | tests/aiocells/test___init__.py | isbjorntrading/aiocells | 7aae2a2a79e9f5f649c5b5765059dcc8557cf408 | [
"MIT"
] | null | null | null | tests/aiocells/test___init__.py | isbjorntrading/aiocells | 7aae2a2a79e9f5f649c5b5765059dcc8557cf408 | [
"MIT"
] | null | null | null | import aiocells
import aiocells.basic as basic
import aiocells.aio as aio
import aiocells.mod as mod
import aiocells.flow as flow
def test_basic():
assert aiocells.DependencyGraph is basic.DependencyGraph
assert aiocells.Place is basic.Place
assert aiocells.compute_sequential is basic.compute_sequential
... | 30.484848 | 76 | 0.801193 | 138 | 1,006 | 5.666667 | 0.188406 | 0.250639 | 0.112532 | 0.099744 | 0.161125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154076 | 1,006 | 32 | 77 | 31.4375 | 0.918919 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.583333 | 1 | 0.166667 | true | 0 | 0.208333 | 0 | 0.375 | 0.041667 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a31aaa1de4abc6b1f07eb8dcfd493dc6125a81a3 | 323 | py | Python | bottleIntro/server.py | BrendanWightman/Brendan-Web-Programming | 7e7555a99e7d9f39406351de9f951a420eb442ce | [
"Unlicense"
] | null | null | null | bottleIntro/server.py | BrendanWightman/Brendan-Web-Programming | 7e7555a99e7d9f39406351de9f951a420eb442ce | [
"Unlicense"
] | null | null | null | bottleIntro/server.py | BrendanWightman/Brendan-Web-Programming | 7e7555a99e7d9f39406351de9f951a420eb442ce | [
"Unlicense"
] | null | null | null | from bottle import route, run
# http://localhost:8060/ --> anything after is the route
@route("/")
def get_index():
return ("Hello!")
def get_hello():
return ("Hello!!! :)")
@route("/hello")
@route("/hello/<name>")
def get_hello(name="World"):
return (f"Hello, {name}")
run(host="localhost", port=8060... | 15.380952 | 56 | 0.619195 | 43 | 323 | 4.581395 | 0.511628 | 0.091371 | 0.111675 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02952 | 0.160991 | 323 | 20 | 57 | 16.15 | 0.697417 | 0.167183 | 0 | 0 | 0 | 0 | 0.240602 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.090909 | 0.272727 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
a322079143086bb92e3149e363531363e2fbb4d0 | 304 | py | Python | eventlet/green/httplib.py | CaesarLinsa/Eventlet | 43e832b441977f0344a56d22b267dca443333960 | [
"MIT"
] | 19 | 2015-05-01T19:59:03.000Z | 2021-12-09T08:03:16.000Z | eventlet/green/httplib.py | CaesarLinsa/Eventlet | 43e832b441977f0344a56d22b267dca443333960 | [
"MIT"
] | 1 | 2018-01-03T15:26:49.000Z | 2018-01-03T15:26:49.000Z | eventlet/green/httplib.py | CaesarLinsa/Eventlet | 43e832b441977f0344a56d22b267dca443333960 | [
"MIT"
] | 30 | 2015-03-25T19:40:07.000Z | 2021-05-28T22:59:26.000Z | from eventlet import patcher
from eventlet.green import socket
to_patch = [('socket', socket)]
try:
from eventlet.green import ssl
to_patch.append(('ssl', ssl))
except ImportError:
pass
patcher.inject('httplib',
globals(),
*to_patch)
if __name__ == '__main__':
test()
| 16.888889 | 34 | 0.661184 | 37 | 304 | 5.135135 | 0.567568 | 0.189474 | 0.178947 | 0.242105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.217105 | 304 | 17 | 35 | 17.882353 | 0.798319 | 0 | 0 | 0 | 0 | 0 | 0.078947 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.076923 | 0.307692 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
a35be899f2c1f573d973c642e3cc19e836334d60 | 1,605 | py | Python | Source/FaceRecognition/Services/DirectoryContentVersioner.py | robertkarol/ReDe-Multiagent-Face-Recognition-System | df17cebecc51b2fafb01e07a9bb68e9e4e04163a | [
"MIT"
] | null | null | null | Source/FaceRecognition/Services/DirectoryContentVersioner.py | robertkarol/ReDe-Multiagent-Face-Recognition-System | df17cebecc51b2fafb01e07a9bb68e9e4e04163a | [
"MIT"
] | 7 | 2020-04-24T08:22:20.000Z | 2021-05-21T16:11:52.000Z | Source/FaceRecognition/Services/DirectoryContentVersioner.py | robertkarol/ReDe-Multiagent-Face-Recognition-System | df17cebecc51b2fafb01e07a9bb68e9e4e04163a | [
"MIT"
] | 1 | 2020-04-26T15:05:07.000Z | 2020-04-26T15:05:07.000Z | from Utils.Singleton import SingletonMeta
from os import listdir
from typing import List, Tuple
import re
class DirectoryContentVersioner(metaclass=SingletonMeta):
def __init__(self):
self.__version_regex = '.+-v([0-9]+)'
self.__content_regex = '{}-v[0-9]+'
self.__version_suffix = '-v{}'
... | 50.15625 | 120 | 0.716511 | 211 | 1,605 | 5.137441 | 0.251185 | 0.138376 | 0.083026 | 0.073801 | 0.508303 | 0.486162 | 0.486162 | 0.357011 | 0.309963 | 0.309963 | 0 | 0.008296 | 0.173832 | 1,605 | 31 | 121 | 51.774194 | 0.809201 | 0 | 0 | 0.083333 | 0 | 0 | 0.016199 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.166667 | 0.125 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
a36475d10856a45e3555b252e66f27ec23db0ce6 | 261 | py | Python | home/views.py | volk0ff/fred | b6f97057e6d5290c12c7962de11f2bf90c72e4ca | [
"MIT"
] | null | null | null | home/views.py | volk0ff/fred | b6f97057e6d5290c12c7962de11f2bf90c72e4ca | [
"MIT"
] | null | null | null | home/views.py | volk0ff/fred | b6f97057e6d5290c12c7962de11f2bf90c72e4ca | [
"MIT"
] | null | null | null | from django.template import RequestContext
from django.shortcuts import render_to_response
# Create your views here.
def index(request):
context = RequestContext(request)
context_dict = {}
return render_to_response('home/home.html', context_dict, context)
| 26.1 | 67 | 0.804598 | 34 | 261 | 6 | 0.617647 | 0.098039 | 0.156863 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114943 | 261 | 9 | 68 | 29 | 0.883117 | 0.088123 | 0 | 0 | 0 | 0 | 0.059322 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 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 | 0 | 1 | 0 | 0 | 3 |
a391c3abc0164958b003642890f023f6586020c4 | 157 | py | Python | toio_API/scenarios/customs/__init__.py | Yoshi-0921/toio_API | 5642a8c9813d7acde440f6c6160b7c69f4396682 | [
"MIT"
] | 10 | 2021-04-22T06:06:43.000Z | 2022-01-31T14:10:54.000Z | toio_API/scenarios/customs/__init__.py | Yoshi-0921/toio_API | 5642a8c9813d7acde440f6c6160b7c69f4396682 | [
"MIT"
] | null | null | null | toio_API/scenarios/customs/__init__.py | Yoshi-0921/toio_API | 5642a8c9813d7acde440f6c6160b7c69f4396682 | [
"MIT"
] | 1 | 2021-06-23T02:18:17.000Z | 2021-06-23T02:18:17.000Z | # -*- coding: utf-8 -*-
from .custom1 import Custom1
from .custom2 import Custom2
from .custom3 import Custom3
__all__ = ["Custom1", "Custom2", "Custom3"]
| 19.625 | 43 | 0.700637 | 19 | 157 | 5.578947 | 0.473684 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075188 | 0.152866 | 157 | 7 | 44 | 22.428571 | 0.721805 | 0.133758 | 0 | 0 | 0 | 0 | 0.156716 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
6e7dfcf39ed1977479b56c35b946ea51571f5405 | 1,107 | py | Python | tests/unit/expression/test_quantifier.py | rinslow/regene | b1aa6cf9dcd436d547e9d4276bb850644dfc53aa | [
"MIT"
] | 2 | 2018-02-23T23:12:44.000Z | 2019-04-28T03:20:17.000Z | tests/unit/expression/test_quantifier.py | rinslow/regene | b1aa6cf9dcd436d547e9d4276bb850644dfc53aa | [
"MIT"
] | 2 | 2018-02-27T21:36:24.000Z | 2018-03-09T11:28:44.000Z | tests/unit/expression/test_quantifier.py | rinslow/regene | b1aa6cf9dcd436d547e9d4276bb850644dfc53aa | [
"MIT"
] | null | null | null | from unittest import TestCase
from regene.expression import (Between, Exactly, ZeroOrOne, ZeroOrMore,
OneOrMore, ValueOrMore, ValueOrLess)
from regene.expression.string import String
class TestQuantifiers(TestCase):
def test_between(self):
assert Between(1, 4).quantify(Stri... | 33.545455 | 71 | 0.622403 | 134 | 1,107 | 5.014925 | 0.268657 | 0.229167 | 0.15625 | 0.071429 | 0.065476 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035632 | 0.214092 | 1,107 | 32 | 72 | 34.59375 | 0.736782 | 0 | 0 | 0 | 0 | 0 | 0.023487 | 0 | 0 | 0 | 0 | 0 | 0.478261 | 1 | 0.304348 | false | 0 | 0.130435 | 0 | 0.478261 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6e853e97d949c1b07db0d8acedcfeb453106cd7c | 180 | py | Python | src/colors.py | sirdodger/acstat | d4e6014da3015ce2c5c339fd692458d35b7887fa | [
"MIT"
] | null | null | null | src/colors.py | sirdodger/acstat | d4e6014da3015ce2c5c339fd692458d35b7887fa | [
"MIT"
] | null | null | null | src/colors.py | sirdodger/acstat | d4e6014da3015ce2c5c339fd692458d35b7887fa | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""Global color definitions.
"""
BLUE_BACKGROUND: int = 20
GREEN_BACKGROUND: int = 30
RED_BACKGROUND: int = 5
WHITE: int = 0
YELLOW_BACKGROUND: int = 186
| 15 | 28 | 0.716667 | 26 | 180 | 4.807692 | 0.730769 | 0.416 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066225 | 0.161111 | 180 | 11 | 29 | 16.363636 | 0.761589 | 0.261111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6e8f5c04f1f6e3dfd5e18ea8fb1db8fb212793ff | 1,324 | py | Python | src/scs_mfr/dfe_id.py | south-coast-science/scs_mfr | a61c5852936ef37f34c3b33952562d7147c97c40 | [
"MIT"
] | 1 | 2017-04-24T14:58:29.000Z | 2017-04-24T14:58:29.000Z | src/scs_mfr/dfe_id.py | south-coast-science/scs_mfr | a61c5852936ef37f34c3b33952562d7147c97c40 | [
"MIT"
] | null | null | null | src/scs_mfr/dfe_id.py | south-coast-science/scs_mfr | a61c5852936ef37f34c3b33952562d7147c97c40 | [
"MIT"
] | 5 | 2017-12-05T12:41:13.000Z | 2020-12-03T09:28:37.000Z | #!/usr/bin/env python3
"""
Created on 26 Sep 2016
@author: Bruno Beloff (bruno.beloff@southcoastscience.com)
DESCRIPTION
The dfe_id utility is used to read the vendor, product ID and product UUID fields from the EEPROM on a
South Coast Science digital front-end (DFE) board.
DFE boards conform to Raspberry Pi HAT an... | 24.981132 | 118 | 0.552115 | 146 | 1,324 | 4.849315 | 0.59589 | 0.028249 | 0.029661 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006087 | 0.13142 | 1,324 | 52 | 119 | 25.461538 | 0.609565 | 0.808157 | 0 | 0 | 0 | 0 | 0.033333 | 0 | 0 | 0 | 0 | 0.019231 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
6ee1da6093eca56e583f6239566cd42276460081 | 2,824 | py | Python | auto_gazebo/worldGenerator.py | guanerjiage/Gazebo-room-generator | 30c5a8211267f9b7be8c19144038c63aef73acbb | [
"MIT"
] | null | null | null | auto_gazebo/worldGenerator.py | guanerjiage/Gazebo-room-generator | 30c5a8211267f9b7be8c19144038c63aef73acbb | [
"MIT"
] | null | null | null | auto_gazebo/worldGenerator.py | guanerjiage/Gazebo-room-generator | 30c5a8211267f9b7be8c19144038c63aef73acbb | [
"MIT"
] | 1 | 2020-04-19T19:10:54.000Z | 2020-04-19T19:10:54.000Z | import xml.etree.ElementTree as ET
def insert_new_shape(x, y, shape_index, world):
# get the handler of tag model in newshape file
if shape_index == 0:
newshapefile = ET.parse('/home/hiwi03/Roomgenerator/auto_gazebo/shapes/shape0.sdf')
elif shape_index == 1:
newshapefile = ET.parse('/h... | 40.342857 | 98 | 0.685552 | 387 | 2,824 | 4.860465 | 0.281654 | 0.090377 | 0.207868 | 0.229665 | 0.515152 | 0.497608 | 0.466773 | 0.445508 | 0.445508 | 0.137161 | 0 | 0.037964 | 0.179178 | 2,824 | 70 | 99 | 40.342857 | 0.773512 | 0.069759 | 0 | 0 | 0 | 0 | 0.382151 | 0.365751 | 0 | 0 | 0 | 0.014286 | 0 | 1 | 0.039216 | false | 0 | 0.019608 | 0 | 0.058824 | 0.019608 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6ee7ab990cf34ded45cb40d52fd1cb856514ddb3 | 271 | py | Python | setup.py | benco2000/sdia-python | 8d206aee94921fccd9333152dd8c5d8e305aeab1 | [
"MIT"
] | 19 | 2021-09-15T06:04:20.000Z | 2022-02-23T07:46:00.000Z | setup.py | benco2000/sdia-python | 8d206aee94921fccd9333152dd8c5d8e305aeab1 | [
"MIT"
] | 2 | 2021-10-06T17:47:02.000Z | 2021-10-11T16:29:04.000Z | setup.py | benco2000/sdia-python | 8d206aee94921fccd9333152dd8c5d8e305aeab1 | [
"MIT"
] | 27 | 2021-09-14T08:52:43.000Z | 2022-03-13T21:21:41.000Z | # From pip >= 21.1, setup.cfg suffices: setup.py is not mandatory https://pip.pypa.io/en/stable/news/#v21-1
# For pip < 21.1, here is a shim that makes an editable install possible:
# pip install -e .
import setuptools
if __name__ == "__main__":
setuptools.setup()
| 30.111111 | 107 | 0.704797 | 45 | 271 | 4.066667 | 0.755556 | 0.054645 | 0.065574 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039823 | 0.166052 | 271 | 8 | 108 | 33.875 | 0.769912 | 0.712177 | 0 | 0 | 0 | 0 | 0.109589 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 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 | 0 | 0 | 0 | 3 |
42b456f17c48a3082a44890cf9039c7236bb149a | 2,606 | py | Python | signing/sawtooth_signing/pbct_nativerecover.py | gabykyei/GC_BlockChain_T_Rec | b72cb483064852d0a60286943ff55233462fea08 | [
"Apache-2.0"
] | 1 | 2019-03-18T13:31:11.000Z | 2019-03-18T13:31:11.000Z | signing/sawtooth_signing/pbct_nativerecover.py | gabykyei/GC_BlockChain_T_Rec | b72cb483064852d0a60286943ff55233462fea08 | [
"Apache-2.0"
] | null | null | null | signing/sawtooth_signing/pbct_nativerecover.py | gabykyei/GC_BlockChain_T_Rec | b72cb483064852d0a60286943ff55233462fea08 | [
"Apache-2.0"
] | null | null | null | # Copyright 2016 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 26.865979 | 80 | 0.704528 | 313 | 2,606 | 5.757189 | 0.41853 | 0.099889 | 0.048835 | 0.062153 | 0.200888 | 0.107658 | 0.056604 | 0 | 0 | 0 | 0 | 0.008979 | 0.188028 | 2,606 | 96 | 81 | 27.145833 | 0.842628 | 0.264774 | 0 | 0.104167 | 0 | 0 | 0.027939 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208333 | false | 0 | 0.104167 | 0.1875 | 0.541667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
42bee76319a75559f034b77454e2ff2b53c42559 | 206 | py | Python | test/guitest/test_lsswindow.py | Airthee/LightshotSniffer | 466abb28710c9401e6f3fd0e1d61776511f936bc | [
"WTFPL"
] | 1 | 2020-04-30T08:32:26.000Z | 2020-04-30T08:32:26.000Z | test/guitest/test_lsswindow.py | Airthee/LightshotSniffer | 466abb28710c9401e6f3fd0e1d61776511f936bc | [
"WTFPL"
] | 12 | 2019-06-18T06:04:58.000Z | 2022-01-13T01:20:36.000Z | test/guitest/test_lsswindow.py | Airthee/LightshotSniffer | 466abb28710c9401e6f3fd0e1d61776511f936bc | [
"WTFPL"
] | 3 | 2019-06-18T06:12:53.000Z | 2020-12-03T08:46:44.000Z | # *-* coding: utf8
from gui import LssWindow
import tkinter as tk
# def test_lsswindow():
# root = tk.Tk()
# mainWindow = LssWindow(master=root)
# mainWindow.master.title("LightShotSniffer")
| 18.727273 | 49 | 0.679612 | 24 | 206 | 5.791667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006024 | 0.194175 | 206 | 10 | 50 | 20.6 | 0.831325 | 0.703884 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
42bf135d4e16cee5255756ceb39655c452f73152 | 152 | py | Python | lang/Python/combinations-5.py | ethansaxenian/RosettaDecode | 8ea1a42a5f792280b50193ad47545d14ee371fb7 | [
"MIT"
] | 1 | 2021-05-05T13:42:20.000Z | 2021-05-05T13:42:20.000Z | lang/Python/combinations-5.py | ethansaxenian/RosettaDecode | 8ea1a42a5f792280b50193ad47545d14ee371fb7 | [
"MIT"
] | null | null | null | lang/Python/combinations-5.py | ethansaxenian/RosettaDecode | 8ea1a42a5f792280b50193ad47545d14ee371fb7 | [
"MIT"
] | null | null | null | def comb(m, s):
if m == 1: return [[x] for x in s]
if m == len(s): return [s]
return [s[:1] + a for a in comb(m-1, s[1:])] + comb(m, s[1:])
| 30.4 | 65 | 0.467105 | 35 | 152 | 2.028571 | 0.342857 | 0.211268 | 0.169014 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045872 | 0.282895 | 152 | 4 | 66 | 38 | 0.605505 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
42e56a9135f5b0d12ecdc6ba751855e84af682bf | 104 | py | Python | preprocess_web/code/ravens_metadata_apps/preprocess_jobs/apps.py | TwoRavens/raven-metadata-service | 9461522219f5ef0f4877f24c8f5923e462bd9557 | [
"Apache-2.0"
] | null | null | null | preprocess_web/code/ravens_metadata_apps/preprocess_jobs/apps.py | TwoRavens/raven-metadata-service | 9461522219f5ef0f4877f24c8f5923e462bd9557 | [
"Apache-2.0"
] | 103 | 2018-03-13T20:43:59.000Z | 2021-02-06T19:27:16.000Z | preprocess_web/code/ravens_metadata_apps/preprocess_jobs/apps.py | TwoRavens/raven-metadata-service | 9461522219f5ef0f4877f24c8f5923e462bd9557 | [
"Apache-2.0"
] | 1 | 2019-09-11T22:36:14.000Z | 2019-09-11T22:36:14.000Z | from django.apps import AppConfig
class PreprocessLogsConfig(AppConfig):
name = 'preprocess_jobs'
| 17.333333 | 38 | 0.788462 | 11 | 104 | 7.363636 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144231 | 104 | 5 | 39 | 20.8 | 0.910112 | 0 | 0 | 0 | 0 | 0 | 0.144231 | 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 | 0 | 0 | 0 | 3 |
42e5cfdfe84161fa879025ddd6a62264e68ec9c2 | 663 | py | Python | Python/TimeCounter/NoFAP.py | BirendraRokaha/Learn2020 | 5da92b1947a266f009f9cd371dd6a03610b95c9b | [
"MIT"
] | null | null | null | Python/TimeCounter/NoFAP.py | BirendraRokaha/Learn2020 | 5da92b1947a266f009f9cd371dd6a03610b95c9b | [
"MIT"
] | 11 | 2021-04-08T19:55:39.000Z | 2022-03-02T09:51:03.000Z | Python/TimeCounter/NoFAP.py | BirendraRokaha/Learn2020 | 5da92b1947a266f009f9cd371dd6a03610b95c9b | [
"MIT"
] | null | null | null | '''
This is a small program i made to help me track my NoFAP journey to 90 Days
'''
import os
from datetime import datetime
'''
# creating a file to store the initial time
if not os.path.isfile('start_time.txt'):
# Setting up the initial time
#saving the time in a file
with open('start_time.txt','w') as ... | 20.71875 | 75 | 0.678733 | 107 | 663 | 4.093458 | 0.485981 | 0.184932 | 0.082192 | 0.077626 | 0.109589 | 0.109589 | 0 | 0 | 0 | 0 | 0 | 0.003876 | 0.221719 | 663 | 32 | 76 | 20.71875 | 0.844961 | 0.113122 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
42f76efe9e435c1c70f8543aa3b6e3a28bfc6805 | 85 | py | Python | nestedSerializers/coApp/apps.py | saibottrenham/djangorest | 45efadabb19cf421a282b98f3480cf49789eaae1 | [
"MIT"
] | null | null | null | nestedSerializers/coApp/apps.py | saibottrenham/djangorest | 45efadabb19cf421a282b98f3480cf49789eaae1 | [
"MIT"
] | null | null | null | nestedSerializers/coApp/apps.py | saibottrenham/djangorest | 45efadabb19cf421a282b98f3480cf49789eaae1 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class CoappConfig(AppConfig):
name = 'coApp'
| 14.166667 | 33 | 0.741176 | 10 | 85 | 6.3 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 85 | 5 | 34 | 17 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
6e07b0a156f0a209e1f9f3756a1a00cd79fc14e6 | 2,769 | py | Python | rsa/txxx.py | userElaina/hg8 | 235dbeca3d58b94e1378ac4240ed8424791ae561 | [
"MIT"
] | null | null | null | rsa/txxx.py | userElaina/hg8 | 235dbeca3d58b94e1378ac4240ed8424791ae561 | [
"MIT"
] | null | null | null | rsa/txxx.py | userElaina/hg8 | 235dbeca3d58b94e1378ac4240ed8424791ae561 | [
"MIT"
] | null | null | null | p=3
import math
import sympy
# for i in range(20):
# print(p,math.factorial(p-2)%p)
# p=sympy.nextprime(p)
# exit()
x=1
y=0
def g(a,b):
global x,y
if not b:
x=1
y=0
return a
r=g(b,a%b)
t=x
x=y
y=t-a//b*y
return r
m=11124440021748127159... | 29.457447 | 780 | 0.786927 | 268 | 2,769 | 8.104478 | 0.223881 | 0.01105 | 0.016575 | 0.025322 | 0.02302 | 0.009208 | 0.009208 | 0.009208 | 0 | 0 | 0 | 0.653339 | 0.123871 | 2,769 | 94 | 781 | 29.457447 | 0.241962 | 0.063922 | 0 | 0.171429 | 0 | 0 | 0.020048 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0.014286 | false | 0 | 0.028571 | 0 | 0.071429 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6e0ad222863327b0b76276264d370c18c58030d3 | 20 | py | Python | settings/filepath.py | tailintalent/causal | 0648b432a396e5bfe3a7c340963731c826a216c6 | [
"MIT"
] | 17 | 2020-01-10T18:20:52.000Z | 2022-01-20T03:00:48.000Z | settings/filepath.py | tailintalent/causal | 0648b432a396e5bfe3a7c340963731c826a216c6 | [
"MIT"
] | 2 | 2021-08-09T14:29:49.000Z | 2022-01-24T05:20:03.000Z | settings/filepath.py | tailintalent/causal | 0648b432a396e5bfe3a7c340963731c826a216c6 | [
"MIT"
] | 3 | 2020-01-21T07:33:27.000Z | 2021-05-23T15:37:54.000Z | cau_PATH = "../data" | 20 | 20 | 0.6 | 3 | 20 | 3.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 20 | 1 | 20 | 20 | 0.611111 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6e0cff35614b72fc12a7fd706d0380924d21826f | 1,503 | py | Python | src/structures/tracked_list.py | ed741/PathBench | 50fe138eb1f824f49fe1a862705e435a1c3ec3ae | [
"BSD-3-Clause"
] | 46 | 2020-12-25T04:09:15.000Z | 2022-03-25T12:32:42.000Z | src/structures/tracked_list.py | ed741/PathBench | 50fe138eb1f824f49fe1a862705e435a1c3ec3ae | [
"BSD-3-Clause"
] | 36 | 2020-12-21T16:10:02.000Z | 2022-01-03T01:42:01.000Z | src/structures/tracked_list.py | judicaelclair/PathBenchURO | 101e67674efdfa8e27e1cf7787dac9fdf99552fe | [
"BSD-3-Clause"
] | 11 | 2021-01-06T23:34:12.000Z | 2022-03-21T17:21:47.000Z | from typing import Any, List, Tuple
from collections.abc import MutableSequence, Iterable
from structures.tracked_container import TrackedContainer
""" A TrackedList class, used to keep track of elements, that are being added or removed from a
list data structure. TrackedList overrides the built-in MutableSequenc... | 34.953488 | 119 | 0.705256 | 195 | 1,503 | 5.123077 | 0.384615 | 0.072072 | 0.026026 | 0.038038 | 0.14014 | 0.112112 | 0.064064 | 0 | 0 | 0 | 0 | 0.00084 | 0.207585 | 1,503 | 42 | 120 | 35.785714 | 0.837951 | 0 | 0 | 0.153846 | 0 | 0 | 0.015549 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0.115385 | 0.115385 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
6e207152b30da9753c6d28b28935347cdf54280e | 299 | py | Python | auth/views.py | gmaclinuxer/django_cbs_rest | ae754611672a5edcb5707aeb611cd09f10316d36 | [
"MIT"
] | null | null | null | auth/views.py | gmaclinuxer/django_cbs_rest | ae754611672a5edcb5707aeb611cd09f10316d36 | [
"MIT"
] | null | null | null | auth/views.py | gmaclinuxer/django_cbs_rest | ae754611672a5edcb5707aeb611cd09f10316d36 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from django.shortcuts import render
from django.contrib.auth.decorators import login_required
# this login required decorator is to not allow to any view without authenticating
@login_required(login_url="login/")
def home(request):
return render(request, "home.html")
| 27.181818 | 82 | 0.765886 | 42 | 299 | 5.380952 | 0.690476 | 0.172566 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003861 | 0.133779 | 299 | 10 | 83 | 29.9 | 0.868726 | 0.341137 | 0 | 0 | 0 | 0 | 0.07732 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
6e3d4f04c001b37e253b4eb98a3ab9184333661e | 4,151 | py | Python | src/manager/event_meta.py | DeepLearnPhysics/larcv-viewer | 5d5eb65e409e80a2ee229464bb7b714deec05462 | [
"MIT"
] | 1 | 2021-07-13T13:34:20.000Z | 2021-07-13T13:34:20.000Z | src/manager/event_meta.py | DeepLearnPhysics/larcv-viewer | 5d5eb65e409e80a2ee229464bb7b714deec05462 | [
"MIT"
] | 3 | 2018-01-17T16:13:23.000Z | 2018-01-17T17:28:02.000Z | src/manager/event_meta.py | DeepLearnPhysics/larcv-viewer | 5d5eb65e409e80a2ee229464bb7b714deec05462 | [
"MIT"
] | 1 | 2019-09-24T20:43:01.000Z | 2019-09-24T20:43:01.000Z |
class event_meta(object):
def __init__(self):
super(event_meta, self).__init__()
def n_views(self):
return max(self._n_views, 1)
def refresh(self, meta_vec):
self._n_views = len(meta_vec)
self._x_min = []
self._y_min = []
self._x_max = []
self._... | 25.94375 | 87 | 0.595278 | 657 | 4,151 | 3.372907 | 0.08828 | 0.069946 | 0.113718 | 0.08574 | 0.607852 | 0.359206 | 0.196751 | 0.09657 | 0.09657 | 0.023466 | 0 | 0.008384 | 0.281619 | 4,151 | 159 | 88 | 26.106918 | 0.734742 | 0 | 0 | 0.054545 | 0 | 0 | 0.007229 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.327273 | false | 0 | 0 | 0.281818 | 0.645455 | 0.009091 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
6e51e7f3411f3d25565d905491d5ce92ee633173 | 376 | py | Python | 30 Days of Code/Day_07_Arrays/arrays.py | brianchiang-tw/HackerRank | 02a30a0033b881206fa15b8d6b4ef99b2dc420c8 | [
"MIT"
] | 2 | 2020-05-28T07:15:00.000Z | 2020-07-21T08:34:06.000Z | 30 Days of Code/Day_07_Arrays/arrays.py | brianchiang-tw/HackerRank | 02a30a0033b881206fa15b8d6b4ef99b2dc420c8 | [
"MIT"
] | null | null | null | 30 Days of Code/Day_07_Arrays/arrays.py | brianchiang-tw/HackerRank | 02a30a0033b881206fa15b8d6b4ef99b2dc420c8 | [
"MIT"
] | null | null | null | #!/bin/python3
import math
import os
import random
import re
import sys
from typing import List
def print_arr_reverse_order( arr:List )->None:
for i in range( len(arr)-1, -1, -1 ):
print( arr[i], end = ' ')
return
if __name__ == '__main__':
n = int(input())
arr = list(map(int, input(... | 15.666667 | 50 | 0.62234 | 56 | 376 | 3.928571 | 0.607143 | 0.109091 | 0.136364 | 0.181818 | 0.209091 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013889 | 0.234043 | 376 | 24 | 51 | 15.666667 | 0.75 | 0.034574 | 0 | 0 | 0 | 0 | 0.024793 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.428571 | 0 | 0.571429 | 0.214286 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
2812cb7c89057c0faffeece5b7e5593684db838e | 113 | py | Python | dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/text/subscription/request/__init__.py | srcarter3/python-awips | d981062662968cf3fb105e8e23d955950ae2497e | [
"BSD-3-Clause"
] | 33 | 2016-03-17T01:21:18.000Z | 2022-02-08T10:41:06.000Z | dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/text/subscription/request/__init__.py | srcarter3/python-awips | d981062662968cf3fb105e8e23d955950ae2497e | [
"BSD-3-Clause"
] | 15 | 2016-04-19T16:34:08.000Z | 2020-09-09T19:57:54.000Z | dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/text/subscription/request/__init__.py | Unidata/python-awips | 8459aa756816e5a45d2e5bea534d23d5b1dd1690 | [
"BSD-3-Clause"
] | 20 | 2016-03-12T01:46:58.000Z | 2022-02-08T06:53:22.000Z |
__all__ = [
'SubscriptionRequest'
]
from .SubscriptionRequest import SubscriptionRequest
| 16.142857 | 52 | 0.654867 | 6 | 113 | 11.666667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.292035 | 113 | 6 | 53 | 18.833333 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0.169643 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
283c7eed4b172845412ee83aeef95f4e6cc96025 | 253 | py | Python | fshunter/helper/config.py | janpiter/flash-sale-hunter | 1707a57a77d388b46bb4f8f5f565f9d201fa7199 | [
"MIT"
] | 4 | 2020-11-17T15:49:18.000Z | 2021-05-09T08:52:12.000Z | fshunter/helper/config.py | janpiter/flash-sale-hunter | 1707a57a77d388b46bb4f8f5f565f9d201fa7199 | [
"MIT"
] | 1 | 2019-02-25T14:51:48.000Z | 2019-04-09T02:27:09.000Z | fshunter/helper/config.py | janpiter/flash-sale-hunter | 1707a57a77d388b46bb4f8f5f565f9d201fa7199 | [
"MIT"
] | 1 | 2020-11-18T15:02:21.000Z | 2020-11-18T15:02:21.000Z | from ConfigParser import ConfigParser
import os
__author__ = 'irvan'
def load(config_file="config.ini"):
config_path = "{}/{}".format(os.getcwd(), config_file)
config = ConfigParser()
config.read(config_path)
return config
| 21.083333 | 59 | 0.675889 | 29 | 253 | 5.62069 | 0.551724 | 0.220859 | 0.196319 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.201581 | 253 | 11 | 60 | 23 | 0.806931 | 0 | 0 | 0 | 0 | 0 | 0.082645 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2851746b5385c3802803dda9ca4ee63ca15fde31 | 672 | py | Python | tests/test_columns.py | Ivan-Feofanov/import_me | 6126d40a9ac86efa34deefc428c2334c05e00e26 | [
"MIT"
] | 11 | 2020-05-14T18:38:42.000Z | 2021-04-26T06:30:12.000Z | tests/test_columns.py | Ivan-Feofanov/import_me | 6126d40a9ac86efa34deefc428c2334c05e00e26 | [
"MIT"
] | 29 | 2020-05-02T10:16:50.000Z | 2021-07-13T08:26:21.000Z | tests/test_columns.py | Ivan-Feofanov/import_me | 6126d40a9ac86efa34deefc428c2334c05e00e26 | [
"MIT"
] | 18 | 2020-05-08T07:02:08.000Z | 2021-09-27T10:52:25.000Z | import pytest
from import_me import Column
from import_me.constants import COLUMN_NAME_PATTERN
from import_me.exceptions import ParserError
@pytest.mark.parametrize(
'column_name',
('a', 'name', 'column_name', 'column_name1'),
)
def test_column_valid_name(column_name):
Column(name=column_name, index=0)
... | 25.846154 | 87 | 0.721726 | 93 | 672 | 4.946237 | 0.376344 | 0.282609 | 0.213043 | 0.173913 | 0.278261 | 0.113043 | 0 | 0 | 0 | 0 | 0 | 0.007042 | 0.154762 | 672 | 25 | 88 | 26.88 | 0.802817 | 0 | 0 | 0.315789 | 0 | 0 | 0.208333 | 0.032738 | 0 | 0 | 0 | 0 | 0.052632 | 1 | 0.105263 | false | 0 | 0.210526 | 0 | 0.315789 | 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 | 0 | 0 | 0 | 3 |
28546b58f9f9c2d5328e452619eba3b6a990b23c | 109 | py | Python | src/task_status.py | accelerationa/DistributedSpider | f2971e07c6713e80b91f0428f9b3b17955feb24a | [
"BSD-2-Clause"
] | null | null | null | src/task_status.py | accelerationa/DistributedSpider | f2971e07c6713e80b91f0428f9b3b17955feb24a | [
"BSD-2-Clause"
] | null | null | null | src/task_status.py | accelerationa/DistributedSpider | f2971e07c6713e80b91f0428f9b3b17955feb24a | [
"BSD-2-Clause"
] | null | null | null | import enum
class TaskStatus(enum.Enum):
new = 'New'
downloading = 'Downloading'
done = 'Done' | 18.166667 | 31 | 0.633028 | 12 | 109 | 5.75 | 0.583333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.247706 | 109 | 6 | 32 | 18.166667 | 0.841463 | 0 | 0 | 0 | 0 | 0 | 0.163636 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
2867252362fa07598cfd709ce769bdb5ff565bb9 | 1,556 | py | Python | code/test_spd1000x.py | briansune/SPD1000x_GUI_SCPI | 48e1e8ccf88db18b535d589b91fa5321d349bdbe | [
"MIT"
] | 1 | 2022-03-30T20:37:28.000Z | 2022-03-30T20:37:28.000Z | code/test_spd1000x.py | briansune/SPD1000x_GUI_SCPI | 48e1e8ccf88db18b535d589b91fa5321d349bdbe | [
"MIT"
] | null | null | null | code/test_spd1000x.py | briansune/SPD1000x_GUI_SCPI | 48e1e8ccf88db18b535d589b91fa5321d349bdbe | [
"MIT"
] | null | null | null | import pyvisa as visa
def list_all_devices(rm):
print(rm.list_resources())
def connect_dev(rm):
power_supply = rm.open_resource('USB0::0xF4EC::0xF4EC::SPD13DCQ5R1087::INSTR')
print(power_supply)
power_supply.write_termination = '\n'
power_supply.read_termination = '\n'
print(rm.list_resourc... | 21.315068 | 82 | 0.666452 | 209 | 1,556 | 4.708134 | 0.267943 | 0.380081 | 0.308943 | 0.223577 | 0.572154 | 0.393293 | 0.393293 | 0.283537 | 0.193089 | 0.193089 | 0 | 0.021094 | 0.177378 | 1,556 | 72 | 83 | 21.611111 | 0.747656 | 0.050129 | 0 | 0.386364 | 0 | 0 | 0.143245 | 0.029192 | 0 | 0 | 0.008147 | 0 | 0 | 1 | 0.068182 | false | 0 | 0.022727 | 0 | 0.090909 | 0.318182 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
288c45307f072eb59be218bb6e9d5bd71cf8e940 | 167 | py | Python | assets/post_images/dl3/dl3_3.py | c-juhwan/c-juhwan.github.io | e6896c7c7eb9bc28aa936b686e666407ae2c840d | [
"MIT"
] | 3 | 2021-05-16T10:28:21.000Z | 2021-12-27T05:12:29.000Z | assets/post_images/dl3/dl3_3.py | c-juhwan/c-juhwan.github.io | e6896c7c7eb9bc28aa936b686e666407ae2c840d | [
"MIT"
] | null | null | null | assets/post_images/dl3/dl3_3.py | c-juhwan/c-juhwan.github.io | e6896c7c7eb9bc28aa936b686e666407ae2c840d | [
"MIT"
] | 1 | 2021-04-06T11:56:53.000Z | 2021-04-06T11:56:53.000Z | import numpy as np
def softmax(a):
return np.exp(a) / np.sum(np.exp(a))
input_a = np.array([-3, -1.5, 0.3, 0.6, 1, 1.8, 3])
print(np.round(softmax(input_a), 3)) | 20.875 | 51 | 0.60479 | 38 | 167 | 2.605263 | 0.526316 | 0.10101 | 0.121212 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085714 | 0.161677 | 167 | 8 | 52 | 20.875 | 0.621429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.2 | 0.6 | 0.2 | 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 | 0 | 1 | 1 | 0 | 0 | 3 |
2892346cb50d5e48b8d8f776c5a65a7d2f908f4d | 320 | py | Python | test/experiment_telegram.py | Aeroid/dsmr_parser | dc2f4937391a0b5fdc2699979e679248571916f9 | [
"MIT"
] | 82 | 2016-11-07T13:59:38.000Z | 2022-03-21T14:48:45.000Z | test/experiment_telegram.py | Aeroid/dsmr_parser | dc2f4937391a0b5fdc2699979e679248571916f9 | [
"MIT"
] | 91 | 2016-09-10T20:13:18.000Z | 2022-03-07T20:51:35.000Z | test/experiment_telegram.py | Aeroid/dsmr_parser | dc2f4937391a0b5fdc2699979e679248571916f9 | [
"MIT"
] | 52 | 2016-11-06T19:38:32.000Z | 2022-03-19T23:16:34.000Z | from dsmr_parser import telegram_specifications
from dsmr_parser.objects import Telegram
from dsmr_parser.parsers import TelegramParser
from example_telegrams import TELEGRAM_V4_2
parser = TelegramParser(telegram_specifications.V4)
telegram = Telegram(TELEGRAM_V4_2, parser, telegram_specifications.V4)
print(telegram)
| 35.555556 | 70 | 0.875 | 41 | 320 | 6.560976 | 0.341463 | 0.089219 | 0.156134 | 0.126394 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020408 | 0.08125 | 320 | 8 | 71 | 40 | 0.894558 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.571429 | 0 | 0.571429 | 0.142857 | 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 | 0 | 1 | 0 | 0 | 3 |
953e77d89e90c4c5642fde4016e0e0d76a3b0c4d | 257 | py | Python | picostack/vms/admin.py | ewiger/picostack | b594b2ebe6f87acc2698e515f62ea52b5d48eaa7 | [
"MIT"
] | 19 | 2015-02-12T01:44:32.000Z | 2021-02-24T05:19:43.000Z | picostack/vms/admin.py | ewiger/picostack | b594b2ebe6f87acc2698e515f62ea52b5d48eaa7 | [
"MIT"
] | 1 | 2015-09-21T12:01:34.000Z | 2016-02-26T13:44:30.000Z | picostack/vms/admin.py | ewiger/picostack | b594b2ebe6f87acc2698e515f62ea52b5d48eaa7 | [
"MIT"
] | 10 | 2015-02-12T01:44:33.000Z | 2019-03-24T10:53:11.000Z | from django.contrib import admin
from picostack.vms.models import Flavour, VmImage, VmInstance
class VmInstanceAdmin(admin.ModelAdmin):
pass
admin.site.register(Flavour)
admin.site.register(VmImage)
admin.site.register(VmInstance, VmInstanceAdmin)
| 19.769231 | 61 | 0.81323 | 31 | 257 | 6.741935 | 0.548387 | 0.129187 | 0.244019 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.101167 | 257 | 12 | 62 | 21.416667 | 0.904762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.142857 | 0.285714 | 0 | 0.428571 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
9550fe7dfc2b2504b601252f47a991e5d6fad356 | 169 | py | Python | apps/idcs/router.py | sunfan666/cmdb | 71722a8dddf5e337d7658328cfcac0c9108b067c | [
"MIT"
] | 3 | 2020-06-11T10:57:22.000Z | 2021-03-25T02:45:05.000Z | apps/idcs/router.py | sunfan666/cmdb | 71722a8dddf5e337d7658328cfcac0c9108b067c | [
"MIT"
] | 2 | 2020-08-05T07:59:45.000Z | 2020-08-05T08:00:48.000Z | apps/idcs/router.py | sunfan666/cmdb | 71722a8dddf5e337d7658328cfcac0c9108b067c | [
"MIT"
] | null | null | null | from rest_framework.routers import DefaultRouter
from .views import IdcViewset
idc_router = DefaultRouter()
idc_router.register(r'idcs', IdcViewset, base_name="idcs")
| 24.142857 | 58 | 0.816568 | 22 | 169 | 6.090909 | 0.681818 | 0.134328 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094675 | 169 | 6 | 59 | 28.166667 | 0.875817 | 0 | 0 | 0 | 0 | 0 | 0.047337 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
95689501afc44b2f122694d87e0aa83103298e47 | 134 | py | Python | api/urls.py | DefCon-007/histrock | e4a66f421fea971339b73d2580dc9393e0cacbc9 | [
"MIT"
] | null | null | null | api/urls.py | DefCon-007/histrock | e4a66f421fea971339b73d2580dc9393e0cacbc9 | [
"MIT"
] | null | null | null | api/urls.py | DefCon-007/histrock | e4a66f421fea971339b73d2580dc9393e0cacbc9 | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
urlpatterns = [
path('stockdata', views.getStockData, name='stockdata'),
] | 16.75 | 60 | 0.69403 | 15 | 134 | 6.2 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.186567 | 134 | 8 | 61 | 16.75 | 0.853211 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
95a941959de878618eb5ce24c56b188c33b7504a | 7,929 | py | Python | mars/tensor/special/tests/test_special.py | chineking/mars | 660098c65bcb389c6bbebc26b2502a9b3af43cf9 | [
"Apache-2.0"
] | null | null | null | mars/tensor/special/tests/test_special.py | chineking/mars | 660098c65bcb389c6bbebc26b2502a9b3af43cf9 | [
"Apache-2.0"
] | null | null | null | mars/tensor/special/tests/test_special.py | chineking/mars | 660098c65bcb389c6bbebc26b2502a9b3af43cf9 | [
"Apache-2.0"
] | null | null | null | # Copyright 1999-2021 Alibaba Group Holding Ltd.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | 26.969388 | 74 | 0.657334 | 1,205 | 7,929 | 4.188382 | 0.107884 | 0.04577 | 0.044383 | 0.053497 | 0.715475 | 0.710521 | 0.696057 | 0.681791 | 0.681791 | 0.681791 | 0 | 0.017428 | 0.232942 | 7,929 | 293 | 75 | 27.061433 | 0.812397 | 0.071762 | 0 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.439024 | 1 | 0.039024 | false | 0 | 0.029268 | 0 | 0.068293 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
95aac0e2ec9a4e6b66c6c31fe95d0ac38096b24a | 1,151 | py | Python | agents/agent.py | kxvrh/GomokuAI | 33d763c6aa556924decdffeef5386f874da8b95f | [
"MIT"
] | 4 | 2018-09-25T14:15:26.000Z | 2020-06-29T16:05:54.000Z | agents/agent.py | kxvrh/GomokuAI | 33d763c6aa556924decdffeef5386f874da8b95f | [
"MIT"
] | null | null | null | agents/agent.py | kxvrh/GomokuAI | 33d763c6aa556924decdffeef5386f874da8b95f | [
"MIT"
] | 2 | 2018-09-25T14:14:24.000Z | 2019-03-31T09:19:08.000Z | import numpy as np
from core import GameConfig as Game
from core import Board, Position
class Agent:
""" Agent base class, also serving as a RandomAgent. """
def __init__(self):
pass
def get_action(self, state: Board) -> Position:
""" Simply get the next position according to current stat... | 26.767442 | 78 | 0.619461 | 142 | 1,151 | 4.838028 | 0.478873 | 0.043668 | 0.040757 | 0.058224 | 0.075691 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002433 | 0.285838 | 1,151 | 42 | 79 | 27.404762 | 0.833333 | 0.32841 | 0 | 0.086957 | 0 | 0 | 0.063978 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.26087 | false | 0.086957 | 0.173913 | 0.043478 | 0.608696 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
95b0c6901b6c02fa5febafd0994d116af4cc44b8 | 273 | py | Python | Python/School/C3/extra challenge 4_b.py | abdalrhmanyasser/Abdalrhman_Rep | e0fc3caa2cc04e92f591ccd7934586986d194000 | [
"CC0-1.0"
] | null | null | null | Python/School/C3/extra challenge 4_b.py | abdalrhmanyasser/Abdalrhman_Rep | e0fc3caa2cc04e92f591ccd7934586986d194000 | [
"CC0-1.0"
] | null | null | null | Python/School/C3/extra challenge 4_b.py | abdalrhmanyasser/Abdalrhman_Rep | e0fc3caa2cc04e92f591ccd7934586986d194000 | [
"CC0-1.0"
] | null | null | null | change = eval(input("Enter the change"))
print("quarters :", change//.25)
change-=(change//.25)*.25
print("dimes :", change//.10)
change-=(change//.10)*.10
print("nickels :",change//.05)
change-=(change//.05)*.05
print("pennies :",1+(change//.01))
change-=(change//.01)*.01 | 30.333333 | 40 | 0.6337 | 39 | 273 | 4.435897 | 0.384615 | 0.277457 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098039 | 0.065934 | 273 | 9 | 41 | 30.333333 | 0.580392 | 0 | 0 | 0 | 0 | 0 | 0.186131 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.444444 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
95b33c7bddc82df33ba41102709dc8014cc04cfe | 191 | py | Python | ConfigMap.py | softberries/ibirdfeeder | 3f6ef1784e2ffcfd0a44bf17d031efc0be1dd0af | [
"MIT"
] | null | null | null | ConfigMap.py | softberries/ibirdfeeder | 3f6ef1784e2ffcfd0a44bf17d031efc0be1dd0af | [
"MIT"
] | null | null | null | ConfigMap.py | softberries/ibirdfeeder | 3f6ef1784e2ffcfd0a44bf17d031efc0be1dd0af | [
"MIT"
] | null | null | null | import configparser
config = configparser.ConfigParser()
config.read("./config.ini")
## Config helper
def configSectionMap(section):
dict1 = dict(config.items(section))
return dict1 | 21.222222 | 39 | 0.748691 | 21 | 191 | 6.809524 | 0.619048 | 0.251748 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012048 | 0.13089 | 191 | 9 | 40 | 21.222222 | 0.849398 | 0.068063 | 0 | 0 | 0 | 0 | 0.068182 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 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 | 0 | 0 | 0 | 0 | 0 | 3 |
95b9403476420fabf5b5c6904add860eaa6c9fb4 | 90 | py | Python | chdb_app/apps.py | budleigh/chdb | ce01a3311d9d47a0355a471c1125712a10828251 | [
"MIT"
] | null | null | null | chdb_app/apps.py | budleigh/chdb | ce01a3311d9d47a0355a471c1125712a10828251 | [
"MIT"
] | 6 | 2020-06-05T22:51:40.000Z | 2022-02-10T11:26:10.000Z | chdb_app/apps.py | budleigh/chdb | ce01a3311d9d47a0355a471c1125712a10828251 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class ChdbAppConfig(AppConfig):
name = 'chdb_app'
| 15 | 33 | 0.755556 | 11 | 90 | 6.090909 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 90 | 5 | 34 | 18 | 0.893333 | 0 | 0 | 0 | 0 | 0 | 0.088889 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
95bde920ce749a673328421797ce425af72e7876 | 490 | py | Python | eyed/rpc/bacnetd/bacnetd.py | ThousandMileEye/Eye | b0eca371fed5e01353ebddf7e4c400927decf0d2 | [
"Apache-2.0"
] | null | null | null | eyed/rpc/bacnetd/bacnetd.py | ThousandMileEye/Eye | b0eca371fed5e01353ebddf7e4c400927decf0d2 | [
"Apache-2.0"
] | 55 | 2017-12-21T15:20:36.000Z | 2019-01-20T02:49:41.000Z | eyed/rpc/bacnetd/bacnetd.py | ThousandMileEye/Eye | b0eca371fed5e01353ebddf7e4c400927decf0d2 | [
"Apache-2.0"
] | 3 | 2018-05-18T09:02:36.000Z | 2019-12-29T10:27:44.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# BACnet デーモン管理用
#
from eyed.single import SingleBACnetdService
#
# BACnetdService
#
class BACnetdService(object):
#
# BACnetd サービスの起動
#
def exposed_start(self, interface_name, device_id):
return SingleBACnetdService.start(interface_name, device_id)
#
# BACnetd... | 15.806452 | 62 | 0.734694 | 54 | 490 | 6.537037 | 0.62963 | 0.084986 | 0.107649 | 0.11898 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002415 | 0.155102 | 490 | 30 | 63 | 16.333333 | 0.850242 | 0.242857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0.125 | 0.375 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
95c9c0402a9acf78404ac80708a24c8abc46e817 | 1,070 | py | Python | cloudmesh/pi/__init__.py | cloudmesh/cloudmesh.pi | bdf706b3763031341c41b811749064c293e73c14 | [
"Apache-2.0"
] | 2 | 2017-09-18T00:56:36.000Z | 2018-06-01T23:41:23.000Z | cloudmesh/pi/__init__.py | cloudmesh/cloudmesh-pi | bdf706b3763031341c41b811749064c293e73c14 | [
"Apache-2.0"
] | 1 | 2018-04-16T18:37:17.000Z | 2018-04-16T18:37:17.000Z | cloudmesh/pi/__init__.py | cloudmesh/cloudmesh.pi | bdf706b3763031341c41b811749064c293e73c14 | [
"Apache-2.0"
] | 3 | 2017-09-20T11:13:54.000Z | 2017-11-30T23:48:37.000Z | #
# allows to say
# import cloudmesh.pi
# from cloudmesh.pi import *
# from cloudmesh.pi import Dendrite
from .barometer import Barometer
from .button import Button
from .buzzer import Buzzer
from .dendrite import Dendrite, DendriteSwarm
from .distance import DistanceSensor
from .heartbeat import HeartbeatSensor
from ... | 30.571429 | 59 | 0.837383 | 142 | 1,070 | 6.211268 | 0.394366 | 0.040816 | 0.034014 | 0.047619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002134 | 0.124299 | 1,070 | 34 | 60 | 31.470588 | 0.939168 | 0.186916 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
95d0435de697f926fc4fc6b2b239c7a275521c51 | 103 | py | Python | recipes.py | chancedickson/bread-calc | 4f0299aa80ad8e184108a24a8c0ccde1074ebd47 | [
"BSD-3-Clause"
] | null | null | null | recipes.py | chancedickson/bread-calc | 4f0299aa80ad8e184108a24a8c0ccde1074ebd47 | [
"BSD-3-Clause"
] | null | null | null | recipes.py | chancedickson/bread-calc | 4f0299aa80ad8e184108a24a8c0ccde1074ebd47 | [
"BSD-3-Clause"
] | null | null | null | white = {
"Flour": "100",
"Water": "65",
"Oil": "4",
"Salt": "2",
"Yeast": "1.5"
}
| 12.875 | 19 | 0.349515 | 12 | 103 | 3 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 0.330097 | 103 | 7 | 20 | 14.714286 | 0.391304 | 0 | 0 | 0 | 0 | 0 | 0.31068 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
95d8b00e82cfdd68bfc4412b37b4155f429a31d4 | 11,016 | py | Python | rctk/tests/test_newlayout.py | rctk/rctk | dc8640e75179c8560ca0cd64e709fefef58d5d2a | [
"BSD-2-Clause"
] | 2 | 2015-05-08T20:55:06.000Z | 2015-06-23T23:04:27.000Z | rctk/tests/test_newlayout.py | rctk/rctk | dc8640e75179c8560ca0cd64e709fefef58d5d2a | [
"BSD-2-Clause"
] | null | null | null | rctk/tests/test_newlayout.py | rctk/rctk | dc8640e75179c8560ca0cd64e709fefef58d5d2a | [
"BSD-2-Clause"
] | null | null | null | import py.test
from rctk.layouts.grid import Grid, GridLayout, LayoutException
class TestGrid(object):
def test_iterator_fixed(self):
g = Grid(rows=2, columns=3)
walk = list(iter(g))
assert walk == [(0, 0), (0, 1), (0, 2),
(1, 0), (1, 1), (1, 2)]
def test_itera... | 31.746398 | 71 | 0.581609 | 1,543 | 11,016 | 4.090084 | 0.078419 | 0.08398 | 0.098241 | 0.076058 | 0.822057 | 0.783077 | 0.731421 | 0.684994 | 0.576771 | 0.508636 | 0 | 0.050133 | 0.282952 | 11,016 | 346 | 72 | 31.83815 | 0.748829 | 0.033134 | 0 | 0.661922 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.220641 | 1 | 0.199288 | false | 0 | 0.007117 | 0 | 0.241993 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
95dd0390ec775abf6e939b1d375cf9d403192297 | 503 | py | Python | polidoro_table/row.py | heitorpolidoro/polidoro-table | 1eed112d5c1c6a514a2615eaa808bc475c6cb88b | [
"MIT"
] | null | null | null | polidoro_table/row.py | heitorpolidoro/polidoro-table | 1eed112d5c1c6a514a2615eaa808bc475c6cb88b | [
"MIT"
] | 5 | 2021-12-07T12:25:05.000Z | 2021-12-07T14:22:12.000Z | polidoro_table/row.py | heitorpolidoro/polidoro-table | 1eed112d5c1c6a514a2615eaa808bc475c6cb88b | [
"MIT"
] | null | null | null | class Row:
def __init__(self, title=None, columns=None, properties=None):
self.title = title
self.columns = columns or []
self.properties = properties or []
def __str__(self):
return str(self.title)
def __len__(self):
return len(self.title or '')
def __iter__(s... | 23.952381 | 66 | 0.622266 | 62 | 503 | 4.758065 | 0.322581 | 0.122034 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.270378 | 503 | 20 | 67 | 25.15 | 0.803815 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0.133333 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
95dedfb9a3ccdf64ab7ac92f001d89188d393a4a | 7,984 | py | Python | extractor/parser.py | maomao905/content_extractor | 54a410c71678b20d7fae0bd10bf8c4792fdbe669 | [
"MIT"
] | 3 | 2021-07-25T16:01:03.000Z | 2021-11-09T06:11:58.000Z | extractor/parser.py | maomao905/content_extractor | 54a410c71678b20d7fae0bd10bf8c4792fdbe669 | [
"MIT"
] | null | null | null | extractor/parser.py | maomao905/content_extractor | 54a410c71678b20d7fae0bd10bf8c4792fdbe669 | [
"MIT"
] | null | null | null | import logging
import lxml.html
from lxml.html.clean import Cleaner
from bs4 import BeautifulSoup
from bs4.element import Tag
import re
from readability import htmls
from extractor.util import load_log_config
logging.config.dictConfig(load_log_config())
logger = logging.getLogger('applog.' + __name__)
# Handle jQuer... | 29.352941 | 126 | 0.594564 | 1,091 | 7,984 | 4.197067 | 0.162236 | 0.043241 | 0.047172 | 0.025551 | 0.449662 | 0.351824 | 0.258353 | 0.140205 | 0.110941 | 0.099585 | 0 | 0.002652 | 0.291583 | 7,984 | 271 | 127 | 29.461255 | 0.806931 | 0.035446 | 0 | 0.369668 | 0 | 0 | 0.043665 | 0 | 0 | 0 | 0 | 0 | 0.004739 | 1 | 0.227488 | false | 0 | 0.037915 | 0.113744 | 0.554502 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
95e6f40d0271c2e0b6cc1f28fa77e4f2e8201b50 | 129 | py | Python | load_op.py | Liuyang829/testMSDNet | 36512d5b27ed6808528fe379f762b5ab4cb8324d | [
"MIT"
] | 4 | 2020-11-20T06:37:48.000Z | 2021-11-23T07:11:01.000Z | load_op.py | Liuyang829/testMSDNet | 36512d5b27ed6808528fe379f762b5ab4cb8324d | [
"MIT"
] | 1 | 2020-10-30T08:25:04.000Z | 2020-11-03T12:00:22.000Z | load_op.py | Liuyang829/testMSDNet | 36512d5b27ed6808528fe379f762b5ab4cb8324d | [
"MIT"
] | null | null | null | import torch
pthfile = r'/data1/master1/MSDNet-PyTorch/cifar100_anytime_result/flops.pth'
net = torch.load(pthfile)
print(net) | 32.25 | 77 | 0.790698 | 19 | 129 | 5.263158 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042373 | 0.085271 | 129 | 4 | 78 | 32.25 | 0.805085 | 0 | 0 | 0 | 0 | 0 | 0.496063 | 0.496063 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
95ed6778f0fce003239b6d88e3f5daedc1981a2e | 100 | py | Python | testdata/repos/network/MetadataUrlCheck/SSLCertificateError/responses.py | floppym/pkgcheck | 07215eac255a88b3a0c351f35626a1c79d9f2632 | [
"BSD-3-Clause"
] | 18 | 2015-04-24T23:15:30.000Z | 2022-02-14T04:14:56.000Z | testdata/repos/network/MetadataUrlCheck/SSLCertificateError/responses.py | floppym/pkgcheck | 07215eac255a88b3a0c351f35626a1c79d9f2632 | [
"BSD-3-Clause"
] | 351 | 2015-03-08T07:07:47.000Z | 2022-03-21T11:57:58.000Z | testdata/repos/network/MetadataUrlCheck/SSLCertificateError/responses.py | floppym/pkgcheck | 07215eac255a88b3a0c351f35626a1c79d9f2632 | [
"BSD-3-Clause"
] | 19 | 2015-03-08T01:16:10.000Z | 2022-03-17T10:37:26.000Z | from requests.exceptions import SSLError
responses = [SSLError('Certificate verification failed')]
| 25 | 57 | 0.82 | 10 | 100 | 8.2 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 100 | 3 | 58 | 33.333333 | 0.911111 | 0 | 0 | 0 | 0 | 0 | 0.31 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
95f6a98596cd27e891d39690a1bd60525d9067c0 | 2,732 | py | Python | autoPyTorch/core/autonet_classes/autonet_image_classification_multiple_datasets.py | mens-artis/Auto-PyTorch | da8528d5cb1d5ac6a9050eaa84a332a5a11ee6d5 | [
"Apache-2.0"
] | 1,657 | 2018-12-26T09:42:58.000Z | 2022-03-31T04:59:25.000Z | autoPyTorch/core/autonet_classes/autonet_image_classification_multiple_datasets.py | mens-artis/Auto-PyTorch | da8528d5cb1d5ac6a9050eaa84a332a5a11ee6d5 | [
"Apache-2.0"
] | 320 | 2019-01-11T05:04:48.000Z | 2022-03-31T13:11:04.000Z | autoPyTorch/core/autonet_classes/autonet_image_classification_multiple_datasets.py | mens-artis/Auto-PyTorch | da8528d5cb1d5ac6a9050eaa84a332a5a11ee6d5 | [
"Apache-2.0"
] | 208 | 2018-12-01T08:16:59.000Z | 2022-03-30T19:20:02.000Z | from autoPyTorch.core.autonet_classes.autonet_image_classification import AutoNetImageClassification
class AutoNetImageClassificationMultipleDatasets(AutoNetImageClassification):
preset_folder_name = "image_classification_multiple_datasets"
@classmethod
def get_default_pipeline(cls):
from autoPyT... | 47.929825 | 121 | 0.710835 | 207 | 2,732 | 9.173913 | 0.342995 | 0.134281 | 0.193786 | 0.221169 | 0.226435 | 0.12217 | 0 | 0 | 0 | 0 | 0 | 0 | 0.241947 | 2,732 | 56 | 122 | 48.785714 | 0.916948 | 0.006589 | 0 | 0.093023 | 0 | 0 | 0.014012 | 0.014012 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023256 | false | 0 | 0.395349 | 0 | 0.488372 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
251095ae0bb1e0fb20003a3940168249eb742e77 | 1,230 | py | Python | tests/common/scripts/cleaning/test_map_priority.py | arkhn/fhir-river | a12179c34fad131d16dedc20c61297ed83d805e6 | [
"Apache-2.0"
] | 42 | 2020-03-25T16:47:30.000Z | 2022-01-31T21:26:38.000Z | tests/common/scripts/cleaning/test_map_priority.py | arkhn/fhir-river | a12179c34fad131d16dedc20c61297ed83d805e6 | [
"Apache-2.0"
] | 367 | 2020-04-08T12:46:34.000Z | 2022-02-16T01:15:32.000Z | tests/common/scripts/cleaning/test_map_priority.py | arkhn/fhir-river | a12179c34fad131d16dedc20c61297ed83d805e6 | [
"Apache-2.0"
] | 3 | 2020-05-14T08:24:46.000Z | 2021-08-04T05:00:16.000Z | from common.scripts.cleaning import map_priority
def test_map_priority():
raw_input_1 = "0"
output_1 = map_priority(raw_input_1)
assert output_1 == "routine"
raw_input_2 = 0
output_2 = map_priority(raw_input_2)
assert output_2 == "routine"
raw_input_3 = "1"
output_3 = map_priority(r... | 23.207547 | 48 | 0.67561 | 191 | 1,230 | 3.895288 | 0.162304 | 0.258065 | 0.244624 | 0.331989 | 0.053763 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078224 | 0.230894 | 1,230 | 52 | 49 | 23.653846 | 0.708245 | 0 | 0 | 0 | 0 | 0 | 0.063415 | 0 | 0 | 0 | 0 | 0 | 0.315789 | 1 | 0.026316 | false | 0 | 0.026316 | 0 | 0.052632 | 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 | 0 | 0 | 0 | 3 |
2560c398086335c1eb1e6bb5cee95516744c9583 | 904 | py | Python | config/api_config.py | Sergey19940808/fast_user | 41f6b113aff7a52bf016a427890ad4e3c026bc14 | [
"MIT"
] | null | null | null | config/api_config.py | Sergey19940808/fast_user | 41f6b113aff7a52bf016a427890ad4e3c026bc14 | [
"MIT"
] | null | null | null | config/api_config.py | Sergey19940808/fast_user | 41f6b113aff7a52bf016a427890ad4e3c026bc14 | [
"MIT"
] | null | null | null | import os
import dotenv
class ApiConfig:
BASE_DIR = os.path.dirname(os.path.dirname((os.path.abspath(__file__))))
dotenv.load_dotenv(dotenv_path=os.path.join(BASE_DIR, ".env"), override=True)
MODE_PROD = True if os.environ.get("MODE") == "prod" else False
HOST = os.environ.get("HOST")
PORT = int(... | 36.16 | 81 | 0.681416 | 138 | 904 | 4.282609 | 0.289855 | 0.213198 | 0.284264 | 0.126904 | 0.145516 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155973 | 904 | 24 | 82 | 37.666667 | 0.774574 | 0 | 0 | 0 | 0 | 0 | 0.143965 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.944444 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
c26a2fc81c7cd895ec61b12dd24ba4d0214d5bd8 | 247 | py | Python | funcao-map.py | anderr8/Introducao_Linguagem_Python | 8cbb5d50ee7c3a34095c26380f287be1d1e458c9 | [
"MIT"
] | null | null | null | funcao-map.py | anderr8/Introducao_Linguagem_Python | 8cbb5d50ee7c3a34095c26380f287be1d1e458c9 | [
"MIT"
] | null | null | null | funcao-map.py | anderr8/Introducao_Linguagem_Python | 8cbb5d50ee7c3a34095c26380f287be1d1e458c9 | [
"MIT"
] | null | null | null | # Python avançado função map
def dobro(x):
return x*2
valor = [1, 2, 3, 4, 5]
valor_dobrado = map(dobro, valor)
"""
for v in valor_dobrado:
print(v)
"""
# Convertendo em lista:
valor_dobrado = list(valor_dobrado)
print(valor_dobrado) | 13.722222 | 35 | 0.676113 | 39 | 247 | 4.153846 | 0.589744 | 0.37037 | 0.209877 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030151 | 0.194332 | 247 | 18 | 36 | 13.722222 | 0.78392 | 0.194332 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0.166667 | 0.333333 | 0.166667 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
c26aaac8528225c3a7a573b2f00afb5265a97152 | 383 | py | Python | system/models.py | bjthorpe/cogs3 | d6f0091c41f784ff1884456037685bfabd7c1897 | [
"MIT"
] | null | null | null | system/models.py | bjthorpe/cogs3 | d6f0091c41f784ff1884456037685bfabd7c1897 | [
"MIT"
] | 150 | 2018-08-07T09:34:47.000Z | 2019-08-15T20:16:11.000Z | system/models.py | bjthorpe/cogs3 | d6f0091c41f784ff1884456037685bfabd7c1897 | [
"MIT"
] | 2 | 2019-02-20T15:40:30.000Z | 2019-07-01T15:03:55.000Z | from django.db import models
class System(models.Model):
name = models.CharField(max_length=128, unique=True)
description = models.CharField(max_length=512)
number_of_cores = models.PositiveIntegerField()
created_time = models.DateTimeField(auto_now_add=True)
modified_time = models.DateTimeField(a... | 29.461538 | 58 | 0.749347 | 49 | 383 | 5.591837 | 0.653061 | 0.109489 | 0.131387 | 0.175182 | 0.218978 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018634 | 0.159269 | 383 | 12 | 59 | 31.916667 | 0.832298 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0.111111 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
c2a283b0bd0d0f236f185693c6bfa0bc4d2de122 | 688 | py | Python | current.py | aniruddhasanyal/auto_wrk | 970156f7cb5205a3595bd757981e267c9879d08e | [
"MIT"
] | null | null | null | current.py | aniruddhasanyal/auto_wrk | 970156f7cb5205a3595bd757981e267c9879d08e | [
"MIT"
] | null | null | null | current.py | aniruddhasanyal/auto_wrk | 970156f7cb5205a3595bd757981e267c9879d08e | [
"MIT"
] | null | null | null | from __future__ import print_function
import atexit
from os import path
from json import dumps, loads
class Current:
def __init__(self):
self.current_seed = {'counter': 0}
self.current = self.read_current()
def read_current(self):
return loads(open("current.json", "r").r... | 23.724138 | 109 | 0.617733 | 90 | 688 | 4.477778 | 0.477778 | 0.136476 | 0.074442 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003899 | 0.25436 | 688 | 29 | 110 | 23.724138 | 0.781676 | 0 | 0 | 0 | 0 | 0 | 0.12708 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.263158 | false | 0 | 0.210526 | 0.105263 | 0.631579 | 0.105263 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
c2d3e793ef589726c2e0c988435601c57ecff347 | 76 | py | Python | server/common/config/__init__.py | andrewsu/cellxgene | 853976b716433a5dab20cfcb16a5904c54b8a639 | [
"MIT"
] | 403 | 2018-03-06T15:43:14.000Z | 2022-03-30T20:57:58.000Z | server/common/config/__init__.py | andrewsu/cellxgene | 853976b716433a5dab20cfcb16a5904c54b8a639 | [
"MIT"
] | 2,000 | 2018-02-28T23:57:01.000Z | 2022-03-24T18:19:33.000Z | server/common/config/__init__.py | andrewsu/cellxgene | 853976b716433a5dab20cfcb16a5904c54b8a639 | [
"MIT"
] | 90 | 2018-05-01T02:57:52.000Z | 2022-03-10T21:40:24.000Z | DEFAULT_SERVER_PORT = 5005
BIG_FILE_SIZE_THRESHOLD = 100 * 2 ** 20 # 100MB
| 25.333333 | 48 | 0.75 | 12 | 76 | 4.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.206349 | 0.171053 | 76 | 2 | 49 | 38 | 0.619048 | 0.065789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c2e4054756390f0cbb2486e567204c68072e5da2 | 292 | py | Python | B03898_03_codes/general_nonlinear_solvers_no_solution.py | prakharShuklaOfficial/Mastering-Python-for-Finance-source-codes | 7b3a74a0dc78aaa977f8fe752cc3fa4f54063f33 | [
"MIT"
] | 446 | 2015-06-10T06:15:51.000Z | 2022-03-28T22:16:03.000Z | B03898_03_codes/general_nonlinear_solvers_no_solution.py | prakharShuklaOfficial/Mastering-Python-for-Finance-source-codes | 7b3a74a0dc78aaa977f8fe752cc3fa4f54063f33 | [
"MIT"
] | 8 | 2016-11-25T09:27:15.000Z | 2020-07-14T21:00:26.000Z | B03898_03_codes/general_nonlinear_solvers_no_solution.py | prakharShuklaOfficial/Mastering-Python-for-Finance-source-codes | 7b3a74a0dc78aaa977f8fe752cc3fa4f54063f33 | [
"MIT"
] | 277 | 2015-06-11T07:50:18.000Z | 2022-03-22T12:54:46.000Z | """"
README
======
This file contains Python codes.
======
"""
"""
General nonlinear solvers
- with no solution
"""
import scipy.optimize as optimize
y = lambda x: x**3 + 2.*x**2 - 5.
dy = lambda x: 3.*x**2 + 4.*x
print optimize.fsolve(y, -5., fprime=dy)
print optimize.root(y, -5.)
| 292 | 292 | 0.599315 | 46 | 292 | 3.804348 | 0.608696 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037975 | 0.188356 | 292 | 1 | 292 | 292 | 0.700422 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | null | null | 0.4 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c2f5255ea1253c2ea40e14e935fdd2c7c9deb276 | 1,038 | py | Python | backend/utils/crypto.py | R-N/sistem_gaji_vue_thrift | 9ba800b4d8e7849e2c6c4016cb32633caab087be | [
"MIT"
] | null | null | null | backend/utils/crypto.py | R-N/sistem_gaji_vue_thrift | 9ba800b4d8e7849e2c6c4016cb32633caab087be | [
"MIT"
] | null | null | null | backend/utils/crypto.py | R-N/sistem_gaji_vue_thrift | 9ba800b4d8e7849e2c6c4016cb32633caab087be | [
"MIT"
] | null | null | null | import hashlib
import os
from dotenv import load_dotenv
from passlib.hash import sha256_crypt, bcrypt, bcrypt_sha256
import jwt
from datetime import datetime
load_dotenv()
def md5(str):
return hashlib.md5(str.encode('utf-8')).hexdigest()
def hash_sha256(text):
return sha256_crypt.hash(text)
def verify_sha25... | 28.054054 | 130 | 0.742775 | 153 | 1,038 | 4.921569 | 0.27451 | 0.079681 | 0.084993 | 0.067729 | 0.132802 | 0.071713 | 0 | 0 | 0 | 0 | 0 | 0.046016 | 0.141619 | 1,038 | 37 | 130 | 28.054054 | 0.799102 | 0.015414 | 0 | 0 | 0 | 0 | 0.022527 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.037037 | 0.222222 | 0.296296 | 0.888889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
c2f5b2249148d0e8ee53f861f0590bb4e51067f2 | 843 | py | Python | src/participants/models.py | leopiresgoss/django-etest | 55ec087999b53fc734c32e6b6a6d73885f224af5 | [
"MIT"
] | 6 | 2022-02-18T17:43:01.000Z | 2022-02-21T23:24:37.000Z | src/participants/models.py | leopiresgoss/django-etest | 55ec087999b53fc734c32e6b6a6d73885f224af5 | [
"MIT"
] | null | null | null | src/participants/models.py | leopiresgoss/django-etest | 55ec087999b53fc734c32e6b6a6d73885f224af5 | [
"MIT"
] | null | null | null | from django.db import models
from tests.models import Test, Question, Option
# Create your models here.
class Participant(models.Model):
name = models.CharField(max_length=120)
email = models.EmailField(max_length=254)
test = models.ForeignKey(Test, on_delete=models.CASCADE)
finished = models.BooleanFi... | 30.107143 | 74 | 0.736655 | 106 | 843 | 5.707547 | 0.386792 | 0.132231 | 0.115702 | 0.173554 | 0.14876 | 0.14876 | 0.14876 | 0.14876 | 0 | 0 | 0 | 0.011299 | 0.160142 | 843 | 27 | 75 | 31.222222 | 0.84322 | 0.02847 | 0 | 0.235294 | 0 | 0 | 0.054121 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.117647 | 0.117647 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.