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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
be448dd6c7e5323b05fa1bb2e75677df1204a580 | 823 | py | Python | axonius_api_client/cli/grp_assets/grp_saved_query/__init__.py | kf-careem/axonius_api_client | 27767c896ca446e74ca5d69e087e1a0dcf7157ec | [
"MIT"
] | 11 | 2020-01-31T00:28:26.000Z | 2022-03-25T20:27:08.000Z | axonius_api_client/cli/grp_assets/grp_saved_query/__init__.py | kf-careem/axonius_api_client | 27767c896ca446e74ca5d69e087e1a0dcf7157ec | [
"MIT"
] | 83 | 2020-01-22T12:52:38.000Z | 2022-02-07T16:20:18.000Z | axonius_api_client/cli/grp_assets/grp_saved_query/__init__.py | kf-careem/axonius_api_client | 27767c896ca446e74ca5d69e087e1a0dcf7157ec | [
"MIT"
] | 16 | 2019-08-23T17:44:31.000Z | 2022-01-06T00:57:34.000Z | # -*- coding: utf-8 -*-
"""Command line interface for Axonius API Client."""
import click
from ...context import AliasedGroup
from . import (
cmd_add,
cmd_add_from_json,
cmd_add_from_wiz_csv,
cmd_delete_by_name,
cmd_delete_by_tags,
cmd_get,
cmd_get_by_name,
cmd_get_by_tags,
cmd_get_... | 24.939394 | 52 | 0.784933 | 139 | 823 | 4.179856 | 0.23741 | 0.172117 | 0.201377 | 0.309811 | 0.693632 | 0.552496 | 0.464716 | 0.414802 | 0 | 0 | 0 | 0.001372 | 0.114216 | 823 | 32 | 53 | 25.71875 | 0.79561 | 0.122722 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | true | 0 | 0.125 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
be672c91fc69341994a79d4d4b3a487d378cfd1a | 336 | pyde | Python | processing/chapter5/sketch_5_2_L20/sketch_5_2_L20.pyde | brickdonut/2019-fall-polytech-cs | b2830795f35e65ff90cf73e0746551c6efdd1f87 | [
"MIT"
] | null | null | null | processing/chapter5/sketch_5_2_L20/sketch_5_2_L20.pyde | brickdonut/2019-fall-polytech-cs | b2830795f35e65ff90cf73e0746551c6efdd1f87 | [
"MIT"
] | null | null | null | processing/chapter5/sketch_5_2_L20/sketch_5_2_L20.pyde | brickdonut/2019-fall-polytech-cs | b2830795f35e65ff90cf73e0746551c6efdd1f87 | [
"MIT"
] | null | null | null | def setup():
size(500,500)
smooth()
background(255)
strokeWeight(30)
noLoop()
stroke(0,50)
def draw():
k = 1;
i = 1;
while k < 4:
while i < 8:
line(i*50, 100*k, 150 + (i-1)*50, 100+100*k)
line(i*50+100, 100*k, 50 + (i-1)*50, 100+100*k)
i = i+1
i = 1
... | 16.8 | 55 | 0.449405 | 59 | 336 | 2.559322 | 0.389831 | 0.066225 | 0.15894 | 0.178808 | 0.145695 | 0.145695 | 0 | 0 | 0 | 0 | 0 | 0.267606 | 0.366071 | 336 | 19 | 56 | 17.684211 | 0.441315 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0 | 0 | 0.117647 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
be6aa4028be4b6bbac13987e05b02422534a08c3 | 21,536 | py | Python | t1204/trigen.py | m-aze/rebl-rebel | 6af2d178e26f50fe57a39fff08358ff8231a616b | [
"Apache-2.0"
] | null | null | null | t1204/trigen.py | m-aze/rebl-rebel | 6af2d178e26f50fe57a39fff08358ff8231a616b | [
"Apache-2.0"
] | null | null | null | t1204/trigen.py | m-aze/rebl-rebel | 6af2d178e26f50fe57a39fff08358ff8231a616b | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import random, sys
# creds to:
__author__ = "Jeff White [karttoon] @noottrak"
__email__ = "karttoon@gmail.com"
__version__ = "1.0.1"
__date__ = "04APR2017"
# Dictionary structures
# key = Function name
# value = List of flags for supporting code to include, followed by respective declarati... | 67.090343 | 276 | 0.684668 | 2,564 | 21,536 | 5.74415 | 0.128705 | 0.064503 | 0.095057 | 0.113118 | 0.677621 | 0.652499 | 0.635388 | 0.61726 | 0.500679 | 0.439707 | 0 | 0.0137 | 0.189961 | 21,536 | 320 | 277 | 67.3 | 0.830553 | 0.042626 | 0 | 0.251799 | 0 | 0.215827 | 0.782718 | 0.107767 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.003597 | null | null | 0.010791 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
be785dad8219e4029bc1735640f948bd76fe2c42 | 4,556 | py | Python | oasislmf/cmd/config.py | jonathanbethel/OasisLMF | 7dfbbd237580d36f4b209a5e4494d21d7950e668 | [
"BSD-3-Clause"
] | 1 | 2019-08-10T18:53:53.000Z | 2019-08-10T18:53:53.000Z | oasislmf/cmd/config.py | jonathanbethel/OasisLMF | 7dfbbd237580d36f4b209a5e4494d21d7950e668 | [
"BSD-3-Clause"
] | null | null | null | oasislmf/cmd/config.py | jonathanbethel/OasisLMF | 7dfbbd237580d36f4b209a5e4494d21d7950e668 | [
"BSD-3-Clause"
] | null | null | null | from argparse import RawDescriptionHelpFormatter
from .base import OasisBaseCommand
class ConfigCmd(OasisBaseCommand):
"""
The ``oasislmf`` tool can be configured using using a JSON configuration file.
By default this is stored in ``oasislmf.json`` but the path can be overridden using the ``--config`` f... | 73.483871 | 231 | 0.769535 | 626 | 4,556 | 5.386581 | 0.27476 | 0.066429 | 0.02847 | 0.033215 | 0.340154 | 0.271945 | 0.204626 | 0.185053 | 0.144128 | 0.144128 | 0 | 0.000528 | 0.169227 | 4,556 | 61 | 232 | 74.688525 | 0.890357 | 0.919886 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
be817e3e911722375e345b8441b0d66c1bae2ad2 | 256 | py | Python | 2015/task_4/first.py | romanthekat/advent_of_code | d9005d9824ab7aadd6bc93fd88421f6fdc95520e | [
"Apache-2.0"
] | null | null | null | 2015/task_4/first.py | romanthekat/advent_of_code | d9005d9824ab7aadd6bc93fd88421f6fdc95520e | [
"Apache-2.0"
] | 5 | 2016-07-03T19:07:55.000Z | 2019-12-10T19:24:25.000Z | 2015/task_4/first.py | EvilKhaosKat/advent_of_code | d9005d9824ab7aadd6bc93fd88421f6fdc95520e | [
"Apache-2.0"
] | null | null | null | import hashlib
secret_key = "yzbqklnj"
number = 0
def get_md5_hash(secret_key, number):
return hashlib.md5(secret_key + str(number)).hexdigest()
i = 0
while not get_md5_hash(secret_key, number).startswith("00000"):
number += 1
print(number)
| 15.058824 | 63 | 0.71875 | 38 | 256 | 4.631579 | 0.552632 | 0.204545 | 0.113636 | 0.181818 | 0.284091 | 0.284091 | 0 | 0 | 0 | 0 | 0 | 0.051163 | 0.160156 | 256 | 16 | 64 | 16 | 0.767442 | 0 | 0 | 0 | 0 | 0 | 0.050781 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0.111111 | 0.333333 | 0.111111 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
be82452d0c73816118fb37fb7b4ae93c1f915b95 | 154 | py | Python | check.py | jarvis-1805/PYTHON-FILES | c12dc74f83dadb08acdf5d6260222c3ce8a91797 | [
"MIT"
] | 1 | 2020-05-23T12:37:11.000Z | 2020-05-23T12:37:11.000Z | check.py | jarvis-1805/PYTHON-FILES | c12dc74f83dadb08acdf5d6260222c3ce8a91797 | [
"MIT"
] | null | null | null | check.py | jarvis-1805/PYTHON-FILES | c12dc74f83dadb08acdf5d6260222c3ce8a91797 | [
"MIT"
] | null | null | null |
def check(n):
if n%2 == 0:
print("EVEN")
return n+1
else:
print("ODD")
return n+1
p = check(8)
print(p) | 12.833333 | 21 | 0.415584 | 23 | 154 | 2.782609 | 0.608696 | 0.21875 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057471 | 0.435065 | 154 | 12 | 22 | 12.833333 | 0.678161 | 0 | 0 | 0.222222 | 0 | 0 | 0.045455 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
be8906e464118105efb1e28079c1363dd05be74c | 131 | py | Python | pygdpr/services/filename_from_path_service.py | GDPRxiv/crawler | 178ef9ff6c3641ba8b761a49e42c2579e453c1ca | [
"MIT"
] | null | null | null | pygdpr/services/filename_from_path_service.py | GDPRxiv/crawler | 178ef9ff6c3641ba8b761a49e42c2579e453c1ca | [
"MIT"
] | 2 | 2022-02-19T06:56:03.000Z | 2022-02-19T07:00:00.000Z | pygdpr/services/filename_from_path_service.py | GDPRxiv/crawler | 178ef9ff6c3641ba8b761a49e42c2579e453c1ca | [
"MIT"
] | null | null | null | def filename_from_path_service(path):
subpaths = path.split('/')[-1]
filename = subpaths.split('.')[0]
return filename
| 26.2 | 37 | 0.664122 | 16 | 131 | 5.25 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018349 | 0.167939 | 131 | 4 | 38 | 32.75 | 0.752294 | 0 | 0 | 0 | 0 | 0 | 0.015267 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
be9458a4171eb78d49022ac9555fce12c8c5d208 | 124 | py | Python | problem/10000~19999/10093/10093.pypy3.py | njw1204/BOJ-AC | 1de41685725ae4657a7ff94e413febd97a888567 | [
"MIT"
] | 1 | 2019-04-19T16:37:44.000Z | 2019-04-19T16:37:44.000Z | problem/10000~19999/10093/10093.pypy3.py | njw1204/BOJ-AC | 1de41685725ae4657a7ff94e413febd97a888567 | [
"MIT"
] | 1 | 2019-04-20T11:42:44.000Z | 2019-04-20T11:42:44.000Z | problem/10000~19999/10093/10093.pypy3.py | njw1204/BOJ-AC | 1de41685725ae4657a7ff94e413febd97a888567 | [
"MIT"
] | 3 | 2019-04-19T16:37:47.000Z | 2021-10-25T00:45:00.000Z | a,b=sorted(map(int,input().split()))
if abs(a-b)<=1:
print(0)
exit()
print(b-a-1)
for i in range(a+1,b):
print(i,end=" ") | 17.714286 | 36 | 0.58871 | 29 | 124 | 2.517241 | 0.62069 | 0.054795 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036364 | 0.112903 | 124 | 7 | 37 | 17.714286 | 0.627273 | 0 | 0 | 0 | 0 | 0 | 0.008 | 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 |
bea86ee72e1f2fca8f201b21676723445196f285 | 1,289 | py | Python | app/forms.py | jagg2/groceri.es | 911e7b05be42b7f3ca6539cb8f13298018823472 | [
"MIT"
] | 130 | 2020-05-14T11:56:54.000Z | 2022-03-29T17:22:12.000Z | app/forms.py | jagg2/groceri.es | 911e7b05be42b7f3ca6539cb8f13298018823472 | [
"MIT"
] | 13 | 2020-08-02T17:46:20.000Z | 2022-03-15T15:16:25.000Z | app/forms.py | jagg2/groceri.es | 911e7b05be42b7f3ca6539cb8f13298018823472 | [
"MIT"
] | 21 | 2020-05-14T14:02:57.000Z | 2022-01-21T11:06:21.000Z | from flask_wtf import FlaskForm
from wtforms import BooleanField, IntegerField, PasswordField, StringField, SubmitField
from wtforms.validators import DataRequired, NumberRange
class LoginForm(FlaskForm):
username = StringField('Username', validators=[DataRequired()])
password = PasswordField('Password', vali... | 44.448276 | 87 | 0.724593 | 121 | 1,289 | 7.68595 | 0.347107 | 0.260215 | 0.106452 | 0.116129 | 0.363441 | 0.363441 | 0.32043 | 0.32043 | 0.32043 | 0.32043 | 0 | 0.016187 | 0.137316 | 1,289 | 28 | 88 | 46.035714 | 0.820144 | 0 | 0 | 0.25 | 0 | 0 | 0.089216 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.125 | 0.125 | 0 | 0.875 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
bebe6a4d3170f854273b3c38ab809c9be8332b50 | 2,810 | py | Python | mi/platform/platform_driver_event.py | rhan1498/marine-integrations | ad94c865e0e4cc7c8fd337870410c74b57d5c826 | [
"BSD-2-Clause"
] | null | null | null | mi/platform/platform_driver_event.py | rhan1498/marine-integrations | ad94c865e0e4cc7c8fd337870410c74b57d5c826 | [
"BSD-2-Clause"
] | null | null | null | mi/platform/platform_driver_event.py | rhan1498/marine-integrations | ad94c865e0e4cc7c8fd337870410c74b57d5c826 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
"""
@package mi.platform.platform_driver_event
@file mi/platform/platform_driver_event.py
@author Carlos Rueda
@brief Classes for platform driver events. These classes are for internal
coordination within the platform agent framework (they are not
in principle exposed to t... | 25.779817 | 75 | 0.640214 | 337 | 2,810 | 4.88724 | 0.249258 | 0.060716 | 0.051002 | 0.051609 | 0.281724 | 0.122647 | 0.095932 | 0.095932 | 0.095932 | 0.095932 | 0 | 0.00096 | 0.258719 | 2,810 | 108 | 76 | 26.018519 | 0.789726 | 0.214947 | 0 | 0.310345 | 0 | 0 | 0.081905 | 0.01 | 0 | 0 | 0 | 0 | 0 | 1 | 0.275862 | false | 0.017241 | 0 | 0.172414 | 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 |
fe40ca796478de5a85b49ade348690b194d025c8 | 3,940 | py | Python | clutch/schema/request/session/mutator.py | ExeArco/clutch | 223244b1294b496ba16c8a2433eb453cce593a62 | [
"MIT"
] | 34 | 2018-04-14T12:53:07.000Z | 2021-08-21T12:52:23.000Z | clutch/schema/request/session/mutator.py | ExeArco/clutch | 223244b1294b496ba16c8a2433eb453cce593a62 | [
"MIT"
] | 18 | 2018-04-30T20:32:44.000Z | 2021-10-03T15:24:33.000Z | clutch/schema/request/session/mutator.py | ExeArco/clutch | 223244b1294b496ba16c8a2433eb453cce593a62 | [
"MIT"
] | 10 | 2019-01-31T20:21:13.000Z | 2021-10-03T10:01:26.000Z | from typing import Optional
from pydantic import BaseModel, Field, root_validator
from clutch.schema.request.session.shared import UnitsRequest
class SessionMutatorArgumentsRequest(BaseModel):
alt_speed_down: Optional[int] = Field(None, alias="alt-speed-down")
alt_speed_enabled: Optional[bool] = Field(None,... | 52.533333 | 88 | 0.720558 | 518 | 3,940 | 5.297297 | 0.19112 | 0.134475 | 0.209184 | 0.160714 | 0.561589 | 0.446793 | 0.228499 | 0.101676 | 0 | 0 | 0 | 0.000297 | 0.146447 | 3,940 | 74 | 89 | 53.243243 | 0.815641 | 0 | 0 | 0 | 0 | 0 | 0.199239 | 0.084518 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014706 | false | 0 | 0.044118 | 0 | 0.735294 | 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 |
fe541f1a792792446032593abd4ee32e61d18111 | 786 | py | Python | zomato/modules/Fundamentals/cuisines.py | srimanthds/FoodDeliveryApplication | b509bb0055f0a2e0fbbb578cc8d7b7ac6f3a17ea | [
"MIT"
] | 4 | 2017-08-17T21:35:49.000Z | 2018-08-07T12:00:13.000Z | zomato/modules/Fundamentals/cuisines.py | srimanthds/FoodDeliveryApplication | b509bb0055f0a2e0fbbb578cc8d7b7ac6f3a17ea | [
"MIT"
] | 1 | 2018-01-24T15:54:50.000Z | 2018-01-29T22:53:22.000Z | zomato/modules/Fundamentals/cuisines.py | srimanthds/FoodDeliveryApplication | b509bb0055f0a2e0fbbb578cc8d7b7ac6f3a17ea | [
"MIT"
] | 2 | 2018-01-24T13:03:29.000Z | 2020-06-07T01:05:17.000Z | from zomato.modules.Fundamentals.base_fundamental import BaseFundamental
from collections.abc import Sequence
class Cuisines(BaseFundamental, Sequence):
def __len__(self):
return len(self.cuisines)
def __getitem__(self, index):
return self.cuisines[index]
def __init__(self, data, headers... | 29.111111 | 72 | 0.683206 | 89 | 786 | 5.730337 | 0.359551 | 0.117647 | 0.043137 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.212468 | 786 | 26 | 73 | 30.230769 | 0.82391 | 0 | 0 | 0 | 0 | 0 | 0.047074 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.263158 | false | 0 | 0.105263 | 0.105263 | 0.578947 | 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 |
fe5c7f999dce06fb4eeb1154c1ff0d8d6a0333c2 | 418 | py | Python | stackrunner/_meta/errors.py | buckley-w-david/stackrunner | f5affd3585d822285775a52a43c8d772491b113a | [
"MIT"
] | 1 | 2020-11-07T16:00:34.000Z | 2020-11-07T16:00:34.000Z | stackrunner/_meta/errors.py | buckley-w-david/stackrunner | f5affd3585d822285775a52a43c8d772491b113a | [
"MIT"
] | null | null | null | stackrunner/_meta/errors.py | buckley-w-david/stackrunner | f5affd3585d822285775a52a43c8d772491b113a | [
"MIT"
] | null | null | null | class StackRunnerError(Exception):
pass
class NoValidCodeError(StackRunnerError):
pass
class MultiError(StackRunnerError):
def __init__(self, context=None):
self.context = [context] if context is not None else []
def add_context(self, context: Exception):
self.context.append(context)
... | 23.222222 | 63 | 0.688995 | 49 | 418 | 5.77551 | 0.530612 | 0.194346 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210526 | 418 | 17 | 64 | 24.588235 | 0.857576 | 0 | 0 | 0.166667 | 0 | 0 | 0.004796 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.166667 | 0 | 0.083333 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
fe5cc171df5cc49f87eef5f1e662d1858c7d0217 | 221 | py | Python | videoanalyst/model/transfor/transfor_base.py | Jee-King/STNet | 221ab60c4fccfce5a03e8878fb168e0baa7152f4 | [
"MIT"
] | 7 | 2022-03-28T15:08:21.000Z | 2022-03-31T02:59:39.000Z | videoanalyst/model/transfor/transfor_base.py | Jee-King/STNet | 221ab60c4fccfce5a03e8878fb168e0baa7152f4 | [
"MIT"
] | null | null | null | videoanalyst/model/transfor/transfor_base.py | Jee-King/STNet | 221ab60c4fccfce5a03e8878fb168e0baa7152f4 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*
from videoanalyst.utils import Registry
TRACK_TRANSFOR = Registry('TRACK_TRANSFOR')
VOS_TRANSFOR = Registry('VOS_TRANSFOR')
TASK_TRANSFOR = dict(
track=TRACK_TRANSFOR,
vos=VOS_TRANSFOR,
)
| 20.090909 | 43 | 0.742081 | 27 | 221 | 5.814815 | 0.481481 | 0.248408 | 0.267516 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005263 | 0.140271 | 221 | 10 | 44 | 22.1 | 0.821053 | 0.090498 | 0 | 0 | 0 | 0 | 0.130653 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fe650eb4f59afb62158832965c9168ad0de1d072 | 1,260 | py | Python | reward.py | microsoftv/slippi-ai | fdd5ce40452adebc92a8e8908a043d0c01dd5bae | [
"MIT"
] | null | null | null | reward.py | microsoftv/slippi-ai | fdd5ce40452adebc92a8e8908a043d0c01dd5bae | [
"MIT"
] | 1 | 2021-06-09T18:41:18.000Z | 2021-06-09T18:41:18.000Z | reward.py | microsoftv/slippi-ai | fdd5ce40452adebc92a8e8908a043d0c01dd5bae | [
"MIT"
] | null | null | null | """Calculate rewards for off-policy reinforcement learning."""
import numpy as np
def is_dying(player_action):
# See https://docs.google.com/spreadsheets/d/1JX2w-r2fuvWuNgGb6D3Cs4wHQKLFegZe2jhbBuIhCG8/edit#gid=13
return player_action <= 0xA
def process_deaths(deaths):
# Players are in a dead action-state for m... | 36 | 103 | 0.706349 | 194 | 1,260 | 4.510309 | 0.474227 | 0.022857 | 0.034286 | 0.034286 | 0.091429 | 0.036571 | 0 | 0 | 0 | 0 | 0 | 0.020212 | 0.175397 | 1,260 | 34 | 104 | 37.058824 | 0.821944 | 0.426984 | 0 | 0 | 0 | 0 | 0.036982 | 0 | 0 | 0 | 0.004438 | 0 | 0 | 1 | 0.307692 | false | 0 | 0.076923 | 0.230769 | 0.692308 | 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 |
fe6edfb13c538ae2835b55af8aa7acc43fcc3b43 | 642 | py | Python | tests/test_change_something.py | ludeeus/sampleclient | 3738b23ed24df6fc47212cca1082a3c324668845 | [
"MIT"
] | null | null | null | tests/test_change_something.py | ludeeus/sampleclient | 3738b23ed24df6fc47212cca1082a3c324668845 | [
"MIT"
] | null | null | null | tests/test_change_something.py | ludeeus/sampleclient | 3738b23ed24df6fc47212cca1082a3c324668845 | [
"MIT"
] | 1 | 2019-08-11T16:58:34.000Z | 2019-08-11T16:58:34.000Z | """Test change_something"""
USERNAME = "test_username"
PASSWORD = "test_password"
def test_change_something_true():
"""Test hange_something_true."""
from sampleclient.client import Client
client = Client(USERNAME, PASSWORD)
print(client.something)
client.change_something(False)
print(client.s... | 22.928571 | 42 | 0.750779 | 73 | 642 | 6.315068 | 0.191781 | 0.260304 | 0.247289 | 0.156182 | 0.672451 | 0.555315 | 0.555315 | 0.555315 | 0.555315 | 0.555315 | 0 | 0 | 0.149533 | 642 | 27 | 43 | 23.777778 | 0.844322 | 0.119938 | 0 | 0.625 | 0 | 0 | 0.047359 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.1875 | 0.125 | 0 | 0.25 | 0.25 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
fe6fc672655740e8696a9b252c30ee8254fc2878 | 361 | py | Python | cnn/struct/optimizer/sgd_module.py | hslee1539/GIS_GANs | 6901c830b924e59fd06247247db3f925bab26583 | [
"MIT"
] | null | null | null | cnn/struct/optimizer/sgd_module.py | hslee1539/GIS_GANs | 6901c830b924e59fd06247247db3f925bab26583 | [
"MIT"
] | null | null | null | cnn/struct/optimizer/sgd_module.py | hslee1539/GIS_GANs | 6901c830b924e59fd06247247db3f925bab26583 | [
"MIT"
] | null | null | null | from import_lib import lib
from tensor.main_module import Tensor
#from cnn.struct.layer_module import Layer
from cnn.struct.optimizer_module import Optimizer
from ctypes import Structure, c_float, POINTER
def createSGD(learning_rate):
return lib.cnn_create_SGD(learning_rate)
lib.cnn_create_SGD.argtypes = [c_float... | 30.083333 | 49 | 0.833795 | 56 | 361 | 5.125 | 0.428571 | 0.125436 | 0.125436 | 0.156794 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 361 | 11 | 50 | 32.818182 | 0.888545 | 0.113573 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.5 | 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 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
fe7eaf345754c62b42ea4b16250f810ce4205d9a | 274 | py | Python | nameko_mongoengine/version.py | ketgo/nameko-mongoengine | 94b4a41dfa845cec8b48f874c0b64658a1c4bef6 | [
"Apache-2.0"
] | 2 | 2019-12-06T17:51:44.000Z | 2020-02-20T22:38:38.000Z | nameko_mongoengine/version.py | ketgo/nameko-mongoengine | 94b4a41dfa845cec8b48f874c0b64658a1c4bef6 | [
"Apache-2.0"
] | 1 | 2022-03-07T02:32:45.000Z | 2022-03-07T06:45:43.000Z | nameko_mongoengine/version.py | ketgo/nameko-mongoengine | 94b4a41dfa845cec8b48f874c0b64658a1c4bef6 | [
"Apache-2.0"
] | null | null | null | """
Version for nameko_mongoengine package
"""
__version__ = '0.1.1' # pragma: no cover
def version_info(): # pragma: no cover
"""
Get version of nameko_mongoengine package as tuple
"""
return tuple(map(int, __version__.split('.'))) # pragma: no cover
| 21.076923 | 70 | 0.656934 | 35 | 274 | 4.828571 | 0.571429 | 0.142012 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013825 | 0.208029 | 274 | 12 | 71 | 22.833333 | 0.764977 | 0.514599 | 0 | 0 | 0 | 0 | 0.055556 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
fe886a3e309fc0c499aa70c5bbf16b561ea73c16 | 67 | py | Python | fantasy_application/app/forms/__init__.py | RobBlumberg/espn_fantasy_my_matchup | fb51f4ee71dfced8de339469fb3fbf8fc2f0bae1 | [
"MIT"
] | null | null | null | fantasy_application/app/forms/__init__.py | RobBlumberg/espn_fantasy_my_matchup | fb51f4ee71dfced8de339469fb3fbf8fc2f0bae1 | [
"MIT"
] | null | null | null | fantasy_application/app/forms/__init__.py | RobBlumberg/espn_fantasy_my_matchup | fb51f4ee71dfced8de339469fb3fbf8fc2f0bae1 | [
"MIT"
] | null | null | null | from app.forms.forms import MatchupForm
__all__ = ["MatchupForm"]
| 16.75 | 39 | 0.776119 | 8 | 67 | 6 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119403 | 67 | 3 | 40 | 22.333333 | 0.813559 | 0 | 0 | 0 | 0 | 0 | 0.164179 | 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 |
fe932e31bd214a18cca4a14f115c73f0130ea416 | 692 | py | Python | torch/ao/quantization/fx/backend_config_dict/quantize_handler.py | xiaohanhuang/pytorch | a31aea8eaa99a5ff72b5d002c206cd68d5467a5e | [
"Intel"
] | 183 | 2018-04-06T21:10:36.000Z | 2022-03-30T15:05:24.000Z | torch/ao/quantization/fx/backend_config_dict/quantize_handler.py | xiaohanhuang/pytorch | a31aea8eaa99a5ff72b5d002c206cd68d5467a5e | [
"Intel"
] | 818 | 2020-02-07T02:36:44.000Z | 2022-03-31T23:49:44.000Z | torch/ao/quantization/fx/backend_config_dict/quantize_handler.py | xiaohanhuang/pytorch | a31aea8eaa99a5ff72b5d002c206cd68d5467a5e | [
"Intel"
] | 58 | 2018-06-05T16:40:18.000Z | 2022-03-16T15:37:29.000Z | import torch
from typing import Dict
from torch.fx.graph import Node
from .observation_type import ObservationType
from ..quantization_patterns import QuantizeHandler
def get_quantize_handler_cls(observation_type, dtype_configs):
class ConfigurableQuantizeHandler(QuantizeHandler):
def __init__(self, node:... | 36.421053 | 87 | 0.760116 | 78 | 692 | 6.384615 | 0.538462 | 0.150602 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.179191 | 692 | 18 | 88 | 38.444444 | 0.876761 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.357143 | 0.071429 | 0.785714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
fe962cfdc8ab3998f34f8dbe0d800098ecec6593 | 1,703 | py | Python | sqlflow_models/custom_model_example.py | brightcoder01/models | bf95351ea51b5dfb192e42a02117a5fade498af3 | [
"Apache-2.0"
] | 29 | 2019-05-05T09:08:10.000Z | 2021-11-25T02:35:56.000Z | sqlflow_models/custom_model_example.py | brightcoder01/models | bf95351ea51b5dfb192e42a02117a5fade498af3 | [
"Apache-2.0"
] | 33 | 2019-04-29T08:38:26.000Z | 2022-02-10T00:17:32.000Z | sqlflow_models/custom_model_example.py | brightcoder01/models | bf95351ea51b5dfb192e42a02117a5fade498af3 | [
"Apache-2.0"
] | 23 | 2019-04-29T05:38:35.000Z | 2021-06-30T15:28:35.000Z | import tensorflow as tf
import random
import numpy as np
class CustomClassifier(tf.keras.Model):
def __init__(self, feature_columns=None):
"""The model init function. You can define any model parameter in the function's argument list.
You can also add custom training routines together with a Ker... | 41.536585 | 104 | 0.63946 | 239 | 1,703 | 4.485356 | 0.485356 | 0.022388 | 0.026119 | 0.026119 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003333 | 0.295361 | 1,703 | 40 | 105 | 42.575 | 0.89 | 0.543746 | 0 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0.105263 | 0.157895 | 0 | 0.526316 | 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 |
fea92960c1c349e87da1a1ae35f445934a592dd6 | 115 | py | Python | docker_model/apache2_docker/neutrino/index/urls.py | FrederichRiver/neutrino3 | c16c6ea824999c012252d0e281473a6ab13fd38e | [
"BSD-3-Clause"
] | 1 | 2021-07-12T11:20:58.000Z | 2021-07-12T11:20:58.000Z | docker_model/apache2_docker/neutrino/index/urls.py | FrederichRiver/neutrino3 | c16c6ea824999c012252d0e281473a6ab13fd38e | [
"BSD-3-Clause"
] | null | null | null | docker_model/apache2_docker/neutrino/index/urls.py | FrederichRiver/neutrino3 | c16c6ea824999c012252d0e281473a6ab13fd38e | [
"BSD-3-Clause"
] | null | null | null | from django.urls import path
from . import views
app_name = 'index'
urlpatterns = [
path('', views.index),
]
| 12.777778 | 28 | 0.669565 | 15 | 115 | 5.066667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 115 | 8 | 29 | 14.375 | 0.826087 | 0 | 0 | 0 | 0 | 0 | 0.043478 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
22a70c421f9576b2ab54e71fba0a6cf7f517757b | 28 | py | Python | py_queryable/decorators/__init__.py | viralogic/py-queryable | 12034ee04eaa176676df84cb49665c6a9f741f01 | [
"MIT"
] | null | null | null | py_queryable/decorators/__init__.py | viralogic/py-queryable | 12034ee04eaa176676df84cb49665c6a9f741f01 | [
"MIT"
] | 1 | 2018-10-04T22:13:18.000Z | 2018-10-18T04:01:59.000Z | py_queryable/decorators/__init__.py | viralogic/py-queryable | 12034ee04eaa176676df84cb49665c6a9f741f01 | [
"MIT"
] | null | null | null | __author__ = 'Bruce.Fenske'
| 14 | 27 | 0.75 | 3 | 28 | 5.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107143 | 28 | 1 | 28 | 28 | 0.68 | 0 | 0 | 0 | 0 | 0 | 0.428571 | 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 |
22ae377907b2f1b14c1c80fadf37c2430e7f5c0d | 3,568 | py | Python | marmot/features/phrase/tests/test_punctuation_feature_extractor.py | qe-team/marmot | 38e09ff1d0a3025a6b7edeaaf6086ed047ec45ff | [
"0BSD"
] | 19 | 2015-08-21T13:06:37.000Z | 2021-07-26T09:56:29.000Z | marmot/features/phrase/tests/test_punctuation_feature_extractor.py | qe-team/marmot | 38e09ff1d0a3025a6b7edeaaf6086ed047ec45ff | [
"0BSD"
] | 36 | 2015-01-13T13:01:07.000Z | 2016-06-22T06:59:59.000Z | marmot/features/phrase/tests/test_punctuation_feature_extractor.py | qe-team/marmot | 38e09ff1d0a3025a6b7edeaaf6086ed047ec45ff | [
"0BSD"
] | 8 | 2015-12-11T16:41:47.000Z | 2019-04-08T16:28:40.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
import unittest
from marmot.features.phrase.punctuation_feature_extractor import PunctuationFeatureExtractor
# test a class which extracts source and target token count features, and the source/target token count ratio
class PunctuationFeatureExtractorTests(unittest.TestCase... | 43.512195 | 147 | 0.573711 | 401 | 3,568 | 4.912718 | 0.221945 | 0.17868 | 0.219289 | 0.292386 | 0.602538 | 0.475635 | 0.229442 | 0.154315 | 0.125888 | 0.125888 | 0 | 0.050948 | 0.246357 | 3,568 | 81 | 148 | 44.049383 | 0.681666 | 0.040919 | 0 | 0.115385 | 0 | 0 | 0.104571 | 0 | 0 | 0 | 0 | 0 | 0.576923 | 1 | 0.038462 | false | 0 | 0.038462 | 0 | 0.096154 | 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 |
22bacf6b4fc2f414fa3cc4ca497ed6943c18004a | 382 | py | Python | Study_Ahead/Flask Basics/dynamic_page.py | AnikaZN/AnikaDS | 02c69894b242abdc88b6e1ac86407a02a3d43f92 | [
"MIT"
] | null | null | null | Study_Ahead/Flask Basics/dynamic_page.py | AnikaZN/AnikaDS | 02c69894b242abdc88b6e1ac86407a02a3d43f92 | [
"MIT"
] | null | null | null | Study_Ahead/Flask Basics/dynamic_page.py | AnikaZN/AnikaDS | 02c69894b242abdc88b6e1ac86407a02a3d43f92 | [
"MIT"
] | null | null | null | from flask import Flask
app = Flask(__name__)
@app.route ('/')
def index():
return '<h1>This is a happy puppy!</h1>'
@app.route('/info')
def info():
return '<h2>This is information!</h2>'
@app.route('/puppy/<name>')
def puppy(name):
return '<h3>This page is for {}</h3>'.format(name)
#this is like on... | 19.1 | 54 | 0.625654 | 58 | 382 | 3.913793 | 0.5 | 0.105727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019231 | 0.183246 | 382 | 19 | 55 | 20.105263 | 0.708333 | 0.089005 | 0 | 0 | 0 | 0 | 0.331412 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.076923 | 0.230769 | 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 |
22ef6209d84d007520ea2267918eeea367800f33 | 76 | py | Python | _solved/solutions/case-conflict-mapping37.py | lleondia/geopandas-tutorial | 5128fd6865bbd979a7b4e5b8cb4d0de51bead029 | [
"BSD-3-Clause"
] | 341 | 2018-04-26T08:46:05.000Z | 2022-03-01T08:13:39.000Z | _solved/solutions/case-conflict-mapping37.py | lleondia/geopandas-tutorial | 5128fd6865bbd979a7b4e5b8cb4d0de51bead029 | [
"BSD-3-Clause"
] | 22 | 2018-06-15T23:19:27.000Z | 2020-03-23T11:08:55.000Z | _solved/solutions/case-conflict-mapping37.py | lleondia/geopandas-tutorial | 5128fd6865bbd979a7b4e5b8cb4d0de51bead029 | [
"BSD-3-Clause"
] | 197 | 2018-06-15T18:34:53.000Z | 2022-02-27T11:33:15.000Z | protected_areas_border = protected_areas_utm[['NAME_AP', 'geometry']].copy() | 76 | 76 | 0.789474 | 10 | 76 | 5.5 | 0.8 | 0.509091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039474 | 76 | 1 | 76 | 76 | 0.753425 | 0 | 0 | 0 | 0 | 0 | 0.194805 | 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 |
22f758b7383a0a384f31f30799ab0a41808e6db2 | 5,912 | py | Python | jovsatools/minitorch/coursework/Module-2/minitorch/scalar.py | jovsa/jovsatools | 52e7f6737376b62bbeba41dba8b54167661412a2 | [
"Apache-2.0"
] | 2 | 2020-06-06T22:46:58.000Z | 2020-07-09T22:00:38.000Z | jovsatools/minitorch/coursework/Module-4/minitorch/scalar.py | jovsa/jsmltools | 52e7f6737376b62bbeba41dba8b54167661412a2 | [
"Apache-2.0"
] | 1 | 2020-09-16T19:13:22.000Z | 2020-09-16T19:13:22.000Z | jovsatools/minitorch/coursework/Module-4/minitorch/scalar.py | jovsa/jsmltools | 52e7f6737376b62bbeba41dba8b54167661412a2 | [
"Apache-2.0"
] | null | null | null | from .autodiff import FunctionBase, Variable, History
from . import operators
import numpy as np
from pdb import set_trace
## Task 1.1
## Derivatives
def central_difference(f, *vals, arg=0, epsilon=1e-6):
r"""
Computes an approximation to the derivative of `f` with respect to one arg.
See :doc:`derivat... | 22.651341 | 127 | 0.617219 | 784 | 5,912 | 4.515306 | 0.22449 | 0.088983 | 0.062147 | 0.070621 | 0.407627 | 0.34435 | 0.311582 | 0.258475 | 0.211017 | 0.19435 | 0 | 0.007072 | 0.282476 | 5,912 | 260 | 128 | 22.738462 | 0.82744 | 0.259134 | 0 | 0.383562 | 0 | 0 | 0.023447 | 0 | 0 | 0 | 0 | 0 | 0.006849 | 1 | 0.253425 | false | 0.013699 | 0.027397 | 0.123288 | 0.59589 | 0.006849 | 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 |
fe0e98de8fc64e2229224842b5528cdc73eda304 | 268 | py | Python | src/GeneralProcess/BaseProcess.py | haganenoneko/EphysAnalysisTools | c404e213095ff4f14831d78f810101c19bce152e | [
"MIT"
] | null | null | null | src/GeneralProcess/BaseProcess.py | haganenoneko/EphysAnalysisTools | c404e213095ff4f14831d78f810101c19bce152e | [
"MIT"
] | 1 | 2021-12-26T17:09:21.000Z | 2021-12-26T17:09:21.000Z | src/GeneralProcess/BaseProcess.py | haganenoneko/EphysAnalysisTools | c404e213095ff4f14831d78f810101c19bce152e | [
"MIT"
] | null | null | null | # Copyright (c) 2021 Delbert Yip
#
# This software is released under the MIT License.
# https://opensource.org/licenses/MIT
import numpy as np
import pandas as pd
import os, math, glob
from typing import List, Dict, Tuple
from abc import ABC, abstractmethod
| 19.142857 | 50 | 0.742537 | 41 | 268 | 4.853659 | 0.804878 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018433 | 0.190299 | 268 | 13 | 51 | 20.615385 | 0.898618 | 0.432836 | 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 |
fe1bb2a7f4fe8cfb32dc514eb643b2f9f09fd7f4 | 111 | py | Python | setup.py | mmxgn/audio-jabaa | cbf8aca5121e885f90b6a993d21602dca72bbf11 | [
"MIT"
] | null | null | null | setup.py | mmxgn/audio-jabaa | cbf8aca5121e885f90b6a993d21602dca72bbf11 | [
"MIT"
] | null | null | null | setup.py | mmxgn/audio-jabaa | cbf8aca5121e885f90b6a993d21602dca72bbf11 | [
"MIT"
] | null | null | null | from distutils.core import setup
setup(name='audio-jabaa',
version='0.1b',
py_modules=['jabaa'],
)
| 18.5 | 32 | 0.648649 | 15 | 111 | 4.733333 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021978 | 0.18018 | 111 | 5 | 33 | 22.2 | 0.758242 | 0 | 0 | 0 | 0 | 0 | 0.18018 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.2 | 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 |
a3e4c06e4a994830a7a934d29333b73e66e6c3e5 | 181 | py | Python | xrft/__init__.py | zmoon/xrft | 672ddd12a85f64796d76ce5d45c7d4712d1ec821 | [
"MIT"
] | 100 | 2018-08-30T16:09:51.000Z | 2022-03-10T20:47:32.000Z | xrft/__init__.py | zmoon/xrft | 672ddd12a85f64796d76ce5d45c7d4712d1ec821 | [
"MIT"
] | 145 | 2018-08-22T18:50:50.000Z | 2022-03-28T17:59:49.000Z | xrft/__init__.py | zmoon/xrft | 672ddd12a85f64796d76ce5d45c7d4712d1ec821 | [
"MIT"
] | 29 | 2018-08-22T20:32:42.000Z | 2022-03-21T19:31:24.000Z | try:
from ._version import __version__
except ImportError:
__version__ = "unknown"
from .xrft import * # noqa
from .detrend import detrend
from .padding import pad, unpad
| 20.111111 | 37 | 0.740331 | 22 | 181 | 5.681818 | 0.590909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.19337 | 181 | 8 | 38 | 22.625 | 0.856164 | 0.022099 | 0 | 0 | 0 | 0 | 0.04 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.714286 | 0 | 0.714286 | 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 |
4305f21fb4a5d220f19be216e0ed4d20a170a726 | 177 | py | Python | proxies/detran/urls.py | MinisterioPublicoRJ/api-cadg | a8998c4c234a65192f1dca8ea9a17a1d4a496556 | [
"MIT"
] | 6 | 2020-02-11T18:45:58.000Z | 2020-05-26T12:37:28.000Z | proxies/detran/urls.py | MinisterioPublicoRJ/api-cadg | a8998c4c234a65192f1dca8ea9a17a1d4a496556 | [
"MIT"
] | 120 | 2019-07-01T14:45:32.000Z | 2022-01-25T19:10:16.000Z | proxies/detran/urls.py | MinisterioPublicoRJ/apimpmapas | 196ad25a4922448b8ae7a66012a2843c7b7194ad | [
"MIT"
] | null | null | null | from django.urls import path
from proxies.detran.views import FotoDetranView
urlpatterns = [
path("foto-detran/<str:rg>", FotoDetranView.as_view(), name="foto-detran"),
]
| 22.125 | 79 | 0.740113 | 23 | 177 | 5.652174 | 0.695652 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118644 | 177 | 7 | 80 | 25.285714 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0.175141 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
43106a2c7f1e63e1a38ffd85564098308a2b1b46 | 1,916 | py | Python | xlsxwriter/test/workbook/test_custom_sheet.py | adgear/XlsxWriter | 79bcaad28d57ac29038b1c74bccc6d611b7a385e | [
"BSD-2-Clause-FreeBSD"
] | 2 | 2019-07-25T06:08:09.000Z | 2019-11-01T02:33:56.000Z | xlsxwriter/test/workbook/test_custom_sheet.py | adgear/XlsxWriter | 79bcaad28d57ac29038b1c74bccc6d611b7a385e | [
"BSD-2-Clause-FreeBSD"
] | 13 | 2019-07-14T00:29:05.000Z | 2019-11-26T06:16:46.000Z | xlsxwriter/test/workbook/test_custom_sheet.py | adgear/XlsxWriter | 79bcaad28d57ac29038b1c74bccc6d611b7a385e | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2019, John McNamara, jmcnamara@cpan.org
#
import unittest
from xlsxwriter.chartsheet import Chartsheet
from xlsxwriter.worksheet import Worksheet
from ...workbook import Workbook
class M... | 24.564103 | 79 | 0.659708 | 191 | 1,916 | 6.460733 | 0.21466 | 0.097245 | 0.097245 | 0.097245 | 0.601297 | 0.553485 | 0.553485 | 0.553485 | 0.553485 | 0.553485 | 0 | 0.006583 | 0.207203 | 1,916 | 77 | 80 | 24.883117 | 0.805793 | 0.162839 | 0 | 0.540541 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162162 | 1 | 0.216216 | false | 0.054054 | 0.108108 | 0 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
431f863de4d44e90cbfcffb1f168597874868f93 | 1,691 | py | Python | nncf/config/structure.py | xiao1228/nncf | 307262119ee3f50eec2fa4022b2ef96693fd8448 | [
"Apache-2.0"
] | null | null | null | nncf/config/structure.py | xiao1228/nncf | 307262119ee3f50eec2fa4022b2ef96693fd8448 | [
"Apache-2.0"
] | null | null | null | nncf/config/structure.py | xiao1228/nncf | 307262119ee3f50eec2fa4022b2ef96693fd8448 | [
"Apache-2.0"
] | null | null | null | """
Copyright (c) 2020 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writin... | 31.314815 | 94 | 0.703726 | 207 | 1,691 | 5.657005 | 0.555556 | 0.051238 | 0.035867 | 0.027327 | 0.145175 | 0.145175 | 0.102477 | 0 | 0 | 0 | 0 | 0.006178 | 0.234181 | 1,691 | 53 | 95 | 31.90566 | 0.89807 | 0.537552 | 0 | 0.285714 | 0 | 0 | 0.032764 | 0.032764 | 0 | 0 | 0 | 0 | 0 | 1 | 0.238095 | false | 0 | 0.095238 | 0.142857 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
43294ce3dddd17beb1c4c141449af0a01c5cab92 | 183 | py | Python | mlops_pipeline/logger.py | M-Borsuk/MlOpsPipeline | 6f77cebb899952fb1515da543fc795f33a40f3cf | [
"MIT"
] | null | null | null | mlops_pipeline/logger.py | M-Borsuk/MlOpsPipeline | 6f77cebb899952fb1515da543fc795f33a40f3cf | [
"MIT"
] | null | null | null | mlops_pipeline/logger.py | M-Borsuk/MlOpsPipeline | 6f77cebb899952fb1515da543fc795f33a40f3cf | [
"MIT"
] | null | null | null | import logging
from pathlib import Path
from logging.config import fileConfig
fileConfig(str(Path(__file__).resolve().parents[1] / "logging.ini"))
logger = logging.getLogger("dev")
| 22.875 | 68 | 0.775956 | 24 | 183 | 5.75 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006061 | 0.098361 | 183 | 7 | 69 | 26.142857 | 0.830303 | 0 | 0 | 0 | 0 | 0 | 0.076503 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
432b2c4a4e1820a4e33f807dc4b92550ad628317 | 698 | py | Python | reamber/quaver/lists/notes/QuaHoldList.py | Bestfast/reamberPy | 91b76ca6adf11fbe8b7cee7c186481776a4d7aaa | [
"MIT"
] | null | null | null | reamber/quaver/lists/notes/QuaHoldList.py | Bestfast/reamberPy | 91b76ca6adf11fbe8b7cee7c186481776a4d7aaa | [
"MIT"
] | null | null | null | reamber/quaver/lists/notes/QuaHoldList.py | Bestfast/reamberPy | 91b76ca6adf11fbe8b7cee7c186481776a4d7aaa | [
"MIT"
] | null | null | null | from __future__ import annotations
from typing import List
from reamber.base.lists.notes.HoldList import HoldList
from reamber.quaver.QuaHold import QuaHold
from reamber.quaver.lists.notes.QuaNoteList import QuaNoteList
class QuaHoldList(List[QuaHold], HoldList, QuaNoteList):
def _upcast(self, objList: List = ... | 27.92 | 62 | 0.709169 | 84 | 698 | 5.833333 | 0.47619 | 0.067347 | 0.069388 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.206304 | 698 | 24 | 63 | 29.083333 | 0.884477 | 0.147564 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.416667 | 0.083333 | 0.916667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
4a5405a9e735075417a313f4d0c888eae34e1c10 | 134 | py | Python | utilities/views.py | Semprini/cbe-telco | c0385c2572a4059a2882c2c40fe79f6a5f807f6c | [
"Apache-2.0"
] | 1 | 2019-02-26T21:15:47.000Z | 2019-02-26T21:15:47.000Z | utilities/views.py | Semprini/cbe-telco | c0385c2572a4059a2882c2c40fe79f6a5f807f6c | [
"Apache-2.0"
] | null | null | null | utilities/views.py | Semprini/cbe-telco | c0385c2572a4059a2882c2c40fe79f6a5f807f6c | [
"Apache-2.0"
] | 2 | 2017-05-12T22:38:42.000Z | 2021-07-16T13:51:40.000Z | from django.shortcuts import render
def index(request):
return render(request, 'index.html', {
'foo': 'bar',
})
| 16.75 | 42 | 0.597015 | 15 | 134 | 5.333333 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.261194 | 134 | 7 | 43 | 19.142857 | 0.808081 | 0 | 0 | 0 | 0 | 0 | 0.119403 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.2 | 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 | 1 | 0 | 0 | 0 | 3 |
4a54cd395972b3700abed0cdeb0493f2118930a7 | 3,290 | py | Python | app/models.py | OsmanMariam/On-the-blog | 455bdb22d6768ca607afaff3b8587e710738e85d | [
"Unlicense"
] | null | null | null | app/models.py | OsmanMariam/On-the-blog | 455bdb22d6768ca607afaff3b8587e710738e85d | [
"Unlicense"
] | null | null | null | app/models.py | OsmanMariam/On-the-blog | 455bdb22d6768ca607afaff3b8587e710738e85d | [
"Unlicense"
] | null | null | null | from . import db
from werkzeug.security import generate_password_hash,check_password_hash
from flask_login import UserMixin
from . import login_manager
from datetime import datetime
@login_manager.user_loader
def load_user(user_id):
return User.query.get(int(user_id))
# Passes in a user id to this function an... | 30.183486 | 77 | 0.669605 | 433 | 3,290 | 4.935335 | 0.249423 | 0.082358 | 0.102948 | 0.082358 | 0.305569 | 0.228358 | 0.214787 | 0.147871 | 0.086102 | 0.086102 | 0 | 0.009886 | 0.200608 | 3,290 | 108 | 78 | 30.462963 | 0.802662 | 0.061702 | 0 | 0.211268 | 1 | 0 | 0.078207 | 0.006872 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15493 | false | 0.126761 | 0.070423 | 0.070423 | 0.802817 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
4a5989a2a44a4396f53d2a17fc356f2395aebdb4 | 12,749 | py | Python | src/command_modules/azure-cli-eventgrid/azure/cli/command_modules/eventgrid/custom.py | v-Ajnava/azure-cli | febec631d79bfca151e84267b5b409594bad598e | [
"MIT"
] | null | null | null | src/command_modules/azure-cli-eventgrid/azure/cli/command_modules/eventgrid/custom.py | v-Ajnava/azure-cli | febec631d79bfca151e84267b5b409594bad598e | [
"MIT"
] | 3 | 2021-03-26T00:48:20.000Z | 2022-03-29T22:05:39.000Z | src/command_modules/azure-cli-eventgrid/azure/cli/command_modules/eventgrid/custom.py | v-Ajnava/azure-cli | febec631d79bfca151e84267b5b409594bad598e | [
"MIT"
] | 1 | 2017-12-28T04:51:44.000Z | 2017-12-28T04:51:44.000Z | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | 28.843891 | 95 | 0.674171 | 1,276 | 12,749 | 6.203762 | 0.083856 | 0.163214 | 0.131001 | 0.090071 | 0.749495 | 0.721829 | 0.690374 | 0.662077 | 0.644517 | 0.619884 | 0 | 0 | 0.261981 | 12,749 | 441 | 96 | 28.909297 | 0.841322 | 0.032003 | 0 | 0.754717 | 0 | 0 | 0.017269 | 0.007216 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061995 | false | 0 | 0.010782 | 0.024259 | 0.145553 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 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 |
4a725527c9e878de582b4ed83c57f130070a7abe | 258 | py | Python | mozdns/cname/search_indexes.py | jlin/inventory | c098c98e570c3bf9fadfd811eb75e1213f6ea428 | [
"BSD-3-Clause"
] | 22 | 2015-01-16T01:36:32.000Z | 2020-06-08T00:46:18.000Z | mozdns/cname/search_indexes.py | jlin/inventory | c098c98e570c3bf9fadfd811eb75e1213f6ea428 | [
"BSD-3-Clause"
] | 8 | 2015-12-28T18:56:19.000Z | 2019-04-01T17:33:48.000Z | mozdns/cname/search_indexes.py | jlin/inventory | c098c98e570c3bf9fadfd811eb75e1213f6ea428 | [
"BSD-3-Clause"
] | 13 | 2015-01-13T20:56:22.000Z | 2022-02-23T06:01:17.000Z | from haystack import indexes
from mozdns.cname.models import CNAME
from mozdns.mozdns_index import MozdnsIndex
class CNAMEIndex(MozdnsIndex, indexes.Indexable):
data = indexes.CharField(model_attr='data')
def get_model(self):
return CNAME
| 23.454545 | 49 | 0.771318 | 33 | 258 | 5.939394 | 0.606061 | 0.102041 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.158915 | 258 | 10 | 50 | 25.8 | 0.903226 | 0 | 0 | 0 | 0 | 0 | 0.015504 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0.142857 | 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 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
4a7528338f0c050c809928c6b863c524108d63cb | 12,811 | py | Python | gpflow/transforms.py | a5a/GPflow | 5fbff1955f4e81d5ec9b44947a9f409314dc2b91 | [
"Apache-2.0"
] | null | null | null | gpflow/transforms.py | a5a/GPflow | 5fbff1955f4e81d5ec9b44947a9f409314dc2b91 | [
"Apache-2.0"
] | null | null | null | gpflow/transforms.py | a5a/GPflow | 5fbff1955f4e81d5ec9b44947a9f409314dc2b91 | [
"Apache-2.0"
] | null | null | null | # Copyright 2016 James Hensman, alexggmatthews
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed t... | 30.721823 | 113 | 0.616033 | 1,806 | 12,811 | 4.263012 | 0.192137 | 0.035069 | 0.02286 | 0.024289 | 0.335368 | 0.291337 | 0.217431 | 0.170931 | 0.130666 | 0.09196 | 0 | 0.011567 | 0.271173 | 12,811 | 416 | 114 | 30.795673 | 0.813002 | 0.387245 | 0 | 0.370588 | 0 | 0 | 0.035212 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.335294 | false | 0 | 0.041176 | 0.2 | 0.723529 | 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 |
4a7b605b5159df207118eecf4c42764c098c76ce | 394 | py | Python | thrift/compiler/test/fixtures/basic/gen-py/module/constants.py | fakeNetflix/facebook-repo-fbthrift | 24f2357142d1da8c89f4cabc6cb144d83749b3c6 | [
"Apache-2.0"
] | 2 | 2021-06-29T13:42:22.000Z | 2021-09-06T10:57:34.000Z | thrift/compiler/test/fixtures/basic/gen-py/module/constants.py | fakeNetflix/facebook-repo-fbthrift | 24f2357142d1da8c89f4cabc6cb144d83749b3c6 | [
"Apache-2.0"
] | null | null | null | thrift/compiler/test/fixtures/basic/gen-py/module/constants.py | fakeNetflix/facebook-repo-fbthrift | 24f2357142d1da8c89f4cabc6cb144d83749b3c6 | [
"Apache-2.0"
] | 5 | 2021-06-29T13:42:26.000Z | 2022-02-08T02:41:34.000Z | #
# Autogenerated by Thrift
#
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
# @generated
#
from __future__ import absolute_import
import six
from thrift.util.Recursive import fix_spec
from thrift.Thrift import *
from thrift.protocol.TProtocol import TProtocolException
from json import loads
impo... | 17.909091 | 66 | 0.774112 | 59 | 394 | 5.050847 | 0.644068 | 0.100671 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006116 | 0.170051 | 394 | 21 | 67 | 18.761905 | 0.905199 | 0.253807 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.8 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
4a817a8bece852cb7c5055f23a3f93b915e0796c | 369 | py | Python | accenv/lib/python3.4/site-packages/stronghold/utils.py | adamshamsudeen/clubdin-dj | eb48c67dab3a4ae7c4032544eb4d64e0b1d7e15a | [
"MIT"
] | null | null | null | accenv/lib/python3.4/site-packages/stronghold/utils.py | adamshamsudeen/clubdin-dj | eb48c67dab3a4ae7c4032544eb4d64e0b1d7e15a | [
"MIT"
] | null | null | null | accenv/lib/python3.4/site-packages/stronghold/utils.py | adamshamsudeen/clubdin-dj | eb48c67dab3a4ae7c4032544eb4d64e0b1d7e15a | [
"MIT"
] | null | null | null | def is_view_func_public(func):
"""
Returns whether a view is public or not (ie/ has the STRONGHOLD_IS_PUBLIC
attribute set)
"""
return getattr(func, 'STRONGHOLD_IS_PUBLIC', False)
def set_view_func_public(func):
"""
Set the STRONGHOLD_IS_PUBLIC attribute on a given function to True
"""... | 26.357143 | 77 | 0.701897 | 53 | 369 | 4.622642 | 0.471698 | 0.163265 | 0.293878 | 0.146939 | 0.244898 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.208672 | 369 | 13 | 78 | 28.384615 | 0.839041 | 0.420054 | 0 | 0 | 0 | 0 | 0.223464 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
4a8fb9982e8e96f5c356941faad7ecdffd4a7be1 | 685 | py | Python | operators/template_trainer.py | ys10/WaveRNN | dc4eec65bc1eec59ebc533469d40f072df3a6be6 | [
"MIT"
] | 6 | 2018-11-15T05:48:02.000Z | 2021-06-18T02:22:31.000Z | operators/template_trainer.py | ys10/WaveRNN | dc4eec65bc1eec59ebc533469d40f072df3a6be6 | [
"MIT"
] | null | null | null | operators/template_trainer.py | ys10/WaveRNN | dc4eec65bc1eec59ebc533469d40f072df3a6be6 | [
"MIT"
] | 1 | 2021-04-02T11:53:52.000Z | 2021-04-02T11:53:52.000Z | # coding=utf-8
from tqdm import tqdm
from base.base_train import BaseTrain
class TemplateTrainer(BaseTrain):
def __init__(self, sess, model, data_loader, config, logger):
super(TemplateTrainer, self).__init__(sess, model, data_loader, config, logger)
def train_epoch(self):
"""
Implemen... | 27.4 | 87 | 0.645255 | 90 | 685 | 4.766667 | 0.555556 | 0.062937 | 0.060606 | 0.088578 | 0.251748 | 0.144522 | 0 | 0 | 0 | 0 | 0 | 0.002037 | 0.283212 | 685 | 24 | 88 | 28.541667 | 0.87169 | 0.386861 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.222222 | 0.222222 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
4a99434136b5ea20d4645abcafa5ae36b073b60f | 144 | py | Python | backend/artworks/urls/routes_urls.py | ehsan-g/seestan | 97cdaac3799f69bbfe444e8b2deb8cc5585f7b77 | [
"MIT"
] | null | null | null | backend/artworks/urls/routes_urls.py | ehsan-g/seestan | 97cdaac3799f69bbfe444e8b2deb8cc5585f7b77 | [
"MIT"
] | null | null | null | backend/artworks/urls/routes_urls.py | ehsan-g/seestan | 97cdaac3799f69bbfe444e8b2deb8cc5585f7b77 | [
"MIT"
] | null | null | null | from django.urls import path
from artworks.views import routes_views as views
urlpatterns = [
path('', views.getRoutes, name='routes'),
]
| 18 | 48 | 0.729167 | 19 | 144 | 5.473684 | 0.631579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159722 | 144 | 7 | 49 | 20.571429 | 0.859504 | 0 | 0 | 0 | 0 | 0 | 0.041667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
4a9adbe991ed8e78b634c4857de116eb5c8a3aee | 12,050 | bzl | Python | examples/remote/dev_dependencies/cargo/crates.bzl | grafica/cargo-raze-new-features | 8ef4e9291eefbb0424036492a0f7066742753b08 | [
"Apache-2.0"
] | 378 | 2018-02-12T17:44:11.000Z | 2022-03-22T21:43:36.000Z | examples/remote/dev_dependencies/cargo/crates.bzl | grafica/cargo-raze-new-features | 8ef4e9291eefbb0424036492a0f7066742753b08 | [
"Apache-2.0"
] | 411 | 2018-02-13T18:41:50.000Z | 2022-03-30T18:43:55.000Z | examples/remote/dev_dependencies/cargo/crates.bzl | grafica/cargo-raze-new-features | 8ef4e9291eefbb0424036492a0f7066742753b08 | [
"Apache-2.0"
] | 108 | 2018-02-17T15:28:33.000Z | 2022-03-21T19:15:35.000Z | """
@generated
cargo-raze generated Bazel file.
DO NOT EDIT! Replaced on runs of cargo-raze
"""
load("@bazel_tools//tools/build_defs/repo:git.bzl", "new_git_repository") # buildifier: disable=load
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") # buildifier: disable=load
load("@bazel_tools//too... | 42.579505 | 116 | 0.667801 | 1,447 | 12,050 | 5.306842 | 0.098825 | 0.064462 | 0.15041 | 0.070322 | 0.633025 | 0.558015 | 0.523636 | 0.488866 | 0.382732 | 0.243131 | 0 | 0.164806 | 0.197344 | 12,050 | 282 | 117 | 42.730496 | 0.629136 | 0.020664 | 0 | 0.327935 | 1 | 0.1417 | 0.588071 | 0.413202 | 0 | 0 | 0 | 0 | 0 | 1 | 0.004049 | true | 0 | 0 | 0 | 0.004049 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4ac2ce7f267fb59903bb580487803d39f1800cc8 | 2,721 | py | Python | tests/integration/cmor/_fixes/obs4mips/test_airs_2_1.py | valeriupredoi/ESMValCore | b46b948c47d8579d997b28501f8588f5531aa354 | [
"Apache-2.0"
] | null | null | null | tests/integration/cmor/_fixes/obs4mips/test_airs_2_1.py | valeriupredoi/ESMValCore | b46b948c47d8579d997b28501f8588f5531aa354 | [
"Apache-2.0"
] | 2 | 2022-03-02T16:16:06.000Z | 2022-03-10T12:58:49.000Z | tests/integration/cmor/_fixes/obs4mips/test_airs_2_1.py | valeriupredoi/ESMValCore | b46b948c47d8579d997b28501f8588f5531aa354 | [
"Apache-2.0"
] | null | null | null | """Test AIRS-2-1 fixes."""
import numpy as np
from iris.coords import DimCoord
from iris.cube import Cube, CubeList
from esmvalcore.cmor._fixes.obs4mips.airs_2_1 import AllVars
from esmvalcore.cmor.fix import Fix
def get_air_pressure_coord(points, units):
"""Get ``air_pressure`` coordinate."""
return DimCoor... | 34.884615 | 75 | 0.648291 | 395 | 2,721 | 4.207595 | 0.159494 | 0.145608 | 0.09627 | 0.063177 | 0.73586 | 0.702166 | 0.702166 | 0.675692 | 0.633574 | 0.633574 | 0 | 0.052002 | 0.201397 | 2,721 | 77 | 76 | 35.337662 | 0.712839 | 0.068357 | 0 | 0.584906 | 0 | 0 | 0.056423 | 0 | 0 | 0 | 0 | 0 | 0.283019 | 1 | 0.113208 | false | 0 | 0.09434 | 0 | 0.226415 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4ac990f661c3947841720c909b194cde8ae35c0c | 2,193 | py | Python | vm/models.py | KevinThoriya/VISNET | 27b55fc575e6194c95fe9c55584d80d5113dcb6b | [
"MIT"
] | null | null | null | vm/models.py | KevinThoriya/VISNET | 27b55fc575e6194c95fe9c55584d80d5113dcb6b | [
"MIT"
] | null | null | null | vm/models.py | KevinThoriya/VISNET | 27b55fc575e6194c95fe9c55584d80d5113dcb6b | [
"MIT"
] | 1 | 2019-12-28T10:16:55.000Z | 2019-12-28T10:16:55.000Z | from django.db import models
class Convener(models.Model):
#vp = vp means ... visitng person
vp_id = models.AutoField(primary_key = True )
vp_name = models.CharField(max_length = 200 , default = '')
vp_mobile = models.CharField(max_length = 13 , default = "")
vp_email = models.CharField(max_leng... | 37.169492 | 103 | 0.680803 | 292 | 2,193 | 4.849315 | 0.311644 | 0.116525 | 0.127119 | 0.169492 | 0.42726 | 0.374294 | 0.31709 | 0.05791 | 0 | 0 | 0 | 0.017094 | 0.199726 | 2,193 | 59 | 104 | 37.169492 | 0.789744 | 0.076607 | 0 | 0.214286 | 0 | 0 | 0.057397 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.071429 | 0.02381 | 0.047619 | 0.904762 | 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 |
4367843eeea3b45a3501bd9f5af6200ec77fb357 | 2,281 | py | Python | IdentityService/service/__main__.py | Selfnet-5G/NBI | 2892ef8576c8e08d29f6b1134657ab37803de9ab | [
"Apache-2.0"
] | null | null | null | IdentityService/service/__main__.py | Selfnet-5G/NBI | 2892ef8576c8e08d29f6b1134657ab37803de9ab | [
"Apache-2.0"
] | null | null | null | IdentityService/service/__main__.py | Selfnet-5G/NBI | 2892ef8576c8e08d29f6b1134657ab37803de9ab | [
"Apache-2.0"
] | 1 | 2020-05-31T01:34:55.000Z | 2020-05-31T01:34:55.000Z | from paste.urlmap import parse_path_expression, URLMap
from service.app import IdentityService, AuthService
from service.conf_reader import ConfReader
from service.gunicorn import GunicornApp
from service.logger.logging import setup_logging
def urlmap_factory(loader, global_conf, **local_conf):
"""
Hook for ... | 29.24359 | 102 | 0.683472 | 287 | 2,281 | 5.289199 | 0.383275 | 0.039526 | 0.025033 | 0.014493 | 0.081686 | 0.081686 | 0.034256 | 0 | 0 | 0 | 0 | 0 | 0.230601 | 2,281 | 77 | 103 | 29.623377 | 0.864957 | 0.303814 | 0 | 0.054054 | 0 | 0 | 0.061786 | 0.01679 | 0 | 0 | 0 | 0 | 0 | 1 | 0.216216 | false | 0.054054 | 0.162162 | 0.054054 | 0.513514 | 0.027027 | 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 |
438167d55129604aa67d80506e87a9a9aea6d2a8 | 2,340 | py | Python | venv/Lib/site-packages/text_engine/utils/operators/OP2.py | GabrielAmare/Darts | 182748d821b8c1838071f3b28724d0d9b095dcf9 | [
"MIT"
] | null | null | null | venv/Lib/site-packages/text_engine/utils/operators/OP2.py | GabrielAmare/Darts | 182748d821b8c1838071f3b28724d0d9b095dcf9 | [
"MIT"
] | null | null | null | venv/Lib/site-packages/text_engine/utils/operators/OP2.py | GabrielAmare/Darts | 182748d821b8c1838071f3b28724d0d9b095dcf9 | [
"MIT"
] | null | null | null | from ...core import Match, As
class OP2:
s1: str
s2: str
s3: str
@classmethod
def _cls(cls, name, s1, s2, s3):
exec(f"class {name}({cls.__name__}):\n\ts1 = {repr(s1)}\n\ts2 = {repr(s2)}\n\ts3 = {repr(s3)}")
return eval(name)
def __init__(self, one, two):
self.one = on... | 25.16129 | 103 | 0.482479 | 329 | 2,340 | 3.328267 | 0.112462 | 0.127854 | 0.127854 | 0.087671 | 0.8 | 0.785388 | 0.736073 | 0.674886 | 0.609132 | 0.599087 | 0 | 0.06654 | 0.325641 | 2,340 | 92 | 104 | 25.434783 | 0.627376 | 0 | 0 | 0.5 | 0 | 0.041667 | 0.134188 | 0.067521 | 0 | 0 | 0 | 0 | 0 | 1 | 0.180556 | false | 0 | 0.013889 | 0.138889 | 0.472222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 3 |
43866f6c9c0635e1aa0f58b1803339d26f89178a | 2,236 | py | Python | tests/parser/syntax/test_rlplist.py | williamremor/vyper | 4d33dc4140f7d0c339876afb6af7b417bd0ed8e0 | [
"MIT"
] | 1 | 2018-08-31T02:32:57.000Z | 2018-08-31T02:32:57.000Z | tests/parser/syntax/test_rlplist.py | williamremor/vyper | 4d33dc4140f7d0c339876afb6af7b417bd0ed8e0 | [
"MIT"
] | null | null | null | tests/parser/syntax/test_rlplist.py | williamremor/vyper | 4d33dc4140f7d0c339876afb6af7b417bd0ed8e0 | [
"MIT"
] | null | null | null | import pytest
from pytest import raises
from vyper import compiler
from vyper.exceptions import TypeMismatchException, StructureException
fail_list = [
"""
@public
def foo() -> address:
x = RLPList('\xf6\x9455555555555555555555\xa0GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG', [address, bytes32])
return x[1]
"""... | 28.666667 | 289 | 0.665921 | 247 | 2,236 | 5.959514 | 0.198381 | 0.427989 | 0.621603 | 0.80163 | 0.586957 | 0.586957 | 0.586957 | 0.524457 | 0.524457 | 0.524457 | 0 | 0.073748 | 0.187388 | 2,236 | 77 | 290 | 29.038961 | 0.736379 | 0 | 0 | 0 | 0 | 0 | 0.165195 | 0.059269 | 0 | 0 | 0 | 0 | 0.033333 | 1 | 0.066667 | false | 0 | 0.133333 | 0 | 0.233333 | 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 |
438681311602ea00705442c43749b369703de297 | 101 | py | Python | mayan/apps/autoadmin/auth/literals.py | nattangwiwat/Mayan-EDMS-recitation | fcf16afb56eae812fb99144d65ae1ae6749de0b7 | [
"Apache-2.0"
] | 343 | 2015-01-05T14:19:35.000Z | 2018-12-10T19:07:48.000Z | mayan/apps/autoadmin/auth/literals.py | nattangwiwat/Mayan-EDMS-recitation | fcf16afb56eae812fb99144d65ae1ae6749de0b7 | [
"Apache-2.0"
] | 191 | 2015-01-03T00:48:19.000Z | 2018-11-30T09:10:25.000Z | mayan/apps/autoadmin/auth/literals.py | nattangwiwat/Mayan-EDMS-recitation | fcf16afb56eae812fb99144d65ae1ae6749de0b7 | [
"Apache-2.0"
] | 257 | 2019-05-14T10:26:37.000Z | 2022-03-30T03:37:36.000Z | from django.conf import settings
ADMIN_EMAIL_ADDRESSES = [email for name, email in settings.ADMINS]
| 25.25 | 66 | 0.811881 | 15 | 101 | 5.333333 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128713 | 101 | 3 | 67 | 33.666667 | 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 |
439b9c1f7cef48cefa6eacab8d8fd41bef16b548 | 1,133 | py | Python | awesome/c_cpp/cpp-cheat/flex-bison/flex/test_io.py | liujiamingustc/phd | 4f815a738abad43531d02ac66f5bd0d9a1def52a | [
"Apache-2.0"
] | 3 | 2021-01-06T03:01:18.000Z | 2022-03-21T03:02:55.000Z | awesome/c_cpp/cpp-cheat/flex-bison/flex/test_io.py | liujiamingustc/phd | 4f815a738abad43531d02ac66f5bd0d9a1def52a | [
"Apache-2.0"
] | null | null | null | awesome/c_cpp/cpp-cheat/flex-bison/flex/test_io.py | liujiamingustc/phd | 4f815a738abad43531d02ac66f5bd0d9a1def52a | [
"Apache-2.0"
] | null | null | null | inouts = [
#string literals
["multiple on line", '"a" "b"', 'STRING: "a"\nSTRING: "b"\n' ],
["empty", r'""', 'STRING: ""\n' ],
["escape", r'"\""', 'STRING: "\\""\n' ... | 70.8125 | 100 | 0.193292 | 60 | 1,133 | 3.65 | 0.4 | 0.114155 | 0.178082 | 0.232877 | 0.200913 | 0.200913 | 0.200913 | 0.200913 | 0 | 0 | 0 | 0.002033 | 0.565755 | 1,133 | 15 | 101 | 75.533333 | 0.443089 | 0.029126 | 0 | 0.230769 | 0 | 0 | 0.315118 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
43a6c8cff0bc879bebded6552dea34414c864434 | 368 | py | Python | 10_diffie_hellman_key_exchange.py | theskinnycoder/nsc | 11c8adb30fc1c021e79ac28ba3b4373fb95947e1 | [
"MIT"
] | null | null | null | 10_diffie_hellman_key_exchange.py | theskinnycoder/nsc | 11c8adb30fc1c021e79ac28ba3b4373fb95947e1 | [
"MIT"
] | null | null | null | 10_diffie_hellman_key_exchange.py | theskinnycoder/nsc | 11c8adb30fc1c021e79ac28ba3b4373fb95947e1 | [
"MIT"
] | null | null | null | P, G = 23, 9
print(f'The values of P and G are : {P} and {G}')
a, b = 4, 3
print(f"The private key 'a' for Alice is : {a}")
print(f"The private key 'b' for Bob is : {b}")
x = int(pow(G, a, P))
y = int(pow(G, b, P))
ka = int(pow(y, a, P))
kb = int(pow(x, b, P))
print(f"The secret key of Alice is : {ka... | 21.647059 | 50 | 0.535326 | 82 | 368 | 2.402439 | 0.341463 | 0.152284 | 0.228426 | 0.162437 | 0.395939 | 0.203046 | 0 | 0 | 0 | 0 | 0 | 0.018382 | 0.26087 | 368 | 16 | 51 | 23 | 0.705882 | 0 | 0 | 0 | 0 | 0 | 0.502841 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.454545 | 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 | 0 | 1 | 0 | 3 |
43a96ba3f034a7b8da157f93874b36b91d949fed | 228 | py | Python | chalice_view/exceptions.py | green-latte/chalice-view | 51c4cbdc6bab944e7ad7739c2c0b1b8b3254ea9b | [
"Apache-2.0"
] | 1 | 2021-03-11T23:11:42.000Z | 2021-03-11T23:11:42.000Z | chalice_view/exceptions.py | kousuke-takeuchi/chalice-view | 51c4cbdc6bab944e7ad7739c2c0b1b8b3254ea9b | [
"Apache-2.0"
] | null | null | null | chalice_view/exceptions.py | kousuke-takeuchi/chalice-view | 51c4cbdc6bab944e7ad7739c2c0b1b8b3254ea9b | [
"Apache-2.0"
] | null | null | null |
from chalice.app import ChaliceError, ChaliceViewError
class InvalidChaliceSetting(ChaliceError):
pass
class ApplicatonLoadingError(ChaliceError):
pass
class BadResponseError(ChaliceViewError):
STATUS_CODE = 500
| 19 | 54 | 0.807018 | 20 | 228 | 9.15 | 0.7 | 0.174863 | 0.229508 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015306 | 0.140351 | 228 | 11 | 55 | 20.727273 | 0.918367 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.285714 | 0.142857 | 0 | 0.714286 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
43bf77bb021f5356bbde10876d111fa8f74c457a | 251 | py | Python | traffic/data/eurocontrol/aixm/freeroute.py | amirdib/traffic | d4af963e8f9aaff64be58b8407c527fe5a616d1c | [
"MIT"
] | null | null | null | traffic/data/eurocontrol/aixm/freeroute.py | amirdib/traffic | d4af963e8f9aaff64be58b8407c527fe5a616d1c | [
"MIT"
] | null | null | null | traffic/data/eurocontrol/aixm/freeroute.py | amirdib/traffic | d4af963e8f9aaff64be58b8407c527fe5a616d1c | [
"MIT"
] | null | null | null | import pandas as pd
from ... import aixm_navaids
def points() -> pd.DataFrame:
return (
aixm_navaids.extensions.query("role.str.startswith('FRA')")
.merge(aixm_navaids.data, on="id")
.drop(columns=["description"])
)
| 20.916667 | 67 | 0.629482 | 30 | 251 | 5.166667 | 0.8 | 0.212903 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.215139 | 251 | 11 | 68 | 22.818182 | 0.786802 | 0 | 0 | 0 | 0 | 0 | 0.155378 | 0.103586 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | true | 0 | 0.25 | 0.125 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
43e3cc7a5827766b281bf7b4d9610d309f8222d4 | 3,633 | py | Python | sc2/game_data.py | bountyh/python-sc2 | 03689b0c2f127854addf21ea9acd08bb02f94c9b | [
"MIT"
] | null | null | null | sc2/game_data.py | bountyh/python-sc2 | 03689b0c2f127854addf21ea9acd08bb02f94c9b | [
"MIT"
] | null | null | null | sc2/game_data.py | bountyh/python-sc2 | 03689b0c2f127854addf21ea9acd08bb02f94c9b | [
"MIT"
] | null | null | null | from functools import lru_cache
from .data import Attribute
from .unit_command import UnitCommand
from .ids.unit_typeid import UnitTypeId
from .ids.ability_id import AbilityId
from .constants import ZERGLING
class GameData(object):
def __init__(self, data):
self.abilities = {a.ability_id: AbilityData(se... | 27.732824 | 90 | 0.626479 | 432 | 3,633 | 5.025463 | 0.175926 | 0.087057 | 0.049747 | 0.039152 | 0.391525 | 0.349148 | 0.335329 | 0.335329 | 0.335329 | 0.319668 | 0 | 0.002699 | 0.28599 | 3,633 | 130 | 91 | 27.946154 | 0.834233 | 0.012111 | 0 | 0.405941 | 0 | 0 | 0.025648 | 0.017842 | 0 | 0 | 0 | 0 | 0.019802 | 1 | 0.207921 | false | 0 | 0.059406 | 0.128713 | 0.514851 | 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 |
78d9f50584ac8133e3128d5f9cedc2ccbc0e91cb | 219 | py | Python | the-scalable-webhook/python/app.py | mttfarmer/serverless | e7b28421708cd4643ce61d28940357c3664ed2a8 | [
"MIT"
] | 1,627 | 2020-01-12T10:35:06.000Z | 2022-03-31T13:12:51.000Z | the-scalable-webhook/python/app.py | mttfarmer/serverless | e7b28421708cd4643ce61d28940357c3664ed2a8 | [
"MIT"
] | 58 | 2020-02-09T06:57:35.000Z | 2022-02-26T23:25:10.000Z | the-scalable-webhook/python/app.py | mttfarmer/serverless | e7b28421708cd4643ce61d28940357c3664ed2a8 | [
"MIT"
] | 240 | 2020-01-19T09:09:44.000Z | 2022-03-30T19:12:17.000Z | #!/usr/bin/env python3
from aws_cdk import core
from the_scalable_webhook.the_scalable_webhook_stack import TheScalableWebhookStack
app = core.App()
TheScalableWebhookStack(app, "the-scalable-webhook")
app.synth()
| 18.25 | 83 | 0.812785 | 29 | 219 | 5.931034 | 0.551724 | 0.19186 | 0.313953 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005051 | 0.09589 | 219 | 11 | 84 | 19.909091 | 0.863636 | 0.09589 | 0 | 0 | 0 | 0 | 0.101523 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
78dbe3cfde309dfe6dd4664593e4ba39de746b2a | 1,113 | py | Python | giveaway/migrations/0005_auto_20220227_0205.py | nikhilchaudhary0126/goodshare | c1578796b6376f02970f61ea418e9eb87dc5bb64 | [
"MIT"
] | 1 | 2022-02-26T09:25:39.000Z | 2022-02-26T09:25:39.000Z | giveaway/migrations/0005_auto_20220227_0205.py | nikhilchaudhary0126/goodshare | c1578796b6376f02970f61ea418e9eb87dc5bb64 | [
"MIT"
] | null | null | null | giveaway/migrations/0005_auto_20220227_0205.py | nikhilchaudhary0126/goodshare | c1578796b6376f02970f61ea418e9eb87dc5bb64 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.5 on 2022-02-27 02:05
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('giveaway', '0004_clothes_items'),
]
operations = [
migrations.CreateModel(
name='HouseholdItems',
fields=[
... | 33.727273 | 117 | 0.548068 | 99 | 1,113 | 6.050505 | 0.585859 | 0.15025 | 0.180301 | 0.240401 | 0.130217 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04026 | 0.308176 | 1,113 | 32 | 118 | 34.78125 | 0.737662 | 0.040431 | 0 | 0.076923 | 1 | 0 | 0.117261 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.038462 | 0 | 0.153846 | 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 |
78ea8bf8e00be620acad655d82695ef352eb4da2 | 5,522 | py | Python | docpub/docpub/settings.py | mcclatchy/docpub | 1ad006803d60aa508394ae656b9554bb815bf92d | [
"Apache-2.0"
] | 5 | 2017-08-07T13:31:20.000Z | 2021-05-23T22:46:14.000Z | docpub/docpub/settings.py | mcclatchy/docpub | 1ad006803d60aa508394ae656b9554bb815bf92d | [
"Apache-2.0"
] | 2 | 2020-06-05T17:26:25.000Z | 2021-06-10T18:47:54.000Z | docpub/docpub/settings.py | mcclatchy/docpub | 1ad006803d60aa508394ae656b9554bb815bf92d | [
"Apache-2.0"
] | 1 | 2017-08-07T13:31:20.000Z | 2017-08-07T13:31:20.000Z | """
Django settings for docpub project.
Generated by 'django-admin startproject' using Django 1.11.1.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os
... | 28.611399 | 104 | 0.684172 | 600 | 5,522 | 6.133333 | 0.345 | 0.056522 | 0.048913 | 0.047554 | 0.238043 | 0.194022 | 0.074457 | 0.074457 | 0.033424 | 0 | 0 | 0.009702 | 0.17874 | 5,522 | 192 | 105 | 28.760417 | 0.801764 | 0.354401 | 0 | 0 | 1 | 0 | 0.576484 | 0.504281 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.05102 | 0.020408 | 0 | 0.020408 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
78f6976d26930a3f2d2077d4eb84497f1e9475c8 | 350 | py | Python | hello_world/hello_world.py | zacharya/jsii-native-python | b3eb76b3ccb9c6b9fe9f4c7aca1e7ce0fb465c52 | [
"MIT-0"
] | 2 | 2021-11-03T00:59:29.000Z | 2021-11-18T21:58:42.000Z | hello_world/hello_world.py | zacharya/jsii-native-python | b3eb76b3ccb9c6b9fe9f4c7aca1e7ce0fb465c52 | [
"MIT-0"
] | null | null | null | hello_world/hello_world.py | zacharya/jsii-native-python | b3eb76b3ccb9c6b9fe9f4c7aca1e7ce0fb465c52 | [
"MIT-0"
] | 4 | 2020-05-27T19:05:12.000Z | 2021-11-03T00:59:05.000Z | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: MIT-0
class HelloWorld:
def say_hello(self, name):
return 'Hello, ' + name
def fibonacci(self, n):
table = [0,1]
for i in range(2,n+1):
table.append(table[i-2] + table[i... | 23.333333 | 68 | 0.58 | 50 | 350 | 4.04 | 0.66 | 0.059406 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028226 | 0.291429 | 350 | 14 | 69 | 25 | 0.78629 | 0.277143 | 0 | 0 | 0 | 0 | 0.028 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.125 | 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 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
78fdf740ec7e20b81f7941bece651dcda4fb5362 | 541 | py | Python | test/unit/test_healthcheck_routes.py | cetanu/sovereign | 231b2692d302f6737c5880899886d815b1355d68 | [
"Apache-2.0"
] | 14 | 2020-08-24T10:10:27.000Z | 2022-02-15T01:27:20.000Z | test/unit/test_healthcheck_routes.py | cetanu/sovereign | 231b2692d302f6737c5880899886d815b1355d68 | [
"Apache-2.0"
] | 5 | 2020-08-06T13:02:03.000Z | 2021-08-31T02:12:00.000Z | test/unit/test_healthcheck_routes.py | cetanu/sovereign | 231b2692d302f6737c5880899886d815b1355d68 | [
"Apache-2.0"
] | 1 | 2021-02-18T14:31:20.000Z | 2021-02-18T14:31:20.000Z | from sovereign import __version__
from starlette.testclient import TestClient
def test_version_route(testclient: TestClient):
response = testclient.get("/version")
assert __version__ in response.content.decode()
def test_healthcheck_route(testclient: TestClient):
response = testclient.get("/healthcheck"... | 28.473684 | 51 | 0.763401 | 60 | 541 | 6.616667 | 0.35 | 0.052897 | 0.188917 | 0.24937 | 0.483627 | 0.347607 | 0 | 0 | 0 | 0 | 0 | 0.012903 | 0.140481 | 541 | 18 | 52 | 30.055556 | 0.84086 | 0 | 0 | 0.166667 | 0 | 0 | 0.05915 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.25 | false | 0 | 0.166667 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6001ed6432715aa1957062af29c819910cbd1249 | 914 | py | Python | riptable/benchmarks/results.py | 972d5defe3218bd62b741e6a2f11f5b3/riptable | bb928c11752e831ec701f91964979b31db53826a | [
"BSD-2-Clause-Patent"
] | 307 | 2020-08-27T20:25:11.000Z | 2022-03-08T15:51:19.000Z | riptable/benchmarks/results.py | 972d5defe3218bd62b741e6a2f11f5b3/riptable | bb928c11752e831ec701f91964979b31db53826a | [
"BSD-2-Clause-Patent"
] | 206 | 2020-08-17T19:07:15.000Z | 2022-03-18T11:53:55.000Z | riptable/benchmarks/results.py | 972d5defe3218bd62b741e6a2f11f5b3/riptable | bb928c11752e831ec701f91964979b31db53826a | [
"BSD-2-Clause-Patent"
] | 10 | 2020-08-28T00:22:05.000Z | 2021-04-30T20:22:28.000Z | # -*- coding: utf-8 -*-
from typing import NamedTuple
class RunResult(NamedTuple):
"""
Timing results for a benchmark run (statistics calculated from multiple
invocations of a function to be benchmarked).
"""
min_ns: int
"""
The minimum duration, in nanoseconds, of any single ... | 25.388889 | 93 | 0.63895 | 110 | 914 | 5.236364 | 0.418182 | 0.112847 | 0.130208 | 0.199653 | 0.378472 | 0.378472 | 0.378472 | 0.378472 | 0.378472 | 0.378472 | 0 | 0.00304 | 0.280088 | 914 | 35 | 94 | 26.114286 | 0.87234 | 0.153173 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.142857 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
602048b28f506e561c60735b0c41e62c2d35ad44 | 287 | py | Python | tests/conftest.py | cormorack/intake-esm | ac0f3d1496327039be6748caf554eb4b7ba83a23 | [
"Apache-2.0"
] | 44 | 2020-07-10T07:33:45.000Z | 2022-03-02T14:26:47.000Z | tests/conftest.py | chrystali2002/intake-esm | aa4dfe14d68bcc1b1f1c92d2646916779ebe5d8d | [
"Apache-2.0"
] | 105 | 2020-06-25T19:17:18.000Z | 2022-03-25T19:21:36.000Z | tests/conftest.py | chrystali2002/intake-esm | aa4dfe14d68bcc1b1f1c92d2646916779ebe5d8d | [
"Apache-2.0"
] | 11 | 2020-10-02T09:23:36.000Z | 2022-02-22T20:26:45.000Z | import os
import pytest
here = os.path.abspath(os.path.dirname(__file__))
@pytest.fixture
def sample_cmip6():
return os.path.join(here, 'sample-collections/cmip6-netcdf.json')
@pytest.fixture
def sample_bad_input():
return os.path.join(here, 'sample-collections/bad.json')
| 17.9375 | 69 | 0.745645 | 42 | 287 | 4.928571 | 0.452381 | 0.115942 | 0.154589 | 0.21256 | 0.357488 | 0.357488 | 0.357488 | 0 | 0 | 0 | 0 | 0.007874 | 0.114983 | 287 | 15 | 70 | 19.133333 | 0.807087 | 0 | 0 | 0.222222 | 0 | 0 | 0.219512 | 0.219512 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0.222222 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
602b2e1a4fe957f8469c516424df60b78aa493e1 | 1,210 | py | Python | callmail_project/aboutus/views.py | q8groups/callnmail | e3f4c01050bee1442545c8e82eba3fb1efb5b3ed | [
"MIT"
] | null | null | null | callmail_project/aboutus/views.py | q8groups/callnmail | e3f4c01050bee1442545c8e82eba3fb1efb5b3ed | [
"MIT"
] | null | null | null | callmail_project/aboutus/views.py | q8groups/callnmail | e3f4c01050bee1442545c8e82eba3fb1efb5b3ed | [
"MIT"
] | null | null | null | import re
from django.shortcuts import render
from django.http import HttpResponse
from .models import StaticContents
# Create your views here.
def Aboutus(request):
obj = StaticContents.objects.get(pk=1)
return HttpResponse(obj.body)
def Privacy(request):
obj = StaticContents.objects.get(pk=2)
retu... | 24.2 | 107 | 0.673554 | 157 | 1,210 | 5.178344 | 0.33758 | 0.154982 | 0.177122 | 0.228782 | 0.499385 | 0.265683 | 0 | 0 | 0 | 0 | 0 | 0.013065 | 0.177686 | 1,210 | 49 | 108 | 24.693878 | 0.80402 | 0.019008 | 0 | 0.1875 | 0 | 0 | 0.081857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.21875 | false | 0 | 0.125 | 0 | 0.5625 | 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 |
605ff1ab6da1a7d626786239b4ff945c67da7134 | 24 | py | Python | annotator_supreme/_version.py | meerkat-cv/annotator-supreme | 36f32834078b3c8b0ae5e59985848248265ac802 | [
"MIT"
] | 5 | 2017-06-26T21:30:32.000Z | 2017-09-20T16:12:57.000Z | annotator_supreme/_version.py | meerkat-cv/annotator-supreme | 36f32834078b3c8b0ae5e59985848248265ac802 | [
"MIT"
] | 17 | 2017-12-01T14:21:33.000Z | 2018-01-18T21:09:50.000Z | annotator_supreme/_version.py | meerkat-cv/annotator-supreme | 36f32834078b3c8b0ae5e59985848248265ac802 | [
"MIT"
] | 1 | 2017-11-28T17:56:41.000Z | 2017-11-28T17:56:41.000Z | __version__ = '0.1-beta' | 24 | 24 | 0.708333 | 4 | 24 | 3.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 0.083333 | 24 | 1 | 24 | 24 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0.32 | 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 |
606df4f4ca2e2eb0d1ef687b003b68bdf789bdf8 | 67 | py | Python | B_Python_and_friends/solutions/ex3_4a.py | oercompbiomed/CBM101 | 20010dcb99fbf218c4789eb5918dcff8ceb94898 | [
"MIT"
] | 7 | 2019-07-03T07:41:55.000Z | 2022-02-06T20:25:37.000Z | B_Python_and_friends/solutions/ex3_4a.py | oercompbiomed/CBM101 | 20010dcb99fbf218c4789eb5918dcff8ceb94898 | [
"MIT"
] | 9 | 2019-03-14T15:15:09.000Z | 2019-08-01T14:18:21.000Z | B_Python_and_friends/solutions/ex3_4a.py | oercompbiomed/CBM101 | 20010dcb99fbf218c4789eb5918dcff8ceb94898 | [
"MIT"
] | 11 | 2019-03-12T10:43:11.000Z | 2021-10-05T12:15:00.000Z | def make_zero(A, k):
B = A.copy()
B[B < k] = 0
return B | 16.75 | 20 | 0.462687 | 14 | 67 | 2.142857 | 0.642857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023256 | 0.358209 | 67 | 4 | 21 | 16.75 | 0.674419 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
606f081f632727334899d905fee33f88b36e7095 | 217 | py | Python | api/carna_api/urls.py | ntjandra/Carna-Take-Home | 9d1fcc4b07dbaa366808ead3ae89d8d173b59bbb | [
"MIT"
] | null | null | null | api/carna_api/urls.py | ntjandra/Carna-Take-Home | 9d1fcc4b07dbaa366808ead3ae89d8d173b59bbb | [
"MIT"
] | null | null | null | api/carna_api/urls.py | ntjandra/Carna-Take-Home | 9d1fcc4b07dbaa366808ead3ae89d8d173b59bbb | [
"MIT"
] | null | null | null | from django.urls import path
from .views import current_user, UserList
# Paths to handle login state, jwt is stateless
urlpatterns = [
path('current_user/', current_user),
path('users/', UserList.as_view())
] | 27.125 | 47 | 0.732719 | 30 | 217 | 5.166667 | 0.7 | 0.212903 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.156682 | 217 | 8 | 48 | 27.125 | 0.846995 | 0.207373 | 0 | 0 | 0 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
60734760e2d5dfa7862f47b4be8122fa54ad3900 | 372 | py | Python | perform/rom/nonintrusive_rom/autoencoder_rom/autoencoder_koopman/autoencoder_koopman.py | cwentland0/perform | e08771cb776a7e6518c43350746e2ca72f79b153 | [
"MIT"
] | 6 | 2021-03-24T21:42:06.000Z | 2022-01-28T20:00:13.000Z | perform/rom/nonintrusive_rom/autoencoder_rom/autoencoder_koopman/autoencoder_koopman.py | cwentland0/perform | e08771cb776a7e6518c43350746e2ca72f79b153 | [
"MIT"
] | 38 | 2021-04-15T15:30:21.000Z | 2022-01-29T01:23:57.000Z | perform/rom/nonintrusive_rom/autoencoder_rom/autoencoder_koopman/autoencoder_koopman.py | cwentland0/perform | e08771cb776a7e6518c43350746e2ca72f79b153 | [
"MIT"
] | 1 | 2021-07-03T03:13:36.000Z | 2021-07-03T03:13:36.000Z | from perform.rom.nonintrusive_rom.autoencoder_rom.autoencoder_rom import AutoencoderRom
class AutoencoderKoopman(AutoencoderRom):
"""Base class for autoencoder ROMs which use a linear Koopman operator to advance the latent variables in time."""
def __init__(self, model_idx, rom_domain, sol_domain):
... | 37.2 | 118 | 0.787634 | 49 | 372 | 5.632653 | 0.673469 | 0.101449 | 0.123188 | 0.123188 | 0.188406 | 0.188406 | 0 | 0 | 0 | 0 | 0 | 0 | 0.139785 | 372 | 9 | 119 | 41.333333 | 0.8625 | 0.290323 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
60767ddf85d2eeb132d58391a87c7f556625a8ae | 199 | py | Python | Codes/fengxuanmo/4_findMiddle_num/findMidlleNum.py | aiv2008/algorithm | ecee5b76af52d9ad55b7fb9cf706be25c76772c1 | [
"Apache-2.0"
] | 1 | 2019-11-11T07:03:14.000Z | 2019-11-11T07:03:14.000Z | Codes/fengxuanmo/4_findMiddle_num/findMidlleNum.py | aiv2008/algorithm | ecee5b76af52d9ad55b7fb9cf706be25c76772c1 | [
"Apache-2.0"
] | null | null | null | Codes/fengxuanmo/4_findMiddle_num/findMidlleNum.py | aiv2008/algorithm | ecee5b76af52d9ad55b7fb9cf706be25c76772c1 | [
"Apache-2.0"
] | null | null | null | def findMedianSortedArrays(nums1, nums2):
if len(nums1) ==0 :
return nums2[(len(nums2)-1)/2]
if __name__ == '__main__':
print findMedianSortedArrays([1, 2, 3, 5], [4, 6, 7, 8, 9])
| 22.111111 | 63 | 0.60804 | 28 | 199 | 4.035714 | 0.714286 | 0.035398 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10828 | 0.211055 | 199 | 8 | 64 | 24.875 | 0.611465 | 0 | 0 | 0 | 0 | 0 | 0.040201 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
609cfa9f9cfed2d9e0e9e4cd024a62e7e5011966 | 1,237 | py | Python | trabalhos/trab-02-algoritmos-genericos/Individuo.py | FabioFischer/furb-ia | f45edb90515e4e2291b0f34ca2ac7766fe352d1b | [
"MIT"
] | null | null | null | trabalhos/trab-02-algoritmos-genericos/Individuo.py | FabioFischer/furb-ia | f45edb90515e4e2291b0f34ca2ac7766fe352d1b | [
"MIT"
] | null | null | null | trabalhos/trab-02-algoritmos-genericos/Individuo.py | FabioFischer/furb-ia | f45edb90515e4e2291b0f34ca2ac7766fe352d1b | [
"MIT"
] | null | null | null | from Cromossomo import Cromossomo
class Individuo():
def __init__(self, cenario, estado_inicial, estado_objetivo, prob_mutacao, genes=None):
self.cromossomo = Cromossomo(cenario, estado_inicial, estado_objetivo, prob_mutacao, genes)
self.aptidao = self.determina_aptidao(cenario)
def __repr__(... | 38.65625 | 136 | 0.674212 | 154 | 1,237 | 5.201299 | 0.266234 | 0.122347 | 0.124844 | 0.162297 | 0.390762 | 0.390762 | 0.390762 | 0.320849 | 0 | 0 | 0 | 0.013402 | 0.215845 | 1,237 | 31 | 137 | 39.903226 | 0.812371 | 0 | 0 | 0.166667 | 0 | 0 | 0.018593 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.041667 | 0.083333 | 0.625 | 0.125 | 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 |
609f20d41255a3751b8a0df03afbfbe93de7a0f6 | 20 | py | Python | __init__.py | sdswart/python_utils | 0896cbedb223a72dda66cfa9116ae2bcd60b544f | [
"MIT"
] | null | null | null | __init__.py | sdswart/python_utils | 0896cbedb223a72dda66cfa9116ae2bcd60b544f | [
"MIT"
] | null | null | null | __init__.py | sdswart/python_utils | 0896cbedb223a72dda66cfa9116ae2bcd60b544f | [
"MIT"
] | null | null | null | name='python_utils'
| 10 | 19 | 0.8 | 3 | 20 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05 | 20 | 1 | 20 | 20 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0.6 | 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 |
60ae993a2f0ad4d661be7b2f2bd9db42d691d326 | 1,311 | py | Python | lolAnalysis/cart/forms.py | mihaibaws/cacat | ee302c5ba43349421d15e9890bc9cb3a702ff56f | [
"bzip2-1.0.6"
] | null | null | null | lolAnalysis/cart/forms.py | mihaibaws/cacat | ee302c5ba43349421d15e9890bc9cb3a702ff56f | [
"bzip2-1.0.6"
] | null | null | null | lolAnalysis/cart/forms.py | mihaibaws/cacat | ee302c5ba43349421d15e9890bc9cb3a702ff56f | [
"bzip2-1.0.6"
] | null | null | null | from django import forms
class SizeForm(forms.Form):
size = forms.CharField(label="validationCustom01", max_length = 2)
PAYMENT_CHOICES = (
('S', 'Card'),
('N', 'Numerar')
)
class CheckoutForm(forms.Form):
nume = forms.CharField(required = True)
prenume = forms.CharField(required=... | 28.5 | 71 | 0.660564 | 139 | 1,311 | 6.172662 | 0.460432 | 0.195804 | 0.205128 | 0.212121 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00484 | 0.212052 | 1,311 | 45 | 72 | 29.133333 | 0.82575 | 0 | 0 | 0.058824 | 0 | 0 | 0.095577 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.029412 | 0 | 0.647059 | 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 |
60c53d9c97c82266036c59e84da18f7852e7f02b | 162 | py | Python | sender/delete_data.py | schc-over-sigfox/schc-over-sigfox | d03e26cf5524ebd6bd64b4ca33a83149eec5e59f | [
"MIT"
] | null | null | null | sender/delete_data.py | schc-over-sigfox/schc-over-sigfox | d03e26cf5524ebd6bd64b4ca33a83149eec5e59f | [
"MIT"
] | null | null | null | sender/delete_data.py | schc-over-sigfox/schc-over-sigfox | d03e26cf5524ebd6bd64b4ca33a83149eec5e59f | [
"MIT"
] | 1 | 2022-03-19T12:36:30.000Z | 2022-03-19T12:36:30.000Z | import os
for file in os.listdir("stats"):
if file.startswith("stats"):
os.remove("stats/{}".format(file))
print("deleted {}".format(file))
| 20.25 | 42 | 0.598765 | 21 | 162 | 4.619048 | 0.619048 | 0.206186 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.203704 | 162 | 7 | 43 | 23.142857 | 0.751938 | 0 | 0 | 0 | 0 | 0 | 0.17284 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.2 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
60edd2a9759c3c655f459bd3c3376d397fc8fdac | 2,642 | py | Python | diagrams/azure/Networking.py | rfernandezdo/diagrams | 5acf66561d0ef94dff84f45e277f5e3e3b63c2fb | [
"MIT"
] | null | null | null | diagrams/azure/Networking.py | rfernandezdo/diagrams | 5acf66561d0ef94dff84f45e277f5e3e3b63c2fb | [
"MIT"
] | null | null | null | diagrams/azure/Networking.py | rfernandezdo/diagrams | 5acf66561d0ef94dff84f45e277f5e3e3b63c2fb | [
"MIT"
] | null | null | null | # This module is automatically generated by autogen.sh. DO NOT EDIT.
from . import _Azure
class _Networking(_Azure):
_type = "Networking"
_icon_dir = "resources/azure/Networking"
class ApplicationGateways(_Networking):
_icon = "application-gateways.png"
class CDNProfiles(_Networking):
_icon = "cd... | 18.871429 | 68 | 0.743755 | 263 | 2,642 | 7.205323 | 0.376426 | 0.243799 | 0.044327 | 0.034829 | 0.054354 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147615 | 2,642 | 139 | 69 | 19.007194 | 0.841474 | 0.028009 | 0 | 0 | 1 | 0 | 0.28655 | 0.191423 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.014706 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
60fb286a921fd77afb7998faa0e3ce26da4478f9 | 93 | py | Python | backend/scheduler/apps.py | Boomaa23/berkeleytime | f4c3f41025576056953fb944f5e978df43fa9cdc | [
"MIT"
] | 300 | 2019-07-30T03:01:29.000Z | 2022-03-14T05:51:41.000Z | backend/scheduler/apps.py | Boomaa23/berkeleytime | f4c3f41025576056953fb944f5e978df43fa9cdc | [
"MIT"
] | 42 | 2019-12-14T15:43:11.000Z | 2022-02-26T22:18:19.000Z | backend/scheduler/apps.py | Boomaa23/berkeleytime | f4c3f41025576056953fb944f5e978df43fa9cdc | [
"MIT"
] | 124 | 2019-08-21T03:32:15.000Z | 2022-03-14T05:51:43.000Z | from django.apps import AppConfig
class SchedulerConfig(AppConfig):
name = 'scheduler'
| 15.5 | 33 | 0.763441 | 10 | 93 | 7.1 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16129 | 93 | 5 | 34 | 18.6 | 0.910256 | 0 | 0 | 0 | 0 | 0 | 0.096774 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
881117555828c03739a5e56bd2f4fb9b13b7fe98 | 219 | py | Python | src/cmp/cool_lang/ast/new_node.py | codestrange/cool-compiler-2020 | 30508965d75a1a1d1362d0b51bef8da3978fd0c2 | [
"MIT"
] | 3 | 2020-01-14T04:47:32.000Z | 2020-09-10T17:57:20.000Z | src/cmp/cool_lang/ast/new_node.py | codestrange/cool-compiler-2020 | 30508965d75a1a1d1362d0b51bef8da3978fd0c2 | [
"MIT"
] | 5 | 2020-01-14T06:06:35.000Z | 2020-02-19T01:01:33.000Z | src/cmp/cool_lang/ast/new_node.py | codestrange/cool-compiler-2020 | 30508965d75a1a1d1362d0b51bef8da3978fd0c2 | [
"MIT"
] | 3 | 2020-01-14T04:58:24.000Z | 2020-01-14T16:23:41.000Z | from .expresion_node import ExpressionNode
class NewNode(ExpressionNode):
def __init__(self, typex: str, line: int, column: int):
super(NewNode, self).__init__(line, column)
self.type: str = typex
| 27.375 | 59 | 0.69863 | 27 | 219 | 5.333333 | 0.62963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.196347 | 219 | 7 | 60 | 31.285714 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
71a47d16ca105c5c2ff490563eef015b4640e432 | 200 | py | Python | homedisplay/info_weather/utils.py | ojarva/home-info-display | 873d022308732baff94d0dc2381cf9dc7dce23b7 | [
"BSD-3-Clause"
] | 1 | 2016-11-28T04:35:06.000Z | 2016-11-28T04:35:06.000Z | homedisplay/info_weather/utils.py | ojarva/home-info-display | 873d022308732baff94d0dc2381cf9dc7dce23b7 | [
"BSD-3-Clause"
] | 160 | 2015-01-01T20:59:29.000Z | 2016-04-25T13:36:52.000Z | homedisplay/info_weather/utils.py | ojarva/home-info-display | 873d022308732baff94d0dc2381cf9dc7dce23b7 | [
"BSD-3-Clause"
] | 1 | 2015-02-25T21:24:01.000Z | 2015-02-25T21:24:01.000Z | from astral import Astral
from django.conf import settings
def get_sun_info():
sun_info = Astral()
sun_info.solar_depression = 'civil'
b = sun_info[settings.SUN_CITY].sun()
return b
| 20 | 41 | 0.715 | 30 | 200 | 4.533333 | 0.533333 | 0.205882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.195 | 200 | 9 | 42 | 22.222222 | 0.844721 | 0 | 0 | 0 | 0 | 0 | 0.025 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
71a96caa02d6d980c73e66c52bc49c700a0d14fc | 425 | py | Python | setup.py | fedjo/aat | 79d95bd4ed0f19d974b1f73bbdfba7de1fd5e981 | [
"Apache-2.0"
] | 1 | 2019-09-30T02:43:54.000Z | 2019-09-30T02:43:54.000Z | setup.py | fedjo/aat | 79d95bd4ed0f19d974b1f73bbdfba7de1fd5e981 | [
"Apache-2.0"
] | null | null | null | setup.py | fedjo/aat | 79d95bd4ed0f19d974b1f73bbdfba7de1fd5e981 | [
"Apache-2.0"
] | null | null | null | from setuptools import setup
setup(
name='facerec',
version='0.0.1dev',
packages=['project'],
license='Apache License 2.0',
long_description=open('README.md').read(),
install_requires=[dep.strip() for dep in open('requirements.txt')
if not dep.startswith('#') and
... | 28.333333 | 69 | 0.562353 | 48 | 425 | 4.9375 | 0.708333 | 0.075949 | 0.202532 | 0.160338 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01634 | 0.28 | 425 | 14 | 70 | 30.357143 | 0.75817 | 0 | 0 | 0 | 0 | 0 | 0.191038 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.083333 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
71ab8e2e6577f95e91e4995c6e5311e8650a1b43 | 4,069 | py | Python | Karmatek/users/forms.py | ruppysuppy/Karmatek-2k20 | 5d67a3600344051afdf0afda076624f804a3dba7 | [
"MIT"
] | 2 | 2019-11-21T03:36:23.000Z | 2020-05-01T14:28:39.000Z | Karmatek/users/forms.py | ruppysuppy/Karmatek-2k20 | 5d67a3600344051afdf0afda076624f804a3dba7 | [
"MIT"
] | 1 | 2019-11-28T15:50:57.000Z | 2019-11-30T12:23:53.000Z | Karmatek/users/forms.py | ruppysuppy/Karmatek-2k20 | 5d67a3600344051afdf0afda076624f804a3dba7 | [
"MIT"
] | 1 | 2020-08-07T08:54:25.000Z | 2020-08-07T08:54:25.000Z | ####################################################
# IMPORTS (FROM LIBRARY) ###########################
####################################################
# Imports for forms
from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, SubmitField, IntegerField, SelectField
from wtforms... | 43.752688 | 150 | 0.514623 | 327 | 4,069 | 6.366972 | 0.370031 | 0.100865 | 0.181556 | 0.043228 | 0.451969 | 0.443804 | 0.39001 | 0.39001 | 0.360231 | 0.360231 | 0 | 0.001183 | 0.169083 | 4,069 | 93 | 151 | 43.752688 | 0.614611 | 0.037601 | 0 | 0.298246 | 0 | 0 | 0.247 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035088 | false | 0.070175 | 0.122807 | 0 | 0.561404 | 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 | 0 | 0 | 1 | 0 | 0 | 3 |
71acbe45e881c04343f789b8a6f531bc5df06548 | 1,917 | py | Python | downloader/user_agent_pool.py | f840415070/genius | 87e20350f98e84bc81b727a793d2dda37ffb3d03 | [
"MIT"
] | 3 | 2020-01-14T02:58:27.000Z | 2020-06-05T09:52:37.000Z | downloader/user_agent_pool.py | f840415070/genius | 87e20350f98e84bc81b727a793d2dda37ffb3d03 | [
"MIT"
] | 1 | 2021-12-13T20:30:44.000Z | 2021-12-13T20:30:44.000Z | downloader/user_agent_pool.py | f840415070/genius | 87e20350f98e84bc81b727a793d2dda37ffb3d03 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
'''
@Date: 2019/12/18
@Author: fanyibin
@Description: None
'''
UserAgent_POOL = [
'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:21.0) Gecko/20130331 Firefox/21.0',
'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2049.0 Safari/537.36',
'Mozilla/... | 71 | 128 | 0.680751 | 363 | 1,917 | 3.581267 | 0.253444 | 0.027692 | 0.117692 | 0.11 | 0.686923 | 0.635385 | 0.571538 | 0.447692 | 0.401538 | 0.296154 | 0 | 0.241672 | 0.138758 | 1,917 | 27 | 129 | 71 | 0.54573 | 0.040167 | 0 | 0 | 0 | 0.9 | 0.908347 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
71ce81558956bf580f69a24ab00ee3375d568490 | 340 | py | Python | plugins/afk.py | DoctrineAlanK/auto-derby | 781e860b06b9686e56feab115d2212251cd99d10 | [
"MIT"
] | 235 | 2021-05-24T12:09:18.000Z | 2022-03-31T03:44:08.000Z | plugins/afk.py | DoctrineAlanK/auto-derby | 781e860b06b9686e56feab115d2212251cd99d10 | [
"MIT"
] | 193 | 2021-05-27T16:49:14.000Z | 2022-03-31T16:38:08.000Z | plugins/afk.py | DoctrineAlanK/auto-derby | 781e860b06b9686e56feab115d2212251cd99d10 | [
"MIT"
] | 89 | 2021-05-30T17:07:24.000Z | 2022-03-27T15:41:04.000Z | import auto_derby
class Plugin(auto_derby.Plugin):
def install(self) -> None:
auto_derby.config.pause_if_race_order_gt = 999
auto_derby.plugin.install("no_ocr_prompt")
auto_derby.plugin.install("no_event_prompt")
auto_derby.plugin.install("auto_crane")
auto_derby.plugin.register(... | 26.153846 | 54 | 0.726471 | 47 | 340 | 4.829787 | 0.489362 | 0.277533 | 0.330396 | 0.290749 | 0.361233 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010563 | 0.164706 | 340 | 12 | 55 | 28.333333 | 0.788732 | 0 | 0 | 0 | 0 | 0 | 0.111765 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
71dca5ee0661e2574dcfd996b79c903850b59d91 | 214 | py | Python | SRTM/csv_to_parquet.py | iDigBio/guoda-datasets | abcba7b03b27e641cd96825dde64f2180a65d978 | [
"MIT"
] | 6 | 2016-06-24T09:47:22.000Z | 2018-04-10T20:04:58.000Z | SRTM/csv_to_parquet.py | iDigBio/guoda-datasets | abcba7b03b27e641cd96825dde64f2180a65d978 | [
"MIT"
] | 14 | 2016-06-17T20:29:21.000Z | 2019-06-13T13:17:21.000Z | SRTM/csv_to_parquet.py | iDigBio/guoda-datasets | abcba7b03b27e641cd96825dde64f2180a65d978 | [
"MIT"
] | null | null | null | from pyspark.sql import SparkSession
spark = SparkSession \
.builder \
.appName("Elevation Parquet Converter") \
.getOrCreate()
df = spark.read.csv("dem3/*.csv")
df.write.parquet("elevation.parquet")
| 21.4 | 45 | 0.700935 | 24 | 214 | 6.25 | 0.708333 | 0.213333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005525 | 0.154206 | 214 | 9 | 46 | 23.777778 | 0.823204 | 0 | 0 | 0 | 0 | 0 | 0.252336 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 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 |
e081faf13fb9f6a2fcf232aa275c9473e270393f | 791 | py | Python | fdk_client/platform/models/HsnCodesObject.py | kavish-d/fdk-client-python | a1023eb530473322cb52e095fc4ceb226c1e6037 | [
"MIT"
] | null | null | null | fdk_client/platform/models/HsnCodesObject.py | kavish-d/fdk-client-python | a1023eb530473322cb52e095fc4ceb226c1e6037 | [
"MIT"
] | null | null | null | fdk_client/platform/models/HsnCodesObject.py | kavish-d/fdk-client-python | a1023eb530473322cb52e095fc4ceb226c1e6037 | [
"MIT"
] | null | null | null | """Platform Models."""
from marshmallow import fields, Schema
from marshmallow.validate import OneOf
from ..enums import *
from ..models.BaseSchema import BaseSchema
class HsnCodesObject(BaseSchema):
# Catalog swagger.json
hsn_code = fields.Str(required=False)
company_id ... | 13.637931 | 47 | 0.662453 | 89 | 791 | 5.797753 | 0.404494 | 0.277132 | 0.131783 | 0.170543 | 0.213178 | 0.112403 | 0 | 0 | 0 | 0 | 0 | 0.008347 | 0.242731 | 791 | 57 | 48 | 13.877193 | 0.853088 | 0.04804 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
e0a2a4f0347b95a4a320f874d70220d4d39d46f8 | 25,779 | py | Python | Packs/mnemonicMDR/Integrations/ArgusManagedDefence/test_ArgusManagedDefence.py | diCagri/content | c532c50b213e6dddb8ae6a378d6d09198e08fc9f | [
"MIT"
] | 799 | 2016-08-02T06:43:14.000Z | 2022-03-31T11:10:11.000Z | Packs/mnemonicMDR/Integrations/ArgusManagedDefence/test_ArgusManagedDefence.py | diCagri/content | c532c50b213e6dddb8ae6a378d6d09198e08fc9f | [
"MIT"
] | 9,317 | 2016-08-07T19:00:51.000Z | 2022-03-31T21:56:04.000Z | Packs/mnemonicMDR/Integrations/ArgusManagedDefence/test_ArgusManagedDefence.py | diCagri/content | c532c50b213e6dddb8ae6a378d6d09198e08fc9f | [
"MIT"
] | 1,297 | 2016-08-04T13:59:00.000Z | 2022-03-31T23:43:06.000Z | import json
BASE_URL = "https://api.mnemonic.no"
CASE_ID = 1337
COMMENT_ID = "some-long-hash"
TAG_ID = "some-long-hash"
TAG_KEY = "test_key"
TAG_VALUE = "test_value"
ATTACHMENT_ID = "some-long-hash"
EVENT_TYPE = "NIDS"
TIMESTAMP = "some-timestamp"
CUSTOMER_ID = 5381
EVENT_ID = "some-hash"
def test_argus_priority_to_... | 35.169168 | 100 | 0.712285 | 3,540 | 25,779 | 4.849153 | 0.061017 | 0.045089 | 0.087848 | 0.044565 | 0.834673 | 0.797274 | 0.755563 | 0.670104 | 0.603227 | 0.559187 | 0 | 0.013203 | 0.171496 | 25,779 | 732 | 101 | 35.217213 | 0.790523 | 0.000737 | 0 | 0.447464 | 0 | 0.001812 | 0.22617 | 0.156552 | 0 | 0 | 0 | 0 | 0.144928 | 1 | 0.094203 | false | 0 | 0.101449 | 0 | 0.195652 | 0.032609 | 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 |
e0b3490785c8d0d58c5eb625efe161a35ea51145 | 158 | py | Python | cma-es/batchcompute_python_sdk/tools/__init__.py | luzhijun/- | c9a7f39fd033a3ba3c57acbbd309c05ac17e6bef | [
"Apache-2.0"
] | 17 | 2016-11-18T03:15:14.000Z | 2022-01-09T07:50:56.000Z | cma-es/batchcompute_python_sdk/tools/__init__.py | luzhijun/- | c9a7f39fd033a3ba3c57acbbd309c05ac17e6bef | [
"Apache-2.0"
] | null | null | null | cma-es/batchcompute_python_sdk/tools/__init__.py | luzhijun/- | c9a7f39fd033a3ba3c57acbbd309c05ac17e6bef | [
"Apache-2.0"
] | 7 | 2016-11-20T10:20:57.000Z | 2021-04-20T05:29:57.000Z | __all__ = [
'PY25', 'ez_setup'
]
import sys
PY25 = sys.version_info[0] == 2 and sys.version_info[1] == 5
if PY25:
import ez_setup_py25 as ez_setup
| 14.363636 | 60 | 0.658228 | 27 | 158 | 3.481481 | 0.555556 | 0.223404 | 0.297872 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096774 | 0.21519 | 158 | 10 | 61 | 15.8 | 0.66129 | 0 | 0 | 0 | 0 | 0 | 0.075949 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e0c3d650ec93051ec52fc78b9460b1cc7a911659 | 1,065 | py | Python | common/utils.py | choeminjun/src_server_1.2 | 82e564e694e4f3011faf02c6de026d8a3b137680 | [
"Apache-2.0"
] | null | null | null | common/utils.py | choeminjun/src_server_1.2 | 82e564e694e4f3011faf02c6de026d8a3b137680 | [
"Apache-2.0"
] | null | null | null | common/utils.py | choeminjun/src_server_1.2 | 82e564e694e4f3011faf02c6de026d8a3b137680 | [
"Apache-2.0"
] | null | null | null | from passlib.hash import pbkdf2_sha512
import re
class Utils(object):
@staticmethod
def email_is_valid(email):
email_address_matcher = re.compile('^[\w-]+@([\w-]+\.)+[\w]+$')
return True if email_address_matcher.match(email) else False
@staticmethod
def hash_password(password):
... | 33.28125 | 86 | 0.682629 | 128 | 1,065 | 5.539063 | 0.414063 | 0.101551 | 0.053597 | 0.081805 | 0.098731 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040691 | 0.238498 | 1,065 | 31 | 87 | 34.354839 | 0.833539 | 0.421596 | 0 | 0.230769 | 0 | 0 | 0.047985 | 0.047985 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0.384615 | 0.153846 | 0 | 0.692308 | 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 |
e0db50cd7fa5ed67c1a8b0780f470df5d1ba9db3 | 415 | py | Python | Parser/Data/Bool/EqualsParser.py | nerdsupremacist/LlamaLang | 84484b03eb24f326d7889c9dd4e9605d4eca9f8d | [
"MIT"
] | 5 | 2019-04-03T12:27:37.000Z | 2022-02-18T08:20:12.000Z | Parser/Data/Bool/EqualsParser.py | nerdsupremacist/LlamaLang | 84484b03eb24f326d7889c9dd4e9605d4eca9f8d | [
"MIT"
] | 7 | 2016-05-26T13:46:33.000Z | 2016-06-15T20:57:15.000Z | Parser/Data/Bool/EqualsParser.py | mathiasquintero/LlamaLang | 84484b03eb24f326d7889c9dd4e9605d4eca9f8d | [
"MIT"
] | null | null | null | from Parser.Data.Numbers.BinaryOperationParser import BinaryOperationParser
from Expressions.Operations.Equals import Equals
class EqualsParser(BinaryOperationParser):
def __init__(self, text, context):
from Parser.StandardParser import StandardParser
super(EqualsParser, self).__init__(text, conte... | 37.727273 | 78 | 0.763855 | 42 | 415 | 7.357143 | 0.52381 | 0.064725 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154217 | 415 | 11 | 79 | 37.727273 | 0.880342 | 0 | 0 | 0 | 0 | 0 | 0.002404 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.375 | 0.125 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 3 |
e0f8bcc18d6a23074a75eae746849e03d4c0693d | 575 | py | Python | leonardo/module/media/fields/__init__.py | timgates42/django-leonardo | c155f97fee9e2be1e0f508d47a1c205028253ecc | [
"BSD-3-Clause"
] | 102 | 2015-04-30T12:27:14.000Z | 2021-10-31T18:21:16.000Z | leonardo/module/media/fields/__init__.py | timgates42/django-leonardo | c155f97fee9e2be1e0f508d47a1c205028253ecc | [
"BSD-3-Clause"
] | 158 | 2015-04-30T22:42:34.000Z | 2019-09-07T15:37:22.000Z | leonardo/module/media/fields/__init__.py | timgates42/django-leonardo | c155f97fee9e2be1e0f508d47a1c205028253ecc | [
"BSD-3-Clause"
] | 64 | 2015-05-10T12:00:39.000Z | 2021-07-29T19:47:27.000Z |
from .file import (DocumentField, FileField, FileMultipleField,
MultipleDocumentField, MultipleVectorField,
MultipleVideoField, VectorField, VideoField)
from .folder import FolderField, FolderMultipleField
from .image import ImageField, ImageMultipleField
__all__ = ['DocumentFiel... | 44.230769 | 63 | 0.702609 | 34 | 575 | 11.764706 | 0.529412 | 0.11 | 0.195 | 0.3 | 0.59 | 0.59 | 0.59 | 0.59 | 0 | 0 | 0 | 0 | 0.206957 | 575 | 12 | 64 | 47.916667 | 0.877193 | 0 | 0 | 0 | 0 | 0 | 0.308362 | 0.038328 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3 | 0 | 0.3 | 0 | 0 | 0 | 1 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
460258b4a7a0df9d941cba975b55e6d1591dcc48 | 1,012 | py | Python | quiz/models/question.py | manikagarg/iQuiz | 99b2550eeedb92134a631d71fdb017844f81ef78 | [
"MIT"
] | null | null | null | quiz/models/question.py | manikagarg/iQuiz | 99b2550eeedb92134a631d71fdb017844f81ef78 | [
"MIT"
] | null | null | null | quiz/models/question.py | manikagarg/iQuiz | 99b2550eeedb92134a631d71fdb017844f81ef78 | [
"MIT"
] | 1 | 2021-09-26T14:10:28.000Z | 2021-09-26T14:10:28.000Z | from ..models import *
class Question(models.Model):
"""
Model to store questions for the Quizzes.
It stores all the questions.
"""
quiz = models.ForeignKey(Quiz, on_delete=models.CASCADE)
question_type = models.CharField(max_length = 100, null=True)
question_weight = models.DecimalField(d... | 48.190476 | 114 | 0.738142 | 130 | 1,012 | 5.607692 | 0.461538 | 0.098765 | 0.182442 | 0.22085 | 0.301783 | 0.288066 | 0 | 0 | 0 | 0 | 0 | 0.008245 | 0.161067 | 1,012 | 21 | 115 | 48.190476 | 0.850412 | 0.130435 | 0 | 0 | 0 | 0 | 0.015099 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
1ca32671fc648e5d284704c7cfb751aef1e5b65d | 433 | py | Python | platypush/message/event/sensor/light/__init__.py | RichardChiang/platypush | 1777ebb0516118cdef20046a92caab496fa7c6cb | [
"MIT"
] | 228 | 2018-01-30T11:17:09.000Z | 2022-03-24T11:22:26.000Z | platypush/message/event/sensor/light/__init__.py | RichardChiang/platypush | 1777ebb0516118cdef20046a92caab496fa7c6cb | [
"MIT"
] | 167 | 2017-12-11T19:35:38.000Z | 2022-03-27T14:45:30.000Z | platypush/message/event/sensor/light/__init__.py | BlackLight/runbullet | 8d26c8634d2677b4402f0a21b9ab8244b44640db | [
"MIT"
] | 16 | 2018-05-03T07:31:56.000Z | 2021-12-05T19:27:37.000Z | from platypush.message.event import Event
class LightOnEvent(Event):
"""
Event triggered when a light on event is detected
"""
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
class LightOffEvent(Event):
"""
Event triggered when a light off event is detected
... | 18.041667 | 54 | 0.625866 | 54 | 433 | 4.722222 | 0.5 | 0.156863 | 0.14902 | 0.180392 | 0.658824 | 0.658824 | 0.431373 | 0.431373 | 0.431373 | 0.431373 | 0 | 0.006024 | 0.233256 | 433 | 23 | 55 | 18.826087 | 0.762048 | 0.274827 | 0 | 0.571429 | 0 | 0 | 0 | 0 | 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 |
1cbf36d864a8e3a12aad4458870912ccc302df24 | 163 | py | Python | utils/misc.py | sequoia74835/EMNLPSubmissionCode | 4981ed4c9cac9f2b146304e919cad6dae4ba668b | [
"MIT"
] | 89 | 2018-10-25T14:37:51.000Z | 2022-02-08T13:23:47.000Z | utils/misc.py | sequoia74835/EMNLPSubmissionCode | 4981ed4c9cac9f2b146304e919cad6dae4ba668b | [
"MIT"
] | 15 | 2018-10-18T09:07:22.000Z | 2022-01-05T15:33:24.000Z | utils/misc.py | sequoia74835/EMNLPSubmissionCode | 4981ed4c9cac9f2b146304e919cad6dae4ba668b | [
"MIT"
] | 21 | 2018-10-19T04:08:35.000Z | 2022-03-23T16:00:56.000Z | def get_split_str(train, test=False, dataset=None):
if train:
return 'train'
if test and dataset != 'coco':
return 'test'
return 'val'
| 23.285714 | 51 | 0.601227 | 22 | 163 | 4.363636 | 0.636364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.282209 | 163 | 6 | 52 | 27.166667 | 0.820513 | 0 | 0 | 0 | 0 | 0 | 0.09816 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
1ccc8c38b6ca6f7e5f0d9c6ac4966cdaf2531b92 | 434 | py | Python | whython_emoji/nodes_/node_call.py | NexInfinite/whython | 0c4099ed27151e99ba63465acd0abb2e38bba8ad | [
"MIT"
] | 44 | 2021-08-12T00:23:24.000Z | 2022-02-22T08:33:02.000Z | whython_emoji/nodes_/node_call.py | NexInfinite/whython | 0c4099ed27151e99ba63465acd0abb2e38bba8ad | [
"MIT"
] | null | null | null | whython_emoji/nodes_/node_call.py | NexInfinite/whython | 0c4099ed27151e99ba63465acd0abb2e38bba8ad | [
"MIT"
] | 4 | 2021-08-12T04:02:43.000Z | 2021-08-25T08:58:19.000Z | # *###################
# * CALL NODE
# *###################
class CallNode:
def __init__(self, node_to_call, arg_nodes):
self.node_to_call = node_to_call
self.arg_nodes = arg_nodes
self.pos_start = self.node_to_call.pos_start
if len(self.arg_nodes) > 0:
self.pos_end = ... | 28.933333 | 74 | 0.576037 | 62 | 434 | 3.612903 | 0.290323 | 0.214286 | 0.223214 | 0.25 | 0.151786 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006098 | 0.24424 | 434 | 15 | 75 | 28.933333 | 0.676829 | 0.034562 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.222222 | 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 |
1cd907ab46bf5e7c1e490359af974efb8be2e3e9 | 234 | py | Python | code/core/__init__.py | CISSROV/2020-Project-2 | c14bda4e73d81b49047a1712e0d3dd5957ac0fde | [
"MIT"
] | 3 | 2020-01-05T00:53:15.000Z | 2020-01-29T00:40:01.000Z | code/core/__init__.py | CISSROV/2020-Project-2 | c14bda4e73d81b49047a1712e0d3dd5957ac0fde | [
"MIT"
] | null | null | null | code/core/__init__.py | CISSROV/2020-Project-2 | c14bda4e73d81b49047a1712e0d3dd5957ac0fde | [
"MIT"
] | 2 | 2020-01-09T08:41:12.000Z | 2020-09-25T07:55:43.000Z | '''
The core part of the ROV software, connecting the
XBox controller of the base station to the motors
of the ROV. All movement control and communication
happens in this module.
'''
import sys
sys.path.append(sys.path[0] + '/core')
| 23.4 | 50 | 0.752137 | 39 | 234 | 4.512821 | 0.692308 | 0.085227 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005102 | 0.162393 | 234 | 9 | 51 | 26 | 0.892857 | 0.74359 | 0 | 0 | 0 | 0 | 0.096154 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
1cdf7cf201e37d9e5e52048d9b73d15a16f8b3e6 | 196 | py | Python | newvelles_web/config/__init__.py | glhuilli/newvelles_web | 015bfd745182cecef3642194d2f32b71bc5a2cd6 | [
"MIT"
] | null | null | null | newvelles_web/config/__init__.py | glhuilli/newvelles_web | 015bfd745182cecef3642194d2f32b71bc5a2cd6 | [
"MIT"
] | null | null | null | newvelles_web/config/__init__.py | glhuilli/newvelles_web | 015bfd745182cecef3642194d2f32b71bc5a2cd6 | [
"MIT"
] | null | null | null | import configparser
from os import path
def config():
p = path.dirname(path.abspath(__file__))
c = configparser.ConfigParser()
c.read(path.join(p, 'newvelles-web.ini'))
return c
| 19.6 | 45 | 0.688776 | 27 | 196 | 4.851852 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183673 | 196 | 9 | 46 | 21.777778 | 0.81875 | 0 | 0 | 0 | 0 | 0 | 0.086735 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
e802dba6ae083e56e01203a89cedeab90fea37a8 | 4,451 | py | Python | utils/aoc_utils.py | bernikr/advent-of-code | 331e5257b9f812776d0723c7cdec349770498d34 | [
"MIT"
] | 1 | 2020-12-06T13:07:55.000Z | 2020-12-06T13:07:55.000Z | utils/aoc_utils.py | bernikr/advent-of-code | 331e5257b9f812776d0723c7cdec349770498d34 | [
"MIT"
] | null | null | null | utils/aoc_utils.py | bernikr/advent-of-code | 331e5257b9f812776d0723c7cdec349770498d34 | [
"MIT"
] | null | null | null | from __future__ import annotations
import operator
from enum import Enum
from heapq import heappush, heappop
from itertools import product, islice
class Vec(tuple[int, ...]):
def __new__(cls, *args: int | float) -> Vec:
return super().__new__(cls, args)
def __add__(self, other):
return Vec(*... | 32.021583 | 119 | 0.564143 | 643 | 4,451 | 3.799378 | 0.281493 | 0.022923 | 0.022104 | 0.031928 | 0.285714 | 0.234957 | 0.162096 | 0.105608 | 0.105608 | 0.078592 | 0 | 0.05858 | 0.294316 | 4,451 | 138 | 120 | 32.253623 | 0.718879 | 0.021793 | 0 | 0.115385 | 0 | 0 | 0.047105 | 0.008042 | 0 | 0 | 0 | 0 | 0.009615 | 1 | 0.201923 | false | 0 | 0.048077 | 0.125 | 0.519231 | 0.009615 | 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 |
e804036361820623949df105b0e7b85776f533aa | 151 | py | Python | flask/quickslack/extensions.py | BloomTech-Labs/Quick-Slack-ds | 0c45c0d56ec0d3fae24f9f6f2a77bb8fc62a9369 | [
"MIT"
] | 1 | 2020-06-15T01:45:10.000Z | 2020-06-15T01:45:10.000Z | flask/quickslack/extensions.py | BloomTech-Labs/Quick-Slack-ds | 0c45c0d56ec0d3fae24f9f6f2a77bb8fc62a9369 | [
"MIT"
] | null | null | null | flask/quickslack/extensions.py | BloomTech-Labs/Quick-Slack-ds | 0c45c0d56ec0d3fae24f9f6f2a77bb8fc62a9369 | [
"MIT"
] | 1 | 2020-05-23T22:27:22.000Z | 2020-05-23T22:27:22.000Z | from flask_debugtoolbar import DebugToolbarExtension
from flask_sqlalchemy import SQLAlchemy
debug_toolbar = DebugToolbarExtension()
db = SQLAlchemy() | 30.2 | 52 | 0.86755 | 15 | 151 | 8.533333 | 0.6 | 0.140625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.092715 | 151 | 5 | 53 | 30.2 | 0.934307 | 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 |
e8062819201f86758ca27d3e8f0f68c41d6fea06 | 144 | py | Python | solutions/designer_pdf_viewer/sol.py | le-michael/mcp-starter-pack | 5729528b9cfc8726a4cb3fad0923fe06aaea7e33 | [
"MIT"
] | 13 | 2019-05-19T10:46:48.000Z | 2020-08-19T03:19:02.000Z | solutions/designer_pdf_viewer/sol.py | mcp-team/mcp-starter-pack | 5729528b9cfc8726a4cb3fad0923fe06aaea7e33 | [
"MIT"
] | 3 | 2019-06-28T23:26:20.000Z | 2019-09-14T17:32:01.000Z | solutions/designer_pdf_viewer/sol.py | mcp-team/mcp-starter-pack | 5729528b9cfc8726a4cb3fad0923fe06aaea7e33 | [
"MIT"
] | 4 | 2019-06-28T22:54:53.000Z | 2019-08-10T18:20:53.000Z | # Written by: le-michael
sizes = map(int,raw_input().split())
word = raw_input()
print max([sizes[ord(w)-ord('a')] for w in word]) * len(word)
| 24 | 61 | 0.652778 | 26 | 144 | 3.538462 | 0.730769 | 0.173913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131944 | 144 | 5 | 62 | 28.8 | 0.736 | 0.152778 | 0 | 0 | 0 | 0 | 0.008333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e8086cd526a88441d3c747c20e0157cca20bdd83 | 289 | py | Python | config/database.py | Claayton/Flask-app | 9282047781857eeb125afd32968fbf6594885ae7 | [
"MIT"
] | 3 | 2021-08-07T19:44:26.000Z | 2021-11-16T12:27:07.000Z | config/database.py | Claayton/Flask-app | 9282047781857eeb125afd32968fbf6594885ae7 | [
"MIT"
] | 2 | 2021-09-04T13:36:22.000Z | 2021-09-04T13:49:01.000Z | config/database.py | Claayton/Flask-app | 9282047781857eeb125afd32968fbf6594885ae7 | [
"MIT"
] | 1 | 2021-08-31T11:53:29.000Z | 2021-08-31T11:53:29.000Z | import os
from dotenv import load_dotenv
load_dotenv()
database_infos = {
'name_db': os.getenv('DATABASE'),
'username': os.getenv('MYSQL_USERNAME'),
'password': os.getenv('MYSQL_PASSWORD'),
'server': os.getenv('MYSQL_SERVER'),
'secret_key': os.getenv('SECRET_KEY')
}
| 22.230769 | 44 | 0.681661 | 37 | 289 | 5.081081 | 0.432432 | 0.212766 | 0.207447 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148789 | 289 | 12 | 45 | 24.083333 | 0.764228 | 0 | 0 | 0 | 0 | 0 | 0.33564 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.1 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
e815513551856aeb1c97d8d36f8ad281f2dc1d8e | 164 | py | Python | pyrobud/core/bot_mixin_base.py | fakegit/pyrobud | 9626d534dc65b1cb4f93590a49c606c93b82a4e1 | [
"MIT"
] | 2 | 2019-10-24T03:37:33.000Z | 2019-12-23T02:09:10.000Z | pyrobud/core/bot_mixin_base.py | fakegit/pyrobud | 9626d534dc65b1cb4f93590a49c606c93b82a4e1 | [
"MIT"
] | 15 | 2021-11-02T17:39:21.000Z | 2022-03-28T20:01:04.000Z | pyrobud/core/bot_mixin_base.py | fakegit/pyrobud | 9626d534dc65b1cb4f93590a49c606c93b82a4e1 | [
"MIT"
] | 1 | 2020-05-30T20:22:32.000Z | 2020-05-30T20:22:32.000Z | from typing import TYPE_CHECKING, Any
MixinBase: Any
if TYPE_CHECKING:
from .bot import Bot
MixinBase = Bot
else:
import abc
MixinBase = abc.ABC
| 13.666667 | 37 | 0.70122 | 23 | 164 | 4.913043 | 0.478261 | 0.212389 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 164 | 11 | 38 | 14.909091 | 0.918699 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
1c047b3def6148d99d0febe91266d7513f271cda | 160 | py | Python | utils/status.py | nigelbowden/wlanpi-chat-bot | cedab0e83d6e33d47f66c1a3be202564f95ac408 | [
"MIT"
] | null | null | null | utils/status.py | nigelbowden/wlanpi-chat-bot | cedab0e83d6e33d47f66c1a3be202564f95ac408 | [
"MIT"
] | null | null | null | utils/status.py | nigelbowden/wlanpi-chat-bot | cedab0e83d6e33d47f66c1a3be202564f95ac408 | [
"MIT"
] | null | null | null | import os
def get_status():
stream = os.popen('/opt/wlanpi-chat-bot/scripts/probe_status_msg.sh')
startup_msg = stream.read()
return startup_msg
| 17.777778 | 73 | 0.70625 | 24 | 160 | 4.5 | 0.75 | 0.185185 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16875 | 160 | 8 | 74 | 20 | 0.81203 | 0 | 0 | 0 | 0 | 0 | 0.3 | 0.3 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.