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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
747d6e9a269040ab426472ee4f6b1ee1174c111d | 10,841 | py | Python | tests/interpretation/test_ablation.py | qcri/NeuroX | a56528231f6514412f3703af48effce1404cb069 | [
"BSD-3-Clause"
] | 87 | 2018-12-12T11:58:21.000Z | 2022-03-26T19:19:46.000Z | tests/interpretation/test_ablation.py | qcri/NeuroX | a56528231f6514412f3703af48effce1404cb069 | [
"BSD-3-Clause"
] | 16 | 2019-07-08T23:45:18.000Z | 2022-03-30T14:46:40.000Z | tests/interpretation/test_ablation.py | qcri/NeuroX | a56528231f6514412f3703af48effce1404cb069 | [
"BSD-3-Clause"
] | 15 | 2019-02-12T08:52:35.000Z | 2022-03-15T13:13:32.000Z | import unittest
from unittest.mock import MagicMock, patch
import numpy as np
import neurox.interpretation.ablation as ablation
class TestFilterActivationsKeepNeurons(unittest.TestCase):
@classmethod
def setUpClass(cls):
cls.total_examples = 10
cls.total_neurons = 100
cls.neurons_to_... | 44.983402 | 144 | 0.72521 | 1,271 | 10,841 | 5.844217 | 0.080252 | 0.086968 | 0.061389 | 0.063947 | 0.901319 | 0.862547 | 0.796311 | 0.779079 | 0.750404 | 0.732903 | 0 | 0.006554 | 0.197768 | 10,841 | 241 | 145 | 44.983402 | 0.847534 | 0.10571 | 0 | 0.55615 | 0 | 0 | 0.071593 | 0 | 0 | 0 | 0 | 0 | 0.085562 | 1 | 0.128342 | false | 0 | 0.02139 | 0 | 0.176471 | 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 |
777915dc659d9baa14226c7edb10de87e4db9050 | 244 | py | Python | src/productrec/pipelines/cleaning/__init__.py | HSV-AI/product-recommendation | 6e5fabce4f7e579e78a3c59730024d221169e3c4 | [
"Apache-2.0"
] | 2 | 2021-06-04T20:04:17.000Z | 2022-02-18T05:23:55.000Z | src/productrec/pipelines/cleaning/__init__.py | HSV-AI/product-recommendation | 6e5fabce4f7e579e78a3c59730024d221169e3c4 | [
"Apache-2.0"
] | 28 | 2021-06-10T00:36:58.000Z | 2022-03-14T20:21:48.000Z | src/productrec/pipelines/cleaning/__init__.py | HSV-AI/product-recommendation | 6e5fabce4f7e579e78a3c59730024d221169e3c4 | [
"Apache-2.0"
] | 1 | 2022-02-18T05:23:58.000Z | 2022-02-18T05:23:58.000Z | from .nodes import clean_brazillian
from .nodes import clean_electronics
from .nodes import clean_ecommerce
from .nodes import clean_jewelry
from .nodes import clean_journey
from .nodes import clean_retailrocket
from .nodes import clean_vipin20 | 34.857143 | 37 | 0.860656 | 35 | 244 | 5.8 | 0.314286 | 0.310345 | 0.517241 | 0.689655 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009217 | 0.110656 | 244 | 7 | 38 | 34.857143 | 0.926267 | 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 |
77868b1f0f907a4cba9f27f9515aaa76107533ca | 41 | py | Python | command_handlers/__init__.py | darkracer/sound-bot | 7ce72a912c13361b411107361c3cf37c86e56cf4 | [
"MIT"
] | null | null | null | command_handlers/__init__.py | darkracer/sound-bot | 7ce72a912c13361b411107361c3cf37c86e56cf4 | [
"MIT"
] | null | null | null | command_handlers/__init__.py | darkracer/sound-bot | 7ce72a912c13361b411107361c3cf37c86e56cf4 | [
"MIT"
] | null | null | null | from .command_handlers import handle_play | 41 | 41 | 0.902439 | 6 | 41 | 5.833333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073171 | 41 | 1 | 41 | 41 | 0.921053 | 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 |
77c8080f46ccbb3c5e8312043601f324f6fa0c45 | 120 | py | Python | tests/py/map.py | HappyFacade/micropython-wrap | 26fcd5a7e845e76cb004925ae53b284f0ad7abca | [
"MIT"
] | 92 | 2015-02-09T06:47:05.000Z | 2022-03-03T01:57:51.000Z | tests/py/map.py | HappyFacade/micropython-wrap | 26fcd5a7e845e76cb004925ae53b284f0ad7abca | [
"MIT"
] | 8 | 2016-12-08T16:30:47.000Z | 2022-02-22T14:53:14.000Z | tests/py/map.py | HappyFacade/micropython-wrap | 26fcd5a7e845e76cb004925ae53b284f0ad7abca | [
"MIT"
] | 18 | 2016-06-12T10:10:55.000Z | 2022-03-12T14:51:45.000Z | import upywraptest
print(upywraptest.Map1({'a': 1, 'b': 2, 'def': 444}))
print(upywraptest.Map2({'a': [1], 'b': [2]}))
| 24 | 53 | 0.591667 | 18 | 120 | 3.944444 | 0.611111 | 0.450704 | 0.084507 | 0.112676 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084112 | 0.108333 | 120 | 4 | 54 | 30 | 0.579439 | 0 | 0 | 0 | 0 | 0 | 0.058333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0.666667 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 6 |
7ad93a7eb406d3fe33ffc8207a9e6886c39c1059 | 3,826 | py | Python | orders/migrations/0005_auto_20191222_2252.py | yun-mh/uniwalk | f5307f6970b24736d13b56b4792c580398c35b3a | [
"Apache-2.0"
] | null | null | null | orders/migrations/0005_auto_20191222_2252.py | yun-mh/uniwalk | f5307f6970b24736d13b56b4792c580398c35b3a | [
"Apache-2.0"
] | 9 | 2020-01-10T14:10:02.000Z | 2022-03-12T00:08:19.000Z | orders/migrations/0005_auto_20191222_2252.py | yun-mh/uniwalk | f5307f6970b24736d13b56b4792c580398c35b3a | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.2.5 on 2019-12-22 13:52
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('orders', '0004_auto_20191213_2253'),
]
operations = [
migrations.RemoveField(
model_name='order',
name='email',
... | 35.425926 | 82 | 0.576581 | 388 | 3,826 | 5.443299 | 0.167526 | 0.080966 | 0.125947 | 0.161932 | 0.90625 | 0.90625 | 0.883523 | 0.825284 | 0.631155 | 0.27178 | 0 | 0.02349 | 0.299007 | 3,826 | 107 | 83 | 35.757009 | 0.763236 | 0.011762 | 0 | 0.554455 | 1 | 0 | 0.183117 | 0.060333 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.009901 | 0 | 0.039604 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
bb25b7adb53b0b986f3cae0c523893e2f1186f90 | 398 | py | Python | geospace/__init__.py | xiejx5/GeoSpace | 935ebb0593e367c008cc3cc42b2e20ed921b95b1 | [
"MIT"
] | 1 | 2021-02-04T08:48:29.000Z | 2021-02-04T08:48:29.000Z | geospace/__init__.py | xiejx5/geospace | 935ebb0593e367c008cc3cc42b2e20ed921b95b1 | [
"MIT"
] | null | null | null | geospace/__init__.py | xiejx5/geospace | 935ebb0593e367c008cc3cc42b2e20ed921b95b1 | [
"MIT"
] | 2 | 2020-07-05T15:56:48.000Z | 2020-08-05T04:33:52.000Z | from geospace._const import *
from geospace.boundary import *
from geospace.ras_to_shp import *
from geospace.raster import *
from geospace.shape import *
from geospace.shp_to_ras import *
from geospace.statistics import *
from geospace.utils import *
from geospace.gdal_calc import Calc
from geospace.map_calc import ma... | 24.875 | 38 | 0.801508 | 58 | 398 | 5.344828 | 0.362069 | 0.425806 | 0.464516 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.143216 | 398 | 15 | 39 | 26.533333 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.071429 | 0.785714 | 0 | 0.785714 | 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 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 6 |
bb336d71e806ae5bed862ce1fa4f6f36c1a0801d | 7,758 | py | Python | tests/test_api_gateway/test_rest/test_authorization.py | minos-framework/minos-api-gateway | 4be8564311260be274e91b2a31e18c5d0feef1ab | [
"MIT"
] | 3 | 2022-02-01T14:42:11.000Z | 2022-02-05T11:01:09.000Z | tests/test_api_gateway/test_rest/test_authorization.py | minos-framework/minos-api-gateway | 4be8564311260be274e91b2a31e18c5d0feef1ab | [
"MIT"
] | 8 | 2022-02-03T08:05:57.000Z | 2022-03-21T09:57:14.000Z | tests/test_api_gateway/test_rest/test_authorization.py | minos-framework/minos-api-gateway | 4be8564311260be274e91b2a31e18c5d0feef1ab | [
"MIT"
] | 1 | 2022-03-03T10:32:52.000Z | 2022-03-03T10:32:52.000Z | import json
import os
import unittest
from unittest import (
mock,
)
from uuid import (
uuid4,
)
from aiohttp.test_utils import (
AioHTTPTestCase,
unittest_run_loop,
)
from werkzeug.exceptions import (
abort,
)
from minos.api_gateway.rest import (
ApiGatewayConfig,
ApiGatewayRestService,
)... | 36.767773 | 120 | 0.606213 | 793 | 7,758 | 5.79319 | 0.160151 | 0.039182 | 0.058772 | 0.054854 | 0.842185 | 0.82956 | 0.79495 | 0.784066 | 0.783631 | 0.765999 | 0 | 0.00953 | 0.242588 | 7,758 | 210 | 121 | 36.942857 | 0.772294 | 0 | 0 | 0.517857 | 0 | 0 | 0.199474 | 0.037105 | 0 | 0 | 0 | 0 | 0.035714 | 1 | 0.02381 | false | 0 | 0.059524 | 0 | 0.119048 | 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 |
bb36f6ac91719dc1841a1f4596da20f867233842 | 5,002 | py | Python | tests/normalization/counts/test_random_selection.py | motleystate/moonstone | 37c38fabf361722f7002626ef13c68c443ace4ac | [
"MIT"
] | null | null | null | tests/normalization/counts/test_random_selection.py | motleystate/moonstone | 37c38fabf361722f7002626ef13c68c443ace4ac | [
"MIT"
] | 84 | 2020-07-27T13:01:12.000Z | 2022-03-16T17:10:23.000Z | tests/normalization/counts/test_random_selection.py | motleystate/moonstone | 37c38fabf361722f7002626ef13c68c443ace4ac | [
"MIT"
] | null | null | null | from unittest import TestCase
import pandas as pd
from moonstone.normalization.counts.random_selection import (
RandomSelection, TaxonomyRandomSelection
)
class TestRandomSelection(TestCase):
def setUp(self):
self.raw_data = [
[199, 1, 48, 75],
[0, 24, 1, 0],
[1,... | 40.016 | 108 | 0.627149 | 615 | 5,002 | 4.835772 | 0.115447 | 0.03766 | 0.033289 | 0.05649 | 0.87727 | 0.866846 | 0.866846 | 0.857431 | 0.857431 | 0.821789 | 0 | 0.066595 | 0.252499 | 5,002 | 124 | 109 | 40.33871 | 0.728804 | 0 | 0 | 0.638889 | 0 | 0 | 0.034186 | 0 | 0 | 0 | 0 | 0 | 0.074074 | 1 | 0.092593 | false | 0 | 0.027778 | 0 | 0.138889 | 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 |
2470b6f266b6ddaace06512b1118369f876390e3 | 23 | py | Python | db/__init__.py | yasinasama/guime | 00caac105becf6df4d873fdbba4542711307e383 | [
"MIT"
] | null | null | null | db/__init__.py | yasinasama/guime | 00caac105becf6df4d873fdbba4542711307e383 | [
"MIT"
] | null | null | null | db/__init__.py | yasinasama/guime | 00caac105becf6df4d873fdbba4542711307e383 | [
"MIT"
] | null | null | null | from .db import DB_CONN | 23 | 23 | 0.826087 | 5 | 23 | 3.6 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 23 | 1 | 23 | 23 | 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 |
24757786a857b9111499204e215fe379d9c8e8bf | 3,828 | py | Python | dataloader/stereo_msi.py | mehrdadshoeiby/MAML-Robust-learning | 4dd6fc2655f567e83f0dbcb87e8e4f8c15ef6ae6 | [
"MIT"
] | null | null | null | dataloader/stereo_msi.py | mehrdadshoeiby/MAML-Robust-learning | 4dd6fc2655f567e83f0dbcb87e8e4f8c15ef6ae6 | [
"MIT"
] | null | null | null | dataloader/stereo_msi.py | mehrdadshoeiby/MAML-Robust-learning | 4dd6fc2655f567e83f0dbcb87e8e4f8c15ef6ae6 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
define data loader class
"""
from __future__ import print_function, division
import os
import glob
import torch
import pandas as pd
from skimage import transform
from skimage.io import imread
import numpy as np
import matplotlib.pyplot as plt
from torch.utils.data import Dataset, DataLoade... | 32.168067 | 74 | 0.605538 | 501 | 3,828 | 4.419162 | 0.191617 | 0.047425 | 0.059621 | 0.056911 | 0.756098 | 0.721319 | 0.721319 | 0.721319 | 0.714995 | 0.642728 | 0 | 0.010208 | 0.283438 | 3,828 | 118 | 75 | 32.440678 | 0.796938 | 0.104754 | 0 | 0.58209 | 0 | 0 | 0.062083 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.179104 | null | null | 0.014925 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
24b14127c772895cfb0f163b6b14bcb45dd79203 | 157 | py | Python | pyleecan/Methods/Slot/SlotCirc/__init__.py | IrakozeFD/pyleecan | 5a93bd98755d880176c1ce8ac90f36ca1b907055 | [
"Apache-2.0"
] | 95 | 2019-01-23T04:19:45.000Z | 2022-03-17T18:22:10.000Z | pyleecan/Methods/Slot/SlotCirc/__init__.py | IrakozeFD/pyleecan | 5a93bd98755d880176c1ce8ac90f36ca1b907055 | [
"Apache-2.0"
] | 366 | 2019-02-20T07:15:08.000Z | 2022-03-31T13:37:23.000Z | pyleecan/Methods/Slot/SlotCirc/__init__.py | IrakozeFD/pyleecan | 5a93bd98755d880176c1ce8ac90f36ca1b907055 | [
"Apache-2.0"
] | 74 | 2019-01-24T01:47:31.000Z | 2022-02-25T05:44:42.000Z | from ....Methods.Slot.Slot import SlotCheckError
class SC_WHCheckError(SlotCheckError):
"""Raised when a SlotCirc has self.H0 < self.W0/2"""
pass
| 19.625 | 56 | 0.713376 | 21 | 157 | 5.285714 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022901 | 0.165605 | 157 | 7 | 57 | 22.428571 | 0.824427 | 0.292994 | 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 |
24b534058273a7e997e810b91c7080b98aca5ce5 | 94 | py | Python | teste.py | vanessanunes/ES-17-2 | 706cde6dbbf21512e0ac50f19a8bb74572cac715 | [
"Apache-2.0"
] | null | null | null | teste.py | vanessanunes/ES-17-2 | 706cde6dbbf21512e0ac50f19a8bb74572cac715 | [
"Apache-2.0"
] | 6 | 2019-08-01T00:53:09.000Z | 2019-08-01T00:57:53.000Z | teste.py | vanessanunes/ES-17-2 | 706cde6dbbf21512e0ac50f19a8bb74572cac715 | [
"Apache-2.0"
] | null | null | null | import pytest
from principal import somar
def test_somar():
assert somar(2,3)== 5
| 10.444444 | 27 | 0.670213 | 14 | 94 | 4.428571 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042254 | 0.244681 | 94 | 9 | 28 | 10.444444 | 0.830986 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | true | 0 | 0.5 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
24b834e707755661a705ceb7195e1ef30ce2c05f | 34 | py | Python | discord/types/voice.py | Harukomaze/disnake | 541f5c9623a02be894cd1015dbb344070700cb87 | [
"MIT"
] | null | null | null | discord/types/voice.py | Harukomaze/disnake | 541f5c9623a02be894cd1015dbb344070700cb87 | [
"MIT"
] | null | null | null | discord/types/voice.py | Harukomaze/disnake | 541f5c9623a02be894cd1015dbb344070700cb87 | [
"MIT"
] | null | null | null | from disnake.types.voice import *
| 17 | 33 | 0.794118 | 5 | 34 | 5.4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 34 | 1 | 34 | 34 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
700bd68afd2159400a46983e299d928640a38caa | 22,309 | py | Python | dataworkspace/dataworkspace/tests/request_access/test_views.py | uktrade/jupyterhub-data-auth-admin | 91544f376209a201531f4dbfb8faad1b8ada18c9 | [
"MIT"
] | 1 | 2019-06-10T08:22:56.000Z | 2019-06-10T08:22:56.000Z | dataworkspace/dataworkspace/tests/request_access/test_views.py | uktrade/jupyterhub-data-auth-admin | 91544f376209a201531f4dbfb8faad1b8ada18c9 | [
"MIT"
] | 2 | 2019-05-17T13:10:42.000Z | 2019-06-17T10:48:46.000Z | dataworkspace/dataworkspace/tests/request_access/test_views.py | uktrade/jupyterhub-data-auth-admin | 91544f376209a201531f4dbfb8faad1b8ada18c9 | [
"MIT"
] | null | null | null | from unittest import mock
import pytest
from django.contrib.auth.models import Permission
from django.contrib.contenttypes.models import ContentType
from django.core.files.uploadedfile import SimpleUploadedFile
from django.urls import reverse
from dataworkspace.apps.applications.models import ApplicationInstance
from... | 41.160517 | 114 | 0.670671 | 2,539 | 22,309 | 5.635289 | 0.097282 | 0.049063 | 0.053117 | 0.026139 | 0.858121 | 0.846869 | 0.838622 | 0.829606 | 0.821708 | 0.803257 | 0 | 0.008637 | 0.226725 | 22,309 | 541 | 115 | 41.236599 | 0.820764 | 0.01914 | 0 | 0.644944 | 0 | 0.011236 | 0.196059 | 0.082026 | 0 | 0 | 0 | 0 | 0.164045 | 1 | 0.049438 | false | 0 | 0.029213 | 0.004494 | 0.098876 | 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 |
704cb11867beace4fb3c9b2ba46351caa91e9e55 | 195 | py | Python | src/main/aoc/modules/__init__.py | lhalla/advent-of-code-2019 | d0c88385ae2132637b2685af3a9da901142b423d | [
"MIT"
] | null | null | null | src/main/aoc/modules/__init__.py | lhalla/advent-of-code-2019 | d0c88385ae2132637b2685af3a9da901142b423d | [
"MIT"
] | null | null | null | src/main/aoc/modules/__init__.py | lhalla/advent-of-code-2019 | d0c88385ae2132637b2685af3a9da901142b423d | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from . import utils
from . import fuel
from . import intcode
from . import wire
from . import password
from . import icpp
from . import diagnostics
from . import computer
| 17.727273 | 25 | 0.753846 | 28 | 195 | 5.25 | 0.5 | 0.544218 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00625 | 0.179487 | 195 | 10 | 26 | 19.5 | 0.9125 | 0.107692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.125 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 6 |
70886498983e66d9f7a473eebd555c7c5052783f | 9,300 | py | Python | com/beiwei/indicators/rsi.py | wtwong316/tsd_analysis_with_es | 04e9667b5fb6c5052e55053fe7838a79aab24fb5 | [
"Apache-2.0"
] | null | null | null | com/beiwei/indicators/rsi.py | wtwong316/tsd_analysis_with_es | 04e9667b5fb6c5052e55053fe7838a79aab24fb5 | [
"Apache-2.0"
] | null | null | null | com/beiwei/indicators/rsi.py | wtwong316/tsd_analysis_with_es | 04e9667b5fb6c5052e55053fe7838a79aab24fb5 | [
"Apache-2.0"
] | null | null | null | from com.beiwei.client.config.hlclient import HLClient
from elasticsearch_dsl import Search
from elasticsearch_dsl.query import Q, Bool, Range, Term
from elasticsearch_dsl.aggs import A, DateHistogram, ScriptedMetric, Avg, Min, MovingFn, BucketScript, \
BucketSelector, Derivative
im... | 72.65625 | 128 | 0.647097 | 1,218 | 9,300 | 4.699507 | 0.109195 | 0.076869 | 0.055905 | 0.067086 | 0.831586 | 0.798393 | 0.798393 | 0.798393 | 0.787911 | 0.787911 | 0 | 0.012251 | 0.183763 | 9,300 | 127 | 129 | 73.228346 | 0.7418 | 0.051613 | 0 | 0.631579 | 0 | 0 | 0.237976 | 0.072368 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026316 | false | 0 | 0.052632 | 0 | 0.105263 | 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 |
709d2eaa0d06c40b3877992df2cfd2d60c456b44 | 18 | py | Python | __init__.py | ixokai/ccf | 90f0997d4bd555ce4d137d85b5043c94abac9eda | [
"MIT"
] | null | null | null | __init__.py | ixokai/ccf | 90f0997d4bd555ce4d137d85b5043c94abac9eda | [
"MIT"
] | null | null | null | __init__.py | ixokai/ccf | 90f0997d4bd555ce4d137d85b5043c94abac9eda | [
"MIT"
] | null | null | null | from .ccf import * | 18 | 18 | 0.722222 | 3 | 18 | 4.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 18 | 1 | 18 | 18 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
561df9b76b5ea9996337e434316479db2c59e7fd | 96 | py | Python | venv/lib/python3.8/site-packages/pip/_vendor/pep517/envbuild.py | Retraces/UkraineBot | 3d5d7f8aaa58fa0cb8b98733b8808e5dfbdb8b71 | [
"MIT"
] | 2 | 2022-03-13T01:58:52.000Z | 2022-03-31T06:07:54.000Z | venv/lib/python3.8/site-packages/pip/_vendor/pep517/envbuild.py | DesmoSearch/Desmobot | b70b45df3485351f471080deb5c785c4bc5c4beb | [
"MIT"
] | 19 | 2021-11-20T04:09:18.000Z | 2022-03-23T15:05:55.000Z | venv/lib/python3.8/site-packages/pip/_vendor/pep517/envbuild.py | DesmoSearch/Desmobot | b70b45df3485351f471080deb5c785c4bc5c4beb | [
"MIT"
] | null | null | null | /home/runner/.cache/pip/pool/2b/87/48/1806e45dfdd1a105fff5116966f32f3eb5521ed71b1fba3d552acd9e53 | 96 | 96 | 0.895833 | 9 | 96 | 9.555556 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.40625 | 0 | 96 | 1 | 96 | 96 | 0.489583 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
5632543921cebc7cef4979600b58e10ba2f4437c | 113 | py | Python | tuneit/tools/__init__.py | sbacchio/tuneit | 8d4771acbb56e07336e2aae66160a1f62777cb01 | [
"BSD-3-Clause"
] | null | null | null | tuneit/tools/__init__.py | sbacchio/tuneit | 8d4771acbb56e07336e2aae66160a1f62777cb01 | [
"BSD-3-Clause"
] | null | null | null | tuneit/tools/__init__.py | sbacchio/tuneit | 8d4771acbb56e07336e2aae66160a1f62777cb01 | [
"BSD-3-Clause"
] | null | null | null | "Highlevel tools for analyzing the tunable graphs"
from .base import *
from .check import *
from .time import *
| 18.833333 | 50 | 0.752212 | 16 | 113 | 5.3125 | 0.75 | 0.235294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176991 | 113 | 5 | 51 | 22.6 | 0.913978 | 0.424779 | 0 | 0 | 0 | 0 | 0.424779 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.75 | 0 | 0.75 | 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 |
567955c5edc110ccaf51f35c4b61b2de2a802ea0 | 150 | py | Python | tests/test_tests.py | makefu/hydra-check | 21aa981f545769d10707b40f4a42e13172b72bad | [
"MIT"
] | 1 | 2020-03-10T20:32:26.000Z | 2020-03-10T20:32:26.000Z | tests/test_tests.py | makefu/hydra-check | 21aa981f545769d10707b40f4a42e13172b72bad | [
"MIT"
] | 2 | 2020-03-07T18:23:02.000Z | 2020-03-19T10:17:30.000Z | tests/test_tests.py | makefu/hydra-check | 21aa981f545769d10707b40f4a42e13172b72bad | [
"MIT"
] | null | null | null | import pytest
from hydra_check import cli
def test_get_url() -> None:
assert cli.get_url("unstable") == "https://hydra.nixos.org/job/unstable"
| 18.75 | 76 | 0.72 | 23 | 150 | 4.521739 | 0.73913 | 0.115385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14 | 150 | 7 | 77 | 21.428571 | 0.806202 | 0 | 0 | 0 | 0 | 0 | 0.293333 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | true | 0 | 0.5 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
567d17494561a7698fbccee32b23d78446fd074c | 6,990 | py | Python | .c9/metadata/environment/NodaSF_project/settings.py | bopopescu/nodasf | 32718c9ba606a7373b20c77710fd3706fc583396 | [
"MIT"
] | null | null | null | .c9/metadata/environment/NodaSF_project/settings.py | bopopescu/nodasf | 32718c9ba606a7373b20c77710fd3706fc583396 | [
"MIT"
] | 9 | 2019-12-05T20:37:07.000Z | 2022-02-10T12:34:48.000Z | .c9/metadata/environment/NodaSF_project/settings.py | bopopescu/nodasf | 32718c9ba606a7373b20c77710fd3706fc583396 | [
"MIT"
] | 1 | 2020-07-25T23:37:21.000Z | 2020-07-25T23:37:21.000Z | {"filter":false,"title":"settings.py","tooltip":"/NodaSF_project/settings.py","undoManager":{"mark":22,"position":22,"stack":[[{"start":{"row":41,"column":33},"end":{"row":42,"column":0},"action":"insert","lines":["",""],"id":2},{"start":{"row":42,"column":0},"end":{"row":42,"column":4},"action":"insert","lines":[" ... | 6,990 | 6,990 | 0.554363 | 1,015 | 6,990 | 3.807882 | 0.093596 | 0.14075 | 0.182147 | 0.132471 | 0.741268 | 0.699353 | 0.592497 | 0.569728 | 0.496766 | 0.441397 | 0 | 0.085292 | 0.002003 | 6,990 | 1 | 6,990 | 6,990 | 0.46875 | 0 | 0 | 0 | 0 | 0 | 0.475325 | 0.009584 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
8e7a8f28e701925665cd19f3ee831313fbd511d4 | 6,574 | py | Python | algorithm_Python/heap_sort.py | enihsyou/Sorting-algorithm | 09a109bb26e0d8d165a4d1bbe18ec7b4e538b364 | [
"MIT"
] | null | null | null | algorithm_Python/heap_sort.py | enihsyou/Sorting-algorithm | 09a109bb26e0d8d165a4d1bbe18ec7b4e538b364 | [
"MIT"
] | null | null | null | algorithm_Python/heap_sort.py | enihsyou/Sorting-algorithm | 09a109bb26e0d8d165a4d1bbe18ec7b4e538b364 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Heap sort
File name: heap_sort
Reference: https://en.wikipedia.org/wiki/Heapsort
Introduction: 堆排序 O(n*Log(n))
Date: 2016-05-22
Last modified: 2016-06-01
Author: enihsyou
"""
from count_time import count_time_debug, count_time
@count_time
def heap_sort(data):
"""Heap sort
堆排序
... | 27.278008 | 74 | 0.488135 | 785 | 6,574 | 3.975796 | 0.171975 | 0.072092 | 0.074976 | 0.057674 | 0.799744 | 0.782442 | 0.782442 | 0.774431 | 0.774431 | 0.774431 | 0 | 0.037946 | 0.386675 | 6,574 | 240 | 75 | 27.391667 | 0.736111 | 0.338302 | 0 | 0.818182 | 0 | 0 | 0.010622 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054545 | false | 0 | 0.009091 | 0 | 0.090909 | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
8ebea9bd9a36436d97a39d084b3e9f5efd6b672d | 48 | py | Python | item_s/app.py | augustocarrlos10/Flask_TecWeb | 5e99f20d61c42a9a1b621abe40c7410f8ac9890f | [
"MIT"
] | null | null | null | item_s/app.py | augustocarrlos10/Flask_TecWeb | 5e99f20d61c42a9a1b621abe40c7410f8ac9890f | [
"MIT"
] | null | null | null | item_s/app.py | augustocarrlos10/Flask_TecWeb | 5e99f20d61c42a9a1b621abe40c7410f8ac9890f | [
"MIT"
] | null | null | null | from yourapplication import app as application
| 16 | 46 | 0.854167 | 6 | 48 | 6.833333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145833 | 48 | 2 | 47 | 24 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
d91d9c7ed29a69a5366d7b5dad33b9b80409c4b3 | 96 | py | Python | venv/lib/python3.8/site-packages/yarg/package.py | GiulianaPola/select_repeats | 17a0d053d4f874e42cf654dd142168c2ec8fbd11 | [
"MIT"
] | 2 | 2022-03-13T01:58:52.000Z | 2022-03-31T06:07:54.000Z | venv/lib/python3.8/site-packages/yarg/package.py | DesmoSearch/Desmobot | b70b45df3485351f471080deb5c785c4bc5c4beb | [
"MIT"
] | 19 | 2021-11-20T04:09:18.000Z | 2022-03-23T15:05:55.000Z | venv/lib/python3.8/site-packages/yarg/package.py | DesmoSearch/Desmobot | b70b45df3485351f471080deb5c785c4bc5c4beb | [
"MIT"
] | null | null | null | /home/runner/.cache/pip/pool/37/28/98/75cee92af7cb65c02b31d951959cbf85df7edff9219f99df9d60762c79 | 96 | 96 | 0.895833 | 9 | 96 | 9.555556 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.416667 | 0 | 96 | 1 | 96 | 96 | 0.479167 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
d9925ffb3873d78bb7c57816683316ad608d9519 | 34 | py | Python | authman/resource/__init__.py | masoudn84/authman | 411a5461e52410ab9ec11e99285f27296d381c2c | [
"Apache-2.0"
] | null | null | null | authman/resource/__init__.py | masoudn84/authman | 411a5461e52410ab9ec11e99285f27296d381c2c | [
"Apache-2.0"
] | null | null | null | authman/resource/__init__.py | masoudn84/authman | 411a5461e52410ab9ec11e99285f27296d381c2c | [
"Apache-2.0"
] | null | null | null | from authman.resource import apiv1 | 34 | 34 | 0.882353 | 5 | 34 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032258 | 0.088235 | 34 | 1 | 34 | 34 | 0.935484 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
79402936ee8c57ef0f611a9d88693dd7d9f2c397 | 29 | py | Python | db/search/resolvers/__init__.py | matchd-ch/matchd-backend | 84be4aab1b4708cae50a8988301b15df877c8db0 | [
"Apache-2.0"
] | 1 | 2022-03-03T09:55:57.000Z | 2022-03-03T09:55:57.000Z | db/search/resolvers/__init__.py | matchd-ch/matchd-backend | 84be4aab1b4708cae50a8988301b15df877c8db0 | [
"Apache-2.0"
] | 7 | 2022-02-09T10:44:53.000Z | 2022-03-28T03:29:43.000Z | db/search/resolvers/__init__.py | matchd-ch/matchd-backend | 84be4aab1b4708cae50a8988301b15df877c8db0 | [
"Apache-2.0"
] | null | null | null | from .hit import HitResolver
| 14.5 | 28 | 0.827586 | 4 | 29 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137931 | 29 | 1 | 29 | 29 | 0.96 | 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 |
79439689139bc78e7fafa036aa9680c5c06bf3ab | 3,646 | py | Python | src/zen/tests/gml.py | wangyiranamy/Testing | 2a729d1f73b6df69150807b965b8fedbb7661c04 | [
"BSD-3-Clause"
] | 41 | 2015-01-13T19:49:50.000Z | 2021-05-02T04:11:19.000Z | src/zen/tests/gml.py | wangyiranamy/Testing | 2a729d1f73b6df69150807b965b8fedbb7661c04 | [
"BSD-3-Clause"
] | 9 | 2015-01-28T10:46:27.000Z | 2022-03-12T06:32:39.000Z | src/zen/tests/gml.py | wangyiranamy/Testing | 2a729d1f73b6df69150807b965b8fedbb7661c04 | [
"BSD-3-Clause"
] | 19 | 2015-01-27T12:19:42.000Z | 2019-07-20T21:30:56.000Z | from zen import *
import unittest
import os
import os.path as path
import tempfile
class GMLReadTestCase(unittest.TestCase):
def test_read_directed_test1(self):
fname = path.join(path.dirname(__file__),'test1.gml')
G = gml.read(fname)
self.assertEqual(len(G),3)
self.assertEqual(G.size(),2)
self.assertE... | 24.469799 | 66 | 0.665661 | 607 | 3,646 | 3.833608 | 0.149918 | 0.238505 | 0.165019 | 0.111732 | 0.78771 | 0.764933 | 0.70477 | 0.70477 | 0.672969 | 0.672969 | 0 | 0.049134 | 0.129183 | 3,646 | 148 | 67 | 24.635135 | 0.68378 | 0 | 0 | 0.582524 | 0 | 0 | 0.109435 | 0 | 0 | 0 | 0 | 0 | 0.436893 | 1 | 0.067961 | false | 0 | 0.048544 | 0 | 0.126214 | 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 |
795a3f029819973136f92b1daa9efc9b0d762635 | 25 | py | Python | src/wta/__init__.py | kaist-irnlp/SparseColBERT | f0f0ed4acff5dc3c747f13315de0fe7ea50b5b70 | [
"MIT"
] | null | null | null | src/wta/__init__.py | kaist-irnlp/SparseColBERT | f0f0ed4acff5dc3c747f13315de0fe7ea50b5b70 | [
"MIT"
] | null | null | null | src/wta/__init__.py | kaist-irnlp/SparseColBERT | f0f0ed4acff5dc3c747f13315de0fe7ea50b5b70 | [
"MIT"
] | null | null | null | from .wta import WTAModel | 25 | 25 | 0.84 | 4 | 25 | 5.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12 | 25 | 1 | 25 | 25 | 0.954545 | 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 |
798cada0852ba30d1888c3df99ad144d9bda1e89 | 205 | py | Python | secure_emailing/docker/common/smtp_proxy_v2/__init__.py | guadaltech/kubernetes-containers-tools | 5d4d9da6bf95162404b927cf23178d86dd99dd85 | [
"Apache-2.0"
] | 81 | 2015-01-25T13:16:31.000Z | 2021-05-29T13:35:53.000Z | secure_emailing/docker/common/smtp_proxy_v2/__init__.py | guadaltech/kubernetes-containers-tools | 5d4d9da6bf95162404b927cf23178d86dd99dd85 | [
"Apache-2.0"
] | 16 | 2015-01-01T13:52:23.000Z | 2020-06-12T01:13:18.000Z | secure_emailing/docker/common/smtp_proxy_v2/__init__.py | guadaltech/kubernetes-containers-tools | 5d4d9da6bf95162404b927cf23178d86dd99dd85 | [
"Apache-2.0"
] | 38 | 2015-01-16T10:23:07.000Z | 2021-08-24T14:14:27.000Z | import secure_smtpd.config
from secure_smtpd.config import LOG_NAME
from .smtp_server import SMTPServer
from .fake_credential_validator import FakeCredentialValidator
from .proxy_server import ProxyServer
| 34.166667 | 62 | 0.887805 | 27 | 205 | 6.481481 | 0.592593 | 0.125714 | 0.194286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.087805 | 205 | 5 | 63 | 41 | 0.935829 | 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 |
798e96a75fa3e2265dfc0f81881663d98d36cb9f | 35 | py | Python | testsqrt.py | UncleEngineer/PythonForBeginners | 042388fba66688988367dd2f338393e18ea645b2 | [
"MIT"
] | 3 | 2020-09-27T14:37:43.000Z | 2021-04-20T01:55:31.000Z | testsqrt.py | ktanan/PythonForBeginners | 042388fba66688988367dd2f338393e18ea645b2 | [
"MIT"
] | null | null | null | testsqrt.py | ktanan/PythonForBeginners | 042388fba66688988367dd2f338393e18ea645b2 | [
"MIT"
] | 3 | 2020-09-27T14:38:14.000Z | 2020-09-29T14:35:22.000Z | import math
print(math.sqrt(32))
| 11.666667 | 21 | 0.714286 | 6 | 35 | 4.166667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 0.142857 | 35 | 2 | 22 | 17.5 | 0.766667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0.5 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 6 |
7999a010f4f658b3f1d157f47aa536df3bbb4bb7 | 6,912 | py | Python | needed_libs.py | PHP-Programmer-HUN/AI-cam | 095470e347fff1d740871728dfaced2d455a865c | [
"MIT"
] | 1 | 2021-06-27T23:38:21.000Z | 2021-06-27T23:38:21.000Z | needed_libs.py | PHP-Programmer-HUN/AI-cam | 095470e347fff1d740871728dfaced2d455a865c | [
"MIT"
] | null | null | null | needed_libs.py | PHP-Programmer-HUN/AI-cam | 095470e347fff1d740871728dfaced2d455a865c | [
"MIT"
] | null | null | null | vho65FiUoGAGUbiPPgrvITZQhaDN17sY7vFriy8U26SoghwJiGnOm5iIgHocdrIGo4nB3t4CrzFMZbdeGgplN6shRKqJqLkxUhFLorsAuqmBg4lM60aHq4lvepX9gDFk+Bgh6n2+4dqNgl744RrK8umHW9ZUMa7ABzvrbSOMJH4EDBLogL9fSgehmLp0mPiRM8JTQux4K+Yp/NM96kw/Kz77FvD2102AccXdzr2iZQtVt3RO4sgHBcfTrX/m979qjPAy2yMKvU/KGA+C9wfzpaT9kJP/wzQGP8EMK8AxSm3500EKXNoXrPHGGVLlqpb+... | 6,912 | 6,912 | 0.967882 | 216 | 6,912 | 30.972222 | 0.99537 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157986 | 0 | 6,912 | 1 | 6,912 | 6,912 | 0.809896 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
79c4079e6bd384f6950dee3772f51610558a3f9d | 783 | py | Python | mapboxgl/__init__.py | lucasvw/mapboxgl-jupyter | e2dc343737014d5d26274c0dcdcb106b495d5a66 | [
"MIT"
] | null | null | null | mapboxgl/__init__.py | lucasvw/mapboxgl-jupyter | e2dc343737014d5d26274c0dcdcb106b495d5a66 | [
"MIT"
] | null | null | null | mapboxgl/__init__.py | lucasvw/mapboxgl-jupyter | e2dc343737014d5d26274c0dcdcb106b495d5a66 | [
"MIT"
] | null | null | null | from .viz import (
CircleViz,
GraduatedCircleViz,
HeatmapViz,
ClusteredCircleViz,
ImageViz,
RasterTilesViz,
ChoroplethViz,
LinestringViz,
)
from .layers import (
CircleLayer,
GraduatedCircleLayer,
HeatmapLayer,
ClusteredCircleLayer,
ImageLayer,
RasterTilesLayer,
... | 17.795455 | 27 | 0.655172 | 48 | 783 | 10.520833 | 0.520833 | 0.106931 | 0.146535 | 0.217822 | 0.879208 | 0.879208 | 0.879208 | 0.879208 | 0 | 0 | 0 | 0.005042 | 0.240102 | 783 | 44 | 28 | 17.795455 | 0.843697 | 0 | 0 | 0 | 0 | 0 | 0.293367 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.073171 | 0 | 0.073171 | 0 | 0 | 0 | 1 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
8de765d9fd0e070aa1975360e2663ca4e1c106a6 | 19 | py | Python | optflow/__init__.py | czming/optflow | 6a6d24efbaac162f1d3da5d26430f9ea9e60bbad | [
"MIT"
] | 12 | 2021-07-02T15:27:04.000Z | 2021-12-28T05:59:04.000Z | zhusuan/flows/__init__.py | thu-ml/Zhusuan-Jittor | e73c6e3081afde305b9caba80858543abf168466 | [
"MIT"
] | 1 | 2021-07-29T08:50:00.000Z | 2021-07-29T08:50:00.000Z | zhusuan/flows/__init__.py | thu-ml/Zhusuan-Jittor | e73c6e3081afde305b9caba80858543abf168466 | [
"MIT"
] | 2 | 2021-07-20T11:04:29.000Z | 2021-11-11T09:02:35.000Z | from .flow import * | 19 | 19 | 0.736842 | 3 | 19 | 4.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 19 | 1 | 19 | 19 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
30d0a802d613a990c2ed4e800f9d5e13501901cc | 88 | py | Python | milk/nfoldcrossvalidation.py | luispedro/milk | abc2a28b526c199414d42c0a26092938968c3caf | [
"MIT"
] | 284 | 2015-01-21T09:07:55.000Z | 2022-03-19T07:39:17.000Z | milk/nfoldcrossvalidation.py | pursh2002/milk | abc2a28b526c199414d42c0a26092938968c3caf | [
"MIT"
] | 6 | 2015-04-22T15:17:44.000Z | 2018-04-22T16:06:24.000Z | milk/nfoldcrossvalidation.py | pursh2002/milk | abc2a28b526c199414d42c0a26092938968c3caf | [
"MIT"
] | 109 | 2015-02-03T07:39:59.000Z | 2022-01-16T00:16:13.000Z | from .measures.nfoldcrossvalidation import foldgenerator, getfold, nfoldcrossvalidation
| 44 | 87 | 0.886364 | 7 | 88 | 11.142857 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068182 | 88 | 1 | 88 | 88 | 0.95122 | 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 |
30e9da30b771f8da41affdb230d245b8038d55b9 | 21,961 | py | Python | pero/glyphs/shapes.py | xxao/pero | a7f0c84fae0b21fe120204e798bd61cdab3a125d | [
"MIT"
] | 13 | 2019-07-15T17:51:21.000Z | 2022-03-15T06:13:43.000Z | pero/glyphs/shapes.py | xxao/pero | a7f0c84fae0b21fe120204e798bd61cdab3a125d | [
"MIT"
] | 1 | 2021-12-29T00:46:44.000Z | 2022-01-21T16:18:48.000Z | pero/glyphs/shapes.py | xxao/pero | a7f0c84fae0b21fe120204e798bd61cdab3a125d | [
"MIT"
] | 3 | 2020-09-27T14:31:45.000Z | 2022-01-22T14:28:15.000Z | # Created byMartin.cz
# Copyright (c) Martin Strohalm. All rights reserved.
import math
from .. enums import *
from .. properties import *
from .. drawing import Path
from . glyph import Glyph
class Annulus(Glyph):
"""
Defines a ring-like glyph.
Properties:
x: int, float or callab... | 30.543811 | 100 | 0.581485 | 2,447 | 21,961 | 5.139354 | 0.076011 | 0.097805 | 0.054866 | 0.057729 | 0.805821 | 0.792382 | 0.761371 | 0.750716 | 0.742287 | 0.71223 | 0 | 0.005855 | 0.338965 | 21,961 | 718 | 101 | 30.586351 | 0.860439 | 0.383726 | 0 | 0.694444 | 0 | 0 | 0.019766 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043651 | false | 0.011905 | 0.019841 | 0 | 0.440476 | 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 |
30eb2eb00770a03abeb20449af46632dbf3e8137 | 2,322 | py | Python | method 2.py | PiyushBL45t/Image-Resizing- | a8c7e431b53d622129b2e4dd0e38189c92274202 | [
"MIT"
] | null | null | null | method 2.py | PiyushBL45t/Image-Resizing- | a8c7e431b53d622129b2e4dd0e38189c92274202 | [
"MIT"
] | null | null | null | method 2.py | PiyushBL45t/Image-Resizing- | a8c7e431b53d622129b2e4dd0e38189c92274202 | [
"MIT"
] | null | null | null | import cv2
import sys
def change_height(scale):
image = cv2.imread('mountain.jpg') # takes the image as an input
cv2.imshow("Mountain", image) # shows the image
print("The shape of the image is: ",image.shape)
width = int(image.shape[0]) # change the width of the image according to the scale... | 30.96 | 97 | 0.625323 | 314 | 2,322 | 4.579618 | 0.191083 | 0.083449 | 0.062587 | 0.052851 | 0.851182 | 0.83936 | 0.803894 | 0.748261 | 0.748261 | 0.682893 | 0 | 0.018332 | 0.271748 | 2,322 | 75 | 98 | 30.96 | 0.832052 | 0.194229 | 0 | 0.44898 | 0 | 0 | 0.215126 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061224 | false | 0 | 0.040816 | 0 | 0.102041 | 0.22449 | 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 |
eba31f4ddfab40c60e256bb212e92a3d6903fba8 | 32,694 | py | Python | e2e/test_dataset_manager.py | allegro/biggerquery | bcb5f8f0a6807f2ef2213383373a783f08799cd3 | [
"Apache-2.0"
] | 25 | 2019-07-26T11:53:46.000Z | 2020-07-19T18:27:31.000Z | e2e/test_dataset_manager.py | allegro/biggerquery | bcb5f8f0a6807f2ef2213383373a783f08799cd3 | [
"Apache-2.0"
] | 7 | 2019-10-07T06:53:23.000Z | 2020-08-06T06:45:58.000Z | e2e/test_dataset_manager.py | allegro/biggerquery | bcb5f8f0a6807f2ef2213383373a783f08799cd3 | [
"Apache-2.0"
] | 5 | 2019-10-11T14:25:49.000Z | 2020-07-16T10:07:40.000Z | import uuid
import tempfile
import json
import pandas as pd
from pytz import UTC
from datetime import datetime, timedelta
from unittest import TestCase
from unittest import main
from pathlib import Path
from google.cloud.bigquery import Table, TimePartitioning
from bigflow.bigquery.dataset_manager import create_data... | 36.046307 | 150 | 0.63868 | 3,663 | 32,694 | 5.317499 | 0.059514 | 0.095595 | 0.102577 | 0.040148 | 0.858456 | 0.820721 | 0.791611 | 0.770356 | 0.738782 | 0.709262 | 0 | 0.00188 | 0.251422 | 32,694 | 906 | 151 | 36.086093 | 0.793985 | 0.021686 | 0 | 0.692691 | 0 | 0 | 0.342412 | 0.075586 | 0 | 0 | 0 | 0 | 0.121262 | 1 | 0.083056 | false | 0 | 0.019934 | 0.001661 | 0.131229 | 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 |
ebba783392623f8f2962c0159b1aae5d22e903c1 | 3,282 | py | Python | gan/dcgan/modules.py | valentingol/GANJax | ebcb8f4412277da2d9bda80282c2842d111bf393 | [
"MIT"
] | 9 | 2021-11-20T18:25:37.000Z | 2021-12-13T23:32:35.000Z | gan/dcgan/modules.py | valentingol/GANJax | ebcb8f4412277da2d9bda80282c2842d111bf393 | [
"MIT"
] | 4 | 2021-12-04T15:30:58.000Z | 2022-01-20T13:13:32.000Z | gan/dcgan/modules.py | valentingol/GANJax | ebcb8f4412277da2d9bda80282c2842d111bf393 | [
"MIT"
] | 3 | 2022-01-18T00:02:30.000Z | 2022-03-10T09:22:43.000Z | import haiku as hk
from haiku.initializers import Constant, RandomNormal
import jax
from jax import numpy as jnp
class DCGenerator(hk.Module):
def __init__(self, channels, ker_shapes, strides, padding, name=None):
super().__init__(name=name)
self.name = name
self.channels = channels
... | 33.151515 | 78 | 0.531688 | 410 | 3,282 | 4.07561 | 0.190244 | 0.075404 | 0.09216 | 0.043088 | 0.824656 | 0.824656 | 0.824656 | 0.804309 | 0.804309 | 0.767205 | 0 | 0.017094 | 0.358318 | 3,282 | 98 | 79 | 33.489796 | 0.776353 | 0 | 0 | 0.642857 | 0 | 0 | 0.005484 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.047619 | 0.02381 | 0.190476 | 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 |
cce0ba85995b3b7802974d57f021bf5060ed20fc | 160 | py | Python | elm-finder/apps/package/tests/__init__.py | martin-jahn/elm-finder | 7510e38d52eebaf462ae5c5ce961e4884b1709bd | [
"MIT"
] | 2 | 2019-04-28T21:32:46.000Z | 2019-05-13T05:27:09.000Z | elm-finder/apps/package/tests/__init__.py | martin-jahn/elm-finder | 7510e38d52eebaf462ae5c5ce961e4884b1709bd | [
"MIT"
] | null | null | null | elm-finder/apps/package/tests/__init__.py | martin-jahn/elm-finder | 7510e38d52eebaf462ae5c5ce961e4884b1709bd | [
"MIT"
] | null | null | null | # @@from package.tests.test_sourceforge import *
from apps.package import *
from apps.package.tests.test_signals import SignalTests
from .test_models import *
| 26.666667 | 55 | 0.80625 | 22 | 160 | 5.727273 | 0.454545 | 0.190476 | 0.253968 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1125 | 160 | 5 | 56 | 32 | 0.887324 | 0.2875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
ccf73860d755b2c911ef1eefcc231fd9a81c642e | 93 | py | Python | sources/algorithms/__init__.py | tipech/OverlapGraph | 0aa132802f2e174608ce33c6bfc24ff14551bf4a | [
"MIT"
] | null | null | null | sources/algorithms/__init__.py | tipech/OverlapGraph | 0aa132802f2e174608ce33c6bfc24ff14551bf4a | [
"MIT"
] | 1 | 2018-10-07T08:06:01.000Z | 2018-10-07T08:06:01.000Z | sources/algorithms/__init__.py | tipech/OverlapGraph | 0aa132802f2e174608ce33c6bfc24ff14551bf4a | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from .sweepln import *
from .rigctor import *
from .queries import *
| 13.285714 | 22 | 0.709677 | 13 | 93 | 5.076923 | 0.692308 | 0.30303 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172043 | 93 | 6 | 23 | 15.5 | 0.857143 | 0.215054 | 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 |
c610055354bef29c52e0a905439189df6e84da40 | 1,122 | py | Python | util/decode.py | hazelcast-incubator/hazelcast-python-client | 5ec6c908916a6adef648059314923c0dbf71557b | [
"Apache-2.0"
] | null | null | null | util/decode.py | hazelcast-incubator/hazelcast-python-client | 5ec6c908916a6adef648059314923c0dbf71557b | [
"Apache-2.0"
] | null | null | null | util/decode.py | hazelcast-incubator/hazelcast-python-client | 5ec6c908916a6adef648059314923c0dbf71557b | [
"Apache-2.0"
] | null | null | null | __author__ = 'jonathanbrodie'
import struct
'''
To-do: properly decode bytes
'''
def decodeboolean(bytesobject):
if bool is False:
return bytearray(ctypes.c_uint8(0))
else:
return bytearray(ctypes.c_uint8(bool))
def decodeuint8(target):
return bytearray(ctypes.c_uint8(target))
def decodeu... | 29.526316 | 49 | 0.753119 | 139 | 1,122 | 5.964029 | 0.352518 | 0.217129 | 0.303981 | 0.318456 | 0.408926 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036999 | 0.132799 | 1,122 | 38 | 50 | 29.526316 | 0.815005 | 0 | 0 | 0 | 0 | 0 | 0.016559 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.40625 | false | 0 | 0.03125 | 0.34375 | 0.875 | 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 |
c63a2566a9dae25b976b0ae8d4c09070d3344b16 | 2,942 | py | Python | tests/test_physics.py | buxx/synergine2 | 843988df5e653a413eca8c486ee93f5e9e884f37 | [
"MIT"
] | 1 | 2021-02-26T15:36:04.000Z | 2021-02-26T15:36:04.000Z | tests/test_physics.py | buxx/synergine2 | 843988df5e653a413eca8c486ee93f5e9e884f37 | [
"MIT"
] | 182 | 2017-03-06T10:20:19.000Z | 2021-06-10T14:12:36.000Z | tests/test_physics.py | buxx/synergine2 | 843988df5e653a413eca8c486ee93f5e9e884f37 | [
"MIT"
] | 1 | 2018-01-01T15:38:24.000Z | 2018-01-01T15:38:24.000Z | # coding: utf-8
import pytest
from synergine2_xyz.physics import Matrixes
from tests import BaseTest
class TestVisibilityMatrix(BaseTest):
def test_initialize_empty_matrix(self):
visibility = Matrixes()
visibility.initialize_empty_matrix('testing', matrix_width=3, matrix_height=2, value_structure... | 45.96875 | 116 | 0.653637 | 403 | 2,942 | 4.55335 | 0.114144 | 0.027248 | 0.024523 | 0.019619 | 0.846866 | 0.828338 | 0.777112 | 0.777112 | 0.768937 | 0.768937 | 0 | 0.046589 | 0.182869 | 2,942 | 63 | 117 | 46.698413 | 0.716722 | 0.004419 | 0 | 0.541667 | 0 | 0 | 0.066963 | 0 | 0 | 0 | 0 | 0 | 0.1875 | 1 | 0.125 | false | 0 | 0.0625 | 0 | 0.208333 | 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 |
d6ae293e57a3ddd4f4cc766f48e9d365214cc3aa | 3,690 | py | Python | nexus-ingest/nexus-xd-python-modules/tests/processorchain_test.py | dataplumber/nexus | f25a89e85eba098da9c6db1ff3d408dae8a6b310 | [
"Apache-2.0"
] | 23 | 2016-08-09T22:45:14.000Z | 2020-02-17T08:18:29.000Z | nexus-ingest/nexus-xd-python-modules/tests/processorchain_test.py | lewismc/incubator-sdap-nexus | ff98fa346303431542b8391cc2a1bf7561d1bd03 | [
"Apache-2.0"
] | 6 | 2017-04-27T21:22:17.000Z | 2021-06-01T21:45:52.000Z | nexus-ingest/nexus-xd-python-modules/tests/processorchain_test.py | dataplumber/nexus | f25a89e85eba098da9c6db1ff3d408dae8a6b310 | [
"Apache-2.0"
] | 5 | 2016-08-31T13:47:29.000Z | 2017-11-14T21:45:22.000Z | """
Copyright (c) 2016 Jet Propulsion Laboratory,
California Institute of Technology. All rights reserved
"""
import unittest
from os import environ, path
import nexusproto.NexusContent_pb2 as nexusproto
class TestRunChainMethod(unittest.TestCase):
def test_run_chain_read_filter_all(self):
environ['CHAIN... | 41.931818 | 201 | 0.665312 | 443 | 3,690 | 5.329571 | 0.230248 | 0.014401 | 0.02033 | 0.030496 | 0.802626 | 0.802626 | 0.76493 | 0.747141 | 0.747141 | 0.747141 | 0 | 0.033602 | 0.193496 | 3,690 | 87 | 202 | 42.413793 | 0.759745 | 0.027642 | 0 | 0.625 | 0 | 0.09375 | 0.375978 | 0.217877 | 0 | 0 | 0 | 0 | 0.0625 | 1 | 0.0625 | false | 0 | 0.109375 | 0 | 0.1875 | 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 |
d6bfa04314249e774ddf8aef090c60fc970b7154 | 4,675 | py | Python | christmas_lights/test_christmas_lights.py | ivandelcz/katas | b7d9a979181681db01c48ddd3d4e591b0dcc8791 | [
"MIT"
] | null | null | null | christmas_lights/test_christmas_lights.py | ivandelcz/katas | b7d9a979181681db01c48ddd3d4e591b0dcc8791 | [
"MIT"
] | null | null | null | christmas_lights/test_christmas_lights.py | ivandelcz/katas | b7d9a979181681db01c48ddd3d4e591b0dcc8791 | [
"MIT"
] | null | null | null | from christmas_lights import (
Panel,
Light,
Coordinate
)
def test_given_a_light_then_it_has_power_status():
power_state = Light.OFF
light = Light(power_state)
assert isinstance(light, Light)
assert light.status == power_state
def test_given_a_turn_off_light_then_it_has_turn_on_action(... | 27.662722 | 78 | 0.721283 | 722 | 4,675 | 4.354571 | 0.072022 | 0.108461 | 0.173664 | 0.083969 | 0.840649 | 0.836832 | 0.827926 | 0.794529 | 0.756997 | 0.709924 | 0 | 0.028336 | 0.169626 | 4,675 | 168 | 79 | 27.827381 | 0.781556 | 0 | 0 | 0.594595 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.351351 | 1 | 0.162162 | false | 0 | 0.009009 | 0 | 0.171171 | 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 |
ba3a704cd570ac368b7d07967c41f359477e03a6 | 119 | py | Python | double9.py | TuxStory/Python3 | 4c1b2291d1613b32aa36b62b0b881ea40b423cce | [
"MIT"
] | null | null | null | double9.py | TuxStory/Python3 | 4c1b2291d1613b32aa36b62b0b881ea40b423cce | [
"MIT"
] | null | null | null | double9.py | TuxStory/Python3 | 4c1b2291d1613b32aa36b62b0b881ea40b423cce | [
"MIT"
] | null | null | null | #!/usr/python3.5
#-*- coding: utf-8 -*-
for j in range(1,10):
for i in range(1,10):
print (i*j,end=" ")
print ()
| 14.875 | 23 | 0.537815 | 23 | 119 | 2.782609 | 0.652174 | 0.21875 | 0.25 | 0.3125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094737 | 0.201681 | 119 | 7 | 24 | 17 | 0.578947 | 0.310924 | 0 | 0 | 0 | 0 | 0.0125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
ba7b1c9d9fd0790e1815bcea71f0b0fb7f689013 | 11,606 | py | Python | tests/test_mesh.py | Daiver/pygeom_tools | ed89d8cab2d5956c7c680da1ce6335f4c0a31c70 | [
"MIT"
] | 9 | 2019-10-29T18:39:47.000Z | 2022-03-18T11:44:12.000Z | tests/test_mesh.py | Daiver/pygeom_tools | ed89d8cab2d5956c7c680da1ce6335f4c0a31c70 | [
"MIT"
] | null | null | null | tests/test_mesh.py | Daiver/pygeom_tools | ed89d8cab2d5956c7c680da1ce6335f4c0a31c70 | [
"MIT"
] | 1 | 2021-06-24T08:34:56.000Z | 2021-06-24T08:34:56.000Z | import unittest
import numpy as np
from geom_tools import Mesh
from geom_tools.bounding_box import BoundingBox
class TestMesh(unittest.TestCase):
def test_mesh_has_uv01(self):
mesh1 = Mesh(vertices=np.arange(3), polygon_vertex_indices=[[0, 1, 2]])
self.assertFalse(mesh1.has_uv())
def test_me... | 35.710769 | 108 | 0.534293 | 1,482 | 11,606 | 3.988529 | 0.071525 | 0.027745 | 0.032989 | 0.145661 | 0.853324 | 0.809339 | 0.801895 | 0.783285 | 0.76992 | 0.762138 | 0 | 0.08011 | 0.311649 | 11,606 | 324 | 109 | 35.820988 | 0.659782 | 0.003016 | 0 | 0.675958 | 0 | 0 | 0.002852 | 0 | 0 | 0 | 0 | 0.003086 | 0.160279 | 1 | 0.10453 | false | 0 | 0.013937 | 0 | 0.121951 | 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 |
baacafe5aadb417d074717e17ad28e615a3c707a | 265 | py | Python | blog/admin.py | Jafte/jasn.ru | 09d2945825c5bbfa2896c4acfc30acb6138c9ac9 | [
"MIT"
] | null | null | null | blog/admin.py | Jafte/jasn.ru | 09d2945825c5bbfa2896c4acfc30acb6138c9ac9 | [
"MIT"
] | 4 | 2021-06-04T21:30:01.000Z | 2021-09-22T17:39:12.000Z | blog/admin.py | Jafte/jasn.ru | 09d2945825c5bbfa2896c4acfc30acb6138c9ac9 | [
"MIT"
] | null | null | null | from django.contrib import admin
from blog.models import Blog, Post, PostImage
from guardian.admin import GuardedModelAdmin
admin.site.register(Blog, GuardedModelAdmin)
admin.site.register(Post, GuardedModelAdmin)
admin.site.register(PostImage, GuardedModelAdmin)
| 33.125 | 49 | 0.845283 | 32 | 265 | 7 | 0.40625 | 0.294643 | 0.348214 | 0.455357 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079245 | 265 | 7 | 50 | 37.857143 | 0.918033 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 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 |
baad532d1d286aaf9b188562fb56df4f63cbad49 | 47 | py | Python | examples/datasets/__init__.py | ulises-jeremias/tf2-tools | 24c2eb1ab0cd81dca8b31055902c0bd05b795492 | [
"MIT"
] | 1 | 2020-05-24T01:52:52.000Z | 2020-05-24T01:52:52.000Z | examples/datasets/__init__.py | ulises-jeremias/tf2-tools | 24c2eb1ab0cd81dca8b31055902c0bd05b795492 | [
"MIT"
] | 1 | 2020-05-23T19:31:12.000Z | 2020-05-23T19:31:12.000Z | examples/datasets/__init__.py | ulises-jeremias/tf2-tools | 24c2eb1ab0cd81dca8b31055902c0bd05b795492 | [
"MIT"
] | null | null | null | """Datasets logic"""
from .loader import load
| 11.75 | 24 | 0.702128 | 6 | 47 | 5.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148936 | 47 | 3 | 25 | 15.666667 | 0.825 | 0.297872 | 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 |
bac54a6b749783088c51cc670f61267463f161e4 | 3,657 | py | Python | tests/test_transform_rotate.py | mrstephenneal/pdfwatermarker | 55934803efd91b6b456985be7df93c03d24747c7 | [
"Apache-2.0"
] | 9 | 2018-08-28T14:08:19.000Z | 2019-08-22T07:33:14.000Z | tests/test_transform_rotate.py | mrstephenneal/pdfwatermarker | 55934803efd91b6b456985be7df93c03d24747c7 | [
"Apache-2.0"
] | 15 | 2018-08-28T14:08:17.000Z | 2019-07-08T01:29:34.000Z | tests/test_transform_rotate.py | mrstephenneal/pdfwatermarker | 55934803efd91b6b456985be7df93c03d24747c7 | [
"Apache-2.0"
] | 1 | 2020-08-10T00:14:43.000Z | 2020-08-10T00:14:43.000Z | import os
import unittest
from tempfile import TemporaryDirectory
from looptools import Timer
from pdfconduit import Info, Rotate
from tests import *
class TestRotate(unittest.TestCase):
@classmethod
def setUpClass(cls):
cls.pdf_path = pdf_path
def setUp(self):
self.temp = TemporaryDire... | 34.17757 | 119 | 0.657096 | 456 | 3,657 | 5.173246 | 0.127193 | 0.053412 | 0.043239 | 0.053412 | 0.876219 | 0.876219 | 0.848665 | 0.848665 | 0.848665 | 0.848665 | 0 | 0.025265 | 0.253213 | 3,657 | 106 | 120 | 34.5 | 0.838521 | 0.249658 | 0 | 0.612903 | 0 | 0 | 0.049963 | 0 | 0 | 0 | 0 | 0 | 0.193548 | 1 | 0.145161 | false | 0 | 0.096774 | 0 | 0.354839 | 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 |
bafcf7582ebeb5663b464a49606784d9fd54aa22 | 168 | py | Python | boa3_test/test_sc/native_test/stdlib/Base58CheckDecode.py | OnBlockIO/neo3-boa | cb317292a67532a52ed26f2b0f0f7d0b10ac5f5f | [
"Apache-2.0"
] | 25 | 2020-07-22T19:37:43.000Z | 2022-03-08T03:23:55.000Z | boa3_test/test_sc/native_test/stdlib/Base58CheckDecode.py | OnBlockIO/neo3-boa | cb317292a67532a52ed26f2b0f0f7d0b10ac5f5f | [
"Apache-2.0"
] | 419 | 2020-04-23T17:48:14.000Z | 2022-03-31T13:17:45.000Z | boa3_test/test_sc/native_test/stdlib/Base58CheckDecode.py | OnBlockIO/neo3-boa | cb317292a67532a52ed26f2b0f0f7d0b10ac5f5f | [
"Apache-2.0"
] | 15 | 2020-05-21T21:54:24.000Z | 2021-11-18T06:17:24.000Z | from boa3.builtin import public
from boa3.builtin.nativecontract.stdlib import StdLib
@public
def main(key: str) -> bytes:
return StdLib.base58_check_decode(key)
| 21 | 53 | 0.785714 | 24 | 168 | 5.416667 | 0.666667 | 0.123077 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027397 | 0.130952 | 168 | 7 | 54 | 24 | 0.863014 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0.2 | 0.8 | 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 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 6 |
242317878ec7dc031243f0c8f89ad4084c5a49d9 | 92 | py | Python | util.py | tedkyi/covid_rapid_test_simulation2 | ff390aceab3cbf53f96c502167df463fc197d5fc | [
"MIT"
] | null | null | null | util.py | tedkyi/covid_rapid_test_simulation2 | ff390aceab3cbf53f96c502167df463fc197d5fc | [
"MIT"
] | 21 | 2021-12-07T06:24:27.000Z | 2021-12-21T07:51:20.000Z | util.py | tedkyi/covid_rapid_test_simulation2 | ff390aceab3cbf53f96c502167df463fc197d5fc | [
"MIT"
] | 1 | 2021-12-10T07:00:43.000Z | 2021-12-10T07:00:43.000Z |
from scipy.stats import norm
def gaussianRandom(mu,var=1.0):
return norm.rvs(mu,var)
| 13.142857 | 31 | 0.717391 | 16 | 92 | 4.125 | 0.8125 | 0.151515 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025974 | 0.163043 | 92 | 6 | 32 | 15.333333 | 0.831169 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 6 |
2464ce63aa37586de5c206d68765e175d094f18c | 29 | py | Python | apps/external_apps/app_plugins/__init__.py | indro/t2c | 56482ad4aed150f29353e054db2c97b567243bf8 | [
"MIT"
] | 3 | 2015-12-25T14:45:36.000Z | 2016-11-28T09:58:03.000Z | apps/external_apps/app_plugins/__init__.py | indro/t2c | 56482ad4aed150f29353e054db2c97b567243bf8 | [
"MIT"
] | null | null | null | apps/external_apps/app_plugins/__init__.py | indro/t2c | 56482ad4aed150f29353e054db2c97b567243bf8 | [
"MIT"
] | null | null | null | from library import Library
| 9.666667 | 27 | 0.827586 | 4 | 29 | 6 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172414 | 29 | 2 | 28 | 14.5 | 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 |
030fa5d72dc25e29dfd18778a1dbc38e1f48c420 | 141 | py | Python | roombapy/__init__.py | shenxn/roombapy | 93fb4a2d4e3975cfece2ac93c4627bc4093c9617 | [
"MIT"
] | null | null | null | roombapy/__init__.py | shenxn/roombapy | 93fb4a2d4e3975cfece2ac93c4627bc4093c9617 | [
"MIT"
] | 30 | 2021-01-26T07:16:13.000Z | 2022-03-29T02:07:38.000Z | roombapy/__init__.py | shenxn/roombapy | 93fb4a2d4e3975cfece2ac93c4627bc4093c9617 | [
"MIT"
] | null | null | null | from .discovery import RoombaDiscovery
from .getpassword import RoombaPassword
from .roomba import Roomba, RoombaConnectionError, RoombaInfo
| 35.25 | 61 | 0.865248 | 14 | 141 | 8.714286 | 0.642857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.099291 | 141 | 3 | 62 | 47 | 0.96063 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.333333 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 6 |
301b8e3befb78a74b8623edb9757f99f12f8ccbf | 7,926 | py | Python | tests/p2p/netfilter/test_match.py | jansegre/hathor-core | 22b3de6be2518e7a0797edbf0e4f6eb1cf28d6fd | [
"Apache-2.0"
] | null | null | null | tests/p2p/netfilter/test_match.py | jansegre/hathor-core | 22b3de6be2518e7a0797edbf0e4f6eb1cf28d6fd | [
"Apache-2.0"
] | 12 | 2020-10-04T17:14:52.000Z | 2022-03-03T22:21:56.000Z | tests/p2p/netfilter/test_match.py | jansegre/hathor-core | 22b3de6be2518e7a0797edbf0e4f6eb1cf28d6fd | [
"Apache-2.0"
] | null | null | null | from twisted.internet.address import HostnameAddress, IPv4Address, IPv6Address, UNIXAddress
from hathor.p2p.netfilter.context import NetfilterContext
from hathor.p2p.netfilter.matches import (
NetfilterMatch,
NetfilterMatchAll,
NetfilterMatchAnd,
NetfilterMatchIPAddress,
NetfilterMatchOr,
Netfi... | 40.85567 | 92 | 0.688241 | 860 | 7,926 | 6.205814 | 0.127907 | 0.080944 | 0.124602 | 0.126476 | 0.800637 | 0.775342 | 0.766348 | 0.722503 | 0.706389 | 0.648304 | 0 | 0.064455 | 0.197451 | 7,926 | 193 | 93 | 41.067358 | 0.774564 | 0.018673 | 0 | 0.616352 | 0 | 0 | 0.064695 | 0.026367 | 0 | 0 | 0 | 0 | 0.238994 | 1 | 0.150943 | false | 0 | 0.037736 | 0.006289 | 0.207547 | 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 |
063df7ccb49e4e0a38e0e416517f82c4214a9389 | 2,967 | py | Python | djpp/constants.py | paramono/djpp | ba70c212595d37e2d3ffbd7313c879979d9d4f3e | [
"MIT"
] | 1 | 2020-07-28T19:08:20.000Z | 2020-07-28T19:08:20.000Z | djpp/constants.py | paramono/djpaypal_subs | ba70c212595d37e2d3ffbd7313c879979d9d4f3e | [
"MIT"
] | null | null | null | djpp/constants.py | paramono/djpaypal_subs | ba70c212595d37e2d3ffbd7313c879979d9d4f3e | [
"MIT"
] | null | null | null | from django.utils.translation import gettext as _
APIMODE_SANDBOX = False
APIMODE_LIVE = True
APIMODE_CHOICES = [
(APIMODE_SANDBOX, _('Sandbox')),
(APIMODE_LIVE, _('Live')),
]
# Products
PRODUCTS_ENDPOINT = '/v1/catalogs/products'
PRODUCT_TYPE_PHYSICAL = 'PHYSICAL'
PRODUCT_TYPE_DIGITAL = 'DIGITAL'
PRODU... | 29.969697 | 66 | 0.70273 | 275 | 2,967 | 6.989091 | 0.189091 | 0.121748 | 0.041623 | 0.048387 | 0.800728 | 0.800728 | 0.800728 | 0.800728 | 0.738293 | 0.679501 | 0 | 0.001229 | 0.176946 | 2,967 | 98 | 67 | 30.27551 | 0.785831 | 0.009437 | 0 | 0 | 0 | 0 | 0.170358 | 0.015673 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.013158 | 0 | 0.013158 | 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 |
065b1c2737baa9e4d1ad6e7058a99e3efe51c0d9 | 177 | py | Python | metanic/accounts/admin.py | LimpidTech/melody | a00b99f9b697864a078e2cb886be4d75c10458a9 | [
"BSD-3-Clause"
] | null | null | null | metanic/accounts/admin.py | LimpidTech/melody | a00b99f9b697864a078e2cb886be4d75c10458a9 | [
"BSD-3-Clause"
] | 1 | 2020-02-11T21:34:24.000Z | 2020-02-11T21:34:24.000Z | metanic/accounts/admin.py | LimpidTech/melody | a00b99f9b697864a078e2cb886be4d75c10458a9 | [
"BSD-3-Clause"
] | null | null | null | from django.contrib import admin
from django.contrib.auth import admin as auth_admin
from metanic.accounts import models
admin.site.register(models.User, auth_admin.UserAdmin) | 29.5 | 54 | 0.841808 | 27 | 177 | 5.444444 | 0.518519 | 0.136054 | 0.231293 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096045 | 177 | 6 | 54 | 29.5 | 0.91875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.75 | 0 | 0.75 | 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 |
ebe932a6280448325a43ae27b79c87e165d738db | 25 | py | Python | dtspec/__init__.py | fuchsst/dtspec | c7972f627607ddc9e821ffb35197f5d0d280c8fb | [
"MIT"
] | 30 | 2019-12-05T15:46:46.000Z | 2021-12-20T19:20:05.000Z | dtspec/__init__.py | fuchsst/dtspec | c7972f627607ddc9e821ffb35197f5d0d280c8fb | [
"MIT"
] | 9 | 2020-02-28T15:25:01.000Z | 2021-07-20T22:15:21.000Z | dtspec/__init__.py | fuchsst/dtspec | c7972f627607ddc9e821ffb35197f5d0d280c8fb | [
"MIT"
] | 6 | 2020-01-13T22:35:10.000Z | 2021-11-12T11:12:17.000Z | import dtspec.api as api
| 12.5 | 24 | 0.8 | 5 | 25 | 4 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16 | 25 | 1 | 25 | 25 | 0.952381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
230864de0276d7649feedc112a04bd2bca59d051 | 98 | py | Python | hw/andrey_yelin/lesson_02/test_lesson2.py | alexander-sidorov/qap-05 | 6db7c0a1eeadd15f7d3f826e7f0ac4be3949ec8c | [
"MIT"
] | 9 | 2021-12-10T21:30:07.000Z | 2022-02-25T21:32:34.000Z | hw/andrey_yelin/lesson_02/test_lesson2.py | alexander-sidorov/qap-05 | 6db7c0a1eeadd15f7d3f826e7f0ac4be3949ec8c | [
"MIT"
] | 22 | 2021-12-11T08:46:58.000Z | 2022-02-02T15:56:37.000Z | hw/andrey_yelin/lesson_02/test_lesson2.py | alexander-sidorov/qap-05 | 6db7c0a1eeadd15f7d3f826e7f0ac4be3949ec8c | [
"MIT"
] | 8 | 2021-12-11T09:15:45.000Z | 2022-02-02T08:09:09.000Z | from hw.andrey_yelin.lesson_02.lesson2 import example
def test_example() -> None:
example()
| 16.333333 | 53 | 0.744898 | 14 | 98 | 5 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036145 | 0.153061 | 98 | 5 | 54 | 19.6 | 0.807229 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | true | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
000832a328c50c67049f2c10841db85feb714a3d | 1,036 | py | Python | pyclesperanto_prototype/_tier4/__init__.py | haesleinhuepf/pyclesperanto_prototype | 65bc3035d3b2b61a2722c93b95bae310bfbd190e | [
"BSD-3-Clause"
] | 1 | 2021-01-15T15:32:19.000Z | 2021-01-15T15:32:19.000Z | pyclesperanto_prototype/_tier4/__init__.py | haesleinhuepf/pyclesperanto_prototype | 65bc3035d3b2b61a2722c93b95bae310bfbd190e | [
"BSD-3-Clause"
] | null | null | null | pyclesperanto_prototype/_tier4/__init__.py | haesleinhuepf/pyclesperanto_prototype | 65bc3035d3b2b61a2722c93b95bae310bfbd190e | [
"BSD-3-Clause"
] | null | null | null | from ._connected_components_labeling_box import connected_components_labeling_box
from ._extend_labeling_via_voronoi import extend_labeling_via_voronoi
from ._extend_labels_with_maximum_radius import extend_labels_with_maximum_radius
from ._mean_squared_error import mean_squared_error
from ._local_maximum_touching_neig... | 74 | 119 | 0.937259 | 146 | 1,036 | 5.917808 | 0.219178 | 0.222222 | 0.291667 | 0.333333 | 0.590278 | 0.483796 | 0.106481 | 0 | 0 | 0 | 0 | 0 | 0.050193 | 1,036 | 13 | 120 | 79.692308 | 0.878049 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
002217556f9b7866aff4deaf2b8eda223aa9ba3e | 24 | py | Python | metrics/__init__.py | sanchezirina/defeatcovid19-net-pytorch | eadfec212ade7724688e4455e59157c9c53f0c89 | [
"MIT"
] | 4 | 2019-10-12T04:55:03.000Z | 2019-11-25T22:30:41.000Z | metrics/__init__.py | sanchezirina/defeatcovid19-net-pytorch | eadfec212ade7724688e4455e59157c9c53f0c89 | [
"MIT"
] | null | null | null | metrics/__init__.py | sanchezirina/defeatcovid19-net-pytorch | eadfec212ade7724688e4455e59157c9c53f0c89 | [
"MIT"
] | null | null | null | from .accuracy import *
| 12 | 23 | 0.75 | 3 | 24 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 24 | 1 | 24 | 24 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
aeae7a0be4300f395aae0415517a6f15df8c8716 | 84 | py | Python | vstreamer/application/__init__.py | artudi54/video-streamer | 66e5e722ed66abe5877488f177c0ac4f13325382 | [
"MIT"
] | 2 | 2019-10-08T10:49:52.000Z | 2021-10-01T11:26:31.000Z | vstreamer/application/__init__.py | artudi54/video-streamer | 66e5e722ed66abe5877488f177c0ac4f13325382 | [
"MIT"
] | 1 | 2019-05-16T13:48:29.000Z | 2019-05-16T13:48:49.000Z | vstreamer/application/__init__.py | artudi54/video-streamer | 66e5e722ed66abe5877488f177c0ac4f13325382 | [
"MIT"
] | 1 | 2019-10-08T10:49:56.000Z | 2019-10-08T10:49:56.000Z | from vstreamer.application.VideoStreamerApplication import VideoStreamerApplication
| 42 | 83 | 0.928571 | 6 | 84 | 13 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 84 | 1 | 84 | 84 | 0.975 | 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 |
aed0b994b2122aeed0f53408fe72a094aab473a8 | 2,502 | py | Python | karp5/tests/unit_tests/domain/services/test_search_service.py | spraakbanken/karp-backend-v5 | bfca9d0f29a1243ee8d817c6a7db8b30a7da1097 | [
"MIT"
] | 4 | 2018-01-09T10:20:22.000Z | 2019-11-21T12:26:56.000Z | karp5/tests/unit_tests/domain/services/test_search_service.py | spraakbanken/karp-backend-v5 | bfca9d0f29a1243ee8d817c6a7db8b30a7da1097 | [
"MIT"
] | 44 | 2018-03-23T13:59:13.000Z | 2022-03-29T06:03:17.000Z | karp5/tests/unit_tests/domain/services/test_search_service.py | spraakbanken/karp-backend-v5 | bfca9d0f29a1243ee8d817c6a7db8b30a7da1097 | [
"MIT"
] | 2 | 2018-01-07T12:08:32.000Z | 2019-08-21T08:05:17.000Z | from unittest import mock
import pytest
import elasticsearch_dsl as es_dsl
from karp5.domain.services import search_service
@pytest.mark.parametrize(
"from_,size,expected_calls",
[
# (None, None, [mock.call.extra(from_=0, size=0), mock.call.execute().to_dict()]),
(
0,
... | 33.36 | 90 | 0.631894 | 324 | 2,502 | 4.490741 | 0.16358 | 0.104467 | 0.080412 | 0.086598 | 0.84811 | 0.83299 | 0.815808 | 0.758076 | 0.727148 | 0.684536 | 0 | 0.017121 | 0.252998 | 2,502 | 74 | 91 | 33.810811 | 0.76137 | 0.214628 | 0 | 0.553571 | 0 | 0 | 0.065473 | 0.047059 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.071429 | 0 | 0.107143 | 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 |
aeec03f1b68a67a7fc8a39be46d8330c0e24c222 | 198 | py | Python | 01-Contracts/scripts/deploy.py | iamsahu/bonsai-banks | 2728bf17ea37c2b82216fd4bad0d45d79af06742 | [
"MIT"
] | 4 | 2021-06-02T15:44:04.000Z | 2021-07-13T12:23:48.000Z | 01-Contracts/scripts/deploy.py | iamsahu/bonsai-banks | 2728bf17ea37c2b82216fd4bad0d45d79af06742 | [
"MIT"
] | 1 | 2021-06-10T00:16:45.000Z | 2021-06-10T00:16:45.000Z | 01-Contracts/scripts/deploy.py | iamsahu/bonsai-banks | 2728bf17ea37c2b82216fd4bad0d45d79af06742 | [
"MIT"
] | 2 | 2021-06-08T18:03:09.000Z | 2021-06-29T09:49:36.000Z | from brownie import BonsaiBank, accounts
def main():
# accounts[0].deploy(AdvisoryToken)
# acct = accounts.load('test_account')
BonsaiBank.deploy(accounts[0],{'from': accounts[0]})
| 28.285714 | 56 | 0.686869 | 23 | 198 | 5.869565 | 0.608696 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018072 | 0.161616 | 198 | 7 | 57 | 28.285714 | 0.795181 | 0.353535 | 0 | 0 | 0 | 0 | 0.031746 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | true | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
4e1e965d9c707810c3f4f74a37c7b3f72c5d6142 | 25 | py | Python | things/__init__.py | ryancollingwood/testfps | d234737e900c4b1904ff62ff579cb4016ed2cde9 | [
"MIT"
] | null | null | null | things/__init__.py | ryancollingwood/testfps | d234737e900c4b1904ff62ff579cb4016ed2cde9 | [
"MIT"
] | null | null | null | things/__init__.py | ryancollingwood/testfps | d234737e900c4b1904ff62ff579cb4016ed2cde9 | [
"MIT"
] | null | null | null | from .thing import Thing
| 12.5 | 24 | 0.8 | 4 | 25 | 5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16 | 25 | 1 | 25 | 25 | 0.952381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
9d7b2c59d2759527115620fc84e08badb1c39361 | 85 | py | Python | tests/test_djangito.py | mechanicbuddy/djangito | 07c08a83c57577cbf945bba461219bc0ef2a7695 | [
"Apache-2.0"
] | null | null | null | tests/test_djangito.py | mechanicbuddy/djangito | 07c08a83c57577cbf945bba461219bc0ef2a7695 | [
"Apache-2.0"
] | null | null | null | tests/test_djangito.py | mechanicbuddy/djangito | 07c08a83c57577cbf945bba461219bc0ef2a7695 | [
"Apache-2.0"
] | null | null | null | from djangito import djangito
def test_djangito():
assert djangito is not None
| 14.166667 | 31 | 0.764706 | 12 | 85 | 5.333333 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 85 | 5 | 32 | 17 | 0.941176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.333333 | true | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
9df5aff66335b456ccace608fb61c09e77ef4706 | 216 | py | Python | gens/__init__.py | kosyachniy/gens | 832d677f6c0d91c072119db4c407298c00036437 | [
"MIT"
] | null | null | null | gens/__init__.py | kosyachniy/gens | 832d677f6c0d91c072119db4c407298c00036437 | [
"MIT"
] | null | null | null | gens/__init__.py | kosyachniy/gens | 832d677f6c0d91c072119db4c407298c00036437 | [
"MIT"
] | null | null | null | """
Initializing the Python package
"""
from .main import generate, generate_id, generate_password
__version__ = '0.1'
__all__ = (
'__version__',
'generate',
'generate_id',
'generate_password',
)
| 13.5 | 58 | 0.671296 | 22 | 216 | 5.863636 | 0.636364 | 0.248062 | 0.27907 | 0.403101 | 0.527132 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011561 | 0.199074 | 216 | 15 | 59 | 14.4 | 0.734104 | 0.143519 | 0 | 0 | 1 | 0 | 0.282486 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.25 | 0.125 | 0 | 0.125 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 6 |
d19306cd3fa5ab8cc2282b6579adf60ec91c7d0d | 101 | py | Python | src/desymbolize.py | humble-goat/csv-bridge-to-erp | 9a7ca78f5e49b5a1a465dd65e9a98a0c50e5293c | [
"MIT"
] | null | null | null | src/desymbolize.py | humble-goat/csv-bridge-to-erp | 9a7ca78f5e49b5a1a465dd65e9a98a0c50e5293c | [
"MIT"
] | null | null | null | src/desymbolize.py | humble-goat/csv-bridge-to-erp | 9a7ca78f5e49b5a1a465dd65e9a98a0c50e5293c | [
"MIT"
] | null | null | null | def lower_remover(input):
return input.replace('/', '').replace('%', '').replace('.', '').lower() | 50.5 | 75 | 0.574257 | 10 | 101 | 5.7 | 0.6 | 0.491228 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09901 | 101 | 2 | 75 | 50.5 | 0.626374 | 0 | 0 | 0 | 0 | 0 | 0.029412 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
d1c64552f4dc5c44b2f08705cccc50e3359d88e9 | 39 | py | Python | json_schema_to_dash_forms/__init__.py | catalystneuro/json-schema-to-dash-forms | a6e83a02f3ac2dd0ec2c7d09ec4327f3c6512ee4 | [
"MIT"
] | 6 | 2020-11-11T12:05:47.000Z | 2022-03-16T21:33:18.000Z | json_schema_to_dash_forms/__init__.py | catalystneuro/json-schema-to-dash-forms | a6e83a02f3ac2dd0ec2c7d09ec4327f3c6512ee4 | [
"MIT"
] | 10 | 2020-10-23T15:31:35.000Z | 2021-08-09T09:06:59.000Z | json_schema_to_dash_forms/__init__.py | catalystneuro/json-schema-to-dash-forms | a6e83a02f3ac2dd0ec2c7d09ec4327f3c6512ee4 | [
"MIT"
] | null | null | null | from .forms import SchemaFormContainer
| 19.5 | 38 | 0.871795 | 4 | 39 | 8.5 | 1 | 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 |
06182fc6a105d13a39e8b7e516711a34d9105430 | 3,755 | py | Python | tests/test_advanced_config.py | simonwiles/xmltotabular | 13c8b60e383aa16db662c744e57578f2b7e2ed57 | [
"MIT"
] | 2 | 2020-09-26T23:57:00.000Z | 2021-06-16T23:59:46.000Z | tests/test_advanced_config.py | simonwiles/xmltotabular | 13c8b60e383aa16db662c744e57578f2b7e2ed57 | [
"MIT"
] | 23 | 2020-11-09T05:43:50.000Z | 2021-10-21T19:29:47.000Z | tests/test_advanced_config.py | simonwiles/xmltotabular | 13c8b60e383aa16db662c744e57578f2b7e2ed57 | [
"MIT"
] | null | null | null | import yaml
from xmltotabular import XmlDocToTabular
def test_concatenation_of_multiple_results():
"""Tests that the <joiner> syntax is properly implemented."""
config = yaml.safe_load(
r"""
album:
<entity>: album
<fields>:
name: name
artist: artis... | 42.670455 | 89 | 0.595206 | 441 | 3,755 | 5.052154 | 0.362812 | 0.02693 | 0.037702 | 0.016158 | 0.736086 | 0.736086 | 0.736086 | 0.736086 | 0.736086 | 0.736086 | 0 | 0.01124 | 0.336618 | 3,755 | 87 | 90 | 43.16092 | 0.883179 | 0.014647 | 0 | 0.059701 | 0 | 0 | 0.74145 | 0.013561 | 0 | 0 | 0 | 0 | 0.014925 | 1 | 0.014925 | false | 0 | 0.059701 | 0 | 0.074627 | 0.029851 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
ae22897cf751d0f1e94673659541453e6e24e05d | 2,541 | py | Python | parkkeeper/migrations/0007_auto_20151207_0812.py | telminov/django-park-keeper | a79489e2cd584e60fb1c49f849aa7bdbc1dfb4bc | [
"MIT"
] | 4 | 2015-11-07T11:07:37.000Z | 2017-07-03T06:24:04.000Z | parkkeeper/migrations/0007_auto_20151207_0812.py | telminov/django-park-keeper | a79489e2cd584e60fb1c49f849aa7bdbc1dfb4bc | [
"MIT"
] | null | null | null | parkkeeper/migrations/0007_auto_20151207_0812.py | telminov/django-park-keeper | a79489e2cd584e60fb1c49f849aa7bdbc1dfb4bc | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2015-12-07 08:12
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('parkkeeper', '0006_auto_20151115_1303'),
]
operations... | 35.291667 | 132 | 0.586383 | 243 | 2,541 | 5.995885 | 0.304527 | 0.067948 | 0.154427 | 0.179135 | 0.741935 | 0.741935 | 0.713109 | 0.612217 | 0.612217 | 0.612217 | 0 | 0.021488 | 0.285714 | 2,541 | 71 | 133 | 35.788732 | 0.781267 | 0.02558 | 0 | 0.75 | 1 | 0 | 0.142742 | 0.026284 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.046875 | 0 | 0.09375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
8818426d42cf53123d8bc008f561d224997fa6d6 | 28 | py | Python | 6 kyu/A disguised sequence I.py | mwk0408/codewars_solutions | 9b4f502b5f159e68024d494e19a96a226acad5e5 | [
"MIT"
] | 6 | 2020-09-03T09:32:25.000Z | 2020-12-07T04:10:01.000Z | 6 kyu/A disguised sequence I.py | mwk0408/codewars_solutions | 9b4f502b5f159e68024d494e19a96a226acad5e5 | [
"MIT"
] | 1 | 2021-12-13T15:30:21.000Z | 2021-12-13T15:30:21.000Z | 6 kyu/A disguised sequence I.py | mwk0408/codewars_solutions | 9b4f502b5f159e68024d494e19a96a226acad5e5 | [
"MIT"
] | null | null | null | def fcn (n):
return 2**n | 14 | 15 | 0.535714 | 6 | 28 | 2.5 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05 | 0.285714 | 28 | 2 | 15 | 14 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
8870d16a6991828cc0e5f60be3461c08726b9245 | 50 | py | Python | PlaylistDownloader/__init__.py | justin-gerhardt/PlaylistDownloader | e9d5ae849c440f9c6e569e5ede65996238428650 | [
"Unlicense"
] | null | null | null | PlaylistDownloader/__init__.py | justin-gerhardt/PlaylistDownloader | e9d5ae849c440f9c6e569e5ede65996238428650 | [
"Unlicense"
] | null | null | null | PlaylistDownloader/__init__.py | justin-gerhardt/PlaylistDownloader | e9d5ae849c440f9c6e569e5ede65996238428650 | [
"Unlicense"
] | null | null | null | from .PlaylistDownloader import PlaylistDownloader | 50 | 50 | 0.92 | 4 | 50 | 11.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06 | 50 | 1 | 50 | 50 | 0.978723 | 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 |
ee810abb0fde0e8e765cab3ad6c072a5cfeacf14 | 11,621 | py | Python | security_monkey/tests/sso/test_okta.py | boladmin/security_monkey | c28592ffd518fa399527d26262683fc860c30eef | [
"Apache-2.0"
] | 4,258 | 2015-01-04T22:06:10.000Z | 2022-03-31T23:40:27.000Z | security_monkey/tests/sso/test_okta.py | boladmin/security_monkey | c28592ffd518fa399527d26262683fc860c30eef | [
"Apache-2.0"
] | 1,013 | 2015-01-12T02:31:03.000Z | 2021-09-16T19:09:03.000Z | security_monkey/tests/sso/test_okta.py | boladmin/security_monkey | c28592ffd518fa399527d26262683fc860c30eef | [
"Apache-2.0"
] | 965 | 2015-01-11T21:06:07.000Z | 2022-03-17T16:53:57.000Z | import mock
from security_monkey.sso.views import Okta
from security_monkey.tests import SecurityMonkeyTestCase
RETURN_TO = 'http://localhost:5000'
VALID_OKTA_AUTH_RESPONSE = {
'code': 'somecode',
'state': 'clientId,0oagdrujcfsH6mYQz0h7,redirectUri,http://localhost:5000/api/1/auth/okta,return_to,{}'.format(R... | 108.607477 | 2,007 | 0.837794 | 850 | 11,621 | 11.121176 | 0.274118 | 0.019994 | 0.026976 | 0.03491 | 0.697662 | 0.67111 | 0.658521 | 0.649847 | 0.649847 | 0.644346 | 0 | 0.085243 | 0.087428 | 11,621 | 106 | 2,008 | 109.632075 | 0.806129 | 0.02702 | 0 | 0.590909 | 0 | 0.022727 | 0.652405 | 0.559306 | 0 | 0 | 0 | 0 | 0.056818 | 1 | 0.045455 | false | 0 | 0.034091 | 0 | 0.090909 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
ee820769901c3158687c3be439238ccd481ce292 | 2,573 | py | Python | api/tests/test_message_validator.py | mmedum/limbo | 8aff181a1616bc4941b29fcd75e33e7943a105ea | [
"MIT"
] | 1 | 2019-08-22T03:59:27.000Z | 2019-08-22T03:59:27.000Z | api/tests/test_message_validator.py | mmedum/limbo | 8aff181a1616bc4941b29fcd75e33e7943a105ea | [
"MIT"
] | 1 | 2018-12-23T14:18:40.000Z | 2018-12-23T14:18:40.000Z | api/tests/test_message_validator.py | mmedum/limbo | 8aff181a1616bc4941b29fcd75e33e7943a105ea | [
"MIT"
] | null | null | null | import unittest
import message_validator
class TestMessageValidator(unittest.TestCase):
def test_subject_not_defined(self):
expected_output = {
'Message': 'not submitted',
'Problem': 'no subject defined'
}
expected_status_code = 400
expected_should_send = F... | 29.918605 | 82 | 0.607462 | 266 | 2,573 | 5.552632 | 0.120301 | 0.108328 | 0.097495 | 0.05958 | 0.906567 | 0.906567 | 0.900474 | 0.900474 | 0.900474 | 0.900474 | 0 | 0.006619 | 0.295375 | 2,573 | 85 | 83 | 30.270588 | 0.808053 | 0 | 0 | 0.686567 | 0 | 0 | 0.135639 | 0 | 0 | 0 | 0 | 0 | 0.179104 | 1 | 0.059701 | false | 0 | 0.029851 | 0 | 0.104478 | 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 |
ee8c69e1d8e15a0ed00e68e84248539974f3ebc2 | 104 | py | Python | npload.py | dmsehf804/3stream_ROI | 140b77aff56e234f152e01ea87dee24faafd1161 | [
"MIT"
] | 1 | 2019-12-06T09:27:01.000Z | 2019-12-06T09:27:01.000Z | npload.py | dmsehf804/3stream_ROI | 140b77aff56e234f152e01ea87dee24faafd1161 | [
"MIT"
] | null | null | null | npload.py | dmsehf804/3stream_ROI | 140b77aff56e234f152e01ea87dee24faafd1161 | [
"MIT"
] | null | null | null | import numpy as np
print(np.load('data/UCF101_train_rgb/ApplyEyeMakeup/v_ApplyEyeMakeup_g08.npy').shape) | 52 | 85 | 0.846154 | 17 | 104 | 4.941176 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05 | 0.038462 | 104 | 2 | 85 | 52 | 0.79 | 0 | 0 | 0 | 0 | 0 | 0.580952 | 0.580952 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 6 |
ee8f73e95e871df8b32429393694e108ca1c38a7 | 72 | py | Python | hello.py | dick7/test-git | 359d897d3edd390b14afc28bd9bc50502e087e20 | [
"MIT"
] | null | null | null | hello.py | dick7/test-git | 359d897d3edd390b14afc28bd9bc50502e087e20 | [
"MIT"
] | null | null | null | hello.py | dick7/test-git | 359d897d3edd390b14afc28bd9bc50502e087e20 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding=utf-8
print("Hello,world!\nHello,Git!")
| 14.4 | 33 | 0.680556 | 12 | 72 | 4.083333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015152 | 0.083333 | 72 | 4 | 34 | 18 | 0.727273 | 0.458333 | 0 | 0 | 0 | 0 | 0.648649 | 0.648649 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
c9a142a26ecbb10cbfee6297b6accce8219500c7 | 69 | py | Python | zhangzhen/20180326/text8.py | python20180319howmework/homework | c826d7aa4c52f8d22f739feb134d20f0b2c217cd | [
"Apache-2.0"
] | null | null | null | zhangzhen/20180326/text8.py | python20180319howmework/homework | c826d7aa4c52f8d22f739feb134d20f0b2c217cd | [
"Apache-2.0"
] | null | null | null | zhangzhen/20180326/text8.py | python20180319howmework/homework | c826d7aa4c52f8d22f739feb134d20f0b2c217cd | [
"Apache-2.0"
] | null | null | null |
#print(not 1 or 0 and 1 or 3 and 4 or 5 and 6 or 7 and 8 and 9 )
#4
| 17.25 | 64 | 0.608696 | 22 | 69 | 1.909091 | 0.590909 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.23913 | 0.333333 | 69 | 3 | 65 | 23 | 0.673913 | 0.927536 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
4e61541c20589b17b2a96ec323f6a9e363ec9b7b | 2,036 | py | Python | tests/test_frontend/test_tensorflow.py | uTensor/utensor_cgen | eccd6859028d0b6a350dced25ea72ff02faaf9ad | [
"Apache-2.0"
] | 49 | 2018-01-06T12:57:56.000Z | 2021-09-03T09:48:32.000Z | tests/test_frontend/test_tensorflow.py | uTensor/utensor_cgen | eccd6859028d0b6a350dced25ea72ff02faaf9ad | [
"Apache-2.0"
] | 101 | 2018-01-16T19:24:21.000Z | 2021-11-10T19:39:33.000Z | tests/test_frontend/test_tensorflow.py | uTensor/utensor_cgen | eccd6859028d0b6a350dced25ea72ff02faaf9ad | [
"Apache-2.0"
] | 32 | 2018-02-15T19:39:50.000Z | 2020-11-26T22:32:05.000Z | import numpy as np
import tensorflow.compat.v1 as tf
def test_scalar_shape():
from utensor_cgen.frontend.tensorflow import GraphDefParser
graph = tf.Graph()
with graph.as_default():
tf.constant(1, dtype=tf.float32, name='x')
parser = GraphDefParser({})
ugraph = parser.parse(graph.as_graph... | 37.703704 | 92 | 0.694008 | 279 | 2,036 | 4.896057 | 0.222222 | 0.085652 | 0.087848 | 0.046852 | 0.81552 | 0.81552 | 0.81552 | 0.81552 | 0.746706 | 0.711567 | 0 | 0.01717 | 0.170432 | 2,036 | 53 | 93 | 38.415094 | 0.791593 | 0.064342 | 0 | 0.658537 | 0 | 0 | 0.031579 | 0 | 0 | 0 | 0 | 0 | 0.195122 | 1 | 0.073171 | false | 0 | 0.121951 | 0 | 0.195122 | 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 |
4e6664d8bc0d6427843b4700dcb4ea38876252b6 | 36 | py | Python | devkit/data/transforms/__init__.py | gwanglee/VisDA2020 | 21fec160b54dafae4ee6ca33d16a24ac307501ae | [
"MIT"
] | 360 | 2020-03-30T07:15:45.000Z | 2022-03-04T14:08:04.000Z | data/transforms/__init__.py | Mawandasmat/APNet | 8ba6e078ff062415b2b2b34115bbadb4cfd6e827 | [
"MIT"
] | 30 | 2020-05-12T11:12:20.000Z | 2021-12-31T05:49:10.000Z | data/transforms/__init__.py | Mawandasmat/APNet | 8ba6e078ff062415b2b2b34115bbadb4cfd6e827 | [
"MIT"
] | 38 | 2020-05-12T05:33:46.000Z | 2022-01-25T22:27:45.000Z | from .build import build_transforms
| 18 | 35 | 0.861111 | 5 | 36 | 6 | 0.8 | 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 |
4ecd133c9ae89a7f3bf354eee21d302b6ba656d2 | 1,111 | py | Python | sls/utils/__init__.py | aws-samples/amazon-ec2-rds-scheduling-tags-api-sls | 89bec948dc1b838e5518eb76ad571da8dea693f4 | [
"MIT-0"
] | null | null | null | sls/utils/__init__.py | aws-samples/amazon-ec2-rds-scheduling-tags-api-sls | 89bec948dc1b838e5518eb76ad571da8dea693f4 | [
"MIT-0"
] | null | null | null | sls/utils/__init__.py | aws-samples/amazon-ec2-rds-scheduling-tags-api-sls | 89bec948dc1b838e5518eb76ad571da8dea693f4 | [
"MIT-0"
] | null | null | null | """
base init file
"""
# pylint:disable=wrong-import-position,wrong-import-order, import-error, W0703
import boto3
def get_boto3_client(service_name, secret_region, credentials):
"""
:param service_name:
:param secret_region:
:param credentials:
:return:
"""
return boto3.client(service_na... | 30.861111 | 87 | 0.60216 | 106 | 1,111 | 6.009434 | 0.301887 | 0.103611 | 0.10675 | 0.144427 | 0.844584 | 0.844584 | 0.784929 | 0.784929 | 0.784929 | 0.784929 | 0 | 0.011364 | 0.287129 | 1,111 | 35 | 88 | 31.742857 | 0.792929 | 0.212421 | 0 | 0.461538 | 0 | 0 | 0.093711 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.076923 | 0 | 0.384615 | 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 |
0902e3a8f7b9fc510433891a948a7aa07bd44180 | 135 | py | Python | attacks/__init__.py | sukrutrao/Adversarial-Patch-Training | b7322e6f4d94029ceb0dcb946d2b6852c795990f | [
"Unlicense"
] | 21 | 2020-08-04T12:47:03.000Z | 2022-03-22T09:34:29.000Z | attacks/__init__.py | sukrutrao/Adversarial-Patch-Training | b7322e6f4d94029ceb0dcb946d2b6852c795990f | [
"Unlicense"
] | 3 | 2021-06-08T22:13:00.000Z | 2022-03-12T00:45:16.000Z | attacks/__init__.py | sukrutrao/Adversarial-Patch-Training | b7322e6f4d94029ceb0dcb946d2b6852c795990f | [
"Unlicense"
] | 6 | 2020-08-04T12:47:05.000Z | 2022-02-13T00:58:03.000Z | """
Attacks.
"""
from .attack import *
from .norms import *
from .objectives import *
from .adversarial_patch import AdversarialPatch
| 15 | 47 | 0.748148 | 15 | 135 | 6.666667 | 0.6 | 0.3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148148 | 135 | 8 | 48 | 16.875 | 0.869565 | 0.059259 | 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 |
095704b67a31c3c7ae5560a39c309fe1c5f99efc | 64,190 | py | Python | Software/Network plotters/elec_heat_v2g50_OMEGA_plot_v2.py | JonasVind/Master_Project_Code-Plots | f3efea1a30738b119bf6958cc490b940c90e2909 | [
"CC-BY-4.0"
] | null | null | null | Software/Network plotters/elec_heat_v2g50_OMEGA_plot_v2.py | JonasVind/Master_Project_Code-Plots | f3efea1a30738b119bf6958cc490b940c90e2909 | [
"CC-BY-4.0"
] | null | null | null | Software/Network plotters/elec_heat_v2g50_OMEGA_plot_v2.py | JonasVind/Master_Project_Code-Plots | f3efea1a30738b119bf6958cc490b940c90e2909 | [
"CC-BY-4.0"
] | null | null | null | # Import libraries
import os
import sys
import pypsa
import numpy as np
import pandas as pd
import time
import math
# Timer
t0 = time.time() # Start a timer
# Import functions file
sys.path.append(os.path.split(os.getcwd())[0])
from functions_file import *
# Directory of file
directory = os.path.split(o... | 43.607337 | 221 | 0.68411 | 7,731 | 64,190 | 5.634847 | 0.05562 | 0.016528 | 0.012855 | 0.01763 | 0.875491 | 0.85265 | 0.825815 | 0.791038 | 0.763859 | 0.74196 | 0 | 0.037838 | 0.149385 | 64,190 | 1,471 | 222 | 43.636982 | 0.75984 | 0.213538 | 0 | 0.620219 | 0 | 0 | 0.174255 | 0.034427 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.010929 | 0 | 0.010929 | 0.001366 | 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 |
11a182d20ab2ba449c48609410f2b80e85f8fe43 | 208 | py | Python | hon/renderers/__init__.py | swquinn/hon | 333332029ee884a8822d38024659d5d7da64ff1a | [
"MIT"
] | null | null | null | hon/renderers/__init__.py | swquinn/hon | 333332029ee884a8822d38024659d5d7da64ff1a | [
"MIT"
] | 14 | 2019-06-23T01:49:55.000Z | 2021-02-22T01:26:51.000Z | hon/renderers/__init__.py | swquinn/hon | 333332029ee884a8822d38024659d5d7da64ff1a | [
"MIT"
] | null | null | null | from .renderer import Renderer
from .render_context import RenderContext
from .ebook import EbookRenderer, EpubRenderer
from .html.html_renderer import HtmlRenderer
from .pdf.pdf_renderer import PdfRenderer
| 29.714286 | 46 | 0.855769 | 26 | 208 | 6.730769 | 0.5 | 0.24 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105769 | 208 | 6 | 47 | 34.666667 | 0.94086 | 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 |
11d03b8ec50621f66bae0b3fb7fc924428ef14e9 | 280 | py | Python | py/generate_password.py | christophfranke/continuous-integration-tools | eeb77a624303f5b5971ea7110a8352ff72feb312 | [
"MIT"
] | null | null | null | py/generate_password.py | christophfranke/continuous-integration-tools | eeb77a624303f5b5971ea7110a8352ff72feb312 | [
"MIT"
] | null | null | null | py/generate_password.py | christophfranke/continuous-integration-tools | eeb77a624303f5b5971ea7110a8352ff72feb312 | [
"MIT"
] | null | null | null | from modules import engine
from modules import out
from modules import run
@engine.prepare_and_clean
def execute():
out.log("generating password...")
run.local('openssl rand -base64 15')
def help():
out.log("Creates a strong random 20 characters password.", 'help') | 23.333333 | 70 | 0.728571 | 40 | 280 | 5.05 | 0.65 | 0.163366 | 0.252475 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025532 | 0.160714 | 280 | 12 | 70 | 23.333333 | 0.834043 | 0 | 0 | 0 | 0 | 0 | 0.341637 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | true | 0.222222 | 0.333333 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 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 | 1 | 1 | 0 | 1 | 0 | 0 | 6 |
eeb2af912a13eb667df46e97c3cddb30790f007e | 5,086 | py | Python | tests/torchvision/model-server/test_serve.py | basisai/bedrock-express | 273b6377f080e1f6125dfd8ec465a8aaf3dee468 | [
"Apache-2.0"
] | 9 | 2020-10-22T06:42:38.000Z | 2020-10-22T08:38:17.000Z | tests/torchvision/model-server/test_serve.py | basisai/bedrock-express | 273b6377f080e1f6125dfd8ec465a8aaf3dee468 | [
"Apache-2.0"
] | 69 | 2020-10-23T02:15:36.000Z | 2022-03-31T00:03:18.000Z | tests/tf-vision/model-server/test_serve.py | basisai/bedrock-express | 273b6377f080e1f6125dfd8ec465a8aaf3dee468 | [
"Apache-2.0"
] | 1 | 2021-09-28T01:36:41.000Z | 2021-09-28T01:36:41.000Z | from io import BytesIO
from unittest import TestCase
from serve import Model
soccer = b'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00\x1c\x00\x00\x00\x1c\x08\x06\x00\x00\x00r\r\xdf\x94\x00\x00\x00\x01sRGB\x00\xae\xce\x1c\xe9\x00\x00\x00\x84eXIfMM\x00*\x00\x00\x00\x08\x00\x05\x01\x12\x00\x03\x00\x00\x00\x01\x00\x01\... | 299.176471 | 4,632 | 0.724145 | 1,099 | 5,086 | 3.346679 | 0.367607 | 0.106036 | 0.073409 | 0.032626 | 0.087819 | 0.080479 | 0.080479 | 0.072322 | 0.032626 | 0.032626 | 0 | 0.23664 | 0.028706 | 5,086 | 16 | 4,633 | 317.875 | 0.507895 | 0.001966 | 0 | 0 | 0 | 0.333333 | 0.891801 | 0.836421 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.083333 | false | 0 | 0.25 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
eeea7315cf1d7abd300ccba2bb3a8132583b760e | 105 | py | Python | tests/conftest.py | tatarize/vnoise | de7a60b7599df733b2c449420554ef93dacbd03b | [
"MIT"
] | 9 | 2021-02-25T03:29:02.000Z | 2022-03-16T20:07:58.000Z | tests/conftest.py | tatarize/vnoise | de7a60b7599df733b2c449420554ef93dacbd03b | [
"MIT"
] | null | null | null | tests/conftest.py | tatarize/vnoise | de7a60b7599df733b2c449420554ef93dacbd03b | [
"MIT"
] | 2 | 2021-02-25T14:56:48.000Z | 2021-12-08T02:01:06.000Z | import pytest
from vnoise import Noise
@pytest.fixture(scope="module")
def noise():
return Noise()
| 13.125 | 31 | 0.72381 | 14 | 105 | 5.428571 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161905 | 105 | 7 | 32 | 15 | 0.863636 | 0 | 0 | 0 | 0 | 0 | 0.057143 | 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 |
eeeec07e464a6fab9fd8b008ba93c9dbe39dd134 | 1,183 | py | Python | FuzzingTool_Dialog_InputTestcaseandRun.py | Ryu-Miyaki/Fuzz4B | 8546f165d4dbdd97eb6ab5a6f4c445ee81ec364b | [
"MIT"
] | 16 | 2020-06-25T11:56:59.000Z | 2022-02-05T14:00:12.000Z | FuzzingTool_Dialog_InputTestcaseandRun.py | Ryu-Miyaki/Fuzz4B | 8546f165d4dbdd97eb6ab5a6f4c445ee81ec364b | [
"MIT"
] | null | null | null | FuzzingTool_Dialog_InputTestcaseandRun.py | Ryu-Miyaki/Fuzz4B | 8546f165d4dbdd97eb6ab5a6f4c445ee81ec364b | [
"MIT"
] | null | null | null | """Subclass of Dialog_InputTestcaseandRun, which is generated by wxFormBuilder."""
import wx
import FuzzingTool
# Implementing Dialog_InputTestcaseandRun
class FuzzingTool_Dialog_InputTestcaseandRun( FuzzingTool.Dialog_InputTestcaseandRun ):
def __init__( self, parent ):
FuzzingTool.Dialog_InputTestcaseandRun.__in... | 28.853659 | 87 | 0.814877 | 108 | 1,183 | 8.657407 | 0.324074 | 0.06738 | 0.097326 | 0.164706 | 0.186096 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129332 | 1,183 | 40 | 88 | 29.575 | 0.907767 | 0.422654 | 0 | 0.368421 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025 | 0 | 1 | 0.421053 | false | 0.368421 | 0.105263 | 0 | 0.578947 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 6 |
0122c03b5d1fc21adc4ba2bd13f1aefe17a54762 | 143 | py | Python | tests/__init__.py | s-ball/MockSelector | c902053a6bcf111503060491777a1af83f92750d | [
"MIT"
] | null | null | null | tests/__init__.py | s-ball/MockSelector | c902053a6bcf111503060491777a1af83f92750d | [
"MIT"
] | null | null | null | tests/__init__.py | s-ball/MockSelector | c902053a6bcf111503060491777a1af83f92750d | [
"MIT"
] | null | null | null | import os
import sys
current_path = os.path.dirname(os.path.abspath(__file__))
sys.path.extend((current_path, os.path.dirname(current_path)))
| 23.833333 | 62 | 0.79021 | 23 | 143 | 4.608696 | 0.391304 | 0.311321 | 0.245283 | 0.320755 | 0.45283 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06993 | 143 | 5 | 63 | 28.6 | 0.796992 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
012e4eef1875649a6948591070239660289a5680 | 36 | py | Python | awsbase/awslambda/__init__.py | mjm461/awsbase | 989dd4a4f5a5011c4f5ffd8bf23230849f13acff | [
"BSD-2-Clause"
] | null | null | null | awsbase/awslambda/__init__.py | mjm461/awsbase | 989dd4a4f5a5011c4f5ffd8bf23230849f13acff | [
"BSD-2-Clause"
] | null | null | null | awsbase/awslambda/__init__.py | mjm461/awsbase | 989dd4a4f5a5011c4f5ffd8bf23230849f13acff | [
"BSD-2-Clause"
] | null | null | null | from .base_lambda import BaseLambda
| 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 |
01501aa0c8da894d9add05532470ebb3226a0c56 | 124 | py | Python | artificery/parsers/upsample_residuals/parse.py | seung-lab/artificery | f2dc93a5ff8b057f6a7c4789d483efe52809da22 | [
"Apache-2.0"
] | 1 | 2020-06-17T21:04:15.000Z | 2020-06-17T21:04:15.000Z | artificery/parsers/upsample_residuals/parse.py | seung-lab/artificery | f2dc93a5ff8b057f6a7c4789d483efe52809da22 | [
"Apache-2.0"
] | null | null | null | artificery/parsers/upsample_residuals/parse.py | seung-lab/artificery | f2dc93a5ff8b057f6a7c4789d483efe52809da22 | [
"Apache-2.0"
] | 1 | 2020-10-09T04:06:41.000Z | 2020-10-09T04:06:41.000Z | from scalenet.upsample_residuals import UpsampleResiduals
def parse(params, create_module):
return UpsampleResiduals()
| 24.8 | 57 | 0.830645 | 13 | 124 | 7.769231 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.112903 | 124 | 4 | 58 | 31 | 0.918182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 6 |
017ea89c853b9538215b116110099049727ec610 | 35,070 | py | Python | license_protected_downloads/tests/test_views.py | NexellCorp/infrastructure_server_linaro-license-protection | c328a1e023c60b443b2fca6349179104f7637077 | [
"Net-SNMP",
"Xnet",
"Info-ZIP",
"OML"
] | null | null | null | license_protected_downloads/tests/test_views.py | NexellCorp/infrastructure_server_linaro-license-protection | c328a1e023c60b443b2fca6349179104f7637077 | [
"Net-SNMP",
"Xnet",
"Info-ZIP",
"OML"
] | null | null | null | license_protected_downloads/tests/test_views.py | NexellCorp/infrastructure_server_linaro-license-protection | c328a1e023c60b443b2fca6349179104f7637077 | [
"Net-SNMP",
"Xnet",
"Info-ZIP",
"OML"
] | null | null | null | __author__ = 'dooferlad'
import hashlib
import os
import tempfile
import unittest
import urllib2
import urlparse
import mock
from django.conf import settings
from django.test import Client, TestCase
from django.http import HttpResponse
from license_protected_downloads.buildinfo import BuildInfo
from license_protect... | 42.7162 | 79 | 0.652067 | 4,389 | 35,070 | 5.008658 | 0.088859 | 0.058682 | 0.052313 | 0.042032 | 0.806259 | 0.784561 | 0.755447 | 0.7292 | 0.701133 | 0.686985 | 0 | 0.007682 | 0.242829 | 35,070 | 820 | 80 | 42.768293 | 0.820178 | 0.113031 | 0 | 0.633613 | 0 | 0 | 0.155528 | 0.063734 | 0 | 0 | 0 | 0 | 0.184874 | 1 | 0.114286 | false | 0 | 0.030252 | 0 | 0.156303 | 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 |
6d6e3324f7e5b31d4833af56ea28e374b91f9c27 | 4,154 | py | Python | 70_question/famous_algorithm/topological_sort_test.py | alvinctk/google-tech-dev-guide | 9d7759bea1f44673c2de4f25a94b27368928a59f | [
"Apache-2.0"
] | 26 | 2019-06-07T05:29:47.000Z | 2022-03-19T15:32:27.000Z | 70_question/famous_algorithm/topological_sort_test.py | alvinctk/google-tech-dev-guide | 9d7759bea1f44673c2de4f25a94b27368928a59f | [
"Apache-2.0"
] | null | null | null | 70_question/famous_algorithm/topological_sort_test.py | alvinctk/google-tech-dev-guide | 9d7759bea1f44673c2de4f25a94b27368928a59f | [
"Apache-2.0"
] | 6 | 2019-10-10T06:39:28.000Z | 2020-05-12T19:50:55.000Z | import topological_sort as program
import unittest
class TestProgram(unittest.TestCase):
def test_case_1(self):
jobs = [1, 2, 3, 4, 5, 6, 7, 8]
deps = [[3, 1], [8, 1], [8, 7], [5, 7], [5, 2], [1, 4], [1, 6], [1, 2], [7, 6]]
order = program.topologicalSort(jobs, deps)
self.assertEq... | 37.763636 | 111 | 0.47039 | 638 | 4,154 | 3.010972 | 0.073668 | 0.022905 | 0.020302 | 0.024987 | 0.809995 | 0.80583 | 0.799584 | 0.799584 | 0.779802 | 0.779282 | 0 | 0.139665 | 0.310544 | 4,154 | 109 | 112 | 38.110092 | 0.531075 | 0 | 0 | 0.538462 | 0 | 0 | 0.001926 | 0 | 0 | 0 | 0 | 0 | 0.131868 | 1 | 0.142857 | false | 0 | 0.021978 | 0 | 0.208791 | 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 |
6d6e9d7e1e43345dfdcd53a0572d0b310a9a9631 | 38 | py | Python | protocols/protocol_6_1/metrics.py | Lucioric2000/GelReportModels | 1704cdea3242d5b46c8b81ef46553ccae2799435 | [
"Apache-2.0"
] | null | null | null | protocols/protocol_6_1/metrics.py | Lucioric2000/GelReportModels | 1704cdea3242d5b46c8b81ef46553ccae2799435 | [
"Apache-2.0"
] | null | null | null | protocols/protocol_6_1/metrics.py | Lucioric2000/GelReportModels | 1704cdea3242d5b46c8b81ef46553ccae2799435 | [
"Apache-2.0"
] | null | null | null | from protocols.metrics_1_1_0 import *
| 19 | 37 | 0.842105 | 7 | 38 | 4.142857 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088235 | 0.105263 | 38 | 1 | 38 | 38 | 0.764706 | 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 |
6da8d21d942afce3e3502783def6179bef406cae | 23,830 | py | Python | yang/connection/binding_connection.py | rvilalta/OFC_SC472 | 6d95f34c058c69918b045b164f87724d61ed29c7 | [
"Apache-2.0"
] | 2 | 2019-11-12T15:15:44.000Z | 2020-02-24T16:46:53.000Z | yang/connection/binding_connection.py | rvilalta/OFC2019_SC472 | c0bcbd05bb6c90eb9d8ab5abdc10b04d65a8a5d3 | [
"Apache-2.0"
] | null | null | null | yang/connection/binding_connection.py | rvilalta/OFC2019_SC472 | c0bcbd05bb6c90eb9d8ab5abdc10b04d65a8a5d3 | [
"Apache-2.0"
] | 2 | 2021-09-28T15:31:03.000Z | 2021-11-16T17:53:59.000Z | # -*- coding: utf-8 -*-
from operator import attrgetter
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType
from pyangbind.lib.yangtypes import RestrictedClassType
from pyangbind.lib.yangtypes import TypedListType
from pyangbind.lib.yangtypes import YANGBool
from pyangbind.lib.yangtypes import YANGListTy... | 57.839806 | 521 | 0.726479 | 3,098 | 23,830 | 5.294061 | 0.063589 | 0.046339 | 0.059752 | 0.03951 | 0.883178 | 0.854582 | 0.852753 | 0.841107 | 0.832815 | 0.822206 | 0 | 0.00423 | 0.156735 | 23,830 | 411 | 522 | 57.980535 | 0.811943 | 0.165883 | 0 | 0.576 | 0 | 0.032 | 0.280138 | 0.093944 | 0 | 0 | 0 | 0 | 0 | 1 | 0.112 | false | 0 | 0.06 | 0 | 0.3 | 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 |
6dcb9a344281602ddce521bca662ee78056e19df | 111 | py | Python | mawie/events/updator.py | Grisou13/mawie | d6b7a2f09431ab0d34f366062bf3c26d346169f9 | [
"MIT"
] | 1 | 2020-03-03T16:39:30.000Z | 2020-03-03T16:39:30.000Z | mawie/events/updator.py | Grisou13/mawie | d6b7a2f09431ab0d34f366062bf3c26d346169f9 | [
"MIT"
] | 5 | 2021-03-18T20:17:57.000Z | 2022-01-13T00:37:27.000Z | mawie/events/updator.py | Grisou13/mawie | d6b7a2f09431ab0d34f366062bf3c26d346169f9 | [
"MIT"
] | 2 | 2016-09-30T06:25:57.000Z | 2016-11-25T20:23:46.000Z | from . import Request, Event
class UpdatorRequest(Request):
pass
class ForceUpdatorRun(Request):
pass | 15.857143 | 31 | 0.747748 | 12 | 111 | 6.916667 | 0.666667 | 0.26506 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.18018 | 111 | 7 | 32 | 15.857143 | 0.912088 | 0 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.4 | 0.2 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 6 |
6dfb5004ba395449e44acca4ac8c76133de2ba18 | 47 | py | Python | src/utils/drive_sync.py | Abdul-Muiz-Iqbal/PostMan | 31c94f751c87ac6f3079b014da7402a4bbf22cc3 | [
"Apache-2.0"
] | null | null | null | src/utils/drive_sync.py | Abdul-Muiz-Iqbal/PostMan | 31c94f751c87ac6f3079b014da7402a4bbf22cc3 | [
"Apache-2.0"
] | 3 | 2021-05-05T16:05:26.000Z | 2021-05-08T10:24:18.000Z | src/utils/drive_sync.py | Abdul-Muiz-Iqbal/PostMan | 31c94f751c87ac6f3079b014da7402a4bbf22cc3 | [
"Apache-2.0"
] | 1 | 2021-05-01T10:14:40.000Z | 2021-05-01T10:14:40.000Z |
class DriveSync:
"""TODO: Stub"""
pass | 11.75 | 20 | 0.553191 | 5 | 47 | 5.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.276596 | 47 | 4 | 21 | 11.75 | 0.764706 | 0.212766 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 0 | 1 | 0 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 6 |
09a6aa4b2f2f96d59f1963a9dc828a97839c0026 | 3,260 | py | Python | tests/evaluation/test_admin.py | rohanshad/pycox | 5483489d21f3441e53f78f9f8898ce607f41c632 | [
"BSD-2-Clause"
] | 449 | 2019-07-01T13:54:06.000Z | 2022-03-31T05:57:14.000Z | tests/evaluation/test_admin.py | Sandy4321/pycox | 6ed3973954789f54453055bbeb85887ded2fb81c | [
"BSD-2-Clause"
] | 96 | 2019-07-01T16:54:53.000Z | 2022-03-22T18:20:01.000Z | tests/evaluation/test_admin.py | Sandy4321/pycox | 6ed3973954789f54453055bbeb85887ded2fb81c | [
"BSD-2-Clause"
] | 110 | 2019-07-01T13:50:44.000Z | 2022-03-29T16:39:54.000Z | import numpy as np
import pandas as pd
from pycox.evaluation import admin
from pycox.evaluation import EvalSurv
def test_brier_score_no_censor():
n = 4
durations = np.ones(n) * 50
durations_c = np.ones_like(durations) * 100
events = durations <= durations_c
m = 5
index_surv = np.array([0, 25.,... | 38.809524 | 106 | 0.636503 | 529 | 3,260 | 3.731569 | 0.111531 | 0.101317 | 0.134752 | 0.118541 | 0.836879 | 0.763425 | 0.740122 | 0.720871 | 0.720871 | 0.699088 | 0 | 0.078041 | 0.19816 | 3,260 | 83 | 107 | 39.277108 | 0.677123 | 0 | 0 | 0.630137 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136986 | 1 | 0.054795 | false | 0 | 0.054795 | 0 | 0.109589 | 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 |
09ef7f5b60c84fac9b8935eb214b9f9b79dfab27 | 32 | py | Python | __init__.py | cmansel/augmentation-generator | 380b9ff401e935134a073bd8b1eba428da1cb5b2 | [
"MIT"
] | null | null | null | __init__.py | cmansel/augmentation-generator | 380b9ff401e935134a073bd8b1eba428da1cb5b2 | [
"MIT"
] | null | null | null | __init__.py | cmansel/augmentation-generator | 380b9ff401e935134a073bd8b1eba428da1cb5b2 | [
"MIT"
] | null | null | null | # __init__.py
from .src import * | 16 | 18 | 0.71875 | 5 | 32 | 3.8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15625 | 32 | 2 | 18 | 16 | 0.703704 | 0.34375 | 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 |
61d7044a51f4f9424b51f6382dde74cd949e17f0 | 157 | py | Python | pixelwalker/engine/utils.py | thomMar/pixelwalker | 48c1b202673a948e1ca51fbd44ac4c1a037f4ef7 | [
"MIT"
] | null | null | null | pixelwalker/engine/utils.py | thomMar/pixelwalker | 48c1b202673a948e1ca51fbd44ac4c1a037f4ef7 | [
"MIT"
] | null | null | null | pixelwalker/engine/utils.py | thomMar/pixelwalker | 48c1b202673a948e1ca51fbd44ac4c1a037f4ef7 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import os
import uuid
def get_upload_path(instance, filename):
return os.path.join(filename+"_"+str(uuid.uuid4().hex), filename) | 26.166667 | 69 | 0.700637 | 23 | 157 | 4.652174 | 0.73913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014493 | 0.121019 | 157 | 6 | 69 | 26.166667 | 0.76087 | 0.133758 | 0 | 0 | 0 | 0 | 0.007407 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.5 | 0.25 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 6 |
febb279c5fbc01fdfe69d8d53febb4f8fc279a47 | 90 | py | Python | fvhexperiments/management/commands/__init__.py | VekotinVerstas/DjangoHttpBroker-FVH-Experiments | 512a7a6be74beb75473860ca34b9abf695820a32 | [
"MIT"
] | null | null | null | fvhexperiments/management/commands/__init__.py | VekotinVerstas/DjangoHttpBroker-FVH-Experiments | 512a7a6be74beb75473860ca34b9abf695820a32 | [
"MIT"
] | null | null | null | fvhexperiments/management/commands/__init__.py | VekotinVerstas/DjangoHttpBroker-FVH-Experiments | 512a7a6be74beb75473860ca34b9abf695820a32 | [
"MIT"
] | 2 | 2020-05-05T12:57:47.000Z | 2020-08-14T13:33:56.000Z | from broker.providers.forward import import_forwards
import_forwards(__file__, __name__)
| 22.5 | 52 | 0.866667 | 11 | 90 | 6.181818 | 0.727273 | 0.411765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.077778 | 90 | 3 | 53 | 30 | 0.819277 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.