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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
81328ef0347d3a6ae301699943a67ef4f0701935 | 2,345 | py | Python | release/stubs.min/System/__init___parts/CharEnumerator.py | tranconbv/ironpython-stubs | a601759e6c6819beff8e6b639d18a24b7e351851 | [
"MIT"
] | null | null | null | release/stubs.min/System/__init___parts/CharEnumerator.py | tranconbv/ironpython-stubs | a601759e6c6819beff8e6b639d18a24b7e351851 | [
"MIT"
] | null | null | null | release/stubs.min/System/__init___parts/CharEnumerator.py | tranconbv/ironpython-stubs | a601759e6c6819beff8e6b639d18a24b7e351851 | [
"MIT"
] | null | null | null | class CharEnumerator(object):
""" Supports iterating over a System.String object and reading its individual characters. This class cannot be inherited. """
def ZZZ(self):
"""hardcoded/mock instance of the class"""
return CharEnumerator()
instance=ZZZ()
"""hardcoded/returns an instance of the class"""
de... | 35 | 215 | 0.692964 | 290 | 2,345 | 5.3 | 0.334483 | 0.050098 | 0.04229 | 0.035133 | 0.193234 | 0.154196 | 0.129473 | 0.129473 | 0.07352 | 0.07352 | 0 | 0 | 0.189765 | 2,345 | 66 | 216 | 35.530303 | 0.808947 | 0.581663 | 0 | 0.413793 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.448276 | false | 0.413793 | 0 | 0 | 0.586207 | 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 |
8133672c14b4b385a9d7555f731ee05a987d9f73 | 143 | py | Python | src/home_automation_hub/config.py | levidavis/py-home | 3cc30e19d506824de9816ad9dbcfba4338a7dfa8 | [
"MIT"
] | null | null | null | src/home_automation_hub/config.py | levidavis/py-home | 3cc30e19d506824de9816ad9dbcfba4338a7dfa8 | [
"MIT"
] | null | null | null | src/home_automation_hub/config.py | levidavis/py-home | 3cc30e19d506824de9816ad9dbcfba4338a7dfa8 | [
"MIT"
] | null | null | null | from .config_store import ConfigStore
config = ConfigStore()
config.set_mqtt_broker("mqtt", 1883)
config.set_redis_config("redis", 6379, 0)
| 17.875 | 41 | 0.776224 | 20 | 143 | 5.3 | 0.6 | 0.320755 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070313 | 0.104895 | 143 | 7 | 42 | 20.428571 | 0.757813 | 0 | 0 | 0 | 0 | 0 | 0.062937 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
813ffa71bdba0211d608c2b11546d97e7ed15b73 | 9,307 | py | Python | hw1.py | ptsurko/coursera_crypt | ec952800c441a9b07ac427045851285fee8c6543 | [
"MIT"
] | null | null | null | hw1.py | ptsurko/coursera_crypt | ec952800c441a9b07ac427045851285fee8c6543 | [
"MIT"
] | null | null | null | hw1.py | ptsurko/coursera_crypt | ec952800c441a9b07ac427045851285fee8c6543 | [
"MIT"
] | null | null | null | import string
from timeit import itertools
s1 = '315c4eeaa8b5f8aaf9174145bf43e1784b8fa00dc71d885a804e5ee9fa40b16349c146fb778cdf2d3aff021dfff5b403b510d0d0455468aeb98622b137dae857553ccd8883a7bc37520e06e515d22c954eba5025b8cc57ee59418ce7dc6bc41556bdb36bbca3e8774301fbcaa3b83b220809560987815f65286764703de0f3d524400a19b15961... | 44.745192 | 379 | 0.659933 | 973 | 9,307 | 6.099692 | 0.217883 | 0.074979 | 0.159393 | 0.16984 | 0.28829 | 0.051896 | 0.035046 | 0.026959 | 0.026959 | 0.026959 | 0 | 0.282873 | 0.222091 | 9,307 | 208 | 380 | 44.745192 | 0.536878 | 0.03449 | 0 | 0.092486 | 0 | 0.00578 | 0.350446 | 0.322321 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.011561 | null | null | 0.023121 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d48c84bf13aa3330a9778d95947b20e6d95dfadf | 194 | py | Python | polls/tests.py | bunya017/Django-Polls-App | 7b71ac9d1ffb66518e1d0345bc0f11ee5907c1be | [
"MIT"
] | null | null | null | polls/tests.py | bunya017/Django-Polls-App | 7b71ac9d1ffb66518e1d0345bc0f11ee5907c1be | [
"MIT"
] | 4 | 2020-06-05T18:14:33.000Z | 2022-01-13T00:45:05.000Z | polls/tests.py | bunya017/Django-Polls-App | 7b71ac9d1ffb66518e1d0345bc0f11ee5907c1be | [
"MIT"
] | 1 | 2018-05-23T11:36:36.000Z | 2018-05-23T11:36:36.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.test import TestCase
class RandomTestCase(TestCase):
def test_one_plus_one1(self):
self.assertEqual(1+1, 2)
| 14.923077 | 39 | 0.742268 | 27 | 194 | 5.037037 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030303 | 0.149485 | 194 | 12 | 40 | 16.166667 | 0.793939 | 0.108247 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d4a7c3329ad1568f426144783b7f79e1a58585b3 | 855 | py | Python | clients/client/python/ory_client/__init__.py | ory/sdk-generator | 958314d130922ad6f20f439b5230141a832231a5 | [
"Apache-2.0"
] | null | null | null | clients/client/python/ory_client/__init__.py | ory/sdk-generator | 958314d130922ad6f20f439b5230141a832231a5 | [
"Apache-2.0"
] | null | null | null | clients/client/python/ory_client/__init__.py | ory/sdk-generator | 958314d130922ad6f20f439b5230141a832231a5 | [
"Apache-2.0"
] | null | null | null | # flake8: noqa
"""
Ory APIs
Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501
The version of the OpenAPI document: v0.0.1-alpha.187
Contact: support@ory.sh
... | 29.482759 | 194 | 0.803509 | 115 | 855 | 5.86087 | 0.495652 | 0.083086 | 0.154303 | 0.204748 | 0.293769 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021858 | 0.14386 | 855 | 28 | 195 | 30.535714 | 0.898907 | 0.460819 | 0 | 0 | 0 | 0 | 0.037209 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.888889 | 0 | 0.888889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
d4c40e31402ea3868fe157e89d210c3347a2c155 | 287 | py | Python | design_patterns/pubsub/simple_events/__init__.py | JASTYN/pythonmaster | 46638ab09d28b65ce5431cd0759fe6df272fb85d | [
"Apache-2.0",
"MIT"
] | 3 | 2017-05-02T10:28:13.000Z | 2019-02-06T09:10:11.000Z | design_patterns/pubsub/simple_events/__init__.py | JASTYN/pythonmaster | 46638ab09d28b65ce5431cd0759fe6df272fb85d | [
"Apache-2.0",
"MIT"
] | 2 | 2017-06-21T20:39:14.000Z | 2020-02-25T10:28:57.000Z | design_patterns/pubsub/simple_events/__init__.py | JASTYN/pythonmaster | 46638ab09d28b65ce5431cd0759fe6df272fb85d | [
"Apache-2.0",
"MIT"
] | 2 | 2016-07-29T04:35:22.000Z | 2017-01-18T17:05:36.000Z | class Event:
def __init__(self):
self.handlers = set()
def subscribe(self, func):
self.handlers.add(func)
def unsubscribe(self, func):
self.handlers.remove(func)
def emit(self, *args):
for func in self.handlers:
func(*args)
| 20.5 | 34 | 0.581882 | 35 | 287 | 4.657143 | 0.457143 | 0.294479 | 0.147239 | 0.245399 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.299652 | 287 | 13 | 35 | 22.076923 | 0.810945 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d4ca74c07139ca34712a0c4f0276402a1f20a541 | 23,370 | py | Python | plaidml2/edsl/__init__.py | ZhouXiaolin/plaidml | dac460b6ae19a62299d15eeb17b402d8c26d0c2b | [
"Apache-2.0"
] | 4,535 | 2017-10-20T05:03:57.000Z | 2022-03-30T15:42:33.000Z | plaidml2/edsl/__init__.py | ZhouXiaolin/plaidml | dac460b6ae19a62299d15eeb17b402d8c26d0c2b | [
"Apache-2.0"
] | 984 | 2017-10-20T17:16:09.000Z | 2022-03-30T05:43:18.000Z | plaidml2/edsl/__init__.py | ZhouXiaolin/plaidml | dac460b6ae19a62299d15eeb17b402d8c26d0c2b | [
"Apache-2.0"
] | 492 | 2017-10-20T18:22:32.000Z | 2022-03-30T09:00:05.000Z | # Copyright 2019 Intel Corporation.
import logging
from collections import namedtuple
import numpy as np
import six
from plaidml2 import DType
from plaidml2.core import TensorShape, Buffer
from plaidml2.ffi import ForeignObject, ffi, ffi_call, lib
logger = logging.getLogger(__name__)
def __init():
"""Docstrin... | 29.2125 | 98 | 0.631365 | 3,163 | 23,370 | 4.319001 | 0.095795 | 0.070273 | 0.035869 | 0.059732 | 0.489056 | 0.398873 | 0.319523 | 0.257229 | 0.208037 | 0.178025 | 0 | 0.00336 | 0.261361 | 23,370 | 799 | 99 | 29.249061 | 0.788032 | 0.082285 | 0 | 0.234637 | 0 | 0 | 0.039418 | 0.001032 | 0 | 0 | 0 | 0 | 0 | 1 | 0.240223 | false | 0.001862 | 0.013035 | 0.167598 | 0.52514 | 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 |
d4f79ba15482dc239d99373d27359b1da32e98ba | 1,172 | py | Python | kissim/cli/encode.py | AJK-dev/kissim | 15375000d47b5d5485322fc725809f853a3659de | [
"MIT"
] | 15 | 2020-06-23T14:46:07.000Z | 2022-02-03T04:23:56.000Z | kissim/cli/encode.py | volkamerlab/kissim | 35198a5efd4b651dd3952bf26ac5098fd1c4dfaa | [
"MIT"
] | 66 | 2020-11-05T11:45:21.000Z | 2021-12-15T12:11:20.000Z | kissim/cli/encode.py | AJK-dev/kissim | 15375000d47b5d5485322fc725809f853a3659de | [
"MIT"
] | 3 | 2021-02-27T12:56:27.000Z | 2022-02-03T04:23:57.000Z | """
kissim.cli.encode
Encode structures (generate fingerprints) from CLI arguments.
"""
import numpy as np
from kissim.api import encode
from kissim.cli.utils import configure_logger
def encode_from_cli(args):
"""
Encode structures.
Parameters
----------
args : argsparse.Namespace
CLI ... | 22.113208 | 97 | 0.654437 | 150 | 1,172 | 4.913333 | 0.413333 | 0.227951 | 0.253731 | 0.089552 | 0.084125 | 0.084125 | 0 | 0 | 0 | 0 | 0 | 0.003398 | 0.246587 | 1,172 | 52 | 98 | 22.538462 | 0.831257 | 0.353242 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.1875 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
be004417db97934b47985fcf6b9c727896247c48 | 220 | py | Python | CodeChef/problems/IMDB/main.py | object-oriented-human/competitive | 9e761020e887d8980a39a64eeaeaa39af0ecd777 | [
"MIT"
] | 1 | 2022-02-21T15:43:01.000Z | 2022-02-21T15:43:01.000Z | CodeChef/problems/IMDB/main.py | foooop/competitive | 9e761020e887d8980a39a64eeaeaa39af0ecd777 | [
"MIT"
] | null | null | null | CodeChef/problems/IMDB/main.py | foooop/competitive | 9e761020e887d8980a39a64eeaeaa39af0ecd777 | [
"MIT"
] | null | null | null | tc = int(input())
while tc:
tc -= 1
best = 0
n, x = map(int, input().split())
for i in range(n):
s, r = map(int, input().split())
if x >= s:
best = max(best, r)
print(best) | 22 | 40 | 0.445455 | 35 | 220 | 2.8 | 0.571429 | 0.244898 | 0.22449 | 0.326531 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014388 | 0.368182 | 220 | 10 | 41 | 22 | 0.690647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.1 | 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 |
be05ff012f40e6f5a4b594110683f58699e3309e | 412 | py | Python | top/api/rest/FenxiaoRefundMessageAddRequest.py | forestsheep/middleman | 34d54f9ffd9d7bcd775a8dcce4f00dd6c5bb1acd | [
"MIT"
] | null | null | null | top/api/rest/FenxiaoRefundMessageAddRequest.py | forestsheep/middleman | 34d54f9ffd9d7bcd775a8dcce4f00dd6c5bb1acd | [
"MIT"
] | null | null | null | top/api/rest/FenxiaoRefundMessageAddRequest.py | forestsheep/middleman | 34d54f9ffd9d7bcd775a8dcce4f00dd6c5bb1acd | [
"MIT"
] | null | null | null | '''
Created by auto_sdk on 2016.04.13
'''
from top.api.base import RestApi
class FenxiaoRefundMessageAddRequest(RestApi):
def __init__(self,domain='gw.api.taobao.com',port=80):
RestApi.__init__(self,domain, port)
self.image = None
self.message_content = None
self.sub_order_id = None
def getapiname(self):
r... | 24.235294 | 55 | 0.75 | 58 | 412 | 5.12069 | 0.655172 | 0.053872 | 0.094276 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027701 | 0.123786 | 412 | 16 | 56 | 25.75 | 0.795014 | 0.080097 | 0 | 0 | 0 | 0 | 0.148248 | 0.088949 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.090909 | 0.181818 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
be193942a6e1e90e82121a1e52ce25e1006effc3 | 488 | py | Python | wasatch/ROI.py | adiravishankara/Wasatch.PY | 058b3de2c9399e9aea6347fa360f9c7dbbf296aa | [
"MIT"
] | 9 | 2018-10-31T11:38:18.000Z | 2021-11-23T19:20:54.000Z | wasatch/ROI.py | adiravishankara/Wasatch.PY | 058b3de2c9399e9aea6347fa360f9c7dbbf296aa | [
"MIT"
] | 3 | 2018-11-01T10:28:53.000Z | 2022-03-21T17:40:05.000Z | wasatch/ROI.py | adiravishankara/Wasatch.PY | 058b3de2c9399e9aea6347fa360f9c7dbbf296aa | [
"MIT"
] | 4 | 2018-08-03T08:46:08.000Z | 2022-03-23T01:09:27.000Z | ##
# This class encapsulates a Region Of Interest, which may be either horizontal
# (pixels) or vertical (rows/lines).
class ROI:
def __init__(self, start, end):
self.start = start
self.end = end
self.len = end - start + 1
def valid(self):
return self.start >= 0 and self.start ... | 27.111111 | 79 | 0.622951 | 68 | 488 | 4.411765 | 0.485294 | 0.18 | 0.12 | 0.106667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00838 | 0.266393 | 488 | 17 | 80 | 28.705882 | 0.829609 | 0.229508 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | false | 0 | 0 | 0.272727 | 0.727273 | 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 |
be2be4ab8f891e1d119f0c6cbe7bc4c566727644 | 547 | py | Python | py/tests/test_valid_parentheses.py | Dragonway/LeetCode | 53ed9e9bcc1ed6955b013e0d37d2a684c2ec7135 | [
"MIT"
] | null | null | null | py/tests/test_valid_parentheses.py | Dragonway/LeetCode | 53ed9e9bcc1ed6955b013e0d37d2a684c2ec7135 | [
"MIT"
] | null | null | null | py/tests/test_valid_parentheses.py | Dragonway/LeetCode | 53ed9e9bcc1ed6955b013e0d37d2a684c2ec7135 | [
"MIT"
] | null | null | null | import unittest
from py.tests.utils import test
from py import valid_parentheses as vp
class TestValidParentheses(unittest.TestCase):
@test(vp.Solution.is_valid)
def test_valid_parentheses(self) -> None:
test("()", result=True)
test("()[]{}", result=True)
test("(]", ... | 30.388889 | 46 | 0.521024 | 54 | 547 | 5.203704 | 0.407407 | 0.284698 | 0.199288 | 0.256228 | 0.412811 | 0.412811 | 0.412811 | 0.412811 | 0.412811 | 0.412811 | 0 | 0 | 0.303473 | 547 | 17 | 47 | 32.176471 | 0.737533 | 0 | 0 | 0 | 0 | 0 | 0.058501 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.214286 | 0 | 0.357143 | 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 |
0780e5ec41de515a271f19ff0412527f1e12bd8f | 287 | py | Python | health_care/health_care/doctype/practitioner/practitioner.py | Jnalis/frappe-health-care | ed347c216f568cc044c1365965d35945697cf7dc | [
"MIT"
] | null | null | null | health_care/health_care/doctype/practitioner/practitioner.py | Jnalis/frappe-health-care | ed347c216f568cc044c1365965d35945697cf7dc | [
"MIT"
] | null | null | null | health_care/health_care/doctype/practitioner/practitioner.py | Jnalis/frappe-health-care | ed347c216f568cc044c1365965d35945697cf7dc | [
"MIT"
] | null | null | null | # Copyright (c) 2022, Juve and contributors
# For license information, please see license.txt
# import frappe
from frappe.model.document import Document
class Practitioner(Document):
def before_save(self):
self.practitioner_full_name = f'{self.first_name} {self.second_name or ""}'
| 28.7 | 77 | 0.777003 | 40 | 287 | 5.45 | 0.725 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015936 | 0.125436 | 287 | 9 | 78 | 31.888889 | 0.85259 | 0.358885 | 0 | 0 | 0 | 0 | 0.233333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
0785a9ecd33b25242a059e89ddfae1ca8b3c0298 | 518 | py | Python | tests/workflow/test_workflow_ingest_accepted_submission.py | elifesciences/elife-bot | d3a102c8030e4b7ec83cbd45e5f839dba4f9ffd9 | [
"MIT"
] | 17 | 2015-02-10T07:10:29.000Z | 2021-05-14T22:24:45.000Z | tests/workflow/test_workflow_ingest_accepted_submission.py | elifesciences/elife-bot | d3a102c8030e4b7ec83cbd45e5f839dba4f9ffd9 | [
"MIT"
] | 459 | 2015-03-31T18:24:23.000Z | 2022-03-30T19:44:40.000Z | tests/workflow/test_workflow_ingest_accepted_submission.py | elifesciences/elife-bot | d3a102c8030e4b7ec83cbd45e5f839dba4f9ffd9 | [
"MIT"
] | 9 | 2015-04-18T16:57:31.000Z | 2020-10-30T11:49:13.000Z | import unittest
import tests.settings_mock as settings_mock
from tests.activity.classes_mock import FakeLogger
from workflow.workflow_IngestAcceptedSubmission import workflow_IngestAcceptedSubmission
class TestWorkflowIngestAcceptedSubmission(unittest.TestCase):
def setUp(self):
self.workflow = workflow_I... | 34.533333 | 88 | 0.783784 | 51 | 518 | 7.803922 | 0.45098 | 0.090452 | 0.201005 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15251 | 518 | 14 | 89 | 37 | 0.906606 | 0 | 0 | 0 | 0 | 0 | 0.046332 | 0.046332 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0.181818 | false | 0 | 0.363636 | 0 | 0.636364 | 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 |
078c924330df0f8ffe4dba08335fcd4ca824b7c3 | 125 | py | Python | electrondiffraction/__init__.py | drix00/ElectronDiffraction | 9dc258d90d0b73745b904b1bb6e1e3e794403a27 | [
"Apache-2.0"
] | 1 | 2020-07-23T12:24:09.000Z | 2020-07-23T12:24:09.000Z | python/xraynomenclature/xraynomenclature/__init__.py | drix00/xray-nomenclature | 92d3e15b9ebb505482a084522c6639ba09bbdd02 | [
"Apache-2.0"
] | null | null | null | python/xraynomenclature/xraynomenclature/__init__.py | drix00/xray-nomenclature | 92d3e15b9ebb505482a084522c6639ba09bbdd02 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
__author__ = """Hendrix Demers"""
__email__ = 'hendrix.demers@mail.mcgill.ca'
__version__ = '0.1.0'
| 20.833333 | 43 | 0.648 | 16 | 125 | 4.3125 | 0.8125 | 0.376812 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036697 | 0.128 | 125 | 5 | 44 | 25 | 0.59633 | 0.168 | 0 | 0 | 0 | 0 | 0.470588 | 0.284314 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
07b69c4f080b6ae079038a0250ba13b6035a0cda | 191 | py | Python | scripts/transpose.py | saikrishnarallabandi/python_connectionist | e3f8f92c8de865190ad727951eb2b0e514248afc | [
"Apache-2.0"
] | null | null | null | scripts/transpose.py | saikrishnarallabandi/python_connectionist | e3f8f92c8de865190ad727951eb2b0e514248afc | [
"Apache-2.0"
] | null | null | null | scripts/transpose.py | saikrishnarallabandi/python_connectionist | e3f8f92c8de865190ad727951eb2b0e514248afc | [
"Apache-2.0"
] | null | null | null | import numpy
g = open('/home/srallaba/mgc/transposed/arctic_a0404.mgc','w')
x = numpy.loadtxt('/home/srallaba/mgc_spaces/arctic_a0404.mgc')
numpy.savetxt(g, numpy.transpose(x))
g.close()
| 31.833333 | 64 | 0.73822 | 30 | 191 | 4.6 | 0.566667 | 0.173913 | 0.217391 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 0.078534 | 191 | 5 | 65 | 38.2 | 0.738636 | 0 | 0 | 0 | 0 | 0 | 0.465969 | 0.460733 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
07bd6b46f25dcc6cd80de3063def3b5b81539dae | 161 | py | Python | text_classification/config.py | MardanovTimur/kaggle | 62392863a07fcc5de9821c28cf9c6dbbf39ced59 | [
"MIT"
] | null | null | null | text_classification/config.py | MardanovTimur/kaggle | 62392863a07fcc5de9821c28cf9c6dbbf39ced59 | [
"MIT"
] | null | null | null | text_classification/config.py | MardanovTimur/kaggle | 62392863a07fcc5de9821c28cf9c6dbbf39ced59 | [
"MIT"
] | null | null | null | import logging
import pathlib
logging.basicConfig(level=logging.INFO)
# Dirs
ROOT_DIR = pathlib.Path(__file__).parent.absolute()
DUMP_DIR = ROOT_DIR / 'dumps'
| 17.888889 | 51 | 0.782609 | 22 | 161 | 5.409091 | 0.681818 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10559 | 161 | 8 | 52 | 20.125 | 0.826389 | 0.024845 | 0 | 0 | 0 | 0 | 0.032258 | 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 |
07de8a38f3e34f5218e591e882773caeb8f88eba | 1,256 | py | Python | ocdsmerge/exceptions.py | open-contracting/ocds-merge | 80c7cb380d191c75f88feefd34b607bc0de13ee1 | [
"BSD-3-Clause"
] | 4 | 2017-09-06T06:14:09.000Z | 2019-07-05T13:11:40.000Z | ocdsmerge/exceptions.py | open-contracting/ocds-merge | 80c7cb380d191c75f88feefd34b607bc0de13ee1 | [
"BSD-3-Clause"
] | 20 | 2017-11-25T02:29:41.000Z | 2020-01-08T18:45:49.000Z | ocdsmerge/exceptions.py | open-contracting/ocds-merge | 80c7cb380d191c75f88feefd34b607bc0de13ee1 | [
"BSD-3-Clause"
] | 1 | 2018-11-07T14:05:12.000Z | 2018-11-07T14:05:12.000Z | class OCDSMergeError(Exception):
"""Base class for exceptions from within this package"""
class MissingDateKeyError(OCDSMergeError, KeyError):
"""Raised when a release is missing a 'date' key"""
def __init__(self, key, message):
self.key = key
self.message = message
def __str__(self)... | 27.304348 | 97 | 0.700637 | 152 | 1,256 | 5.684211 | 0.394737 | 0.05787 | 0.063657 | 0.083333 | 0.387731 | 0.262731 | 0.215278 | 0.215278 | 0.111111 | 0.111111 | 0 | 0 | 0.204618 | 1,256 | 45 | 98 | 27.911111 | 0.864865 | 0.348726 | 0 | 0.315789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0 | 0.105263 | 0.736842 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
07e312b03c9acc9dee5930a523090053e38045ca | 85,560 | py | Python | Installation/nnAudio/Spectrogram.py | tasercake/nnAudio | 5edc37b7b73674598d533261314429b875ba285d | [
"MIT"
] | null | null | null | Installation/nnAudio/Spectrogram.py | tasercake/nnAudio | 5edc37b7b73674598d533261314429b875ba285d | [
"MIT"
] | null | null | null | Installation/nnAudio/Spectrogram.py | tasercake/nnAudio | 5edc37b7b73674598d533261314429b875ba285d | [
"MIT"
] | null | null | null | """
Module containing all the spectrogram classes
"""
# 0.2.0
import torch
import torch.nn as nn
from torch.nn.functional import conv1d, conv2d, fold
import numpy as np
from time import time
from nnAudio.librosa_functions import *
from nnAudio.utils import *
sz_float = 4 # size of a float
epsilon = 10e-8 # fudg... | 41.695906 | 172 | 0.593233 | 10,919 | 85,560 | 4.506457 | 0.06649 | 0.021542 | 0.012803 | 0.007316 | 0.759033 | 0.731191 | 0.706804 | 0.692355 | 0.679612 | 0.66307 | 0 | 0.015438 | 0.311057 | 85,560 | 2,051 | 173 | 41.716236 | 0.819326 | 0.426706 | 0 | 0.606132 | 0 | 0 | 0.061766 | 0.001006 | 0 | 0 | 0 | 0.000975 | 0.004717 | 1 | 0.038915 | false | 0.018868 | 0.008255 | 0.005896 | 0.102594 | 0.03184 | 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 |
07f0cc1a2096d19875fd8be0522fd82d52ff8b5c | 128 | py | Python | setup.py | rizar/CLOSURE | 57f80d4e89fa281830bb9c8b6a7a2498747e727a | [
"MIT"
] | 14 | 2019-12-08T04:38:57.000Z | 2021-07-13T15:46:57.000Z | setup.py | rizar/CLOSURE | 57f80d4e89fa281830bb9c8b6a7a2498747e727a | [
"MIT"
] | null | null | null | setup.py | rizar/CLOSURE | 57f80d4e89fa281830bb9c8b6a7a2498747e727a | [
"MIT"
] | 2 | 2020-09-01T10:21:27.000Z | 2021-01-15T02:38:25.000Z | from setuptools import setup
setup(
name="nmn-iwp",
version="0.1",
keywords="",
packages=["vr", "vr.models"]
)
| 14.222222 | 32 | 0.585938 | 16 | 128 | 4.6875 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02 | 0.21875 | 128 | 8 | 33 | 16 | 0.73 | 0 | 0 | 0 | 0 | 0 | 0.164063 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.142857 | 0 | 0.142857 | 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 |
07fdb99131cb0d8251646bea304d79ad58fc7ab6 | 157 | py | Python | Mundo 1/Ex33.py | legna7/Python | 52e0b642d1b7acc592ec82dd360c5697fb0765db | [
"MIT"
] | null | null | null | Mundo 1/Ex33.py | legna7/Python | 52e0b642d1b7acc592ec82dd360c5697fb0765db | [
"MIT"
] | null | null | null | Mundo 1/Ex33.py | legna7/Python | 52e0b642d1b7acc592ec82dd360c5697fb0765db | [
"MIT"
] | null | null | null | salario = float(input('digite o seu salario: '))
aumento = (salario + (salario * 15)/100 if salario <= 1250 else salario + (salario * 10)/100)
print(aumento) | 52.333333 | 93 | 0.687898 | 22 | 157 | 4.909091 | 0.636364 | 0.259259 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 0.152866 | 157 | 3 | 94 | 52.333333 | 0.706767 | 0 | 0 | 0 | 0 | 0 | 0.139241 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 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 |
58023a0843c7993ed1535e882c1755e33a7a8544 | 116 | py | Python | solved_bronze/num11720.py | ilmntr/white_study | 51d69d122b07e9a0922dddb134bff4ec79077eb9 | [
"MIT"
] | null | null | null | solved_bronze/num11720.py | ilmntr/white_study | 51d69d122b07e9a0922dddb134bff4ec79077eb9 | [
"MIT"
] | null | null | null | solved_bronze/num11720.py | ilmntr/white_study | 51d69d122b07e9a0922dddb134bff4ec79077eb9 | [
"MIT"
] | null | null | null | cnt = int(input())
num = list(map(int, input()))
sum = 0
for i in range(len(num)):
sum = sum + num[i]
print(sum) | 19.333333 | 29 | 0.586207 | 22 | 116 | 3.090909 | 0.636364 | 0.235294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010753 | 0.198276 | 116 | 6 | 30 | 19.333333 | 0.72043 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6af266c300822127b8933d07e4d514dfddafdca3 | 575 | py | Python | sider/warnings.py | PCManticore/sider | cd11b38b2a1bf1ea3600eb287abfe3c2b40c67c1 | [
"MIT"
] | 19 | 2015-01-17T18:24:36.000Z | 2022-02-05T06:33:41.000Z | sider/warnings.py | PCManticore/sider | cd11b38b2a1bf1ea3600eb287abfe3c2b40c67c1 | [
"MIT"
] | 5 | 2016-01-13T14:19:44.000Z | 2016-06-01T18:50:36.000Z | sider/warnings.py | PCManticore/sider | cd11b38b2a1bf1ea3600eb287abfe3c2b40c67c1 | [
"MIT"
] | 6 | 2015-08-16T10:32:09.000Z | 2019-11-29T09:57:06.000Z | """:mod:`sider.warnings` --- Warning categories
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This module defines several custom warning category classes.
"""
class SiderWarning(Warning):
"""All warning classes used by Sider extend this base class."""
class PerformanceWarning(SiderWarning, RuntimeWarning):
... | 25 | 71 | 0.683478 | 57 | 575 | 6.894737 | 0.631579 | 0.132316 | 0.147583 | 0.188295 | 0.26972 | 0.26972 | 0.26972 | 0 | 0 | 0 | 0 | 0 | 0.151304 | 575 | 22 | 72 | 26.136364 | 0.805328 | 0.657391 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
ed0157759bef39b622e00be4f990c696bc0f3dd8 | 110 | py | Python | src/FYP/fifaRecords/urls.py | MustafaAbbas110/FinalProject | 30d371f06a8a1875285cfd4a8940ca3610ec1274 | [
"BSD-3-Clause"
] | null | null | null | src/FYP/fifaRecords/urls.py | MustafaAbbas110/FinalProject | 30d371f06a8a1875285cfd4a8940ca3610ec1274 | [
"BSD-3-Clause"
] | null | null | null | src/FYP/fifaRecords/urls.py | MustafaAbbas110/FinalProject | 30d371f06a8a1875285cfd4a8940ca3610ec1274 | [
"BSD-3-Clause"
] | null | null | null | from django.urls import path
from . import views
urlpatterns = [
path('', views.Records, name ="fRec"),
] | 18.333333 | 42 | 0.672727 | 14 | 110 | 5.285714 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 110 | 6 | 43 | 18.333333 | 0.822222 | 0 | 0 | 0 | 0 | 0 | 0.036036 | 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 |
ed0ba1aa04531d363f3421c385e69a867b69168b | 2,949 | py | Python | saleor/dashboard/urls.py | Chaoslecion123/Diver | 8c5c493701422eada49cbf95b0b0add08f1ea561 | [
"BSD-3-Clause"
] | null | null | null | saleor/dashboard/urls.py | Chaoslecion123/Diver | 8c5c493701422eada49cbf95b0b0add08f1ea561 | [
"BSD-3-Clause"
] | null | null | null | saleor/dashboard/urls.py | Chaoslecion123/Diver | 8c5c493701422eada49cbf95b0b0add08f1ea561 | [
"BSD-3-Clause"
] | null | null | null | from django.conf.urls import include, url
from django.views.generic.base import TemplateView
from . import views as core_views
from .category.urls import urlpatterns as category_urls
from .collection.urls import urlpatterns as collection_urls
from .customer.urls import urlpatterns as customer_urls
from .discount.urls ... | 49.15 | 83 | 0.714819 | 389 | 2,949 | 5.254499 | 0.167095 | 0.117417 | 0.236301 | 0.258806 | 0.026419 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.120041 | 2,949 | 59 | 84 | 49.983051 | 0.787669 | 0.107833 | 0 | 0 | 0 | 0 | 0.08381 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
ed0d8ae3aab7a47853ec71583d13c54d255d0f51 | 2,430 | py | Python | gym_pcgrl/envs/reps/wide_3D_rep.py | JiangZehua/gym-pcgrl | 80ddbde173803e81060578c2c4167d8d1f5cacba | [
"MIT"
] | null | null | null | gym_pcgrl/envs/reps/wide_3D_rep.py | JiangZehua/gym-pcgrl | 80ddbde173803e81060578c2c4167d8d1f5cacba | [
"MIT"
] | null | null | null | gym_pcgrl/envs/reps/wide_3D_rep.py | JiangZehua/gym-pcgrl | 80ddbde173803e81060578c2c4167d8d1f5cacba | [
"MIT"
] | null | null | null | from gym_pcgrl.envs.reps.representation3D import Representation3D
from PIL import Image
from gym import spaces
import numpy as np
from gym_pcgrl.envs.probs.minecraft.mc_render import reps_3D_render
"""
The wide representation where the agent can pick the tile position and tile value at each update.
"""
class Wide3DRep... | 32.837838 | 101 | 0.671605 | 324 | 2,430 | 4.953704 | 0.308642 | 0.062305 | 0.048598 | 0.037383 | 0.404361 | 0.346417 | 0.346417 | 0.346417 | 0.346417 | 0.241745 | 0 | 0.01261 | 0.249383 | 2,430 | 73 | 102 | 33.287671 | 0.867325 | 0.023457 | 0 | 0 | 0 | 0 | 0.006006 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.227273 | false | 0 | 0.227273 | 0.136364 | 0.681818 | 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 |
ed15a4196531124a25ec9256f08c4c288fc464c6 | 1,784 | py | Python | test_molecule.py | zee93/molecule_parser | 42f5a3722d733ef9f7243bfa2b0b9a08c7bc5d23 | [
"MIT"
] | null | null | null | test_molecule.py | zee93/molecule_parser | 42f5a3722d733ef9f7243bfa2b0b9a08c7bc5d23 | [
"MIT"
] | null | null | null | test_molecule.py | zee93/molecule_parser | 42f5a3722d733ef9f7243bfa2b0b9a08c7bc5d23 | [
"MIT"
] | null | null | null | import unittest
from molecule import onize_formula, update_equation_with_multiplier, flaten_formula, parse_molecule
class MoleculeParserTestCases(unittest.TestCase):
def test_onizing_formulas(self):
self.assertEqual(onize_formula('H'), 'H1')
self.assertEqual(onize_formula('H2O'), 'H2O1')
... | 39.644444 | 100 | 0.669283 | 235 | 1,784 | 4.842553 | 0.268085 | 0.289982 | 0.166081 | 0.197715 | 0.480668 | 0.254833 | 0.151142 | 0.093146 | 0.093146 | 0.093146 | 0 | 0.055593 | 0.173206 | 1,784 | 44 | 101 | 40.545455 | 0.715932 | 0 | 0 | 0.058824 | 0 | 0 | 0.108744 | 0 | 0 | 0 | 0 | 0 | 0.647059 | 1 | 0.117647 | false | 0 | 0.058824 | 0 | 0.205882 | 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 |
ed1dd7ccddd4e92e0775574a201cc45ae9f018c0 | 57 | py | Python | kendall_w/__init__.py | ugolbck/KendallW | ace7c68d6c3c2dfcf6b3ee5fb3817240ed050c9b | [
"BSD-3-Clause"
] | 4 | 2020-03-28T13:42:58.000Z | 2021-04-05T12:45:25.000Z | kendall_w/__init__.py | ugolbck/KendallW | ace7c68d6c3c2dfcf6b3ee5fb3817240ed050c9b | [
"BSD-3-Clause"
] | null | null | null | kendall_w/__init__.py | ugolbck/KendallW | ace7c68d6c3c2dfcf6b3ee5fb3817240ed050c9b | [
"BSD-3-Clause"
] | 2 | 2020-08-05T03:36:43.000Z | 2020-09-09T00:33:06.000Z | from .kendall_w import compute_w
__version__ = (1, 0, 0) | 19 | 32 | 0.736842 | 10 | 57 | 3.6 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 0.157895 | 57 | 3 | 33 | 19 | 0.6875 | 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 |
ed50775b4eac2d767b8b5f1e618533d64da3321f | 1,882 | py | Python | CraftProtocol/NBT/NBTTagList.py | Toranktto/CraftProtocol | a6f4a67756c3868820ab76df5e148d76b020d990 | [
"MIT"
] | 21 | 2018-05-12T20:18:02.000Z | 2022-02-18T17:33:50.000Z | CraftProtocol/NBT/NBTTagList.py | Toranktto/CraftProtocol | a6f4a67756c3868820ab76df5e148d76b020d990 | [
"MIT"
] | 1 | 2018-06-23T09:13:39.000Z | 2018-06-27T01:22:27.000Z | CraftProtocol/NBT/NBTTagList.py | Toranktto/CraftProtocol | a6f4a67756c3868820ab76df5e148d76b020d990 | [
"MIT"
] | 2 | 2018-05-19T21:36:00.000Z | 2020-10-02T03:23:13.000Z | #!/usr/bin/env python
from CraftProtocol.NBT.NBTBase import NBTBase
from CraftProtocol.NBT.NBTProvider import NBTProvider
from CraftProtocol.StreamIO import StreamIO
class NBTTagList(NBTBase):
TYPE_ID = 0x09
def __init__(self, tag_type, values=None):
NBTBase.__init__(self)
if values is None... | 25.093333 | 88 | 0.643996 | 245 | 1,882 | 4.469388 | 0.220408 | 0.115068 | 0.090411 | 0.054795 | 0.150685 | 0.150685 | 0.150685 | 0.150685 | 0.122374 | 0.122374 | 0 | 0.002135 | 0.253454 | 1,882 | 74 | 89 | 25.432432 | 0.777224 | 0.010627 | 0 | 0.122449 | 0 | 0 | 0.020419 | 0 | 0 | 0 | 0.002149 | 0 | 0.061224 | 1 | 0.265306 | false | 0 | 0.061224 | 0.122449 | 0.510204 | 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 |
ed5085f9be9c98ff85fd3851495ed53a851d06cd | 25,960 | py | Python | examples/0b02b172-ad67-449b-b4a2-ff645b28c508.py | lapaniku/GAS | e49ce302689af683da744cd172e0359c0ba0af86 | [
"MIT"
] | 37 | 2021-12-12T17:36:24.000Z | 2022-03-12T15:46:56.000Z | examples/0b02b172-ad67-449b-b4a2-ff645b28c508.py | lapaniku/GAS | e49ce302689af683da744cd172e0359c0ba0af86 | [
"MIT"
] | 1 | 2021-12-19T12:39:10.000Z | 2021-12-19T12:39:10.000Z | examples/0b02b172-ad67-449b-b4a2-ff645b28c508.py | lapaniku/GAS | e49ce302689af683da744cd172e0359c0ba0af86 | [
"MIT"
] | 3 | 2021-12-17T17:29:35.000Z | 2022-03-12T15:26:49.000Z | # This program was generated by "Generative Art Synthesizer"
# Generation date: 2021-11-28 09:21:40 UTC
# GAS change date: 2021-11-28 09:20:21 UTC
# GAS md5 hash: ad55481e87ca5a7e9a8e92cd336d1cad
# Python version: 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)]
# For more informat... | 64.9 | 346 | 0.689908 | 3,816 | 25,960 | 4.669025 | 0.211478 | 0.064826 | 0.088399 | 0.01145 | 0.135545 | 0.063535 | 0.037492 | 0.028512 | 0.023573 | 0.018409 | 0 | 0.536433 | 0.130894 | 25,960 | 399 | 347 | 65.062657 | 0.253258 | 0.022265 | 0 | 0.058496 | 1 | 0 | 0.002918 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030641 | false | 0 | 0.008357 | 0 | 0.069638 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ed6da0909e41c7d13eeccbce6856b66ed6774782 | 1,273 | py | Python | yudzuki/role.py | LunaProject-Discord/yudzuki.py | 7ff2d1f9e39ed5300a46c48fb95df50046814ede | [
"MIT"
] | 6 | 2021-04-29T12:48:55.000Z | 2021-06-25T06:54:37.000Z | yudzuki/role.py | LunaProject-Discord/yudzuki.py | 7ff2d1f9e39ed5300a46c48fb95df50046814ede | [
"MIT"
] | null | null | null | yudzuki/role.py | LunaProject-Discord/yudzuki.py | 7ff2d1f9e39ed5300a46c48fb95df50046814ede | [
"MIT"
] | null | null | null | __all__ = (
"Role",
)
class Role:
def __init__(self, data):
self.data = data
self._update(data)
def _get_json(self):
return self.data
def __repr__(self):
return (
f"<Role id={self.id} name={self.name}>"
)
def __str__(self):
... | 19.584615 | 51 | 0.531815 | 136 | 1,273 | 4.683824 | 0.176471 | 0.172684 | 0.197802 | 0.050235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.358995 | 1,273 | 64 | 52 | 19.890625 | 0.780637 | 0 | 0 | 0.2 | 0 | 0 | 0.080911 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.26 | false | 0 | 0 | 0.22 | 0.5 | 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 |
ed79d1c413293473a8ee91b105de6df7218762d5 | 1,865 | py | Python | var/spack/repos/builtin/packages/r-multicool/package.py | varioustoxins/spack | cab0e4cb240f34891a6d753f3393e512f9a99e9a | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | var/spack/repos/builtin/packages/r-multicool/package.py | varioustoxins/spack | cab0e4cb240f34891a6d753f3393e512f9a99e9a | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 6 | 2022-01-08T08:41:11.000Z | 2022-03-14T19:28:07.000Z | var/spack/repos/builtin/packages/r-multicool/package.py | foeroyingur/spack | 5300cbbb2e569190015c72d0970d25425ea38647 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | # Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class RMulticool(RPackage):
"""Permutations of multisets in cool-lex order
A set of tools t... | 51.805556 | 97 | 0.759249 | 254 | 1,865 | 5.562992 | 0.566929 | 0.036093 | 0.023355 | 0.038217 | 0.085633 | 0.070771 | 0.070771 | 0.070771 | 0.070771 | 0.070771 | 0 | 0.084444 | 0.155496 | 1,865 | 35 | 98 | 53.285714 | 0.812698 | 0.659517 | 0 | 0 | 0 | 0.25 | 0.637809 | 0.226148 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 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 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
ed87f843694726a8943e8ca3120951277107fd9a | 108,939 | gyp | Python | net/net.gyp | codenote/chromium-test | 0637af0080f7e80bf7d20b29ce94c5edc817f390 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | net/net.gyp | codenote/chromium-test | 0637af0080f7e80bf7d20b29ce94c5edc817f390 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | net/net.gyp | codenote/chromium-test | 0637af0080f7e80bf7d20b29ce94c5edc817f390 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2020-11-04T07:25:45.000Z | 2020-11-04T07:25:45.000Z | # Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'variables': {
'chromium_code': 1,
'linux_link_kerberos%': 0,
'conditions': [
['chromeos==1 or OS=="android" or OS=="ios"', {
... | 39.074247 | 106 | 0.589587 | 12,482 | 108,939 | 4.75701 | 0.061368 | 0.04362 | 0.015326 | 0.022904 | 0.747495 | 0.566634 | 0.395742 | 0.303468 | 0.259595 | 0.232447 | 0 | 0.006844 | 0.279707 | 108,939 | 2,787 | 107 | 39.088267 | 0.74986 | 0.036103 | 0 | 0.395357 | 0 | 0.001474 | 0.633089 | 0.544995 | 0 | 0 | 0 | 0.000359 | 0 | 1 | 0 | true | 0.001105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
71eb4d213edb33b0bf4b80a95a7ac788fefb3194 | 892 | py | Python | char_map.py | rakib313/Bangla-End2End-Speech-Recognition | 67e776841bf2bb3f108e94d0567dc707497605ff | [
"MIT"
] | null | null | null | char_map.py | rakib313/Bangla-End2End-Speech-Recognition | 67e776841bf2bb3f108e94d0567dc707497605ff | [
"MIT"
] | null | null | null | char_map.py | rakib313/Bangla-End2End-Speech-Recognition | 67e776841bf2bb3f108e94d0567dc707497605ff | [
"MIT"
] | null | null | null | """
Defines two dictionaries for converting
between text and integer sequences.
"""
char_map_str = """
' 0
<SPACE> 1
ব 2
া 3
ং 4
ল 5
দ 6
ে 7
শ 8
য 9
় 10
ি 11
ত 12
্ 13
ন 14
এ 15
ধ 16
র 17
ণ 18
ক 19
ড 20
হ 21
উ 22
প 23
জ 24
অ 25
থ 26
স 27
ষ 28
ই 29
আ 30
ছ 31
গ 32
ু 33
ো 34
ও 35
ভ 36
ী 37
ট 38
ূ 39
ম 40
ৈ 41
ৃ 42
ঙ 4... | 7.023622 | 45 | 0.600897 | 273 | 892 | 2 | 0.857143 | 0.051282 | 0.03663 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.397373 | 0.317265 | 892 | 127 | 46 | 7.023622 | 0.46798 | 0.128924 | 0 | 0 | 0 | 0 | 0.727273 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
71f8c70583f9e40977155faf528bc04d31d42d94 | 123 | py | Python | EX025.py | gjaosdij/PythonProject | ae27990efa93462b632f165d13c08c7fd93beb38 | [
"MIT"
] | null | null | null | EX025.py | gjaosdij/PythonProject | ae27990efa93462b632f165d13c08c7fd93beb38 | [
"MIT"
] | null | null | null | EX025.py | gjaosdij/PythonProject | ae27990efa93462b632f165d13c08c7fd93beb38 | [
"MIT"
] | null | null | null | print('Digite seu nome completo: ')
nome = input().strip().upper()
print('Seu nome tem "Silva"?')
print('SILVA' in nome)
| 17.571429 | 35 | 0.658537 | 18 | 123 | 4.5 | 0.611111 | 0.17284 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138211 | 123 | 6 | 36 | 20.5 | 0.764151 | 0 | 0 | 0 | 0 | 0 | 0.422764 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.75 | 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 |
9c0a5c02779cee26231b6b416177aadae209d132 | 83 | py | Python | torch_geometric/nn/unpool/__init__.py | mwussow/pytorch_geometric | 01c68f9b58c94d9efd1f6e39b9c85177aae521bb | [
"MIT"
] | 13 | 2019-11-07T02:57:41.000Z | 2021-12-28T08:19:56.000Z | torch_geometric/nn/unpool/__init__.py | mwussow/pytorch_geometric | 01c68f9b58c94d9efd1f6e39b9c85177aae521bb | [
"MIT"
] | 3 | 2019-10-30T20:20:27.000Z | 2022-03-12T22:56:11.000Z | torch_geometric/nn/unpool/__init__.py | mwussow/pytorch_geometric | 01c68f9b58c94d9efd1f6e39b9c85177aae521bb | [
"MIT"
] | 3 | 2020-10-19T02:53:20.000Z | 2022-01-31T04:31:02.000Z | from .knn_interpolate import knn_interpolate
__all__ = [
'knn_interpolate',
]
| 13.833333 | 44 | 0.746988 | 9 | 83 | 6.111111 | 0.555556 | 0.763636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168675 | 83 | 5 | 45 | 16.6 | 0.797101 | 0 | 0 | 0 | 0 | 0 | 0.180723 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9c12bc71f759e734d137bff21cddbea3b1e6369f | 90 | py | Python | regtests/calling/function_expression.py | bpmbank/PythonJS | 591a80afd8233fb715493591db2b68f1748558d9 | [
"BSD-3-Clause"
] | 319 | 2015-01-02T11:34:16.000Z | 2022-03-25T00:43:33.000Z | regtests/calling/function_expression.py | bpmbank/PythonJS | 591a80afd8233fb715493591db2b68f1748558d9 | [
"BSD-3-Clause"
] | 10 | 2015-02-03T02:33:09.000Z | 2021-11-09T21:41:00.000Z | regtests/calling/function_expression.py | bpmbank/PythonJS | 591a80afd8233fb715493591db2b68f1748558d9 | [
"BSD-3-Clause"
] | 61 | 2015-01-02T12:01:56.000Z | 2021-12-08T07:16:16.000Z | """func expr"""
F = function( x,y ):
return x+y
def main():
TestError( F(1,2) == 3 )
| 10 | 25 | 0.522222 | 16 | 90 | 2.9375 | 0.8125 | 0.085106 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043478 | 0.233333 | 90 | 8 | 26 | 11.25 | 0.637681 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9c17deaa4c71e1a4a4c819492abf40341d7c1817 | 629 | py | Python | helpers/time_utils.py | mandalorian-101/badger-system | 2b0ee9bd77a2cc6f875b9b984ae4dfe713bbc55c | [
"MIT"
] | null | null | null | helpers/time_utils.py | mandalorian-101/badger-system | 2b0ee9bd77a2cc6f875b9b984ae4dfe713bbc55c | [
"MIT"
] | null | null | null | helpers/time_utils.py | mandalorian-101/badger-system | 2b0ee9bd77a2cc6f875b9b984ae4dfe713bbc55c | [
"MIT"
] | null | null | null | import datetime
ONE_MINUTE = 60
ONE_HOUR = 3600
ONE_DAY = 24 * ONE_HOUR
ONE_YEAR = 1 * 365 * ONE_DAY
def days(days):
return int(days * 86400.0)
def hours(hours):
return int(hours * 3600.0)
def minutes(minutes):
return int(minutes * 60.0)
def to_utc_date(timestamp):
return datetime.datetime.utcfro... | 18.5 | 87 | 0.702703 | 95 | 629 | 4.494737 | 0.347368 | 0.058548 | 0.154567 | 0.175644 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05029 | 0.17806 | 629 | 34 | 88 | 18.5 | 0.775629 | 0 | 0 | 0 | 0 | 0 | 0.028571 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | false | 0 | 0.045455 | 0.318182 | 0.772727 | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
9c2757bc39980fb41a4822e37ad9596b865f8c2a | 24 | py | Python | nima/models/productos/constants.py | erichav/NIMA | 6ca845047e2d1764f07af76bfbbed9f1a82bc10f | [
"MIT"
] | null | null | null | nima/models/productos/constants.py | erichav/NIMA | 6ca845047e2d1764f07af76bfbbed9f1a82bc10f | [
"MIT"
] | null | null | null | nima/models/productos/constants.py | erichav/NIMA | 6ca845047e2d1764f07af76bfbbed9f1a82bc10f | [
"MIT"
] | 1 | 2018-11-18T03:58:53.000Z | 2018-11-18T03:58:53.000Z | COLLECTION = 'productos' | 24 | 24 | 0.791667 | 2 | 24 | 9.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 24 | 1 | 24 | 24 | 0.863636 | 0 | 0 | 0 | 0 | 0 | 0.36 | 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 |
9c2b5cff1157d02c2e830e9f89af05add8167ae9 | 247,996 | py | Python | Python/4 kyu/Snail/test_snail.py | newtonsspawn/codewars_challenges | 62b20d4e729c8ba79eac7cae6a179af57abd45d4 | [
"MIT"
] | 3 | 2020-05-29T23:29:35.000Z | 2021-08-12T03:16:44.000Z | Python/4 kyu/Snail/test_snail.py | newtonsspawn/codewars_challenges | 62b20d4e729c8ba79eac7cae6a179af57abd45d4 | [
"MIT"
] | null | null | null | Python/4 kyu/Snail/test_snail.py | newtonsspawn/codewars_challenges | 62b20d4e729c8ba79eac7cae6a179af57abd45d4 | [
"MIT"
] | 3 | 2020-05-22T12:14:55.000Z | 2021-04-15T12:52:42.000Z | from unittest import TestCase
from snail import snail
class TestSnail(TestCase):
def test_snail_001(self):
self.assertEqual(snail([[]]), [])
def test_snail_002(self):
self.assertEqual(snail([[1]]), [1])
def test_snail_003(self):
self.assertEqual(snail([[1, 2, 3], [4... | 69.447214 | 80 | 0.361711 | 30,427 | 247,996 | 2.941236 | 0.036481 | 0.008213 | 0.014079 | 0.028159 | 0.280916 | 0.260166 | 0.244678 | 0.227448 | 0.211648 | 0.190216 | 0 | 0.69859 | 0.505649 | 247,996 | 3,570 | 81 | 69.466667 | 0.031387 | 0 | 0 | 0.011265 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030329 | 1 | 0.030329 | false | 0 | 0.000578 | 0 | 0.031196 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9c2f576718895138632a90d08831ce15358276a1 | 147 | py | Python | app/core/utils.py | yayunl/llfselfhelp | 55994003ad51e1664a733c84ed6afcb9f28b6499 | [
"MIT"
] | null | null | null | app/core/utils.py | yayunl/llfselfhelp | 55994003ad51e1664a733c84ed6afcb9f28b6499 | [
"MIT"
] | 4 | 2021-04-08T21:37:08.000Z | 2021-09-22T19:31:17.000Z | app/core/utils.py | yayunl/llfselfhelp | 55994003ad51e1664a733c84ed6afcb9f28b6499 | [
"MIT"
] | null | null | null | from django.views.generic import \
UpdateView as BaseUpdateView
class UpdateView(BaseUpdateView):
template_name_suffix = '_form_update'
| 18.375 | 41 | 0.782313 | 16 | 147 | 6.9375 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.156463 | 147 | 7 | 42 | 21 | 0.895161 | 0 | 0 | 0 | 0 | 0 | 0.082192 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
9c39ca309133fbcd82d6b8365784a041e4f82e97 | 1,391 | py | Python | sklearn/utils/_bunch.py | jlopezNEU/scikit-learn | 593495eebc3c2f2ffdb244036adf57fab707a47d | [
"BSD-3-Clause"
] | 3 | 2021-09-16T14:23:46.000Z | 2022-01-02T22:45:15.000Z | sklearn/utils/_bunch.py | jlopezNEU/scikit-learn | 593495eebc3c2f2ffdb244036adf57fab707a47d | [
"BSD-3-Clause"
] | 11 | 2019-11-15T04:21:29.000Z | 2022-03-15T03:11:29.000Z | sklearn/utils/_bunch.py | jlopezNEU/scikit-learn | 593495eebc3c2f2ffdb244036adf57fab707a47d | [
"BSD-3-Clause"
] | 4 | 2019-11-13T15:04:46.000Z | 2021-12-23T17:50:16.000Z | class Bunch(dict):
"""Container object exposing keys as attributes.
Bunch objects are sometimes used as an output for functions and methods.
They extend dictionaries by enabling values to be accessed by key,
`bunch["value_key"]`, or by an attribute, `bunch.value_key`.
Examples
--------
>>>... | 28.387755 | 76 | 0.599569 | 183 | 1,391 | 4.306011 | 0.568306 | 0.035533 | 0.011421 | 0.010152 | 0.011421 | 0.011421 | 0 | 0 | 0 | 0 | 0 | 0.018219 | 0.28972 | 1,391 | 48 | 77 | 28.979167 | 0.779352 | 0.601725 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.357143 | false | 0.071429 | 0 | 0.071429 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
9c47e111b35b005c12b173bba50fdccaf56fa07f | 742 | py | Python | setup.py | jtauber/greek-utils | 1da19a5a784c4dac9d205ae1afdc5516ddcae9b4 | [
"MIT"
] | 13 | 2016-01-18T00:39:20.000Z | 2019-12-13T12:55:28.000Z | setup.py | jtauber/greek-utils | 1da19a5a784c4dac9d205ae1afdc5516ddcae9b4 | [
"MIT"
] | 2 | 2016-11-01T01:11:22.000Z | 2016-12-24T05:33:06.000Z | setup.py | jtauber/greek-utils | 1da19a5a784c4dac9d205ae1afdc5516ddcae9b4 | [
"MIT"
] | 5 | 2016-01-17T21:28:16.000Z | 2018-08-03T22:04:05.000Z | from setuptools import setup
setup(
name="greek-utils",
version="0.2",
description="various utilities for processing Ancient Greek",
license="MIT",
url="http://github.com/jtauber/greek-utils",
author="James Tauber",
author_email="jtauber@jtauber.com",
packages=["greekutils"],
classi... | 30.916667 | 65 | 0.598383 | 76 | 742 | 5.828947 | 0.592105 | 0.171558 | 0.225734 | 0.234763 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019749 | 0.249326 | 742 | 23 | 66 | 32.26087 | 0.775583 | 0 | 0 | 0 | 0 | 0 | 0.590297 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.045455 | 0 | 0.045455 | 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 |
9c62aef1446638f9fa0188683ca923feaaa75706 | 408 | py | Python | imread/tests/test_bmp.py | luispedro/imread | 7960b744623fe03e6d968893a539bca969715860 | [
"MIT"
] | 51 | 2015-01-09T14:07:37.000Z | 2022-03-03T13:54:30.000Z | imread/tests/test_bmp.py | luispedro/imread | 7960b744623fe03e6d968893a539bca969715860 | [
"MIT"
] | 16 | 2015-08-09T13:40:44.000Z | 2020-04-14T10:01:41.000Z | imread/tests/test_bmp.py | luispedro/imread | 7960b744623fe03e6d968893a539bca969715860 | [
"MIT"
] | 15 | 2015-05-22T10:41:52.000Z | 2021-05-03T11:11:59.000Z | import numpy as np
from imread import imread
from . import file_path
def test_read():
im = imread(file_path('star1.bmp'))
assert np.any(im)
assert im.shape == (128, 128, 3)
def test_indexed():
im = imread(file_path('py-installer-indexed.bmp'))
assert np.any(im)
assert im.shape == (352, 162, 3)... | 24 | 54 | 0.622549 | 67 | 408 | 3.716418 | 0.402985 | 0.160643 | 0.220884 | 0.261044 | 0.232932 | 0.232932 | 0.232932 | 0.232932 | 0 | 0 | 0 | 0.055215 | 0.20098 | 408 | 16 | 55 | 25.5 | 0.708589 | 0 | 0 | 0.142857 | 0 | 0 | 0.080882 | 0.058824 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.142857 | false | 0 | 0.214286 | 0 | 0.357143 | 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 |
9c68432891ca359406f39890007723907fdc1968 | 4,181 | py | Python | test_app/settings.py | Lenders-Cooperative/Django-DocuSign | 676d966065f6e1e64e1f0db9b7691b9f0c5d73a5 | [
"BSD-3-Clause"
] | null | null | null | test_app/settings.py | Lenders-Cooperative/Django-DocuSign | 676d966065f6e1e64e1f0db9b7691b9f0c5d73a5 | [
"BSD-3-Clause"
] | null | null | null | test_app/settings.py | Lenders-Cooperative/Django-DocuSign | 676d966065f6e1e64e1f0db9b7691b9f0c5d73a5 | [
"BSD-3-Clause"
] | 2 | 2021-12-03T19:40:35.000Z | 2021-12-03T19:47:59.000Z | #
# Created on Tue Dec 21 2021
#
# Copyright (c) 2021 Lenders Cooperative, a division of Summit Technology Group, Inc.
#
"""
Django settings for test_app project.
Generated by 'django-admin startproject' using Django 3.1.7.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
... | 27.326797 | 91 | 0.708443 | 482 | 4,181 | 5.977178 | 0.421162 | 0.067685 | 0.053454 | 0.060743 | 0.185699 | 0.166262 | 0.092676 | 0.092676 | 0.041652 | 0 | 0 | 0.015977 | 0.161684 | 4,181 | 152 | 92 | 27.506579 | 0.805991 | 0.261182 | 0 | 0 | 1 | 0.010989 | 0.54002 | 0.417184 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.065934 | 0.021978 | 0 | 0.021978 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
9c69f20de39f2f2cbc5461ca8a9902a34b2bc1f3 | 165 | py | Python | devopsipy/decorators.py | kharnam/devopsipy | c3379b1dd5f66e71c826045afde1702030e495d4 | [
"MIT"
] | null | null | null | devopsipy/decorators.py | kharnam/devopsipy | c3379b1dd5f66e71c826045afde1702030e495d4 | [
"MIT"
] | 2 | 2018-10-31T01:43:42.000Z | 2018-10-31T02:05:55.000Z | devopsipy/decorators.py | kharnam/devopsipy | c3379b1dd5f66e71c826045afde1702030e495d4 | [
"MIT"
] | null | null | null | """
Module to contain Pywork decorators
"""
__author__ = 'sergey kharnam'
import re
import time
import itertools
import logging
log = logging.getLogger(__name__)
| 12.692308 | 35 | 0.769697 | 20 | 165 | 5.95 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151515 | 165 | 12 | 36 | 13.75 | 0.85 | 0.212121 | 0 | 0 | 0 | 0 | 0.114754 | 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 | 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 |
9c6fcb64c497c5bc80d5ed65052770cfc9db0316 | 156 | py | Python | env.example.py | wilcoln/klazor | 8f3c40a03a7e61c07eceb6cdbe4d1bb05693727e | [
"MIT"
] | 8 | 2020-01-18T09:33:51.000Z | 2020-01-19T10:47:51.000Z | env.example.py | wilcoln/klazor | 8f3c40a03a7e61c07eceb6cdbe4d1bb05693727e | [
"MIT"
] | 8 | 2019-08-09T03:54:44.000Z | 2022-02-12T16:55:51.000Z | env.example.py | wilcoln/klazor | 8f3c40a03a7e61c07eceb6cdbe4d1bb05693727e | [
"MIT"
] | null | null | null | DATABASE_OPTIONS = {
'database': 'klazor',
'user': 'root',
'password': '',
'charset': 'utf8mb4',
}
HOSTS = ['127.0.0.1', '67.209.115.211']
| 17.333333 | 39 | 0.525641 | 18 | 156 | 4.5 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154472 | 0.211538 | 156 | 8 | 40 | 19.5 | 0.504065 | 0 | 0 | 0 | 0 | 0 | 0.429487 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.142857 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
9c70026f65fce93a4cf97730e00fb2afc1c7f5b5 | 818 | py | Python | misc/_local_settings.py | lzantal/djskell | cef71bab8a4dd163b632128666c315e228cc8f0f | [
"MIT"
] | 4 | 2018-08-06T19:18:03.000Z | 2019-09-26T14:52:01.000Z | misc/_local_settings.py | lzantal/djskell | cef71bab8a4dd163b632128666c315e228cc8f0f | [
"MIT"
] | 2 | 2018-08-06T19:17:57.000Z | 2020-02-12T22:59:40.000Z | misc/_local_settings.py | lzantal/djskell | cef71bab8a4dd163b632128666c315e228cc8f0f | [
"MIT"
] | null | null | null | """
Django settings.
Generated by 'django-admin startproject' using Django 2.2.4.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
#DEBUG = False
DEBUG = True
SERV... | 24.058824 | 64 | 0.640587 | 102 | 818 | 5.117647 | 0.588235 | 0.091954 | 0.10728 | 0.168582 | 0.17433 | 0.122605 | 0.122605 | 0.122605 | 0 | 0 | 0 | 0.03177 | 0.191932 | 818 | 33 | 65 | 24.787879 | 0.757943 | 0.581907 | 0 | 0 | 1 | 0 | 0.344512 | 0.088415 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
9c7c6f724eb34b62e9ef21f46c99bd86675f4bf5 | 295 | py | Python | mixin.py | delimatorres/foodbasket | 2f043d713337581be2165259cdbba4e4a24b656b | [
"Apache-2.0"
] | null | null | null | mixin.py | delimatorres/foodbasket | 2f043d713337581be2165259cdbba4e4a24b656b | [
"Apache-2.0"
] | null | null | null | mixin.py | delimatorres/foodbasket | 2f043d713337581be2165259cdbba4e4a24b656b | [
"Apache-2.0"
] | null | null | null | import signal
class KillableProcess(object):
def __init__(self):
self.interrupt = False
signal.signal(signal.SIGTERM, self._signal_handler)
signal.signal(signal.SIGINT, self._signal_handler)
def _signal_handler(self, sign, frame):
self.interrupt = True | 26.818182 | 59 | 0.698305 | 34 | 295 | 5.764706 | 0.470588 | 0.244898 | 0.183673 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210169 | 295 | 11 | 60 | 26.818182 | 0.841202 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9c7f2a0eaaf692b24bd48b78aa80933467348c66 | 80 | py | Python | uts/uts_17_aut_py/2/A.py | viad00/code_olymp | 90f20f9fd075e8967d02baf7554fcf24f4ae089c | [
"MIT"
] | null | null | null | uts/uts_17_aut_py/2/A.py | viad00/code_olymp | 90f20f9fd075e8967d02baf7554fcf24f4ae089c | [
"MIT"
] | null | null | null | uts/uts_17_aut_py/2/A.py | viad00/code_olymp | 90f20f9fd075e8967d02baf7554fcf24f4ae089c | [
"MIT"
] | null | null | null | ser = int(input())
mas = list(map(int, input().split()))
mas.sort()
print(*mas)
| 16 | 37 | 0.6125 | 13 | 80 | 3.769231 | 0.692308 | 0.326531 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1125 | 80 | 4 | 38 | 20 | 0.690141 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | null | 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 |
9c7f78a252c83665660e04bc5a8e1cea157db269 | 1,415 | py | Python | esque_wire/protocol/serializers/api/elect_preferred_leaders_request.py | real-digital/esque-wire | eb02c49f38b89ad5e5d25aad15fb4ad795e52807 | [
"MIT"
] | null | null | null | esque_wire/protocol/serializers/api/elect_preferred_leaders_request.py | real-digital/esque-wire | eb02c49f38b89ad5e5d25aad15fb4ad795e52807 | [
"MIT"
] | 7 | 2019-11-26T08:19:49.000Z | 2021-03-15T14:27:47.000Z | esque_wire/protocol/serializers/api/elect_preferred_leaders_request.py | real-digital/esque-wire | eb02c49f38b89ad5e5d25aad15fb4ad795e52807 | [
"MIT"
] | null | null | null | ###############################################################
# Autogenerated module. Please don't modify. #
# Edit according file in protocol_generator/templates instead #
###############################################################
from typing import Dict
from ...structs.api.elect_preferred_le... | 41.617647 | 109 | 0.733569 | 99 | 1,415 | 10.393939 | 0.494949 | 0.027211 | 0.025267 | 0.027211 | 0.083576 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01018 | 0.097527 | 1,415 | 33 | 110 | 42.878788 | 0.795615 | 0.084806 | 0 | 0 | 1 | 0 | 0.036973 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
92bcea551d4afd1053bbca8f841cc813051b6539 | 484 | py | Python | apps/extensions/migrations/0012_imports_path_urlfield_to_charfield.py | StepicOrg/stepik-apps | 5825bc9b2444ad4690681964d1bed172706f8796 | [
"Apache-2.0"
] | 5 | 2017-03-17T10:01:25.000Z | 2018-03-23T05:56:25.000Z | apps/extensions/migrations/0012_imports_path_urlfield_to_charfield.py | StepicOrg/stepik-apps | 5825bc9b2444ad4690681964d1bed172706f8796 | [
"Apache-2.0"
] | 4 | 2020-06-05T17:34:05.000Z | 2021-04-19T12:58:48.000Z | apps/extensions/migrations/0012_imports_path_urlfield_to_charfield.py | StepicOrg/stepik-apps | 5825bc9b2444ad4690681964d1bed172706f8796 | [
"Apache-2.0"
] | 2 | 2017-03-21T13:01:28.000Z | 2017-04-27T14:33:20.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-06-09 03:01
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('extensions', '0011_auto_20170502_0908'),
]
operations = [
migrations.AlterF... | 23.047619 | 71 | 0.630165 | 53 | 484 | 5.54717 | 0.830189 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.099174 | 0.25 | 484 | 20 | 72 | 24.2 | 0.710744 | 0.140496 | 0 | 0 | 1 | 0 | 0.150121 | 0.05569 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
92c39bcd73eb7b9f3010061b7c3106141036133d | 111 | py | Python | Coursera/Python for Everybody Specialization/Python for everybody basics/hourly rate.py | ejgarcia1991/Courses-and-other-non-professional-projects | 94794dd1d6cf626de174330311e3fde4d10cd460 | [
"MIT"
] | 1 | 2021-02-19T22:33:55.000Z | 2021-02-19T22:33:55.000Z | Coursera/Python for Everybody Specialization/Python for everybody basics/hourly rate.py | ejgarcia1991/Courses-and-other-non-professional-projects | 94794dd1d6cf626de174330311e3fde4d10cd460 | [
"MIT"
] | null | null | null | Coursera/Python for Everybody Specialization/Python for everybody basics/hourly rate.py | ejgarcia1991/Courses-and-other-non-professional-projects | 94794dd1d6cf626de174330311e3fde4d10cd460 | [
"MIT"
] | null | null | null | hrs = input("Enter Hours:")
rate = input("Enter rate:")
pay = float(hrs) * float(rate)
print("Pay: " +str(pay)) | 27.75 | 30 | 0.630631 | 17 | 111 | 4.117647 | 0.529412 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135135 | 111 | 4 | 31 | 27.75 | 0.729167 | 0 | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
92d06ca78c4166453aab94fc3bfe5663b950cc53 | 261 | py | Python | XMLHttpRequest/resources/shift-jis-html.py | watilde/web-platform-tests | 97e16bef6d6599ae805521e2007a9430a12aa144 | [
"BSD-3-Clause"
] | 4 | 2020-09-09T15:28:01.000Z | 2021-12-01T00:59:56.000Z | XMLHttpRequest/resources/shift-jis-html.py | watilde/web-platform-tests | 97e16bef6d6599ae805521e2007a9430a12aa144 | [
"BSD-3-Clause"
] | 1 | 2021-03-31T20:23:55.000Z | 2021-03-31T20:23:55.000Z | XMLHttpRequest/resources/shift-jis-html.py | watilde/web-platform-tests | 97e16bef6d6599ae805521e2007a9430a12aa144 | [
"BSD-3-Clause"
] | 1 | 2020-03-31T17:20:54.000Z | 2020-03-31T17:20:54.000Z | def main(request, response):
headers = [("Content-type", "text/html;charset=shift-jis")]
# Shift-JIS bytes for katakana TE SU TO ('test')
content = chr(0x83) + chr(0x65) + chr(0x83) + chr(0x58) + chr(0x83) + chr(0x67);
return headers, content
| 37.285714 | 85 | 0.636015 | 37 | 261 | 4.486486 | 0.675676 | 0.126506 | 0.180723 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085308 | 0.191571 | 261 | 6 | 86 | 43.5 | 0.701422 | 0.176245 | 0 | 0 | 0 | 0 | 0.183099 | 0.126761 | 0 | 0 | 0.112676 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
92dadd375392924dd104471b2991098481772c78 | 132 | py | Python | mspray/apps/reveal/__init__.py | onaio/mspray | b3e0f4b5855abbf0298de6b66f2e9f472f2bf838 | [
"Apache-2.0"
] | null | null | null | mspray/apps/reveal/__init__.py | onaio/mspray | b3e0f4b5855abbf0298de6b66f2e9f472f2bf838 | [
"Apache-2.0"
] | 76 | 2018-03-15T09:37:56.000Z | 2019-05-15T12:45:51.000Z | mspray/apps/reveal/__init__.py | onaio/mspray | b3e0f4b5855abbf0298de6b66f2e9f472f2bf838 | [
"Apache-2.0"
] | 1 | 2020-10-31T07:15:22.000Z | 2020-10-31T07:15:22.000Z | """init module for reveal app"""
# pylint: disable=invalid-name
default_app_config = "mspray.apps.reveal.apps.RevealConfig" # noqa
| 33 | 67 | 0.757576 | 18 | 132 | 5.444444 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106061 | 132 | 3 | 68 | 44 | 0.830508 | 0.462121 | 0 | 0 | 0 | 0 | 0.5625 | 0.5625 | 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 |
130f1aca25388c2ce8dd308d2bb872e5263f8305 | 140 | py | Python | Escolas/Curso em Video/Back-End/Curso de Python/Mundos/Mundo 01/Exercicio_16.py | c4st1lh0/Projetos-de-Aula | e8abc9f4bce6cc8dbc6d7fb5da0f549ac8ef5302 | [
"MIT"
] | null | null | null | Escolas/Curso em Video/Back-End/Curso de Python/Mundos/Mundo 01/Exercicio_16.py | c4st1lh0/Projetos-de-Aula | e8abc9f4bce6cc8dbc6d7fb5da0f549ac8ef5302 | [
"MIT"
] | null | null | null | Escolas/Curso em Video/Back-End/Curso de Python/Mundos/Mundo 01/Exercicio_16.py | c4st1lh0/Projetos-de-Aula | e8abc9f4bce6cc8dbc6d7fb5da0f549ac8ef5302 | [
"MIT"
] | null | null | null | import math
num = float(input('Digite um numero real qualquer: '))
print('O numero: {} tem a parte inteira {}'.format(num, math.trunc(num))) | 46.666667 | 73 | 0.7 | 22 | 140 | 4.454545 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128571 | 140 | 3 | 73 | 46.666667 | 0.803279 | 0 | 0 | 0 | 0 | 0 | 0.475177 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
131a15a3a8feaf503c53fb7ce15a6a9a4850f413 | 37,988 | py | Python | mfem/_par/gridfunc.py | mfem/PyMFEM | b7b7c3d3de1082eac1015e3a313cf513db06fd7b | [
"BSD-3-Clause"
] | 93 | 2017-03-01T16:45:33.000Z | 2022-03-27T22:10:33.000Z | mfem/_par/gridfunc.py | mfem/PyMFEM | b7b7c3d3de1082eac1015e3a313cf513db06fd7b | [
"BSD-3-Clause"
] | 64 | 2017-03-15T21:47:31.000Z | 2022-03-31T23:59:00.000Z | mfem/_par/gridfunc.py | mfem/PyMFEM | b7b7c3d3de1082eac1015e3a313cf513db06fd7b | [
"BSD-3-Clause"
] | 32 | 2017-03-02T22:13:38.000Z | 2022-03-26T13:09:31.000Z | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 4.0.2
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info as _swig_python_version_info
if _swig_python_version_info < (2, 7, 0):
raise Runtime... | 49.335065 | 201 | 0.740076 | 3,960 | 37,988 | 6.804545 | 0.095707 | 0.112818 | 0.04676 | 0.065464 | 0.502672 | 0.400913 | 0.234692 | 0.196207 | 0.152898 | 0.12436 | 0 | 0.004659 | 0.169475 | 37,988 | 769 | 202 | 49.39922 | 0.849414 | 0.352585 | 0 | 0.060976 | 1 | 0 | 0.00931 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.20935 | false | 0 | 0.077236 | 0.002033 | 0.70122 | 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 |
132bcf51e26ca1f03ed60b32fc0ad65159783864 | 107 | py | Python | examples/catapi/feeder.py | IniZio/py-skygear | 88479678f91e678fd931c28295189bfea2148c79 | [
"Apache-2.0"
] | 8 | 2016-06-24T03:26:45.000Z | 2018-05-12T09:06:33.000Z | examples/catapi/feeder.py | IniZio/py-skygear | 88479678f91e678fd931c28295189bfea2148c79 | [
"Apache-2.0"
] | 183 | 2016-03-23T08:03:28.000Z | 2018-08-14T05:49:45.000Z | examples/catapi/feeder.py | IniZio/py-skygear | 88479678f91e678fd931c28295189bfea2148c79 | [
"Apache-2.0"
] | 24 | 2016-03-21T02:39:39.000Z | 2020-09-17T12:28:58.000Z | def pick_food(name):
if name == "chima":
return "chicken"
else:
return "dry food"
| 15.285714 | 25 | 0.53271 | 13 | 107 | 4.307692 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.345794 | 107 | 6 | 26 | 17.833333 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.188679 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
133ed5289cb6b6aa42d9780aa225db43b59d7e06 | 154 | py | Python | HelloWorldPython/IfStatements.py | SamIge7/Tutorials | 7a3361768432a6493313d1f0ea1ccc8b2b916aa2 | [
"MIT"
] | null | null | null | HelloWorldPython/IfStatements.py | SamIge7/Tutorials | 7a3361768432a6493313d1f0ea1ccc8b2b916aa2 | [
"MIT"
] | null | null | null | HelloWorldPython/IfStatements.py | SamIge7/Tutorials | 7a3361768432a6493313d1f0ea1ccc8b2b916aa2 | [
"MIT"
] | null | null | null | hasGoodCredit = True
price = 1000000
deposit = 0
if hasGoodCredit:
deposit = price/10
else:
deposit = price/5
print(f"Deposit needed: £{deposit}") | 19.25 | 36 | 0.707792 | 21 | 154 | 5.238095 | 0.666667 | 0.218182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.087302 | 0.181818 | 154 | 8 | 36 | 19.25 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0.167742 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.125 | 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 |
13427c6b2da4367eae23b3d65430a2f826b58232 | 106,827 | py | Python | obswebsocket/requests.py | PanBartosz/obs-websocket-py | e92960a475d3f1096a4ea41763cbc776b23f0a37 | [
"MIT"
] | 123 | 2017-06-19T05:34:58.000Z | 2022-03-23T12:48:19.000Z | obswebsocket/requests.py | PanBartosz/obs-websocket-py | e92960a475d3f1096a4ea41763cbc776b23f0a37 | [
"MIT"
] | 67 | 2017-06-20T11:31:08.000Z | 2022-03-25T20:30:41.000Z | obswebsocket/requests.py | PanBartosz/obs-websocket-py | e92960a475d3f1096a4ea41763cbc776b23f0a37 | [
"MIT"
] | 51 | 2017-10-09T19:03:12.000Z | 2022-03-28T19:25:02.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# THIS FILE WAS GENERATED BY generate_classes.py - DO NOT EDIT #
# (Generated on 2020-12-20 18:26:33.661372) #
from .base_classes import Baserequests
class GetVersion(Baserequests):
"""Returns the latest version of the plugin and the API.
:Returns:
*vers... | 29.682412 | 417 | 0.601075 | 11,295 | 106,827 | 5.570075 | 0.092253 | 0.049592 | 0.034714 | 0.049592 | 0.521458 | 0.443733 | 0.362686 | 0.318419 | 0.260149 | 0.206631 | 0 | 0.003246 | 0.307797 | 106,827 | 3,598 | 418 | 29.690661 | 0.847564 | 0.508869 | 0 | 0.384283 | 1 | 0 | 0.141892 | 0.016215 | 0 | 0 | 0 | 0 | 0 | 1 | 0.240069 | false | 0 | 0.000864 | 0.134715 | 0.481002 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
1351156463c6a25e82b73e57ee20368b3d832d46 | 2,017 | py | Python | app/grandchallenge/challenges/migrations/0023_auto_20200123_1102.py | njmhendrix/grand-challenge.org | 9bc36f5e26561a78bd405e8ea5e4c0f86c95f011 | [
"Apache-2.0"
] | 1 | 2021-02-09T10:30:44.000Z | 2021-02-09T10:30:44.000Z | app/grandchallenge/challenges/migrations/0023_auto_20200123_1102.py | njmhendrix/grand-challenge.org | 9bc36f5e26561a78bd405e8ea5e4c0f86c95f011 | [
"Apache-2.0"
] | null | null | null | app/grandchallenge/challenges/migrations/0023_auto_20200123_1102.py | njmhendrix/grand-challenge.org | 9bc36f5e26561a78bd405e8ea5e4c0f86c95f011 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.0.2 on 2020-01-23 11:02
import re
import django.contrib.postgres.fields.citext
import django.core.validators
from django.db import migrations
import grandchallenge.challenges.models
class Migration(migrations.Migration):
dependencies = [
("challenges", "0022_auto_20200121_1639"... | 36.017857 | 103 | 0.543877 | 182 | 2,017 | 5.923077 | 0.434066 | 0.050093 | 0.139147 | 0.141002 | 0.715213 | 0.684601 | 0.684601 | 0.684601 | 0.684601 | 0.684601 | 0 | 0.030374 | 0.363411 | 2,017 | 55 | 104 | 36.672727 | 0.80919 | 0.02231 | 0 | 0.723404 | 1 | 0 | 0.209645 | 0.011675 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.106383 | 0 | 0.170213 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1354ab456ba9280a4363560bf56997305ed54a5f | 3,692 | py | Python | BaseTools/Source/Python/UPT/Object/Parser/InfMisc.py | KaoTuz/edk2-stable202108 | 49d9306e7bf64b2f07d8473be1f2faea49d0a012 | [
"Python-2.0",
"Zlib",
"BSD-2-Clause",
"MIT",
"BSD-2-Clause-Patent",
"BSD-3-Clause"
] | 9 | 2021-07-26T17:02:51.000Z | 2021-12-30T10:49:46.000Z | BaseTools/Source/Python/UPT/Object/Parser/InfMisc.py | ESdove/edk2_exploring | 34ff32b45f43d233d9696e7c8e3de68ea3000a7b | [
"Python-2.0",
"Zlib",
"BSD-2-Clause",
"MIT",
"BSD-2-Clause-Patent",
"BSD-3-Clause"
] | null | null | null | BaseTools/Source/Python/UPT/Object/Parser/InfMisc.py | ESdove/edk2_exploring | 34ff32b45f43d233d9696e7c8e3de68ea3000a7b | [
"Python-2.0",
"Zlib",
"BSD-2-Clause",
"MIT",
"BSD-2-Clause-Patent",
"BSD-3-Clause"
] | null | null | null | ## @file
# This file is used to define class objects of INF file miscellaneous.
# Include BootMode/HOB/Event and others. It will consumed by InfParser.
#
# Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>
#
# SPDX-License-Identifier: BSD-2-Clause-Patent
'''
InfMisc
'''
import Logger.Log as Logge... | 25.818182 | 77 | 0.628115 | 359 | 3,692 | 6.384401 | 0.320334 | 0.073298 | 0.06719 | 0.026178 | 0.287086 | 0.247819 | 0.247819 | 0.206806 | 0.206806 | 0.206806 | 0 | 0.004913 | 0.283315 | 3,692 | 142 | 78 | 26 | 0.8613 | 0.103196 | 0 | 0.408602 | 0 | 0 | 0.002748 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.290323 | false | 0 | 0.053763 | 0.11828 | 0.516129 | 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 |
135a363584e253a0fd487ab5902e769a0e03931f | 1,236 | py | Python | src/part_2_automation/test_test1.py | AndreiHustiuc/IT_Factory_Course | c6f3e4a9282a1c19c0f52c79f0c81f026814a02a | [
"MIT"
] | null | null | null | src/part_2_automation/test_test1.py | AndreiHustiuc/IT_Factory_Course | c6f3e4a9282a1c19c0f52c79f0c81f026814a02a | [
"MIT"
] | null | null | null | src/part_2_automation/test_test1.py | AndreiHustiuc/IT_Factory_Course | c6f3e4a9282a1c19c0f52c79f0c81f026814a02a | [
"MIT"
] | 1 | 2022-03-16T10:39:03.000Z | 2022-03-16T10:39:03.000Z | # Generated by Selenium IDE
import pytest
import time
import json
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.support import expected_conditions
from selenium.webdriver.support.wait import WebDriverWa... | 38.625 | 89 | 0.768608 | 166 | 1,236 | 5.608434 | 0.415663 | 0.118153 | 0.135338 | 0.112782 | 0.354458 | 0.298604 | 0.298604 | 0.186896 | 0.094522 | 0 | 0 | 0.020018 | 0.110841 | 1,236 | 31 | 90 | 39.870968 | 0.827116 | 0.020227 | 0 | 0 | 1 | 0 | 0.136476 | 0.019851 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115385 | false | 0 | 0.384615 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
135f9b393c2da1b1ae7cb6b4ea51c6e47c87c3b3 | 2,976 | py | Python | web3/_utils/module_testing/math_contract.py | y19818/web3.py | 32a85a287ab63220d1e0c06d77be74de595ff02f | [
"MIT"
] | null | null | null | web3/_utils/module_testing/math_contract.py | y19818/web3.py | 32a85a287ab63220d1e0c06d77be74de595ff02f | [
"MIT"
] | null | null | null | web3/_utils/module_testing/math_contract.py | y19818/web3.py | 32a85a287ab63220d1e0c06d77be74de595ff02f | [
"MIT"
] | null | null | null |
MATH_BYTECODE = (
"606060405261022e806100126000396000f360606040523615610074576000357c01000000000000"
"000000000000000000000000000000000000000000009004806316216f391461007657806361bc22"
"1a146100995780637cf5dab0146100bc578063a5f3c23b146100e8578063d09de08a1461011d5780"
"63dcf537b11461014057610074565b... | 32.347826 | 87 | 0.576949 | 118 | 2,976 | 14.533898 | 0.355932 | 0.038484 | 0.055394 | 0.067055 | 0.197085 | 0.197085 | 0.188338 | 0.165598 | 0.110787 | 0.110787 | 0 | 0.512966 | 0.287298 | 2,976 | 91 | 88 | 32.703297 | 0.295615 | 0 | 0 | 0.477273 | 0 | 0 | 0.574549 | 0.399445 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 0 | 0 | 0 | 0 | 0 | 3 |
13662d9d6240c63c9a734dfc856cbc7f4107d5e2 | 160 | py | Python | objects/fun_return.py | padmacho/pythontutorial | 80c58d2d6efc0c3598f92b627338c6cd9fda1759 | [
"Apache-2.0"
] | null | null | null | objects/fun_return.py | padmacho/pythontutorial | 80c58d2d6efc0c3598f92b627338c6cd9fda1759 | [
"Apache-2.0"
] | null | null | null | objects/fun_return.py | padmacho/pythontutorial | 80c58d2d6efc0c3598f92b627338c6cd9fda1759 | [
"Apache-2.0"
] | null | null | null | def modify(y):
return y # returns same reference. No new object is created
x = [1, 2, 3]
y = modify(x)
print("x == y", x == y)
print("x == y", x is y) | 26.666667 | 65 | 0.55625 | 31 | 160 | 2.870968 | 0.548387 | 0.067416 | 0.157303 | 0.179775 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025424 | 0.2625 | 160 | 6 | 66 | 26.666667 | 0.728814 | 0.3 | 0 | 0 | 0 | 0 | 0.113208 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0.166667 | 0.333333 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 3 |
136832386a64df8b748feecd13c99a4dc30fc9d5 | 735 | py | Python | test/test_utils.py | by46/recipe | 203abd2141a536b66b4e57d073169a49395be1f0 | [
"MIT"
] | null | null | null | test/test_utils.py | by46/recipe | 203abd2141a536b66b4e57d073169a49395be1f0 | [
"MIT"
] | null | null | null | test/test_utils.py | by46/recipe | 203abd2141a536b66b4e57d073169a49395be1f0 | [
"MIT"
] | null | null | null | import unittest
from recipe import utils
class UtilTestCase(unittest.TestCase):
def test_valid_project_slug(self):
project_slug = "Recipe0123456789_mock"
self.assertTrue(utils.valid_project_slug(project_slug))
project_slug = 'Recipe00000000000000000000000000000000000000000000'
... | 33.409091 | 77 | 0.719728 | 70 | 735 | 7.2 | 0.285714 | 0.349206 | 0.321429 | 0.392857 | 0.549603 | 0.549603 | 0.549603 | 0.549603 | 0.549603 | 0.549603 | 0 | 0.166948 | 0.193197 | 735 | 21 | 78 | 35 | 0.682968 | 0 | 0 | 0.357143 | 0 | 0 | 0.189076 | 0.170868 | 0 | 0 | 0 | 0 | 0.357143 | 1 | 0.071429 | false | 0 | 0.142857 | 0 | 0.285714 | 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 |
13716a3c1d81e757e4d87853e2f35128b1e83ff1 | 5,329 | py | Python | src/pkgcore/restrictions/restriction.py | mgorny/pkgcore | ab4a718aa1626f4edeb385383f5595a1e262b0dc | [
"BSD-3-Clause"
] | null | null | null | src/pkgcore/restrictions/restriction.py | mgorny/pkgcore | ab4a718aa1626f4edeb385383f5595a1e262b0dc | [
"BSD-3-Clause"
] | null | null | null | src/pkgcore/restrictions/restriction.py | mgorny/pkgcore | ab4a718aa1626f4edeb385383f5595a1e262b0dc | [
"BSD-3-Clause"
] | null | null | null | # Copyright: 2005-2012 Brian Harring <ferringb@gmail.com
# Copyright: 2006 Marien Zwart <marienz@gentoo.org>
# License: BSD/GPL2
"""
base restriction class
"""
from functools import partial
from snakeoil import caching, klass
from snakeoil.currying import pretty_docs
class base(object, metaclass=caching.WeakInstMe... | 27.611399 | 78 | 0.627698 | 645 | 5,329 | 4.869767 | 0.268217 | 0.050939 | 0.026743 | 0.020694 | 0.279529 | 0.24801 | 0.212034 | 0.180834 | 0.161095 | 0.099968 | 0 | 0.004034 | 0.25577 | 5,329 | 192 | 79 | 27.755208 | 0.787948 | 0.289923 | 0 | 0.308511 | 0 | 0 | 0.078687 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.255319 | false | 0 | 0.031915 | 0.170213 | 0.648936 | 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 |
137960c813f4163613ba4247cf3f11614175c045 | 320 | py | Python | Lekcija08/script01.py | islamspahic/python-uup | ea7c9c655ad8e678bca5ee52138836732266799f | [
"Apache-2.0"
] | null | null | null | Lekcija08/script01.py | islamspahic/python-uup | ea7c9c655ad8e678bca5ee52138836732266799f | [
"Apache-2.0"
] | null | null | null | Lekcija08/script01.py | islamspahic/python-uup | ea7c9c655ad8e678bca5ee52138836732266799f | [
"Apache-2.0"
] | null | null | null | tajniBroj = 51
broj = 2
while tajniBroj != broj:
broj = int(input("Pogodite tajni broj: "))
if tajniBroj == broj:
print("Pogodak!")
elif tajniBroj < broj:
print("Tajni broj je manji od tog broja.")
else:
print("Tajni broj je veci od tog broja.")
print("Kraj programa")
| 21.333333 | 50 | 0.590625 | 41 | 320 | 4.609756 | 0.536585 | 0.206349 | 0.190476 | 0.169312 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013216 | 0.290625 | 320 | 14 | 51 | 22.857143 | 0.819383 | 0 | 0 | 0 | 0 | 0 | 0.334375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.363636 | 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 |
137bf77da0a4c318b41b184deddd1c0849f9d010 | 11,196 | py | Python | verification/tb_template.py | ahmednofal/DFFRAM | 7d7ebc28befe12ec3f232c0d2f5b8ea786227d45 | [
"Apache-2.0"
] | null | null | null | verification/tb_template.py | ahmednofal/DFFRAM | 7d7ebc28befe12ec3f232c0d2f5b8ea786227d45 | [
"Apache-2.0"
] | null | null | null | verification/tb_template.py | ahmednofal/DFFRAM | 7d7ebc28befe12ec3f232c0d2f5b8ea786227d45 | [
"Apache-2.0"
] | null | null | null | # Copyright ©2020-2021 The American University in Cairo and the Cloud V Project.
#
# This file is part of the DFFRAM Memory Compiler.
# See https://github.com/Cloud-V/DFFRAM for further info.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the Li... | 27.108959 | 91 | 0.530368 | 1,579 | 11,196 | 3.616213 | 0.155161 | 0.009457 | 0.012609 | 0.014711 | 0.741506 | 0.711033 | 0.648336 | 0.616112 | 0.583888 | 0.578984 | 0 | 0.05727 | 0.296624 | 11,196 | 412 | 92 | 27.174757 | 0.667683 | 0.062969 | 0 | 0.713864 | 0 | 0.041298 | 0.964197 | 0.164121 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.00295 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
139b3faa5c126c4a50efcad5c0824965049d5697 | 258 | py | Python | venv/lib/python3.7/site-packages/leancloud/engine/utils.py | corgiclub/CorgiBot_telegram | a63d91a74ee497b9a405e93bd3b303367ef95268 | [
"MIT"
] | null | null | null | venv/lib/python3.7/site-packages/leancloud/engine/utils.py | corgiclub/CorgiBot_telegram | a63d91a74ee497b9a405e93bd3b303367ef95268 | [
"MIT"
] | null | null | null | venv/lib/python3.7/site-packages/leancloud/engine/utils.py | corgiclub/CorgiBot_telegram | a63d91a74ee497b9a405e93bd3b303367ef95268 | [
"MIT"
] | null | null | null | # coding: utf-8
import time
import hashlib
import leancloud
from leancloud._compat import to_bytes
__author__ = 'asaka <lan@leancloud.rocks>'
def sign_by_key(timestamp, key):
return hashlib.md5(to_bytes('{0}{1}'.format(timestamp, key))).hexdigest()
| 18.428571 | 77 | 0.748062 | 37 | 258 | 4.972973 | 0.702703 | 0.076087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017699 | 0.124031 | 258 | 13 | 78 | 19.846154 | 0.79646 | 0.050388 | 0 | 0 | 0 | 0 | 0.135802 | 0.08642 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.571429 | 0.142857 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
13a7639121bf30f43e2268fe97c114969714293e | 1,225 | py | Python | listener/src/ethereum_connection.py | NicolasMenendez/oracles-dashboard | 789e4a771c9f7064a19a85ef1b4f44bcbbac1a10 | [
"MIT"
] | null | null | null | listener/src/ethereum_connection.py | NicolasMenendez/oracles-dashboard | 789e4a771c9f7064a19a85ef1b4f44bcbbac1a10 | [
"MIT"
] | null | null | null | listener/src/ethereum_connection.py | NicolasMenendez/oracles-dashboard | 789e4a771c9f7064a19a85ef1b4f44bcbbac1a10 | [
"MIT"
] | 1 | 2020-01-17T12:38:39.000Z | 2020-01-17T12:38:39.000Z | import json
import web3
class EthereumConnection():
def __init__(self, url_node):
self._url_node = url_node
self._node_provider = web3.HTTPProvider(self._url_node)
self._w3 = web3.Web3(self._node_provider)
@property
def w3(self):
return self._w3
@property
def url_... | 22.685185 | 86 | 0.646531 | 153 | 1,225 | 4.751634 | 0.169935 | 0.110041 | 0.134801 | 0.053645 | 0.074278 | 0.074278 | 0 | 0 | 0 | 0 | 0 | 0.013319 | 0.26449 | 1,225 | 53 | 87 | 23.113208 | 0.793563 | 0 | 0 | 0.225 | 0 | 0 | 0.000816 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.05 | 0.2 | 0.55 | 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 |
13cfe935b3ae2ffb5842e273c8ff7ca4cd002f6d | 2,753 | py | Python | userbot/plugins/alive.py | iraqis1/irqis | d95303c48b5f15dbe814454a48d847e838793713 | [
"MIT"
] | null | null | null | userbot/plugins/alive.py | iraqis1/irqis | d95303c48b5f15dbe814454a48d847e838793713 | [
"MIT"
] | null | null | null | userbot/plugins/alive.py | iraqis1/irqis | d95303c48b5f15dbe814454a48d847e838793713 | [
"MIT"
] | null | null | null | """Check if userbot alive. If you change these, you become the gayest gay such that even the gay world will disown you."""
import asyncio
from telethon import events
from telethon.tl.types import ChannelParticipantsAdmins
from platform import uname
from userbot import ALIVE_NAME
from userbot.utils import admin_cm... | 26.219048 | 123 | 0.521976 | 419 | 2,753 | 4.381862 | 0.50358 | 0.245098 | 0.269608 | 0.026144 | 0.025054 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000437 | 0.169633 | 2,753 | 105 | 124 | 26.219048 | 0.625547 | 0.042136 | 0 | 0.45 | 0 | 0 | 0.749494 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.06 | 0 | 0.06 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
13d331fdd92f5e0cc56507427afe5e4da7edb40a | 636 | py | Python | utils/src/adventofcode/utils/Point3D.py | dh256/adventofcode | 428eec13f4cbf153333a0e359bcff23070ef6d27 | [
"MIT"
] | null | null | null | utils/src/adventofcode/utils/Point3D.py | dh256/adventofcode | 428eec13f4cbf153333a0e359bcff23070ef6d27 | [
"MIT"
] | null | null | null | utils/src/adventofcode/utils/Point3D.py | dh256/adventofcode | 428eec13f4cbf153333a0e359bcff23070ef6d27 | [
"MIT"
] | null | null | null | class Point3D:
def __init__(self,x,y,z):
self.x = x
self.y = y
self.z = z
'''
Returns the distance between two 3D points
'''
def distance(self, value):
return abs(self.x - value.x) + abs(self.y - value.y) + abs(self.z - value.z)
def __eq__(self, value):
... | 27.652174 | 84 | 0.561321 | 103 | 636 | 3.271845 | 0.23301 | 0.103858 | 0.071217 | 0.097923 | 0.189911 | 0.106825 | 0.106825 | 0 | 0 | 0 | 0 | 0.006522 | 0.27673 | 636 | 23 | 85 | 27.652174 | 0.726087 | 0 | 0 | 0 | 0 | 0 | 0.048359 | 0.048359 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0.333333 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
13d646c36a3c1b8a275d4d104aa95c23081163a3 | 2,378 | py | Python | sdk/python/pulumi_azure_native/labservices/v20181015/__init__.py | pulumi-bot/pulumi-azure-native | f7b9490b5211544318e455e5cceafe47b628e12c | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/labservices/v20181015/__init__.py | pulumi-bot/pulumi-azure-native | f7b9490b5211544318e455e5cceafe47b628e12c | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/labservices/v20181015/__init__.py | pulumi-bot/pulumi-azure-native | f7b9490b5211544318e455e5cceafe47b628e12c | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
# Export this package's modules as members:
from ._enums import *
from .environment import *
from .environment_setting import *
from .gallery_image imp... | 38.983607 | 102 | 0.710681 | 282 | 2,378 | 5.794326 | 0.315603 | 0.128519 | 0.087515 | 0.132803 | 0.405753 | 0.271726 | 0.211138 | 0.211138 | 0.211138 | 0.211138 | 0 | 0.029874 | 0.197645 | 2,378 | 60 | 103 | 39.633333 | 0.82652 | 0.085366 | 0 | 0 | 1 | 0 | 0.151152 | 0.13318 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06383 | false | 0 | 0.510638 | 0.021277 | 0.765957 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
13e0862967d39493794d0afe2c6e9020dad2d87c | 777 | py | Python | tests/utils/date_utils.py | asuol/worky | 362257e77486af05941cc977055c01e49b09a2dd | [
"MIT"
] | null | null | null | tests/utils/date_utils.py | asuol/worky | 362257e77486af05941cc977055c01e49b09a2dd | [
"MIT"
] | null | null | null | tests/utils/date_utils.py | asuol/worky | 362257e77486af05941cc977055c01e49b09a2dd | [
"MIT"
] | null | null | null | from datetime import datetime, timedelta
due_date_format = '%Y-%m-%d'
datepicker_date_format = '%m%d%Y'
def current_date():
return datetime.utcnow().strftime(due_date_format)
def datepicker_current_date():
return datetime.utcnow().strftime(datepicker_date_format)
def _date_from_today(days_to_add):
r... | 25.064516 | 78 | 0.776062 | 110 | 777 | 5.018182 | 0.190909 | 0.163043 | 0.097826 | 0.153986 | 0.585145 | 0.507246 | 0.271739 | 0.271739 | 0.210145 | 0.210145 | 0 | 0 | 0.135135 | 777 | 30 | 79 | 25.9 | 0.821429 | 0 | 0 | 0 | 0 | 0 | 0.018018 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0.0625 | 0.375 | 0.8125 | 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 |
13e172837fb61cdf3f4fe7914fb4c72959b8c9f8 | 497 | py | Python | zindi/docs/utils/n_subimissions_per_day.py | eaedk/testing-zindi-package | 5aef7375a629b328fa8ecf9c4559e2897611a1e9 | [
"MIT"
] | 6 | 2020-09-07T17:56:49.000Z | 2021-12-09T12:34:01.000Z | zindi/docs/utils/n_subimissions_per_day.py | eaedk/testing-zindi-package | 5aef7375a629b328fa8ecf9c4559e2897611a1e9 | [
"MIT"
] | 2 | 2021-02-24T11:56:48.000Z | 2021-03-30T14:40:45.000Z | zindi/docs/utils/n_subimissions_per_day.py | eaedk/testing-zindi-package | 5aef7375a629b328fa8ecf9c4559e2897611a1e9 | [
"MIT"
] | 4 | 2020-11-01T00:06:36.000Z | 2021-11-19T19:20:52.000Z | def n_subimissions_per_day( url, headers ):
"""Get the number of submissions we can make per day for the selected challenge.
Parameters
----------
url : {'prize', 'points', 'knowledge' , 'all'}, default='all'
The reward of the challenges for top challengers.
headers : dictionary ,
T... | 35.5 | 84 | 0.629779 | 64 | 497 | 4.828125 | 0.609375 | 0.058252 | 0.071197 | 0.142395 | 0.239482 | 0.239482 | 0.239482 | 0.239482 | 0.239482 | 0 | 0 | 0.00271 | 0.257545 | 497 | 14 | 85 | 35.5 | 0.834688 | 0.800805 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | false | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
13ebac2480a38d6864e7de863e165c5d96c0e1f7 | 10,928 | py | Python | tests/test_crypto.py | kimtaehong/PythonForWindows | d04eed1754e2e23474213b89580d68e1b73c3fe4 | [
"BSD-3-Clause"
] | null | null | null | tests/test_crypto.py | kimtaehong/PythonForWindows | d04eed1754e2e23474213b89580d68e1b73c3fe4 | [
"BSD-3-Clause"
] | null | null | null | tests/test_crypto.py | kimtaehong/PythonForWindows | d04eed1754e2e23474213b89580d68e1b73c3fe4 | [
"BSD-3-Clause"
] | null | null | null | import pytest
import windows.crypto
import windows.generated_def as gdef
import windows.crypto.generation
from .pfwtest import *
pytestmark = pytest.mark.usefixtures('check_for_gc_garbage')
TEST_CERT = b"""
MIIBwTCCASqgAwIBAgIQG46Uyws+67ZBOfPJCbFrRjANBgkqhkiG9w0BAQsFADAfMR0wGwYDVQQD
ExRQeXRob25Gb3JXaW5kb3dzVGVzdDAe... | 45.344398 | 132 | 0.811585 | 1,147 | 10,928 | 7.569311 | 0.343505 | 0.052407 | 0.019696 | 0.020272 | 0.158258 | 0.150772 | 0.147201 | 0.136835 | 0.136835 | 0.106312 | 0 | 0.056411 | 0.120791 | 10,928 | 240 | 133 | 45.533333 | 0.847211 | 0.140099 | 0 | 0.14881 | 1 | 0.005952 | 0.393246 | 0.352853 | 0 | 1 | 0 | 0.004167 | 0.130952 | 1 | 0.083333 | false | 0.071429 | 0.077381 | 0.017857 | 0.178571 | 0.005952 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
b918bb151415e9d667f5286334be578684cceb18 | 10,754 | py | Python | espoem_facts/facts.py | emre/espoem_facts | 0d7164dcfe8a82e1f142929b1e00c3a85f29f101 | [
"MIT"
] | null | null | null | espoem_facts/facts.py | emre/espoem_facts | 0d7164dcfe8a82e1f142929b1e00c3a85f29f101 | [
"MIT"
] | null | null | null | espoem_facts/facts.py | emre/espoem_facts | 0d7164dcfe8a82e1f142929b1e00c3a85f29f101 | [
"MIT"
] | 1 | 2018-07-19T18:44:09.000Z | 2018-07-19T18:44:09.000Z | FACTS = ['espoem multiplied by zero still equals espoem.',
'There is no theory of evolution. Just a list of creatures espoem has allowed to live.',
'espoem does not sleep. He waits.',
'Alexander Graham Bell had three missed calls from espoem when he invented the telephone.',
'espoem ... | 102.419048 | 232 | 0.702343 | 1,704 | 10,754 | 4.432512 | 0.433685 | 0.013107 | 0.006355 | 0.006752 | 0.042367 | 0.032305 | 0.022772 | 0.013769 | 0.013769 | 0.013769 | 0 | 0.003183 | 0.240469 | 10,754 | 104 | 233 | 103.403846 | 0.921523 | 0 | 0 | 0 | 0 | 0.365385 | 0.874279 | 0 | 0 | 0 | 0 | 0 | 0.009615 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b938dd2d4297c0de33a03a4e075f88143c4fb4d8 | 942 | py | Python | setup.py | glibin/natasha | 4f5c153f754759c189779f9879decd8d218356af | [
"MIT"
] | 1 | 2020-01-16T14:02:01.000Z | 2020-01-16T14:02:01.000Z | setup.py | glibin/natasha | 4f5c153f754759c189779f9879decd8d218356af | [
"MIT"
] | null | null | null | setup.py | glibin/natasha | 4f5c153f754759c189779f9879decd8d218356af | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup(
name='natasha',
version='0.2.0',
description='Named-entity recognition for russian language',
url='https://github.com/bureaucratic-labs/natasha',
author='Dmitry Veselov',
author_email='d.a.veselov@yandex.ru',
license='MIT',
classifiers=... | 29.4375 | 97 | 0.59448 | 95 | 942 | 5.842105 | 0.642105 | 0.136937 | 0.18018 | 0.187387 | 0.097297 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020144 | 0.262208 | 942 | 31 | 98 | 30.387097 | 0.778417 | 0 | 0 | 0.1 | 0 | 0 | 0.523355 | 0.022293 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.033333 | 0 | 0.033333 | 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 |
b9409e44daa0d7a262748b347f053c849e397b73 | 291 | py | Python | homeassistant/components/todoist/types.py | MrDelik/core | 93a66cc357b226389967668441000498a10453bb | [
"Apache-2.0"
] | 30,023 | 2016-04-13T10:17:53.000Z | 2020-03-02T12:56:31.000Z | homeassistant/components/todoist/types.py | MrDelik/core | 93a66cc357b226389967668441000498a10453bb | [
"Apache-2.0"
] | 24,710 | 2016-04-13T08:27:26.000Z | 2020-03-02T12:59:13.000Z | homeassistant/components/todoist/types.py | MrDelik/core | 93a66cc357b226389967668441000498a10453bb | [
"Apache-2.0"
] | 11,956 | 2016-04-13T18:42:31.000Z | 2020-03-02T09:32:12.000Z | """Types for the Todoist component."""
from __future__ import annotations
from typing import TypedDict
class DueDate(TypedDict):
"""Dict representing a due date in a todoist api response."""
date: str
is_recurring: bool
lang: str
string: str
timezone: str | None
| 19.4 | 65 | 0.697595 | 38 | 291 | 5.210526 | 0.763158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.223368 | 291 | 14 | 66 | 20.785714 | 0.876106 | 0.302406 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
b943636ba1006005819134b02620af2faa23d559 | 84 | py | Python | python/testData/debug/test_ignore_lib.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/debug/test_ignore_lib.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/debug/test_ignore_lib.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | from calendar import setfirstweekday
stopped_in_user_file = True
setfirstweekday(15) | 28 | 36 | 0.880952 | 11 | 84 | 6.454545 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025974 | 0.083333 | 84 | 3 | 37 | 28 | 0.896104 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 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 |
b95d4a692bcb2991f35a3f589cde3570c4033e09 | 29,218 | py | Python | metrics/pointops/pointops_util.py | JiazeWang/SP-GAN | 455003f78b1160ebe0a2056005b069808c0df35b | [
"MIT"
] | 73 | 2021-05-11T12:00:29.000Z | 2022-03-31T09:40:12.000Z | metrics/pointops/pointops_util.py | JiazeWang/SP-GAN | 455003f78b1160ebe0a2056005b069808c0df35b | [
"MIT"
] | 6 | 2021-08-18T13:03:43.000Z | 2022-03-30T04:48:29.000Z | metrics/pointops/pointops_util.py | JiazeWang/SP-GAN | 455003f78b1160ebe0a2056005b069808c0df35b | [
"MIT"
] | 13 | 2021-08-28T20:09:13.000Z | 2022-03-20T12:42:51.000Z | from typing import Tuple
import torch
from torch.autograd import Function
import torch.nn as nn
from metrics.pointops import pointops_cuda
import numpy as np
class FurthestSampling(Function):
@staticmethod
def forward(ctx, xyz, m):
"""
input: xyz: (b, n, 3) and n > m, m: int32
outpu... | 37.458974 | 145 | 0.585906 | 3,863 | 29,218 | 4.285271 | 0.052032 | 0.033345 | 0.020116 | 0.010149 | 0.782953 | 0.752265 | 0.71898 | 0.682131 | 0.66274 | 0.652773 | 0 | 0.011793 | 0.294784 | 29,218 | 779 | 146 | 37.50706 | 0.791604 | 0.261448 | 0 | 0.632212 | 0 | 0 | 0.013866 | 0 | 0 | 0 | 0 | 0 | 0.081731 | 1 | 0.108173 | false | 0 | 0.016827 | 0.026442 | 0.269231 | 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 |
b97e1419e0e45b84ecc462227c812c10beb92718 | 181 | py | Python | YouTube/CursoEmVideo/python/ex012.py | Fh-Shadow/Progamando | f496d83c36e9a079ed06b4e7c34396c57f539de9 | [
"MIT"
] | null | null | null | YouTube/CursoEmVideo/python/ex012.py | Fh-Shadow/Progamando | f496d83c36e9a079ed06b4e7c34396c57f539de9 | [
"MIT"
] | null | null | null | YouTube/CursoEmVideo/python/ex012.py | Fh-Shadow/Progamando | f496d83c36e9a079ed06b4e7c34396c57f539de9 | [
"MIT"
] | null | null | null | a = float(input('Qual é o preço do produto? R$'))
d = a - (a * 23 / 100)
print('O produto que custava R${:.2f}, na promoção de 23% de desconto vai custar: R${:.2f}' .format(a, d))
| 45.25 | 106 | 0.607735 | 35 | 181 | 3.142857 | 0.685714 | 0.054545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061644 | 0.19337 | 181 | 3 | 107 | 60.333333 | 0.691781 | 0 | 0 | 0 | 0 | 0.333333 | 0.618785 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 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 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b99506d26f9716e398b3a3724d393185a9900942 | 1,216 | py | Python | hard-gists/98bb452dc14e8c40e403/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 21 | 2019-07-08T08:26:45.000Z | 2022-01-24T23:53:25.000Z | hard-gists/98bb452dc14e8c40e403/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 5 | 2019-06-15T14:47:47.000Z | 2022-02-26T05:02:56.000Z | hard-gists/98bb452dc14e8c40e403/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 17 | 2019-05-16T03:50:34.000Z | 2021-01-14T14:35:12.000Z | from scryptos import *
p1 = 32581479300404876772405716877547
p2 = 27038194053540661979045656526063
p3 = 26440615366395242196516853423447
n = p1*p2*p3
e = 3
c = int(open("flag.enc", "rb").read().encode("hex"), 16)
# from User's Guide to PARI/GP, nth_root function
sqrtnall = 'sqrtnall(x,n)={my(V,r,z,r2);r=sqrtn(x,n,&z... | 39.225806 | 224 | 0.663651 | 181 | 1,216 | 4.430939 | 0.441989 | 0.009975 | 0.067332 | 0.078554 | 0.160848 | 0.160848 | 0.160848 | 0.160848 | 0.160848 | 0.160848 | 0 | 0.333959 | 0.123355 | 1,216 | 30 | 225 | 40.533333 | 0.418386 | 0.038651 | 0 | 0 | 0 | 0.055556 | 0.384785 | 0.312018 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.055556 | null | null | 0.055556 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b9a3c97262cf3c50a695832e8941374463a78067 | 901 | py | Python | tests/test_MaskedArrayCollection.py | ahaldane/NDducktype_tests | 4876416e5fbff7ba0d85445c0eeae432d6e80014 | [
"BSD-3-Clause"
] | 3 | 2020-06-18T14:18:39.000Z | 2021-07-22T18:05:52.000Z | tests/test_MaskedArrayCollection.py | ahaldane/NDducktype_tests | 4876416e5fbff7ba0d85445c0eeae432d6e80014 | [
"BSD-3-Clause"
] | 2 | 2020-07-19T15:44:09.000Z | 2020-07-28T23:22:21.000Z | tests/test_MaskedArrayCollection.py | ahaldane/NDducktype_tests | 4876416e5fbff7ba0d85445c0eeae432d6e80014 | [
"BSD-3-Clause"
] | 2 | 2019-06-20T00:20:13.000Z | 2020-09-20T21:42:52.000Z | #!/usr/bin/env python
from ndarray_ducktypes.ArrayCollection import ArrayCollection
from ndarray_ducktypes.MaskedArray import MaskedArray
from ndarray_ducktypes.MaskedArrayCollection import MaskedArrayCollection
import numpy as np
# Tests for Masked ArrayCollections.
#
# First try: Simply make an arraycollection of Ma... | 31.068966 | 75 | 0.738069 | 125 | 901 | 5.288 | 0.464 | 0.068079 | 0.075643 | 0.06354 | 0.114977 | 0.114977 | 0.114977 | 0.114977 | 0.114977 | 0.114977 | 0 | 0.022699 | 0.119867 | 901 | 28 | 76 | 32.178571 | 0.810845 | 0.719201 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
b9aa6c3c1ecb2355209fd4db4f58118befbffa8a | 225 | py | Python | python-basic-grammer/python-basic/02-python-variables-and-string/string_strip_demo.py | jinrunheng/base-of-python | 595bdbc8bfaf2136d8f1f9ea82c03b84aeaf0a39 | [
"Apache-2.0"
] | null | null | null | python-basic-grammer/python-basic/02-python-variables-and-string/string_strip_demo.py | jinrunheng/base-of-python | 595bdbc8bfaf2136d8f1f9ea82c03b84aeaf0a39 | [
"Apache-2.0"
] | null | null | null | python-basic-grammer/python-basic/02-python-variables-and-string/string_strip_demo.py | jinrunheng/base-of-python | 595bdbc8bfaf2136d8f1f9ea82c03b84aeaf0a39 | [
"Apache-2.0"
] | null | null | null | # 字符串删除空白
str1 = " hello "
print(str1)
print(len(str1))
# 去除两端的空格
print(str1.strip())
print(len(str1.strip()))
# 去除左侧的空格
print(str1.lstrip())
print(len(str1.lstrip()))
# 去除右侧的空格
print(str1.rstrip())
print(len(str1.rstrip())) | 16.071429 | 25 | 0.688889 | 32 | 225 | 4.84375 | 0.34375 | 0.232258 | 0.309677 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044118 | 0.093333 | 225 | 14 | 26 | 16.071429 | 0.715686 | 0.137778 | 0 | 0 | 0 | 0 | 0.036842 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.888889 | 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 |
b9b2dd8fc97fddaaa64ec64957043ee8e8088e39 | 615 | py | Python | frappe-bench/apps/erpnext/erpnext/non_profit/doctype/member/member.py | Semicheche/foa_frappe_docker | a186b65d5e807dd4caf049e8aeb3620a799c1225 | [
"MIT"
] | null | null | null | frappe-bench/apps/erpnext/erpnext/non_profit/doctype/member/member.py | Semicheche/foa_frappe_docker | a186b65d5e807dd4caf049e8aeb3620a799c1225 | [
"MIT"
] | null | null | null | frappe-bench/apps/erpnext/erpnext/non_profit/doctype/member/member.py | Semicheche/foa_frappe_docker | a186b65d5e807dd4caf049e8aeb3620a799c1225 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright (c) 2017, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
from frappe.model.document import Document
from frappe.contacts.address_and_contact import load_address_and_contact
class Member(Docum... | 29.285714 | 72 | 0.786992 | 86 | 615 | 5.360465 | 0.488372 | 0.086768 | 0.110629 | 0.091106 | 0.112798 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009259 | 0.121951 | 615 | 21 | 73 | 29.285714 | 0.844444 | 0.287805 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.363636 | 0 | 0.727273 | 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 |
b9c3b62c39c9c9979a0f73775051d1aecd742c75 | 73 | py | Python | index.py | StarSky1/microsoft-python-study | 7fdc1ad87ac0eeb497013d7792f499416aac32d9 | [
"MIT"
] | null | null | null | index.py | StarSky1/microsoft-python-study | 7fdc1ad87ac0eeb497013d7792f499416aac32d9 | [
"MIT"
] | null | null | null | index.py | StarSky1/microsoft-python-study | 7fdc1ad87ac0eeb497013d7792f499416aac32d9 | [
"MIT"
] | null | null | null | name=input('input your name:');
print('hello');
print(name.capitalize()); | 24.333333 | 31 | 0.69863 | 10 | 73 | 5.1 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054795 | 73 | 3 | 32 | 24.333333 | 0.73913 | 0 | 0 | 0 | 0 | 0 | 0.283784 | 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 |
b9c7d11a999150072e268ba745c49eb08ce5081f | 358 | py | Python | src/PyDS/Queue/Deque.py | AoWangPhilly/PyDS | d79f92d0d2e7c005ebb8fa9f631d5f01e590625e | [
"MIT"
] | null | null | null | src/PyDS/Queue/Deque.py | AoWangPhilly/PyDS | d79f92d0d2e7c005ebb8fa9f631d5f01e590625e | [
"MIT"
] | null | null | null | src/PyDS/Queue/Deque.py | AoWangPhilly/PyDS | d79f92d0d2e7c005ebb8fa9f631d5f01e590625e | [
"MIT"
] | null | null | null | class Deque:
def add_first(self, value):
...
def add_last(self, value):
...
def delete_first(self):
...
def delete_last(self):
...
def first(self):
...
def last(self):
...
def is_empty(self):
...
def __len__(self):
..... | 12.785714 | 31 | 0.430168 | 36 | 358 | 3.916667 | 0.361111 | 0.297872 | 0.170213 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.410615 | 358 | 27 | 32 | 13.259259 | 0.668246 | 0 | 0 | 0.473684 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.473684 | false | 0 | 0 | 0 | 0.526316 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
b9cd3a4333e6169069ae770751a00e82db1b741a | 736 | py | Python | bot_da_os/statemachine/person/person_action.py | Atsocs/bot-da-os | e6d54057f4a3b703f303e9944a39e291ac87c40f | [
"MIT"
] | null | null | null | bot_da_os/statemachine/person/person_action.py | Atsocs/bot-da-os | e6d54057f4a3b703f303e9944a39e291ac87c40f | [
"MIT"
] | null | null | null | bot_da_os/statemachine/person/person_action.py | Atsocs/bot-da-os | e6d54057f4a3b703f303e9944a39e291ac87c40f | [
"MIT"
] | null | null | null | from operator import eq
class PersonAction:
def __init__(self, action):
self.action = action
def __str__(self): return self.action
def __eq__(self, other):
return eq(self.action, other.action)
# Necessary when __cmp__ or __eq__ is defined
# in order to make this class usable as ... | 29.44 | 89 | 0.72962 | 93 | 736 | 5.516129 | 0.569892 | 0.097466 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191576 | 736 | 24 | 90 | 30.666667 | 0.862185 | 0.194293 | 0 | 0 | 0 | 0 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0.076923 | 0.230769 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
b9fa33196acc6d33e769b7c8e96ca3b00aeee8cc | 237 | wsgi | Python | obviforum/obviforum.wsgi | dcloutman/obviforum | 31af0cf6f2e243bff9d920276831415bd5210cf9 | [
"MIT"
] | null | null | null | obviforum/obviforum.wsgi | dcloutman/obviforum | 31af0cf6f2e243bff9d920276831415bd5210cf9 | [
"MIT"
] | null | null | null | obviforum/obviforum.wsgi | dcloutman/obviforum | 31af0cf6f2e243bff9d920276831415bd5210cf9 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import sys
import logging
import os
logging.basicConfig(stream=sys.stderr)
file_dir = os.path.dirname(os.path.realpath(__file__))
sys.path.insert(0, file_dir)
from main import app as application
from main import db
| 23.7 | 54 | 0.797468 | 40 | 237 | 4.575 | 0.6 | 0.076503 | 0.153005 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004695 | 0.101266 | 237 | 9 | 55 | 26.333333 | 0.85446 | 0.084388 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.625 | 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 |
b9fc6312cdae3331d02a69bbbf58d767d486a41b | 1,361 | py | Python | arch/api/base/utils/party.py | yzjba/FATE | 9a6d252da637b2583a0f8a51f6cb4c615850bab9 | [
"Apache-2.0"
] | 32 | 2020-06-12T08:39:58.000Z | 2022-03-20T06:57:08.000Z | arch/api/base/utils/party.py | ErikSun2020/FATE | bdda535c7d8a974fc2c43102837964b7da199730 | [
"Apache-2.0"
] | 10 | 2020-11-13T18:55:48.000Z | 2022-02-10T02:00:12.000Z | arch/api/base/utils/party.py | ErikSun2020/FATE | bdda535c7d8a974fc2c43102837964b7da199730 | [
"Apache-2.0"
] | 16 | 2020-06-12T06:51:46.000Z | 2022-03-29T10:23:42.000Z | #
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# 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 appli... | 30.244444 | 79 | 0.683321 | 197 | 1,361 | 4.48731 | 0.477157 | 0.087104 | 0.074661 | 0.050905 | 0.099548 | 0.056561 | 0 | 0 | 0 | 0 | 0 | 0.009381 | 0.216752 | 1,361 | 44 | 80 | 30.931818 | 0.819887 | 0.443791 | 0 | 0 | 0 | 0 | 0.088033 | 0.066025 | 0 | 0 | 0 | 0 | 0 | 1 | 0.411765 | false | 0 | 0.058824 | 0.294118 | 0.882353 | 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 |
6a0eabac2607fdcd5104aaa4361b75c94d229375 | 373 | py | Python | deep_utils/nlp/utils/utils.py | pooya-mohammadi/deep_utils | b589d8ab0a8d63f3d3b90c3bc0d4b1b648b8be37 | [
"MIT"
] | 36 | 2021-11-10T05:17:18.000Z | 2022-03-27T18:25:10.000Z | deep_utils/nlp/utils/utils.py | pooya-mohammadi/deep_utils | b589d8ab0a8d63f3d3b90c3bc0d4b1b648b8be37 | [
"MIT"
] | 1 | 2021-12-03T07:07:18.000Z | 2022-03-08T09:29:03.000Z | deep_utils/nlp/utils/utils.py | pooya-mohammadi/deep_utils | b589d8ab0a8d63f3d3b90c3bc0d4b1b648b8be37 | [
"MIT"
] | 4 | 2021-11-28T07:39:57.000Z | 2022-03-30T05:46:10.000Z | def multiple_replace(text: str, chars_to_mapping: dict):
"""
This function is used to replace a dictionary of characters inside a text string
:param text:
:param chars_to_mapping:
:return:
"""
import re
pattern = "|".join(map(re.escape, chars_to_mapping.keys()))
return re.sub(patter... | 31.083333 | 84 | 0.678284 | 54 | 373 | 4.518519 | 0.592593 | 0.114754 | 0.229508 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.201072 | 373 | 11 | 85 | 33.909091 | 0.818792 | 0.340483 | 0 | 0 | 0 | 0 | 0.004587 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
6a1517953444573e16ddd717619e49c3ca5152a5 | 70 | py | Python | core/github/parsers/__init__.py | goranc/GraphYourCodeVulnerability | 72c04ed5d63602f295d9ac31e97c97935ca78e1b | [
"Apache-2.0"
] | null | null | null | core/github/parsers/__init__.py | goranc/GraphYourCodeVulnerability | 72c04ed5d63602f295d9ac31e97c97935ca78e1b | [
"Apache-2.0"
] | 2 | 2021-12-22T11:59:47.000Z | 2022-01-19T19:28:36.000Z | core/github/parsers/__init__.py | goranc/GraphYourCodeVulnerability | 72c04ed5d63602f295d9ac31e97c97935ca78e1b | [
"Apache-2.0"
] | 5 | 2021-12-22T11:09:23.000Z | 2021-12-26T10:18:49.000Z | from .python.parser import PythonParser
all_parsers = [PythonParser]
| 17.5 | 39 | 0.814286 | 8 | 70 | 7 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114286 | 70 | 3 | 40 | 23.333333 | 0.903226 | 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 |
6a20c03889abf01d98da2c14b133084ab0890d44 | 3,324 | py | Python | cvxpy/cvxcore/tests/python/364A_scripts/power_lines.py | jasondark/cvxpy | 56aaa01b0e9d98ae5a91a923708129a7b37a6f18 | [
"ECL-2.0",
"Apache-2.0"
] | 38 | 2015-10-16T16:55:28.000Z | 2022-02-16T05:06:01.000Z | cvxpy/cvxcore/tests/python/364A_scripts/power_lines.py | h-vetinari/cvxpy | 86307f271819bb78fcdf64a9c3a424773e8269fa | [
"ECL-2.0",
"Apache-2.0"
] | 28 | 2015-09-16T16:33:23.000Z | 2021-11-23T07:31:44.000Z | cvxpy/cvxcore/tests/python/364A_scripts/power_lines.py | h-vetinari/cvxpy | 86307f271819bb78fcdf64a9c3a424773e8269fa | [
"ECL-2.0",
"Apache-2.0"
] | 21 | 2015-09-16T14:56:16.000Z | 2022-02-16T05:06:03.000Z | import numpy as np
from cvxpy import *
import copy
import time
# data for power flow problem
import numpy as np
n = 12 # total number of nodes
m = 18 # number of edges (transmission lines)
k = 4 # number of generators
# transmission line capacities =
TIME = 0
Pmax = np.matrix("""
4.8005,
1.9246,... | 23.083333 | 75 | 0.513538 | 682 | 3,324 | 2.489736 | 0.219941 | 0.183746 | 0.245583 | 0.289753 | 0.326855 | 0.296231 | 0.280919 | 0.28033 | 0.278563 | 0.256184 | 0 | 0.197525 | 0.343562 | 3,324 | 144 | 76 | 23.083333 | 0.58066 | 0.22503 | 0 | 0.295652 | 0 | 0.043478 | 0.491552 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.095652 | 0.052174 | 0 | 0.052174 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
6a2c58ba82079e0bdc04e7b2c1c567a97cd9075d | 451 | py | Python | Message/Message.py | gauravyeole/KVstoreDB | 1c7c83b158e95daec998fba62a89fa1211a05089 | [
"MIT"
] | 1 | 2019-10-01T12:22:38.000Z | 2019-10-01T12:22:38.000Z | Message/Message.py | gauravyeole/KVstoreDB | 1c7c83b158e95daec998fba62a89fa1211a05089 | [
"MIT"
] | null | null | null | Message/Message.py | gauravyeole/KVstoreDB | 1c7c83b158e95daec998fba62a89fa1211a05089 | [
"MIT"
] | null | null | null | # Message class Implementation
# @author: Gaurav Yeole <gauravyeole@gmail.com>
class Message:
class Request:
def __init__(self, action="", data=None):
self.action = action
self.data = data
class Rsponse:
def __init__(self):
self.status = False
se... | 20.5 | 49 | 0.569845 | 49 | 451 | 4.979592 | 0.44898 | 0.086066 | 0.135246 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.341463 | 451 | 22 | 50 | 20.5 | 0.821549 | 0.16408 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.2 | 0 | 0 | 0.533333 | 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 |
6a2db7981b57ab2addb91eebdfdaf255263aca79 | 230 | py | Python | wpt/websockets/websock_handlers/open_delay_wsh.py | gsnedders/presto-testo | a0acfbef13a3f8cae67cc7145216d31b67aa8eb4 | [
"BSD-3-Clause"
] | null | null | null | wpt/websockets/websock_handlers/open_delay_wsh.py | gsnedders/presto-testo | a0acfbef13a3f8cae67cc7145216d31b67aa8eb4 | [
"BSD-3-Clause"
] | null | null | null | wpt/websockets/websock_handlers/open_delay_wsh.py | gsnedders/presto-testo | a0acfbef13a3f8cae67cc7145216d31b67aa8eb4 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python
from mod_pywebsocket import msgutil
import time
def web_socket_do_extra_handshake(request):
pass # Always accept.
def web_socket_transfer_data(request):
time.sleep(3)
msgutil.send_message(request, "line")
| 19.166667 | 43 | 0.795652 | 34 | 230 | 5.117647 | 0.764706 | 0.068966 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004878 | 0.108696 | 230 | 11 | 44 | 20.909091 | 0.843902 | 0.134783 | 0 | 0 | 0 | 0 | 0.020305 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0.142857 | 0.285714 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
6a36b0c35f3000da705fd087f744d451ba48d8fd | 531 | py | Python | Udemy/REST-Django-VueJS/C3-practice/03-demo/job_board/jobs/models.py | runzezhang/MOOCs | 8df8c7adc5af3d7b085be01ae9b6963fe33acd68 | [
"Apache-2.0"
] | 3 | 2019-04-05T18:59:53.000Z | 2020-09-24T09:05:46.000Z | Udemy/REST-Django-VueJS/C3-practice/03-demo/job_board/jobs/models.py | runzezhang/MOOCs | 8df8c7adc5af3d7b085be01ae9b6963fe33acd68 | [
"Apache-2.0"
] | null | null | null | Udemy/REST-Django-VueJS/C3-practice/03-demo/job_board/jobs/models.py | runzezhang/MOOCs | 8df8c7adc5af3d7b085be01ae9b6963fe33acd68 | [
"Apache-2.0"
] | 1 | 2019-02-10T13:35:36.000Z | 2019-02-10T13:35:36.000Z | from django.db import models
class JobOffer(models.Model):
company_name = models.CharField(max_length=50)
company_email = models.EmailField()
job_title = models.CharField(max_length=60)
job_description = models.TextField()
salary = models.PositiveIntegerField()
city = models.CharField(max_leng... | 31.235294 | 52 | 0.73823 | 66 | 531 | 5.69697 | 0.606061 | 0.159574 | 0.191489 | 0.255319 | 0.138298 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018059 | 0.165725 | 531 | 16 | 53 | 33.1875 | 0.8307 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.076923 | 0.076923 | 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 |
6a49d502d09956cefd00c54538889163bfebf8f9 | 1,157 | py | Python | dltb/thirdparty/datasource/__init__.py | CogSciUOS/DeepLearningToolbox | bf07578b9486d8c48e25df357bc4b9963b513b46 | [
"MIT"
] | 2 | 2019-09-01T01:38:59.000Z | 2020-02-13T19:25:51.000Z | dltb/thirdparty/datasource/__init__.py | CogSciUOS/DeepLearningToolbox | bf07578b9486d8c48e25df357bc4b9963b513b46 | [
"MIT"
] | null | null | null | dltb/thirdparty/datasource/__init__.py | CogSciUOS/DeepLearningToolbox | bf07578b9486d8c48e25df357bc4b9963b513b46 | [
"MIT"
] | null | null | null | """Predefined Datasources.
"""
# toolbox imports
from ...datasource import Datasource
Datasource.register_instance('imagenet-val', __name__ + '.imagenet',
'ImageNet', section='val') # section='train'
Datasource.register_instance('dogsandcats', __name__ + '.dogsandcats',
... | 48.208333 | 79 | 0.679343 | 101 | 1,157 | 7.188119 | 0.316832 | 0.297521 | 0.393939 | 0.088154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003112 | 0.166811 | 1,157 | 23 | 80 | 50.304348 | 0.75 | 0.048401 | 0 | 0 | 0 | 0 | 0.265325 | 0.019213 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.058824 | 0 | 0.058824 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e002150863388c3c73e7c985abca9ac6c4427a70 | 2,587 | bzl | Python | third_party/org_specs2.bzl | wix/wix-oss-infra | b57ac2f0f66487cfdd08293a8fa389efe3d42c43 | [
"MIT"
] | 3 | 2020-01-14T12:57:31.000Z | 2021-06-06T20:47:57.000Z | third_party/org_specs2.bzl | wix/wix-oss-infra | b57ac2f0f66487cfdd08293a8fa389efe3d42c43 | [
"MIT"
] | 20 | 2020-04-02T13:08:43.000Z | 2020-11-05T11:27:40.000Z | third_party/org_specs2.bzl | wix/wix-oss-infra | b57ac2f0f66487cfdd08293a8fa389efe3d42c43 | [
"MIT"
] | 1 | 2021-04-02T09:32:35.000Z | 2021-04-02T09:32:35.000Z | load("@wix_oss_infra//:import_external.bzl", import_external = "safe_wix_scala_maven_import_external")
def dependencies():
import_external(
name = "org_specs2_specs2_fp_2_12",
artifact = "org.specs2:specs2-fp_2.12:4.8.3",
artifact_sha256 = "777962ca58054a9ea86e294e025453ecf394c60084c28bd61... | 37.492754 | 102 | 0.68535 | 236 | 2,587 | 6.974576 | 0.207627 | 0.030984 | 0.136695 | 0.061968 | 0.486027 | 0.45322 | 0.243621 | 0.142163 | 0.076549 | 0.076549 | 0 | 0.267436 | 0.22961 | 2,587 | 68 | 103 | 38.044118 | 0.558455 | 0 | 0 | 0.362069 | 0 | 0 | 0.579822 | 0.575184 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017241 | true | 0 | 0.103448 | 0 | 0.12069 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 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.