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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a2d6bc49a1295bcbc496414817c40b451148a5a5 | 17,327 | py | Python | spider_test.py | orxg/newspider | 1b7d09394a8dba8149d874f5a6635e53f83e13a5 | [
"Apache-2.0"
] | null | null | null | spider_test.py | orxg/newspider | 1b7d09394a8dba8149d874f5a6635e53f83e13a5 | [
"Apache-2.0"
] | null | null | null | spider_test.py | orxg/newspider | 1b7d09394a8dba8149d874f5a6635e53f83e13a5 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Mon Jul 23 09:41:51 2018
@author: ldh
"""
# spider_test.py
import urlparse
import re
import random
import datetime as dt
import time
import requests
from bs4 import BeautifulSoup,Tag
import urlparse
import pandas as pd
def ip_generator():
ip = [str(random.randint(0,255)) f... | 30.721631 | 117 | 0.649853 | 2,327 | 17,327 | 4.651053 | 0.112591 | 0.039176 | 0.042133 | 0.03123 | 0.782131 | 0.77132 | 0.758847 | 0.741292 | 0.731313 | 0.731313 | 0 | 0.011202 | 0.196283 | 17,327 | 564 | 118 | 30.721631 | 0.765977 | 0 | 0 | 0.698701 | 0 | 0.002597 | 0.121269 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.023377 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
a2e98ead0b66251b25258d930c344188ffd7164c | 68 | py | Python | sub_server/package/__init__.py | kankanpan/pyAutoControl | 056cc0d28a88aa796bbf689dc5617e1d0177ee01 | [
"MIT"
] | null | null | null | sub_server/package/__init__.py | kankanpan/pyAutoControl | 056cc0d28a88aa796bbf689dc5617e1d0177ee01 | [
"MIT"
] | null | null | null | sub_server/package/__init__.py | kankanpan/pyAutoControl | 056cc0d28a88aa796bbf689dc5617e1d0177ee01 | [
"MIT"
] | null | null | null | from .import findImg
from .import findWindow
from .import guiAction
| 17 | 23 | 0.823529 | 9 | 68 | 6.222222 | 0.555556 | 0.535714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.132353 | 68 | 3 | 24 | 22.666667 | 0.949153 | 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 |
0c452d24a34353c728dbbaae1947b401836a9a8f | 418 | py | Python | env/sawyer/__init__.py | clvrai/mopa-rl | a263b4b3f10573c2eca48193223368d032f96b09 | [
"MIT"
] | 43 | 2020-10-23T06:37:34.000Z | 2022-02-12T19:08:04.000Z | env/sawyer/__init__.py | clvrai/mopa-pd | ac55f568149d8e79c28326bcd9b63336ed065a61 | [
"MIT"
] | 1 | 2021-01-01T13:26:32.000Z | 2021-11-12T03:23:49.000Z | env/sawyer/__init__.py | clvrai/mopa-rl | a263b4b3f10573c2eca48193223368d032f96b09 | [
"MIT"
] | 7 | 2020-11-05T06:59:06.000Z | 2021-12-12T05:14:31.000Z | from env.sawyer.sawyer_push import SawyerPushEnv
from env.sawyer.sawyer_push_obstacle import SawyerPushObstacleEnv
from env.sawyer.sawyer_lift import SawyerLiftEnv
from env.sawyer.sawyer_assembly import SawyerAssemblyEnv
from env.sawyer.sawyer_assembly_obstacle import SawyerAssemblyObstacleEnv
from env.sawyer.sawyer_as... | 52.25 | 73 | 0.899522 | 52 | 418 | 7.038462 | 0.269231 | 0.13388 | 0.248634 | 0.363388 | 0.598361 | 0.377049 | 0.377049 | 0.377049 | 0.377049 | 0.377049 | 0 | 0 | 0.066986 | 418 | 7 | 74 | 59.714286 | 0.938462 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
ac1e661b88b73ec920a23ac4130d3eff611879e4 | 98 | py | Python | tests/conftest.py | jed-frey/bot_01 | c9afefa048824b85cf9473457e9c0e4849e2e60d | [
"BSD-3-Clause"
] | null | null | null | tests/conftest.py | jed-frey/bot_01 | c9afefa048824b85cf9473457e9c0e4849e2e60d | [
"BSD-3-Clause"
] | null | null | null | tests/conftest.py | jed-frey/bot_01 | c9afefa048824b85cf9473457e9c0e4849e2e60d | [
"BSD-3-Clause"
] | null | null | null | import pytest
from uuid import uuid4
@pytest.fixture(scope="module")
def uuid():
return uuid4()
| 14 | 31 | 0.744898 | 14 | 98 | 5.214286 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023529 | 0.132653 | 98 | 6 | 32 | 16.333333 | 0.835294 | 0 | 0 | 0 | 0 | 0 | 0.061224 | 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 |
ac35e85d20ad9e3c1ba20e046b551f575547ec7f | 6,619 | py | Python | polypy/tests/test_msd.py | symmy596/Polypy | 9e9ce03b3e2c287f6d7efb04b31a4e9be7dea396 | [
"MIT"
] | 8 | 2020-11-08T20:08:39.000Z | 2022-03-24T06:36:40.000Z | polypy/tests/test_msd.py | symmy596/Polypy | 9e9ce03b3e2c287f6d7efb04b31a4e9be7dea396 | [
"MIT"
] | 4 | 2018-09-02T05:08:45.000Z | 2020-09-09T12:58:30.000Z | polypy/tests/test_msd.py | symmy596/Polypy | 9e9ce03b3e2c287f6d7efb04b31a4e9be7dea396 | [
"MIT"
] | 2 | 2021-03-03T17:20:15.000Z | 2021-11-22T09:37:32.000Z | import numpy as np
import os
from polypy import read
from polypy import msd as msd
import unittest
from numpy.testing import assert_almost_equal
test_history = os.path.join(os.path.dirname(__file__), 'HISTORY')
test_config = os.path.join(os.path.dirname(__file__), 'CONFIG')
class testMSDContainer(unittest.TestCase):... | 41.36875 | 79 | 0.6504 | 881 | 6,619 | 4.628831 | 0.115778 | 0.102992 | 0.076018 | 0.074546 | 0.80873 | 0.801864 | 0.745954 | 0.702305 | 0.702305 | 0.653507 | 0 | 0.043718 | 0.232815 | 6,619 | 159 | 80 | 41.628931 | 0.759354 | 0 | 0 | 0.559701 | 0 | 0 | 0.007554 | 0 | 0 | 0 | 0 | 0 | 0.149254 | 1 | 0.134328 | false | 0 | 0.044776 | 0 | 0.201493 | 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 |
ac452ee8bf888ce5320c3efe70093efe02fea464 | 3,154 | py | Python | Tests/test_parallel.py | joseroma/parallel-plotting | 79b06da804329e8755f3b576628949f97c7e8c31 | [
"MIT"
] | null | null | null | Tests/test_parallel.py | joseroma/parallel-plotting | 79b06da804329e8755f3b576628949f97c7e8c31 | [
"MIT"
] | 10 | 2020-03-24T16:15:57.000Z | 2022-03-11T23:31:33.000Z | Tests/test_parallel.py | joseroma/parallel-plotting | 79b06da804329e8755f3b576628949f97c7e8c31 | [
"MIT"
] | null | null | null | import unittest
from Code.parallelCoordinates import ParallelCoordinates
class TestMethods(unittest.TestCase):
##### Missing data #########
def test_empty_file_name_throws_exception(self):
self.parallel = ParallelCoordinates(file='', library='pyplot')
with self.assertRaises(Exception):
... | 46.382353 | 131 | 0.712112 | 370 | 3,154 | 5.775676 | 0.208108 | 0.140384 | 0.082358 | 0.180159 | 0.773982 | 0.773982 | 0.773982 | 0.77211 | 0.717829 | 0.550772 | 0 | 0.011494 | 0.172479 | 3,154 | 67 | 132 | 47.074627 | 0.80728 | 0.007926 | 0 | 0.442308 | 0 | 0 | 0.117172 | 0.052292 | 0 | 0 | 0 | 0 | 0.211538 | 1 | 0.230769 | false | 0.038462 | 0.038462 | 0 | 0.288462 | 0.019231 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
ac579bbd35c5149b9debe04f2826642965f5e53c | 115 | py | Python | src/algorithms/classic/testing/dijkstra_testing.py | ed741/PathBench | 50fe138eb1f824f49fe1a862705e435a1c3ec3ae | [
"BSD-3-Clause"
] | 46 | 2020-12-25T04:09:15.000Z | 2022-03-25T12:32:42.000Z | src/algorithms/classic/testing/dijkstra_testing.py | ed741/PathBench | 50fe138eb1f824f49fe1a862705e435a1c3ec3ae | [
"BSD-3-Clause"
] | 36 | 2020-12-21T16:10:02.000Z | 2022-01-03T01:42:01.000Z | src/algorithms/classic/testing/dijkstra_testing.py | judicaelclair/PathBenchURO | 101e67674efdfa8e27e1cf7787dac9fdf99552fe | [
"BSD-3-Clause"
] | 11 | 2021-01-06T23:34:12.000Z | 2022-03-21T17:21:47.000Z | from algorithms.classic.testing.a_star_testing import AStarTesting
class DijkstraTesting(AStarTesting):
pass
| 19.166667 | 66 | 0.834783 | 13 | 115 | 7.230769 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113043 | 115 | 5 | 67 | 23 | 0.921569 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.333333 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 6 |
ac73fdb925e62726811d3b77d174da4a95dfb18c | 46 | py | Python | kloppy/sportscode.py | benoitblanc/kloppy | 5c3f94ff8806f9e23f8bad095a948a403a06a54c | [
"BSD-3-Clause"
] | null | null | null | kloppy/sportscode.py | benoitblanc/kloppy | 5c3f94ff8806f9e23f8bad095a948a403a06a54c | [
"BSD-3-Clause"
] | null | null | null | kloppy/sportscode.py | benoitblanc/kloppy | 5c3f94ff8806f9e23f8bad095a948a403a06a54c | [
"BSD-3-Clause"
] | null | null | null | from ._providers.sportscode import load, save
| 23 | 45 | 0.826087 | 6 | 46 | 6.166667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108696 | 46 | 1 | 46 | 46 | 0.902439 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
3ba30ad79bc5a323c87ee593a479ae1feea9daba | 36 | py | Python | __init__.py | joshwatson/emilator | 8f30b35957c9bb51ab90e7e40f0de09439a5b347 | [
"MIT"
] | 29 | 2017-03-14T11:05:40.000Z | 2021-06-27T02:35:52.000Z | __init__.py | joshwatson/emilator | 8f30b35957c9bb51ab90e7e40f0de09439a5b347 | [
"MIT"
] | 3 | 2018-08-16T09:06:35.000Z | 2020-12-11T23:41:47.000Z | __init__.py | joshwatson/emilator | 8f30b35957c9bb51ab90e7e40f0de09439a5b347 | [
"MIT"
] | 2 | 2017-07-28T17:34:54.000Z | 2020-05-01T02:30:40.000Z | from emilator import *
import errors | 18 | 22 | 0.833333 | 5 | 36 | 6 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138889 | 36 | 2 | 23 | 18 | 0.967742 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
3bafe9c18c658a3daf590c8ea12e8ea0aff47548 | 27,971 | py | Python | test/test_transformations.py | t3hseus/ariadne | b4471a37741000e22281c4d6ff647d65ab9e1914 | [
"MIT"
] | 6 | 2020-08-28T22:44:07.000Z | 2022-01-24T20:53:00.000Z | test/test_transformations.py | t3hseus/ariadne | b4471a37741000e22281c4d6ff647d65ab9e1914 | [
"MIT"
] | 1 | 2021-02-20T09:38:46.000Z | 2021-02-20T09:38:46.000Z | test/test_transformations.py | t3hseus/ariadne | b4471a37741000e22281c4d6ff647d65ab9e1914 | [
"MIT"
] | 2 | 2021-10-04T09:25:06.000Z | 2022-02-09T09:09:09.000Z | import unittest
import sys
import pandas as pd
import numpy as np
import itertools
from ariadne.transformations import (
StandardScale,
MinMaxScale,
ToCylindrical,
Normalize,
DropShort,
DropSpinningTracks,
ToCartesian,
Compose,
ToBuckets,
ConstraintsNormalize,
BakeStationVa... | 41.194404 | 147 | 0.600622 | 3,751 | 27,971 | 4.320981 | 0.049054 | 0.117535 | 0.069965 | 0.056762 | 0.868954 | 0.842423 | 0.793744 | 0.759255 | 0.706318 | 0.664425 | 0 | 0.039165 | 0.245075 | 27,971 | 678 | 148 | 41.255162 | 0.728405 | 0.046441 | 0 | 0.634298 | 0 | 0 | 0.02287 | 0.000916 | 0 | 0 | 0 | 0 | 0.260331 | 1 | 0.13843 | false | 0 | 0.014463 | 0 | 0.17562 | 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 |
3bb88ade4fded6d9f80b1529075371cf9594bb1b | 12,381 | py | Python | tests/test_tasks_move_cube.py | compsciencelab/trifinger_simulation | ddd93c0b370072d706d85a6d1567f49a4de7d5c6 | [
"BSD-3-Clause"
] | 25 | 2020-08-15T12:11:10.000Z | 2022-03-18T12:43:49.000Z | tests/test_tasks_move_cube.py | compsciencelab/trifinger_simulation | ddd93c0b370072d706d85a6d1567f49a4de7d5c6 | [
"BSD-3-Clause"
] | 12 | 2020-08-14T09:39:05.000Z | 2021-12-15T16:26:53.000Z | tests/test_tasks_move_cube.py | compsciencelab/trifinger_simulation | ddd93c0b370072d706d85a6d1567f49a4de7d5c6 | [
"BSD-3-Clause"
] | 10 | 2020-08-17T12:13:29.000Z | 2022-02-01T18:28:05.000Z | #!/usr/bin/env python3
import pytest
import numpy as np
from scipy.spatial.transform import Rotation
from trifinger_simulation.tasks import move_cube
def test_get_cube_corner_positions():
# cube half width
chw = move_cube._CUBE_WIDTH / 2
# no transformation
expected_origin_corners = np.array(
... | 34.107438 | 77 | 0.605282 | 1,678 | 12,381 | 4.243147 | 0.085816 | 0.11236 | 0.055618 | 0.070787 | 0.863624 | 0.847191 | 0.824157 | 0.794522 | 0.785253 | 0.757725 | 0 | 0.036545 | 0.270657 | 12,381 | 362 | 78 | 34.201657 | 0.751938 | 0.107584 | 0 | 0.59176 | 0 | 0 | 0.03972 | 0 | 0 | 0 | 0 | 0 | 0.116105 | 1 | 0.044944 | false | 0 | 0.014981 | 0 | 0.059925 | 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 |
3bc85e0c158875d9ff13d3899d9e4613285b6189 | 271 | py | Python | tests/permutation/mutation/testecm.py | sglumac/pyislands | a5eaceb68a0f21bd8bc8586fdf8cf0d9b7a0134f | [
"MIT"
] | null | null | null | tests/permutation/mutation/testecm.py | sglumac/pyislands | a5eaceb68a0f21bd8bc8586fdf8cf0d9b7a0134f | [
"MIT"
] | null | null | null | tests/permutation/mutation/testecm.py | sglumac/pyislands | a5eaceb68a0f21bd8bc8586fdf8cf0d9b7a0134f | [
"MIT"
] | null | null | null | from pyislands.permutation.mutation.rsm import get_reversed_sequence_mutation
from pyislands.permutation.mutation.ecm import get_every_city_mutation
from tests.permutation.mutation import check_mutation
def test_ecm():
check_mutation(get_every_city_mutation(1.0))
| 30.111111 | 77 | 0.859779 | 38 | 271 | 5.815789 | 0.473684 | 0.257919 | 0.217195 | 0.289593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008032 | 0.081181 | 271 | 8 | 78 | 33.875 | 0.879518 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0.6 | 0 | 0.8 | 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 |
3be0a14989d37a9b94f7a1a91068e423c0d3ddc5 | 208 | py | Python | src/decisionengine_modules/htcondor/sources/slots_source_proxy.py | hyunwoo18/decisionengine_modules | a67462628c2074e768d0825edee4ee5d570030e0 | [
"BSD-3-Clause"
] | null | null | null | src/decisionengine_modules/htcondor/sources/slots_source_proxy.py | hyunwoo18/decisionengine_modules | a67462628c2074e768d0825edee4ee5d570030e0 | [
"BSD-3-Clause"
] | null | null | null | src/decisionengine_modules/htcondor/sources/slots_source_proxy.py | hyunwoo18/decisionengine_modules | a67462628c2074e768d0825edee4ee5d570030e0 | [
"BSD-3-Clause"
] | null | null | null | from decisionengine.framework.modules import SourceProxy
from decisionengine.framework.modules import Source
StartdManifestsSourceProxy = SourceProxy.SourceProxy
Source.describe(StartdManifestsSourceProxy)
| 29.714286 | 56 | 0.889423 | 18 | 208 | 10.277778 | 0.5 | 0.194595 | 0.291892 | 0.367568 | 0.432432 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067308 | 208 | 6 | 57 | 34.666667 | 0.953608 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 1 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
ce1d0c286788552e37ac647d85caae3c43ed48f7 | 31 | py | Python | algorithms/__init__.py | HoliestCow/wind_daq | 6a8b30ba6b14b3162f2fa3144b52cdf7ed17ec3a | [
"MIT"
] | 1 | 2017-08-23T18:52:21.000Z | 2017-08-23T18:52:21.000Z | algorithms/__init__.py | HoliestCow/wind_daq | 6a8b30ba6b14b3162f2fa3144b52cdf7ed17ec3a | [
"MIT"
] | 10 | 2018-05-30T15:49:45.000Z | 2019-06-12T18:20:29.000Z | algorithms/__init__.py | HoliestCow/wind_daq | 6a8b30ba6b14b3162f2fa3144b52cdf7ed17ec3a | [
"MIT"
] | null | null | null |
from .visualTracking import *
| 10.333333 | 29 | 0.774194 | 3 | 31 | 8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16129 | 31 | 2 | 30 | 15.5 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
0231ce9813b69dfaca9b388dde0e3974101037f8 | 197 | py | Python | website/app/util/__init__.py | yqh231/cloudmusic_api | d41b04b1b619b3690d0fe6b5a7b8297feef77c49 | [
"Apache-2.0"
] | 4 | 2017-07-17T09:58:08.000Z | 2019-04-19T10:07:41.000Z | website/app/util/__init__.py | yqh231/cloudmusic_api | d41b04b1b619b3690d0fe6b5a7b8297feef77c49 | [
"Apache-2.0"
] | null | null | null | website/app/util/__init__.py | yqh231/cloudmusic_api | d41b04b1b619b3690d0fe6b5a7b8297feef77c49 | [
"Apache-2.0"
] | null | null | null | from website.app.util.response import *
from website.app.util.param_check import *
from website.app.util.error_catch import *
__all__ = ['JsonError', 'JsonSuccess', 'Param', 'ParamCheck', 'error'] | 39.4 | 70 | 0.756345 | 26 | 197 | 5.5 | 0.538462 | 0.230769 | 0.293706 | 0.377622 | 0.335664 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096447 | 197 | 5 | 70 | 39.4 | 0.803371 | 0 | 0 | 0 | 0 | 0 | 0.20202 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 0 | 0.75 | 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 |
5a1462aa401e2d8848df99112e3f34a53ea284fe | 5,937 | py | Python | src/parse_git_log/xmlRead.py | saheel1115/szz- | dbfbf3c2d007f61ee8c8793f83dbdc071ad02da3 | [
"MIT"
] | 9 | 2017-10-21T13:29:46.000Z | 2022-01-10T23:49:54.000Z | src/parse_git_log/xmlRead.py | saheel1115/szz- | dbfbf3c2d007f61ee8c8793f83dbdc071ad02da3 | [
"MIT"
] | 3 | 2018-01-09T11:28:55.000Z | 2019-01-20T08:45:18.000Z | src/parse_git_log/xmlRead.py | saheel1115/szz- | dbfbf3c2d007f61ee8c8793f83dbdc071ad02da3 | [
"MIT"
] | 1 | 2020-12-29T05:10:31.000Z | 2020-12-29T05:10:31.000Z | #import xml.etree.cElementTree as ET
#from lxml import etree as ET
from lxml import etree as ET
from commit import commit
import sys
import os
import nltk
import util
import classify
def dump_xml(commit_list,out_file):
xmlFile = xmlWrite(out_file)
for c in commit_list:
xmlFile.setCommitAll(c.sha, c... | 33.167598 | 146 | 0.552131 | 711 | 5,937 | 4.461322 | 0.130802 | 0.119798 | 0.151324 | 0.221942 | 0.788777 | 0.759773 | 0.759773 | 0.723834 | 0.687264 | 0.67024 | 0 | 0.002311 | 0.344113 | 5,937 | 178 | 147 | 33.353933 | 0.812275 | 0.014149 | 0 | 0.155844 | 0 | 0 | 0.055769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | null | null | 0.038961 | 0 | 0 | 0 | null | 0 | 0 | 1 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
5a75ffa2140e0c6aab6a3c72c844204943b89eb3 | 444 | py | Python | material/__init__.py | willist/django-material | 73e50eb0105a67dde1c3f6846f868f10bda1f4ea | [
"BSD-3-Clause"
] | 2,703 | 2015-02-05T00:55:14.000Z | 2022-03-16T19:58:23.000Z | material/__init__.py | willist/django-material | 73e50eb0105a67dde1c3f6846f868f10bda1f4ea | [
"BSD-3-Clause"
] | 495 | 2015-04-03T14:20:23.000Z | 2022-03-01T13:05:51.000Z | material/__init__.py | willist/django-material | 73e50eb0105a67dde1c3f6846f868f10bda1f4ea | [
"BSD-3-Clause"
] | 552 | 2015-04-04T12:09:36.000Z | 2022-03-04T13:59:19.000Z | """Django-material - material design for the django framework."""
from .base import (
Layout, Fieldset, Row, Column, Span, Field,
Span2, Span3, Span4, Span5, Span6, Span7,
Span8, Span9, Span10, Span11, Span12,
LayoutMixin)
__all__ = (
'Layout', 'Fieldset', 'Row', 'Column', 'Span', 'Field',
'S... | 27.75 | 65 | 0.612613 | 48 | 444 | 5.583333 | 0.583333 | 0.104478 | 0.126866 | 0.171642 | 0.753731 | 0.753731 | 0.753731 | 0.753731 | 0.753731 | 0.753731 | 0 | 0.078431 | 0.195946 | 444 | 15 | 66 | 29.6 | 0.672269 | 0.132883 | 0 | 0 | 0 | 0 | 0.266491 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
ce72e68343258b1356aade9d78371680b4492178 | 120 | py | Python | trempy/__init__.py | briqInstitute/trempy | 3bc71942ab2ae5e2e3d2526210d28c023259aa86 | [
"MIT"
] | 1 | 2019-10-17T11:58:08.000Z | 2019-10-17T11:58:08.000Z | trempy/__init__.py | OpenSourceEconomics/trempy | 3bc71942ab2ae5e2e3d2526210d28c023259aa86 | [
"MIT"
] | 4 | 2018-11-18T13:49:49.000Z | 2019-02-05T13:40:15.000Z | trempy/__init__.py | briqInstitute/trempy | 3bc71942ab2ae5e2e3d2526210d28c023259aa86 | [
"MIT"
] | 1 | 2020-05-12T13:30:25.000Z | 2020-05-12T13:30:25.000Z | from trempy.estimate.estimate import estimate # noqa: F401
from trempy.simulate.simulate import simulate # noqa: F401
| 40 | 59 | 0.8 | 16 | 120 | 6 | 0.4375 | 0.208333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057692 | 0.133333 | 120 | 2 | 60 | 60 | 0.865385 | 0.175 | 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 |
ce927178fc1efbb05b1a2113b4e321fc9cd2c756 | 122 | py | Python | midas_web_solution/midas_web_solution/settings/partials/__init__.py | jupiny/MIDASWebSolution | c6250bb7aeab815b3c759ae4f7b419da50c26b1c | [
"MIT"
] | null | null | null | midas_web_solution/midas_web_solution/settings/partials/__init__.py | jupiny/MIDASWebSolution | c6250bb7aeab815b3c759ae4f7b419da50c26b1c | [
"MIT"
] | null | null | null | midas_web_solution/midas_web_solution/settings/partials/__init__.py | jupiny/MIDASWebSolution | c6250bb7aeab815b3c759ae4f7b419da50c26b1c | [
"MIT"
] | null | null | null | from .base import *
from .auth import *
from .database import *
from .internationalization import *
from .static import *
| 20.333333 | 35 | 0.754098 | 15 | 122 | 6.133333 | 0.466667 | 0.434783 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163934 | 122 | 5 | 36 | 24.4 | 0.901961 | 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 |
0cbd869de506ee8107a10aad361faf43e451ed39 | 249 | py | Python | shell/encoders/shellcode/payloads.py | vasco2016/shellsploit-framework | 04eb4a0449acaba0b70c40a78c61a0d5e2527406 | [
"MIT"
] | 61 | 2017-06-13T13:48:38.000Z | 2022-03-02T17:43:45.000Z | shell/encoders/shellcode/payloads.py | T0mcat3r/shellsploit-framework | 04eb4a0449acaba0b70c40a78c61a0d5e2527406 | [
"MIT"
] | null | null | null | shell/encoders/shellcode/payloads.py | T0mcat3r/shellsploit-framework | 04eb4a0449acaba0b70c40a78c61a0d5e2527406 | [
"MIT"
] | 28 | 2017-08-15T05:38:27.000Z | 2020-12-31T03:39:38.000Z | class Encoders(object):
def __init__(self):
self.shellcode = [
"encoders/shellcode/intel/x86/xor86.py",
"encoders/shellcode/intel/x86/xor_b3m.py",
"encoders/shellcode/intel/x86/xor64.py",
]
def ret(self):
return len(self.shellcode) | 24.9 | 45 | 0.710843 | 34 | 249 | 5.058824 | 0.5 | 0.296512 | 0.383721 | 0.436047 | 0.313953 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050691 | 0.128514 | 249 | 10 | 46 | 24.9 | 0.741935 | 0 | 0 | 0 | 0 | 0 | 0.452 | 0.452 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0 | 0.111111 | 0.444444 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 6 |
0cf042e207fd15392632feb110390ec6dbc0c281 | 45 | py | Python | DotfilesLibrary/__init__.py | errose28/DotfilesLibrary | 6d0998abf0557b8963c4c9f908175c2a4b4b6c2f | [
"Apache-2.0"
] | null | null | null | DotfilesLibrary/__init__.py | errose28/DotfilesLibrary | 6d0998abf0557b8963c4c9f908175c2a4b4b6c2f | [
"Apache-2.0"
] | null | null | null | DotfilesLibrary/__init__.py | errose28/DotfilesLibrary | 6d0998abf0557b8963c4c9f908175c2a4b4b6c2f | [
"Apache-2.0"
] | null | null | null | from .DotfilesLibrary import DotfilesLibrary
| 22.5 | 44 | 0.888889 | 4 | 45 | 10 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088889 | 45 | 1 | 45 | 45 | 0.97561 | 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 |
0bbcb5e0031a4303d15e8acf2b7a3ec13543646a | 24 | py | Python | app/__init__.py | xiao-ming-team/xiao-ming | c2b40ab5e040f9f8d4125ba3a273346464613660 | [
"MIT"
] | null | null | null | app/__init__.py | xiao-ming-team/xiao-ming | c2b40ab5e040f9f8d4125ba3a273346464613660 | [
"MIT"
] | null | null | null | app/__init__.py | xiao-ming-team/xiao-ming | c2b40ab5e040f9f8d4125ba3a273346464613660 | [
"MIT"
] | null | null | null | from server import app
| 8 | 22 | 0.791667 | 4 | 24 | 4.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.208333 | 24 | 2 | 23 | 12 | 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 |
f07dbf3593f6463ed5edb09ad22ef1705f800e5c | 41 | py | Python | structure/__init__.py | NLP-Discourse-SoochowU/TDDiscourseParser | 2f9c7cef85c564c47b368ee4935caf1fad7c598d | [
"Apache-2.0"
] | 9 | 2020-11-24T01:16:01.000Z | 2022-01-26T09:37:00.000Z | structure/__init__.py | NLP-Discourse-SoochowU/TDDiscourseParser | 2f9c7cef85c564c47b368ee4935caf1fad7c598d | [
"Apache-2.0"
] | 2 | 2020-11-29T17:49:49.000Z | 2021-05-20T02:53:25.000Z | structure/__init__.py | NLP-Discourse-SoochowU/TDDiscourseParser | 2f9c7cef85c564c47b368ee4935caf1fad7c598d | [
"Apache-2.0"
] | 1 | 2022-01-26T11:00:33.000Z | 2022-01-26T11:00:33.000Z | # coding: UTF-8
from .nodes import *
| 10.25 | 21 | 0.609756 | 6 | 41 | 4.166667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033333 | 0.268293 | 41 | 3 | 22 | 13.666667 | 0.8 | 0.317073 | 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 |
b2b4feb6aedb4bb668dd1b25bed827e42fb5d120 | 21,550 | py | Python | certificate_validator/tests/test_resources.py | ludo/certificate-validator | ee22fbc1c429eeeabbc6feb56af661f24245691a | [
"MIT"
] | 1 | 2019-11-04T00:41:02.000Z | 2019-11-04T00:41:02.000Z | certificate_validator/tests/test_resources.py | NickolasHKraus/certificate-validator | 54b1b3c7dc908332a27146daa3b11d5b11d74075 | [
"MIT"
] | 8 | 2019-09-16T15:19:47.000Z | 2020-04-01T17:23:45.000Z | certificate_validator/tests/test_resources.py | NickolasHKraus/certificate-validator | 54b1b3c7dc908332a27146daa3b11d5b11d74075 | [
"MIT"
] | 4 | 2019-09-10T20:07:26.000Z | 2020-04-17T15:48:30.000Z | # -*- coding: utf-8 -*-
"""Tests for the `resources` module."""
from unittest.mock import call, patch
from botocore import exceptions
from certificate_validator import resources
from certificate_validator.resources import (
Action, Certificate, CertificateMixin, CertificateValidator
)
from .base import (
Ba... | 39.981447 | 79 | 0.598794 | 2,109 | 21,550 | 5.818397 | 0.072072 | 0.067802 | 0.06389 | 0.046451 | 0.855432 | 0.835221 | 0.803846 | 0.784614 | 0.764241 | 0.751772 | 0 | 0.013656 | 0.3 | 21,550 | 538 | 80 | 40.055762 | 0.799801 | 0.002599 | 0 | 0.625 | 0 | 0 | 0.181497 | 0.098474 | 0 | 0 | 0 | 0 | 0.131048 | 1 | 0.064516 | false | 0 | 0.010081 | 0 | 0.082661 | 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 |
b2d1f3a550b2bf3f7a5b243f9c82aa544f31470b | 10,554 | py | Python | views.py | Nixo-SK/api_ipf | 2dec798e60f3fd32d798a052b8bfd2449fcdd07b | [
"BSD-3-Clause"
] | null | null | null | views.py | Nixo-SK/api_ipf | 2dec798e60f3fd32d798a052b8bfd2449fcdd07b | [
"BSD-3-Clause"
] | null | null | null | views.py | Nixo-SK/api_ipf | 2dec798e60f3fd32d798a052b8bfd2449fcdd07b | [
"BSD-3-Clause"
] | null | null | null | from os import remove
from django.views.decorators.csrf import csrf_exempt
from django.core.files.storage import default_storage
from django.core.files.base import ContentFile
from rest_framework.decorators import api_view
from api_ipf.serializers import *
from api_ipf.helpers import *
@csrf_exempt
@api_view(['GET'... | 31.317507 | 78 | 0.666098 | 1,365 | 10,554 | 5.092308 | 0.132601 | 0.02719 | 0.028197 | 0.031794 | 0.78852 | 0.769386 | 0.746367 | 0.73083 | 0.707236 | 0.697454 | 0 | 0.015741 | 0.235551 | 10,554 | 336 | 79 | 31.410714 | 0.845811 | 0.016202 | 0 | 0.639752 | 0 | 0 | 0.051896 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.043478 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
b2ed9ee5fbe44761d1439d5292fe965a0871fee5 | 175 | py | Python | complex_number.py | fatihwin-yt/a-Python-Tutorial-of-2021 | 7d2110f80efdfa79437bf64f8edcd08ec3d61926 | [
"MIT"
] | 1 | 2021-03-29T02:29:58.000Z | 2021-03-29T02:29:58.000Z | complex_number.py | fatihwin-yt/a-Python-Tutorial-of-2021 | 7d2110f80efdfa79437bf64f8edcd08ec3d61926 | [
"MIT"
] | null | null | null | complex_number.py | fatihwin-yt/a-Python-Tutorial-of-2021 | 7d2110f80efdfa79437bf64f8edcd08ec3d61926 | [
"MIT"
] | 1 | 2021-03-27T15:00:06.000Z | 2021-03-27T15:00:06.000Z |
number_base = 0b100
print("100 binary: ",float_base)
number_base = 0o100
print("100 octal: ",float_base)
number_base = 0x100
print("100 hexadecimal: ",float_base)
| 17.5 | 38 | 0.708571 | 24 | 175 | 4.916667 | 0.458333 | 0.254237 | 0.254237 | 0.322034 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144828 | 0.171429 | 175 | 9 | 39 | 19.444444 | 0.668966 | 0 | 0 | 0 | 0 | 0 | 0.242424 | 0 | 0 | 0 | 0.030303 | 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 |
b2ee7bb9e1e534940d7b074131882e9a65dd526f | 7,315 | py | Python | tests/test_cache.py | Anagraph/tileserver | a8be93ea911ef5b6a9511e482af687971d18e6c6 | [
"MIT"
] | 69 | 2016-08-16T18:24:19.000Z | 2020-12-26T11:48:49.000Z | tests/test_cache.py | Anagraph/tileserver | a8be93ea911ef5b6a9511e482af687971d18e6c6 | [
"MIT"
] | 68 | 2016-06-27T17:51:05.000Z | 2020-10-05T15:40:35.000Z | tests/test_cache.py | Anagraph/tileserver | a8be93ea911ef5b6a9511e482af687971d18e6c6 | [
"MIT"
] | 29 | 2016-09-20T22:43:08.000Z | 2022-01-19T00:57:31.000Z | import unittest
class CacheHelperTests(unittest.TestCase):
def test_clean_empty_parent_dirs(self):
import os
from tileserver.cache import clean_empty_parent_dirs, mkdir_p
self.assertFalse(
os.path.exists('foo'),
'The test expects foo/ to not exist when it starts'
... | 31.12766 | 77 | 0.615174 | 907 | 7,315 | 4.762955 | 0.144432 | 0.061111 | 0.052778 | 0.085185 | 0.78287 | 0.764583 | 0.733565 | 0.703472 | 0.703472 | 0.684722 | 0 | 0.007029 | 0.299795 | 7,315 | 234 | 78 | 31.260684 | 0.836392 | 0.044156 | 0 | 0.740113 | 0 | 0 | 0.059135 | 0.012027 | 0 | 0 | 0 | 0 | 0.056497 | 1 | 0.090395 | false | 0.022599 | 0.158192 | 0.00565 | 0.288136 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
651f9572dafd9699ea991ce13877017ccc6e7728 | 159 | py | Python | apps/lightrfp/admin.py | ExpoAshique/ProveBanking__s | f0b45fffea74d00d14014be27aa50fe5f42f6903 | [
"MIT"
] | null | null | null | apps/lightrfp/admin.py | ExpoAshique/ProveBanking__s | f0b45fffea74d00d14014be27aa50fe5f42f6903 | [
"MIT"
] | null | null | null | apps/lightrfp/admin.py | ExpoAshique/ProveBanking__s | f0b45fffea74d00d14014be27aa50fe5f42f6903 | [
"MIT"
] | null | null | null | from django.contrib import admin
from vendors.models import RFP, Bid, Message
admin.site.register(RFP)
admin.site.register(Bid)
admin.site.register(Message)
| 19.875 | 44 | 0.805031 | 24 | 159 | 5.333333 | 0.5 | 0.210938 | 0.398438 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09434 | 159 | 7 | 45 | 22.714286 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
6533d6d260f2cb20d2e8eb1f586de91c458977e4 | 31 | py | Python | Game.py | MerhuBerahu/Python-RPG | 0f573efc051dce1448209d9701269df9e8058f22 | [
"MIT"
] | null | null | null | Game.py | MerhuBerahu/Python-RPG | 0f573efc051dce1448209d9701269df9e8058f22 | [
"MIT"
] | null | null | null | Game.py | MerhuBerahu/Python-RPG | 0f573efc051dce1448209d9701269df9e8058f22 | [
"MIT"
] | null | null | null | from characterCreation import * | 31 | 31 | 0.870968 | 3 | 31 | 9 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096774 | 31 | 1 | 31 | 31 | 0.964286 | 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 |
6538f70a5b06efdd4eeac58218deab5303d882c8 | 137 | py | Python | xfel/metrology/__init__.py | rimmartin/cctbx_project | 644090f9432d9afc22cfb542fc3ab78ca8e15e5d | [
"BSD-3-Clause-LBNL"
] | null | null | null | xfel/metrology/__init__.py | rimmartin/cctbx_project | 644090f9432d9afc22cfb542fc3ab78ca8e15e5d | [
"BSD-3-Clause-LBNL"
] | null | null | null | xfel/metrology/__init__.py | rimmartin/cctbx_project | 644090f9432d9afc22cfb542fc3ab78ca8e15e5d | [
"BSD-3-Clause-LBNL"
] | null | null | null | from __future__ import division
import boost.python
ext = boost.python.import_ext("xfel_metrology_ext")
from xfel_metrology_ext import *
| 27.4 | 51 | 0.839416 | 20 | 137 | 5.3 | 0.45 | 0.207547 | 0.301887 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094891 | 137 | 4 | 52 | 34.25 | 0.854839 | 0 | 0 | 0 | 0 | 0 | 0.131387 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
654455b8cd5ada0238c866fedfafea358ce5fee8 | 47 | py | Python | src_files/models/swin/__init__.py | likelyzhao/ImageNet21K | cc92808db537836f3c085db9f22dec668d242c77 | [
"MIT"
] | null | null | null | src_files/models/swin/__init__.py | likelyzhao/ImageNet21K | cc92808db537836f3c085db9f22dec668d242c77 | [
"MIT"
] | null | null | null | src_files/models/swin/__init__.py | likelyzhao/ImageNet21K | cc92808db537836f3c085db9f22dec668d242c77 | [
"MIT"
] | null | null | null | from .build import build_swin_transformer_model | 47 | 47 | 0.914894 | 7 | 47 | 5.714286 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06383 | 47 | 1 | 47 | 47 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
e8f7d4b6294efc58d2c4e5c6b4e321b28c06a82b | 32 | py | Python | easy_python/__init__.py | PinaYTTT/easy_python | e7ca0d08c808b493d7fd5a95967b7ad19160fd6e | [
"MIT"
] | null | null | null | easy_python/__init__.py | PinaYTTT/easy_python | e7ca0d08c808b493d7fd5a95967b7ad19160fd6e | [
"MIT"
] | null | null | null | easy_python/__init__.py | PinaYTTT/easy_python | e7ca0d08c808b493d7fd5a95967b7ad19160fd6e | [
"MIT"
] | null | null | null | from easy_python.easy import *
| 10.666667 | 30 | 0.78125 | 5 | 32 | 4.8 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15625 | 32 | 2 | 31 | 16 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
336d95374775c3363814edd03f0e7909b053eda3 | 394 | py | Python | discoveryservice/registry.py | pwgn/microtut | cd4e843806570affdfe11e0ce219269417bc8bde | [
"MIT"
] | null | null | null | discoveryservice/registry.py | pwgn/microtut | cd4e843806570affdfe11e0ce219269417bc8bde | [
"MIT"
] | null | null | null | discoveryservice/registry.py | pwgn/microtut | cd4e843806570affdfe11e0ce219269417bc8bde | [
"MIT"
] | null | null | null |
class Registry():
def __init__(self):
self.services = {}
def get_service(self, service_id):
return self.services[service_id]
def list_services(self):
return self.services
def register_service(self, service_id, service):
self.services[service_id] = service
def de... | 21.888889 | 52 | 0.667513 | 48 | 394 | 5.1875 | 0.291667 | 0.216867 | 0.216867 | 0.240964 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.236041 | 394 | 17 | 53 | 23.176471 | 0.827243 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.454545 | false | 0 | 0 | 0.181818 | 0.727273 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
68268feb1e632499967805aabe4ec394521c37d6 | 46 | py | Python | application/imagenet_example/PTQ/ptq/models/layer/__init__.py | www516717402/MQBench | 8519ae6db18c3d09ec5dcc50a7e76349738ee819 | [
"Apache-2.0"
] | 179 | 2021-09-22T08:44:51.000Z | 2022-03-31T08:09:43.000Z | application/imagenet_example/PTQ/ptq/models/layer/__init__.py | www516717402/MQBench | 8519ae6db18c3d09ec5dcc50a7e76349738ee819 | [
"Apache-2.0"
] | 46 | 2021-09-29T03:04:30.000Z | 2022-03-31T11:53:23.000Z | application/imagenet_example/PTQ/ptq/models/layer/__init__.py | www516717402/MQBench | 8519ae6db18c3d09ec5dcc50a7e76349738ee819 | [
"Apache-2.0"
] | 42 | 2021-09-24T16:08:26.000Z | 2022-03-30T10:21:34.000Z | from .drop_path import DropPath # noqa: F401
| 23 | 45 | 0.76087 | 7 | 46 | 4.857143 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078947 | 0.173913 | 46 | 1 | 46 | 46 | 0.815789 | 0.217391 | 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 |
6839f3233081471702662731c7c0eac8c1e85e3b | 79 | py | Python | fuel_additive/errors.py | skdong/fuel-additive | a0ce9516ee7510a1ed02264a775cb50b35b84b48 | [
"Apache-2.0"
] | null | null | null | fuel_additive/errors.py | skdong/fuel-additive | a0ce9516ee7510a1ed02264a775cb50b35b84b48 | [
"Apache-2.0"
] | null | null | null | fuel_additive/errors.py | skdong/fuel-additive | a0ce9516ee7510a1ed02264a775cb50b35b84b48 | [
"Apache-2.0"
] | null | null | null | from fuel_agent import errors
class ReopTypeError(errors.BaseError):
pass | 15.8 | 38 | 0.797468 | 10 | 79 | 6.2 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151899 | 79 | 5 | 39 | 15.8 | 0.925373 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.333333 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 6 |
6870ff1781737ed500e3267674788a96bd8730cd | 7,413 | py | Python | tests/preprocessing/test_bam.py | aristoteleo/dynast-release | b676c7075b2907ebce7833dd668f32bc1c60d08e | [
"MIT"
] | 7 | 2021-04-03T16:36:17.000Z | 2022-03-15T21:27:41.000Z | tests/preprocessing/test_bam.py | aristoteleo/dynast-release | b676c7075b2907ebce7833dd668f32bc1c60d08e | [
"MIT"
] | 5 | 2021-04-28T15:25:45.000Z | 2021-12-09T00:05:07.000Z | tests/preprocessing/test_bam.py | aristoteleo/dynast-release | b676c7075b2907ebce7833dd668f32bc1c60d08e | [
"MIT"
] | 3 | 2021-04-03T23:38:32.000Z | 2022-03-03T11:06:17.000Z | import os
from unittest import mock, TestCase
import pandas as pd
import dynast.preprocessing.bam as bam
import dynast.utils as utils
from .. import mixins
class TestBam(mixins.TestMixin, TestCase):
@classmethod
def setUpClass(cls):
super(TestBam, cls).setUpClass()
cls.gene_infos = utils.r... | 48.769737 | 114 | 0.517065 | 702 | 7,413 | 5.155271 | 0.125356 | 0.085106 | 0.048632 | 0.046422 | 0.844432 | 0.812103 | 0.812103 | 0.785023 | 0.763747 | 0.73722 | 0 | 0.000902 | 0.401996 | 7,413 | 151 | 115 | 49.092715 | 0.815475 | 0 | 0 | 0.7 | 0 | 0 | 0.071226 | 0.032376 | 0 | 0 | 0 | 0 | 0.123077 | 1 | 0.069231 | false | 0 | 0.046154 | 0 | 0.123077 | 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 |
d7a577a6cf4b8d9cc92730e9f2fdba499e0ca5ef | 118 | py | Python | handleExcel/exportor/scripts/xlrd-1.0.0/tests/base.py | Jack301/toolkit | 2d1e37a36281af7722be93d4d5299c1ce8b7f365 | [
"MIT"
] | 95 | 2016-09-30T02:55:26.000Z | 2022-01-12T05:47:30.000Z | handleExcel/exportor/scripts/xlrd-1.0.0/tests/base.py | Jack301/toolkit | 2d1e37a36281af7722be93d4d5299c1ce8b7f365 | [
"MIT"
] | 5 | 2019-06-27T19:02:18.000Z | 2019-08-07T07:16:49.000Z | handleExcel/exportor/scripts/xlrd-1.0.0/tests/base.py | Jack301/toolkit | 2d1e37a36281af7722be93d4d5299c1ce8b7f365 | [
"MIT"
] | 32 | 2017-03-28T06:45:09.000Z | 2021-12-21T10:33:10.000Z | import os
def from_this_dir(filename):
return os.path.join(os.path.dirname(os.path.abspath(__file__)), filename)
| 23.6 | 77 | 0.762712 | 19 | 118 | 4.421053 | 0.684211 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.101695 | 118 | 4 | 78 | 29.5 | 0.792453 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 6 |
d7f3233648860c6fa3057bff030483c47d61281c | 10,509 | py | Python | misc/machinelearningbootcamp/day1/visplots.py | tmjnow/MoocX | 52c8450ff7ecc8450a8adc2457233d5777a3d5bb | [
"MIT"
] | 7 | 2017-06-13T05:24:15.000Z | 2022-01-09T01:10:28.000Z | misc/machinelearningbootcamp/day1/visplots.py | tmjnow/MoocX | 52c8450ff7ecc8450a8adc2457233d5777a3d5bb | [
"MIT"
] | 11 | 2017-05-08T23:30:50.000Z | 2017-06-24T21:57:42.000Z | misc/machinelearningbootcamp/day1/visplots.py | kinshuk4/MoocX | 52c8450ff7ecc8450a8adc2457233d5777a3d5bb | [
"MIT"
] | 4 | 2017-10-05T12:56:53.000Z | 2020-06-14T17:01:32.000Z | import numpy as np
import plotly.graph_objs as go
from plotly.graph_objs import *
from plotly.offline import download_plotlyjs, init_notebook_mode, iplot
from sklearn.neighbors import KNeighborsClassifier
from sklearn.ensemble import RandomForestClassifier
from sklearn.tree import DecisionTreeClassifier
from sklearn i... | 26.537879 | 92 | 0.473118 | 1,235 | 10,509 | 3.978947 | 0.138462 | 0.043956 | 0.039683 | 0.043956 | 0.771266 | 0.750712 | 0.738909 | 0.738909 | 0.731787 | 0.728124 | 0 | 0.059132 | 0.382053 | 10,509 | 395 | 93 | 26.605063 | 0.697567 | 0.07622 | 0 | 0.767584 | 0 | 0 | 0.071288 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012232 | false | 0 | 0.024465 | 0 | 0.036697 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
cc262d9686e78479c36b780e4aa5e3ad0f970cf5 | 187 | py | Python | gbbox/__init__.py | Luqqk/geojson_bbox | 9a3215b8044f8489f58fea066365b19c6f67f3c8 | [
"MIT"
] | 5 | 2018-11-15T09:39:32.000Z | 2022-02-13T14:10:39.000Z | gbbox/__init__.py | Luqqk/geojson_bbox | 9a3215b8044f8489f58fea066365b19c6f67f3c8 | [
"MIT"
] | null | null | null | gbbox/__init__.py | Luqqk/geojson_bbox | 9a3215b8044f8489f58fea066365b19c6f67f3c8 | [
"MIT"
] | null | null | null | from .objects import (
Point,
LineString,
MultiLineString,
Polygon,
GeometryCollection,
)
__all__ = [Point, LineString, MultiLineString, Polygon, GeometryCollection]
| 18.7 | 75 | 0.716578 | 14 | 187 | 9.285714 | 0.642857 | 0.230769 | 0.461538 | 0.569231 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.203209 | 187 | 9 | 76 | 20.777778 | 0.872483 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
0408054b32c25e7b418f770c685f219abacc06f0 | 26 | py | Python | funniest/__init__.py | dmartinalbo/testing-travisci | 46253b7a980935da3d966e13d658913a719c65ce | [
"MIT"
] | null | null | null | funniest/__init__.py | dmartinalbo/testing-travisci | 46253b7a980935da3d966e13d658913a719c65ce | [
"MIT"
] | null | null | null | funniest/__init__.py | dmartinalbo/testing-travisci | 46253b7a980935da3d966e13d658913a719c65ce | [
"MIT"
] | 2 | 2020-05-18T09:25:06.000Z | 2020-05-18T09:26:28.000Z | from funniest import joke
| 13 | 25 | 0.846154 | 4 | 26 | 5.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 26 | 1 | 26 | 26 | 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 |
f097d3fe4274893cd45b76b4e8b96b4da65698f6 | 29 | py | Python | python/submodules/foo/bar/__init__.py | robotlightsyou/test | 015f13943fc402d8ce86c5f6d2f5a7d032b3340a | [
"MIT"
] | 2 | 2019-05-26T15:09:34.000Z | 2021-09-12T08:01:23.000Z | python/submodules/foo/bar/__init__.py | robotlightsyou/test | 015f13943fc402d8ce86c5f6d2f5a7d032b3340a | [
"MIT"
] | null | null | null | python/submodules/foo/bar/__init__.py | robotlightsyou/test | 015f13943fc402d8ce86c5f6d2f5a7d032b3340a | [
"MIT"
] | 1 | 2021-04-11T20:28:21.000Z | 2021-04-11T20:28:21.000Z | print('foo/bar/__init__.py')
| 14.5 | 28 | 0.724138 | 5 | 29 | 3.4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 29 | 1 | 29 | 29 | 0.607143 | 0 | 0 | 0 | 0 | 0 | 0.655172 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
f0a2f8287f665e877a416bdd9fe7a8e5755b5266 | 89,518 | py | Python | dev/Gems/CloudGemFramework/v1/AWS/lambda-code/ProjectResourceHandler/test/test_AccessControlResourceHandler.py | stickyparticles/lumberyard | dc523dd780f3cd1874251181b7cf6848b8db9959 | [
"AML"
] | 2 | 2018-03-29T10:56:36.000Z | 2020-12-12T15:28:14.000Z | dev/Gems/CloudGemFramework/v1/AWS/lambda-code/ProjectResourceHandler/test/test_AccessControlResourceHandler.py | JulianoCristian/Lumberyard-3 | dc523dd780f3cd1874251181b7cf6848b8db9959 | [
"AML"
] | null | null | null | dev/Gems/CloudGemFramework/v1/AWS/lambda-code/ProjectResourceHandler/test/test_AccessControlResourceHandler.py | JulianoCristian/Lumberyard-3 | dc523dd780f3cd1874251181b7cf6848b8db9959 | [
"AML"
] | 3 | 2019-05-13T09:41:33.000Z | 2021-04-09T12:12:38.000Z | #
# All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
# its licensors.
#
# For complete copyright and license terms please see the LICENSE at the root of this
# distribution (the "License"). All use of this software is governed by the License,
# or, if provided, by the license below or th... | 42.668255 | 212 | 0.731663 | 10,044 | 89,518 | 5.993927 | 0.023994 | 0.045048 | 0.041726 | 0.015547 | 0.929322 | 0.895171 | 0.85308 | 0.819311 | 0.796007 | 0.761557 | 0 | 0.006529 | 0.195815 | 89,518 | 2,097 | 213 | 42.688603 | 0.829752 | 0.007775 | 0 | 0.650424 | 0 | 0 | 0.084509 | 0.050582 | 0 | 0 | 0 | 0 | 0.140537 | 1 | 0.064972 | false | 0 | 0.004944 | 0 | 0.121469 | 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 |
f0cf43b1bfeb034c667c5eb3208966a2d0e977e6 | 13,060 | py | Python | src/Components/misc/dee/dee_mm.py | GEOS-ESM/AeroApps | 874dad6f34420c014d98eccbe81a061bdc0110cf | [
"NASA-1.3",
"ECL-2.0",
"Apache-2.0"
] | 2 | 2020-12-02T14:23:30.000Z | 2021-12-31T15:39:30.000Z | src/Components/misc/dee/dee_mm.py | GEOS-ESM/AeroApps | 874dad6f34420c014d98eccbe81a061bdc0110cf | [
"NASA-1.3",
"ECL-2.0",
"Apache-2.0"
] | 9 | 2020-04-15T16:22:14.000Z | 2022-03-24T13:59:25.000Z | src/Components/misc/dee/dee_mm.py | GEOS-ESM/AeroApps | 874dad6f34420c014d98eccbe81a061bdc0110cf | [
"NASA-1.3",
"ECL-2.0",
"Apache-2.0"
] | null | null | null | """
Implements direct emission estimates based on MODIS Deep Blue C6
retrievals.
"""
import os
import sys
from numpy import linspace, array, savez
from glob import glob
from datetime import datetime, timedelta
from string import Template
from grads import GrADS
from grads.gacore import gat2dt, d... | 30.161663 | 124 | 0.474502 | 1,530 | 13,060 | 4.019608 | 0.122222 | 0.019512 | 0.049431 | 0.067967 | 0.800813 | 0.774634 | 0.741138 | 0.694634 | 0.683252 | 0.683252 | 0 | 0.030278 | 0.34755 | 13,060 | 432 | 125 | 30.231481 | 0.691468 | 0.048009 | 0 | 0.727273 | 0 | 0.031818 | 0.460432 | 0.071343 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.040909 | null | null | 0.063636 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
502fbf0fa248310e0b8337f235ed60c86a9f7db9 | 2,815 | py | Python | nxstart/app.py | roedesh/nxstart | ad1470aeae865270267322e265669f38945e268a | [
"MIT"
] | 40 | 2018-06-19T02:28:00.000Z | 2021-11-14T20:00:34.000Z | nxstart/app.py | roedesh/nxstart | ad1470aeae865270267322e265669f38945e268a | [
"MIT"
] | 2 | 2018-06-19T09:49:36.000Z | 2018-12-02T13:14:26.000Z | nxstart/app.py | roedesh/nxstart | ad1470aeae865270267322e265669f38945e268a | [
"MIT"
] | 4 | 2018-06-19T09:19:29.000Z | 2020-03-31T14:35:12.000Z | # -*- coding: utf-8 -*-
"""Defines the logic for the commands."""
import click
from nxstart import filebuilder
from nxstart.utils.files import check_and_create_directory
from nxstart.utils.strings import generate_folder_name_and_path
def libnx(name, author, clion, cwd):
"""
Function that holds the logic fo... | 31.277778 | 77 | 0.741385 | 378 | 2,815 | 5.285714 | 0.145503 | 0.1001 | 0.036036 | 0.08008 | 0.837337 | 0.824825 | 0.824825 | 0.824825 | 0.824825 | 0.824825 | 0 | 0.000432 | 0.17762 | 2,815 | 89 | 78 | 31.629213 | 0.862635 | 0.267496 | 0 | 0.555556 | 0 | 0 | 0.084536 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
50422835b87e701a6948c725f969b9c9a71362b4 | 8,456 | py | Python | tests/locations/market_groups.py | cmutel/Ocelot | 20e9639570c43f84ae255750a6c402ebabe00981 | [
"BSD-3-Clause"
] | 21 | 2016-06-01T14:10:07.000Z | 2022-02-28T01:56:31.000Z | tests/locations/market_groups.py | cmutel/Ocelot | 20e9639570c43f84ae255750a6c402ebabe00981 | [
"BSD-3-Clause"
] | 152 | 2016-05-16T21:33:22.000Z | 2019-06-24T12:57:14.000Z | tests/locations/market_groups.py | cmutel/Ocelot | 20e9639570c43f84ae255750a6c402ebabe00981 | [
"BSD-3-Clause"
] | 12 | 2016-09-05T15:35:59.000Z | 2021-07-03T19:28:47.000Z | # -*- coding: utf-8 -*-
from ocelot.transformations.locations.market_groups import *
from ocelot.errors import MarketGroupError
import pytest
class FakeTopology:
def tree(self, data):
return {
'G1': {
'G2': {'M1': {}},
'M2': {}
}
}
def o... | 30.861314 | 90 | 0.500946 | 825 | 8,456 | 5.044848 | 0.122424 | 0.184527 | 0.114128 | 0.126862 | 0.773667 | 0.773667 | 0.743633 | 0.722009 | 0.712398 | 0.712398 | 0 | 0.004264 | 0.306646 | 8,456 | 273 | 91 | 30.974359 | 0.705611 | 0.019276 | 0 | 0.8 | 0 | 0 | 0.346084 | 0 | 0 | 0 | 0 | 0 | 0.02 | 1 | 0.052 | false | 0 | 0.012 | 0.008 | 0.108 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
506331e243ba95a6d9e178d02dc8bd6d28189763 | 71 | py | Python | tests/compat.py | MountainChenCad/First | 9dd75efc9d989df17eba2b4865e837428cf033f4 | [
"CC0-1.0"
] | 827 | 2019-04-18T12:27:41.000Z | 2020-02-22T15:26:18.000Z | tests/compat.py | MountainChenCad/First | 9dd75efc9d989df17eba2b4865e837428cf033f4 | [
"CC0-1.0"
] | 3 | 2019-04-19T15:33:13.000Z | 2020-01-11T05:48:10.000Z | tests/compat.py | MountainChenCad/First | 9dd75efc9d989df17eba2b4865e837428cf033f4 | [
"CC0-1.0"
] | 34 | 2019-04-18T18:09:37.000Z | 2020-01-11T05:42:42.000Z | # -*- coding: utf-8 -*-
import io as StringIO
def u(s):
return s
| 10.142857 | 23 | 0.56338 | 12 | 71 | 3.333333 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019231 | 0.267606 | 71 | 6 | 24 | 11.833333 | 0.75 | 0.295775 | 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 |
ac97dff11b6f54bb06028f8443698bce4efbf45d | 6,249 | py | Python | train_quantized_CIFAR10.py | BatyrM/QL-Net | b245aadeb106810d075064137f26d773b2dbd679 | [
"MIT"
] | null | null | null | train_quantized_CIFAR10.py | BatyrM/QL-Net | b245aadeb106810d075064137f26d773b2dbd679 | [
"MIT"
] | null | null | null | train_quantized_CIFAR10.py | BatyrM/QL-Net | b245aadeb106810d075064137f26d773b2dbd679 | [
"MIT"
] | null | null | null | from __future__ import print_function
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
from torchvision import datasets, transforms
from load_data import get_data
from vgg_quantized import VGG
from train_utils_quantized_CIFAR10 import train, test
from ... | 39.802548 | 127 | 0.694511 | 928 | 6,249 | 4.498922 | 0.115302 | 0.038323 | 0.062275 | 0.037365 | 0.825629 | 0.779641 | 0.779641 | 0.761437 | 0.746826 | 0.743952 | 0 | 0.045377 | 0.157145 | 6,249 | 156 | 128 | 40.057692 | 0.747294 | 0.021443 | 0 | 0.585366 | 0 | 0 | 0.110784 | 0.018 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.089431 | 0 | 0.089431 | 0.162602 | 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 |
acca0a08c67b62b932dc8abd4819eb5c8d264fb6 | 7,801 | py | Python | causaleffect.py | WanyuGroup/CVPR2022-OrphicX | 98d8d8259439c45661573e575cf956331df16abc | [
"MIT"
] | null | null | null | causaleffect.py | WanyuGroup/CVPR2022-OrphicX | 98d8d8259439c45661573e575cf956331df16abc | [
"MIT"
] | null | null | null | causaleffect.py | WanyuGroup/CVPR2022-OrphicX | 98d8d8259439c45661573e575cf956331df16abc | [
"MIT"
] | null | null | null | import numpy as np
import torch
import torch.nn.functional as F
"""
joint_uncond:
Sample-based estimate of "joint, unconditional" causal effect, -I(alpha; Yhat).
Inputs:
- params['Nalpha'] monte-carlo samples per causal factor
- params['Nbeta'] monte-carlo samples per noncausal factor
- params['K'] ... | 42.167568 | 214 | 0.588002 | 1,150 | 7,801 | 3.92 | 0.1 | 0.073203 | 0.067879 | 0.086735 | 0.800133 | 0.766415 | 0.747338 | 0.706965 | 0.644188 | 0.636424 | 0 | 0.018924 | 0.220997 | 7,801 | 185 | 215 | 42.167568 | 0.72289 | 0.166389 | 0 | 0.735849 | 0 | 0 | 0.050734 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028302 | false | 0 | 0.028302 | 0 | 0.09434 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
acf1baa7c183794c174af5cb75f202ea0cf6a7b2 | 81 | py | Python | hackerRank/Problem Solving/Data Structures/Arrays/leftRotation.py | paritoshtripathi935/laughing-disco | 3ee690fba469b1e07846af5c85b1dd8675656520 | [
"MIT"
] | 4 | 2021-12-09T06:44:24.000Z | 2021-12-24T08:09:19.000Z | hackerRank/Problem Solving/Data Structures/Arrays/leftRotation.py | paritoshtripathi935/laughing-disco | 3ee690fba469b1e07846af5c85b1dd8675656520 | [
"MIT"
] | null | null | null | hackerRank/Problem Solving/Data Structures/Arrays/leftRotation.py | paritoshtripathi935/laughing-disco | 3ee690fba469b1e07846af5c85b1dd8675656520 | [
"MIT"
] | null | null | null | def rotateLeft(d, arr):
# Write your code here
return arr[d:] + arr[: d]
| 20.25 | 29 | 0.592593 | 13 | 81 | 3.692308 | 0.692308 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.259259 | 81 | 3 | 30 | 27 | 0.8 | 0.246914 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
acfeb68ee745d3d7d7b1986e54c5c55737c943b0 | 9,787 | py | Python | autoarray/plot/imaging_plots.py | Sketos/PyAutoArray | 72dc7e8d1c38786915f82a7e7284239e5ce87624 | [
"MIT"
] | null | null | null | autoarray/plot/imaging_plots.py | Sketos/PyAutoArray | 72dc7e8d1c38786915f82a7e7284239e5ce87624 | [
"MIT"
] | null | null | null | autoarray/plot/imaging_plots.py | Sketos/PyAutoArray | 72dc7e8d1c38786915f82a7e7284239e5ce87624 | [
"MIT"
] | null | null | null | from autoarray.plot import plotters
@plotters.set_include_and_sub_plotter
@plotters.set_subplot_filename
def subplot_imaging(
imaging, grid=None, mask=None, positions=None, include=None, sub_plotter=None
):
"""Plot the imaging data_type as a sub-plotters of all its quantites (e.g. the dataset, noise_map-map, ... | 31.775974 | 134 | 0.697047 | 1,293 | 9,787 | 5.073473 | 0.089714 | 0.05122 | 0.049543 | 0.060976 | 0.902439 | 0.873933 | 0.853049 | 0.847561 | 0.841768 | 0.809756 | 0 | 0.000914 | 0.21784 | 9,787 | 307 | 135 | 31.879479 | 0.856042 | 0.442832 | 0 | 0.590062 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.049689 | false | 0 | 0.006211 | 0 | 0.055901 | 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 |
4a11f01759ae0b785f550c0bd4335ba56b57d615 | 30,120 | py | Python | networking_oneview/tests/unit/ml2/drivers/oneview/test_oneview_mech_driver.py | HewlettPackard/networking-oneview | 21881596eeb39565a027022921d4ec4f71e3278b | [
"Apache-2.0"
] | 6 | 2018-02-02T17:37:15.000Z | 2018-09-20T14:06:16.000Z | networking_oneview/tests/unit/ml2/drivers/oneview/test_oneview_mech_driver.py | HewlettPackard/networking-oneview | 21881596eeb39565a027022921d4ec4f71e3278b | [
"Apache-2.0"
] | 18 | 2018-02-06T14:54:22.000Z | 2018-02-27T13:34:37.000Z | networking_oneview/tests/unit/ml2/drivers/oneview/test_oneview_mech_driver.py | HewlettPackard/networking-oneview | 21881596eeb39565a027022921d4ec4f71e3278b | [
"Apache-2.0"
] | 2 | 2020-04-28T14:36:12.000Z | 2020-07-22T13:09:44.000Z | # Copyright 2017 Hewlett Packard Enterprise Development LP.
# Copyright 2017 Universidade Federal de Campina Grande
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the Licens... | 41.717452 | 79 | 0.7 | 3,511 | 30,120 | 5.615494 | 0.077186 | 0.029925 | 0.03804 | 0.057162 | 0.832217 | 0.805995 | 0.793467 | 0.767143 | 0.760854 | 0.757202 | 0 | 0.005213 | 0.203884 | 30,120 | 721 | 80 | 41.775312 | 0.817007 | 0.039475 | 0 | 0.643697 | 0 | 0 | 0.129013 | 0.050097 | 0 | 0 | 0 | 0 | 0.131092 | 1 | 0.053782 | false | 0 | 0.013445 | 0 | 0.07395 | 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 |
4a140847022acc877c91c0d1da4231daad62b057 | 5,266 | py | Python | tests/report_tests/test_image_report.py | chainer/chainerui | 91c5c26d9154a008079dbb0bcbf69b5590d105f7 | [
"MIT"
] | 185 | 2017-12-15T09:24:07.000Z | 2022-01-20T11:20:13.000Z | tests/report_tests/test_image_report.py | chainer/chainerui | 91c5c26d9154a008079dbb0bcbf69b5590d105f7 | [
"MIT"
] | 191 | 2017-12-15T09:14:52.000Z | 2022-02-17T14:09:19.000Z | tests/report_tests/test_image_report.py | chainer/chainerui | 91c5c26d9154a008079dbb0bcbf69b5590d105f7 | [
"MIT"
] | 29 | 2017-12-15T09:40:45.000Z | 2022-03-13T11:21:11.000Z | import os
import unittest
import warnings
import numpy as np
import pytest
import six
try:
import chainer # NOQA
_chainer_installed = True
except (ImportError, TypeError):
_chainer_installed = False
if _chainer_installed:
from chainerui.report import image_report
_image_report_available = image_... | 34.644737 | 78 | 0.707938 | 771 | 5,266 | 4.625162 | 0.12192 | 0.111049 | 0.067302 | 0.070107 | 0.843803 | 0.819686 | 0.775659 | 0.738082 | 0.736399 | 0.736399 | 0 | 0.024018 | 0.177744 | 5,266 | 151 | 79 | 34.874172 | 0.799538 | 0.00076 | 0 | 0.54918 | 0 | 0 | 0.086692 | 0 | 0 | 0 | 0 | 0 | 0.245902 | 1 | 0.106557 | false | 0 | 0.090164 | 0 | 0.196721 | 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 |
4a218f52365e29e103e58f6de516129bd07d1003 | 22,705 | py | Python | ninjalooter/tests/test_message_handlers.py | rm-you/ninjalooter | 026b0e732964d62721b84c7ae64d418bfe1e2975 | [
"MIT"
] | 4 | 2020-08-30T12:57:03.000Z | 2022-03-18T15:11:13.000Z | ninjalooter/tests/test_message_handlers.py | rm-you/ninjalooter | 026b0e732964d62721b84c7ae64d418bfe1e2975 | [
"MIT"
] | 5 | 2022-01-07T03:17:32.000Z | 2022-03-27T21:20:12.000Z | ninjalooter/tests/test_message_handlers.py | rm-you/ninjalooter | 026b0e732964d62721b84c7ae64d418bfe1e2975 | [
"MIT"
] | 1 | 2021-12-28T02:18:04.000Z | 2021-12-28T02:18:04.000Z | import datetime
from unittest import mock
from ninjalooter import config
from ninjalooter import message_handlers
from ninjalooter import models
from ninjalooter.tests import base
from ninjalooter import utils
class TestMessageHandlers(base.NLTestBase):
def setUp(self) -> None:
utils.setup_aho()
... | 45.961538 | 77 | 0.638494 | 2,839 | 22,705 | 4.915463 | 0.096513 | 0.025797 | 0.04192 | 0.027947 | 0.82938 | 0.8043 | 0.780867 | 0.7555 | 0.732139 | 0.709065 | 0 | 0.036292 | 0.253645 | 22,705 | 493 | 78 | 46.054767 | 0.787206 | 0.131997 | 0 | 0.683377 | 0 | 0.005277 | 0.179217 | 0.008859 | 0 | 0 | 0 | 0 | 0.253298 | 1 | 0.01847 | false | 0 | 0.01847 | 0 | 0.039578 | 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 |
c5877e0b37db69eb7dfe1ccefbbd4ca476b69f11 | 156 | py | Python | api/admin.py | dylankershaw/robin | 72cebe0e18c611384a19f8cba2b8980d39cc8bc9 | [
"MIT"
] | null | null | null | api/admin.py | dylankershaw/robin | 72cebe0e18c611384a19f8cba2b8980d39cc8bc9 | [
"MIT"
] | 2 | 2020-02-11T23:38:46.000Z | 2020-04-30T03:15:04.000Z | api/admin.py | dylankershaw/robin | 72cebe0e18c611384a19f8cba2b8980d39cc8bc9 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Intent, Phrase, User
admin.site.register(Intent)
admin.site.register(Phrase)
admin.site.register(User) | 26 | 40 | 0.814103 | 23 | 156 | 5.521739 | 0.478261 | 0.212598 | 0.401575 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 156 | 6 | 41 | 26 | 0.888112 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
c59cc51e35c9b46c67c574f9d7226c58c55494b7 | 68 | py | Python | roppy/misc/__init__.py | bee-san/roppy | 8c957fd4a49f8f4ffdcc539ced17a63e12a0dd10 | [
"MIT"
] | 1 | 2021-12-22T16:06:11.000Z | 2021-12-22T16:06:11.000Z | roppy/misc/__init__.py | bee-san/roppy | 8c957fd4a49f8f4ffdcc539ced17a63e12a0dd10 | [
"MIT"
] | null | null | null | roppy/misc/__init__.py | bee-san/roppy | 8c957fd4a49f8f4ffdcc539ced17a63e12a0dd10 | [
"MIT"
] | null | null | null | from .packing import *
from .utils import *
from .pattern import * | 22.666667 | 22 | 0.720588 | 9 | 68 | 5.444444 | 0.555556 | 0.408163 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191176 | 68 | 3 | 23 | 22.666667 | 0.890909 | 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 |
c5c046464f387a9126f0c6b864b89704c2cdb2fc | 93 | py | Python | scripts/build.py | digitalinteraction/appmovement | 570c1b36b351a859aa542073699b86c237f62641 | [
"BSD-3-Clause",
"MIT"
] | 3 | 2017-07-27T08:54:24.000Z | 2018-10-17T15:50:45.000Z | scripts/build.py | digitalinteraction/appmovement | 570c1b36b351a859aa542073699b86c237f62641 | [
"BSD-3-Clause",
"MIT"
] | null | null | null | scripts/build.py | digitalinteraction/appmovement | 570c1b36b351a859aa542073699b86c237f62641 | [
"BSD-3-Clause",
"MIT"
] | null | null | null | import os
import sys
os.system("sudo apidoc -i ../app/Controller/Templates/ -o ../apidoc/")
| 18.6 | 70 | 0.698925 | 14 | 93 | 4.642857 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11828 | 93 | 4 | 71 | 23.25 | 0.792683 | 0 | 0 | 0 | 0 | 0 | 0.612903 | 0.301075 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
c5c066745e12a27195e1531b0e2e824e8ff5d23a | 4,185 | py | Python | release_planning/tests/when_plan_daily_work_test.py | bevzuk/CrossFunctionalTeams-Python | f8d798dade50eed3662de336800d4d6e92dd8920 | [
"MIT"
] | null | null | null | release_planning/tests/when_plan_daily_work_test.py | bevzuk/CrossFunctionalTeams-Python | f8d798dade50eed3662de336800d4d6e92dd8920 | [
"MIT"
] | null | null | null | release_planning/tests/when_plan_daily_work_test.py | bevzuk/CrossFunctionalTeams-Python | f8d798dade50eed3662de336800d4d6e92dd8920 | [
"MIT"
] | null | null | null | import unittest
from eventsourcing.domain.model.events import subscribe
from scrum_team import ScrumTeam
from tests.dsl.given import Given
class WhenPlanDailyWork(unittest.TestCase):
received_day_planned_events = []
def is_day_planned_event(self, events):
return all(isinstance(e, ScrumTeam.DayPlann... | 30.107914 | 108 | 0.547431 | 446 | 4,185 | 4.802691 | 0.161435 | 0.092437 | 0.084034 | 0.112045 | 0.75957 | 0.733427 | 0.718954 | 0.705882 | 0.705882 | 0.684874 | 0 | 0.008639 | 0.308483 | 4,185 | 138 | 109 | 30.326087 | 0.731513 | 0 | 0 | 0.706422 | 0 | 0 | 0.048746 | 0 | 0 | 0 | 0 | 0 | 0.06422 | 1 | 0.082569 | false | 0 | 0.036697 | 0.009174 | 0.146789 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
c5df16e70e52395a77b88659ea32118f09957104 | 1,406 | py | Python | python/challenges/tests/test_multi_bracket_validation.py | kmangub/data-structures-and-algorithms | 44b42c0d892f39593997bccb793eacc4d7d98906 | [
"MIT"
] | null | null | null | python/challenges/tests/test_multi_bracket_validation.py | kmangub/data-structures-and-algorithms | 44b42c0d892f39593997bccb793eacc4d7d98906 | [
"MIT"
] | null | null | null | python/challenges/tests/test_multi_bracket_validation.py | kmangub/data-structures-and-algorithms | 44b42c0d892f39593997bccb793eacc4d7d98906 | [
"MIT"
] | null | null | null | import pytest
from challenges.multi_bracket_validation.multi_bracket_validation import multi_bracket_validation
def test_multi_bracket_validation_with_one_pair():
actual = multi_bracket_validation('{}')
expected = True
assert actual == expected
def test_multi_bracket_validation_with_one__of_each_pair():
... | 31.954545 | 97 | 0.756757 | 160 | 1,406 | 6.16875 | 0.20625 | 0.231003 | 0.423506 | 0.154002 | 0.722391 | 0.722391 | 0.722391 | 0.682877 | 0.682877 | 0.621074 | 0 | 0 | 0.147937 | 1,406 | 43 | 98 | 32.697674 | 0.823873 | 0 | 0 | 0.470588 | 0 | 0 | 0.050534 | 0.014947 | 0 | 0 | 0 | 0 | 0.235294 | 1 | 0.235294 | false | 0 | 0.058824 | 0 | 0.294118 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
6811136d2932d9e78d01a4c2b5dbe9f2a5da522f | 34 | py | Python | datadomain/__init__.py | itkovian/datadomain | 3d5096c06749034ff1b1b8f2743fab5cfc606be0 | [
"MIT"
] | null | null | null | datadomain/__init__.py | itkovian/datadomain | 3d5096c06749034ff1b1b8f2743fab5cfc606be0 | [
"MIT"
] | null | null | null | datadomain/__init__.py | itkovian/datadomain | 3d5096c06749034ff1b1b8f2743fab5cfc606be0 | [
"MIT"
] | null | null | null | from datadomain import DataDomain
| 17 | 33 | 0.882353 | 4 | 34 | 7.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 34 | 1 | 34 | 34 | 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 |
a861f96621057651b9247dd60ae68cd1c48a83a2 | 20,221 | py | Python | analysis/rosetta/rosetta_kl_helper.py | willshi88/scrambler | fd77c05824fc99e6965d204c4f5baa1e3b0c4fb3 | [
"MIT"
] | 19 | 2021-04-30T04:12:58.000Z | 2022-03-07T19:09:32.000Z | analysis/rosetta/rosetta_kl_helper.py | willshi88/scrambler | fd77c05824fc99e6965d204c4f5baa1e3b0c4fb3 | [
"MIT"
] | 4 | 2021-07-02T15:07:27.000Z | 2021-08-01T12:41:28.000Z | analysis/rosetta/rosetta_kl_helper.py | willshi88/scrambler | fd77c05824fc99e6965d204c4f5baa1e3b0c4fb3 | [
"MIT"
] | 4 | 2021-06-28T09:41:01.000Z | 2022-02-28T09:13:29.000Z | import numpy as np
import keras
import tensorflow as tf
import keras.backend as K
#Define kl divergence helper functions (numpy)
def _get_kl_divergence_numpy(p_dist, p_theta, p_phi, p_omega, t_dist, t_theta, t_phi, t_omega) :
kl_dist = np.mean(np.sum(t_dist * np.log(t_dist / p_dist), axis=-1))
kl_theta =... | 81.53629 | 209 | 0.62801 | 3,991 | 20,221 | 2.953395 | 0.019544 | 0.082294 | 0.047849 | 0.045813 | 0.981929 | 0.960889 | 0.949606 | 0.911598 | 0.877832 | 0.862221 | 0 | 0.072074 | 0.146432 | 20,221 | 247 | 210 | 81.866397 | 0.610834 | 0.004451 | 0 | 0.521277 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.031915 | false | 0 | 0.021277 | 0 | 0.085106 | 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 |
a882a611972e18d8b5e75bc67314be160a3e5664 | 27 | py | Python | __init__.py | Heriyadi235/jet_engine_model | e909f15a5f61420d104740b69cb86ced2aeff011 | [
"Unlicense"
] | null | null | null | __init__.py | Heriyadi235/jet_engine_model | e909f15a5f61420d104740b69cb86ced2aeff011 | [
"Unlicense"
] | null | null | null | __init__.py | Heriyadi235/jet_engine_model | e909f15a5f61420d104740b69cb86ced2aeff011 | [
"Unlicense"
] | null | null | null | """
2021-11-19
发动机部件类
"""
| 4.5 | 10 | 0.518519 | 4 | 27 | 3.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.363636 | 0.185185 | 27 | 5 | 11 | 5.4 | 0.272727 | 0.62963 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
a886983633be7b6c3d9b10eb5ebcb8c5f9cd0a90 | 12,975 | py | Python | tests/venue/test_views.py | cjolowicz/muckr-service | 014017ab92bd1d2034cd398f2e98a6fdaf30f164 | [
"MIT"
] | null | null | null | tests/venue/test_views.py | cjolowicz/muckr-service | 014017ab92bd1d2034cd398f2e98a6fdaf30f164 | [
"MIT"
] | 12 | 2018-12-21T22:13:33.000Z | 2019-08-03T20:03:19.000Z | tests/venue/test_views.py | cjolowicz/muckr-service | 014017ab92bd1d2034cd398f2e98a6fdaf30f164 | [
"MIT"
] | null | null | null | """Test venue views."""
import json
import pytest
from muckr_api.venue.models import Venue
from muckr_api.venue.views import venue_schema, venues_schema
from tests.venue.factories import VenueFactory
from tests.utils import create_token_auth_header
class TestGetVenues:
def test_get_request_returns_list_of_venue... | 36.652542 | 87 | 0.626127 | 1,541 | 12,975 | 5.033095 | 0.080467 | 0.075812 | 0.072202 | 0.06769 | 0.838319 | 0.814595 | 0.79229 | 0.742135 | 0.729371 | 0.697138 | 0 | 0.016605 | 0.252717 | 12,975 | 353 | 88 | 36.756374 | 0.783313 | 0.00131 | 0 | 0.60274 | 0 | 0 | 0.085855 | 0 | 0 | 0 | 0 | 0 | 0.212329 | 1 | 0.099315 | false | 0.003425 | 0.020548 | 0 | 0.136986 | 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 |
a88cb1d580ef4a231a8f3d6da3a0be1442131f19 | 6,223 | py | Python | misc/encoder_QI.py | roma-ghewari/visDial.pytorch | 03fe6e679170d54a985b6402f07fea4a5fb4dd73 | [
"MIT"
] | 123 | 2017-10-05T00:29:34.000Z | 2022-03-28T14:16:06.000Z | misc/encoder_QI.py | roma-ghewari/visDial.pytorch | 03fe6e679170d54a985b6402f07fea4a5fb4dd73 | [
"MIT"
] | 13 | 2017-10-23T09:33:33.000Z | 2022-01-05T09:42:29.000Z | misc/encoder_QI.py | roma-ghewari/visDial.pytorch | 03fe6e679170d54a985b6402f07fea4a5fb4dd73 | [
"MIT"
] | 37 | 2017-10-06T09:47:05.000Z | 2020-06-27T21:06:01.000Z |
import torch
import torch.nn as nn
from torch.autograd import Variable
import pdb
import math
import numpy as np
import torch.nn.functional as F
'''
class _netE(nn.Module):
"""Container module with an encoder, a recurrent module, and a decoder."""
def __init__(self, rnn_type, ninp, nhid, nlayers, dropout):
... | 37.487952 | 125 | 0.620119 | 913 | 6,223 | 4.015334 | 0.086528 | 0.093835 | 0.042553 | 0.052373 | 0.943808 | 0.943808 | 0.93808 | 0.911075 | 0.845881 | 0.829242 | 0 | 0.022737 | 0.243773 | 6,223 | 165 | 126 | 37.715152 | 0.756269 | 0.029086 | 0 | 0.046512 | 0 | 0 | 0.001872 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.069767 | false | 0 | 0.162791 | 0 | 0.325581 | 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 |
a892f75218dedfe24e5297830bf906e64c99785f | 216 | py | Python | src/hatch/env/plugin/hooks.py | daobook/hatch | 1cf39ad1a11ce90bc77fb7fdc4b9202433509179 | [
"MIT"
] | null | null | null | src/hatch/env/plugin/hooks.py | daobook/hatch | 1cf39ad1a11ce90bc77fb7fdc4b9202433509179 | [
"MIT"
] | null | null | null | src/hatch/env/plugin/hooks.py | daobook/hatch | 1cf39ad1a11ce90bc77fb7fdc4b9202433509179 | [
"MIT"
] | null | null | null | from hatchling.plugin import hookimpl
from ..system import SystemEnvironment
from ..virtual import VirtualEnvironment
@hookimpl
def hatch_register_environment():
return [SystemEnvironment, VirtualEnvironment]
| 21.6 | 50 | 0.828704 | 21 | 216 | 8.428571 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115741 | 216 | 9 | 51 | 24 | 0.926702 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | true | 0 | 0.5 | 0.166667 | 0.833333 | 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 |
a896a1c83dc3a8c9b54550f2b7cf3d2ac25b3ec3 | 51 | py | Python | mail_html/__init__.py | bsholy/learn_flask_email | a277421ad1e1a8ec637681c75da65dbca773dc1f | [
"Unlicense"
] | null | null | null | mail_html/__init__.py | bsholy/learn_flask_email | a277421ad1e1a8ec637681c75da65dbca773dc1f | [
"Unlicense"
] | null | null | null | mail_html/__init__.py | bsholy/learn_flask_email | a277421ad1e1a8ec637681c75da65dbca773dc1f | [
"Unlicense"
] | null | null | null | from mail_html.get_mail_message import get_mail_msg | 51 | 51 | 0.921569 | 10 | 51 | 4.2 | 0.7 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 51 | 1 | 51 | 51 | 0.875 | 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 |
a8a06172abe3ab9863b2f4b0b6dc6d548f2a7a7a | 46 | py | Python | ssl_framework/models/heads/__init__.py | ananyahjha93/libself | f43cf8d60db97bb47652eecf06efa1801e850b9f | [
"MIT"
] | 11 | 2020-02-14T21:29:45.000Z | 2021-07-30T18:49:47.000Z | ssl_framework/models/heads/__init__.py | ananyahjha93/libself | f43cf8d60db97bb47652eecf06efa1801e850b9f | [
"MIT"
] | null | null | null | ssl_framework/models/heads/__init__.py | ananyahjha93/libself | f43cf8d60db97bb47652eecf06efa1801e850b9f | [
"MIT"
] | 2 | 2020-10-21T08:11:12.000Z | 2020-11-20T11:57:43.000Z | from ssl_framework.models.heads.mlp import MLP | 46 | 46 | 0.869565 | 8 | 46 | 4.875 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065217 | 46 | 1 | 46 | 46 | 0.906977 | 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 |
765f307d9e0cdb24514f8550f529de7c240c65d2 | 85 | py | Python | amethyst/backend/__init__.py | medav/amethyst | c75314249454f41c9ea61a1a46b1b59ba81b37d3 | [
"MIT"
] | null | null | null | amethyst/backend/__init__.py | medav/amethyst | c75314249454f41c9ea61a1a46b1b59ba81b37d3 | [
"MIT"
] | null | null | null | amethyst/backend/__init__.py | medav/amethyst | c75314249454f41c9ea61a1a46b1b59ba81b37d3 | [
"MIT"
] | 1 | 2021-05-01T06:23:51.000Z | 2021-05-01T06:23:51.000Z | from . import decode
from . import execute
from . import mem
from . import writeback
| 17 | 23 | 0.764706 | 12 | 85 | 5.416667 | 0.5 | 0.615385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.188235 | 85 | 4 | 24 | 21.25 | 0.942029 | 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 |
766576061cf3a80d3b01b28631a35290271266a7 | 65 | py | Python | lectures/code/tuples_basics.py | naskoch/python_course | 84adfd3f8d48ca3ad5837f7acc59d2fa051e95d3 | [
"MIT"
] | 4 | 2015-08-10T17:46:55.000Z | 2020-04-18T21:09:03.000Z | lectures/code/tuples_basics.py | naskoch/python_course | 84adfd3f8d48ca3ad5837f7acc59d2fa051e95d3 | [
"MIT"
] | null | null | null | lectures/code/tuples_basics.py | naskoch/python_course | 84adfd3f8d48ca3ad5837f7acc59d2fa051e95d3 | [
"MIT"
] | 2 | 2019-04-24T03:31:02.000Z | 2019-05-13T07:36:06.000Z | >>> myTuple = (1, 2, 3)
>>> myTuple[1]
2
>>> myTuple[1:3]
(2, 3)
| 10.833333 | 23 | 0.461538 | 12 | 65 | 2.5 | 0.333333 | 0.8 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173077 | 0.2 | 65 | 5 | 24 | 13 | 0.403846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
7668a71f67ddf65e1f07b8ad239bec751bb3b3e5 | 20,466 | py | Python | atst/domain/authnid/crl/util.py | philip-dds/atst | a227044ccf464dd0e3144dd74cecfafe8d6841b9 | [
"MIT"
] | null | null | null | atst/domain/authnid/crl/util.py | philip-dds/atst | a227044ccf464dd0e3144dd74cecfafe8d6841b9 | [
"MIT"
] | null | null | null | atst/domain/authnid/crl/util.py | philip-dds/atst | a227044ccf464dd0e3144dd74cecfafe8d6841b9 | [
"MIT"
] | null | null | null | import json
import os
import re
import pendulum
import requests
class CRLNotFoundError(Exception):
pass
class CRLParseError(Exception):
pass
MODIFIED_TIME_BUFFER = 15 * 60
CRL_LIST = [
(
"https://crl.gds.disa.mil/crl/DODROOTCA2.crl",
"305b310b300906035504061302555331183016060355040a... | 55.61413 | 277 | 0.792192 | 1,251 | 20,466 | 12.798561 | 0.198241 | 0.026981 | 0.037099 | 0.05059 | 0.213291 | 0.202673 | 0.195116 | 0.188745 | 0.188745 | 0.155768 | 0 | 0.519774 | 0.133929 | 20,466 | 367 | 278 | 55.765668 | 0.383526 | 0.065914 | 0 | 0.228395 | 0 | 0 | 0.690746 | 0.543804 | 0 | 1 | 0 | 0 | 0 | 1 | 0.030864 | false | 0.006173 | 0.021605 | 0.003086 | 0.08642 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
7673dfd1a83cf261c2134ed671f44e2e94acafe8 | 429 | py | Python | terrascript/bitbucket/r.py | hugovk/python-terrascript | 08fe185904a70246822f5cfbdc9e64e9769ec494 | [
"BSD-2-Clause"
] | null | null | null | terrascript/bitbucket/r.py | hugovk/python-terrascript | 08fe185904a70246822f5cfbdc9e64e9769ec494 | [
"BSD-2-Clause"
] | null | null | null | terrascript/bitbucket/r.py | hugovk/python-terrascript | 08fe185904a70246822f5cfbdc9e64e9769ec494 | [
"BSD-2-Clause"
] | null | null | null | # terrascript/bitbucket/r.py
import terrascript
class bitbucket_hook(terrascript.Resource):
pass
class bitbucket_default_reviewers(terrascript.Resource):
pass
class bitbucket_repository(terrascript.Resource):
pass
class bitbucket_repository_variable(terrascript.Resource):
pass
class bitbucket_... | 15.888889 | 58 | 0.799534 | 45 | 429 | 7.422222 | 0.355556 | 0.251497 | 0.413174 | 0.419162 | 0.613772 | 0.281437 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135198 | 429 | 26 | 59 | 16.5 | 0.90027 | 0.060606 | 0 | 0.461538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.461538 | 0.076923 | 0 | 0.538462 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 6 |
7677333cbe8a008146f1ca86faa7113c72020467 | 47 | py | Python | holidaycollector/__init__.py | JonathanLoscalzo/holiday-collector | 9ae122ecc7bdb45e00a6d939b09b7350797d8ace | [
"MIT"
] | null | null | null | holidaycollector/__init__.py | JonathanLoscalzo/holiday-collector | 9ae122ecc7bdb45e00a6d939b09b7350797d8ace | [
"MIT"
] | null | null | null | holidaycollector/__init__.py | JonathanLoscalzo/holiday-collector | 9ae122ecc7bdb45e00a6d939b09b7350797d8ace | [
"MIT"
] | null | null | null | from .holidaycollector import main, __version__ | 47 | 47 | 0.87234 | 5 | 47 | 7.4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085106 | 47 | 1 | 47 | 47 | 0.860465 | 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 |
76a3dce92ab6a2ae813445ff5b9dddde60be6f3e | 29 | py | Python | types/user_longpoll/__init__.py | StepaTa/vkbottle | 3b04a5343380cbabe782151e7cb1c1645a9fa9ce | [
"MIT"
] | 1 | 2021-05-22T10:32:57.000Z | 2021-05-22T10:32:57.000Z | types/user_longpoll/__init__.py | StepaTa/vkbottle | 3b04a5343380cbabe782151e7cb1c1645a9fa9ce | [
"MIT"
] | 73 | 2020-10-05T21:00:48.000Z | 2020-11-16T23:29:41.000Z | types/user_longpoll/__init__.py | StepaTa/vkbottle | 3b04a5343380cbabe782151e7cb1c1645a9fa9ce | [
"MIT"
] | null | null | null | from .message import Message
| 14.5 | 28 | 0.827586 | 4 | 29 | 6 | 0.75 | 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 |
76ce03b467b9cc5a55cdb6a64803292e3dd2486f | 46,385 | py | Python | django_comments_ink/tests/test_models.py | comments-ink/django-comments-ink | 25255d2ca60d5e2dfb8116e3ba4702dcde4e0a69 | [
"BSD-2-Clause"
] | 3 | 2022-03-26T23:53:14.000Z | 2022-03-28T19:20:53.000Z | django_comments_ink/tests/test_models.py | comments-ink/django-comments-ink | 25255d2ca60d5e2dfb8116e3ba4702dcde4e0a69 | [
"BSD-2-Clause"
] | null | null | null | django_comments_ink/tests/test_models.py | comments-ink/django-comments-ink | 25255d2ca60d5e2dfb8116e3ba4702dcde4e0a69 | [
"BSD-2-Clause"
] | null | null | null | from datetime import datetime
from unittest.mock import patch
import pytest
from django.contrib.contenttypes.models import ContentType
from django.contrib.sites.models import Site
from django.db.models.signals import pre_save
from django.test import TestCase as DjangoTestCase
from django_comments_ink import get_form, ... | 40.299739 | 80 | 0.530473 | 6,046 | 46,385 | 3.884386 | 0.048462 | 0.009879 | 0.050671 | 0.043687 | 0.829168 | 0.782798 | 0.75759 | 0.730381 | 0.71369 | 0.682138 | 0 | 0.074457 | 0.372556 | 46,385 | 1,150 | 81 | 40.334783 | 0.732477 | 0.305659 | 0 | 0.630936 | 0 | 0 | 0.030446 | 0.004686 | 0 | 0 | 0 | 0 | 0.222524 | 1 | 0.081411 | false | 0.002714 | 0.016282 | 0 | 0.113976 | 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 |
4f8d9e940c1298daaa6bca558dfb61086f42012e | 33 | py | Python | configs/__init__.py | dqshuai/NAE4PS | 476dee524bb40c1f89fc0a30f37c735a2c0ee082 | [
"MIT"
] | 84 | 2020-03-11T15:02:06.000Z | 2022-01-03T11:38:36.000Z | configs/__init__.py | dqshuai/NAE4PS | 476dee524bb40c1f89fc0a30f37c735a2c0ee082 | [
"MIT"
] | 20 | 2020-06-16T07:55:44.000Z | 2021-09-10T15:34:28.000Z | configs/__init__.py | dqshuai/NAE4PS | 476dee524bb40c1f89fc0a30f37c735a2c0ee082 | [
"MIT"
] | 17 | 2020-06-14T13:40:47.000Z | 2021-11-30T22:21:03.000Z | from .res50_faster_rcnn import *
| 16.5 | 32 | 0.818182 | 5 | 33 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068966 | 0.121212 | 33 | 1 | 33 | 33 | 0.793103 | 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 |
4f9bde3fb99ee72dcb81cd39954e2f294b7e4945 | 17,550 | py | Python | model.py | BluePinetree/ViolenceDetection | 3b54cf5e53e74fd99bc11d709bc3c3894065de12 | [
"MIT"
] | null | null | null | model.py | BluePinetree/ViolenceDetection | 3b54cf5e53e74fd99bc11d709bc3c3894065de12 | [
"MIT"
] | null | null | null | model.py | BluePinetree/ViolenceDetection | 3b54cf5e53e74fd99bc11d709bc3c3894065de12 | [
"MIT"
] | 1 | 2021-01-10T13:20:21.000Z | 2021-01-10T13:20:21.000Z | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import tensorflow as tf
from tensorflow import keras
from tensorflow.keras.models import Model
from tensorflow.keras.layers import Input, Conv3D, MaxPooling3D, Concatenate, BatchNormalization, AveragePooling3D,... | 63.586957 | 146 | 0.697151 | 2,785 | 17,550 | 4.052065 | 0.050987 | 0.095702 | 0.04537 | 0.073726 | 0.859991 | 0.84156 | 0.83642 | 0.826141 | 0.823039 | 0.820027 | 0 | 0.076639 | 0.167293 | 17,550 | 275 | 147 | 63.818182 | 0.695566 | 0.003248 | 0 | 0.538776 | 0 | 0 | 0.147104 | 0.100223 | 0 | 0 | 0 | 0 | 0 | 1 | 0.008163 | false | 0 | 0.028571 | 0 | 0.040816 | 0.004082 | 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 |
96d5656cc6df7babf80ce9ff01c22b4bef6f6c54 | 82 | py | Python | app/services/__init__.py | LuisMSoares/Sacsis-Api | c32ef44ddc9956e01f30276002059e898ba3985a | [
"Apache-2.0"
] | 4 | 2019-09-10T02:40:53.000Z | 2019-09-30T04:51:21.000Z | app/services/__init__.py | LuisMSoares/Sacsis-Api | c32ef44ddc9956e01f30276002059e898ba3985a | [
"Apache-2.0"
] | null | null | null | app/services/__init__.py | LuisMSoares/Sacsis-Api | c32ef44ddc9956e01f30276002059e898ba3985a | [
"Apache-2.0"
] | null | null | null | from app.services.token import Token
from app.services.send_email import SendEmail | 41 | 45 | 0.865854 | 13 | 82 | 5.384615 | 0.615385 | 0.2 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085366 | 82 | 2 | 45 | 41 | 0.933333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
96edeca93165982ac52595fee9701b8653a7263c | 35 | py | Python | sensoglove/__init__.py | TheRizzen/senso-glove | eb15d3a08350877174cd62b75beacec8f72e12af | [
"MIT"
] | null | null | null | sensoglove/__init__.py | TheRizzen/senso-glove | eb15d3a08350877174cd62b75beacec8f72e12af | [
"MIT"
] | 2 | 2018-07-02T15:54:07.000Z | 2018-08-15T19:42:21.000Z | sensoglove/__init__.py | TheRizzen/senso-glove | eb15d3a08350877174cd62b75beacec8f72e12af | [
"MIT"
] | null | null | null | from .sensoglove import SensoGlove
| 17.5 | 34 | 0.857143 | 4 | 35 | 7.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114286 | 35 | 1 | 35 | 35 | 0.967742 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
96fa468813db6f1bb3d65ba8c36e70b5db2e5c50 | 194 | py | Python | trading_sim/event/event_tick.py | kyhorne/trading_sim | 6c2f17b7be0bfba6338ebe48ea69d2aed7e65c77 | [
"MIT"
] | 28 | 2019-03-20T16:13:10.000Z | 2022-03-12T01:30:25.000Z | trading_sim/event/event_tick.py | kyhorne/trading_sim | 6c2f17b7be0bfba6338ebe48ea69d2aed7e65c77 | [
"MIT"
] | 8 | 2019-03-17T01:22:42.000Z | 2020-09-04T15:22:37.000Z | trading_sim/event/event_tick.py | kyhorne/trading_sim | 6c2f17b7be0bfba6338ebe48ea69d2aed7e65c77 | [
"MIT"
] | 9 | 2019-03-20T22:00:46.000Z | 2020-07-02T01:30:58.000Z | import json
from .event_type import EventType
class EventTick:
@staticmethod
def instantiate():
return json.dumps({"eventType": EventType.TICK.value, "payload": {}}).encode()
| 19.4 | 86 | 0.690722 | 21 | 194 | 6.333333 | 0.809524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180412 | 194 | 9 | 87 | 21.555556 | 0.836478 | 0 | 0 | 0 | 0 | 0 | 0.082474 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | true | 0 | 0.333333 | 0.166667 | 0.833333 | 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 |
96fa541e4fb274111c48f5a6d413fefd8a52c217 | 82 | py | Python | bitmovin/errors/missing_argument_error.py | camberbridge/bitmovin-python | 3af4c6e79b0291fda05fd1ceeb5bed1bba9f3c95 | [
"Unlicense"
] | 44 | 2016-12-12T17:37:23.000Z | 2021-03-03T09:48:48.000Z | bitmovin/errors/missing_argument_error.py | camberbridge/bitmovin-python | 3af4c6e79b0291fda05fd1ceeb5bed1bba9f3c95 | [
"Unlicense"
] | 38 | 2017-01-09T14:45:45.000Z | 2022-02-27T18:04:33.000Z | bitmovin/errors/missing_argument_error.py | camberbridge/bitmovin-python | 3af4c6e79b0291fda05fd1ceeb5bed1bba9f3c95 | [
"Unlicense"
] | 27 | 2017-02-02T22:49:31.000Z | 2019-11-21T07:04:57.000Z | from . import BitmovinError
class MissingArgumentError(BitmovinError):
pass
| 13.666667 | 42 | 0.792683 | 7 | 82 | 9.285714 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.158537 | 82 | 5 | 43 | 16.4 | 0.942029 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.333333 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 6 |
96fba4163a6345fd4e281b71adee1daa8918a644 | 12,027 | py | Python | mayan/apps/cabinets/tests/test_api.py | boost-entropy-repos-org/Mayan-EDMS | 5769f26abc56f92f8edb9d311cabf659dc0535c1 | [
"Apache-2.0"
] | 1 | 2021-02-24T15:03:23.000Z | 2021-02-24T15:03:23.000Z | mayan/apps/cabinets/tests/test_api.py | ass-a2s/Mayan-EDMS | 5769f26abc56f92f8edb9d311cabf659dc0535c1 | [
"Apache-2.0"
] | null | null | null | mayan/apps/cabinets/tests/test_api.py | ass-a2s/Mayan-EDMS | 5769f26abc56f92f8edb9d311cabf659dc0535c1 | [
"Apache-2.0"
] | 1 | 2020-08-09T09:06:59.000Z | 2020-08-09T09:06:59.000Z | from django.utils.encoding import force_text
from rest_framework import status
from mayan.apps.documents.permissions import permission_document_view
from mayan.apps.documents.tests.mixins import DocumentTestMixin
from mayan.apps.rest_api.tests.base import BaseAPITestCase
from ..models import Cabinet
from ..permissio... | 34.264957 | 75 | 0.698512 | 1,375 | 12,027 | 5.697455 | 0.077091 | 0.116543 | 0.074675 | 0.077738 | 0.864437 | 0.841716 | 0.800613 | 0.760403 | 0.743298 | 0.737044 | 0 | 0.007645 | 0.216929 | 12,027 | 350 | 76 | 34.362857 | 0.824166 | 0 | 0 | 0.600775 | 0 | 0 | 0.024112 | 0.009562 | 0 | 0 | 0 | 0 | 0.193798 | 1 | 0.085271 | false | 0 | 0.031008 | 0 | 0.135659 | 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 |
8c083f5c3a3dfc68c87f48abcd0f56bd6f9877f3 | 50,985 | py | Python | testing/test_add_data.py | mortazavilab/swan_vis | 7e5817b06d8a20792fee7af1bc59a1bf818bd3c4 | [
"MIT"
] | 34 | 2020-06-12T20:05:38.000Z | 2022-03-28T00:12:22.000Z | testing/test_add_data.py | mortazavilab/swan_vis | 7e5817b06d8a20792fee7af1bc59a1bf818bd3c4 | [
"MIT"
] | 14 | 2020-06-14T23:04:05.000Z | 2022-03-25T17:06:18.000Z | testing/test_add_data.py | mortazavilab/swan_vis | 7e5817b06d8a20792fee7af1bc59a1bf818bd3c4 | [
"MIT"
] | 5 | 2020-10-17T09:10:41.000Z | 2022-02-03T21:19:15.000Z | import pytest
import sys
import numpy as np
import swan_vis as swan
import networkx as nx
import math
import pandas as pd
###########################################################################
##################### Related to adding metadata ##########################
#############################################... | 35.628931 | 108 | 0.527685 | 6,635 | 50,985 | 3.787189 | 0.049435 | 0.030922 | 0.030365 | 0.011382 | 0.829035 | 0.789597 | 0.728669 | 0.714024 | 0.67968 | 0.659663 | 0 | 0.039351 | 0.316152 | 50,985 | 1,430 | 109 | 35.653846 | 0.681351 | 0.13757 | 0 | 0.700971 | 0 | 0 | 0.149985 | 0.036257 | 0 | 0 | 0 | 0.000699 | 0.068932 | 1 | 0.03301 | false | 0.003884 | 0.006796 | 0 | 0.045631 | 0.081553 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
8c3163c5ef19b0a38f2d7eb603b2c68851d5e7ba | 2,938 | py | Python | kaon_production/tasks.py | lh7326/UA_model | 009418dd94d3b7f9289a09858ba38cb5bb9129c5 | [
"Unlicense"
] | null | null | null | kaon_production/tasks.py | lh7326/UA_model | 009418dd94d3b7f9289a09858ba38cb5bb9129c5 | [
"Unlicense"
] | null | null | null | kaon_production/tasks.py | lh7326/UA_model | 009418dd94d3b7f9289a09858ba38cb5bb9129c5 | [
"Unlicense"
] | null | null | null | from kaon_production.Task import Task
from kaon_production.utils import make_partial_cross_section_for_parameters
class TaskFullFit(Task):
def _set_up(self):
self.parameters.release_all_parameters()
self.partial_f = make_partial_cross_section_for_parameters(
self.k_meson_mass, self.al... | 33.386364 | 84 | 0.670184 | 365 | 2,938 | 5.046575 | 0.147945 | 0.144408 | 0.06949 | 0.099891 | 0.865364 | 0.865364 | 0.837134 | 0.837134 | 0.837134 | 0.837134 | 0 | 0.002244 | 0.241661 | 2,938 | 87 | 85 | 33.770115 | 0.824506 | 0 | 0 | 0.65625 | 0 | 0 | 0.001361 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.109375 | false | 0 | 0.03125 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
8b069ae2a6bd862b0d89bf558ecc010cc521fe7e | 45 | py | Python | pystiche/data/collections/__init__.py | dooglewoogle/pystiche | 14b61123ede2abdb00daaa5b4981de6d7edaf034 | [
"BSD-3-Clause"
] | 129 | 2019-10-04T00:23:54.000Z | 2021-04-24T06:41:37.000Z | pystiche/data/collections/__init__.py | dooglewoogle/pystiche | 14b61123ede2abdb00daaa5b4981de6d7edaf034 | [
"BSD-3-Clause"
] | 334 | 2019-10-01T08:10:44.000Z | 2021-04-25T19:39:09.000Z | pystiche/data/collections/__init__.py | dooglewoogle/pystiche | 14b61123ede2abdb00daaa5b4981de6d7edaf034 | [
"BSD-3-Clause"
] | 32 | 2021-05-05T05:06:18.000Z | 2022-03-17T09:14:47.000Z | from .download import *
from .local import *
| 15 | 23 | 0.733333 | 6 | 45 | 5.5 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.177778 | 45 | 2 | 24 | 22.5 | 0.891892 | 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 |
8b0d15d7825d544cd685085634cc6aca1202ce9c | 26,161 | py | Python | pyjap/json_api_serializer.py | fabian-lpz/py-jap | 1f7c144c55c284ee87ec696fa91abff39b0d93e0 | [
"Apache-2.0"
] | null | null | null | pyjap/json_api_serializer.py | fabian-lpz/py-jap | 1f7c144c55c284ee87ec696fa91abff39b0d93e0 | [
"Apache-2.0"
] | null | null | null | pyjap/json_api_serializer.py | fabian-lpz/py-jap | 1f7c144c55c284ee87ec696fa91abff39b0d93e0 | [
"Apache-2.0"
] | null | null | null | from json_api_serializer import json_api_error_document, json_api_data_document
from collections import defaultdict
import json
__author__ = "Fabian Lopez Verdugo"
__version__ = "0.1"
__maintainer__ = "Fabian Lopez"
__email__ = "fabian.lopez@enova.mx"
__status__ = "Development"
class JASerializer():
def __init__(... | 59.864989 | 166 | 0.543404 | 1,882 | 26,161 | 7.519129 | 0.09458 | 0.01484 | 0.033072 | 0.030528 | 0.791181 | 0.768638 | 0.749205 | 0.740584 | 0.735354 | 0.718606 | 0 | 0.004359 | 0.368679 | 26,161 | 437 | 167 | 59.864989 | 0.852446 | 0.021521 | 0 | 0.721675 | 0 | 0 | 0.094771 | 0.000824 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036946 | false | 0 | 0.007389 | 0 | 0.118227 | 0.002463 | 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 |
8b21665c421a5f7d420cc820c141aac2e747b356 | 30 | py | Python | slim/support/asyncpg/__init__.py | 0xNone/slim | 7cc8bc6ac8773f63ef1ebcafe23c0b1ec52811c6 | [
"Zlib"
] | 1 | 2017-09-18T07:56:25.000Z | 2017-09-18T07:56:25.000Z | slim/support/asyncpg/__init__.py | 0xNone/slim | 7cc8bc6ac8773f63ef1ebcafe23c0b1ec52811c6 | [
"Zlib"
] | null | null | null | slim/support/asyncpg/__init__.py | 0xNone/slim | 7cc8bc6ac8773f63ef1ebcafe23c0b1ec52811c6 | [
"Zlib"
] | null | null | null | from .view import AsyncpgView
| 15 | 29 | 0.833333 | 4 | 30 | 6.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 30 | 1 | 30 | 30 | 0.961538 | 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 |
8cd82c9ec7a9486aa14a2962dd861e6d99e500ee | 2,819 | py | Python | epytope/Data/pssms/smmpmbec/mat/A_02_02_11.py | christopher-mohr/epytope | 8ac9fe52c0b263bdb03235a5a6dffcb72012a4fd | [
"BSD-3-Clause"
] | 7 | 2021-02-01T18:11:28.000Z | 2022-01-31T19:14:07.000Z | epytope/Data/pssms/smmpmbec/mat/A_02_02_11.py | christopher-mohr/epytope | 8ac9fe52c0b263bdb03235a5a6dffcb72012a4fd | [
"BSD-3-Clause"
] | 22 | 2021-01-02T15:25:23.000Z | 2022-03-14T11:32:53.000Z | epytope/Data/pssms/smmpmbec/mat/A_02_02_11.py | christopher-mohr/epytope | 8ac9fe52c0b263bdb03235a5a6dffcb72012a4fd | [
"BSD-3-Clause"
] | 4 | 2021-05-28T08:50:38.000Z | 2022-03-14T11:45:32.000Z | A_02_02_11 = {0: {'A': -0.199, 'C': 0.016, 'E': -0.034, 'D': 0.127, 'G': -0.025, 'F': -0.087, 'I': -0.139, 'H': 0.05, 'K': -0.162, 'M': -0.225, 'L': -0.264, 'N': 0.275, 'Q': -0.102, 'P': 0.428, 'S': 0.063, 'R': 0.072, 'T': 0.074, 'W': 0.109, 'V': 0.076, 'Y': -0.052}, 1: {'A': 0.173, 'C': 0.018, 'E': 0.22, 'D': 0.285, '... | 2,819 | 2,819 | 0.39553 | 679 | 2,819 | 1.637703 | 0.290133 | 0.019784 | 0.008993 | 0.010791 | 0.061151 | 0 | 0 | 0 | 0 | 0 | 0 | 0.375635 | 0.161405 | 2,819 | 1 | 2,819 | 2,819 | 0.094755 | 0 | 0 | 0 | 0 | 0 | 0.079078 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
ba06051bc7fea982bb86ea53c36655fdc2935929 | 107 | py | Python | dear_petition/petition/etl/__init__.py | nthall/wext | 7db1dda77436f85d905659d49604c311613ea7a3 | [
"MIT"
] | null | null | null | dear_petition/petition/etl/__init__.py | nthall/wext | 7db1dda77436f85d905659d49604c311613ea7a3 | [
"MIT"
] | null | null | null | dear_petition/petition/etl/__init__.py | nthall/wext | 7db1dda77436f85d905659d49604c311613ea7a3 | [
"MIT"
] | null | null | null | from .extract import transform_ciprs_document, parse_ciprs_document
from .load import import_ciprs_records
| 35.666667 | 67 | 0.88785 | 15 | 107 | 5.933333 | 0.6 | 0.292135 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084112 | 107 | 2 | 68 | 53.5 | 0.908163 | 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 |
ba2c48e2c891d394c366270d5ca25dd0e20d570b | 93 | py | Python | settings.py | anuran-roy/Im2SQL-api | 7cbbc4772ccc7b06367bea51070798ed8f9f9ab4 | [
"MIT"
] | 1 | 2021-11-14T16:06:31.000Z | 2021-11-14T16:06:31.000Z | settings.py | anuran-roy/Im2SQL-api | 7cbbc4772ccc7b06367bea51070798ed8f9f9ab4 | [
"MIT"
] | 1 | 2022-03-12T01:03:03.000Z | 2022-03-12T01:03:03.000Z | settings.py | anuran-roy/Im2SQL-api | 7cbbc4772ccc7b06367bea51070798ed8f9f9ab4 | [
"MIT"
] | null | null | null | import os
BASE_DIR: str = os.getcwd()
MEDIA_DIR: str = os.path.join(BASE_DIR, 'media/temp/') | 23.25 | 54 | 0.709677 | 17 | 93 | 3.705882 | 0.588235 | 0.222222 | 0.253968 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11828 | 93 | 4 | 54 | 23.25 | 0.768293 | 0 | 0 | 0 | 0 | 0 | 0.117021 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
e865566c2e7fb0a9d712c065d9152412a1c09664 | 14,843 | py | Python | tests/test_observer.py | gegenschall/djangochannelsrestframework | bb611a6c251517d0e014b028c4b808e6db1785f3 | [
"MIT"
] | 1 | 2021-07-28T09:17:48.000Z | 2021-07-28T09:17:48.000Z | tests/test_observer.py | gegenschall/djangochannelsrestframework | bb611a6c251517d0e014b028c4b808e6db1785f3 | [
"MIT"
] | null | null | null | tests/test_observer.py | gegenschall/djangochannelsrestframework | bb611a6c251517d0e014b028c4b808e6db1785f3 | [
"MIT"
] | null | null | null | import asyncio
import pytest
from asgiref.sync import async_to_sync
from channels import DEFAULT_CHANNEL_LAYER
from channels.db import database_sync_to_async
from channels.layers import channel_layers
from channels.testing import WebsocketCommunicator
from django.contrib.auth import user_logged_in, get_user_model
from... | 30.667355 | 88 | 0.658896 | 1,540 | 14,843 | 6.107792 | 0.080519 | 0.034021 | 0.02424 | 0.02828 | 0.871359 | 0.858814 | 0.823092 | 0.800234 | 0.800234 | 0.795981 | 0 | 0.006831 | 0.230749 | 14,843 | 483 | 89 | 30.730849 | 0.816956 | 0.006535 | 0 | 0.676056 | 0 | 0 | 0.100522 | 0.046802 | 0 | 0 | 0 | 0 | 0.064789 | 1 | 0.011268 | false | 0 | 0.033803 | 0 | 0.073239 | 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 |
e87b0223b168a2889ad03f1ccbb4f2d7ee2d6b74 | 648 | py | Python | user_agent/device.py | zeroday0619/user_agent | 03b0154d7019ddc8e4323a07f106a383cbd8af22 | [
"MIT"
] | null | null | null | user_agent/device.py | zeroday0619/user_agent | 03b0154d7019ddc8e4323a07f106a383cbd8af22 | [
"MIT"
] | null | null | null | user_agent/device.py | zeroday0619/user_agent | 03b0154d7019ddc8e4323a07f106a383cbd8af22 | [
"MIT"
] | null | null | null | import requests
def fetch_device_data(url: str):
resp = requests.get(url)
return resp.json()
SMARTPHONE_DEV_IDS = fetch_device_data('https://cdn.statically.io/gh/zeroday0619/user_agent/master/user_agent/data/smartphone_dev_id.json')
SMARTPHONE_DEV_EXT = fetch_device_data('https://cdn.statically.io/gh/zeroday0... | 64.8 | 140 | 0.824074 | 103 | 648 | 4.854369 | 0.262136 | 0.144 | 0.15 | 0.16 | 0.744 | 0.744 | 0.744 | 0.744 | 0.744 | 0.744 | 0 | 0.025932 | 0.04784 | 648 | 10 | 141 | 64.8 | 0.784441 | 0 | 0 | 0 | 0 | 0.5 | 0.588598 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
e87b1c45d8532cfc0cba1a8b6f8ad44f459d636e | 52,179 | py | Python | image_labelling_tool/test_imagelabels.py | monforte-dt/django-labeller | bf185e8cd00447f1a098059827a5c5435f34d0d4 | [
"MIT"
] | 94 | 2020-08-05T09:46:52.000Z | 2022-03-31T19:10:26.000Z | image_labelling_tool/test_imagelabels.py | monforte-dt/django-labeller | bf185e8cd00447f1a098059827a5c5435f34d0d4 | [
"MIT"
] | 15 | 2020-11-14T16:26:18.000Z | 2022-01-24T16:38:45.000Z | image_labelling_tool/test_imagelabels.py | monforte-dt/django-labeller | bf185e8cd00447f1a098059827a5c5435f34d0d4 | [
"MIT"
] | 20 | 2020-07-19T12:17:04.000Z | 2021-12-11T13:13:18.000Z | import math
import numpy as np
from PIL import Image, ImageDraw
from unittest import TestCase
from . import labelling_tool
class AbstractLabelTestCase(TestCase):
def test_constructor(self):
a = labelling_tool.AbstractLabel()
b = labelling_tool.AbstractLabel(object_id='abc_123', classification='cls... | 58.431131 | 123 | 0.583568 | 7,724 | 52,179 | 3.754272 | 0.032367 | 0.045865 | 0.012966 | 0.013863 | 0.915339 | 0.883682 | 0.851197 | 0.822505 | 0.795158 | 0.785158 | 0 | 0.075593 | 0.239675 | 52,179 | 892 | 124 | 58.496637 | 0.655332 | 0.012917 | 0 | 0.606906 | 0 | 0 | 0.054968 | 0 | 0 | 0 | 0 | 0 | 0.350598 | 1 | 0.065073 | false | 0 | 0.00664 | 0 | 0.086321 | 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 |
fa1be6e510bae80858c17146f1de2e85ef790740 | 208 | py | Python | bld/libs/builder/src/reporters/bufferedreporter.py | webbers/dongle.net | 784bc584bd74b28a1c580835bf776d76cf371c79 | [
"MIT"
] | 2 | 2017-07-31T15:57:01.000Z | 2020-02-21T09:31:11.000Z | bld/libs/builder/src/reporters/bufferedreporter.py | webbers/dongle.net | 784bc584bd74b28a1c580835bf776d76cf371c79 | [
"MIT"
] | null | null | null | bld/libs/builder/src/reporters/bufferedreporter.py | webbers/dongle.net | 784bc584bd74b28a1c580835bf776d76cf371c79 | [
"MIT"
] | null | null | null | class BufferedReporter:
def __init__( self ):
self.__buffer = "";
def message( self, message ):
self.__buffer += "\n" + message
def getBuffer( self ):
return self.__buffer
| 26 | 39 | 0.591346 | 21 | 208 | 5.380952 | 0.47619 | 0.265487 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.293269 | 208 | 7 | 40 | 29.714286 | 0.768707 | 0 | 0 | 0 | 0 | 0 | 0.009615 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | false | 0 | 0 | 0.142857 | 0.714286 | 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 |
fa3bf7ad254ebf1c963aab5b71a178752ae20837 | 24 | py | Python | tests/__init__.py | cristealab/TRANSPIRE_JASMS2020 | 2a65a534f62c26f91d920e5781768bbf45f0e6e5 | [
"MIT"
] | null | null | null | tests/__init__.py | cristealab/TRANSPIRE_JASMS2020 | 2a65a534f62c26f91d920e5781768bbf45f0e6e5 | [
"MIT"
] | 1 | 2021-05-15T17:36:18.000Z | 2021-05-15T17:36:18.000Z | tests/__init__.py | cristealab/TRANSPIRE_JASMS2020 | 2a65a534f62c26f91d920e5781768bbf45f0e6e5 | [
"MIT"
] | 1 | 2020-05-10T01:49:26.000Z | 2020-05-10T01:49:26.000Z | from . import test_files | 24 | 24 | 0.833333 | 4 | 24 | 4.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 24 | 1 | 24 | 24 | 0.904762 | 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 |
fa4b4b68e326ad8f41e841ace36f84c920b91bbc | 21 | py | Python | kevtools_common/__init__.py | SaierLaboratory/deuterocol | 0a133bb4071a06bb8c4333f4b90a11fc65d46359 | [
"BSD-3-Clause"
] | null | null | null | kevtools_common/__init__.py | SaierLaboratory/deuterocol | 0a133bb4071a06bb8c4333f4b90a11fc65d46359 | [
"BSD-3-Clause"
] | null | null | null | kevtools_common/__init__.py | SaierLaboratory/deuterocol | 0a133bb4071a06bb8c4333f4b90a11fc65d46359 | [
"BSD-3-Clause"
] | null | null | null |
from . import types
| 7 | 19 | 0.714286 | 3 | 21 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.238095 | 21 | 2 | 20 | 10.5 | 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 |
fa7179646e4cf4b641eadc19bd43d4f4cb43d307 | 981 | py | Python | PyTorch/Learning/pytorch_basics.py | ashirwadsangwan/Python | b4e570bb31783178d241b9f2a7145343d830b698 | [
"MIT"
] | null | null | null | PyTorch/Learning/pytorch_basics.py | ashirwadsangwan/Python | b4e570bb31783178d241b9f2a7145343d830b698 | [
"MIT"
] | null | null | null | PyTorch/Learning/pytorch_basics.py | ashirwadsangwan/Python | b4e570bb31783178d241b9f2a7145343d830b698 | [
"MIT"
] | 1 | 2022-02-22T16:08:43.000Z | 2022-02-22T16:08:43.000Z | import torch
import numpy as np
# Tensor: Multidimensional matrix containing elements of single datatype
arr = np.array([1, 2, 3, 4, 5])
# converting numpy to pytorch tensor
tensor = torch.from_numpy(
arr
) # it creates a direct link to numpy array if the array is changes so will the tensor.
print(tensor)
print(... | 25.153846 | 88 | 0.738022 | 167 | 981 | 4.323353 | 0.353293 | 0.076177 | 0.066482 | 0.060942 | 0.828255 | 0.828255 | 0.828255 | 0.828255 | 0.828255 | 0.828255 | 0 | 0.020126 | 0.189602 | 981 | 38 | 89 | 25.815789 | 0.88805 | 0.595311 | 0 | 0.652174 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.173913 | 0 | 0.173913 | 0.304348 | 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 |
d75c83d9ffedcb9ec7ef67709e1daca25054ee14 | 10,916 | py | Python | model-optimizer/extensions/middle/ShufflenetReshape_test.py | apexxs/dldt | 17e66dc5a6631d630da454506902bd7c25d4170b | [
"Apache-2.0"
] | 2 | 2021-04-19T06:08:35.000Z | 2021-08-25T02:43:43.000Z | model-optimizer/extensions/middle/ShufflenetReshape_test.py | apexxs/dldt | 17e66dc5a6631d630da454506902bd7c25d4170b | [
"Apache-2.0"
] | 6 | 2022-01-11T18:56:22.000Z | 2022-02-21T13:20:20.000Z | model-optimizer/extensions/middle/ShufflenetReshape_test.py | apexxs/dldt | 17e66dc5a6631d630da454506902bd7c25d4170b | [
"Apache-2.0"
] | 3 | 2021-02-05T17:11:17.000Z | 2021-04-19T08:33:31.000Z | """
Copyright (c) 2018 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wri... | 54.308458 | 96 | 0.457585 | 1,063 | 10,916 | 4.393227 | 0.117592 | 0.078158 | 0.068308 | 0.099358 | 0.783084 | 0.783084 | 0.770664 | 0.743897 | 0.702355 | 0.700857 | 0 | 0.071483 | 0.397673 | 10,916 | 200 | 97 | 54.58 | 0.638783 | 0.055698 | 0 | 0.8 | 0 | 0 | 0.264386 | 0 | 0 | 0 | 0 | 0 | 0.025 | 1 | 0.025 | false | 0 | 0.025 | 0 | 0.0625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
d7655c4482e0317261258dc036704b87ddac7be8 | 1,468 | py | Python | main.py | VJPranay/getAllYoutubeChannelVideos | b98e8f4fe48c784883d5f2daef1e68e922b60d03 | [
"MIT"
] | 1 | 2020-01-22T08:02:57.000Z | 2020-01-22T08:02:57.000Z | main.py | VJPranay/getAllYoutubeChannelVideos | b98e8f4fe48c784883d5f2daef1e68e922b60d03 | [
"MIT"
] | null | null | null | main.py | VJPranay/getAllYoutubeChannelVideos | b98e8f4fe48c784883d5f2daef1e68e922b60d03 | [
"MIT"
] | null | null | null | import requests
import csv
r = requests.get('https://www.googleapis.com/youtube/v3/playlistItems?part=snippet&maxResults=50&playlistId=UUBhADBpNLBo8IP027XrxKAw&key={YOUR_API_KEY}')
d = r.json()
with open('videos.csv', 'w') as csvFile:
writer = csv.writer(csvFile)
fields = ["title","video"]
writer = csv.Di... | 40.777778 | 174 | 0.673025 | 182 | 1,468 | 5.395604 | 0.28022 | 0.04888 | 0.03666 | 0.051935 | 0.800407 | 0.800407 | 0.800407 | 0.800407 | 0.800407 | 0.800407 | 0 | 0.016562 | 0.13624 | 1,468 | 36 | 175 | 40.777778 | 0.757886 | 0 | 0 | 0.555556 | 0 | 0.111111 | 0.487406 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.074074 | 0 | 0.074074 | 0.148148 | 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 |
ad50994258f92a94d54a387368439cf70f5453df | 90 | py | Python | mayan/apps/document_indexing/views/__init__.py | CMU-313/fall-2021-hw2-451-unavailable-for-legal-reasons | 0e4e919fd2e1ded6711354a0330135283e87f8c7 | [
"Apache-2.0"
] | 2 | 2021-09-12T19:41:19.000Z | 2021-09-12T19:41:20.000Z | mayan/apps/document_indexing/views/__init__.py | CMU-313/fall-2021-hw2-451-unavailable-for-legal-reasons | 0e4e919fd2e1ded6711354a0330135283e87f8c7 | [
"Apache-2.0"
] | 37 | 2021-09-13T01:00:12.000Z | 2021-10-02T03:54:30.000Z | mayan/apps/document_indexing/views/__init__.py | CMU-313/fall-2021-hw2-451-unavailable-for-legal-reasons | 0e4e919fd2e1ded6711354a0330135283e87f8c7 | [
"Apache-2.0"
] | 1 | 2021-09-22T13:17:30.000Z | 2021-09-22T13:17:30.000Z | from .index_instance_views import * # NOQA
from .index_template_views import * # NOQA
| 30 | 44 | 0.755556 | 12 | 90 | 5.333333 | 0.583333 | 0.28125 | 0.46875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.177778 | 90 | 2 | 45 | 45 | 0.864865 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
d16367e87bb677855fba128c43d95924ddb6bd4b | 27,563 | py | Python | sdk/python/pulumi_kubernetes/authorization/v1beta1/outputs.py | polivbr/pulumi-kubernetes | 36a5fb34240a38a60b52a5f4e55e66e248d9305f | [
"Apache-2.0"
] | 277 | 2018-06-18T14:57:09.000Z | 2022-03-29T04:05:06.000Z | sdk/python/pulumi_kubernetes/authorization/v1beta1/outputs.py | polivbr/pulumi-kubernetes | 36a5fb34240a38a60b52a5f4e55e66e248d9305f | [
"Apache-2.0"
] | 1,447 | 2018-06-20T00:58:34.000Z | 2022-03-31T21:28:43.000Z | sdk/python/pulumi_kubernetes/authorization/v1beta1/outputs.py | polivbr/pulumi-kubernetes | 36a5fb34240a38a60b52a5f4e55e66e248d9305f | [
"Apache-2.0"
] | 95 | 2018-06-30T03:30:05.000Z | 2022-03-29T04:05:09.000Z | # coding=utf-8
# *** WARNING: this file was generated by pulumigen. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
from . import outp... | 45.111293 | 374 | 0.665131 | 3,236 | 27,563 | 5.53152 | 0.090853 | 0.025196 | 0.02324 | 0.033966 | 0.80933 | 0.779944 | 0.738827 | 0.70905 | 0.696872 | 0.687765 | 0 | 0.000048 | 0.24834 | 27,563 | 610 | 375 | 45.185246 | 0.863935 | 0.421616 | 0 | 0.58 | 1 | 0.017143 | 0.159206 | 0.050445 | 0 | 0 | 0 | 0 | 0 | 1 | 0.168571 | false | 0 | 0.017143 | 0 | 0.337143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
d1671857f789718ccaeac23d8e3969d13ff0d12b | 987 | py | Python | src/speech_features_kit/Volume/Volume.py | dhchenx/speech-feature-kit | e92e053fc756127c7679d58a5df22cbb73040dd6 | [
"MIT"
] | null | null | null | src/speech_features_kit/Volume/Volume.py | dhchenx/speech-feature-kit | e92e053fc756127c7679d58a5df22cbb73040dd6 | [
"MIT"
] | null | null | null | src/speech_features_kit/Volume/Volume.py | dhchenx/speech-feature-kit | e92e053fc756127c7679d58a5df22cbb73040dd6 | [
"MIT"
] | null | null | null | import math
import numpy as np
# method 1: absSum
def calVolume(waveData, frameSize, overLap):
wlen = len(waveData)
step = frameSize - overLap
frameNum = int(math.ceil(wlen*1.0/step))
volume = np.zeros((frameNum,1))
for i in range(frameNum):
curFrame = waveData[np.arange(i*step,min(i*step+f... | 35.25 | 73 | 0.662614 | 135 | 987 | 4.844444 | 0.318519 | 0.097859 | 0.082569 | 0.085627 | 0.727829 | 0.727829 | 0.727829 | 0.727829 | 0.727829 | 0.602446 | 0 | 0.01788 | 0.206687 | 987 | 27 | 74 | 36.555556 | 0.817369 | 0.125633 | 0 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.090909 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.