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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
381aff7075f7d0c6469db5d793171d22d50b86cd | 242 | py | Python | src/rating/admin.py | krismwas/pata-app | 2c7e29b7801f17047ccfa0c824a77b0415a8f029 | [
"MIT"
] | null | null | null | src/rating/admin.py | krismwas/pata-app | 2c7e29b7801f17047ccfa0c824a77b0415a8f029 | [
"MIT"
] | null | null | null | src/rating/admin.py | krismwas/pata-app | 2c7e29b7801f17047ccfa0c824a77b0415a8f029 | [
"MIT"
] | null | null | null | from django.contrib import admin
# Register your models here.
from .models import Rating, DoctorReviewOpinionCount, ReportedAbuse
admin.site.register(Rating)
admin.site.register(DoctorReviewOpinionCount)
admin.site.register(ReportedAbuse) | 24.2 | 67 | 0.838843 | 27 | 242 | 7.518519 | 0.481481 | 0.133005 | 0.251232 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086777 | 242 | 10 | 68 | 24.2 | 0.918552 | 0.107438 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
3839f674333d5f6f3a94c13c1171991ba7da1212 | 14,492 | py | Python | 2019/2019_23b.py | davidxiao93/Advent-of-Code | 29503100ae4eb46b048fc3ab68ff0181c6f00ee5 | [
"MIT"
] | null | null | null | 2019/2019_23b.py | davidxiao93/Advent-of-Code | 29503100ae4eb46b048fc3ab68ff0181c6f00ee5 | [
"MIT"
] | null | null | null | 2019/2019_23b.py | davidxiao93/Advent-of-Code | 29503100ae4eb46b048fc3ab68ff0181c6f00ee5 | [
"MIT"
] | null | null | null | from typing import List, Tuple, Dict
from collections import namedtuple
input = """3,62,1001,62,11,10,109,2229,105,1,0,1392,1198,1169,736,2060,1136,767,1041,928,1072,1996,1662,1567,994,800,1363,571,2091,1928,1493,2192,705,1695,1800,1596,1464,868,965,1328,1631,1965,835,1262,2029,1101,1433,1829,639,899,1726,2161,1227,67... | 73.191919 | 7,984 | 0.642423 | 3,071 | 14,492 | 2.975252 | 0.171931 | 0.028675 | 0.030535 | 0.030645 | 0.438218 | 0.371347 | 0.301302 | 0.208602 | 0.182773 | 0.15574 | 0 | 0.466176 | 0.146219 | 14,492 | 197 | 7,985 | 73.563452 | 0.272286 | 0.012421 | 0 | 0.28 | 0 | 0.005714 | 0.584266 | 0.557343 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045714 | false | 0 | 0.011429 | 0.005714 | 0.12 | 0.045714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
699eb888d3ab7a330ed11811a7c5919493e3467f | 23 | py | Python | BDMesh/_version.py | bond-anton/BDMesh | e72f1ec96828c41274b82ba67fd06b44fa8b511d | [
"Apache-2.0"
] | 49 | 2021-12-12T04:13:24.000Z | 2022-03-31T12:58:57.000Z | enex2notion/version.py | vzhd1701/enex2notion | d9e0811af6f2c779caf1328c6daa0d6f81290fb3 | [
"MIT"
] | 11 | 2021-12-03T10:49:54.000Z | 2022-03-29T20:00:30.000Z | BDMesh/_version.py | bond-anton/BDMesh | e72f1ec96828c41274b82ba67fd06b44fa8b511d | [
"Apache-2.0"
] | 3 | 2022-02-04T13:25:21.000Z | 2022-03-07T17:54:36.000Z | __version__ = "0.2.16"
| 11.5 | 22 | 0.652174 | 4 | 23 | 2.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0.130435 | 23 | 1 | 23 | 23 | 0.35 | 0 | 0 | 0 | 0 | 0 | 0.26087 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
69f64aaea0d268a893bf1170af178c227098845b | 454 | py | Python | algorithms_selection.py | chasingbob/Python_For_Kids | 807509858bec8b5b28cf9680360487488bc033a8 | [
"MIT"
] | 1 | 2017-03-24T06:30:52.000Z | 2017-03-24T06:30:52.000Z | algorithms_selection.py | chasingbob/Python_For_Kids | 807509858bec8b5b28cf9680360487488bc033a8 | [
"MIT"
] | null | null | null | algorithms_selection.py | chasingbob/Python_For_Kids | 807509858bec8b5b28cf9680360487488bc033a8 | [
"MIT"
] | null | null | null |
def print_appropriate_message(age, name):
if (age < 10):
print('{} is in primary school'.format(name))
elif (age >= 10 and age < 20):
print('{} is most likely in high school'.format(name))
else:
print('{} is too old for school'.format(name))
age = 17
name = "John"
... | 21.619048 | 63 | 0.61674 | 60 | 454 | 4.533333 | 0.5 | 0.235294 | 0.338235 | 0.191176 | 0.220588 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032448 | 0.253304 | 454 | 20 | 64 | 22.7 | 0.769912 | 0 | 0 | 0 | 0 | 0 | 0.231481 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0 | 0 | 0.083333 | 0.583333 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
0e1078575a686c18dc3eb28d77bba9b293a8c442 | 335 | py | Python | PyStacks/test/test_iot.py | 0xack13/PyStacks | 13136c43089c241680beb216a233d1846119dd7c | [
"MIT"
] | 11 | 2018-02-15T04:27:05.000Z | 2020-10-02T11:20:08.000Z | PyStacks/test/test_iot.py | 0xack13/PyStacks | 13136c43089c241680beb216a233d1846119dd7c | [
"MIT"
] | 3 | 2018-02-15T05:46:54.000Z | 2018-03-05T04:46:51.000Z | PyStacks/test/test_iot.py | 0xack13/PyStacks | 13136c43089c241680beb216a233d1846119dd7c | [
"MIT"
] | 8 | 2018-03-05T04:40:41.000Z | 2021-02-22T08:07:58.000Z | import unittest
from mock import MagicMock
from PyStacks.PyStacks.iot import IoTAPI
class TestIot(unittest.TestCase):
def test_create_thing(self):
pass
def test_create_keys_and_certificate(self):
pass
def test_attach_thing_principal(self):
pass
def test_attach_policy(self)... | 16.75 | 47 | 0.710448 | 43 | 335 | 5.27907 | 0.534884 | 0.123348 | 0.145374 | 0.198238 | 0.185022 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.235821 | 335 | 19 | 48 | 17.631579 | 0.886719 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.333333 | 0.25 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
0e1432b0932c3c8dbd9df5da5cfda6edda0dbee6 | 337 | py | Python | commish_paths_nersc.py | dstndstn/desi-commish | 71d95c0e20a1a730dbd75bdd1731c9baace6a0ed | [
"MIT"
] | null | null | null | commish_paths_nersc.py | dstndstn/desi-commish | 71d95c0e20a1a730dbd75bdd1731c9baace6a0ed | [
"MIT"
] | null | null | null | commish_paths_nersc.py | dstndstn/desi-commish | 71d95c0e20a1a730dbd75bdd1731c9baace6a0ed | [
"MIT"
] | null | null | null | an_config_filename = '/global/project/projectdirs/cosmo/work/users/dstn/index-5000/cfg'
an_path = '/global/homes/d/dstn/astrometry-installed'
an_py_path = None #'/global/homes/d/dstn/astrometry-installed/lib/python'
desi_dir = '/global/project/projectdirs/desi/spectro/data'
gfa_good_pix_map_dir = '/global/cscratch1/... | 37.444444 | 87 | 0.789318 | 52 | 337 | 4.923077 | 0.634615 | 0.101563 | 0.1875 | 0.125 | 0.273438 | 0.273438 | 0 | 0 | 0 | 0 | 0 | 0.015723 | 0.05638 | 337 | 8 | 88 | 42.125 | 0.789308 | 0.160237 | 0 | 0 | 0 | 0 | 0.648936 | 0.648936 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
385b89342b5c3c1eaad0c40664054aa0f689a4e1 | 356 | py | Python | src/pygerber/parser/blender/apertures/custom.py | Argmaster/pygerber | 4761a5aa60ff1d11512fb44aabd103246d9a3019 | [
"MIT"
] | 3 | 2021-08-30T07:07:59.000Z | 2021-09-29T22:14:43.000Z | src/pygerber/parser/blender/apertures/custom.py | Argmaster/pygerber | 4761a5aa60ff1d11512fb44aabd103246d9a3019 | [
"MIT"
] | 1 | 2021-09-26T13:28:49.000Z | 2021-09-26T13:28:49.000Z | src/pygerber/parser/blender/apertures/custom.py | Argmaster/pygerber | 4761a5aa60ff1d11512fb44aabd103246d9a3019 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import annotations
from pygerber.parser.blender.apertures.arc_mixin import ArcUtilMixinBlender
from pygerber.parser.blender.apertures.util import BlenderUtilMethods
from pygerber.renderer.aperture.custom import CustomAperture
class BlenderCustom(ArcUtilMixinBlender, BlenderUti... | 32.363636 | 77 | 0.837079 | 37 | 356 | 7.918919 | 0.621622 | 0.122867 | 0.122867 | 0.170648 | 0.232082 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003096 | 0.092697 | 356 | 10 | 78 | 35.6 | 0.904025 | 0.058989 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.166667 | 0.666667 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 4 |
3876c0d838a6bd316aa8ea81a71519f99bbabefd | 119 | py | Python | ibug/face_pose_augmentation/__init__.py | ibug-group/face_pose_augmentation | 96df817c194854bba261893703d26502feec1c22 | [
"MIT"
] | 3 | 2021-03-22T11:58:18.000Z | 2022-03-11T20:29:22.000Z | ibug/face_pose_augmentation/__init__.py | ibug-group/face_pose_augmentation | 96df817c194854bba261893703d26502feec1c22 | [
"MIT"
] | null | null | null | ibug/face_pose_augmentation/__init__.py | ibug-group/face_pose_augmentation | 96df817c194854bba261893703d26502feec1c22 | [
"MIT"
] | 1 | 2022-03-11T20:28:45.000Z | 2022-03-11T20:28:45.000Z | from .tddfa_predictor import TDDFAPredictor
from .face_pose_augmentor import FacePoseAugmentor
__version__ = '0.1.0'
| 19.833333 | 50 | 0.831933 | 15 | 119 | 6.133333 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028302 | 0.109244 | 119 | 5 | 51 | 23.8 | 0.839623 | 0 | 0 | 0 | 0 | 0 | 0.042017 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
3882122c32447e7fa11be90ca09b8deed29cf0e5 | 2,640 | py | Python | selenium_tests/Pages/RegisterPage.py | avielfedida/RoboAdvisor | ca8ba3c479f5fd3ae1e468f11f09ecf08e2a0cf9 | [
"MIT"
] | null | null | null | selenium_tests/Pages/RegisterPage.py | avielfedida/RoboAdvisor | ca8ba3c479f5fd3ae1e468f11f09ecf08e2a0cf9 | [
"MIT"
] | 3 | 2020-12-31T08:03:30.000Z | 2021-03-30T06:39:50.000Z | selenium_tests/Pages/RegisterPage.py | avielfedida/RoboAdvisor | ca8ba3c479f5fd3ae1e468f11f09ecf08e2a0cf9 | [
"MIT"
] | 1 | 2021-06-20T09:13:03.000Z | 2021-06-20T09:13:03.000Z | from selenium.webdriver.common.by import By
from selenium_tests.Config.config import TestData
from selenium_tests.Data.Paths import Paths
from selenium_tests.Pages.BasePage import BasePage
class RegisterPage(BasePage):
EMAIL = (By.ID, "email_field")
PASSWORD = (By.ID, "password_field")
PASSWORD_REPEAT = ... | 34.285714 | 81 | 0.71553 | 378 | 2,640 | 4.653439 | 0.166667 | 0.044343 | 0.079591 | 0.090961 | 0.474133 | 0.364412 | 0.257533 | 0.19784 | 0.154633 | 0.054576 | 0 | 0 | 0.182197 | 2,640 | 76 | 82 | 34.736842 | 0.814729 | 0 | 0 | 0 | 0 | 0 | 0.062121 | 0.031061 | 0 | 0 | 0 | 0 | 0 | 1 | 0.263158 | false | 0.192982 | 0.070175 | 0.210526 | 0.736842 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
3898b905761b2eb901f47f7af0f4f160795f09dc | 141 | py | Python | reddit2telegram/channels/~inactive/r_childfree/app.py | mainyordle/reddit2telegram | 1163e15aed3b6ff0fba65b222d3d9798f644c386 | [
"MIT"
] | 187 | 2016-09-20T09:15:54.000Z | 2022-03-29T12:22:33.000Z | reddit2telegram/channels/~inactive/r_childfree/app.py | mainyordle/reddit2telegram | 1163e15aed3b6ff0fba65b222d3d9798f644c386 | [
"MIT"
] | 84 | 2016-09-22T14:25:07.000Z | 2022-03-19T01:26:17.000Z | reddit2telegram/channels/~inactive/r_childfree/app.py | mainyordle/reddit2telegram | 1163e15aed3b6ff0fba65b222d3d9798f644c386 | [
"MIT"
] | 172 | 2016-09-21T15:39:39.000Z | 2022-03-16T15:15:58.000Z | #encoding:utf-8
subreddit = 'childfree'
t_channel = '@r_Childfree'
def send_post(submission, r2t):
return r2t.send_simple(submission)
| 15.666667 | 38 | 0.744681 | 19 | 141 | 5.315789 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02459 | 0.134752 | 141 | 8 | 39 | 17.625 | 0.803279 | 0.099291 | 0 | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.25 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
c7fcc4062776a78be53c864a39cbb51e9625d5ca | 1,621 | py | Python | jpylib/jmath/_bits.py | JiniousChoi/encyclopedia-in-code | 77bc551a03a2a3e3808e50016ece14adb5cfbd96 | [
"MIT"
] | 2 | 2018-07-20T10:15:49.000Z | 2018-07-20T10:16:54.000Z | jpylib/jmath/_bits.py | JiniousChoi/encyclopedia-in-code | 77bc551a03a2a3e3808e50016ece14adb5cfbd96 | [
"MIT"
] | 2 | 2018-06-26T09:12:44.000Z | 2019-12-18T00:09:14.000Z | jpylib/jmath/_bits.py | JiniousChoi/encyclopedia-in-code | 77bc551a03a2a3e3808e50016ece14adb5cfbd96 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
## author: jinchoiseoul@gmail.com
from math import inf
def single_bit_ceil(n):
''' @return largest `1<<m` satisfying `2**m >= n`
Note: 1<<m == 2**m '''
if n==0: return 0
p = 1
while p < n:
p <<= 1
assert p >= n
return p
def single_bit_floor(n):
''' @r... | 23.157143 | 53 | 0.611968 | 240 | 1,621 | 3.908333 | 0.191667 | 0.211087 | 0.402985 | 0.460554 | 0.684435 | 0.660981 | 0.228145 | 0.228145 | 0.228145 | 0.228145 | 0 | 0.045417 | 0.25293 | 1,621 | 69 | 54 | 23.492754 | 0.729149 | 0.111043 | 0 | 0.097561 | 0 | 0 | 0.005674 | 0 | 0 | 0 | 0 | 0 | 0.512195 | 1 | 0.097561 | false | 0 | 0.04878 | 0 | 0.219512 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
2a4984d704a1a5fb8b24f5f06d43dfb39f03cfd3 | 207 | py | Python | pygdpr/policies/translate_file_policy.py | GDPRxiv/crawler | 178ef9ff6c3641ba8b761a49e42c2579e453c1ca | [
"MIT"
] | null | null | null | pygdpr/policies/translate_file_policy.py | GDPRxiv/crawler | 178ef9ff6c3641ba8b761a49e42c2579e453c1ca | [
"MIT"
] | 2 | 2022-02-19T06:56:03.000Z | 2022-02-19T07:00:00.000Z | pygdpr/policies/translate_file_policy.py | GDPRxiv/crawler | 178ef9ff6c3641ba8b761a49e42c2579e453c1ca | [
"MIT"
] | null | null | null | class TranslateFilePolicy():
allowed_formats = ['txt']
def is_allowed(self, filename):
split = filename.split('.')
format_ = split[1]
return (format_ in self.allowed_formats)
| 29.571429 | 48 | 0.637681 | 22 | 207 | 5.772727 | 0.636364 | 0.220472 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006369 | 0.241546 | 207 | 6 | 49 | 34.5 | 0.802548 | 0 | 0 | 0 | 0 | 0 | 0.019324 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
2a589c16a6797b585f5993e3415df4b65fc2f68b | 714 | py | Python | main.py | dun933/FudanOCR | fd79b679044ea23fd9eb30691453ed0805d2e98b | [
"MIT"
] | 1 | 2020-03-19T02:29:02.000Z | 2020-03-19T02:29:02.000Z | main.py | dun933/FudanOCR | fd79b679044ea23fd9eb30691453ed0805d2e98b | [
"MIT"
] | null | null | null | main.py | dun933/FudanOCR | fd79b679044ea23fd9eb30691453ed0805d2e98b | [
"MIT"
] | null | null | null | # -*- coding:utf-8 -*-
from engine.trainer import Trainer
from engine.env import Env
from data.build import build_dataloader
from engine.trainer_collection.MORAN import MORAN_Trainer
from engine.trainer_collection.GRCNN import GRCNN_Trainer
from engine.trainer_collection.RARE import RARE_Trainer
from engine.tr... | 34 | 90 | 0.785714 | 95 | 714 | 5.684211 | 0.273684 | 0.148148 | 0.22037 | 0.3 | 0.314815 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001645 | 0.148459 | 714 | 20 | 91 | 35.7 | 0.886513 | 0.028011 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.692308 | 0 | 0.692308 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
2a791e28efed57765e637fb2d20894ed487edaf0 | 20 | py | Python | test/login.py | zhujinyu828/cy | 3cdf51125fafed4986ba7243b6b43fcc30df9370 | [
"MIT"
] | null | null | null | test/login.py | zhujinyu828/cy | 3cdf51125fafed4986ba7243b6b43fcc30df9370 | [
"MIT"
] | null | null | null | test/login.py | zhujinyu828/cy | 3cdf51125fafed4986ba7243b6b43fcc30df9370 | [
"MIT"
] | null | null | null | 1.woshint
2.niyeshi
| 6.666667 | 9 | 0.8 | 4 | 20 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 0.1 | 20 | 2 | 10 | 10 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
2a91c0e2d77d62db226fe8a9c3b6fce9d02908d6 | 275 | py | Python | controllers/machines.py | kbj2060/plantpointNutrients-backend | 20c2e1e277368a186ed46844818f1e650d25fa03 | [
"MIT"
] | null | null | null | controllers/machines.py | kbj2060/plantpointNutrients-backend | 20c2e1e277368a186ed46844818f1e650d25fa03 | [
"MIT"
] | null | null | null | controllers/machines.py | kbj2060/plantpointNutrients-backend | 20c2e1e277368a186ed46844818f1e650d25fa03 | [
"MIT"
] | null | null | null | from controllers.app import app
from repository.machine_repo import machineRepository
@app.get("/machines")
def read_machines():
return machineRepository.read_machines()
@app.post("/machines/create")
def create_machines():
return machineRepository.create_machine() | 25 | 53 | 0.792727 | 32 | 275 | 6.65625 | 0.46875 | 0.112676 | 0.29108 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.101818 | 275 | 11 | 54 | 25 | 0.862348 | 0 | 0 | 0 | 0 | 0 | 0.09058 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | true | 0 | 0.25 | 0.25 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
aa491fe6cff45225c11b3413a4de43d5604b9b2c | 418 | py | Python | pingparsing/error.py | chuongntv/pingparsing | 45f0c510bd992128e29096527791cd66c0250f78 | [
"MIT"
] | null | null | null | pingparsing/error.py | chuongntv/pingparsing | 45f0c510bd992128e29096527791cd66c0250f78 | [
"MIT"
] | null | null | null | pingparsing/error.py | chuongntv/pingparsing | 45f0c510bd992128e29096527791cd66c0250f78 | [
"MIT"
] | null | null | null | # encoding: utf-8
"""
.. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com>
"""
from __future__ import absolute_import
class PingStatisticsHeaderNotFoundError(Exception):
"""
Exception raised when a ping statistics header not found in
a parsing text.
"""
class EmptyPingStatisticsError(Ex... | 19.904762 | 71 | 0.715311 | 46 | 418 | 6.391304 | 0.630435 | 0.108844 | 0.163265 | 0.190476 | 0.292517 | 0.292517 | 0.292517 | 0 | 0 | 0 | 0 | 0.002967 | 0.19378 | 418 | 20 | 72 | 20.9 | 0.869436 | 0.535885 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
aa5d31eeb3767f9550433ac72e62b859f805a5d4 | 128 | py | Python | molecule/podman/tests/test_podman.py | iquzart/ansible-role-mariadb | 7a852ccf88177d9c075d8577319a903d5edcfe1b | [
"MIT"
] | null | null | null | molecule/podman/tests/test_podman.py | iquzart/ansible-role-mariadb | 7a852ccf88177d9c075d8577319a903d5edcfe1b | [
"MIT"
] | null | null | null | molecule/podman/tests/test_podman.py | iquzart/ansible-role-mariadb | 7a852ccf88177d9c075d8577319a903d5edcfe1b | [
"MIT"
] | 1 | 2021-06-13T07:40:40.000Z | 2021-06-13T07:40:40.000Z | """Role testing files using testinfra."""
def test_mariadb_service_active(host):
assert host.service('mariadb').is_running | 25.6 | 45 | 0.765625 | 17 | 128 | 5.529412 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109375 | 128 | 5 | 45 | 25.6 | 0.824561 | 0.273438 | 0 | 0 | 0 | 0 | 0.079545 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.5 | false | 0 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
aa6245c0d00aafac3688c843b5c6ed960ffb518d | 241 | py | Python | main.py | jeremy886/crossword2019 | e7fd5b8a79a3834b2d3c7fd51da336b23f9cfc8f | [
"MIT"
] | null | null | null | main.py | jeremy886/crossword2019 | e7fd5b8a79a3834b2d3c7fd51da336b23f9cfc8f | [
"MIT"
] | null | null | null | main.py | jeremy886/crossword2019 | e7fd5b8a79a3834b2d3c7fd51da336b23f9cfc8f | [
"MIT"
] | null | null | null | import tex_printable
"""
Step 1:
- Create a new word list in words.txt
- Run crosswords.py to generate crosswords_out.txt
Step 2:
- Run this program to call text_printable.py to generate crossword_puzzle.text
"""
tex_printable.print_tex() | 20.083333 | 78 | 0.775934 | 40 | 241 | 4.525 | 0.675 | 0.132597 | 0.132597 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009709 | 0.145228 | 241 | 12 | 79 | 20.083333 | 0.868932 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 4 |
aa7c8b76035ace6b3e85e3ca1f6aa78318a12480 | 535 | py | Python | Edabit/NoDuplicateLetters-Hard.py | JLJTECH/TutorialTesting | f2dbbd49a86b3b086d0fc156ac3369fb74727f86 | [
"MIT"
] | null | null | null | Edabit/NoDuplicateLetters-Hard.py | JLJTECH/TutorialTesting | f2dbbd49a86b3b086d0fc156ac3369fb74727f86 | [
"MIT"
] | null | null | null | Edabit/NoDuplicateLetters-Hard.py | JLJTECH/TutorialTesting | f2dbbd49a86b3b086d0fc156ac3369fb74727f86 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
'''
Given a common phrase, return False if any individual word in the phrase contains duplicate letters.
Return True otherwise.
'''
def no_duplicate_letters(phrase):
val = [phrase]
nlst = ' '.join(val).split()
st = [len(i) for i in nlst]
ev = [len(set(i)) for i in nlst]
return st == ev
#A... | 26.75 | 101 | 0.697196 | 91 | 535 | 4.032967 | 0.428571 | 0.174387 | 0.065395 | 0.171662 | 0.441417 | 0.196185 | 0.196185 | 0 | 0 | 0 | 0 | 0.004444 | 0.158879 | 535 | 19 | 102 | 28.157895 | 0.811111 | 0.31215 | 0 | 0.3 | 0 | 0 | 0.005571 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0 | 0.2 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
aa838313d513935184b5edad399628aa9a7191f4 | 459 | py | Python | gem_controllers/current_controller.py | upb-lea/gem_control | 242393dce0bbcb3a982594318daa1757687b1d3a | [
"MIT"
] | 15 | 2021-05-03T18:31:22.000Z | 2022-03-15T01:56:33.000Z | gem_controllers/current_controller.py | upb-lea/gem_control | 242393dce0bbcb3a982594318daa1757687b1d3a | [
"MIT"
] | 5 | 2021-05-09T19:16:35.000Z | 2021-06-08T20:44:22.000Z | gem_controllers/current_controller.py | upb-lea/gem_control | 242393dce0bbcb3a982594318daa1757687b1d3a | [
"MIT"
] | null | null | null | import numpy as np
import gym_electric_motor as gem
import gem_controllers as gc
class CurrentController(gc.GemController):
def control(self, state, reference):
raise NotImplementedError
def tune(self, env, env_id, **kwargs):
raise NotImplementedError
@property
def voltage_referenc... | 20.863636 | 46 | 0.705882 | 53 | 459 | 6 | 0.54717 | 0.301887 | 0.201258 | 0.220126 | 0.232704 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.22658 | 459 | 21 | 47 | 21.857143 | 0.895775 | 0 | 0 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.214286 | 0 | 0.571429 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
aab343076828abe4a972220f2691735f2cb73eea | 86 | py | Python | plugins/greet_spanish.py | kyclark/python_plugins | da2f433b2f0323389ca2c24ac47e5fb097ef805d | [
"MIT"
] | null | null | null | plugins/greet_spanish.py | kyclark/python_plugins | da2f433b2f0323389ca2c24ac47e5fb097ef805d | [
"MIT"
] | null | null | null | plugins/greet_spanish.py | kyclark/python_plugins | da2f433b2f0323389ca2c24ac47e5fb097ef805d | [
"MIT"
] | null | null | null | def greet(name: str) -> str:
"""Greet in Spanish"""
return f"¡Hola, {name}!"
| 17.2 | 28 | 0.546512 | 13 | 86 | 3.692308 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.232558 | 86 | 4 | 29 | 21.5 | 0.712121 | 0.186047 | 0 | 0 | 0 | 0 | 0.21875 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
aace60065c8ca87d2ea84fce28749351770617c0 | 73 | py | Python | backend/routes/__init__.py | ffont/FreesoundExplorer2 | 635f2c70741a4218ff2118c49b747b6d33266999 | [
"MIT"
] | 14 | 2016-11-22T14:56:19.000Z | 2021-01-04T11:43:27.000Z | backend/routes/__init__.py | noVaSon/freesound-explorer | 92181855d59e181da0f5b140369d7e0067761ab3 | [
"MIT"
] | 63 | 2016-09-04T08:43:34.000Z | 2021-05-24T09:52:28.000Z | backend/routes/__init__.py | noVaSon/freesound-explorer | 92181855d59e181da0f5b140369d7e0067761ab3 | [
"MIT"
] | 5 | 2017-01-16T16:56:05.000Z | 2019-02-25T16:03:10.000Z | from backend.routes import main
from social.apps.flask_app import routes
| 24.333333 | 40 | 0.849315 | 12 | 73 | 5.083333 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109589 | 73 | 2 | 41 | 36.5 | 0.938462 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
aad771b2b741a1418146c73959718eb7b27b52e0 | 763 | py | Python | src/checklisting/provider/__init__.py | michalbachowski/python-checklisting | 31cbe1fb87683ffbb21104585e318d844fc7c52b | [
"MIT"
] | null | null | null | src/checklisting/provider/__init__.py | michalbachowski/python-checklisting | 31cbe1fb87683ffbb21104585e318d844fc7c52b | [
"MIT"
] | null | null | null | src/checklisting/provider/__init__.py | michalbachowski/python-checklisting | 31cbe1fb87683ffbb21104585e318d844fc7c52b | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod
from typing import Callable, Iterable, Iterator
from checklisting.task import Checklist
class BaseChecklistsProvider(ABC):
@abstractmethod
def get_all(self) -> Iterator[Checklist]:
pass
@abstractmethod
def get_filtered(self, predicate: Callable[[Checklist... | 27.25 | 90 | 0.72346 | 78 | 763 | 6.935897 | 0.371795 | 0.044362 | 0.073937 | 0.048059 | 0.351201 | 0.351201 | 0.240296 | 0.240296 | 0.240296 | 0.240296 | 0 | 0 | 0.179554 | 763 | 27 | 91 | 28.259259 | 0.864217 | 0 | 0 | 0.470588 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.294118 | false | 0.117647 | 0.176471 | 0.117647 | 0.705882 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
2aa09506073f1ca7be0491d71c745533c0e0cbb6 | 104 | py | Python | py_tdlib/constructors/chat_action_uploading_document.py | Mr-TelegramBot/python-tdlib | 2e2d21a742ebcd439971a32357f2d0abd0ce61eb | [
"MIT"
] | 24 | 2018-10-05T13:04:30.000Z | 2020-05-12T08:45:34.000Z | py_tdlib/constructors/chat_action_uploading_document.py | MrMahdi313/python-tdlib | 2e2d21a742ebcd439971a32357f2d0abd0ce61eb | [
"MIT"
] | 3 | 2019-06-26T07:20:20.000Z | 2021-05-24T13:06:56.000Z | py_tdlib/constructors/chat_action_uploading_document.py | MrMahdi313/python-tdlib | 2e2d21a742ebcd439971a32357f2d0abd0ce61eb | [
"MIT"
] | 5 | 2018-10-05T14:29:28.000Z | 2020-08-11T15:04:10.000Z | from ..factory import Type
class chatActionUploadingDocument(Type):
progress = None # type: "int32"
| 17.333333 | 40 | 0.75 | 11 | 104 | 7.090909 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022727 | 0.153846 | 104 | 5 | 41 | 20.8 | 0.863636 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
2ad2f753b5e41049e9fa33803137672b1fa7ad67 | 37 | py | Python | foiamachine/local/lib/python2.7/encodings/cp437.py | dwillis/foiamachine | 26d3b02870227696cdaab639c39d47b2a7a42ae5 | [
"Unlicense",
"MIT"
] | 3 | 2021-08-07T04:01:55.000Z | 2021-08-07T05:12:11.000Z | foiamachine/local/lib/python2.7/encodings/cp437.py | dwillis/foiamachine | 26d3b02870227696cdaab639c39d47b2a7a42ae5 | [
"Unlicense",
"MIT"
] | null | null | null | foiamachine/local/lib/python2.7/encodings/cp437.py | dwillis/foiamachine | 26d3b02870227696cdaab639c39d47b2a7a42ae5 | [
"Unlicense",
"MIT"
] | 1 | 2021-08-05T22:51:14.000Z | 2021-08-05T22:51:14.000Z | /usr/lib/python2.7/encodings/cp437.py | 37 | 37 | 0.810811 | 7 | 37 | 4.285714 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135135 | 0 | 37 | 1 | 37 | 37 | 0.675676 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
630d07fcb74213c8cad6b3fc82978bac583b6ecc | 2,078 | py | Python | tests/test_zad2.py | TestowanieAutomatyczneUG/laboratorium-9-wiktormorawski | f4067f7dd8d3c88d95cadddd58a10269f981603f | [
"MIT"
] | null | null | null | tests/test_zad2.py | TestowanieAutomatyczneUG/laboratorium-9-wiktormorawski | f4067f7dd8d3c88d95cadddd58a10269f981603f | [
"MIT"
] | null | null | null | tests/test_zad2.py | TestowanieAutomatyczneUG/laboratorium-9-wiktormorawski | f4067f7dd8d3c88d95cadddd58a10269f981603f | [
"MIT"
] | null | null | null | import unittest
from unittest.mock import *
from zad2 import Car
class TestCarMock(unittest.TestCase):
def setUp(self):
self.test_object = Car()
"""needsFuel TESTS"""
@patch.object(Car, 'needsFuel')
def test_needsFuel_dont(self, mock_method):
mock_method.return_value = False
... | 38.481481 | 107 | 0.714148 | 244 | 2,078 | 5.860656 | 0.20082 | 0.125874 | 0.134266 | 0.176224 | 0.711888 | 0.711888 | 0.711888 | 0.579021 | 0.501399 | 0.340559 | 0 | 0.000593 | 0.189124 | 2,078 | 54 | 108 | 38.481481 | 0.848071 | 0 | 0 | 0.25641 | 0 | 0 | 0.15147 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 1 | 0.205128 | false | 0 | 0.076923 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
631eb81af083eb6035d58f09389173814fc6c567 | 351 | py | Python | classes/expense.py | GuillaumeDmns/cost-balancing | b9515af360336bb2dceb596b9a93b23642fe4bea | [
"MIT"
] | null | null | null | classes/expense.py | GuillaumeDmns/cost-balancing | b9515af360336bb2dceb596b9a93b23642fe4bea | [
"MIT"
] | null | null | null | classes/expense.py | GuillaumeDmns/cost-balancing | b9515af360336bb2dceb596b9a93b23642fe4bea | [
"MIT"
] | null | null | null | class Expense:
def __init__(self, name, amount):
self._name = name
self._amount = amount
def get_name(self):
return self._name
def set_name(self, new_name):
self._name = new_name
def get_amount(self):
return self._amount
def set_amount(self, new_amount):
... | 20.647059 | 37 | 0.618234 | 47 | 351 | 4.234043 | 0.234043 | 0.201005 | 0.140704 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.296296 | 351 | 16 | 38 | 21.9375 | 0.805668 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.416667 | false | 0 | 0 | 0.166667 | 0.666667 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
63253f1b9f1e96715e620c791b9425ed58245e91 | 3,305 | py | Python | src/rocommand/test/TestAll.py | A-Mazurek/ro-manager | e49b6025b89594e036fdb2b56c8b871717b3b620 | [
"MIT-0",
"MIT"
] | 11 | 2015-01-19T04:21:58.000Z | 2019-02-21T11:54:45.000Z | src/rocommand/test/TestAll.py | A-Mazurek/ro-manager | e49b6025b89594e036fdb2b56c8b871717b3b620 | [
"MIT-0",
"MIT"
] | 1 | 2016-10-18T14:35:36.000Z | 2016-10-25T19:12:05.000Z | src/rocommand/test/TestAll.py | A-Mazurek/ro-manager | e49b6025b89594e036fdb2b56c8b871717b3b620 | [
"MIT-0",
"MIT"
] | 7 | 2015-03-04T17:22:00.000Z | 2022-03-14T15:55:23.000Z | #!/usr/bin/env python
__author__ = "Graham Klyne (GK@ACM.ORG)"
__copyright__ = "Copyright 2011-2013, University of Oxford"
__license__ = "MIT (http://opensource.org/licenses/MIT)"
import sys, unittest, os
if __name__ == "__main__":
# Add main project directory and ro manager directories at start of py... | 37.134831 | 83 | 0.741604 | 370 | 3,305 | 6.532432 | 0.294595 | 0.156392 | 0.188664 | 0.21597 | 0.414564 | 0.121638 | 0.07199 | 0.07199 | 0.041374 | 0.041374 | 0 | 0.007668 | 0.131921 | 3,305 | 88 | 84 | 37.556818 | 0.834786 | 0.070197 | 0 | 0.057143 | 0 | 0 | 0.10974 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.328571 | null | null | 0.028571 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
2d83efe7c3959ede118ef8c59c19582ad3c63c61 | 1,099 | py | Python | greenbot/modules/__init__.py | EMorf/greenbot | 5528fcb9246109d6742a867b9668a408d43701d6 | [
"MIT"
] | null | null | null | greenbot/modules/__init__.py | EMorf/greenbot | 5528fcb9246109d6742a867b9668a408d43701d6 | [
"MIT"
] | null | null | null | greenbot/modules/__init__.py | EMorf/greenbot | 5528fcb9246109d6742a867b9668a408d43701d6 | [
"MIT"
] | null | null | null | from greenbot.modules.base import BaseModule
from greenbot.modules.base import ModuleSetting
from greenbot.modules.base import ModuleType
from greenbot.modules.basic import BasicCommandsModule
from greenbot.modules.basic.admincommands import AdminCommandsModule
from greenbot.modules.advancedadminlog import AdvancedAdm... | 32.323529 | 68 | 0.832575 | 115 | 1,099 | 7.921739 | 0.269565 | 0.210757 | 0.333699 | 0.075741 | 0.095499 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122839 | 1,099 | 33 | 69 | 33.30303 | 0.945021 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.516129 | 0 | 0.516129 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
2d889c1134ab2ca2e9cb60521ee955183bedb7f1 | 41 | py | Python | Chapter01/pipenv_run.py | PacktPublishing/Secret-Recipes-of-the-Python-Ninja | 805d00c7a54927ba94c9077e9a580508ee3c5e56 | [
"MIT"
] | 13 | 2018-06-21T01:44:49.000Z | 2021-12-01T10:49:53.000Z | Chapter01/pipenv_run.py | PacktPublishing/Secret-Recipes-of-the-Python-Ninja | 805d00c7a54927ba94c9077e9a580508ee3c5e56 | [
"MIT"
] | null | null | null | Chapter01/pipenv_run.py | PacktPublishing/Secret-Recipes-of-the-Python-Ninja | 805d00c7a54927ba94c9077e9a580508ee3c5e56 | [
"MIT"
] | 6 | 2018-10-05T08:29:24.000Z | 2022-01-11T14:49:50.000Z | >>>pipenv run python3 <program_name>.py
| 13.666667 | 39 | 0.731707 | 6 | 41 | 4.833333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027778 | 0.121951 | 41 | 2 | 40 | 20.5 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
2d9b03adf213cc98a0493a31a6352ac186f53f38 | 1,045 | py | Python | pirates/leveleditor/worldData/interior_spanish_store_destroyed.py | itsyaboyrocket/pirates | 6ca1e7d571c670b0d976f65e608235707b5737e3 | [
"BSD-3-Clause"
] | 3 | 2021-02-25T06:38:13.000Z | 2022-03-22T07:00:15.000Z | pirates/leveleditor/worldData/interior_spanish_store_destroyed.py | itsyaboyrocket/pirates | 6ca1e7d571c670b0d976f65e608235707b5737e3 | [
"BSD-3-Clause"
] | null | null | null | pirates/leveleditor/worldData/interior_spanish_store_destroyed.py | itsyaboyrocket/pirates | 6ca1e7d571c670b0d976f65e608235707b5737e3 | [
"BSD-3-Clause"
] | 1 | 2021-02-25T06:38:17.000Z | 2021-02-25T06:38:17.000Z | # uncompyle6 version 3.2.0
# Python bytecode 2.4 (62061)
# Decompiled from: Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:19:30) [MSC v.1500 32 bit (Intel)]
# Embedded file name: pirates.leveleditor.worldData.interior_spanish_store_destroyed
from pandac.PandaModules import Point3, VBase3, Vec4, Vec3
objectStruct =... | 149.285714 | 585 | 0.684211 | 141 | 1,045 | 5.014184 | 0.652482 | 0.016973 | 0.016973 | 0.016973 | 0.008487 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210526 | 0.090909 | 1,045 | 7 | 586 | 149.285714 | 0.533684 | 0.227751 | 0 | 0 | 0 | 0 | 0.488169 | 0.239103 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
2da65dc27933a0883c1d285874f6d78c7387a021 | 78 | py | Python | tests/basics/0prelim.py | learnforpractice/micropython-cpp | 004bc8382f74899e7b876cc29bfa6a9cc976ba10 | [
"MIT"
] | 13,648 | 2015-01-01T01:34:51.000Z | 2022-03-31T16:19:53.000Z | tests/basics/0prelim.py | learnforpractice/micropython-cpp | 004bc8382f74899e7b876cc29bfa6a9cc976ba10 | [
"MIT"
] | 7,092 | 2015-01-01T07:59:11.000Z | 2022-03-31T23:52:18.000Z | tests/basics/0prelim.py | learnforpractice/micropython-cpp | 004bc8382f74899e7b876cc29bfa6a9cc976ba10 | [
"MIT"
] | 4,942 | 2015-01-02T11:48:50.000Z | 2022-03-31T19:57:10.000Z | # all tests need print to work! make sure it does work
print(1)
print('abc')
| 15.6 | 54 | 0.705128 | 15 | 78 | 3.666667 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015873 | 0.192308 | 78 | 4 | 55 | 19.5 | 0.857143 | 0.666667 | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
2dcc64b6dd2e49fac8a09323556e24b559ae3f9b | 5,389 | py | Python | pyroms_toolbox/pyroms_toolbox/sandbox/roms_movie.py | ChuningWang/pyroms | 4f3773d39683ce78e76b30d0e41955f47d56edc2 | [
"BSD-3-Clause"
] | null | null | null | pyroms_toolbox/pyroms_toolbox/sandbox/roms_movie.py | ChuningWang/pyroms | 4f3773d39683ce78e76b30d0e41955f47d56edc2 | [
"BSD-3-Clause"
] | null | null | null | pyroms_toolbox/pyroms_toolbox/sandbox/roms_movie.py | ChuningWang/pyroms | 4f3773d39683ce78e76b30d0e41955f47d56edc2 | [
"BSD-3-Clause"
] | null | null | null | # encoding: utf-8
import os
import subprocess
import netCDF4
import matplotlib.pyplot as plt
import octant
def make_movie(filelst, varname, cmin, cmax, view, lev=0,
istart=None, iend=None, grd=None,
proj='merc', imode='on', title='', clean=False):
"""
make a movie using a 2D hor... | 26.416667 | 77 | 0.501948 | 642 | 5,389 | 4.179128 | 0.227414 | 0.023854 | 0.041744 | 0.040253 | 0.76817 | 0.708535 | 0.708535 | 0.669773 | 0.6489 | 0.6489 | 0 | 0.016686 | 0.366116 | 5,389 | 203 | 78 | 26.546798 | 0.768735 | 0.055669 | 0 | 0.707143 | 0 | 0 | 0.151497 | 0.010708 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014286 | false | 0 | 0.035714 | 0 | 0.064286 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
2dd16cbcf3ca134afb7c3007dee96d5dac66a107 | 122 | py | Python | yc130/339.py | c-yan/yukicoder | cdbbd65402177225dd989df7fe01f67908484a69 | [
"MIT"
] | null | null | null | yc130/339.py | c-yan/yukicoder | cdbbd65402177225dd989df7fe01f67908484a69 | [
"MIT"
] | null | null | null | yc130/339.py | c-yan/yukicoder | cdbbd65402177225dd989df7fe01f67908484a69 | [
"MIT"
] | null | null | null | from math import gcd
from functools import reduce
N, *A = map(int, open(0).read().split())
print(100 // reduce(gcd, A))
| 17.428571 | 40 | 0.672131 | 21 | 122 | 3.904762 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038835 | 0.155738 | 122 | 6 | 41 | 20.333333 | 0.757282 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
2ddedde02b412274d553c995f97d3c6c24669f46 | 658 | bzl | Python | source/bazel/deps/fast_io/get.bzl | luxe/CodeLang-compiler | 78837d90bdd09c4b5aabbf0586a5d8f8f0c1e76a | [
"MIT"
] | 1 | 2019-01-06T08:45:46.000Z | 2019-01-06T08:45:46.000Z | source/bazel/deps/fast_io/get.bzl | luxe/CodeLang-compiler | 78837d90bdd09c4b5aabbf0586a5d8f8f0c1e76a | [
"MIT"
] | 264 | 2015-11-30T08:34:00.000Z | 2018-06-26T02:28:41.000Z | source/bazel/deps/fast_io/get.bzl | UniLang/compiler | c338ee92994600af801033a37dfb2f1a0c9ca897 | [
"MIT"
] | null | null | null | # Do not edit this file directly.
# It was auto-generated by: code/programs/reflexivity/reflexive_refresh
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_file")
def fastIo():
http_archive(
name = "fast_io",
build_file ... | 38.705882 | 105 | 0.712766 | 71 | 658 | 6.408451 | 0.605634 | 0.052747 | 0.061538 | 0.083516 | 0.189011 | 0.189011 | 0.189011 | 0.189011 | 0.189011 | 0.189011 | 0 | 0.167273 | 0.164134 | 658 | 16 | 106 | 41.125 | 0.66 | 0.153495 | 0 | 0 | 1 | 0 | 0.631769 | 0.418773 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | true | 0 | 0 | 0 | 0.083333 | 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 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
934a7e8ea291f600c20f748cee60d2318f44094c | 95 | py | Python | example/test_keepers/gym_interface/bookkeeper.py | RubenvanHeusden/HFO-Robotkeeper | 03bbe1170d703b7f264ef245b99a0ced2759ed39 | [
"MIT"
] | null | null | null | example/test_keepers/gym_interface/bookkeeper.py | RubenvanHeusden/HFO-Robotkeeper | 03bbe1170d703b7f264ef245b99a0ced2759ed39 | [
"MIT"
] | null | null | null | example/test_keepers/gym_interface/bookkeeper.py | RubenvanHeusden/HFO-Robotkeeper | 03bbe1170d703b7f264ef245b99a0ced2759ed39 | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
class BookKeeper:
def __init__(self):
pass
| 13.571429 | 23 | 0.684211 | 14 | 95 | 4.357143 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.273684 | 95 | 6 | 24 | 15.833333 | 0.884058 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.2 | 0.4 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 4 |
935d0ea75b4ea577f851e5b997d0c1c3cb2cb7c5 | 1,556 | py | Python | voter_location/districts/migrations/0001_initial.py | johnshiver/vote_location | 95330bec5060f83fe2f2fe582f8ec63f740b035b | [
"MIT"
] | null | null | null | voter_location/districts/migrations/0001_initial.py | johnshiver/vote_location | 95330bec5060f83fe2f2fe582f8ec63f740b035b | [
"MIT"
] | null | null | null | voter_location/districts/migrations/0001_initial.py | johnshiver/vote_location | 95330bec5060f83fe2f2fe582f8ec63f740b035b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-03-05 00:43
from __future__ import unicode_literals
import django.contrib.gis.db.models.fields
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migra... | 38.9 | 114 | 0.577763 | 161 | 1,556 | 5.434783 | 0.440994 | 0.257143 | 0.308571 | 0.411429 | 0.393143 | 0.068571 | 0 | 0 | 0 | 0 | 0 | 0.043478 | 0.275707 | 1,556 | 39 | 115 | 39.897436 | 0.732919 | 0.043702 | 0 | 0 | 1 | 0 | 0.081481 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.096774 | 0 | 0.225806 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
fa7fb888db581e0528b96c38c402b129977e14f9 | 171 | py | Python | tests/web_platform/css_grid_1/grid_items/test_grid_items_sizing_alignment.py | jonboland/colosseum | cbf974be54fd7f6fddbe7285704cfaf7a866c5c5 | [
"BSD-3-Clause"
] | 71 | 2015-04-13T09:44:14.000Z | 2019-03-24T01:03:02.000Z | tests/web_platform/css_grid_1/grid_items/test_grid_items_sizing_alignment.py | jonboland/colosseum | cbf974be54fd7f6fddbe7285704cfaf7a866c5c5 | [
"BSD-3-Clause"
] | 35 | 2019-05-06T15:26:09.000Z | 2022-03-28T06:30:33.000Z | tests/web_platform/css_grid_1/grid_items/test_grid_items_sizing_alignment.py | jonboland/colosseum | cbf974be54fd7f6fddbe7285704cfaf7a866c5c5 | [
"BSD-3-Clause"
] | 139 | 2015-05-30T18:37:43.000Z | 2019-03-27T17:14:05.000Z | from tests.utils import W3CTestCase
class TestGridItemsSizingAlignment(W3CTestCase):
vars().update(W3CTestCase.find_tests(__file__, 'grid-items-sizing-alignment-'))
| 28.5 | 83 | 0.807018 | 18 | 171 | 7.388889 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019108 | 0.081871 | 171 | 5 | 84 | 34.2 | 0.828025 | 0 | 0 | 0 | 0 | 0 | 0.163743 | 0.163743 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
fa8d53f9fa884b4599a8e318ab444d0d4fe2a6c2 | 121 | py | Python | src/plugins/radeky_bot/utils/bilibiliuploader/__init__.py | Radekyspec/Radeky_bot | 24ee088026c7443723a5e9c72abfb512ca3b3327 | [
"MIT"
] | 4 | 2021-12-25T10:17:13.000Z | 2022-03-03T03:29:07.000Z | src/plugins/radeky_bot/utils/bilibiliuploader/__init__.py | Radekyspec/Radeky_bot | 24ee088026c7443723a5e9c72abfb512ca3b3327 | [
"MIT"
] | null | null | null | src/plugins/radeky_bot/utils/bilibiliuploader/__init__.py | Radekyspec/Radeky_bot | 24ee088026c7443723a5e9c72abfb512ca3b3327 | [
"MIT"
] | 1 | 2021-12-25T10:17:16.000Z | 2021-12-25T10:17:16.000Z | from .bilibiliuploader import BilibiliUploader
from .core import VideoPart
from . import BiliAuth
__version__ = '0.0.6'
| 20.166667 | 46 | 0.801653 | 15 | 121 | 6.2 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028571 | 0.132231 | 121 | 5 | 47 | 24.2 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0.041322 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
fa8e533d9b6e1e1eb0f723662c70c4175b53f1b6 | 68 | py | Python | create_database.py | project-nichijou/nichijou-db-tools | e75322415117d11d1453955fced6e5d6141ec1c6 | [
"MIT"
] | null | null | null | create_database.py | project-nichijou/nichijou-db-tools | e75322415117d11d1453955fced6e5d6141ec1c6 | [
"MIT"
] | null | null | null | create_database.py | project-nichijou/nichijou-db-tools | e75322415117d11d1453955fced6e5d6141ec1c6 | [
"MIT"
] | null | null | null | from database.database import NichijouDatabase
NichijouDatabase()
| 13.6 | 46 | 0.852941 | 6 | 68 | 9.666667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102941 | 68 | 4 | 47 | 17 | 0.95082 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
fa90edff9589239dd8331c40615642864b778c96 | 140 | py | Python | app/message/views.py | KimKiHyuk/django-boilerplate | 198a02e09366787549c3d7a76a98a0ea916af932 | [
"MIT"
] | null | null | null | app/message/views.py | KimKiHyuk/django-boilerplate | 198a02e09366787549c3d7a76a98a0ea916af932 | [
"MIT"
] | 1 | 2020-12-17T09:54:15.000Z | 2020-12-17T09:54:15.000Z | app/message/views.py | KimKiHyuk/django-boilerplate | 198a02e09366787549c3d7a76a98a0ea916af932 | [
"MIT"
] | null | null | null | from django.shortcuts import render
# Create your views here.
def myfunc_with_events(event, context):
print('here!!!')
print(event) | 23.333333 | 39 | 0.728571 | 19 | 140 | 5.263158 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157143 | 140 | 6 | 40 | 23.333333 | 0.847458 | 0.164286 | 0 | 0 | 0 | 0 | 0.060345 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
faa3c4b97a57f8779239df0a39edceaf0b6a7c49 | 267 | py | Python | MainApp/admin.py | MadhavPruthi/Email-Scraping-from-publication | 7dd289e7ec9f5c19a57ac70ab4bae7bf1c8f9325 | [
"Apache-2.0"
] | 3 | 2021-03-23T03:48:03.000Z | 2021-11-24T04:08:38.000Z | MainApp/admin.py | MadhavPruthi/Email-Scraping-from-publication | 7dd289e7ec9f5c19a57ac70ab4bae7bf1c8f9325 | [
"Apache-2.0"
] | 3 | 2020-06-06T00:17:14.000Z | 2021-06-10T22:23:50.000Z | MainApp/admin.py | MadhavPruthi/Email-Scraping-from-publication | 7dd289e7ec9f5c19a57ac70ab4bae7bf1c8f9325 | [
"Apache-2.0"
] | null | null | null | from django.contrib import admin
from .models import EmailInfo, DOIQuery, EmailInfoJournal, JournalQuery
# Register your models here.
admin.site.register(EmailInfo)
admin.site.register(DOIQuery)
admin.site.register(JournalQuery)
admin.site.register(EmailInfoJournal) | 33.375 | 71 | 0.838951 | 32 | 267 | 7 | 0.4375 | 0.160714 | 0.303571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074906 | 267 | 8 | 72 | 33.375 | 0.906883 | 0.097378 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
faade2e9a3d4624415700e5f831ecdbf559da630 | 118 | py | Python | tests/worker/tests_worker.py | vtalks/twitter_worker | 2a049817b8db5e8357075d101efcd2adea2cc2d2 | [
"Apache-2.0"
] | 1 | 2018-01-29T16:46:32.000Z | 2018-01-29T16:46:32.000Z | tests/worker/tests_worker.py | vtalks/twitter_worker | 2a049817b8db5e8357075d101efcd2adea2cc2d2 | [
"Apache-2.0"
] | 1 | 2018-02-06T08:07:19.000Z | 2018-02-06T13:41:38.000Z | tests/tests_worker.py | vtalks/updater_worker | 568ee2cecaf2a524dab4bf930c5e3f444c96744a | [
"Apache-2.0"
] | null | null | null | import unittest
class WorkerTest(unittest.TestCase):
def test_dummy(self):
self.assertEqual(True, True) | 16.857143 | 36 | 0.720339 | 14 | 118 | 6 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.186441 | 118 | 7 | 37 | 16.857143 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
fadc80cc24c92b0d42c901d381ac789348ca518e | 69 | py | Python | contests/atcoder/abc063/a.py | conao3/coder | 2cdb610fec013da88a3470d460108e8a9b462445 | [
"CC0-1.0"
] | null | null | null | contests/atcoder/abc063/a.py | conao3/coder | 2cdb610fec013da88a3470d460108e8a9b462445 | [
"CC0-1.0"
] | null | null | null | contests/atcoder/abc063/a.py | conao3/coder | 2cdb610fec013da88a3470d460108e8a9b462445 | [
"CC0-1.0"
] | null | null | null | a, b = map(int, input().split())
print(a+b if a+b <= 9 else 'error')
| 23 | 35 | 0.565217 | 15 | 69 | 2.6 | 0.733333 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017544 | 0.173913 | 69 | 2 | 36 | 34.5 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0.072464 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
faeb32e215de2ea849498abb814dd23789f0c1fb | 93 | py | Python | test_frame/test_broker_kafka/kafka_publisher_test.py | DJMIN/funboost | 7570ca2909bb0b44a1080f5f98aa96c86d3da9d4 | [
"Apache-2.0"
] | 333 | 2019-08-08T10:25:27.000Z | 2022-03-30T07:32:04.000Z | test_frame/test_broker_kafka/kafka_publisher_test.py | mooti-barry/funboost | 2cd9530e2c4e5a52fc921070d243d402adbc3a0e | [
"Apache-2.0"
] | 38 | 2020-04-24T01:47:51.000Z | 2021-12-20T07:22:15.000Z | test_frame/test_broker_kafka/kafka_publisher_test.py | mooti-barry/funboost | 2cd9530e2c4e5a52fc921070d243d402adbc3a0e | [
"Apache-2.0"
] | 84 | 2019-08-09T11:51:14.000Z | 2022-03-02T06:29:09.000Z | from kafka_cosumer_test import f
# i = 203
# f.push(i)
for i in range(200):
f.push(i)
| 10.333333 | 32 | 0.634409 | 19 | 93 | 3 | 0.684211 | 0.175439 | 0.210526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084507 | 0.236559 | 93 | 8 | 33 | 11.625 | 0.71831 | 0.182796 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
4f0593669854c9f3091d4f7782d98374183bc61a | 102 | py | Python | rotkehlchen/chain/ethereum/modules/kyber/__init__.py | rotkehlchenio/rotkehlchen | 98f49cd3ed26c641fec03b78eff9fe1872385fbf | [
"BSD-3-Clause"
] | 137 | 2018-03-05T11:53:29.000Z | 2019-11-03T16:38:42.000Z | rotkehlchen/chain/ethereum/modules/kyber/__init__.py | rotkehlchenio/rotkehlchen | 98f49cd3ed26c641fec03b78eff9fe1872385fbf | [
"BSD-3-Clause"
] | 385 | 2018-03-08T12:43:41.000Z | 2019-11-10T09:15:36.000Z | rotkehlchen/chain/ethereum/modules/kyber/__init__.py | rotkehlchenio/rotkehlchen | 98f49cd3ed26c641fec03b78eff9fe1872385fbf | [
"BSD-3-Clause"
] | 59 | 2018-03-08T10:08:27.000Z | 2019-10-26T11:30:44.000Z | from .accountant import KyberAccountant # noqa: F401
from .decoder import KyberDecoder # noqa: F401
| 34 | 53 | 0.784314 | 12 | 102 | 6.666667 | 0.666667 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069767 | 0.156863 | 102 | 2 | 54 | 51 | 0.860465 | 0.205882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
8799945f1b26293a1ea599946a4588564d26b901 | 199 | py | Python | SimGeneral/MixingModule/python/stripDigitizer_APVModeDec_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | SimGeneral/MixingModule/python/stripDigitizer_APVModeDec_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | SimGeneral/MixingModule/python/stripDigitizer_APVModeDec_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
# Silicon Strip Digitizer running with APV Mode Deconvolution
from SimGeneral.MixingModule.stripDigitizer_cfi import *
stripDigitizer.APVpeakmode = False
| 22.111111 | 61 | 0.839196 | 23 | 199 | 7.217391 | 0.913043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.120603 | 199 | 8 | 62 | 24.875 | 0.948571 | 0.296482 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
87a6655695a8875249cc76f99605f67be5fdbbe3 | 69 | py | Python | compemu/__init__.py | trslater/compemu | a89730b1f82909772951d0c9111c07a136c6805d | [
"MIT"
] | null | null | null | compemu/__init__.py | trslater/compemu | a89730b1f82909772951d0c9111c07a136c6805d | [
"MIT"
] | null | null | null | compemu/__init__.py | trslater/compemu | a89730b1f82909772951d0c9111c07a136c6805d | [
"MIT"
] | null | null | null | """.. include:: ../README.md
.. include:: ../docs/design-notes.md"""
| 23 | 39 | 0.565217 | 8 | 69 | 4.875 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086957 | 69 | 2 | 40 | 34.5 | 0.619048 | 0.898551 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
87b0e459515b0b46ac41824d96e5f7f57f3ce85a | 245 | py | Python | p2/storage/local/apps.py | BeryJu/p2 | 80b5c6a821f90cef73d6e8cd3c6cdb05ffa86b27 | [
"MIT"
] | null | null | null | p2/storage/local/apps.py | BeryJu/p2 | 80b5c6a821f90cef73d6e8cd3c6cdb05ffa86b27 | [
"MIT"
] | null | null | null | p2/storage/local/apps.py | BeryJu/p2 | 80b5c6a821f90cef73d6e8cd3c6cdb05ffa86b27 | [
"MIT"
] | null | null | null | """p2 LocalStorage App Config"""
from django.apps import AppConfig
class P2LocalStorageConfig(AppConfig):
"""p2 LocalStorage App Config"""
name = 'p2.storage.local'
label = 'p2_storage_local'
verbose_name = 'p2 Local Storage'
| 22.272727 | 38 | 0.710204 | 29 | 245 | 5.896552 | 0.551724 | 0.163743 | 0.19883 | 0.269006 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029851 | 0.179592 | 245 | 10 | 39 | 24.5 | 0.820896 | 0.216327 | 0 | 0 | 0 | 0 | 0.265193 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
87c7b1f2ca0c8b602b17b25ffcd5c91632c79f38 | 167 | py | Python | networkx-neo4j/nxneo4j/graph.py | KMS-TEAM/MyKMS | 6baacc476ad21945858f77c573fe910b40cf6d12 | [
"MIT"
] | 97 | 2018-04-24T07:29:08.000Z | 2022-03-13T21:29:40.000Z | networkx-neo4j/nxneo4j/graph.py | KMS-TEAM/MyKMS | 6baacc476ad21945858f77c573fe910b40cf6d12 | [
"MIT"
] | 3 | 2019-02-12T13:00:54.000Z | 2020-04-06T23:34:29.000Z | networkx-neo4j/nxneo4j/graph.py | KMS-TEAM/MyKMS | 6baacc476ad21945858f77c573fe910b40cf6d12 | [
"MIT"
] | 18 | 2018-10-16T07:28:27.000Z | 2021-12-06T11:33:23.000Z | from nxneo4j.base_graph import BaseGraph
class Graph(BaseGraph):
def __init__(self, driver, config=None):
super().__init__(driver, "UNDIRECTED", config)
| 23.857143 | 54 | 0.724551 | 20 | 167 | 5.6 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007143 | 0.161677 | 167 | 6 | 55 | 27.833333 | 0.792857 | 0 | 0 | 0 | 0 | 0 | 0.05988 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
87d0f0eb829f4abb6334d275b82336e20da62e06 | 22,663 | py | Python | src/preprocessing/filteringbordersimages.py | AntonioGUJ/AirwaySegmentation_Keras | 7da4c88dfde6f0dd2f8f181b2d3fd07dc2d28638 | [
"MIT"
] | 15 | 2021-04-09T12:42:35.000Z | 2022-03-22T09:01:57.000Z | src/preprocessing/filteringbordersimages.py | id-b3/bronchinet | 5acf5243da2a0e38041bbbf2ffd033291eff13a4 | [
"MIT"
] | 13 | 2021-03-31T11:16:12.000Z | 2022-02-10T06:11:16.000Z | src/preprocessing/filteringbordersimages.py | id-b3/bronchinet | 5acf5243da2a0e38041bbbf2ffd033291eff13a4 | [
"MIT"
] | 9 | 2021-04-13T13:27:51.000Z | 2022-02-25T07:03:25.000Z |
from typing import Tuple, List, Union
import numpy as np
from common.exceptionmanager import catch_error_exception
from common.functionutil import ImagesUtil
from imageoperators.boundingboxes import BoundingBoxes, BoundBox3DType, BoundBox2DType
from preprocessing.imagegenerator import ImageGenerator
TYPES_FILTERING_... | 64.566952 | 119 | 0.672594 | 2,945 | 22,663 | 4.633277 | 0.061121 | 0.024185 | 0.06823 | 0.052327 | 0.791059 | 0.758959 | 0.722316 | 0.708465 | 0.665225 | 0.619934 | 0 | 0.009396 | 0.248599 | 22,663 | 350 | 120 | 64.751429 | 0.791884 | 0.045404 | 0 | 0.275362 | 0 | 0 | 0.013096 | 0.001759 | 0 | 0 | 0 | 0 | 0 | 1 | 0.097826 | false | 0 | 0.021739 | 0.036232 | 0.188406 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
87d36b47e8214b18770c87bac3b8bfb16cebbf45 | 103 | py | Python | server/main.py | kleanlins/wireless-paint | d45e7a50dbe9a093610ae74c236321f6cfad2f24 | [
"MIT"
] | null | null | null | server/main.py | kleanlins/wireless-paint | d45e7a50dbe9a093610ae74c236321f6cfad2f24 | [
"MIT"
] | null | null | null | server/main.py | kleanlins/wireless-paint | d45e7a50dbe9a093610ae74c236321f6cfad2f24 | [
"MIT"
] | null | null | null | from image import image_to_binary
from sender import modulate
img = image_to_binary("app")
print(img)
| 17.166667 | 33 | 0.805825 | 17 | 103 | 4.647059 | 0.588235 | 0.177215 | 0.329114 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126214 | 103 | 5 | 34 | 20.6 | 0.877778 | 0 | 0 | 0 | 0 | 0 | 0.029126 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0.25 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
87d9c772ccba0633952be2ddce77880a6a4a1ef6 | 78 | py | Python | src/class_resolver/contrib/__init__.py | rusty1s/class-resolver | b97ca43aff802141f390b6ca140f36016d287250 | [
"MIT"
] | 3 | 2022-02-10T17:45:24.000Z | 2022-02-12T12:24:55.000Z | src/class_resolver/contrib/__init__.py | rusty1s/class-resolver | b97ca43aff802141f390b6ca140f36016d287250 | [
"MIT"
] | null | null | null | src/class_resolver/contrib/__init__.py | rusty1s/class-resolver | b97ca43aff802141f390b6ca140f36016d287250 | [
"MIT"
] | 1 | 2022-02-15T08:14:04.000Z | 2022-02-15T08:14:04.000Z | # -*- coding: utf-8 -*-
"""Class resolvers that require external imports."""
| 19.5 | 52 | 0.641026 | 9 | 78 | 5.555556 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015152 | 0.153846 | 78 | 3 | 53 | 26 | 0.742424 | 0.884615 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
87dbcfff422a7f0079a6d7b58fa07fc6b60151f0 | 3,650 | py | Python | tests/test_old_input.py | alex-oleshkevich/kupala | 2cbf566fb601631afc4fc1ec90384502ef546ce8 | [
"MIT"
] | 8 | 2021-05-26T00:17:21.000Z | 2022-03-28T13:15:22.000Z | tests/test_old_input.py | alex-oleshkevich/kupala | 1c45b537846cec23480396ce7afac05baf83300d | [
"MIT"
] | 10 | 2021-11-06T16:56:43.000Z | 2022-03-28T13:15:02.000Z | tests/test_old_input.py | alex-oleshkevich/kupala | 2cbf566fb601631afc4fc1ec90384502ef546ce8 | [
"MIT"
] | null | null | null | from starsessions import SessionMiddleware
from kupala.application import Kupala
from kupala.requests import Request
from kupala.responses import JSONResponse, RedirectResponse
from kupala.routing import Route
from kupala.testclient import TestClient
async def set_view(request: Request) -> RedirectResponse:
awai... | 30.165289 | 114 | 0.61726 | 420 | 3,650 | 5.197619 | 0.2 | 0.076958 | 0.065964 | 0.038937 | 0.803023 | 0.721484 | 0.710032 | 0.659643 | 0.626202 | 0.626202 | 0 | 0.005049 | 0.240274 | 3,650 | 120 | 115 | 30.416667 | 0.782185 | 0.081918 | 0 | 0.588889 | 0 | 0 | 0.126718 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 1 | 0.066667 | false | 0 | 0.066667 | 0.022222 | 0.177778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 4 |
87e0fade4b4e28d11518990dc480d70e4a501644 | 127 | py | Python | django-simple-captcha/testproject/forms.py | teeworldsCNFun/upTee | 1c04b7421f4834f83bbb9f59f43dfebac08e56b0 | [
"BSD-3-Clause"
] | null | null | null | django-simple-captcha/testproject/forms.py | teeworldsCNFun/upTee | 1c04b7421f4834f83bbb9f59f43dfebac08e56b0 | [
"BSD-3-Clause"
] | null | null | null | django-simple-captcha/testproject/forms.py | teeworldsCNFun/upTee | 1c04b7421f4834f83bbb9f59f43dfebac08e56b0 | [
"BSD-3-Clause"
] | null | null | null | from django import forms
from captcha.fields import CaptchaField
class CaptchaForm(forms.Form):
captcha = CaptchaField()
| 21.166667 | 40 | 0.787402 | 15 | 127 | 6.666667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149606 | 127 | 5 | 41 | 25.4 | 0.925926 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 4 |
3562d53aabcaadecdf60d125f0df4a15c454cbb7 | 205 | py | Python | graphql/language/tests/test_location.py | ThanksBoomerang/graphql-core-legacy | 6e2fbccdec655ce9122b84d3808c14242c4e6b96 | [
"MIT"
] | 8 | 2020-03-23T21:34:02.000Z | 2021-11-12T11:27:45.000Z | graphql/language/tests/test_location.py | ThanksBoomerang/graphql-core-legacy | 6e2fbccdec655ce9122b84d3808c14242c4e6b96 | [
"MIT"
] | 17 | 2020-03-14T22:22:29.000Z | 2022-03-16T19:26:37.000Z | graphql/language/tests/test_location.py | ThanksBoomerang/graphql-core-legacy | 6e2fbccdec655ce9122b84d3808c14242c4e6b96 | [
"MIT"
] | 17 | 2020-03-23T12:06:23.000Z | 2022-02-13T05:33:32.000Z | from graphql.language.location import SourceLocation
def test_repr_source_location():
# type: () -> None
loc = SourceLocation(10, 25)
assert repr(loc) == "SourceLocation(line=10, column=25)"
| 25.625 | 60 | 0.707317 | 25 | 205 | 5.68 | 0.72 | 0.239437 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046784 | 0.165854 | 205 | 7 | 61 | 29.285714 | 0.783626 | 0.078049 | 0 | 0 | 0 | 0 | 0.181818 | 0.122995 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
357205db8038bcfae6a4d48fc64b7045e7826c48 | 145,964 | py | Python | lib/kb_SetUtilities/kb_SetUtilitiesImpl.py | kbaseapps/kb_SetUtilities | 1d093bc1c3b896a541b850cd57b606bdea70d066 | [
"MIT"
] | null | null | null | lib/kb_SetUtilities/kb_SetUtilitiesImpl.py | kbaseapps/kb_SetUtilities | 1d093bc1c3b896a541b850cd57b606bdea70d066 | [
"MIT"
] | 22 | 2017-09-06T18:51:48.000Z | 2021-09-14T18:58:34.000Z | lib/kb_SetUtilities/kb_SetUtilitiesImpl.py | kbaseapps/kb_SetUtilities | 1d093bc1c3b896a541b850cd57b606bdea70d066 | [
"MIT"
] | 3 | 2017-08-28T18:35:34.000Z | 2019-02-19T16:44:17.000Z | # -*- coding: utf-8 -*-
#BEGIN_HEADER
import os
import re
import sys
from datetime import datetime
from pprint import pformat # ,pprint
from installed_clients.KBaseReportClient import KBaseReport
from installed_clients.SetAPIServiceClient import SetAPI
from installed_clients.WorkspaceClient import Workspace as worksp... | 47.406301 | 202 | 0.56107 | 15,408 | 145,964 | 5.023884 | 0.033035 | 0.016458 | 0.030384 | 0.012764 | 0.802591 | 0.758836 | 0.721838 | 0.699798 | 0.683573 | 0.65855 | 0 | 0.00191 | 0.34366 | 145,964 | 3,078 | 203 | 47.421702 | 0.80609 | 0.189773 | 0 | 0.572699 | 0 | 0 | 0.177276 | 0.030023 | 0.00523 | 0 | 0 | 0 | 0 | 1 | 0.016736 | false | 0.002615 | 0.004184 | 0 | 0.040795 | 0.001046 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 4 |
35cb2c89087bbacddf3ebd726b509119055415cb | 169 | py | Python | deui/html/view/strong_element.py | urushiyama/DeUI | 14530d2dae7d96a3dee30759f85e02239fb433c5 | [
"MIT"
] | 1 | 2021-10-17T01:54:18.000Z | 2021-10-17T01:54:18.000Z | deui/html/view/strong_element.py | urushiyama/DeUI | 14530d2dae7d96a3dee30759f85e02239fb433c5 | [
"MIT"
] | null | null | null | deui/html/view/strong_element.py | urushiyama/DeUI | 14530d2dae7d96a3dee30759f85e02239fb433c5 | [
"MIT"
] | null | null | null | from .element import Element
class Strong(Element):
"""
Represents content that has strong importance.
"""
def __str__(self):
return "strong"
| 15.363636 | 50 | 0.639053 | 18 | 169 | 5.777778 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.266272 | 169 | 10 | 51 | 16.9 | 0.83871 | 0.272189 | 0 | 0 | 0 | 0 | 0.056075 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.25 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
35d6adc68889ed358b010a0cd2ed31f599f10743 | 154 | py | Python | World/Chat/Constants/ChatTag.py | sergio-ivanuzzo/idewave-core | 31b2b2ec4ac222e02af57d8b2d7a3277e4a444ae | [
"Apache-2.0"
] | 10 | 2019-06-29T19:24:52.000Z | 2021-02-21T22:45:57.000Z | World/Chat/Constants/ChatTag.py | sergio-ivanuzzo/wowcore | 31b2b2ec4ac222e02af57d8b2d7a3277e4a444ae | [
"Apache-2.0"
] | 4 | 2019-08-15T07:03:36.000Z | 2021-06-02T13:01:25.000Z | World/Chat/Constants/ChatTag.py | sergio-ivanuzzo/idewave-core | 31b2b2ec4ac222e02af57d8b2d7a3277e4a444ae | [
"Apache-2.0"
] | 8 | 2019-06-30T22:47:48.000Z | 2021-02-20T19:21:30.000Z | from enum import Enum
class ChatTag(Enum):
NONE = 0x00
AFK = 0x01
DND = 0x02
GM = 0x04
| 15.4 | 26 | 0.402597 | 15 | 154 | 4.133333 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173913 | 0.551948 | 154 | 9 | 27 | 17.111111 | 0.724638 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103896 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
35e82d4ef4d49785aa34c3af635ba146f1224411 | 188 | py | Python | lib/python3.4/site-packages/flask/testsuite/test_apps/moduleapp/__init__.py | LChristakis/chalice-hunter | 6bffea4620e23ce9ff12ac30526ebafcb9c10058 | [
"MIT"
] | 21,684 | 2015-01-01T03:42:20.000Z | 2022-03-30T13:32:44.000Z | lib/python3.4/site-packages/flask/testsuite/test_apps/moduleapp/__init__.py | LChristakis/chalice-hunter | 6bffea4620e23ce9ff12ac30526ebafcb9c10058 | [
"MIT"
] | 4,067 | 2015-01-01T00:04:51.000Z | 2022-03-30T13:42:56.000Z | lib/python3.4/site-packages/flask/testsuite/test_apps/moduleapp/__init__.py | LChristakis/chalice-hunter | 6bffea4620e23ce9ff12ac30526ebafcb9c10058 | [
"MIT"
] | 1,901 | 2015-01-01T21:05:59.000Z | 2022-03-21T08:14:25.000Z | from flask import Flask
app = Flask(__name__)
from moduleapp.apps.admin import admin
from moduleapp.apps.frontend import frontend
app.register_module(admin)
app.register_module(frontend)
| 23.5 | 44 | 0.835106 | 27 | 188 | 5.592593 | 0.407407 | 0.172185 | 0.225166 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095745 | 188 | 7 | 45 | 26.857143 | 0.888235 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
ea05a0b0b7b3805abfea825f39a9266acff20b20 | 301 | py | Python | torchvision/models/segmentation/segmentation.py | willfrey/vision | 56fb0bf5796ac374d4e353032e418236cd73c554 | [
"BSD-3-Clause"
] | 1 | 2022-03-08T14:11:12.000Z | 2022-03-08T14:11:12.000Z | torchvision/models/segmentation/segmentation.py | willfrey/vision | 56fb0bf5796ac374d4e353032e418236cd73c554 | [
"BSD-3-Clause"
] | null | null | null | torchvision/models/segmentation/segmentation.py | willfrey/vision | 56fb0bf5796ac374d4e353032e418236cd73c554 | [
"BSD-3-Clause"
] | null | null | null | import warnings
# Import all methods/classes for BC:
from . import * # noqa: F401, F403
warnings.warn(
"The 'torchvision.models.segmentation.segmentation' module is deprecated since 0.12 and will be removed in "
"0.14. Please use the 'torchvision.models.segmentation' directly instead."
)
| 27.363636 | 112 | 0.740864 | 41 | 301 | 5.439024 | 0.780488 | 0.125561 | 0.179372 | 0.286996 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047809 | 0.166113 | 301 | 10 | 113 | 30.1 | 0.840637 | 0.169435 | 0 | 0 | 0 | 0.166667 | 0.720648 | 0.319838 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
ea06975e629b07547da6955b29533a5ebf27238d | 231 | py | Python | models/taster_exceptions.py | awesome-archive/MusicTaster | 5833fc1802c0182598053a35e04a5c192895638b | [
"MIT"
] | 45 | 2017-02-26T12:24:47.000Z | 2021-12-13T07:41:32.000Z | models/taster_exceptions.py | awesome-archive/MusicTaster | 5833fc1802c0182598053a35e04a5c192895638b | [
"MIT"
] | null | null | null | models/taster_exceptions.py | awesome-archive/MusicTaster | 5833fc1802c0182598053a35e04a5c192895638b | [
"MIT"
] | 17 | 2017-05-12T10:17:12.000Z | 2021-04-17T14:27:41.000Z | # coding=utf-8
"""
Created by jayvee on 16/12/22.
"""
class NonDataException(IOError):
"""
无法获取到数据时的异常
"""
def __init__(self, msg):
self.message = msg
def __str__(self):
return self.message
| 12.833333 | 32 | 0.584416 | 27 | 231 | 4.703704 | 0.777778 | 0.173228 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042169 | 0.281385 | 231 | 17 | 33 | 13.588235 | 0.722892 | 0.242424 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0.2 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
ea099d5689ea4563e3d4442ca0df54d1f3e695d7 | 743 | py | Python | numba/tests/builtins/test_builtin_pow.py | liuzhenhai/numba | 855a2b262ae3d82bd6ac1c3e1c0acb36ee2e2acf | [
"BSD-2-Clause"
] | null | null | null | numba/tests/builtins/test_builtin_pow.py | liuzhenhai/numba | 855a2b262ae3d82bd6ac1c3e1c0acb36ee2e2acf | [
"BSD-2-Clause"
] | null | null | null | numba/tests/builtins/test_builtin_pow.py | liuzhenhai/numba | 855a2b262ae3d82bd6ac1c3e1c0acb36ee2e2acf | [
"BSD-2-Clause"
] | null | null | null | """
>>> pow3(2,3,5) == 3
True
>>> pow3(3,3,5) == 2
True
>>> pow3_const() == 3
True
>>> pow2(2,3) == 8
True
>>> pow2(3,3) == 27
True
>>> pow2_const() == 8
True
>>> c1, c2 = 1.2 + 4.1j, 0.6 + 0.5j
>>> allclose(pow2(c1, c2), pow(c1, c2))
True
>>> d1, d2 = 4.2, 5.1
>>> allclose(pow2(d1, d2), pow(d1, d2))
True
"""
fro... | 14.568627 | 52 | 0.58681 | 128 | 743 | 3.3125 | 0.320313 | 0.018868 | 0.160377 | 0.188679 | 0.301887 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097521 | 0.185734 | 743 | 50 | 53 | 14.86 | 0.603306 | 0.483176 | 0 | 0.235294 | 0 | 0 | 0.053333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.176471 | 0.235294 | 0.647059 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
ea10c33b2ae5ce0dfe51d6bc0f5038dc514b1cf8 | 334 | py | Python | json_parser.py | ROpdebee/CAA-Auditor | 2fb33f792dcc9ee711ebaf6532e67b85ff79cd40 | [
"MIT"
] | null | null | null | json_parser.py | ROpdebee/CAA-Auditor | 2fb33f792dcc9ee711ebaf6532e67b85ff79cd40 | [
"MIT"
] | null | null | null | json_parser.py | ROpdebee/CAA-Auditor | 2fb33f792dcc9ee711ebaf6532e67b85ff79cd40 | [
"MIT"
] | null | null | null | from typing import Any
try:
from json_parser_cysimdjson import JSONArray, JSONObject, parse, parse_str, safe_get, to_native
except ImportError:
print('Using slow built-in json parsing, install cysimdjson')
from json_parser_builtin import JSONArray, JSONObject, parse, parse_str, safe_get, to_native # type:... | 41.75 | 118 | 0.787425 | 47 | 334 | 5.382979 | 0.617021 | 0.063241 | 0.110672 | 0.237154 | 0.418972 | 0.418972 | 0.418972 | 0.418972 | 0.418972 | 0.418972 | 0 | 0 | 0.146707 | 334 | 7 | 119 | 47.714286 | 0.887719 | 0.053892 | 0 | 0 | 0 | 0 | 0.165605 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
ea1d5a72a33ed813ed8f86e0ab2a8e0690d3321c | 180 | py | Python | post/admin.py | rezaul99/Sample-Django-Project | d087d3fd419139ec7f3c934ae89eaca4e75b3f8e | [
"Apache-2.0"
] | 1 | 2019-02-17T18:31:07.000Z | 2019-02-17T18:31:07.000Z | post/admin.py | rezaul99/Sample-Django-Project | d087d3fd419139ec7f3c934ae89eaca4e75b3f8e | [
"Apache-2.0"
] | null | null | null | post/admin.py | rezaul99/Sample-Django-Project | d087d3fd419139ec7f3c934ae89eaca4e75b3f8e | [
"Apache-2.0"
] | null | null | null | from django.contrib import admin
from .models import *
@admin.register(BlogPost)
class BlogPostAdmin(admin.ModelAdmin):
list_display = [f.name for f in BlogPost._meta.fields]
| 25.714286 | 58 | 0.777778 | 25 | 180 | 5.52 | 0.76 | 0.15942 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127778 | 180 | 6 | 59 | 30 | 0.878981 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
ea4291465aee10dab088c323e29dfc5454f0286b | 182 | py | Python | pylas/lasdatas/las12.py | weyerhaeuser/pylas | 8b0e266bf65e40906128979546de97093aaeadeb | [
"BSD-3-Clause"
] | 2 | 2021-03-11T20:19:39.000Z | 2021-08-18T08:31:49.000Z | pylas/lasdatas/las12.py | weyerhaeuser/pylas | 8b0e266bf65e40906128979546de97093aaeadeb | [
"BSD-3-Clause"
] | null | null | null | pylas/lasdatas/las12.py | weyerhaeuser/pylas | 8b0e266bf65e40906128979546de97093aaeadeb | [
"BSD-3-Clause"
] | null | null | null | from .base import LasBase
class LasData(LasBase):
def __init__(self, *, header=None, vlrs=None, points=None):
super().__init__(header=header, vlrs=vlrs, points=points)
| 26 | 65 | 0.703297 | 24 | 182 | 5 | 0.583333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159341 | 182 | 6 | 66 | 30.333333 | 0.784314 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
579eb50459cde106f96279f3256b79641cfa9927 | 201 | py | Python | testcgi2.py | tyrell81/webuipi | c0bb320cd27cebfcf36019faaac443d777fd1717 | [
"MIT"
] | null | null | null | testcgi2.py | tyrell81/webuipi | c0bb320cd27cebfcf36019faaac443d777fd1717 | [
"MIT"
] | null | null | null | testcgi2.py | tyrell81/webuipi | c0bb320cd27cebfcf36019faaac443d777fd1717 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys, os, re, shutil, json, urllib, urllib2, cgi
# Fix issues with decoding HTTP responses
#reload(sys)
#sys.setdefaultencoding('utf8')
cgi.test()
| 20.1 | 54 | 0.691542 | 29 | 201 | 4.793103 | 0.896552 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017341 | 0.139303 | 201 | 9 | 55 | 22.333333 | 0.786127 | 0.61194 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
57af9df4dbfe6db94716caa772ab5f4f6c761876 | 34 | py | Python | homeassistant/components/crimereports/__init__.py | domwillcode/home-assistant | f170c80bea70c939c098b5c88320a1c789858958 | [
"Apache-2.0"
] | 23 | 2017-11-15T21:03:53.000Z | 2021-03-29T21:33:48.000Z | homeassistant/components/crimereports/__init__.py | domwillcode/home-assistant | f170c80bea70c939c098b5c88320a1c789858958 | [
"Apache-2.0"
] | 57 | 2020-10-15T06:47:00.000Z | 2022-03-31T06:11:18.000Z | homeassistant/components/crimereports/__init__.py | klauern/home-assistant-core | c18ba6aec0627e6afb6442c678edb5ff2bb17db6 | [
"Apache-2.0"
] | 14 | 2018-08-19T16:28:26.000Z | 2021-09-02T18:26:53.000Z | """The crimereports component."""
| 17 | 33 | 0.705882 | 3 | 34 | 8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088235 | 34 | 1 | 34 | 34 | 0.774194 | 0.794118 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
57c6c9bbe3c9715d0b69e477e1ef3a84b0ad6574 | 58 | py | Python | unittest/loader_simple/tests/__init__.py | kumarstack55/python-playground | f152ce42cf663804ef217261402058cead0b726c | [
"MIT"
] | null | null | null | unittest/loader_simple/tests/__init__.py | kumarstack55/python-playground | f152ce42cf663804ef217261402058cead0b726c | [
"MIT"
] | null | null | null | unittest/loader_simple/tests/__init__.py | kumarstack55/python-playground | f152ce42cf663804ef217261402058cead0b726c | [
"MIT"
] | null | null | null | #import unittest
#from tests.test_add import MyTestCase
| 11.6 | 38 | 0.810345 | 8 | 58 | 5.75 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137931 | 58 | 4 | 39 | 14.5 | 0.92 | 0.896552 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
17bf75caa629fffdb87a54d97d216827f269ada4 | 930 | py | Python | src/pycropml/transpiler/antlr_py/grammars/CommentsVisitor.py | AgriculturalModelExchangeInitiative/PyCropML | 2eb330297d0765771c3b240e1936eb1110d47972 | [
"MIT"
] | 3 | 2018-01-22T15:33:44.000Z | 2018-08-02T20:40:40.000Z | src/pycropml/transpiler/antlr_py/grammars/CommentsVisitor.py | AgriculturalModelExchangeInitiative/PyCropML | 2eb330297d0765771c3b240e1936eb1110d47972 | [
"MIT"
] | 24 | 2018-01-22T12:18:15.000Z | 2018-11-19T12:55:18.000Z | src/pycropml/transpiler/antlr_py/grammars/CommentsVisitor.py | AgriculturalModelExchangeInitiative/PyCropML | 2eb330297d0765771c3b240e1936eb1110d47972 | [
"MIT"
] | 1 | 2018-01-25T07:07:09.000Z | 2018-01-25T07:07:09.000Z | # Generated from Comments.g4 by ANTLR 4.8
from antlr4 import *
if __name__ is not None and "." in __name__:
from .CommentsParser import CommentsParser
else:
from CommentsParser import CommentsParser
# This class defines a complete generic visitor for a parse tree produced by CommentsParser.
class CommentsVisi... | 33.214286 | 92 | 0.78172 | 104 | 930 | 6.884615 | 0.471154 | 0.03352 | 0.055866 | 0.100559 | 0.28352 | 0.28352 | 0.236034 | 0.181564 | 0.181564 | 0.181564 | 0 | 0.005141 | 0.163441 | 930 | 28 | 93 | 33.214286 | 0.915167 | 0.339785 | 0 | 0.230769 | 1 | 0 | 0.00165 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.230769 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
17d620c5be9a8568267b2476a1ee8b1771cf7ab6 | 237 | py | Python | utils/__init__.py | koukyo1994/kaggle-rfcx | c3573d014d99312b58882e7b939de6c1055129b1 | [
"MIT"
] | 6 | 2021-02-18T05:18:17.000Z | 2022-02-19T02:49:32.000Z | utils/__init__.py | koukyo1994/kaggle-rfcx | c3573d014d99312b58882e7b939de6c1055129b1 | [
"MIT"
] | null | null | null | utils/__init__.py | koukyo1994/kaggle-rfcx | c3573d014d99312b58882e7b939de6c1055129b1 | [
"MIT"
] | 2 | 2021-02-18T11:31:50.000Z | 2022-02-19T02:49:07.000Z | from .checkpoint import save_best_model, save_model
from .config import load_config
from .jsonutil import save_json
from .logger import get_logger
from .meter import AverageMeter
from .parser import get_parser
from .seed import set_seed
| 29.625 | 51 | 0.843882 | 37 | 237 | 5.189189 | 0.459459 | 0.104167 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122363 | 237 | 7 | 52 | 33.857143 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
aa06c3fb1be100d7a8deac3d0902a412c4a754ad | 166 | py | Python | templateaddons/settings.py | austinbrown34/django-templateaddons3 | c18dd25914a74f129ea5ebf8dd2a09336458fd02 | [
"BSD-3-Clause"
] | null | null | null | templateaddons/settings.py | austinbrown34/django-templateaddons3 | c18dd25914a74f129ea5ebf8dd2a09336458fd02 | [
"BSD-3-Clause"
] | null | null | null | templateaddons/settings.py | austinbrown34/django-templateaddons3 | c18dd25914a74f129ea5ebf8dd2a09336458fd02 | [
"BSD-3-Clause"
] | 3 | 2018-07-16T09:18:47.000Z | 2022-03-16T02:46:33.000Z | from django.conf import settings
TEMPLATEADDONS_COUNTERS_VARIABLE = getattr(settings, 'TEMPLATEADDONS_COUNTER_GLOBAL_VARIABLE', '_templateaddons_counters') # NOQA
| 33.2 | 130 | 0.849398 | 17 | 166 | 7.882353 | 0.705882 | 0.328358 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084337 | 166 | 4 | 131 | 41.5 | 0.881579 | 0.024096 | 0 | 0 | 0 | 0 | 0.3875 | 0.3875 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
aa29ef91d7e92a5eacba8d19a696681100ac5fca | 254 | py | Python | Py93/main.py | xhexe/Py8R | 44238c5403e7f76988760a040bf5c292824c22e7 | [
"WTFPL"
] | null | null | null | Py93/main.py | xhexe/Py8R | 44238c5403e7f76988760a040bf5c292824c22e7 | [
"WTFPL"
] | null | null | null | Py93/main.py | xhexe/Py8R | 44238c5403e7f76988760a040bf5c292824c22e7 | [
"WTFPL"
] | null | null | null | def words_numbers_counter():
entered_value = input("Enter string:")
print("Words:", len(list(filter(lambda x: x.isalpha(), entered_value))))
print("Numbers:", len(list(filter(lambda x: x.isdigit(), entered_value))))
words_numbers_counter()
| 31.75 | 78 | 0.700787 | 34 | 254 | 5.029412 | 0.5 | 0.210526 | 0.222222 | 0.222222 | 0.245614 | 0.245614 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122047 | 254 | 7 | 79 | 36.285714 | 0.766816 | 0 | 0 | 0 | 0 | 0 | 0.106299 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.2 | 0.4 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
aa2ada62f40a26280d5b86bbdb07fb2896c662fc | 43 | pyde | Python | processing/Mod. 9/sketch_9_1_l61/sketch_9_1_l61.pyde | nanam0rgana/2019-fall-polytech-cs | 1a31acb3cf22edc930318dec17324b05dd7788d5 | [
"MIT"
] | null | null | null | processing/Mod. 9/sketch_9_1_l61/sketch_9_1_l61.pyde | nanam0rgana/2019-fall-polytech-cs | 1a31acb3cf22edc930318dec17324b05dd7788d5 | [
"MIT"
] | null | null | null | processing/Mod. 9/sketch_9_1_l61/sketch_9_1_l61.pyde | nanam0rgana/2019-fall-polytech-cs | 1a31acb3cf22edc930318dec17324b05dd7788d5 | [
"MIT"
] | null | null | null | k = random(5,15)
xCoordinate = [k]
print k
| 10.75 | 17 | 0.651163 | 8 | 43 | 3.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085714 | 0.186047 | 43 | 3 | 18 | 14.333333 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.333333 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
a4a9c690a7b67fe1f7939870e81c759c5ddfaa1d | 2,978 | py | Python | mparticle/__init__.py | juviasuisei/mparticle-python-sdk | 2f412da6fb765736c252888b1f3f57c99c4de3b9 | [
"Apache-2.0"
] | 3 | 2020-09-24T19:37:19.000Z | 2021-04-21T15:58:55.000Z | mparticle/__init__.py | juviasuisei/mparticle-python-sdk | 2f412da6fb765736c252888b1f3f57c99c4de3b9 | [
"Apache-2.0"
] | 5 | 2016-12-10T19:24:35.000Z | 2022-03-10T14:45:55.000Z | mparticle/__init__.py | juviasuisei/mparticle-python-sdk | 2f412da6fb765736c252888b1f3f57c99c4de3b9 | [
"Apache-2.0"
] | 6 | 2016-12-20T23:28:36.000Z | 2020-10-14T03:11:41.000Z | # coding: utf-8
"""
mParticle
mParticle Event API
OpenAPI spec version: 1.0.1
Contact: support@mparticle.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance wit... | 40.243243 | 86 | 0.838146 | 386 | 2,978 | 6.316062 | 0.455959 | 0.155865 | 0.022149 | 0.013126 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003044 | 0.117529 | 2,978 | 73 | 87 | 40.794521 | 0.924658 | 0.259234 | 0 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
a4b8c4d8021c72da47828a33f48a0b9cf00abb4e | 43 | py | Python | tempCodeRunnerFile.py | tobby-lie/Russion-Disinformation-Project | 387c283942380c4cf86c24a9278577897f29b2bf | [
"CC-BY-4.0"
] | null | null | null | tempCodeRunnerFile.py | tobby-lie/Russion-Disinformation-Project | 387c283942380c4cf86c24a9278577897f29b2bf | [
"CC-BY-4.0"
] | null | null | null | tempCodeRunnerFile.py | tobby-lie/Russion-Disinformation-Project | 387c283942380c4cf86c24a9278577897f29b2bf | [
"CC-BY-4.0"
] | null | null | null | _file:
data_svm = json.load(json_file)
| 14.333333 | 35 | 0.697674 | 7 | 43 | 3.857143 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.186047 | 43 | 2 | 36 | 21.5 | 0.771429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
a4bad98b106da41c2e3d7d213245bad114ad447a | 294 | py | Python | src/metrics.py | szymonmaszke/AiCorExample | e453e6922bddb612fb5a3feefa62ecf40a2ea719 | [
"MIT"
] | 4 | 2021-02-12T16:30:53.000Z | 2021-08-30T02:48:19.000Z | src/metrics.py | AI-Core/AiCorExample | e453e6922bddb612fb5a3feefa62ecf40a2ea719 | [
"MIT"
] | null | null | null | src/metrics.py | AI-Core/AiCorExample | e453e6922bddb612fb5a3feefa62ecf40a2ea719 | [
"MIT"
] | 2 | 2021-01-17T16:13:03.000Z | 2021-01-18T11:09:10.000Z | import torch
def accuracy(logits, y):
return torch.mean((torch.argmax(logits, dim=-1) == y).float())
def loss(logits, y):
return torch.nn.functional.cross_entropy(logits, y)
def print_metrics(metrics):
for metric, value in metrics.items():
print(f"{metric}: {value}")
| 19.6 | 66 | 0.666667 | 42 | 294 | 4.619048 | 0.595238 | 0.108247 | 0.134021 | 0.185567 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004115 | 0.173469 | 294 | 14 | 67 | 21 | 0.794239 | 0 | 0 | 0 | 0 | 0 | 0.057823 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0.125 | 0.25 | 0.75 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
a4e03ee734e5025ac24d7874bb3702ff16083b79 | 273 | py | Python | pavo_cristatus/interaction_sequence_generators/utilities.py | MATTHEWFRAZER/pavo_cristatus | a4b96c0eb6c454fbe38d2092e29f63457a4ee955 | [
"MIT"
] | null | null | null | pavo_cristatus/interaction_sequence_generators/utilities.py | MATTHEWFRAZER/pavo_cristatus | a4b96c0eb6c454fbe38d2092e29f63457a4ee955 | [
"MIT"
] | null | null | null | pavo_cristatus/interaction_sequence_generators/utilities.py | MATTHEWFRAZER/pavo_cristatus | a4b96c0eb6c454fbe38d2092e29f63457a4ee955 | [
"MIT"
] | null | null | null | def get_type_check(expected_type):
"""
Any -> (Any -> bool)
:param expected_type: type that will be used in the generated boolean check
:return: a function that will do a boolean check against new types
"""
return lambda x: type(x) is expected_type
| 34.125 | 79 | 0.688645 | 42 | 273 | 4.357143 | 0.619048 | 0.196721 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.230769 | 273 | 7 | 80 | 39 | 0.871429 | 0.59707 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
a4eaa048ec52ee4ca7626e5af261917e261102f5 | 169 | py | Python | run_tests.py | roedoejet/wordweaver-legacy | caadb2edf0c848337f14dc56513c0b7cf14ffb67 | [
"MIT"
] | 4 | 2019-10-03T16:22:41.000Z | 2020-09-14T07:01:52.000Z | run_tests.py | nrc-cnrc/wordweaver | 24789191e5a92d0b77fe46f0c2e0a251baa7e06c | [
"MIT"
] | null | null | null | run_tests.py | nrc-cnrc/wordweaver | 24789191e5a92d0b77fe46f0c2e0a251baa7e06c | [
"MIT"
] | null | null | null | from wordweaver.tests import run
import sys
try:
run.run_tests(sys.argv[1])
except IndexError:
print("Please specify a test suite to run: i.e. 'dev' or 'prod'") | 24.142857 | 69 | 0.710059 | 29 | 169 | 4.103448 | 0.793103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007143 | 0.171598 | 169 | 7 | 69 | 24.142857 | 0.842857 | 0 | 0 | 0 | 0 | 0 | 0.329412 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0.166667 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
a4f7276a042ec88a0127e8c158b97f83292c6751 | 1,303 | py | Python | py_typescript_generator/typescript_model_compiler/ts_type.py | Latios96/py-typescript-generator | 803f1fee30ceab31228db59e0408576b503b42ef | [
"MIT"
] | 1 | 2022-03-11T14:19:12.000Z | 2022-03-11T14:19:12.000Z | py_typescript_generator/typescript_model_compiler/ts_type.py | Latios96/py-typescript-generator | 803f1fee30ceab31228db59e0408576b503b42ef | [
"MIT"
] | null | null | null | py_typescript_generator/typescript_model_compiler/ts_type.py | Latios96/py-typescript-generator | 803f1fee30ceab31228db59e0408576b503b42ef | [
"MIT"
] | null | null | null | class TsType:
def __init__(self, name: str, is_optional: bool = False):
self._name = name
self._is_optional = is_optional
@property
def name(self) -> str:
return self._name
@property
def is_optional(self) -> bool:
return self._is_optional
def as_optional_type(s... | 27.723404 | 87 | 0.626247 | 170 | 1,303 | 4.429412 | 0.170588 | 0.225764 | 0.130146 | 0.095618 | 0.300133 | 0.249668 | 0.212483 | 0.212483 | 0.159363 | 0.159363 | 0 | 0 | 0.260169 | 1,303 | 46 | 88 | 28.326087 | 0.78112 | 0.041443 | 0 | 0.0625 | 0 | 0 | 0.066667 | 0.04739 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0 | 0.3125 | 0.78125 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
351733708c6fc24fe4f882aca0b245d91867a702 | 17,952 | py | Python | test/orm/test_update_delete.py | ContextLogic/sqlalchemy | b7adfe5e4d9baa61169ba79aa5ba8f64f0ff7645 | [
"MIT"
] | 8 | 2017-07-18T18:35:10.000Z | 2022-02-01T19:52:57.000Z | test/orm/test_update_delete.py | RetailArchitects/sqlalchemy | 399a5c96b2fd0e0f2f0cdda7766b31e37454eb2e | [
"MIT"
] | null | null | null | test/orm/test_update_delete.py | RetailArchitects/sqlalchemy | 399a5c96b2fd0e0f2f0cdda7766b31e37454eb2e | [
"MIT"
] | 6 | 2017-07-26T08:51:10.000Z | 2021-03-04T10:16:37.000Z | from test.lib.testing import eq_, assert_raises, assert_raises_message
from test.lib import fixtures, testing
from sqlalchemy import Integer, String, ForeignKey, or_, and_, exc, select, func
from sqlalchemy.orm import mapper, relationship, backref, Session, joinedload
from test.lib.schema import Table, Column
clas... | 32.93945 | 93 | 0.572527 | 2,282 | 17,952 | 4.38475 | 0.087642 | 0.06656 | 0.087048 | 0.06646 | 0.798121 | 0.748051 | 0.73406 | 0.722367 | 0.693484 | 0.677693 | 0 | 0.02331 | 0.283088 | 17,952 | 544 | 94 | 33 | 0.754157 | 0.011754 | 0 | 0.658915 | 0 | 0 | 0.040771 | 0 | 0 | 0 | 0 | 0 | 0.077519 | 1 | 0.103359 | false | 0.010336 | 0.01292 | 0 | 0.134367 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
35349b8577f3085c779179bf350678a96b5840bf | 64 | py | Python | pitstop/backends/__init__.py | darvid/pitstop | 517fd3631b437bc5591cea10aacbecde7d21e9ac | [
"MIT"
] | 4 | 2018-12-13T12:15:58.000Z | 2021-01-17T09:26:09.000Z | pitstop/backends/__init__.py | darvid/pitstop | 517fd3631b437bc5591cea10aacbecde7d21e9ac | [
"MIT"
] | null | null | null | pitstop/backends/__init__.py | darvid/pitstop | 517fd3631b437bc5591cea10aacbecde7d21e9ac | [
"MIT"
] | 1 | 2019-05-03T09:29:02.000Z | 2019-05-03T09:29:02.000Z | """Provides read-only interfaces to configuration backends."""
| 32 | 63 | 0.765625 | 7 | 64 | 7 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109375 | 64 | 1 | 64 | 64 | 0.859649 | 0.875 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
353671a03b7f92abe65b3c7cefe7954accd870de | 99 | py | Python | actionlab/experiment/balance.py | danjgale/action-lab | ab4016b46dcd10d4c75712f7a5eef6e88ca69b04 | [
"MIT"
] | null | null | null | actionlab/experiment/balance.py | danjgale/action-lab | ab4016b46dcd10d4c75712f7a5eef6e88ca69b04 | [
"MIT"
] | null | null | null | actionlab/experiment/balance.py | danjgale/action-lab | ab4016b46dcd10d4c75712f7a5eef6e88ca69b04 | [
"MIT"
] | null | null | null | """Module for counterbalancing and shuffling trial types, conditions,
experimental blocks, etc.
""" | 33 | 69 | 0.787879 | 11 | 99 | 7.090909 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 99 | 3 | 70 | 33 | 0.886364 | 0.929293 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
104c839c97d6583b09dc59183a4e031f70802da2 | 120 | py | Python | enthought/contexts/adapter/unit_converter_functions.py | enthought/etsproxy | 4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347 | [
"BSD-3-Clause"
] | 3 | 2016-12-09T06:05:18.000Z | 2018-03-01T13:00:29.000Z | enthought/contexts/adapter/unit_converter_functions.py | enthought/etsproxy | 4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347 | [
"BSD-3-Clause"
] | 1 | 2020-12-02T00:51:32.000Z | 2020-12-02T08:48:55.000Z | enthought/contexts/adapter/unit_converter_functions.py | enthought/etsproxy | 4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347 | [
"BSD-3-Clause"
] | null | null | null | # proxy module
from __future__ import absolute_import
from codetools.contexts.adapter.unit_converter_functions import *
| 30 | 65 | 0.866667 | 15 | 120 | 6.466667 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.091667 | 120 | 3 | 66 | 40 | 0.889908 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
106f7adf84e4436de3b852034b2d2bf770a9ece7 | 159 | py | Python | flask_stormpath/errors.py | lavyaKoli/stormpath-flask | ca79162302e34085bef774751288d2ac95479c0d | [
"Apache-2.0"
] | 99 | 2015-01-04T06:27:10.000Z | 2021-07-27T11:06:15.000Z | flask_stormpath/errors.py | lavyaKoli/stormpath-flask | ca79162302e34085bef774751288d2ac95479c0d | [
"Apache-2.0"
] | 65 | 2015-01-05T17:34:27.000Z | 2019-01-21T09:59:01.000Z | flask_stormpath/errors.py | lavyaKoli/stormpath-flask | ca79162302e34085bef774751288d2ac95479c0d | [
"Apache-2.0"
] | 37 | 2015-03-20T16:24:44.000Z | 2020-10-01T16:12:30.000Z | """Custom errors."""
class ConfigurationError(Exception):
"""
This exception is raised if a user has misconfigured Flask-Stormpath.
"""
pass
| 17.666667 | 73 | 0.666667 | 17 | 159 | 6.235294 | 0.941176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.220126 | 159 | 8 | 74 | 19.875 | 0.854839 | 0.528302 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
107164b332bac9308752bb0a131dd912a81a7081 | 35 | py | Python | ticdat/testing/__init__.py | adampkehoe/ticdat | bc9c9f6f407de0312f87e0e8aa8b247caa92ef3e | [
"BSD-2-Clause"
] | 15 | 2019-05-16T13:22:50.000Z | 2022-02-18T08:07:10.000Z | ticdat/testing/__init__.py | adampkehoe/ticdat | bc9c9f6f407de0312f87e0e8aa8b247caa92ef3e | [
"BSD-2-Clause"
] | 86 | 2019-03-13T16:18:07.000Z | 2022-02-07T22:13:15.000Z | ticdat/testing/__init__.py | adampkehoe/ticdat | bc9c9f6f407de0312f87e0e8aa8b247caa92ef3e | [
"BSD-2-Clause"
] | 9 | 2020-05-06T15:13:32.000Z | 2022-01-26T15:30:44.000Z | """
holds testing code utilites
""" | 11.666667 | 27 | 0.685714 | 4 | 35 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 35 | 3 | 28 | 11.666667 | 0.8 | 0.771429 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
109beed58b8f90a0572aa828e13489fc3e178bc9 | 80 | py | Python | Animal.py | juliaviolet/Google_IT_Python_Crash_Course | e48f37f41000bb7fa6cfca197a964b792125067f | [
"MIT"
] | null | null | null | Animal.py | juliaviolet/Google_IT_Python_Crash_Course | e48f37f41000bb7fa6cfca197a964b792125067f | [
"MIT"
] | null | null | null | Animal.py | juliaviolet/Google_IT_Python_Crash_Course | e48f37f41000bb7fa6cfca197a964b792125067f | [
"MIT"
] | null | null | null | animal = "Hippopotamus"
print(animal[3:6])
print(animal[-5])
print(animal[10:])
| 16 | 23 | 0.7 | 12 | 80 | 4.666667 | 0.583333 | 0.589286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067568 | 0.075 | 80 | 4 | 24 | 20 | 0.689189 | 0 | 0 | 0 | 0 | 0 | 0.15 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.75 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
109c7fd3c15716c3ecee3cbdb28786d31cebd401 | 179 | py | Python | encrypt_decrypt_fields/__init__.py | barseghyanartur/encrypt-decrypt-fields | 4737883d7eea8baf3e96e982f8d7a17f0d4e4a6b | [
"MIT"
] | 9 | 2021-06-26T01:26:27.000Z | 2022-01-01T13:56:56.000Z | encrypt_decrypt_fields/__init__.py | barseghyanartur/encrypt-decrypt-fields | 4737883d7eea8baf3e96e982f8d7a17f0d4e4a6b | [
"MIT"
] | null | null | null | encrypt_decrypt_fields/__init__.py | barseghyanartur/encrypt-decrypt-fields | 4737883d7eea8baf3e96e982f8d7a17f0d4e4a6b | [
"MIT"
] | 3 | 2021-06-26T01:26:28.000Z | 2021-12-14T23:11:03.000Z | from .crypto import Crypto # noqa
from .alchemy_fields import EncryptedAlchemyBinaryField # noqa
from .django_fields import EncryptedBinaryField # noqa
__version__ = '1.1.3'
| 29.833333 | 63 | 0.793296 | 21 | 179 | 6.47619 | 0.571429 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019608 | 0.145251 | 179 | 5 | 64 | 35.8 | 0.869281 | 0.078212 | 0 | 0 | 0 | 0 | 0.031056 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
52c578d89fbb94731b16407075d37caf257a20ea | 288 | py | Python | rpcparse.py | eternal-flame-AD/zjzk_rpcrelay | dd3a16b330efd858f0d95049966ecd151230ef99 | [
"Apache-2.0"
] | null | null | null | rpcparse.py | eternal-flame-AD/zjzk_rpcrelay | dd3a16b330efd858f0d95049966ecd151230ef99 | [
"Apache-2.0"
] | null | null | null | rpcparse.py | eternal-flame-AD/zjzk_rpcrelay | dd3a16b330efd858f0d95049966ecd151230ef99 | [
"Apache-2.0"
] | null | null | null | def parsenum(s,num):
result=0
#num*=2
for i in range(0,num):
result=result*16+s[i]
return result
def getint(s):
return parsenum(s,4)
def getshort(s):
return parsenum(s,2)
def getstring(s):
return str(s)
def getbool(s):
return (s==1) or (s==b"\x01") | 20.571429 | 33 | 0.597222 | 51 | 288 | 3.372549 | 0.45098 | 0.162791 | 0.174419 | 0.186047 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 0.236111 | 288 | 14 | 33 | 20.571429 | 0.736364 | 0.020833 | 0 | 0 | 0 | 0 | 0.014184 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.384615 | false | 0 | 0 | 0.307692 | 0.769231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
52ef0285866c3140b641cb100abab29cfded65cc | 945 | py | Python | horizon/test/django_pyscss_fix/__init__.py | hemantsonawane95/horizon-apelby | 01a5e72219aeca8c1451701ee85e232ed0618751 | [
"Apache-2.0"
] | 930 | 2015-01-04T08:06:03.000Z | 2022-03-13T18:47:13.000Z | horizon/test/django_pyscss_fix/__init__.py | hemantsonawane95/horizon-apelby | 01a5e72219aeca8c1451701ee85e232ed0618751 | [
"Apache-2.0"
] | 26 | 2015-02-23T16:37:31.000Z | 2020-07-02T08:37:41.000Z | horizon/test/django_pyscss_fix/__init__.py | hemantsonawane95/horizon-apelby | 01a5e72219aeca8c1451701ee85e232ed0618751 | [
"Apache-2.0"
] | 1,040 | 2015-01-01T18:48:28.000Z | 2022-03-19T08:35:18.000Z | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the Li... | 37.8 | 78 | 0.759788 | 151 | 945 | 4.754967 | 0.549669 | 0.083565 | 0.058496 | 0.044568 | 0.066852 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012594 | 0.159788 | 945 | 24 | 79 | 39.375 | 0.891688 | 0.779894 | 0 | 0 | 0 | 0 | 0.196891 | 0.11399 | 0 | 0 | 0 | 0.041667 | 0 | 1 | 0 | true | 0 | 0.571429 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
5e04c6696eb0ec53959d177633f07e3b6893b1be | 542 | py | Python | dateutil.py | chenjianlong/my-gist | 7c6444c7d118fb6a1fec1c2fa1fe80451e94e509 | [
"Unlicense"
] | null | null | null | dateutil.py | chenjianlong/my-gist | 7c6444c7d118fb6a1fec1c2fa1fe80451e94e509 | [
"Unlicense"
] | null | null | null | dateutil.py | chenjianlong/my-gist | 7c6444c7d118fb6a1fec1c2fa1fe80451e94e509 | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8:et
"""Date and Time util
"""
__author__ = ["Jianlong Chen <jianlong99@gmail.com>"]
__date__ = "2013-07-17"
import datetime
def year():
return datetime.datetime.strftime(datetime.datetime.now(), '%Y')
def date_time():
return datetime.datetime.str... | 24.636364 | 83 | 0.669742 | 76 | 542 | 4.657895 | 0.473684 | 0.361582 | 0.248588 | 0.338983 | 0.573446 | 0.573446 | 0.573446 | 0.435028 | 0.293785 | 0.293785 | 0 | 0.025263 | 0.123616 | 542 | 21 | 84 | 25.809524 | 0.72 | 0.110701 | 0 | 0 | 0 | 0 | 0.165198 | 0.048458 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | null | null | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
5e1023e9abaef5d844dacf010c876f58b9057518 | 255 | py | Python | src/custom/test.py | CheshireCaat/BAS.Python | a15f67c847733cbe88ae4b4850e6939b8686ae88 | [
"MIT"
] | 4 | 2019-08-27T12:24:27.000Z | 2021-06-01T05:24:06.000Z | src/custom/test.py | CheshireCaat/BAS.Python | a15f67c847733cbe88ae4b4850e6939b8686ae88 | [
"MIT"
] | null | null | null | src/custom/test.py | CheshireCaat/BAS.Python | a15f67c847733cbe88ae4b4850e6939b8686ae88 | [
"MIT"
] | null | null | null |
def invoke(_bas_vars, _bas_api, _bas_print):
bas_print = _bas_print
bas_vars = _bas_vars
bas_api = _bas_api
from src.testa import testa as test_a
from src.testb import testb as test_b
bas_print(test_a())
bas_print(test_b())
| 21.25 | 44 | 0.701961 | 44 | 255 | 3.590909 | 0.340909 | 0.253165 | 0.189873 | 0.164557 | 0.35443 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.227451 | 255 | 11 | 45 | 23.181818 | 0.80203 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.375 | 0.5 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
eab3a1d3d3b0d1d798ccf43a0f589d5650ba29f4 | 165 | py | Python | untitled5.py | rahulneal/InterctiveMap | c81bc15dbe2b4aaedf46c0698f9772e38a60e843 | [
"MIT"
] | null | null | null | untitled5.py | rahulneal/InterctiveMap | c81bc15dbe2b4aaedf46c0698f9772e38a60e843 | [
"MIT"
] | null | null | null | untitled5.py | rahulneal/InterctiveMap | c81bc15dbe2b4aaedf46c0698f9772e38a60e843 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Tue Jan 28 01:14:13 2020
@author: ghanta
"""
import webbrowser
webbrowser.open('http://localhost:1000/CrimeReport/addtodb') | 18.333333 | 61 | 0.690909 | 23 | 165 | 4.956522 | 0.956522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118056 | 0.127273 | 165 | 9 | 61 | 18.333333 | 0.673611 | 0.454545 | 0 | 0 | 0 | 0 | 0.493976 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
eab4b11429cd8affbb33aef88fe8199668b7107a | 67 | py | Python | rime/plugins/judge_system/__init__.py | matsu7874/rime | f6fd81a65dd4128d0385b0e1a11b7f7f03b342eb | [
"MIT"
] | 31 | 2017-02-20T05:04:06.000Z | 2022-01-21T09:05:17.000Z | rime/plugins/judge_system/__init__.py | matsu7874/rime | f6fd81a65dd4128d0385b0e1a11b7f7f03b342eb | [
"MIT"
] | 62 | 2017-02-14T10:10:06.000Z | 2021-05-17T00:00:01.000Z | rime/plugins/judge_system/__init__.py | matsu7874/rime | f6fd81a65dd4128d0385b0e1a11b7f7f03b342eb | [
"MIT"
] | 21 | 2017-02-13T16:41:42.000Z | 2021-08-19T00:34:49.000Z | #!/usr/bin/python
"""Submodules for supporting judge systems.
"""
| 13.4 | 43 | 0.701493 | 8 | 67 | 5.875 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119403 | 67 | 4 | 44 | 16.75 | 0.79661 | 0.850746 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
ead6b50c31b97afb22d854e061d42a9aa6c2fa49 | 120 | py | Python | practice0/pattern_match.py | DeercoderPractice/python | 4a32cc8922f47baea390e8167e34f185f67ae0fd | [
"MIT"
] | null | null | null | practice0/pattern_match.py | DeercoderPractice/python | 4a32cc8922f47baea390e8167e34f185f67ae0fd | [
"MIT"
] | null | null | null | practice0/pattern_match.py | DeercoderPractice/python | 4a32cc8922f47baea390e8167e34f185f67ae0fd | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import re
match = re.match('Hello[ \t].(.*)world', 'Hello Python world')
print match.group(1)
| 20 | 65 | 0.65 | 19 | 120 | 4.105263 | 0.684211 | 0.179487 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009709 | 0.141667 | 120 | 5 | 66 | 24 | 0.747573 | 0.166667 | 0 | 0 | 0 | 0 | 0.414141 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.333333 | null | null | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
d808d35b692a866728c232df07f9479109a6e1c0 | 5,043 | py | Python | tests/defxmlschema/test_chapter10.py | nimish/xsdata | 7afe2781b66982428cc1731f53c065086acd35c1 | [
"MIT"
] | null | null | null | tests/defxmlschema/test_chapter10.py | nimish/xsdata | 7afe2781b66982428cc1731f53c065086acd35c1 | [
"MIT"
] | null | null | null | tests/defxmlschema/test_chapter10.py | nimish/xsdata | 7afe2781b66982428cc1731f53c065086acd35c1 | [
"MIT"
] | null | null | null | import os
from pathlib import Path
from click.testing import CliRunner
from tests.conftest import load_class
from tests.conftest import validate_bindings
from xsdata import cli
os.chdir(Path(__file__).parent.parent.parent)
def test_integration():
schema = Path("tests/fixtures/defxmlschema/chapter10/chapter10.... | 28.817143 | 72 | 0.707515 | 526 | 5,043 | 6.737643 | 0.10076 | 0.117381 | 0.225734 | 0.306998 | 0.815463 | 0.646163 | 0.646163 | 0.646163 | 0.646163 | 0.630079 | 0 | 0.045095 | 0.17331 | 5,043 | 174 | 73 | 28.982759 | 0.804989 | 0 | 0 | 0.652893 | 0 | 0 | 0.314892 | 0.285346 | 0 | 0 | 0 | 0 | 0 | 1 | 0.132231 | false | 0 | 0.049587 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
d82a8e0b5b960274f285fc74a6fb713f8dff3127 | 241 | py | Python | tests/test.py | palewire/nws-wwa | 0c9f65443a3b98febbb2d3ec212d5b83beb7cfe5 | [
"MIT"
] | null | null | null | tests/test.py | palewire/nws-wwa | 0c9f65443a3b98febbb2d3ec212d5b83beb7cfe5 | [
"MIT"
] | 4 | 2021-10-04T23:30:31.000Z | 2021-10-04T23:32:07.000Z | tests/test.py | palewire/nws-wwa | 0c9f65443a3b98febbb2d3ec212d5b83beb7cfe5 | [
"MIT"
] | null | null | null | import pytest
from nws_wwa import get_all, get_hazards, get_warnings
@pytest.mark.vcr()
def test_all():
get_all()
@pytest.mark.vcr()
def test_hazards():
get_hazards()
@pytest.mark.vcr()
def test_warnings():
get_warnings()
| 12.684211 | 54 | 0.705394 | 36 | 241 | 4.444444 | 0.361111 | 0.1875 | 0.24375 | 0.3 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161826 | 241 | 18 | 55 | 13.388889 | 0.792079 | 0 | 0 | 0.272727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | true | 0 | 0.181818 | 0 | 0.454545 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
dc1e08ac28e02d91118ddf166da29b27f9487b68 | 13,031 | py | Python | custom/icds_reports/tests/agg_tests/reports/test_bihar_api_mother_details.py | tobiasmcnulty/commcare-hq | 234aa1fba98a96de1b625bbd70b2066fc877eed1 | [
"BSD-3-Clause"
] | 1 | 2020-07-14T13:00:23.000Z | 2020-07-14T13:00:23.000Z | custom/icds_reports/tests/agg_tests/reports/test_bihar_api_mother_details.py | tobiasmcnulty/commcare-hq | 234aa1fba98a96de1b625bbd70b2066fc877eed1 | [
"BSD-3-Clause"
] | null | null | null | custom/icds_reports/tests/agg_tests/reports/test_bihar_api_mother_details.py | tobiasmcnulty/commcare-hq | 234aa1fba98a96de1b625bbd70b2066fc877eed1 | [
"BSD-3-Clause"
] | null | null | null | import datetime
from datetime import date
from django.test import TestCase
from mock import patch
from custom.icds_reports.reports.bihar_api import get_mother_details
from custom.icds_reports.tasks import update_bihar_api_table
@patch(
'custom.icds_reports.utils.aggregation_helpers.distributed.bihar_api_demogra... | 36.29805 | 129 | 0.476479 | 1,371 | 13,031 | 4.238512 | 0.143691 | 0.088797 | 0.082602 | 0.015488 | 0.838582 | 0.793667 | 0.738943 | 0.714679 | 0.593874 | 0.577009 | 0 | 0.122909 | 0.40373 | 13,031 | 358 | 130 | 36.399441 | 0.624968 | 0 | 0 | 0.60303 | 0 | 0 | 0.247487 | 0.110659 | 0 | 0 | 0 | 0 | 0.024242 | 1 | 0.024242 | false | 0 | 0.018182 | 0 | 0.045455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
dc1ec478a120a2478735ace34d0d4d1cf70d39ea | 998 | py | Python | bronze/libs/slack/__init__.py | HumanCellAtlas/bronze-chime | 4915813035b79f3d4f3add087d122880cd71b6ad | [
"BSD-3-Clause"
] | null | null | null | bronze/libs/slack/__init__.py | HumanCellAtlas/bronze-chime | 4915813035b79f3d4f3add087d122880cd71b6ad | [
"BSD-3-Clause"
] | null | null | null | bronze/libs/slack/__init__.py | HumanCellAtlas/bronze-chime | 4915813035b79f3d4f3add087d122880cd71b6ad | [
"BSD-3-Clause"
] | null | null | null | class User:
"""TODO: potentially switch to slack official api client: https://github.com/slackapi/python-slackclient"""
def __init__(self, slack_id: str, slack_name: str = None, **kwargs):
self.slack_id, self.slack_name = slack_id, slack_name
for k, v in kwargs.items():
setattr(self... | 30.242424 | 111 | 0.630261 | 140 | 998 | 4.142857 | 0.357143 | 0.201724 | 0.17069 | 0.082759 | 0.201724 | 0.155172 | 0 | 0 | 0 | 0 | 0 | 0.001314 | 0.237475 | 998 | 32 | 112 | 31.1875 | 0.760841 | 0.101202 | 0 | 0 | 0 | 0 | 0.058361 | 0 | 0 | 0 | 0 | 0.03125 | 0 | 1 | 0.409091 | false | 0 | 0 | 0.363636 | 0.818182 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
dc20c843551381a8f6b8f6ecdf0f5e3bb26254b5 | 452 | py | Python | two_point_clustering/_nbdev.py | saitosmst/hetdex_cosmology | e0dc86f48e048f1ce2b046b6513a24a8809e55e3 | [
"Apache-2.0"
] | null | null | null | two_point_clustering/_nbdev.py | saitosmst/hetdex_cosmology | e0dc86f48e048f1ce2b046b6513a24a8809e55e3 | [
"Apache-2.0"
] | null | null | null | two_point_clustering/_nbdev.py | saitosmst/hetdex_cosmology | e0dc86f48e048f1ce2b046b6513a24a8809e55e3 | [
"Apache-2.0"
] | null | null | null | # AUTOGENERATED BY NBDEV! DO NOT EDIT!
__all__ = ["index", "modules", "custom_doc_links", "git_url"]
index = {"Field_on_grid": "field_on_grid.ipynb",
"NTHREAD": "field_on_grid.ipynb",
"EPS": "field_on_grid.ipynb"}
modules = ["field_on_grid.py"]
doc_url = "https://{saitosmst}.github.io/two_point_cl... | 28.25 | 78 | 0.701327 | 64 | 452 | 4.5625 | 0.546875 | 0.119863 | 0.188356 | 0.164384 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128319 | 452 | 15 | 79 | 30.133333 | 0.741117 | 0.079646 | 0 | 0 | 1 | 0 | 0.599034 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0.125 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.