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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ed6c184f91757444f78b6a52267a5024ae9c7b6d | 51 | py | Python | init.py | Jean1dev/Turing-Machine | 6b2797d69a8a9c1610b749d40aadf17d5de22bb4 | [
"MIT"
] | null | null | null | init.py | Jean1dev/Turing-Machine | 6b2797d69a8a9c1610b749d40aadf17d5de22bb4 | [
"MIT"
] | null | null | null | init.py | Jean1dev/Turing-Machine | 6b2797d69a8a9c1610b749d40aadf17d5de22bb4 | [
"MIT"
] | null | null | null | from menu import Menu
start = Menu()
start.start() | 12.75 | 21 | 0.72549 | 8 | 51 | 4.625 | 0.5 | 0.486486 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.156863 | 51 | 4 | 22 | 12.75 | 0.860465 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
71e8ece0e4b48ba8aa6d36984934d5b53d61f28c | 311 | py | Python | sixtyfour/sixtyfour.py | kennell/sixtyfour | a4c91e2ba471df692edbeffa8596f0576187d914 | [
"MIT"
] | null | null | null | sixtyfour/sixtyfour.py | kennell/sixtyfour | a4c91e2ba471df692edbeffa8596f0576187d914 | [
"MIT"
] | null | null | null | sixtyfour/sixtyfour.py | kennell/sixtyfour | a4c91e2ba471df692edbeffa8596f0576187d914 | [
"MIT"
] | null | null | null | import base64
UTF8 = 'utf-8'
def bytes_to_b64(val):
return base64.b64encode(val).decode(UTF8)
def b64_to_bytes(val):
return base64.b64decode(val)
def str_to_b64(val):
return base64.b64encode(val.encode(UTF8)).decode(UTF8)
def b64_to_str(val):
return base64.b64decode(val).decode(UTF8)
| 14.809524 | 58 | 0.720257 | 49 | 311 | 4.408163 | 0.326531 | 0.166667 | 0.277778 | 0.12963 | 0.712963 | 0.296296 | 0.296296 | 0 | 0 | 0 | 0 | 0.121212 | 0.151125 | 311 | 20 | 59 | 15.55 | 0.69697 | 0 | 0 | 0 | 0 | 0 | 0.016077 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0.1 | 0.4 | 0.9 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
71f6fdac0ff3c9fb9a8d5be6159ee784a9037977 | 306 | py | Python | tests/network/test_fees.py | dendisuhubdy/bitcash | 31584b827a8c1a37e8854e705fe94603354fa7ba | [
"MIT"
] | 2 | 2020-06-09T03:47:19.000Z | 2021-11-16T12:02:57.000Z | tests/network/test_fees.py | AlphaGriffin/bitcash | 793e632733b4ea8988b23c7804c00034f9fc0427 | [
"MIT"
] | null | null | null | tests/network/test_fees.py | AlphaGriffin/bitcash | 793e632733b4ea8988b23c7804c00034f9fc0427 | [
"MIT"
] | 1 | 2020-07-13T06:44:18.000Z | 2020-07-13T06:44:18.000Z | import pytest
from bitcash.network.fees import get_fee
def test_get_fee():
assert get_fee(speed='fast') >= get_fee(speed='medium')
assert get_fee(speed='medium') >= get_fee(speed='slow')
def test_get_fee_invalid_speed():
with pytest.raises(ValueError):
get_fee(speed='super fast')
| 21.857143 | 59 | 0.712418 | 46 | 306 | 4.478261 | 0.434783 | 0.23301 | 0.26699 | 0.126214 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153595 | 306 | 13 | 60 | 23.538462 | 0.795367 | 0 | 0 | 0 | 0 | 0 | 0.098039 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | true | 0 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
9c06c5c1145852b3a4227ab8bfc6e614f7804085 | 125 | py | Python | sandbox_app/apps.py | pincoin/django-summernote-ajax | edfc63975340b259a39feb9b060474d0903a39e3 | [
"MIT"
] | 2 | 2018-01-17T04:30:01.000Z | 2020-10-17T21:26:50.000Z | sandbox_app/apps.py | pincoin/django-summernote-ajax | edfc63975340b259a39feb9b060474d0903a39e3 | [
"MIT"
] | 12 | 2018-01-29T15:59:05.000Z | 2022-03-11T23:18:30.000Z | sandbox_app/apps.py | pincoin/django-summernote-ajax | edfc63975340b259a39feb9b060474d0903a39e3 | [
"MIT"
] | 1 | 2018-01-17T03:12:24.000Z | 2018-01-17T03:12:24.000Z | from django.apps import AppConfig
class SandboxAppConfig(AppConfig):
name = 'sandbox_app'
verbose_name = 'sandbox'
| 17.857143 | 34 | 0.744 | 14 | 125 | 6.5 | 0.785714 | 0.241758 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176 | 125 | 6 | 35 | 20.833333 | 0.883495 | 0 | 0 | 0 | 0 | 0 | 0.144 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
9c1d5bec94df287cc6c1b7e1bd6a07f15eb7c183 | 9,381 | py | Python | core/domain/audit_validators_test.py | sf11047/oppia | dc7410cf9f36e1f357a847d744ba2241a670cb15 | [
"Apache-2.0"
] | null | null | null | core/domain/audit_validators_test.py | sf11047/oppia | dc7410cf9f36e1f357a847d744ba2241a670cb15 | [
"Apache-2.0"
] | null | null | null | core/domain/audit_validators_test.py | sf11047/oppia | dc7410cf9f36e1f357a847d744ba2241a670cb15 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
#
# Copyright 2020 The Oppia Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | 42.256757 | 80 | 0.666986 | 1,173 | 9,381 | 5.055413 | 0.167093 | 0.056998 | 0.063069 | 0.021922 | 0.800169 | 0.75683 | 0.75683 | 0.694098 | 0.665093 | 0.665093 | 0 | 0.004059 | 0.238461 | 9,381 | 221 | 81 | 42.447964 | 0.826008 | 0.075578 | 0 | 0.698225 | 0 | 0 | 0.093526 | 0.013988 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071006 | false | 0 | 0.071006 | 0 | 0.153846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
9c4228bf397708d68b44413ef6cc28f594450f48 | 237 | py | Python | logging/logging_api/logging_api_example_1.py | levs72/pyneng-examples | d6288292dcf9d1ebc5a9db4a0d620bd11b4a2df9 | [
"MIT"
] | 11 | 2021-04-05T09:30:23.000Z | 2022-03-09T13:27:56.000Z | logging/logging_api/logging_api_example_1.py | levs72/pyneng-examples | d6288292dcf9d1ebc5a9db4a0d620bd11b4a2df9 | [
"MIT"
] | null | null | null | logging/logging_api/logging_api_example_1.py | levs72/pyneng-examples | d6288292dcf9d1ebc5a9db4a0d620bd11b4a2df9 | [
"MIT"
] | 11 | 2021-04-06T03:44:35.000Z | 2022-03-04T21:20:40.000Z | import logging
mylogger = logging.getLogger("My Script")
# mylogger = logging.getLogger(__name__)
## messages
mylogger.debug("Сообщение уровня debug")
mylogger.info("Сообщение уровня info")
mylogger.warning("Сообщение уровня warning")
| 23.7 | 44 | 0.78481 | 27 | 237 | 6.740741 | 0.481481 | 0.247253 | 0.263736 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097046 | 237 | 9 | 45 | 26.333333 | 0.850467 | 0.198312 | 0 | 0 | 0 | 0 | 0.408602 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 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 | 4 |
9c62cdeaf42f82ba45256230a11c8418074c91a1 | 333 | py | Python | venv/Lib/site-packages/caffe2/python/predictor/serde.py | Westlanderz/AI-Plat1 | 1187c22819e5135e8e8189c99b86a93a0d66b8d8 | [
"MIT"
] | 1 | 2022-01-08T12:30:44.000Z | 2022-01-08T12:30:44.000Z | venv/Lib/site-packages/caffe2/python/predictor/serde.py | Westlanderz/AI-Plat1 | 1187c22819e5135e8e8189c99b86a93a0d66b8d8 | [
"MIT"
] | null | null | null | venv/Lib/site-packages/caffe2/python/predictor/serde.py | Westlanderz/AI-Plat1 | 1187c22819e5135e8e8189c99b86a93a0d66b8d8 | [
"MIT"
] | null | null | null | ## @package serde
# Module caffe2.python.predictor.serde
def serialize_protobuf_struct(protobuf_struct):
return protobuf_struct.SerializeToString()
def deserialize_protobuf_struct(serialized_protobuf, struct_type):
deser = struct_type()
deser.ParseFromString(serialized_protobuf)
r... | 19.588235 | 67 | 0.753754 | 34 | 333 | 7.088235 | 0.5 | 0.290456 | 0.124481 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00365 | 0.177177 | 333 | 16 | 68 | 20.8125 | 0.875912 | 0.153153 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.166667 | 0.666667 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
9c764ae3683c8b4a0b3cd96844cb40ebb55fea03 | 1,379 | py | Python | data/typing/pandas.core.arrays.period.py | vfdev-5/python-record-api | 006faf0bba9cd4cb55fbacc13d2bbda365f5bf0b | [
"MIT"
] | 67 | 2020-08-17T11:53:26.000Z | 2021-11-08T20:16:06.000Z | data/typing/pandas.core.arrays.period.py | vfdev-5/python-record-api | 006faf0bba9cd4cb55fbacc13d2bbda365f5bf0b | [
"MIT"
] | 36 | 2020-08-17T11:09:51.000Z | 2021-12-15T18:09:47.000Z | data/typing/pandas.core.arrays.period.py | pydata-apis/python-api-record | 684cffbbb6dc6e81f9de4e02619c8b0ebc557b2b | [
"MIT"
] | 7 | 2020-08-19T05:06:47.000Z | 2020-11-04T05:10:38.000Z | from typing import *
class PeriodArray:
# usage.dask: 1
asi8: object
# usage.dask: 1
dtype: object
def __add__(self, _0: Union[numpy.ndarray, numpy.timedelta64, numpy.datetime64], /):
"""
usage.pandas: 5
"""
...
def __eq__(self, _0: numpy.ndarray, /):
... | 18.386667 | 88 | 0.444525 | 125 | 1,379 | 4.504 | 0.28 | 0.08881 | 0.106572 | 0.181172 | 0.730018 | 0.730018 | 0.582593 | 0.582593 | 0.35524 | 0.35524 | 0 | 0.046595 | 0.393038 | 1,379 | 74 | 89 | 18.635135 | 0.626045 | 0.136331 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.357143 | true | 0 | 0.035714 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
92ed3b95cbc049317d2f9d7c0f843a7f05eba8cf | 254 | py | Python | api/resources/post.py | phamtanvinh/victor-backend | edb52903a9db6b549fc412ff11570bc54deedba2 | [
"MIT"
] | null | null | null | api/resources/post.py | phamtanvinh/victor-backend | edb52903a9db6b549fc412ff11570bc54deedba2 | [
"MIT"
] | 1 | 2019-09-15T17:31:01.000Z | 2019-09-15T17:31:01.000Z | api/resources/post.py | phamtanvinh/victor-backend | edb52903a9db6b549fc412ff11570bc54deedba2 | [
"MIT"
] | 1 | 2019-10-28T10:23:14.000Z | 2019-10-28T10:23:14.000Z | from flask import Blueprint
from marshmallow import pprint
from api.utils import catch_exception
from api.resources import LIMIT_ROWS
from api.database import get_session
import api.models.post
post_bp = Blueprint('post', __name__, url_prefix='/post')
| 25.4 | 57 | 0.822835 | 38 | 254 | 5.263158 | 0.578947 | 0.105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114173 | 254 | 9 | 58 | 28.222222 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0.035433 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.857143 | 0 | 0.857143 | 0.428571 | 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 | 1 | 0 | 4 |
132518af8a89a78c7b68963a51f99473c15be99d | 82 | py | Python | Command_And_Control/Read and Write/C&C Cogs/data_request.py | Pixelnet-Project/The-Pixelnet | c2f6e77e283b3c18f6b6cdbf4cc4b9e1f225c5de | [
"BSD-3-Clause"
] | 1 | 2021-12-05T22:55:13.000Z | 2021-12-05T22:55:13.000Z | Command_And_Control/Read and Write/C&C Cogs/data_request.py | Pixelnet-Project/The-Pixelnet | c2f6e77e283b3c18f6b6cdbf4cc4b9e1f225c5de | [
"BSD-3-Clause"
] | 1 | 2021-04-09T17:38:32.000Z | 2021-04-09T17:38:32.000Z | Command_And_Control/Read and Write/C&C Cogs/data_request.py | Pixelnet-Project/The-Pixelnet | c2f6e77e283b3c18f6b6cdbf4cc4b9e1f225c5de | [
"BSD-3-Clause"
] | 1 | 2021-12-05T22:55:14.000Z | 2021-12-05T22:55:14.000Z | import socket
import threading
def request_central(address, id, connection):
| 16.4 | 45 | 0.780488 | 10 | 82 | 6.3 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.158537 | 82 | 5 | 46 | 16.4 | 0.913043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.666667 | 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 | 1 | 0 | 0 | 0 | 0 | 4 |
13389337cc495d98d3c02e3bb1c4a33fef24720a | 187 | py | Python | test/controllers/testingpackages/mysql_test.py | goodguyplayer/mss-Local-Book-Databank | 6a57082bac776c5581de9bec50089ef0643658a2 | [
"MIT"
] | null | null | null | test/controllers/testingpackages/mysql_test.py | goodguyplayer/mss-Local-Book-Databank | 6a57082bac776c5581de9bec50089ef0643658a2 | [
"MIT"
] | null | null | null | test/controllers/testingpackages/mysql_test.py | goodguyplayer/mss-Local-Book-Databank | 6a57082bac776c5581de9bec50089ef0643658a2 | [
"MIT"
] | null | null | null | import mysql.connector
# TODO.: Find our own mysql password. Whoops.
mydb = mysql.connector.connect(
host="localhost",
user="yourusername",
password="yourpassword"
)
print(mydb) | 17 | 45 | 0.727273 | 22 | 187 | 6.181818 | 0.772727 | 0.205882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144385 | 187 | 11 | 46 | 17 | 0.85 | 0.229947 | 0 | 0 | 0 | 0 | 0.230769 | 0 | 0 | 0 | 0 | 0.090909 | 0 | 1 | 0 | false | 0.142857 | 0.142857 | 0 | 0.142857 | 0.142857 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
1390ce3495e5e75d8cbda519584383a45dfc09df | 98 | py | Python | gev/__init__.py | tasptz/py-gev | 661cf03366137d0dd3cf417829c5d7e3d0b7ff44 | [
"MIT"
] | 1 | 2019-09-05T14:34:01.000Z | 2019-09-05T14:34:01.000Z | gev/__init__.py | tasptz/py-gev | 661cf03366137d0dd3cf417829c5d7e3d0b7ff44 | [
"MIT"
] | null | null | null | gev/__init__.py | tasptz/py-gev | 661cf03366137d0dd3cf417829c5d7e3d0b7ff44 | [
"MIT"
] | null | null | null | from .pygev import Camera
Camera.initialize()
import atexit
atexit.register(Camera.uninitialize)
| 16.333333 | 36 | 0.826531 | 12 | 98 | 6.75 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.091837 | 98 | 5 | 37 | 19.6 | 0.910112 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
13947bc5ee4c88cad832f1a6d1144a08194271a7 | 1,162 | py | Python | scripts/DepthImageCodec.py | krejov100/DepthCodec | fced6980bbdb85e28fba19ee722b6955b4bed4dc | [
"Apache-2.0"
] | 2 | 2019-12-09T22:07:33.000Z | 2022-03-06T10:41:16.000Z | scripts/DepthImageCodec.py | krejov100/DepthCodec | fced6980bbdb85e28fba19ee722b6955b4bed4dc | [
"Apache-2.0"
] | 25 | 2018-08-13T22:28:43.000Z | 2018-09-18T16:30:20.000Z | scripts/DepthImageCodec.py | krejov100/DepthCodec | fced6980bbdb85e28fba19ee722b6955b4bed4dc | [
"Apache-2.0"
] | null | null | null | import cv2
import matplotlib.pyplot as plt
from QuadTreeCodec import QuadTreeCodec
from TiledCodec import TiledCodec, BitStream
import numpy as np
# TODO Comment
class CodecFactory:
def __init__(self):
self.quad_size = 128
def create_codec(self):
return QuadTreeCodec(quad_tree_size=self.quad_... | 23.24 | 89 | 0.680723 | 141 | 1,162 | 5.446809 | 0.404255 | 0.041667 | 0.0625 | 0.041667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013043 | 0.208262 | 1,162 | 49 | 90 | 23.714286 | 0.821739 | 0.032702 | 0 | 0.117647 | 0 | 0 | 0.016071 | 0 | 0 | 0 | 0 | 0.020408 | 0 | 1 | 0.264706 | false | 0 | 0.147059 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
13b5b44559e5753c64a0ec8e36907d45b59a35a7 | 20,457 | py | Python | tests/pat/test_instrumentation.py | rbavishi/databutler | 222263672dae8b519d0592a6bbe68a01dc4ce95d | [
"BSD-2-Clause"
] | null | null | null | tests/pat/test_instrumentation.py | rbavishi/databutler | 222263672dae8b519d0592a6bbe68a01dc4ce95d | [
"BSD-2-Clause"
] | 1 | 2022-02-11T06:19:45.000Z | 2022-02-11T06:19:45.000Z | tests/pat/test_instrumentation.py | rbavishi/databutler | 222263672dae8b519d0592a6bbe68a01dc4ce95d | [
"BSD-2-Clause"
] | null | null | null | import collections
import itertools
import unittest
from typing import Dict, List
import attr
import numpy as np
from databutler.pat import astlib
from databutler.pat.analysis.instrumentation import ExprWrappersGenerator, ExprWrapper, Instrumentation, Instrumenter, \
StmtCallback, \
StmtCallbacksGenerator, Ex... | 38.380863 | 120 | 0.585374 | 2,117 | 20,457 | 5.453944 | 0.09589 | 0.019401 | 0.04573 | 0.048502 | 0.777585 | 0.753161 | 0.730902 | 0.717045 | 0.693487 | 0.661095 | 0 | 0.0158 | 0.322432 | 20,457 | 532 | 121 | 38.453008 | 0.817185 | 0.021704 | 0 | 0.681234 | 0 | 0 | 0.010535 | 0 | 0 | 0 | 0 | 0 | 0.064267 | 1 | 0.182519 | false | 0.002571 | 0.03599 | 0.028278 | 0.362468 | 0.012853 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
13bceabc0ab67895ad577f6e46527deb81821c72 | 929 | py | Python | api-template-python/test/test_hello.py | dashpradeep99/jazz | 119c1de882c936a241b7da223fde6792a3bcfdff | [
"Apache-2.0"
] | null | null | null | api-template-python/test/test_hello.py | dashpradeep99/jazz | 119c1de882c936a241b7da223fde6792a3bcfdff | [
"Apache-2.0"
] | null | null | null | api-template-python/test/test_hello.py | dashpradeep99/jazz | 119c1de882c936a241b7da223fde6792a3bcfdff | [
"Apache-2.0"
] | null | null | null | # =========================================================================
# Copyright 2017 T-Mobile USA, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apach... | 34.407407 | 76 | 0.580194 | 111 | 929 | 4.855856 | 0.675676 | 0.111317 | 0.048237 | 0.059369 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010596 | 0.187298 | 929 | 26 | 77 | 35.730769 | 0.703311 | 0.814855 | 0 | 0 | 0 | 0 | 0.140625 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | false | 0.4 | 0.4 | 0 | 0.6 | 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 | 1 | 1 | 0 | 1 | 0 | 0 | 4 |
13d8431e78fb856e4b961eb208128d42da8646ae | 270 | py | Python | wechat_django/tests/test_utils_decorator.py | UltraVacuum/wechat-django | 0ea243067f5bc5e69cab6c4585d5e46d9399a583 | [
"MIT"
] | 166 | 2019-02-23T10:19:33.000Z | 2022-02-03T06:50:15.000Z | wechat_django/tests/test_utils_decorator.py | UltraVacuum/wechat-django | 0ea243067f5bc5e69cab6c4585d5e46d9399a583 | [
"MIT"
] | 19 | 2019-05-07T07:28:32.000Z | 2021-06-02T06:56:03.000Z | wechat_django/tests/test_utils_decorator.py | UltraVacuum/wechat-django | 0ea243067f5bc5e69cab6c4585d5e46d9399a583 | [
"MIT"
] | 54 | 2019-02-27T07:55:57.000Z | 2021-09-02T06:47:51.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.http import response
from django.urls import reverse
from django.urls.resolvers import get_ns_resolver
from .base import WeChatTestCase
class UtilDecoratorTestCase(WeChatTestCase):
pass
| 20.769231 | 49 | 0.803704 | 34 | 270 | 6.176471 | 0.647059 | 0.142857 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004274 | 0.133333 | 270 | 12 | 50 | 22.5 | 0.893162 | 0.077778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.142857 | 0.714286 | 0 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 4 |
13f73ed3dd3e4144c7cc82af2ba0001ab6dfd23f | 164 | py | Python | example_project/no_python.py | ivanrybin/internship_jbr_licenses_2020 | 04dc42f54c0cf808c03f67ffdaa11106824de51d | [
"Apache-2.0",
"MIT"
] | null | null | null | example_project/no_python.py | ivanrybin/internship_jbr_licenses_2020 | 04dc42f54c0cf808c03f67ffdaa11106824de51d | [
"Apache-2.0",
"MIT"
] | null | null | null | example_project/no_python.py | ivanrybin/internship_jbr_licenses_2020 | 04dc42f54c0cf808c03f67ffdaa11106824de51d | [
"Apache-2.0",
"MIT"
] | null | null | null | """
C++ FOREVER
"""
def hello():
"""
UNREACHABLE GNU Lesser General Public License v3.0
http://opensource.org/licenses/MIT-LICENSE
"""
print("Haskell TOP") | 16.4 | 52 | 0.664634 | 21 | 164 | 5.190476 | 0.952381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014493 | 0.158537 | 164 | 10 | 53 | 16.4 | 0.775362 | 0.640244 | 0 | 0 | 0 | 0 | 0.282051 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0 | 0 | 0 | 0.5 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
b91aa0fe5c50484dfbd279e3b03c2c6e41909ae8 | 318 | py | Python | blockbot/__init__.py | Alexhuszagh/blockbot | 67c443079877622b1cd5f4dab383f94affe8efa4 | [
"Apache-2.0"
] | null | null | null | blockbot/__init__.py | Alexhuszagh/blockbot | 67c443079877622b1cd5f4dab383f94affe8efa4 | [
"Apache-2.0"
] | 1 | 2021-09-12T07:13:12.000Z | 2021-09-20T18:58:38.000Z | blockbot/__init__.py | Alexhuszagh/blockbot | 67c443079877622b1cd5f4dab383f94affe8efa4 | [
"Apache-2.0"
] | null | null | null | from .block_followers import block_followers
from .block_media_replies import block_media_replies
from .clean import clean_all, clean_logs, clean_tables
from .databases import get_databases
# Only import daemons on Unix-like systems.
try:
from .daemon import as_daemon, close_daemon
except RuntimeError:
pass
| 28.909091 | 54 | 0.823899 | 46 | 318 | 5.434783 | 0.543478 | 0.072 | 0.136 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.13522 | 318 | 10 | 55 | 31.8 | 0.909091 | 0.128931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.125 | 0.625 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 4 |
b93fa45da48d89473e952bd413250d8e72ae4cdf | 10,468 | py | Python | tests/utils.py | Lycreal/qbot | e0cb5af8295efb1d58780ac4a420551e1183ba8b | [
"MIT"
] | 7 | 2019-10-09T07:09:37.000Z | 2020-07-15T01:30:25.000Z | tests/utils.py | Lycreal/cqbot | b189a17283a63e982bf7f99e529486af8d2bfb76 | [
"MIT"
] | 59 | 2021-05-20T07:21:50.000Z | 2022-03-25T21:17:07.000Z | tests/utils.py | Lycreal/qbot | e0cb5af8295efb1d58780ac4a420551e1183ba8b | [
"MIT"
] | 2 | 2020-04-02T09:21:44.000Z | 2020-06-25T13:40:13.000Z | import base64
class MockResponse:
with open('tests/test.png', 'rb') as f:
image_base64: bytes = base64.b64encode(f.read())
def __init__(self, url):
self.url = url
async def aread(self) -> bytes:
if 'https://api.lolicon.app/setu/' in self.url:
return b'{"code":0,"msg":... | 171.606557 | 8,473 | 0.640046 | 1,976 | 10,468 | 3.37753 | 0.155364 | 0.08181 | 0.014834 | 0.020977 | 0.5 | 0.40875 | 0.3184 | 0.282889 | 0.248726 | 0.185346 | 0 | 0.240494 | 0.080436 | 10,468 | 60 | 8,474 | 174.466667 | 0.452836 | 0 | 0 | 0.111111 | 0 | 0.037037 | 0.367501 | 0.286301 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.018519 | 0 | 0.203704 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b9463ff08ab2ab0ce610e34a1cade22fc5cb563e | 1,223 | py | Python | pycinga/status.py | HurricaneLabs/python-pycinga | 52b04367c3948cac11ee77d466df6222d0d30034 | [
"MIT"
] | 4 | 2018-02-08T21:19:04.000Z | 2020-12-17T23:31:57.000Z | pycinga/status.py | HurricaneLabs/python-pycinga | 52b04367c3948cac11ee77d466df6222d0d30034 | [
"MIT"
] | 3 | 2018-03-05T17:15:24.000Z | 2019-06-28T14:17:55.000Z | pycinga/status.py | HurricaneLabs/python-pycinga | 52b04367c3948cac11ee77d466df6222d0d30034 | [
"MIT"
] | 2 | 2019-08-25T17:14:27.000Z | 2020-05-31T09:47:27.000Z | """
This module provides the Status class, which encapsulates
a status code for Icinga.
"""
class Status(object):
"""
Encapsulates an Icinga status, which holds a name and
an exit code.
"""
def __init__(self, name, exit_code):
"""
Creates a new status object for Icinga with the gi... | 27.795455 | 82 | 0.62224 | 168 | 1,223 | 4.285714 | 0.339286 | 0.211111 | 0.091667 | 0.105556 | 0.279167 | 0.234722 | 0.234722 | 0.234722 | 0.234722 | 0.179167 | 0 | 0 | 0.271464 | 1,223 | 43 | 83 | 28.44186 | 0.808081 | 0.273917 | 0 | 0 | 0 | 0 | 0.10688 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.277778 | 0.666667 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
b9847b471b46110307bdd887dd43b7918294e930 | 74 | py | Python | packages/server/invites/src/adapters/database/datastax/models/__init__.py | gbartoczevicz/moosic | 003ff5cff628505093cc08ad0fbd273272172a51 | [
"MIT"
] | 3 | 2021-09-30T00:41:31.000Z | 2022-03-15T00:14:23.000Z | packages/server/invites/src/adapters/database/datastax/models/__init__.py | gbartoczevicz/moosic | 003ff5cff628505093cc08ad0fbd273272172a51 | [
"MIT"
] | 13 | 2021-09-20T22:29:52.000Z | 2021-12-05T01:59:34.000Z | packages/server/invites/src/adapters/database/datastax/models/__init__.py | gabrielbartoczevicz/moosic | 003ff5cff628505093cc08ad0fbd273272172a51 | [
"MIT"
] | 1 | 2021-11-10T22:11:55.000Z | 2021-11-10T22:11:55.000Z | from .invite_model import InviteModel
from .comment_udt import CommentUDT
| 24.666667 | 37 | 0.864865 | 10 | 74 | 6.2 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108108 | 74 | 2 | 38 | 37 | 0.939394 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
b98baa1788679d1aaf307df9f43a355abaf029d7 | 94 | py | Python | registration/apps.py | Yar59/vshaurme | 8a970e847e0d5926cd33970be7d1b3c95a2a698a | [
"MIT"
] | 1 | 2021-02-28T18:15:23.000Z | 2021-02-28T18:15:23.000Z | registration/apps.py | Yar59/vshaurme | 8a970e847e0d5926cd33970be7d1b3c95a2a698a | [
"MIT"
] | 1 | 2021-05-26T16:53:05.000Z | 2021-05-26T16:53:10.000Z | registration/apps.py | Yar59/vshaurme | 8a970e847e0d5926cd33970be7d1b3c95a2a698a | [
"MIT"
] | 2 | 2021-05-05T10:24:31.000Z | 2022-02-05T08:56:59.000Z | from django.apps import AppConfig
class LoggginConfig(AppConfig):
name = 'registration'
| 15.666667 | 33 | 0.765957 | 10 | 94 | 7.2 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159574 | 94 | 5 | 34 | 18.8 | 0.911392 | 0 | 0 | 0 | 0 | 0 | 0.12766 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
b9a8613614ffc21d0a7d011165bfff83069dae6a | 43,502 | py | Python | boto3_type_annotations/boto3_type_annotations/ec2/service_resource.py | cowboygneox/boto3_type_annotations | 450dce1de4e066b939de7eac2ec560ed1a7ddaa2 | [
"MIT"
] | 119 | 2018-12-01T18:20:57.000Z | 2022-02-02T10:31:29.000Z | boto3_type_annotations/boto3_type_annotations/ec2/service_resource.py | cowboygneox/boto3_type_annotations | 450dce1de4e066b939de7eac2ec560ed1a7ddaa2 | [
"MIT"
] | 15 | 2018-11-16T00:16:44.000Z | 2021-11-13T03:44:18.000Z | boto3_type_annotations/boto3_type_annotations/ec2/service_resource.py | cowboygneox/boto3_type_annotations | 450dce1de4e066b939de7eac2ec560ed1a7ddaa2 | [
"MIT"
] | 11 | 2019-05-06T05:26:51.000Z | 2021-09-28T15:27:59.000Z | from boto3.resources.collection import ResourceCollection
from typing import Union
from typing import List
from typing import Optional
from typing import Dict
from datetime import datetime
from boto3.resources import base
class ServiceResource(base.ServiceResource):
classic_addresses: 'classic_addresses'
dhcp... | 27.273981 | 1,071 | 0.644384 | 4,929 | 43,502 | 5.574762 | 0.078921 | 0.050186 | 0.08101 | 0.044545 | 0.733896 | 0.698595 | 0.628212 | 0.586797 | 0.546292 | 0.504476 | 0 | 0.000771 | 0.25431 | 43,502 | 1,594 | 1,072 | 27.291092 | 0.846296 | 0 | 0 | 0.68527 | 0 | 0 | 0.039745 | 0.004092 | 0 | 0 | 0 | 0 | 0 | 1 | 0.301006 | false | 0.301921 | 0.007319 | 0 | 0.600183 | 0.00183 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
b9d59c8662ba48a7fa7d7c991d2be1a4d716af87 | 652 | py | Python | mindarmour/defenses/__init__.py | zengchen1024/mindarmour | eed59453cf048da92fe15f57dbe3ca7de8b7adcb | [
"Apache-2.0"
] | null | null | null | mindarmour/defenses/__init__.py | zengchen1024/mindarmour | eed59453cf048da92fe15f57dbe3ca7de8b7adcb | [
"Apache-2.0"
] | null | null | null | mindarmour/defenses/__init__.py | zengchen1024/mindarmour | eed59453cf048da92fe15f57dbe3ca7de8b7adcb | [
"Apache-2.0"
] | null | null | null | """
This module includes classical defense algorithms in defencing adversarial
examples and enhancing model security and trustworthy.
"""
from .adversarial_defense import AdversarialDefense
from .adversarial_defense import AdversarialDefenseWithAttacks
from .adversarial_defense import EnsembleAdversarialDefense
from .n... | 40.75 | 74 | 0.817485 | 49 | 652 | 10.653061 | 0.510204 | 0.172414 | 0.229885 | 0.16092 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138037 | 652 | 15 | 75 | 43.466667 | 0.928826 | 0.197853 | 0 | 0 | 0 | 0 | 0.242718 | 0.207767 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 1 | 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 | 4 |
b9e7752382c0f1ff4f8c630f959fb6153a4d46b2 | 21 | py | Python | docassemble/assemblylinewizard/__init__.py | plocket/docassemble-assemblylinewizard | 70756ee92b04143f28483cf37533a8492abc9f18 | [
"MIT"
] | null | null | null | docassemble/assemblylinewizard/__init__.py | plocket/docassemble-assemblylinewizard | 70756ee92b04143f28483cf37533a8492abc9f18 | [
"MIT"
] | null | null | null | docassemble/assemblylinewizard/__init__.py | plocket/docassemble-assemblylinewizard | 70756ee92b04143f28483cf37533a8492abc9f18 | [
"MIT"
] | null | null | null | __version__ = '0.81'
| 10.5 | 20 | 0.666667 | 3 | 21 | 3.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 0.142857 | 21 | 1 | 21 | 21 | 0.388889 | 0 | 0 | 0 | 0 | 0 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b9f2f5d31b5f4a56ca85282754179fa87654a16a | 34 | py | Python | tests/utils/__init__.py | trumanw/ScaffoldGraph | a594e5c5effe6c5e45c0061a235ccbeb64e416f9 | [
"MIT"
] | null | null | null | tests/utils/__init__.py | trumanw/ScaffoldGraph | a594e5c5effe6c5e45c0061a235ccbeb64e416f9 | [
"MIT"
] | null | null | null | tests/utils/__init__.py | trumanw/ScaffoldGraph | a594e5c5effe6c5e45c0061a235ccbeb64e416f9 | [
"MIT"
] | 1 | 2021-03-12T15:55:02.000Z | 2021-03-12T15:55:02.000Z | """
scaffoldgraph tests.utils
"""
| 8.5 | 25 | 0.676471 | 3 | 34 | 7.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 34 | 3 | 26 | 11.333333 | 0.766667 | 0.735294 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b9f40a8d8179b051593ba3cdb2bbb750051d8cc3 | 4,601 | py | Python | aalh_iit_peopleportraits_002/cleanup-jones-jhs.py | johndewees/iitmigration | 4dadfbecda719d6e7d60af076a231aedec3c862f | [
"Unlicense"
] | null | null | null | aalh_iit_peopleportraits_002/cleanup-jones-jhs.py | johndewees/iitmigration | 4dadfbecda719d6e7d60af076a231aedec3c862f | [
"Unlicense"
] | null | null | null | aalh_iit_peopleportraits_002/cleanup-jones-jhs.py | johndewees/iitmigration | 4dadfbecda719d6e7d60af076a231aedec3c862f | [
"Unlicense"
] | null | null | null | from openpyxl import load_workbook
import re
filename = 'aalh_iit_peopleportraits_002.xlsx'
wb = load_workbook(filename)
ws = wb['Metadata Template']
minimumcol = 2
maximumcol = 2
minimumrow = 7
maximumrow = 514
iterationrow = 7
titlecol = 2
desccol = 8
placecol = 13
timeperiodcol = 14
dateoforigcol... | 49.473118 | 105 | 0.547272 | 476 | 4,601 | 5.262605 | 0.207983 | 0.064671 | 0.097006 | 0.226347 | 0.778044 | 0.744112 | 0.728942 | 0.681038 | 0.681038 | 0.636327 | 0 | 0.064392 | 0.324929 | 4,601 | 93 | 106 | 49.473118 | 0.742112 | 0 | 0 | 0.561798 | 0 | 0 | 0.082927 | 0.014634 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.022472 | 0 | 0.022472 | 0.168539 | 0 | 0 | 0 | null | 0 | 0 | 1 | 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 | 4 |
b9f4f5d785ad9d4551397c78657d4d9e823a8754 | 88 | py | Python | src/wbDev.py | Voice-First-AI/generative-music-watson | e666f64602baab2e35a66c0a5c4389b1bd5666c9 | [
"Apache-2.0"
] | null | null | null | src/wbDev.py | Voice-First-AI/generative-music-watson | e666f64602baab2e35a66c0a5c4389b1bd5666c9 | [
"Apache-2.0"
] | null | null | null | src/wbDev.py | Voice-First-AI/generative-music-watson | e666f64602baab2e35a66c0a5c4389b1bd5666c9 | [
"Apache-2.0"
] | null | null | null |
from Skeleton import Skeleton
if __name__ == '__main__' :
Skeleton.run()
| 12.571429 | 30 | 0.625 | 9 | 88 | 5.222222 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.284091 | 88 | 6 | 31 | 14.666667 | 0.746032 | 0 | 0 | 0 | 0 | 0 | 0.098765 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
b9f88acd57066035a4c92898f6136c1582fbec5a | 336 | py | Python | corehq/apps/commtrack/xmlutil.py | dslowikowski/commcare-hq | ad8885cf8dab69dc85cb64f37aeaf06106124797 | [
"BSD-3-Clause"
] | 1 | 2015-02-10T23:26:39.000Z | 2015-02-10T23:26:39.000Z | corehq/apps/commtrack/xmlutil.py | SEL-Columbia/commcare-hq | 992ee34a679c37f063f86200e6df5a197d5e3ff6 | [
"BSD-3-Clause"
] | null | null | null | corehq/apps/commtrack/xmlutil.py | SEL-Columbia/commcare-hq | 992ee34a679c37f063f86200e6df5a197d5e3ff6 | [
"BSD-3-Clause"
] | null | null | null | from lxml.builder import ElementMaker
from casexml.apps.stock import const
def _(tag, ns=const.COMMTRACK_REPORT_XMLNS):
return '{%s}%s' % (ns, tag)
def XML(ns=const.COMMTRACK_REPORT_XMLNS, prefix=None):
prefix_map = None
if prefix:
prefix_map = {prefix: ns}
return ElementMaker(namespace=ns, nsm... | 28 | 55 | 0.720238 | 48 | 336 | 4.875 | 0.5 | 0.115385 | 0.136752 | 0.188034 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169643 | 336 | 11 | 56 | 30.545455 | 0.83871 | 0 | 0 | 0 | 0 | 0 | 0.01791 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0.111111 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
6a25c63e46ff1daec7f76a515c9a2022e74ce772 | 21 | py | Python | pySM/__init__.py | alexandrovteam/pySpatialMetabolomics | d14eef9e7b4bd77dc93d29139bfb54a0a647ff5d | [
"Apache-2.0"
] | 10 | 2016-02-10T21:43:58.000Z | 2022-03-22T08:24:25.000Z | pySM/__init__.py | alexandrovteam/pySpatialMetabolomics | d14eef9e7b4bd77dc93d29139bfb54a0a647ff5d | [
"Apache-2.0"
] | null | null | null | pySM/__init__.py | alexandrovteam/pySpatialMetabolomics | d14eef9e7b4bd77dc93d29139bfb54a0a647ff5d | [
"Apache-2.0"
] | 5 | 2016-11-17T12:19:25.000Z | 2022-01-13T06:47:34.000Z | __version__ = u'0.1'
| 10.5 | 20 | 0.666667 | 4 | 21 | 2.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 0.142857 | 21 | 1 | 21 | 21 | 0.444444 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
6a49d90366606229932d511740fe9489a1e7b49a | 1,318 | py | Python | leaveapp/migrations/0002_auto_20170831_2203.py | avinash795k/leaveProject | 264818f052e0abfdd47a0b9e73b1a9fa28114da0 | [
"MIT"
] | null | null | null | leaveapp/migrations/0002_auto_20170831_2203.py | avinash795k/leaveProject | 264818f052e0abfdd47a0b9e73b1a9fa28114da0 | [
"MIT"
] | null | null | null | leaveapp/migrations/0002_auto_20170831_2203.py | avinash795k/leaveProject | 264818f052e0abfdd47a0b9e73b1a9fa28114da0 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-08-31 16:33
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('leaveapp', '0001_initial'),
]
operations = [
migrations.AddField(
... | 28.652174 | 50 | 0.584219 | 113 | 1,318 | 6.654867 | 0.433628 | 0.287234 | 0.183511 | 0.215426 | 0.460106 | 0.405585 | 0.405585 | 0 | 0 | 0 | 0 | 0.033954 | 0.307284 | 1,318 | 45 | 51 | 29.288889 | 0.789704 | 0.051593 | 0 | 0.447368 | 1 | 0 | 0.1668 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.131579 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
dbebf889c73c856b104cd7ed4d2de98d7d356c1b | 282 | py | Python | server/main/views/web/base.py | jphacks/TK_1905 | f4af0a26bacedde415f9f873c917fbdb4910e386 | [
"MIT"
] | 7 | 2019-10-26T05:44:14.000Z | 2019-11-10T13:06:11.000Z | server/main/views/web/base.py | jphacks/TK_1905 | f4af0a26bacedde415f9f873c917fbdb4910e386 | [
"MIT"
] | 2 | 2019-11-07T16:28:36.000Z | 2020-06-06T00:12:58.000Z | server/main/views/web/base.py | jphacks/TK_1905 | f4af0a26bacedde415f9f873c917fbdb4910e386 | [
"MIT"
] | null | null | null | from django.contrib.auth.mixins import UserPassesTestMixin
class OnlyLoginUserMixin(UserPassesTestMixin):
def test_func(self):
return self.request.user.is_authenticated
def get(self, request, *args, **kwargs):
return super().get(request, *args, **kwargs)
| 28.2 | 58 | 0.72695 | 32 | 282 | 6.34375 | 0.6875 | 0.108374 | 0.167488 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163121 | 282 | 9 | 59 | 31.333333 | 0.860169 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.333333 | 0.166667 | 0.333333 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 4 |
e004821195e8002960a9d998b3f20db665fbfdb6 | 1,516 | py | Python | pypy/module/test_lib_pypy/cffi_tests/cffi0/test_ctypes.py | microvm/pypy-mu | 6b03fbe93052d0eb3a4c67152c987c16837b3484 | [
"Apache-2.0",
"OpenSSL"
] | 34 | 2015-07-09T04:53:27.000Z | 2021-07-19T05:22:27.000Z | pypy/module/test_lib_pypy/cffi_tests/cffi0/test_ctypes.py | microvm/pypy-mu | 6b03fbe93052d0eb3a4c67152c987c16837b3484 | [
"Apache-2.0",
"OpenSSL"
] | 6 | 2015-05-30T17:20:45.000Z | 2017-06-12T14:29:23.000Z | pypy/module/test_lib_pypy/cffi_tests/cffi0/test_ctypes.py | microvm/pypy-mu | 6b03fbe93052d0eb3a4c67152c987c16837b3484 | [
"Apache-2.0",
"OpenSSL"
] | 11 | 2015-09-07T14:26:08.000Z | 2020-04-10T07:20:41.000Z | # Generated by pypy/tool/import_cffi.py
import py, sys
from pypy.module.test_lib_pypy.cffi_tests.cffi0 import backend_tests
from cffi.backend_ctypes import CTypesBackend
class TestCTypes(backend_tests.BackendTests):
# for individual tests see
# ====> backend_tests.py
Backend = CTypesBackend
TypeR... | 36.095238 | 78 | 0.689314 | 201 | 1,516 | 5 | 0.323383 | 0.055721 | 0.079602 | 0.127363 | 0.502488 | 0.464677 | 0.464677 | 0.429851 | 0.352239 | 0.352239 | 0 | 0.004223 | 0.218997 | 1,516 | 41 | 79 | 36.97561 | 0.844595 | 0.056069 | 0 | 0.222222 | 1 | 0 | 0.33637 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.296296 | false | 0.074074 | 0.111111 | 0 | 0.518519 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
e004eaeaa8e3b26937fe5d02fa1cf76f0def5ad4 | 386 | py | Python | src/feverous/baseline/drqa/retriever/simple.py | creisle/FEVEROUS | 73b6c0d52f61c744ed874556b0f5aebef6d707f4 | [
"Apache-2.0"
] | 42 | 2021-05-20T19:29:14.000Z | 2022-03-16T16:44:16.000Z | src/feverous/baseline/drqa/retriever/simple.py | creisle/FEVEROUS | 73b6c0d52f61c744ed874556b0f5aebef6d707f4 | [
"Apache-2.0"
] | 19 | 2021-05-22T07:18:07.000Z | 2022-02-22T03:56:17.000Z | src/feverous/baseline/drqa/retriever/simple.py | creisle/FEVEROUS | 73b6c0d52f61c744ed874556b0f5aebef6d707f4 | [
"Apache-2.0"
] | 15 | 2021-06-05T05:22:27.000Z | 2022-03-22T19:41:01.000Z | class Simple(object):
def __init__(self, lines):
self.lines = lines
def __enter__(self):
return self
def __exit__(self, *args):
pass
def path(self):
return None
def get_doc_ids(self):
return list(range(len(self.lines)))
def get_doc_text(self, line):
... | 17.545455 | 43 | 0.580311 | 50 | 386 | 4.16 | 0.46 | 0.173077 | 0.086538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.316062 | 386 | 21 | 44 | 18.380952 | 0.787879 | 0 | 0 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.466667 | false | 0.133333 | 0 | 0.266667 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
e0143b4feeff4f087fa7ce249447194a82532e68 | 97 | py | Python | classesTrab/apps.py | lulves/TrabalhoLPC | 12b578401f91bad316a89dd134de8366d90e5387 | [
"MIT"
] | null | null | null | classesTrab/apps.py | lulves/TrabalhoLPC | 12b578401f91bad316a89dd134de8366d90e5387 | [
"MIT"
] | null | null | null | classesTrab/apps.py | lulves/TrabalhoLPC | 12b578401f91bad316a89dd134de8366d90e5387 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class ClassestrabConfig(AppConfig):
name = 'classesTrab'
| 16.166667 | 35 | 0.773196 | 10 | 97 | 7.5 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154639 | 97 | 5 | 36 | 19.4 | 0.914634 | 0 | 0 | 0 | 0 | 0 | 0.113402 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
e01668fbb436bb66340d81515ef497a1bca1a420 | 77 | py | Python | esque/__main__.py | garrettthomaskth/esque | ac452ae0fbd692087350cf488044007e4da9e538 | [
"MIT"
] | 29 | 2019-05-10T21:12:38.000Z | 2021-08-24T08:09:49.000Z | esque/__main__.py | garrettthomaskth/esque | ac452ae0fbd692087350cf488044007e4da9e538 | [
"MIT"
] | 103 | 2019-05-17T07:21:41.000Z | 2021-12-02T08:29:00.000Z | esque/__main__.py | garrettthomaskth/esque | ac452ae0fbd692087350cf488044007e4da9e538 | [
"MIT"
] | 2 | 2019-05-28T06:45:14.000Z | 2019-11-21T00:33:15.000Z | from esque.cli.commands import esque
if __name__ == "__main__":
esque()
| 15.4 | 36 | 0.701299 | 10 | 77 | 4.6 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 77 | 4 | 37 | 19.25 | 0.730159 | 0 | 0 | 0 | 0 | 0 | 0.103896 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
e0386af67d2663d05ade461e20da9df7b0c89b8a | 214 | py | Python | exercicios/exercicio018.py | NicoCassio/cursoemvideo-python | 2686ff74f4d45bdb0dc194f49f4dd19aae629d52 | [
"MIT"
] | null | null | null | exercicios/exercicio018.py | NicoCassio/cursoemvideo-python | 2686ff74f4d45bdb0dc194f49f4dd19aae629d52 | [
"MIT"
] | null | null | null | exercicios/exercicio018.py | NicoCassio/cursoemvideo-python | 2686ff74f4d45bdb0dc194f49f4dd19aae629d52 | [
"MIT"
] | null | null | null | import math
a = int(input('Ângulo: '))
print('Seno: {:.1f}'.format(math.sin(math.radians(a))))
print('Cosseno: {:.1f}'.format(math.cos(math.radians(a))))
print('Tangente: {:.1f}'.format(math.tan(math.radians(a))))
| 35.666667 | 59 | 0.654206 | 33 | 214 | 4.242424 | 0.484848 | 0.171429 | 0.257143 | 0.242857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014851 | 0.056075 | 214 | 5 | 60 | 42.8 | 0.678218 | 0 | 0 | 0 | 0 | 0 | 0.238318 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.6 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
e05b5da71875313384440457b22c8c5f0a2199a5 | 101 | py | Python | lpc_dask/__init__.py | cms-svj/lpc_dask | 0e056c398c1a09b70b4d5a6083b05bc19976bf7b | [
"BSD-3-Clause"
] | null | null | null | lpc_dask/__init__.py | cms-svj/lpc_dask | 0e056c398c1a09b70b4d5a6083b05bc19976bf7b | [
"BSD-3-Clause"
] | null | null | null | lpc_dask/__init__.py | cms-svj/lpc_dask | 0e056c398c1a09b70b4d5a6083b05bc19976bf7b | [
"BSD-3-Clause"
] | 1 | 2020-12-11T20:44:03.000Z | 2020-12-11T20:44:03.000Z | from .fnal_htcondor import HTCondorCluster, HTCondorJob
__all__ = ['HTCondorCluster','HTCondorJob']
| 25.25 | 55 | 0.811881 | 9 | 101 | 8.555556 | 0.777778 | 0.675325 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089109 | 101 | 3 | 56 | 33.666667 | 0.836957 | 0 | 0 | 0 | 0 | 0 | 0.257426 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
e05f458dfe67f6e21af8d6f90a75c857c0d3e204 | 130 | py | Python | app/database/models.py | Fenghaze/flask-restful | 921119d05a886f4de8dafab9626f207956beef4a | [
"MIT"
] | 3 | 2020-06-02T08:04:44.000Z | 2021-11-02T18:58:38.000Z | app/database/models.py | Fenghaze/flask-restful | 921119d05a886f4de8dafab9626f207956beef4a | [
"MIT"
] | null | null | null | app/database/models.py | Fenghaze/flask-restful | 921119d05a886f4de8dafab9626f207956beef4a | [
"MIT"
] | 2 | 2020-11-01T04:40:11.000Z | 2021-11-02T18:58:42.000Z | from app import db
class Category(db.Model):
id = db.Column(db.Integer, primary_key=True)
name = db.Column(db.String(10)) | 26 | 48 | 0.7 | 22 | 130 | 4.090909 | 0.727273 | 0.177778 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018349 | 0.161538 | 130 | 5 | 49 | 26 | 0.807339 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
e07736be519f30cc336d59ebec3e285e720943db | 30 | py | Python | src/kalam/utils/__init__.py | AnkCorp/kalam | 6ba5b9dfcd20a8e57eaa1942f3d2650f3579dc0c | [
"MIT"
] | null | null | null | src/kalam/utils/__init__.py | AnkCorp/kalam | 6ba5b9dfcd20a8e57eaa1942f3d2650f3579dc0c | [
"MIT"
] | null | null | null | src/kalam/utils/__init__.py | AnkCorp/kalam | 6ba5b9dfcd20a8e57eaa1942f3d2650f3579dc0c | [
"MIT"
] | null | null | null | """Kalam's utility module."""
| 15 | 29 | 0.633333 | 4 | 30 | 4.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 30 | 1 | 30 | 30 | 0.703704 | 0.766667 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
0ebdbd676a298971d96a355c9d9d86bee4c6fb4c | 89 | py | Python | dpdb/problems/__init__.py | maliabd-al-majid/nesthdb_asp | 389433b423e39f4a9a00d7e3ed9400400b2cf3b2 | [
"MIT"
] | null | null | null | dpdb/problems/__init__.py | maliabd-al-majid/nesthdb_asp | 389433b423e39f4a9a00d7e3ed9400400b2cf3b2 | [
"MIT"
] | null | null | null | dpdb/problems/__init__.py | maliabd-al-majid/nesthdb_asp | 389433b423e39f4a9a00d7e3ed9400400b2cf3b2 | [
"MIT"
] | 1 | 2022-01-07T20:58:22.000Z | 2022-01-07T20:58:22.000Z | from .sat import Sat
from .sharpsat import SharpSat
from .vertexcover import VertexCover
| 22.25 | 36 | 0.831461 | 12 | 89 | 6.166667 | 0.416667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134831 | 89 | 3 | 37 | 29.666667 | 0.961039 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
0ed32fc2713c934418872c02a3e7fbec6bdd6472 | 2,047 | py | Python | app/schemas.py | lost-squirrel/da-plu-2021-bprokop | 0e5a9135b687b78299e3ce7f5227309f2aec2d8e | [
"MIT"
] | null | null | null | app/schemas.py | lost-squirrel/da-plu-2021-bprokop | 0e5a9135b687b78299e3ce7f5227309f2aec2d8e | [
"MIT"
] | null | null | null | app/schemas.py | lost-squirrel/da-plu-2021-bprokop | 0e5a9135b687b78299e3ce7f5227309f2aec2d8e | [
"MIT"
] | null | null | null | from typing import Optional
from pydantic import BaseModel, PositiveInt, constr
class Shipper(BaseModel):
ShipperID: PositiveInt
CompanyName: constr(max_length=40)
Phone: constr(max_length=24)
class Config:
orm_mode = True
class Supplier(BaseModel):
SupplierID: PositiveInt
CompanyNa... | 28.430556 | 51 | 0.726917 | 252 | 2,047 | 5.753968 | 0.190476 | 0.198621 | 0.331034 | 0.428276 | 0.741379 | 0.684138 | 0.665517 | 0.617241 | 0.617241 | 0.617241 | 0 | 0.037493 | 0.166097 | 2,047 | 71 | 52 | 28.830986 | 0.811951 | 0 | 0 | 0.636364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.036364 | 0 | 0.927273 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
0ede9bc2e27bbe11c1ef6f5297c226e1c8ef4445 | 158 | py | Python | monitoring/rid_qualifier/host/__init__.py | pratibhagupta2109/dss | 88affd43dd3b96f116d56faa11813a0718a6889e | [
"Apache-2.0"
] | null | null | null | monitoring/rid_qualifier/host/__init__.py | pratibhagupta2109/dss | 88affd43dd3b96f116d56faa11813a0718a6889e | [
"Apache-2.0"
] | 1 | 2022-02-12T17:56:16.000Z | 2022-02-12T21:38:38.000Z | monitoring/rid_qualifier/host/__init__.py | pratibhagupta2109/dss | 88affd43dd3b96f116d56faa11813a0718a6889e | [
"Apache-2.0"
] | null | null | null | import flask
from .config import Config
webapp = flask.Flask(__name__)
webapp.config.from_object(Config)
from monitoring.rid_qualifier.host import routes
| 15.8 | 48 | 0.816456 | 22 | 158 | 5.590909 | 0.545455 | 0.162602 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113924 | 158 | 9 | 49 | 17.555556 | 0.878571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
0ef44bc0c6ee3231227a70183ceaf8f6d9e4066d | 324 | py | Python | tests/test_is_json.py | PackeTsar/meraki-cli | c9e5bbf475bf367fd56ab559acc721d6031f2f5f | [
"MIT"
] | 45 | 2020-06-07T04:16:57.000Z | 2022-02-14T05:09:16.000Z | tests/test_is_json.py | PackeTsar/meraki-cli | c9e5bbf475bf367fd56ab559acc721d6031f2f5f | [
"MIT"
] | 13 | 2020-05-28T03:08:49.000Z | 2022-03-17T15:35:57.000Z | tests/test_is_json.py | PackeTsar/meraki-cli | c9e5bbf475bf367fd56ab559acc721d6031f2f5f | [
"MIT"
] | 5 | 2021-03-09T14:36:35.000Z | 2022-03-07T09:27:11.000Z | import unittest
from meraki_cli.__main__ import _is_json
class TestIsJSON(unittest.TestCase):
def testIsJSONBadInput(self):
self.assertFalse(_is_json({}))
def testIsJSONFalse(self):
self.assertFalse(_is_json('abcd'))
def testIsJSONTrue(self):
self.assertTrue(_is_json('["1", "2"]... | 21.6 | 47 | 0.688272 | 37 | 324 | 5.675676 | 0.567568 | 0.114286 | 0.180952 | 0.2 | 0.238095 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007547 | 0.182099 | 324 | 14 | 48 | 23.142857 | 0.784906 | 0 | 0 | 0 | 0 | 0 | 0.04321 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.333333 | false | 0 | 0.222222 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
0efc93a883117daafe66998e2018aed3eaf573c1 | 81 | py | Python | frlearn/trees/__init__.py | oulenz/fuzzy-rough-learn | 4565c1809f5ac426442ecf392c8ec7aeb438ada0 | [
"MIT"
] | 7 | 2019-12-17T15:11:05.000Z | 2022-01-19T17:05:22.000Z | frlearn/trees/__init__.py | oulenz/fuzzy-rough-learn | 4565c1809f5ac426442ecf392c8ec7aeb438ada0 | [
"MIT"
] | 8 | 2020-05-26T21:56:02.000Z | 2022-01-15T18:50:26.000Z | frlearn/trees/__init__.py | oulenz/fuzzy-rough-learn | 4565c1809f5ac426442ecf392c8ec7aeb438ada0 | [
"MIT"
] | 2 | 2020-11-06T12:27:47.000Z | 2021-04-29T15:25:06.000Z | """
The :mod:`frlearn.trees` subpackage implements decision tree algorithms.
"""
| 20.25 | 72 | 0.740741 | 9 | 81 | 6.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 81 | 3 | 73 | 27 | 0.833333 | 0.888889 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
16010385d10d420f92f518ce4c9b0eb1a833a091 | 93 | py | Python | dev/dev.py | angelina-j-maggie/py-repo | c00ed5c7340d4ea4d7ee4d6d6ab371cb57cec6d9 | [
"MIT"
] | null | null | null | dev/dev.py | angelina-j-maggie/py-repo | c00ed5c7340d4ea4d7ee4d6d6ab371cb57cec6d9 | [
"MIT"
] | null | null | null | dev/dev.py | angelina-j-maggie/py-repo | c00ed5c7340d4ea4d7ee4d6d6ab371cb57cec6d9 | [
"MIT"
] | null | null | null | '''
Use this folder for the development of any
products. All data should be saved to S3.
'''
| 18.6 | 42 | 0.72043 | 16 | 93 | 4.1875 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013333 | 0.193548 | 93 | 4 | 43 | 23.25 | 0.88 | 0.903226 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
160b86e4f417e719b1e0e657c448bae6cc3591f6 | 359 | py | Python | taiseia101/core/services.py | slee124565/pytwseia | 4c633cef12e37f5ba0d11748b8966ab598975a19 | [
"Apache-2.0"
] | 3 | 2021-04-14T09:17:22.000Z | 2021-05-10T06:04:56.000Z | taiseia101/core/services.py | slee124565/twseia | 4c633cef12e37f5ba0d11748b8966ab598975a19 | [
"Apache-2.0"
] | null | null | null | taiseia101/core/services.py | slee124565/twseia | 4c633cef12e37f5ba0d11748b8966ab598975a19 | [
"Apache-2.0"
] | null | null | null |
from base_dev_service import *
import logging
logger = logging.getLogger(__name__)
class PowerRWService(DeviceEnum16Service):
def __init__(self, serv_pdu):
super(PowerRWService, self).__init__(serv_pdu)
class OpModeRWService(DeviceEnum16Service):
def __init__(self, serv_pdu):
super(OpMod... | 17.95 | 55 | 0.754875 | 39 | 359 | 6.282051 | 0.487179 | 0.114286 | 0.212245 | 0.244898 | 0.342857 | 0.342857 | 0.342857 | 0 | 0 | 0 | 0 | 0.013245 | 0.158774 | 359 | 19 | 56 | 18.894737 | 0.798013 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
16192a011196e2446392f9f435114d8e6a798f26 | 487 | py | Python | ubikagent/agent/abc.py | tjkemp/ubik-agent | 34e4dd0d6319b8f5c5dba0cd9e087490720b723b | [
"MIT"
] | null | null | null | ubikagent/agent/abc.py | tjkemp/ubik-agent | 34e4dd0d6319b8f5c5dba0cd9e087490720b723b | [
"MIT"
] | null | null | null | ubikagent/agent/abc.py | tjkemp/ubik-agent | 34e4dd0d6319b8f5c5dba0cd9e087490720b723b | [
"MIT"
] | null | null | null | import abc
class Agent(abc.ABC):
def __init__(self, state_size, action_size, seed, *args, **kwargs):
pass
@abc.abstractmethod
def new_episode(self):
pass
@abc.abstractmethod
def act(self, state):
pass
@abc.abstractmethod
def step(self, state, action, reward, nex... | 17.392857 | 71 | 0.613963 | 57 | 487 | 5.105263 | 0.438596 | 0.120275 | 0.360825 | 0.412371 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.287474 | 487 | 27 | 72 | 18.037037 | 0.838617 | 0 | 0 | 0.578947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.315789 | false | 0.315789 | 0.052632 | 0 | 0.421053 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
16300eb450e12054faeb1865ae251bad692a6ade | 157 | py | Python | arc/arc110/arc110a.py | c-yan/atcoder | 940e49d576e6a2d734288fadaf368e486480a948 | [
"MIT"
] | 1 | 2019-08-21T00:49:34.000Z | 2019-08-21T00:49:34.000Z | arc/arc110/arc110a.py | c-yan/atcoder | 940e49d576e6a2d734288fadaf368e486480a948 | [
"MIT"
] | null | null | null | arc/arc110/arc110a.py | c-yan/atcoder | 940e49d576e6a2d734288fadaf368e486480a948 | [
"MIT"
] | null | null | null | from math import gcd
from functools import reduce
def lcm(x, y):
return x // gcd(x, y) * y
N = int(input())
print(reduce(lcm, range(1, N + 1)) + 1)
| 13.083333 | 39 | 0.605096 | 29 | 157 | 3.275862 | 0.586207 | 0.042105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025 | 0.235669 | 157 | 11 | 40 | 14.272727 | 0.766667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0.166667 | 0.666667 | 0.166667 | 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 | 1 | 1 | 0 | 0 | 4 |
1648189c197c2b66e577c6757f476e70a45867da | 89 | py | Python | routers/apps.py | the-coding-pie/Bugtracker-REST-API | 69c3756e039124e7d7f963f64c1ddecfd99d3366 | [
"MIT"
] | 1 | 2021-03-02T13:38:14.000Z | 2021-03-02T13:38:14.000Z | routers/apps.py | the-coding-pie/Bugtracker-REST-API | 69c3756e039124e7d7f963f64c1ddecfd99d3366 | [
"MIT"
] | null | null | null | routers/apps.py | the-coding-pie/Bugtracker-REST-API | 69c3756e039124e7d7f963f64c1ddecfd99d3366 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class RoutersConfig(AppConfig):
name = 'routers'
| 14.833333 | 33 | 0.752809 | 10 | 89 | 6.7 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168539 | 89 | 5 | 34 | 17.8 | 0.905405 | 0 | 0 | 0 | 0 | 0 | 0.078652 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
1657da2131b792776109d3466eb54213c9708300 | 59 | py | Python | yatube/posts/migrations/tests.py | Sergei291990/hw02_community | d016f7e229239144361cb1b0a189c70e3408b382 | [
"BSD-3-Clause"
] | null | null | null | yatube/posts/migrations/tests.py | Sergei291990/hw02_community | d016f7e229239144361cb1b0a189c70e3408b382 | [
"BSD-3-Clause"
] | null | null | null | yatube/posts/migrations/tests.py | Sergei291990/hw02_community | d016f7e229239144361cb1b0a189c70e3408b382 | [
"BSD-3-Clause"
] | null | null | null | # from django.test import TastCase
#Create your test here. | 29.5 | 35 | 0.779661 | 9 | 59 | 5.111111 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152542 | 59 | 2 | 36 | 29.5 | 0.92 | 0.915254 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
165fc2dc98505e6bd39117593807b46b9ec644cc | 285 | py | Python | src/mars_profiling/report/presentation/flavours/html/frequency_table.py | wjsi/mars-profiling | 1accb00c90da67b46ad98ea1592fecc524625454 | [
"MIT"
] | 1 | 2021-01-21T09:11:58.000Z | 2021-01-21T09:11:58.000Z | src/mars_profiling/report/presentation/flavours/html/frequency_table.py | wjsi/mars-profiling | 1accb00c90da67b46ad98ea1592fecc524625454 | [
"MIT"
] | null | null | null | src/mars_profiling/report/presentation/flavours/html/frequency_table.py | wjsi/mars-profiling | 1accb00c90da67b46ad98ea1592fecc524625454 | [
"MIT"
] | 1 | 2020-12-30T08:32:29.000Z | 2020-12-30T08:32:29.000Z | from mars_profiling.report.presentation.core import FrequencyTable
from mars_profiling.report.presentation.flavours.html import templates
class HTMLFrequencyTable(FrequencyTable):
def render(self):
return templates.template("frequency_table.html").render(**self.content)
| 35.625 | 80 | 0.814035 | 32 | 285 | 7.15625 | 0.65625 | 0.069869 | 0.148472 | 0.200873 | 0.305677 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098246 | 285 | 7 | 81 | 40.714286 | 0.891051 | 0 | 0 | 0 | 0 | 0 | 0.070175 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0.2 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 4 |
166d397c812347380ad0e81fc65ed83f57f7ab3e | 1,136 | py | Python | neutron/services/portforwarding/callbacks.py | tankertyp/openstack-learning | d729672663f170d0138ecf23b3c23df225c1b1b8 | [
"Apache-2.0"
] | 4 | 2015-11-07T01:58:32.000Z | 2019-10-08T06:18:36.000Z | neutron/services/portforwarding/callbacks.py | tankertyp/openstack-learning | d729672663f170d0138ecf23b3c23df225c1b1b8 | [
"Apache-2.0"
] | null | null | null | neutron/services/portforwarding/callbacks.py | tankertyp/openstack-learning | d729672663f170d0138ecf23b3c23df225c1b1b8 | [
"Apache-2.0"
] | null | null | null | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# d... | 39.172414 | 78 | 0.706866 | 154 | 1,136 | 4.993506 | 0.597403 | 0.078023 | 0.03381 | 0.041612 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004494 | 0.216549 | 1,136 | 28 | 79 | 40.571429 | 0.859551 | 0.603873 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035714 | 0 | 1 | 0.3 | false | 0 | 0 | 0.2 | 0.6 | 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 | 1 | 1 | 0 | 0 | 4 |
167c9f894b99282f487e94bf114441c1a7ee2e94 | 343 | py | Python | FishCDailyQuestion/ex001-010/Python3_004/004_12.py | YorkFish/git_study | 6e023244daaa22e12b24e632e76a13e5066f2947 | [
"MIT"
] | null | null | null | FishCDailyQuestion/ex001-010/Python3_004/004_12.py | YorkFish/git_study | 6e023244daaa22e12b24e632e76a13e5066f2947 | [
"MIT"
] | null | null | null | FishCDailyQuestion/ex001-010/Python3_004/004_12.py | YorkFish/git_study | 6e023244daaa22e12b24e632e76a13e5066f2947 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# coding:utf-8
from datetime import date # 和 004_11.py 换汤不换药,date(y1, m1, d1).__sub__(date(y2, m2, d2)) 计算两个日期之差
year_input, month_input, day_input = [ int(x) for x in input("input year/month/day(e.g. 2019/1/1): ").split('/')]
print(date(year_input, month_input, day_input).__sub__(date(year_in... | 38.111111 | 113 | 0.702624 | 64 | 343 | 3.515625 | 0.640625 | 0.12 | 0.124444 | 0.168889 | 0.24 | 0.24 | 0 | 0 | 0 | 0 | 0 | 0.078947 | 0.113703 | 343 | 8 | 114 | 42.875 | 0.661184 | 0.303207 | 0 | 0 | 0 | 0 | 0.161702 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
169797c6467994ce769fda6220fcfeb07698f261 | 358 | py | Python | src/tests/test_sites/test_utils.py | winkidney/PickTrue | f1eba7320911108e46856a2efd7ef7d4e517b9af | [
"MIT"
] | 118 | 2018-08-14T11:35:33.000Z | 2022-03-25T14:06:42.000Z | src/tests/test_sites/test_utils.py | winkidney/PickTrue | f1eba7320911108e46856a2efd7ef7d4e517b9af | [
"MIT"
] | 9 | 2018-11-25T14:11:08.000Z | 2021-08-19T04:23:25.000Z | src/tests/test_sites/test_utils.py | winkidney/PickTrue | f1eba7320911108e46856a2efd7ef7d4e517b9af | [
"MIT"
] | 16 | 2018-12-01T16:38:24.000Z | 2022-02-28T06:55:24.000Z | from picktrue.sites import utils
def test_get_name_ext_from_url():
assert utils.get_filename_fom_url(
"https://img9.doubanio.com/view/photo/l/public/p2208623414.jpg"
) == "p2208623414.jpg"
assert utils.get_filename_fom_url(
"https://img9.doubanio.com/view/photo/l/public/p2208623414.jpg?he... | 29.833333 | 83 | 0.717877 | 50 | 358 | 4.92 | 0.52 | 0.227642 | 0.113821 | 0.178862 | 0.634146 | 0.634146 | 0.634146 | 0.634146 | 0.634146 | 0.634146 | 0 | 0.137705 | 0.148045 | 358 | 11 | 84 | 32.545455 | 0.668852 | 0 | 0 | 0.5 | 0 | 0.125 | 0.458101 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.125 | true | 0 | 0.125 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
16cbae29799a18f03ae16ab94fe3ba800224d16d | 3,770 | py | Python | hydrus/data/exceptions.py | vddesai1871/falcon-http-hydra | 5b9fce1387a2ff23564c705bde7da528eb77c526 | [
"MIT"
] | 7 | 2018-02-17T13:59:32.000Z | 2020-01-03T03:10:28.000Z | hydrus/data/exceptions.py | vddesai1871/falcon-http-hydra | 5b9fce1387a2ff23564c705bde7da528eb77c526 | [
"MIT"
] | 1 | 2018-02-21T17:39:16.000Z | 2018-02-27T19:12:18.000Z | hydrus/data/exceptions.py | vddesai1871/falcon-http-hydra | 5b9fce1387a2ff23564c705bde7da528eb77c526 | [
"MIT"
] | 3 | 2018-02-17T14:04:13.000Z | 2018-03-08T13:09:26.000Z | """Exceptions for the crud operations."""
from typing import Dict, Tuple, Union
from falcon import HTTP_400, HTTP_404, HTTPStatus
class ClassNotFound(Exception):
"""Error when the RDFClass is not found."""
def __init__(self, type_: str) -> None:
"""Constructor."""
self.type_ = type_
def ... | 34.907407 | 118 | 0.624668 | 487 | 3,770 | 4.638604 | 0.12731 | 0.070828 | 0.063745 | 0.074369 | 0.814077 | 0.72687 | 0.680832 | 0.636565 | 0.573705 | 0.573705 | 0 | 0.012504 | 0.23634 | 3,770 | 107 | 119 | 35.233645 | 0.772143 | 0.217772 | 0 | 0.6 | 0 | 0 | 0.167906 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.32 | false | 0 | 0.04 | 0 | 0.72 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
16ec95e4650f6b1863e41b0963489ecca9a0fbf5 | 481 | py | Python | geonet/apps.py | bbengfort/kahu | 57a2ba417d545a57a987b3620e46e56f023134d6 | [
"MIT"
] | 1 | 2018-08-27T10:07:06.000Z | 2018-08-27T10:07:06.000Z | geonet/apps.py | bbengfort/kahu | 57a2ba417d545a57a987b3620e46e56f023134d6 | [
"MIT"
] | 22 | 2018-06-09T14:16:36.000Z | 2018-06-15T10:56:58.000Z | geonet/apps.py | bbengfort/kahu | 57a2ba417d545a57a987b3620e46e56f023134d6 | [
"MIT"
] | null | null | null | # geonet.apps
# Configuration for the geonet app
#
# Author: Benjamin Bengfort <benjamin@bengfort.com>
# Created: Mon Jun 11 08:10:28 2018 -0400
#
# ID: apps.py [] benjamin@bengfort.com $
"""
Configuration for the geonet app
"""
##########################################################################
## Imports
##... | 21.863636 | 74 | 0.488565 | 44 | 481 | 5.340909 | 0.659091 | 0.204255 | 0.161702 | 0.212766 | 0.238298 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037915 | 0.122661 | 481 | 21 | 75 | 22.904762 | 0.518957 | 0.449064 | 0 | 0 | 0 | 0 | 0.059406 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
bc5be683f06059c49dcb8b97d93043dd339e09d3 | 503,117 | py | Python | 3algo/homo/3_3_10datap.py | allengrr/deadlock_project | 933878077c45a7df04daa087407bb2620c064617 | [
"MIT"
] | null | null | null | 3algo/homo/3_3_10datap.py | allengrr/deadlock_project | 933878077c45a7df04daa087407bb2620c064617 | [
"MIT"
] | null | null | null | 3algo/homo/3_3_10datap.py | allengrr/deadlock_project | 933878077c45a7df04daa087407bb2620c064617 | [
"MIT"
] | 1 | 2021-03-21T17:54:26.000Z | 2021-03-21T17:54:26.000Z |
wt3_3_10 = {'192.168.122.110': [8.5425, 9.6589, 8.3878, 8.9764, 8.5553, 8.1619, 8.5832, 8.1742, 7.8747, 7.6304, 7.6131, 7.5381, 7.3988, 7.2547, 7.2352, 7.1954, 7.0925, 6.9968, 7.8112, 7.7524, 7.6389, 7.5302, 7.4983, 7.4729, 7.4327, 7.3494, 7.2848, 7.2741, 7.2099, 7.1539, 7.2822, 7.2477, 7.3613, 7.315, 7.2783, 7.1005, ... | 29,595.117647 | 479,964 | 0.620394 | 127,290 | 503,117 | 2.451795 | 0.052031 | 0.001102 | 0.001378 | 0.001057 | 0.669995 | 0.349147 | 0.348795 | 0.13549 | 0.135481 | 0.044407 | 0 | 0.709854 | 0.126509 | 503,117 | 17 | 479,965 | 29,595.117647 | 0.000298 | 0 | 0 | 0 | 0 | 0 | 0.000612 | 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 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
bc6942c11b248582ef0fd7c9f39a0f7aa6a8d079 | 1,199 | py | Python | tests/test_vcrpandas.py | gjeusel/pytest-vcrpandas | ccd9e5bb3a641271db29d1145507f4ce68b401a6 | [
"MIT"
] | 2 | 2018-11-27T08:19:26.000Z | 2022-03-17T08:11:02.000Z | tests/test_vcrpandas.py | gjeusel/pytest-vcrpandas | ccd9e5bb3a641271db29d1145507f4ce68b401a6 | [
"MIT"
] | null | null | null | tests/test_vcrpandas.py | gjeusel/pytest-vcrpandas | ccd9e5bb3a641271db29d1145507f4ce68b401a6 | [
"MIT"
] | null | null | null | from pathlib import Path
import pytest
# Check that the plugin has been properly installed before proceeding
assert pytest.config.pluginmanager.hasplugin("vcrpandas")
def test_jsonplaceholder_get_todos(testdir):
testdir.copy_example("client_tester/test_jsonplaceholder.py")
result = testdir.runpytest("-k", "t... | 35.264706 | 105 | 0.725605 | 148 | 1,199 | 5.655405 | 0.385135 | 0.057348 | 0.105137 | 0.109916 | 0.759857 | 0.759857 | 0.759857 | 0.685783 | 0.654719 | 0.654719 | 0 | 0.00388 | 0.140117 | 1,199 | 33 | 106 | 36.333333 | 0.807953 | 0.05588 | 0 | 0.47619 | 0 | 0 | 0.286726 | 0.131858 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.095238 | false | 0.190476 | 0.095238 | 0 | 0.190476 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
bc707cfe55229816cbdd5ee1c1e215ef6e4c1620 | 511 | py | Python | unit_test.py | Sodbo/weather.nsu.ru_telegram-bot | b5d005e7a2e260c2730ca96abc73d28e5e495f17 | [
"MIT"
] | 2 | 2018-03-03T17:46:42.000Z | 2022-03-06T04:04:34.000Z | unit_test.py | Sodbo/weather.nsu.ru_telegram-bot | b5d005e7a2e260c2730ca96abc73d28e5e495f17 | [
"MIT"
] | 1 | 2018-03-03T15:46:46.000Z | 2018-03-03T15:46:53.000Z | unit_test.py | Sodbo/weather.nsu.ru_telegram-bot | b5d005e7a2e260c2730ca96abc73d28e5e495f17 | [
"MIT"
] | 1 | 2018-03-05T08:33:59.000Z | 2018-03-05T08:33:59.000Z | import unittest
from get_nsu_temp import get_nsu_temp
from get_nsu_temp import message_nsu_temp
class TestStringMethods(unittest.TestCase):
def test_get_nsu_temp_is_str(self):
self.assertTrue(isinstance(get_nsu_temp()[0], str))
def test_get_nsu_temp_is_not_empty(self):
self.assertTrue(len... | 30.058824 | 69 | 0.735812 | 78 | 511 | 4.320513 | 0.384615 | 0.207715 | 0.207715 | 0.083086 | 0.231454 | 0.11276 | 0 | 0 | 0 | 0 | 0 | 0.016129 | 0.150685 | 511 | 17 | 70 | 30.058824 | 0.760369 | 0 | 0 | 0 | 0 | 0 | 0.025391 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
bc7a4ba93b81379a774de4bfe935d4190d11f960 | 246 | py | Python | data.py | PoonamTripathy/ZoomAutoLogin | 00a2fcc6dc151d9360362afee625a1c36990ee24 | [
"MIT"
] | null | null | null | data.py | PoonamTripathy/ZoomAutoLogin | 00a2fcc6dc151d9360362afee625a1c36990ee24 | [
"MIT"
] | null | null | null | data.py | PoonamTripathy/ZoomAutoLogin | 00a2fcc6dc151d9360362afee625a1c36990ee24 | [
"MIT"
] | null | null | null | lst = [
["https://bit.ly/DataStructC", "9:00", "9:58"],
["https://bit.ly/AeroStructures", "11:10", "12:08"],
["https://zoom.us/j/8143311495?pwd=e-space", "12:10", "13:00"]
["https://bit.ly/engMaterials", "13:50", "14:50"]
]
| 35.142857 | 67 | 0.53252 | 37 | 246 | 3.540541 | 0.648649 | 0.183206 | 0.229008 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192308 | 0.154472 | 246 | 6 | 68 | 41 | 0.4375 | 0 | 0 | 0 | 0 | 0 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
bc7dc820bab46006df93090527dd24d00759ac21 | 269 | py | Python | soxs/background/__init__.py | jzuhone/sox | 034f973c8b66cd07ee904c414411a76759d9730a | [
"BSD-3-Clause"
] | null | null | null | soxs/background/__init__.py | jzuhone/sox | 034f973c8b66cd07ee904c414411a76759d9730a | [
"BSD-3-Clause"
] | null | null | null | soxs/background/__init__.py | jzuhone/sox | 034f973c8b66cd07ee904c414411a76759d9730a | [
"BSD-3-Clause"
] | null | null | null | from .point_sources import make_ptsrc_background, \
make_point_sources_file, make_point_source_list
from .diffuse import make_diffuse_background
from .spectra import BackgroundSpectrum, \
ConvolvedBackgroundSpectrum
from .events import add_background_from_file
| 38.428571 | 51 | 0.858736 | 33 | 269 | 6.575758 | 0.484848 | 0.110599 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107807 | 269 | 6 | 52 | 44.833333 | 0.904167 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
bc917111b239bf0ac0a3c18e73f31a172cee4b15 | 3,419 | py | Python | river/compose/func.py | fox-ds/river | 9ce947ebfc012ec7059de0a09c765b2da7fc1d25 | [
"BSD-3-Clause"
] | 2,184 | 2020-11-11T12:31:12.000Z | 2022-03-31T16:45:41.000Z | river/compose/func.py | fox-ds/river | 9ce947ebfc012ec7059de0a09c765b2da7fc1d25 | [
"BSD-3-Clause"
] | 328 | 2019-01-25T13:48:43.000Z | 2020-11-11T11:41:44.000Z | river/compose/func.py | fox-ds/river | 9ce947ebfc012ec7059de0a09c765b2da7fc1d25 | [
"BSD-3-Clause"
] | 240 | 2020-11-11T14:25:03.000Z | 2022-03-31T08:25:50.000Z | import typing
from river import base
__all__ = ["FuncTransformer"]
class FuncTransformer(base.Transformer):
"""Wraps a function to make it usable in a pipeline.
There is often a need to apply an arbitrary transformation to a set of features. For instance,
this could involve parsing a date and then extr... | 33.851485 | 100 | 0.644925 | 500 | 3,419 | 4.334 | 0.324 | 0.020766 | 0.049838 | 0.057222 | 0.268113 | 0.21689 | 0.205353 | 0.196124 | 0.196124 | 0.196124 | 0 | 0.013082 | 0.239836 | 3,419 | 100 | 101 | 34.19 | 0.8207 | 0.831822 | 0 | 0 | 0 | 0 | 0.04644 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.2 | 0.2 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
bcaa226eb46b633c33fd10f8b7e322ceddaee4f4 | 257 | py | Python | canaro/utils/__init__.py | MichalPitr/canaro | 7331ff718c6230173e9dac1c57c71b1ad3bd1000 | [
"MIT"
] | 9 | 2020-10-03T06:40:09.000Z | 2022-01-16T23:28:43.000Z | canaro/utils/__init__.py | jasmcaus/caer-models | 5a4d2110491674897c14fd4bddd91f44478b10dc | [
"MIT"
] | null | null | null | canaro/utils/__init__.py | jasmcaus/caer-models | 5a4d2110491674897c14fd4bddd91f44478b10dc | [
"MIT"
] | 2 | 2020-12-21T14:44:23.000Z | 2021-08-24T01:13:41.000Z | # Author: Jason Dsouza
# Github: http://www.github.com/jasmcaus
from .categorical import to_categorical
# from .h5_to_pb import h5_to_pb
# from .h5_to_pb import model_io
# from .h5_to_pb import freeze_tf_session
# from .h5_to_pb import _write_frozen_graph | 28.555556 | 43 | 0.801556 | 45 | 257 | 4.2 | 0.488889 | 0.10582 | 0.15873 | 0.21164 | 0.338624 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022222 | 0.124514 | 257 | 9 | 43 | 28.555556 | 0.817778 | 0.789883 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
bcb3c7b5661dffb416ab40c41eaa4770e6fb34a4 | 363 | py | Python | strands_recovery_behaviours/src/strands_recovery_behaviours/__init__.py | Jailander/strands_recovery_behaviours | 10ea6ee2fcc9af8f5373c0513161d93c754e89f6 | [
"MIT"
] | null | null | null | strands_recovery_behaviours/src/strands_recovery_behaviours/__init__.py | Jailander/strands_recovery_behaviours | 10ea6ee2fcc9af8f5373c0513161d93c754e89f6 | [
"MIT"
] | null | null | null | strands_recovery_behaviours/src/strands_recovery_behaviours/__init__.py | Jailander/strands_recovery_behaviours | 10ea6ee2fcc9af8f5373c0513161d93c754e89f6 | [
"MIT"
] | null | null | null | import monitor_bumper
import recover_bumper
import recover_bumper_no_help
import monitor_stuck_on_carpet
import recover_stuck_on_carpet_no_help
import recover_nav_no_help
import recover_nav
__all__ = ['monitor_bumper', 'recover_bumper_no_help', 'recover_bumper', 'monitor_stuck_on_carpet', 'recover_stuck_on_carpet_no_h... | 40.333333 | 172 | 0.873278 | 56 | 363 | 4.982143 | 0.196429 | 0.129032 | 0.18638 | 0.179211 | 0.322581 | 0.18638 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063361 | 363 | 9 | 172 | 40.333333 | 0.820588 | 0 | 0 | 0 | 0 | 0 | 0.368132 | 0.208791 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.875 | 0 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
bcdcafd1338069e8a3d01836a998773fbef9a65e | 200 | py | Python | tests/__init__.py | gengo/gDBPool | 4ae04a3aa180f8a522cdb6dd8405c1dbd6922487 | [
"MIT"
] | null | null | null | tests/__init__.py | gengo/gDBPool | 4ae04a3aa180f8a522cdb6dd8405c1dbd6922487 | [
"MIT"
] | null | null | null | tests/__init__.py | gengo/gDBPool | 4ae04a3aa180f8a522cdb6dd8405c1dbd6922487 | [
"MIT"
] | null | null | null | from gDBPool.gDBPoolError import DBInteractionException, DBPoolConnectionException, PoolConnectionException, StreamEndException
__all__ = [ 'DBInteractionPool', 'DBConnectionPool' , 'PoolConnection' ] | 100 | 127 | 0.855 | 12 | 200 | 13.916667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07 | 200 | 2 | 128 | 100 | 0.897849 | 0 | 0 | 0 | 0 | 0 | 0.233831 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 1 | 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 | 4 |
bcfe6c44d9333e9358cf4b2e63dcc8ecae1bc585 | 115 | py | Python | component/parameter/directory.py | sepal-contrib/basin-rivers | 496ff1c7e10aada420c7706c9268436fde8b6816 | [
"MIT"
] | 1 | 2022-03-09T15:38:23.000Z | 2022-03-09T15:38:23.000Z | component/parameter/directory.py | dfguerrerom/basin-rivers | 496ff1c7e10aada420c7706c9268436fde8b6816 | [
"MIT"
] | 1 | 2022-03-23T19:20:42.000Z | 2022-03-28T11:58:03.000Z | component/parameter/directory.py | dfguerrerom/basin-rivers | 496ff1c7e10aada420c7706c9268436fde8b6816 | [
"MIT"
] | null | null | null | from pathlib import Path
module_dir = Path.home() / "module_results/basin_rivers"
module_dir.mkdir(exist_ok=True)
| 23 | 56 | 0.8 | 18 | 115 | 4.833333 | 0.777778 | 0.206897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095652 | 115 | 4 | 57 | 28.75 | 0.836538 | 0 | 0 | 0 | 0 | 0 | 0.234783 | 0.234783 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
4c09fc04136fa832e7c34034101985de410f9fdc | 1,101 | py | Python | src/tiles/tile_helm.py | sirdodger/acstat | d4e6014da3015ce2c5c339fd692458d35b7887fa | [
"MIT"
] | null | null | null | src/tiles/tile_helm.py | sirdodger/acstat | d4e6014da3015ce2c5c339fd692458d35b7887fa | [
"MIT"
] | null | null | null | src/tiles/tile_helm.py | sirdodger/acstat | d4e6014da3015ce2c5c339fd692458d35b7887fa | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""Helm tile.
"""
from __future__ import annotations
import typing
import colors
import tiles.ship_square
from .ship_square import (
ActionSquare,
BlankSquare,
MachineSquare,
)
from .tile import Tile
class HelmTile(Tile):
"""The helm steers and stabilizes the ship. It must... | 25.604651 | 105 | 0.693006 | 110 | 1,101 | 6.863636 | 0.509091 | 0.275497 | 0.258278 | 0.206623 | 0.103311 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001148 | 0.208901 | 1,101 | 42 | 106 | 26.214286 | 0.865672 | 0.168937 | 0 | 0 | 0 | 0 | 0.002245 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.52381 | 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 | 1 | 0 | 0 | 4 |
4c1b6852c59cd7aadbf82dce9e7e96d0dfc85789 | 96 | py | Python | tst_level_2.py | Egida-Kassandra/kassandra | 162f6a5ee67a70122e24143e08c6a779a987f82d | [
"Apache-2.0",
"Unlicense"
] | 6 | 2021-04-21T16:16:18.000Z | 2021-12-16T09:09:07.000Z | tst_level_2.py | albact7/kassandra | 162f6a5ee67a70122e24143e08c6a779a987f82d | [
"Apache-2.0",
"Unlicense"
] | 1 | 2021-04-30T21:18:11.000Z | 2021-04-30T21:18:11.000Z | tst_level_2.py | albact7/kassandra | 162f6a5ee67a70122e24143e08c6a779a987f82d | [
"Apache-2.0",
"Unlicense"
] | 2 | 2021-07-20T06:56:57.000Z | 2021-09-01T14:22:24.000Z | import kass_nn.level_2.main as lvl2
if __name__ == '__main__':
lvl2.main("test_main_4.log") | 24 | 35 | 0.729167 | 17 | 96 | 3.411765 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048193 | 0.135417 | 96 | 4 | 36 | 24 | 0.650602 | 0 | 0 | 0 | 0 | 0 | 0.237113 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
4c47ef3334b6a81bb7bfd1c52db9c500981a2535 | 434 | py | Python | src/hypergol/repr.py | hypergol/hypergol | 0beee71c8f72d517ef376030baff9c840a2f7eeb | [
"MIT"
] | 49 | 2020-07-09T10:22:25.000Z | 2022-02-21T16:55:34.000Z | src/hypergol/repr.py | hypergol/hypergol | 0beee71c8f72d517ef376030baff9c840a2f7eeb | [
"MIT"
] | 16 | 2020-08-18T17:06:05.000Z | 2022-02-19T16:30:04.000Z | src/hypergol/repr.py | hypergol/hypergol | 0beee71c8f72d517ef376030baff9c840a2f7eeb | [
"MIT"
] | 3 | 2020-07-16T08:42:09.000Z | 2021-03-06T15:09:13.000Z |
MAX_MEMBER_REPR_LENGTH = 1000
class Repr:
"""Convencience class to automatically add standard ``__repr__()`` and ``__str__()`` functions to class.
Uses ``__dict__`` property.
"""
def __repr__(self):
members = ', '.join(f'{k}={str(v)[:MAX_MEMBER_REPR_LENGTH]}' for k, v in self.__dict__.items... | 25.529412 | 108 | 0.638249 | 54 | 434 | 4.351852 | 0.537037 | 0.076596 | 0.110638 | 0.161702 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011561 | 0.202765 | 434 | 16 | 109 | 27.125 | 0.66763 | 0.299539 | 0 | 0 | 0 | 0 | 0.260417 | 0.253472 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0 | 0.142857 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
4c6f3b1249bc5e7a3c6e83f93e9efd88c4d4496e | 224 | py | Python | examples/trello.py | jdost/restler | 578ec9160328c53bf71253c9ab3b4d04bcf0406f | [
"Apache-2.0"
] | null | null | null | examples/trello.py | jdost/restler | 578ec9160328c53bf71253c9ab3b4d04bcf0406f | [
"Apache-2.0"
] | 2 | 2016-03-08T21:30:55.000Z | 2016-03-08T21:34:00.000Z | examples/trello.py | jdost/restler | 578ec9160328c53bf71253c9ab3b4d04bcf0406f | [
"Apache-2.0"
] | 1 | 2020-02-21T21:00:44.000Z | 2020-02-21T21:00:44.000Z | from restler import Restler
def build(token, key):
handler = Restler("https://api.trello.com/1/")
handler._route._default_params["token"] = token
handler._route._default_params["key"] = key
return handler
| 22.4 | 51 | 0.700893 | 29 | 224 | 5.206897 | 0.586207 | 0.15894 | 0.251656 | 0.331126 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005348 | 0.165179 | 224 | 9 | 52 | 24.888889 | 0.802139 | 0 | 0 | 0 | 0 | 0 | 0.147321 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
4c71ba04741c734e7ede41b2de4305249bc044b2 | 6,281 | py | Python | great_class.py | PeterXUYAOHAI/FastLSH-Python | 4d42d53ba0c0f9b580e7e0ca541716eda9634b8d | [
"Apache-2.0"
] | null | null | null | great_class.py | PeterXUYAOHAI/FastLSH-Python | 4d42d53ba0c0f9b580e7e0ca541716eda9634b8d | [
"Apache-2.0"
] | null | null | null | great_class.py | PeterXUYAOHAI/FastLSH-Python | 4d42d53ba0c0f9b580e7e0ca541716eda9634b8d | [
"Apache-2.0"
] | null | null | null | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 3.0.8
#
# 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 >= (2, 6, 0):
def swig_import_helper():
from os.path imp... | 29.350467 | 92 | 0.681102 | 749 | 6,281 | 5.23231 | 0.204272 | 0.099515 | 0.118398 | 0.12248 | 0.362337 | 0.275836 | 0.204389 | 0.146721 | 0.106915 | 0.088033 | 0 | 0.00331 | 0.230377 | 6,281 | 213 | 93 | 29.488263 | 0.807406 | 0.046808 | 0 | 0.205128 | 1 | 0 | 0.024762 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.237179 | false | 0.012821 | 0.057692 | 0.198718 | 0.660256 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
d5c1c57366884c351fa45cc26d12ee2241708930 | 17,896 | py | Python | anvil/interfaces/maya/connections.py | AndresMWeber/Anvil | 9cd202183ac998983c2bf6e55cc46bbc0ca1a78e | [
"Apache-2.0"
] | 3 | 2019-11-22T04:38:06.000Z | 2022-01-19T08:27:18.000Z | anvil/interfaces/maya/connections.py | AndresMWeber/Anvil | 9cd202183ac998983c2bf6e55cc46bbc0ca1a78e | [
"Apache-2.0"
] | 28 | 2018-02-01T20:39:42.000Z | 2018-04-26T17:25:23.000Z | anvil/interfaces/maya/connections.py | AndresMWeber/Anvil | 9cd202183ac998983c2bf6e55cc46bbc0ca1a78e | [
"Apache-2.0"
] | 1 | 2018-03-11T06:47:26.000Z | 2018-03-11T06:47:26.000Z | from anvil.interfaces.maya.dependencies import DEFAULT_API
import anvil.interfaces.api_proxy as api_proxy
import anvil.config as cfg
default_properties = {
"layer": api_proxy.STR_TYPE,
"name": api_proxy.STR_TYPE,
"remove": api_proxy.BOOL_TYPE,
"targetList": api_proxy.BOOL_TYPE,
"weight": api_proxy.... | 49.164835 | 118 | 0.557778 | 1,752 | 17,896 | 5.317352 | 0.140982 | 0.256763 | 0.211249 | 0.281666 | 0.586518 | 0.581687 | 0.523401 | 0.496136 | 0.484435 | 0.350902 | 0 | 0.00017 | 0.342702 | 17,896 | 363 | 119 | 49.300275 | 0.791805 | 0 | 0 | 0.343042 | 0 | 0 | 0.144557 | 0.006426 | 0 | 0 | 0 | 0 | 0 | 1 | 0.080906 | false | 0.080906 | 0.009709 | 0 | 0.090615 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
d5cb60876acc5758adbafe526c9921d529ce4c23 | 55 | py | Python | learn/function_type.py | postsent/unsw_course_filter | b58cb3d6f3fb4fb84e2031be6c6511fb5b9c343f | [
"MIT"
] | null | null | null | learn/function_type.py | postsent/unsw_course_filter | b58cb3d6f3fb4fb84e2031be6c6511fb5b9c343f | [
"MIT"
] | null | null | null | learn/function_type.py | postsent/unsw_course_filter | b58cb3d6f3fb4fb84e2031be6c6511fb5b9c343f | [
"MIT"
] | null | null | null | def foo(n:int = 1)->int:
return n
print(foo("hi")) | 13.75 | 24 | 0.563636 | 11 | 55 | 2.818182 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022727 | 0.2 | 55 | 4 | 25 | 13.75 | 0.681818 | 0 | 0 | 0 | 0 | 0 | 0.035714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.333333 | 0.666667 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
d5e0774104659afc4c937dc43ba999b2cad81c20 | 111 | py | Python | jsonable/__init__.py | wikimedia/operations-debs-python-jsonable | 7f9a7b8d9aa77f2d0d6e5d9bcf6b9bf8e4f2e78a | [
"MIT"
] | null | null | null | jsonable/__init__.py | wikimedia/operations-debs-python-jsonable | 7f9a7b8d9aa77f2d0d6e5d9bcf6b9bf8e4f2e78a | [
"MIT"
] | null | null | null | jsonable/__init__.py | wikimedia/operations-debs-python-jsonable | 7f9a7b8d9aa77f2d0d6e5d9bcf6b9bf8e4f2e78a | [
"MIT"
] | null | null | null | from .type import Type, Base, JSONable, AbstractJSONable
from .functions import to_json
__version__ = "0.2.1"
| 22.2 | 56 | 0.774775 | 16 | 111 | 5.0625 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03125 | 0.135135 | 111 | 4 | 57 | 27.75 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0.045045 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
9108b623822430ef4a1cdaa8dd92eee83c46414e | 76 | py | Python | prysm/experimental/__init__.py | Lixiaoxin-HIT/prysm | 42d95bd0352778d73555fc18f9b927706f841ae1 | [
"MIT"
] | 1 | 2022-03-29T02:10:14.000Z | 2022-03-29T02:10:14.000Z | prysm/experimental/__init__.py | Lixiaoxin-HIT/prysm | 42d95bd0352778d73555fc18f9b927706f841ae1 | [
"MIT"
] | null | null | null | prysm/experimental/__init__.py | Lixiaoxin-HIT/prysm | 42d95bd0352778d73555fc18f9b927706f841ae1 | [
"MIT"
] | null | null | null | """Experimental code, not subject to any testing or compatability rules."""
| 38 | 75 | 0.763158 | 10 | 76 | 5.8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131579 | 76 | 1 | 76 | 76 | 0.878788 | 0.907895 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
91258c1cec97366a11ba7ff1eaeafcc61e56987a | 1,299 | py | Python | tests/test_maximum_y_projection.py | tlambert-forks/pyclesperanto_prototype | aea964a75e691f19b7753040daa8b276d57ccf36 | [
"BSD-3-Clause"
] | 64 | 2020-03-18T12:11:22.000Z | 2022-03-31T08:19:18.000Z | tests/test_maximum_y_projection.py | haesleinhuepf/pyclesperanto_prototype | 65bc3035d3b2b61a2722c93b95bae310bfbd190e | [
"BSD-3-Clause"
] | 148 | 2020-05-14T06:14:11.000Z | 2022-03-26T15:02:31.000Z | tests/test_maximum_y_projection.py | haesleinhuepf/pyclesperanto_prototype | 65bc3035d3b2b61a2722c93b95bae310bfbd190e | [
"BSD-3-Clause"
] | 16 | 2020-05-31T00:53:44.000Z | 2022-03-23T13:20:57.000Z | import pyclesperanto_prototype as cle
import numpy as np
def test_maximum_y_projection():
test1 = cle.push(np.asarray([
[
[1, 0, 0, 0, 9],
[0, 2, 0, 8, 0],
[3, 0, 1, 0, 10],
[0, 4, 0, 7, 0],
[5, 0, 6, 0, 10]
], [
[0, 2, 0, 8, 0... | 22.789474 | 43 | 0.312548 | 202 | 1,299 | 1.975248 | 0.183168 | 0.050125 | 0.06015 | 0.050125 | 0.413534 | 0.398496 | 0.358396 | 0.345865 | 0.345865 | 0.345865 | 0 | 0.248882 | 0.483449 | 1,299 | 56 | 44 | 23.196429 | 0.345753 | 0 | 0 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020408 | 1 | 0.020408 | false | 0 | 0.040816 | 0 | 0.061224 | 0.020408 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
9143375bd7c3fee8a27a703cb58bcd547395d631 | 107 | py | Python | store/exceptions.py | Jerome-Celle/Blitz-API | 7dfb7b837ed47b11afcfaa5f5aee831c1aa4e5e0 | [
"MIT"
] | null | null | null | store/exceptions.py | Jerome-Celle/Blitz-API | 7dfb7b837ed47b11afcfaa5f5aee831c1aa4e5e0 | [
"MIT"
] | null | null | null | store/exceptions.py | Jerome-Celle/Blitz-API | 7dfb7b837ed47b11afcfaa5f5aee831c1aa4e5e0 | [
"MIT"
] | null | null | null | class PaymentAPIError(Exception):
"""
Raised when a payment related action fails.
"""
pass
| 17.833333 | 47 | 0.64486 | 11 | 107 | 6.272727 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.261682 | 107 | 5 | 48 | 21.4 | 0.873418 | 0.401869 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
914a363a9925310b7470fb0fe97befc734aed99f | 5,441 | py | Python | python dictionaries2/Access + change Dictionary Items.py | master9robot/python_lesson | d50466ebde95529ac2b4011d671b4ccebf121dc3 | [
"MIT"
] | null | null | null | python dictionaries2/Access + change Dictionary Items.py | master9robot/python_lesson | d50466ebde95529ac2b4011d671b4ccebf121dc3 | [
"MIT"
] | null | null | null | python dictionaries2/Access + change Dictionary Items.py | master9robot/python_lesson | d50466ebde95529ac2b4011d671b4ccebf121dc3 | [
"MIT"
] | null | null | null |
#You can access the items of a dictionary by referring to its key name, inside square brackets:
#Get the value of the "model" key:
thisdict = {
"brand": "Ford",
"model": "Mustang",
"year": 1964
}
x = thisdict["model"]
print(x)
thisdict = {
"brand": "",
"model": "",
"year": 0
}
x = thisdict["model"]
prin... | 19.642599 | 145 | 0.650983 | 844 | 5,441 | 4.165877 | 0.131517 | 0.049488 | 0.047782 | 0.071672 | 0.775882 | 0.758248 | 0.729522 | 0.677759 | 0.615757 | 0.570819 | 0 | 0.016769 | 0.188936 | 5,441 | 276 | 146 | 19.713768 | 0.779968 | 0.380445 | 0 | 0.768844 | 0 | 0 | 0.319002 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.175879 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
e677725a4942ad897d3adf1f18a34f3468510095 | 4,942 | py | Python | GassistPi/src/snowboydetect.py | Truptipunjani/Truptipunjani-Smart-Mirror-Final-year-project | 72558da0898de8ce14bc09bff132766db5bb4cc8 | [
"MIT"
] | null | null | null | GassistPi/src/snowboydetect.py | Truptipunjani/Truptipunjani-Smart-Mirror-Final-year-project | 72558da0898de8ce14bc09bff132766db5bb4cc8 | [
"MIT"
] | null | null | null | GassistPi/src/snowboydetect.py | Truptipunjani/Truptipunjani-Smart-Mirror-Final-year-project | 72558da0898de8ce14bc09bff132766db5bb4cc8 | [
"MIT"
] | null | null | null | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 4.0.2
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info as _swig_python_version_info
if _swig_python_version_info < (2, 7, 0):
raise Runtime... | 34.082759 | 118 | 0.733509 | 565 | 4,942 | 6.049558 | 0.253097 | 0.105617 | 0.112346 | 0.073727 | 0.376536 | 0.27677 | 0.249269 | 0.129901 | 0.104154 | 0.065535 | 0 | 0.001981 | 0.182922 | 4,942 | 144 | 119 | 34.319444 | 0.844477 | 0.099555 | 0 | 0.247312 | 1 | 0 | 0.039738 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.301075 | false | 0 | 0.064516 | 0.215054 | 0.731183 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
e68b585ef98d12d147da43468aa0b4be667137b2 | 80 | py | Python | PaddleCV/adversarial/advbox/__init__.py | suytingwan/models | ccdbfe77d071cc19b55fb9f4b738912e35d982ef | [
"Apache-2.0"
] | 819 | 2019-06-10T08:33:28.000Z | 2022-03-29T10:55:25.000Z | PaddleCV/adversarial/advbox/__init__.py | suytingwan/models | ccdbfe77d071cc19b55fb9f4b738912e35d982ef | [
"Apache-2.0"
] | 38 | 2019-07-11T01:57:41.000Z | 2022-03-15T06:59:21.000Z | PaddleCV/adversarial/advbox/__init__.py | suytingwan/models | ccdbfe77d071cc19b55fb9f4b738912e35d982ef | [
"Apache-2.0"
] | 167 | 2019-06-12T09:11:34.000Z | 2022-03-28T15:54:46.000Z | """
A set of tools for generating adversarial example on paddle platform
"""
| 20 | 71 | 0.725 | 11 | 80 | 5.272727 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 80 | 3 | 72 | 26.666667 | 0.90625 | 0.85 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
e68c630dcd076a8f10facc74c96876630fa0ca50 | 129 | py | Python | python/chap_0/0.5.27.py | RyodoTanaka/Cording_Matrix | 7d357266c0b659495f226000418e9cdaee133ebf | [
"BSD-3-Clause"
] | null | null | null | python/chap_0/0.5.27.py | RyodoTanaka/Cording_Matrix | 7d357266c0b659495f226000418e9cdaee133ebf | [
"BSD-3-Clause"
] | null | null | null | python/chap_0/0.5.27.py | RyodoTanaka/Cording_Matrix | 7d357266c0b659495f226000418e9cdaee133ebf | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
def twice(z) : return 2*z
print twice(2)
print twice(3)
# returns error
print z
| 11.727273 | 25 | 0.635659 | 23 | 129 | 3.565217 | 0.695652 | 0.243902 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038095 | 0.186047 | 129 | 10 | 26 | 12.9 | 0.742857 | 0.434109 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.75 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
e6a7be40d9f671ddc477492ab48b1bdc310db61d | 153 | py | Python | xyz/xyzshuffle/xyzshuffle/__main__.py | srk/compchemtools | 156ff6406a2c60b3a7baa936bac81e4fae6bac6d | [
"FSFAP"
] | null | null | null | xyz/xyzshuffle/xyzshuffle/__main__.py | srk/compchemtools | 156ff6406a2c60b3a7baa936bac81e4fae6bac6d | [
"FSFAP"
] | null | null | null | xyz/xyzshuffle/xyzshuffle/__main__.py | srk/compchemtools | 156ff6406a2c60b3a7baa936bac81e4fae6bac6d | [
"FSFAP"
] | null | null | null | # -*- coding: utf-8 -*-
"""xyzshuffle.__main__: executed when xyzshuffle directory is called as script."""
from .xyzshuffle import main
main() | 19.125 | 83 | 0.673203 | 18 | 153 | 5.5 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008065 | 0.189542 | 153 | 8 | 84 | 19.125 | 0.790323 | 0.647059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
e6ba7299adab479ff2786dd5bb7d4204af8bdc46 | 89 | py | Python | python/testData/paramInfo/NonReferenceCallee.py | alexey-anufriev/intellij-community | ffcd46f14e630acdefcc76e2bfc7c43d2449013a | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/paramInfo/NonReferenceCallee.py | alexey-anufriev/intellij-community | ffcd46f14e630acdefcc76e2bfc7c43d2449013a | [
"Apache-2.0"
] | 1 | 2020-07-30T19:04:47.000Z | 2020-07-30T19:04:47.000Z | python/testData/paramInfo/NonReferenceCallee.py | bradleesand/intellij-community | 750ff9c10333c9c1278c00dbe8d88c877b1b9749 | [
"Apache-2.0"
] | 1 | 2020-10-15T05:56:42.000Z | 2020-10-15T05:56:42.000Z | class CallableTest:
def __call__(self, arg=None):
pass
CallableTest()(<arg1>) | 22.25 | 33 | 0.662921 | 10 | 89 | 5.5 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014085 | 0.202247 | 89 | 4 | 34 | 22.25 | 0.760563 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
e6c16d4b9a569c897bb0ad15a9ddc918c0d5f04c | 2,758 | py | Python | apps/security/migrations/0008_groups_hosts_hostsgroups_sudoconfigs_users_usersgroup.py | death-finger/get2unix | 1ff6f729f076040d6493251471cc0ee9cdcdc661 | [
"MIT"
] | null | null | null | apps/security/migrations/0008_groups_hosts_hostsgroups_sudoconfigs_users_usersgroup.py | death-finger/get2unix | 1ff6f729f076040d6493251471cc0ee9cdcdc661 | [
"MIT"
] | null | null | null | apps/security/migrations/0008_groups_hosts_hostsgroups_sudoconfigs_users_usersgroup.py | death-finger/get2unix | 1ff6f729f076040d6493251471cc0ee9cdcdc661 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.6 on 2020-11-14 06:10
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('security', '0007_sudotasks_effective_days'),
]
operations = [
migrations.CreateModel(
name='Gro... | 43.09375 | 115 | 0.575417 | 279 | 2,758 | 5.544803 | 0.247312 | 0.056884 | 0.054299 | 0.085326 | 0.75501 | 0.75501 | 0.711054 | 0.665805 | 0.665805 | 0.665805 | 0 | 0.019618 | 0.279188 | 2,758 | 63 | 116 | 43.777778 | 0.758551 | 0.016316 | 0 | 0.631579 | 1 | 0 | 0.100701 | 0.010697 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.035088 | 0 | 0.087719 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
fc066963fdd6c0a4bc96f9d18b59a43ce2070322 | 257 | py | Python | katas/beta/alien_beer_morse_code.py | the-zebulan/CodeWars | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | [
"MIT"
] | 40 | 2016-03-09T12:26:20.000Z | 2022-03-23T08:44:51.000Z | katas/beta/alien_beer_morse_code.py | akalynych/CodeWars | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | [
"MIT"
] | null | null | null | katas/beta/alien_beer_morse_code.py | akalynych/CodeWars | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | [
"MIT"
] | 36 | 2016-11-07T19:59:58.000Z | 2022-03-31T11:18:27.000Z | ALIEN = {'.----': '1', '..---': '2', '...--': '3', '....-': '4', '.....': '5',
'-....': '6', '--...': '7', '---..': '8', '----.': '9', '-----': '0'}
def morse_converter(s):
return int(''.join(ALIEN[s[a:a + 5]] for a in xrange(0, len(s), 5)))
| 36.714286 | 78 | 0.287938 | 31 | 257 | 2.354839 | 0.741935 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 0.190661 | 257 | 6 | 79 | 42.833333 | 0.288462 | 0 | 0 | 0 | 0 | 0 | 0.233463 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.25 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
fc1278976c690b6c13299e5abd4ee8b8a7344a19 | 77 | py | Python | lib/helpers/python/starter.py | josephroquedev/advent-of-code | bb217deb7a5f5ed5c8c04cb726ddadb5b042ee4d | [
"MIT"
] | null | null | null | lib/helpers/python/starter.py | josephroquedev/advent-of-code | bb217deb7a5f5ed5c8c04cb726ddadb5b042ee4d | [
"MIT"
] | 2 | 2021-06-02T00:41:38.000Z | 2021-11-30T10:05:29.000Z | lib/helpers/python/starter.py | autoreleasefool/advent-of-code | bb217deb7a5f5ed5c8c04cb726ddadb5b042ee4d | [
"MIT"
] | null | null | null | from aoc import AOC
aoc = AOC(year=__year__, day=__day__)
data = aoc.load()
| 15.4 | 37 | 0.714286 | 13 | 77 | 3.615385 | 0.538462 | 0.255319 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155844 | 77 | 4 | 38 | 19.25 | 0.723077 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
fc1d2121dd7f70c1b4e9b5f6bd77d4e07aff8bb0 | 52 | py | Python | zhaquirks/aduro/__init__.py | WolfRevo/zha-device-handlers | 0fa4ca1c03c611be0cf2c38c4fec2a197e3dd1d3 | [
"Apache-2.0"
] | 213 | 2020-04-16T10:48:31.000Z | 2022-03-30T20:48:07.000Z | zhaquirks/aduro/__init__.py | WolfRevo/zha-device-handlers | 0fa4ca1c03c611be0cf2c38c4fec2a197e3dd1d3 | [
"Apache-2.0"
] | 1,088 | 2020-04-03T13:23:29.000Z | 2022-03-31T23:55:03.000Z | zhaquirks/aduro/__init__.py | WolfRevo/zha-device-handlers | 0fa4ca1c03c611be0cf2c38c4fec2a197e3dd1d3 | [
"Apache-2.0"
] | 280 | 2020-04-24T08:44:27.000Z | 2022-03-31T12:58:04.000Z | """ADUROLIGHT module for custom device handlers."""
| 26 | 51 | 0.75 | 6 | 52 | 6.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115385 | 52 | 1 | 52 | 52 | 0.847826 | 0.865385 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
fc5b7458850198d9a1ed876ec69b4b8c93bf6b6e | 159 | py | Python | rainy/utils/__init__.py | kngwyu/Rainy | 535f8f49d9efe0324a8480d0165ab1b35d83dc19 | [
"Apache-2.0"
] | 37 | 2019-12-05T08:12:59.000Z | 2021-09-30T11:10:11.000Z | rainy/utils/__init__.py | kngwyu/Rainy | 535f8f49d9efe0324a8480d0165ab1b35d83dc19 | [
"Apache-2.0"
] | 29 | 2019-02-27T03:45:14.000Z | 2020-07-26T11:51:42.000Z | rainy/utils/__init__.py | kngwyu/Rainy | 535f8f49d9efe0324a8480d0165ab1b35d83dc19 | [
"Apache-2.0"
] | 4 | 2021-03-24T04:29:58.000Z | 2021-12-21T01:28:13.000Z | from .device import Device
from .log import ExperimentLogger, LogStore
from .rms import RunningMeanStd, RunningMeanStdTorch
from .sample import sample_indices
| 31.8 | 52 | 0.849057 | 19 | 159 | 7.052632 | 0.578947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113208 | 159 | 4 | 53 | 39.75 | 0.950355 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
fc61fc2a38669010a0759dbd00e16da3500c4cab | 212 | py | Python | venv/Lib/site-packages/gevent/tests/test__issue_728.py | asanka9/Quession-Discussion-App-Socket.Io-NLP | 95a49a8afa572dc3908a0bade45e424c3751f191 | [
"Apache-2.0"
] | 13 | 2018-03-28T23:07:01.000Z | 2022-03-12T06:01:21.000Z | venv/Lib/site-packages/gevent/tests/test__issue_728.py | asanka9/Quession-Discussion-App-Socket.Io-NLP | 95a49a8afa572dc3908a0bade45e424c3751f191 | [
"Apache-2.0"
] | 11 | 2018-06-18T15:49:07.000Z | 2021-11-25T01:45:33.000Z | venv/Lib/site-packages/gevent/tests/test__issue_728.py | asanka9/Quession-Discussion-App-Socket.Io-NLP | 95a49a8afa572dc3908a0bade45e424c3751f191 | [
"Apache-2.0"
] | 5 | 2018-03-28T23:07:05.000Z | 2021-12-09T19:02:00.000Z | #!/usr/bin/env python
from gevent.monkey import patch_all
patch_all()
if __name__ == '__main__':
# Reproducing #728 requires a series of nested
# imports
__import__('_imports_imports_at_top_level')
| 21.2 | 50 | 0.735849 | 29 | 212 | 4.724138 | 0.827586 | 0.116788 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017045 | 0.169811 | 212 | 9 | 51 | 23.555556 | 0.761364 | 0.339623 | 0 | 0 | 0 | 0 | 0.272059 | 0.213235 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
fc621b18454f2446dc6b4dabb6cb44e765feec42 | 15,500 | py | Python | discord.py | HyperFrank/PythonDiscordTicketBot | 6ee054ace8ae40fe4c7838f83543ee41acffc7bc | [
"CNRI-Python"
] | null | null | null | discord.py | HyperFrank/PythonDiscordTicketBot | 6ee054ace8ae40fe4c7838f83543ee41acffc7bc | [
"CNRI-Python"
] | null | null | null | discord.py | HyperFrank/PythonDiscordTicketBot | 6ee054ace8ae40fe4c7838f83543ee41acffc7bc | [
"CNRI-Python"
] | null | null | null | import discord
from discord.ext import commands
from discord.ext.commands import has_permissions, MissingPermissions
import json
import asyncio
import os
bot = commands.Bot(command_prefix="+")
bot.remove_command("help")
@bot.event
async def on_ready():
print("Bot running with:")
print("Username: ", bot.user.n... | 38.17734 | 309 | 0.615355 | 2,105 | 15,500 | 4.446081 | 0.096912 | 0.042953 | 0.040389 | 0.054814 | 0.775617 | 0.737365 | 0.717705 | 0.70531 | 0.693343 | 0.686184 | 0 | 0.008495 | 0.278516 | 15,500 | 405 | 310 | 38.271605 | 0.828221 | 0 | 0 | 0.637681 | 0 | 0.028986 | 0.296019 | 0 | 0 | 0 | 0.010839 | 0 | 0 | 1 | 0.003623 | false | 0.021739 | 0.021739 | 0.003623 | 0.028986 | 0.01087 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
fca78419c6adab3ac92cbe4f4be12fd90a275872 | 189 | py | Python | scripts/portal/mirtalk01.py | Snewmy/swordie | ae01ed4ec0eb20a18730e8cd209eea0b84a8dd17 | [
"MIT"
] | 2 | 2020-08-25T06:55:19.000Z | 2021-03-15T14:37:34.000Z | scripts/portal/mirtalk01.py | Snewmy/swordie | ae01ed4ec0eb20a18730e8cd209eea0b84a8dd17 | [
"MIT"
] | null | null | null | scripts/portal/mirtalk01.py | Snewmy/swordie | ae01ed4ec0eb20a18730e8cd209eea0b84a8dd17 | [
"MIT"
] | 3 | 2020-08-25T06:55:25.000Z | 2020-12-01T13:07:43.000Z | # Portal & Effect for Evan Intro | Dream World: Dream Forest Entrance (900010000)
# Author: Tiger
# "You who are seeking a Pact..."
sm.showEffect("Map/Effect.img/evan/dragonTalk01", 3000)
| 31.5 | 81 | 0.730159 | 27 | 189 | 5.111111 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.092593 | 0.142857 | 189 | 5 | 82 | 37.8 | 0.759259 | 0.661376 | 0 | 0 | 0 | 0 | 0.533333 | 0.533333 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
5d78a021bc403401e9d6b860e6ea8577b6133b44 | 89 | py | Python | uppdev/kmedis/tst/tst.py | dreamsxin/ultimatepp | 41d295d999f9ff1339b34b43c99ce279b9b3991c | [
"BSD-2-Clause"
] | 2 | 2016-04-07T07:54:26.000Z | 2020-04-14T12:37:34.000Z | uppdev/kmedis/tst/tst.py | dreamsxin/ultimatepp | 41d295d999f9ff1339b34b43c99ce279b9b3991c | [
"BSD-2-Clause"
] | null | null | null | uppdev/kmedis/tst/tst.py | dreamsxin/ultimatepp | 41d295d999f9ff1339b34b43c99ce279b9b3991c | [
"BSD-2-Clause"
] | null | null | null | import os, time
while True:
os.spawnl(os.P_WAIT, 'kmedis.exe')
# time.sleep(1) | 17.8 | 39 | 0.629213 | 15 | 89 | 3.666667 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014286 | 0.213483 | 89 | 5 | 40 | 17.8 | 0.771429 | 0.146067 | 0 | 0 | 0 | 0 | 0.144928 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
5d7f221ade4448e7635f2fee5ec12c7e5f25336d | 159 | py | Python | tests/test_package.py | puzzle9/masonite-qiniu | 6aff50afce88a303b9bba30716f503364a5c6d6b | [
"MIT"
] | null | null | null | tests/test_package.py | puzzle9/masonite-qiniu | 6aff50afce88a303b9bba30716f503364a5c6d6b | [
"MIT"
] | null | null | null | tests/test_package.py | puzzle9/masonite-qiniu | 6aff50afce88a303b9bba30716f503364a5c6d6b | [
"MIT"
] | null | null | null | from masonite.testing import TestCase
from src.masonite.qiniu.QiniuServer import QiniuServer
class TestPackage(TestCase):
def setUp(self):
pass
| 17.666667 | 54 | 0.761006 | 19 | 159 | 6.368421 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176101 | 159 | 8 | 55 | 19.875 | 0.923664 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.2 | 0.4 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 4 |
5d9aafd772138157a5729c9da44519a01674930a | 101 | py | Python | tools/utils/__init__.py | shucheng-ai/WDA-tools | d8e1ea6bd1286e57ed58f68b6ae29c83f490534b | [
"Apache-2.0"
] | null | null | null | tools/utils/__init__.py | shucheng-ai/WDA-tools | d8e1ea6bd1286e57ed58f68b6ae29c83f490534b | [
"Apache-2.0"
] | null | null | null | tools/utils/__init__.py | shucheng-ai/WDA-tools | d8e1ea6bd1286e57ed58f68b6ae29c83f490534b | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# coding:utf-8
def estimate_area_from_stock(stock) :
return 10000000000;
| 16.833333 | 37 | 0.742574 | 15 | 101 | 4.8 | 0.933333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149425 | 0.138614 | 101 | 5 | 38 | 20.2 | 0.678161 | 0.336634 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
5db792e3198fe3e2ee31be7fde46da8a07666ac0 | 61 | py | Python | servermanager/__init__.py | 2016519/DjangoBlog-master | 59c687a34657be2220bfaf0567709b84bf8ae83e | [
"MIT"
] | null | null | null | servermanager/__init__.py | 2016519/DjangoBlog-master | 59c687a34657be2220bfaf0567709b84bf8ae83e | [
"MIT"
] | 7 | 2021-03-19T02:32:57.000Z | 2022-03-12T00:25:52.000Z | servermanager/__init__.py | 2016519/DjangoBlog | 59c687a34657be2220bfaf0567709b84bf8ae83e | [
"MIT"
] | null | null | null | default_app_config = "servermanager.apps.ServermanagerConfig" | 61 | 61 | 0.885246 | 6 | 61 | 8.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032787 | 61 | 1 | 61 | 61 | 0.881356 | 0 | 0 | 0 | 0 | 0 | 0.612903 | 0.612903 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
5df2c09c8875a8f3b6fef767de5f6ded27c08108 | 910 | py | Python | src/houseinfo/model.py | SwaggieBroker/HousePriceDataVisualization | 43325cf6ba03548bf4a867dff2cafb4abec7758f | [
"MIT"
] | null | null | null | src/houseinfo/model.py | SwaggieBroker/HousePriceDataVisualization | 43325cf6ba03548bf4a867dff2cafb4abec7758f | [
"MIT"
] | null | null | null | src/houseinfo/model.py | SwaggieBroker/HousePriceDataVisualization | 43325cf6ba03548bf4a867dff2cafb4abec7758f | [
"MIT"
] | null | null | null | from django.conf import settings
from django.db import models
class HouseInfo(models.Model):
class Meta:
db_table = "houseinfo"
houseID = models.CharField(primary_key=True, max_length=50)
community = models.CharField(max_length=50)
decoration = models.CharField(max_length=50)
direction = ... | 36.4 | 63 | 0.740659 | 116 | 910 | 5.663793 | 0.301724 | 0.342466 | 0.251142 | 0.511416 | 0.581431 | 0.185693 | 0.185693 | 0.185693 | 0.185693 | 0.185693 | 0 | 0.039113 | 0.157143 | 910 | 24 | 64 | 37.916667 | 0.817471 | 0 | 0 | 0.095238 | 0 | 0 | 0.01978 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.095238 | 0 | 0.952381 | 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 | 1 | 0 | 0 | 4 |
f8fefdb316772a5d99d398c11f96fed16f21c867 | 171 | py | Python | app/models/__init__.py | blackboard/BBDN-Base-Python-Flask | 710b82bfb45217798d9e9edda13d5e0f632e2284 | [
"MIT"
] | null | null | null | app/models/__init__.py | blackboard/BBDN-Base-Python-Flask | 710b82bfb45217798d9e9edda13d5e0f632e2284 | [
"MIT"
] | 2 | 2022-03-16T01:34:51.000Z | 2022-03-16T01:34:56.000Z | app/models/__init__.py | Eddyjim/BB-BaseTool | 39fd41cc503b7c31886426b8b017c5f9acfe5072 | [
"MIT"
] | null | null | null | """
models/__init__.py
-------------------------------------------------------------------
"""
def init_app(app):
"""
:param app:
:return:
"""
pass
| 12.214286 | 67 | 0.280702 | 11 | 171 | 3.909091 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.204678 | 171 | 13 | 68 | 13.153846 | 0.316176 | 0.625731 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
5d0c8675e9eca268f65dd1225ed01745032933f9 | 240 | py | Python | tests/conftest.py | grantjenks/pytest-shims | a2aa66148b701fe1bfb04b690fd7aedb1be1a9ca | [
"Apache-2.0"
] | 2 | 2020-07-13T18:18:30.000Z | 2021-12-17T01:01:36.000Z | tests/conftest.py | grantjenks/python-shims | a2aa66148b701fe1bfb04b690fd7aedb1be1a9ca | [
"Apache-2.0"
] | null | null | null | tests/conftest.py | grantjenks/python-shims | a2aa66148b701fe1bfb04b690fd7aedb1be1a9ca | [
"Apache-2.0"
] | null | null | null | import datetime
import importlib
import sys
# Force CPython to use the pure-Python implementation of the datetime module
# for testing. https://stackoverflow.com/a/62506055/232571
sys.modules["_datetime"] = None
importlib.reload(datetime)
| 26.666667 | 76 | 0.804167 | 33 | 240 | 5.818182 | 0.757576 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065728 | 0.1125 | 240 | 8 | 77 | 30 | 0.835681 | 0.545833 | 0 | 0 | 0 | 0 | 0.084906 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
5d52fa0202e7808d2457f17e1a0abb853803bc02 | 20 | py | Python | fortifyapi/__init__.py | Alex-Srey/fortifyapi | ecd3cc539e201fc28ca4175b7930643db6fdafb0 | [
"MIT"
] | null | null | null | fortifyapi/__init__.py | Alex-Srey/fortifyapi | ecd3cc539e201fc28ca4175b7930643db6fdafb0 | [
"MIT"
] | null | null | null | fortifyapi/__init__.py | Alex-Srey/fortifyapi | ecd3cc539e201fc28ca4175b7930643db6fdafb0 | [
"MIT"
] | null | null | null | __version__ = '2.4'
| 10 | 19 | 0.65 | 3 | 20 | 3 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 0.15 | 20 | 1 | 20 | 20 | 0.411765 | 0 | 0 | 0 | 0 | 0 | 0.15 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.