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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
07af5a702f0425b095efa33f856b01882105763f | 130 | py | Python | examples/flask_simple/gunicorn.conf.py | Mjolnir-Software/dynoscale-python | 24986f8f85e40589b98ddddb3c8064c5de90ee0c | [
"MIT"
] | null | null | null | examples/flask_simple/gunicorn.conf.py | Mjolnir-Software/dynoscale-python | 24986f8f85e40589b98ddddb3c8064c5de90ee0c | [
"MIT"
] | null | null | null | examples/flask_simple/gunicorn.conf.py | Mjolnir-Software/dynoscale-python | 24986f8f85e40589b98ddddb3c8064c5de90ee0c | [
"MIT"
] | null | null | null | bind = "127.0.0.1:3000"
max_requests = 10
max_requests_jitter = 3
workers = 3
wsgi_app = "examples.flask_simple.flask_simple:app"
| 21.666667 | 51 | 0.761538 | 23 | 130 | 4.043478 | 0.695652 | 0.236559 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121739 | 0.115385 | 130 | 5 | 52 | 26 | 0.686957 | 0 | 0 | 0 | 0 | 0 | 0.4 | 0.292308 | 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 |
07b6447c69344ab1d64984e9942a623192037c6e | 699 | py | Python | handlers/abc.py | PythonCoderAS/TempProgram | 76bc9509b28f35cf678ab4fb858e0ee54e23bfa9 | [
"MIT"
] | null | null | null | handlers/abc.py | PythonCoderAS/TempProgram | 76bc9509b28f35cf678ab4fb858e0ee54e23bfa9 | [
"MIT"
] | null | null | null | handlers/abc.py | PythonCoderAS/TempProgram | 76bc9509b28f35cf678ab4fb858e0ee54e23bfa9 | [
"MIT"
] | null | null | null | import abc
import tempfile
from os.path import abspath, expanduser, join
class BaseHandler(abc.ABC):
"""Base Handler class that defines abstract methods"""
@property
def tempdir(self):
return self.__dict__.setdefault("dir", tempfile.TemporaryDirectory()).name
def file(self, extension, direct... | 27.96 | 120 | 0.682403 | 79 | 699 | 5.974684 | 0.582278 | 0.072034 | 0.084746 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001821 | 0.214592 | 699 | 24 | 121 | 29.125 | 0.857924 | 0.06867 | 0 | 0.235294 | 0 | 0 | 0.024806 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.176471 | 0.117647 | 0.588235 | 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 |
07bd5c308c893ad5aa29270009eab4cba8209aa8 | 161 | py | Python | scripts/uart_recieve.py | kanpapa/jetson-nano-tools | 6f7b637936d4f827114849d7c321b4253f6d6eca | [
"MIT"
] | 106 | 2019-04-24T18:57:17.000Z | 2022-03-20T07:28:36.000Z | scripts/uart_recieve.py | jbasu2013/jetson-nano-tools | 1e911ec3e912c740bd3f363527fc69ec3c1d6d76 | [
"MIT"
] | 6 | 2019-06-10T12:42:05.000Z | 2021-06-27T23:39:51.000Z | scripts/uart_recieve.py | jbasu2013/jetson-nano-tools | 1e911ec3e912c740bd3f363527fc69ec3c1d6d76 | [
"MIT"
] | 27 | 2019-04-17T12:07:08.000Z | 2021-12-18T06:03:47.000Z | # -*- coding: utf-8 -*-
import serial
import time
ser = serial.Serial('/dev/serial0', 115200, timeout = 1)
while True:
msg = ser.readline()
print(msg)
| 16.1 | 56 | 0.63354 | 22 | 161 | 4.636364 | 0.772727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069767 | 0.198758 | 161 | 9 | 57 | 17.888889 | 0.72093 | 0.130435 | 0 | 0 | 0 | 0 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.166667 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
07c38a2654c9c40a17f187605e24009b88b57b0c | 254 | py | Python | lazy/io/cachez/__init__.py | trisongz/lazycls | 701bad1a358ed3bb136347d0c5eb81de3201f6a3 | [
"MIT"
] | 2 | 2021-12-02T00:13:16.000Z | 2022-02-26T11:18:33.000Z | lazy/io/cachez/__init__.py | trisongz/lazycls | 701bad1a358ed3bb136347d0c5eb81de3201f6a3 | [
"MIT"
] | null | null | null | lazy/io/cachez/__init__.py | trisongz/lazycls | 701bad1a358ed3bb136347d0c5eb81de3201f6a3 | [
"MIT"
] | null | null | null | from . import static
from .config import CachezConfigz, SqlConfig
from .base import (
Cache,
Disk,
CDisk,
EmptyDirWarning,
Timeout,
UnknownFileWarning,
)
from ._json import OrJSONDisk, JSONDisk
from .persistent import Index, Deque | 21.166667 | 44 | 0.728346 | 27 | 254 | 6.814815 | 0.703704 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.208661 | 254 | 12 | 45 | 21.166667 | 0.915423 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.416667 | 0 | 0.416667 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
07e7383b95719ea74a43de7a4a3f4a3b728633c8 | 67 | py | Python | adext/__init__.py | ajschmidt8/adext | 9c9c79f8f909a0b1e35662c31e607cddf8e933df | [
"MIT"
] | 2 | 2020-06-11T17:02:15.000Z | 2022-01-08T02:12:39.000Z | adext/__init__.py | ajschmidt8/adext | 9c9c79f8f909a0b1e35662c31e607cddf8e933df | [
"MIT"
] | 2 | 2020-07-29T17:48:26.000Z | 2022-01-17T22:56:46.000Z | adext/__init__.py | ajschmidt8/adext | 9c9c79f8f909a0b1e35662c31e607cddf8e933df | [
"MIT"
] | 1 | 2020-10-20T08:14:20.000Z | 2020-10-20T08:14:20.000Z | """AdExt setup.py"""
from .adext import AdExt
__all__ = ["AdExt"]
| 13.4 | 24 | 0.656716 | 9 | 67 | 4.444444 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149254 | 67 | 4 | 25 | 16.75 | 0.701754 | 0.208955 | 0 | 0 | 0 | 0 | 0.106383 | 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 |
07f1fd98cf917c4dbe1f67b52880cdee8a6743e2 | 1,213 | bzl | Python | repositories.bzl | canada19l7/gapic-generator-typescript | 7d5cc738c85496d4b7fef7ef68df996b2dc20fda | [
"Apache-2.0"
] | 2 | 2020-07-29T21:18:59.000Z | 2020-07-29T21:19:00.000Z | repositories.bzl | canada19l7/gapic-generator-typescript | 7d5cc738c85496d4b7fef7ef68df996b2dc20fda | [
"Apache-2.0"
] | null | null | null | repositories.bzl | canada19l7/gapic-generator-typescript | 7d5cc738c85496d4b7fef7ef68df996b2dc20fda | [
"Apache-2.0"
] | null | null | null | load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
def gapic_generator_typescript_repositories():
maybe(
http_archive,
name = "build_bazel_rules_nodejs",
sha256 = "5bf77cc2d13ddf9124f4c1453dd96063774d755d4fc75d92247154... | 40.433333 | 129 | 0.731245 | 119 | 1,213 | 7.252101 | 0.378151 | 0.050985 | 0.05562 | 0.069525 | 0.353418 | 0.314021 | 0.261877 | 0.187717 | 0.187717 | 0 | 0 | 0.220829 | 0.145095 | 1,213 | 29 | 130 | 41.827586 | 0.611379 | 0 | 0 | 0.230769 | 0 | 0.115385 | 0.651278 | 0.294312 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | true | 0 | 0 | 0 | 0.038462 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
07f3d81ca1c654c970e9f57105ab74f7595e1878 | 60 | py | Python | top2vec/__init__.py | MackieBlackburn/Top2Vec | f65ed58263cce4e4e1c436298dad55a467e5497d | [
"BSD-3-Clause"
] | null | null | null | top2vec/__init__.py | MackieBlackburn/Top2Vec | f65ed58263cce4e4e1c436298dad55a467e5497d | [
"BSD-3-Clause"
] | null | null | null | top2vec/__init__.py | MackieBlackburn/Top2Vec | f65ed58263cce4e4e1c436298dad55a467e5497d | [
"BSD-3-Clause"
] | null | null | null | from top2vec.Top2Vec import Top2Vec
__version__ = '1.0.16'
| 15 | 35 | 0.766667 | 9 | 60 | 4.666667 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134615 | 0.133333 | 60 | 3 | 36 | 20 | 0.673077 | 0 | 0 | 0 | 0 | 0 | 0.1 | 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 |
5804185cda0facd6b5edd88985f88cb3fb9a5fbe | 318 | py | Python | fcos_core/data/datasets/__init__.py | ZhangXX54/DDTNet | 1de4cb5652bca6c45a80d93100ae5ab8e699344f | [
"BSD-2-Clause"
] | null | null | null | fcos_core/data/datasets/__init__.py | ZhangXX54/DDTNet | 1de4cb5652bca6c45a80d93100ae5ab8e699344f | [
"BSD-2-Clause"
] | null | null | null | fcos_core/data/datasets/__init__.py | ZhangXX54/DDTNet | 1de4cb5652bca6c45a80d93100ae5ab8e699344f | [
"BSD-2-Clause"
] | null | null | null | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
from .coco import COCODataset
from .voc import PascalVOCDataset
from .concat_dataset import ConcatDataset
from .lym import LYMDataset,LYMTestDataset
__all__ = ["COCODataset", "ConcatDataset", "PascalVOCDataset", "LYMDataset", "LYMTestDataset"]
| 35.333333 | 94 | 0.795597 | 34 | 318 | 7.294118 | 0.647059 | 0.193548 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113208 | 318 | 8 | 95 | 39.75 | 0.879433 | 0.216981 | 0 | 0 | 0 | 0 | 0.259109 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.8 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
5805a336cf8b4df181ced37ef426745c34cedf80 | 555 | py | Python | core/cmd/tmake_base.py | tomken/tmake | ee4f2c709a3e021fb04427bd7ae72f99d2714176 | [
"MIT"
] | 2 | 2020-01-11T04:26:27.000Z | 2022-01-10T06:35:22.000Z | core/cmd/tmake_base.py | tomken/tmake | ee4f2c709a3e021fb04427bd7ae72f99d2714176 | [
"MIT"
] | null | null | null | core/cmd/tmake_base.py | tomken/tmake | ee4f2c709a3e021fb04427bd7ae72f99d2714176 | [
"MIT"
] | 1 | 2020-04-25T01:06:39.000Z | 2020-04-25T01:06:39.000Z | #!/usr/bin/python
# -*- coding: UTF-8 -*-
"""
tamke command base file
"""
import core
class Command(object):
"""command base class"""
def __init__(self):
self.arguments = None
def set_argument(self, arguments):
"""replace argments"""
self.arguments = arguments
def help(self):... | 19.137931 | 75 | 0.571171 | 63 | 555 | 4.936508 | 0.603175 | 0.125402 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002513 | 0.282883 | 555 | 28 | 76 | 19.821429 | 0.778894 | 0.252252 | 0 | 0.166667 | 0 | 0 | 0.099738 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.416667 | false | 0.166667 | 0.083333 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
ed0008a5d364f34f759baef057c8fc98496cda40 | 1,485 | py | Python | dqn_test.py | HMUNACHI/Atari-Breakout-Deep-Q-Network | 8c1a9f270146ae50d5435424b412b5873547d971 | [
"MIT"
] | 1 | 2021-12-02T23:52:12.000Z | 2021-12-02T23:52:12.000Z | dqn_test.py | HMUNACHI/Atari-Breakout-Deep-Q-Network | 8c1a9f270146ae50d5435424b412b5873547d971 | [
"MIT"
] | null | null | null | dqn_test.py | HMUNACHI/Atari-Breakout-Deep-Q-Network | 8c1a9f270146ae50d5435424b412b5873547d971 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""dqn_test.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/12eHT4IvgWYdq9n-f-E5yf95ZAQVpHLFs
"""
!pip install baselines
# TESTING
#from google.colab import drive
#drive.mount('/content/drive')
from baselines.common.atari... | 26.052632 | 77 | 0.729966 | 207 | 1,485 | 5.101449 | 0.560386 | 0.041667 | 0.035985 | 0.034091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012821 | 0.159596 | 1,485 | 57 | 78 | 26.052632 | 0.833333 | 0.169697 | 0 | 0 | 1 | 0 | 0.093067 | 0.082621 | 0 | 0 | 0 | 0.017544 | 0 | 0 | null | null | 0 | 0.166667 | null | null | 0.033333 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ed0caff7d34bc1aa4ea08b522abdbc5605f57441 | 216 | py | Python | python/pangpuriye/pangpuriye/tests/test_ocr.py | patharanordev/pangpuriye | 2d84fead7b01f2f0f46c6b0d7d7bd448228c679b | [
"MIT"
] | null | null | null | python/pangpuriye/pangpuriye/tests/test_ocr.py | patharanordev/pangpuriye | 2d84fead7b01f2f0f46c6b0d7d7bd448228c679b | [
"MIT"
] | null | null | null | python/pangpuriye/pangpuriye/tests/test_ocr.py | patharanordev/pangpuriye | 2d84fead7b01f2f0f46c6b0d7d7bd448228c679b | [
"MIT"
] | null | null | null | import unittest
from pangpuriye.ai.ocr import OCR
import numpy as np
import os
ocr = OCR()
class TestOCR(unittest.TestCase):
def test_something(self):
pass
if __name__ == "__main__":
pass | 14.4 | 33 | 0.675926 | 29 | 216 | 4.724138 | 0.724138 | 0.131387 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.24537 | 216 | 15 | 34 | 14.4 | 0.840491 | 0 | 0 | 0.2 | 0 | 0 | 0.036866 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.2 | 0.4 | 0 | 0.6 | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
ed245d239b12688a529449d5f853feca716f55bb | 4,552 | py | Python | XO_Game.py | Former/Python_simple | ef3815066707f8ae85599a324a150d029261624a | [
"Unlicense"
] | null | null | null | XO_Game.py | Former/Python_simple | ef3815066707f8ae85599a324a150d029261624a | [
"Unlicense"
] | null | null | null | XO_Game.py | Former/Python_simple | ef3815066707f8ae85599a324a150d029261624a | [
"Unlicense"
] | null | null | null | # Copyright 2021 by Alexei Bezborodov <AlexeiBv@narod.ru>
import random
SPACE = " "
X = "X"
O = "O"
# True/False
# Проверка на то что всё поле заполнено, при этом возвращается True. Иначе False
def AllDataFill(w, h, data):
result = True
for i in range(w * h):
if data[i] == SPACE:
result =... | 36.126984 | 120 | 0.572935 | 644 | 4,552 | 3.987578 | 0.192547 | 0.237539 | 0.21028 | 0.179128 | 0.528816 | 0.458723 | 0.367212 | 0.283489 | 0.184579 | 0.064642 | 0 | 0.025814 | 0.285149 | 4,552 | 125 | 121 | 36.416 | 0.763368 | 0.118849 | 0 | 0.235294 | 0 | 0 | 0.036824 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.070588 | false | 0 | 0.011765 | 0.011765 | 0.129412 | 0.282353 | 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 |
ed373d1622d38537236c5d12a2b40229840da1ad | 87 | py | Python | pytest_mypy_plugins/tests/fixtures/pair.py | zero323/pytest-mypy-plugins | e59bda783b58da233a244d1880645f52af2ab260 | [
"MIT"
] | 65 | 2019-07-24T12:45:33.000Z | 2022-03-28T08:24:37.000Z | pytest_mypy_plugins/tests/fixtures/pair.py | zero323/pytest-mypy-plugins | e59bda783b58da233a244d1880645f52af2ab260 | [
"MIT"
] | 68 | 2019-08-15T14:29:21.000Z | 2022-03-24T21:16:03.000Z | pytest_mypy_plugins/tests/fixtures/pair.py | zero323/pytest-mypy-plugins | e59bda783b58da233a244d1880645f52af2ab260 | [
"MIT"
] | 18 | 2019-09-28T01:43:06.000Z | 2022-03-27T15:18:33.000Z | class Pair(object):
"""We only have this type to make sure that MYPYPATH works."""
| 29 | 66 | 0.689655 | 14 | 87 | 4.285714 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.195402 | 87 | 2 | 67 | 43.5 | 0.857143 | 0.643678 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ed3dd522c4fb2e5d223773701bd03a9d8b94bf46 | 283 | py | Python | Turtle/app.py | Rekid46/Python-Games | 7b4897ad5c6eccf855bb8c1f3bfa6d9e6596fc63 | [
"Apache-2.0"
] | 1 | 2021-07-15T08:15:51.000Z | 2021-07-15T08:15:51.000Z | Turtle/app.py | Rekid46/Python-Games | 7b4897ad5c6eccf855bb8c1f3bfa6d9e6596fc63 | [
"Apache-2.0"
] | null | null | null | Turtle/app.py | Rekid46/Python-Games | 7b4897ad5c6eccf855bb8c1f3bfa6d9e6596fc63 | [
"Apache-2.0"
] | null | null | null | import turtle as t
import random
screen = t.Screen
t.colormode(255)
tim = t.Turtle()
tim.speed("fast")
while True:
tim.hideturtle()
tim.color((random.randint(0, 255), random.randint(0, 255), random.randint(0, 255)))
tim.circle(100)
tim.tilt(45)
tim.tiltangle()
| 18.866667 | 87 | 0.667845 | 44 | 283 | 4.295455 | 0.5 | 0.206349 | 0.222222 | 0.269841 | 0.269841 | 0.269841 | 0.269841 | 0.269841 | 0 | 0 | 0 | 0.085106 | 0.169611 | 283 | 14 | 88 | 20.214286 | 0.719149 | 0 | 0 | 0 | 0 | 0 | 0.014134 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 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 |
ed413007adfa55564916802b0e5f1ff2f0531bf9 | 205 | py | Python | xandly5/ai_ml_model/poe_poem_model.py | dreoporto/xandly5 | 12e7d2f9a70c8c4ee903db4ba534938fdbd6c4c7 | [
"MIT"
] | 1 | 2021-09-28T11:09:08.000Z | 2021-09-28T11:09:08.000Z | xandly5/ai_ml_model/poe_poem_model.py | dreoporto/xandly5 | 12e7d2f9a70c8c4ee903db4ba534938fdbd6c4c7 | [
"MIT"
] | null | null | null | xandly5/ai_ml_model/poe_poem_model.py | dreoporto/xandly5 | 12e7d2f9a70c8c4ee903db4ba534938fdbd6c4c7 | [
"MIT"
] | null | null | null |
import lyrics_model as lm
def main():
lm.tensorflow_diagnostics()
lyrics_model = lm.LyricsModel('poe_poem_config.json')
lyrics_model.generate_model()
if __name__ == '__main__':
main()
| 15.769231 | 57 | 0.707317 | 26 | 205 | 5 | 0.653846 | 0.253846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180488 | 205 | 12 | 58 | 17.083333 | 0.77381 | 0 | 0 | 0 | 1 | 0 | 0.137255 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.285714 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ed4156372307750a099a171b024267da877e6a82 | 55,341 | py | Python | pythonocc/lib/OCC/Standard.py | mbattistello/lambda_converters | 0dfef8927d3ddbc74e5c8ce1c38701ea182a27b3 | [
"MIT"
] | 2 | 2017-10-30T15:51:48.000Z | 2020-11-04T02:23:36.000Z | pythonocc/lib/OCC/Standard.py | mbattistello/lambda_converters | 0dfef8927d3ddbc74e5c8ce1c38701ea182a27b3 | [
"MIT"
] | null | null | null | pythonocc/lib/OCC/Standard.py | mbattistello/lambda_converters | 0dfef8927d3ddbc74e5c8ce1c38701ea182a27b3 | [
"MIT"
] | 4 | 2017-11-29T05:24:34.000Z | 2020-03-05T23:23:23.000Z | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# 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
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst, cls: _Standar... | 36.480554 | 653 | 0.718762 | 6,175 | 55,341 | 6.073684 | 0.089231 | 0.094281 | 0.069324 | 0.066871 | 0.679909 | 0.4966 | 0.419411 | 0.314411 | 0.29676 | 0.282842 | 0 | 0.00927 | 0.200773 | 55,341 | 1,516 | 654 | 36.504617 | 0.838684 | 0.251224 | 0 | 0.252508 | 1 | 0 | 0.01537 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.215719 | false | 0.005017 | 0.023411 | 0.008361 | 0.571906 | 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 |
ed57dc84027b7eef63cf69aa0ba685b57ede3dd3 | 287 | py | Python | nms_stack/nms_cli/main.py | kkkkv/tgnms | a3b8fd8a69b647a614f9856933f05e50a4affadf | [
"MIT"
] | 12 | 2021-04-06T06:27:18.000Z | 2022-03-18T10:52:29.000Z | nms_stack/nms_cli/main.py | kkkkv/tgnms | a3b8fd8a69b647a614f9856933f05e50a4affadf | [
"MIT"
] | 6 | 2022-01-04T13:32:16.000Z | 2022-03-28T21:13:59.000Z | nms_stack/nms_cli/main.py | kkkkv/tgnms | a3b8fd8a69b647a614f9856933f05e50a4affadf | [
"MIT"
] | 7 | 2021-09-27T13:14:42.000Z | 2022-03-28T16:24:15.000Z | import sys
from .nms import cli as swarm_cli
from .k8s_nms.nms import cli as k8s_cli
def main():
if len(sys.argv) > 1 and sys.argv[1] == "beta":
sys.argv = sys.argv[:1] + sys.argv[2:]
k8s_cli()
else:
swarm_cli()
if __name__ == "__main__":
main()
| 16.882353 | 51 | 0.585366 | 47 | 287 | 3.297872 | 0.404255 | 0.225806 | 0.154839 | 0.180645 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033493 | 0.271777 | 287 | 16 | 52 | 17.9375 | 0.708134 | 0 | 0 | 0 | 0 | 0 | 0.041812 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | true | 0 | 0.272727 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ed5a20976de4946cc436312da362e29e3ff42f43 | 173 | py | Python | app/enums.py | leonolan2020/pedigree | 2413a3f3528ba42670c793a757ddbb0a7b3e3196 | [
"MIT"
] | null | null | null | app/enums.py | leonolan2020/pedigree | 2413a3f3528ba42670c793a757ddbb0a7b3e3196 | [
"MIT"
] | null | null | null | app/enums.py | leonolan2020/pedigree | 2413a3f3528ba42670c793a757ddbb0a7b3e3196 | [
"MIT"
] | 1 | 2021-01-30T00:53:48.000Z | 2021-01-30T00:53:48.000Z | from django.db.models import TextChoices
from django.utils.translation import gettext as _
class GenderEnum(TextChoices):
MALE='مرد',_('مرد')
FEMALE='زن',_('زن')
| 19.222222 | 49 | 0.722543 | 22 | 173 | 5.545455 | 0.727273 | 0.163934 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144509 | 173 | 8 | 50 | 21.625 | 0.824324 | 0 | 0 | 0 | 0 | 0 | 0.05848 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
ed5b58638a5df3ef123fa799e930ed1378504419 | 248 | py | Python | cabinet/profile_/forms.py | Stanislav-Rybonka/studentsdb | efb1440db4ec640868342a5f74cd48784268781f | [
"MIT"
] | 1 | 2020-03-02T20:55:04.000Z | 2020-03-02T20:55:04.000Z | cabinet/profile_/forms.py | Stanislav-Rybonka/studentsdb | efb1440db4ec640868342a5f74cd48784268781f | [
"MIT"
] | 6 | 2020-06-05T17:18:41.000Z | 2022-03-11T23:14:47.000Z | cabinet/profile_/forms.py | Stanislav-Rybonka/studentsdb | efb1440db4ec640868342a5f74cd48784268781f | [
"MIT"
] | null | null | null | from django import forms
from timezone_field.forms import TimeZoneFormField
from studentsdb.settings import LANGUAGES
class SessionSettingsForm(forms.Form):
timezone = TimeZoneFormField()
language = forms.ChoiceField(choices=LANGUAGES)
| 22.545455 | 51 | 0.814516 | 26 | 248 | 7.730769 | 0.615385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129032 | 248 | 10 | 52 | 24.8 | 0.930556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ed60d774dfbd1933e0853a9ccb675ea03eb67f81 | 197 | py | Python | apps/home/urls.py | johnfrenchxyz/bluebutton-web-server | 27adc139ddd511cc8d3e601726fa93eda89133fd | [
"Apache-2.0"
] | 1 | 2020-01-26T16:02:27.000Z | 2020-01-26T16:02:27.000Z | apps/home/urls.py | johnfrenchxyz/bluebutton-web-server | 27adc139ddd511cc8d3e601726fa93eda89133fd | [
"Apache-2.0"
] | null | null | null | apps/home/urls.py | johnfrenchxyz/bluebutton-web-server | 27adc139ddd511cc8d3e601726fa93eda89133fd | [
"Apache-2.0"
] | 2 | 2018-09-29T18:53:08.000Z | 2020-01-26T16:02:31.000Z | from django.conf.urls import url
from django.contrib import admin
from .views import authenticated_home
admin.autodiscover()
urlpatterns = [
url(r'', authenticated_home, name='auth_home'),
]
| 19.7 | 51 | 0.766497 | 26 | 197 | 5.692308 | 0.615385 | 0.135135 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.13198 | 197 | 9 | 52 | 21.888889 | 0.865497 | 0 | 0 | 0 | 0 | 0 | 0.045685 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
ed6ca2cf8f8614654c2c31a3624864b3bbc8816e | 346 | py | Python | ezbeq/apis/version.py | bmiller/ezbeq | 5aa69f18f6f64b51e03b1d8be793941e23cd17d7 | [
"MIT"
] | 6 | 2021-01-16T18:34:30.000Z | 2022-01-23T20:30:57.000Z | ezbeq/apis/version.py | bmiller/ezbeq | 5aa69f18f6f64b51e03b1d8be793941e23cd17d7 | [
"MIT"
] | 45 | 2021-01-16T09:35:35.000Z | 2022-01-27T19:46:14.000Z | ezbeq/apis/version.py | bmiller/ezbeq | 5aa69f18f6f64b51e03b1d8be793941e23cd17d7 | [
"MIT"
] | 5 | 2021-01-16T21:42:32.000Z | 2022-01-29T16:28:10.000Z | from flask_restx import Namespace, Resource
api = Namespace('1/version', description='Provides access to the ezbeq version')
@api.route('')
class Version(Resource):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.__v = kwargs['version']
def get(self):
ret... | 23.066667 | 80 | 0.653179 | 42 | 346 | 5.071429 | 0.619048 | 0.093897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003597 | 0.196532 | 346 | 14 | 81 | 24.714286 | 0.76259 | 0 | 0 | 0 | 0 | 0 | 0.17052 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0.111111 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
71f66d07f7f7786e043f775ca1b1b1e768cc4e08 | 680 | py | Python | chapter11-iface-abc/lotto.py | cgDeepLearn/fluentpython | ff89ad5a7da59c71f57b6392c9f5d5c6178e0475 | [
"MIT"
] | 1 | 2019-11-23T05:57:02.000Z | 2019-11-23T05:57:02.000Z | chapter11-iface-abc/lotto.py | cgDeepLearn/fluentpython | ff89ad5a7da59c71f57b6392c9f5d5c6178e0475 | [
"MIT"
] | null | null | null | chapter11-iface-abc/lotto.py | cgDeepLearn/fluentpython | ff89ad5a7da59c71f57b6392c9f5d5c6178e0475 | [
"MIT"
] | 1 | 2019-11-23T05:57:43.000Z | 2019-11-23T05:57:43.000Z | # -*- coding: utf-8 -*-
"""
lotto.py: LotteryBlower是Tombola的具体子类
覆盖了继承的inspect和loaded方法
"""
import random
from tombola import Tombola
class LotteryBlower(Tombola):
def __init__(self, iterable):
self._balls = list(iterable) # 1
def load(self, iterable):
self._balls.extend(iterable)
de... | 21.25 | 64 | 0.629412 | 75 | 680 | 5.573333 | 0.573333 | 0.129187 | 0.076555 | 0.100478 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011881 | 0.257353 | 680 | 31 | 65 | 21.935484 | 0.815842 | 0.135294 | 0 | 0 | 0 | 0 | 0.050435 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.294118 | false | 0 | 0.117647 | 0.117647 | 0.647059 | 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 |
9c037aa65aaea426f3ad7d4d52302a8226017c5c | 289 | py | Python | ssh_common.py | nokia-wroclaw/innovativeproject-dbshepherd | f82f3b36caaf9fcd6d28076051cb92458ba2edd3 | [
"MIT"
] | null | null | null | ssh_common.py | nokia-wroclaw/innovativeproject-dbshepherd | f82f3b36caaf9fcd6d28076051cb92458ba2edd3 | [
"MIT"
] | null | null | null | ssh_common.py | nokia-wroclaw/innovativeproject-dbshepherd | f82f3b36caaf9fcd6d28076051cb92458ba2edd3 | [
"MIT"
] | 1 | 2020-02-05T20:02:15.000Z | 2020-02-05T20:02:15.000Z | #import ssh_tunnelmanager
#permament_tunnel_manager = ssh_tunnelmanager.TunnelManager()
permament_tunnel_manager = None
class PortManager(object):
global_port = 13931
def get_port(self):
self.global_port += 1
return self.global_port
port_manager = PortManager()
| 22.230769 | 61 | 0.754325 | 34 | 289 | 6.088235 | 0.529412 | 0.144928 | 0.270531 | 0.338164 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025105 | 0.17301 | 289 | 12 | 62 | 24.083333 | 0.841004 | 0.290657 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 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 |
9c1901ce81168ddcfb1a59362117102dd534d536 | 115 | py | Python | web_scraping/ec2files/ec2file50.py | nikibhatt/Groa | fc2d4ae87cb825e6d54a0831c72be16541eebe61 | [
"MIT"
] | 1 | 2020-04-08T19:44:30.000Z | 2020-04-08T19:44:30.000Z | web_scraping/ec2files/ec2file50.py | cmgospod/Groa | 31b3624bfe61e772b55f8175b4e95d63c9e67966 | [
"MIT"
] | null | null | null | web_scraping/ec2files/ec2file50.py | cmgospod/Groa | 31b3624bfe61e772b55f8175b4e95d63c9e67966 | [
"MIT"
] | 1 | 2020-09-12T07:07:41.000Z | 2020-09-12T07:07:41.000Z | from scraper import *
s = Scraper(start=89100, end=90881, max_iter=30, scraper_instance=50)
s.scrape_letterboxd() | 38.333333 | 70 | 0.773913 | 18 | 115 | 4.777778 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135922 | 0.104348 | 115 | 3 | 71 | 38.333333 | 0.699029 | 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 |
9c1da3b24e64218b0ccaf65f5f5faafed4703bf8 | 171 | py | Python | logkit/user/urls.py | zhaheyan/logkit | 6f30a82aa88a5fff3a0b4160374de4482a4f5fb4 | [
"Apache-2.0"
] | null | null | null | logkit/user/urls.py | zhaheyan/logkit | 6f30a82aa88a5fff3a0b4160374de4482a4f5fb4 | [
"Apache-2.0"
] | null | null | null | logkit/user/urls.py | zhaheyan/logkit | 6f30a82aa88a5fff3a0b4160374de4482a4f5fb4 | [
"Apache-2.0"
] | 1 | 2020-03-21T02:16:13.000Z | 2020-03-21T02:16:13.000Z | from django.urls import path
from user import views
urlpatterns = [
path("register", views.RegisterView.as_view()),
path("login", views.LoginView.as_view()),
]
| 17.1 | 51 | 0.701754 | 22 | 171 | 5.363636 | 0.636364 | 0.101695 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 171 | 9 | 52 | 19 | 0.819444 | 0 | 0 | 0 | 0 | 0 | 0.076471 | 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 |
9c446fc0d7f501872bb1a60276e61de11c7eee95 | 1,031 | py | Python | exercises/Desafio041.py | zThiago15/Curso-em-Video | ef25e0497edb79bdfbe71fde485f4dafc0d2a0e6 | [
"MIT"
] | null | null | null | exercises/Desafio041.py | zThiago15/Curso-em-Video | ef25e0497edb79bdfbe71fde485f4dafc0d2a0e6 | [
"MIT"
] | null | null | null | exercises/Desafio041.py | zThiago15/Curso-em-Video | ef25e0497edb79bdfbe71fde485f4dafc0d2a0e6 | [
"MIT"
] | 1 | 2021-07-24T21:39:26.000Z | 2021-07-24T21:39:26.000Z | from datetime import date
print('===== Confederação Nacional de Natação =====')
print()
cores = {'limpar':'\033[m','branco':'\033[1;30m','vermelho':'\033[1;31m','verde':'\033[1;32m','amarelo':'\033[1;33m','azul':'\033[1;34m'}
nascimento = int(input('Informe o ano em que você nasceu: '))
tempo = date.today().year
idade ... | 46.863636 | 137 | 0.634336 | 149 | 1,031 | 4.389262 | 0.38255 | 0.100917 | 0.053517 | 0.099388 | 0.45107 | 0.45107 | 0.29052 | 0.29052 | 0 | 0 | 0 | 0.043812 | 0.114452 | 1,031 | 22 | 138 | 46.863636 | 0.672508 | 0 | 0 | 0 | 0 | 0.294118 | 0.684109 | 0.364341 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.058824 | 0.411765 | 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 | 0 | 1 | 0 | 3 |
9c5547cf80a2608866cca4c952a51a7cf4bdb869 | 69 | py | Python | MRS/__init__.py | arokem/MRS | fa7d560e1dcabbb6829422a01e3ddd761d675bed | [
"MIT"
] | 6 | 2015-02-12T05:32:57.000Z | 2021-05-07T04:37:41.000Z | MRS/__init__.py | arokem/MRS | fa7d560e1dcabbb6829422a01e3ddd761d675bed | [
"MIT"
] | null | null | null | MRS/__init__.py | arokem/MRS | fa7d560e1dcabbb6829422a01e3ddd761d675bed | [
"MIT"
] | 3 | 2015-02-12T14:39:18.000Z | 2018-07-24T09:30:52.000Z | from .version import __version__
__doc__ = version.long_description
| 23 | 34 | 0.84058 | 8 | 69 | 6.125 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115942 | 69 | 2 | 35 | 34.5 | 0.803279 | 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 |
92c92da34dfcd6b68b1fcaf642d215bb5b2f544b | 167 | py | Python | ttt.py | polyfem/polyfem.github.io | c31d9e0f2208ce1fbe6e3b7123ebc90d0e945af4 | [
"MIT"
] | null | null | null | ttt.py | polyfem/polyfem.github.io | c31d9e0f2208ce1fbe6e3b7123ebc90d0e945af4 | [
"MIT"
] | null | null | null | ttt.py | polyfem/polyfem.github.io | c31d9e0f2208ce1fbe6e3b7123ebc90d0e945af4 | [
"MIT"
] | 4 | 2019-05-24T05:09:07.000Z | 2020-10-15T09:26:48.000Z | import polyfempy as pf
import wildmeshing as wm
# s = pf.Solver()
mesh_path = "plane_hole.svg"
v, f, nodes, F_nodes = wm.triangulate_svg(mesh_path, cut_outside=True)
| 23.857143 | 70 | 0.754491 | 29 | 167 | 4.137931 | 0.689655 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137725 | 167 | 6 | 71 | 27.833333 | 0.833333 | 0.08982 | 0 | 0 | 0 | 0 | 0.093333 | 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 |
92cd6e255fd0e0439c6afe447b5eff712b8fd773 | 14 | py | Python | pycman/__init__.py | reachsumit/pycman | e9936ef1074e00136042fa7094cad6e5954609a6 | [
"MIT"
] | null | null | null | pycman/__init__.py | reachsumit/pycman | e9936ef1074e00136042fa7094cad6e5954609a6 | [
"MIT"
] | null | null | null | pycman/__init__.py | reachsumit/pycman | e9936ef1074e00136042fa7094cad6e5954609a6 | [
"MIT"
] | null | null | null | name = "pypac" | 14 | 14 | 0.642857 | 2 | 14 | 4.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 14 | 1 | 14 | 14 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 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 |
92d11bcaf9834ea8d0c770c476eff7a8d8cc469a | 375 | py | Python | fugle_realtime/http_client/http_client.py | dj184dja8/fugle-realtime-python | bee446348d487455c18109a1578f38e6fefb0bf9 | [
"MIT"
] | 24 | 2019-07-19T02:39:38.000Z | 2021-08-22T05:09:19.000Z | fugle_realtime/http_client/http_client.py | fugle-dev/fugle-realtime-py | 93491ae21151ec84a53597d7a866a58a185d5249 | [
"MIT"
] | null | null | null | fugle_realtime/http_client/http_client.py | fugle-dev/fugle-realtime-py | 93491ae21151ec84a53597d7a866a58a185d5249 | [
"MIT"
] | 8 | 2020-01-08T10:09:58.000Z | 2021-08-18T05:01:34.000Z | from ..base_client import BaseClient
from .intraday import Intraday
FUGLE_REALTIME_HTTP_URL = 'https://api.fugle.tw/realtime'
class HttpClient(BaseClient):
def __init__(self, api_token='demo', api_version='v0.3'):
super().__init__(api_token, api_version, url=FUGLE_REALTIME_HTTP_URL)
@property
de... | 26.785714 | 77 | 0.736 | 50 | 375 | 5.14 | 0.54 | 0.101167 | 0.132296 | 0.155642 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006289 | 0.152 | 375 | 13 | 78 | 28.846154 | 0.801887 | 0 | 0 | 0 | 0 | 0 | 0.098667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0.111111 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
92d5b641d4f0036502cd3412637dc7ddf949acb0 | 6,532 | py | Python | sdk/keyvault/azure-keyvault-administration/tests/test_backup_client_async.py | xolve/azure-sdk-for-python | 9f5baa19c392f77f811d936ee43450e4ea524002 | [
"MIT"
] | 1 | 2021-09-07T18:39:05.000Z | 2021-09-07T18:39:05.000Z | sdk/keyvault/azure-keyvault-administration/tests/test_backup_client_async.py | xolve/azure-sdk-for-python | 9f5baa19c392f77f811d936ee43450e4ea524002 | [
"MIT"
] | null | null | null | sdk/keyvault/azure-keyvault-administration/tests/test_backup_client_async.py | xolve/azure-sdk-for-python | 9f5baa19c392f77f811d936ee43450e4ea524002 | [
"MIT"
] | 1 | 2022-03-04T06:21:56.000Z | 2022-03-04T06:21:56.000Z | # ------------------------------------
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# ------------------------------------
import asyncio
from azure.core.exceptions import ResourceExistsError
import pytest
from _shared.test_case_async import KeyVaultTestCase
from _test_case import Administ... | 45.678322 | 118 | 0.712492 | 793 | 6,532 | 5.616646 | 0.162673 | 0.026942 | 0.0467 | 0.048496 | 0.746969 | 0.717782 | 0.717782 | 0.696228 | 0.685002 | 0.669735 | 0 | 0.00192 | 0.202541 | 6,532 | 142 | 119 | 46 | 0.853139 | 0.149418 | 0 | 0.662921 | 0 | 0 | 0.067812 | 0.004702 | 0 | 0 | 0 | 0 | 0.191011 | 1 | 0.011236 | false | 0 | 0.05618 | 0 | 0.078652 | 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 |
92dc186040305af4bc66154a701040f1d5c699e1 | 494 | py | Python | python/testData/inspections/PyTypeCheckerInspection/TypingSupports.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/inspections/PyTypeCheckerInspection/TypingSupports.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/inspections/PyTypeCheckerInspection/TypingSupports.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | import typing
def check_complex(p: typing.SupportsComplex):
print(p.__complex__())
class A:
def __int__(self):
return 5
def __float__(self):
return 5.0
def __complex__(self):
return complex(5.0, 0.0)
def __bytes__(self):
return b'bytes'
def __abs__(self)... | 13 | 45 | 0.601215 | 71 | 494 | 3.760563 | 0.309859 | 0.187266 | 0.123596 | 0.104869 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024931 | 0.269231 | 494 | 37 | 46 | 13.351351 | 0.714681 | 0 | 0 | 0.130435 | 0 | 0 | 0.010142 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.304348 | false | 0 | 0.043478 | 0.26087 | 0.652174 | 0.26087 | 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 |
92f41eb511479efde5a6fb4b388df982856a7968 | 2,178 | py | Python | python/pymprpc/client/__init__.py | Basic-Components/msgpack-rpc | 7983ace5d5cfd7214df6803f9b1de458df5fe3b1 | [
"MIT"
] | 1 | 2018-03-30T17:26:21.000Z | 2018-03-30T17:26:21.000Z | python/pymprpc/client/__init__.py | Basic-Components/msgpack-rpc-protocol | 7983ace5d5cfd7214df6803f9b1de458df5fe3b1 | [
"MIT"
] | null | null | null | python/pymprpc/client/__init__.py | Basic-Components/msgpack-rpc-protocol | 7983ace5d5cfd7214df6803f9b1de458df5fe3b1 | [
"MIT"
] | null | null | null | """mprpc的python客户端.
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Python客户端只支持python3.6+,并提供同步接口SyncRPC和异步接口AsyncRPC
+ File: client.__init__.py
+ Version: 0.5
+ Author: hsz
+ Email: hsz1273327@gmail.com
+ Copyright: 2018-02-08 hsz
+ License: MIT
+ History
+ 2018-01-23 created by hsz
+ 2018-02-08 version-0.5 by hsz
异步接口使用方... | 25.623529 | 70 | 0.578512 | 253 | 2,178 | 4.932806 | 0.363636 | 0.080128 | 0.104167 | 0.076122 | 0.334936 | 0.043269 | 0.043269 | 0.043269 | 0.043269 | 0 | 0 | 0.050816 | 0.268136 | 2,178 | 84 | 71 | 25.928571 | 0.73212 | 0.959137 | 0 | 0 | 0 | 0 | 0.135802 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
131e248069dee07053f01d8221871204f18bcee2 | 201 | py | Python | borealisflows/__init__.py | arcchang1236/camera-aware-noise-models | bf54628cac4227e98def5867e541331e695257d8 | [
"MIT"
] | 59 | 2020-07-24T12:49:11.000Z | 2022-03-03T07:17:50.000Z | borealisflows/__init__.py | arcchang1236/camera-aware-noise-models | bf54628cac4227e98def5867e541331e695257d8 | [
"MIT"
] | 7 | 2020-08-28T06:26:16.000Z | 2022-03-31T11:35:50.000Z | borealisflows/__init__.py | arcchang1236/camera-aware-noise-models | bf54628cac4227e98def5867e541331e695257d8 | [
"MIT"
] | 8 | 2020-08-13T08:51:50.000Z | 2021-05-20T05:00:38.000Z | # Copyright (c) 2018-present, Royal Bank of Canada.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
#
| 22.333333 | 61 | 0.741294 | 32 | 201 | 4.65625 | 0.78125 | 0.134228 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024691 | 0.19403 | 201 | 8 | 62 | 25.125 | 0.895062 | 0.925373 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
132763fd919501c125f3c43aa052b83cb0c89f0d | 942 | py | Python | teamcat_service/docker_build/target/one_step_build/teamcat/doraemon/user_center/viewmodels/ucenter_sub_nav_bar.py | zhangyin2088/Teamcat | be9be8d7c1e58c8d2d22ab78d25783d9aee4de71 | [
"Apache-2.0"
] | 6 | 2018-11-26T08:42:52.000Z | 2020-06-01T08:33:48.000Z | teamcat_service/docker_build/target/one_step_build/teamcat/doraemon/user_center/viewmodels/ucenter_sub_nav_bar.py | zhangyin2088/Teamcat | be9be8d7c1e58c8d2d22ab78d25783d9aee4de71 | [
"Apache-2.0"
] | null | null | null | teamcat_service/docker_build/target/one_step_build/teamcat/doraemon/user_center/viewmodels/ucenter_sub_nav_bar.py | zhangyin2088/Teamcat | be9be8d7c1e58c8d2d22ab78d25783d9aee4de71 | [
"Apache-2.0"
] | 1 | 2019-01-22T06:45:36.000Z | 2019-01-22T06:45:36.000Z | #coding=utf-8
'''
Created on 2015-9-24
@author: Devuser
'''
class UCenterAccountSubNavBar(object):
'''
classdocs
'''
def __init__(self,request,userid,**args):
self.request=request
self.userid=str(userid)
self.basic_active=""
self.password_active=""
self.webhook_... | 20.042553 | 56 | 0.598726 | 109 | 942 | 4.889908 | 0.394495 | 0.075047 | 0.041276 | 0.056285 | 0.086304 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020833 | 0.286624 | 942 | 47 | 57 | 20.042553 | 0.772321 | 0.064756 | 0 | 0 | 0 | 0 | 0.084983 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.26087 | false | 0.130435 | 0 | 0.130435 | 0.478261 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 3 |
13288e766cbbfbfbdfb32407d9b9351c8ee2a6c1 | 10,157 | py | Python | corehq/ex-submodules/casexml/apps/stock/tests/test_consumption_calc.py | dimagilg/commcare-hq | ea1786238eae556bb7f1cbd8d2460171af1b619c | [
"BSD-3-Clause"
] | 1 | 2020-07-14T13:00:23.000Z | 2020-07-14T13:00:23.000Z | corehq/ex-submodules/casexml/apps/stock/tests/test_consumption_calc.py | dimagilg/commcare-hq | ea1786238eae556bb7f1cbd8d2460171af1b619c | [
"BSD-3-Clause"
] | 94 | 2020-12-11T06:57:31.000Z | 2022-03-15T10:24:06.000Z | corehq/ex-submodules/casexml/apps/stock/tests/test_consumption_calc.py | dimagilg/commcare-hq | ea1786238eae556bb7f1cbd8d2460171af1b619c | [
"BSD-3-Clause"
] | null | null | null | from functools import partial
from django.test import SimpleTestCase
from casexml.apps.stock.tests.mock_consumption import mock_consumption as consumption, mock_transaction as _tx, ago
from corehq.form_processor.models import LedgerTransaction
class ConsumptionCalcTest(SimpleTestCase):
def test_one_period(self):... | 37.618519 | 115 | 0.54839 | 1,081 | 10,157 | 4.888992 | 0.103608 | 0.045412 | 0.195648 | 0.23122 | 0.8 | 0.756481 | 0.69404 | 0.673605 | 0.615705 | 0.533396 | 0 | 0.090577 | 0.326081 | 10,157 | 269 | 116 | 37.758364 | 0.681519 | 0.019395 | 0 | 0.619266 | 0 | 0 | 0.079622 | 0.006937 | 0 | 0 | 0 | 0 | 0.137615 | 1 | 0.06422 | false | 0 | 0.018349 | 0.004587 | 0.100917 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
132cff8df28bb60f5f49df83f1ff4711bc4dac4c | 1,009 | py | Python | crea/block.py | creativechain/crea-python | 6ea7dbc725ae6b2d28fc6b0c6077b81096a2d283 | [
"MIT"
] | null | null | null | crea/block.py | creativechain/crea-python | 6ea7dbc725ae6b2d28fc6b0c6077b81096a2d283 | [
"MIT"
] | null | null | null | crea/block.py | creativechain/crea-python | 6ea7dbc725ae6b2d28fc6b0c6077b81096a2d283 | [
"MIT"
] | null | null | null | from creabase.exceptions import BlockDoesNotExistsException
from .instance import shared_cread_instance
from .utils import parse_time
class Block(dict):
""" Read a single block from the chain
:param int block: block number
:param Cread cread_instance: Cread() instance to use when
acc... | 25.871795 | 65 | 0.647175 | 119 | 1,009 | 5.235294 | 0.378151 | 0.125201 | 0.089888 | 0.057785 | 0.073836 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.26561 | 1,009 | 38 | 66 | 26.552632 | 0.840756 | 0.142716 | 0 | 0.090909 | 0 | 0 | 0.01087 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.227273 | false | 0 | 0.136364 | 0.136364 | 0.545455 | 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 |
133a59bea58dcb3e1003328a40c084639a2ee724 | 657 | py | Python | gupshup/src/utils/user.py | kraanzu/gupshup | 4426a2c40a62d7c03823d960c9476688d27e1295 | [
"MIT"
] | 5 | 2022-02-26T05:17:16.000Z | 2022-03-03T03:04:15.000Z | gupshup/src/utils/user.py | kraanzu/gupshup | 4426a2c40a62d7c03823d960c9476688d27e1295 | [
"MIT"
] | null | null | null | gupshup/src/utils/user.py | kraanzu/gupshup | 4426a2c40a62d7c03823d960c9476688d27e1295 | [
"MIT"
] | null | null | null | from .house import House
class User:
"""
A user class to make interaction with user data a bit less messy
"""
def __init__(self, username: str):
self.username = username
self.home = House("HOME", self.username)
self.houses = set()
def has_banned(self, user):
retur... | 23.464286 | 68 | 0.636225 | 94 | 657 | 4.308511 | 0.351064 | 0.098765 | 0.069136 | 0.088889 | 0.251852 | 0.251852 | 0.138272 | 0 | 0 | 0 | 0 | 0 | 0.266362 | 657 | 27 | 69 | 24.333333 | 0.840249 | 0.097412 | 0 | 0 | 0 | 0 | 0.006932 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0.0625 | 0.1875 | 0.6875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
135a53fade7aef87b4873195f2d072d316574e4d | 2,102 | py | Python | survae/transforms/bijections/permute.py | alisiahkoohi/survae_flows | e1747b05524c7ab540a211ed360ab3e67bc3e96d | [
"MIT"
] | 262 | 2020-07-05T20:57:44.000Z | 2022-03-28T02:24:43.000Z | survae/transforms/bijections/permute.py | alisiahkoohi/survae_flows | e1747b05524c7ab540a211ed360ab3e67bc3e96d | [
"MIT"
] | 17 | 2020-08-15T05:43:34.000Z | 2022-01-31T12:24:21.000Z | survae/transforms/bijections/permute.py | alisiahkoohi/survae_flows | e1747b05524c7ab540a211ed360ab3e67bc3e96d | [
"MIT"
] | 35 | 2020-08-24T06:55:37.000Z | 2022-02-11T05:17:58.000Z | import torch
from collections.abc import Iterable
from survae.transforms.bijections import Bijection
class Permute(Bijection):
"""
Permutes inputs on a given dimension using a given permutation.
Args:
permutation: Tensor or Iterable, shape (dim_size)
dim: int, dimension to permute (exclud... | 33.365079 | 139 | 0.676023 | 268 | 2,102 | 5.156716 | 0.276119 | 0.035456 | 0.028944 | 0.030391 | 0.282923 | 0.266281 | 0.266281 | 0.266281 | 0.212735 | 0.212735 | 0 | 0.007362 | 0.224548 | 2,102 | 62 | 140 | 33.903226 | 0.840491 | 0.262607 | 0 | 0.071429 | 0 | 0 | 0.123978 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.214286 | false | 0 | 0.107143 | 0.107143 | 0.535714 | 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 |
136803704a52c2d9c3a4e5736cf183d89152251c | 1,452 | py | Python | tests/app/users/models.py | silverlogic/djangorestframework-timed-auth-token | 0884559c6b5e4021d7a8830ec5dd60f2799d0ee4 | [
"MIT"
] | 34 | 2015-05-22T00:02:49.000Z | 2021-12-29T11:42:31.000Z | tests/app/users/models.py | silverlogic/djangorestframework-timed-auth-token | 0884559c6b5e4021d7a8830ec5dd60f2799d0ee4 | [
"MIT"
] | 6 | 2015-05-22T00:04:50.000Z | 2021-06-10T17:49:38.000Z | tests/app/users/models.py | silverlogic/djangorestframework-timed-auth-token | 0884559c6b5e4021d7a8830ec5dd60f2799d0ee4 | [
"MIT"
] | 6 | 2015-05-25T17:44:50.000Z | 2020-12-05T14:48:53.000Z | from django.contrib.auth.models import AbstractBaseUser, BaseUserManager, PermissionsMixin
from django.db import models
class CustomUserManager(BaseUserManager):
use_in_migrations = True
def _create_user(self, identifier, password,
is_staff, is_superuser, **extra_fields):
"""
... | 34.571429 | 90 | 0.685262 | 161 | 1,452 | 5.981366 | 0.397516 | 0.068536 | 0.068536 | 0.035306 | 0.174455 | 0.174455 | 0.101765 | 0.101765 | 0 | 0 | 0 | 0.001787 | 0.229339 | 1,452 | 41 | 91 | 35.414634 | 0.858803 | 0.047521 | 0 | 0 | 0 | 0 | 0.029433 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.148148 | false | 0.222222 | 0.074074 | 0.111111 | 0.703704 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 3 |
136c9980db4a4a27893820631bf16dffd35556d0 | 122 | py | Python | stockroom/__init__.py | hhsecond/stockroom | d1335773e33493df07cc95f9bb48fbc351313dd6 | [
"Apache-2.0"
] | null | null | null | stockroom/__init__.py | hhsecond/stockroom | d1335773e33493df07cc95f9bb48fbc351313dd6 | [
"Apache-2.0"
] | null | null | null | stockroom/__init__.py | hhsecond/stockroom | d1335773e33493df07cc95f9bb48fbc351313dd6 | [
"Apache-2.0"
] | null | null | null | from .main import StockRoom
from .repository import init_repo
__all__ = ['StockRoom', 'init_repo']
__version__ = '0.1.0'
| 20.333333 | 36 | 0.745902 | 17 | 122 | 4.764706 | 0.647059 | 0.197531 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028302 | 0.131148 | 122 | 5 | 37 | 24.4 | 0.735849 | 0 | 0 | 0 | 0 | 0 | 0.188525 | 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 |
139fcc2c7f445c13834204e5321df98d8103fcef | 1,988 | py | Python | vumi/demos/words.py | seidu626/vumi | 62eae205a07029bc7ab382086715694548001876 | [
"BSD-3-Clause"
] | 199 | 2015-01-05T09:04:24.000Z | 2018-08-15T17:02:49.000Z | vumi/demos/words.py | seidu626/vumi | 62eae205a07029bc7ab382086715694548001876 | [
"BSD-3-Clause"
] | 187 | 2015-01-06T15:22:38.000Z | 2018-07-14T13:15:29.000Z | vumi/demos/words.py | seidu626/vumi | 62eae205a07029bc7ab382086715694548001876 | [
"BSD-3-Clause"
] | 86 | 2015-01-31T02:47:08.000Z | 2018-12-01T11:59:47.000Z | # -*- test-case-name: vumi.demos.tests.test_words -*-
"""Demo ApplicationWorkers that perform simple text manipulations."""
from twisted.python import log
from vumi.application import ApplicationWorker
class SimpleAppWorker(ApplicationWorker):
"""Base class for very simple application workers.
Configur... | 26.864865 | 76 | 0.608149 | 232 | 1,988 | 5.142241 | 0.409483 | 0.070411 | 0.056999 | 0.070411 | 0.200335 | 0.200335 | 0.200335 | 0.138307 | 0 | 0 | 0 | 0.002762 | 0.27163 | 1,988 | 73 | 77 | 27.232877 | 0.821133 | 0.214789 | 0 | 0.189189 | 0 | 0 | 0.143534 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.243243 | false | 0 | 0.054054 | 0.162162 | 0.621622 | 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 |
13a77746ab29c91aa4abc34a38064ca0da81bf05 | 747 | py | Python | wetterdienst/exceptions.py | gutzbenj/python_dwd | 668a22da93c6bad60092d7b468a4acec780c40af | [
"MIT"
] | 6 | 2019-09-05T19:13:35.000Z | 2020-06-06T02:08:22.000Z | wetterdienst/exceptions.py | gutzbenj/python_dwd | 668a22da93c6bad60092d7b468a4acec780c40af | [
"MIT"
] | 43 | 2019-09-01T19:41:19.000Z | 2020-06-17T16:30:51.000Z | wetterdienst/exceptions.py | gutzbenj/python_dwd | 668a22da93c6bad60092d7b468a4acec780c40af | [
"MIT"
] | 4 | 2019-09-10T17:14:06.000Z | 2020-06-09T19:54:46.000Z | # -*- coding: utf-8 -*-
# Copyright (C) 2018-2021, earthobservations developers.
# Distributed under the MIT License. See LICENSE for more info.
class FailedDownload(Exception):
pass
class InvalidEnumeration(ValueError):
pass
class InvalidParameter(ValueError):
pass
class InvalidParameterSet(ValueErro... | 14.94 | 63 | 0.756359 | 67 | 747 | 8.432836 | 0.522388 | 0.175221 | 0.20177 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01454 | 0.171352 | 747 | 49 | 64 | 15.244898 | 0.898223 | 0.184739 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 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 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
13b934893f77381bf0e65cbc97791316a45ceea7 | 210 | py | Python | codewars/changing-letters.py | andraantariksa/code-exercise-answer | 69b7dbdc081cdb094cb110a72bc0c9242d3d344d | [
"MIT"
] | 1 | 2019-11-06T15:17:48.000Z | 2019-11-06T15:17:48.000Z | codewars/changing-letters.py | andraantariksa/code-exercise-answer | 69b7dbdc081cdb094cb110a72bc0c9242d3d344d | [
"MIT"
] | null | null | null | codewars/changing-letters.py | andraantariksa/code-exercise-answer | 69b7dbdc081cdb094cb110a72bc0c9242d3d344d | [
"MIT"
] | 1 | 2018-11-13T08:43:26.000Z | 2018-11-13T08:43:26.000Z | def swap(st):
st = list(st)
for i in range(0, len(st)):
if st[i] == "a" or st[i] == "i" or st[i] == "u" or st[i] == "e" or st[i] == "o":
st[i] = st[i].upper()
return "".join(st)
| 30 | 88 | 0.414286 | 41 | 210 | 2.121951 | 0.463415 | 0.241379 | 0.229885 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006993 | 0.319048 | 210 | 6 | 89 | 35 | 0.601399 | 0 | 0 | 0 | 0 | 0 | 0.02381 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
13ba574eb279f2e21b522fe31f7487c6de6805d2 | 830 | py | Python | detectron2/modeling/backbone/ESNAC_layer.py | Friedrich1006/ESNAC-Detectron2 | 248eef70af85c6ba3ee93b950621067a72336590 | [
"Apache-2.0"
] | null | null | null | detectron2/modeling/backbone/ESNAC_layer.py | Friedrich1006/ESNAC-Detectron2 | 248eef70af85c6ba3ee93b950621067a72336590 | [
"Apache-2.0"
] | 4 | 2021-06-08T20:54:15.000Z | 2022-03-12T00:14:10.000Z | detectron2/modeling/backbone/ESNAC_layer.py | Friedrich1006/ESNAC-Detectron2 | 248eef70af85c6ba3ee93b950621067a72336590 | [
"Apache-2.0"
] | 1 | 2020-03-14T06:02:25.000Z | 2020-03-14T06:02:25.000Z | import torch
import torch.nn as nn
import torch.nn.functional as F
__all__ = [
"ESNACIdentity",
"ESNACFlatten",
"ESNACLayer",
]
class ESNACIdentity(nn.Module):
def __init__(self):
super(ESNACIdentity, self).__init__()
def forward(self, x):
return x
class ESNACFlatten(nn.Module):
... | 23.714286 | 60 | 0.63253 | 109 | 830 | 4.422018 | 0.275229 | 0.06639 | 0.068465 | 0.093361 | 0.307054 | 0.224066 | 0.124481 | 0.124481 | 0 | 0 | 0 | 0.009419 | 0.23253 | 830 | 34 | 61 | 24.411765 | 0.747253 | 0 | 0 | 0.185185 | 0 | 0 | 0.042169 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0.111111 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
13bd10dee9a4aad500631877e588705145a6a633 | 530 | py | Python | api/models.py | my4ever/altkraft_api | 191d8db62b5dd15791c5bd276df119570b569ad3 | [
"MIT"
] | null | null | null | api/models.py | my4ever/altkraft_api | 191d8db62b5dd15791c5bd276df119570b569ad3 | [
"MIT"
] | null | null | null | api/models.py | my4ever/altkraft_api | 191d8db62b5dd15791c5bd276df119570b569ad3 | [
"MIT"
] | null | null | null | from django.db import models
class Link(models.Model):
url = models.URLField(verbose_name='Ссылка')
code = models.CharField(max_length=8, verbose_name='Код ссылки', unique=True)
def __str__(self):
return f'{self.url} - {self.code}'
class ValidCode(models.Model):
code = models.CharField(max_... | 20.384615 | 81 | 0.681132 | 72 | 530 | 4.777778 | 0.402778 | 0.09593 | 0.165698 | 0.19186 | 0.590116 | 0.590116 | 0.430233 | 0.430233 | 0.430233 | 0.430233 | 0 | 0.007042 | 0.196226 | 530 | 25 | 82 | 21.2 | 0.800469 | 0 | 0 | 0.5 | 0 | 0 | 0.075758 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.071429 | 0.214286 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
13c6eb00a33d9bb49b23e957c859f23beb9a7ab8 | 353 | py | Python | examples/hello_world.py | lcp/bcc | e9a7184a34d74fb1130fb541bb07509ab58cb83b | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2021-04-30T05:05:53.000Z | 2021-04-30T05:05:53.000Z | examples/hello_world.py | lcp/bcc | e9a7184a34d74fb1130fb541bb07509ab58cb83b | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | examples/hello_world.py | lcp/bcc | e9a7184a34d74fb1130fb541bb07509ab58cb83b | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# Copyright (c) PLUMgrid, Inc.
# Licensed under the Apache License, Version 2.0 (the "License")
# run in project examples directory with:
# sudo ./hello_world.py"
# see trace_fields.py for a longer example
from bcc import BPF
BPF(text='void kprobe__sys_clone(void *ctx) { bpf_trace_printk("Hello... | 29.416667 | 101 | 0.728045 | 56 | 353 | 4.446429 | 0.821429 | 0.080321 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006557 | 0.135977 | 353 | 11 | 102 | 32.090909 | 0.809836 | 0.611898 | 0 | 0 | 0 | 0 | 0.572519 | 0.351145 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 3 |
13d76f3da1cd22ef620e91c408f639fe2d312f45 | 915 | py | Python | web/pages/login_page.py | dbudonnyi/python-pytest-selene | dbf923e64156af493f26e26640e1dfeea1b6ed85 | [
"MIT"
] | null | null | null | web/pages/login_page.py | dbudonnyi/python-pytest-selene | dbf923e64156af493f26e26640e1dfeea1b6ed85 | [
"MIT"
] | null | null | null | web/pages/login_page.py | dbudonnyi/python-pytest-selene | dbf923e64156af493f26e26640e1dfeea1b6ed85 | [
"MIT"
] | null | null | null | from selene.support.shared import browser
from selene import by, be, have
from selene.support.shared.jquery_style import s, ss
class LoginPage:
def open(self):
browser.open('/')
return self
def should_be_opened(self):
s(by.id('login_button_container')).should(be.visible)
retur... | 31.551724 | 108 | 0.642623 | 127 | 915 | 4.551181 | 0.417323 | 0.096886 | 0.043253 | 0.079585 | 0.055363 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001389 | 0.213115 | 915 | 28 | 109 | 32.678571 | 0.801389 | 0 | 0 | 0.136364 | 0 | 0 | 0.201093 | 0.046995 | 0 | 0 | 0 | 0 | 0 | 1 | 0.227273 | false | 0.136364 | 0.136364 | 0 | 0.545455 | 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 |
b91f826e0bd96a4ced9c9e1be7cc1fa7552f07bf | 1,055 | py | Python | hackerrank/Data Structures/Balanced Forest/test.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | 4 | 2020-07-24T01:59:50.000Z | 2021-07-24T15:14:08.000Z | hackerrank/Data Structures/Balanced Forest/test.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | null | null | null | hackerrank/Data Structures/Balanced Forest/test.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | null | null | null | import unittest
import solution
class TestQ(unittest.TestCase):
def test_case_0(self):
self.assertEqual(solution.balancedForest(
[1, 2, 2, 1, 1],
[
[1, 2],
[1, 3],
[3, 5],
[1, 4],
],
), 2)
... | 20.686275 | 49 | 0.330806 | 97 | 1,055 | 3.453608 | 0.298969 | 0.029851 | 0.274627 | 0.441791 | 0.519403 | 0.035821 | 0 | 0 | 0 | 0 | 0 | 0.13253 | 0.527962 | 1,055 | 50 | 50 | 21.1 | 0.540161 | 0 | 0 | 0.44186 | 0 | 0 | 0.007583 | 0 | 0 | 0 | 0 | 0 | 0.093023 | 1 | 0.069767 | false | 0 | 0.046512 | 0 | 0.139535 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
b922a47851e384b2c262e3ae62ce6f29f7f8356b | 937 | py | Python | goalgetter/blueprints/goals/models/values.py | shingtzewoo/goalgetter | 3bff4c6a02878706386a726bca747b941412fb9e | [
"MIT"
] | null | null | null | goalgetter/blueprints/goals/models/values.py | shingtzewoo/goalgetter | 3bff4c6a02878706386a726bca747b941412fb9e | [
"MIT"
] | null | null | null | goalgetter/blueprints/goals/models/values.py | shingtzewoo/goalgetter | 3bff4c6a02878706386a726bca747b941412fb9e | [
"MIT"
] | null | null | null | from lib.sql_alchemy import ResourceMixin
from goalgetter.extensions import db
from goalgetter.blueprints.goals.models.goals import Goal
from lib.sql_alchemy import ResourceMixin
class Value(db.Model, ResourceMixin):
__tablename__ = "values"
id = db.Column(db.Integer, primary_key=True)
value = db... | 49.315789 | 202 | 0.739594 | 126 | 937 | 5.357143 | 0.515873 | 0.035556 | 0.044444 | 0.05037 | 0.24 | 0.183704 | 0 | 0 | 0 | 0 | 0 | 0.012376 | 0.137673 | 937 | 19 | 203 | 49.315789 | 0.82302 | 0.246531 | 0 | 0.166667 | 0 | 0 | 0.048246 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.083333 | 0.333333 | 0 | 0.916667 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
b92be66adce8a99bd061987744393190a561cd36 | 400 | py | Python | kolibri/plugins/user_auth/hooks.py | MBKayro/kolibri | 0a38a5fb665503cf8f848b2f65938e73bfaa5989 | [
"MIT"
] | 545 | 2016-01-19T19:26:55.000Z | 2022-03-20T00:13:04.000Z | kolibri/plugins/user_auth/hooks.py | MBKayro/kolibri | 0a38a5fb665503cf8f848b2f65938e73bfaa5989 | [
"MIT"
] | 8,329 | 2016-01-19T19:32:02.000Z | 2022-03-31T21:23:12.000Z | kolibri/plugins/user_auth/hooks.py | MBKayro/kolibri | 0a38a5fb665503cf8f848b2f65938e73bfaa5989 | [
"MIT"
] | 493 | 2016-01-19T19:26:48.000Z | 2022-03-28T14:35:05.000Z | from __future__ import absolute_import
from __future__ import print_function
from __future__ import unicode_literals
from kolibri.core.webpack.hooks import WebpackInclusionSyncMixin
from kolibri.plugins.hooks import define_hook
@define_hook
class UserAuthSyncHook(WebpackInclusionSyncMixin):
"""
Define a hook... | 28.571429 | 88 | 0.83 | 49 | 400 | 6.387755 | 0.591837 | 0.095847 | 0.153355 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1275 | 400 | 13 | 89 | 30.769231 | 0.896848 | 0.21 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.714286 | 0 | 0.857143 | 0.142857 | 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 |
b9517db157ac3e786a7f66e83aa088622547a461 | 11,006 | py | Python | other/params.py | RPI-WCL/safety-envelopes-sentinels | 896e67a2ad21041a1c9ef5f3ad6318c67d730341 | [
"BSD-3-Clause"
] | null | null | null | other/params.py | RPI-WCL/safety-envelopes-sentinels | 896e67a2ad21041a1c9ef5f3ad6318c67d730341 | [
"BSD-3-Clause"
] | null | null | null | other/params.py | RPI-WCL/safety-envelopes-sentinels | 896e67a2ad21041a1c9ef5f3ad6318c67d730341 | [
"BSD-3-Clause"
] | 1 | 2020-09-20T00:36:09.000Z | 2020-09-20T00:36:09.000Z | airspeeds = [6, 8, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22] # m/s
means = []
stds = []
stall_prob = []
# airspeed = 6
means.append([30.415984247187414, 31.021954683393385, 25.931886822588297, 34.7191147012409, 26.61373471315814, 27.83467504223403, 23.649790679760244, 26.348454930469227, 26.33368652991115,... | 164.268657 | 375 | 0.793295 | 1,347 | 11,006 | 6.469933 | 0.614699 | 0.037177 | 0.050602 | 0.060585 | 0.070339 | 0.070339 | 0.070339 | 0.070339 | 0.070339 | 0.070339 | 0 | 0.778226 | 0.076958 | 11,006 | 66 | 376 | 166.757576 | 0.079634 | 0.0328 | 0 | 0.163265 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b953ae6fd28fe3a60690c0fabbd0dff78e256f2a | 1,786 | py | Python | env/Lib/site-packages/lightbulb/utils/data_store.py | AtharvVohra/iseakai-d-bot | 1257372bb5ab388a87a63a458aa6b173097227d3 | [
"Apache-2.0"
] | 1 | 2020-10-05T05:38:26.000Z | 2020-10-05T05:38:26.000Z | env/Lib/site-packages/lightbulb/utils/data_store.py | AtharvVohra/iseakai-d-bot | 1257372bb5ab388a87a63a458aa6b173097227d3 | [
"Apache-2.0"
] | null | null | null | env/Lib/site-packages/lightbulb/utils/data_store.py | AtharvVohra/iseakai-d-bot | 1257372bb5ab388a87a63a458aa6b173097227d3 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright © tandemdude 2020-present
#
# This file is part of Lightbulb.
#
# Lightbulb is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at ... | 29.766667 | 84 | 0.618141 | 244 | 1,786 | 4.430328 | 0.536885 | 0.027752 | 0.032377 | 0.052729 | 0.112858 | 0.112858 | 0.083256 | 0 | 0 | 0 | 0 | 0.004615 | 0.272116 | 1,786 | 59 | 85 | 30.271186 | 0.826154 | 0.667413 | 0 | 0 | 0 | 0 | 0.062249 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 0.166667 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
b95ef099863b45b9c9658946051f62140878385a | 318 | py | Python | flask_service_factory/app_factory.py | ttreptow/flask-service-factory | 3a3fb9cd0b463466ca671617b54a3f20c724c8d8 | [
"MIT"
] | 1 | 2019-08-21T06:12:18.000Z | 2019-08-21T06:12:18.000Z | flask_service_factory/app_factory.py | ttreptow/flask-service-factory | 3a3fb9cd0b463466ca671617b54a3f20c724c8d8 | [
"MIT"
] | null | null | null | flask_service_factory/app_factory.py | ttreptow/flask-service-factory | 3a3fb9cd0b463466ca671617b54a3f20c724c8d8 | [
"MIT"
] | null | null | null | from flask import Flask
def create_app(service_factory_builder, name=__name__):
app = Flask(name)
_service_factory = service_factory_builder(app)
class ContextGlobals(Flask.app_ctx_globals_class):
service_factory = _service_factory
app.app_ctx_globals_class = ContextGlobals
return app
| 24.461538 | 55 | 0.77044 | 40 | 318 | 5.625 | 0.375 | 0.311111 | 0.186667 | 0.248889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172956 | 318 | 12 | 56 | 26.5 | 0.855513 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.625 | 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 |
b962501b06e6e18e6f63380e95b551cf716528ea | 113 | py | Python | 0x01p_blink/main.py | walleieve/Reverse-Engineering | c1d018c623e4ed71ea17583c296a1342376172a7 | [
"Apache-2.0"
] | 3,418 | 2020-02-21T11:21:35.000Z | 2021-03-24T19:23:12.000Z | 0x01p_blink/main.py | momed081/Reverse-Engineering | dc08977f55ea21d482963e9b1e2fb21454ed0c0d | [
"Apache-2.0"
] | 1 | 2021-03-23T11:43:12.000Z | 2021-03-23T18:33:08.000Z | 0x01p_blink/main.py | momed081/Reverse-Engineering | dc08977f55ea21d482963e9b1e2fb21454ed0c0d | [
"Apache-2.0"
] | 317 | 2021-03-25T01:29:35.000Z | 2022-03-29T07:08:44.000Z | from machine import Pin
import time
pin = Pin(25, Pin.OUT)
while True:
pin.toggle()
time.sleep_ms(1000) | 14.125 | 23 | 0.690265 | 19 | 113 | 4.052632 | 0.684211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 0.20354 | 113 | 8 | 24 | 14.125 | 0.788889 | 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 |
b965f630b0291c7f8cac7cd90fe994d50777e81c | 3,510 | gyp | Python | packager/media/codecs/codecs.gyp | MoinPansare/shaka-packager | dc55adda87eb54112d8bda4401c966fb5fc5aa17 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2020-02-21T14:38:16.000Z | 2020-02-21T14:38:16.000Z | packager/media/codecs/codecs.gyp | MoinPansare/shaka-packager | dc55adda87eb54112d8bda4401c966fb5fc5aa17 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | packager/media/codecs/codecs.gyp | MoinPansare/shaka-packager | dc55adda87eb54112d8bda4401c966fb5fc5aa17 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | # Copyright 2014 Google Inc. All rights reserved.
#
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file or at
# https://developers.google.com/open-source/licenses/bsd
{
'variables': {
'shaka_code': 1,
},
'targets': [
{
'target_name': 'codecs',
... | 33.428571 | 57 | 0.633903 | 417 | 3,510 | 4.853717 | 0.230216 | 0.103755 | 0.141304 | 0.063241 | 0.400692 | 0.174407 | 0.100791 | 0 | 0 | 0 | 0 | 0.025881 | 0.240456 | 3,510 | 104 | 58 | 33.75 | 0.733308 | 0.058405 | 0 | 0.091837 | 0 | 0 | 0.662625 | 0.515308 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 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 |
b96fa892afa9d3f48deb82f6595ea17c114e2069 | 100 | py | Python | chaptertwo/full_name.py | cmotek/python_crashcourse | 29cbdd6699cd17192bb599d235852d547630d110 | [
"Apache-2.0"
] | null | null | null | chaptertwo/full_name.py | cmotek/python_crashcourse | 29cbdd6699cd17192bb599d235852d547630d110 | [
"Apache-2.0"
] | null | null | null | chaptertwo/full_name.py | cmotek/python_crashcourse | 29cbdd6699cd17192bb599d235852d547630d110 | [
"Apache-2.0"
] | null | null | null | first_name = "ada"
last_name = "lovelace"
full_name = f"{first_name} {last_name}"
print(full_name)
| 16.666667 | 39 | 0.73 | 16 | 100 | 4.1875 | 0.5 | 0.268657 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12 | 100 | 5 | 40 | 20 | 0.761364 | 0 | 0 | 0 | 0 | 0 | 0.353535 | 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 |
b97d44dc1ec482d00768001ed8ad050f4f1e8eb3 | 2,866 | py | Python | src/Noncircular/Calculations/_Appendix13_6.py | thepvguy/calctoys | f7ef4e422d8a27cc387c1a24b5fb6e318d774f57 | [
"Unlicense"
] | 7 | 2018-07-17T08:01:34.000Z | 2021-06-14T03:33:58.000Z | src/Noncircular/Calculations/_Appendix13_6.py | thepvguy/calctoys | f7ef4e422d8a27cc387c1a24b5fb6e318d774f57 | [
"Unlicense"
] | null | null | null | src/Noncircular/Calculations/_Appendix13_6.py | thepvguy/calctoys | f7ef4e422d8a27cc387c1a24b5fb6e318d774f57 | [
"Unlicense"
] | 6 | 2018-10-01T10:29:58.000Z | 2022-01-24T22:34:16.000Z |
class MultiDiameterHole:
def __init__(self, params):
self.t = params.t
self.p = params.p
self.diameter_thickness_pairs = params.diameter_thickness_pairs
def isSane(self):
isSane = True
floatFuzz = 0.000001
DTPairThicknessSum = 0
for pair in self.diamet... | 32.202247 | 166 | 0.601186 | 390 | 2,866 | 4.133333 | 0.164103 | 0.210918 | 0.272953 | 0.306452 | 0.51799 | 0.420596 | 0.359801 | 0.311414 | 0.266749 | 0.166253 | 0 | 0.028417 | 0.287858 | 2,866 | 88 | 167 | 32.568182 | 0.761391 | 0.055129 | 0 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.189655 | false | 0 | 0 | 0.068966 | 0.37931 | 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 |
b98676d4c7952386ab1ca408f4986722f945cb9a | 2,741 | py | Python | google/cloud/recaptchaenterprise_v1/__init__.py | Sita04/python-recaptcha-enterprise | 1602811e80828ed7ac9aab7d6b1b73bf74da00bf | [
"Apache-2.0"
] | 8 | 2020-04-30T07:10:42.000Z | 2022-02-10T20:14:44.000Z | google/cloud/recaptchaenterprise_v1/__init__.py | Sita04/python-recaptcha-enterprise | 1602811e80828ed7ac9aab7d6b1b73bf74da00bf | [
"Apache-2.0"
] | 68 | 2020-04-20T20:31:45.000Z | 2022-03-07T17:00:05.000Z | google/cloud/recaptchaenterprise_v1/__init__.py | googleapis/python-recaptcha-enterprise | fda16a44a84b173a8866090021e03eef0cb82025 | [
"Apache-2.0"
] | 8 | 2020-04-20T19:52:24.000Z | 2022-02-14T21:50:27.000Z | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | 37.547945 | 88 | 0.808099 | 254 | 2,741 | 8.688976 | 0.397638 | 0.09787 | 0.304486 | 0.369733 | 0.039873 | 0.039873 | 0 | 0 | 0 | 0 | 0 | 0.003758 | 0.126231 | 2,741 | 72 | 89 | 38.069444 | 0.917745 | 0.207588 | 0 | 0 | 0 | 0 | 0.197588 | 0.066327 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.481481 | 0 | 0.481481 | 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 |
b98a42c9745e77c17b74d318d45f0823ce21f905 | 20 | py | Python | LargeApp/app/mod_auth/__init__.py | ckc6842/my-hot-spot | 7968cd5c45fac492da74087e364acbecc49f59f2 | [
"MIT"
] | null | null | null | LargeApp/app/mod_auth/__init__.py | ckc6842/my-hot-spot | 7968cd5c45fac492da74087e364acbecc49f59f2 | [
"MIT"
] | null | null | null | LargeApp/app/mod_auth/__init__.py | ckc6842/my-hot-spot | 7968cd5c45fac492da74087e364acbecc49f59f2 | [
"MIT"
] | null | null | null | __author__ = 'Yeob'
| 10 | 19 | 0.7 | 2 | 20 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15 | 20 | 1 | 20 | 20 | 0.588235 | 0 | 0 | 0 | 0 | 0 | 0.2 | 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 |
b9ac55d52a837351dc1ee333090f8932cbdf26ab | 177 | py | Python | meishi/misc/log.py | errir503/9Taste-Scrapy | b0f477b697dcc9af87abd378f197816df1d3b9ce | [
"MIT"
] | 1 | 2021-07-07T08:08:07.000Z | 2021-07-07T08:08:07.000Z | meishi/misc/log.py | Lessica/9Taste-Scrapy | b0f477b697dcc9af87abd378f197816df1d3b9ce | [
"MIT"
] | null | null | null | meishi/misc/log.py | Lessica/9Taste-Scrapy | b0f477b697dcc9af87abd378f197816df1d3b9ce | [
"MIT"
] | 1 | 2021-07-07T08:08:11.000Z | 2021-07-07T08:08:11.000Z | # -*- coding: utf-8 -*-
import logging
def warn(msg):
logging.warning(str(msg))
def info(msg):
logging.info(str(msg))
def debug(msg):
logging.debug(str(msg))
| 11.0625 | 29 | 0.615819 | 26 | 177 | 4.192308 | 0.461538 | 0.275229 | 0.165138 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007042 | 0.19774 | 177 | 15 | 30 | 11.8 | 0.760563 | 0.118644 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | false | 0 | 0.142857 | 0 | 0.571429 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b9ac9e503c0fa22477eb68e8014be201232a5e86 | 418 | py | Python | Seeder/paginator/paginator.py | WebarchivCZ/Seeder | 1958c5d3f6bdcbbdb2c81dcb6abc7f689125b6a8 | [
"MIT"
] | 8 | 2017-08-16T19:18:57.000Z | 2022-01-24T10:08:19.000Z | Seeder/paginator/paginator.py | WebarchivCZ/Seeder | 1958c5d3f6bdcbbdb2c81dcb6abc7f689125b6a8 | [
"MIT"
] | 242 | 2017-02-03T19:15:52.000Z | 2022-03-25T08:02:52.000Z | Seeder/paginator/paginator.py | WebarchivCZ/Seeder | 1958c5d3f6bdcbbdb2c81dcb6abc7f689125b6a8 | [
"MIT"
] | 2 | 2019-03-06T12:36:29.000Z | 2019-07-08T12:52:20.000Z | from django.core.paginator import Paginator, Page
class CustomPaginator(Paginator):
def _get_page(self, *args, **kwargs):
return CustomPage(*args, **kwargs)
class CustomPage(Page):
"""
Custom page that supports range around current page
"""
def get_current_range(self):
lower_bo... | 23.222222 | 67 | 0.679426 | 54 | 418 | 5.12963 | 0.574074 | 0.043321 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018018 | 0.203349 | 418 | 17 | 68 | 24.588235 | 0.813814 | 0.12201 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.125 | 0.875 | 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 |
b9bc61963ae05768d131bdcd9f6d4ff74cdd2162 | 696 | py | Python | atlas/foundations_contrib/src/test/job_bundling/test_folder_job_source_bundle.py | DeepLearnI/atlas | 8aca652d7e647b4e88530b93e265b536de7055ed | [
"Apache-2.0"
] | 296 | 2020-03-16T19:55:00.000Z | 2022-01-10T19:46:05.000Z | atlas/foundations_contrib/src/test/job_bundling/test_folder_job_source_bundle.py | DeepLearnI/atlas | 8aca652d7e647b4e88530b93e265b536de7055ed | [
"Apache-2.0"
] | 57 | 2020-03-17T11:15:57.000Z | 2021-07-10T14:42:27.000Z | atlas/foundations_contrib/src/test/job_bundling/test_folder_job_source_bundle.py | DeepLearnI/atlas | 8aca652d7e647b4e88530b93e265b536de7055ed | [
"Apache-2.0"
] | 38 | 2020-03-17T21:06:05.000Z | 2022-02-08T03:19:34.000Z |
from foundations_spec import *
class TestFolderJobSourceBundle(Spec):
@let
def bundle(self):
from foundations_contrib.job_bundling.folder_job_source_bundle import FolderJobSourceBundle
return FolderJobSourceBundle()
def test_folder_job_source_bundle_job_archive_returns_cwd(self)... | 29 | 99 | 0.728448 | 83 | 696 | 5.662651 | 0.361446 | 0.076596 | 0.12766 | 0.178723 | 0.387234 | 0.387234 | 0.32766 | 0.195745 | 0.195745 | 0.195745 | 0 | 0 | 0.201149 | 696 | 23 | 100 | 30.26087 | 0.845324 | 0 | 0 | 0.133333 | 0 | 0 | 0.001443 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.266667 | false | 0 | 0.133333 | 0 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
b9d5870f7af572847c095b640f0a363357b2ce61 | 264 | py | Python | backend/api/routers/auth.py | skluthe/Yacht | d9ba4185c318e128d2fc6ceb7c0111927f571dbd | [
"MIT"
] | null | null | null | backend/api/routers/auth.py | skluthe/Yacht | d9ba4185c318e128d2fc6ceb7c0111927f571dbd | [
"MIT"
] | null | null | null | backend/api/routers/auth.py | skluthe/Yacht | d9ba4185c318e128d2fc6ceb7c0111927f571dbd | [
"MIT"
] | null | null | null | from fastapi import APIRouter
router = APIRouter()
@router.post("/login")
def fakelogin():
return {"email": "admin@yacht.local", "authDisabled": True}
@router.get("/check")
def auth_check():
return {"email": "admin@yacht.local", "authDisabled": True}
| 18.857143 | 63 | 0.67803 | 31 | 264 | 5.741935 | 0.612903 | 0.168539 | 0.179775 | 0.235955 | 0.47191 | 0.47191 | 0.47191 | 0 | 0 | 0 | 0 | 0 | 0.136364 | 264 | 13 | 64 | 20.307692 | 0.780702 | 0 | 0 | 0.25 | 0 | 0 | 0.30303 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.25 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
b9dfbb09b1efc60886037d7cb945ae154a25aa82 | 2,598 | py | Python | flask_resources/response.py | lnielsen/flask-resources | a8be12765883edb1b1f63b4d289416e892d2cb02 | [
"MIT"
] | null | null | null | flask_resources/response.py | lnielsen/flask-resources | a8be12765883edb1b1f63b4d289416e892d2cb02 | [
"MIT"
] | null | null | null | flask_resources/response.py | lnielsen/flask-resources | a8be12765883edb1b1f63b4d289416e892d2cb02 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Copyright (C) 2020 CERN.
#
# Flask-Resources is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.
"""Response module."""
from flask import make_response
from .context import resource_requestctx
class Response... | 29.862069 | 85 | 0.642417 | 306 | 2,598 | 5.333333 | 0.359477 | 0.073529 | 0.068627 | 0.053922 | 0.590074 | 0.574142 | 0.574142 | 0.574142 | 0.522672 | 0.495098 | 0 | 0.004618 | 0.249808 | 2,598 | 86 | 86 | 30.209302 | 0.832735 | 0.392225 | 0 | 0.545455 | 0 | 0 | 0.008108 | 0 | 0 | 0 | 0 | 0.023256 | 0 | 1 | 0.272727 | false | 0 | 0.060606 | 0 | 0.575758 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
b9e02593c7f4c48bbfea669f0348fd4375024e17 | 4,519 | py | Python | test/test_functions.py | Wangqge/PowerLog_ae | 8546afbcb9a77d516e8c3f0dfbaf2041a4b888f9 | [
"Apache-2.0"
] | null | null | null | test/test_functions.py | Wangqge/PowerLog_ae | 8546afbcb9a77d516e8c3f0dfbaf2041a4b888f9 | [
"Apache-2.0"
] | null | null | null | test/test_functions.py | Wangqge/PowerLog_ae | 8546afbcb9a77d516e8c3f0dfbaf2041a4b888f9 | [
"Apache-2.0"
] | null | null | null | """
Testing functions in a query.
"""
import socialite as s
import unittest
class TestFunctions(unittest.TestCase):
@classmethod
def setUpClass(cls):
s.decl("""Foo(int a, int b) groupby(1).""")
s.decl("""Bar(int a, int b, int c) groupby(1).""")
s.decl("""Path(int a, int b) groupby(1)... | 30.952055 | 80 | 0.467581 | 788 | 4,519 | 2.652284 | 0.096447 | 0.036364 | 0.035885 | 0.03445 | 0.780383 | 0.754545 | 0.736842 | 0.72823 | 0.637799 | 0.574641 | 0 | 0.063823 | 0.268422 | 4,519 | 145 | 81 | 31.165517 | 0.568361 | 0.006417 | 0 | 0.412844 | 0 | 0.165138 | 0.353348 | 0.004911 | 0 | 0 | 0 | 0 | 0.082569 | 1 | 0.137615 | false | 0 | 0.018349 | 0 | 0.174312 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6a1930c79827a3d3b5ba60c33e74b92169145f97 | 602 | py | Python | src/browserist/browser/get/url/from_image.py | jakob-bagterp/browserist | 76bd916dd217b7da3759fd6ec3374191002dc091 | [
"Apache-2.0"
] | 2 | 2022-02-20T10:03:19.000Z | 2022-03-22T11:17:10.000Z | src/browserist/browser/get/url/from_image.py | jakob-bagterp/browserist | 76bd916dd217b7da3759fd6ec3374191002dc091 | [
"Apache-2.0"
] | null | null | null | src/browserist/browser/get/url/from_image.py | jakob-bagterp/browserist | 76bd916dd217b7da3759fd6ec3374191002dc091 | [
"Apache-2.0"
] | null | null | null | from .... import constant, helper
from ....constant import timeout
from ....model.type.xpath import XPath
from ...wait.for_element import wait_for_element
from ..attribute.value import get_attribute_value
def get_url_from_image(driver: object, xpath: str, timeout: int = timeout.DEFAULT) -> str:
def get_src_attrib... | 40.133333 | 90 | 0.759136 | 85 | 602 | 5.129412 | 0.329412 | 0.048165 | 0.09633 | 0.091743 | 0.110092 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134552 | 602 | 14 | 91 | 43 | 0.836852 | 0 | 0 | 0 | 0 | 0 | 0.004983 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0.090909 | 0.454545 | 0.090909 | 0.818182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
6a1c4bb44f9bff5588ce027e72451733a555d729 | 888 | py | Python | journey11/src/experiments/protokafka/message1.py | parrisma/AI-intuition | 3b081696b1d226815e029cbb536fac5e4d3de9a7 | [
"MIT"
] | null | null | null | journey11/src/experiments/protokafka/message1.py | parrisma/AI-intuition | 3b081696b1d226815e029cbb536fac5e4d3de9a7 | [
"MIT"
] | 4 | 2020-04-26T18:18:22.000Z | 2020-05-16T14:47:32.000Z | journey11/src/experiments/protokafka/message1.py | parrisma/AI-intuition | 3b081696b1d226815e029cbb536fac5e4d3de9a7 | [
"MIT"
] | null | null | null | from typing import List
from journey11.src.experiments.protokafka.state import State
from journey11.src.experiments.protokafka.task import Task
class Message1:
_field: str
_state: State
_tasks: List[Task]
def __init__(self, **kwargs):
self._field = kwargs.get('field', str())
self._sta... | 28.645161 | 110 | 0.640766 | 109 | 888 | 4.853211 | 0.293578 | 0.068053 | 0.060491 | 0.102079 | 0.139887 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010279 | 0.233108 | 888 | 30 | 111 | 29.6 | 0.76652 | 0 | 0 | 0 | 0 | 0 | 0.060811 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0 | 0.130435 | 0.130435 | 0.73913 | 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 |
6a4506858942ecdc080f5c01444a375c5b134162 | 134 | py | Python | perfrunner/celerylocal.py | dkao-cb/perfrunner | d55cacfa352ade2a8e2750e1f45b2a7f96d5cb99 | [
"Apache-2.0"
] | 1 | 2021-03-03T23:04:26.000Z | 2021-03-03T23:04:26.000Z | perfrunner/celerylocal.py | dkao-cb/perfrunner | d55cacfa352ade2a8e2750e1f45b2a7f96d5cb99 | [
"Apache-2.0"
] | null | null | null | perfrunner/celerylocal.py | dkao-cb/perfrunner | d55cacfa352ade2a8e2750e1f45b2a7f96d5cb99 | [
"Apache-2.0"
] | null | null | null | BROKER_URL = 'sqla+sqlite:////tmp/perfrunner.db'
CELERY_RESULT_BACKEND = 'database'
CELERY_RESULT_DBURI = 'sqlite:////tmp/results.db'
| 33.5 | 49 | 0.753731 | 18 | 134 | 5.333333 | 0.722222 | 0.1875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067164 | 134 | 3 | 50 | 44.666667 | 0.768 | 0 | 0 | 0 | 0 | 0 | 0.492537 | 0.432836 | 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 |
dbe925cc54c36a8abdfb6b0b297647ccbdd6c9d0 | 27,650 | py | Python | tests/ga/test_remoteaccess_handler.py | MSSedusch/WALinuxAgent | 9cfb9b6ff6b70940d00a92a30daeb44a1af1a77d | [
"Apache-2.0"
] | 1 | 2022-02-13T22:33:54.000Z | 2022-02-13T22:33:54.000Z | tests/ga/test_remoteaccess_handler.py | MSSedusch/WALinuxAgent | 9cfb9b6ff6b70940d00a92a30daeb44a1af1a77d | [
"Apache-2.0"
] | 1 | 2021-02-02T19:51:36.000Z | 2021-02-02T19:51:36.000Z | tests/ga/test_remoteaccess_handler.py | MSSedusch/WALinuxAgent | 9cfb9b6ff6b70940d00a92a30daeb44a1af1a77d | [
"Apache-2.0"
] | null | null | null | # Copyright Microsoft Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | 54.003906 | 161 | 0.658011 | 3,251 | 27,650 | 5.339895 | 0.097816 | 0.075346 | 0.015553 | 0.024194 | 0.751901 | 0.730703 | 0.710887 | 0.697581 | 0.683525 | 0.656912 | 0 | 0.008768 | 0.23689 | 27,650 | 511 | 162 | 54.109589 | 0.813981 | 0.051863 | 0 | 0.655093 | 0 | 0 | 0.176949 | 0.105016 | 0 | 0 | 0 | 0 | 0.122685 | 1 | 0.083333 | false | 0.046296 | 0.023148 | 0.002315 | 0.118056 | 0.002315 | 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 |
dbfc147513407e6c77dfe270aa9e4e6dc0fd398a | 389 | py | Python | hackerrank/Algorithms/Sherlock and Squares/test.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | 4 | 2020-07-24T01:59:50.000Z | 2021-07-24T15:14:08.000Z | hackerrank/Algorithms/Sherlock and Squares/test.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | null | null | null | hackerrank/Algorithms/Sherlock and Squares/test.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | null | null | null | import unittest
import solution
class TestQ(unittest.TestCase):
def test_case_0(self):
self.assertEqual(solution.squares(3, 9), 2)
self.assertEqual(solution.squares(17, 24), 0)
def test_case_1(self):
self.assertEqual(solution.squares(35, 70), 3)
self.assertEqual(solution.squa... | 21.611111 | 57 | 0.673522 | 51 | 389 | 4.901961 | 0.529412 | 0.24 | 0.368 | 0.48 | 0.272 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 0.197943 | 389 | 17 | 58 | 22.882353 | 0.724359 | 0 | 0 | 0 | 0 | 0 | 0.020566 | 0 | 0 | 0 | 0 | 0 | 0.363636 | 1 | 0.181818 | false | 0 | 0.181818 | 0 | 0.454545 | 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 |
e0006ed6853d722a84aff7f190c0941e4b87c383 | 339 | py | Python | examples/export_records.py | rspace-os/rspace-client-python | 9292aded77a9178fc7d73d3fefcfed67d59d8e39 | [
"Apache-2.0"
] | 7 | 2017-02-26T23:16:34.000Z | 2022-01-11T18:53:11.000Z | examples/export_records.py | rspace-os/rspace-client-python | 9292aded77a9178fc7d73d3fefcfed67d59d8e39 | [
"Apache-2.0"
] | 19 | 2017-06-01T09:25:56.000Z | 2022-02-11T08:43:33.000Z | examples/export_records.py | rspace-os/rspace-client-python | 9292aded77a9178fc7d73d3fefcfed67d59d8e39 | [
"Apache-2.0"
] | 2 | 2017-10-30T09:24:07.000Z | 2020-10-15T13:12:58.000Z | #!/usr/bin/env python3
from __future__ import print_function
import rspace_client
# Parse command line parameters
# Parse command line parameters
client = rspace_client.utils.createClient()
# Export current user's records in XML format
print('Export archive was downloaded to:', client.download_export('xml', 'user', ... | 28.25 | 99 | 0.784661 | 47 | 339 | 5.468085 | 0.702128 | 0.093385 | 0.124514 | 0.202335 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003344 | 0.117994 | 339 | 11 | 100 | 30.818182 | 0.856187 | 0.368732 | 0 | 0 | 0 | 0 | 0.209524 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0.5 | 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 | 0 | 1 | 0 | 3 |
e02338755da88b656e856c0e7f01a1c93fa382ec | 171 | py | Python | tests/test_gmeu/test_a_C.py | ankita240796/proselint | 50d2a482df8f467737f9c958ace98ba152bec832 | [
"BSD-3-Clause"
] | 4,163 | 2015-10-03T07:37:21.000Z | 2022-03-31T03:52:32.000Z | tests/test_gmeu/test_a_C.py | ankita240796/proselint | 50d2a482df8f467737f9c958ace98ba152bec832 | [
"BSD-3-Clause"
] | 878 | 2015-09-30T20:03:33.000Z | 2022-03-28T11:06:15.000Z | tests/test_gmeu/test_a_C.py | ankita240796/proselint | 50d2a482df8f467737f9c958ace98ba152bec832 | [
"BSD-3-Clause"
] | 249 | 2015-10-04T12:21:27.000Z | 2022-02-28T22:13:11.000Z | #!/usr/bin/env python
"""Test GMEU entry 'a', part C.
This entry is about pronunciation of the word 'a' and is unlikely to be
relevant to usage in written language.
"""
| 21.375 | 71 | 0.71345 | 30 | 171 | 4.066667 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181287 | 171 | 7 | 72 | 24.428571 | 0.871429 | 0.94152 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e02a2b795fb3241742b4298c7c39363c3f472d13 | 208 | py | Python | behaviors/aim.py | maxburton/ms-tanks-squad | 814718d29a759f7cfb63130a0b0b517902405ce2 | [
"MIT"
] | null | null | null | behaviors/aim.py | maxburton/ms-tanks-squad | 814718d29a759f7cfb63130a0b0b517902405ce2 | [
"MIT"
] | null | null | null | behaviors/aim.py | maxburton/ms-tanks-squad | 814718d29a759f7cfb63130a0b0b517902405ce2 | [
"MIT"
] | null | null | null | import game
class Aim:
def __init__(self, pt):
self.pt = pt
def update(self):
if not game.data.aiming_at(self.pt):
game.data.aim_at_heading(self.pt)
return True
| 17.333333 | 45 | 0.586538 | 31 | 208 | 3.709677 | 0.548387 | 0.208696 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.3125 | 208 | 11 | 46 | 18.909091 | 0.804196 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
e038406f6233581c18a6e88388251c06e8dbfc58 | 529 | py | Python | python_modules/libraries/dagster-aws/dagster_aws/s3/__init__.py | flowersw/dagster | 0de6baf2bd6a41bfacf0be532b954e23305fb6b4 | [
"Apache-2.0"
] | 3 | 2020-09-09T04:10:23.000Z | 2021-11-08T02:10:42.000Z | python_modules/libraries/dagster-aws/dagster_aws/s3/__init__.py | flowersw/dagster | 0de6baf2bd6a41bfacf0be532b954e23305fb6b4 | [
"Apache-2.0"
] | 2 | 2021-05-11T13:36:27.000Z | 2021-09-03T01:53:11.000Z | python_modules/libraries/dagster-aws/dagster_aws/s3/__init__.py | flowersw/dagster | 0de6baf2bd6a41bfacf0be532b954e23305fb6b4 | [
"Apache-2.0"
] | null | null | null | from .compute_log_manager import S3ComputeLogManager
from .file_cache import S3FileCache, s3_file_cache
from .file_manager import S3FileHandle, S3FileManager
from .intermediate_store import S3IntermediateStore
from .object_store import S3ObjectStore
from .resources import s3_resource
from .s3_fake_resource import S3Fak... | 48.090909 | 75 | 0.882798 | 72 | 529 | 6.125 | 0.472222 | 0.058957 | 0.063492 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035197 | 0.086957 | 529 | 10 | 76 | 52.9 | 0.877847 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
e065918c6c03b8c1b646eeb5d0ea175d0894f8a3 | 66 | py | Python | notebooks/_solutions/case2_biodiversity_processing93.py | rprops/Python_DS-WS | b2fc449a74be0c82863e5fcf1ddbe7d64976d530 | [
"BSD-3-Clause"
] | 65 | 2017-03-21T09:15:40.000Z | 2022-02-01T23:43:08.000Z | notebooks/_solutions/case2_biodiversity_processing93.py | rprops/Python_DS-WS | b2fc449a74be0c82863e5fcf1ddbe7d64976d530 | [
"BSD-3-Clause"
] | 100 | 2016-12-15T03:44:06.000Z | 2022-03-07T08:14:07.000Z | notebooks/_solutions/case2_biodiversity_processing93.py | rprops/Python_DS-WS | b2fc449a74be0c82863e5fcf1ddbe7d64976d530 | [
"BSD-3-Clause"
] | 52 | 2016-12-19T07:48:52.000Z | 2022-02-19T17:53:48.000Z | df_species_annotated = pd.DataFrame(species_annotated).transpose() | 66 | 66 | 0.863636 | 8 | 66 | 6.75 | 0.75 | 0.592593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030303 | 66 | 1 | 66 | 66 | 0.84375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e06b4fbcaefb3680ac1a111131c2c7b388d6f186 | 931 | py | Python | pytablewriter/sanitizer/_interface.py | jvdvegt/pytablewriter | 29e8e7597d29c747354a64705313ad2e08013e4e | [
"MIT"
] | 510 | 2016-05-24T15:11:07.000Z | 2022-03-30T00:38:43.000Z | pytablewriter/sanitizer/_interface.py | jvdvegt/pytablewriter | 29e8e7597d29c747354a64705313ad2e08013e4e | [
"MIT"
] | 52 | 2016-06-14T03:57:04.000Z | 2022-03-21T14:38:03.000Z | pytablewriter/sanitizer/_interface.py | jvdvegt/pytablewriter | 29e8e7597d29c747354a64705313ad2e08013e4e | [
"MIT"
] | 39 | 2016-05-26T15:40:10.000Z | 2022-02-25T11:12:16.000Z | """
.. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com>
"""
import abc
from typing import List
from pathvalidate import validate_pathtype
class NameSanitizer(metaclass=abc.ABCMeta):
@abc.abstractproperty
def reserved_keywords(self) -> List: # pragma: no cover
pass
@abc.abstractmeth... | 23.871795 | 78 | 0.664876 | 110 | 931 | 5.427273 | 0.427273 | 0.060302 | 0.065327 | 0.085427 | 0.123953 | 0.123953 | 0.123953 | 0 | 0 | 0 | 0 | 0 | 0.230934 | 931 | 38 | 79 | 24.5 | 0.833799 | 0.123523 | 0 | 0.208333 | 0 | 0 | 0.011166 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.291667 | false | 0.125 | 0.125 | 0.083333 | 0.541667 | 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 |
0eb24f393cd11bc286e8c0b6977519854d495774 | 160 | py | Python | settings/pymalta.py | zerafachris/EvalAI | 53ba5fc04a673e2a5972d4a556b2746e424dcd59 | [
"BSD-3-Clause"
] | 1 | 2020-01-21T16:56:01.000Z | 2020-01-21T16:56:01.000Z | settings/pymalta.py | zerafachris/EvalAI | 53ba5fc04a673e2a5972d4a556b2746e424dcd59 | [
"BSD-3-Clause"
] | null | null | null | settings/pymalta.py | zerafachris/EvalAI | 53ba5fc04a673e2a5972d4a556b2746e424dcd59 | [
"BSD-3-Clause"
] | 1 | 2020-02-15T11:34:13.000Z | 2020-02-15T11:34:13.000Z | from .dev import * # noqa
# MEDIA_URL = "/media/"
CELERY_BROKER_URL = "sqs://x:x@sqs:9324"
ACCOUNT_EMAIL_REQUIRED = False
ACCOUNT_EMAIL_VERIFICATION = "none"
| 22.857143 | 40 | 0.73125 | 23 | 160 | 4.782609 | 0.73913 | 0.218182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028777 | 0.13125 | 160 | 6 | 41 | 26.666667 | 0.76259 | 0.1625 | 0 | 0 | 0 | 0 | 0.167939 | 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 |
0ecf0fe8c35e24fd8a3ef0b45800590d2c7eae58 | 1,364 | py | Python | players.py | GRV96/decision-matrix-py | c2a0e753220f146d7fd62bbd46a657631b9f2b09 | [
"MIT"
] | null | null | null | players.py | GRV96/decision-matrix-py | c2a0e753220f146d7fd62bbd46a657631b9f2b09 | [
"MIT"
] | null | null | null | players.py | GRV96/decision-matrix-py | c2a0e753220f146d7fd62bbd46a657631b9f2b09 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from loop_index.loop_index import LoopIndex
class Player:
def __init__(self):
self._points = 0
self.revive() # Creates attribute _is_alive.
def get_points(self):
return self._points
def give_points(self, points_given):
self._points += points_given... | 25.735849 | 66 | 0.63783 | 173 | 1,364 | 4.676301 | 0.271676 | 0.095179 | 0.051916 | 0.042027 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00199 | 0.263196 | 1,364 | 52 | 67 | 26.230769 | 0.802985 | 0.036657 | 0 | 0 | 0 | 0 | 0.011442 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.027778 | 0.111111 | 0.527778 | 0.083333 | 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 |
0edb25775ca30b74fe2ad73dad70940aab08212d | 5,620 | py | Python | tests/old_format/test_fixture.py | rollerr/netmiko | 96a6fce610710077dc6b9959a7371dd42b0ea5cb | [
"MIT"
] | null | null | null | tests/old_format/test_fixture.py | rollerr/netmiko | 96a6fce610710077dc6b9959a7371dd42b0ea5cb | [
"MIT"
] | null | null | null | tests/old_format/test_fixture.py | rollerr/netmiko | 96a6fce610710077dc6b9959a7371dd42b0ea5cb | [
"MIT"
] | 1 | 2020-04-24T13:11:18.000Z | 2020-04-24T13:11:18.000Z | #!/usr/bin/env python
"""
This module runs tests against Cisco IOS devices.
setup_module: setup variables for later use.
test_disable_paging: disable paging
test_ssh_connect: verify ssh connectivity
test_send_command: send a command
test_send_command_expect: send a command
test_base_prompt: test the base prompt
test_... | 30.879121 | 90 | 0.731139 | 757 | 5,620 | 5.122853 | 0.19683 | 0.077359 | 0.057762 | 0.070397 | 0.413873 | 0.404848 | 0.351212 | 0.249097 | 0.203713 | 0.186952 | 0 | 0.001067 | 0.166192 | 5,620 | 181 | 91 | 31.049724 | 0.826504 | 0.882384 | 0 | 0 | 0 | 0 | 0.070707 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.125 | false | 0 | 0.625 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
0ee58428b41322c4b7561f0f931c39bb528c2e35 | 102 | py | Python | Dataset/Leetcode/train/67/150.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/67/150.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/67/150.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | class Solution:
def XXX(self, a: str, b: str) -> str:
return bin(int(a,2)+int(b,2))[2:]
| 20.4 | 41 | 0.529412 | 19 | 102 | 2.842105 | 0.631579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039474 | 0.254902 | 102 | 4 | 42 | 25.5 | 0.671053 | 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 |
0eebfb0e8be3e7336ffd49a74d90da44de1bce18 | 59 | py | Python | share/regulate/__init__.py | felliott/SHARE | 8fd60ff4749349c9b867f6188650d71f4f0a1a56 | [
"Apache-2.0"
] | 87 | 2015-01-06T18:24:45.000Z | 2021-08-08T07:59:40.000Z | share/regulate/__init__.py | fortress-biotech/SHARE | 9c5a05dd831447949fa6253afec5225ff8ab5d4f | [
"Apache-2.0"
] | 442 | 2015-01-01T19:16:01.000Z | 2022-03-30T21:10:26.000Z | share/regulate/__init__.py | fortress-biotech/SHARE | 9c5a05dd831447949fa6253afec5225ff8ab5d4f | [
"Apache-2.0"
] | 67 | 2015-03-10T16:32:58.000Z | 2021-11-12T16:33:41.000Z | from .regulator import Regulator
__all__ = ('Regulator',)
| 14.75 | 32 | 0.745763 | 6 | 59 | 6.666667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135593 | 59 | 3 | 33 | 19.666667 | 0.784314 | 0 | 0 | 0 | 0 | 0 | 0.152542 | 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 |
0eed1a514c20a73f13dec9567ddd2a60bced018d | 270 | py | Python | label_studio_withoutsignin/projects/migrations/0005_merge_20210308_1141.py | DimaVinnitsa/label-studio | b33ef9edc5efef5f5a073e3a457832278afbf2cf | [
"Apache-2.0"
] | null | null | null | label_studio_withoutsignin/projects/migrations/0005_merge_20210308_1141.py | DimaVinnitsa/label-studio | b33ef9edc5efef5f5a073e3a457832278afbf2cf | [
"Apache-2.0"
] | null | null | null | label_studio_withoutsignin/projects/migrations/0005_merge_20210308_1141.py | DimaVinnitsa/label-studio | b33ef9edc5efef5f5a073e3a457832278afbf2cf | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.1.4 on 2021-03-08 11:41
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("projects", "0004_auto_20210306_0506"),
("projects", "0003_auto_20210305_1008"),
]
operations = []
| 19.285714 | 48 | 0.662963 | 33 | 270 | 5.242424 | 0.848485 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.221698 | 0.214815 | 270 | 13 | 49 | 20.769231 | 0.59434 | 0.166667 | 0 | 0 | 1 | 0 | 0.278027 | 0.206278 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.571429 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
162338d765938eb315b3739fc6508a06442f8712 | 2,403 | py | Python | lisa/tools/firewall.py | srveniga/lisa | 0b5bcf028ed4211d79ff90b9f915981c426baab4 | [
"MIT"
] | null | null | null | lisa/tools/firewall.py | srveniga/lisa | 0b5bcf028ed4211d79ff90b9f915981c426baab4 | [
"MIT"
] | null | null | null | lisa/tools/firewall.py | srveniga/lisa | 0b5bcf028ed4211d79ff90b9f915981c426baab4 | [
"MIT"
] | null | null | null | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
from lisa.executable import Tool
from .service import Service
class Firewall(Tool):
@property
def command(self) -> str:
return "ls -lt"
@property
def can_install(self) -> bool:
return False
def stop(self) ... | 25.03125 | 78 | 0.595922 | 287 | 2,403 | 4.923345 | 0.195122 | 0.077849 | 0.055202 | 0.077849 | 0.682944 | 0.651805 | 0.651805 | 0.505308 | 0.357396 | 0.268224 | 0 | 0.006429 | 0.287973 | 2,403 | 95 | 79 | 25.294737 | 0.819404 | 0.028298 | 0 | 0.56338 | 0 | 0 | 0.087479 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.211268 | false | 0 | 0.028169 | 0.140845 | 0.507042 | 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 |
1630bc2f1c8d2bb0d5cd3284f69558bacb76b587 | 137 | py | Python | server/urls.py | Decision2016/IndigoRobot | da427cc6a960eb211c31fa029f724d83dc5b0531 | [
"MIT"
] | null | null | null | server/urls.py | Decision2016/IndigoRobot | da427cc6a960eb211c31fa029f724d83dc5b0531 | [
"MIT"
] | 5 | 2021-03-30T12:41:35.000Z | 2021-06-10T18:15:43.000Z | server/urls.py | Decision2016/IndigoRobot | da427cc6a960eb211c31fa029f724d83dc5b0531 | [
"MIT"
] | null | null | null | from django.conf.urls import url, include
from server.views import ServerAPI
urlpatterns = [
url(r'^server/', ServerAPI.as_view())
] | 22.833333 | 41 | 0.737226 | 19 | 137 | 5.263158 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138686 | 137 | 6 | 42 | 22.833333 | 0.847458 | 0 | 0 | 0 | 0 | 0 | 0.057971 | 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 |
1664c53d004415c300b94f1d371dcb61d74cb045 | 278 | py | Python | gameserver/database.py | hammertoe/didactic-spork | 8d02836f9d3a0d707eea22d480553a8fdc35a0df | [
"Apache-2.0"
] | null | null | null | gameserver/database.py | hammertoe/didactic-spork | 8d02836f9d3a0d707eea22d480553a8fdc35a0df | [
"Apache-2.0"
] | 1 | 2017-02-14T12:00:14.000Z | 2017-02-14T12:00:14.000Z | gameserver/database.py | hammertoe/didactic-spork | 8d02836f9d3a0d707eea22d480553a8fdc35a0df | [
"Apache-2.0"
] | null | null | null | from flaskext.zodb import ZODB
from flaskext.zodb import BTree
from flask import g
def get_db():
if '_zodb' not in g:
g._zodb = ZODB()
return g._zodb
def Xreset_database(db):
db['players'] = BTree()
db['policies'] = BTree()
db['goals'] = BTree()
| 17.375 | 31 | 0.625899 | 41 | 278 | 4.121951 | 0.463415 | 0.142012 | 0.189349 | 0.260355 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.241007 | 278 | 15 | 32 | 18.533333 | 0.800948 | 0 | 0 | 0 | 0 | 0 | 0.090253 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.272727 | 0 | 0.545455 | 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 |
167c609da155dc3ff1b942f54b0eeb0a905b80a9 | 430 | py | Python | Tele_Aula 3/Classe.py | andrenjunior/Linguagem-de-Programa-o-Python | ebffc440bfde7a4c8752872d9cc00e0f83a91e3b | [
"MIT"
] | null | null | null | Tele_Aula 3/Classe.py | andrenjunior/Linguagem-de-Programa-o-Python | ebffc440bfde7a4c8752872d9cc00e0f83a91e3b | [
"MIT"
] | null | null | null | Tele_Aula 3/Classe.py | andrenjunior/Linguagem-de-Programa-o-Python | ebffc440bfde7a4c8752872d9cc00e0f83a91e3b | [
"MIT"
] | null | null | null | class conta:
def __init__(self, nome, numero):
self.cliente = nome
self.num = numero
self.saldo = 0.0
def Saldo (self ):
return self.saldo
def getcliente (self):
return self.cliente
def depositar (self, valor):
self.saldo += valor
def transferenc... | 17.916667 | 43 | 0.576744 | 51 | 430 | 4.784314 | 0.313725 | 0.184426 | 0.114754 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00692 | 0.327907 | 430 | 23 | 44 | 18.695652 | 0.83737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.357143 | false | 0 | 0 | 0.142857 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
169dd63954d9f83ef79be6ddc4db0164aaf810e8 | 161 | py | Python | tips/__init__.py | Kuro-Rui/flare-cogs | f739e3a4a8c65bf0e10945d242ba0b82f96c6d3d | [
"MIT"
] | 38 | 2021-03-07T17:13:10.000Z | 2022-02-28T19:50:00.000Z | tips/__init__.py | Kuro-Rui/flare-cogs | f739e3a4a8c65bf0e10945d242ba0b82f96c6d3d | [
"MIT"
] | 44 | 2021-03-12T19:13:32.000Z | 2022-03-18T10:20:52.000Z | tips/__init__.py | Kuro-Rui/flare-cogs | f739e3a4a8c65bf0e10945d242ba0b82f96c6d3d | [
"MIT"
] | 33 | 2021-03-08T18:59:59.000Z | 2022-03-23T10:57:46.000Z | from redbot.core.bot import Red
from .tips import Tips
async def setup(bot: Red) -> None:
cog = Tips(bot)
bot.add_cog(cog)
await cog.initialize()
| 16.1 | 34 | 0.670807 | 26 | 161 | 4.115385 | 0.576923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.217391 | 161 | 9 | 35 | 17.888889 | 0.849206 | 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 |
169ffde1afe72c96a9f33cee4ce57aa24d2da406 | 382 | py | Python | FusionIIIT/applications/research_procedures/api/views.py | arrnavvv/Fusion | 7d5a0d9d71196de992d240bc99b19317251d7e36 | [
"bzip2-1.0.6"
] | 1 | 2022-01-12T09:22:58.000Z | 2022-01-12T09:22:58.000Z | FusionIIIT/applications/research_procedures/api/views.py | arrnavvv/Fusion | 7d5a0d9d71196de992d240bc99b19317251d7e36 | [
"bzip2-1.0.6"
] | null | null | null | FusionIIIT/applications/research_procedures/api/views.py | arrnavvv/Fusion | 7d5a0d9d71196de992d240bc99b19317251d7e36 | [
"bzip2-1.0.6"
] | 1 | 2022-03-02T06:31:45.000Z | 2022-03-02T06:31:45.000Z | from rest_framework.viewsets import ModelViewSet
from applications.research_procedures.models import Patent
from .serializers import PatentSerializer
from rest_framework.permissions import IsAuthenticatedOrReadOnly
class PatentViewSet(ModelViewSet):
queryset = Patent.objects.all()
serializer_class = PatentSer... | 42.444444 | 65 | 0.84555 | 36 | 382 | 8.833333 | 0.638889 | 0.050314 | 0.106918 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109948 | 382 | 9 | 66 | 42.444444 | 0.935294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
16c8e5cbd1c725058b97e5a6e7568f729b1732bc | 94 | py | Python | marketlearn/playground/unittest_practice/mysum/my_sum.py | mrajancsr/QuantEquityManagement | 026aa038268295a7d5e32c3d24c491e3c559e22e | [
"Apache-2.0"
] | 2 | 2020-07-22T09:28:31.000Z | 2020-08-17T01:19:42.000Z | marketlearn/playground/unittest_practice/mysum/my_sum.py | mrajancsr/QuantEquityManagement | 026aa038268295a7d5e32c3d24c491e3c559e22e | [
"Apache-2.0"
] | null | null | null | marketlearn/playground/unittest_practice/mysum/my_sum.py | mrajancsr/QuantEquityManagement | 026aa038268295a7d5e32c3d24c491e3c559e22e | [
"Apache-2.0"
] | 3 | 2020-08-04T02:48:32.000Z | 2020-08-17T01:20:09.000Z | def custom_sum(args):
total = 0
for arg in args:
total += arg
return total | 18.8 | 21 | 0.574468 | 14 | 94 | 3.785714 | 0.714286 | 0.339623 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016393 | 0.351064 | 94 | 5 | 22 | 18.8 | 0.852459 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
16dea0e8bc012547eaee1ecb1a9cc2e6ceeff19e | 641 | py | Python | movie/models.py | jamesbond007dj/django-crud-stretch | 8f7afa1f48fc88718c73d3278d8b56ffc263c1ad | [
"MIT"
] | 1 | 2020-01-22T21:46:35.000Z | 2020-01-22T21:46:35.000Z | movie/models.py | jamesbond007dj/django-crud-stretch | 8f7afa1f48fc88718c73d3278d8b56ffc263c1ad | [
"MIT"
] | 5 | 2021-03-18T22:51:34.000Z | 2021-09-22T18:35:28.000Z | movie/models.py | jamesbond007dj/django-crud-stretch | 8f7afa1f48fc88718c73d3278d8b56ffc263c1ad | [
"MIT"
] | null | null | null | from django.db import models
from django.urls import reverse
class Mov(models.Model):
title = models.CharField(max_length=200)
field_name = models.ImageField(upload_to='static/img', height_field=None, width_field=None, max_length=10000)
director = models.CharField(max_length=200)
starring = models.Char... | 33.736842 | 113 | 0.719189 | 85 | 641 | 5.223529 | 0.564706 | 0.101351 | 0.162162 | 0.216216 | 0.243243 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031955 | 0.170047 | 641 | 19 | 114 | 33.736842 | 0.802632 | 0 | 0 | 0 | 0 | 0 | 0.045171 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0.142857 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
16eb820cedf2cfd5454179050c6c18c11433d9b0 | 434 | py | Python | python_basic/11.py | MiracleWong/aming_python | 88a8199a0a5e0db2c555e12c5add5dc4e230bd09 | [
"MIT"
] | null | null | null | python_basic/11.py | MiracleWong/aming_python | 88a8199a0a5e0db2c555e12c5add5dc4e230bd09 | [
"MIT"
] | null | null | null | python_basic/11.py | MiracleWong/aming_python | 88a8199a0a5e0db2c555e12c5add5dc4e230bd09 | [
"MIT"
] | null | null | null | #!/usr/bin/python
#-*- coding:utf-8 -*-
# 计算计算机的mac地址
macaddr = 'ac:bc:32:d6:37:b5'
prefix_mac = macaddr[:-3]
last_two = macaddr[-2:]
plus_one = int(last_two, 16) + 1
if plus_one in range(10):
new_last_two = hex(plus_one)[2:]
new_last_two = '0' + new_last_two
else:
new_last_two = hex(plus_one)[2:]
if len(new_last_... | 20.666667 | 41 | 0.675115 | 81 | 434 | 3.296296 | 0.444444 | 0.262172 | 0.299625 | 0.097378 | 0.314607 | 0.314607 | 0.314607 | 0 | 0 | 0 | 0 | 0.051491 | 0.14977 | 434 | 20 | 42 | 21.7 | 0.672087 | 0.110599 | 0 | 0.307692 | 0 | 0 | 0.052493 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.076923 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
16edc6603a75e87676b22aeef8b05b36811c121d | 2,625 | py | Python | future_work.py | rksingh95/prediction-service | fc922b11272db93f8435deb332ceec59caacb56b | [
"MIT"
] | 3 | 2021-04-02T11:54:08.000Z | 2022-02-21T08:07:46.000Z | future_work.py | rksingh95/prediction-service | fc922b11272db93f8435deb332ceec59caacb56b | [
"MIT"
] | null | null | null | future_work.py | rksingh95/prediction-service | fc922b11272db93f8435deb332ceec59caacb56b | [
"MIT"
] | null | null | null | #
# TODO Future implantation
# Create image prediction in tabular format
# # Read image
# model = load_model("models/resnet152_class_23_epoch_50.h5")
# loss = tf.keras.losses.CategoricalCrossentropy()
# optimizer = tf.keras.optimizers.Adam(learning_rate=LEARNING_RATE)
# model.compile(optimizer=optim... | 46.875 | 115 | 0.657905 | 365 | 2,625 | 4.630137 | 0.364384 | 0.028402 | 0.035503 | 0.03787 | 0.263905 | 0.263905 | 0.221302 | 0.173373 | 0.173373 | 0.173373 | 0 | 0.059318 | 0.184381 | 2,625 | 56 | 116 | 46.875 | 0.730033 | 0.953524 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0.017857 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bc47accab479809682d7adbea14973360de8acb1 | 147 | py | Python | apps/turno/apps.py | emilioeiji/gestao_gbareru | 2f3d196c2f511910cba2857062725b817547896a | [
"CC0-1.0"
] | null | null | null | apps/turno/apps.py | emilioeiji/gestao_gbareru | 2f3d196c2f511910cba2857062725b817547896a | [
"CC0-1.0"
] | null | null | null | apps/turno/apps.py | emilioeiji/gestao_gbareru | 2f3d196c2f511910cba2857062725b817547896a | [
"CC0-1.0"
] | null | null | null | from django.apps import AppConfig
class TurnoConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'apps.turno'
| 21 | 56 | 0.755102 | 18 | 147 | 6.055556 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14966 | 147 | 6 | 57 | 24.5 | 0.872 | 0 | 0 | 0 | 0 | 0 | 0.265306 | 0.197279 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
bc5078b3278af5ed3c8b8a8f33dfd4f94faf224a | 493 | py | Python | tests/pytest_extension/fixtures/fixture_unions/test_fixtures_union_3parametrize_plus.py | broglep-work/python-pytest-cases | 4976c0073a2fad5fbe5de34a5d1199efda0b7da9 | [
"BSD-3-Clause"
] | 213 | 2018-07-05T21:21:21.000Z | 2022-03-22T04:54:53.000Z | tests/pytest_extension/fixtures/fixture_unions/test_fixtures_union_3parametrize_plus.py | broglep-work/python-pytest-cases | 4976c0073a2fad5fbe5de34a5d1199efda0b7da9 | [
"BSD-3-Clause"
] | 259 | 2018-06-22T16:46:33.000Z | 2022-03-23T19:39:15.000Z | tests/pytest_extension/fixtures/fixture_unions/test_fixtures_union_3parametrize_plus.py | broglep-work/python-pytest-cases | 4976c0073a2fad5fbe5de34a5d1199efda0b7da9 | [
"BSD-3-Clause"
] | 27 | 2019-03-26T12:46:49.000Z | 2022-02-21T16:56:23.000Z | # Authors: Sylvain MARIE <sylvain.marie@se.com>
# + All contributors to <https://github.com/smarie/python-pytest-cases>
#
# License: 3-clause BSD, <https://github.com/smarie/python-pytest-cases/blob/master/LICENSE>
import pytest
from pytest_cases import fixture_union
@pytest.fixture(params=[2, 3])
def a():
... | 20.541667 | 92 | 0.693712 | 73 | 493 | 4.575342 | 0.493151 | 0.098802 | 0.083832 | 0.11976 | 0.221557 | 0.221557 | 0.221557 | 0 | 0 | 0 | 0 | 0.028571 | 0.148073 | 493 | 23 | 93 | 21.434783 | 0.766667 | 0.436105 | 0 | 0 | 0 | 0 | 0.058608 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.181818 | 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 |
bc64bb65027212f376e29667f64f8063c02b3bfa | 443 | py | Python | flyplanner/geom.py | happy-developer-fr/fly-planner | 2624338928226bbb0fd0a633d40a6afb7da60d59 | [
"MIT"
] | null | null | null | flyplanner/geom.py | happy-developer-fr/fly-planner | 2624338928226bbb0fd0a633d40a6afb7da60d59 | [
"MIT"
] | null | null | null | flyplanner/geom.py | happy-developer-fr/fly-planner | 2624338928226bbb0fd0a633d40a6afb7da60d59 | [
"MIT"
] | null | null | null | import math
class Point:
def __init__(self, x_coord: int, y_coord: int):
self.x_coord = x_coord
self.y_coord = y_coord
def get_x(self) -> int:
return self.x_coord
def get_y(self) -> int:
return self.y_coord
def distance(a_point: Point, b_point: Point):
return math.s... | 21.095238 | 56 | 0.623025 | 74 | 443 | 3.405405 | 0.256757 | 0.142857 | 0.119048 | 0.134921 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006173 | 0.268623 | 443 | 20 | 57 | 22.15 | 0.771605 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.071429 | 0.214286 | 0.642857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
bc6cf471865e04dde5730aefe66aa7dca3c91cc8 | 338 | py | Python | marketvis/__main__.py | ryanpstauffer/market-vis | 257e23af786ff5612a2765a15efe8fb54e63fdb0 | [
"MIT"
] | 2 | 2016-04-04T22:44:10.000Z | 2021-07-16T10:32:19.000Z | marketvis/__main__.py | hyperfraise/market-vis | 257e23af786ff5612a2765a15efe8fb54e63fdb0 | [
"MIT"
] | 6 | 2016-04-04T19:02:52.000Z | 2016-04-06T18:37:13.000Z | marketvis/__main__.py | hyperfraise/market-vis | 257e23af786ff5612a2765a15efe8fb54e63fdb0 | [
"MIT"
] | 4 | 2016-04-04T22:44:58.000Z | 2021-07-16T10:32:21.000Z | # -*- coding: utf-8 -*-
"""
[Python 2.7 (Mayavi is not yet compatible with Python 3+)]
Created on Wed Apr 6 14:10:13 2016
@author: Ryan Stauffer
https://github.com/ryanpstauffer/market-vis
Market Visualization Prototype
marketvis.__main__: executed when marketvis directory is called as script
"""
from .marketvis im... | 21.125 | 73 | 0.742604 | 50 | 338 | 4.94 | 0.86 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052083 | 0.147929 | 338 | 15 | 74 | 22.533333 | 0.805556 | 0.857988 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
bc7133fdf1a515fad18ed1b2c34b3d4d3e46d32e | 7,574 | py | Python | tests/_large_map.py | yoyowallet/alembic | 6eceffe0601f0ec025101bc3d6a16d0739485230 | [
"MIT"
] | null | null | null | tests/_large_map.py | yoyowallet/alembic | 6eceffe0601f0ec025101bc3d6a16d0739485230 | [
"MIT"
] | null | null | null | tests/_large_map.py | yoyowallet/alembic | 6eceffe0601f0ec025101bc3d6a16d0739485230 | [
"MIT"
] | 1 | 2020-01-23T05:18:17.000Z | 2020-01-23T05:18:17.000Z | from alembic.script.revision import RevisionMap, Revision
data = [
Revision('3fc8a578bc0a', ('4878cb1cb7f6', '454a0529f84e'), ),
Revision('69285b0faaa', ('36c31e4e1c37', '3a3b24a31b57'), ),
Revision('3b0452c64639', '2f1a0f3667f3', ),
Revision('2d9d787a496', '135b5fd31062', ),
Revision('184f65ed83af... | 49.503268 | 65 | 0.664246 | 478 | 7,574 | 10.523013 | 0.317992 | 0.015905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.384686 | 0.139556 | 7,574 | 152 | 66 | 49.828947 | 0.387141 | 0 | 0 | 0 | 0 | 0 | 0.503434 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.006757 | 0 | 0.006757 | 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 |
bc79ac1ed71e6bdfe3a5cabbacbe97f3774a98b3 | 328 | py | Python | src/mysimplehttp/exception.py | lucasmgrando/mysimplehttp | 86ba05e12b8ff73fc5335d26df55c26585eb90fd | [
"MIT"
] | null | null | null | src/mysimplehttp/exception.py | lucasmgrando/mysimplehttp | 86ba05e12b8ff73fc5335d26df55c26585eb90fd | [
"MIT"
] | null | null | null | src/mysimplehttp/exception.py | lucasmgrando/mysimplehttp | 86ba05e12b8ff73fc5335d26df55c26585eb90fd | [
"MIT"
] | null | null | null | class SchemeNotFoundException(Exception):
def __init__(self):
super().__init__('Scheme not found')
class InvalidSchemeException(Exception):
def __init__(self, scheme):
super().__init__(f'Invalid scheme: {scheme}')
class DNSResolutionError(Exception):
pass
class MaxRetryError(Exception):
... | 23.428571 | 53 | 0.719512 | 32 | 328 | 6.875 | 0.5 | 0.109091 | 0.145455 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170732 | 328 | 13 | 54 | 25.230769 | 0.808824 | 0 | 0 | 0.2 | 0 | 0 | 0.121951 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.2 | 0 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
bc8062d30b4a23149ff6744fd263c86d597bfd70 | 1,382 | py | Python | tests/keras/test_activations.py | guocuimi/minitf | f272a6b1546b82aaec41ec7d2c2d34fa40a40385 | [
"MIT"
] | 7 | 2020-02-10T08:16:30.000Z | 2021-01-31T14:08:02.000Z | tests/keras/test_activations.py | guocuimi/minitf | f272a6b1546b82aaec41ec7d2c2d34fa40a40385 | [
"MIT"
] | 1 | 2020-02-29T01:57:54.000Z | 2020-02-29T01:57:54.000Z | tests/keras/test_activations.py | guocuimi/minitf | f272a6b1546b82aaec41ec7d2c2d34fa40a40385 | [
"MIT"
] | null | null | null | import pytest
import minitf as tf
from minitf.keras import activations
from minitf.test_util import check_gradients
tf.random.set_seed(10)
def gen_args():
scalar = tf.random.randn()
vector = tf.random.randn(4)
mat = tf.random.randn(3, 4)
mat2 = tf.random.randn(10, 4)
return [scalar, vector, mat,... | 26.075472 | 56 | 0.716353 | 184 | 1,382 | 5.222826 | 0.206522 | 0.203954 | 0.229969 | 0.378772 | 0.722164 | 0.252862 | 0.252862 | 0.252862 | 0.213319 | 0 | 0 | 0.008278 | 0.125904 | 1,382 | 52 | 57 | 26.576923 | 0.787252 | 0 | 0 | 0.166667 | 0 | 0 | 0.036903 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.194444 | false | 0 | 0.111111 | 0 | 0.333333 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.