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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e4e2a81cb4f3ae3050b8e1e6b3bddd9e64ef4110 | 101 | py | Python | compressor/conf.py | muhuk/django_compressor | 84921a89efb36f7354f12485d23814c9ec30bf39 | [
"BSD-3-Clause"
] | 1 | 2018-03-19T21:01:55.000Z | 2018-03-19T21:01:55.000Z | compressor/conf.py | muhuk/django_compressor | 84921a89efb36f7354f12485d23814c9ec30bf39 | [
"BSD-3-Clause"
] | null | null | null | compressor/conf.py | muhuk/django_compressor | 84921a89efb36f7354f12485d23814c9ec30bf39 | [
"BSD-3-Clause"
] | null | null | null | from compressor.settings import CompressorSettings
settings = CompressorSettings(prefix="COMPRESS")
| 25.25 | 50 | 0.851485 | 9 | 101 | 9.555556 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079208 | 101 | 3 | 51 | 33.666667 | 0.924731 | 0 | 0 | 0 | 0 | 0 | 0.079208 | 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 |
e4ead8408991f21e61c8b194843e84c678e2062c | 384 | py | Python | tests/test_sum78.py | funcelot/micropython | 87ed68de216ab5b13930395bfd6d5b798313c9a1 | [
"MIT"
] | null | null | null | tests/test_sum78.py | funcelot/micropython | 87ed68de216ab5b13930395bfd6d5b798313c9a1 | [
"MIT"
] | null | null | null | tests/test_sum78.py | funcelot/micropython | 87ed68de216ab5b13930395bfd6d5b798313c9a1 | [
"MIT"
] | null | null | null | from itertools import takewhile, dropwhile
def sum78(nums):
i = enumerate(nums)
return sum([x[1] for x in takewhile(lambda x: x[1]!=7, i)]+[x[1] for x in dropwhile(lambda x: x[1]!=8, i)][1:])
def test_sum78():
assert sum78([1, 2, 2]) == 5
assert sum78([1, 2, 2, 7, 99, 99, 8]) == 5
assert sum78([1,... | 32 | 115 | 0.5625 | 74 | 384 | 2.905405 | 0.351351 | 0.037209 | 0.223256 | 0.055814 | 0.334884 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164983 | 0.226563 | 384 | 11 | 116 | 34.909091 | 0.558923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.444444 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.444444 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e4f7e34e3d2f53cfb58877452b4d806cc4ff98eb | 337 | py | Python | model/config_loader.py | estuaryoss/discovery-cli | 49b2eee58d14430aa58071aad9a368b4164ef898 | [
"Apache-2.0"
] | null | null | null | model/config_loader.py | estuaryoss/discovery-cli | 49b2eee58d14430aa58071aad9a368b4164ef898 | [
"Apache-2.0"
] | null | null | null | model/config_loader.py | estuaryoss/discovery-cli | 49b2eee58d14430aa58071aad9a368b4164ef898 | [
"Apache-2.0"
] | null | null | null | import yaml
class ConfigLoader:
def __init__(self, config):
""" Loads the yaml config """
self.config = config
def yaml(self):
return yaml.dump(self.__dict__)
@staticmethod
def load(data):
return ConfigLoader(yaml.safe_load(data))
def get_config(self):
re... | 18.722222 | 49 | 0.623145 | 40 | 337 | 5 | 0.45 | 0.15 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.278932 | 337 | 17 | 50 | 19.823529 | 0.823045 | 0.062315 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | false | 0 | 0.090909 | 0.272727 | 0.818182 | 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 |
e4f93419c8deda73bb631e6bc4678348bdb35082 | 374 | py | Python | tests/0125_valid_palindrome_test.py | paulo-erichsen/leetcode | 78543363f7f938bdbda75de9cdab645daa29466a | [
"MIT"
] | null | null | null | tests/0125_valid_palindrome_test.py | paulo-erichsen/leetcode | 78543363f7f938bdbda75de9cdab645daa29466a | [
"MIT"
] | null | null | null | tests/0125_valid_palindrome_test.py | paulo-erichsen/leetcode | 78543363f7f938bdbda75de9cdab645daa29466a | [
"MIT"
] | null | null | null | import importlib
module = importlib.import_module("algorithms.0125_valid_palindrome")
def test_valid_palindrome():
s = module.Solution()
assert s.isPalindrome("A man, a plan, a canal: Panama")
assert s.isPalindrome("")
assert s.isPalindrome("s")
assert s.isPalindrome("ss")
assert s.isPalindro... | 26.714286 | 68 | 0.708556 | 49 | 374 | 5.306122 | 0.469388 | 0.3 | 0.365385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012821 | 0.165775 | 374 | 13 | 69 | 28.769231 | 0.820513 | 0 | 0 | 0 | 0 | 0 | 0.208556 | 0.085562 | 0 | 0 | 0 | 0 | 0.6 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.3 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e4fbb884c574756940a1c7319ebb8f2f48b6257d | 250 | py | Python | python/simple.py | angus-ai/angus-getting-started | dcaccd4290a7567513974c27d870acfeaefc241b | [
"Apache-2.0"
] | 1 | 2015-08-25T23:04:28.000Z | 2015-08-25T23:04:28.000Z | python/simple.py | angus-ai/angus-getting-started | dcaccd4290a7567513974c27d870acfeaefc241b | [
"Apache-2.0"
] | null | null | null | python/simple.py | angus-ai/angus-getting-started | dcaccd4290a7567513974c27d870acfeaefc241b | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import angus
import json
conn = angus.connect()
service = conn.services.get_service('age_and_gender_estimation', version=1)
job = service.process({'image': open("./images/macgyver.jpg")})
print json.dumps(job.result, indent=4)
| 27.777778 | 75 | 0.752 | 37 | 250 | 4.972973 | 0.810811 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008734 | 0.084 | 250 | 8 | 76 | 31.25 | 0.79476 | 0.08 | 0 | 0 | 0 | 0 | 0.222707 | 0.200873 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.333333 | null | null | 0.166667 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
90044e7c27cb3aee6286b00ccccb6d4b92ff2f8a | 124 | py | Python | itlo/apps.py | varundey/itlo | a7b0d46aa1ce2a0163ba0deda44ee2f9ebac5039 | [
"MIT"
] | 1 | 2016-07-13T16:15:44.000Z | 2016-07-13T16:15:44.000Z | itlo/apps.py | varundey/itlo | a7b0d46aa1ce2a0163ba0deda44ee2f9ebac5039 | [
"MIT"
] | null | null | null | itlo/apps.py | varundey/itlo | a7b0d46aa1ce2a0163ba0deda44ee2f9ebac5039 | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
from django.apps import AppConfig
class ItloConfig(AppConfig):
name = 'itlo'
| 15.5 | 39 | 0.782258 | 15 | 124 | 6.133333 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16129 | 124 | 7 | 40 | 17.714286 | 0.884615 | 0 | 0 | 0 | 0 | 0 | 0.032258 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
900ca8e5625688e5c0f98d532225ceda8ee72bfc | 22 | py | Python | __init__.py | Ugrend/oszimporter | 33d5512506dddb4ba8a5265b8932ac4948566483 | [
"MIT"
] | null | null | null | __init__.py | Ugrend/oszimporter | 33d5512506dddb4ba8a5265b8932ac4948566483 | [
"MIT"
] | null | null | null | __init__.py | Ugrend/oszimporter | 33d5512506dddb4ba8a5265b8932ac4948566483 | [
"MIT"
] | null | null | null | __author__ = 'Ugrend'
| 11 | 21 | 0.727273 | 2 | 22 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136364 | 22 | 1 | 22 | 22 | 0.631579 | 0 | 0 | 0 | 0 | 0 | 0.272727 | 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 |
9015cd7fe564944fffd07ed9531b61eb725be89f | 1,946 | py | Python | functions.py | dwahme/physics_calc_enabler | f0fc4c9214cd024344c5f0d3684b29666339395e | [
"MIT"
] | null | null | null | functions.py | dwahme/physics_calc_enabler | f0fc4c9214cd024344c5f0d3684b29666339395e | [
"MIT"
] | 1 | 2018-12-31T17:49:59.000Z | 2018-12-31T17:49:59.000Z | functions.py | dwahme/physics_calc_enabler | f0fc4c9214cd024344c5f0d3684b29666339395e | [
"MIT"
] | null | null | null | import math
import statistics
def get_average(values):
total = sum(values)
amount = len(values)
return total / amount
def calc_uncertainty(values, version = "simple"):
if version == "stddev":
return statistics.stdev(values)
else:
max_val = max(values)
min_val = min(values... | 26.657534 | 92 | 0.63926 | 274 | 1,946 | 4.321168 | 0.262774 | 0.065034 | 0.017736 | 0.027872 | 0.077703 | 0.027027 | 0 | 0 | 0 | 0 | 0 | 0.011881 | 0.22148 | 1,946 | 72 | 93 | 27.027778 | 0.769637 | 0 | 0 | 0 | 0 | 0 | 0.040596 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.288462 | false | 0 | 0.038462 | 0.173077 | 0.615385 | 0.115385 | 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 |
90314fd51207b3cd897a6ec2f5f91b491118152d | 85 | py | Python | oocgcm/parameters/mathematicalparameters.py | suyashbire1/oocgcm | c9616872077494b14b41915d1b6202aeea545c82 | [
"Apache-2.0"
] | 38 | 2016-04-05T06:15:42.000Z | 2021-08-31T17:10:00.000Z | oocgcm/parameters/mathematicalparameters.py | suyashbire1/oocgcm | c9616872077494b14b41915d1b6202aeea545c82 | [
"Apache-2.0"
] | 42 | 2016-04-16T07:47:40.000Z | 2022-03-10T19:42:25.000Z | oocgcm/parameters/mathematicalparameters.py | suyashbire1/oocgcm | c9616872077494b14b41915d1b6202aeea545c82 | [
"Apache-2.0"
] | 12 | 2016-05-09T15:15:01.000Z | 2020-01-12T10:24:29.000Z | #!/usr/bin/env python
import numpy as np
# Maths parameters
deg2rad = np.pi / 180.
| 12.142857 | 22 | 0.694118 | 14 | 85 | 4.214286 | 0.928571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057971 | 0.188235 | 85 | 6 | 23 | 14.166667 | 0.797101 | 0.435294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 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 |
904420896e44d8894ebbf4f3562a4fede9217596 | 212 | py | Python | backend/run.py | cybergrind/poulpe | f5c93be027c7cf4f84c75308bbc33c8355c46ab8 | [
"MIT"
] | null | null | null | backend/run.py | cybergrind/poulpe | f5c93be027c7cf4f84c75308bbc33c8355c46ab8 | [
"MIT"
] | null | null | null | backend/run.py | cybergrind/poulpe | f5c93be027c7cf4f84c75308bbc33c8355c46ab8 | [
"MIT"
] | null | null | null | import asyncio
import sys
from tipsi_tools.python import rel_path
sys.path.append(rel_path('.'))
from poulpe.server import run_server # noqa
def main():
run_server()
if __name__ == '__main__':
main()
| 16.307692 | 44 | 0.721698 | 31 | 212 | 4.516129 | 0.580645 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165094 | 212 | 12 | 45 | 17.666667 | 0.79096 | 0.018868 | 0 | 0 | 0 | 0 | 0.043689 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | true | 0 | 0.444444 | 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 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
5f44624831100ffc8b0ea023a3f99bea808633fc | 268 | py | Python | hw1/policy/imitation.py | wryoung412/CS294_Deep_RL | a7d1ea9aa2a28cba40e6e6f38665e5156e6d837f | [
"MIT"
] | 1 | 2021-11-07T02:27:05.000Z | 2021-11-07T02:27:05.000Z | hw1/policy/imitation.py | wryoung412/CS294_Deep_RL | a7d1ea9aa2a28cba40e6e6f38665e5156e6d837f | [
"MIT"
] | null | null | null | hw1/policy/imitation.py | wryoung412/CS294_Deep_RL | a7d1ea9aa2a28cba40e6e6f38665e5156e6d837f | [
"MIT"
] | null | null | null | import random
import datetime
import numpy as np
import inspect, os
import tensorflow as tf
from .base import BasePolicy
def get_policy(env_name):
return ImitationPolicy(env_name)
class ImitationPolicy(BasePolicy):
def type(self):
return 'imitation'
| 19.142857 | 36 | 0.768657 | 36 | 268 | 5.638889 | 0.666667 | 0.128079 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175373 | 268 | 13 | 37 | 20.615385 | 0.918552 | 0 | 0 | 0 | 0 | 0 | 0.033582 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.545455 | 0.181818 | 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 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
5fa4bc6a69864ea0d44dd898255206f77526fe91 | 530 | py | Python | pyxo/__init__.py | leocamelo/pixo | 334411803641d28b4bfadc7d6ab3dace5cb22ffd | [
"MIT"
] | null | null | null | pyxo/__init__.py | leocamelo/pixo | 334411803641d28b4bfadc7d6ab3dace5cb22ffd | [
"MIT"
] | 3 | 2020-09-18T17:15:58.000Z | 2021-07-28T18:32:43.000Z | pyxo/__init__.py | leocamelo/pyxo | 334411803641d28b4bfadc7d6ab3dace5cb22ffd | [
"MIT"
] | null | null | null | import json
from pathlib import Path
from .pix import Pix
__version__ = '0.1.0'
def _library():
return Path('library')
def _image(key):
metafile = _library() / key / 'meta.json'
with metafile.open() as f:
return Pix(key, json.load(f))
def get_images():
return [{'key': i.name} for i in ... | 16.060606 | 72 | 0.64717 | 78 | 530 | 4.192308 | 0.448718 | 0.122324 | 0.085627 | 0.116208 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007126 | 0.20566 | 530 | 32 | 73 | 16.5625 | 0.769596 | 0 | 0 | 0 | 0 | 0 | 0.045283 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.294118 | false | 0 | 0.176471 | 0.176471 | 0.764706 | 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 |
5fa8459a0480951f0dceec3139a8372e8e3e124c | 3,426 | py | Python | tests/api-client/test_media_perms.py | bcurnow/rfid-security-svc | d3806cb74d3d0cc2623ea425230dc8781ba4d8b4 | [
"Apache-2.0"
] | null | null | null | tests/api-client/test_media_perms.py | bcurnow/rfid-security-svc | d3806cb74d3d0cc2623ea425230dc8781ba4d8b4 | [
"Apache-2.0"
] | null | null | null | tests/api-client/test_media_perms.py | bcurnow/rfid-security-svc | d3806cb74d3d0cc2623ea425230dc8781ba4d8b4 | [
"Apache-2.0"
] | null | null | null | from unittest.mock import patch
from rfidsecuritysvc.api import RECORD_COUNT_HEADER
from rfidsecuritysvc.model.media_perm import MediaPerm as Model
api = 'media-perms'
def test_get(rh, media_perms):
rh.assert_response(rh.open('get', f'{api}/{media_perms[0].id}'), 200, media_perms[0])
def test_get_notfound(rh,... | 40.305882 | 118 | 0.702277 | 546 | 3,426 | 4.173993 | 0.122711 | 0.087758 | 0.175516 | 0.197455 | 0.71391 | 0.677051 | 0.644581 | 0.644142 | 0.582712 | 0.566477 | 0 | 0.030023 | 0.115295 | 3,426 | 84 | 119 | 40.785714 | 0.721874 | 0.016929 | 0 | 0.314815 | 0 | 0 | 0.140774 | 0.04881 | 0 | 0 | 0 | 0 | 0.518519 | 1 | 0.240741 | false | 0 | 0.055556 | 0 | 0.296296 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5fbc985182cb6475cfa3730fbac9490d0e922a82 | 128 | py | Python | personalib/__main__.py | FogaProd/PersonaLib | d473160001ba2f35ca99aa44cecf222002494ff4 | [
"MIT"
] | null | null | null | personalib/__main__.py | FogaProd/PersonaLib | d473160001ba2f35ca99aa44cecf222002494ff4 | [
"MIT"
] | null | null | null | personalib/__main__.py | FogaProd/PersonaLib | d473160001ba2f35ca99aa44cecf222002494ff4 | [
"MIT"
] | null | null | null | import os
from .bot import PersonaLib
if __name__ == "__main__":
bot = PersonaLib()
bot.run(os.environ["BOT_TOKEN"])
| 14.222222 | 36 | 0.671875 | 17 | 128 | 4.529412 | 0.647059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.195313 | 128 | 8 | 37 | 16 | 0.747573 | 0 | 0 | 0 | 0 | 0 | 0.132813 | 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 |
3968e281088fd5c0eac67f84f80dbd54880c9868 | 211 | py | Python | backend/treeckle/users/urls.py | CAPTxTreeckle/Treeckle-2.0 | 3a7f4c1a265b836a870ff34e6faff8b292002a52 | [
"MIT"
] | null | null | null | backend/treeckle/users/urls.py | CAPTxTreeckle/Treeckle-2.0 | 3a7f4c1a265b836a870ff34e6faff8b292002a52 | [
"MIT"
] | 5 | 2020-11-19T09:12:48.000Z | 2020-12-23T21:46:19.000Z | backend/treeckle/users/urls.py | CAPTxTreeckle/Treeckle-2.0 | 3a7f4c1a265b836a870ff34e6faff8b292002a52 | [
"MIT"
] | 4 | 2020-05-13T12:47:15.000Z | 2021-07-13T17:01:38.000Z | from django.urls import path
from .views import UserInvitesView, UsersView
urlpatterns = [
path("", UsersView.as_view(), name="users"),
path("invite", UserInvitesView.as_view(), name="user_invites"),
] | 26.375 | 67 | 0.71564 | 25 | 211 | 5.92 | 0.64 | 0.081081 | 0.135135 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.132701 | 211 | 8 | 68 | 26.375 | 0.808743 | 0 | 0 | 0 | 0 | 0 | 0.108491 | 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 |
39798672ee5fb24cdc9f67f14581622ec4ef65ca | 126 | py | Python | mainapp/apps.py | muthukaruppanp/rudimentary-recruitment | cc56edfae1d5c529c8d9ee0bbe05a358edb21d3b | [
"MIT"
] | null | null | null | mainapp/apps.py | muthukaruppanp/rudimentary-recruitment | cc56edfae1d5c529c8d9ee0bbe05a358edb21d3b | [
"MIT"
] | null | null | null | mainapp/apps.py | muthukaruppanp/rudimentary-recruitment | cc56edfae1d5c529c8d9ee0bbe05a358edb21d3b | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class MainappConfig(AppConfig):
name = 'mainapp'
verbose_name = 'Job Application'
| 18 | 36 | 0.738095 | 14 | 126 | 6.571429 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.18254 | 126 | 6 | 37 | 21 | 0.893204 | 0 | 0 | 0 | 0 | 0 | 0.174603 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
3981769b652ee548c6909ddd722a3284813f4a78 | 688 | py | Python | erddapClient/url_operations.py | dspelaez/erddap-python | eac6052ea7168f40c84ce87b1abf955236ce20f7 | [
"MIT"
] | 6 | 2021-04-07T00:09:52.000Z | 2022-03-02T22:27:34.000Z | erddapClient/url_operations.py | dspelaez/erddap-python | eac6052ea7168f40c84ce87b1abf955236ce20f7 | [
"MIT"
] | 1 | 2022-01-06T18:14:39.000Z | 2022-01-10T18:51:43.000Z | erddapClient/url_operations.py | dspelaez/erddap-python | eac6052ea7168f40c84ce87b1abf955236ce20f7 | [
"MIT"
] | 2 | 2021-05-24T14:23:02.000Z | 2021-09-01T15:38:57.000Z | import os
from urllib.parse import quote, quote_plus, urlparse, ParseResult
def parseQueryItems(items, useSafeURL=True, safe='', item_separator='&'):
if useSafeURL:
return quote(item_separator.join(items), safe=safe)
else:
return item_separator.join(items)
def url_join(*args):
re... | 29.913043 | 78 | 0.651163 | 84 | 688 | 5.27381 | 0.47619 | 0.088036 | 0.076749 | 0.099323 | 0.072235 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006957 | 0.164244 | 688 | 22 | 79 | 31.272727 | 0.763478 | 0 | 0 | 0 | 0 | 0 | 0.067055 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0.133333 | 0.133333 | 0.733333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
399baeb734c297c3b7918b5428d775eeac6f4b70 | 80 | py | Python | client/verta/verta/operations/monitoring/alert/__init__.py | houqp/modeldb | 32837d9c1446f42882ae2a7729df1a08e33ac155 | [
"Apache-2.0"
] | null | null | null | client/verta/verta/operations/monitoring/alert/__init__.py | houqp/modeldb | 32837d9c1446f42882ae2a7729df1a08e33ac155 | [
"Apache-2.0"
] | null | null | null | client/verta/verta/operations/monitoring/alert/__init__.py | houqp/modeldb | 32837d9c1446f42882ae2a7729df1a08e33ac155 | [
"Apache-2.0"
] | 1 | 2021-05-04T13:52:09.000Z | 2021-05-04T13:52:09.000Z | from ._alerter import (
_Alerter,
FixedAlerter,
ReferenceAlerter,
)
| 13.333333 | 23 | 0.675 | 6 | 80 | 8.666667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 80 | 5 | 24 | 16 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
39a47662ce34ba4de64333748ccd159c7100bc34 | 7,423 | py | Python | ECore_Copier_MM/transformation-Large/HEClass.py | levilucio/SyVOLT | 7526ec794d21565e3efcc925a7b08ae8db27d46a | [
"MIT"
] | 3 | 2017-06-02T19:26:27.000Z | 2021-06-14T04:25:45.000Z | ECore_Copier_MM/transformation-Large/HEClass.py | levilucio/SyVOLT | 7526ec794d21565e3efcc925a7b08ae8db27d46a | [
"MIT"
] | 8 | 2016-08-24T07:04:07.000Z | 2017-05-26T16:22:47.000Z | ECore_Copier_MM/transformation-Large/HEClass.py | levilucio/SyVOLT | 7526ec794d21565e3efcc925a7b08ae8db27d46a | [
"MIT"
] | 1 | 2019-10-31T06:00:23.000Z | 2019-10-31T06:00:23.000Z |
from core.himesis import Himesis
class HEClass(Himesis):
def __init__(self):
"""
Creates the himesis graph representing the AToM3 model HEClass.
"""
# Flag this instance as compiled now
self.is_compiled = True
super(HEClass, self).__init__(name='HEClass', ... | 47.583333 | 516 | 0.513943 | 838 | 7,423 | 4.281623 | 0.192124 | 0.220736 | 0.046823 | 0.053512 | 0.064381 | 0 | 0 | 0 | 0 | 0 | 0 | 0.236777 | 0.235888 | 7,423 | 155 | 517 | 47.890323 | 0.395804 | 0.021824 | 0 | 0 | 0 | 0 | 0.19693 | 0 | 0.007092 | 0 | 0 | 0 | 0 | 1 | 0.007092 | false | 0 | 0.007092 | 0 | 0.021277 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
39b543b413d98228496acd46887ee396691c15c1 | 86,082 | py | Python | problem_examples/chess_annealing/python_ziper.py | donRumata03/PowerfulGA | e4e2370287a7b654caf92adac8a64a39e23468c9 | [
"MIT"
] | 3 | 2020-04-11T10:48:01.000Z | 2021-02-09T11:43:12.000Z | problem_examples/chess_annealing/python_ziper.py | donRumata03/PowerfulGA | e4e2370287a7b654caf92adac8a64a39e23468c9 | [
"MIT"
] | 6 | 2020-12-03T15:37:45.000Z | 2020-12-09T11:02:37.000Z | problem_examples/chess_annealing/python_ziper.py | donRumata03/PowerfulGA | e4e2370287a7b654caf92adac8a64a39e23468c9 | [
"MIT"
] | 1 | 2021-04-25T21:50:09.000Z | 2021-04-25T21:50:09.000Z | data = {
4 : [2, 0, 3, 1],
5 : [3, 0, 2, 4, 1],
6 : [3, 0, 4, 1, 5, 2],
7 : [4, 0, 5, 3, 1, 6, 2],
8 : [2, 4, 1, 7, 0, 6, 3, 5],
9 : [3, 1, 4, 7, 0, 2, 5, 8, 6],
10 : [8, 4, 0, 7, 3, 1, 6, 9, 5, 2],
11 : [5, 7, 0, 3, 8, 2, 9, 6, 10, 1, 4],
12 : [7, 10, 0, 2, 8, 5, 3, 1, 9, 11, 6, 4],... | 382.586667 | 901 | 0.510931 | 20,344 | 86,082 | 2.161571 | 0.011158 | 0.0005 | 0.000273 | 0.000182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.676316 | 0.247938 | 86,082 | 224 | 902 | 384.294643 | 0.00295 | 0.000825 | 0 | 0 | 0 | 0 | 0.000221 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.004808 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
39cd7761c53d35de2f08e137e2ae1c6a5176fe49 | 244 | py | Python | MyPortfolio/urls.py | samwendo/Portfolio | cf3580f5bbefc1f8d1814b602267f0051706ebf4 | [
"MIT"
] | 1 | 2020-01-05T18:35:57.000Z | 2020-01-05T18:35:57.000Z | MyPortfolio/urls.py | IreneMercy/MyWork | 629fb7ec085cddce649548c5b9c1a75a74e55ffc | [
"MIT"
] | 10 | 2020-06-06T00:35:37.000Z | 2022-02-10T09:37:19.000Z | MyPortfolio/urls.py | IreneMercy/MyWork | 629fb7ec085cddce649548c5b9c1a75a74e55ffc | [
"MIT"
] | null | null | null | from django.urls import path, re_path
from . import views
from django.contrib.auth import views as auth_views
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
path('',views.home, name="home"),
]
| 22.181818 | 51 | 0.762295 | 37 | 244 | 4.972973 | 0.432432 | 0.217391 | 0.163043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.143443 | 244 | 10 | 52 | 24.4 | 0.880383 | 0 | 0 | 0 | 0 | 0 | 0.016393 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.625 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
39d49a8558b4aab78ed55b7598852389e0650c4c | 768 | py | Python | tests.py | MichaelisTrofficus/hampel_filter | f8970569c847aeac6f24124116bfee9af09d5d3f | [
"MIT"
] | 10 | 2020-09-18T11:21:46.000Z | 2022-03-16T20:55:22.000Z | tests.py | MichaelisTrofficus/hampel_filter | f8970569c847aeac6f24124116bfee9af09d5d3f | [
"MIT"
] | 2 | 2021-02-22T16:07:49.000Z | 2021-06-08T15:04:55.000Z | tests.py | MichaelisTrofficus/hampel_filter | f8970569c847aeac6f24124116bfee9af09d5d3f | [
"MIT"
] | 3 | 2020-12-15T04:55:34.000Z | 2022-02-28T08:08:24.000Z | import pytest
import pandas as pd
from src.hampel import hampel
@pytest.fixture
def ts_data():
return pd.Series([1, 2, 1, 1, 40, 2, 1, 1, 30, 40, 1, 1, 2, 1])
def test_str_ts():
with pytest.raises(ValueError):
hampel("a", -1, 3)
def test_negative_window_size(ts_data):
with pytest.raises(ValueE... | 19.692308 | 67 | 0.66276 | 123 | 768 | 3.926829 | 0.260163 | 0.136646 | 0.198758 | 0.322981 | 0.587992 | 0.521739 | 0.521739 | 0.521739 | 0.521739 | 0.430642 | 0 | 0.044408 | 0.208333 | 768 | 38 | 68 | 20.210526 | 0.75 | 0 | 0 | 0.25 | 0 | 0 | 0.003906 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.291667 | false | 0 | 0.125 | 0.041667 | 0.458333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
39d9a0b3397e47691d341692af857702c8290df3 | 3,367 | py | Python | services/turn_commands.py | dev-11/mars-rover-challenge | 67569fcc4b93e5ec4cbe466d7a2fd5b3e9a316b0 | [
"MIT"
] | null | null | null | services/turn_commands.py | dev-11/mars-rover-challenge | 67569fcc4b93e5ec4cbe466d7a2fd5b3e9a316b0 | [
"MIT"
] | null | null | null | services/turn_commands.py | dev-11/mars-rover-challenge | 67569fcc4b93e5ec4cbe466d7a2fd5b3e9a316b0 | [
"MIT"
] | null | null | null | from abc import abstractmethod
from services.command import Command
from data_objects import Rover
import copy
class TurnCommand(Command):
@abstractmethod
def get_cardinal_direction(self):
pass
@abstractmethod
def get_turning_direction(self):
pass
class TurnLeftCommand(TurnCommand):... | 24.223022 | 90 | 0.67924 | 334 | 3,367 | 6.622754 | 0.155689 | 0.130199 | 0.122966 | 0.09358 | 0.606239 | 0.582278 | 0.582278 | 0.487342 | 0.487342 | 0.487342 | 0 | 0.000393 | 0.24354 | 3,367 | 138 | 91 | 24.398551 | 0.86808 | 0.008316 | 0 | 0.615385 | 0 | 0 | 0.005396 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.252747 | false | 0.021978 | 0.043956 | 0.131868 | 0.648352 | 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 |
39ef2f5ab25dc3aa6af35fd9e28fb38c21fbadef | 308 | py | Python | src/medium_to_various/docjson_utils.py | nuuuwan/medium_to_various | acb3006efaf581e87d651f232434ebec6ee83062 | [
"MIT"
] | null | null | null | src/medium_to_various/docjson_utils.py | nuuuwan/medium_to_various | acb3006efaf581e87d651f232434ebec6ee83062 | [
"MIT"
] | null | null | null | src/medium_to_various/docjson_utils.py | nuuuwan/medium_to_various | acb3006efaf581e87d651f232434ebec6ee83062 | [
"MIT"
] | null | null | null | from utils import jsonx
def docjson_merge(docjson_files, merged_docjson_file):
all_docjson = []
for docjson_file in docjson_files:
docjson = jsonx.read(docjson_file)
all_docjson += docjson
jsonx.write(merged_docjson_file, all_docjson)
print(f'Wrote {merged_docjson_file}')
| 25.666667 | 54 | 0.730519 | 41 | 308 | 5.146341 | 0.439024 | 0.260664 | 0.241706 | 0.298578 | 0.255924 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191558 | 308 | 11 | 55 | 28 | 0.84739 | 0 | 0 | 0 | 0 | 0 | 0.087662 | 0.068182 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.25 | 0.125 | 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 |
39f2b73d146555b96002c0664cd8ba152cf72208 | 442 | py | Python | model/loss.py | jinchenglee/pytorch-visual-perception | b23484fd4f1bc9bb91297c256e3159d38a5fe2ea | [
"MIT"
] | null | null | null | model/loss.py | jinchenglee/pytorch-visual-perception | b23484fd4f1bc9bb91297c256e3159d38a5fe2ea | [
"MIT"
] | null | null | null | model/loss.py | jinchenglee/pytorch-visual-perception | b23484fd4f1bc9bb91297c256e3159d38a5fe2ea | [
"MIT"
] | null | null | null | import torch
import torch.nn.functional as F
def nll_loss(output, target):
# Convert to datatype that avoid runtime error:
# Expected object of type torch.cuda.LongTensor but found type torch.cuda.FloatTensor for argument #2 'target'
target_as_LongTensor = target.type(torch.cuda.LongTensor)
return F... | 31.571429 | 116 | 0.766968 | 65 | 442 | 5.076923 | 0.538462 | 0.145455 | 0.145455 | 0.115152 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002681 | 0.156109 | 442 | 13 | 117 | 34 | 0.882038 | 0.350679 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.285714 | 0.142857 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 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 |
f2ce53a4a9790995b8079327d1ab1d69526c77c1 | 44 | py | Python | generators/__init__.py | kenetec/dlish | b37e87f431edf98dbd3f2500dc843a22bc9d71f1 | [
"MIT"
] | 2 | 2019-11-18T04:47:29.000Z | 2020-11-06T04:11:26.000Z | generators/__init__.py | kenetec/dlish | b37e87f431edf98dbd3f2500dc843a22bc9d71f1 | [
"MIT"
] | null | null | null | generators/__init__.py | kenetec/dlish | b37e87f431edf98dbd3f2500dc843a22bc9d71f1 | [
"MIT"
] | 1 | 2020-11-06T04:11:32.000Z | 2020-11-06T04:11:32.000Z | __all__ = ['unitg', 'strg', 'listg', 'intg'] | 44 | 44 | 0.568182 | 5 | 44 | 4.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113636 | 44 | 1 | 44 | 44 | 0.538462 | 0 | 0 | 0 | 0 | 0 | 0.4 | 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 |
f2d07c3609fcf236a1cb897c61c85d32f7554c61 | 4,436 | py | Python | curtir.py | mestrecalendo/Instebot | 50bf902691be47fa6a3c3adc5fcd51af58df30cd | [
"MIT"
] | 1 | 2021-05-15T14:31:15.000Z | 2021-05-15T14:31:15.000Z | curtir.py | mestrecalendo/Instebot | 50bf902691be47fa6a3c3adc5fcd51af58df30cd | [
"MIT"
] | null | null | null | curtir.py | mestrecalendo/Instebot | 50bf902691be47fa6a3c3adc5fcd51af58df30cd | [
"MIT"
] | 1 | 2021-05-04T09:31:17.000Z | 2021-05-04T09:31:17.000Z | # Generated by Selenium IDE
import pytest
import time
from time import sleep
import json
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.support import expected_conditions
from selenium.webdriver.support.... | 43.490196 | 159 | 0.717087 | 645 | 4,436 | 4.80155 | 0.272868 | 0.129157 | 0.108492 | 0.162738 | 0.524701 | 0.469164 | 0.469164 | 0.365192 | 0.262512 | 0.187601 | 0 | 0.021789 | 0.120604 | 4,436 | 101 | 160 | 43.920792 | 0.77211 | 0.047115 | 0 | 0.162791 | 1 | 0.046512 | 0.216011 | 0.079583 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046512 | false | 0.069767 | 0.127907 | 0 | 0.197674 | 0.023256 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
8411d7a4f3d1235eea9b00611e4db9e01c554c4d | 230 | py | Python | aschedule/__init__.py | eightnoteight/aschedule | f2e201a425f8b214bd76fc4eb715f1c4632d37e4 | [
"MIT"
] | 25 | 2016-09-06T22:51:23.000Z | 2017-11-26T08:52:52.000Z | aschedule/__init__.py | eightnoteight/aschedule | f2e201a425f8b214bd76fc4eb715f1c4632d37e4 | [
"MIT"
] | null | null | null | aschedule/__init__.py | eightnoteight/aschedule | f2e201a425f8b214bd76fc4eb715f1c4632d37e4 | [
"MIT"
] | 5 | 2016-09-10T15:11:50.000Z | 2021-10-30T17:53:48.000Z | # -*- coding: utf-8 -*-
from .api import every, once_at, cancel, \
JobSchedule, ScheduleManager, AScheduleException
__all__ = ['every', 'once_at', 'cancel',
'ScheduleManager', 'JobSchedule', 'AScheduleException']
| 28.75 | 66 | 0.669565 | 21 | 230 | 7.047619 | 0.666667 | 0.121622 | 0.148649 | 0.22973 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005263 | 0.173913 | 230 | 7 | 67 | 32.857143 | 0.773684 | 0.091304 | 0 | 0 | 0 | 0 | 0.299517 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
84178a0ece7f70b8a176b3ad1fcbafd91f457b19 | 422 | py | Python | kubails/conftest.py | DevinSit/kubails | b3b2f9487d815868f0fbe9fae649789a40b50ad8 | [
"MIT"
] | 2 | 2019-05-28T00:26:52.000Z | 2019-08-02T23:02:19.000Z | kubails/conftest.py | DevinSit/kubails | b3b2f9487d815868f0fbe9fae649789a40b50ad8 | [
"MIT"
] | 51 | 2019-12-23T04:34:40.000Z | 2022-02-12T02:28:44.000Z | kubails/conftest.py | DevinSit/kubails | b3b2f9487d815868f0fbe9fae649789a40b50ad8 | [
"MIT"
] | 1 | 2019-09-11T20:12:18.000Z | 2019-09-11T20:12:18.000Z | """
The first-run configuration file for PyTest. PyTest runs the code in this file before any tests.
So far, this is just used to set a flag so that code can check whether or not it's running in a test
(used to disable the file logger when testing).
For more information about conftest.py, see https://docs.pytest.org/en... | 32.461538 | 100 | 0.755924 | 77 | 422 | 4.090909 | 0.779221 | 0.038095 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008523 | 0.165877 | 422 | 12 | 101 | 35.166667 | 0.886364 | 0.796209 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | 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 | 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 |
8418518d67edf447bd7d5341ac0226540ad97dfd | 355 | py | Python | thinker/core/questionscreator/creatormodquestion.py | julianandres-eb/guess-number | 8807674858d76b0ed28c2279eb387a1ea979ffe2 | [
"MIT"
] | null | null | null | thinker/core/questionscreator/creatormodquestion.py | julianandres-eb/guess-number | 8807674858d76b0ed28c2279eb387a1ea979ffe2 | [
"MIT"
] | null | null | null | thinker/core/questionscreator/creatormodquestion.py | julianandres-eb/guess-number | 8807674858d76b0ed28c2279eb387a1ea979ffe2 | [
"MIT"
] | 1 | 2019-11-22T19:11:43.000Z | 2019-11-22T19:11:43.000Z | from thinker.model.question.questionmod import QuestionMod
from .questioncreator import QuestionCreator
class CreatorModQuestion(QuestionCreator):
# Override the factory method to return an instance of a
# QuestionMod.
def _createQuestion(self, values):
return QuestionMod(values['value'], [], va... | 29.583333 | 84 | 0.752113 | 37 | 355 | 7.189189 | 0.702703 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15493 | 355 | 11 | 85 | 32.272727 | 0.886667 | 0.188732 | 0 | 0 | 0 | 0 | 0.063158 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0.2 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
8436d482e0c537f2d87398e23e165433053c2929 | 1,331 | py | Python | create_tournament_directory.py | greent12/major_pool | c529d6fd35f5533ebcb96d3bf73a573e2578e960 | [
"MIT"
] | null | null | null | create_tournament_directory.py | greent12/major_pool | c529d6fd35f5533ebcb96d3bf73a573e2578e960 | [
"MIT"
] | null | null | null | create_tournament_directory.py | greent12/major_pool | c529d6fd35f5533ebcb96d3bf73a573e2578e960 | [
"MIT"
] | null | null | null | import os
import sys
def create_dir(tournament_name,output_dir):
#Replace spaces with underscores for file naming
tournament_name=tournament_name.replace(" ","_")
#Replace any & with nothing
tournament_name=tournament_name.replace("&","")
#See if output_dir directory exists, if not, exit
if ... | 36.972222 | 113 | 0.722765 | 179 | 1,331 | 5.184358 | 0.296089 | 0.241379 | 0.18319 | 0.22306 | 0.459052 | 0.363147 | 0.210129 | 0.18319 | 0.18319 | 0.099138 | 0 | 0 | 0.152517 | 1,331 | 35 | 114 | 38.028571 | 0.822695 | 0.231405 | 0 | 0 | 0 | 0 | 0.18146 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.105263 | 0 | 0.210526 | 0.105263 | 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 |
845cda7de4ff11c3557bc7b0dfedd1f233ba8091 | 359 | py | Python | unique_chars_problem/test_unique_chars.py | MichaelLenghel/Python-Algorithm-Problems | 604be4cb20434108284b00303d2ed3c1cdf1a871 | [
"MIT"
] | null | null | null | unique_chars_problem/test_unique_chars.py | MichaelLenghel/Python-Algorithm-Problems | 604be4cb20434108284b00303d2ed3c1cdf1a871 | [
"MIT"
] | null | null | null | unique_chars_problem/test_unique_chars.py | MichaelLenghel/Python-Algorithm-Problems | 604be4cb20434108284b00303d2ed3c1cdf1a871 | [
"MIT"
] | null | null | null | import unittest
import unique_chars as uc
class test_str_compression(unittest.TestCase):
def test_sentence_reversal(self):
self.assertEqual(uc.uni_chars(''), True)
self.assertEqual(uc.uni_chars('goo'), False)
self.assertEqual(uc.uni_chars('abcdefg'), True)
print("ALL TEST CASES PASSED")
if __name... | 25.642857 | 50 | 0.724234 | 48 | 359 | 5.083333 | 0.583333 | 0.184426 | 0.209016 | 0.245902 | 0.307377 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147632 | 359 | 13 | 51 | 27.615385 | 0.797386 | 0 | 0 | 0 | 0 | 0 | 0.113043 | 0 | 0 | 0 | 0 | 0 | 0.3 | 1 | 0.1 | false | 0.1 | 0.2 | 0 | 0.4 | 0.1 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
ffc19f97add2455e05c53f32f7216ba8dd96434e | 411 | py | Python | users/forms.py | jobscry/vz-blog | de968541a0412d5ce8f09c1ba638261a9f9151f1 | [
"MIT"
] | 3 | 2016-01-29T09:31:15.000Z | 2016-05-08T19:33:23.000Z | users/forms.py | jobscry/vz-blog | de968541a0412d5ce8f09c1ba638261a9f9151f1 | [
"MIT"
] | null | null | null | users/forms.py | jobscry/vz-blog | de968541a0412d5ce8f09c1ba638261a9f9151f1 | [
"MIT"
] | null | null | null | # -*- mode: python; coding: utf-8; -*-
from django import forms
from django.contrib.auth.models import User
from django.forms import ModelForm
from models import Profile
class UserForm(ModelForm):
class Meta:
model = User
fields = [ 'first_name', 'last_name', 'email']
class LoginForm(forms.Form):
username = ... | 27.4 | 58 | 0.742092 | 54 | 411 | 5.592593 | 0.62963 | 0.099338 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011364 | 0.143552 | 411 | 14 | 59 | 29.357143 | 0.846591 | 0.087591 | 0 | 0 | 0 | 0 | 0.064343 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.090909 | 0.363636 | 0 | 0.818182 | 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 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
ffdd2ae09376fdceea4a7c7c3dc66401a31414f9 | 2,279 | py | Python | examples/logistic_example.py | Yangruipis/simple_ml | 09657f6b017b973a5201aa611774d6ac8f0fc0a2 | [
"MIT"
] | 25 | 2018-04-17T04:38:51.000Z | 2021-10-09T04:07:53.000Z | examples/logistic_example.py | Yangruipis/simple_ml | 09657f6b017b973a5201aa611774d6ac8f0fc0a2 | [
"MIT"
] | null | null | null | examples/logistic_example.py | Yangruipis/simple_ml | 09657f6b017b973a5201aa611774d6ac8f0fc0a2 | [
"MIT"
] | 5 | 2018-04-17T05:27:00.000Z | 2020-12-01T02:55:15.000Z | # -*- coding:utf-8 -*-
from simple_ml.logistic import *
from simple_ml.classify_data import *
from simple_ml.data_handle import train_test_split
def iris_example():
x, y = get_iris()
x = x[(y==0)|(y==1)]
y = y[(y==0)|(y==1)]
x_train, y_train, x_test, y_test = train_test_split(x, y, 0.3, 918)
log... | 26.5 | 71 | 0.678368 | 371 | 2,279 | 3.846361 | 0.118598 | 0.0911 | 0.084093 | 0.140154 | 0.801682 | 0.766643 | 0.693062 | 0.630694 | 0.605466 | 0.602663 | 0 | 0.01298 | 0.188679 | 2,279 | 85 | 72 | 26.811765 | 0.758789 | 0.025011 | 0 | 0.692308 | 0 | 0 | 0.003607 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046154 | false | 0 | 0.046154 | 0 | 0.092308 | 0.138462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ffeb62d8d34baec43c3c55c9ffe34779d40da1e1 | 575 | py | Python | bin/contentctl_project/contentctl_core/application/builder/basic_builder.py | arjunkhunti-crest/security_content | 41e354485e5917d3366ef735a9c5b25a20d3b8cc | [
"Apache-2.0"
] | null | null | null | bin/contentctl_project/contentctl_core/application/builder/basic_builder.py | arjunkhunti-crest/security_content | 41e354485e5917d3366ef735a9c5b25a20d3b8cc | [
"Apache-2.0"
] | null | null | null | bin/contentctl_project/contentctl_core/application/builder/basic_builder.py | arjunkhunti-crest/security_content | 41e354485e5917d3366ef735a9c5b25a20d3b8cc | [
"Apache-2.0"
] | null | null | null | import abc
from bin.contentctl_project.contentctl_core.domain.entities.security_content_object import SecurityContentObject
from bin.contentctl_project.contentctl_core.domain.entities.enums.enums import SecurityContentType
# https://refactoring.guru/design-patterns/builder
class BasicBuilder(abc.ABC):
@abc.abst... | 26.136364 | 112 | 0.751304 | 62 | 575 | 6.870968 | 0.548387 | 0.119718 | 0.140845 | 0.112676 | 0.375587 | 0.244131 | 0.244131 | 0.244131 | 0 | 0 | 0 | 0 | 0.165217 | 575 | 22 | 113 | 26.136364 | 0.8875 | 0.083478 | 0 | 0.461538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0.230769 | 0.230769 | 0 | 0.538462 | 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 |
0802c74f59358f2a9c6ac527c91777a51c3bbd18 | 83 | py | Python | NewtonSchool/contest/Newton_coding_challenge_June_2021/b.py | Akash671/Algorithms | f71be624bc49e686087c8dd22a09b9cf343b0634 | [
"MIT"
] | 1 | 2021-03-25T18:29:07.000Z | 2021-03-25T18:29:07.000Z | NewtonSchool/contest/Newton_coding_challenge_June_2021/b.py | Akash671/Algorithms | f71be624bc49e686087c8dd22a09b9cf343b0634 | [
"MIT"
] | null | null | null | NewtonSchool/contest/Newton_coding_challenge_June_2021/b.py | Akash671/Algorithms | f71be624bc49e686087c8dd22a09b9cf343b0634 | [
"MIT"
] | null | null | null | # Your code here
s=str(input())
n=len(s)
for i in range(n):
print(s[0],end="")
| 13.833333 | 22 | 0.578313 | 18 | 83 | 2.666667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014706 | 0.180723 | 83 | 5 | 23 | 16.6 | 0.691176 | 0.168675 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
080c8d15c20c003e6bb2c00a137f7b806c8405b7 | 54 | py | Python | 1016.py | Mateusfmelo/Uri-Python | ca61ea23d1dbf99db3776206da91af7b054beea2 | [
"MIT"
] | null | null | null | 1016.py | Mateusfmelo/Uri-Python | ca61ea23d1dbf99db3776206da91af7b054beea2 | [
"MIT"
] | null | null | null | 1016.py | Mateusfmelo/Uri-Python | ca61ea23d1dbf99db3776206da91af7b054beea2 | [
"MIT"
] | null | null | null | car = int(input())
print('{} minutos'.format(car * 2)) | 27 | 35 | 0.611111 | 8 | 54 | 4.125 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020833 | 0.111111 | 54 | 2 | 35 | 27 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
080d55a605dcc1a9361091d13fda9af59583d0cc | 3,490 | py | Python | S4/S4 Library/simulation/bucks/bucks_utils.py | NeonOcean/Environment | ca658cf66e8fd6866c22a4a0136d415705b36d26 | [
"CC-BY-4.0"
] | 1 | 2021-05-20T19:33:37.000Z | 2021-05-20T19:33:37.000Z | S4/S4 Library/simulation/bucks/bucks_utils.py | NeonOcean/Environment | ca658cf66e8fd6866c22a4a0136d415705b36d26 | [
"CC-BY-4.0"
] | null | null | null | S4/S4 Library/simulation/bucks/bucks_utils.py | NeonOcean/Environment | ca658cf66e8fd6866c22a4a0136d415705b36d26 | [
"CC-BY-4.0"
] | null | null | null | from bucks.bucks_enums import BucksType, BucksTrackerType
import services
from sims4.localization import TunableLocalizedStringFactory
from sims4.tuning.tunable import TunableMapping, TunableEnumEntry, TunableTuple, OptionalTunable, TunableEnumSet, TunableReference
from sims4.tuning.tunable_base import ExportModes, Enu... | 116.333333 | 1,547 | 0.716905 | 441 | 3,490 | 5.482993 | 0.276644 | 0.039702 | 0.016543 | 0.034739 | 0.320099 | 0.283706 | 0.243176 | 0.226634 | 0.226634 | 0.226634 | 0 | 0.004018 | 0.215473 | 3,490 | 29 | 1,548 | 120.344828 | 0.879109 | 0 | 0 | 0 | 0 | 0.148148 | 0.32235 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.222222 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
0811e33789ca4803f91b450edf3705c75e496328 | 603 | py | Python | examples/models.py | ResolveWang/minifw | 0de182c3e880a5e747c5ebe51a430db74f8ac68c | [
"MIT"
] | null | null | null | examples/models.py | ResolveWang/minifw | 0de182c3e880a5e747c5ebe51a430db74f8ac68c | [
"MIT"
] | null | null | null | examples/models.py | ResolveWang/minifw | 0de182c3e880a5e747c5ebe51a430db74f8ac68c | [
"MIT"
] | null | null | null | import time
import uuid
from minifw.db.orm import Model, StringField, BooleanField, FloatField, TextField
def next_id():
return '%015d%s000' % (int(time.time() * 1000), uuid.uuid4().hex)
class User(Model):
__table__ = 'users'
id = StringField(primary_key=True, default=next_id, column_type='varchar(50)'... | 27.409091 | 82 | 0.706468 | 76 | 603 | 5.434211 | 0.552632 | 0.121065 | 0.205811 | 0.184019 | 0.217918 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043053 | 0.15257 | 603 | 21 | 83 | 28.714286 | 0.765166 | 0 | 0 | 0 | 0 | 0 | 0.118136 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0.071429 | 0.214286 | 0.071429 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
0827238c9cf11d1569333ef977255d36866cab1c | 12,161 | py | Python | simpa/core/device_digital_twins/detection_geometries/ithera_invision_array.py | jgroehl/simpa | e56f0802e5a8555ee8bb139dd4f776025e7e9267 | [
"MIT"
] | 1 | 2021-11-12T22:45:06.000Z | 2021-11-12T22:45:06.000Z | simpa/core/device_digital_twins/detection_geometries/ithera_invision_array.py | jgroehl/simpa | e56f0802e5a8555ee8bb139dd4f776025e7e9267 | [
"MIT"
] | null | null | null | simpa/core/device_digital_twins/detection_geometries/ithera_invision_array.py | jgroehl/simpa | e56f0802e5a8555ee8bb139dd4f776025e7e9267 | [
"MIT"
] | null | null | null | # SPDX-FileCopyrightText: 2021 Computer Assisted Medical Interventions Group, DKFZ
# SPDX-FileCopyrightText: 2021 Janek Groehl
# SPDX-License-Identifier: MIT
import numpy as np
from simpa.core.device_digital_twins import DetectionGeometryBase
from simpa.utils import Tags
class iTheraInvision256TFDetectionGeometry(De... | 34.353107 | 118 | 0.629718 | 1,789 | 12,161 | 4.182784 | 0.229178 | 0.068689 | 0.00735 | 0.011359 | 0.751303 | 0.714018 | 0.681278 | 0.0294 | 0.0294 | 0.014967 | 0 | 0.474533 | 0.158869 | 12,161 | 353 | 119 | 34.450425 | 0.257014 | 0.060439 | 0 | 0.018927 | 0 | 0 | 0.02202 | 0.003184 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022082 | false | 0.009464 | 0.009464 | 0.003155 | 0.056782 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0849a2bc7b204349e97b147e449b40aa86505261 | 602 | py | Python | apps/dbc_component_gallery/__init__.py | AnnMarieW/HelloDash | 159abe2bf05f317398b20b6ab09d15b332442840 | [
"MIT"
] | 26 | 2021-02-23T21:49:53.000Z | 2022-02-26T16:57:35.000Z | apps/dbc_component_gallery/__init__.py | AnnMarieW/HelloDash | 159abe2bf05f317398b20b6ab09d15b332442840 | [
"MIT"
] | 7 | 2021-02-23T17:13:02.000Z | 2021-12-14T15:35:55.000Z | apps/dbc_component_gallery/__init__.py | AnnMarieW/HelloDash | 159abe2bf05f317398b20b6ab09d15b332442840 | [
"MIT"
] | 18 | 2021-04-21T05:18:47.000Z | 2021-11-26T20:30:19.000Z | from .about_theme_explorer import about_explorer
from .alert import alerts
from .badge import badges
from .button import buttons
from .card import cards
from .collapse import collapse
from .fade import fade
from .form import form
from .input import checklist_items, input_, input_group, radio_items
from .intro import in... | 28.666667 | 68 | 0.82392 | 91 | 602 | 5.351648 | 0.351648 | 0.036961 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137874 | 602 | 20 | 69 | 30.1 | 0.938343 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f22fdee33640cc5ab23cfbc6806b438ba422650e | 989 | py | Python | practice-exercises/section-9-conditionals/9.py | mugan86/bootcamp-basic-to-expert-from-scratch | 028aab243386e5a75d84aea319c480ec54913c53 | [
"MIT"
] | 31 | 2022-01-19T18:33:40.000Z | 2022-03-29T16:24:44.000Z | practice-exercises/section-9-conditionals/9.py | mugan86/bootcamp-basic-to-expert-from-scratch | 028aab243386e5a75d84aea319c480ec54913c53 | [
"MIT"
] | 1 | 2022-02-09T17:47:17.000Z | 2022-02-09T17:47:17.000Z | practice-exercises/section-9-conditionals/9.py | mugan86/bootcamp-basic-to-expert-from-scratch | 028aab243386e5a75d84aea319c480ec54913c53 | [
"MIT"
] | 4 | 2022-01-20T15:41:09.000Z | 2022-03-29T16:25:08.000Z | """
Vamos a crear un programa que simule un inicio de sesión solicitando el nombre de usuario y contraseña, y mostrar un mensaje en pantalla, inicio de sesión correcto / nombre de usuario y/o contraseña incorrecto. (por ejemplo el usuario vuestro nombre en minúsculas (bootcamp_python3) y el password 12345678
Datos de p... | 52.052632 | 305 | 0.709808 | 123 | 989 | 5.666667 | 0.455285 | 0.107604 | 0.064562 | 0.068867 | 0.249641 | 0.249641 | 0.249641 | 0 | 0 | 0 | 0 | 0.038596 | 0.13549 | 989 | 18 | 306 | 54.944444 | 0.776608 | 0.63094 | 0 | 0 | 0 | 0 | 0.609551 | 0.098315 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.285714 | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 3 |
f232342a753de3f71bc534988187990a4ce16c3e | 1,989 | py | Python | Jumga/api/models.py | OsasAzamegbe/Jumga-Backend | 9dbc287399e7620bcbb0dc0df2132927190f585b | [
"BSD-3-Clause"
] | 2 | 2021-01-24T16:17:57.000Z | 2021-02-05T08:07:06.000Z | Jumga/api/models.py | OsasAzamegbe/Jumga-Backend | 9dbc287399e7620bcbb0dc0df2132927190f585b | [
"BSD-3-Clause"
] | null | null | null | Jumga/api/models.py | OsasAzamegbe/Jumga-Backend | 9dbc287399e7620bcbb0dc0df2132927190f585b | [
"BSD-3-Clause"
] | null | null | null | from django.db import models
from django.contrib.auth.models import User
from django.utils import timezone
class Transaction(models.Model):
transaction_id = models.CharField(max_length=255, unique=True, primary_key=True)
flw_json = models.JSONField()
sender = models.ForeignKey(
User,
on_d... | 34.293103 | 84 | 0.707391 | 238 | 1,989 | 5.710084 | 0.331933 | 0.13245 | 0.183959 | 0.191317 | 0.511405 | 0.416483 | 0.385578 | 0.385578 | 0.385578 | 0.385578 | 0 | 0.009901 | 0.187531 | 1,989 | 57 | 85 | 34.894737 | 0.831064 | 0 | 0 | 0.319149 | 0 | 0 | 0.066868 | 0.021116 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085106 | false | 0 | 0.06383 | 0.06383 | 0.723404 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
f234210a19772d72d1eb90fe4ccc92f7a9b29fb3 | 281 | py | Python | project/nutrihacker/migrations/0023_merge_20201116_1312.py | COSC481W-2020Fall/cosc481w-581-2020-fall-nutrition-helper | a8ddb4b8c0703e376d5bb0f668ef003e2ed203e8 | [
"MIT"
] | 1 | 2021-03-18T00:12:09.000Z | 2021-03-18T00:12:09.000Z | project/nutrihacker/migrations/0023_merge_20201116_1312.py | COSC481W-2020Fall/cosc481w-581-2020-fall-nutrition-helper | a8ddb4b8c0703e376d5bb0f668ef003e2ed203e8 | [
"MIT"
] | 104 | 2020-09-09T18:52:33.000Z | 2020-12-16T15:17:56.000Z | project/nutrihacker/migrations/0023_merge_20201116_1312.py | COSC481W-2020Fall/cosc481w-581-2020-fall-nutrition-helper | a8ddb4b8c0703e376d5bb0f668ef003e2ed203e8 | [
"MIT"
] | 1 | 2021-03-17T21:35:51.000Z | 2021-03-17T21:35:51.000Z | # Generated by Django 3.1.1 on 2020-11-16 18:12
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('nutrihacker', '0022_auto_20201113_2022'),
('nutrihacker', '0022_auto_20201112_2152'),
]
operations = [
]
| 18.733333 | 51 | 0.658363 | 33 | 281 | 5.424242 | 0.787879 | 0.167598 | 0.212291 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.215596 | 0.224199 | 281 | 14 | 52 | 20.071429 | 0.605505 | 0.160142 | 0 | 0 | 1 | 0 | 0.290598 | 0.196581 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
f2466efa4e5e887f979a4e012bd884e6f39fce6b | 1,615 | py | Python | jacdac/e_co2/client.py | microsoft/jacdac-python | 712ad5559e29065f5eccb5dbfe029c039132df5a | [
"MIT"
] | 1 | 2022-02-15T21:30:36.000Z | 2022-02-15T21:30:36.000Z | jacdac/e_co2/client.py | microsoft/jacdac-python | 712ad5559e29065f5eccb5dbfe029c039132df5a | [
"MIT"
] | null | null | null | jacdac/e_co2/client.py | microsoft/jacdac-python | 712ad5559e29065f5eccb5dbfe029c039132df5a | [
"MIT"
] | 1 | 2022-02-08T19:32:45.000Z | 2022-02-08T19:32:45.000Z | # Autogenerated file. Do not edit.
from jacdac.bus import Bus, SensorClient
from .constants import *
from typing import Optional
class ECO2Client(SensorClient):
"""
Measures equivalent CO₂ levels.
Implements a client for the `Equivalent CO₂ <https://microsoft.github.io/jacdac-docs/services/eco2>`_ service... | 29.363636 | 114 | 0.643963 | 205 | 1,615 | 4.736585 | 0.346341 | 0.07827 | 0.064882 | 0.102987 | 0.397528 | 0.314109 | 0.314109 | 0.286303 | 0.222451 | 0.15036 | 0 | 0.02461 | 0.245201 | 1,615 | 54 | 115 | 29.907407 | 0.771944 | 0.237771 | 0 | 0.217391 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.26087 | false | 0 | 0.130435 | 0 | 0.652174 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
f246f41e68621fe24e291f5e496398518fa5dc19 | 578 | py | Python | lights/patterns/solid.py | Chris-Johnston/Internet-Xmas-Tree | 682a0455fa0dcad8637137d28281ea324663b542 | [
"MIT"
] | 7 | 2015-12-24T09:58:36.000Z | 2021-12-26T04:52:35.000Z | lights/patterns/solid.py | Chris-Johnston/Internet-Xmas-Tree | 682a0455fa0dcad8637137d28281ea324663b542 | [
"MIT"
] | null | null | null | lights/patterns/solid.py | Chris-Johnston/Internet-Xmas-Tree | 682a0455fa0dcad8637137d28281ea324663b542 | [
"MIT"
] | 1 | 2017-12-21T04:55:40.000Z | 2017-12-21T04:55:40.000Z | """
Solid Color Pattern
Only displays color 1
"""
from .pattern import Pattern
class Solid(Pattern):
"""
Solid pattern class
"""
def __init__(self):
pass
@classmethod
def get_id(self):
"""
Gets the ID of this pattern.
This is set by the front end, a... | 17 | 125 | 0.565744 | 72 | 578 | 4.472222 | 0.638889 | 0.074534 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007937 | 0.346021 | 578 | 33 | 126 | 17.515152 | 0.843915 | 0.399654 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0.1 | 0.1 | 0 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
f24c0067cc8c7c9189d25c9bcc97828182e944cb | 196 | py | Python | feature_selection_ga/__init__.py | jnmaomao/FeatureSelectionGA | e89da30b808d200eaa7eccf7726c86e8d795c84d | [
"MIT"
] | 232 | 2017-11-14T04:07:37.000Z | 2022-03-29T02:07:14.000Z | feature_selection_ga/__init__.py | jnmaomao/FeatureSelectionGA | e89da30b808d200eaa7eccf7726c86e8d795c84d | [
"MIT"
] | 30 | 2018-12-21T13:30:14.000Z | 2022-03-07T22:04:24.000Z | feature_selection_ga/__init__.py | jnmaomao/FeatureSelectionGA | e89da30b808d200eaa7eccf7726c86e8d795c84d | [
"MIT"
] | 86 | 2017-11-20T17:25:36.000Z | 2022-03-17T03:53:02.000Z | __author__ = """Kaushal Shetty"""
__email__ = "kaushalshetty@outlook.com"
__version__ = "0.1.3"
from .feature_selection_ga import FeatureSelectionGA
from .fitness_function import FitnessFunction
| 28 | 52 | 0.806122 | 22 | 196 | 6.5 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016949 | 0.096939 | 196 | 6 | 53 | 32.666667 | 0.79096 | 0 | 0 | 0 | 0 | 0 | 0.22449 | 0.127551 | 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 |
f276af0fa1beb175e2abd7b7facc180e6b01d025 | 2,755 | py | Python | test.py | Drincann/py-functional-chaining | 18c984535c467233cf2f585d809e527fb20a27ef | [
"WTFPL"
] | 2 | 2021-11-07T10:37:19.000Z | 2021-11-07T14:16:35.000Z | test.py | Drincann/py-functional-chaining | 18c984535c467233cf2f585d809e527fb20a27ef | [
"WTFPL"
] | 2 | 2021-11-07T11:01:05.000Z | 2021-11-07T11:01:16.000Z | test.py | Drincann/py-functional-chaining | 18c984535c467233cf2f585d809e527fb20a27ef | [
"WTFPL"
] | null | null | null | import unittest
from funcChaining.Type import List
class ListTest(unittest.TestCase):
def setUp(self) -> None:
self.lst = List(range(1, 5))
def test_pack(self):
try:
self.lst.__class__.pack([])
except NotImplementedError:
self.assertTrue(False, 'pack 没有被实现')
... | 27.009804 | 76 | 0.572051 | 408 | 2,755 | 3.762255 | 0.156863 | 0.159609 | 0.235179 | 0.272313 | 0.457329 | 0.230619 | 0.132899 | 0.095765 | 0.068404 | 0.068404 | 0 | 0.055281 | 0.26461 | 2,755 | 101 | 77 | 27.277228 | 0.702369 | 0 | 0 | 0.042254 | 0 | 0 | 0.006534 | 0 | 0 | 0 | 0 | 0 | 0.380282 | 1 | 0.366197 | false | 0 | 0.028169 | 0 | 0.408451 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f29b7d75413c3d999d8dfb1546b36d2f7c105f83 | 45 | py | Python | e_drone/tools/__init__.py | byrobot-python/e_drone | 52e5d437f31b4dd34fbbc8dccb7258b9a1ec1463 | [
"MIT"
] | null | null | null | e_drone/tools/__init__.py | byrobot-python/e_drone | 52e5d437f31b4dd34fbbc8dccb7258b9a1ec1463 | [
"MIT"
] | null | null | null | e_drone/tools/__init__.py | byrobot-python/e_drone | 52e5d437f31b4dd34fbbc8dccb7258b9a1ec1463 | [
"MIT"
] | null | null | null | __all__ = [
"parser",
"update",
] | 11.25 | 13 | 0.422222 | 3 | 45 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.377778 | 45 | 4 | 14 | 11.25 | 0.535714 | 0 | 0 | 0 | 0 | 0 | 0.26087 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f2b2b99516b3a5d8cd6f2cbb692d53f8ff35656b | 1,540 | py | Python | addons/web_readonly_bypass/__openerp__.py | csokt/odoo8 | 8994f53bf4ee4ad778d76015b8457d4a1224c7a4 | [
"MIT"
] | null | null | null | addons/web_readonly_bypass/__openerp__.py | csokt/odoo8 | 8994f53bf4ee4ad778d76015b8457d4a1224c7a4 | [
"MIT"
] | null | null | null | addons/web_readonly_bypass/__openerp__.py | csokt/odoo8 | 8994f53bf4ee4ad778d76015b8457d4a1224c7a4 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
##############################################################################
#
# This file is part of web_readonly_bypass,
# an Odoo module.
#
# Copyright (c) 2015 ACSONE SA/NV (<http://acsone.eu>)
#
# web_readonly_bypass is free software:
# you can redistribute it and/or m... | 36.666667 | 78 | 0.592208 | 188 | 1,540 | 4.797872 | 0.601064 | 0.077605 | 0.075388 | 0.063193 | 0.192905 | 0.192905 | 0.157428 | 0 | 0 | 0 | 0 | 0.008994 | 0.205844 | 1,540 | 41 | 79 | 37.560976 | 0.728536 | 0.546753 | 0 | 0.117647 | 0 | 0 | 0.61657 | 0.04817 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
f2b305515dc5c10f45f56b0a5696ee8447d3d605 | 183 | py | Python | tasks/forms/archive_task_form.py | salomvary/minitask | 93bef893b938e162daec5599e1d40ce823908190 | [
"MIT"
] | 3 | 2021-01-04T07:32:52.000Z | 2022-03-02T20:07:41.000Z | tasks/forms/archive_task_form.py | salomvary/minitask | 93bef893b938e162daec5599e1d40ce823908190 | [
"MIT"
] | null | null | null | tasks/forms/archive_task_form.py | salomvary/minitask | 93bef893b938e162daec5599e1d40ce823908190 | [
"MIT"
] | null | null | null | from django.forms import ModelForm
from tasks.models import Task
class ArchiveTaskForm(ModelForm):
class Meta:
model = Task
fields = ("version", "is_archived")
| 18.3 | 43 | 0.688525 | 21 | 183 | 5.952381 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.229508 | 183 | 9 | 44 | 20.333333 | 0.886525 | 0 | 0 | 0 | 0 | 0 | 0.098361 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
f2b78623def5414cf3451f25fe0cc58380a3fc33 | 342 | py | Python | home/admin.py | SamrathPalSingh/stockmarketwebsite | ea91647e25066c1a5c7f48015dccd19117428e9b | [
"MIT"
] | null | null | null | home/admin.py | SamrathPalSingh/stockmarketwebsite | ea91647e25066c1a5c7f48015dccd19117428e9b | [
"MIT"
] | 9 | 2020-05-05T18:43:29.000Z | 2021-09-22T18:58:59.000Z | home/admin.py | SamrathPalSingh/stockmarketwebsite | ea91647e25066c1a5c7f48015dccd19117428e9b | [
"MIT"
] | null | null | null | from django.contrib import admin
# Register your models here.
from .models import stock
#admin.site.register(Stock)
class stockAdmin(admin.ModelAdmin):
list_display = ('stockName', 'stockSymbol', 'candle_pattern', 'candle_trend', 's_and_r_trend', 'volume','volume_trend', 'macd_trend', 'rank')
admin.site.regist... | 26.307692 | 145 | 0.754386 | 44 | 342 | 5.681818 | 0.613636 | 0.072 | 0.136 | 0.176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108187 | 342 | 12 | 146 | 28.5 | 0.819672 | 0.152047 | 0 | 0 | 0 | 0 | 0.317073 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
f2b848c2866cd02e12467168c28e1685f8332a2e | 4,276 | py | Python | day_04.py | zsd58697/test2 | 5b05698481e1829b0b4b2e306bd94e247962a1ec | [
"Apache-2.0"
] | null | null | null | day_04.py | zsd58697/test2 | 5b05698481e1829b0b4b2e306bd94e247962a1ec | [
"Apache-2.0"
] | null | null | null | day_04.py | zsd58697/test2 | 5b05698481e1829b0b4b2e306bd94e247962a1ec | [
"Apache-2.0"
] | null | null | null | # _*_conding:utf8-
from __future__ import print_function
'''
1.
s=0
def getPentagonalNumber(n):
global s
for i in range(1,n):
i=int(i)
i=(3*i*i-i)/2
s=s+1
print(str(i)+' ',end=' ')
if s==10:
print()
s=0
getPentagonalNumber(100)
'''
'''
2.
a=0
A=ev... | 18.431034 | 75 | 0.502806 | 758 | 4,276 | 2.813984 | 0.166227 | 0.038444 | 0.014065 | 0.036099 | 0.43038 | 0.343647 | 0.264416 | 0.20722 | 0.159869 | 0.118612 | 0 | 0.06463 | 0.272685 | 4,276 | 231 | 76 | 18.510823 | 0.621222 | 0.003742 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 1 | 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 | 0 | 1 | 0 | 3 |
f2bc19fc756b7f89bd791b41b1462539c5f20fff | 63 | py | Python | jira_dump/__init__.py | LatvianPython/jira-dumper | ef74e6f0c7b41bb419382acecfe97f0eb45e5b19 | [
"MIT"
] | 3 | 2019-10-09T22:33:07.000Z | 2021-07-19T07:24:00.000Z | jira_dump/__init__.py | LatvianPython/jira-dumper | ef74e6f0c7b41bb419382acecfe97f0eb45e5b19 | [
"MIT"
] | null | null | null | jira_dump/__init__.py | LatvianPython/jira-dumper | ef74e6f0c7b41bb419382acecfe97f0eb45e5b19 | [
"MIT"
] | 1 | 2020-02-16T12:11:20.000Z | 2020-02-16T12:11:20.000Z | from .base import Dumper, IssueField
__version__ = "0.1.5.3"
| 12.6 | 36 | 0.714286 | 10 | 63 | 4.1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075472 | 0.15873 | 63 | 4 | 37 | 15.75 | 0.698113 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 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 |
4b39b0fb562782ea206a295bdfa294c1e8067cb9 | 55 | py | Python | example_snippets/multimenus_snippets/Snippets/SciPy/Physical and mathematical constants/CODATA physical constants/E/electron gyromag. ratio.py | kuanpern/jupyterlab-snippets-multimenus | 477f51cfdbad7409eab45abe53cf774cd70f380c | [
"BSD-3-Clause"
] | null | null | null | example_snippets/multimenus_snippets/Snippets/SciPy/Physical and mathematical constants/CODATA physical constants/E/electron gyromag. ratio.py | kuanpern/jupyterlab-snippets-multimenus | 477f51cfdbad7409eab45abe53cf774cd70f380c | [
"BSD-3-Clause"
] | null | null | null | example_snippets/multimenus_snippets/Snippets/SciPy/Physical and mathematical constants/CODATA physical constants/E/electron gyromag. ratio.py | kuanpern/jupyterlab-snippets-multimenus | 477f51cfdbad7409eab45abe53cf774cd70f380c | [
"BSD-3-Clause"
] | 1 | 2021-02-04T04:51:48.000Z | 2021-02-04T04:51:48.000Z | constants.physical_constants["electron gyromag. ratio"] | 55 | 55 | 0.854545 | 6 | 55 | 7.666667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036364 | 55 | 1 | 55 | 55 | 0.867925 | 0 | 0 | 0 | 0 | 0 | 0.410714 | 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 |
4b3a8a35fc92dd999e36c1c6286f908265c0ec6a | 1,308 | py | Python | perf_test.py | aleusai/ssl-certs-validator | 4e154150dc4cdba9775a4c693be06e67e7c897fb | [
"MIT"
] | 6 | 2021-03-30T12:24:59.000Z | 2021-12-20T06:56:07.000Z | perf_test.py | aleusai/ssl-certs-validator | 4e154150dc4cdba9775a4c693be06e67e7c897fb | [
"MIT"
] | null | null | null | perf_test.py | aleusai/ssl-certs-validator | 4e154150dc4cdba9775a4c693be06e67e7c897fb | [
"MIT"
] | null | null | null | import requests
from multiprocessing import Pool
import os
import random
USERNAME = os.getenv('USERNAME')
PASSWORD = os.getenv('PASSWORD')
payloads = [ { "url": "https://facebook.com", "toPrometheus": "False"},
{ "url": "https://facebook.com", "toPrometheus": "False"},
{ "url": "https://google.com", "toProm... | 33.538462 | 81 | 0.626147 | 157 | 1,308 | 5.127389 | 0.496815 | 0.089441 | 0.223602 | 0.228571 | 0.308075 | 0.099379 | 0.099379 | 0.099379 | 0 | 0 | 0 | 0.020202 | 0.167431 | 1,308 | 38 | 82 | 34.421053 | 0.719008 | 0 | 0 | 0 | 0 | 0 | 0.407492 | 0.01682 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0.068966 | 0.137931 | 0 | 0.206897 | 0.068966 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
4b50f1745f15ca15f80ea3c5c7d80a74e4126188 | 1,699 | py | Python | homepage/forms.py | kenzie-se-q4/recipebox-v1-Ariesgal2017 | fc31e9279048120b2f5eafd06f2bd1c6654dcc13 | [
"MIT"
] | null | null | null | homepage/forms.py | kenzie-se-q4/recipebox-v1-Ariesgal2017 | fc31e9279048120b2f5eafd06f2bd1c6654dcc13 | [
"MIT"
] | null | null | null | homepage/forms.py | kenzie-se-q4/recipebox-v1-Ariesgal2017 | fc31e9279048120b2f5eafd06f2bd1c6654dcc13 | [
"MIT"
] | null | null | null | """
class Author(models.Model):
name = models.CharField(max_length=100)
bio = models.CharField(max_length=100)
def __str__(self):
return self.name
class Recipe(models.Model):
title = models.CharField(max_length=75)
author = models.ForeignKey(Author, on_delete=models.CASCADE)
... | 30.339286 | 67 | 0.65568 | 186 | 1,699 | 5.887097 | 0.344086 | 0.120548 | 0.180822 | 0.126027 | 0.4 | 0.144292 | 0.144292 | 0.144292 | 0.144292 | 0.144292 | 0 | 0.020946 | 0.241318 | 1,699 | 56 | 68 | 30.339286 | 0.828549 | 0.306062 | 0 | 0.242424 | 0 | 0 | 0.04843 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.060606 | 0.060606 | 0 | 0.606061 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
4b53065cdf30ec6f03156b376af6209b78e7a85b | 21 | py | Python | __init__.py | Gyfis/sequence-comparison | 6506f784af4902645bb4562d507d465d57ed4366 | [
"MIT"
] | null | null | null | __init__.py | Gyfis/sequence-comparison | 6506f784af4902645bb4562d507d465d57ed4366 | [
"MIT"
] | null | null | null | __init__.py | Gyfis/sequence-comparison | 6506f784af4902645bb4562d507d465d57ed4366 | [
"MIT"
] | null | null | null | __author__ = 'Gyfis'
| 10.5 | 20 | 0.714286 | 2 | 21 | 5.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 21 | 1 | 21 | 21 | 0.611111 | 0 | 0 | 0 | 0 | 0 | 0.238095 | 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 |
4b5bb4ca9844073913aec2b03066d89347cb0d6f | 186 | py | Python | bviewer/api/urls.py | b7w/bviewer | 59d5baeeeffd43d69587228ebc5cce1811dc9f63 | [
"MIT"
] | null | null | null | bviewer/api/urls.py | b7w/bviewer | 59d5baeeeffd43d69587228ebc5cce1811dc9f63 | [
"MIT"
] | 3 | 2019-11-20T19:22:55.000Z | 2019-11-20T19:22:55.000Z | bviewer/api/urls.py | b7w/bviewer | 59d5baeeeffd43d69587228ebc5cce1811dc9f63 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from django.conf.urls import url, include
from bviewer.api.versions import version1
urlpatterns = [
url(r'^v1/', include(version1.urls), name='api.v1'),
]
| 18.6 | 56 | 0.672043 | 26 | 186 | 4.807692 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031646 | 0.150538 | 186 | 9 | 57 | 20.666667 | 0.759494 | 0.112903 | 0 | 0 | 0 | 0 | 0.06135 | 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 |
4b5e8794caf5c94a7ccaf8188a73182bce751212 | 640 | py | Python | smoketest.py | darius/greek_to_me | 35c51a61f6dedcf1fb4879cbb37d057cb01e5e98 | [
"MIT"
] | 1 | 2015-10-22T00:02:27.000Z | 2015-10-22T00:02:27.000Z | smoketest.py | darius/greek_to_me | 35c51a61f6dedcf1fb4879cbb37d057cb01e5e98 | [
"MIT"
] | null | null | null | smoketest.py | darius/greek_to_me | 35c51a61f6dedcf1fb4879cbb37d057cb01e5e98 | [
"MIT"
] | null | null | null | import greek_to_me
pundit = greek_to_me.make_pundit('models')
def print_judgement(text):
"Print the top 2 languages for 'text', and their scores."
judgments = pundit.judge(text)
print text
print judgments[:2]
print
print_judgement('Hello, world!')
print_judgement('Hello, world! How are you?')
pri... | 25.6 | 62 | 0.717188 | 99 | 640 | 4.494949 | 0.454545 | 0.125843 | 0.134831 | 0.179775 | 0.265169 | 0.265169 | 0 | 0 | 0 | 0 | 0 | 0.018083 | 0.135938 | 640 | 24 | 63 | 26.666667 | 0.786618 | 0 | 0 | 0 | 0 | 0 | 0.271875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.058824 | null | null | 0.705882 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
4b6b818abed39ba79c30f2dc610079f244ff76dd | 367 | py | Python | qfunction/fundamentals/calculus.py | gpftc/qfunction | 5c3ceed0e270d343d51ee0b69d98d4fffad47b24 | [
"MIT"
] | null | null | null | qfunction/fundamentals/calculus.py | gpftc/qfunction | 5c3ceed0e270d343d51ee0b69d98d4fffad47b24 | [
"MIT"
] | null | null | null | qfunction/fundamentals/calculus.py | gpftc/qfunction | 5c3ceed0e270d343d51ee0b69d98d4fffad47b24 | [
"MIT"
] | null | null | null | from numpy import power as pow
from numpy import pi
from sys import float_info as float_h
zero = 44e-15
inf = 1/zero
def limit(f,x,delta_x=zero):
return f(x+delta_x)
def q_exp(u,q=1):
power = lambda q_: 1/(1-q_)
power = limit(power,q)
q_exp_base = lambda q_: pow((1+u*(1-q_)),power)
return limit(q_exp_base,q)
... | 15.956522 | 48 | 0.694823 | 77 | 367 | 3.142857 | 0.402597 | 0.049587 | 0.123967 | 0.066116 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045752 | 0.166213 | 367 | 22 | 49 | 16.681818 | 0.745098 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.214286 | 0.142857 | 0.642857 | 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 |
4b6c1f93aa0603aaa35412842f6f53fcc9474abe | 303 | py | Python | python/CWE-798/examples/requests-tests.py | chhajershrenik/custom-codeql-queries | b174ddfd84f5503327bd705a64b79c7d4753c4fb | [
"MIT"
] | 13 | 2021-11-15T11:22:41.000Z | 2022-03-15T17:20:29.000Z | python/CWE-798/examples/requests-tests.py | chhajershrenik/custom-codeql-queries | b174ddfd84f5503327bd705a64b79c7d4753c4fb | [
"MIT"
] | 10 | 2021-11-24T17:17:42.000Z | 2022-03-19T17:41:07.000Z | python/CWE-798/examples/requests-tests.py | chhajershrenik/custom-codeql-queries | b174ddfd84f5503327bd705a64b79c7d4753c4fb | [
"MIT"
] | 6 | 2021-11-03T10:04:53.000Z | 2022-03-31T15:55:07.000Z |
from requests import get
from requests.auth import HTTPBasicAuth
def test1():
r = get('https://api.github.com/user', auth=('user', 'mysecretpassword'))
return r.text
def test2():
r = get('https://api.github.com/user', auth=HTTPBasicAuth('user', 'mysecretpassword'))
return r.text
| 18.9375 | 90 | 0.676568 | 40 | 303 | 5.125 | 0.45 | 0.117073 | 0.087805 | 0.117073 | 0.585366 | 0.282927 | 0.282927 | 0.282927 | 0 | 0 | 0 | 0.007874 | 0.161716 | 303 | 15 | 91 | 20.2 | 0.799213 | 0 | 0 | 0.25 | 0 | 0 | 0.311258 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.25 | 0.25 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
4b706756ca87169aecfe88d24673bcc2c8e0aa51 | 457 | py | Python | demoslogic/blockobjects/tests/test_redirects.py | amstart/demoslogic | 059575b502c21f8f27c66a26abee9a42fcb788b7 | [
"MIT"
] | null | null | null | demoslogic/blockobjects/tests/test_redirects.py | amstart/demoslogic | 059575b502c21f8f27c66a26abee9a42fcb788b7 | [
"MIT"
] | 3 | 2021-06-08T20:04:58.000Z | 2022-03-11T23:26:36.000Z | demoslogic/blockobjects/tests/test_redirects.py | amstart/demoslogic | 059575b502c21f8f27c66a26abee9a42fcb788b7 | [
"MIT"
] | null | null | null | from .base import BlockObjectsTests
class RedirectsIfAnonymous(BlockObjectsTests):
def test_redirects_for_vote(self):
redirect = self.client.post(self.URL_detail())
self.assertRedirects(redirect, self.URL_login_redirect() + self.URL_detail())
def test_redirects_for_premise_creation(self):
... | 41.545455 | 85 | 0.750547 | 54 | 457 | 6.074074 | 0.407407 | 0.219512 | 0.182927 | 0.115854 | 0.530488 | 0.530488 | 0.530488 | 0.329268 | 0.329268 | 0 | 0 | 0 | 0.14442 | 457 | 10 | 86 | 45.7 | 0.838875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | false | 0 | 0.125 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4b8a03af6aab0246186b10346531f45bdd139617 | 1,276 | py | Python | tests/select_test.py | stnatter/eventkit | 7cfa052b3de56eeca741474c213aabe492095ce6 | [
"BSD-2-Clause"
] | 88 | 2019-03-17T10:15:43.000Z | 2021-12-28T02:31:35.000Z | tests/select_test.py | stnatter/eventkit | 7cfa052b3de56eeca741474c213aabe492095ce6 | [
"BSD-2-Clause"
] | 4 | 2020-02-09T16:13:13.000Z | 2021-11-08T12:06:24.000Z | tests/select_test.py | stnatter/eventkit | 7cfa052b3de56eeca741474c213aabe492095ce6 | [
"BSD-2-Clause"
] | 13 | 2019-03-19T09:47:19.000Z | 2022-03-27T13:33:32.000Z | import unittest
from eventkit import Event
array = list(range(10))
class SelectTest(unittest.TestCase):
def test_select(self):
event = Event.sequence(array).filter(lambda x: x % 2)
self.assertEqual(event.run(), [x for x in array if x % 2])
def test_skip(self):
event = Event.sequenc... | 29.674419 | 66 | 0.594828 | 184 | 1,276 | 4.081522 | 0.206522 | 0.074567 | 0.191744 | 0.245007 | 0.61518 | 0.399467 | 0.332889 | 0.332889 | 0.332889 | 0.234354 | 0 | 0.047619 | 0.242947 | 1,276 | 42 | 67 | 30.380952 | 0.729814 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.266667 | 1 | 0.266667 | false | 0 | 0.066667 | 0 | 0.366667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4b8c88c67346d6e1158c17e6ed6bc60357dbd23c | 31 | py | Python | ckan_cloud_operator/providers/db/web_ui/constants.py | MuhammadIsmailShahzad/ckan-cloud-operator | 35a4ca88c4908d81d1040a21fca8904e77c4cded | [
"MIT"
] | 14 | 2019-11-18T12:01:03.000Z | 2021-09-15T15:29:50.000Z | ckan_cloud_operator/providers/db/web_ui/constants.py | MuhammadIsmailShahzad/ckan-cloud-operator | 35a4ca88c4908d81d1040a21fca8904e77c4cded | [
"MIT"
] | 52 | 2019-09-09T14:22:41.000Z | 2021-09-29T08:29:24.000Z | ckan_cloud_operator/providers/db/web_ui/constants.py | MuhammadIsmailShahzad/ckan-cloud-operator | 35a4ca88c4908d81d1040a21fca8904e77c4cded | [
"MIT"
] | 8 | 2019-10-05T12:46:25.000Z | 2021-09-15T15:13:05.000Z | PROVIDER_SUBMODULE='db-web-ui'
| 15.5 | 30 | 0.806452 | 5 | 31 | 4.8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032258 | 31 | 1 | 31 | 31 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.290323 | 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 |
299a8d4ebcfbdf6fbff169467fd6f22d321b5fa7 | 851 | py | Python | airflow-gen-pwd-hash-from-local.py | teamclairvoyant/airflow-utils | acafbbafd0ca8202cdcb89cd30f294b30112ef7b | [
"Apache-2.0"
] | null | null | null | airflow-gen-pwd-hash-from-local.py | teamclairvoyant/airflow-utils | acafbbafd0ca8202cdcb89cd30f294b30112ef7b | [
"Apache-2.0"
] | null | null | null | airflow-gen-pwd-hash-from-local.py | teamclairvoyant/airflow-utils | acafbbafd0ca8202cdcb89cd30f294b30112ef7b | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
import sys
from sys import version_info
from flask_bcrypt import generate_password_hash
print("")
PY3 = version_info[0] == 3
args = sys.argv[1:]
REQUIRED_NUM_OF_ARGS = 1
def print_usage_str():
print("""Usage: python airflow-gen-pwd-hash-from-local.py {plain_text_password}""")
print("Argumen... | 23.638889 | 139 | 0.702703 | 132 | 851 | 4.287879 | 0.363636 | 0.061837 | 0.068905 | 0.090106 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015068 | 0.142186 | 851 | 35 | 140 | 24.314286 | 0.760274 | 0.018801 | 0 | 0.090909 | 1 | 0 | 0.256903 | 0.066026 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0.227273 | 0.136364 | 0 | 0.181818 | 0.454545 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 3 |
299b0a5bb65d857b914119c5e913f541f67936e6 | 10,492 | py | Python | Script&Data/PythonCodeEs3.py | Bellomia/ASD_UniMib | fa800c7c58bc0931910729af88343f60d88e233b | [
"Unlicense"
] | null | null | null | Script&Data/PythonCodeEs3.py | Bellomia/ASD_UniMib | fa800c7c58bc0931910729af88343f60d88e233b | [
"Unlicense"
] | null | null | null | Script&Data/PythonCodeEs3.py | Bellomia/ASD_UniMib | fa800c7c58bc0931910729af88343f60d88e233b | [
"Unlicense"
] | null | null | null | from pylab import *
import numpy as np
import operator
## Search-Routine Parameters
n = 2
mu_exp = 2.0
mu_rifl = 1.0
mu_contr_ex = 1.0/2
mu_contr_int = -1.0/2
mu_red = 1.0/2
## Random Trial Simplex [may need a careful range-definition]
def vertici_iniziali():
import random
random.seed()
vertici=[]
for i in... | 30.323699 | 97 | 0.501048 | 1,527 | 10,492 | 3.375246 | 0.121807 | 0.051416 | 0.020955 | 0.040357 | 0.741366 | 0.708964 | 0.708964 | 0.69286 | 0.69286 | 0.69286 | 0 | 0.03845 | 0.345597 | 10,492 | 345 | 98 | 30.411594 | 0.712205 | 0.135055 | 0 | 0.680556 | 0 | 0 | 0.051785 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.009259 | false | 0 | 0.018519 | 0.00463 | 0.037037 | 0.115741 | 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 |
29ba66d9be22808cb28070a02f5e28c8bc9c2caa | 2,608 | py | Python | foiamachine/apps/requests/management/commands/set_request_stats.py | dwillis/foiamachine | 26d3b02870227696cdaab639c39d47b2a7a42ae5 | [
"Unlicense",
"MIT"
] | 9 | 2017-08-02T16:28:10.000Z | 2021-07-19T09:51:46.000Z | foiamachine/apps/requests/management/commands/set_request_stats.py | dwillis/foiamachine | 26d3b02870227696cdaab639c39d47b2a7a42ae5 | [
"Unlicense",
"MIT"
] | null | null | null | foiamachine/apps/requests/management/commands/set_request_stats.py | dwillis/foiamachine | 26d3b02870227696cdaab639c39d47b2a7a42ae5 | [
"Unlicense",
"MIT"
] | 5 | 2017-10-10T23:15:02.000Z | 2021-07-19T09:51:48.000Z | from django.core.management.base import BaseCommand, CommandError
from django.contrib.auth.models import User, Group
from apps.mail.models import MailBox
from django.core.cache import cache
from apps.requests.models import Request
import logging
from datetime import datetime
import os
import pytz
import workdays
logge... | 53.22449 | 149 | 0.595859 | 325 | 2,608 | 4.704615 | 0.464615 | 0.028777 | 0.033355 | 0.024853 | 0.170046 | 0.170046 | 0.094179 | 0 | 0 | 0 | 0 | 0 | 0.340491 | 2,608 | 48 | 150 | 54.333333 | 0.888953 | 0 | 0 | 0.129032 | 0 | 0 | 0.015287 | 0 | 0 | 0 | 0 | 0.020833 | 0 | 0 | null | null | 0 | 0.322581 | null | null | 0.032258 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
29dc3f0536cdbab196ab32232035af8a48ed7ca4 | 1,519 | py | Python | nylas/client/errors.py | Tesorio/nylas-python | 6f390610b95c807655db8da5286005241f5061fa | [
"MIT"
] | null | null | null | nylas/client/errors.py | Tesorio/nylas-python | 6f390610b95c807655db8da5286005241f5061fa | [
"MIT"
] | null | null | null | nylas/client/errors.py | Tesorio/nylas-python | 6f390610b95c807655db8da5286005241f5061fa | [
"MIT"
] | null | null | null | import json
class APIClientError(Exception):
def __init__(self, **kwargs):
if 'message' in kwargs:
Exception.__init__(self, kwargs['message'])
else:
Exception.__init__(self, '')
self.attrs = kwargs.keys()
for key, value in kwargs.items():
setatt... | 17.662791 | 55 | 0.684003 | 134 | 1,519 | 7.61194 | 0.402985 | 0.211765 | 0.248039 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028351 | 0.233706 | 1,519 | 85 | 56 | 17.870588 | 0.847938 | 0 | 0 | 0.222222 | 0 | 0 | 0.009217 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0.222222 | 0.018519 | 0.018519 | 0.351852 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
4b1b1806e6824c2eeb2707c238d81fc988d1e53f | 2,612 | py | Python | src/abaqus/Material/Plastic/Concrete/FailureRatios.py | Haiiliin/PyAbaqus | f20db6ebea19b73059fe875a53be370253381078 | [
"MIT"
] | 7 | 2022-01-21T09:15:45.000Z | 2022-02-15T09:31:58.000Z | src/abaqus/Material/Plastic/Concrete/FailureRatios.py | Haiiliin/PyAbaqus | f20db6ebea19b73059fe875a53be370253381078 | [
"MIT"
] | null | null | null | src/abaqus/Material/Plastic/Concrete/FailureRatios.py | Haiiliin/PyAbaqus | f20db6ebea19b73059fe875a53be370253381078 | [
"MIT"
] | null | null | null | from abaqusConstants import *
class FailureRatios:
"""The FailureRatios object specifies the shape of the failure surface for a Concrete
model.
Notes
-----
This object can be accessed by:
.. code-block:: python
import material
mdb.models[name].materials[name].co... | 34.826667 | 251 | 0.652374 | 308 | 2,612 | 5.519481 | 0.366883 | 0.023529 | 0.052941 | 0.06 | 0.325294 | 0.184706 | 0.148235 | 0 | 0 | 0 | 0 | 0.006985 | 0.287519 | 2,612 | 74 | 252 | 35.297297 | 0.906502 | 0.784074 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.333333 | 0.166667 | 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 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
d9a71c3f7029848ff9c31a76ba94e6b3728abca0 | 1,548 | py | Python | ToOptix/FEMPy/Material.py | joha2/ToOptixCore | 8ad17dcee349173a1b000c28de66e567ba2ad7a1 | [
"MIT"
] | null | null | null | ToOptix/FEMPy/Material.py | joha2/ToOptixCore | 8ad17dcee349173a1b000c28de66e567ba2ad7a1 | [
"MIT"
] | null | null | null | ToOptix/FEMPy/Material.py | joha2/ToOptixCore | 8ad17dcee349173a1b000c28de66e567ba2ad7a1 | [
"MIT"
] | null | null | null |
class Elasticity(object):
def __init__(self, young_module, contraction, temperature):
self.__temperature = temperature
self.__contraction = contraction
self.__young_module = young_module
def get_temperature(self):
return self.__temperature
def get_contraction(self):
... | 25.8 | 84 | 0.687984 | 161 | 1,548 | 6.149068 | 0.15528 | 0.090909 | 0.113131 | 0.051515 | 0.262626 | 0.179798 | 0.179798 | 0.09697 | 0.09697 | 0 | 0 | 0.011638 | 0.222868 | 1,548 | 59 | 85 | 26.237288 | 0.811305 | 0 | 0 | 0.27027 | 0 | 0 | 0.035599 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.378378 | false | 0 | 0 | 0.243243 | 0.702703 | 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 |
d9c3e1450ed2e1353b4c2d9bd36d48facc535f44 | 125 | py | Python | demosite/quotes/urls.py | nathan-gilbert/django-template | bdacb16a1a04f635aff14d3fcb7d36ccca53d5f6 | [
"MIT"
] | null | null | null | demosite/quotes/urls.py | nathan-gilbert/django-template | bdacb16a1a04f635aff14d3fcb7d36ccca53d5f6 | [
"MIT"
] | 5 | 2021-03-19T01:32:07.000Z | 2021-09-22T18:49:58.000Z | demosite/quotes/urls.py | nathan-gilbert/django-template | bdacb16a1a04f635aff14d3fcb7d36ccca53d5f6 | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
urlpatterns = [
path('api/quotes/', views.QuoteListCreate.as_view())
]
| 17.857143 | 56 | 0.72 | 16 | 125 | 5.5625 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152 | 125 | 6 | 57 | 20.833333 | 0.839623 | 0 | 0 | 0 | 0 | 0 | 0.088 | 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 |
d9ea787b37dffbeca4e871e5fa8329525794bc49 | 8,698 | py | Python | entmax/losses.py | cifkao/entmax | f18bab9318f9d2471a36545ee0b4c97be6d48a87 | [
"MIT"
] | 298 | 2019-06-27T10:25:27.000Z | 2022-03-17T19:01:19.000Z | entmax/losses.py | cifkao/entmax | f18bab9318f9d2471a36545ee0b4c97be6d48a87 | [
"MIT"
] | 20 | 2019-08-06T19:07:13.000Z | 2022-03-30T09:37:25.000Z | entmax/losses.py | cifkao/entmax | f18bab9318f9d2471a36545ee0b4c97be6d48a87 | [
"MIT"
] | 29 | 2019-08-05T20:48:07.000Z | 2022-03-30T09:07:54.000Z | import torch
import torch.nn as nn
from torch.autograd import Function
from entmax.activations import sparsemax, entmax15
from entmax.root_finding import entmax_bisect, sparsemax_bisect
class _GenericLoss(nn.Module):
def __init__(self, ignore_index=-100, reduction="elementwise_mean"):
assert reduction in... | 30.30662 | 82 | 0.648655 | 1,155 | 8,698 | 4.726407 | 0.170563 | 0.034622 | 0.028577 | 0.024913 | 0.642425 | 0.591317 | 0.570251 | 0.564389 | 0.545888 | 0.509984 | 0 | 0.017525 | 0.245574 | 8,698 | 286 | 83 | 30.412587 | 0.814386 | 0.35215 | 0 | 0.333333 | 0 | 0 | 0.02457 | 0 | 0 | 0 | 0 | 0 | 0.015504 | 1 | 0.217054 | false | 0 | 0.03876 | 0.124031 | 0.542636 | 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 |
d9ecd53612e6e48d1e9fed86b3d505b4508c87a3 | 199 | py | Python | minette/datastore/storeset.py | uezo/minette-python | dd8cd7d244b6e6e4133c8e73d637ded8a8c6846f | [
"Apache-2.0"
] | 31 | 2017-12-18T15:35:42.000Z | 2021-12-16T07:27:33.000Z | minette/datastore/storeset.py | uezo/minette-python | dd8cd7d244b6e6e4133c8e73d637ded8a8c6846f | [
"Apache-2.0"
] | 17 | 2017-07-13T22:25:08.000Z | 2020-11-02T14:19:32.000Z | minette/datastore/storeset.py | uezo/minette-python | dd8cd7d244b6e6e4133c8e73d637ded8a8c6846f | [
"Apache-2.0"
] | 2 | 2017-09-14T09:28:35.000Z | 2021-01-17T12:31:54.000Z | """ Base class for set of data stores and connection provider for them """
class StoreSet:
connection_provider = None
context_store = None
user_store = None
messagelog_store = None
| 22.111111 | 74 | 0.713568 | 26 | 199 | 5.307692 | 0.653846 | 0.195652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.231156 | 199 | 8 | 75 | 24.875 | 0.901961 | 0.331658 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
d9f089053fa322ad9ec933d7f5a7bc26f2e22c23 | 350 | py | Python | SubtleMonkey/End.py | Ingener74/Olive-Moon | d86336587a58fecc6920e886df23c2db6dfcfecc | [
"MIT"
] | null | null | null | SubtleMonkey/End.py | Ingener74/Olive-Moon | d86336587a58fecc6920e886df23c2db6dfcfecc | [
"MIT"
] | null | null | null | SubtleMonkey/End.py | Ingener74/Olive-Moon | d86336587a58fecc6920e886df23c2db6dfcfecc | [
"MIT"
] | null | null | null | # encoding: utf8
class End(object):
def __init__(self, connection=None):
self.connection = connection
self.__point = None
def paint(self, painter, point):
self.connection.paint(painter, self, point)
def set_point(self, point):
self.__point = point
def get_point(self)... | 20.588235 | 51 | 0.637143 | 42 | 350 | 5.02381 | 0.380952 | 0.21327 | 0.132701 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003876 | 0.262857 | 350 | 16 | 52 | 21.875 | 0.813953 | 0.04 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0.1 | 0.6 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
8a082e533082f71e393661098ec6a2598c1c2404 | 112 | py | Python | Python_Basics/04_Nested_Conditional_Statements/05_Invalid_Number.py | Dochko0/Python | e9612c4e842cfd3d9a733526cc7485765ef2238f | [
"MIT"
] | null | null | null | Python_Basics/04_Nested_Conditional_Statements/05_Invalid_Number.py | Dochko0/Python | e9612c4e842cfd3d9a733526cc7485765ef2238f | [
"MIT"
] | null | null | null | Python_Basics/04_Nested_Conditional_Statements/05_Invalid_Number.py | Dochko0/Python | e9612c4e842cfd3d9a733526cc7485765ef2238f | [
"MIT"
] | null | null | null | num = float(input())
if (100 > num or num > 200) and num != 0:
print("invalid")
elif num == 0:
print()
| 16 | 41 | 0.544643 | 18 | 112 | 3.388889 | 0.666667 | 0.131148 | 0.295082 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097561 | 0.267857 | 112 | 6 | 42 | 18.666667 | 0.646341 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8a253e5f248c367cc578526f2dcd7e6e214a9973 | 73 | py | Python | module-1/fichier7.py | sven-borden/python-academy-21 | e4657faae5cfb819e6a3eac67aa848ddc74065f7 | [
"MIT"
] | null | null | null | module-1/fichier7.py | sven-borden/python-academy-21 | e4657faae5cfb819e6a3eac67aa848ddc74065f7 | [
"MIT"
] | null | null | null | module-1/fichier7.py | sven-borden/python-academy-21 | e4657faae5cfb819e6a3eac67aa848ddc74065f7 | [
"MIT"
] | null | null | null | i = 0
while True:
print(i)
i = i + 1
| 2.212121 | 13 | 0.273973 | 9 | 73 | 2.222222 | 0.666667 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 0.643836 | 73 | 32 | 14 | 2.28125 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8a3958e1f1ad3c9bb8f7defc99e992c656fc7ac1 | 26 | py | Python | jasper_erpnext_report/utils/__init__.py | Zyten/jasper_erpnext_report | 499fc07d9e1b7e7393d392e1544366ab176ca8ef | [
"MIT"
] | 27 | 2015-07-07T11:43:24.000Z | 2022-03-12T03:46:10.000Z | jasper_erpnext_report/utils/__init__.py | Zyten/jasper_erpnext_report | 499fc07d9e1b7e7393d392e1544366ab176ca8ef | [
"MIT"
] | 13 | 2015-11-10T14:25:18.000Z | 2021-12-20T06:23:30.000Z | jasper_erpnext_report/utils/__init__.py | Zyten/jasper_erpnext_report | 499fc07d9e1b7e7393d392e1544366ab176ca8ef | [
"MIT"
] | 27 | 2015-05-21T21:16:56.000Z | 2021-09-05T17:40:10.000Z | __author__ = 'luissaguas'
| 13 | 25 | 0.769231 | 2 | 26 | 8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115385 | 26 | 1 | 26 | 26 | 0.695652 | 0 | 0 | 0 | 0 | 0 | 0.384615 | 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 |
8a3c4092e252bc763369e63217e7ccff8363bf89 | 22,298 | py | Python | our_scripts/deprecated/run_all_Tiger.py | shrivats-pu/Prescient | 3d4238e98ddd767e2b81adc4091bb723dbf563d3 | [
"BSD-3-Clause"
] | 1 | 2021-10-14T20:39:50.000Z | 2021-10-14T20:39:50.000Z | our_scripts/deprecated/run_all_Tiger.py | shrivats-pu/Prescient | 3d4238e98ddd767e2b81adc4091bb723dbf563d3 | [
"BSD-3-Clause"
] | null | null | null | our_scripts/deprecated/run_all_Tiger.py | shrivats-pu/Prescient | 3d4238e98ddd767e2b81adc4091bb723dbf563d3 | [
"BSD-3-Clause"
] | null | null | null | # run_all_Tiger.py: version of script to run on tiger with many runs and Gurobi
# authors: Ethan Reese, Arvind Shrivats
# email: ereese@princeton.edu, shrivats@princeton.edu
# created: June 8, 2021
# first, we'll use the built-in function to download the RTS-GMLC system to Prescicent/downloads/rts_gmlc
import prescien... | 67.981707 | 283 | 0.744417 | 3,206 | 22,298 | 4.768871 | 0.148472 | 0.147426 | 0.198836 | 0.294002 | 0.5986 | 0.577605 | 0.540258 | 0.517431 | 0.338675 | 0.114592 | 0 | 0.043753 | 0.156427 | 22,298 | 327 | 284 | 68.189602 | 0.769059 | 0.234595 | 0 | 0.069307 | 0 | 0 | 0.594367 | 0.570738 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054455 | false | 0 | 0.034653 | 0 | 0.108911 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8a43882e94bb408209e6ff924a3f362382ae640d | 687 | py | Python | venv/lib/python3.9/site-packages/libfuturize/fixes/fix_input.py | qarik-hanrattyjen/apache-airflow-backport-providers-google-2021.3.3 | 630dcef73e6a258b6e9a52f934e2dd912ce741f8 | [
"Apache-2.0"
] | 908 | 2015-01-01T21:20:45.000Z | 2022-03-29T20:47:16.000Z | venv/lib/python3.9/site-packages/libfuturize/fixes/fix_input.py | qarik-hanrattyjen/apache-airflow-backport-providers-google-2021.3.3 | 630dcef73e6a258b6e9a52f934e2dd912ce741f8 | [
"Apache-2.0"
] | 402 | 2015-01-04T01:30:19.000Z | 2022-03-24T11:56:38.000Z | venv/lib/python3.9/site-packages/libfuturize/fixes/fix_input.py | qarik-hanrattyjen/apache-airflow-backport-providers-google-2021.3.3 | 630dcef73e6a258b6e9a52f934e2dd912ce741f8 | [
"Apache-2.0"
] | 305 | 2015-01-18T19:29:37.000Z | 2022-03-24T09:40:09.000Z | """
Fixer for input.
Does a check for `from builtins import input` before running the lib2to3 fixer.
The fixer will not run when the input is already present.
this:
a = input()
becomes:
from builtins import input
a = eval(input())
and this:
from builtins import input
a = input()
becomes (no chan... | 20.818182 | 79 | 0.692868 | 95 | 687 | 4.936842 | 0.421053 | 0.102345 | 0.153518 | 0.196162 | 0.17484 | 0.123667 | 0 | 0 | 0 | 0 | 0 | 0.014898 | 0.218341 | 687 | 32 | 80 | 21.46875 | 0.858473 | 0.534207 | 0 | 0 | 0 | 0 | 0.041667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0 | 0.857143 | 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 | 1 | 0 | 1 | 0 | 0 | 3 |
8a4b82b64692c1c7bc73007133f94c50d7d183b3 | 25,600 | py | Python | packages/python/plotly/plotly/validators/layout/template/data/__init__.py | miriad/plotly.py | f083bea25691ff64a30008f46f77fc1edc11ad63 | [
"MIT"
] | null | null | null | packages/python/plotly/plotly/validators/layout/template/data/__init__.py | miriad/plotly.py | f083bea25691ff64a30008f46f77fc1edc11ad63 | [
"MIT"
] | 12 | 2020-06-06T01:22:26.000Z | 2022-03-12T00:13:42.000Z | packages/python/plotly/plotly/validators/layout/template/data/__init__.py | miriad/plotly.py | f083bea25691ff64a30008f46f77fc1edc11ad63 | [
"MIT"
] | null | null | null | import _plotly_utils.basevalidators
class WaterfallsValidator(_plotly_utils.basevalidators.CompoundArrayValidator):
def __init__(
self, plotly_name="waterfall", parent_name="layout.template.data", **kwargs
):
super(WaterfallsValidator, self).__init__(
plotly_name=plotly_name,
... | 27.856366 | 88 | 0.599141 | 2,300 | 25,600 | 6.188696 | 0.048261 | 0.096951 | 0.161585 | 0.100183 | 0.824083 | 0.821554 | 0.821554 | 0.69334 | 0.69334 | 0.473584 | 0 | 0.000886 | 0.294844 | 25,600 | 918 | 89 | 27.88671 | 0.787614 | 0 | 0 | 0.6 | 0 | 0 | 0.109581 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.066667 | 0 | 0.2 | 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 |
8a61c4fdf67c8e865af316af591d3737949dc492 | 427 | py | Python | py/g1/operations/databases/clients/setup.py | clchiou/garage | 446ff34f86cdbd114b09b643da44988cf5d027a3 | [
"MIT"
] | 3 | 2016-01-04T06:28:52.000Z | 2020-09-20T13:18:40.000Z | py/g1/operations/databases/clients/setup.py | clchiou/garage | 446ff34f86cdbd114b09b643da44988cf5d027a3 | [
"MIT"
] | null | null | null | py/g1/operations/databases/clients/setup.py | clchiou/garage | 446ff34f86cdbd114b09b643da44988cf5d027a3 | [
"MIT"
] | null | null | null | from setuptools import setup
setup(
name='g1.operations.databases.clients',
packages=[
'g1.operations.databases.clients',
],
install_requires=[
'g1.messaging[reqrep]',
'g1.operations.databases.bases[capnps]',
],
extras_require={
'parts': [
'g1.apps',
... | 20.333333 | 48 | 0.540984 | 39 | 427 | 5.846154 | 0.589744 | 0.157895 | 0.276316 | 0.245614 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023729 | 0.309133 | 427 | 20 | 49 | 21.35 | 0.749153 | 0 | 0 | 0.157895 | 0 | 0 | 0.388759 | 0.295082 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.052632 | 0 | 0.052632 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8a665e7f6180ff46a8e1a6823d054b7b8c50e878 | 638 | py | Python | easy/155. Min Stack.py | junyinglucn/leetcode | 1fbd0962e4b7dc46b4ed4f0f86778cfedbda72e7 | [
"MIT"
] | null | null | null | easy/155. Min Stack.py | junyinglucn/leetcode | 1fbd0962e4b7dc46b4ed4f0f86778cfedbda72e7 | [
"MIT"
] | null | null | null | easy/155. Min Stack.py | junyinglucn/leetcode | 1fbd0962e4b7dc46b4ed4f0f86778cfedbda72e7 | [
"MIT"
] | null | null | null | class MinStack:
def __init__(self):
"""
initialize your data structure here.
"""
self.l = []
self.min_stack = [math.inf]
def push(self, x: int) -> None:
self.l.append(x)
self.min_stack.append(min(x, self.min_stack[-1]))
def pop(self) -> None:
... | 21.266667 | 63 | 0.557994 | 90 | 638 | 3.833333 | 0.411111 | 0.101449 | 0.173913 | 0.075362 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011038 | 0.289969 | 638 | 29 | 64 | 22 | 0.750552 | 0.283699 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.357143 | false | 0 | 0 | 0.142857 | 0.571429 | 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 |
8a75419ab507deeefe93d686bfd8dd4812db507c | 766 | py | Python | qhub/render/jinja.py | viniciusdc/qhub-cloud | be7256f26d140eb8edb3b5f19dc222458f5284b7 | [
"BSD-3-Clause"
] | 8 | 2020-05-07T09:32:24.000Z | 2020-11-19T07:22:16.000Z | qhub/render/jinja.py | viniciusdc/qhub-cloud | be7256f26d140eb8edb3b5f19dc222458f5284b7 | [
"BSD-3-Clause"
] | 81 | 2020-04-28T14:55:06.000Z | 2020-08-18T04:15:04.000Z | qhub/render/jinja.py | viniciusdc/qhub-cloud | be7256f26d140eb8edb3b5f19dc222458f5284b7 | [
"BSD-3-Clause"
] | 5 | 2020-06-12T12:50:44.000Z | 2021-04-17T15:22:47.000Z | import yaml
import json
from jinja2.ext import Extension
class YamlifyExtension(Extension):
"""Jinja2 extension to convert a Python object to YAML."""
def __init__(self, environment):
"""Initialize the extension with the given environment."""
super().__init__(environment)
def yamlify... | 25.533333 | 66 | 0.664491 | 83 | 766 | 5.939759 | 0.373494 | 0.060852 | 0.097363 | 0.105477 | 0.559838 | 0.559838 | 0.559838 | 0.559838 | 0.559838 | 0.365112 | 0 | 0.005119 | 0.234987 | 766 | 29 | 67 | 26.413793 | 0.836177 | 0.275457 | 0 | 0.266667 | 0 | 0 | 0.026217 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0.2 | 0.133333 | 0.733333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
8a8e58b7e5b36ba04ccde1095b3e3a0e8f6203d5 | 324 | py | Python | backend/diem_utils/types/liquidity/lp.py | tanshuai/reference-wallet | e8efec4acc6af6e319cf075c10693ddf7754cc83 | [
"Apache-2.0"
] | 14 | 2020-12-17T08:03:51.000Z | 2022-03-26T04:21:18.000Z | backend/diem_utils/types/liquidity/lp.py | tanshuai/reference-wallet | e8efec4acc6af6e319cf075c10693ddf7754cc83 | [
"Apache-2.0"
] | 20 | 2020-12-15T12:02:56.000Z | 2021-05-19T23:37:34.000Z | backend/diem_utils/types/liquidity/lp.py | tanshuai/reference-wallet | e8efec4acc6af6e319cf075c10693ddf7754cc83 | [
"Apache-2.0"
] | 12 | 2020-12-10T16:35:27.000Z | 2022-02-01T04:06:10.000Z | # Copyright (c) The Diem Core Contributors
# SPDX-License-Identifier: Apache-2.0
from dataclasses import dataclass
from typing import Type
from dataclasses_json import dataclass_json
from .currency import CurrencyPairs
@dataclass_json
@dataclass
class LPDetails:
sub_address: str
vasp: str
IBAN_number: ... | 18 | 43 | 0.787037 | 43 | 324 | 5.813953 | 0.674419 | 0.12 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00738 | 0.16358 | 324 | 17 | 44 | 19.058824 | 0.915129 | 0.234568 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
8a95cc763ca83978a7cdc5a3d1a9c8c3b8e633c6 | 12,937 | py | Python | pybind/slxos/v17s_1_02/routing_system/evpn_config/evpn/evpn_instance/bridge_domain/evpn_bd/__init__.py | extremenetworks/pybind | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | [
"Apache-2.0"
] | null | null | null | pybind/slxos/v17s_1_02/routing_system/evpn_config/evpn/evpn_instance/bridge_domain/evpn_bd/__init__.py | extremenetworks/pybind | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | [
"Apache-2.0"
] | null | null | null | pybind/slxos/v17s_1_02/routing_system/evpn_config/evpn/evpn_instance/bridge_domain/evpn_bd/__init__.py | extremenetworks/pybind | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | [
"Apache-2.0"
] | 1 | 2021-11-05T22:15:42.000Z | 2021-11-05T22:15:42.000Z |
from operator import attrgetter
import pyangbind.lib.xpathhelper as xpathhelper
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType
from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType
from pyangbind.lib.base import PybindBase
from d... | 64.363184 | 617 | 0.726907 | 1,817 | 12,937 | 4.940561 | 0.10842 | 0.04233 | 0.043667 | 0.026735 | 0.7566 | 0.725855 | 0.706583 | 0.687089 | 0.687089 | 0.676395 | 0 | 0.006998 | 0.13844 | 12,937 | 200 | 618 | 64.685 | 0.798403 | 0.149416 | 0 | 0.37594 | 0 | 0.022556 | 0.345015 | 0.136125 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090226 | false | 0 | 0.067669 | 0 | 0.285714 | 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 |
8a9710cb2478ecc91eb85a68d129ba14d7785d82 | 22,042 | py | Python | tests/paddle/test_paddle_model_export.py | tahesse/mlflow | 14c98f936923511a4c1ad8b1e7f72248cf4067cf | [
"Apache-2.0"
] | null | null | null | tests/paddle/test_paddle_model_export.py | tahesse/mlflow | 14c98f936923511a4c1ad8b1e7f72248cf4067cf | [
"Apache-2.0"
] | null | null | null | tests/paddle/test_paddle_model_export.py | tahesse/mlflow | 14c98f936923511a4c1ad8b1e7f72248cf4067cf | [
"Apache-2.0"
] | null | null | null | from collections import namedtuple
import pytest
import numpy as np
import pandas as pd
import os
from unittest import mock
import yaml
import paddle
from paddle.nn import Linear
import paddle.nn.functional as F
from sklearn.datasets import load_diabetes
from sklearn.model_selection import train_test_split
from sklear... | 38.134948 | 99 | 0.725751 | 3,067 | 22,042 | 4.816433 | 0.097163 | 0.039331 | 0.036556 | 0.028161 | 0.781275 | 0.745667 | 0.714866 | 0.682034 | 0.642838 | 0.602694 | 0 | 0.004614 | 0.174122 | 22,042 | 577 | 100 | 38.20104 | 0.806856 | 0.01166 | 0 | 0.49011 | 0 | 0 | 0.044319 | 0.011022 | 0 | 0 | 0 | 0 | 0.092308 | 1 | 0.065934 | false | 0 | 0.054945 | 0.006593 | 0.145055 | 0.002198 | 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 |
8aa00c2b5b71cdea77ec4f0b50c0232d0ba172b0 | 1,102 | py | Python | rebootArch4/homework2/myftp.py | pelucky/python-test | 1fefc6649899dfffe200125cc44611471b571600 | [
"MIT"
] | 1 | 2015-12-21T10:57:11.000Z | 2015-12-21T10:57:11.000Z | rebootArch4/homework2/myftp.py | pelucky/python-test | 1fefc6649899dfffe200125cc44611471b571600 | [
"MIT"
] | null | null | null | rebootArch4/homework2/myftp.py | pelucky/python-test | 1fefc6649899dfffe200125cc44611471b571600 | [
"MIT"
] | null | null | null | #!/usr/local/python2.7.9/bin/python
#coding:utf-8
"""
Des: Use for ftp upload
"""
import os
from ftplib import FTP
# my ftp client to upload data
class Myftp:
'''My ftp'''
def __init__(self,config):
'''Set the configure'''
self.ftp_ip = config[0]
self.ftp_username = config[1]
self.ftp_passwd = co... | 21.192308 | 54 | 0.6098 | 170 | 1,102 | 3.805882 | 0.411765 | 0.205564 | 0.061824 | 0.043277 | 0.213292 | 0.148377 | 0.086553 | 0 | 0 | 0 | 0 | 0.009592 | 0.243194 | 1,102 | 51 | 55 | 21.607843 | 0.766187 | 0.092559 | 0 | 0.171429 | 0 | 0 | 0.061356 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.085714 | 0.057143 | null | null | 0.057143 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
8aa060d283b50908658aaeaabfd14799593e3d0a | 326 | py | Python | quickvision/models/classification/cnn/__init__.py | Quick-AI/quickvision | dc3c083356f3afa12c8992254249d3a1a3ea0d7d | [
"Apache-2.0"
] | 47 | 2020-11-15T03:36:48.000Z | 2021-04-08T05:28:02.000Z | quickvision/models/classification/cnn/__init__.py | oke-aditya/quickvision | dc3c083356f3afa12c8992254249d3a1a3ea0d7d | [
"Apache-2.0"
] | 78 | 2020-11-14T17:55:28.000Z | 2021-04-06T08:55:24.000Z | quickvision/models/classification/cnn/__init__.py | Quick-AI/quickvision | dc3c083356f3afa12c8992254249d3a1a3ea0d7d | [
"Apache-2.0"
] | 15 | 2020-11-14T18:01:04.000Z | 2021-02-16T14:50:12.000Z | from quickvision.models.classification.cnn.engine import (
train_step,
val_step,
fit,
train_sanity_fit,
val_sanity_fit,
sanity_fit,
)
from quickvision.models.classification.cnn.model_factory import (
CNN,
create_cnn,
)
from quickvision.models.classification.cnn.lightning_trainer import L... | 23.285714 | 74 | 0.760736 | 40 | 326 | 5.95 | 0.45 | 0.189076 | 0.264706 | 0.441176 | 0.478992 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165644 | 326 | 13 | 75 | 25.076923 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.230769 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8aa627e32aa8f7e07da78d8e6b704039db59c2b5 | 452 | py | Python | backend/app/app/errors/__init__.py | bigSAS/fast-api-backend-starter | 21d92632e9c9668de461dd7f40156ae098765242 | [
"MIT"
] | 1 | 2021-06-23T14:38:24.000Z | 2021-06-23T14:38:24.000Z | backend/app/app/errors/__init__.py | bigSAS/fast-api-backend-starter | 21d92632e9c9668de461dd7f40156ae098765242 | [
"MIT"
] | null | null | null | backend/app/app/errors/__init__.py | bigSAS/fast-api-backend-starter | 21d92632e9c9668de461dd7f40156ae098765242 | [
"MIT"
] | null | null | null | from pydantic import BaseModel
class ErrorMessage(BaseModel):
message: str
class AppError(Exception):
"""
Base app error class. Use for inheritance.
"""
def __init__(self, message: str):
self._message = message
@property
def message(self):
return self._message
def ... | 18.08 | 60 | 0.639381 | 50 | 452 | 5.26 | 0.48 | 0.1673 | 0.106464 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.256637 | 452 | 24 | 61 | 18.833333 | 0.782738 | 0.09292 | 0 | 0 | 0 | 0 | 0.106599 | 0.068528 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0.076923 | 0.230769 | 0.846154 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
8aab75ba7b2f69e3c72816e7b2e05daa76893066 | 21,190 | py | Python | tests/components/config/test_config_entries.py | pcaston/Open-Peer-Power | 81805d455c548e0f86b0f7fedc793b588b2afdfd | [
"Apache-2.0"
] | null | null | null | tests/components/config/test_config_entries.py | pcaston/Open-Peer-Power | 81805d455c548e0f86b0f7fedc793b588b2afdfd | [
"Apache-2.0"
] | null | null | null | tests/components/config/test_config_entries.py | pcaston/Open-Peer-Power | 81805d455c548e0f86b0f7fedc793b588b2afdfd | [
"Apache-2.0"
] | 1 | 2019-04-24T14:10:08.000Z | 2019-04-24T14:10:08.000Z | """Test config entries API."""
from collections import OrderedDict
from unittest.mock import patch
import pytest
import voluptuous as vol
from openpeerpower import config_entries as core_ce, data_entry_flow
from openpeerpower.components.config import config_entries
from openpeerpower.config_entries import HANDLERS
f... | 32.15478 | 87 | 0.595611 | 2,444 | 21,190 | 4.948036 | 0.084697 | 0.041925 | 0.018854 | 0.034565 | 0.799223 | 0.760357 | 0.721823 | 0.691805 | 0.65542 | 0.642769 | 0 | 0.006879 | 0.272817 | 21,190 | 658 | 88 | 32.203647 | 0.777922 | 0.009155 | 0 | 0.618952 | 0 | 0 | 0.161946 | 0.05048 | 0 | 0 | 0 | 0 | 0.110887 | 1 | 0.010081 | false | 0.012097 | 0.022177 | 0 | 0.108871 | 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 |
8aac79a19a9370a019dcf0ec42e7416bcdc21368 | 321 | py | Python | env/lib/python3.8/site-packages/plotly/validators/layout/uniformtext/__init__.py | acrucetta/Chicago_COVI_WebApp | a37c9f492a20dcd625f8647067394617988de913 | [
"MIT",
"Unlicense"
] | 11,750 | 2015-10-12T07:03:39.000Z | 2022-03-31T20:43:15.000Z | env/lib/python3.8/site-packages/plotly/validators/layout/uniformtext/__init__.py | acrucetta/Chicago_COVI_WebApp | a37c9f492a20dcd625f8647067394617988de913 | [
"MIT",
"Unlicense"
] | 2,951 | 2015-10-12T00:41:25.000Z | 2022-03-31T22:19:26.000Z | env/lib/python3.8/site-packages/plotly/validators/layout/uniformtext/__init__.py | acrucetta/Chicago_COVI_WebApp | a37c9f492a20dcd625f8647067394617988de913 | [
"MIT",
"Unlicense"
] | 2,623 | 2015-10-15T14:40:27.000Z | 2022-03-28T16:05:50.000Z | import sys
if sys.version_info < (3, 7):
from ._mode import ModeValidator
from ._minsize import MinsizeValidator
else:
from _plotly_utils.importers import relative_import
__all__, __getattr__, __dir__ = relative_import(
__name__, [], ["._mode.ModeValidator", "._minsize.MinsizeValidator"]
)... | 26.75 | 76 | 0.719626 | 34 | 321 | 6.058824 | 0.617647 | 0.135922 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007663 | 0.186916 | 321 | 11 | 77 | 29.181818 | 0.781609 | 0 | 0 | 0 | 0 | 0 | 0.143302 | 0.080997 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.555556 | 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 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
8ab88b6e5262b684b962e1e9c85002d3c3b25c78 | 322 | py | Python | sandbox/sandbox_002_test.py | daviddoret/pyxag | 6884c7e100d28c3ce6273248caa40eaeab920bc5 | [
"MIT"
] | 1 | 2019-10-27T15:56:27.000Z | 2019-10-27T15:56:27.000Z | sandbox/sandbox_002_test.py | daviddoret/pynag | 6884c7e100d28c3ce6273248caa40eaeab920bc5 | [
"MIT"
] | 11 | 2019-11-04T18:21:16.000Z | 2019-11-07T03:22:41.000Z | sandbox/sandbox_002_test.py | daviddoret/pynag | 6884c7e100d28c3ce6273248caa40eaeab920bc5 | [
"MIT"
] | null | null | null | import unittest
from functions.get_nag_sample import get_nag_sample_constant_0
from functions.get_nag_sample import get_nag_sample_binary_xor
import numpy as np
#nag = get_nag_sample_constant_0()
#print(nag.execute([]))
#print(nag.execute_output_only([]))
a = [1, 1, 1]
b = np.repeat([0], 5)
c = np.append(a,b)
print(c... | 23 | 62 | 0.767081 | 58 | 322 | 3.948276 | 0.431034 | 0.131004 | 0.262009 | 0.165939 | 0.50655 | 0.375546 | 0.375546 | 0.375546 | 0.375546 | 0 | 0 | 0.024306 | 0.10559 | 322 | 13 | 63 | 24.769231 | 0.770833 | 0.276398 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0.125 | 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 |
8aceaa92b2272b8286a19088efa3b3e61ad3735b | 2,000 | py | Python | _object.py | omar659/Monkey-Compiler | 7b6bfd224772f085da3a4925a49523d7c8ba2a30 | [
"Apache-2.0"
] | 1 | 2020-07-18T18:37:30.000Z | 2020-07-18T18:37:30.000Z | _object.py | omar-3/Monkey-Compiler | 7b6bfd224772f085da3a4925a49523d7c8ba2a30 | [
"Apache-2.0"
] | null | null | null | _object.py | omar-3/Monkey-Compiler | 7b6bfd224772f085da3a4925a49523d7c8ba2a30 | [
"Apache-2.0"
] | null | null | null | from abc import ABC, abstractmethod
from typing import List
import enum
class obj(enum.Enum):
INTEGER_OBJ = "INTEGER"
BOOLEAN_OBJ = "BOOLEAN"
NULL_OBJ = "NULL"
RETURN_VALUE_OBJ = "RETURN_VALUE"
ERROR_OBJ = "ERROR"
class Object(ABC):
@abstractmethod
def Type(self):
pass
d... | 25.316456 | 81 | 0.4875 | 200 | 2,000 | 4.59 | 0.175 | 0.098039 | 0.071895 | 0.092593 | 0.5 | 0.334423 | 0.30719 | 0.30719 | 0.30719 | 0.30719 | 0 | 0 | 0.232 | 2,000 | 78 | 82 | 25.641026 | 0.597656 | 0 | 0 | 0.465517 | 0 | 0 | 0.043206 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.327586 | false | 0.034483 | 0.051724 | 0.172414 | 0.827586 | 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 |
8ad3e5f120ff26c3b43d46da4024b0515da83b8a | 124 | py | Python | Chapter09/exceptiontype.py | kaushalkumarshah/Learn-Python-in-7-Days | 2663656767c8959ace836f0c0e272f3e501bbe6e | [
"MIT"
] | 12 | 2018-07-09T16:20:31.000Z | 2022-03-21T22:52:15.000Z | Chapter09/exceptiontype.py | kaushalkumarshah/Learn-Python-in-7-Days | 2663656767c8959ace836f0c0e272f3e501bbe6e | [
"MIT"
] | null | null | null | Chapter09/exceptiontype.py | kaushalkumarshah/Learn-Python-in-7-Days | 2663656767c8959ace836f0c0e272f3e501bbe6e | [
"MIT"
] | 19 | 2018-01-09T12:49:06.000Z | 2021-11-23T08:05:55.000Z | try:
num = int(raw_input("Enter the number "))
re = 100/num
print re
except Exception as e :
print e, type(e)
| 17.714286 | 44 | 0.612903 | 21 | 124 | 3.571429 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033333 | 0.274194 | 124 | 6 | 45 | 20.666667 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.144068 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
76e384d02079947fc4fc84b94ba4db112bda08a5 | 397 | py | Python | projects/olds/sqlNewsFilter/news/forms.py | Bingwen-Hu/hackaway | 69727d76fd652390d9660e9ea4354ba5cc76dd5c | [
"BSD-2-Clause"
] | null | null | null | projects/olds/sqlNewsFilter/news/forms.py | Bingwen-Hu/hackaway | 69727d76fd652390d9660e9ea4354ba5cc76dd5c | [
"BSD-2-Clause"
] | null | null | null | projects/olds/sqlNewsFilter/news/forms.py | Bingwen-Hu/hackaway | 69727d76fd652390d9660e9ea4354ba5cc76dd5c | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from django import forms
class CompanyForm(forms.Form):
"""公司FOrm,包括公司名, 公司ID, 系统ID和关键词"""
Name = forms.CharField(max_length=32)
CompanyID = forms.CharField(max_length=64)
SystemID = forms.CharField(max_length=64)
Keywords = forms.CharField(max_length=1000)
class DeleteForm... | 30.538462 | 47 | 0.702771 | 50 | 397 | 5.48 | 0.52 | 0.255474 | 0.310219 | 0.419708 | 0.394161 | 0.211679 | 0 | 0 | 0 | 0 | 0 | 0.03869 | 0.153652 | 397 | 13 | 48 | 30.538462 | 0.776786 | 0.15869 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0a0a8f901551d767819936885ab30ddffd0837e2 | 73 | py | Python | Configuration/Eras/python/Modifier_run2_common_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | Configuration/Eras/python/Modifier_run2_common_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | Configuration/Eras/python/Modifier_run2_common_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | import FWCore.ParameterSet.Config as cms
run2_common = cms.Modifier()
| 14.6 | 40 | 0.780822 | 10 | 73 | 5.6 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015873 | 0.136986 | 73 | 4 | 41 | 18.25 | 0.873016 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 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 |
0a0a9ec49c1d947018066f668b76cb45fb89d85e | 169 | py | Python | buffer/in-vicinity-python/hci/PySide/speech-coding-project/qml/qmltxt/wget/addition.py | zaqwes8811/coordinator-tasks | 7f63fdf613eff5d441a3c2c7b52d2a3d02d9736a | [
"MIT"
] | null | null | null | buffer/in-vicinity-python/hci/PySide/speech-coding-project/qml/qmltxt/wget/addition.py | zaqwes8811/coordinator-tasks | 7f63fdf613eff5d441a3c2c7b52d2a3d02d9736a | [
"MIT"
] | 15 | 2015-03-07T12:46:41.000Z | 2015-04-11T09:08:36.000Z | buffer/in-vicinity-python/hci/PySide/speech-coding-project/qml/qmltxt/wget/addition.py | zaqwes8811/micro-apps | 7f63fdf613eff5d441a3c2c7b52d2a3d02d9736a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# file : addition.py
from PySide import QtCore
# _TEST_
class Console(QtCore.QObject):
@QtCore.Slot(str)
def outputStr(self, s):
print s | 18.777778 | 30 | 0.668639 | 24 | 169 | 4.625 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007246 | 0.183432 | 169 | 9 | 31 | 18.777778 | 0.797101 | 0.278107 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | null | null | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0a12bf33a0ccf8a8cb81887e7a150b253a4eab08 | 1,151 | py | Python | core/admin.py | ditttu/gymkhana-Nominations | 2a0e993c1b8362c456a9369b0b549d1c809a21df | [
"MIT"
] | 3 | 2018-02-27T13:48:28.000Z | 2018-03-03T21:57:50.000Z | core/admin.py | ditttu/gymkhana-Nominations | 2a0e993c1b8362c456a9369b0b549d1c809a21df | [
"MIT"
] | 6 | 2020-02-12T00:07:46.000Z | 2022-03-11T23:25:59.000Z | core/admin.py | ditttu/gymkhana-Nominations | 2a0e993c1b8362c456a9369b0b549d1c809a21df | [
"MIT"
] | 1 | 2019-03-26T20:19:57.000Z | 2019-03-26T20:19:57.000Z | from django.contrib import admin
from .models import *
class UserProfileAdmin(admin.ModelAdmin):
list_display = ('name', 'roll_no', 'programme', 'department', 'hall', 'room_no')
admin.site.register(UserProfile, UserProfileAdmin)
class NominationAdmin(admin.ModelAdmin):
list_display = ('name', 'status', 'op... | 23.02 | 84 | 0.754996 | 124 | 1,151 | 6.91129 | 0.362903 | 0.115519 | 0.218203 | 0.18203 | 0.203034 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105126 | 1,151 | 49 | 85 | 23.489796 | 0.832039 | 0 | 0 | 0 | 0 | 0 | 0.130321 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.08 | 0 | 0.56 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
0a406f57ae9961d2ee158a7d93257e7fcae7541b | 530 | py | Python | terrarium/data_sources/yahoo_weather.py | dredington/terrarium | 691d4c4eca24df6ead69bd76badce30161a43050 | [
"MIT"
] | null | null | null | terrarium/data_sources/yahoo_weather.py | dredington/terrarium | 691d4c4eca24df6ead69bd76badce30161a43050 | [
"MIT"
] | null | null | null | terrarium/data_sources/yahoo_weather.py | dredington/terrarium | 691d4c4eca24df6ead69bd76badce30161a43050 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from weather import Weather, Unit
from sentinel import DataSource
class YahooWeather(DataSource):
def __init__(self):
self.weather = Weather(unit=Unit.FAHRENHEIT)
self.lookup = self.weather.lookup_by_location(80031)
self.condition = self.lookup.condition
def report(self):
... | 25.238095 | 77 | 0.730189 | 65 | 530 | 5.861538 | 0.430769 | 0.07874 | 0.068241 | 0.089239 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013304 | 0.149057 | 530 | 20 | 78 | 26.5 | 0.831486 | 0.039623 | 0 | 0 | 0 | 0 | 0.05315 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0.153846 | 0.230769 | 0.769231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 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.