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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fadbe0ce61bc89cbf5ace8d4fef611475711ae16 | 47 | py | Python | config/settings/__init__.py | hqrrylyu/drf-posts-assignment | 6022c73d7c72400e9fb0db5b8e0daa892b4f109e | [
"MIT"
] | null | null | null | config/settings/__init__.py | hqrrylyu/drf-posts-assignment | 6022c73d7c72400e9fb0db5b8e0daa892b4f109e | [
"MIT"
] | null | null | null | config/settings/__init__.py | hqrrylyu/drf-posts-assignment | 6022c73d7c72400e9fb0db5b8e0daa892b4f109e | [
"MIT"
] | null | null | null | # flake8: noqa: W403
from .production import *
| 15.666667 | 25 | 0.723404 | 6 | 47 | 5.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102564 | 0.170213 | 47 | 2 | 26 | 23.5 | 0.769231 | 0.382979 | 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 |
4f0e79067249d7e3b32fb33ab45a211ea4e8eb2a | 2,701 | py | Python | tests/test_deploy_roles.py | AdamMinton/looker_deployer | 1a57809257183234b900ad49ff30ded5c26c4f2a | [
"Apache-2.0"
] | 4 | 2020-01-09T04:24:19.000Z | 2020-05-18T23:42:35.000Z | tests/test_deploy_roles.py | AdamMinton/looker_deployer | 1a57809257183234b900ad49ff30ded5c26c4f2a | [
"Apache-2.0"
] | 24 | 2022-01-06T00:49:57.000Z | 2022-03-30T00:08:36.000Z | tests/test_deploy_roles.py | AdamMinton/looker_deployer | 1a57809257183234b900ad49ff30ded5c26c4f2a | [
"Apache-2.0"
] | 2 | 2021-11-24T05:48:17.000Z | 2022-01-29T22:23:19.000Z | from looker_deployer.commands import deploy_roles
from looker_sdk import methods, models
class mockSettings:
base_url = "taco"
class mockAuth:
settings = mockSettings()
sdk = methods.LookerSDK(mockAuth(), "bar", "baz", "bosh", "bizz")
def test_get_filtered_roles(mocker):
role_list = [
models... | 31.406977 | 72 | 0.672714 | 364 | 2,701 | 4.700549 | 0.159341 | 0.052601 | 0.099357 | 0.116891 | 0.800117 | 0.735827 | 0.735827 | 0.735827 | 0.735827 | 0.735827 | 0 | 0.012082 | 0.203258 | 2,701 | 85 | 73 | 31.776471 | 0.782993 | 0 | 0 | 0.42623 | 0 | 0 | 0.076268 | 0 | 0 | 0 | 0 | 0 | 0.065574 | 1 | 0.065574 | false | 0 | 0.032787 | 0 | 0.163934 | 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 |
4f0e8ce8291ba87a39d6a567b55d8d4479b51e5c | 9,242 | py | Python | parameter_analyse/print_figure/plot_figure.py | lionelkusch/compare_zerlaut | 4e22d1fdc5889fb404187bb7a48d7847759443d6 | [
"Apache-2.0"
] | null | null | null | parameter_analyse/print_figure/plot_figure.py | lionelkusch/compare_zerlaut | 4e22d1fdc5889fb404187bb7a48d7847759443d6 | [
"Apache-2.0"
] | null | null | null | parameter_analyse/print_figure/plot_figure.py | lionelkusch/compare_zerlaut | 4e22d1fdc5889fb404187bb7a48d7847759443d6 | [
"Apache-2.0"
] | null | null | null | import numpy as np
from scipy.io.matlab import loadmat
import os
from print_stability import print_stability
import matplotlib.pyplot as plt
from colorline import colorline
import matplotlib as mpl
import h5py
path = os.path.dirname(__file__) + '/../analyse_dynamic/'
H_LP = True
cmap = plt.get_cmap('jet')
norm = mpl.... | 51.921348 | 164 | 0.592945 | 1,631 | 9,242 | 3.228694 | 0.088289 | 0.03703 | 0.05469 | 0.039499 | 0.860046 | 0.857007 | 0.827383 | 0.820547 | 0.790353 | 0.75997 | 0 | 0.070175 | 0.161221 | 9,242 | 177 | 165 | 52.214689 | 0.609133 | 0.020558 | 0 | 0.4375 | 0 | 0 | 0.141563 | 0.010719 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.05 | 0 | 0.05 | 0.06875 | 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 |
878a1be82473776da230c9273d8aba91c8c8cdb5 | 11,401 | py | Python | h2o-bindings/bin/custom/python/gen_kmeans.py | bscan/h2o-3 | 76073175b71fa68a0ddf99671558419246b95aa6 | [
"Apache-2.0"
] | 1 | 2019-11-02T18:01:36.000Z | 2019-11-02T18:01:36.000Z | h2o-bindings/bin/custom/python/gen_kmeans.py | mykras/h2o-3 | c7240c507c31aaa7ab41f6a723ccc645ce116e3a | [
"Apache-2.0"
] | null | null | null | h2o-bindings/bin/custom/python/gen_kmeans.py | mykras/h2o-3 | c7240c507c31aaa7ab41f6a723ccc645ce116e3a | [
"Apache-2.0"
] | null | null | null | doc = dict(
__class__="""Performs k-means clustering on an H2O dataset.""",
)
examples = dict(
categorical_encoding="""
>>> prostate = h2o.import_file("http://s3.amazonaws.com/h2o-public-test-data/smalldata/prostate/prostate.csv")
>>> predictors = ["AGE", "RACE", "DPROS", "DCAPS", "PSA", "VOL", "GLEASON"]
>>> ... | 45.422311 | 149 | 0.598983 | 1,269 | 11,401 | 5.185185 | 0.12766 | 0.043769 | 0.051064 | 0.076596 | 0.774316 | 0.758815 | 0.734498 | 0.734498 | 0.734498 | 0.717933 | 0 | 0.034525 | 0.209894 | 11,401 | 250 | 150 | 45.604 | 0.695937 | 0 | 0 | 0.654618 | 0 | 0.088353 | 0.94518 | 0.206999 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.088353 | 0 | 0.088353 | 0.004016 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
879922d1e2ccd2a937f9ec864c5868db73302362 | 12,550 | py | Python | unit/test_needs_restart.py | armohamm/ansible-cartridge | 85e2d87d61d5805844378f750c9c675e531b0015 | [
"BSD-2-Clause"
] | null | null | null | unit/test_needs_restart.py | armohamm/ansible-cartridge | 85e2d87d61d5805844378f750c9c675e531b0015 | [
"BSD-2-Clause"
] | null | null | null | unit/test_needs_restart.py | armohamm/ansible-cartridge | 85e2d87d61d5805844378f750c9c675e531b0015 | [
"BSD-2-Clause"
] | null | null | null | # Hack ansible.module_utils.helpers import
import sys
import module_utils.helpers as helpers
sys.modules['ansible.module_utils.helpers'] = helpers
import os
sys.path.append(os.path.dirname(__file__))
import unittest
from parameterized import parameterized
from instance import Instance
from helpers import set_box_cfg... | 33.289125 | 91 | 0.61259 | 1,368 | 12,550 | 5.295322 | 0.08114 | 0.064605 | 0.078686 | 0.066676 | 0.81143 | 0.792518 | 0.772225 | 0.760629 | 0.758835 | 0.758835 | 0 | 0.002434 | 0.31259 | 12,550 | 376 | 92 | 33.37766 | 0.837255 | 0.085657 | 0 | 0.638514 | 0 | 0 | 0.030941 | 0.002447 | 0 | 0 | 0 | 0 | 0.14527 | 1 | 0.033784 | false | 0 | 0.030405 | 0.003378 | 0.070946 | 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 |
87e51f15ef719923be5b11b884bb55e8f581a965 | 102 | py | Python | MedSemanticSearch/evaluation/evaluate_text.py | DanielhCarranza/info-retrieval-semantic-scholar | 004fc0cbc7d9e6fd1301ce28430f661cfbf638ce | [
"MIT"
] | 4 | 2020-08-07T00:34:25.000Z | 2022-02-16T09:36:35.000Z | MedSemanticSearch/evaluation/evaluate_text.py | DanielhCarranza/MedSearch | 004fc0cbc7d9e6fd1301ce28430f661cfbf638ce | [
"MIT"
] | null | null | null | MedSemanticSearch/evaluation/evaluate_text.py | DanielhCarranza/MedSearch | 004fc0cbc7d9e6fd1301ce28430f661cfbf638ce | [
"MIT"
] | null | null | null | """Run Validation Test"""
import os
from pathlib import Path
from time import time
import unittest
| 11.333333 | 25 | 0.764706 | 15 | 102 | 5.2 | 0.666667 | 0.25641 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 102 | 8 | 26 | 12.75 | 0.928571 | 0.186275 | 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 |
87ff2e9d9cbd214847e1d4a9c0cd38a61d7b0a5a | 34 | py | Python | plasma/cli/__init__.py | rcallan/plasma-mvp | 48ec5a35cb4c0c15ef4737d94bd1ff112de9d149 | [
"Apache-2.0"
] | 590 | 2018-01-17T19:09:40.000Z | 2020-05-29T03:28:45.000Z | plasma/cli/__init__.py | littlewhiteZ/plasma-mvp | fcd1e211f70ee7f7c482d1201caff7580a2951cc | [
"Apache-2.0"
] | 174 | 2018-01-17T19:10:53.000Z | 2019-03-04T13:51:44.000Z | plasma/cli/__init__.py | littlewhiteZ/plasma-mvp | fcd1e211f70ee7f7c482d1201caff7580a2951cc | [
"Apache-2.0"
] | 172 | 2018-01-17T19:05:12.000Z | 2020-03-12T01:40:12.000Z | from .cli import cli # Noqa F401
| 17 | 33 | 0.705882 | 6 | 34 | 4 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115385 | 0.235294 | 34 | 1 | 34 | 34 | 0.807692 | 0.264706 | 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 |
e21630ec38f5f5df90335735aed3f86468209534 | 255 | py | Python | {{cookiecutter.project_slug}}/backend/core/database/__init__.py | devalv/cookiecutter-fastapi | c7cfd3caa14b40dcc5d8ff6bdb6e25cfed3c9d00 | [
"MIT"
] | 2 | 2021-12-26T00:10:19.000Z | 2022-01-30T21:24:31.000Z | {{cookiecutter.project_slug}}/backend/core/database/__init__.py | devalv/cookiecutter-fastapi | c7cfd3caa14b40dcc5d8ff6bdb6e25cfed3c9d00 | [
"MIT"
] | 1 | 2021-10-10T17:38:30.000Z | 2021-10-10T18:30:24.000Z | {{cookiecutter.project_slug}}/backend/core/database/__init__.py | devalv/cookiecutter-fastapi | c7cfd3caa14b40dcc5d8ff6bdb6e25cfed3c9d00 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Project database configuration."""
from .models import db
from .models.security import TokenInfo as TokenInfoGinoModel
from .models.security import User as UserGinoModel
__all__ = ["UserGinoModel", "TokenInfoGinoModel", "db"]
| 28.333333 | 60 | 0.752941 | 28 | 255 | 6.714286 | 0.607143 | 0.159574 | 0.191489 | 0.255319 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004464 | 0.121569 | 255 | 8 | 61 | 31.875 | 0.834821 | 0.211765 | 0 | 0 | 0 | 0 | 0.169231 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 0 | 0.75 | 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 |
3560a068f7dd8ef181800a3cc28edecd009c77ee | 25 | py | Python | models/__init__.py | EthanC/N31L | d757d6895333b92772d40664d6831f0e9e9fe295 | [
"MIT"
] | 4 | 2018-02-15T08:55:04.000Z | 2022-02-27T08:02:38.000Z | models/__init__.py | EthanC/N31L | d757d6895333b92772d40664d6831f0e9e9fe295 | [
"MIT"
] | null | null | null | models/__init__.py | EthanC/N31L | d757d6895333b92772d40664d6831f0e9e9fe295 | [
"MIT"
] | null | null | null | from .state import State
| 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 |
35b0a7c50dc1706c88cfbcd929caa5adbc9279da | 49 | py | Python | mockup-server/__init__.py | ghazal-khaki/restfulpy-client.js-1 | 889fbe74dff40475f5462b74745af43cc0f44975 | [
"MIT"
] | 16 | 2017-07-07T20:56:03.000Z | 2018-12-19T11:09:34.000Z | mockup-server/__init__.py | ghazal-khaki/restfulpy-client.js-1 | 889fbe74dff40475f5462b74745af43cc0f44975 | [
"MIT"
] | 73 | 2017-07-14T10:48:01.000Z | 2022-02-17T19:37:25.000Z | mockup-server/__init__.py | ghazal-khaki/restfulpy-client.js-1 | 889fbe74dff40475f5462b74745af43cc0f44975 | [
"MIT"
] | 5 | 2017-08-30T21:01:13.000Z | 2020-10-10T17:18:52.000Z | from .simple import SimpleMockupServerSubCommand
| 24.5 | 48 | 0.897959 | 4 | 49 | 11 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081633 | 49 | 1 | 49 | 49 | 0.977778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 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 | 0 | 0 | 0 | 6 |
35d570cc06826ea9cf9631786960da2ab199d18c | 96 | py | Python | transformers/analab/plot/plot.py | lianapanatau/BERT-for-RRC-ABSA | d31d81d5f9dce594a23f256199988fc2a11ce016 | [
"Apache-2.0"
] | 425 | 2019-03-31T02:22:29.000Z | 2022-03-26T06:55:34.000Z | transformers/analab/plot/plot.py | lianapanatau/BERT-for-RRC-ABSA | d31d81d5f9dce594a23f256199988fc2a11ce016 | [
"Apache-2.0"
] | 23 | 2019-04-27T09:26:08.000Z | 2021-11-10T10:18:30.000Z | transformers/analab/plot/plot.py | lianapanatau/BERT-for-RRC-ABSA | d31d81d5f9dce594a23f256199988fc2a11ce016 | [
"Apache-2.0"
] | 86 | 2019-04-09T06:41:29.000Z | 2022-03-14T02:11:56.000Z |
class Plot(object):
def __init__(self):
pass
def __call__(self):
pass
| 12 | 23 | 0.552083 | 11 | 96 | 4.090909 | 0.727273 | 0.355556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.354167 | 96 | 7 | 24 | 13.714286 | 0.725806 | 0 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0.4 | 0 | 0 | 0.6 | 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 | 0 | 1 | 0 | 0 | 6 |
ea35489b1d7aebc35c7f0b9fb4ff05bbe348a991 | 507 | py | Python | src/math.py | mdvandamme/test-circleci | ac7d477afe10609413e4be34e1d5c2631d52d354 | [
"MIT"
] | null | null | null | src/math.py | mdvandamme/test-circleci | ac7d477afe10609413e4be34e1d5c2631d52d354 | [
"MIT"
] | null | null | null | src/math.py | mdvandamme/test-circleci | ac7d477afe10609413e4be34e1d5c2631d52d354 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
"""
class Math():
def addition(value1, value2):
if not isinstance(value1, int) and not isinstance(value2, int):
return 'Invalid input'
else:
return value1 + value2
def soustraction (val... | 20.28 | 71 | 0.518738 | 51 | 507 | 5.156863 | 0.45098 | 0.18251 | 0.106464 | 0.129278 | 0.768061 | 0.768061 | 0.768061 | 0.768061 | 0.768061 | 0.768061 | 0 | 0.044304 | 0.376726 | 507 | 25 | 72 | 20.28 | 0.787975 | 0.084813 | 0 | 0.545455 | 0 | 0 | 0.057143 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 6 |
ea3ba50be0319f812d0096f62252186c07a28310 | 8,777 | py | Python | front.py | plexixx/populationQueryService | 8fa9ce3668b0b3ade433ee89890669082e48aad1 | [
"MIT"
] | null | null | null | front.py | plexixx/populationQueryService | 8fa9ce3668b0b3ade433ee89890669082e48aad1 | [
"MIT"
] | null | null | null | front.py | plexixx/populationQueryService | 8fa9ce3668b0b3ade433ee89890669082e48aad1 | [
"MIT"
] | null | null | null | from os import sep
import aiohttp
import asyncio
import argparse
import pprint
import json
import numpy as np
import matplotlib.pyplot as plt
NO_DATA = -9999
def paintPopulation(X, Y):
fig = plt.figure()
plt.scatter(X, Y, marker='o', color='darkgray')
plt.xlabel("Longitude")
plt.ylabel(... | 103.258824 | 1,711 | 0.548935 | 1,223 | 8,777 | 3.897792 | 0.121014 | 0.269562 | 0.105727 | 0.114118 | 0.657017 | 0.657017 | 0.657017 | 0.657017 | 0.639186 | 0.639186 | 0 | 0.272826 | 0.163951 | 8,777 | 85 | 1,712 | 103.258824 | 0.376806 | 0.004443 | 0 | 0 | 0 | 0 | 0.18061 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025974 | false | 0 | 0.103896 | 0 | 0.142857 | 0.116883 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
ea63eaf683c423cd23925294741aaccd16445f20 | 96 | py | Python | venv/lib/python3.8/site-packages/setuptools/dist.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/setuptools/dist.py | DesmoSearch/Desmobot | b70b45df3485351f471080deb5c785c4bc5c4beb | [
"MIT"
] | 19 | 2021-11-20T04:09:18.000Z | 2022-03-23T15:05:55.000Z | venv/lib/python3.8/site-packages/setuptools/dist.py | DesmoSearch/Desmobot | b70b45df3485351f471080deb5c785c4bc5c4beb | [
"MIT"
] | null | null | null | /home/runner/.cache/pip/pool/cb/78/10/65ba1d6ea3931bf717157b90d8e9d3c1c88896966921c89aa713887c17 | 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 |
ea97a159a8f65b55b0987bf4605c4562b9855c34 | 1,968 | py | Python | epytope/Data/pssms/epidemix/mat/B_44_9.py | christopher-mohr/epytope | 8ac9fe52c0b263bdb03235a5a6dffcb72012a4fd | [
"BSD-3-Clause"
] | 7 | 2021-02-01T18:11:28.000Z | 2022-01-31T19:14:07.000Z | epytope/Data/pssms/epidemix/mat/B_44_9.py | christopher-mohr/epytope | 8ac9fe52c0b263bdb03235a5a6dffcb72012a4fd | [
"BSD-3-Clause"
] | 22 | 2021-01-02T15:25:23.000Z | 2022-03-14T11:32:53.000Z | epytope/Data/pssms/epidemix/mat/B_44_9.py | christopher-mohr/epytope | 8ac9fe52c0b263bdb03235a5a6dffcb72012a4fd | [
"BSD-3-Clause"
] | 4 | 2021-05-28T08:50:38.000Z | 2022-03-14T11:45:32.000Z | B_44_9 = {0: {'A': -0.4, 'C': -2.0, 'E': 0.8, 'D': 1.3, 'G': 0.2, 'F': 0.0, 'I': -3.0, 'H': -1.8, 'K': 0.4, 'M': -2.0, 'L': -3.6, 'N': 1.1, 'Q': -2.0, 'P': -2.8, 'S': -0.4, 'R': -2.5, 'T': 0.5, 'W': -1.8, 'V': 0.0, 'Y': -2.5}, 1: {'A': -2.9, 'C': -2.8, 'E': 2.6, 'D': -1.7, 'G': -3.5, 'F': -3.7, 'I': -4.0, 'H': -1.5, 'K... | 1,968 | 1,968 | 0.282012 | 552 | 1,968 | 1.001812 | 0.057971 | 0.05425 | 0.016275 | 0.0217 | 0.179024 | 0.028933 | 0.028933 | 0.028933 | 0 | 0 | 0 | 0.232791 | 0.188008 | 1,968 | 1 | 1,968 | 1,968 | 0.113267 | 0 | 0 | 0 | 0 | 0 | 0.091417 | 0 | 0 | 0 | 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 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
5767950e9325c2bb11d621d91e2819cd85e86ae4 | 2,900 | py | Python | tests/test_utils.py | jplsek/git-pw | c22ac35012ac8b61e564564150c14f436b814e61 | [
"MIT"
] | null | null | null | tests/test_utils.py | jplsek/git-pw | c22ac35012ac8b61e564564150c14f436b814e61 | [
"MIT"
] | null | null | null | tests/test_utils.py | jplsek/git-pw | c22ac35012ac8b61e564564150c14f436b814e61 | [
"MIT"
] | null | null | null | """Unit tests for ``git_pw/utils.py``."""
import subprocess
import os
import mock
from git_pw import utils
@mock.patch.object(utils.subprocess, 'check_output', return_value=b' bar ')
def test_git_config(mock_subprocess):
value = utils.git_config('foo')
assert value == 'bar'
mock_subprocess.assert_call... | 35.802469 | 78 | 0.738276 | 416 | 2,900 | 4.786058 | 0.137019 | 0.081366 | 0.113009 | 0.150678 | 0.85786 | 0.85786 | 0.846811 | 0.846811 | 0.830236 | 0.761929 | 0 | 0.005789 | 0.106552 | 2,900 | 80 | 79 | 36.25 | 0.76264 | 0.012069 | 0 | 0.581818 | 0 | 0 | 0.136062 | 0 | 0 | 0 | 0 | 0 | 0.309091 | 1 | 0.127273 | false | 0 | 0.072727 | 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 |
57b77347325bc3c94b6e4040995e5191a602243f | 234 | py | Python | example-project/personal/social.py | OneSocial-dev/onesocial-django | 28acfa277d9b3ba758f17fa4787360779369f8e6 | [
"MIT"
] | 1 | 2020-10-27T15:18:40.000Z | 2020-10-27T15:18:40.000Z | example-project/personal/social.py | OneSocial-dev/onesocial-django | 28acfa277d9b3ba758f17fa4787360779369f8e6 | [
"MIT"
] | null | null | null | example-project/personal/social.py | OneSocial-dev/onesocial-django | 28acfa277d9b3ba758f17fa4787360779369f8e6 | [
"MIT"
] | null | null | null | from django.shortcuts import redirect
from onesocial_django.models import SocialAccount
def validate_func(social_account: SocialAccount):
return redirect('personal:confirm-username', account_token=social_account.account_token)
| 29.25 | 92 | 0.846154 | 28 | 234 | 6.857143 | 0.642857 | 0.135417 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089744 | 234 | 7 | 93 | 33.428571 | 0.901408 | 0 | 0 | 0 | 0 | 0 | 0.106838 | 0.106838 | 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 |
57be90c00e6722fb30c75e048d9773034a704d2c | 717 | py | Python | singer/metadata.py | chrisgoddard/singer-python | acbe4847087d5f9061440fd6cebf75c88d875c83 | [
"Apache-2.0"
] | 1 | 2021-05-17T14:06:45.000Z | 2021-05-17T14:06:45.000Z | singer/metadata.py | chrisgoddard/singer-python | acbe4847087d5f9061440fd6cebf75c88d875c83 | [
"Apache-2.0"
] | null | null | null | singer/metadata.py | chrisgoddard/singer-python | acbe4847087d5f9061440fd6cebf75c88d875c83 | [
"Apache-2.0"
] | 1 | 2021-05-17T14:06:46.000Z | 2021-05-17T14:06:46.000Z | def new():
return {}
def to_map(raw_metadata):
return {tuple(md['breadcrumb']): md['metadata'] for md in raw_metadata}
def to_list(compiled_metadata):
return [{'breadcrumb': k, 'metadata': v} for k, v in compiled_metadata.items()]
def delete(compiled_metadata, breadcrumb, k):
del compiled_metadata[br... | 29.875 | 83 | 0.700139 | 94 | 717 | 5.180851 | 0.308511 | 0.361396 | 0.26694 | 0.277207 | 0.123203 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.177127 | 717 | 23 | 84 | 31.173913 | 0.825424 | 0 | 0 | 0 | 0 | 0 | 0.050209 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.222222 | 0.611111 | 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 |
aa43f5dec9ad9f95a8ea7948cfa372cc7f642db1 | 16,319 | py | Python | tests/parsing/xpath/tei_xpath_functions_test.py | elifesciences/sciencebeam-judge | 357f1b4266674611b24371224468db268ed4574e | [
"MIT"
] | null | null | null | tests/parsing/xpath/tei_xpath_functions_test.py | elifesciences/sciencebeam-judge | 357f1b4266674611b24371224468db268ed4574e | [
"MIT"
] | 189 | 2018-01-11T17:14:18.000Z | 2022-03-28T17:30:11.000Z | tests/parsing/xpath/tei_xpath_functions_test.py | elifesciences/sciencebeam-judge | 357f1b4266674611b24371224468db268ed4574e | [
"MIT"
] | null | null | null | import logging
from lxml.builder import E
import pytest
from sciencebeam_judge.parsing.xpath.tei_xpath_functions import register_functions
LOGGER = logging.getLogger(__name__)
@pytest.fixture(autouse=True)
def _register_functions():
register_functions()
def _tei_with_authors(*authors):
return E.TEI(E.te... | 36.50783 | 99 | 0.482444 | 1,579 | 16,319 | 4.775174 | 0.09373 | 0.077984 | 0.065517 | 0.090716 | 0.846154 | 0.822944 | 0.805968 | 0.780769 | 0.751857 | 0.701061 | 0 | 0.011688 | 0.397083 | 16,319 | 446 | 100 | 36.589686 | 0.75465 | 0 | 0 | 0.62406 | 0 | 0 | 0.163 | 0.063852 | 0 | 0 | 0 | 0 | 0.095238 | 1 | 0.100251 | false | 0 | 0.010025 | 0.002506 | 0.140351 | 0.015038 | 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 |
1020059147180f2ae41c791b5696ab3c2fef1686 | 198 | py | Python | server/views/api.py | appcypher/feature-request | c8c05cde18b0353e39c046405f168dcc9b90a11c | [
"Apache-2.0"
] | 5 | 2019-06-06T08:41:36.000Z | 2020-08-28T18:46:57.000Z | server/views/api.py | appcypher/feature-request | c8c05cde18b0353e39c046405f168dcc9b90a11c | [
"Apache-2.0"
] | 1 | 2022-02-10T17:24:39.000Z | 2022-02-10T17:24:39.000Z | server/views/api.py | appcypher/feature-request | c8c05cde18b0353e39c046405f168dcc9b90a11c | [
"Apache-2.0"
] | 2 | 2019-06-05T19:05:25.000Z | 2020-08-27T14:04:28.000Z | """ Module that contains restplus api isntantiation. """
from flask_restplus import Api
from config.blueprints import api_v1_blueprint
# Creates a restplus api instance
api = Api(api_v1_blueprint)
| 28.285714 | 56 | 0.808081 | 28 | 198 | 5.535714 | 0.571429 | 0.141935 | 0.180645 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011628 | 0.131313 | 198 | 6 | 57 | 33 | 0.889535 | 0.414141 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0.666667 | 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 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 6 |
105e91c445afa21c30c6daf930eb09ffc5196c1d | 35 | py | Python | tests/mods/nest/basic.py | Akm0d/pop | 77d9f6e6de8e02aa2ee5520d0aa0052fabd53243 | [
"Apache-2.0"
] | 48 | 2019-05-21T16:10:49.000Z | 2021-12-04T18:02:20.000Z | tests/mods/nest/basic.py | Akm0d/pop | 77d9f6e6de8e02aa2ee5520d0aa0052fabd53243 | [
"Apache-2.0"
] | 43 | 2019-05-21T22:39:44.000Z | 2020-02-07T16:37:29.000Z | tests/mods/nest/basic.py | Akm0d/pop | 77d9f6e6de8e02aa2ee5520d0aa0052fabd53243 | [
"Apache-2.0"
] | 18 | 2019-05-21T16:10:42.000Z | 2019-12-13T16:28:36.000Z | def ret_true(hub):
return True
| 11.666667 | 18 | 0.685714 | 6 | 35 | 3.833333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.228571 | 35 | 2 | 19 | 17.5 | 0.851852 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
107fea0e86169a409d0d264e61f4cf0f7fe389a7 | 25 | py | Python | python/hayate/store/__init__.py | tao12345666333/Talk-Is-Cheap | 7b2c5959828b6d8bbbad8144b9b97f9b77c6b34c | [
"MIT"
] | 4 | 2016-04-14T02:11:35.000Z | 2019-05-30T10:18:41.000Z | python/hayate/store/__init__.py | tao12345666333/Talk-Is-Cheap | 7b2c5959828b6d8bbbad8144b9b97f9b77c6b34c | [
"MIT"
] | 8 | 2016-07-21T16:02:17.000Z | 2021-09-23T02:49:34.000Z | python/hayate/store/__init__.py | tao12345666333/Talk-Is-Cheap | 7b2c5959828b6d8bbbad8144b9b97f9b77c6b34c | [
"MIT"
] | 2 | 2017-02-17T05:02:02.000Z | 2017-11-08T12:22:09.000Z | from modules import user
| 12.5 | 24 | 0.84 | 4 | 25 | 5.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16 | 25 | 1 | 25 | 25 | 1 | 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 |
10a48cb9dbfa4002c6269c392e374d0c2564e82b | 40 | py | Python | jinahub/segmenters/PDFSegmenter/__init__.py | vivek2301/executors | 8159681d68408ab8f797497bc3374be77e6ca392 | [
"Apache-2.0"
] | null | null | null | jinahub/segmenters/PDFSegmenter/__init__.py | vivek2301/executors | 8159681d68408ab8f797497bc3374be77e6ca392 | [
"Apache-2.0"
] | null | null | null | jinahub/segmenters/PDFSegmenter/__init__.py | vivek2301/executors | 8159681d68408ab8f797497bc3374be77e6ca392 | [
"Apache-2.0"
] | null | null | null | from .pdf_segmenter import PDFSegmenter
| 20 | 39 | 0.875 | 5 | 40 | 6.8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 40 | 1 | 40 | 40 | 0.944444 | 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 |
52d0d5cc35583e60b17c69d1017475bb9655e156 | 19,034 | py | Python | test/test_embpattern.py | EmbroiderPy/pyembroidery | 3d0db61e7a08bba8e51f4e5873ebfa678c12960b | [
"MIT"
] | null | null | null | test/test_embpattern.py | EmbroiderPy/pyembroidery | 3d0db61e7a08bba8e51f4e5873ebfa678c12960b | [
"MIT"
] | null | null | null | test/test_embpattern.py | EmbroiderPy/pyembroidery | 3d0db61e7a08bba8e51f4e5873ebfa678c12960b | [
"MIT"
] | null | null | null | from __future__ import print_function
import unittest
from test.pattern_for_tests import *
class TestEmbpattern(unittest.TestCase):
def position_equals(self, stitches, j, k):
self.assertEqual(stitches[j][:1], stitches[k][:1])
def test_thread_reorder(self):
test_file = "reorder.pes"
... | 43.95843 | 117 | 0.649364 | 2,422 | 19,034 | 4.838976 | 0.084641 | 0.084471 | 0.032765 | 0.043174 | 0.821075 | 0.780375 | 0.751195 | 0.730461 | 0.713481 | 0.701365 | 0 | 0.043382 | 0.2443 | 19,034 | 432 | 118 | 44.060185 | 0.771413 | 0.075602 | 0 | 0.620397 | 0 | 0 | 0.038258 | 0.007709 | 0 | 0 | 0.014268 | 0 | 0.25779 | 1 | 0.07932 | false | 0 | 0.008499 | 0 | 0.090652 | 0.033994 | 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 |
eae62de182c862dffd5b4f94a54228b065d014cc | 33 | py | Python | citrine_converters/mark10/__init__.py | rbuxman/new-refactor | c2254fa637fbe54a54e445a0a872d2d0bbe4165a | [
"BSD-2-Clause"
] | null | null | null | citrine_converters/mark10/__init__.py | rbuxman/new-refactor | c2254fa637fbe54a54e445a0a872d2d0bbe4165a | [
"BSD-2-Clause"
] | 2 | 2017-10-04T19:38:48.000Z | 2017-10-04T19:45:07.000Z | citrine_converters/mark10/__init__.py | rbuxman/new-refactor | c2254fa637fbe54a54e445a0a872d2d0bbe4165a | [
"BSD-2-Clause"
] | 2 | 2017-09-25T22:49:09.000Z | 2018-07-03T16:35:05.000Z | from .converter import converter
| 16.5 | 32 | 0.848485 | 4 | 33 | 7 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121212 | 33 | 1 | 33 | 33 | 0.965517 | 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 |
eaffa33d98086a03a84abc510c6db50094e5ab57 | 10,892 | py | Python | qcdb/tests/test_cbs_xtpl_gradient.py | loriab/qccddb | d9e156ef8b313ac0633211fc6b841f84a3ddde24 | [
"BSD-3-Clause"
] | 8 | 2019-03-28T11:54:59.000Z | 2022-03-19T03:31:37.000Z | qcdb/tests/test_cbs_xtpl_gradient.py | loriab/qccddb | d9e156ef8b313ac0633211fc6b841f84a3ddde24 | [
"BSD-3-Clause"
] | 39 | 2018-10-31T23:02:18.000Z | 2021-12-12T22:11:37.000Z | qcdb/tests/test_cbs_xtpl_gradient.py | loriab/qccddb | d9e156ef8b313ac0633211fc6b841f84a3ddde24 | [
"BSD-3-Clause"
] | 9 | 2018-03-12T20:51:50.000Z | 2022-02-28T15:18:34.000Z | import os
import numpy as np
import pytest
import qcdb
from .utils import *
#! Various gradients for a strained helium dimer and water molecule
ref_scf_dz = np.array([[0.0, 0.0, 0.01233095], [0.0, 0.0, -0.01233095]])
ref_scf_tz = np.array([[0.0, 0.0, 0.01246097], [0.0, 0.0, -0.01246097]])
ref_scf_dtz = np.array([[... | 33.931464 | 123 | 0.654517 | 1,717 | 10,892 | 3.966803 | 0.101922 | 0.02173 | 0.022904 | 0.129203 | 0.859492 | 0.813096 | 0.742622 | 0.710762 | 0.703568 | 0.634709 | 0 | 0.058055 | 0.171318 | 10,892 | 320 | 124 | 34.0375 | 0.696543 | 0.251561 | 0 | 0.473988 | 0 | 0 | 0.256274 | 0 | 0 | 0 | 0 | 0.003125 | 0.260116 | 1 | 0.121387 | false | 0 | 0.028902 | 0 | 0.150289 | 0.011561 | 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 |
d80b04cd062660df91da7fef59268fa1e8f127a7 | 2,018 | py | Python | tests/test_training.py | guillaume-chevalier/SGNN-Transformer-Sentence-Model-SimilarityBXENT | 4176ee7aad926463f240ae4b47b1bf4c547e6187 | [
"BSD-3-Clause"
] | 3 | 2019-02-04T01:10:20.000Z | 2019-04-16T12:19:11.000Z | tests/test_training.py | guillaume-chevalier/SGNN-Transformer-Sentence-Model-SimilarityBXENT | 4176ee7aad926463f240ae4b47b1bf4c547e6187 | [
"BSD-3-Clause"
] | null | null | null | tests/test_training.py | guillaume-chevalier/SGNN-Transformer-Sentence-Model-SimilarityBXENT | 4176ee7aad926463f240ae4b47b1bf4c547e6187 | [
"BSD-3-Clause"
] | null | null | null | import traceback
import pytest
from src.model.save_load_model import delete_model, MY_MODEL_NAME
from src.training import train_model_on_data
def test_can_train_one_epoch_of_one_step():
batch_size = 10
train_iters_per_epoch = 1
max_epoch = 1
cuda_device_id = None # None for CPU, 0 for first GPU, et... | 32.031746 | 101 | 0.681368 | 272 | 2,018 | 4.514706 | 0.253676 | 0.124593 | 0.159609 | 0.092834 | 0.796417 | 0.796417 | 0.796417 | 0.796417 | 0.796417 | 0.7443 | 0 | 0.008575 | 0.248761 | 2,018 | 62 | 102 | 32.548387 | 0.801451 | 0.064916 | 0 | 0.703704 | 0 | 0 | 0.052045 | 0.03505 | 0 | 0 | 0 | 0 | 0.037037 | 1 | 0.037037 | false | 0 | 0.074074 | 0 | 0.111111 | 0.055556 | 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 |
dc5410f85527801650f23a1a9a88a5e498fdb1b3 | 97 | py | Python | dw/generate/__init__.py | GongJunior/dw-Web | 0a4309ce11e3404e8ae668b00e4ab522cc2b29ae | [
"MIT"
] | null | null | null | dw/generate/__init__.py | GongJunior/dw-Web | 0a4309ce11e3404e8ae668b00e4ab522cc2b29ae | [
"MIT"
] | null | null | null | dw/generate/__init__.py | GongJunior/dw-Web | 0a4309ce11e3404e8ae668b00e4ab522cc2b29ae | [
"MIT"
] | null | null | null | from flask import Blueprint
bp = Blueprint('generate', __name__)
from dw.generate import routes | 19.4 | 36 | 0.793814 | 13 | 97 | 5.615385 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134021 | 97 | 5 | 37 | 19.4 | 0.869048 | 0 | 0 | 0 | 1 | 0 | 0.081633 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0.666667 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 6 |
dc84046efbf9fb44cc39d6749e9a8c17e2299902 | 58 | py | Python | division of string.py | ashwin8797/python-learning | e260dd8380315939dd7bd2a6b2c0a44b59f709c0 | [
"MIT"
] | null | null | null | division of string.py | ashwin8797/python-learning | e260dd8380315939dd7bd2a6b2c0a44b59f709c0 | [
"MIT"
] | null | null | null | division of string.py | ashwin8797/python-learning | e260dd8380315939dd7bd2a6b2c0a44b59f709c0 | [
"MIT"
] | null | null | null | a='cdef'
b='ab'
print('a'/'b')
a=8
b='ab'
print('a'/'b')
| 7.25 | 14 | 0.465517 | 14 | 58 | 1.928571 | 0.428571 | 0.222222 | 0.592593 | 0.666667 | 0.740741 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019608 | 0.12069 | 58 | 7 | 15 | 8.285714 | 0.509804 | 0 | 0 | 0.666667 | 0 | 0 | 0.206897 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 1 | 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 | 0 | 0 | 0 | 0 | 6 |
dcb2209bd7f0a8c7167b8778bed9c178a80ec46e | 116 | py | Python | colordict/__init__.py | aleferna12/colordict | ee66c3695c755a1a8469f740980c53df0d74471d | [
"MIT"
] | 1 | 2020-05-30T22:01:55.000Z | 2020-05-30T22:01:55.000Z | colordict/__init__.py | aleferna12/colordict | ee66c3695c755a1a8469f740980c53df0d74471d | [
"MIT"
] | 1 | 2021-04-19T19:16:56.000Z | 2021-04-29T12:36:06.000Z | colordict/__init__.py | aleferna12/colordict | ee66c3695c755a1a8469f740980c53df0d74471d | [
"MIT"
] | null | null | null | from colordict.color import *
from colordict.cdict import *
from colordict.gradients import *
__version__ = '1.2.5' | 23.2 | 33 | 0.775862 | 16 | 116 | 5.375 | 0.625 | 0.453488 | 0.44186 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029703 | 0.12931 | 116 | 5 | 34 | 23.2 | 0.821782 | 0 | 0 | 0 | 0 | 0 | 0.042735 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 0 | 0.75 | 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 |
f4e76adfae16c6fe70fdb1aa4939999c15e99ad1 | 4,282 | py | Python | utils/triplet.py | loribonna/CSSL | 60095d873dd62bb4403a4c20f054543673a21e7a | [
"MIT"
] | 3 | 2022-01-04T09:21:19.000Z | 2022-01-14T22:38:04.000Z | utils/triplet.py | loribonna/CSSL | 60095d873dd62bb4403a4c20f054543673a21e7a | [
"MIT"
] | null | null | null | utils/triplet.py | loribonna/CSSL | 60095d873dd62bb4403a4c20f054543673a21e7a | [
"MIT"
] | null | null | null | # Copyright 2021-present, Lorenzo Bonicelli, Pietro Buzzega, Matteo Boschini, Angelo Porrello, Simone Calderara.
# All rights reserved.
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
import torch
def negative_only_triplet_loss(labels, embedding... | 37.561404 | 112 | 0.689164 | 623 | 4,282 | 4.619583 | 0.215088 | 0.045865 | 0.037526 | 0.029187 | 0.825226 | 0.825226 | 0.799166 | 0.776234 | 0.776234 | 0.776234 | 0 | 0.012246 | 0.218122 | 4,282 | 113 | 113 | 37.893805 | 0.847372 | 0.48412 | 0 | 0.65 | 0 | 0 | 0.013352 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.05 | 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 |
524974f598f6db1aa47f48b3302976bd8e7637b0 | 67 | py | Python | nesdis_aws/__init__.py | hagne/nesdis_aws | 13db768d83274320dfacbac130fe3e355b647387 | [
"MIT"
] | null | null | null | nesdis_aws/__init__.py | hagne/nesdis_aws | 13db768d83274320dfacbac130fe3e355b647387 | [
"MIT"
] | 2 | 2021-09-22T15:37:23.000Z | 2021-12-23T18:36:44.000Z | nesdis_aws/__init__.py | hagne/nesdis_aws | 13db768d83274320dfacbac130fe3e355b647387 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from nesdis_aws.nesdis_aws import AwsQuery
| 22.333333 | 42 | 0.716418 | 10 | 67 | 4.6 | 0.8 | 0.391304 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017241 | 0.134328 | 67 | 2 | 43 | 33.5 | 0.775862 | 0.313433 | 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 |
52515b6b78169ef12c353e31f3a806e39dc05655 | 632 | py | Python | peacemakr/generated/api/__init__.py | peacemakr-io/peacemakr-python-sdk | 180bbc2e480ea855dddf0e28c2f27e83a17bfb84 | [
"Apache-2.0"
] | 3 | 2020-01-27T10:07:29.000Z | 2021-05-17T16:45:59.000Z | peacemakr/generated/api/__init__.py | peacemakr-io/peacemakr-python-sdk | 180bbc2e480ea855dddf0e28c2f27e83a17bfb84 | [
"Apache-2.0"
] | 7 | 2020-06-24T03:55:36.000Z | 2021-03-30T00:43:51.000Z | peacemakr/generated/api/__init__.py | peacemakr-io/peacemakr-python-sdk | 180bbc2e480ea855dddf0e28c2f27e83a17bfb84 | [
"Apache-2.0"
] | 1 | 2021-04-27T04:12:30.000Z | 2021-04-27T04:12:30.000Z | from __future__ import absolute_import
# flake8: noqa
# import apis into api package
from peacemakr.generated.api.client_api import ClientApi
from peacemakr.generated.api.crypto_config_api import CryptoConfigApi
from peacemakr.generated.api.key_derivation_service_registry_api import KeyDerivationServiceRegistryApi
fr... | 45.142857 | 103 | 0.882911 | 83 | 632 | 6.481928 | 0.39759 | 0.193309 | 0.327138 | 0.371747 | 0.104089 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001709 | 0.074367 | 632 | 13 | 104 | 48.615385 | 0.917949 | 0.064873 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
5260f220b0106e704783abff8ca4c9a6b941e16d | 212 | py | Python | meld/components/counter.py | kaidamasaki/teach | 1d29d3545705edd101216c1db108a4db118090ea | [
"Unlicense"
] | null | null | null | meld/components/counter.py | kaidamasaki/teach | 1d29d3545705edd101216c1db108a4db118090ea | [
"Unlicense"
] | null | null | null | meld/components/counter.py | kaidamasaki/teach | 1d29d3545705edd101216c1db108a4db118090ea | [
"Unlicense"
] | null | null | null | from flask_meld.component import Component
class Counter(Component):
count = 0
def add(self):
self.count = int(self.count) + 1
def subtract(self):
self.count = int(self.count) - 1
| 17.666667 | 42 | 0.632075 | 29 | 212 | 4.586207 | 0.517241 | 0.270677 | 0.195489 | 0.240602 | 0.390977 | 0.390977 | 0.390977 | 0 | 0 | 0 | 0 | 0.019108 | 0.259434 | 212 | 11 | 43 | 19.272727 | 0.828025 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0 | 0.714286 | 0 | 1 | 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 | 0 | 1 | 0 | 0 | 6 |
8710f4f3de2c7ea447eace537c20b1c9f17c237f | 47 | py | Python | waterbutler/providers/s3compat/__init__.py | KakeruMizuno/RDM-waterbutler | 58ecd801385a7572d1ed56568a31f701291c4e3e | [
"Apache-2.0"
] | null | null | null | waterbutler/providers/s3compat/__init__.py | KakeruMizuno/RDM-waterbutler | 58ecd801385a7572d1ed56568a31f701291c4e3e | [
"Apache-2.0"
] | 9 | 2018-04-13T04:57:46.000Z | 2019-08-20T13:58:02.000Z | waterbutler/providers/s3compat/__init__.py | KakeruMizuno/RDM-waterbutler | 58ecd801385a7572d1ed56568a31f701291c4e3e | [
"Apache-2.0"
] | 6 | 2018-09-29T13:49:26.000Z | 2022-01-27T04:35:12.000Z | from .provider import S3CompatProvider # noqa
| 23.5 | 46 | 0.808511 | 5 | 47 | 7.6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025 | 0.148936 | 47 | 1 | 47 | 47 | 0.925 | 0.085106 | 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 |
87417c7bbcb9f76e6735a0ceeac7ffd0b8e1be07 | 9,443 | py | Python | tests/contracts/KT1TEyRcaJi39jgj4Uuz7VD6Jmn6CDDADv4x/test_michelson_coding_KT1TEy.py | juztin/pytezos-1 | 7e608ff599d934bdcf129e47db43dbdb8fef9027 | [
"MIT"
] | 1 | 2020-08-11T02:31:24.000Z | 2020-08-11T02:31:24.000Z | tests/contracts/KT1TEyRcaJi39jgj4Uuz7VD6Jmn6CDDADv4x/test_michelson_coding_KT1TEy.py | juztin/pytezos-1 | 7e608ff599d934bdcf129e47db43dbdb8fef9027 | [
"MIT"
] | 1 | 2020-12-30T16:44:56.000Z | 2020-12-30T16:44:56.000Z | tests/contracts/KT1TEyRcaJi39jgj4Uuz7VD6Jmn6CDDADv4x/test_michelson_coding_KT1TEy.py | tqtezos/pytezos | a4ac0b022d35d4c9f3062609d8ce09d584b5faa8 | [
"MIT"
] | 1 | 2022-03-20T19:01:00.000Z | 2022-03-20T19:01:00.000Z | from unittest import TestCase
from tests import get_data
from pytezos.michelson.micheline import michelson_to_micheline
from pytezos.michelson.formatter import micheline_to_michelson
class MichelsonCodingTestKT1TEy(TestCase):
def setUp(self):
self.maxDiff = None
def test_michelson_parse_code_KT... | 46.9801 | 90 | 0.733983 | 880 | 9,443 | 7.563636 | 0.05 | 0.048377 | 0.074369 | 0.135216 | 0.963341 | 0.963341 | 0.963341 | 0.963341 | 0.947416 | 0.947416 | 0 | 0.052514 | 0.191359 | 9,443 | 200 | 91 | 47.215 | 0.819146 | 0 | 0 | 0.639053 | 0 | 0 | 0.316531 | 0.316531 | 0 | 0 | 0 | 0 | 0.159763 | 1 | 0.16568 | false | 0 | 0.023669 | 0 | 0.195266 | 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 |
5ec5f8854536907f1712c481b9785dc2f47146cf | 63 | py | Python | vrp/__init__.py | israelpereira55/CVRPPLOT | c4e59f04cab8d6661729decacd044ec619d6d0a4 | [
"MIT"
] | null | null | null | vrp/__init__.py | israelpereira55/CVRPPLOT | c4e59f04cab8d6661729decacd044ec619d6d0a4 | [
"MIT"
] | null | null | null | vrp/__init__.py | israelpereira55/CVRPPLOT | c4e59f04cab8d6661729decacd044ec619d6d0a4 | [
"MIT"
] | null | null | null | from .cvrp import CVRP
from .cvrp_solution import CVRP_Solution | 31.5 | 40 | 0.857143 | 10 | 63 | 5.2 | 0.4 | 0.307692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 63 | 2 | 40 | 31.5 | 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 |
5ec95bf00cb761c170e9cf77a5c77cb77c53e83a | 110 | py | Python | jagdreisencheck/context_processors.py | HerbyDE/jagdreisencheck-webapp | 9af5deda2423b787da88a0c893f3c474d8e4f73f | [
"BSD-3-Clause"
] | null | null | null | jagdreisencheck/context_processors.py | HerbyDE/jagdreisencheck-webapp | 9af5deda2423b787da88a0c893f3c474d8e4f73f | [
"BSD-3-Clause"
] | null | null | null | jagdreisencheck/context_processors.py | HerbyDE/jagdreisencheck-webapp | 9af5deda2423b787da88a0c893f3c474d8e4f73f | [
"BSD-3-Clause"
] | null | null | null | import os
def testsystem(request):
return {'is_testsystem': eval(os.environ.get('testsystem', "True"))} | 18.333333 | 72 | 0.7 | 14 | 110 | 5.428571 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127273 | 110 | 6 | 72 | 18.333333 | 0.791667 | 0 | 0 | 0 | 0 | 0 | 0.243243 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 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 |
0d65483cbb740a43d18ccce67774236ded01c2b9 | 69,585 | py | Python | tests/test_walker.py | Code-ReaQtor/latex2mathml | 849bc9d3e6a0fed255a6eb5709b7f4f4451a9d6b | [
"MIT"
] | 21 | 2016-01-10T22:10:32.000Z | 2018-12-19T12:45:19.000Z | tests/test_walker.py | Code-ReaQtor/latex2mathml | 849bc9d3e6a0fed255a6eb5709b7f4f4451a9d6b | [
"MIT"
] | 23 | 2016-07-18T10:07:45.000Z | 2018-11-11T14:12:42.000Z | tests/test_walker.py | Code-ReaQtor/latex2mathml | 849bc9d3e6a0fed255a6eb5709b7f4f4451a9d6b | [
"MIT"
] | 4 | 2016-03-13T06:53:14.000Z | 2018-12-25T05:33:04.000Z | import string
from typing import Any, Tuple, Union
import pytest
from latex2mathml.exceptions import (
DenominatorNotFoundError,
DoubleSubscriptsError,
DoubleSuperscriptsError,
ExtraLeftOrMissingRightError,
InvalidAlignmentError,
InvalidStyleForGenfracError,
InvalidWidthError,
LimitsMu... | 40.222543 | 120 | 0.263548 | 4,355 | 69,585 | 4.193341 | 0.064294 | 0.43418 | 0.253203 | 0.208137 | 0.761965 | 0.716406 | 0.679772 | 0.650203 | 0.584164 | 0.541233 | 0 | 0.014832 | 0.589179 | 69,585 | 1,729 | 121 | 40.245807 | 0.62399 | 0.001437 | 0 | 0.749563 | 0 | 0.006989 | 0.0931 | 0.017609 | 0.004077 | 0 | 0 | 0 | 0.000582 | 1 | 0.001165 | false | 0 | 0.002912 | 0 | 0.004077 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
0d6a24d3c064aaf944fe7c1b8f0d0379139f7a37 | 38 | py | Python | matrevy/people/decorators.py | matrevy/matrevy.dk | abaf6bc328adf55d522a5cf0c83092949a8f7a20 | [
"MIT"
] | null | null | null | matrevy/people/decorators.py | matrevy/matrevy.dk | abaf6bc328adf55d522a5cf0c83092949a8f7a20 | [
"MIT"
] | null | null | null | matrevy/people/decorators.py | matrevy/matrevy.dk | abaf6bc328adf55d522a5cf0c83092949a8f7a20 | [
"MIT"
] | null | null | null |
def access_required():
pass
| 7.6 | 23 | 0.578947 | 4 | 38 | 5.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.342105 | 38 | 4 | 24 | 9.5 | 0.84 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0.5 | 0 | 0 | 0.5 | 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 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 6 |
0de2e9d48b297bc2b7f4ac99703dc4abf09dcea5 | 33 | py | Python | flit/buildapi.py | ksunden/flit | 5ed24842e614af813bd67ecf6ee918961fbf0ac2 | [
"BSD-3-Clause"
] | 1,642 | 2015-03-26T18:22:25.000Z | 2021-12-01T00:10:52.000Z | flit/buildapi.py | ksunden/flit | 5ed24842e614af813bd67ecf6ee918961fbf0ac2 | [
"BSD-3-Clause"
] | 427 | 2015-03-16T20:22:17.000Z | 2021-12-01T14:15:38.000Z | flit/buildapi.py | ksunden/flit | 5ed24842e614af813bd67ecf6ee918961fbf0ac2 | [
"BSD-3-Clause"
] | 110 | 2015-03-28T02:50:28.000Z | 2021-11-27T09:36:37.000Z | from flit_core.buildapi import *
| 16.5 | 32 | 0.818182 | 5 | 33 | 5.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121212 | 33 | 1 | 33 | 33 | 0.896552 | 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 |
0deadcc874ba4eb04f81a37b0f0d015d49fabee6 | 46 | py | Python | aiomatrix/dispatcher/handlers/__init__.py | Forden/aiomatrix | d258076bae8eb776495b92be46ee9f4baec8d9a6 | [
"MIT"
] | 2 | 2021-10-29T18:07:08.000Z | 2021-11-19T00:25:43.000Z | aiomatrix/dispatcher/handlers/__init__.py | Forden/aiomatrix | d258076bae8eb776495b92be46ee9f4baec8d9a6 | [
"MIT"
] | 1 | 2022-03-06T11:17:43.000Z | 2022-03-06T11:17:43.000Z | aiomatrix/dispatcher/handlers/__init__.py | Forden/aiomatrix | d258076bae8eb776495b92be46ee9f4baec8d9a6 | [
"MIT"
] | null | null | null | from .handler import Handler, HandlerCallback
| 23 | 45 | 0.847826 | 5 | 46 | 7.8 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108696 | 46 | 1 | 46 | 46 | 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 |
2185265c3f0c8b55a37b62d8792fcd1de74114d0 | 168 | py | Python | tests/test_app.py | theia-jane/python-book-api | 78e7be0462f3921f889e4847a0bb4737da295e82 | [
"MIT"
] | null | null | null | tests/test_app.py | theia-jane/python-book-api | 78e7be0462f3921f889e4847a0bb4737da295e82 | [
"MIT"
] | 8 | 2022-01-23T05:27:19.000Z | 2022-01-28T06:13:21.000Z | tests/test_app.py | theia-jane/python-book-api | 78e7be0462f3921f889e4847a0bb4737da295e82 | [
"MIT"
] | null | null | null | import pytest
def test_home(client):
assert client.get("/").status_code == 200
def test_404(client):
assert client.get("/does-not-exist").status_code == 404
| 18.666667 | 59 | 0.696429 | 25 | 168 | 4.52 | 0.6 | 0.123894 | 0.318584 | 0.371681 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062937 | 0.14881 | 168 | 8 | 60 | 21 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0.4 | 1 | 0.4 | false | 0 | 0.2 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 6 |
df0eeb44fa374eaae6ab36578b4375073329ed01 | 57,519 | py | Python | winevtrc/database.py | benstobbs/winevt-kb | 816817592348a564f87c834e1265cf04b0cc2a47 | [
"Apache-2.0"
] | 9 | 2015-01-22T14:00:18.000Z | 2022-01-08T06:20:17.000Z | winevtrc/database.py | benstobbs/winevt-kb | 816817592348a564f87c834e1265cf04b0cc2a47 | [
"Apache-2.0"
] | 14 | 2015-01-29T17:09:34.000Z | 2022-01-05T07:38:52.000Z | winevtrc/database.py | benstobbs/winevt-kb | 816817592348a564f87c834e1265cf04b0cc2a47 | [
"Apache-2.0"
] | 4 | 2016-09-21T04:14:53.000Z | 2021-09-28T09:35:15.000Z | # -*- coding: utf-8 -*-
"""Classes to read from and write to SQLite databases."""
import difflib
import logging
import re
import sqlite3
from winevtrc import definitions
from winevtrc import errors
from winevtrc import resources
class SQLite3DatabaseFile(object):
"""Class that defines a sqlite3 database file."""
... | 34.176471 | 79 | 0.687877 | 7,018 | 57,519 | 5.354802 | 0.045882 | 0.049761 | 0.048536 | 0.02174 | 0.821181 | 0.791166 | 0.760245 | 0.743135 | 0.721794 | 0.685471 | 0 | 0.006588 | 0.218902 | 57,519 | 1,682 | 80 | 34.19679 | 0.829861 | 0.228672 | 0 | 0.686339 | 0 | 0.001093 | 0.158272 | 0.031814 | 0 | 0 | 0 | 0.007134 | 0 | 1 | 0.066667 | false | 0 | 0.00765 | 0 | 0.130055 | 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 |
df8ff6307f4e7b5eadb02e4fb8c766073b666241 | 21 | py | Python | __init__.py | acutkosky/freerex | 58f188db7da6e1cb3224f768e76b944b99d8c5c1 | [
"MIT"
] | 4 | 2017-08-27T11:54:05.000Z | 2021-02-04T14:23:35.000Z | __init__.py | acutkosky/freerex | 58f188db7da6e1cb3224f768e76b944b99d8c5c1 | [
"MIT"
] | null | null | null | __init__.py | acutkosky/freerex | 58f188db7da6e1cb3224f768e76b944b99d8c5c1 | [
"MIT"
] | 3 | 2018-02-04T19:50:05.000Z | 2021-02-04T14:23:37.000Z | from freerex import * | 21 | 21 | 0.809524 | 3 | 21 | 5.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 21 | 1 | 21 | 21 | 0.944444 | 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 |
10d007a43d3b2a438346d3b7df8b3d4debd8c562 | 4,515 | py | Python | multigraph/features.py | kayoyin/scr | a2193817b4833da339d32d0b1a502e13998a736a | [
"BSD-3-Clause"
] | 1 | 2021-10-08T08:56:20.000Z | 2021-10-08T08:56:20.000Z | multigraph/features.py | kayoyin/scr | a2193817b4833da339d32d0b1a502e13998a736a | [
"BSD-3-Clause"
] | null | null | null | multigraph/features.py | kayoyin/scr | a2193817b4833da339d32d0b1a502e13998a736a | [
"BSD-3-Clause"
] | 1 | 2022-01-27T07:01:29.000Z | 2022-01-27T07:01:29.000Z | import re
import numpy as np
I_SIGNS = ["I1","I2"]
YOU_SIGNS = ["YOU", "YOU1"]
INDEX_SIGNS = ["INDEX1", "INDEX2", "INDEX4", "INDEX-AREA", "INDEX-ORAL"]
dist_threshold = 50
def normalize(gloss):
return gloss.strip("$^*")
def dist(loc1, loc2):
a,b = loc1
x,y = loc2
return np.sqrt((a-x)**2 + (b-y)**2)
... | 46.071429 | 320 | 0.714729 | 621 | 4,515 | 5.020934 | 0.122383 | 0.062861 | 0.087235 | 0.058371 | 0.859846 | 0.822643 | 0.810135 | 0.788967 | 0.767479 | 0.665491 | 0 | 0.021497 | 0.165449 | 4,515 | 97 | 321 | 46.546392 | 0.805998 | 0.008195 | 0 | 0.635135 | 0 | 0 | 0.059021 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.135135 | false | 0 | 0.027027 | 0.013514 | 0.445946 | 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 |
10d984760586ff43346456ef9dfb911d05efbc36 | 32 | py | Python | bronze/5/14928.py | darkapplepower/baekjoon | 4148e8e205f33c07570e52fef123f9a73014fbdb | [
"WTFPL"
] | 1 | 2022-03-06T03:51:06.000Z | 2022-03-06T03:51:06.000Z | bronze/5/14928.py | darkapplepower/baekjoon | 4148e8e205f33c07570e52fef123f9a73014fbdb | [
"WTFPL"
] | null | null | null | bronze/5/14928.py | darkapplepower/baekjoon | 4148e8e205f33c07570e52fef123f9a73014fbdb | [
"WTFPL"
] | null | null | null | a=int(input())
print(a%20000303) | 16 | 17 | 0.71875 | 6 | 32 | 3.833333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.258065 | 0.03125 | 32 | 2 | 17 | 16 | 0.483871 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 1 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
10de49d39d0cc08cf6c08caefa71608b618479c7 | 9,677 | py | Python | test/test_integration_cli_ecs.py | mergermarket/cdflow-commands | d1665e668428985ec6759f8aa59580d363701bc5 | [
"MIT"
] | null | null | null | test/test_integration_cli_ecs.py | mergermarket/cdflow-commands | d1665e668428985ec6759f8aa59580d363701bc5 | [
"MIT"
] | 1,626 | 2017-03-09T23:41:30.000Z | 2022-03-31T06:15:27.000Z | test/test_integration_cli_ecs.py | mergermarket/cdflow-commands | d1665e668428985ec6759f8aa59580d363701bc5 | [
"MIT"
] | 3 | 2017-03-22T17:06:26.000Z | 2020-10-15T09:43:29.000Z | import json
import unittest
from datetime import datetime
from io import TextIOWrapper
from cdflow_commands import cli
from mock import MagicMock, Mock, mock_open, patch
import yaml
@patch('cdflow_commands.release._copy_platform_config')
@patch('cdflow_commands.cli.check_output')
@patch('cdflow_commands.release.os')... | 34.315603 | 78 | 0.583342 | 985 | 9,677 | 5.389848 | 0.174619 | 0.093238 | 0.050104 | 0.029384 | 0.846864 | 0.823507 | 0.823507 | 0.823507 | 0.808062 | 0.774911 | 0 | 0.015735 | 0.297303 | 9,677 | 281 | 79 | 34.437722 | 0.765 | 0 | 0 | 0.694561 | 0 | 0 | 0.228067 | 0.095071 | 0 | 0 | 0 | 0 | 0.041841 | 1 | 0.008368 | false | 0 | 0.029289 | 0 | 0.041841 | 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 |
8029f31fff7f36d6d14eb0eb897380a5cd43ac6d | 142 | py | Python | app/app/views.py | rajrpatel62499/recipie-app-api | 5d92a4bb30b0b6752a98ecbf11e3b46bff0dc81b | [
"MIT"
] | null | null | null | app/app/views.py | rajrpatel62499/recipie-app-api | 5d92a4bb30b0b6752a98ecbf11e3b46bff0dc81b | [
"MIT"
] | null | null | null | app/app/views.py | rajrpatel62499/recipie-app-api | 5d92a4bb30b0b6752a98ecbf11e3b46bff0dc81b | [
"MIT"
] | null | null | null | from django.shortcuts import render
from django.http import HttpResponse
def demo(request):
return HttpResponse(content=b'<h1>bingo<h1>') | 28.4 | 49 | 0.788732 | 20 | 142 | 5.6 | 0.75 | 0.178571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015873 | 0.112676 | 142 | 5 | 49 | 28.4 | 0.873016 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 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 |
80406760609b37abe1d25d4a04b30570e8e7b382 | 46 | py | Python | enthought/pyface/tasks/api.py | enthought/etsproxy | 4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347 | [
"BSD-3-Clause"
] | 3 | 2016-12-09T06:05:18.000Z | 2018-03-01T13:00:29.000Z | enthought/pyface/tasks/api.py | enthought/etsproxy | 4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347 | [
"BSD-3-Clause"
] | 1 | 2020-12-02T00:51:32.000Z | 2020-12-02T08:48:55.000Z | enthought/pyface/tasks/api.py | enthought/etsproxy | 4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347 | [
"BSD-3-Clause"
] | null | null | null | # proxy module
from pyface.tasks.api import *
| 15.333333 | 30 | 0.76087 | 7 | 46 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152174 | 46 | 2 | 31 | 23 | 0.897436 | 0.26087 | 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 |
80475223a457d603e063b3c93e10132b377fbba7 | 14,930 | py | Python | tests/test_rendering.py | Nikolay-Lysenko/dodecaphony | 1a02af4b8b11785b65596b7ce14e1790436e0098 | [
"MIT"
] | 2 | 2021-08-29T03:20:21.000Z | 2021-11-22T01:20:55.000Z | tests/test_rendering.py | Nikolay-Lysenko/dodecaphony | 1a02af4b8b11785b65596b7ce14e1790436e0098 | [
"MIT"
] | null | null | null | tests/test_rendering.py | Nikolay-Lysenko/dodecaphony | 1a02af4b8b11785b65596b7ce14e1790436e0098 | [
"MIT"
] | 1 | 2021-08-29T03:20:53.000Z | 2021-08-29T03:20:53.000Z | """
Test `dodecaphony.rendering` module.
Author: Nikolay Lysenko
"""
from typing import Any
import pretty_midi
import pytest
import yaml
from dodecaphony.fragment import Fragment, override_calculated_attributes
from dodecaphony.rendering import (
create_lilypond_file_from_fragment,
create_midi_from_fragmen... | 39.39314 | 112 | 0.477294 | 2,130 | 14,930 | 3.126291 | 0.084038 | 0.036642 | 0.049106 | 0.052861 | 0.824899 | 0.777895 | 0.757771 | 0.743055 | 0.742153 | 0.67863 | 0 | 0.093886 | 0.355794 | 14,930 | 378 | 113 | 39.497355 | 0.598461 | 0.030342 | 0 | 0.635294 | 0 | 0.147059 | 0.238099 | 0.173723 | 0 | 0 | 0 | 0 | 0.011765 | 1 | 0.014706 | false | 0 | 0.017647 | 0 | 0.032353 | 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 |
337a6112f47120b44bf4d733dc6ae70165c0ca72 | 509 | py | Python | Codewars/7kyu/sum-of-a-sequence/Python/test.py | RevansChen/online-judge | ad1b07fee7bd3c49418becccda904e17505f3018 | [
"MIT"
] | 7 | 2017-09-20T16:40:39.000Z | 2021-08-31T18:15:08.000Z | Codewars/7kyu/sum-of-a-sequence/Python/test.py | RevansChen/online-judge | ad1b07fee7bd3c49418becccda904e17505f3018 | [
"MIT"
] | null | null | null | Codewars/7kyu/sum-of-a-sequence/Python/test.py | RevansChen/online-judge | ad1b07fee7bd3c49418becccda904e17505f3018 | [
"MIT"
] | null | null | null | # Python - 3.6.0
Test.describe('Basic tests')
Test.assert_equals(sequence_sum(2, 6, 2), 12)
Test.assert_equals(sequence_sum(1, 5, 1), 15)
Test.assert_equals(sequence_sum(1, 5, 3), 5)
Test.assert_equals(sequence_sum(0, 15, 3), 45)
Test.assert_equals(sequence_sum(16, 15, 3), 0)
Test.assert_equals(sequence_sum(2, 24, 22)... | 36.357143 | 47 | 0.732809 | 98 | 509 | 3.602041 | 0.234694 | 0.283286 | 0.453258 | 0.679887 | 0.8017 | 0.572238 | 0.328612 | 0 | 0 | 0 | 0 | 0.119048 | 0.092338 | 509 | 13 | 48 | 39.153846 | 0.645022 | 0.027505 | 0 | 0 | 0 | 0 | 0.022312 | 0 | 0 | 0 | 0 | 0 | 0.909091 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
3389b6da4236f9b900a54e0566a6d75b3ff17774 | 106 | py | Python | tests/functional/test_feeds.py | tgiardina/rpp-h | fece590f901b052a59c19a24acfeba52cee33c84 | [
"BSD-2-Clause"
] | 2,103 | 2015-01-07T12:47:49.000Z | 2022-03-29T02:38:25.000Z | tests/functional/test_feeds.py | tgiardina/rpp-h | fece590f901b052a59c19a24acfeba52cee33c84 | [
"BSD-2-Clause"
] | 4,322 | 2015-01-04T17:18:01.000Z | 2022-03-31T17:06:02.000Z | tests/functional/test_feeds.py | tgiardina/rpp-h | fece590f901b052a59c19a24acfeba52cee33c84 | [
"BSD-2-Clause"
] | 389 | 2015-01-24T04:10:02.000Z | 2022-03-28T08:00:16.000Z | def test_atom_feed(app):
app.get("/stream.atom")
def test_rss_feed(app):
app.get("/stream.rss")
| 15.142857 | 27 | 0.660377 | 18 | 106 | 3.666667 | 0.444444 | 0.212121 | 0.30303 | 0.393939 | 0.575758 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.150943 | 106 | 6 | 28 | 17.666667 | 0.733333 | 0 | 0 | 0 | 0 | 0 | 0.216981 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
33da9e76d1966f919c595b2c05916185f8d137cf | 219 | py | Python | api/pagination.py | hackoregon/neighborhoods-2018 | 2e1bf837365182a212527e1afbedddc759d0ee78 | [
"MIT"
] | 6 | 2018-03-16T00:06:31.000Z | 2019-06-02T21:27:03.000Z | api/pagination.py | hackoregon/neighborhoods-2018 | 2e1bf837365182a212527e1afbedddc759d0ee78 | [
"MIT"
] | 53 | 2018-03-16T03:29:04.000Z | 2021-06-10T20:17:11.000Z | api/pagination.py | hackoregon/neighborhoods-2018 | 2e1bf837365182a212527e1afbedddc759d0ee78 | [
"MIT"
] | 1 | 2018-06-20T16:03:40.000Z | 2018-06-20T16:03:40.000Z | from rest_framework.pagination import LimitOffsetPagination
class LargeResultSetPagination(LimitOffsetPagination):
max_limit = 5000
class VeryLargeResultSetPagination(LimitOffsetPagination):
max_limit = 50000 | 27.375 | 59 | 0.849315 | 18 | 219 | 10.166667 | 0.722222 | 0.262295 | 0.31694 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046154 | 0.109589 | 219 | 8 | 60 | 27.375 | 0.892308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 1 | 0 | 1 | 0 | 1 | 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 | 0 | 0 | 1 | 0 | 0 | 6 |
33de9874539e22dfa5d9f40390aa0b3a10d072ea | 96 | py | Python | venv/lib/python3.8/site-packages/pip/_vendor/cachecontrol/heuristics.py | Retraces/UkraineBot | 3d5d7f8aaa58fa0cb8b98733b8808e5dfbdb8b71 | [
"MIT"
] | 2 | 2022-03-13T01:58:52.000Z | 2022-03-31T06:07:54.000Z | venv/lib/python3.8/site-packages/pip/_vendor/cachecontrol/heuristics.py | DesmoSearch/Desmobot | b70b45df3485351f471080deb5c785c4bc5c4beb | [
"MIT"
] | 19 | 2021-11-20T04:09:18.000Z | 2022-03-23T15:05:55.000Z | venv/lib/python3.8/site-packages/pip/_vendor/cachecontrol/heuristics.py | DesmoSearch/Desmobot | b70b45df3485351f471080deb5c785c4bc5c4beb | [
"MIT"
] | null | null | null | /home/runner/.cache/pip/pool/04/51/87/277c90731bd98b37e8f742cb674e13fd9e574825ef168b6ba7b52cd2c7 | 96 | 96 | 0.895833 | 9 | 96 | 9.555556 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.447917 | 0 | 96 | 1 | 96 | 96 | 0.447917 | 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 |
33e69a55e1abbd2331d6d21f9aeff8fe3a4d205b | 33 | py | Python | child_test.py | ja-dir/demorepo | 00ead2c4167735204f3f184d883b664e87ca725e | [
"MIT"
] | null | null | null | child_test.py | ja-dir/demorepo | 00ead2c4167735204f3f184d883b664e87ca725e | [
"MIT"
] | null | null | null | child_test.py | ja-dir/demorepo | 00ead2c4167735204f3f184d883b664e87ca725e | [
"MIT"
] | null | null | null | print("Hello from child branch")
| 16.5 | 32 | 0.757576 | 5 | 33 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121212 | 33 | 1 | 33 | 33 | 0.862069 | 0 | 0 | 0 | 0 | 0 | 0.69697 | 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 |
1d197f4712ccc99b0b58aaaf5fb7597e526ff1f9 | 5,329 | py | Python | django_presskit/migrations/0004_auto_20190202_2017.py | FutureProofGames/django_presskit | 638d77f18e51f6d3a2adeaa6d6e65f62e7c5f934 | [
"MIT"
] | null | null | null | django_presskit/migrations/0004_auto_20190202_2017.py | FutureProofGames/django_presskit | 638d77f18e51f6d3a2adeaa6d6e65f62e7c5f934 | [
"MIT"
] | 1 | 2019-01-09T03:53:53.000Z | 2019-01-09T03:53:53.000Z | django_presskit/migrations/0004_auto_20190202_2017.py | FutureProofGames/django_presskit | 638d77f18e51f6d3a2adeaa6d6e65f62e7c5f934 | [
"MIT"
] | 3 | 2019-02-18T21:21:48.000Z | 2019-02-21T00:42:57.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.18 on 2019-02-02 20:17
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('django_presskit', '0003_auto_20181002_1915'),
]
operations = [
migrations.... | 33.30625 | 67 | 0.552261 | 406 | 5,329 | 7.068966 | 0.150246 | 0.078049 | 0.172822 | 0.122648 | 0.791638 | 0.791638 | 0.791638 | 0.775261 | 0.75784 | 0.402439 | 0 | 0.01382 | 0.321073 | 5,329 | 159 | 68 | 33.515723 | 0.779436 | 0.012948 | 0 | 0.736842 | 1 | 0 | 0.195549 | 0.037093 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.013158 | 0 | 0.032895 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 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 |
1d4ceea77141f718fb64d5c7ed4f37998bf44db2 | 488 | py | Python | tests/test_cache.py | nollety/tengen | e11d9796638cc7538b2c946d163784c470fcea28 | [
"MIT"
] | null | null | null | tests/test_cache.py | nollety/tengen | e11d9796638cc7538b2c946d163784c470fcea28 | [
"MIT"
] | 87 | 2021-07-05T07:17:35.000Z | 2022-03-29T07:29:27.000Z | tests/test_cache.py | nollety/tengen | e11d9796638cc7538b2c946d163784c470fcea28 | [
"MIT"
] | null | null | null | """Test cases for the cache module."""
from tengen.cache import CACHE_DIR
from tengen.cache import init_cache
from tengen.cache import list_cache_content
def test_init_cache() -> None:
"""Cache directory exists after 'init_cache' is called."""
init_cache()
assert CACHE_DIR.exists()
def test_list_cache_c... | 28.705882 | 66 | 0.72541 | 72 | 488 | 4.694444 | 0.402778 | 0.106509 | 0.189349 | 0.186391 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161885 | 488 | 16 | 67 | 30.5 | 0.826406 | 0.221311 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.222222 | true | 0 | 0.333333 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
1d5e7553767f502fbd9f241478b886c59de86319 | 161 | py | Python | src/internals/errors/missing_dependency_error.py | mabel-dev/salmon | 90866d16b08925206d1f8d9b3c8290fcd35f5322 | [
"MIT"
] | null | null | null | src/internals/errors/missing_dependency_error.py | mabel-dev/salmon | 90866d16b08925206d1f8d9b3c8290fcd35f5322 | [
"MIT"
] | null | null | null | src/internals/errors/missing_dependency_error.py | mabel-dev/salmon | 90866d16b08925206d1f8d9b3c8290fcd35f5322 | [
"MIT"
] | null | null | null | """
This exception should be used when a lazy import fails
"""
from .base_exception import BaseException
class MissingDependencyError(BaseException):
pass
| 17.888889 | 54 | 0.782609 | 19 | 161 | 6.578947 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15528 | 161 | 8 | 55 | 20.125 | 0.919118 | 0.335404 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.333333 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 6 |
d51a101dc0e1549373e56f29f7045808c6c3758d | 24 | py | Python | tensorkit/debug/__init__.py | lizeyan/tensorkit | 2997a5914ec3c3ec72f91eb5906b5ee878fdc020 | [
"MIT"
] | null | null | null | tensorkit/debug/__init__.py | lizeyan/tensorkit | 2997a5914ec3c3ec72f91eb5906b5ee878fdc020 | [
"MIT"
] | null | null | null | tensorkit/debug/__init__.py | lizeyan/tensorkit | 2997a5914ec3c3ec72f91eb5906b5ee878fdc020 | [
"MIT"
] | 2 | 2020-10-15T06:41:32.000Z | 2021-01-27T12:55:11.000Z | from .recorder import *
| 12 | 23 | 0.75 | 3 | 24 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 24 | 1 | 24 | 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 | 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 |
d537ae7f2ac0289e01caa96891e7381c94778f46 | 115 | py | Python | tests/test_import.py | chrisbrake/chrisbrake | a5d89dead1cb2da5b23ccf7da40050865a107b7a | [
"BSD-3-Clause"
] | null | null | null | tests/test_import.py | chrisbrake/chrisbrake | a5d89dead1cb2da5b23ccf7da40050865a107b7a | [
"BSD-3-Clause"
] | null | null | null | tests/test_import.py | chrisbrake/chrisbrake | a5d89dead1cb2da5b23ccf7da40050865a107b7a | [
"BSD-3-Clause"
] | null | null | null | def test_import():
""" Test to ensure we didn't fail packaging """
import chrisbrake
assert chrisbrake
| 23 | 51 | 0.678261 | 15 | 115 | 5.133333 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.234783 | 115 | 4 | 52 | 28.75 | 0.875 | 0.33913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.333333 | true | 0 | 0.666667 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
d5429a0bea2e4073e76b4dd64a45b70fd2038100 | 127 | py | Python | conftest.py | giocatron/Polygon | b3b0e0047bf20eb91379b594fd26603fcf279880 | [
"CC-BY-4.0"
] | null | null | null | conftest.py | giocatron/Polygon | b3b0e0047bf20eb91379b594fd26603fcf279880 | [
"CC-BY-4.0"
] | null | null | null | conftest.py | giocatron/Polygon | b3b0e0047bf20eb91379b594fd26603fcf279880 | [
"CC-BY-4.0"
] | 2 | 2020-11-24T22:23:08.000Z | 2020-11-24T23:41:36.000Z | pytest_plugins = [
"polygon.tests.fixtures",
"polygon.plugins.tests.fixtures",
"polygon.graphql.tests.fixtures",
]
| 21.166667 | 37 | 0.692913 | 13 | 127 | 6.692308 | 0.461538 | 0.448276 | 0.45977 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149606 | 127 | 5 | 38 | 25.4 | 0.805556 | 0 | 0 | 0 | 0 | 0 | 0.645669 | 0.645669 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
d55f7170ac22d5540403bc03470e72ccf159e60d | 32 | py | Python | GmailWrapper_JE/je_gmail/token/__init__.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | 2 | 2020-12-30T06:37:10.000Z | 2020-12-30T07:27:45.000Z | GmailWrapper_JE/je_gmail/token/__init__.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | GmailWrapper_JE/je_gmail/token/__init__.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | from je_gmail.token import *
| 10.666667 | 29 | 0.71875 | 5 | 32 | 4.4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.21875 | 32 | 2 | 30 | 16 | 0.88 | 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 |
d5684a74307da6ecd65a68997ecaa5fd58d36323 | 33,685 | py | Python | tests/unit_tests/trading_tests/test_portfolio.py | CryptoRichy/OctoBot | 1ca5bd2ba4b8fc09859518fcb2a62f74a1435019 | [
"Apache-2.0"
] | 1 | 2018-11-26T16:43:36.000Z | 2018-11-26T16:43:36.000Z | tests/unit_tests/trading_tests/test_portfolio.py | CryptoRichy/OctoBot | 1ca5bd2ba4b8fc09859518fcb2a62f74a1435019 | [
"Apache-2.0"
] | null | null | null | tests/unit_tests/trading_tests/test_portfolio.py | CryptoRichy/OctoBot | 1ca5bd2ba4b8fc09859518fcb2a62f74a1435019 | [
"Apache-2.0"
] | null | null | null | import ccxt
from config.cst import TraderOrderType
from tests.test_utils.config import load_test_config
from tests.test_utils.order_util import fill_limit_or_stop_order, fill_market_order
from trading.exchanges.exchange_manager import ExchangeManager
from trading.trader.order import BuyMarketOrder, OrderConstants, Sel... | 45.829932 | 115 | 0.642601 | 3,553 | 33,685 | 5.755981 | 0.04644 | 0.141118 | 0.112464 | 0.133783 | 0.919515 | 0.881326 | 0.86651 | 0.851939 | 0.800499 | 0.75253 | 0 | 0.037965 | 0.2806 | 33,685 | 734 | 116 | 45.892371 | 0.805967 | 0.045866 | 0 | 0.686239 | 0 | 0 | 0.022046 | 0 | 0 | 0 | 0 | 0 | 0.211009 | 1 | 0.023853 | false | 0 | 0.014679 | 0 | 0.042202 | 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 |
d5a0b9e6c28afe537586038c394fef6730547648 | 94 | py | Python | examples/import_example/import_example_server.py | izi-global/izir | d1a4bfb5c082c3de1956402ef0280564014a3bd8 | [
"MIT"
] | null | null | null | examples/import_example/import_example_server.py | izi-global/izir | d1a4bfb5c082c3de1956402ef0280564014a3bd8 | [
"MIT"
] | 5 | 2021-03-18T21:01:05.000Z | 2022-03-11T23:29:48.000Z | examples/import_example/import_example_server.py | izi-global/izir | d1a4bfb5c082c3de1956402ef0280564014a3bd8 | [
"MIT"
] | null | null | null | import example_resource
import izi
@izi.get()
def hello():
return example_resource.hi()
| 11.75 | 32 | 0.734043 | 13 | 94 | 5.153846 | 0.692308 | 0.447761 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159574 | 94 | 7 | 33 | 13.428571 | 0.848101 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0.4 | 0.2 | 0.8 | 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 | 1 | 0 | 0 | 0 | 6 |
6367e90c33a6766bbed82fef17fa610df4ead57b | 12,398 | py | Python | unet_pipeline/models/mynet.py | S-Altman/pneumothorax-segmentation | e79673d2a2b3e9ee9db0352d19f52e676ed1187f | [
"MIT"
] | null | null | null | unet_pipeline/models/mynet.py | S-Altman/pneumothorax-segmentation | e79673d2a2b3e9ee9db0352d19f52e676ed1187f | [
"MIT"
] | null | null | null | unet_pipeline/models/mynet.py | S-Altman/pneumothorax-segmentation | e79673d2a2b3e9ee9db0352d19f52e676ed1187f | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
import torch.nn.functional as F
import segmentation_models_pytorch as smp
from segmentation_models_pytorch.unet.decoder import DecoderBlock
from segmentation_models_pytorch.base import SegmentationHead
from segmentation_models_pytorch.base import initialization as init
def add_conv(... | 36.464706 | 115 | 0.656396 | 1,657 | 12,398 | 4.584188 | 0.079059 | 0.026856 | 0.013165 | 0.020011 | 0.816746 | 0.796077 | 0.776461 | 0.758294 | 0.743154 | 0.73881 | 0 | 0.019319 | 0.244314 | 12,398 | 339 | 116 | 36.572271 | 0.79144 | 0.086788 | 0 | 0.693966 | 0 | 0 | 0.005238 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.094828 | false | 0 | 0.030172 | 0 | 0.206897 | 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 |
6384552925c7ccab07ed4838cd799b76c4e180c7 | 187 | py | Python | ddsc/__init__.py | Duke-GCB/DukeDSClient | 7f119a5ee2e674e8deaff1f080caed1953c5cc61 | [
"MIT"
] | 4 | 2020-06-18T12:30:13.000Z | 2020-10-12T21:25:54.000Z | ddsc/__init__.py | Duke-GCB/DukeDSClient | 7f119a5ee2e674e8deaff1f080caed1953c5cc61 | [
"MIT"
] | 239 | 2016-02-18T14:44:08.000Z | 2022-03-11T14:38:56.000Z | ddsc/__init__.py | Duke-GCB/DukeDSClient | 7f119a5ee2e674e8deaff1f080caed1953c5cc61 | [
"MIT"
] | 10 | 2016-02-22T15:01:28.000Z | 2022-02-21T22:46:26.000Z | from __future__ import absolute_import
from ddsc.sdk.dukeds import DukeDS, Session, ItemNotFound, DuplicateNameError
__all__ = ['DukeDS', 'Session', 'ItemNotFound', 'DuplicateNameError']
| 46.75 | 77 | 0.807487 | 19 | 187 | 7.473684 | 0.578947 | 0.183099 | 0.352113 | 0.605634 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 187 | 3 | 78 | 62.333333 | 0.835294 | 0 | 0 | 0 | 0 | 0 | 0.229947 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 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 |
63ad5efdaf21af9437e34c4171d21521a5843525 | 138 | py | Python | tests/fixtures/helpers.py | ForroKulcs/bugsnag-python | 107c1add31a2202cc08ef944aa00ab96996b247a | [
"MIT"
] | 76 | 2015-03-01T11:46:57.000Z | 2022-02-18T10:57:44.000Z | tests/fixtures/helpers.py | ForroKulcs/bugsnag-python | 107c1add31a2202cc08ef944aa00ab96996b247a | [
"MIT"
] | 119 | 2015-01-14T11:53:08.000Z | 2022-03-30T08:22:50.000Z | tests/fixtures/helpers.py | ForroKulcs/bugsnag-python | 107c1add31a2202cc08ef944aa00ab96996b247a | [
"MIT"
] | 46 | 2015-02-09T23:50:57.000Z | 2022-01-06T16:04:40.000Z | def invoke_exception_on_other_file(config):
from bugsnag.event import Event
return Event(Exception("another file!"), config, {})
| 27.6 | 56 | 0.746377 | 18 | 138 | 5.5 | 0.722222 | 0.20202 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144928 | 138 | 4 | 57 | 34.5 | 0.838983 | 0 | 0 | 0 | 0 | 0 | 0.094203 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 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 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
63cef1368265d98f03ad1b48449dbaec94267779 | 210 | py | Python | Basic_Python/enamurate_and_zip.py | vibhgupta/python-basics | c898f292eccc39a4fded7d1f1a4f90084bf934ab | [
"MIT"
] | null | null | null | Basic_Python/enamurate_and_zip.py | vibhgupta/python-basics | c898f292eccc39a4fded7d1f1a4f90084bf934ab | [
"MIT"
] | null | null | null | Basic_Python/enamurate_and_zip.py | vibhgupta/python-basics | c898f292eccc39a4fded7d1f1a4f90084bf934ab | [
"MIT"
] | null | null | null | # enumerate
numbers = ['one', 'two', 'three', 'four']
seasons = ['fall', 'winter', 'spring', 'summer']
print list(enumerate(numbers))
print list(enumerate(seasons))
# zip
print zip(numbers, seasons)
| 21 | 49 | 0.642857 | 24 | 210 | 5.625 | 0.583333 | 0.237037 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161905 | 210 | 9 | 50 | 23.333333 | 0.767045 | 0.061905 | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.6 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
89370605c716a524220bcda5533303cb372a1512 | 147 | py | Python | pyattck/__init__.py | ehooo/pyattck | 99580a476eb88a8311478b9158a38c5e6f359f72 | [
"MIT"
] | 1 | 2019-09-05T06:28:20.000Z | 2019-09-05T06:28:20.000Z | pyattck/__init__.py | doomedraven/pyattck | e663824b2320db7354865e6516eb2c6b12ffadbd | [
"MIT"
] | null | null | null | pyattck/__init__.py | doomedraven/pyattck | e663824b2320db7354865e6516eb2c6b12ffadbd | [
"MIT"
] | null | null | null | from .pyattck import Attck
from .pyattck import (AttckActor, AttckMalware, AttckMalware, AttckMitigation, AttckTactic, AttckTechnique, AttckTools)
| 49 | 119 | 0.836735 | 14 | 147 | 8.785714 | 0.714286 | 0.178862 | 0.276423 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095238 | 147 | 2 | 120 | 73.5 | 0.924812 | 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 | 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 |
898f47d9bafa7127628dc95a2947820243ed5fa5 | 7,408 | py | Python | team_9/cocos/utest/test_uniform_snippet.py | Donnyvdm/dojo19 | 3cf043a84e3ad6d3c4d59cd9c50b160e1ff03400 | [
"BSD-3-Clause"
] | 1 | 2019-09-15T18:59:49.000Z | 2019-09-15T18:59:49.000Z | team_9/cocos/utest/test_uniform_snippet.py | Donnyvdm/dojo19 | 3cf043a84e3ad6d3c4d59cd9c50b160e1ff03400 | [
"BSD-3-Clause"
] | null | null | null | team_9/cocos/utest/test_uniform_snippet.py | Donnyvdm/dojo19 | 3cf043a84e3ad6d3c4d59cd9c50b160e1ff03400 | [
"BSD-3-Clause"
] | null | null | null | """tests tools\\uniform_snippet.py , use py.test to run"""
from __future__ import division, print_function, unicode_literals
import six
# make the test find the script in tools directory
import sys, os
tools_path = '../tools'
tools_abspath = os.path.abspath(tools_path)
sys.path.insert(0, tools_abspath)
from uniform_... | 28.274809 | 79 | 0.610151 | 869 | 7,408 | 4.970081 | 0.166858 | 0.041676 | 0.022922 | 0.027784 | 0.80852 | 0.764992 | 0.722158 | 0.712665 | 0.697384 | 0.697384 | 0 | 0.011264 | 0.232991 | 7,408 | 261 | 80 | 28.383142 | 0.748856 | 0.426566 | 0 | 0.736842 | 0 | 0 | 0.222391 | 0.038501 | 0 | 0 | 0 | 0 | 0.105263 | 1 | 0.070175 | false | 0 | 0.035088 | 0 | 0.105263 | 0.008772 | 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 |
899f295a0a1d980958923eb85b58f50ab858ce26 | 2,925 | py | Python | src/third_party/imageAugmentation/checks/check_elastic_transformation.py | Austin1999/ViolenceDetection-master | 10f3540bb330d06a1f36efd597097d9dcb067645 | [
"Apache-2.0"
] | 149 | 2018-04-26T16:09:45.000Z | 2022-03-31T12:57:11.000Z | src/third_party/imageAugmentation/checks/check_elastic_transformation.py | Austin1999/ViolenceDetection-master | 10f3540bb330d06a1f36efd597097d9dcb067645 | [
"Apache-2.0"
] | 44 | 2018-05-07T13:57:44.000Z | 2021-05-30T11:06:31.000Z | src/third_party/imageAugmentation/checks/check_elastic_transformation.py | Austin1999/ViolenceDetection-master | 10f3540bb330d06a1f36efd597097d9dcb067645 | [
"Apache-2.0"
] | 45 | 2018-06-08T10:08:45.000Z | 2021-11-24T06:02:06.000Z | from __future__ import print_function, division
import imgaug as ia
from imgaug import augmenters as iaa
from scipy import misc
import numpy as np
from skimage import data
def main():
image = data.astronaut()
image = ia.imresize_single_image(image, (128, 128))
images = []
params = [
(0.25, 0.2... | 44.318182 | 100 | 0.627692 | 363 | 2,925 | 4.997245 | 0.165289 | 0.121279 | 0.335722 | 0.393605 | 0.735391 | 0.735391 | 0.735391 | 0.735391 | 0.735391 | 0.338479 | 0 | 0.049007 | 0.225641 | 2,925 | 65 | 101 | 45 | 0.751876 | 0 | 0 | 0 | 0 | 0 | 0.061197 | 0.009231 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017241 | false | 0 | 0.103448 | 0 | 0.12069 | 0.017241 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
982335b8f59693d558a643455a38a99073476ea2 | 30 | wsgi | Python | website-backend/ava/ava.wsgi | kbladin/ava-capture | 2fc24f4a3712f721c3a229b499631e00697209a5 | [
"BSD-3-Clause"
] | 49 | 2017-08-18T15:25:09.000Z | 2022-02-20T19:07:00.000Z | website-backend/ava/ava.wsgi | kbladin/ava-capture | 2fc24f4a3712f721c3a229b499631e00697209a5 | [
"BSD-3-Clause"
] | 50 | 2021-11-07T18:24:34.000Z | 2022-03-19T01:16:48.000Z | website-backend/ava/ava.wsgi | samqws-marketing/electronicarts_ava-capture | a04e5f9a7ee817317d0d58ce800eefc6bf4bd150 | [
"BSD-3-Clause"
] | 13 | 2017-12-04T19:33:20.000Z | 2021-07-17T02:17:00.000Z | from test import application
| 10 | 28 | 0.833333 | 4 | 30 | 6.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 30 | 2 | 29 | 15 | 1 | 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 |
983948c35808ce245980ba4837199f091daa00ea | 145 | py | Python | helpers/cache.py | pythonapi/python-api-based-on-flask-restful | 4d83db4bec9d3ad13095ad85787360d3ba64d811 | [
"MIT"
] | 1 | 2021-04-23T21:58:07.000Z | 2021-04-23T21:58:07.000Z | helpers/cache.py | pythonapi/python-api-based-on-flask-restful | 4d83db4bec9d3ad13095ad85787360d3ba64d811 | [
"MIT"
] | null | null | null | helpers/cache.py | pythonapi/python-api-based-on-flask-restful | 4d83db4bec9d3ad13095ad85787360d3ba64d811 | [
"MIT"
] | null | null | null | from config import config
class Cache():
def __init__(self):
return base.Client((config['cache']['host'], config['cache']['port']))
| 24.166667 | 78 | 0.641379 | 18 | 145 | 4.944444 | 0.722222 | 0.247191 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165517 | 145 | 5 | 79 | 29 | 0.735537 | 0 | 0 | 0 | 0 | 0 | 0.124138 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.25 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
984788d9c028b7dc4e9f9555ec978987dd05ad96 | 55 | py | Python | post_processing/repulsion.py | gwpark-git/dynamics_of_networks_and_colloids | 0b0a3687533379ec75171ae6b906aeff5bedfbba | [
"MIT"
] | null | null | null | post_processing/repulsion.py | gwpark-git/dynamics_of_networks_and_colloids | 0b0a3687533379ec75171ae6b906aeff5bedfbba | [
"MIT"
] | null | null | null | post_processing/repulsion.py | gwpark-git/dynamics_of_networks_and_colloids | 0b0a3687533379ec75171ae6b906aeff5bedfbba | [
"MIT"
] | null | null | null |
def U_ij(r):
return (1./3.)*(1. - r)**2.*(2. + r)
| 13.75 | 40 | 0.381818 | 12 | 55 | 1.666667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119048 | 0.236364 | 55 | 3 | 41 | 18.333333 | 0.357143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 1 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 6 |
98a5c080813be428b1558ec0f2132b5283db2f0a | 167 | py | Python | maqazin_service/run.py | agaverdi/anbar_maqazin_service | 9db00066defce50d31061a63d96f54ef4bf5cdc4 | [
"MIT"
] | 1 | 2020-11-30T00:52:03.000Z | 2020-11-30T00:52:03.000Z | maqazin_service/run.py | agaverdi/anbar_maqazin_service | 9db00066defce50d31061a63d96f54ef4bf5cdc4 | [
"MIT"
] | null | null | null | maqazin_service/run.py | agaverdi/anbar_maqazin_service | 9db00066defce50d31061a63d96f54ef4bf5cdc4 | [
"MIT"
] | null | null | null | from app.app import create_app,db
import os
settings_name = os.getenv("APP_SETTINGS")
app = create_app(settings_name)
# db.create_all(app=create_app(settings_name)) | 20.875 | 46 | 0.796407 | 28 | 167 | 4.464286 | 0.357143 | 0.216 | 0.192 | 0.32 | 0.384 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095808 | 167 | 8 | 46 | 20.875 | 0.827815 | 0.263473 | 0 | 0 | 0 | 0 | 0.098361 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
7f84ecad98e54f5946be09b30175fcdd7652cbce | 44 | py | Python | Webscraping/__init__.py | daydreamjesse/ReedTheRobot | cc30dae4ceddbaeb9369bb7be220adee7159b744 | [
"MIT"
] | null | null | null | Webscraping/__init__.py | daydreamjesse/ReedTheRobot | cc30dae4ceddbaeb9369bb7be220adee7159b744 | [
"MIT"
] | null | null | null | Webscraping/__init__.py | daydreamjesse/ReedTheRobot | cc30dae4ceddbaeb9369bb7be220adee7159b744 | [
"MIT"
] | null | null | null | print("Initializing webscraping package...") | 44 | 44 | 0.795455 | 4 | 44 | 8.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 44 | 1 | 44 | 44 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0.777778 | 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 |
7fbe398a8c6b53aae5006c27b4817a92bf874daa | 83 | py | Python | arcli/triggers/always.py | guiscaranse/arcli | 6ca8158111ab1694f2e1900dde723e3e4d86cfe8 | [
"Apache-2.0"
] | 2 | 2019-08-07T22:33:26.000Z | 2020-01-14T00:44:01.000Z | arcli/triggers/always.py | guiscaranse/arcli | 6ca8158111ab1694f2e1900dde723e3e4d86cfe8 | [
"Apache-2.0"
] | 1 | 2019-11-16T22:17:08.000Z | 2019-11-16T22:17:08.000Z | arcli/triggers/always.py | guiscaranse/arcli | 6ca8158111ab1694f2e1900dde723e3e4d86cfe8 | [
"Apache-2.0"
] | null | null | null | from arcli.triggers.base import ArcliTrigger
class Always(ArcliTrigger):
pass | 16.6 | 44 | 0.795181 | 10 | 83 | 6.6 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144578 | 83 | 5 | 45 | 16.6 | 0.929577 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.333333 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 6 |
f69385c094ac3ffba4a6fbec6e04682dcf49ba53 | 19,221 | py | Python | src/ralph/lib/custom_fields/tests/test_api.py | elubik/ralph | ac39be38cbd7c80ac64984848423fc92b8661b16 | [
"Apache-2.0"
] | 1,668 | 2015-01-01T12:51:20.000Z | 2022-03-29T09:05:35.000Z | src/ralph/lib/custom_fields/tests/test_api.py | elubik/ralph | ac39be38cbd7c80ac64984848423fc92b8661b16 | [
"Apache-2.0"
] | 2,314 | 2015-01-02T13:26:26.000Z | 2022-03-29T04:06:03.000Z | src/ralph/lib/custom_fields/tests/test_api.py | elubik/ralph | ac39be38cbd7c80ac64984848423fc92b8661b16 | [
"Apache-2.0"
] | 534 | 2015-01-05T12:40:28.000Z | 2022-03-29T21:10:12.000Z | # -*- coding: utf-8 -*-
from django.contrib.auth import get_user_model
from django.contrib.auth.models import Group
from django.core.urlresolvers import reverse
from rest_framework import status
from rest_framework.test import APITestCase
from ralph.accounts.models import RalphUser
from ralph.accounts.tests.factories ... | 39.549383 | 103 | 0.637896 | 2,276 | 19,221 | 5.118629 | 0.093146 | 0.068927 | 0.048927 | 0.044807 | 0.838455 | 0.81176 | 0.78206 | 0.756652 | 0.743691 | 0.727639 | 0 | 0.014057 | 0.248686 | 19,221 | 485 | 104 | 39.630928 | 0.792674 | 0.014411 | 0 | 0.616114 | 0 | 0 | 0.084372 | 0.004174 | 0 | 0 | 0 | 0 | 0.165877 | 1 | 0.075829 | false | 0.023697 | 0.026066 | 0 | 0.104265 | 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 |
f69993a00d48e29fb845915d46f9225f2c4a9d53 | 32 | py | Python | python/testData/optimizeImports/libraryRootInsideProject/main.after.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/optimizeImports/libraryRootInsideProject/main.after.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/optimizeImports/libraryRootInsideProject/main.after.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | import b
import a
print(a, b)
| 5.333333 | 11 | 0.65625 | 7 | 32 | 3 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 32 | 5 | 12 | 6.4 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0.333333 | 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 |
120b209dae282cc86fe025db5d889a3cfab762a1 | 861 | py | Python | MersennePrime/threadedmath.py | rmamba/pyLucasLehmer | 14ec2496e2f64b3aae21ff2629fbbab6fc78cca8 | [
"MIT"
] | 2 | 2020-03-18T20:28:14.000Z | 2021-10-12T11:38:38.000Z | MersennePrime/threadedmath.py | rmamba/pyLucasLehmer | 14ec2496e2f64b3aae21ff2629fbbab6fc78cca8 | [
"MIT"
] | 1 | 2018-07-08T18:50:28.000Z | 2018-08-07T19:12:05.000Z | MersennePrime/threadedmath.py | rmamba/pyLucasLehmer | 14ec2496e2f64b3aae21ff2629fbbab6fc78cca8 | [
"MIT"
] | null | null | null | import threading
import math
class mul(threading.Thread):
def __init__(self, idx, n, m):
threading.Thread.__init__(self)
self.idx = idx
self.n = n
self.m = m
self.r = None
def run(self):
r = self.n * self.m
self.r = []
self.r.append(r % 256)
... | 23.27027 | 42 | 0.477352 | 122 | 861 | 3.237705 | 0.196721 | 0.139241 | 0.139241 | 0.151899 | 0.855696 | 0.855696 | 0.855696 | 0.855696 | 0.855696 | 0.855696 | 0 | 0.047259 | 0.385598 | 861 | 36 | 43 | 23.916667 | 0.699433 | 0.157956 | 0 | 0.64 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16 | false | 0 | 0.08 | 0 | 0.32 | 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 |
124bf3e77de4a22a5d5ee9ea9112308f1d774a4b | 132 | py | Python | HackerRank Solutions/Python/Numpy/Zeros and Ones.py | DevashishPathrabe/Competetive-Coding | 91049459359854b7834cbfb31415682600dc9c57 | [
"MIT"
] | null | null | null | HackerRank Solutions/Python/Numpy/Zeros and Ones.py | DevashishPathrabe/Competetive-Coding | 91049459359854b7834cbfb31415682600dc9c57 | [
"MIT"
] | null | null | null | HackerRank Solutions/Python/Numpy/Zeros and Ones.py | DevashishPathrabe/Competetive-Coding | 91049459359854b7834cbfb31415682600dc9c57 | [
"MIT"
] | null | null | null | import numpy
N = tuple(map(int, input().split()))
print (numpy.zeros(N, dtype = numpy.int))
print (numpy.ones(N, dtype = numpy.int)) | 33 | 41 | 0.681818 | 22 | 132 | 4.090909 | 0.545455 | 0.222222 | 0.244444 | 0.311111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113636 | 132 | 4 | 42 | 33 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.5 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
1257f4f24158a148035737ab064220be6911ed4b | 2,689 | py | Python | app/slack/tests/test_slack_util.py | NDevox/website | 76004e667f2295eddd79d500ba21f02a0480412f | [
"Apache-2.0"
] | null | null | null | app/slack/tests/test_slack_util.py | NDevox/website | 76004e667f2295eddd79d500ba21f02a0480412f | [
"Apache-2.0"
] | null | null | null | app/slack/tests/test_slack_util.py | NDevox/website | 76004e667f2295eddd79d500ba21f02a0480412f | [
"Apache-2.0"
] | null | null | null | import pook
import pytest
from requests.exceptions import HTTPError
from app.slack.util import (
SlackException,
SlackClient,
)
class TestSlackClient:
@pook.post('https://slack.com/api/users.admin.invite', reply=400)
def test_invite_raises_on_bad_response(self, slack_client: SlackClient):
wit... | 39.544118 | 78 | 0.677203 | 341 | 2,689 | 5.140762 | 0.155425 | 0.112949 | 0.066743 | 0.082145 | 0.857387 | 0.814033 | 0.814033 | 0.791215 | 0.780947 | 0.780947 | 0 | 0.01246 | 0.194124 | 2,689 | 67 | 79 | 40.134328 | 0.796493 | 0 | 0 | 0.517857 | 0 | 0 | 0.146151 | 0 | 0 | 0 | 0 | 0 | 0.214286 | 1 | 0.160714 | false | 0 | 0.071429 | 0 | 0.25 | 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 |
89e16072b6b6f27f2fc669be7c5bb803538a74af | 36 | py | Python | goldsberry/team/__init__.py | motraor3/py-Goldsberry | fe238b07142cff64eda37e402bb003251af13f9b | [
"MIT"
] | 268 | 2015-07-28T18:49:06.000Z | 2022-03-06T03:08:18.000Z | goldsberry/team/__init__.py | motraor3/py-Goldsberry | fe238b07142cff64eda37e402bb003251af13f9b | [
"MIT"
] | 24 | 2015-07-06T22:50:59.000Z | 2021-07-05T05:10:26.000Z | goldsberry/team/__init__.py | motraor3/py-Goldsberry | fe238b07142cff64eda37e402bb003251af13f9b | [
"MIT"
] | 85 | 2015-08-08T17:45:28.000Z | 2021-11-10T09:35:26.000Z | from goldsberry.team._Team2 import * | 36 | 36 | 0.833333 | 5 | 36 | 5.8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030303 | 0.083333 | 36 | 1 | 36 | 36 | 0.848485 | 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 |
89fcf7bb68a6abfc17cec5cbcb47ee7e8093c45b | 154 | py | Python | restaurantapi/admin.py | samueldaviddelacruz/restaurant_graphql_CRUD | 9aba57cf68308e22263143f0b3b61dcea9d81199 | [
"MIT"
] | null | null | null | restaurantapi/admin.py | samueldaviddelacruz/restaurant_graphql_CRUD | 9aba57cf68308e22263143f0b3b61dcea9d81199 | [
"MIT"
] | null | null | null | restaurantapi/admin.py | samueldaviddelacruz/restaurant_graphql_CRUD | 9aba57cf68308e22263143f0b3b61dcea9d81199 | [
"MIT"
] | null | null | null | from django.contrib import admin
from . import models
# Register your models here.
admin.site.register(models.Category)
admin.site.register(models.Dish)
| 22 | 36 | 0.805195 | 22 | 154 | 5.636364 | 0.545455 | 0.145161 | 0.274194 | 0.370968 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103896 | 154 | 6 | 37 | 25.666667 | 0.898551 | 0.168831 | 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 | 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 |
c3b4b93df27bc5c1ac1d3481854d98eae74fbaad | 116 | py | Python | esmvalcore/cmor/_fixes/cmip6/cesm2_waccm.py | Peter9192/ESMValCore | febd96a39480cc837afbf4e1f5b0ef61571af76a | [
"Apache-2.0"
] | 1 | 2019-11-28T13:09:42.000Z | 2019-11-28T13:09:42.000Z | esmvalcore/cmor/_fixes/cmip6/cesm2_waccm.py | Peter9192/ESMValCore | febd96a39480cc837afbf4e1f5b0ef61571af76a | [
"Apache-2.0"
] | null | null | null | esmvalcore/cmor/_fixes/cmip6/cesm2_waccm.py | Peter9192/ESMValCore | febd96a39480cc837afbf4e1f5b0ef61571af76a | [
"Apache-2.0"
] | 1 | 2019-11-29T00:50:30.000Z | 2019-11-29T00:50:30.000Z | """Fixes for CESM2-WACCM model."""
from .cesm2 import Tas as BaseTas
class Tas(BaseTas):
"""Fixes for tas."""
| 16.571429 | 34 | 0.655172 | 17 | 116 | 4.470588 | 0.647059 | 0.210526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021053 | 0.181034 | 116 | 6 | 35 | 19.333333 | 0.778947 | 0.37069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 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 |
7f0707a1dd0239bb048230740dc812bcee02df36 | 3,225 | py | Python | GuessTheNumberJACKPOT.py | yoursamlan/GuessTheOutput | e918d5d45122abfabbf01091ba0535054cf58f98 | [
"MIT"
] | 1 | 2019-06-25T08:13:40.000Z | 2019-06-25T08:13:40.000Z | GuessTheNumberJACKPOT.py | yoursamlan/GuessTheOutput | e918d5d45122abfabbf01091ba0535054cf58f98 | [
"MIT"
] | null | null | null | GuessTheNumberJACKPOT.py | yoursamlan/GuessTheOutput | e918d5d45122abfabbf01091ba0535054cf58f98 | [
"MIT"
] | null | null | null |
print("\n\n\n\n\n")
print(" _____ _____ _____ _____ _____ _____ _____ _____ ")
print(" | __|| | || __|| __|| __| |_ _|| | || __|")
print(" | | || | || __||__ ||__ |... | 47.426471 | 121 | 0.305426 | 223 | 3,225 | 3.426009 | 0.336323 | 0.209424 | 0.235602 | 0.209424 | 0.265707 | 0.204188 | 0.16623 | 0.058901 | 0 | 0 | 0 | 0.006738 | 0.447752 | 3,225 | 67 | 122 | 48.134328 | 0.422235 | 0.022016 | 0 | 0.072727 | 0 | 0.127273 | 0.600888 | 0.011104 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.018182 | 0 | 0.018182 | 0.672727 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
7f0faa5381c30abd10334b9296ec14c2418fbc2d | 301 | py | Python | bitmovin_api_sdk/encoding/manifests/dash/periods/adaptationsets/representations/mp4/drm/__init__.py | jaythecaesarean/bitmovin-api-sdk-python | 48166511fcb9082041c552ace55a9b66cc59b794 | [
"MIT"
] | 11 | 2019-07-03T10:41:16.000Z | 2022-02-25T21:48:06.000Z | bitmovin_api_sdk/encoding/manifests/dash/periods/adaptationsets/representations/mp4/drm/__init__.py | jaythecaesarean/bitmovin-api-sdk-python | 48166511fcb9082041c552ace55a9b66cc59b794 | [
"MIT"
] | 8 | 2019-11-23T00:01:25.000Z | 2021-04-29T12:30:31.000Z | bitmovin_api_sdk/encoding/manifests/dash/periods/adaptationsets/representations/mp4/drm/__init__.py | jaythecaesarean/bitmovin-api-sdk-python | 48166511fcb9082041c552ace55a9b66cc59b794 | [
"MIT"
] | 13 | 2020-01-02T14:58:18.000Z | 2022-03-26T12:10:30.000Z | from bitmovin_api_sdk.encoding.manifests.dash.periods.adaptationsets.representations.mp4.drm.drm_api import DrmApi
from bitmovin_api_sdk.encoding.manifests.dash.periods.adaptationsets.representations.mp4.drm.dash_mp4_drm_representation_list_query_params import DashMp4DrmRepresentationListQueryParams
| 100.333333 | 185 | 0.913621 | 37 | 301 | 7.135135 | 0.513514 | 0.068182 | 0.113636 | 0.136364 | 0.613636 | 0.613636 | 0.613636 | 0.613636 | 0.613636 | 0.613636 | 0 | 0.013652 | 0.026578 | 301 | 2 | 186 | 150.5 | 0.887372 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
6140a6f0755c4d8977a0d2065ff56d7cb56c3beb | 118 | py | Python | titan/tools_pkg/pudb/resources.py | mnieber/gen | 65f8aa4fb671c4f90d5cbcb1a0e10290647a31d9 | [
"MIT"
] | null | null | null | titan/tools_pkg/pudb/resources.py | mnieber/gen | 65f8aa4fb671c4f90d5cbcb1a0e10290647a31d9 | [
"MIT"
] | null | null | null | titan/tools_pkg/pudb/resources.py | mnieber/gen | 65f8aa4fb671c4f90d5cbcb1a0e10290647a31d9 | [
"MIT"
] | null | null | null | from dataclasses import dataclass
from titan.project_pkg.service import Tool
@dataclass
class Pudb(Tool):
pass
| 13.111111 | 42 | 0.788136 | 16 | 118 | 5.75 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161017 | 118 | 8 | 43 | 14.75 | 0.929293 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.2 | 0.4 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 6 |
61437615c52f082503a4419bbb4174110894c3ec | 45 | py | Python | cuda_test.py | rupeshshrestha123/end2end-asr-pytorch-nepali | f9114c38b3c5a43043ec92a20b7dfb278929d19f | [
"MIT"
] | null | null | null | cuda_test.py | rupeshshrestha123/end2end-asr-pytorch-nepali | f9114c38b3c5a43043ec92a20b7dfb278929d19f | [
"MIT"
] | null | null | null | cuda_test.py | rupeshshrestha123/end2end-asr-pytorch-nepali | f9114c38b3c5a43043ec92a20b7dfb278929d19f | [
"MIT"
] | null | null | null | import torch
print(torch.cuda.device_count()) | 22.5 | 32 | 0.822222 | 7 | 45 | 5.142857 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044444 | 45 | 2 | 32 | 22.5 | 0.837209 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0.5 | 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 | 0 | 1 | 0 | 6 |
6161b6f4c0801bb90ffe81539148d70e44baade9 | 6,616 | py | Python | lsml/core/test/test_datasets_handler.py | sandeepdas05/lsm-crack-width | 38460e514d48f3424bb8d3bd58cb3eb330153e64 | [
"BSD-3-Clause"
] | 24 | 2020-01-30T15:53:33.000Z | 2022-01-15T09:46:24.000Z | lsml/core/test/test_datasets_handler.py | sandeepdas05/lsm-crack-width | 38460e514d48f3424bb8d3bd58cb3eb330153e64 | [
"BSD-3-Clause"
] | null | null | null | lsml/core/test/test_datasets_handler.py | sandeepdas05/lsm-crack-width | 38460e514d48f3424bb8d3bd58cb3eb330153e64 | [
"BSD-3-Clause"
] | 13 | 2019-12-05T08:32:11.000Z | 2022-03-20T03:12:03.000Z | import os
import unittest
import numpy
import skfmm
from lsml.core.datasets_handler import DatasetsHandler
class TestDatasetsHandler(unittest.TestCase):
def setUp(self):
self.random_state = numpy.random.RandomState(1234)
def test_no_data_at_init(self):
with self.assertRaises(ValueError):
... | 27.114754 | 79 | 0.533706 | 792 | 6,616 | 4.284091 | 0.159091 | 0.065429 | 0.092838 | 0.066018 | 0.737106 | 0.737106 | 0.703507 | 0.703507 | 0.703507 | 0.703507 | 0 | 0.02929 | 0.380744 | 6,616 | 243 | 80 | 27.226337 | 0.798877 | 0.126663 | 0 | 0.701863 | 0 | 0 | 0.01147 | 0 | 0 | 0 | 0 | 0 | 0.068323 | 1 | 0.055901 | false | 0 | 0.031056 | 0 | 0.093168 | 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 |
61a05ed5473d65aa40f015be222967e88e003bc5 | 126 | py | Python | 20_unit_testing/lectures/1_testing_equality/functions.py | gdia/The-Complete-Python-Course | ed375b65242249bc749c3e292a6149f8528b9dcf | [
"MIT"
] | 29 | 2019-09-02T21:15:59.000Z | 2022-01-14T02:20:05.000Z | 20_unit_testing/lectures/1_testing_equality/functions.py | gdia/The-Complete-Python-Course | ed375b65242249bc749c3e292a6149f8528b9dcf | [
"MIT"
] | 2 | 2020-08-20T05:48:36.000Z | 2021-06-02T03:16:31.000Z | 20_unit_testing/lectures/1_testing_equality/functions.py | gdia/The-Complete-Python-Course | ed375b65242249bc749c3e292a6149f8528b9dcf | [
"MIT"
] | 38 | 2019-10-20T14:29:12.000Z | 2022-03-27T19:50:05.000Z | from typing import Union
def divide(dividend: Union[int, float], divisor: Union[int, float]):
return dividend / divisor
| 21 | 68 | 0.730159 | 17 | 126 | 5.411765 | 0.647059 | 0.173913 | 0.282609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 126 | 5 | 69 | 25.2 | 0.87619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 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 | 1 | 1 | 0 | 0 | 0 | 6 |
4ee7b6d3b7d85c654c05186bf0864f21a577b9fb | 13,181 | py | Python | tests/test_struct.py | pamwenlong/JceStruct | d2185c0b31df5eab381668e4ef6c226cf502a06f | [
"MIT"
] | 24 | 2021-01-05T02:31:33.000Z | 2022-02-19T13:25:46.000Z | tests/test_struct.py | pamwenlong/JceStruct | d2185c0b31df5eab381668e4ef6c226cf502a06f | [
"MIT"
] | 2 | 2021-03-21T13:23:09.000Z | 2021-06-15T13:01:56.000Z | tests/test_struct.py | pamwenlong/JceStruct | d2185c0b31df5eab381668e4ef6c226cf502a06f | [
"MIT"
] | 6 | 2021-06-07T09:38:46.000Z | 2022-01-07T15:39:34.000Z | import unittest
from typing import List
from jce import JceField, JceStruct, types
class SsoServerInfo(JceStruct):
server: types.STRING = JceField(jce_id=1)
port: types.INT = JceField(jce_id=2)
location: types.STRING = JceField(jce_id=8)
extra: str
extra_default: str = "extra"
class ServerListR... | 50.696154 | 2,606 | 0.584781 | 503 | 13,181 | 15.260437 | 0.316103 | 0.02814 | 0.036477 | 0.01876 | 0.167535 | 0.161282 | 0.161282 | 0.161282 | 0.161282 | 0.147994 | 0 | 0.606787 | 0.344966 | 13,181 | 259 | 2,607 | 50.891892 | 0.282256 | 0 | 0 | 0.402439 | 0 | 0 | 0.516198 | 0.433503 | 0 | 1 | 0 | 0 | 0.020325 | 1 | 0.020325 | false | 0 | 0.012195 | 0 | 0.069106 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
f6255b6300e9c51297f4963e202b90bb8ca1cdea | 171 | py | Python | singer_db/markdown_table_parser/__init__.py | aaronsteers/singer-index | 84fdfa2c8d132ed22d8e250e037a6159a50f92dd | [
"MIT"
] | 7 | 2020-08-28T20:08:02.000Z | 2020-10-07T08:24:09.000Z | singer_db/markdown_table_parser/__init__.py | aaronsteers/singer-index | 84fdfa2c8d132ed22d8e250e037a6159a50f92dd | [
"MIT"
] | null | null | null | singer_db/markdown_table_parser/__init__.py | aaronsteers/singer-index | 84fdfa2c8d132ed22d8e250e037a6159a50f92dd | [
"MIT"
] | null | null | null | """A simple markdown table parser."""
from singer_db.markdown_table_parser.main import parse_from_string, parse_from_file
__all__ = [parse_from_string, parse_from_file]
| 28.5 | 83 | 0.824561 | 26 | 171 | 4.846154 | 0.538462 | 0.285714 | 0.301587 | 0.31746 | 0.444444 | 0.444444 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093567 | 171 | 5 | 84 | 34.2 | 0.812903 | 0.181287 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
f62faa5e2156701b257592c1d65016e3301d8437 | 244 | py | Python | app/public/__init__.py | mbugerald/MTN-MobileMoney-Python | ff3194e9c4e8c512c7a426c0f29ee3d2da054362 | [
"MIT"
] | null | null | null | app/public/__init__.py | mbugerald/MTN-MobileMoney-Python | ff3194e9c4e8c512c7a426c0f29ee3d2da054362 | [
"MIT"
] | null | null | null | app/public/__init__.py | mbugerald/MTN-MobileMoney-Python | ff3194e9c4e8c512c7a426c0f29ee3d2da054362 | [
"MIT"
] | null | null | null | # Lib imports
from flask import Blueprint
from .views.globals import GlobalViews
# Init blueprint
public_blueprint = Blueprint('public_blueprint', __name__, url_prefix='/')
# Register views to blueprint
GlobalViews.register(public_blueprint)
| 24.4 | 74 | 0.811475 | 29 | 244 | 6.551724 | 0.551724 | 0.236842 | 0.252632 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.110656 | 244 | 9 | 75 | 27.111111 | 0.875576 | 0.221311 | 0 | 0 | 0 | 0 | 0.091398 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0.75 | 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 | 0 | 1 | 0 | 6 |
f652f30e1ae521cfff77051510050aab6089ec68 | 1,482 | py | Python | data/train/python/f652f30e1ae521cfff77051510050aab6089ec68NaoBroker.py | harshp8l/deep-learning-lang-detection | 2a54293181c1c2b1a2b840ddee4d4d80177efb33 | [
"MIT"
] | 84 | 2017-10-25T15:49:21.000Z | 2021-11-28T21:25:54.000Z | data/train/python/f652f30e1ae521cfff77051510050aab6089ec68NaoBroker.py | vassalos/deep-learning-lang-detection | cbb00b3e81bed3a64553f9c6aa6138b2511e544e | [
"MIT"
] | 5 | 2018-03-29T11:50:46.000Z | 2021-04-26T13:33:18.000Z | data/train/python/f652f30e1ae521cfff77051510050aab6089ec68NaoBroker.py | vassalos/deep-learning-lang-detection | cbb00b3e81bed3a64553f9c6aa6138b2511e544e | [
"MIT"
] | 24 | 2017-11-22T08:31:00.000Z | 2022-03-27T01:22:31.000Z | import roslib;
roslib.load_manifest( 'nao_core' );
import rospy;
import sys;
from naoqi import ALBroker;
class NaoBroker( object ):
"""
NaoBroker
"""
BROKER_IP = '0.0.0.0';
BROKER_PORT = 0;
def __init__( self, parentIp, parentPort ):
self.parentIp = parentIp;
self.parentPort ... | 34.465116 | 172 | 0.591093 | 163 | 1,482 | 5.239264 | 0.263804 | 0.112412 | 0.103045 | 0.091335 | 0.779859 | 0.711944 | 0.711944 | 0.711944 | 0.711944 | 0.711944 | 0 | 0.006686 | 0.293522 | 1,482 | 43 | 173 | 34.465116 | 0.808978 | 0.010796 | 0 | 0 | 0 | 0 | 0.148966 | 0.062069 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.25 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
f65e723772d5e03d2da8e9fcd15739bb5903035d | 98 | py | Python | tests/backend/test_parsers.py | UHH-CIW-Project2020/SMARTSexplore | 3969e33ab0c52ab6da3ed1792696c049786d71ca | [
"MIT"
] | 1 | 2021-04-07T12:38:15.000Z | 2021-04-07T12:38:15.000Z | tests/backend/test_parsers.py | UHH-CIW-Project2020/SMARTSexplore | 3969e33ab0c52ab6da3ed1792696c049786d71ca | [
"MIT"
] | null | null | null | tests/backend/test_parsers.py | UHH-CIW-Project2020/SMARTSexplore | 3969e33ab0c52ab6da3ed1792696c049786d71ca | [
"MIT"
] | 2 | 2021-03-28T14:40:46.000Z | 2021-04-09T09:04:39.000Z | from smartsexplore.parsers import parse_smartscompare
#def test_parse_smartscompare(session):
| 24.5 | 54 | 0.846939 | 11 | 98 | 7.272727 | 0.818182 | 0.45 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102041 | 98 | 3 | 55 | 32.666667 | 0.909091 | 0.387755 | 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 |
9cf2df40c34d7654d2e18cbf5c4fab92dd18b947 | 110 | py | Python | src/subscription/exceptions.py | nffdiogosilva/subscription | 13f22c275a777a1a0e42a8cd8b1221be2c3ff94b | [
"MIT"
] | null | null | null | src/subscription/exceptions.py | nffdiogosilva/subscription | 13f22c275a777a1a0e42a8cd8b1221be2c3ff94b | [
"MIT"
] | 89 | 2019-09-07T13:36:38.000Z | 2021-06-02T00:32:06.000Z | src/subscription/exceptions.py | nffdiogosilva/subscription | 13f22c275a777a1a0e42a8cd8b1221be2c3ff94b | [
"MIT"
] | null | null | null | class CustomerAddWebsitePermissionDenied(Exception):
pass
class ObjectDoesNotExist(Exception):
pass
| 15.714286 | 52 | 0.8 | 8 | 110 | 11 | 0.625 | 0.295455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145455 | 110 | 6 | 53 | 18.333333 | 0.93617 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 6 |
140685ac052e2de3d3d0b797ef46d75475ba4c8b | 330 | py | Python | datamontagweb/root/views.py | selintunr/datamongit | 35f4f7a1ab7e6e2c66b956992e6d91cd68885a38 | [
"MIT"
] | null | null | null | datamontagweb/root/views.py | selintunr/datamongit | 35f4f7a1ab7e6e2c66b956992e6d91cd68885a38 | [
"MIT"
] | null | null | null | datamontagweb/root/views.py | selintunr/datamongit | 35f4f7a1ab7e6e2c66b956992e6d91cd68885a38 | [
"MIT"
] | null | null | null | from django.shortcuts import render
from django.http import HttpResponseRedirect
import requests
# Create your views here.
def index(request):
return render(request, 'index.html')
def indexen(request):
return render(request, 'index-en.html')
def member(request):
return render(request, 'member.html... | 20.625 | 49 | 0.724242 | 41 | 330 | 5.829268 | 0.487805 | 0.16318 | 0.238494 | 0.32636 | 0.259414 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.178788 | 330 | 16 | 49 | 20.625 | 0.881919 | 0.069697 | 0 | 0 | 0 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 6 |
145c7a06a10ec1db0084bbef5f086b10db86af53 | 51 | py | Python | modules/OCR/__init__.py | earlybackhome/You-cannot-guess | 8674b9c089321835205c75cbc2b36ca4fd9a5b80 | [
"MIT"
] | 21 | 2017-05-25T09:03:23.000Z | 2021-12-27T13:02:52.000Z | modules/OCR/__init__.py | earlybackhome/You-cannot-guess | 8674b9c089321835205c75cbc2b36ca4fd9a5b80 | [
"MIT"
] | null | null | null | modules/OCR/__init__.py | earlybackhome/You-cannot-guess | 8674b9c089321835205c75cbc2b36ca4fd9a5b80 | [
"MIT"
] | 4 | 2017-06-19T13:50:54.000Z | 2020-12-12T15:51:37.000Z | print('successfully from %s imported'%__package__)
| 25.5 | 50 | 0.803922 | 6 | 51 | 6.166667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078431 | 51 | 1 | 51 | 51 | 0.787234 | 0 | 0 | 0 | 0 | 0 | 0.568627 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 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 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 6 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.