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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3cea37412ff4cf6940edc5b15a535901c1058b0b | 35,001 | py | Python | odi_coords.py | bjanesh/odi-tools | a9cf686762234f118c9a25c43a25c04462d30a80 | [
"BSD-3-Clause"
] | 3 | 2016-04-28T19:33:23.000Z | 2017-02-21T17:07:56.000Z | odi_coords.py | bjanesh/odi-tools | a9cf686762234f118c9a25c43a25c04462d30a80 | [
"BSD-3-Clause"
] | 18 | 2016-04-27T13:52:10.000Z | 2017-07-19T15:57:49.000Z | odi_coords.py | bjanesh/odi-tools | a9cf686762234f118c9a25c43a25c04462d30a80 | [
"BSD-3-Clause"
] | 2 | 2016-07-13T02:13:16.000Z | 2018-01-18T03:33:59.000Z | import sys, os, glob, string
import numpy as np
import matplotlib.pyplot as plt
from pyraf import iraf
from tqdm import tqdm
import odi_config as odi
import pandas as pd
from astropy.wcs import WCS
from astropy.table import Table
from astropy.io import fits
from collections import OrderedDict
def get_sdss_coords(img, ... | 43.10468 | 259 | 0.565898 | 4,829 | 35,001 | 3.927107 | 0.094222 | 0.013288 | 0.019933 | 0.025311 | 0.809903 | 0.796193 | 0.771409 | 0.756328 | 0.751898 | 0.749051 | 0 | 0.033686 | 0.291792 | 35,001 | 811 | 260 | 43.15783 | 0.731362 | 0.310591 | 0 | 0.753275 | 0 | 0.00655 | 0.104926 | 0.023453 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015284 | false | 0 | 0.037118 | 0 | 0.058952 | 0.045852 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
a704a816bb4f6741d032bf2f1703c9c6d64c80f7 | 48,517 | py | Python | parser/fase2/team12/src/EXPRESION/EXPRESIONES_TERMINALES/LLAMADA_METODO/Llamada_Metodo.py | Gabriel-15/tytus | fb00718bf3fcc5211a3604fba1a551f44bdc6deb | [
"MIT"
] | 35 | 2020-12-07T03:11:43.000Z | 2021-04-15T17:38:16.000Z | parser/fase2/team12/src/EXPRESION/EXPRESIONES_TERMINALES/LLAMADA_METODO/Llamada_Metodo.py | Gabriel-15/tytus | fb00718bf3fcc5211a3604fba1a551f44bdc6deb | [
"MIT"
] | 47 | 2020-12-09T01:29:09.000Z | 2021-01-13T05:37:50.000Z | parser/fase2/team12/src/EXPRESION/EXPRESIONES_TERMINALES/LLAMADA_METODO/Llamada_Metodo.py | Gabriel-15/tytus | fb00718bf3fcc5211a3604fba1a551f44bdc6deb | [
"MIT"
] | 556 | 2020-12-07T03:13:31.000Z | 2021-06-17T17:41:10.000Z | import sys, os.path
import math
dir_nodo = (os.path.abspath(os.path.join(os.path.dirname(__file__), '..','..')) + '\\EXPRESION\\EXPRESION\\')
sys.path.append(dir_nodo)
ent_nodo = (os.path.abspath(os.path.join(os.path.dirname(__file__), '..','..')) + '\\ENTORNO\\')
sys.path.append(ent_nodo)
c3d_dir = (os.path.abspath... | 44.633855 | 118 | 0.420574 | 2,721 | 48,517 | 7.375965 | 0.059904 | 0.064574 | 0.044843 | 0.055456 | 0.911609 | 0.907025 | 0.903637 | 0.902043 | 0.897658 | 0.897658 | 0 | 0.001947 | 0.534122 | 48,517 | 1,087 | 119 | 44.633855 | 0.885989 | 0.021333 | 0 | 0.915629 | 0 | 0 | 0.015792 | 0.000506 | 0 | 0 | 0 | 0.00092 | 0 | 1 | 0.006916 | false | 0.136929 | 0.012448 | 0 | 0.156293 | 0.019364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 9 |
a70b9ca9202ff191f7a78d6d9be2c5ec39e8515f | 161 | py | Python | tests/test_auto_testing.py | antoinejeannot/modelkit-imdb | f055cbe9f3a9ac43d829fe67bc4c98219a6a3299 | [
"MIT"
] | 1 | 2021-06-25T16:15:36.000Z | 2021-06-25T16:15:36.000Z | tests/test_auto_testing.py | antoinejeannot/modelkit-imdb | f055cbe9f3a9ac43d829fe67bc4c98219a6a3299 | [
"MIT"
] | null | null | null | tests/test_auto_testing.py | antoinejeannot/modelkit-imdb | f055cbe9f3a9ac43d829fe67bc4c98219a6a3299 | [
"MIT"
] | null | null | null | from modelkit.testing import modellibrary_auto_test
import modelkit_imdb
modellibrary_auto_test(models=modelkit_imdb, fixture_name="model_library_auto_tests")
| 26.833333 | 85 | 0.888199 | 22 | 161 | 6.045455 | 0.636364 | 0.240602 | 0.300752 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062112 | 161 | 5 | 86 | 32.2 | 0.880795 | 0 | 0 | 0 | 0 | 0 | 0.149068 | 0.149068 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
5990e716e87f80ab4ee73d9df83c3f26e6ed8a32 | 152 | py | Python | EduCDM/IRR/etl/__init__.py | ViviHong200709/EduCDM | ff8a4ec60902b95de47aa8d96c12c9282d6855f2 | [
"Apache-2.0"
] | 36 | 2021-04-28T03:22:03.000Z | 2022-03-30T16:54:44.000Z | EduCDM/IRR/etl/__init__.py | ViviHong200709/EduCDM | ff8a4ec60902b95de47aa8d96c12c9282d6855f2 | [
"Apache-2.0"
] | 21 | 2021-03-18T14:10:11.000Z | 2022-01-29T14:12:45.000Z | EduCDM/IRR/etl/__init__.py | ViviHong200709/EduCDM | ff8a4ec60902b95de47aa8d96c12c9282d6855f2 | [
"Apache-2.0"
] | 36 | 2021-03-17T14:43:18.000Z | 2022-03-29T07:52:26.000Z | # coding: utf-8
# 2021/6/19 @ tongshiwei
from .utils import extract_item
from .point_etl import etl as point_etl
from .pair_etl import etl as pair_etl
| 21.714286 | 39 | 0.776316 | 28 | 152 | 4.035714 | 0.571429 | 0.141593 | 0.212389 | 0.247788 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 0.157895 | 152 | 6 | 40 | 25.333333 | 0.820313 | 0.236842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
59b8f002a4e899e512f84fa29573ad6654c2bc7f | 159 | py | Python | tests/test_gr.py | zeddee/info_retrieve | b54f80e1124183221e509c88413a2afc6ff4fae6 | [
"Apache-2.0"
] | null | null | null | tests/test_gr.py | zeddee/info_retrieve | b54f80e1124183221e509c88413a2afc6ff4fae6 | [
"Apache-2.0"
] | null | null | null | tests/test_gr.py | zeddee/info_retrieve | b54f80e1124183221e509c88413a2afc6ff4fae6 | [
"Apache-2.0"
] | null | null | null | # import sys
# sys.path.append('../..')
from src.utils import clean_txt
def test_clean_txt():
assert clean_txt(['this\nand that.. '])==['this. and that.'] | 26.5 | 64 | 0.654088 | 24 | 159 | 4.166667 | 0.666667 | 0.24 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.132075 | 159 | 6 | 64 | 26.5 | 0.724638 | 0.220126 | 0 | 0 | 0 | 0 | 0.262295 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.333333 | true | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
59e2fea092c29989c43334bdac5c3019ebf0860d | 15,459 | py | Python | instructions/logical.py | RenolY2/python-ppc | 7b7ccbaf467813843975773795efa3436544ca9a | [
"MIT"
] | 3 | 2019-09-04T07:18:00.000Z | 2021-03-09T23:41:38.000Z | instructions/logical.py | RenolY2/python-ppc | 7b7ccbaf467813843975773795efa3436544ca9a | [
"MIT"
] | null | null | null | instructions/logical.py | RenolY2/python-ppc | 7b7ccbaf467813843975773795efa3436544ca9a | [
"MIT"
] | null | null | null | from .common import *
class ORImmediate(Instruction):
def __init__(self, val):
self.opcode, self.RS, self.RA, self.UI = parse_dform(val)
def execute(self, machine):
gpr = machine.context.gpr
gpr[self.RA] = (gpr[self.RS] | self.UI ) & 0xFFFFFFFF
def __str__(self):... | 30.551383 | 92 | 0.518662 | 2,029 | 15,459 | 3.814687 | 0.059635 | 0.075194 | 0.076227 | 0.03876 | 0.891731 | 0.883721 | 0.878036 | 0.873902 | 0.862016 | 0.862016 | 0 | 0.022721 | 0.336632 | 15,459 | 506 | 93 | 30.551383 | 0.732033 | 0 | 0 | 0.728814 | 0 | 0.008475 | 0.039327 | 0 | 0 | 0 | 0.015524 | 0 | 0 | 1 | 0.206215 | false | 0 | 0.002825 | 0.014124 | 0.353107 | 0.002825 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
f9f4ae5e0236286894ea9a6cebf1e3826eb400a6 | 1,424 | py | Python | tests/data/trailing_comma_optional_parens1.py | ewjoachim/black | b92822afeedd45daa3b1d094a502daf936f7fa9d | [
"MIT"
] | null | null | null | tests/data/trailing_comma_optional_parens1.py | ewjoachim/black | b92822afeedd45daa3b1d094a502daf936f7fa9d | [
"MIT"
] | null | null | null | tests/data/trailing_comma_optional_parens1.py | ewjoachim/black | b92822afeedd45daa3b1d094a502daf936f7fa9d | [
"MIT"
] | null | null | null | if e1234123412341234.winerror not in (_winapi.ERROR_SEM_TIMEOUT,
_winapi.ERROR_PIPE_BUSY) or _check_timeout(t):
pass
class X:
def get_help_text(self):
return ngettext(
"Your password must contain at least %(min_length)d character.",
"Your password must c... | 22.967742 | 81 | 0.518258 | 157 | 1,424 | 4.471338 | 0.312102 | 0.128205 | 0.091168 | 0.131054 | 0.991453 | 0.991453 | 0.991453 | 0.991453 | 0.991453 | 0.991453 | 0 | 0.055684 | 0.394663 | 1,424 | 61 | 82 | 23.344262 | 0.758701 | 0.004213 | 0 | 0.56 | 0 | 0 | 0.187853 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0.16 | 0 | 0.04 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 7 |
e629869bfaf2f8b9ce3d6fa521684c5213b84b2d | 3,534 | py | Python | public_tools/entity_evaluating.py | WenRichard/NER-tf | a2da6eb2c0de53859ba12d7d7ae49cca858e256d | [
"MIT"
] | 47 | 2021-06-07T02:35:08.000Z | 2022-03-30T08:01:03.000Z | public_tools/entity_evaluating.py | WenRichard/NER-tf | a2da6eb2c0de53859ba12d7d7ae49cca858e256d | [
"MIT"
] | 1 | 2021-09-23T03:05:58.000Z | 2021-09-23T03:05:58.000Z | public_tools/entity_evaluating.py | WenRichard/NER-tf | a2da6eb2c0de53859ba12d7d7ae49cca858e256d | [
"MIT"
] | 13 | 2021-06-15T08:48:11.000Z | 2022-03-25T09:59:07.000Z | # !/usr/bin/env python3
# -*- coding: utf-8 -*-
# @Author : WenRichard
# @Email : RichardXie1205@gmail.com
# @File : entity_evaluating.py
# @Software: PyCharm
import re
import numpy as np
def calculate(x, y, id2word, id2tag, res = []):
"""
y: 是label id
"""
entity=[]
for i in range(len(x)): #for e... | 31.553571 | 114 | 0.543011 | 495 | 3,534 | 3.773737 | 0.145455 | 0.027837 | 0.028908 | 0.017131 | 0.852784 | 0.778373 | 0.759101 | 0.759101 | 0.759101 | 0.759101 | 0 | 0.032207 | 0.27957 | 3,534 | 111 | 115 | 31.837838 | 0.701493 | 0.129598 | 0 | 0.727273 | 0 | 0 | 0.00542 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060606 | false | 0 | 0.030303 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
053285f1a8a8c26175213b1331bfb69c3e0d1827 | 16,400 | py | Python | tests/test_common.py | pji/imgblender | 86e430af15ddb8acf6d0166df6ae490d014090c5 | [
"MIT"
] | null | null | null | tests/test_common.py | pji/imgblender | 86e430af15ddb8acf6d0166df6ae490d014090c5 | [
"MIT"
] | 2 | 2021-08-19T21:43:30.000Z | 2021-08-21T14:05:58.000Z | tests/test_common.py | pji/imgblender | 86e430af15ddb8acf6d0166df6ae490d014090c5 | [
"MIT"
] | null | null | null | """
test_common
~~~~~~~~~~~
"""
import numpy as np
from imgblender import common as c
from tests.common import ArrayTestCase
# Test cases.
class CanFadeTestCase(ArrayTestCase):
def test_fades(self):
"""When applied to a function, the faded decorator should
adjust how much the blending operation a... | 32.03125 | 74 | 0.340183 | 2,704 | 16,400 | 2.046967 | 0.048447 | 0.312556 | 0.44607 | 0.564408 | 0.836134 | 0.836134 | 0.826378 | 0.810298 | 0.800361 | 0.762963 | 0 | 0.215479 | 0.445366 | 16,400 | 511 | 75 | 32.093933 | 0.39303 | 0.131037 | 0 | 0.823204 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030387 | 1 | 0.060773 | false | 0 | 0.008287 | 0.030387 | 0.11326 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 12 |
053a91a555ada6dee57a287819af30b1b23b5f2a | 10,042 | py | Python | niapy/tests/test_task.py | eltociear/NiaPy | 7884aefec8f013d9f8db5c1af7080a61dd19a31d | [
"MIT"
] | null | null | null | niapy/tests/test_task.py | eltociear/NiaPy | 7884aefec8f013d9f8db5c1af7080a61dd19a31d | [
"MIT"
] | null | null | null | niapy/tests/test_task.py | eltociear/NiaPy | 7884aefec8f013d9f8db5c1af7080a61dd19a31d | [
"MIT"
] | null | null | null | # encoding=utf8
from unittest import TestCase
import numpy as np
from numpy.random import default_rng
from niapy.problems import Problem
from niapy.task import StoppingTask, ThrowingTask
from niapy.util import full_array, FesException, GenException, RefException
class MyProblem(Problem):
def __init__(self, dime... | 33.473333 | 114 | 0.614121 | 1,445 | 10,042 | 4.136332 | 0.087197 | 0.062741 | 0.022085 | 0.040489 | 0.840723 | 0.827505 | 0.811611 | 0.778986 | 0.748536 | 0.747867 | 0 | 0.016191 | 0.249651 | 10,042 | 299 | 115 | 33.585284 | 0.77704 | 0.069807 | 0 | 0.763033 | 0 | 0 | 0.018219 | 0 | 0 | 0 | 0 | 0 | 0.331754 | 1 | 0.199052 | false | 0 | 0.028436 | 0.004739 | 0.251185 | 0.009479 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
054f0f0c4242c93ff01445c7c6d79eb7ff2f1e32 | 3,218 | py | Python | halotools/mock_observables/surface_density/tests/test_mean_delta_sigma.py | pllim/halotools | 6499cff09e7e0f169e4f425ee265403f6be816e8 | [
"BSD-3-Clause"
] | 83 | 2015-01-15T14:54:16.000Z | 2021-12-09T11:28:02.000Z | halotools/mock_observables/surface_density/tests/test_mean_delta_sigma.py | pllim/halotools | 6499cff09e7e0f169e4f425ee265403f6be816e8 | [
"BSD-3-Clause"
] | 579 | 2015-01-14T15:57:37.000Z | 2022-01-13T18:58:44.000Z | halotools/mock_observables/surface_density/tests/test_mean_delta_sigma.py | pllim/halotools | 6499cff09e7e0f169e4f425ee265403f6be816e8 | [
"BSD-3-Clause"
] | 70 | 2015-01-14T15:15:58.000Z | 2021-12-22T18:18:31.000Z | """
"""
import numpy as np
from ..mean_delta_sigma import mean_delta_sigma
def test_mean_delta_sigma_returns_correct_shape_serial():
ngals, nparts = 500, 5000
nbins = 30
Lbox = 500
rp_bins = np.logspace(-1, 1.25, nbins)
rng = np.random.RandomState(43)
galaxies = Lbox*rng.uniform(size=(ngals, 3... | 33.175258 | 77 | 0.710068 | 437 | 3,218 | 4.906178 | 0.121281 | 0.130597 | 0.084888 | 0.067164 | 0.890858 | 0.890858 | 0.890858 | 0.890858 | 0.86334 | 0.86334 | 0 | 0.037794 | 0.19422 | 3,218 | 96 | 78 | 33.520833 | 0.789047 | 0 | 0 | 0.76 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08 | 1 | 0.053333 | false | 0 | 0.026667 | 0 | 0.08 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
558cf040dd8ebfa74db2d755ef0c5d561cdca2d3 | 5,034 | py | Python | Hawaii_app.py | kathhuynh94/sqlalchemy-challenge | 2d5ffedaeb90dc24a0a6f738be627c2fb7efb6e5 | [
"ADSL"
] | null | null | null | Hawaii_app.py | kathhuynh94/sqlalchemy-challenge | 2d5ffedaeb90dc24a0a6f738be627c2fb7efb6e5 | [
"ADSL"
] | null | null | null | Hawaii_app.py | kathhuynh94/sqlalchemy-challenge | 2d5ffedaeb90dc24a0a6f738be627c2fb7efb6e5 | [
"ADSL"
] | null | null | null | from flask import Flask, json, jsonify
from db_prepare import engine, func, session, Measurement, Station
app = Flask(__name__)
@app.route('/')
def home_route():
""" API routes"""
return(
f"Precipitation:<br/>"
f"/api/v1.0/precipitation/ <br><br/>"
f"Stations:<br/>"
f"... | 35.202797 | 70 | 0.560191 | 624 | 5,034 | 4.423077 | 0.104167 | 0.036232 | 0.043478 | 0.028986 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0.031008 | 0.282479 | 5,034 | 143 | 71 | 35.202797 | 0.733112 | 0 | 0 | 0.978417 | 0 | 0.014388 | 0.152295 | 0.062153 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.028777 | null | null | 0.071942 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
e97ab250fec6b96d8a75a174dd9bf429f3f42601 | 806 | py | Python | recruiting/api/v1/permissions.py | DiceNameIsMy/recruiting | db10dbeda274b7491870ad33f7fa95802b8c0e78 | [
"MIT"
] | null | null | null | recruiting/api/v1/permissions.py | DiceNameIsMy/recruiting | db10dbeda274b7491870ad33f7fa95802b8c0e78 | [
"MIT"
] | null | null | null | recruiting/api/v1/permissions.py | DiceNameIsMy/recruiting | db10dbeda274b7491870ad33f7fa95802b8c0e78 | [
"MIT"
] | null | null | null | from rest_framework.permissions import BasePermission, SAFE_METHODS
class IsResumeAuthor(BasePermission):
def has_object_permission(self, request, view, obj):
if request.method in SAFE_METHODS:
return True
try:
if request.user.id == obj.applicant.user.id:
re... | 28.785714 | 67 | 0.586849 | 82 | 806 | 5.670732 | 0.402439 | 0.077419 | 0.086022 | 0.111828 | 0.752688 | 0.752688 | 0.752688 | 0.752688 | 0.752688 | 0.752688 | 0 | 0 | 0.356079 | 806 | 28 | 68 | 28.785714 | 0.895954 | 0 | 0 | 0.782609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.043478 | 0 | 0.565217 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 7 |
e98b409d5c588efe099a167e98c1e08c2636be37 | 9,087 | py | Python | lannerpsp/sdk_sled_lte.py | lanneriotsw/psp-api-python | 24806866ef6335bbe852da9133a0b580f4d77909 | [
"MIT"
] | null | null | null | lannerpsp/sdk_sled_lte.py | lanneriotsw/psp-api-python | 24806866ef6335bbe852da9133a0b580f4d77909 | [
"MIT"
] | null | null | null | lannerpsp/sdk_sled_lte.py | lanneriotsw/psp-api-python | 24806866ef6335bbe852da9133a0b580f4d77909 | [
"MIT"
] | null | null | null | import logging
from .lmbinc import PSP
from .utils import show_delay
logger = logging.getLogger(__name__)
class LteStateLED:
"""
LTE Status LED.
sdk/src_utils/sdk_sled_lte/sdk_sled_lte.c
:param lmb_io_path: path of liblmbio.so
:param lmb_api_path: path of liblmbapi.so
"""
def __init__... | 42.265116 | 91 | 0.592825 | 1,194 | 9,087 | 4.203518 | 0.076214 | 0.188882 | 0.061367 | 0.043833 | 0.894601 | 0.890416 | 0.890416 | 0.880853 | 0.830444 | 0.830444 | 0 | 0.019172 | 0.311214 | 9,087 | 214 | 92 | 42.462617 | 0.782713 | 0.057885 | 0 | 0.786585 | 0 | 0 | 0.147007 | 0.103554 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054878 | false | 0 | 0.018293 | 0 | 0.079268 | 0.109756 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
e98b40c245ddd54d3ef81e5c2530892b706adc6d | 3,885 | py | Python | vendor/github.com/elastic/beats/packetbeat/tests/system/test_0060_filtering.py | ykyuen/dockerbeat | 570fba45d2c2d06b6f700d2c823caf374de3884c | [
"Apache-2.0"
] | 37 | 2016-01-25T10:52:59.000Z | 2021-05-08T11:44:39.000Z | vendor/github.com/elastic/beats/packetbeat/tests/system/test_0060_filtering.py | ykyuen/dockerbeat | 570fba45d2c2d06b6f700d2c823caf374de3884c | [
"Apache-2.0"
] | 35 | 2016-01-25T09:19:28.000Z | 2017-11-20T23:29:35.000Z | vendor/github.com/elastic/beats/packetbeat/tests/system/test_0060_filtering.py | ykyuen/dockerbeat | 570fba45d2c2d06b6f700d2c823caf374de3884c | [
"Apache-2.0"
] | 23 | 2016-01-25T09:15:05.000Z | 2020-12-14T06:08:31.000Z | from packetbeat import BaseTest
class Test(BaseTest):
def test_drop_map_fields(self):
self.render_config_template(
http_send_all_headers=True,
drop_fields=["http.request_headers"],
# export all fields
include_fields=None,
filter_enabled=True,
... | 31.08 | 74 | 0.571429 | 441 | 3,885 | 4.829932 | 0.156463 | 0.039437 | 0.032864 | 0.067606 | 0.877465 | 0.837559 | 0.823944 | 0.823944 | 0.792958 | 0.792958 | 0 | 0.010045 | 0.308108 | 3,885 | 124 | 75 | 31.330645 | 0.782366 | 0.059717 | 0 | 0.72619 | 0 | 0 | 0.183091 | 0.05737 | 0 | 0 | 0 | 0 | 0.369048 | 1 | 0.059524 | false | 0 | 0.011905 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
e9d628b8accfa7cebc9ac5e68a4ebff71fbcf5ff | 68,641 | py | Python | benchmarks/SimResults/_bigLittle_hrrs_spec_tugberk_ml/SystemIPC/cmp_perlbench/power.py | TugberkArkose/MLScheduler | e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061 | [
"Unlicense"
] | null | null | null | benchmarks/SimResults/_bigLittle_hrrs_spec_tugberk_ml/SystemIPC/cmp_perlbench/power.py | TugberkArkose/MLScheduler | e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061 | [
"Unlicense"
] | null | null | null | benchmarks/SimResults/_bigLittle_hrrs_spec_tugberk_ml/SystemIPC/cmp_perlbench/power.py | TugberkArkose/MLScheduler | e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061 | [
"Unlicense"
] | null | null | null | power = {'BUSES': {'Area': 1.33155,
'Bus/Area': 1.33155,
'Bus/Gate Leakage': 0.00662954,
'Bus/Peak Dynamic': 0.0,
'Bus/Runtime Dynamic': 0.0,
'Bus/Subthreshold Leakage': 0.0691322,
'Bus/Subthreshold Leakage with power gating': 0.0259246,
'Gate... | 75.099562 | 124 | 0.681998 | 8,098 | 68,641 | 5.774883 | 0.067301 | 0.123511 | 0.112905 | 0.093403 | 0.940083 | 0.93091 | 0.918871 | 0.889918 | 0.864493 | 0.847236 | 0 | 0.131869 | 0.224225 | 68,641 | 914 | 125 | 75.099562 | 0.746347 | 0 | 0 | 0.653173 | 0 | 0 | 0.657105 | 0.048076 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
75bfb5c2aecf69909f1c380695ae33c1f60ed32a | 32,343 | py | Python | model/decoder.py | sesenosannko/dilated_cnn_text_vae | 9f7220febc001ab7320c33453b949e2624ef2f42 | [
"MIT"
] | 57 | 2018-01-09T03:36:01.000Z | 2021-04-08T09:03:29.000Z | model/decoder.py | sesenosannko/dilated_cnn_text_vae | 9f7220febc001ab7320c33453b949e2624ef2f42 | [
"MIT"
] | 5 | 2018-03-07T08:09:45.000Z | 2020-05-06T15:47:32.000Z | model/decoder.py | sesenosannko/dilated_cnn_text_vae | 9f7220febc001ab7320c33453b949e2624ef2f42 | [
"MIT"
] | 12 | 2018-01-23T05:58:29.000Z | 2020-06-21T13:27:49.000Z | import sys
import tensorflow as tf
sys.path.append("../")
from config import FLAGS
class Decoder_cvae(object):
def __init__(self, decoder_input, latent_variables, label_onehot,
embedding, batchloader, is_training=True, ru=False):
with tf.name_scope("decoder_input"):
self.de... | 53.459504 | 122 | 0.425378 | 2,761 | 32,343 | 4.650851 | 0.056501 | 0.066973 | 0.05607 | 0.042909 | 0.967292 | 0.961997 | 0.959583 | 0.957168 | 0.950315 | 0.950315 | 0 | 0.01868 | 0.506756 | 32,343 | 604 | 123 | 53.548013 | 0.786247 | 0.005194 | 0 | 0.938525 | 0 | 0 | 0.037898 | 0.015327 | 0 | 0 | 0 | 0 | 0.045082 | 1 | 0.012295 | false | 0 | 0.006148 | 0 | 0.030738 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
ddc8dee8ea246949ecb3bca6fb8f419f6bb3b5da | 5,088 | py | Python | python/Script_Dois/emboco_int_ceramica_int/separar_por_area.py | cgmbauer/bim_based_methodology | d0f7ac113b8a0defab6b89057cd6ca6f31d85f88 | [
"MIT"
] | 2 | 2021-05-18T12:46:44.000Z | 2021-05-31T21:10:11.000Z | python/Script_Dois/emboco_int_ceramica_int/separar_por_area.py | cgmbauer/bim_based_methodology | d0f7ac113b8a0defab6b89057cd6ca6f31d85f88 | [
"MIT"
] | null | null | null | python/Script_Dois/emboco_int_ceramica_int/separar_por_area.py | cgmbauer/bim_based_methodology | d0f7ac113b8a0defab6b89057cd6ca6f31d85f88 | [
"MIT"
] | null | null | null | # Load the Python Standard and DesignScript Libraries
import sys
import clr
clr.AddReference('ProtoGeometry')
from Autodesk.DesignScript.Geometry import *
# The inputs to this node will be stored as a list in the IN variables.
wallElements = IN[0] ## L2 -len igual a areaValue
areaValues = IN[1] ## L2 - len igual a w... | 115.636364 | 1,244 | 0.771226 | 791 | 5,088 | 4.557522 | 0.107459 | 0.198336 | 0.216366 | 0.213592 | 0.868793 | 0.868793 | 0.868793 | 0.868793 | 0.868239 | 0.868239 | 0 | 0.077778 | 0.097877 | 5,088 | 44 | 1,245 | 115.636364 | 0.707625 | 0.059748 | 0 | 0.444444 | 0 | 0 | 0.463231 | 0.452546 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 11 |
fb2372f41bd045a2f484b1b62153ed70b9b63e0a | 30,721 | py | Python | examples/experiment_replication/raw_datasets/ner/data.py | NLPatVCU/multitasking_transformers | 3245518a6cb3748916214233ce77965384df72f9 | [
"MIT"
] | 19 | 2020-09-22T08:26:23.000Z | 2022-03-29T03:06:56.000Z | examples/experiment_replication/raw_datasets/ner/data.py | NLPatVCU/multitasking_transformers | 3245518a6cb3748916214233ce77965384df72f9 | [
"MIT"
] | 2 | 2020-06-08T21:27:31.000Z | 2020-06-19T18:00:19.000Z | examples/experiment_replication/raw_datasets/ner/data.py | AndriyMulyar/multitasking_transformers | 3245518a6cb3748916214233ce77965384df72f9 | [
"MIT"
] | 5 | 2020-04-03T23:33:01.000Z | 2020-07-02T05:42:46.000Z | from pkg_resources import resource_exists, resource_listdir, resource_string, resource_stream, resource_filename, os
from ..language import get_language
import random, spacy
import xml.etree.ElementTree as ET
N2C2_2018_NER_LABELS = sorted(['Drug', 'Frequency', 'Reason', 'ADE', 'Dosage', 'Duration', 'Form', 'Route', 'S... | 47.335901 | 142 | 0.533316 | 3,742 | 30,721 | 4.227151 | 0.0783 | 0.091036 | 0.066064 | 0.090087 | 0.867493 | 0.857757 | 0.845176 | 0.832849 | 0.829119 | 0.825136 | 0 | 0.038071 | 0.326259 | 30,721 | 649 | 143 | 47.335901 | 0.726157 | 0.072133 | 0 | 0.771008 | 0 | 0 | 0.097111 | 0.012161 | 0 | 0 | 0 | 0 | 0.018908 | 1 | 0.010504 | false | 0.010504 | 0.008403 | 0 | 0.018908 | 0.014706 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
3486c681224b2393d7f69a73a32659104b47ab08 | 23,212 | py | Python | lambdausb/test/test_buf.py | zignig/lambdaUSB | 70e01e9d705e4d18e145f5e3f50ff7216c24e101 | [
"BSD-2-Clause"
] | null | null | null | lambdausb/test/test_buf.py | zignig/lambdaUSB | 70e01e9d705e4d18e145f5e3f50ff7216c24e101 | [
"BSD-2-Clause"
] | null | null | null | lambdausb/test/test_buf.py | zignig/lambdaUSB | 70e01e9d705e4d18e145f5e3f50ff7216c24e101 | [
"BSD-2-Clause"
] | null | null | null | from nmigen import *
from nmigen.back.pysim import *
from nmigen.test.tools import *
from ..buf import *
from ..protocol import Transfer
class USBInputBufferTestCase(FHDLTestCase):
def test_basic(self):
dut = USBInputBuffer({0x0: (None, 512, Transfer.BULK)})
with Simulator(dut) as sim:
... | 37.43871 | 94 | 0.518568 | 2,789 | 23,212 | 4.171029 | 0.034421 | 0.177426 | 0.22866 | 0.262959 | 0.970171 | 0.967592 | 0.960801 | 0.960457 | 0.946875 | 0.946789 | 0 | 0.032712 | 0.378382 | 23,212 | 619 | 95 | 37.499192 | 0.773512 | 0.013872 | 0 | 0.92389 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008392 | 0 | 0.281184 | 1 | 0.057082 | false | 0 | 0.010571 | 0 | 0.071882 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
551a7a90b61d44de2e5ebda0ee6e5c825253e62e | 132 | py | Python | app/v0/__init__.py | keosariel/health-report-api-project | 3a7aa530be863776fe9b4520be8748498d916c1a | [
"MIT"
] | null | null | null | app/v0/__init__.py | keosariel/health-report-api-project | 3a7aa530be863776fe9b4520be8748498d916c1a | [
"MIT"
] | null | null | null | app/v0/__init__.py | keosariel/health-report-api-project | 3a7aa530be863776fe9b4520be8748498d916c1a | [
"MIT"
] | null | null | null | from app.v0.auth import auth
from app.v0.users import users
from app.v0.reports import reports
from app.v0.replies import replies | 33 | 35 | 0.80303 | 24 | 132 | 4.416667 | 0.333333 | 0.264151 | 0.339623 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035088 | 0.136364 | 132 | 4 | 36 | 33 | 0.894737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
9b366ffeea7e9508f852582b563f52ec5e7f7ea5 | 3,707 | py | Python | lib/makerdao_medianizer.py | ferittuncer/Kleros-Monitor-Bot | a9a46706a2708684560e484f0b3cdd94c6601320 | [
"MIT"
] | 5 | 2019-04-20T07:01:37.000Z | 2020-08-31T00:48:17.000Z | lib/makerdao_medianizer.py | ferittuncer/Kleros-Monitor-Bot | a9a46706a2708684560e484f0b3cdd94c6601320 | [
"MIT"
] | 4 | 2019-05-01T11:17:00.000Z | 2019-05-19T20:28:25.000Z | lib/makerdao_medianizer.py | ferittuncer/Kleros-Monitor-Bot | a9a46706a2708684560e484f0b3cdd94c6601320 | [
"MIT"
] | 8 | 2019-04-20T06:57:58.000Z | 2020-07-26T11:31:20.000Z | from web3 import Web3, HTTPProvider
import binascii
class MakerDAO_Medianizer:
abi ='[{"constant":false,"inputs":[{"name":"owner_","type":"address"}],"name":"setOwner","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"","type":"bytes32"}],"name":"poke","outputs":[],"payable":fal... | 185.35 | 3,135 | 0.626652 | 412 | 3,707 | 5.599515 | 0.196602 | 0.086693 | 0.138708 | 0.208062 | 0.626355 | 0.586476 | 0.586476 | 0.586476 | 0.518856 | 0.314694 | 0 | 0.021253 | 0.035339 | 3,707 | 19 | 3,136 | 195.105263 | 0.623881 | 0.007553 | 0 | 0 | 0 | 0.071429 | 0.860794 | 0.860794 | 0 | 0 | 0.011419 | 0.052632 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 7 |
9b63268ba79bda7f1740d9085f84b8071b86dac2 | 12,636 | py | Python | test/unit/test_testaid_unit_moleculeenv.py | RebelCodeBase/testaid | 998c827b826fe4374ecf0a234fef61a975e2fcd7 | [
"Apache-2.0"
] | 17 | 2019-08-04T09:29:19.000Z | 2020-05-16T02:25:20.000Z | test/unit/test_testaid_unit_moleculeenv.py | RebelCodeBase/testaid | 998c827b826fe4374ecf0a234fef61a975e2fcd7 | [
"Apache-2.0"
] | 12 | 2019-07-19T22:20:42.000Z | 2020-01-20T06:45:38.000Z | test/unit/test_testaid_unit_moleculeenv.py | RebelCodeBase/testaid | 998c827b826fe4374ecf0a234fef61a975e2fcd7 | [
"Apache-2.0"
] | 3 | 2019-08-08T18:18:13.000Z | 2019-10-07T13:46:03.000Z | from pathlib import Path
import testaid
from testaid.moleculeenv import MoleculeEnv
def test_testaid_unit_moleculeenv_is_not_none(moleculeenv):
assert moleculeenv is not None
assert moleculeenv.get_roles() == list()
def test_testaid_unit_moleculeenv_get_molecule_ephemeral_directory(
moleculeenv,
... | 28.588235 | 79 | 0.628443 | 1,327 | 12,636 | 5.538056 | 0.060286 | 0.045721 | 0.040822 | 0.041638 | 0.889237 | 0.861342 | 0.853994 | 0.814805 | 0.797251 | 0.783644 | 0 | 0.003141 | 0.294634 | 12,636 | 441 | 80 | 28.653061 | 0.821384 | 0.001583 | 0 | 0.842566 | 0 | 0 | 0.146187 | 0.058586 | 0 | 0 | 0 | 0 | 0.052478 | 1 | 0.049563 | false | 0 | 0.008746 | 0 | 0.058309 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
9b654d4cce4d3407f91774d9a1bc88602a447cb8 | 10,841 | py | Python | Mojo/Auth/Mixins/SessionMixins.py | lonelycode/Mojo | 594892ee0239e2ae43d47b04406224b3d4543c3b | [
"Apache-2.0"
] | 14 | 2015-02-11T05:01:34.000Z | 2018-11-12T03:20:37.000Z | Mojo/Auth/Mixins/SessionMixins.py | lonelycode/Mojo | 594892ee0239e2ae43d47b04406224b3d4543c3b | [
"Apache-2.0"
] | null | null | null | Mojo/Auth/Mixins/SessionMixins.py | lonelycode/Mojo | 594892ee0239e2ae43d47b04406224b3d4543c3b | [
"Apache-2.0"
] | null | null | null | from tornado.web import RequestHandler
from Mojo.Auth.models import User, Session
from Mojo.Auth.SessionManager import SessionManager
from tornado import gen
from bson.objectid import ObjectId
import logging
class SessionMixin_Sync(RequestHandler):
"""
Synchronous Session Mixin ``RequestHandler`` base class. E... | 36.87415 | 128 | 0.630846 | 1,304 | 10,841 | 5.104294 | 0.144939 | 0.05619 | 0.040565 | 0.038011 | 0.888522 | 0.836388 | 0.820162 | 0.795072 | 0.752704 | 0.749099 | 0 | 0 | 0.289457 | 10,841 | 294 | 129 | 36.87415 | 0.864079 | 0 | 0 | 0.655172 | 0 | 0 | 0.054174 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.051724 | null | null | 0.017241 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 7 |
9b7785457533451d0b53f710706a0a0579c31cff | 4,083 | py | Python | project/Transparency/model/modules/Encoder.py | hancia/ToxicSpansDetection | 4a10600292af90a936767aee09559b39380e3d5e | [
"Apache-2.0"
] | 3 | 2021-03-23T08:07:54.000Z | 2021-11-13T07:13:32.000Z | project/Transparency/model/modules/Encoder.py | hancia/ToxicSpansDetection | 4a10600292af90a936767aee09559b39380e3d5e | [
"Apache-2.0"
] | null | null | null | project/Transparency/model/modules/Encoder.py | hancia/ToxicSpansDetection | 4a10600292af90a936767aee09559b39380e3d5e | [
"Apache-2.0"
] | null | null | null | import torch
import torch.nn as nn
import numpy as np
from model.modelUtils import isTrue
from allennlp.common import Registrable
from allennlp.nn.activations import Activation
from model.modules.lstm import LSTM
from torch.nn import LSTMCell
from model.modules.ortholstm import OrthoLSTM
from collections import namedtu... | 34.601695 | 134 | 0.646338 | 521 | 4,083 | 4.838772 | 0.184261 | 0.063467 | 0.051567 | 0.04284 | 0.810789 | 0.810789 | 0.810789 | 0.810789 | 0.810789 | 0.810789 | 0 | 0.006581 | 0.255694 | 4,083 | 117 | 135 | 34.897436 | 0.822968 | 0.01592 | 0 | 0.75 | 0 | 0 | 0.027411 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056818 | false | 0 | 0.113636 | 0 | 0.204545 | 0.022727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
9ba61f7d964f487d4f4080969b5e0e18727c2456 | 723 | py | Python | snapflow_plotly/functions/plotly_demo/tests/test_plotly_demo.py | kvh/snapflow-plotly | 7b75c3131edd301c58d2bddfa699b34366c2390c | [
"BSD-3-Clause"
] | null | null | null | snapflow_plotly/functions/plotly_demo/tests/test_plotly_demo.py | kvh/snapflow-plotly | 7b75c3131edd301c58d2bddfa699b34366c2390c | [
"BSD-3-Clause"
] | null | null | null | snapflow_plotly/functions/plotly_demo/tests/test_plotly_demo.py | kvh/snapflow-plotly | 7b75c3131edd301c58d2bddfa699b34366c2390c | [
"BSD-3-Clause"
] | null | null | null | # One test case per file
# inputs = dict(
# input=dict(
# data="""
# k1,k2,f1,f2,f3,f4
# 1,2,abc,1.1,1,2012-01-01
# 1,2,def,1.1,{"1":2},2012-01-02
# 1,3,abc,1.1,2,2012-01-01
# 1,4,,,"[1,2,3]",2012-01-01
# 2,2,1.0,2.1,"[1,2,3]",2012-01-... | 24.931034 | 46 | 0.388658 | 120 | 723 | 2.341667 | 0.25 | 0.078292 | 0.199288 | 0.099644 | 0.768683 | 0.768683 | 0.768683 | 0.768683 | 0.768683 | 0.768683 | 0 | 0.301518 | 0.362379 | 723 | 28 | 47 | 25.821429 | 0.308026 | 0.923928 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
fd23bdbba0ce677f1f4ed78cd72dedfa9f73c1e1 | 22,540 | py | Python | losantrest/org.py | Losant/losant-rest-python | 50a6ce13dfef7acefb930fe45893c7bae862f784 | [
"MIT"
] | 5 | 2016-06-16T20:18:11.000Z | 2022-03-09T11:41:59.000Z | losantrest/org.py | Losant/losant-rest-python | 50a6ce13dfef7acefb930fe45893c7bae862f784 | [
"MIT"
] | 4 | 2021-07-13T06:09:16.000Z | 2022-03-07T14:24:49.000Z | losantrest/org.py | Losant/losant-rest-python | 50a6ce13dfef7acefb930fe45893c7bae862f784 | [
"MIT"
] | 6 | 2016-11-18T03:19:17.000Z | 2022-03-09T11:41:47.000Z | """
The MIT License (MIT)
Copyright (c) 2021 Losant IoT, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, me... | 42.130841 | 129 | 0.62764 | 2,505 | 22,540 | 5.546507 | 0.0998 | 0.038002 | 0.039298 | 0.057435 | 0.831438 | 0.821362 | 0.821362 | 0.821362 | 0.821362 | 0.785663 | 0 | 0.005925 | 0.266238 | 22,540 | 534 | 130 | 42.209738 | 0.83415 | 0.494942 | 0 | 0.839806 | 0 | 0 | 0.234614 | 0.012495 | 0 | 0 | 0 | 0 | 0 | 1 | 0.053398 | false | 0 | 0.004854 | 0 | 0.11165 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
fd40879b48761a67c0040215aa630c4b78e92e7a | 11,957 | py | Python | CIoTS/pc_incremental_algorithm.py | danthe96/CIoTS | 6274f5b35a24ae11cb7456628f164b62440a8731 | [
"MIT"
] | 2 | 2018-06-09T21:01:40.000Z | 2019-01-02T11:14:56.000Z | CIoTS/pc_incremental_algorithm.py | danthe96/CIoTS | 6274f5b35a24ae11cb7456628f164b62440a8731 | [
"MIT"
] | 7 | 2018-06-13T15:06:14.000Z | 2018-06-29T21:49:21.000Z | CIoTS/pc_incremental_algorithm.py | danthe96/CIoTS | 6274f5b35a24ae11cb7456628f164b62440a8731 | [
"MIT"
] | null | null | null | from collections import defaultdict
import networkx as nx
import numpy as np
from CIoTS.pc_chen_algorithm import pc_chen_modified
from CIoTS.tools import transform_ts
from CIoTS.simple_var import VAR
from itertools import product, combinations
from time import time
def _graph_ic(p, dim, data_matrix, graph, ic='bic')... | 33.872521 | 103 | 0.553985 | 1,592 | 11,957 | 3.918342 | 0.092337 | 0.054505 | 0.035909 | 0.026932 | 0.831997 | 0.82302 | 0.810837 | 0.806188 | 0.80202 | 0.80202 | 0 | 0.011661 | 0.347328 | 11,957 | 352 | 104 | 33.96875 | 0.787673 | 0.060216 | 0 | 0.853846 | 0 | 0 | 0.001875 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019231 | false | 0 | 0.030769 | 0 | 0.084615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
b5bbb2ec961df3ab77c52feeaf428bcf8408fc28 | 44,971 | py | Python | scripts_OPEG.py | jrafolsr/pyInstruments | 1b892d490c97d8698617d5dc86132911539ef01b | [
"MIT"
] | 2 | 2021-04-12T12:33:20.000Z | 2021-11-15T07:29:13.000Z | scripts_OPEG.py | jrafolsr/pyInstruments | 1b892d490c97d8698617d5dc86132911539ef01b | [
"MIT"
] | null | null | null | scripts_OPEG.py | jrafolsr/pyInstruments | 1b892d490c97d8698617d5dc86132911539ef01b | [
"MIT"
] | null | null | null |
# coding: utf-8
# Library that depends on the pyLab library and that contains the main program/functions
# for driving the LEC devices at diferent modes.
import numpy as np
from time import sleep, time
import pyLab # This the module I created
import datetime
import os
import global_settings_ivl as gsivl
today = datet... | 46.029683 | 226 | 0.574993 | 5,606 | 44,971 | 4.555476 | 0.076704 | 0.024669 | 0.007401 | 0.01116 | 0.926071 | 0.923017 | 0.920393 | 0.920393 | 0.917535 | 0.908215 | 0 | 0.035023 | 0.309222 | 44,971 | 977 | 227 | 46.029683 | 0.787059 | 0.380623 | 0 | 0.868637 | 0 | 0 | 0.087369 | 0.000794 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013136 | false | 0.001642 | 0.009852 | 0 | 0.032841 | 0.031199 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
bd06190eb98619038a8fa8a815aafbd05ee35b06 | 62 | py | Python | ml/myscript/hello.py | miraclestatus/mllearning | f5db6642e8c05488b133ee627e5f63c92e45ff6e | [
"Apache-2.0"
] | 1 | 2020-06-24T12:44:21.000Z | 2020-06-24T12:44:21.000Z | ml/myscript/hello.py | miraclestatus/mllearning | f5db6642e8c05488b133ee627e5f63c92e45ff6e | [
"Apache-2.0"
] | null | null | null | ml/myscript/hello.py | miraclestatus/mllearning | f5db6642e8c05488b133ee627e5f63c92e45ff6e | [
"Apache-2.0"
] | null | null | null | def hello(name):
print('hello', name)
print("hello.py被调用") | 20.666667 | 24 | 0.66129 | 9 | 62 | 4.555556 | 0.555556 | 0.439024 | 0.682927 | 0.926829 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129032 | 62 | 3 | 25 | 20.666667 | 0.759259 | 0 | 0 | 0 | 0 | 0 | 0.253968 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.333333 | 0.666667 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 7 |
bd280e4e29b6f400cdec01d8e0c645ea2849756e | 21,015 | py | Python | siri/siri_model/__init__.py | grutts/siri | c388c209d1c803be166e767d5aa53a93a34c002d | [
"MIT"
] | null | null | null | siri/siri_model/__init__.py | grutts/siri | c388c209d1c803be166e767d5aa53a93a34c002d | [
"MIT"
] | null | null | null | siri/siri_model/__init__.py | grutts/siri | c388c209d1c803be166e767d5aa53a93a34c002d | [
"MIT"
] | null | null | null | from siri.siri_model.siri_dated_vehicle_journey_v2_0 import (
AbstractServiceJourneyInterchangeStructure,
ContextualisedConnectionLinkStructure,
DatedCall,
DatedCallStructure,
DatedVehicleJourney,
DatedVehicleJourneyStructure,
FromServiceJourneyInterchangeStructure,
ServiceJourneyInterch... | 29.026243 | 85 | 0.764549 | 889 | 21,015 | 17.952756 | 0.419573 | 0.012406 | 0.015789 | 0.022368 | 0.961779 | 0.940226 | 0.905514 | 0.888722 | 0.847494 | 0.847494 | 0 | 0.002398 | 0.166738 | 21,015 | 723 | 86 | 29.06639 | 0.909029 | 0 | 0 | 0 | 0 | 0 | 0.357364 | 0.252915 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.022161 | 0.029086 | 0 | 0.029086 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 7 |
1fafc0d63c0c79ab626d7546189643677ff21145 | 12,490 | py | Python | src/test_graph.py | regenalgrant/datastructures | e6030a28fb5f6f045dd008fa3c32281737c3aac9 | [
"MIT"
] | null | null | null | src/test_graph.py | regenalgrant/datastructures | e6030a28fb5f6f045dd008fa3c32281737c3aac9 | [
"MIT"
] | null | null | null | src/test_graph.py | regenalgrant/datastructures | e6030a28fb5f6f045dd008fa3c32281737c3aac9 | [
"MIT"
] | null | null | null |
# # _*_ encoding: utf-8 _*_
# """Test graph.py."""
# from graph import Graph
# import pytest
#
#
# @pytest.fixture()
# def native_graph():
# """Fixture for graph."""
# from graph import Graph
# test_graph = Graph()
# test_graph.add_node("codefellows")
# test_graph.add_node("python")
# return t... | 31.225 | 84 | 0.565733 | 1,533 | 12,490 | 4.39987 | 0.056099 | 0.118606 | 0.062268 | 0.083024 | 0.991846 | 0.988881 | 0.96338 | 0.961749 | 0.958784 | 0.958784 | 0 | 0.007026 | 0.259247 | 12,490 | 399 | 85 | 31.303258 | 0.722006 | 0.466533 | 0 | 0.390625 | 0 | 0 | 0.05367 | 0 | 0 | 0 | 0 | 0 | 0.1875 | 0 | null | null | 0 | 0.15625 | null | null | 0.007813 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 7 |
1fb8961379c59934c2ce0677f49b5c72cb9ff1f3 | 76 | py | Python | cloudsimd/launchers/__init__.py | osrf/cloudsim-legacy | 01ea7dd2708ed9797a860ac839028ec62fd96a23 | [
"Apache-2.0"
] | null | null | null | cloudsimd/launchers/__init__.py | osrf/cloudsim-legacy | 01ea7dd2708ed9797a860ac839028ec62fd96a23 | [
"Apache-2.0"
] | null | null | null | cloudsimd/launchers/__init__.py | osrf/cloudsim-legacy | 01ea7dd2708ed9797a860ac839028ec62fd96a23 | [
"Apache-2.0"
] | 1 | 2021-03-16T15:00:51.000Z | 2021-03-16T15:00:51.000Z | from __future__ import with_statement
from __future__ import print_function
| 25.333333 | 37 | 0.894737 | 10 | 76 | 5.8 | 0.7 | 0.344828 | 0.551724 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 76 | 2 | 38 | 38 | 0.852941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0.5 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 8 |
1fbd9a3cac48af75cde8c0f70f445da4fef0ffd2 | 158 | py | Python | utils/glist.py | eigenphi/gcommon | bce1ee422874fa904d90afee03fd703a06dc7a4d | [
"MIT"
] | 3 | 2021-11-09T09:43:21.000Z | 2021-12-16T18:15:43.000Z | utils/glist.py | eigenphi/gcommon | bce1ee422874fa904d90afee03fd703a06dc7a4d | [
"MIT"
] | null | null | null | utils/glist.py | eigenphi/gcommon | bce1ee422874fa904d90afee03fd703a06dc7a4d | [
"MIT"
] | 2 | 2022-03-10T11:24:46.000Z | 2022-03-25T06:39:17.000Z | # -*- coding: utf-8 -*-
# created: 2021-07-12
# creator: liguopeng@liguopeng.net
def split(list_obj, count):
return list_obj[:count], list_obj[count:]
| 19.75 | 45 | 0.670886 | 23 | 158 | 4.478261 | 0.695652 | 0.203884 | 0.349515 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067164 | 0.151899 | 158 | 7 | 46 | 22.571429 | 0.701493 | 0.474684 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 7 |
1fe96993083b587594933222b3c967e5f3c95d08 | 6,789 | py | Python | cottonformation/res/codestarnotifications.py | gitter-badger/cottonformation-project | 354f1dce7ea106e209af2d5d818b6033a27c193c | [
"BSD-2-Clause"
] | null | null | null | cottonformation/res/codestarnotifications.py | gitter-badger/cottonformation-project | 354f1dce7ea106e209af2d5d818b6033a27c193c | [
"BSD-2-Clause"
] | null | null | null | cottonformation/res/codestarnotifications.py | gitter-badger/cottonformation-project | 354f1dce7ea106e209af2d5d818b6033a27c193c | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
This module
"""
import attr
import typing
from ..core.model import (
Property, Resource, Tag, GetAtt, TypeHint, TypeCheck,
)
from ..core.constant import AttrMeta
#--- Property declaration ---
@attr.s
class NotificationRuleTarget(Property):
"""
AWS Object Type = "AWS::CodeSta... | 60.616071 | 218 | 0.779938 | 686 | 6,789 | 7.616618 | 0.100583 | 0.297416 | 0.042105 | 0.065072 | 0.894928 | 0.890144 | 0.869856 | 0.847273 | 0.847273 | 0.842488 | 0 | 0.000163 | 0.097363 | 6,789 | 111 | 219 | 61.162162 | 0.85248 | 0.338489 | 0 | 0.293103 | 0 | 0 | 0.070015 | 0.042889 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.068966 | 0 | 0.293103 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 7 |
1ff8e31e86b11e5394d616b3e13bf61e4d38a579 | 13,056 | py | Python | test_online_dialog/test_9_off_hours.py | OlesyaF/basic_tests_zvs | bbddeee17a2a9e633d57d628c02d450684bb158c | [
"Apache-2.0"
] | null | null | null | test_online_dialog/test_9_off_hours.py | OlesyaF/basic_tests_zvs | bbddeee17a2a9e633d57d628c02d450684bb158c | [
"Apache-2.0"
] | null | null | null | test_online_dialog/test_9_off_hours.py | OlesyaF/basic_tests_zvs | bbddeee17a2a9e633d57d628c02d450684bb158c | [
"Apache-2.0"
] | null | null | null | # -*- encoding: utf-8 -*-
import time
import allure
# Проверка работы Чата при переходе на нерабочее время и обратно
@allure.title("Проверка взятия в работу в нерабочее время Чата, попавшего в очередь в рабочее время")
def test_queue_off_hours(app):
print("test_queue_off_hours.py is running")
# PRECONDITIO... | 41.71246 | 261 | 0.709942 | 1,853 | 13,056 | 4.703184 | 0.093362 | 0.020654 | 0.027309 | 0.056225 | 0.948594 | 0.922433 | 0.914745 | 0.902008 | 0.88078 | 0.856569 | 0 | 0.007173 | 0.177849 | 13,056 | 313 | 262 | 41.71246 | 0.804733 | 0.0108 | 0 | 0.852273 | 0 | 0.05303 | 0.348745 | 0.067379 | 0 | 0 | 0 | 0 | 0.034091 | 1 | 0.015152 | false | 0 | 0.007576 | 0 | 0.022727 | 0.147727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
1ff98021c1d6e11da74c268d3063a9ad1537855a | 58 | py | Python | models/__init__.py | mengjian0502/eee511_team03_finalproject | 8003590412d0d4a614e56ab9515e386097d25040 | [
"MIT"
] | null | null | null | models/__init__.py | mengjian0502/eee511_team03_finalproject | 8003590412d0d4a614e56ab9515e386097d25040 | [
"MIT"
] | null | null | null | models/__init__.py | mengjian0502/eee511_team03_finalproject | 8003590412d0d4a614e56ab9515e386097d25040 | [
"MIT"
] | null | null | null | from .squeeze_net import *
from .squeeze_net_grey import * | 29 | 31 | 0.810345 | 9 | 58 | 4.888889 | 0.555556 | 0.5 | 0.636364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12069 | 58 | 2 | 31 | 29 | 0.862745 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
9506da358936cc29e11779fd843ab7d19ac1b943 | 837 | py | Python | tests/components/breadcrumbs/test_breadcrumbs.py | Crown-Commercial-Service/govuk-frontend-jinja | ddbe208a976ffa4ca330881c506c5200dfa69851 | [
"MIT"
] | 7 | 2019-09-25T13:59:35.000Z | 2021-06-30T11:13:22.000Z | tests/components/breadcrumbs/test_breadcrumbs.py | Crown-Commercial-Service/govuk-frontend-jinja | ddbe208a976ffa4ca330881c506c5200dfa69851 | [
"MIT"
] | 23 | 2019-08-20T10:52:49.000Z | 2021-06-02T14:21:16.000Z | tests/components/breadcrumbs/test_breadcrumbs.py | Crown-Commercial-Service/govuk-frontend-jinja | ddbe208a976ffa4ca330881c506c5200dfa69851 | [
"MIT"
] | 6 | 2019-08-29T14:02:25.000Z | 2021-04-10T20:20:23.000Z | def test_breadcrumbs(env, similar, template, expected):
template = env.from_string(template)
assert similar(template.render(), expected)
def test_breadcrumbs_with_one_level(env, similar, template, expected):
template = env.from_string(template)
assert similar(template.render(), expected)
def test_br... | 32.192308 | 80 | 0.774194 | 101 | 837 | 6.158416 | 0.247525 | 0.241158 | 0.144695 | 0.209003 | 0.858521 | 0.858521 | 0.858521 | 0.858521 | 0.858521 | 0.858521 | 0 | 0 | 0.130227 | 837 | 25 | 81 | 33.48 | 0.854396 | 0 | 0 | 0.588235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.294118 | 1 | 0.294118 | false | 0 | 0 | 0 | 0.294118 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 9 |
1f2b5d35c6e2a0e12081cc8d4744f19fb300a6f0 | 70,934 | py | Python | scripts/pyscf-calc-generator/atoms-pyscf.qa-posthf-dict.py | keithgroup/qa-atoms-dimers | fff24f5658b45618de8f2dcb35b3b0b7e87898d0 | [
"MIT"
] | null | null | null | scripts/pyscf-calc-generator/atoms-pyscf.qa-posthf-dict.py | keithgroup/qa-atoms-dimers | fff24f5658b45618de8f2dcb35b3b0b7e87898d0 | [
"MIT"
] | null | null | null | scripts/pyscf-calc-generator/atoms-pyscf.qa-posthf-dict.py | keithgroup/qa-atoms-dimers | fff24f5658b45618de8f2dcb35b3b0b7e87898d0 | [
"MIT"
] | null | null | null | qa_calcs_all = {
'H': (
{'state': 'chrg0.mult2', 'try_easier_state_if_fail': 'None', 'qc_method': 'HF', 'basis_set': basis_set, 'lambda_limits': '(0, 2)', 'dimer_sep_range': 'None', 'dimer_sep_step': 'None', 'broken_symmetry': 'False', 'force_unrestrict_spin': 'False', 'specific_atom_lambda': 'None', 'ma... | 349.428571 | 428 | 0.698015 | 9,966 | 70,934 | 4.504415 | 0.006924 | 0.147023 | 0.132321 | 0.176427 | 0.999154 | 0.999154 | 0.999154 | 0.999154 | 0.999154 | 0.999154 | 0 | 0.020582 | 0.095878 | 70,934 | 203 | 429 | 349.428571 | 0.679385 | 0 | 0 | 0.729064 | 0 | 0 | 0.611616 | 0.104673 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
1f5d6f747f923af6b6a1b08ed72e0f59c2398e75 | 2,648 | py | Python | Scripts/pRLoci2fastav2.py | janeedgeloe/ddRAD-SillimanTemplate | 13b5b7fa9470d1111706a43e719375a46006f4c5 | [
"MIT"
] | 1 | 2018-09-26T23:46:00.000Z | 2018-09-26T23:46:00.000Z | Scripts/pRLoci2fastav2.py | janeedgeloe/ddRAD-SillimanTemplate | 13b5b7fa9470d1111706a43e719375a46006f4c5 | [
"MIT"
] | 1 | 2019-03-27T17:21:37.000Z | 2019-04-29T15:38:46.000Z | Scripts/pRLoci2fastav2.py | janeedgeloe/ddRAD-SillimanTemplate | 13b5b7fa9470d1111706a43e719375a46006f4c5 | [
"MIT"
] | 6 | 2019-03-07T16:16:56.000Z | 2020-05-01T03:33:16.000Z | __author__ = 'ksil91'
import sys
def Loci2fastaOut(infileName,outfileName, positions):
lociDict = {}
## read in your data file
infile = open(infileName, "r")
## create an empty output file
outfile = open(outfileName, "w")
pos = open(positions, "r")
chrom = []
pos.next()
for line i... | 31.52381 | 83 | 0.50642 | 338 | 2,648 | 3.911243 | 0.242604 | 0.048412 | 0.030257 | 0.04236 | 0.839637 | 0.824508 | 0.79879 | 0.79879 | 0.79879 | 0.79879 | 0 | 0.023782 | 0.348943 | 2,648 | 83 | 84 | 31.903614 | 0.743039 | 0.129154 | 0 | 0.769231 | 0 | 0 | 0.030594 | 0.010052 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046154 | false | 0 | 0.015385 | 0 | 0.061538 | 0.046154 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
2f47409ff39ddb3ccb1d160ed605d42b05e93b6d | 8,345 | py | Python | nucleotide_game.py | PetePrattis/chromosome-last-random-nucleotide-game | f3d4e71b1948edeeab872fce6ef9899542ad5135 | [
"MIT"
] | 1 | 2020-10-07T10:42:56.000Z | 2020-10-07T10:42:56.000Z | nucleotide_game.py | PetePrattis/chromosome-last-random-nucleotide-game | f3d4e71b1948edeeab872fce6ef9899542ad5135 | [
"MIT"
] | null | null | null | nucleotide_game.py | PetePrattis/chromosome-last-random-nucleotide-game | f3d4e71b1948edeeab872fce6ef9899542ad5135 | [
"MIT"
] | null | null | null | import random
import sys
from Bio import SeqIO
for seq_record1 in SeqIO.parse("liver.fasta", "fasta"):
chromosome1 = seq_record1.seq
for seq_record2 in SeqIO.parse("brain.fasta", "fasta"):
chromosome2 = seq_record2.seq
chromosome1 = len(seq_record1)
chromosome2 = len(seq_record2)
print chromosome1... | 60.471014 | 139 | 0.425764 | 728 | 8,345 | 4.872253 | 0.096154 | 0.02481 | 0.033831 | 0.040598 | 0.883846 | 0.883846 | 0.875106 | 0.875106 | 0.875106 | 0.850296 | 0 | 0.05063 | 0.514799 | 8,345 | 137 | 140 | 60.912409 | 0.825389 | 0 | 0 | 0.806723 | 0 | 0 | 0.201292 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.02521 | null | null | 0.235294 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
c814dba4c1d91355a9b15759e701cadcb1796cc2 | 453 | py | Python | tests/parser/bug.42.test.py | veltri/DLV2 | 944aaef803aa75e7ec51d7e0c2b0d964687fdd0e | [
"Apache-2.0"
] | null | null | null | tests/parser/bug.42.test.py | veltri/DLV2 | 944aaef803aa75e7ec51d7e0c2b0d964687fdd0e | [
"Apache-2.0"
] | null | null | null | tests/parser/bug.42.test.py | veltri/DLV2 | 944aaef803aa75e7ec51d7e0c2b0d964687fdd0e | [
"Apache-2.0"
] | null | null | null | input = """
true.
a(1) :- true.
b(1) :- true.
gen1 :- not a(1).
gen2 :- not b(1).
%%%%%%%%%%%%%%%%%%%%%%
unrel | a(2).
gen3 :- unrel.
gen3 :- gen1.
a(2) :- not gen3.
gen4 :- gen2.
b(2) :- not gen4.
"""
output = """
true.
a(1) :- true.
b(1) :- true.
gen1 :- not a(1).
gen2 :- not b(1).
%%... | 11.04878 | 23 | 0.395143 | 66 | 453 | 2.712121 | 0.19697 | 0.044693 | 0.067039 | 0.111732 | 0.938547 | 0.938547 | 0.938547 | 0.938547 | 0.938547 | 0.938547 | 0 | 0.098462 | 0.282561 | 453 | 40 | 24 | 11.325 | 0.452308 | 0 | 0 | 0.928571 | 0 | 0 | 0.925659 | 0.105516 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
c819de3badf3aecd6eba451e02fadcd8dff8e0cb | 16,932 | py | Python | Cogs/ImageFilter.py | kazoeru/Acinonyx-v3 | 6d202ee22179567b132010aeec34d51cd316913c | [
"MIT"
] | null | null | null | Cogs/ImageFilter.py | kazoeru/Acinonyx-v3 | 6d202ee22179567b132010aeec34d51cd316913c | [
"MIT"
] | null | null | null | Cogs/ImageFilter.py | kazoeru/Acinonyx-v3 | 6d202ee22179567b132010aeec34d51cd316913c | [
"MIT"
] | null | null | null | import discord
import time
from datetime import datetime
from discord.ext import commands
from Cogs import Utils, GetImage, Message, DisplayName, Nullify
def setup(bot):
settings = bot.get_cog("Settings")
bot.add_cog(ImageFilter(bot, settings))
class ImageFilter(commands.Cog):
def __i... | 37.460177 | 108 | 0.547543 | 1,792 | 16,932 | 5.135045 | 0.067522 | 0.045642 | 0.045642 | 0.039557 | 0.87644 | 0.863291 | 0.825473 | 0.821343 | 0.759183 | 0.759183 | 0 | 0.009455 | 0.350343 | 16,932 | 452 | 109 | 37.460177 | 0.819636 | 0 | 0 | 0.813456 | 0 | 0 | 0.076287 | 0 | 0 | 0 | 0.008073 | 0 | 0 | 1 | 0.009174 | false | 0.042813 | 0.015291 | 0 | 0.079511 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
c841f1c95269ab84dfd58305864fc903fdb3b565 | 188 | py | Python | app/main/main_routes.py | ETspielberg/sdg_query_execution | 6e95d4d6e158f72e2aa61c64ba3aac5980b14e5b | [
"MIT"
] | null | null | null | app/main/main_routes.py | ETspielberg/sdg_query_execution | 6e95d4d6e158f72e2aa61c64ba3aac5980b14e5b | [
"MIT"
] | 2 | 2021-03-31T18:47:27.000Z | 2021-12-13T19:50:45.000Z | app/main/main_routes.py | ETspielberg/sdg_query_execution | 6e95d4d6e158f72e2aa61c64ba3aac5980b14e5b | [
"MIT"
] | 2 | 2018-09-21T07:42:17.000Z | 2021-08-02T15:58:45.000Z | from flask import render_template
from app.main import main_blueprint
@main_blueprint.route('/index', methods=['GET', 'POST'])
def get_index():
return render_template('index.html')
| 20.888889 | 56 | 0.75 | 26 | 188 | 5.230769 | 0.615385 | 0.205882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117021 | 188 | 8 | 57 | 23.5 | 0.819277 | 0 | 0 | 0 | 0 | 0 | 0.12234 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0.4 | 0.2 | 0.8 | 0.4 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 7 |
c85fdb6361fcdce87173879e4de707cfe3f30892 | 141 | py | Python | app/utilities/__init__.py | Dbrown411/py-oct | e5b56344f864a8c00fe9ec1a00adbacfe833d27e | [
"MIT"
] | null | null | null | app/utilities/__init__.py | Dbrown411/py-oct | e5b56344f864a8c00fe9ec1a00adbacfe833d27e | [
"MIT"
] | null | null | null | app/utilities/__init__.py | Dbrown411/py-oct | e5b56344f864a8c00fe9ec1a00adbacfe833d27e | [
"MIT"
] | null | null | null | from .helpers import *
from .GUI_Helpers import *
from .network_locations import *
from .path_validation import *
from .int16_to_e2e import * | 28.2 | 32 | 0.794326 | 20 | 141 | 5.35 | 0.55 | 0.373832 | 0.317757 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02459 | 0.134752 | 141 | 5 | 33 | 28.2 | 0.852459 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
c0c147fb5de2d946550615f245daa6971209c40d | 5,288 | py | Python | algorithms/model_free_tabular_algorithms.py | karthikbhamidipati/reinforcement-learning | 8ea18f788420eeec38e8552e5f091aa831c1f46a | [
"Apache-2.0"
] | 2 | 2021-12-22T15:34:25.000Z | 2022-01-01T21:49:54.000Z | algorithms/model_free_tabular_algorithms.py | karthikbhamidipati/reinforcement-learning | 8ea18f788420eeec38e8552e5f091aa831c1f46a | [
"Apache-2.0"
] | null | null | null | algorithms/model_free_tabular_algorithms.py | karthikbhamidipati/reinforcement-learning | 8ea18f788420eeec38e8552e5f091aa831c1f46a | [
"Apache-2.0"
] | null | null | null | import numpy as np
from algorithms.epsilon_greedy import EpsilonGreedySelection
def sarsa(env, max_episodes, eta, gamma, epsilon, seed=None):
"""
Method to implement SARSA control
Algorithm:
1. initialization:
- generate a random state for the game
- cr... | 41.968254 | 119 | 0.563162 | 724 | 5,288 | 4.077348 | 0.174033 | 0.012195 | 0.010163 | 0.00542 | 0.951897 | 0.951897 | 0.95122 | 0.95122 | 0.95122 | 0.95122 | 0 | 0.012888 | 0.354387 | 5,288 | 125 | 120 | 42.304 | 0.846807 | 0.635023 | 0 | 0.85 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.05 | 0 | 0.15 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
c0debc99e718b73ed25b5b18cc58571c3fc28576 | 3,136 | py | Python | skibidi/backend/tests.py | carminelaluna/skibidi | f135dc47ec78e2a86f2b499f936b676afeaa1155 | [
"MIT"
] | null | null | null | skibidi/backend/tests.py | carminelaluna/skibidi | f135dc47ec78e2a86f2b499f936b676afeaa1155 | [
"MIT"
] | null | null | null | skibidi/backend/tests.py | carminelaluna/skibidi | f135dc47ec78e2a86f2b499f936b676afeaa1155 | [
"MIT"
] | 1 | 2021-07-23T18:56:18.000Z | 2021-07-23T18:56:18.000Z | from django.test import TestCase
from django.test.client import Client
from django.contrib.auth.models import User
from backend.models import Kind
class TestLogin(TestCase):
def test__can_user_login(self):
User.objects.create_user(username="test", password="test")
self.assertTrue(Client().login... | 42.958904 | 82 | 0.676658 | 408 | 3,136 | 4.995098 | 0.147059 | 0.088322 | 0.147203 | 0.164868 | 0.804711 | 0.754171 | 0.751227 | 0.734053 | 0.704612 | 0.704612 | 0 | 0.004285 | 0.181441 | 3,136 | 72 | 83 | 43.555556 | 0.789638 | 0 | 0 | 0.564516 | 0 | 0 | 0.176658 | 0.08801 | 0 | 0 | 0 | 0 | 0.145161 | 1 | 0.145161 | false | 0.274194 | 0.064516 | 0 | 0.290323 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 8 |
2385654b6eb2b07c81c7c4a92adccc12dae7bbcc | 181 | py | Python | pyrefine/ops/__init__.py | jezcope/pyrefine | 44872592b1c0430d942d6901d7670e7b0ae77b11 | [
"MIT"
] | 27 | 2017-03-29T09:12:43.000Z | 2021-12-16T17:00:14.000Z | pyrefine/ops/__init__.py | jezcope/pyrefine | 44872592b1c0430d942d6901d7670e7b0ae77b11 | [
"MIT"
] | 7 | 2017-04-02T22:10:22.000Z | 2021-06-01T21:25:26.000Z | pyrefine/ops/__init__.py | jezcope/pyrefine | 44872592b1c0430d942d6901d7670e7b0ae77b11 | [
"MIT"
] | 2 | 2019-07-31T15:03:21.000Z | 2021-12-20T12:12:15.000Z | """Operations package."""
from .base import * # noqa: F401, F403
from .cell import * # noqa: F401, F403
from .column import * # noqa: F401, F403
| 25.857143 | 50 | 0.535912 | 20 | 181 | 4.85 | 0.5 | 0.309278 | 0.43299 | 0.556701 | 0.453608 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151261 | 0.342541 | 181 | 6 | 51 | 30.166667 | 0.663866 | 0.392265 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
f1b25631fc51f6fce8c831a9c22ce40b90e52b75 | 19,256 | py | Python | cm/app/api_v1/my_calculation_module_directory/excess_heat/graph/test/test_graph_union.py | HotMaps/excess_heat_cm | 3c022c1fdfb4b85e9cdc55adcb7dbb112d303289 | [
"Apache-2.0"
] | null | null | null | cm/app/api_v1/my_calculation_module_directory/excess_heat/graph/test/test_graph_union.py | HotMaps/excess_heat_cm | 3c022c1fdfb4b85e9cdc55adcb7dbb112d303289 | [
"Apache-2.0"
] | 3 | 2021-02-08T10:57:59.000Z | 2022-03-08T21:23:16.000Z | cm/app/api_v1/my_calculation_module_directory/excess_heat/graph/test/test_graph_union.py | HotMaps/excess_heat_cm | 3c022c1fdfb4b85e9cdc55adcb7dbb112d303289 | [
"Apache-2.0"
] | null | null | null | import unittest
import numpy as np
from ..graph_union import NetworkGraphUnion
class TestNetworkGraph(unittest.TestCase):
def test_initiation(self):
source_sink_edges = [[0], [0, 1], [1], [2], [3], []]
source_source_edges = [[], [2], [1], [], []]
sink_sink_edges = [[], [], [], []]
... | 53.938375 | 117 | 0.515787 | 1,958 | 19,256 | 4.761491 | 0.03524 | 0.084951 | 0.107798 | 0.089671 | 0.96514 | 0.960313 | 0.950016 | 0.938003 | 0.930065 | 0.917945 | 0 | 0.047051 | 0.316784 | 19,256 | 356 | 118 | 54.089888 | 0.661599 | 0.008569 | 0 | 0.841216 | 0 | 0 | 0.034696 | 0 | 0 | 0 | 0 | 0 | 0.118243 | 1 | 0.070946 | false | 0 | 0.010135 | 0 | 0.084459 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
f1e6f31104e856965c2cad7ce940aeabe4361e8d | 6,262 | py | Python | insights/combiners/tests/test_rsyslog_confs.py | haithcockce/insights-core | b2e197c6bfc25bcbe2926f07c35a80f2cf8232f5 | [
"Apache-2.0"
] | 121 | 2017-05-30T20:23:25.000Z | 2022-03-23T12:52:15.000Z | insights/combiners/tests/test_rsyslog_confs.py | haithcockce/insights-core | b2e197c6bfc25bcbe2926f07c35a80f2cf8232f5 | [
"Apache-2.0"
] | 1,977 | 2017-05-26T14:36:03.000Z | 2022-03-31T10:38:53.000Z | insights/combiners/tests/test_rsyslog_confs.py | haithcockce/insights-core | b2e197c6bfc25bcbe2926f07c35a80f2cf8232f5 | [
"Apache-2.0"
] | 244 | 2017-05-30T20:22:57.000Z | 2022-03-26T10:09:39.000Z | from insights.combiners.rsyslog_confs import RsyslogAllConf
from insights.combiners import rsyslog_confs
from insights.parsers.rsyslog_conf import RsyslogConf
from insights.tests import context_wrap
import doctest
RSYSLOG_CONF_MAIN_7 = r"""
$ModLoad imuxsock # provides support for local system logging (e.g. via logge... | 45.05036 | 115 | 0.620888 | 726 | 6,262 | 5.202479 | 0.168044 | 0.042891 | 0.063542 | 0.076781 | 0.883241 | 0.866296 | 0.865766 | 0.857294 | 0.857294 | 0.817315 | 0 | 0.011645 | 0.259502 | 6,262 | 138 | 116 | 45.376812 | 0.80289 | 0 | 0 | 0.644628 | 0 | 0.016529 | 0.669594 | 0.167838 | 0 | 0 | 0 | 0 | 0.07438 | 1 | 0.041322 | false | 0 | 0.041322 | 0 | 0.082645 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
7b16923907ff0da2f3a5aea3748838d17fc751b8 | 210 | py | Python | users/models.py | BroNaz/web_client | c68a826afabeae1c6053a271ec6ad23d93dd11e7 | [
"MIT"
] | null | null | null | users/models.py | BroNaz/web_client | c68a826afabeae1c6053a271ec6ad23d93dd11e7 | [
"MIT"
] | null | null | null | users/models.py | BroNaz/web_client | c68a826afabeae1c6053a271ec6ad23d93dd11e7 | [
"MIT"
] | null | null | null | from django.db import models
class registration(models.Model):
login = models.CharField(max_length=25)
password = models.CharField(max_length = 25)
def __str__(self):
return self.login | 26.25 | 48 | 0.704762 | 27 | 210 | 5.259259 | 0.666667 | 0.211268 | 0.253521 | 0.338028 | 0.366197 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023952 | 0.204762 | 210 | 8 | 49 | 26.25 | 0.826347 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.166667 | 0.166667 | 0.166667 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 8 |
7b45c64e15c39deeef29e0bd52e734ee7600a508 | 344 | py | Python | starfish/agent/authentication/__init__.py | datacraft-dsc/starfish-py | 95ff24410f056e8e2d313c3af97439fe003e294a | [
"Apache-2.0"
] | 4 | 2019-02-08T03:47:36.000Z | 2019-10-17T21:45:23.000Z | starfish/agent/authentication/__init__.py | datacraft-dsc/starfish-py | 95ff24410f056e8e2d313c3af97439fe003e294a | [
"Apache-2.0"
] | 81 | 2019-02-09T01:01:51.000Z | 2020-07-01T08:35:07.000Z | starfish/agent/authentication/__init__.py | oceanprotocol/ocean-py | 318ad0de2519e61d0a301c040a48d1839cd82425 | [
"Apache-2.0"
] | 1 | 2021-01-28T12:14:03.000Z | 2021-01-28T12:14:03.000Z |
from starfish.agent.authentication.authentication import Authentication # noqa: F401
from starfish.agent.authentication.authentication_basic import AuthenticationBasic # noqa: F401
from starfish.agent.authentication.authentication_token import AuthenticationToken ... | 57.333333 | 113 | 0.700581 | 29 | 344 | 8.241379 | 0.37931 | 0.150628 | 0.213389 | 0.389121 | 0.631799 | 0.443515 | 0.443515 | 0 | 0 | 0 | 0 | 0.035156 | 0.255814 | 344 | 5 | 114 | 68.8 | 0.898438 | 0.093023 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
7b4e78a7dd8331f69a76ac643b5498cb6fc199d3 | 235 | py | Python | bitmovin_api_sdk/analytics/virtual_licenses/__init__.py | bitmovin/bitmovin-api-sdk-python | 5a85147669c84b8ca411cf2d4dbdddc92d85bbe7 | [
"MIT"
] | 11 | 2019-07-03T10:41:16.000Z | 2022-02-25T21:48:06.000Z | bitmovin_api_sdk/analytics/virtual_licenses/__init__.py | bitmovin/bitmovin-api-sdk-python | 5a85147669c84b8ca411cf2d4dbdddc92d85bbe7 | [
"MIT"
] | 8 | 2019-11-23T00:01:25.000Z | 2021-04-29T12:30:31.000Z | bitmovin_api_sdk/analytics/virtual_licenses/__init__.py | bitmovin/bitmovin-api-sdk-python | 5a85147669c84b8ca411cf2d4dbdddc92d85bbe7 | [
"MIT"
] | 13 | 2020-01-02T14:58:18.000Z | 2022-03-26T12:10:30.000Z | from bitmovin_api_sdk.analytics.virtual_licenses.virtual_licenses_api import VirtualLicensesApi
from bitmovin_api_sdk.analytics.virtual_licenses.analytics_virtual_license_list_query_params import AnalyticsVirtualLicenseListQueryParams
| 78.333333 | 138 | 0.940426 | 27 | 235 | 7.703704 | 0.518519 | 0.230769 | 0.144231 | 0.173077 | 0.403846 | 0.403846 | 0.403846 | 0 | 0 | 0 | 0 | 0 | 0.034043 | 235 | 2 | 139 | 117.5 | 0.9163 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
7b9e833dce6aa5ede3f10bb120b568a24d09c63c | 113 | py | Python | mmdet/version.py | ZaiwangLi/SA-SSD | 9bb2ef4aecc7206ea935977d45781267b8a15001 | [
"MIT"
] | 58 | 2020-12-09T04:52:14.000Z | 2022-03-08T13:55:56.000Z | mmdet/version.py | ZaiwangLi/SA-SSD | 9bb2ef4aecc7206ea935977d45781267b8a15001 | [
"MIT"
] | 5 | 2021-03-11T06:40:43.000Z | 2021-11-21T09:24:33.000Z | mmdet/version.py | ZaiwangLi/SA-SSD | 9bb2ef4aecc7206ea935977d45781267b8a15001 | [
"MIT"
] | 7 | 2020-12-11T07:26:25.000Z | 2022-02-02T09:01:06.000Z | # GENERATED VERSION FILE
# TIME: Thu Mar 7 20:30:16 2019
__version__ = '0.5.4+a6ee053'
short_version = '0.5.4'
| 18.833333 | 32 | 0.690265 | 21 | 113 | 3.47619 | 0.761905 | 0.219178 | 0.246575 | 0.273973 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.223404 | 0.168142 | 113 | 5 | 33 | 22.6 | 0.553191 | 0.469027 | 0 | 0 | 1 | 0 | 0.315789 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
7bad54e1667a66a68ad0d39762049877e065ed79 | 1,443 | py | Python | src/tests/test_transformer_controls.py | mzy2240/GridCal | 0352f0e9ce09a9c037722bf2f2afc0a31ccd2880 | [
"BSD-3-Clause"
] | 284 | 2016-01-31T03:20:44.000Z | 2022-03-17T21:16:52.000Z | src/tests/test_transformer_controls.py | mzy2240/GridCal | 0352f0e9ce09a9c037722bf2f2afc0a31ccd2880 | [
"BSD-3-Clause"
] | 94 | 2016-01-14T13:37:40.000Z | 2022-03-28T03:13:56.000Z | src/tests/test_transformer_controls.py | mzy2240/GridCal | 0352f0e9ce09a9c037722bf2f2afc0a31ccd2880 | [
"BSD-3-Clause"
] | 84 | 2016-03-29T10:43:04.000Z | 2022-02-22T16:26:55.000Z | from GridCal.Engine import *
def test_v_control_true():
"""
Test that when the V control is enabled the voltage at the bus is the set point
"""
options = PowerFlowOptions(SolverType.NR,
control_q=ReactivePowerControlMode.Direct,
retry_with_... | 29.44898 | 88 | 0.656965 | 180 | 1,443 | 5.088889 | 0.355556 | 0.069869 | 0.017467 | 0.032751 | 0.901747 | 0.901747 | 0.805677 | 0.751092 | 0.751092 | 0.751092 | 0 | 0.014733 | 0.247401 | 1,443 | 49 | 89 | 29.44898 | 0.828729 | 0.113652 | 0 | 0.740741 | 0 | 0 | 0.036829 | 0 | 0 | 0 | 0 | 0 | 0.074074 | 1 | 0.074074 | false | 0 | 0.037037 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
7bbea68042c656d358097e8552f43d671126c71f | 54,069 | py | Python | services/traction/acapy_client/api/present_proof_v2_0_api.py | Open-Earth-Foundation/traction | 908b555a7f408a88541b7692d3730e37a297c919 | [
"Apache-2.0"
] | 12 | 2022-01-29T20:30:03.000Z | 2022-03-29T11:46:14.000Z | services/traction/acapy_client/api/present_proof_v2_0_api.py | Open-Earth-Foundation/traction | 908b555a7f408a88541b7692d3730e37a297c919 | [
"Apache-2.0"
] | 38 | 2021-11-22T17:52:50.000Z | 2022-03-31T17:52:00.000Z | services/traction/acapy_client/api/present_proof_v2_0_api.py | Open-Earth-Foundation/traction | 908b555a7f408a88541b7692d3730e37a297c919 | [
"Apache-2.0"
] | 9 | 2021-11-22T18:05:48.000Z | 2022-03-29T11:25:08.000Z | """
Aries Cloud Agent
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: v0.7.2
Generated by: https://openapi-generator.tech
"""
import re # noqa: F401
import sys # noqa: F401
from acapy_cli... | 44.210139 | 124 | 0.552405 | 5,562 | 54,069 | 5.087199 | 0.047105 | 0.025658 | 0.033646 | 0.022265 | 0.903198 | 0.894858 | 0.882523 | 0.87337 | 0.863509 | 0.846899 | 0 | 0.008223 | 0.359023 | 54,069 | 1,222 | 125 | 44.246318 | 0.808206 | 0.402393 | 0 | 0.656695 | 1 | 0 | 0.276139 | 0.075396 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017094 | false | 0 | 0.018519 | 0 | 0.052707 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 7 |
c8a96a38a99ac077c01442fb4ea28f4495db8865 | 54,917 | py | Python | modules/unit_tests/core/aaa/permissions.py | nursix/DRKCM | 09328289ff721c416494398aa751ff99906327cb | [
"MIT"
] | 3 | 2022-01-26T08:07:54.000Z | 2022-03-21T21:53:52.000Z | modules/unit_tests/core/aaa/permissions.py | nursix/eden-asp | e49f46cb6488918f8d5a163dcd5a900cd686978c | [
"MIT"
] | null | null | null | modules/unit_tests/core/aaa/permissions.py | nursix/eden-asp | e49f46cb6488918f8d5a163dcd5a900cd686978c | [
"MIT"
] | null | null | null | # Eden Unit Tests
#
# To run this script use:
# python web2py.py -S eden -M -R applications/eden/modules/unit_tests/core/aaa/permission.py
#
import unittest
import re
from gluon import *
from gluon.storage import Storage
from core import S3Permission, s3_meta_fields
from unit_tests import run_suite
# RE to handle IN... | 37.795595 | 92 | 0.539323 | 5,768 | 54,917 | 5.005895 | 0.058773 | 0.008243 | 0.012364 | 0.016485 | 0.890247 | 0.883736 | 0.858766 | 0.849623 | 0.836774 | 0.826972 | 0 | 0.01035 | 0.317388 | 54,917 | 1,452 | 93 | 37.821625 | 0.75989 | 0.129687 | 0 | 0.875254 | 0 | 0 | 0.053812 | 0.009627 | 0 | 0 | 0 | 0 | 0.211968 | 1 | 0.035497 | false | 0 | 0.006085 | 0 | 0.048682 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
c8c023df916c7ec5388a2ffb09b7edefb8f84411 | 15,665 | py | Python | tests/integration/cartography/intel/azure/test_function_app.py | Cloudanix/cartography | 653d3cccbb9318e876fd558d386593e3612f4f78 | [
"Apache-2.0"
] | null | null | null | tests/integration/cartography/intel/azure/test_function_app.py | Cloudanix/cartography | 653d3cccbb9318e876fd558d386593e3612f4f78 | [
"Apache-2.0"
] | 11 | 2020-12-21T02:51:11.000Z | 2022-03-15T14:30:43.000Z | tests/integration/cartography/intel/azure/test_function_app.py | Cloudanix/cartography | 653d3cccbb9318e876fd558d386593e3612f4f78 | [
"Apache-2.0"
] | 1 | 2021-02-05T08:08:47.000Z | 2021-02-05T08:08:47.000Z | from cartography.intel.azure import function_app
from tests.data.azure.function_app import DESCRIBE_FUNCTIONAPPBACKUPS
from tests.data.azure.function_app import DESCRIBE_FUNCTIONAPPCONFIGURATIONS
from tests.data.azure.function_app import DESCRIBE_FUNCTIONAPPDEPLOYMENTS
from tests.data.azure.function_app import DESCRIBE... | 31.646465 | 110 | 0.666645 | 1,637 | 15,665 | 6.157605 | 0.062309 | 0.055952 | 0.055952 | 0.037302 | 0.904861 | 0.903274 | 0.878472 | 0.870139 | 0.834722 | 0.797917 | 0 | 0.04636 | 0.224769 | 15,665 | 494 | 111 | 31.710526 | 0.783679 | 0 | 0 | 0.756233 | 0 | 0.127424 | 0.131086 | 0.12189 | 0 | 0 | 0 | 0 | 0.044321 | 1 | 0.044321 | false | 0 | 0.024931 | 0 | 0.069252 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
c8d8bc0a4ff0149b3b13b5d589efc8f117953a91 | 11,385 | py | Python | api/rest_api/models.py | cladup/hyperion | 411137e20439bf4bcb859c3050cbfb1726343b97 | [
"MIT"
] | null | null | null | api/rest_api/models.py | cladup/hyperion | 411137e20439bf4bcb859c3050cbfb1726343b97 | [
"MIT"
] | null | null | null | api/rest_api/models.py | cladup/hyperion | 411137e20439bf4bcb859c3050cbfb1726343b97 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
# -*- coding: utf-8 -*-
# coded by StolenByte
__AUTHOR__ = 'StolenByte [thscndgh@gmail.com]'
from django.db import models
from django.utils.translation import ugettext as _
'''
class campaigns(models.Model):
class Meta:
verbose_name = 'Campaigns'
verbose_name_plural = 'Campaigns'
unique_toge... | 44.127907 | 132 | 0.718226 | 1,580 | 11,385 | 4.948734 | 0.056962 | 0.092083 | 0.051157 | 0.086968 | 0.955109 | 0.955109 | 0.945645 | 0.945645 | 0.945645 | 0.945645 | 0 | 0.021287 | 0.125253 | 11,385 | 258 | 133 | 44.127907 | 0.763832 | 0.008783 | 0 | 0.482759 | 0 | 0 | 0.157654 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051724 | false | 0 | 0.017241 | 0.051724 | 0.517241 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 1 | 0 | 0 | 7 |
7401efe5da95df301580e25295d787dcc3c0f3bd | 69,606 | py | Python | PythonPrograms/Dyn/Dynobite/Dynobite.py | abhinavsatheesh/Python | 9ae1a7a040522f5989c34f17d2d0764b301fa23a | [
"Apache-2.0"
] | null | null | null | PythonPrograms/Dyn/Dynobite/Dynobite.py | abhinavsatheesh/Python | 9ae1a7a040522f5989c34f17d2d0764b301fa23a | [
"Apache-2.0"
] | null | null | null | PythonPrograms/Dyn/Dynobite/Dynobite.py | abhinavsatheesh/Python | 9ae1a7a040522f5989c34f17d2d0764b301fa23a | [
"Apache-2.0"
] | null | null | null | from PyQt5.QtCore import *
from PyQt5.QtWidgets import *
from PyQt5.QtGui import *
from PyQt5.QtWebEngineWidgets import *
from PyQt5 import QtCore
from PyQt5 import QtCore, QtWidgets, QtWebEngineWidgets, QtPrintSupport
from tkinter import *
from tkPDFViewer import tkPDFViewer as pdf
from tkinter import filedial... | 43.860113 | 175 | 0.586372 | 6,763 | 69,606 | 5.944108 | 0.086204 | 0.016517 | 0.018657 | 0.034478 | 0.915896 | 0.912736 | 0.906716 | 0.897413 | 0.87898 | 0.877811 | 0 | 0.0064 | 0.304097 | 69,606 | 1,586 | 176 | 43.887768 | 0.82351 | 0.015013 | 0 | 0.879969 | 0 | 0.022171 | 0.211474 | 0.020911 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055046 | false | 0.011468 | 0.021407 | 0 | 0.082569 | 0.029817 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
cdebfe3c0f3159de9d091d98232615c22fa5a504 | 169 | py | Python | src/analytics_packages/__main__.py | jameskabbes/analytics_packages | 92703b6c215169d4d66091ddad0277d22af01185 | [
"MIT"
] | null | null | null | src/analytics_packages/__main__.py | jameskabbes/analytics_packages | 92703b6c215169d4d66091ddad0277d22af01185 | [
"MIT"
] | null | null | null | src/analytics_packages/__main__.py | jameskabbes/analytics_packages | 92703b6c215169d4d66091ddad0277d22af01185 | [
"MIT"
] | null | null | null | import analytics_packages.custom_xlwings as cxw
print ( cxw.alpha_from_index( 1345 ) )
import analytics_packages.custom_pandas as cpd
print ( cpd.get_date_and_time() )
| 28.166667 | 47 | 0.816568 | 26 | 169 | 4.961538 | 0.692308 | 0.232558 | 0.356589 | 0.449612 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026667 | 0.112426 | 169 | 5 | 48 | 33.8 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0.5 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 8 |
a8193376d2a387627c10365ba9d3e6978d0cb837 | 428 | py | Python | itdagene/core/decorators.py | itdagene-ntnu/itdagene | b972cd3d803debccebbc33641397a39834b8d69a | [
"MIT"
] | 9 | 2018-10-17T20:58:09.000Z | 2021-12-16T16:16:45.000Z | itdagene/core/decorators.py | itdagene-ntnu/itdagene | b972cd3d803debccebbc33641397a39834b8d69a | [
"MIT"
] | 177 | 2018-10-27T18:15:56.000Z | 2022-03-28T04:29:06.000Z | itdagene/core/decorators.py | itdagene-ntnu/itdagene | b972cd3d803debccebbc33641397a39834b8d69a | [
"MIT"
] | null | null | null | from django.contrib.auth.decorators import user_passes_test
def superuser_required(login_url=None, raise_exception=False):
def check_perms(user):
return user.is_superuser
return user_passes_test(check_perms, login_url=login_url)
def staff_required(login_url=None, raise_exception=False):
def che... | 26.75 | 62 | 0.78271 | 63 | 428 | 4.968254 | 0.365079 | 0.153355 | 0.134185 | 0.127796 | 0.728435 | 0.728435 | 0.728435 | 0.728435 | 0.728435 | 0.728435 | 0 | 0 | 0.14486 | 428 | 15 | 63 | 28.533333 | 0.855191 | 0 | 0 | 0.444444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.444444 | false | 0.333333 | 0.111111 | 0.222222 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 9 |
b573929d1d32f9715d7c25090b4928eea6f64304 | 150 | py | Python | filemanager/files/test.py | angeelgarr/file-manager-django | 902cc2da3fc8bd0b062b03e8aeb10b7a56f25419 | [
"MIT"
] | 3 | 2015-12-23T07:49:59.000Z | 2021-09-09T19:59:06.000Z | filemanager/files/test.py | angeelgarr/file-manager-django | 902cc2da3fc8bd0b062b03e8aeb10b7a56f25419 | [
"MIT"
] | 2 | 2021-04-08T20:56:04.000Z | 2021-06-09T18:32:52.000Z | filemanager/files/test.py | angeelgarr/file-manager-django | 902cc2da3fc8bd0b062b03e8aeb10b7a56f25419 | [
"MIT"
] | 2 | 2016-05-26T16:19:37.000Z | 2021-06-04T02:31:24.000Z | from models import save_permissions
print save_permissions("ojar", "public_ssl", "", {"mode": "public", "username": "ojar", "password": "asdfasdf"})
| 37.5 | 112 | 0.7 | 17 | 150 | 6 | 0.764706 | 0.294118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 150 | 3 | 113 | 50 | 0.755556 | 0 | 0 | 0 | 0 | 0 | 0.346667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.5 | 0.5 | null | null | 0.5 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 7 |
8d11119f73d9556f458b2c72b38def2317ac2afb | 19,534 | py | Python | datcore-sdk/python/datcore_sdk/api/ledger_api.py | mguidon/aiohttp-dsm | 612e4c7f6f73df7d6752269965c428fda0276191 | [
"MIT"
] | null | null | null | datcore-sdk/python/datcore_sdk/api/ledger_api.py | mguidon/aiohttp-dsm | 612e4c7f6f73df7d6752269965c428fda0276191 | [
"MIT"
] | null | null | null | datcore-sdk/python/datcore_sdk/api/ledger_api.py | mguidon/aiohttp-dsm | 612e4c7f6f73df7d6752269965c428fda0276191 | [
"MIT"
] | null | null | null | # coding: utf-8
"""
Blackfynn Swagger
Swagger documentation for the Blackfynn api # noqa: E501
OpenAPI spec version: 1.0.0
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import re # noqa: F401
# python 2 and python 3 compatibility library
import six
fro... | 41.561702 | 151 | 0.626139 | 2,356 | 19,534 | 4.906197 | 0.072156 | 0.059521 | 0.094472 | 0.031837 | 0.942642 | 0.933385 | 0.929492 | 0.910459 | 0.906307 | 0.896704 | 0 | 0.015028 | 0.284632 | 19,534 | 469 | 152 | 41.65032 | 0.812151 | 0.318214 | 0 | 0.776 | 1 | 0 | 0.180667 | 0.045045 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036 | false | 0 | 0.016 | 0 | 0.104 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
8d78e12e7021f39d5fe97f33455651cc1ed9d9d7 | 796 | py | Python | chainerrl_visualizer/config/__init__.py | Ravie403/chainerrl-visualizer | 302bcd574d435ab68652b084764d4bb777300494 | [
"MIT"
] | 45 | 2018-12-13T07:18:43.000Z | 2022-03-26T15:37:27.000Z | chainerrl_visualizer/config/__init__.py | Ravie403/chainerrl-visualizer | 302bcd574d435ab68652b084764d4bb777300494 | [
"MIT"
] | 12 | 2018-12-13T10:46:23.000Z | 2021-03-08T23:39:56.000Z | chainerrl_visualizer/config/__init__.py | Ravie403/chainerrl-visualizer | 302bcd574d435ab68652b084764d4bb777300494 | [
"MIT"
] | 10 | 2018-12-13T07:20:20.000Z | 2021-12-11T14:07:56.000Z | from chainerrl_visualizer.config.agent import DISCRETE_ACTION_VALUE # NOQA
from chainerrl_visualizer.config.agent import DISTRIBUTIONAL_DISCRETE_ACTION_VALUE # NOQA
from chainerrl_visualizer.config.agent import QUADRATIC_ACTION_VALUE # NOQA
from chainerrl_visualizer.config.agent import SINGLE_ACTION_VALUE # NOQA
f... | 61.230769 | 91 | 0.871859 | 97 | 796 | 6.876289 | 0.226804 | 0.194903 | 0.344828 | 0.434783 | 0.842579 | 0.842579 | 0.782609 | 0.782609 | 0.353823 | 0.188906 | 0 | 0 | 0.090452 | 796 | 12 | 92 | 66.333333 | 0.921271 | 0.061558 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 9 |
5732d00787bb59aefcbd475223e53cf31f29321e | 13,686 | py | Python | utils/parse_args.py | chiachiyeh/dSNE | 3c5bd8e2474c0b35738c8d269076e3794966f2a3 | [
"Apache-2.0"
] | 65 | 2019-08-14T23:51:21.000Z | 2022-02-17T13:31:40.000Z | utils/parse_args.py | chiachiyeh/dSNE | 3c5bd8e2474c0b35738c8d269076e3794966f2a3 | [
"Apache-2.0"
] | 10 | 2019-08-15T05:01:20.000Z | 2020-04-17T15:16:43.000Z | utils/parse_args.py | chiachiyeh/dSNE | 3c5bd8e2474c0b35738c8d269076e3794966f2a3 | [
"Apache-2.0"
] | 24 | 2019-08-15T00:36:25.000Z | 2021-10-31T20:45:26.000Z | """
Argument parser
"""
import mxnet as mx
import argparse
import os
def parse_args_sda():
parser = argparse.ArgumentParser(description='Supervised Domain Adaptation for main function')
# os
os_parser = parser.add_argument_group(description='os related argument parser')
os_parser.add_argument('--ckpt... | 67.418719 | 116 | 0.701301 | 1,927 | 13,686 | 4.811105 | 0.116762 | 0.119405 | 0.225542 | 0.132888 | 0.943695 | 0.930752 | 0.92784 | 0.92784 | 0.92784 | 0.92784 | 0 | 0.009839 | 0.131156 | 13,686 | 202 | 117 | 67.752475 | 0.769826 | 0.011399 | 0 | 0.824242 | 0 | 0 | 0.284255 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012121 | false | 0 | 0.018182 | 0 | 0.042424 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
5741181663295bb2c0a7f763263a51021ec6c375 | 172,548 | py | Python | src/AlignAtlas.py | vanossj/pyAtlasBoneSegmentation | 99255626af70a2dcd51ceb8062e7c650915939bf | [
"MIT"
] | 1 | 2019-01-04T11:04:25.000Z | 2019-01-04T11:04:25.000Z | src/AlignAtlas.py | vanossj/pyAtlasBoneSegmentation | 99255626af70a2dcd51ceb8062e7c650915939bf | [
"MIT"
] | 1 | 2019-09-11T13:03:59.000Z | 2019-09-11T13:21:43.000Z | src/AlignAtlas.py | vanossj/pyAtlasBoneSegmentation | 99255626af70a2dcd51ceb8062e7c650915939bf | [
"MIT"
] | 1 | 2019-10-04T16:28:20.000Z | 2019-10-04T16:28:20.000Z | '''
Created on Jan 4, 2012
@author: Jeff
'''
import numpy, time
from math import pi
from scipy.ndimage.interpolation import affine_transform
from scipy.ndimage.measurements import center_of_mass
from scipy.ndimage import gaussian_filter
import scipy.ndimage
from TriModel import TriModel
from scipy.io impor... | 58.629969 | 266 | 0.648208 | 18,849 | 172,548 | 5.920049 | 0.056873 | 0.007366 | 0.006721 | 0.005915 | 0.806814 | 0.791607 | 0.781668 | 0.771317 | 0.765609 | 0.756092 | 0 | 0.027414 | 0.239985 | 172,548 | 2,942 | 267 | 58.649898 | 0.823493 | 0.220814 | 0 | 0.739403 | 0 | 0 | 0.093477 | 0.006937 | 0 | 0 | 0 | 0.00068 | 0 | 0 | null | null | 0 | 0.010989 | null | null | 0.07169 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
93f13806f91462f95668259c362161c3d96a88be | 4,778 | py | Python | tests/smoke/test_sessions.py | aK0nshin/aiovk | 85098d195e4836858856416258ea3249c5c9e95b | [
"MIT"
] | 2 | 2020-10-05T18:14:48.000Z | 2020-10-11T10:35:58.000Z | tests/smoke/test_sessions.py | AndreyKlychnikov/aiovk | c435aa97725f8456634aaf302cc688fddbc64b71 | [
"MIT"
] | null | null | null | tests/smoke/test_sessions.py | AndreyKlychnikov/aiovk | c435aa97725f8456634aaf302cc688fddbc64b71 | [
"MIT"
] | null | null | null | import os
import ssl
import unittest
from http.server import HTTPServer
from threading import Thread
from aiohttp.test_utils import unittest_run_loop
from aiovk import ImplicitSession, TokenSession
from aiovk.exceptions import VkAuthError
from tests.smoke.utils import disable_cert_verification, VKRequestHandler, get_... | 39.816667 | 102 | 0.657597 | 585 | 4,778 | 5.128205 | 0.2 | 0.08 | 0.086667 | 0.045333 | 0.812333 | 0.801667 | 0.765 | 0.748333 | 0.748333 | 0.713 | 0 | 0.002712 | 0.228129 | 4,778 | 119 | 103 | 40.151261 | 0.810738 | 0.057974 | 0 | 0.741935 | 0 | 0 | 0.088563 | 0 | 0 | 0 | 0 | 0 | 0.053763 | 1 | 0.021505 | false | 0.032258 | 0.107527 | 0 | 0.150538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
93fe57c4e0aa97f1ed14c7fa045d1274b21029ec | 124 | py | Python | rpi/pidirectjitsi/jsstream.py | Projektlabor-Rheine/AN602_Eingebettete_Schlange | 42825039c8f9422cc52477775bf1814e9541825c | [
"MIT"
] | null | null | null | rpi/pidirectjitsi/jsstream.py | Projektlabor-Rheine/AN602_Eingebettete_Schlange | 42825039c8f9422cc52477775bf1814e9541825c | [
"MIT"
] | 1 | 2021-06-10T14:01:21.000Z | 2021-06-10T14:01:21.000Z | rpi/pidirectjitsi/jsstream.py | Projektlabor-Rheine/MDKB_Raspi_Python | 42825039c8f9422cc52477775bf1814e9541825c | [
"MIT"
] | null | null | null |
import js2py
js2py.translate_file('lib-jitsi-meet.min.js', 'lib_jitsi_meet.py')
from lib_jitsi_meet import JitsiMeetJS
| 13.777778 | 66 | 0.790323 | 20 | 124 | 4.65 | 0.6 | 0.258065 | 0.387097 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018018 | 0.104839 | 124 | 8 | 67 | 15.5 | 0.81982 | 0 | 0 | 0 | 0 | 0 | 0.316667 | 0.175 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
f541f58365df8f966012561ef960c21e4c4ca723 | 2,292 | py | Python | test/test_www_redirect.py | seitenwerke/seitenwerke-nginx-proxy | e014a94d5c6e99ccae892a2307fc4eb404796150 | [
"MIT"
] | null | null | null | test/test_www_redirect.py | seitenwerke/seitenwerke-nginx-proxy | e014a94d5c6e99ccae892a2307fc4eb404796150 | [
"MIT"
] | 7 | 2021-04-03T06:30:38.000Z | 2022-03-18T17:30:18.000Z | test/test_www_redirect.py | seitenwerke/seitenwerke-nginx-proxy | e014a94d5c6e99ccae892a2307fc4eb404796150 | [
"MIT"
] | null | null | null | import pytest
# HTTP
# Testing a webapp which just serves via http (no https and no https-redirect)
def test_non_www_http_not_redirected(docker_compose, nginxproxy):
r = nginxproxy.get("http://web.nginx-proxy.tld/", allow_redirects=False)
assert r.status_code == 200
def test_www_http_redirected(docker_compose... | 46.77551 | 92 | 0.738656 | 335 | 2,292 | 4.877612 | 0.137313 | 0.085679 | 0.111383 | 0.093635 | 0.890453 | 0.881885 | 0.881885 | 0.881885 | 0.779682 | 0.77601 | 0 | 0.016467 | 0.125654 | 2,292 | 49 | 93 | 46.77551 | 0.798902 | 0.071117 | 0 | 0.486486 | 0 | 0 | 0.270118 | 0 | 0 | 0 | 0 | 0 | 0.540541 | 1 | 0.216216 | false | 0 | 0.027027 | 0 | 0.243243 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
192d3b748bc7c84cfdb38c2b4286022232e3cf63 | 306 | py | Python | src/IceRayPy/core/material/instruction/label/size/__init__.py | dmilos/IceRay | 4e01f141363c0d126d3c700c1f5f892967e3d520 | [
"MIT-0"
] | 2 | 2020-09-04T12:27:15.000Z | 2022-01-17T14:49:40.000Z | src/IceRayPy/core/material/instruction/label/size/__init__.py | dmilos/IceRay | 4e01f141363c0d126d3c700c1f5f892967e3d520 | [
"MIT-0"
] | null | null | null | src/IceRayPy/core/material/instruction/label/size/__init__.py | dmilos/IceRay | 4e01f141363c0d126d3c700c1f5f892967e3d520 | [
"MIT-0"
] | 1 | 2020-09-04T12:27:52.000Z | 2020-09-04T12:27:52.000Z | print( '<' + __name__ + ' name=\'' + __file__ + '\'>' )
import IceRayPy.core.material.instruction.label.size.const
import IceRayPy.core.material.instruction.label.size.dynamic
import IceRayPy.core.material.instruction.label.size.temp
print( '</' + __name__ + ' name=\'' + __file__ + '\'>' )
| 34 | 61 | 0.666667 | 32 | 306 | 5.875 | 0.40625 | 0.223404 | 0.287234 | 0.414894 | 0.734043 | 0.734043 | 0.734043 | 0 | 0 | 0 | 0 | 0 | 0.147059 | 306 | 8 | 62 | 38.25 | 0.720307 | 0 | 0 | 0 | 0 | 0 | 0.171141 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.6 | 0 | 0.6 | 0.4 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 9 |
1934c275c04820a31b34d455c2270705b3e62569 | 204 | py | Python | reamber/dummy/lists/__init__.py | Bestfast/reamberPy | 91b76ca6adf11fbe8b7cee7c186481776a4d7aaa | [
"MIT"
] | null | null | null | reamber/dummy/lists/__init__.py | Bestfast/reamberPy | 91b76ca6adf11fbe8b7cee7c186481776a4d7aaa | [
"MIT"
] | null | null | null | reamber/dummy/lists/__init__.py | Bestfast/reamberPy | 91b76ca6adf11fbe8b7cee7c186481776a4d7aaa | [
"MIT"
] | null | null | null | from reamber.dummy.lists.DmBpmList import DmBpmList
from reamber.dummy.lists.DmNotePkg import DmNotePkg
from reamber.dummy.lists.DmSvList import DmSvList
__all__ = ['DmSvList', 'DmNotePkg', 'DmBpmList']
| 34 | 51 | 0.813725 | 25 | 204 | 6.48 | 0.36 | 0.203704 | 0.296296 | 0.388889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088235 | 204 | 5 | 52 | 40.8 | 0.870968 | 0 | 0 | 0 | 0 | 0 | 0.127451 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
272c6ff3662ccdd82f5d78a1c231b03bd1a950d7 | 9,170 | py | Python | cms/old_migrations_21_sep/0004_auto_20170810_1659.py | Ibrahem3amer/bala7 | 70638c121ea85ff0e6a650c5f2641b0b3b04d6d0 | [
"Apache-2.0"
] | null | null | null | cms/old_migrations_21_sep/0004_auto_20170810_1659.py | Ibrahem3amer/bala7 | 70638c121ea85ff0e6a650c5f2641b0b3b04d6d0 | [
"Apache-2.0"
] | null | null | null | cms/old_migrations_21_sep/0004_auto_20170810_1659.py | Ibrahem3amer/bala7 | 70638c121ea85ff0e6a650c5f2641b0b3b04d6d0 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-08-10 16:59
from __future__ import unicode_literals
from django.conf import settings
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
import re
class Migration(migrations.Migration):
dependencies ... | 55.914634 | 280 | 0.585714 | 920 | 9,170 | 5.73587 | 0.182609 | 0.031268 | 0.036953 | 0.04169 | 0.801213 | 0.801213 | 0.732613 | 0.732613 | 0.719348 | 0.695471 | 0 | 0.033864 | 0.246456 | 9,170 | 163 | 281 | 56.257669 | 0.729812 | 0.007415 | 0 | 0.673077 | 1 | 0.032051 | 0.217277 | 0.049236 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.038462 | 0 | 0.057692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 7 |
278103a375ed38b099da7a051990408f31d5d199 | 17,378 | py | Python | pretrain/dae_model_func_builder.py | laiguokun/transformer-xl | fd090d97504c46db19ed998cba3ad8f85d481fe6 | [
"Apache-2.0"
] | null | null | null | pretrain/dae_model_func_builder.py | laiguokun/transformer-xl | fd090d97504c46db19ed998cba3ad8f85d481fe6 | [
"Apache-2.0"
] | null | null | null | pretrain/dae_model_func_builder.py | laiguokun/transformer-xl | fd090d97504c46db19ed998cba3ad8f85d481fe6 | [
"Apache-2.0"
] | null | null | null | """Create model function for estimator."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from absl import flags
import absl.logging as _logging # pylint: disable=unused-import
import tensorflow as tf
# pylint: disable=g-import-not-at-top
try:
import g... | 34.548708 | 85 | 0.660836 | 2,536 | 17,378 | 4.167981 | 0.087539 | 0.036424 | 0.027058 | 0.020435 | 0.823368 | 0.799338 | 0.780511 | 0.774267 | 0.75894 | 0.728288 | 0 | 0.009665 | 0.23196 | 17,378 | 502 | 86 | 34.61753 | 0.782273 | 0.083784 | 0 | 0.794118 | 0 | 0 | 0.045489 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010695 | false | 0 | 0.034759 | 0 | 0.05615 | 0.002674 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
27f6aeb467a966d4ba3890652211ad0b56900fc2 | 1,668 | py | Python | actor_critic_layer/utils.py | xiaogaogaoxiao/HDDPG-HER-RND | 44c27592158170f694706f7e33760ef9d3bac7bc | [
"MIT"
] | 11 | 2020-06-07T02:05:00.000Z | 2022-01-18T16:22:48.000Z | actor_critic_layer/utils.py | xiaogaogaoxiao/HDDPG-HER-RND | 44c27592158170f694706f7e33760ef9d3bac7bc | [
"MIT"
] | null | null | null | actor_critic_layer/utils.py | xiaogaogaoxiao/HDDPG-HER-RND | 44c27592158170f694706f7e33760ef9d3bac7bc | [
"MIT"
] | 2 | 2020-07-18T07:57:09.000Z | 2021-12-26T11:35:51.000Z | import tensorflow as tf
def layer(input_layer, num_next_neurons, is_output=False):
num_prev_neurons = int(input_layer.shape[1])
shape = [num_prev_neurons, num_next_neurons]
if is_output:
weight_init = tf.random_uniform_initializer(minval=-3e-3, maxval=3e-3)
bias_init = tf.ran... | 28.271186 | 93 | 0.68765 | 239 | 1,668 | 4.451883 | 0.188285 | 0.046992 | 0.084586 | 0.107143 | 0.941729 | 0.941729 | 0.941729 | 0.932331 | 0.932331 | 0.932331 | 0 | 0.012967 | 0.214029 | 1,668 | 58 | 94 | 28.758621 | 0.798627 | 0.005396 | 0 | 0.806452 | 0 | 0 | 0.016373 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0 | 0.032258 | 0 | 0.225806 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
fd9a98287343730a260772c6cec13c421a4c29c7 | 67,846 | py | Python | discordbot.py | markbasser/rainfriendship | 8ec36263346ceb50d970534cd74a25cf72254d9b | [
"MIT"
] | null | null | null | discordbot.py | markbasser/rainfriendship | 8ec36263346ceb50d970534cd74a25cf72254d9b | [
"MIT"
] | null | null | null | discordbot.py | markbasser/rainfriendship | 8ec36263346ceb50d970534cd74a25cf72254d9b | [
"MIT"
] | null | null | null | from discord.ext import commands
from discord.ext import tasks
import os
import traceback
import discord
from datetime import datetime
token = os.environ['DISCORD_BOT_TOKEN']
CHANNEL_ID =758265143627874314 #チャンネルID
# 接続に必要なオブジェクトを生成
client = discord.Client()
@client.event
async def on_ready():
"""起動時に通知してくれる処理... | 43.324393 | 223 | 0.646744 | 7,452 | 67,846 | 5.804079 | 0.050322 | 0.096134 | 0.129844 | 0.18665 | 0.932766 | 0.914987 | 0.892121 | 0.881231 | 0.868769 | 0.855891 | 0 | 0.291314 | 0.226542 | 67,846 | 1,565 | 224 | 43.352077 | 0.530986 | 0.015064 | 0 | 0.611744 | 0 | 0.011394 | 0.362732 | 0.158152 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.005259 | 0 | 0.006135 | 0.004382 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 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 | 8 |
fdaf6f53a60d785e6b9737054fd3352315ccb2f6 | 15,216 | py | Python | rss_temple/api/views/login.py | murrple-1/rss_temple | 289197923b1e7d1213f1673d164337df17d7269b | [
"MIT"
] | null | null | null | rss_temple/api/views/login.py | murrple-1/rss_temple | 289197923b1e7d1213f1673d164337df17d7269b | [
"MIT"
] | 8 | 2019-12-04T21:58:35.000Z | 2021-12-15T02:29:49.000Z | rss_temple/api/views/login.py | murrple-1/rss_temple | 289197923b1e7d1213f1673d164337df17d7269b | [
"MIT"
] | null | null | null | import datetime
import uuid
import logging
from django.conf import settings
from django.dispatch import receiver
from django.core.signals import setting_changed
from django.http import HttpResponse, HttpResponseBadRequest, HttpResponseForbidden, HttpResponseNotAllowed
from django.db import transaction
import argon2
... | 31.966387 | 107 | 0.687566 | 1,733 | 15,216 | 5.820542 | 0.079631 | 0.141568 | 0.04253 | 0.019332 | 0.784475 | 0.765441 | 0.745514 | 0.738178 | 0.738178 | 0.738178 | 0 | 0.002435 | 0.21714 | 15,216 | 475 | 108 | 32.033684 | 0.844359 | 0.036803 | 0 | 0.708333 | 0 | 0 | 0.086377 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0.0625 | 0.044643 | 0 | 0.327381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 7 |
fdd0a323f74e60cdb5d6d613d7aecfa7a46ddca8 | 17,408 | py | Python | backend/studies/tests/integration/test_study_viewset.py | Alfred-Walker/drf-react-blog-example | c1547ce6cfcf27d6d680705f2ff446576eed5536 | [
"MIT"
] | 4 | 2020-07-19T14:08:57.000Z | 2021-11-27T15:13:59.000Z | backend/studies/tests/integration/test_study_viewset.py | Alfred-Walker/drf-react-blog-example | c1547ce6cfcf27d6d680705f2ff446576eed5536 | [
"MIT"
] | 8 | 2020-04-21T11:40:14.000Z | 2021-04-08T20:10:00.000Z | backend/studies/tests/integration/test_study_viewset.py | Alfred-Walker/drf-react-blog-example | c1547ce6cfcf27d6d680705f2ff446576eed5536 | [
"MIT"
] | 1 | 2020-07-19T14:09:03.000Z | 2020-07-19T14:09:03.000Z | import datetime
import pytest
import unittest.mock as mock
from django.urls import reverse
from django.utils import timezone
from rest_framework.test import APITestCase, APIRequestFactory, force_authenticate
from studies.views import StudyViewSet
from studies.tests.factories import StudyFactory
from users.tests.fac... | 41.349169 | 109 | 0.642061 | 2,153 | 17,408 | 5.020437 | 0.072922 | 0.098807 | 0.069942 | 0.048108 | 0.888334 | 0.870663 | 0.835137 | 0.813489 | 0.807198 | 0.802849 | 0 | 0.019126 | 0.240119 | 17,408 | 420 | 110 | 41.447619 | 0.798004 | 0.151425 | 0 | 0.700389 | 0 | 0 | 0.188564 | 0.015317 | 0 | 0 | 0 | 0.002381 | 0.307393 | 1 | 0.027237 | false | 0 | 0.035019 | 0 | 0.066148 | 0.007782 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
e31ee4a09b9e246f0a5489fd0be6a0629eda35fc | 208 | py | Python | inferencia/util/reader/reader_manager.py | yuya-mochimaru-np/inferencia | e09f298d0a80672fc5bb9383e23c941290eff334 | [
"Apache-2.0"
] | null | null | null | inferencia/util/reader/reader_manager.py | yuya-mochimaru-np/inferencia | e09f298d0a80672fc5bb9383e23c941290eff334 | [
"Apache-2.0"
] | 5 | 2021-07-25T23:19:29.000Z | 2021-07-26T23:35:13.000Z | inferencia/util/reader/reader_manager.py | yuya-mochimaru-np/inferencia | e09f298d0a80672fc5bb9383e23c941290eff334 | [
"Apache-2.0"
] | 1 | 2021-09-18T12:06:13.000Z | 2021-09-18T12:06:13.000Z | from .reader_factory import ReaderFactory
class ReaderManager:
def get_reader(target_input, target_fps=None):
return ReaderFactory.create(target_input, target_fps)
# return VideoReader
| 23.111111 | 61 | 0.759615 | 24 | 208 | 6.333333 | 0.666667 | 0.144737 | 0.223684 | 0.263158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.182692 | 208 | 8 | 62 | 26 | 0.894118 | 0.086538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.25 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 7 |
e33dece8f946573e9f7d3774949414bc12d42ad8 | 1,369 | py | Python | Machine Learning/Perceptron&Adaline.py | DonghaoQiao/Machine-Learning | 42652254b6411f8d13b906b7d39e99b2cfd58197 | [
"MIT"
] | 1 | 2019-10-23T15:40:15.000Z | 2019-10-23T15:40:15.000Z | Machine Learning/Perceptron&Adaline.py | DonghaoQiao/Machine-Learning | 42652254b6411f8d13b906b7d39e99b2cfd58197 | [
"MIT"
] | null | null | null | Machine Learning/Perceptron&Adaline.py | DonghaoQiao/Machine-Learning | 42652254b6411f8d13b906b7d39e99b2cfd58197 | [
"MIT"
] | null | null | null | class Perceptron(object):
def __init__(self, lr=0.1, epoch=10):
self.lr = lr
self.epoch = epoch
def fit(self, x, y):
self.n_classes = len(np.unique(test_y))
self.w = np.zeros((x.shape[1]+1,self.n_classes))
for _ in range(self.epoch):
for xi, yi in zip(x,y):
... | 29.76087 | 56 | 0.487217 | 216 | 1,369 | 3.00463 | 0.199074 | 0.09245 | 0.046225 | 0.104777 | 0.85208 | 0.755008 | 0.755008 | 0.716487 | 0.716487 | 0.716487 | 0 | 0.026816 | 0.346238 | 1,369 | 45 | 57 | 30.422222 | 0.698324 | 0 | 0 | 0.820513 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.179487 | false | 0 | 0 | 0.025641 | 0.358974 | 0.025641 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
e37e2d7e18e247aa99d357b7ce82ee68ad04bfc4 | 25,331 | py | Python | test_gitstatus.py | alerighi/zsh-git-promp | 5e60d1291e75d1a9ffa77d8b052c410f097dc339 | [
"MIT"
] | 1 | 2020-12-25T16:11:07.000Z | 2020-12-25T16:11:07.000Z | test_gitstatus.py | alerighi/zsh-git-prompt | 5e60d1291e75d1a9ffa77d8b052c410f097dc339 | [
"MIT"
] | null | null | null | test_gitstatus.py | alerighi/zsh-git-prompt | 5e60d1291e75d1a9ffa77d8b052c410f097dc339 | [
"MIT"
] | null | null | null | """
Test module for gitstatus
Fixtures used to to setup git repo scenarios on the fly.
Tests are short and at the end of this file.
"""
import os
import re
import sys
import shlex
import shutil
import subprocess
import tempfile
import pytest
GIT_STATUS = os.path.join(os.path.dirname(__file__), 'gitstatus')
def run... | 29.801176 | 85 | 0.528522 | 3,066 | 25,331 | 4.299413 | 0.079256 | 0.009255 | 0.009331 | 0.03611 | 0.833561 | 0.807237 | 0.802685 | 0.793127 | 0.772113 | 0.754286 | 0 | 0.009915 | 0.350993 | 25,331 | 849 | 86 | 29.836278 | 0.79191 | 0.116063 | 0 | 0.832288 | 0 | 0 | 0.228719 | 0.006162 | 0 | 0 | 0 | 0 | 0.040752 | 1 | 0.043887 | false | 0.03605 | 0.012539 | 0 | 0.057994 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
8b64c0d93d3f07803cfac968721ac889b66321c3 | 705 | py | Python | tests/context.py | fernandolobato/IndieCoin | 4067a0e37b359f879d796c7d7f65e6f0350d2015 | [
"MIT"
] | 5 | 2017-11-20T08:46:38.000Z | 2021-12-28T20:49:16.000Z | tests/context.py | fernandolobato/IndieCoin | 4067a0e37b359f879d796c7d7f65e6f0350d2015 | [
"MIT"
] | null | null | null | tests/context.py | fernandolobato/IndieCoin | 4067a0e37b359f879d796c7d7f65e6f0350d2015 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import sys
import os
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
import indiecoin
from indiecoin import *
GENESIS_BLOCK_HASH = '1465242b9a4e246136f1d76344d625efff9acb6b33525eed1c1373b9225a21c2'
PUBLIC_KEY_GENESIS = '005ec5005a6e1dc0fad36333b839f53511900... | 54.230769 | 287 | 0.899291 | 38 | 705 | 16.421053 | 0.631579 | 0.028846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.448889 | 0.042553 | 705 | 13 | 288 | 54.230769 | 0.475556 | 0.029787 | 0 | 0 | 0 | 0 | 0.676428 | 0.673499 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 7 |
475b0ee917c571bb06e63fc1dfcfc9c0a7777982 | 36 | py | Python | resources/neurons/web_scraper/kalliope_new_module_temp_name/__init__.py | lya-corp/lya | 04b32f3191072ed21f20b93397015dbfcf9e7bb3 | [
"MIT"
] | 3 | 2020-06-19T20:08:54.000Z | 2021-06-30T11:25:41.000Z | resources/neurons/web_scraper/kalliope_new_module_temp_name/__init__.py | flolep2607/Lya | 669072b6b80ef493591b28ecc29bebd587913af0 | [
"MIT"
] | null | null | null | resources/neurons/web_scraper/kalliope_new_module_temp_name/__init__.py | flolep2607/Lya | 669072b6b80ef493591b28ecc29bebd587913af0 | [
"MIT"
] | 1 | 2018-04-04T16:10:22.000Z | 2018-04-04T16:10:22.000Z | from web_scraper import Web_scraper
| 18 | 35 | 0.888889 | 6 | 36 | 5 | 0.666667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 36 | 1 | 36 | 36 | 0.9375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
47dcc5d521fcac7365bf8efd8ef948ccd0bf2167 | 336 | py | Python | api/factories/repos.py | khashimakhun/projectNew | f00d140c6227606fb01ce496fd2f0f45a1b17499 | [
"MIT"
] | 5 | 2019-04-04T17:55:41.000Z | 2021-06-27T21:54:52.000Z | api/factories/repos.py | khashimakhun/projectNew | f00d140c6227606fb01ce496fd2f0f45a1b17499 | [
"MIT"
] | 3 | 2020-06-06T01:53:44.000Z | 2021-06-10T22:55:09.000Z | api/factories/repos.py | khashimakhun/projectNew | f00d140c6227606fb01ce496fd2f0f45a1b17499 | [
"MIT"
] | null | null | null | from api.repos import UserRepo, MessageRepo, ConsumptionRepo
class UserRepoFactory:
@staticmethod
def create():
return UserRepo
class MessageRepoFactory:
@staticmethod
def create():
return MessageRepo
class ConsumptionRepoFactory:
@staticmethod
def create():
return ... | 16.8 | 60 | 0.705357 | 28 | 336 | 8.464286 | 0.535714 | 0.189873 | 0.265823 | 0.341772 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.241071 | 336 | 19 | 61 | 17.684211 | 0.929412 | 0 | 0 | 0.461538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | true | 0 | 0.076923 | 0.230769 | 0.769231 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 7 |
47ed5843f32bc03d62bc0bf608fe8a7290669cc2 | 36,464 | py | Python | DARKhash/darkhash_Open.py | Alpha-Demon404/RE-14 | b5b46a9f0eee218f2a642b615c77135c33c6f4ad | [
"MIT"
] | 39 | 2020-02-26T09:44:36.000Z | 2022-03-23T00:18:25.000Z | DARKhash/darkhash_Open.py | B4BY-DG/reverse-enginnering | b5b46a9f0eee218f2a642b615c77135c33c6f4ad | [
"MIT"
] | 15 | 2020-05-14T10:07:26.000Z | 2022-01-06T02:55:32.000Z | DARKhash/darkhash_Open.py | B4BY-DG/reverse-enginnering | b5b46a9f0eee218f2a642b615c77135c33c6f4ad | [
"MIT"
] | 41 | 2020-03-16T22:36:38.000Z | 2022-03-17T14:47:19.000Z | # Python bytecode 2.7
import requests, os, random, sys, time, subprocess as sp
from bs4 import BeautifulSoup as bs
G0 = '\x1b[0;32m'
G1 = '\x1b[1;32m'
C0 = '\x1b[0;36m'
C1 = '\x1b[1;36m'
P0 = '\x1b[0;35m'
P1 = '\x1b[1;35m'
W0 = '\x1b[0;37m'
W1 = '\x1b[1;37m'
B0 = '\x1b[0;34m'
B1 = '\x1b[1;34m'
R0 = '\x1b[0;31m'
R1 = '\... | 37.708376 | 1,373 | 0.481406 | 5,739 | 36,464 | 3.028751 | 0.062206 | 0.085146 | 0.073697 | 0.104706 | 0.864227 | 0.859337 | 0.85485 | 0.85485 | 0.85485 | 0.85485 | 0 | 0.128235 | 0.295332 | 36,464 | 966 | 1,374 | 37.747412 | 0.548239 | 0.001645 | 0 | 0.838384 | 0 | 0.131313 | 0.375247 | 0.126538 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.002245 | null | null | 0.185185 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
d020aeb3f0ef79d3a3d1b1f51323e63796c16a63 | 132 | py | Python | clapbot/core.py | alexrudy/ClapBot | fc6149cbd20b8afd6ffd3d5c7a4836100a509215 | [
"MIT"
] | 2 | 2017-05-04T18:33:51.000Z | 2017-05-04T18:34:17.000Z | clapbot/core.py | alexrudy/ClapBot | fc6149cbd20b8afd6ffd3d5c7a4836100a509215 | [
"MIT"
] | 2 | 2020-05-26T23:50:43.000Z | 2021-03-26T21:39:30.000Z | clapbot/core.py | alexrudy/ClapBot | fc6149cbd20b8afd6ffd3d5c7a4836100a509215 | [
"MIT"
] | null | null | null | from .application import db, migrate, bcrypt, mail, celery, login
__all__ = ['db', 'migrate', 'bcrypt', 'mail', 'celery', 'login']
| 33 | 65 | 0.666667 | 16 | 132 | 5.25 | 0.625 | 0.214286 | 0.357143 | 0.452381 | 0.714286 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136364 | 132 | 3 | 66 | 44 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0.227273 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 7 |
d05f3f73cdfd6e0d000a9e7bb175d6ce9cf8a83a | 23,808 | py | Python | world_viewer/synthetic_world.py | pik-copan/pydrf | 998072d655331ca6669c71bb6df665292e8972e7 | [
"BSD-3-Clause"
] | 1 | 2021-10-01T09:01:30.000Z | 2021-10-01T09:01:30.000Z | world_viewer/synthetic_world.py | pik-copan/pydrf | 998072d655331ca6669c71bb6df665292e8972e7 | [
"BSD-3-Clause"
] | null | null | null | world_viewer/synthetic_world.py | pik-copan/pydrf | 998072d655331ca6669c71bb6df665292e8972e7 | [
"BSD-3-Clause"
] | 1 | 2021-10-01T09:02:54.000Z | 2021-10-01T09:02:54.000Z | from world_viewer.world import World
import pandas as pd
import numpy as np
import warnings
import os
from math import floor
from itertools import product
class SyntheticWorld(World):
TIME_POINTS = 20 #number of timesteps in the data
TIME_STEP = 1
NUMBER_NODES = 200 #number of nodes/people in the world
... | 46.95858 | 168 | 0.569766 | 2,999 | 23,808 | 4.278093 | 0.078359 | 0.047389 | 0.048636 | 0.035853 | 0.819018 | 0.80304 | 0.796415 | 0.778488 | 0.773578 | 0.770616 | 0 | 0.006356 | 0.306074 | 23,808 | 506 | 169 | 47.051383 | 0.770232 | 0.056452 | 0 | 0.727554 | 0 | 0 | 0.125453 | 0.01042 | 0.003096 | 0 | 0 | 0 | 0 | 1 | 0.021672 | false | 0 | 0.021672 | 0 | 0.071207 | 0.065015 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
d06f8848629491070305e9b823a43d6c0dfbe7a3 | 10,042 | py | Python | Calculator final.py | santisa017/Hello-World- | f8ab10fd443354fe5274be8f88e494fe4e40a275 | [
"Apache-2.0"
] | null | null | null | Calculator final.py | santisa017/Hello-World- | f8ab10fd443354fe5274be8f88e494fe4e40a275 | [
"Apache-2.0"
] | null | null | null | Calculator final.py | santisa017/Hello-World- | f8ab10fd443354fe5274be8f88e494fe4e40a275 | [
"Apache-2.0"
] | null | null | null | Python 2.7.6 (default, Jun 22 2015, 17:58:13)
[GCC 4.8.2] on linux2
Type "copyright", "credits" or "license()" for more information.
>>> ================================ RESTART ================================
>>>
anything
>>> ================================ RESTART ================================
>>>
anything
he... | 21.008368 | 77 | 0.462159 | 970 | 10,042 | 4.789691 | 0.137113 | 0.093629 | 0.077701 | 0.077486 | 0.786268 | 0.76991 | 0.74731 | 0.735687 | 0.664227 | 0.615799 | 0 | 0.035876 | 0.120096 | 10,042 | 477 | 78 | 21.052411 | 0.489135 | 0 | 0 | 0.782051 | 0 | 0 | 0.037343 | 0.027982 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.00641 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
d0e35581ab3dd6abc8d9c99c37eec57bd654a6e3 | 1,291 | py | Python | tests/test_parameter_scan.py | sq-meng/coilcalc | 096bec7d4f2bda7c4071a13abe70179a94b17f37 | [
"MIT"
] | 2 | 2021-03-16T07:57:56.000Z | 2021-11-17T13:38:17.000Z | tests/test_parameter_scan.py | sq-meng/coilcalc | 096bec7d4f2bda7c4071a13abe70179a94b17f37 | [
"MIT"
] | 2 | 2021-04-09T01:28:10.000Z | 2021-11-22T03:24:23.000Z | tests/test_parameter_scan.py | sq-meng/coilcalc | 096bec7d4f2bda7c4071a13abe70179a94b17f37 | [
"MIT"
] | 1 | 2021-09-08T15:27:44.000Z | 2021-09-08T15:27:44.000Z | import magcoilcalc
import magcoilcalc.calculations
import magcoilcalc.templates
def test_1d_scan():
def fun(x):
magnets = magcoilcalc.templates.helmholtz_coil(r=x)
mesh = magcoilcalc.Mesh([-100, 100], [-50, 50], 51, 31)
task = magcoilcalc.Task(magnets, mesh)
task.run()
retu... | 37.970588 | 97 | 0.65763 | 174 | 1,291 | 4.764368 | 0.247126 | 0.19421 | 0.036188 | 0.039807 | 0.846803 | 0.817853 | 0.817853 | 0.767189 | 0.767189 | 0.767189 | 0 | 0.093204 | 0.202169 | 1,291 | 33 | 98 | 39.121212 | 0.71165 | 0 | 0 | 0.444444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 7 |
ef95f5cb0ff107d18995501f0ab84869e317a7b9 | 125 | py | Python | pypospack/pyposmat/manifold/__init__.py | eragasa/pypospack | 21cdecaf3b05c87acc532d992be2c04d85bfbc22 | [
"MIT"
] | 4 | 2018-01-18T19:59:56.000Z | 2020-08-25T11:56:52.000Z | pypospack/pyposmat/manifold/__init__.py | eragasa/pypospack | 21cdecaf3b05c87acc532d992be2c04d85bfbc22 | [
"MIT"
] | 1 | 2018-04-22T23:02:13.000Z | 2018-04-22T23:02:13.000Z | pypospack/pyposmat/manifold/__init__.py | eragasa/pypospack | 21cdecaf3b05c87acc532d992be2c04d85bfbc22 | [
"MIT"
] | 1 | 2019-09-14T07:04:42.000Z | 2019-09-14T07:04:42.000Z | from pypospack.pyposmat.manifold.manifold import Manifold
from pypospack.pyposmat.manifold.manifold_tsne import TsneManifold
| 41.666667 | 66 | 0.888 | 15 | 125 | 7.333333 | 0.466667 | 0.236364 | 0.381818 | 0.527273 | 0.672727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064 | 125 | 2 | 67 | 62.5 | 0.940171 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
32649a1c6f81798ba8e478be9f64732c9543068c | 408 | py | Python | src/modules/calc.py | percysoft/python-calc | ffa2bf38ac055fab9abc9e88db1e5db63229f7cb | [
"MIT"
] | null | null | null | src/modules/calc.py | percysoft/python-calc | ffa2bf38ac055fab9abc9e88db1e5db63229f7cb | [
"MIT"
] | null | null | null | src/modules/calc.py | percysoft/python-calc | ffa2bf38ac055fab9abc9e88db1e5db63229f7cb | [
"MIT"
] | 20 | 2019-07-06T19:48:35.000Z | 2019-12-08T00:39:15.000Z | class Calc:
def add(self, number1, number2):
return float(number1) + float(number2)
def sub(self, number1, number2):
return float(number1) - float(number2)
def mul(self, number1, number2):
return float(number1) * float(number2)
def div(self, number1, number2):
return float(number1) / float(n... | 22.666667 | 42 | 0.683824 | 52 | 408 | 5.365385 | 0.25 | 0.197133 | 0.322581 | 0.430108 | 0.903226 | 0.903226 | 0.903226 | 0.903226 | 0.731183 | 0 | 0 | 0.060606 | 0.191176 | 408 | 17 | 43 | 24 | 0.784848 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.454545 | false | 0 | 0 | 0.454545 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 10 |
3264e204f8ca9d95c653b01c1258a093d28dfe45 | 6,528 | py | Python | search_geography.py | sswaner/COVID-19-Analysis | 2f9087081e0e5bc499a1f2e0caeb7eb77b82a702 | [
"MIT"
] | null | null | null | search_geography.py | sswaner/COVID-19-Analysis | 2f9087081e0e5bc499a1f2e0caeb7eb77b82a702 | [
"MIT"
] | null | null | null | search_geography.py | sswaner/COVID-19-Analysis | 2f9087081e0e5bc499a1f2e0caeb7eb77b82a702 | [
"MIT"
] | null | null | null | from pprint import pprint
from tabulate import tabulate
import population
def search_state(data, s):
r = {}
p_data = population.search(s, False)
if p_data == None:
print("No match for that geography.")
return
else:
pprint(p_data)
header = ['Date', 'Cases', 'Deaths']
... | 42.38961 | 146 | 0.52068 | 888 | 6,528 | 3.619369 | 0.097973 | 0.071562 | 0.08463 | 0.067206 | 0.911637 | 0.895457 | 0.883634 | 0.864344 | 0.848787 | 0.848787 | 0 | 0.051518 | 0.283395 | 6,528 | 154 | 147 | 42.38961 | 0.635528 | 0 | 0 | 0.756098 | 0 | 0 | 0.178077 | 0.056894 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.02439 | null | null | 0.056911 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
326858b7d4d4a7a84f24eeb0c8d9135829c3dff6 | 36,671 | py | Python | tests/ut/test_config.py | tubone24/ssh_config_json | 12c75a0b70835d6b27d89e9d640c2a05a8fe67a9 | [
"MIT"
] | 2 | 2021-02-26T16:29:02.000Z | 2021-11-11T08:19:13.000Z | tests/ut/test_config.py | tubone24/ssh_config_json | 12c75a0b70835d6b27d89e9d640c2a05a8fe67a9 | [
"MIT"
] | 47 | 2020-11-11T15:09:28.000Z | 2022-03-29T08:19:44.000Z | tests/ut/test_config.py | tubone24/ssh_config_json | 12c75a0b70835d6b27d89e9d640c2a05a8fe67a9 | [
"MIT"
] | 1 | 2021-11-11T08:18:59.000Z | 2021-11-11T08:18:59.000Z | from os.path import expanduser, join
import logging
from unittest.mock import call
from unittest.mock import patch
from unittest.mock import MagicMock
import pytest
from ssh_config_json.config import SSHConfig, InvalidConfigParseError
_logger = logging.getLogger(name=__name__)
class TestSSHConfig:
def setup_met... | 58.956592 | 126 | 0.584604 | 1,521 | 36,671 | 13.978304 | 0.111769 | 0.017074 | 0.035276 | 0.057946 | 0.946663 | 0.941207 | 0.938009 | 0.929542 | 0.919101 | 0.916749 | 0 | 0.078976 | 0.349131 | 36,671 | 621 | 127 | 59.05153 | 0.811798 | 0 | 0 | 0.781667 | 0 | 0 | 0.545717 | 0.395762 | 0 | 0 | 0 | 0 | 0.031667 | 1 | 0.03 | false | 0 | 0.011667 | 0 | 0.043333 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
3273865a8630a2bff886758d807e6a15c8f47087 | 4,804 | py | Python | pandastest/hello4.py | hassan2050/pyshot | 172843816152bd0be482298aaf66bb008bdcd693 | [
"BSD-2-Clause"
] | null | null | null | pandastest/hello4.py | hassan2050/pyshot | 172843816152bd0be482298aaf66bb008bdcd693 | [
"BSD-2-Clause"
] | null | null | null | pandastest/hello4.py | hassan2050/pyshot | 172843816152bd0be482298aaf66bb008bdcd693 | [
"BSD-2-Clause"
] | null | null | null | import os, sys
import ShowMultiBase
from panda3d.core import *
from direct.task import Task
from direct.actor.Actor import Actor
from math import pi, sin, cos
class MyAppP(ShowMultiBase.ShowMultiBase):
def __init__(self):
wp = WindowProperties()
#wp.setFullscreen(1)
#wp.setSize(1920, 1080)... | 32.459459 | 78 | 0.629267 | 561 | 4,804 | 5.331551 | 0.196078 | 0.042795 | 0.02006 | 0.044132 | 0.933133 | 0.933133 | 0.933133 | 0.919091 | 0.919091 | 0.919091 | 0 | 0.049331 | 0.253122 | 4,804 | 147 | 79 | 32.680272 | 0.784281 | 0.141132 | 0 | 0.8125 | 0 | 0 | 0.064099 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.0625 | 0 | 0.1875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
32b636cfb8120782c0766ac3426da1fb3a13a053 | 2,251 | py | Python | unionFind.py | edwarderelt/algorithms | 79cb7796a1eff99325730813ecbee5d5a23f0093 | [
"MIT"
] | 1 | 2021-08-29T16:16:04.000Z | 2021-08-29T16:16:04.000Z | unionFind.py | edwarderelt/algorithms | 79cb7796a1eff99325730813ecbee5d5a23f0093 | [
"MIT"
] | null | null | null | unionFind.py | edwarderelt/algorithms | 79cb7796a1eff99325730813ecbee5d5a23f0093 | [
"MIT"
] | null | null | null | class quickFind:
_id = []
_count = 0
def __init__(self, N):
self._id = list(range(0,N))
self._count = N
#Quick-find
def find(self, p):
return self._id[p]
def union(self,p, q):
self._pID = self.find(p)
self._qID = self.find(q)
if (self._pID == sel... | 22.51 | 58 | 0.503332 | 301 | 2,251 | 3.501661 | 0.112957 | 0.079696 | 0.111006 | 0.074004 | 0.814042 | 0.767552 | 0.767552 | 0.703985 | 0.703985 | 0.643264 | 0 | 0.006949 | 0.360729 | 2,251 | 100 | 59 | 22.51 | 0.725504 | 0.014216 | 0 | 0.746479 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.211268 | false | 0 | 0 | 0.098592 | 0.521127 | 0.014085 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 9 |
08f21e6629036b6e18476287a7ce1c65b72b6e5c | 2,863 | py | Python | filter.py | 11petr11/ScansSeparate | 97ee359c8e3d366b0df2b48acb38c3dba58eb550 | [
"MIT"
] | null | null | null | filter.py | 11petr11/ScansSeparate | 97ee359c8e3d366b0df2b48acb38c3dba58eb550 | [
"MIT"
] | null | null | null | filter.py | 11petr11/ScansSeparate | 97ee359c8e3d366b0df2b48acb38c3dba58eb550 | [
"MIT"
] | null | null | null | import asyncio, evdev
import asyncio
import time
lastN = 0
activeID = ""
def scanFilter(id,s):
n = time.time()
global lastN
global activeID
d = n - lastN
b = d > 0.2
if b:
activeID = id
if activeID == id:
print(id," : ",s, "diff: ", b)
lastN = n
@asyncio.coroutine
def print_events(device,... | 21.689394 | 71 | 0.642683 | 348 | 2,863 | 5.212644 | 0.183908 | 0.036384 | 0.037486 | 0.055127 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0.003717 | 0.248341 | 2,863 | 131 | 72 | 21.854962 | 0.839219 | 0.129934 | 0 | 1 | 0 | 0 | 0.033898 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040816 | false | 0.020408 | 0.061224 | 0 | 0.102041 | 0.122449 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
3edb76f7178402642ecccb1ff3257667beaeea17 | 13,375 | py | Python | v6.0.5/system/test_fortios_system_automation_action.py | fortinet-solutions-cse/ansible_fgt_modules | c45fba49258d7c9705e7a8fd9c2a09ea4c8a4719 | [
"Apache-2.0"
] | 14 | 2018-09-25T20:35:25.000Z | 2021-07-14T04:30:54.000Z | v6.0.6/system/test_fortios_system_automation_action.py | fortinet-solutions-cse/ansible_fgt_modules | c45fba49258d7c9705e7a8fd9c2a09ea4c8a4719 | [
"Apache-2.0"
] | 32 | 2018-10-09T04:13:42.000Z | 2020-05-11T07:20:28.000Z | v6.0.5/system/test_fortios_system_automation_action.py | fortinet-solutions-cse/ansible_fgt_modules | c45fba49258d7c9705e7a8fd9c2a09ea4c8a4719 | [
"Apache-2.0"
] | 11 | 2018-10-09T00:14:53.000Z | 2021-11-03T10:54:09.000Z | # Copyright 2019 Fortinet, Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the... | 37.152778 | 142 | 0.611514 | 1,548 | 13,375 | 4.930233 | 0.124031 | 0.106132 | 0.074948 | 0.042584 | 0.86347 | 0.856263 | 0.837919 | 0.837919 | 0.837919 | 0.837919 | 0 | 0.024154 | 0.250916 | 13,375 | 359 | 143 | 37.256267 | 0.737599 | 0.049645 | 0 | 0.872054 | 0 | 0 | 0.381016 | 0.08074 | 0 | 0 | 0 | 0 | 0.121212 | 1 | 0.023569 | false | 0 | 0.026936 | 0 | 0.053872 | 0.003367 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
3edc183147cfdd911f7d3f519bc0deebc2c17784 | 4,819 | py | Python | modules_python_du_projet/affichage_des_commandes_vocales.py | Vicken-Ghoubiguian/smart_connected_alarm_clock | 32e683a15b4bc1afcc8263de54c0145289364b55 | [
"MIT"
] | null | null | null | modules_python_du_projet/affichage_des_commandes_vocales.py | Vicken-Ghoubiguian/smart_connected_alarm_clock | 32e683a15b4bc1afcc8263de54c0145289364b55 | [
"MIT"
] | null | null | null | modules_python_du_projet/affichage_des_commandes_vocales.py | Vicken-Ghoubiguian/smart_connected_alarm_clock | 32e683a15b4bc1afcc8263de54c0145289364b55 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*
#
try:
#
from Tkinter import *
#
except ImportError:
#
from tkinter import *
#
class Affichage_des_commandes_vocales(Frame):
#
def __init__(self, fenetre, width_fenetre_de_conf, height_fenetre_de_conf, language):
#Appel au constructeur de l... | 36.78626 | 167 | 0.74061 | 607 | 4,819 | 5.271829 | 0.110379 | 0.19 | 0.219688 | 0.25875 | 0.830625 | 0.815625 | 0.815625 | 0.815625 | 0.814375 | 0.7775 | 0 | 0.000256 | 0.188213 | 4,819 | 130 | 168 | 37.069231 | 0.81774 | 0.012866 | 0 | 0.046512 | 0 | 0 | 0.044143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.069767 | null | null | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 9 |
de3c1aaf63f8da473ff726390ea72da16d4ecb5d | 97 | py | Python | dwalk/test_version.py | cariad/dwalk | 5b88fe0993c0bfc7036058963e7510ce8535a4b3 | [
"MIT"
] | null | null | null | dwalk/test_version.py | cariad/dwalk | 5b88fe0993c0bfc7036058963e7510ce8535a4b3 | [
"MIT"
] | null | null | null | dwalk/test_version.py | cariad/dwalk | 5b88fe0993c0bfc7036058963e7510ce8535a4b3 | [
"MIT"
] | null | null | null | from dwalk.version import get_version
def test_get_version() -> None:
assert get_version()
| 16.166667 | 37 | 0.752577 | 14 | 97 | 4.928571 | 0.642857 | 0.434783 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164948 | 97 | 5 | 38 | 19.4 | 0.851852 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.333333 | true | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
de55dcbc963d054d7bc104db9452bcc3259f4e5c | 269,225 | py | Python | google/iam/admin/v1/iam-admin-v1-py/tests/unit/gapic/admin_v1/test_iam.py | googleapis/googleapis-gen | d84824c78563d59b0e58d5664bfaa430e9ad7e7a | [
"Apache-2.0"
] | 7 | 2021-02-21T10:39:41.000Z | 2021-12-07T07:31:28.000Z | google/iam/admin/v1/iam-admin-v1-py/tests/unit/gapic/admin_v1/test_iam.py | googleapis/googleapis-gen | d84824c78563d59b0e58d5664bfaa430e9ad7e7a | [
"Apache-2.0"
] | 6 | 2021-02-02T23:46:11.000Z | 2021-11-15T01:46:02.000Z | google/iam/admin/v1/iam-admin-v1-py/tests/unit/gapic/admin_v1/test_iam.py | googleapis/googleapis-gen | d84824c78563d59b0e58d5664bfaa430e9ad7e7a | [
"Apache-2.0"
] | 4 | 2021-01-28T23:25:45.000Z | 2021-08-30T01:55:16.000Z | # -*- coding: utf-8 -*-
# Copyright 2020 Google 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... | 36.624269 | 207 | 0.668797 | 31,635 | 269,225 | 5.460503 | 0.016343 | 0.030473 | 0.025963 | 0.058075 | 0.95425 | 0.933595 | 0.917293 | 0.899759 | 0.882282 | 0.866964 | 0 | 0.005 | 0.249026 | 269,225 | 7,350 | 208 | 36.629252 | 0.849397 | 0.214675 | 0 | 0.754309 | 0 | 0 | 0.075498 | 0.025608 | 0 | 0 | 0 | 0.000136 | 0.153953 | 1 | 0.039826 | false | 0.000198 | 0.005944 | 0.000396 | 0.046166 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.