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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1a2bbd537c5259f6f3e81df383028a37c916cec7 | 7,805 | py | Python | test/units/test_string.py | HansBug/argsloader | 7737758de804ec81150382b1c76de9cf5f48c99d | [
"Apache-2.0"
] | null | null | null | test/units/test_string.py | HansBug/argsloader | 7737758de804ec81150382b1c76de9cf5f48c99d | [
"Apache-2.0"
] | null | null | null | test/units/test_string.py | HansBug/argsloader | 7737758de804ec81150382b1c76de9cf5f48c99d | [
"Apache-2.0"
] | null | null | null | from textwrap import dedent
import pytest
from argsloader.base import ParseError
from argsloader.units import template, keep, mul, neg, regexp
@pytest.mark.unittest
class TestUnitsString:
def test_template(self):
u = template(
'${v} is original data,'
'${v2} is doubled data,'
... | 41.296296 | 114 | 0.487892 | 938 | 7,805 | 4.089552 | 0.110874 | 0.020855 | 0.031283 | 0.022941 | 0.849322 | 0.831595 | 0.831595 | 0.811001 | 0.804223 | 0.784672 | 0 | 0.082136 | 0.313645 | 7,805 | 188 | 115 | 41.515957 | 0.624977 | 0.016015 | 0 | 0.6875 | 0 | 0.075 | 0.422651 | 0.105304 | 0 | 0 | 0 | 0 | 0.29375 | 1 | 0.03125 | false | 0 | 0.025 | 0 | 0.0625 | 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 |
3d7c68fc33483edded010c16fabeebe74ae96797 | 238 | py | Python | ScoutingWebsite/Scouting2017/model/__init__.py | ArcticWarriors/scouting-app | 3411dfc6ddca3728889460cc372716847fff5939 | [
"MIT"
] | 4 | 2017-03-20T21:29:14.000Z | 2018-02-20T17:52:49.000Z | ScoutingWebsite/Scouting2017/model/__init__.py | ArcticWarriors/scouting-app | 3411dfc6ddca3728889460cc372716847fff5939 | [
"MIT"
] | 9 | 2016-03-04T01:09:41.000Z | 2016-09-29T00:04:53.000Z | ScoutingWebsite/Scouting2017/model/__init__.py | ArcticWarriors/scouting-app | 3411dfc6ddca3728889460cc372716847fff5939 | [
"MIT"
] | 3 | 2016-02-23T03:28:17.000Z | 2016-05-12T13:12:49.000Z |
from Scouting2017.model.reusable_models import Match, OfficialMatch, Team, TeamComments, TeamPictures, ScoreResultMetric, Competition, TeamCompetesIn
from Scouting2017.model.models2017 import OfficialMatchScoreResult, ScoreResult, Scout
| 59.5 | 149 | 0.869748 | 22 | 238 | 9.363636 | 0.818182 | 0.15534 | 0.203884 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054545 | 0.07563 | 238 | 3 | 150 | 79.333333 | 0.881818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
3ddf07271b65de93517893cc3b891c0410aab2f5 | 167 | py | Python | aioupbit/v1/__init__.py | isac322/aio-upbit | 4a48f9d476bf421534fab8e5811ec46891c03bdc | [
"MIT"
] | 3 | 2022-02-05T11:27:46.000Z | 2022-02-19T09:41:12.000Z | aioupbit/v1/__init__.py | isac322/aio-upbit | 4a48f9d476bf421534fab8e5811ec46891c03bdc | [
"MIT"
] | 8 | 2022-02-06T10:15:09.000Z | 2022-03-25T08:35:39.000Z | aioupbit/v1/__init__.py | isac322/aio-upbit | 4a48f9d476bf421534fab8e5811ec46891c03bdc | [
"MIT"
] | null | null | null | from __future__ import annotations
from .aiohttp_client import *
from .client import *
from .constants import *
from .values import *
RestClient = AioHTTPRestClient
| 18.555556 | 34 | 0.796407 | 19 | 167 | 6.736842 | 0.526316 | 0.234375 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149701 | 167 | 8 | 35 | 20.875 | 0.901408 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.833333 | 0 | 0.833333 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
3de0a5e859bf491d7869edb08a9290fbff47860d | 29 | py | Python | esp_debug_adapter/debug_adapter/debug_backend/__init__.py | jrroches/vscode-esp-idf-extension | ce552e4e6296f5a5b450d0fd6396f05c513f27b7 | [
"Apache-2.0"
] | 2 | 2020-04-14T04:10:47.000Z | 2020-04-14T04:10:52.000Z | esp_debug_adapter/debug_adapter/debug_backend/__init__.py | jrroches/vscode-esp-idf-extension | ce552e4e6296f5a5b450d0fd6396f05c513f27b7 | [
"Apache-2.0"
] | null | null | null | esp_debug_adapter/debug_adapter/debug_backend/__init__.py | jrroches/vscode-esp-idf-extension | ce552e4e6296f5a5b450d0fd6396f05c513f27b7 | [
"Apache-2.0"
] | null | null | null | from .debug_backend import *
| 14.5 | 28 | 0.793103 | 4 | 29 | 5.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137931 | 29 | 1 | 29 | 29 | 0.88 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
3de82615f9a3e142dd28fad36253ae5db6b28d55 | 29 | py | Python | package_test.py | lwinthida/python-exercises | 47a75422bf97c7694db99517ea93cb236662db79 | [
"MIT"
] | null | null | null | package_test.py | lwinthida/python-exercises | 47a75422bf97c7694db99517ea93cb236662db79 | [
"MIT"
] | null | null | null | package_test.py | lwinthida/python-exercises | 47a75422bf97c7694db99517ea93cb236662db79 | [
"MIT"
] | null | null | null | import package_python.ex42
| 7.25 | 26 | 0.827586 | 4 | 29 | 5.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08 | 0.137931 | 29 | 3 | 27 | 9.666667 | 0.84 | 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 |
9a731b08f03b618c674144536c6854b8998989cd | 3,657 | py | Python | openaerostruct/structures/tests/test_thrust_loads.py | lamkina/OpenAeroStruct | d30e2626fc1272e7fe3a27386c4c663157e958ec | [
"Apache-2.0"
] | 114 | 2017-04-06T15:24:19.000Z | 2022-03-21T09:57:43.000Z | openaerostruct/structures/tests/test_thrust_loads.py | lamkina/OpenAeroStruct | d30e2626fc1272e7fe3a27386c4c663157e958ec | [
"Apache-2.0"
] | 322 | 2017-04-07T01:40:03.000Z | 2022-03-17T21:50:52.000Z | openaerostruct/structures/tests/test_thrust_loads.py | lamkina/OpenAeroStruct | d30e2626fc1272e7fe3a27386c4c663157e958ec | [
"Apache-2.0"
] | 83 | 2017-04-06T16:53:26.000Z | 2022-03-19T19:34:05.000Z | import unittest
import numpy as np
from openmdao.utils.assert_utils import assert_near_equal
import openmdao.api as om
from openaerostruct.structures.compute_thrust_loads import ComputeThrustLoads
from openaerostruct.utils.testing import run_test, get_default_surfaces
derivs_added = False
class Test(unittest.TestC... | 34.17757 | 97 | 0.649713 | 551 | 3,657 | 4.054446 | 0.15971 | 0.057296 | 0.061773 | 0.055506 | 0.80573 | 0.786034 | 0.747986 | 0.744852 | 0.717995 | 0.717995 | 0 | 0.052881 | 0.193328 | 3,657 | 106 | 98 | 34.5 | 0.704407 | 0 | 0 | 0.539683 | 0 | 0 | 0.108012 | 0.025978 | 0 | 0 | 0 | 0 | 0.047619 | 1 | 0.047619 | false | 0 | 0.095238 | 0 | 0.15873 | 0.031746 | 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 |
9a938c1d687d5da888500b5d97ff161b9267ea52 | 301 | py | Python | awesome_autodl/utils/__init__.py | yashsmehta/Awesome-AutoDL | 8c6b626a81398d71bbc8b8e28e13307279b8281e | [
"MIT"
] | null | null | null | awesome_autodl/utils/__init__.py | yashsmehta/Awesome-AutoDL | 8c6b626a81398d71bbc8b8e28e13307279b8281e | [
"MIT"
] | null | null | null | awesome_autodl/utils/__init__.py | yashsmehta/Awesome-AutoDL | 8c6b626a81398d71bbc8b8e28e13307279b8281e | [
"MIT"
] | null | null | null | ##################################################
# Copyright (c) Xuanyi Dong [GitHub D-X-Y], 2021 #
##################################################
from .yaml import load_yaml
from .yaml import dump_yaml
from .check import check_paper_and_correct_format
from .check import check_and_sort_by_date
| 37.625 | 50 | 0.534884 | 35 | 301 | 4.314286 | 0.628571 | 0.10596 | 0.18543 | 0.264901 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014599 | 0.089701 | 301 | 7 | 51 | 43 | 0.536496 | 0.152824 | 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 |
b13765958bf9aaf46e6d0c744df5edfddf818e7c | 121 | py | Python | transcaffe/__init__.py | duguyue100/transcaffe | aee7f34e98630ca4b1d717f65bc3b83edd00acd6 | [
"MIT"
] | 1 | 2017-10-30T01:34:14.000Z | 2017-10-30T01:34:14.000Z | transcaffe/__init__.py | duguyue100/transcaffe | aee7f34e98630ca4b1d717f65bc3b83edd00acd6 | [
"MIT"
] | null | null | null | transcaffe/__init__.py | duguyue100/transcaffe | aee7f34e98630ca4b1d717f65bc3b83edd00acd6 | [
"MIT"
] | 1 | 2021-07-11T04:30:58.000Z | 2021-07-11T04:30:58.000Z | """Transform CaffeModel to HDF5."""
from transcaffe.parsing import load
from transcaffe.utils import keras_model_writer
| 24.2 | 47 | 0.818182 | 16 | 121 | 6.0625 | 0.8125 | 0.28866 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009259 | 0.107438 | 121 | 4 | 48 | 30.25 | 0.888889 | 0.239669 | 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 |
b149bca62f563ecf37ae39be2f4c8aebd29c7171 | 92 | py | Python | notebook/add_module_command.py | vhn0912/python-snippets | 80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038 | [
"MIT"
] | 174 | 2018-05-30T21:14:50.000Z | 2022-03-25T07:59:37.000Z | notebook/add_module_command.py | vhn0912/python-snippets | 80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038 | [
"MIT"
] | 5 | 2019-08-10T03:22:02.000Z | 2021-07-12T20:31:17.000Z | notebook/add_module_command.py | vhn0912/python-snippets | 80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038 | [
"MIT"
] | 53 | 2018-04-27T05:26:35.000Z | 2022-03-25T07:59:37.000Z | import sys
import add_module
print(add_module.add(float(sys.argv[1]), float(sys.argv[2])))
| 18.4 | 61 | 0.75 | 17 | 92 | 3.941176 | 0.529412 | 0.268657 | 0.358209 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023529 | 0.076087 | 92 | 4 | 62 | 23 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0.333333 | 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 |
b14f3bb5b51d6364a61d8841d18ad7d8f3878789 | 208 | py | Python | docs/user_guide/operation/scripts/examples/argus/extraction/jan/PrepareForAirShotExpansion.py | ASUPychron/pychron | dfe551bdeb4ff8b8ba5cdea0edab336025e8cc76 | [
"Apache-2.0"
] | 31 | 2016-03-07T02:38:17.000Z | 2022-02-14T18:23:43.000Z | docs/user_guide/operation/scripts/examples/argus/extraction/jan/PrepareForAirShotExpansion.py | ASUPychron/pychron | dfe551bdeb4ff8b8ba5cdea0edab336025e8cc76 | [
"Apache-2.0"
] | 1,626 | 2015-01-07T04:52:35.000Z | 2022-03-25T19:15:59.000Z | docs/user_guide/operation/scripts/examples/argus/extraction/jan/PrepareForAirShotExpansion.py | UIllinoisHALPychron/pychron | f21b79f4592a9fb9dc9a4cb2e4e943a3885ededc | [
"Apache-2.0"
] | 26 | 2015-05-23T00:10:06.000Z | 2022-03-07T16:51:57.000Z | def main():
info('Prepare for air expansion')
close(description='Microbone to Turbo')
open(description='Microbone to Getter NP-10H')
sleep(2)
open(description='Microbone to Minibone')
| 29.714286 | 50 | 0.682692 | 26 | 208 | 5.461538 | 0.730769 | 0.422535 | 0.464789 | 0.366197 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017964 | 0.197115 | 208 | 7 | 51 | 29.714286 | 0.832335 | 0 | 0 | 0 | 0 | 0 | 0.430622 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | true | 0 | 0 | 0 | 0.166667 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
49191ebc64b9bb189129fd56e6c2373415706ded | 362 | py | Python | infosystem/subsystem/file/__init__.py | araujobd/infosystem | 06367c3aadd00d578820863b5d0d699846205c99 | [
"Apache-2.0"
] | 3 | 2016-06-22T19:08:26.000Z | 2020-10-07T17:26:49.000Z | infosystem/subsystem/file/__init__.py | araujobd/infosystem | 06367c3aadd00d578820863b5d0d699846205c99 | [
"Apache-2.0"
] | 113 | 2016-06-15T13:03:27.000Z | 2017-05-24T08:57:28.000Z | infosystem/subsystem/file/__init__.py | objetorelacional/infosystem | 07140b88db0edee2d5f66db4f13e7285a4f28bfa | [
"Apache-2.0"
] | 3 | 2018-09-02T18:38:05.000Z | 2019-11-27T17:40:54.000Z | from infosystem.common import subsystem
from infosystem.subsystem.file import resource
from infosystem.subsystem.file import manager
from infosystem.subsystem.file import controller
subsystem = subsystem.Subsystem(resource=resource.File,
manager=manager.Manager,
... | 40.222222 | 65 | 0.709945 | 35 | 362 | 7.342857 | 0.257143 | 0.217899 | 0.268482 | 0.315175 | 0.385214 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.237569 | 362 | 8 | 66 | 45.25 | 0.931159 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.571429 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
491fb9e4dd45a81dc709c987c95239047ea1a30e | 801 | py | Python | builton_sdk/utils/rest_functions.py | BuiltonDev/python-sdk | b259b3f394a8c14a036fc9addb80bf155618372d | [
"MIT"
] | 6 | 2019-06-19T06:47:07.000Z | 2020-02-27T08:31:26.000Z | builton_sdk/utils/rest_functions.py | BuiltonDev/python-sdk | b259b3f394a8c14a036fc9addb80bf155618372d | [
"MIT"
] | 16 | 2019-06-19T15:23:25.000Z | 2021-06-01T23:52:10.000Z | builton_sdk/utils/rest_functions.py | BuiltonDev/python-sdk | b259b3f394a8c14a036fc9addb80bf155618372d | [
"MIT"
] | null | null | null | def rest_decorator(*fns):
def wrapper(cls):
for fn in fns:
setattr(cls, fn.__name__, fn)
return cls
return wrapper
def get(cls, *args, **kwargs):
return cls._simple_get_query(cls.id, *args, **kwargs)
def get_all(cls, *args, **kwargs):
return cls._simple_query(*args, **kw... | 22.25 | 64 | 0.639201 | 111 | 801 | 4.414414 | 0.252252 | 0.22449 | 0.185714 | 0.271429 | 0.52449 | 0.45102 | 0.393878 | 0.326531 | 0.25102 | 0 | 0 | 0 | 0.187266 | 801 | 35 | 65 | 22.885714 | 0.752688 | 0 | 0 | 0 | 0 | 0 | 0.02372 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.45 | false | 0 | 0 | 0.35 | 0.9 | 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 |
4929d4691f03c62dc55371748f6fc054c25b7a4f | 17,090 | py | Python | older/test_advection.py | gutmann/advection_examples | d93cfb88b45cfd8508b1328cb37723c81eed1e1c | [
"MIT"
] | null | null | null | older/test_advection.py | gutmann/advection_examples | d93cfb88b45cfd8508b1328cb37723c81eed1e1c | [
"MIT"
] | null | null | null | older/test_advection.py | gutmann/advection_examples | d93cfb88b45cfd8508b1328cb37723c81eed1e1c | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from bunch import Bunch
import numpy as np
import matplotlib.pyplot as plt
import advect
def init_domain(nx=20,cfl=0.2, init="sine"):
"""docstring for init_domain"""
# step function
if init=="step":
q=np.ones(nx,dtype='d')
q[nx/2:]=0
# sine function
if ini... | 30.792793 | 131 | 0.498479 | 2,806 | 17,090 | 2.920884 | 0.085887 | 0.022328 | 0.010737 | 0.009517 | 0.782821 | 0.761713 | 0.734993 | 0.72511 | 0.710102 | 0.696315 | 0 | 0.068 | 0.321065 | 17,090 | 554 | 132 | 30.848375 | 0.638369 | 0.18227 | 0 | 0.728495 | 0 | 0 | 0.055596 | 0.013285 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026882 | false | 0 | 0.010753 | 0.005376 | 0.048387 | 0.067204 | 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 |
49629f63a95a49bc95e66eb2c06665ce3c8f034d | 36 | py | Python | ambify/analysis/__init__.py | amanda3utler/ambify | d755b3ad113a80c5ae61a0e6035d2ec2509a89b7 | [
"MIT"
] | null | null | null | ambify/analysis/__init__.py | amanda3utler/ambify | d755b3ad113a80c5ae61a0e6035d2ec2509a89b7 | [
"MIT"
] | null | null | null | ambify/analysis/__init__.py | amanda3utler/ambify | d755b3ad113a80c5ae61a0e6035d2ec2509a89b7 | [
"MIT"
] | null | null | null | from .analysis import run_classifier | 36 | 36 | 0.888889 | 5 | 36 | 6.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 36 | 1 | 36 | 36 | 0.939394 | 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 |
498adeee517152ca05af23ba13db7d7d98c56db2 | 145 | py | Python | Part_2_intermediate/mod_1/lesson_6/ex_3_packages_modules/home_budget/data_parsers/csv_format.py | Mikma03/InfoShareacademy_Python_Courses | 3df1008c8c92831bebf1625f960f25b39d6987e6 | [
"MIT"
] | null | null | null | Part_2_intermediate/mod_1/lesson_6/ex_3_packages_modules/home_budget/data_parsers/csv_format.py | Mikma03/InfoShareacademy_Python_Courses | 3df1008c8c92831bebf1625f960f25b39d6987e6 | [
"MIT"
] | null | null | null | Part_2_intermediate/mod_1/lesson_6/ex_3_packages_modules/home_budget/data_parsers/csv_format.py | Mikma03/InfoShareacademy_Python_Courses | 3df1008c8c92831bebf1625f960f25b39d6987e6 | [
"MIT"
] | null | null | null |
def load_expenditures():
return "Expenditures from csv"
def load_expenditures_categories():
return "Expenditures categories from csv"
| 18.125 | 45 | 0.765517 | 16 | 145 | 6.75 | 0.4375 | 0.12963 | 0.351852 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165517 | 145 | 7 | 46 | 20.714286 | 0.892562 | 0 | 0 | 0 | 0 | 0 | 0.368056 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0 | 0 | 0.5 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 6 |
49908f9af54904c6168428b0535cb27cc617f1d6 | 55 | py | Python | falcon_multipart/parser.py | blink1073/falcon-multipart | 4c4979afabf04fb4745c27cd19fcbfbe6d1acdd8 | [
"MIT"
] | 60 | 2016-02-16T23:03:28.000Z | 2022-03-01T14:21:42.000Z | falcon_multipart/parser.py | blink1073/falcon-multipart | 4c4979afabf04fb4745c27cd19fcbfbe6d1acdd8 | [
"MIT"
] | 13 | 2016-01-15T17:22:06.000Z | 2019-08-02T15:00:28.000Z | falcon_multipart/parser.py | blink1073/falcon-multipart | 4c4979afabf04fb4745c27cd19fcbfbe6d1acdd8 | [
"MIT"
] | 16 | 2016-02-22T12:50:16.000Z | 2020-12-24T17:05:50.000Z | import cgi
class Parser(cgi.FieldStorage):
pass
| 7.857143 | 31 | 0.709091 | 7 | 55 | 5.571429 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.218182 | 55 | 6 | 32 | 9.166667 | 0.906977 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.333333 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 6 |
499cf033a3f5a9a1adc215c15d8059df685e82ef | 142 | py | Python | cirq-web/cirq_web/_version_test.py | dabacon/Cirq | 54286063f679d67501ff1b905cd16b879feaae27 | [
"Apache-2.0"
] | 1 | 2021-04-29T15:30:32.000Z | 2021-04-29T15:30:32.000Z | cirq-web/cirq_web/_version_test.py | bradyb/Cirq | 610b0d4ea3a7862169610797266734c844ddcc1f | [
"Apache-2.0"
] | 1 | 2020-04-03T20:23:20.000Z | 2020-04-03T20:23:20.000Z | cirq-web/cirq_web/_version_test.py | bradyb/Cirq | 610b0d4ea3a7862169610797266734c844ddcc1f | [
"Apache-2.0"
] | 2 | 2021-09-22T11:16:46.000Z | 2021-09-23T12:55:22.000Z | # pylint: disable=wrong-or-nonexistent-copyright-notice
import cirq_web
def test_version():
assert cirq_web.__version__ == "0.14.0.dev"
| 20.285714 | 55 | 0.753521 | 21 | 142 | 4.761905 | 0.809524 | 0.14 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032 | 0.119718 | 142 | 6 | 56 | 23.666667 | 0.768 | 0.373239 | 0 | 0 | 0 | 0 | 0.114943 | 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 |
b8f3db1e21847f7aaa31dc6dfbd1a60954e0f0ef | 375 | py | Python | scarlet/cms/transaction.py | ff0000/scarlet | 6c37befd810916a2d7ffff2cdb2dab57bcb6d12e | [
"MIT"
] | 9 | 2015-10-13T04:35:56.000Z | 2017-03-16T19:00:44.000Z | scarlet/cms/transaction.py | ff0000/scarlet | 6c37befd810916a2d7ffff2cdb2dab57bcb6d12e | [
"MIT"
] | 32 | 2015-02-10T21:09:18.000Z | 2017-07-18T20:26:51.000Z | scarlet/cms/transaction.py | ff0000/scarlet | 6c37befd810916a2d7ffff2cdb2dab57bcb6d12e | [
"MIT"
] | 3 | 2017-07-13T13:32:21.000Z | 2019-04-08T20:18:58.000Z |
try:
from django.db.transaction import atomic as commit_on_success
except ImportError:
try:
try:
from ..versioning.transactions import xact as commit_on_success
except ValueError:
from versioning.transactions import xact as commit_on_success
except ImportError:
... | 31.25 | 75 | 0.717333 | 45 | 375 | 5.8 | 0.377778 | 0.122605 | 0.229885 | 0.195402 | 0.846743 | 0.624521 | 0.452107 | 0.452107 | 0.452107 | 0.452107 | 0 | 0 | 0.245333 | 375 | 11 | 76 | 34.090909 | 0.922261 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.6 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
6264b76c2d40005f842186d577d9fb9e3801e2b1 | 261 | py | Python | luz_asm_sim/tests_full/procedure_call_stack_convention/_test.py | eliben/luz-cpu | 680917f975f69e7d3cd32edbcbf79a650cbbead9 | [
"Unlicense"
] | 135 | 2015-01-19T07:18:00.000Z | 2022-01-10T15:49:44.000Z | luz_asm_sim/tests_full/procedure_call_stack_convention/_test.py | AhmedMounir/luz-cpu | 680917f975f69e7d3cd32edbcbf79a650cbbead9 | [
"Unlicense"
] | 2 | 2017-04-02T18:37:34.000Z | 2018-08-15T13:25:40.000Z | luz_asm_sim/tests_full/procedure_call_stack_convention/_test.py | AhmedMounir/luz-cpu | 680917f975f69e7d3cd32edbcbf79a650cbbead9 | [
"Unlicense"
] | 24 | 2015-02-18T02:30:32.000Z | 2021-08-22T23:48:01.000Z | def test_calling_nummult(sim):
return ( sim.reg_alias_value('$s5') == 0x562 * 0x18A and
sim.reg_alias_value('$s6') & 0x1 == 1)
def test_scalarproduct(sim):
# the scalar product tested
return sim.reg_alias_value('$s4') == 94078
| 26.1 | 63 | 0.636015 | 36 | 261 | 4.361111 | 0.638889 | 0.11465 | 0.210191 | 0.305732 | 0.280255 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089552 | 0.229885 | 261 | 9 | 64 | 29 | 0.691542 | 0.095785 | 0 | 0 | 0 | 0 | 0.038627 | 0 | 0 | 0 | 0.055794 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0.4 | 0.8 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
6578969f8923e533b2680ec95b0e0ef6431078eb | 581 | py | Python | tensorflow_tts/models/__init__.py | Reaiot/kiswahili_tts | 1bbbff49f7c6cf899e5e3fd4c8cb7d6a7d1b6e79 | [
"Apache-2.0"
] | 70 | 2020-09-08T06:50:39.000Z | 2022-03-31T08:18:03.000Z | tensorflow_tts/models/__init__.py | Reaiot/kiswahili_tts | 1bbbff49f7c6cf899e5e3fd4c8cb7d6a7d1b6e79 | [
"Apache-2.0"
] | 4 | 2020-10-14T13:15:16.000Z | 2021-03-24T08:13:07.000Z | tensorflow_tts/models/__init__.py | Reaiot/kiswahili_tts | 1bbbff49f7c6cf899e5e3fd4c8cb7d6a7d1b6e79 | [
"Apache-2.0"
] | 22 | 2020-09-18T12:14:37.000Z | 2022-03-12T02:58:07.000Z | from tensorflow_tts.models.fastspeech import TFFastSpeech
from tensorflow_tts.models.fastspeech2 import TFFastSpeech2
from tensorflow_tts.models.melgan import (
TFMelGANDiscriminator,
TFMelGANGenerator,
TFMelGANMultiScaleDiscriminator,
)
from tensorflow_tts.models.mb_melgan import TFPQMF
from tensorflow_tts... | 44.692308 | 81 | 0.881239 | 62 | 581 | 8.064516 | 0.354839 | 0.224 | 0.272 | 0.368 | 0.324 | 0.324 | 0.324 | 0 | 0 | 0 | 0 | 0.007505 | 0.082616 | 581 | 12 | 82 | 48.416667 | 0.930582 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
02c7df08450772204e2c771be9028c1cfd9f9c18 | 285 | py | Python | data_loading/samplers/__init__.py | yyx1994/pytorch.repmet | 847a2b71fa751e6d381c233df0107a53592d8ce5 | [
"MIT"
] | 4 | 2019-09-29T08:57:09.000Z | 2021-04-20T09:36:56.000Z | data_loading/samplers/__init__.py | xtynwfn/pytorch.repmet | 847a2b71fa751e6d381c233df0107a53592d8ce5 | [
"MIT"
] | null | null | null | data_loading/samplers/__init__.py | xtynwfn/pytorch.repmet | 847a2b71fa751e6d381c233df0107a53592d8ce5 | [
"MIT"
] | 1 | 2021-04-12T06:58:06.000Z | 2021-04-12T06:58:06.000Z | # This allows us to import the samplers without having to refer to their python file
from data_loading.samplers.episode_batch import EpisodeBatchSampler
from data_loading.samplers.magnet_batch import MagnetBatchSampler
from data_loading.samplers.detection_batch import DetectionSampler | 71.25 | 84 | 0.880702 | 39 | 285 | 6.282051 | 0.589744 | 0.097959 | 0.183673 | 0.281633 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094737 | 285 | 4 | 85 | 71.25 | 0.949612 | 0.287719 | 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 |
02da5a9d6fef02608f5516e9fc462a4d1ab52988 | 13,331 | py | Python | cogs/roles_setup.py | santoshpanna/Discord-Bot | 4757a5899dede946a8e409604d230ddc77626d41 | [
"MIT"
] | null | null | null | cogs/roles_setup.py | santoshpanna/Discord-Bot | 4757a5899dede946a8e409604d230ddc77626d41 | [
"MIT"
] | null | null | null | cogs/roles_setup.py | santoshpanna/Discord-Bot | 4757a5899dede946a8e409604d230ddc77626d41 | [
"MIT"
] | null | null | null | import discord
from discord.ext import commands
from .helpers.helpmaker import Help
from .helpers.guild import getChannelByService, getServiceByChannel
from common import common
from common.database import Database
class Roles(commands.Cog):
def __init__(self, bot):
self.bot = bot
self.groupedCom... | 53.754032 | 254 | 0.609257 | 1,623 | 13,331 | 4.930992 | 0.111522 | 0.030988 | 0.021242 | 0.027615 | 0.810696 | 0.805073 | 0.771836 | 0.758466 | 0.734724 | 0.711858 | 0 | 0.000414 | 0.275898 | 13,331 | 247 | 255 | 53.97166 | 0.827929 | 0.123547 | 0 | 0.638037 | 0 | 0.04908 | 0.21753 | 0.03905 | 0 | 0 | 0 | 0 | 0 | 1 | 0.01227 | false | 0.018405 | 0.03681 | 0 | 0.055215 | 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 |
02ec1604495e38cb8ba71d02cde96a289c252117 | 20 | py | Python | test/test_from_loopy_import_star.py | cmsquared/loopy | baef6e7603b2bba683327fd43cb006864c225aa6 | [
"MIT"
] | null | null | null | test/test_from_loopy_import_star.py | cmsquared/loopy | baef6e7603b2bba683327fd43cb006864c225aa6 | [
"MIT"
] | null | null | null | test/test_from_loopy_import_star.py | cmsquared/loopy | baef6e7603b2bba683327fd43cb006864c225aa6 | [
"MIT"
] | 1 | 2021-03-09T15:55:33.000Z | 2021-03-09T15:55:33.000Z | from loopy import *
| 10 | 19 | 0.75 | 3 | 20 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 20 | 1 | 20 | 20 | 0.9375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 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 |
f310e598c94540421d95f452eed7fa8e5991b235 | 42 | py | Python | FinMind/plotting/__init__.py | Featasy/FinMind | 8eb953dbb2297d9bda060dbe67dfa8609a1b0b27 | [
"Apache-2.0"
] | 1 | 2019-11-09T04:59:33.000Z | 2019-11-09T04:59:33.000Z | FinMind/plotting/__init__.py | stereo720712/FinMind | ec0482e7a2811fc3bf1a5641fee6c6cd61d63844 | [
"Apache-2.0"
] | null | null | null | FinMind/plotting/__init__.py | stereo720712/FinMind | ec0482e7a2811fc3bf1a5641fee6c6cd61d63844 | [
"Apache-2.0"
] | null | null | null | from FinMind.plotting.kline import kline
| 21 | 41 | 0.833333 | 6 | 42 | 5.833333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119048 | 42 | 1 | 42 | 42 | 0.945946 | 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 |
b8231f86a761fac182e4dabca7bfefe575840bc9 | 9,935 | py | Python | scikits/crab/similarities/basic_similarities.py | CrazyCaspian/crab | beb355538acc419b82beae3c6845d1e1cff5d26b | [
"BSD-3-Clause"
] | 863 | 2015-01-01T05:09:14.000Z | 2022-03-27T05:05:25.000Z | scikits/crab/similarities/basic_similarities.py | qqwjq/crab | beb355538acc419b82beae3c6845d1e1cff5d26b | [
"BSD-3-Clause"
] | 21 | 2015-01-02T15:42:46.000Z | 2018-08-18T16:02:03.000Z | scikits/crab/similarities/basic_similarities.py | qqwjq/crab | beb355538acc419b82beae3c6845d1e1cff5d26b | [
"BSD-3-Clause"
] | 318 | 2015-01-01T13:13:04.000Z | 2022-03-29T11:38:08.000Z | #-*- coding:utf-8 -*-
"""
This module contains functions and classes for computing similarities across
a collection of vectors.
"""
#Authors: Marcel Caraciolo <marcel@muricoca.com>
#License: BSD Style
import numpy as np
from base import BaseSimilarity
from ..metrics.pairwise import loglikehood_coefficient
def find... | 42.276596 | 113 | 0.638148 | 1,308 | 9,935 | 4.730122 | 0.142966 | 0.060449 | 0.020365 | 0.031679 | 0.83433 | 0.824309 | 0.813318 | 0.790367 | 0.775174 | 0.775174 | 0 | 0.033021 | 0.225767 | 9,935 | 234 | 114 | 42.457265 | 0.771321 | 0.563362 | 0 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.047619 | 0.031746 | 0.333333 | 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 |
b823d797b1768c5d04c16a8edf43d49894ed0d2b | 205 | py | Python | lib_database/postgres/postgres_defaults.py | jfuruness/lib_database | 9671ae13ba7475db236617ff3030059b29b3b473 | [
"BSD-3-Clause"
] | null | null | null | lib_database/postgres/postgres_defaults.py | jfuruness/lib_database | 9671ae13ba7475db236617ff3030059b29b3b473 | [
"BSD-3-Clause"
] | null | null | null | lib_database/postgres/postgres_defaults.py | jfuruness/lib_database | 9671ae13ba7475db236617ff3030059b29b3b473 | [
"BSD-3-Clause"
] | null | null | null | DEFAULT_CONF_SECTION = "main"
default_conf_section = DEFAULT_CONF_SECTION
default_db_kwargs = {"host": "localhost",
"database": "main",
"password": "notsecure"}
| 25.625 | 45 | 0.6 | 19 | 205 | 6.052632 | 0.578947 | 0.286957 | 0.469565 | 0.434783 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.282927 | 205 | 7 | 46 | 29.285714 | 0.782313 | 0 | 0 | 0 | 0 | 0 | 0.22439 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.2 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 6 |
b867548c2bdf0ed040d6fbc153fe0eaeccbf75c5 | 108 | py | Python | python/app.py | jpoley/lcd | 8635a615e477389796a8ddb7c8fc3d14b1997ae6 | [
"MIT"
] | 2 | 2020-12-10T14:19:20.000Z | 2020-12-16T03:05:21.000Z | python/app.py | jpoley/lcd | 8635a615e477389796a8ddb7c8fc3d14b1997ae6 | [
"MIT"
] | null | null | null | python/app.py | jpoley/lcd | 8635a615e477389796a8ddb7c8fc3d14b1997ae6 | [
"MIT"
] | null | null | null | import sys
def handler(event, context):
return 'Hello from AWS Lambda using Python' + sys.version + '!' | 36 | 67 | 0.703704 | 15 | 108 | 5.066667 | 0.933333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185185 | 108 | 3 | 67 | 36 | 0.863636 | 0 | 0 | 0 | 0 | 0 | 0.321101 | 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 |
b8747578f04b4919fd625d2c24bd1884d354c941 | 9 | py | Python | myModule.py | tomatoxic/python_study | 54a0a89c9e23b87187a971d26c951c2627e89f67 | [
"MIT"
] | null | null | null | myModule.py | tomatoxic/python_study | 54a0a89c9e23b87187a971d26c951c2627e89f67 | [
"MIT"
] | null | null | null | myModule.py | tomatoxic/python_study | 54a0a89c9e23b87187a971d26c951c2627e89f67 | [
"MIT"
] | null | null | null | pi = 3.14 | 9 | 9 | 0.555556 | 3 | 9 | 1.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.428571 | 0.222222 | 9 | 1 | 9 | 9 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
b88dc1088dcbbc229668cbd7ce514044cddbbe24 | 67 | py | Python | fastseq/all.py | jdb78/fastseq | c515e46d7b8ecfdc978eaaa1f7bacd8e270100f7 | [
"Apache-2.0"
] | 55 | 2020-02-13T12:51:59.000Z | 2021-11-22T00:39:14.000Z | fastseq/all.py | jdb78/fastseq | c515e46d7b8ecfdc978eaaa1f7bacd8e270100f7 | [
"Apache-2.0"
] | 11 | 2020-02-26T13:41:59.000Z | 2022-02-26T06:14:19.000Z | fastseq/all.py | jdb78/fastseq | c515e46d7b8ecfdc978eaaa1f7bacd8e270100f7 | [
"Apache-2.0"
] | 11 | 2020-02-11T13:33:37.000Z | 2020-08-21T07:35:02.000Z | from .data.all import *
from .metrics import *
from .core import *
| 16.75 | 23 | 0.716418 | 10 | 67 | 4.8 | 0.6 | 0.416667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.179104 | 67 | 3 | 24 | 22.333333 | 0.872727 | 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 |
b2156fe7d046da84f54001d8035852eac28edb30 | 3,023 | py | Python | rdmo/tasks/tests/test_views.py | Raspeanut/rdmo | 9f785010a499c372a2f8368ccf76d2ea4150adcb | [
"Apache-2.0"
] | null | null | null | rdmo/tasks/tests/test_views.py | Raspeanut/rdmo | 9f785010a499c372a2f8368ccf76d2ea4150adcb | [
"Apache-2.0"
] | null | null | null | rdmo/tasks/tests/test_views.py | Raspeanut/rdmo | 9f785010a499c372a2f8368ccf76d2ea4150adcb | [
"Apache-2.0"
] | null | null | null | import os
import pytest
from django.urls import reverse
users = (
('editor', 'editor'),
('reviewer', 'reviewer'),
('user', 'user'),
('api', 'api'),
('anonymous', None),
)
status_map = {
'tasks': {
'editor': 200, 'reviewer': 200, 'api': 200, 'user': 403, 'anonymous': 302
},
'ta... | 33.966292 | 81 | 0.683427 | 372 | 3,023 | 5.397849 | 0.169355 | 0.143426 | 0.048805 | 0.086653 | 0.791335 | 0.791335 | 0.773406 | 0.748506 | 0.748506 | 0.692729 | 0 | 0.024209 | 0.152828 | 3,023 | 88 | 82 | 34.352273 | 0.759859 | 0 | 0 | 0.424242 | 0 | 0 | 0.188554 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0.090909 | false | 0.272727 | 0.257576 | 0 | 0.348485 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 6 |
b248bec1e833c3acbfa28b5f88e35771c9fa2126 | 6,330 | py | Python | tests/tests.py | zhanghe9704/tpsa-python | 81b866fda505076df955151424715e73011aabf6 | [
"MIT"
] | 2 | 2021-10-03T00:15:25.000Z | 2022-03-18T08:17:25.000Z | tests/tests.py | zhanghe9704/tpsa-python | 81b866fda505076df955151424715e73011aabf6 | [
"MIT"
] | null | null | null | tests/tests.py | zhanghe9704/tpsa-python | 81b866fda505076df955151424715e73011aabf6 | [
"MIT"
] | null | null | null | import unittest
import tpsa
class TestTPSA(unittest.TestCase):
da_dim = 3
da_order = 4
n_vec = 4000
eps = 1e-14
path = "../tpsa/test/"
def test_00_DAIni(self):
init = tpsa.da_init(self.da_order, self.da_dim, self.n_vec)
self.assertEqual(init, 0)
def test_01_Exp(s... | 36.802326 | 111 | 0.55545 | 1,020 | 6,330 | 3.292157 | 0.092157 | 0.083383 | 0.107207 | 0.148898 | 0.839488 | 0.839488 | 0.810602 | 0.798987 | 0.78648 | 0.760274 | 0 | 0.065501 | 0.286098 | 6,330 | 172 | 112 | 36.802326 | 0.677584 | 0 | 0 | 0.610063 | 0 | 0 | 0.072658 | 0.045648 | 0 | 0 | 0 | 0 | 0.132075 | 1 | 0.069182 | false | 0 | 0.012579 | 0 | 0.119497 | 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 |
b279559d47f964da23d53baed54566871e94ceeb | 1,313 | py | Python | bucket_sort/bucket_sort.py | EDAII/Lista4_Adailson_Eliseu | d5256c97e931ea9ab5bfcc3dcba471a81f049dea | [
"MIT"
] | null | null | null | bucket_sort/bucket_sort.py | EDAII/Lista4_Adailson_Eliseu | d5256c97e931ea9ab5bfcc3dcba471a81f049dea | [
"MIT"
] | null | null | null | bucket_sort/bucket_sort.py | EDAII/Lista4_Adailson_Eliseu | d5256c97e931ea9ab5bfcc3dcba471a81f049dea | [
"MIT"
] | null | null | null | import radix_sort.radix_sort as radix_sort
def insertionSort(vector):
for i in range(1, len(vector)):
up = vector[i]
j = i - 1
while j >=0 and vector[j] > up:
vector[j + 1] = vector[j]
j -= 1
vector[j + 1] = up
return vector
def iterative_bucket_sort(vector):
arr = []
number_buckets = 10... | 23.035088 | 51 | 0.619954 | 227 | 1,313 | 3.46696 | 0.145374 | 0.09784 | 0.053367 | 0.09784 | 0.709022 | 0.709022 | 0.709022 | 0.709022 | 0.709022 | 0.709022 | 0 | 0.019569 | 0.22163 | 1,313 | 57 | 52 | 23.035088 | 0.750489 | 0 | 0 | 0.729167 | 0 | 0 | 0.001522 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.020833 | 0 | 0.145833 | 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 |
b29b81a5b9c0fc024c47c84f3782f56d3ead0baf | 799 | py | Python | strainer/actions/__init__.py | jmbreuer/strainer | cf8d5fbb0782ca9d9148107c28cdcd66ac2d6927 | [
"Unlicense"
] | 2 | 2020-04-10T22:20:14.000Z | 2020-05-14T21:35:12.000Z | strainer/actions/__init__.py | jmbreuer/strainer | cf8d5fbb0782ca9d9148107c28cdcd66ac2d6927 | [
"Unlicense"
] | 31 | 2020-05-21T14:03:53.000Z | 2022-03-11T12:04:50.000Z | strainer/actions/__init__.py | jmbreuer/strainer | cf8d5fbb0782ca9d9148107c28cdcd66ac2d6927 | [
"Unlicense"
] | 1 | 2022-03-09T18:19:55.000Z | 2022-03-09T18:19:55.000Z | from .manage import AddAccount, EditAccount, RemoveAccount, ReloadAccount, NewScript, RenameScript, DeleteScript, \
ActivateScript, OpenScript
from .edit import SaveDocument, UndoEdit, RedoEdit, CutContent, CopyContent, PasteContent, DeleteContent, FindContent, \
SelectAllContent
f... | 53.266667 | 120 | 0.71965 | 58 | 799 | 9.844828 | 0.517241 | 0.073555 | 0.119089 | 0.164623 | 0.910683 | 0.910683 | 0.718039 | 0.718039 | 0.718039 | 0 | 0 | 0 | 0.153942 | 799 | 14 | 121 | 57.071429 | 0.844675 | 0 | 0 | 0 | 0 | 0 | 0.325407 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
a262b2ec16b92e3f6eaaacc882261e95b5e9e501 | 12,297 | py | Python | tests/functional/test_middleware.py | twobulls/pitcher | 6f472ff48e950d123bcb79c2e6655e0777ae0fe0 | [
"MIT"
] | null | null | null | tests/functional/test_middleware.py | twobulls/pitcher | 6f472ff48e950d123bcb79c2e6655e0777ae0fe0 | [
"MIT"
] | null | null | null | tests/functional/test_middleware.py | twobulls/pitcher | 6f472ff48e950d123bcb79c2e6655e0777ae0fe0 | [
"MIT"
] | null | null | null | import pytest
from pitcher import Application, Request, Route
from pitcher.middleware import (
AllowedHostMiddleware,
CORSMiddleware,
Middleware,
SecureHeadersMiddleware,
)
from tests.client import HandlerClient
@pytest.mark.parametrize(
"hosts,status",
[
(["api.example.com"], 200),
... | 31.05303 | 89 | 0.467024 | 986 | 12,297 | 5.742394 | 0.105477 | 0.081243 | 0.101731 | 0.061816 | 0.856588 | 0.809608 | 0.758213 | 0.739315 | 0.730307 | 0.695691 | 0 | 0.014036 | 0.368464 | 12,297 | 395 | 90 | 31.131646 | 0.71504 | 0 | 0 | 0.549451 | 0 | 0 | 0.349679 | 0.109132 | 0 | 0 | 0 | 0 | 0.024725 | 1 | 0.027473 | false | 0 | 0.010989 | 0.013736 | 0.052198 | 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 |
a2685d97fccb4ddd692df74323ca4c8aa18e036f | 43,565 | py | Python | pysal/model/spreg/error_sp.py | ocefpaf/pysal | 7e397bdb4c22d4e2442b4ee88bcd691d2421651d | [
"BSD-3-Clause"
] | 1 | 2021-08-16T02:47:35.000Z | 2021-08-16T02:47:35.000Z | pysal/model/spreg/error_sp.py | ocefpaf/pysal | 7e397bdb4c22d4e2442b4ee88bcd691d2421651d | [
"BSD-3-Clause"
] | null | null | null | pysal/model/spreg/error_sp.py | ocefpaf/pysal | 7e397bdb4c22d4e2442b4ee88bcd691d2421651d | [
"BSD-3-Clause"
] | null | null | null | """
Spatial Error Models module
"""
__author__ = "Luc Anselin luc.anselin@asu.edu, \
Daniel Arribas-Bel darribas@asu.edu, \
Pedro V. Amaral pedro.amaral@asu.edu"
import numpy as np
from numpy import linalg as la
from . import ols as OLS
from pysal.lib.weights.spatial_lag import lag_spatial
from .utils... | 40.983067 | 142 | 0.588064 | 5,929 | 43,565 | 4.245235 | 0.087367 | 0.013349 | 0.016528 | 0.017799 | 0.863925 | 0.850338 | 0.843862 | 0.835518 | 0.819309 | 0.80739 | 0 | 0.021737 | 0.328383 | 43,565 | 1,062 | 143 | 41.021657 | 0.838511 | 0.760404 | 0 | 0.353293 | 0 | 0 | 0.032875 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047904 | false | 0 | 0.077844 | 0 | 0.167665 | 0.023952 | 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 |
a283595fc9f5a0248e9f9bb2c1eb8b6d760e2875 | 27 | py | Python | eshop/__init__.py | hhhhhojeihsu/EShopTracker | c8a59fafe1a0ffcecba807fa689e428bc4ad1c4a | [
"MIT"
] | null | null | null | eshop/__init__.py | hhhhhojeihsu/EShopTracker | c8a59fafe1a0ffcecba807fa689e428bc4ad1c4a | [
"MIT"
] | null | null | null | eshop/__init__.py | hhhhhojeihsu/EShopTracker | c8a59fafe1a0ffcecba807fa689e428bc4ad1c4a | [
"MIT"
] | null | null | null | from .pchome import pchome
| 13.5 | 26 | 0.814815 | 4 | 27 | 5.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148148 | 27 | 1 | 27 | 27 | 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 |
a73eea41b7a711b6fe57d5158e199beeb3d85ee8 | 48 | py | Python | src/dcn-env/dcn_env/envs/__init__.py | zawaki/nara_revision | 28bb42f7ca3a768075748d258c405addc7b28c31 | [
"MIT"
] | null | null | null | src/dcn-env/dcn_env/envs/__init__.py | zawaki/nara_revision | 28bb42f7ca3a768075748d258c405addc7b28c31 | [
"MIT"
] | null | null | null | src/dcn-env/dcn_env/envs/__init__.py | zawaki/nara_revision | 28bb42f7ca3a768075748d258c405addc7b28c31 | [
"MIT"
] | null | null | null | from dcn_env.envs.packing_env import PackingEnv
| 24 | 47 | 0.875 | 8 | 48 | 5 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 48 | 1 | 48 | 48 | 0.909091 | 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 |
a762dc251e0b103502f9fc141a7efcb16a616cc1 | 39,803 | py | Python | scripts/e276.py | JackKelly/neuralnilm_prototype | 2119292e7d5c8a137797ad3c9abf9f37e7f749af | [
"MIT"
] | 38 | 2015-08-14T14:38:52.000Z | 2021-12-15T03:21:04.000Z | scripts/e276.py | VidipG/neuralnilm_prototype | 2119292e7d5c8a137797ad3c9abf9f37e7f749af | [
"MIT"
] | null | null | null | scripts/e276.py | VidipG/neuralnilm_prototype | 2119292e7d5c8a137797ad3c9abf9f37e7f749af | [
"MIT"
] | 26 | 2015-09-24T20:55:26.000Z | 2021-12-07T15:42:09.000Z | from __future__ import print_function, division
import matplotlib
import logging
from sys import stdout
matplotlib.use('Agg') # Must be before importing matplotlib.pyplot or pylab!
from neuralnilm import Net, RealApplianceSource, BLSTMLayer, DimshuffleLayer
from neuralnilm.net import BidirectionalRecurrentLayer
from la... | 29.571322 | 162 | 0.530915 | 4,106 | 39,803 | 4.898928 | 0.088407 | 0.056475 | 0.046234 | 0.049416 | 0.82262 | 0.811981 | 0.809595 | 0.805319 | 0.805319 | 0.79826 | 0 | 0.021349 | 0.355099 | 39,803 | 1,345 | 163 | 29.593309 | 0.762281 | 0.063437 | 0 | 0.660082 | 0 | 0 | 0.153334 | 0.004111 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021399 | false | 0 | 0.017284 | 0 | 0.057613 | 0.001646 | 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 |
ac086f104697ddc0a2768437411fbc31b5b6c78f | 354 | py | Python | euclidean/constants.py | keystonetowersystems/euclidean | 72965b5ea1b0d70438376024d0c9a14457bdfb13 | [
"MIT"
] | 1 | 2021-05-26T19:18:38.000Z | 2021-05-26T19:18:38.000Z | euclidean/constants.py | keystonetowersystems/euclidean | 72965b5ea1b0d70438376024d0c9a14457bdfb13 | [
"MIT"
] | 1 | 2021-06-30T14:13:13.000Z | 2021-06-30T15:34:33.000Z | euclidean/constants.py | keystonetowersystems/euclidean | 72965b5ea1b0d70438376024d0c9a14457bdfb13 | [
"MIT"
] | null | null | null | pi = 3.1415926535897932384626433832795028841971693993751058209749445923078164
tau = 2 * pi
eta = pi / 2
e = 2.7182818284590452353602874713526624977572470936999595749669676277240766
phi = 1.6180339887498948482045868343656381177203091798057628621354486227052604
sqrt2 = 1.41421356237309504880168872420969807
sqrt3 = 1.73... | 35.4 | 78 | 0.884181 | 21 | 354 | 14.904762 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.883792 | 0.076271 | 354 | 9 | 79 | 39.333333 | 0.073395 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
ac0969d87093bb58a79911b4915e873f6f693b2b | 3,207 | py | Python | tests/unit/commands/test_generate.py | STAMP-project/camp | e8652ddf3e2e84ffbf2b9dff3fb5ee678b209246 | [
"MIT"
] | 8 | 2018-05-28T13:14:24.000Z | 2020-08-10T17:37:08.000Z | tests/unit/commands/test_generate.py | STAMP-project/camp | e8652ddf3e2e84ffbf2b9dff3fb5ee678b209246 | [
"MIT"
] | 95 | 2018-05-16T14:06:52.000Z | 2022-02-26T04:25:18.000Z | tests/unit/commands/test_generate.py | STAMP-project/camp | e8652ddf3e2e84ffbf2b9dff3fb5ee678b209246 | [
"MIT"
] | 10 | 2018-06-25T16:04:11.000Z | 2019-12-12T15:08:00.000Z | #
# CAMP
#
# Copyright (C) 2017 -- 2019 SINTEF Digital
# All rights reserved.
#
# This software may be modified and distributed under the terms
# of the MIT license. See the LICENSE file for details.
#
from unittest import TestCase
from camp.commands import Command, Generate
class DefaultValuesAreCorrect(TestCa... | 26.073171 | 63 | 0.687247 | 345 | 3,207 | 6.188406 | 0.176812 | 0.103045 | 0.056206 | 0.107728 | 0.806089 | 0.806089 | 0.801874 | 0.78548 | 0.76534 | 0.735831 | 0 | 0.003215 | 0.224197 | 3,207 | 122 | 64 | 26.286885 | 0.854904 | 0.057374 | 0 | 0.661017 | 0 | 0 | 0.086625 | 0 | 0 | 0 | 0 | 0 | 0.338983 | 1 | 0.169492 | false | 0 | 0.033898 | 0 | 0.254237 | 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 |
ac11279bce774ef32c568a86fdee3c1afd9a866a | 157 | py | Python | code/0/07/0/hello_world.py | dudung/butir | 6684b6bd2160aa36969d51a531b5d4f8d11622a4 | [
"MIT"
] | null | null | null | code/0/07/0/hello_world.py | dudung/butir | 6684b6bd2160aa36969d51a531b5d4f8d11622a4 | [
"MIT"
] | null | null | null | code/0/07/0/hello_world.py | dudung/butir | 6684b6bd2160aa36969d51a531b5d4f8d11622a4 | [
"MIT"
] | null | null | null | """
hello_world.py
"""
def printhello():
print('Hello, World! -- import')
def main():
print('Hello, World! -- run')
if __name__ == '__main__':
main()
| 12.076923 | 33 | 0.598726 | 19 | 157 | 4.473684 | 0.578947 | 0.352941 | 0.352941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171975 | 157 | 12 | 34 | 13.083333 | 0.653846 | 0.089172 | 0 | 0 | 0 | 0 | 0.380597 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | true | 0 | 0.166667 | 0 | 0.5 | 0.5 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
ac157a48e7a112a39b5f95a4701a21072b9a056e | 3,321 | py | Python | examples/qcpi/heatRate/makePlots.py | Rapid-Design-of-Systems-Laboratory/beluga-legacy | d14713d8211b64293c4427005cf02fbd58630598 | [
"MIT"
] | 1 | 2019-03-26T03:00:03.000Z | 2019-03-26T03:00:03.000Z | examples/qcpi/heatRate/makePlots.py | Rapid-Design-of-Systems-Laboratory/beluga-legacy | d14713d8211b64293c4427005cf02fbd58630598 | [
"MIT"
] | null | null | null | examples/qcpi/heatRate/makePlots.py | Rapid-Design-of-Systems-Laboratory/beluga-legacy | d14713d8211b64293c4427005cf02fbd58630598 | [
"MIT"
] | 1 | 2019-07-14T22:53:52.000Z | 2019-07-14T22:53:52.000Z | from beluga.visualization import BelugaPlot
from beluga.visualization.datasources import Dill
from beluga.visualization.renderers import ToyPlot
ds_constraint = Dill('./data-1k2-eps4-eps4.dill') # 26 steps
ds_epsHR = Dill('./data-1k2-eps6-eps4.dill') # 36 steps
ds_epsAlfa = Dill('./data-1k2-eps6-eps7.dill') # 36 steps... | 47.442857 | 95 | 0.573924 | 422 | 3,321 | 4.405213 | 0.175355 | 0.103281 | 0.077461 | 0.103281 | 0.827864 | 0.795051 | 0.782679 | 0.769769 | 0.731038 | 0.693384 | 0 | 0.055643 | 0.236977 | 3,321 | 69 | 96 | 48.130435 | 0.677979 | 0.038543 | 0 | 0.58 | 0 | 0 | 0.268446 | 0.031397 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.06 | 0 | 0.06 | 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 |
ac322b7bf0153d31c827361dd00d2358de08f19c | 110 | py | Python | facilyst/models/__init__.py | ParthivNaresh/Facilyst | 786932b0afcf07cd300b2e6ce55ccf7f9e4c49d9 | [
"MIT"
] | null | null | null | facilyst/models/__init__.py | ParthivNaresh/Facilyst | 786932b0afcf07cd300b2e6ce55ccf7f9e4c49d9 | [
"MIT"
] | 3 | 2022-02-26T17:19:28.000Z | 2022-03-01T09:34:19.000Z | facilyst/models/__init__.py | ParthivNaresh/facilyst | 786932b0afcf07cd300b2e6ce55ccf7f9e4c49d9 | [
"MIT"
] | null | null | null | from .neural_network_base import NeuralNetworkBase
from .neural_networks import MultiLayerPerceptronRegressor
| 36.666667 | 58 | 0.909091 | 11 | 110 | 8.818182 | 0.727273 | 0.206186 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072727 | 110 | 2 | 59 | 55 | 0.95098 | 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 |
3bd1ef9db8b5ca603276ec7b0638de1f63197180 | 147 | py | Python | tests/config.py | FujiMakoto/IRC-Message-Formatter | 832b705d192ebe9091acb552076a776efa80877c | [
"Unlicense",
"MIT-0",
"MIT"
] | 5 | 2015-11-18T13:11:56.000Z | 2019-06-30T14:08:08.000Z | tests/config.py | FujiMakoto/IRC-Message-Formatter | 832b705d192ebe9091acb552076a776efa80877c | [
"Unlicense",
"MIT-0",
"MIT"
] | 2 | 2020-02-04T07:42:34.000Z | 2020-06-07T01:45:51.000Z | tests/config.py | FujiMakoto/IRC-Message-Formatter | 832b705d192ebe9091acb552076a776efa80877c | [
"Unlicense",
"MIT-0",
"MIT"
] | 5 | 2016-10-23T06:58:29.000Z | 2021-05-01T17:47:02.000Z | import unittest
import ircmessage
class IrcMessageTestCase(unittest.TestCase):
"""
Base class for all EneIRC test cases
"""
pass
| 14.7 | 44 | 0.70068 | 16 | 147 | 6.4375 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.231293 | 147 | 9 | 45 | 16.333333 | 0.911504 | 0.244898 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.25 | 0.5 | 0 | 0.75 | 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 |
3bf755be2d5efd518be7e3f1a0a9da042cb72a8d | 36 | py | Python | src/__init__.py | JacksonianDemocracy/url-rewrite-tracer | 67398c5daa8f4627ca374a0db717102062f1e658 | [
"MIT"
] | null | null | null | src/__init__.py | JacksonianDemocracy/url-rewrite-tracer | 67398c5daa8f4627ca374a0db717102062f1e658 | [
"MIT"
] | null | null | null | src/__init__.py | JacksonianDemocracy/url-rewrite-tracer | 67398c5daa8f4627ca374a0db717102062f1e658 | [
"MIT"
] | null | null | null | from .tracer import UrlRewriteTracer | 36 | 36 | 0.888889 | 4 | 36 | 8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 36 | 1 | 36 | 36 | 0.969697 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
ce10a9766610551f62d4156d4345704858256729 | 276 | py | Python | envoy/tests/test_metrics.py | dvanderveer/integrations-core | 41dd9950296455457c9b7342584153678503d5aa | [
"BSD-3-Clause"
] | 2 | 2019-04-03T17:21:38.000Z | 2020-02-04T16:28:05.000Z | envoy/tests/test_metrics.py | dvanderveer/integrations-core | 41dd9950296455457c9b7342584153678503d5aa | [
"BSD-3-Clause"
] | 10 | 2018-02-27T19:06:07.000Z | 2021-08-30T03:23:26.000Z | envoy/tests/test_metrics.py | dvanderveer/integrations-core | 41dd9950296455457c9b7342584153678503d5aa | [
"BSD-3-Clause"
] | 6 | 2018-01-09T21:37:20.000Z | 2020-05-26T09:28:09.000Z | from datadog_checks.envoy.metrics import METRIC_PREFIX, METRIC_TREE, METRICS
from datadog_checks.envoy.utils import make_metric_tree
def test_metric_prefix():
assert METRIC_PREFIX == 'envoy.'
def test_metric_tree():
assert METRIC_TREE == make_metric_tree(METRICS)
| 25.090909 | 76 | 0.800725 | 39 | 276 | 5.307692 | 0.358974 | 0.241546 | 0.164251 | 0.21256 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123188 | 276 | 10 | 77 | 27.6 | 0.855372 | 0 | 0 | 0 | 0 | 0 | 0.021739 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.333333 | true | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
cbeebf3ebadb7392180a9b507ce98b74a6109d1c | 27 | py | Python | TailScout/tailscout_app/api/views/__init__.py | MihirSachdeva/IIT_Roorkee_India | 3916e6a3f33596a6eae0ae6c1e38b70645196a49 | [
"MIT"
] | 2 | 2020-10-28T08:11:40.000Z | 2020-12-07T14:29:12.000Z | TailScout/tailscout_app/api/views/__init__.py | MihirSachdeva/IIT_Roorkee_India | 3916e6a3f33596a6eae0ae6c1e38b70645196a49 | [
"MIT"
] | null | null | null | TailScout/tailscout_app/api/views/__init__.py | MihirSachdeva/IIT_Roorkee_India | 3916e6a3f33596a6eae0ae6c1e38b70645196a49 | [
"MIT"
] | 1 | 2021-01-23T21:02:14.000Z | 2021-01-23T21:02:14.000Z | from .job import JobViewSet | 27 | 27 | 0.851852 | 4 | 27 | 5.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 27 | 1 | 27 | 27 | 0.958333 | 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 |
cbfdbe4a48837feb4a5142d4daa15d4d5bc8ac7e | 195 | py | Python | jupyter_packaging/__init__.py | timkpaine/jupyter-packaging | 8746af42fb0bbda11839cf5ea80b9605a15f07e6 | [
"BSD-3-Clause"
] | null | null | null | jupyter_packaging/__init__.py | timkpaine/jupyter-packaging | 8746af42fb0bbda11839cf5ea80b9605a15f07e6 | [
"BSD-3-Clause"
] | null | null | null | jupyter_packaging/__init__.py | timkpaine/jupyter-packaging | 8746af42fb0bbda11839cf5ea80b9605a15f07e6 | [
"BSD-3-Clause"
] | null | null | null | # coding: utf-8
# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
from .setupbase import * # noqa
from .setupbase import __version__ # noqa
| 24.375 | 58 | 0.748718 | 26 | 195 | 5.461538 | 0.807692 | 0.183099 | 0.267606 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00625 | 0.179487 | 195 | 7 | 59 | 27.857143 | 0.88125 | 0.615385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
022b660c0503f5ecbbfb224a486af9662671eea1 | 35 | py | Python | LearnPython3TheHardWay/ex10.py | lanjing99/UsePython | 19a84e3ef65dc326cf9c4bfccbf2d99c22f858a4 | [
"MIT"
] | null | null | null | LearnPython3TheHardWay/ex10.py | lanjing99/UsePython | 19a84e3ef65dc326cf9c4bfccbf2d99c22f858a4 | [
"MIT"
] | null | null | null | LearnPython3TheHardWay/ex10.py | lanjing99/UsePython | 19a84e3ef65dc326cf9c4bfccbf2d99c22f858a4 | [
"MIT"
] | null | null | null | print("\t a cat \v a dog \v a pig") | 35 | 35 | 0.571429 | 10 | 35 | 2 | 0.7 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.228571 | 35 | 1 | 35 | 35 | 0.740741 | 0 | 0 | 0 | 0 | 0 | 0.722222 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
0236d81d2cfe3e5a2e4c429d8deaebf299941c41 | 10,852 | py | Python | tests/app/authentication/test_roles.py | ons-eq-team/eq-questionnaire-runner | 8d029097faa2b9d53d9621064243620db60c62c7 | [
"MIT"
] | null | null | null | tests/app/authentication/test_roles.py | ons-eq-team/eq-questionnaire-runner | 8d029097faa2b9d53d9621064243620db60c62c7 | [
"MIT"
] | null | null | null | tests/app/authentication/test_roles.py | ons-eq-team/eq-questionnaire-runner | 8d029097faa2b9d53d9621064243620db60c62c7 | [
"MIT"
] | null | null | null | import sys
from unittest import TestCase
from mock import patch
from werkzeug.exceptions import Forbidden
class TestRoleRequired(TestCase):
def setUp(self):
# Create a patched get_metadata
self.get_metadata_patcher = patch("app.globals.get_metadata", autospec=True)
self.addCleanup(self.get... | 45.029046 | 89 | 0.692499 | 1,379 | 10,852 | 5.257433 | 0.101523 | 0.074483 | 0.022759 | 0.03931 | 0.885379 | 0.871172 | 0.837655 | 0.788276 | 0.770759 | 0.751724 | 0 | 0.005201 | 0.238205 | 10,852 | 240 | 90 | 45.216667 | 0.871779 | 0.354773 | 0 | 0.575221 | 0 | 0 | 0.069643 | 0.013871 | 0 | 0 | 0 | 0 | 0.123894 | 1 | 0.132743 | false | 0 | 0.044248 | 0 | 0.185841 | 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 |
5a118948d23ebb3d2d08916f4507f087c90b7d7b | 66,314 | py | Python | alibabacloud/clients/cdn_20180510.py | wallisyan/alibabacloud-python-sdk-v2 | 6e024c97cded2403025a7dd8fea8261e41872156 | [
"Apache-2.0"
] | 21 | 2018-12-20T07:34:13.000Z | 2020-03-05T14:32:08.000Z | alibabacloud/clients/cdn_20180510.py | wallisyan/alibabacloud-python-sdk-v2 | 6e024c97cded2403025a7dd8fea8261e41872156 | [
"Apache-2.0"
] | 22 | 2018-12-21T13:22:33.000Z | 2020-06-29T08:37:09.000Z | alibabacloud/clients/cdn_20180510.py | wallisyan/alibabacloud-python-sdk-v2 | 6e024c97cded2403025a7dd8fea8261e41872156 | [
"Apache-2.0"
] | 12 | 2018-12-29T05:45:55.000Z | 2022-01-05T09:59:30.000Z | # Copyright 2019 Alibaba Cloud Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable la... | 38.532249 | 100 | 0.580752 | 6,594 | 66,314 | 5.490598 | 0.076433 | 0.100539 | 0.054799 | 0.079547 | 0.799834 | 0.785334 | 0.767325 | 0.730369 | 0.709598 | 0.68032 | 0 | 0.000726 | 0.314549 | 66,314 | 1,720 | 101 | 38.554651 | 0.795776 | 0.008671 | 0 | 0.743525 | 0 | 0 | 0.149989 | 0.029243 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076437 | false | 0 | 0.001895 | 0 | 0.154769 | 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 |
5a2d77d5b4fef10a96a50026fcf8454ecf60a35d | 32 | py | Python | pleque/io/jet/__init__.py | kripnerl/pleque | af351c4aa4a40aa5bb5bdaa8083575344c0827e2 | [
"MIT"
] | 13 | 2018-11-08T11:59:37.000Z | 2022-03-14T20:17:38.000Z | pleque/io/jet/__init__.py | kripnerl/pleque | af351c4aa4a40aa5bb5bdaa8083575344c0827e2 | [
"MIT"
] | 18 | 2018-07-31T12:17:37.000Z | 2020-05-19T08:36:42.000Z | pleque/io/jet/__init__.py | kripnerl/pleque | af351c4aa4a40aa5bb5bdaa8083575344c0827e2 | [
"MIT"
] | 3 | 2018-08-26T07:50:04.000Z | 2021-12-03T11:44:57.000Z | from .reader_jet import sal_jet
| 16 | 31 | 0.84375 | 6 | 32 | 4.166667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 32 | 1 | 32 | 32 | 0.892857 | 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 |
5a33f375cb9b1d200dab3b717a669c8042c0e9e7 | 125 | py | Python | virtual/lib/python3.8/site-packages/registration/tests/__init__.py | erastus-1/GramApp | d926a8a894b5dc673d077b35f9df867dab737372 | [
"MIT"
] | 925 | 2015-01-01T08:13:57.000Z | 2022-03-28T12:17:28.000Z | virtual/lib/python3.8/site-packages/registration/tests/__init__.py | erastus-1/GramApp | d926a8a894b5dc673d077b35f9df867dab737372 | [
"MIT"
] | 394 | 2015-01-02T12:18:31.000Z | 2022-03-09T06:31:57.000Z | virtual/lib/python3.8/site-packages/registration/tests/__init__.py | erastus-1/GramApp | d926a8a894b5dc673d077b35f9df867dab737372 | [
"MIT"
] | 485 | 2015-01-08T15:19:17.000Z | 2022-03-11T01:37:25.000Z | from registration import admin
from registration.backends.default import urls
def test():
assert admin
assert urls
| 15.625 | 46 | 0.768 | 16 | 125 | 6 | 0.625 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192 | 125 | 7 | 47 | 17.857143 | 0.950495 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.4 | 1 | 0.2 | true | 0 | 0.4 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
5a6dc939ed535fc98257d029801ac1571bede8fc | 189 | py | Python | pages/views.py | Joaxin/django-welogs | 260a72322cdc5591ecd3ceae1dc99a66da333d2b | [
"MIT"
] | null | null | null | pages/views.py | Joaxin/django-welogs | 260a72322cdc5591ecd3ceae1dc99a66da333d2b | [
"MIT"
] | null | null | null | pages/views.py | Joaxin/django-welogs | 260a72322cdc5591ecd3ceae1dc99a66da333d2b | [
"MIT"
] | null | null | null | from django.views.generic import TemplateView
class HomePageView(TemplateView):
template_name = 'op/home.html'
class AboutPageView(TemplateView):
template_name = 'op/about.html' | 21 | 45 | 0.772487 | 22 | 189 | 6.545455 | 0.681818 | 0.277778 | 0.333333 | 0.361111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.132275 | 189 | 9 | 46 | 21 | 0.878049 | 0 | 0 | 0 | 0 | 0 | 0.131579 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 6 |
ceb837147dd791e7837d56ae7e4b5329fb81fe8d | 324 | py | Python | src/model/cloudwatch.py | neovasili/cleanup-cdk-dev-env | a100669b9c46e36fd7a50d0b78b59636cf1e75ca | [
"MIT"
] | 1 | 2020-09-17T12:01:29.000Z | 2020-09-17T12:01:29.000Z | src/model/cloudwatch.py | neovasili/cleanup-cdk-dev-env | a100669b9c46e36fd7a50d0b78b59636cf1e75ca | [
"MIT"
] | 1 | 2020-10-19T15:39:07.000Z | 2020-10-19T15:39:07.000Z | src/model/cloudwatch.py | neovasili/cleanup-cdk-dev-env | a100669b9c46e36fd7a50d0b78b59636cf1e75ca | [
"MIT"
] | null | null | null |
class CWLogGroup():
def __init__(self, log_group_name: str, log_group_creation: str):
self.__log_group_name = log_group_name
self.__log_group_creation = log_group_creation
def get_log_group_name(self):
return self.__log_group_name
def get_log_group_creation(self):
return self.__log_group_creat... | 24.923077 | 67 | 0.783951 | 49 | 324 | 4.489796 | 0.244898 | 0.363636 | 0.272727 | 0.218182 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148148 | 324 | 12 | 68 | 27 | 0.797101 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0 | 0.25 | 0.75 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
0c800be8d43e92e069f48326ceba71345b29f7f0 | 11,902 | py | Python | vice/core/callback.py | astrobeard/VICEdev | c78804ec63b48a760ce3e50b8d3afc7b699ec75f | [
"MIT"
] | null | null | null | vice/core/callback.py | astrobeard/VICEdev | c78804ec63b48a760ce3e50b8d3afc7b699ec75f | [
"MIT"
] | null | null | null | vice/core/callback.py | astrobeard/VICEdev | c78804ec63b48a760ce3e50b8d3afc7b699ec75f | [
"MIT"
] | null | null | null | r"""
VICE Callback Functions
=======================
.. warning:: User access of this module is discouraged.
Implements callable objects to allow VICE's C library to call functions passed
to it from python. These objects raise warnings in the case that a function
returns a forbidden or non-numerical value and re... | 26.626398 | 80 | 0.699294 | 1,569 | 11,902 | 5.133206 | 0.114723 | 0.016141 | 0.037249 | 0.035386 | 0.833996 | 0.816737 | 0.801713 | 0.766576 | 0.762106 | 0.75329 | 0 | 0.008432 | 0.192909 | 11,902 | 446 | 81 | 26.686099 | 0.830002 | 0.631238 | 0 | 0.694118 | 0 | 0 | 0.202784 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.164706 | false | 0 | 0.041176 | 0.058824 | 0.429412 | 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 |
0c91f7075969442a66e5d1ddb4bdda81515ea3e5 | 33,708 | py | Python | tests/snowflake/test_snowflake.py | CharlesRngrd/toucan-connectors | 906481c6f4bbead406efcd0879d1ac21a3071b6e | [
"BSD-3-Clause"
] | 15 | 2018-04-24T08:14:19.000Z | 2021-08-01T17:48:56.000Z | tests/snowflake/test_snowflake.py | CharlesRngrd/toucan-connectors | 906481c6f4bbead406efcd0879d1ac21a3071b6e | [
"BSD-3-Clause"
] | 281 | 2018-03-29T23:11:26.000Z | 2022-02-15T17:29:11.000Z | tests/snowflake/test_snowflake.py | CharlesRngrd/toucan-connectors | 906481c6f4bbead406efcd0879d1ac21a3071b6e | [
"BSD-3-Clause"
] | 14 | 2019-02-07T14:55:22.000Z | 2021-11-25T09:12:23.000Z | import time
from datetime import datetime, timedelta
from urllib.error import HTTPError
import jwt
import pandas as pd
import pytest
import snowflake
from mock import patch
from pandas import DataFrame
from pydantic import SecretStr
from snowflake.connector import SnowflakeConnection
from toucan_connectors import Dat... | 42.940127 | 138 | 0.770292 | 3,898 | 33,708 | 6.320421 | 0.075936 | 0.103746 | 0.076714 | 0.067947 | 0.853635 | 0.841702 | 0.809514 | 0.793644 | 0.781995 | 0.758412 | 0 | 0.007864 | 0.124748 | 33,708 | 784 | 139 | 42.994898 | 0.827204 | 0.010354 | 0 | 0.630499 | 0 | 0.001466 | 0.305895 | 0.223822 | 0 | 0 | 0 | 0.001276 | 0.108504 | 1 | 0.060117 | false | 0.01173 | 0.021994 | 0.004399 | 0.087977 | 0.001466 | 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 |
0cd2a932c03e171347c77b95070ebeb4e48b18de | 35 | py | Python | intro_to_wc_modeling/concepts_skills/__init__.py | KarrLab/python_package_tutorial | dd20e0d3056138904e7e7fbbf6bb884d64dbf8f6 | [
"MIT"
] | 15 | 2018-01-06T11:33:01.000Z | 2022-03-01T15:18:40.000Z | intro_to_wc_modeling/concepts_skills/__init__.py | KarrLab/python_package_tutorial | dd20e0d3056138904e7e7fbbf6bb884d64dbf8f6 | [
"MIT"
] | 2 | 2018-01-30T23:21:12.000Z | 2018-03-23T20:22:06.000Z | intro_to_wc_modeling/concepts_skills/__init__.py | KarrLab/python_package_tutorial | dd20e0d3056138904e7e7fbbf6bb884d64dbf8f6 | [
"MIT"
] | 8 | 2018-01-08T21:40:19.000Z | 2022-01-04T14:48:02.000Z | from . import software_engineering
| 17.5 | 34 | 0.857143 | 4 | 35 | 7.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
490108b958e698743e586e43c5381eddc8f64fec | 777 | py | Python | python/run_sparc_test_drone.py | guiccbr/github-tfc-drone | f543b109d2bd3f61c1865ee20e03342090ac8e03 | [
"MIT"
] | 13 | 2016-10-01T01:59:49.000Z | 2021-02-17T16:51:51.000Z | python/run_sparc_test_drone.py | guiccbr/github-tfc-drone | f543b109d2bd3f61c1865ee20e03342090ac8e03 | [
"MIT"
] | 9 | 2016-10-01T01:49:08.000Z | 2016-11-07T03:03:46.000Z | python/run_sparc_test_drone.py | guiccbr/github-tfc-drone | f543b109d2bd3f61c1865ee20e03342090ac8e03 | [
"MIT"
] | 10 | 2017-03-31T11:20:16.000Z | 2018-12-28T19:14:24.000Z | #! /usr/local/bin/python
from py_quad_control.vrep_sim.sparc import test_drone_vrep_nav
test_drone_vrep_nav.test_sparc_model(print_stuff=False, trajectory=True,
record_trajectory=False, read_trajectory=True,
control=[True, True, True, True],
... | 48.5625 | 101 | 0.593308 | 86 | 777 | 5.139535 | 0.290698 | 0.289593 | 0.325792 | 0.289593 | 0.882353 | 0.719457 | 0.475113 | 0.475113 | 0.475113 | 0.475113 | 0 | 0 | 0.303732 | 777 | 15 | 102 | 51.8 | 0.817006 | 0.379665 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 0 | 0.166667 | 0.166667 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
0b2c50d7e1f05569dcd1921fccdd6f6a32e83279 | 162 | py | Python | graphql_jwt/signals.py | CloudTMO/django-graphql-jwt | 9cb6f0ce2780c3e634d2b2cdb248dfa41f4a1927 | [
"MIT"
] | 764 | 2018-01-16T11:12:29.000Z | 2022-03-28T02:13:41.000Z | graphql_jwt/signals.py | CloudTMO/django-graphql-jwt | 9cb6f0ce2780c3e634d2b2cdb248dfa41f4a1927 | [
"MIT"
] | 283 | 2018-01-15T06:42:27.000Z | 2022-03-27T06:48:52.000Z | graphql_jwt/signals.py | CloudTMO/django-graphql-jwt | 9cb6f0ce2780c3e634d2b2cdb248dfa41f4a1927 | [
"MIT"
] | 191 | 2018-03-31T06:28:30.000Z | 2022-03-16T22:24:24.000Z | from django.dispatch import Signal
# providing_args=['request', 'user']
token_issued = Signal()
# providing_args=['request', 'user']
token_refreshed = Signal()
| 20.25 | 36 | 0.734568 | 19 | 162 | 6.052632 | 0.631579 | 0.26087 | 0.330435 | 0.452174 | 0.608696 | 0.608696 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 162 | 7 | 37 | 23.142857 | 0.798611 | 0.425926 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0b2eca7aeb1fad44fd30f71110b5d159896ef926 | 155 | py | Python | satsound/resources/__init__.py | saanobhaai/apman | e07452f54fcb895fb6039b6be63abf3861d7b9cb | [
"MIT"
] | null | null | null | satsound/resources/__init__.py | saanobhaai/apman | e07452f54fcb895fb6039b6be63abf3861d7b9cb | [
"MIT"
] | null | null | null | satsound/resources/__init__.py | saanobhaai/apman | e07452f54fcb895fb6039b6be63abf3861d7b9cb | [
"MIT"
] | null | null | null | from satelliteaudio import SatelliteAudioViewset
from satelliteinfo import SatCatViewSet
from satellitetrajectories import FlatSatelliteTrajectoryViewset
| 31 | 64 | 0.916129 | 12 | 155 | 11.833333 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083871 | 155 | 4 | 65 | 38.75 | 1 | 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 |
0b3d0f4e422d78e9cab5fe69d692ee2862b8b18c | 106 | py | Python | studioapps/project/utils.py | weicunheng/test-studio | 5bff2d94e6252c1689d6ae74529d0fd30fb20c0d | [
"Apache-2.0"
] | 1 | 2020-06-07T04:38:10.000Z | 2020-06-07T04:38:10.000Z | studioapps/project/utils.py | weicunheng/test-studio | 5bff2d94e6252c1689d6ae74529d0fd30fb20c0d | [
"Apache-2.0"
] | null | null | null | studioapps/project/utils.py | weicunheng/test-studio | 5bff2d94e6252c1689d6ae74529d0fd30fb20c0d | [
"Apache-2.0"
] | null | null | null | import secrets
def gen_project_code():
"""
return: str
"""
return secrets.token_hex(10)
| 11.777778 | 32 | 0.613208 | 13 | 106 | 4.769231 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025641 | 0.264151 | 106 | 8 | 33 | 13.25 | 0.769231 | 0.103774 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | true | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
0b8bb39debc297709aa73f3650b6cc36db0da6b1 | 129 | py | Python | Generator/__init__.py | FreeYourSoul/FSeamGenerator | 09df419ad3fb176c8d9031fe91a9161a41dbf11e | [
"MIT"
] | 88 | 2019-04-13T18:57:14.000Z | 2022-03-18T09:07:58.000Z | Generator/__init__.py | FreeYourSoul/FSeamGenerator | 09df419ad3fb176c8d9031fe91a9161a41dbf11e | [
"MIT"
] | 35 | 2019-07-09T18:50:58.000Z | 2021-12-16T04:20:16.000Z | Generator/__init__.py | FreeYourSoul/FSeamGenerator | 09df419ad3fb176c8d9031fe91a9161a41dbf11e | [
"MIT"
] | 11 | 2019-05-31T09:03:26.000Z | 2021-02-20T01:38:38.000Z | import FSeamerFile
FSeamerFile.generateFSeamFile("/home/FyS/Project/FyS/services/common/include/RandomGenerator.hh", ".", True)
| 32.25 | 108 | 0.806202 | 14 | 129 | 7.428571 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046512 | 129 | 3 | 109 | 43 | 0.845528 | 0 | 0 | 0 | 1 | 0 | 0.503876 | 0.496124 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 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 | 1 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
0ba9493c9cd555f31cd8935cb4a3e1e5fd605c0a | 290 | py | Python | rpython/jit/backend/x86/test/test_tracelimit.py | hollmmax/zig | d80baa5a5fcbc82b3e2294b398edc20a98737a52 | [
"MIT"
] | null | null | null | rpython/jit/backend/x86/test/test_tracelimit.py | hollmmax/zig | d80baa5a5fcbc82b3e2294b398edc20a98737a52 | [
"MIT"
] | null | null | null | rpython/jit/backend/x86/test/test_tracelimit.py | hollmmax/zig | d80baa5a5fcbc82b3e2294b398edc20a98737a52 | [
"MIT"
] | 1 | 2022-03-30T11:42:37.000Z | 2022-03-30T11:42:37.000Z |
from rpython.jit.metainterp.test.test_tracelimit import TraceLimitTests
from rpython.jit.backend.x86.test.test_basic import Jit386Mixin
class TestTraceLimit(Jit386Mixin, TraceLimitTests):
# for the individual tests see
# ====> ../../../metainterp/test/test_tracelimit.py
pass
| 32.222222 | 71 | 0.768966 | 34 | 290 | 6.470588 | 0.617647 | 0.109091 | 0.127273 | 0.254545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031373 | 0.12069 | 290 | 8 | 72 | 36.25 | 0.831373 | 0.268966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.25 | 0.5 | 0 | 0.75 | 0 | 0 | 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 | 1 | 1 | 0 | 1 | 0 | 0 | 6 |
e7f508c6870deb2ecced5a1b4c30ed723a69a759 | 27,605 | py | Python | bob/bio/base/test/test_filelist.py | bioidiap/bob.bio.base | 44b8d192e957eb328591c8110cf0113f602292ef | [
"BSD-3-Clause"
] | 16 | 2016-04-06T20:37:55.000Z | 2019-10-19T08:06:25.000Z | bob/bio/base/test/test_filelist.py | bioidiap/bob.bio.base | 44b8d192e957eb328591c8110cf0113f602292ef | [
"BSD-3-Clause"
] | 25 | 2015-07-04T17:41:40.000Z | 2016-08-08T20:36:01.000Z | bob/bio/base/test/test_filelist.py | bioidiap/bob.bio.base | 44b8d192e957eb328591c8110cf0113f602292ef | [
"BSD-3-Clause"
] | 7 | 2015-08-07T17:21:02.000Z | 2018-08-13T15:51:54.000Z | #!/usr/bin/env python
# vim: set fileencoding=utf-8 :
"""A few checks at the Verification Filelist database.
"""
import os
import bob.io.base
import bob.io.base.test_utils
from bob.bio.base.database import (
CSVDataset,
CSVDatasetCrossValidation,
LSTToSampleLoader,
CSVDatasetZTNorm,
CSVToSampleLoa... | 30.774805 | 115 | 0.615251 | 3,289 | 27,605 | 4.936455 | 0.08118 | 0.074279 | 0.042005 | 0.042129 | 0.823848 | 0.806603 | 0.78831 | 0.747967 | 0.733925 | 0.713723 | 0 | 0.017303 | 0.273537 | 27,605 | 896 | 116 | 30.809152 | 0.792311 | 0.096975 | 0 | 0.556485 | 0 | 0.001395 | 0.062885 | 0.015953 | 0 | 0 | 0 | 0 | 0.283124 | 1 | 0.036262 | false | 0 | 0.022315 | 0 | 0.064156 | 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 |
f00bd10031e2a89c884c31bf7f4eec31a300e0b0 | 778 | py | Python | tests/test_two_d_class_number.py | amirdel/dispersion-continua | 2e1f7a3fbfcdc0b27c546cb0ae51a628a926ad60 | [
"0BSD"
] | 1 | 2019-03-24T03:25:39.000Z | 2019-03-24T03:25:39.000Z | tests/test_two_d_class_number.py | amirdel/dispersion-continua | 2e1f7a3fbfcdc0b27c546cb0ae51a628a926ad60 | [
"0BSD"
] | null | null | null | tests/test_two_d_class_number.py | amirdel/dispersion-continua | 2e1f7a3fbfcdc0b27c546cb0ae51a628a926ad60 | [
"0BSD"
] | 1 | 2019-12-23T14:34:43.000Z | 2019-12-23T14:34:43.000Z | from py_dp.dispersion.second_order_markov import find_1d_bins, find_2d_bin
def test_two_d_class_number():
n_class = 4.0
c1 = 0.0
c2 = 0.0
c_2d = find_2d_bin(c1, c2, n_class)
assert(c_2d == 0)
c1b, c2b = find_1d_bins(c_2d, n_class)
assert(c1b==c1 and c2b==c2)
c1 = 1.0
c2 = 2.0
c_... | 26.827586 | 74 | 0.61054 | 160 | 778 | 2.66875 | 0.2125 | 0.084309 | 0.224824 | 0.074941 | 0.754098 | 0.754098 | 0.754098 | 0.754098 | 0.754098 | 0.754098 | 0 | 0.146805 | 0.255784 | 778 | 28 | 75 | 27.785714 | 0.590674 | 0 | 0 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.296296 | 1 | 0.037037 | false | 0 | 0.037037 | 0 | 0.074074 | 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 |
f0176c8286811ef171b3236f5d9c65372f6b8643 | 42 | py | Python | malcolm/modules/system/__init__.py | hir12111/pymalcolm | 689542711ff903ee99876c40fc0eae8015e13314 | [
"Apache-2.0"
] | 11 | 2016-10-04T23:11:39.000Z | 2022-01-25T15:44:43.000Z | malcolm/modules/system/__init__.py | hir12111/pymalcolm | 689542711ff903ee99876c40fc0eae8015e13314 | [
"Apache-2.0"
] | 153 | 2016-06-01T13:31:02.000Z | 2022-03-31T11:17:18.000Z | malcolm/modules/system/__init__.py | hir12111/pymalcolm | 689542711ff903ee99876c40fc0eae8015e13314 | [
"Apache-2.0"
] | 16 | 2016-06-10T13:45:27.000Z | 2020-10-24T13:45:04.000Z | from . import controllers, defines, parts
| 21 | 41 | 0.785714 | 5 | 42 | 6.6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 42 | 1 | 42 | 42 | 0.916667 | 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 |
f0495c51312036ffac7c3e9d25e4c43f7c506d16 | 5,520 | py | Python | visual_novel/cinfo/migrations/0001_new_cinfo_model.py | dolamroth/visual_novel | c67379df395561b3bca7e91e2db6547d2e943330 | [
"MIT"
] | 9 | 2018-03-11T12:53:12.000Z | 2020-12-19T14:21:53.000Z | visual_novel/cinfo/migrations/0001_new_cinfo_model.py | dolamroth/visual_novel | c67379df395561b3bca7e91e2db6547d2e943330 | [
"MIT"
] | 6 | 2020-02-11T22:19:22.000Z | 2022-03-11T23:20:10.000Z | visual_novel/cinfo/migrations/0001_new_cinfo_model.py | dolamroth/visual_novel | c67379df395561b3bca7e91e2db6547d2e943330 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.2 on 2018-04-25 20:39
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Genre',
fields=[
('id', models.AutoField(au... | 47.179487 | 122 | 0.558152 | 502 | 5,520 | 5.936255 | 0.191235 | 0.169799 | 0.045302 | 0.054027 | 0.702013 | 0.702013 | 0.702013 | 0.702013 | 0.702013 | 0.667114 | 0 | 0.018682 | 0.301812 | 5,520 | 116 | 123 | 47.586207 | 0.754541 | 0.008152 | 0 | 0.577982 | 1 | 0 | 0.206103 | 0.003837 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.009174 | 0 | 0.045872 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
b2dd0ee977c5d16a68288ff4789e032b353fb2ea | 2,133 | py | Python | tests/test_permutation_explanation.py | MauroLuzzatto/explainy | 4cb7910e6394d69d754c81095d6d6cd3a6c9beb5 | [
"MIT"
] | 10 | 2021-10-03T10:39:34.000Z | 2022-01-08T20:29:12.000Z | tests/test_permutation_explanation.py | MauroLuzzatto/explainy | 4cb7910e6394d69d754c81095d6d6cd3a6c9beb5 | [
"MIT"
] | 2 | 2021-07-28T10:28:27.000Z | 2021-09-16T20:01:10.000Z | tests/test_permutation_explanation.py | MauroLuzzatto/explainy | 4cb7910e6394d69d754c81095d6d6cd3a6c9beb5 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Mon Aug 16 21:58:56 2021
@author: maurol
"""
import pytest
from explainy.explanations.permutation_explanation import PermutationExplanation
from .utils import get_regression_model
def test_permuation_explanation_4_features():
model, X_test, y_test = get_regression_model... | 28.44 | 81 | 0.670886 | 260 | 2,133 | 5.276923 | 0.342308 | 0.074344 | 0.072886 | 0.029155 | 0.829446 | 0.741983 | 0.741983 | 0.741983 | 0.741983 | 0.741983 | 0 | 0.044903 | 0.227379 | 2,133 | 74 | 82 | 28.824324 | 0.787621 | 0.035162 | 0 | 0.571429 | 0 | 0.061224 | 0.348293 | 0.020488 | 0 | 0 | 0 | 0 | 0.122449 | 1 | 0.040816 | false | 0 | 0.183673 | 0 | 0.22449 | 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 |
653420379968682dccbf6324909da13eaaa670b5 | 180 | py | Python | script/__init__.py | BourneXu/AntiGPS | 077c5d8662e3aa4770016ceab8d973fd3638ac84 | [
"MIT"
] | 4 | 2020-02-19T20:23:38.000Z | 2022-02-16T16:13:12.000Z | script/__init__.py | zhufengGNSS/AntiGPS | 69469b5667e39ae4b239cb85359a8c8f94084e95 | [
"MIT"
] | 1 | 2022-01-13T02:01:07.000Z | 2022-01-13T02:01:07.000Z | script/__init__.py | zhufengGNSS/AntiGPS | 69469b5667e39ae4b239cb85359a8c8f94084e95 | [
"MIT"
] | 2 | 2020-02-12T16:12:06.000Z | 2020-09-14T09:22:48.000Z | # -*- coding:utf-8 -*-
###
# @Author: Chris
# Created Date: 2020-01-02 17:03:06
# -----
# Last Modified: 2020-01-02 17:03:09
# Modified By: Chris
# -----
# Copyright (c) 2020
###
| 15 | 36 | 0.561111 | 27 | 180 | 3.740741 | 0.703704 | 0.118812 | 0.158416 | 0.19802 | 0.237624 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222973 | 0.177778 | 180 | 11 | 37 | 16.363636 | 0.459459 | 0.855556 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
33232049cfd21d54889d4da4f11a171a77b4c365 | 11,153 | py | Python | cnf_xplor/api/models.py | BFSSI-Bioinformatics-Lab/nutrition_database | ef63be35ceb4d37f3fa94bd6e4e8c8f3c84f8b7b | [
"MIT"
] | null | null | null | cnf_xplor/api/models.py | BFSSI-Bioinformatics-Lab/nutrition_database | ef63be35ceb4d37f3fa94bd6e4e8c8f3c84f8b7b | [
"MIT"
] | 46 | 2020-02-17T18:50:49.000Z | 2020-06-03T17:20:56.000Z | cnf_xplor/api/models.py | BFSSI-Bioinformatics-Lab/nutrition_database | ef63be35ceb4d37f3fa94bd6e4e8c8f3c84f8b7b | [
"MIT"
] | null | null | null | from django.db import models
from simple_history.models import HistoricalRecords
class FoodGroup(models.Model):
GROUP_C = models.AutoField(null=False, blank=False, primary_key=True)
GROUP_DESC = models.CharField(max_length=500,null=True,blank=True)
GROUP_DESC_F = models.CharField(max_length=500,null=True,... | 48.916667 | 120 | 0.758989 | 1,589 | 11,153 | 5.127753 | 0.096916 | 0.131566 | 0.210604 | 0.275405 | 0.840943 | 0.831615 | 0.759818 | 0.659426 | 0.573147 | 0.530437 | 0 | 0.013007 | 0.12454 | 11,153 | 227 | 121 | 49.132159 | 0.821487 | 0.017125 | 0 | 0.241379 | 0 | 0 | 0.012876 | 0.003835 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.011494 | 0.034483 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 6 |
332695c66809b45a66136c661d0a974c4643250f | 103 | py | Python | recipe_recommender/__init__.py | lisamnash/recipe_recommender | f02ea57c36b39f4965625d90f6d6f73a4131b449 | [
"BSD-3-Clause"
] | 1 | 2019-01-07T19:56:40.000Z | 2019-01-07T19:56:40.000Z | recipe_recommender/__init__.py | lisamnash/recipe_recommender | f02ea57c36b39f4965625d90f6d6f73a4131b449 | [
"BSD-3-Clause"
] | 7 | 2018-12-28T21:22:15.000Z | 2019-01-08T22:07:26.000Z | recipe_recommender/__init__.py | lisamnash/recipe_recommender | f02ea57c36b39f4965625d90f6d6f73a4131b449 | [
"BSD-3-Clause"
] | 1 | 2018-12-26T23:19:59.000Z | 2018-12-26T23:19:59.000Z | """
Main init file for recipe_recommender
"""
from . import scraping_and_processing
from . import etl
| 14.714286 | 37 | 0.76699 | 14 | 103 | 5.428571 | 0.857143 | 0.263158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15534 | 103 | 6 | 38 | 17.166667 | 0.873563 | 0.359223 | 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 |
332aa44c4382cfbb8c357b368375803abd8b9400 | 1,067 | py | Python | pyenv/lib/python3.6/__future__.py | ronald-rgr/ai-chatbot-smartguide | c9c830feb6b66c2e362f8fb5d147ef0c4f4a08cf | [
"Apache-2.0"
] | null | null | null | pyenv/lib/python3.6/__future__.py | ronald-rgr/ai-chatbot-smartguide | c9c830feb6b66c2e362f8fb5d147ef0c4f4a08cf | [
"Apache-2.0"
] | 3 | 2020-03-23T18:01:51.000Z | 2021-03-19T23:15:15.000Z | pyenv/lib/python3.6/__future__.py | ronald-rgr/ai-chatbot-smartguide | c9c830feb6b66c2e362f8fb5d147ef0c4f4a08cf | [
"Apache-2.0"
] | null | null | null | XSym
0077
64c1ca3c74e642570050767ea91933b5
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/__future__.py
... | 213.4 | 946 | 0.098407 | 15 | 1,067 | 6.733333 | 0.933333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.273504 | 0.890347 | 1,067 | 5 | 946 | 213.4 | 0.589744 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
336c9a5ffd0df9eeee15908452c76eb93f0b9906 | 27 | py | Python | alcf/algorithms/__init__.py | peterkuma/alcf | 781026a0686193680b9c3155db29d75b6c27192e | [
"MIT"
] | 3 | 2019-11-01T08:34:47.000Z | 2021-11-05T16:38:43.000Z | alcf/algorithms/__init__.py | peterkuma/alcf | 781026a0686193680b9c3155db29d75b6c27192e | [
"MIT"
] | null | null | null | alcf/algorithms/__init__.py | peterkuma/alcf | 781026a0686193680b9c3155db29d75b6c27192e | [
"MIT"
] | 4 | 2020-07-05T05:17:19.000Z | 2021-11-18T02:51:13.000Z | from .interp import interp
| 13.5 | 26 | 0.814815 | 4 | 27 | 5.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148148 | 27 | 1 | 27 | 27 | 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 |
336d72b0bbbad473201e4ca2900c6912f46622fe | 43 | py | Python | core/models/__init__.py | darakudou/idol_sikiho_-crawler | 54e2108c33d920ac6be682bf7c631dac139aa35c | [
"MIT"
] | 1 | 2020-12-31T14:27:48.000Z | 2020-12-31T14:27:48.000Z | core/models/__init__.py | darakudou/idol_sikiho_crawler | 54e2108c33d920ac6be682bf7c631dac139aa35c | [
"MIT"
] | null | null | null | core/models/__init__.py | darakudou/idol_sikiho_crawler | 54e2108c33d920ac6be682bf7c631dac139aa35c | [
"MIT"
] | null | null | null | from .idol import *
from .twitter import *
| 14.333333 | 22 | 0.72093 | 6 | 43 | 5.166667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.186047 | 43 | 2 | 23 | 21.5 | 0.885714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
682c7f9c262ae5a9ed11a79bcfcb330d1aa8b53b | 174 | py | Python | functions.py | sateeshkagale/planets | 2d9a606ea54b34f52e773d8f5c6a213702e63e07 | [
"MIT"
] | null | null | null | functions.py | sateeshkagale/planets | 2d9a606ea54b34f52e773d8f5c6a213702e63e07 | [
"MIT"
] | null | null | null | functions.py | sateeshkagale/planets | 2d9a606ea54b34f52e773d8f5c6a213702e63e07 | [
"MIT"
] | null | null | null | def fahr_to_kelvin(temp):
return ((temp - 32) * (5/9)) + 273.15
print('freezing point of water:',fahr_to_kelvin(32))
print('boiling point of water:',fahr_to_kelvin(212))
| 34.8 | 52 | 0.701149 | 30 | 174 | 3.866667 | 0.6 | 0.155172 | 0.310345 | 0.275862 | 0.413793 | 0.413793 | 0 | 0 | 0 | 0 | 0 | 0.092105 | 0.126437 | 174 | 4 | 53 | 43.5 | 0.671053 | 0 | 0 | 0 | 0 | 0 | 0.270115 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.25 | 0.5 | 0.5 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 6 |
684d8bd3300bbdc46666385c1db3da80749473ea | 8,781 | py | Python | pycon/tutorials/tests/test_views.py | azkarmoulana/pycon | 931388e6f640c35b892bb4b2d12581ba7ec8cf4e | [
"BSD-3-Clause"
] | 154 | 2015-01-17T02:29:24.000Z | 2022-03-20T20:37:24.000Z | pycon/tutorials/tests/test_views.py | azkarmoulana/pycon | 931388e6f640c35b892bb4b2d12581ba7ec8cf4e | [
"BSD-3-Clause"
] | 316 | 2015-01-10T04:01:50.000Z | 2020-09-30T20:18:08.000Z | pycon/tutorials/tests/test_views.py | azkarmoulana/pycon | 931388e6f640c35b892bb4b2d12581ba7ec8cf4e | [
"BSD-3-Clause"
] | 89 | 2015-01-10T05:25:21.000Z | 2022-02-27T03:28:59.000Z | from mock import patch
from django.core import mail
from django.core.urlresolvers import reverse
from django.test import TestCase
from pycon.bulkemail.tasks import send_bulk_emails
from pycon.finaid.tests.utils import TestMixin
from symposion.schedule.tests.factories import PresentationFactory
from symposion.speakers... | 37.365957 | 79 | 0.637627 | 1,017 | 8,781 | 5.393314 | 0.149459 | 0.093345 | 0.040292 | 0.02917 | 0.738377 | 0.724521 | 0.723245 | 0.714312 | 0.701914 | 0.692069 | 0 | 0.005827 | 0.257374 | 8,781 | 234 | 80 | 37.525641 | 0.835301 | 0.123221 | 0 | 0.713483 | 0 | 0 | 0.077778 | 0.021699 | 0 | 0 | 0 | 0 | 0.140449 | 1 | 0.08427 | false | 0 | 0.050562 | 0 | 0.151685 | 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 |
6881ae4ed30779a3a1e1044df5932f581ad8c130 | 161 | py | Python | blur_detection/__init__.py | dendisuhubdy/BlurDetection2 | ffdca5d227714d663e48b0cb9c5554bdb28c4751 | [
"MIT"
] | 217 | 2017-04-30T15:04:32.000Z | 2022-03-31T16:27:07.000Z | blur_detection/__init__.py | dendisuhubdy/BlurDetection2 | ffdca5d227714d663e48b0cb9c5554bdb28c4751 | [
"MIT"
] | 11 | 2017-05-17T18:50:37.000Z | 2021-03-15T11:23:22.000Z | blur_detection/__init__.py | dendisuhubdy/BlurDetection2 | ffdca5d227714d663e48b0cb9c5554bdb28c4751 | [
"MIT"
] | 69 | 2017-05-15T11:51:14.000Z | 2022-03-26T12:37:17.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from .detection import fix_image_size
from .detection import estimate_blur
from .detection import pretty_blur_map
| 23 | 38 | 0.770186 | 24 | 161 | 4.958333 | 0.708333 | 0.327731 | 0.478992 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007092 | 0.124224 | 161 | 6 | 39 | 26.833333 | 0.836879 | 0.26087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
688671cc28c45405ac3cef8db64001e43d307815 | 13,202 | py | Python | tests/wallet/nft_wallet/test_nft_1_offers.py | Chinilla/chinilla-blockchain | 59bebcf94e65b74fbb53ad4929bbd79cb28be619 | [
"Apache-2.0"
] | null | null | null | tests/wallet/nft_wallet/test_nft_1_offers.py | Chinilla/chinilla-blockchain | 59bebcf94e65b74fbb53ad4929bbd79cb28be619 | [
"Apache-2.0"
] | null | null | null | tests/wallet/nft_wallet/test_nft_1_offers.py | Chinilla/chinilla-blockchain | 59bebcf94e65b74fbb53ad4929bbd79cb28be619 | [
"Apache-2.0"
] | null | null | null | import asyncio
import logging
# from secrets import token_bytes
from typing import Any, Optional
import pytest
from chinilla.consensus.block_rewards import calculate_base_farmer_reward, calculate_pool_reward
from chinilla.full_node.mempool_manager import MempoolManager
# from chinilla.rpc.wallet_rpc_api import Wall... | 39.76506 | 119 | 0.756476 | 1,883 | 13,202 | 4.898035 | 0.107807 | 0.04337 | 0.03578 | 0.042936 | 0.814052 | 0.789439 | 0.768947 | 0.755503 | 0.7426 | 0.716578 | 0 | 0.024207 | 0.164521 | 13,202 | 331 | 120 | 39.885196 | 0.811967 | 0.045599 | 0 | 0.573123 | 0 | 0 | 0.032827 | 0.005405 | 0 | 0 | 0.005405 | 0 | 0.173913 | 1 | 0 | false | 0 | 0.075099 | 0 | 0.083004 | 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 |
cc0b6e21ab02453e53aa2275dddca4e7a22ee79f | 49 | py | Python | pic/use_case/__init__.py | hankyul2/pytorch-image-classification | 2da942aaf806de961941d57e9daa0b9a37798530 | [
"Apache-2.0"
] | null | null | null | pic/use_case/__init__.py | hankyul2/pytorch-image-classification | 2da942aaf806de961941d57e9daa0b9a37798530 | [
"Apache-2.0"
] | null | null | null | pic/use_case/__init__.py | hankyul2/pytorch-image-classification | 2da942aaf806de961941d57e9daa0b9a37798530 | [
"Apache-2.0"
] | null | null | null | from .cls_engine import train_one_epoch, validate | 49 | 49 | 0.877551 | 8 | 49 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081633 | 49 | 1 | 49 | 49 | 0.888889 | 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 |
cc1e3a9ce082769255b4d9a81bdd6a876104754a | 33 | py | Python | bareml/machinelearning/reinforcement/__init__.py | shotahorii/ml-from-scratch | 10fe8c9d5811bfcb9ee303aba2087524574681e6 | [
"MIT"
] | 3 | 2021-03-21T21:16:42.000Z | 2021-06-27T03:20:04.000Z | bareml/machinelearning/reinforcement/__init__.py | shotahorii/ml-from-scratch | 10fe8c9d5811bfcb9ee303aba2087524574681e6 | [
"MIT"
] | null | null | null | bareml/machinelearning/reinforcement/__init__.py | shotahorii/ml-from-scratch | 10fe8c9d5811bfcb9ee303aba2087524574681e6 | [
"MIT"
] | null | null | null | from .q_learning import QLearning | 33 | 33 | 0.878788 | 5 | 33 | 5.6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 33 | 1 | 33 | 33 | 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 |
cc21cf1f233ee736781218f546acd11d0e46c7c9 | 263 | py | Python | AMBER/amber/modeler/__init__.py | rtu715/NAS-Bench-360 | d075006848c664371855c34082b0a00cda62be67 | [
"MIT"
] | 10 | 2021-06-15T17:48:34.000Z | 2022-02-23T18:34:28.000Z | AMBER/amber/modeler/__init__.py | rtu715/NAS-Bench-360 | d075006848c664371855c34082b0a00cda62be67 | [
"MIT"
] | 1 | 2021-11-12T15:12:38.000Z | 2021-11-12T19:38:00.000Z | AMBER/amber/modeler/__init__.py | rtu715/NAS-Bench-360 | d075006848c664371855c34082b0a00cda62be67 | [
"MIT"
] | 1 | 2021-11-15T04:07:17.000Z | 2021-11-15T04:07:17.000Z | """modeler Module Docstring
"""
from .modeler import DAGModelBuilder, EnasAnnModelBuilder, EnasCnnModelBuilder
from .modeler import KerasModelBuilder, KerasMultiIOModelBuilder, KerasResidualCnnBuilder, KerasBranchModelBuilder
from . import child, dag, modeler
| 29.222222 | 114 | 0.840304 | 21 | 263 | 10.52381 | 0.666667 | 0.099548 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098859 | 263 | 8 | 115 | 32.875 | 0.932489 | 0.091255 | 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 |
cc233124cb0c847ed7ca62f4dc28dba2ccca7aa2 | 75 | py | Python | flask/src/app.py | Laptop-Salad/stemwarrior-2021 | 5bf425c9abc8b53cfbc9f6b03ab669bd0011ba31 | [
"MIT"
] | 2 | 2021-08-07T02:54:49.000Z | 2021-08-08T08:16:21.000Z | flask/src/app.py | ZK333/stemwarrior-2021 | 890902fa13336742200c1fe928f3f27e2d9dc848 | [
"MIT"
] | null | null | null | flask/src/app.py | ZK333/stemwarrior-2021 | 890902fa13336742200c1fe928f3f27e2d9dc848 | [
"MIT"
] | 3 | 2021-08-06T18:17:30.000Z | 2021-08-08T00:37:11.000Z | """TODO."""
from flask import Flask
import requests
app = Flask("ZADZ")
| 9.375 | 23 | 0.666667 | 10 | 75 | 5 | 0.7 | 0.44 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173333 | 75 | 7 | 24 | 10.714286 | 0.806452 | 0.066667 | 0 | 0 | 0 | 0 | 0.063492 | 0 | 0 | 0 | 0 | 0.142857 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
0bef27ea4add482f8f8ed344205bd14221eb5c91 | 11,232 | py | Python | algorithms/common/buffer/priortized_replay_buffer.py | ur1ove/rl_algorithms | 3e7a554d5ea83b4c19bad7a51d4867cacc986aa9 | [
"MIT"
] | 1 | 2021-04-28T13:20:23.000Z | 2021-04-28T13:20:23.000Z | algorithms/common/buffer/priortized_replay_buffer.py | ur1ove/rl_algorithms | 3e7a554d5ea83b4c19bad7a51d4867cacc986aa9 | [
"MIT"
] | null | null | null | algorithms/common/buffer/priortized_replay_buffer.py | ur1ove/rl_algorithms | 3e7a554d5ea83b4c19bad7a51d4867cacc986aa9 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Prioritized Replay buffer for algorithms.
- Author: Kh Kim
- Contact: kh.kim@medipixel.io
- Paper: https://arxiv.org/pdf/1511.05952.pdf
https://arxiv.org/pdf/1707.08817.pdf
"""
import random
from typing import Tuple
import numpy as np
import torch
from algorithms.common.buffer.re... | 36.232258 | 87 | 0.60933 | 1,406 | 11,232 | 4.715505 | 0.117354 | 0.024284 | 0.028205 | 0.041629 | 0.824133 | 0.804374 | 0.794419 | 0.775716 | 0.768175 | 0.730166 | 0 | 0.009817 | 0.283565 | 11,232 | 309 | 88 | 36.349515 | 0.814092 | 0.239049 | 0 | 0.659341 | 0 | 0 | 0.001089 | 0 | 0 | 0 | 0 | 0 | 0.054945 | 1 | 0.06044 | false | 0 | 0.032967 | 0 | 0.131868 | 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 |
0bfdb534036acad71854e9f0a6867d4acc506e91 | 217 | py | Python | src/spaceone/statistics/service/__init__.py | whdalsrnt/statistics | 7401ad6753e3b6ee3942b5036d1e5214d8930cb3 | [
"Apache-2.0"
] | 7 | 2020-06-04T23:01:03.000Z | 2021-06-22T07:06:28.000Z | src/spaceone/statistics/service/__init__.py | whdalsrnt/statistics | 7401ad6753e3b6ee3942b5036d1e5214d8930cb3 | [
"Apache-2.0"
] | 3 | 2020-08-20T01:49:08.000Z | 2022-03-23T09:02:18.000Z | src/spaceone/statistics/service/__init__.py | whdalsrnt/statistics | 7401ad6753e3b6ee3942b5036d1e5214d8930cb3 | [
"Apache-2.0"
] | 6 | 2020-06-10T02:00:24.000Z | 2021-12-03T06:02:36.000Z | from spaceone.statistics.service.resource_service import ResourceService
from spaceone.statistics.service.schedule_service import ScheduleService
from spaceone.statistics.service.history_service import HistoryService
| 54.25 | 72 | 0.903226 | 24 | 217 | 8.041667 | 0.458333 | 0.186529 | 0.341969 | 0.450777 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0553 | 217 | 3 | 73 | 72.333333 | 0.941463 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
04161d4d0febea4bd4f06e39fdf4d2d998aa9bbe | 26 | py | Python | hephaestus/__init__.py | expobrain/efesto | 76b0ca5fa550745f835da54e7eb11d3474e49921 | [
"MIT"
] | 2 | 2019-10-09T12:09:08.000Z | 2019-10-25T23:29:29.000Z | hephaestus/__init__.py | expobrain/efesto | 76b0ca5fa550745f835da54e7eb11d3474e49921 | [
"MIT"
] | null | null | null | hephaestus/__init__.py | expobrain/efesto | 76b0ca5fa550745f835da54e7eb11d3474e49921 | [
"MIT"
] | null | null | null | from .hephaestus import *
| 13 | 25 | 0.769231 | 3 | 26 | 6.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 26 | 1 | 26 | 26 | 0.909091 | 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 |
0430f7df8a9fdb45180044b5948b6a4781f46f25 | 103 | py | Python | plugins/memorypercent.py | Smarties89/thematrixmonitor | f76d01af19241ec6846ce81e4f21368bde7b55ae | [
"MIT"
] | null | null | null | plugins/memorypercent.py | Smarties89/thematrixmonitor | f76d01af19241ec6846ce81e4f21368bde7b55ae | [
"MIT"
] | null | null | null | plugins/memorypercent.py | Smarties89/thematrixmonitor | f76d01af19241ec6846ce81e4f21368bde7b55ae | [
"MIT"
] | null | null | null | #!/usr/bin/python
import psutil
def memorypercent():
return str(psutil.virtual_memory().percent)
| 14.714286 | 47 | 0.737864 | 13 | 103 | 5.769231 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126214 | 103 | 6 | 48 | 17.166667 | 0.833333 | 0.15534 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | true | 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 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 6 |
f09923a5ade6a4817adb8458e2fb628e1d0e58cd | 11,896 | py | Python | cache_dependencies/tests/test_dependencies.py | Tusky/cache-dependencies | 6c19d0c2adfce19c3fdc53ad5704eddc6d84e106 | [
"BSD-3-Clause"
] | 3 | 2017-08-08T20:06:56.000Z | 2018-09-19T03:16:20.000Z | cache_dependencies/tests/test_dependencies.py | Tusky/cache-dependencies | 6c19d0c2adfce19c3fdc53ad5704eddc6d84e106 | [
"BSD-3-Clause"
] | 1 | 2017-10-24T23:11:32.000Z | 2017-10-24T23:11:32.000Z | cache_dependencies/tests/test_dependencies.py | Tusky/cache-dependencies | 6c19d0c2adfce19c3fdc53ad5704eddc6d84e106 | [
"BSD-3-Clause"
] | 8 | 2017-10-24T07:43:56.000Z | 2021-06-17T07:03:02.000Z | import time
import unittest
from cache_dependencies import dependencies, exceptions, interfaces, utils
from cache_dependencies.tests import helpers
try:
from unittest import mock
except ImportError:
import mock
class AbstractTagsDependencyTestCase(unittest.TestCase):
"""Abstract class.
See http://st... | 40.739726 | 107 | 0.670898 | 1,308 | 11,896 | 5.88685 | 0.100153 | 0.085714 | 0.059091 | 0.068571 | 0.844805 | 0.830519 | 0.813377 | 0.813377 | 0.777922 | 0.77039 | 0 | 0.012124 | 0.237307 | 11,896 | 291 | 108 | 40.879725 | 0.836548 | 0.02421 | 0 | 0.597403 | 0 | 0 | 0.026493 | 0.005696 | 0.004329 | 0 | 0 | 0 | 0.121212 | 1 | 0.060606 | false | 0 | 0.030303 | 0.008658 | 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 |
f0f586feb42e66d503fe57cebfcc6e1a1a12f92a | 144 | py | Python | notebooks/env.py | praisethemoon/boltzmann-machines | bc49ba2c8c6c894af55b272e1b92f9cea3576136 | [
"MIT"
] | 196 | 2019-03-16T14:50:49.000Z | 2022-03-31T03:24:00.000Z | notebooks/env.py | praisethemoon/boltzmann-machines | bc49ba2c8c6c894af55b272e1b92f9cea3576136 | [
"MIT"
] | 6 | 2019-04-09T07:33:01.000Z | 2019-11-27T21:37:37.000Z | notebooks/env.py | praisethemoon/boltzmann-machines | bc49ba2c8c6c894af55b272e1b92f9cea3576136 | [
"MIT"
] | 49 | 2019-03-16T14:51:04.000Z | 2022-03-10T13:47:40.000Z | import sys
import os.path as path
# prepend parent directory to sys.path
sys.path.insert(0, path.dirname(path.dirname(path.abspath(__file__))))
| 28.8 | 70 | 0.784722 | 24 | 144 | 4.541667 | 0.583333 | 0.12844 | 0.275229 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007692 | 0.097222 | 144 | 4 | 71 | 36 | 0.830769 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
0b1177923a29c61eb14e21ba041e0f5a92897e2b | 42 | py | Python | apps/strategy/tests.py | ycheng-aa/gated_launch_backend | cbb9e7e530ab28d5914276e9607ebfcf84be6433 | [
"MIT"
] | null | null | null | apps/strategy/tests.py | ycheng-aa/gated_launch_backend | cbb9e7e530ab28d5914276e9607ebfcf84be6433 | [
"MIT"
] | null | null | null | apps/strategy/tests.py | ycheng-aa/gated_launch_backend | cbb9e7e530ab28d5914276e9607ebfcf84be6433 | [
"MIT"
] | null | null | null | # Create your tests here.
# no tests here
| 14 | 25 | 0.714286 | 7 | 42 | 4.285714 | 0.714286 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.214286 | 42 | 2 | 26 | 21 | 0.909091 | 0.880952 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
0b1b29029735c4ae8ed7f2f910b0c945e178a76b | 192 | py | Python | agents/agent/__init__.py | 594zyc/alfworld | 704922821fb0a2ff92dfc3f3a5033ba498cb3932 | [
"MIT"
] | 1 | 2021-04-25T08:50:11.000Z | 2021-04-25T08:50:11.000Z | agents/agent/__init__.py | 594zyc/alfworld | 704922821fb0a2ff92dfc3f3a5033ba498cb3932 | [
"MIT"
] | null | null | null | agents/agent/__init__.py | 594zyc/alfworld | 704922821fb0a2ff92dfc3f3a5033ba498cb3932 | [
"MIT"
] | null | null | null | from agent.base_agent import BaseAgent
from agent.text_dagger_agent import TextDAggerAgent
from agent.text_dqn_agent import TextDQNAgent
from agent.vision_dagger_agent import VisionDAggerAgent | 48 | 55 | 0.901042 | 27 | 192 | 6.148148 | 0.444444 | 0.216867 | 0.156627 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078125 | 192 | 4 | 55 | 48 | 0.937853 | 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 |
9bfccdf37ed5940305d1b03b50cbf00d1ae45c24 | 223 | py | Python | devices/sensor/motion.py | volmart/domoticz-zigbee2mqtt-plugin | 1b86236cff618b58adceea8a417eff5a92eee548 | [
"MIT"
] | null | null | null | devices/sensor/motion.py | volmart/domoticz-zigbee2mqtt-plugin | 1b86236cff618b58adceea8a417eff5a92eee548 | [
"MIT"
] | null | null | null | devices/sensor/motion.py | volmart/domoticz-zigbee2mqtt-plugin | 1b86236cff618b58adceea8a417eff5a92eee548 | [
"MIT"
] | null | null | null | from devices.boolean_sensor import BooleanSensor
class MotionSensor(BooleanSensor):
def __init__(self, devices, alias, value_key):
super().__init__(devices, alias, value_key, BooleanSensor.SENSOR_TYPE_MOTION)
| 31.857143 | 85 | 0.784753 | 26 | 223 | 6.230769 | 0.653846 | 0.148148 | 0.209877 | 0.246914 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130045 | 223 | 6 | 86 | 37.166667 | 0.835052 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 6 |
500da5a6b26a0a655f14f816247e9e1940c01bb6 | 62 | py | Python | tests/test_yunxuanliao_finalproject.py | 17nicolel/yunxuanliao_finalproject | 89919af9fee05766124934773fe3867d0319626e | [
"MIT"
] | null | null | null | tests/test_yunxuanliao_finalproject.py | 17nicolel/yunxuanliao_finalproject | 89919af9fee05766124934773fe3867d0319626e | [
"MIT"
] | null | null | null | tests/test_yunxuanliao_finalproject.py | 17nicolel/yunxuanliao_finalproject | 89919af9fee05766124934773fe3867d0319626e | [
"MIT"
] | null | null | null | from yunxuanliao_finalproject import yunxuanliao_finalproject
| 31 | 61 | 0.935484 | 6 | 62 | 9.333333 | 0.666667 | 0.821429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064516 | 62 | 1 | 62 | 62 | 0.965517 | 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 |
5012d71c63448b312cd727f122c53e6789ad2325 | 11,710 | py | Python | utils/datasets.py | jonasnoll/s2t-sim | 952dba503d5d04316f054b8c5777af637d28f329 | [
"MIT"
] | null | null | null | utils/datasets.py | jonasnoll/s2t-sim | 952dba503d5d04316f054b8c5777af637d28f329 | [
"MIT"
] | null | null | null | utils/datasets.py | jonasnoll/s2t-sim | 952dba503d5d04316f054b8c5777af637d28f329 | [
"MIT"
] | null | null | null | import os
import numpy as np
import scipy.io
import h5py
from PIL import Image
from PIL import ImageFile
import torch
import torchvision
import torchvision.transforms as transforms
from torch.utils.data import Dataset, Subset
# Adapted DomainNet for reasonable class sizes >= 200, left:
domain_net_targets = ['sea_turtl... | 31.648649 | 127 | 0.569001 | 1,451 | 11,710 | 4.425224 | 0.10958 | 0.061673 | 0.03364 | 0.028344 | 0.795515 | 0.773867 | 0.763277 | 0.763277 | 0.763277 | 0.763277 | 0 | 0.005212 | 0.311785 | 11,710 | 369 | 128 | 31.734417 | 0.791537 | 0.035184 | 0 | 0.72119 | 0 | 0 | 0.057163 | 0.019883 | 0 | 0 | 0 | 0 | 0.007435 | 1 | 0.144981 | false | 0 | 0.037175 | 0.037175 | 0.330855 | 0.026022 | 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 |
50194d76c225708c1147b10961cf46d894f94a05 | 34 | py | Python | pyo3typeerror/__init__.py | mre/pyo3typeerror | 5615fcd86dcbacc93dfaed5d0373e3b40def168f | [
"Apache-2.0",
"MIT"
] | null | null | null | pyo3typeerror/__init__.py | mre/pyo3typeerror | 5615fcd86dcbacc93dfaed5d0373e3b40def168f | [
"Apache-2.0",
"MIT"
] | null | null | null | pyo3typeerror/__init__.py | mre/pyo3typeerror | 5615fcd86dcbacc93dfaed5d0373e3b40def168f | [
"Apache-2.0",
"MIT"
] | null | null | null | from ._pyo3typeerror import loads
| 17 | 33 | 0.852941 | 4 | 34 | 7 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033333 | 0.117647 | 34 | 1 | 34 | 34 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
5059abd8989b41397affe06d2bbf0a94d30e4fcc | 147 | py | Python | sparc/requests/testing.py | davisd50/sparc.requests | 9895c8ba8806d5049aed7586b7c2fb69b42e31a6 | [
"MIT"
] | null | null | null | sparc/requests/testing.py | davisd50/sparc.requests | 9895c8ba8806d5049aed7586b7c2fb69b42e31a6 | [
"MIT"
] | null | null | null | sparc/requests/testing.py | davisd50/sparc.requests | 9895c8ba8806d5049aed7586b7c2fb69b42e31a6 | [
"MIT"
] | null | null | null | import sparc.requests
from sparc.testing.testlayer import SparcZCMLFileLayer
SPARC_REQUESTS_INTEGRATION_LAYER = SparcZCMLFileLayer(sparc.requests) | 36.75 | 69 | 0.891156 | 16 | 147 | 8 | 0.5625 | 0.304688 | 0.484375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061224 | 147 | 4 | 69 | 36.75 | 0.927536 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
505e9e9bdf458d46a68bfe5b17a45459c7b05b74 | 3,418 | py | Python | rigid_body_motion/coordinate_systems.py | phausamann/rigid-body-motion | 2d4fbb1b949cc0b609a59877d7539af75dad6861 | [
"MIT"
] | 8 | 2021-05-20T02:24:07.000Z | 2022-03-05T17:15:11.000Z | rigid_body_motion/coordinate_systems.py | phausamann/rigid-body-motion | 2d4fbb1b949cc0b609a59877d7539af75dad6861 | [
"MIT"
] | 10 | 2019-06-13T09:36:15.000Z | 2022-01-17T16:55:05.000Z | rigid_body_motion/coordinate_systems.py | phausamann/rigid-body-motion | 2d4fbb1b949cc0b609a59877d7539af75dad6861 | [
"MIT"
] | 1 | 2021-08-13T10:24:31.000Z | 2021-08-13T10:24:31.000Z | """"""
import numpy as np
def cartesian_to_polar(arr, axis=-1):
""" Transform cartesian to polar coordinates in two dimensions.
Parameters
----------
arr : array_like
Input array.
axis : int, default -1
Axis of input array representing x and y in cartesian coordinates.
Mus... | 27.344 | 77 | 0.577238 | 483 | 3,418 | 4.043478 | 0.136646 | 0.110599 | 0.078341 | 0.035842 | 0.875064 | 0.875064 | 0.803379 | 0.779826 | 0.716334 | 0.716334 | 0 | 0.021014 | 0.289936 | 3,418 | 124 | 78 | 27.564516 | 0.783684 | 0.394675 | 0 | 0.510638 | 0 | 0 | 0.152672 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085106 | false | 0 | 0.021277 | 0 | 0.191489 | 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 |
acaff6d6e7b77b75738e58aa535ee3ce248ec973 | 33 | py | Python | plugins/hw_wallet/__init__.py | seci-nect/electrum-seci | bccffc80c2cdecd8415fe1e0415fbd286d62be36 | [
"MIT"
] | 59 | 2015-11-01T04:47:19.000Z | 2020-12-27T16:34:48.000Z | plugins/hw_wallet/__init__.py | jcalfee/electrum | 0a943d53ecac271c4156dd337600cd604bfcdce2 | [
"MIT"
] | 73 | 2016-01-06T22:39:39.000Z | 2019-02-11T13:47:51.000Z | plugins/hw_wallet/__init__.py | jcalfee/electrum | 0a943d53ecac271c4156dd337600cd604bfcdce2 | [
"MIT"
] | 76 | 2015-10-26T19:09:20.000Z | 2022-03-27T18:51:27.000Z | from plugin import HW_PluginBase
| 16.5 | 32 | 0.878788 | 5 | 33 | 5.6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121212 | 33 | 1 | 33 | 33 | 0.965517 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
c5d1d1b86bf3bdcb3ec08d34977098d33c7f38d4 | 9,846 | py | Python | layers.py | Gladys-Zhao/mRNN-mLSTM | 23499f237ea8b0f68c96f756fbf0f4028836e64c | [
"BSD-3-Clause"
] | 15 | 2020-06-17T06:40:00.000Z | 2021-11-18T09:08:23.000Z | layers.py | Gladys-Zhao/mRNN-mLSTM | 23499f237ea8b0f68c96f756fbf0f4028836e64c | [
"BSD-3-Clause"
] | null | null | null | layers.py | Gladys-Zhao/mRNN-mLSTM | 23499f237ea8b0f68c96f756fbf0f4028836e64c | [
"BSD-3-Clause"
] | 3 | 2020-07-17T09:00:44.000Z | 2021-11-18T09:08:24.000Z | #Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
#This program is free software; you can redistribute it and/or modify it under the terms of the BSD 3-Clause License.
#This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty... | 42.808696 | 228 | 0.591205 | 1,441 | 9,846 | 3.862595 | 0.10687 | 0.123967 | 0.085519 | 0.061444 | 0.833992 | 0.793209 | 0.777758 | 0.765002 | 0.765002 | 0.750629 | 0 | 0.016113 | 0.281434 | 9,846 | 229 | 229 | 42.995633 | 0.770601 | 0.049259 | 0 | 0.657754 | 0 | 0 | 0.00811 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085562 | false | 0 | 0.02139 | 0.02139 | 0.203209 | 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 |
c5e902d9c85946eefd2e1219389ab8e478ac5855 | 16,334 | py | Python | bayes_vi/inference/mcmc/transition_kernels.py | MaxGrtz/bayesian-inference | 3cea7627d3f942f5a3f228e23f80149a8afeb8aa | [
"MIT"
] | null | null | null | bayes_vi/inference/mcmc/transition_kernels.py | MaxGrtz/bayesian-inference | 3cea7627d3f942f5a3f228e23f80149a8afeb8aa | [
"MIT"
] | null | null | null | bayes_vi/inference/mcmc/transition_kernels.py | MaxGrtz/bayesian-inference | 3cea7627d3f942f5a3f228e23f80149a8afeb8aa | [
"MIT"
] | null | null | null | """Module providing different Markov transition kernels."""
import functools
import tensorflow_probability as tfp
from bayes_vi.inference.mcmc.stepsize_adaptation_kernels import StepSizeAdaptationKernel
tfb = tfp.bijectors
class TransitionKernel:
"""Base class for Markov transition Kernels."""
def __init... | 49.95107 | 117 | 0.679503 | 1,999 | 16,334 | 5.391196 | 0.129565 | 0.020785 | 0.025981 | 0.01429 | 0.842628 | 0.831307 | 0.795398 | 0.781572 | 0.755312 | 0.742229 | 0 | 0.004435 | 0.254622 | 16,334 | 326 | 118 | 50.104294 | 0.880739 | 0.652443 | 0 | 0.25 | 0 | 0 | 0.042235 | 0.010339 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09 | false | 0 | 0.03 | 0.04 | 0.21 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.