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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d62e4743038fffd2a8a1156bb48d0232552671d3 | 257 | py | Python | tests/utils.py | ireneontheway5/pymilvus | b812449a98602b4370b3b3430bdeb18b24035e53 | [
"Apache-2.0"
] | 1 | 2020-03-03T07:55:16.000Z | 2020-03-03T07:55:16.000Z | tests/utils.py | ireneontheway5/pymilvus | b812449a98602b4370b3b3430bdeb18b24035e53 | [
"Apache-2.0"
] | null | null | null | tests/utils.py | ireneontheway5/pymilvus | b812449a98602b4370b3b3430bdeb18b24035e53 | [
"Apache-2.0"
] | 3 | 2019-11-06T08:28:58.000Z | 2020-04-24T09:58:54.000Z | import grpc
class MockGrpcError(grpc.RpcError):
def __init__(self, code=1, details="error"):
self._code = code
self._details = details
def code(self):
return self._code
def details(self):
return self._details
| 18.357143 | 48 | 0.63035 | 31 | 257 | 4.967742 | 0.419355 | 0.155844 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005348 | 0.272374 | 257 | 13 | 49 | 19.769231 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0.019455 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.111111 | 0.222222 | 0.777778 | 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 |
d643904a2ca9672ab7f9b2864175a821506cb3de | 28,178 | py | Python | main.py | Gunjanph/Brick-Breaker | a8c46a791a7bba752d182231f41c00e223a65b7d | [
"MIT"
] | null | null | null | main.py | Gunjanph/Brick-Breaker | a8c46a791a7bba752d182231f41c00e223a65b7d | [
"MIT"
] | null | null | null | main.py | Gunjanph/Brick-Breaker | a8c46a791a7bba752d182231f41c00e223a65b7d | [
"MIT"
] | null | null | null | import signal
import os
import time
import subprocess
from random import randrange, randint
import numpy as np
from colorama import init, Fore, Back
init()
from input import Get, input_to
from board import Board
from paddle import Paddle
from ball import Ball
from bricks import Brick, UnbreakableBrick
from config impo... | 35.134663 | 486 | 0.649904 | 4,804 | 28,178 | 3.601374 | 0.04184 | 0.116525 | 0.110861 | 0.045778 | 0.785215 | 0.76354 | 0.741518 | 0.70493 | 0.677128 | 0.648171 | 0 | 0.029744 | 0.168394 | 28,178 | 802 | 487 | 35.134663 | 0.708573 | 0.116403 | 0 | 0.564263 | 0 | 0 | 0.023747 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018809 | false | 0 | 0.040752 | 0.001567 | 0.064263 | 0.009404 | 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 |
d649e8d105ddce7c396037ab58eb3f53723982ea | 355 | py | Python | src/simmate/workflow_engine/common_tasks/__init__.py | jacksund/simmate | 0b29704540574e11b711f7b44e2cb7740141ebb4 | [
"BSD-3-Clause"
] | 9 | 2021-12-21T02:58:21.000Z | 2022-01-25T14:00:06.000Z | src/simmate/workflow_engine/common_tasks/__init__.py | jacksund/simmate | 0b29704540574e11b711f7b44e2cb7740141ebb4 | [
"BSD-3-Clause"
] | 51 | 2022-01-01T15:59:58.000Z | 2022-03-26T21:25:42.000Z | src/simmate/workflow_engine/common_tasks/__init__.py | jacksund/simmate | 0b29704540574e11b711f7b44e2cb7740141ebb4 | [
"BSD-3-Clause"
] | 7 | 2022-01-01T03:44:32.000Z | 2022-03-29T19:59:27.000Z | # -*- coding: utf-8 -*-
from .load_input_and_register import load_input_and_register
from .save_result import save_result
from .load_nested_calculation import LoadNestedCalculationTask
from .save_nested_calculation import SaveNestedCalculationTask
from .parse_multi_command import parse_multi_command
from .customized_s... | 39.444444 | 62 | 0.873239 | 46 | 355 | 6.326087 | 0.456522 | 0.054983 | 0.082474 | 0.137457 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009231 | 0.084507 | 355 | 8 | 63 | 44.375 | 0.886154 | 0.059155 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
c3926a4f8ca12b6307e8be812116f869cb36fabf | 55 | py | Python | skinny/histogram.py | sinanm89/skin_detect | 510ca1228a59e9cb73e03d5d3c982d4a4b6ac323 | [
"MIT"
] | null | null | null | skinny/histogram.py | sinanm89/skin_detect | 510ca1228a59e9cb73e03d5d3c982d4a4b6ac323 | [
"MIT"
] | null | null | null | skinny/histogram.py | sinanm89/skin_detect | 510ca1228a59e9cb73e03d5d3c982d4a4b6ac323 | [
"MIT"
] | null | null | null | """Histogram for accurate skin detection in opencv."""
| 27.5 | 54 | 0.745455 | 7 | 55 | 5.857143 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127273 | 55 | 1 | 55 | 55 | 0.854167 | 0.872727 | 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 |
c3b484477ab0c791213968970e61f7f23b37926c | 516 | py | Python | cerebro/nas/__init__.py | jiange91/cerebro-system | 6c09f5a5b56ef78c0519fdb6c0839cb199bd49a8 | [
"Apache-2.0"
] | null | null | null | cerebro/nas/__init__.py | jiange91/cerebro-system | 6c09f5a5b56ef78c0519fdb6c0839cb199bd49a8 | [
"Apache-2.0"
] | null | null | null | cerebro/nas/__init__.py | jiange91/cerebro-system | 6c09f5a5b56ef78c0519fdb6c0839cb199bd49a8 | [
"Apache-2.0"
] | 1 | 2022-02-03T05:53:37.000Z | 2022-02-03T05:53:37.000Z | from autokeras.tuners.greedy import Greedy
from .tuners.greedy import GreedySearch
from .tuners.randsearch import RandomSearch
# from .tuners.hyperband import Hyperband
from .hphpmodel import HyperHyperModel
from .tuners.gridsearch import GridSearch
from .tuners.greedy import GreedySearch
HyperHyperModel.__module__ =... | 36.857143 | 46 | 0.825581 | 59 | 516 | 6.881356 | 0.271186 | 0.123153 | 0.197044 | 0.155172 | 0.167488 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089147 | 516 | 14 | 46 | 36.857143 | 0.86383 | 0.158915 | 0 | 0.2 | 0 | 0 | 0.145833 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.6 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
c3e2cec1a90a0617e34da500ebc081d7b4851d4c | 355 | py | Python | assignment8/mapper.py | IITDU-BSSE06/ads-demystifying-the-logs-Shisir | 2d57cf15b4e8097e54e1a997ed01b9a5002640be | [
"MIT"
] | null | null | null | assignment8/mapper.py | IITDU-BSSE06/ads-demystifying-the-logs-Shisir | 2d57cf15b4e8097e54e1a997ed01b9a5002640be | [
"MIT"
] | null | null | null | assignment8/mapper.py | IITDU-BSSE06/ads-demystifying-the-logs-Shisir | 2d57cf15b4e8097e54e1a997ed01b9a5002640be | [
"MIT"
] | null | null | null | #!/usr/bin/python
#>>> a='http://www.the-associates.co.uk/images/filmmediablock/332/RtB_0576.jpg'
#>>> b=urlparse(a).path
#>>> b
#'/images/filmmediablock/332/RtB_0576.jpg'
import sys
from urlparse import urlparse
for line in sys.stdin:
data = line.strip().split(" ")
if len(data) == 10:
... | 19.722222 | 80 | 0.628169 | 51 | 355 | 4.333333 | 0.666667 | 0.180995 | 0.208145 | 0.235294 | 0.298643 | 0.298643 | 0 | 0 | 0 | 0 | 0 | 0.059028 | 0.188732 | 355 | 17 | 81 | 20.882353 | 0.708333 | 0.456338 | 0 | 0 | 0 | 0 | 0.005882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.333333 | null | null | 0.166667 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
c3ebb868df291050977911fcb1027a439871d6e4 | 256 | py | Python | nbmetalog/get_timestamp.py | mmore500/nbmetalog | 670f8ad76a587d8848c81e4f790c31c96402f8b0 | [
"MIT"
] | null | null | null | nbmetalog/get_timestamp.py | mmore500/nbmetalog | 670f8ad76a587d8848c81e4f790c31c96402f8b0 | [
"MIT"
] | 1 | 2021-09-02T16:08:58.000Z | 2021-09-02T16:08:58.000Z | nbmetalog/get_timestamp.py | mmore500/nbmetalog | 670f8ad76a587d8848c81e4f790c31c96402f8b0 | [
"MIT"
] | null | null | null | from datetime import datetime, timezone
from . import _except_return_none
@_except_return_none
def get_timestamp():
return datetime.now().replace(
tzinfo=timezone.utc,
).replace(
microsecond=0,
).isoformat().replace('+', 'Z')
| 21.333333 | 39 | 0.683594 | 29 | 256 | 5.793103 | 0.62069 | 0.142857 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004831 | 0.191406 | 256 | 11 | 40 | 23.272727 | 0.806763 | 0 | 0 | 0 | 0 | 0 | 0.007813 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | true | 0 | 0.222222 | 0.111111 | 0.444444 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
613de9c112a4635093b326b7ef5ecb7e59d1fe6e | 183 | py | Python | py/baltools/__init__.py | paulmartini/baltools | 06f64036eea7f0ae261d72369c7714e74dba31da | [
"BSD-3-Clause"
] | null | null | null | py/baltools/__init__.py | paulmartini/baltools | 06f64036eea7f0ae261d72369c7714e74dba31da | [
"BSD-3-Clause"
] | 5 | 2020-04-03T02:26:33.000Z | 2021-01-23T20:57:38.000Z | py/baltools/__init__.py | paulmartini/baltools | 06f64036eea7f0ae261d72369c7714e74dba31da | [
"BSD-3-Clause"
] | null | null | null | #
# See top-level LICENSE file for Copyright information
#
# -*- coding: utf-8 -*-
"""
Tools to identify, characterize, and simulate BAL QSOs.
"""
from ._version import __version__
| 16.636364 | 55 | 0.704918 | 23 | 183 | 5.391304 | 0.956522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006579 | 0.169399 | 183 | 10 | 56 | 18.3 | 0.809211 | 0.715847 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
615b56d642e66f59e26dcc4c105f482bc5a542be | 483 | py | Python | tests/validation/test_clean_provisional.py | StuartMacKay/ebird-api | 14b5c777548416a58abec05e25cd4b9a8e22f210 | [
"MIT"
] | 9 | 2020-05-16T20:26:33.000Z | 2021-11-02T06:24:46.000Z | tests/validation/test_clean_provisional.py | StuartMacKay/ebird-api | 14b5c777548416a58abec05e25cd4b9a8e22f210 | [
"MIT"
] | 17 | 2019-06-22T09:41:22.000Z | 2020-09-11T06:25:21.000Z | tests/validation/test_clean_provisional.py | ProjectBabbler/ebird-api | 14b5c777548416a58abec05e25cd4b9a8e22f210 | [
"MIT"
] | null | null | null | import unittest
from ebird.api.validation import clean_provisional
class CleanProvisionalTests(unittest.TestCase):
"""Tests for the clean_provisional validation function."""
def test_converts_bool(self):
self.assertEqual("true", clean_provisional(True))
self.assertEqual("false", clean_provis... | 30.1875 | 62 | 0.73913 | 54 | 483 | 6.425926 | 0.481481 | 0.276657 | 0.086455 | 0.132565 | 0.432277 | 0.224784 | 0 | 0 | 0 | 0 | 0 | 0.004902 | 0.15528 | 483 | 15 | 63 | 32.2 | 0.845588 | 0.10766 | 0 | 0 | 0 | 0 | 0.042353 | 0 | 0 | 0 | 0 | 0 | 0.444444 | 1 | 0.222222 | false | 0 | 0.222222 | 0 | 0.555556 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
616d3bc609ba1e61c0fbc32b58631c5a46c7c255 | 445 | py | Python | Test_01_Login (2).py | MakeGunshot/upload | 6a868c90a54870ed653b9b57be6a9a7193ada8e6 | [
"MIT"
] | 1 | 2019-05-07T09:19:27.000Z | 2019-05-07T09:19:27.000Z | Test_01_Login.py | MakeGunshot/0726 | fb79f24c73426512d250373085db8369def2f6c9 | [
"MIT"
] | null | null | null | Test_01_Login.py | MakeGunshot/0726 | fb79f24c73426512d250373085db8369def2f6c9 | [
"MIT"
] | null | null | null |
# coding=utf-8
from selenium import webdriver
import time
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support import expected_conditions as EC
class Login():
def __init__(self):
self.driver = webdriver.Chrome()
self.driver.get... | 26.176471 | 64 | 0.730337 | 63 | 445 | 5.079365 | 0.603175 | 0.15 | 0.196875 | 0.16875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050802 | 0.159551 | 445 | 16 | 65 | 27.8125 | 0.804813 | 0.026966 | 0 | 0 | 0 | 0 | 0.060748 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.454545 | 0 | 0.727273 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
618d261a272399267873fd5e3793e0c683e345e1 | 685 | py | Python | signalz/generators/uniform_white_noise.py | seang097/signalz | 0846e037b288e508a7648887874e3e07ef8cac73 | [
"MIT"
] | 9 | 2017-07-28T18:02:38.000Z | 2022-01-02T07:53:26.000Z | signalz/generators/uniform_white_noise.py | seang097/signalz | 0846e037b288e508a7648887874e3e07ef8cac73 | [
"MIT"
] | 1 | 2017-12-26T20:34:00.000Z | 2017-12-29T11:02:05.000Z | signalz/generators/uniform_white_noise.py | seang097/signalz | 0846e037b288e508a7648887874e3e07ef8cac73 | [
"MIT"
] | 2 | 2020-10-16T09:39:30.000Z | 2021-11-22T21:40:32.000Z | """
.. versionadded:: 0.4
This function generates Uniform white noise series. This function uses
`numpy.random.uniform`.
Function Documentation
======================================
"""
import numpy as np
def uniform_white_noise(n, minimum=-1, maximum=1):
"""
Random values with uniform distribution.
**... | 22.096774 | 80 | 0.59562 | 79 | 685 | 5.139241 | 0.658228 | 0.059113 | 0.083744 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009542 | 0.235037 | 685 | 30 | 81 | 22.833333 | 0.765267 | 0.690511 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
619e6bd831fadc3987647866446d1017ce105bef | 76 | py | Python | wikipedia/__init__.py | MUTLCC/Wikipedia | 031c2211f4f2212453acb043b702def2128f8dd9 | [
"MIT"
] | null | null | null | wikipedia/__init__.py | MUTLCC/Wikipedia | 031c2211f4f2212453acb043b702def2128f8dd9 | [
"MIT"
] | 2 | 2022-02-26T20:31:47.000Z | 2022-03-01T11:05:49.000Z | wikipedia/__init__.py | MUTLCC/Wikipedia | 031c2211f4f2212453acb043b702def2128f8dd9 | [
"MIT"
] | null | null | null | from .exceptions import *
from .wikipedia import *
__version__ = (1, 0, 0)
| 15.2 | 25 | 0.697368 | 10 | 76 | 4.9 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048387 | 0.184211 | 76 | 4 | 26 | 19 | 0.741935 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
61a693dce6455f02828158e78fc158b193532e83 | 177 | py | Python | main.py | digicatech/python_learn | 4c9ace5b2ced82243db010dfb755571a8e938e90 | [
"MIT"
] | null | null | null | main.py | digicatech/python_learn | 4c9ace5b2ced82243db010dfb755571a8e938e90 | [
"MIT"
] | null | null | null | main.py | digicatech/python_learn | 4c9ace5b2ced82243db010dfb755571a8e938e90 | [
"MIT"
] | null | null | null | import sys
import modules.mymodule
import json
def main(argv):
modules.mymodule.printSomething("Hello world !....")
pass
if __name__ == "__main__":
main(sys.argv) | 16.090909 | 56 | 0.694915 | 22 | 177 | 5.227273 | 0.636364 | 0.26087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175141 | 177 | 11 | 57 | 16.090909 | 0.787671 | 0 | 0 | 0 | 0 | 0 | 0.140449 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.125 | 0.375 | 0 | 0.5 | 0.125 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 4 |
f60d8090c2cdbd58e3ab4d58cf6d90c2a12d7245 | 130 | py | Python | Program_Sederhana.py | heptadeka/Kekasih-pertama-ku | d08024127141a8afcad72e57c4d34e3aeec32bf8 | [
"MIT"
] | null | null | null | Program_Sederhana.py | heptadeka/Kekasih-pertama-ku | d08024127141a8afcad72e57c4d34e3aeec32bf8 | [
"MIT"
] | null | null | null | Program_Sederhana.py | heptadeka/Kekasih-pertama-ku | d08024127141a8afcad72e57c4d34e3aeec32bf8 | [
"MIT"
] | null | null | null | print ("Angka Pertama : ")
a = int(input())
print ("Angka Kedua : ")
b = int (input())
print (hasil = a * b)
| 9.285714 | 27 | 0.476923 | 16 | 130 | 3.875 | 0.5625 | 0.322581 | 0.419355 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.338462 | 130 | 13 | 28 | 10 | 0.72093 | 0 | 0 | 0 | 0 | 0 | 0.27027 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.6 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
f63dead5f417fd3cf971033f182b023dbfeb2ea9 | 233 | py | Python | models/comments.py | Junhua9981/WebProjectFinal | 8db619b4196fa3bc684202ddb24a725c15e06d78 | [
"MIT"
] | null | null | null | models/comments.py | Junhua9981/WebProjectFinal | 8db619b4196fa3bc684202ddb24a725c15e06d78 | [
"MIT"
] | null | null | null | models/comments.py | Junhua9981/WebProjectFinal | 8db619b4196fa3bc684202ddb24a725c15e06d78 | [
"MIT"
] | null | null | null | from sqlite3 import Timestamp
from pydantic import BaseModel, Field, EmailStr
class CommentModel(BaseModel):
comment: str = Field(...)
name: str = Field(...)
timestamp: Timestamp = Field(...)
course: str = Field(...) | 29.125 | 47 | 0.669528 | 25 | 233 | 6.24 | 0.56 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005291 | 0.188841 | 233 | 8 | 48 | 29.125 | 0.820106 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.285714 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
f65c55623d5158150efe15dc5520e4d0edbf2c49 | 60 | py | Python | qtUtils/Constants.py | KentMrng/kmLib | 80cedeb1e27d322849c8b2b56f7f1613cea37b29 | [
"MIT"
] | null | null | null | qtUtils/Constants.py | KentMrng/kmLib | 80cedeb1e27d322849c8b2b56f7f1613cea37b29 | [
"MIT"
] | null | null | null | qtUtils/Constants.py | KentMrng/kmLib | 80cedeb1e27d322849c8b2b56f7f1613cea37b29 | [
"MIT"
] | null | null | null |
UP_KEY = 16777235
DOWN_KEY = 16777237
TAB_KEY = 16777217 | 8.571429 | 19 | 0.75 | 9 | 60 | 4.666667 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.5 | 0.2 | 60 | 7 | 20 | 8.571429 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
9c938ad7db064d4e3183491aac03445711f5e6c3 | 46 | py | Python | openmdao/__init__.py | relf/OpenMDAO | e96aa063d04330ed0aedece365b7f0b8717aad3b | [
"Apache-2.0"
] | null | null | null | openmdao/__init__.py | relf/OpenMDAO | e96aa063d04330ed0aedece365b7f0b8717aad3b | [
"Apache-2.0"
] | null | null | null | openmdao/__init__.py | relf/OpenMDAO | e96aa063d04330ed0aedece365b7f0b8717aad3b | [
"Apache-2.0"
] | 1 | 2021-04-15T13:33:39.000Z | 2021-04-15T13:33:39.000Z | __version__ = '3.8.1-dev'
INF_BOUND = 1.0E30
| 11.5 | 25 | 0.673913 | 9 | 46 | 2.888889 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.179487 | 0.152174 | 46 | 3 | 26 | 15.333333 | 0.487179 | 0 | 0 | 0 | 0 | 0 | 0.195652 | 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 |
9c9d559bbde2a9c3525973fda6f0f1d01e8a7a4d | 149 | py | Python | querybulletin/__main__.py | bpptkg/bpptkg-querybulletin | 5e108a28a06e8a295b55ef6575be4169cd04d36c | [
"MIT"
] | null | null | null | querybulletin/__main__.py | bpptkg/bpptkg-querybulletin | 5e108a28a06e8a295b55ef6575be4169cd04d36c | [
"MIT"
] | null | null | null | querybulletin/__main__.py | bpptkg/bpptkg-querybulletin | 5e108a28a06e8a295b55ef6575be4169cd04d36c | [
"MIT"
] | null | null | null | """Invokes main cli function when the querybulletin is run as a script."""
from querybulletin.cli import main
if __name__ == '__main__':
main()
| 24.833333 | 74 | 0.724832 | 21 | 149 | 4.761905 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.174497 | 149 | 5 | 75 | 29.8 | 0.813008 | 0.456376 | 0 | 0 | 0 | 0 | 0.106667 | 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 |
9ca2b4dc1c3488f54990ed9f67d782c325f953a4 | 1,419 | py | Python | datatig/models/type.py | DataTig/DataTig | b4e9aa18dfcc8010972df732463344205ad62a75 | [
"MIT"
] | 5 | 2021-06-11T11:56:01.000Z | 2022-03-03T18:27:10.000Z | datatig/models/type.py | DataTig/DataTig | b4e9aa18dfcc8010972df732463344205ad62a75 | [
"MIT"
] | 8 | 2020-04-27T16:28:03.000Z | 2022-02-11T15:40:30.000Z | datatig/models/type.py | DataTig/DataTig | b4e9aa18dfcc8010972df732463344205ad62a75 | [
"MIT"
] | null | null | null | from .type_field import TypeFieldModel
class TypeModel:
def __init__(self, siteconfig):
self.id = None
self.config = None
self.fields = {}
self.siteconfig = siteconfig
def load_from_config(self, config) -> None:
self.id = config.get("id")
self.config = config
... | 31.533333 | 84 | 0.629316 | 171 | 1,419 | 5.023392 | 0.280702 | 0.128056 | 0.121071 | 0.132712 | 0.243306 | 0.121071 | 0 | 0 | 0 | 0 | 0 | 0.000946 | 0.255109 | 1,419 | 44 | 85 | 32.25 | 0.811731 | 0.021846 | 0 | 0.058824 | 0 | 0 | 0.071429 | 0 | 0 | 0 | 0 | 0.022727 | 0 | 1 | 0.264706 | false | 0 | 0.029412 | 0.176471 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
9cb4269abf41541f70e57aefaeee6cda3b1da1fe | 90 | py | Python | src/python/okane/entity/account.py | adrianogil/Okane | fe8d45d36a04b04116f8ebd112a7bd6215bfc77d | [
"MIT"
] | null | null | null | src/python/okane/entity/account.py | adrianogil/Okane | fe8d45d36a04b04116f8ebd112a7bd6215bfc77d | [
"MIT"
] | null | null | null | src/python/okane/entity/account.py | adrianogil/Okane | fe8d45d36a04b04116f8ebd112a7bd6215bfc77d | [
"MIT"
] | null | null | null | class Account:
def __init__(self, name):
self.id = -1
self.name = name | 22.5 | 29 | 0.555556 | 12 | 90 | 3.833333 | 0.666667 | 0.347826 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016667 | 0.333333 | 90 | 4 | 30 | 22.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
9cb565e4ce245dfdcfdab6d50f71c2b60c2e0491 | 1,017 | py | Python | rewards/file.py | lloydphan/reward-crawler | 8bd84104b34db9015ffa9b95e6788b634522d715 | [
"MIT"
] | null | null | null | rewards/file.py | lloydphan/reward-crawler | 8bd84104b34db9015ffa9b95e6788b634522d715 | [
"MIT"
] | null | null | null | rewards/file.py | lloydphan/reward-crawler | 8bd84104b34db9015ffa9b95e6788b634522d715 | [
"MIT"
] | null | null | null | import os
class File:
file = ""
def __init__(self, file_name):
self.file_name = file_name
def isFile(self, file_name):
if os.path.isfile(file_name):
return True
else:
return False
def openOrCreate(self):
if self.isFile(self.file_name):
... | 24.214286 | 52 | 0.557522 | 132 | 1,017 | 4.143939 | 0.272727 | 0.175503 | 0.219378 | 0.175503 | 0.361974 | 0.288848 | 0.288848 | 0.246801 | 0.246801 | 0.246801 | 0 | 0 | 0.334317 | 1,017 | 41 | 53 | 24.804878 | 0.807976 | 0 | 0 | 0.225806 | 0 | 0 | 0.00885 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.258065 | false | 0 | 0.032258 | 0 | 0.580645 | 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 |
9cb8e3fd93d66ca659d61875414b987d07dcaebc | 7,174 | py | Python | testing/impl/test_big_segments.py | annuupadhyayPS/python-server-sdk-2 | 782dac861e81c1f5988af93019f5d1d506e8ef00 | [
"Apache-2.0"
] | null | null | null | testing/impl/test_big_segments.py | annuupadhyayPS/python-server-sdk-2 | 782dac861e81c1f5988af93019f5d1d506e8ef00 | [
"Apache-2.0"
] | null | null | null | testing/impl/test_big_segments.py | annuupadhyayPS/python-server-sdk-2 | 782dac861e81c1f5988af93019f5d1d506e8ef00 | [
"Apache-2.0"
] | null | null | null | from ldclient.config import BigSegmentsConfig
from ldclient.evaluation import BigSegmentsStatus
from ldclient.impl.big_segments import BigSegmentStoreManager, _hash_for_user_key
from ldclient.interfaces import BigSegmentStoreMetadata
from testing.mock_components import MockBigSegmentStore
from queue import Queue
impor... | 40.303371 | 103 | 0.73613 | 866 | 7,174 | 5.73903 | 0.147806 | 0.046479 | 0.042254 | 0.072435 | 0.785513 | 0.765392 | 0.740845 | 0.700201 | 0.638431 | 0.632998 | 0 | 0.017924 | 0.18344 | 7,174 | 177 | 104 | 40.531073 | 0.830488 | 0.051575 | 0 | 0.652482 | 0 | 0 | 0.012358 | 0 | 0 | 0 | 0 | 0 | 0.170213 | 1 | 0.06383 | false | 0 | 0.049645 | 0 | 0.113475 | 0 | 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 |
9cbe7ffd8d5ee1ddc90b4e073fe95bef3eef59c6 | 86 | py | Python | InvalidSizeException.py | renshj/High-Cadence-Processing | 5d5a2df741858f6e1466d7c4b008e9245d4b780a | [
"MIT"
] | null | null | null | InvalidSizeException.py | renshj/High-Cadence-Processing | 5d5a2df741858f6e1466d7c4b008e9245d4b780a | [
"MIT"
] | null | null | null | InvalidSizeException.py | renshj/High-Cadence-Processing | 5d5a2df741858f6e1466d7c4b008e9245d4b780a | [
"MIT"
] | null | null | null | #This file was created by Tate Hagan
class InvalidSizeException(Exception):
pass | 28.666667 | 39 | 0.77907 | 11 | 86 | 6.090909 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.174419 | 86 | 3 | 40 | 28.666667 | 0.943662 | 0.406977 | 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 |
9cc4ef180071919386b4ebc30c3c006fe56901f7 | 60 | py | Python | src/controller/ai/heuristics/heuristic.py | arubenruben/IART-Ball-Sort-Puzzle | 0d71c533e9a329b61220cb90c0bc5a67ae404b89 | [
"MIT"
] | null | null | null | src/controller/ai/heuristics/heuristic.py | arubenruben/IART-Ball-Sort-Puzzle | 0d71c533e9a329b61220cb90c0bc5a67ae404b89 | [
"MIT"
] | null | null | null | src/controller/ai/heuristics/heuristic.py | arubenruben/IART-Ball-Sort-Puzzle | 0d71c533e9a329b61220cb90c0bc5a67ae404b89 | [
"MIT"
] | null | null | null | class Heuristic:
def evaluate(self, node):
pass
| 15 | 29 | 0.616667 | 7 | 60 | 5.285714 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.3 | 60 | 3 | 30 | 20 | 0.880952 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.333333 | 0 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
9cd094ba1fe64b68dd01aa2a34a96cbd8c40ab9b | 106 | py | Python | tronpy/__init__.py | itsAPK/tronpy | 2ffc4f86da1fe5c1429d86d905d185e6918a0a61 | [
"MIT"
] | 1 | 2020-10-04T05:50:46.000Z | 2020-10-04T05:50:46.000Z | env/lib/python3.6/site-packages/tronpy/__init__.py | YazdanRa/ad_bot | 976a6c73cf94746cb92afea1ed3a0e77acfafb46 | [
"MIT"
] | null | null | null | env/lib/python3.6/site-packages/tronpy/__init__.py | YazdanRa/ad_bot | 976a6c73cf94746cb92afea1ed3a0e77acfafb46 | [
"MIT"
] | null | null | null | from tronpy.tron import Tron
from tronpy.contract import Contract, ShieldedTRC20
TRX = 1_000_000
SUN = 1
| 17.666667 | 51 | 0.801887 | 17 | 106 | 4.882353 | 0.588235 | 0.240964 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 0.150943 | 106 | 5 | 52 | 21.2 | 0.811111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 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 |
9cf3101e56714044e7d21f6c90c4cb271011c0c4 | 42,599 | py | Python | cathedral/graphics/shapes.py | tetris-hermetris/cathedral | 4b7809c9406f22ae8842760270e5a97c5bbbed17 | [
"MIT"
] | 1 | 2020-10-11T21:54:33.000Z | 2020-10-11T21:54:33.000Z | cathedral/graphics/shapes.py | tetris-hermetris/cathedral | 4b7809c9406f22ae8842760270e5a97c5bbbed17 | [
"MIT"
] | null | null | null | cathedral/graphics/shapes.py | tetris-hermetris/cathedral | 4b7809c9406f22ae8842760270e5a97c5bbbed17 | [
"MIT"
] | null | null | null | from .geometry import move, moveToPoint
from ..utils import sgn
from math import sin, cos, pi
def window(w=200, h=200, n=150, pivot=(500, 500), sectors=4, corners=1, color={'reds':1}):
'''Generate window primitive based on superellipse,
returns (points, 'live', color)'''
if corners != 0: corners = 1
n ... | 293.786207 | 4,693 | 0.534379 | 8,586 | 42,599 | 2.65071 | 0.146634 | 0.002373 | 0.002373 | 0.00435 | 0.342458 | 0.318555 | 0.315831 | 0.313283 | 0.311086 | 0.311086 | 0 | 0.555386 | 0.124979 | 42,599 | 145 | 4,694 | 293.786207 | 0.055184 | 0.072044 | 0 | 0.452991 | 0 | 0 | 0.001975 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.059829 | false | 0 | 0.025641 | 0 | 0.145299 | 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 |
140a2191c38ca628e9b1554519485cf3548ce587 | 150 | py | Python | soundcard/argparser.py | sayRequil/soundcards | dfe3e7b2ccf22f40e2e240e5bc95f95755c670f4 | [
"MIT"
] | null | null | null | soundcard/argparser.py | sayRequil/soundcards | dfe3e7b2ccf22f40e2e240e5bc95f95755c670f4 | [
"MIT"
] | null | null | null | soundcard/argparser.py | sayRequil/soundcards | dfe3e7b2ccf22f40e2e240e5bc95f95755c670f4 | [
"MIT"
] | null | null | null | import sys
class ArgParser:
def getArgs():
return sys.args
def parser(self):
return self
def addArg(arr,n):
return "-" + n
| 12.5 | 20 | 0.593333 | 20 | 150 | 4.45 | 0.65 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.3 | 150 | 11 | 21 | 13.636364 | 0.847619 | 0 | 0 | 0 | 0 | 0 | 0.006667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0.125 | 0.375 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
1421395330e20fa1d82eb6b5e919159de66e929d | 214 | py | Python | sites/Pixiv/__init__.py | LufsX/nazurin | b2d7c0ce1146af6e27520361cdf4ca230b78a215 | [
"MIT"
] | null | null | null | sites/Pixiv/__init__.py | LufsX/nazurin | b2d7c0ce1146af6e27520361cdf4ca230b78a215 | [
"MIT"
] | null | null | null | sites/Pixiv/__init__.py | LufsX/nazurin | b2d7c0ce1146af6e27520361cdf4ca230b78a215 | [
"MIT"
] | 1 | 2020-10-30T19:27:56.000Z | 2020-10-30T19:27:56.000Z | """Pixiv site plugin."""
from .api import Pixiv
from .config import PRIORITY
from .commands import commands
from .interface import patterns, handle
__all__ = ['Pixiv', 'commands', 'PRIORITY', 'patterns', 'handle'] | 30.571429 | 65 | 0.738318 | 26 | 214 | 5.923077 | 0.5 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126168 | 214 | 7 | 65 | 30.571429 | 0.823529 | 0.084112 | 0 | 0 | 0 | 0 | 0.183246 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.8 | 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 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
14347f6d528126e1b0d72ca0d124b67bfb1db522 | 273 | py | Python | linecook/tests/test_patterns.py | tonysyu/linecook | fa7928347bb103d2ea1b25baefc23e5a11ff5d6c | [
"BSD-3-Clause"
] | null | null | null | linecook/tests/test_patterns.py | tonysyu/linecook | fa7928347bb103d2ea1b25baefc23e5a11ff5d6c | [
"BSD-3-Clause"
] | 9 | 2018-05-31T20:50:33.000Z | 2019-07-19T01:35:51.000Z | linecook/tests/test_patterns.py | tonysyu/linecook | fa7928347bb103d2ea1b25baefc23e5a11ff5d6c | [
"BSD-3-Clause"
] | null | null | null | from linecook import patterns
def test_any_of():
assert patterns.any_of("a", "b", "c") == r"(a|b|c)"
def test_bounded_word():
assert patterns.bounded_word("hello") == r"\bhello\b"
def test_exact_match():
assert patterns.exact_match("hello") == r"^hello$"
| 19.5 | 57 | 0.663004 | 42 | 273 | 4.095238 | 0.452381 | 0.122093 | 0.034884 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 273 | 13 | 58 | 21 | 0.744589 | 0 | 0 | 0 | 0 | 0 | 0.131868 | 0 | 0 | 0 | 0 | 0 | 0.428571 | 1 | 0.428571 | true | 0 | 0.142857 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
1466c04f032f5c06c7c3e088655a17f40aa65169 | 7,713 | py | Python | webrecorder/test/test_recs_api.py | gitter-badger/webrecorder | 9c4fc3b816a77f312ec864ca8598f7bbc1b41394 | [
"Apache-2.0"
] | 1 | 2021-01-01T21:32:53.000Z | 2021-01-01T21:32:53.000Z | webrecorder/test/test_recs_api.py | n0ncetonic/webrecorder | 7459a0f6bc162eec2d383bd908d82d95cdc15940 | [
"Apache-2.0"
] | null | null | null | webrecorder/test/test_recs_api.py | n0ncetonic/webrecorder | 7459a0f6bc162eec2d383bd908d82d95cdc15940 | [
"Apache-2.0"
] | null | null | null | import time
import os
from .testutils import FullStackTests
# ============================================================================
class TestWebRecRecAPI(FullStackTests):
def _anon_post(self, url, *args, **kwargs):
return self.testapp.post(url.format(user=self.anon_user), *args, **kwargs)
de... | 46.745455 | 146 | 0.623622 | 1,045 | 7,713 | 4.449761 | 0.107177 | 0.056774 | 0.049677 | 0.065376 | 0.811828 | 0.772903 | 0.703656 | 0.641505 | 0.589032 | 0.544516 | 0 | 0.044657 | 0.172566 | 7,713 | 164 | 147 | 47.030488 | 0.683955 | 0.047323 | 0 | 0.185185 | 0 | 0.009259 | 0.36974 | 0.138635 | 0 | 0 | 0 | 0 | 0.435185 | 1 | 0.194444 | false | 0 | 0.027778 | 0.027778 | 0.259259 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
14952922734e6eb5c10d76c8d8e56ccf9b7bf51c | 72 | py | Python | transformer_baselines/tasks/__init__.py | MilaNLProc/nlpb | 6407f5241e5184e296e7c2ddbf51daf3e1d8edf7 | [
"MIT"
] | 2 | 2021-06-10T14:42:07.000Z | 2021-06-15T19:30:12.000Z | transformer_baselines/tasks/__init__.py | MilaNLProc/transformer-baselines | 6407f5241e5184e296e7c2ddbf51daf3e1d8edf7 | [
"MIT"
] | null | null | null | transformer_baselines/tasks/__init__.py | MilaNLProc/transformer-baselines | 6407f5241e5184e296e7c2ddbf51daf3e1d8edf7 | [
"MIT"
] | null | null | null | from .classification import ClassificationTask
from .ner import NERTask
| 24 | 46 | 0.861111 | 8 | 72 | 7.75 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 72 | 2 | 47 | 36 | 0.96875 | 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 |
1af00a1f65543731bddb9b9ab36b416c32def47f | 3,953 | py | Python | VPLVisitor.py | lamhacker/VPL-Compiler | c54850f95342504e962b990c5cac17679e7069a9 | [
"Apache-2.0"
] | 2 | 2020-01-28T12:41:09.000Z | 2020-04-25T13:31:43.000Z | VPLVisitor.py | lamhacker/VPL-Compiler | c54850f95342504e962b990c5cac17679e7069a9 | [
"Apache-2.0"
] | null | null | null | VPLVisitor.py | lamhacker/VPL-Compiler | c54850f95342504e962b990c5cac17679e7069a9 | [
"Apache-2.0"
] | null | null | null | # Generated from VPL.g4 by ANTLR 4.7
from antlr4 import *
if __name__ is not None and "." in __name__:
from .VPLParser import VPLParser
else:
from VPLParser import VPLParser
# This class defines a complete generic visitor for a parse tree produced by VPLParser.
class VPLVisitor(ParseTreeVisitor):
# Visit... | 33.5 | 87 | 0.752846 | 434 | 3,953 | 6.817972 | 0.237327 | 0.04461 | 0.074349 | 0.133829 | 0.439 | 0.439 | 0.429199 | 0.417709 | 0.417709 | 0.417709 | 0 | 0.001233 | 0.17961 | 3,953 | 118 | 88 | 33.5 | 0.911193 | 0.322287 | 0 | 0.428571 | 1 | 0 | 0.00038 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | false | 0 | 0.061224 | 0.428571 | 0.938776 | 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 |
213678d22ab971b6d7443d1f8098633d1d5fca24 | 3,071 | py | Python | ooobuild/csslo/view/__init__.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | ooobuild/csslo/view/__init__.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | ooobuild/csslo/view/__init__.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
#
# Copyright 2022 :Barry-Thomas-Paul: Moss
#
# 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 applicab... | 62.673469 | 103 | 0.83621 | 409 | 3,071 | 6.136919 | 0.337408 | 0.076494 | 0.12749 | 0.074502 | 0.1 | 0.022709 | 0 | 0 | 0 | 0 | 0 | 0.003246 | 0.097037 | 3,071 | 48 | 104 | 63.979167 | 0.901911 | 0.187561 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0.40625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 4 |
2144cd7eea60aa5161075deb53b0b1b482c7e63b | 6,082 | py | Python | PyTrinamic/examples/evalboards/TMC5031/TMC5031_eval_register_dump.py | trinamic-AA/PyTrinamic | b054f4baae8eb6d3f5d2574cf69c232f66abb4ee | [
"MIT"
] | 37 | 2019-01-13T11:08:45.000Z | 2022-03-25T07:18:15.000Z | PyTrinamic/examples/evalboards/TMC5031/TMC5031_eval_register_dump.py | AprDec/PyTrinamic | a9db10071f8fbeebafecb55c619e5893757dd0ce | [
"MIT"
] | 56 | 2019-02-25T02:48:27.000Z | 2022-03-31T08:45:34.000Z | PyTrinamic/examples/evalboards/TMC5031/TMC5031_eval_register_dump.py | AprDec/PyTrinamic | a9db10071f8fbeebafecb55c619e5893757dd0ce | [
"MIT"
] | 26 | 2019-01-14T05:20:16.000Z | 2022-03-08T13:27:35.000Z | #!/usr/bin/env python3
'''
Dump all register values of the TMC5031 IC.
The connection to a Landungsbrücke is established over USB. TMCL commands are
used for communicating with the IC.
Created on 29.01.2020
@author: JM
'''
import PyTrinamic
from PyTrinamic.connections.ConnectionManager import ConnectionManager
from... | 69.908046 | 99 | 0.745807 | 849 | 6,082 | 5.228504 | 0.110718 | 0.039874 | 0.079748 | 0.159495 | 0.718856 | 0.718856 | 0.718856 | 0.718856 | 0.665916 | 0.050462 | 0 | 0.154435 | 0.076948 | 6,082 | 87 | 100 | 69.908046 | 0.636266 | 0.035515 | 0 | 0 | 0 | 0 | 0.251749 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.044776 | 0 | 0.044776 | 0.880597 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
dcd16236a48192d6b0bbc066bc05dce0f6e838c0 | 138 | py | Python | examples/no_end_MPI_loop_test.py | hamish2014/batchOpenMPI | 4e573c4bd84ae0ac88d18f96e90680bc9179a9d2 | [
"MIT"
] | null | null | null | examples/no_end_MPI_loop_test.py | hamish2014/batchOpenMPI | 4e573c4bd84ae0ac88d18f96e90680bc9179a9d2 | [
"MIT"
] | null | null | null | examples/no_end_MPI_loop_test.py | hamish2014/batchOpenMPI | 4e573c4bd84ae0ac88d18f96e90680bc9179a9d2 | [
"MIT"
] | 1 | 2021-01-14T04:53:58.000Z | 2021-01-14T04:53:58.000Z | import batchOpenMPI
batchOpenMPI.begin_MPI_loop()
print('Basic test to see if mpirun hangs is no end_MPI_loop is called on the master')
| 23 | 85 | 0.804348 | 24 | 138 | 4.458333 | 0.833333 | 0.130841 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144928 | 138 | 5 | 86 | 27.6 | 0.90678 | 0 | 0 | 0 | 0 | 0 | 0.550725 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
dcd704d81482a7cb63651b9e05b60c97523ea94a | 301 | py | Python | bot/classes/__init__.py | monkeydg/POG-bot | 97ced2c4b8f8709887b3d0828484e1dd1128dc1f | [
"MIT"
] | 2 | 2020-09-24T14:56:50.000Z | 2021-04-15T16:12:36.000Z | bot/classes/__init__.py | monkeydg/POG-bot | 97ced2c4b8f8709887b3d0828484e1dd1128dc1f | [
"MIT"
] | 12 | 2021-04-28T15:33:34.000Z | 2022-03-29T10:10:05.000Z | bot/classes/__init__.py | monkeydg/POG-bot | 97ced2c4b8f8709887b3d0828484e1dd1128dc1f | [
"MIT"
] | 6 | 2020-08-01T13:38:40.000Z | 2020-08-14T20:35:17.000Z | from .accounts import Account
from .bases import Base
from .players import Player, ActivePlayer, CharNotFound, CharAlreadyExists, CharInvalidWorld, CharMissingFaction
from .weapons import Weapon
from .teams import Team
from .stats import PlayerStat
from .scores import TeamScore, PlayerScore, Loadout
| 37.625 | 112 | 0.837209 | 35 | 301 | 7.2 | 0.657143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116279 | 301 | 7 | 113 | 43 | 0.947368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
dcdaf7c2e2ffd343fded4420e627d43ad5320759 | 104 | py | Python | healthcom/betterhealth/apps.py | qaifikhan/django-ecommerce-website | 6781dddc3ce4dacfb036411514f2876cccabf618 | [
"MIT"
] | 1 | 2022-03-26T01:12:45.000Z | 2022-03-26T01:12:45.000Z | healthcom/betterhealth/apps.py | qaifikhan/django-ecommerce-website | 6781dddc3ce4dacfb036411514f2876cccabf618 | [
"MIT"
] | null | null | null | healthcom/betterhealth/apps.py | qaifikhan/django-ecommerce-website | 6781dddc3ce4dacfb036411514f2876cccabf618 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class BetterhealthConfig(AppConfig):
name = 'betterhealth'
| 17.333333 | 37 | 0.740385 | 10 | 104 | 7.7 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192308 | 104 | 5 | 38 | 20.8 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0.121212 | 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 |
dce886482b7dbb2f6a620b20e40549d3044dd4fa | 135 | py | Python | exercicios/ex003.py | DeyvisonR/curso_python | 983b634d39f542369628ae48c7449ea75fd1ebbd | [
"MIT"
] | null | null | null | exercicios/ex003.py | DeyvisonR/curso_python | 983b634d39f542369628ae48c7449ea75fd1ebbd | [
"MIT"
] | null | null | null | exercicios/ex003.py | DeyvisonR/curso_python | 983b634d39f542369628ae48c7449ea75fd1ebbd | [
"MIT"
] | null | null | null | n1 = int(input('digite um número: '))
n2 = int(input('digite outro número: '))
print('a soma de {} + {} = {}'.format(n1, n2, n1 + n2))
| 33.75 | 55 | 0.57037 | 21 | 135 | 3.666667 | 0.619048 | 0.207792 | 0.363636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054054 | 0.177778 | 135 | 3 | 56 | 45 | 0.63964 | 0 | 0 | 0 | 0 | 0 | 0.451852 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 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 |
dcf500f23bb6a1dce3bfd76b6fd1d156227d34c2 | 319 | py | Python | file_food.py | JakubCzech/Snake_pygame | c26ff7749244014a80e4dcf3ea7bacc714a1b052 | [
"MIT"
] | null | null | null | file_food.py | JakubCzech/Snake_pygame | c26ff7749244014a80e4dcf3ea7bacc714a1b052 | [
"MIT"
] | null | null | null | file_food.py | JakubCzech/Snake_pygame | c26ff7749244014a80e4dcf3ea7bacc714a1b052 | [
"MIT"
] | null | null | null | class _Food:
color = (107, 0, 0)
def __init__(self, pos_x, pos_y, live = 100):
self.pos_x = pos_x
self.pos_y = pos_y
self.live = live
def get_pos_x(self):
return self.pos_x
def get_pos_y(self):
return self.pos_y
def live_decrement(self):
self.live -=1 | 26.583333 | 49 | 0.576803 | 53 | 319 | 3.132075 | 0.320755 | 0.210843 | 0.144578 | 0.13253 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041475 | 0.319749 | 319 | 12 | 50 | 26.583333 | 0.723502 | 0 | 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 |
b4ce0277a10f0fbbe2ba02fa453e2a4a15185b3c | 69 | py | Python | pseudoslam/envs/__init__.py | HaojieSHI98/HouseExpo | 2a2388e6e38e9698390e35fcf54e7ff00cd34253 | [
"MIT"
] | null | null | null | pseudoslam/envs/__init__.py | HaojieSHI98/HouseExpo | 2a2388e6e38e9698390e35fcf54e7ff00cd34253 | [
"MIT"
] | null | null | null | pseudoslam/envs/__init__.py | HaojieSHI98/HouseExpo | 2a2388e6e38e9698390e35fcf54e7ff00cd34253 | [
"MIT"
] | null | null | null | # from pseudoslam.envs.robot_exploration_v0 import RobotExplorationT0 | 69 | 69 | 0.898551 | 8 | 69 | 7.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030769 | 0.057971 | 69 | 1 | 69 | 69 | 0.892308 | 0.971014 | 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 |
b4d86ffd8b842855d630411c14ff879a81d80b1d | 39 | py | Python | ecasb2share/tests/__init__.py | statiksof/ECAS-B2SHARE | bdaf939877e78a3f847c56f5d6bc5077b6dea719 | [
"MIT"
] | 1 | 2021-05-19T09:33:21.000Z | 2021-05-19T09:33:21.000Z | ecasb2share/tests/__init__.py | statiksof/ECAS-B2SHARE | bdaf939877e78a3f847c56f5d6bc5077b6dea719 | [
"MIT"
] | null | null | null | ecasb2share/tests/__init__.py | statiksof/ECAS-B2SHARE | bdaf939877e78a3f847c56f5d6bc5077b6dea719 | [
"MIT"
] | 1 | 2019-09-03T15:28:18.000Z | 2019-09-03T15:28:18.000Z | all = ["ecas_b2share_test", "tests.py"] | 39 | 39 | 0.692308 | 6 | 39 | 4.166667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027778 | 0.076923 | 39 | 1 | 39 | 39 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
370221d857ff76f741440f2985caaabd4680951b | 233 | py | Python | lib/plugs/ms_teams.py | bankova-gabriella/layer | 87feadbca7bcb935b91e1a4b29fd15ea26103075 | [
"MIT"
] | null | null | null | lib/plugs/ms_teams.py | bankova-gabriella/layer | 87feadbca7bcb935b91e1a4b29fd15ea26103075 | [
"MIT"
] | null | null | null | lib/plugs/ms_teams.py | bankova-gabriella/layer | 87feadbca7bcb935b91e1a4b29fd15ea26103075 | [
"MIT"
] | null | null | null | import pymsteams
def send_message(message, webhook):
pymsteams.connectorcard(webhook).text(message).send()
class MSTeamsAPI:
def __init__(self, layer):
self.layer = layer
self.send_message = send_message
| 17.923077 | 57 | 0.708155 | 27 | 233 | 5.851852 | 0.481481 | 0.208861 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.197425 | 233 | 12 | 58 | 19.416667 | 0.84492 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0 | 0.571429 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
37315b5d14bcf141134b361b3e912811908e46c4 | 2,029 | py | Python | rbig_jax/transforms/rotation.py | alexhepburn/rbig_jax | 706dd60d2049071be0fb3d311c83719121854678 | [
"MIT"
] | null | null | null | rbig_jax/transforms/rotation.py | alexhepburn/rbig_jax | 706dd60d2049071be0fb3d311c83719121854678 | [
"MIT"
] | null | null | null | rbig_jax/transforms/rotation.py | alexhepburn/rbig_jax | 706dd60d2049071be0fb3d311c83719121854678 | [
"MIT"
] | null | null | null | import collections
import jax.numpy as np
from chex import Array, dataclass
RotParams = collections.namedtuple("Params", ["rotation"])
@dataclass
class RotationParams:
rotation: Array
def InitPCARotation():
# create marginal functions
# TODO a bin initialization function
def init_func(inputs):
... | 21.585106 | 70 | 0.674717 | 255 | 2,029 | 5.258824 | 0.364706 | 0.0522 | 0.032811 | 0.049217 | 0.126771 | 0.108874 | 0.06264 | 0.06264 | 0.06264 | 0 | 0 | 0.001923 | 0.231148 | 2,029 | 93 | 71 | 21.817204 | 0.857692 | 0.299162 | 0 | 0 | 0 | 0 | 0.010448 | 0 | 0 | 0 | 0 | 0.010753 | 0 | 1 | 0.30303 | false | 0 | 0.090909 | 0.151515 | 0.757576 | 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 |
2ea0238b14782cb3e094011ef1c051b77ec10584 | 254 | py | Python | QUANTAXIS/QAPubSub/declaters.py | B34nK0/QUANTAXIS | 94162f0f863682e443ef8ae11f5b54da6f93421b | [
"MIT"
] | 6,322 | 2017-03-22T09:34:20.000Z | 2022-03-31T05:26:45.000Z | QUANTAXIS/QAPubSub/declaters.py | B34nK0/QUANTAXIS | 94162f0f863682e443ef8ae11f5b54da6f93421b | [
"MIT"
] | 690 | 2018-01-02T06:44:54.000Z | 2022-03-25T02:06:22.000Z | QUANTAXIS/QAPubSub/declaters.py | B34nK0/QUANTAXIS | 94162f0f863682e443ef8ae11f5b54da6f93421b | [
"MIT"
] | 2,183 | 2018-01-02T10:32:10.000Z | 2022-03-30T00:57:31.000Z | #app = faust.App('myapp', broker='kafka://localhost')
class QUANTAXIS_PUBSUBER():
def __init__(self, name, broker='rabbitmq://localhost'):
self.exchange = name
#@app.agent(value_type=Order)
def agent(value_type=order):
pass | 25.4 | 60 | 0.65748 | 31 | 254 | 5.16129 | 0.645161 | 0.125 | 0.175 | 0.2375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185039 | 254 | 10 | 61 | 25.4 | 0.772947 | 0.314961 | 0 | 0 | 0 | 0 | 0.115607 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0.2 | 0 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
2ea2829ec0b4ab38dc154e67194b2a306fc916d8 | 74 | py | Python | TestModule/__init__.py | Oreder/PythonSelfStudy | 64c774ef469dcede6f653ab8eafd3edc83452876 | [
"MIT"
] | 1 | 2017-07-28T03:42:29.000Z | 2017-07-28T03:42:29.000Z | TestModule/__init__.py | Oreder/PythonSelfStudy | 64c774ef469dcede6f653ab8eafd3edc83452876 | [
"MIT"
] | null | null | null | TestModule/__init__.py | Oreder/PythonSelfStudy | 64c774ef469dcede6f653ab8eafd3edc83452876 | [
"MIT"
] | null | null | null | from Tsum import Tsum
from Tproduct import Tproduct
from Tmin import Tmin
| 18.5 | 29 | 0.837838 | 12 | 74 | 5.166667 | 0.416667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162162 | 74 | 3 | 30 | 24.666667 | 1 | 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 |
2ecbcd758794560413da872c7ab57b328502922f | 1,090 | py | Python | utils/exceptions/hots_exceptions.py | fennr/Samuro-HotsBot | 81e7a65a08d50602442094e52d6d2e405c98ac1a | [
"Apache-2.0"
] | 1 | 2022-03-26T11:28:00.000Z | 2022-03-26T11:28:00.000Z | utils/exceptions/hots_exceptions.py | fennr/Samuro-HotsBot | 81e7a65a08d50602442094e52d6d2e405c98ac1a | [
"Apache-2.0"
] | null | null | null | utils/exceptions/hots_exceptions.py | fennr/Samuro-HotsBot | 81e7a65a08d50602442094e52d6d2e405c98ac1a | [
"Apache-2.0"
] | null | null | null | from utils.library import files
config = files.get_yaml("config.yaml")
class HotsException(Exception):
"""Базовый класс для других исключений"""
def __init__(self, *args):
if args:
self.message = args[0]
else:
self.message = None
def __str__(self):
if sel... | 20.961538 | 54 | 0.637615 | 118 | 1,090 | 5.644068 | 0.466102 | 0.099099 | 0.09009 | 0.165165 | 0.258258 | 0.09009 | 0.09009 | 0.09009 | 0 | 0 | 0 | 0.001263 | 0.273395 | 1,090 | 51 | 55 | 21.372549 | 0.839646 | 0.03211 | 0 | 0.333333 | 0 | 0 | 0.194471 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.212121 | false | 0.030303 | 0.030303 | 0.121212 | 0.69697 | 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 |
2ecfcab69dfdfc819a75810740ff4f8a3aac169c | 279 | py | Python | Python/Py4e/ForLoops/test7.py | Cryptoniac/Challenge | fcb2f685c21bd84c1ef0924e5f0026bd2961c772 | [
"MIT"
] | null | null | null | Python/Py4e/ForLoops/test7.py | Cryptoniac/Challenge | fcb2f685c21bd84c1ef0924e5f0026bd2961c772 | [
"MIT"
] | null | null | null | Python/Py4e/ForLoops/test7.py | Cryptoniac/Challenge | fcb2f685c21bd84c1ef0924e5f0026bd2961c772 | [
"MIT"
] | null | null | null | # How to Find the Smallest value
largest_so_far = -1
print('Before', largest_so_far)
for the_num in [1, 99, 24, 25, 56, 4, 57, 89, 5, 94, 21] :
if the_num > largest_so_far :
largest_so_far = the_num
print(largest_so_far, the_num)
print('After', largest_so_far)
| 25.363636 | 58 | 0.681004 | 52 | 279 | 3.346154 | 0.519231 | 0.310345 | 0.413793 | 0.172414 | 0.264368 | 0.264368 | 0 | 0 | 0 | 0 | 0 | 0.09009 | 0.204301 | 279 | 10 | 59 | 27.9 | 0.693694 | 0.107527 | 0 | 0 | 0 | 0 | 0.044534 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
2ee33cda70fdc114d328316e62c2f4c265e76a48 | 269 | py | Python | SimPEG/EM/Static/SIP/__init__.py | rolandhill/simpeg | 92d220e55d3d280b44e4cbcbddc42d57a974ca94 | [
"MIT"
] | 3 | 2020-11-27T03:18:28.000Z | 2022-03-18T01:29:58.000Z | SimPEG/EM/Static/SIP/__init__.py | visiope/simpeg | 94295102afc664c001f77c88f902772e06a467c0 | [
"MIT"
] | null | null | null | SimPEG/EM/Static/SIP/__init__.py | visiope/simpeg | 94295102afc664c001f77c88f902772e06a467c0 | [
"MIT"
] | 1 | 2021-03-21T09:54:33.000Z | 2021-03-21T09:54:33.000Z | from .ProblemSIP import Problem3D_CC, Problem3D_N
from .ProblemSIP_2D import Problem2D_CC, Problem2D_N
from .SurveySIP import Survey, Data, from_dc_to_sip_survey
from . import SrcSIP as Src
from . import RxSIP as Rx
from .Run import run_inversion, spectral_ip_mappings
| 38.428571 | 58 | 0.836431 | 43 | 269 | 4.953488 | 0.55814 | 0.131455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021186 | 0.122677 | 269 | 6 | 59 | 44.833333 | 0.881356 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2eebf9d0b2af41b49e718e4c649b529b01b0197d | 86 | py | Python | gen_doc/serializers/__init__.py | Shchusia/gen_doc | 216b561fc973c5565a78348c5b0b3db58f84442f | [
"Unlicense"
] | null | null | null | gen_doc/serializers/__init__.py | Shchusia/gen_doc | 216b561fc973c5565a78348c5b0b3db58f84442f | [
"Unlicense"
] | null | null | null | gen_doc/serializers/__init__.py | Shchusia/gen_doc | 216b561fc973c5565a78348c5b0b3db58f84442f | [
"Unlicense"
] | null | null | null | """
import serializers
"""
from .python_doc_serializer import PythonDocSerializer
| 17.2 | 55 | 0.77907 | 8 | 86 | 8.125 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.139535 | 86 | 4 | 56 | 21.5 | 0.878378 | 0.209302 | 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 |
2ef5882420676c5bd5f9b951f60d381d3d815bcb | 238 | py | Python | handlers/routes.py | alanwilter/flask-pytest-example | d9aa421aa4dd57633ec1f969db3d501a19b4725b | [
"MIT"
] | null | null | null | handlers/routes.py | alanwilter/flask-pytest-example | d9aa421aa4dd57633ec1f969db3d501a19b4725b | [
"MIT"
] | null | null | null | handlers/routes.py | alanwilter/flask-pytest-example | d9aa421aa4dd57633ec1f969db3d501a19b4725b | [
"MIT"
] | null | null | null | from flask import jsonify
from pytest_cov.embed import cleanup_on_sigterm
cleanup_on_sigterm()
def configure_routes(app):
@app.route("/")
def hello_world():
return jsonify(
message="Hello World",
)
| 17 | 47 | 0.659664 | 29 | 238 | 5.172414 | 0.655172 | 0.12 | 0.213333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.247899 | 238 | 13 | 48 | 18.307692 | 0.837989 | 0 | 0 | 0 | 0 | 0 | 0.05042 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0.111111 | 0.555556 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
2c1653bf315258bfcf256ea59e352aee8e027b90 | 153 | py | Python | Module/module_1479092252_68.py | quanyang/Taint-em-All | 2ee5d26fec2cd11c10e8a3826a6e2bc94ec57c14 | [
"Apache-2.0"
] | 7 | 2019-06-11T10:40:09.000Z | 2022-02-18T09:23:03.000Z | Module/module_1479092252_68.py | quanyang/Taint-em-All | 2ee5d26fec2cd11c10e8a3826a6e2bc94ec57c14 | [
"Apache-2.0"
] | 1 | 2020-03-10T02:56:41.000Z | 2021-10-01T20:45:56.000Z | Module/module_1479092252_68.py | quanyang/Taint-em-All | 2ee5d26fec2cd11c10e8a3826a6e2bc94ec57c14 | [
"Apache-2.0"
] | 4 | 2019-06-03T16:50:49.000Z | 2020-07-24T11:37:06.000Z | from Visitor.Visitor import Visitor
from Model.Node import *
name = "Module Name"
prereq = None
class ModuleName(Visitor):
def __init__(self):
pass | 21.857143 | 35 | 0.751634 | 21 | 153 | 5.285714 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163399 | 153 | 7 | 36 | 21.857143 | 0.867188 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.142857 | 0.285714 | 0 | 0.571429 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
2c2365714cdd12cc597645773769a037a567e0c1 | 958 | py | Python | procurebd_api/serializers.py | FarishtaJayas/HackNSU-2.0 | c49fe1d57cc512266e1208eb8ad6d62ddbac8743 | [
"MIT"
] | null | null | null | procurebd_api/serializers.py | FarishtaJayas/HackNSU-2.0 | c49fe1d57cc512266e1208eb8ad6d62ddbac8743 | [
"MIT"
] | null | null | null | procurebd_api/serializers.py | FarishtaJayas/HackNSU-2.0 | c49fe1d57cc512266e1208eb8ad6d62ddbac8743 | [
"MIT"
] | 1 | 2020-10-04T06:35:37.000Z | 2020-10-04T06:35:37.000Z | from rest_framework import serializers
from procurebd_api.models import *
class UserSerializer(serializers.ModelSerializer):
class Meta:
model = ProfileUser
#fields = ('name', 'ranking')
fields = '__all__'
class ItemSerializer(serializers.ModelSerializer):
... | 18.784314 | 57 | 0.591858 | 73 | 958 | 7.410959 | 0.369863 | 0.288355 | 0.343808 | 0.38817 | 0.513863 | 0.218115 | 0.218115 | 0.218115 | 0.218115 | 0 | 0 | 0 | 0.340292 | 958 | 51 | 58 | 18.784314 | 0.856013 | 0.029228 | 0 | 0.538462 | 0 | 0 | 0.045161 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.538462 | 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 |
2c2c29894434e90b95537fe9210617ea432687f4 | 231 | py | Python | delta_migrations/__init__.py | magrathj/delta-migrations | 34021d25182bc04b1fa879dd07012e222e53d418 | [
"CC0-1.0"
] | 1 | 2021-12-07T18:31:25.000Z | 2021-12-07T18:31:25.000Z | delta_migrations/__init__.py | magrathj/delta-migrations | 34021d25182bc04b1fa879dd07012e222e53d418 | [
"CC0-1.0"
] | null | null | null | delta_migrations/__init__.py | magrathj/delta-migrations | 34021d25182bc04b1fa879dd07012e222e53d418 | [
"CC0-1.0"
] | null | null | null |
import click
from . import app
from .runner import DeltaMigrationRunner
from .helper import DeltaMigrationHelper
@click.group()
def cli():
pass
cli.add_command(app.create_migration_dir)
if __name__ == "__main__":
cli() | 15.4 | 41 | 0.753247 | 29 | 231 | 5.62069 | 0.689655 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155844 | 231 | 15 | 42 | 15.4 | 0.835897 | 0 | 0 | 0 | 0 | 0 | 0.034632 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | true | 0.1 | 0.4 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 4 |
2596b9db7d13eef7ac97d5bf1635ada140b1a48f | 83,747 | py | Python | tests/test_plotting.py | tillbiskup/aspecd | 5c7d7ceb9ec3eb97d01348c0495adc999c7af78a | [
"BSD-2-Clause"
] | 2 | 2021-03-16T05:26:12.000Z | 2021-11-27T18:08:22.000Z | tests/test_plotting.py | tillbiskup/aspecd | 5c7d7ceb9ec3eb97d01348c0495adc999c7af78a | [
"BSD-2-Clause"
] | null | null | null | tests/test_plotting.py | tillbiskup/aspecd | 5c7d7ceb9ec3eb97d01348c0495adc999c7af78a | [
"BSD-2-Clause"
] | null | null | null | """Tests for plotting."""
import contextlib
import io
import warnings
import matplotlib.axes
import matplotlib.collections
import matplotlib.figure
import matplotlib.legend
import matplotlib.lines
import matplotlib.pyplot as plt
import numpy as np
import os
import unittest
import aspecd.exceptions
from aspecd import ... | 40.089517 | 79 | 0.665636 | 9,974 | 83,747 | 5.367856 | 0.041007 | 0.077047 | 0.028857 | 0.028036 | 0.858682 | 0.81124 | 0.758774 | 0.695755 | 0.65117 | 0.612955 | 0 | 0.012866 | 0.217608 | 83,747 | 2,088 | 80 | 40.108716 | 0.804237 | 0.002388 | 0 | 0.638173 | 0 | 0 | 0.030561 | 0 | 0.003513 | 0 | 0 | 0 | 0.183841 | 1 | 0.199649 | false | 0.015222 | 0.008197 | 0.003513 | 0.230094 | 0.001756 | 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 |
25a32f1abb2c01196af44a83c31be5d591504608 | 1,353 | py | Python | file_sync_tool/utility/info.py | jackd248/file-sync-tool | 68fbca562f232c2bc064f546d9eade20a2ae456f | [
"MIT"
] | null | null | null | file_sync_tool/utility/info.py | jackd248/file-sync-tool | 68fbca562f232c2bc064f546d9eade20a2ae456f | [
"MIT"
] | null | null | null | file_sync_tool/utility/info.py | jackd248/file-sync-tool | 68fbca562f232c2bc064f546d9eade20a2ae456f | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: future_fstrings -*-
from db_sync_tool.utility import output
from file_sync_tool import info
def print_header(mute):
"""
Printing console header
:param mute: Boolean
:return:
"""
if mute is False:
print(output.CliFormat.BLACK + '####################... | 36.567568 | 169 | 0.510717 | 117 | 1,353 | 5.760684 | 0.350427 | 0.356083 | 0.237389 | 0.259644 | 0.514837 | 0.514837 | 0.514837 | 0.449555 | 0.449555 | 0.449555 | 0 | 0.00107 | 0.308943 | 1,353 | 37 | 170 | 36.567568 | 0.719786 | 0.103474 | 0 | 0.2 | 0 | 0 | 0.261538 | 0.078632 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.2 | 0.45 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
25e622333a681cf71cc870657dee7b877b8dfe7e | 1,165 | py | Python | iok.py | bangyen/i-ok | 911439d6b38688e669a4db1b5f85d7beedae2380 | [
"MIT"
] | null | null | null | iok.py | bangyen/i-ok | 911439d6b38688e669a4db1b5f85d7beedae2380 | [
"MIT"
] | null | null | null | iok.py | bangyen/i-ok | 911439d6b38688e669a4db1b5f85d7beedae2380 | [
"MIT"
] | null | null | null | def run():
file = "main.iok"
file = open(file, "r")
script = file.read()
file.close()
script = script.split(" ")
res = 0
a = 16
for char in script:
if char == "i+":
res += 1
elif char == "i-":
res -= 1
elif char == "i*":
res *= 2
elif char == "i/":
res /= 2
... | 17.923077 | 32 | 0.399142 | 173 | 1,165 | 2.687861 | 0.248555 | 0.301075 | 0.212903 | 0.258065 | 0.15914 | 0.15914 | 0.15914 | 0.15914 | 0.111828 | 0.111828 | 0 | 0.041311 | 0.397425 | 1,165 | 64 | 33 | 18.203125 | 0.621083 | 0 | 0 | 0.03125 | 0 | 0 | 0.044309 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.015625 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
25e6d0e44ab50915306042aa09f692f391b5c374 | 85 | py | Python | application/utils/globals.py | topix-hackademy/social-listener | ce00a0ff6bd699b7941aaf92b17df378dac1633b | [
"MIT"
] | 12 | 2016-12-16T09:43:37.000Z | 2022-01-30T05:49:14.000Z | application/utils/globals.py | topix-hackademy/social-listener | ce00a0ff6bd699b7941aaf92b17df378dac1633b | [
"MIT"
] | 2 | 2016-12-20T17:35:38.000Z | 2016-12-21T09:18:02.000Z | application/utils/globals.py | topix-hackademy/social-listener | ce00a0ff6bd699b7941aaf92b17df378dac1633b | [
"MIT"
] | 3 | 2017-07-02T10:01:54.000Z | 2021-01-03T01:58:01.000Z | configuration = None
def init():
global configuration
configuration = None
| 12.142857 | 24 | 0.705882 | 8 | 85 | 7.5 | 0.625 | 0.566667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.235294 | 85 | 6 | 25 | 14.166667 | 0.923077 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
d302e5431ed2aa5cd6224ddb6ba47f9bd01907df | 56 | py | Python | behave_graph/__main__.py | jenmud/behave-graph | d2a1fc819a424de2c1df41223fb468299023c25d | [
"MIT"
] | 2 | 2021-04-21T23:02:10.000Z | 2021-08-05T07:12:27.000Z | behave_graph/__main__.py | jenmud/behave-graph | d2a1fc819a424de2c1df41223fb468299023c25d | [
"MIT"
] | null | null | null | behave_graph/__main__.py | jenmud/behave-graph | d2a1fc819a424de2c1df41223fb468299023c25d | [
"MIT"
] | null | null | null | """
Run main.
"""
from behave_graph import main
main()
| 8 | 29 | 0.660714 | 8 | 56 | 4.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.178571 | 56 | 6 | 30 | 9.333333 | 0.782609 | 0.160714 | 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 |
d331c678aca994216f5d1dcb47142fe48db773b8 | 212 | py | Python | GPy/mappings/__init__.py | strongh/GPy | 775ce9e64c1e8f472083b8f2430134047d97b2fa | [
"BSD-3-Clause"
] | 1 | 2015-08-06T13:47:10.000Z | 2015-08-06T13:47:10.000Z | GPy/mappings/__init__.py | strongh/GPy | 775ce9e64c1e8f472083b8f2430134047d97b2fa | [
"BSD-3-Clause"
] | null | null | null | GPy/mappings/__init__.py | strongh/GPy | 775ce9e64c1e8f472083b8f2430134047d97b2fa | [
"BSD-3-Clause"
] | 1 | 2021-12-09T01:31:17.000Z | 2021-12-09T01:31:17.000Z | # Copyright (c) 2013, 2014 GPy authors (see AUTHORS.txt).
# Licensed under the BSD 3-clause license (see LICENSE.txt)
from kernel import Kernel
from linear import Linear
from mlp import MLP
#from rbf import RBF
| 26.5 | 59 | 0.768868 | 35 | 212 | 4.657143 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050847 | 0.165094 | 212 | 7 | 60 | 30.285714 | 0.870057 | 0.622642 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
d33499f42b9fe4b998baa8b6f65e9b0519fae5f7 | 24 | py | Python | acerezoc/conditional.py | acerezoc/Programming_with_python_2021 | f6dedfb2c9e033c1a6c291a2464d179f2fe75400 | [
"Apache-2.0"
] | null | null | null | acerezoc/conditional.py | acerezoc/Programming_with_python_2021 | f6dedfb2c9e033c1a6c291a2464d179f2fe75400 | [
"Apache-2.0"
] | null | null | null | acerezoc/conditional.py | acerezoc/Programming_with_python_2021 | f6dedfb2c9e033c1a6c291a2464d179f2fe75400 | [
"Apache-2.0"
] | null | null | null | my_city_name = "Madrid" | 24 | 24 | 0.75 | 4 | 24 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 24 | 1 | 24 | 24 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0.24 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
d348140644e4e2f06512f1a9d84571e30a747e3d | 832 | py | Python | musicscore/musicxml/types/complextypes/emptyline.py | alexgorji/music_score | b4176da52295361f3436826903485c5cb8054c5e | [
"MIT"
] | 2 | 2020-06-22T13:33:28.000Z | 2020-12-30T15:09:00.000Z | musicscore/musicxml/types/complextypes/emptyline.py | alexgorji/music_score | b4176da52295361f3436826903485c5cb8054c5e | [
"MIT"
] | 37 | 2020-02-18T12:15:00.000Z | 2021-12-13T20:01:14.000Z | musicscore/musicxml/types/complextypes/emptyline.py | alexgorji/music_score | b4176da52295361f3436826903485c5cb8054c5e | [
"MIT"
] | null | null | null | from musicscore.musicxml.attributes.dahsedformatting import DashedFormatting
from musicscore.musicxml.attributes.linelength import LineLength
from musicscore.musicxml.attributes.lineshape import LineShape
from musicscore.musicxml.attributes.linetype import LineType
from musicscore.musicxml.attributes.placement import P... | 52 | 114 | 0.81851 | 93 | 832 | 7.236559 | 0.419355 | 0.145617 | 0.228826 | 0.28529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09976 | 832 | 15 | 115 | 55.466667 | 0.898531 | 0.174279 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.7 | 0 | 0.9 | 0.1 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
d35035b3bfb8c2bd167fae919f0a0f902fa01bee | 1,086 | py | Python | MiscScipts/CarInfo.py | nevileone/CarHackingTools | a549ccb7a3b55e03ba157a98329b4ee72d8d89ea | [
"MIT"
] | 496 | 2018-07-31T06:51:05.000Z | 2022-03-31T22:15:38.000Z | MiscScipts/CarInfo.py | pentestbr/CarHackingTools | a82baee3c17a54e22000eb0b06d081e85d705fba | [
"MIT"
] | 4 | 2018-08-26T17:58:10.000Z | 2021-05-20T12:37:14.000Z | MiscScipts/CarInfo.py | pentestbr/CarHackingTools | a82baee3c17a54e22000eb0b06d081e85d705fba | [
"MIT"
] | 127 | 2018-08-06T16:35:41.000Z | 2022-02-02T18:21:15.000Z | #!/usr/bin/env python
import sys
import time
import obd
import json
import os
if len(sys.argv) == 1:
connection = obd.OBD()
else:
connection = obd.OBD(sys.argv[1])
os.system('clear')
while True:
print 'Car Information: '
print 'Speed : ' + \
str(connection.query(obd.commands.SPEED).value.to("... | 31.028571 | 79 | 0.662063 | 143 | 1,086 | 4.979021 | 0.363636 | 0.146067 | 0.202247 | 0.235955 | 0.393258 | 0.092697 | 0 | 0 | 0 | 0 | 0 | 0.003386 | 0.184162 | 1,086 | 34 | 80 | 31.941176 | 0.800226 | 0.018416 | 0 | 0.133333 | 0 | 0 | 0.166197 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | null | null | 0.433333 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
d381828768aaf1a88f807987b47953e726900742 | 567 | py | Python | jarvis/resume/migrations/0016_auto_20170522_0534.py | Anubhav722/blahblah | 160698e06a02e671ac40de3113cd37d642e72e96 | [
"MIT"
] | 1 | 2019-01-03T06:10:04.000Z | 2019-01-03T06:10:04.000Z | jarvis/resume/migrations/0016_auto_20170522_0534.py | Anubhav722/blahblah | 160698e06a02e671ac40de3113cd37d642e72e96 | [
"MIT"
] | 1 | 2021-03-31T19:11:52.000Z | 2021-03-31T19:11:52.000Z | jarvis/resume/migrations/0016_auto_20170522_0534.py | Anubhav722/blahblah | 160698e06a02e671ac40de3113cd37d642e72e96 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2017-05-22 05:34
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('resume', '0015_auto_20170512_0749'),
]
operations = [
migrations.RemoveField(
model_name='resume',
... | 20.25 | 48 | 0.539683 | 52 | 567 | 5.769231 | 0.615385 | 0.21 | 0.26 | 0.3 | 0.4 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0.087766 | 0.336861 | 567 | 27 | 49 | 21 | 0.710106 | 0.119929 | 0 | 0.473684 | 1 | 0 | 0.147177 | 0.046371 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.210526 | 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 |
d38461a3a750c6f6cc1a2e21a9a751bf5aef6c40 | 59 | py | Python | code/nikkei2019_qual_a_02.py | KoyanagiHitoshi/AtCoder | 731892543769b5df15254e1f32b756190378d292 | [
"MIT"
] | 3 | 2019-08-16T16:55:48.000Z | 2021-04-11T10:21:40.000Z | code/nikkei2019_qual_a_02.py | KoyanagiHitoshi/AtCoder | 731892543769b5df15254e1f32b756190378d292 | [
"MIT"
] | null | null | null | code/nikkei2019_qual_a_02.py | KoyanagiHitoshi/AtCoder | 731892543769b5df15254e1f32b756190378d292 | [
"MIT"
] | null | null | null | N,A,B=map(int,input().split())
print(min(A,B),max(0,A+B-N)) | 29.5 | 30 | 0.610169 | 16 | 59 | 2.25 | 0.6875 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017241 | 0.016949 | 59 | 2 | 31 | 29.5 | 0.603448 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
d394e890c0fc652da0d0b3492e00f326734515c6 | 72 | py | Python | tests/function/__init__.py | ddimatos/zhmc-ansible-modules | 6eb29056052f499021a4bab26539872b25050640 | [
"Apache-2.0"
] | 10 | 2017-08-10T07:40:29.000Z | 2021-03-18T18:33:08.000Z | tests/function/__init__.py | ddimatos/zhmc-ansible-modules | 6eb29056052f499021a4bab26539872b25050640 | [
"Apache-2.0"
] | 439 | 2017-07-20T07:31:08.000Z | 2022-03-27T19:59:22.000Z | tests/function/__init__.py | ddimatos/zhmc-ansible-modules | 6eb29056052f499021a4bab26539872b25050640 | [
"Apache-2.0"
] | 9 | 2019-03-30T08:49:40.000Z | 2021-05-15T02:42:11.000Z | # this file is required to get the pytest working with relative imports
| 36 | 71 | 0.805556 | 12 | 72 | 4.833333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180556 | 72 | 1 | 72 | 72 | 0.983051 | 0.958333 | 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 |
d395fe74a56b078a59e039da6201247ae4b71f8f | 329 | py | Python | analysis/swap/__init__.py | melaniebeck/GZExpress | 43129239cbf6b646200ede4aebcb3a29c1cad1d4 | [
"MIT"
] | null | null | null | analysis/swap/__init__.py | melaniebeck/GZExpress | 43129239cbf6b646200ede4aebcb3a29c1cad1d4 | [
"MIT"
] | null | null | null | analysis/swap/__init__.py | melaniebeck/GZExpress | 43129239cbf6b646200ede4aebcb3a29c1cad1d4 | [
"MIT"
] | null | null | null | from logging import *
from config import *
from io import *
from bureau import *
from agent import *
from collection import *
from storage import *
from subject import *
from toydb import *
from mongodb import *
from shannon import *
from mysqldb import *
from mysqldb_ML import *
from subject_ML import *
from agent_ML ... | 20.5625 | 24 | 0.772036 | 48 | 329 | 5.229167 | 0.3125 | 0.557769 | 0.119522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.182371 | 329 | 15 | 25 | 21.933333 | 0.933086 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
d3abaa52eb536d609be589e46aaa852f310217a7 | 94 | py | Python | sequence/test/side_effects/__init__.py | ritchie46/clickstream | 79c669d0636521db2697e5fa583628d1920cc6c1 | [
"MIT"
] | 8 | 2020-01-27T14:43:02.000Z | 2021-08-24T19:26:30.000Z | sequence/test/side_effects/__init__.py | ritchie46/clickstream | 79c669d0636521db2697e5fa583628d1920cc6c1 | [
"MIT"
] | 4 | 2020-07-16T14:27:11.000Z | 2021-01-27T08:28:20.000Z | sequence/test/side_effects/__init__.py | ritchie46/clickstream | 79c669d0636521db2697e5fa583628d1920cc6c1 | [
"MIT"
] | 6 | 2020-07-16T12:14:49.000Z | 2021-05-17T08:18:42.000Z | # Tests in these module have side effects.
# They download data or make artifact directories.
| 31.333333 | 50 | 0.787234 | 14 | 94 | 5.285714 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170213 | 94 | 2 | 51 | 47 | 0.948718 | 0.946809 | 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 |
6cb55a069910bb0711a7afbaac8a28c24f0b2d7b | 62 | py | Python | file_handler/manage.py | merwane/shield | 067d4ed9c84946479c200c0f7bcf47f7bfce3b80 | [
"MIT"
] | null | null | null | file_handler/manage.py | merwane/shield | 067d4ed9c84946479c200c0f7bcf47f7bfce3b80 | [
"MIT"
] | null | null | null | file_handler/manage.py | merwane/shield | 067d4ed9c84946479c200c0f7bcf47f7bfce3b80 | [
"MIT"
] | null | null | null | import os
def delete_file(filename):
os.remove(filename)
| 12.4 | 26 | 0.741935 | 9 | 62 | 5 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16129 | 62 | 4 | 27 | 15.5 | 0.865385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
6cc920c7effb33cf26fabf3b0d402dd0df29447c | 225 | py | Python | tests/conftest.py | joar/disk-usage-exporter | cb23ced094f3410d15e4ad99d1006acf65812123 | [
"BSD-2-Clause"
] | 9 | 2017-10-20T21:27:30.000Z | 2021-05-27T13:54:57.000Z | tests/conftest.py | joar/disk-usage-exporter | cb23ced094f3410d15e4ad99d1006acf65812123 | [
"BSD-2-Clause"
] | 3 | 2017-08-15T18:43:46.000Z | 2020-09-30T08:43:35.000Z | tests/conftest.py | joar/disk-usage-exporter | cb23ced094f3410d15e4ad99d1006acf65812123 | [
"BSD-2-Clause"
] | 2 | 2018-01-19T17:48:08.000Z | 2019-03-28T08:45:25.000Z | import logging
import pytest
from disk_usage_exporter import logging as _logging
@pytest.fixture(scope='session', autouse=True)
def configure_logging():
_logging.configure_logging(for_humans=True, level=logging.DEBUG)
| 22.5 | 68 | 0.813333 | 30 | 225 | 5.866667 | 0.633333 | 0.147727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102222 | 225 | 9 | 69 | 25 | 0.871287 | 0 | 0 | 0 | 0 | 0 | 0.031111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | true | 0 | 0.5 | 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 |
6cd3fc6b6fc9327449607d5e067b0541aa367dac | 268 | py | Python | Selenium/Opencart_login_page/test_alert.py | BahrmaLe/otus_python_homework | 510a4f1971b35048d760fcc45098e511b81bea31 | [
"MIT"
] | 1 | 2021-02-25T15:37:21.000Z | 2021-02-25T15:37:21.000Z | Selenium/Opencart_login_page/test_alert.py | BahrmaLe/otus_python_homework | 510a4f1971b35048d760fcc45098e511b81bea31 | [
"MIT"
] | null | null | null | Selenium/Opencart_login_page/test_alert.py | BahrmaLe/otus_python_homework | 510a4f1971b35048d760fcc45098e511b81bea31 | [
"MIT"
] | null | null | null | def test_alert_message(alert_message):
"""Use this for check message in different cases:Incorrectly username/password, only username, only password by
parameters """
print(alert_message)
assert 'No match for Username and/or Password.' in alert_message
| 44.666667 | 115 | 0.764925 | 37 | 268 | 5.405405 | 0.621622 | 0.24 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164179 | 268 | 5 | 116 | 53.6 | 0.892857 | 0.44403 | 0 | 0 | 0 | 0 | 0.275362 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.333333 | false | 0.333333 | 0 | 0 | 0.333333 | 0.333333 | 0 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
6cdacc1255714d00aad79e85b4d5b879a38916da | 140 | py | Python | example_django_project/example_django_project/serialization.py | rennat/django_delta_logger | 5bb2a2edd8258e9c146a515886b2bf0e0df00365 | [
"MIT"
] | null | null | null | example_django_project/example_django_project/serialization.py | rennat/django_delta_logger | 5bb2a2edd8258e9c146a515886b2bf0e0df00365 | [
"MIT"
] | null | null | null | example_django_project/example_django_project/serialization.py | rennat/django_delta_logger | 5bb2a2edd8258e9c146a515886b2bf0e0df00365 | [
"MIT"
] | null | null | null | from django.conf import settings
from django.utils.module_loading import import_string
JsonEncoder = import_string(settings.JSON_ENCODER)
| 23.333333 | 53 | 0.857143 | 19 | 140 | 6.105263 | 0.631579 | 0.172414 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.092857 | 140 | 5 | 54 | 28 | 0.913386 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
9f036a872be537cfa1f0de478083e9abe045c894 | 64 | py | Python | 3-9 guests.py | Holaplace/path_to_python | 8fae2aca8d6da04c39a67514948fdf50e883750a | [
"MIT"
] | 1 | 2019-02-06T01:49:18.000Z | 2019-02-06T01:49:18.000Z | 3-9 guests.py | Holaplace/path_to_python | 8fae2aca8d6da04c39a67514948fdf50e883750a | [
"MIT"
] | null | null | null | 3-9 guests.py | Holaplace/path_to_python | 8fae2aca8d6da04c39a67514948fdf50e883750a | [
"MIT"
] | null | null | null | name_list = ['Amy','Bob','Candy','Ellen']
print(len(name_list)) | 32 | 42 | 0.65625 | 10 | 64 | 4 | 0.8 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 64 | 2 | 43 | 32 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
9f1c1bd35f81aa694adee9c43675c66f39bb89b8 | 5,556 | py | Python | codango/userprofile/tests/test_routes.py | NdagiStanley/silver-happiness | 67fb6dd4047c603a84276f88a021d4489cf3b41e | [
"MIT"
] | 2 | 2019-10-17T01:03:12.000Z | 2021-11-24T07:43:14.000Z | codango/userprofile/tests/test_routes.py | NdagiStanley/silver-happiness | 67fb6dd4047c603a84276f88a021d4489cf3b41e | [
"MIT"
] | 49 | 2019-09-05T02:48:04.000Z | 2021-06-28T02:29:42.000Z | codango/userprofile/tests/test_routes.py | NdagiStanley/silver-happiness | 67fb6dd4047c603a84276f88a021d4489cf3b41e | [
"MIT"
] | 1 | 2019-04-10T19:40:28.000Z | 2019-04-10T19:40:28.000Z | from django.test import TestCase, Client
from django.contrib.auth.models import User
from django.core.urlresolvers import reverse
class ProfileViewTestCase(TestCase):
def setUp(self):
self.client = Client()
self.user = User.objects.create_user(
username='lade',
password='p... | 31.748571 | 77 | 0.569114 | 547 | 5,556 | 5.605119 | 0.164534 | 0.068493 | 0.067841 | 0.093281 | 0.798761 | 0.783431 | 0.742661 | 0.690476 | 0.665036 | 0.621331 | 0 | 0.012682 | 0.318755 | 5,556 | 174 | 78 | 31.931034 | 0.797358 | 0.037257 | 0 | 0.56338 | 0 | 0 | 0.114024 | 0.008238 | 0 | 0 | 0 | 0 | 0.091549 | 1 | 0.119718 | false | 0.140845 | 0.021127 | 0 | 0.169014 | 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 |
9f6eb3b9df84234d0f6c3be136c8e8e46a4f6a56 | 292 | py | Python | lovage/utils.py | CloudSnorkel/lovage | 6596fc2fd7fad6ae5b50c1fb55d299d8fc17278d | [
"MIT"
] | 8 | 2020-01-25T21:40:26.000Z | 2020-06-12T16:32:50.000Z | lovage/utils.py | CloudSnorkel/lovage | 6596fc2fd7fad6ae5b50c1fb55d299d8fc17278d | [
"MIT"
] | 3 | 2020-04-29T04:55:32.000Z | 2021-04-25T05:02:18.000Z | lovage/utils.py | CloudSnorkel/lovage | 6596fc2fd7fad6ae5b50c1fb55d299d8fc17278d | [
"MIT"
] | null | null | null | import os
def is_in_cloud():
"""
Checks if this code is running in a deployed Lovage stack. Useful when you have to initialize global variables
only in deployed code.
:return: True if running in AWS/GCP/Azure/etc.
"""
return os.getenv("LOVAGE_IN_CLOUD", "0") == "1"
| 26.545455 | 114 | 0.674658 | 46 | 292 | 4.195652 | 0.717391 | 0.072539 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00885 | 0.226027 | 292 | 10 | 115 | 29.2 | 0.845133 | 0.616438 | 0 | 0 | 0 | 0 | 0.193182 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | true | 0 | 0.333333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
9f87a8a2bfda4be87466e9593c38dcf6ce71e656 | 154,116 | py | Python | pybandit/optproblems/cec2005/unimodal.py | chunjenpeng/pyBandit | df14bf0cc263d8fa0ad0a539e94327ac35e33d1c | [
"MIT"
] | 1 | 2018-07-12T08:30:44.000Z | 2018-07-12T08:30:44.000Z | pybandit/optproblems/cec2005/unimodal.py | PENGChunJen/pyBandit | df14bf0cc263d8fa0ad0a539e94327ac35e33d1c | [
"MIT"
] | null | null | null | pybandit/optproblems/cec2005/unimodal.py | PENGChunJen/pyBandit | df14bf0cc263d8fa0ad0a539e94327ac35e33d1c | [
"MIT"
] | null | null | null |
import random
import math
import numpy as np
from optproblems.base import Individual, BoundConstraintsChecker, TestProblem
from optproblems.continuous import doublesum, EllipsoidFunction, sphere
class F1(TestProblem):
"""Shifted sphere."""
bias = -450.0
offsets = [-39.3119, 58.8999, -46.3224, -74.651... | 361.774648 | 1,119 | 0.636378 | 28,502 | 154,116 | 3.435513 | 0.143534 | 0.002655 | 0.00527 | 0.001062 | 0.289157 | 0.03507 | 0.034038 | 0.024142 | 0.023734 | 0.022325 | 0 | 0.705499 | 0.131829 | 154,116 | 425 | 1,120 | 362.625882 | 0.026338 | 0.001415 | 0 | 0.195592 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008264 | 1 | 0.038567 | false | 0 | 0.013774 | 0.011019 | 0.126722 | 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 |
9fc33dac4e4c95a81c1a476f6d4147cd04617ff5 | 362 | py | Python | three.py/helpers/__init__.py | Michael-Pascale/three.py | 9912f5f850245fb9456a25b6737e12290ae54a2d | [
"MIT"
] | null | null | null | three.py/helpers/__init__.py | Michael-Pascale/three.py | 9912f5f850245fb9456a25b6737e12290ae54a2d | [
"MIT"
] | null | null | null | three.py/helpers/__init__.py | Michael-Pascale/three.py | 9912f5f850245fb9456a25b6737e12290ae54a2d | [
"MIT"
] | null | null | null | from helpers.AxesHelper import *
from helpers.GridHelper import *
from helpers.BoxHelper import *
from helpers.VertexNormalHelper import *
from helpers.DirectionalLightHelper import *
from helpers.PointLightHelper import *
from helpers.OrthographicCameraHelper import *
from helpers.Pair import *
from helpers.GridGroup ... | 32.909091 | 46 | 0.834254 | 40 | 362 | 7.55 | 0.325 | 0.364238 | 0.506623 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.110497 | 362 | 10 | 47 | 36.2 | 0.937888 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
4c875eb02c7b237a47360adf5bdc726557658410 | 313 | py | Python | py/locdb_v2/__init__.py | skepner/ae | d53336a561df1a46a39debb143c9f9496b222a46 | [
"MIT"
] | null | null | null | py/locdb_v2/__init__.py | skepner/ae | d53336a561df1a46a39debb143c9f9496b222a46 | [
"MIT"
] | null | null | null | py/locdb_v2/__init__.py | skepner/ae | d53336a561df1a46a39debb143c9f9496b222a46 | [
"MIT"
] | null | null | null | from .read import find, find_cdc_abbreviation, country, continent, find_cdc_abbreviation_for_name, location_db, check
from .read import LocationNotFound, LocationReplacement
from .geonames import geonames, geonames_make_eval
from .update import add, add_cdc_abbreviation, add_new_name, add_replacement, fix, save
| 62.6 | 117 | 0.853035 | 43 | 313 | 5.883721 | 0.55814 | 0.177866 | 0.110672 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.092652 | 313 | 4 | 118 | 78.25 | 0.890845 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4c926272d46886e2916e9a805859dae5a849c1b1 | 165 | py | Python | contacts/forms.py | JoshZero87/site | c8024b805ff5ff0e16f54dce7bf05097fd2f08e0 | [
"MIT"
] | 4 | 2017-01-29T00:38:41.000Z | 2019-09-04T14:30:24.000Z | contacts/forms.py | JoshZero87/site | c8024b805ff5ff0e16f54dce7bf05097fd2f08e0 | [
"MIT"
] | 74 | 2017-10-02T04:42:54.000Z | 2022-01-13T00:44:16.000Z | contacts/forms.py | JoshZero87/site | c8024b805ff5ff0e16f54dce7bf05097fd2f08e0 | [
"MIT"
] | 3 | 2017-03-24T23:26:46.000Z | 2019-10-21T01:16:03.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django import forms
class PhoneOptOutUploadForm(forms.Form):
csv_file = forms.FileField()
| 20.625 | 40 | 0.751515 | 20 | 165 | 5.9 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007092 | 0.145455 | 165 | 7 | 41 | 23.571429 | 0.829787 | 0.127273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4ca532226f8bad7121b5d6e41a2fa3f564e18030 | 2,398 | py | Python | tests/test_replace_if_else.py | BBVA/python-etl | f4c0e613792c93fe5833f9d5e670e8fa6cf675da | [
"Apache-2.0"
] | 20 | 2017-11-07T15:09:45.000Z | 2021-08-21T00:18:09.000Z | tests/test_replace_if_else.py | BBVA/python-etl | f4c0e613792c93fe5833f9d5e670e8fa6cf675da | [
"Apache-2.0"
] | 4 | 2017-11-21T13:15:30.000Z | 2018-01-17T14:06:14.000Z | tests/test_replace_if_else.py | BBVA/python-etl | f4c0e613792c93fe5833f9d5e670e8fa6cf675da | [
"Apache-2.0"
] | 9 | 2017-11-08T10:53:43.000Z | 2018-04-20T11:26:29.000Z | # Copyright 2017 BBVA
#
# 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, softwar... | 25.510638 | 82 | 0.652627 | 370 | 2,398 | 3.994595 | 0.248649 | 0.040595 | 0.064953 | 0.03383 | 0.611637 | 0.611637 | 0.593369 | 0.536536 | 0.536536 | 0.536536 | 0 | 0.018722 | 0.242702 | 2,398 | 93 | 83 | 25.784946 | 0.795154 | 0.225605 | 0 | 0.807018 | 0 | 0 | 0.020619 | 0 | 0 | 0 | 0 | 0 | 0.280702 | 1 | 0.298246 | false | 0 | 0.035088 | 0.210526 | 0.54386 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
4cda5ab2a5855a5dd64df9f59e8fb1086913048f | 1,544 | py | Python | tests/test_pressure_pascals.py | putridparrot/PyUnits | 4f1095c6fc0bee6ba936921c391913dbefd9307c | [
"MIT"
] | null | null | null | tests/test_pressure_pascals.py | putridparrot/PyUnits | 4f1095c6fc0bee6ba936921c391913dbefd9307c | [
"MIT"
] | null | null | null | tests/test_pressure_pascals.py | putridparrot/PyUnits | 4f1095c6fc0bee6ba936921c391913dbefd9307c | [
"MIT"
] | null | null | null | # <auto-generated>
# This code was generated by the UnitCodeGenerator tool
#
# Changes to this file will be lost if the code is regenerated
# </auto-generated>
import unittest
import units.pressure.pascals
class TestPascalsMethods(unittest.TestCase):
def test_convert_known_pascals_to_atmospheres(self):
self.asser... | 45.411765 | 97 | 0.795984 | 227 | 1,544 | 5.237885 | 0.290749 | 0.12111 | 0.218671 | 0.222035 | 0.592935 | 0.215307 | 0.090833 | 0.090833 | 0.090833 | 0 | 0 | 0.111736 | 0.078368 | 1,544 | 33 | 98 | 46.787879 | 0.723823 | 0.096503 | 0 | 0 | 1 | 0 | 0.00576 | 0 | 0 | 0 | 0 | 0 | 0.571429 | 1 | 0.190476 | false | 0 | 0.095238 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
4cfff5e9e957eded91f80e5133123ea87f0985de | 600 | py | Python | stations/migrations/0011_auto_20210828_0217.py | dymaxionlabs/satlomas-back | f4568f6535755fd4a2432ecc661a264872206c6c | [
"Apache-2.0"
] | 1 | 2021-02-18T20:11:25.000Z | 2021-02-18T20:11:25.000Z | stations/migrations/0011_auto_20210828_0217.py | dymaxionlabs/satlomas-back | f4568f6535755fd4a2432ecc661a264872206c6c | [
"Apache-2.0"
] | 7 | 2020-06-09T14:54:43.000Z | 2021-09-22T21:00:13.000Z | stations/migrations/0011_auto_20210828_0217.py | dymaxionlabs/satlomas-back | f4568f6535755fd4a2432ecc661a264872206c6c | [
"Apache-2.0"
] | 1 | 2020-05-08T20:42:49.000Z | 2020-05-08T20:42:49.000Z | # Generated by Django 3.1.8 on 2021-08-28 02:17
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('stations', '0010_auto_20210322_2029'),
]
operations = [
migrations.RemoveField(
model_name='station',
name='lat',
),... | 20.689655 | 48 | 0.525 | 53 | 600 | 5.830189 | 0.622642 | 0.203884 | 0.252427 | 0.291262 | 0.398058 | 0.398058 | 0 | 0 | 0 | 0 | 0 | 0.080729 | 0.36 | 600 | 28 | 49 | 21.428571 | 0.723958 | 0.075 | 0 | 0.454545 | 1 | 0 | 0.122966 | 0.041591 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.181818 | 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 |
980eb1c9a13d67b0861cf72a69e8b1aad234bdc7 | 493 | py | Python | cowait/types/__init__.py | backtick-se/cowa | 760ddb3ded1b3995bc68f4b74cf28af0c094481f | [
"Apache-2.0"
] | 51 | 2020-06-04T06:08:14.000Z | 2022-03-28T06:59:53.000Z | cowait/types/__init__.py | backtick-se/cowa | 760ddb3ded1b3995bc68f4b74cf28af0c094481f | [
"Apache-2.0"
] | 121 | 2020-06-01T12:09:32.000Z | 2022-03-31T20:47:57.000Z | cowait/types/__init__.py | backtick-se/cowa | 760ddb3ded1b3995bc68f4b74cf28af0c094481f | [
"Apache-2.0"
] | 6 | 2020-06-11T16:05:20.000Z | 2022-03-23T06:30:17.000Z | # flake8: noqa: F401
from .type import Type
from .dict import Dict
from .list import List
from .custom import CustomType
from .simple import Any, String, Int, Float, Bool, DateTime, Void
from .mapping import TypeAlias
from .utils import typed_arguments, typed_return, \
typed_call, typed_async_call, serialize, dese... | 27.388889 | 67 | 0.772819 | 66 | 493 | 5.575758 | 0.575758 | 0.043478 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009685 | 0.162272 | 493 | 17 | 68 | 29 | 0.881356 | 0.036511 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.071429 | 0.571429 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 4 |
e25d3a69f3a4acb190f03d5b162b09186eb9be90 | 100 | py | Python | group_members/apps.py | albertocerrone/The-Bugbuster | b86054617dcf7ec39418b9cda04a968ffc1fc657 | [
"CC0-1.0"
] | null | null | null | group_members/apps.py | albertocerrone/The-Bugbuster | b86054617dcf7ec39418b9cda04a968ffc1fc657 | [
"CC0-1.0"
] | null | null | null | group_members/apps.py | albertocerrone/The-Bugbuster | b86054617dcf7ec39418b9cda04a968ffc1fc657 | [
"CC0-1.0"
] | 1 | 2021-02-04T15:25:39.000Z | 2021-02-04T15:25:39.000Z | from django.apps import AppConfig
class GroupMembersConfig(AppConfig):
name = 'group_members'
| 16.666667 | 36 | 0.78 | 11 | 100 | 7 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15 | 100 | 5 | 37 | 20 | 0.905882 | 0 | 0 | 0 | 0 | 0 | 0.13 | 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 |
e268d3a6265b7e9c7c77c5a1d38361d0c6b4043d | 286 | py | Python | examples/checkpointing/checkpoint.py | reguly/devito | 543b7be41ddbf1faa90224cca3824767756c9390 | [
"MIT"
] | 204 | 2020-01-09T11:27:58.000Z | 2022-03-20T22:53:37.000Z | examples/checkpointing/checkpoint.py | reguly/devito | 543b7be41ddbf1faa90224cca3824767756c9390 | [
"MIT"
] | 949 | 2016-04-25T11:41:34.000Z | 2019-12-27T10:43:40.000Z | examples/checkpointing/checkpoint.py | reguly/devito | 543b7be41ddbf1faa90224cca3824767756c9390 | [
"MIT"
] | 131 | 2020-01-08T17:43:13.000Z | 2022-03-27T11:36:47.000Z | from devito import warning
warning("""The location of Devito's checkpointing has changed. This location will be
deprecated soon. Please change your imports to 'from devito import
DevitoCheckpoint, CheckpointOperato'""")
from devito.checkpointing import * # noqa | 40.857143 | 84 | 0.741259 | 34 | 286 | 6.235294 | 0.705882 | 0.141509 | 0.150943 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.199301 | 286 | 7 | 85 | 40.857143 | 0.925764 | 0.013986 | 0 | 0 | 0 | 0 | 0.708185 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.6 | 0 | 0.6 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
e276fef972c635fb1863ab495f3ca47af0250a04 | 846 | py | Python | hackerrank/Algorithms/Two Strings/test.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | 4 | 2020-07-24T01:59:50.000Z | 2021-07-24T15:14:08.000Z | hackerrank/Algorithms/Two Strings/test.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | null | null | null | hackerrank/Algorithms/Two Strings/test.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | null | null | null | import unittest
import solution
class TestQ(unittest.TestCase):
def test_case_0(self):
self.assertEqual(solution.twoStrings('hello', 'world'), 'YES')
self.assertEqual(solution.twoStrings('hi', 'world'), 'NO')
def test_case_1(self):
self.assertEqual(solution.twoStrings('wouldyoulikefr... | 35.25 | 94 | 0.691489 | 84 | 846 | 6.797619 | 0.416667 | 0.210158 | 0.322242 | 0.462347 | 0.446585 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004178 | 0.1513 | 846 | 23 | 95 | 36.782609 | 0.791086 | 0 | 0 | 0 | 0 | 0 | 0.225768 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.1875 | false | 0 | 0.125 | 0 | 0.375 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
e2a75b55d8e1a006e03744d549dfb213e6246585 | 315 | py | Python | resources/mgltools_x86_64Linux2_1.5.6/lib/python2.5/site-packages/SimPy/Monitor.py | J-E-J-S/aaRS-Pipeline | 43f59f28ab06e4b16328c3bc405cdddc6e69ac44 | [
"MIT"
] | null | null | null | resources/mgltools_x86_64Linux2_1.5.6/lib/python2.5/site-packages/SimPy/Monitor.py | J-E-J-S/aaRS-Pipeline | 43f59f28ab06e4b16328c3bc405cdddc6e69ac44 | [
"MIT"
] | null | null | null | resources/mgltools_x86_64Linux2_1.5.6/lib/python2.5/site-packages/SimPy/Monitor.py | J-E-J-S/aaRS-Pipeline | 43f59f28ab06e4b16328c3bc405cdddc6e69ac44 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# $Revision: 1.1.1.12 $ $Date: 2007/01/08 14:40:09 $ kgm
"""Monitor 1.8 This dummy module is only provided for backward compatibility.
It does nothing. class Monitor is now part of Simulation
and SimulationXXX."""
__version__ ='1.8 $Revision: 1.1.1.12 $ $Date: 2007/01/08 14:40:09 $'
pass
| 39.375 | 78 | 0.701587 | 57 | 315 | 3.807018 | 0.666667 | 0.036866 | 0.092166 | 0.101382 | 0.285714 | 0.285714 | 0.285714 | 0.285714 | 0.285714 | 0.285714 | 0 | 0.157303 | 0.152381 | 315 | 7 | 79 | 45 | 0.655431 | 0.720635 | 0 | 0 | 0 | 0.5 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.5 | 0 | 0 | 0 | 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 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
2c7ca29398660625762ee604ac228bf83f7d19ed | 211 | py | Python | Hackerrank/Practice/Python/4.sets/33.Set .union() Operation.py | kushagra1212/Competitive-Programming | 5b68774c617d6abdf1b29893b1b13d47f62161e8 | [
"MIT"
] | 994 | 2017-02-28T06:13:47.000Z | 2022-03-31T10:49:00.000Z | Hackerrank_python/4.sets/33.Set .union() Operation.py | devesh17m/Competitive-Programming | 2d459dc8dc5ac628d94700b739988b0ea364cb71 | [
"MIT"
] | 16 | 2018-01-01T02:59:55.000Z | 2021-11-22T12:49:16.000Z | Hackerrank_python/4.sets/33.Set .union() Operation.py | devesh17m/Competitive-Programming | 2d459dc8dc5ac628d94700b739988b0ea364cb71 | [
"MIT"
] | 325 | 2017-06-15T03:32:43.000Z | 2022-03-28T22:43:42.000Z | # Enter your code here. Read input from STDIN. Print output to STDOUT
n=int(input())
roll_n=set(map(int,input().split()))
m=int(input())
roll_m=set(map(int,input().split()))
s=roll_n|roll_m
print(len(s))
| 26.375 | 70 | 0.682464 | 40 | 211 | 3.5 | 0.525 | 0.228571 | 0.171429 | 0.2 | 0.271429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123223 | 211 | 7 | 71 | 30.142857 | 0.756757 | 0.317536 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | null | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
2c8a567ee3c913800f389798961dd9ff34cbf047 | 86 | py | Python | fee/apps.py | masoodazhar/-school-management-system | 6525b3d29d12f03e05d362d81b7c5855806f57d9 | [
"Apache-2.0"
] | 1 | 2022-01-20T10:20:05.000Z | 2022-01-20T10:20:05.000Z | fee/apps.py | masoodazhar/-school-management-system | 6525b3d29d12f03e05d362d81b7c5855806f57d9 | [
"Apache-2.0"
] | null | null | null | fee/apps.py | masoodazhar/-school-management-system | 6525b3d29d12f03e05d362d81b7c5855806f57d9 | [
"Apache-2.0"
] | 1 | 2022-01-20T10:20:31.000Z | 2022-01-20T10:20:31.000Z | from django.apps import AppConfig
class FeeConfig(AppConfig):
name = 'fee'
| 14.333333 | 34 | 0.686047 | 10 | 86 | 5.9 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.232558 | 86 | 5 | 35 | 17.2 | 0.893939 | 0 | 0 | 0 | 0 | 0 | 0.037037 | 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 |
2c8ca17fd08b88b5ff16483af20e1c8e49f80541 | 107 | py | Python | series_tiempo_ar_api/apps/api/apps.py | datosgobar/series-tiempo-ar-api | 6b553c573f6e8104f8f3919efe79089b7884280c | [
"MIT"
] | 28 | 2017-12-16T20:30:52.000Z | 2021-08-11T17:35:04.000Z | series_tiempo_ar_api/apps/api/apps.py | datosgobar/series-tiempo-ar-api | 6b553c573f6e8104f8f3919efe79089b7884280c | [
"MIT"
] | 446 | 2017-11-16T15:21:40.000Z | 2021-06-10T20:14:21.000Z | series_tiempo_ar_api/apps/api/apps.py | datosgobar/series-tiempo-ar-api | 6b553c573f6e8104f8f3919efe79089b7884280c | [
"MIT"
] | 12 | 2018-08-23T16:13:32.000Z | 2022-03-01T23:12:28.000Z | from django.apps import AppConfig
class ApiConfig(AppConfig):
name = 'series_tiempo_ar_api.apps.api'
| 17.833333 | 42 | 0.775701 | 15 | 107 | 5.333333 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140187 | 107 | 5 | 43 | 21.4 | 0.869565 | 0 | 0 | 0 | 0 | 0 | 0.271028 | 0.271028 | 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 |
2c928c45591400d31187e58899e10c252587ee7a | 77 | py | Python | tests/sphinx.py | theboyslush/mila | 274da1d3c7e7e4385fa58eb6aebd24c5ef7fed4d | [
"MIT"
] | 23 | 2021-01-01T16:57:01.000Z | 2022-03-04T18:22:40.000Z | tests/sphinx.py | gangapurambhargav/baks | 89a129ebb3cfed08c1d075b6d6ab3ee209610ca9 | [
"MIT"
] | null | null | null | tests/sphinx.py | gangapurambhargav/baks | 89a129ebb3cfed08c1d075b6d6ab3ee209610ca9 | [
"MIT"
] | 23 | 2021-01-05T08:24:08.000Z | 2022-03-25T08:08:18.000Z | from pocketsphinx import LiveSpeech
for phrase in LiveSpeech(): print(phrase) | 38.5 | 41 | 0.831169 | 10 | 77 | 6.4 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103896 | 77 | 2 | 41 | 38.5 | 0.927536 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 4 |
2ca110e263d8a037e41ff214f53722a2cb408b3f | 202 | py | Python | zaptools/__init__.py | NathanDraco22/zap-adapter-python | 5b47a21f83f5379365e5d69656f924a36ed7fb79 | [
"MIT"
] | 1 | 2022-02-26T03:10:37.000Z | 2022-02-26T03:10:37.000Z | zaptools/__init__.py | NathanDraco22/py-zaptools | 5b47a21f83f5379365e5d69656f924a36ed7fb79 | [
"MIT"
] | null | null | null | zaptools/__init__.py | NathanDraco22/py-zaptools | 5b47a21f83f5379365e5d69656f924a36ed7fb79 | [
"MIT"
] | null | null | null | __all__ = ["EventRegister", "FastApiZapAdapter", "SocketClient"]
from .EventRegister import EventRegister
from .FastApi.Adapter import FastApiZapAdapter
from .FastApi.FastApiAdapter import SocketClient | 40.4 | 64 | 0.836634 | 18 | 202 | 9.166667 | 0.5 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084158 | 202 | 5 | 65 | 40.4 | 0.891892 | 0 | 0 | 0 | 0 | 0 | 0.206897 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
2cbf50d0abba2af172183c18ed7990a3d3b3f9bb | 123 | py | Python | FUNDAMENTALS_MODULE/Basic_Syntax_Conditional_Statements_and_Loops/EXERCISE/01_Jennys_Secret_Message.py | sleepychild/ProgramingBasicsPython | d96dc4662adc1c8329b731b9c9b7fa4ecf69ec16 | [
"MIT"
] | null | null | null | FUNDAMENTALS_MODULE/Basic_Syntax_Conditional_Statements_and_Loops/EXERCISE/01_Jennys_Secret_Message.py | sleepychild/ProgramingBasicsPython | d96dc4662adc1c8329b731b9c9b7fa4ecf69ec16 | [
"MIT"
] | 1 | 2022-01-15T10:33:56.000Z | 2022-01-15T10:33:56.000Z | FUNDAMENTALS_MODULE/Basic_Syntax_Conditional_Statements_and_Loops/EXERCISE/01_Jennys_Secret_Message.py | sleepychild/ProgramingBasicsPython | d96dc4662adc1c8329b731b9c9b7fa4ecf69ec16 | [
"MIT"
] | null | null | null | input_name: str = input()
if input_name == 'Johnny':
print('Hello, my love!')
else:
print(f'Hello, {input_name}!')
| 20.5 | 34 | 0.626016 | 18 | 123 | 4.111111 | 0.611111 | 0.364865 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.178862 | 123 | 5 | 35 | 24.6 | 0.732673 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0.4 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
e2baee00bdf62669890e19954e4a630896c40fea | 131 | py | Python | bulky/__init__.py | tgrx/bulky | 8c5a41936b8ea29ed39b57ebe1a91bd85e64422d | [
"Apache-2.0"
] | null | null | null | bulky/__init__.py | tgrx/bulky | 8c5a41936b8ea29ed39b57ebe1a91bd85e64422d | [
"Apache-2.0"
] | 4 | 2020-03-24T17:19:39.000Z | 2021-06-01T23:47:33.000Z | bulky/__init__.py | tgrx/bulky | 8c5a41936b8ea29ed39b57ebe1a91bd85e64422d | [
"Apache-2.0"
] | null | null | null | from bulky.functions.insert import insert
from bulky.functions.update import update
__all__ = ("insert", "update")
name = "bulky"
| 21.833333 | 41 | 0.763359 | 17 | 131 | 5.647059 | 0.470588 | 0.1875 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122137 | 131 | 5 | 42 | 26.2 | 0.834783 | 0 | 0 | 0 | 0 | 0 | 0.129771 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 4 |
e2cc64992d980fbe4bdc783fa2a3114188390f73 | 340 | py | Python | examples/05syspath/main.py | podhmo/magicalimport | b9c516d9d134ca578a85f934caa8c9f9ce6b4fa9 | [
"MIT"
] | null | null | null | examples/05syspath/main.py | podhmo/magicalimport | b9c516d9d134ca578a85f934caa8c9f9ce6b4fa9 | [
"MIT"
] | 9 | 2016-10-01T15:25:20.000Z | 2021-02-18T05:25:43.000Z | examples/05syspath/main.py | podhmo/magicalimport | b9c516d9d134ca578a85f934caa8c9f9ce6b4fa9 | [
"MIT"
] | 1 | 2017-07-19T12:38:56.000Z | 2017-07-19T12:38:56.000Z | import string
import magicalimport
import sys
import os.path
string2 = magicalimport.import_module(string.__file__)
print(string == string2)
assert "urlib" not in sys.modules
urllib2 = magicalimport.import_module(
os.path.join(os.path.dirname(string.__file__), "urllib/__init__.py")
)
import urllib # noqa
print... | 20 | 72 | 0.773529 | 45 | 340 | 5.533333 | 0.488889 | 0.228916 | 0.200803 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013378 | 0.120588 | 340 | 16 | 73 | 21.25 | 0.819398 | 0.011765 | 0 | 0 | 0 | 0 | 0.068862 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 1 | 0 | false | 0 | 0.583333 | 0 | 0.583333 | 0.166667 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
3902a0e127e150672fd0deb34c3a72a399bc6c42 | 178 | py | Python | test/test_basemodel.py | Chise1/fastapi-admin | 74693cf8dd854d61ae5bd931ebe85f5b94f48121 | [
"Apache-2.0"
] | null | null | null | test/test_basemodel.py | Chise1/fastapi-admin | 74693cf8dd854d61ae5bd931ebe85f5b94f48121 | [
"Apache-2.0"
] | null | null | null | test/test_basemodel.py | Chise1/fastapi-admin | 74693cf8dd854d61ae5bd931ebe85f5b94f48121 | [
"Apache-2.0"
] | null | null | null | # -*- encoding: utf-8 -*-
"""
@File : test_basemodel.py
@Time : 2020/4/3 0:08
@Author : chise
@Email : chise123@live.com
@Software: PyCharm
@info :测试basemodel的继承
"""
| 17.8 | 28 | 0.61236 | 23 | 178 | 4.695652 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.091549 | 0.202247 | 178 | 9 | 29 | 19.777778 | 0.669014 | 0.94382 | 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 |
391afe28a4195bb475eaaaf54903807eb9983e42 | 153 | py | Python | core/urls.py | softwaydev/fop-service | f6e479c17ec54d5264520e3e0797f1313a8bfe54 | [
"Apache-2.0"
] | 4 | 2017-07-03T06:21:59.000Z | 2020-07-21T03:35:15.000Z | core/urls.py | softwaydev/fop-service | f6e479c17ec54d5264520e3e0797f1313a8bfe54 | [
"Apache-2.0"
] | 2 | 2017-07-13T11:00:54.000Z | 2017-08-04T10:41:20.000Z | core/urls.py | softwaydev/fop-service | f6e479c17ec54d5264520e3e0797f1313a8bfe54 | [
"Apache-2.0"
] | 2 | 2019-07-02T08:39:33.000Z | 2020-11-06T21:04:56.000Z | from django.conf.urls import url
from core import views
urlpatterns = [
url(r'^$', views.index),
url(r'^generate_pdf/$', views.generate_pdf),
]
| 19.125 | 48 | 0.679739 | 22 | 153 | 4.636364 | 0.590909 | 0.078431 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163399 | 153 | 7 | 49 | 21.857143 | 0.796875 | 0 | 0 | 0 | 1 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
39284ecd2f12f68b9815883a55b0b51f4e1976fc | 560 | py | Python | tests/Get_cpu_test.py | ashok-arora/sms | 50a0de68de4ebf7cf73d412bea05d6610b36e412 | [
"MIT"
] | 3 | 2021-04-20T19:32:58.000Z | 2021-05-20T17:28:52.000Z | tests/Get_cpu_test.py | ashok-arora/sms | 50a0de68de4ebf7cf73d412bea05d6610b36e412 | [
"MIT"
] | 4 | 2021-04-21T14:05:51.000Z | 2021-04-24T14:19:56.000Z | tests/Get_cpu_test.py | ashok-arora/sms | 50a0de68de4ebf7cf73d412bea05d6610b36e412 | [
"MIT"
] | 4 | 2021-03-25T16:20:32.000Z | 2021-04-06T07:49:41.000Z | import core
g = core.Get()
def test_cpu():
assert type(g.cpu()) is dict
def test_cpu_load_avg():
assert type(g.cpu()['load_avg']) is tuple
def test_cpu_user():
assert type(g.cpu()['user']) is float
def test_cpu_system():
assert type(g.cpu()['system']) is float
def test_cpu_idle():
assert ... | 15.555556 | 45 | 0.646429 | 95 | 560 | 3.610526 | 0.231579 | 0.163265 | 0.233236 | 0.326531 | 0.309038 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.182143 | 560 | 35 | 46 | 16 | 0.748908 | 0 | 0 | 0 | 0 | 0 | 0.075 | 0 | 0 | 0 | 0 | 0 | 0.444444 | 1 | 0.444444 | false | 0 | 0.055556 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
1a3b736884198ec3b8f19d9ab7d0c7883f28fbb9 | 98 | py | Python | CodeHS/Unit 5/5.1/triple.py | nitrospam/APCSP2020 | 275f576036805d244c3244f3f3646951940c9575 | [
"MIT"
] | null | null | null | CodeHS/Unit 5/5.1/triple.py | nitrospam/APCSP2020 | 275f576036805d244c3244f3f3646951940c9575 | [
"MIT"
] | null | null | null | CodeHS/Unit 5/5.1/triple.py | nitrospam/APCSP2020 | 275f576036805d244c3244f3f3646951940c9575 | [
"MIT"
] | null | null | null | # Enter your code here
def triple(num):
num = num*3
print(num)
triple(6)
triple(99)
| 10.888889 | 22 | 0.602041 | 16 | 98 | 3.6875 | 0.6875 | 0.20339 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056338 | 0.27551 | 98 | 8 | 23 | 12.25 | 0.774648 | 0.204082 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.2 | 0.2 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
1a72ef48b0afaf741558321781fa8209ce466939 | 73 | py | Python | pytorch_pfn_extras/dataloaders/__init__.py | yasuyuky/pytorch-pfn-extras | febea6ded644d3b7a099ac557f06567a04b3b838 | [
"MIT"
] | 1 | 2021-06-19T11:34:27.000Z | 2021-06-19T11:34:27.000Z | pytorch_pfn_extras/dataloaders/__init__.py | yasuyuky/pytorch-pfn-extras | febea6ded644d3b7a099ac557f06567a04b3b838 | [
"MIT"
] | 1 | 2021-07-28T05:37:50.000Z | 2021-07-28T05:37:50.000Z | pytorch_pfn_extras/dataloaders/__init__.py | yasuyuky/pytorch-pfn-extras | febea6ded644d3b7a099ac557f06567a04b3b838 | [
"MIT"
] | null | null | null | from pytorch_pfn_extras.dataloaders.dataloader import DataLoader # NOQA
| 36.5 | 72 | 0.863014 | 9 | 73 | 6.777778 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09589 | 73 | 1 | 73 | 73 | 0.924242 | 0.054795 | 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 |
1a75d6da18b6429831c683b6d9d88009304f3d22 | 107 | py | Python | main/campaign/admin.py | MahanBi/Back-End | 5074ac1d341ad2addd1750e4aea2e6800be2bfef | [
"MIT"
] | null | null | null | main/campaign/admin.py | MahanBi/Back-End | 5074ac1d341ad2addd1750e4aea2e6800be2bfef | [
"MIT"
] | null | null | null | main/campaign/admin.py | MahanBi/Back-End | 5074ac1d341ad2addd1750e4aea2e6800be2bfef | [
"MIT"
] | 1 | 2021-12-06T21:36:28.000Z | 2021-12-06T21:36:28.000Z | from django.contrib import admin
from .models import CampaignRanking
admin.site.register(CampaignRanking)
| 21.4 | 36 | 0.850467 | 13 | 107 | 7 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093458 | 107 | 4 | 37 | 26.75 | 0.938144 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 1 | 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.