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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
629eca0014456d92835c30610fad0e042f72e16a | 251 | py | Python | src/bxcommon/rpc/https/request_formatter.py | dolphinridercrypto/bxcommon | 8f70557c1dbff785a5dd3fcdf91176066e085c3a | [
"MIT"
] | 12 | 2019-11-06T17:39:10.000Z | 2022-03-01T11:26:19.000Z | src/bxcommon/rpc/https/request_formatter.py | dolphinridercrypto/bxcommon | 8f70557c1dbff785a5dd3fcdf91176066e085c3a | [
"MIT"
] | 8 | 2019-11-06T21:31:11.000Z | 2021-06-02T00:46:50.000Z | src/bxcommon/rpc/https/request_formatter.py | dolphinridercrypto/bxcommon | 8f70557c1dbff785a5dd3fcdf91176066e085c3a | [
"MIT"
] | 5 | 2019-11-14T18:08:11.000Z | 2022-02-08T09:36:22.000Z | from aiohttp.web import Request
class RequestFormatter:
_request: Request
def __init__(self, request: Request) -> None:
self._request = request
def __repr__(self) -> str:
return f"HTTPRequest <{self._request.headers}>"
| 20.916667 | 55 | 0.677291 | 28 | 251 | 5.678571 | 0.607143 | 0.264151 | 0.213836 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.223108 | 251 | 11 | 56 | 22.818182 | 0.815385 | 0 | 0 | 0 | 0 | 0 | 0.14741 | 0.099602 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0.142857 | 0.857143 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
62eaa1958b7d595efe4edcd23dacb5baf17ace05 | 35 | py | Python | test.py | BarMa666/MathExercisesCollector | e4f750f96446416427e8e2e97ece34a34b4165f4 | [
"MIT"
] | null | null | null | test.py | BarMa666/MathExercisesCollector | e4f750f96446416427e8e2e97ece34a34b4165f4 | [
"MIT"
] | null | null | null | test.py | BarMa666/MathExercisesCollector | e4f750f96446416427e8e2e97ece34a34b4165f4 | [
"MIT"
] | null | null | null | import gui.test
import loader.test
| 11.666667 | 18 | 0.828571 | 6 | 35 | 4.833333 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114286 | 35 | 2 | 19 | 17.5 | 0.935484 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
62ef651f424e32c43688d9cc8009323b12aacce5 | 70 | py | Python | FiniteElements/__init__.py | szhang-cis/Kuru_Mac | 90caaa37f7917e25afd25de24c06216e202e2e96 | [
"MIT"
] | null | null | null | FiniteElements/__init__.py | szhang-cis/Kuru_Mac | 90caaa37f7917e25afd25de24c06216e202e2e96 | [
"MIT"
] | null | null | null | FiniteElements/__init__.py | szhang-cis/Kuru_Mac | 90caaa37f7917e25afd25de24c06216e202e2e96 | [
"MIT"
] | 1 | 2021-04-22T10:43:44.000Z | 2021-04-22T10:43:44.000Z | from .Assembly import AssembleRobinForces #AssembleMass, AssembleForm
| 35 | 69 | 0.871429 | 6 | 70 | 10.166667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085714 | 70 | 1 | 70 | 70 | 0.953125 | 0.371429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
62f9ac1046938e998d1e6252315f4d50d685eec7 | 175 | py | Python | source_code/pypeflow/utils/__init__.py | TomLXXVI/pypeflow | 49e42621180ec3125afa238d3ca56ae9f3a7662a | [
"MIT"
] | 4 | 2020-05-26T01:11:08.000Z | 2021-09-15T20:24:31.000Z | source_code/pypeflow/utils/__init__.py | robertspark/pypeflow | 49e42621180ec3125afa238d3ca56ae9f3a7662a | [
"MIT"
] | null | null | null | source_code/pypeflow/utils/__init__.py | robertspark/pypeflow | 49e42621180ec3125afa238d3ca56ae9f3a7662a | [
"MIT"
] | 1 | 2022-01-19T20:26:11.000Z | 2022-01-19T20:26:11.000Z | """
# Utilities that aid in the design and analysis of piping networks
"""
from pypeflow.utils.system_curve import SystemCurve
from pypeflow.utils.pump_curve import PumpCurve
| 29.166667 | 66 | 0.811429 | 25 | 175 | 5.6 | 0.8 | 0.171429 | 0.242857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125714 | 175 | 5 | 67 | 35 | 0.915033 | 0.377143 | 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 | 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 | 6 |
a7f6504da4014d9588f410ffc235aa304405f301 | 10,500 | py | Python | test/Analysis/t_blocking.py | Marcel-Rodekamp/qcdanalysistools | 945c8201337ba0d52bc37267198d367bbe3e75e3 | [
"MIT"
] | null | null | null | test/Analysis/t_blocking.py | Marcel-Rodekamp/qcdanalysistools | 945c8201337ba0d52bc37267198d367bbe3e75e3 | [
"MIT"
] | null | null | null | test/Analysis/t_blocking.py | Marcel-Rodekamp/qcdanalysistools | 945c8201337ba0d52bc37267198d367bbe3e75e3 | [
"MIT"
] | null | null | null | import unittest
import itertools as it
import qcdanalysistools as tools
import numpy as np
# distribution details:
# - uniform [a,b)
# * https://en.wikipedia.org/wiki/Continuous_uniform_distribution
# * mean 0.5 (a+b)
# * var = 1/12 (b-a)^2
# - beta(a,b)
# * https://en.wikipedia.org/wiki/Beta_distribution
# ... | 47.945205 | 147 | 0.540571 | 1,333 | 10,500 | 4.155289 | 0.132783 | 0.077451 | 0.041704 | 0.045496 | 0.800686 | 0.779383 | 0.757357 | 0.738581 | 0.72486 | 0.701751 | 0 | 0.025604 | 0.337905 | 10,500 | 218 | 148 | 48.165138 | 0.771145 | 0.329905 | 0 | 0.542857 | 0 | 0 | 0.030596 | 0 | 0 | 0 | 0 | 0 | 0.171429 | 1 | 0.057143 | false | 0 | 0.038095 | 0.019048 | 0.12381 | 0.028571 | 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 | 0 | 0 | 0 | 6 |
c5043838dfda18fe5a33aa6a3432d7dd226fce59 | 48 | py | Python | package1/__init__.py | earslan74/pynet_class | 0ed789ae82f221a249e7a1136a4f3f345f2a584a | [
"Apache-2.0"
] | null | null | null | package1/__init__.py | earslan74/pynet_class | 0ed789ae82f221a249e7a1136a4f3f345f2a584a | [
"Apache-2.0"
] | null | null | null | package1/__init__.py | earslan74/pynet_class | 0ed789ae82f221a249e7a1136a4f3f345f2a584a | [
"Apache-2.0"
] | null | null | null | from . import test_hello
from . import sum_test
| 16 | 24 | 0.791667 | 8 | 48 | 4.5 | 0.625 | 0.555556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 48 | 2 | 25 | 24 | 0.9 | 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 | 0 | 0 | 0 | 6 |
3d648508625d78ceb85b17abd0f84bde6fe66b78 | 177 | py | Python | contas/admin.py | acaciojunio28/CRUD-django | 62b34a544ec5a14c53172e9240a1f0b448ed7b69 | [
"Apache-2.0"
] | null | null | null | contas/admin.py | acaciojunio28/CRUD-django | 62b34a544ec5a14c53172e9240a1f0b448ed7b69 | [
"Apache-2.0"
] | null | null | null | contas/admin.py | acaciojunio28/CRUD-django | 62b34a544ec5a14c53172e9240a1f0b448ed7b69 | [
"Apache-2.0"
] | null | null | null | from django.contrib import admin
from.models import categoria
from.models import listar
admin.site.register(categoria)
admin.site.register(listar)
# Register your models here.
| 22.125 | 32 | 0.824859 | 25 | 177 | 5.84 | 0.48 | 0.136986 | 0.219178 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.101695 | 177 | 7 | 33 | 25.285714 | 0.918239 | 0.146893 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.6 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 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 | 6 |
3d64ca2d38ead7c3a2998858392d8ff414075b57 | 5,761 | py | Python | src/models/custom_model.py | ishikei14k/atma11_1st_solution | 91d29eb83f3e5470f82470f0434ad0fc75a90c61 | [
"MIT"
] | 17 | 2021-07-28T02:52:03.000Z | 2022-03-21T04:03:42.000Z | src/models/custom_model.py | ishikei14k/atma11_1st_solution | 91d29eb83f3e5470f82470f0434ad0fc75a90c61 | [
"MIT"
] | null | null | null | src/models/custom_model.py | ishikei14k/atma11_1st_solution | 91d29eb83f3e5470f82470f0434ad0fc75a90c61 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
import torch
import torch.nn as nn
import torch.nn.functional as F
# model.
import timm
# custom modules.
from . import vision_transformer as vits
from .utils import load_pretrained_weights, load_pretrained_weights_resnet
class AtmaCustomModel(nn.Module):
def __init__(self... | 34.291667 | 96 | 0.649887 | 704 | 5,761 | 5.096591 | 0.110795 | 0.130435 | 0.115942 | 0.080546 | 0.823021 | 0.814103 | 0.813824 | 0.77369 | 0.77369 | 0.704013 | 0 | 0.012004 | 0.248047 | 5,761 | 168 | 97 | 34.291667 | 0.816251 | 0.015796 | 0 | 0.683761 | 0 | 0 | 0.022065 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.119658 | false | 0 | 0.051282 | 0 | 0.290598 | 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 | 0 | 0 | 0 | 6 |
3d9c32783e2c1900f975ba0a538daaf173531e52 | 23 | py | Python | Measure/marching_cubes.py | Joevaen/Scikit-image_On_CT | e3bf0eeadc50691041b4b7c44a19d07546a85001 | [
"Apache-2.0"
] | null | null | null | Measure/marching_cubes.py | Joevaen/Scikit-image_On_CT | e3bf0eeadc50691041b4b7c44a19d07546a85001 | [
"Apache-2.0"
] | null | null | null | Measure/marching_cubes.py | Joevaen/Scikit-image_On_CT | e3bf0eeadc50691041b4b7c44a19d07546a85001 | [
"Apache-2.0"
] | null | null | null | # 行进立方体算法可在3d体积数据中查找曲面。 | 23 | 23 | 0.869565 | 1 | 23 | 20 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 0.043478 | 23 | 1 | 23 | 23 | 0.863636 | 0.913043 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
3dcb76b4c52a5d1ce0ae768108f28ee8bd281015 | 4,460 | py | Python | responsibleai/tests/counterfactual/test_counterfactual_advanced_features.py | PYTHON01100100/responsible-ai-widgets | 07ff0ca27b6f278d0e27172386cccbd7d909d88c | [
"MIT"
] | 1 | 2021-09-11T14:43:23.000Z | 2021-09-11T14:43:23.000Z | responsibleai/tests/counterfactual/test_counterfactual_advanced_features.py | PYTHON01100100/responsible-ai-widgets | 07ff0ca27b6f278d0e27172386cccbd7d909d88c | [
"MIT"
] | null | null | null | responsibleai/tests/counterfactual/test_counterfactual_advanced_features.py | PYTHON01100100/responsible-ai-widgets | 07ff0ca27b6f278d0e27172386cccbd7d909d88c | [
"MIT"
] | null | null | null |
# Copyright (c) Microsoft Corporation
# Licensed under the MIT License.
import pytest
import numpy as np
from ..common_utils import (
create_iris_data, create_lightgbm_classifier
)
from responsibleai import ModelAnalysis
class TestCounterfactualAdvancedFeatures(object):
@pytest.mark.parametrize('vary_all... | 36.859504 | 78 | 0.559417 | 502 | 4,460 | 4.621514 | 0.189243 | 0.066379 | 0.030172 | 0.064655 | 0.79569 | 0.79569 | 0.778448 | 0.778448 | 0.719828 | 0.719828 | 0 | 0.018326 | 0.35157 | 4,460 | 120 | 79 | 37.166667 | 0.783887 | 0.06704 | 0 | 0.712766 | 0 | 0 | 0.028916 | 0 | 0 | 0 | 0 | 0.008333 | 0.042553 | 1 | 0.021277 | false | 0 | 0.106383 | 0 | 0.138298 | 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 | 0 | 0 | 0 | 6 |
9ab2e26e33e6dab276e7c11af852425d67dde72e | 93 | py | Python | app/dstvza/__init__.py | Lameaux/mock_server | c387af54d1b974ce1ed5f841de214a45d07fe901 | [
"MIT"
] | null | null | null | app/dstvza/__init__.py | Lameaux/mock_server | c387af54d1b974ce1ed5f841de214a45d07fe901 | [
"MIT"
] | null | null | null | app/dstvza/__init__.py | Lameaux/mock_server | c387af54d1b974ce1ed5f841de214a45d07fe901 | [
"MIT"
] | null | null | null | from flask import Blueprint
dstvza = Blueprint('dstvza', __name__)
from . import endpoints
| 15.5 | 38 | 0.774194 | 11 | 93 | 6.181818 | 0.636364 | 0.441176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.150538 | 93 | 5 | 39 | 18.6 | 0.860759 | 0 | 0 | 0 | 0 | 0 | 0.064516 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0.666667 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 6 |
9acdf2a8404c633708e9091f2b88922bd699b3ef | 288 | py | Python | gaia-sdk-python/gaia_sdk/api/data/DataRefRequestConfig.py | leftshiftone/gaia-sdk | 7e0d1ce054fada8ae154da70b71e8a90347c9f97 | [
"MIT"
] | null | null | null | gaia-sdk-python/gaia_sdk/api/data/DataRefRequestConfig.py | leftshiftone/gaia-sdk | 7e0d1ce054fada8ae154da70b71e8a90347c9f97 | [
"MIT"
] | 10 | 2019-11-14T07:55:47.000Z | 2022-02-26T19:36:45.000Z | gaia-sdk-python/gaia_sdk/api/data/DataRefRequestConfig.py | leftshiftone/gaia-sdk | 7e0d1ce054fada8ae154da70b71e8a90347c9f97 | [
"MIT"
] | 2 | 2020-05-12T11:09:53.000Z | 2020-12-25T14:03:04.000Z | from typing import Callable
class DataRefRequestConfig:
def __init__(self, on_upload_progress: Callable[[int], None]):
self.on_upload_progress = on_upload_progress
def on_upload_progress(self, progress: int):
"""Return current upload progress"""
pass
| 22.153846 | 66 | 0.708333 | 34 | 288 | 5.647059 | 0.5 | 0.364583 | 0.333333 | 0.208333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.208333 | 288 | 12 | 67 | 24 | 0.842105 | 0.104167 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.166667 | 0.166667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 6 |
9af45366f4011ce8551f296cdc06265827add610 | 74 | py | Python | tomoxtal/utils/__init__.py | apeck12/tomoxtal | d2b3407708da2a35ecf061fb62ba397d837b980c | [
"MIT"
] | null | null | null | tomoxtal/utils/__init__.py | apeck12/tomoxtal | d2b3407708da2a35ecf061fb62ba397d837b980c | [
"MIT"
] | null | null | null | tomoxtal/utils/__init__.py | apeck12/tomoxtal | d2b3407708da2a35ecf061fb62ba397d837b980c | [
"MIT"
] | 1 | 2021-11-22T18:30:30.000Z | 2021-11-22T18:30:30.000Z | from .cctbx_tools import *
from .phases import *
from .visualize import *
| 18.5 | 26 | 0.756757 | 10 | 74 | 5.5 | 0.6 | 0.363636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162162 | 74 | 3 | 27 | 24.666667 | 0.887097 | 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 | 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 | 6 |
b116672442cff81e07f090b0c606484e8c2295bf | 75 | py | Python | bots/fb/send.py | kosyachniy/dev | 39bb5c5ee10780bfcd8a59cf59cfb1a348ac52a4 | [
"Apache-2.0"
] | 13 | 2018-12-17T23:30:54.000Z | 2021-12-29T14:31:43.000Z | bots/fb/send.py | kosyachniy/dev | 39bb5c5ee10780bfcd8a59cf59cfb1a348ac52a4 | [
"Apache-2.0"
] | 36 | 2018-06-07T21:34:13.000Z | 2022-03-13T21:01:43.000Z | bots/fb/send.py | kosyachniy/dev | 39bb5c5ee10780bfcd8a59cf59cfb1a348ac52a4 | [
"Apache-2.0"
] | 2 | 2021-01-03T11:47:20.000Z | 2021-12-29T14:31:49.000Z | from fb_bot import send as send_fb
send_fb(4019533504784468, 'blah blah') | 18.75 | 38 | 0.8 | 13 | 75 | 4.384615 | 0.615385 | 0.210526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.246154 | 0.133333 | 75 | 4 | 38 | 18.75 | 0.630769 | 0 | 0 | 0 | 0 | 0 | 0.118421 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
491767f4a1b7c25c639a44f598afefa05f3e6ce6 | 63,938 | py | Python | src_pet/sample.py | XiaZeng0223/alps | 72c5f9b02424bfef6b19c8ec9675774ae827242a | [
"MIT"
] | null | null | null | src_pet/sample.py | XiaZeng0223/alps | 72c5f9b02424bfef6b19c8ec9675774ae827242a | [
"MIT"
] | null | null | null | src_pet/sample.py | XiaZeng0223/alps | 72c5f9b02424bfef6b19c8ec9675774ae827242a | [
"MIT"
] | null | null | null | import glob
import logging
import numpy as np
import torch
from torch.utils.data import DataLoader, RandomSampler, SequentialSampler, TensorDataset, Subset
from torch.distributions.categorical import Categorical
from torch.distributions.uniform import Uniform
from tqdm import tqdm, trange
from torch.nn import CrossEnt... | 46.841026 | 170 | 0.651006 | 8,766 | 63,938 | 4.531942 | 0.065366 | 0.033529 | 0.026883 | 0.044806 | 0.792408 | 0.77728 | 0.767287 | 0.743474 | 0.737836 | 0.725602 | 0 | 0.007779 | 0.234008 | 63,938 | 1,364 | 171 | 46.875367 | 0.803373 | 0.130908 | 0 | 0.708103 | 0 | 0.000921 | 0.06343 | 0.002938 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036832 | false | 0 | 0.020258 | 0 | 0.112339 | 0.015654 | 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 | 0 | 0 | 0 | 6 |
4942a23314ff40a2a5aff73b6a759137e0a86e2d | 3,575 | py | Python | stubs/uiflow_stickc_plus/m5ui.py | c99koder/m5stickc-aerogarden | ac7d157d4ae4e47151896a7c7aee4c574ce52169 | [
"Apache-2.0"
] | 1 | 2022-03-02T10:11:07.000Z | 2022-03-02T10:11:07.000Z | stubs/uiflow_stickc_plus/m5ui.py | c99koder/m5stickc-aerogarden | ac7d157d4ae4e47151896a7c7aee4c574ce52169 | [
"Apache-2.0"
] | null | null | null | stubs/uiflow_stickc_plus/m5ui.py | c99koder/m5stickc-aerogarden | ac7d157d4ae4e47151896a7c7aee4c574ce52169 | [
"Apache-2.0"
] | null | null | null | """
Module: 'm5ui' on uiflow_stickc_plus v1.9.1
"""
# MCU: {'ver': 'v1.12', 'port': 'esp32', 'arch': 'xtensawin', 'sysname': 'esp32', 'release': '1.12.0', 'name': 'micropython', 'mpy': 10757, 'version': '1.12.0', 'machine': 'M5StickC-Plus with ESP32', 'build': 'dirty', 'nodename': 'esp32', 'platform': 'esp32', 'family'... | 20.3125 | 284 | 0.468811 | 361 | 3,575 | 4.545706 | 0.210526 | 0.23766 | 0.308958 | 0.383303 | 0.730652 | 0.694089 | 0.66362 | 0.642291 | 0.642291 | 0.642291 | 0 | 0.018776 | 0.314685 | 3,575 | 175 | 285 | 20.428571 | 0.65102 | 0.104056 | 0 | 0.836066 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.385246 | false | 0 | 0.008197 | 0 | 0.483607 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
495a2321e919491b034b84a72fb71a455a187d4c | 96 | py | Python | venv/lib/python3.8/site-packages/numpy/typing/_generic_alias.py | Retraces/UkraineBot | 3d5d7f8aaa58fa0cb8b98733b8808e5dfbdb8b71 | [
"MIT"
] | 2 | 2022-03-13T01:58:52.000Z | 2022-03-31T06:07:54.000Z | venv/lib/python3.8/site-packages/numpy/typing/_generic_alias.py | DesmoSearch/Desmobot | b70b45df3485351f471080deb5c785c4bc5c4beb | [
"MIT"
] | 19 | 2021-11-20T04:09:18.000Z | 2022-03-23T15:05:55.000Z | venv/lib/python3.8/site-packages/numpy/typing/_generic_alias.py | DesmoSearch/Desmobot | b70b45df3485351f471080deb5c785c4bc5c4beb | [
"MIT"
] | null | null | null | /home/runner/.cache/pip/pool/13/44/6a/a44f11388e3d5ac59b5a94ad251c6455af81f481b399c3d503218e6851 | 96 | 96 | 0.895833 | 9 | 96 | 9.555556 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.46875 | 0 | 96 | 1 | 96 | 96 | 0.427083 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
4970a913d58f211a713df3475cd405869d111be1 | 4,938 | py | Python | usage_sample.py | acatoire/json_generator | de99fb0488c95522164c57928311491efb1af63f | [
"Apache-2.0"
] | null | null | null | usage_sample.py | acatoire/json_generator | de99fb0488c95522164c57928311491efb1af63f | [
"Apache-2.0"
] | null | null | null | usage_sample.py | acatoire/json_generator | de99fb0488c95522164c57928311491efb1af63f | [
"Apache-2.0"
] | null | null | null |
"""
Simple usage sample of json generator
"""
from json_generator import JsonGenerator, ConfJson
def method_name(kiss: str = None, homogeneous: bool = True):
kiss_str = "_kiss" if kiss else ""
homogeneous_str = "_homogeneous" if homogeneous else "_non_homogeneous"
# 1 level
my_json = JsonGenerator... | 60.219512 | 119 | 0.432564 | 478 | 4,938 | 4.142259 | 0.104603 | 0.085859 | 0.137374 | 0.060101 | 0.869697 | 0.842424 | 0.818687 | 0.704545 | 0.704545 | 0.704545 | 0 | 0.035529 | 0.49271 | 4,938 | 81 | 120 | 60.962963 | 0.75489 | 0.020656 | 0 | 0.587302 | 0 | 0 | 0.080257 | 0.07134 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015873 | false | 0 | 0.015873 | 0 | 0.031746 | 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 | 0 | 0 | 0 | 6 |
b8de05931873d17358a6b3dd9a9ae5d134fb0f79 | 105 | py | Python | codes/models/__init__.py | makni-mehdi/federated-swag | a0175ed267e07959687c4290aa3a2a8e1899faa5 | [
"BSD-2-Clause"
] | null | null | null | codes/models/__init__.py | makni-mehdi/federated-swag | a0175ed267e07959687c4290aa3a2a8e1899faa5 | [
"BSD-2-Clause"
] | null | null | null | codes/models/__init__.py | makni-mehdi/federated-swag | a0175ed267e07959687c4290aa3a2a8e1899faa5 | [
"BSD-2-Clause"
] | null | null | null | from .resnet18 import *
from .lenet5 import *
from .regression_net import *
from .reducedLeNet5 import *
| 21 | 29 | 0.771429 | 13 | 105 | 6.153846 | 0.538462 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044944 | 0.152381 | 105 | 4 | 30 | 26.25 | 0.853933 | 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 | 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 | 6 |
7718146f08783ae4bf998d121074f5dc7312177b | 152 | py | Python | test/Test_Edit_Group.py | MaximM27/Pythonfortesting_trainig | 07c283c4ac88fd2bb0ee81983abe8177a9b2eada | [
"Apache-2.0"
] | null | null | null | test/Test_Edit_Group.py | MaximM27/Pythonfortesting_trainig | 07c283c4ac88fd2bb0ee81983abe8177a9b2eada | [
"Apache-2.0"
] | null | null | null | test/Test_Edit_Group.py | MaximM27/Pythonfortesting_trainig | 07c283c4ac88fd2bb0ee81983abe8177a9b2eada | [
"Apache-2.0"
] | null | null | null | from model.group import Group
def test_edit_first_group(app):
app.group.edit_first_group(Group(name="group1", header="group2", footer="group3"))
| 21.714286 | 86 | 0.756579 | 23 | 152 | 4.782609 | 0.652174 | 0.163636 | 0.254545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022059 | 0.105263 | 152 | 6 | 87 | 25.333333 | 0.786765 | 0 | 0 | 0 | 0 | 0 | 0.12 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 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 | 1 | 0 | 1 | 0 | 0 | 6 |
620160d217020591500e34208eed40b64ec8ed36 | 127 | py | Python | historical_robots/__init__.py | alexlitel/historical-robots-txt-parser | 29759d254d0ab18c72383748f9173e31e23d5ab4 | [
"MIT"
] | null | null | null | historical_robots/__init__.py | alexlitel/historical-robots-txt-parser | 29759d254d0ab18c72383748f9173e31e23d5ab4 | [
"MIT"
] | 1 | 2021-06-24T13:59:33.000Z | 2021-06-24T13:59:33.000Z | historical_robots/__init__.py | alexlitel/historical-robots-txt-parser | 29759d254d0ab18c72383748f9173e31e23d5ab4 | [
"MIT"
] | 1 | 2021-06-17T13:44:22.000Z | 2021-06-17T13:44:22.000Z | from .parser import parse_robots_txt
from .scraper import historical_scraper
__all__ = [parse_robots_txt, historical_scraper]
| 25.4 | 48 | 0.850394 | 17 | 127 | 5.764706 | 0.529412 | 0.22449 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102362 | 127 | 4 | 49 | 31.75 | 0.859649 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
6222e531dbf7df8b7405d57efc0a70a0d652b48c | 6,339 | py | Python | andres@programo.ual.es/figurePCA.py | andresmasegosa/PRML-CoreSets | fb768debb15e3ff6f5b65b7224915a41c1493f3d | [
"MIT"
] | null | null | null | andres@programo.ual.es/figurePCA.py | andresmasegosa/PRML-CoreSets | fb768debb15e3ff6f5b65b7224915a41c1493f3d | [
"MIT"
] | null | null | null | andres@programo.ual.es/figurePCA.py | andresmasegosa/PRML-CoreSets | fb768debb15e3ff6f5b65b7224915a41c1493f3d | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
import numpy as np
from sklearn.cluster import KMeans
import inferpy as inf
from sklearn import metrics
from datareduction.bayesian_pca_DR import BayesianPCA_DR
from prml.feature_extractions import BayesianPCA, PCA
############## GENERATE DATA ########################
#################... | 33.015625 | 87 | 0.691907 | 1,205 | 6,339 | 3.4639 | 0.099585 | 0.062051 | 0.030187 | 0.042166 | 0.828222 | 0.776234 | 0.769765 | 0.757307 | 0.724724 | 0.724724 | 0 | 0.07273 | 0.082505 | 6,339 | 191 | 88 | 33.188482 | 0.644945 | 0.027922 | 0 | 0.588608 | 0 | 0 | 0.078519 | 0.039506 | 0 | 0 | 0 | 0 | 0 | 1 | 0.006329 | false | 0 | 0.044304 | 0 | 0.056962 | 0.234177 | 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 | 0 | 0 | 0 | 6 |
622f81f924b3fc966122422f2007888a518b07a5 | 254 | py | Python | Codewars/difference between years/difference_between_years.py | adoreblvnk/code_solutions | 03e4261241dd33a4232dabe0e9450d344f7ccc6d | [
"MIT"
] | null | null | null | Codewars/difference between years/difference_between_years.py | adoreblvnk/code_solutions | 03e4261241dd33a4232dabe0e9450d344f7ccc6d | [
"MIT"
] | null | null | null | Codewars/difference between years/difference_between_years.py | adoreblvnk/code_solutions | 03e4261241dd33a4232dabe0e9450d344f7ccc6d | [
"MIT"
] | null | null | null | def how_many_years(date1, date2):
return abs(int(date1[:4]) - int(date2[:4]))
# solution
def how_many_years_solution(date1,date2):
return abs(int(date1.split('/')[0]) - int(date2.split('/')[0]))
print(how_many_years('1997/10/10', '2015/10/10')) | 31.75 | 67 | 0.669291 | 42 | 254 | 3.880952 | 0.404762 | 0.128834 | 0.220859 | 0.184049 | 0.331288 | 0.331288 | 0 | 0 | 0 | 0 | 0 | 0.122807 | 0.102362 | 254 | 8 | 68 | 31.75 | 0.592105 | 0.031496 | 0 | 0 | 0 | 0 | 0.089796 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0.4 | 0.8 | 0.2 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
6251b280792dc3767b485848d06789c0ad4b0502 | 25 | py | Python | lpthw/deleteme.py | lpan1111/lpthw | a6ba6156a79a9a9d4cee2a0d6276c67842e69067 | [
"MIT"
] | null | null | null | lpthw/deleteme.py | lpan1111/lpthw | a6ba6156a79a9a9d4cee2a0d6276c67842e69067 | [
"MIT"
] | null | null | null | lpthw/deleteme.py | lpan1111/lpthw | a6ba6156a79a9a9d4cee2a0d6276c67842e69067 | [
"MIT"
] | null | null | null | print('please delete me') | 25 | 25 | 0.76 | 4 | 25 | 4.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08 | 25 | 1 | 25 | 25 | 0.826087 | 0 | 0 | 0 | 0 | 0 | 0.615385 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
62708437c31a1014de98802647d2e3abbddd9831 | 189 | py | Python | annotater/memetext/utils.py | stricoff92/annotater | 8ca471477e2d567945e14f09d3d763d379e7587e | [
"MIT"
] | null | null | null | annotater/memetext/utils.py | stricoff92/annotater | 8ca471477e2d567945e14f09d3d763d379e7587e | [
"MIT"
] | null | null | null | annotater/memetext/utils.py | stricoff92/annotater | 8ca471477e2d567945e14f09d3d763d379e7587e | [
"MIT"
] | null | null | null |
import logging
from annotater.script_logger import spawn_logger
def get_annotation_logger(level=logging.INFO):
return spawn_logger("testannotation", level=level, file_per_day=True)
| 21 | 73 | 0.820106 | 26 | 189 | 5.692308 | 0.692308 | 0.148649 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10582 | 189 | 8 | 74 | 23.625 | 0.87574 | 0 | 0 | 0 | 0 | 0 | 0.074468 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.5 | 0.25 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 6 |
6576a3170f679f00e454a208bdcb8cde87f263eb | 33 | py | Python | wrappers/__init__.py | mindpowered/car-loan-calculator-python | ca219bbeb4df561faf8f86807a240d0b1e29fcc5 | [
"MIT"
] | null | null | null | wrappers/__init__.py | mindpowered/car-loan-calculator-python | ca219bbeb4df561faf8f86807a240d0b1e29fcc5 | [
"MIT"
] | null | null | null | wrappers/__init__.py | mindpowered/car-loan-calculator-python | ca219bbeb4df561faf8f86807a240d0b1e29fcc5 | [
"MIT"
] | null | null | null | from .CarLoanCalculator import *
| 16.5 | 32 | 0.818182 | 3 | 33 | 9 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121212 | 33 | 1 | 33 | 33 | 0.931034 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
657b50358da574d58bbe2c3b20c08dda0f417767 | 13,077 | py | Python | main/Interpolation.py | robop/xjob | 8285291212cb5b1e3846872d891e7c374a7aead9 | [
"Apache-2.0"
] | 2 | 2021-08-23T13:41:34.000Z | 2021-10-04T03:19:41.000Z | main/Interpolation.py | robop/xjob | 8285291212cb5b1e3846872d891e7c374a7aead9 | [
"Apache-2.0"
] | null | null | null | main/Interpolation.py | robop/xjob | 8285291212cb5b1e3846872d891e7c374a7aead9 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from math import exp, log
def SolveTriDiagonal(a, b, c, r):
"""Solve a tri-diagonal system of equations with a,b,c vectors of the diagonal elements
b lies on the diagonal, a is below and c above."""
n = len(b)
result = [0.0 for i in range(n)]
temp = [0.0 for i in range(n)]
... | 34.872 | 118 | 0.560144 | 1,701 | 13,077 | 4.30629 | 0.07525 | 0.070717 | 0.038225 | 0.029488 | 0.801638 | 0.77843 | 0.736928 | 0.72901 | 0.714949 | 0.696655 | 0 | 0.027207 | 0.274834 | 13,077 | 375 | 119 | 34.872 | 0.745228 | 0.104994 | 0 | 0.681818 | 0 | 0 | 0.021561 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086777 | false | 0 | 0.004132 | 0 | 0.305785 | 0.004132 | 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 | 0 | 0 | 0 | 6 |
65939db6e3238bdf444081a976c9ee29d0a0f626 | 944 | py | Python | sdk/python/pulumi_aws_native/lightsail/__init__.py | pulumi/pulumi-aws-native | 1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3 | [
"Apache-2.0"
] | 29 | 2021-09-30T19:32:07.000Z | 2022-03-22T21:06:08.000Z | sdk/python/pulumi_aws_native/lightsail/__init__.py | pulumi/pulumi-aws-native | 1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3 | [
"Apache-2.0"
] | 232 | 2021-09-30T19:26:26.000Z | 2022-03-31T23:22:06.000Z | sdk/python/pulumi_aws_native/lightsail/__init__.py | pulumi/pulumi-aws-native | 1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3 | [
"Apache-2.0"
] | 4 | 2021-11-10T19:42:01.000Z | 2022-02-05T10:15:49.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
from .. import _utilities
import typing
# Export this package's modules as members:
from ._enums import *
from .alarm import *
from .bucket import *
fr... | 28.606061 | 80 | 0.76589 | 136 | 944 | 5.139706 | 0.382353 | 0.343348 | 0.204578 | 0.071531 | 0.157368 | 0.103004 | 0 | 0 | 0 | 0 | 0 | 0.001253 | 0.154661 | 944 | 32 | 81 | 29.5 | 0.874687 | 0.215042 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
65aea2bc7b3b6d0860c7948e20e622c6673f00ec | 9,462 | py | Python | tests/system/action/mediafile/test_move.py | MJJojo97/openslides-backend | af0d1edb0070e352d46f285a1ba0bbe3702d49ae | [
"MIT"
] | null | null | null | tests/system/action/mediafile/test_move.py | MJJojo97/openslides-backend | af0d1edb0070e352d46f285a1ba0bbe3702d49ae | [
"MIT"
] | null | null | null | tests/system/action/mediafile/test_move.py | MJJojo97/openslides-backend | af0d1edb0070e352d46f285a1ba0bbe3702d49ae | [
"MIT"
] | null | null | null | from typing import Any, Dict
from openslides_backend.permissions.management_levels import OrganizationManagementLevel
from openslides_backend.permissions.permissions import Permissions
from tests.system.action.base import BaseActionTestCase
class MediafileMoveActionTest(BaseActionTestCase):
def setUp(self) -> No... | 38.307692 | 88 | 0.491439 | 940 | 9,462 | 4.659574 | 0.098936 | 0.05274 | 0.083105 | 0.085388 | 0.832192 | 0.809132 | 0.760274 | 0.74589 | 0.706849 | 0.687215 | 0 | 0.039886 | 0.372014 | 9,462 | 246 | 89 | 38.463415 | 0.69724 | 0 | 0 | 0.575107 | 0 | 0 | 0.252801 | 0.028747 | 0 | 0 | 0 | 0 | 0.133047 | 1 | 0.04721 | false | 0 | 0.017167 | 0 | 0.06867 | 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 | 0 | 0 | 0 | 6 |
65af9e9e2a78052480b0bd68f5b6f792d821c6c0 | 3,930 | py | Python | reports/migrations/0001_initial.py | Igorishe/Report_Traker | 886da5d5dd40247779a76611cf6b66cb95963ad7 | [
"MIT"
] | null | null | null | reports/migrations/0001_initial.py | Igorishe/Report_Traker | 886da5d5dd40247779a76611cf6b66cb95963ad7 | [
"MIT"
] | null | null | null | reports/migrations/0001_initial.py | Igorishe/Report_Traker | 886da5d5dd40247779a76611cf6b66cb95963ad7 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.3 on 2021-08-11 12:44
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='MobinetReport',
fields=[
('id', models.BigA... | 59.545455 | 203 | 0.586768 | 393 | 3,930 | 5.704835 | 0.246819 | 0.14719 | 0.040143 | 0.048171 | 0.788136 | 0.772525 | 0.757806 | 0.757806 | 0.757806 | 0.757806 | 0 | 0.013409 | 0.240967 | 3,930 | 65 | 204 | 60.461538 | 0.738183 | 0.01145 | 0 | 0.62069 | 1 | 0 | 0.221478 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.017241 | 0 | 0.086207 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
02f4856d2a2023b8575ed69f22b9bf05e7872bde | 37 | py | Python | strategy/__init__.py | hilearn/ai-game | 5eead5964fc9a4481317402374b13109e09f56c2 | [
"MIT"
] | null | null | null | strategy/__init__.py | hilearn/ai-game | 5eead5964fc9a4481317402374b13109e09f56c2 | [
"MIT"
] | 3 | 2021-10-03T08:46:08.000Z | 2021-10-04T18:14:56.000Z | strategy/__init__.py | hilearn/ai-game | 5eead5964fc9a4481317402374b13109e09f56c2 | [
"MIT"
] | null | null | null | from .strategy import RandomStrategy
| 18.5 | 36 | 0.864865 | 4 | 37 | 8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108108 | 37 | 1 | 37 | 37 | 0.969697 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
02fb683cd40f9e89ad2c362a5e3e47fafc5b8f8b | 10,453 | py | Python | thumt/data/multi30k.py | MaxyLee/THUMT | 4c449fe41a682c62f80ff843f2e8c9e1e8053c12 | [
"BSD-3-Clause"
] | null | null | null | thumt/data/multi30k.py | MaxyLee/THUMT | 4c449fe41a682c62f80ff843f2e8c9e1e8053c12 | [
"BSD-3-Clause"
] | null | null | null | thumt/data/multi30k.py | MaxyLee/THUMT | 4c449fe41a682c62f80ff843f2e8c9e1e8053c12 | [
"BSD-3-Clause"
] | null | null | null | import torch
import pickle
import skimage.io as io
from PIL import Image
from tqdm import tqdm
from torch.utils.data import Dataset
from thumt.data.pipeline import _sort_input_file
from thumt.tokenizers import WhiteSpaceTokenizer
def get_infer_dataset(filename, params, model_name, preprocess, dtype, raw=False):
s... | 33.289809 | 119 | 0.53047 | 1,285 | 10,453 | 4.119066 | 0.118288 | 0.036274 | 0.03174 | 0.022671 | 0.729454 | 0.717363 | 0.710561 | 0.710561 | 0.710561 | 0.690913 | 0 | 0.006879 | 0.360279 | 10,453 | 314 | 120 | 33.289809 | 0.784657 | 0.004688 | 0 | 0.702381 | 0 | 0 | 0.0622 | 0.027783 | 0 | 0 | 0 | 0 | 0.007937 | 1 | 0.043651 | false | 0 | 0.039683 | 0.007937 | 0.134921 | 0.003968 | 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 | 0 | 0 | 0 | 6 |
b8384380738456b89b24f59837c39557638154a2 | 3,401 | py | Python | tests/test_redis.py | ashexpertVersion2/django-health-check | 895e2b6f96ab611b87829375b7b13c88025887f2 | [
"MIT"
] | 739 | 2015-01-22T15:38:35.000Z | 2022-03-29T17:20:05.000Z | tests/test_redis.py | ashexpertVersion2/django-health-check | 895e2b6f96ab611b87829375b7b13c88025887f2 | [
"MIT"
] | 231 | 2015-01-21T00:09:50.000Z | 2022-03-29T20:52:10.000Z | tests/test_redis.py | ashexpertVersion2/django-health-check | 895e2b6f96ab611b87829375b7b13c88025887f2 | [
"MIT"
] | 173 | 2015-01-21T20:14:45.000Z | 2022-03-24T10:07:43.000Z | import mock
from redis.exceptions import ConnectionError, TimeoutError
from health_check.contrib.redis.backends import RedisHealthCheck
class TestRedisHealthCheck:
"""Test Redis health check."""
@mock.patch("health_check.contrib.redis.backends.getattr")
@mock.patch("health_check.contrib.redis.backends.f... | 38.213483 | 107 | 0.718024 | 375 | 3,401 | 6.197333 | 0.16 | 0.110155 | 0.069707 | 0.089071 | 0.833046 | 0.819707 | 0.756024 | 0.756024 | 0.756024 | 0.756024 | 0 | 0.00291 | 0.191708 | 3,401 | 88 | 108 | 38.647727 | 0.842488 | 0.14731 | 0 | 0.681818 | 0 | 0 | 0.177335 | 0.121721 | 0 | 0 | 0 | 0 | 0.181818 | 1 | 0.090909 | false | 0 | 0.068182 | 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 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
b8880c568e4f687ed80330130a02aa08b7b21ed8 | 7,955 | py | Python | tests/ur_client_test.py | duongntbk/urchintai_client | 3a99db9348e970be28301f154fe67d724a6557f9 | [
"MIT"
] | null | null | null | tests/ur_client_test.py | duongntbk/urchintai_client | 3a99db9348e970be28301f154fe67d724a6557f9 | [
"MIT"
] | null | null | null | tests/ur_client_test.py | duongntbk/urchintai_client | 3a99db9348e970be28301f154fe67d724a6557f9 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import asyncio
from unittest.mock import Mock
import pytest
from pytest_mock import mocker
from urchintai_client.ur_client import UrClient
ignored_request_sender = None
@pytest.mark.asyncio
async def test_should_throw_error_if_no_property_argument():
'''
Either url or property_code i... | 25.015723 | 92 | 0.677687 | 1,060 | 7,955 | 4.817925 | 0.117925 | 0.106912 | 0.046603 | 0.060309 | 0.854513 | 0.825729 | 0.825729 | 0.811827 | 0.779714 | 0.731545 | 0 | 0.021441 | 0.220239 | 7,955 | 318 | 93 | 25.015723 | 0.80187 | 0.036078 | 0 | 0.608108 | 0 | 0.02027 | 0.160193 | 0.024801 | 0 | 0 | 0 | 0 | 0.094595 | 1 | 0.006757 | false | 0 | 0.033784 | 0 | 0.047297 | 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 | 0 | 0 | 0 | 6 |
b8995b5d680eca47a159b0515c0fcafd2fb0af23 | 80 | py | Python | Codefights/arcade/python-arcade/level-3/25.Print-List/Python/solution1.py | RevansChen/online-judge | ad1b07fee7bd3c49418becccda904e17505f3018 | [
"MIT"
] | 7 | 2017-09-20T16:40:39.000Z | 2021-08-31T18:15:08.000Z | Codefights/arcade/python-arcade/level-3/25.Print-List/Python/solution1.py | RevansChen/online-judge | ad1b07fee7bd3c49418becccda904e17505f3018 | [
"MIT"
] | null | null | null | Codefights/arcade/python-arcade/level-3/25.Print-List/Python/solution1.py | RevansChen/online-judge | ad1b07fee7bd3c49418becccda904e17505f3018 | [
"MIT"
] | null | null | null | # Python3
# 有限制修改區域
def printList(lst):
return f'This is your list: {lst}'
| 13.333333 | 38 | 0.6625 | 12 | 80 | 4.416667 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015873 | 0.2125 | 80 | 5 | 39 | 16 | 0.825397 | 0.1875 | 0 | 0 | 0 | 0 | 0.387097 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 1 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 6 |
b8aac4b30d8c8e8d3f6b81a2af81e0e9c5c4c5c3 | 12,706 | py | Python | tests/kubernetes/runner/test_runner.py | peaudecastor/checkov | a4804b61c1b1390b7abd44ab53285fcbc3e7e80b | [
"Apache-2.0"
] | null | null | null | tests/kubernetes/runner/test_runner.py | peaudecastor/checkov | a4804b61c1b1390b7abd44ab53285fcbc3e7e80b | [
"Apache-2.0"
] | null | null | null | tests/kubernetes/runner/test_runner.py | peaudecastor/checkov | a4804b61c1b1390b7abd44ab53285fcbc3e7e80b | [
"Apache-2.0"
] | null | null | null | import dis
import inspect
import os
import unittest
from collections import defaultdict
from pathlib import Path
from checkov.common.bridgecrew.severities import Severities, BcSeverities
from checkov.common.models.enums import CheckCategories, CheckResult
from checkov.kubernetes.checks.resource.base_spec_check import ... | 41.796053 | 111 | 0.640091 | 1,513 | 12,706 | 5.081956 | 0.125578 | 0.031994 | 0.024711 | 0.021459 | 0.829757 | 0.818312 | 0.812589 | 0.799974 | 0.796332 | 0.786708 | 0 | 0.002891 | 0.264914 | 12,706 | 303 | 112 | 41.933993 | 0.820343 | 0.104439 | 0 | 0.691244 | 0 | 0 | 0.080458 | 0.007658 | 0 | 0 | 0 | 0 | 0.078341 | 1 | 0.110599 | false | 0.041475 | 0.096774 | 0.023041 | 0.258065 | 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 | 0 | 0 | 0 | 6 |
b8af9473192b350628a26732b1bff278faf0ba4a | 43 | py | Python | project/apps/django_backend_template/controllers/__init__.py | adosaa/Backend-django-app | 3a7eb746ebc703e2cdbf1e4b2ac5703b3fedcd85 | [
"MIT"
] | 2 | 2020-11-04T21:47:48.000Z | 2020-11-04T21:47:50.000Z | project/apps/django_backend_template/controllers/__init__.py | adosaa/Backend-Django-App | 3a7eb746ebc703e2cdbf1e4b2ac5703b3fedcd85 | [
"MIT"
] | null | null | null | project/apps/django_backend_template/controllers/__init__.py | adosaa/Backend-Django-App | 3a7eb746ebc703e2cdbf1e4b2ac5703b3fedcd85 | [
"MIT"
] | null | null | null | from .core import *
from .student import *
| 14.333333 | 22 | 0.72093 | 6 | 43 | 5.166667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.186047 | 43 | 2 | 23 | 21.5 | 0.885714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
b227613a1679a73838a9d2e87c3fc8b0f2d06dcc | 228 | py | Python | async_download_file/download_gui/variables.py | woshimanong1990/download_file_gui | 385c9a59499ffa9a7c034d303376d9ce41b7303a | [
"MIT"
] | null | null | null | async_download_file/download_gui/variables.py | woshimanong1990/download_file_gui | 385c9a59499ffa9a7c034d303376d9ce41b7303a | [
"MIT"
] | null | null | null | async_download_file/download_gui/variables.py | woshimanong1990/download_file_gui | 385c9a59499ffa9a7c034d303376d9ce41b7303a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import unicode_literals
from __future__ import print_function
from async_download_file.download_task.variables import TaskStatus as DownloadStatus
| 28.5 | 84 | 0.842105 | 29 | 228 | 6 | 0.655172 | 0.172414 | 0.275862 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004926 | 0.109649 | 228 | 7 | 85 | 32.571429 | 0.852217 | 0.092105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0.25 | 1 | 0 | 0 | null | 0 | 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 | 6 |
b270fb3269984b5866aa54bf1eb04da9b568c8b1 | 4,248 | py | Python | exp/models/chen2018_test.py | f-dangel/hbp | 3ed208ce16fae1c2697e1d5220de91205e1d13c3 | [
"MIT"
] | 13 | 2020-02-27T00:24:27.000Z | 2022-01-09T05:35:46.000Z | exp/models/chen2018_test.py | f-dangel/hbp | 3ed208ce16fae1c2697e1d5220de91205e1d13c3 | [
"MIT"
] | 5 | 2021-06-08T21:00:04.000Z | 2022-03-12T00:17:39.000Z | exp/models/chen2018_test.py | f-dangel/hbp | 3ed208ce16fae1c2697e1d5220de91205e1d13c3 | [
"MIT"
] | 2 | 2020-09-10T03:34:07.000Z | 2022-01-09T05:35:50.000Z | """Test of model architectures from Chen et al.: BDA-PCH (2018)."""
import torch
from bpexts.utils import set_seeds
from .chen2018 import (
cifar10_model,
hbp_cifar10_model,
hbp_mnist_model,
hbp_split_cifar10_model,
hbp_split_mnist_model,
mnist_model,
)
def test_forward_mnist_models():
... | 33.984 | 76 | 0.650424 | 601 | 4,248 | 4.396007 | 0.12812 | 0.054504 | 0.081756 | 0.087812 | 0.869039 | 0.860333 | 0.827025 | 0.827025 | 0.778577 | 0.666541 | 0 | 0.035601 | 0.259416 | 4,248 | 124 | 77 | 34.258065 | 0.804196 | 0.182439 | 0 | 0.688889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 1 | 0.066667 | false | 0 | 0.033333 | 0 | 0.1 | 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 | 0 | 0 | 0 | 6 |
b2aed56a206cc72922958073daa668ce21bbbaf9 | 213 | py | Python | stl/tree/nodes/__init__.py | pieter-hendriks/STL-monitoring | 114b73b1f4b0687b11b8842b3c4a1c8af7b0d9df | [
"MIT"
] | null | null | null | stl/tree/nodes/__init__.py | pieter-hendriks/STL-monitoring | 114b73b1f4b0687b11b8842b3c4a1c8af7b0d9df | [
"MIT"
] | null | null | null | stl/tree/nodes/__init__.py | pieter-hendriks/STL-monitoring | 114b73b1f4b0687b11b8842b3c4a1c8af7b0d9df | [
"MIT"
] | null | null | null | """ Import all the nodes used in the STL tree """
from .node import Node
from .formulanodes import *
from .operationnodes import *
from .valuenodes import *
from .contentnodes import *
from .signalnodes import *
| 23.666667 | 49 | 0.751174 | 28 | 213 | 5.714286 | 0.535714 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169014 | 213 | 8 | 50 | 26.625 | 0.903955 | 0.192488 | 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 | 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 | 6 |
a22e17274e5437a639a330640a8a6663c2b4da08 | 16,298 | py | Python | anaflow/tools/coarse_graining.py | JarnoHerr/AnaFlow | a7c56cdadf90d652f80bc1e1d38d3687d0365a63 | [
"MIT"
] | 21 | 2019-02-26T14:39:15.000Z | 2022-01-11T20:27:40.000Z | anaflow/tools/coarse_graining.py | JarnoHerr/AnaFlow | a7c56cdadf90d652f80bc1e1d38d3687d0365a63 | [
"MIT"
] | 4 | 2020-04-01T22:38:26.000Z | 2022-02-20T12:12:45.000Z | anaflow/tools/coarse_graining.py | JarnoHerr/AnaFlow | a7c56cdadf90d652f80bc1e1d38d3687d0365a63 | [
"MIT"
] | 4 | 2019-10-23T15:34:12.000Z | 2021-06-03T09:17:56.000Z | # -*- coding: utf-8 -*-
"""
Anaflow subpackage providing helper functions related to coarse graining.
.. currentmodule:: anaflow.tools.coarse_graining
The following functions are provided
.. autosummary::
T_CG
T_CG_inverse
T_CG_error
K_CG
K_CG_inverse
K_CG_error
TPL_CG
TPL_CG_error
"""
# pyl... | 30.809074 | 79 | 0.600319 | 2,214 | 16,298 | 4.334688 | 0.121951 | 0.056268 | 0.035636 | 0.022924 | 0.830155 | 0.812129 | 0.788163 | 0.779098 | 0.764093 | 0.761384 | 0 | 0.037542 | 0.279237 | 16,298 | 528 | 80 | 30.867424 | 0.779433 | 0.633881 | 0 | 0.539474 | 0 | 0 | 0.022794 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.059211 | false | 0 | 0.026316 | 0 | 0.203947 | 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 | 0 | 0 | 0 | 6 |
a2a35aa2f9c7cfbee2eea2d1db271877f88d2b61 | 96 | py | Python | spotirip/__init__.py | bttger/spotirip | bb56d9907bde8d2d6eb9d911826816cdf885f2e2 | [
"MIT"
] | 9 | 2019-07-10T12:46:39.000Z | 2021-12-16T05:28:09.000Z | spotirip/__init__.py | bttger/spotirip | bb56d9907bde8d2d6eb9d911826816cdf885f2e2 | [
"MIT"
] | 2 | 2019-07-11T14:37:50.000Z | 2019-07-15T18:42:11.000Z | spotirip/__init__.py | bttger/spotirip | bb56d9907bde8d2d6eb9d911826816cdf885f2e2 | [
"MIT"
] | 1 | 2020-10-24T11:45:43.000Z | 2020-10-24T11:45:43.000Z | import spotirip.const
import spotirip.exporter
import spotirip.recorder
import spotirip.spotify
| 19.2 | 24 | 0.875 | 12 | 96 | 7 | 0.5 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 96 | 4 | 25 | 24 | 0.954545 | 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 | 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 | 6 |
a2b1a3503cd4ba3d82f9cc09d55f8587515f0473 | 30 | py | Python | src/resources/__init__.py | Anibittu/hw-recog-be | 96c3f56e6ee25721d54ed8454a0be774cfe4553a | [
"MIT"
] | null | null | null | src/resources/__init__.py | Anibittu/hw-recog-be | 96c3f56e6ee25721d54ed8454a0be774cfe4553a | [
"MIT"
] | 6 | 2020-01-28T23:16:03.000Z | 2020-04-21T13:40:15.000Z | src/resources/__init__.py | Anibittu/hw-recog-be | 96c3f56e6ee25721d54ed8454a0be774cfe4553a | [
"MIT"
] | 2 | 2020-04-16T06:01:47.000Z | 2020-07-07T06:04:16.000Z | from .rect import RectResource | 30 | 30 | 0.866667 | 4 | 30 | 6.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 30 | 1 | 30 | 30 | 0.962963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
a2ed51333a3e0e5d9371859f87d1abda0fe1d947 | 1,536 | py | Python | skimage/util/tests/test_invert.py | portugueslab/scikit-image | 0fa3bcb118bb208a0cc7d3e8b96cd96c1ce7a75b | [
"BSD-3-Clause"
] | 2 | 2020-02-24T02:24:43.000Z | 2021-12-19T11:44:34.000Z | skimage/util/tests/test_invert.py | portugueslab/scikit-image | 0fa3bcb118bb208a0cc7d3e8b96cd96c1ce7a75b | [
"BSD-3-Clause"
] | null | null | null | skimage/util/tests/test_invert.py | portugueslab/scikit-image | 0fa3bcb118bb208a0cc7d3e8b96cd96c1ce7a75b | [
"BSD-3-Clause"
] | 2 | 2019-06-16T06:38:28.000Z | 2021-12-19T11:44:48.000Z | import numpy as np
from skimage import dtype_limits
from skimage.util import invert
from skimage._shared.testing import assert_array_equal
def test_invert_bool():
dtype = 'bool'
image = np.zeros((3, 3), dtype=dtype)
upper_dtype_limit = dtype_limits(image, clip_negative=False)[1]
image[1, :] = upper_d... | 30.72 | 67 | 0.684896 | 218 | 1,536 | 4.587156 | 0.151376 | 0.12 | 0.18 | 0.072 | 0.811 | 0.811 | 0.811 | 0.811 | 0.811 | 0.811 | 0 | 0.032077 | 0.188151 | 1,536 | 49 | 68 | 31.346939 | 0.769848 | 0 | 0 | 0.7 | 0 | 0 | 0.013021 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.1 | false | 0 | 0.1 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
0c38d379e6c8a1701d5f7184038b977ce7e746bb | 82 | py | Python | emoji_puncher/entity/__init__.py | GIider/EmojiPuncher | 87f93df7b647d1ddb53d7fe6cd579b7c2cd57071 | [
"MIT"
] | null | null | null | emoji_puncher/entity/__init__.py | GIider/EmojiPuncher | 87f93df7b647d1ddb53d7fe6cd579b7c2cd57071 | [
"MIT"
] | null | null | null | emoji_puncher/entity/__init__.py | GIider/EmojiPuncher | 87f93df7b647d1ddb53d7fe6cd579b7c2cd57071 | [
"MIT"
] | null | null | null | # coding=utf-8
from .action import *
from .platform import *
from .player import * | 20.5 | 23 | 0.731707 | 12 | 82 | 5 | 0.666667 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014493 | 0.158537 | 82 | 4 | 24 | 20.5 | 0.855072 | 0.146341 | 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 | 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 | 6 |
0c3c829d7ad786ca00eaa554d86c23723e183f50 | 72 | py | Python | mnist_py/models/__init__.py | vijayagril/mnist_cnn_cuda | ecd088f3b46cae23dc986dea8926615c85cf631c | [
"MIT"
] | null | null | null | mnist_py/models/__init__.py | vijayagril/mnist_cnn_cuda | ecd088f3b46cae23dc986dea8926615c85cf631c | [
"MIT"
] | 2 | 2018-11-25T17:06:04.000Z | 2018-12-16T12:14:02.000Z | mnist_py/models/__init__.py | boczekbartek/mnist_cnn_cuda | ecd088f3b46cae23dc986dea8926615c85cf631c | [
"MIT"
] | 1 | 2021-09-05T17:12:49.000Z | 2021-09-05T17:12:49.000Z | from .big_cnn import *
from .small_cnn import *
from . basic_nn import * | 24 | 24 | 0.75 | 12 | 72 | 4.25 | 0.583333 | 0.352941 | 0.509804 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 72 | 3 | 25 | 24 | 0.85 | 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 | 0 | 0 | 0 | 6 |
0c3f88b18b2bb93dc414a8a10b2d3201112377d6 | 3,129 | py | Python | mayan/apps/ocr/tests/test_document_type_api.py | atitaya1412/Mayan-EDMS | bda9302ba4b743e7d829ad118b8b836221888172 | [
"Apache-2.0"
] | 343 | 2015-01-05T14:19:35.000Z | 2018-12-10T19:07:48.000Z | mayan/apps/ocr/tests/test_document_type_api.py | atitaya1412/Mayan-EDMS | bda9302ba4b743e7d829ad118b8b836221888172 | [
"Apache-2.0"
] | 191 | 2015-01-03T00:48:19.000Z | 2018-11-30T09:10:25.000Z | mayan/apps/ocr/tests/test_document_type_api.py | atitaya1412/Mayan-EDMS | bda9302ba4b743e7d829ad118b8b836221888172 | [
"Apache-2.0"
] | 257 | 2019-05-14T10:26:37.000Z | 2022-03-30T03:37:36.000Z | from rest_framework import status
from mayan.apps.documents.tests.mixins.document_mixins import DocumentTestMixin
from mayan.apps.rest_api.tests.base import BaseAPITestCase
from ..permissions import permission_document_type_ocr_setup
from .mixins import DocumentTypeOCRSettingsAPIViewTestMixin
class DocumentTypeOCR... | 35.556818 | 83 | 0.742729 | 382 | 3,129 | 5.578534 | 0.146597 | 0.106992 | 0.112623 | 0.106992 | 0.825903 | 0.811825 | 0.811825 | 0.811825 | 0.811825 | 0.791178 | 0 | 0.009393 | 0.183445 | 3,129 | 87 | 84 | 35.965517 | 0.824658 | 0 | 0 | 0.672131 | 0 | 0 | 0.00767 | 0 | 0 | 0 | 0 | 0 | 0.245902 | 1 | 0.098361 | false | 0 | 0.081967 | 0 | 0.213115 | 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 | 0 | 0 | 0 | 6 |
a74d95ffc79da8ec60c74ca704dc9a04522d7b68 | 252 | py | Python | send_one.py | MehmedGIT/P4_Copy_To_CPU | 714ee604b8f98e71a68318106bfed8de6f310abb | [
"Apache-2.0"
] | 1 | 2019-05-21T22:11:25.000Z | 2019-05-21T22:11:25.000Z | send_one.py | MehmedGIT/P4_Copy_To_CPU | 714ee604b8f98e71a68318106bfed8de6f310abb | [
"Apache-2.0"
] | null | null | null | send_one.py | MehmedGIT/P4_Copy_To_CPU | 714ee604b8f98e71a68318106bfed8de6f310abb | [
"Apache-2.0"
] | 3 | 2018-03-23T01:58:47.000Z | 2021-04-25T07:08:42.000Z | from scapy.all import *
import sys
p = Ether(src="00:00:00:00:01:00", dst="00:00:00:00:00:01") / IP(src="10.0.1.0", dst="10.0.0.1") / TCP(flags='CE') / "< P1 from Veth8: 10.0.1.0 --> 10.0.0.1!>"
# p.show()
hexdump(p)
# ls(p)
sendp(p, iface = "veth8")
| 28 | 159 | 0.571429 | 57 | 252 | 2.526316 | 0.438596 | 0.194444 | 0.208333 | 0.166667 | 0.138889 | 0 | 0 | 0 | 0 | 0 | 0 | 0.214612 | 0.130952 | 252 | 8 | 160 | 31.5 | 0.442922 | 0.055556 | 0 | 0 | 0 | 0.2 | 0.412766 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
a7771b6a3854441916163339a898c369011acbc5 | 2,640 | py | Python | tests/test_inspector.py | DalavanCloud/Logger-1 | 423cab2e8d68b4d715c12fd3339e51319ffd6e1d | [
"BSD-2-Clause"
] | 1 | 2019-03-16T04:11:23.000Z | 2019-03-16T04:11:23.000Z | tests/test_inspector.py | DalavanCloud/Logger-1 | 423cab2e8d68b4d715c12fd3339e51319ffd6e1d | [
"BSD-2-Clause"
] | null | null | null | tests/test_inspector.py | DalavanCloud/Logger-1 | 423cab2e8d68b4d715c12fd3339e51319ffd6e1d | [
"BSD-2-Clause"
] | null | null | null | import unittest
from logger import inspector
from mocker import ANY, MockerTestCase
class TestInspectorTests(MockerTestCase):
def test_is_valid_filename_node1(self):
insp = inspector.Inspector('/var/www/scielo.br/2015-12-30_scielo.br.1.log.gz')
self.assertTrue(insp._is_valid_filename())
... | 35.2 | 88 | 0.684848 | 354 | 2,640 | 4.833333 | 0.146893 | 0.077732 | 0.051432 | 0.146113 | 0.910579 | 0.897721 | 0.886032 | 0.830508 | 0.785506 | 0.759205 | 0 | 0.04556 | 0.185227 | 2,640 | 74 | 89 | 35.675676 | 0.749884 | 0 | 0 | 0.5 | 0 | 0.019231 | 0.197348 | 0.176136 | 0 | 0 | 0 | 0 | 0.230769 | 1 | 0.192308 | false | 0 | 0.057692 | 0 | 0.269231 | 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 | 0 | 0 | 0 | 6 |
a7bac578e643faadb42ca53cac3ac013f9a9339c | 235 | py | Python | dotpy/components/attribute.py | Francesco17/dotpy | 36c8a94a80bd526226032a81d8f8e955b436dbbb | [
"MIT"
] | null | null | null | dotpy/components/attribute.py | Francesco17/dotpy | 36c8a94a80bd526226032a81d8f8e955b436dbbb | [
"MIT"
] | null | null | null | dotpy/components/attribute.py | Francesco17/dotpy | 36c8a94a80bd526226032a81d8f8e955b436dbbb | [
"MIT"
] | null | null | null | class Attribute:
def __init__(self, first_attr, second_attr):
self.first_attr = first_attr
self.second_attr = second_attr
def __str__(self):
return "{0} = {1}".format(self.first_attr, self.second_attr) | 29.375 | 68 | 0.668085 | 32 | 235 | 4.40625 | 0.40625 | 0.255319 | 0.276596 | 0.269504 | 0.326241 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010929 | 0.221277 | 235 | 8 | 68 | 29.375 | 0.759563 | 0 | 0 | 0 | 0 | 0 | 0.038136 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.166667 | 0.666667 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 6 |
a7cf20ac261246392b03a91d96bc8954d241fc8a | 207 | py | Python | django_bitcoin/context_processors.py | mladenangelov/django-bitcoin | 78bd509d815cfa27dbfd0a743aa742af644d27bf | [
"MIT"
] | 63 | 2015-01-16T19:59:17.000Z | 2022-03-18T22:39:38.000Z | django_bitcoin/context_processors.py | mladenangelov/django-bitcoin | 78bd509d815cfa27dbfd0a743aa742af644d27bf | [
"MIT"
] | 10 | 2019-12-26T17:31:31.000Z | 2022-03-21T22:17:33.000Z | django_bitcoin/context_processors.py | texib/bitcoin-zoo | 69dc3443a5132ef02f340676a985e4ad9a244eed | [
"MIT"
] | 64 | 2015-01-14T01:22:14.000Z | 2022-03-22T18:53:18.000Z | from django_bitcoin.models import bitcoinprice_eur, bitcoinprice_usd
def bitcoinprice(request):
return {'bitcoinprice_eur': bitcoinprice_eur(),
'bitcoinprice_usd': bitcoinprice_usd(),
}
| 29.571429 | 68 | 0.743961 | 21 | 207 | 7 | 0.52381 | 0.306122 | 0.55102 | 0.408163 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164251 | 207 | 6 | 69 | 34.5 | 0.849711 | 0 | 0 | 0 | 0 | 0 | 0.154589 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.2 | 0.6 | 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 | 0 | 1 | 0 | 0 | 0 | 6 |
ac04b9d9ebd4955c83d93fbe958b130d159a2af4 | 191 | py | Python | nitorch/cli/misc/__init__.py | balbasty/nitorch | d30c3125a8a66ea1434f2b39ed03338afd9724b4 | [
"MIT"
] | 46 | 2020-07-31T10:14:05.000Z | 2022-03-24T12:51:46.000Z | nitorch/cli/misc/__init__.py | balbasty/nitorch | d30c3125a8a66ea1434f2b39ed03338afd9724b4 | [
"MIT"
] | 36 | 2020-10-06T19:01:38.000Z | 2022-02-03T18:07:35.000Z | nitorch/cli/misc/__init__.py | balbasty/nitorch | d30c3125a8a66ea1434f2b39ed03338afd9724b4 | [
"MIT"
] | 6 | 2021-01-05T14:59:05.000Z | 2021-11-18T18:26:45.000Z | from . import chunk
from . import convert
from . import crop
from . import extract_patches
from . import info
from . import inpaint
from . import pad
from . import pool
from . import unstack
| 19.1 | 29 | 0.764398 | 28 | 191 | 5.178571 | 0.428571 | 0.62069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.188482 | 191 | 9 | 30 | 21.222222 | 0.935484 | 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 | 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 | 6 |
ac1bcce44f28d83983b8a7d480780e47b3aa8fbe | 10,661 | py | Python | datasets.py | BenCowen/pytorch_tutorial | 65bd8c5a041ce3973587760a45db70a91d8a1708 | [
"MIT"
] | null | null | null | datasets.py | BenCowen/pytorch_tutorial | 65bd8c5a041ce3973587760a45db70a91d8a1708 | [
"MIT"
] | null | null | null | datasets.py | BenCowen/pytorch_tutorial | 65bd8c5a041ce3973587760a45db70a91d8a1708 | [
"MIT"
] | null | null | null | """
Creates datasets and dataloaders for various torchvision classes.
"""
import torch
from torchvision import datasets, transforms
from torch.utils.data.sampler import SubsetRandomSampler
from random import shuffle
def load_dataset(namedataset='mnist', batch_size=200,
vectorize=False, num_workers=1,... | 41.321705 | 122 | 0.618422 | 1,191 | 10,661 | 5.380353 | 0.146096 | 0.040574 | 0.028402 | 0.037453 | 0.777778 | 0.749844 | 0.749844 | 0.747815 | 0.739856 | 0.721286 | 0 | 0.024413 | 0.285339 | 10,661 | 257 | 123 | 41.48249 | 0.816643 | 0.154676 | 0 | 0.770701 | 0 | 0 | 0.046736 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.006369 | false | 0 | 0.025478 | 0 | 0.038217 | 0.063694 | 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 | 0 | 0 | 0 | 6 |
ac6d4e75d58927eb9a8956a11ffc4bde94dde61c | 118 | py | Python | lib/djasync/utils.py | hdknr/djasync | e626ca1871a6aa1b9e4337601c1b698c82397d89 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | lib/djasync/utils.py | hdknr/djasync | e626ca1871a6aa1b9e4337601c1b698c82397d89 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | lib/djasync/utils.py | hdknr/djasync | e626ca1871a6aa1b9e4337601c1b698c82397d89 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | import shelve
def get_db(path):
return shelve.open(path)
def get_db_dict(path):
return dict(get_db(path))
| 11.8 | 29 | 0.70339 | 20 | 118 | 3.95 | 0.45 | 0.189873 | 0.202532 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.186441 | 118 | 9 | 30 | 13.111111 | 0.822917 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0.2 | 0.4 | 1 | 0 | 1 | 0 | 0 | null | 0 | 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 | 6 |
ac87190506c15606d1bef4a03f6b8665f903940f | 46 | py | Python | config.py | VitaliKaiser/udacity_drl_p3_collab-compet | a1a9060dbf6874766661ad3fe9a71e486aa5a60b | [
"MIT"
] | null | null | null | config.py | VitaliKaiser/udacity_drl_p3_collab-compet | a1a9060dbf6874766661ad3fe9a71e486aa5a60b | [
"MIT"
] | null | null | null | config.py | VitaliKaiser/udacity_drl_p3_collab-compet | a1a9060dbf6874766661ad3fe9a71e486aa5a60b | [
"MIT"
] | null | null | null |
PATH_TO_TENNIS = "/YOUR/PATH/TO/TENNIS/HERE"
| 15.333333 | 44 | 0.73913 | 8 | 46 | 4 | 0.625 | 0.375 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086957 | 46 | 2 | 45 | 23 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0.555556 | 0.555556 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
3bb52350dc024e75f2b02b26d054cf50e8220026 | 74 | py | Python | jupyterlabpymolpysnips/Analysis/printBspartB.py | MooersLab/pymolpysnips | 50a89c85adf8006d85c1d6cd3f8aad7e440a0b92 | [
"MIT"
] | null | null | null | jupyterlabpymolpysnips/Analysis/printBspartB.py | MooersLab/pymolpysnips | 50a89c85adf8006d85c1d6cd3f8aad7e440a0b92 | [
"MIT"
] | null | null | null | jupyterlabpymolpysnips/Analysis/printBspartB.py | MooersLab/pymolpysnips | 50a89c85adf8006d85c1d6cd3f8aad7e440a0b92 | [
"MIT"
] | null | null | null | cmd.do('iterate resi %{1:38 and altloc %{2:B, print resi, name, alt, b;')
| 37 | 73 | 0.635135 | 15 | 74 | 3.133333 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063492 | 0.148649 | 74 | 1 | 74 | 74 | 0.68254 | 0 | 0 | 0 | 0 | 1 | 0.851351 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
3bdf9aa28d5e44d829b21e32795175c7952cff77 | 655 | py | Python | thrift/compiler/test/fixtures/py3/gen-py3lite/empty/lite_clients.py | killight98/fbthrift | c28d5036f96f7eab67c30abadc5ddbe627a11ee3 | [
"Apache-2.0"
] | 2,112 | 2015-01-02T11:34:27.000Z | 2022-03-31T16:30:42.000Z | thrift/compiler/test/fixtures/py3/gen-py3lite/empty/lite_clients.py | killight98/fbthrift | c28d5036f96f7eab67c30abadc5ddbe627a11ee3 | [
"Apache-2.0"
] | 372 | 2015-01-05T10:40:09.000Z | 2022-03-31T20:45:11.000Z | thrift/compiler/test/fixtures/py3/gen-py3lite/empty/lite_clients.py | killight98/fbthrift | c28d5036f96f7eab67c30abadc5ddbe627a11ee3 | [
"Apache-2.0"
] | 582 | 2015-01-03T01:51:56.000Z | 2022-03-31T02:01:09.000Z | #
# Autogenerated by Thrift
#
# DO NOT EDIT
# @generated
#
import typing as _typing
import folly.iobuf as _fbthrift_iobuf
from thrift.py3lite.client import (
AsyncClient as _fbthrift_py3lite_AsyncClient,
SyncClient as _fbthrift_py3lite_SyncClient,
Client as _fbthrift_py3lite_Client,
)
import thrift.py3li... | 23.392857 | 85 | 0.793893 | 78 | 655 | 6.307692 | 0.346154 | 0.243902 | 0.172764 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019713 | 0.148092 | 655 | 27 | 86 | 24.259259 | 0.862007 | 0.071756 | 0 | 0.133333 | 1 | 0 | 0.055 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.133333 | 0.4 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 6 |
3bfbbfcb8550725ad86142b0b5c4baa0ebeea3c4 | 65 | py | Python | dice/__init__.py | skritch/dice | 9ca4fc7fde6d91a38c8903fde2967401650d04dd | [
"MIT"
] | null | null | null | dice/__init__.py | skritch/dice | 9ca4fc7fde6d91a38c8903fde2967401650d04dd | [
"MIT"
] | null | null | null | dice/__init__.py | skritch/dice | 9ca4fc7fde6d91a38c8903fde2967401650d04dd | [
"MIT"
] | null | null | null | from .dice import Dice, roll, d, d4, d6, d8, d10, d12, d20, d100
| 32.5 | 64 | 0.646154 | 13 | 65 | 3.230769 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.230769 | 0.2 | 65 | 1 | 65 | 65 | 0.576923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 6 |
ce0ca96ce12c3eeb39e56cf3888641f4232bcdd9 | 25 | py | Python | nanome/api/macro/__init__.py | nanome-ai/nanome-plugin-api | f2ce6a5e3123ee7449a90c2659f3891124289f4a | [
"MIT"
] | 3 | 2020-07-02T13:08:27.000Z | 2021-11-24T14:32:53.000Z | nanome/api/macro/__init__.py | nanome-ai/nanome-plugin-api | f2ce6a5e3123ee7449a90c2659f3891124289f4a | [
"MIT"
] | 11 | 2020-09-14T17:01:47.000Z | 2022-02-18T04:00:52.000Z | nanome/api/macro/__init__.py | nanome-ai/nanome-plugin-api | f2ce6a5e3123ee7449a90c2659f3891124289f4a | [
"MIT"
] | 5 | 2020-08-12T16:30:03.000Z | 2021-12-06T18:04:23.000Z | from .macro import Macro
| 12.5 | 24 | 0.8 | 4 | 25 | 5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16 | 25 | 1 | 25 | 25 | 0.952381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
ce0e164714db564e9babdb622605a4ef9b108e58 | 70 | py | Python | regulation/regutil/__init__.py | RNatvik/rntools | ddaf8f9cc440bcd0ed0439f087bc951e0add6dce | [
"MIT"
] | null | null | null | regulation/regutil/__init__.py | RNatvik/rntools | ddaf8f9cc440bcd0ed0439f087bc951e0add6dce | [
"MIT"
] | 1 | 2020-08-11T16:05:51.000Z | 2020-08-11T16:05:51.000Z | regulation/regutil/__init__.py | RNatvik/rntools | ddaf8f9cc440bcd0ed0439f087bc951e0add6dce | [
"MIT"
] | null | null | null | import regutil.controllers as controllers
import regutil.util as util
| 23.333333 | 41 | 0.857143 | 10 | 70 | 6 | 0.5 | 0.433333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114286 | 70 | 2 | 42 | 35 | 0.967742 | 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 | 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 | 6 |
ce21e8f556c479398ed70dc13fd4b0ee91d7c62c | 18 | py | Python | dashboard-project/dashboard/settings/__init__.py | Sheepzez/dumfries-economic-dashboard | 6332772ccddca110d54a01cad38f6f720d05e798 | [
"Unlicense"
] | 1 | 2016-05-01T21:21:58.000Z | 2016-05-01T21:21:58.000Z | dashboard-project/dashboard/settings/__init__.py | Sheepzez/dumfries-economic-dashboard | 6332772ccddca110d54a01cad38f6f720d05e798 | [
"Unlicense"
] | null | null | null | dashboard-project/dashboard/settings/__init__.py | Sheepzez/dumfries-economic-dashboard | 6332772ccddca110d54a01cad38f6f720d05e798 | [
"Unlicense"
] | null | null | null | from dev import *
| 9 | 17 | 0.722222 | 3 | 18 | 4.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 18 | 1 | 18 | 18 | 0.928571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
cbee21299d00b64245f92f40be7ac01331028e8f | 1,924 | py | Python | repos/system_upgrade/common/libraries/config/mock_configs.py | sm00th/leapp-repository | 1c171ec3a5f9260a3c6f84a9b15cad78a875ac61 | [
"Apache-2.0"
] | 21 | 2018-11-20T15:58:39.000Z | 2022-03-15T19:57:24.000Z | repos/system_upgrade/common/libraries/config/mock_configs.py | sm00th/leapp-repository | 1c171ec3a5f9260a3c6f84a9b15cad78a875ac61 | [
"Apache-2.0"
] | 732 | 2018-11-21T18:33:26.000Z | 2022-03-31T16:16:24.000Z | repos/system_upgrade/common/libraries/config/mock_configs.py | sm00th/leapp-repository | 1c171ec3a5f9260a3c6f84a9b15cad78a875ac61 | [
"Apache-2.0"
] | 85 | 2018-11-20T17:55:00.000Z | 2022-03-29T09:40:31.000Z |
"""
This is not regular library.
The library is supposed to be used only for testing purposes. Import of the
library is expected only inside test files.
"""
from leapp.models import IPUConfig, EnvVar, OSRelease, Version
CONFIG = IPUConfig(
leapp_env_vars=[EnvVar(name='LEAPP_DEVEL', value='0')],
os_release=O... | 24.987013 | 112 | 0.602911 | 261 | 1,924 | 4.275862 | 0.256705 | 0.021505 | 0.053763 | 0.089606 | 0.759857 | 0.759857 | 0.759857 | 0.759857 | 0.723118 | 0.723118 | 0 | 0.078404 | 0.244283 | 1,924 | 76 | 113 | 25.315789 | 0.689133 | 0.077443 | 0 | 0.796875 | 0 | 0 | 0.249717 | 0.088335 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.015625 | 0 | 0.015625 | 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 | 0 | 0 | 0 | 6 |
022078c36fc3aff54f0ae1549bf527a1d839a7b3 | 114 | py | Python | view_user_permission/admin.py | erfan-mehraban/vup | 1a193ba5df8385628b4d0a49cf10db95ec87d895 | [
"MIT"
] | null | null | null | view_user_permission/admin.py | erfan-mehraban/vup | 1a193ba5df8385628b4d0a49cf10db95ec87d895 | [
"MIT"
] | null | null | null | view_user_permission/admin.py | erfan-mehraban/vup | 1a193ba5df8385628b4d0a49cf10db95ec87d895 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import *
admin.site.register(Permission)
admin.site.register(Group) | 22.8 | 32 | 0.815789 | 16 | 114 | 5.8125 | 0.625 | 0.236559 | 0.365591 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.087719 | 114 | 5 | 33 | 22.8 | 0.894231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 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 | 0 | 0 | 0 | 6 |
0289bad5728f65310e0e375e28fdc85258bae863 | 1,309 | py | Python | SayuBot/helper/mongo_connect.py | TaprisSugarbell/SayUbot | 8c8beea35af3229d24cdbdd7b03063e9c52a4346 | [
"MIT"
] | null | null | null | SayuBot/helper/mongo_connect.py | TaprisSugarbell/SayUbot | 8c8beea35af3229d24cdbdd7b03063e9c52a4346 | [
"MIT"
] | null | null | null | SayuBot/helper/mongo_connect.py | TaprisSugarbell/SayUbot | 8c8beea35af3229d24cdbdd7b03063e9c52a4346 | [
"MIT"
] | null | null | null | import os
from dotenv import load_dotenv
from .mongo_db import *
# Variables
load_dotenv()
URI = os.getenv("URI")
async def confirm(user_db, data=None):
if data is None:
data = {}
return user_db.find(data)
async def add_(user_db, data=None):
if data is None:
data = {}
return user_db... | 19.833333 | 57 | 0.644003 | 210 | 1,309 | 3.766667 | 0.142857 | 0.136536 | 0.139064 | 0.182048 | 0.758534 | 0.758534 | 0.758534 | 0.758534 | 0.758534 | 0.758534 | 0 | 0 | 0.254393 | 1,309 | 65 | 58 | 20.138462 | 0.810451 | 0.006875 | 0 | 0.666667 | 0 | 0 | 0.002311 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.066667 | 0 | 0.377778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
5a04a60353b552f6fd75f82c74ff98fc941fd4ef | 298 | py | Python | intersight/resources/ntppolicy.py | sambyers/devnet_learning | d52391ddcc22daf90bd56942d631f781325aa8f6 | [
"MIT"
] | null | null | null | intersight/resources/ntppolicy.py | sambyers/devnet_learning | d52391ddcc22daf90bd56942d631f781325aa8f6 | [
"MIT"
] | null | null | null | intersight/resources/ntppolicy.py | sambyers/devnet_learning | d52391ddcc22daf90bd56942d631f781325aa8f6 | [
"MIT"
] | null | null | null |
class NtpPolicy(object):
def __init__(self, rest_client):
self.rest_client = rest_client
self.path = '/api/v1/ntp/Policies'
def get(self):
return self.rest_client.get(self.path)
def get_byid(self, id):
return self.rest_client.get(self.path+f'/{id}')
| 22.923077 | 55 | 0.637584 | 43 | 298 | 4.186047 | 0.418605 | 0.277778 | 0.311111 | 0.222222 | 0.344444 | 0.344444 | 0.344444 | 0 | 0 | 0 | 0 | 0.004348 | 0.228188 | 298 | 12 | 56 | 24.833333 | 0.778261 | 0 | 0 | 0 | 0 | 0 | 0.084459 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0 | 0.25 | 0.75 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
5a42bcb054b49580605d5e0d8399ac0137acf5ef | 10,141 | py | Python | tests/testdata.py | Monero-Monitor/moneropy | 98e7feb20bf8595e6a0d0dda06c73517f5bb3ad4 | [
"BSD-3-Clause"
] | 57 | 2016-12-25T17:01:07.000Z | 2021-09-07T06:11:50.000Z | tests/testdata.py | Monero-Monitor/moneropy | 98e7feb20bf8595e6a0d0dda06c73517f5bb3ad4 | [
"BSD-3-Clause"
] | 5 | 2017-01-09T21:53:43.000Z | 2018-01-10T11:03:24.000Z | tests/testdata.py | Monero-Monitor/moneropy | 98e7feb20bf8595e6a0d0dda06c73517f5bb3ad4 | [
"BSD-3-Clause"
] | 21 | 2017-02-08T11:33:32.000Z | 2022-03-24T01:18:49.000Z | # These seeds, sks, vks, and addrs are all valid and derived from one another:
valid_seeds = [
['zebra','oasis','oncoming','wobbly','yawning','tiers','reef','friendly','maze','shyness','unknown','eavesdrop','zapped','lumber','often','spiders','twang','afloat','elite','vein','auctions','ingested','demonstrate','dipl... | 76.24812 | 456 | 0.781383 | 725 | 10,141 | 10.892414 | 0.533793 | 0.003039 | 0.004179 | 0.005065 | 0.432949 | 0.189819 | 0.189819 | 0.189819 | 0.189819 | 0.189819 | 0 | 0.439116 | 0.084903 | 10,141 | 132 | 457 | 76.825758 | 0.411853 | 0.023962 | 0 | 0.266667 | 0 | 0 | 0.642843 | 0.487161 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 6 |
5a52bdbb42b7d47d0dd40a720a4d3ed5fc9655a9 | 95 | py | Python | graph_util/__init__.py | rahular/joint-coref-srl | cd85fb4e11af1a1ea400ed657d0a4511c1d6c6be | [
"MIT"
] | null | null | null | graph_util/__init__.py | rahular/joint-coref-srl | cd85fb4e11af1a1ea400ed657d0a4511c1d6c6be | [
"MIT"
] | null | null | null | graph_util/__init__.py | rahular/joint-coref-srl | cd85fb4e11af1a1ea400ed657d0a4511c1d6c6be | [
"MIT"
] | null | null | null | from graph_util.graph_encoder_gat import GAT
from graph_util.output_to_graph import json2graph
| 31.666667 | 49 | 0.894737 | 16 | 95 | 4.9375 | 0.5625 | 0.227848 | 0.329114 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011494 | 0.084211 | 95 | 2 | 50 | 47.5 | 0.896552 | 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 | 0 | 0 | 0 | 6 |
5a58cd195f052cae12c8cce7279d629a5c5f6a60 | 176 | py | Python | Codewars/Maximum_product_7_kyu.py | maxcohen31/A-bored-math-student | 007beb4dabf7b4406f48e9a3a967c29d032eab89 | [
"MIT"
] | null | null | null | Codewars/Maximum_product_7_kyu.py | maxcohen31/A-bored-math-student | 007beb4dabf7b4406f48e9a3a967c29d032eab89 | [
"MIT"
] | null | null | null | Codewars/Maximum_product_7_kyu.py | maxcohen31/A-bored-math-student | 007beb4dabf7b4406f48e9a3a967c29d032eab89 | [
"MIT"
] | null | null | null | def adjacent_element_product(array):
return max(array[number] * array[number+1] for number in range(len(array) - 1))
l = [1, 2]
print(adjacent_element_product(l)) | 29.333333 | 83 | 0.693182 | 27 | 176 | 4.37037 | 0.592593 | 0.254237 | 0.372881 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027397 | 0.170455 | 176 | 6 | 84 | 29.333333 | 0.780822 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.25 | 0.5 | 0.25 | 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 | 0 | 0 | 0 | 6 |
5a6f526d270c4d51bab042777fd9f788af0fa3b5 | 42 | py | Python | test/test_pdi/test_universes.py | cmc333333/parsons | 50804a3627117797570f1e9233c9bbad583f7831 | [
"Apache-2.0"
] | 3 | 2019-09-05T16:57:15.000Z | 2019-10-01T19:56:58.000Z | test/test_pdi/test_universes.py | cmc333333/parsons | 50804a3627117797570f1e9233c9bbad583f7831 | [
"Apache-2.0"
] | 22 | 2019-09-03T13:23:37.000Z | 2019-10-03T20:32:48.000Z | test/test_pdi/test_universes.py | cmc333333/parsons | 50804a3627117797570f1e9233c9bbad583f7831 | [
"Apache-2.0"
] | 2 | 2019-09-01T18:30:10.000Z | 2019-10-03T20:07:46.000Z | # TODO: Add tests for PDI Universes class
| 21 | 41 | 0.761905 | 7 | 42 | 4.571429 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190476 | 42 | 1 | 42 | 42 | 0.941176 | 0.928571 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 1 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
ce7e201f8c7ecde542b0899ae4bbcac172d7e273 | 159 | py | Python | Users/apps.py | jinxy17/library-management | 06ca716e201f01a3c207901aeca51ae2d34ebd2c | [
"MIT"
] | null | null | null | Users/apps.py | jinxy17/library-management | 06ca716e201f01a3c207901aeca51ae2d34ebd2c | [
"MIT"
] | null | null | null | Users/apps.py | jinxy17/library-management | 06ca716e201f01a3c207901aeca51ae2d34ebd2c | [
"MIT"
] | null | null | null | ''' App Config for the app Users '''
from django.apps import AppConfig
class UsersConfig(AppConfig):
''' Config for the app Users '''
name = 'Users'
| 19.875 | 36 | 0.666667 | 21 | 159 | 5.047619 | 0.619048 | 0.169811 | 0.226415 | 0.283019 | 0.377358 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.213836 | 159 | 7 | 37 | 22.714286 | 0.848 | 0.339623 | 0 | 0 | 0 | 0 | 0.054945 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 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 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
0cc00812d160d008bb383ba4872f73462dfe86fc | 1,676 | py | Python | build/trossen/interbotix_ros_core/interbotix_ros_xseries/interbotix_xs_sdk/cmake/interbotix_xs_sdk-genmsg-context.py | Jam-cpu/Masters-Project---Final | 0b266b1f117a579b96507249f0a128d0e3cc082a | [
"BSD-3-Clause-Clear"
] | null | null | null | build/trossen/interbotix_ros_core/interbotix_ros_xseries/interbotix_xs_sdk/cmake/interbotix_xs_sdk-genmsg-context.py | Jam-cpu/Masters-Project---Final | 0b266b1f117a579b96507249f0a128d0e3cc082a | [
"BSD-3-Clause-Clear"
] | null | null | null | build/trossen/interbotix_ros_core/interbotix_ros_xseries/interbotix_xs_sdk/cmake/interbotix_xs_sdk-genmsg-context.py | Jam-cpu/Masters-Project---Final | 0b266b1f117a579b96507249f0a128d0e3cc082a | [
"BSD-3-Clause-Clear"
] | null | null | null | # generated from genmsg/cmake/pkg-genmsg.context.in
messages_str = "/workspace/src/trossen/interbotix_ros_core/interbotix_ros_xseries/interbotix_xs_sdk/msg/JointGroupCommand.msg;/workspace/src/trossen/interbotix_ros_core/interbotix_ros_xseries/interbotix_xs_sdk/msg/JointSingleCommand.msg;/workspace/src/trossen/interbo... | 139.666667 | 639 | 0.862768 | 240 | 1,676 | 5.658333 | 0.2625 | 0.191458 | 0.132548 | 0.213549 | 0.613402 | 0.564801 | 0.564801 | 0.564801 | 0.564801 | 0.564801 | 0 | 0.000609 | 0.020286 | 1,676 | 11 | 640 | 152.363636 | 0.826431 | 0.029236 | 0 | 0 | 1 | 0.333333 | 0.875077 | 0.852308 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
0b376f6fdd1ceea71f6556966f3ed79afd47b1a1 | 199 | py | Python | dynadown/plugins/python.py | probablytom/dynamic-markdown | 9a94976b408ca1b09880d5e1d2d6cda619182d50 | [
"MIT"
] | null | null | null | dynadown/plugins/python.py | probablytom/dynamic-markdown | 9a94976b408ca1b09880d5e1d2d6cda619182d50 | [
"MIT"
] | null | null | null | dynadown/plugins/python.py | probablytom/dynamic-markdown | 9a94976b408ca1b09880d5e1d2d6cda619182d50 | [
"MIT"
] | null | null | null | from dynadown import register_plugin
class PythonPlugin:
def __init__(self):
pass
def evaluate(self, block):
return str(eval(block))
register_plugin('python', PythonPlugin)
| 19.9 | 39 | 0.703518 | 23 | 199 | 5.826087 | 0.73913 | 0.208955 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.211055 | 199 | 9 | 40 | 22.111111 | 0.853503 | 0 | 0 | 0 | 0 | 0 | 0.030151 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0.142857 | 0.142857 | 0.142857 | 0.714286 | 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 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 6 |
0b4b2794883f76d15e06a59c2626dd7d3dd7d09f | 11,168 | py | Python | src/tests/test_pagure_flask_api_issue_create.py | yifengyou/learn-pagure | e54ba955368918c92ad2be6347b53bb2c24a228c | [
"Unlicense"
] | null | null | null | src/tests/test_pagure_flask_api_issue_create.py | yifengyou/learn-pagure | e54ba955368918c92ad2be6347b53bb2c24a228c | [
"Unlicense"
] | null | null | null | src/tests/test_pagure_flask_api_issue_create.py | yifengyou/learn-pagure | e54ba955368918c92ad2be6347b53bb2c24a228c | [
"Unlicense"
] | null | null | null | # -*- coding: utf-8 -*-
"""
(c) 2017 - Copyright Red Hat Inc
Authors:
Pierre-Yves Chibon <pingou@pingoured.fr>
"""
from __future__ import unicode_literals, absolute_import
import datetime
import unittest
import sys
import os
import json
from mock import patch, MagicMock
sys.path.insert(
0, os.path.join(... | 35.009404 | 79 | 0.514595 | 1,112 | 11,168 | 5.035971 | 0.17446 | 0.045536 | 0.02 | 0.02625 | 0.846071 | 0.840714 | 0.813214 | 0.813214 | 0.813214 | 0.804464 | 0 | 0.024142 | 0.365777 | 11,168 | 318 | 80 | 35.119497 | 0.766483 | 0.12885 | 0 | 0.648069 | 0 | 0 | 0.233644 | 0.025018 | 0 | 0 | 0 | 0 | 0.072961 | 1 | 0.030043 | false | 0 | 0.038627 | 0 | 0.072961 | 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 | 0 | 0 | 0 | 6 |
0b7536e4d9b9f76afc1cb177b75642b5a272e815 | 39 | py | Python | main.py | slacke/python-box | 64bb30a6efa8a28c7eacc919395d8be9ea26942d | [
"MIT"
] | 3 | 2021-01-16T15:07:41.000Z | 2022-03-09T09:24:17.000Z | main.py | slacke/pythonbox | 64bb30a6efa8a28c7eacc919395d8be9ea26942d | [
"MIT"
] | null | null | null | main.py | slacke/pythonbox | 64bb30a6efa8a28c7eacc919395d8be9ea26942d | [
"MIT"
] | null | null | null | import pythonbox
# your program here | 13 | 19 | 0.769231 | 5 | 39 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.205128 | 39 | 3 | 19 | 13 | 0.967742 | 0.435897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
0b8cf9aae73847143d0f4c62fabe36ff3080e222 | 105 | py | Python | facetools/test/__init__.py | bigsassy/django-facetools | aeedaea81ab0007ee8e96b2f81f1404dc8bddb3c | [
"MIT"
] | 2 | 2018-01-24T20:41:27.000Z | 2019-06-27T13:24:18.000Z | facetools/test/__init__.py | bigsassy/django-facetools | aeedaea81ab0007ee8e96b2f81f1404dc8bddb3c | [
"MIT"
] | null | null | null | facetools/test/__init__.py | bigsassy/django-facetools | aeedaea81ab0007ee8e96b2f81f1404dc8bddb3c | [
"MIT"
] | null | null | null | from common import TestUserNotLoaded
from testcases import FacebookTestCase, FacebookTransactionTestCase
| 35 | 67 | 0.904762 | 9 | 105 | 10.555556 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085714 | 105 | 2 | 68 | 52.5 | 0.989583 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
0ba17a8b460d226f145319ccf9eab4a38f0fdaf4 | 44 | py | Python | main.py | marquesYan/lexical-parser | bc6d935cca30b8e46ed8cc2fdba5d4eda06bb9b5 | [
"MIT"
] | null | null | null | main.py | marquesYan/lexical-parser | bc6d935cca30b8e46ed8cc2fdba5d4eda06bb9b5 | [
"MIT"
] | null | null | null | main.py | marquesYan/lexical-parser | bc6d935cca30b8e46ed8cc2fdba5d4eda06bb9b5 | [
"MIT"
] | null | null | null | import lexical_parser
lexical_parser.main() | 14.666667 | 21 | 0.863636 | 6 | 44 | 6 | 0.666667 | 0.722222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068182 | 44 | 3 | 22 | 14.666667 | 0.878049 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 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 | 0 | 0 | 0 | 6 |
0ba6fede1ea9f0e974f32e8510cb532b89c76dd6 | 113 | py | Python | Python/Topics/.loc .iloc/Penguin selecting/main.py | drtierney/hyperskill-problems | b74da993f0ac7bcff1cbd5d89a3a1b06b05f33e0 | [
"MIT"
] | 5 | 2020-08-29T15:15:31.000Z | 2022-03-01T18:22:34.000Z | Python/Topics/.loc .iloc/Penguin selecting/main.py | drtierney/hyperskill-problems | b74da993f0ac7bcff1cbd5d89a3a1b06b05f33e0 | [
"MIT"
] | null | null | null | Python/Topics/.loc .iloc/Penguin selecting/main.py | drtierney/hyperskill-problems | b74da993f0ac7bcff1cbd5d89a3a1b06b05f33e0 | [
"MIT"
] | 1 | 2020-12-02T11:13:14.000Z | 2020-12-02T11:13:14.000Z | # put your code here. The data frame is already loaded and stored as penguins_df.
print(penguins_df.iloc[5:9])
| 28.25 | 82 | 0.761062 | 21 | 113 | 4 | 0.904762 | 0.238095 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021053 | 0.159292 | 113 | 3 | 83 | 37.666667 | 0.863158 | 0.699115 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
f010e72d68914be6ef3218d09f99dbec20d497e8 | 44 | py | Python | geometric2dr/data/__init__.py | paulmorio/geo2dr | 49d5f1cdc0a4aa0c2c19744f6b1c723fd5988955 | [
"MIT"
] | 32 | 2020-03-13T21:09:50.000Z | 2021-10-02T13:01:46.000Z | geometric2dr/data/__init__.py | paulmorio/geo2dr | 49d5f1cdc0a4aa0c2c19744f6b1c723fd5988955 | [
"MIT"
] | 3 | 2020-03-22T14:34:49.000Z | 2021-08-17T15:20:40.000Z | geometric2dr/data/__init__.py | paulmorio/geo2dr | 49d5f1cdc0a4aa0c2c19744f6b1c723fd5988955 | [
"MIT"
] | 5 | 2020-03-29T00:31:10.000Z | 2021-08-17T10:57:32.000Z | from .dortmund_formatter import DortmundGexf | 44 | 44 | 0.909091 | 5 | 44 | 7.8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068182 | 44 | 1 | 44 | 44 | 0.95122 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
f0372b2624b6aa22da17507ef60e8bf8ae4b6441 | 50 | py | Python | wiki/__init__.py | jeffeuxMartin/WikiExtractor | f2290d2e5ed2aad113e98411267c9a6078b05341 | [
"Apache-2.0"
] | 4 | 2020-07-14T12:00:50.000Z | 2020-07-15T16:31:14.000Z | wiki/__init__.py | jeffeuxMartin/WikiExtractor | f2290d2e5ed2aad113e98411267c9a6078b05341 | [
"Apache-2.0"
] | null | null | null | wiki/__init__.py | jeffeuxMartin/WikiExtractor | f2290d2e5ed2aad113e98411267c9a6078b05341 | [
"Apache-2.0"
] | 4 | 2020-07-15T16:46:19.000Z | 2022-03-16T19:00:46.000Z | from wiki.main import *
from wiki.cli import main
| 16.666667 | 25 | 0.78 | 9 | 50 | 4.333333 | 0.555556 | 0.410256 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16 | 50 | 2 | 26 | 25 | 0.928571 | 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 | 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 | 6 |
f03ce05936189c19330b26373814ec3cf9f1acee | 202 | py | Python | weberp/apps/incomes/admin.py | askar-alty/erp | cf5496fd7feed9d79705bbf5a034d1b13b96a98a | [
"MIT"
] | null | null | null | weberp/apps/incomes/admin.py | askar-alty/erp | cf5496fd7feed9d79705bbf5a034d1b13b96a98a | [
"MIT"
] | null | null | null | weberp/apps/incomes/admin.py | askar-alty/erp | cf5496fd7feed9d79705bbf5a034d1b13b96a98a | [
"MIT"
] | null | null | null | from django.contrib import admin
# Register your models here.
from . import models
admin.site.register(models.IncomeItemGroup)
admin.site.register(models.IncomeItem)
admin.site.register(models.Income) | 25.25 | 43 | 0.821782 | 27 | 202 | 6.148148 | 0.481481 | 0.162651 | 0.307229 | 0.415663 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084158 | 202 | 8 | 44 | 25.25 | 0.897297 | 0.128713 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 0.4 | 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 | 0 | 0 | 0 | 6 |
f07069997e0b91b184e095099b994b2c01fb29b3 | 1,267 | py | Python | axelrod/strategies/forgiver.py | DumisaniZA/Axelrod | e59fc40ebb705afe05cea6f30e282d1e9c621259 | [
"MIT"
] | 33 | 2015-02-20T11:36:48.000Z | 2022-02-16T17:02:06.000Z | axelrod/strategies/forgiver.py | DumisaniZA/Axelrod | e59fc40ebb705afe05cea6f30e282d1e9c621259 | [
"MIT"
] | 108 | 2015-02-18T14:15:44.000Z | 2020-05-08T10:39:58.000Z | axelrod/strategies/forgiver.py | DumisaniZA/Axelrod | e59fc40ebb705afe05cea6f30e282d1e9c621259 | [
"MIT"
] | 41 | 2015-02-18T13:40:04.000Z | 2021-05-31T06:08:10.000Z | from axelrod import Player
class Forgiver(Player):
"""
A player starts by cooperating however will defect if at any point
the opponent has defected more than 10 percent of the time
"""
name = 'Forgiver'
def strategy(self, opponent):
"""
Begins by playing C, then plays D if t... | 28.155556 | 103 | 0.599842 | 161 | 1,267 | 4.720497 | 0.347826 | 0.098684 | 0.073684 | 0.115789 | 0.855263 | 0.855263 | 0.776316 | 0.776316 | 0.776316 | 0.776316 | 0 | 0.015222 | 0.325967 | 1,267 | 44 | 104 | 28.795455 | 0.874707 | 0.422257 | 0 | 0.631579 | 0 | 0 | 0.057416 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.052632 | 0 | 0.684211 | 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 | 0 | 0 | 0 | 6 |
b2f853f61ad105301919c60beb3c3a74ef935f0c | 61 | py | Python | py_environment_status/__init__.py | vamseeachanta/py_environment_status | b2461b167a1b63c4e27cfdef12172d294e22a3de | [
"MIT"
] | null | null | null | py_environment_status/__init__.py | vamseeachanta/py_environment_status | b2461b167a1b63c4e27cfdef12172d294e22a3de | [
"MIT"
] | null | null | null | py_environment_status/__init__.py | vamseeachanta/py_environment_status | b2461b167a1b63c4e27cfdef12172d294e22a3de | [
"MIT"
] | null | null | null | from py_environment_status.package_list import package_list
| 20.333333 | 59 | 0.901639 | 9 | 61 | 5.666667 | 0.777778 | 0.431373 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081967 | 61 | 2 | 60 | 30.5 | 0.910714 | 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 | 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 | 6 |
6548a26c1b5e4d2fcbe8edaffcde6011021d2d1f | 4,176 | py | Python | layerserver/migrations/0010_auto_20190719_0929.py | aroiginfraplan/giscube-admin | b7f3131b0186f847f3902df97f982cb288b16a49 | [
"BSD-3-Clause"
] | 5 | 2018-06-07T12:54:35.000Z | 2022-01-14T10:38:38.000Z | layerserver/migrations/0010_auto_20190719_0929.py | aroiginfraplan/giscube-admin | b7f3131b0186f847f3902df97f982cb288b16a49 | [
"BSD-3-Clause"
] | 140 | 2018-06-18T10:27:28.000Z | 2022-03-23T09:53:15.000Z | layerserver/migrations/0010_auto_20190719_0929.py | aroiginfraplan/giscube-admin | b7f3131b0186f847f3902df97f982cb288b16a49 | [
"BSD-3-Clause"
] | 1 | 2021-04-13T11:20:54.000Z | 2021-04-13T11:20:54.000Z | # Generated by Django 2.1.9 on 2019-07-19 07:29
from django.db import migrations, models
def update_fill_color(apps, schema_editor):
filter = {'shapetype': 'marker', 'marker_color__isnull': False}
filter_childs = {'layer__shapetype': 'marker', 'marker_color__isnull': False}
Model = apps.get_model('layer... | 38.666667 | 102 | 0.655651 | 440 | 4,176 | 5.988636 | 0.140909 | 0.075142 | 0.045541 | 0.051613 | 0.847818 | 0.847818 | 0.812144 | 0.696395 | 0.659962 | 0.659962 | 0 | 0.010681 | 0.215278 | 4,176 | 107 | 103 | 39.028037 | 0.793409 | 0.010776 | 0 | 0.818182 | 1 | 0 | 0.225236 | 0.059094 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034091 | false | 0.011364 | 0.011364 | 0 | 0.079545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 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 | 6 |
3330da41c80041422794f514b8b8b6670a3830be | 47 | py | Python | stockwatch/__init__.py | jontymorris/StockWatch | 9fdd87d8639299bb73ac4ec510ae2a8ca7cb7b3e | [
"MIT"
] | 1 | 2022-02-10T20:26:08.000Z | 2022-02-10T20:26:08.000Z | stockwatch/__init__.py | ashtonmoomoo/StockWatch | de8e76580c801f1ea3a88166d4f01af50cf7ea53 | [
"MIT"
] | 1 | 2021-04-08T02:02:42.000Z | 2021-06-19T23:38:25.000Z | stockwatch/__init__.py | ashtonmoomoo/StockWatch | de8e76580c801f1ea3a88166d4f01af50cf7ea53 | [
"MIT"
] | 2 | 2020-07-13T03:58:00.000Z | 2021-02-02T07:49:45.000Z | from .market import Market
from .util import *
| 15.666667 | 26 | 0.765957 | 7 | 47 | 5.142857 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170213 | 47 | 2 | 27 | 23.5 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
681d8cc67a96cfb1e3ac95a91b9db26cb29add69 | 73 | py | Python | ting/__init__.py | iowaguy/ting | 2f6c85869a220a9797a3bc7ced9e94a3354296cd | [
"0BSD"
] | null | null | null | ting/__init__.py | iowaguy/ting | 2f6c85869a220a9797a3bc7ced9e94a3354296cd | [
"0BSD"
] | 1 | 2021-01-22T20:00:46.000Z | 2021-01-22T20:06:50.000Z | ting/__init__.py | iowaguy/ting | 2f6c85869a220a9797a3bc7ced9e94a3354296cd | [
"0BSD"
] | null | null | null | """Include these in the basic ting import"""
from ting.ting import ting
| 18.25 | 44 | 0.739726 | 12 | 73 | 4.5 | 0.666667 | 0.37037 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164384 | 73 | 3 | 45 | 24.333333 | 0.885246 | 0.520548 | 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 | 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 | 6 |
685bb9167c7a24c6c31bbe4434049b9c610d82de | 10,829 | py | Python | tests/test_splunk_df.py | CMiksche/huntlib | b514d52dece44be8f285f0c472c4eeb7a1d6f009 | [
"MIT"
] | 116 | 2018-10-01T17:39:03.000Z | 2022-03-27T03:21:18.000Z | tests/test_splunk_df.py | CMiksche/huntlib | b514d52dece44be8f285f0c472c4eeb7a1d6f009 | [
"MIT"
] | 11 | 2018-10-08T14:38:58.000Z | 2021-05-13T13:51:35.000Z | tests/test_splunk_df.py | CMiksche/huntlib | b514d52dece44be8f285f0c472c4eeb7a1d6f009 | [
"MIT"
] | 19 | 2018-10-18T14:36:02.000Z | 2021-05-26T01:34:39.000Z | #!/usr/bin/env python
import os
import unittest
from multiprocessing import cpu_count
from unittest import TestCase
from huntlib.splunk import SplunkDF
class TestSplunkDF(TestCase):
_splunk_host = "localhost"
_splunk_port = 8089 # This is the API port, NOT the UI port
_splunk_user = "admin"
_splunk_... | 31.207493 | 127 | 0.566811 | 1,316 | 10,829 | 4.556231 | 0.156535 | 0.060707 | 0.042028 | 0.056704 | 0.886925 | 0.884089 | 0.881921 | 0.869079 | 0.864743 | 0.851568 | 0 | 0.010337 | 0.35682 | 10,829 | 346 | 128 | 31.297688 | 0.850538 | 0.264198 | 0 | 0.608295 | 0 | 0 | 0.280048 | 0.023771 | 0 | 0 | 0 | 0 | 0.110599 | 1 | 0.0553 | false | 0.009217 | 0.023041 | 0 | 0.105991 | 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 | 0 | 0 | 0 | 6 |
6871ab6a4099d233e2294899548f4e935ebd2fa0 | 191 | py | Python | stft_core/solver/__init__.py | lingyunwu14/STFT | 1af5d26c1d27388ef8b143b1de5713d5da8eb787 | [
"BSD-2-Clause"
] | 22 | 2021-07-09T12:42:33.000Z | 2022-03-31T08:36:39.000Z | stft_core/solver/__init__.py | lingyunwu14/STFT | 1af5d26c1d27388ef8b143b1de5713d5da8eb787 | [
"BSD-2-Clause"
] | 1 | 2021-10-05T06:19:13.000Z | 2021-11-12T09:12:48.000Z | stft_core/solver/__init__.py | lingyunwu14/STFT | 1af5d26c1d27388ef8b143b1de5713d5da8eb787 | [
"BSD-2-Clause"
] | 3 | 2021-07-09T12:42:55.000Z | 2022-03-31T08:36:40.000Z | # Copyright (c) SenseTime Research and its affiliates. All Rights Reserved.
from .build import make_optimizer
from .build import make_lr_scheduler
from .lr_scheduler import WarmupMultiStepLR
| 38.2 | 75 | 0.837696 | 26 | 191 | 6 | 0.692308 | 0.115385 | 0.192308 | 0.24359 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.120419 | 191 | 4 | 76 | 47.75 | 0.928571 | 0.382199 | 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 | 0 | 0 | 0 | 6 |
687fe957d7eec3be0fef909a434e7a9a54018210 | 152 | py | Python | lib/scriptslib.py | S4TURN0/atomic-python | 7c0fa71a2d7e5d2b65d257b465f5a59bba7bc5ca | [
"MIT"
] | 1 | 2021-07-30T02:10:58.000Z | 2021-07-30T02:10:58.000Z | lib/scriptslib.py | S4TURN0/atomic-python | 7c0fa71a2d7e5d2b65d257b465f5a59bba7bc5ca | [
"MIT"
] | 2 | 2021-05-31T15:27:02.000Z | 2021-06-03T01:04:02.000Z | lib/scriptslib.py | S4TURN0/atomic-python | 7c0fa71a2d7e5d2b65d257b465f5a59bba7bc5ca | [
"MIT"
] | null | null | null | from scripts.subdomains import subdomain
from scripts.port_scan import port_scan
from scripts.fuzzing import fuzzing
from scripts.automation import auto | 38 | 40 | 0.875 | 22 | 152 | 5.954545 | 0.454545 | 0.335878 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098684 | 152 | 4 | 41 | 38 | 0.956204 | 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 | 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 | 6 |
68a133d67cb8a538f2bc33edd7079c76f1543577 | 127 | py | Python | tests/conftest.py | python-happybase/aiohappybase | 0990ef45cfdb720dc987afdb4957a0fac591cb99 | [
"MIT"
] | 14 | 2020-02-17T14:50:21.000Z | 2022-03-15T20:59:03.000Z | tests/conftest.py | python-happybase/aiohappybase | 0990ef45cfdb720dc987afdb4957a0fac591cb99 | [
"MIT"
] | 7 | 2020-06-22T13:47:25.000Z | 2021-10-06T16:14:46.000Z | tests/conftest.py | aiudirog/aiohappybase | 0990ef45cfdb720dc987afdb4957a0fac591cb99 | [
"MIT"
] | 1 | 2021-01-29T17:06:47.000Z | 2021-01-29T17:06:47.000Z | import secrets
import pytest
@pytest.fixture
def table_name() -> bytes:
return b'test_' + secrets.token_hex(5).encode()
| 14.111111 | 51 | 0.716535 | 18 | 127 | 4.888889 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009346 | 0.15748 | 127 | 8 | 52 | 15.875 | 0.813084 | 0 | 0 | 0 | 0 | 0 | 0.03937 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0.4 | 0.2 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 6 |
d79e965256d1e6ab9a8342ec697a5432a074948c | 2,589 | py | Python | skactiveml/utils/_selection.py | AlexandreAbraham/scikit-activeml | 1e1f4615948501cb9c9559de2e94433f700b2b80 | [
"BSD-3-Clause"
] | 40 | 2020-09-22T00:50:52.000Z | 2022-03-15T14:16:42.000Z | skactiveml/utils/_selection.py | AlexandreAbraham/scikit-activeml | 1e1f4615948501cb9c9559de2e94433f700b2b80 | [
"BSD-3-Clause"
] | 161 | 2020-08-10T09:24:03.000Z | 2022-03-29T13:39:46.000Z | skactiveml/utils/_selection.py | AlexandreAbraham/scikit-activeml | 1e1f4615948501cb9c9559de2e94433f700b2b80 | [
"BSD-3-Clause"
] | 3 | 2021-11-15T09:10:59.000Z | 2021-12-15T11:40:47.000Z | """Utilities for selection."""
import numpy as np
from ._validation import check_random_state
def rand_argmin(a, random_state=None, **argmin_kwargs):
"""Returns index of minimum value. In case of ties, a randomly selected
index of the minimum elements is returned.
Parameters
----------
a: array... | 36.464789 | 79 | 0.673233 | 349 | 2,589 | 4.859599 | 0.272206 | 0.09434 | 0.042453 | 0.018868 | 0.817217 | 0.817217 | 0.817217 | 0.817217 | 0.817217 | 0.817217 | 0 | 0.002048 | 0.245655 | 2,589 | 70 | 80 | 36.985714 | 0.866359 | 0.539591 | 0 | 0.636364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.090909 | 0 | 0.272727 | 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 | 0 | 0 | 0 | 6 |
d7a2ea328a9e07d894f5ec37e10bf10ec76b6ec3 | 2,839 | py | Python | tensorflow/core/ops/sort_ops.py | seetaresearch/Dragon | 494774d3a545f807d483fd9e6e4563cedec6dda5 | [
"BSD-2-Clause"
] | 81 | 2018-03-13T13:08:37.000Z | 2020-06-13T14:36:29.000Z | tensorflow/core/ops/sort_ops.py | seetaresearch/Dragon | 494774d3a545f807d483fd9e6e4563cedec6dda5 | [
"BSD-2-Clause"
] | 2 | 2019-08-07T09:26:07.000Z | 2019-08-26T07:33:55.000Z | tensorflow/core/ops/sort_ops.py | seetaresearch/Dragon | 494774d3a545f807d483fd9e6e4563cedec6dda5 | [
"BSD-2-Clause"
] | 13 | 2018-03-13T13:08:50.000Z | 2020-05-28T08:20:22.000Z | # ------------------------------------------------------------
# Copyright (c) 2017-present, SeetaTech, Co.,Ltd.
#
# Licensed under the BSD 2-Clause License.
# You should have received a copy of the BSD 2-Clause License
# along with the software. If not, See,
#
# <https://opensource.org/licenses/BSD-2-Clause>
#
# -... | 27.298077 | 75 | 0.594928 | 341 | 2,839 | 4.879765 | 0.269795 | 0.016827 | 0.021635 | 0.040865 | 0.828125 | 0.804087 | 0.804087 | 0.804087 | 0.736779 | 0.68149 | 0 | 0.018851 | 0.233885 | 2,839 | 103 | 76 | 27.563107 | 0.746207 | 0.62839 | 0 | 0.5 | 0 | 0 | 0.140741 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.5 | 0.0625 | 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 | 0 | 0 | 0 | 6 |
d7f89d98b84f2f056da7cb2b53db13de8f7f692c | 3,977 | py | Python | HashChecker/HashChecker.py | SurajApps/HashChecker | 29d346381e626595aea60c6dd56573e680bade79 | [
"MIT"
] | null | null | null | HashChecker/HashChecker.py | SurajApps/HashChecker | 29d346381e626595aea60c6dd56573e680bade79 | [
"MIT"
] | 3 | 2020-08-09T20:16:48.000Z | 2020-08-09T20:28:08.000Z | HashChecker/HashChecker.py | SurajApps/HashChecker | 29d346381e626595aea60c6dd56573e680bade79 | [
"MIT"
] | null | null | null | import hashlib
import argparse
def Check():
argspec = '''usage: HashChecker.py [-h] -f FILE [-s] [-m] -c CHECKSUM
optional arguments:
-h, --help show this help message and exit
-f FILE, --file FILE Select the file to be checked
-s, --sha256 Check the SHA256 checksum of t... | 44.188889 | 119 | 0.587126 | 542 | 3,977 | 4.261993 | 0.202952 | 0.075758 | 0.031169 | 0.049351 | 0.861905 | 0.861905 | 0.808225 | 0.804762 | 0.77619 | 0.72987 | 0 | 0.027412 | 0.312044 | 3,977 | 89 | 120 | 44.685393 | 0.816886 | 0.217501 | 0 | 0.591549 | 0 | 0 | 0.433193 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042254 | false | 0 | 0.028169 | 0 | 0.070423 | 0.070423 | 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 | 0 | 0 | 0 | 6 |
d7f915be052265406a7faea6a438546f89e5f553 | 12,783 | py | Python | beehve/apps/honey/migrations/0001_initial.py | Code4Maine/beehve | de4dece5d0c4e4fbe97c6249f105a387095bbaf0 | [
"BSD-3-Clause"
] | 1 | 2015-05-22T15:18:46.000Z | 2015-05-22T15:18:46.000Z | beehve/apps/honey/migrations/0001_initial.py | Code4Maine/beehve | de4dece5d0c4e4fbe97c6249f105a387095bbaf0 | [
"BSD-3-Clause"
] | 24 | 2015-02-09T17:11:57.000Z | 2018-02-22T14:44:33.000Z | beehve/apps/honey/migrations/0001_initial.py | Code4Maine/beehve | de4dece5d0c4e4fbe97c6249f105a387095bbaf0 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from django.db import models, migrations
import django.utils.timezone
from django.conf import settings
import django_extensions.db.fields
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
... | 62.970443 | 232 | 0.611515 | 1,278 | 12,783 | 5.981221 | 0.107199 | 0.063579 | 0.056515 | 0.075353 | 0.832156 | 0.809131 | 0.777211 | 0.759681 | 0.749608 | 0.707221 | 0 | 0.006046 | 0.236642 | 12,783 | 202 | 233 | 63.282178 | 0.777311 | 0.001643 | 0 | 0.661538 | 0 | 0 | 0.114185 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.020513 | 0 | 0.035897 | 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 | 0 | 0 | 0 | 6 |
0bca9c3ec93855f6554ca05194d69fbeff6e5e5e | 5,817 | py | Python | rec_to_nwb/test/processing/position/time/valid/test_flPosValidTimeManager.py | jihyunbak/rec_to_nwb | 6e65f8bf0a4faa4d986483ec2442ba19d70c92a9 | [
"Apache-2.0"
] | 8 | 2020-05-29T13:48:35.000Z | 2021-11-19T04:24:48.000Z | rec_to_nwb/test/processing/position/time/valid/test_flPosValidTimeManager.py | jihyunbak/rec_to_nwb | 6e65f8bf0a4faa4d986483ec2442ba19d70c92a9 | [
"Apache-2.0"
] | 12 | 2020-11-13T01:36:32.000Z | 2022-01-23T20:35:55.000Z | rec_to_nwb/test/processing/position/time/valid/test_flPosValidTimeManager.py | jihyunbak/rec_to_nwb | 6e65f8bf0a4faa4d986483ec2442ba19d70c92a9 | [
"Apache-2.0"
] | 3 | 2020-10-20T06:52:45.000Z | 2021-07-06T23:00:53.000Z | from unittest import TestCase
from unittest.mock import MagicMock
import numpy as np
from pynwb import NWBFile
from testfixtures import should_raise
from rec_to_nwb.processing.exceptions.missing_data_exception import MissingDataException
from rec_to_nwb.processing.nwb.components.position.time.valid.fl_pos_valid_time_... | 45.80315 | 116 | 0.701221 | 807 | 5,817 | 4.629492 | 0.114002 | 0.065578 | 0.131156 | 0.12045 | 0.880086 | 0.862687 | 0.849572 | 0.849572 | 0.849572 | 0.849572 | 0 | 0.029469 | 0.206636 | 5,817 | 127 | 117 | 45.80315 | 0.780065 | 0 | 0 | 0.672897 | 0 | 0 | 0.046064 | 0.023719 | 0 | 0 | 0 | 0 | 0.130841 | 1 | 0.056075 | false | 0 | 0.065421 | 0 | 0.130841 | 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 | 0 | 0 | 0 | 6 |
042cfa3168535140ea5fcbebb105b1985d17d587 | 255 | py | Python | app/main/errors.py | suzaram3/my_dashboard | 9f78028875893ac25a829c24bd9343f117c3ef05 | [
"MIT"
] | null | null | null | app/main/errors.py | suzaram3/my_dashboard | 9f78028875893ac25a829c24bd9343f117c3ef05 | [
"MIT"
] | null | null | null | app/main/errors.py | suzaram3/my_dashboard | 9f78028875893ac25a829c24bd9343f117c3ef05 | [
"MIT"
] | null | null | null | from flask import render_template
from . import main
@main.app_errorhandler(404)
def page_note_found(e):
return render_template("404.html"), 404
@main.app_errorhandler(500)
def internal_server_error(e):
return render_template("500.html"), 500
| 19.615385 | 43 | 0.768627 | 38 | 255 | 4.921053 | 0.526316 | 0.224599 | 0.203209 | 0.224599 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.080717 | 0.12549 | 255 | 12 | 44 | 21.25 | 0.757848 | 0 | 0 | 0 | 0 | 0 | 0.062745 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.25 | 0.75 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
f08e9a7a6e1717797703e672623a985f7fa7deb3 | 9,266 | py | Python | main.py | nadavo/MEMM-POS-Tagger | 9696f66451703d8ba987061eda0f7a3d79902dc6 | [
"MIT"
] | null | null | null | main.py | nadavo/MEMM-POS-Tagger | 9696f66451703d8ba987061eda0f7a3d79902dc6 | [
"MIT"
] | null | null | null | main.py | nadavo/MEMM-POS-Tagger | 9696f66451703d8ba987061eda0f7a3d79902dc6 | [
"MIT"
] | null | null | null | from utils import TaggedDataReader, Timer
from MEMM import HistoryTuple, MEMM
from FeaturesFactory import BasicFeatures, AdvancedFeatures
from Viterbi import ViterbiAlgorithm
"""main file which was mainly used for our personal usage during development.
contains interfaces for different operations: training, predicting... | 44.12381 | 146 | 0.734405 | 1,057 | 9,266 | 6.323557 | 0.152318 | 0.062238 | 0.035009 | 0.039797 | 0.806852 | 0.780371 | 0.718432 | 0.715589 | 0.676092 | 0.676092 | 0 | 0.006488 | 0.15163 | 9,266 | 209 | 147 | 44.334928 | 0.843786 | 0.091086 | 0 | 0.70122 | 0 | 0 | 0.177038 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.073171 | false | 0 | 0.02439 | 0 | 0.128049 | 0.20122 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
f0a3105433b8b0713019e8f9c82c92dc97f41509 | 13,150 | py | Python | calligra/convert/jansson.py | marmeladema/calligra | 912becec93a2246ed322656131b7bd9fe51fff95 | [
"MIT"
] | 1 | 2020-11-29T07:25:34.000Z | 2020-11-29T07:25:34.000Z | calligra/convert/jansson.py | marmeladema/calligra | 912becec93a2246ed322656131b7bd9fe51fff95 | [
"MIT"
] | 1 | 2019-04-19T15:06:31.000Z | 2019-04-26T13:24:36.000Z | calligra/convert/jansson.py | marmeladema/calligra | 912becec93a2246ed322656131b7bd9fe51fff95 | [
"MIT"
] | null | null | null | import calligra
import calligra.stdlib
@calligra.add_method(calligra.stdlib.boolean, 'to_json')
class boolean_to_json(calligra.function):
def __init__(self, boolean):
# create function prototype
namespace = boolean._namespace
name = boolean.type().name()
super().__init__(
namespace,
namespace.get... | 25.683594 | 103 | 0.595589 | 1,539 | 13,150 | 4.896686 | 0.059779 | 0.126062 | 0.090499 | 0.028662 | 0.839172 | 0.81396 | 0.771364 | 0.746683 | 0.719214 | 0.703424 | 0 | 0.002588 | 0.23597 | 13,150 | 511 | 104 | 25.733855 | 0.747487 | 0.034981 | 0 | 0.618267 | 0 | 0 | 0.180218 | 0.051468 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046838 | false | 0 | 0.018735 | 0 | 0.12178 | 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 | 0 | 0 | 0 | 6 |
f0e8e4cb9b296f93e2cb01f756d19b3d4daa602a | 13,882 | py | Python | tests/test_routes/test_routes_schema.py | hed-standard/hed-web | 8603526266dff78cf07e49e6c0f0c715a9225289 | [
"MIT"
] | null | null | null | tests/test_routes/test_routes_schema.py | hed-standard/hed-web | 8603526266dff78cf07e49e6c0f0c715a9225289 | [
"MIT"
] | null | null | null | tests/test_routes/test_routes_schema.py | hed-standard/hed-web | 8603526266dff78cf07e49e6c0f0c715a9225289 | [
"MIT"
] | 2 | 2022-02-04T19:55:40.000Z | 2022-02-04T21:36:04.000Z | import io
import os
import unittest
from tests.test_web_base import TestWebBase
class Test(TestWebBase):
def test_schema_results_empty_data(self):
response = self.app.test.post('/schema_submit')
self.assertEqual(200, response.status_code, 'HED schema request succeeds even when no data')
... | 63.97235 | 121 | 0.597248 | 1,562 | 13,882 | 5.109475 | 0.091549 | 0.042726 | 0.017918 | 0.027565 | 0.891618 | 0.888485 | 0.865806 | 0.832728 | 0.804536 | 0.789375 | 0 | 0.01129 | 0.298156 | 13,882 | 216 | 122 | 64.268519 | 0.807862 | 0.082625 | 0 | 0.664865 | 0 | 0.016216 | 0.339413 | 0.035437 | 0 | 0 | 0 | 0.00463 | 0.216216 | 1 | 0.054054 | false | 0 | 0.021622 | 0 | 0.081081 | 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 | 0 | 0 | 0 | 6 |
9beba384123bec2f3d11df6b27c01aaa7ebc561b | 129 | py | Python | cheshire/__init__.py | jmcelve2/cheshire | b0ee61559f1d4c139ffa9138189d32d2d8027a34 | [
"MIT"
] | 8 | 2018-03-23T01:27:21.000Z | 2022-01-29T06:05:49.000Z | cheshire/__init__.py | jmcelve2/cheshire | b0ee61559f1d4c139ffa9138189d32d2d8027a34 | [
"MIT"
] | 9 | 2018-02-13T11:34:33.000Z | 2018-09-01T06:31:21.000Z | cheshire/__init__.py | jmcelve2/cheshire | b0ee61559f1d4c139ffa9138189d32d2d8027a34 | [
"MIT"
] | 3 | 2020-04-13T08:33:13.000Z | 2021-03-21T11:55:12.000Z |
from cheshire.Grid import *
from cheshire.Kinetic import *
from cheshire.Potential import *
from cheshire.ParamSampler import *
| 21.5 | 35 | 0.806202 | 16 | 129 | 6.5 | 0.4375 | 0.461538 | 0.519231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131783 | 129 | 5 | 36 | 25.8 | 0.928571 | 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 | 0 | 0 | 0 | 6 |
9befd7818e486b848c48d9b3b54d3188285257a0 | 96 | py | Python | venv/lib/python3.8/site-packages/jedi/settings.py | GiulianaPola/select_repeats | 17a0d053d4f874e42cf654dd142168c2ec8fbd11 | [
"MIT"
] | 2 | 2022-03-13T01:58:52.000Z | 2022-03-31T06:07:54.000Z | venv/lib/python3.8/site-packages/jedi/settings.py | DesmoSearch/Desmobot | b70b45df3485351f471080deb5c785c4bc5c4beb | [
"MIT"
] | 19 | 2021-11-20T04:09:18.000Z | 2022-03-23T15:05:55.000Z | venv/lib/python3.8/site-packages/jedi/settings.py | DesmoSearch/Desmobot | b70b45df3485351f471080deb5c785c4bc5c4beb | [
"MIT"
] | null | null | null | /home/runner/.cache/pip/pool/e4/6b/72/f3c96c6c10212276e8bcba8949bb55275859edb9b22b410a308a335fce | 96 | 96 | 0.895833 | 9 | 96 | 9.555556 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.427083 | 0 | 96 | 1 | 96 | 96 | 0.46875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.