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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e9ceb3e5bab3a88f0a378cecf3741a7d1df7a810 | 283 | py | Python | miscrpg/rpg_logs.py | ray4ever/miscrpg | 406ae1183397bbe5d40981cffde9c13e6cf3a9a4 | [
"MIT"
] | null | null | null | miscrpg/rpg_logs.py | ray4ever/miscrpg | 406ae1183397bbe5d40981cffde9c13e6cf3a9a4 | [
"MIT"
] | null | null | null | miscrpg/rpg_logs.py | ray4ever/miscrpg | 406ae1183397bbe5d40981cffde9c13e6cf3a9a4 | [
"MIT"
] | null | null | null | class Log:
lines = []
def __init__(self):
self.lines = []
def add(self, line):
self.lines.append(line)
def flush(self):
for line in self.lines:
print(line)
self.lines = []
battle_log = Log()
general_log = Log() | 16.647059 | 31 | 0.512367 | 34 | 283 | 4.088235 | 0.441176 | 0.258993 | 0.18705 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.360424 | 283 | 17 | 32 | 16.647059 | 0.767956 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.416667 | 0.083333 | 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 |
e9d88be1c45c0a8ac266ec2e5a41220d0a91a493 | 507 | py | Python | tests/test_util.py | cossio/ProteoPy | a3569dcef34e4d416863c812e90498d749dc288f | [
"MIT"
] | null | null | null | tests/test_util.py | cossio/ProteoPy | a3569dcef34e4d416863c812e90498d749dc288f | [
"MIT"
] | null | null | null | tests/test_util.py | cossio/ProteoPy | a3569dcef34e4d416863c812e90498d749dc288f | [
"MIT"
] | null | null | null | from unittest import TestCase
import ProteoPy
class Test_util(TestCase):
def setUp(self):
self.compartment_proteins = [{'A', 'B'}, {'B', 'C'}]
self.compartment_names = ['a', 'b']
def test_compartmentidx(self):
self.assertEqual(ProteoPy.util.compartmentidx('A', self.compartment_protein... | 36.214286 | 89 | 0.69428 | 59 | 507 | 5.847458 | 0.355932 | 0.217391 | 0.266667 | 0.234783 | 0.495652 | 0.376812 | 0.376812 | 0.376812 | 0.376812 | 0 | 0 | 0.007059 | 0.161736 | 507 | 13 | 90 | 39 | 0.804706 | 0 | 0 | 0 | 0 | 0 | 0.017751 | 0 | 0 | 0 | 0 | 0 | 0.3 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.5 | 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 |
7576e7f6021130902042231432077cc6cd74cc87 | 106 | py | Python | parOuImpar.py | PauloHSNeto/Ciencia-de-Computa-o-CourseEra | 230281ba7227348ed2d27bb20039aed223244d94 | [
"bzip2-1.0.6"
] | null | null | null | parOuImpar.py | PauloHSNeto/Ciencia-de-Computa-o-CourseEra | 230281ba7227348ed2d27bb20039aed223244d94 | [
"bzip2-1.0.6"
] | null | null | null | parOuImpar.py | PauloHSNeto/Ciencia-de-Computa-o-CourseEra | 230281ba7227348ed2d27bb20039aed223244d94 | [
"bzip2-1.0.6"
] | null | null | null | num = int(input("digite um número inteiro:"))
if num%2==0:print("par")
else:print("impar")
| 26.5 | 45 | 0.575472 | 16 | 106 | 3.8125 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02439 | 0.226415 | 106 | 3 | 46 | 35.333333 | 0.719512 | 0 | 0 | 0 | 0 | 0 | 0.311321 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.666667 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
757a1f80d02772fc70f6d9122b87758af8ba6f8d | 1,341 | py | Python | routeros_api/api_communicator/encoding_decorator.py | davidc/RouterOS-api | 51e7a4ab468a7082e8d5b6ddf2587324c96a02c2 | [
"MIT"
] | 183 | 2015-12-12T17:37:58.000Z | 2022-03-27T03:19:02.000Z | routeros_api/api_communicator/encoding_decorator.py | davidc/RouterOS-api | 51e7a4ab468a7082e8d5b6ddf2587324c96a02c2 | [
"MIT"
] | 55 | 2017-03-06T18:07:59.000Z | 2022-02-24T23:29:24.000Z | routeros_api/api_communicator/encoding_decorator.py | davidc/RouterOS-api | 51e7a4ab468a7082e8d5b6ddf2587324c96a02c2 | [
"MIT"
] | 86 | 2016-02-26T04:06:32.000Z | 2022-03-24T06:44:53.000Z | class EncodingApiCommunicator(object):
def __init__(self, inner):
self.inner = inner
def call(self, path, command, arguments=None, queries=None,
additional_queries=()):
path = path.encode()
command = command.encode()
arguments = self.transform_dictionary(argum... | 31.186047 | 77 | 0.652498 | 151 | 1,341 | 5.622517 | 0.231788 | 0.074205 | 0.030624 | 0.040047 | 0.303887 | 0.303887 | 0.303887 | 0.303887 | 0.303887 | 0.117786 | 0 | 0 | 0.245339 | 1,341 | 42 | 78 | 31.928571 | 0.838933 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3125 | false | 0 | 0 | 0.125 | 0.625 | 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 |
757aecd277190682b985f8a9fa87d6fa49515c05 | 1,180 | py | Python | portal/blog/models.py | vatsamail/dualdb | c7a5737faed7a37263198f5c9363d1e1e73f0b58 | [
"MIT"
] | null | null | null | portal/blog/models.py | vatsamail/dualdb | c7a5737faed7a37263198f5c9363d1e1e73f0b58 | [
"MIT"
] | 4 | 2021-03-19T08:42:08.000Z | 2022-02-10T11:17:09.000Z | portal/blog/models.py | vatsamail/dualdb | c7a5737faed7a37263198f5c9363d1e1e73f0b58 | [
"MIT"
] | null | null | null | from django.db import models
class Content(models.Model):
title = models.CharField(max_length=100)
blog = models.TextField()
created_on = models.DateTimeField(auto_now_add=True)
last_modified = models.DateTimeField(auto_now=True)
genres = models.ManyToManyField('Genre', related_name='... | 26.818182 | 76 | 0.645763 | 134 | 1,180 | 5.425373 | 0.328358 | 0.060523 | 0.099037 | 0.13205 | 0.711142 | 0.711142 | 0.574966 | 0.464924 | 0.464924 | 0.464924 | 0 | 0.010526 | 0.194915 | 1,180 | 43 | 77 | 27.44186 | 0.754737 | 0 | 0 | 0.6 | 0 | 0 | 0.036134 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.033333 | 0.133333 | 0.933333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
7587cb14f65c84f3719864c2135812d3baa822fa | 8,508 | py | Python | allies/importers.py | kevincornish/HeckGuide | eb974d6b589908f5fc2308d41032a48941cc3d21 | [
"MIT"
] | 4 | 2022-02-16T10:19:11.000Z | 2022-03-17T03:34:26.000Z | allies/importers.py | kevincornish/HeckGuide | eb974d6b589908f5fc2308d41032a48941cc3d21 | [
"MIT"
] | 1 | 2022-02-17T14:02:31.000Z | 2022-03-31T03:56:42.000Z | allies/importers.py | kevincornish/HeckGuide | eb974d6b589908f5fc2308d41032a48941cc3d21 | [
"MIT"
] | 3 | 2022-02-17T06:13:52.000Z | 2022-03-23T21:37:21.000Z | import logging
import time
import random
from typing import Dict, List
from api import HeckfireApi, TokenException
from .models import Ally, HistoricalAlly, Clan
# Get an instance of a logger
logger = logging.getLogger(__name__)
class BaseAllyImporter:
def __init__(self, token: str, staytoken: str):
self... | 39.943662 | 107 | 0.629643 | 1,094 | 8,508 | 4.726691 | 0.119744 | 0.071553 | 0.078708 | 0.023206 | 0.73216 | 0.702959 | 0.702959 | 0.68246 | 0.658093 | 0.610907 | 0 | 0.007348 | 0.264222 | 8,508 | 213 | 108 | 39.943662 | 0.81869 | 0.003173 | 0 | 0.657609 | 0 | 0 | 0.185967 | 0.017689 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103261 | false | 0 | 0.065217 | 0 | 0.23913 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
759418b3a587d946d17d60ea09a30b3c63560ee0 | 246 | py | Python | bitfinex_proxy/settings.py | eIGato/bitfinex-proxy | d859599863e1ee36e1f8d81eb7494d99ed2560d6 | [
"MIT"
] | null | null | null | bitfinex_proxy/settings.py | eIGato/bitfinex-proxy | d859599863e1ee36e1f8d81eb7494d99ed2560d6 | [
"MIT"
] | null | null | null | bitfinex_proxy/settings.py | eIGato/bitfinex-proxy | d859599863e1ee36e1f8d81eb7494d99ed2560d6 | [
"MIT"
] | null | null | null | """Application settings."""
from os import environ
DEFAULT_CURRENCY_SLUG = 'USD'
DEFAULT_POSTGRES_DSN = 'postgres://postgres:postgres@postgres/bitfinex_proxy'
POSTGRES_DSN = environ.get('POSTGRES_DSN', DEFAULT_POSTGRES_DSN)
VOLUME_AGG_SPAN = 10
| 30.75 | 77 | 0.808943 | 32 | 246 | 5.875 | 0.59375 | 0.234043 | 0.191489 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00885 | 0.081301 | 246 | 7 | 78 | 35.142857 | 0.823009 | 0.085366 | 0 | 0 | 0 | 0 | 0.305936 | 0.237443 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
759a2981c1255d262cfe3e7eeff939271b8720e7 | 403 | py | Python | platform/radio/efr32_multiphy_configurator/pyradioconfig/parts/ocelot/calculators/calc_ber.py | lmnotran/gecko_sdk | 2e82050dc8823c9fe0e8908c1b2666fb83056230 | [
"Zlib"
] | 82 | 2016-06-29T17:24:43.000Z | 2021-04-16T06:49:17.000Z | platform/radio/efr32_multiphy_configurator/pyradioconfig/parts/ocelot/calculators/calc_ber.py | lmnotran/gecko_sdk | 2e82050dc8823c9fe0e8908c1b2666fb83056230 | [
"Zlib"
] | 6 | 2022-01-12T18:22:08.000Z | 2022-03-25T10:19:27.000Z | platform/radio/efr32_multiphy_configurator/pyradioconfig/parts/ocelot/calculators/calc_ber.py | lmnotran/gecko_sdk | 2e82050dc8823c9fe0e8908c1b2666fb83056230 | [
"Zlib"
] | 56 | 2016-08-02T10:50:50.000Z | 2021-07-19T08:57:34.000Z | from pyradioconfig.parts.common.calculators.calc_ber import CALC_Ber
class CALC_Ber_Ocelot(CALC_Ber):
def calc_test_ber(self,model):
#This function sets a default value for the test_ber input
#Set default value
model.vars.test_ber.value = False
def calc_per_forces(self,model):
... | 31 | 76 | 0.722084 | 60 | 403 | 4.666667 | 0.633333 | 0.1 | 0.092857 | 0.15 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.218362 | 403 | 13 | 77 | 31 | 0.888889 | 0.349876 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.166667 | 0.166667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
75c1d9c2e064865c64b11a7a14da59e680340a0b | 47 | py | Python | news/__version__.py | TomFaulkner/News-At-Command-Line | d20bdbbbf6bd8730d759c50708779e28008b7845 | [
"MIT"
] | null | null | null | news/__version__.py | TomFaulkner/News-At-Command-Line | d20bdbbbf6bd8730d759c50708779e28008b7845 | [
"MIT"
] | 3 | 2018-02-21T01:32:39.000Z | 2018-02-21T05:10:32.000Z | news/__version__.py | TomFaulkner/News-At-Command-Line | d20bdbbbf6bd8730d759c50708779e28008b7845 | [
"MIT"
] | 1 | 2018-03-27T18:39:56.000Z | 2018-03-27T18:39:56.000Z | __app_name__ = 'newsctl'
__version__ = '0.0.1'
| 15.666667 | 24 | 0.702128 | 7 | 47 | 3.428571 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073171 | 0.12766 | 47 | 2 | 25 | 23.5 | 0.512195 | 0 | 0 | 0 | 0 | 0 | 0.255319 | 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 |
75df05338f00248133d76b4af132040194cb2dc3 | 156 | py | Python | algs/src/python/imagep/examples.py | sivikt/14m2-alg | 38a07ef26de0cc857a5ad389c2987d57a69d23d4 | [
"Unlicense"
] | 1 | 2015-02-13T19:05:30.000Z | 2015-02-13T19:05:30.000Z | algs/src/python/imagep/examples.py | sivikt/14m2-alg | 38a07ef26de0cc857a5ad389c2987d57a69d23d4 | [
"Unlicense"
] | null | null | null | algs/src/python/imagep/examples.py | sivikt/14m2-alg | 38a07ef26de0cc857a5ad389c2987d57a69d23d4 | [
"Unlicense"
] | null | null | null | import segmentation as seg
seg.segon.main(num_components=40,
min_size=400,
img_path='src\\segmentation\\samples\\source.jpg') | 31.2 | 65 | 0.647436 | 20 | 156 | 4.9 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042017 | 0.237179 | 156 | 5 | 65 | 31.2 | 0.781513 | 0 | 0 | 0 | 0 | 0 | 0.242038 | 0.242038 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
75e6d83741ed20aed63e19fa7adfbe3fbb47ac25 | 431 | py | Python | python-fundamentals/day-9-modules/module_imports.py | laminsawo/python-365-days | 7d63e88ad2bbaa7b9bd0475f078e0164cc9b485c | [
"MIT"
] | null | null | null | python-fundamentals/day-9-modules/module_imports.py | laminsawo/python-365-days | 7d63e88ad2bbaa7b9bd0475f078e0164cc9b485c | [
"MIT"
] | 1 | 2020-01-06T00:28:32.000Z | 2020-01-06T00:28:32.000Z | python-fundamentals/day-9-modules/module_imports.py | laminsawo/python-365-days | 7d63e88ad2bbaa7b9bd0475f078e0164cc9b485c | [
"MIT"
] | 1 | 2020-06-11T19:01:53.000Z | 2020-06-11T19:01:53.000Z | # The basics
# Modules are a large number of built-in functions
# Python comes with a large number of functions that are pre-package as modules
# some of these modules we do not need to import to be able to use whilst for some, we need to import them
# in order to be able to use them
# we can also create our ow... | 43.1 | 108 | 0.740139 | 82 | 431 | 3.890244 | 0.573171 | 0.037618 | 0.075235 | 0.087774 | 0.081505 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.229698 | 431 | 9 | 109 | 47.888889 | 0.960843 | 0.939675 | 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 |
75fa496b00dc276188a8d8d1ef6505adbcfe5aa9 | 147 | py | Python | sheetsite/source/excel.py | paulfitz/sheetsite | 3ec3226a3d7e9cce7e92e5bcae96acf4d970ab0e | [
"MIT"
] | 33 | 2016-01-17T15:32:56.000Z | 2020-11-30T01:49:32.000Z | sheetsite/source/excel.py | paulfitz/sheetsite | 3ec3226a3d7e9cce7e92e5bcae96acf4d970ab0e | [
"MIT"
] | null | null | null | sheetsite/source/excel.py | paulfitz/sheetsite | 3ec3226a3d7e9cce7e92e5bcae96acf4d970ab0e | [
"MIT"
] | 3 | 2018-10-30T08:32:28.000Z | 2020-11-30T02:03:22.000Z | def read_source_excel(source):
from sheetsite.xls_spreadsheet import XlsSpreadsheet
wb = XlsSpreadsheet(source['filename'])
return wb
| 24.5 | 56 | 0.761905 | 17 | 147 | 6.411765 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163265 | 147 | 5 | 57 | 29.4 | 0.886179 | 0 | 0 | 0 | 0 | 0 | 0.054795 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2f040abb69c3e7848693b8bfde458bc83c95e403 | 124 | py | Python | models/__init__.py | ONSdigital/Blaise_NISRA_Case_Mover_SFTP | 9fb49fd7b80fb47c845931361431eed967178bdf | [
"MIT"
] | null | null | null | models/__init__.py | ONSdigital/Blaise_NISRA_Case_Mover_SFTP | 9fb49fd7b80fb47c845931361431eed967178bdf | [
"MIT"
] | 30 | 2020-12-02T11:37:19.000Z | 2022-03-29T22:15:40.000Z | models/__init__.py | ONSdigital/Blaise_NISRA_Case_Mover_SFTP | 9fb49fd7b80fb47c845931361431eed967178bdf | [
"MIT"
] | 1 | 2021-04-11T07:46:30.000Z | 2021-04-11T07:46:30.000Z | from .instruments import Instrument
from .processor_event import ProcessorEvent
__all__ = ["Instrument", "ProcessorEvent"]
| 24.8 | 43 | 0.814516 | 12 | 124 | 8 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104839 | 124 | 4 | 44 | 31 | 0.864865 | 0 | 0 | 0 | 0 | 0 | 0.193548 | 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 |
f932c4d1b31172e5ab87646bd0195f986f613a21 | 230 | py | Python | bin/reorder_fasta.py | fls-bioinformatics-core/genomics | 1cd012faf69fff284f8f68ede050ffe30ac3327d | [
"AFL-3.0"
] | 49 | 2015-01-03T17:09:10.000Z | 2022-03-17T19:28:08.000Z | bin/reorder_fasta.py | fls-bioinformatics-core/genomics | 1cd012faf69fff284f8f68ede050ffe30ac3327d | [
"AFL-3.0"
] | 59 | 2015-04-16T14:21:04.000Z | 2022-03-15T11:56:33.000Z | bin/reorder_fasta.py | fls-bioinformatics-core/genomics | 1cd012faf69fff284f8f68ede050ffe30ac3327d | [
"AFL-3.0"
] | 29 | 2015-01-29T08:50:44.000Z | 2021-08-19T02:15:44.000Z | #!/usr/bin/env python
#
# reorder_fasta.py: reorder chromosomes in a FASTA file
# Copyright (C) University of Manchester 2021 Peter Briggs
#
from bcftbx.cli.reorder_fasta import main
if __name__ == "__main__":
main()
| 25.555556 | 62 | 0.717391 | 32 | 230 | 4.84375 | 0.8125 | 0.154839 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02139 | 0.186957 | 230 | 8 | 63 | 28.75 | 0.807487 | 0.604348 | 0 | 0 | 0 | 0 | 0.093023 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
f9495bd20058df3107c9828c3a25645253b4f60a | 345 | py | Python | zang/domain/list/credentials_lists.py | vlastikczech/zang-python | 980f5243071404d6838554500a6955ff7bc2a0c7 | [
"MIT"
] | 1 | 2019-02-18T21:51:58.000Z | 2019-02-18T21:51:58.000Z | zang/domain/list/credentials_lists.py | vlastikczech/zang-python | 980f5243071404d6838554500a6955ff7bc2a0c7 | [
"MIT"
] | 6 | 2019-06-26T13:56:22.000Z | 2022-02-17T16:40:48.000Z | zang/domain/list/credentials_lists.py | vlastikczech/zang-python | 980f5243071404d6838554500a6955ff7bc2a0c7 | [
"MIT"
] | 6 | 2017-10-17T12:44:32.000Z | 2020-02-07T20:45:00.000Z | from zang.domain.list.base_list import BaseList
from zang.domain.credentials_list import CredentialsList
class CredentialsLists(BaseList):
_arrays = {'credential_lists': CredentialsList}
def __init__(self):
super(CredentialsLists, self).__init__()
@property
def elements(self):
retur... | 23 | 56 | 0.744928 | 37 | 345 | 6.567568 | 0.567568 | 0.065844 | 0.115226 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173913 | 345 | 14 | 57 | 24.642857 | 0.852632 | 0 | 0 | 0 | 0 | 0 | 0.046377 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0.111111 | 0.777778 | 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 |
f94ea2d67d3aa3b03d6c3f575f79b9f33bd63531 | 3,066 | py | Python | scripts/specifyapiexample.py | NHMDenmark/DigitalCollections | ce24fa7b17d47695bacf1826307c4771a35cc432 | [
"Apache-2.0"
] | null | null | null | scripts/specifyapiexample.py | NHMDenmark/DigitalCollections | ce24fa7b17d47695bacf1826307c4771a35cc432 | [
"Apache-2.0"
] | null | null | null | scripts/specifyapiexample.py | NHMDenmark/DigitalCollections | ce24fa7b17d47695bacf1826307c4771a35cc432 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Script illustrating how to use the Specify API from a script
Needs requests installed, e.g.
pip install requests
Created on Thu June 16 2022
@author: Kim Steenstrup Pedersen, NHMD
Copyright 2022 Natural History Museum of Denmark (NHMD)
Licensed under the Apache License, Version 2.0 (the ... | 28.12844 | 137 | 0.749837 | 402 | 3,066 | 5.706468 | 0.368159 | 0.102005 | 0.113339 | 0.05449 | 0.56626 | 0.51918 | 0.51918 | 0.489538 | 0.489538 | 0.489538 | 0 | 0.012236 | 0.120352 | 3,066 | 108 | 138 | 28.388889 | 0.838339 | 0.365949 | 0 | 0.755556 | 0 | 0 | 0.208528 | 0.018721 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.088889 | 0.044444 | 0 | 0.044444 | 0.511111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 3 |
f95078ba5d3e3cdf3e29055abee3d6eea352d39d | 181 | py | Python | app/main/extensions.py | tharindukumara/bert-sentiment-analysis | 3b7c814151caa3617e7ccfdc1a0db196fae376c5 | [
"MIT"
] | 1 | 2021-08-02T13:12:39.000Z | 2021-08-02T13:12:39.000Z | app/main/extensions.py | tharindukumara/olie-chat-sentiment-analysis-bot | 3b7c814151caa3617e7ccfdc1a0db196fae376c5 | [
"MIT"
] | 1 | 2020-06-23T14:58:39.000Z | 2020-06-23T14:58:39.000Z | app/main/extensions.py | tharindukumara/bert-sentiment-analysis | 3b7c814151caa3617e7ccfdc1a0db196fae376c5 | [
"MIT"
] | null | null | null |
from .common.logger.logging import LogSetup
from .common.interceptors.request_interceptor import RequestInterceptor
logs = LogSetup()
request_interceptors = RequestInterceptor() | 30.166667 | 71 | 0.839779 | 18 | 181 | 8.333333 | 0.611111 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093923 | 181 | 6 | 72 | 30.166667 | 0.914634 | 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 |
f965e1a3b09d855560ee53990d353a07305d70a7 | 202 | py | Python | language_detector/urls.py | magmine/Language-Detector | 2a59e0af95be5cd8773b7375499332b76d7269e1 | [
"MIT"
] | 1 | 2021-03-18T07:35:59.000Z | 2021-03-18T07:35:59.000Z | language_detector/urls.py | magmine/Language-Detector | 2a59e0af95be5cd8773b7375499332b76d7269e1 | [
"MIT"
] | 1 | 2021-03-29T15:53:08.000Z | 2021-03-29T15:53:08.000Z | language_detector/urls.py | magmine/Language-Detector | 2a59e0af95be5cd8773b7375499332b76d7269e1 | [
"MIT"
] | null | null | null | from django.contrib import admin
from django.urls import path, include
from detector.views import index
urlpatterns = [
path('', index, name='index'),
path("api/", include('detector.urls')),
]
| 22.444444 | 43 | 0.70297 | 26 | 202 | 5.461538 | 0.538462 | 0.140845 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153465 | 202 | 8 | 44 | 25.25 | 0.830409 | 0 | 0 | 0 | 0 | 0 | 0.108911 | 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 |
f9792696f71a7e7f2f0f6eff700dabc082d90079 | 428 | py | Python | py.aux/config.py | victorkryz/HR-Utils | e2fe8186f4256d7ff59acc82ca0453f4576c1813 | [
"MIT"
] | null | null | null | py.aux/config.py | victorkryz/HR-Utils | e2fe8186f4256d7ff59acc82ca0453f4576c1813 | [
"MIT"
] | null | null | null | py.aux/config.py | victorkryz/HR-Utils | e2fe8186f4256d7ff59acc82ca0453f4576c1813 | [
"MIT"
] | null | null | null | import json
def getCfg(cfgFile):
jsf = open(cfgFile, "r")
js_data = jsf.read();
jsf.close();
cfg = json.loads(js_data)
return cfg
def getSqlPlusPath(cfgFile):
cfg = getCfg(cfgFile)
return cfg["sqlplusPath"]
def getConnectionString(cfgFile):
cfg = getCfg(cfgFile)
cfgConnSec = cfg["... | 23.777778 | 94 | 0.640187 | 47 | 428 | 5.787234 | 0.489362 | 0.143382 | 0.117647 | 0.169118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.207944 | 428 | 17 | 95 | 25.176471 | 0.80236 | 0 | 0 | 0.142857 | 0 | 0 | 0.100467 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0.071429 | 0.071429 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
f9c14603cf04c23665176f2c050f2c9867e993e4 | 319 | py | Python | python/test/basic_connect.py | dschere/menchnet-client | 161c52b0e1754416a6c756c0123d1f1b68b8b8ee | [
"MIT"
] | null | null | null | python/test/basic_connect.py | dschere/menchnet-client | 161c52b0e1754416a6c756c0123d1f1b68b8b8ee | [
"MIT"
] | null | null | null | python/test/basic_connect.py | dschere/menchnet-client | 161c52b0e1754416a6c756c0123d1f1b68b8b8ee | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""
both web service and mosquitto are running locally.
MENSHNET_UNITTEST="yes" is defined
1. simulate the okta routine that creates the api key by calling
the same endpoint in the server to generate an apiKey.
"""
import os
os.environ["MENSHNET_UNITTEST"] = "yes"
import menshnet
| 15.190476 | 65 | 0.736677 | 48 | 319 | 4.854167 | 0.8125 | 0.137339 | 0.16309 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007692 | 0.184953 | 319 | 20 | 66 | 15.95 | 0.888462 | 0.736677 | 0 | 0 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
f9c4405179b67d920f99e2724117a1014e15dc97 | 170 | py | Python | tests/test_discover.py | mjaensch/TikTok-Api | 3d2ef0bc7cf137a582462ab2d6fecc946c98f415 | [
"MIT"
] | 9 | 2020-11-12T07:32:39.000Z | 2021-09-07T10:39:11.000Z | tests/test_discover.py | mjaensch/TikTok-Api | 3d2ef0bc7cf137a582462ab2d6fecc946c98f415 | [
"MIT"
] | null | null | null | tests/test_discover.py | mjaensch/TikTok-Api | 3d2ef0bc7cf137a582462ab2d6fecc946c98f415 | [
"MIT"
] | 3 | 2021-01-18T02:31:04.000Z | 2021-11-30T23:16:03.000Z | from TikTokApi import TikTokApi
api = TikTokApi.get_instance()
def test_trending():
assert len(api.discoverHashtags()) > 0
assert len(api.discoverMusic()) > 0
| 18.888889 | 42 | 0.723529 | 21 | 170 | 5.761905 | 0.666667 | 0.14876 | 0.198347 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014085 | 0.164706 | 170 | 8 | 43 | 21.25 | 0.838028 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.4 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.4 | 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 |
f9c8ba68cd988a21675579b80db6fd78ad2d0842 | 198 | py | Python | django/DCRUMSplunkApplication/urls.py | Dynatrace/DCRUM-Splunk-Application | ae6f5f766750bfc56d2c31d75256320341b50f35 | [
"BSD-3-Clause"
] | 2 | 2016-06-20T02:02:34.000Z | 2021-12-15T12:07:51.000Z | django/DCRUMSplunkApplication/urls.py | Dynatrace/DCRUM-Splunk-Application | ae6f5f766750bfc56d2c31d75256320341b50f35 | [
"BSD-3-Clause"
] | null | null | null | django/DCRUMSplunkApplication/urls.py | Dynatrace/DCRUM-Splunk-Application | ae6f5f766750bfc56d2c31d75256320341b50f35 | [
"BSD-3-Clause"
] | 2 | 2020-01-20T04:36:55.000Z | 2021-03-24T08:00:11.000Z | from django.conf.urls import patterns, include, url
from splunkdj.utility.views import render_template as render
urlpatterns = patterns('',
url(r'^home/$', 'dcrum.views.home', name='home'),
)
| 28.285714 | 60 | 0.727273 | 27 | 198 | 5.296296 | 0.703704 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126263 | 198 | 6 | 61 | 33 | 0.82659 | 0 | 0 | 0 | 0 | 0 | 0.136364 | 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 |
f9da4724acf30189189cd1d387be7b05a6692346 | 517 | py | Python | src/yasoo/default_customs.py | drorvinkler/yasoo | 0620b9c05ee6239a33c5484262edfa371940564c | [
"MIT"
] | 3 | 2019-12-23T17:31:45.000Z | 2021-11-30T11:44:02.000Z | src/yasoo/default_customs.py | drorvinkler/yasoo | 0620b9c05ee6239a33c5484262edfa371940564c | [
"MIT"
] | 2 | 2020-04-14T20:22:31.000Z | 2020-05-08T12:03:28.000Z | src/yasoo/default_customs.py | drorvinkler/yasoo | 0620b9c05ee6239a33c5484262edfa371940564c | [
"MIT"
] | 1 | 2020-05-04T10:47:21.000Z | 2020-05-04T10:47:21.000Z | from datetime import datetime
from yasoo.utils import type_to_string, fully_qualified_string_to_type
def serialize_datetime(d: datetime) -> dict:
return {"time": d.timestamp()}
def deserialize_datetime(d: dict) -> datetime:
return datetime.fromtimestamp(d["time"])
def serialize_type(obj: type) -> dict:
... | 25.85 | 78 | 0.762089 | 70 | 517 | 5.314286 | 0.328571 | 0.188172 | 0.064516 | 0.11828 | 0.139785 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12766 | 517 | 19 | 79 | 27.210526 | 0.824834 | 0 | 0 | 0 | 0 | 0 | 0.092843 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0.2 | 0.4 | 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 |
dda5376d854514c71479f196e20177e7d778af97 | 193 | py | Python | WebMonitoring/API/constants.py | raresraf/rafMetrics | 21eb5e8210364bf70eee746d71c45f3e353dcb10 | [
"MIT"
] | 15 | 2019-11-03T18:01:27.000Z | 2021-05-05T20:54:57.000Z | WebMonitoring/API/constants.py | raresraf/rafMetrics | 21eb5e8210364bf70eee746d71c45f3e353dcb10 | [
"MIT"
] | 392 | 2019-11-09T21:28:01.000Z | 2022-03-31T13:04:45.000Z | WebMonitoring/API/constants.py | raresraf/rafMetrics | 21eb5e8210364bf70eee746d71c45f3e353dcb10 | [
"MIT"
] | 1 | 2021-03-11T18:35:16.000Z | 2021-03-11T18:35:16.000Z | class PERIOD:
DAILY = "daily"
WEEKLY = "weekly"
MONTHLY = "monthly"
# Converting BYTES to KB, MB, GB
BYTES_TO_KBYTES = 1024
BYTES_TO_MBYTES = 1048576
BYTES_TO_GBYTES = 1073741824
| 17.545455 | 32 | 0.704663 | 26 | 193 | 5 | 0.653846 | 0.215385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138158 | 0.212435 | 193 | 10 | 33 | 19.3 | 0.717105 | 0.15544 | 0 | 0 | 0 | 0 | 0.111801 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0.571429 | 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 |
ddf41b337d25ede90bad4dc656041d89f6672f57 | 1,844 | py | Python | linter.py | TheBossProSniper/electric-windows | 0c41bb4c7da614ef193b314a92ed98f9cd893da2 | [
"Apache-2.0"
] | 210 | 2021-03-03T05:26:46.000Z | 2022-02-21T17:25:06.000Z | linter.py | XtremeDevX/Electric-Windows | 48e7015fa41734dfde93e983bec8b2aa94379781 | [
"Apache-2.0"
] | 7 | 2021-03-22T14:25:48.000Z | 2022-03-18T04:29:22.000Z | linter.py | XtremeDevX/Electric-Windows | 48e7015fa41734dfde93e983bec8b2aa94379781 | [
"Apache-2.0"
] | 9 | 2021-03-11T15:46:36.000Z | 2021-09-21T09:13:58.000Z | import json, os, sys
os.chdir(r'C:\Users\xtrem\Desktop\Electric\Electric Packages\packages')
for f in os.listdir():
data = ''
try:
with open(f, 'r') as file:
data = json.load(file)
except:
continue
linted = {
'display-name': data['display-name'],
'package-... | 39.234043 | 107 | 0.55423 | 202 | 1,844 | 5.059406 | 0.272277 | 0.264188 | 0.204501 | 0.105675 | 0.276908 | 0.276908 | 0.209393 | 0.209393 | 0.209393 | 0.111546 | 0 | 0.000735 | 0.261931 | 1,844 | 47 | 108 | 39.234043 | 0.750184 | 0.045011 | 0 | 0 | 0 | 0 | 0.276451 | 0.022753 | 0 | 0 | 0 | 0.021277 | 0 | 1 | 0 | false | 0 | 0.033333 | 0 | 0.033333 | 0.033333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fb00f11eb9b380982ea42eba8638627a8b9af4b0 | 425 | py | Python | models.py | RecursionSpace/django-esign | 6d46acdbd43e8afe5066c6d10b36653cb60d2c4c | [
"MIT"
] | null | null | null | models.py | RecursionSpace/django-esign | 6d46acdbd43e8afe5066c6d10b36653cb60d2c4c | [
"MIT"
] | null | null | null | models.py | RecursionSpace/django-esign | 6d46acdbd43e8afe5066c6d10b36653cb60d2c4c | [
"MIT"
] | null | null | null | '''Database models for django-esign'''
from django.db import models
class compliance_checklist(models.Model):
'''
Quick refrence model to verify compliance steps.
'''
informed_consumer_record_access = models.BooleanField(default=False)
informed_consumer_agreement_duration = models.B... | 26.5625 | 78 | 0.748235 | 45 | 425 | 6.866667 | 0.622222 | 0.174757 | 0.242718 | 0.291262 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171765 | 425 | 15 | 79 | 28.333333 | 0.877841 | 0.190588 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
fb09162e2d0f4c2a22778ba61b31178b6dff6783 | 293 | py | Python | cocopot/__init__.py | zeaphoo/flagon | d691c52ff71eeab6658b3777d95e2503f681bae2 | [
"MIT"
] | 11 | 2015-07-19T01:20:53.000Z | 2015-11-16T08:05:22.000Z | cocopot/__init__.py | zeaphoo/flagon | d691c52ff71eeab6658b3777d95e2503f681bae2 | [
"MIT"
] | null | null | null | cocopot/__init__.py | zeaphoo/flagon | d691c52ff71eeab6658b3777d95e2503f681bae2 | [
"MIT"
] | 3 | 2015-08-17T10:17:08.000Z | 2015-11-16T08:05:12.000Z | # -*- coding: utf-8 -*-
__version__ = '0.2'
from .exceptions import abort
from .app import Cocopot
from .request import Request
from .response import Response, make_response, redirect, jsonify
from .globals import current_app, g, request, _request_ctx_stack
from .blueprints import Blueprint
| 29.3 | 64 | 0.78157 | 40 | 293 | 5.5 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011811 | 0.133106 | 293 | 9 | 65 | 32.555556 | 0.854331 | 0.071672 | 0 | 0 | 0 | 0 | 0.011111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.857143 | 0 | 0.857143 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
fb0f0ed03cce23dca69e77ad20b3c2f37a15d025 | 4,560 | py | Python | test/information_test.py | ChitambarLab/qNetVO | d91dba3ad485ef707825d5a5b1c38dba0b2c491b | [
"Apache-2.0"
] | 3 | 2022-03-11T17:46:07.000Z | 2022-03-14T04:16:24.000Z | test/information_test.py | ChitambarLab/qNetVO | d91dba3ad485ef707825d5a5b1c38dba0b2c491b | [
"Apache-2.0"
] | 2 | 2022-03-25T03:26:07.000Z | 2022-03-30T14:52:40.000Z | test/information_test.py | ChitambarLab/qNetVO | d91dba3ad485ef707825d5a5b1c38dba0b2c491b | [
"Apache-2.0"
] | 1 | 2022-03-14T14:58:01.000Z | 2022-03-14T14:58:01.000Z | import pytest
import pennylane as qml
from pennylane import numpy as np
import qnetvo as qnet
class TestBehaviorFn:
def test_simple_settings(self):
prep_nodes = [
qnet.PrepareNode(2, [0], qnet.local_RY, 1),
qnet.PrepareNode(2, [1], qnet.local_RY, 1),
]
meas_nodes =... | 34.285714 | 85 | 0.449781 | 735 | 4,560 | 2.680272 | 0.106122 | 0.219289 | 0.296954 | 0.375635 | 0.673604 | 0.671066 | 0.625888 | 0.575635 | 0.575635 | 0.529949 | 0 | 0.156787 | 0.374781 | 4,560 | 132 | 86 | 34.545455 | 0.534199 | 0 | 0 | 0.504505 | 0 | 0 | 0.012061 | 0 | 0 | 0 | 0 | 0 | 0.081081 | 1 | 0.036036 | false | 0 | 0.036036 | 0 | 0.09009 | 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 |
fb3cbfc28cb474f1cb865af98c0513521b4d6f0c | 190 | py | Python | src/serializers.py | Stephen-Kamau/simple_blog-backend | af64132d66010b718b83ab03c45ef36df9abbda1 | [
"MIT"
] | null | null | null | src/serializers.py | Stephen-Kamau/simple_blog-backend | af64132d66010b718b83ab03c45ef36df9abbda1 | [
"MIT"
] | 7 | 2021-03-30T14:16:11.000Z | 2022-03-12T00:49:50.000Z | src/serializers.py | Stephen-Kamau/simple_blog-backend | af64132d66010b718b83ab03c45ef36df9abbda1 | [
"MIT"
] | null | null | null | from .models import Todo
from rest_framework import serializers
class Todoserial(serializers.ModelSerializer):
class Meta:
model = Todo
fields = '__all__'
| 13.571429 | 46 | 0.668421 | 19 | 190 | 6.421053 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.278947 | 190 | 13 | 47 | 14.615385 | 0.890511 | 0 | 0 | 0 | 0 | 0 | 0.036842 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
34935adb3f6558721d57681ff59fb12dfb717dbe | 255 | py | Python | modules/preprocess.py | ajunwalker/mario-net | a16d6561ab36a6f1a9b88306302590d68d2c12bc | [
"MIT"
] | null | null | null | modules/preprocess.py | ajunwalker/mario-net | a16d6561ab36a6f1a9b88306302590d68d2c12bc | [
"MIT"
] | null | null | null | modules/preprocess.py | ajunwalker/mario-net | a16d6561ab36a6f1a9b88306302590d68d2c12bc | [
"MIT"
] | null | null | null | import numpy as np
import matplotlib.pyplot as plt
import cv2
def preprocess_image(img):
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
gray = cv2.resize(gray, (64, 60), interpolation = cv2.INTER_AREA)
gray = gray[15:, :] / 255
return gray
| 25.5 | 69 | 0.698039 | 38 | 255 | 4.605263 | 0.657895 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072816 | 0.192157 | 255 | 9 | 70 | 28.333333 | 0.776699 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
34a8aa53bc7998a9ea0b2f654f4903eaeb4f4c92 | 240 | py | Python | web_service/common/__init__.py | snook9/arxiv_intelligence_ner_ws | 037d76db4338e8504acf6a7977d2a7fdd2ff88f8 | [
"MIT"
] | 1 | 2022-01-16T19:33:38.000Z | 2022-01-16T19:33:38.000Z | web_service/common/__init__.py | snook9/arxiv_intelligence_ner_ws | 037d76db4338e8504acf6a7977d2a7fdd2ff88f8 | [
"MIT"
] | 9 | 2021-12-23T14:16:01.000Z | 2022-03-25T09:58:51.000Z | web_service/common/__init__.py | snook9/arxiv_intelligence_ner_ws | 037d76db4338e8504acf6a7977d2a7fdd2ff88f8 | [
"MIT"
] | null | null | null | """
Name: arXiv Intelligence NER Web Service
Authors: Jonathan CASSAING
Web service specialized in Named Entity Recognition (NER), in Natural Language Processing (NLP)
"""
from .base import Base, session_factory
from .config import Config
| 26.666667 | 95 | 0.791667 | 32 | 240 | 5.90625 | 0.75 | 0.10582 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141667 | 240 | 8 | 96 | 30 | 0.917476 | 0.679167 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
34b53300e69b5407446cdc868ac8447a8a21c7f7 | 128 | py | Python | RModularity/__init__.py | filipinascimento/RModularity | 7de0b066211bbd602dab39c0991a5b369e7442a8 | [
"BSD-3-Clause"
] | 1 | 2022-01-06T22:01:23.000Z | 2022-01-06T22:01:23.000Z | RModularity/__init__.py | filipinascimento/RModularity | 7de0b066211bbd602dab39c0991a5b369e7442a8 | [
"BSD-3-Clause"
] | null | null | null | RModularity/__init__.py | filipinascimento/RModularity | 7de0b066211bbd602dab39c0991a5b369e7442a8 | [
"BSD-3-Clause"
] | null | null | null | from .Core import RModularity as RModularity,RModularityFast,modularityDifference,informationModularity
__version__ = "0.3.0"
| 32 | 104 | 0.84375 | 13 | 128 | 8 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025641 | 0.085938 | 128 | 3 | 105 | 42.666667 | 0.863248 | 0 | 0 | 0 | 0 | 0 | 0.039063 | 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 |
34d2b0668cfb30201647eed936e6083401333e9a | 255 | py | Python | baseframe/forms/__init__.py | hasgeek/baseframe | 9257e1c0f996905e7209f6a09e043204e65757b2 | [
"BSD-2-Clause"
] | 7 | 2015-12-24T02:05:27.000Z | 2021-06-03T21:34:19.000Z | baseframe/forms/__init__.py | hasgeek/baseframe | 9257e1c0f996905e7209f6a09e043204e65757b2 | [
"BSD-2-Clause"
] | 127 | 2015-01-02T14:25:44.000Z | 2021-09-22T07:56:30.000Z | baseframe/forms/__init__.py | hasgeek/baseframe | 9257e1c0f996905e7209f6a09e043204e65757b2 | [
"BSD-2-Clause"
] | 10 | 2015-02-08T04:55:56.000Z | 2020-06-23T20:59:48.000Z | # flake8: noqa
"""
Baseframe forms
"""
from .auto import *
from .fields import *
from .filters import *
from .form import *
from .parsleyjs import *
from .patch_wtforms import *
from .sqlalchemy import *
from .validators import *
from .widgets import *
| 15.9375 | 28 | 0.721569 | 32 | 255 | 5.71875 | 0.5 | 0.437158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004762 | 0.176471 | 255 | 15 | 29 | 17 | 0.866667 | 0.113725 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
34e528e996c2e48309a9da6ac7e781465dbb973d | 287 | py | Python | aerokit/aero/refstate.py | PierreMignerot/aerokit | 78717288d840ef5cb3939b44e967cf8f250dc270 | [
"MIT"
] | null | null | null | aerokit/aero/refstate.py | PierreMignerot/aerokit | 78717288d840ef5cb3939b44e967cf8f250dc270 | [
"MIT"
] | null | null | null | aerokit/aero/refstate.py | PierreMignerot/aerokit | 78717288d840ef5cb3939b44e967cf8f250dc270 | [
"MIT"
] | null | null | null | """
The ``refstate`` module
=========================
Provides integral models for boundary layer computations
Available functions
-------------------
"""
class refstate:
def __init__(self, **kwargs):
self._dict = kwargs
#def Reynolds(self): | 16.882353 | 60 | 0.519164 | 24 | 287 | 6 | 0.791667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.247387 | 287 | 17 | 61 | 16.882353 | 0.666667 | 0.585366 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
34f6125b56c94e86472d58003462e41d11dd077a | 1,015 | py | Python | ranker/common.py | djsixb/google-app-engine-ranklist | 89ba3860a950c6230d6a7c93c2194fd624228938 | [
"Apache-2.0"
] | 30 | 2016-01-30T18:04:35.000Z | 2022-02-20T09:58:24.000Z | ranker/common.py | djsixb/google-app-engine-ranklist | 89ba3860a950c6230d6a7c93c2194fd624228938 | [
"Apache-2.0"
] | 10 | 2016-01-22T18:46:19.000Z | 2019-07-19T12:49:51.000Z | ranker/common.py | djsixb/google-app-engine-ranklist | 89ba3860a950c6230d6a7c93c2194fd624228938 | [
"Apache-2.0"
] | 12 | 2015-10-17T09:40:44.000Z | 2019-06-08T19:54:36.000Z | #!/usr/bin/python
#
# Copyright 2008 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | 31.71875 | 74 | 0.760591 | 139 | 1,015 | 5.539568 | 0.654676 | 0.077922 | 0.033766 | 0.041558 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009379 | 0.159606 | 1,015 | 31 | 75 | 32.741935 | 0.893318 | 0.728079 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0.2 | 0.2 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
55003aa73470c2ca271563cffa01fe55f68afbc4 | 132 | py | Python | girando.py | ThundeRatz/Python-legacy | c0e8878b330a46af59e95fc91a1a1944461adc8f | [
"CC-BY-4.0"
] | null | null | null | girando.py | ThundeRatz/Python-legacy | c0e8878b330a46af59e95fc91a1a1944461adc8f | [
"CC-BY-4.0"
] | null | null | null | girando.py | ThundeRatz/Python-legacy | c0e8878b330a46af59e95fc91a1a1944461adc8f | [
"CC-BY-4.0"
] | null | null | null | from motors import *
from hmc5883l import getHeading
motors = Motores()
motors.setSpeed(127, -127)
while True:
print(getHeading())
| 18.857143 | 31 | 0.765152 | 17 | 132 | 5.941176 | 0.647059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086957 | 0.128788 | 132 | 6 | 32 | 22 | 0.791304 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.166667 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
55033ca17000f2305346f2c21584e5ef1a330b0b | 1,896 | py | Python | tests/test_maths.py | dlens/dlpy | f4a59f26c7b48a86609efc572245145574f1f1f6 | [
"MIT"
] | null | null | null | tests/test_maths.py | dlens/dlpy | f4a59f26c7b48a86609efc572245145574f1f1f6 | [
"MIT"
] | null | null | null | tests/test_maths.py | dlens/dlpy | f4a59f26c7b48a86609efc572245145574f1f1f6 | [
"MIT"
] | null | null | null | from unittest import TestCase
import numpy.testing as npt
import dlpy.maths as dlm
import numpy as np
class Test(TestCase):
def test_linear_interp(self):
npt.assert_almost_equal(dlm.linear_interp(0.5, 0, 0, 1, 1), 0.5)
npt.assert_almost_equal(dlm.linear_interp(400, 100, 0, 500, 1), 0.75)
n... | 40.340426 | 80 | 0.632384 | 322 | 1,896 | 3.515528 | 0.170807 | 0.174912 | 0.238516 | 0.318021 | 0.652827 | 0.556537 | 0.364841 | 0.271201 | 0.180212 | 0.137809 | 0 | 0.094723 | 0.220464 | 1,896 | 46 | 81 | 41.217391 | 0.671177 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.55 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.225 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
551752c80819c81f44ef8fc3e1ae94771b26678f | 167 | py | Python | Python/Programming Fundamentals/Text Processing/04. Emoticon Finder.py | teodoramilcheva/softuni-software-engineering | 98dc9faa66f42570f6538fd7ef186d2bd1d39bff | [
"MIT"
] | null | null | null | Python/Programming Fundamentals/Text Processing/04. Emoticon Finder.py | teodoramilcheva/softuni-software-engineering | 98dc9faa66f42570f6538fd7ef186d2bd1d39bff | [
"MIT"
] | null | null | null | Python/Programming Fundamentals/Text Processing/04. Emoticon Finder.py | teodoramilcheva/softuni-software-engineering | 98dc9faa66f42570f6538fd7ef186d2bd1d39bff | [
"MIT"
] | null | null | null | string = input()
for i in range(len(string)):
emoticon = ''
if string[i] == ':':
emoticon += string[i] + string[i + 1]
print(emoticon)
| 20.875 | 46 | 0.502994 | 20 | 167 | 4.2 | 0.55 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00885 | 0.323353 | 167 | 7 | 47 | 23.857143 | 0.734513 | 0 | 0 | 0 | 0 | 0 | 0.00625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9b2d1c7366744038ddea8772c7354b9d9d542ed7 | 1,151 | py | Python | setup.py | mmoskon/CosinorPy | 55d45f3a693bd292cbaaa2e33c60c329c8bf21fa | [
"MIT"
] | 12 | 2020-08-11T17:03:34.000Z | 2022-01-11T21:55:54.000Z | setup.py | mmoskon/CosinorPy | 55d45f3a693bd292cbaaa2e33c60c329c8bf21fa | [
"MIT"
] | 8 | 2021-02-23T07:55:07.000Z | 2022-01-25T07:28:13.000Z | setup.py | mmoskon/CosinorPy | 55d45f3a693bd292cbaaa2e33c60c329c8bf21fa | [
"MIT"
] | null | null | null | from distutils.core import setup
setup(
name = 'CosinorPy',
packages = ['CosinorPy'],
version = '2.1',
license='MIT',
description = 'Python package for cosinor based rhytmometry',
author = 'Miha Moskon',
author_email = 'miha.moskon@fri.uni-lj.si',
url = 'https... | 34.878788 | 78 | 0.565595 | 108 | 1,151 | 6 | 0.657407 | 0.146605 | 0.192901 | 0.200617 | 0.101852 | 0.101852 | 0 | 0 | 0 | 0 | 0 | 0.01699 | 0.284101 | 1,151 | 33 | 79 | 34.878788 | 0.769417 | 0 | 0 | 0.060606 | 0 | 0 | 0.542535 | 0.021701 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.030303 | 0 | 0.030303 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9b5046ad62c9f1cfd3c342e1369ef14ae2ccc1b4 | 245 | py | Python | online_inference/src/models/__init__.py | made-ml-in-prod-2021/muzaffarsoliyev | 9b6c1bd4ec003a8dbf9b375df0e302f58a3e324b | [
"MIT"
] | null | null | null | online_inference/src/models/__init__.py | made-ml-in-prod-2021/muzaffarsoliyev | 9b6c1bd4ec003a8dbf9b375df0e302f58a3e324b | [
"MIT"
] | 1 | 2021-06-14T17:49:21.000Z | 2021-06-18T07:33:12.000Z | src/models/__init__.py | made-ml-in-prod-2021/muzaffarsoliyev | 9b6c1bd4ec003a8dbf9b375df0e302f58a3e324b | [
"MIT"
] | null | null | null | from .model_fit_predict import train_model, serialize_model, predict_model, evaluate_model, SklearnClassifierModel
__all__ = [
"train_model",
"serialize_model",
"evaluate_model",
"predict_model",
"SklearnClassifierModel"
]
| 22.272727 | 114 | 0.75102 | 24 | 245 | 7.083333 | 0.416667 | 0.117647 | 0.223529 | 0.282353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159184 | 245 | 10 | 115 | 24.5 | 0.825243 | 0 | 0 | 0 | 0 | 0 | 0.306122 | 0.089796 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9b6df83924e429a002c434a199e88a3a1414cacc | 686 | py | Python | Python/CombinationSumTest.py | TonnyL/Windary | 39f85cdedaaf5b85f7ce842ecef975301fc974cf | [
"MIT"
] | 205 | 2017-11-16T08:38:46.000Z | 2022-03-06T05:50:03.000Z | Python/CombinationSumTest.py | santosh241/Windary | 39f85cdedaaf5b85f7ce842ecef975301fc974cf | [
"MIT"
] | 3 | 2018-04-10T10:17:52.000Z | 2020-12-11T08:00:09.000Z | Python/CombinationSumTest.py | santosh241/Windary | 39f85cdedaaf5b85f7ce842ecef975301fc974cf | [
"MIT"
] | 28 | 2018-04-10T06:42:42.000Z | 2021-09-14T14:15:39.000Z | from unittest import TestCase
from CombinationSum import CombinationSum
class TestCombinationSum(TestCase):
def test_combinationSum(self):
cs = CombinationSum()
list0 = cs.combinationSum([2, 3, 6, 7], 7)
self.assertTrue(len(list0) == 2)
self.assertTrue(list0.__contains__([7]))
... | 31.181818 | 64 | 0.635569 | 82 | 686 | 5.060976 | 0.280488 | 0.236145 | 0.021687 | 0.195181 | 0.139759 | 0.139759 | 0 | 0 | 0 | 0 | 0 | 0.06679 | 0.214286 | 686 | 21 | 65 | 32.666667 | 0.703154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.533333 | 1 | 0.066667 | false | 0 | 0.133333 | 0 | 0.266667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9b76c6a179dd2240af52c682ca3954521534ead9 | 241 | py | Python | ForeignOption.py | minacode/ArmyCreator | b78712960b6d5fc3b29ac9ed04746398f30567ac | [
"Apache-2.0"
] | 1 | 2017-06-26T16:49:41.000Z | 2017-06-26T16:49:41.000Z | ForeignOption.py | minacode/ArmyCreator | b78712960b6d5fc3b29ac9ed04746398f30567ac | [
"Apache-2.0"
] | null | null | null | ForeignOption.py | minacode/ArmyCreator | b78712960b6d5fc3b29ac9ed04746398f30567ac | [
"Apache-2.0"
] | null | null | null | from Option import Option
class ForeignOption(Option):
def __init__(self, giving_unit, receiving_unit, name, points, is_bow):
Option.__init__(self, receiving_unit, name, points, is_bow)
self.giving_unit = giving_unit
| 24.1 | 74 | 0.73029 | 32 | 241 | 5.03125 | 0.46875 | 0.186335 | 0.173913 | 0.285714 | 0.347826 | 0.347826 | 0 | 0 | 0 | 0 | 0 | 0 | 0.186722 | 241 | 9 | 75 | 26.777778 | 0.821429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 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 |
9b96171fc8176c8fc01168f8163dce9e141c4d93 | 44 | py | Python | string-to-list.py | udaik/lang-python | c5fa05ed04c2fb782ba7c60e6c06097867c38edc | [
"Apache-2.0"
] | null | null | null | string-to-list.py | udaik/lang-python | c5fa05ed04c2fb782ba7c60e6c06097867c38edc | [
"Apache-2.0"
] | null | null | null | string-to-list.py | udaik/lang-python | c5fa05ed04c2fb782ba7c60e6c06097867c38edc | [
"Apache-2.0"
] | null | null | null | S = 'shrubbery'
L = list(S)
print('L', L)
| 7.333333 | 15 | 0.522727 | 8 | 44 | 2.875 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.227273 | 44 | 5 | 16 | 8.8 | 0.676471 | 0 | 0 | 0 | 0 | 0 | 0.227273 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9b9a279f8a9332a9986dfc78b36f3973031e6a3f | 902 | py | Python | setup.py | Refty/bubble-client | 80b1bfeb6885e566d727a1ad75f4cb709d97326f | [
"MIT"
] | 2 | 2022-01-20T15:25:14.000Z | 2022-01-20T15:34:59.000Z | setup.py | Refty/bubble-client | 80b1bfeb6885e566d727a1ad75f4cb709d97326f | [
"MIT"
] | null | null | null | setup.py | Refty/bubble-client | 80b1bfeb6885e566d727a1ad75f4cb709d97326f | [
"MIT"
] | null | null | null | from setuptools import setup
def get_description():
with open("README.md") as file:
return file.read()
setup(
name="bubble-client",
version="0.7.1",
url="https://github.com/Refty/bubble-client",
author="Guillaume Gelin",
author_email="guillaume@refty.co",
description="Python clie... | 27.333333 | 51 | 0.60643 | 105 | 902 | 5.104762 | 0.609524 | 0.141791 | 0.186567 | 0.19403 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033382 | 0.236142 | 902 | 32 | 52 | 28.1875 | 0.744557 | 0 | 0 | 0.071429 | 0 | 0 | 0.456763 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | true | 0 | 0.035714 | 0 | 0.107143 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
32e6e740da21f70fe739e42081320dd3ff7a6a73 | 81 | py | Python | laboratory/__init__.py | VladimirovAleksandr/l2 | e297ccdd8ee1756f4807c43a4c0d104d3712ef38 | [
"MIT"
] | null | null | null | laboratory/__init__.py | VladimirovAleksandr/l2 | e297ccdd8ee1756f4807c43a4c0d104d3712ef38 | [
"MIT"
] | null | null | null | laboratory/__init__.py | VladimirovAleksandr/l2 | e297ccdd8ee1756f4807c43a4c0d104d3712ef38 | [
"MIT"
] | null | null | null | __version__ = (2022, 2, 6, '76a59e9e')
VERSION = ".".join(map(str, __version__))
| 27 | 41 | 0.654321 | 10 | 81 | 4.5 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15493 | 0.123457 | 81 | 2 | 42 | 40.5 | 0.478873 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fd060b61e2801eb626a003df72cc24369a9baa02 | 414 | py | Python | python/testData/inspections/PyFinalInspection/ImportedClassFinalReassignment/a.py | tgodzik/intellij-community | f5ef4191fc30b69db945633951fb160c1cfb7b6f | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/inspections/PyFinalInspection/ImportedClassFinalReassignment/a.py | tgodzik/intellij-community | f5ef4191fc30b69db945633951fb160c1cfb7b6f | [
"Apache-2.0"
] | 2 | 2022-02-19T09:45:05.000Z | 2022-02-27T20:32:55.000Z | python/testData/inspections/PyFinalInspection/ImportedClassFinalReassignment/a.py | tgodzik/intellij-community | f5ef4191fc30b69db945633951fb160c1cfb7b6f | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | from b import A
<warning descr="'a' is 'Final' and could not be reassigned">A.a</warning> = 4
class B(A):
@classmethod
def my_cls_method(cls):
<warning descr="'a' is 'Final' and could not be reassigned">cls.a</warning> = 6
<warning descr="'a' is 'Final' and could not be reassigned">B.a</warning> = 7
... | 31.846154 | 87 | 0.652174 | 72 | 414 | 3.722222 | 0.333333 | 0.179104 | 0.19403 | 0.164179 | 0.604478 | 0.604478 | 0.604478 | 0.604478 | 0.604478 | 0.481343 | 0 | 0.011905 | 0.188406 | 414 | 13 | 88 | 31.846154 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0.409639 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.111111 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fd061551409937a96500dddaebdd4df1cbb21541 | 163 | py | Python | vang/exceptions.py | maximdanilchenko/vang | b074e628023cde4021a7a11f0ef272acc601b02b | [
"MIT"
] | null | null | null | vang/exceptions.py | maximdanilchenko/vang | b074e628023cde4021a7a11f0ef272acc601b02b | [
"MIT"
] | null | null | null | vang/exceptions.py | maximdanilchenko/vang | b074e628023cde4021a7a11f0ef272acc601b02b | [
"MIT"
] | null | null | null | class VangError(Exception):
def __init__(self, msg=None, key=None):
self.msg = msg or {}
self.key = key
class InitError(Exception):
pass
| 18.111111 | 43 | 0.619632 | 21 | 163 | 4.619048 | 0.571429 | 0.14433 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.263804 | 163 | 8 | 44 | 20.375 | 0.808333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.166667 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
fd0905571358f93019597efbfb519f5406ff421a | 644 | py | Python | cypher.py | kernalphage/adventOfCode | 8150d8e0fdca4187bfc073f13116e2088cf9d766 | [
"MIT"
] | null | null | null | cypher.py | kernalphage/adventOfCode | 8150d8e0fdca4187bfc073f13116e2088cf9d766 | [
"MIT"
] | null | null | null | cypher.py | kernalphage/adventOfCode | 8150d8e0fdca4187bfc073f13116e2088cf9d766 | [
"MIT"
] | null | null | null | import base64
print(ord(";") - ord('\''))
line="13-1-19-20-5-18-2-18-1-14-3-8"
print [chr(ord('a') + int(i) - 1) for i in line.split("-")]
line = "Lzwjw ak s ljwskmjw zavvwf kgewozwjw, al ak dguslwv sl s kwujwl hdsuw af lzw Hsuaxau Guwsf"
for i in range(0,26):
print "".join([chr(ord('a') + (ord(c) - ord('a') + i) ... | 40.25 | 114 | 0.625776 | 110 | 644 | 3.663636 | 0.5 | 0.044665 | 0.044665 | 0.054591 | 0.193548 | 0.109181 | 0.109181 | 0.109181 | 0.109181 | 0 | 0 | 0.080374 | 0.169255 | 644 | 16 | 114 | 40.25 | 0.672897 | 0 | 0 | 0 | 0 | 0.272727 | 0.378295 | 0.181395 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | null | null | 0.454545 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
fd0fc5a554be3fbd8e64e7f83c1eaee3c9d78593 | 213 | py | Python | thtml/__init__.py | cariad/tohtml | 7e8c07a2342847f96bb136563587a20a15169ef7 | [
"MIT"
] | null | null | null | thtml/__init__.py | cariad/tohtml | 7e8c07a2342847f96bb136563587a20a15169ef7 | [
"MIT"
] | 22 | 2021-09-04T12:15:00.000Z | 2021-10-10T14:16:28.000Z | thtml/__init__.py | cariad/tohtml | 7e8c07a2342847f96bb136563587a20a15169ef7 | [
"MIT"
] | null | null | null | from thtml.cli import write_html
from thtml.options import Scope
from thtml.theming import Theme
from thtml.version import get_version
__all__ = [
"get_version",
"Scope",
"Theme",
"write_html",
]
| 17.75 | 37 | 0.71831 | 29 | 213 | 5 | 0.448276 | 0.248276 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192488 | 213 | 11 | 38 | 19.363636 | 0.843023 | 0 | 0 | 0 | 0 | 0 | 0.14554 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
fd3af227863030c649f8512f9420a6cbbf257fad | 214 | py | Python | samples/ner_sample/tests/mocks/__init__.py | katyamust/ml-expr-fw | 5ede3ff1f777430cf25e8731e4798fc37387fb9d | [
"MIT"
] | 1 | 2022-03-06T21:52:01.000Z | 2022-03-06T21:52:01.000Z | samples/ner_sample/tests/mocks/__init__.py | omri374/FabricML | a545f1ee907b1b89ca9766a873c5944ec88e54e9 | [
"MIT"
] | null | null | null | samples/ner_sample/tests/mocks/__init__.py | omri374/FabricML | a545f1ee907b1b89ca9766a873c5944ec88e54e9 | [
"MIT"
] | null | null | null | from .mock_data_loader import MockDataLoader
from .mock_model import MockModel
from .mock_experimentation import MockExperimentation
__all__ = [
"MockDataLoader",
"MockModel",
"MockExperimentation",
]
| 21.4 | 53 | 0.780374 | 20 | 214 | 7.95 | 0.55 | 0.150943 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149533 | 214 | 9 | 54 | 23.777778 | 0.873626 | 0 | 0 | 0 | 0 | 0 | 0.196262 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 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 |
b5c2b520d6cbea2b4b28a8083979613dd4702e37 | 556 | py | Python | tests/AbstractConstraints.py | char-lie/feasible_directions | a23d45294efbbc3ff9736eb86395eb64e7d107bc | [
"MIT"
] | null | null | null | tests/AbstractConstraints.py | char-lie/feasible_directions | a23d45294efbbc3ff9736eb86395eb64e7d107bc | [
"MIT"
] | null | null | null | tests/AbstractConstraints.py | char-lie/feasible_directions | a23d45294efbbc3ff9736eb86395eb64e7d107bc | [
"MIT"
] | null | null | null | from unittest import TestCase, main
from numpy.linalg import norm
from src.AbstractConstraints import AbstractConstraints
class TestFunctions(TestCase):
def setUp(self):
pass
def tearDown(self):
pass
def test_constructor(self):
constraints = AbstractConstraints()
self.assertIsInstance(constr... | 21.384615 | 59 | 0.764388 | 56 | 556 | 7.357143 | 0.553571 | 0.218447 | 0.053398 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.160072 | 556 | 25 | 60 | 22.24 | 0.882227 | 0 | 0 | 0.235294 | 0 | 0 | 0.014388 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 1 | 0.235294 | false | 0.117647 | 0.176471 | 0 | 0.470588 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
b5cb4ddd1a279b6f5689ab64db17584c45ae164d | 1,432 | py | Python | test_ukz/test_util/test_tempos.py | clauderichard/Ultrakazoid | 619f1afd1fd55afb06e7d27b2bc30eee9929f660 | [
"MIT"
] | null | null | null | test_ukz/test_util/test_tempos.py | clauderichard/Ultrakazoid | 619f1afd1fd55afb06e7d27b2bc30eee9929f660 | [
"MIT"
] | null | null | null | test_ukz/test_util/test_tempos.py | clauderichard/Ultrakazoid | 619f1afd1fd55afb06e7d27b2bc30eee9929f660 | [
"MIT"
] | null | null | null | import unittest
from ukz.util.tempos import *
from ukz.midi.config import MidiConfig
class TestTemposMethods(unittest.TestCase):
################
# Helper methods
# check beatsToSeconds is correct
def chkbts(self,initTempo,temposDic,beats,expectedSecs):
tempos = Tempos(initTempo)
for a,b in t... | 28.64 | 64 | 0.585894 | 206 | 1,432 | 4.014563 | 0.305825 | 0.217654 | 0.188634 | 0.199516 | 0.38815 | 0.245466 | 0.215236 | 0 | 0 | 0 | 0 | 0.177093 | 0.207402 | 1,432 | 50 | 65 | 28.64 | 0.551542 | 0.036313 | 0 | 0 | 0 | 0 | 0.006093 | 0 | 0 | 0 | 0 | 0 | 0.029412 | 1 | 0.147059 | false | 0 | 0.088235 | 0 | 0.264706 | 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 |
b5cfc78c28103c6dd710b1414a6c3dcde624b572 | 1,229 | py | Python | setup.py | osfunapps/os_translator-py | 092cdb2948b87d68f674901bfbe1e79dbc65918e | [
"MIT"
] | null | null | null | setup.py | osfunapps/os_translator-py | 092cdb2948b87d68f674901bfbe1e79dbc65918e | [
"MIT"
] | null | null | null | setup.py | osfunapps/os_translator-py | 092cdb2948b87d68f674901bfbe1e79dbc65918e | [
"MIT"
] | null | null | null | from distutils.core import setup
setup(
name='os_translator',
packages=['os_translator', 'os_translator.modules'],
version='1.02',
license='MIT',
description='Run this module to translate a string to a given language using Google Translate API.',
author='Oz Shabat',
author_email='admin@os-a... | 42.37931 | 158 | 0.648495 | 145 | 1,229 | 5.462069 | 0.62069 | 0.119949 | 0.157828 | 0.164141 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01658 | 0.214809 | 1,229 | 28 | 159 | 43.892857 | 0.804145 | 0.17738 | 0 | 0 | 0 | 0 | 0.61332 | 0.042744 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.041667 | 0 | 0.041667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bd0725da46387a0f273a5f9ff0c9a3974b5d5340 | 1,549 | py | Python | dashboard/serializers.py | chaitphani/DITS-HRMS | bdd6bf9347d4904e7d3611d1d7d365944c865282 | [
"MIT"
] | null | null | null | dashboard/serializers.py | chaitphani/DITS-HRMS | bdd6bf9347d4904e7d3611d1d7d365944c865282 | [
"MIT"
] | null | null | null | dashboard/serializers.py | chaitphani/DITS-HRMS | bdd6bf9347d4904e7d3611d1d7d365944c865282 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from .models import *
class TaskSerializer(serializers.ModelSerializer):
class Meta:
model = Task
fields = ['id', 'title', 'workspace', 'assigned_to', 'priority', 'task_status', 'description', 'planned_start_date', 'planned_end_date', 'file']
class WorkSpa... | 27.660714 | 153 | 0.646223 | 141 | 1,549 | 6.921986 | 0.390071 | 0.213115 | 0.254098 | 0.286885 | 0.57582 | 0.329918 | 0.329918 | 0.247951 | 0.247951 | 0.114754 | 0 | 0 | 0.232408 | 1,549 | 56 | 154 | 27.660714 | 0.820858 | 0 | 0 | 0.25641 | 0 | 0 | 0.204516 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.051282 | 0 | 0.461538 | 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 |
bd0c900c3d3ae3d7e76d3f7b82e5ed7d794d6c61 | 125 | py | Python | Algorithm/gcd.py | 8luebottle/DataStructure-N-Algorithm | 69b933c36d79b6cc5a0936db70033538f46ec378 | [
"Adobe-Glyph"
] | null | null | null | Algorithm/gcd.py | 8luebottle/DataStructure-N-Algorithm | 69b933c36d79b6cc5a0936db70033538f46ec378 | [
"Adobe-Glyph"
] | null | null | null | Algorithm/gcd.py | 8luebottle/DataStructure-N-Algorithm | 69b933c36d79b6cc5a0936db70033538f46ec378 | [
"Adobe-Glyph"
] | null | null | null | # Greatest Common Divisor
def finding_gcd(a,b):
wile(b!=0):
result = b
a, b = b, a%b
return result
| 13.888889 | 25 | 0.536 | 20 | 125 | 3.3 | 0.6 | 0.090909 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012195 | 0.344 | 125 | 8 | 26 | 15.625 | 0.792683 | 0.184 | 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 |
bd0fa503711d72ddeb5ea91cd185948738249b3d | 79 | py | Python | drf_social/__init__.py | ramzitannous/drf-social-auth | d06a36a9f1c5e44857c24eb7760939e30a1ebb58 | [
"0BSD"
] | null | null | null | drf_social/__init__.py | ramzitannous/drf-social-auth | d06a36a9f1c5e44857c24eb7760939e30a1ebb58 | [
"0BSD"
] | null | null | null | drf_social/__init__.py | ramzitannous/drf-social-auth | d06a36a9f1c5e44857c24eb7760939e30a1ebb58 | [
"0BSD"
] | null | null | null | __version__ = '1.4.0'
default_app_config = 'drf_social.apps.SocialAuthConfig'
| 19.75 | 55 | 0.78481 | 11 | 79 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041667 | 0.088608 | 79 | 3 | 56 | 26.333333 | 0.722222 | 0 | 0 | 0 | 0 | 0 | 0.468354 | 0.405063 | 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 |
bd2b99812a1de27827b7fa8b87133545dc5aaf2f | 1,529 | py | Python | dysart/fields.py | mcncm/Dysart | 35af07816be7910d6d178d8aa53a291bfbc8d5f6 | [
"MIT"
] | null | null | null | dysart/fields.py | mcncm/Dysart | 35af07816be7910d6d178d8aa53a291bfbc8d5f6 | [
"MIT"
] | 8 | 2018-11-29T18:53:20.000Z | 2019-04-27T18:09:09.000Z | dysart/fields.py | mcncm/Dysart | 35af07816be7910d6d178d8aa53a291bfbc8d5f6 | [
"MIT"
] | 1 | 2019-07-01T17:06:10.000Z | 2019-07-01T17:06:10.000Z | """
author: mcncm 2019
This is a wrapper class to allow the use of complex numbers with mongoengine.
It's not pretty, and I didn't want to have to do this. If you have any better
ideas, please let me know.
"""
from numpy import complex_
import mongoengine as me
class complex_m_(me.Document):
real = me.FloatField... | 27.303571 | 77 | 0.657292 | 218 | 1,529 | 4.215596 | 0.311927 | 0.186072 | 0.155604 | 0.156692 | 0.45049 | 0.45049 | 0.45049 | 0.383025 | 0.383025 | 0.383025 | 0 | 0.005897 | 0.223676 | 1,529 | 55 | 78 | 27.8 | 0.768324 | 0.156965 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.40625 | false | 0 | 0.0625 | 0.34375 | 0.9375 | 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 |
1faba3b2af186e1225b9ebd086eb60b36b247968 | 974 | py | Python | minitf/kernel/core.py | guocuimi/minitf | f272a6b1546b82aaec41ec7d2c2d34fa40a40385 | [
"MIT"
] | 7 | 2020-02-10T08:16:30.000Z | 2021-01-31T14:08:02.000Z | minitf/kernel/core.py | guocuimi/minitf | f272a6b1546b82aaec41ec7d2c2d34fa40a40385 | [
"MIT"
] | 1 | 2020-02-29T01:57:54.000Z | 2020-02-29T01:57:54.000Z | minitf/kernel/core.py | guocuimi/minitf | f272a6b1546b82aaec41ec7d2c2d34fa40a40385 | [
"MIT"
] | null | null | null | def primitive(f_raw):
"""
Wraps a funtion so that its gradient (VJP) can be specified and its invocation can be recorded.
"""
def f_wrapped(*args, **kwargs):
# get actual values from tensors
# TODO: wrape value as tensor here.
from minitf.tensor import get_val, Tensor
arg... | 31.419355 | 99 | 0.644764 | 139 | 974 | 4.359712 | 0.388489 | 0.066007 | 0.042904 | 0.049505 | 0.415842 | 0.20462 | 0.20462 | 0.092409 | 0 | 0 | 0 | 0 | 0.265914 | 974 | 30 | 100 | 32.466667 | 0.847552 | 0.268994 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033333 | 0 | 1 | 0.25 | false | 0 | 0.1875 | 0 | 0.6875 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
1fce6bcd6e136a785249e63f31beaca6f6227745 | 344 | py | Python | visorxml/generadorxml/templates/context_processors.py | pachi/visorxml | 041529d940c49805c2b12b2c128941fbaf2d4bd2 | [
"MIT"
] | null | null | null | visorxml/generadorxml/templates/context_processors.py | pachi/visorxml | 041529d940c49805c2b12b2c128941fbaf2d4bd2 | [
"MIT"
] | 69 | 2016-10-25T10:09:21.000Z | 2016-10-25T10:40:59.000Z | visorxml/generadorxml/templates/context_processors.py | pachi/visorxml_nuevo | 041529d940c49805c2b12b2c128941fbaf2d4bd2 | [
"MIT"
] | 2 | 2016-10-25T10:42:59.000Z | 2016-12-30T10:12:11.000Z | """Procesadores de plantillas"""
from django.urls import translate_url
from django.conf import settings
def redirect_path_context_processor(request):
"""Procesador para generar el redirect_to para la localización en el selector de idiomas"""
return {'language_select_redirect_to': translate_url(request.path, s... | 38.222222 | 95 | 0.805233 | 46 | 344 | 5.804348 | 0.673913 | 0.074906 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116279 | 344 | 8 | 96 | 43 | 0.878289 | 0.325581 | 0 | 0 | 0 | 0 | 0.122172 | 0.122172 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
1fdcb3f6b92e1a88428109847218c322ee7a829a | 372 | py | Python | analysis/semantic/input-generation/generators/ReScue/test/scripts/extractor/Java.py | SBULeeLab/LinguaFranca-FSE19 | a75bd51713d14aa9b48c32e103a3da500854f518 | [
"MIT"
] | 2 | 2021-08-03T12:15:39.000Z | 2021-09-27T22:03:36.000Z | analysis/performance/vuln-regex-detector/src/detect/src/detectors/shen-ReScue/test/scripts/extractor/Java.py | SBULeeLab/LinguaFranca-FSE19 | a75bd51713d14aa9b48c32e103a3da500854f518 | [
"MIT"
] | null | null | null | analysis/performance/vuln-regex-detector/src/detect/src/detectors/shen-ReScue/test/scripts/extractor/Java.py | SBULeeLab/LinguaFranca-FSE19 | a75bd51713d14aa9b48c32e103a3da500854f518 | [
"MIT"
] | 2 | 2020-10-15T16:48:20.000Z | 2020-12-30T12:57:45.000Z | # -*- coding: utf-8 -*-
import sys
from scripts.utils.extractutils import *
def searchFile(dir):
regs = getRegFromProject(dir, 'grep -P "(Pattern\.compile|\.replace)\(\\\".*?[^\\\\\\\\]\\\"" -rno --include \\*.java', r'(.*\.java):(\d+):(Pattern\.compile|\.replace)\s*\(\s*\"(.*?)\"$', raw_group = 4, lang = 'java')... | 33.818182 | 221 | 0.577957 | 43 | 372 | 4.976744 | 0.767442 | 0.130841 | 0.196262 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009119 | 0.115591 | 372 | 10 | 222 | 37.2 | 0.641337 | 0.13172 | 0 | 0 | 0 | 0 | 0.478125 | 0.365625 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
1fe06cdd4dc7b9651b09eedb0c256d290c22829e | 658 | py | Python | MachineLearning/TensorFlow/test.py | YangXiaoo/NoteBook | 37056acad7a05b876832f72ac34d3d1a41e0dd22 | [
"CNRI-Python",
"RSA-MD",
"CECILL-B"
] | 58 | 2019-03-03T04:42:23.000Z | 2022-01-13T04:36:31.000Z | MachineLearning/TensorFlow/test.py | YangXiaoo/NoteBook | 37056acad7a05b876832f72ac34d3d1a41e0dd22 | [
"CNRI-Python",
"RSA-MD",
"CECILL-B"
] | null | null | null | MachineLearning/TensorFlow/test.py | YangXiaoo/NoteBook | 37056acad7a05b876832f72ac34d3d1a41e0dd22 | [
"CNRI-Python",
"RSA-MD",
"CECILL-B"
] | 28 | 2019-08-11T01:25:00.000Z | 2021-08-22T06:46:06.000Z | # coding:UTF-8
import numpy as np
# d_2 = {'9244.png': '108', '3293.png': '108', '6532.png': '108', '2661.png': '108', '9715.png': '108', '3310.png': '108', '7264.png': '108', '9406.png': '108', '5155.png': '108', '5521.png': '108'}
# d_1 = {'6777.png': '92', '7049.png': '92', '9510.png': '92', '15189.png': '92', '880... | 27.416667 | 198 | 0.553191 | 115 | 658 | 3.130435 | 0.452174 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.23227 | 0.142857 | 658 | 24 | 199 | 27.416667 | 0.406028 | 0.775076 | 0 | 0 | 0 | 0 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0.4 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
1febd2f9b1592a2a62ff738f68b0e8e8c874e030 | 3,758 | py | Python | rotation_analysis/analysis/event_detection/events_collection.py | Sepidak/spikeGUI | 25ae60160308c0a34e7180f3e39a1c4dc6aad708 | [
"MIT"
] | null | null | null | rotation_analysis/analysis/event_detection/events_collection.py | Sepidak/spikeGUI | 25ae60160308c0a34e7180f3e39a1c4dc6aad708 | [
"MIT"
] | 3 | 2021-08-09T21:51:41.000Z | 2021-08-09T21:51:45.000Z | rotation_analysis/analysis/event_detection/events_collection.py | Sepidak/spikeGUI | 25ae60160308c0a34e7180f3e39a1c4dc6aad708 | [
"MIT"
] | 3 | 2021-10-16T14:07:59.000Z | 2021-10-16T17:09:03.000Z | import operator
import warnings
import numpy as np
import pandas as pd
class EventsCollection(object):
def __init__(self, events):
self.events = events
def __len__(self):
return len(self.events)
def __getitem__(self, item):
return self.events[item]
def __su... | 32.964912 | 90 | 0.601916 | 484 | 3,758 | 4.483471 | 0.21281 | 0.029493 | 0.04424 | 0.073733 | 0.305069 | 0.294931 | 0.227189 | 0.153456 | 0.153456 | 0.137327 | 0 | 0.009996 | 0.307877 | 3,758 | 114 | 91 | 32.964912 | 0.824298 | 0.010112 | 0 | 0.078652 | 0 | 0 | 0.022191 | 0 | 0 | 0 | 0 | 0.008772 | 0 | 1 | 0.235955 | false | 0 | 0.044944 | 0.134831 | 0.52809 | 0.011236 | 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 |
1ff14ebe8a6f41b14f4b103eec4f94eea2f583a3 | 275 | py | Python | apps/flasksample/flasksample/utils.py | Nebulaworks/orion | 7819e80b12b555322433373ddb5075173fa60f22 | [
"BSD-3-Clause"
] | 3 | 2021-07-27T20:07:55.000Z | 2021-12-03T18:24:15.000Z | apps/flasksample/flasksample/utils.py | Nebulaworks/orion | 7819e80b12b555322433373ddb5075173fa60f22 | [
"BSD-3-Clause"
] | 3 | 2021-06-25T16:54:20.000Z | 2021-12-07T19:20:43.000Z | apps/flasksample/flasksample/utils.py | Nebulaworks/orion | 7819e80b12b555322433373ddb5075173fa60f22 | [
"BSD-3-Clause"
] | null | null | null | import socket
def gethostname():
return socket.gethostname()
def getlocaladdress():
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
# Doesnt matter what we try to connect to but just that we try
s.connect(("8.8.8.8", 80))
return s.getsockname()[0]
| 25 | 66 | 0.690909 | 42 | 275 | 4.47619 | 0.595238 | 0.031915 | 0.031915 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03139 | 0.189091 | 275 | 10 | 67 | 27.5 | 0.811659 | 0.218182 | 0 | 0 | 0 | 0 | 0.032864 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0.142857 | 0.714286 | 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 |
9502b4786e7c4a8766c9b7ccb1b6274c8d3f71ce | 2,148 | py | Python | model/sql/user.py | wongxinjie/bitly | bf7a891414b75a2a95f6711ff4166bd01834bbfe | [
"MIT"
] | null | null | null | model/sql/user.py | wongxinjie/bitly | bf7a891414b75a2a95f6711ff4166bd01834bbfe | [
"MIT"
] | 1 | 2021-06-02T00:20:10.000Z | 2021-06-02T00:20:10.000Z | model/sql/user.py | wongxinjie/bitly | bf7a891414b75a2a95f6711ff4166bd01834bbfe | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
""""
user.py
~~~~~~~~~~~~~~~~~~~~
:author: wongxinjie
:date created: 2019-08-13 00:28
"""
from datetime import datetime
from flask_login import UserMixin
from werkzeug.security import generate_password_hash, check_password_hash
from service.ext import ... | 25.571429 | 73 | 0.632682 | 262 | 2,148 | 4.927481 | 0.374046 | 0.049574 | 0.061967 | 0.049574 | 0.09605 | 0.066615 | 0.066615 | 0.066615 | 0 | 0 | 0 | 0.014742 | 0.242086 | 2,148 | 83 | 74 | 25.879518 | 0.778256 | 0.059125 | 0 | 0.037037 | 0 | 0 | 0.057673 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.203704 | false | 0.166667 | 0.074074 | 0.148148 | 0.648148 | 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 |
95264597dc3291e340fbbb3ba0aeef741b8e9df7 | 4,515 | py | Python | onto/database/__init__.py | billyrrr/onto | 72733d36a2583ae4758f7cf33a5229b79773702b | [
"MIT"
] | 1 | 2020-10-04T10:01:45.000Z | 2020-10-04T10:01:45.000Z | onto/database/__init__.py | billyrrr/onto | 72733d36a2583ae4758f7cf33a5229b79773702b | [
"MIT"
] | null | null | null | onto/database/__init__.py | billyrrr/onto | 72733d36a2583ae4758f7cf33a5229b79773702b | [
"MIT"
] | null | null | null | import collections
import abc
from onto.common import _NA
import abc
from enum import Enum, auto
class ConditionArg(Enum):
"""
Do not declare attributes here
"""
pass
class Reference(collections.UserString):
"""
example: '/myusername/'
"""
def __init__(self, _s='', *, _is_empty=Tr... | 22.132353 | 73 | 0.609745 | 498 | 4,515 | 5.263052 | 0.277108 | 0.032049 | 0.042732 | 0.082793 | 0.255246 | 0.208317 | 0.208317 | 0.208317 | 0.208317 | 0.17665 | 0 | 0.000627 | 0.293466 | 4,515 | 203 | 74 | 22.241379 | 0.821003 | 0.108749 | 0 | 0.31746 | 0 | 0 | 0.043106 | 0 | 0 | 0 | 0 | 0.024631 | 0 | 1 | 0.238095 | false | 0.02381 | 0.055556 | 0.095238 | 0.52381 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
1f1aa351efb406abbad875ae8c4a7baffd342d4c | 153 | py | Python | Python Files/15b.py | kaskrex/pythonexercises | 2afff8495529f9b1fc1d3f40c03d41227c1f253f | [
"MIT"
] | 1 | 2021-08-10T05:40:35.000Z | 2021-08-10T05:40:35.000Z | Python Files/15b.py | kaskrex/pythonexercises | 2afff8495529f9b1fc1d3f40c03d41227c1f253f | [
"MIT"
] | null | null | null | Python Files/15b.py | kaskrex/pythonexercises | 2afff8495529f9b1fc1d3f40c03d41227c1f253f | [
"MIT"
] | null | null | null | a = [1, 2, 3, 4, 5]
print(a[0] + 1)
#length of list
x = len(a)
print(x)
print(a[-1])
#splicing
print(a[0:3])
print(a[0:])
b = "test"
print(b[0:1])
| 9 | 19 | 0.522876 | 35 | 153 | 2.285714 | 0.457143 | 0.3 | 0.2625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106557 | 0.202614 | 153 | 16 | 20 | 9.5625 | 0.54918 | 0.143791 | 0 | 0 | 0 | 0 | 0.03125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.666667 | 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 |
1f7637f65679e12b6cd4c5344ba70d8b47658dde | 95 | py | Python | examples/normal.py | w4ne/iDork | 0ee4b635e019c5f272159e013d5b3161024cbed3 | [
"MIT"
] | null | null | null | examples/normal.py | w4ne/iDork | 0ee4b635e019c5f272159e013d5b3161024cbed3 | [
"MIT"
] | null | null | null | examples/normal.py | w4ne/iDork | 0ee4b635e019c5f272159e013d5b3161024cbed3 | [
"MIT"
] | null | null | null | from idork import Google
dork = Google(proxy_url=None)
dork.search("How to cook", results=10)
| 19 | 38 | 0.757895 | 16 | 95 | 4.4375 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024096 | 0.126316 | 95 | 4 | 39 | 23.75 | 0.831325 | 0 | 0 | 0 | 0 | 0 | 0.115789 | 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 |
1f77eb42bb281c59c1d6ab7466649745aad0f247 | 206 | py | Python | output/models/sun_data/elem_decl/value_constraint/value_constraint00501m/value_constraint00501m1_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 1 | 2021-08-14T17:59:21.000Z | 2021-08-14T17:59:21.000Z | output/models/sun_data/elem_decl/value_constraint/value_constraint00501m/value_constraint00501m1_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 4 | 2020-02-12T21:30:44.000Z | 2020-04-15T20:06:46.000Z | output/models/sun_data/elem_decl/value_constraint/value_constraint00501m/value_constraint00501m1_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from output.models.sun_data.elem_decl.value_constraint.value_constraint00501m.value_constraint00501m1_xsd.value_constraint00501m1 import (
Element,
Root,
)
__all__ = [
"Element",
"Root",
]
| 20.6 | 138 | 0.757282 | 22 | 206 | 6.590909 | 0.727273 | 0.303448 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096591 | 0.145631 | 206 | 9 | 139 | 22.888889 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0.053398 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 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 |
1f7f514c14e8672a6411463763fb24d481eafe73 | 138 | py | Python | tests/test.py | lightarhont/django-redirects | b64fb0ea055f30094051863ef0fd3f4387e2b7b4 | [
"MIT"
] | 28 | 2020-09-08T00:12:39.000Z | 2022-03-17T20:35:57.000Z | tests/test.py | lightarhont/django-redirects | b64fb0ea055f30094051863ef0fd3f4387e2b7b4 | [
"MIT"
] | 5 | 2020-11-05T04:31:14.000Z | 2021-12-24T12:54:38.000Z | tests/test.py | lightarhont/django-redirects | b64fb0ea055f30094051863ef0fd3f4387e2b7b4 | [
"MIT"
] | 3 | 2020-11-23T20:53:34.000Z | 2022-03-10T08:19:08.000Z | # -*- coding: utf-8 -*-
import unittest
class test_case(unittest.TestCase):
def test(self):
print('tested!')
pass
| 12.545455 | 35 | 0.57971 | 16 | 138 | 4.9375 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009901 | 0.268116 | 138 | 10 | 36 | 13.8 | 0.772277 | 0.152174 | 0 | 0 | 0 | 0 | 0.06087 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.2 | 0.2 | 0 | 0.6 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
2f159ed78c9f1e576b87889fcfab981a8683ea0c | 284 | py | Python | aquaticore/articles/urls.py | rockerBOO/aquaticore | d50be480d14f6d858610181eee15c3cc8d9544bb | [
"MIT"
] | null | null | null | aquaticore/articles/urls.py | rockerBOO/aquaticore | d50be480d14f6d858610181eee15c3cc8d9544bb | [
"MIT"
] | null | null | null | aquaticore/articles/urls.py | rockerBOO/aquaticore | d50be480d14f6d858610181eee15c3cc8d9544bb | [
"MIT"
] | null | null | null | from django.conf.urls.defaults import *
urlpatterns = patterns('aquaticore.articles.views',
(r'^$', 'index'),
(r'^(?P<article_id>\d+)/$', 'detail'),
(r'^new/$', 'new'),
(r'^(?P<article_id>\d+)/delete/$', 'delete'),
)
| 31.555556 | 51 | 0.461268 | 29 | 284 | 4.448276 | 0.689655 | 0.031008 | 0.139535 | 0.170543 | 0.186047 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.292254 | 284 | 8 | 52 | 35.5 | 0.641791 | 0 | 0 | 0 | 0 | 0 | 0.366197 | 0.267606 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 1 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2f3887b5b64c63c0b66669e0c36ce2b001e8cdff | 423 | py | Python | TkPy3/tkpy3_tools/events.py | chenmy1903/TkPy3 | 9130f9ddb8ae22f7659064230242f1985e77ddbb | [
"MIT"
] | 4 | 2020-06-27T08:10:14.000Z | 2020-06-28T02:34:11.000Z | TkPy3/tkpy3_tools/events.py | chenmy1903/TkPy3 | 9130f9ddb8ae22f7659064230242f1985e77ddbb | [
"MIT"
] | null | null | null | TkPy3/tkpy3_tools/events.py | chenmy1903/TkPy3 | 9130f9ddb8ae22f7659064230242f1985e77ddbb | [
"MIT"
] | null | null | null | # -*- coding: UTF-8 -*-
from TkPy3.default_configs import get_configs
class TkPyEventType(object):
name: str
def __init__(self, name: str = None):
self.name = name
def text(self):
return self.name or 'TkPy3 Event type'
def __repr__(self):
return 'TkPy3 PyQt5 Event types.'
... | 20.142857 | 48 | 0.652482 | 57 | 423 | 4.578947 | 0.473684 | 0.08046 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01548 | 0.236407 | 423 | 20 | 49 | 21.15 | 0.79257 | 0.1513 | 0 | 0 | 0 | 0 | 0.11236 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | false | 0 | 0.090909 | 0.272727 | 0.909091 | 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 |
2f71d670472f5154225d4b62fda5cdb7627d6b17 | 908 | py | Python | sft/__init__.py | placiflury/gridmonitor-sft | f2a3e4295728b71965838fb59360c63e3d485f5e | [
"BSD-3-Clause"
] | null | null | null | sft/__init__.py | placiflury/gridmonitor-sft | f2a3e4295728b71965838fb59360c63e3d485f5e | [
"BSD-3-Clause"
] | null | null | null | sft/__init__.py | placiflury/gridmonitor-sft | f2a3e4295728b71965838fb59360c63e3d485f5e | [
"BSD-3-Clause"
] | null | null | null | import configuration
import nagios_notifier
import proxyutil
import sft_globals
def init_configuration(config_file):
"""
config_file -- configuration file of SFT module.
raises ConfigError in case of problems.
"""
sft_globals.config = configuration.Config(config_file)
def init_nagios_... | 26.705882 | 73 | 0.709251 | 101 | 908 | 6.217822 | 0.475248 | 0.089172 | 0.063694 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.229075 | 908 | 33 | 74 | 27.515152 | 0.897143 | 0.460352 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.4 | 0 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
2f9394f206f245bd6e08a838c41a8e6a08c2adad | 385 | py | Python | instagram_api/response/model/image_versions2.py | Yuego/instagram_api | b53f72db36c505a2eb24ebac1ba8267a0cc295bb | [
"MIT"
] | 13 | 2019-08-07T21:24:34.000Z | 2020-12-12T12:23:50.000Z | instagram_api/response/model/image_versions2.py | Yuego/instagram_api | b53f72db36c505a2eb24ebac1ba8267a0cc295bb | [
"MIT"
] | null | null | null | instagram_api/response/model/image_versions2.py | Yuego/instagram_api | b53f72db36c505a2eb24ebac1ba8267a0cc295bb | [
"MIT"
] | null | null | null | from ..mapper import PropertyMapper, ApiInterfaceBase
from ..mapper.types import Timestamp, AnyType
from .image_candidate import ImageCandidate
__all__ = ['ImageVersions2', 'ImageVersions2Interface']
class ImageVersions2Interface(ApiInterfaceBase):
candidates: [ImageCandidate]
trace_token: AnyType
class I... | 24.0625 | 62 | 0.81039 | 32 | 385 | 9.5625 | 0.59375 | 0.065359 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014749 | 0.119481 | 385 | 15 | 63 | 25.666667 | 0.887906 | 0 | 0 | 0 | 0 | 0 | 0.096104 | 0.05974 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.111111 | 0.333333 | 0 | 0.777778 | 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 |
c8066edd9640de277feee0f7914f80eb468a9219 | 149 | py | Python | permutations.py | bjoffficial/Python | 73e6fdc19a1bec18488405c4a60c30ba68581ce5 | [
"Apache-2.0"
] | null | null | null | permutations.py | bjoffficial/Python | 73e6fdc19a1bec18488405c4a60c30ba68581ce5 | [
"Apache-2.0"
] | null | null | null | permutations.py | bjoffficial/Python | 73e6fdc19a1bec18488405c4a60c30ba68581ce5 | [
"Apache-2.0"
] | null | null | null | from itertools import permutations
n=list(input("Enter the list to purmutate").split(","))
per=permutations(n)
for i in list(per):
print(i)
| 24.833333 | 56 | 0.697987 | 23 | 149 | 4.521739 | 0.73913 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161074 | 149 | 5 | 57 | 29.8 | 0.832 | 0 | 0 | 0 | 0 | 0 | 0.194444 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.2 | 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 |
c82285a3f0dfd755ce58c99d6de399ecf58f5b89 | 446 | py | Python | gdsfactory/simulation/lumerical/__init__.py | jorgepadilla19/gdsfactory | 68e1c18257a75d4418279851baea417c8899a165 | [
"MIT"
] | null | null | null | gdsfactory/simulation/lumerical/__init__.py | jorgepadilla19/gdsfactory | 68e1c18257a75d4418279851baea417c8899a165 | [
"MIT"
] | null | null | null | gdsfactory/simulation/lumerical/__init__.py | jorgepadilla19/gdsfactory | 68e1c18257a75d4418279851baea417c8899a165 | [
"MIT"
] | null | null | null | from gdsfactory.simulation.lumerical.read import read_sparameters_lumerical
from gdsfactory.simulation.lumerical.write_sparameters_lumerical import (
write_sparameters_lumerical,
)
from gdsfactory.simulation.lumerical.write_sparameters_lumerical_components import (
write_sparameters_lumerical_components,
)
__a... | 31.857143 | 84 | 0.840807 | 44 | 446 | 8 | 0.227273 | 0.454545 | 0.426136 | 0.386364 | 0.698864 | 0.443182 | 0.443182 | 0.443182 | 0.443182 | 0 | 0 | 0 | 0.098655 | 446 | 13 | 85 | 34.307692 | 0.875622 | 0 | 0 | 0 | 0 | 0 | 0.204036 | 0.204036 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 |
c84e5e201f185710d0b77c4885928440830f49ae | 568 | py | Python | categoria/forms.py | polo1542/integradora-Backend | b3d0ae1b68b70b273e847504d18597ea6b64ebee | [
"Apache-2.0"
] | null | null | null | categoria/forms.py | polo1542/integradora-Backend | b3d0ae1b68b70b273e847504d18597ea6b64ebee | [
"Apache-2.0"
] | null | null | null | categoria/forms.py | polo1542/integradora-Backend | b3d0ae1b68b70b273e847504d18597ea6b64ebee | [
"Apache-2.0"
] | null | null | null | from flask_wtf import FlaskForm
from wtforms import StringField, TextAreaField, SubmitField, DateTimeField
from wtforms.validators import DataRequired
class CreateCategoriaForm(FlaskForm):
nombre = StringField(' Categoria:', validators=[DataRequired()])
icono = StringField('Icono: ', validators=[DataRequired()])... | 37.866667 | 74 | 0.758803 | 49 | 568 | 8.77551 | 0.428571 | 0.204651 | 0.12093 | 0.162791 | 0.544186 | 0.544186 | 0.544186 | 0.544186 | 0.544186 | 0.544186 | 0 | 0 | 0.121479 | 568 | 14 | 75 | 40.571429 | 0.861723 | 0 | 0 | 0.363636 | 0 | 0 | 0.093474 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.272727 | 0 | 1 | 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 | 0 | 0 | 1 | 0 | 0 | 3 |
c851913d881568ffaec46674e2a9e8b49c91327f | 67 | py | Python | activedirectory/version.py | movermeyer/activedirectory | cd491511e2ed667c3b4634a682ea012c6cbedb38 | [
"Apache-2.0"
] | 16 | 2015-07-31T10:36:00.000Z | 2022-03-06T06:42:04.000Z | activedirectory/version.py | movermeyer/activedirectory | cd491511e2ed667c3b4634a682ea012c6cbedb38 | [
"Apache-2.0"
] | 6 | 2015-02-25T09:47:01.000Z | 2018-02-09T05:06:04.000Z | activedirectory/version.py | movermeyer/activedirectory | cd491511e2ed667c3b4634a682ea012c6cbedb38 | [
"Apache-2.0"
] | 20 | 2015-02-25T09:35:37.000Z | 2021-07-21T09:06:34.000Z | #!/usr/bin/env python
__version__ = "0.14"
__date__ = "2015-03-04"
| 16.75 | 23 | 0.671642 | 11 | 67 | 3.363636 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.186441 | 0.119403 | 67 | 3 | 24 | 22.333333 | 0.440678 | 0.298507 | 0 | 0 | 0 | 0 | 0.304348 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c07236c09359e97fd05f5a2038b644ea2be9859b | 247 | py | Python | google/cloud/pubsublite/internal/fast_serialize.py | LaudateCorpus1/python-pubsublite | f0d65ca7b1efec9eae2dda1481c4bfe978eaa2dd | [
"Apache-2.0"
] | 15 | 2020-11-10T15:36:52.000Z | 2022-03-06T15:00:25.000Z | google/cloud/pubsublite/internal/fast_serialize.py | LaudateCorpus1/python-pubsublite | f0d65ca7b1efec9eae2dda1481c4bfe978eaa2dd | [
"Apache-2.0"
] | 110 | 2020-11-11T18:14:31.000Z | 2022-03-30T22:42:17.000Z | google/cloud/pubsublite/internal/fast_serialize.py | LaudateCorpus1/python-pubsublite | f0d65ca7b1efec9eae2dda1481c4bfe978eaa2dd | [
"Apache-2.0"
] | 6 | 2020-11-13T19:24:27.000Z | 2022-01-29T08:13:14.000Z | """
A fast serialization method for lists of integers.
"""
from typing import List
def dump(data: List[int]) -> str:
return ",".join(str(x) for x in data)
def load(source: str) -> List[int]:
return [int(x) for x in source.split(",")]
| 17.642857 | 50 | 0.635628 | 40 | 247 | 3.925 | 0.6 | 0.089172 | 0.063694 | 0.089172 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.198381 | 247 | 13 | 51 | 19 | 0.792929 | 0.202429 | 0 | 0 | 0 | 0 | 0.010582 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0.2 | 0.4 | 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 |
c07fd2af0e80ef5b049149c836001ce3f66e78c4 | 7,805 | py | Python | twilio/rest/insights/v1/setting.py | BrimmingDev/twilio-python | 3226b5fed92b3c2ce64f03e6b19fc4792ef7647f | [
"MIT"
] | 1 | 2022-03-03T05:24:20.000Z | 2022-03-03T05:24:20.000Z | twilio/rest/insights/v1/setting.py | BrimmingDev/twilio-python | 3226b5fed92b3c2ce64f03e6b19fc4792ef7647f | [
"MIT"
] | 1 | 2022-03-12T06:00:21.000Z | 2022-03-12T07:07:55.000Z | env/lib/python3.9/site-packages/twilio/rest/insights/v1/setting.py | giannicrivello/AudioShack_BE | b50ba91b6904ac069fc37c98a691729932297b6a | [
"MIT"
] | null | null | null | # coding=utf-8
r"""
This code was generated by
\ / _ _ _| _ _
| (_)\/(_)(_|\/| |(/_ v1.0.0
/ /
"""
from twilio.base import values
from twilio.base.instance_context import InstanceContext
from twilio.base.instance_resource import InstanceResource
from twilio.base.list_resource import ListResource
f... | 29.01487 | 84 | 0.628443 | 775 | 7,805 | 6.140645 | 0.143226 | 0.048329 | 0.071864 | 0.079849 | 0.647195 | 0.610632 | 0.556419 | 0.517336 | 0.507039 | 0.507039 | 0 | 0.004753 | 0.272133 | 7,805 | 268 | 85 | 29.123134 | 0.832952 | 0.397309 | 0 | 0.317647 | 1 | 0 | 0.092143 | 0.034717 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.058824 | 0 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
c08dbd7b0c31739c17b8d1ef9db468ff232f8082 | 560 | py | Python | src/senior_common_room/models/user.py | scmmmh/senior-common-room | 222d50ec7808ea36d9d3132759ef13ef6fab07dd | [
"MIT"
] | null | null | null | src/senior_common_room/models/user.py | scmmmh/senior-common-room | 222d50ec7808ea36d9d3132759ef13ef6fab07dd | [
"MIT"
] | 14 | 2021-09-13T09:15:08.000Z | 2021-09-13T20:23:03.000Z | src/senior_common_room/models/user.py | scmmmh/senior-common-room | 222d50ec7808ea36d9d3132759ef13ef6fab07dd | [
"MIT"
] | null | null | null | from sqlalchemy import (Column, Integer, String)
from sqlalchemy_json import NestedMutableJson
from .meta import Base
class User(Base):
__tablename__ = 'users'
id = Column(Integer, primary_key=True)
email = Column(String(length=255), unique=True)
name = Column(String(length=255))
token = Column... | 28 | 52 | 0.721429 | 67 | 560 | 5.925373 | 0.432836 | 0.18136 | 0.27204 | 0.31738 | 0.156171 | 0.156171 | 0 | 0 | 0 | 0 | 0 | 0.038627 | 0.167857 | 560 | 19 | 53 | 29.473684 | 0.813305 | 0 | 0 | 0 | 0 | 0 | 0.008929 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.214286 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
c090620b00298da421cb7fe7db724f41563d70f8 | 196 | py | Python | sample_urls.py | AlexandrPaveluc/django_controller | fe985a4f6f2265b9109983f8bc3f9890b12d9a4a | [
"Apache-2.0"
] | 1 | 2017-04-11T11:25:01.000Z | 2017-04-11T11:25:01.000Z | sample_urls.py | AlexandrPaveluc/django_controller | fe985a4f6f2265b9109983f8bc3f9890b12d9a4a | [
"Apache-2.0"
] | null | null | null | sample_urls.py | AlexandrPaveluc/django_controller | fe985a4f6f2265b9109983f8bc3f9890b12d9a4a | [
"Apache-2.0"
] | null | null | null | from django.conf.urls import url, patterns, include
from sample_controller import SampleController
urlpatterns = patterns(
'',
url(r'^function/', include(SampleController.getUrls())),
)
| 21.777778 | 60 | 0.744898 | 21 | 196 | 6.904762 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137755 | 196 | 8 | 61 | 24.5 | 0.857988 | 0 | 0 | 0 | 0 | 0 | 0.05102 | 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 |
c09289f9fd85d406bdfbf7f6b8ce60e8df6bf592 | 72 | py | Python | main/vamp-plugin-sdk/update.py | RoastVeg/cports | 803c7f07af341eb32f791b6ec1f237edb2764bd5 | [
"BSD-2-Clause"
] | null | null | null | main/vamp-plugin-sdk/update.py | RoastVeg/cports | 803c7f07af341eb32f791b6ec1f237edb2764bd5 | [
"BSD-2-Clause"
] | null | null | null | main/vamp-plugin-sdk/update.py | RoastVeg/cports | 803c7f07af341eb32f791b6ec1f237edb2764bd5 | [
"BSD-2-Clause"
] | null | null | null | url = "https://code.soundsoftware.ac.uk/projects/vamp-plugin-sdk/files"
| 36 | 71 | 0.763889 | 11 | 72 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041667 | 72 | 1 | 72 | 72 | 0.797101 | 0 | 0 | 0 | 0 | 0 | 0.875 | 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 |
c0a5fcd7efecc5fe5d7435be90709ec5c788f959 | 1,085 | py | Python | deepnodal/python/concepts/mapping.py | Bhumbra/DeepNodal | 33afb2efa5e78ae6558ce60a36bb87c186c1f448 | [
"BSD-3-Clause"
] | 1 | 2019-01-06T09:49:42.000Z | 2019-01-06T09:49:42.000Z | deepnodal/python/concepts/mapping.py | Bhumbra/DeepNodal | 33afb2efa5e78ae6558ce60a36bb87c186c1f448 | [
"BSD-3-Clause"
] | 3 | 2020-10-14T14:43:33.000Z | 2022-02-09T23:46:40.000Z | deepnodal/python/concepts/mapping.py | Bhumbra/DeepNodal | 33afb2efa5e78ae6558ce60a36bb87c186c1f448 | [
"BSD-3-Clause"
] | null | null | null | # Mapping class (i.e. an OrderedDict with one {key:value})
# Gary Bhumbra
#-------------------------------------------------------------------------------
from collections import OrderedDict
#-------------------------------------------------------------------------------
#--------------------------------------------... | 36.166667 | 80 | 0.530876 | 102 | 1,085 | 5.509804 | 0.666667 | 0.046263 | 0.042705 | 0.05694 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.124424 | 1,085 | 29 | 81 | 37.413793 | 0.591579 | 0.817512 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
c0aefaca4be086313f57533f56ba3c1e1be4bd5f | 1,381 | py | Python | core/models.py | gurusabarish/cowin-notifier | f0a90af269969affde32e36dc0b6c88b1973690f | [
"MIT"
] | null | null | null | core/models.py | gurusabarish/cowin-notifier | f0a90af269969affde32e36dc0b6c88b1973690f | [
"MIT"
] | 12 | 2021-07-06T16:16:14.000Z | 2021-08-10T05:56:47.000Z | core/models.py | gurusabarish/cowin-notifier | f0a90af269969affde32e36dc0b6c88b1973690f | [
"MIT"
] | null | null | null | from django.db import models
class States(models.Model):
name = models.CharField(max_length=100)
api_id = models.IntegerField(unique=True)
class Districts(models.Model):
state = models.ForeignKey(States, on_delete=models.CASCADE)
name = models.CharField(max_length=100)
api_id = models... | 32.880952 | 72 | 0.717596 | 171 | 1,381 | 5.625731 | 0.269006 | 0.224532 | 0.168399 | 0.224532 | 0.392931 | 0.2079 | 0.143451 | 0.143451 | 0.143451 | 0.143451 | 0 | 0.028144 | 0.176684 | 1,381 | 41 | 73 | 33.682927 | 0.817942 | 0 | 0 | 0.129032 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.032258 | 0 | 1 | 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 | 0 | 0 | 1 | 0 | 0 | 3 |
c0d5a2e93c3d92eb155a6707a9302dc1246ca901 | 553 | py | Python | common/svc/helper.py | magedu/mcm | 149c670bb96cc1f70977952b30c2667a480ae81b | [
"Apache-2.0"
] | 1 | 2020-09-27T06:54:05.000Z | 2020-09-27T06:54:05.000Z | common/svc/helper.py | magedu/mcm | 149c670bb96cc1f70977952b30c2667a480ae81b | [
"Apache-2.0"
] | null | null | null | common/svc/helper.py | magedu/mcm | 149c670bb96cc1f70977952b30c2667a480ae81b | [
"Apache-2.0"
] | null | null | null | class Pagination:
def __init__(self, offset, limit):
self._offset = offset
self._limit = limit
def clean_offset(self):
return self._offset >= 0
def clean_limit(self):
return self._limit > 0
def clean(self):
return self.clean_offset() and self.clean_limit()
... | 19.75 | 57 | 0.605787 | 67 | 553 | 4.731343 | 0.223881 | 0.157729 | 0.22082 | 0.126183 | 0.315457 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005181 | 0.301989 | 553 | 27 | 58 | 20.481481 | 0.816062 | 0 | 0 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.35 | false | 0 | 0 | 0.25 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
c0d649d422c8b99ce69e316ebc0b4c359184dd45 | 179 | py | Python | torchreid/version.py | opencv/deep-person-reid | ccc305614e968d4b64cc7d4b6664eb42267e6250 | [
"MIT"
] | 1 | 2020-07-07T19:22:17.000Z | 2020-07-07T19:22:17.000Z | torchreid/version.py | opencv/deep-person-reid | ccc305614e968d4b64cc7d4b6664eb42267e6250 | [
"MIT"
] | 1 | 2020-06-04T15:22:09.000Z | 2020-06-04T15:22:09.000Z | torchreid/version.py | opencv/deep-person-reid | ccc305614e968d4b64cc7d4b6664eb42267e6250 | [
"MIT"
] | 4 | 2020-07-02T09:23:11.000Z | 2020-08-21T08:24:13.000Z | # Copyright (c) 2018-2021 Kaiyang Zhou
# SPDX-License-Identifier: MIT
#
# Copyright (C) 2020-2021 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#
__version__ = '1.2.3'
| 19.888889 | 43 | 0.726257 | 26 | 179 | 4.846154 | 0.730769 | 0.15873 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135484 | 0.134078 | 179 | 8 | 44 | 22.375 | 0.677419 | 0.798883 | 0 | 0 | 0 | 0 | 0.172414 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
c0dc6adfdf7863d3426f3c8f0890ddf77ccef1a5 | 28 | py | Python | mi/dataset/driver/ctdav_nbosi/auv/__init__.py | cdobs/mi-instrument | 99f9322a4afabc5dff9b0fad12166075efce838c | [
"BSD-2-Clause"
] | 1 | 2018-09-14T23:28:29.000Z | 2018-09-14T23:28:29.000Z | mi/dataset/driver/ctdav_nbosi/auv/__init__.py | cdobs/mi-instrument | 99f9322a4afabc5dff9b0fad12166075efce838c | [
"BSD-2-Clause"
] | 33 | 2017-04-25T19:53:45.000Z | 2022-03-18T17:42:18.000Z | mi/dataset/driver/ctdav_nbosi/auv/__init__.py | cdobs/mi-instrument | 99f9322a4afabc5dff9b0fad12166075efce838c | [
"BSD-2-Clause"
] | 31 | 2015-03-04T01:01:09.000Z | 2020-10-28T14:42:12.000Z | __author__ = 'Rene Gelinas'
| 14 | 27 | 0.75 | 3 | 28 | 5.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 28 | 1 | 28 | 28 | 0.708333 | 0 | 0 | 0 | 0 | 0 | 0.428571 | 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 |
c0f2191a05c5930d39fc2b9f6d30c8baa62ff6bc | 1,305 | py | Python | stencils/diffterm/kernel2.py | pengdada/vecscatter-artifact | 56b15dc984eb990d095c35b51608a3e8cd7019e5 | [
"MIT"
] | null | null | null | stencils/diffterm/kernel2.py | pengdada/vecscatter-artifact | 56b15dc984eb990d095c35b51608a3e8cd7019e5 | [
"MIT"
] | null | null | null | stencils/diffterm/kernel2.py | pengdada/vecscatter-artifact | 56b15dc984eb990d095c35b51608a3e8cd7019e5 | [
"MIT"
] | null | null | null | from st.expr import Index, ConstRef
from st.grid import Grid
from kernel import *
uxx = (-2.847 * q_1(i,j,k) + 1.6 * (q_1(i + 1, j, k) + q_1(i - 1, j, k)) + -0.2 * (q_1(i + 2, j, k) + q_1(i - 2, j, k)) + 0.0253 * (q_1(i + 3, j, k) + q_1(i - 3, j, k)) + -0.0017 * (q_1(i + 4, j, k) + q_1(i - 4, j, k))) * (dxinv0 * dxinv... | 93.214286 | 239 | 0.422989 | 330 | 1,305 | 1.590909 | 0.118182 | 0.137143 | 0.154286 | 0.144762 | 0.664762 | 0.493333 | 0.108571 | 0.08381 | 0.08381 | 0.08381 | 0 | 0.177453 | 0.2659 | 1,305 | 13 | 240 | 100.384615 | 0.370564 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3 | 0 | 0.3 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8d011028969570ec514e86bb829b55f49d2bc672 | 182 | py | Python | 441-Arranging-Coins/solution.py | alfmunny/leetcode | e35d2164c7e6e66410309fe1667ceab5a7689bef | [
"MIT"
] | null | null | null | 441-Arranging-Coins/solution.py | alfmunny/leetcode | e35d2164c7e6e66410309fe1667ceab5a7689bef | [
"MIT"
] | null | null | null | 441-Arranging-Coins/solution.py | alfmunny/leetcode | e35d2164c7e6e66410309fe1667ceab5a7689bef | [
"MIT"
] | null | null | null | class Solution:
def arrangeCoins(self, n: int) -> int:
k = 0
while n > 0:
k += 1
n -= k
return k if not n else k - 1
| 20.222222 | 42 | 0.39011 | 25 | 182 | 2.84 | 0.6 | 0.056338 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045977 | 0.521978 | 182 | 8 | 43 | 22.75 | 0.770115 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.428571 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8d0af30a562632a313fe86b09c87ea1b78ebc070 | 28,541 | py | Python | template_container_human/labels/slice_26.py | lkondratova/Brainplot | 3c8a88c1995dedeaa5cbd88ee71499c7cf9c571d | [
"MIT"
] | null | null | null | template_container_human/labels/slice_26.py | lkondratova/Brainplot | 3c8a88c1995dedeaa5cbd88ee71499c7cf9c571d | [
"MIT"
] | null | null | null | template_container_human/labels/slice_26.py | lkondratova/Brainplot | 3c8a88c1995dedeaa5cbd88ee71499c7cf9c571d | [
"MIT"
] | null | null | null | coordinates_E0E1E1 = ((127, 91),
(127, 93), (128, 92), (128, 94), (128, 142), (129, 93), (129, 95), (129, 134), (129, 135), (129, 141), (129, 142), (130, 94), (130, 133), (130, 136), (130, 140), (130, 142), (131, 95), (131, 102), (131, 133), (131, 135), (131, 138), (131, 139), (131, 142), (132, 96), (132, 98), (132, ... | 419.720588 | 865 | 0.488806 | 4,826 | 28,541 | 2.886241 | 0.023622 | 0.001292 | 0.001292 | 0.001723 | 0.004451 | 0.002585 | 0 | 0 | 0 | 0 | 0 | 0.577499 | 0.173785 | 28,541 | 67 | 866 | 425.985075 | 0.013189 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
238513e60097096f744310bd9d5d3005c834a853 | 7,118 | py | Python | src/util/base_graph.py | andreeaiana/geneg | f2039e3c26608399ca60709895aaed6c745a5dc9 | [
"MIT"
] | 2 | 2021-12-09T16:21:31.000Z | 2021-12-10T10:35:20.000Z | src/util/base_graph.py | andreeaiana/geneg | f2039e3c26608399ca60709895aaed6c745a5dc9 | [
"MIT"
] | null | null | null | src/util/base_graph.py | andreeaiana/geneg | f2039e3c26608399ca60709895aaed6c745a5dc9 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import copy
import networkx as nx
from itertools import chain
from collections import defaultdict
from typing import Set, List, Dict, Tuple, Union
class BaseGraph:
""" A simple directed graph with nodes and edges. """
def __init__(self, graph: nx.MultiDiGraph) -> None:
self.gra... | 37.861702 | 130 | 0.616746 | 1,036 | 7,118 | 4.105212 | 0.140927 | 0.112156 | 0.042793 | 0.033858 | 0.443452 | 0.395015 | 0.317658 | 0.24759 | 0.180108 | 0.100635 | 0 | 0.00339 | 0.254144 | 7,118 | 187 | 131 | 38.064171 | 0.797702 | 0.107615 | 0 | 0.064516 | 0 | 0 | 0.00382 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.322581 | false | 0 | 0.040323 | 0.16129 | 0.58871 | 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 |
2398de2544bc2229f275e1ddc5b337fa7e435f91 | 11 | py | Python | hh/__init__.py | CelebrateYourself/util-hh | f0fb68474edcdcf01e7732b71369344c4df56d8d | [
"MIT"
] | null | null | null | hh/__init__.py | CelebrateYourself/util-hh | f0fb68474edcdcf01e7732b71369344c4df56d8d | [
"MIT"
] | null | null | null | hh/__init__.py | CelebrateYourself/util-hh | f0fb68474edcdcf01e7732b71369344c4df56d8d | [
"MIT"
] | null | null | null | name = 'hh' | 11 | 11 | 0.545455 | 2 | 11 | 3 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 11 | 1 | 11 | 11 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 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 |
23aad42e00eb10faee3ded92c55eb8e7e4e030af | 2,574 | py | Python | backend/app/api/api_v1/core/tools/monitorRedis.py | PY-GZKY/fastapi-crawl-admin | 6535054994d11e3c31b4caeae65e8fa0f495d2b7 | [
"MIT"
] | 13 | 2021-07-25T15:26:04.000Z | 2022-03-02T12:12:02.000Z | backend/app/api/api_v1/core/tools/monitorRedis.py | PY-GZKY/fastapi-crawl-admin | 6535054994d11e3c31b4caeae65e8fa0f495d2b7 | [
"MIT"
] | 1 | 2021-07-26T03:26:09.000Z | 2021-07-26T09:05:38.000Z | backend/app/api/api_v1/core/tools/monitorRedis.py | PY-GZKY/fastapi-crawl-admin | 6535054994d11e3c31b4caeae65e8fa0f495d2b7 | [
"MIT"
] | 3 | 2021-07-26T01:44:24.000Z | 2021-07-31T14:31:49.000Z | # #!/usr/bin/env python
# # -*- coding:utf-8 -*-
# import sys
# import redis
# def Redis_Conn(Host, Port, Password):
# try:
# pool = redis.ConnectionPool(host=Host, port=Port, password=Password)
# r = redis.Redis(connection_pool=pool)
# return r
# except:
# pass
# def Redis_Me... | 31.390244 | 116 | 0.599068 | 319 | 2,574 | 4.583072 | 0.31348 | 0.068399 | 0.032832 | 0.036936 | 0.064295 | 0.031464 | 0 | 0 | 0 | 0 | 0 | 0.004219 | 0.263403 | 2,574 | 81 | 117 | 31.777778 | 0.766878 | 0.387723 | 0 | 0 | 0 | 0 | 0.085492 | 0.028497 | 0 | 0 | 0 | 0 | 0 | 1 | 0.228571 | false | 0.028571 | 0.114286 | 0.142857 | 0.542857 | 0.028571 | 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 |
23be8ebc46502ea24e2f2d2278f61812bfb22fcc | 159 | py | Python | notebooks/exercise_odeint.py | gvvynplaine/scipy-2017-codegen-tutorial | 4bd0cdb1bdbdc796bb90c08114a00e390b3d3026 | [
"BSD-3-Clause"
] | 56 | 2017-05-31T21:01:22.000Z | 2022-02-14T04:26:01.000Z | notebooks/exercise_odeint.py | gvvynplaine/scipy-2017-codegen-tutorial | 4bd0cdb1bdbdc796bb90c08114a00e390b3d3026 | [
"BSD-3-Clause"
] | 26 | 2017-06-06T19:05:04.000Z | 2018-08-29T23:15:19.000Z | notebooks/exercise_odeint.py | gvvynplaine/scipy-2017-codegen-tutorial | 4bd0cdb1bdbdc796bb90c08114a00e390b3d3026 | [
"BSD-3-Clause"
] | 29 | 2017-06-06T14:45:12.000Z | 2021-09-25T14:11:06.000Z | tout = np.linspace(0, 10)
k_vals = 0.42, 0.17 # arbitrary in this case
y0 = [1, 1, 0]
yout = odeint(rhs, y0, tout, k_vals) # EXERCISE: rhs, y0, tout, k_vals
| 31.8 | 71 | 0.63522 | 32 | 159 | 3.0625 | 0.59375 | 0.153061 | 0.183673 | 0.204082 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11811 | 0.201258 | 159 | 4 | 72 | 39.75 | 0.653543 | 0.339623 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
23bff93bef9a38b053c1c89e86f0059c69331393 | 305 | py | Python | Lista2_06.py | NormanDeveloper/Lista2_Python | 232c80b59c98023ee8a7844e2097cb102ed61261 | [
"MIT"
] | 1 | 2018-08-24T15:52:13.000Z | 2018-08-24T15:52:13.000Z | Lista2_06.py | NormanDeveloper/Lista2_Python | 232c80b59c98023ee8a7844e2097cb102ed61261 | [
"MIT"
] | null | null | null | Lista2_06.py | NormanDeveloper/Lista2_Python | 232c80b59c98023ee8a7844e2097cb102ed61261 | [
"MIT"
] | 1 | 2018-09-11T17:37:54.000Z | 2018-09-11T17:37:54.000Z | #Faça um Programa que leia três números e mostre o maior deles.
valor1 = float(input("Digite o primeiro valor: "))
valor2 = float(input("Digite o segundo valor: "))
valor3 = float(input("Digite o terceiro valor: "))
valores = [valor1, valor2, valor3]
print(f'O maior número é {max(valores)}')
| 30.5 | 64 | 0.691803 | 45 | 305 | 4.688889 | 0.622222 | 0.14218 | 0.227488 | 0.241706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024 | 0.180328 | 305 | 9 | 65 | 33.888889 | 0.82 | 0.203279 | 0 | 0 | 0 | 0 | 0.450644 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 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 |
23c0caf3c091b4707dc06e09a8b585ce04b24c35 | 2,299 | py | Python | lyutool/_nbdev.py | lyuhaitao/lyutool | 9cfe7c18e71b8feb32f1c1307f454f5ad6baf343 | [
"Apache-2.0"
] | 1 | 2022-03-08T01:33:19.000Z | 2022-03-08T01:33:19.000Z | lyutool/_nbdev.py | lyuhaitao/lyutool | 9cfe7c18e71b8feb32f1c1307f454f5ad6baf343 | [
"Apache-2.0"
] | null | null | null | lyutool/_nbdev.py | lyuhaitao/lyutool | 9cfe7c18e71b8feb32f1c1307f454f5ad6baf343 | [
"Apache-2.0"
] | 1 | 2021-03-20T15:07:03.000Z | 2021-03-20T15:07:03.000Z | # AUTOGENERATED BY NBDEV! DO NOT EDIT!
__all__ = ["index", "modules", "custom_doc_links", "git_url"]
index = {"Hline": "00_core.ipynb",
"ImageBuffer": "00_core.ipynb",
"grid_subsampling": "00_core.ipynb",
"getDirctionVectorsByPCA": "00_core.ipynb",
"pointsProjectAxis": "00_core.ipy... | 43.377358 | 62 | 0.655937 | 203 | 2,299 | 7.157635 | 0.384236 | 0.115623 | 0.211975 | 0.050929 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042031 | 0.203132 | 2,299 | 52 | 63 | 44.211538 | 0.751092 | 0.015659 | 0 | 0 | 1 | 0 | 0.650155 | 0.245467 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022222 | false | 0 | 0 | 0.022222 | 0.022222 | 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 | 1 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
23c58fb81c8a1060cdccd0d53716cd3c1d5aadf9 | 119 | py | Python | BasicExerciseAndKnowledge/w3cschool/n31_first_letter2judge.py | Jonathan1214/learn-python | 19d0299b30e953069f19402bff5c464c4d5580be | [
"MIT"
] | null | null | null | BasicExerciseAndKnowledge/w3cschool/n31_first_letter2judge.py | Jonathan1214/learn-python | 19d0299b30e953069f19402bff5c464c4d5580be | [
"MIT"
] | null | null | null | BasicExerciseAndKnowledge/w3cschool/n31_first_letter2judge.py | Jonathan1214/learn-python | 19d0299b30e953069f19402bff5c464c4d5580be | [
"MIT"
] | null | null | null | #coding:utf-8
# 题目:请输入星期几的第一个字母来判断一下是星期几,如果第一个字母一样,则继续判断第二个字母。
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday
Sunday | 13.222222 | 48 | 0.857143 | 14 | 119 | 7.285714 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009091 | 0.07563 | 119 | 9 | 49 | 13.222222 | 0.918182 | 0.495798 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
23d8f0a93642c0f6a30ade307ec64ab7cf4fdd56 | 319 | py | Python | ad_api/api/sb/forecast.py | mkdir700/python-amazon-ad-api | e82429be4c56f4b56bddfcd70c18dabd4c109406 | [
"MIT"
] | 12 | 2021-11-06T11:12:12.000Z | 2022-03-31T19:10:08.000Z | ad_api/api/sb/forecast.py | saleweaver/python-amazon-ad-api | 55fca99167ea918d34d5c9e666a4107f10b348a6 | [
"MIT"
] | 12 | 2021-11-06T03:46:59.000Z | 2022-03-11T19:09:58.000Z | ad_api/api/sb/forecast.py | saleweaver/python-amazon-ad-api | 55fca99167ea918d34d5c9e666a4107f10b348a6 | [
"MIT"
] | 6 | 2021-09-19T00:47:57.000Z | 2022-01-11T13:55:44.000Z | from ad_api.base import Client, sp_endpoint, fill_query_params, ApiResponse
class Forecast(Client):
@sp_endpoint('/sb/campaigns/shopperSegments/forecast', method='POST')
def list_forecast(self, **kwargs) -> ApiResponse:
return self._request(kwargs.pop('path'), data=kwargs.pop('body'), params=kwargs)
| 39.875 | 88 | 0.739812 | 41 | 319 | 5.585366 | 0.707317 | 0.069869 | 0.139738 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119122 | 319 | 7 | 89 | 45.571429 | 0.814947 | 0 | 0 | 0 | 0 | 0 | 0.15674 | 0.119122 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.2 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
23f51e4cb4606ddc0ada32cc0a384e46de7369eb | 803 | py | Python | pybible/classes/verse.py | tonybaloney/pybible-cli | 04c12b6abf2a79a89fe607482e006e604f3c57db | [
"MIT"
] | 15 | 2020-02-29T17:43:54.000Z | 2022-03-08T06:07:40.000Z | pybible/classes/verse.py | tonybaloney/pybible-cli | 04c12b6abf2a79a89fe607482e006e604f3c57db | [
"MIT"
] | 5 | 2020-03-02T23:13:07.000Z | 2020-09-07T18:10:33.000Z | pybible/classes/verse.py | tonybaloney/pybible-cli | 04c12b6abf2a79a89fe607482e006e604f3c57db | [
"MIT"
] | 3 | 2020-03-02T03:54:46.000Z | 2021-02-27T03:43:50.000Z | class Verse:
"""A class used to represent a verse from the bible."""
def __init__(self, text: str, number: int):
"""
Initialize a `Verse` object.
:Parameters:
- `text`: sting containing the text of the verse.
- `number`: integer with the number of the verse.
... | 24.333333 | 61 | 0.562889 | 97 | 803 | 4.412371 | 0.329897 | 0.11215 | 0.070093 | 0.056075 | 0.196262 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.317559 | 803 | 32 | 62 | 25.09375 | 0.781022 | 0.333748 | 0 | 0.125 | 0 | 0 | 0.07839 | 0.04661 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0 | 0.1875 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
f1950c6d7942a851893632d96a30e1ed6debed82 | 253 | py | Python | lcp_video/benchmarks/profile_mono12p_to_image.py | vstadnytskyi/lcp-video | a65f9c8ecd370d975128af67427f3dd8141bf667 | [
"BSD-3-Clause"
] | null | null | null | lcp_video/benchmarks/profile_mono12p_to_image.py | vstadnytskyi/lcp-video | a65f9c8ecd370d975128af67427f3dd8141bf667 | [
"BSD-3-Clause"
] | null | null | null | lcp_video/benchmarks/profile_mono12p_to_image.py | vstadnytskyi/lcp-video | a65f9c8ecd370d975128af67427f3dd8141bf667 | [
"BSD-3-Clause"
] | null | null | null | from ubcs_auxiliary.save_load_object import load_from_file
from lcp_video.analysis import mono12p_to_image
mono12p = load_from_file('lcp_video/test_data/flir_rawdata_mono12p.pkl')
height = 2048
width = 2448
data = mono12p_to_image(mono12p,height,width)
| 36.142857 | 72 | 0.853755 | 41 | 253 | 4.878049 | 0.560976 | 0.08 | 0.12 | 0.21 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.077253 | 0.079051 | 253 | 6 | 73 | 42.166667 | 0.781116 | 0 | 0 | 0 | 0 | 0 | 0.173913 | 0.173913 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.