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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a18cf5bd148f07ee046a651b4ef4dbaa5dac3751 | 381 | py | Python | app/main/errors.py | fossabot/upland | 6f56347a145d090a770c149462cd7b7215101b30 | [
"MIT"
] | null | null | null | app/main/errors.py | fossabot/upland | 6f56347a145d090a770c149462cd7b7215101b30 | [
"MIT"
] | null | null | null | app/main/errors.py | fossabot/upland | 6f56347a145d090a770c149462cd7b7215101b30 | [
"MIT"
] | null | null | null | from flask import render_template
from . import main
@main.app_errorhandler(403)
def forbidden(e):
return render_template('error/403.html'), 403
@main.app_errorhandler(404)
def page_not_found(e):
return render_template('error/404.html'), 404
@main.app_errorhandler(500)
def internal_server_e... | 21.166667 | 50 | 0.727034 | 54 | 381 | 4.925926 | 0.407407 | 0.210526 | 0.214286 | 0.236842 | 0.293233 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084375 | 0.160105 | 381 | 17 | 51 | 22.411765 | 0.746875 | 0 | 0 | 0 | 0 | 0 | 0.115385 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.181818 | 0.272727 | 0.727273 | 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 |
a19e8ed9a02e5f9ce66545580ec5dc2566c29d47 | 47,963 | py | Python | Packs/Sixgill-Darkfeed/Integrations/Sixgill_Darkfeed/Sixgill_Darkfeed_test.py | cbrake1/content | 5b031129f98935c492056675eeee0fefcacbd87b | [
"MIT"
] | 2 | 2020-07-27T10:35:41.000Z | 2020-12-14T15:44:18.000Z | Packs/Sixgill-Darkfeed/Integrations/Sixgill_Darkfeed/Sixgill_Darkfeed_test.py | cbrake1/content | 5b031129f98935c492056675eeee0fefcacbd87b | [
"MIT"
] | 48 | 2022-03-08T13:45:00.000Z | 2022-03-31T14:32:05.000Z | Packs/Sixgill-Darkfeed/Integrations/Sixgill_Darkfeed/Sixgill_Darkfeed_test.py | cbrake1/content | 5b031129f98935c492056675eeee0fefcacbd87b | [
"MIT"
] | 2 | 2020-12-10T12:02:45.000Z | 2020-12-15T09:20:01.000Z | import requests
import pytest
import json
import demistomock as demisto
bundle_index = 0
submitted_indicators = 0
mocked_get_token_response = '''{"access_token": "fababfafbh"}'''
iocs_bundle = [{"id": "bundle--716fd67b-ba74-44db-8d4c-2efde05ddbaa",
"objects": [
{"created": "2017-01... | 74.942188 | 120 | 0.425265 | 3,280 | 47,963 | 6.066768 | 0.114939 | 0.027338 | 0.016584 | 0.019599 | 0.858184 | 0.839992 | 0.819137 | 0.797829 | 0.777577 | 0.769838 | 0 | 0.136344 | 0.476409 | 47,963 | 639 | 121 | 75.059468 | 0.655716 | 0.00367 | 0 | 0.422487 | 0 | 0 | 0.402379 | 0.150677 | 0 | 0 | 0 | 0 | 0.010221 | 1 | 0.015332 | false | 0 | 0.025554 | 0.003407 | 0.0477 | 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 |
a1b065365f8e41ac132be0b4be0fdcca6efdab17 | 176 | py | Python | argparse_to_json/__init__.py | childsish/argparse-to-json | 5a75c859a6df05b444ec5491a07a4f51b1d97baa | [
"MIT"
] | 1 | 2022-01-20T19:50:49.000Z | 2022-01-20T19:50:49.000Z | argparse_to_json/__init__.py | childsish/argparse-to-json | 5a75c859a6df05b444ec5491a07a4f51b1d97baa | [
"MIT"
] | null | null | null | argparse_to_json/__init__.py | childsish/argparse-to-json | 5a75c859a6df05b444ec5491a07a4f51b1d97baa | [
"MIT"
] | null | null | null | import argparse
from argparse_to_json.converter import Converter
def convert_parser_to_json(parser: argparse.ArgumentParser) -> dict:
return Converter().convert(parser)
| 22 | 68 | 0.8125 | 22 | 176 | 6.272727 | 0.545455 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113636 | 176 | 7 | 69 | 25.142857 | 0.884615 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a1fde297016f925528ee7641ba827cb64f582a0c | 284 | py | Python | cupy/io/__init__.py | fukuta0614/Chainer | 337fe78e1c27924c1195b8b677a9b2cd3ea68828 | [
"MIT"
] | null | null | null | cupy/io/__init__.py | fukuta0614/Chainer | 337fe78e1c27924c1195b8b677a9b2cd3ea68828 | [
"MIT"
] | 1 | 2016-11-09T06:32:32.000Z | 2016-11-09T10:20:04.000Z | cupy/io/__init__.py | fukuta0614/Chainer | 337fe78e1c27924c1195b8b677a9b2cd3ea68828 | [
"MIT"
] | 1 | 2018-11-18T00:36:51.000Z | 2018-11-18T00:36:51.000Z | # Functions from the following NumPy document
# http://docs.scipy.org/doc/numpy/reference/routines.io.html
# "NOQA" to suppress flake8 warning
from cupy.io import formatting # NOQA
from cupy.io import npz # NOQA
from cupy.io import rawfile # NOQA
from cupy.io import text # NOQA
| 31.555556 | 60 | 0.760563 | 45 | 284 | 4.8 | 0.577778 | 0.148148 | 0.185185 | 0.296296 | 0.277778 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004167 | 0.15493 | 284 | 8 | 61 | 35.5 | 0.895833 | 0.549296 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 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 |
1a0e95a3d4781bc417bd77fc89619755b53a1b9d | 8,090 | py | Python | cmif/extract.py | herreio/cmif | 10c5cde63fffe6cbb45670c1ead0f8cc198b0787 | [
"MIT"
] | null | null | null | cmif/extract.py | herreio/cmif | 10c5cde63fffe6cbb45670c1ead0f8cc198b0787 | [
"MIT"
] | 1 | 2022-02-02T14:04:05.000Z | 2022-02-02T14:04:05.000Z | cmif/extract.py | herreio/cmif | 10c5cde63fffe6cbb45670c1ead0f8cc198b0787 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
extract XML data in CMI format
"""
import re
from .build import ns_cs, ns_xml
def title(data):
"""
extract text of TEI element <title>
"""
try:
return data.find(".//title", namespaces=data.nsmap).text
except AttributeError:
pass
... | 23.314121 | 116 | 0.610383 | 961 | 8,090 | 5.08845 | 0.097815 | 0.049693 | 0.101022 | 0.079959 | 0.823517 | 0.799387 | 0.745808 | 0.702658 | 0.640286 | 0.601022 | 0 | 0.000334 | 0.25958 | 8,090 | 346 | 117 | 23.381503 | 0.816027 | 0.202967 | 0 | 0.612022 | 0 | 0 | 0.059218 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.163934 | false | 0.147541 | 0.010929 | 0 | 0.486339 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 6 |
c52120589d13816742363fd0034c96086a816942 | 6,657 | py | Python | moesifdjango/update_companies.py | Moesif/moesifdjango | 67529381b7ffc234263e6989ae16cf8ef1ca62a6 | [
"Apache-2.0"
] | 13 | 2016-11-02T18:53:03.000Z | 2022-01-25T21:47:24.000Z | moesifdjango/update_companies.py | Moesif/moesifdjango | 67529381b7ffc234263e6989ae16cf8ef1ca62a6 | [
"Apache-2.0"
] | 10 | 2017-12-13T11:56:48.000Z | 2021-07-16T12:34:14.000Z | moesifdjango/update_companies.py | Moesif/moesifdjango | 67529381b7ffc234263e6989ae16cf8ef1ca62a6 | [
"Apache-2.0"
] | 5 | 2018-02-02T13:51:49.000Z | 2021-12-17T00:46:24.000Z | from moesifapi.models import *
from moesifapi.exceptions.api_exception import *
from moesifapi.api_helper import *
class Company:
def __init__(self):
pass
@classmethod
def update_company(cls, company_profile, api_client, DEBUG):
if not company_profile:
print('Expecting the in... | 55.941176 | 123 | 0.527865 | 640 | 6,657 | 5.346875 | 0.139063 | 0.061368 | 0.042081 | 0.056108 | 0.848042 | 0.810637 | 0.734658 | 0.734658 | 0.675628 | 0.66014 | 0 | 0.009293 | 0.418056 | 6,657 | 118 | 124 | 56.415254 | 0.874032 | 0 | 0 | 0.702703 | 0 | 0 | 0.250413 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027027 | false | 0.009009 | 0.027027 | 0 | 0.063063 | 0.306306 | 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 |
c535fd75123f8d37fba1084a35cb8615db426175 | 31 | py | Python | nni/algorithms/compression/tensorflow/pruning/__init__.py | dutxubo/nni | c16f4e1c89b54b8b80661ef0072433d255ad2d24 | [
"MIT"
] | 9,680 | 2019-05-07T01:42:30.000Z | 2022-03-31T16:48:33.000Z | nni/algorithms/compression/tensorflow/pruning/__init__.py | dutxubo/nni | c16f4e1c89b54b8b80661ef0072433d255ad2d24 | [
"MIT"
] | 1,957 | 2019-05-06T21:44:21.000Z | 2022-03-31T09:21:53.000Z | nni/algorithms/compression/tensorflow/pruning/__init__.py | dutxubo/nni | c16f4e1c89b54b8b80661ef0072433d255ad2d24 | [
"MIT"
] | 1,571 | 2019-05-07T06:42:55.000Z | 2022-03-31T03:19:24.000Z | from .one_shot_pruner import *
| 15.5 | 30 | 0.806452 | 5 | 31 | 4.6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129032 | 31 | 1 | 31 | 31 | 0.851852 | 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 |
c53d0a6ab8cd95e818082ab9ddd5984a95a0cc1f | 60 | py | Python | python_stylesheets_color_changer/__init__.py | yjg30737/python-stylesheets-color-changer | 1851ef3256d61c73c5c884a7617fccfe30b771de | [
"MIT"
] | null | null | null | python_stylesheets_color_changer/__init__.py | yjg30737/python-stylesheets-color-changer | 1851ef3256d61c73c5c884a7617fccfe30b771de | [
"MIT"
] | null | null | null | python_stylesheets_color_changer/__init__.py | yjg30737/python-stylesheets-color-changer | 1851ef3256d61c73c5c884a7617fccfe30b771de | [
"MIT"
] | null | null | null | from .styleSheetsColorChanger import StyleSheetsColorChanger | 60 | 60 | 0.933333 | 4 | 60 | 14 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05 | 60 | 1 | 60 | 60 | 0.982456 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
3d6a770ee5ce7c67f4245e7416e8875a63c8bb65 | 3,234 | py | Python | tests/ci/jenkins_test.py | VJftw/invoke-tools | 9584a1f8a402118310b6f2a495062f388fc8dc3a | [
"MIT"
] | 2 | 2017-07-02T02:46:58.000Z | 2018-07-24T03:36:30.000Z | tests/ci/jenkins_test.py | VJftw/invoke-tools | 9584a1f8a402118310b6f2a495062f388fc8dc3a | [
"MIT"
] | null | null | null | tests/ci/jenkins_test.py | VJftw/invoke-tools | 9584a1f8a402118310b6f2a495062f388fc8dc3a | [
"MIT"
] | 1 | 2019-11-27T14:43:03.000Z | 2019-11-27T14:43:03.000Z | """
tests.invoke_tools.ci.jenkins_test
"""
import unittest
import mock
import json
from invoke_tools import ci
class JenkinsTests(unittest.TestCase):
"""
Tests for Jenkins
"""
def test_init(self):
"""
invoke_tools.ci.jenkins.init: Should initialise the Jenkins object
"""
... | 39.439024 | 133 | 0.631416 | 390 | 3,234 | 5.069231 | 0.192308 | 0.072838 | 0.076884 | 0.089024 | 0.81133 | 0.762772 | 0.762772 | 0.7304 | 0.719272 | 0.673748 | 0 | 0.023438 | 0.24799 | 3,234 | 81 | 134 | 39.925926 | 0.789474 | 0.112554 | 0 | 0.588235 | 0 | 0.078431 | 0.318689 | 0.115952 | 0 | 0 | 0 | 0 | 0.078431 | 1 | 0.098039 | false | 0 | 0.078431 | 0 | 0.235294 | 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 |
3da313bc449c9f1323849ff499bfc88935992dea | 34 | py | Python | algolia_analytics/__init__.py | dsfcode/algolia-analytics | 06c5bc2c44b8a99368d0ca175028dba22680bbc8 | [
"MIT"
] | 1 | 2022-01-04T16:32:39.000Z | 2022-01-04T16:32:39.000Z | algolia_analytics/__init__.py | dan-sf/algolia-analytics | 06c5bc2c44b8a99368d0ca175028dba22680bbc8 | [
"MIT"
] | null | null | null | algolia_analytics/__init__.py | dan-sf/algolia-analytics | 06c5bc2c44b8a99368d0ca175028dba22680bbc8 | [
"MIT"
] | null | null | null | from .api import AlgoliaAnalytics
| 17 | 33 | 0.852941 | 4 | 34 | 7.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 34 | 1 | 34 | 34 | 0.966667 | 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 |
3dd6c8f9eb5cd56813fdf220f26253d072ed7098 | 365 | py | Python | benedict/core/items_sorted.py | next-franciscoalgaba/python-benedict | 81ff459304868327238c322a0a8a203d9d5d4314 | [
"MIT"
] | 365 | 2019-05-21T05:50:30.000Z | 2022-03-29T11:35:35.000Z | benedict/core/items_sorted.py | next-franciscoalgaba/python-benedict | 81ff459304868327238c322a0a8a203d9d5d4314 | [
"MIT"
] | 78 | 2019-11-16T12:22:54.000Z | 2022-03-14T12:21:30.000Z | benedict/core/items_sorted.py | next-franciscoalgaba/python-benedict | 81ff459304868327238c322a0a8a203d9d5d4314 | [
"MIT"
] | 26 | 2019-12-16T06:34:12.000Z | 2022-02-28T07:16:41.000Z | # -*- coding: utf-8 -*-
def _items_sorted_by_item_at_index(d, index, reverse):
return sorted(d.items(), key=lambda item: item[index], reverse=reverse)
def items_sorted_by_keys(d, reverse=False):
return _items_sorted_by_item_at_index(d, 0, reverse)
def items_sorted_by_values(d, reverse=False):
return _... | 26.071429 | 75 | 0.750685 | 60 | 365 | 4.166667 | 0.333333 | 0.22 | 0.26 | 0.192 | 0.636 | 0.452 | 0.452 | 0.352 | 0.352 | 0.352 | 0 | 0.009434 | 0.128767 | 365 | 13 | 76 | 28.076923 | 0.77673 | 0.057534 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 1 | 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 |
3de0d776faa235c99406886dd71181a76acc7454 | 59 | py | Python | testchild.py | JRogersESQ/animated-garbanzo | da6c4f109b2506b8ceb1c0622e1e1756724bc65a | [
"Apache-2.0"
] | null | null | null | testchild.py | JRogersESQ/animated-garbanzo | da6c4f109b2506b8ceb1c0622e1e1756724bc65a | [
"Apache-2.0"
] | null | null | null | testchild.py | JRogersESQ/animated-garbanzo | da6c4f109b2506b8ceb1c0622e1e1756724bc65a | [
"Apache-2.0"
] | null | null | null | ### Add file to child branch
print ("inside child branch")
| 19.666667 | 29 | 0.711864 | 9 | 59 | 4.666667 | 0.777778 | 0.52381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169492 | 59 | 2 | 30 | 29.5 | 0.857143 | 0.40678 | 0 | 0 | 0 | 0 | 0.612903 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
9aeadc93ceef4048834a1b1cd863f8e5f2874176 | 26 | py | Python | easycrypto/__init__.py | emartech/python-easy-crypto | ef09b42e43fb6649498bfb7b5ffbbf490a94d85d | [
"MIT"
] | 3 | 2019-11-03T18:26:35.000Z | 2021-03-07T02:37:52.000Z | easycrypto/__init__.py | emartech/python-easy-crypto | ef09b42e43fb6649498bfb7b5ffbbf490a94d85d | [
"MIT"
] | 4 | 2019-06-05T01:48:19.000Z | 2019-07-19T11:53:51.000Z | easycrypto/__init__.py | emartech/python-easy-crypto | ef09b42e43fb6649498bfb7b5ffbbf490a94d85d | [
"MIT"
] | 2 | 2019-07-11T08:59:03.000Z | 2022-02-17T19:41:21.000Z | from .crypto import Crypto | 26 | 26 | 0.846154 | 4 | 26 | 5.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115385 | 26 | 1 | 26 | 26 | 0.956522 | 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 |
9aff9fa5e502c32e6b4ace7b1c8296b3bdf1aee9 | 39 | py | Python | pyLineSPM/__init__.py | rbeucher/pyLineSPM | 07ab561f638cae0caccd4f27c74b03f1f1364202 | [
"MIT"
] | null | null | null | pyLineSPM/__init__.py | rbeucher/pyLineSPM | 07ab561f638cae0caccd4f27c74b03f1f1364202 | [
"MIT"
] | null | null | null | pyLineSPM/__init__.py | rbeucher/pyLineSPM | 07ab561f638cae0caccd4f27c74b03f1f1364202 | [
"MIT"
] | null | null | null | from .river import *
from .spm import * | 19.5 | 20 | 0.717949 | 6 | 39 | 4.666667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.179487 | 39 | 2 | 21 | 19.5 | 0.875 | 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 |
b10b2fcb25dfdb6124a8bcbd3a9be22797d13ea0 | 157 | py | Python | gmso/external/__init__.py | rsdefever/gmso | 3ff3829cb4bc492b41e5e520d26d35c09c5338a4 | [
"MIT"
] | null | null | null | gmso/external/__init__.py | rsdefever/gmso | 3ff3829cb4bc492b41e5e520d26d35c09c5338a4 | [
"MIT"
] | null | null | null | gmso/external/__init__.py | rsdefever/gmso | 3ff3829cb4bc492b41e5e520d26d35c09c5338a4 | [
"MIT"
] | null | null | null | from .convert_mbuild import from_mbuild, to_mbuild, from_mbuild_box
from .convert_parmed import from_parmed, to_parmed
from .convert_openmm import to_openmm
| 39.25 | 67 | 0.866242 | 25 | 157 | 5.04 | 0.32 | 0.261905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095541 | 157 | 3 | 68 | 52.333333 | 0.887324 | 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 |
b18da9e260418c267c73a7d3d56acadbdc3b3636 | 96 | py | Python | albumentations/albumentations/augmentations/geometric/__init__.py | hfzx01/Substation | 760e2f1a5d21102a6a05973cc31bc8252659757c | [
"Apache-2.0"
] | 6,316 | 2019-11-18T14:19:17.000Z | 2022-03-31T22:25:23.000Z | albumentations/albumentations/augmentations/geometric/__init__.py | hfzx01/Substation | 760e2f1a5d21102a6a05973cc31bc8252659757c | [
"Apache-2.0"
] | 558 | 2019-11-19T00:36:01.000Z | 2022-03-30T22:04:15.000Z | albumentations/albumentations/augmentations/geometric/__init__.py | hfzx01/Substation | 760e2f1a5d21102a6a05973cc31bc8252659757c | [
"Apache-2.0"
] | 889 | 2019-11-18T16:49:44.000Z | 2022-03-28T11:00:14.000Z | from .functional import *
from .resize import *
from .rotate import *
from .transforms import *
| 19.2 | 25 | 0.75 | 12 | 96 | 6 | 0.5 | 0.416667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 96 | 4 | 26 | 24 | 0.9 | 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 |
495f8ac698df39c7dcc0678cab08f18a42d8cb80 | 9,262 | py | Python | TestFileSize_img_fig.py | ytyaru/Python.FileSize.201702071138 | 569c45d5e9b91befbaece50520eb69955e148c65 | [
"CC0-1.0"
] | null | null | null | TestFileSize_img_fig.py | ytyaru/Python.FileSize.201702071138 | 569c45d5e9b91befbaece50520eb69955e148c65 | [
"CC0-1.0"
] | 6 | 2017-02-09T00:54:50.000Z | 2017-02-09T10:56:13.000Z | TestFileSize_img_fig.py | ytyaru/Python.FileSize.201702071138 | 569c45d5e9b91befbaece50520eb69955e148c65 | [
"CC0-1.0"
] | null | null | null | import unittest
import FileSize
from decimal import Decimal
class TestFileSize_img_fig(unittest.TestCase):
def test_int_fig_2(self):
with self.assertRaises(Exception) as e:
int_fig=2;
self.__target = FileSize.FileSize(integral_figure_num=int_fig)
self.assertEqual('桁上がりする... | 60.142857 | 159 | 0.698337 | 1,422 | 9,262 | 4.151899 | 0.048523 | 0.065041 | 0.085366 | 0.123306 | 0.957486 | 0.949865 | 0.930217 | 0.928692 | 0.928692 | 0.891938 | 0 | 0.057462 | 0.178903 | 9,262 | 153 | 160 | 60.535948 | 0.718606 | 0 | 0 | 0.486111 | 0 | 0 | 0.033906 | 0.01231 | 0 | 0 | 0 | 0 | 0.222222 | 1 | 0.194444 | false | 0 | 0.020833 | 0 | 0.222222 | 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 |
498710ab6a4a6e43d65eb5915475d9de76164b9e | 90 | py | Python | libdlt/__init__.py | datalogistics/libdlt | f3d8afb06a237fe6e4114c1a55e6f407ba9cc7b0 | [
"BSD-3-Clause"
] | null | null | null | libdlt/__init__.py | datalogistics/libdlt | f3d8afb06a237fe6e4114c1a55e6f407ba9cc7b0 | [
"BSD-3-Clause"
] | 2 | 2018-05-20T21:33:03.000Z | 2019-02-15T16:48:37.000Z | libdlt/__init__.py | datalogistics/libdlt | f3d8afb06a237fe6e4114c1a55e6f407ba9cc7b0 | [
"BSD-3-Clause"
] | null | null | null | from libdlt.util import util
from libdlt.api import *
from libdlt.sessions import Session
| 22.5 | 35 | 0.822222 | 14 | 90 | 5.285714 | 0.5 | 0.405405 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 90 | 3 | 36 | 30 | 0.948718 | 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 |
498a12c07aece3061953a278e9e6bc94a0d23623 | 159 | py | Python | vedastr_cstr/vedastr/models/bodies/feature_extractors/encoders/__init__.py | bsm8734/formula-image-latex-recognition | 86d5070e8f907571a47967d64facaee246d92a35 | [
"MIT"
] | 13 | 2021-06-20T18:11:23.000Z | 2021-12-07T18:06:42.000Z | vedastr_cstr/vedastr/models/bodies/feature_extractors/encoders/__init__.py | bsm8734/formula-image-latex-recognition | 86d5070e8f907571a47967d64facaee246d92a35 | [
"MIT"
] | 9 | 2021-06-16T14:55:07.000Z | 2021-06-23T14:45:36.000Z | vedastr_cstr/vedastr/models/bodies/feature_extractors/encoders/__init__.py | bsm8734/formula-image-latex-recognition | 86d5070e8f907571a47967d64facaee246d92a35 | [
"MIT"
] | 6 | 2021-06-17T15:16:50.000Z | 2021-07-05T20:41:26.000Z | from .backbones import build_backbone # noqa 401
from .builder import build_encoder # noqa 401
from .enhance_modules import build_enhance_module # noqa 401
| 39.75 | 61 | 0.811321 | 23 | 159 | 5.391304 | 0.521739 | 0.266129 | 0.177419 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 0.150943 | 159 | 3 | 62 | 53 | 0.851852 | 0.163522 | 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 |
b8fd3350022f9e526ac1df7865de8ffaec66ea50 | 7,897 | py | Python | baseline_mixed_model.py | Vignesh-Sairaj/cm-229 | 63ae1b8f3529e602352bc3eb92066c9520dfa805 | [
"MIT"
] | null | null | null | baseline_mixed_model.py | Vignesh-Sairaj/cm-229 | 63ae1b8f3529e602352bc3eb92066c9520dfa805 | [
"MIT"
] | null | null | null | baseline_mixed_model.py | Vignesh-Sairaj/cm-229 | 63ae1b8f3529e602352bc3eb92066c9520dfa805 | [
"MIT"
] | null | null | null |
import os
import sys
import pandas as pd
import numpy as np
from data_import import *
import statsmodels.api as sm
from phenotype_correlation import *
from sklearn.linear_model import Ridge
"""
baseline mixed model
Y = ZA + XB + E
we calculate the ZA using OLS first
and perform ridge on the residuals (Y - ZA ~ ... | 31.337302 | 174 | 0.745473 | 1,255 | 7,897 | 4.384064 | 0.1251 | 0.026899 | 0.040712 | 0.043621 | 0.846601 | 0.841694 | 0.82679 | 0.824246 | 0.810614 | 0.798073 | 0 | 0.01632 | 0.146511 | 7,897 | 252 | 175 | 31.337302 | 0.8 | 0.205141 | 0 | 0.686275 | 0 | 0 | 0.05773 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029412 | false | 0 | 0.078431 | 0 | 0.107843 | 0.186275 | 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 |
772b71d48e3505086046ce9e1f6d36f41148da8b | 4,172 | py | Python | tests/test_engine/test_queries/test_queryop_comparsion_eq.py | gitter-badger/MontyDB | 849d03dc2cfed35739481e9acb1ff0bd8095c91b | [
"BSD-3-Clause"
] | null | null | null | tests/test_engine/test_queries/test_queryop_comparsion_eq.py | gitter-badger/MontyDB | 849d03dc2cfed35739481e9acb1ff0bd8095c91b | [
"BSD-3-Clause"
] | null | null | null | tests/test_engine/test_queries/test_queryop_comparsion_eq.py | gitter-badger/MontyDB | 849d03dc2cfed35739481e9acb1ff0bd8095c91b | [
"BSD-3-Clause"
] | null | null | null |
from bson.binary import Binary
from bson.code import Code
from bson.int64 import Int64
from bson.decimal128 import Decimal128
from bson.py3compat import PY3
def test_qop_eq_1(monty_find, mongo_find):
docs = [
{"a": 1},
{"a": 0}
]
spec = {"a": 1}
monty_c = monty_find(docs, spec)
m... | 22.430108 | 50 | 0.551774 | 628 | 4,172 | 3.41242 | 0.08121 | 0.123192 | 0.14559 | 0.067196 | 0.836211 | 0.814279 | 0.803546 | 0.733551 | 0.733551 | 0.709286 | 0 | 0.031565 | 0.263423 | 4,172 | 185 | 51 | 22.551351 | 0.665799 | 0 | 0 | 0.595588 | 0 | 0 | 0.029969 | 0 | 0 | 0 | 0 | 0 | 0.227941 | 1 | 0.088235 | false | 0 | 0.036765 | 0 | 0.125 | 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 |
7753eb5e6420ca68d8ffef287ff38769166ae880 | 18,133 | py | Python | lino_xl/lib/sepa/fixtures/sample_ibans.py | khchine5/xl | b1634937a9ce87af1e948eb712b934b11f221d9d | [
"BSD-2-Clause"
] | 1 | 2018-01-12T14:09:48.000Z | 2018-01-12T14:09:48.000Z | lino_xl/lib/sepa/fixtures/sample_ibans.py | khchine5/xl | b1634937a9ce87af1e948eb712b934b11f221d9d | [
"BSD-2-Clause"
] | 1 | 2019-09-10T05:03:47.000Z | 2019-09-10T05:03:47.000Z | lino_xl/lib/sepa/fixtures/sample_ibans.py | khchine5/xl | b1634937a9ce87af1e948eb712b934b11f221d9d | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: UTF-8 -*-
# Copyright 2015-2018 Rumma & Ko Ltd
# License: BSD (see file COPYING for details)
"""Contains a random list of example IBANs to be used for generating
demo data.
Thanks to `www.mobilefish.com
<http://www.mobilefish.com/services/random_iban_generator/random_iban_generator.php>`_.
This is bei... | 24.976584 | 87 | 0.948492 | 768 | 18,133 | 22.388021 | 0.984375 | 0.001512 | 0.001861 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.843434 | 0.045442 | 18,133 | 725 | 88 | 25.011034 | 0.149922 | 0.104616 | 0 | 0 | 0 | 0 | 0.994373 | 0.781598 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
654df0e800d89cf2735a297e4c338a796e8ea104 | 31 | py | Python | light_cnn/__init__.py | NateThom/similarity_classifiers | 5b320e150181232a00813482d8361590ff1fd47e | [
"MIT"
] | null | null | null | light_cnn/__init__.py | NateThom/similarity_classifiers | 5b320e150181232a00813482d8361590ff1fd47e | [
"MIT"
] | null | null | null | light_cnn/__init__.py | NateThom/similarity_classifiers | 5b320e150181232a00813482d8361590ff1fd47e | [
"MIT"
] | null | null | null | from .light_cnn import LightCnn | 31 | 31 | 0.870968 | 5 | 31 | 5.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096774 | 31 | 1 | 31 | 31 | 0.928571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
6560bd4f514ac3ea3a02b05113e17ef901543f0a | 9,895 | py | Python | usaspending_api/disaster/tests/integration/test_recipient_spending.py | g4brielvs/usaspending-api | bae7da2c204937ec1cdf75c052405b13145728d5 | [
"CC0-1.0"
] | null | null | null | usaspending_api/disaster/tests/integration/test_recipient_spending.py | g4brielvs/usaspending-api | bae7da2c204937ec1cdf75c052405b13145728d5 | [
"CC0-1.0"
] | null | null | null | usaspending_api/disaster/tests/integration/test_recipient_spending.py | g4brielvs/usaspending-api | bae7da2c204937ec1cdf75c052405b13145728d5 | [
"CC0-1.0"
] | null | null | null | import pytest
from rest_framework import status
from usaspending_api.search.tests.data.utilities import setup_elasticsearch_test
url = "/api/v2/disaster/recipient/spending/"
@pytest.mark.django_db
def test_correct_response_defc_no_results(
client, monkeypatch, helpers, elasticsearch_award_index, awards_and_tran... | 36.245421 | 120 | 0.60576 | 1,075 | 9,895 | 5.335814 | 0.147907 | 0.045328 | 0.072176 | 0.040795 | 0.867852 | 0.867678 | 0.840481 | 0.840481 | 0.826011 | 0.820084 | 0 | 0.101544 | 0.260536 | 9,895 | 272 | 121 | 36.378676 | 0.682383 | 0 | 0 | 0.609244 | 0 | 0 | 0.245073 | 0.076604 | 0 | 0 | 0 | 0 | 0.109244 | 1 | 0.037815 | false | 0 | 0.012605 | 0 | 0.05042 | 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 |
659fea67015d91605eb401fdac04d9b519e90de3 | 2,816 | py | Python | cogs/srtr.py | tasuren/tensei_disko | 7ec1d88e3e80f13cc2a17700aae672f5bf9a876d | [
"MIT"
] | null | null | null | cogs/srtr.py | tasuren/tensei_disko | 7ec1d88e3e80f13cc2a17700aae672f5bf9a876d | [
"MIT"
] | null | null | null | cogs/srtr.py | tasuren/tensei_disko | 7ec1d88e3e80f13cc2a17700aae672f5bf9a876d | [
"MIT"
] | null | null | null | from discord.ext import commands
import discord
import pickle
import n_fc
class srtr(commands.Cog):
def __init__(self, bot: commands.Bot):
self.bot = bot
@commands.command()
async def srtr(self, ctx: commands.Context):
if ctx.message.content == "n#srtr":
embed = discord.Embed(t... | 51.2 | 142 | 0.584517 | 353 | 2,816 | 4.549575 | 0.184136 | 0.174346 | 0.089664 | 0.068493 | 0.807597 | 0.791407 | 0.762142 | 0.725405 | 0.721046 | 0.6401 | 0 | 0.016318 | 0.303622 | 2,816 | 55 | 143 | 51.2 | 0.802652 | 0 | 0 | 0.519231 | 0 | 0 | 0.12957 | 0.084487 | 0 | 0 | 0.017039 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.076923 | 0 | 0.269231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
65acdeafe551513b7c2679223546249143fbfdfd | 3,043 | py | Python | tests/pytests/functional/utils/user/test_chugid_and_umask.py | ifraixedes/saltstack-salt | b54becb8b43cc9b7c00b2c0bc637ac534dc62896 | [
"Apache-2.0"
] | 3 | 2015-08-30T04:23:47.000Z | 2018-07-15T00:35:23.000Z | tests/pytests/functional/utils/user/test_chugid_and_umask.py | ifraixedes/saltstack-salt | b54becb8b43cc9b7c00b2c0bc637ac534dc62896 | [
"Apache-2.0"
] | 4 | 2016-05-10T22:05:34.000Z | 2016-05-20T18:10:13.000Z | tests/pytests/functional/utils/user/test_chugid_and_umask.py | ifraixedes/saltstack-salt | b54becb8b43cc9b7c00b2c0bc637ac534dc62896 | [
"Apache-2.0"
] | 1 | 2022-02-22T10:43:09.000Z | 2022-02-22T10:43:09.000Z | import functools
import os
import subprocess
import pytest
import salt.utils.user
pytestmark = [
pytest.mark.destructive_test,
pytest.mark.skip_if_not_root,
pytest.mark.skip_on_windows,
]
@pytest.fixture(scope="module")
def account_1():
with pytest.helpers.create_account(create_group=True) as _accou... | 28.980952 | 107 | 0.659547 | 404 | 3,043 | 4.80198 | 0.227723 | 0.057732 | 0.040206 | 0.043299 | 0.835567 | 0.829381 | 0.797938 | 0.758763 | 0.758763 | 0.719588 | 0 | 0.014448 | 0.249425 | 3,043 | 104 | 108 | 29.259615 | 0.834939 | 0.184029 | 0 | 0.692308 | 0 | 0 | 0.019386 | 0 | 0 | 0 | 0 | 0 | 0.128205 | 1 | 0.051282 | false | 0 | 0.064103 | 0 | 0.115385 | 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 |
65d2f4a74b021735c340a1be2b2510e8335d2269 | 117 | py | Python | URI/2747.py | namelew/PythonExercices | e6701dddf163b616987fc9edd8b9ef8e9a207e84 | [
"MIT"
] | null | null | null | URI/2747.py | namelew/PythonExercices | e6701dddf163b616987fc9edd8b9ef8e9a207e84 | [
"MIT"
] | 1 | 2020-11-09T17:20:58.000Z | 2020-11-09T17:21:10.000Z | URI/2747.py | namelew/PythonExercices | e6701dddf163b616987fc9edd8b9ef8e9a207e84 | [
"MIT"
] | null | null | null | x = 1
print("-"*39)
while x <= 5:
print("|",end="")
print(end=" "*37)
print("|")
x += 1
print("-"*39) | 14.625 | 21 | 0.410256 | 17 | 117 | 2.823529 | 0.470588 | 0.083333 | 0.291667 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104651 | 0.264957 | 117 | 8 | 22 | 14.625 | 0.453488 | 0 | 0 | 0.25 | 0 | 0 | 0.042373 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.625 | 1 | 0 | 0 | null | 0 | 1 | 1 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
029e613fe9ea82daf80c7507f2ee11a12e283277 | 90 | py | Python | 10/03/2/package1/package11/module1.py | pylangstudy/201706 | f1cc6af6b18e5bd393cda27f5166067c4645d4d3 | [
"CC0-1.0"
] | null | null | null | 10/03/2/package1/package11/module1.py | pylangstudy/201706 | f1cc6af6b18e5bd393cda27f5166067c4645d4d3 | [
"CC0-1.0"
] | 70 | 2017-06-01T11:02:51.000Z | 2017-06-30T00:35:32.000Z | 10/03/3/package1/package11/module1.py | pylangstudy/201706 | f1cc6af6b18e5bd393cda27f5166067c4645d4d3 | [
"CC0-1.0"
] | null | null | null | print('0/package/module1.py Run!!')
def some_method():
print('module1.some_method()')
| 22.5 | 35 | 0.688889 | 13 | 90 | 4.615385 | 0.692308 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037037 | 0.1 | 90 | 3 | 36 | 30 | 0.703704 | 0 | 0 | 0 | 0 | 0 | 0.522222 | 0.233333 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | true | 0 | 0 | 0 | 0.333333 | 0.666667 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
02a715c6564fe587885db6c48b02edac2967b559 | 86 | py | Python | Programa/menu/__init__.py | NicolasGandolfi/Exercicios-Python | 935fe3577c149192f9e29568e9798e970a620131 | [
"MIT"
] | null | null | null | Programa/menu/__init__.py | NicolasGandolfi/Exercicios-Python | 935fe3577c149192f9e29568e9798e970a620131 | [
"MIT"
] | null | null | null | Programa/menu/__init__.py | NicolasGandolfi/Exercicios-Python | 935fe3577c149192f9e29568e9798e970a620131 | [
"MIT"
] | null | null | null | def linha(txt):
print('\033[0;35m—'*50)
print(f' {txt}')
print('—'*50)
| 12.285714 | 27 | 0.476744 | 15 | 86 | 2.866667 | 0.666667 | 0.372093 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 0.244186 | 86 | 6 | 28 | 14.333333 | 0.476923 | 0 | 0 | 0 | 0 | 0 | 0.22619 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.25 | 0.75 | 1 | 0 | 0 | null | 1 | 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 | 0 | 0 | 1 | 0 | 6 |
02f47dadea79576a9f157ac8f16ff4cc069abf71 | 106 | py | Python | verilogparser/__init__.py | sepandhaghighi/verilogparser | 8983b8d74fa28605b6a6772c6a02eafa6e6ba213 | [
"MIT"
] | 13 | 2017-10-29T15:52:19.000Z | 2022-02-06T18:32:20.000Z | verilogparser/__init__.py | sepandhaghighi/verilogparser | 8983b8d74fa28605b6a6772c6a02eafa6e6ba213 | [
"MIT"
] | null | null | null | verilogparser/__init__.py | sepandhaghighi/verilogparser | 8983b8d74fa28605b6a6772c6a02eafa6e6ba213 | [
"MIT"
] | 4 | 2020-01-20T07:13:26.000Z | 2022-02-06T18:32:59.000Z | # -*- coding: utf-8 -*-
from .verilogparser import *
from .logics import *
from .deductivelogic import * | 17.666667 | 29 | 0.688679 | 12 | 106 | 6.083333 | 0.666667 | 0.273973 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011364 | 0.169811 | 106 | 6 | 29 | 17.666667 | 0.818182 | 0.198113 | 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 |
b82486939a3556979f307de4e951e7d15a60a4d1 | 38 | py | Python | tests/test_video.py | hixan/av_slice | 0fbb4f45281f701c8e9eb9c764f380a719b5d1c0 | [
"MIT"
] | null | null | null | tests/test_video.py | hixan/av_slice | 0fbb4f45281f701c8e9eb9c764f380a719b5d1c0 | [
"MIT"
] | 2 | 2020-05-05T07:55:38.000Z | 2021-11-15T17:48:40.000Z | tests/test_video.py | hixan/av_slice | 0fbb4f45281f701c8e9eb9c764f380a719b5d1c0 | [
"MIT"
] | null | null | null |
def test_remove_sections():
pass
| 9.5 | 27 | 0.710526 | 5 | 38 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210526 | 38 | 3 | 28 | 12.666667 | 0.833333 | 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 |
b846a8c31d3bdf2cd5d292aca7bed13053efd337 | 95 | py | Python | job/src/slipstream/job/__init__.py | slipstream/SlipStreamJobEngine | 9860283b66ee053022c8261517d85b2a1088610c | [
"Apache-2.0"
] | 3 | 2019-04-27T10:36:21.000Z | 2019-04-29T12:41:57.000Z | code/src/nuvla/job/__init__.py | nuvla/job-engine | 58d42bd24d8dd2c6e28541c08df1455c9ac909f6 | [
"Apache-2.0"
] | 131 | 2019-02-13T06:00:49.000Z | 2022-03-29T15:06:03.000Z | job/src/slipstream/job/__init__.py | slipstream/SlipStreamJobEngine | 9860283b66ee053022c8261517d85b2a1088610c | [
"Apache-2.0"
] | 1 | 2020-12-03T11:35:21.000Z | 2020-12-03T11:35:21.000Z | # -*- coding: utf-8 -*-
from .distributor import *
from .executor import *
from .job import *
| 15.833333 | 26 | 0.652632 | 12 | 95 | 5.166667 | 0.666667 | 0.322581 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012987 | 0.189474 | 95 | 5 | 27 | 19 | 0.792208 | 0.221053 | 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 |
b8574142b53ed1a09720632bf05e3d45b60cc5c3 | 32 | py | Python | Modules/TrainUS/TrainUSLib/__init__.py | EBATINCA/TrainUS | f24c894d23f4f608ccef77914215eba8c5559101 | [
"Apache-2.0"
] | 2 | 2022-01-18T22:39:03.000Z | 2022-01-20T10:28:21.000Z | Modules/TrainUS/TrainUSLib/__init__.py | EBATINCA/TrainUS | f24c894d23f4f608ccef77914215eba8c5559101 | [
"Apache-2.0"
] | 2 | 2022-01-28T13:11:57.000Z | 2022-03-29T11:22:23.000Z | Modules/TrainUS/TrainUSLib/__init__.py | EBATINCA/TrainUS | f24c894d23f4f608ccef77914215eba8c5559101 | [
"Apache-2.0"
] | null | null | null | from .TrainUSParameters import * | 32 | 32 | 0.84375 | 3 | 32 | 9 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09375 | 32 | 1 | 32 | 32 | 0.931034 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
b868ad5d7e98a14225c6fd781e4afd72adc90c51 | 265 | py | Python | lib/machine_learning/context_classification/context_classifiers/__init__.py | thesmarthomeninja/Video_Gaming_ML | e9c147f33a790a9cd3e4ee631ddbf6bbf91c3921 | [
"MIT"
] | null | null | null | lib/machine_learning/context_classification/context_classifiers/__init__.py | thesmarthomeninja/Video_Gaming_ML | e9c147f33a790a9cd3e4ee631ddbf6bbf91c3921 | [
"MIT"
] | 4 | 2020-09-25T22:39:46.000Z | 2022-02-09T23:39:43.000Z | lib/machine_learning/context_classification/context_classifiers/__init__.py | AsimKhan2019/Serpent-AI | e9c147f33a790a9cd3e4ee631ddbf6bbf91c3921 | [
"MIT"
] | null | null | null | from lib.machine_learning.context_classification.context_classifiers.svm_context_classifier import SVMContextClassifier
from lib.machine_learning.context_classification.context_classifiers.cnn_inception_v3_context_classifier import CNNInceptionV3ContextClassifier
| 66.25 | 143 | 0.935849 | 28 | 265 | 8.428571 | 0.535714 | 0.059322 | 0.118644 | 0.186441 | 0.516949 | 0.516949 | 0.516949 | 0.516949 | 0 | 0 | 0 | 0.007813 | 0.033962 | 265 | 3 | 144 | 88.333333 | 0.914063 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
b886a4fbaf44bb591caaabce7624bbaaf45ab8b8 | 130 | py | Python | privx_api/utils.py | hokenssh/privx-sdk-for-python | 24627d25c0343f350c9b2396677344b771f8aec6 | [
"Apache-2.0"
] | 4 | 2020-06-15T17:14:18.000Z | 2021-12-20T12:12:56.000Z | privx_api/utils.py | hokenssh/privx-sdk-for-python | 24627d25c0343f350c9b2396677344b771f8aec6 | [
"Apache-2.0"
] | 5 | 2019-11-25T07:04:07.000Z | 2021-05-19T08:09:53.000Z | privx_api/utils.py | hokenssh/privx-sdk-for-python | 24627d25c0343f350c9b2396677344b771f8aec6 | [
"Apache-2.0"
] | 23 | 2019-11-22T08:17:58.000Z | 2022-02-21T15:50:36.000Z | from typing import Any
def get_value(obj: Any, default_value: Any) -> Any:
return obj if obj is not None else default_value
| 21.666667 | 52 | 0.738462 | 23 | 130 | 4.043478 | 0.652174 | 0.258065 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 130 | 5 | 53 | 26 | 0.894231 | 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 | 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 | 1 | 0 | 0 | 0 | 6 |
b88e654e466ad3288c50eb35d774882f8b85c7e5 | 169 | py | Python | Databaselayer/IPostStatus.py | rohitgs28/FindMyEmployer | d4b369eb488f44e40ef371ac09847f8ccc39994c | [
"MIT"
] | null | null | null | Databaselayer/IPostStatus.py | rohitgs28/FindMyEmployer | d4b369eb488f44e40ef371ac09847f8ccc39994c | [
"MIT"
] | null | null | null | Databaselayer/IPostStatus.py | rohitgs28/FindMyEmployer | d4b369eb488f44e40ef371ac09847f8ccc39994c | [
"MIT"
] | null | null | null | import hashlib, os
import logging
class IPostStatus:
def insertUserStatus(self): raise NotImplementedError
def getUserStatuses(self): raise NotImplementedError
| 24.142857 | 57 | 0.810651 | 17 | 169 | 8.058824 | 0.705882 | 0.131387 | 0.408759 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142012 | 169 | 6 | 58 | 28.166667 | 0.944828 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0.4 | 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 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
b22bd61bfb3ebf0345e574b99e45efbbff54a732 | 40,169 | py | Python | cameo/localdb.py | muchu1983/104_cameo | 8c7f78de198a5bd8d870589402e3b7e8b59f520a | [
"BSD-3-Clause"
] | null | null | null | cameo/localdb.py | muchu1983/104_cameo | 8c7f78de198a5bd8d870589402e3b7e8b59f520a | [
"BSD-3-Clause"
] | null | null | null | cameo/localdb.py | muchu1983/104_cameo | 8c7f78de198a5bd8d870589402e3b7e8b59f520a | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Copyright (C) 2015, MuChu Hsu
Contributed by Muchu Hsu (muchu1983@gmail.com)
This file is part of BSD license
<https://opensource.org/licenses/BSD-3-Clause>
"""
from bennu.localdb import SQLite3Db
from bennu.localdb import MongoDb
import random
"""
本地端資料庫存取
"""
#匯入json
class LocalDbForJsonI... | 42.238696 | 122 | 0.640544 | 3,920 | 40,169 | 6.515816 | 0.061224 | 0.034766 | 0.047569 | 0.066596 | 0.840811 | 0.819787 | 0.788623 | 0.755579 | 0.74724 | 0.65727 | 0 | 0.006706 | 0.272399 | 40,169 | 951 | 123 | 42.238696 | 0.867212 | 0.059972 | 0 | 0.690856 | 0 | 0 | 0.237834 | 0.012206 | 0 | 0 | 0 | 0 | 0 | 1 | 0.161103 | false | 0.011611 | 0.005806 | 0.008708 | 0.246734 | 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 |
b24437e7a2b052bb60bcdbba9119bb288d776585 | 64 | py | Python | pyanom/__init__.py | ground0state/pyanom | 15480b6e0cf4c27603737c81d8006013a98f410d | [
"MIT"
] | 5 | 2021-09-07T14:48:19.000Z | 2021-09-25T22:58:39.000Z | pyanom/__init__.py | ground0state/pyanom | 15480b6e0cf4c27603737c81d8006013a98f410d | [
"MIT"
] | 2 | 2020-05-21T01:39:33.000Z | 2021-09-07T08:27:05.000Z | pyanom/__init__.py | ground0state/pyanom | 15480b6e0cf4c27603737c81d8006013a98f410d | [
"MIT"
] | 3 | 2020-05-21T17:36:12.000Z | 2021-07-27T08:54:19.000Z | from pyanom.__version__ import __version__
from pyanom import *
| 21.333333 | 42 | 0.84375 | 8 | 64 | 5.75 | 0.5 | 0.434783 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 64 | 2 | 43 | 32 | 0.821429 | 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 |
a22b4b458cb9dccb0de671b921f8f40e6a8ba2c9 | 4,028 | py | Python | tests/tasks/util/test_asynctask.py | nhausman1/python-client | b15f76977dc3178634ee8e007b53f613ddd2ac7c | [
"Apache-2.0"
] | 13 | 2017-03-17T15:15:20.000Z | 2022-03-14T22:24:10.000Z | tests/tasks/util/test_asynctask.py | nhausman1/python-client | b15f76977dc3178634ee8e007b53f613ddd2ac7c | [
"Apache-2.0"
] | 81 | 2017-01-12T23:06:48.000Z | 2022-02-21T18:20:23.000Z | tests/tasks/util/test_asynctask.py | nhausman1/python-client | b15f76977dc3178634ee8e007b53f613ddd2ac7c | [
"Apache-2.0"
] | 14 | 2017-05-25T10:49:13.000Z | 2021-12-27T16:39:20.000Z | """Asynctask test module."""
import time
import threading
from splitio.tasks.util import asynctask
class AsyncTaskTests(object):
"""AsyncTask test cases."""
def test_default_task_flow(self, mocker):
"""Test the default execution flow of an asynctask."""
main_func = mocker.Mock()
on_i... | 33.848739 | 83 | 0.623635 | 539 | 4,028 | 4.400742 | 0.135436 | 0.093592 | 0.092749 | 0.060708 | 0.798904 | 0.788786 | 0.76855 | 0.733137 | 0.713744 | 0.713744 | 0 | 0.010541 | 0.269861 | 4,028 | 118 | 84 | 34.135593 | 0.795988 | 0.096574 | 0 | 0.806452 | 0 | 0 | 0.007494 | 0 | 0 | 0 | 0 | 0 | 0.301075 | 1 | 0.086022 | false | 0 | 0.032258 | 0 | 0.129032 | 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 |
a24c0115096b3a3bded9bc1bed1395c2340663ee | 38 | py | Python | Code/Day 13/demo07.py | AndyChiangSH/2021-IT-30days | d001523f1ed80d765fb92c893e3f936010a96c30 | [
"MIT"
] | 8 | 2021-10-19T03:35:37.000Z | 2022-03-27T09:58:19.000Z | Code/Day 13/demo07.py | AndyChiangSH/2021-IT-30days | d001523f1ed80d765fb92c893e3f936010a96c30 | [
"MIT"
] | null | null | null | Code/Day 13/demo07.py | AndyChiangSH/2021-IT-30days | d001523f1ed80d765fb92c893e3f936010a96c30 | [
"MIT"
] | null | null | null | import math
print(math.log(1024, 2))
| 9.5 | 24 | 0.710526 | 7 | 38 | 3.857143 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151515 | 0.131579 | 38 | 3 | 25 | 12.666667 | 0.666667 | 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 |
a264eeb5359dbaec7dde65bed2d0836eb6afbfd1 | 89 | py | Python | __init__.py | maminian/caterpillar_mset | e25008a5c82cad0db914058198bf8f257bc2df36 | [
"MIT"
] | 5 | 2020-11-19T05:48:46.000Z | 2022-03-09T07:44:49.000Z | __init__.py | maminian/caterpillar_mset | e25008a5c82cad0db914058198bf8f257bc2df36 | [
"MIT"
] | 3 | 2020-11-24T05:46:16.000Z | 2021-12-24T15:15:29.000Z | __init__.py | maminian/caterpillar_mset | e25008a5c82cad0db914058198bf8f257bc2df36 | [
"MIT"
] | 3 | 2020-05-11T17:13:38.000Z | 2021-05-16T06:11:24.000Z | # Needed if one wants to utilize this as a package.
from . import tde
from . import mset
| 22.25 | 51 | 0.741573 | 16 | 89 | 4.125 | 0.875 | 0.30303 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.213483 | 89 | 3 | 52 | 29.666667 | 0.942857 | 0.550562 | 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 |
a267fd0b5eb6fa653d610e9a0790d9f6cc60df2f | 38,007 | py | Python | pysmFISH/stitching_package/hybregistration.py | ambrosejcarr/pysmFISH | 0eb24355f70c0d5c9013a9407fd56f2e1e9ee3cb | [
"MIT"
] | 5 | 2018-05-29T23:03:19.000Z | 2022-02-02T02:04:41.000Z | pysmFISH/stitching_package/hybregistration.py | ambrosejcarr/pysmFISH | 0eb24355f70c0d5c9013a9407fd56f2e1e9ee3cb | [
"MIT"
] | 3 | 2018-12-18T20:18:38.000Z | 2019-01-18T22:47:45.000Z | pysmFISH/stitching_package/hybregistration.py | ambrosejcarr/pysmFISH | 0eb24355f70c0d5c9013a9407fd56f2e1e9ee3cb | [
"MIT"
] | 5 | 2018-08-10T14:54:54.000Z | 2021-10-09T13:32:08.000Z | """Functions to perform registration between all hybridizations.
register_final_images(folder, gene='Nuclei',
sub_pic_frac=0.2, use_MPI=False,
apply_to_corners=True, apply_warping = True)
-- Register stitched images an in all HDF5 file in the folder
find_reg_final_i... | 40.134108 | 94 | 0.596574 | 5,120 | 38,007 | 4.228906 | 0.069531 | 0.024386 | 0.03547 | 0.016211 | 0.829346 | 0.823157 | 0.812627 | 0.807039 | 0.803344 | 0.794338 | 0 | 0.011227 | 0.327387 | 38,007 | 947 | 95 | 40.134108 | 0.835746 | 0.467966 | 0 | 0.696809 | 0 | 0 | 0.070876 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029255 | false | 0 | 0.026596 | 0 | 0.074468 | 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 |
a2890d4689e7cfc52b164fe710dad0fb31293f19 | 38,185 | py | Python | tests/test_multitask_gp.py | ivandariojr/core | c4dec054a3e80355ed3812d48ca2bba286584a67 | [
"MIT"
] | 6 | 2021-01-26T21:00:24.000Z | 2022-02-28T23:57:50.000Z | tests/test_multitask_gp.py | ivandariojr/core | c4dec054a3e80355ed3812d48ca2bba286584a67 | [
"MIT"
] | 15 | 2020-01-28T22:49:18.000Z | 2021-12-14T08:34:39.000Z | tests/test_multitask_gp.py | ivandariojr/core | c4dec054a3e80355ed3812d48ca2bba286584a67 | [
"MIT"
] | 6 | 2019-06-07T21:31:20.000Z | 2021-12-13T01:00:02.000Z | from numpy import pi
from core.learning.gaussian_process import RBFKernel, GaussianProcess, \
GPScaler, ScaledGaussianProcess, PeriodicKernel, AdditiveKernel, \
AffineDotProductKernel, MultiplicativeKernel, save_gp, load_gp
import matplotlib.pyplot as plt
import torch as th
import pathlib
from os import makedi... | 46.852761 | 114 | 0.550818 | 5,511 | 38,185 | 3.643077 | 0.054074 | 0.035613 | 0.083379 | 0.045425 | 0.892414 | 0.871296 | 0.843403 | 0.8183 | 0.788166 | 0.774917 | 0 | 0.086606 | 0.243734 | 38,185 | 814 | 115 | 46.910319 | 0.608629 | 0.380804 | 0 | 0.511848 | 0 | 0 | 0.001416 | 0 | 0 | 0 | 0 | 0 | 0.189573 | 1 | 0.035545 | false | 0 | 0.014218 | 0 | 0.054502 | 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 |
a297417c5df77528b3521ecdb1d16984df511f38 | 31,025 | py | Python | simplebitcoinfuncs/_doctester.py | maxweisspoker/simplebitcoinfuncs | ad332433dfcc067e86d2e77fa0c8f1a27daffb63 | [
"MIT"
] | 1 | 2017-03-18T06:00:51.000Z | 2017-03-18T06:00:51.000Z | simplebitcoinfuncs/_doctester.py | maxweisspoker/simplebitcoinfuncs | ad332433dfcc067e86d2e77fa0c8f1a27daffb63 | [
"MIT"
] | null | null | null | simplebitcoinfuncs/_doctester.py | maxweisspoker/simplebitcoinfuncs | ad332433dfcc067e86d2e77fa0c8f1a27daffb63 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
I removed all the doctests from everywhere else and put them here.
'''
from __future__ import print_function, division, absolute_import
try:
from __builtin__ import bytes, str, open, super, range, zip, round, int, pow, object, input
except ImportError: pass
... | 40.083979 | 804 | 0.776342 | 1,682 | 31,025 | 14.265755 | 0.348989 | 0.010002 | 0.010294 | 0.012461 | 0.163534 | 0.122526 | 0.108439 | 0.099271 | 0.093436 | 0.075891 | 0 | 0.424987 | 0.140629 | 31,025 | 773 | 805 | 40.135834 | 0.474983 | 0.864271 | 0 | 0.216216 | 0 | 0 | 0.017806 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.175676 | false | 0.027027 | 0.486486 | 0 | 0.824324 | 0.013514 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
0c5446b85db5107cad16f31eefccc7dc97ee27ce | 30 | py | Python | virgo/__init__.py | terrykong/pyvirgo | 9c6cb8d791446881265a4a0e3f601376c618dadc | [
"MIT"
] | 4 | 2021-05-23T21:07:44.000Z | 2021-08-11T00:04:54.000Z | virgo/__init__.py | terrykong/pyvirgo | 9c6cb8d791446881265a4a0e3f601376c618dadc | [
"MIT"
] | 9 | 2021-02-22T02:04:36.000Z | 2021-05-24T04:53:54.000Z | virgo/__init__.py | terrykong/pyvirgo | 9c6cb8d791446881265a4a0e3f601376c618dadc | [
"MIT"
] | 1 | 2021-05-24T05:00:32.000Z | 2021-05-24T05:00:32.000Z | from .load import load, loads
| 15 | 29 | 0.766667 | 5 | 30 | 4.6 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 30 | 1 | 30 | 30 | 0.92 | 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 |
a79a034811e3d1e4d15316455ac143b1a5f362e5 | 404 | py | Python | Pendulum/2d_simulation.py | garlicbutter/Jonathan-Tom | c1696f0a94da46911b3566a3d4f49791e877373f | [
"MIT"
] | 2 | 2021-10-05T04:31:19.000Z | 2021-10-05T04:31:26.000Z | Pendulum/2d_simulation.py | garlicbutter/Tom-Jonathan | c1696f0a94da46911b3566a3d4f49791e877373f | [
"MIT"
] | null | null | null | Pendulum/2d_simulation.py | garlicbutter/Tom-Jonathan | c1696f0a94da46911b3566a3d4f49791e877373f | [
"MIT"
] | null | null | null | import numpy as np
# parameters
L1, L2 = 0.4, 0.3 # meters
m1, m2, m_end = 8, 5, 4 # kg
K_e = 10**5 # N/m
# F = Kx + Bx' + Mx''
K_imp = [[62500.0, 0.0],[0.0, 62500.0]]
B_imp = [[3500.0, 0.0],[0.0, 3500.0]]
M_imp = [[100.0, 0.0],[0.0, 100.0]]
# PD controller
P_PBIC = [[150.0, 0.0] ,[0.0, 170.0]]
D_PBIC = [[18.0, 0.... | 23.764706 | 39 | 0.492574 | 102 | 404 | 1.862745 | 0.401961 | 0.294737 | 0.331579 | 0.294737 | 0.184211 | 0 | 0 | 0 | 0 | 0 | 0 | 0.291022 | 0.200495 | 404 | 17 | 40 | 23.764706 | 0.297214 | 0.143564 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0 | 0 | 0 | 1 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
a7b03c434c7ffef8645cebbc0da857591896212f | 158 | py | Python | utils/models/__init__.py | wufanyou/growth-ring-detection | 27989870e12ab149413363a99080f7684db6cf1a | [
"MIT"
] | null | null | null | utils/models/__init__.py | wufanyou/growth-ring-detection | 27989870e12ab149413363a99080f7684db6cf1a | [
"MIT"
] | null | null | null | utils/models/__init__.py | wufanyou/growth-ring-detection | 27989870e12ab149413363a99080f7684db6cf1a | [
"MIT"
] | null | null | null | from .FPNV1 import FPN as FPN
from .FPNV2 import FPN as FPNV2
from .FPNV3 import FPN as FPNV3
from .FPNV4 import FPN as FPNV4
from .FPNV5 import FPN as FPNV5
| 26.333333 | 31 | 0.778481 | 30 | 158 | 4.1 | 0.3 | 0.365854 | 0.447154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070313 | 0.189873 | 158 | 5 | 32 | 31.6 | 0.890625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a7be627ec2bf6f24d752f0052e916e6ee33cc1c0 | 1,722 | py | Python | dev_up/categories/warface.py | lordralinc/dev_up | e035afd386c8a16c574aaa7615c263f1c1369911 | [
"MIT"
] | 2 | 2021-01-10T15:44:41.000Z | 2021-01-10T15:59:48.000Z | dev_up/categories/warface.py | lordralinc/dev_up | e035afd386c8a16c574aaa7615c263f1c1369911 | [
"MIT"
] | null | null | null | dev_up/categories/warface.py | lordralinc/dev_up | e035afd386c8a16c574aaa7615c263f1c1369911 | [
"MIT"
] | 4 | 2021-01-10T15:45:19.000Z | 2021-03-05T20:09:57.000Z | import typing as ty
from dev_up import models
from dev_up.categories.base import BaseAPICategories
class WarfaceAPICategories(BaseAPICategories):
def get_info(
self,
nick: str,
type: ty.Union[models.WarfaceGetInfoTypeEnum, str] = models.WarfaceGetInfoTypeEnum.STATISTICS,
key: s... | 36.638298 | 103 | 0.656794 | 179 | 1,722 | 6.273743 | 0.324022 | 0.199466 | 0.135352 | 0.026714 | 0.821015 | 0.821015 | 0.821015 | 0.821015 | 0.821015 | 0.821015 | 0 | 0 | 0.259001 | 1,722 | 47 | 104 | 36.638298 | 0.880094 | 0.148084 | 0 | 0.642857 | 0 | 0 | 0.02681 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.107143 | 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 |
3bd49f9c389bc2e87bb10ee416ff9c4d288827e9 | 49 | py | Python | Python/libraries/recognizers-number/recognizers_number/number/japanese/__init__.py | acblacktea/Recognizers-Text | 2170b8e35216f3fd56cce98fb33cde5339c9f088 | [
"MIT"
] | 1 | 2019-06-19T10:45:24.000Z | 2019-06-19T10:45:24.000Z | Python/libraries/recognizers-number/recognizers_number/number/japanese/__init__.py | AzureMentor/Recognizers-Text | 4f18e1d03607cc96e87095d8bf68c481c1b0756f | [
"MIT"
] | null | null | null | Python/libraries/recognizers-number/recognizers_number/number/japanese/__init__.py | AzureMentor/Recognizers-Text | 4f18e1d03607cc96e87095d8bf68c481c1b0756f | [
"MIT"
] | null | null | null | from .extractors import *
from .parsers import * | 24.5 | 26 | 0.755102 | 6 | 49 | 6.166667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163265 | 49 | 2 | 27 | 24.5 | 0.902439 | 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 |
ce154a949261c622e9a4b259a1861b315c8a4cbb | 257 | py | Python | paypalhttp/__init__.py | cameronmoten/paypalhttp_python | 72609783230663b8e34c6f0384837db7b166c8f4 | [
"MIT"
] | 5 | 2020-04-25T01:07:23.000Z | 2021-10-21T21:39:00.000Z | paypalhttp/__init__.py | cameronmoten/paypalhttp_python | 72609783230663b8e34c6f0384837db7b166c8f4 | [
"MIT"
] | 3 | 2020-07-23T12:07:26.000Z | 2021-12-01T18:45:36.000Z | paypalhttp/__init__.py | cameronmoten/paypalhttp_python | 72609783230663b8e34c6f0384837db7b166c8f4 | [
"MIT"
] | 13 | 2020-03-03T02:35:50.000Z | 2022-03-17T18:12:49.000Z | from paypalhttp.environment import Environment
from paypalhttp.file import File
from paypalhttp.http_client import HttpClient
from paypalhttp.http_response import HttpResponse
from paypalhttp.http_error import HttpError
from paypalhttp.serializers import *
| 36.714286 | 49 | 0.879377 | 32 | 257 | 6.96875 | 0.40625 | 0.376682 | 0.242152 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093385 | 257 | 6 | 50 | 42.833333 | 0.957082 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ce23a59eb6ab7f23f79d4e76eebb6e0cfabb0fcc | 1,486 | py | Python | tests/public/calculate_sleep_amount_test.py | Tesshin/CS-Pound | 8e40f3a144aa6578e87d30aba0d43cb51756ecdf | [
"MIT"
] | 4 | 2019-01-23T00:57:53.000Z | 2021-12-22T14:59:39.000Z | tests/public/calculate_sleep_amount_test.py | Tesshin/CS-Pound | 8e40f3a144aa6578e87d30aba0d43cb51756ecdf | [
"MIT"
] | 11 | 2018-10-03T09:12:03.000Z | 2022-01-15T01:44:12.000Z | tests/public/calculate_sleep_amount_test.py | Tesshin/CS-Pound | 8e40f3a144aa6578e87d30aba0d43cb51756ecdf | [
"MIT"
] | 4 | 2018-10-03T08:45:03.000Z | 2020-07-21T09:21:43.000Z | from constants import Variables
from library import calculate_sleep_amount
class TestClass:
def test_on_cooldown_less_than_1_hour(self):
Variables.cooldown = True
assert calculate_sleep_amount(1) == (-59, 60, True)
assert calculate_sleep_amount(3599) == (3539, 60, True)
assert calc... | 39.105263 | 68 | 0.687079 | 191 | 1,486 | 5.026178 | 0.219895 | 0.204167 | 0.291667 | 0.352083 | 0.809375 | 0.722917 | 0.583333 | 0.583333 | 0.398958 | 0.235417 | 0 | 0.096303 | 0.217362 | 1,486 | 37 | 69 | 40.162162 | 0.729149 | 0 | 0 | 0.3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.433333 | 1 | 0.2 | false | 0 | 0.066667 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
ce25ad3fff6d22ac1681cb6ae9967544df9e427f | 32 | py | Python | hypernlp/nlp/data_process/eda/__init__.py | DataCanvasIO/HyperNLP | 3ae565c88b6fc63b664c8fb264dc89c47ff92623 | [
"Apache-2.0"
] | 3 | 2021-11-22T04:09:22.000Z | 2022-01-10T10:27:28.000Z | hypernlp/nlp/data_process/eda/__init__.py | DataCanvasIO/HyperNLP | 3ae565c88b6fc63b664c8fb264dc89c47ff92623 | [
"Apache-2.0"
] | null | null | null | hypernlp/nlp/data_process/eda/__init__.py | DataCanvasIO/HyperNLP | 3ae565c88b6fc63b664c8fb264dc89c47ff92623 | [
"Apache-2.0"
] | null | null | null | def eda_model():
return None | 16 | 16 | 0.6875 | 5 | 32 | 4.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.21875 | 32 | 2 | 17 | 16 | 0.84 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 6 |
cbef5755ca571f2eea563e5cdb8c61dd1d737fc1 | 302,726 | py | Python | QChemTool/Polarizable_atoms/Polarization_module_HeteroDimer.py | slamavl/QChemTool | b6b17adf6cfa8ac1db47acba93aab1ee49c1be47 | [
"MIT"
] | null | null | null | QChemTool/Polarizable_atoms/Polarization_module_HeteroDimer.py | slamavl/QChemTool | b6b17adf6cfa8ac1db47acba93aab1ee49c1be47 | [
"MIT"
] | 1 | 2018-01-03T12:08:41.000Z | 2018-01-03T12:08:41.000Z | QChemTool/Polarizable_atoms/Polarization_module_HeteroDimer.py | slamavl/QChemTool | b6b17adf6cfa8ac1db47acba93aab1ee49c1be47 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Tue Jan 31 14:33:56 2017
@author: Vladislav Sláma
"""
import numpy as np
from copy import deepcopy
from scipy.spatial.distance import pdist,squareform
import os
from ..QuantumChem.Classes.structure import Structure
from ..QuantumChem.calc import identify_molecule
fr... | 52.33852 | 326 | 0.607394 | 40,276 | 302,726 | 4.416451 | 0.027411 | 0.005015 | 0.003896 | 0.003778 | 0.870045 | 0.848986 | 0.824924 | 0.802881 | 0.782187 | 0.767407 | 0 | 0.030933 | 0.276825 | 302,726 | 5,784 | 327 | 52.33852 | 0.781573 | 0.506696 | 0 | 0.64111 | 0 | 0.002822 | 0.097259 | 0.023847 | 0 | 0 | 0 | 0.002939 | 0 | 1 | 0.015052 | false | 0 | 0.009407 | 0 | 0.039981 | 0.047037 | 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 |
0211ba964bfcfda6a3a91c1911c1918cb54f15f1 | 763 | py | Python | gprm/__init__.py | siwill22/GPlatesClassStruggle | 713a87ff4f054d3a493ec09e5f310aa3036d3bc5 | [
"MIT"
] | 7 | 2020-05-04T03:05:09.000Z | 2022-01-28T13:52:53.000Z | gprm/__init__.py | siwill22/GPlatesClassStruggle | 713a87ff4f054d3a493ec09e5f310aa3036d3bc5 | [
"MIT"
] | null | null | null | gprm/__init__.py | siwill22/GPlatesClassStruggle | 713a87ff4f054d3a493ec09e5f310aa3036d3bc5 | [
"MIT"
] | 3 | 2021-05-23T01:53:52.000Z | 2021-09-14T12:21:53.000Z | #import utils
#from .GPlatesReconstructionModel.gprm import utils
from .GPlatesReconstructionModel import ReconstructionModel
from .GPlatesReconstructionModel import ReconstructedPolygonSnapshot
from .GPlatesReconstructionModel import PlateTree
from .GPlatesReconstructionModel import GPlatesRaster
from .GPlatesReconstr... | 50.866667 | 68 | 0.908257 | 55 | 763 | 12.6 | 0.309091 | 0.562771 | 0.623377 | 0.118326 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070773 | 763 | 14 | 69 | 54.5 | 0.977433 | 0.081258 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
02208259341a6bd919959511e42bd473f447377d | 149 | py | Python | make_us_rich/pipelines/fetching/__init__.py | ChainYo/make-me-rich | ad3bbc23bef4840f80799e0fd4903767d9a57a72 | [
"Apache-2.0"
] | 11 | 2022-02-06T18:01:29.000Z | 2022-02-23T15:51:48.000Z | make_us_rich/pipelines/fetching/__init__.py | ChainYo/make-me-rich | ad3bbc23bef4840f80799e0fd4903767d9a57a72 | [
"Apache-2.0"
] | null | null | null | make_us_rich/pipelines/fetching/__init__.py | ChainYo/make-me-rich | ad3bbc23bef4840f80799e0fd4903767d9a57a72 | [
"Apache-2.0"
] | 1 | 2022-02-14T10:41:53.000Z | 2022-02-14T10:41:53.000Z | from .pipeline import create_pipeline
from .nodes import fetch_data_to_dataframe
__all__ = [
"create_pipeline",
"fetch_data_to_dataframe",
] | 21.285714 | 42 | 0.778523 | 19 | 149 | 5.473684 | 0.526316 | 0.269231 | 0.211538 | 0.384615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147651 | 149 | 7 | 43 | 21.285714 | 0.818898 | 0 | 0 | 0 | 0 | 0 | 0.253333 | 0.153333 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 |
026863faa67c919d45449c13c767272bc0bdde4f | 28,921 | py | Python | cmws/examples/stacking/render.py | tuananhle7/hmws | 175f77a2b386ce5a9598b61c982e053e7ecff8a2 | [
"MIT"
] | null | null | null | cmws/examples/stacking/render.py | tuananhle7/hmws | 175f77a2b386ce5a9598b61c982e053e7ecff8a2 | [
"MIT"
] | null | null | null | cmws/examples/stacking/render.py | tuananhle7/hmws | 175f77a2b386ce5a9598b61c982e053e7ecff8a2 | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
import torch.nn.functional as F
from cmws import util
class Square:
def __init__(self, name, color, size):
self.name = name
self.color = color
self.size = size
@property
def device(self):
return self.size.device
def __repr__(self):
... | 31.781319 | 153 | 0.649182 | 3,792 | 28,921 | 4.643724 | 0.063291 | 0.029814 | 0.035777 | 0.050088 | 0.813675 | 0.795446 | 0.768982 | 0.74638 | 0.729059 | 0.714123 | 0 | 0.01521 | 0.243007 | 28,921 | 909 | 154 | 31.816282 | 0.789111 | 0.271429 | 0 | 0.664557 | 0 | 0.004219 | 0.007553 | 0.006714 | 0 | 0 | 0 | 0 | 0.006329 | 1 | 0.063291 | false | 0 | 0.008439 | 0.012658 | 0.137131 | 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 |
65f4379a10ea774538684f28caff94390ec74965 | 104 | py | Python | rpas/tests.py | geoffreynyaga/ANGA-UTM | 8371a51ad27c85d2479bb34d8c4e02ea28465941 | [
"Apache-2.0"
] | 7 | 2020-01-18T16:53:41.000Z | 2021-12-21T07:02:43.000Z | rpas/tests.py | geoffreynyaga/ANGA-UTM | 8371a51ad27c85d2479bb34d8c4e02ea28465941 | [
"Apache-2.0"
] | 28 | 2020-01-06T18:36:54.000Z | 2022-02-10T10:03:55.000Z | rpas/tests.py | geoffreynyaga/ANGA-UTM | 8371a51ad27c85d2479bb34d8c4e02ea28465941 | [
"Apache-2.0"
] | 3 | 2020-01-18T16:53:54.000Z | 2020-10-26T11:21:41.000Z | from django.test import TestCase
# Create your tests here.
def test_a_plus_b():
assert 1 == 1
| 17.333333 | 33 | 0.682692 | 17 | 104 | 4 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025316 | 0.240385 | 104 | 5 | 34 | 20.8 | 0.835443 | 0.221154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.333333 | true | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 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 |
5a091a9bd9345bb779b53c04f7a3e2c1e7df9d93 | 377 | py | Python | python/testData/refactoring/pullup/properties/Class.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/refactoring/pullup/properties/Class.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/refactoring/pullup/properties/Class.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | from SuperClass import SuperClass
class AnyClass(SuperClass):
C = 1
def __init__(self):
super(AnyClass, self).__init__()
@property
def new_property(self):
return 1
@new_property.setter
def new_property(self, value):
pass
@new_property.deleter
def new_proper... | 14.5 | 40 | 0.612732 | 44 | 377 | 4.954545 | 0.431818 | 0.252294 | 0.192661 | 0.247706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007634 | 0.30504 | 377 | 25 | 41 | 15.08 | 0.824427 | 0 | 0 | 0.3125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3125 | false | 0.1875 | 0.0625 | 0.0625 | 0.5625 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 6 |
5a403728f96f58315c8f4f3eb45da15397484d96 | 24,669 | py | Python | scripts/dual_power_law_constrained.py | kevincovey/fit-rossby | d7041d093e4399088797e01d64d33195053631bc | [
"MIT"
] | null | null | null | scripts/dual_power_law_constrained.py | kevincovey/fit-rossby | d7041d093e4399088797e01d64d33195053631bc | [
"MIT"
] | null | null | null | scripts/dual_power_law_constrained.py | kevincovey/fit-rossby | d7041d093e4399088797e01d64d33195053631bc | [
"MIT"
] | null | null | null | # Originally written by Stephanie T. Douglas (2012-2014)
# Modified by Kevin Covey (2019)
# under the MIT License (see LICENSE.txt for full details)
import numpy as np
import emcee
import matplotlib.pyplot as plt
def quantile(x,quantiles):
""" Calculates quantiles - taken from DFM's triangle.py """
xsorted =... | 36.384956 | 143 | 0.645507 | 3,775 | 24,669 | 4.090861 | 0.100397 | 0.009195 | 0.026031 | 0.012627 | 0.873276 | 0.864081 | 0.857735 | 0.847504 | 0.833128 | 0.829761 | 0 | 0.047838 | 0.206859 | 24,669 | 677 | 144 | 36.4387 | 0.741439 | 0.479144 | 0 | 0.69378 | 0 | 0 | 0.062585 | 0.001961 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076555 | false | 0 | 0.014354 | 0 | 0.196172 | 0.076555 | 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 |
5a440f5e374be50e1a76de06f9f6d2dc745b5e7a | 4,079 | py | Python | polliwog/line/test_functions.py | algrs/polliwog | faa6531e8e2f7d0b52e928d64a4c1914199c4023 | [
"BSD-2-Clause"
] | null | null | null | polliwog/line/test_functions.py | algrs/polliwog | faa6531e8e2f7d0b52e928d64a4c1914199c4023 | [
"BSD-2-Clause"
] | null | null | null | polliwog/line/test_functions.py | algrs/polliwog | faa6531e8e2f7d0b52e928d64a4c1914199c4023 | [
"BSD-2-Clause"
] | null | null | null | import numpy as np
import vg
from .functions import project_to_line
def test_project_to_line():
p1 = np.array([5.0, 5.0, 4.0])
p2 = np.array([10.0, 10.0, 6.0])
along_line = p2 - p1
common_kwargs = dict(reference_points_of_lines=p1, vectors_along_lines=along_line)
np.testing.assert_array_almost_e... | 32.632 | 87 | 0.666585 | 598 | 4,079 | 4.192308 | 0.086957 | 0.061428 | 0.09653 | 0.095732 | 0.946949 | 0.945353 | 0.924212 | 0.924212 | 0.924212 | 0.893897 | 0 | 0.044884 | 0.218926 | 4,079 | 124 | 88 | 32.895161 | 0.741996 | 0 | 0 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10101 | 1 | 0.040404 | false | 0 | 0.030303 | 0 | 0.070707 | 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 |
5a4a914e7782ac523d8f9db863a54b5f8a4af7fc | 6,500 | py | Python | registry/application/handlers/service_handlers.py | vinthedark/snet-marketplace-service | 66ed9d093b00f09d3e28ef4d86c4e4c125037d06 | [
"MIT"
] | null | null | null | registry/application/handlers/service_handlers.py | vinthedark/snet-marketplace-service | 66ed9d093b00f09d3e28ef4d86c4e4c125037d06 | [
"MIT"
] | null | null | null | registry/application/handlers/service_handlers.py | vinthedark/snet-marketplace-service | 66ed9d093b00f09d3e28ef4d86c4e4c125037d06 | [
"MIT"
] | null | null | null | import json
from common.constant import StatusCode
from common.exception_handler import exception_handler
from common.exceptions import BadRequestException
from common.logger import get_logger
from common.utils import generate_lambda_response, handle_exception_with_slack_notification, validate_dict, \
validate_dic... | 47.101449 | 125 | 0.753385 | 756 | 6,500 | 6.145503 | 0.109788 | 0.102454 | 0.025183 | 0.036375 | 0.836634 | 0.828885 | 0.817262 | 0.805209 | 0.805209 | 0.79703 | 0 | 0 | 0.138154 | 6,500 | 137 | 126 | 47.445255 | 0.829347 | 0 | 0 | 0.680672 | 0 | 0 | 0.134923 | 0.003231 | 0 | 0 | 0 | 0 | 0 | 1 | 0.067227 | false | 0 | 0.07563 | 0 | 0.210084 | 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 |
5a800e64085648342c91064d728f42cbb69ec851 | 34 | py | Python | env/lib/python3.8/site-packages/plotly/graph_objs/layout/template/data/_bar.py | acrucetta/Chicago_COVI_WebApp | a37c9f492a20dcd625f8647067394617988de913 | [
"MIT",
"Unlicense"
] | 11,750 | 2015-10-12T07:03:39.000Z | 2022-03-31T20:43:15.000Z | env/lib/python3.8/site-packages/plotly/graph_objs/layout/template/data/_bar.py | acrucetta/Chicago_COVI_WebApp | a37c9f492a20dcd625f8647067394617988de913 | [
"MIT",
"Unlicense"
] | 2,951 | 2015-10-12T00:41:25.000Z | 2022-03-31T22:19:26.000Z | env/lib/python3.8/site-packages/plotly/graph_objs/layout/template/data/_bar.py | acrucetta/Chicago_COVI_WebApp | a37c9f492a20dcd625f8647067394617988de913 | [
"MIT",
"Unlicense"
] | 2,623 | 2015-10-15T14:40:27.000Z | 2022-03-28T16:05:50.000Z | from plotly.graph_objs import Bar
| 17 | 33 | 0.852941 | 6 | 34 | 4.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 34 | 1 | 34 | 34 | 0.933333 | 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 |
ce4b79e5ae5ad6d170b58e1a9070ebe19cacb1c4 | 112 | py | Python | app_name/views.py | hotbaby/django-app-skeleton | db965ee14dd377681e14a02a70c258b8c1cb73d8 | [
"MIT"
] | null | null | null | app_name/views.py | hotbaby/django-app-skeleton | db965ee14dd377681e14a02a70c258b8c1cb73d8 | [
"MIT"
] | 1 | 2019-02-12T09:21:19.000Z | 2019-02-12T09:21:19.000Z | app_name/views.py | hotbaby/django-app-skeleton | db965ee14dd377681e14a02a70c258b8c1cb73d8 | [
"MIT"
] | null | null | null | # encoding: utf8
from . import models
from . import filters
from . import exceptions
from . import serializers
| 16 | 25 | 0.767857 | 14 | 112 | 6.142857 | 0.571429 | 0.465116 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01087 | 0.178571 | 112 | 6 | 26 | 18.666667 | 0.923913 | 0.125 | 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 |
ce50714576cefbe2b5c2188eabeef0888f943e06 | 4,180 | py | Python | django_extended/utils/date/format_date_range_html.py | dalou/django-extended | a7ba952ea7089cfb319b4615ae098579c9ab14f9 | [
"BSD-3-Clause"
] | 1 | 2015-12-14T17:16:04.000Z | 2015-12-14T17:16:04.000Z | django_extended/utils/date/format_date_range_html.py | dalou/django-extended | a7ba952ea7089cfb319b4615ae098579c9ab14f9 | [
"BSD-3-Clause"
] | null | null | null | django_extended/utils/date/format_date_range_html.py | dalou/django-extended | a7ba952ea7089cfb319b4615ae098579c9ab14f9 | [
"BSD-3-Clause"
] | null | null | null | # encoding: utf-8
import datetime
from django.utils.safestring import mark_safe
def format_date_range_html(
start_date=None,
end_date=None,
start_hour=None,
end_hour=None,
divider='<br/>'):
if end_date and start_date:
if start_date.day == end_date.day and \
start_date.mon... | 39.065421 | 148 | 0.478947 | 504 | 4,180 | 3.779762 | 0.095238 | 0.099213 | 0.031496 | 0.089239 | 0.83832 | 0.834646 | 0.834646 | 0.829396 | 0.806299 | 0.804199 | 0 | 0.000393 | 0.391866 | 4,180 | 106 | 149 | 39.433962 | 0.749017 | 0.003589 | 0 | 0.479592 | 0 | 0 | 0.13668 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010204 | false | 0 | 0.020408 | 0 | 0.234694 | 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 |
ce7b024c3a4fe2d6e4f49c2f4f83d37a2fe4926b | 36 | py | Python | srfnef/corrections/new_scatter/__init__.py | twj2417/srf | 63365cfd75199d70eea2273214a4fa580a9fdf2a | [
"Apache-2.0"
] | null | null | null | srfnef/corrections/new_scatter/__init__.py | twj2417/srf | 63365cfd75199d70eea2273214a4fa580a9fdf2a | [
"Apache-2.0"
] | null | null | null | srfnef/corrections/new_scatter/__init__.py | twj2417/srf | 63365cfd75199d70eea2273214a4fa580a9fdf2a | [
"Apache-2.0"
] | null | null | null | from .scatter import ScatterCorrect
| 18 | 35 | 0.861111 | 4 | 36 | 7.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 36 | 1 | 36 | 36 | 0.96875 | 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 |
ceb31df1832ffedfcb127492db48f01015d8c27b | 94 | py | Python | planning_python/utils/helpers.py | daahuang/planning_python | 1b9ae0346df66ed8cf2cb80a54a92fd909a578fe | [
"BSD-3-Clause"
] | 12 | 2017-10-18T21:39:20.000Z | 2021-11-28T06:36:37.000Z | planning_python/utils/helpers.py | daahuang/planning_python | 1b9ae0346df66ed8cf2cb80a54a92fd909a578fe | [
"BSD-3-Clause"
] | null | null | null | planning_python/utils/helpers.py | daahuang/planning_python | 1b9ae0346df66ed8cf2cb80a54a92fd909a578fe | [
"BSD-3-Clause"
] | 6 | 2017-10-29T05:23:16.000Z | 2020-11-17T10:53:41.000Z | import numpy as np
def rgb2gray(rgb):
return np.dot(rgb[...,:3], [0.299, 0.587, 0.114]) | 18.8 | 53 | 0.595745 | 18 | 94 | 3.111111 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 0.180851 | 94 | 5 | 53 | 18.8 | 0.545455 | 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 | 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 |
ceb6bb0f66a3e6969deea1f6aa10921211766226 | 208 | py | Python | base/admin.py | omololevy/study-college | 5ce482b4f09314fd370509654337e95ec39c4612 | [
"MIT"
] | 1 | 2022-03-21T08:23:19.000Z | 2022-03-21T08:23:19.000Z | base/admin.py | omololevy/study-college | 5ce482b4f09314fd370509654337e95ec39c4612 | [
"MIT"
] | 1 | 2022-03-21T08:21:27.000Z | 2022-03-21T08:21:27.000Z | base/admin.py | omololevy/study-college | 5ce482b4f09314fd370509654337e95ec39c4612 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Cohort, Profile, Module, Discussion
admin.site.register(Profile)
admin.site.register(Cohort)
admin.site.register(Module)
admin.site.register(Discussion)
| 23.111111 | 55 | 0.817308 | 28 | 208 | 6.071429 | 0.428571 | 0.211765 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081731 | 208 | 8 | 56 | 26 | 0.890052 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
cebba6a2e505265209e84617816b66c6606824e8 | 25,325 | py | Python | patternMatching/algorithms.py | yaukwankiu/armor | 6c57df82fe3e7761f43f9fbfe4f3b21882c91436 | [
"CC0-1.0"
] | 1 | 2015-11-06T06:41:33.000Z | 2015-11-06T06:41:33.000Z | patternMatching/algorithms.py | yaukwankiu/armor | 6c57df82fe3e7761f43f9fbfe4f3b21882c91436 | [
"CC0-1.0"
] | null | null | null | patternMatching/algorithms.py | yaukwankiu/armor | 6c57df82fe3e7761f43f9fbfe4f3b21882c91436 | [
"CC0-1.0"
] | null | null | null | """
matching algorithms for pattern2.DataStreamSets
format:
def alg(obs, w, obsTime, maxHourDiff, **kwargs):
input:
obs - observation stream, a pattern.DBZstream object
w - wrf (model) stream, another pattern.DBZstream object
obsTime - time at which obs... | 46.725092 | 134 | 0.53307 | 2,679 | 25,325 | 5.016797 | 0.154162 | 0.007143 | 0.010714 | 0.010714 | 0.746354 | 0.738467 | 0.721057 | 0.701637 | 0.69628 | 0.687351 | 0 | 0.025222 | 0.347167 | 25,325 | 541 | 135 | 46.81146 | 0.787697 | 0.178124 | 0 | 0.79257 | 0 | 0 | 0.088198 | 0.014242 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.003096 | 0.01548 | null | null | 0.083591 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
0c6850850efc50809b6ea6c3afb4857144ba34cc | 97 | py | Python | Python/PythonCrashCourse2ndEdition/simple_messages.py | awakun/LearningPython | 578f9290c8065df37ade49abe4b0ab4e6b35a1bd | [
"MIT"
] | null | null | null | Python/PythonCrashCourse2ndEdition/simple_messages.py | awakun/LearningPython | 578f9290c8065df37ade49abe4b0ab4e6b35a1bd | [
"MIT"
] | null | null | null | Python/PythonCrashCourse2ndEdition/simple_messages.py | awakun/LearningPython | 578f9290c8065df37ade49abe4b0ab4e6b35a1bd | [
"MIT"
] | null | null | null | message = 'Take me to your leader.'
print(message)
message = 'ACK ACK ACK ACK ACK'
print(message) | 24.25 | 35 | 0.731959 | 16 | 97 | 4.4375 | 0.5 | 0.338028 | 0.380282 | 0.338028 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154639 | 97 | 4 | 36 | 24.25 | 0.865854 | 0 | 0 | 0.5 | 0 | 0 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
0b7aa4beeafad036f9afd2c3dd4d7c0a10e29b3c | 228 | py | Python | puckdb/exceptions.py | metahockey/aaront_puckdb | 915638aaff304321f918d19582d2d1fdc83192e6 | [
"Apache-2.0"
] | null | null | null | puckdb/exceptions.py | metahockey/aaront_puckdb | 915638aaff304321f918d19582d2d1fdc83192e6 | [
"Apache-2.0"
] | null | null | null | puckdb/exceptions.py | metahockey/aaront_puckdb | 915638aaff304321f918d19582d2d1fdc83192e6 | [
"Apache-2.0"
] | null | null | null | class FilterException(Exception):
def __init__(self, message=None):
self.message = message
def __str__(self):
return 'Invalid filter{message}'.format(message=': ' + self.message if self.message else '')
| 32.571429 | 100 | 0.675439 | 26 | 228 | 5.615385 | 0.576923 | 0.30137 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.197368 | 228 | 6 | 101 | 38 | 0.797814 | 0 | 0 | 0 | 0 | 0 | 0.109649 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
0b9949e80570fd417feb5fd31228c4b6d01358f8 | 432 | py | Python | pathvalidate/handler.py | thombashi/pathvalidate | 44807d66392d911e949056f9ccd3248746b0393f | [
"MIT"
] | 113 | 2016-06-14T06:38:28.000Z | 2022-03-29T15:15:19.000Z | pathvalidate/handler.py | thombashi/pathvalidate | 44807d66392d911e949056f9ccd3248746b0393f | [
"MIT"
] | 21 | 2016-06-14T03:55:29.000Z | 2022-03-21T17:35:50.000Z | pathvalidate/handler.py | thombashi/pathvalidate | 44807d66392d911e949056f9ccd3248746b0393f | [
"MIT"
] | 12 | 2016-06-14T06:38:32.000Z | 2021-09-01T09:48:54.000Z | """
.. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com>
"""
from datetime import datetime
from typing import Callable
from .error import ValidationError
Handler = Callable[[ValidationError], str]
def return_null_string(e: ValidationError) -> str:
return ""
def return_timestamp(e: ValidationErro... | 17.28 | 63 | 0.729167 | 50 | 432 | 6.22 | 0.44 | 0.231511 | 0.18328 | 0.160772 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155093 | 432 | 24 | 64 | 18 | 0.852055 | 0.145833 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.3 | 0.2 | 0.8 | 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 |
e7e8c934762b60eb0776c80585ce73028477bafc | 7,950 | py | Python | attackgraph/training.py | wyz2368/deepRL | b92c7dc9c6dbec5ff217162c4fcce35695eabcbb | [
"MIT"
] | null | null | null | attackgraph/training.py | wyz2368/deepRL | b92c7dc9c6dbec5ff217162c4fcce35695eabcbb | [
"MIT"
] | null | null | null | attackgraph/training.py | wyz2368/deepRL | b92c7dc9c6dbec5ff217162c4fcce35695eabcbb | [
"MIT"
] | null | null | null | from attackgraph import json_op as jp
from baselines.common import models
from baselines.deepq.deepq import learn_multi_nets, Learner
from baselines.common.tf_util import ALREADY_INITIALIZED
import os
# import copy
DIR_def = os.getcwd() + '/defender_strategies/'
DIR_att = os.getcwd() + '/attacker_strategies/'
def tra... | 39.949749 | 144 | 0.612201 | 991 | 7,950 | 4.619576 | 0.113017 | 0.026212 | 0.034076 | 0.030581 | 0.867628 | 0.848842 | 0.824814 | 0.762342 | 0.762342 | 0.75972 | 0 | 0.002883 | 0.258365 | 7,950 | 199 | 145 | 39.949749 | 0.773575 | 0.070943 | 0 | 0.688742 | 0 | 0 | 0.203932 | 0.039864 | 0.039735 | 0 | 0 | 0.005025 | 0 | 1 | 0.02649 | false | 0 | 0.033113 | 0 | 0.072848 | 0.05298 | 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 |
f0102a920ff1a58aee641748c8ce080081bbfd27 | 294 | pyde | Python | processing/chapter3/sketch_3_3_L3/sketch_3_3_L3.pyde | brickdonut/2019-fall-polytech-cs | b2830795f35e65ff90cf73e0746551c6efdd1f87 | [
"MIT"
] | null | null | null | processing/chapter3/sketch_3_3_L3/sketch_3_3_L3.pyde | brickdonut/2019-fall-polytech-cs | b2830795f35e65ff90cf73e0746551c6efdd1f87 | [
"MIT"
] | null | null | null | processing/chapter3/sketch_3_3_L3/sketch_3_3_L3.pyde | brickdonut/2019-fall-polytech-cs | b2830795f35e65ff90cf73e0746551c6efdd1f87 | [
"MIT"
] | null | null | null | def setup():
size(500,500)
noLoop()
def setup():
size(500, 500)
smooth()
background(255)
noLoop()
fill(50, 80)
stroke(100)
strokeWeight(3)
def draw():
ellipse(250,200,100,100)
ellipse(250-50,250,100,100)
ellipse(250+50,250,100,100)
ellipse(250,250+50,100,100)
| 14 | 29 | 0.632653 | 47 | 294 | 3.957447 | 0.404255 | 0.215054 | 0.209677 | 0.258065 | 0.505376 | 0.311828 | 0.311828 | 0.311828 | 0.311828 | 0.311828 | 0 | 0.322176 | 0.187075 | 294 | 20 | 30 | 14.7 | 0.456067 | 0 | 0 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | true | 0 | 0 | 0 | 0.1875 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
f03f832cd30b77fad02c711f3a04696320130d7e | 266 | py | Python | tests/drop_packets/fanout/fanout_base.py | shubav/sonic-mgmt | 0ff71b907a55489bb4ed7d17b1682380fd459bf2 | [
"Apache-2.0"
] | 132 | 2016-10-19T12:34:44.000Z | 2022-03-16T09:00:39.000Z | tests/drop_packets/fanout/fanout_base.py | shubav/sonic-mgmt | 0ff71b907a55489bb4ed7d17b1682380fd459bf2 | [
"Apache-2.0"
] | 3,152 | 2016-09-21T23:05:58.000Z | 2022-03-31T23:29:08.000Z | tests/drop_packets/fanout/fanout_base.py | shubav/sonic-mgmt | 0ff71b907a55489bb4ed7d17b1682380fd459bf2 | [
"Apache-2.0"
] | 563 | 2016-09-20T01:00:15.000Z | 2022-03-31T22:43:54.000Z | from abc import ABCMeta, abstractmethod
class BaseFanoutHandler(object):
__metaclass__ = ABCMeta
def __init__(self):
pass
@abstractmethod
def update_config(self):
pass
@abstractmethod
def restore_config(self):
pass
| 17.733333 | 39 | 0.669173 | 26 | 266 | 6.461538 | 0.615385 | 0.142857 | 0.261905 | 0.297619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.270677 | 266 | 14 | 40 | 19 | 0.865979 | 0 | 0 | 0.454545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0.272727 | 0.090909 | 0 | 0.545455 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 6 |
f07891bf831deea713dd1a49588e6b8419cfa9fa | 242 | py | Python | affpose/ARLAffPose/utils/pose/load_camera_pose.py | UW-Advanced-Robotics-Lab/densefusion | 8784af40a954421dab9c9648f2d6a739de4c706c | [
"MIT"
] | 1 | 2021-07-23T05:12:43.000Z | 2021-07-23T05:12:43.000Z | affpose/ARLAffPose/utils/pose/load_camera_pose.py | akeaveny/DenseFusion | 8784af40a954421dab9c9648f2d6a739de4c706c | [
"MIT"
] | null | null | null | affpose/ARLAffPose/utils/pose/load_camera_pose.py | akeaveny/DenseFusion | 8784af40a954421dab9c9648f2d6a739de4c706c | [
"MIT"
] | 1 | 2021-11-16T23:55:11.000Z | 2021-11-16T23:55:11.000Z |
import yaml
import numpy as np
#######################################
#######################################
def load_camera_pose(posegraph_addr):
return np.loadtxt(posegraph_addr, dtype=np.float32)[:, 1:] # we exclude the timestamp | 24.2 | 89 | 0.508264 | 25 | 242 | 4.76 | 0.8 | 0.218487 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013889 | 0.107438 | 242 | 10 | 89 | 24.2 | 0.537037 | 0.099174 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.5 | 0.25 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 6 |
b2e80f54b7e4db840337f6a0d3137a6954c436a1 | 3,264 | py | Python | tests/unit/worker/test_docker_api.py | mateuspontes/fastlane | a77505a344da990ad67cffd0ee0eb830489f7324 | [
"MIT"
] | 32 | 2019-02-19T01:37:57.000Z | 2022-03-19T22:12:23.000Z | tests/unit/worker/test_docker_api.py | mateuspontes/fastlane | a77505a344da990ad67cffd0ee0eb830489f7324 | [
"MIT"
] | 15 | 2019-02-18T17:51:57.000Z | 2020-03-20T16:27:38.000Z | tests/unit/worker/test_docker_api.py | mateuspontes/fastlane | a77505a344da990ad67cffd0ee0eb830489f7324 | [
"MIT"
] | 26 | 2019-02-14T20:00:11.000Z | 2020-01-24T18:12:57.000Z | # Standard Library
from json import dumps
# 3rd Party
from preggy import expect
# Fastlane
from fastlane.worker.docker.api import validate_hostname
def test_validate_hostname1():
expect(validate_hostname("example.com")).to_be_false()
def test_validate_hostname2():
expect(validate_hostname("example.com/"))... | 26.975207 | 73 | 0.625919 | 381 | 3,264 | 5.181102 | 0.16273 | 0.042553 | 0.064843 | 0.072948 | 0.890071 | 0.857649 | 0.845491 | 0.845491 | 0.845491 | 0.845491 | 0 | 0.030316 | 0.262255 | 3,264 | 120 | 74 | 27.2 | 0.789452 | 0.159314 | 0 | 0.649351 | 0 | 0 | 0.130692 | 0.077009 | 0 | 0 | 0 | 0 | 0 | 1 | 0.155844 | false | 0 | 0.038961 | 0 | 0.194805 | 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 |
65091020a3512ae832d4b196ce83a514d82ecdd4 | 5,626 | py | Python | tests/bam_fixtures.py | holtgrewe/pyhtslib | ad3f313d5aa75a313ab092cfc4331bd57a91d959 | [
"BSD-3-Clause"
] | null | null | null | tests/bam_fixtures.py | holtgrewe/pyhtslib | ad3f313d5aa75a313ab092cfc4331bd57a91d959 | [
"BSD-3-Clause"
] | null | null | null | tests/bam_fixtures.py | holtgrewe/pyhtslib | ad3f313d5aa75a313ab092cfc4331bd57a91d959 | [
"BSD-3-Clause"
] | 1 | 2020-09-01T22:27:16.000Z | 2020-09-01T22:27:16.000Z | #!/usr/bin/env python
"""Fixture files for the pyhtslib.bam tests"""
import os
import py
import pytest
import pyhtslib.bam_internal as bam_internal
import pyhtslib.hts_internal as hts_internal
__author__ = 'Manuel Holtgrewe <manuel.holtgrewe@bihealth.de>'
# ----------------------------------------------------------... | 28.271357 | 77 | 0.673658 | 819 | 5,626 | 4.326007 | 0.072039 | 0.062094 | 0.086367 | 0.100762 | 0.917584 | 0.91081 | 0.767993 | 0.729608 | 0.723963 | 0.711826 | 0 | 0.000855 | 0.16797 | 5,626 | 198 | 78 | 28.414141 | 0.756035 | 0.169214 | 0 | 0.626761 | 0 | 0 | 0.126522 | 0.016087 | 0 | 0 | 0 | 0 | 0 | 1 | 0.119718 | false | 0 | 0.035211 | 0 | 0.15493 | 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 |
65233b4c67cf933bda7ee7abb25c6d0fc82af331 | 48 | py | Python | testsuite/modulegraph-dir/renamed_b.py | xoviat/modulegraph2 | 766d00bdb40e5b2fe206b53a87b1bce3f9dc9c2a | [
"MIT"
] | 9 | 2020-03-22T14:48:01.000Z | 2021-05-30T12:18:12.000Z | testsuite/modulegraph-dir/renamed_b.py | xoviat/modulegraph2 | 766d00bdb40e5b2fe206b53a87b1bce3f9dc9c2a | [
"MIT"
] | 15 | 2020-01-06T10:02:32.000Z | 2021-05-28T12:22:44.000Z | testsuite/modulegraph-dir/renamed_b.py | ronaldoussoren/modulegraph2 | b6ab1766b0098651b51083235ff8a18a5639128b | [
"MIT"
] | 4 | 2020-05-10T18:51:41.000Z | 2021-04-07T14:03:12.000Z | import sys as c
from package import submod as d
| 16 | 31 | 0.791667 | 10 | 48 | 3.8 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.208333 | 48 | 2 | 32 | 24 | 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 |
65494a89d5fd46a719792ccc35be36b97a2c4076 | 1,050 | py | Python | varnish/datadog_checks/varnish/config_models/defaults.py | gaffneyd4/integrations-core | 4c7725c9f1be4985381aad9740e7186f16a87976 | [
"BSD-3-Clause"
] | null | null | null | varnish/datadog_checks/varnish/config_models/defaults.py | gaffneyd4/integrations-core | 4c7725c9f1be4985381aad9740e7186f16a87976 | [
"BSD-3-Clause"
] | null | null | null | varnish/datadog_checks/varnish/config_models/defaults.py | gaffneyd4/integrations-core | 4c7725c9f1be4985381aad9740e7186f16a87976 | [
"BSD-3-Clause"
] | null | null | null | # (C) Datadog, Inc. 2021-present
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)
from datadog_checks.base.utils.models.fields import get_default_field_value
def shared_service(field, value):
return get_default_field_value(field, value)
def instance_daemon_host(field, value):
... | 21.428571 | 75 | 0.777143 | 146 | 1,050 | 5.315068 | 0.369863 | 0.309278 | 0.226804 | 0.180412 | 0.444588 | 0.444588 | 0.444588 | 0.444588 | 0.444588 | 0.385309 | 0 | 0.012222 | 0.142857 | 1,050 | 48 | 76 | 21.875 | 0.85 | 0.102857 | 0 | 0.26087 | 0 | 0 | 0.029851 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.478261 | false | 0 | 0.043478 | 0.478261 | 1 | 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 |
3308cf3b0db548074d1e2bbb40d6eda871756e34 | 10,401 | py | Python | visulization/weather_piechart.py | Jonas2019/car-accident-analysis | 1d900beae0c2428c0c85eec44887012fbc2ab988 | [
"MIT"
] | null | null | null | visulization/weather_piechart.py | Jonas2019/car-accident-analysis | 1d900beae0c2428c0c85eec44887012fbc2ab988 | [
"MIT"
] | null | null | null | visulization/weather_piechart.py | Jonas2019/car-accident-analysis | 1d900beae0c2428c0c85eec44887012fbc2ab988 | [
"MIT"
] | null | null | null | from pymongo import MongoClient
import plotly as py
import plotly.graph_objs as go
import pandas as pd
pyplt = py.offline.plot
from plotly.subplots import make_subplots
client = MongoClient("mongodb+srv://dbAdmin:cmpt732@cluster732.jfbfw.mongodb.net")
db = client.CMPT732
df_weather_condition=pd.DataFrame(list(db['Wea... | 81.257813 | 213 | 0.716181 | 1,415 | 10,401 | 4.89682 | 0.077032 | 0.189638 | 0.189638 | 0.103911 | 0.790879 | 0.746717 | 0.746717 | 0.746717 | 0.722471 | 0.722471 | 0 | 0.020942 | 0.058841 | 10,401 | 127 | 214 | 81.897638 | 0.686893 | 0.032593 | 0 | 0.083333 | 0 | 0 | 0.253381 | 0.005768 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052083 | 0 | 0.052083 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 0 | 0 | 0 | 6 |
333243522f96d41b444dd7f661b36537aa050102 | 84 | py | Python | src/nna/exp/__init__.py | EnisBerk/speech_audio_understanding | 2b1ba15a67bb48de7b949a6e5e0205dc5c3e24bd | [
"MIT"
] | 2 | 2019-12-05T22:27:54.000Z | 2020-04-05T21:24:50.000Z | src/nna/exp/__init__.py | EnisBerk/speech_audio_understanding | 2b1ba15a67bb48de7b949a6e5e0205dc5c3e24bd | [
"MIT"
] | 21 | 2020-01-28T22:53:24.000Z | 2022-02-10T02:50:11.000Z | src/nna/exp/__init__.py | speechLabBcCuny/nnaAudiosetClassification | ed61303609a069aac1887ca98116521e09cbd2ee | [
"MIT"
] | null | null | null | # import nna.exp.augmentations
# import nna.exp.runutils
# import nna.exp.modelArchs | 28 | 30 | 0.797619 | 12 | 84 | 5.583333 | 0.5 | 0.402985 | 0.537313 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095238 | 84 | 3 | 31 | 28 | 0.881579 | 0.928571 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
336491240f5779b06deb0a5598deb2cdbee8410d | 20,628 | py | Python | postgres_backend/data/tests/test_models.py | scripted-adventurer/Custom-Fantasy-Football | 334419d46d2142ceec7630d4582bf61e06a4de1a | [
"Unlicense"
] | 1 | 2020-09-12T04:25:19.000Z | 2020-09-12T04:25:19.000Z | postgres_backend/data/tests/test_models.py | scripted-adventurer/Custom-Fantasy-Football | 334419d46d2142ceec7630d4582bf61e06a4de1a | [
"Unlicense"
] | null | null | null | postgres_backend/data/tests/test_models.py | scripted-adventurer/Custom-Fantasy-Football | 334419d46d2142ceec7630d4582bf61e06a4de1a | [
"Unlicense"
] | null | null | null | # -*- coding: utf-8 -*-
import datetime
from freezegun import freeze_time
import os
import pytz
from django.test import TestCase
import data.models as models
from .setup import TestData
from common.current_week import get_current_week
from common.hashing import generate_hash
class ModelsTest(TestCase):
# automatic... | 50.558824 | 104 | 0.688142 | 2,770 | 20,628 | 5.002166 | 0.079061 | 0.069861 | 0.041426 | 0.024899 | 0.837038 | 0.813727 | 0.763063 | 0.709945 | 0.641527 | 0.625433 | 0 | 0.097975 | 0.145482 | 20,628 | 408 | 105 | 50.558824 | 0.688092 | 0.039122 | 0 | 0.492997 | 0 | 0 | 0.230136 | 0.104157 | 0 | 0 | 0 | 0 | 0.310924 | 1 | 0.05042 | false | 0.072829 | 0.02521 | 0 | 0.081232 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 6 |
68a14d7fa3e81bbd515e23671b5ee3bd4e88ef9d | 1,892 | py | Python | sorting/quick_sort.py | nomadkitty/cs_unit_assessment_prep | 4361be48636f583b1fafe33f2432a195f29a4f95 | [
"MIT"
] | null | null | null | sorting/quick_sort.py | nomadkitty/cs_unit_assessment_prep | 4361be48636f583b1fafe33f2432a195f29a4f95 | [
"MIT"
] | null | null | null | sorting/quick_sort.py | nomadkitty/cs_unit_assessment_prep | 4361be48636f583b1fafe33f2432a195f29a4f95 | [
"MIT"
] | null | null | null | # What kind of input will we get?
# We expect a list
def quicksort(data):
# check if data has 1 or 0 elements
# (base case) a side only contains a single element
if len(data) <= 1:
return data
# Partition the data
# Start by choosing a pivot (choose the first item in the list)
pivot = ... | 28.666667 | 69 | 0.589323 | 278 | 1,892 | 4.010791 | 0.280576 | 0.017937 | 0.0287 | 0.026906 | 0.898655 | 0.898655 | 0.898655 | 0.839462 | 0.839462 | 0.762332 | 0 | 0.021228 | 0.302854 | 1,892 | 65 | 70 | 29.107692 | 0.824109 | 0.734144 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.230769 | 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 |
68ab9a85fc8fba1cd0584d3b46b3327e0c54ff6f | 5,030 | py | Python | tests/test_cli.py | Red-Lex/tpkutils | 5f3694451a1759548af579b689f478cefc633252 | [
"BSD-3-Clause"
] | 85 | 2016-09-21T19:29:06.000Z | 2022-03-29T10:31:33.000Z | tests/test_cli.py | Red-Lex/tpkutils | 5f3694451a1759548af579b689f478cefc633252 | [
"BSD-3-Clause"
] | 28 | 2016-09-05T23:55:16.000Z | 2022-01-17T11:21:23.000Z | tests/test_cli.py | Red-Lex/tpkutils | 5f3694451a1759548af579b689f478cefc633252 | [
"BSD-3-Clause"
] | 18 | 2018-08-30T21:27:10.000Z | 2022-03-17T13:13:47.000Z | import os
import sqlite3
import pytest
from click.testing import CliRunner
from tpkutils.cli import cli
from pymbtiles import MBtiles
@pytest.fixture(scope="function")
def runner():
return CliRunner()
def test_export_mbtiles(runner, tmpdir):
tpk = "tests/data/states_filled.tpk"
mbtiles = str(tmpdir.joi... | 31.835443 | 86 | 0.664811 | 711 | 5,030 | 4.606188 | 0.136428 | 0.043969 | 0.06229 | 0.089771 | 0.812824 | 0.798779 | 0.779847 | 0.749924 | 0.712672 | 0.694962 | 0 | 0.021437 | 0.183897 | 5,030 | 157 | 87 | 32.038217 | 0.77637 | 0.036183 | 0 | 0.552381 | 0 | 0 | 0.188921 | 0.066763 | 0 | 0 | 0 | 0 | 0.352381 | 1 | 0.104762 | false | 0 | 0.057143 | 0.009524 | 0.171429 | 0.009524 | 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 |
d7ad80ed2e6ae498cd702997c567607e6410170e | 126 | py | Python | app/admin/__init__.py | cmumford/asset-tracker | 8356870116478f947ea0c3231ac368320428709a | [
"MIT"
] | null | null | null | app/admin/__init__.py | cmumford/asset-tracker | 8356870116478f947ea0c3231ac368320428709a | [
"MIT"
] | null | null | null | app/admin/__init__.py | cmumford/asset-tracker | 8356870116478f947ea0c3231ac368320428709a | [
"MIT"
] | null | null | null | from flask import Blueprint
admin_blueprint = Blueprint('admin', __name__, template_folder='templates')
from . import routes
| 25.2 | 75 | 0.801587 | 15 | 126 | 6.333333 | 0.666667 | 0.294737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 126 | 4 | 76 | 31.5 | 0.848214 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0.666667 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 6 |
d7b9cfba72c41cc3f7d365caab097660cd376aec | 19 | py | Python | flow_next/models/__init__.py | chenwenxiao/DOI | 14bdedd0b1b886efe77737cfb62695f03ee17c58 | [
"MIT"
] | 1 | 2021-08-13T22:14:10.000Z | 2021-08-13T22:14:10.000Z | flow_next/models/__init__.py | chenwenxiao/DOI | 14bdedd0b1b886efe77737cfb62695f03ee17c58 | [
"MIT"
] | null | null | null | flow_next/models/__init__.py | chenwenxiao/DOI | 14bdedd0b1b886efe77737cfb62695f03ee17c58 | [
"MIT"
] | null | null | null | from . import glow
| 9.5 | 18 | 0.736842 | 3 | 19 | 4.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210526 | 19 | 1 | 19 | 19 | 0.933333 | 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 |
0bdadefd8b5366911f1422d6e9f14e9e8ddec257 | 2,396 | py | Python | model2/models/__init__.py | alibell/DMLI_Gleason_Score_Challenge | 53d3f60d884088a25bd2658fca4c8928c2828c49 | [
"MIT"
] | null | null | null | model2/models/__init__.py | alibell/DMLI_Gleason_Score_Challenge | 53d3f60d884088a25bd2658fca4c8928c2828c49 | [
"MIT"
] | null | null | null | model2/models/__init__.py | alibell/DMLI_Gleason_Score_Challenge | 53d3f60d884088a25bd2658fca4c8928c2828c49 | [
"MIT"
] | null | null | null | from torchvision.models import efficientnet_b0
from torch import nn, optim
from torch.utils.data import Dataset, DataLoader
import pandas as pd
import numpy as np
import openslide
import hashlib
import random
import torch
import os
import pickle
from torchvision import transforms
from torch import nn, optim
from torch.... | 21.017544 | 62 | 0.679466 | 323 | 2,396 | 4.879257 | 0.247678 | 0.035533 | 0.025381 | 0.058376 | 0.779188 | 0.779188 | 0.779188 | 0.739848 | 0.739848 | 0.739848 | 0 | 0.005302 | 0.212855 | 2,396 | 114 | 63 | 21.017544 | 0.830329 | 0 | 0 | 0.725 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.4 | 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 |
0be9eea3fb4468b68f455e905decfb437ef7b071 | 35 | py | Python | authz/controller/__init__.py | nimatbt/Auth-Microservice | 449fd7c3210822d6c59940f817c978fd1715a876 | [
"Apache-2.0"
] | null | null | null | authz/controller/__init__.py | nimatbt/Auth-Microservice | 449fd7c3210822d6c59940f817c978fd1715a876 | [
"Apache-2.0"
] | null | null | null | authz/controller/__init__.py | nimatbt/Auth-Microservice | 449fd7c3210822d6c59940f817c978fd1715a876 | [
"Apache-2.0"
] | null | null | null | from authz.controller import apiv1
| 17.5 | 34 | 0.857143 | 5 | 35 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032258 | 0.114286 | 35 | 1 | 35 | 35 | 0.935484 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
0bf22fa01a81ec04ca96eead71fe3e518f54e99b | 21,050 | py | Python | test-http/src/test/org_user_tests/org_as_org_admin.py | wizedkyle/cve-services | 3e63f2d0f3328d542bc39727300a91bd3acecfef | [
"CC0-1.0"
] | 9 | 2019-05-22T17:28:38.000Z | 2019-08-22T15:55:07.000Z | test-http/src/test/org_user_tests/org_as_org_admin.py | wizedkyle/cve-services | 3e63f2d0f3328d542bc39727300a91bd3acecfef | [
"CC0-1.0"
] | 2 | 2019-08-22T04:18:46.000Z | 2019-09-09T10:45:29.000Z | test-http/src/test/org_user_tests/org_as_org_admin.py | wizedkyle/cve-services | 3e63f2d0f3328d542bc39727300a91bd3acecfef | [
"CC0-1.0"
] | 2 | 2019-07-09T01:57:24.000Z | 2019-08-14T04:23:04.000Z | # Tests in this file use an Org admin user provided by a Pytest fixture. The
# tests here should be a subset of the secretariat tests, since the CNA of last
# resort should always be able to perform any root CNA functionality in
# addition to functionality reserved for the CNA of last resort.
import json
import request... | 41.518738 | 165 | 0.694394 | 3,100 | 21,050 | 4.425806 | 0.059032 | 0.08688 | 0.114796 | 0.072012 | 0.888848 | 0.862609 | 0.840452 | 0.828717 | 0.803061 | 0.794825 | 0 | 0.012433 | 0.17848 | 21,050 | 506 | 166 | 41.600791 | 0.780952 | 0.287363 | 0 | 0.673469 | 0 | 0.005831 | 0.218337 | 0.153647 | 0 | 0 | 0 | 0 | 0.195335 | 1 | 0.090379 | false | 0 | 0.017493 | 0 | 0.107872 | 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 |
04225a4e35825be5624b09a7800199cc2339ca2d | 34 | py | Python | attack_lookup/__init__.py | curated-intel/attack-lookup | 301a384abc58ea931930dba492b90be871218b92 | [
"MIT"
] | 20 | 2021-11-25T20:16:30.000Z | 2022-03-19T22:44:58.000Z | attack_lookup/__init__.py | curated-intel/attack-lookup | 301a384abc58ea931930dba492b90be871218b92 | [
"MIT"
] | null | null | null | attack_lookup/__init__.py | curated-intel/attack-lookup | 301a384abc58ea931930dba492b90be871218b92 | [
"MIT"
] | null | null | null | from .mapping import AttackMapping | 34 | 34 | 0.882353 | 4 | 34 | 7.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088235 | 34 | 1 | 34 | 34 | 0.967742 | 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 |
043066db8fa6a05c0dd14189ceee4dcbd59fc7b3 | 191 | py | Python | src/assignments/main_assignment2.py | acc-cosc-1336/cosc-1336-spring-2018-BluishSilver-1 | cc4f066fc5d3c88007bc9e3bf0739f1384388086 | [
"MIT"
] | null | null | null | src/assignments/main_assignment2.py | acc-cosc-1336/cosc-1336-spring-2018-BluishSilver-1 | cc4f066fc5d3c88007bc9e3bf0739f1384388086 | [
"MIT"
] | null | null | null | src/assignments/main_assignment2.py | acc-cosc-1336/cosc-1336-spring-2018-BluishSilver-1 | cc4f066fc5d3c88007bc9e3bf0739f1384388086 | [
"MIT"
] | null | null | null | from assignment2 import faculty_evaluation_result
'''Write code to call the faculty_evaluation_result function with data of your choice'''
print(faculty_evaluation_result(5,10,15,20,25,30))
| 38.2 | 88 | 0.827225 | 30 | 191 | 5.066667 | 0.8 | 0.335526 | 0.453947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069364 | 0.094241 | 191 | 4 | 89 | 47.75 | 0.809249 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0.5 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 6 |
044ed63ad861c0d6477b762cb463573ed3f242ca | 1,754 | py | Python | tests/test_config.py | tsudd/docker-python-test | 1c866e475ae9c9ccb0c3f6d823609fa95ebe5adb | [
"MIT"
] | 1 | 2021-04-24T12:29:57.000Z | 2021-04-24T12:29:57.000Z | tests/test_config.py | tsudd/docker-python-test | 1c866e475ae9c9ccb0c3f6d823609fa95ebe5adb | [
"MIT"
] | null | null | null | tests/test_config.py | tsudd/docker-python-test | 1c866e475ae9c9ccb0c3f6d823609fa95ebe5adb | [
"MIT"
] | 1 | 2021-05-14T14:02:52.000Z | 2021-05-14T14:02:52.000Z | DICT_RESULT = "{\'sosediOptions\': {\'marke\\\\\":tName\': \'Sosedi\', \'goodsURL\': \'https://sosedi.by/sales/\'," \
" \'goodFields\': {\'pri ce \': True, \'priceBack\': \'priceBack\', \'sale\': " \
"[22, 5.7, \'nice\', None]}}, \'greenOptions\': {\'ff\': 22.8, \'goodsURL\': " \
... | 33.09434 | 117 | 0.474344 | 189 | 1,754 | 4.343915 | 0.433862 | 0.063337 | 0.029233 | 0.070646 | 0.791717 | 0.791717 | 0.791717 | 0.791717 | 0.791717 | 0.791717 | 0 | 0.030234 | 0.245724 | 1,754 | 52 | 118 | 33.730769 | 0.590325 | 0 | 0 | 0 | 0 | 0 | 0.641391 | 0.038198 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068182 | false | 0 | 0 | 0 | 0.136364 | 0.068182 | 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 |
f09646606337a26ae61fdac6d82a65fd88ea3ada | 1,920 | py | Python | tests/fixtures/test_abstract/content_02_expected.py | elifesciences/elife-tools | ee345bf0e6703ef0f7e718355e85730abbdfd117 | [
"MIT"
] | 9 | 2015-04-16T08:13:31.000Z | 2020-05-18T14:03:06.000Z | tests/fixtures/test_abstract/content_02_expected.py | elifesciences/elife-tools | ee345bf0e6703ef0f7e718355e85730abbdfd117 | [
"MIT"
] | 310 | 2015-02-11T00:30:09.000Z | 2021-07-14T23:58:50.000Z | tests/fixtures/test_abstract/content_02_expected.py | elifesciences/elife-tools | ee345bf0e6703ef0f7e718355e85730abbdfd117 | [
"MIT"
] | 9 | 2015-02-04T01:21:28.000Z | 2021-06-15T12:50:47.000Z | from collections import OrderedDict
expected = u"To estimate the proportion of rotavirus gastroenteritis (RVGE) among children aged less than 5\u2005years who had been diagnosed with acute gastroenteritis (AGE) and admitted to hospitals and emergency rooms (ERs). The seasonal distribution of RVGE and most prevalent ro... | 480 | 1,882 | 0.808333 | 306 | 1,920 | 5.071895 | 0.539216 | 0.015464 | 0.028995 | 0.025773 | 0.043814 | 0.043814 | 0.043814 | 0 | 0 | 0 | 0 | 0.062006 | 0.143229 | 1,920 | 3 | 1,883 | 640 | 0.881459 | 0 | 0 | 0 | 0 | 0.5 | 0.972917 | 0.036458 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
f0b39f6a7bde2e1c109819e047cfab68df60ba6a | 33 | py | Python | candex/__init__.py | wknoben/candex | 0f73a2075a28d75dcce50fa8ee3d6890776f4223 | [
"Apache-2.0"
] | 2 | 2020-06-16T16:42:17.000Z | 2021-01-22T10:19:35.000Z | candex/__init__.py | goosefall/candex | b7efc001aa00176f76c3b7735d06fa43fed7072b | [
"Apache-2.0"
] | null | null | null | candex/__init__.py | goosefall/candex | b7efc001aa00176f76c3b7735d06fa43fed7072b | [
"Apache-2.0"
] | 1 | 2021-04-12T05:15:10.000Z | 2021-04-12T05:15:10.000Z | from .functions import lat_lon_2D | 33 | 33 | 0.878788 | 6 | 33 | 4.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033333 | 0.090909 | 33 | 1 | 33 | 33 | 0.866667 | 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 |
f0d24db0264558a5af7231c3cba51dc3e415a75f | 9,270 | py | Python | tests/test_rules.py | mweltin/sticks | 84f6f82bece0ac8b47824545ebdbf4c1e52d193c | [
"MIT"
] | null | null | null | tests/test_rules.py | mweltin/sticks | 84f6f82bece0ac8b47824545ebdbf4c1e52d193c | [
"MIT"
] | null | null | null | tests/test_rules.py | mweltin/sticks | 84f6f82bece0ac8b47824545ebdbf4c1e52d193c | [
"MIT"
] | null | null | null | import rules.rules as rules
import environment.env as env
import unittest
class RulesTestCase(unittest.TestCase):
def test_has_winner_opponent_wins(self):
value = [[0, 0], [0, 1]]
act = rules.has_winner(value)
self.assertEqual(env.Players.opponent, act)
def test_has_winner_when_agent... | 42.328767 | 118 | 0.67411 | 1,305 | 9,270 | 4.413793 | 0.073563 | 0.110764 | 0.162326 | 0.099306 | 0.877431 | 0.864931 | 0.844965 | 0.825868 | 0.813889 | 0.77934 | 0 | 0.02803 | 0.214887 | 9,270 | 218 | 119 | 42.522936 | 0.763397 | 0 | 0 | 0.607735 | 0 | 0 | 0.000863 | 0 | 0 | 0 | 0 | 0 | 0.19337 | 1 | 0.132597 | false | 0 | 0.016575 | 0 | 0.154696 | 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 |
f0e4411dfe73f22993a6e64393101095d5514d94 | 190 | py | Python | jupyter-lab-serverless/config.py | u2takey/jupyter-lab-serverless | e43b3e64afb5643fb72d901b395d72add3a7be2f | [
"Apache-2.0"
] | 6 | 2020-03-13T23:58:31.000Z | 2021-08-29T07:33:29.000Z | jupyter-lab-serverless/config.py | u2takey/jupyter-lab-serverless | e43b3e64afb5643fb72d901b395d72add3a7be2f | [
"Apache-2.0"
] | 3 | 2021-08-05T03:07:04.000Z | 2022-03-25T21:34:03.000Z | jupyter-lab-serverless/config.py | u2takey/jupyter-lab-serverless | e43b3e64afb5643fb72d901b395d72add3a7be2f | [
"Apache-2.0"
] | 1 | 2020-04-06T16:30:28.000Z | 2020-04-06T16:30:28.000Z | from traitlets.config import Configurable
class LatexConfig(Configurable):
"""
A Configurable that declares the configuration options
for the FunctionHandler.
"""
pass
| 19 | 58 | 0.726316 | 19 | 190 | 7.263158 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.215789 | 190 | 9 | 59 | 21.111111 | 0.926175 | 0.415789 | 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 |
f0fe40fb3c6ff17e19d1a5d5c98983c0b83ba8d7 | 34 | py | Python | test/login.py | MeiBianChuiDi/gz02 | 5c839a85f1409c0abdd9542c4f4d1c20f66a1a28 | [
"MIT"
] | null | null | null | test/login.py | MeiBianChuiDi/gz02 | 5c839a85f1409c0abdd9542c4f4d1c20f66a1a28 | [
"MIT"
] | null | null | null | test/login.py | MeiBianChuiDi/gz02 | 5c839a85f1409c0abdd9542c4f4d1c20f66a1a28 | [
"MIT"
] | null | null | null | num =1
num1=10
num2=20
num3=30
| 4.25 | 7 | 0.647059 | 8 | 34 | 2.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.384615 | 0.235294 | 34 | 7 | 8 | 4.857143 | 0.461538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
9bd63c4830840b56cb87afbd7ddb5ceec428af67 | 15,397 | py | Python | tests/test_taskpane.py | pyro-team/bkt-toolbox | bbccba142a81ca0a46056f2bcda75899979158a5 | [
"MIT"
] | 12 | 2019-05-31T02:57:26.000Z | 2022-03-26T09:40:50.000Z | tests/test_taskpane.py | mrflory/bkt-toolbox | bbccba142a81ca0a46056f2bcda75899979158a5 | [
"MIT"
] | 27 | 2021-11-27T16:33:19.000Z | 2022-03-27T17:47:26.000Z | tests/test_taskpane.py | pyro-team/bkt-toolbox | bbccba142a81ca0a46056f2bcda75899979158a5 | [
"MIT"
] | 3 | 2019-06-12T10:59:20.000Z | 2020-04-21T15:13:50.000Z | # -*- coding: utf-8 -*-
from __future__ import absolute_import
import unittest
import bkt
XMLNS = ' xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"'
XMLNS_FR = ' xmlns="urn:fluent-ribbon"'
class TaskpaneBaseObjectTest(unittest.TestCase):
def test_XamlPropertyElement(self):
... | 60.144531 | 507 | 0.68942 | 1,815 | 15,397 | 5.7427 | 0.088705 | 0.083373 | 0.074259 | 0.086635 | 0.875468 | 0.843807 | 0.819438 | 0.794013 | 0.767821 | 0.716109 | 0 | 0.00157 | 0.172826 | 15,397 | 255 | 508 | 60.380392 | 0.816818 | 0.11827 | 0 | 0.378788 | 0 | 0.090909 | 0.281989 | 0.117465 | 0 | 0 | 0 | 0 | 0.318182 | 1 | 0.090909 | false | 0 | 0.022727 | 0 | 0.121212 | 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 |
50127204a0103d3932d88899f06339333fdbd9a7 | 61 | py | Python | ch1/Ex_1.3.4.1/task06.py | jiayushe/cpbook-code | c3fb85a1acc5f31e15879741e4c826684243fddf | [
"UPL-1.0"
] | 1,441 | 2018-12-03T23:46:17.000Z | 2022-03-29T06:36:43.000Z | ch1/Ex_1.3.4.1/task06.py | jiayushe/cpbook-code | c3fb85a1acc5f31e15879741e4c826684243fddf | [
"UPL-1.0"
] | 53 | 2018-12-11T13:50:35.000Z | 2022-03-20T04:30:39.000Z | ch1/Ex_1.3.4.1/task06.py | jiayushe/cpbook-code | c3fb85a1acc5f31e15879741e4c826684243fddf | [
"UPL-1.0"
] | 420 | 2018-12-04T11:22:08.000Z | 2022-03-27T15:25:33.000Z | from bisect import bisect_left
print(v == bisect_left(L, v))
| 20.333333 | 30 | 0.754098 | 11 | 61 | 4 | 0.636364 | 0.454545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131148 | 61 | 2 | 31 | 30.5 | 0.830189 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0.5 | 1 | 0 | 0 | null | 1 | 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 |
50362b903c5cb464a79f3ff5a05c636e9dd2277c | 131 | py | Python | src/masonite_permission/providers/__init__.py | yubarajshrestha/masonite-permission | 5807b80a50b94526efbc03f0933d3960087a7e54 | [
"MIT"
] | 4 | 2022-03-15T13:52:37.000Z | 2022-03-17T05:26:54.000Z | src/masonite_permission/providers/__init__.py | yubarajshrestha/masonite-permission | 5807b80a50b94526efbc03f0933d3960087a7e54 | [
"MIT"
] | 2 | 2022-03-15T06:36:59.000Z | 2022-03-15T09:41:47.000Z | src/masonite_permission/providers/__init__.py | yubarajshrestha/masonite-permission | 5807b80a50b94526efbc03f0933d3960087a7e54 | [
"MIT"
] | null | null | null | # flake8: noqa: E501
from .PermissionProvider import PermissionProvider
from .PermissionGateProvider import PermissionGateProvider
| 32.75 | 58 | 0.870229 | 11 | 131 | 10.363636 | 0.636364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033613 | 0.091603 | 131 | 3 | 59 | 43.666667 | 0.92437 | 0.137405 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.