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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4e125a4c01c8df887efbbe5d44a6aeddf0ed626c | 8,630 | py | Python | Batch_TextStopWord.py | yuhonghai123/Flok_muitimodal_operators | d938f158d609f76cd81b5a7516faa7babbe81457 | [
"MIT"
] | 1 | 2021-05-29T08:24:28.000Z | 2021-05-29T08:24:28.000Z | Batch_TextStopWord.py | yuhonghai123/Flok_muitimodal_operators | d938f158d609f76cd81b5a7516faa7babbe81457 | [
"MIT"
] | null | null | null | Batch_TextStopWord.py | yuhonghai123/Flok_muitimodal_operators | d938f158d609f76cd81b5a7516faa7babbe81457 | [
"MIT"
] | null | null | null | # encoding=utf-8
import sys, os
from FlokAlgorithmLocal import FlokDataFrame, FlokAlgorithmLocal
import json
import jieba
import nltk
from nltk.corpus import stopwords
from nltk.tokenize import word_tokenize
import pandas as pd
class Batch_TextStopWord(FlokAlgorithmLocal):
def run(self, inputDataSets,... | 110.641026 | 4,815 | 0.620278 | 1,622 | 8,630 | 3.279901 | 0.84402 | 0.022932 | 0.031015 | 0.036842 | 0.039662 | 0.039662 | 0.030639 | 0.029323 | 0.018045 | 0.014662 | 0 | 0.0038 | 0.146118 | 8,630 | 77 | 4,816 | 112.077922 | 0.716651 | 0.039745 | 0 | 0.033898 | 0 | 0.016949 | 0.318892 | 0.234318 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016949 | false | 0 | 0.135593 | 0 | 0.186441 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4e170045be47044a2dda4db6df3ae4aa5f117272 | 574 | py | Python | week_07/tests/test_my_math.py | vlasenckov/MIPT_py_3_term | ffe30371221017d61a22e18300f059d9f7086740 | [
"MIT"
] | 5 | 2020-10-05T15:21:11.000Z | 2020-12-17T19:19:32.000Z | week_07/tests/test_my_math.py | vlasenckov/MIPT_py_3_term | ffe30371221017d61a22e18300f059d9f7086740 | [
"MIT"
] | 8 | 2020-09-24T10:36:15.000Z | 2020-11-30T10:54:56.000Z | week_07/tests/test_my_math.py | vlasenckov/MIPT_py_3_term | ffe30371221017d61a22e18300f059d9f7086740 | [
"MIT"
] | 2 | 2020-10-11T13:08:35.000Z | 2020-12-04T19:54:21.000Z | from my_mathematics.simple_math import MyMath
import math
import pytest
@pytest.mark.parametrize('x', [0, 1, 2, 3, 4, 5, 0.01, 3e-7, 232, 213123, 392, 921])
def test_check_sine(x):
assert math.sin(x) == MyMath.sin(x)
def test_check_pi():
assert round(math.pi, 2) == MyMath.pi
@pytest.mark.parametrize('x', ... | 23.916667 | 84 | 0.65331 | 105 | 574 | 3.47619 | 0.333333 | 0.082192 | 0.172603 | 0.180822 | 0.50411 | 0.50411 | 0.50411 | 0.50411 | 0.50411 | 0.334247 | 0 | 0.117526 | 0.155052 | 574 | 23 | 85 | 24.956522 | 0.635052 | 0 | 0 | 0.266667 | 0 | 0 | 0.005226 | 0 | 0 | 0 | 0 | 0 | 0.266667 | 1 | 0.266667 | false | 0 | 0.2 | 0 | 0.466667 | 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 | 0 | 0 | 0 | 2 |
4e271d262a5491b9974966194def88d93a6961c5 | 373 | py | Python | src/drkns/generation/GenerationTemplate.py | frantzmiccoli/drkns | 75d1259d7430cff2f62a557d9ae8e0826effc1bd | [
"X11"
] | 13 | 2021-05-18T21:30:30.000Z | 2022-03-17T18:16:13.000Z | src/drkns/generation/GenerationTemplate.py | frantzmiccoli/drkns | 75d1259d7430cff2f62a557d9ae8e0826effc1bd | [
"X11"
] | null | null | null | src/drkns/generation/GenerationTemplate.py | frantzmiccoli/drkns | 75d1259d7430cff2f62a557d9ae8e0826effc1bd | [
"X11"
] | null | null | null |
class GenerationTemplate:
def __init__(
self,
source_path: str,
template: str,
group_template: str,
unit_template: str
):
self.source_path: str = source_path
self.template: str = template
self.group_template: str = group_temp... | 23.3125 | 49 | 0.579088 | 38 | 373 | 5.342105 | 0.289474 | 0.325123 | 0.137931 | 0.167488 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.356568 | 373 | 15 | 50 | 24.866667 | 0.845833 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0 | 0 | 0.166667 | 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 | 0 | 0 | 0 | 2 |
4e2cd87278c919f5add5d70e390d11b28fdd9806 | 132 | py | Python | OOP_Python/4_Jueves/calculos/__init__.py | aMurryFly/Old_Courses | d5d105cbdcd3c4a35bf38fc60acfe76ce403bed3 | [
"MIT"
] | null | null | null | OOP_Python/4_Jueves/calculos/__init__.py | aMurryFly/Old_Courses | d5d105cbdcd3c4a35bf38fc60acfe76ce403bed3 | [
"MIT"
] | null | null | null | OOP_Python/4_Jueves/calculos/__init__.py | aMurryFly/Old_Courses | d5d105cbdcd3c4a35bf38fc60acfe76ce403bed3 | [
"MIT"
] | null | null | null | #Son directorios donde se almacenan módulos
'''
1) Crear una carpeta con un archivo __init__.py <- constructor
'''
| 12 | 63 | 0.651515 | 16 | 132 | 5.125 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010309 | 0.265152 | 132 | 10 | 64 | 13.2 | 0.835052 | 0.795455 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
4e383540c73e930de3781f6952a9d448a067f6a4 | 230 | py | Python | tictac/tictac/setup.py | SteveDMurphy/tic_tac_go | 7e80dc1ec6fbeceb3c9879cee7fb32b7ecfe37a7 | [
"MIT"
] | null | null | null | tictac/tictac/setup.py | SteveDMurphy/tic_tac_go | 7e80dc1ec6fbeceb3c9879cee7fb32b7ecfe37a7 | [
"MIT"
] | null | null | null | tictac/tictac/setup.py | SteveDMurphy/tic_tac_go | 7e80dc1ec6fbeceb3c9879cee7fb32b7ecfe37a7 | [
"MIT"
] | null | null | null | from setuptools import setup
setup(
name="tictac",
version="0.1",
py_modules=["cli"],
install_requires=[
"Click",
],
entry_points="""
[console_scripts]
tictac=cli:tictac
""",
)
| 15.333333 | 28 | 0.543478 | 23 | 230 | 5.26087 | 0.826087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012422 | 0.3 | 230 | 14 | 29 | 16.428571 | 0.73913 | 0 | 0 | 0 | 0 | 0 | 0.321739 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.076923 | 0 | 0.076923 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9d68b8f97af4b31c3ebc01950b3c1de8d16cff3c | 3,504 | py | Python | tests/ml_utils/test_plot_cv_indices.py | jameshtwose/jmspack | b226519c1b8a0007f3d59eb8117234e63194d745 | [
"BSD-3-Clause"
] | null | null | null | tests/ml_utils/test_plot_cv_indices.py | jameshtwose/jmspack | b226519c1b8a0007f3d59eb8117234e63194d745 | [
"BSD-3-Clause"
] | 4 | 2021-03-21T14:46:19.000Z | 2021-12-21T09:33:56.000Z | tests/ml_utils/test_plot_cv_indices.py | jameshtwose/jmspack | b226519c1b8a0007f3d59eb8117234e63194d745 | [
"BSD-3-Clause"
] | null | null | null | # import matplotlib
# import matplotlib.pyplot as plt
# import pytest
# import seaborn as sns
#
# from jmspack.ml_utils import plot_cv_indices
#
#
# @pytest.fixture
# def df_test():
# """test dataset from seaborn"""
# return sns.load_dataset("iris")
#
#
# class TestPlotCvIndices:
# """Testing class to test ... | 41.223529 | 99 | 0.543094 | 430 | 3,504 | 4.234884 | 0.288372 | 0.056013 | 0.065898 | 0.032949 | 0.450851 | 0.450851 | 0.450851 | 0.420099 | 0.400329 | 0.368479 | 0 | 0.02384 | 0.329623 | 3,504 | 84 | 100 | 41.714286 | 0.751384 | 0.950628 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9d69659f81d75e4acb554702a6e9d3090d940e3d | 4,350 | py | Python | spirit.py | electric-blue-green/micro-spirit | 8d61250d710c9f4f28e6e215593d34d6facf5b4e | [
"MIT"
] | 1 | 2021-06-05T03:12:53.000Z | 2021-06-05T03:12:53.000Z | spirit.py | aejb/micro-spirit | 8d61250d710c9f4f28e6e215593d34d6facf5b4e | [
"MIT"
] | 1 | 2017-09-28T08:27:41.000Z | 2017-09-28T08:27:41.000Z | spirit.py | aejb/micro-spirit | 8d61250d710c9f4f28e6e215593d34d6facf5b4e | [
"MIT"
] | 2 | 2017-09-28T08:09:19.000Z | 2017-09-29T08:43:32.000Z | from microbit import *
# Images
# /
r_roll = Image("00009:" "00090:" "00900:" "09000:" "90000")
# -
c_roll = Image("00000:" "00000:" "99999:" "00000:" "00000")
# \
l_roll = Image("90000:" "09000:" "00900:" "00090:" "00009")
# \-\
l_h_roll = Image("00000:" "90000:" "09990:" "00009:" "00000")
# /-/
r_h_roll = Image("0000... | 36.864407 | 62 | 0.470575 | 532 | 4,350 | 3.704887 | 0.12594 | 0.192796 | 0.289193 | 0.21106 | 0.506849 | 0.504313 | 0.419077 | 0.366312 | 0.334855 | 0.30898 | 0 | 0.182294 | 0.384598 | 4,350 | 117 | 63 | 37.179487 | 0.553978 | 0.042759 | 0 | 0.47619 | 0 | 0 | 0.071014 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.009524 | 0.009524 | 0 | 0.009524 | 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 | 0 | 0 | 0 | 2 |
9d79eea16be8de87daee1bd2d2619d3525130748 | 154 | py | Python | Flask API/post_test.py | exodustw/NYCU-E3-CAPTCHA-Autowrite | 73d8e155911e5f36d9a9c5e736e8cb57c8651fc3 | [
"CC-BY-3.0"
] | null | null | null | Flask API/post_test.py | exodustw/NYCU-E3-CAPTCHA-Autowrite | 73d8e155911e5f36d9a9c5e736e8cb57c8651fc3 | [
"CC-BY-3.0"
] | null | null | null | Flask API/post_test.py | exodustw/NYCU-E3-CAPTCHA-Autowrite | 73d8e155911e5f36d9a9c5e736e8cb57c8651fc3 | [
"CC-BY-3.0"
] | null | null | null | import requests
url = 'http://127.0.0.1:5000/e3autologin'
files = {'file': open('0009.png', 'rb')}
rq = requests.post(url, files=files)
print(rq.text)
| 17.111111 | 41 | 0.662338 | 25 | 154 | 4.08 | 0.76 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.110294 | 0.116883 | 154 | 8 | 42 | 19.25 | 0.639706 | 0 | 0 | 0 | 0 | 0 | 0.305195 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9d9498fb7571470bbc851bf623ae21ecda187300 | 46,595 | py | Python | __WXFB_BLR_LMGR.py | daakru/BLReLM | ad1001c101821356abff711c1ed4d3178a77baa7 | [
"MIT"
] | null | null | null | __WXFB_BLR_LMGR.py | daakru/BLReLM | ad1001c101821356abff711c1ed4d3178a77baa7 | [
"MIT"
] | null | null | null | __WXFB_BLR_LMGR.py | daakru/BLReLM | ad1001c101821356abff711c1ed4d3178a77baa7 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
###########################################################################
## Python code generated with wxFormBuilder (version 3.10.0-35-gd79d7781)
## http://www.wxformbuilder.org/
##
## PLEASE DO *NOT* EDIT THIS FILE!
##########################################################################... | 50.318575 | 198 | 0.72819 | 6,207 | 46,595 | 5.15692 | 0.056549 | 0.082945 | 0.07098 | 0.083102 | 0.813771 | 0.661814 | 0.559561 | 0.496298 | 0.363023 | 0.263457 | 0 | 0.030332 | 0.168623 | 46,595 | 925 | 199 | 50.372973 | 0.795963 | 0.005365 | 0 | 0.115 | 1 | 0 | 0.00441 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111667 | false | 0.001667 | 0.008333 | 0 | 0.121667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 2 |
9d98e6f2359c70626136cd7b96f24ec664668729 | 74 | py | Python | poem.py | hvoort/mashup | 50dc81ed21707f2032670144de80ca9d96288359 | [
"MIT"
] | null | null | null | poem.py | hvoort/mashup | 50dc81ed21707f2032670144de80ca9d96288359 | [
"MIT"
] | null | null | null | poem.py | hvoort/mashup | 50dc81ed21707f2032670144de80ca9d96288359 | [
"MIT"
] | null | null | null | from lights import *
open_car()
horn()
start_engine()
stop_engine()
| 6.166667 | 20 | 0.689189 | 10 | 74 | 4.8 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.189189 | 74 | 11 | 21 | 6.727273 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 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 | 2 |
9d9c26447bfe565fc280d4204f8b5cc00c70b3c4 | 142 | py | Python | 2382.py | ShawonBarman/URI-Online-judge-Ad-Hoc-level-problem-solution-in-python | 9a0f0ad5efd4a9e73589c357ab4b34b7c73a11da | [
"MIT"
] | 1 | 2022-01-14T08:45:32.000Z | 2022-01-14T08:45:32.000Z | 2382.py | ShawonBarman/URI-Online-judge-Ad-Hoc-level-problem-solution-in-python | 9a0f0ad5efd4a9e73589c357ab4b34b7c73a11da | [
"MIT"
] | null | null | null | 2382.py | ShawonBarman/URI-Online-judge-Ad-Hoc-level-problem-solution-in-python | 9a0f0ad5efd4a9e73589c357ab4b34b7c73a11da | [
"MIT"
] | null | null | null | import math
l, a, p, r = map(int, input().split())
dia = math.sqrt((l*l)+(a*a)+(p*p))
if dia <= 2*r:
print("S")
else:
print("N") | 20.285714 | 39 | 0.492958 | 28 | 142 | 2.5 | 0.642857 | 0.057143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009091 | 0.225352 | 142 | 7 | 40 | 20.285714 | 0.627273 | 0 | 0 | 0 | 0 | 0 | 0.014599 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.285714 | 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 | 0 | 0 | 2 |
9d9f3b79e2a3d5c5392ba0cddc7547927747b4b6 | 1,673 | py | Python | apps/watch/main.py | cr0mbly/TTGO-esp32-micropython-watch | 3378ea3b15e19f6bab405b6fc07759f17dd6213d | [
"MIT"
] | 6 | 2020-09-10T20:04:49.000Z | 2021-10-10T06:26:05.000Z | apps/watch/main.py | cr0mbly/TTGO-esp32-micropython-watch | 3378ea3b15e19f6bab405b6fc07759f17dd6213d | [
"MIT"
] | null | null | null | apps/watch/main.py | cr0mbly/TTGO-esp32-micropython-watch | 3378ea3b15e19f6bab405b6fc07759f17dd6213d | [
"MIT"
] | null | null | null | from st7789 import BLACK, WHITE
import vga1_8x8 as font
from apps.utils import BaseApp
SECOND_TO_TRIGGER_DISPLAY_UPDATE = 59
SECOND_TO_RESET_DISPLAY_UPDATE = 0
class WatchDisplay(BaseApp):
has_already_updated = False
def setup(self):
self.lcd_display.enable_screen()
self.display_time()
... | 23.9 | 70 | 0.641363 | 203 | 1,673 | 4.995074 | 0.29064 | 0.086785 | 0.12426 | 0.138067 | 0.395464 | 0.255424 | 0.255424 | 0 | 0 | 0 | 0 | 0.020886 | 0.284519 | 1,673 | 69 | 71 | 24.246377 | 0.826232 | 0 | 0 | 0.264151 | 0 | 0 | 0.000598 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.207547 | false | 0 | 0.056604 | 0.150943 | 0.490566 | 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 | 0 | 0 | 0 | 2 |
9dae0cb4d7df90ee936d3228545e48c4e9063a9f | 1,173 | py | Python | aj-accountant.py | Llona/aj-accountant | a367a3629f953a29bf0b4ee3930e46119b360a6c | [
"Apache-2.0"
] | null | null | null | aj-accountant.py | Llona/aj-accountant | a367a3629f953a29bf0b4ee3930e46119b360a6c | [
"Apache-2.0"
] | null | null | null | aj-accountant.py | Llona/aj-accountant | a367a3629f953a29bf0b4ee3930e46119b360a6c | [
"Apache-2.0"
] | null | null | null | # -*- coding: UTF-8 -*-
import openpyxl
import shutil
import os
import const_define
# active sheet name
# print(workbook.active)
# load excel file
workbook = openpyxl.load_workbook(const_define.DETAILED_LEDGER_FULL_PATH, data_only=True)
# get all sheet name
# worksheets = workbook.get_sheet_names()
worksheets = tupl... | 27.27907 | 89 | 0.739983 | 167 | 1,173 | 5.047904 | 0.353293 | 0.201661 | 0.071174 | 0.109134 | 0.355872 | 0.355872 | 0.355872 | 0.182681 | 0.182681 | 0.182681 | 0 | 0.006763 | 0.117647 | 1,173 | 42 | 90 | 27.928571 | 0.807729 | 0.641091 | 0 | 0 | 0 | 0 | 0.010025 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 0 | 0.307692 | 0.230769 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
9db4c960164ee219588ac7778e637683a166e153 | 597 | py | Python | celery-demo/celery_app/tasks.py | twtrubiks/docker-django-celery-tutorial | 4f9a1c897ad0c4c7f2d5cd0406e9d055281ad810 | [
"MIT"
] | 45 | 2018-03-04T18:55:52.000Z | 2022-01-14T01:41:53.000Z | celery-demo/celery_app/tasks.py | twtrubiks/docker-django-celery-tutorial | 4f9a1c897ad0c4c7f2d5cd0406e9d055281ad810 | [
"MIT"
] | 3 | 2018-05-31T17:37:26.000Z | 2021-01-11T09:54:16.000Z | celery-demo/celery_app/tasks.py | twtrubiks/docker-django-celery-tutorial | 4f9a1c897ad0c4c7f2d5cd0406e9d055281ad810 | [
"MIT"
] | 10 | 2018-03-04T16:32:27.000Z | 2021-11-21T15:16:00.000Z | import time
from celery import chain
from celery_app import app
@app.task
def add(x, y):
return x + y
'''
ref. http://docs.celeryq.org/en/latest/userguide/tasks.html#avoid-launching-synchronous-subtasks
'''
def chain_demo(x, y):
# add_demo -> mul_demo -> insert_db_demo
chain(add_demo.s(x, y), mul_d... | 15.710526 | 96 | 0.666667 | 102 | 597 | 3.754902 | 0.382353 | 0.041775 | 0.078329 | 0.067885 | 0.16188 | 0.16188 | 0.16188 | 0.16188 | 0.16188 | 0.16188 | 0 | 0.00818 | 0.180905 | 597 | 37 | 97 | 16.135135 | 0.775051 | 0.065327 | 0 | 0.368421 | 0 | 0 | 0.04646 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.263158 | false | 0 | 0.157895 | 0.052632 | 0.578947 | 0.052632 | 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 | 0 | 1 | 0 | 0 | 2 |
9dbc58906a8183ba8e298317d7256bb87acade34 | 2,025 | py | Python | log_async/stats.py | stevelr/python-log-async | 76ce1247647a013caba04257a42e8c451998a8ee | [
"MIT"
] | null | null | null | log_async/stats.py | stevelr/python-log-async | 76ce1247647a013caba04257a42e8c451998a8ee | [
"MIT"
] | null | null | null | log_async/stats.py | stevelr/python-log-async | 76ce1247647a013caba04257a42e8c451998a8ee | [
"MIT"
] | null | null | null | # stat counters for logging handlers
try:
from prometheus_client import Counter, Gauge
except ImportError:
# to avoid a forced dependency on prometheus_client,
# use a super-minimalist implementation of counter.
# since these are used within same thread, no mutexes are needed.
class Value:
... | 27 | 88 | 0.602963 | 266 | 2,025 | 4.406015 | 0.338346 | 0.03413 | 0.035836 | 0.059727 | 0.06314 | 0.032423 | 0.032423 | 0 | 0 | 0 | 0 | 0.007571 | 0.282469 | 2,025 | 74 | 89 | 27.364865 | 0.799036 | 0.138272 | 0 | 0.081633 | 0 | 0 | 0.081081 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.306122 | false | 0.020408 | 0.040816 | 0.040816 | 0.510204 | 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 | 0 | 1 | 0 | 0 | 2 |
9dc47482a2e08888d340cc65ce103d2bbea2ee82 | 911 | py | Python | Models/nn/DiagLayer.py | ianxmason/Fewshot_Learning_of_Homogeneous_Human_Locomotion_Styles | 7fc993e9f918d30cfc19b6560963d7d7358209e1 | [
"MIT"
] | 25 | 2019-01-03T20:10:41.000Z | 2022-03-21T06:42:51.000Z | Models/nn/DiagLayer.py | ianxmason/Fewshot_Learning_of_Homogeneous_Human_Locomotion_Styles | 7fc993e9f918d30cfc19b6560963d7d7358209e1 | [
"MIT"
] | null | null | null | Models/nn/DiagLayer.py | ianxmason/Fewshot_Learning_of_Homogeneous_Human_Locomotion_Styles | 7fc993e9f918d30cfc19b6560963d7d7358209e1 | [
"MIT"
] | 1 | 2019-03-06T23:39:49.000Z | 2019-03-06T23:39:49.000Z | import numpy as np
import theano
import theano.tensor as T
from theano.tensor.shared_randomstreams import RandomStreams
from Layer import Layer
class DiagLayer(Layer):
def __init__(self, weights_shape, rng=np.random, gamma=0.01):
assert weights_shape[-2] == 1 # Diagonal weight matrix is the same as taki... | 29.387097 | 148 | 0.644347 | 127 | 911 | 4.496063 | 0.535433 | 0.084063 | 0.045534 | 0.06655 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01034 | 0.256861 | 911 | 31 | 149 | 29.387097 | 0.833087 | 0.148189 | 0 | 0 | 0 | 0 | 0.001294 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 1 | 0.157895 | false | 0 | 0.263158 | 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 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
9dd8a3dcff8b5e6350fcf5cc34483e0164acbf82 | 56 | py | Python | Strings/Triple_Quoted_Strings.py | obareau/python_travaux_pratiques | 2205f4c253e96e409b56f5c23d6e23387ab46524 | [
"MIT"
] | 1 | 2021-11-01T12:45:50.000Z | 2021-11-01T12:45:50.000Z | Strings/Triple_Quoted_Strings.py | obareau/python_travaux_pratiques | 2205f4c253e96e409b56f5c23d6e23387ab46524 | [
"MIT"
] | null | null | null | Strings/Triple_Quoted_Strings.py | obareau/python_travaux_pratiques | 2205f4c253e96e409b56f5c23d6e23387ab46524 | [
"MIT"
] | null | null | null | text = """first row
second row
third row"""
print(text) | 11.2 | 19 | 0.678571 | 9 | 56 | 4.222222 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.160714 | 56 | 5 | 20 | 11.2 | 0.808511 | 0 | 0 | 0 | 0 | 0 | 0.526316 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 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 | 0 | 0 | 2 |
9de05726b18a48aa8bb64f9718ce6b019dddac57 | 340 | py | Python | indra/sources/isi/__init__.py | zebulon2/indra | 7727ddcab52ad8012eb6592635bfa114e904bd48 | [
"BSD-2-Clause"
] | 136 | 2016-02-11T22:06:37.000Z | 2022-03-31T17:26:20.000Z | indra/sources/isi/__init__.py | zebulon2/indra | 7727ddcab52ad8012eb6592635bfa114e904bd48 | [
"BSD-2-Clause"
] | 748 | 2016-02-03T16:27:56.000Z | 2022-03-09T14:27:54.000Z | indra/sources/isi/__init__.py | zebulon2/indra | 7727ddcab52ad8012eb6592635bfa114e904bd48 | [
"BSD-2-Clause"
] | 56 | 2015-08-28T14:03:44.000Z | 2022-02-04T06:15:55.000Z | """
This module provides an input interface and processor to the ISI reading
system.
The reader is set up to run within a Docker container.
For the ISI reader to run, set the Docker memory and swap space to the maximum.
"""
from .api import process_text, process_nxml, process_preprocessed, \
process_output_folder... | 30.909091 | 79 | 0.785294 | 55 | 340 | 4.727273 | 0.690909 | 0.038462 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.167647 | 340 | 10 | 80 | 34 | 0.918728 | 0.635294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
9de1b7ae0c9d7b9b421ab7c15947bb373739bf2a | 317 | py | Python | crawl_trulia/__init__.py | MacHu-GWU/crawl_trulia-project | 2e089442be5fa006f7d8ee00395446cbbfe711e9 | [
"MIT"
] | 1 | 2018-03-11T01:56:16.000Z | 2018-03-11T01:56:16.000Z | crawl_trulia/__init__.py | MacHu-GWU/crawl_trulia-project | 2e089442be5fa006f7d8ee00395446cbbfe711e9 | [
"MIT"
] | null | null | null | crawl_trulia/__init__.py | MacHu-GWU/crawl_trulia-project | 2e089442be5fa006f7d8ee00395446cbbfe711e9 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
__version__ = "0.0.4"
__author__ = "Sanhe Hu"
__license__ = "MIT"
__short_description__ = "Trulia Crawler Tool Set"
try:
from .urlencoder import urlencoder as trulia_urlencoder
from .htmlparser import htmlparser as trulia_htmlparser
except ImportError:
pass | 24.384615 | 59 | 0.735016 | 40 | 317 | 5.35 | 0.75 | 0.074766 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015094 | 0.164038 | 317 | 13 | 60 | 24.384615 | 0.792453 | 0.132492 | 0 | 0 | 0 | 0 | 0.142336 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.111111 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 2 |
9dfa5699a1409df51a017cce04c4f141c661f9f1 | 532 | py | Python | base/forms.py | vishnusayanth/django-app | 6f95f3140188d5cdeb260b66b2b8fdfffc8cf52b | [
"MIT"
] | null | null | null | base/forms.py | vishnusayanth/django-app | 6f95f3140188d5cdeb260b66b2b8fdfffc8cf52b | [
"MIT"
] | null | null | null | base/forms.py | vishnusayanth/django-app | 6f95f3140188d5cdeb260b66b2b8fdfffc8cf52b | [
"MIT"
] | null | null | null | from django import forms
from base.models import Developer
class RegistrationForm(forms.ModelForm):
password = forms.CharField(widget=forms.PasswordInput())
password2 = forms.CharField(widget=forms.PasswordInput())
class Meta:
model = Developer
fields = 'username', 'password', 'password2... | 29.555556 | 69 | 0.680451 | 57 | 532 | 6.210526 | 0.54386 | 0.079096 | 0.112994 | 0.141243 | 0.214689 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004684 | 0.197368 | 532 | 17 | 70 | 31.294118 | 0.824356 | 0 | 0 | 0 | 0 | 0 | 0.078947 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.25 | 0.166667 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
3b02763f40d9a8c733145bc1025dfe89a4d187c0 | 1,370 | py | Python | tests/register_test.py | ClementWalter/pandas-addons | 3965e19f374aa8f6d38f9a0047e71e8a27bacb1a | [
"MIT"
] | 2 | 2021-01-01T16:00:22.000Z | 2021-02-10T08:36:54.000Z | tests/register_test.py | ClementWalter/pandas-addons | 3965e19f374aa8f6d38f9a0047e71e8a27bacb1a | [
"MIT"
] | 4 | 2020-12-21T17:06:39.000Z | 2021-01-27T18:09:38.000Z | tests/register_test.py | ClementWalter/pandas-addons | 3965e19f374aa8f6d38f9a0047e71e8a27bacb1a | [
"MIT"
] | null | null | null | import itertools
from unittest.mock import patch
import pytest
from pandas_addons.register import DEFAULT_PANDAS_OBJECTS, accessors, register
class TestRegister:
def test_should_return_input_function(self):
def accessor():
pass
assert accessor == register()(accessor)
@patch.dic... | 28.541667 | 91 | 0.667883 | 154 | 1,370 | 5.681818 | 0.331169 | 0.133714 | 0.114286 | 0.065143 | 0.401143 | 0.401143 | 0.401143 | 0.401143 | 0.340571 | 0.283429 | 0 | 0.000961 | 0.240146 | 1,370 | 47 | 92 | 29.148936 | 0.839577 | 0 | 0 | 0.382353 | 0 | 0 | 0.027737 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 1 | 0.235294 | false | 0.117647 | 0.117647 | 0 | 0.382353 | 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 | 0 | 0 | 0 | 2 |
3b03e13769cfd86c85788b11953c3338fbd323d8 | 232 | py | Python | app/main/error.py | Waithera-m/partage | 293905385839b7c36847a46c91e142cb2df2a3ae | [
"Unlicense"
] | null | null | null | app/main/error.py | Waithera-m/partage | 293905385839b7c36847a46c91e142cb2df2a3ae | [
"Unlicense"
] | null | null | null | app/main/error.py | Waithera-m/partage | 293905385839b7c36847a46c91e142cb2df2a3ae | [
"Unlicense"
] | 1 | 2021-08-06T05:54:25.000Z | 2021-08-06T05:54:25.000Z | from flask import render_template
from . import main
@main.app_errorhandler(404)
def lost_not_found(error):
'''
Function renders 404 page if user enters and invalid url
'''
return render_template('error.html'),404 | 21.090909 | 60 | 0.728448 | 33 | 232 | 4.969697 | 0.757576 | 0.170732 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 0.185345 | 232 | 11 | 61 | 21.090909 | 0.820106 | 0.241379 | 0 | 0 | 0 | 0 | 0.062112 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
d1786dfa704fa4cac3a7a01c36b29219d15878f2 | 15,417 | py | Python | src/polyswarm/formatters/text.py | polyswarm/polyswarm-cli | f783b77180a7436bc993171b46691a223f175260 | [
"MIT"
] | 2 | 2021-04-14T01:42:48.000Z | 2022-03-12T16:20:23.000Z | src/polyswarm/formatters/text.py | polyswarm/polyswarm-cli | f783b77180a7436bc993171b46691a223f175260 | [
"MIT"
] | 11 | 2019-10-22T23:23:27.000Z | 2021-06-07T21:40:10.000Z | src/polyswarm/formatters/text.py | polyswarm/polyswarm-cli | f783b77180a7436bc993171b46691a223f175260 | [
"MIT"
] | 1 | 2021-04-26T10:58:01.000Z | 2021-04-26T10:58:01.000Z | from __future__ import absolute_import, unicode_literals
import sys
import functools
import json
import click
from polyswarm.formatters import base
def is_grouped(fn):
@functools.wraps(fn)
def wrapper(self, text):
return self._depth*'\t'+fn(self, text)
return wrapper
class TextOutput(base.Bas... | 46.020896 | 121 | 0.607252 | 1,721 | 15,417 | 5.285299 | 0.117374 | 0.146438 | 0.188215 | 0.21471 | 0.574758 | 0.476913 | 0.442172 | 0.353452 | 0.314534 | 0.256926 | 0 | 0.004543 | 0.228968 | 15,417 | 334 | 122 | 46.158683 | 0.760663 | 0.001362 | 0 | 0.30742 | 0 | 0 | 0.145326 | 0.01884 | 0 | 0 | 0 | 0 | 0.056537 | 1 | 0.095406 | false | 0 | 0.021201 | 0.021201 | 0.212014 | 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 | 0 | 0 | 0 | 2 |
d17f405e79a4111ff94ffedb4d4b111b78f9db83 | 11,014 | py | Python | lupa/tests/fixtures/osmapi.py | MinisterioPublicoRJ/api-cadg | a8998c4c234a65192f1dca8ea9a17a1d4a496556 | [
"MIT"
] | 6 | 2020-02-11T18:45:58.000Z | 2020-05-26T12:37:28.000Z | lupa/tests/fixtures/osmapi.py | MinisterioPublicoRJ/api-cadg | a8998c4c234a65192f1dca8ea9a17a1d4a496556 | [
"MIT"
] | 120 | 2019-07-01T14:45:32.000Z | 2022-01-25T19:10:16.000Z | lupa/tests/fixtures/osmapi.py | MinisterioPublicoRJ/apimpmapas | 196ad25a4922448b8ae7a66012a2843c7b7194ad | [
"MIT"
] | null | null | null | default_response = {
"features":[
{
"geometry":{
"coordinates":[
-43.21986610772104,
-22.8049732
],
"type":"Point"
},
"type":"Feature",
"properties":{
"osm_id":5519132,
"osm_type":"R",
... | 25.088838 | 54 | 0.352914 | 728 | 11,014 | 5.254121 | 0.292582 | 0.089412 | 0.05098 | 0.078431 | 0.52 | 0.46719 | 0.346144 | 0.206013 | 0.155033 | 0.071895 | 0 | 0.209736 | 0.498275 | 11,014 | 439 | 55 | 25.088838 | 0.482447 | 0 | 0 | 0.533181 | 0 | 0 | 0.259192 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d185a75ca724404968ce70d2fa05c5da741b28f1 | 405 | py | Python | FastDetector/MobiNetV3_test.py | Yoshi-E/Object-Localizer-Project | 0f55009581d207cce6345a3e2c44a8a91c9bb3c4 | [
"MIT"
] | null | null | null | FastDetector/MobiNetV3_test.py | Yoshi-E/Object-Localizer-Project | 0f55009581d207cce6345a3e2c44a8a91c9bb3c4 | [
"MIT"
] | null | null | null | FastDetector/MobiNetV3_test.py | Yoshi-E/Object-Localizer-Project | 0f55009581d207cce6345a3e2c44a8a91c9bb3c4 | [
"MIT"
] | null | null | null | from models import MobiNetV3
from models.Core import Config
import os
from glob import glob
config = Config()
model = MobiNetV3.FastModel(config)
config.WEIGHTS_FILE = "weights/MobiNetV3/weight-0.73.h5"
if __name__ == "__main__":
#model.test_image("FastDetector/datasets/10_rosbag/images/1565608339175915704.jpg")
... | 33.75 | 87 | 0.785185 | 55 | 405 | 5.545455 | 0.545455 | 0.065574 | 0.144262 | 0.183607 | 0.222951 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090164 | 0.096296 | 405 | 12 | 88 | 33.75 | 0.743169 | 0.202469 | 0 | 0 | 0 | 0 | 0.260062 | 0.235294 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.444444 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
d1b73ff270948dd25b6790bf70638bfb1737da03 | 1,391 | py | Python | recipes/Python/577810_Named_Values/recipe-577810.py | tdiprima/code | 61a74f5f93da087d27c70b2efe779ac6bd2a3b4f | [
"MIT"
] | 2,023 | 2017-07-29T09:34:46.000Z | 2022-03-24T08:00:45.000Z | recipes/Python/577810_Named_Values/recipe-577810.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 32 | 2017-09-02T17:20:08.000Z | 2022-02-11T17:49:37.000Z | recipes/Python/577810_Named_Values/recipe-577810.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 780 | 2017-07-28T19:23:28.000Z | 2022-03-25T20:39:41.000Z | class NamedValue:
# defining __slots__ in a mixin doesn't play nicely with builtin types
# so a low overhead approach would have to use collections.namedtuple
# style templated code generation
def __new__(cls, *args, **kwds):
name, *args = args
self = super().__new__(cls, *args, **kwds)
... | 28.979167 | 74 | 0.576564 | 159 | 1,391 | 4.660377 | 0.477987 | 0.043185 | 0.026991 | 0.037787 | 0.053981 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033266 | 0.286844 | 1,391 | 47 | 75 | 29.595745 | 0.71371 | 0.212078 | 0 | 0.153846 | 0 | 0 | 0.02112 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.051282 | 0.025641 | null | null | 0.051282 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
d1c06633080b95b9f09cc4bc498d48dcbca6fbb3 | 17,362 | py | Python | tests.py | joemeister/httpagentparser | fcb9eb9c015f05554511890787432d51eca81397 | [
"MIT"
] | null | null | null | tests.py | joemeister/httpagentparser | fcb9eb9c015f05554511890787432d51eca81397 | [
"MIT"
] | null | null | null | tests.py | joemeister/httpagentparser | fcb9eb9c015f05554511890787432d51eca81397 | [
"MIT"
] | null | null | null | import unittest
import time
import httpagentparser
detect = httpagentparser.detect
simple_detect = httpagentparser.simple_detect
data = (
# tuple of tuples
# tuple (agent-string, expected result of simple_detect, expected result of detect)
("Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Ge... | 77.856502 | 237 | 0.602638 | 2,650 | 17,362 | 3.924151 | 0.114717 | 0.009424 | 0.03635 | 0.026926 | 0.546206 | 0.455909 | 0.389557 | 0.314261 | 0.271084 | 0.213771 | 0 | 0.108945 | 0.143013 | 17,362 | 222 | 238 | 78.207207 | 0.589959 | 0.006048 | 0 | 0.056872 | 0 | 0.251185 | 0.647192 | 0.018142 | 0 | 0 | 0 | 0 | 0.052133 | 1 | 0.028436 | false | 0 | 0.014218 | 0 | 0.047393 | 0.009479 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d1cc0e41e7a7df9b1cc86387c023f77ddf3a66e4 | 13,344 | py | Python | src/tuh_sz_download.py | xsthunder/TUH_EEG_Seizure_Detection | e19b9b788eda26db83269e5a076afa115b2d1db4 | [
"CC0-1.0"
] | null | null | null | src/tuh_sz_download.py | xsthunder/TUH_EEG_Seizure_Detection | e19b9b788eda26db83269e5a076afa115b2d1db4 | [
"CC0-1.0"
] | null | null | null | src/tuh_sz_download.py | xsthunder/TUH_EEG_Seizure_Detection | e19b9b788eda26db83269e5a076afa115b2d1db4 | [
"CC0-1.0"
] | 1 | 2021-06-29T12:33:40.000Z | 2021-06-29T12:33:40.000Z | # -*- coding: utf-8 -*-
"""TUH_SZ-Download.ipynb.
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1kc3U4ZxCUJ6PEeQFa9VTqNdeJPNmHXn0
http://python.omics.wiki/multiprocessing_map/multiprocessing_partial_function_multiple_arguments
"""
import multiprocessing a... | 28.33121 | 96 | 0.578312 | 1,697 | 13,344 | 4.426635 | 0.182675 | 0.027556 | 0.01065 | 0.014643 | 0.305112 | 0.278621 | 0.24401 | 0.216054 | 0.202343 | 0.180777 | 0 | 0.006127 | 0.327263 | 13,344 | 470 | 97 | 28.391489 | 0.830678 | 0.313924 | 0 | 0.29588 | 1 | 0 | 0.116643 | 0.010906 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037453 | false | 0.059925 | 0.033708 | 0 | 0.089888 | 0.037453 | 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 | 0 | 0 | 0 | 2 |
d1cee85492b347a562ae4ceb85089522980546dd | 145 | py | Python | ex016.py | honeyhugh/PythonCurso | e5b8efe04e100ea0b0c0aacde1caf7ae52489f40 | [
"MIT"
] | null | null | null | ex016.py | honeyhugh/PythonCurso | e5b8efe04e100ea0b0c0aacde1caf7ae52489f40 | [
"MIT"
] | null | null | null | ex016.py | honeyhugh/PythonCurso | e5b8efe04e100ea0b0c0aacde1caf7ae52489f40 | [
"MIT"
] | null | null | null | from math import trunc
num=float(input('Digite um número: '))
truncado=trunc(num)
print('O resultado truncado de {} é {}.'.format(num,truncado))
| 29 | 62 | 0.724138 | 22 | 145 | 4.772727 | 0.772727 | 0.152381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.110345 | 145 | 4 | 63 | 36.25 | 0.813953 | 0 | 0 | 0 | 0 | 0 | 0.344828 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 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 | 0 | 0 | 2 |
060cab58f46b546922772181541be5490ef229de | 206 | py | Python | Codeforces/B_Multiplication_Table.py | anubhab-code/Competitive-Programming | de28cb7d44044b9e7d8bdb475da61e37c018ac35 | [
"MIT"
] | null | null | null | Codeforces/B_Multiplication_Table.py | anubhab-code/Competitive-Programming | de28cb7d44044b9e7d8bdb475da61e37c018ac35 | [
"MIT"
] | null | null | null | Codeforces/B_Multiplication_Table.py | anubhab-code/Competitive-Programming | de28cb7d44044b9e7d8bdb475da61e37c018ac35 | [
"MIT"
] | null | null | null | n = int(input())
arr = [list(map(int,input().split())) for i in range(n)]
ans = [0]*n
ans[0] = int(pow((arr[0][1]*arr[0][2])//arr[1][2], 0.5))
for i in range(1,n):
ans[i]=(arr[0][i]//ans[0])
print(*ans) | 29.428571 | 56 | 0.533981 | 47 | 206 | 2.340426 | 0.382979 | 0.109091 | 0.109091 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072222 | 0.126214 | 206 | 7 | 57 | 29.428571 | 0.538889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ae2fe6ccc4d81d36fc6121d49060a96b53770f30 | 2,110 | py | Python | src/sportsdata/nba/teams/__init__.py | OrangeCardinal/sportsdata | e6e182e89c8f8a12ffe18b218a37b8bdb8971e03 | [
"Apache-2.0"
] | null | null | null | src/sportsdata/nba/teams/__init__.py | OrangeCardinal/sportsdata | e6e182e89c8f8a12ffe18b218a37b8bdb8971e03 | [
"Apache-2.0"
] | null | null | null | src/sportsdata/nba/teams/__init__.py | OrangeCardinal/sportsdata | e6e182e89c8f8a12ffe18b218a37b8bdb8971e03 | [
"Apache-2.0"
] | null | null | null | from .atlanta_hawks import AtlantaHawks
from .boston_celtics import BostonCeltics
from .brooklyn_nets import BrooklynNets
from .chicago_bulls import ChicagoBulls
from .cleveland_cavaliers import ClevelandCavaliers
from .denver_nuggets import DenverNuggets
... | 58.611111 | 109 | 0.745498 | 176 | 2,110 | 8.715909 | 0.517045 | 0.009126 | 0.018253 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003557 | 0.200474 | 2,110 | 35 | 110 | 60.285714 | 0.90575 | 0 | 0 | 0 | 0 | 0 | 0.19763 | 0.019905 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.823529 | 0 | 0.823529 | 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 | 0 | 1 | 0 | 0 | 2 |
ae3b5c33fb49bccecb1cb2c3dd69aa41885ac437 | 1,493 | py | Python | dockit/tests/backends/common.py | zbyte64/django-dockit | 8d00a46cb0b6237de622fcb6816067078106a0c4 | [
"BSD-3-Clause"
] | 5 | 2015-02-25T17:01:48.000Z | 2021-06-03T07:46:47.000Z | dockit/tests/backends/common.py | zbyte64/django-dockit | 8d00a46cb0b6237de622fcb6816067078106a0c4 | [
"BSD-3-Clause"
] | 1 | 2015-03-11T15:19:55.000Z | 2015-04-13T04:14:24.000Z | dockit/tests/backends/common.py | zbyte64/django-dockit | 8d00a46cb0b6237de622fcb6816067078106a0c4 | [
"BSD-3-Clause"
] | null | null | null | from dockit import schema
from dockit import backends
from django.utils import unittest
from mock import Mock, patch
class SimpleSchema(schema.Schema): #TODO make a more complex testcase
charfield = schema.CharField()
class SimpleDocument(schema.Document): #TODO make a more complex testcase
charfield = sche... | 35.547619 | 104 | 0.691896 | 181 | 1,493 | 5.524862 | 0.325967 | 0.084 | 0.072 | 0.092 | 0.452 | 0.386 | 0.386 | 0.386 | 0.386 | 0.282 | 0 | 0 | 0.218352 | 1,493 | 41 | 105 | 36.414634 | 0.856898 | 0.044206 | 0 | 0.137931 | 0 | 0 | 0.086316 | 0.068772 | 0 | 0 | 0 | 0.02439 | 0 | 1 | 0.103448 | false | 0 | 0.137931 | 0.034483 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
ae4e74103e32933f384e20b070862426b7ed93be | 3,126 | py | Python | tests/test_levels.py | msabramo/twiggy | 234617a9404a9bfce5f6128aac741d6420e380e9 | [
"BSD-3-Clause"
] | null | null | null | tests/test_levels.py | msabramo/twiggy | 234617a9404a9bfce5f6128aac741d6420e380e9 | [
"BSD-3-Clause"
] | null | null | null | tests/test_levels.py | msabramo/twiggy | 234617a9404a9bfce5f6128aac741d6420e380e9 | [
"BSD-3-Clause"
] | null | null | null | import sys
if sys.version_info >= (2, 7):
import unittest
else:
try:
import unittest2 as unittest
except ImportError:
raise RuntimeError("unittest2 is required for Python < 2.7")
import sys
from twiggy import levels
class LevelTestCase(unittest.TestCase):
def test_display(self):
... | 34.733333 | 82 | 0.660909 | 373 | 3,126 | 5.477212 | 0.182306 | 0.229075 | 0.0744 | 0.085658 | 0.677435 | 0.508566 | 0.508566 | 0.469408 | 0.469408 | 0.441018 | 0 | 0.008127 | 0.252079 | 3,126 | 89 | 83 | 35.123596 | 0.865697 | 0.012476 | 0 | 0.027027 | 0 | 0 | 0.033063 | 0 | 0 | 0 | 0 | 0 | 0.662162 | 1 | 0.148649 | false | 0 | 0.081081 | 0 | 0.243243 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ae53b5149329b50270028dd7db19b6412b1d7eae | 692 | py | Python | real-world-examples/colorama_example.py | AlienCoders/learning-python | 255dc32400b79db83382e707c96df029cfe30b24 | [
"MIT"
] | 19 | 2019-08-30T06:51:52.000Z | 2022-03-11T18:44:29.000Z | real-world-examples/colorama_example.py | AlienCoders/learning-python | 255dc32400b79db83382e707c96df029cfe30b24 | [
"MIT"
] | 9 | 2020-02-14T09:21:20.000Z | 2022-03-08T09:38:09.000Z | real-world-examples/colorama_example.py | sumanchary86/learning-python | 99ae9c31d62a07d1363b67f22f93173730346d76 | [
"MIT"
] | 12 | 2020-07-20T18:49:45.000Z | 2021-12-18T11:20:03.000Z | #!/usr/bin/python
from colorama import init, Fore, Back, Style
init(autoreset=True)
print(Fore.RED + 'some red text')
print(Fore.GREEN + 'some green text')
print(Fore.BLUE + 'some blue text')
print(Fore.CYAN + 'some cyan text')
print(Fore.MAGENTA + 'some magenta text')
print(Back.GREEN + 'and with a green background... | 27.68 | 67 | 0.715318 | 106 | 692 | 4.660377 | 0.386792 | 0.12753 | 0.105263 | 0.076923 | 0.178138 | 0.178138 | 0.178138 | 0.178138 | 0.178138 | 0 | 0 | 0 | 0.145954 | 692 | 24 | 68 | 28.833333 | 0.835871 | 0.060694 | 0 | 0 | 0 | 0 | 0.398287 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.090909 | 0 | 0.090909 | 0.818182 | 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 | 0 | 0 | 0 | 1 | 0 | 2 |
ae71e4810d9580382f2e755b86b5c3fe8502c560 | 146 | py | Python | wbb/utils/read_lines.py | Imran95942/userbotisl | 1614af1d1ba904dfd5e28dfd5b3e21d5e24bb55c | [
"MIT"
] | 1 | 2021-11-17T13:25:25.000Z | 2021-11-17T13:25:25.000Z | wbb/utils/read_lines.py | Imran95942/userbotisl | 1614af1d1ba904dfd5e28dfd5b3e21d5e24bb55c | [
"MIT"
] | null | null | null | wbb/utils/read_lines.py | Imran95942/userbotisl | 1614af1d1ba904dfd5e28dfd5b3e21d5e24bb55c | [
"MIT"
] | null | null | null | from random import choice
async def random_line(fname):
with open(fname) as f:
data = f.read().splitlines()
return choice(data)
| 18.25 | 36 | 0.664384 | 21 | 146 | 4.571429 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.232877 | 146 | 7 | 37 | 20.857143 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 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 | 0 | 0 | 0 | 0 | 0 | 2 |
ae8cb1092e1d60ae1025876274605853fe180b17 | 144 | py | Python | python_boilerplate/__init__.py | Mathanraj-Sharma/python_boilerplate | b7c37fd437adbb38cd3dece3c4dc3c30ff1601f5 | [
"MIT"
] | 4 | 2021-09-16T15:51:33.000Z | 2022-02-22T01:49:38.000Z | python_boilerplate/__init__.py | Mathanraj-Sharma/python_boilerplate | b7c37fd437adbb38cd3dece3c4dc3c30ff1601f5 | [
"MIT"
] | null | null | null | python_boilerplate/__init__.py | Mathanraj-Sharma/python_boilerplate | b7c37fd437adbb38cd3dece3c4dc3c30ff1601f5 | [
"MIT"
] | null | null | null | """Top-level package for Python Boilerplate."""
__author__ = """Mathanraj Sharma"""
__email__ = "rvmmathanraj@gmail.com"
__version__ = "0.1.0"
| 24 | 47 | 0.715278 | 17 | 144 | 5.352941 | 0.941176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023438 | 0.111111 | 144 | 5 | 48 | 28.8 | 0.6875 | 0.284722 | 0 | 0 | 0 | 0 | 0.443299 | 0.226804 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
88276d8f75916d3c3d56c6a9ddac193237bc937e | 930 | py | Python | backend/YouGrowGirl/plants/models.py | IsoHan/You-Grow-Girl | c6978bfdf0bcaba45f09470c6fef43e7223cf0b9 | [
"MIT"
] | 1 | 2021-09-04T23:06:32.000Z | 2021-09-04T23:06:32.000Z | backend/YouGrowGirl/plants/models.py | IsoHan/You-Grow-Girl | c6978bfdf0bcaba45f09470c6fef43e7223cf0b9 | [
"MIT"
] | null | null | null | backend/YouGrowGirl/plants/models.py | IsoHan/You-Grow-Girl | c6978bfdf0bcaba45f09470c6fef43e7223cf0b9 | [
"MIT"
] | 3 | 2021-05-07T15:56:56.000Z | 2021-09-13T01:18:24.000Z | from django.db import models
# Create your models here.
# example model
class Plant(models.Model):
common_name = models.CharField(max_length=100, unique=True)
img_name = models.CharField(max_length=100, default=False)
sunlight = models.CharField(max_length=100, blank=True)
moisture = models.CharField... | 46.5 | 78 | 0.762366 | 128 | 930 | 5.390625 | 0.34375 | 0.195652 | 0.234783 | 0.313043 | 0.563768 | 0.524638 | 0.473913 | 0.417391 | 0.417391 | 0 | 0 | 0.03317 | 0.124731 | 930 | 19 | 79 | 48.947368 | 0.814496 | 0.04086 | 0 | 0 | 0 | 0 | 0.007874 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 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 | 0 | 0 | 0 | 2 |
882d7ccb95c3419ab48504c809908b56a5aa6922 | 497 | py | Python | core/wsgi.py | vlafranca/stream_framework_example | 3af636c591d4a278f3720f64118d86aeb8091714 | [
"MIT"
] | 102 | 2015-01-18T15:02:34.000Z | 2021-12-07T17:22:12.000Z | core/wsgi.py | vlafranca/stream_framework_example | 3af636c591d4a278f3720f64118d86aeb8091714 | [
"MIT"
] | 11 | 2015-01-04T14:42:11.000Z | 2022-01-13T04:58:10.000Z | core/wsgi.py | vlafranca/stream_framework_example | 3af636c591d4a278f3720f64118d86aeb8091714 | [
"MIT"
] | 53 | 2015-01-12T07:11:10.000Z | 2021-07-28T08:40:02.000Z | """
WSGI config for pinterest_example project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.6/howto/deployment/wsgi/
"""
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "core.settings")
from django... | 22.590909 | 78 | 0.790744 | 70 | 497 | 5.5 | 0.7 | 0.051948 | 0.093506 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004545 | 0.114688 | 497 | 21 | 79 | 23.666667 | 0.870455 | 0.448692 | 0 | 0 | 0 | 0 | 0.131579 | 0.082707 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.1 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 2 |
883b490eeac47f1e7d97a319be6df45ddc5bb1c2 | 13,831 | py | Python | path_planner/src/solver.py | eSpace-epfl/rospace-planning | fa9df6fda3d177e226b01385b86f81a1960eff82 | [
"Zlib"
] | null | null | null | path_planner/src/solver.py | eSpace-epfl/rospace-planning | fa9df6fda3d177e226b01385b86f81a1960eff82 | [
"Zlib"
] | null | null | null | path_planner/src/solver.py | eSpace-epfl/rospace-planning | fa9df6fda3d177e226b01385b86f81a1960eff82 | [
"Zlib"
] | null | null | null | # @copyright Copyright (c) 2017, Davide Frey (frey.davide.ae@gmail.com)
#
# @license zlib license
#
# This file is licensed under the terms of the zlib license.
# See the LICENSE.md file in the root of this repository
# for complete details.
"""Class holding the definition of the Solver, which outputs a manoeuvre plan... | 43.768987 | 120 | 0.553395 | 1,482 | 13,831 | 5.030364 | 0.188259 | 0.033266 | 0.045607 | 0.046948 | 0.385781 | 0.339504 | 0.325017 | 0.270288 | 0.250168 | 0.238095 | 0 | 0.002561 | 0.294122 | 13,831 | 315 | 121 | 43.907937 | 0.761037 | 0.133107 | 0 | 0.269006 | 0 | 0 | 0.20797 | 0.096097 | 0 | 0 | 0 | 0.003175 | 0 | 0 | null | null | 0 | 0.035088 | null | null | 0.432749 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
883cefcf581ff75d9f584595e01bc4b11458a873 | 309,658 | py | Python | results/v161_cuda70_k40c.py | supreethms1809/magma-2.2.0 | b713d0b0a7a4724847e3a4050987c5ea9e7a7279 | [
"BSD-3-Clause"
] | 31 | 2015-06-19T14:41:12.000Z | 2021-02-15T12:47:57.000Z | results/v161_cuda70_k40c.py | supreethms1809/magma-2.2.0 | b713d0b0a7a4724847e3a4050987c5ea9e7a7279 | [
"BSD-3-Clause"
] | 3 | 2020-01-02T05:21:16.000Z | 2020-01-07T20:04:05.000Z | results/v161_cuda70_k40c.py | supreethms1809/magma-2.2.0 | b713d0b0a7a4724847e3a4050987c5ea9e7a7279 | [
"BSD-3-Clause"
] | 17 | 2015-04-01T14:26:48.000Z | 2021-12-27T06:12:15.000Z | import numpy
from numpy import array, nan, inf
version = '1.6.1'
cuda = '7.0'
device = 'Kepler K40c'
cpu = '2x8 core Sandy Bridge E5-2670'
# ------------------------------------------------------------
# file: v1.6.1/cuda7.0-k40c/cgeev.txt
# numactl --interleave=all ./testing_cgeev -RN -N 100 -N 1000 --range ... | 68.372268 | 901 | 0.476203 | 55,704 | 309,658 | 2.643903 | 0.099993 | 0.077569 | 0.018944 | 0.007578 | 0.491105 | 0.391021 | 0.31625 | 0.279862 | 0.250272 | 0.247033 | 0 | 0.534298 | 0.312703 | 309,658 | 4,528 | 902 | 68.387367 | 0.157701 | 0.07745 | 0 | 0.166357 | 0 | 0 | 0.000168 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.000464 | 0 | 0.000464 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8843abc5edc83ecf733ce466de299b472de36f16 | 266 | py | Python | Linkedin/linkedin-become-a-programmer-foundations/2.programming-foundations-beyond-the-fundamentals/Ch07/07_07/plant.py | mohammedelzanaty/myRoad2BeFullStack | eea3a5edb6c6a999136b04fdaea6ce0c81137a58 | [
"MIT"
] | 2 | 2021-04-21T12:05:01.000Z | 2022-01-19T09:58:38.000Z | Linkedin/linkedin-become-a-programmer-foundations/2.programming-foundations-beyond-the-fundamentals/Ch07/07_07/plant.py | mohammedelzanaty/myRoad2BeFullStack | eea3a5edb6c6a999136b04fdaea6ce0c81137a58 | [
"MIT"
] | 34 | 2019-12-26T11:21:42.000Z | 2022-02-27T19:55:10.000Z | Linkedin/linkedin-become-a-programmer-foundations/2.programming-foundations-beyond-the-fundamentals/Ch07/07_07/plant.py | mohammedelzanaty/myRoad2BeFullStack | eea3a5edb6c6a999136b04fdaea6ce0c81137a58 | [
"MIT"
] | 2 | 2021-08-15T07:59:36.000Z | 2022-01-16T06:17:32.000Z | def plant_recommendation(care):
if care == 'low':
print('aloe')
elif care == 'medium':
print('pothos')
elif care == 'high':
print('orchid')
plant_recommendation('low')
plant_recommendation('medium')
plant_recommendation('high')
| 20.461538 | 31 | 0.62406 | 28 | 266 | 5.785714 | 0.464286 | 0.469136 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.218045 | 266 | 12 | 32 | 22.166667 | 0.778846 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.1 | 0.3 | 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 | 0 | 0 | 0 | 0 | 0 | 2 |
885df7d78368976c3f6bc513f2490f893d6be51c | 637 | py | Python | core/user/urls.py | henrryyanez/test2 | 7f49391160ad6797afe83f9dae9346d320484b52 | [
"MIT"
] | null | null | null | core/user/urls.py | henrryyanez/test2 | 7f49391160ad6797afe83f9dae9346d320484b52 | [
"MIT"
] | null | null | null | core/user/urls.py | henrryyanez/test2 | 7f49391160ad6797afe83f9dae9346d320484b52 | [
"MIT"
] | 1 | 2021-02-25T00:57:35.000Z | 2021-02-25T00:57:35.000Z | from django.urls import path
from core.user.views import *
app_name = 'user'
urlpatterns = [
# user
path('list/', UserListView.as_view(), name='user_list'),
path('add/', UserCreateView.as_view(), name='user_create'),
path('update/<int:pk>/', UserUpdateView.as_view(), name='user_update'),
path('del... | 39.8125 | 92 | 0.693878 | 81 | 637 | 5.246914 | 0.382716 | 0.150588 | 0.164706 | 0.230588 | 0.094118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11303 | 637 | 15 | 93 | 42.466667 | 0.752212 | 0.006279 | 0 | 0 | 0 | 0 | 0.288431 | 0.034865 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.083333 | 0.166667 | 0 | 0.166667 | 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 | 0 | 0 | 0 | 2 |
8860553b40393b3ac182e6a8e58f4d8d92c5ee2b | 859 | py | Python | user_import/migrations/0002_foreign_relationships.py | everyvoter/everyvoter | 65d9b8bdf9b5c64057135c279f6e03b6c207e0fa | [
"MIT"
] | 5 | 2019-07-01T17:50:44.000Z | 2022-02-20T02:44:42.000Z | user_import/migrations/0002_foreign_relationships.py | everyvoter/everyvoter | 65d9b8bdf9b5c64057135c279f6e03b6c207e0fa | [
"MIT"
] | 3 | 2020-06-05T21:44:33.000Z | 2021-06-10T21:39:26.000Z | user_import/migrations/0002_foreign_relationships.py | everyvoter/everyvoter | 65d9b8bdf9b5c64057135c279f6e03b6c207e0fa | [
"MIT"
] | 1 | 2021-12-09T06:32:40.000Z | 2021-12-09T06:32:40.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.12 on 2018-04-30 16:35
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('accounts', '0001_initial'... | 29.62069 | 121 | 0.653085 | 97 | 859 | 5.618557 | 0.505155 | 0.058716 | 0.077064 | 0.121101 | 0.326606 | 0.326606 | 0.326606 | 0.326606 | 0.326606 | 0.326606 | 0 | 0.039275 | 0.229336 | 859 | 28 | 122 | 30.678571 | 0.783988 | 0.080326 | 0 | 0.285714 | 1 | 0 | 0.109276 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.47619 | 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 | 0 | 0 | 0 | 2 |
889c61be59c3bb3d37b0212051da6bcbefab0a47 | 152 | py | Python | sol/sol_array_count9.py | igamberdievhasan/codingbat-notebooks | b0a41f22b9064efc7f7f7da55e8c99fc21ce364d | [
"Apache-2.0"
] | null | null | null | sol/sol_array_count9.py | igamberdievhasan/codingbat-notebooks | b0a41f22b9064efc7f7f7da55e8c99fc21ce364d | [
"Apache-2.0"
] | 6 | 2020-03-02T20:59:43.000Z | 2020-03-18T01:20:30.000Z | sol/sol_array_count9.py | igamberdievhasan/codingbat-notebooks | b0a41f22b9064efc7f7f7da55e8c99fc21ce364d | [
"Apache-2.0"
] | 1 | 2020-03-13T02:48:04.000Z | 2020-03-13T02:48:04.000Z | def array_count9(nums):
count = 0
# Standard loop to look at each value
for num in nums:
if num == 9:
count = count + 1
return count
| 16.888889 | 39 | 0.618421 | 25 | 152 | 3.72 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038095 | 0.309211 | 152 | 8 | 40 | 19 | 0.847619 | 0.230263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 2 |
88af6330a4bff7bc5d7b08485e02b47c8ee99efb | 1,247 | py | Python | psdaq/psdaq/seq/finite.py | slactjohnson/lcls2 | 87fb7a7a9b5030ed7a2a472fecfca6575e233889 | [
"BSD-3-Clause-LBNL"
] | null | null | null | psdaq/psdaq/seq/finite.py | slactjohnson/lcls2 | 87fb7a7a9b5030ed7a2a472fecfca6575e233889 | [
"BSD-3-Clause-LBNL"
] | null | null | null | psdaq/psdaq/seq/finite.py | slactjohnson/lcls2 | 87fb7a7a9b5030ed7a2a472fecfca6575e233889 | [
"BSD-3-Clause-LBNL"
] | null | null | null | from psdaq.seq.seq import *
sync_marker = 6
instrset = []
# Insert global sync instruction (1Hz?)
instrset.append(FixedRateSync(marker=sync_marker,occ=1))
for i in range(4):
sh = i*4
b0 = len(instrset)
instrset.append(ControlRequest(0xf<<sh))
instrset.append(FixedRateSync(marker=0,occ=i+1))
... | 26.531915 | 68 | 0.682438 | 180 | 1,247 | 4.711111 | 0.283333 | 0.231132 | 0.159198 | 0.194575 | 0.65684 | 0.625 | 0.528302 | 0.528302 | 0.528302 | 0.528302 | 0 | 0.044465 | 0.152366 | 1,247 | 46 | 69 | 27.108696 | 0.757805 | 0.029671 | 0 | 0.333333 | 0 | 0 | 0.032312 | 0 | 0 | 0 | 0.009942 | 0 | 0 | 1 | 0 | false | 0 | 0.030303 | 0 | 0.030303 | 0.060606 | 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 | 0 | 0 | 0 | 2 |
31f75736197b26c98f93790209584a0a9ebc60c9 | 224 | py | Python | labelbox/data/serialization/coco/categories.py | Cyniikal/labelbox-python | 526fb8235c245a3c6161af57c354a47d68385bab | [
"Apache-2.0"
] | null | null | null | labelbox/data/serialization/coco/categories.py | Cyniikal/labelbox-python | 526fb8235c245a3c6161af57c354a47d68385bab | [
"Apache-2.0"
] | null | null | null | labelbox/data/serialization/coco/categories.py | Cyniikal/labelbox-python | 526fb8235c245a3c6161af57c354a47d68385bab | [
"Apache-2.0"
] | null | null | null | import sys
from pydantic import BaseModel
class Categories(BaseModel):
id: int
name: str
supercategory: str
isthing: int = 1
def hash_category_name(name: str) -> int:
return hash(name) + sys.maxsize
| 14.933333 | 41 | 0.6875 | 30 | 224 | 5.066667 | 0.633333 | 0.092105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005814 | 0.232143 | 224 | 14 | 42 | 16 | 0.877907 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0.111111 | 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 | 0 | 1 | 1 | 0 | 0 | 2 |
ee0fcc0dee298a3aa80b9e3f1e962112300b1eb7 | 219 | py | Python | common/db/chat.py | whyh/FavourDemo | 1b19882fb2e79dee9c3332594bf45c91e7476eaa | [
"Unlicense"
] | 1 | 2020-09-14T12:10:22.000Z | 2020-09-14T12:10:22.000Z | common/db/chat.py | whyh/FavourDemo | 1b19882fb2e79dee9c3332594bf45c91e7476eaa | [
"Unlicense"
] | 4 | 2021-04-30T20:54:31.000Z | 2021-06-02T00:28:04.000Z | common/db/chat.py | whyh/FavourDemo | 1b19882fb2e79dee9c3332594bf45c91e7476eaa | [
"Unlicense"
] | null | null | null | from .orm import *
__all__ = ("Chat", "LockedChat")
class Chat(Kind):
invite = StringField()
occupied = BooleanField(index=True, default=False)
class LockedChat(Chat):
_kind = "chat"
_p_lock = True
| 15.642857 | 54 | 0.657534 | 25 | 219 | 5.48 | 0.72 | 0.116788 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210046 | 219 | 13 | 55 | 16.846154 | 0.791908 | 0 | 0 | 0 | 0 | 0 | 0.082192 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.875 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
ee2a17e9330820b896d5e20240921bf8a52c5b82 | 7,827 | py | Python | models.py | ShahkarHassan/DotaDatabase | fbc3907238871cc4e80f918a8d02553fc15e9bc4 | [
"MIT"
] | null | null | null | models.py | ShahkarHassan/DotaDatabase | fbc3907238871cc4e80f918a8d02553fc15e9bc4 | [
"MIT"
] | null | null | null | models.py | ShahkarHassan/DotaDatabase | fbc3907238871cc4e80f918a8d02553fc15e9bc4 | [
"MIT"
] | null | null | null | # This is an auto-generated Django model module.
# You'll have to do the following manually to clean this up:
# * Rearrange models' order
# * Make sure each model has one field with primary_key=True
# * Make sure each ForeignKey has `on_delete` set to the desired behavior.
# * Remove `managed = False` lines if ... | 36.236111 | 153 | 0.723649 | 949 | 7,827 | 5.758693 | 0.184405 | 0.076853 | 0.055627 | 0.07301 | 0.591217 | 0.455078 | 0.390851 | 0.33742 | 0.243184 | 0.179506 | 0 | 0.010761 | 0.180784 | 7,827 | 215 | 154 | 36.404651 | 0.841547 | 0.11652 | 0 | 0.298013 | 1 | 0 | 0.102177 | 0.026851 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.013245 | 0.006623 | 0 | 0.715232 | 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 | 0 | 0 | 1 | 0 | 0 | 2 |
ee3bd69dd38640637d851f350d5e2aa21be4666e | 10,439 | py | Python | pysnmp/OPTIX-SONET-EQPTMGT-MIB-V2.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/OPTIX-SONET-EQPTMGT-MIB-V2.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/OPTIX-SONET-EQPTMGT-MIB-V2.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module OPTIX-SONET-EQPTMGT-MIB-V2 (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/OPTIX-SONET-EQPTMGT-MIB-V2
# Produced by pysmi-0.3.4 at Mon Apr 29 20:26:05 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version ... | 130.4875 | 1,134 | 0.743654 | 1,257 | 10,439 | 6.174224 | 0.14638 | 0.007731 | 0.01121 | 0.014947 | 0.493107 | 0.371859 | 0.327535 | 0.319031 | 0.319031 | 0.319031 | 0 | 0.086838 | 0.086598 | 10,439 | 79 | 1,135 | 132.139241 | 0.727111 | 0.033145 | 0 | 0.028571 | 0 | 0 | 0.197739 | 0.068822 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.157143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ee445de2dc05d287260b24063507ab9ebd298878 | 3,915 | py | Python | pysimplegui/test_RiKi_setting.py | konsan1101/py-etc | bcca13119b0d2453866988404fd1c4976f55d4d5 | [
"MIT"
] | null | null | null | pysimplegui/test_RiKi_setting.py | konsan1101/py-etc | bcca13119b0d2453866988404fd1c4976f55d4d5 | [
"MIT"
] | 2 | 2020-06-06T00:30:56.000Z | 2021-06-10T22:30:37.000Z | pysimplegui/test_RiKi_setting.py | konsan1101/py-etc | bcca13119b0d2453866988404fd1c4976f55d4d5 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#https://pysimplegui.readthedocs.io/en/latest/cookbook/
import PySimpleGUI as sg
#import PySimpleGUIWeb as sg
# Very basic window. Return values using auto numbered keys
layout = [
# API選択 free, google, watson, azure, nict, special
[sg.Frame(layout=[
... | 43.5 | 138 | 0.452363 | 359 | 3,915 | 4.91922 | 0.29805 | 0.193092 | 0.220838 | 0.309173 | 0.208947 | 0.155719 | 0.109853 | 0.109853 | 0.080408 | 0.023783 | 0 | 0.005761 | 0.37931 | 3,915 | 89 | 139 | 43.988764 | 0.720988 | 0.10447 | 0 | 0.30303 | 0 | 0 | 0.122887 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.015152 | 0 | 0.015152 | 0.030303 | 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 | 0 | 0 | 2 |
ee6aefb851bd986a81d9acf431a14e5cb1663282 | 296 | py | Python | meiduoshop/apps/verify/urls.py | 1572990942/meiduoshop | 64f4fe04fbcec8ceecf9fa0ce24afe41388f6926 | [
"MIT"
] | null | null | null | meiduoshop/apps/verify/urls.py | 1572990942/meiduoshop | 64f4fe04fbcec8ceecf9fa0ce24afe41388f6926 | [
"MIT"
] | null | null | null | meiduoshop/apps/verify/urls.py | 1572990942/meiduoshop | 64f4fe04fbcec8ceecf9fa0ce24afe41388f6926 | [
"MIT"
] | null | null | null | from django.urls import path
from apps.verify import views
urlpatterns = [
# this.image_code_url = this.host + "/image_codes/" + this.image_code_id + "/";
path('image_codes/<uuid:uuid>/', views.ImageCode.as_view()),
path('sms_codes/<mobile:mobile>/', views.SmsCodeView.as_view()),
]
| 32.888889 | 83 | 0.695946 | 41 | 296 | 4.804878 | 0.560976 | 0.091371 | 0.13198 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131757 | 296 | 8 | 84 | 37 | 0.766537 | 0.260135 | 0 | 0 | 0 | 0 | 0.230415 | 0.230415 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
ee6ce268d719954674c27b9ada4b3eb16f3a08b6 | 2,161 | py | Python | forms/migrations/0003_answer_entry.py | City-of-Helsinki/mvj | 6f786047805a968317ecc37b38c2262ada2c3805 | [
"MIT"
] | 1 | 2021-01-12T08:14:10.000Z | 2021-01-12T08:14:10.000Z | forms/migrations/0003_answer_entry.py | City-of-Helsinki/mvj | 6f786047805a968317ecc37b38c2262ada2c3805 | [
"MIT"
] | 249 | 2017-04-18T14:00:13.000Z | 2022-03-30T12:18:03.000Z | forms/migrations/0003_answer_entry.py | City-of-Helsinki/mvj | 6f786047805a968317ecc37b38c2262ada2c3805 | [
"MIT"
] | 7 | 2017-04-18T08:43:54.000Z | 2021-07-28T07:29:30.000Z | # Generated by Django 2.2.13 on 2021-09-14 11:16
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
("forms", "0002_add_trans... | 30.013889 | 86 | 0.386395 | 145 | 2,161 | 5.641379 | 0.406897 | 0.05868 | 0.085575 | 0.134474 | 0.474328 | 0.474328 | 0.474328 | 0.474328 | 0.474328 | 0.474328 | 0 | 0.01938 | 0.522443 | 2,161 | 71 | 87 | 30.43662 | 0.773256 | 0.021286 | 0 | 0.553846 | 1 | 0 | 0.050639 | 0.009938 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.046154 | 0 | 0.092308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
ee75eadf5929c5868016a3262d7dadbdd89d9350 | 1,812 | py | Python | test/apartment_test.py | doruirimescu/helsinki-apartment-finder | 6beb93c358675e9c048861ee94fc008b80da006d | [
"BSD-2-Clause"
] | null | null | null | test/apartment_test.py | doruirimescu/helsinki-apartment-finder | 6beb93c358675e9c048861ee94fc008b80da006d | [
"BSD-2-Clause"
] | null | null | null | test/apartment_test.py | doruirimescu/helsinki-apartment-finder | 6beb93c358675e9c048861ee94fc008b80da006d | [
"BSD-2-Clause"
] | null | null | null | from apartment import Apartment, Apartments, Price, Area, Year, Vastike, Floor, Rooms, Zone, K, Parameter
import pytest
import unittest
class TestParameter(unittest.TestCase):
def test_K(self):
self.assertEqual(K, 1000)
def test_Parameter_Constructor_DefaultValues(self):
p = Parameter(150*K)
... | 36.979592 | 105 | 0.661148 | 235 | 1,812 | 4.982979 | 0.255319 | 0.269001 | 0.163962 | 0.0538 | 0.374039 | 0.374039 | 0.17421 | 0 | 0 | 0 | 0 | 0.056101 | 0.213024 | 1,812 | 48 | 106 | 37.75 | 0.765077 | 0 | 0 | 0.051282 | 0 | 0 | 0.009934 | 0 | 0 | 0 | 0 | 0 | 0.538462 | 1 | 0.128205 | false | 0 | 0.076923 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ee769c5383428aab54a73116140cd21e2d89a194 | 662 | py | Python | sable/view.py | HH-MWB/sable | 78ec3d1892af83992cdd6a719e16155706b0ea92 | [
"MIT"
] | null | null | null | sable/view.py | HH-MWB/sable | 78ec3d1892af83992cdd6a719e16155706b0ea92 | [
"MIT"
] | null | null | null | sable/view.py | HH-MWB/sable | 78ec3d1892af83992cdd6a719e16155706b0ea92 | [
"MIT"
] | null | null | null | """Sable Viewer"""
from typing import Iterable
from typer import colors, echo, style
from sable.data import TestCase
from sable.exec import test
TAG_PASS: str = style("Passed", fg=colors.WHITE, bg=colors.GREEN)
TAG_FAIL: str = style("Failed", fg=colors.WHITE, bg=colors.RED)
def view(cases: Iterable[TestCase]) -> ... | 24.518519 | 71 | 0.638973 | 92 | 662 | 4.554348 | 0.521739 | 0.042959 | 0.062053 | 0.071599 | 0.214797 | 0.114558 | 0 | 0 | 0 | 0 | 0 | 0.007707 | 0.216012 | 662 | 26 | 72 | 25.461538 | 0.799615 | 0.197885 | 0 | 0 | 0 | 0 | 0.188377 | 0.164329 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.166667 | 0.333333 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 2 |
ee8176bf38cfb9197d92f6d6f39ea3c0d6ac7e37 | 505 | py | Python | fiubar/forms.py | maru/fiubar | be12547ae3f4560765c86ce5c49988931b09b19a | [
"MIT"
] | 5 | 2016-07-27T16:01:41.000Z | 2020-03-10T21:11:31.000Z | fiubar/forms.py | maru/fiubar | be12547ae3f4560765c86ce5c49988931b09b19a | [
"MIT"
] | 14 | 2015-07-22T16:41:58.000Z | 2019-03-28T20:45:17.000Z | fiubar/forms.py | maru/fiubar | be12547ae3f4560765c86ce5c49988931b09b19a | [
"MIT"
] | 3 | 2015-07-22T15:14:44.000Z | 2018-04-16T09:49:35.000Z | # -*- coding: utf-8 -*-
from captcha.fields import ReCaptchaField
from django import forms
from django.conf import settings
class SignupForm(forms.Form):
"""
Signup form with recaptcha field.
"""
field_order = ['username', 'email', 'password1', ]
if hasattr(settings, 'RECAPTCHA_PUBLIC_KEY'):
... | 25.25 | 64 | 0.657426 | 56 | 505 | 5.857143 | 0.714286 | 0.060976 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005102 | 0.223762 | 505 | 19 | 65 | 26.578947 | 0.831633 | 0.209901 | 0 | 0 | 0 | 0 | 0.129973 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.2 | 0.3 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
ee825f6ed994b458ea0b729d178c51519e6e0f2f | 633 | py | Python | seed_scraper/items.py | uoshvis/seed-scraper | e944ea885e2a001ef9822b62850dd07e01284214 | [
"MIT"
] | null | null | null | seed_scraper/items.py | uoshvis/seed-scraper | e944ea885e2a001ef9822b62850dd07e01284214 | [
"MIT"
] | null | null | null | seed_scraper/items.py | uoshvis/seed-scraper | e944ea885e2a001ef9822b62850dd07e01284214 | [
"MIT"
] | null | null | null | # Define here the models for your scraped items
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/items.html
import scrapy
class EnforcementItem(scrapy.Item):
legal_case_name = scrapy.Field()
legal_case_detail_url = scrapy.Field()
defendant_name = scrapy.Field()
defendant_type = s... | 26.375 | 53 | 0.71564 | 80 | 633 | 5.4375 | 0.575 | 0.303448 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175355 | 633 | 23 | 54 | 27.521739 | 0.833333 | 0.265403 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
ee85b6c767b2b5051baa3b53dc3067ba025d3e2e | 1,032 | py | Python | excel/book.py | cicicici/hopper | d0ed0307c50ab56631960b4488c43a2d098d6bb4 | [
"MIT"
] | null | null | null | excel/book.py | cicicici/hopper | d0ed0307c50ab56631960b4488c43a2d098d6bb4 | [
"MIT"
] | null | null | null | excel/book.py | cicicici/hopper | d0ed0307c50ab56631960b4488c43a2d098d6bb4 | [
"MIT"
] | null | null | null | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import os
import sys
import datetime
from copy import copy, deepcopy
from openpyxl import load_workbook
from ..util.opt import Opt
from ..util.fs import file_exist
from ..debug import log, dump
from .sheet i... | 22.933333 | 72 | 0.705426 | 142 | 1,032 | 4.866197 | 0.359155 | 0.043415 | 0.069465 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.213178 | 1,032 | 44 | 73 | 23.454545 | 0.850985 | 0 | 0 | 0 | 0 | 0 | 0.018429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.4 | 0 | 0.533333 | 0.033333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
c9953f6b6fe4d5aada78767e203a4d9be3ea3728 | 110 | py | Python | Problem Solving using Python Lab/11.sumOfN.py | narayan954/niet_codetantra | 6f4af58e9824b1f79b0c8dc391456fb4857558f0 | [
"MIT"
] | 2 | 2022-01-30T07:22:01.000Z | 2022-01-30T16:00:58.000Z | Problem Solving using Python Lab/11.sumOfN.py | narayan954/niet-codetantra | 1316b1c5a61c16d5cbe83b236b77d7a59e82c9c7 | [
"MIT"
] | null | null | null | Problem Solving using Python Lab/11.sumOfN.py | narayan954/niet-codetantra | 1316b1c5a61c16d5cbe83b236b77d7a59e82c9c7 | [
"MIT"
] | 1 | 2021-11-29T15:32:38.000Z | 2021-11-29T15:32:38.000Z | a=int(input('Enter number of terms '))
f=1
s=0
for i in range(1,a+1):
f=f*i
s+=f
print('Sum of series =',s)
| 13.75 | 38 | 0.609091 | 28 | 110 | 2.392857 | 0.642857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043956 | 0.172727 | 110 | 7 | 39 | 15.714286 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0.336364 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 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 | 0 | 0 | 2 |
c996ff6ba045ea0bbb81604fe33182db4416b3fb | 168 | py | Python | moai/monads/human/pose/__init__.py | ai-in-motion/moai | e38cac046c059d2e2331ef4883bbabc5a500a5cf | [
"Apache-2.0"
] | 10 | 2021-04-02T11:21:33.000Z | 2022-01-18T18:32:32.000Z | moai/monads/human/pose/__init__.py | ai-in-motion/moai | e38cac046c059d2e2331ef4883bbabc5a500a5cf | [
"Apache-2.0"
] | 1 | 2022-03-22T20:10:55.000Z | 2022-03-24T13:11:02.000Z | moai/monads/human/pose/__init__.py | ai-in-motion/moai | e38cac046c059d2e2331ef4883bbabc5a500a5cf | [
"Apache-2.0"
] | 3 | 2021-05-16T20:47:40.000Z | 2021-12-01T21:15:36.000Z | from moai.monads.human.pose.openpose import (
Split as OpenposeSplit,
JointMap as OpenposeJointMap
)
__all__ = [
'OpenposeSplit',
'OpenposeJointMap',
] | 18.666667 | 45 | 0.708333 | 16 | 168 | 7.1875 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.196429 | 168 | 9 | 46 | 18.666667 | 0.851852 | 0 | 0 | 0 | 0 | 0 | 0.171598 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c9982086806173b371f01b49ff966ab5bef44330 | 1,702 | py | Python | code/speakkey_v01.py | whoisguardsite/test | 62313665a9b673b5d5e5b1dbe9761c654751970c | [
"MIT"
] | 19 | 2015-01-12T22:30:53.000Z | 2020-07-29T19:10:20.000Z | code/speakkey_v01.py | whoisguardsite/test | 62313665a9b673b5d5e5b1dbe9761c654751970c | [
"MIT"
] | 8 | 2015-02-17T19:21:18.000Z | 2021-08-21T14:48:25.000Z | code/speakkey_v01.py | whoisguardsite/test | 62313665a9b673b5d5e5b1dbe9761c654751970c | [
"MIT"
] | 17 | 2015-02-17T14:55:33.000Z | 2022-02-16T06:08:14.000Z | #! /usr/bin/python3.5
# Copyright 2015 Chris Ballinger - CC0 1.0 Universal
import sys
# Octal / Emoji / Syllable Mapping
# `0 | 🌞 | ohm`
# `1 | 🌵 | ma`
# `2 | 🌲 | ni`
# `3 | 🌼 | pad`
# `4 | 🐅 | me`
# `5 | 🕊 | hum`
# `6 | 🐉 | free`
# `7 | 🌅 | dom`
# Input octal UTF-8 string (e.g. '012345670123456701234567') ... | 29.859649 | 96 | 0.592244 | 254 | 1,702 | 3.822835 | 0.287402 | 0.259526 | 0.131823 | 0.23069 | 0.514933 | 0.514933 | 0.197734 | 0.197734 | 0.197734 | 0.197734 | 0 | 0.093679 | 0.228555 | 1,702 | 56 | 97 | 30.392857 | 0.633663 | 0.248531 | 0 | 0.0625 | 0 | 0.03125 | 0.140032 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.03125 | 0 | 0.15625 | 0.15625 | 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 | 0 | 0 | 0 | 2 |
c9a4127125271bb6a2a4d8bbde2525a8c1eeaff6 | 5,855 | py | Python | cdpy/cdp/media.py | MichaelBrunn3r/cdpy | d6130b01920149b5ab4a74462dfdba872586abd0 | [
"MIT"
] | 1 | 2021-07-14T22:23:46.000Z | 2021-07-14T22:23:46.000Z | cdpy/cdp/media.py | MichaelBrunn3r/cdpy | d6130b01920149b5ab4a74462dfdba872586abd0 | [
"MIT"
] | null | null | null | cdpy/cdp/media.py | MichaelBrunn3r/cdpy | d6130b01920149b5ab4a74462dfdba872586abd0 | [
"MIT"
] | null | null | null | from __future__ import annotations
import dataclasses
class PlayerId(str):
"""Players will get an ID that is unique within the agent context."""
def __repr__(self):
return f"PlayerId({super().__repr__()})"
class Timestamp(float):
""""""
def __repr__(self):
return f"Timestamp({supe... | 25.34632 | 82 | 0.637062 | 667 | 5,855 | 5.536732 | 0.289355 | 0.028161 | 0.060926 | 0.053615 | 0.32196 | 0.189819 | 0.139453 | 0.084484 | 0.022204 | 0 | 0 | 0.001605 | 0.254996 | 5,855 | 230 | 83 | 25.456522 | 0.845025 | 0.402391 | 0 | 0.404255 | 0 | 0 | 0.086723 | 0.019237 | 0 | 0 | 0 | 0.004348 | 0 | 1 | 0.180851 | false | 0 | 0.021277 | 0.159574 | 0.680851 | 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 | 0 | 1 | 1 | 0 | 0 | 2 |
c9b21c5832143f8c59f97ba2e10ff36b25060d31 | 487 | py | Python | base/admin.py | sakthicse/agricultural_innovations | a7f8aaf617c09e73607e805b22b9b82ac05e3856 | [
"BSD-3-Clause"
] | null | null | null | base/admin.py | sakthicse/agricultural_innovations | a7f8aaf617c09e73607e805b22b9b82ac05e3856 | [
"BSD-3-Clause"
] | null | null | null | base/admin.py | sakthicse/agricultural_innovations | a7f8aaf617c09e73607e805b22b9b82ac05e3856 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from django.contrib import admin
from .models import Projects,SiteInfo
# Register your models here.
class ProjectsAdmin(admin.ModelAdmin):
list_display = ['name']
class SiteInfoAdmin(admin.ModelAdmin):
list_display = ['site_name'... | 28.647059 | 56 | 0.749487 | 57 | 487 | 6.210526 | 0.596491 | 0.101695 | 0.107345 | 0.146893 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002415 | 0.149897 | 487 | 17 | 57 | 28.647059 | 0.852657 | 0.213552 | 0 | 0 | 0 | 0 | 0.034301 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.777778 | 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 | 0 | 1 | 0 | 0 | 2 |
c9cf522309e05ec9c78538a39f58158eec54b803 | 251 | py | Python | taesko/web-server/setup.py | taesko/training-projects | 638649b0b5987ba971ae5ce1f171642de3cde739 | [
"Apache-2.0"
] | null | null | null | taesko/web-server/setup.py | taesko/training-projects | 638649b0b5987ba971ae5ce1f171642de3cde739 | [
"Apache-2.0"
] | null | null | null | taesko/web-server/setup.py | taesko/training-projects | 638649b0b5987ba971ae5ce1f171642de3cde739 | [
"Apache-2.0"
] | null | null | null | from setuptools import setup, find_packages
setup(
name='ws',
entry_points={
'console_scripts': [
'pyws = ws.server:main'
]
},
packages=find_packages(exclude=('conf.d',)),
tests_require=['openpyxl']
) | 17.928571 | 48 | 0.581673 | 26 | 251 | 5.423077 | 0.807692 | 0.170213 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.270916 | 251 | 14 | 49 | 17.928571 | 0.770492 | 0 | 0 | 0 | 0 | 0 | 0.206349 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.090909 | 0 | 0.090909 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c9d2d463f0ee01a054ea063e7a248ef3fb15153f | 1,330 | py | Python | config/settings/local.py | agnihotri7/demo-api | ffccd7e7a21b99cb8282045b4c3343ff5888c527 | [
"RSA-MD"
] | null | null | null | config/settings/local.py | agnihotri7/demo-api | ffccd7e7a21b99cb8282045b4c3343ff5888c527 | [
"RSA-MD"
] | null | null | null | config/settings/local.py | agnihotri7/demo-api | ffccd7e7a21b99cb8282045b4c3343ff5888c527 | [
"RSA-MD"
] | null | null | null | import os
from config.settings.dev import *
DEBUG = True
ENABLE_API_ROOT = True
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': BASE_DIR / 'tmp/db/sqlite3_db',
}
}
REST_FRAMEWORK = {
'DEFAULT_RENDERER_CLASSES': (
'rest_framework.renderers.JSONRenderer'... | 31.666667 | 91 | 0.690226 | 126 | 1,330 | 6.97619 | 0.531746 | 0.177474 | 0.068259 | 0.036405 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008349 | 0.189474 | 1,330 | 41 | 92 | 32.439024 | 0.80705 | 0.075188 | 0 | 0.111111 | 0 | 0 | 0.625917 | 0.528932 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.055556 | 0 | 0.055556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c9e2520cd71660ad8f63941326fd72c4411f776e | 5,197 | py | Python | src/tests/authentication/testAuthentication.py | c3loc/squirrel | 8074dbc74a9a15fc665fcaef617b401759ea7e0c | [
"MIT"
] | 1 | 2019-12-13T13:22:06.000Z | 2019-12-13T13:22:06.000Z | src/tests/authentication/testAuthentication.py | c3loc/squirrel | 8074dbc74a9a15fc665fcaef617b401759ea7e0c | [
"MIT"
] | 23 | 2019-12-05T23:18:46.000Z | 2020-04-13T14:08:22.000Z | src/tests/authentication/testAuthentication.py | c3loc/squirrel | 8074dbc74a9a15fc665fcaef617b401759ea7e0c | [
"MIT"
] | 2 | 2019-12-06T08:14:31.000Z | 2020-06-18T20:30:26.000Z | from django.contrib.auth import views as auth_views
from django.contrib.auth.forms import PasswordChangeForm, PasswordResetForm
from django.contrib.auth.models import User
from django.core import mail
from django.test import TestCase
from django.urls import resolve, reverse
class PasswordResetTests(TestCase):
def... | 34.879195 | 104 | 0.687512 | 597 | 5,197 | 5.855946 | 0.19598 | 0.075515 | 0.046339 | 0.045767 | 0.662185 | 0.590961 | 0.581522 | 0.570652 | 0.5 | 0.420481 | 0 | 0.007942 | 0.2005 | 5,197 | 148 | 105 | 35.114865 | 0.833454 | 0.080431 | 0 | 0.533333 | 0 | 0 | 0.110994 | 0.009267 | 0 | 0 | 0 | 0 | 0.209524 | 1 | 0.266667 | false | 0.314286 | 0.057143 | 0 | 0.4 | 0.009524 | 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 | 0 | 0 | 0 | 2 |
c9e61bdbc8e131315741b8bc7b60aef4c5483f19 | 96,219 | py | Python | tests/test_data/hierarchical_optimizer_test_data.py | Algomorph/LevelSetFusion-Python | 46625cd185da4413f9afaf201096203ee72d3803 | [
"Apache-2.0"
] | 8 | 2019-01-30T19:01:25.000Z | 2021-03-05T14:10:51.000Z | tests/test_data/hierarchical_optimizer_test_data.py | Algomorph/LevelSetFusion-Python | 46625cd185da4413f9afaf201096203ee72d3803 | [
"Apache-2.0"
] | 58 | 2018-12-19T16:57:38.000Z | 2019-06-06T19:52:36.000Z | tests/test_data/hierarchical_optimizer_test_data.py | Algomorph/LevelSetFusion-Python | 46625cd185da4413f9afaf201096203ee72d3803 | [
"Apache-2.0"
] | 2 | 2019-03-06T06:30:30.000Z | 2019-06-03T11:00:15.000Z | # ================================================================
# Created by Gregory Kramida on 12/14/18.
# Copyright (c) 2018 Gregory Kramida
# 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 Lice... | 57.478495 | 96 | 0.431983 | 10,548 | 96,219 | 3.937808 | 0.228764 | 0.030118 | 0.101165 | 0.097361 | 0.41446 | 0.386917 | 0.374374 | 0.3457 | 0.326632 | 0.321408 | 0 | 0.678168 | 0.423503 | 96,219 | 1,673 | 97 | 57.512851 | 0.070633 | 0.011318 | 0 | 0.346887 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.001271 | 0 | 0.001271 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a01407a36ac8a613a5ae30ceaa43cfa16d7c2bcc | 395 | py | Python | survivor_pool/models/pick_dict.py | bitedgeco/survivor-pool | ab767fc36a0509614f7edade5101389ed97fe251 | [
"MIT"
] | 2 | 2016-08-24T22:13:54.000Z | 2016-11-01T09:55:24.000Z | survivor_pool/models/pick_dict.py | bitedgecom/survivor-pool | ab767fc36a0509614f7edade5101389ed97fe251 | [
"MIT"
] | 41 | 2016-09-02T19:40:32.000Z | 2016-09-09T18:21:28.000Z | survivor_pool/models/pick_dict.py | bitedgeco/survivor-pool | ab767fc36a0509614f7edade5101389ed97fe251 | [
"MIT"
] | 1 | 2021-08-05T15:24:21.000Z | 2021-08-05T15:24:21.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
INITIAL_PICKS = [
{"user_id": 1, "event_id": 1, "team": "home", "week": 1},
{"user_id": 2, "event_id": 7, "team": "home", "week": 1},
{"user_id": 3, "event_id": 8, "team": "away", "week": 1},
{"user_id": 4, "event_id": 6, "team": "away", "... | 35.909091 | 61 | 0.529114 | 60 | 395 | 3.216667 | 0.4 | 0.15544 | 0.186529 | 0.227979 | 0.393782 | 0.393782 | 0 | 0 | 0 | 0 | 0 | 0.049844 | 0.187342 | 395 | 10 | 62 | 39.5 | 0.551402 | 0.053165 | 0 | 0 | 0 | 0 | 0.362903 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 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 | 0 | 0 | 0 | 2 |
a015f617e5b4506acb8e239492c71152820e15eb | 243 | py | Python | output/models/nist_data/list_pkg/short/schema_instance/nistschema_sv_iv_list_short_min_length_5_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 1 | 2021-08-14T17:59:21.000Z | 2021-08-14T17:59:21.000Z | output/models/nist_data/list_pkg/short/schema_instance/nistschema_sv_iv_list_short_min_length_5_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 4 | 2020-02-12T21:30:44.000Z | 2020-04-15T20:06:46.000Z | output/models/nist_data/list_pkg/short/schema_instance/nistschema_sv_iv_list_short_min_length_5_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from output.models.nist_data.list_pkg.short.schema_instance.nistschema_sv_iv_list_short_min_length_5_xsd.nistschema_sv_iv_list_short_min_length_5 import NistschemaSvIvListShortMinLength5
__all__ = [
"NistschemaSvIvListShortMinLength5",
]
| 40.5 | 186 | 0.888889 | 31 | 243 | 6.258065 | 0.645161 | 0.123711 | 0.14433 | 0.185567 | 0.340206 | 0.340206 | 0.340206 | 0.340206 | 0 | 0 | 0 | 0.017467 | 0.057613 | 243 | 5 | 187 | 48.6 | 0.829694 | 0 | 0 | 0 | 0 | 0 | 0.135802 | 0.135802 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4e42a0ab5f6807fe1b34e903db4ada9124652933 | 888 | py | Python | tests/test_cases.py | kpdemetriou/spectral-aead | 08c4705af74223832afe947ba9e20bf5bb9d6487 | [
"BSD-3-Clause"
] | null | null | null | tests/test_cases.py | kpdemetriou/spectral-aead | 08c4705af74223832afe947ba9e20bf5bb9d6487 | [
"BSD-3-Clause"
] | null | null | null | tests/test_cases.py | kpdemetriou/spectral-aead | 08c4705af74223832afe947ba9e20bf5bb9d6487 | [
"BSD-3-Clause"
] | 1 | 2018-06-26T05:57:06.000Z | 2018-06-26T05:57:06.000Z | import binascii
import spectral
def test_encryption(cases):
for key, nonce, plaintext, associated, ciphertext, mac in cases:
key, nonce, plaintext, associated, ciphertext, mac = map(
binascii.unhexlify, (key, nonce, plaintext, associated, ciphertext, mac)
)
computed_ciphertext... | 34.153846 | 104 | 0.695946 | 93 | 888 | 6.537634 | 0.247312 | 0.105263 | 0.195724 | 0.310855 | 0.536184 | 0.536184 | 0.536184 | 0.536184 | 0.536184 | 0.536184 | 0 | 0 | 0.220721 | 888 | 25 | 105 | 35.52 | 0.878613 | 0 | 0 | 0.352941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 1 | 0.117647 | false | 0 | 0.117647 | 0 | 0.235294 | 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 | 0 | 0 | 0 | 2 |
4e48136f139e9351e513296e8093ce84bfa4f170 | 1,377 | py | Python | app/realoem.py | ballon3/electricdisc | c18f463240d9b05d77ce1c00545810ca8bac65a7 | [
"MIT"
] | null | null | null | app/realoem.py | ballon3/electricdisc | c18f463240d9b05d77ce1c00545810ca8bac65a7 | [
"MIT"
] | 5 | 2020-05-26T08:19:15.000Z | 2020-05-26T08:20:15.000Z | app/realoem.py | ballon3/electricdisc | c18f463240d9b05d77ce1c00545810ca8bac65a7 | [
"MIT"
] | null | null | null | import httpx
import requests
from bs4 import BeautifulSoup as bso
class BMW:
BASE_URL = 'https://www.realoem.com/bmw/'
LANGUAGE = 'enUS'
URL = f"{BASE_URL}{LANGUAGE}"
'https://www.realoem.com/bmw/enUS/partgrp?id=0573-USA-12-1991-K569-BMW-K_75_RT_0565,0573_&mg=46'
'https://www.realoem.com/bmw/enU... | 27 | 111 | 0.625999 | 215 | 1,377 | 3.851163 | 0.32093 | 0.048309 | 0.09058 | 0.108696 | 0.667874 | 0.612319 | 0.582126 | 0.582126 | 0.507246 | 0.507246 | 0 | 0.103704 | 0.215686 | 1,377 | 51 | 112 | 27 | 0.662963 | 0 | 0 | 0.432432 | 0 | 0.081081 | 0.379536 | 0.033382 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.054054 | 0.081081 | null | null | 0.108108 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
4e51a3c4018f1806f6ecbdac62369dc0a50a6f19 | 634 | py | Python | shreya/reference/cognitive_engine_connection.py | FYQ0919/Your_First_Decentralized_Application_Python | 21afb71a79c798c02a972eec6d54b4a17526358b | [
"MIT"
] | 2 | 2020-10-12T06:17:23.000Z | 2020-10-14T18:12:37.000Z | shreya/reference/cognitive_engine_connection.py | FYQ0919/Your_First_Decentralized_Application_Python | 21afb71a79c798c02a972eec6d54b4a17526358b | [
"MIT"
] | null | null | null | shreya/reference/cognitive_engine_connection.py | FYQ0919/Your_First_Decentralized_Application_Python | 21afb71a79c798c02a972eec6d54b4a17526358b | [
"MIT"
] | null | null | null | from flask import Blueprint, request
job_execution = Blueprint('job_execution')
@job_execution.route('/api/request_state_from_blockchain', methods=['POST'])
def request_state_from_blockchain():
'''
Checks if all executors involved have reported their results here.
Updates exec_step_status when the exec ... | 31.7 | 92 | 0.72082 | 84 | 634 | 5.297619 | 0.607143 | 0.080899 | 0.067416 | 0.116854 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.189274 | 634 | 20 | 93 | 31.7 | 0.865759 | 0.383281 | 0 | 0 | 0 | 0 | 0.178571 | 0.093407 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.111111 | 0.333333 | 0 | 0.555556 | 0.222222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 2 |
4e564068e102a1b9819a2c1db20834ef7f028615 | 644 | py | Python | features/kill.py | magnusstubman/mal00 | e99cad410657bf0452cae02d81d89c211732a789 | [
"MIT"
] | 3 | 2021-03-29T13:28:31.000Z | 2021-10-12T09:33:14.000Z | features/kill.py | magnusstubman/mal00 | e99cad410657bf0452cae02d81d89c211732a789 | [
"MIT"
] | null | null | null | features/kill.py | magnusstubman/mal00 | e99cad410657bf0452cae02d81d89c211732a789 | [
"MIT"
] | 1 | 2021-04-05T10:19:34.000Z | 2021-04-05T10:19:34.000Z | from features import addFeature
import messages
from messages import OutgoingMessage
class KillCommand:
command = 'kill'
def run(arguments, implant):
if not implant:
print('use implant first!')
else:
message = OutgoingMessage(KillCommand.command, None)
implant.queueOutgoingMessage(messag... | 23.851852 | 107 | 0.706522 | 73 | 644 | 6.232877 | 0.630137 | 0.079121 | 0.057143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.200311 | 644 | 26 | 108 | 24.769231 | 0.883495 | 0 | 0 | 0.111111 | 0 | 0 | 0.195652 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.166667 | 0.111111 | 0.611111 | 0.111111 | 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 | 0 | 0 | 0 | 2 |
4e68d62d90de10a6efb1f72d67fe2a6de143a2f4 | 1,712 | py | Python | core/argo/core/network/s-vae/hyperspherical_vae/ops/ive.py | szokejokepu/natural-rws | bb1ad4ca3ec714e6bf071d2136593dc853492b68 | [
"MIT"
] | 164 | 2018-06-29T09:19:38.000Z | 2022-02-12T01:39:58.000Z | hyperspherical_vae_tensorflow/ops/ive.py | pimdh/svae-temp | 49d3974e66abc761312432f28ae57fe714d17451 | [
"MIT"
] | 2 | 2018-12-24T09:41:31.000Z | 2020-02-18T14:14:25.000Z | hyperspherical_vae_tensorflow/ops/ive.py | pimdh/svae-temp | 49d3974e66abc761312432f28ae57fe714d17451 | [
"MIT"
] | 27 | 2018-08-01T17:41:28.000Z | 2021-12-21T22:39:05.000Z | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | 41.756098 | 97 | 0.65771 | 237 | 1,712 | 4.704641 | 0.468354 | 0.043049 | 0.089686 | 0.061883 | 0.239462 | 0.098655 | 0.098655 | 0.098655 | 0.098655 | 0 | 0 | 0.011021 | 0.205023 | 1,712 | 40 | 98 | 42.8 | 0.808229 | 0.464369 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.388889 | 0.055556 | 0.611111 | 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 | 0 | 1 | 0 | 0 | 2 |
4e9280c991c70e6fc2632ffb753bc8caa29142f8 | 407 | py | Python | manager/context_manager.py | chm10/MyShortcuts | db8185c68c069a344188b1aa9fea3d8f72ff862b | [
"BSD-2-Clause"
] | 1 | 2019-08-31T00:49:29.000Z | 2019-08-31T00:49:29.000Z | manager/context_manager.py | chm10/MyShortcuts | db8185c68c069a344188b1aa9fea3d8f72ff862b | [
"BSD-2-Clause"
] | null | null | null | manager/context_manager.py | chm10/MyShortcuts | db8185c68c069a344188b1aa9fea3d8f72ff862b | [
"BSD-2-Clause"
] | null | null | null | #!/us/bin/env python3
import time
class timer (object):
def __enter__(self):
self.start = time.time()
print('Timer starts at: %s' % self.start)
return self
def __exit__(self, type, value, traceback):
self.stop = time.time()
print('Timer stops at: %s' % sel... | 25.4375 | 56 | 0.55774 | 51 | 407 | 4.294118 | 0.490196 | 0.123288 | 0.118721 | 0.164384 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003546 | 0.307125 | 407 | 15 | 57 | 27.133333 | 0.77305 | 0.04914 | 0 | 0.181818 | 0 | 0 | 0.12938 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.090909 | 0 | 0.545455 | 0.272727 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
4ea5e43f900c21881240337948ce7431cfe3bd18 | 1,326 | py | Python | main.py | majickdave/musicmind_collector | 1669fb9e33a11db982ff331e542eef887a5cf9b7 | [
"MIT"
] | null | null | null | main.py | majickdave/musicmind_collector | 1669fb9e33a11db982ff331e542eef887a5cf9b7 | [
"MIT"
] | null | null | null | main.py | majickdave/musicmind_collector | 1669fb9e33a11db982ff331e542eef887a5cf9b7 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Sun Feb 05 20:42:19 2017
@author: david
"""
import audio_features0
import string
import json
import time
#Enter Artist Track and confirm lyrics and analysis
a = raw_input('Artist: ') ; b = raw_input('Track: ')
# a = 'london grammar'; b = 'oh woman'
if __name__=='... | 26.52 | 79 | 0.525641 | 164 | 1,326 | 4.042683 | 0.463415 | 0.054299 | 0.036199 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019978 | 0.320513 | 1,326 | 50 | 80 | 26.52 | 0.715871 | 0.574661 | 0 | 0 | 0 | 0 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.444444 | null | null | 0.111111 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
4ecb24b4f01fed8915d22f24fbf14981ef6c859e | 407 | py | Python | django_extras/templatetags/humanize_extras.py | gem/django-extras | d692e87891fe4cb79726437d3185628c1a9e2f33 | [
"BSD-3-Clause"
] | 18 | 2015-08-22T08:59:48.000Z | 2020-10-08T17:15:23.000Z | django_extras/templatetags/humanize_extras.py | gem/django-extras | d692e87891fe4cb79726437d3185628c1a9e2f33 | [
"BSD-3-Clause"
] | 4 | 2018-01-06T23:19:20.000Z | 2020-10-09T02:22:45.000Z | django_extras/templatetags/humanize_extras.py | gem/django-extras | d692e87891fe4cb79726437d3185628c1a9e2f33 | [
"BSD-3-Clause"
] | 9 | 2015-06-15T17:28:03.000Z | 2021-08-29T07:26:50.000Z | from django import template
from django_extras.utils import humanize
register = template.Library()
@register.filter(is_safe=True)
def describe_seconds(value):
"""
Convert a seconds value into a human readable (ie week, day, hour) value.
:param value: integer value of the number of seconds.
:return: ... | 25.4375 | 77 | 0.734644 | 56 | 407 | 5.267857 | 0.625 | 0.122034 | 0.135593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184275 | 407 | 15 | 78 | 27.133333 | 0.888554 | 0.420147 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
4ed32f803d69eba7c1f4fb283c955d8c4c02f0f6 | 2,585 | py | Python | src/docs.py | yaroslavNikolaev/A.R.M.O.R. | 443b50ad39b7ada7562db62c36824c7c4edb842b | [
"MIT"
] | 1 | 2020-03-29T20:53:28.000Z | 2020-03-29T20:53:28.000Z | src/docs.py | yaroslavNikolaev/A.R.M.O.R. | 443b50ad39b7ada7562db62c36824c7c4edb842b | [
"MIT"
] | null | null | null | src/docs.py | yaroslavNikolaev/A.R.M.O.R. | 443b50ad39b7ada7562db62c36824c7c4edb842b | [
"MIT"
] | null | null | null | from utils.configuration import Configuration
from scanners import CollectorFactory
INTRO = '''
## A.R.M.O.R. - Altered-Reality Monitoring and Operational Response
### Mission
Detect difference between current version of installed software and the newest one.
ARMOR is designed to help developers and devops t... | 43.083333 | 125 | 0.68472 | 338 | 2,585 | 5.201183 | 0.455621 | 0.0438 | 0.008532 | 0.011377 | 0.109215 | 0.052332 | 0 | 0 | 0 | 0 | 0 | 0.003899 | 0.20619 | 2,585 | 59 | 126 | 43.813559 | 0.852827 | 0.022824 | 0 | 0.083333 | 0 | 0.125 | 0.732797 | 0.026962 | 0 | 0 | 0 | 0.016949 | 0 | 1 | 0 | false | 0 | 0.041667 | 0 | 0.041667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4ed581847003d9bff39a3e67099f5d2f0b035f9f | 507 | py | Python | CS2420/Notes/Feb/2-12.py | Davidjbennett/DavidBennett.github.io | 09a2652b7ace8741bf23c6432abd58ee790b9f0c | [
"MIT"
] | 3 | 2021-05-18T16:17:29.000Z | 2022-01-20T15:46:59.000Z | CS2420/Notes/Feb/2-12.py | Davidjbennett/DavidBennett | 09a2652b7ace8741bf23c6432abd58ee790b9f0c | [
"MIT"
] | null | null | null | CS2420/Notes/Feb/2-12.py | Davidjbennett/DavidBennett | 09a2652b7ace8741bf23c6432abd58ee790b9f0c | [
"MIT"
] | null | null | null |
#! Unordered List Abstract Data type (UML Diagram)
# add(item) adds new item to list
# remove(item) removes item from the list
# search(item) searchs for item in the list. returns true of false
# isEmpty() test if list is empty or not
# length() returns number of items in the list
# append() adds item to end of list
#... | 39 | 66 | 0.739645 | 90 | 507 | 4.166667 | 0.5 | 0.074667 | 0.072 | 0.069333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.189349 | 507 | 12 | 67 | 42.25 | 0.912409 | 0.954635 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4ed5abff6180a9474f661134ca38c21f4edc15d0 | 3,841 | py | Python | ecl/tests/unit/network/v2/test_quota.py | keiichi-hikita/eclsdk | c43afb982fd54eb1875cdc22d46044644d804c4a | [
"Apache-2.0"
] | 5 | 2017-04-07T06:23:04.000Z | 2019-11-19T00:52:34.000Z | ecl/tests/unit/network/v2/test_quota.py | keiichi-hikita/eclsdk | c43afb982fd54eb1875cdc22d46044644d804c4a | [
"Apache-2.0"
] | 16 | 2018-09-12T11:14:40.000Z | 2021-04-19T09:02:44.000Z | ecl/tests/unit/network/v2/test_quota.py | keiichi-hikita/eclsdk | c43afb982fd54eb1875cdc22d46044644d804c4a | [
"Apache-2.0"
] | 14 | 2017-05-11T14:26:26.000Z | 2021-07-14T14:00:06.000Z | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | 41.75 | 93 | 0.707628 | 453 | 3,841 | 5.847682 | 0.269316 | 0.1812 | 0.199321 | 0.065685 | 0.543601 | 0.369951 | 0.249906 | 0.04832 | 0.04832 | 0 | 0 | 0.005049 | 0.174954 | 3,841 | 91 | 94 | 42.208791 | 0.830861 | 0.135902 | 0 | 0.057971 | 0 | 0 | 0.147868 | 0.049894 | 0 | 0 | 0 | 0 | 0.608696 | 1 | 0.057971 | false | 0 | 0.028986 | 0 | 0.115942 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
14c72ec37a70b92517a8b215dd1e93abd24d6689 | 279 | py | Python | controllers/base_controller.py | allen-garvey/gae-library | e66210f2345c92c09e46b9d402a9e1c26bb46539 | [
"MIT"
] | null | null | null | controllers/base_controller.py | allen-garvey/gae-library | e66210f2345c92c09e46b9d402a9e1c26bb46539 | [
"MIT"
] | null | null | null | controllers/base_controller.py | allen-garvey/gae-library | e66210f2345c92c09e46b9d402a9e1c26bb46539 | [
"MIT"
] | null | null | null | import webapp2
import json
#base controller class
class BaseController(webapp2.RequestHandler):
#convenience method for writing json response
def write_json(self, json_string):
self.response.content_type = 'application/json'
self.response.write(json_string) | 27.9 | 55 | 0.774194 | 34 | 279 | 6.235294 | 0.588235 | 0.084906 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008475 | 0.154122 | 279 | 10 | 56 | 27.9 | 0.889831 | 0.232975 | 0 | 0 | 0 | 0 | 0.075117 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
14d28eaad6b3957f25c1f3701b03066124d73a33 | 246 | py | Python | Orest Lab 2/2d.py | PetroSidliar/Lab-2 | 0e95ef61b62cb54906500500bb042ab79ef28384 | [
"MIT"
] | null | null | null | Orest Lab 2/2d.py | PetroSidliar/Lab-2 | 0e95ef61b62cb54906500500bb042ab79ef28384 | [
"MIT"
] | null | null | null | Orest Lab 2/2d.py | PetroSidliar/Lab-2 | 0e95ef61b62cb54906500500bb042ab79ef28384 | [
"MIT"
] | null | null | null | grade = eval ( input ( ' Enter your credit: ' ))
if grade<=23:
print ( ' Freshman ' )
elif grade>=24 and grade<=53:
print ( ' Sophomore ' )
elif grade>=54 and grade<=83:
print ( ' Juniors ' )
elif grade>=84:
print ( ' Seniors ' )
| 24.6 | 48 | 0.577236 | 32 | 246 | 4.4375 | 0.625 | 0.190141 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065934 | 0.260163 | 246 | 9 | 49 | 27.333333 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0.239837 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.444444 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
14e7b7ec50508b14ae420a7d360c77faab28cc50 | 3,838 | py | Python | niprov/repository.py | kambysese/niprov | 05b24b8e60e2e637fc2dec754681226d793d1a08 | [
"BSD-3-Clause"
] | null | null | null | niprov/repository.py | kambysese/niprov | 05b24b8e60e2e637fc2dec754681226d793d1a08 | [
"BSD-3-Clause"
] | null | null | null | niprov/repository.py | kambysese/niprov | 05b24b8e60e2e637fc2dec754681226d793d1a08 | [
"BSD-3-Clause"
] | null | null | null |
class Repository(object):
def byLocation(self, locationString): # pragma: no cover
"""Get the provenance for a file at the given location.
In the case of a dicom series, this returns the provenance for the
series.
Args:
locationString (str): Loc... | 31.203252 | 84 | 0.525013 | 413 | 3,838 | 4.878935 | 0.244552 | 0.055583 | 0.090323 | 0.047643 | 0.446154 | 0.316129 | 0.28536 | 0.269479 | 0.193052 | 0.13201 | 0 | 0.001737 | 0.399948 | 3,838 | 122 | 85 | 31.459016 | 0.873209 | 0.584158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.933333 | false | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
14f19287990377720ae3bf1988ae4b6d52fae769 | 964 | py | Python | galaxy_dive/tests/test_read_data/test_rockstar.py | zhafen/galaxy-dive | e1127da25d10f699b3ada01b1b4635255f4f3917 | [
"MIT"
] | null | null | null | galaxy_dive/tests/test_read_data/test_rockstar.py | zhafen/galaxy-dive | e1127da25d10f699b3ada01b1b4635255f4f3917 | [
"MIT"
] | 1 | 2018-12-17T21:11:18.000Z | 2018-12-17T21:11:18.000Z | galaxy_dive/tests/test_read_data/test_rockstar.py | zhafen/galaxy-dive | e1127da25d10f699b3ada01b1b4635255f4f3917 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
'''Testing for read_rockstar.py
@author: Zach Hafen
@contact: zachary.h.hafen@gmail.com
@status: Development
'''
import glob
from mock import call, patch
import numpy as np
import numpy.testing as npt
import os
import pdb
import pytest
import unittest
import galaxy_dive.read_data.rockstar as re... | 22.952381 | 74 | 0.573651 | 102 | 964 | 5.284314 | 0.568627 | 0.06679 | 0.100186 | 0.081633 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010753 | 0.131743 | 964 | 41 | 75 | 23.512195 | 0.633214 | 0.131743 | 0 | 0 | 0 | 0 | 0.044046 | 0.040783 | 0 | 0 | 0 | 0 | 0.05 | 1 | 0.1 | false | 0 | 0.5 | 0 | 0.65 | 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 | 0 | 1 | 0 | 0 | 2 |
090f80e88e8a22418f4ed4d800950e4856fcf921 | 254 | py | Python | src/ui/cli/input.py | FilaCo/upg | b3a5ea617313d8ae481a1f8f65532b1b264738fb | [
"MIT"
] | null | null | null | src/ui/cli/input.py | FilaCo/upg | b3a5ea617313d8ae481a1f8f65532b1b264738fb | [
"MIT"
] | null | null | null | src/ui/cli/input.py | FilaCo/upg | b3a5ea617313d8ae481a1f8f65532b1b264738fb | [
"MIT"
] | null | null | null | import click
from ui.cli.command import Command
class Input(Command):
def __init__(self, title: str, value=None):
self.title = title
self.value = value
def render(self):
click.echo("%s\t%s" % (self.title, self.value))
| 19.538462 | 55 | 0.629921 | 36 | 254 | 4.333333 | 0.527778 | 0.173077 | 0.179487 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.240157 | 254 | 12 | 56 | 21.166667 | 0.80829 | 0 | 0 | 0 | 0 | 0 | 0.023622 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
091455babee31da6ab5b24ea51dd4bd05f27bdfc | 201 | py | Python | email_signals/urls.py | Salaah01/django-email-signals | c9a570a4c34321faa7642b94eedf60145e4fc2ff | [
"MIT"
] | 14 | 2021-12-12T16:33:27.000Z | 2022-03-25T06:42:06.000Z | email_signals/urls.py | webclinic017/django-email-signals | b58929ac10f30e3e34cc8dd97be22ab1d8b145c6 | [
"MIT"
] | 1 | 2022-03-18T11:53:08.000Z | 2022-03-18T18:54:38.000Z | email_signals/urls.py | webclinic017/django-email-signals | b58929ac10f30e3e34cc8dd97be22ab1d8b145c6 | [
"MIT"
] | 5 | 2021-12-07T23:35:23.000Z | 2022-03-27T17:17:42.000Z | from django.urls import path
from . import views
urlpatterns = [
path(
"model-attrs/<int:content_type_id>/",
views.model_attrs,
name="django_signals_model_attrs",
),
]
| 18.272727 | 45 | 0.636816 | 24 | 201 | 5.083333 | 0.625 | 0.245902 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.248756 | 201 | 10 | 46 | 20.1 | 0.807947 | 0 | 0 | 0 | 0 | 0 | 0.298507 | 0.298507 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 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 | 0 | 0 | 0 | 0 | 0 | 2 |
09154f715c718aa9ce03a606ae941c1521983c90 | 2,550 | py | Python | clients/python/tyckiting_client/ai/myai.py | HimanshuSingal/space_mission | 7d032f02b6144f412e23cd012d87965f68484fea | [
"MIT"
] | null | null | null | clients/python/tyckiting_client/ai/myai.py | HimanshuSingal/space_mission | 7d032f02b6144f412e23cd012d87965f68484fea | [
"MIT"
] | null | null | null | clients/python/tyckiting_client/ai/myai.py | HimanshuSingal/space_mission | 7d032f02b6144f412e23cd012d87965f68484fea | [
"MIT"
] | null | null | null | import random
from tyckiting_client.ai import base
from tyckiting_client import actions
class Ai(base.BaseAi):
a = 0
wait_list = []
def move(self, bots, events):
"""
Move the bot to a random legal positon.
Args:
bots: List of bot states for own team
event... | 28.977273 | 82 | 0.512941 | 360 | 2,550 | 3.480556 | 0.255556 | 0.035914 | 0.039904 | 0.028731 | 0.167598 | 0.124501 | 0.062251 | 0.039904 | 0 | 0 | 0 | 0.003851 | 0.38902 | 2,550 | 88 | 83 | 28.977273 | 0.800385 | 0.045098 | 0 | 0.169492 | 0 | 0 | 0.008264 | 0 | 0 | 0 | 0 | 0.011364 | 0 | 0 | null | null | 0.016949 | 0.050847 | null | null | 0.050847 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
09327493d0c648a98a041898f56aea4b1d5dc17b | 69 | py | Python | Beginner/1016.py | pedrodanieljardim/DesafiosURI-feitos-em-JAVA | 4e727e1b08e01f527d0b7b884c268643f1472ded | [
"MIT"
] | 1 | 2022-03-19T18:06:25.000Z | 2022-03-19T18:06:25.000Z | Beginner/1016.py | pedrodanieljardim/beecrowd | 4e727e1b08e01f527d0b7b884c268643f1472ded | [
"MIT"
] | null | null | null | Beginner/1016.py | pedrodanieljardim/beecrowd | 4e727e1b08e01f527d0b7b884c268643f1472ded | [
"MIT"
] | null | null | null |
km = int(input())
minutes = 2*km
print("{} minutos".format(minutes)) | 17.25 | 35 | 0.652174 | 10 | 69 | 4.5 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016393 | 0.115942 | 69 | 4 | 35 | 17.25 | 0.721311 | 0 | 0 | 0 | 0 | 0 | 0.144928 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0940acc5b7553481f6b2c0a210942f5b28d9f297 | 112 | py | Python | knightbook/splitting.py | beninato8/selenium | 56e8ed005999b8e29a4bae0ff69ae583f614fc17 | [
"MIT"
] | null | null | null | knightbook/splitting.py | beninato8/selenium | 56e8ed005999b8e29a4bae0ff69ae583f614fc17 | [
"MIT"
] | null | null | null | knightbook/splitting.py | beninato8/selenium | 56e8ed005999b8e29a4bae0ff69ae583f614fc17 | [
"MIT"
] | null | null | null | m = 'John Smithfather'
a = m[:-6]
b = m[-6:]
print(b.title() + ": " + a)
print('AsDf'.lower(), 'AsDf'.upper()) | 16 | 37 | 0.508929 | 18 | 112 | 3.166667 | 0.611111 | 0.070175 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021505 | 0.169643 | 112 | 7 | 37 | 16 | 0.591398 | 0 | 0 | 0 | 0 | 0 | 0.230089 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 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 | 0 | 0 | 2 |
094c4f81c2a9a1afcdb37545147e9a797d3defcc | 1,361 | py | Python | webup/content_type.py | cariad/webup | 29f636ffd50a605c2dc11d82d17cfcb6ce961f8c | [
"MIT"
] | null | null | null | webup/content_type.py | cariad/webup | 29f636ffd50a605c2dc11d82d17cfcb6ce961f8c | [
"MIT"
] | 5 | 2021-12-24T17:40:35.000Z | 2022-01-19T14:16:50.000Z | webup/content_type.py | cariad/webup | 29f636ffd50a605c2dc11d82d17cfcb6ce961f8c | [
"MIT"
] | null | null | null | from typing import Dict
from webup.suffix import normalize_suffix
_content_types: Dict[str, str] = {}
_default_content_type = ""
def set_default_content_type(type: str = "application/octet-stream") -> None:
"""
Sets the default Content-Type header for file types not registered via
`set_content_type`.
... | 25.203704 | 77 | 0.71712 | 183 | 1,361 | 5.04918 | 0.349727 | 0.238095 | 0.151515 | 0.064935 | 0.101732 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001761 | 0.16532 | 1,361 | 53 | 78 | 25.679245 | 0.81162 | 0.278472 | 0 | 0.090909 | 0 | 0 | 0.16048 | 0.056769 | 0 | 0 | 0 | 0.018868 | 0 | 1 | 0.136364 | false | 0 | 0.090909 | 0 | 0.272727 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
094d43508d084e8f2ebbda458321ec3a7354ae59 | 247 | py | Python | commanderbot_lib/database/mixins/yaml_file_database_mixin.py | CommanderBot-Dev/commanderbot-lib | 2716279b059056eaf0797085149b61f71b175ed5 | [
"MIT"
] | 1 | 2020-09-25T19:22:47.000Z | 2020-09-25T19:22:47.000Z | commanderbot_lib/database/mixins/yaml_file_database_mixin.py | CommanderBot-Dev/commanderbot-lib | 2716279b059056eaf0797085149b61f71b175ed5 | [
"MIT"
] | 1 | 2021-01-06T00:22:56.000Z | 2021-08-29T20:54:50.000Z | commanderbot_lib/database/mixins/yaml_file_database_mixin.py | CommanderBot-Dev/commanderbot-lib | 2716279b059056eaf0797085149b61f71b175ed5 | [
"MIT"
] | 2 | 2020-09-25T19:23:07.000Z | 2020-09-25T21:06:11.000Z | from typing import IO
import yaml
class YamlFileDatabaseMixin:
async def load_yaml(self, file: IO) -> dict:
return yaml.safe_load(file)
async def dump_yaml(self, data: dict, file: IO):
return yaml.safe_dump(data, file)
| 20.583333 | 52 | 0.688259 | 36 | 247 | 4.611111 | 0.472222 | 0.096386 | 0.168675 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222672 | 247 | 11 | 53 | 22.454545 | 0.864583 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.285714 | 0 | 0.714286 | 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 | 0 | 0 | 1 | 0 | 0 | 2 |
09524d9528ae71f349ef595b6b56d130035c039f | 1,731 | py | Python | tests/datatypes/test_resolver_address.py | VIDA-NYU/openclean-pattern | 8d8a94691f9bfa5dcf8773b08ceb8e562fce52df | [
"BSD-3-Clause"
] | 4 | 2021-04-20T09:05:51.000Z | 2022-01-28T14:13:37.000Z | tests/datatypes/test_resolver_address.py | VIDA-NYU/openclean-pattern | 8d8a94691f9bfa5dcf8773b08ceb8e562fce52df | [
"BSD-3-Clause"
] | 1 | 2021-04-09T08:49:33.000Z | 2021-04-09T08:49:33.000Z | tests/datatypes/test_resolver_address.py | VIDA-NYU/openclean-pattern | 8d8a94691f9bfa5dcf8773b08ceb8e562fce52df | [
"BSD-3-Clause"
] | null | null | null | # This file is part of the Pattern and Anomaly Detection Library (openclean_pattern).
#
# Copyright (C) 2021 New York University.
#
# openclean_pattern is released under the Revised BSD License. See file LICENSE for
# full license details.
"""unit tests for address type resolver classs"""
from openclean_pattern.datat... | 48.083333 | 119 | 0.774119 | 205 | 1,731 | 6.37561 | 0.409756 | 0.119357 | 0.268554 | 0.146901 | 0.316756 | 0.316756 | 0.215761 | 0 | 0 | 0 | 0 | 0.017276 | 0.13056 | 1,731 | 35 | 120 | 49.457143 | 0.851163 | 0.186597 | 0 | 0 | 0 | 0 | 0.043011 | 0 | 0 | 0 | 0 | 0 | 0.619048 | 1 | 0.047619 | false | 0 | 0.142857 | 0 | 0.190476 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
117cc054ca0616874ff5d9fc7e2de421c2407ed3 | 1,497 | py | Python | SecML/src/secml/core/tests/test_attr_utils.py | dsolanno/Poisoning-Attacks-on-Algorithmic-Fairness | 77698340906fd0ec68d857315283d849e236ebd7 | [
"MIT"
] | 5 | 2020-07-09T13:03:34.000Z | 2021-02-16T17:15:26.000Z | SecML/src/secml/core/tests/test_attr_utils.py | dsolanno/Poisoning-Attacks-on-Algorithmic-Fairness | 77698340906fd0ec68d857315283d849e236ebd7 | [
"MIT"
] | 1 | 2021-12-30T21:11:50.000Z | 2021-12-30T21:11:50.000Z | SecML/src/secml/core/tests/test_attr_utils.py | dsolanno/Poisoning-Attacks-on-Algorithmic-Fairness | 77698340906fd0ec68d857315283d849e236ebd7 | [
"MIT"
] | 2 | 2021-03-22T19:22:56.000Z | 2021-09-19T20:07:10.000Z | from secml.testing import CUnitTest
from secml.core.attr_utils import extract_attr
class TestAttributeUtilities(CUnitTest):
"""Unit test for secml.core.attr_utils."""
def test_extract_attr(self):
# Toy class for testing
class Foo:
def __init__(self):
self.a = 5
... | 26.732143 | 72 | 0.480962 | 180 | 1,497 | 3.694444 | 0.272222 | 0.210526 | 0.156391 | 0.084211 | 0.099248 | 0.054135 | 0.054135 | 0 | 0 | 0 | 0 | 0.004103 | 0.348697 | 1,497 | 55 | 73 | 27.218182 | 0.677949 | 0.039412 | 0 | 0.175 | 0 | 0 | 0.131983 | 0 | 0 | 0 | 0 | 0 | 0.025 | 1 | 0.15 | false | 0.075 | 0.05 | 0 | 0.25 | 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 | 0 | 0 | 0 | 2 |
1183648424185e5329ae3eb63d9f938421255ca6 | 967 | py | Python | hyparam.py | Shihab-Shahriar/500-miles | 49fc9c6d037521f454da4bc02cccd62117c0ac5f | [
"MIT"
] | null | null | null | hyparam.py | Shihab-Shahriar/500-miles | 49fc9c6d037521f454da4bc02cccd62117c0ac5f | [
"MIT"
] | null | null | null | hyparam.py | Shihab-Shahriar/500-miles | 49fc9c6d037521f454da4bc02cccd62117c0ac5f | [
"MIT"
] | null | null | null | from time import perf_counter
import numpy as np
from sklearn.model_selection import RepeatedStratifiedKFold
from sklearn.metrics import *
from sklearn.neighbors import KNeighborsClassifier
from sklearn.svm import SVC
from sklearn.decomposition import PCA
from sklearn.manifold import TSNE
import matplotlib.pyplot as pl... | 37.192308 | 126 | 0.76939 | 150 | 967 | 4.76 | 0.46 | 0.107843 | 0.056022 | 0.067227 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015421 | 0.128232 | 967 | 26 | 127 | 37.192308 | 0.831554 | 0 | 0 | 0 | 0 | 0 | 0.084711 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.521739 | 0.043478 | 0.565217 | 0.043478 | 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 | 0 | 1 | 0 | 0 | 2 |
11951835e0f5114e1283c50629572d6483a7d055 | 748 | py | Python | src/textdatasetcleaner/processors/normalize_unicode.py | ameyuuno/TextDatasetCleaner | 93f380748f348a8159e6111517b9afec839ec3fe | [
"MIT"
] | 27 | 2020-02-16T14:48:57.000Z | 2022-02-08T17:42:17.000Z | src/textdatasetcleaner/processors/normalize_unicode.py | ameyuuno/TextDatasetCleaner | 93f380748f348a8159e6111517b9afec839ec3fe | [
"MIT"
] | 6 | 2020-03-10T12:12:50.000Z | 2021-12-14T11:17:50.000Z | src/textdatasetcleaner/processors/normalize_unicode.py | ameyuuno/TextDatasetCleaner | 93f380748f348a8159e6111517b9afec839ec3fe | [
"MIT"
] | 9 | 2020-02-16T11:31:50.000Z | 2021-09-03T06:05:59.000Z | from pathlib import Path
from typing import Optional
from textacy.preprocessing import normalize_unicode # type: ignore
from textdatasetcleaner.exceptions import TDCValueError
from textdatasetcleaner.processors.base import BaseProcessor
class NormalizeUnicodeProcessor(BaseProcessor):
__processor_name__ = Path... | 31.166667 | 105 | 0.717914 | 86 | 748 | 6 | 0.534884 | 0.046512 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185829 | 748 | 23 | 106 | 32.521739 | 0.847291 | 0.016043 | 0 | 0 | 0 | 0 | 0.123978 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.333333 | 0.066667 | 0.733333 | 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 | 0 | 1 | 0 | 0 | 2 |
119f2a22e0c199590833fa7a10ac8c7b65340d21 | 948 | py | Python | src/unicon/plugins/nd/__init__.py | nielsvanhooy/unicon.plugins | 3416fd8223f070cbb67a2cbe604e3c5d13584318 | [
"Apache-2.0"
] | null | null | null | src/unicon/plugins/nd/__init__.py | nielsvanhooy/unicon.plugins | 3416fd8223f070cbb67a2cbe604e3c5d13584318 | [
"Apache-2.0"
] | null | null | null | src/unicon/plugins/nd/__init__.py | nielsvanhooy/unicon.plugins | 3416fd8223f070cbb67a2cbe604e3c5d13584318 | [
"Apache-2.0"
] | null | null | null | """
Module:
unicon.plugins.nd
Authors:
pyATS TEAM (pyats-support-ext@cisco.com)
Description:
This subpackage implements ND
"""
# from unicon.plugins.linux import LinuxConnection
from unicon.plugins.linux import LinuxConnection,LinuxServiceList
from unicon.plugins.linux.statemachine import LinuxStateMachi... | 29.625 | 93 | 0.793249 | 99 | 948 | 7.535354 | 0.464646 | 0.13941 | 0.159517 | 0.147453 | 0.115282 | 0.115282 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140295 | 948 | 31 | 94 | 30.580645 | 0.915337 | 0.445148 | 0 | 0 | 0 | 0 | 0.004024 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 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 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
11a0d5fa91874e02aae223d81660a973405061b2 | 448 | py | Python | python/7kyu/binary_addition.py | momchilantonov/codewars | 73517569cc02478bb943f8182e6001ee9d941e78 | [
"MIT"
] | null | null | null | python/7kyu/binary_addition.py | momchilantonov/codewars | 73517569cc02478bb943f8182e6001ee9d941e78 | [
"MIT"
] | null | null | null | python/7kyu/binary_addition.py | momchilantonov/codewars | 73517569cc02478bb943f8182e6001ee9d941e78 | [
"MIT"
] | null | null | null | def add_binary(a, b):
"""
Implement a function that adds two numbers together and
returns their sum in binary.
The conversion can be done before, or after the addition.
The binary number returned should be a string.
"""
return str(bin(a+b)[2:])
# TESTS
assert add_binary(1, 1) == "10"
asser... | 26.352941 | 61 | 0.65625 | 74 | 448 | 3.891892 | 0.581081 | 0.1875 | 0.260417 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073864 | 0.214286 | 448 | 16 | 62 | 28 | 0.744318 | 0.4375 | 0 | 0 | 0 | 0 | 0.058036 | 0 | 0 | 0 | 0 | 0 | 0.714286 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.285714 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
11abc1ce2a849ae61c5a961f90dabcbb00b5d4d0 | 406 | py | Python | callisto/web/status.py | isabella232/callisto | 182b9c3a56d13fbb3f8f199a984b4c4be6c17e9f | [
"MIT"
] | 84 | 2020-02-18T14:58:35.000Z | 2022-03-04T22:34:46.000Z | callisto/web/status.py | wrike/callisto | 182b9c3a56d13fbb3f8f199a984b4c4be6c17e9f | [
"MIT"
] | 6 | 2020-07-13T19:31:07.000Z | 2022-03-30T15:35:23.000Z | callisto/web/status.py | isabella232/callisto | 182b9c3a56d13fbb3f8f199a984b4c4be6c17e9f | [
"MIT"
] | 9 | 2021-03-08T10:17:29.000Z | 2022-03-04T12:21:53.000Z | from __future__ import annotations
import typing as t
import aiohttp.web as web
from ..libs.domains import consts
if t.TYPE_CHECKING:
from ..libs.use_cases.status import StatusUseCase
async def status_handler(request: web.Request) -> web.Response:
uc: StatusUseCase = request.app[consts.STATUS_USE_CASE_KE... | 20.3 | 63 | 0.768473 | 59 | 406 | 5.050847 | 0.542373 | 0.053691 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152709 | 406 | 19 | 64 | 21.368421 | 0.866279 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
11ad8bad71ad68c81335de043281493d8fc37fc2 | 1,069 | py | Python | projects/ide/sublime/src/Bolt/ui/write/highlight.py | boltjs/bolt | c2666c876b34b1a61486a432eef3141ca8d1e411 | [
"BSD-3-Clause"
] | 11 | 2015-09-29T19:19:34.000Z | 2020-11-20T09:14:46.000Z | projects/ide/sublime/src/Bolt/ui/write/highlight.py | boltjs/bolt | c2666c876b34b1a61486a432eef3141ca8d1e411 | [
"BSD-3-Clause"
] | null | null | null | projects/ide/sublime/src/Bolt/ui/write/highlight.py | boltjs/bolt | c2666c876b34b1a61486a432eef3141ca8d1e411 | [
"BSD-3-Clause"
] | null | null | null | import sublime
from ui.read import regions as read_regions
from structs.highlight_list import *
# Hmmm....
def highlight(view, regions, info):
if regions != None:
view.add_regions(info.name, regions, info.format, info.icon, info.mode)
else:
remove_highlight(view, info)
def remove_highlight(v... | 29.694444 | 100 | 0.734331 | 154 | 1,069 | 4.941558 | 0.298701 | 0.036794 | 0.039422 | 0.044678 | 0.136662 | 0.057819 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152479 | 1,069 | 35 | 101 | 30.542857 | 0.839956 | 0.007484 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.136364 | 0.090909 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
11ba2ceabc4cb0d1b56066053ae044b8b829bcb8 | 620 | py | Python | haskpy/conftest.py | jluttine/haskpy | 79fca70b5f46d8551ed61b4bbd040de5f5ba0440 | [
"MIT"
] | 2 | 2021-04-08T18:34:39.000Z | 2022-02-24T18:02:45.000Z | haskpy/conftest.py | jluttine/haskpy | 79fca70b5f46d8551ed61b4bbd040de5f5ba0440 | [
"MIT"
] | null | null | null | haskpy/conftest.py | jluttine/haskpy | 79fca70b5f46d8551ed61b4bbd040de5f5ba0440 | [
"MIT"
] | null | null | null | import sys
import hypothesis.strategies as st
from hypothesis import given
def is_pytest():
return "pytest" in sys.modules
def pytest_configure(config):
# Workaround for Hypothesis bug causing flaky tests if they use characters
# or text: https://github.com/HypothesisWorks/hypothesis/issues/2108
@gi... | 19.375 | 78 | 0.698387 | 77 | 620 | 5.506494 | 0.545455 | 0.153302 | 0.084906 | 0.113208 | 0.179245 | 0.179245 | 0 | 0 | 0 | 0 | 0 | 0.008282 | 0.220968 | 620 | 31 | 79 | 20 | 0.869565 | 0.566129 | 0 | 0 | 0 | 0 | 0.023346 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0.090909 | 0.272727 | 0.090909 | 0.727273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
11c1bef9e55ff165a33b521513766f8ed4bfe64d | 492 | py | Python | transmute_core/tests/frameworks/test_aiohttp/test_parsing.py | toumorokoshi/web-transmute | ff118e01e42bc224cdf2d7523c3b287aae40d669 | [
"MIT"
] | null | null | null | transmute_core/tests/frameworks/test_aiohttp/test_parsing.py | toumorokoshi/web-transmute | ff118e01e42bc224cdf2d7523c3b287aae40d669 | [
"MIT"
] | null | null | null | transmute_core/tests/frameworks/test_aiohttp/test_parsing.py | toumorokoshi/web-transmute | ff118e01e42bc224cdf2d7523c3b287aae40d669 | [
"MIT"
] | null | null | null | import pytest
@pytest.mark.asyncio
async def test_parsing_multiiple_query_params(cli):
resp = await cli.get("/multiple_query_params?tag=foo&tag=bar")
ret_value = await resp.json()
assert 200 == resp.status
assert ret_value == "foo,bar"
@pytest.mark.asyncio
async def test_parsing_multiple_query_param... | 27.333333 | 66 | 0.729675 | 73 | 492 | 4.671233 | 0.356164 | 0.129032 | 0.167155 | 0.129032 | 0.797654 | 0.797654 | 0.797654 | 0.58651 | 0.58651 | 0.58651 | 0 | 0.014493 | 0.158537 | 492 | 17 | 67 | 28.941176 | 0.809179 | 0 | 0 | 0.461538 | 0 | 0 | 0.158537 | 0.138211 | 0 | 0 | 0 | 0 | 0.307692 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.076923 | 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 | 0 | 0 | 0 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.