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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
146e90ad11eb2b874d711f0b54e24b4f0a853f4c | 1,937 | py | Python | rthl_site/migrations/0007_auto_20210131_2323.py | Mauzzz0/Django_demo | b58f088beb98aa4103797e7ff330151dee431ff6 | [
"MIT"
] | null | null | null | rthl_site/migrations/0007_auto_20210131_2323.py | Mauzzz0/Django_demo | b58f088beb98aa4103797e7ff330151dee431ff6 | [
"MIT"
] | null | null | null | rthl_site/migrations/0007_auto_20210131_2323.py | Mauzzz0/Django_demo | b58f088beb98aa4103797e7ff330151dee431ff6 | [
"MIT"
] | 1 | 2021-02-22T17:29:33.000Z | 2021-02-22T17:29:33.000Z | # Generated by Django 3.1.4 on 2021-01-31 20:23
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('rthl_site', '0006_auto_20210131_2321'),
]
operations = [
migrations.AlterField(
model_name='player',
name='birth_dat... | 32.830508 | 113 | 0.580795 | 174 | 1,937 | 6.293103 | 0.385057 | 0.164384 | 0.205479 | 0.238356 | 0.681279 | 0.595434 | 0.346119 | 0.269406 | 0.113242 | 0 | 0 | 0.023564 | 0.298916 | 1,937 | 58 | 114 | 33.396552 | 0.782769 | 0.023232 | 0 | 0.519231 | 1 | 0 | 0.153968 | 0.024868 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.019231 | 0.019231 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
14b32a1eed0250f051ee75539f3a80b3a23b6b0e | 101 | py | Python | python/rpdk/go/__init__.py | parsnips/cloudformation-cli-go-plugin | f7249d18d5feaa31e50b0bd108528510b4d72f6e | [
"Apache-2.0"
] | 40 | 2019-12-05T19:53:09.000Z | 2022-03-28T23:30:17.000Z | python/rpdk/go/__init__.py | parsnips/cloudformation-cli-go-plugin | f7249d18d5feaa31e50b0bd108528510b4d72f6e | [
"Apache-2.0"
] | 71 | 2019-12-01T19:59:49.000Z | 2022-03-04T21:21:33.000Z | python/rpdk/go/__init__.py | parsnips/cloudformation-cli-go-plugin | f7249d18d5feaa31e50b0bd108528510b4d72f6e | [
"Apache-2.0"
] | 30 | 2019-11-27T23:39:00.000Z | 2021-10-30T03:23:12.000Z | import logging
__version__ = "2.0.4"
logging.getLogger(__name__).addHandler(logging.NullHandler())
| 16.833333 | 61 | 0.782178 | 12 | 101 | 5.916667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032258 | 0.079208 | 101 | 5 | 62 | 20.2 | 0.731183 | 0 | 0 | 0 | 0 | 0 | 0.049505 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
14b4bec34f6a2787d83d15ab9e7e9bfaaa07effc | 2,265 | py | Python | client_app/python-cpp/setup.py | yaseenit/debs19_grand_challenge- | 54ae55516c8735db3708efbe717fa2068c0400af | [
"MIT"
] | null | null | null | client_app/python-cpp/setup.py | yaseenit/debs19_grand_challenge- | 54ae55516c8735db3708efbe717fa2068c0400af | [
"MIT"
] | null | null | null | client_app/python-cpp/setup.py | yaseenit/debs19_grand_challenge- | 54ae55516c8735db3708efbe717fa2068c0400af | [
"MIT"
] | null | null | null |
from distutils.core import setup
from distutils.extension import Extension
from Cython.Build import cythonize
ext = Extension('my_pcl', sources=["my_pcl.pyx"], language="c++", extra_compile_args=['-std=c++11','-fopenmp','-lpcl_common','-lpcl_features','-lpcl_filters','-lpcl_io','-lpcl_kdtree','-lpcl_keypoints','-lp... | 43.557692 | 364 | 0.742605 | 378 | 2,265 | 4.280423 | 0.227513 | 0.108158 | 0.129172 | 0.189122 | 0.473424 | 0.278739 | 0.252781 | 0.213844 | 0.142151 | 0 | 0 | 0.046661 | 0.034879 | 2,265 | 51 | 365 | 44.411765 | 0.693504 | 0 | 0 | 0 | 0 | 0 | 0.786537 | 0.678477 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1ae62b320282899d12b2404d6383b1a6fa6f5d3d | 431 | py | Python | docs/project.py | boswellgathu/pybald | a3578f8a5220ce51627b151a2a98b5a59732e63e | [
"BSD-3-Clause"
] | 7 | 2015-10-09T15:45:04.000Z | 2019-03-11T15:54:19.000Z | docs/project.py | boswellgathu/pybald | a3578f8a5220ce51627b151a2a98b5a59732e63e | [
"BSD-3-Clause"
] | 7 | 2015-12-02T20:13:11.000Z | 2018-09-25T16:09:38.000Z | docs/project.py | boswellgathu/pybald | a3578f8a5220ce51627b151a2a98b5a59732e63e | [
"BSD-3-Clause"
] | 3 | 2015-09-19T13:19:59.000Z | 2019-08-22T16:52:18.000Z | import sys
package_name = "pybald.project_template"
class ConfigWrapper(object):
def __init__(self, wrapped):
self.wrapped = wrapped
def __getattr__(self, name):
# Some sensible default?
return getattr(self.wrapped, name, None)
def __dir__(self):
return dir(self.wrapped)
c... | 25.352941 | 60 | 0.698376 | 49 | 431 | 5.632653 | 0.55102 | 0.15942 | 0.101449 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.194896 | 431 | 16 | 61 | 26.9375 | 0.795389 | 0.051044 | 0 | 0 | 0 | 0 | 0.058968 | 0.056511 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.083333 | 0.166667 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
1ae8c0394465f34f26dbab62205debcc14d74a81 | 74 | py | Python | src/awsstepfuncs/types.py | suzil/awsstepfuncs | dd195b54bf8eaa381ea07244b276db6a1e82007b | [
"MIT"
] | 3 | 2020-11-29T18:31:50.000Z | 2021-01-14T07:46:40.000Z | src/awsstepfuncs/types.py | suzil/aws-step-functions | dd195b54bf8eaa381ea07244b276db6a1e82007b | [
"MIT"
] | 54 | 2020-10-17T13:30:05.000Z | 2020-10-28T01:46:59.000Z | src/awsstepfuncs/types.py | suzil/aws-step-functions | dd195b54bf8eaa381ea07244b276db6a1e82007b | [
"MIT"
] | 1 | 2021-08-04T04:40:27.000Z | 2021-08-04T04:40:27.000Z | from typing import Callable, Dict
ResourceToMockFn = Dict[str, Callable]
| 18.5 | 38 | 0.797297 | 9 | 74 | 6.555556 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135135 | 74 | 3 | 39 | 24.666667 | 0.921875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
211596d7e4d226d3094eced440a0a3383fe104ab | 94 | py | Python | hdhp/__init__.py | kekoawong/hdhp.py | ce97a5a1ac59aa3bbdf2c2978b2338a035e12b3d | [
"0BSD"
] | 35 | 2016-10-27T16:37:47.000Z | 2022-03-18T07:55:00.000Z | hdhp/__init__.py | kekoawong/hdhp.py | ce97a5a1ac59aa3bbdf2c2978b2338a035e12b3d | [
"0BSD"
] | 2 | 2018-04-18T16:30:32.000Z | 2020-07-07T10:07:03.000Z | hdhp/__init__.py | kekoawong/hdhp.py | ce97a5a1ac59aa3bbdf2c2978b2338a035e12b3d | [
"0BSD"
] | 14 | 2017-05-06T08:44:01.000Z | 2021-04-28T08:20:32.000Z | from generative_model import HDHProcess
from smc import Particle, infer
__all__ = ['utils']
| 15.666667 | 39 | 0.787234 | 12 | 94 | 5.75 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148936 | 94 | 5 | 40 | 18.8 | 0.8625 | 0 | 0 | 0 | 0 | 0 | 0.053191 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
21243cb750bb8d2e56fe9b48ff062ac6b0ed109d | 141 | py | Python | tests/examples/malformed_skipto.py | jbn/modpipe | 06e182704d4582ab41ce92f5ae1a908874bf60e2 | [
"MIT"
] | 4 | 2018-11-18T23:03:59.000Z | 2021-06-11T19:50:55.000Z | tests/examples/malformed_skipto.py | jbn/modpipe | 06e182704d4582ab41ce92f5ae1a908874bf60e2 | [
"MIT"
] | 8 | 2018-06-13T23:38:52.000Z | 2018-06-15T22:51:05.000Z | tests/examples/malformed_skipto.py | jbn/modpipe | 06e182704d4582ab41ce92f5ae1a908874bf60e2 | [
"MIT"
] | null | null | null | from modpipe import SkipTo
def f(x):
return x + 1
def g(x):
# This is before in the linearized pipeline!
return SkipTo(f, x)
| 12.818182 | 48 | 0.638298 | 24 | 141 | 3.75 | 0.708333 | 0.044444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009804 | 0.276596 | 141 | 10 | 49 | 14.1 | 0.872549 | 0.297872 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0.2 | 0.4 | 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 | 0 | 0 | 0 | 3 |
213abda2c46b13f63855ef3c6fb04f483a21c814 | 6,122 | py | Python | tests/unit_tests/vwf_and_transformations_tests/test_spherical_functions.py | parkerwray/smuthi-1 | a5ced07461b8fd223dc37d28259261ceed78aed5 | [
"MIT"
] | null | null | null | tests/unit_tests/vwf_and_transformations_tests/test_spherical_functions.py | parkerwray/smuthi-1 | a5ced07461b8fd223dc37d28259261ceed78aed5 | [
"MIT"
] | null | null | null | tests/unit_tests/vwf_and_transformations_tests/test_spherical_functions.py | parkerwray/smuthi-1 | a5ced07461b8fd223dc37d28259261ceed78aed5 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Test spherical_functions"""
import smuthi.utility.math
import numpy as np
from sympy.physics.quantum.spin import Rotation
def test_wignerd():
l_test = 5
m_test = -3
m_prime_test = 4
beta_test = 0.64
wigd = smuthi.utility.math.wigner_d(l_test, m_test, m_prime_test, beta_... | 42.513889 | 129 | 0.700425 | 966 | 6,122 | 4.250518 | 0.196687 | 0.107404 | 0.179006 | 0.250609 | 0.494398 | 0.488066 | 0.33999 | 0.280565 | 0.06868 | 0.06868 | 0 | 0.268531 | 0.147174 | 6,122 | 143 | 130 | 42.811189 | 0.517908 | 0.046717 | 0 | 0.160714 | 0 | 0 | 0.001374 | 0 | 0 | 0 | 0 | 0 | 0.4375 | 1 | 0.071429 | false | 0 | 0.026786 | 0 | 0.098214 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
214b19dbec888b7c0a458c05dff90d4089b70507 | 243 | py | Python | python/checkIfExist.py | caleberi/LeetCode | fa170244648f73e76d316a6d7fc0e813adccaa82 | [
"MIT"
] | 1 | 2021-08-10T20:00:24.000Z | 2021-08-10T20:00:24.000Z | python/checkIfExist.py | caleberi/LeetCode | fa170244648f73e76d316a6d7fc0e813adccaa82 | [
"MIT"
] | null | null | null | python/checkIfExist.py | caleberi/LeetCode | fa170244648f73e76d316a6d7fc0e813adccaa82 | [
"MIT"
] | 3 | 2021-06-11T11:56:39.000Z | 2021-08-10T08:50:49.000Z | class Solution:
def checkIfExist(self, arr: List[int]) -> bool:
for i in range(len(arr)):
for j in range(len(arr)):
if i != j and arr[i] == 2*arr[j]:
return True
return False
| 30.375 | 51 | 0.481481 | 34 | 243 | 3.441176 | 0.617647 | 0.119658 | 0.17094 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006803 | 0.395062 | 243 | 7 | 52 | 34.714286 | 0.789116 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.571429 | 0 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
21557f4ab49c340295f8af339545048f3dc93903 | 222 | py | Python | Python3-Learn/even_odd_mayankgoyal.py | nikhiljain-413/Hacktoberfest2021_beginner | 56b008c9ed294c3fc23b44fa13faced99948236d | [
"MIT"
] | 65 | 2021-10-01T07:02:29.000Z | 2022-03-23T10:41:37.000Z | Python3-Learn/even_odd_mayankgoyal.py | nikhiljain-413/Hacktoberfest2021_beginner | 56b008c9ed294c3fc23b44fa13faced99948236d | [
"MIT"
] | 82 | 2021-10-01T14:21:42.000Z | 2022-03-29T03:43:58.000Z | Python3-Learn/even_odd_mayankgoyal.py | nikhiljain-413/Hacktoberfest2021_beginner | 56b008c9ed294c3fc23b44fa13faced99948236d | [
"MIT"
] | 210 | 2021-10-01T07:02:39.000Z | 2022-03-27T17:41:00.000Z | """
Name : Even odd
Author : [Mayank Goyal) [https://github.com/mayankgoyal-13]
"""
num = int(input("Enter your number: "))
if num % 2 == 0:
print('The given number is even')
else:
print('The given number is odd')
| 22.2 | 59 | 0.635135 | 34 | 222 | 4.147059 | 0.735294 | 0.113475 | 0.184397 | 0.269504 | 0.297872 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022222 | 0.189189 | 222 | 9 | 60 | 24.666667 | 0.761111 | 0.337838 | 0 | 0 | 0 | 0 | 0.47482 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
215b515a25031cb3ce38e2489d72dc8ffd052640 | 592 | py | Python | angrytux/controller/Commands/CannonAngleUpCommand.py | Wilson194/Angry-tux | 62b7457948675071fe328b69ba5d85aab6b39ed1 | [
"CC0-1.0"
] | null | null | null | angrytux/controller/Commands/CannonAngleUpCommand.py | Wilson194/Angry-tux | 62b7457948675071fe328b69ba5d85aab6b39ed1 | [
"CC0-1.0"
] | 1 | 2019-02-05T04:50:27.000Z | 2019-02-05T04:50:27.000Z | angrytux/controller/Commands/CannonAngleUpCommand.py | Wilson194/Angry-tux | 62b7457948675071fe328b69ba5d85aab6b39ed1 | [
"CC0-1.0"
] | null | null | null | from angrytux.controller.Commands.Command import Command
from angrytux.proxy.Proxy import Proxy
class CannonAngleUpCommand(Command):
"""
Command for rise cannon shooting angle
"""
@property
def create_memento(self) -> bool:
return False
def __init__(self, proxy: Proxy) -> None:
... | 19.096774 | 56 | 0.640203 | 69 | 592 | 5.188406 | 0.463768 | 0.100559 | 0.072626 | 0.100559 | 0.178771 | 0.178771 | 0.178771 | 0.178771 | 0 | 0 | 0 | 0.004535 | 0.255068 | 592 | 30 | 57 | 19.733333 | 0.807256 | 0.064189 | 0 | 0 | 0 | 0 | 0.055762 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.133333 | 0.133333 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
dcc5255ad56c5419c0493384230216e4ca78c59b | 116 | py | Python | ex/14.py | StopITnowFAST/7lab | 8619e2a6f830d410377c5c0865ea74e30b711168 | [
"MIT"
] | null | null | null | ex/14.py | StopITnowFAST/7lab | 8619e2a6f830d410377c5c0865ea74e30b711168 | [
"MIT"
] | null | null | null | ex/14.py | StopITnowFAST/7lab | 8619e2a6f830d410377c5c0865ea74e30b711168 | [
"MIT"
] | null | null | null | my_list = ['один', 'два', 'три', 'четыре', 'пять']
list_2 = ['шесть', 'семь']
my_list.extend(list_2)
print(my_list)
| 23.2 | 50 | 0.62931 | 19 | 116 | 3.578947 | 0.631579 | 0.264706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019417 | 0.112069 | 116 | 4 | 51 | 29 | 0.640777 | 0 | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0d0dbaf304347ae8f5ce75bc0a3b39180ab29c59 | 211 | py | Python | sm2/tsa/tests/test_adfuller_lag.py | jbrockmendel/sm2 | c02a3f9a4fcba35ffc8c852ca5ad8b9d7620f4cf | [
"BSD-3-Clause"
] | 1 | 2021-08-02T13:48:59.000Z | 2021-08-02T13:48:59.000Z | sm2/tsa/tests/test_adfuller_lag.py | jbrockmendel/sm2 | c02a3f9a4fcba35ffc8c852ca5ad8b9d7620f4cf | [
"BSD-3-Clause"
] | 24 | 2018-03-26T00:44:58.000Z | 2018-10-09T17:06:07.000Z | sm2/tsa/tests/test_adfuller_lag.py | jbrockmendel/sm2 | c02a3f9a4fcba35ffc8c852ca5ad8b9d7620f4cf | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""Test for autolag of adfuller, unitroot_adf
Created on Wed May 30 21:39:46 2012
Author: Josef Perktold
"""
# The only test from this file has been moved to test_unit_root (2018-05-04)
| 26.375 | 76 | 0.71564 | 38 | 211 | 3.894737 | 0.947368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12 | 0.170616 | 211 | 7 | 77 | 30.142857 | 0.725714 | 0.947867 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 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 | 3 |
0d2d848244890945c166df16485f3915ec710f22 | 10,412 | py | Python | tools/small_rna_pipelines/small_rna_pipeline_wangw.py | bopopescu/galaxy-pipelines | 109059d32a0a176a42f9d8949e72802677b8133d | [
"CC-BY-3.0"
] | null | null | null | tools/small_rna_pipelines/small_rna_pipeline_wangw.py | bopopescu/galaxy-pipelines | 109059d32a0a176a42f9d8949e72802677b8133d | [
"CC-BY-3.0"
] | null | null | null | tools/small_rna_pipelines/small_rna_pipeline_wangw.py | bopopescu/galaxy-pipelines | 109059d32a0a176a42f9d8949e72802677b8133d | [
"CC-BY-3.0"
] | 1 | 2020-07-25T21:10:26.000Z | 2020-07-25T21:10:26.000Z | #!/usr/bin/env python
# The Galaxy server calls this Python script and this Python script will use
# the parameters from the Galaxy server to a) generate a parameter file,
# b) generate a workflow_file, and c) constitute the command to run the the
# workflow. For example,
#
# this script will generate a parameter fi... | 49.113208 | 1,831 | 0.658183 | 1,515 | 10,412 | 4.429703 | 0.244224 | 0.047683 | 0.052302 | 0.025034 | 0.303681 | 0.248547 | 0.166592 | 0.166592 | 0.125764 | 0.095962 | 0 | 0.025605 | 0.189781 | 10,412 | 211 | 1,832 | 49.345972 | 0.769915 | 0.22426 | 0 | 0.058333 | 1 | 0.033333 | 0.519741 | 0.321086 | 0.008333 | 0 | 0 | 0.004739 | 0 | 0 | null | null | 0 | 0.058333 | null | null | 0.225 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0d2f54a0bd4c0aa4a40ac54c2f4a8c1ef5876264 | 172 | py | Python | flask_rest_multiformat_api/exceptions.py | Aimage/flask_rest_multiformat_api | 4101ce47c0fd338d533892782831b0be766a5803 | [
"MIT"
] | null | null | null | flask_rest_multiformat_api/exceptions.py | Aimage/flask_rest_multiformat_api | 4101ce47c0fd338d533892782831b0be766a5803 | [
"MIT"
] | null | null | null | flask_rest_multiformat_api/exceptions.py | Aimage/flask_rest_multiformat_api | 4101ce47c0fd338d533892782831b0be766a5803 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
class ApiException(Exception):
errors = []
def __init__(self, errors, code):
self.errors = errors
self.code = code
| 14.333333 | 37 | 0.552326 | 18 | 172 | 5.055556 | 0.611111 | 0.21978 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008403 | 0.30814 | 172 | 11 | 38 | 15.636364 | 0.756303 | 0.122093 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
0d4acfd4d17804b9cb62b4f4c95d2c9229091f0e | 294 | py | Python | src/road_surface_detection/__init__.py | knu2xs/road-surface-detection | 02e0c5ba05fb666275507da6c368f940d0a9bd78 | [
"Apache-2.0"
] | 1 | 2020-12-11T05:44:57.000Z | 2020-12-11T05:44:57.000Z | src/road_surface_detection/__init__.py | knu2xs/road-surface-detection | 02e0c5ba05fb666275507da6c368f940d0a9bd78 | [
"Apache-2.0"
] | null | null | null | src/road_surface_detection/__init__.py | knu2xs/road-surface-detection | 02e0c5ba05fb666275507da6c368f940d0a9bd78 | [
"Apache-2.0"
] | null | null | null | __title__ = 'road-surface-detection'
__version__ = '0.0.0'
__author__ = 'Esri Advanced Analytics Team'
__license__ = 'Apache 2.0'
__copyright__ = 'Copyright 2020 by Esri Advanced Analytics Team'
# add specific imports below if you want more control over what is visible
## from . import utils
| 32.666667 | 74 | 0.765306 | 41 | 294 | 5 | 0.804878 | 0.019512 | 0.204878 | 0.243902 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036145 | 0.153061 | 294 | 8 | 75 | 36.75 | 0.787149 | 0.312925 | 0 | 0 | 0 | 0 | 0.560606 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0d4dcd5270a7620e132321e7d1b7073860f8ef95 | 1,213 | py | Python | dynn/activations.py | pmichel31415/dynet-nn | 7e780c4dcf928cdff5f2e52210409d2775ca7796 | [
"MIT"
] | 1 | 2019-09-04T13:19:47.000Z | 2019-09-04T13:19:47.000Z | dynn/activations.py | pmichel31415/dynn | 7e780c4dcf928cdff5f2e52210409d2775ca7796 | [
"MIT"
] | null | null | null | dynn/activations.py | pmichel31415/dynn | 7e780c4dcf928cdff5f2e52210409d2775ca7796 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""
Activation functions
====================
Common activation functions for neural networks.
Most of those are wrappers around standard dynet operations
(eg. ``rectify`` -> ``relu``)
"""
import dynet as dy
def identity(x):
"""The identity function
:math:`y=x`
Args:
x ... | 17.328571 | 65 | 0.571311 | 154 | 1,213 | 4.5 | 0.337662 | 0.080808 | 0.138528 | 0.253968 | 0.460317 | 0.438672 | 0.438672 | 0.438672 | 0.438672 | 0.438672 | 0 | 0.007535 | 0.23413 | 1,213 | 69 | 66 | 17.57971 | 0.738428 | 0.729596 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.444444 | false | 0 | 0.111111 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
0d53e8bf8432e606537b0c8d54bc538b8c54d378 | 171 | py | Python | PopPUNK/__init__.py | Danderson123/PopPUNK | 90e558cd3c3ad30531db48c06134f309edff882d | [
"Apache-2.0"
] | null | null | null | PopPUNK/__init__.py | Danderson123/PopPUNK | 90e558cd3c3ad30531db48c06134f309edff882d | [
"Apache-2.0"
] | null | null | null | PopPUNK/__init__.py | Danderson123/PopPUNK | 90e558cd3c3ad30531db48c06134f309edff882d | [
"Apache-2.0"
] | null | null | null | # vim: set fileencoding=<utf-8> :
# Copyright 2018-2020 John Lees and Nick Croucher
'''PopPUNK (POPulation Partitioning Using Nucleotide Kmers)'''
__version__ = '2.2.1'
| 24.428571 | 62 | 0.730994 | 23 | 171 | 5.26087 | 0.956522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081633 | 0.140351 | 171 | 6 | 63 | 28.5 | 0.741497 | 0.80117 | 0 | 0 | 0 | 0 | 0.185185 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0d563143d299dd9a30671e5cafc10d5150712216 | 122,179 | py | Python | grpc/clients/python/vegaapiclient/generated/api/trading_pb2_grpc.py | ConnorChristie/api | 7e585d47bad1a5ef95ca932045b0ce70962b029a | [
"MIT"
] | null | null | null | grpc/clients/python/vegaapiclient/generated/api/trading_pb2_grpc.py | ConnorChristie/api | 7e585d47bad1a5ef95ca932045b0ce70962b029a | [
"MIT"
] | null | null | null | grpc/clients/python/vegaapiclient/generated/api/trading_pb2_grpc.py | ConnorChristie/api | 7e585d47bad1a5ef95ca932045b0ce70962b029a | [
"MIT"
] | null | null | null | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc
from . import trading_pb2 as api_dot_trading__pb2
class TradingServiceStub(object):
"""Missing associated documentation comment in .proto file."""
def... | 47.596026 | 121 | 0.667873 | 10,306 | 122,179 | 7.601591 | 0.040365 | 0.056164 | 0.072847 | 0.089658 | 0.85405 | 0.805251 | 0.562368 | 0.433982 | 0.427268 | 0.422443 | 0 | 0.00685 | 0.262827 | 122,179 | 2,566 | 122 | 47.614575 | 0.862969 | 0.035726 | 0 | 0.531646 | 1 | 0 | 0.091498 | 0.055899 | 0 | 0 | 0 | 0 | 0 | 1 | 0.067812 | false | 0 | 0.000904 | 0.033002 | 0.10443 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b4b34d228939e519fe46f70f4f4c23e44354e9f3 | 226 | py | Python | word.py | ouyangzx/stop-motion-printing | dc1b8c55fab26a828dc79816428b8aff17576e09 | [
"MIT"
] | null | null | null | word.py | ouyangzx/stop-motion-printing | dc1b8c55fab26a828dc79816428b8aff17576e09 | [
"MIT"
] | null | null | null | word.py | ouyangzx/stop-motion-printing | dc1b8c55fab26a828dc79816428b8aff17576e09 | [
"MIT"
] | null | null | null | from win32com.client import Dispatch
class WpsWord:
def __init__(self):
self.word = Dispatch('word.Application')
self.word.Visible = True
def open(self,docx):
self.word.Documents.Open(docx)
| 18.833333 | 48 | 0.659292 | 28 | 226 | 5.178571 | 0.607143 | 0.165517 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011561 | 0.234513 | 226 | 11 | 49 | 20.545455 | 0.82659 | 0 | 0 | 0 | 0 | 0 | 0.070796 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0 | 0.571429 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
b4ba3b8edee80f6119322cab27848fdd4dc971e1 | 292 | py | Python | totra/__init__.py | jedrus2000/totra | 889e154a7b4743348ca5f6cdf29eb986a6476756 | [
"MIT"
] | 3 | 2019-05-05T16:39:57.000Z | 2020-05-31T14:53:16.000Z | totra/__init__.py | jedrus2000/totra | 889e154a7b4743348ca5f6cdf29eb986a6476756 | [
"MIT"
] | null | null | null | totra/__init__.py | jedrus2000/totra | 889e154a7b4743348ca5f6cdf29eb986a6476756 | [
"MIT"
] | 1 | 2020-05-31T14:53:17.000Z | 2020-05-31T14:53:17.000Z | # -*- coding: utf-8 -*-
import logging
from .version import __version__
from .core import TTrackerSession, how_much_hours, report_activities
from .main import main
from totra.output_format import format_activities, save_output
logging.getLogger(__name__).addHandler(logging.NullHandler())
| 26.545455 | 68 | 0.811644 | 37 | 292 | 6.027027 | 0.621622 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003817 | 0.10274 | 292 | 10 | 69 | 29.2 | 0.847328 | 0.071918 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.833333 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
b4bf527d4d3f2f015ddad3e99a28fee52d9ab9c9 | 265 | py | Python | sql_to_django/forms.py | rimi-dev/sql_to_orm | ef58cac457182fa8d30c729d15dd3fbc9347f2fc | [
"MIT"
] | 1 | 2021-03-11T11:52:14.000Z | 2021-03-11T11:52:14.000Z | sql_to_django/forms.py | rimi-dev/sql_to_orm | ef58cac457182fa8d30c729d15dd3fbc9347f2fc | [
"MIT"
] | 8 | 2020-06-03T06:15:39.000Z | 2021-09-22T19:09:18.000Z | sql_to_django/forms.py | rimi-dev/sql_to_orm | ef58cac457182fa8d30c729d15dd3fbc9347f2fc | [
"MIT"
] | null | null | null | from django import forms
from sql_to_django.widgets import DivContentEditable
class QueryInputForm(forms.Form):
query = forms.CharField(max_length=1000, widget=forms.Textarea(attrs={'class': 'form-control', 'placeholder': 'Please input working SQL query.'})) | 37.857143 | 150 | 0.781132 | 34 | 265 | 6 | 0.705882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016807 | 0.101887 | 265 | 7 | 150 | 37.857143 | 0.840336 | 0 | 0 | 0 | 0 | 0 | 0.221805 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
b4d83973c31f15f0a21b7d8c6db35690a2bb9ac7 | 1,558 | py | Python | home/serializers.py | ageorgiev97/fictional-octo-meme | afc0f69985c0e79f128cf1bdafa668a9a22a2f0f | [
"MIT"
] | null | null | null | home/serializers.py | ageorgiev97/fictional-octo-meme | afc0f69985c0e79f128cf1bdafa668a9a22a2f0f | [
"MIT"
] | null | null | null | home/serializers.py | ageorgiev97/fictional-octo-meme | afc0f69985c0e79f128cf1bdafa668a9a22a2f0f | [
"MIT"
] | null | null | null | from rest_framework.serializers import HyperlinkedModelSerializer
from rest_framework.viewsets import ModelViewSet
from home.models import Location, Restaurant, Dish, CustomUser, Category, Allergen, Rating, FavouriteRestaurants, RestaurantCategory, \
DishAllergen
class LocationSerializer(HyperlinkedModelSerializ... | 23.253731 | 135 | 0.716945 | 116 | 1,558 | 9.267241 | 0.301724 | 0.288372 | 0.325581 | 0.372093 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.223363 | 1,558 | 66 | 136 | 23.606061 | 0.88843 | 0 | 0 | 0.454545 | 0 | 0 | 0.044958 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.068182 | 0 | 0.522727 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b4fd0774f3758b9601b9b5e7a1dbfe9b37f1bae1 | 372 | py | Python | category/models.py | rvladimirvm/book_reservation | 6d449e233de9faa6a4f8bf45729e9117604ed961 | [
"MIT"
] | 2 | 2018-12-14T05:09:17.000Z | 2018-12-18T02:30:07.000Z | category/models.py | rvladimirvm/book_reservation | 6d449e233de9faa6a4f8bf45729e9117604ed961 | [
"MIT"
] | 13 | 2018-12-14T04:54:40.000Z | 2019-03-28T04:14:44.000Z | category/models.py | rvladimirvm/book_reservation | 6d449e233de9faa6a4f8bf45729e9117604ed961 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
'''
Models of category
'''
from __future__ import unicode_literals
from django.db import models
# Create your models here.
class Category(models.Model):
'''
Model category
'''
category = models.CharField(max_length=50)
description = models.CharField(max_length=100)
... | 16.909091 | 50 | 0.680108 | 44 | 372 | 5.5 | 0.613636 | 0.115702 | 0.14876 | 0.198347 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020339 | 0.206989 | 372 | 21 | 51 | 17.714286 | 0.8 | 0.217742 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0.142857 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
b4fdbba3b49be1640637e4b75181bf0ae39ae639 | 2,967 | py | Python | db/redis_connection.py | dessa-oss/local-docker-scheduler | 0e47f43b31cb8e03228cd61724d378e8f3acf6d2 | [
"Apache-2.0"
] | 4 | 2020-03-16T19:58:25.000Z | 2020-06-24T08:29:01.000Z | db/redis_connection.py | dessa-oss/local-docker-scheduler | 0e47f43b31cb8e03228cd61724d378e8f3acf6d2 | [
"Apache-2.0"
] | null | null | null | db/redis_connection.py | dessa-oss/local-docker-scheduler | 0e47f43b31cb8e03228cd61724d378e8f3acf6d2 | [
"Apache-2.0"
] | null | null | null | import redis
from pickle import loads, dumps
class RedisDict:
def __init__(self, key, host, port, db=0):
self._redis = redis.StrictRedis(host, port, db)
# try the connection; allow user of class to handle exception themselves
self._redis.ping()
self._key = key
def __getitem__(... | 31.56383 | 104 | 0.609033 | 365 | 2,967 | 4.69863 | 0.232877 | 0.077551 | 0.061224 | 0.03965 | 0.376676 | 0.336443 | 0.277551 | 0.277551 | 0.277551 | 0.248397 | 0 | 0.003781 | 0.286822 | 2,967 | 93 | 105 | 31.903226 | 0.806711 | 0.047523 | 0 | 0.291667 | 0 | 0 | 0.023025 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.236111 | false | 0 | 0.027778 | 0.138889 | 0.527778 | 0.013889 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
3701916651eb74ef3a011d1f7440bbfc83fcee55 | 398 | py | Python | pypegasus/transport/compat.py | vagetablechicken/pegasus-python-client | 4331014eeb3a397e635fe1c506b912105cba4052 | [
"Apache-2.0"
] | 8 | 2018-07-19T09:33:44.000Z | 2022-03-27T15:59:53.000Z | pypegasus/transport/compat.py | vagetablechicken/pegasus-python-client | 4331014eeb3a397e635fe1c506b912105cba4052 | [
"Apache-2.0"
] | 8 | 2018-03-02T08:11:10.000Z | 2022-02-11T03:38:33.000Z | pypegasus/transport/compat.py | vagetablechicken/pegasus-python-client | 4331014eeb3a397e635fe1c506b912105cba4052 | [
"Apache-2.0"
] | 8 | 2018-02-27T07:38:28.000Z | 2021-03-25T02:53:19.000Z | import sys
if sys.version_info[0] == 2:
from cStringIO import StringIO as BufferIO
def binary_to_str(bin_val):
return bin_val
def str_to_binary(str_val):
return str_val
else:
from io import BytesIO as BufferIO # noqa
def binary_to_str(bin_val):
return bin_val.decode('... | 18.090909 | 46 | 0.665829 | 62 | 398 | 4 | 0.419355 | 0.096774 | 0.08871 | 0.112903 | 0.467742 | 0.467742 | 0.467742 | 0.258065 | 0.258065 | 0 | 0 | 0.013559 | 0.258794 | 398 | 21 | 47 | 18.952381 | 0.827119 | 0.01005 | 0 | 0.307692 | 0 | 0 | 0.020408 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0.230769 | 0.307692 | 0.846154 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
37091e6d798d8ba87dae60369c0718439aecb046 | 913 | py | Python | catalyst/dl/callbacks/__init__.py | pokidyshev/catalyst | bfe2cc2af7b02bd954fb0b4a0cae8b350f56789a | [
"Apache-2.0"
] | null | null | null | catalyst/dl/callbacks/__init__.py | pokidyshev/catalyst | bfe2cc2af7b02bd954fb0b4a0cae8b350f56789a | [
"Apache-2.0"
] | null | null | null | catalyst/dl/callbacks/__init__.py | pokidyshev/catalyst | bfe2cc2af7b02bd954fb0b4a0cae8b350f56789a | [
"Apache-2.0"
] | null | null | null | # flake8: noqa
from .checkpoint import CheckpointCallback, IterationCheckpointCallback
from .criterion import (
CriterionAggregatorCallback, CriterionCallback,
CriterionOutputOnlyCallback
)
from .inference import InferCallback, InferMaskCallback
from .logging import (
ConsoleLogger, TelegramLogger, Tensorb... | 36.52 | 74 | 0.838992 | 67 | 913 | 11.432836 | 0.701493 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003713 | 0.115005 | 913 | 24 | 75 | 38.041667 | 0.944307 | 0.013143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
371bcd6e7d1eb85af22cc06d68bce6981f101624 | 2,331 | py | Python | api/migrations/0001_initial.py | ainline/ingo | 8e3ffc98d09895d64d8e3cc4cf6e580b6ac4452b | [
"MIT"
] | null | null | null | api/migrations/0001_initial.py | ainline/ingo | 8e3ffc98d09895d64d8e3cc4cf6e580b6ac4452b | [
"MIT"
] | null | null | null | api/migrations/0001_initial.py | ainline/ingo | 8e3ffc98d09895d64d8e3cc4cf6e580b6ac4452b | [
"MIT"
] | null | null | null | # Generated by Django 2.2.1 on 2019-08-02 13:11
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='User',
fields=[
... | 39.508475 | 114 | 0.543973 | 239 | 2,331 | 5.158996 | 0.267782 | 0.170316 | 0.20438 | 0.272506 | 0.728305 | 0.644769 | 0.644769 | 0.479319 | 0.386861 | 0.386861 | 0 | 0.026708 | 0.309309 | 2,331 | 58 | 115 | 40.189655 | 0.73913 | 0.019305 | 0 | 0.392157 | 1 | 0 | 0.084939 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.019608 | 0.039216 | 0 | 0.117647 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2ed32156f6705f0063a34838b2fb269a87818aa4 | 411 | py | Python | apps/cc_cms/admin.py | FreeOurKnowledge/old_platform | 44347b331cd2526cbfd57b4c7057281ab7cd6207 | [
"MIT"
] | 11 | 2019-07-10T14:26:56.000Z | 2020-09-17T07:33:50.000Z | apps/cc_cms/admin.py | FreeOurKnowledge/platform | 44347b331cd2526cbfd57b4c7057281ab7cd6207 | [
"MIT"
] | 15 | 2018-11-21T15:11:59.000Z | 2020-11-16T05:08:04.000Z | apps/cc_cms/admin.py | FreeOurKnowledge/old_platform | 44347b331cd2526cbfd57b4c7057281ab7cd6207 | [
"MIT"
] | 2 | 2018-11-29T15:35:43.000Z | 2019-05-14T21:44:07.000Z | from django_summernote.admin import SummernoteModelAdmin
from .models import Page, ColumnsSection, Content, DynamicText
class PageAdmin(SummernoteModelAdmin):
summernote_fields = '__all__'
def register_cms(admin_site):
admin_site.register(Page, PageAdmin)
admin_site.register(ColumnsSection, PageAdmin)
... | 29.357143 | 62 | 0.805353 | 44 | 411 | 7.25 | 0.431818 | 0.141066 | 0.213166 | 0.244514 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121655 | 411 | 13 | 63 | 31.615385 | 0.883657 | 0 | 0 | 0 | 0 | 0 | 0.017032 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
2eda27b93f538a47e172b6c061190d2f41e15674 | 2,861 | py | Python | features/steps/tutorial.py | JedCainglet/py-behave-example | 2e4bd726f2aa5568ba9440d49969e0bbc1f5e85d | [
"MIT"
] | null | null | null | features/steps/tutorial.py | JedCainglet/py-behave-example | 2e4bd726f2aa5568ba9440d49969e0bbc1f5e85d | [
"MIT"
] | 3 | 2021-01-13T03:31:07.000Z | 2021-02-15T22:55:14.000Z | features/steps/tutorial.py | JedCainglet/py-behave-example | 2e4bd726f2aa5568ba9440d49969e0bbc1f5e85d | [
"MIT"
] | null | null | null | from behave import *
# Feature: showing off behave
# Scenario: run a simple test
@given('we have behave installed')
def step_impl(context):
pass
@when('we implement a test')
def step_impl(context):
assert True is not False
@then('behave will test it for us!')
def step_impl(context):
assert context.fai... | 20.147887 | 81 | 0.707445 | 436 | 2,861 | 4.584862 | 0.279817 | 0.087544 | 0.137569 | 0.225113 | 0.5993 | 0.592296 | 0.570285 | 0.505253 | 0.489245 | 0.467234 | 0 | 0 | 0.189444 | 2,861 | 141 | 82 | 20.29078 | 0.862009 | 0.188396 | 0 | 0.569444 | 0 | 0 | 0.338401 | 0.009123 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.305556 | false | 0.111111 | 0.013889 | 0 | 0.319444 | 0.027778 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
2edd26e5be4188b08209fe1d68a4ecf8bc79a975 | 260 | py | Python | samples/python-concepts/arrays.py | Samples-Playgorunds/Samples.Python | 8a473fe65d7867daf80de658a124b00d90103541 | [
"MIT"
] | null | null | null | samples/python-concepts/arrays.py | Samples-Playgorunds/Samples.Python | 8a473fe65d7867daf80de658a124b00d90103541 | [
"MIT"
] | null | null | null | samples/python-concepts/arrays.py | Samples-Playgorunds/Samples.Python | 8a473fe65d7867daf80de658a124b00d90103541 | [
"MIT"
] | null | null | null |
integers = [ 1, 6, 4, 3, 15, -2]
print("integers[0] = ", integers[0])
print("integers[1] = ", integers[1])
print("integers[2] = ", integers[2])
print("integers[3] = ", integers[3])
print("integers[4] = ", integers[4])
print("integers[5] = ", integers[5])
| 20 | 36 | 0.588462 | 37 | 260 | 4.135135 | 0.27027 | 0.509804 | 0.183007 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085586 | 0.146154 | 260 | 12 | 37 | 21.666667 | 0.603604 | 0 | 0 | 0 | 0 | 0 | 0.324324 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.857143 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
2ef112e25d5ec54dade9f9fac73e6532d28fb076 | 187 | py | Python | dask/verify_dask_standalone.py | ntr/initialization-actions | fa8fd3eb75b0e106d110cee59ea2ca61620b160a | [
"Apache-2.0"
] | 426 | 2015-10-12T22:29:12.000Z | 2020-01-10T11:04:45.000Z | dask/verify_dask_standalone.py | ntr/initialization-actions | fa8fd3eb75b0e106d110cee59ea2ca61620b160a | [
"Apache-2.0"
] | 469 | 2015-11-09T17:47:27.000Z | 2020-01-15T18:46:21.000Z | dask/verify_dask_standalone.py | ntr/initialization-actions | fa8fd3eb75b0e106d110cee59ea2ca61620b160a | [
"Apache-2.0"
] | 416 | 2015-11-09T10:49:02.000Z | 2020-01-15T22:05:31.000Z | from dask.distributed import Client
import dask.array as da
import dask_ml
import dask_bigquery
import numpy as np
client = Client("localhost:8786")
x = da.sum(np.ones(5))
x.compute()
| 15.583333 | 35 | 0.764706 | 32 | 187 | 4.40625 | 0.59375 | 0.212766 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031056 | 0.139037 | 187 | 11 | 36 | 17 | 0.844721 | 0 | 0 | 0 | 0 | 0 | 0.074866 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.625 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
2c0e00ec02ad1efcca34b0c401656d7cf3775296 | 400 | py | Python | server/server-flask/server.py | DSM-DMS/Project-DMS-Web | 73a5d8fc2310bca90169414abf50f541ca0724c7 | [
"MIT"
] | 11 | 2017-07-04T07:44:07.000Z | 2017-09-19T12:56:55.000Z | server/server-flask/server.py | DSM-DMS/DMS | 73a5d8fc2310bca90169414abf50f541ca0724c7 | [
"MIT"
] | null | null | null | server/server-flask/server.py | DSM-DMS/DMS | 73a5d8fc2310bca90169414abf50f541ca0724c7 | [
"MIT"
] | 2 | 2017-10-23T06:11:16.000Z | 2017-10-26T03:27:57.000Z | import threading
from app import app
from support import db_migrator
from support.api_interaction import meal
from support.apply_initializer.initializer import initialize
if __name__ == '__main__':
db_migrator.migrate_posts()
# meal.parse()
#
threading.Thread(target=initialize).start()
app.run(ho... | 26.666667 | 93 | 0.755 | 53 | 400 | 5.45283 | 0.54717 | 0.114187 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135 | 400 | 14 | 94 | 28.571429 | 0.83526 | 0.03 | 0 | 0 | 0 | 0 | 0.041558 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.555556 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
2c1bef4b6ac7bcc926db73e499a01fef9f111c3f | 80 | py | Python | assertion/ok.py | Jenya26/MLP | d8cd3caf0072bd684708a1d38aa893ccc16c863a | [
"MIT"
] | null | null | null | assertion/ok.py | Jenya26/MLP | d8cd3caf0072bd684708a1d38aa893ccc16c863a | [
"MIT"
] | null | null | null | assertion/ok.py | Jenya26/MLP | d8cd3caf0072bd684708a1d38aa893ccc16c863a | [
"MIT"
] | null | null | null | from .equals import equals
__all__ = ['ok']
def ok():
equals(True, True)
| 10 | 26 | 0.625 | 11 | 80 | 4.181818 | 0.636364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.225 | 80 | 7 | 27 | 11.428571 | 0.741935 | 0 | 0 | 0 | 0 | 0 | 0.025 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2c275f3e73d2411446f993cdceb6aa7bcf6a4bba | 215 | py | Python | simplemde/urls.py | shyojimeena/school-project | a410615e61dd22a59e79e5696227871ddaeaaa5c | [
"MIT"
] | 15 | 2016-05-14T16:20:42.000Z | 2022-02-21T14:45:17.000Z | simplemde/urls.py | shyojimeena/school-project | a410615e61dd22a59e79e5696227871ddaeaaa5c | [
"MIT"
] | null | null | null | simplemde/urls.py | shyojimeena/school-project | a410615e61dd22a59e79e5696227871ddaeaaa5c | [
"MIT"
] | 11 | 2017-09-08T16:10:17.000Z | 2021-03-30T23:56:16.000Z | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^upload/$', views.ImageUploadView.as_view(), name='upload'),
url(r'^md2html/$', views.MarkdownToHTML.as_view(), name='md2html'),
]
| 26.875 | 71 | 0.688372 | 28 | 215 | 5.214286 | 0.571429 | 0.054795 | 0.136986 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010638 | 0.125581 | 215 | 7 | 72 | 30.714286 | 0.765957 | 0 | 0 | 0 | 0 | 0 | 0.148837 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
25ee672e28d4c327bdd861e335c8eb9cec00c350 | 174 | py | Python | arp_properties.py | Sw4T/open-arp-generator | 1c03401c67940296b8ad1409803dbfd76f2fc54b | [
"MIT"
] | 1 | 2017-11-27T08:52:55.000Z | 2017-11-27T08:52:55.000Z | arp_properties.py | Sw4T/open-arp-generator | 1c03401c67940296b8ad1409803dbfd76f2fc54b | [
"MIT"
] | null | null | null | arp_properties.py | Sw4T/open-arp-generator | 1c03401c67940296b8ad1409803dbfd76f2fc54b | [
"MIT"
] | null | null | null | class ArpProperties(object):
def __init__(self, bpm, base_note, pitch_value):
self.bpm = bpm
self.base_note = base_note
self.pitch = pitch_value
| 24.857143 | 52 | 0.655172 | 23 | 174 | 4.565217 | 0.478261 | 0.228571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.258621 | 174 | 6 | 53 | 29 | 0.813953 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d3036ea873fad96bfc16dfa526956f70477eefdb | 2,019 | py | Python | py/orbit/space_charge/scAccNodes.py | LeoRya/py-orbit | 340b14b6fd041ed8ec2cc25b0821b85742aabe0c | [
"MIT"
] | 17 | 2018-02-09T23:39:06.000Z | 2022-03-04T16:27:04.000Z | py/orbit/space_charge/scAccNodes.py | LeoRya/py-orbit | 340b14b6fd041ed8ec2cc25b0821b85742aabe0c | [
"MIT"
] | 22 | 2017-05-31T19:40:14.000Z | 2021-09-24T22:07:47.000Z | py/orbit/space_charge/scAccNodes.py | LeoRya/py-orbit | 340b14b6fd041ed8ec2cc25b0821b85742aabe0c | [
"MIT"
] | 37 | 2016-12-08T19:39:35.000Z | 2022-02-11T19:59:34.000Z | """
Module. Includes abstract classes for all types of space charge accelerator nodes.
"""
import sys
import os
import math
# import the function that finalizes the execution
from orbit.utils import orbitFinalize
# import general accelerator elements and lattice
from orbit.lattice import AccLattice, AccNode, AccActi... | 25.884615 | 139 | 0.721644 | 264 | 2,019 | 5.443182 | 0.378788 | 0.029228 | 0.033403 | 0.02366 | 0.165623 | 0.165623 | 0.165623 | 0.165623 | 0.165623 | 0.165623 | 0 | 0.000618 | 0.199108 | 2,019 | 77 | 140 | 26.220779 | 0.888064 | 0.500743 | 0 | 0.142857 | 0 | 0 | 0.01573 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.321429 | false | 0.071429 | 0.178571 | 0 | 0.678571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
d3182b27a42b7ee7c90c81d41b61ed7e422d618c | 202 | py | Python | bugtests/test314c.py | doom38/jython_v2.2.1 | 0803a0c953c294e6d14f9fc7d08edf6a3e630a15 | [
"CNRI-Jython"
] | null | null | null | bugtests/test314c.py | doom38/jython_v2.2.1 | 0803a0c953c294e6d14f9fc7d08edf6a3e630a15 | [
"CNRI-Jython"
] | null | null | null | bugtests/test314c.py | doom38/jython_v2.2.1 | 0803a0c953c294e6d14f9fc7d08edf6a3e630a15 | [
"CNRI-Jython"
] | null | null | null |
import string
s = "elem1 elem2"
try:
(a, b, c) = string.split(s)
(d, e, f) = string.split(s)
pass
except ValueError:
pass
else:
print support.TestError("Should raise a ValueError")
| 14.428571 | 55 | 0.628713 | 30 | 202 | 4.233333 | 0.733333 | 0.173228 | 0.188976 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012987 | 0.237624 | 202 | 13 | 56 | 15.538462 | 0.811688 | 0 | 0 | 0.2 | 0 | 0 | 0.180905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.2 | 0.1 | null | null | 0.1 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
d32adf385defb68f90abfa9394c5fa465a44cd02 | 9,907 | py | Python | uvvispy/analysis.py | tillbiskup/uvvispy | 99f11a9dc14cd34e50887bdca42b81388758d41a | [
"BSD-2-Clause"
] | 1 | 2021-03-16T05:39:39.000Z | 2021-03-16T05:39:39.000Z | uvvispy/analysis.py | tillbiskup/uvvispy | 99f11a9dc14cd34e50887bdca42b81388758d41a | [
"BSD-2-Clause"
] | null | null | null | uvvispy/analysis.py | tillbiskup/uvvispy | 99f11a9dc14cd34e50887bdca42b81388758d41a | [
"BSD-2-Clause"
] | null | null | null | """Data analysis functionality.
.. sidebar:: Processing vs. analysis steps
The key difference between processing and analysis steps: While a
processing step *modifies* the data of the dataset it operates on,
an analysis step returns a result based on data of a dataset, but leaves
the original dataset ... | 32.061489 | 80 | 0.692843 | 1,307 | 9,907 | 5.236419 | 0.228768 | 0.01315 | 0.020894 | 0.027323 | 0.457043 | 0.431765 | 0.414962 | 0.37668 | 0.360316 | 0.330508 | 0 | 0.000664 | 0.239931 | 9,907 | 308 | 81 | 32.165584 | 0.908234 | 0.899364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
d33ede936bd70d6eb0ca09853f9eb730ba300e4a | 7,898 | py | Python | OCDTrash.py | OpenLinkedSocialData/ocd | fab93bb2ac671fc08b8847d72e19ba90659572bd | [
"Unlicense"
] | null | null | null | OCDTrash.py | OpenLinkedSocialData/ocd | fab93bb2ac671fc08b8847d72e19ba90659572bd | [
"Unlicense"
] | null | null | null | OCDTrash.py | OpenLinkedSocialData/ocd | fab93bb2ac671fc08b8847d72e19ba90659572bd | [
"Unlicense"
] | 1 | 2020-09-23T17:47:29.000Z | 2020-09-23T17:47:29.000Z | #g = r.Graph()
#g.load("cdTriplestore.rdf")
#print time.time()-T
# mais de 4 minutos para carregar
#ss=set([s for s in g.subjects()])
#len(ss)
#oo=set([s for s in g.objects()])
#len(ss)
#len(oo)
#pp=set([s for s in g.predicates()])
#classes=g.objects(predicate=r.RDF.type)
# classes que apareceram na triplificacao dos... | 53.006711 | 93 | 0.730185 | 1,145 | 7,898 | 5.035808 | 0.134498 | 0.070239 | 0.154527 | 0.168574 | 0.792057 | 0.77905 | 0.678287 | 0.671002 | 0.671002 | 0.233958 | 0 | 0.004554 | 0.082426 | 7,898 | 148 | 94 | 53.364865 | 0.791086 | 0.059635 | 0 | 0.066116 | 0 | 0.008264 | 0.520918 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.008264 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d34d5242dc7f07f22b085adaceca3f872ff7ef39 | 14,519 | py | Python | xmlstarlet/__init__.py | dimitern/xmlstarlet | f6304e1f1baff1867b0101501b3f73f09809ec0f | [
"MIT"
] | 8 | 2019-10-31T11:48:08.000Z | 2022-03-11T16:37:39.000Z | xmlstarlet/__init__.py | sthagen/xmlstarlet | 84ec8599c1f21ced9fc912ab30cecff629bed2a8 | [
"MIT"
] | 16 | 2020-04-06T15:11:16.000Z | 2022-03-28T07:23:35.000Z | xmlstarlet/__init__.py | sthagen/xmlstarlet | 84ec8599c1f21ced9fc912ab30cecff629bed2a8 | [
"MIT"
] | 2 | 2020-10-12T13:47:43.000Z | 2020-12-22T05:32:57.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
CFFI bindings to enable using the XMLStarlet Toolkit Command-line utilities for XML
processing from Python.
All commands are supported:
edit(*args) - Edit/Update XML document(s)
select(*args) - Select data or query XML document(s) (XPATH, etc)
tran... | 36.664141 | 89 | 0.600041 | 1,881 | 14,519 | 4.585859 | 0.228602 | 0.024229 | 0.018085 | 0.024113 | 0.441456 | 0.408648 | 0.352655 | 0.289474 | 0.266636 | 0.257825 | 0 | 0.008752 | 0.283835 | 14,519 | 395 | 90 | 36.756962 | 0.820831 | 0.813486 | 0 | 0 | 0 | 0 | 0.052725 | 0.01718 | 0 | 0 | 0 | 0 | 0 | 1 | 0.295455 | false | 0 | 0.022727 | 0 | 0.613636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
d3677a871e64bdab89db62e6195243b0bb7f27cf | 973 | py | Python | tools/models/processing.py | JwDong2019/CVWC-2019-FCOS | 9c343dc820aea7bc79ee0b8206527fa48ebf106f | [
"Apache-2.0"
] | null | null | null | tools/models/processing.py | JwDong2019/CVWC-2019-FCOS | 9c343dc820aea7bc79ee0b8206527fa48ebf106f | [
"Apache-2.0"
] | null | null | null | tools/models/processing.py | JwDong2019/CVWC-2019-FCOS | 9c343dc820aea7bc79ee0b8206527fa48ebf106f | [
"Apache-2.0"
] | null | null | null | import torch
pretrained_weights = torch.load('fcos_mstrain_640_800_r101_caffe_fpn_gn_2x_4gpu_20190516-42e6f62d.pth')
num_class = 2
# store = []
# for index, name in enumerate(pretrained_weights['state_dict']):
# store.append(name)
# a = store[500:]
# b = pretrained_weights['state_dict']['bbox_head.fcos_cls.weig... | 44.227273 | 104 | 0.782117 | 152 | 973 | 4.585526 | 0.335526 | 0.268293 | 0.284075 | 0.335725 | 0.619799 | 0.619799 | 0.619799 | 0.505022 | 0.441894 | 0.232425 | 0 | 0.060373 | 0.06372 | 973 | 21 | 105 | 46.333333 | 0.70472 | 0.38335 | 0 | 0 | 0 | 0 | 0.434856 | 0.367174 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d37839cd1edcc6eee8e41ce70b4f642896dbd2cb | 737 | py | Python | backend/autobets/apimb/trading_logic.py | slarkjm0803/autobets | f92a5d999acaf5d7c83ca2768a260c2282eabbee | [
"MIT"
] | 1 | 2020-03-06T14:29:12.000Z | 2020-03-06T14:29:12.000Z | backend/autobets/apimb/trading_logic.py | slarkjm0803/autobets | f92a5d999acaf5d7c83ca2768a260c2282eabbee | [
"MIT"
] | null | null | null | backend/autobets/apimb/trading_logic.py | slarkjm0803/autobets | f92a5d999acaf5d7c83ca2768a260c2282eabbee | [
"MIT"
] | null | null | null | from django.db.models.signals import pre_save, pre_delete, post_save, post_delete
from django.dispatch import receiver
from .client import get_client
from .models import Stakes, UserStakes, BetTriggers
from matchbook.enums import Side
from matchbook.endpoints.betting import Betting
from matchbook.enums import Side, Sta... | 22.333333 | 81 | 0.789688 | 111 | 737 | 5.063063 | 0.486486 | 0.064057 | 0.064057 | 0.085409 | 0.099644 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011147 | 0.147897 | 737 | 32 | 82 | 23.03125 | 0.883758 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.076923 | 0.538462 | 0 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
6c9a41f0b07e9611704343f42383692ff72613b3 | 1,332 | py | Python | thunder/__init__.py | pearsonlab/thunder | b15ba0a38642312d597a98643cf3514e2d46b69d | [
"Apache-2.0"
] | 1 | 2017-02-02T19:14:42.000Z | 2017-02-02T19:14:42.000Z | thunder/__init__.py | pearsonlab/thunder | b15ba0a38642312d597a98643cf3514e2d46b69d | [
"Apache-2.0"
] | null | null | null | thunder/__init__.py | pearsonlab/thunder | b15ba0a38642312d597a98643cf3514e2d46b69d | [
"Apache-2.0"
] | null | null | null | # analyses
from thunder.decoding.uniclassify import MassUnivariateClassifier
from thunder.decoding.uniclassify import GaussNaiveBayesClassifier, TTestClassifier
from thunder.factorization.pca import PCA
from thunder.factorization.svd import SVD
from thunder.factorization.ica import ICA
from thunder.factorization.nmf im... | 45.931034 | 122 | 0.87012 | 152 | 1,332 | 7.598684 | 0.361842 | 0.209524 | 0.064935 | 0.051948 | 0.209524 | 0.147186 | 0 | 0 | 0 | 0 | 0 | 0.002453 | 0.081832 | 1,332 | 29 | 123 | 45.931034 | 0.941946 | 0.021772 | 0 | 0 | 0 | 0 | 0.006923 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.956522 | 0 | 0.956522 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
6cabd9b477da4843e2686e303f50357c703f4c16 | 99 | py | Python | scripts/nbgrader_config_undergrad.py | majomarin/Python4Geosciences | b40e016695ddf8c07764271d5960c699d13760a8 | [
"MIT"
] | 44 | 2016-10-05T19:11:20.000Z | 2022-01-03T06:05:27.000Z | scripts/nbgrader_config_undergrad.py | iitbbsvijay2020/python4geosciences | b40e016695ddf8c07764271d5960c699d13760a8 | [
"MIT"
] | null | null | null | scripts/nbgrader_config_undergrad.py | iitbbsvijay2020/python4geosciences | b40e016695ddf8c07764271d5960c699d13760a8 | [
"MIT"
] | 27 | 2017-01-11T22:33:07.000Z | 2021-11-18T11:23:05.000Z | c = get_config()
c.Exchange.root = '/srv/nbgrader/exchange'
c.Exchange.course_id = "2018s-ocng469"
| 24.75 | 42 | 0.737374 | 15 | 99 | 4.733333 | 0.733333 | 0.253521 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.077778 | 0.090909 | 99 | 3 | 43 | 33 | 0.711111 | 0 | 0 | 0 | 0 | 0 | 0.353535 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6cec196a76cad4782937b93c111e488de6d49ce0 | 243 | py | Python | keyword,default,required arguments.py | karanjakhar/python-programs | 316cd4e83ae39c1d1e70c2a5e8a9329641bad9e1 | [
"MIT"
] | 1 | 2019-09-02T15:56:38.000Z | 2019-09-02T15:56:38.000Z | keyword,default,required arguments.py | karanjakhar/python-programs | 316cd4e83ae39c1d1e70c2a5e8a9329641bad9e1 | [
"MIT"
] | null | null | null | keyword,default,required arguments.py | karanjakhar/python-programs | 316cd4e83ae39c1d1e70c2a5e8a9329641bad9e1 | [
"MIT"
] | null | null | null | #default
def printx(name,age):
print(name)
print(age)
return;
printx(name='miki',age=96)
#keyword
def printm(str):
print(str)
return;
printm(str='sandy')
#required
def printme(str):
print(str)
return;
printme()
| 14.294118 | 27 | 0.633745 | 33 | 243 | 4.666667 | 0.454545 | 0.12987 | 0.142857 | 0.220779 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010417 | 0.209877 | 243 | 16 | 28 | 15.1875 | 0.791667 | 0.090535 | 0 | 0.384615 | 0 | 0 | 0.044554 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0 | 0 | 0.230769 | 0.769231 | 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 | 0 | 0 | 1 | 0 | 3 |
6cf3cc051b817e67b03a291ba93a7c0bd83a432b | 417 | py | Python | lesson9/class_car.py | kelinsobw/lessons | cc0008c31c3397ddadfa80d5e77f746c0a3817f6 | [
"BSD-3-Clause"
] | null | null | null | lesson9/class_car.py | kelinsobw/lessons | cc0008c31c3397ddadfa80d5e77f746c0a3817f6 | [
"BSD-3-Clause"
] | null | null | null | lesson9/class_car.py | kelinsobw/lessons | cc0008c31c3397ddadfa80d5e77f746c0a3817f6 | [
"BSD-3-Clause"
] | null | null | null | class Car:
def __init__(self,marka,model,god,speed=0):
self.marka=marka
self.model=model
self.god=god
self.speed=speed
def speed_up(self):
self.speed+=5
def speed_down(self):
self.speed-=5
def speed_stop(self):
self.speed=0
def print_speed(... | 19.857143 | 47 | 0.577938 | 59 | 417 | 3.932203 | 0.322034 | 0.232759 | 0.224138 | 0.12069 | 0.189655 | 0.189655 | 0 | 0 | 0 | 0 | 0 | 0.017065 | 0.297362 | 417 | 21 | 48 | 19.857143 | 0.774744 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0 | 0 | 0.4375 | 0.125 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9f03b810c90370aab9aa53b56bb2c53da12a3038 | 6,091 | py | Python | Testing/test_featureExtraction.py | Aarthif-Nawaz/ARC-R3ACT | 8b21eb417cb6f8d603182272d453298c29aff506 | [
"MIT"
] | null | null | null | Testing/test_featureExtraction.py | Aarthif-Nawaz/ARC-R3ACT | 8b21eb417cb6f8d603182272d453298c29aff506 | [
"MIT"
] | null | null | null | Testing/test_featureExtraction.py | Aarthif-Nawaz/ARC-R3ACT | 8b21eb417cb6f8d603182272d453298c29aff506 | [
"MIT"
] | 1 | 2022-01-26T02:30:11.000Z | 2022-01-26T02:30:11.000Z | # Authour - Aarthif Nawaz
# Purpose - Perform Unit tests for all the functions in FeatureExtraction.py
#Imports
import unittest
from sklearn.feature_extraction.text import TfidfVectorizer
import Data_Science.FeatureExtraction
# Defining the class to perform unit test
class TestFeatureExtraction(unittest.Te... | 114.924528 | 789 | 0.74175 | 764 | 6,091 | 5.827225 | 0.218586 | 0.037736 | 0.069182 | 0.101078 | 0.634771 | 0.626685 | 0.612758 | 0.54425 | 0.534142 | 0.504717 | 0 | 0.002934 | 0.160729 | 6,091 | 52 | 790 | 117.134615 | 0.867958 | 0.127894 | 0 | 0 | 0 | 0.310345 | 0.534071 | 0 | 0 | 0 | 0 | 0 | 0.310345 | 1 | 0.241379 | false | 0 | 0.103448 | 0 | 0.37931 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9f046ec3e8edbc2ea971916ea9c3ee4040dab4f4 | 165 | py | Python | zemfrog/extensions/celery.py | aprilahijriyan/zemfrog | 0a4ebc303caa8fadf89ca0cc8569de60c61f3252 | [
"MIT"
] | null | null | null | zemfrog/extensions/celery.py | aprilahijriyan/zemfrog | 0a4ebc303caa8fadf89ca0cc8569de60c61f3252 | [
"MIT"
] | null | null | null | zemfrog/extensions/celery.py | aprilahijriyan/zemfrog | 0a4ebc303caa8fadf89ca0cc8569de60c61f3252 | [
"MIT"
] | null | null | null | from flask import Flask
from zemfrog.app import make_celery
def init_app(app: Flask):
celery = make_celery(app)
app.extensions["celery"] = celery
| 18.333333 | 38 | 0.69697 | 23 | 165 | 4.869565 | 0.434783 | 0.178571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.218182 | 165 | 8 | 39 | 20.625 | 0.868217 | 0 | 0 | 0 | 0 | 0 | 0.038217 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
9f38ee9f8595b0ff878d35dd69b749a2a40e323c | 5,575 | py | Python | data/pyalt/fhmt1.py | GameMaker2k/Neo-Hockey-Test | 5737bfedf0d83f69964e85ac1dbf7e6a93c13f44 | [
"BSD-3-Clause"
] | 1 | 2020-04-04T10:25:42.000Z | 2020-04-04T10:25:42.000Z | data/pyalt/fhmt1.py | GameMaker2k/Neo-Hockey-Test | 5737bfedf0d83f69964e85ac1dbf7e6a93c13f44 | [
"BSD-3-Clause"
] | null | null | null | data/pyalt/fhmt1.py | GameMaker2k/Neo-Hockey-Test | 5737bfedf0d83f69964e85ac1dbf7e6a93c13f44 | [
"BSD-3-Clause"
] | 3 | 2021-09-07T08:44:33.000Z | 2021-12-07T23:49:39.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals;
import libhockeydata;
hockeyarray = libhockeydata.CreateHockeyArray("./php/data/fhmt1y17-18.db3");
hockeyarray = libhockeydata.AddHockeyLeagueToArray(hockeyarray, "HOL", "Hockey League", "... | 139.375 | 250 | 0.718206 | 559 | 5,575 | 7.150268 | 0.21288 | 0.18614 | 0.067551 | 0.220165 | 0.625469 | 0.414811 | 0.246185 | 0.24018 | 0.090068 | 0.090068 | 0 | 0.015665 | 0.095426 | 5,575 | 39 | 251 | 142.948718 | 0.776919 | 0.007534 | 0 | 0 | 0 | 0 | 0.40047 | 0.013018 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.058824 | 0.058824 | 0 | 0.058824 | 0.029412 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
9f3e1404974d6664a189327fdee78a89365bad6e | 397 | py | Python | src/__init__.py | patdaburu/qgis-plugin-starter | 61cc90c2e5b7d4bb47549a224f0ef92ed1ea7819 | [
"MIT"
] | null | null | null | src/__init__.py | patdaburu/qgis-plugin-starter | 61cc90c2e5b7d4bb47549a224f0ef92ed1ea7819 | [
"MIT"
] | null | null | null | src/__init__.py | patdaburu/qgis-plugin-starter | 61cc90c2e5b7d4bb47549a224f0ef92ed1ea7819 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
.. currentmodule:: sample
.. moduleauthor:: Pat Daburu <pat@daburu.net>
This script initializes the plugin, making it known to QGIS.
"""
#noinspection PyPep8Naming
def classFactory(iface):
"""
:param iface: a QGIS interface instance
:return: :py:class:`... | 18.904762 | 60 | 0.670025 | 47 | 397 | 5.659574 | 0.808511 | 0.067669 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006231 | 0.191436 | 397 | 20 | 61 | 19.85 | 0.82243 | 0.692695 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
9f48e46fee1440b0804b41535940cfbd7fa05cb5 | 208 | py | Python | inventory/urls.py | Melpomene927/jp-trade | cbfa33a090c5d3b01d37ccb1b835963bb0e180aa | [
"Apache-2.0"
] | null | null | null | inventory/urls.py | Melpomene927/jp-trade | cbfa33a090c5d3b01d37ccb1b835963bb0e180aa | [
"Apache-2.0"
] | null | null | null | inventory/urls.py | Melpomene927/jp-trade | cbfa33a090c5d3b01d37ccb1b835963bb0e180aa | [
"Apache-2.0"
] | null | null | null | from django.contrib import admin
from django.urls import path
from . import views
urlpatterns = [
path('', views.inventory_list, name='inventory'),
path('package/', views.package, name='package'),
]
| 23.111111 | 53 | 0.711538 | 26 | 208 | 5.653846 | 0.5 | 0.136054 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149038 | 208 | 8 | 54 | 26 | 0.830508 | 0 | 0 | 0 | 0 | 0 | 0.115385 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
9f596d9f87dc9d7bc744c315f6c1b62827b1eeff | 984 | py | Python | resources/lib/script.py | mastashake08/mebo-updater | d13ad8911a43f4f8e18e95b37af7aad5c9cbe7b8 | [
"MIT"
] | null | null | null | resources/lib/script.py | mastashake08/mebo-updater | d13ad8911a43f4f8e18e95b37af7aad5c9cbe7b8 | [
"MIT"
] | null | null | null | resources/lib/script.py | mastashake08/mebo-updater | d13ad8911a43f4f8e18e95b37af7aad5c9cbe7b8 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from resources.lib import kodiutils
from resources.lib import kodilogging
import logging
import xbmcaddon
import xbmcgui
import xbmc
import urllib
from subprocess import call
logger = logging.getLogger(ADDON.getAddonInfo('mebo.updater'))
# Put your code here, this is just an ex... | 32.8 | 135 | 0.707317 | 132 | 984 | 5.242424 | 0.643939 | 0.047688 | 0.046243 | 0.063584 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012392 | 0.179878 | 984 | 29 | 136 | 33.931034 | 0.845105 | 0.159553 | 0 | 0 | 0 | 0.055556 | 0.363178 | 0.039092 | 0 | 0 | 0 | 0.034483 | 0 | 1 | 0.111111 | false | 0 | 0.444444 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
9f683b98c29f84bc0bc593884072aaf2227d79da | 21,002 | py | Python | blowdrycss/unit_tests/test_watchdogwrapper_main.py | nueverest/BlowDryCSS | d41b587c9b6ed6bdf22f01ffcb4598be24db8637 | [
"MIT"
] | null | null | null | blowdrycss/unit_tests/test_watchdogwrapper_main.py | nueverest/BlowDryCSS | d41b587c9b6ed6bdf22f01ffcb4598be24db8637 | [
"MIT"
] | null | null | null | blowdrycss/unit_tests/test_watchdogwrapper_main.py | nueverest/BlowDryCSS | d41b587c9b6ed6bdf22f01ffcb4598be24db8637 | [
"MIT"
] | null | null | null | # python 2
from __future__ import absolute_import, print_function, unicode_literals, with_statement
import _thread
# builtins
from unittest import TestCase, main
import logging
import sys
from io import StringIO, open
from time import sleep
from os import path, remove
# plugins
from blowdrycss.utilities import unitte... | 37.237589 | 120 | 0.566184 | 2,475 | 21,002 | 4.690101 | 0.145455 | 0.023432 | 0.033598 | 0.040317 | 0.741902 | 0.725706 | 0.710286 | 0.689438 | 0.665834 | 0.639817 | 0 | 0.051002 | 0.315684 | 21,002 | 563 | 121 | 37.30373 | 0.75668 | 0.086135 | 0 | 0.392781 | 0 | 0.101911 | 0.548379 | 0.134947 | 0 | 0 | 0 | 0 | 0.04034 | 1 | 0.012739 | false | 0.010616 | 0.053079 | 0 | 0.07431 | 0.004246 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9f75ae8b4f90ddeecd2bde3907fabaa0574a4dcd | 1,871 | py | Python | profiles_api/models.py | AkshayVKumar/Source-code-of-REST-API | a8e2eda822a98c90e697006acde6a2377665142d | [
"MIT"
] | null | null | null | profiles_api/models.py | AkshayVKumar/Source-code-of-REST-API | a8e2eda822a98c90e697006acde6a2377665142d | [
"MIT"
] | 4 | 2020-06-06T01:45:42.000Z | 2022-02-10T11:20:23.000Z | profiles_api/models.py | AkshayVKumar/Source-code-of-REST-API | a8e2eda822a98c90e697006acde6a2377665142d | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib.auth.models import AbstractBaseUser
from django.contrib.auth.models import PermissionsMixin,BaseUserManager
from django.conf import settings
# Create your models here.
class UserProfileManager(BaseUserManager):
"""manager for user profiles"""
def create_user(se... | 29.234375 | 85 | 0.702833 | 235 | 1,871 | 5.438298 | 0.395745 | 0.031299 | 0.039906 | 0.032864 | 0.246479 | 0.175274 | 0.123631 | 0.078247 | 0.078247 | 0.078247 | 0 | 0.006093 | 0.210583 | 1,871 | 64 | 86 | 29.234375 | 0.859174 | 0.115981 | 0 | 0.205128 | 0 | 0 | 0.025061 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0.102564 | 0.102564 | 0.102564 | 0.74359 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 3 |
9f7d12f1f8eaa3c0fad8cf7330d9e945547adca6 | 226 | py | Python | 1-beginner/1038.py | alenvieira/uri-online-judge-solutions | ca5ae7064d84af4dae12fc37d4d14ee441e49d06 | [
"MIT"
] | null | null | null | 1-beginner/1038.py | alenvieira/uri-online-judge-solutions | ca5ae7064d84af4dae12fc37d4d14ee441e49d06 | [
"MIT"
] | null | null | null | 1-beginner/1038.py | alenvieira/uri-online-judge-solutions | ca5ae7064d84af4dae12fc37d4d14ee441e49d06 | [
"MIT"
] | null | null | null | price_list = { 1 : 4.0, 2 : 4.5, 3 : 5.0, 4 : 2.0, 5 : 1.5}
values = input()
product_code, price_product = [int(value) for value in values.split(' ')]
print('Total: R$ {:.2f}'.format(price_list[product_code] * price_product))
| 45.2 | 74 | 0.637168 | 41 | 226 | 3.365854 | 0.536585 | 0.130435 | 0.231884 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08377 | 0.154867 | 226 | 4 | 75 | 56.5 | 0.638743 | 0 | 0 | 0 | 0 | 0 | 0.075221 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9f8b42c9df78456cfb417a42b38e3e6c126cfc4f | 118 | py | Python | newsCrawl/fakeNews/crawlapp/urls.py | ARIF-KHAN-420/Fake_News | acfbffcce454afc09c4a7b06205c1a632c11f822 | [
"MIT"
] | 1 | 2022-01-03T17:54:03.000Z | 2022-01-03T17:54:03.000Z | newsCrawl/fakeNews/crawlapp/urls.py | arifkhan-silicornya/Fake_News | acfbffcce454afc09c4a7b06205c1a632c11f822 | [
"MIT"
] | null | null | null | newsCrawl/fakeNews/crawlapp/urls.py | arifkhan-silicornya/Fake_News | acfbffcce454afc09c4a7b06205c1a632c11f822 | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
urlpatterns = [
path('',views.crawling,name='actionCrawler')
]
| 14.75 | 48 | 0.711864 | 14 | 118 | 6 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161017 | 118 | 7 | 49 | 16.857143 | 0.848485 | 0 | 0 | 0 | 0 | 0 | 0.110169 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
9fa5a83931a783c516d67093672870cbdefcd754 | 921 | py | Python | eds/exception.py | jleopold28/eds | 7a1f61ec1d595ea39c73c4c0096127cbe83be862 | [
"Apache-2.0"
] | 3 | 2021-05-20T10:53:56.000Z | 2021-12-06T13:21:15.000Z | eds/exception.py | jleopold28/eds | 7a1f61ec1d595ea39c73c4c0096127cbe83be862 | [
"Apache-2.0"
] | 27 | 2021-06-05T03:21:28.000Z | 2021-09-22T19:15:27.000Z | eds/exception.py | jleopold28/eds | 7a1f61ec1d595ea39c73c4c0096127cbe83be862 | [
"Apache-2.0"
] | 3 | 2021-05-16T18:49:55.000Z | 2021-07-09T15:07:21.000Z |
class EdsError(Exception):
"""EDS base exception."""
class DuplicateIncludeError(Exception):
"""Raised when a duplicate include occurs."""
class PluginNameNotFoundError(EdsError):
"""Raised when a specific plugin is not found."""
class PluginNameMismatchError(EdsError):
"""Raised when a plugin na... | 25.583333 | 93 | 0.741585 | 102 | 921 | 6.676471 | 0.421569 | 0.117474 | 0.113069 | 0.167401 | 0.226138 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.156352 | 921 | 35 | 94 | 26.314286 | 0.876448 | 0.487514 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 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 | 0 | 0 | 1 | 0 | 0 | 3 |
9fb0043dd7e77d4c67d41badd0e746e1b7aedca2 | 161 | py | Python | examples/one/histology/brain_regions_navigation.py | nbonacchi/ibllib | 9066c00a8e9a65a1d209144a2ac54d0b87bec0b3 | [
"MIT"
] | 38 | 2018-08-07T21:55:29.000Z | 2022-03-21T14:49:03.000Z | examples/one/histology/brain_regions_navigation.py | nbonacchi/ibllib | 9066c00a8e9a65a1d209144a2ac54d0b87bec0b3 | [
"MIT"
] | 207 | 2018-07-25T15:10:48.000Z | 2022-03-08T13:23:08.000Z | examples/one/histology/brain_regions_navigation.py | nbonacchi/ibllib | 9066c00a8e9a65a1d209144a2ac54d0b87bec0b3 | [
"MIT"
] | 35 | 2018-09-04T14:49:56.000Z | 2022-01-06T21:17:51.000Z | from ibllib.atlas import AllenAtlas
ba = AllenAtlas()
# Primary somatosensory area nose
region_id = 353
ba.regions.descendants(353)
ba.regions.ancestors(353)
| 16.1 | 35 | 0.78882 | 22 | 161 | 5.727273 | 0.727273 | 0.079365 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06383 | 0.124224 | 161 | 9 | 36 | 17.888889 | 0.829787 | 0.192547 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 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 | 0 | 0 | 0 | 0 | 0 | 3 |
9fb6cf849ae5e92585b4285ec068a1a8237d28c5 | 269 | py | Python | app/controllers/atividadesProfissionais.py | pedroferronato/curriculos | f76bb8a2abf2c833903af1ef251a1b57126e9d4a | [
"MIT"
] | null | null | null | app/controllers/atividadesProfissionais.py | pedroferronato/curriculos | f76bb8a2abf2c833903af1ef251a1b57126e9d4a | [
"MIT"
] | null | null | null | app/controllers/atividadesProfissionais.py | pedroferronato/curriculos | f76bb8a2abf2c833903af1ef251a1b57126e9d4a | [
"MIT"
] | null | null | null | from flask import render_template
from app import app
from app.models.tables import AtividadeProfissional
@app.route('/atividades')
def atividades():
lista = AtividadeProfissional.query.all()
return render_template("listar_ativProfissional.html", lista=lista)
| 29.888889 | 71 | 0.799257 | 32 | 269 | 6.625 | 0.59375 | 0.132075 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111524 | 269 | 8 | 72 | 33.625 | 0.887029 | 0 | 0 | 0 | 0 | 0 | 0.144981 | 0.104089 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
9fb94250dbd07287b9778a6397a6c1e51820989a | 213 | py | Python | helpers/render_index_html.py | nortics/stepik-flask2 | dde72785c35427f2e80745d26afe442cfbef1815 | [
"MIT"
] | null | null | null | helpers/render_index_html.py | nortics/stepik-flask2 | dde72785c35427f2e80745d26afe442cfbef1815 | [
"MIT"
] | null | null | null | helpers/render_index_html.py | nortics/stepik-flask2 | dde72785c35427f2e80745d26afe442cfbef1815 | [
"MIT"
] | null | null | null | from flask import render_template
from data import tours
import random
def index_html():
tours6 ={}
for i in range(1,7):
tours6[i] = tours[i]
return render_template('index.html',tour = tours6) | 23.666667 | 54 | 0.685446 | 32 | 213 | 4.46875 | 0.625 | 0.195804 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029762 | 0.211268 | 213 | 9 | 54 | 23.666667 | 0.821429 | 0 | 0 | 0 | 0 | 0 | 0.046729 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
9fcc390db02d00206b91280b29cfed7c5184d396 | 106 | py | Python | .history/ClassFiles/OOP/InstanciatingAClass_20210103151548.py | minefarmer/Comprehensive-Python | f97b9b83ec328fc4e4815607e6a65de90bb8de66 | [
"Unlicense"
] | null | null | null | .history/ClassFiles/OOP/InstanciatingAClass_20210103151548.py | minefarmer/Comprehensive-Python | f97b9b83ec328fc4e4815607e6a65de90bb8de66 | [
"Unlicense"
] | null | null | null | .history/ClassFiles/OOP/InstanciatingAClass_20210103151548.py | minefarmer/Comprehensive-Python | f97b9b83ec328fc4e4815607e6a65de90bb8de66 | [
"Unlicense"
] | null | null | null | ''' instantiating a class
The process of creating a an object from a class.
''' | 10.6 | 49 | 0.54717 | 13 | 106 | 4.461538 | 0.769231 | 0.206897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.386792 | 106 | 10 | 50 | 10.6 | 0.892308 | 0.669811 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9fcd1d795526bde99374ed3498ecc22cc7c5855e | 3,628 | py | Python | tests/test_device_history.py | gilmaicor/history | f45bce34336de2cbe3c03d92934e92afcfb18b75 | [
"Apache-2.0"
] | null | null | null | tests/test_device_history.py | gilmaicor/history | f45bce34336de2cbe3c03d92934e92afcfb18b75 | [
"Apache-2.0"
] | null | null | null | tests/test_device_history.py | gilmaicor/history | f45bce34336de2cbe3c03d92934e92afcfb18b75 | [
"Apache-2.0"
] | null | null | null | import pytest
import falcon
from unittest.mock import MagicMock, Mock, patch
from history.api.models import DeviceHistory, HistoryUtil
class TestDeviceHistory:
def test_parse_request1(self):
request = MagicMock()
request.params.keys.return_value = ['firstN', 'dateFrom', 'dateTo']
req_c... | 46.512821 | 89 | 0.668964 | 399 | 3,628 | 5.774436 | 0.16792 | 0.078993 | 0.048611 | 0.088108 | 0.731337 | 0.705295 | 0.705295 | 0.705295 | 0.549479 | 0.549479 | 0 | 0.014452 | 0.218026 | 3,628 | 77 | 90 | 47.116883 | 0.797674 | 0 | 0 | 0.461538 | 0 | 0 | 0.146362 | 0.075524 | 0 | 0 | 0 | 0 | 0.046154 | 1 | 0.107692 | false | 0 | 0.061538 | 0 | 0.184615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 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 | 3 |
4c892cc3c691ae0ce06b26d95f0c67b3aae081f0 | 743 | py | Python | scripts/greaseweazle/image/hfe.py | uffejakobsen/Greaseweazle | 2dc37fe3ec9a52e13cb4a17b530fcca13fd61842 | [
"Unlicense"
] | 1 | 2021-05-24T13:35:39.000Z | 2021-05-24T13:35:39.000Z | scripts/greaseweazle/image/hfe.py | uffejakobsen/Greaseweazle | 2dc37fe3ec9a52e13cb4a17b530fcca13fd61842 | [
"Unlicense"
] | null | null | null | scripts/greaseweazle/image/hfe.py | uffejakobsen/Greaseweazle | 2dc37fe3ec9a52e13cb4a17b530fcca13fd61842 | [
"Unlicense"
] | null | null | null | # greaseweazle/image/hfe.py
#
# Written & released by Keir Fraser <keir.xen@gmail.com>
#
# This is free and unencumbered software released into the public domain.
# See the file COPYING for more details, or visit <http://unlicense.org>.
class HFE:
def __init__(self, start_cyl, nr_sides):
self.start_cyl = ... | 19.552632 | 73 | 0.625841 | 102 | 743 | 4.401961 | 0.647059 | 0.053452 | 0.053452 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005587 | 0.277254 | 743 | 37 | 74 | 20.081081 | 0.83054 | 0.35397 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3125 | false | 0.0625 | 0 | 0.125 | 0.5625 | 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 | 0 | 0 | 0 | 3 |
4c9d7b35446b11f0d180e206023e1a7adf1d95c2 | 121 | py | Python | env.py | spin13/slack | a99013e3a8901c0c33304780e56b819ce192cd49 | [
"MIT"
] | null | null | null | env.py | spin13/slack | a99013e3a8901c0c33304780e56b819ce192cd49 | [
"MIT"
] | null | null | null | env.py | spin13/slack | a99013e3a8901c0c33304780e56b819ce192cd49 | [
"MIT"
] | null | null | null | SLACK_TOKEN = ''
APP_TOKEN = ''
WUNDERLIST_CLIENT_ID = ''
WUNDERLIST_TOKEN = ''
SLACK_WUNDERLIST_TOKENS = [ '' ]
| 17.285714 | 33 | 0.652893 | 13 | 121 | 5.615385 | 0.615385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.198347 | 121 | 6 | 34 | 20.166667 | 0.742268 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4ca4a8e3361e72eba6cb4e042e17348498ac5d62 | 302 | py | Python | python/conditionals/conditionals1.py | maleich/ReadingBat-conditional1 | 4701caf110fb88952c4ca318a755c37869088750 | [
"Apache-2.0"
] | null | null | null | python/conditionals/conditionals1.py | maleich/ReadingBat-conditional1 | 4701caf110fb88952c4ca318a755c37869088750 | [
"Apache-2.0"
] | null | null | null | python/conditionals/conditionals1.py | maleich/ReadingBat-conditional1 | 4701caf110fb88952c4ca318a755c37869088750 | [
"Apache-2.0"
] | 1 | 2020-07-31T01:59:29.000Z | 2020-07-31T01:59:29.000Z | # @desc By Anay '24
def check_age(age):
if age < 21:
return age
return age + 5
def main():
print(check_age(5))
print(check_age(29))
print(check_age(42))
print(check_age(15))
print(check_age(0.38))
print(check_age(21))
if __name__ == '__main__':
main()
| 14.380952 | 26 | 0.589404 | 47 | 302 | 3.468085 | 0.404255 | 0.343558 | 0.478528 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076577 | 0.264901 | 302 | 20 | 27 | 15.1 | 0.657658 | 0.056291 | 0 | 0 | 0 | 0 | 0.028269 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0 | 0 | 0.307692 | 0.461538 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
4cbf68b03b9393e0f9ec94ef908660506954e670 | 3,339 | py | Python | stubs.min/Rhino/Geometry/__init___parts/Vector3f.py | denfromufa/ironpython-stubs | 4d2b405eda3ceed186e8adca55dd97c332c6f49d | [
"MIT"
] | 1 | 2017-07-07T11:15:45.000Z | 2017-07-07T11:15:45.000Z | stubs.min/Rhino/Geometry/__init___parts/Vector3f.py | hdm-dt-fb/ironpython-stubs | 4d2b405eda3ceed186e8adca55dd97c332c6f49d | [
"MIT"
] | null | null | null | stubs.min/Rhino/Geometry/__init___parts/Vector3f.py | hdm-dt-fb/ironpython-stubs | 4d2b405eda3ceed186e8adca55dd97c332c6f49d | [
"MIT"
] | null | null | null | class Vector3f(object,IEquatable[Vector3f],IComparable[Vector3f],IComparable,IEpsilonFComparable[Vector3f]):
""" Vector3f(x: Single,y: Single,z: Single) """
@staticmethod
def Add(point,vector):
""" Add(point: Point3f,vector: Vector3f) -> Point3f """
pass
def CompareTo(self,other):
""" CompareTo(self: V... | 26.927419 | 215 | 0.642408 | 404 | 3,339 | 5 | 0.205446 | 0.079703 | 0.041584 | 0.044554 | 0.308416 | 0.227228 | 0.206436 | 0.166832 | 0.166832 | 0.166832 | 0 | 0.016624 | 0.189278 | 3,339 | 123 | 216 | 27.146341 | 0.72959 | 0.381551 | 0 | 0.455882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.397059 | false | 0.397059 | 0 | 0 | 0.544118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
4cd877603db2e32984f79f6bab3da7ef60c844aa | 147 | py | Python | titanicsp/utils.py | abbiyanaila/titanicsp | 1b05c72f4ad30182ef71890abd1e941852dc169d | [
"MIT"
] | null | null | null | titanicsp/utils.py | abbiyanaila/titanicsp | 1b05c72f4ad30182ef71890abd1e941852dc169d | [
"MIT"
] | null | null | null | titanicsp/utils.py | abbiyanaila/titanicsp | 1b05c72f4ad30182ef71890abd1e941852dc169d | [
"MIT"
] | null | null | null | from pathlib import Path
import joblib
class Loader:
@staticmethod
def load_model(path:str):
p = Path(path)
joblib.load(p) | 18.375 | 29 | 0.653061 | 20 | 147 | 4.75 | 0.65 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.265306 | 147 | 8 | 30 | 18.375 | 0.87963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
4ce190ee15aa11b75effd19aa499e8a55cdc9bf7 | 443 | py | Python | cpp_04.py | sitdh/59.com-prog | 24f536a72b0467ff3ee1615f515ecff9fbf36bb3 | [
"MIT"
] | 1 | 2021-04-25T14:46:12.000Z | 2021-04-25T14:46:12.000Z | cpp_04.py | sitdh/com-prog | 24f536a72b0467ff3ee1615f515ecff9fbf36bb3 | [
"MIT"
] | null | null | null | cpp_04.py | sitdh/com-prog | 24f536a72b0467ff3ee1615f515ecff9fbf36bb3 | [
"MIT"
] | null | null | null | first_number = int(input())
second_number = int(input())
large_number = max(first_number, second_number)
small_number = min(first_number, second_number)
remaining_number = 0
gcd = 0
while True:
times = large_number // small_number
remain = large_number - ( small_number * times )
if 0 == remain:
... | 18.458333 | 52 | 0.672686 | 57 | 443 | 4.929825 | 0.350877 | 0.234875 | 0.302491 | 0.234875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008929 | 0.241535 | 443 | 23 | 53 | 19.26087 | 0.827381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.0625 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4cf52aa5f12a7a43cd09e908a7a3e0b8689307ad | 335 | py | Python | tests/context.py | stevepbyrne/dbus-systemcalc-py | 4d50ca36af51bbe1e3040cb63f60ef262da5d397 | [
"MIT"
] | 5 | 2018-07-08T20:05:52.000Z | 2021-11-29T03:07:00.000Z | tests/context.py | stevepbyrne/dbus-systemcalc-py | 4d50ca36af51bbe1e3040cb63f60ef262da5d397 | [
"MIT"
] | 2 | 2016-10-13T13:02:54.000Z | 2021-03-05T17:08:55.000Z | tests/context.py | stevepbyrne/dbus-systemcalc-py | 4d50ca36af51bbe1e3040cb63f60ef262da5d397 | [
"MIT"
] | 13 | 2015-04-13T12:21:24.000Z | 2022-01-24T16:28:35.000Z | import os
import sys
# Modify path so we can find our own packages
test_dir = os.path.dirname(__file__)
sys.path.insert(0, test_dir)
sys.path.insert(1, os.path.join(test_dir, '..', 'ext', 'velib_python', 'test'))
sys.path.insert(1, os.path.join(test_dir, '..', 'ext', 'velib_python'))
sys.path.insert(1, os.path.join(te... | 33.5 | 79 | 0.695522 | 59 | 335 | 3.762712 | 0.389831 | 0.157658 | 0.234234 | 0.189189 | 0.545045 | 0.545045 | 0.545045 | 0.545045 | 0.545045 | 0.405405 | 0 | 0.013289 | 0.101493 | 335 | 9 | 80 | 37.222222 | 0.724252 | 0.128358 | 0 | 0 | 0 | 0 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4cfe8d22aac080d737f325c14ae157c5368846da | 59 | py | Python | src/wshop/apps/order/__init__.py | vituocgia/wshop-core | 5f6d1ec9e9158f13aab136c5bd901c41e69a1dba | [
"BSD-3-Clause"
] | null | null | null | src/wshop/apps/order/__init__.py | vituocgia/wshop-core | 5f6d1ec9e9158f13aab136c5bd901c41e69a1dba | [
"BSD-3-Clause"
] | null | null | null | src/wshop/apps/order/__init__.py | vituocgia/wshop-core | 5f6d1ec9e9158f13aab136c5bd901c41e69a1dba | [
"BSD-3-Clause"
] | null | null | null | default_app_config = 'wshop.apps.order.config.OrderConfig'
| 29.5 | 58 | 0.830508 | 8 | 59 | 5.875 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050847 | 59 | 1 | 59 | 59 | 0.839286 | 0 | 0 | 0 | 0 | 0 | 0.59322 | 0.59322 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9816d04b429d935bcf46081722fdb240f2307f39 | 20 | py | Python | tests/nark/data/sample1.py | shadowmint/python-nark | 7919c544c8386a023f6a9d0ffbc50e1145604528 | [
"Apache-2.0"
] | null | null | null | tests/nark/data/sample1.py | shadowmint/python-nark | 7919c544c8386a023f6a9d0ffbc50e1145604528 | [
"Apache-2.0"
] | null | null | null | tests/nark/data/sample1.py | shadowmint/python-nark | 7919c544c8386a023f6a9d0ffbc50e1145604528 | [
"Apache-2.0"
] | null | null | null | text = "Hello WORLD" | 20 | 20 | 0.7 | 3 | 20 | 4.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15 | 20 | 1 | 20 | 20 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0.52381 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9818d605f2274608bdd62c6b0343efa8fd6dfad4 | 53 | py | Python | src/manim_onlinetex/__init__.py | jsonvillanueva/manim-onlinetex | c142124fca67346e96156e66a675912b8c724238 | [
"MIT"
] | null | null | null | src/manim_onlinetex/__init__.py | jsonvillanueva/manim-onlinetex | c142124fca67346e96156e66a675912b8c724238 | [
"MIT"
] | null | null | null | src/manim_onlinetex/__init__.py | jsonvillanueva/manim-onlinetex | c142124fca67346e96156e66a675912b8c724238 | [
"MIT"
] | null | null | null | __version__ = "0.1.0"
from .manim_onlinetex import *
| 17.666667 | 30 | 0.735849 | 8 | 53 | 4.25 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065217 | 0.132075 | 53 | 2 | 31 | 26.5 | 0.673913 | 0 | 0 | 0 | 0 | 0 | 0.09434 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
e21f334807001905e410ff4e87e8006ccee3bcb6 | 56 | py | Python | 09/1 - Absolute Value.py | Surferlul/csc-python-solutions | bea99e5e1e344d17fb2cb29d8bcbc6b108e24cee | [
"MIT"
] | null | null | null | 09/1 - Absolute Value.py | Surferlul/csc-python-solutions | bea99e5e1e344d17fb2cb29d8bcbc6b108e24cee | [
"MIT"
] | null | null | null | 09/1 - Absolute Value.py | Surferlul/csc-python-solutions | bea99e5e1e344d17fb2cb29d8bcbc6b108e24cee | [
"MIT"
] | null | null | null | x=int(input())
if x < 0:
print(-x)
else:
print(x)
| 9.333333 | 14 | 0.517857 | 11 | 56 | 2.636364 | 0.636364 | 0.413793 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02381 | 0.25 | 56 | 5 | 15 | 11.2 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e23e68a32c22b60eca662b95389842c6fcff0a90 | 245 | py | Python | Chap4.py | belenox/python4kids | 90bbfca824851703d197d162cfc6bbcc2b4a5099 | [
"Unlicense"
] | null | null | null | Chap4.py | belenox/python4kids | 90bbfca824851703d197d162cfc6bbcc2b4a5099 | [
"Unlicense"
] | null | null | null | Chap4.py | belenox/python4kids | 90bbfca824851703d197d162cfc6bbcc2b4a5099 | [
"Unlicense"
] | null | null | null | import turtle
t = turtle.Pen()
t.forward(50)
t.left(90)
t.forward(50)
t.left(90)
t.forward(50)
t.left(90)
t.forward(50)
t.left(90)
t.reset()
t.clear()
t.reset()
t.backward(100)
t.up()
t.right(90)
t.forward(20)
t.left(90)
t.down()
t.forward(100)
| 11.666667 | 16 | 0.669388 | 54 | 245 | 3.037037 | 0.296296 | 0.292683 | 0.213415 | 0.243902 | 0.420732 | 0.420732 | 0.420732 | 0.420732 | 0.420732 | 0.420732 | 0 | 0.126126 | 0.093878 | 245 | 20 | 17 | 12.25 | 0.612613 | 0 | 0 | 0.55 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.05 | 0 | 0.05 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e24e0112c24a287eefd118ac6c411f2ebbe0387a | 2,805 | py | Python | utils.py | LenSin3/Alcohol-Consumption-in-Russia | acff8cb8a36620d7213acf10dc27e3c681f8f52c | [
"MIT"
] | null | null | null | utils.py | LenSin3/Alcohol-Consumption-in-Russia | acff8cb8a36620d7213acf10dc27e3c681f8f52c | [
"MIT"
] | null | null | null | utils.py | LenSin3/Alcohol-Consumption-in-Russia | acff8cb8a36620d7213acf10dc27e3c681f8f52c | [
"MIT"
] | null | null | null | from numpy.lib.function_base import iterable
from pandas.core.frame import DataFrame
class InvalidFilePath(Exception):
"""
Exception for invalid filepath.
Raises an exception if string is not a valid file path.
...
Attributes
----------
file_path: str
Path to file.
"""
d... | 23.771186 | 119 | 0.614617 | 330 | 2,805 | 5.060606 | 0.2 | 0.032335 | 0.033533 | 0.068263 | 0.358683 | 0.247904 | 0.190419 | 0.135329 | 0.11976 | 0.11976 | 0 | 0 | 0.284492 | 2,805 | 118 | 120 | 23.771186 | 0.832088 | 0.405704 | 0 | 0.363636 | 0 | 0 | 0.155524 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | false | 0 | 0.060606 | 0.181818 | 0.787879 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
e273e32b411b21df8da3ffcb91ccebd18c5aa5c1 | 2,382 | py | Python | itests/pages/permissions.py | bonniech3n/merou | 47d9de906686fd5b930a49299d3ffbcc0673ae8a | [
"Apache-2.0"
] | null | null | null | itests/pages/permissions.py | bonniech3n/merou | 47d9de906686fd5b930a49299d3ffbcc0673ae8a | [
"Apache-2.0"
] | null | null | null | itests/pages/permissions.py | bonniech3n/merou | 47d9de906686fd5b930a49299d3ffbcc0673ae8a | [
"Apache-2.0"
] | null | null | null | from typing import TYPE_CHECKING
from itests.pages.base import BaseElement, BasePage
if TYPE_CHECKING:
from typing import List
class PermissionsPage(BasePage):
@property
def has_create_permission_button(self):
# type: () -> bool
return self.find_elements_by_class_name("create-permission"... | 29.04878 | 80 | 0.670865 | 296 | 2,382 | 5.101351 | 0.212838 | 0.074172 | 0.101987 | 0.135099 | 0.49404 | 0.459603 | 0.378808 | 0.378808 | 0.352318 | 0.258278 | 0 | 0 | 0.218304 | 2,382 | 81 | 81 | 29.407407 | 0.810956 | 0.06843 | 0 | 0.320755 | 0 | 0 | 0.103667 | 0.028972 | 0 | 0 | 0 | 0 | 0 | 1 | 0.264151 | false | 0 | 0.056604 | 0.169811 | 0.584906 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
e2796021bb8a9c77f754afd1bfca9cbb3db6b942 | 144 | py | Python | arabicnlp/utils.py | adhaamehab/arabicnlp | 3b460d2000064777165dfee68c7f1c3f7cae4d48 | [
"MIT"
] | 18 | 2019-05-22T10:43:14.000Z | 2021-11-02T09:53:27.000Z | arabicnlp/utils.py | adhaamehab/arabicnlp | 3b460d2000064777165dfee68c7f1c3f7cae4d48 | [
"MIT"
] | null | null | null | arabicnlp/utils.py | adhaamehab/arabicnlp | 3b460d2000064777165dfee68c7f1c3f7cae4d48 | [
"MIT"
] | 3 | 2019-11-04T13:26:04.000Z | 2021-03-19T00:31:36.000Z | from pathlib import Path
# set home dir for default
HOME_DIR = str(Path.home())
DEFAULT_MODEL_DIR = os.path.join(HOME_DIR,'arabicnlp_models')
| 20.571429 | 61 | 0.770833 | 24 | 144 | 4.416667 | 0.625 | 0.198113 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 144 | 6 | 62 | 24 | 0.84127 | 0.166667 | 0 | 0 | 0 | 0 | 0.136752 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
e2a5f32414938584dbe34e042829d37ee5a911f2 | 893 | py | Python | crits/targets/urls.py | dutrow/crits | 6b357daa5c3060cf622d3a3b0c7b41a9ca69c049 | [
"MIT"
] | 738 | 2015-01-02T12:39:55.000Z | 2022-03-23T11:05:51.000Z | crits/targets/urls.py | dutrow/crits | 6b357daa5c3060cf622d3a3b0c7b41a9ca69c049 | [
"MIT"
] | 605 | 2015-01-01T01:03:39.000Z | 2021-11-17T18:51:07.000Z | crits/targets/urls.py | dutrow/crits | 6b357daa5c3060cf622d3a3b0c7b41a9ca69c049 | [
"MIT"
] | 316 | 2015-01-07T12:35:01.000Z | 2022-03-30T04:44:30.000Z | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^list/$', views.targets_listing, name='crits-targets-views-targets_listing'),
url(r'^list/(?P<option>\S+)/$', views.targets_listing, name='crits-targets-views-targets_listing'),
url(r'^divisions/list/$', views.divisions_listing, na... | 59.533333 | 117 | 0.717805 | 125 | 893 | 4.96 | 0.2 | 0.051613 | 0.206452 | 0.270968 | 0.748387 | 0.630645 | 0.567742 | 0.567742 | 0.567742 | 0.567742 | 0 | 0 | 0.080627 | 893 | 14 | 118 | 63.785714 | 0.755177 | 0 | 0 | 0 | 0 | 0 | 0.506159 | 0.44009 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2c344fed5002a8d2d1903a7be6089dfc41a778e2 | 119 | py | Python | tep/__init__.py | dongfanger/tep | ec5516ec7e0ff1b68f7afbf430d47245245f02e7 | [
"Apache-2.0"
] | 39 | 2020-08-19T14:46:21.000Z | 2022-03-20T01:11:23.000Z | tep/__init__.py | dongfanger/tep | ec5516ec7e0ff1b68f7afbf430d47245245f02e7 | [
"Apache-2.0"
] | 6 | 2020-07-24T02:44:54.000Z | 2021-09-07T05:10:36.000Z | tep/__init__.py | dongfanger/tep | ec5516ec7e0ff1b68f7afbf430d47245245f02e7 | [
"Apache-2.0"
] | 11 | 2021-02-03T09:17:09.000Z | 2022-01-14T00:03:01.000Z | __version__ = "0.9.1"
__description__ = "tep is a testing tool to help you write pytest more easily. Try Easy Pytest!"
| 39.666667 | 96 | 0.747899 | 20 | 119 | 4.05 | 0.95 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030303 | 0.168067 | 119 | 2 | 97 | 59.5 | 0.787879 | 0 | 0 | 0 | 0 | 0 | 0.680672 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2c4a275faf4e414c3a2ad4096f866f468a5775bb | 1,318 | py | Python | Factory_Method/concrete_creator_tea.py | dcesarz/design_patterns_factories | e276e25586dc631309febb0fe9eb5f1454627107 | [
"MIT"
] | null | null | null | Factory_Method/concrete_creator_tea.py | dcesarz/design_patterns_factories | e276e25586dc631309febb0fe9eb5f1454627107 | [
"MIT"
] | null | null | null | Factory_Method/concrete_creator_tea.py | dcesarz/design_patterns_factories | e276e25586dc631309febb0fe9eb5f1454627107 | [
"MIT"
] | null | null | null | from __future__ import annotations
from Factory_Method.creator_cafe import CafeCreator
from Factory_Method.product_interface import IProduct
class ConcreteCreatorTeaBlack(CafeCreator):
def factory_method(self) -> IProduct:
return ConcreteTeaBlack()
class ConcreteCreatorTeaRed(CafeCreator):
... | 23.963636 | 54 | 0.701062 | 123 | 1,318 | 7.243902 | 0.227642 | 0.102132 | 0.117845 | 0.151515 | 0.527497 | 0.527497 | 0.527497 | 0.274972 | 0.274972 | 0.224467 | 0 | 0 | 0.217754 | 1,318 | 54 | 55 | 24.407407 | 0.86421 | 0 | 0 | 0.454545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.30303 | false | 0 | 0.090909 | 0.30303 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
2c53e4ee6d1dab6f254bc0149d5a8bbacc9d86a5 | 172 | py | Python | substitutiion/check.py | delvinru/decrypt-vizhener-rsa | 7cde344832af1e8b4ab9f8b22cdc5108f2e83c82 | [
"MIT"
] | 1 | 2021-12-12T21:34:47.000Z | 2021-12-12T21:34:47.000Z | substitutiion/check.py | delvinru/decrypt-vizhener-rsa | 7cde344832af1e8b4ab9f8b22cdc5108f2e83c82 | [
"MIT"
] | null | null | null | substitutiion/check.py | delvinru/decrypt-vizhener-rsa | 7cde344832af1e8b4ab9f8b22cdc5108f2e83c82 | [
"MIT"
] | null | null | null | sub = {
"а" : {
"freq": 10.234,
"count": 3243,
"sub" : "б"
},
"б" : {
"freq": 8.324,
"count": 123,
"sub" : "д"
}
}
print(sub['а']['freq'], sub['б']['sub']) | 12.285714 | 40 | 0.389535 | 24 | 172 | 2.791667 | 0.541667 | 0.119403 | 0.238806 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 0.255814 | 172 | 14 | 40 | 12.285714 | 0.398438 | 0 | 0 | 0 | 0 | 0 | 0.213873 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.076923 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2c73a045a5afb3e1bdc813857c7974480c1bbc25 | 991 | py | Python | src/regoct/Util.py | runoverPy/regOct | cfeeaaf3ab9a8e039a72e889eb77844aadb36b9a | [
"MIT"
] | null | null | null | src/regoct/Util.py | runoverPy/regOct | cfeeaaf3ab9a8e039a72e889eb77844aadb36b9a | [
"MIT"
] | 1 | 2021-02-10T16:27:52.000Z | 2021-02-10T16:27:52.000Z | src/regoct/Util.py | runoverPy/regOct | cfeeaaf3ab9a8e039a72e889eb77844aadb36b9a | [
"MIT"
] | null | null | null | import glm
class Geometry():
@staticmethod
def index_from_coords(coord_list, level=0):
return sum(glm.i16vec3(coord_list) * glm.i16vec3(1,2,4) / 2**level)
@staticmethod
def coord_gen(num):
for i in range(8):
yield glm.vec3(num) % glm.vec3(2, 4, 8) // glm.vec3(1, 2, 4)
... | 28.314286 | 92 | 0.598385 | 138 | 991 | 4.181159 | 0.304348 | 0.121317 | 0.17331 | 0.145581 | 0.42461 | 0.308492 | 0.308492 | 0.308492 | 0.308492 | 0.308492 | 0 | 0.064295 | 0.262361 | 991 | 35 | 93 | 28.314286 | 0.725034 | 0 | 0 | 0.259259 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.259259 | false | 0 | 0.037037 | 0.185185 | 0.592593 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
2c74267e046f72b4f82e5f690276fa85718438e2 | 491 | py | Python | breeze/model.py | chrisseto/Breeze | 53fc81666ba144e4a873c5f20e77cde00a675d38 | [
"MIT"
] | null | null | null | breeze/model.py | chrisseto/Breeze | 53fc81666ba144e4a873c5f20e77cde00a675d38 | [
"MIT"
] | null | null | null | breeze/model.py | chrisseto/Breeze | 53fc81666ba144e4a873c5f20e77cde00a675d38 | [
"MIT"
] | null | null | null | import abc
class ResourceModel(metaclass=abc.ABCMeta):
@classmethod
def default_resource_name(cls):
return cls.name.lower() + 's'
@abc.abstractclassmethod
def load(cls, pk):
pass
@abc.abstractclassmethod
def create(cls, **kwargs):
pass
@abc.abstractclassmethod
... | 16.931034 | 43 | 0.617108 | 54 | 491 | 5.555556 | 0.5 | 0.093333 | 0.25 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.285132 | 491 | 28 | 44 | 17.535714 | 0.854701 | 0 | 0 | 0.5 | 0 | 0 | 0.002037 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0.25 | 0.05 | 0.05 | 0.45 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
2c896f8d2ed3403eb59e74a8ba2e703412b35dc9 | 166 | py | Python | src/utils/log.py | brwnow/garticNotifier | 0a1c05c97d4b38bf469ef33b669af434cd355a1a | [
"WTFPL"
] | null | null | null | src/utils/log.py | brwnow/garticNotifier | 0a1c05c97d4b38bf469ef33b669af434cd355a1a | [
"WTFPL"
] | null | null | null | src/utils/log.py | brwnow/garticNotifier | 0a1c05c97d4b38bf469ef33b669af434cd355a1a | [
"WTFPL"
] | null | null | null | logLevel = 0
def log(msg):
if logLevel > 0:
print(msg)
else:
pass
def setLogLevel(value):
global logLevel
logLevel = value | 15.090909 | 24 | 0.548193 | 19 | 166 | 4.789474 | 0.631579 | 0.197802 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019231 | 0.373494 | 166 | 11 | 25 | 15.090909 | 0.855769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0.111111 | 0 | 0 | 0.222222 | 0.111111 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
2cad60dd568624f06bad624fe423399ee2109019 | 97 | py | Python | Chapter 05/Praktikum-1/2.py | icaksh/Python-Projects-Protek | dfd56ea5afc637a8850911a9296131652de383c5 | [
"MIT"
] | null | null | null | Chapter 05/Praktikum-1/2.py | icaksh/Python-Projects-Protek | dfd56ea5afc637a8850911a9296131652de383c5 | [
"MIT"
] | null | null | null | Chapter 05/Praktikum-1/2.py | icaksh/Python-Projects-Protek | dfd56ea5afc637a8850911a9296131652de383c5 | [
"MIT"
] | null | null | null | bil = -4
if (bil > 0):
print("Bilangan positif")
else:
print("Bilangan negatif atau nol") | 19.4 | 38 | 0.628866 | 14 | 97 | 4.357143 | 0.785714 | 0.42623 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026316 | 0.216495 | 97 | 5 | 38 | 19.4 | 0.776316 | 0 | 0 | 0 | 0 | 0 | 0.418367 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2cb7571fcc29f95f15f0ebbb97e57b382646f255 | 395 | py | Python | src/airfly/_vendor/airflow/providers/amazon/aws/operators/emr_add_steps.py | ryanchao2012/airfly | 230ddd88885defc67485fa0c51f66c4a67ae98a9 | [
"MIT"
] | 7 | 2021-09-27T11:38:48.000Z | 2022-02-01T06:06:24.000Z | src/airfly/_vendor/airflow/providers/amazon/aws/operators/emr_add_steps.py | ryanchao2012/airfly | 230ddd88885defc67485fa0c51f66c4a67ae98a9 | [
"MIT"
] | null | null | null | src/airfly/_vendor/airflow/providers/amazon/aws/operators/emr_add_steps.py | ryanchao2012/airfly | 230ddd88885defc67485fa0c51f66c4a67ae98a9 | [
"MIT"
] | null | null | null | # Auto generated by 'inv collect-airflow'
from airfly._vendor.airflow.models.baseoperator import BaseOperator
class EmrAddStepsOperator(BaseOperator):
job_flow_id: "typing.Union[str, NoneType]"
job_flow_name: "typing.Union[str, NoneType]"
cluster_states: "typing.Union[typing.List[str], NoneType]"
aws_... | 35.909091 | 67 | 0.751899 | 51 | 395 | 5.666667 | 0.568627 | 0.152249 | 0.096886 | 0.152249 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.124051 | 395 | 10 | 68 | 39.5 | 0.83526 | 0.098734 | 0 | 0 | 1 | 0 | 0.403955 | 0.172316 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.142857 | 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 | 0 | 0 | 1 | 0 | 0 | 3 |
e2dcfe03b473f9ef6b41305b42be86ff132cb087 | 730 | py | Python | srl/base/rl/remote_memory/experience_replay_buffer.py | pocokhc/simple_rl | 765f12f392f87e6897027905d74f1bced6a2b7bf | [
"MIT"
] | 1 | 2022-03-01T09:16:57.000Z | 2022-03-01T09:16:57.000Z | srl/base/rl/remote_memory/experience_replay_buffer.py | pocokhc/simple_rl | 765f12f392f87e6897027905d74f1bced6a2b7bf | [
"MIT"
] | null | null | null | srl/base/rl/remote_memory/experience_replay_buffer.py | pocokhc/simple_rl | 765f12f392f87e6897027905d74f1bced6a2b7bf | [
"MIT"
] | null | null | null | import random
from collections import deque
from typing import Any
from srl.base.rl.base import RLRemoteMemory
class ExperienceReplayBuffer(RLRemoteMemory):
def __init__(self, *args):
super().__init__(*args)
def init(self, capacity: int):
self.memory = deque(maxlen=capacity)
def length(... | 22.121212 | 53 | 0.623288 | 88 | 730 | 5.056818 | 0.397727 | 0.157303 | 0.049438 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.236986 | 730 | 32 | 54 | 22.8125 | 0.798923 | 0.036986 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.380952 | false | 0 | 0.190476 | 0.142857 | 0.761905 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
e2ee2cf9a26fd6354d581a3587f28e5f5f1e0d7e | 377 | py | Python | taxonomies/uruguay/process.py | openspending/dataflows-openspending | 9b6b33d48025185fcf9a69752960e8ff4cbbab87 | [
"MIT"
] | 1 | 2019-07-30T07:42:05.000Z | 2019-07-30T07:42:05.000Z | taxonomies/uruguay/process.py | openspending/dataflows-openspending | 9b6b33d48025185fcf9a69752960e8ff4cbbab87 | [
"MIT"
] | null | null | null | taxonomies/uruguay/process.py | openspending/dataflows-openspending | 9b6b33d48025185fcf9a69752960e8ff4cbbab87 | [
"MIT"
] | 1 | 2020-12-08T07:50:46.000Z | 2020-12-08T07:50:46.000Z | import os
import datapackage
from dataflows import Flow, set_type
from dgp.config.consts import CONFIG_MODEL_MAPPING, CONFIG_TAXONOMY_CT
from dgp.core import BaseAnalyzer
from dgp_server.log import logger
from dataflows_openspending.common_transforms import flows as p_flows
def flows(config, context):
return p_f... | 22.176471 | 70 | 0.811671 | 54 | 377 | 5.462963 | 0.555556 | 0.071186 | 0.122034 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135279 | 377 | 16 | 71 | 23.5625 | 0.904908 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.636364 | 0.181818 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
39142d7b8f1b66d55c1475b9e8ddc666cb5b6061 | 911 | py | Python | src/yellowdog_client/model/configured_worker_pool.py | yellowdog/yellowdog-sdk-python-public | da69a7d6e45c92933e34fefcaef8b5d98dcd6036 | [
"Apache-2.0"
] | null | null | null | src/yellowdog_client/model/configured_worker_pool.py | yellowdog/yellowdog-sdk-python-public | da69a7d6e45c92933e34fefcaef8b5d98dcd6036 | [
"Apache-2.0"
] | null | null | null | src/yellowdog_client/model/configured_worker_pool.py | yellowdog/yellowdog-sdk-python-public | da69a7d6e45c92933e34fefcaef8b5d98dcd6036 | [
"Apache-2.0"
] | null | null | null | from dataclasses import dataclass, field
from datetime import datetime
from typing import Optional
from .configured_worker_pool_properties import ConfiguredWorkerPoolProperties
from .node_summary import NodeSummary
from .worker_pool import WorkerPool
from .worker_pool_status import WorkerPoolStatus
from .worker_summar... | 36.44 | 93 | 0.794731 | 94 | 911 | 7.617021 | 0.43617 | 0.041899 | 0.039106 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001277 | 0.140505 | 911 | 24 | 94 | 37.958333 | 0.913155 | 0 | 0 | 0 | 0 | 0 | 0.052689 | 0.052689 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.380952 | 0 | 0.952381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
3924eb7587817bd2bf834b22b475cb4829589b0e | 324 | py | Python | websauna/utils/psql.py | highPriestLOL/websauna | 2e78cd87eda305fbbb1080d386b8cf96537360e5 | [
"CNRI-Python"
] | 286 | 2016-01-17T05:44:02.000Z | 2022-02-07T20:28:49.000Z | websauna/utils/psql.py | highPriestLOL/websauna | 2e78cd87eda305fbbb1080d386b8cf96537360e5 | [
"CNRI-Python"
] | 203 | 2016-03-15T02:00:53.000Z | 2021-09-27T10:48:49.000Z | websauna/utils/psql.py | ooduor/websauna | 2e78cd87eda305fbbb1080d386b8cf96537360e5 | [
"CNRI-Python"
] | 71 | 2016-01-17T11:04:26.000Z | 2021-08-24T08:04:31.000Z | """PostgreSQL helpers."""
# Use pgcrypto, instead of uuid-ossp
# Also create a function uuid_generate_v4 for backward compatibility
UUID_SUPPORT_STMT = """CREATE EXTENSION IF NOT EXISTS "pgcrypto";
CREATE OR REPLACE FUNCTION uuid_generate_v4()
RETURNS uuid
AS '
BEGIN
RETURN gen_random_uuid();
END'
LANGUAGE 'plpgsql';
... | 23.142857 | 68 | 0.774691 | 45 | 324 | 5.4 | 0.755556 | 0.098765 | 0.164609 | 0.18107 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007092 | 0.12963 | 324 | 13 | 69 | 24.923077 | 0.85461 | 0.376543 | 0 | 0 | 1 | 0 | 0.841026 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
393a7e0007fe88d99603ef84d0e1c5e20721b921 | 364 | py | Python | {{cookiecutter.project_repo}}/src/app/api/routes/api.py | cpatrickalves/cookiecutter-ml-fastapi | ede351a195969f9843508304788a1c96af7b9deb | [
"MIT"
] | null | null | null | {{cookiecutter.project_repo}}/src/app/api/routes/api.py | cpatrickalves/cookiecutter-ml-fastapi | ede351a195969f9843508304788a1c96af7b9deb | [
"MIT"
] | null | null | null | {{cookiecutter.project_repo}}/src/app/api/routes/api.py | cpatrickalves/cookiecutter-ml-fastapi | ede351a195969f9843508304788a1c96af7b9deb | [
"MIT"
] | null | null | null | from fastapi import APIRouter
from api.routes import trainer
from api.routes import common
from api.routes import predictor
router = APIRouter()
router.include_router(predictor.router, tags=["predictor"], prefix="/v1")
router.include_router(predictor.router, tags=["trainer"], prefix="/v1")
router.include_router(predi... | 33.090909 | 73 | 0.777473 | 48 | 364 | 5.833333 | 0.291667 | 0.214286 | 0.139286 | 0.203571 | 0.464286 | 0.464286 | 0.328571 | 0.328571 | 0 | 0 | 0 | 0.008982 | 0.082418 | 364 | 10 | 74 | 36.4 | 0.829341 | 0 | 0 | 0 | 0 | 0 | 0.085165 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
393b6fbef9f78b887c2b5991abd585aa15030a4f | 201 | py | Python | tests/test_zpl_fx.py | marcovannoord/simple_zpl2 | 7550485c50ee9a4808d1c6dfbeb040ab6429f3bb | [
"MIT"
] | 16 | 2017-06-15T23:01:16.000Z | 2021-09-30T00:30:49.000Z | tests/test_zpl_fx.py | marcovannoord/simple_zpl2 | 7550485c50ee9a4808d1c6dfbeb040ab6429f3bb | [
"MIT"
] | 139 | 2017-05-27T15:14:34.000Z | 2022-03-21T14:31:04.000Z | tests/test_zpl_fx.py | marcovannoord/simple_zpl2 | 7550485c50ee9a4808d1c6dfbeb040ab6429f3bb | [
"MIT"
] | 5 | 2018-04-09T03:54:28.000Z | 2022-03-22T08:46:38.000Z | import pytest
from simple_zpl2 import ZPLDocument
def test_comment():
zdoc = ZPLDocument()
zdoc.add_comment('Testing Comment')
assert zdoc.zpl_bytes == b'^XA\n^FXTesting Comment^FS\n^XZ'
| 22.333333 | 63 | 0.731343 | 29 | 201 | 4.931034 | 0.724138 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005917 | 0.159204 | 201 | 8 | 64 | 25.125 | 0.840237 | 0 | 0 | 0 | 0 | 0 | 0.228856 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
3948e9d056cb4eb1a7c588f04bb62ec28ba82e21 | 580 | py | Python | example/13.Singel_motors/set_degrees_counted.py | rundhall/PC-LEGO-SPIKE-Simulator | 5b2fae19293875b2f60d599940d77237700798d3 | [
"MIT"
] | null | null | null | example/13.Singel_motors/set_degrees_counted.py | rundhall/PC-LEGO-SPIKE-Simulator | 5b2fae19293875b2f60d599940d77237700798d3 | [
"MIT"
] | null | null | null | example/13.Singel_motors/set_degrees_counted.py | rundhall/PC-LEGO-SPIKE-Simulator | 5b2fae19293875b2f60d599940d77237700798d3 | [
"MIT"
] | null | null | null | '''set_degrees_counted(degrees_counted)
Sets the "number of degrees counted" to the desired value.
Parameters
degrees_counted
The value to which the number of degrees counted should be set.
Type:integer (a positive or negative whole number, including 0)
Values:any number
Default:no default value
Errors
TypeError
degree... | 26.363636 | 64 | 0.806897 | 93 | 580 | 4.935484 | 0.569892 | 0.213508 | 0.074074 | 0.078431 | 0.108932 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008 | 0.137931 | 580 | 22 | 64 | 26.363636 | 0.91 | 0.851724 | 0 | 0 | 0 | 0 | 0.012658 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
394edc71749c380ea3c3f25388b980a8b88e9089 | 410 | py | Python | koicore/types/koi_character.py | koi-lang/koi-python | e4f5d5fc095654b51b2956e932beb5bd7c9b4a3c | [
"BSD-3-Clause"
] | null | null | null | koicore/types/koi_character.py | koi-lang/koi-python | e4f5d5fc095654b51b2956e932beb5bd7c9b4a3c | [
"BSD-3-Clause"
] | null | null | null | koicore/types/koi_character.py | koi-lang/koi-python | e4f5d5fc095654b51b2956e932beb5bd7c9b4a3c | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
""""""
from koicore.koi_object import KoiObject
class KoiCharacter(KoiObject):
def __init__(self, value: str):
super().__init__()
self.value = value[0]
def to_boolean(self):
pass
def to_character(self):
return KoiCharacter(s... | 17.083333 | 40 | 0.602439 | 50 | 410 | 4.68 | 0.58 | 0.08547 | 0.111111 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01 | 0.268293 | 410 | 23 | 41 | 17.826087 | 0.77 | 0.104878 | 0 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.384615 | false | 0.230769 | 0.076923 | 0.076923 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
39536be6023269d09ecc3fbd2e2909d020e0851e | 194 | py | Python | vk_bot/mods/testing/hello-world.py | triangle1984/vk-bot | 39dea7bf8043e791ef079ea1ac6616f95d5b5312 | [
"BSD-3-Clause"
] | 3 | 2019-11-05T12:32:04.000Z | 2019-11-15T14:29:46.000Z | vk_bot/mods/testing/hello-world.py | anar66/vk-bot | 39dea7bf8043e791ef079ea1ac6616f95d5b5312 | [
"BSD-3-Clause"
] | 1 | 2019-12-11T20:26:31.000Z | 2019-12-11T20:26:31.000Z | vk_bot/mods/testing/hello-world.py | triangle1984/vk-bot | 39dea7bf8043e791ef079ea1ac6616f95d5b5312 | [
"BSD-3-Clause"
] | 5 | 2019-11-20T14:20:30.000Z | 2022-02-05T10:37:01.000Z | from vk_bot.core.modules.basicplug import BasicPlug
class Test(BasicPlug):
command = ("hello",)
doc = "первый модуль, тест"
def main(self):
self.sendmsg("Хелоу ворлдддд")
| 19.4 | 51 | 0.664948 | 24 | 194 | 5.333333 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.21134 | 194 | 9 | 52 | 21.555556 | 0.836601 | 0 | 0 | 0 | 0 | 0 | 0.195876 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.833333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
1a52e5c425a558fdc74699ce332ffcbacff420ca | 1,499 | py | Python | OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/GL/EXT/texture_compression_latc.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/GL/EXT/texture_compression_latc.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/GL/EXT/texture_compression_latc.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | '''OpenGL extension EXT.texture_compression_latc
This module customises the behaviour of the
OpenGL.raw.GL.EXT.texture_compression_latc to provide a more
Python-friendly API
Overview (from the spec)
This extension introduces four new block-based texture compression
formats suited for unsigned and signe... | 38.435897 | 72 | 0.798532 | 200 | 1,499 | 5.89 | 0.49 | 0.106961 | 0.089134 | 0.106112 | 0.195246 | 0.108659 | 0.108659 | 0.078098 | 0.078098 | 0 | 0 | 0.004724 | 0.152769 | 1,499 | 39 | 73 | 38.435897 | 0.922835 | 0.759173 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | true | 0 | 0.777778 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
1a6a7be79ded4d153292c1d33f4abf9e977ab2e5 | 163 | py | Python | deploy/urls.py | zeus911/OSP | 5a1db0d8ed12b2b7355e56aed7a6e741f43914d9 | [
"BSD-2-Clause"
] | 6 | 2016-05-31T07:19:05.000Z | 2020-02-17T09:00:26.000Z | deploy/urls.py | zeus911/OSP | 5a1db0d8ed12b2b7355e56aed7a6e741f43914d9 | [
"BSD-2-Clause"
] | null | null | null | deploy/urls.py | zeus911/OSP | 5a1db0d8ed12b2b7355e56aed7a6e741f43914d9 | [
"BSD-2-Clause"
] | 6 | 2016-06-05T12:24:46.000Z | 2020-03-01T15:56:09.000Z | from django.conf.urls import include, url
from views import index, deploy
urlpatterns = [
url(r'^$', index),
url(r'^api/$', deploy, name='deploy_work'),
] | 23.285714 | 47 | 0.662577 | 23 | 163 | 4.652174 | 0.652174 | 0.074766 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165644 | 163 | 7 | 48 | 23.285714 | 0.786765 | 0 | 0 | 0 | 0 | 0 | 0.115854 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
1a6cadae6d824c472e7b3feb7f228ab915dff7c2 | 607 | py | Python | bootstrapper.py | Scandinaf/ll_free | 7d35dce5955f11e4af52400f961c76c9904c2f05 | [
"Apache-2.0"
] | null | null | null | bootstrapper.py | Scandinaf/ll_free | 7d35dce5955f11e4af52400f961c76c9904c2f05 | [
"Apache-2.0"
] | null | null | null | bootstrapper.py | Scandinaf/ll_free | 7d35dce5955f11e4af52400f961c76c9904c2f05 | [
"Apache-2.0"
] | null | null | null | import asyncio
import logging
from logging.config import fileConfig
from aiokafka import AIOKafkaProducer
from service.mongodb.db_layer import DBLayer
def __init_logger__():
fileConfig('logging.conf')
logger = logging.getLogger()
logger.info("Logger was initialized.")
def __init_io_loop__():
retur... | 20.931034 | 73 | 0.741351 | 77 | 607 | 5.480519 | 0.493506 | 0.066351 | 0.052133 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023392 | 0.15486 | 607 | 28 | 74 | 21.678571 | 0.79922 | 0 | 0 | 0 | 0 | 0 | 0.08402 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.277778 | 0.111111 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
1a798826dd8721655f601c53a4aab2ccd15d02a2 | 483 | py | Python | dedupsqlfs/compression/none.py | tabulon-ext/dedupsqlfs | 9dfbed17450e7f2a499a7381e0368d08ae3c700d | [
"MIT"
] | 22 | 2015-04-09T09:00:00.000Z | 2022-03-23T00:16:04.000Z | dedupsqlfs/compression/none.py | tabulon-ext/dedupsqlfs | 9dfbed17450e7f2a499a7381e0368d08ae3c700d | [
"MIT"
] | 119 | 2015-02-11T21:39:27.000Z | 2021-07-27T23:04:49.000Z | dedupsqlfs/compression/none.py | tabulon-ext/dedupsqlfs | 9dfbed17450e7f2a499a7381e0368d08ae3c700d | [
"MIT"
] | 7 | 2016-03-16T11:53:45.000Z | 2022-02-24T13:47:31.000Z | # -*- coding: utf8 -*-
__author__ = 'sergey'
"""
Class for NONE compression helper
"""
from dedupsqlfs.compression import BaseCompression
class NoneCompression(BaseCompression):
_method_name = "none"
_minimal_size = 0
_has_comp_level_options = False
def _init_module(self):
return None
... | 15.580645 | 50 | 0.668737 | 56 | 483 | 5.357143 | 0.607143 | 0.1 | 0.093333 | 0.12 | 0.146667 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005495 | 0.246377 | 483 | 30 | 51 | 16.1 | 0.818681 | 0.041408 | 0 | 0.142857 | 0 | 0 | 0.023866 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.071429 | 0.285714 | 0.928571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.