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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
18322b5480b04d8b17dbf27fff17fe676a86b859 | 138 | py | Python | number_writer.py | ReverseScale/PyDemo | 9cc6f3cbb8482f6e403bf65419537b0163798e61 | [
"MIT"
] | null | null | null | number_writer.py | ReverseScale/PyDemo | 9cc6f3cbb8482f6e403bf65419537b0163798e61 | [
"MIT"
] | null | null | null | number_writer.py | ReverseScale/PyDemo | 9cc6f3cbb8482f6e403bf65419537b0163798e61 | [
"MIT"
] | null | null | null | import json
numbers = [2, 3, 4, 5]
filename = 'json_files/numbers.json'
with open(filename, 'a') as f_obj:
json.dump(numbers, f_obj) | 19.714286 | 36 | 0.681159 | 24 | 138 | 3.791667 | 0.666667 | 0.087912 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034783 | 0.166667 | 138 | 7 | 37 | 19.714286 | 0.756522 | 0 | 0 | 0 | 0 | 0 | 0.172662 | 0.165468 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
183793fa5db481b108702ff688305a11cee93a60 | 919 | py | Python | tests/test_excel_loader.py | patarapolw/pyexcel-formatter | 119fdcefcf9552816283dfc7b0a6cdfbadedb122 | [
"MIT"
] | 4 | 2018-07-19T12:11:51.000Z | 2019-12-04T02:33:50.000Z | tests/test_excel_loader.py | patarapolw/pyexcel-formatter | 119fdcefcf9552816283dfc7b0a6cdfbadedb122 | [
"MIT"
] | 4 | 2018-07-17T08:47:37.000Z | 2019-12-19T10:05:25.000Z | tests/test_excel_loader.py | patarapolw/pyexcel-formatter | 119fdcefcf9552816283dfc7b0a6cdfbadedb122 | [
"MIT"
] | 2 | 2018-07-17T08:32:13.000Z | 2019-12-17T13:41:26.000Z | # import pytest
# from pathlib import Path
#
# from pyexcel_export import ExcelLoader
#
#
# @pytest.mark.parametrize('in_file', [
# "PathoDict.yaml",
# "data_only.pyexcel.json",
# "data_only.yaml",
# "full.pyexcel.json",
# "full.yaml",
# "no_style.pyexcel.json",
# "no_style.yaml",
# "tes... | 24.837838 | 80 | 0.623504 | 116 | 919 | 4.689655 | 0.327586 | 0.099265 | 0.055147 | 0.077206 | 0.113971 | 0.113971 | 0 | 0 | 0 | 0 | 0 | 0 | 0.212187 | 919 | 36 | 81 | 25.527778 | 0.751381 | 0.920566 | 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 |
183d1666d0e4f0fcdc3df305fbb0385f51b7bdb1 | 1,026 | py | Python | faqboard/utils.py | shagun30/djambala-2 | 06f14e3dd237d7ebf535c62172cfe238c3934f4d | [
"BSD-3-Clause"
] | null | null | null | faqboard/utils.py | shagun30/djambala-2 | 06f14e3dd237d7ebf535c62172cfe238c3934f4d | [
"BSD-3-Clause"
] | null | null | null | faqboard/utils.py | shagun30/djambala-2 | 06f14e3dd237d7ebf535c62172cfe238c3934f4d | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
/dms/faqboard/utils.py
.. enthaelt Hilfefunktionen fuer FAQ-Listen
Django content Management System
Werner Fabian
w.fabian@afl.hessen.de
Die Programme des dms-Systems koennen frei genutzt und den spezifischen
Beduerfnissen entsprechend angepasst werden.
0.01 01.10.2007 Beginn ... | 27.72973 | 71 | 0.657895 | 123 | 1,026 | 5.333333 | 0.601626 | 0.045732 | 0.030488 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017084 | 0.14425 | 1,026 | 36 | 72 | 28.5 | 0.730068 | 0.466862 | 0 | 0 | 0 | 0 | 0.092628 | 0.056711 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.307692 | 0.076923 | 0.692308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
184b564e466c9f8bf6a36ae5c5a8c2e841f87f67 | 487 | py | Python | test/test_datetime.py | jzkj-luolinh/simonsc | a3c47d4ae6eba71e91f6110fe53bf1fc2e99736d | [
"Apache-2.0"
] | null | null | null | test/test_datetime.py | jzkj-luolinh/simonsc | a3c47d4ae6eba71e91f6110fe53bf1fc2e99736d | [
"Apache-2.0"
] | null | null | null | test/test_datetime.py | jzkj-luolinh/simonsc | a3c47d4ae6eba71e91f6110fe53bf1fc2e99736d | [
"Apache-2.0"
] | null | null | null | # #!/usr/bin/env python3
# # -*- coding: utf-8 -*-
# import pandas as pd
# import datetime
# from simonsc import auth
# from simonsc.api import get_trading_dates, get_previous_trading_date, get_next_trading_date
# auth("quantresearch","quantresearch")
# trading_dates = get_trading_dates(start_date = "2020-05-11", en... | 32.466667 | 93 | 0.753593 | 76 | 487 | 4.526316 | 0.434211 | 0.159884 | 0.116279 | 0.127907 | 0.122093 | 0 | 0 | 0 | 0 | 0 | 0 | 0.082759 | 0.106776 | 487 | 15 | 94 | 32.466667 | 0.708046 | 0.944559 | 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 |
18564db93d409f7ff9fbd2513f00c2809c8f3624 | 1,093 | py | Python | unit1/test.py | Eadral/OOHelper | 42a58a505a536ad66f7af1c11bda66e6c55fbb48 | [
"MIT"
] | 5 | 2019-03-06T11:08:12.000Z | 2019-04-15T13:07:08.000Z | unit1/test.py | Eadral/OOHelper | 42a58a505a536ad66f7af1c11bda66e6c55fbb48 | [
"MIT"
] | null | null | null | unit1/test.py | Eadral/OOHelper | 42a58a505a536ad66f7af1c11bda66e6c55fbb48 | [
"MIT"
] | null | null | null | from unit1.utils import *
from unit1.pat import pat
from unit1.utils import precompile
import progressbar
import time
def test(test_data_folder, project_dir, ignores=None, main="Main", package="", main_path="."):
if ignores is None:
ignores = []
precompile(project_dir, main, main_path)
# print("T... | 37.689655 | 96 | 0.655993 | 156 | 1,093 | 4.288462 | 0.339744 | 0.203288 | 0.134529 | 0.089686 | 0.053812 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010453 | 0.21226 | 1,093 | 28 | 97 | 39.035714 | 0.766551 | 0.137237 | 0 | 0 | 0 | 0 | 0.017039 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0.095238 | 0.238095 | 0 | 0.285714 | 0.047619 | 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 |
185d8fc43d66833f0accf9ceb869254a19021082 | 159 | py | Python | src/edosu/minus1.py | tomtix/osux-visual | 1e48e8890f1df4f1cca6b6dac7bee47ccfd396ef | [
"Apache-2.0"
] | 4 | 2016-09-19T08:06:48.000Z | 2016-12-02T17:12:50.000Z | src/editor/minus1.py | tomtix/osux | cf87171ffca9513c3a05e2156618b20cea4aef98 | [
"Apache-2.0"
] | null | null | null | src/editor/minus1.py | tomtix/osux | cf87171ffca9513c3a05e2156618b20cea4aef98 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python2
import fileinput
for l in fileinput.input():
a = l.strip().split(" ")
print ("%d, %d, %d,") % tuple(map(lambda x:int(x)-1, a))
| 22.714286 | 60 | 0.578616 | 27 | 159 | 3.407407 | 0.777778 | 0.043478 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015385 | 0.18239 | 159 | 6 | 61 | 26.5 | 0.692308 | 0.132075 | 0 | 0 | 0 | 0 | 0.087591 | 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 |
1865110f5fa06e37e5cffabdb435e0bca3c166b0 | 6,027 | py | Python | 11/stars.py | anniecherk/advent_of_code_2020_python | 12e58c62b18346a61d45e78bd5d47c94e0754519 | [
"MIT"
] | null | null | null | 11/stars.py | anniecherk/advent_of_code_2020_python | 12e58c62b18346a61d45e78bd5d47c94e0754519 | [
"MIT"
] | null | null | null | 11/stars.py | anniecherk/advent_of_code_2020_python | 12e58c62b18346a61d45e78bd5d47c94e0754519 | [
"MIT"
] | null | null | null | import sys
from pathlib import Path
from utils import *
# sample input from the problem
SAMPLE = r"""
L.LL.LL.LL
LLLLLLL.LL
L.L.L..L..
LLLL.LL.LL
L.LL.LL.LL
L.LLLLL.LL
..L.L.....
LLLLLLLLLL
L.LLLLLL.L
L.LLLLL.LL
""".strip()
def update_star1(row: int, col: int, room: List[str]) -> str:
filled = 0
if row != ... | 29.544118 | 112 | 0.527792 | 834 | 6,027 | 3.691847 | 0.145084 | 0.090939 | 0.042871 | 0.070153 | 0.75609 | 0.745372 | 0.69698 | 0.649886 | 0.635921 | 0.620981 | 0 | 0.02542 | 0.327692 | 6,027 | 203 | 113 | 29.689655 | 0.734452 | 0.164261 | 0 | 0.58642 | 0 | 0 | 0.051497 | 0.007984 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.018519 | 0.006173 | 0.117284 | 0.018519 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1874349cab58ef375462d762affb669302a95ebc | 181 | py | Python | lambda/step-function-loop/lambda_function.py | gabinete-compartilhado-acredito/capturaAWS | ff4d86bbef0b96b4e0283330f757cbe68410c871 | [
"MIT"
] | null | null | null | lambda/step-function-loop/lambda_function.py | gabinete-compartilhado-acredito/capturaAWS | ff4d86bbef0b96b4e0283330f757cbe68410c871 | [
"MIT"
] | null | null | null | lambda/step-function-loop/lambda_function.py | gabinete-compartilhado-acredito/capturaAWS | ff4d86bbef0b96b4e0283330f757cbe68410c871 | [
"MIT"
] | null | null | null | import json
def lambda_handler(event, context):
params = event['params']
print(params)
params['order'] = int(params['order']) - 1
return params | 16.454545 | 47 | 0.58011 | 20 | 181 | 5.2 | 0.65 | 0.211538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007813 | 0.292818 | 181 | 11 | 48 | 16.454545 | 0.804688 | 0 | 0 | 0 | 0 | 0 | 0.087912 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.5 | 0.166667 | 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 |
187b00b7a847af0b1a827053406dfe0d424c525c | 1,755 | py | Python | setup.py | fkie-cad/ipal_ids_framework | 2c342d256c6b3dc7432558b02dd9b1fbc0796aee | [
"MIT"
] | 7 | 2021-11-08T16:57:53.000Z | 2022-01-08T17:27:50.000Z | setup.py | fkie-cad/ipal_ids_framework | 2c342d256c6b3dc7432558b02dd9b1fbc0796aee | [
"MIT"
] | null | null | null | setup.py | fkie-cad/ipal_ids_framework | 2c342d256c6b3dc7432558b02dd9b1fbc0796aee | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup(
name="ipal-iids",
version="1.1.0",
packages=find_packages(exclude="tests"),
scripts=["ipal-iids", "ipal-extend-alarms", "ipal-visualize-model"],
install_requires=[
"numpy",
"tensorflow",
"graphviz",
"sklearn",
... | 53.181818 | 731 | 0.718519 | 210 | 1,755 | 5.957143 | 0.666667 | 0.071942 | 0.089528 | 0.055955 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004916 | 0.188604 | 1,755 | 32 | 732 | 54.84375 | 0.873596 | 0 | 0 | 0.064516 | 0 | 0.032258 | 0.707692 | 0.016524 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.032258 | 0 | 0.032258 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
187d0a94815a8eed2ee880b7db27a588c007aa85 | 755 | py | Python | forest/__init__.py | xinranduan/mpc-forest | e93bee948daeda80d956df210b2057db41698ac9 | [
"BSD-3-Clause"
] | null | null | null | forest/__init__.py | xinranduan/mpc-forest | e93bee948daeda80d956df210b2057db41698ac9 | [
"BSD-3-Clause"
] | null | null | null | forest/__init__.py | xinranduan/mpc-forest | e93bee948daeda80d956df210b2057db41698ac9 | [
"BSD-3-Clause"
] | null | null | null | """
Copyright (c) 2017 Eric Shook. All rights reserved.
Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
@author: eshook (Eric Shook, eshook@gmail.edu)
@contributors: <Contribute and add your name here!>
"""
# Import forest code
from .bobs import *
from .engines import ... | 26.034483 | 97 | 0.749669 | 113 | 755 | 5.00885 | 0.663717 | 0.053004 | 0.045936 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006299 | 0.15894 | 755 | 28 | 98 | 26.964286 | 0.885039 | 0.647682 | 0 | 0 | 0 | 0 | 0.083665 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.555556 | 0 | 0.555556 | 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 |
43eabca75723c7660ef0016e94ad2cd0b63c3c54 | 521 | py | Python | src/memory/memory.py | KUTuaNithid/connect4Nithid | e96d94dcd162f6dbde0cb041af1cf3277e2a6437 | [
"MIT"
] | 41 | 2018-07-14T10:05:04.000Z | 2022-03-14T20:41:21.000Z | src/memory/memory.py | KUTuaNithid/connect4Nithid | e96d94dcd162f6dbde0cb041af1cf3277e2a6437 | [
"MIT"
] | 14 | 2019-07-22T23:28:46.000Z | 2022-03-11T23:28:30.000Z | src/memory/memory.py | KUTuaNithid/connect4Nithid | e96d94dcd162f6dbde0cb041af1cf3277e2a6437 | [
"MIT"
] | 3 | 2019-12-05T16:12:15.000Z | 2021-04-06T01:37:48.000Z | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Mon Jul 2 22:12:38 2018
@author: Arpit
"""
import random
class Memory: # stored as ( s, a, r, s_ )
def __init__(self, capacity):
self.capacity = capacity
self.samples = []
def add(self, sample):
self.samples.append(samp... | 20.84 | 45 | 0.571977 | 71 | 521 | 4.126761 | 0.591549 | 0.225256 | 0.109215 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037534 | 0.284069 | 521 | 24 | 46 | 21.708333 | 0.747989 | 0.232246 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.083333 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
43f309cae4ff2d4bd989252af0b91c149a5770aa | 53 | py | Python | config.py | vaporon4a/rpn_calc | 2f95f5bac18005956064b2a33f1963872efebd34 | [
"MIT"
] | null | null | null | config.py | vaporon4a/rpn_calc | 2f95f5bac18005956064b2a33f1963872efebd34 | [
"MIT"
] | null | null | null | config.py | vaporon4a/rpn_calc | 2f95f5bac18005956064b2a33f1963872efebd34 | [
"MIT"
] | null | null | null | CSRF_ENABLED = True
SECRET_KEY = 'remembaharamamburu' | 26.5 | 33 | 0.830189 | 6 | 53 | 7 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09434 | 53 | 2 | 33 | 26.5 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
43f6c5e161e0abe23132c91aa0786460379fe7a8 | 1,165 | py | Python | backups/migrations/0002_auto_20190606_0943.py | TheEdu/python-mysql-backups-django-admin | d92ce1fe5a8cbdb8256d9fb0ab87d91c9d8d43ec | [
"MIT"
] | null | null | null | backups/migrations/0002_auto_20190606_0943.py | TheEdu/python-mysql-backups-django-admin | d92ce1fe5a8cbdb8256d9fb0ab87d91c9d8d43ec | [
"MIT"
] | null | null | null | backups/migrations/0002_auto_20190606_0943.py | TheEdu/python-mysql-backups-django-admin | d92ce1fe5a8cbdb8256d9fb0ab87d91c9d8d43ec | [
"MIT"
] | 1 | 2019-06-24T15:39:00.000Z | 2019-06-24T15:39:00.000Z | # Generated by Django 2.2.2 on 2019-06-06 12:43
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('backups', '0001_initial'),
]
operations = [
migrations.RenameField(
model_name='task',
old_name='schedule',
... | 26.477273 | 62 | 0.52103 | 110 | 1,165 | 5.372727 | 0.372727 | 0.091371 | 0.13198 | 0.228426 | 0.629442 | 0.629442 | 0.629442 | 0.497462 | 0.497462 | 0.497462 | 0 | 0.031414 | 0.344206 | 1,165 | 43 | 63 | 27.093023 | 0.742147 | 0.038627 | 0 | 0.594595 | 1 | 0 | 0.08229 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.027027 | 0 | 0.108108 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
43fbd4ceb3520a41dee3b23ac42013ac72133847 | 4,305 | py | Python | tests/blueprints/micropub/test_blog_POST_actions_misc.py | mrled/interpersonal | 7282fb498ffc0b2bb9a14cf377b2cb5e4df4af56 | [
"Unlicense"
] | null | null | null | tests/blueprints/micropub/test_blog_POST_actions_misc.py | mrled/interpersonal | 7282fb498ffc0b2bb9a14cf377b2cb5e4df4af56 | [
"Unlicense"
] | null | null | null | tests/blueprints/micropub/test_blog_POST_actions_misc.py | mrled/interpersonal | 7282fb498ffc0b2bb9a14cf377b2cb5e4df4af56 | [
"Unlicense"
] | null | null | null | """Tests for miscellaneous actions.
May get refactored into separate files when these acutally get implemented.
"""
import json
from flask.app import Flask
from flask.testing import FlaskClient
from werkzeug.datastructures import Headers
from tests.conftest import IndieAuthActions
def test_action_delete(app: Flas... | 35 | 121 | 0.595122 | 426 | 4,305 | 5.873239 | 0.2277 | 0.067146 | 0.060751 | 0.057554 | 0.780176 | 0.780176 | 0.695444 | 0.695444 | 0.677858 | 0.677858 | 0 | 0.006638 | 0.300116 | 4,305 | 123 | 122 | 35 | 0.823764 | 0.075494 | 0 | 0.66 | 0 | 0 | 0.232929 | 0.047547 | 0 | 0 | 0 | 0 | 0.12 | 1 | 0.04 | false | 0 | 0.05 | 0 | 0.09 | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a10a427f64e148f9d7eedd1871525d388a8fe859 | 1,050 | py | Python | Armadillo-IoT_GW/modules/azure/model_dev_a6_weighingmachine.py | naomitodori/Azure-IoT-samples | f98ad55eaab0d3fe52a5ff17a8d312aa69df0cce | [
"MIT"
] | 3 | 2021-08-01T00:31:50.000Z | 2021-12-15T23:42:52.000Z | Armadillo-IoT_GW/modules/azure/model_dev_a6_weighingmachine.py | naomitodori/Azure-IoT-samples | f98ad55eaab0d3fe52a5ff17a8d312aa69df0cce | [
"MIT"
] | null | null | null | Armadillo-IoT_GW/modules/azure/model_dev_a6_weighingmachine.py | naomitodori/Azure-IoT-samples | f98ad55eaab0d3fe52a5ff17a8d312aa69df0cce | [
"MIT"
] | 3 | 2021-12-07T13:18:44.000Z | 2022-01-28T00:41:46.000Z |
from modules.azure.model_dev_base import ModelDevBase
from modules.azure.weightcode_reporter import WeightCodeReporter
from modules.azure.weightcode_reporter import DeviceModel
class ModelDevA6WeighingMachine(ModelDevBase):
def __init__(self, modelConfig):
super().__init__(modelConfig, component_name="iot... | 32.8125 | 98 | 0.750476 | 114 | 1,050 | 6.526316 | 0.45614 | 0.096774 | 0.096774 | 0.069892 | 0.107527 | 0.107527 | 0 | 0 | 0 | 0 | 0 | 0.004635 | 0.178095 | 1,050 | 31 | 99 | 33.870968 | 0.857474 | 0.04 | 0 | 0.210526 | 0 | 0 | 0.066866 | 0.055888 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.157895 | 0.052632 | 0.578947 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
a10ab98b1c4075def7ecf41fdb52227fbb40ac0e | 369 | py | Python | algolab_class_API/admin/submitHistory.py | KMU-algolab/algolab_class | fdf22cd10d5af71eae63e259c4f88f2b55b44ec7 | [
"MIT"
] | 1 | 2019-01-10T05:46:09.000Z | 2019-01-10T05:46:09.000Z | algolab_class_API/admin/submitHistory.py | KMU-algolab/algolab_class | fdf22cd10d5af71eae63e259c4f88f2b55b44ec7 | [
"MIT"
] | 7 | 2018-12-25T15:59:49.000Z | 2019-01-10T05:45:25.000Z | algolab_class_API/admin/submitHistory.py | KMU-algolab/algolab_class | fdf22cd10d5af71eae63e259c4f88f2b55b44ec7 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .. import models
from .. import forms
@admin.register(models.SubmitHistory)
class SubmitHistoryAdmin(admin.ModelAdmin):
"""
제출 기록 관리
"""
list_display = ['id', 'user', 'problem', 'language', 'status', 'code', 'submit_time']
form = forms.SubmitHistoryForm
... | 21.705882 | 89 | 0.672087 | 40 | 369 | 6.15 | 0.725 | 0.081301 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.197832 | 369 | 16 | 90 | 23.0625 | 0.831081 | 0.02168 | 0 | 0 | 0 | 0 | 0.121739 | 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 |
a10de3e554adabc64d77b4aea6b8bfd255863589 | 3,533 | py | Python | server/src/models/user_calendar.py | itso-io/aika | 86f333edcd3ad2d3125cbbd6c9f37764c8e05848 | [
"Unlicense"
] | null | null | null | server/src/models/user_calendar.py | itso-io/aika | 86f333edcd3ad2d3125cbbd6c9f37764c8e05848 | [
"Unlicense"
] | 6 | 2021-03-09T23:04:28.000Z | 2022-02-26T20:02:25.000Z | server/src/models/user_calendar.py | itso-io/aika | 86f333edcd3ad2d3125cbbd6c9f37764c8e05848 | [
"Unlicense"
] | null | null | null | from sqlalchemy.orm import relationship
from sqlalchemy import ForeignKeyConstraint
from models.base import Base, db
# Get all users for now, ask if Aika users have objections to this type of access
class CalendarUser(Base):
__tablename__ = 'calendar_user'
__bind_key__ = 'user_db'
# The internal Google... | 38.824176 | 150 | 0.732805 | 508 | 3,533 | 4.891732 | 0.30315 | 0.106237 | 0.132797 | 0.148089 | 0.301811 | 0.195171 | 0.09497 | 0.074044 | 0.047485 | 0.047485 | 0 | 0.024805 | 0.166997 | 3,533 | 90 | 151 | 39.255556 | 0.819572 | 0.23889 | 0 | 0.113208 | 0 | 0 | 0.116305 | 0.034405 | 0 | 0 | 0 | 0.011111 | 0 | 1 | 0 | false | 0 | 0.056604 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
a10f39371dd7164dabde9c4227fe2f654d1c678e | 206 | py | Python | aiodnsprox/__init__.py | chrysn-pull-requests/aiodnsprox | e53843015fb22a6c0327e467b2956a45c82678e1 | [
"MIT"
] | null | null | null | aiodnsprox/__init__.py | chrysn-pull-requests/aiodnsprox | e53843015fb22a6c0327e467b2956a45c82678e1 | [
"MIT"
] | null | null | null | aiodnsprox/__init__.py | chrysn-pull-requests/aiodnsprox | e53843015fb22a6c0327e467b2956a45c82678e1 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright (C) 2021 Freie Universität Berlin
#
# Distributed under terms of the MIT license.
# pylint: disable=missing-module-docstring
__version__ = 'v0.0.5a'
| 18.727273 | 45 | 0.699029 | 29 | 206 | 4.827586 | 0.931034 | 0.057143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051724 | 0.15534 | 206 | 10 | 46 | 20.6 | 0.752874 | 0.800971 | 0 | 0 | 0 | 0 | 0.212121 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a11ed6f94070e809a9c040dc1ee025e195753ae4 | 524 | py | Python | fornax/utils/repository/factory.py | lwencel-priv/fornax | 0f66a6284975bc5a2cfc3d38bc01ef6ad492e40e | [
"MIT"
] | null | null | null | fornax/utils/repository/factory.py | lwencel-priv/fornax | 0f66a6284975bc5a2cfc3d38bc01ef6ad492e40e | [
"MIT"
] | null | null | null | fornax/utils/repository/factory.py | lwencel-priv/fornax | 0f66a6284975bc5a2cfc3d38bc01ef6ad492e40e | [
"MIT"
] | null | null | null | from fornax.utils.generics.factory import GenericFactory
from fornax.consts import ManifestType
from .repository import Repository
from .git import Git
from .git_repo import GitRepo
class RepositoryFactory(GenericFactory[ManifestType, Repository]):
"""Repository factory class."""
def __init__(self) -> None:
... | 32.75 | 66 | 0.753817 | 58 | 524 | 6.586207 | 0.413793 | 0.052356 | 0.073298 | 0.136126 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15458 | 524 | 15 | 67 | 34.933333 | 0.862302 | 0.10687 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.5 | 0 | 0.7 | 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 |
a12690439e42be6c4ed00976cbcfea47d587fcac | 13,966 | py | Python | service/ws_re/template/test_re_page.py | the-it/WS_THEbotIT | 5630382e697a8b7432e0cf63a05a45fe43064caa | [
"MIT"
] | 5 | 2019-01-21T19:59:27.000Z | 2021-02-06T12:56:28.000Z | service/ws_re/template/test_re_page.py | the-it/WS_THEbotIT | 5630382e697a8b7432e0cf63a05a45fe43064caa | [
"MIT"
] | 697 | 2017-11-19T12:41:11.000Z | 2022-03-31T07:35:04.000Z | service/ws_re/template/test_re_page.py | the-it/WS_THEbotIT | 5630382e697a8b7432e0cf63a05a45fe43064caa | [
"MIT"
] | 1 | 2018-02-18T23:01:13.000Z | 2018-02-18T23:01:13.000Z | from unittest import TestCase, mock
import pywikibot
from testfixtures import compare
from service.ws_re.template import ReDatenException, ARTICLE_TEMPLATE
from service.ws_re.template.article import Article
from service.ws_re.template.re_page import RePage
class TestRePage(TestCase):
@mock.patch("service.ws_re.... | 42.972308 | 101 | 0.638121 | 1,796 | 13,966 | 4.66147 | 0.099666 | 0.071667 | 0.064501 | 0.077401 | 0.783564 | 0.73925 | 0.705566 | 0.682513 | 0.621954 | 0.591854 | 0 | 0.011509 | 0.228555 | 13,966 | 324 | 102 | 43.104938 | 0.765547 | 0.002291 | 0 | 0.510791 | 0 | 0.014388 | 0.181309 | 0.126113 | 0 | 0 | 0 | 0 | 0.169065 | 1 | 0.133094 | false | 0 | 0.021583 | 0 | 0.158273 | 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 |
a13b9bee0b02fa46919bae7afa2a6b11ae92a14e | 128 | py | Python | chessAnalyzer/__init__.py | CoderAryanAnand/pythonChessAnalyzer | 436407d3e32321cdf42bcabdca263b7a9d9ebd24 | [
"MIT"
] | null | null | null | chessAnalyzer/__init__.py | CoderAryanAnand/pythonChessAnalyzer | 436407d3e32321cdf42bcabdca263b7a9d9ebd24 | [
"MIT"
] | null | null | null | chessAnalyzer/__init__.py | CoderAryanAnand/pythonChessAnalyzer | 436407d3e32321cdf42bcabdca263b7a9d9ebd24 | [
"MIT"
] | null | null | null | from __future__ import annotations
__author__ = "Aryan Anand"
__email__ = "aryananand.chess@gmail.com"
__version__ = "0.1.0"
| 16 | 40 | 0.757813 | 16 | 128 | 5.0625 | 0.9375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027027 | 0.132813 | 128 | 7 | 41 | 18.285714 | 0.702703 | 0 | 0 | 0 | 0 | 0 | 0.328125 | 0.203125 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 |
a13f3a18096c296453697989be692cb755656d8f | 374 | py | Python | 09 - Inuput-Output/Py lessons/othres_Method.py | VasudevJaiswal/Python | e47aa0f24b0394d2036a34da18b9ef22a1beb457 | [
"Apache-2.0"
] | 4 | 2021-07-25T11:58:46.000Z | 2021-09-15T03:37:36.000Z | 09 - Inuput-Output/Py lessons/othres_Method.py | VasudevJaiswal/Python | e47aa0f24b0394d2036a34da18b9ef22a1beb457 | [
"Apache-2.0"
] | null | null | null | 09 - Inuput-Output/Py lessons/othres_Method.py | VasudevJaiswal/Python | e47aa0f24b0394d2036a34da18b9ef22a1beb457 | [
"Apache-2.0"
] | null | null | null | # Other methods to read the file
# We can also use f.readline() function to read one full line at a time.
# f.readline() #Reads one line from the file
# Modes of opening a file
# r – open for reading
# w – open for writing
# a – open for appending
# + -> open for updating
# ‘rb’ will open for read ... | 20.777778 | 72 | 0.660428 | 68 | 374 | 3.676471 | 0.588235 | 0.168 | 0.096 | 0.12 | 0.136 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.264706 | 374 | 18 | 73 | 20.777778 | 0.898182 | 0.92246 | 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 |
a14a5dce40470bdc372907221a49bbb545da6946 | 16,783 | py | Python | pysnmp-with-texts/CISCO-VOICE-URI-CLASS-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/CISCO-VOICE-URI-CLASS-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/CISCO-VOICE-URI-CLASS-MIB.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 CISCO-VOICE-URI-CLASS-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-VOICE-URI-CLASS-MIB
# Produced by pysmi-0.3.4 at Wed May 1 12:19:33 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.... | 137.565574 | 1,656 | 0.793839 | 2,009 | 16,783 | 6.630662 | 0.174714 | 0.040538 | 0.070941 | 0.008708 | 0.435928 | 0.321072 | 0.295173 | 0.276556 | 0.23782 | 0.236544 | 0 | 0.051238 | 0.10457 | 16,783 | 121 | 1,657 | 138.702479 | 0.835174 | 0.020497 | 0 | 0.111111 | 0 | 0.185185 | 0.400974 | 0.058734 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.064815 | 0 | 0.25 | 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 |
a15841d1fc67459df23dbf7e2d3cf7ec57c28436 | 306 | py | Python | simul_scripts_test/set_batch_params.py | mvandam/CEO | eedca8bafe2aaf5b434bafed445eb2c6367914bf | [
"Zlib"
] | 18 | 2016-02-29T12:41:52.000Z | 2021-12-03T15:10:34.000Z | simul_scripts_test/set_batch_params.py | mvandam/CEO | eedca8bafe2aaf5b434bafed445eb2c6367914bf | [
"Zlib"
] | 23 | 2015-04-27T14:17:19.000Z | 2021-11-29T22:19:12.000Z | simul_scripts_test/set_batch_params.py | mvandam/CEO | eedca8bafe2aaf5b434bafed445eb2c6367914bf | [
"Zlib"
] | 17 | 2015-04-09T14:13:16.000Z | 2022-02-17T10:03:00.000Z | import sys
import numpy as np
import math
#import ceo
#import scipy.io as sio
import os.path
import datetime
#import commands
# In[2]:
mag = float(sys.argv[1])
angle = float(sys.argv[2])
np.savez('batch_params',mag=mag, alpha_ps=angle*60.)
print "Saving param files with: mag %s, angle %s"%(mag, angle)
| 18 | 62 | 0.722222 | 55 | 306 | 3.981818 | 0.6 | 0.073059 | 0.109589 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019011 | 0.140523 | 306 | 16 | 63 | 19.125 | 0.813688 | 0.176471 | 0 | 0 | 0 | 0 | 0.214575 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.555556 | 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 |
a16613b1a77c874e4f6371843abc773c536c7d73 | 2,179 | py | Python | impfxxk.py | JarryShaw/impfxxk | 55f121dbf2ed4f643c99836e7cc295f83011ef13 | [
"MIT"
] | null | null | null | impfxxk.py | JarryShaw/impfxxk | 55f121dbf2ed4f643c99836e7cc295f83011ef13 | [
"MIT"
] | null | null | null | impfxxk.py | JarryShaw/impfxxk | 55f121dbf2ed4f643c99836e7cc295f83011ef13 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import importlib.abc
import importlib.machinery
import importlib.util
import sys
from importlib._bootstrap_external import _path_isdir
###############################################################################
# See: importlib.machinery.PathFinder importlib.abc.MetaPathFinder
class ImpF... | 32.522388 | 124 | 0.599816 | 196 | 2,179 | 6.255102 | 0.346939 | 0.132137 | 0.051387 | 0.030995 | 0.03752 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000562 | 0.184029 | 2,179 | 66 | 125 | 33.015152 | 0.688976 | 0.186783 | 0 | 0.066667 | 0 | 0 | 0.0319 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.033333 | 0.366667 | 0 | 0.666667 | 0.066667 | 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 |
a188024e0577fad28fb87ed9c17c9d8a67d3f8a7 | 1,921 | py | Python | lookup_table.py | zhouDearman/fcn_astar_planner | b54f2414401f368449cd80bf61f2d80802f106b0 | [
"MIT"
] | null | null | null | lookup_table.py | zhouDearman/fcn_astar_planner | b54f2414401f368449cd80bf61f2d80802f106b0 | [
"MIT"
] | null | null | null | lookup_table.py | zhouDearman/fcn_astar_planner | b54f2414401f368449cd80bf61f2d80802f106b0 | [
"MIT"
] | null | null | null | from math import *
def generate_table():
lookup_table = []
center = (10, 10)
for row in range(21):
for col in range(21):
if row == center[0] and col == center[1]:
continue
delta_x = center[0] - row
delta_y = col - center[1]
if delta_x == 0 or delta_y == 0:
continue
else:
degree = degrees... | 26.680556 | 128 | 0.621031 | 342 | 1,921 | 3.345029 | 0.248538 | 0.240385 | 0.178322 | 0.09965 | 0.298077 | 0.15472 | 0.15472 | 0.15472 | 0.15472 | 0.15472 | 0 | 0.104459 | 0.182717 | 1,921 | 71 | 129 | 27.056338 | 0.624204 | 0.039042 | 0 | 0.245614 | 1 | 0 | 0.031268 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035088 | false | 0 | 0.017544 | 0 | 0.087719 | 0.070175 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a1aae63438c967e098632151a2ba26c4ec176b03 | 490 | py | Python | scripts/deploy/confirm_deploy_digg.py | EchoDao-BSC/badger-system | d9276c5ce2053f0f5f1eb832f6f13204d1be9489 | [
"MIT"
] | 99 | 2020-12-02T08:40:48.000Z | 2022-03-15T05:21:06.000Z | scripts/deploy/confirm_deploy_digg.py | EchoDao-BSC/badger-system | d9276c5ce2053f0f5f1eb832f6f13204d1be9489 | [
"MIT"
] | 115 | 2020-12-15T07:15:39.000Z | 2022-03-28T22:21:03.000Z | scripts/deploy/confirm_deploy_digg.py | EchoDao-BSC/badger-system | d9276c5ce2053f0f5f1eb832f6f13204d1be9489 | [
"MIT"
] | 56 | 2020-12-11T06:50:04.000Z | 2022-02-21T09:17:38.000Z | from rich.console import Console
from scripts.systems.digg_system import connect_digg
from config.badger_config import digg_config
console = Console()
"""
Ensure everything is configured as expected immediately post-deploy
"""
def confirm_setup_oracles(digg):
pass
def confirm_setup_digg(digg):
pass
def... | 16.896552 | 67 | 0.771429 | 67 | 490 | 5.38806 | 0.41791 | 0.132964 | 0.083102 | 0.127424 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155102 | 490 | 28 | 68 | 17.5 | 0.871981 | 0 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0.142857 | 0.214286 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
a1b4d9c4d7a269fe3927f27aaf0140a8e1fd5dc7 | 258 | py | Python | bricklink_api/color.py | josh-parris/bricklink_api | 9f7750ed1cb193bb2ada933b397022220baf578f | [
"MIT"
] | 11 | 2019-08-10T10:18:49.000Z | 2022-03-28T21:15:58.000Z | bricklink_api/color.py | josh-parris/bricklink_api | 9f7750ed1cb193bb2ada933b397022220baf578f | [
"MIT"
] | 2 | 2020-08-03T00:49:43.000Z | 2022-03-28T21:12:26.000Z | bricklink_api/color.py | josh-parris/bricklink_api | 9f7750ed1cb193bb2ada933b397022220baf578f | [
"MIT"
] | 8 | 2020-03-08T14:45:05.000Z | 2022-02-21T07:23:27.000Z | from .method import method as _method
def get_color_list(**kwargs) -> dict:
return _method("GET", "/colors",
**kwargs
)
def get_color(
color_id: int,
**kwargs
) -> dict:
return _method("GET", f'/colors/{color_id}',
**kwargs
)
| 15.176471 | 46 | 0.604651 | 33 | 258 | 4.484848 | 0.454545 | 0.081081 | 0.148649 | 0.297297 | 0.337838 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.232558 | 258 | 16 | 47 | 16.125 | 0.747475 | 0 | 0 | 0.25 | 0 | 0 | 0.120155 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.083333 | 0.166667 | 0.416667 | 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 | 0 | 1 | 0 | 0 | 0 | 2 |
a1e08f77f6f3bcf3e94c979f0d7ed49231709930 | 915 | py | Python | test_amazonscraper.py | sudoxx2/proxy-scrape | 1c0599cff158b34e366e4f93fa01d49cc8bb14b1 | [
"MIT"
] | 1 | 2020-02-20T13:20:07.000Z | 2020-02-20T13:20:07.000Z | test_amazonscraper.py | sudoxx2/proxy-scrape | 1c0599cff158b34e366e4f93fa01d49cc8bb14b1 | [
"MIT"
] | 7 | 2021-03-18T21:29:33.000Z | 2022-03-11T23:34:32.000Z | test_amazonscraper.py | sudoxx2/proxy-scrape | 1c0599cff158b34e366e4f93fa01d49cc8bb14b1 | [
"MIT"
] | null | null | null | """ unit test for AmazonScraper class """
import unittest
from amazonscraper import AmazonScraper
class TestAmazonScraper(unittest.TestCase):
""" test all functions in AmazonScraper class """
def test_get_title(self):
amazonscraper = AmazonScraper('https://www.amazon.com/dp/B01N9O413M')
self.assertEqual(amazo... | 32.678571 | 94 | 0.77377 | 111 | 915 | 6.162162 | 0.36036 | 0.040936 | 0.05848 | 0.204678 | 0.523392 | 0.523392 | 0.523392 | 0.523392 | 0.523392 | 0.523392 | 0 | 0.035194 | 0.099454 | 915 | 28 | 95 | 32.678571 | 0.794903 | 0.08306 | 0 | 0.235294 | 0 | 0 | 0.251816 | 0 | 0 | 0 | 0 | 0 | 0.235294 | 1 | 0.235294 | false | 0 | 0.117647 | 0 | 0.411765 | 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 |
a1eff6db24e3f3a3649674d5632a1d39bd7d054f | 239 | py | Python | augur/datasources/metrics_status/test_metrics_status_routes.py | parthsharma2/augur | 6d59c8c80f3c21eb97bfa4ea4817908ea9a7d10b | [
"MIT"
] | null | null | null | augur/datasources/metrics_status/test_metrics_status_routes.py | parthsharma2/augur | 6d59c8c80f3c21eb97bfa4ea4817908ea9a7d10b | [
"MIT"
] | null | null | null | augur/datasources/metrics_status/test_metrics_status_routes.py | parthsharma2/augur | 6d59c8c80f3c21eb97bfa4ea4817908ea9a7d10b | [
"MIT"
] | null | null | null | import pytest
import requests
@pytest.fixture(scope="module")
def metrics_status():
pass
def test_api_status(metrics_status):
result = requests.get('http://localhost:5000/api/unstable').json()
assert result['status'] == 'OK'
| 21.727273 | 70 | 0.719665 | 31 | 239 | 5.419355 | 0.677419 | 0.154762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019231 | 0.129707 | 239 | 10 | 71 | 23.9 | 0.788462 | 0 | 0 | 0 | 0 | 0 | 0.200837 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.25 | false | 0.125 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
a1fb04cf5291b00b90c6955d652de780d835fee3 | 18,998 | py | Python | cs3/tx/v1beta1/tx_api_pb2.py | cs3org/python-cs3apis | 33f84befa7c6009ce87fb7594128d26ff6e49bbd | [
"Apache-2.0"
] | 1 | 2020-12-17T14:39:57.000Z | 2020-12-17T14:39:57.000Z | cs3/tx/v1beta1/tx_api_pb2.py | cs3org/python-cs3apis | 33f84befa7c6009ce87fb7594128d26ff6e49bbd | [
"Apache-2.0"
] | 1 | 2020-05-06T10:23:07.000Z | 2020-05-12T09:07:08.000Z | cs3/tx/v1beta1/tx_api_pb2.py | cs3org/python-cs3apis | 33f84befa7c6009ce87fb7594128d26ff6e49bbd | [
"Apache-2.0"
] | 1 | 2020-05-05T09:24:54.000Z | 2020-05-05T09:24:54.000Z | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: cs3/tx/v1beta1/tx_api.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from ... | 46.449878 | 2,095 | 0.788136 | 2,366 | 18,998 | 5.961961 | 0.084954 | 0.037644 | 0.045087 | 0.030625 | 0.688147 | 0.667659 | 0.611017 | 0.597405 | 0.586913 | 0.572877 | 0 | 0.052924 | 0.098905 | 18,998 | 408 | 2,096 | 46.563725 | 0.771073 | 0.035741 | 0 | 0.635616 | 1 | 0.013699 | 0.166639 | 0.14025 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.021918 | 0 | 0.021918 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b8010bab5f7822e012003ce5c0df1c44b9adaf49 | 399 | py | Python | code/Sieve_of_Eratosthenes.py | itsvinayak/cracking_the_codeing_interview | 7347f7e831b306c4c4314bd2d41809a5b5741497 | [
"MIT"
] | 4 | 2020-07-19T03:49:43.000Z | 2021-06-29T07:13:39.000Z | code/Sieve_of_Eratosthenes.py | itsvinayak/cracking_the_codeing_interview | 7347f7e831b306c4c4314bd2d41809a5b5741497 | [
"MIT"
] | 1 | 2020-04-01T06:40:45.000Z | 2020-04-01T06:41:22.000Z | code/Sieve_of_Eratosthenes.py | itsvinayak/cracking_the_codeing_interview | 7347f7e831b306c4c4314bd2d41809a5b5741497 | [
"MIT"
] | 1 | 2020-08-14T18:14:04.000Z | 2020-08-14T18:14:04.000Z | def prime_sum(n):
l = [0 for i in range(n + 1)]
l[0] = 1
l[1] = 1
for i in range(2, int(n ** 0.5) + 1):
if l[i] == 0:
for j in range(i * i, n + 1, i):
l[j] = 1
s = 0
for i in range(n):
if l[i] == 0:
s += i
print(s)
de... | 17.347826 | 45 | 0.373434 | 68 | 399 | 2.044118 | 0.308824 | 0.201439 | 0.129496 | 0.23741 | 0.18705 | 0.18705 | 0 | 0 | 0 | 0 | 0 | 0.102804 | 0.463659 | 399 | 22 | 46 | 18.136364 | 0.546729 | 0 | 0 | 0.117647 | 0 | 0 | 0.02122 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0 | 0 | 0.117647 | 0.058824 | 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 |
b822af04e67e292192109304eaf4b90c86cad463 | 645 | py | Python | PythonLearning/OJ/competition/A.py | JimouChen/python-application | b7b16506a17e2c304d1c5fabd6385e96be211c56 | [
"Apache-2.0"
] | 1 | 2020-08-09T12:47:27.000Z | 2020-08-09T12:47:27.000Z | PythonLearning/OJ/competition/A.py | JimouChen/Python_Application | b7b16506a17e2c304d1c5fabd6385e96be211c56 | [
"Apache-2.0"
] | null | null | null | PythonLearning/OJ/competition/A.py | JimouChen/Python_Application | b7b16506a17e2c304d1c5fabd6385e96be211c56 | [
"Apache-2.0"
] | null | null | null | import math
def f(n):
if n == 1:
return 1
sum1 = 0
for i in range(1, n):
sum1 += (math.gcd(i, n - i) == 1)
return sum1 % 1000000007
def g(n):
sum1 = 0
for i in range(1, n + 1):
if n % i == 0:
sum1 += f(n // i)
return sum1 % 1000000007
def G(n, k):
... | 17.432432 | 44 | 0.457364 | 112 | 645 | 2.633929 | 0.258929 | 0.040678 | 0.030508 | 0.061017 | 0.555932 | 0.433898 | 0.264407 | 0.122034 | 0 | 0 | 0 | 0.24 | 0.379845 | 645 | 36 | 45 | 17.916667 | 0.4975 | 0 | 0 | 0.148148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.037037 | 0 | 0.37037 | 0.037037 | 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 |
629c0e3ff96564aa1d1ca5b05e4d593dde0c540d | 3,450 | py | Python | POM/school_page.py | Mikhail-QA/HS | 8ddbc09a0d1493128f3af6b8078c295609908dd7 | [
"Apache-2.0"
] | null | null | null | POM/school_page.py | Mikhail-QA/HS | 8ddbc09a0d1493128f3af6b8078c295609908dd7 | [
"Apache-2.0"
] | null | null | null | POM/school_page.py | Mikhail-QA/HS | 8ddbc09a0d1493128f3af6b8078c295609908dd7 | [
"Apache-2.0"
] | null | null | null | import time
import allure
from selenium.webdriver import ActionChains
class SchoolPage(object):
def __init__(self, driver):
self.driver = driver
@allure.step
def click_logo(self):
self.driver.find_element_class_name("a.logo").click()
@allure.step
def click_the_feedback(self):
... | 35.56701 | 122 | 0.691884 | 469 | 3,450 | 4.739872 | 0.206823 | 0.121457 | 0.125956 | 0.160594 | 0.659919 | 0.636977 | 0.556455 | 0.505173 | 0.402609 | 0.347278 | 0 | 0.005355 | 0.188116 | 3,450 | 96 | 123 | 35.9375 | 0.78829 | 0 | 0 | 0.44 | 0 | 0.013333 | 0.196232 | 0.051014 | 0 | 0 | 0 | 0 | 0.093333 | 1 | 0.226667 | false | 0 | 0.04 | 0 | 0.32 | 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 |
62a7319d49841efb250bf6ebf67c7708b72100ad | 23,363 | py | Python | test_net_wordvec_split.py | georkap/faster-rcnnwv.pytorch | 56ae1a5f5b620e2c019821a31543dbd3cb72c2f3 | [
"MIT"
] | null | null | null | test_net_wordvec_split.py | georkap/faster-rcnnwv.pytorch | 56ae1a5f5b620e2c019821a31543dbd3cb72c2f3 | [
"MIT"
] | null | null | null | test_net_wordvec_split.py | georkap/faster-rcnnwv.pytorch | 56ae1a5f5b620e2c019821a31543dbd3cb72c2f3 | [
"MIT"
] | null | null | null | # --------------------------------------------------------
# Tensorflow Faster R-CNN
# Licensed under The MIT License [see LICENSE for details]
# Written by Jiasen Lu, Jianwei Yang, based on code from Ross Girshick
# --------------------------------------------------------
from __future__ import absolute_import
from __... | 63.659401 | 624 | 0.636006 | 4,039 | 23,363 | 3.586779 | 0.356029 | 0.008697 | 0.013046 | 0.014496 | 0.156347 | 0.121419 | 0.077725 | 0.070201 | 0.060192 | 0.060192 | 0 | 0.35059 | 0.209605 | 23,363 | 366 | 625 | 63.833333 | 0.433933 | 0.03895 | 0 | 0.134948 | 0 | 0.072664 | 0.480307 | 0.005442 | 0 | 0 | 0 | 0 | 0 | 1 | 0.00692 | false | 0 | 0.093426 | 0.00346 | 0.107266 | 0.044983 | 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 |
62b6d3260426ec8523e175a3ced01248b188663d | 137 | py | Python | Proj2/export_imgs.py | JoaoCostaIFG/IART | 35614c1394c93597394d5e0a414f9cfc122922f2 | [
"MIT"
] | null | null | null | Proj2/export_imgs.py | JoaoCostaIFG/IART | 35614c1394c93597394d5e0a414f9cfc122922f2 | [
"MIT"
] | null | null | null | Proj2/export_imgs.py | JoaoCostaIFG/IART | 35614c1394c93597394d5e0a414f9cfc122922f2 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import junix
filepath = "Proj2_Bean_IART.ipynb"
output_dir = "./imgs"
junix.export_images(filepath, output_dir)
| 17.125 | 41 | 0.766423 | 20 | 137 | 5 | 0.8 | 0.18 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01626 | 0.10219 | 137 | 7 | 42 | 19.571429 | 0.796748 | 0.153285 | 0 | 0 | 0 | 0 | 0.234783 | 0.182609 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 |
62c71ec90c5d2fb93e02bb6ef83873a5dc4dd5a7 | 427 | py | Python | app/__init__.py | bzreinhardt/life-command-line-bot | 3cb7121785cc33849bedef42150b1e2245017d3a | [
"MIT"
] | null | null | null | app/__init__.py | bzreinhardt/life-command-line-bot | 3cb7121785cc33849bedef42150b1e2245017d3a | [
"MIT"
] | 2 | 2021-02-08T20:38:59.000Z | 2021-04-30T21:02:32.000Z | app/__init__.py | bzreinhardt/life-command-line-bot | 3cb7121785cc33849bedef42150b1e2245017d3a | [
"MIT"
] | null | null | null | from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from config import Config
#import firebase_admin
import telegram
#from firebase_admin import credentials
app = Flask(__name__)
app.config.from_object(Config)
db = SQLAlchemy(app)
#cred = credentials.Certificate(app.config['FIREBASE_CREDENTIALS'])
#firebas... | 26.6875 | 67 | 0.81733 | 58 | 427 | 5.827586 | 0.344828 | 0.115385 | 0.112426 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096019 | 427 | 15 | 68 | 28.466667 | 0.875648 | 0.374707 | 0 | 0 | 0 | 0 | 0.019011 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.555556 | 0 | 0.555556 | 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 |
62d6031b50957d4090bbc48b4ccd2bca9b022af8 | 383 | py | Python | tests/test_checksum.py | cchangelabs/open-xpd-uuid-lib | d867cbea883825bf550ae2febbd80a8cd3c6d51f | [
"Apache-2.0"
] | null | null | null | tests/test_checksum.py | cchangelabs/open-xpd-uuid-lib | d867cbea883825bf550ae2febbd80a8cd3c6d51f | [
"Apache-2.0"
] | null | null | null | tests/test_checksum.py | cchangelabs/open-xpd-uuid-lib | d867cbea883825bf550ae2febbd80a8cd3c6d51f | [
"Apache-2.0"
] | null | null | null | import pytest
from cqd.open_xpd_uuid import checksum
@pytest.mark.parametrize(
'guid, expected_checksum', (
('00000000', 'CK'),
('10000000', 'DK'),
('ZZZZZZZZ', 'CF'),
('12345678', 'X7'),
('EC3949XK', '04'),
))
def test_checksum(guid: str, expected_... | 23.9375 | 53 | 0.563969 | 38 | 383 | 5.526316 | 0.684211 | 0.228571 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111511 | 0.274151 | 383 | 15 | 54 | 25.533333 | 0.643885 | 0 | 0 | 0 | 0 | 0 | 0.190601 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 1 | 0.083333 | false | 0 | 0.166667 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
62e282fa20c25ed63110fed7c441bfe8d37782ec | 717 | py | Python | flask_react/server/flask_app/document.py | ebottabi/mmakinde-ebot | 7890d7048295726c6eedc0b4e0f8783b993d64d4 | [
"Apache-2.0"
] | null | null | null | flask_react/server/flask_app/document.py | ebottabi/mmakinde-ebot | 7890d7048295726c6eedc0b4e0f8783b993d64d4 | [
"Apache-2.0"
] | null | null | null | flask_react/server/flask_app/document.py | ebottabi/mmakinde-ebot | 7890d7048295726c6eedc0b4e0f8783b993d64d4 | [
"Apache-2.0"
] | null | null | null | # import os
# from flask import request, jsonify, abort
# from server import create_app, db
# from server.models import User, Role, Document
# config_name = os.getenv('FLASK_CONFIG')
# app = create_app(config_name)
# @app.route('/documents', methods=['POST'])
# def create_document():
# document = Document(
# ... | 25.607143 | 68 | 0.675035 | 89 | 717 | 5.359551 | 0.47191 | 0.115304 | 0.146751 | 0.106918 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004951 | 0.154812 | 717 | 27 | 69 | 26.555556 | 0.782178 | 0.934449 | 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 |
1a00f73afd420daa33f5ee2435ee36cae8ad0c2e | 2,679 | py | Python | easytext/metrics/metric.py | cuilunan/easytext | 95511a5a12d3af4a102ecb7a4d10e09a7d9b8680 | [
"MIT"
] | 1 | 2020-07-20T06:40:19.000Z | 2020-07-20T06:40:19.000Z | easytext/metrics/metric.py | cuilunan/easytext | 95511a5a12d3af4a102ecb7a4d10e09a7d9b8680 | [
"MIT"
] | null | null | null | easytext/metrics/metric.py | cuilunan/easytext | 95511a5a12d3af4a102ecb7a4d10e09a7d9b8680 | [
"MIT"
] | null | null | null | #!/usr/bin/env python 3
# -*- coding: utf-8 -*-
#
# Copyright (c) 2020 Baidu.com, Inc. All Rights Reserved
#
"""
brief
Authors: panxu(panxu@baidu.com)
Date: 2020/05/16 00:59:00
"""
from typing import List, Dict, Tuple
import torch
from torch import Tensor
from easytext.model import ModelOutputs
class Metric:
... | 24.805556 | 94 | 0.62262 | 285 | 2,679 | 5.719298 | 0.463158 | 0.088344 | 0.025767 | 0.042945 | 0.099387 | 0.055215 | 0 | 0 | 0 | 0 | 0 | 0.011585 | 0.291153 | 2,679 | 107 | 95 | 25.037383 | 0.846761 | 0.424412 | 0 | 0.294118 | 0 | 0 | 0.014563 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.264706 | false | 0 | 0.117647 | 0.058824 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
1a0677b01417f6a6da10a2ad39c4636aa720bc23 | 79,377 | py | Python | oops_fhir/r4/code_system/v3_act_relationship_type.py | Mikuana/oops_fhir | 77963315d123756b7d21ae881f433778096a1d25 | [
"MIT"
] | null | null | null | oops_fhir/r4/code_system/v3_act_relationship_type.py | Mikuana/oops_fhir | 77963315d123756b7d21ae881f433778096a1d25 | [
"MIT"
] | null | null | null | oops_fhir/r4/code_system/v3_act_relationship_type.py | Mikuana/oops_fhir | 77963315d123756b7d21ae881f433778096a1d25 | [
"MIT"
] | null | null | null | from pathlib import Path
from fhir.resources.codesystem import CodeSystem
from oops_fhir.utils import CodeSystemConcept
__all__ = ["v3ActRelationshipType"]
_resource = CodeSystem.parse_file(Path(__file__).with_suffix(".json"))
class v3ActRelationshipType:
"""
v3 Code System ActRelationshipType
The ... | 82.598335 | 1,421 | 0.432619 | 6,854 | 79,377 | 5.006566 | 0.157572 | 0.008743 | 0.033571 | 0.00746 | 0.394492 | 0.357453 | 0.308786 | 0.289407 | 0.261489 | 0.240361 | 0 | 0.000607 | 0.502035 | 79,377 | 960 | 1,422 | 82.684375 | 0.867534 | 0.002444 | 0 | 0.179601 | 0 | 0.120843 | 0.557844 | 0.010367 | 0 | 0 | 0 | 0 | 0.004435 | 1 | 0 | false | 0.003326 | 0.003326 | 0 | 0.012195 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1a088e6643ab6d48807d8bf15b4a64ed37580749 | 672 | py | Python | smartystreets_python_sdk/international_street/candidate.py | jasonrfarkas/smartystreets-python-sdk | bcb94efc09c795222eb1bd85544073a6cc063a46 | [
"Apache-2.0"
] | 19 | 2017-01-20T16:34:19.000Z | 2021-12-09T15:56:09.000Z | smartystreets_python_sdk/international_street/candidate.py | jasonrfarkas/smartystreets-python-sdk | bcb94efc09c795222eb1bd85544073a6cc063a46 | [
"Apache-2.0"
] | 25 | 2016-12-11T01:20:19.000Z | 2022-03-24T19:59:25.000Z | smartystreets_python_sdk/international_street/candidate.py | jasonrfarkas/smartystreets-python-sdk | bcb94efc09c795222eb1bd85544073a6cc063a46 | [
"Apache-2.0"
] | 28 | 2016-12-31T17:06:07.000Z | 2022-02-17T00:09:02.000Z | from .components import Components
from .metadata import Metadata
from .analysis import Analysis
from .rootlevel import RootLevel
class Candidate(RootLevel):
def __init__(self, obj):
"""
A candidate is a possible match for an address that was submitted. A lookup can have multiple
candidate... | 37.333333 | 102 | 0.672619 | 78 | 672 | 5.692308 | 0.525641 | 0.040541 | 0.04955 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.221726 | 672 | 17 | 103 | 39.529412 | 0.848948 | 0.311012 | 0 | 0 | 0 | 0 | 0.062651 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.4 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
1a08c9f8da771dc597087ccc19da9fcb509c5c2a | 2,960 | py | Python | MetaScreener/external_sw/mgltools/MGLToolsPckgs/AutoDockTools/Utilities24/process_VSResultsFox.py | bio-hpc/metascreener | 6900497629f601c4b6c0c37da26de58ffa221988 | [
"Apache-2.0"
] | 8 | 2021-12-14T21:30:01.000Z | 2022-02-14T11:30:03.000Z | MetaScreener/external_sw/mgltools/MGLToolsPckgs/AutoDockTools/Utilities24/process_VSResultsFox.py | bio-hpc/metascreener | 6900497629f601c4b6c0c37da26de58ffa221988 | [
"Apache-2.0"
] | null | null | null | MetaScreener/external_sw/mgltools/MGLToolsPckgs/AutoDockTools/Utilities24/process_VSResultsFox.py | bio-hpc/metascreener | 6900497629f601c4b6c0c37da26de58ffa221988 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
#
#
##############################################################################
#
# Authors: Stefano FORLI , Ruth HUEY
#
# Copyright: A. Olson TSRI 2011
#
#############################################################################
# $Header: /opt/cvs/python/packages/share1.5/AutoDockTools/U... | 30.204082 | 132 | 0.576014 | 354 | 2,960 | 4.728814 | 0.375706 | 0.095579 | 0.014934 | 0.040621 | 0.119474 | 0.087216 | 0.054958 | 0.054958 | 0.054958 | 0.054958 | 0 | 0.021871 | 0.273986 | 2,960 | 97 | 133 | 30.515464 | 0.757096 | 0.155405 | 0 | 0.137255 | 0 | 0 | 0.276058 | 0.045924 | 0 | 0 | 0 | 0.020619 | 0 | 0 | null | null | 0 | 0.078431 | null | null | 0.294118 | 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 |
1a08e83212deb136aaa0aa7791a33b5859f5c91c | 177 | py | Python | balebot/models/constants/template_button_action_type.py | ehsanbarkhordar/reminder_bot | c72e664c71658dd2ec30bb610ffc836b53f000b9 | [
"MIT"
] | 24 | 2018-07-08T12:17:55.000Z | 2022-03-05T22:00:28.000Z | balebot/models/constants/template_button_action_type.py | ehsanbarkhordar/reminder_bot | c72e664c71658dd2ec30bb610ffc836b53f000b9 | [
"MIT"
] | 21 | 2018-08-30T03:18:25.000Z | 2022-03-11T23:36:16.000Z | balebot/models/constants/template_button_action_type.py | ehsanbarkhordar/reminder_bot | c72e664c71658dd2ec30bb610ffc836b53f000b9 | [
"MIT"
] | 12 | 2018-07-07T08:29:12.000Z | 2022-03-05T22:00:05.000Z | class ButtonAction:
default = 1
browse_user = 21
barcode_reader = 22
location = 23
contact = 24
__date = 25
__time = 26
photo = 27
file = 28
| 16.090909 | 23 | 0.576271 | 22 | 177 | 4.363636 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151786 | 0.367232 | 177 | 10 | 24 | 17.7 | 0.705357 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
1a0a12deb70e6e9a82b9d09da2b85ff268ea6732 | 4,511 | py | Python | gui/shinylearnerweb/ShinyLearner/AlgorithmScripts/Helper/ParseWekaFSResults.py | ercsuh/shinylearner | 1fc04690617a6e9e769a281878fe793ab70d85f3 | [
"MIT"
] | 15 | 2016-10-05T16:11:11.000Z | 2021-05-10T05:37:15.000Z | gui/shinylearnerweb/ShinyLearner/AlgorithmScripts/Helper/ParseWekaFSResults.py | ercsuh/shinylearner | 1fc04690617a6e9e769a281878fe793ab70d85f3 | [
"MIT"
] | 9 | 2016-12-09T17:24:11.000Z | 2019-01-10T17:37:09.000Z | gui/shinylearnerweb/ShinyLearner/AlgorithmScripts/Helper/ParseWekaFSResults.py | ercsuh/shinylearner | 1fc04690617a6e9e769a281878fe793ab70d85f3 | [
"MIT"
] | 9 | 2016-12-08T17:13:38.000Z | 2021-02-06T18:00:24.000Z | import sys
lines = []
hasReachedOutput = False
for line in sys.stdin:
if hasReachedOutput:
if line.strip() != "":
lines.append(line.strip())
if line.startswith("=== Attribute Selection on all input data"):
hasReachedOutput = True
if "Ranked attributes:" in lines:
lines = lines... | 27.845679 | 93 | 0.551097 | 507 | 4,511 | 4.903353 | 0.587771 | 0.018101 | 0.010861 | 0.011263 | 0.045857 | 0.025744 | 0 | 0 | 0 | 0 | 0 | 0.338354 | 0.367103 | 4,511 | 161 | 94 | 28.018634 | 0.532399 | 0.821769 | 0 | 0 | 0 | 0 | 0.198185 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.066667 | 0.133333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1a16775eb64b5299c47df74346b16660ebc12731 | 2,584 | py | Python | src/pg4j/utils.py | statt8900/pg4j | e352293d74affd3497562c1c7c224314b6f9d26f | [
"Apache-2.0"
] | 1 | 2022-03-28T20:18:45.000Z | 2022-03-28T20:18:45.000Z | src/pg4j/utils.py | statt8900/pg4j | e352293d74affd3497562c1c7c224314b6f9d26f | [
"Apache-2.0"
] | null | null | null | src/pg4j/utils.py | statt8900/pg4j | e352293d74affd3497562c1c7c224314b6f9d26f | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 Modelyst LLC
#
# 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... | 32.3 | 92 | 0.677245 | 356 | 2,584 | 4.727528 | 0.384831 | 0.071301 | 0.033274 | 0.035651 | 0.054664 | 0.026144 | 0 | 0 | 0 | 0 | 0 | 0.005408 | 0.212848 | 2,584 | 79 | 93 | 32.708861 | 0.822026 | 0.705108 | 0 | 0 | 0 | 0 | 0.024217 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.153846 | 0.076923 | 0.615385 | 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 |
a7e3b9ca977fe0d1ebfc8ad2b4c048a361e5359a | 87 | py | Python | docs/conf.py | xk2600/ipampy | 5f46c382abc5515d1d1d156716e7d17ff8c699dd | [
"BSD-2-Clause"
] | null | null | null | docs/conf.py | xk2600/ipampy | 5f46c382abc5515d1d1d156716e7d17ff8c699dd | [
"BSD-2-Clause"
] | null | null | null | docs/conf.py | xk2600/ipampy | 5f46c382abc5515d1d1d156716e7d17ff8c699dd | [
"BSD-2-Clause"
] | null | null | null | # conf.py
# Add napoleon to the extensions list
extensions = ['sphinx.ext.napoleon']
| 14.5 | 37 | 0.724138 | 12 | 87 | 5.25 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16092 | 87 | 5 | 38 | 17.4 | 0.863014 | 0.494253 | 0 | 0 | 0 | 0 | 0.475 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a7efa97fc5a67f166c2b6a496f4a9532328aa62e | 317 | py | Python | da/numpy/example/array.py | jianchengwang/todo-python | 36bdaf6fae714531946047ececca995d60f86e4a | [
"MIT"
] | null | null | null | da/numpy/example/array.py | jianchengwang/todo-python | 36bdaf6fae714531946047ececca995d60f86e4a | [
"MIT"
] | null | null | null | da/numpy/example/array.py | jianchengwang/todo-python | 36bdaf6fae714531946047ececca995d60f86e4a | [
"MIT"
] | null | null | null | from numpy import *
# create array
a = array([0, 1, 2, 3])
print(a)
print(type(a))
print(a.dtype)
print(a.itemsize)
print(a.shape)
print(a.ndim)
# init data
a.fill(-4.8)
print(a)
# slice
a = array([11,12,13,14,15])
print(a[0])
print(a[1:3])
a = array([[44, 45],
[54, 55]])
print(a[:, 2])
print(a[2::2, ::2]) | 13.782609 | 27 | 0.583596 | 65 | 317 | 2.846154 | 0.476923 | 0.324324 | 0.075676 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116105 | 0.157729 | 317 | 23 | 28 | 13.782609 | 0.576779 | 0.088328 | 0 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.058824 | 0.647059 | 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 | 0 | 1 | 0 | 2 |
a7f15177692d9d64d5a950e4e2916b337befb84a | 579 | py | Python | src/vocgui/views/__init__.py | digitalfabrik/lunes-cms | 6d2424d97f83e1f6a762d94c021202322f038c00 | [
"Apache-2.0"
] | 14 | 2021-03-10T14:20:34.000Z | 2021-11-20T11:42:06.000Z | src/vocgui/views/__init__.py | digitalfabrik/lunes-cms | 6d2424d97f83e1f6a762d94c021202322f038c00 | [
"Apache-2.0"
] | 149 | 2020-12-18T18:11:16.000Z | 2022-03-30T10:06:11.000Z | src/vocgui/views/__init__.py | digitalfabrik/lunes-cms | 6d2424d97f83e1f6a762d94c021202322f038c00 | [
"Apache-2.0"
] | 3 | 2021-04-19T15:49:18.000Z | 2022-02-14T09:04:43.000Z | from .discipline_filtered_viewset import DisciplineFilteredViewSet
from .discipline_viewset import DisciplineViewSet
from .document_by_id_viewset import DocumentByIdViewSet
from .document_viewset import DocumentViewSet
from .group_viewset import GroupViewSet
from .training_set_viewset import TrainingSetViewSet
from .ot... | 30.473684 | 66 | 0.811744 | 53 | 579 | 8.509434 | 0.433962 | 0.201774 | 0.088692 | 0.10643 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127807 | 579 | 18 | 67 | 32.166667 | 0.893069 | 0 | 0 | 0 | 0 | 0 | 0.227979 | 0.043178 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.411765 | 0 | 0.411765 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
c50f30b327b2697d73413b00eaa5b484164d1de9 | 220 | py | Python | application_test/base_test.py | edson-dev/game-api | 453020f5d06eef4d1abe50885d0074e300ef79a0 | [
"MIT"
] | null | null | null | application_test/base_test.py | edson-dev/game-api | 453020f5d06eef4d1abe50885d0074e300ef79a0 | [
"MIT"
] | null | null | null | application_test/base_test.py | edson-dev/game-api | 453020f5d06eef4d1abe50885d0074e300ef79a0 | [
"MIT"
] | null | null | null | from fastapi.testclient import TestClient
import pytest
from httpx import AsyncClient
import sys
sys.path.append("../application")
from main import app
import nest_asyncio
nest_asyncio.apply()
client = TestClient(app) | 18.333333 | 41 | 0.813636 | 30 | 220 | 5.9 | 0.566667 | 0.180791 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113636 | 220 | 12 | 42 | 18.333333 | 0.907692 | 0 | 0 | 0 | 0 | 0 | 0.063348 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 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 |
c51ce35c60a2780bab1b7a4bff6c1966fde896a9 | 1,364 | py | Python | beacontools_mod/ibeacon.py | kroa38/RaspLogger | 9159bc7a99e99a55ed0f5c2d8ef7f0a24b956a39 | [
"MIT"
] | 3 | 2019-04-27T20:01:36.000Z | 2020-04-16T09:33:40.000Z | beacontools_mod/ibeacon.py | kroa38/RaspLogger | 9159bc7a99e99a55ed0f5c2d8ef7f0a24b956a39 | [
"MIT"
] | 4 | 2020-10-31T15:54:39.000Z | 2021-02-20T11:48:53.000Z | beacontools_mod/ibeacon.py | kroa38/RaspLogger | 9159bc7a99e99a55ed0f5c2d8ef7f0a24b956a39 | [
"MIT"
] | 1 | 2021-12-18T10:18:05.000Z | 2021-12-18T10:18:05.000Z | """Packet classes for iBeacon beacons."""
from ..utils import data_to_uuid
class IBeaconAdvertisement(object):
"""iBeacon advertisement."""
def __init__(self, data):
self._uuid = data_to_uuid(data['uuid'])
self._major = data['major']
self._minor = data['minor']
self._tx_power =... | 26.745098 | 76 | 0.592375 | 166 | 1,364 | 4.686747 | 0.343373 | 0.098972 | 0.042416 | 0.046272 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036816 | 0.263196 | 1,364 | 50 | 77 | 27.28 | 0.737313 | 0.184018 | 0 | 0.225806 | 0 | 0 | 0.066542 | 0.032802 | 0 | 0 | 0.009372 | 0 | 0 | 1 | 0.290323 | false | 0 | 0.032258 | 0.032258 | 0.612903 | 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 |
c524dd1e62ea266e2ae70b573b978f3bd643fca2 | 759 | py | Python | HND/HND.py | ultysim/House-Number-Detection | 4eca97bbaa89f8b7722dc09abcf2b4b8587579ad | [
"MIT"
] | null | null | null | HND/HND.py | ultysim/House-Number-Detection | 4eca97bbaa89f8b7722dc09abcf2b4b8587579ad | [
"MIT"
] | null | null | null | HND/HND.py | ultysim/House-Number-Detection | 4eca97bbaa89f8b7722dc09abcf2b4b8587579ad | [
"MIT"
] | null | null | null | import numpy as np
import json
import cv2
from yolo.backend.utils.box import draw_scaled_boxes
import os
import yolo
from yolo.frontend import create_yolo
class HouseNumberDetector(object):
def __init__(self):
self.yolo_detector = create_yolo("ResNet50", ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]... | 34.5 | 151 | 0.667984 | 107 | 759 | 4.579439 | 0.626168 | 0.04898 | 0.097959 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030844 | 0.188406 | 759 | 22 | 152 | 34.5 | 0.76461 | 0 | 0 | 0 | 0 | 0.055556 | 0.180263 | 0.155263 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.388889 | 0 | 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 |
c530ec4e48f92a75a3f2fac1c76a693f52990a6e | 17,876 | py | Python | omcc/grpc/service_definition/tr451_vomci_sbi_message_pb2.py | BroadbandForum/obbaa-vomci | 949ad64e1b0521a892f223b7cf97e4e792b2ea1f | [
"Apache-2.0"
] | null | null | null | omcc/grpc/service_definition/tr451_vomci_sbi_message_pb2.py | BroadbandForum/obbaa-vomci | 949ad64e1b0521a892f223b7cf97e4e792b2ea1f | [
"Apache-2.0"
] | null | null | null | omcc/grpc/service_definition/tr451_vomci_sbi_message_pb2.py | BroadbandForum/obbaa-vomci | 949ad64e1b0521a892f223b7cf97e4e792b2ea1f | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: tr451_vomci_sbi_message.proto
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_datab... | 37.087137 | 1,530 | 0.761804 | 2,246 | 17,876 | 5.692342 | 0.098397 | 0.040673 | 0.069222 | 0.089167 | 0.671177 | 0.631521 | 0.609073 | 0.59781 | 0.520688 | 0.482127 | 0 | 0.044349 | 0.117028 | 17,876 | 481 | 1,531 | 37.164241 | 0.765649 | 0.049731 | 0 | 0.647196 | 1 | 0.002336 | 0.237391 | 0.179119 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.009346 | 0 | 0.009346 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c5421da12a31dad2069060c4e322fc69f1a23452 | 2,338 | py | Python | vega/datasets/conf/nasbench.py | zjzh/vega | aa6e7b8c69024262fc483ee06113b4d1bd5156d8 | [
"Apache-2.0"
] | null | null | null | vega/datasets/conf/nasbench.py | zjzh/vega | aa6e7b8c69024262fc483ee06113b4d1bd5156d8 | [
"Apache-2.0"
] | null | null | null | vega/datasets/conf/nasbench.py | zjzh/vega | aa6e7b8c69024262fc483ee06113b4d1bd5156d8 | [
"Apache-2.0"
] | null | null | null | # -*- coding=utf-8 -*-
# Copyright (C) 2020. Huawei Technologies Co., Ltd. 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... | 27.833333 | 74 | 0.602224 | 237 | 2,338 | 5.894515 | 0.49789 | 0.042949 | 0.032212 | 0.022906 | 0.140301 | 0.140301 | 0.07015 | 0.07015 | 0.07015 | 0 | 0 | 0.016334 | 0.292985 | 2,338 | 83 | 75 | 28.168675 | 0.828796 | 0.358854 | 0 | 0.2 | 0 | 0 | 0.077083 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075 | false | 0.075 | 0.05 | 0 | 0.525 | 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 |
c5485f8d3a2546b67470dc94a40b0a4a6c2a83b7 | 841 | py | Python | scoreengine/checks/ldap.py | ubnetdef/scoreengine2 | b68287ace21665f11004bbc423cc183aba710522 | [
"MIT"
] | 3 | 2019-05-03T05:19:18.000Z | 2020-05-04T15:27:32.000Z | scoreengine/checks/ldap.py | ubnetdef/scoreengine2 | b68287ace21665f11004bbc423cc183aba710522 | [
"MIT"
] | null | null | null | scoreengine/checks/ldap.py | ubnetdef/scoreengine2 | b68287ace21665f11004bbc423cc183aba710522 | [
"MIT"
] | null | null | null | # TODO: test this module
import ldap
from . import config, check_function
# DEFAULTS
ldap_config = {
'timeout': 15,
}
# /DEFAULTS
# CONFIG
if 'ldap' in config['checks']:
ldap_config.update(config['checks']['ldap'])
# /CONFIG
@check_function('Successful and correct query against the AD (LDAP) server')
def... | 22.72973 | 76 | 0.700357 | 108 | 841 | 5.305556 | 0.537037 | 0.069808 | 0.066318 | 0.076789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00428 | 0.166468 | 841 | 36 | 77 | 23.361111 | 0.813124 | 0.140309 | 0 | 0 | 0 | 0 | 0.196078 | 0 | 0 | 0 | 0 | 0.027778 | 0 | 1 | 0.058824 | false | 0.117647 | 0.117647 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
c557c2e51cf591b2f6bb59934830ef2666199a0b | 1,772 | py | Python | hub/urls.py | yevgenykuz/dev-team-hub | 839938fa7fd59f19fef6b90f32d10c30f2b34a91 | [
"MIT"
] | 2 | 2019-04-30T13:21:30.000Z | 2020-04-04T03:12:44.000Z | hub/urls.py | yevgenykuz/dev-team-hub | 839938fa7fd59f19fef6b90f32d10c30f2b34a91 | [
"MIT"
] | 40 | 2018-01-25T13:53:40.000Z | 2022-03-03T00:46:50.000Z | hub/urls.py | yevgenykuz/dev-team-hub | 839938fa7fd59f19fef6b90f32d10c30f2b34a91 | [
"MIT"
] | null | null | null | from django.contrib.auth import views as auth_views
from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name='index'),
path('search', views.search, name='search'),
path('signup', views.signup, name='signup'),
path('login', auth_views.LoginView.as_view(template_name='... | 50.628571 | 119 | 0.69526 | 212 | 1,772 | 5.551887 | 0.212264 | 0.068819 | 0.114698 | 0.175871 | 0.273577 | 0.273577 | 0.248938 | 0.185217 | 0 | 0 | 0 | 0.001358 | 0.168736 | 1,772 | 34 | 120 | 52.117647 | 0.797692 | 0 | 0 | 0 | 0 | 0 | 0.348194 | 0.265237 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.566667 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
c564d964cab86d0acb60a3a25cf20b6694fb1204 | 50 | py | Python | virtual/lib/python3.8/site-packages/PIL/_version.py | charlesmugambi/charles-repo | dfb164e909426601d9c9b746d4379453b4f4767b | [
"MIT"
] | 32 | 2020-04-02T03:21:43.000Z | 2022-02-13T07:05:53.000Z | virtual/lib/python3.8/site-packages/PIL/_version.py | charlesmugambi/charles-repo | dfb164e909426601d9c9b746d4379453b4f4767b | [
"MIT"
] | 16 | 2021-03-19T09:44:52.000Z | 2022-03-12T00:22:14.000Z | virtual/lib/python3.8/site-packages/PIL/_version.py | charlesmugambi/charles-repo | dfb164e909426601d9c9b746d4379453b4f4767b | [
"MIT"
] | 19 | 2020-10-03T17:34:25.000Z | 2022-03-28T11:57:52.000Z | # Master version for Pillow
__version__ = "7.0.0"
| 16.666667 | 27 | 0.72 | 8 | 50 | 4 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 0.16 | 50 | 2 | 28 | 25 | 0.690476 | 0.5 | 0 | 0 | 0 | 0 | 0.217391 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c56f902f6d2162b4d6168c2906239a8f54323a07 | 240 | py | Python | parser/team17/Parser/Reportes/Nodo1.py | webdev188/tytus | 847071edb17b218f51bb969d335a8ec093d13f94 | [
"MIT"
] | 35 | 2020-12-07T03:11:43.000Z | 2021-04-15T17:38:16.000Z | parser/team17/Parser/Reportes/Nodo1.py | webdev188/tytus | 847071edb17b218f51bb969d335a8ec093d13f94 | [
"MIT"
] | 47 | 2020-12-09T01:29:09.000Z | 2021-01-13T05:37:50.000Z | parser/team17/Parser/Reportes/Nodo1.py | webdev188/tytus | 847071edb17b218f51bb969d335a8ec093d13f94 | [
"MIT"
] | 556 | 2020-12-07T03:13:31.000Z | 2021-06-17T17:41:10.000Z | class Nodo:
def __init__(self,valor=''):
self.id =0
self.valor=str(valor)
self.hijos=[]
def getValor(self):
return self.valor
def setValor(self,valor):
self.valor = valor
def add(self, hijo):
self.hijos.append(hijo) | 14.117647 | 29 | 0.6625 | 36 | 240 | 4.305556 | 0.444444 | 0.290323 | 0.167742 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005128 | 0.1875 | 240 | 17 | 30 | 14.117647 | 0.789744 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | false | 0 | 0 | 0.090909 | 0.545455 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c572f3083a95c4d4313ae8ffc42d06b16b3f1347 | 2,517 | py | Python | auth/__init__.py | h-friederich/lpm | 144d29bf66fe495b6b4f05c4e69fbf31ba50f01b | [
"BSD-3-Clause"
] | null | null | null | auth/__init__.py | h-friederich/lpm | 144d29bf66fe495b6b4f05c4e69fbf31ba50f01b | [
"BSD-3-Clause"
] | null | null | null | auth/__init__.py | h-friederich/lpm | 144d29bf66fe495b6b4f05c4e69fbf31ba50f01b | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Authentication module for lpm
Encapsulates a user, compatible with flask-login and provides a has_role() method.
This is considered simpler to use than e.g. flask-principal
:copyright: (c) 2016 Hannes Friederich.
:license: BSD, see LICENSE for more details.
"""
from flask import current_a... | 23.091743 | 92 | 0.646802 | 337 | 2,517 | 4.64095 | 0.302671 | 0.05179 | 0.057545 | 0.046036 | 0.237212 | 0.237212 | 0.201407 | 0.059463 | 0 | 0 | 0 | 0.002697 | 0.263409 | 2,517 | 108 | 93 | 23.305556 | 0.840885 | 0.341279 | 0 | 0.113208 | 0 | 0 | 0.021127 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.358491 | false | 0.037736 | 0.037736 | 0.264151 | 0.735849 | 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 |
3d68730b3b2f7534804b13cd1aa96880dea7461c | 1,753 | py | Python | amical/analysis/pymask/__init__.py | anand0xff/AMICAL | 703ab4ead01054240ff5d43b6fb020d7877fd6cd | [
"MIT"
] | null | null | null | amical/analysis/pymask/__init__.py | anand0xff/AMICAL | 703ab4ead01054240ff5d43b6fb020d7877fd6cd | [
"MIT"
] | null | null | null | amical/analysis/pymask/__init__.py | anand0xff/AMICAL | 703ab4ead01054240ff5d43b6fb020d7877fd6cd | [
"MIT"
] | null | null | null | ''' --------------------------------------------------------------------
PYMASK: Python aperture masking analysis pipeline
--------------------------------------------------------------------
---
pymask is a python module for fitting models to aperture masking
data reduced to oifits format... | 27.825397 | 76 | 0.563035 | 213 | 1,753 | 4.586854 | 0.56338 | 0.021494 | 0.0348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004841 | 0.175128 | 1,753 | 62 | 77 | 28.274194 | 0.670816 | 0.687963 | 0 | 0 | 0 | 0 | 0.092873 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.684211 | 0 | 0.684211 | 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 |
3d6b21b29f62af23cdddbd812877c8c7ea37fadc | 2,810 | py | Python | built-in/PyTorch/Official/cv/image_classification/Gluon_ResNet50_v1c_for_PyTorch/timm/models/layers/__init__.py | Ascend/modelzoo | f018cfed33dbb1cc2110b9ea2e233333f71cc509 | [
"Apache-2.0"
] | 12 | 2020-12-13T08:34:24.000Z | 2022-03-20T15:17:17.000Z | built-in/PyTorch/Official/cv/image_classification/Gluon_ResNet50_v1b_for_PyTorch/timm/models/layers/__init__.py | Ascend/modelzoo | f018cfed33dbb1cc2110b9ea2e233333f71cc509 | [
"Apache-2.0"
] | 1 | 2022-01-20T03:11:05.000Z | 2022-01-20T06:53:39.000Z | built-in/PyTorch/Official/cv/image_classification/Gluon_ResNet50_v1c_for_PyTorch/timm/models/layers/__init__.py | Ascend/modelzoo | f018cfed33dbb1cc2110b9ea2e233333f71cc509 | [
"Apache-2.0"
] | 2 | 2021-07-10T12:40:46.000Z | 2021-12-17T07:55:15.000Z | # Copyright 2019 Ross Wightman
# Copyright 2021 Huawei Technologies Co., Ltd
#
# 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... | 51.090909 | 105 | 0.844128 | 382 | 2,810 | 5.971204 | 0.505236 | 0.026304 | 0.011399 | 0.014029 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0176 | 0.11032 | 2,810 | 54 | 106 | 52.037037 | 0.8948 | 0.209964 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.95 | 0 | 0.95 | 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 |
3d76cf91c2073e8ca6b49e3890f2d0b91a4eaf22 | 965 | py | Python | AppDB/groomer_service.py | christianbaun/appscale | c24ddfd987c8eed8ed8864cc839cc0556a8af3c7 | [
"Apache-2.0"
] | 2 | 2018-10-09T17:48:12.000Z | 2019-01-15T10:18:19.000Z | AppDB/groomer_service.py | christianbaun/appscale | c24ddfd987c8eed8ed8864cc839cc0556a8af3c7 | [
"Apache-2.0"
] | null | null | null | AppDB/groomer_service.py | christianbaun/appscale | c24ddfd987c8eed8ed8864cc839cc0556a8af3c7 | [
"Apache-2.0"
] | 1 | 2022-02-20T20:57:12.000Z | 2022-02-20T20:57:12.000Z | """ Provides a service which periodically runs the groomer. """
import logging
import os
import sys
import groomer
from zkappscale import zktransaction as zk
sys.path.append(os.path.join(os.path.dirname(__file__), "../lib/"))
import appscale_info
from constants import LOG_FORMAT
# Location to find the datastore ser... | 32.166667 | 83 | 0.778238 | 122 | 965 | 5.885246 | 0.516393 | 0.075209 | 0.066852 | 0.086351 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005889 | 0.120207 | 965 | 29 | 84 | 33.275862 | 0.839812 | 0.040415 | 0 | 0 | 0 | 0 | 0.121951 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.318182 | null | null | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
3d7a51bf9106cc032a9c31a9effcda1dc9eb70a6 | 626 | py | Python | test/mitmproxy/data/addonscripts/recorder.py | e7appew/pkg-mitmproxy | f427c573805d2af57111142757eff5661a0bb9cf | [
"MIT"
] | null | null | null | test/mitmproxy/data/addonscripts/recorder.py | e7appew/pkg-mitmproxy | f427c573805d2af57111142757eff5661a0bb9cf | [
"MIT"
] | null | null | null | test/mitmproxy/data/addonscripts/recorder.py | e7appew/pkg-mitmproxy | f427c573805d2af57111142757eff5661a0bb9cf | [
"MIT"
] | null | null | null | from mitmproxy import controller
from mitmproxy import ctx
import sys
class CallLogger:
call_log = []
def __init__(self, name = "solo"):
self.name = name
def __getattr__(self, attr):
if attr in controller.Events:
def prox(*args, **kwargs):
lg = (self.name, att... | 24.076923 | 62 | 0.535144 | 73 | 626 | 4.452055 | 0.479452 | 0.098462 | 0.116923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002463 | 0.351438 | 626 | 25 | 63 | 25.04 | 0.79803 | 0 | 0 | 0 | 0 | 0 | 0.019169 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.157895 | 0.052632 | 0.578947 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
3d7e2ce570d11b2573432922070d51b4401d36eb | 433 | py | Python | backend/reviews/serializers.py | bachEA/bookstore | 621bb6ac390f2fca9f21af3b512266611a39ece4 | [
"MIT"
] | null | null | null | backend/reviews/serializers.py | bachEA/bookstore | 621bb6ac390f2fca9f21af3b512266611a39ece4 | [
"MIT"
] | null | null | null | backend/reviews/serializers.py | bachEA/bookstore | 621bb6ac390f2fca9f21af3b512266611a39ece4 | [
"MIT"
] | null | null | null | # Serializers class has two important purpose
# First it converts data into JSON
# Second it specify which fields (in models) to include or exclude
from rest_framework import serializers
from .models import Review
class ReviewSerializer(serializers.ModelSerializer):
# to customize which fields to include or ... | 22.789474 | 66 | 0.725173 | 55 | 433 | 5.672727 | 0.690909 | 0.070513 | 0.070513 | 0.115385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.205543 | 433 | 18 | 67 | 24.055556 | 0.906977 | 0.43649 | 0 | 0 | 0 | 0 | 0.112971 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 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 |
3d9456f11d544e3977f75c29e847a7d91103431c | 3,273 | py | Python | code/week4/linked_list.py | Heroes-Academy/DataStructures_Winter2017 | 2dab3537af2810399b2dd1aa6a570d2b185e3661 | [
"MIT"
] | null | null | null | code/week4/linked_list.py | Heroes-Academy/DataStructures_Winter2017 | 2dab3537af2810399b2dd1aa6a570d2b185e3661 | [
"MIT"
] | null | null | null | code/week4/linked_list.py | Heroes-Academy/DataStructures_Winter2017 | 2dab3537af2810399b2dd1aa6a570d2b185e3661 | [
"MIT"
] | null | null | null | """
Use the classes below to make a Linked List
I've provided the skeleton, you have to fill in the details
You can use the slide and ask me questions.
You can also use the internet, but I would warn against just copying code.
You won't learn much that way.
"""
class LinkedList:
"""Basic Linked List class
... | 25.176923 | 76 | 0.580202 | 464 | 3,273 | 4.036638 | 0.25431 | 0.037373 | 0.028831 | 0.029899 | 0.180459 | 0.164442 | 0.164442 | 0.164442 | 0.164442 | 0.138815 | 0 | 0.001425 | 0.356554 | 3,273 | 129 | 77 | 25.372093 | 0.887939 | 0.589673 | 0 | 0.264706 | 0 | 0 | 0.036559 | 0 | 0 | 0 | 0 | 0 | 0.088235 | 1 | 0.264706 | false | 0.147059 | 0 | 0 | 0.323529 | 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 |
3d9d0f3d1c8f7a24d3134db85ff000804cd498f2 | 958 | py | Python | ee/api/chalicelib/core/unlock.py | champkeh/openreplay | 440634dca1e78464e96f9397105d04b5c3cecdfd | [
"MIT"
] | 1 | 2021-09-28T15:24:31.000Z | 2021-09-28T15:24:31.000Z | ee/api/chalicelib/core/unlock.py | aayushgautam/openreplay | 3298230c3a04fe537794bf396bdaf695c81301c6 | [
"MIT"
] | null | null | null | ee/api/chalicelib/core/unlock.py | aayushgautam/openreplay | 3298230c3a04fe537794bf396bdaf695c81301c6 | [
"MIT"
] | null | null | null | from chalicelib.utils.helper import environ
from chalicelib.utils.TimeUTC import TimeUTC
import requests
import uuid
def __get_mid():
return str(uuid.UUID(int=uuid.getnode()))
def get_license():
return environ.get("LICENSE_KEY", "")
def check():
license=get_license()
print(f"validating: {license}"... | 26.611111 | 113 | 0.652401 | 127 | 958 | 4.795276 | 0.409449 | 0.065681 | 0.062397 | 0.039409 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007614 | 0.177453 | 958 | 35 | 114 | 27.371429 | 0.765228 | 0 | 0 | 0 | 0 | 0 | 0.188935 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.16 | 0.12 | 0.52 | 0.12 | 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 |
3da96bd827d3f21fc646e839d98579251aa8f532 | 2,294 | py | Python | src/FlaUILibrary/keywords/debug.py | GDATASoftwareAG/robotframework-flaui | 81b654be0c4bdd7a176c7186eff2757f7e5da72a | [
"MIT"
] | 22 | 2020-05-04T14:40:53.000Z | 2022-03-24T05:57:00.000Z | src/FlaUILibrary/keywords/debug.py | Fxztam/robotframework-flaui | 81b654be0c4bdd7a176c7186eff2757f7e5da72a | [
"MIT"
] | 33 | 2020-07-27T12:47:33.000Z | 2022-03-29T11:16:30.000Z | src/FlaUILibrary/keywords/debug.py | Fxztam/robotframework-flaui | 81b654be0c4bdd7a176c7186eff2757f7e5da72a | [
"MIT"
] | 4 | 2020-07-23T09:50:25.000Z | 2022-01-18T10:32:55.000Z | from robotlibcore import keyword
from FlaUILibrary.flaui.module import Debug
class DebugKeywords:
"""
Interface implementation from robotframework usage for debugging keywords.
"""
def __init__(self, module):
"""
Constructor for debugging keywords.
``module`` Aut... | 37.606557 | 120 | 0.616827 | 229 | 2,294 | 6.09607 | 0.471616 | 0.068768 | 0.100287 | 0.028653 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01721 | 0.290759 | 2,294 | 60 | 121 | 38.233333 | 0.840811 | 0.622929 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.166667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
3dab5a10c88549caca9c97a4ff2de05bb8452ead | 379 | py | Python | examples/basic_example.py | dumita123/twitch-highlights | 7d13207320772edb343fe3924f4ad459c2f59652 | [
"Apache-2.0"
] | 11 | 2021-04-16T11:07:27.000Z | 2021-09-07T19:23:15.000Z | examples/basic_example.py | dumita123/twitch-highlights | 7d13207320772edb343fe3924f4ad459c2f59652 | [
"Apache-2.0"
] | 5 | 2021-04-04T10:59:24.000Z | 2021-11-02T00:58:19.000Z | examples/basic_example.py | dumita123/twitch-highlights | 7d13207320772edb343fe3924f4ad459c2f59652 | [
"Apache-2.0"
] | 9 | 2020-07-08T03:02:10.000Z | 2021-03-06T06:03:39.000Z | from twitch_highlights import TwitchHighlights
twitch_credentials = {
"client_id": "##############################", # Your client id here
"client_secret": "##############################" # Your client secret here
}
highlight_generator = TwitchHighlights(twitch_credentials=twitch_credentials)
highl... | 34.454545 | 82 | 0.651715 | 34 | 379 | 6.941176 | 0.529412 | 0.216102 | 0.279661 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121372 | 379 | 10 | 83 | 37.9 | 0.708709 | 0.113456 | 0 | 0 | 0 | 0 | 0.27027 | 0.18018 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
3db00326fd8f8155136750b9d591a8f16cebea22 | 90 | py | Python | Modules/Control/config.py | Rogozin-high-school/sat_monitoring_system | d73a7c1db26c9e5ac61982609ce155c20d14da51 | [
"Apache-2.0"
] | 4 | 2017-11-22T12:34:43.000Z | 2018-09-08T19:02:32.000Z | Modules/Control/config.py | Rogozin-high-school/sat_monitoring_system | d73a7c1db26c9e5ac61982609ce155c20d14da51 | [
"Apache-2.0"
] | 43 | 2017-11-19T16:19:56.000Z | 2022-01-12T23:02:54.000Z | Modules/Control/config.py | Rogozin-high-school/sat_monitoring_system | d73a7c1db26c9e5ac61982609ce155c20d14da51 | [
"Apache-2.0"
] | 1 | 2018-03-08T10:56:56.000Z | 2018-03-08T10:56:56.000Z | AMOUNT_OF_WRAPS = 100
RADIUS = 0.09 #(meter)
RESISTANCE = 170 #(ohm)
TIME_DIFFERENCE = 0.5 | 22.5 | 23 | 0.722222 | 15 | 90 | 4.133333 | 0.933333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 0.144444 | 90 | 4 | 24 | 22.5 | 0.662338 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
3db3e5d3fb037d56271753811c8f071c0b320443 | 323 | py | Python | tools/leetcode.189.Rotate Array/leetcode.189.Rotate Array.submission3.py | tedye/leetcode | 975d7e3b8cb9b6be9e80e07febf4bcf6414acd46 | [
"MIT"
] | 4 | 2015-10-10T00:30:55.000Z | 2020-07-27T19:45:54.000Z | tools/leetcode.189.Rotate Array/leetcode.189.Rotate Array.submission3.py | tedye/leetcode | 975d7e3b8cb9b6be9e80e07febf4bcf6414acd46 | [
"MIT"
] | null | null | null | tools/leetcode.189.Rotate Array/leetcode.189.Rotate Array.submission3.py | tedye/leetcode | 975d7e3b8cb9b6be9e80e07febf4bcf6414acd46 | [
"MIT"
] | null | null | null | class Solution:
# @param nums, a list of integer
# @param k, num of steps
# @return nothing, please modify the nums list in-place.
def rotate(self, nums, k):
if not nums or k == 0:
return
k = len(nums) - k%len(nums)
for i in range(k):
nums.append(nums.pop(... | 323 | 323 | 0.551084 | 50 | 323 | 3.56 | 0.62 | 0.05618 | 0.089888 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009346 | 0.337461 | 323 | 1 | 323 | 323 | 0.82243 | 0.334365 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
3dd0ecb8595582b74f3e9ded98e01fcff7f37af3 | 343 | py | Python | src/ticker_tape/util/datetime.py | MingWood/ticker_tape | 0faa03aee7fdbdbcc15318578e37ab61fbcec1c8 | [
"MIT"
] | null | null | null | src/ticker_tape/util/datetime.py | MingWood/ticker_tape | 0faa03aee7fdbdbcc15318578e37ab61fbcec1c8 | [
"MIT"
] | null | null | null | src/ticker_tape/util/datetime.py | MingWood/ticker_tape | 0faa03aee7fdbdbcc15318578e37ab61fbcec1c8 | [
"MIT"
] | null | null | null | from datetime import datetime
from dateutil import tz
from dateutil.parser import parse
def datetime_to_epoch_ms(datestring):
parsed_date = parse(datestring)
parsed_date = parsed_date.astimezone(tz.tzutc())
parsed_date = parsed_date.replace(tzinfo=None)
return int((parsed_date - datetime(1970, 1, 1)).... | 34.3 | 75 | 0.766764 | 48 | 343 | 5.270833 | 0.541667 | 0.237154 | 0.158103 | 0.158103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033898 | 0.139942 | 343 | 10 | 75 | 34.3 | 0.823729 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.625 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
3de2d2fa1d108599d79cb7d39772149012a20271 | 17,970 | py | Python | stage/configuration/test_kudu_lookup_processor.py | streamsets/datacollector-tests | 6c3e908768e1d4a586e9183e2141096921ecd5be | [
"Apache-2.0"
] | 14 | 2019-03-04T10:12:39.000Z | 2021-11-24T16:17:09.000Z | stage/configuration/test_kudu_lookup_processor.py | Pragatibs/datacollector-tests | aac53b2f0e056009ef0e437c8430651e3cf4d502 | [
"Apache-2.0"
] | 48 | 2019-03-08T14:59:06.000Z | 2021-08-13T14:49:56.000Z | stage/configuration/test_kudu_lookup_processor.py | Pragatibs/datacollector-tests | aac53b2f0e056009ef0e437c8430651e3cf4d502 | [
"Apache-2.0"
] | 23 | 2018-09-24T20:49:17.000Z | 2021-11-24T16:17:11.000Z | # Copyright 2021 StreamSets Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | 38.896104 | 115 | 0.650473 | 2,244 | 17,970 | 4.952763 | 0.138592 | 0.042559 | 0.025733 | 0.041569 | 0.761922 | 0.734569 | 0.681573 | 0.667896 | 0.623448 | 0.594206 | 0 | 0.011055 | 0.2399 | 17,970 | 461 | 116 | 38.980477 | 0.802621 | 0.148191 | 0 | 0.673401 | 0 | 0 | 0.165255 | 0.04353 | 0 | 0 | 0 | 0 | 0.040404 | 1 | 0.074074 | false | 0.077441 | 0.030303 | 0 | 0.104377 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
3de4d8317d5d45557537f07010d3d373d5a5a079 | 306 | py | Python | PyTorch/Text-Sum/translation/attention_model.py | ashirwadsangwan/Python | b4e570bb31783178d241b9f2a7145343d830b698 | [
"MIT"
] | null | null | null | PyTorch/Text-Sum/translation/attention_model.py | ashirwadsangwan/Python | b4e570bb31783178d241b9f2a7145343d830b698 | [
"MIT"
] | null | null | null | PyTorch/Text-Sum/translation/attention_model.py | ashirwadsangwan/Python | b4e570bb31783178d241b9f2a7145343d830b698 | [
"MIT"
] | 1 | 2022-02-22T16:08:43.000Z | 2022-02-22T16:08:43.000Z | from __future__ import unicode_literals, print_function, division
from io import open
import unicodedata
import string
import re
import random
import torch
import torch.nn as nn
from torch import optim
import torch.nn.functional as F
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
| 21.857143 | 69 | 0.810458 | 48 | 306 | 5.020833 | 0.5625 | 0.136929 | 0.107884 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133987 | 306 | 13 | 70 | 23.538462 | 0.909434 | 0 | 0 | 0 | 0 | 0 | 0.022876 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.909091 | 0 | 0.909091 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
3df5cd56f86bf65db76376ed52d291320506774b | 601 | py | Python | benchmarks/functions/math/sqrt.py | kmaehashi/chainer-benchmark | 7af2005d71253d236f7f239119d7130f22b26bb4 | [
"MIT"
] | 9 | 2018-04-09T10:26:45.000Z | 2019-07-13T11:31:49.000Z | benchmarks/functions/math/sqrt.py | chainer/chainer-benchmark | 8d0c8f5052b5e2a85ad522ff48899ffc9a2bfafb | [
"MIT"
] | 19 | 2018-04-09T10:35:12.000Z | 2018-08-30T08:49:40.000Z | benchmarks/functions/math/sqrt.py | chainer/chainer-benchmark | 8d0c8f5052b5e2a85ad522ff48899ffc9a2bfafb | [
"MIT"
] | 2 | 2018-04-09T10:26:53.000Z | 2019-03-20T01:35:26.000Z | import chainer.functions as F
from benchmarks.functions import UnaryMathFunctionBenchmark
from benchmarks.utils import backends
@backends('gpu', 'cpu')
class SqrtFunc(UnaryMathFunctionBenchmark):
def setup(self):
self.setup_benchmark(F.sqrt)
def time_forward(self):
self.forward()
def t... | 19.387097 | 59 | 0.693844 | 67 | 601 | 6.134328 | 0.358209 | 0.116788 | 0.068127 | 0.092457 | 0.569343 | 0.569343 | 0.569343 | 0.569343 | 0.291971 | 0.291971 | 0 | 0 | 0.201331 | 601 | 30 | 60 | 20.033333 | 0.85625 | 0 | 0 | 0.631579 | 0 | 0 | 0.019967 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.315789 | false | 0 | 0.157895 | 0 | 0.578947 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
3dfff2512144697e31ab3147f52322234ff3f09e | 2,578 | py | Python | dm_control/render/__init__.py | willwhitney/dm_control | f2568f59970f3c895f21e0c4278f1723d79b0933 | [
"Apache-2.0"
] | null | null | null | dm_control/render/__init__.py | willwhitney/dm_control | f2568f59970f3c895f21e0c4278f1723d79b0933 | [
"Apache-2.0"
] | null | null | null | dm_control/render/__init__.py | willwhitney/dm_control | f2568f59970f3c895f21e0c4278f1723d79b0933 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017-2018 The dm_control Authors.
#
# 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... | 31.439024 | 85 | 0.721102 | 346 | 2,578 | 5.268786 | 0.445087 | 0.032913 | 0.028524 | 0.04169 | 0.075699 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005607 | 0.169899 | 2,578 | 81 | 86 | 31.82716 | 0.846262 | 0.491854 | 0 | 0.102564 | 0 | 0 | 0.074045 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.102564 | false | 0.025641 | 0.435897 | 0 | 0.615385 | 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 |
9a7860ed6191636c3e6508f29b26dfd1ecc095d2 | 1,201 | py | Python | gym/admin.py | fitahol/fitahol | ce84dc909aa98f2dc7594ef26568e015cbfe0e94 | [
"MIT"
] | 2 | 2017-02-20T14:11:30.000Z | 2017-06-11T16:10:33.000Z | gym/admin.py | fitahol/fitahol | ce84dc909aa98f2dc7594ef26568e015cbfe0e94 | [
"MIT"
] | null | null | null | gym/admin.py | fitahol/fitahol | ce84dc909aa98f2dc7594ef26568e015cbfe0e94 | [
"MIT"
] | null | null | null | # coding=utf-8
from django.contrib import admin
from gym.models import Country, City, Province, District, Gymnasium
class CountryAdmin(admin.ModelAdmin):
list_display = ("code", "name", "languages", "capital")
admin.site.register(Country, CountryAdmin)
class ProvinceAdmin(admin.ModelAdmin):
list_display =... | 29.292683 | 76 | 0.686928 | 131 | 1,201 | 6.167939 | 0.312977 | 0.092822 | 0.117574 | 0.160891 | 0.402228 | 0.365099 | 0.365099 | 0.365099 | 0.365099 | 0.365099 | 0 | 0.000973 | 0.144047 | 1,201 | 40 | 77 | 30.025 | 0.785019 | 0.009992 | 0 | 0.217391 | 0 | 0 | 0.222409 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.086957 | 0 | 0.73913 | 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 | 0 | 0 | 1 | 0 | 0 | 2 |
9a95d7851418d56d8772ccb5dfe6fa32593447bc | 500 | py | Python | net/utils/visdom.py | sdjsngs/Code_Base_CV_Pytorch | b43927436d8a1adc82cf73c6c5415821f8f980cc | [
"MIT"
] | null | null | null | net/utils/visdom.py | sdjsngs/Code_Base_CV_Pytorch | b43927436d8a1adc82cf73c6c5415821f8f980cc | [
"MIT"
] | null | null | null | net/utils/visdom.py | sdjsngs/Code_Base_CV_Pytorch | b43927436d8a1adc82cf73c6c5415821f8f980cc | [
"MIT"
] | null | null | null | """
torch visdom
"""
from visdom import Visdom
import numpy as np
import math
import os.path
import getpass
from sys import platform as _platform
from six.moves import urllib
viz = Visdom()
assert viz.check_connection()
try:
import matplotlib.pyplot as plt
plt.plot([1, 23, 2, 4])
plt.ylabel('some numbers'... | 17.857143 | 39 | 0.71 | 71 | 500 | 4.859155 | 0.619718 | 0.063768 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012285 | 0.186 | 500 | 27 | 40 | 18.518519 | 0.835381 | 0.024 | 0 | 0 | 0 | 0 | 0.152083 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 1 | 0 | false | 0.052632 | 0.421053 | 0 | 0.421053 | 0.157895 | 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 |
9a9c86b05300b8f667eb3de71be00b8e99754491 | 112,346 | py | Python | pysnmp-with-texts/UPPHONEDOTCOM-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/UPPHONEDOTCOM-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/UPPHONEDOTCOM-MIB.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 UPPHONEDOTCOM-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/UPPHONEDOTCOM-MIB
# Produced by pysmi-0.3.4 at Wed May 1 15:28:47 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Ma... | 138.017199 | 11,375 | 0.787051 | 12,543 | 112,346 | 7.04935 | 0.066172 | 0.065822 | 0.115189 | 0.01416 | 0.55846 | 0.447715 | 0.417406 | 0.368469 | 0.329326 | 0.284969 | 0 | 0.053498 | 0.089064 | 112,346 | 813 | 11,376 | 138.186962 | 0.810485 | 0.00292 | 0 | 0 | 0 | 0.029777 | 0.276728 | 0.004732 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.007444 | 0 | 0.007444 | 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 |
9aa3adc7169213910c07994eb7b2cc6c8e749dc6 | 343 | py | Python | knx_plugin/trigger/dpt_switch.py | majamassarini/automate-knx-plugin | 478cd8c00c36b0cb8d5a7363985c05a45afae2d5 | [
"MIT"
] | null | null | null | knx_plugin/trigger/dpt_switch.py | majamassarini/automate-knx-plugin | 478cd8c00c36b0cb8d5a7363985c05a45afae2d5 | [
"MIT"
] | 1 | 2022-02-12T19:06:23.000Z | 2022-02-12T19:06:23.000Z | knx_plugin/trigger/dpt_switch.py | majamassarini/automate-knx-plugin | 478cd8c00c36b0cb8d5a7363985c05a45afae2d5 | [
"MIT"
] | null | null | null | from knx_plugin.trigger import Equal
class On(Equal):
DPT = {
"type": "knx",
"name": "DPT_Switch",
"addresses": [],
"fields": {"action": "on"},
}
class Off(Equal):
DPT = {
"type": "knx",
"name": "DPT_Switch",
"addresses": [],
"fields": {"... | 15.590909 | 36 | 0.443149 | 32 | 343 | 4.65625 | 0.5 | 0.107383 | 0.161074 | 0.201342 | 0.657718 | 0.657718 | 0.657718 | 0.657718 | 0.657718 | 0.657718 | 0 | 0 | 0.349854 | 343 | 21 | 37 | 16.333333 | 0.668161 | 0 | 0 | 0.533333 | 0 | 0 | 0.259475 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9aa782edfebdde3ac4747a155dde04edf94fcc6a | 1,040 | py | Python | setup.py | Abstract-X/xcept | cb4886f5adeb9d36b6954c8ff6f6dd0f348326f1 | [
"MIT"
] | 2 | 2021-12-19T18:49:32.000Z | 2022-02-20T17:51:06.000Z | setup.py | Abstract-X/xcept | cb4886f5adeb9d36b6954c8ff6f6dd0f348326f1 | [
"MIT"
] | null | null | null | setup.py | Abstract-X/xcept | cb4886f5adeb9d36b6954c8ff6f6dd0f348326f1 | [
"MIT"
] | null | null | null | import setuptools
from pathlib import Path
def get_long_description() -> str:
path = Path(__file__).parent / "README.md"
with open(str(path), encoding="UTF-8") as stream:
long_description = stream.read()
return long_description
setuptools.setup(
name="xcept",
version="2.0.0",
packag... | 30.588235 | 58 | 0.643269 | 119 | 1,040 | 5.478992 | 0.588235 | 0.138037 | 0.191718 | 0.199387 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023143 | 0.210577 | 1,040 | 33 | 59 | 31.515152 | 0.771011 | 0 | 0 | 0 | 0 | 0 | 0.407692 | 0.028846 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.071429 | 0 | 0.142857 | 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 |
9ab1b7229dcec239bca8592f473393d106c87bb2 | 831 | py | Python | pyramid/tests/test_decorator.py | danielpronych/pyramid-doxygen | ad95a8c151c2c4e029e03aed2feda2993380f36f | [
"BSD-2-Clause"
] | null | null | null | pyramid/tests/test_decorator.py | danielpronych/pyramid-doxygen | ad95a8c151c2c4e029e03aed2feda2993380f36f | [
"BSD-2-Clause"
] | null | null | null | pyramid/tests/test_decorator.py | danielpronych/pyramid-doxygen | ad95a8c151c2c4e029e03aed2feda2993380f36f | [
"BSD-2-Clause"
] | null | null | null | import unittest
class TestReify(unittest.TestCase):
def _makeOne(self, wrapped):
from pyramid.decorator import reify
return reify(wrapped)
def test___get__withinst(self):
def wrapped(inst):
return 'a'
decorator = self._makeOne(wrapped)
inst = Dummy()
... | 27.7 | 55 | 0.622142 | 89 | 831 | 5.41573 | 0.337079 | 0.124481 | 0.124481 | 0.074689 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.271961 | 831 | 29 | 56 | 28.655172 | 0.796694 | 0.00722 | 0 | 0.173913 | 0 | 0 | 0.019536 | 0 | 0 | 0 | 0 | 0 | 0.173913 | 1 | 0.26087 | false | 0.043478 | 0.086957 | 0.043478 | 0.521739 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
9ab4b084e0f556959d6f435fd8eaf4ef19f04815 | 260 | py | Python | phonology-augmented_transliterator/phone_mapper/shared_res/LangAssets.py | ngohgia/transliteration | 3acb47a097ff3b320a0718d15c6e62965d346888 | [
"MIT"
] | 1 | 2022-02-21T03:07:06.000Z | 2022-02-21T03:07:06.000Z | phonology-augmented_transliterator/phone_mapper/shared_res/LangAssets.py | ngohgia/transliteration | 3acb47a097ff3b320a0718d15c6e62965d346888 | [
"MIT"
] | null | null | null | phonology-augmented_transliterator/phone_mapper/shared_res/LangAssets.py | ngohgia/transliteration | 3acb47a097ff3b320a0718d15c6e62965d346888 | [
"MIT"
] | null | null | null | class LangAssets:
RANK_WEIGHT = 1.0
SCHWA = "aa"
CLOSER_UNKNOWN_PHONEME_PEN = 10
CLOSER_UNKNOWN_GRAPHEME_PEN = 15
FARTHER_UNKNOWN_PHONEME_PEN = 1
FARTHER_UNKNOWN_GRAPHEME_PEN = 5
MAIN_UNKNOWN_PHONEME_PEN = 20
MAIN_UNKNOWN_GRAPHEME_PEN = 30
| 18.571429 | 34 | 0.776923 | 38 | 260 | 4.815789 | 0.526316 | 0.229508 | 0.278689 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056075 | 0.176923 | 260 | 13 | 35 | 20 | 0.799065 | 0 | 0 | 0 | 0 | 0 | 0.007692 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9ac0a27cc1764f46c41e039b200df84b1359b1f3 | 1,205 | py | Python | tests/test_trueheaders.py | meejah/ooni-probe | f46dc5879da409763718cfa5aa2635ddf5332a54 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | tests/test_trueheaders.py | meejah/ooni-probe | f46dc5879da409763718cfa5aa2635ddf5332a54 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | tests/test_trueheaders.py | meejah/ooni-probe | f46dc5879da409763718cfa5aa2635ddf5332a54 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | from twisted.trial import unittest
from ooni.utils.txagentwithsocks import TrueHeaders
dummy_headers_dict = {
'Header1': ['Value1', 'Value2'],
'Header2': ['ValueA', 'ValueB']
}
dummy_headers_dict2 = {
'Header1': ['Value1', 'Value2'],
'Header2': ['ValueA', 'ValueB'],
'Header3':... | 28.690476 | 99 | 0.658091 | 127 | 1,205 | 6 | 0.291339 | 0.173228 | 0.271654 | 0.177165 | 0.585302 | 0.585302 | 0.435696 | 0.435696 | 0.435696 | 0.435696 | 0 | 0.02454 | 0.188382 | 1,205 | 41 | 100 | 29.390244 | 0.754601 | 0 | 0 | 0.285714 | 0 | 0 | 0.149875 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.107143 | false | 0 | 0.071429 | 0 | 0.214286 | 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 |
9ac274e9e405fb5c06fa0d7db6ceade2928ad974 | 547 | py | Python | gora/controllers/.~c9_invoke_SSxcqN.py | OneTesseractInMultiverse/G-ra | 1b91764620ba7a6400c64aa423f508837e71d226 | [
"MIT"
] | null | null | null | gora/controllers/.~c9_invoke_SSxcqN.py | OneTesseractInMultiverse/G-ra | 1b91764620ba7a6400c64aa423f508837e71d226 | [
"MIT"
] | null | null | null | gora/controllers/.~c9_invoke_SSxcqN.py | OneTesseractInMultiverse/G-ra | 1b91764620ba7a6400c64aa423f508837e71d226 | [
"MIT"
] | null | null | null | from gora import app
from gora.models.graph import (
Band,
User
)
from flask_login import login_user, login_required
from flask import jsonify, request, render_template
# --------------------------------------------------------------------------
# GET: /ACCOUNT
# ---------------------------------------------... | 6.590361 | 76 | 0.42596 | 46 | 547 | 4.891304 | 0.521739 | 0.071111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.235832 | 547 | 82 | 77 | 6.670732 | 0.538278 | 0.297989 | 0 | 0 | 0 | 0 | 0.072785 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | true | 0 | 0.307692 | 0.076923 | 0.461538 | 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 |
9ac68fb3604099ed5e8a668914830b553f1b85a3 | 1,767 | py | Python | lib/utils/cnhelp.py | gaoming136692/POC-T | 509d08cbaaced12bf9bc9aa9dd0748abc73a3c37 | [
"DOC"
] | 6 | 2019-01-20T08:34:30.000Z | 2021-09-14T15:47:42.000Z | lib/utils/cnhelp.py | gaoming136692/POC-T | 509d08cbaaced12bf9bc9aa9dd0748abc73a3c37 | [
"DOC"
] | null | null | null | lib/utils/cnhelp.py | gaoming136692/POC-T | 509d08cbaaced12bf9bc9aa9dd0748abc73a3c37 | [
"DOC"
] | 4 | 2019-10-01T01:18:40.000Z | 2021-10-01T12:02:20.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# author = i@cdxy.me
# project = https://github.com/Xyntax/POC-T
u"""
本文档为程序中文使用说明,您也可以使用 -h 查看英文版使用说明
powered by cdxy <mail:i@cdxy.me>
使用方法:
python POC-T.py [-T|-C] [-m NAME] [-s|-f|-i|-n VALUE] [options]
python POC-T.py [-h|-v|--show|--update]
示例:
python POC-T.py... | 28.967213 | 82 | 0.601585 | 275 | 1,767 | 3.861818 | 0.549091 | 0.033898 | 0.07533 | 0.090395 | 0.108286 | 0.096045 | 0.056497 | 0.039548 | 0 | 0 | 0 | 0.030303 | 0.234295 | 1,767 | 60 | 83 | 29.45 | 0.754619 | 0.989247 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9ac9639f5e4796af8a5fe73b3b9da314da47a8d7 | 17,260 | py | Python | pysnmp/MY-SYSTEM-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/MY-SYSTEM-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/MY-SYSTEM-MIB.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 MY-SYSTEM-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/MY-SYSTEM-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 20:06:49 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 201... | 128.80597 | 2,786 | 0.763268 | 1,916 | 17,260 | 6.874739 | 0.114301 | 0.010477 | 0.013438 | 0.017917 | 0.401002 | 0.360006 | 0.293805 | 0.288794 | 0.243319 | 0.238157 | 0 | 0.084756 | 0.084009 | 17,260 | 133 | 2,787 | 129.774436 | 0.748387 | 0.01854 | 0 | 0.016 | 0 | 0 | 0.120253 | 0.012876 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.056 | 0 | 0.056 | 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 |
9ad16d97fce17d28186b8214828576ab1b83b2dc | 2,917 | py | Python | Reference/qpc/examples/qutest/unity_basic/test/test_ProductionCode.py | Harveyhubbell/Paid-RTOS | e56a1346cce026428c2bfef05b6a4e6bb2ee7f4e | [
"MIT"
] | null | null | null | Reference/qpc/examples/qutest/unity_basic/test/test_ProductionCode.py | Harveyhubbell/Paid-RTOS | e56a1346cce026428c2bfef05b6a4e6bb2ee7f4e | [
"MIT"
] | null | null | null | Reference/qpc/examples/qutest/unity_basic/test/test_ProductionCode.py | Harveyhubbell/Paid-RTOS | e56a1346cce026428c2bfef05b6a4e6bb2ee7f4e | [
"MIT"
] | null | null | null | # QUTEST script corresponding to the test_ProductionCode.c test fixture.
# This test fixture corresponds to ../test_unity/TestProductionCode.c fixture.
# see https://www.state-machine.com/qtools/qutest.html/qutest.html
# preamble...
def on_setup():
# This is run before EACH TEST
current_obj(OBJ_AP, "Counter")
... | 45.578125 | 137 | 0.786424 | 424 | 2,917 | 5.325472 | 0.351415 | 0.119575 | 0.043844 | 0.053587 | 0.558016 | 0.4845 | 0.44287 | 0.356067 | 0.334367 | 0.279894 | 0 | 0.060241 | 0.117929 | 2,917 | 63 | 138 | 46.301587 | 0.817334 | 0.281796 | 0 | 0.404762 | 0 | 0.02381 | 0.710919 | 0.228475 | 0 | 0 | 0.022126 | 0 | 0 | 1 | 0.02381 | true | 0 | 0 | 0 | 0.02381 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9ae95550afeb2c724fa6bea35374fce78c3f71d0 | 677 | py | Python | slb_cfg_generator.py | MaksimShchuplov/scripts | aff47c770b62a0334029adfdc689452bc11b8ee0 | [
"Unlicense"
] | null | null | null | slb_cfg_generator.py | MaksimShchuplov/scripts | aff47c770b62a0334029adfdc689452bc11b8ee0 | [
"Unlicense"
] | null | null | null | slb_cfg_generator.py | MaksimShchuplov/scripts | aff47c770b62a0334029adfdc689452bc11b8ee0 | [
"Unlicense"
] | null | null | null | import sys
__author__ = 'max'
arglist = sys.argv
#arglist = "server12000", "10.40.231.41", "10.40.231.41", "1.1.177.241"
servername1 = arglist[1]
servername2 = servername1[:-1] + "1"
ip1 = arglist[2]
ip2 = arglist[3]
ip3 = arglist[4]
print
print
print "server real", servername1, ip1
print"""port http
port http url ... | 18.297297 | 71 | 0.710487 | 102 | 677 | 4.676471 | 0.411765 | 0.146751 | 0.09434 | 0.100629 | 0.197065 | 0.197065 | 0.197065 | 0.197065 | 0.197065 | 0.197065 | 0 | 0.091222 | 0.141802 | 677 | 36 | 72 | 18.805556 | 0.729776 | 0.103397 | 0 | 0.4 | 0 | 0 | 0.384488 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.033333 | null | null | 0.5 | 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 |
b10a8aff51ad325f9c6a94dd70a7abbc2ec9b434 | 139 | py | Python | PythonClient/environment/change_texture_example.py | Bvallon-sl/AirSim | 60e7e425198ed5e67cb333f7b3ac89f24a1899bc | [
"MIT"
] | 6,115 | 2019-05-07T05:29:14.000Z | 2022-03-31T12:46:36.000Z | PythonClient/environment/change_texture_example.py | Bvallon-sl/AirSim | 60e7e425198ed5e67cb333f7b3ac89f24a1899bc | [
"MIT"
] | 2,306 | 2019-05-07T00:17:31.000Z | 2022-03-31T23:31:46.000Z | PythonClient/environment/change_texture_example.py | Bvallon-sl/AirSim | 60e7e425198ed5e67cb333f7b3ac89f24a1899bc | [
"MIT"
] | 2,059 | 2019-05-07T03:07:43.000Z | 2022-03-31T06:31:19.000Z | import airsim
c = airsim.MultirotorClient()
c.confirmConnection()
c.simSetObjectMaterialFromTexture("OrangeBall", "sample_texture.jpg")
| 17.375 | 69 | 0.805755 | 13 | 139 | 8.538462 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079137 | 139 | 7 | 70 | 19.857143 | 0.867188 | 0 | 0 | 0 | 0 | 0 | 0.202899 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 |
b10e6df668b846e0f7a6fbbd59a828be69beff2d | 397 | py | Python | examples/dev/middleware/tcpstrings/example_feat_tracking.py | nkhedekar/Caesar.jl | 647ab1a9a068e9eb9ff2de36e12e86b7b77878bb | [
"MIT"
] | 122 | 2018-07-02T19:05:36.000Z | 2022-03-09T14:18:07.000Z | examples/dev/middleware/tcpstrings/example_feat_tracking.py | nkhedekar/Caesar.jl | 647ab1a9a068e9eb9ff2de36e12e86b7b77878bb | [
"MIT"
] | 245 | 2018-06-01T15:04:50.000Z | 2022-03-29T05:53:32.000Z | examples/dev/middleware/tcpstrings/example_feat_tracking.py | nkhedekar/Caesar.jl | 647ab1a9a068e9eb9ff2de36e12e86b7b77878bb | [
"MIT"
] | 15 | 2018-06-01T13:22:16.000Z | 2022-02-09T12:00:59.000Z |
# at one terminal run $ julia -p10 -e "using Caesar; tcpStringBRTrackingServer();"
from JLBayesTrackerInterf import BayesFeatureTracking
bft = BayesFeatureTracking()
bft.connectServer()
for i in range(3):
r = [[10,0.8,1], [20,0,1]]
dx = [0,0,0]
bft.processSightings(dx, r)
r = [[19,0,1],[9.5,0.85,1],[17... | 19.85 | 82 | 0.652393 | 64 | 397 | 4.046875 | 0.59375 | 0.023166 | 0.03861 | 0.162162 | 0.185328 | 0.185328 | 0 | 0 | 0 | 0 | 0 | 0.098507 | 0.156171 | 397 | 19 | 83 | 20.894737 | 0.674627 | 0.201511 | 0 | 0.166667 | 0 | 0 | 0.012739 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.083333 | null | null | 0.083333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b15721c839414bd71e8891fc84096198935f26c2 | 970 | py | Python | bkp/validation.py | PieceZhang/face_detect_yolov4_yolov4tiny_ssd | 81f29c541d694acdc63e5922b46f135ed62ef94d | [
"Apache-2.0"
] | null | null | null | bkp/validation.py | PieceZhang/face_detect_yolov4_yolov4tiny_ssd | 81f29c541d694acdc63e5922b46f135ed62ef94d | [
"Apache-2.0"
] | null | null | null | bkp/validation.py | PieceZhang/face_detect_yolov4_yolov4tiny_ssd | 81f29c541d694acdc63e5922b46f135ed62ef94d | [
"Apache-2.0"
] | null | null | null | import numpy as np
boxes = [[221.38578796, 1.67022705, 269.17785645, 100.79472351], #
[131.87513733, 108.00149536, 180.33787537, 205.32565308], #
[59.07345963, 5.45892906, 63.29879379, 19.86083794],
[62.66349411, 50.7850914, 100.89524841, 116.79486084], #
[109.20089722, -131.67922... | 35.925926 | 69 | 0.596907 | 127 | 970 | 4.496063 | 0.543307 | 0.014011 | 0.015762 | 0.014011 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.343137 | 0.263918 | 970 | 26 | 70 | 37.307692 | 0.456583 | 0 | 0 | 0.083333 | 0 | 0 | 0.008273 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.041667 | 0 | 0.041667 | 0.041667 | 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 |
b15a7ff3fab1ace5e04a29248786727d065a5251 | 1,403 | py | Python | bnbapp/protocols/forms/verbs/aliquot.py | Bionetbook/bionetbook | c92d5bbdc5c121631c2230cf93aa63977d381f30 | [
"MIT"
] | null | null | null | bnbapp/protocols/forms/verbs/aliquot.py | Bionetbook/bionetbook | c92d5bbdc5c121631c2230cf93aa63977d381f30 | [
"MIT"
] | null | null | null | bnbapp/protocols/forms/verbs/aliquot.py | Bionetbook/bionetbook | c92d5bbdc5c121631c2230cf93aa63977d381f30 | [
"MIT"
] | null | null | null | from protocols.forms import forms
from core.utils import VOLUME_UNITS, CONCENTRATION_UNITS, VESSELS, TIME_UNITS
class AliquotForm(forms.VerbForm):
name = "Aliquot"
slug = "aliquot"
has_manual = True
layers = ['item_to_act','number_of_aliquots','settify']
item_to_act = forms.CharField(required=F... | 50.107143 | 150 | 0.748396 | 180 | 1,403 | 5.666667 | 0.372222 | 0.178431 | 0.135294 | 0.164706 | 0.485294 | 0.259804 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138988 | 1,403 | 27 | 151 | 51.962963 | 0.844371 | 0 | 0 | 0 | 0 | 0 | 0.135424 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
b15f34bee3f3dee49e41dd4fe087b3fdf3e33b24 | 560 | py | Python | {{ cookiecutter.project_root_name }}/{{ cookiecutter.project_src_name }}/core/conf.py | tarsil/cookiecutter-fastapi | bb6ffb96e5a064af76cf030039e582fcc8a8f4fe | [
"MIT"
] | 1 | 2021-06-11T10:52:44.000Z | 2021-06-11T10:52:44.000Z | {{ cookiecutter.project_root_name }}/{{ cookiecutter.project_src_name }}/core/conf.py | tarsil/cookiecutter-fastapi | bb6ffb96e5a064af76cf030039e582fcc8a8f4fe | [
"MIT"
] | null | null | null | {{ cookiecutter.project_root_name }}/{{ cookiecutter.project_src_name }}/core/conf.py | tarsil/cookiecutter-fastapi | bb6ffb96e5a064af76cf030039e582fcc8a8f4fe | [
"MIT"
] | null | null | null | import os
import importlib
def get_settings(config: str = None):
"""
The `config` is a module path in teh format of `core.configs.settings` or else it will load the default.
"""
module = os.getenv('FASTAPI_SETTINGS_MODULE') or "src.core.configs.settings"
try:
config = config or module
... | 25.454545 | 108 | 0.689286 | 69 | 560 | 5.463768 | 0.507246 | 0.087533 | 0.100796 | 0.148541 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.214286 | 560 | 21 | 109 | 26.666667 | 0.856818 | 0.185714 | 0 | 0 | 0 | 0 | 0.136364 | 0.109091 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.416667 | 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 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
b163dfe137be1deeb173bf4f52ad3126237f0fb4 | 2,936 | py | Python | utils/utils.py | sciyoshi/advent-of-rust-2017 | 848e4b1a55a2c380dd014371b4c1f3e7bd49a01a | [
"MIT"
] | 32 | 2017-12-03T05:39:49.000Z | 2021-09-07T07:17:16.000Z | utils/utils.py | sciyoshi/advent-of-rust-2017 | 848e4b1a55a2c380dd014371b4c1f3e7bd49a01a | [
"MIT"
] | null | null | null | utils/utils.py | sciyoshi/advent-of-rust-2017 | 848e4b1a55a2c380dd014371b4c1f3e7bd49a01a | [
"MIT"
] | 4 | 2017-12-04T06:34:15.000Z | 2019-12-03T15:19:57.000Z | from typing import Dict, Any, NamedTuple
import os
import math
import heapq
import requests
__all__ = ['inp']
COOKIES = {
'session': '53616c7465645f5f578fe8241d3d3ecb14f7131063bb1c65d383f6983cc4d9b4ec05f214017bb153fa2cb60acf5a18be'
}
def inp(day: int, year: int = 2017):
path = os.path.join(os.path.dirname(__fil... | 22.242424 | 110 | 0.648161 | 510 | 2,936 | 3.627451 | 0.256863 | 0.02973 | 0.060541 | 0.077838 | 0.282703 | 0.27027 | 0.247568 | 0.225946 | 0.196757 | 0.196757 | 0 | 0.045283 | 0.18767 | 2,936 | 131 | 111 | 22.412214 | 0.730398 | 0.048365 | 0 | 0.11828 | 0 | 0 | 0.061649 | 0.034409 | 0 | 0 | 0 | 0 | 0 | 1 | 0.204301 | false | 0 | 0.053763 | 0.150538 | 0.473118 | 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 |
b164d5af12a1bf0a5eeea0f9c337e526bd19033c | 1,442 | py | Python | helper.py | Osehi/Green-Leaf-Jobs | fdf4aae7e5fabf2be2d30e2248252de947bc3b69 | [
"MIT"
] | null | null | null | helper.py | Osehi/Green-Leaf-Jobs | fdf4aae7e5fabf2be2d30e2248252de947bc3b69 | [
"MIT"
] | null | null | null | helper.py | Osehi/Green-Leaf-Jobs | fdf4aae7e5fabf2be2d30e2248252de947bc3b69 | [
"MIT"
] | null | null | null | import os
from flask import redirect, render_template, request, session
def loggedIn_user_info(db):
rows = db.execute("SELECT id, email, password, user_type, photo FROM users WHERE id = :id", id=session["user_id"])
return rows
# Get Job Functions from db
def job_function(db):
job_query = db.execute("SELECT ... | 32.044444 | 122 | 0.721914 | 221 | 1,442 | 4.511312 | 0.276018 | 0.06319 | 0.105316 | 0.114343 | 0.247743 | 0.175527 | 0.175527 | 0.110331 | 0.110331 | 0.110331 | 0 | 0.002564 | 0.188627 | 1,442 | 44 | 123 | 32.772727 | 0.849573 | 0.072816 | 0 | 0 | 0 | 0.034483 | 0.413534 | 0.103008 | 0 | 0 | 0 | 0 | 0 | 1 | 0.241379 | false | 0.034483 | 0.068966 | 0 | 0.586207 | 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 |
b174532667d81362669aed6b971d81a3be9dce74 | 263 | py | Python | models/model.py | securepractice/mailrisk-sentinel-connector | 60d207fe80a2e6b6573d819b08275c22249a5546 | [
"MIT"
] | 1 | 2022-03-09T09:21:59.000Z | 2022-03-09T09:21:59.000Z | models/model.py | securepractice/mailrisk-sentinel-connector | 60d207fe80a2e6b6573d819b08275c22249a5546 | [
"MIT"
] | 1 | 2022-03-09T09:13:34.000Z | 2022-03-14T10:58:14.000Z | models/model.py | securepractice/mailrisk-sentinel-connector | 60d207fe80a2e6b6573d819b08275c22249a5546 | [
"MIT"
] | null | null | null | import json
class Model:
RESOURCE_URL = ''
id = None
def __init__(self):
pass
def to_json(self):
return json.dumps(self.__dict__, default=lambda o: o.__dict__)
@classmethod
def from_json(cls, json_item):
pass
| 14.611111 | 70 | 0.608365 | 34 | 263 | 4.235294 | 0.676471 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.30038 | 263 | 17 | 71 | 15.470588 | 0.782609 | 0 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0.181818 | 0.090909 | 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 |
b17b64640c7ea3028d94312eed38ac144b50bb0d | 642 | py | Python | __init__.py | erumoico/fr2fd | f9b1bd243645d91fd1a564521925d29c822c5107 | [
"BSD-3-Clause"
] | null | null | null | __init__.py | erumoico/fr2fd | f9b1bd243645d91fd1a564521925d29c822c5107 | [
"BSD-3-Clause"
] | null | null | null | __init__.py | erumoico/fr2fd | f9b1bd243645d91fd1a564521925d29c822c5107 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# vim: set tabstop=4 softtabstop=0 noexpandtab shiftwidth=4
# ***************************************************************
# * Soubor: __init__.py *
# * Datum: 2018-04-16 *
# * Autor: Jan Doležal, xdolez52@st... | 45.857143 | 65 | 0.401869 | 53 | 642 | 4.716981 | 0.90566 | 0.048 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042506 | 0.303738 | 642 | 13 | 66 | 49.384615 | 0.516779 | 0.961059 | 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 |
b17ff3b56b2c7a7c01cf4e6d4cea9c90353d63f9 | 1,363 | py | Python | pypeln/sync/api/filter_sync_test.py | quarckster/pypeln | f4160d0f4d4718b67f79a0707d7261d249459a4b | [
"MIT"
] | 1,281 | 2018-09-20T05:35:27.000Z | 2022-03-30T01:29:48.000Z | pypeln/sync/api/filter_sync_test.py | webclinic017/pypeln | 5231806f2cac9d2019dacbbcf913484fd268b8c1 | [
"MIT"
] | 78 | 2018-09-18T20:38:12.000Z | 2022-03-30T20:16:02.000Z | pypeln/sync/api/filter_sync_test.py | webclinic017/pypeln | 5231806f2cac9d2019dacbbcf913484fd268b8c1 | [
"MIT"
] | 88 | 2018-09-24T10:46:14.000Z | 2022-03-28T09:34:50.000Z | import hypothesis as hp
from hypothesis import strategies as st
import time
import pypeln as pl
import cytoolz as cz
MAX_EXAMPLES = 10
@hp.given(nums=st.lists(st.integers()))
@hp.settings(max_examples=MAX_EXAMPLES)
def test_flat_map_square_filter_workers(nums):
def _generator(x):
yield x
yield x ... | 25.716981 | 62 | 0.644167 | 224 | 1,363 | 3.696429 | 0.183036 | 0.115942 | 0.077295 | 0.05314 | 0.794686 | 0.741546 | 0.736715 | 0.560386 | 0.560386 | 0.560386 | 0 | 0.015429 | 0.239178 | 1,363 | 52 | 63 | 26.211538 | 0.783028 | 0 | 0 | 0.536585 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04878 | 1 | 0.097561 | false | 0 | 0.121951 | 0 | 0.219512 | 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 |
b188eb3e2cf3639ff5a69a59eec0885154b10b4c | 904 | py | Python | test/test_param.py | Euraxluo/simple_pyvm | 7d02de9a2862fb652847456649212b887f620a53 | [
"MIT"
] | 1 | 2022-03-14T04:20:24.000Z | 2022-03-14T04:20:24.000Z | test/test_param.py | Euraxluo/simple_pyvm | 7d02de9a2862fb652847456649212b887f620a53 | [
"MIT"
] | null | null | null | test/test_param.py | Euraxluo/simple_pyvm | 7d02de9a2862fb652847456649212b887f620a53 | [
"MIT"
] | null | null | null | def foo():
print("foo")
print(foo())
def foo():
a="dsa"
print("foo"+a)
print(foo())
def foo():
a="dsa"
print("foo"+a)
return a
print(foo())
def fqq(x):
print(x)
print(fqq(1))
def fqq(x):
a=1
print(x+a)
print(fqq(1))
def fqq(x):
a=1
print(x+a)
return a+x
print... | 9.72043 | 25 | 0.519912 | 195 | 904 | 2.4 | 0.123077 | 0.076923 | 0.044872 | 0.08547 | 0.559829 | 0.512821 | 0.512821 | 0.512821 | 0.495727 | 0.299145 | 0 | 0.046338 | 0.259956 | 904 | 93 | 26 | 9.72043 | 0.653214 | 0 | 0 | 0.639344 | 0 | 0 | 0.033149 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.213115 | false | 0 | 0 | 0.032787 | 0.360656 | 0.42623 | 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 | 0 | 1 | 0 | 2 |
b1ababa530bf12b05c4c19ea5dad23577a7b1f51 | 228 | py | Python | tests/test_metrics/test_base.py | best-doctor/vuakhter | 38014fc4211e8f39b09263b85a9324bdaa8ee832 | [
"MIT"
] | null | null | null | tests/test_metrics/test_base.py | best-doctor/vuakhter | 38014fc4211e8f39b09263b85a9324bdaa8ee832 | [
"MIT"
] | 3 | 2020-05-13T12:52:15.000Z | 2020-05-13T13:02:47.000Z | tests/test_metrics/test_base.py | best-doctor/vuakhter | 38014fc4211e8f39b09263b85a9324bdaa8ee832 | [
"MIT"
] | 1 | 2021-01-11T11:50:42.000Z | 2021-01-11T11:50:42.000Z | from vuakhter.metrics.base import StatisticsMetrics
def test_statistics_metrics():
instance = StatisticsMetrics()
instance.statistics['name'] = 10
assert instance.report() == 'Some metrics\n------------\nname 10'
| 25.333333 | 69 | 0.701754 | 24 | 228 | 6.583333 | 0.708333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020513 | 0.144737 | 228 | 8 | 70 | 28.5 | 0.789744 | 0 | 0 | 0 | 0 | 0 | 0.171053 | 0.118421 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.