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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d853e55fa271cb28480038221a2b7d39f5828cb0 | 142 | py | Python | pytos/models/album_item.py | thewisenerd/pytos | e350f679257791b563e8e02e109b158f5250e4a2 | [
"MIT"
] | null | null | null | pytos/models/album_item.py | thewisenerd/pytos | e350f679257791b563e8e02e109b158f5250e4a2 | [
"MIT"
] | null | null | null | pytos/models/album_item.py | thewisenerd/pytos | e350f679257791b563e8e02e109b158f5250e4a2 | [
"MIT"
] | null | null | null | class AlbumItem:
def __init__(self, album_id, media_item_id):
self.album_id = album_id
self.media_item_id = media_item_id
| 28.4 | 48 | 0.704225 | 22 | 142 | 3.954545 | 0.409091 | 0.241379 | 0.37931 | 0.298851 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.225352 | 142 | 4 | 49 | 35.5 | 0.790909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
d870b0a9a226507921dd2c20fe94ac374dbf0d64 | 10,587 | py | Python | cfn_policy_validator/tests/parsers_tests/resource_tests/test_sqs.py | awslabs/aws-cloudformation-iam-policy-validator | 52c1439e4d76d2c7d45c97563cc87f8458134e0b | [
"MIT-0"
] | 41 | 2021-09-30T01:28:51.000Z | 2022-03-24T09:42:09.000Z | cfn_policy_validator/tests/parsers_tests/resource_tests/test_sqs.py | awslabs/aws-cloudformation-iam-policy-validator | 52c1439e4d76d2c7d45c97563cc87f8458134e0b | [
"MIT-0"
] | 10 | 2021-09-30T08:13:11.000Z | 2022-03-22T07:34:41.000Z | cfn_policy_validator/tests/parsers_tests/resource_tests/test_sqs.py | awslabs/aws-cloudformation-iam-policy-validator | 52c1439e4d76d2c7d45c97563cc87f8458134e0b | [
"MIT-0"
] | 3 | 2021-11-29T21:13:30.000Z | 2022-02-04T12:49:40.000Z | """
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
SPDX-License-Identifier: MIT-0
"""
import copy
import unittest
from cfn_policy_validator.parsers.resource.parser import ResourceParser
from cfn_policy_validator.parsers.output import Resource, Policy
from cfn_policy_validator.tests.parsers_tests im... | 31.046921 | 134 | 0.707944 | 1,182 | 10,587 | 6.116751 | 0.131134 | 0.019917 | 0.027386 | 0.040664 | 0.843845 | 0.826279 | 0.818949 | 0.814385 | 0.793638 | 0.758921 | 0 | 0.022616 | 0.148012 | 10,587 | 340 | 135 | 31.138235 | 0.778936 | 0.025503 | 0 | 0.642857 | 0 | 0.014286 | 0.310536 | 0.056752 | 0 | 0 | 0 | 0 | 0.092857 | 1 | 0.046429 | false | 0 | 0.025 | 0 | 0.089286 | 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 |
d874d6c24a930c773c252a5304ba19dbed9d099a | 18,105 | py | Python | tests/test_wow_profile_api.py | trevorphillipscoding/python-blizzardapi | e98e1ee38f4b336bc99baa668691c842a090109c | [
"MIT"
] | 10 | 2020-12-03T14:23:56.000Z | 2022-02-01T10:48:42.000Z | tests/test_wow_profile_api.py | trevorphillipscoding/python-blizzardapi | e98e1ee38f4b336bc99baa668691c842a090109c | [
"MIT"
] | 65 | 2020-12-24T02:09:56.000Z | 2022-03-28T20:09:01.000Z | tests/test_wow_profile_api.py | trevorphillips/python-blizzardapi | 92921abd44dbf684ff8b8c06c8dc74539d2e4721 | [
"MIT"
] | 6 | 2021-06-24T17:37:55.000Z | 2022-02-17T20:36:23.000Z | from blizzardapi import BlizzardApi
class TestWowProfileApi(object):
def setup(self):
self.api = BlizzardApi("client_id", "client_secret")
self.api.wow.profile._access_token = "access_token"
# Account Profile API
def test_get_account_profile_summary(self, success_response_mock):
... | 35.569745 | 115 | 0.597735 | 1,914 | 18,105 | 5.337513 | 0.04232 | 0.080756 | 0.126468 | 0.058242 | 0.878328 | 0.821359 | 0.777114 | 0.761257 | 0.757244 | 0.757244 | 0 | 0.00123 | 0.281801 | 18,105 | 508 | 116 | 35.639764 | 0.784434 | 0.02375 | 0 | 0.516055 | 0 | 0.06422 | 0.287721 | 0 | 0 | 0 | 0 | 0 | 0.077982 | 1 | 0.080275 | false | 0 | 0.002294 | 0 | 0.084862 | 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 |
d877cd0f7c0a883bd1a8dce6c8d8c65be596a289 | 54,678 | py | Python | mi/tests/test_sector_views.py | uktrade/export-wins-data | 46caa444812e89abe504bec8c15aa7f7ba1a247e | [
"MIT"
] | 5 | 2016-09-12T12:52:45.000Z | 2020-03-24T14:43:13.000Z | mi/tests/test_sector_views.py | uktrade/export-wins-data | 46caa444812e89abe504bec8c15aa7f7ba1a247e | [
"MIT"
] | 435 | 2016-10-18T12:51:39.000Z | 2021-06-09T17:22:08.000Z | mi/tests/test_sector_views.py | uktrade/export-wins-data | 46caa444812e89abe504bec8c15aa7f7ba1a247e | [
"MIT"
] | 2 | 2016-12-06T10:37:21.000Z | 2017-02-22T17:27:43.000Z | import datetime
from django.core.management import call_command
from django.utils.timezone import get_current_timezone
from freezegun import freeze_time
import json
from dateutil.relativedelta import relativedelta
from django.urls import reverse
from factory.fuzzy import FuzzyDate
from jmespath import search as s
f... | 47.963158 | 120 | 0.618055 | 6,421 | 54,678 | 4.961688 | 0.058091 | 0.059041 | 0.051791 | 0.050002 | 0.81302 | 0.782793 | 0.761512 | 0.743244 | 0.736338 | 0.7219 | 0 | 0.029306 | 0.267969 | 54,678 | 1,139 | 121 | 48.005268 | 0.766652 | 0.085702 | 0 | 0.547541 | 0 | 0 | 0.115959 | 0.009066 | 0 | 0 | 0 | 0 | 0.128962 | 1 | 0.078689 | false | 0 | 0.019672 | 0 | 0.134426 | 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 |
d8a97482bc86684b0a27fa53ed3568a125bf1638 | 122 | py | Python | DeBERTa/utils/__init__.py | vilhub/DeBERTa | 87580930689ec9f75ef8dbebba367953ed3dfe63 | [
"MIT"
] | 916 | 2020-06-09T01:32:41.000Z | 2022-03-31T10:14:33.000Z | DeBERTa/utils/__init__.py | Dinuda/DeBERTa | 8da79ae4804859ddcdefc2c49f3cb7b4e9b85a05 | [
"MIT"
] | 77 | 2020-06-27T15:48:25.000Z | 2022-03-30T20:52:58.000Z | DeBERTa/utils/__init__.py | Dinuda/DeBERTa | 8da79ae4804859ddcdefc2c49f3cb7b4e9b85a05 | [
"MIT"
] | 123 | 2020-06-09T01:54:53.000Z | 2022-03-30T13:22:41.000Z | """
utils
@Author: penhe@microsoft.com
"""
from .logger_util import *
from .argument_types import *
from .xtqdm import *
| 13.555556 | 29 | 0.721311 | 16 | 122 | 5.375 | 0.75 | 0.232558 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147541 | 122 | 8 | 30 | 15.25 | 0.826923 | 0.278689 | 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 |
d8afe0dd573c75ce3c85433ebb918708cd58b488 | 92 | py | Python | etlalchemy/__init__.py | hvgab/etlalchemy | 9766138094ba6a606894c6f794a01a2bc5a6a1e0 | [
"MIT"
] | 525 | 2016-07-28T12:05:47.000Z | 2022-03-26T12:50:53.000Z | etlalchemy/__init__.py | hvgab/etlalchemy | 9766138094ba6a606894c6f794a01a2bc5a6a1e0 | [
"MIT"
] | 52 | 2016-09-23T21:39:06.000Z | 2022-03-13T13:37:55.000Z | etlalchemy/__init__.py | hvgab/etlalchemy | 9766138094ba6a606894c6f794a01a2bc5a6a1e0 | [
"MIT"
] | 84 | 2016-09-01T06:01:12.000Z | 2022-03-12T10:43:54.000Z | from ETLAlchemySource import ETLAlchemySource
from ETLAlchemyTarget import ETLAlchemyTarget
| 30.666667 | 45 | 0.913043 | 8 | 92 | 10.5 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086957 | 92 | 2 | 46 | 46 | 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 |
d8b25e7c8c1b8d60946db303d1031cbe71b898fe | 161 | py | Python | qualitymeter/refactoring_opportunities/pushdown_field_identification.py | hamidm21/QualityMeter | 2b0645662634b267338b91141740db45bf8f17ad | [
"MIT"
] | 1 | 2022-03-04T06:00:44.000Z | 2022-03-04T06:00:44.000Z | qualitymeter/refactoring_opportunities/pushdown_field_identification.py | hamidm21/QualityMeter | 2b0645662634b267338b91141740db45bf8f17ad | [
"MIT"
] | 5 | 2021-11-18T14:06:21.000Z | 2021-12-24T16:19:15.000Z | qualitymeter/refactoring_opportunities/pushdown_field_identification.py | hamidm21/QualityMeter | 2b0645662634b267338b91141740db45bf8f17ad | [
"MIT"
] | 20 | 2021-11-15T05:06:47.000Z | 2022-02-14T13:35:56.000Z | """
The module identify push-down field refactoring opportunities in Java projects
"""
# Todo: Implementing a decent push-down field identification algorithm.
| 23 | 78 | 0.78882 | 20 | 161 | 6.35 | 0.85 | 0.125984 | 0.204724 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 161 | 6 | 79 | 26.833333 | 0.92029 | 0.925466 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0.166667 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
d8c0b64ce0db4024b2c769e37642fadc4fc75194 | 2,938 | py | Python | grListener.py | rgferrari/RegEx-Parser | 09f1da6235ea7e80123da4109d7a617273bec265 | [
"MIT"
] | null | null | null | grListener.py | rgferrari/RegEx-Parser | 09f1da6235ea7e80123da4109d7a617273bec265 | [
"MIT"
] | null | null | null | grListener.py | rgferrari/RegEx-Parser | 09f1da6235ea7e80123da4109d7a617273bec265 | [
"MIT"
] | null | null | null | # Generated from gr.g4 by ANTLR 4.8
from antlr4 import *
if __name__ is not None and "." in __name__:
from .grParser import grParser
else:
from grParser import grParser
# This class defines a complete listener for a parse tree produced by grParser.
class grListener(ParseTreeListener):
# Enter a parse tree... | 26.468468 | 79 | 0.687202 | 392 | 2,938 | 5.068878 | 0.201531 | 0.069451 | 0.115752 | 0.208354 | 0.801711 | 0.626573 | 0.56618 | 0.518369 | 0.229995 | 0 | 0 | 0.001792 | 0.2403 | 2,938 | 111 | 80 | 26.468468 | 0.888441 | 0.378489 | 0 | 0.431373 | 1 | 0 | 0.000562 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.431373 | false | 0.431373 | 0.058824 | 0 | 0.509804 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 6 |
d8e05f5e2b1bab83ba9e026dff4290264c125d90 | 30 | py | Python | bibliograph/__init__.py | shortorian/bibliograph | 8aeb48d0451b7d4132bf683328549428678c2e66 | [
"MIT"
] | 2 | 2022-03-12T18:55:31.000Z | 2022-03-15T02:57:32.000Z | bibliograph/__init__.py | shortorian/bibliograph | 8aeb48d0451b7d4132bf683328549428678c2e66 | [
"MIT"
] | null | null | null | bibliograph/__init__.py | shortorian/bibliograph | 8aeb48d0451b7d4132bf683328549428678c2e66 | [
"MIT"
] | null | null | null |
from .citnet import citnet
| 6 | 26 | 0.733333 | 4 | 30 | 5.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.233333 | 30 | 4 | 27 | 7.5 | 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 |
d8f579a188bd6f5da38ae81895098a27a56f90c8 | 182 | py | Python | pypv/lib/quantities/__init__.py | TomLXXVI/pypv | df3dfba586bdec171e3fa9795b7bae48f76f83f2 | [
"MIT"
] | null | null | null | pypv/lib/quantities/__init__.py | TomLXXVI/pypv | df3dfba586bdec171e3fa9795b7bae48f76f83f2 | [
"MIT"
] | null | null | null | pypv/lib/quantities/__init__.py | TomLXXVI/pypv | df3dfba586bdec171e3fa9795b7bae48f76f83f2 | [
"MIT"
] | 1 | 2022-03-09T06:26:28.000Z | 2022-03-09T06:26:28.000Z | from .date_time import Date
from .date_time import Time
from .date_time import DateTime
from .date_time import TimeDelta
from .date_time import ANY_YEAR
from .geometry import Angle
| 22.75 | 32 | 0.82967 | 30 | 182 | 4.833333 | 0.333333 | 0.275862 | 0.413793 | 0.62069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137363 | 182 | 7 | 33 | 26 | 0.923567 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 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 |
2b4520c6822cc08d65fa7f99ecb0138f78aa384e | 24 | py | Python | sghmc/__init__.py | shttksm/SGHMC | c6ce0ea77de0eb731a1844ff5d7d8760cac5fd8e | [
"MIT"
] | null | null | null | sghmc/__init__.py | shttksm/SGHMC | c6ce0ea77de0eb731a1844ff5d7d8760cac5fd8e | [
"MIT"
] | null | null | null | sghmc/__init__.py | shttksm/SGHMC | c6ce0ea77de0eb731a1844ff5d7d8760cac5fd8e | [
"MIT"
] | null | null | null | from .sghmc import sghmc | 24 | 24 | 0.833333 | 4 | 24 | 5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 24 | 1 | 24 | 24 | 0.952381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
2b5bb052eec78d5f00d6b4ae03cf06f427db34be | 32 | py | Python | moneywave/__init__.py | alekaizer/moneywave-python | 164e80d46ccd147fa5cdeeb7e3b477fe993e5219 | [
"MIT"
] | 1 | 2017-11-29T17:51:49.000Z | 2017-11-29T17:51:49.000Z | moneywave/__init__.py | alekaizer/moneywave-python | 164e80d46ccd147fa5cdeeb7e3b477fe993e5219 | [
"MIT"
] | null | null | null | moneywave/__init__.py | alekaizer/moneywave-python | 164e80d46ccd147fa5cdeeb7e3b477fe993e5219 | [
"MIT"
] | null | null | null | from .moneywave import MoneyWave | 32 | 32 | 0.875 | 4 | 32 | 7 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09375 | 32 | 1 | 32 | 32 | 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 |
2b7b31035357bf82fd5997ed9e8181595bff33b2 | 5,669 | py | Python | riptable/tests/test_cut.py | zeneli/riptable | 24cc8cfdaff97087f05ef4277717cceb9b075068 | [
"BSD-2-Clause-Patent"
] | null | null | null | riptable/tests/test_cut.py | zeneli/riptable | 24cc8cfdaff97087f05ef4277717cceb9b075068 | [
"BSD-2-Clause-Patent"
] | null | null | null | riptable/tests/test_cut.py | zeneli/riptable | 24cc8cfdaff97087f05ef4277717cceb9b075068 | [
"BSD-2-Clause-Patent"
] | null | null | null | import unittest
import numpy as np
from riptable import cut, qcut, FA, Categorical, FastArray, arange
class Cut_Test(unittest.TestCase):
'''
TODO: add more tests for different types
also include string types
'''
def test_cut(self):
c = cut(arange(10), 3)
self.assert... | 35.43125 | 84 | 0.447345 | 865 | 5,669 | 2.872832 | 0.105202 | 0.219718 | 0.136821 | 0.137626 | 0.765392 | 0.757344 | 0.724346 | 0.705433 | 0.690543 | 0.68008 | 0 | 0.106297 | 0.344505 | 5,669 | 159 | 85 | 35.654088 | 0.562433 | 0.014641 | 0 | 0.496 | 0 | 0 | 0.05049 | 0 | 0 | 0 | 0 | 0.006289 | 0.416 | 1 | 0.024 | false | 0 | 0.024 | 0 | 0.056 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
99126230c6854b34c06593ddb5ffdf718e660421 | 139 | py | Python | test_project/test_app/__init__.py | Fwhiteiv/django-twilio | bdb72bd8af46f96c97655cc9021cf9f1f9f26ae1 | [
"Unlicense"
] | 173 | 2015-01-13T00:56:18.000Z | 2022-03-29T14:16:51.000Z | test_project/test_app/__init__.py | Fwhiteiv/django-twilio | bdb72bd8af46f96c97655cc9021cf9f1f9f26ae1 | [
"Unlicense"
] | 76 | 2015-01-11T23:48:35.000Z | 2022-03-18T03:28:50.000Z | test_project/test_app/__init__.py | Fwhiteiv/django-twilio | bdb72bd8af46f96c97655cc9021cf9f1f9f26ae1 | [
"Unlicense"
] | 66 | 2015-01-24T11:47:25.000Z | 2022-03-16T23:04:45.000Z | # -*- coding: utf-8 -*-
from .client import *
from .decorators import *
from .models import *
from .views import *
from .request import *
| 17.375 | 25 | 0.676259 | 18 | 139 | 5.222222 | 0.555556 | 0.425532 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00885 | 0.18705 | 139 | 7 | 26 | 19.857143 | 0.823009 | 0.151079 | 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 |
9918375bc7a86e8f49a14bf55a869b86a8e7c764 | 48 | py | Python | library/face_antspoofing/__init__.py | TinDang97/face-anti-spoofing | cb6186fc14955dcda63b84d7aae4b036f4e8ecbc | [
"Apache-2.0"
] | 10 | 2021-04-26T17:33:39.000Z | 2022-01-19T07:50:22.000Z | library/face_antspoofing/__init__.py | TinDang97/face-anti-spoofing | cb6186fc14955dcda63b84d7aae4b036f4e8ecbc | [
"Apache-2.0"
] | 3 | 2021-04-26T16:54:48.000Z | 2021-06-04T09:11:54.000Z | library/face_antspoofing/__init__.py | TinDang97/face-anti-spoofing | cb6186fc14955dcda63b84d7aae4b036f4e8ecbc | [
"Apache-2.0"
] | 5 | 2021-04-27T02:10:54.000Z | 2022-01-19T07:50:23.000Z | from library.face_antspoofing.detector import *
| 24 | 47 | 0.854167 | 6 | 48 | 6.666667 | 1 | 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 |
9929a8805bb188b0568fa6210cf4c41d89fde1b6 | 577 | py | Python | lib/account/account_entity_adapter.py | webclinic017/bitrush | 5d76c98a17bb830dba1bdd103475c120903ded90 | [
"MIT"
] | 1 | 2022-01-09T21:17:23.000Z | 2022-01-09T21:17:23.000Z | lib/account/account_entity_adapter.py | webclinic017/bitrush | 5d76c98a17bb830dba1bdd103475c120903ded90 | [
"MIT"
] | null | null | null | lib/account/account_entity_adapter.py | webclinic017/bitrush | 5d76c98a17bb830dba1bdd103475c120903ded90 | [
"MIT"
] | 1 | 2022-01-09T21:17:17.000Z | 2022-01-09T21:17:17.000Z | from lib.account.account import Account
from lib.account.account_entity import AccountEntity
class AccountEntityAdapter(Account):
account_entity: AccountEntity
def __init__(self, account_entity: AccountEntity):
self.account_entity = account_entity
def get_id(self) -> int:
return self.acc... | 26.227273 | 54 | 0.727903 | 74 | 577 | 5.391892 | 0.27027 | 0.293233 | 0.255639 | 0.230576 | 0.240602 | 0.240602 | 0.165414 | 0 | 0 | 0 | 0 | 0 | 0.197574 | 577 | 21 | 55 | 27.47619 | 0.861771 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.357143 | false | 0 | 0.142857 | 0.285714 | 0.928571 | 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 |
9933b2f85b871201acc4e6b71325c2a486e4cbfc | 230 | py | Python | backend/src/baserow/contrib/database/export/exceptions.py | cjh0613/baserow | 62871f5bf53c9d25446976031aacb706c0abe584 | [
"MIT"
] | 839 | 2020-07-20T13:29:34.000Z | 2022-03-31T21:09:16.000Z | backend/src/baserow/contrib/database/export/exceptions.py | cjh0613/baserow | 62871f5bf53c9d25446976031aacb706c0abe584 | [
"MIT"
] | 28 | 2020-08-07T09:23:58.000Z | 2022-03-01T22:32:40.000Z | backend/src/baserow/contrib/database/export/exceptions.py | cjh0613/baserow | 62871f5bf53c9d25446976031aacb706c0abe584 | [
"MIT"
] | 79 | 2020-08-04T01:48:01.000Z | 2022-03-27T13:30:54.000Z | class ExportJobCanceledException(Exception):
pass
class TableOnlyExportUnsupported(Exception):
pass
class ViewUnsupportedForExporterType(Exception):
pass
class ExportJobDoesNotExistException(Exception):
pass
| 15.333333 | 48 | 0.8 | 16 | 230 | 11.5 | 0.4375 | 0.282609 | 0.293478 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147826 | 230 | 14 | 49 | 16.428571 | 0.938776 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 0 | 1 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 6 |
994cc2b009c9a710987b4adb2b0c3fa961f27eed | 14,751 | py | Python | webapp/tests/forms/steps/lotse_multistep_flow_steps/test_multistep_flow_personal_data_steps.py | digitalservice4germany/steuerlotse | ef3e094e4d7d4768431a50ac4be60672cd03221d | [
"MIT"
] | 20 | 2021-07-02T07:49:08.000Z | 2022-03-18T22:26:10.000Z | webapp/tests/forms/steps/lotse_multistep_flow_steps/test_multistep_flow_personal_data_steps.py | digitalservice4germany/steuerlotse | ef3e094e4d7d4768431a50ac4be60672cd03221d | [
"MIT"
] | 555 | 2021-06-28T15:35:15.000Z | 2022-03-31T11:51:55.000Z | webapp/tests/forms/steps/lotse_multistep_flow_steps/test_multistep_flow_personal_data_steps.py | digitalservice4germany/steuerlotse | ef3e094e4d7d4768431a50ac4be60672cd03221d | [
"MIT"
] | 1 | 2021-07-04T20:34:12.000Z | 2021-07-04T20:34:12.000Z | import unittest
import pytest
from flask import request
from werkzeug.datastructures import MultiDict
from app.utils import VERANLAGUNGSJAHR
from app.forms.steps.lotse_multistep_flow_steps.personal_data_steps import StepFamilienstand, StepIban
class TestFamilienstand(unittest.TestCase):
def setUp(self):
... | 56.734615 | 152 | 0.649786 | 1,464 | 14,751 | 6.159153 | 0.081284 | 0.090052 | 0.035932 | 0.04791 | 0.908284 | 0.908284 | 0.904514 | 0.904514 | 0.900521 | 0.890873 | 0 | 0.0183 | 0.240594 | 14,751 | 259 | 153 | 56.953668 | 0.786645 | 0 | 0 | 0.696429 | 0 | 0 | 0.255779 | 0.159989 | 0 | 0 | 0 | 0 | 0.196429 | 1 | 0.129464 | false | 0 | 0.026786 | 0 | 0.165179 | 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 |
999312743957f3f4618c184ad54dbdd46ae7c291 | 19 | py | Python | logparser/SHISO/__init__.py | CUHK-CSE/logalizer | e8d96cd4de1121c5d2b517982c6028cd06e643f1 | [
"MIT"
] | 859 | 2017-05-06T03:06:22.000Z | 2022-03-31T12:02:29.000Z | logparser/SHISO/__init__.py | mandychenze/logparser | 8f1f1face2c0e270fd9bcecdefe37ebc6ba76e9d | [
"MIT"
] | 71 | 2018-02-24T08:11:32.000Z | 2022-03-15T11:44:29.000Z | logparser/SHISO/__init__.py | mandychenze/logparser | 8f1f1face2c0e270fd9bcecdefe37ebc6ba76e9d | [
"MIT"
] | 445 | 2017-06-19T01:26:16.000Z | 2022-03-29T08:27:17.000Z | from SHISO import * | 19 | 19 | 0.789474 | 3 | 19 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 19 | 1 | 19 | 19 | 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 |
41d9fa195c2423783209ecab6c7bc53304d3de60 | 2,444 | py | Python | scripts/pycairoinstall.py | charlie4fun/manim | 41f6f054e0fce79d8a34b64d93cf9dfd9a134bf2 | [
"MIT"
] | 3 | 2020-10-19T18:16:22.000Z | 2021-05-09T14:49:58.000Z | scripts/pycairoinstall.py | nilaybhatia/manim | 8b1b30b75853446d0403df8abe67d0bd9c8db033 | [
"MIT"
] | null | null | null | scripts/pycairoinstall.py | nilaybhatia/manim | 8b1b30b75853446d0403df8abe67d0bd9c8db033 | [
"MIT"
] | 3 | 2020-09-15T06:02:13.000Z | 2021-11-22T20:50:59.000Z | import platform
import os
import sys
import urllib.request
if "Windows" in platform.system():
ver_num = "1.19.2"
fork = "naveen521kk"
# In case the python version is 3.6 and the system is 32-bit, try pycairo‑{ver_num}‑cp37‑cp37m‑win32.whl version of cairo
if sys.version[:3] == "3.6" and platform.machin... | 56.837209 | 128 | 0.688625 | 413 | 2,444 | 4.046005 | 0.193705 | 0.068223 | 0.070018 | 0.05386 | 0.774985 | 0.774985 | 0.774985 | 0.766607 | 0.732496 | 0.696589 | 0 | 0.065375 | 0.155074 | 2,444 | 42 | 129 | 58.190476 | 0.738015 | 0.295827 | 0 | 0.068966 | 0 | 0.206897 | 0.507001 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.137931 | 0 | 0.137931 | 0.068966 | 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 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
41ffbcdb5b90a4525e5e2433a794da417f7139c7 | 39 | py | Python | ordbhandler/__init__.py | leonardomra/ordbhandler | 1dbe8000b171222c007849b1332bf3e19cdbacec | [
"MIT"
] | null | null | null | ordbhandler/__init__.py | leonardomra/ordbhandler | 1dbe8000b171222c007849b1332bf3e19cdbacec | [
"MIT"
] | null | null | null | ordbhandler/__init__.py | leonardomra/ordbhandler | 1dbe8000b171222c007849b1332bf3e19cdbacec | [
"MIT"
] | null | null | null | from .mysql_handler import MySQLHandler | 39 | 39 | 0.897436 | 5 | 39 | 6.8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 39 | 1 | 39 | 39 | 0.944444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
5adc9e73c61af2aa32eb5da62b000b29d21ce0c9 | 113 | py | Python | bildkedde/__init__.py | RyanHartzell/Bildkette | de314397c0f835ac5ee7a3c4832fa65e086a2bbc | [
"MIT"
] | null | null | null | bildkedde/__init__.py | RyanHartzell/Bildkette | de314397c0f835ac5ee7a3c4832fa65e086a2bbc | [
"MIT"
] | 2 | 2021-09-08T03:13:33.000Z | 2022-01-13T03:44:27.000Z | bildkedde/__init__.py | RyanHartzell/Bildkedde | de314397c0f835ac5ee7a3c4832fa65e086a2bbc | [
"MIT"
] | null | null | null | from .simple_sensor_model import photon_energy_per_wavelength, irrad2electrons, electrons2voltage, voltage2counts | 113 | 113 | 0.911504 | 12 | 113 | 8.166667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028037 | 0.053097 | 113 | 1 | 113 | 113 | 0.88785 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
51b999690ceb3281c3ae1b22ab34b27b4f978399 | 117 | py | Python | project/arturo/__init__.py | ArturoMorales93/Plataformas_II_Project | 7dd54c8c5159a1eb8c761a3a8e4f4bfb96a078eb | [
"Unlicense"
] | 1 | 2021-01-29T15:16:49.000Z | 2021-01-29T15:16:49.000Z | project/arturo/__init__.py | ArturoMorales93/Plataformas_II_Project | 7dd54c8c5159a1eb8c761a3a8e4f4bfb96a078eb | [
"Unlicense"
] | 12 | 2021-02-01T20:31:31.000Z | 2021-04-15T07:34:54.000Z | project/arturo/__init__.py | ArturoMorales93/Plataformas_II_Project | 7dd54c8c5159a1eb8c761a3a8e4f4bfb96a078eb | [
"Unlicense"
] | 1 | 2021-03-08T23:34:37.000Z | 2021-03-08T23:34:37.000Z | from flask import Blueprint
arturo = Blueprint('arturo',__name__, template_folder='templates')
from . import routes | 23.4 | 66 | 0.794872 | 14 | 117 | 6.285714 | 0.714286 | 0.340909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 117 | 5 | 67 | 23.4 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0.127119 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0.666667 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 6 |
51c100fadf3c5ac1c79a2ad44dc3a57ce4d35d6a | 443 | py | Python | flink-ai-flow/examples/python_examples/example_data_util.py | KenGeng/flink-ai-extended | 4fceda234d3e59bf14a34e8edb41dedaff054a3c | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSD-3-Clause"
] | null | null | null | flink-ai-flow/examples/python_examples/example_data_util.py | KenGeng/flink-ai-extended | 4fceda234d3e59bf14a34e8edb41dedaff054a3c | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSD-3-Clause"
] | null | null | null | flink-ai-flow/examples/python_examples/example_data_util.py | KenGeng/flink-ai-extended | 4fceda234d3e59bf14a34e8edb41dedaff054a3c | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSD-3-Clause"
] | null | null | null | """
Utilities to get the path of the data sets that are used by the examples
"""
import os
def get_example_data():
return os.path.dirname(os.path.abspath(__file__)) + '/example_data'
def get_mnist_train_data():
return get_example_data() + '/mnist_train.npz'
def get_mnist_evaluate_data():
return get_e... | 20.136364 | 72 | 0.731377 | 67 | 443 | 4.462687 | 0.38806 | 0.183946 | 0.187291 | 0.200669 | 0.29097 | 0.29097 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153499 | 443 | 21 | 73 | 21.095238 | 0.797333 | 0.162528 | 0 | 0 | 0 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.444444 | true | 0 | 0.111111 | 0.444444 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
cfc1c72fa17f9cfe8886da3d3230ce6bfbba47b3 | 1,354 | py | Python | pcompile.py | ogewan/comix-ngn | c498e2d0c0e54af998d86926a1d6899f48328fc2 | [
"MIT"
] | 2 | 2015-07-24T20:44:53.000Z | 2018-03-26T13:48:56.000Z | pcompile.py | seun40/comic-ng | c498e2d0c0e54af998d86926a1d6899f48328fc2 | [
"MIT"
] | 4 | 2015-09-05T05:06:01.000Z | 2018-06-03T14:54:57.000Z | pcompile.py | ogewan/comix-ngn | c498e2d0c0e54af998d86926a1d6899f48328fc2 | [
"MIT"
] | 2 | 2016-07-08T05:31:45.000Z | 2016-08-26T15:49:21.000Z | #!/usr/bin/python
import subprocess
import sys
if sys.platform == 'darwin':
subprocess.check_call('java -jar ./factory/compiler.jar --language_in ECMASCRIPT6_STRICT --js ./factory/def_libs.js ./factory/initialize.js ./factory/rollbar.js ./factory/retrieval.js ./factory/def_stage.js ./factory/def_stagechange.js ./... | 79.647059 | 397 | 0.728213 | 190 | 1,354 | 5.063158 | 0.294737 | 0.168399 | 0.118503 | 0.047817 | 0.775468 | 0.775468 | 0.735967 | 0.735967 | 0.677755 | 0.5842 | 0 | 0.004019 | 0.081241 | 1,354 | 16 | 398 | 84.625 | 0.769293 | 0.011817 | 0 | 0 | 0 | 0.333333 | 0.748691 | 0.3635 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 0 | 0.166667 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
320a3726c6bc3ca976e7d5ed982e092a6ba9a13d | 86 | py | Python | app/restfulApi/__init__.py | anLA7856/Python_Websocket_flask_chat | 651759f1c04929d790f57ef28ef8f0d34ffb945c | [
"MIT"
] | 21 | 2018-01-22T20:13:17.000Z | 2021-08-24T08:15:59.000Z | app/restfulApi/__init__.py | anLA7856/Python_Websocket_flask_chat | 651759f1c04929d790f57ef28ef8f0d34ffb945c | [
"MIT"
] | 2 | 2017-12-04T15:29:22.000Z | 2019-02-22T12:08:26.000Z | app/restfulApi/__init__.py | anLA7856/Python_Websocket_flask_chat | 651759f1c04929d790f57ef28ef8f0d34ffb945c | [
"MIT"
] | 11 | 2018-06-20T10:13:59.000Z | 2020-03-31T05:15:30.000Z |
from flask import Blueprint
api = Blueprint('api',__name__)
from . import user | 14.333333 | 32 | 0.709302 | 11 | 86 | 5.181818 | 0.636364 | 0.421053 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.209302 | 86 | 6 | 33 | 14.333333 | 0.838235 | 0 | 0 | 0 | 0 | 0 | 0.037037 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0.666667 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 6 |
321f8c8440ae7d6ca6a9ba58403dbc93d3402dec | 28 | py | Python | Hello_World.py | poonam5248/Hello-World | d43f2b1ef4ba38b10941f9219ecef32213ac0344 | [
"MIT"
] | null | null | null | Hello_World.py | poonam5248/Hello-World | d43f2b1ef4ba38b10941f9219ecef32213ac0344 | [
"MIT"
] | null | null | null | Hello_World.py | poonam5248/Hello-World | d43f2b1ef4ba38b10941f9219ecef32213ac0344 | [
"MIT"
] | null | null | null | print("Hello HactoberFest")
| 14 | 27 | 0.785714 | 3 | 28 | 7.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 28 | 1 | 28 | 28 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0.642857 | 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 |
5cc2ea928721cc72eb03145e8daf08d08b763f92 | 36 | py | Python | dmb/modeling/flow/__init__.py | jiaw-z/DenseMatchingBenchmark | 177c56ca1952f54d28e6073afa2c16981113a2af | [
"MIT"
] | 160 | 2019-11-16T13:59:21.000Z | 2022-03-28T07:52:59.000Z | dmb/modeling/flow/__init__.py | jiaw-z/DenseMatchingBenchmark | 177c56ca1952f54d28e6073afa2c16981113a2af | [
"MIT"
] | 22 | 2019-11-22T02:14:18.000Z | 2022-01-24T10:16:14.000Z | dmb/modeling/flow/__init__.py | jiaw-z/DenseMatchingBenchmark | 177c56ca1952f54d28e6073afa2c16981113a2af | [
"MIT"
] | 38 | 2019-12-27T14:01:01.000Z | 2022-03-12T11:40:11.000Z | from .models import build_flow_model | 36 | 36 | 0.888889 | 6 | 36 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 36 | 1 | 36 | 36 | 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 |
7a8bca74ca99474cb7caa7e0a2814d46ffd5d2db | 10,928 | py | Python | mmdet/models/detectors/csp.py | Ernstsen/Pedestron | 0c5aa35881561bcd0acf5de8939472efd6409256 | [
"Apache-2.0"
] | 594 | 2020-03-20T11:52:59.000Z | 2022-03-30T11:58:55.000Z | mmdet/models/detectors/csp.py | Ernstsen/Pedestron | 0c5aa35881561bcd0acf5de8939472efd6409256 | [
"Apache-2.0"
] | 131 | 2020-03-25T09:48:04.000Z | 2022-03-30T17:54:38.000Z | mmdet/models/detectors/csp.py | Ernstsen/Pedestron | 0c5aa35881561bcd0acf5de8939472efd6409256 | [
"Apache-2.0"
] | 128 | 2020-03-20T14:22:11.000Z | 2022-03-22T09:41:39.000Z | from .single_stage import SingleStageDetector
from ..registry import DETECTORS
from mmdet.core import bbox2result
import numpy as np
import cv2
@DETECTORS.register_module
class CSP(SingleStageDetector):
def __init__(self,
backbone,
neck,
bbox_head,
... | 49.447964 | 124 | 0.520955 | 1,414 | 10,928 | 3.80198 | 0.11174 | 0.053571 | 0.055804 | 0.053199 | 0.815476 | 0.790923 | 0.766369 | 0.731585 | 0.725446 | 0.688802 | 0 | 0.05375 | 0.349652 | 10,928 | 221 | 125 | 49.447964 | 0.702687 | 0.076958 | 0 | 0.64 | 0 | 0 | 0.002382 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.025 | 0 | 0.09 | 0.01 | 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 |
8f9895fe4ecf83cb1928ac268200cb02452ecd60 | 45 | py | Python | smqtk_iqr/web/search_app/modules/login/__init__.py | Purg/SMQTK-IQR | d93e909016d75a97efa4f5df289a713faddfa667 | [
"BSD-3-Clause"
] | 82 | 2015-01-07T15:33:29.000Z | 2021-08-11T18:34:05.000Z | smqtk_iqr/web/search_app/modules/login/__init__.py | Purg/SMQTK-IQR | d93e909016d75a97efa4f5df289a713faddfa667 | [
"BSD-3-Clause"
] | 230 | 2015-04-08T14:36:51.000Z | 2022-03-14T17:55:30.000Z | smqtk_iqr/web/search_app/modules/login/__init__.py | Purg/SMQTK-IQR | d93e909016d75a97efa4f5df289a713faddfa667 | [
"BSD-3-Clause"
] | 65 | 2015-01-04T15:00:16.000Z | 2021-11-19T18:09:11.000Z | from .LoginMod import LoginMod # noqa: F401
| 22.5 | 44 | 0.755556 | 6 | 45 | 5.666667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081081 | 0.177778 | 45 | 1 | 45 | 45 | 0.837838 | 0.222222 | 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 |
8f9d54f1efa9af72978256dc1fc1a851c449f8eb | 72 | py | Python | cognite/model_hosting/data_fetcher/__init__.py | cognitedata/cognite-model-hosting | 89f58e25f0e3c3a37006e60f52246da0b00a0066 | [
"Apache-2.0"
] | 4 | 2019-05-27T12:51:45.000Z | 2020-02-26T08:16:30.000Z | cognite/model_hosting/data_fetcher/__init__.py | cognitedata/cognite-model-hosting | 89f58e25f0e3c3a37006e60f52246da0b00a0066 | [
"Apache-2.0"
] | 26 | 2019-03-18T15:10:20.000Z | 2021-06-21T05:47:24.000Z | cognite/model_hosting/data_fetcher/__init__.py | cognitedata/cognite-model-hosting | 89f58e25f0e3c3a37006e60f52246da0b00a0066 | [
"Apache-2.0"
] | null | null | null | from cognite.model_hosting.data_fetcher.data_fetcher import DataFetcher
| 36 | 71 | 0.902778 | 10 | 72 | 6.2 | 0.8 | 0.354839 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 72 | 1 | 72 | 72 | 0.911765 | 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 |
8fa1a25fe1fc99f6d5503150447abff24b04d3ae | 2,165 | py | Python | src/admin/views/exception_word.py | idefant/UrFU-FAQ | 07fc8ef990b77fb0345b6e95ff3cb2daaedfc178 | [
"MIT"
] | 1 | 2021-12-01T05:14:26.000Z | 2021-12-01T05:14:26.000Z | src/admin/views/exception_word.py | idefant/UrFU-FAQ | 07fc8ef990b77fb0345b6e95ff3cb2daaedfc178 | [
"MIT"
] | null | null | null | src/admin/views/exception_word.py | idefant/UrFU-FAQ | 07fc8ef990b77fb0345b6e95ff3cb2daaedfc178 | [
"MIT"
] | null | null | null | from flask import render_template
from flask_classy import FlaskView, route
from flask_login import login_required, current_user
from admin import forms
from models import BlackWords, WhiteWords
class ViewExceptionWord(FlaskView):
route_base = '/'
@route('/black_words')
@login_required
def black_wor... | 48.111111 | 109 | 0.69746 | 239 | 2,165 | 5.924686 | 0.23431 | 0.183616 | 0.216102 | 0.105932 | 0.713277 | 0.713277 | 0.713277 | 0.713277 | 0.713277 | 0.713277 | 0 | 0 | 0.23418 | 2,165 | 44 | 110 | 49.204545 | 0.854041 | 0 | 0 | 0.615385 | 0 | 0 | 0.099307 | 0.065589 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051282 | false | 0 | 0.128205 | 0 | 0.384615 | 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 |
8fafeae1bbb1e7888bcf51565dc6c66de15fcb1e | 5,310 | py | Python | tests/unit/processors/test_eventbridge.py | ITV/aws-scheduled-event-adjuster | 344d48b0275e6931d8e39d087f23f47b6d650d80 | [
"Apache-2.0"
] | 1 | 2021-12-22T16:12:16.000Z | 2021-12-22T16:12:16.000Z | tests/unit/processors/test_eventbridge.py | ITV/aws-scheduled-event-adjuster | 344d48b0275e6931d8e39d087f23f47b6d650d80 | [
"Apache-2.0"
] | null | null | null | tests/unit/processors/test_eventbridge.py | ITV/aws-scheduled-event-adjuster | 344d48b0275e6931d8e39d087f23f47b6d650d80 | [
"Apache-2.0"
] | 2 | 2022-03-14T11:00:47.000Z | 2022-03-15T12:38:00.000Z | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
from lib.processors.eventbridge import EventBridgeProcessor
from lib.recurrence import RecurrenceCalculator
from lib.services import EventBridgeService
import pytest
def test_process_resources_updates_schedule_... | 42.822581 | 99 | 0.702825 | 649 | 5,310 | 5.459168 | 0.154083 | 0.047982 | 0.040644 | 0.075078 | 0.804968 | 0.804968 | 0.804968 | 0.804968 | 0.798194 | 0.775614 | 0 | 0.005535 | 0.149341 | 5,310 | 123 | 100 | 43.170732 | 0.778836 | 0.019209 | 0 | 0.693069 | 0 | 0 | 0.2244 | 0.016907 | 0 | 0 | 0 | 0 | 0.158416 | 1 | 0.059406 | false | 0 | 0.039604 | 0 | 0.09901 | 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 |
8fb032107709bb572457db38f9fd46697db740ab | 36 | py | Python | test/userworkers/__init__.py | likexx/cocotask | a5dc709b8d2228e3149b3780a0af7d7342cc0e3f | [
"MIT"
] | null | null | null | test/userworkers/__init__.py | likexx/cocotask | a5dc709b8d2228e3149b3780a0af7d7342cc0e3f | [
"MIT"
] | null | null | null | test/userworkers/__init__.py | likexx/cocotask | a5dc709b8d2228e3149b3780a0af7d7342cc0e3f | [
"MIT"
] | 2 | 2018-09-20T08:51:11.000Z | 2018-11-16T13:03:02.000Z | from .test_worker import TestWorker
| 18 | 35 | 0.861111 | 5 | 36 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 36 | 1 | 36 | 36 | 0.9375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 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 |
890fcf10c23360ba3ee40a76b90177b6791f24ec | 173 | py | Python | main/api/v1/__init__.py | lipis/crypto-pocket | ec40e9f49e521d7b095c9065f89b8888a871313a | [
"MIT"
] | 4 | 2018-01-17T12:41:18.000Z | 2018-01-26T18:59:57.000Z | main/api/v1/__init__.py | lipis/crypto-pocket | ec40e9f49e521d7b095c9065f89b8888a871313a | [
"MIT"
] | 43 | 2018-01-29T06:15:52.000Z | 2018-09-19T02:14:40.000Z | main/api/v1/__init__.py | lipis/crypto-pocket | ec40e9f49e521d7b095c9065f89b8888a871313a | [
"MIT"
] | null | null | null | # coding: utf-8
from .auth import *
from .config import *
from .user import *
from .crypto import *
from .currency import *
from .transaction import *
from .price import *
| 17.3 | 26 | 0.716763 | 24 | 173 | 5.166667 | 0.5 | 0.483871 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007092 | 0.184971 | 173 | 9 | 27 | 19.222222 | 0.87234 | 0.075145 | 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 |
8f04a05340b18c79075d049c2b31da51d17baa33 | 258 | py | Python | chatbot/admin.py | kunci115/cerdas | 5c956960904ef96677a30405a3b2af53d714689e | [
"MIT"
] | 40 | 2019-03-31T03:32:17.000Z | 2022-02-23T13:43:45.000Z | chatbot/admin.py | kunci115/cerdas | 5c956960904ef96677a30405a3b2af53d714689e | [
"MIT"
] | 3 | 2019-03-19T10:40:08.000Z | 2019-03-30T18:27:35.000Z | chatbot/admin.py | kunci115/cerdas | 5c956960904ef96677a30405a3b2af53d714689e | [
"MIT"
] | 9 | 2019-03-18T02:37:13.000Z | 2020-12-16T13:59:34.000Z | from django.contrib import admin
from .models import TextMessage
from .models import SipintarResponse
from .models import SipintarResponseModel
admin.site.register(TextMessage)
admin.site.register(SipintarResponse)
admin.site.register(SipintarResponseModel) | 32.25 | 42 | 0.864341 | 29 | 258 | 7.689655 | 0.37931 | 0.134529 | 0.215247 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073643 | 258 | 8 | 42 | 32.25 | 0.933054 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.571429 | 0 | 0.571429 | 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 |
8f60ff3bf164be8dd2e0318f74ec52defa5553ff | 3,922 | py | Python | util.py | rafaie/fashion-mnist | b0865dea9920afc3984da1a8df52a93a1edd39dd | [
"Apache-2.0"
] | 1 | 2019-02-19T04:20:21.000Z | 2019-02-19T04:20:21.000Z | util.py | rafaie/fashion-mnist | b0865dea9920afc3984da1a8df52a93a1edd39dd | [
"Apache-2.0"
] | null | null | null | util.py | rafaie/fashion-mnist | b0865dea9920afc3984da1a8df52a93a1edd39dd | [
"Apache-2.0"
] | null | null | null | """
util.py: it includes Helper functions
"""
import tensorflow as tf
import numpy as np
import os
tf.logging.set_verbosity(tf.logging.INFO) # if you want to see the log info
# Load data from npy file and create np data array
def get_data(data_dir='.data/', test_size = 0.2, valid_size = 0.15, need_valid=True):
... | 36.654206 | 121 | 0.651198 | 559 | 3,922 | 4.330948 | 0.143113 | 0.099959 | 0.046262 | 0.054523 | 0.800496 | 0.793474 | 0.757538 | 0.757538 | 0.757538 | 0.757538 | 0 | 0.01723 | 0.230495 | 3,922 | 106 | 122 | 37 | 0.784957 | 0.077257 | 0 | 0.689189 | 0 | 0 | 0.119279 | 0.024411 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054054 | false | 0 | 0.040541 | 0 | 0.148649 | 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 |
56c2f49a704cd0f57e92f54052514e43f6f6a7b5 | 256 | py | Python | salesforce_timecard/__init__.py | jans-forks/salesforce-timecard | e0b3602f532277df1392ea238a0e2a286e8f87c6 | [
"WTFPL"
] | null | null | null | salesforce_timecard/__init__.py | jans-forks/salesforce-timecard | e0b3602f532277df1392ea238a0e2a286e8f87c6 | [
"WTFPL"
] | null | null | null | salesforce_timecard/__init__.py | jans-forks/salesforce-timecard | e0b3602f532277df1392ea238a0e2a286e8f87c6 | [
"WTFPL"
] | null | null | null | try:
import importlib.metadata as importlib_metadata
except ModuleNotFoundError:
import importlib_metadata
__version__ = importlib_metadata.version(__name__)
_metadata = importlib_metadata.metadata(__name__)
__description__ = _metadata["Summary"]
| 28.444444 | 51 | 0.832031 | 25 | 256 | 7.64 | 0.44 | 0.445026 | 0.240838 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105469 | 256 | 8 | 52 | 32 | 0.834061 | 0 | 0 | 0 | 0 | 0 | 0.027344 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.571429 | 0 | 0.571429 | 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 |
56ced7a298d0a241ce88d5cbb08325480aaaac45 | 61 | py | Python | backend/app/views/compare_two_sequences/__init__.py | Edinburgh-Genome-Foundry/CUBA | d57565951ead619ef9263e8b356b451001fb910f | [
"MIT"
] | 15 | 2018-02-12T13:12:13.000Z | 2021-08-15T11:37:59.000Z | backend/app/views/compare_two_sequences/__init__.py | Edinburgh-Genome-Foundry/CUBA | d57565951ead619ef9263e8b356b451001fb910f | [
"MIT"
] | 9 | 2020-06-05T17:54:54.000Z | 2022-02-12T12:03:19.000Z | backend/app/views/compare_two_sequences/__init__.py | Edinburgh-Genome-Foundry/CUBA | d57565951ead619ef9263e8b356b451001fb910f | [
"MIT"
] | 3 | 2018-10-18T13:08:50.000Z | 2020-08-17T14:09:46.000Z | from .CompareTwoSequencesView import CompareTwoSequencesView
| 30.5 | 60 | 0.918033 | 4 | 61 | 14 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065574 | 61 | 1 | 61 | 61 | 0.982456 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
56f8a0492b9d7aa2dcc1d93056d882cce30ef4b1 | 4,618 | py | Python | kuber/interface/_parsing.py | datalayer-externals/kuber | 4d577950ce7d1be2b882fbe66827dc3d7e67b350 | [
"MIT"
] | 1 | 2019-06-11T04:57:34.000Z | 2019-06-11T04:57:34.000Z | kuber/interface/_parsing.py | datalayer-externals/kuber | 4d577950ce7d1be2b882fbe66827dc3d7e67b350 | [
"MIT"
] | 1 | 2019-05-05T22:08:13.000Z | 2019-05-06T11:43:32.000Z | kuber/interface/_parsing.py | datalayer-externals/kuber | 4d577950ce7d1be2b882fbe66827dc3d7e67b350 | [
"MIT"
] | 2 | 2021-05-08T14:47:56.000Z | 2021-10-15T21:47:04.000Z | import argparse
import typing
from kuber import management
def _populate_create(subparsers):
"""..."""
parser = subparsers.add_parser("create", help="Create the resource bundle.")
parser.add_argument(
"--target",
action="append",
help=(
"Specify the resource in the bun... | 38.165289 | 88 | 0.616501 | 528 | 4,618 | 5.323864 | 0.1875 | 0.024902 | 0.060477 | 0.049093 | 0.805407 | 0.754536 | 0.721807 | 0.721807 | 0.717538 | 0.717538 | 0 | 0 | 0.278259 | 4,618 | 120 | 89 | 38.483333 | 0.843384 | 0.011693 | 0 | 0.699029 | 0 | 0 | 0.526003 | 0.0487 | 0 | 0 | 0 | 0 | 0 | 1 | 0.048544 | false | 0 | 0.029126 | 0 | 0.097087 | 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 |
8548d1802a53466fc92f16a18a09278981d74d32 | 47,322 | py | Python | do_benchmark.py | nicolashernandez/PyRATA | 5117f766f1c3abe1f6b1678ffdd21b5697bb3723 | [
"Apache-2.0"
] | 72 | 2017-03-21T14:54:50.000Z | 2022-03-03T11:02:30.000Z | do_benchmark.py | nicolashernandez/PyRATA | 5117f766f1c3abe1f6b1678ffdd21b5697bb3723 | [
"Apache-2.0"
] | 4 | 2017-10-17T13:09:25.000Z | 2018-07-05T17:50:50.000Z | do_benchmark.py | nicolashernandez/PyRATA | 5117f766f1c3abe1f6b1678ffdd21b5697bb3723 | [
"Apache-2.0"
] | 17 | 2017-03-21T14:54:55.000Z | 2021-11-15T08:34:08.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# PyRATA
#
# Authors:
# Nicolas Hernandez <nicolas.hernandez@gmail.com>
# Guan Gui 2014-08-10 13:20:03 https://www.guiguan.net/a-beautiful-linear-time-python-regex-matcher-via-nfa
# URL:
# https://github.com/nicolashernandez/PyRATA/
#
#
# Copyri... | 47.751766 | 894 | 0.567516 | 6,336 | 47,322 | 4.112847 | 0.073706 | 0.012433 | 0.01865 | 0.010706 | 0.838904 | 0.800069 | 0.780268 | 0.756054 | 0.739361 | 0.733029 | 0 | 0.017887 | 0.157643 | 47,322 | 990 | 895 | 47.8 | 0.635844 | 0.545729 | 0 | 0.650873 | 0 | 0.024938 | 0.207544 | 0.037483 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042394 | false | 0 | 0.049875 | 0 | 0.104738 | 0.109726 | 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 |
856ccbc8067d36574a2dc2785fe3b8dc9893b03d | 36 | py | Python | Nokia5110/__init__.py | KevinKeWang/raspberrypi-nokia5110lcd-driver-python | 479a8d14a62720c315013307a1647f01806600af | [
"Apache-2.0"
] | 3 | 2018-08-15T10:06:10.000Z | 2021-04-16T22:55:46.000Z | Nokia5110/__init__.py | KevinKeWang/raspberrypi-nokia5110lcd-driver-python | 479a8d14a62720c315013307a1647f01806600af | [
"Apache-2.0"
] | null | null | null | Nokia5110/__init__.py | KevinKeWang/raspberrypi-nokia5110lcd-driver-python | 479a8d14a62720c315013307a1647f01806600af | [
"Apache-2.0"
] | null | null | null | from LCD import *
from Bmp import *
| 12 | 17 | 0.722222 | 6 | 36 | 4.333333 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 36 | 2 | 18 | 18 | 0.928571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
85c4d205acd8d5d99743506487bb532d74753802 | 27 | py | Python | tests/test_v2/test_compression.py | AdamBrianBright/cats-python | 163cbde06c0d56520c217c0d66ddca34c7e0f63b | [
"MIT"
] | 2 | 2021-10-04T05:39:03.000Z | 2021-10-07T06:44:19.000Z | tests/test_v2/test_compression.py | AdamBrianBright/cats-python | 163cbde06c0d56520c217c0d66ddca34c7e0f63b | [
"MIT"
] | 7 | 2021-08-17T17:50:23.000Z | 2021-08-31T08:44:13.000Z | tests/test_v2/test_compression.py | AdamBrianBright/cats-python | 163cbde06c0d56520c217c0d66ddca34c7e0f63b | [
"MIT"
] | 2 | 2021-10-01T20:58:25.000Z | 2021-10-04T05:40:35.000Z | # FIXME: Cover compression
| 13.5 | 26 | 0.777778 | 3 | 27 | 7 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148148 | 27 | 1 | 27 | 27 | 0.913043 | 0.888889 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 1 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
a452fb3876ceb0253c43b035b62b8afe7dfa8ad0 | 83 | py | Python | src/app/configs/__init__.py | victorbrandaoa/simple-flask-login | 8ea8fda9ec5f22a13d5c5958f576d6706b939a68 | [
"MIT"
] | 1 | 2022-03-09T22:27:02.000Z | 2022-03-09T22:27:02.000Z | src/app/configs/__init__.py | victorbrandaoa/simple-flask-login | 8ea8fda9ec5f22a13d5c5958f576d6706b939a68 | [
"MIT"
] | null | null | null | src/app/configs/__init__.py | victorbrandaoa/simple-flask-login | 8ea8fda9ec5f22a13d5c5958f576d6706b939a68 | [
"MIT"
] | 1 | 2022-03-19T01:57:54.000Z | 2022-03-19T01:57:54.000Z | from app.configs.db_connection import db_connection
from app.configs import config
| 27.666667 | 51 | 0.86747 | 13 | 83 | 5.384615 | 0.538462 | 0.2 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096386 | 83 | 2 | 52 | 41.5 | 0.933333 | 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 |
a45b6c2c6277b3cf54c2caa1e80bbcc49becb0a5 | 28 | py | Python | share/install/Python-RPi-MCP4922/build/lib/MCP4922/__init__.py | DWTSteuerung/multusd | 267f2f411134462e195015b64f84e8370025cb38 | [
"BSD-2-Clause"
] | 6 | 2018-05-29T06:53:34.000Z | 2020-11-14T23:59:12.000Z | code/MCP4922/__init__.py | lucasplacentino/TRANH201INFO3-Sequencer | 959413f0ffd4774d2ecfe43c1400885927e78905 | [
"Apache-2.0"
] | 4 | 2022-03-27T11:07:04.000Z | 2022-03-27T11:12:09.000Z | code/MCP4922/__init__.py | lucasplacentino/TRANH201INFO3-Sequencer | 959413f0ffd4774d2ecfe43c1400885927e78905 | [
"Apache-2.0"
] | 5 | 2017-09-16T15:02:58.000Z | 2021-05-20T07:46:33.000Z | from .MCP4922 import MCP4922 | 28 | 28 | 0.857143 | 4 | 28 | 6 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.32 | 0.107143 | 28 | 1 | 28 | 28 | 0.64 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
f138e2561b08bf619fc59f2bf233a8acb6787e08 | 12,214 | py | Python | xproc/vmstat.py | hungrybirder/xproc | 192ba92b0ef5c6da116bb42c6cee48e3e6ed8837 | [
"MIT"
] | 2 | 2022-03-25T01:51:43.000Z | 2022-03-25T06:41:10.000Z | xproc/vmstat.py | hungrybirder/xproc | 192ba92b0ef5c6da116bb42c6cee48e3e6ed8837 | [
"MIT"
] | null | null | null | xproc/vmstat.py | hungrybirder/xproc | 192ba92b0ef5c6da116bb42c6cee48e3e6ed8837 | [
"MIT"
] | null | null | null | from typing import Dict, List
import logging
from xproc.util import open_file
from xproc.value import EmptyIntAttr, Attr, IntValue, parse_int_val, current_time_attr
logger = logging.getLogger("xproc.vmstat")
NR_FREE_PAGES = "nr_free_pages"
NR_ZONE_INACTIVE_ANON = "nr_zone_inactive_anon"
NR_ZONE_ACTIVE_ANON = "nr_zone... | 35.923529 | 86 | 0.790896 | 1,604 | 12,214 | 5.450748 | 0.114713 | 0.044836 | 0.024019 | 0.01464 | 0.902551 | 0.902551 | 0.893057 | 0.887682 | 0.882992 | 0.882992 | 0 | 0.002476 | 0.140249 | 12,214 | 339 | 87 | 36.029499 | 0.830111 | 0.021451 | 0 | 0 | 0 | 0 | 0.181689 | 0.060479 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015924 | false | 0 | 0.012739 | 0.009554 | 0.044586 | 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 |
f1823a71891bf343661af523175005654ca95730 | 58 | py | Python | syft/workers/abstract.py | linamnt/PySyft | 4b60a86c003acbe1967d6c3d611df3d5f2d377ee | [
"Apache-2.0"
] | 2 | 2019-05-29T13:09:02.000Z | 2019-06-14T17:40:51.000Z | syft/workers/abstract.py | linamnt/PySyft | 4b60a86c003acbe1967d6c3d611df3d5f2d377ee | [
"Apache-2.0"
] | 3 | 2019-05-24T01:16:56.000Z | 2019-09-18T13:02:30.000Z | syft/workers/abstract.py | linamnt/PySyft | 4b60a86c003acbe1967d6c3d611df3d5f2d377ee | [
"Apache-2.0"
] | 1 | 2019-07-06T06:28:49.000Z | 2019-07-06T06:28:49.000Z | from abc import ABC
class AbstractWorker(ABC):
pass
| 9.666667 | 26 | 0.724138 | 8 | 58 | 5.25 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.224138 | 58 | 5 | 27 | 11.6 | 0.933333 | 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 |
f185b90aebfbb0cc0f2ae05d1f96442a2ef04e75 | 1,431 | py | Python | boucanpy/dns/zone_template.py | bbhunter/boucanpy | 7d2fb105e7b1e90653a511534fb878bb62d02f17 | [
"MIT"
] | 34 | 2019-11-16T17:22:15.000Z | 2022-02-11T23:12:46.000Z | boucanpy/dns/zone_template.py | bbhunter/boucanpy | 7d2fb105e7b1e90653a511534fb878bb62d02f17 | [
"MIT"
] | 1 | 2021-02-09T09:34:55.000Z | 2021-02-10T21:46:20.000Z | boucanpy/dns/zone_template.py | bbhunter/boucanpy | 7d2fb105e7b1e90653a511534fb878bb62d02f17 | [
"MIT"
] | 9 | 2019-11-18T22:18:07.000Z | 2021-02-08T13:23:51.000Z | # ZONE_TEMPLATE = """
# $TTL 300
# $ORIGIN {domain_name}
# @ IN SOA {domain_name}. root.{domain_name}. (
# 2 ; Serial
# 604800 ; Refresh
# 86400 ; Retry
# ... | 40.885714 | 69 | 0.318658 | 109 | 1,431 | 4.009174 | 0.293578 | 0.297483 | 0.19222 | 0.100687 | 0.816934 | 0.686499 | 0.631579 | 0.631579 | 0.631579 | 0.631579 | 0 | 0.116197 | 0.603075 | 1,431 | 34 | 70 | 42.088235 | 0.653169 | 0.484277 | 0 | 0 | 0 | 0 | 0.943135 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
74d3d3451241ab50056e49aba20884827d3a7d87 | 18 | py | Python | bmiApp/models.py | Prathyusha-Guduru/BMI-Flask-app | 719c74fde9325bd657dc707355fd2cf531c4ee6c | [
"MIT"
] | 1 | 2022-01-02T05:42:03.000Z | 2022-01-02T05:42:03.000Z | bmiApp/models.py | Prathyusha-Guduru/BMI-Flask-app | 719c74fde9325bd657dc707355fd2cf531c4ee6c | [
"MIT"
] | null | null | null | bmiApp/models.py | Prathyusha-Guduru/BMI-Flask-app | 719c74fde9325bd657dc707355fd2cf531c4ee6c | [
"MIT"
] | null | null | null | from . import lol
| 9 | 17 | 0.722222 | 3 | 18 | 4.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 18 | 1 | 18 | 18 | 0.928571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
2d18b545d6a034d81f2ceda82500ecf72b2c0b1a | 393 | py | Python | airtouch3/__init__.py | tonymyatt/airtouch3pyapi | 3273233fb07392fbddec2ebd02eec18c8bea6325 | [
"MIT"
] | null | null | null | airtouch3/__init__.py | tonymyatt/airtouch3pyapi | 3273233fb07392fbddec2ebd02eec18c8bea6325 | [
"MIT"
] | 1 | 2022-03-07T04:20:35.000Z | 2022-03-07T04:21:15.000Z | airtouch3/__init__.py | tonymyatt/airtouch3api | 3273233fb07392fbddec2ebd02eec18c8bea6325 | [
"MIT"
] | null | null | null | from airtouch3.airtouch3 import AirTouch3
from airtouch3.airtouch3 import AT3Command
from airtouch3.airtouch3 import AT3CommsStatus
from airtouch3.airtouch3 import AT3AcUnit
from airtouch3.airtouch3 import AT3AcMode
from airtouch3.airtouch3 import AT3AcFanSpeed
from airtouch3.airtouch3 import AT3Group
from airtouch3.ai... | 43.666667 | 46 | 0.888041 | 45 | 393 | 7.755556 | 0.244444 | 0.335244 | 0.567335 | 0.722063 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075419 | 0.089059 | 393 | 9 | 47 | 43.666667 | 0.899441 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 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 |
2d447efd04c5dbdfa3570578ca2425c23a2f4100 | 779 | py | Python | scripts/clean.py | andersgjerdrum/diggi | c072911c439758b6f1bb1d9972c6fc32aa49d560 | [
"Intel",
"CC-BY-3.0",
"MIT-CMU"
] | null | null | null | scripts/clean.py | andersgjerdrum/diggi | c072911c439758b6f1bb1d9972c6fc32aa49d560 | [
"Intel",
"CC-BY-3.0",
"MIT-CMU"
] | null | null | null | scripts/clean.py | andersgjerdrum/diggi | c072911c439758b6f1bb1d9972c6fc32aa49d560 | [
"Intel",
"CC-BY-3.0",
"MIT-CMU"
] | null | null | null | import os
os.system("find enclave/ -type f -name '*.o' -delete")
os.system("rm -r output")
os.system("rm -r generated")
os.system("rm -r lib_harness")
os.system("rm -r *.so")
os.system("rm -r test.db")
os.system("rm -r test.db-journal")
os.system("rm -r test-nowrap.db")
os.system("rm -r test.dbserver.db")
os.system("r... | 31.16 | 57 | 0.671374 | 143 | 779 | 3.643357 | 0.237762 | 0.322457 | 0.326296 | 0.316699 | 0.522073 | 0.493282 | 0.364683 | 0.107486 | 0 | 0 | 0 | 0 | 0.103979 | 779 | 24 | 58 | 32.458333 | 0.746418 | 0 | 0 | 0 | 1 | 0 | 0.607969 | 0.057841 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.045455 | 0 | 0.045455 | 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 | 1 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
740ab3f25f62f7fb474209dcb7084d7a62222902 | 39 | py | Python | calamus/preprocessor/__init__.py | webolton/calamus | 3c2609f7ff46de1f61939d6ac85fb358b1d81538 | [
"MIT"
] | 1 | 2021-12-20T12:56:32.000Z | 2021-12-20T12:56:32.000Z | training/preprocessing/__init__.py | DFKI-NLP/covid19-law-matching | c704a926977ef5f7fd4867125a2e79f352efd163 | [
"MIT"
] | null | null | null | training/preprocessing/__init__.py | DFKI-NLP/covid19-law-matching | c704a926977ef5f7fd4867125a2e79f352efd163 | [
"MIT"
] | 1 | 2021-11-24T11:21:33.000Z | 2021-11-24T11:21:33.000Z | from .preprocessor import Preprocessor
| 19.5 | 38 | 0.871795 | 4 | 39 | 8.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102564 | 39 | 1 | 39 | 39 | 0.971429 | 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 |
743d57cb8da595baa5a0e37d4ac9d9a3432362eb | 438 | py | Python | qkoubot/validators/shibboleth_validate.py | pddg/qkouserver | 4f696ce5198196ea79dc0d25a30cb22230342ca9 | [
"MIT"
] | null | null | null | qkoubot/validators/shibboleth_validate.py | pddg/qkouserver | 4f696ce5198196ea79dc0d25a30cb22230342ca9 | [
"MIT"
] | null | null | null | qkoubot/validators/shibboleth_validate.py | pddg/qkouserver | 4f696ce5198196ea79dc0d25a30cb22230342ca9 | [
"MIT"
] | null | null | null | from static import SHIBBOLETH_PASSWORD, SHIBBOLETH_USERNAME
def shibboleth_vars_validate():
assert SHIBBOLETH_USERNAME is not None, "SHIBBOLETH_USERNAME is not given."
# assert SHIBBOLETH_USERNAME[0] == "b", "SHIBBOLETH_USERNAME is invalid. It should be start with 'b'."
assert SHIBBOLETH_PASSWORD is not N... | 48.666667 | 106 | 0.776256 | 58 | 438 | 5.655172 | 0.448276 | 0.27439 | 0.182927 | 0.140244 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005362 | 0.148402 | 438 | 8 | 107 | 54.75 | 0.873995 | 0.228311 | 0 | 0 | 0 | 0 | 0.294643 | 0 | 0 | 0 | 0 | 0 | 0.6 | 1 | 0.2 | true | 0.6 | 0.2 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 6 |
777cf8f5ceab2be4280c3a8d0fc8d4a1346642f4 | 104 | py | Python | simple_pypi_template/__init__.py | Invarato/simple_pypi_template_project | 88d3ed9e44d6d5a82b8891cf82b56492d3d12e94 | [
"MIT"
] | 2 | 2021-03-19T20:42:59.000Z | 2021-03-25T23:44:18.000Z | simple_pypi_template/__init__.py | Invarato/simple_pypi_template_project | 88d3ed9e44d6d5a82b8891cf82b56492d3d12e94 | [
"MIT"
] | null | null | null | simple_pypi_template/__init__.py | Invarato/simple_pypi_template_project | 88d3ed9e44d6d5a82b8891cf82b56492d3d12e94 | [
"MIT"
] | null | null | null | from simple_pypi_template.simple_pypi_template import func_of_my_module
__all__ = ["func_of_my_module"]
| 34.666667 | 71 | 0.875 | 17 | 104 | 4.529412 | 0.588235 | 0.25974 | 0.467532 | 0.363636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067308 | 104 | 2 | 72 | 52 | 0.793814 | 0 | 0 | 0 | 0 | 0 | 0.163462 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
77e0d88f7793a877355096ee425598421c636d16 | 45 | py | Python | zeeko/handlers/tests/conftest.py | alexrudy/Zeeko | fb4992724620ed548dd32c3201f79f5b7bebfe32 | [
"BSD-3-Clause"
] | 2 | 2017-07-23T22:06:05.000Z | 2020-02-28T07:54:15.000Z | zeeko/handlers/tests/conftest.py | alexrudy/Zeeko | fb4992724620ed548dd32c3201f79f5b7bebfe32 | [
"BSD-3-Clause"
] | 1 | 2020-10-29T19:54:06.000Z | 2020-10-29T19:54:06.000Z | zeeko/handlers/tests/conftest.py | alexrudy/Zeeko | fb4992724620ed548dd32c3201f79f5b7bebfe32 | [
"BSD-3-Clause"
] | null | null | null | import pytest
import numpy as np
import zmq
| 9 | 18 | 0.8 | 8 | 45 | 4.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 45 | 4 | 19 | 11.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
77f7690c79f26201f13d4d6c8c0d8f2c7970c7d8 | 8,167 | py | Python | Atrous_Convolution/Encoders.py | Ali-Sahili/Background-Subtraction-Unsupervised-Learning | 445b2cf8736a4a28cff2b074a32afe8fe6986d53 | [
"MIT"
] | 5 | 2021-05-17T06:52:28.000Z | 2022-02-20T15:35:51.000Z | Atrous_Convolution/Encoders.py | WN1695173791/Background-Subtraction-Unsupervised-Learning | 445b2cf8736a4a28cff2b074a32afe8fe6986d53 | [
"MIT"
] | null | null | null | Atrous_Convolution/Encoders.py | WN1695173791/Background-Subtraction-Unsupervised-Learning | 445b2cf8736a4a28cff2b074a32afe8fe6986d53 | [
"MIT"
] | 1 | 2021-05-17T06:52:33.000Z | 2021-05-17T06:52:33.000Z | import torch
import torch.nn as nn
from Param import nc, nz
def batch_ReLU_layer(nf):
return nn.BatchNorm2d(nf), nn.LeakyReLU(0.2, inplace=True)
class Encoder256_Atrous(nn.Module):
def __init__(self,nz=nz,nef=16,nc=nc):
super(Encoder256_Atrous, self).__init__()
self.nz=nz
self.nc=n... | 36.954751 | 102 | 0.579038 | 1,398 | 8,167 | 3.202432 | 0.055079 | 0.086442 | 0.092919 | 0.093813 | 0.963592 | 0.963145 | 0.963145 | 0.962698 | 0.957338 | 0.957338 | 0 | 0.091838 | 0.281376 | 8,167 | 220 | 103 | 37.122727 | 0.670983 | 0.096119 | 0 | 0.690647 | 0 | 0 | 0.024799 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035971 | false | 0 | 0.021583 | 0.007194 | 0.093525 | 0.143885 | 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 |
7acb9adff3aabfe6971c18f62e960217c378cb18 | 31 | py | Python | pylinear/modules/simulate/__init__.py | Russell-Ryan/pyLINEAR | d68e44bc64d302b816db69d2becc4de3b15059f9 | [
"MIT"
] | 2 | 2019-08-07T19:57:04.000Z | 2021-01-21T22:54:13.000Z | pylinear/modules/simulate/__init__.py | Russell-Ryan/pyLINEAR | d68e44bc64d302b816db69d2becc4de3b15059f9 | [
"MIT"
] | 1 | 2019-10-02T03:18:26.000Z | 2019-10-02T03:18:26.000Z | pylinear/modules/simulate/__init__.py | Russell-Ryan/pyLINEAR | d68e44bc64d302b816db69d2becc4de3b15059f9 | [
"MIT"
] | 5 | 2019-09-03T17:01:10.000Z | 2020-08-05T17:49:42.000Z | from .simulate import Simulate
| 15.5 | 30 | 0.83871 | 4 | 31 | 6.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129032 | 31 | 1 | 31 | 31 | 0.962963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
7adee808002db339a2ca545552091093ba5a8c7b | 5,060 | py | Python | Claver/assistant/avatar/toolbox/Primitives.py | mccolm-robotics/Claver-AI-Assistant | 12b31633b4a45709403ed9599c626e63743318c7 | [
"MIT"
] | 1 | 2020-05-22T18:45:07.000Z | 2020-05-22T18:45:07.000Z | Claver/assistant/avatar/toolbox/Primitives.py | mccolm-robotics/Claver-AI-Assistant | 12b31633b4a45709403ed9599c626e63743318c7 | [
"MIT"
] | null | null | null | Claver/assistant/avatar/toolbox/Primitives.py | mccolm-robotics/Claver-AI-Assistant | 12b31633b4a45709403ed9599c626e63743318c7 | [
"MIT"
] | null | null | null | import numpy as np
from pyrr import Vector3
class Primitives:
def __init__(self):
pass
def cube(self):
vertices = [
-1.0, 1.0, 1.0, # Left
-1.0, -1.0, -1.0,
-1.0, -1.0, 1.0,
-1.0, 1.0, -1.0,
-1.0, -1.0, -1.0,
-1.0, 1.0, 1... | 27.5 | 107 | 0.360672 | 838 | 5,060 | 2.159905 | 0.063246 | 0.322652 | 0.372928 | 0.353591 | 0.466851 | 0.390055 | 0.354696 | 0.354696 | 0.354696 | 0.354696 | 0 | 0.245633 | 0.456917 | 5,060 | 183 | 108 | 27.650273 | 0.413028 | 0.006324 | 0 | 0.700637 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019108 | false | 0.006369 | 0.012739 | 0 | 0.050955 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
bb4eed6311df0d7f60a9b47ab3dcfc6a2c39e15b | 191 | py | Python | tudatpy/apps/__init__.py | gitter-badger/tudatpy | f5faef4ecfe8667cb9c989dd839185eeed5f9662 | [
"BSD-3-Clause"
] | null | null | null | tudatpy/apps/__init__.py | gitter-badger/tudatpy | f5faef4ecfe8667cb9c989dd839185eeed5f9662 | [
"BSD-3-Clause"
] | null | null | null | tudatpy/apps/__init__.py | gitter-badger/tudatpy | f5faef4ecfe8667cb9c989dd839185eeed5f9662 | [
"BSD-3-Clause"
] | null | null | null | __all__ = ["satellite_propagator"]
class _BaseApplication:
def __init__(self):
pass
class SSP(_BaseApplication):
def __init__(self):
super(SSP, self).__init__()
| 13.642857 | 35 | 0.659686 | 19 | 191 | 5.631579 | 0.578947 | 0.336449 | 0.411215 | 0.485981 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.230366 | 191 | 13 | 36 | 14.692308 | 0.727891 | 0 | 0 | 0.285714 | 0 | 0 | 0.104712 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0.142857 | 0 | 0 | 0.571429 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 6 |
247cc52489567aee76d84a48452f2e948b4246e0 | 304 | py | Python | tests/_utils.py | jvanasco/g_analytics_writer | bd3e476de82dc9c53d228265fd00c4cb488273b0 | [
"MIT"
] | 1 | 2019-04-29T02:06:24.000Z | 2019-04-29T02:06:24.000Z | tests/_utils.py | jvanasco/gaq_hub | bd3e476de82dc9c53d228265fd00c4cb488273b0 | [
"MIT"
] | 1 | 2017-12-06T16:31:46.000Z | 2017-12-06T16:31:46.000Z | tests/_utils.py | jvanasco/g_analytics_writer | bd3e476de82dc9c53d228265fd00c4cb488273b0 | [
"MIT"
] | 1 | 2017-12-06T16:17:04.000Z | 2017-12-06T16:17:04.000Z | from json import dumps as json_dumps
# we need to pass this in...
# production doesn't care about sorted keys
# py2 and p3 generate different sorts though
def custom_json_dumps_sorted(data):
# simply the dumping
return json_dumps(data, separators=(",", ":"), sort_keys=True, ensure_ascii=False)
| 33.777778 | 86 | 0.746711 | 47 | 304 | 4.680851 | 0.808511 | 0.122727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007843 | 0.161184 | 304 | 8 | 87 | 38 | 0.854902 | 0.427632 | 0 | 0 | 1 | 0 | 0.011834 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 6 |
24a218bf97083cb6c827934f363e33d72335d1c2 | 21 | py | Python | Uncommon/__init__.py | MattiKemp/Data-Structures-And-Algorithms | 37a4eb4f092f5a058643ef5ac302fe16d97f84dc | [
"Unlicense"
] | null | null | null | Uncommon/__init__.py | MattiKemp/Data-Structures-And-Algorithms | 37a4eb4f092f5a058643ef5ac302fe16d97f84dc | [
"Unlicense"
] | null | null | null | Uncommon/__init__.py | MattiKemp/Data-Structures-And-Algorithms | 37a4eb4f092f5a058643ef5ac302fe16d97f84dc | [
"Unlicense"
] | null | null | null | from . import Python
| 10.5 | 20 | 0.761905 | 3 | 21 | 5.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190476 | 21 | 1 | 21 | 21 | 0.941176 | 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 |
24fcc5754f8f06ec1d9389696fa29462da5e8103 | 29 | py | Python | seer/metrics/__init__.py | amajidsinar/seer | 35f25b3fbf22968f0b09c266b8fd66a44fcc4d9c | [
"Apache-2.0"
] | 5 | 2021-07-10T14:46:05.000Z | 2021-12-13T01:33:08.000Z | seer/metrics/__init__.py | amajidsinar/seer | 35f25b3fbf22968f0b09c266b8fd66a44fcc4d9c | [
"Apache-2.0"
] | null | null | null | seer/metrics/__init__.py | amajidsinar/seer | 35f25b3fbf22968f0b09c266b8fd66a44fcc4d9c | [
"Apache-2.0"
] | null | null | null | from .classification import * | 29 | 29 | 0.827586 | 3 | 29 | 8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103448 | 29 | 1 | 29 | 29 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
70366bf2a37e62524804d240089fbefc7e618b54 | 170 | py | Python | keras2onnx/ke2onnx/__init__.py | TomWildenhain-Microsoft/keras-onnx | 383e431583d9a67da67d5a01f401b9f4df26ae4a | [
"Apache-2.0"
] | 362 | 2018-12-18T20:21:15.000Z | 2022-03-07T10:47:49.000Z | keras2onnx/ke2onnx/__init__.py | TomWildenhain-Microsoft/keras-onnx | 383e431583d9a67da67d5a01f401b9f4df26ae4a | [
"Apache-2.0"
] | 411 | 2019-01-17T19:19:20.000Z | 2021-08-09T02:28:57.000Z | keras2onnx/ke2onnx/__init__.py | TomWildenhain-Microsoft/keras-onnx | 383e431583d9a67da67d5a01f401b9f4df26ae4a | [
"Apache-2.0"
] | 128 | 2019-01-15T20:35:31.000Z | 2022-03-07T10:47:51.000Z | # SPDX-License-Identifier: Apache-2.0
from .main import keras_layer_to_operator
from .main import static_set_ke2onnx_converters
from .layer_spec import keras_layer_spec
| 28.333333 | 47 | 0.852941 | 27 | 170 | 5.037037 | 0.666667 | 0.117647 | 0.205882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019481 | 0.094118 | 170 | 5 | 48 | 34 | 0.863636 | 0.205882 | 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 |
7044f6a8a8a5020e4b733e5f413833db82a96e41 | 54 | py | Python | run/__init__.py | RockeyCoss/machineLearningImplementation | 92442f9a9703de57df6308881c4a87bbf0f9163c | [
"MIT"
] | 1 | 2021-03-21T15:08:39.000Z | 2021-03-21T15:08:39.000Z | run/__init__.py | RockeyCoss/machineLearningImplementation | 92442f9a9703de57df6308881c4a87bbf0f9163c | [
"MIT"
] | null | null | null | run/__init__.py | RockeyCoss/machineLearningImplementation | 92442f9a9703de57df6308881c4a87bbf0f9163c | [
"MIT"
] | null | null | null | from run.train import train
from run.test import test | 27 | 28 | 0.814815 | 10 | 54 | 4.4 | 0.5 | 0.318182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148148 | 54 | 2 | 29 | 27 | 0.956522 | 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 |
70562af78212210d2da9d5f036ad9190c1f4b2c6 | 49 | py | Python | recolo/demoData/__init__.py | PolymerGuy/recon | 14d66e3d5cb5fcc4868df326b045952daf139291 | [
"MIT"
] | 4 | 2021-10-14T19:52:05.000Z | 2022-03-10T11:41:34.000Z | recolo/demoData/__init__.py | PolymerGuy/recolo | 05b14f0834fa675579eabdf43fac046259df19bb | [
"MIT"
] | null | null | null | recolo/demoData/__init__.py | PolymerGuy/recolo | 05b14f0834fa675579eabdf43fac046259df19bb | [
"MIT"
] | 1 | 2022-03-04T13:09:01.000Z | 2022-03-04T13:09:01.000Z | from .dataverseData import ImpactHammerExperiment | 49 | 49 | 0.918367 | 4 | 49 | 11.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061224 | 49 | 1 | 49 | 49 | 0.978261 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
7085573dce2b33ca6563a0996d8d4ef01d5986a7 | 163 | py | Python | cytro/asym/__init__.py | bearbear1100/Cryptools | fdac91f2fbbbfd917f9340410ca8e63785fa01d2 | [
"MIT"
] | 87 | 2019-06-02T13:47:51.000Z | 2022-02-23T02:54:17.000Z | cytro/asym/__init__.py | bearbear1100/Cryptools | fdac91f2fbbbfd917f9340410ca8e63785fa01d2 | [
"MIT"
] | 3 | 2019-06-05T19:12:26.000Z | 2019-12-13T14:27:24.000Z | cytro/asym/__init__.py | bearbear1100/Cryptools | fdac91f2fbbbfd917f9340410ca8e63785fa01d2 | [
"MIT"
] | 3 | 2018-06-07T08:30:00.000Z | 2018-10-02T11:01:02.000Z |
from ..modular import *
from ..rootmod import *
from ..strings import *
from ..formula import *
from .rsa import *
from .dsa import *
from .cryptosystem import * | 18.111111 | 27 | 0.711656 | 21 | 163 | 5.52381 | 0.428571 | 0.517241 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.177914 | 163 | 9 | 27 | 18.111111 | 0.865672 | 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 |
70a7cc8cdb683fc5dcfc4ef4eeb7e8b1eac12817 | 32 | py | Python | pisim/pisim_tests.py | NathanMackenzie/PiSim | deb766e7fcd386754ea6e325b07a708ad6a9e67a | [
"MIT"
] | null | null | null | pisim/pisim_tests.py | NathanMackenzie/PiSim | deb766e7fcd386754ea6e325b07a708ad6a9e67a | [
"MIT"
] | null | null | null | pisim/pisim_tests.py | NathanMackenzie/PiSim | deb766e7fcd386754ea6e325b07a708ad6a9e67a | [
"MIT"
] | null | null | null | import unittest
import helpers
| 8 | 15 | 0.84375 | 4 | 32 | 6.75 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15625 | 32 | 3 | 16 | 10.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
565c2bf502178efc3155cbaed5d665d073266409 | 8,351 | py | Python | ico/tests/contracts/test_transfer_agents.py | miohtama/Smart-Contracts | 8892e85d1c75994871a0fa14eb8c03016db39d88 | [
"Apache-2.0"
] | 1,148 | 2017-03-28T08:41:32.000Z | 2019-01-26T13:39:39.000Z | ico/tests/contracts/test_transfer_agents.py | miohtama/Smart-Contracts | 8892e85d1c75994871a0fa14eb8c03016db39d88 | [
"Apache-2.0"
] | 117 | 2017-03-31T07:31:22.000Z | 2019-01-14T16:14:49.000Z | ico/tests/contracts/test_transfer_agents.py | miohtama/Smart-Contracts | 8892e85d1c75994871a0fa14eb8c03016db39d88 | [
"Apache-2.0"
] | 494 | 2017-03-30T23:11:45.000Z | 2019-01-29T17:41:37.000Z | """SecurityToken Transfer agent tests"""
import pytest
from random import randint
from web3.contract import Contract
from ico.tests.utils import check_gas
from ico.tests.utils import removeNonPrintable
from eth_utils import decode_hex, to_bytes
from eth_tester.exceptions import TransactionFailed
@pytest.fixture
def mo... | 37.617117 | 148 | 0.767453 | 1,001 | 8,351 | 6.105894 | 0.123876 | 0.125491 | 0.074444 | 0.072153 | 0.802192 | 0.767997 | 0.741492 | 0.727094 | 0.727094 | 0.6857 | 0 | 0.019608 | 0.120584 | 8,351 | 221 | 149 | 37.78733 | 0.812636 | 0.045264 | 0 | 0.572519 | 0 | 0 | 0.039814 | 0.013985 | 0 | 0 | 0.005292 | 0.004525 | 0.122137 | 1 | 0.145038 | false | 0 | 0.061069 | 0.038168 | 0.290076 | 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 |
56895168c7c5923c997223c630736efcabed7ea3 | 38 | py | Python | utils/__init__.py | ResByte/aptos-blindness-pytorch | 7e0825336d1c1a82c8a4a405102df713580ec184 | [
"Apache-2.0"
] | null | null | null | utils/__init__.py | ResByte/aptos-blindness-pytorch | 7e0825336d1c1a82c8a4a405102df713580ec184 | [
"Apache-2.0"
] | null | null | null | utils/__init__.py | ResByte/aptos-blindness-pytorch | 7e0825336d1c1a82c8a4a405102df713580ec184 | [
"Apache-2.0"
] | null | null | null | from .transforms import get_transforms | 38 | 38 | 0.894737 | 5 | 38 | 6.6 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078947 | 38 | 1 | 38 | 38 | 0.942857 | 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 |
569f7924076ba983e2331f489c087ba8ad1bdc85 | 38 | py | Python | misc/__init__.py | JesterOrNot/python_calc | 3e939046930eca2204f8354d9f221f6127d2db91 | [
"MIT"
] | 1 | 2019-07-22T19:42:15.000Z | 2019-07-22T19:42:15.000Z | misc/__init__.py | JesterOrNot/python_calc | 3e939046930eca2204f8354d9f221f6127d2db91 | [
"MIT"
] | 1 | 2019-07-23T17:49:48.000Z | 2019-07-23T17:52:14.000Z | misc/__init__.py | JesterOrNot/python_calc | 3e939046930eca2204f8354d9f221f6127d2db91 | [
"MIT"
] | 1 | 2019-07-23T17:45:40.000Z | 2019-07-23T17:45:40.000Z | from .gpa import *
from .main import * | 19 | 19 | 0.710526 | 6 | 38 | 4.5 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184211 | 38 | 2 | 19 | 19 | 0.870968 | 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 |
56a7e13a03e351750a81cdb063b5fad515268785 | 100 | py | Python | katas/kyu_5/mod4_regex.py | the-zebulan/CodeWars | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | [
"MIT"
] | 40 | 2016-03-09T12:26:20.000Z | 2022-03-23T08:44:51.000Z | katas/kyu_5/mod4_regex.py | akalynych/CodeWars | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | [
"MIT"
] | null | null | null | katas/kyu_5/mod4_regex.py | akalynych/CodeWars | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | [
"MIT"
] | 36 | 2016-11-07T19:59:58.000Z | 2022-03-31T11:18:27.000Z | import re
class Mod:
mod4 = re.compile(r'.*\[[+-]?0*(\d*[13579][26]|(?:\d*[02468])?[048])\]')
| 16.666667 | 76 | 0.48 | 15 | 100 | 3.2 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.195402 | 0.13 | 100 | 5 | 77 | 20 | 0.356322 | 0 | 0 | 0 | 0 | 0 | 0.5 | 0.5 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
3b06656eb7b9ab954bd678f68282a20d0e4de7f3 | 24 | py | Python | jacobian/__init__.py | richardfeynmanrocks/ml-in-parallel | 6fd978b1f4a97ae789a13e0c2f20638672848aa5 | [
"Unlicense"
] | 3 | 2021-10-01T23:28:54.000Z | 2022-01-29T02:21:20.000Z | jacobian/__init__.py | quantumish/Jacobian | 6fd978b1f4a97ae789a13e0c2f20638672848aa5 | [
"Unlicense"
] | null | null | null | jacobian/__init__.py | quantumish/Jacobian | 6fd978b1f4a97ae789a13e0c2f20638672848aa5 | [
"Unlicense"
] | 1 | 2020-07-14T16:06:20.000Z | 2020-07-14T16:06:20.000Z | from _jacobian import *
| 12 | 23 | 0.791667 | 3 | 24 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 24 | 1 | 24 | 24 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
3b13224b5fbfb3470be421b41284f0a6ccec3035 | 934 | py | Python | picaa/alliance_grab.py | evilputty/picaa | e05433f6a1e5764e181217ed23242667e0f615ed | [
"MIT"
] | null | null | null | picaa/alliance_grab.py | evilputty/picaa | e05433f6a1e5764e181217ed23242667e0f615ed | [
"MIT"
] | null | null | null | picaa/alliance_grab.py | evilputty/picaa | e05433f6a1e5764e181217ed23242667e0f615ed | [
"MIT"
] | null | null | null | import json
import requests
currentpage = 1
# Todo: Add cache info
# Get list of EVE alliances
print('Fetching: https://crest-tq.eveonline.com/alliances/?page='+str(currentpage))
r = requests.get('https://crest-tq.eveonline.com/alliances/?page='+str(currentpage))
json_data = r.json()
with open('alliance.' + str(cur... | 33.357143 | 88 | 0.704497 | 133 | 934 | 4.864662 | 0.308271 | 0.12983 | 0.074189 | 0.12983 | 0.75425 | 0.75425 | 0.75425 | 0.75425 | 0.75425 | 0.75425 | 0 | 0.00738 | 0.12955 | 934 | 27 | 89 | 34.592593 | 0.788438 | 0.070664 | 0 | 0.666667 | 0 | 0 | 0.305556 | 0 | 0 | 0 | 0 | 0.037037 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0.166667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
8ea879d284490cb4e160471b09c0b70aefd6d07b | 143 | py | Python | myp2/views.py | algor1/myp2 | b10ad7efdca11c88b4ae21520244024560f2c3be | [
"MIT"
] | null | null | null | myp2/views.py | algor1/myp2 | b10ad7efdca11c88b4ae21520244024560f2c3be | [
"MIT"
] | null | null | null | myp2/views.py | algor1/myp2 | b10ad7efdca11c88b4ae21520244024560f2c3be | [
"MIT"
] | null | null | null | from django.shortcuts import render, redirect
# Create your views here.
def index(request):
return render(request, 'myp2/index.html')
| 14.3 | 45 | 0.734266 | 19 | 143 | 5.526316 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008403 | 0.167832 | 143 | 9 | 46 | 15.888889 | 0.87395 | 0.160839 | 0 | 0 | 0 | 0 | 0.12931 | 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 |
8eb7fdc862061c51d65266af94fb579ea7bb44da | 4,672 | py | Python | tools/third_party/h2/test/test_config.py | ziransun/wpt | ab8f451eb39eb198584d547f5d965ef54df2a86a | [
"BSD-3-Clause"
] | 2,479 | 2018-05-28T14:51:29.000Z | 2022-03-30T14:41:18.000Z | tools/third_party/h2/test/test_config.py | ziransun/wpt | ab8f451eb39eb198584d547f5d965ef54df2a86a | [
"BSD-3-Clause"
] | 7,642 | 2018-05-28T09:38:03.000Z | 2022-03-31T20:55:48.000Z | tools/third_party/h2/test/test_config.py | ziransun/wpt | ab8f451eb39eb198584d547f5d965ef54df2a86a | [
"BSD-3-Clause"
] | 1,303 | 2018-05-29T14:50:02.000Z | 2022-03-30T17:30:42.000Z | # -*- coding: utf-8 -*-
"""
test_config
~~~~~~~~~~~
Test the configuration object.
"""
import logging
import pytest
import h2.config
class TestH2Config(object):
"""
Tests of the H2 config object.
"""
def test_defaults(self):
"""
The default values of the HTTP/2 config object are sens... | 35.664122 | 79 | 0.657748 | 547 | 4,672 | 5.404022 | 0.162706 | 0.137348 | 0.08525 | 0.078484 | 0.806495 | 0.785859 | 0.765562 | 0.735792 | 0.735792 | 0.726319 | 0 | 0.00876 | 0.242509 | 4,672 | 130 | 80 | 35.938462 | 0.826505 | 0.221747 | 0 | 0.550725 | 0 | 0 | 0.080747 | 0.03013 | 0 | 0 | 0 | 0 | 0.115942 | 1 | 0.144928 | false | 0 | 0.043478 | 0 | 0.217391 | 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 |
d93727bd9015f586c7c80cda794ea2294d24b2e6 | 83 | py | Python | xastropy/outils/__init__.py | bpholden/xastropy | 66aff0995a84c6829da65996d2379ba4c946dabe | [
"BSD-3-Clause"
] | 3 | 2015-08-23T00:32:58.000Z | 2020-12-31T02:37:52.000Z | xastropy/outils/__init__.py | Kristall-WangShiwei/xastropy | 723fe56cb48d5a5c4cdded839082ee12ef8c6732 | [
"BSD-3-Clause"
] | 104 | 2015-07-17T18:31:54.000Z | 2018-06-29T17:04:09.000Z | xastropy/outils/__init__.py | Kristall-WangShiwei/xastropy | 723fe56cb48d5a5c4cdded839082ee12ef8c6732 | [
"BSD-3-Clause"
] | 16 | 2015-07-17T15:50:37.000Z | 2019-04-21T03:42:47.000Z | from __future__ import print_function, absolute_import, division, unicode_literals
| 41.5 | 82 | 0.879518 | 10 | 83 | 6.6 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084337 | 83 | 1 | 83 | 83 | 0.868421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 6 |
d93abc0edb0c4a463d4ae6494d90ebd6211802db | 4,810 | py | Python | src/tests/test_calculator.py | ABHISHEKVALSAN/talgoutils | f801b23bc3decd04d8f18c4e342f93fa3a41c6cb | [
"MIT"
] | null | null | null | src/tests/test_calculator.py | ABHISHEKVALSAN/talgoutils | f801b23bc3decd04d8f18c4e342f93fa3a41c6cb | [
"MIT"
] | null | null | null | src/tests/test_calculator.py | ABHISHEKVALSAN/talgoutils | f801b23bc3decd04d8f18c4e342f93fa3a41c6cb | [
"MIT"
] | 1 | 2022-01-23T22:51:38.000Z | 2022-01-23T22:51:38.000Z | '''
This module performs unittest for calculator
'''
import unittest
import talgoutils.constants as const
import talgoutils.calculator as calc
class Testing(unittest.TestCase):
'''
This class performs unittests on all the functions in talgoutils.calculator
'''
def test_get_pl(self):
'''
... | 39.42623 | 79 | 0.635135 | 738 | 4,810 | 3.924119 | 0.138211 | 0.082873 | 0.080801 | 0.112224 | 0.746202 | 0.738605 | 0.738605 | 0.725138 | 0.725138 | 0.688536 | 0 | 0.138174 | 0.23264 | 4,810 | 121 | 80 | 39.752066 | 0.646437 | 0.071102 | 0 | 0.055556 | 0 | 0 | 0.003906 | 0 | 0 | 0 | 0 | 0 | 0.430556 | 1 | 0.055556 | false | 0 | 0.041667 | 0 | 0.111111 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
7982f3d8ed6c14300c56bebd3008662510b04186 | 171 | py | Python | tests/conftest.py | joshuahlang/sqlalchemy-ctds | 87ac134665c53c58f1420694718c7590c5f5e8e8 | [
"MIT"
] | 2 | 2018-09-11T22:34:17.000Z | 2021-05-02T16:26:49.000Z | tests/conftest.py | joshuahlang/sqlalchemy-ctds | 87ac134665c53c58f1420694718c7590c5f5e8e8 | [
"MIT"
] | 2 | 2018-01-31T02:45:59.000Z | 2018-01-31T16:44:35.000Z | tests/conftest.py | joshuahlang/sqlalchemy-ctds | 87ac134665c53c58f1420694718c7590c5f5e8e8 | [
"MIT"
] | 1 | 2018-01-31T03:29:08.000Z | 2018-01-31T03:29:08.000Z | from sqlalchemy.dialects import registry
registry.register('mssql.ctds', 'sqlalchemy_ctds.ctds', 'MSDialect_ctds')
from sqlalchemy.testing.plugin.pytestplugin import *
| 24.428571 | 73 | 0.812865 | 20 | 171 | 6.85 | 0.6 | 0.20438 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081871 | 171 | 6 | 74 | 28.5 | 0.872611 | 0 | 0 | 0 | 0 | 0 | 0.25731 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
79b48e99fd48f92eb5f2161920fd4ccda903a800 | 27 | py | Python | src/euler_python_package/euler_python/medium/p295.py | wilsonify/euler | 5214b776175e6d76a7c6d8915d0e062d189d9b79 | [
"MIT"
] | null | null | null | src/euler_python_package/euler_python/medium/p295.py | wilsonify/euler | 5214b776175e6d76a7c6d8915d0e062d189d9b79 | [
"MIT"
] | null | null | null | src/euler_python_package/euler_python/medium/p295.py | wilsonify/euler | 5214b776175e6d76a7c6d8915d0e062d189d9b79 | [
"MIT"
] | null | null | null | def problem295():
pass
| 9 | 17 | 0.62963 | 3 | 27 | 5.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15 | 0.259259 | 27 | 2 | 18 | 13.5 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 6 |
8dfaf10e4d63fc5d189d825ed5f11b1884637a67 | 9,450 | py | Python | carriage/lambda_.py | d2207197/maybee | bfe71b46b46d8572b8f8e01964eceb76fc1decef | [
"Apache-2.0"
] | 10 | 2018-04-09T09:59:17.000Z | 2021-09-23T05:43:09.000Z | carriage/lambda_.py | d2207197/maybee | bfe71b46b46d8572b8f8e01964eceb76fc1decef | [
"Apache-2.0"
] | 7 | 2018-06-06T08:01:59.000Z | 2018-08-24T13:52:27.000Z | carriage/lambda_.py | d2207197/maybee | bfe71b46b46d8572b8f8e01964eceb76fc1decef | [
"Apache-2.0"
] | 1 | 2018-06-20T03:27:58.000Z | 2018-06-20T03:27:58.000Z |
import functools as fnt
import operator as op
from .pipeline import Pipeline, Transformer
from .repr import repr_args
def lambda_then(f):
@fnt.wraps(f)
def wraped(self, *args, **kwargs):
trfmr = f(self, *args, **kwargs)
return self._then(trfmr)
def other_lambda(f):
@fnt.wraps(f)... | 30.191693 | 98 | 0.613228 | 1,238 | 9,450 | 4.345719 | 0.084814 | 0.124907 | 0.184015 | 0.23197 | 0.675093 | 0.666171 | 0.65539 | 0.638662 | 0.638662 | 0.612268 | 0 | 0.00308 | 0.244127 | 9,450 | 312 | 99 | 30.288462 | 0.750105 | 0.033228 | 0 | 0.378995 | 0 | 0 | 0.088656 | 0.005617 | 0 | 0 | 0 | 0 | 0 | 1 | 0.310502 | false | 0 | 0.018265 | 0.26484 | 0.648402 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
30911724f7f69855768f9da7757342c12c13b235 | 40 | py | Python | scripts/appparser/__init__.py | teexone/severstal_2022 | 1135b54be9118745c1a1630ce232a9200ed365a3 | [
"MIT"
] | null | null | null | scripts/appparser/__init__.py | teexone/severstal_2022 | 1135b54be9118745c1a1630ce232a9200ed365a3 | [
"MIT"
] | null | null | null | scripts/appparser/__init__.py | teexone/severstal_2022 | 1135b54be9118745c1a1630ce232a9200ed365a3 | [
"MIT"
] | null | null | null | from appformat import date as dateformat | 40 | 40 | 0.875 | 6 | 40 | 5.833333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 40 | 1 | 40 | 40 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
309a883127823fc1b53fcc86ceaf3638c06a5a01 | 260 | py | Python | django_silky/example_app/views.py | idonethis/silk | 1975b74019e4ba67238e14d395d91f0eb5e8dce2 | [
"MIT"
] | null | null | null | django_silky/example_app/views.py | idonethis/silk | 1975b74019e4ba67238e14d395d91f0eb5e8dce2 | [
"MIT"
] | null | null | null | django_silky/example_app/views.py | idonethis/silk | 1975b74019e4ba67238e14d395d91f0eb5e8dce2 | [
"MIT"
] | null | null | null | from django.shortcuts import render
# Create your views here.
from django.shortcuts import render_to_response
from example_app import models
def index(request):
return render_to_response('example_app/index.html', {'blinds': models.Blind.objects.all()})
| 26 | 95 | 0.792308 | 37 | 260 | 5.405405 | 0.621622 | 0.1 | 0.19 | 0.25 | 0.31 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115385 | 260 | 9 | 96 | 28.888889 | 0.869565 | 0.088462 | 0 | 0 | 0 | 0 | 0.119149 | 0.093617 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.6 | 0.2 | 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 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 6 |
30a9676680d68025e4a204f5ca00dcb42634584e | 66 | py | Python | modules/autovc/__init__.py | reppy4620/VCon | cac3441443cb9b28ffbaa0646ed1826d71cb16e0 | [
"MIT"
] | 4 | 2021-05-22T03:14:44.000Z | 2022-01-03T04:32:54.000Z | modules/autovc/__init__.py | reppy4620/VCon | cac3441443cb9b28ffbaa0646ed1826d71cb16e0 | [
"MIT"
] | null | null | null | modules/autovc/__init__.py | reppy4620/VCon | cac3441443cb9b28ffbaa0646ed1826d71cb16e0 | [
"MIT"
] | null | null | null | from .pl_model import AutoVCModule
from .model import AutoVCModel
| 22 | 34 | 0.848485 | 9 | 66 | 6.111111 | 0.666667 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121212 | 66 | 2 | 35 | 33 | 0.948276 | 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 |
eb6f3411c48ded99a33ffc3cc055625f77d8cf13 | 66,421 | py | Python | pirates/leveleditor/worldData/WildIslandC.py | Willy5s/Pirates-Online-Rewritten | 7434cf98d9b7c837d57c181e5dabd02ddf98acb7 | [
"BSD-3-Clause"
] | 81 | 2018-04-08T18:14:24.000Z | 2022-01-11T07:22:15.000Z | pirates/leveleditor/worldData/WildIslandC.py | Willy5s/Pirates-Online-Rewritten | 7434cf98d9b7c837d57c181e5dabd02ddf98acb7 | [
"BSD-3-Clause"
] | 4 | 2018-09-13T20:41:22.000Z | 2022-01-08T06:57:00.000Z | pirates/leveleditor/worldData/WildIslandC.py | Willy5s/Pirates-Online-Rewritten | 7434cf98d9b7c837d57c181e5dabd02ddf98acb7 | [
"BSD-3-Clause"
] | 26 | 2018-05-26T12:49:27.000Z | 2021-09-11T09:11:59.000Z | from pandac.PandaModules import Point3, VBase3, Vec4, Vec3
objectStruct = {'Objects': {'1164135492.80ulzd': {'Type': 'Island','Name': 'WildIslandC','File': '','Environment': 'Interior','Minimap': False,'Objects': {'1164137872.46dzlu': {'Type': 'Tree','DisableCollision': False,'Hpr': VBase3(-61.67, 0.0, 0.0),'Pos': Poin... | 22,140.333333 | 66,212 | 0.683323 | 9,295 | 66,421 | 4.787951 | 0.116622 | 0.014605 | 0.01483 | 0.105833 | 0.648391 | 0.565724 | 0.506224 | 0.439421 | 0.418906 | 0.406098 | 0 | 0.262019 | 0.04893 | 66,421 | 3 | 66,213 | 22,140.333333 | 0.442482 | 0 | 0 | 0 | 0 | 0 | 0.558174 | 0.286863 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
ebc17deb16be7d7c687976fbc0245f29c107b926 | 89 | py | Python | app/auth/__init__.py | BreezeDawn/flask-blog | 402220fe8056187ba2e93602d20f61846316f1de | [
"MIT"
] | null | null | null | app/auth/__init__.py | BreezeDawn/flask-blog | 402220fe8056187ba2e93602d20f61846316f1de | [
"MIT"
] | null | null | null | app/auth/__init__.py | BreezeDawn/flask-blog | 402220fe8056187ba2e93602d20f61846316f1de | [
"MIT"
] | null | null | null | from flask import Blueprint
auth_blu = Blueprint('auth', __name__)
from .views import * | 17.8 | 38 | 0.764045 | 12 | 89 | 5.25 | 0.666667 | 0.412698 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146067 | 89 | 5 | 39 | 17.8 | 0.828947 | 0 | 0 | 0 | 0 | 0 | 0.044444 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0.666667 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 6 |
ebd6111deba580233d81dff2f3ba6ea1c8105da7 | 129 | py | Python | min_max.py | mkiterian/max-and-min-number | 3d45d31e3f5be08618fe36a2a0aa3d99e9d3d546 | [
"MIT"
] | null | null | null | min_max.py | mkiterian/max-and-min-number | 3d45d31e3f5be08618fe36a2a0aa3d99e9d3d546 | [
"MIT"
] | null | null | null | min_max.py | mkiterian/max-and-min-number | 3d45d31e3f5be08618fe36a2a0aa3d99e9d3d546 | [
"MIT"
] | null | null | null | def find_max_min(a_list):
if min(a_list) == max(a_list):
return [len(a_list)]
else:
return [min(a_list), max(a_list)]
| 21.5 | 37 | 0.651163 | 25 | 129 | 3.04 | 0.4 | 0.394737 | 0.315789 | 0.289474 | 0.421053 | 0.421053 | 0 | 0 | 0 | 0 | 0 | 0 | 0.178295 | 129 | 5 | 38 | 25.8 | 0.716981 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 6 |
ebe42f76eaa1372483e32ebe02532e56ee176066 | 46 | py | Python | rx/linq/observable/blocking/__init__.py | AlexMost/RxPY | 05cb14c72806dc41e243789c05f498dede11cebd | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | rx/linq/observable/blocking/__init__.py | AlexMost/RxPY | 05cb14c72806dc41e243789c05f498dede11cebd | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | rx/linq/observable/blocking/__init__.py | AlexMost/RxPY | 05cb14c72806dc41e243789c05f498dede11cebd | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2021-11-04T11:13:49.000Z | 2021-11-04T11:13:49.000Z | from . import foreach
from . import toiterable | 23 | 24 | 0.804348 | 6 | 46 | 6.166667 | 0.666667 | 0.540541 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152174 | 46 | 2 | 24 | 23 | 0.948718 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
ebe6f504647bc719a83f488c4c80b0fcc88ccf63 | 28 | py | Python | deepred_pytorch/run/__init__.py | dileep-kishore/DEEPred-pytorch | 17f5189ebce41b9f0b959a2c7e797545b93f762c | [
"MIT"
] | null | null | null | deepred_pytorch/run/__init__.py | dileep-kishore/DEEPred-pytorch | 17f5189ebce41b9f0b959a2c7e797545b93f762c | [
"MIT"
] | null | null | null | deepred_pytorch/run/__init__.py | dileep-kishore/DEEPred-pytorch | 17f5189ebce41b9f0b959a2c7e797545b93f762c | [
"MIT"
] | null | null | null | from .training import train
| 14 | 27 | 0.821429 | 4 | 28 | 5.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 28 | 1 | 28 | 28 | 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 |
cce56ba31358086dd1bdff4d8d17ba84bc81e8eb | 11,095 | py | Python | models/validation/schema_validation_methods.py | meguia/virtualroom | adf7317c8af929883129de4f96bb0fae437b8340 | [
"MIT"
] | 1 | 2021-11-17T00:30:22.000Z | 2021-11-17T00:30:22.000Z | models/validation/schema_validation_methods.py | meguia/virtualroom | adf7317c8af929883129de4f96bb0fae437b8340 | [
"MIT"
] | 1 | 2022-03-16T23:53:48.000Z | 2022-03-16T23:53:48.000Z | models/validation/schema_validation_methods.py | meguia/virtualroom | adf7317c8af929883129de4f96bb0fae437b8340 | [
"MIT"
] | null | null | null | from functools import reduce
def validate_room_schema(desc = {}):
"""
Raises an exception if the room schema used for input is badly formatted
"""
expected_keys = [
'name',
'dimensions',
'wall_thickness',
'elements',
... | 34.889937 | 80 | 0.475439 | 1,148 | 11,095 | 4.421603 | 0.063589 | 0.132388 | 0.051221 | 0.074862 | 0.930654 | 0.909771 | 0.879039 | 0.813436 | 0.767731 | 0.722616 | 0 | 0.000309 | 0.416224 | 11,095 | 317 | 81 | 35 | 0.783387 | 0.060478 | 0 | 0.624535 | 0 | 0 | 0.165646 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033457 | false | 0 | 0.003717 | 0 | 0.037175 | 0.007435 | 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 |
ccf4fb2dae31311cd35c11790c22433a9e065c05 | 103 | py | Python | conftest.py | Bjoern98/Arguebuf | a025e054480c36656781193862dabeba893e6eb9 | [
"Apache-2.0"
] | 3 | 2020-06-09T09:11:34.000Z | 2021-06-10T10:15:53.000Z | conftest.py | Bjoern98/Arguebuf | a025e054480c36656781193862dabeba893e6eb9 | [
"Apache-2.0"
] | 1 | 2021-01-04T14:03:23.000Z | 2021-01-04T14:03:23.000Z | conftest.py | Bjoern98/Arguebuf | a025e054480c36656781193862dabeba893e6eb9 | [
"Apache-2.0"
] | 1 | 2021-09-14T09:21:37.000Z | 2021-09-14T09:21:37.000Z | import pytest
import arguebuf as ag
@pytest.fixture()
def init_graph():
return ag.Graph("Test")
| 11.444444 | 27 | 0.708738 | 15 | 103 | 4.8 | 0.733333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.174757 | 103 | 8 | 28 | 12.875 | 0.847059 | 0 | 0 | 0 | 0 | 0 | 0.038835 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0.4 | 0.2 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 6 |
691b9f5b41d7459e9b0a0d814f8ff61842b95568 | 28 | py | Python | psda/__init__.py | aswart/PSDA | 2bdd071e6a3dee89827900553185a98a38292843 | [
"MIT"
] | null | null | null | psda/__init__.py | aswart/PSDA | 2bdd071e6a3dee89827900553185a98a38292843 | [
"MIT"
] | null | null | null | psda/__init__.py | aswart/PSDA | 2bdd071e6a3dee89827900553185a98a38292843 | [
"MIT"
] | null | null | null | from .psda import PSDA, VMF
| 14 | 27 | 0.75 | 5 | 28 | 4.2 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.178571 | 28 | 1 | 28 | 28 | 0.913043 | 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 |
693bcc3e1749cf84c70d5b99a3d09805775ee07c | 23 | py | Python | Botterino/__main__.py | Zimonze/botterino | 7d07a52519fdaeb954eaacf4d377a6dac5837281 | [
"MIT"
] | 3 | 2021-03-05T20:36:35.000Z | 2021-09-01T21:24:11.000Z | Botterino/__main__.py | Zimonze/botterino | 7d07a52519fdaeb954eaacf4d377a6dac5837281 | [
"MIT"
] | 2 | 2021-05-14T10:17:54.000Z | 2021-06-19T06:22:43.000Z | Botterino/__main__.py | Zimonze/botterino | 7d07a52519fdaeb954eaacf4d377a6dac5837281 | [
"MIT"
] | 7 | 2020-10-02T14:10:02.000Z | 2021-12-05T00:54:16.000Z | from . import botterino | 23 | 23 | 0.826087 | 3 | 23 | 6.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 23 | 1 | 23 | 23 | 0.95 | 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 |
15f6b590f931de70da36d13bcdd62e24cbc785e8 | 429 | py | Python | pytest_django/lazy_django.py | dcramer/pytest_django | 693aae274bcd68fd20d6f638abd58be0c21bd782 | [
"BSD-3-Clause"
] | 1 | 2015-11-06T10:47:26.000Z | 2015-11-06T10:47:26.000Z | pytest_django/lazy_django.py | dcramer/pytest_django | 693aae274bcd68fd20d6f638abd58be0c21bd782 | [
"BSD-3-Clause"
] | null | null | null | pytest_django/lazy_django.py | dcramer/pytest_django | 693aae274bcd68fd20d6f638abd58be0c21bd782 | [
"BSD-3-Clause"
] | null | null | null | """
Helpers to load Django lazily when DJANGO_SETTINGS_MODULE is not defined.
"""
import os
import pytest
def skip_if_no_django():
"""Raises a skip exception when no Django settings are available"""
if not django_settings_is_configured():
pytest.skip('Test skipped since DJANGO_SETTINGS_MODULE is not... | 23.833333 | 80 | 0.757576 | 61 | 429 | 5.081967 | 0.508197 | 0.270968 | 0.193548 | 0.141935 | 0.206452 | 0.206452 | 0 | 0 | 0 | 0 | 0 | 0 | 0.158508 | 429 | 17 | 81 | 25.235294 | 0.858726 | 0.314685 | 0 | 0 | 0 | 0 | 0.281139 | 0.156584 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | true | 0 | 0.285714 | 0.142857 | 0.714286 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
c61db08a52636f6e90792637525a8f849cdc1ea9 | 58 | py | Python | Common/Readers/Engine/AbstractEngine.py | enriqueescobar-askida/Kinito.Finance | 5308748b64829ac798a858161f9b4a9e5829db44 | [
"MIT"
] | 2 | 2020-03-04T11:18:38.000Z | 2020-05-10T15:36:42.000Z | Common/Readers/Engine/AbstractEngine.py | enriqueescobar-askida/Kinito.Finance | 5308748b64829ac798a858161f9b4a9e5829db44 | [
"MIT"
] | 6 | 2020-03-30T16:42:47.000Z | 2021-12-13T20:37:21.000Z | Common/Readers/Engine/AbstractEngine.py | enriqueescobar-askida/Kinito.Finance | 5308748b64829ac798a858161f9b4a9e5829db44 | [
"MIT"
] | 1 | 2020-04-14T11:26:16.000Z | 2020-04-14T11:26:16.000Z | from abc import ABC
class AbstractEngine(ABC):
pass
| 9.666667 | 26 | 0.724138 | 8 | 58 | 5.25 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.224138 | 58 | 5 | 27 | 11.6 | 0.933333 | 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 |
c6468af6350dec4678463e25e28c5b63e870596d | 22,455 | py | Python | spyre/spyre/spyrelets/holeburning_spyrelet.py | zhong-lab/optics | 9de1942d9a128183ecb3d360b160b27126e7b8f0 | [
"BSD-2-Clause"
] | 1 | 2022-03-27T07:47:19.000Z | 2022-03-27T07:47:19.000Z | spyre/spyre/spyrelets/holeburning_spyrelet.py | zhong-lab/optics | 9de1942d9a128183ecb3d360b160b27126e7b8f0 | [
"BSD-2-Clause"
] | null | null | null | spyre/spyre/spyrelets/holeburning_spyrelet.py | zhong-lab/optics | 9de1942d9a128183ecb3d360b160b27126e7b8f0 | [
"BSD-2-Clause"
] | 4 | 2019-11-08T22:39:04.000Z | 2021-11-05T02:39:37.000Z | import numpy as np
import pyqtgraph as pg
import time
import csv
import os
from PyQt5.Qsci import QsciScintilla, QsciLexerPython
import matplotlib.pyplot as plt
from spyre import Spyrelet, Task, Element
from spyre.widgets.task import TaskWidget
from spyre.plotting import LinePlotWidget
from spyre.widgets.rangespace i... | 33.316024 | 147 | 0.680917 | 2,739 | 22,455 | 5.529755 | 0.081782 | 0.060082 | 0.02773 | 0.033672 | 0.812228 | 0.768784 | 0.760201 | 0.737422 | 0.737422 | 0.732405 | 0 | 0.059046 | 0.162815 | 22,455 | 673 | 148 | 33.365527 | 0.746635 | 0.507548 | 0 | 0.138298 | 0 | 0 | 0.105923 | 0.006082 | 0 | 0 | 0 | 0 | 0 | 1 | 0.031915 | false | 0 | 0.067376 | 0 | 0.138298 | 0.021277 | 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 |
d6ef44253d79ed8f3f66288223eaeeb1bfdc8b6d | 174 | py | Python | thenewboston/utils/tools.py | rajat4665/thenewboston-python | df842c793fe7bfd8731fd8746abf25747c9e569e | [
"MIT"
] | null | null | null | thenewboston/utils/tools.py | rajat4665/thenewboston-python | df842c793fe7bfd8731fd8746abf25747c9e569e | [
"MIT"
] | 3 | 2021-03-30T14:03:41.000Z | 2021-09-22T19:30:31.000Z | thenewboston/utils/tools.py | rajat4665/thenewboston-python | df842c793fe7bfd8731fd8746abf25747c9e569e | [
"MIT"
] | null | null | null | import json
def sort_and_encode(dictionary):
"""
Sort dictionary and return encoded data
"""
return json.dumps(dictionary, sort_keys=True).encode('utf-8')
| 17.4 | 65 | 0.689655 | 23 | 174 | 5.086957 | 0.652174 | 0.239316 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007143 | 0.195402 | 174 | 9 | 66 | 19.333333 | 0.828571 | 0.224138 | 0 | 0 | 0 | 0 | 0.042017 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
ba957e8bf5d4403679143b239b682be021911231 | 39 | py | Python | UI/buttons/__init__.py | rtix/course_bot | f9f861a8d41804f75902d672d9290ba094a94a2a | [
"MIT"
] | 6 | 2018-11-18T12:37:52.000Z | 2020-06-11T08:11:14.000Z | UI/buttons/__init__.py | rtix/course_bot | f9f861a8d41804f75902d672d9290ba094a94a2a | [
"MIT"
] | 1 | 2019-03-08T05:39:56.000Z | 2019-03-08T05:39:56.000Z | UI/buttons/__init__.py | rtix/kfu_course_bot | f9f861a8d41804f75902d672d9290ba094a94a2a | [
"MIT"
] | 1 | 2020-09-04T18:25:46.000Z | 2020-09-04T18:25:46.000Z | from . import common, teacher, confirm
| 19.5 | 38 | 0.769231 | 5 | 39 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 39 | 1 | 39 | 39 | 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 |
ba9c8f94dee3f238bc095018089fa5c3acc976c5 | 21 | py | Python | venv/lib/python3.6/site-packages/pelican/tests/dummy_plugins/normal_plugin/normal_plugin/submodule.py | Patrisha-de-Boon/CMPUT404-Lab5 | cc235c56d707a96345e1093c8f346eee78e3644d | [
"Apache-2.0"
] | 1 | 2018-12-10T13:54:51.000Z | 2018-12-10T13:54:51.000Z | noop.py | redneckz/opencv-bird-detector | 36a60c0e6007b403181a8b8c5029e28aa5d9b71b | [
"MIT"
] | 1 | 2020-02-29T21:36:49.000Z | 2020-02-29T21:36:49.000Z | noop.py | redneckz/opencv-bird-detector | 36a60c0e6007b403181a8b8c5029e28aa5d9b71b | [
"MIT"
] | null | null | null | def noop():
pass
| 7 | 11 | 0.52381 | 3 | 21 | 3.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 21 | 2 | 12 | 10.5 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 6 |
bacd4adfb5311a610370a61458162181d4ae19a6 | 348 | py | Python | Losses/GeometricMeanAbsoluteError.py | recep-yildirim/Machine-Learning-Algorithms | dc4f4e6939631468246efc7537b1569007fee792 | [
"MIT"
] | 3 | 2021-05-12T13:13:52.000Z | 2022-01-19T19:54:16.000Z | Losses/GeometricMeanAbsoluteError.py | recep-yildirim/Machine-Learning-Algorithms | dc4f4e6939631468246efc7537b1569007fee792 | [
"MIT"
] | null | null | null | Losses/GeometricMeanAbsoluteError.py | recep-yildirim/Machine-Learning-Algorithms | dc4f4e6939631468246efc7537b1569007fee792 | [
"MIT"
] | null | null | null | import numpy as np
from Losses import Loss
class GeometricMeanAbsoluteError(Loss):
def call(self, true_labels, predicted_labels):
return np.power(np.prod(np.abs(true_labels - predicted_labels)), (1 / true_labels.shape[0]))
def __call__(self, true_labels, predicted_labels):
return self.call(tr... | 34.8 | 100 | 0.747126 | 48 | 348 | 5.145833 | 0.458333 | 0.202429 | 0.307692 | 0.404858 | 0.340081 | 0.340081 | 0.340081 | 0.340081 | 0 | 0 | 0 | 0.006803 | 0.155172 | 348 | 10 | 101 | 34.8 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.285714 | 0.285714 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
79f401fd69eb5a5c2dc5ce7ad189ffc8bba5e4c7 | 28 | py | Python | python/testData/joinLines/ListRBracket.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/joinLines/ListRBracket.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/joinLines/ListRBracket.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | a = [
111,
<caret>222
]
| 5.6 | 12 | 0.428571 | 4 | 28 | 3 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 0.357143 | 28 | 4 | 13 | 7 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.