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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8d6370e781f362524b580eb4c33cade1c1fdab7e | 1,576 | py | Python | src/icon/data/rpc_request.py | goldworm-icon/gw-iconsdk | b54722b0d19f286c0d0b8d751ff8cbcabd29f86a | [
"Apache-2.0"
] | 2 | 2019-05-28T22:37:49.000Z | 2020-01-07T11:40:15.000Z | src/icon/data/rpc_request.py | goldworm-icon/gw-iconsdk | b54722b0d19f286c0d0b8d751ff8cbcabd29f86a | [
"Apache-2.0"
] | 1 | 2020-02-04T12:05:31.000Z | 2020-02-04T12:05:31.000Z | src/icon/data/rpc_request.py | goldworm-icon/gw-iconsdk | b54722b0d19f286c0d0b8d751ff8cbcabd29f86a | [
"Apache-2.0"
] | 1 | 2019-08-01T08:42:15.000Z | 2019-08-01T08:42:15.000Z | # -*- coding: utf-8 -*-
import json
import random
from threading import Lock
from typing import Optional, Dict, Any
from .utils import to_str_dict
_MAX_ID = 0x7FFFFFFF
class RpcRequest(object):
_next_id = random.randint(0, _MAX_ID)
_id_lock = Lock()
def __init__(self, method: str, params: Optional[Dic... | 21.297297 | 77 | 0.57868 | 204 | 1,576 | 4.166667 | 0.254902 | 0.042353 | 0.042353 | 0.038824 | 0.034118 | 0.034118 | 0.034118 | 0 | 0 | 0 | 0 | 0.007333 | 0.307741 | 1,576 | 73 | 78 | 21.589041 | 0.771769 | 0.013325 | 0 | 0.09434 | 0 | 0 | 0.015454 | 0 | 0 | 0 | 0.006439 | 0 | 0 | 1 | 0.207547 | false | 0 | 0.09434 | 0.113208 | 0.509434 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
8d66e37b394074b82b57ed5cdc231e0924c5485e | 847 | py | Python | hbruraldoctor/hbvirtual/lib/python3.7/site-packages/Crypto/library/hash.py | hallohubo/DjangoDocterAPI | 2d86d17c718affa968c0b2d4f9590aa08d43716e | [
"Apache-2.0"
] | 45 | 2015-02-16T12:31:39.000Z | 2021-12-11T17:40:55.000Z | hbruraldoctor/hbvirtual/lib/python3.7/site-packages/Crypto/library/hash.py | hallohubo/DjangoDocterAPI | 2d86d17c718affa968c0b2d4f9590aa08d43716e | [
"Apache-2.0"
] | 21 | 2015-03-30T19:27:22.000Z | 2021-11-13T16:50:35.000Z | hbruraldoctor/hbvirtual/lib/python3.7/site-packages/Crypto/library/hash.py | hallohubo/DjangoDocterAPI | 2d86d17c718affa968c0b2d4f9590aa08d43716e | [
"Apache-2.0"
] | 17 | 2015-03-30T16:45:04.000Z | 2021-11-10T03:57:36.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import hashlib
from Naked.toolshed.file import FileReader
# ------------------------------------------------------------------------------
# PUBLIC
# ------------------------------------------------------------------------------
def generate_hash(filepath):
"""Public ... | 35.291667 | 92 | 0.453365 | 71 | 847 | 5.295775 | 0.577465 | 0.095745 | 0.058511 | 0.090426 | 0.106383 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021305 | 0.113341 | 847 | 23 | 93 | 36.826087 | 0.479361 | 0.635183 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
8d6b9eaffa44622392ca6453e992aea85abb7168 | 21 | py | Python | config.py | bgens/ctlenum | d48d51aa0e8f4793148e215d9e2e414c0774f2da | [
"MIT"
] | null | null | null | config.py | bgens/ctlenum | d48d51aa0e8f4793148e215d9e2e414c0774f2da | [
"MIT"
] | null | null | null | config.py | bgens/ctlenum | d48d51aa0e8f4793148e215d9e2e414c0774f2da | [
"MIT"
] | 1 | 2019-04-09T04:38:49.000Z | 2019-04-09T04:38:49.000Z | api_key = "YOUR_KEY"
| 10.5 | 20 | 0.714286 | 4 | 21 | 3.25 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 21 | 1 | 21 | 21 | 0.722222 | 0 | 0 | 0 | 0 | 0 | 0.380952 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8d9e878bde2ff13774653db4b918f3b65888db46 | 806 | py | Python | conapp/url_generators.py | drew887/conapp | e40ff851988435ae997050fd37eb0a97c2a162b1 | [
"MIT"
] | null | null | null | conapp/url_generators.py | drew887/conapp | e40ff851988435ae997050fd37eb0a97c2a162b1 | [
"MIT"
] | 1 | 2021-06-02T00:45:53.000Z | 2021-06-02T00:45:53.000Z | conapp/url_generators.py | drew887/conapp | e40ff851988435ae997050fd37eb0a97c2a162b1 | [
"MIT"
] | null | null | null | from conapp.definitions import Hosts
def get_bitbucket_url(user: str, repo: str = "config", commit: str = "master") -> str:
return f"https://bitbucket.org/{user}/{repo}/get/{commit}.tar.gz"
def get_github_url(user: str, repo: str = "config", commit: str = "master") -> str:
return f"https://github.com/{user}... | 26.866667 | 86 | 0.692308 | 114 | 806 | 4.710526 | 0.236842 | 0.044693 | 0.074488 | 0.104283 | 0.722533 | 0.506518 | 0.506518 | 0.506518 | 0.368715 | 0.368715 | 0 | 0 | 0.143921 | 806 | 29 | 87 | 27.793103 | 0.778261 | 0 | 0 | 0 | 0 | 0 | 0.266749 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.058824 | 0.235294 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
a5c78f25552e0195d85ae5fa401e92b9cf7b39ec | 210 | py | Python | goggles/__init__.py | JamesRick/GOGGLES | b660b95a5c72943cafd90e6dc3cdee3e629b9164 | [
"MIT"
] | 26 | 2019-03-13T15:03:54.000Z | 2021-10-04T17:38:25.000Z | goggles/__init__.py | JamesRick/GOGGLES | b660b95a5c72943cafd90e6dc3cdee3e629b9164 | [
"MIT"
] | 11 | 2019-11-10T20:34:33.000Z | 2019-11-30T00:13:14.000Z | goggles/__init__.py | JamesRick/GOGGLES | b660b95a5c72943cafd90e6dc3cdee3e629b9164 | [
"MIT"
] | 9 | 2019-03-14T07:30:53.000Z | 2021-10-02T19:19:35.000Z | from .inference_models.hierarchical_model import infer_labels
from .utils.dataset import GogglesDataset
from .affinity_matrix_construction.construct import construct_image_affinity_matrices
__version__ = '0.1' | 42 | 85 | 0.880952 | 26 | 210 | 6.653846 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010256 | 0.071429 | 210 | 5 | 86 | 42 | 0.876923 | 0 | 0 | 0 | 0 | 0 | 0.014218 | 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 | 0 | 0 | 0 | 3 |
a5ce165befbf16d22727988de758c56967cadda5 | 288 | py | Python | tql/algo_ml/opt_params/__init__.py | Jie-Yuan/1_DataMining | f5338388b4f883233f350d4fb9c5903180883430 | [
"Apache-2.0"
] | 14 | 2019-06-25T13:46:32.000Z | 2020-10-27T02:04:59.000Z | tql/algo_ml/opt_params/__init__.py | Jie-Yuan/2_DataMining | f5338388b4f883233f350d4fb9c5903180883430 | [
"Apache-2.0"
] | null | null | null | tql/algo_ml/opt_params/__init__.py | Jie-Yuan/2_DataMining | f5338388b4f883233f350d4fb9c5903180883430 | [
"Apache-2.0"
] | 7 | 2019-06-25T13:26:16.000Z | 2020-10-27T02:05:03.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
__title__ = '__init__.py'
__author__ = 'JieYuan'
__mtime__ = '19-2-18'
"""
from .Optimizer import Optimizer
from .LGBMOptimizer import LGBMOptimizer
from .XGBOptimizer import XGBOptimizer
from .CatBoostOptimizer import CatBoostOptimizer
| 22.153846 | 48 | 0.753472 | 32 | 288 | 6.28125 | 0.6875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023715 | 0.121528 | 288 | 12 | 49 | 24 | 0.770751 | 0.392361 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
a5d8eb9d3125be528c507e744ab2042606022e69 | 1,017 | py | Python | Decorators__examples/combine_decorators.py | DazEB2/SimplePyScripts | 1dde0a42ba93fe89609855d6db8af1c63b1ab7cc | [
"CC-BY-4.0"
] | 117 | 2015-12-18T07:18:27.000Z | 2022-03-28T00:25:54.000Z | Decorators__examples/combine_decorators.py | DazEB2/SimplePyScripts | 1dde0a42ba93fe89609855d6db8af1c63b1ab7cc | [
"CC-BY-4.0"
] | 8 | 2018-10-03T09:38:46.000Z | 2021-12-13T19:51:09.000Z | Decorators__examples/combine_decorators.py | DazEB2/SimplePyScripts | 1dde0a42ba93fe89609855d6db8af1c63b1ab7cc | [
"CC-BY-4.0"
] | 28 | 2016-08-02T17:43:47.000Z | 2022-03-21T08:31:12.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = 'ipetrash'
import functools
def makebold(func):
@functools.wraps(func)
def wrapped(*args, **kwargs):
return "<b>" + func(*args, **kwargs) + "</b>"
return wrapped
def makeitalic(func):
@functools.wraps(func)
def wrapped(*args... | 15.179104 | 53 | 0.577188 | 127 | 1,017 | 4.574803 | 0.291339 | 0.10327 | 0.092943 | 0.113597 | 0.330465 | 0.330465 | 0.330465 | 0.330465 | 0.247849 | 0 | 0 | 0.005263 | 0.252704 | 1,017 | 66 | 54 | 15.409091 | 0.759211 | 0.095379 | 0 | 0.282051 | 0 | 0 | 0.050218 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.282051 | false | 0 | 0.025641 | 0.153846 | 0.589744 | 0.051282 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
a5f3e5539d275d2f870dbf75c46837d0047a1514 | 823 | py | Python | web/apps/web_copo/templatetags/web_tags_orcid.py | rpatil524/COPO | cc54a6cfac61584cc97a17073d3837a5820a8b95 | [
"MIT"
] | 16 | 2017-02-20T16:20:02.000Z | 2021-08-30T04:35:30.000Z | web/apps/web_copo/templatetags/web_tags_orcid.py | rpatil524/COPO | cc54a6cfac61584cc97a17073d3837a5820a8b95 | [
"MIT"
] | 29 | 2017-12-08T11:49:44.000Z | 2020-10-15T07:19:34.000Z | web/apps/web_copo/templatetags/web_tags_orcid.py | rpatil524/COPO | cc54a6cfac61584cc97a17073d3837a5820a8b95 | [
"MIT"
] | 4 | 2015-10-22T19:06:37.000Z | 2020-08-13T20:00:52.000Z | __author__ = 'felix.shaw@tgac.ac.uk - 02/07/15'
from django import template
register = template.Library()
@register.filter(name="caps")
def caps(value):
return value.capitalize()
@register.filter(name="subtitle")
def subtitle(value):
return ', ' + value
@register.filter(name="add_break")
def add_br(value... | 21.657895 | 83 | 0.64277 | 107 | 823 | 4.785047 | 0.364486 | 0.164063 | 0.210938 | 0.134766 | 0.248047 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009036 | 0.193196 | 823 | 38 | 84 | 21.657895 | 0.762048 | 0 | 0 | 0.142857 | 0 | 0 | 0.194175 | 0.025485 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.035714 | 0.107143 | 0.535714 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
570b79e44a43a4a6e9cbdebeb81f003adb11947c | 1,859 | py | Python | nu/v1/Membranes/RelativeRefractories/Original.py | bullgom/pysnn2 | dad5ae26b029afd5c5bf76fe141249b0f7b7a36c | [
"MIT"
] | null | null | null | nu/v1/Membranes/RelativeRefractories/Original.py | bullgom/pysnn2 | dad5ae26b029afd5c5bf76fe141249b0f7b7a36c | [
"MIT"
] | null | null | null | nu/v1/Membranes/RelativeRefractories/Original.py | bullgom/pysnn2 | dad5ae26b029afd5c5bf76fe141249b0f7b7a36c | [
"MIT"
] | null | null | null | from pydesim import INF, Content, Errors
from .. import States, Ports
class Original:
def __init__(self, membrane, recover_interval, recover_amount):
self.membrane = membrane
self.recover_interval = recover_interval
self.recover_amount = recover_amount
def int_transition(self):
... | 41.311111 | 83 | 0.63206 | 210 | 1,859 | 5.428571 | 0.209524 | 0.336842 | 0.184211 | 0.175439 | 0.574561 | 0.574561 | 0.516667 | 0.357018 | 0.357018 | 0.321053 | 0 | 0 | 0.28241 | 1,859 | 44 | 84 | 42.25 | 0.854573 | 0 | 0 | 0.324324 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081081 | false | 0 | 0.054054 | 0 | 0.189189 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5724e822d69ccbf78b869a04854a8c90c5ef78bd | 108 | py | Python | src/genie/libs/parser/iosxe/tests/ShowNetconfYangStatus/cli/equal/golden_output_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | 204 | 2018-06-27T00:55:27.000Z | 2022-03-06T21:12:18.000Z | src/genie/libs/parser/iosxe/tests/ShowNetconfYangStatus/cli/equal/golden_output_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | 468 | 2018-06-19T00:33:18.000Z | 2022-03-31T23:23:35.000Z | src/genie/libs/parser/iosxe/tests/ShowNetconfYangStatus/cli/equal/golden_output_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | 309 | 2019-01-16T20:21:07.000Z | 2022-03-30T12:56:41.000Z | expected_output = {
'status': 'enabled',
'ssh_port': '830',
'candidate_datastore_status': 'enabled'
}
| 18 | 41 | 0.666667 | 11 | 108 | 6.181818 | 0.818182 | 0.382353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032609 | 0.148148 | 108 | 5 | 42 | 21.6 | 0.706522 | 0 | 0 | 0 | 0 | 0 | 0.527778 | 0.240741 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
574656c17959344c5f98dc4ce468864230ac1217 | 619 | py | Python | app/api/services/game_services/event_card_handlers/fountain_of_youth.py | Glyphack/tortuga | 42444a850c7587a01b75a2b13fae4a37e38ab79b | [
"MIT"
] | 5 | 2020-03-14T13:22:40.000Z | 2021-07-12T11:55:18.000Z | app/api/services/game_services/event_card_handlers/fountain_of_youth.py | Glyphack/tortuga | 42444a850c7587a01b75a2b13fae4a37e38ab79b | [
"MIT"
] | 10 | 2020-04-01T16:28:49.000Z | 2021-02-27T09:06:07.000Z | app/api/services/game_services/event_card_handlers/fountain_of_youth.py | Glyphack/tortuga | 42444a850c7587a01b75a2b13fae4a37e38ab79b | [
"MIT"
] | null | null | null | from typing import List
from app.models.event_cards import EventCardsManager
from .event_card_handler import EventCardHandler
class FountainOfYouth(EventCardHandler):
def reveal(self):
self.game.get_player_info(self.player).event_cards.append(
self.slug
)
@property
def option... | 19.34375 | 66 | 0.646204 | 70 | 619 | 5.585714 | 0.485714 | 0.140665 | 0.092072 | 0.112532 | 0.26087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.271405 | 619 | 31 | 67 | 19.967742 | 0.866962 | 0 | 0 | 0.391304 | 0 | 0 | 0.027464 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.26087 | false | 0 | 0.130435 | 0.217391 | 0.652174 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
938c43e7a32a450d12243d027ebd183c3bce2a08 | 1,767 | py | Python | domains/gym_craft/tests/clipping.py | AndrewPaulChester/sage-code | 9fe676bfbcbc6f642eca29b30a1027fba2a426a0 | [
"MIT"
] | null | null | null | domains/gym_craft/tests/clipping.py | AndrewPaulChester/sage-code | 9fe676bfbcbc6f642eca29b30a1027fba2a426a0 | [
"MIT"
] | null | null | null | domains/gym_craft/tests/clipping.py | AndrewPaulChester/sage-code | 9fe676bfbcbc6f642eca29b30a1027fba2a426a0 | [
"MIT"
] | null | null | null | from domains.gym_craft.simulator.craft_world import CraftWorldSimulator
from domains.gym_craft.utils.representations import (
json_to_symbolic,
json_to_screen,
json_to_mixed,
json_to_pddl,
json_to_centered,
)
from domains.gym_craft.utils.utils import blocking_terrain
from domains.gym_craft.envs.roo... | 25.608696 | 71 | 0.750424 | 262 | 1,767 | 4.946565 | 0.198473 | 0.162037 | 0.231481 | 0.236111 | 0.656636 | 0.619599 | 0.619599 | 0.619599 | 0.619599 | 0.619599 | 0 | 0.013283 | 0.105263 | 1,767 | 68 | 72 | 25.985294 | 0.806452 | 0.468591 | 0 | 0.423077 | 0 | 0 | 0.016465 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.153846 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
939373a7619a87f02bcbcb7c3c6adb4b9d6fa4f1 | 390 | py | Python | src/python/1-25/problem_16.py | Fazendaaa/project-euler | 80286ffe2db566872953d3021c3d6006f686c2cf | [
"MIT"
] | 3 | 2017-09-16T11:45:17.000Z | 2018-06-20T23:21:29.000Z | src/python/1-25/problem_16.py | Fazendaaa/project-euler | 80286ffe2db566872953d3021c3d6006f686c2cf | [
"MIT"
] | null | null | null | src/python/1-25/problem_16.py | Fazendaaa/project-euler | 80286ffe2db566872953d3021c3d6006f686c2cf | [
"MIT"
] | null | null | null | """
Power digit sum
2**15 = 32768 and the sum of its digits is 3 + 2 + 7 + 6 + 8 = 26.
What is the sum of the digits of the number 2**1000?
Answer: 1366
"""
def power_digit_sum(base, power):
"""Return the sum of the digtis in base**power"""
return sum([int(... | 24.375 | 70 | 0.564103 | 65 | 390 | 3.323077 | 0.507692 | 0.138889 | 0.180556 | 0.12963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108209 | 0.312821 | 390 | 15 | 71 | 26 | 0.697761 | 0.705128 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0.333333 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
939487245b839855260e652778609464c499660a | 135 | py | Python | datasets/__init__.py | EJShim/spiralnet_plus | ff108aa9f70ff602432bd8086ff2a70f0dce37b7 | [
"MIT"
] | 78 | 2019-11-05T07:54:24.000Z | 2022-03-26T07:35:06.000Z | datasets/__init__.py | EJShim/spiralnet_plus | ff108aa9f70ff602432bd8086ff2a70f0dce37b7 | [
"MIT"
] | 8 | 2019-11-29T18:08:43.000Z | 2022-01-27T23:27:38.000Z | datasets/__init__.py | EJShim/spiralnet_plus | ff108aa9f70ff602432bd8086ff2a70f0dce37b7 | [
"MIT"
] | 11 | 2020-03-27T21:37:12.000Z | 2022-02-24T12:28:45.000Z | from .coma import CoMA
from .faust import FAUST
from .meshdata import MeshData
__all__ = [
'CoMA',
'FAUST',
'MeshData',
]
| 13.5 | 30 | 0.651852 | 16 | 135 | 5.25 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.237037 | 135 | 9 | 31 | 15 | 0.815534 | 0 | 0 | 0 | 0 | 0 | 0.125926 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
93a3ad346cc948defe63bbb9e9ba4b49d53d1e1f | 516 | py | Python | app/decision.py | JasonCaldwellMBA/Winning_Texas_Holdem_Strategy | 6ece8756f45982eee99b13e174caed515a7a31d8 | [
"MIT"
] | 1 | 2020-06-12T08:25:42.000Z | 2020-06-12T08:25:42.000Z | app/decision.py | AutomatingSoftwareTesting/Winning_Texas_Holdem_Strategy | 6ece8756f45982eee99b13e174caed515a7a31d8 | [
"MIT"
] | null | null | null | app/decision.py | AutomatingSoftwareTesting/Winning_Texas_Holdem_Strategy | 6ece8756f45982eee99b13e174caed515a7a31d8 | [
"MIT"
] | 1 | 2019-09-04T14:54:45.000Z | 2019-09-04T14:54:45.000Z | class Decision(object):
def __init__(self, action=None):
self.action = action
def get_action(self):
return self.action
def decision(self):
action = self.get_action()
if action == 4:
return "open"
elif action == 6:
return "fold"
elif a... | 24.571429 | 76 | 0.546512 | 61 | 516 | 4.459016 | 0.52459 | 0.183824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009063 | 0.358527 | 516 | 20 | 77 | 25.8 | 0.812689 | 0.091085 | 0 | 0 | 0 | 0 | 0.057816 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0 | 0.117647 | 0.588235 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
93ab63d30267fada709156b70584f2fa1534e58c | 1,776 | py | Python | tests/test_datetime.py | virtualanup/hal | c45757ee2d0661b6f1a5141fc67ebe94cf3ab673 | [
"MIT"
] | 3 | 2017-02-14T01:00:39.000Z | 2017-06-11T09:51:20.000Z | tests/test_datetime.py | virtualanup/hal | c45757ee2d0661b6f1a5141fc67ebe94cf3ab673 | [
"MIT"
] | null | null | null | tests/test_datetime.py | virtualanup/hal | c45757ee2d0661b6f1a5141fc67ebe94cf3ab673 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import unicode_literals
from hal.libraries.datetime import DateTime
from .libtest import HalLibTest
class DateTimeTestCase(HalLibTest):
"""
Test case for date and time library
"""
lib = DateTime
def test_response(sel... | 37.787234 | 96 | 0.717342 | 245 | 1,776 | 4.991837 | 0.236735 | 0.155356 | 0.212592 | 0.297629 | 0.714636 | 0.677841 | 0.665576 | 0.515944 | 0.321341 | 0.235487 | 0 | 0.000705 | 0.201014 | 1,776 | 46 | 97 | 38.608696 | 0.86117 | 0.032658 | 0 | 0.076923 | 0 | 0 | 0.365452 | 0 | 0 | 0 | 0 | 0 | 0.730769 | 1 | 0.038462 | false | 0 | 0.153846 | 0 | 0.269231 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
93af66094802a55bcf0ec10407415d23f5e9d9fc | 2,431 | py | Python | test/test_parse_kwarg_version.py | matthewdeanmartin/jiggle_version | 7bb82b75321e007f9e9e6d52a7bc569a5fe41052 | [
"MIT"
] | 1 | 2019-02-23T16:13:56.000Z | 2019-02-23T16:13:56.000Z | test/test_parse_kwarg_version.py | matthewdeanmartin/jiggle_version | 7bb82b75321e007f9e9e6d52a7bc569a5fe41052 | [
"MIT"
] | 17 | 2018-07-14T17:04:49.000Z | 2022-03-24T15:59:11.000Z | test/test_parse_kwarg_version.py | matthewdeanmartin/jiggle_version | 7bb82b75321e007f9e9e6d52a7bc569a5fe41052 | [
"MIT"
] | 1 | 2019-12-01T02:18:36.000Z | 2019-12-01T02:18:36.000Z | """
Is that a version string, a tuple or a int or float? 'Cause in the wild people use all of those.
"""
from jiggle_version.parse_kwarg_version import find_in_line
# TODO: enable test
# def test_oneliner():
#
# result = find_in_line("setup(version = \"1.2.4\")")
# assert result == "1.2.4", result
#
def test_r... | 28.6 | 96 | 0.606335 | 365 | 2,431 | 3.843836 | 0.164384 | 0.037063 | 0.156807 | 0.239487 | 0.666429 | 0.65645 | 0.581611 | 0.519601 | 0.501069 | 0.492516 | 0 | 0.050505 | 0.226244 | 2,431 | 84 | 97 | 28.940476 | 0.695375 | 0.165775 | 0 | 0.466667 | 0 | 0 | 0.267332 | 0.032918 | 0 | 0 | 0 | 0.011905 | 0.422222 | 1 | 0.088889 | false | 0 | 0.022222 | 0 | 0.111111 | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
93afa968a29461cdd493ffe857859a52937e4b6b | 349 | py | Python | 2021-07/demo001.py | zhouyuanmin/MyDemo | 664977a6243992c77931e58b98f5262745759d1a | [
"MIT"
] | null | null | null | 2021-07/demo001.py | zhouyuanmin/MyDemo | 664977a6243992c77931e58b98f5262745759d1a | [
"MIT"
] | null | null | null | 2021-07/demo001.py | zhouyuanmin/MyDemo | 664977a6243992c77931e58b98f5262745759d1a | [
"MIT"
] | null | null | null | class Car:
def __init__(self, name, loss):
# loss [价格,油耗,公里数]
self.name = name
self.loss = loss
def get_name(self):
return self.name
def get_price(self):
# 获取汽车价格
return self.loss[0]
def get_loss(self):
# 获取汽车损耗值
return self.loss[1] * se... | 17.45 | 42 | 0.541547 | 48 | 349 | 3.791667 | 0.416667 | 0.175824 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013043 | 0.340974 | 349 | 19 | 43 | 18.368421 | 0.778261 | 0.088825 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | false | 0 | 0 | 0.272727 | 0.727273 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
93d2faf81fa7e174984d5f8d9eecde9a5e319231 | 1,242 | py | Python | src/TheLanguage/Parser/Common/ClassModifier.py | davidbrownell/DavidBrownell_TheLanguage | 07170b448a0ebd7fa2325c9ccd4cefdb3cf7eb98 | [
"BSL-1.0"
] | null | null | null | src/TheLanguage/Parser/Common/ClassModifier.py | davidbrownell/DavidBrownell_TheLanguage | 07170b448a0ebd7fa2325c9ccd4cefdb3cf7eb98 | [
"BSL-1.0"
] | null | null | null | src/TheLanguage/Parser/Common/ClassModifier.py | davidbrownell/DavidBrownell_TheLanguage | 07170b448a0ebd7fa2325c9ccd4cefdb3cf7eb98 | [
"BSL-1.0"
] | 1 | 2021-06-18T18:58:57.000Z | 2021-06-18T18:58:57.000Z | # ----------------------------------------------------------------------
# |
# | ClassModifier.py
# |
# | David Brownell <db@DavidBrownell.com>
# | 2021-10-08 10:16:11
# |
# ----------------------------------------------------------------------
# |
# | Copyright David Brownell 2021
# | Distributed un... | 34.5 | 79 | 0.377617 | 85 | 1,242 | 5.376471 | 0.658824 | 0.013129 | 0.039387 | 0.052516 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024691 | 0.217391 | 1,242 | 35 | 80 | 35.485714 | 0.445473 | 0.640097 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
93e072da3038c4bb6cdc3e113cab1454d752c7fe | 878 | py | Python | python/code_challenges/tree_intersection/test_tree_intersection.py | u-will/data-structures-and-algorithms | 7ef7b5a527fbcacef8cbfe7a01fc69990c7358c3 | [
"MIT"
] | null | null | null | python/code_challenges/tree_intersection/test_tree_intersection.py | u-will/data-structures-and-algorithms | 7ef7b5a527fbcacef8cbfe7a01fc69990c7358c3 | [
"MIT"
] | null | null | null | python/code_challenges/tree_intersection/test_tree_intersection.py | u-will/data-structures-and-algorithms | 7ef7b5a527fbcacef8cbfe7a01fc69990c7358c3 | [
"MIT"
] | null | null | null | from tree_intersection import tree_intersection
from tree import BinaryTree, Node
def test_one_interstion():
tree1 = BinaryTree()
tree1.add(4)
tree1.root.left = Node(9)
tree1.root.right = Node(3)
tree2 = BinaryTree()
tree2.add(4)
tree2.root.left = Node(32)
tree2.root.right = Node(7)
... | 20.418605 | 47 | 0.640091 | 121 | 878 | 4.578512 | 0.206612 | 0.097473 | 0.129964 | 0.101083 | 0.722022 | 0.722022 | 0.722022 | 0.581227 | 0.581227 | 0.51444 | 0 | 0.072808 | 0.233485 | 878 | 42 | 48 | 20.904762 | 0.750371 | 0 | 0 | 0.733333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 1 | 0.066667 | false | 0 | 0.066667 | 0 | 0.133333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
93fcc0294fabc1855ebfc1aefc417cf6b4821cc1 | 2,160 | py | Python | aboutus/migrations/0001_initial.py | Alwin1847207/Hackathon | 473adea12822cbe2be9a7525ac29391659f0ab6b | [
"bzip2-1.0.6"
] | null | null | null | aboutus/migrations/0001_initial.py | Alwin1847207/Hackathon | 473adea12822cbe2be9a7525ac29391659f0ab6b | [
"bzip2-1.0.6"
] | null | null | null | aboutus/migrations/0001_initial.py | Alwin1847207/Hackathon | 473adea12822cbe2be9a7525ac29391659f0ab6b | [
"bzip2-1.0.6"
] | null | null | null | # Generated by Django 2.1 on 2019-08-21 13:03
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='AboutDescription',
fields=[
('id', models.Aut... | 39.272727 | 114 | 0.557407 | 198 | 2,160 | 5.944444 | 0.343434 | 0.165675 | 0.198811 | 0.265081 | 0.566695 | 0.268479 | 0.268479 | 0.268479 | 0.268479 | 0.268479 | 0 | 0.03183 | 0.301852 | 2,160 | 54 | 115 | 40 | 0.748674 | 0.019907 | 0 | 0.425532 | 1 | 0 | 0.107801 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.021277 | 0 | 0.106383 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9e10760a6fdff76c035e33cb88f6c434d7b43ea7 | 530 | py | Python | decorators.py | Deepanraj79/python-best-practices | ac9f83320ec0fc5bf44a4e71f6154c5074b2e10e | [
"Apache-2.0"
] | null | null | null | decorators.py | Deepanraj79/python-best-practices | ac9f83320ec0fc5bf44a4e71f6154c5074b2e10e | [
"Apache-2.0"
] | null | null | null | decorators.py | Deepanraj79/python-best-practices | ac9f83320ec0fc5bf44a4e71f6154c5074b2e10e | [
"Apache-2.0"
] | null | null | null | def user_id_validator(source_function):
"""Function which can be used as a decorator to validate the user id"""
def function_wrapper(*args, **kwargs):
exe_res = source_function(*args, **kwargs)
return exe_res
return function_wrapper
@user_id_validator
def sample_function(arg1, arg2):
... | 24.090909 | 75 | 0.7 | 73 | 530 | 4.931507 | 0.575342 | 0.05 | 0.083333 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014599 | 0.224528 | 530 | 21 | 76 | 25.238095 | 0.861314 | 0.45283 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0.125 | 0 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
f517cb636bcc8e6ad012b1ffc0451a481be2dce1 | 724 | py | Python | django/alumnos/Equipo 3/historial_medico_mujeres_priv-master/project/my_web/my_web/enfermedades/models.py | R3SWebDevelopment/CeroUnoApprenticeshipProgramPython | b00b3dce329240889401627e99b72d3d9cadb7d9 | [
"MIT"
] | 1 | 2019-11-29T21:34:42.000Z | 2019-11-29T21:34:42.000Z | django/alumnos/Equipo 3/historial_medico_mujeres_priv-master/project/my_web/my_web/enfermedades/models.py | R3SWebDevelopment/CeroUnoApprenticeshipProgramPython | b00b3dce329240889401627e99b72d3d9cadb7d9 | [
"MIT"
] | null | null | null | django/alumnos/Equipo 3/historial_medico_mujeres_priv-master/project/my_web/my_web/enfermedades/models.py | R3SWebDevelopment/CeroUnoApprenticeshipProgramPython | b00b3dce329240889401627e99b72d3d9cadb7d9 | [
"MIT"
] | 1 | 2019-11-30T17:51:50.000Z | 2019-11-30T17:51:50.000Z | from django.db import models
class Enfermedad(models.Model):
clasificacion = models.CharField(max_length=200, null=False, blank=False)
nombre_enfermedad = models.CharField(max_length=200, null=False, blank=False)
enfermedad_mortal = models.BooleanField(default=False)
fecha_deteccion = models.DateField(... | 40.222222 | 152 | 0.759669 | 94 | 724 | 5.595745 | 0.425532 | 0.068441 | 0.106464 | 0.144487 | 0.361217 | 0.361217 | 0.361217 | 0.361217 | 0.361217 | 0.186312 | 0 | 0.009677 | 0.143646 | 724 | 17 | 153 | 42.588235 | 0.83871 | 0 | 0 | 0.153846 | 0 | 0 | 0.075967 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0.153846 | 0.076923 | 0.076923 | 0.846154 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
f5514172ddd6b4e52b9a7f726c45a50e9d0dadb8 | 5,169 | py | Python | lib/googlecloudsdk/api_lib/containeranalysis/filter_util.py | google-cloud-sdk-unofficial/google-cloud-sdk | 2a48a04df14be46c8745050f98768e30474a1aac | [
"Apache-2.0"
] | 2 | 2019-11-10T09:17:07.000Z | 2019-12-18T13:44:08.000Z | lib/googlecloudsdk/api_lib/containeranalysis/filter_util.py | google-cloud-sdk-unofficial/google-cloud-sdk | 2a48a04df14be46c8745050f98768e30474a1aac | [
"Apache-2.0"
] | null | null | null | lib/googlecloudsdk/api_lib/containeranalysis/filter_util.py | google-cloud-sdk-unofficial/google-cloud-sdk | 2a48a04df14be46c8745050f98768e30474a1aac | [
"Apache-2.0"
] | 1 | 2020-07-25T01:40:19.000Z | 2020-07-25T01:40:19.000Z | # -*- coding: utf-8 -*- #
# Copyright 2020 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | 34.46 | 98 | 0.709808 | 687 | 5,169 | 5.173217 | 0.275109 | 0.047271 | 0.047271 | 0.033765 | 0.258301 | 0.19471 | 0.136185 | 0.136185 | 0.088914 | 0.088914 | 0 | 0.005497 | 0.190559 | 5,169 | 149 | 99 | 34.691275 | 0.843929 | 0.496228 | 0 | 0.181818 | 0 | 0 | 0.04 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.227273 | false | 0 | 0.045455 | 0.121212 | 0.515152 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
f55577484a2442c8a5240f663fb06b9ef7e302bf | 81 | py | Python | python_crash_course/chapter_02/2-01_simple_message.py | valdsonmota/python-studies | 1abf5ba4337006f77b2a162b37f341b116414f59 | [
"MIT"
] | null | null | null | python_crash_course/chapter_02/2-01_simple_message.py | valdsonmota/python-studies | 1abf5ba4337006f77b2a162b37f341b116414f59 | [
"MIT"
] | null | null | null | python_crash_course/chapter_02/2-01_simple_message.py | valdsonmota/python-studies | 1abf5ba4337006f77b2a162b37f341b116414f59 | [
"MIT"
] | null | null | null | #Exercise 2-1 - Simple Message
message = 'Russia invades Ukraine'
print(message)
| 20.25 | 34 | 0.765432 | 11 | 81 | 5.636364 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028571 | 0.135802 | 81 | 3 | 35 | 27 | 0.857143 | 0.358025 | 0 | 0 | 0 | 0 | 0.431373 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
19111c3066f80f1a9439ea19a6fe489116622233 | 1,039 | py | Python | fp/foldable.py | daebr/python-fp | 4f196ed420e2e169f8957644695d73c1699089e5 | [
"MIT"
] | null | null | null | fp/foldable.py | daebr/python-fp | 4f196ed420e2e169f8957644695d73c1699089e5 | [
"MIT"
] | null | null | null | fp/foldable.py | daebr/python-fp | 4f196ed420e2e169f8957644695d73c1699089e5 | [
"MIT"
] | null | null | null |
class Foldable:
"""
A foldable is a data structure that can be collapsed into a single value.
"""
def fold(self, f, z):
"""
Apply a two-parameter function `f` to each element of the foldable
structure `t a`, passing the result onto the next element. An initial
... | 24.738095 | 78 | 0.504331 | 139 | 1,039 | 3.769784 | 0.438849 | 0.022901 | 0.062977 | 0.114504 | 0.137405 | 0.09542 | 0 | 0 | 0 | 0 | 0 | 0.00317 | 0.392685 | 1,039 | 41 | 79 | 25.341463 | 0.827258 | 0.482194 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.444444 | false | 0.111111 | 0 | 0 | 0.888889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
1912f16322a579a06a467e69945984608a2a1c46 | 481 | py | Python | gooddata-sdk/gooddata_sdk/catalog/workspace/entity_model/content_objects/metric.py | hkad98/gooddata-python-sdk | 64942080ecb44c2d8e914e57f7a591daa6cca205 | [
"MIT"
] | 7 | 2022-01-24T16:27:06.000Z | 2022-02-25T10:18:49.000Z | gooddata-sdk/gooddata_sdk/catalog/workspace/entity_model/content_objects/metric.py | hkad98/gooddata-python-sdk | 64942080ecb44c2d8e914e57f7a591daa6cca205 | [
"MIT"
] | 29 | 2022-01-20T15:45:38.000Z | 2022-03-31T09:39:25.000Z | gooddata-sdk/gooddata_sdk/catalog/workspace/entity_model/content_objects/metric.py | hkad98/gooddata-python-sdk | 64942080ecb44c2d8e914e57f7a591daa6cca205 | [
"MIT"
] | 7 | 2022-01-20T07:11:15.000Z | 2022-03-09T14:50:17.000Z | # (C) 2022 GoodData Corporation
from __future__ import annotations
from gooddata_sdk.catalog.entity import CatalogEntity
from gooddata_sdk.compute.model.base import ObjId
from gooddata_sdk.compute.model.metric import Metric, SimpleMetric
class CatalogMetric(CatalogEntity):
@property
def format(self) -> str:
... | 30.0625 | 76 | 0.754678 | 61 | 481 | 5.786885 | 0.540984 | 0.101983 | 0.127479 | 0.124646 | 0.152975 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009756 | 0.147609 | 481 | 15 | 77 | 32.066667 | 0.85122 | 0.060291 | 0 | 0 | 0 | 0 | 0.042222 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0.2 | 0.9 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
193ff384884fac53146b1fac5a558ea5a7324c84 | 4,221 | py | Python | collisions.py | ThevinSilva/sonic.py | 9a5ee3bf208b68d21e70ce13ece916d80c03e0dd | [
"MIT"
] | null | null | null | collisions.py | ThevinSilva/sonic.py | 9a5ee3bf208b68d21e70ce13ece916d80c03e0dd | [
"MIT"
] | null | null | null | collisions.py | ThevinSilva/sonic.py | 9a5ee3bf208b68d21e70ce13ece916d80c03e0dd | [
"MIT"
] | null | null | null | import pygame
'''collision routines'''
def move(camera,player,floor):
# player.rect.move_ip(0, floor - (player.rect.y + 192))
camera.rect.move_ip(0, floor - (player.rect.y + 192))
def get_rect(obj):
return pygame.Rect(obj[0], obj[1], 64, 64)
def col_det(sensor,_list):
for i in _list:
... | 41.382353 | 120 | 0.618337 | 579 | 4,221 | 4.279793 | 0.136442 | 0.159806 | 0.150121 | 0.205811 | 0.736077 | 0.713479 | 0.713479 | 0.637207 | 0.543584 | 0.404762 | 0 | 0.019015 | 0.239991 | 4,221 | 101 | 121 | 41.792079 | 0.753429 | 0.101635 | 0 | 0.394366 | 0 | 0 | 0.10813 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.098592 | false | 0 | 0.014085 | 0.014085 | 0.267606 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1962e182c0f8a5b3cf3488ad209fa12c57868701 | 141 | py | Python | zerobouncesdk/zb_exceptions.py | zerobounce-llc/zero-bounce-python-sdk-setup | 46dcdce9ece529e23d65fa92fb81f8ac19ce5c2e | [
"MIT"
] | null | null | null | zerobouncesdk/zb_exceptions.py | zerobounce-llc/zero-bounce-python-sdk-setup | 46dcdce9ece529e23d65fa92fb81f8ac19ce5c2e | [
"MIT"
] | null | null | null | zerobouncesdk/zb_exceptions.py | zerobounce-llc/zero-bounce-python-sdk-setup | 46dcdce9ece529e23d65fa92fb81f8ac19ce5c2e | [
"MIT"
] | null | null | null | class ZBException(Exception):
pass
class ZBApiException(ZBException):
pass
class ZBMissingApiKeyException(ZBException):
pass
| 12.818182 | 44 | 0.758865 | 12 | 141 | 8.916667 | 0.5 | 0.168224 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.177305 | 141 | 10 | 45 | 14.1 | 0.922414 | 0 | 0 | 0.5 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
1965fe01fda843a58324b5e051d7cc20cb0b88de | 28 | py | Python | lang/py/cookbook/v2/source/cb2_1_0_exm_8.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | null | null | null | lang/py/cookbook/v2/source/cb2_1_0_exm_8.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | null | null | null | lang/py/cookbook/v2/source/cb2_1_0_exm_8.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | null | null | null | hello = u'Hello\u0020World'
| 14 | 27 | 0.75 | 4 | 28 | 5.25 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16 | 0.107143 | 28 | 1 | 28 | 28 | 0.68 | 0 | 0 | 0 | 0 | 0 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
197c85740fd7f7860a57768fbd17dea845d76d09 | 82 | py | Python | tools/env.py | penguin-judge/PenguinJudge | 82986649482a04cfd16f81362873babb579aae0b | [
"MIT"
] | 13 | 2020-03-24T13:07:55.000Z | 2020-10-25T03:37:13.000Z | tools/env.py | penguin-judge/PenguinJudge | 82986649482a04cfd16f81362873babb579aae0b | [
"MIT"
] | 40 | 2020-05-11T07:05:43.000Z | 2022-02-27T04:48:33.000Z | tools/env.py | penguin-judge/PenguinJudge | 82986649482a04cfd16f81362873babb579aae0b | [
"MIT"
] | 3 | 2020-05-15T01:39:28.000Z | 2020-07-06T02:23:18.000Z | ADMIN_USER = 'admin'
ADMIN_PASS = 'penguinpenguin'
URL = 'http://127.0.0.1:8000/'
| 20.5 | 30 | 0.682927 | 13 | 82 | 4.153846 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136986 | 0.109756 | 82 | 3 | 31 | 27.333333 | 0.60274 | 0 | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.333333 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
19819595c86d06c3d08e0d06a00f04ff4d108cfd | 377 | py | Python | django/Ninja_Gold/mini_game/models.py | MiyaSteven/python_stack | c0f766d646b155efb4f6dd9df3eddfe72b14d91c | [
"MIT"
] | null | null | null | django/Ninja_Gold/mini_game/models.py | MiyaSteven/python_stack | c0f766d646b155efb4f6dd9df3eddfe72b14d91c | [
"MIT"
] | null | null | null | django/Ninja_Gold/mini_game/models.py | MiyaSteven/python_stack | c0f766d646b155efb4f6dd9df3eddfe72b14d91c | [
"MIT"
] | null | null | null | from django.db import models
class User(models.Model):
name = models.CharField(max_length=50)
password = models.CharField(max_length=255)
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(auto_now=True)
total_gold = models.IntegerField()
max_turns = mode... | 31.416667 | 59 | 0.740053 | 48 | 377 | 5.604167 | 0.583333 | 0.200743 | 0.133829 | 0.178439 | 0.208178 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015823 | 0.161804 | 377 | 11 | 60 | 34.272727 | 0.835443 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.111111 | 0.111111 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
19956c1c494c4555ab780824c47693481c848de3 | 46 | py | Python | wafw00f/__init__.py | akun/wafw00f | b71807f3b90f223afd925ba21227e275f994bd30 | [
"BSD-3-Clause"
] | 10 | 2015-08-31T10:38:24.000Z | 2021-09-30T06:39:13.000Z | wafw00f/__init__.py | raminfp/wafw00f | 98796bfba768ee3128e09c2b9e0aa05b8c0d2116 | [
"BSD-3-Clause"
] | null | null | null | wafw00f/__init__.py | raminfp/wafw00f | 98796bfba768ee3128e09c2b9e0aa05b8c0d2116 | [
"BSD-3-Clause"
] | 17 | 2015-07-24T20:40:23.000Z | 2021-01-08T19:41:18.000Z | #!/usr/bin/env python
__version__ = '0.9.4'
| 9.2 | 21 | 0.630435 | 8 | 46 | 3.125 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 0.152174 | 46 | 4 | 22 | 11.5 | 0.564103 | 0.434783 | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5fd8d1aa6ee0153de456fc7f3b32c5c78d362816 | 138 | py | Python | pytablereader/_logger/__init__.py | sthagen/thombashi-pytablereader | b59859da6fdcc94035933dd253e6e380b04a233b | [
"MIT"
] | 81 | 2017-03-18T02:57:29.000Z | 2022-03-26T16:54:59.000Z | pytablereader/_logger/__init__.py | sthagen/pytablereader | b59859da6fdcc94035933dd253e6e380b04a233b | [
"MIT"
] | 4 | 2017-08-09T14:58:48.000Z | 2020-04-17T12:59:29.000Z | pytablereader/_logger/__init__.py | sthagen/pytablereader | b59859da6fdcc94035933dd253e6e380b04a233b | [
"MIT"
] | 11 | 2017-05-02T16:23:59.000Z | 2021-12-10T15:05:39.000Z | from ._logger import (
FileSourceLogger,
NullSourceLogger,
TextSourceLogger,
logger,
set_log_level,
set_logger,
)
| 15.333333 | 22 | 0.681159 | 12 | 138 | 7.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.253623 | 138 | 8 | 23 | 17.25 | 0.873786 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.125 | 0 | 0.125 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5ff60da02db5bf9a415d24fa26306e4139fcc890 | 22 | py | Python | src/python/__init__.py | TU-Berlin-DIMA/myriad-toolkit | 5f7610e10b11e05591d6e2dc030c3ca5dc2a90b4 | [
"BSL-1.0"
] | 15 | 2015-01-18T18:02:16.000Z | 2021-08-02T09:20:35.000Z | src/python/__init__.py | TU-Berlin-DIMA/myriad-toolkit | 5f7610e10b11e05591d6e2dc030c3ca5dc2a90b4 | [
"BSL-1.0"
] | null | null | null | src/python/__init__.py | TU-Berlin-DIMA/myriad-toolkit | 5f7610e10b11e05591d6e2dc030c3ca5dc2a90b4 | [
"BSL-1.0"
] | 5 | 2015-08-10T21:50:39.000Z | 2018-03-14T15:31:28.000Z | __all__ = [ "myriad" ] | 22 | 22 | 0.590909 | 2 | 22 | 4.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 22 | 1 | 22 | 22 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0.26087 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2735a659ae22030f215e8c2a95990f01b770d234 | 61 | py | Python | bodyposition/__init__.py | mjirik/bodyposition | 171d6b6d617a599f24902a8b5d81a318ac56668f | [
"MIT"
] | 1 | 2021-03-01T15:13:20.000Z | 2021-03-01T15:13:20.000Z | bodyposition/__init__.py | mjirik/bodyposition | 171d6b6d617a599f24902a8b5d81a318ac56668f | [
"MIT"
] | null | null | null | bodyposition/__init__.py | mjirik/bodyposition | 171d6b6d617a599f24902a8b5d81a318ac56668f | [
"MIT"
] | null | null | null | __version__ = "0.0.9"
from .bodyposition import BodyPosition | 20.333333 | 38 | 0.786885 | 8 | 61 | 5.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 0.114754 | 61 | 3 | 38 | 20.333333 | 0.759259 | 0 | 0 | 0 | 0 | 0 | 0.080645 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
273c376a6059379b8e3d6032ac78efaa5e27a55c | 742 | py | Python | src/core/__init__.py | wmglab-duke/ascent | 2ca8c39a4462a728108038294ddac27488e9758b | [
"MIT"
] | 13 | 2021-07-21T18:03:28.000Z | 2022-02-14T17:25:33.000Z | src/core/__init__.py | wmglab-duke/ascent | 2ca8c39a4462a728108038294ddac27488e9758b | [
"MIT"
] | 6 | 2021-09-29T17:01:59.000Z | 2022-02-02T18:06:34.000Z | src/core/__init__.py | wmglab-duke/ascent | 2ca8c39a4462a728108038294ddac27488e9758b | [
"MIT"
] | 4 | 2021-09-02T09:39:21.000Z | 2021-11-04T22:42:01.000Z | #!/usr/bin/env python3.7
"""
The copyrights of this software are owned by Duke University.
Please refer to the LICENSE.txt and README.txt files for licensing instructions.
The source code can be found on the following GitHub repository: https://github.com/wmglab-duke/ascent
"""
from src.core.map import Map, SlideInfo... | 37.1 | 102 | 0.816712 | 119 | 742 | 5.084034 | 0.478992 | 0.138843 | 0.218182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003053 | 0.117251 | 742 | 20 | 103 | 37.1 | 0.920611 | 0.362534 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 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 | 0 | 0 | 0 | 3 |
2774495212b449f4040680ca37d5dfca4522a01a | 2,155 | py | Python | translation_project/management/commands/generatei18ndict.py | Pierre-Sassoulas/django-zxcvbn-password-validator | 034ab1a8c3f2c1a9496b09824027a6b1349f3e63 | [
"MIT"
] | 26 | 2018-08-31T06:56:43.000Z | 2022-01-27T10:21:36.000Z | translation_project/management/commands/generatei18ndict.py | Pierre-Sassoulas/django-zxcvbn-password-validator | 034ab1a8c3f2c1a9496b09824027a6b1349f3e63 | [
"MIT"
] | 9 | 2018-08-15T14:49:35.000Z | 2022-01-27T20:14:02.000Z | translation_project/management/commands/generatei18ndict.py | Pierre-Sassoulas/django-zxcvbn-password-validator | 034ab1a8c3f2c1a9496b09824027a6b1349f3e63 | [
"MIT"
] | 8 | 2018-08-15T13:53:10.000Z | 2022-01-12T14:40:10.000Z | from django.core.management.base import BaseCommand
class Command(BaseCommand):
help = "Will generate what the i18n dict for the translate_zxcvbn_text function"
def handle(self, *args, **options):
existings_messages = [
"Use a few words, avoid common phrases",
"No need for sy... | 46.847826 | 87 | 0.589791 | 267 | 2,155 | 4.734082 | 0.483146 | 0.066456 | 0.087025 | 0.077532 | 0.156646 | 0.045886 | 0 | 0 | 0 | 0 | 0 | 0.008941 | 0.32529 | 2,155 | 45 | 88 | 47.888889 | 0.860385 | 0 | 0 | 0 | 1 | 0 | 0.622738 | 0.01949 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02439 | false | 0.097561 | 0.02439 | 0 | 0.097561 | 0.02439 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
2779b8ada293b80328ccc8ff1d42f4856dbc731a | 3,699 | py | Python | p1_basic/day16_21module/day19/02_os模块.py | dong-pro/fullStackPython | 5ad8662f7b57f14c8529e7eaf64290eeda773557 | [
"Apache-2.0"
] | 1 | 2020-04-03T01:32:05.000Z | 2020-04-03T01:32:05.000Z | p1_basic/day16_21module/day19/02_os模块.py | dong-pro/fullStackPython | 5ad8662f7b57f14c8529e7eaf64290eeda773557 | [
"Apache-2.0"
] | null | null | null | p1_basic/day16_21module/day19/02_os模块.py | dong-pro/fullStackPython | 5ad8662f7b57f14c8529e7eaf64290eeda773557 | [
"Apache-2.0"
] | null | null | null | import os
# 把路径中不符合规范的/改成操作系统默认的格式
path = os.path.abspath('/Users/wangyadong/PycharmProjects/pyRoad/py_old_boy_15/pytrain_03_module/day19/02_os模块.py')
print(path)
# 能够给能找到的相对路径改成绝对路径
path = os.path.abspath('02_os模块.py')
print(path)
# 就是把一个路径分成两段,第二段是一个文件/文件夹
path = os.path.split('/Users/wangyadong/PycharmProjects/pyR... | 43.011628 | 126 | 0.729657 | 565 | 3,699 | 4.562832 | 0.182301 | 0.060512 | 0.209465 | 0.251358 | 0.587277 | 0.538014 | 0.538014 | 0.538014 | 0.538014 | 0.538014 | 0 | 0.068497 | 0.123817 | 3,699 | 86 | 127 | 43.011628 | 0.726936 | 0.19654 | 0 | 0.160714 | 0 | 0 | 0.516173 | 0.508342 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017857 | false | 0 | 0.017857 | 0 | 0.053571 | 0.303571 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
278dda847314833a973e19bf161c1bcd1882ee29 | 237 | py | Python | main.py | Rami87/Door-lock-raspbarrypi | 181fed07e577c81a20450d5a32f147c9f7c8cd6f | [
"MIT"
] | null | null | null | main.py | Rami87/Door-lock-raspbarrypi | 181fed07e577c81a20450d5a32f147c9f7c8cd6f | [
"MIT"
] | null | null | null | main.py | Rami87/Door-lock-raspbarrypi | 181fed07e577c81a20450d5a32f147c9f7c8cd6f | [
"MIT"
] | null | null | null | from checker.keypad.KeypadPassChecker import Keypad_pass_checker
from door.Door import Door
import time
checker = Keypad_pass_checker()
door = Door()
while True:
if checker.auth():
break
#door.open_door()
#door.close_door()
| 19.75 | 64 | 0.755274 | 33 | 237 | 5.242424 | 0.454545 | 0.138728 | 0.196532 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151899 | 237 | 11 | 65 | 21.545455 | 0.860697 | 0.139241 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.25 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
27a38d89da3f89247cfdc4dd44efa472633e0260 | 4,031 | py | Python | Database.py | PavlovVitaly/TwistedLongPollServer | c9f5390d02ff5ce1c0bc907a004bec289af7db4c | [
"Apache-2.0"
] | null | null | null | Database.py | PavlovVitaly/TwistedLongPollServer | c9f5390d02ff5ce1c0bc907a004bec289af7db4c | [
"Apache-2.0"
] | null | null | null | Database.py | PavlovVitaly/TwistedLongPollServer | c9f5390d02ff5ce1c0bc907a004bec289af7db4c | [
"Apache-2.0"
] | null | null | null | from twisted.enterprise import adbapi
from twisted.internet import reactor
SQLITE3 = "sqlite3"
DATABASE_NAME = "users.db"
class UsersDatabase(object):
def __init__(self, db_type, name_db):
self.__SERVER = 'SERVER'
self.__SERVER_PASSWORD = 'qwerty'
self.__db_type = db_type
self.__n... | 36.645455 | 115 | 0.616472 | 446 | 4,031 | 5.262332 | 0.262332 | 0.042608 | 0.054538 | 0.034086 | 0.244568 | 0.127823 | 0.074137 | 0 | 0 | 0 | 0 | 0.00278 | 0.286033 | 4,031 | 109 | 116 | 36.981651 | 0.812717 | 0 | 0 | 0 | 0 | 0 | 0.222277 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.227848 | false | 0.126582 | 0.025316 | 0.101266 | 0.367089 | 0.113924 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 3 |
27cc09df8a790b59a1bf6a6a0ec8d26434ddaacf | 548 | py | Python | api_tests/config_files/config.py | NHSDigital/mock-nhsid-jwks | e349e2e0fb68c87d2687315604cabb69c35ef42d | [
"MIT"
] | null | null | null | api_tests/config_files/config.py | NHSDigital/mock-nhsid-jwks | e349e2e0fb68c87d2687315604cabb69c35ef42d | [
"MIT"
] | 42 | 2021-03-05T11:19:27.000Z | 2021-12-21T16:23:38.000Z | api_tests/config_files/config.py | NHSDigital/mock-nhsid-jwks | e349e2e0fb68c87d2687315604cabb69c35ef42d | [
"MIT"
] | 1 | 2021-04-11T07:32:51.000Z | 2021-04-11T07:32:51.000Z | from api_tests.config_files.environments import ENV
# Mock Proxy
MOCK_PROXY_BASE_URL = ENV["mock_proxy"]["base_url"]
MOCK_PROXY_PATH = ENV["mock_proxy"]["proxy_path"]
MOCK_PROXY_NAME = ENV["mock_proxy"]["proxy_name"]
MOCK_PROXY_BASE_PATH = f"{MOCK_PROXY_BASE_URL}/{MOCK_PROXY_PATH}/"
# JWT variables
JWT_PRIVATE_KEY_AB... | 45.666667 | 98 | 0.841241 | 90 | 548 | 4.511111 | 0.266667 | 0.221675 | 0.26601 | 0.325123 | 0.6133 | 0.536946 | 0.41133 | 0.182266 | 0 | 0 | 0 | 0 | 0.058394 | 548 | 12 | 99 | 45.666667 | 0.786822 | 0.043796 | 0 | 0 | 0 | 0 | 0.39272 | 0.281609 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
27d47954781f65e0df65406c6914b458b07ec642 | 4,986 | py | Python | valueIteration/misc/myLoggingFunctions.py | FlorianThaler/masterThesis_codes | 1f1dd1d929bd9b752105f6cfa2a3b6d9c575a8d3 | [
"MIT"
] | null | null | null | valueIteration/misc/myLoggingFunctions.py | FlorianThaler/masterThesis_codes | 1f1dd1d929bd9b752105f6cfa2a3b6d9c575a8d3 | [
"MIT"
] | null | null | null | valueIteration/misc/myLoggingFunctions.py | FlorianThaler/masterThesis_codes | 1f1dd1d929bd9b752105f6cfa2a3b6d9c575a8d3 | [
"MIT"
] | null | null | null | """
Author: Florian Thaler
Email: florian.thaler@edu.uni-graz.at
Description: Part of the code package corresponding to my master thesis. This file implements a 2d function
optimal control problem example.
Year: 2019/2020
"""
##############################################################################... | 42.615385 | 121 | 0.522663 | 466 | 4,986 | 5.585837 | 0.261803 | 0.225893 | 0.209758 | 0.172109 | 0.343834 | 0.290434 | 0.243565 | 0.243565 | 0.162121 | 0.162121 | 0 | 0.003953 | 0.137385 | 4,986 | 116 | 122 | 42.982759 | 0.601256 | 0.301845 | 0 | 0.492537 | 0 | 0 | 0.342156 | 0.206633 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029851 | false | 0 | 0.059701 | 0 | 0.089552 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
27d56135f439d8a04f4644b434d5e1a8375574ca | 2,925 | py | Python | ooobuild/lo/ui/dialogs/template_description.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | ooobuild/lo/ui/dialogs/template_description.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | ooobuild/lo/ui/dialogs/template_description.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... | 26.116071 | 150 | 0.675556 | 349 | 2,925 | 5.489971 | 0.415473 | 0.131524 | 0.125261 | 0.175365 | 0.441545 | 0.416493 | 0.34238 | 0.188413 | 0.069937 | 0.069937 | 0 | 0.021209 | 0.242393 | 2,925 | 111 | 151 | 26.351351 | 0.843412 | 0.362393 | 0 | 0 | 0 | 0 | 0.111111 | 0.081481 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.105263 | 0 | 0 | 0.947368 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
27d89f64d02a0374bcc3f6b39c9eaa087f9ce519 | 1,882 | py | Python | tamcolors/tests/tam_tools_tests/tam_fade_tests.py | cmcmarrow/tamcolors | 65a5f2455bbe35a739b98d14af158c3df7feb786 | [
"Apache-2.0"
] | 29 | 2020-07-17T23:46:17.000Z | 2022-02-06T05:36:44.000Z | tamcolors/tests/tam_tools_tests/tam_fade_tests.py | sudo-nikhil/tamcolors | 65a5f2455bbe35a739b98d14af158c3df7feb786 | [
"Apache-2.0"
] | 42 | 2020-07-25T19:39:52.000Z | 2021-02-24T01:19:58.000Z | tamcolors/tests/tam_tools_tests/tam_fade_tests.py | sudo-nikhil/tamcolors | 65a5f2455bbe35a739b98d14af158c3df7feb786 | [
"Apache-2.0"
] | 8 | 2020-07-18T23:02:48.000Z | 2020-12-30T04:07:35.000Z | # built in libraries
import unittest.mock
# tamcolors libraries
from tamcolors import tam_io
from tamcolors import tam_tools
from tamcolors.tam_io.tam_colors import *
class TAMFilmFadeInTests(unittest.TestCase):
def test_tam_fade_in(self):
surface = tam_io.tam_surface.TAMSurface(4, 5, "A", RED, GREEN)
... | 39.208333 | 88 | 0.662593 | 266 | 1,882 | 4.481203 | 0.184211 | 0.07047 | 0.060403 | 0.100671 | 0.807886 | 0.755872 | 0.755872 | 0.687919 | 0.687919 | 0.552013 | 0 | 0.031979 | 0.202444 | 1,882 | 47 | 89 | 40.042553 | 0.762159 | 0.020191 | 0 | 0.485714 | 0 | 0 | 0.007605 | 0 | 0 | 0 | 0 | 0 | 0.342857 | 1 | 0.114286 | false | 0 | 0.114286 | 0 | 0.257143 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
27fbaa4c7b80cccd253ebfb0117013e82310261b | 80 | py | Python | hw1/task1/task12.py | atpavan/aml-spring19 | 2ecec5717d01ef5f88b15fef9ee4d9deb33215c9 | [
"MIT"
] | null | null | null | hw1/task1/task12.py | atpavan/aml-spring19 | 2ecec5717d01ef5f88b15fef9ee4d9deb33215c9 | [
"MIT"
] | null | null | null | hw1/task1/task12.py | atpavan/aml-spring19 | 2ecec5717d01ef5f88b15fef9ee4d9deb33215c9 | [
"MIT"
] | null | null | null |
def fib(n):
if n==1 or n == 2:
return 1
else:
return fib(n-1)+fib(n-2)
| 8.888889 | 26 | 0.525 | 19 | 80 | 2.210526 | 0.473684 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086207 | 0.275 | 80 | 8 | 27 | 10 | 0.637931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
27ff9b9610ac1d63ddb4ac82684cab3f9baddc89 | 1,745 | py | Python | bastion_ssh/config.py | wcc526/bastion-ssh | 15211937c706ff970588ccdc99dec6bc660a4077 | [
"Apache-2.0"
] | 13 | 2016-06-17T18:29:53.000Z | 2021-08-02T04:46:04.000Z | bastion_ssh/config.py | wcc526/bastion-ssh | 15211937c706ff970588ccdc99dec6bc660a4077 | [
"Apache-2.0"
] | 1 | 2019-02-21T08:32:01.000Z | 2019-02-28T08:11:11.000Z | bastion_ssh/config.py | wcc526/bastion-ssh | 15211937c706ff970588ccdc99dec6bc660a4077 | [
"Apache-2.0"
] | 8 | 2016-03-15T09:12:13.000Z | 2020-09-29T09:00:25.000Z | import glob
from ConfigParser import SafeConfigParser, NoSectionError, NoOptionError
from os.path import expanduser
class Config(object):
"""A ConfigParser wrapper to support defaults when calling instance
methods, and also tied to a single section"""
def __init__(self, section=None, values=None, extra_s... | 33.557692 | 75 | 0.627507 | 198 | 1,745 | 5.454545 | 0.328283 | 0.055556 | 0.166667 | 0.088889 | 0.409259 | 0.409259 | 0.283333 | 0.283333 | 0.283333 | 0.127778 | 0 | 0 | 0.275645 | 1,745 | 51 | 76 | 34.215686 | 0.85443 | 0.061318 | 0 | 0.25641 | 0 | 0 | 0.011057 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.205128 | false | 0 | 0.076923 | 0.102564 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
fd71d34433f02c468d8c0c29ff80397de1f8e217 | 152 | py | Python | settings_macosx.py | athrn/kognitivo | 15822338778213c09ea654ec4e06a300129f9478 | [
"Apache-2.0"
] | 80 | 2017-11-13T21:58:55.000Z | 2022-01-03T20:10:42.000Z | settings_macosx.py | athrn/kognitivo | 15822338778213c09ea654ec4e06a300129f9478 | [
"Apache-2.0"
] | null | null | null | settings_macosx.py | athrn/kognitivo | 15822338778213c09ea654ec4e06a300129f9478 | [
"Apache-2.0"
] | 21 | 2017-11-14T09:47:41.000Z | 2021-11-23T06:44:31.000Z | from settings import DEVELOPMENT_VERSION
KIVY_GRAPHICS_HEIGHT = '750'
KIVY_GRAPHICS_WIDTH = '450'
INTRO_HINT_LENGTH = 10 if DEVELOPMENT_VERSION else 5
| 25.333333 | 52 | 0.835526 | 22 | 152 | 5.409091 | 0.818182 | 0.302521 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067164 | 0.118421 | 152 | 5 | 53 | 30.4 | 0.820896 | 0 | 0 | 0 | 0 | 0 | 0.039474 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fd86f573159e0fd3e7f10b9cbc66ee41dc64af87 | 299 | py | Python | app/models/__init__.py | bhzunami/reanalytics | 2ea4396b81529057765d2f95cea8168cacf7f0d6 | [
"Apache-2.0"
] | null | null | null | app/models/__init__.py | bhzunami/reanalytics | 2ea4396b81529057765d2f95cea8168cacf7f0d6 | [
"Apache-2.0"
] | null | null | null | app/models/__init__.py | bhzunami/reanalytics | 2ea4396b81529057765d2f95cea8168cacf7f0d6 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from .user import User
from .role import Role
from .role import Permission
from .ad import Ad
from .time import Time
from .location import Location, Canton, District
from .file import File
from .report import Report
from .analytic import AnalyticView
| 23 | 48 | 0.762542 | 45 | 299 | 5.066667 | 0.466667 | 0.070175 | 0.122807 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007905 | 0.153846 | 299 | 12 | 49 | 24.916667 | 0.893281 | 0.143813 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
fd8f9ca55a6aa0c990f689b723d5dcd12cb6495c | 22,284 | py | Python | REM/Tool/IDA 7.3/python/ida_moves.py | dodieboy/Np_class | af9ec993eda3c1e2bf70257c8384696bb64a5e9d | [
"MIT"
] | null | null | null | REM/Tool/IDA 7.3/python/ida_moves.py | dodieboy/Np_class | af9ec993eda3c1e2bf70257c8384696bb64a5e9d | [
"MIT"
] | null | null | null | REM/Tool/IDA 7.3/python/ida_moves.py | dodieboy/Np_class | af9ec993eda3c1e2bf70257c8384696bb64a5e9d | [
"MIT"
] | 2 | 2021-03-30T00:46:58.000Z | 2021-12-12T23:41:12.000Z | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.12
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
"""
IDA Plugin SDK API wrapper: moves
"""
from sys import version_info
if version_info >= (2,6,0):
def swig... | 29.554377 | 111 | 0.635478 | 3,008 | 22,284 | 4.150931 | 0.080452 | 0.092263 | 0.084094 | 0.051257 | 0.679481 | 0.616691 | 0.548775 | 0.452427 | 0.376342 | 0.314753 | 0 | 0.00281 | 0.249506 | 22,284 | 753 | 112 | 29.593626 | 0.743781 | 0.15123 | 0 | 0.276353 | 1 | 0 | 0.02046 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.259259 | false | 0.005698 | 0.034188 | 0.002849 | 0.7151 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
fdb5b3d51af0f6964e8ddda7b4e97b9e218323eb | 49,614 | py | Python | stubs.min/Rhino/FileIO.py | ricardyn/ironpython-stubs | 4d2b405eda3ceed186e8adca55dd97c332c6f49d | [
"MIT"
] | 1 | 2021-02-02T13:39:16.000Z | 2021-02-02T13:39:16.000Z | stubs.min/Rhino/FileIO.py | hdm-dt-fb/ironpython-stubs | 4d2b405eda3ceed186e8adca55dd97c332c6f49d | [
"MIT"
] | null | null | null | stubs.min/Rhino/FileIO.py | hdm-dt-fb/ironpython-stubs | 4d2b405eda3ceed186e8adca55dd97c332c6f49d | [
"MIT"
] | null | null | null | # encoding: utf-8
# module Rhino.FileIO calls itself FileIO
# from Rhino3dmIO,Version=5.1.30000.14,Culture=neutral,PublicKeyToken=null
# by generator 1.145
# no doc
# no imports
# no functions
# classes
class BinaryArchiveException(IOException,ISerializable,_Exception):
""" BinaryArchiveException(message:... | 32.856954 | 215 | 0.727375 | 5,354 | 49,614 | 6.474225 | 0.107583 | 0.052708 | 0.031157 | 0.041543 | 0.330785 | 0.253469 | 0.225774 | 0.206301 | 0.1855 | 0.1855 | 0 | 0.008073 | 0.146168 | 49,614 | 1,509 | 216 | 32.878728 | 0.810184 | 0.322731 | 0 | 0.277217 | 0 | 0 | 0.169425 | 0.107616 | 0 | 0 | 0 | 0 | 0 | 1 | 0.215488 | false | 0.215488 | 0 | 0 | 0.54321 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
fdcfb57545e26ff16b0b2e3d848a4451f81de51c | 403 | py | Python | shallow_appify/__init__.py | IngoMeyer441/shallow-appify | 204b43f381eb9dffa1519d783ee037ebbdb24738 | [
"MIT"
] | 2 | 2017-03-14T07:19:25.000Z | 2019-03-08T10:25:43.000Z | shallow_appify/__init__.py | IngoHeimbach/shallow-appify | 204b43f381eb9dffa1519d783ee037ebbdb24738 | [
"MIT"
] | null | null | null | shallow_appify/__init__.py | IngoHeimbach/shallow-appify | 204b43f381eb9dffa1519d783ee037ebbdb24738 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from ._version import __version__, __version_info__
__author__ = 'Ingo Heimbach'
__email__ = 'i.heimbach@fz-juelich.de'
__copyright__ = 'Copyrig... | 28.785714 | 86 | 0.801489 | 49 | 403 | 5.693878 | 0.673469 | 0.143369 | 0.229391 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014164 | 0.124069 | 403 | 13 | 87 | 31 | 0.773371 | 0.052109 | 0 | 0 | 0 | 0 | 0.284211 | 0.063158 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.555556 | 0 | 0.555556 | 0.111111 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
fddd496f587992a75335d83151f60129b2a396f2 | 829 | py | Python | examples/m_sequence.py | Omnivanitate/sweep_design | 00c20066d83a2eebf8402294b413737f49a97564 | [
"MIT"
] | null | null | null | examples/m_sequence.py | Omnivanitate/sweep_design | 00c20066d83a2eebf8402294b413737f49a97564 | [
"MIT"
] | null | null | null | examples/m_sequence.py | Omnivanitate/sweep_design | 00c20066d83a2eebf8402294b413737f49a97564 | [
"MIT"
] | null | null | null | from scipy import signal
from scipy.signal import butter, filtfilt
import numpy as np
from math_signals.math_relation import Relation
from math_signals.math_signal import Signal
from scipy.signal import max_len_seq
def get_m_sequence(seq: np.ndarray) -> np.ndarray:
return max_len_seq(nbits=seq.size, stat... | 30.703704 | 72 | 0.665862 | 136 | 829 | 3.882353 | 0.367647 | 0.119318 | 0.068182 | 0.079545 | 0.274621 | 0.212121 | 0 | 0 | 0 | 0 | 0 | 0.01252 | 0.229192 | 829 | 27 | 73 | 30.703704 | 0.813772 | 0 | 0 | 0 | 0 | 0 | 0.004975 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.263158 | false | 0 | 0.315789 | 0.157895 | 0.842105 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 3 |
fdfe18e27fd3829716d9cc8ad5c75afe97d32448 | 165 | py | Python | zmon_cli/__main__.py | pioneerit/zmon-cli | e45174f2022e1395390914f2f9df0b4bf943e486 | [
"Apache-2.0"
] | 5 | 2016-07-28T09:24:53.000Z | 2020-04-17T08:12:23.000Z | zmon_cli/__main__.py | pioneerit/zmon-cli | e45174f2022e1395390914f2f9df0b4bf943e486 | [
"Apache-2.0"
] | 81 | 2016-06-07T15:03:41.000Z | 2020-03-10T09:43:35.000Z | zmon_cli/__main__.py | pioneerit/zmon-cli | e45174f2022e1395390914f2f9df0b4bf943e486 | [
"Apache-2.0"
] | 7 | 2016-09-17T15:42:09.000Z | 2020-04-14T15:21:27.000Z | from zmon_cli.main import main
if __name__ == '__main__':
try:
main()
except (KeyboardInterrupt, EOFError):
print('\nStopped by the user')
| 18.333333 | 41 | 0.630303 | 19 | 165 | 5 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.260606 | 165 | 8 | 42 | 20.625 | 0.778689 | 0 | 0 | 0 | 0 | 0 | 0.175758 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 0 | 0.166667 | 0.166667 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a9034d042ae79c7e5b0e6913619865690c430aec | 198 | pyw | Python | ROM Downloader.pyw | alex-polosky/RomDownloader | f5fe468502f2c9dbf1d78311134ee31ef08181ae | [
"Unlicense"
] | null | null | null | ROM Downloader.pyw | alex-polosky/RomDownloader | f5fe468502f2c9dbf1d78311134ee31ef08181ae | [
"Unlicense"
] | null | null | null | ROM Downloader.pyw | alex-polosky/RomDownloader | f5fe468502f2c9dbf1d78311134ee31ef08181ae | [
"Unlicense"
] | null | null | null | from PyQt4 import QtGui
from engine import DownloadLink
from searcher import Crawler
from GUI import *
import sys
app = QtGui.QApplication(sys.argv)
MainWindow = GUIFill()
sys.exit(app.exec_())
| 18 | 34 | 0.777778 | 28 | 198 | 5.464286 | 0.607143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005917 | 0.146465 | 198 | 10 | 35 | 19.8 | 0.899408 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.625 | 0 | 0.625 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
8bf12822bc72cff06cd8b98425f8703e17d85059 | 457 | py | Python | metrician/recorders/distribution.py | tedtroxell/metrician | d4164dbff8db5645ee8beca11dc55ba6c26c4cb6 | [
"MIT"
] | null | null | null | metrician/recorders/distribution.py | tedtroxell/metrician | d4164dbff8db5645ee8beca11dc55ba6c26c4cb6 | [
"MIT"
] | null | null | null | metrician/recorders/distribution.py | tedtroxell/metrician | d4164dbff8db5645ee8beca11dc55ba6c26c4cb6 | [
"MIT"
] | null | null | null | import torch
from .interface import BaseRecorderInterface
class Distribution(BaseRecorderInterface):
"""[summary]
:param BaseRecorderInterface: [description]
:type BaseRecorderInterface: [type]
"""
def __init__(self,reduction='mean'):
super(self.__class__,self).__init__()
self... | 26.882353 | 58 | 0.689278 | 45 | 457 | 6.733333 | 0.533333 | 0.128713 | 0.112211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00271 | 0.19256 | 457 | 16 | 59 | 28.5625 | 0.818428 | 0.196937 | 0 | 0 | 0 | 0 | 0.011494 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.125 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
e32b08297c8ef7578185e8c570d198f565a9dff0 | 11,430 | py | Python | sdk/ml/azure-ai-ml/azure/ai/ml/_restclient/runhistory/models/__init__.py | dubiety/azure-sdk-for-python | 62ffa839f5d753594cf0fe63668f454a9d87a346 | [
"MIT"
] | 1 | 2022-02-01T18:50:12.000Z | 2022-02-01T18:50:12.000Z | sdk/ml/azure-ai-ml/azure/ai/ml/_restclient/runhistory/models/__init__.py | ellhe-blaster/azure-sdk-for-python | 82193ba5e81cc5e5e5a5239bba58abe62e86f469 | [
"MIT"
] | null | null | null | sdk/ml/azure-ai-ml/azure/ai/ml/_restclient/runhistory/models/__init__.py | ellhe-blaster/azure-sdk-for-python | 82193ba5e81cc5e5e5a5239bba58abe62e86f469 | [
"MIT"
] | null | null | null | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | 41.413043 | 94 | 0.741732 | 1,047 | 11,430 | 7.856734 | 0.137536 | 0.196937 | 0.128009 | 0.18709 | 0.28957 | 0.036713 | 0.036713 | 0.036713 | 0 | 0 | 0 | 0.011776 | 0.190201 | 11,430 | 275 | 95 | 41.563636 | 0.876945 | 0.131671 | 0 | 0 | 0 | 0 | 0.149349 | 0.054595 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.618868 | 0 | 0.618868 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
e341ab7b3525652f499a9898c2460f4fde0c4378 | 1,564 | py | Python | src/purerpc/grpclib/config.py | decentral1se/purerpc | 5faa35f2cdf5b36d1398a1aa6a9e681c5344060f | [
"Apache-2.0"
] | 143 | 2018-05-09T09:51:39.000Z | 2022-03-15T12:09:28.000Z | src/purerpc/grpclib/config.py | decentral1se/purerpc | 5faa35f2cdf5b36d1398a1aa6a9e681c5344060f | [
"Apache-2.0"
] | 21 | 2018-06-19T13:03:39.000Z | 2021-06-02T23:50:36.000Z | src/purerpc/grpclib/config.py | decentral1se/purerpc | 5faa35f2cdf5b36d1398a1aa6a9e681c5344060f | [
"Apache-2.0"
] | 15 | 2018-06-08T13:39:33.000Z | 2021-03-06T01:06:52.000Z | class GRPCConfiguration:
def __init__(self, client_side: bool, server_string=None, user_agent=None,
message_encoding=None, message_accept_encoding=None,
max_message_length=33554432):
self._client_side = client_side
if client_side and server_string is not None:
... | 34.755556 | 93 | 0.689258 | 198 | 1,564 | 5.09596 | 0.292929 | 0.089197 | 0.145689 | 0.074331 | 0.116947 | 0.059465 | 0 | 0 | 0 | 0 | 0 | 0.006879 | 0.256394 | 1,564 | 44 | 94 | 35.545455 | 0.860705 | 0.078645 | 0 | 0.171429 | 0 | 0 | 0.0758 | 0 | 0 | 0 | 0 | 0.022727 | 0 | 1 | 0.2 | false | 0.057143 | 0 | 0.171429 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 3 |
e358ca0ea2e779d8bdcb9d74606be731d8179800 | 1,181 | py | Python | portals/wwits/groups/certification/update_csr_skills/schemas.py | jalanb/portals | 7a5360b48547719d3fbe50790f08eaf5571148dd | [
"ADSL"
] | null | null | null | portals/wwits/groups/certification/update_csr_skills/schemas.py | jalanb/portals | 7a5360b48547719d3fbe50790f08eaf5571148dd | [
"ADSL"
] | null | null | null | portals/wwits/groups/certification/update_csr_skills/schemas.py | jalanb/portals | 7a5360b48547719d3fbe50790f08eaf5571148dd | [
"ADSL"
] | null | null | null | from marshmallow import fields, post_load
from portals.wwits.apis.rest import BaseSchemaExcludeFields as Schema
from .models import ParmModel, UpdateCSRSkillModel
class ParmSchema(Schema):
Version = fields.Str(data_key="Version")
UserID = fields.Str(data_key="UserID")
Env = fields.Str(data_key="Env")
... | 34.735294 | 75 | 0.718882 | 145 | 1,181 | 5.710345 | 0.337931 | 0.126812 | 0.188406 | 0.231884 | 0.099034 | 0.099034 | 0.099034 | 0.099034 | 0.099034 | 0 | 0 | 0 | 0.156647 | 1,181 | 33 | 76 | 35.787879 | 0.831325 | 0 | 0 | 0.148148 | 0 | 0 | 0.095682 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.111111 | 0.074074 | 0.925926 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
e362ff1203178f33cbccca1f2a9c68fc49fa5893 | 1,693 | py | Python | astromodels/core/parameter_transformation.py | giacomov/astromodels | bfad6993465df66d9c071c00d6e0c747266bd3a7 | [
"BSD-3-Clause"
] | 11 | 2015-12-02T17:28:57.000Z | 2018-10-08T02:33:32.000Z | astromodels/core/parameter_transformation.py | giacomov/astromodels | bfad6993465df66d9c071c00d6e0c747266bd3a7 | [
"BSD-3-Clause"
] | 73 | 2016-05-29T10:17:30.000Z | 2018-12-21T19:35:00.000Z | astromodels/core/parameter_transformation.py | giacomov/astromodels | bfad6993465df66d9c071c00d6e0c747266bd3a7 | [
"BSD-3-Clause"
] | 15 | 2016-06-03T21:28:10.000Z | 2019-01-07T14:23:15.000Z | import math
from builtins import object
import numpy as np
import numba as nb
@nb.vectorize
def _pow(x, y):
return math.pow(x, y)
@nb.vectorize
def _log10(x):
return math.log10(x)
class ParameterTransformation(object):
def __init__(self, is_positive=False):
self._is_positive = is_positive
... | 21.987013 | 80 | 0.695806 | 200 | 1,693 | 5.68 | 0.4 | 0.052817 | 0.036972 | 0.038732 | 0.177817 | 0.089789 | 0.089789 | 0.089789 | 0 | 0 | 0 | 0.01 | 0.232132 | 1,693 | 76 | 81 | 22.276316 | 0.863846 | 0.165387 | 0 | 0.171429 | 0 | 0 | 0.06633 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.114286 | 0.114286 | 0.628571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
e366adf5df4498c4c033232970485328521d571b | 420 | py | Python | stubs/loboris-esp32_lobo-3_2_24/websocket.py | RonaldHiemstra/micropython-stubs | d97f879b01f6687baaebef1c7e26a80909c3cff3 | [
"MIT"
] | 38 | 2020-10-18T21:59:44.000Z | 2022-03-17T03:03:28.000Z | stubs/loboris-esp32_lobo-3_2_24/websocket.py | RonaldHiemstra/micropython-stubs | d97f879b01f6687baaebef1c7e26a80909c3cff3 | [
"MIT"
] | 176 | 2020-10-18T14:31:03.000Z | 2022-03-30T23:22:39.000Z | stubs/loboris-esp32_lobo-3_2_24/websocket.py | RonaldHiemstra/micropython-stubs | d97f879b01f6687baaebef1c7e26a80909c3cff3 | [
"MIT"
] | 6 | 2020-12-28T21:11:12.000Z | 2022-02-06T04:07:50.000Z | """
Module: 'websocket' on esp32_LoBo
MCU: (sysname='esp32_LoBo', nodename='esp32_LoBo', release='3.2.24', version='ESP32_LoBo_v3.2.24 on 2018-09-06', machine='ESP32 board with ESP32')
Stubber: 1.0.0
"""
class websocket:
''
def close():
pass
def ioctl():
pass
def read():
pass
... | 15.555556 | 146 | 0.561905 | 55 | 420 | 4.2 | 0.581818 | 0.151515 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104377 | 0.292857 | 420 | 26 | 147 | 16.153846 | 0.673401 | 0.464286 | 0 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | true | 0.428571 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
e37a6eec990edd296783d73c43b7f3dd03f7b225 | 50 | py | Python | docker/flask/src/shared_data.py | CHARMk-code/CHARM_catalogue | 0001bfef320ea1f824eec9c783f4ab4337d5a5e4 | [
"MIT"
] | null | null | null | docker/flask/src/shared_data.py | CHARMk-code/CHARM_catalogue | 0001bfef320ea1f824eec9c783f4ab4337d5a5e4 | [
"MIT"
] | 50 | 2021-11-25T14:37:20.000Z | 2022-03-28T18:58:18.000Z | docker/flask/src/shared_data.py | CHARMk-code/CHARM_catalogue | 0001bfef320ea1f824eec9c783f4ab4337d5a5e4 | [
"MIT"
] | null | null | null | last_update_company = None
last_update_tag = None
| 16.666667 | 26 | 0.84 | 8 | 50 | 4.75 | 0.625 | 0.526316 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12 | 50 | 2 | 27 | 25 | 0.863636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8b5a4ff128e86c88a1745def1b8586271b82b53a | 772 | py | Python | forms.py | akul08/gossip_girl | 85dacd53a7defecc9dc340d552f0de0cf0190a61 | [
"MIT"
] | 1 | 2017-07-16T17:07:59.000Z | 2017-07-16T17:07:59.000Z | forms.py | akul08/gossip_girl | 85dacd53a7defecc9dc340d552f0de0cf0190a61 | [
"MIT"
] | null | null | null | forms.py | akul08/gossip_girl | 85dacd53a7defecc9dc340d552f0de0cf0190a61 | [
"MIT"
] | null | null | null | from flask_wtf import FlaskForm
from wtforms import StringField, SubmitField
from wtforms import PasswordField, SelectField, TextAreaField
from wtforms.validators import Required
class LoginForm(FlaskForm):
username = StringField('UserName', validators=[Required()])
password = PasswordField('Password', valida... | 32.166667 | 67 | 0.740933 | 70 | 772 | 8.157143 | 0.357143 | 0.189142 | 0.126095 | 0.183888 | 0.502627 | 0.41331 | 0.41331 | 0.41331 | 0.41331 | 0.41331 | 0 | 0 | 0.132124 | 772 | 23 | 68 | 33.565217 | 0.852239 | 0 | 0 | 0.375 | 0 | 0 | 0.081712 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.1875 | 0.25 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
8b5b3eb71ba648fb4369d43896eeced5ff197161 | 1,051 | py | Python | toggl_invoice_generator/toggl_constants.py | jbcurtin/toggl-api-bill-generator | a7fe2dd5edffbf6c098ae4841c941b36759133b2 | [
"MIT"
] | 3 | 2019-04-18T07:53:18.000Z | 2020-06-03T08:59:52.000Z | toggl_invoice_generator/toggl_constants.py | jbcurtin/toggl-api-bill-generator | a7fe2dd5edffbf6c098ae4841c941b36759133b2 | [
"MIT"
] | null | null | null | toggl_invoice_generator/toggl_constants.py | jbcurtin/toggl-api-bill-generator | a7fe2dd5edffbf6c098ae4841c941b36759133b2 | [
"MIT"
] | 1 | 2021-03-01T00:29:53.000Z | 2021-03-01T00:29:53.000Z | ENVFileTemplate="""
#!/usr/bin/env bash
# https://github.com/toggl/toggl_api_docs
export TOGGL_API_TOKEN=''
# Sometimes you have a billable rate and a non-billable rate.
export BILLABLE_RATE='10.0'
export NON_BILLABLE_RATE='5.0'
export FULFILLMENT_DELAY='30'
# Make sure to iterate the invoice number with each use
ex... | 30.028571 | 61 | 0.820171 | 151 | 1,051 | 5.476821 | 0.450331 | 0.125756 | 0.203144 | 0.067715 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021784 | 0.082778 | 1,051 | 34 | 62 | 30.911765 | 0.8361 | 0 | 0 | 0 | 0 | 0 | 0.978116 | 0.47764 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8b677cfe0071b0ce932801660a953c35518d7b29 | 214 | py | Python | src/vsc/model/value_enum.py | fvutils/py-vsc | e30ffae1b750d8182d102b1fe5b1cfdce017a092 | [
"Apache-2.0"
] | 54 | 2020-03-28T17:54:00.000Z | 2022-03-27T08:53:13.000Z | src/vsc/model/value_enum.py | fvutils/py-vsc | e30ffae1b750d8182d102b1fe5b1cfdce017a092 | [
"Apache-2.0"
] | 124 | 2020-04-10T03:06:03.000Z | 2022-03-24T18:35:46.000Z | src/vsc/model/value_enum.py | fvutils/py-vsc | e30ffae1b750d8182d102b1fe5b1cfdce017a092 | [
"Apache-2.0"
] | 17 | 2020-04-09T21:47:58.000Z | 2022-02-23T19:37:37.000Z | '''
Created on Jun 26, 2021
@author: mballance
'''
from vsc.model.value import Value
from vsc.model.value_scalar import ValueScalar
class ValueEnum(ValueScalar):
def __init__(self, v):
self.v = v | 17.833333 | 46 | 0.696262 | 30 | 214 | 4.8 | 0.666667 | 0.097222 | 0.166667 | 0.236111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035088 | 0.200935 | 214 | 12 | 47 | 17.833333 | 0.807018 | 0.200935 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
8bdc0107be0ab3ecce925448526c5169a293635e | 95 | py | Python | ui_extensions/purestorage/urls.py | hciudad/cloudbolt-forge | d1109c90dcd189defa70876906d394e0c91feab5 | [
"Apache-2.0"
] | 34 | 2015-08-30T09:26:41.000Z | 2022-03-03T13:18:14.000Z | ui_extensions/purestorage/urls.py | hciudad/cloudbolt-forge | d1109c90dcd189defa70876906d394e0c91feab5 | [
"Apache-2.0"
] | 22 | 2015-11-23T21:24:17.000Z | 2022-01-31T04:24:24.000Z | ui_extensions/purestorage/urls.py | hciudad/cloudbolt-forge | d1109c90dcd189defa70876906d394e0c91feab5 | [
"Apache-2.0"
] | 43 | 2015-11-18T16:26:22.000Z | 2021-10-18T13:19:39.000Z | from django.conf.urls import url
from xui.purestorage import views
xui_urlpatterns = [
]
| 13.571429 | 33 | 0.747368 | 13 | 95 | 5.384615 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.189474 | 95 | 6 | 34 | 15.833333 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
8be0c6c94118dfef672ab1c87cddb25ba67ed3c4 | 1,008 | py | Python | src/xbot/util/state.py | xinyang178/xbot | dad1fc67062dc6fd21802899fd68f7eb91c96569 | [
"MIT"
] | 77 | 2020-10-27T12:19:01.000Z | 2022-03-16T09:13:17.000Z | src/xbot/util/state.py | xinyang178/xbot | dad1fc67062dc6fd21802899fd68f7eb91c96569 | [
"MIT"
] | 7 | 2020-12-09T14:05:07.000Z | 2021-04-28T02:37:05.000Z | src/xbot/util/state.py | xinyang178/xbot | dad1fc67062dc6fd21802899fd68f7eb91c96569 | [
"MIT"
] | 45 | 2020-09-24T07:28:32.000Z | 2022-03-03T17:09:04.000Z | def default_state():
state = dict(
user_action=[],
system_action=[],
belief_state={},
cur_domain=None,
request_slots=[],
terminated=False,
history=[],
)
state["belief_state"] = {
"景点": {
"名称": "",
"门票": "",
"... | 20.16 | 29 | 0.229167 | 55 | 1,008 | 4.072727 | 0.654545 | 0.080357 | 0.133929 | 0.1875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.549603 | 1,008 | 49 | 30 | 20.571429 | 0.493392 | 0 | 0 | 0.387755 | 0 | 0 | 0.104167 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020408 | false | 0 | 0 | 0 | 0.040816 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8be747171b3a951694e6502070e888d6192f6cbc | 465 | py | Python | problems/design/Solution352.py | akalu/cs-problems-python | 9b1bd8e3932be62135a38a77f955ded9a766b654 | [
"MIT"
] | null | null | null | problems/design/Solution352.py | akalu/cs-problems-python | 9b1bd8e3932be62135a38a77f955ded9a766b654 | [
"MIT"
] | null | null | null | problems/design/Solution352.py | akalu/cs-problems-python | 9b1bd8e3932be62135a38a77f955ded9a766b654 | [
"MIT"
] | null | null | null | """
Given a data stream input of non-negative integers a1, a2, ..., an, ...,
summarize the numbers seen so far as a list of disjoint intervals.
For example, suppose the integers from the data stream are 1, 3, 7, 2, 6, ...,
then the summary will be:
1 [1, 1]
3 [1, 1], [3, 3]
7 [1, 1], [3, 3],... | 25.833333 | 81 | 0.503226 | 77 | 465 | 3.038961 | 0.532468 | 0.051282 | 0.038462 | 0.034188 | 0.042735 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121311 | 0.344086 | 465 | 17 | 82 | 27.352941 | 0.645902 | 0.832258 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
47412f4e88d1233267d45b7b4eba2b7435319197 | 22,877 | py | Python | UnityEngine/UI/InputField/__init__.py | Grim-es/udon-pie-auto-completion | c2cd86554ed615cdbbb01e19fa40665eafdfaedc | [
"MIT"
] | null | null | null | UnityEngine/UI/InputField/__init__.py | Grim-es/udon-pie-auto-completion | c2cd86554ed615cdbbb01e19fa40665eafdfaedc | [
"MIT"
] | null | null | null | UnityEngine/UI/InputField/__init__.py | Grim-es/udon-pie-auto-completion | c2cd86554ed615cdbbb01e19fa40665eafdfaedc | [
"MIT"
] | null | null | null | from typing import overload
from UdonPie import System
from UdonPie import UnityEngine
from UdonPie.Undefined import *
class InputField:
def __new__(cls, arg1=None):
'''
:returns: InputField
:rtype: UnityEngine.UI.InputField
'''
pass
@staticmethod
def op_Implicit(... | 19.789792 | 77 | 0.52638 | 1,768 | 22,877 | 6.761878 | 0.084276 | 0.190046 | 0.20184 | 0.086491 | 0.626349 | 0.572731 | 0.557005 | 0.555082 | 0.479465 | 0.340611 | 0 | 0.021047 | 0.379027 | 22,877 | 1,155 | 78 | 19.806926 | 0.820498 | 0.352669 | 0 | 0.691964 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.319196 | false | 0.319196 | 0.008929 | 0 | 0.330357 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
47489a6dc633de45ff04dac31bd0f591047e5794 | 166 | py | Python | app/config.py | olahassan/query_app | 232f8293d9be25a222c525be3b471211ca0cb724 | [
"MIT"
] | null | null | null | app/config.py | olahassan/query_app | 232f8293d9be25a222c525be3b471211ca0cb724 | [
"MIT"
] | null | null | null | app/config.py | olahassan/query_app | 232f8293d9be25a222c525be3b471211ca0cb724 | [
"MIT"
] | null | null | null | from pydantic import BaseSettings
class Settings(BaseSettings):
participants: str
baseurl: str
environment: str
version:str
settings = Settings() | 18.444444 | 33 | 0.722892 | 17 | 166 | 7.058824 | 0.647059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.216867 | 166 | 9 | 34 | 18.444444 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.857143 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
4757c7ee120d740fefb403fb03eaee8f937c90e0 | 345 | py | Python | tests/fixtures/FMEServer_fixture.py | bcgov/dbc-pylib | 95080d68e42c9ef25d3a4468cd6c36a717004b89 | [
"Apache-2.0"
] | 1 | 2020-01-24T15:20:24.000Z | 2020-01-24T15:20:24.000Z | tests/fixtures/FMEServer_fixture.py | bcgov/dbc-pylib | 95080d68e42c9ef25d3a4468cd6c36a717004b89 | [
"Apache-2.0"
] | 6 | 2020-04-17T19:32:31.000Z | 2022-03-29T21:35:59.000Z | tests/fixtures/FMEServer_fixture.py | bcgov/dbc-pylib | 95080d68e42c9ef25d3a4468cd6c36a717004b89 | [
"Apache-2.0"
] | 2 | 2018-06-11T17:58:14.000Z | 2018-09-28T06:48:51.000Z | '''
Created on Nov 9, 2018
@author: kjnether
'''
import pytest
import FMEUtil.PyFMEServerV3
@pytest.fixture()
def FMEServerDev(FMEServer_ConnectParams_dev):
url = FMEServer_ConnectParams_dev['url']
token = FMEServer_ConnectParams_dev['token']
fme = FMEUtil.PyFMEServerV3.FMEServer(url, to... | 19.166667 | 54 | 0.701449 | 37 | 345 | 6.378378 | 0.567568 | 0.279661 | 0.317797 | 0.237288 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025455 | 0.202899 | 345 | 18 | 55 | 19.166667 | 0.832727 | 0.118841 | 0 | 0 | 0 | 0 | 0.028571 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
47866fe869cc97635730821edc0afea00252f684 | 130 | py | Python | tests/resources/plugins/zero-python-plugin/entrypoint.py | aruscher/VPMBench | d784d9ff273363f775f0f84c92585dedee32938b | [
"MIT"
] | 2 | 2021-03-09T15:46:03.000Z | 2021-07-29T13:32:20.000Z | tests/resources/plugins/zero-python-plugin/entrypoint.py | aruscher/VPMBench | d784d9ff273363f775f0f84c92585dedee32938b | [
"MIT"
] | 7 | 2021-04-27T14:47:29.000Z | 2021-08-18T12:15:32.000Z | tests/resources/plugins/zero-python-plugin/entrypoint.py | aruscher/VPMBench | d784d9ff273363f775f0f84c92585dedee32938b | [
"MIT"
] | 2 | 2021-04-27T13:53:43.000Z | 2021-07-16T09:37:46.000Z | from pandas import DataFrame
def entry_point(arg):
result = DataFrame(arg["UID"])
result["SCORE"] = 0
return result
| 16.25 | 34 | 0.669231 | 17 | 130 | 5.058824 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009804 | 0.215385 | 130 | 7 | 35 | 18.571429 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0.061538 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
478d4fcedcc14d010180221bfb945ee9f71b8804 | 2,904 | py | Python | external/trappy/tests/test_fallback.py | qais-yousef/lisa | 8343e26bf0565589928a69ccbe67b1be03403db7 | [
"Apache-2.0"
] | 62 | 2015-08-14T11:30:37.000Z | 2022-02-26T13:22:53.000Z | external/trappy/tests/test_fallback.py | qais-yousef/lisa | 8343e26bf0565589928a69ccbe67b1be03403db7 | [
"Apache-2.0"
] | 208 | 2015-08-13T20:43:38.000Z | 2021-07-20T10:59:53.000Z | external/trappy/tests/test_fallback.py | qais-yousef/lisa | 8343e26bf0565589928a69ccbe67b1be03403db7 | [
"Apache-2.0"
] | 47 | 2015-08-13T14:49:05.000Z | 2022-02-26T13:22:52.000Z |
# Copyright 2018 ARM Limited, Google and contributors
#
# 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 ... | 58.08 | 128 | 0.682851 | 391 | 2,904 | 4.836317 | 0.342711 | 0.098889 | 0.143839 | 0.155473 | 0.428345 | 0.428345 | 0.3945 | 0.3945 | 0.3945 | 0.3945 | 0 | 0.144843 | 0.232094 | 2,904 | 49 | 129 | 59.265306 | 0.703139 | 0.197314 | 0 | 0 | 0 | 0.444444 | 0.770229 | 0.109044 | 0 | 0 | 0 | 0 | 0.074074 | 1 | 0.074074 | false | 0 | 0.074074 | 0 | 0.185185 | 0.518519 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
478d77d929b5f96f9c9bb25eec05dfc5a35e1380 | 104 | py | Python | vader_workspace/project/package/subpackage/sub_main.py | marekzidek/vim-nayvy | b3699f978e449aa669dd9bd4b13ae7c2d07d76c4 | [
"MIT"
] | 68 | 2020-03-17T07:36:42.000Z | 2022-02-18T13:21:22.000Z | vader_workspace/project/package/subpackage/sub_main.py | marekzidek/vim-nayvy | b3699f978e449aa669dd9bd4b13ae7c2d07d76c4 | [
"MIT"
] | 2 | 2020-03-17T06:52:44.000Z | 2021-01-03T06:45:13.000Z | vader_workspace/project/package/subpackage/sub_main.py | marekzidek/vim-nayvy | b3699f978e449aa669dd9bd4b13ae7c2d07d76c4 | [
"MIT"
] | 5 | 2020-03-17T07:42:23.000Z | 2022-01-02T23:02:36.000Z |
class SubClass1:
pass
class SubClass2:
pass
async def async_function() -> None:
return
| 8.666667 | 35 | 0.653846 | 12 | 104 | 5.583333 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026667 | 0.278846 | 104 | 11 | 36 | 9.454545 | 0.866667 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.333333 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
4797c29031eca83999f13031de2f2849e1ec7b1b | 225 | py | Python | fastlog/__init__.py | Gbps/fastlog | 3608a27f0b4ff9149937bf85ac9e114dfcb4ee37 | [
"MIT"
] | 29 | 2018-04-02T22:18:54.000Z | 2022-03-24T04:37:49.000Z | fastlog/__init__.py | Gbps/fastlog | 3608a27f0b4ff9149937bf85ac9e114dfcb4ee37 | [
"MIT"
] | 1 | 2020-04-08T14:41:08.000Z | 2021-11-11T20:03:46.000Z | fastlog/__init__.py | Gbps/fastlog | 3608a27f0b4ff9149937bf85ac9e114dfcb4ee37 | [
"MIT"
] | 1 | 2019-11-09T19:34:35.000Z | 2019-11-09T19:34:35.000Z | from . import term
from . import log as _log
"""
Import the log object into your project to use fastlog
This can be done simply by using:
>>> from fastlog import log
or
>>> from fastlog import *
"""
log = _log.FastLogger() | 17.307692 | 54 | 0.711111 | 36 | 225 | 4.388889 | 0.611111 | 0.170886 | 0.21519 | 0.253165 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 225 | 13 | 55 | 17.307692 | 0.877778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
47c279b715083c4b9b6c5474333a92894e137294 | 1,278 | py | Python | pymt/units.py | nielsdrost/pymt | ae39bf807428827a6904202bf4d3b927daa255ea | [
"MIT"
] | null | null | null | pymt/units.py | nielsdrost/pymt | ae39bf807428827a6904202bf4d3b927daa255ea | [
"MIT"
] | null | null | null | pymt/units.py | nielsdrost/pymt | ae39bf807428827a6904202bf4d3b927daa255ea | [
"MIT"
] | null | null | null | import numpy as np
from cfunits import Units
class UnitConverter(object):
"""Convert values in some units to another."""
def __init__(self, from_units):
self._units = Units(from_units)
if not self._units.isvalid:
raise ValueError("invalid units ({0})".format(from_units))
@pr... | 24.576923 | 70 | 0.616588 | 173 | 1,278 | 4.300578 | 0.271676 | 0.133065 | 0.080645 | 0.064516 | 0.290323 | 0.172043 | 0.172043 | 0.172043 | 0.172043 | 0.172043 | 0 | 0.017003 | 0.263693 | 1,278 | 51 | 71 | 25.058824 | 0.773645 | 0.031299 | 0 | 0.351351 | 0 | 0 | 0.038149 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.216216 | false | 0 | 0.054054 | 0.108108 | 0.513514 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
47e7b690bc1710923f3bca46c5354e9e5f25f4ce | 472 | py | Python | Expressions/Bool.py | nerdsupremacist/LlamaLang | 84484b03eb24f326d7889c9dd4e9605d4eca9f8d | [
"MIT"
] | 5 | 2019-04-03T12:27:37.000Z | 2022-02-18T08:20:12.000Z | Expressions/Bool.py | nerdsupremacist/LlamaLang | 84484b03eb24f326d7889c9dd4e9605d4eca9f8d | [
"MIT"
] | 7 | 2016-05-26T13:46:33.000Z | 2016-06-15T20:57:15.000Z | Expressions/Bool.py | mathiasquintero/LlamaLang | 84484b03eb24f326d7889c9dd4e9605d4eca9f8d | [
"MIT"
] | null | null | null | from Expressions.Expr import Expr
class Bool(Expr):
def __init__(self, value):
self.value = value
def eval(self):
return self.value
def type(self):
return Bool
def copy(self):
return Bool(self.value)
def min(self):
return Bool(self.eval())
def to_cli... | 17.481481 | 33 | 0.555085 | 58 | 472 | 4.431034 | 0.37931 | 0.140078 | 0.163424 | 0.140078 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.334746 | 472 | 26 | 34 | 18.153846 | 0.818471 | 0 | 0 | 0 | 0 | 0 | 0.057203 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.368421 | false | 0 | 0.052632 | 0.263158 | 0.842105 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
9a01ea212646c676cc492473d7d57a04bb296799 | 127 | py | Python | styles/__init__.py | recite/re-cite.org | 24d32addc0f8f39ea2f210480097b65c5d4db116 | [
"MIT"
] | 9 | 2018-07-17T13:56:30.000Z | 2021-10-02T03:17:06.000Z | styles/__init__.py | recite/re-cite.org | 24d32addc0f8f39ea2f210480097b65c5d4db116 | [
"MIT"
] | 6 | 2018-07-25T15:59:32.000Z | 2020-10-22T18:44:06.000Z | styles/__init__.py | recite/re-cite.org | 24d32addc0f8f39ea2f210480097b65c5d4db116 | [
"MIT"
] | 2 | 2019-01-07T18:36:34.000Z | 2019-11-01T07:53:24.000Z | # -*- coding: ascii -*-
"""
styles
~~~~~~
Contains all citation format styles.
"""
from .apa import APA
from .ama import AMA
| 11.545455 | 36 | 0.629921 | 16 | 127 | 5 | 0.6875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.188976 | 127 | 10 | 37 | 12.7 | 0.776699 | 0.582677 | 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 | 0 | 0 | 0 | 3 |
9a0526931e96f6e6c7472805a0fdd84adbdfecec | 308 | py | Python | block7stats/http.py | zhs007/block7stats | 9aa79ea31bde9e3f3dbcaa6f606f1b7feb85ba27 | [
"Apache-2.0"
] | null | null | null | block7stats/http.py | zhs007/block7stats | 9aa79ea31bde9e3f3dbcaa6f606f1b7feb85ba27 | [
"Apache-2.0"
] | null | null | null | block7stats/http.py | zhs007/block7stats | 9aa79ea31bde9e3f3dbcaa6f606f1b7feb85ba27 | [
"Apache-2.0"
] | null | null | null | import requests
# getUserStats
def getUserStats(cfg, uid):
r = requests.get('{}/userstats?token={}&uid={}'.format(cfg['urlroot'], cfg['token'], uid))
return r.json()
# getStats
def getStats(cfg):
r = requests.get('{}/stats?token={}'.format(cfg['urlroot'], cfg['token']))
return r.json() | 28 | 94 | 0.626623 | 39 | 308 | 4.948718 | 0.410256 | 0.093264 | 0.124352 | 0.196891 | 0.248705 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146104 | 308 | 11 | 95 | 28 | 0.73384 | 0.068182 | 0 | 0.285714 | 0 | 0 | 0.242105 | 0.098246 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
9a19d72e6be4e5f3db275d50a42fdf1ef4f778ff | 138 | py | Python | Basic Python Theory/Part 1 (Basic Syntax)/13 - exponential function.py | Randula98/Python-For-Beginners | e41a6014be882f01c6ccdcbe2167e2b581646eee | [
"MIT"
] | 6 | 2021-12-14T17:52:11.000Z | 2021-12-19T20:22:44.000Z | Basic Python Theory/Part 1 (Basic Syntax)/13 - exponential function.py | GIHAA/Python-For-Beginners | e41a6014be882f01c6ccdcbe2167e2b581646eee | [
"MIT"
] | null | null | null | Basic Python Theory/Part 1 (Basic Syntax)/13 - exponential function.py | GIHAA/Python-For-Beginners | e41a6014be882f01c6ccdcbe2167e2b581646eee | [
"MIT"
] | 2 | 2021-12-19T18:50:30.000Z | 2022-01-01T23:05:18.000Z |
def power(base , pow):
answer = 1
for index in range(pow):
answer = answer * base
return answer
print(power(2 , 14)) | 17.25 | 30 | 0.586957 | 20 | 138 | 4.05 | 0.7 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041667 | 0.304348 | 138 | 8 | 31 | 17.25 | 0.802083 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.333333 | 0.166667 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9a2d32b73f8309c6e104fab0e752a0c2755eb520 | 30,047 | py | Python | DNN_AE.py | rhoposit/style_factors | 5ff754588c392ad908e20149adad6c7dda5df405 | [
"Apache-2.0"
] | 5 | 2020-05-06T07:32:47.000Z | 2021-12-10T07:55:13.000Z | DNN_AE.py | rhoposit/style_factors | 5ff754588c392ad908e20149adad6c7dda5df405 | [
"Apache-2.0"
] | null | null | null | DNN_AE.py | rhoposit/style_factors | 5ff754588c392ad908e20149adad6c7dda5df405 | [
"Apache-2.0"
] | 1 | 2021-12-08T07:21:31.000Z | 2021-12-08T07:21:31.000Z | ################################################################################
# https://github.com/rhoposit/style_factors
#
# Centre for Speech Technology Research
# University of Edinburgh, UK
# Copyright (c) 2014-2015
# A... | 46.656832 | 142 | 0.622791 | 3,773 | 30,047 | 4.756427 | 0.105221 | 0.021175 | 0.069486 | 0.074278 | 0.744901 | 0.722334 | 0.702886 | 0.690906 | 0.689011 | 0.676864 | 0 | 0.037747 | 0.265551 | 30,047 | 643 | 143 | 46.729393 | 0.775467 | 0.105668 | 0 | 0.656064 | 0 | 0 | 0.042332 | 0.014424 | 0 | 0 | 0 | 0 | 0 | 1 | 0.053678 | false | 0 | 0.065606 | 0.001988 | 0.172962 | 0.111332 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9a520d1eeef009e022a92eecfef92965b339bfdb | 247 | py | Python | output/models/nist_data/atomic/g_month/schema_instance/nistschema_sv_iv_atomic_g_month_pattern_4_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 1 | 2021-08-14T17:59:21.000Z | 2021-08-14T17:59:21.000Z | output/models/nist_data/atomic/g_month/schema_instance/nistschema_sv_iv_atomic_g_month_pattern_4_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 4 | 2020-02-12T21:30:44.000Z | 2020-04-15T20:06:46.000Z | output/models/nist_data/atomic/g_month/schema_instance/nistschema_sv_iv_atomic_g_month_pattern_4_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from output.models.nist_data.atomic.g_month.schema_instance.nistschema_sv_iv_atomic_g_month_pattern_4_xsd.nistschema_sv_iv_atomic_g_month_pattern_4 import NistschemaSvIvAtomicGMonthPattern4
__all__ = [
"NistschemaSvIvAtomicGMonthPattern4",
]
| 41.166667 | 189 | 0.890688 | 31 | 247 | 6.387097 | 0.612903 | 0.106061 | 0.181818 | 0.20202 | 0.343434 | 0.343434 | 0.343434 | 0.343434 | 0 | 0 | 0 | 0.017167 | 0.05668 | 247 | 5 | 190 | 49.4 | 0.832618 | 0 | 0 | 0 | 0 | 0 | 0.137652 | 0.137652 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9a56c16256f58427610ccf3cb0a7c8b18c9fbe74 | 1,360 | py | Python | tests/extensions/test_wealthindex.py | investingsnippets/pyinvestingsnippets | 2b50e8f08eb137dc06a3314e82b85d7120a5fa4b | [
"MIT"
] | null | null | null | tests/extensions/test_wealthindex.py | investingsnippets/pyinvestingsnippets | 2b50e8f08eb137dc06a3314e82b85d7120a5fa4b | [
"MIT"
] | 6 | 2021-09-05T11:45:13.000Z | 2021-12-12T08:51:10.000Z | tests/extensions/test_wealthindex.py | investingsnippets/pyinvestingsnippets | 2b50e8f08eb137dc06a3314e82b85d7120a5fa4b | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
from datetime import datetime
def test_wealth_index():
index_range = pd.date_range(start=datetime(2000, 1, 1), periods=5, freq='AS-JAN')
returns = pd.Series(data=[np.nan, 0.4, 0.3, 0.2, 0.5], index=index_range)
assert returns.wealth_index is not None
assert isins... | 48.571429 | 85 | 0.730147 | 234 | 1,360 | 4.064103 | 0.239316 | 0.127234 | 0.189274 | 0.161935 | 0.681388 | 0.622503 | 0.622503 | 0.622503 | 0.622503 | 0.42061 | 0 | 0.094167 | 0.117647 | 1,360 | 27 | 86 | 50.37037 | 0.698333 | 0 | 0 | 0.272727 | 0 | 0 | 0.055188 | 0 | 0 | 0 | 0 | 0 | 0.454545 | 1 | 0.136364 | false | 0 | 0.136364 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9a5e4983192982b0eec76a6f86d01b55fdb27c20 | 2,148 | py | Python | WebEncoders.py | revolunet/sublimetext-web-encoders | df7ce69c8401cfb0c325cb85fc73e1d1ec26d1ed | [
"MIT"
] | 1 | 2015-09-15T10:33:08.000Z | 2015-09-15T10:33:08.000Z | WebEncoders.py | revolunet/sublimetext-web-encoders | df7ce69c8401cfb0c325cb85fc73e1d1ec26d1ed | [
"MIT"
] | null | null | null | WebEncoders.py | revolunet/sublimetext-web-encoders | df7ce69c8401cfb0c325cb85fc73e1d1ec26d1ed | [
"MIT"
] | null | null | null | # -*- encoding: UTF-8 -*-
import sublime, sublime_plugin
import base64
import urllib
class WebCodec(object):
""" Simple naive interface for codecs """
def encode(self, data):
return data
def decode(self, data):
return data
class UrlCodec(WebCodec):
""" url encode/decoder """
de... | 24.689655 | 78 | 0.568436 | 232 | 2,148 | 5.215517 | 0.306034 | 0.072727 | 0.104132 | 0.082645 | 0.320661 | 0.306612 | 0.224793 | 0.071074 | 0.071074 | 0.071074 | 0 | 0.018088 | 0.27933 | 2,148 | 86 | 79 | 24.976744 | 0.763566 | 0.075419 | 0 | 0.241379 | 0 | 0 | 0.076726 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.206897 | false | 0 | 0.051724 | 0.155172 | 0.551724 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
d020555bc7a272edca61c9f558fa8ac6e61e8cd4 | 240 | py | Python | Exercicios/ex017.py | GuilhermeRocha19/PycharmProjects | ac13ca1e1f2b9eb1f3c8f9001b6e309c14f08ef0 | [
"MIT"
] | null | null | null | Exercicios/ex017.py | GuilhermeRocha19/PycharmProjects | ac13ca1e1f2b9eb1f3c8f9001b6e309c14f08ef0 | [
"MIT"
] | null | null | null | Exercicios/ex017.py | GuilhermeRocha19/PycharmProjects | ac13ca1e1f2b9eb1f3c8f9001b6e309c14f08ef0 | [
"MIT"
] | null | null | null | import math
co=float(input('Comprimento cateto oposto:'))
ca=float(input('Comprimento cateto adjacente:'))
hi=math.hypot(co,ca)
#hi= (co**2+ca**2)**(1/2)
#print(f'A hipotenusa vai medir {hi:.2f}.')
print(f'A hipotenusa vai medir {hi:.2}!')
| 30 | 48 | 0.6875 | 42 | 240 | 3.928571 | 0.5 | 0.121212 | 0.254545 | 0.327273 | 0.327273 | 0.327273 | 0.327273 | 0 | 0 | 0 | 0 | 0.027397 | 0.0875 | 240 | 7 | 49 | 34.285714 | 0.726027 | 0.275 | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.2 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d028f67eb0553c9c50d84ee709cf5c2d40b029bb | 916 | py | Python | basics/dic_list.py | Lucky0604/algorithms | a9883abb5464d9c8664b62e5de1f6c85568e2831 | [
"MIT"
] | null | null | null | basics/dic_list.py | Lucky0604/algorithms | a9883abb5464d9c8664b62e5de1f6c85568e2831 | [
"MIT"
] | null | null | null | basics/dic_list.py | Lucky0604/algorithms | a9883abb5464d9c8664b62e5de1f6c85568e2831 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
#-*- coding: utf-8 -*-
import timeit
import random
for i in range(10000, 1000001, 20000):
t = timeit.Timer('random.randrange(%d) in x' % i, 'from __main__ import random, x')
x = list(range(i))
lst_time = t.timeit(number = 1000)
x = {j: None for j in range(i)}
d_time = t.time... | 26.171429 | 87 | 0.517467 | 151 | 916 | 3.086093 | 0.463576 | 0.137339 | 0.034335 | 0.072961 | 0.090129 | 0 | 0 | 0 | 0 | 0 | 0 | 0.409385 | 0.325328 | 916 | 34 | 88 | 26.941176 | 0.34466 | 0.066594 | 0 | 0 | 0 | 0 | 0.206215 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
d050bacbeb01acb47707475a6a3a522b16de0587 | 1,400 | py | Python | base/migrations/0001_initial.py | timebigot/dcjura | 91e4663402f1d2525021525c35c996e9dde29ef0 | [
"MIT"
] | 1 | 2016-07-12T20:49:18.000Z | 2016-07-12T20:49:18.000Z | base/migrations/0001_initial.py | timebigot/dcjura | 91e4663402f1d2525021525c35c996e9dde29ef0 | [
"MIT"
] | null | null | null | base/migrations/0001_initial.py | timebigot/dcjura | 91e4663402f1d2525021525c35c996e9dde29ef0 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-07-12 21:50
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Busines... | 35 | 114 | 0.562143 | 140 | 1,400 | 5.45 | 0.464286 | 0.10616 | 0.188729 | 0.251638 | 0.380079 | 0.207077 | 0.207077 | 0.207077 | 0.207077 | 0.207077 | 0 | 0.039594 | 0.296429 | 1,400 | 39 | 115 | 35.897436 | 0.735025 | 0.047857 | 0 | 0.322581 | 1 | 0 | 0.076692 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.064516 | 0 | 0.193548 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d06b709a225cbcb2c89897223b748c89a623bbd6 | 70 | py | Python | python-upbit/basic/unit03/01.py | sharebook-kr/learningspoons-bootcamp-finance | 0288f3f3b39f54420e4e9987f1de12892dc680ea | [
"MIT"
] | 9 | 2020-10-25T15:13:32.000Z | 2022-03-26T11:27:21.000Z | python-upbit/basic/unit03/01.py | sharebook-kr/learningspoons-bootcamp-finance | 0288f3f3b39f54420e4e9987f1de12892dc680ea | [
"MIT"
] | null | null | null | python-upbit/basic/unit03/01.py | sharebook-kr/learningspoons-bootcamp-finance | 0288f3f3b39f54420e4e9987f1de12892dc680ea | [
"MIT"
] | 7 | 2021-03-01T11:06:45.000Z | 2022-03-14T07:06:04.000Z | import pyupbit
df = pyupbit.get_ohlcv("KRW-BTC", "minute1")
print(df) | 17.5 | 44 | 0.728571 | 11 | 70 | 4.545455 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015873 | 0.1 | 70 | 4 | 45 | 17.5 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0.197183 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
d092ceb850611c1130f651cfb6ee5e315f3d6581 | 309 | py | Python | myapp/templatetags/custom_tags.py | singlasahil221/HackOn | 56c11af6b7485c4212a4083068f4c969ed025a26 | [
"MIT"
] | null | null | null | myapp/templatetags/custom_tags.py | singlasahil221/HackOn | 56c11af6b7485c4212a4083068f4c969ed025a26 | [
"MIT"
] | 3 | 2021-03-19T22:53:10.000Z | 2021-06-10T22:22:18.000Z | myapp/templatetags/custom_tags.py | singlasahil221/HackOn | 56c11af6b7485c4212a4083068f4c969ed025a26 | [
"MIT"
] | null | null | null | from django import template
register = template.Library()
@register.filter
def duration(td):
total_seconds = int(td.total_seconds())
hours = total_seconds // 3600
minutes = (total_seconds % 3600) // 60
seconds = (total_seconds%3600)%60
return '{}:{}:{}'.format(hours, minutes, seconds) | 23.769231 | 53 | 0.679612 | 37 | 309 | 5.540541 | 0.513514 | 0.292683 | 0.234146 | 0.17561 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062992 | 0.177994 | 309 | 13 | 53 | 23.769231 | 0.744094 | 0 | 0 | 0 | 0 | 0 | 0.025806 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d09fa88064738636ddbbca34cd8b44e232b4806a | 9,786 | py | Python | PlantOwl/python/power_plant/Elean_Power_Station_Use_Case/Queries.py | mdhillmancmcl/TheWorldAvatar-CMCL-Fork | 011aee78c016b76762eaf511c78fabe3f98189f4 | [
"MIT"
] | 21 | 2021-03-08T01:58:25.000Z | 2022-03-09T15:46:16.000Z | PlantOwl/python/power_plant/Elean_Power_Station_Use_Case/Queries.py | mdhillmancmcl/TheWorldAvatar-CMCL-Fork | 011aee78c016b76762eaf511c78fabe3f98189f4 | [
"MIT"
] | 63 | 2021-05-04T15:05:30.000Z | 2022-03-23T14:32:29.000Z | PlantOwl/python/power_plant/Elean_Power_Station_Use_Case/Queries.py | mdhillmancmcl/TheWorldAvatar-CMCL-Fork | 011aee78c016b76762eaf511c78fabe3f98189f4 | [
"MIT"
] | 15 | 2021-03-08T07:52:03.000Z | 2022-03-29T04:46:20.000Z | #########################################################
# Author: Zach, Dave and Feroz Farazi (msff2@cam.ac.uk) #
# Date: 24 Nov 2020 #
#########################################################
"""This module defines SPARQL queries"""
def get_lucode_label():
"""Sets the curre... | 43.110132 | 148 | 0.638054 | 979 | 9,786 | 6.242084 | 0.172625 | 0.044674 | 0.103093 | 0.11782 | 0.71674 | 0.709049 | 0.67714 | 0.633939 | 0.633939 | 0.633939 | 0 | 0.013022 | 0.238811 | 9,786 | 227 | 149 | 43.110132 | 0.807357 | 0.151952 | 0 | 0.542169 | 0 | 0.078313 | 0.87277 | 0.117386 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060241 | false | 0 | 0 | 0 | 0.120482 | 0.012048 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d0aefb455a064580abb94de6dcda836cba228233 | 1,096 | py | Python | m3u_manage/tests.py | iandennismiller/m3u-manager | 1bd8c3aa66359bf8c2bbb294e64d6b4e937a3ea0 | [
"MIT"
] | 1 | 2020-05-24T04:25:58.000Z | 2020-05-24T04:25:58.000Z | m3u_manage/tests.py | iandennismiller/m3u-manager | 1bd8c3aa66359bf8c2bbb294e64d6b4e937a3ea0 | [
"MIT"
] | null | null | null | m3u_manage/tests.py | iandennismiller/m3u-manager | 1bd8c3aa66359bf8c2bbb294e64d6b4e937a3ea0 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# m3u-manage (c) Ian Dennis Miller
from nose.plugins.attrib import attr
from unittest import TestCase
class BasicTestCase(TestCase):
def setUp(self):
pass
def tearDown(self):
pass
# def test_basic(self):
# "ensure the minimum test works"
# self.as... | 25.488372 | 69 | 0.614964 | 134 | 1,096 | 4.970149 | 0.432836 | 0.063063 | 0.097598 | 0.15015 | 0.274775 | 0.274775 | 0.274775 | 0.175676 | 0 | 0 | 0 | 0.008717 | 0.267336 | 1,096 | 42 | 70 | 26.095238 | 0.820672 | 0.345803 | 0 | 0.26087 | 0 | 0 | 0.18599 | 0.027778 | 0 | 0 | 0 | 0 | 0.217391 | 1 | 0.26087 | false | 0.086957 | 0.217391 | 0 | 0.521739 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
d0b4e1b18755a5e0a64d1f0bb569c68731f3e798 | 119 | py | Python | Bangu/Semana 4/Exemplos de Sala de Aula/Exemplo017/main.py | profoswaldo/Unisuam_2022-1 | cd0faad61480030d1320515a8104373ada70545b | [
"MIT"
] | 2 | 2022-03-25T02:04:11.000Z | 2022-03-25T09:26:44.000Z | Bangu/Semana 4/Exemplos de Sala de Aula/Exemplo017/main.py | profoswaldo/Unisuam_2022-1 | cd0faad61480030d1320515a8104373ada70545b | [
"MIT"
] | null | null | null | Bangu/Semana 4/Exemplos de Sala de Aula/Exemplo017/main.py | profoswaldo/Unisuam_2022-1 | cd0faad61480030d1320515a8104373ada70545b | [
"MIT"
] | null | null | null | # Desenvolva um algoritimo em Python que exiba os números pares entre 1 e 10.
for i in range(0, 11, 2):
print(i)
| 19.833333 | 77 | 0.689076 | 23 | 119 | 3.565217 | 0.956522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 0.235294 | 119 | 5 | 78 | 23.8 | 0.824176 | 0.630252 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
d0c46a3ed9be95ba18ff2424af3e90c5204282bb | 306 | py | Python | dffml/accuracy/__init__.py | agriyakhetarpal/dffml | f76f2ce94c3972634053377b00e7c16530f7f0a4 | [
"MIT"
] | 171 | 2019-03-08T19:02:06.000Z | 2022-03-29T16:17:23.000Z | dffml/accuracy/__init__.py | agriyakhetarpal/dffml | f76f2ce94c3972634053377b00e7c16530f7f0a4 | [
"MIT"
] | 1,158 | 2019-03-08T19:07:50.000Z | 2022-03-25T08:28:27.000Z | dffml/accuracy/__init__.py | agriyakhetarpal/dffml | f76f2ce94c3972634053377b00e7c16530f7f0a4 | [
"MIT"
] | 183 | 2019-03-10T02:40:56.000Z | 2022-03-27T18:51:26.000Z | # SPDX-License-Identifier: MIT
# Copyright (c) 2020 Intel Corporation
"""
This the accuracy plugin
"""
from .accuracy import (
AccuracyConfig,
AccuracyContext,
AccuracyScorer,
InvalidNumberOfFeaturesError,
)
from .mse import MeanSquaredErrorAccuracy
from .clf import ClassificationAccuracy
| 21.857143 | 41 | 0.771242 | 28 | 306 | 8.428571 | 0.821429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015504 | 0.156863 | 306 | 13 | 42 | 23.538462 | 0.899225 | 0.297386 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.375 | 0 | 0.375 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
d0e020addb496671766cae897ac67215173179fc | 8,858 | py | Python | leo/modes/splus.py | ATikhonov2/leo-editor | 225aac990a9b2804aaa9dea29574d6e072e30474 | [
"MIT"
] | 1,550 | 2015-01-14T16:30:37.000Z | 2022-03-31T08:55:58.000Z | leo/modes/splus.py | ATikhonov2/leo-editor | 225aac990a9b2804aaa9dea29574d6e072e30474 | [
"MIT"
] | 2,009 | 2015-01-13T16:28:52.000Z | 2022-03-31T18:21:48.000Z | leo/modes/splus.py | ATikhonov2/leo-editor | 225aac990a9b2804aaa9dea29574d6e072e30474 | [
"MIT"
] | 200 | 2015-01-05T15:07:41.000Z | 2022-03-07T17:05:01.000Z | # Leo colorizer control file for splus mode.
# This file is in the public domain.
# Properties for splus mode.
properties = {
"doubleBracketIndent": "false",
"indentCloseBrackets": "}",
"indentNextLine": "\\s*(((if|while)\\s*\\(|else\\s*|else\\s+if\\s*\\(|for\\s*\\(.*\\))[^{;]*)",
"indentOpenBr... | 34.466926 | 100 | 0.616053 | 1,128 | 8,858 | 4.548759 | 0.132979 | 0.137205 | 0.043851 | 0.073085 | 0.712337 | 0.707854 | 0.69733 | 0.684857 | 0.676087 | 0.663613 | 0 | 0.033197 | 0.197449 | 8,858 | 256 | 101 | 34.601563 | 0.688564 | 0.046625 | 0 | 0.12381 | 0 | 0.004762 | 0.108121 | 0.016389 | 0 | 0 | 0 | 0 | 0 | 1 | 0.119048 | false | 0 | 0.004762 | 0.119048 | 0.242857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
d0e1f974899763777d8c498e2d1cd2aa1f5ecc45 | 331 | py | Python | src/0022.generate-parentheses/generate-parentheses.py | lyphui/Just-Code | e0c3c3ecb67cb805080ff686e88522b2bffe7741 | [
"MIT"
] | 782 | 2019-11-19T08:20:49.000Z | 2022-03-25T06:59:09.000Z | src/0022.generate-parentheses/generate-parentheses.py | Heitao5200/Just-Code | 5bb3ee485a103418e693b7ec8e26dc84f3691c79 | [
"MIT"
] | 1 | 2021-03-04T12:21:01.000Z | 2021-03-05T01:23:54.000Z | src/0022.generate-parentheses/generate-parentheses.py | Heitao5200/Just-Code | 5bb3ee485a103418e693b7ec8e26dc84f3691c79 | [
"MIT"
] | 155 | 2019-11-20T08:20:42.000Z | 2022-03-19T07:28:09.000Z | class Solution(object):
def generateParenthesis(self, N):
if N == 0: return ['']
ans = []
for c in range(N):
for left in self.generateParenthesis(c):
for right in self.generateParenthesis(N-1-c):
ans.append('({}){}'.format(left, right))
... | 36.777778 | 61 | 0.522659 | 38 | 331 | 4.552632 | 0.526316 | 0.104046 | 0.289017 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009174 | 0.34139 | 331 | 9 | 62 | 36.777778 | 0.784404 | 0 | 0 | 0 | 1 | 0 | 0.018072 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d0f936df8c928ecd7ca9c3ff55727710fbb66a89 | 284 | py | Python | POO/heranca_multipla/main.py | raphael-d-cordeiro/Python_Public | 56d0080393dab5f80ad650e27cb993006b17ac1b | [
"MIT"
] | null | null | null | POO/heranca_multipla/main.py | raphael-d-cordeiro/Python_Public | 56d0080393dab5f80ad650e27cb993006b17ac1b | [
"MIT"
] | null | null | null | POO/heranca_multipla/main.py | raphael-d-cordeiro/Python_Public | 56d0080393dab5f80ad650e27cb993006b17ac1b | [
"MIT"
] | null | null | null | from smartphone import SmartPhone
if __name__ == '__main__':
smart1 = SmartPhone('IPHONE 11')
smart1.ligar()
smart1.inicia_conexao()
smart1.inicia_conexao()
smart1.finaliza_conexao()
smart1.finaliza_conexao()
smart1.desligar()
smart1.inicia_conexao()
| 23.666667 | 36 | 0.707746 | 30 | 284 | 6.266667 | 0.466667 | 0.276596 | 0.303191 | 0.265957 | 0.292553 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043103 | 0.183099 | 284 | 11 | 37 | 25.818182 | 0.767241 | 0 | 0 | 0.5 | 0 | 0 | 0.059859 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1908beba2400c969a07d8ef6ff215a7396716d0c | 205 | py | Python | models/meta.py | SORSE/sorse-data-filter | d309ac3d834c1b546566152827e88cf7099d8a95 | [
"MIT"
] | 1 | 2020-07-06T08:52:11.000Z | 2020-07-06T08:52:11.000Z | models/meta.py | SORSE/sorse-data-filter | d309ac3d834c1b546566152827e88cf7099d8a95 | [
"MIT"
] | 16 | 2020-07-16T14:26:49.000Z | 2020-08-20T06:38:42.000Z | models/meta.py | SORSE/sorse-data-filter | d309ac3d834c1b546566152827e88cf7099d8a95 | [
"MIT"
] | 1 | 2020-07-14T17:52:16.000Z | 2020-07-14T17:52:16.000Z | import datetime
from pytz import timezone
class Meta:
current_date: datetime.datetime
def __init__(self):
utc = timezone("UTC")
self.current_date = datetime.datetime.now(tz=utc)
| 18.636364 | 57 | 0.692683 | 26 | 205 | 5.230769 | 0.576923 | 0.161765 | 0.279412 | 0.397059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.219512 | 205 | 10 | 58 | 20.5 | 0.85 | 0 | 0 | 0 | 0 | 0 | 0.014634 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.714286 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
efb0f113d9d62ca2e9bef253dcdc22da48f54239 | 427 | py | Python | test_empty.py | airypi/airypi | c7e3e781eaf2e6b3e2e87b576d5202e381544d0c | [
"Apache-2.0"
] | 3 | 2015-11-04T19:45:48.000Z | 2017-10-26T19:40:18.000Z | test_empty.py | airypi/airypi | c7e3e781eaf2e6b3e2e87b576d5202e381544d0c | [
"Apache-2.0"
] | null | null | null | test_empty.py | airypi/airypi | c7e3e781eaf2e6b3e2e87b576d5202e381544d0c | [
"Apache-2.0"
] | null | null | null | from airypi import monkey
monkey.patch_all()
from airypi.device import Device
from airypi.ui import Label, Button, SwitchButton
from airypi.server import setup
@Device.register_for(Device.RPI)
class RPiHandler():
pass
if __name__ == "__main__":
setup(host = '0.0.0.0',
client_id = 'MjxW6U5HjKmdyzEQ... | 26.6875 | 80 | 0.754098 | 47 | 427 | 6.595745 | 0.617021 | 0.129032 | 0.019355 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038889 | 0.156909 | 427 | 16 | 80 | 26.6875 | 0.822222 | 0 | 0 | 0 | 0 | 0 | 0.245327 | 0.21028 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.083333 | 0.333333 | 0 | 0.416667 | 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 | 0 | 0 | 0 | 3 |
efbf78b58177ecb1e7ec35b468c1a7603bd0deff | 127 | py | Python | abc168/a.py | Lockdef/kyopro-code | 2d943a87987af05122c556e173e5108a0c1c77c8 | [
"MIT"
] | null | null | null | abc168/a.py | Lockdef/kyopro-code | 2d943a87987af05122c556e173e5108a0c1c77c8 | [
"MIT"
] | null | null | null | abc168/a.py | Lockdef/kyopro-code | 2d943a87987af05122c556e173e5108a0c1c77c8 | [
"MIT"
] | null | null | null | N = int(input()[-1])
if N in [2, 4, 5, 7, 9]:
print("hon")
elif N in [0, 1, 6, 8]:
print("pon")
else:
print("bon")
| 15.875 | 24 | 0.464567 | 26 | 127 | 2.269231 | 0.769231 | 0.101695 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107527 | 0.267717 | 127 | 7 | 25 | 18.142857 | 0.526882 | 0 | 0 | 0 | 0 | 0 | 0.070866 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.428571 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
efc6e4fda395172088b6eafcec20e822b9cd374e | 321 | py | Python | android/pgs4a/pymo/e32.py | pymo/pymo | 703ba457fba90635ab61fe4c8ec054e002613283 | [
"MIT"
] | 69 | 2015-01-16T13:12:55.000Z | 2022-02-14T12:55:27.000Z | android/pgs4a/pymo/e32.py | pymo/pymo | 703ba457fba90635ab61fe4c8ec054e002613283 | [
"MIT"
] | 3 | 2019-07-19T18:02:02.000Z | 2021-04-25T06:35:42.000Z | android/pgs4a/pymo/e32.py | pymo/pymo | 703ba457fba90635ab61fe4c8ec054e002613283 | [
"MIT"
] | 17 | 2015-04-17T13:50:09.000Z | 2021-05-13T02:47:56.000Z |
import pygame
try:
import android
except ImportError:
android = None
def ao_sleep(period):
pygame.time.wait(int(period*1000))
def ao_yield():
return
# Android-specific:
## if android:
## if android.check_pause():
## android.wait_for_resume()
def reset_inactivity():
pass... | 15.285714 | 39 | 0.641745 | 39 | 321 | 5.128205 | 0.666667 | 0.05 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016529 | 0.246106 | 321 | 20 | 40 | 16.05 | 0.809917 | 0.317757 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0.090909 | 0.272727 | 0.090909 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.