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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3dda0058f224bd21325e698701be29d017ab6010 | 80 | py | Python | nmt/utils/__init__.py | jojkos/neural-machine-translation | c123dbfb66314050dfbe0b0e46899ef2f44500da | [
"MIT"
] | null | null | null | nmt/utils/__init__.py | jojkos/neural-machine-translation | c123dbfb66314050dfbe0b0e46899ef2f44500da | [
"MIT"
] | null | null | null | nmt/utils/__init__.py | jojkos/neural-machine-translation | c123dbfb66314050dfbe0b0e46899ef2f44500da | [
"MIT"
] | 1 | 2019-07-17T07:51:06.000Z | 2019-07-17T07:51:06.000Z | from .data_utils import *
from .script_utils import *
from .math_utils import *
| 20 | 27 | 0.775 | 12 | 80 | 4.916667 | 0.5 | 0.559322 | 0.508475 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15 | 80 | 3 | 28 | 26.666667 | 0.867647 | 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 | 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 | 7 |
9a7c137d641c0900ffed3cdc819ad3689c661c84 | 40 | py | Python | fancyprint/__init__.py | anthony-aylward/fancyprint | c4cf7f76260921a1dfb145bf4dd4f5272b203115 | [
"MIT"
] | null | null | null | fancyprint/__init__.py | anthony-aylward/fancyprint | c4cf7f76260921a1dfb145bf4dd4f5272b203115 | [
"MIT"
] | null | null | null | fancyprint/__init__.py | anthony-aylward/fancyprint | c4cf7f76260921a1dfb145bf4dd4f5272b203115 | [
"MIT"
] | null | null | null | from fancyprint.fancyprint import fprint | 40 | 40 | 0.9 | 5 | 40 | 7.2 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075 | 40 | 1 | 40 | 40 | 0.972973 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 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 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 7 |
9adc6f444dd374bd95ca13187c30084e3e307c5e | 51,651 | py | Python | ros2_plan_t1/plan_t1/cp.py | rapa5Gclass/ddrawaddaraga | 285653cfd5c4980296477710bec7f8acf404aa2d | [
"Apache-2.0"
] | null | null | null | ros2_plan_t1/plan_t1/cp.py | rapa5Gclass/ddrawaddaraga | 285653cfd5c4980296477710bec7f8acf404aa2d | [
"Apache-2.0"
] | null | null | null | ros2_plan_t1/plan_t1/cp.py | rapa5Gclass/ddrawaddaraga | 285653cfd5c4980296477710bec7f8acf404aa2d | [
"Apache-2.0"
] | null | null | null | # generated from rosidl_generator_py/resource/_idl.py.em
# with input from nav2_msgs:action/ComputePathThroughPoses.idl
# generated code does not contain a copyright notice
# Import statements for member types
import rosidl_parser.definition # noqa: E402, I100
class Metaclass_ComputePathThroughPoses_Goal(type):
... | 39.57931 | 147 | 0.64748 | 5,673 | 51,651 | 5.465715 | 0.043011 | 0.040797 | 0.044119 | 0.056374 | 0.825104 | 0.797401 | 0.769213 | 0.759183 | 0.747218 | 0.730835 | 0 | 0.006484 | 0.271379 | 51,651 | 1,304 | 148 | 39.609663 | 0.817426 | 0.113957 | 0 | 0.675205 | 1 | 0 | 0.096224 | 0.024858 | 0 | 0 | 0 | 0 | 0.032787 | 1 | 0.086066 | false | 0.008197 | 0.160861 | 0.008197 | 0.419057 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
9ae9d9e56180bb81a6c048f38f62bb0ab888f315 | 149 | py | Python | nnatest_api/user/tests/test_user_view.py | marcelotrevisani/nnatest_api | e4858e2348bf041ad2bc0674a6316bf046305701 | [
"MIT"
] | null | null | null | nnatest_api/user/tests/test_user_view.py | marcelotrevisani/nnatest_api | e4858e2348bf041ad2bc0674a6316bf046305701 | [
"MIT"
] | null | null | null | nnatest_api/user/tests/test_user_view.py | marcelotrevisani/nnatest_api | e4858e2348bf041ad2bc0674a6316bf046305701 | [
"MIT"
] | null | null | null | import pytest
from django.contrib.auth import get_user_model
def create_user(**params):
return get_user_model().objects.create_user(**params)
| 18.625 | 57 | 0.785235 | 22 | 149 | 5.045455 | 0.636364 | 0.126126 | 0.216216 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114094 | 149 | 7 | 58 | 21.285714 | 0.840909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | true | 0 | 0.5 | 0.25 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 8 |
9af6c9cc1715b3a56859120487eebc9dcb6ff631 | 2,231 | py | Python | pynes/tests/dec_test.py | timgates42/pyNES | e385c7189eca44b9a9e0e781b28c8562e0647b0b | [
"BSD-3-Clause"
] | 1,046 | 2015-02-10T02:23:58.000Z | 2022-03-16T02:42:02.000Z | pynes/tests/dec_test.py | mcanthony/pyNES | 5f6078c02ae1fe9c6fecb4a8490f82f8c721cf3b | [
"BSD-3-Clause"
] | 30 | 2015-02-11T15:21:10.000Z | 2022-03-11T23:12:26.000Z | pynes/tests/dec_test.py | mcanthony/pyNES | 5f6078c02ae1fe9c6fecb4a8490f82f8c721cf3b | [
"BSD-3-Clause"
] | 132 | 2015-05-28T14:55:04.000Z | 2021-12-09T18:58:45.000Z | # -*- coding: utf-8 -*-
import unittest
from pynes.compiler import lexical, syntax, semantic
class DecTest(unittest.TestCase):
def test_dec_zp(self):
tokens = list(lexical('DEC $00'))
self.assertEquals(2, len(tokens))
self.assertEquals('T_INSTRUCTION', tokens[0]['type'])
self.as... | 37.813559 | 61 | 0.609592 | 270 | 2,231 | 4.940741 | 0.203704 | 0.35982 | 0.152924 | 0.110195 | 0.856072 | 0.82009 | 0.778111 | 0.778111 | 0.778111 | 0.713643 | 0 | 0.040758 | 0.219184 | 2,231 | 58 | 62 | 38.465517 | 0.725029 | 0.009413 | 0 | 0.612245 | 0 | 0 | 0.133152 | 0 | 0 | 0 | 0.018116 | 0 | 0.612245 | 1 | 0.081633 | false | 0 | 0.040816 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
b1177d5b97e55775ba28fb65f6792f4b5cfa2aca | 3,396 | py | Python | Views/TrackingPanel.py | fefelson/FelsonSports | bc0c16d63b19ffe4d468dcda5ab224013abe23fa | [
"MIT"
] | null | null | null | Views/TrackingPanel.py | fefelson/FelsonSports | bc0c16d63b19ffe4d468dcda5ab224013abe23fa | [
"MIT"
] | null | null | null | Views/TrackingPanel.py | fefelson/FelsonSports | bc0c16d63b19ffe4d468dcda5ab224013abe23fa | [
"MIT"
] | null | null | null | import matplotlib
matplotlib.use('WXAgg')
from matplotlib.figure import Figure
from matplotlib.backends.backend_wxagg import FigureCanvasWxAgg as FigureCanvas
from matplotlib.backends.backend_wxagg import NavigationToolbar2WxAgg as NavigationToolbar2Wx
import wx
from pprint import pprint
class NCAABTrackingPanel(wx.P... | 33.294118 | 93 | 0.555654 | 452 | 3,396 | 4.134956 | 0.196903 | 0.059925 | 0.057785 | 0.047084 | 0.872124 | 0.872124 | 0.82932 | 0.812199 | 0.773676 | 0.773676 | 0 | 0.026174 | 0.291225 | 3,396 | 101 | 94 | 33.623762 | 0.750312 | 0 | 0 | 0.746667 | 0 | 0 | 0.024441 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.053333 | false | 0 | 0.08 | 0 | 0.16 | 0.013333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 7 |
b172e7642739bc4669e10c1336c61346215a68de | 90 | py | Python | suitcase/mongo_embedded/conftest.py | mrakitin/suitcase-mongo | 5f150dde5f3ec5f11aa0b2076113211f941dbb3f | [
"BSD-3-Clause"
] | 1 | 2021-03-26T14:17:16.000Z | 2021-03-26T14:17:16.000Z | suitcase/mongo_embedded/conftest.py | mrakitin/suitcase-mongo | 5f150dde5f3ec5f11aa0b2076113211f941dbb3f | [
"BSD-3-Clause"
] | 15 | 2019-01-30T15:04:07.000Z | 2019-04-29T14:23:20.000Z | suitcase/mongo_embedded/conftest.py | mrakitin/suitcase-mongo | 5f150dde5f3ec5f11aa0b2076113211f941dbb3f | [
"BSD-3-Clause"
] | 3 | 2019-06-04T16:38:12.000Z | 2020-12-04T22:29:09.000Z | from bluesky.tests.conftest import RE # noqa
from ophyd.tests.conftest import hw # noqa
| 30 | 45 | 0.777778 | 14 | 90 | 5 | 0.642857 | 0.371429 | 0.542857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155556 | 90 | 2 | 46 | 45 | 0.921053 | 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 | 1 | 0 | 0 | 7 |
b1ace9a1ad81c4984c3d280dae564bd7878143f5 | 1,681 | py | Python | 03.26.21 - Calculadora.py | AdamastorLinsFrancaNetto/python-iniciante | 1dab7f824559e5d3db3f28b3e408d3899a5209b4 | [
"MIT"
] | null | null | null | 03.26.21 - Calculadora.py | AdamastorLinsFrancaNetto/python-iniciante | 1dab7f824559e5d3db3f28b3e408d3899a5209b4 | [
"MIT"
] | null | null | null | 03.26.21 - Calculadora.py | AdamastorLinsFrancaNetto/python-iniciante | 1dab7f824559e5d3db3f28b3e408d3899a5209b4 | [
"MIT"
] | null | null | null | #Implemente um script Python que consista em uma calculadora básica de quatro operações (soma, subtração, multiplicação e divisão)
sn='s'
while sn == 's':
n1=float(input('\nNúmero: '))
op=str(input('+ - * /: '))
while op != '+' and op != '-' and op != '*' and op != '/':
op=str(input('Informe uma da... | 32.960784 | 130 | 0.490184 | 228 | 1,681 | 3.614035 | 0.236842 | 0.07767 | 0.07767 | 0.165049 | 0.78034 | 0.769417 | 0.769417 | 0.769417 | 0.769417 | 0.769417 | 0 | 0.030057 | 0.267698 | 1,681 | 50 | 131 | 33.62 | 0.639318 | 0.078525 | 0 | 0.75 | 0 | 0 | 0.385612 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.025 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 1 | 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 | 7 |
49655b7aa01893c16f0de6f15d47ed273d05d267 | 40 | py | Python | gsa_pytorch/__init__.py | lucidrains/global-self-attention-network | c31594a40d9d10bad9d60dc3a87fb76bbb7b0de9 | [
"MIT"
] | 82 | 2020-10-03T00:35:22.000Z | 2022-03-29T12:43:31.000Z | gsa_pytorch/__init__.py | Forsaken-core/global-self-attention-network | c31594a40d9d10bad9d60dc3a87fb76bbb7b0de9 | [
"MIT"
] | 3 | 2020-10-20T14:21:14.000Z | 2020-12-31T03:57:26.000Z | gsa_pytorch/__init__.py | Forsaken-core/global-self-attention-network | c31594a40d9d10bad9d60dc3a87fb76bbb7b0de9 | [
"MIT"
] | 11 | 2020-10-07T02:34:36.000Z | 2021-12-14T11:26:25.000Z | from gsa_pytorch.gsa_pytorch import GSA
| 20 | 39 | 0.875 | 7 | 40 | 4.714286 | 0.571429 | 0.606061 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 40 | 1 | 40 | 40 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 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 | 7 |
499fd4658dcc008654676e21c6245144a127b2fd | 24,912 | py | Python | tests/tests_dataprovider_integration.py | Open-CMMS/openCMMS_backend | 56511ebac83a5dc1fb8768a98bc675e88530a447 | [
"BSD-3-Clause"
] | 3 | 2021-03-08T19:14:38.000Z | 2022-02-01T17:57:31.000Z | tests/tests_dataprovider_integration.py | Open-CMMS/openCMMS_backend | 56511ebac83a5dc1fb8768a98bc675e88530a447 | [
"BSD-3-Clause"
] | null | null | null | tests/tests_dataprovider_integration.py | Open-CMMS/openCMMS_backend | 56511ebac83a5dc1fb8768a98bc675e88530a447 | [
"BSD-3-Clause"
] | null | null | null | import os
import pytest
from init_db_tests import init_db
from django.contrib.auth.models import Permission
from django.test import TestCase
from maintenancemanagement.models import Equipment, Field
from openCMMS.settings import BASE_DIR
from rest_framework.test import APIClient
from usersmanagement.models import Use... | 44.645161 | 152 | 0.609626 | 2,833 | 24,912 | 5.219202 | 0.080127 | 0.032531 | 0.023671 | 0.012647 | 0.863993 | 0.855336 | 0.823752 | 0.813878 | 0.784255 | 0.765521 | 0 | 0.016962 | 0.294758 | 24,912 | 557 | 153 | 44.725314 | 0.824634 | 0.256382 | 0 | 0.634731 | 0 | 0 | 0.212727 | 0.057891 | 0 | 0 | 0 | 0 | 0.077844 | 1 | 0.065868 | false | 0.050898 | 0.038922 | 0 | 0.107784 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 7 |
77299809b26ce62dc1fe864f8dd4e5686e21f77b | 76,651 | py | Python | objectModel/Python/tests/cdm/resolution_guidance/test_resolution_guidance_cardinality.py | MiguelSHS/microsoftCDM | d8df31fa455fcc6afd698e3ca7ec0f8c4a6716fd | [
"CC-BY-4.0",
"MIT"
] | 1 | 2021-03-05T03:35:58.000Z | 2021-03-05T03:35:58.000Z | objectModel/Python/tests/cdm/resolution_guidance/test_resolution_guidance_cardinality.py | spbast/CDM | bf97a3720c97ee4c9df3625084cf8b3bc65ff9c7 | [
"CC-BY-4.0",
"MIT"
] | 38 | 2021-09-07T21:23:21.000Z | 2022-03-14T01:36:58.000Z | objectModel/Python/tests/cdm/resolution_guidance/test_resolution_guidance_cardinality.py | spbast/CDM | bf97a3720c97ee4c9df3625084cf8b3bc65ff9c7 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
from tests.cdm.resolution_guidance import common_test
from tests.common import async_test
from tests.utilities.object_validator import AttributeContextExpectedValue... | 53.979577 | 258 | 0.775946 | 6,566 | 76,651 | 8.622297 | 0.018581 | 0.074893 | 0.033914 | 0.027555 | 0.973911 | 0.957873 | 0.94625 | 0.940085 | 0.936076 | 0.929346 | 0 | 0.022743 | 0.163064 | 76,651 | 1,419 | 259 | 54.017618 | 0.859755 | 0.001957 | 0 | 0.794964 | 0 | 0 | 0.341896 | 0.312606 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.002698 | 0 | 0.003597 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 7 |
77455218233752512da621b81d7a4534b1e3f03e | 3,141 | py | Python | lib/models/map_modules/map_conv.py | CFM-MSG/Code_LEORN | fabea1e1ded973a4db692e51e2df442bde55f626 | [
"MIT"
] | 1 | 2022-01-31T03:23:37.000Z | 2022-01-31T03:23:37.000Z | lib/models/map_modules/map_conv.py | CFM-MSG/Code_LEORN | fabea1e1ded973a4db692e51e2df442bde55f626 | [
"MIT"
] | null | null | null | lib/models/map_modules/map_conv.py | CFM-MSG/Code_LEORN | fabea1e1ded973a4db692e51e2df442bde55f626 | [
"MIT"
] | null | null | null | from torch import nn
import torch.nn.functional as F
from models.map_modules import get_padded_mask_and_weight
class MapConv(nn.Module):
def __init__(self, cfg):
super(MapConv, self).__init__()
input_size = cfg.INPUT_SIZE # 512
hidden_sizes = cfg.HIDDEN_SIZES # [512, 512, 512, 512, 512,... | 44.239437 | 92 | 0.574021 | 458 | 3,141 | 3.755459 | 0.155022 | 0.032558 | 0.04186 | 0.046512 | 0.825581 | 0.812791 | 0.812791 | 0.781395 | 0.709302 | 0.709302 | 0 | 0.065365 | 0.298631 | 3,141 | 71 | 93 | 44.239437 | 0.715388 | 0.109201 | 0 | 0.709677 | 0 | 0 | 0.001437 | 0 | 0 | 0 | 0 | 0 | 0.032258 | 1 | 0.064516 | false | 0 | 0.048387 | 0 | 0.177419 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 7 |
620d6da422257473a3e0b00dfa88aa83620e22c0 | 18,933 | py | Python | platform/core/tests/test_auditor/test_auditor_build_job.py | hackerwins/polyaxon | ff56a098283ca872abfbaae6ba8abba479ffa394 | [
"Apache-2.0"
] | null | null | null | platform/core/tests/test_auditor/test_auditor_build_job.py | hackerwins/polyaxon | ff56a098283ca872abfbaae6ba8abba479ffa394 | [
"Apache-2.0"
] | null | null | null | platform/core/tests/test_auditor/test_auditor_build_job.py | hackerwins/polyaxon | ff56a098283ca872abfbaae6ba8abba479ffa394 | [
"Apache-2.0"
] | null | null | null | # pylint:disable=ungrouped-imports
from unittest.mock import patch
import pytest
import auditor
from events.registry import build_job as build_job_events
from factories.factory_build_jobs import BuildJobFactory
from factories.factory_projects import ProjectFactory
from tests.test_auditor.utils import AuditorBaseTes... | 46.178049 | 79 | 0.615116 | 1,823 | 18,933 | 6.027976 | 0.043335 | 0.090272 | 0.1092 | 0.059696 | 0.944035 | 0.943944 | 0.900264 | 0.873237 | 0.873237 | 0.868869 | 0 | 0.007013 | 0.314689 | 18,933 | 409 | 80 | 46.290954 | 0.839923 | 0.003116 | 0 | 0.77933 | 0 | 0 | 0.207388 | 0.205639 | 0 | 0 | 0 | 0 | 0.223464 | 1 | 0.058659 | false | 0 | 0.019553 | 0 | 0.083799 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 7 |
6560aaad30544d619056a21227a12d1b8fb2982a | 5,552 | py | Python | xwp/spectral_1d.py | s-sajid-ali/xray_wave_propagators | 2540f0d4009f202d7dcd2b994b598fa54c151359 | [
"MIT"
] | 4 | 2019-01-12T22:43:03.000Z | 2021-05-09T17:32:45.000Z | xwp/spectral_1d.py | s-sajid-ali/xray_wave_propagators | 2540f0d4009f202d7dcd2b994b598fa54c151359 | [
"MIT"
] | null | null | null | xwp/spectral_1d.py | s-sajid-ali/xray_wave_propagators | 2540f0d4009f202d7dcd2b994b598fa54c151359 | [
"MIT"
] | null | null | null | #1D versions of propagators
import numpy as np
__all__ = ['propTF',
'prop1FT',
'propFF',
'propIR']
'''
Propogation using the Transfer function method.
Inputs -
u : profile of the beam at the input plane.
step : is the sampling step size at the input plane.
L1 ... | 27.349754 | 81 | 0.559978 | 986 | 5,552 | 3.124746 | 0.123732 | 0.038948 | 0.027264 | 0.029211 | 0.8111 | 0.800065 | 0.78481 | 0.778968 | 0.776696 | 0.760143 | 0 | 0.034835 | 0.276117 | 5,552 | 202 | 82 | 27.485149 | 0.731774 | 0.130944 | 0 | 0.786517 | 0 | 0.022472 | 0.059797 | 0.049662 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078652 | false | 0 | 0.044944 | 0 | 0.202247 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 7 |
656e1a531742b980122139e358de7f967d633c43 | 2,833 | py | Python | tests/data/nextbus/multi_predict_two.py | tylernorth/public-transit | e2430078557adf9d2ad03d794ea551a7b06ce145 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | tests/data/nextbus/multi_predict_two.py | tylernorth/public-transit | e2430078557adf9d2ad03d794ea551a7b06ce145 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | tests/data/nextbus/multi_predict_two.py | tylernorth/public-transit | e2430078557adf9d2ad03d794ea551a7b06ce145 | [
"BSD-2-Clause-FreeBSD"
] | 3 | 2017-03-17T11:54:09.000Z | 2022-01-21T05:07:16.000Z | text = '''<?xml version="1.0" encoding="utf-8" ?>
<body copyright="All data copyright San Francisco Muni 2015.">
<predictions agencyTitle="San Francisco Muni" routeTitle="38-Geary" routeTag="38" stopTitle="43rd Ave & Point Lobos Ave" stopTag="13568">
<direction title="Inbound to Downtown">
<prediction epochTim... | 97.689655 | 181 | 0.74797 | 361 | 2,833 | 5.753463 | 0.33241 | 0.091478 | 0.158883 | 0.178142 | 0.779971 | 0.779971 | 0.779971 | 0.731825 | 0.731825 | 0.731825 | 0 | 0.162611 | 0.086128 | 2,833 | 28 | 182 | 101.178571 | 0.639629 | 0 | 1 | 0.428571 | 0 | 0.5 | 0.995058 | 0.187787 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
65a2f412793ec040dc1157cf255558bf6e1956fe | 2,921 | py | Python | twitter_api_handler/MapStatusToList.py | DanielFrc/twitter-stream | 28cb239742d851cb1ca8675f386ce206412c32ab | [
"MIT"
] | null | null | null | twitter_api_handler/MapStatusToList.py | DanielFrc/twitter-stream | 28cb239742d851cb1ca8675f386ce206412c32ab | [
"MIT"
] | null | null | null | twitter_api_handler/MapStatusToList.py | DanielFrc/twitter-stream | 28cb239742d851cb1ca8675f386ce206412c32ab | [
"MIT"
] | null | null | null | from util import constants as constants
class MapStatusToList:
def map_tweepy_list (self, tweets):
"""
Function to map status object to a simple list (csv compatible)
Params:
tweets(obj): List of tweets in raw format
Return:
tweets_list(Array... | 39.472973 | 71 | 0.441972 | 262 | 2,921 | 4.660305 | 0.229008 | 0.063063 | 0.09828 | 0.11466 | 0.845209 | 0.845209 | 0.845209 | 0.845209 | 0.845209 | 0.845209 | 0 | 0 | 0.504279 | 2,921 | 74 | 72 | 39.472973 | 0.843232 | 0.137624 | 0 | 0.821429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.017857 | 0 | 0.107143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 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 | 8 |
02b468f51a88bb9d1a55bb8fee9114244dc05a33 | 2,270 | py | Python | tests/e2e/test_requests_custom.py | CarlosAMolina/requests | 47972fc7c0a1f786a90900222fdadae24c0c0d51 | [
"MIT"
] | 1 | 2020-11-11T11:17:48.000Z | 2020-11-11T11:17:48.000Z | tests/e2e/test_requests_custom.py | CarlosAMolina/requests | 47972fc7c0a1f786a90900222fdadae24c0c0d51 | [
"MIT"
] | 3 | 2021-04-27T20:13:41.000Z | 2021-04-27T20:13:46.000Z | tests/e2e/test_requests_custom.py | CarlosAMolina/requests | 47972fc7c0a1f786a90900222fdadae24c0c0d51 | [
"MIT"
] | null | null | null | import unittest
from requests import exceptions
from requests_custom.requests_custom import RequestsCustom
class TestRequestsCustom(unittest.TestCase):
"""
.. _URLs information
https://httpstat.us/.
"""
def test_get_url_with_a_correct_response_works(self):
requests_custom = Requests... | 36.612903 | 83 | 0.703965 | 256 | 2,270 | 5.878906 | 0.253906 | 0.251163 | 0.07907 | 0.074419 | 0.802658 | 0.802658 | 0.778738 | 0.760133 | 0.760133 | 0.716944 | 0 | 0.016807 | 0.213656 | 2,270 | 61 | 84 | 37.213115 | 0.826331 | 0.019824 | 0 | 0.565217 | 0 | 0 | 0.09941 | 0 | 0 | 0 | 0 | 0 | 0.086957 | 1 | 0.086957 | false | 0 | 0.065217 | 0 | 0.173913 | 0 | 0 | 0 | 0 | null | 1 | 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 | 7 |
02d04b4d0db5df29cdba9b5b024159dbc904300f | 107 | py | Python | examples/Movie-Lens/best_params/__init__.py | faizanahemad/Hybrid-Weighted-Embedding-Recommender | 904a27c4b0126935735aee689408b2b6acf4af9a | [
"MIT"
] | 12 | 2019-11-29T00:06:01.000Z | 2021-07-01T10:43:58.000Z | examples/Movie-Lens/best_params/__init__.py | kiminh/Hybrid-Weighted-Embedding-Recommender | 457c4f13521aefa70476947c5849e85482abc3d4 | [
"MIT"
] | 10 | 2020-03-31T09:54:00.000Z | 2022-03-12T00:05:21.000Z | examples/Movie-Lens/best_params/__init__.py | kiminh/Hybrid-Weighted-Embedding-Recommender | 457c4f13521aefa70476947c5849e85482abc3d4 | [
"MIT"
] | 2 | 2019-12-10T04:11:32.000Z | 2020-10-29T02:57:01.000Z | from .gcn_ncf_100K import params as params_gcn_ncf_100K
from .gcn_ncf_1M import params as params_gcn_ncf_1M | 53.5 | 55 | 0.878505 | 22 | 107 | 3.818182 | 0.363636 | 0.285714 | 0.238095 | 0.47619 | 0.619048 | 0.619048 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 0.102804 | 107 | 2 | 56 | 53.5 | 0.791667 | 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 | 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 | 7 |
f30551b6ca496bbf75fe2f996b72a43e3be33181 | 39,790 | bzl | Python | 3rdparty/target_file.bzl | Jonathan-2287/bazel-deps | 514c479c1afd3c4c73c6181f977e1066d65ceb8f | [
"MIT"
] | 235 | 2016-07-26T02:10:16.000Z | 2022-03-31T06:23:15.000Z | 3rdparty/target_file.bzl | Jonathan-2287/bazel-deps | 514c479c1afd3c4c73c6181f977e1066d65ceb8f | [
"MIT"
] | 251 | 2016-06-23T03:53:26.000Z | 2022-03-24T18:18:19.000Z | 3rdparty/target_file.bzl | Jonathan-2287/bazel-deps | 514c479c1afd3c4c73c6181f977e1066d65ceb8f | [
"MIT"
] | 107 | 2016-08-22T06:12:57.000Z | 2022-02-01T19:18:25.000Z | # Do not edit. bazel-deps autogenerates this file from.
_JAVA_LIBRARY_TEMPLATE = """
java_library(
name = "{name}",
exports = [
{exports}
],
runtime_deps = [
{runtime_deps}
],
visibility = [
"{visibility}"
]
)\n"""
_SCALA_IMPORT_TEMPLATE = """
scala_import(
name = "{name}",
export... | 198.95 | 950 | 0.68007 | 4,930 | 39,790 | 5.322718 | 0.039148 | 0.125338 | 0.107237 | 0.026676 | 0.939332 | 0.914409 | 0.872375 | 0.827674 | 0.801723 | 0.750048 | 0 | 0.014555 | 0.026162 | 39,790 | 199 | 951 | 199.949749 | 0.662649 | 0.001332 | 0 | 0.180791 | 1 | 0.19774 | 0.845774 | 0.681658 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028249 | false | 0 | 0.169492 | 0.022599 | 0.225989 | 0.00565 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
f30d1c1344197ed61ecfb7de4c673a791a992e5f | 66 | py | Python | custom_addons/sales_practice/models/__init__.py | MonwarAdeeb/Bista_Solutions | d261e31f21ff03b2cc82b0c26d680036dca6d799 | [
"MIT"
] | null | null | null | custom_addons/sales_practice/models/__init__.py | MonwarAdeeb/Bista_Solutions | d261e31f21ff03b2cc82b0c26d680036dca6d799 | [
"MIT"
] | null | null | null | custom_addons/sales_practice/models/__init__.py | MonwarAdeeb/Bista_Solutions | d261e31f21ff03b2cc82b0c26d680036dca6d799 | [
"MIT"
] | null | null | null | from . import sales_practice
from . import sales_practice_inherit
| 22 | 36 | 0.848485 | 9 | 66 | 5.888889 | 0.555556 | 0.377358 | 0.566038 | 0.867925 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121212 | 66 | 2 | 37 | 33 | 0.913793 | 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 | 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 | 8 |
b83b6af738618f96f45710588f3cb85d0c2e4fef | 92 | py | Python | nnutil/visual/__init__.py | aroig/nnutil | 88df41ee89f592a28c1661ee8837dd8e8ca42cf3 | [
"BSD-3-Clause"
] | null | null | null | nnutil/visual/__init__.py | aroig/nnutil | 88df41ee89f592a28c1661ee8837dd8e8ca42cf3 | [
"BSD-3-Clause"
] | null | null | null | nnutil/visual/__init__.py | aroig/nnutil | 88df41ee89f592a28c1661ee8837dd8e8ca42cf3 | [
"BSD-3-Clause"
] | null | null | null | from .plot_sample import *
# For backwards compatibility
from ..util.print_sample import *
| 18.4 | 33 | 0.782609 | 12 | 92 | 5.833333 | 0.75 | 0.342857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141304 | 92 | 4 | 34 | 23 | 0.886076 | 0.293478 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0.5 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 7 |
b867d31001a9a733b1572df3f9738ca8ee119eae | 27,657 | py | Python | tests/test_models/test_heads.py | kartikwar/Swin-Transformer-Semantic-Segmentation | d9b33fbd30d8572a8806754a86c785b6342c0b2a | [
"Apache-2.0"
] | 7 | 2021-05-22T09:02:06.000Z | 2021-09-25T16:48:00.000Z | tests/test_models/test_heads.py | kartikwar/Swin-Transformer-Semantic-Segmentation | d9b33fbd30d8572a8806754a86c785b6342c0b2a | [
"Apache-2.0"
] | null | null | null | tests/test_models/test_heads.py | kartikwar/Swin-Transformer-Semantic-Segmentation | d9b33fbd30d8572a8806754a86c785b6342c0b2a | [
"Apache-2.0"
] | null | null | null | from unittest.mock import patch
import pytest
import torch
from mmcv.cnn import ConvModule, DepthwiseSeparableConvModule
from mmcv.utils import ConfigDict
from mmcv.utils.parrots_wrapper import SyncBatchNorm
from mmseg.models.decode_heads import (ANNHead, APCHead, ASPPHead, CCHead,
... | 33.122156 | 79 | 0.623857 | 3,801 | 27,657 | 4.364904 | 0.064983 | 0.075945 | 0.054246 | 0.054849 | 0.825206 | 0.78633 | 0.775842 | 0.765656 | 0.735278 | 0.717799 | 0 | 0.066221 | 0.254149 | 27,657 | 834 | 80 | 33.161871 | 0.738074 | 0.060889 | 0 | 0.712766 | 0 | 0 | 0.013393 | 0 | 0 | 0 | 0 | 0 | 0.218845 | 1 | 0.034954 | false | 0 | 0.012158 | 0 | 0.053191 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 7 |
b8717ebea5f9834d100cc2c50c69c83219dd6a5e | 142 | py | Python | mercadopago/config/__init__.py | nlgonzalez/sdk-python | 972082b1a1c0015fce376a42f53e4696b163bc0b | [
"MIT"
] | 100 | 2015-02-17T03:16:15.000Z | 2022-03-28T17:22:14.000Z | mercadopago/config/__init__.py | nlgonzalez/sdk-python | 972082b1a1c0015fce376a42f53e4696b163bc0b | [
"MIT"
] | 29 | 2015-06-15T18:40:09.000Z | 2022-02-24T15:36:03.000Z | mercadopago/config/__init__.py | nlgonzalez/sdk-python | 972082b1a1c0015fce376a42f53e4696b163bc0b | [
"MIT"
] | 58 | 2015-01-16T21:46:45.000Z | 2022-02-25T21:26:22.000Z | """
Module: config/__init__.py
"""
from mercadopago.config.request_options import RequestOptions
from mercadopago.config.config import Config
| 23.666667 | 61 | 0.823944 | 17 | 142 | 6.588235 | 0.588235 | 0.267857 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084507 | 142 | 5 | 62 | 28.4 | 0.861538 | 0.183099 | 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 | 1 | 0 | 0 | 7 |
b884b116fe819cd2f56e0b66a7932214b43db076 | 32,125 | py | Python | nlosExclusion/src/puGNSSPosCal.py | xiaoshitou4/GNSS-INS | 6ea16568d85eb1ed6b5cc49fb192dcba0e0f7491 | [
"Unlicense"
] | 3 | 2019-07-27T05:31:15.000Z | 2021-06-10T02:16:46.000Z | nlosExclusion/src/puGNSSPosCal.py | yxw027/GNSS-INS | e5c5b7901b270a9c4d3a0ffd5555843d969f4018 | [
"Unlicense"
] | null | null | null | nlosExclusion/src/puGNSSPosCal.py | yxw027/GNSS-INS | e5c5b7901b270a9c4d3a0ffd5555843d969f4018 | [
"Unlicense"
] | 3 | 2019-12-25T07:47:22.000Z | 2021-02-03T03:24:46.000Z | #!/usr/bin/env python
# license removed for brevity
"""
GNSS positioning calculation
Welson Wen, Ph.D.
https://sites.google.com/view/weisongwen/about-me
"""
from numpy import * # numpy needed
import matplotlib as mpl #plot needed
mpl.use("TkAgg") # Use TKAgg to show figures:set this to show plot
import matp... | 68.061441 | 204 | 0.634895 | 4,732 | 32,125 | 3.968512 | 0.065089 | 0.060493 | 0.085628 | 0.091166 | 0.842111 | 0.827414 | 0.824272 | 0.811705 | 0.79754 | 0.789339 | 0 | 0.025238 | 0.272311 | 32,125 | 472 | 205 | 68.061441 | 0.778072 | 0.272311 | 0 | 0.669211 | 0 | 0 | 0.004996 | 0.00241 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.045802 | null | null | 0.002545 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
b8934221f2ec1ecc673a063e8bc045bbb7e9c59c | 87 | py | Python | mapping/data_loader/__init__.py | syanga/model-augmented-mutual-information | a7c0ccb3b32320e9c45c266d668a879e240d39e3 | [
"MIT"
] | 2 | 2021-06-10T05:45:16.000Z | 2021-11-06T11:44:42.000Z | mapping/data_loader/__init__.py | syanga/model-augmented-mutual-information | a7c0ccb3b32320e9c45c266d668a879e240d39e3 | [
"MIT"
] | null | null | null | mapping/data_loader/__init__.py | syanga/model-augmented-mutual-information | a7c0ccb3b32320e9c45c266d668a879e240d39e3 | [
"MIT"
] | null | null | null | from .np_supervised import *
from .h5_supervised import *
from .h5_timeseries import *
| 21.75 | 28 | 0.793103 | 12 | 87 | 5.5 | 0.5 | 0.484848 | 0.606061 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026667 | 0.137931 | 87 | 3 | 29 | 29 | 0.853333 | 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 | 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 | 7 |
b8b1634f8e5ab1dc07d9ecf9c63754f10fa3fc7b | 52,400 | py | Python | flat_api/api/collection_api.py | FlatIO/api-client-python | 898d1da77989b3e9075f0311b6a4d342a72e95ef | [
"Apache-2.0"
] | 8 | 2017-04-09T15:54:12.000Z | 2021-07-14T13:38:43.000Z | flat_api/api/collection_api.py | FlatIO/api-client-python | 898d1da77989b3e9075f0311b6a4d342a72e95ef | [
"Apache-2.0"
] | 4 | 2018-07-20T13:22:40.000Z | 2022-03-23T20:03:21.000Z | flat_api/api/collection_api.py | FlatIO/api-client-python | 898d1da77989b3e9075f0311b6a4d342a72e95ef | [
"Apache-2.0"
] | 2 | 2018-05-29T08:29:59.000Z | 2018-07-23T07:16:13.000Z | # coding: utf-8
"""
Flat API
The Flat API allows you to easily extend the abilities of the [Flat Platform](https://flat.io), with a wide range of use cases including the following: * Creating and importing new music scores using MusicXML, MIDI, Guitar Pro (GP3, GP4, GP5, GPX, GP), PowerTab, TuxGuitar and Mus... | 53.524004 | 1,686 | 0.661641 | 6,470 | 52,400 | 5.16306 | 0.058733 | 0.040234 | 0.062865 | 0.01868 | 0.944619 | 0.940757 | 0.935279 | 0.928723 | 0.92567 | 0.918844 | 0 | 0.014483 | 0.256851 | 52,400 | 978 | 1,687 | 53.578732 | 0.843353 | 0.463302 | 0 | 0.801527 | 0 | 0.007634 | 0.197554 | 0.044649 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03626 | false | 0 | 0.007634 | 0 | 0.097328 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
b26464838281bee912d2363619722a03f8f03b88 | 64 | py | Python | go/dlgo/ttt/__init__.py | huynq55/alpha-zero-general | 7c7b8a9a09b79178157ec6b6d379a071c9f0994a | [
"MIT"
] | 1 | 2021-04-20T23:01:22.000Z | 2021-04-20T23:01:22.000Z | go/dlgo/ttt/__init__.py | huynq55/alpha-zero-general | 7c7b8a9a09b79178157ec6b6d379a071c9f0994a | [
"MIT"
] | null | null | null | go/dlgo/ttt/__init__.py | huynq55/alpha-zero-general | 7c7b8a9a09b79178157ec6b6d379a071c9f0994a | [
"MIT"
] | null | null | null | from dlgo.ttt.tttboard import *
from dlgo.ttt.ttttypes import *
| 21.333333 | 31 | 0.78125 | 10 | 64 | 5 | 0.6 | 0.32 | 0.44 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 64 | 2 | 32 | 32 | 0.892857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
b2a008af79069cf3277d72c67f254213a558af97 | 12,755 | py | Python | model/model_RelationalReasoning.py | haoyfan/SelfTime | 28cafe1171bcd2f300242fe0703840478ae53bf0 | [
"MIT"
] | 41 | 2020-10-08T12:27:02.000Z | 2022-02-07T03:28:56.000Z | model/model_RelationalReasoning.py | haoyfan/SelfTime | 28cafe1171bcd2f300242fe0703840478ae53bf0 | [
"MIT"
] | null | null | null | model/model_RelationalReasoning.py | haoyfan/SelfTime | 28cafe1171bcd2f300242fe0703840478ae53bf0 | [
"MIT"
] | 13 | 2021-01-15T03:17:55.000Z | 2022-03-23T19:04:29.000Z | # -*- coding: utf-8 -*-
import torch
from optim.pytorchtools import EarlyStopping
import torch.nn as nn
class RelationalReasoning(torch.nn.Module):
def __init__(self, backbone, feature_size=64):
super(RelationalReasoning, self).__init__()
self.backbone = backbone
self.relation_head = torch.nn.Sequenti... | 36.235795 | 101 | 0.619443 | 1,611 | 12,755 | 4.679081 | 0.112973 | 0.031839 | 0.02043 | 0.009552 | 0.957416 | 0.953569 | 0.936986 | 0.923057 | 0.91125 | 0.889493 | 0 | 0.023008 | 0.257154 | 12,755 | 351 | 102 | 36.339031 | 0.772559 | 0.08577 | 0 | 0.865385 | 0 | 0.003846 | 0.050077 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.011538 | 0 | 0.088462 | 0.034615 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 7 |
a2a4519512eac204e954f202e7af1ccff6bb708b | 2,053 | py | Python | python/tvm/relay/op/reduce.py | gaoxiong1/tvm | 6770f6b77252cf17a89ea7aeb292a2a54190cfff | [
"Apache-2.0"
] | null | null | null | python/tvm/relay/op/reduce.py | gaoxiong1/tvm | 6770f6b77252cf17a89ea7aeb292a2a54190cfff | [
"Apache-2.0"
] | null | null | null | python/tvm/relay/op/reduce.py | gaoxiong1/tvm | 6770f6b77252cf17a89ea7aeb292a2a54190cfff | [
"Apache-2.0"
] | null | null | null | """Reduce operators."""
# pylint: disable=redefined-builtin
from . import _make
def argmax(data, axis=None, keepdims=False, exclude=False):
"""Returns the indices of the maximum values along an axis.
Parameters
----------
data : relay.Expr
The input data
axis : None or int or tuple of in... | 31.584615 | 95 | 0.660984 | 297 | 2,053 | 4.558923 | 0.26936 | 0.035451 | 0.035451 | 0.029542 | 0.880355 | 0.880355 | 0.880355 | 0.880355 | 0.880355 | 0.880355 | 0 | 0 | 0.273746 | 2,053 | 64 | 96 | 32.078125 | 0.908115 | 0.783244 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0.2 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 8 |
a2ca122fdf88b843e6d3c5f4128d47846d4a9d74 | 11,455 | py | Python | api/response_modifiers.py | clearspending/api.clearspending.ru | ece8f9f5f1b37598cf12ad67e2a6da6214afc27c | [
"MIT"
] | 1 | 2019-01-15T16:52:58.000Z | 2019-01-15T16:52:58.000Z | api/response_modifiers.py | clearspending/api.clearspending.ru | ece8f9f5f1b37598cf12ad67e2a6da6214afc27c | [
"MIT"
] | null | null | null | api/response_modifiers.py | clearspending/api.clearspending.ru | ece8f9f5f1b37598cf12ad67e2a6da6214afc27c | [
"MIT"
] | null | null | null | # coding=utf-8
def modifier_select_rsp_contracts(parametersDict):
'''
модификатор входных параметров апи для коллекции контрактов
'''
maxResultsPerQuery = 50
try:
perpage = int(parametersDict.get("perpage", maxResultsPerQuery))
except:
perpage = maxResultsPerQuery
if perpage ... | 29.371795 | 89 | 0.590485 | 965 | 11,455 | 6.941969 | 0.115026 | 0.179131 | 0.048067 | 0.064786 | 0.917152 | 0.903866 | 0.891029 | 0.869981 | 0.850724 | 0.832363 | 0 | 0.023273 | 0.29856 | 11,455 | 389 | 90 | 29.447301 | 0.810454 | 0.074989 | 0 | 0.834375 | 0 | 0 | 0.16375 | 0.006346 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046875 | false | 0.04375 | 0 | 0 | 0.09375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 7 |
0c050caeea403f34df6fd62e8421208888e77566 | 503 | py | Python | functions_make_shirt_anthro_club.py | julencosme/python-crash-course | 6b37d7346e235273c266110932207cd67ce4eb0e | [
"MIT"
] | null | null | null | functions_make_shirt_anthro_club.py | julencosme/python-crash-course | 6b37d7346e235273c266110932207cd67ce4eb0e | [
"MIT"
] | null | null | null | functions_make_shirt_anthro_club.py | julencosme/python-crash-course | 6b37d7346e235273c266110932207cd67ce4eb0e | [
"MIT"
] | null | null | null | def make_shirt(size, message):
"""Display information regarding the size and message of a shirt."""
print("The shirt size is " + size +
" and the message will read: " + message + ".")
make_shirt('large', 'Archaeology Club')
def make_shirt(size, message):
"""Display information regarding the si... | 29.588235 | 72 | 0.646123 | 66 | 503 | 4.863636 | 0.287879 | 0.140187 | 0.121495 | 0.099688 | 0.841122 | 0.841122 | 0.841122 | 0.841122 | 0.841122 | 0.841122 | 0 | 0 | 0.222664 | 503 | 16 | 73 | 31.4375 | 0.820972 | 0.248509 | 0 | 0.75 | 0 | 0 | 0.370572 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
0c05ddf647aeb0272d2db1a00c2076be2092ee9b | 19,412 | py | Python | tests/test_managedblockchain/test_managedblockchain_nodes.py | orenmazor/moto | 4778377e8ecaf729d26602a2c5202b72c1438503 | [
"Apache-2.0"
] | null | null | null | tests/test_managedblockchain/test_managedblockchain_nodes.py | orenmazor/moto | 4778377e8ecaf729d26602a2c5202b72c1438503 | [
"Apache-2.0"
] | 4 | 2017-09-30T07:52:52.000Z | 2021-12-13T06:56:55.000Z | tests/test_managedblockchain/test_managedblockchain_nodes.py | orenmazor/moto | 4778377e8ecaf729d26602a2c5202b72c1438503 | [
"Apache-2.0"
] | 2 | 2021-11-24T08:05:43.000Z | 2021-11-25T16:18:48.000Z | from __future__ import unicode_literals
import boto3
import pytest
import sure # noqa
from botocore.exceptions import ClientError
from moto import mock_managedblockchain
from . import helpers
@mock_managedblockchain
def test_create_node():
conn = boto3.client("managedblockchain", region_name="us-east-1")
... | 35.23049 | 86 | 0.69797 | 1,917 | 19,412 | 6.90506 | 0.083464 | 0.052882 | 0.040795 | 0.054997 | 0.878296 | 0.876936 | 0.858956 | 0.848531 | 0.841278 | 0.832968 | 0 | 0.030542 | 0.197146 | 19,412 | 550 | 87 | 35.294545 | 0.8188 | 0.031733 | 0 | 0.753986 | 0 | 0 | 0.207641 | 0.086637 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038724 | false | 0 | 0.015945 | 0 | 0.05467 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 7 |
0c5b11eb1d09d9cb3dfddbdeede503e0411a5198 | 136 | py | Python | slot_attention/__init__.py | ajabri/slot-attention | 32acb6614f1bd511f2dc3c263f852ed2dbe9c213 | [
"MIT"
] | 247 | 2020-06-29T19:08:50.000Z | 2022-03-30T08:36:24.000Z | slot_attention/__init__.py | ajabri/slot-attention | 32acb6614f1bd511f2dc3c263f852ed2dbe9c213 | [
"MIT"
] | 7 | 2020-07-01T01:32:49.000Z | 2021-02-01T20:13:49.000Z | slot_attention/__init__.py | ajabri/slot-attention | 32acb6614f1bd511f2dc3c263f852ed2dbe9c213 | [
"MIT"
] | 26 | 2020-07-01T00:55:45.000Z | 2022-03-25T12:05:24.000Z | from slot_attention.slot_attention import SlotAttention
from slot_attention.slot_attention_experimental import SlotAttentionExperimental | 68 | 80 | 0.933824 | 15 | 136 | 8.133333 | 0.466667 | 0.42623 | 0.278689 | 0.344262 | 0.491803 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051471 | 136 | 2 | 80 | 68 | 0.945736 | 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 | 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 | 8 |
a7828daa74d1c8d8c37d01305c8089247a3d54d4 | 13,717 | py | Python | Visualizer/Source/Visualizer/ControlledDataSet.py | NB4444/BachelorProjectEnergyManager | d1fd93dcc83af6d6acd36b7efda364ac2aab90eb | [
"MIT"
] | null | null | null | Visualizer/Source/Visualizer/ControlledDataSet.py | NB4444/BachelorProjectEnergyManager | d1fd93dcc83af6d6acd36b7efda364ac2aab90eb | [
"MIT"
] | null | null | null | Visualizer/Source/Visualizer/ControlledDataSet.py | NB4444/BachelorProjectEnergyManager | d1fd93dcc83af6d6acd36b7efda364ac2aab90eb | [
"MIT"
] | null | null | null | import collections
from enum import Enum
from matplotlib import pyplot
from typing import Any, OrderedDict
from Visualizer.DataSet import DataSet
from Visualizer.Plotting.Plot import Plot
from Visualizer.Plotting.ScatterPlot import ScatterPlot
class ControlComparison(Enum):
MEAN = 0
MEDIAN = 1
OPTIMAL = ... | 53.582031 | 132 | 0.666764 | 1,479 | 13,717 | 5.82691 | 0.068966 | 0.078324 | 0.110466 | 0.052216 | 0.918543 | 0.897772 | 0.884892 | 0.875377 | 0.859016 | 0.858204 | 0 | 0.00208 | 0.263906 | 13,717 | 255 | 133 | 53.792157 | 0.851441 | 0 | 0 | 0.70283 | 0 | 0 | 0.066268 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051887 | false | 0 | 0.033019 | 0.014151 | 0.15566 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 7 |
a78e2c5f07cdbd4544044f31a7531a598c9e41e9 | 2,673 | py | Python | runner/runs/doom_bots_sweep.py | neevparikh/hierarchical-doom | 082f794b9c6101c4e94f15bf4f93c718ee219ea5 | [
"MIT"
] | 1 | 2021-11-19T19:39:36.000Z | 2021-11-19T19:39:36.000Z | runner/runs/doom_bots_sweep.py | neevparikh/hierarchical-doom | 082f794b9c6101c4e94f15bf4f93c718ee219ea5 | [
"MIT"
] | null | null | null | runner/runs/doom_bots_sweep.py | neevparikh/hierarchical-doom | 082f794b9c6101c4e94f15bf4f93c718ee219ea5 | [
"MIT"
] | null | null | null | from runner.run_description import RunDescription, Experiment, ParamGrid
_params = ParamGrid([
('seed', [42]),
])
_experiments = [
Experiment(
'bots_128_fs2_wide',
'python -m algorithms.appo.train_appo --env=doom_dwango5_bots_experimental --train_for_seconds=3600000 --algo=APPO --use_rnn=True ... | 66.825 | 409 | 0.689487 | 376 | 2,673 | 4.545213 | 0.236702 | 0.04213 | 0.039789 | 0.046811 | 0.856641 | 0.798128 | 0.798128 | 0.798128 | 0.798128 | 0.798128 | 0 | 0.09787 | 0.174336 | 2,673 | 39 | 410 | 68.538462 | 0.676484 | 0 | 0 | 0.333333 | 0 | 0.111111 | 0.623644 | 0.225215 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.027778 | 0 | 0.027778 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
3bef4a453b2029d62313a888cfe679efe08c8aae | 129 | py | Python | examples/dwf/dwf.py | useblocks/dwf | debfb79cecfa57310627c78c4e5c68e21f7c7b6f | [
"CC-BY-4.0"
] | 6 | 2017-11-24T08:47:06.000Z | 2021-06-25T12:02:06.000Z | examples/dwf/dwf.py | useblocks/dwf | debfb79cecfa57310627c78c4e5c68e21f7c7b6f | [
"CC-BY-4.0"
] | null | null | null | examples/dwf/dwf.py | useblocks/dwf | debfb79cecfa57310627c78c4e5c68e21f7c7b6f | [
"CC-BY-4.0"
] | null | null | null | class Tool: pass
class Documentation(Tool): pass
class Frustration(Tool): pass
class Dwf(Documentation, Frustration, Tool): pass
| 25.8 | 49 | 0.79845 | 17 | 129 | 6.058824 | 0.352941 | 0.31068 | 0.378641 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108527 | 129 | 4 | 50 | 32.25 | 0.895652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 1 | 0 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 7 |
ce09f4f51a51d6982cdc96bf07737b96c2700aef | 4,858 | py | Python | exkaldi/function_config.py | luvwinnie/exkaldi | c1149e3c88dfc66084e8a534fd8f4d4d92556d35 | [
"Apache-2.0"
] | 1 | 2021-04-02T03:02:14.000Z | 2021-04-02T03:02:14.000Z | exkaldi/function_config.py | luvwinnie/exkaldi | c1149e3c88dfc66084e8a534fd8f4d4d92556d35 | [
"Apache-2.0"
] | null | null | null | exkaldi/function_config.py | luvwinnie/exkaldi | c1149e3c88dfc66084e8a534fd8f4d4d92556d35 | [
"Apache-2.0"
] | null | null | null | def configure(name):
if name == 'compute_mfcc':
return {"--allow-downsample":["false",str],
"--allow-upsample":["false",str],
"--blackman-coeff":[0.42,float],
"--cepstral-lifter":[22,int],
"--channel":[-1,int],
"--debug-mel":["false",str],
"--dither":[1,int],
"--energy-floor":[0,int],
... | 31.751634 | 45 | 0.520996 | 595 | 4,858 | 4.245378 | 0.206723 | 0.072842 | 0.036025 | 0.041172 | 0.811956 | 0.811956 | 0.811956 | 0.811956 | 0.811956 | 0.795724 | 0 | 0.042631 | 0.155002 | 4,858 | 152 | 46 | 31.960526 | 0.572716 | 0 | 0 | 0.768212 | 0 | 0 | 0.463249 | 0.061149 | 0 | 0 | 0 | 0 | 0 | 1 | 0.006623 | false | 0 | 0 | 0 | 0.046358 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 7 |
ce33095d639f433a869a59cf8b5064b41dae7b53 | 159 | py | Python | tests/test_p_7_satz_von_pick.py | techrabbit58/uebung_informatik_vorkurs | e99312ae66ccccd6bfe45bfd3c3f43c01690659c | [
"Unlicense"
] | null | null | null | tests/test_p_7_satz_von_pick.py | techrabbit58/uebung_informatik_vorkurs | e99312ae66ccccd6bfe45bfd3c3f43c01690659c | [
"Unlicense"
] | null | null | null | tests/test_p_7_satz_von_pick.py | techrabbit58/uebung_informatik_vorkurs | e99312ae66ccccd6bfe45bfd3c3f43c01690659c | [
"Unlicense"
] | null | null | null | """
Teste die 'pick()' funktion.
"""
from tag_2.p_7_satz_von_pick import pick
def test_satz_von_pick():
assert pick(innenpunkte=37, randpunkte=42) == 57
| 17.666667 | 52 | 0.716981 | 26 | 159 | 4.076923 | 0.769231 | 0.132075 | 0.207547 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 0.144654 | 159 | 8 | 53 | 19.875 | 0.720588 | 0.176101 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.333333 | true | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
02303ee28bd0812092741fb2878896f54f4e827c | 35,065 | py | Python | stubs/wafregional.py | claytonbrown/troposphere | bf0f1e48b14f578de0221d50f711467ad716ca87 | [
"BSD-2-Clause"
] | null | null | null | stubs/wafregional.py | claytonbrown/troposphere | bf0f1e48b14f578de0221d50f711467ad716ca87 | [
"BSD-2-Clause"
] | null | null | null | stubs/wafregional.py | claytonbrown/troposphere | bf0f1e48b14f578de0221d50f711467ad716ca87 | [
"BSD-2-Clause"
] | null | null | null | from . import AWSObject, AWSProperty
from .validators import *
from .constants import *
# -------------------------------------------
class WAFRegionalByteMatchTuple(AWSProperty):
"""# ByteMatchTuple - CloudFormationResourceSpecification version: 1.4.0
{
"Documentation": "http://docs.aws.amazon.com/AWSCl... | 53.452744 | 280 | 0.676059 | 2,968 | 35,065 | 7.983827 | 0.033019 | 0.039838 | 0.054777 | 0.084656 | 0.91872 | 0.91872 | 0.900405 | 0.881794 | 0.877321 | 0.877321 | 0 | 0.00231 | 0.160645 | 35,065 | 655 | 281 | 53.534351 | 0.8028 | 0.638243 | 0 | 0.2 | 0 | 0.408333 | 0.705325 | 0.020616 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.025 | 0 | 0.425 | 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 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
024c542586c82802a98e3a5e5ca547ed394bd6e7 | 31,332 | py | Python | tests/test_ccc.py | mfe/cdl_convert | 1799ac2a80ccc8a5ad147c86cfa40f4de2ac266b | [
"MIT"
] | 42 | 2015-01-26T17:52:19.000Z | 2021-07-21T08:38:30.000Z | tests/test_ccc.py | mfe/cdl_convert | 1799ac2a80ccc8a5ad147c86cfa40f4de2ac266b | [
"MIT"
] | 26 | 2015-01-29T03:23:04.000Z | 2021-05-27T02:14:16.000Z | tests/test_ccc.py | mfe/cdl_convert | 1799ac2a80ccc8a5ad147c86cfa40f4de2ac266b | [
"MIT"
] | 17 | 2015-08-05T13:27:45.000Z | 2022-02-19T20:52:22.000Z | #!/usr/bin/env python
"""
Tests the ccc related functions of cdl_convert
REQUIREMENTS:
mock
"""
#==============================================================================
# IMPORTS
#==============================================================================
# Standard Imports
from decimal import Decimal
try... | 34.774695 | 87 | 0.527448 | 3,045 | 31,332 | 5.350082 | 0.096223 | 0.067522 | 0.051071 | 0.045915 | 0.837334 | 0.807133 | 0.785771 | 0.767172 | 0.745258 | 0.731447 | 0 | 0.0725 | 0.255139 | 31,332 | 900 | 88 | 34.813333 | 0.625546 | 0.171965 | 0 | 0.826347 | 0 | 0 | 0.729112 | 0.131844 | 0 | 0 | 0 | 0 | 0.023952 | 1 | 0.035928 | false | 0 | 0.01497 | 0 | 0.061377 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
02694fd1202c980b2d7a0d74d92e632c119fc0b2 | 63,793 | py | Python | pscheduler-tool-iperf3/iperf3/iperf3_parser.py | igarny/pscheduler | 0ab6e68bb3adb808e1116bab0eb7438bf4c31e2c | [
"Apache-2.0"
] | null | null | null | pscheduler-tool-iperf3/iperf3/iperf3_parser.py | igarny/pscheduler | 0ab6e68bb3adb808e1116bab0eb7438bf4c31e2c | [
"Apache-2.0"
] | null | null | null | pscheduler-tool-iperf3/iperf3/iperf3_parser.py | igarny/pscheduler | 0ab6e68bb3adb808e1116bab0eb7438bf4c31e2c | [
"Apache-2.0"
] | null | null | null | import re
import pscheduler
import pprint
import json
logger = pscheduler.Log(quiet=True)
# A whole bunch of pattern matching against the output of the "iperf3" tool
# client output. Builds up an object of interesting bits from it.
def parse_output(lines):
results = {}
results['succeeded'] = True
... | 36.061617 | 122 | 0.32165 | 4,226 | 63,793 | 4.735447 | 0.160435 | 0.047222 | 0.087697 | 0.056966 | 0.827254 | 0.784829 | 0.772636 | 0.756446 | 0.730312 | 0.696532 | 0 | 0.262846 | 0.565893 | 63,793 | 1,768 | 123 | 36.082014 | 0.459791 | 0.008606 | 0 | 0.80758 | 0 | 0.002332 | 0.955749 | 0.005662 | 0 | 0 | 0 | 0 | 0 | 1 | 0.001166 | false | 0 | 0.002332 | 0 | 0.006997 | 0.002915 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 11 |
026bd6425a9781d510891eb67dbd33f576ab28a3 | 507 | py | Python | 2020-04-13/test_obj.py | feieryouyiji/learningpy | e110ec72ec3e4246b5195028776cdbaa22d25678 | [
"MIT"
] | null | null | null | 2020-04-13/test_obj.py | feieryouyiji/learningpy | e110ec72ec3e4246b5195028776cdbaa22d25678 | [
"MIT"
] | null | null | null | 2020-04-13/test_obj.py | feieryouyiji/learningpy | e110ec72ec3e4246b5195028776cdbaa22d25678 | [
"MIT"
] | null | null | null | # class Student(object):
# def __init__(self, name, score):
# self.name = name
# self.score = score
# def print_score(self):
# print('%s: %s' % (self.name, self.score))
class Student(object):
def __init__(self, name, score):
self.__name = name
self.__score = score... | 21.125 | 53 | 0.56213 | 65 | 507 | 4.107692 | 0.184615 | 0.179775 | 0.194757 | 0.157303 | 0.786517 | 0.786517 | 0.786517 | 0.786517 | 0.786517 | 0.786517 | 0 | 0.005236 | 0.246548 | 507 | 23 | 54 | 22.043478 | 0.693717 | 0.370809 | 0 | 0 | 0 | 0 | 0.096154 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.3 | 0.5 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 7 |
5a2c175a5b2e6eb67909e91d420d3ee8763cbd8c | 31,117 | py | Python | packages/fetchai/protocols/state_update/state_update_pb2.py | marcofavorito/agents-aea | e520f2f5d076a193514e194d94aa76c6423ac5bc | [
"Apache-2.0"
] | 13 | 2020-11-13T11:29:46.000Z | 2021-11-29T18:29:41.000Z | packages/fetchai/protocols/state_update/state_update_pb2.py | marcofavorito/agents-aea | e520f2f5d076a193514e194d94aa76c6423ac5bc | [
"Apache-2.0"
] | 7 | 2020-11-13T10:37:16.000Z | 2020-12-21T08:08:12.000Z | packages/fetchai/protocols/state_update/state_update_pb2.py | marcofavorito/agents-aea | e520f2f5d076a193514e194d94aa76c6423ac5bc | [
"Apache-2.0"
] | 4 | 2020-11-27T20:50:09.000Z | 2021-11-30T16:36:29.000Z | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: state_update.proto
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _sym... | 38.368681 | 2,250 | 0.663239 | 2,777 | 31,117 | 7.062297 | 0.067339 | 0.030186 | 0.138691 | 0.05568 | 0.845758 | 0.795074 | 0.740873 | 0.703192 | 0.618397 | 0.609678 | 0 | 0.027626 | 0.25086 | 31,117 | 810 | 2,251 | 38.416049 | 0.813693 | 0.043288 | 0 | 0.738065 | 1 | 0.00129 | 0.221348 | 0.191604 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.005161 | 0 | 0.005161 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
5a2d64ae674181120650cec41529448f519e7c64 | 45 | py | Python | LogSystem_JE/venv/Lib/site-packages/JELogSystem/__init__.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | 3 | 2020-12-21T03:59:11.000Z | 2020-12-30T07:27:47.000Z | LogSystem_JE/venv/Lib/site-packages/JELogSystem/__init__.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | LogSystem_JE/venv/Lib/site-packages/JELogSystem/__init__.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | from JELogSystem.Log_System import Log_System | 45 | 45 | 0.911111 | 7 | 45 | 5.571429 | 0.714286 | 0.461538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 45 | 1 | 45 | 45 | 0.928571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 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 | 7 |
5a38b7bad01c4cc0ca6d76787a3d503597e99deb | 9,108 | py | Python | appengine/chromium_build/tests/console_test.py | mithro/chromium-infra | d27ac0b230bedae4bc968515b02927cf9e17c2b7 | [
"BSD-3-Clause"
] | 2 | 2021-04-13T21:22:18.000Z | 2021-09-07T02:11:57.000Z | appengine/chromium_build/tests/console_test.py | mithro/chromium-infra | d27ac0b230bedae4bc968515b02927cf9e17c2b7 | [
"BSD-3-Clause"
] | 21 | 2020-09-06T02:41:05.000Z | 2022-03-02T04:40:01.000Z | appengine/chromium_build/tests/console_test.py | mithro/chromium-infra | d27ac0b230bedae4bc968515b02927cf9e17c2b7 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# Copyright (c) 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import app
from tests import cb
class ConsoleTestCase(cb.CbTestCase):
def test_console_handler(self):
self.save_page(local... | 42.760563 | 80 | 0.653931 | 1,141 | 9,108 | 5.037686 | 0.137599 | 0.062109 | 0.033403 | 0.051148 | 0.933194 | 0.926061 | 0.918058 | 0.910752 | 0.901009 | 0.901009 | 0 | 0.007424 | 0.216184 | 9,108 | 212 | 81 | 42.962264 | 0.797731 | 0.246926 | 0 | 0.850746 | 0 | 0 | 0.287961 | 0.0538 | 0 | 0 | 0 | 0 | 0.067164 | 1 | 0.052239 | false | 0 | 0.014925 | 0 | 0.074627 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 7 |
ce6ae01da7798e7fc4817a6c05f5685a2879cdaa | 3,925 | py | Python | trello/lists.py | glitchdotcom/trello-py | 3fea701fbac389306b6f36641fd8e39303df7e91 | [
"BSD-2-Clause"
] | 1 | 2020-05-21T22:12:36.000Z | 2020-05-21T22:12:36.000Z | lists.py | Caloba1/trello-api-py | 03fede65b8bf4cd1b13ee685a1e5e21bcf2fbf57 | [
"MIT"
] | null | null | null | lists.py | Caloba1/trello-api-py | 03fede65b8bf4cd1b13ee685a1e5e21bcf2fbf57 | [
"MIT"
] | 2 | 2015-11-19T22:26:57.000Z | 2019-10-22T19:34:15.000Z | import json
import requests
class Lists(object):
__module__ = 'trello'
def __init__(self, apikey, token=None):
self._apikey = apikey
self._token = token
def get(self, list_id, cards=None, card_fields=None, fields=None):
resp = requests.get("https://trello.com/1/lists/%s... | 54.513889 | 285 | 0.673121 | 558 | 3,925 | 4.566308 | 0.100358 | 0.051805 | 0.076531 | 0.070644 | 0.741366 | 0.741366 | 0.741366 | 0.741366 | 0.720958 | 0.697802 | 0 | 0.003705 | 0.174777 | 3,925 | 71 | 286 | 55.28169 | 0.782958 | 0 | 0 | 0.436364 | 0 | 0 | 0.106383 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.236364 | false | 0 | 0.036364 | 0 | 0.527273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 7 |
ce6b918c8145176731e624a4e63fc9b99437bde1 | 145 | py | Python | geekshop/mainapp/admin.py | PorcupineVN/interner-store | c19a26d79933f41ba4f2a8df69bd386c4ba168a8 | [
"MIT"
] | null | null | null | geekshop/mainapp/admin.py | PorcupineVN/interner-store | c19a26d79933f41ba4f2a8df69bd386c4ba168a8 | [
"MIT"
] | 1 | 2022-02-09T07:29:04.000Z | 2022-02-09T07:29:04.000Z | geekshop/mainapp/admin.py | Deathless47/Internet-store | 09b1fa631295bcc9e12fc2c8dfbb7b027cac73ed | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Product, ProductCategory
admin.site.register(ProductCategory)
admin.site.register(Product)
| 24.166667 | 44 | 0.841379 | 18 | 145 | 6.777778 | 0.555556 | 0.327869 | 0.393443 | 0.52459 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.082759 | 145 | 5 | 45 | 29 | 0.917293 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 7 |
ceb93c335c07601f33ad16d0e61ea063167165bd | 3,921 | py | Python | tests/test_composition_measurement.py | IBPA/FoodAtlas | 0a431f0a391adaa8984b380f3f6f7189f27b9311 | [
"Apache-2.0"
] | 1 | 2022-02-07T10:04:35.000Z | 2022-02-07T10:04:35.000Z | tests/test_composition_measurement.py | IBPA/FoodAtlas | 0a431f0a391adaa8984b380f3f6f7189f27b9311 | [
"Apache-2.0"
] | null | null | null | tests/test_composition_measurement.py | IBPA/FoodAtlas | 0a431f0a391adaa8984b380f3f6f7189f27b9311 | [
"Apache-2.0"
] | null | null | null | import pytest
from food_ke.composition_measurement import CompositionMeasurement
class TestCompositionMeasurement:
@pytest.mark.parametrize(
"a,b",
[
(
CompositionMeasurement(
food_name="cocoa",
constituent_name="epicatechin",
... | 32.94958 | 66 | 0.429737 | 256 | 3,921 | 6.332031 | 0.140625 | 0.192474 | 0.222085 | 0.166564 | 0.90438 | 0.90438 | 0.90438 | 0.90438 | 0.847008 | 0.847008 | 0 | 0.019928 | 0.500893 | 3,921 | 118 | 67 | 33.228814 | 0.80838 | 0 | 0 | 0.824561 | 0 | 0 | 0.036725 | 0 | 0 | 0 | 0 | 0 | 0.026316 | 1 | 0.017544 | false | 0 | 0.017544 | 0 | 0.04386 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 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 | 10 |
0c686020ac65f88973ba1ab57c9c2885bee6327a | 4,368 | py | Python | algorithms/spot_finding/threshold.py | toastisme/dials | 6bc8ababc33bfe334513677f8adb65c0e90003f3 | [
"BSD-3-Clause"
] | 58 | 2015-10-15T09:28:20.000Z | 2022-03-28T20:09:38.000Z | algorithms/spot_finding/threshold.py | toastisme/dials | 6bc8ababc33bfe334513677f8adb65c0e90003f3 | [
"BSD-3-Clause"
] | 1,741 | 2015-11-24T08:17:02.000Z | 2022-03-31T15:46:42.000Z | algorithms/spot_finding/threshold.py | toastisme/dials | 6bc8ababc33bfe334513677f8adb65c0e90003f3 | [
"BSD-3-Clause"
] | 45 | 2015-10-14T13:44:16.000Z | 2022-03-22T14:45:56.000Z | class ThresholdStrategy:
"""
Base class for spot finder threshold strategies.
"""
def __init__(self, **kwargs):
"""
Initialise with key word arguments.
"""
pass
def __call__(self, image):
"""
Threshold the image.
"""
raise RuntimeErro... | 28.180645 | 70 | 0.564103 | 472 | 4,368 | 4.970339 | 0.184322 | 0.061381 | 0.034101 | 0.018755 | 0.875533 | 0.875533 | 0.875533 | 0.875533 | 0.875533 | 0.875533 | 0 | 0.00487 | 0.341804 | 4,368 | 154 | 71 | 28.363636 | 0.81113 | 0.18956 | 0 | 0.87013 | 0 | 0 | 0.03887 | 0 | 0 | 0 | 0 | 0 | 0.025974 | 1 | 0.077922 | false | 0.012987 | 0.051948 | 0 | 0.194805 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
0cb5ef6c2f84e55ff2885c685786ca15de416654 | 9,505 | py | Python | pdx-extract/tests/test_main.py | michaelheyman/PSU-Code-Review | 5a55d981425aaad69dc9ee06baaaef22bc426893 | [
"MIT"
] | null | null | null | pdx-extract/tests/test_main.py | michaelheyman/PSU-Code-Review | 5a55d981425aaad69dc9ee06baaaef22bc426893 | [
"MIT"
] | null | null | null | pdx-extract/tests/test_main.py | michaelheyman/PSU-Code-Review | 5a55d981425aaad69dc9ee06baaaef22bc426893 | [
"MIT"
] | null | null | null | import asyncio
import unittest.mock as mock
import asynctest
import pytest
from app import main
from tests import data
from tests import utils
@mock.patch("requests.post")
def test_authenticate_current_session_returns_ok(mock_requests):
import requests
term = {"code": "201904", "description": "Fall 2019 Qu... | 33.825623 | 86 | 0.745713 | 1,182 | 9,505 | 5.650592 | 0.093909 | 0.040874 | 0.067375 | 0.046414 | 0.92424 | 0.92424 | 0.902081 | 0.902081 | 0.894146 | 0.87019 | 0 | 0.036886 | 0.147186 | 9,505 | 280 | 87 | 33.946429 | 0.787071 | 0.005576 | 0 | 0.768182 | 0 | 0 | 0.171958 | 0.06 | 0 | 0 | 0 | 0 | 0.109091 | 1 | 0.036364 | false | 0 | 0.090909 | 0 | 0.127273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 7 |
0cd9cdcc395fffd1692882cee87701ebbce8d789 | 27,564 | py | Python | zauberer_game/zauber_pak/act1.py | fwalterjames/zauberer | 3bc4ad4401f27900e009d4d20efaa3a438fe8017 | [
"MIT"
] | null | null | null | zauberer_game/zauber_pak/act1.py | fwalterjames/zauberer | 3bc4ad4401f27900e009d4d20efaa3a438fe8017 | [
"MIT"
] | null | null | null | zauberer_game/zauber_pak/act1.py | fwalterjames/zauberer | 3bc4ad4401f27900e009d4d20efaa3a438fe8017 | [
"MIT"
] | null | null | null | from random import randint
from pygame import mixer
def act_one():
print("\n ========= ==== === === ======= ========= ======== ========= ======== ")
print(" ==== == == === === == == == == == == == == ")
print(" === === === =... | 74.699187 | 172 | 0.528697 | 3,858 | 27,564 | 3.84422 | 0.132711 | 0.04612 | 0.026701 | 0.03668 | 0.800148 | 0.772234 | 0.764884 | 0.758883 | 0.758883 | 0.75713 | 0 | 0.000276 | 0.3436 | 27,564 | 368 | 173 | 74.902174 | 0.804455 | 0.002612 | 0 | 0.699164 | 0 | 0.267409 | 0.661751 | 0.030824 | 0 | 0 | 0 | 0 | 0 | 1 | 0.008357 | false | 0 | 0.005571 | 0 | 0.061281 | 0.568245 | 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 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 9 |
0b295e215286c5499ba92e826f69979c2b5e0a95 | 5,081 | py | Python | turtlebot3_ws/src/global_path_planning/scripts/algorithms/neighbors.py | SakshayMahna/Robotics-Playground | 2ad1d16b40126dde14b92d26beaa3cdb53a1b4d8 | [
"MIT"
] | 2 | 2022-03-09T07:19:04.000Z | 2022-03-30T07:32:48.000Z | turtlebot3_ws/src/global_path_planning/scripts/algorithms/neighbors.py | SakshayMahna/Robotics-Playground | 2ad1d16b40126dde14b92d26beaa3cdb53a1b4d8 | [
"MIT"
] | 1 | 2022-03-09T03:00:51.000Z | 2022-03-12T02:53:09.000Z | turtlebot3_ws/src/global_path_planning/scripts/algorithms/neighbors.py | SakshayMahna/Robotics-Playground | 2ad1d16b40126dde14b92d26beaa3cdb53a1b4d8 | [
"MIT"
] | null | null | null | def find_neighbors(index, width, height, costmap, orthogonal_step_cost):
"""
Identifies neighbor nodes inspecting the 8 adjacent neighbors
Checks if neighbor is inside the map boundaries and if is not an obstacle according to a threshold
Returns a list with valid neighbour nodes as [index, step_cost] pairs
""... | 36.292857 | 100 | 0.688644 | 718 | 5,081 | 4.658774 | 0.098886 | 0.155456 | 0.066966 | 0.086099 | 0.990732 | 0.990732 | 0.990732 | 0.990732 | 0.968012 | 0.9142 | 0 | 0.030812 | 0.214328 | 5,081 | 140 | 101 | 36.292857 | 0.807114 | 0.155481 | 0 | 0.971963 | 0 | 0 | 0.005636 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018692 | false | 0 | 0 | 0 | 0.037383 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 7 |
e7f0e5b24648094826b58a90ae11185e42caa554 | 135 | py | Python | puma/registration/__init__.py | okryush/puma | fd3f21c5566ae64110420a26ef6c9d8da0e67dce | [
"MIT"
] | 239 | 2021-03-30T07:33:37.000Z | 2022-03-15T07:14:06.000Z | puma/registration/__init__.py | alualu628628/puma | 4a5980fcd302fc794f50e782e478a3bdd77f57b2 | [
"MIT"
] | 12 | 2021-06-10T17:26:36.000Z | 2022-03-29T16:23:52.000Z | puma/registration/__init__.py | alualu628628/puma | 4a5980fcd302fc794f50e782e478a3bdd77f57b2 | [
"MIT"
] | 46 | 2021-03-30T07:18:52.000Z | 2022-03-30T04:49:34.000Z | from .method_selector import *
from .o3d_aliases import *
from .run_icp import *
from .scan2mesh import *
from .scan2mesh_icp import *
| 22.5 | 30 | 0.777778 | 19 | 135 | 5.315789 | 0.473684 | 0.39604 | 0.376238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026087 | 0.148148 | 135 | 5 | 31 | 27 | 0.852174 | 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 | 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 | 7 |
e7f9c742c2753a0b8b846e8699a107dc0f452dd0 | 548 | py | Python | Exercicios/mundo3-exercicios-72/ex109/moeda.py | rafaelbarretomg/Curso-Python-3 | 7e772cbaf4c1e1bf7f1a9fb2925ec2e0eecf2998 | [
"MIT"
] | null | null | null | Exercicios/mundo3-exercicios-72/ex109/moeda.py | rafaelbarretomg/Curso-Python-3 | 7e772cbaf4c1e1bf7f1a9fb2925ec2e0eecf2998 | [
"MIT"
] | null | null | null | Exercicios/mundo3-exercicios-72/ex109/moeda.py | rafaelbarretomg/Curso-Python-3 | 7e772cbaf4c1e1bf7f1a9fb2925ec2e0eecf2998 | [
"MIT"
] | null | null | null | def aumentar(preco=0, taxa=0, formato=False):
res = preco + (preco * taxa/100)
return res if formato is False else moeda(res)
def diminuir(preco=0, taxa=0, formato=False):
res = preco - (preco * taxa/100)
return res if formato is False else moeda(res)
def dobro(preco=0, formato=False):
res = pre... | 23.826087 | 50 | 0.636861 | 90 | 548 | 3.877778 | 0.277778 | 0.068768 | 0.148997 | 0.183381 | 0.836676 | 0.836676 | 0.836676 | 0.836676 | 0.836676 | 0.836676 | 0 | 0.037296 | 0.217153 | 548 | 22 | 51 | 24.909091 | 0.776224 | 0 | 0 | 0.285714 | 0 | 0 | 0.027372 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.357143 | false | 0 | 0 | 0.071429 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
f025fbf9d9a45ece984ba4a2ef3b4052f7154917 | 124 | py | Python | tkge/data/__init__.py | tkg-framework/TKG-framework | 98586b7199bda0e96d74b2ea02c62226901822cc | [
"MIT",
"Unlicense"
] | null | null | null | tkge/data/__init__.py | tkg-framework/TKG-framework | 98586b7199bda0e96d74b2ea02c62226901822cc | [
"MIT",
"Unlicense"
] | null | null | null | tkge/data/__init__.py | tkg-framework/TKG-framework | 98586b7199bda0e96d74b2ea02c62226901822cc | [
"MIT",
"Unlicense"
] | null | null | null | from .dataset import DatasetProcessor
from .custom_dataset import ICEWS14AtiseDatasetProcessor, TestICEWS14DatasetProcessor
| 41.333333 | 85 | 0.903226 | 10 | 124 | 11.1 | 0.7 | 0.234234 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034783 | 0.072581 | 124 | 2 | 86 | 62 | 0.930435 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 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 | 7 |
f038db53ebef4880edcef75b812d2c0c06cde9d7 | 1,322 | py | Python | lib/operators.py | briandeheus/nots | 43d1427b95fafe09417ad84b4ef2419b8e47d31c | [
"MIT"
] | 4 | 2021-07-17T11:50:53.000Z | 2022-02-10T16:43:33.000Z | lib/operators.py | briandeheus/nots | 43d1427b95fafe09417ad84b4ef2419b8e47d31c | [
"MIT"
] | 1 | 2021-07-15T17:27:32.000Z | 2021-07-15T17:27:32.000Z | lib/operators.py | briandeheus/nots | 43d1427b95fafe09417ad84b4ef2419b8e47d31c | [
"MIT"
] | null | null | null | from lib.types import CASTING_TABLE
def eq(column, value):
column_type = column.type.__visit_name__
if column_type in CASTING_TABLE:
return column == CASTING_TABLE[column_type].cast_to(value)
return column == value
def neq(column, value):
column_type = column.type.__visit_name__
if co... | 22.40678 | 66 | 0.704236 | 185 | 1,322 | 4.67027 | 0.12973 | 0.277778 | 0.118056 | 0.145833 | 0.90625 | 0.90625 | 0.90625 | 0.90625 | 0.90625 | 0.90625 | 0 | 0 | 0.204236 | 1,322 | 58 | 67 | 22.793103 | 0.821293 | 0 | 0 | 0.375 | 0 | 0 | 0.009077 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.03125 | 0 | 0.59375 | 0 | 0 | 0 | 0 | null | 1 | 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 | 1 | 0 | 0 | 8 |
f0418e930ba72827ab51a284cc20ed7c3ef2f8b4 | 137,085 | py | Python | sdk/python/pulumi_okta/app/saml.py | pulumi/pulumi-okta | 83f7617a85b3d05213901773fa4e6a151ab6076b | [
"ECL-2.0",
"Apache-2.0"
] | 5 | 2019-10-29T21:59:22.000Z | 2021-11-08T12:00:24.000Z | sdk/python/pulumi_okta/app/saml.py | pulumi/pulumi-okta | 83f7617a85b3d05213901773fa4e6a151ab6076b | [
"ECL-2.0",
"Apache-2.0"
] | 109 | 2020-01-06T10:28:09.000Z | 2022-03-25T19:52:40.000Z | sdk/python/pulumi_okta/app/saml.py | pulumi/pulumi-okta | 83f7617a85b3d05213901773fa4e6a151ab6076b | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2020-09-11T16:31:04.000Z | 2020-11-24T12:23:17.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** 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... | 46.001678 | 222 | 0.651924 | 16,227 | 137,085 | 5.269119 | 0.028594 | 0.095974 | 0.083507 | 0.082337 | 0.973919 | 0.965977 | 0.952048 | 0.943838 | 0.94096 | 0.921745 | 0 | 0.002692 | 0.238531 | 137,085 | 2,979 | 223 | 46.01712 | 0.816403 | 0.308655 | 0 | 0.878378 | 1 | 0.007371 | 0.13257 | 0.035636 | 0 | 0 | 0 | 0 | 0.015971 | 1 | 0.168919 | false | 0.000614 | 0.0043 | 0 | 0.275799 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
f04b3f2e5b4f3b11cc74bc92b628eefc0e653bde | 42,572 | py | Python | src/beginners/layer1.py | lilyychen96/Cubr | 83e05f612f259bcd93b8f2fb8c7149ddae09d85b | [
"MIT"
] | null | null | null | src/beginners/layer1.py | lilyychen96/Cubr | 83e05f612f259bcd93b8f2fb8c7149ddae09d85b | [
"MIT"
] | null | null | null | src/beginners/layer1.py | lilyychen96/Cubr | 83e05f612f259bcd93b8f2fb8c7149ddae09d85b | [
"MIT"
] | null | null | null | import sys, os
sys.path.insert(0, os.path.abspath('src/cube'))
from moves import execute_moves
from cube import Cube, find_edge, find_corner
from facelet import Color as Cl, Corner as Cn, Edge as Ed
"""
white cross: part 1 of first layer algorithms
"""
def is_white_cross(cube_state):
"""
Checks if the cube h... | 33.129961 | 89 | 0.423072 | 5,746 | 42,572 | 3.100418 | 0.032022 | 0.076116 | 0.079315 | 0.036935 | 0.940107 | 0.918047 | 0.842829 | 0.801235 | 0.792759 | 0.765535 | 0 | 0.052147 | 0.385582 | 42,572 | 1,285 | 90 | 33.129961 | 0.628933 | 0.061308 | 0 | 0.755511 | 0 | 0.026052 | 0.14655 | 0 | 0 | 0 | 0 | 0 | 0.172345 | 1 | 0.013026 | false | 0 | 0.004008 | 0 | 0.209419 | 0.11022 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 7 |
f04f7a6f7bce03ac21ae08e0c3f1d3e1acb13396 | 72 | py | Python | models/__init__.py | fenghansen/ELD | 39846c79b5bcb406881c52700d282a9c1149666e | [
"MIT"
] | 258 | 2020-05-16T17:43:13.000Z | 2022-03-22T07:02:54.000Z | models/__init__.py | scott-mao/ELD | c1e009f21ab7ac6e87c4e37588bee3856160cd93 | [
"MIT"
] | 23 | 2020-06-22T02:07:04.000Z | 2022-03-25T01:33:20.000Z | models/__init__.py | scott-mao/ELD | c1e009f21ab7ac6e87c4e37588bee3856160cd93 | [
"MIT"
] | 39 | 2020-05-19T06:29:28.000Z | 2022-03-21T04:00:16.000Z | from .ELD_model import ELDModel
def eld_model():
return ELDModel()
| 14.4 | 31 | 0.736111 | 10 | 72 | 5.1 | 0.7 | 0.313725 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180556 | 72 | 4 | 32 | 18 | 0.864407 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | true | 0 | 0.333333 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 7 |
f05ed14da55b2f34e53ec01aab443e19ae22d904 | 2,310 | py | Python | train_step.py | terrifyzhao/multi_task_lm | b60bfe34a02e5483540062074b24135753c537cd | [
"Apache-2.0"
] | 1 | 2022-02-16T06:34:16.000Z | 2022-02-16T06:34:16.000Z | train_step.py | terrifyzhao/multi_task_lm | b60bfe34a02e5483540062074b24135753c537cd | [
"Apache-2.0"
] | null | null | null | train_step.py | terrifyzhao/multi_task_lm | b60bfe34a02e5483540062074b24135753c537cd | [
"Apache-2.0"
] | null | null | null | import torch
from annlp import get_device
device = get_device()
def base_step(batch, optim, model, amp):
all_loss = 0
for index in range(len(batch)):
optim.zero_grad()
output = model(batch[index]['input_ids'].to(device),
batch[index]['attention_mask'].to(device),
... | 30 | 69 | 0.5329 | 271 | 2,310 | 4.372694 | 0.180812 | 0.076793 | 0.037131 | 0.048101 | 0.87173 | 0.853165 | 0.833755 | 0.833755 | 0.833755 | 0.833755 | 0 | 0.001337 | 0.352381 | 2,310 | 76 | 70 | 30.394737 | 0.790775 | 0 | 0 | 0.78125 | 0 | 0 | 0.037662 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046875 | false | 0 | 0.03125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
b2c6d6d88248f183e4c0bf30c74c2447e06ab738 | 194 | py | Python | rbact/peewee/__init__.py | chin-wag/async-rbac | 442b5d02ee785ba4d9c04d5cbb3afeeec6dac633 | [
"MIT"
] | null | null | null | rbact/peewee/__init__.py | chin-wag/async-rbac | 442b5d02ee785ba4d9c04d5cbb3afeeec6dac633 | [
"MIT"
] | 11 | 2021-11-29T14:43:05.000Z | 2022-02-03T15:33:48.000Z | rbact/peewee/__init__.py | chin-wag/rbact | 442b5d02ee785ba4d9c04d5cbb3afeeec6dac633 | [
"MIT"
] | null | null | null | from .models import ModelsLoader, Users, Roles, UsersRoles, Rules
from .peewee_adapter import PeeweeAdapter
__all__ = ["PeeweeAdapter", "ModelsLoader", "Users", "Roles", "UsersRoles", "Rules"]
| 38.8 | 84 | 0.757732 | 20 | 194 | 7.1 | 0.6 | 0.239437 | 0.309859 | 0.450704 | 0.521127 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108247 | 194 | 4 | 85 | 48.5 | 0.820809 | 0 | 0 | 0 | 0 | 0 | 0.257732 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 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 | 1 | 0 | 0 | 7 |
b2ede2e020a36b7f068328ab82a52d80d930da11 | 2,719 | py | Python | src/Python/Unittests/test_read_write_stl.py | rzoller/OpenMesh | f84bca0b26c61eab5f9335b2191962ca8545c5f6 | [
"BSD-3-Clause"
] | 19 | 2020-08-13T05:15:09.000Z | 2022-03-31T14:51:29.000Z | src/Python/Unittests/test_read_write_stl.py | ccopsey/OpenMesh | 93e6e626c3f282bf4275521c33cd8da1ca559c7d | [
"BSD-3-Clause"
] | 2 | 2020-09-08T07:03:04.000Z | 2021-08-04T05:43:27.000Z | src/Python/Unittests/test_read_write_stl.py | ccopsey/OpenMesh | 93e6e626c3f282bf4275521c33cd8da1ca559c7d | [
"BSD-3-Clause"
] | 10 | 2020-08-06T02:37:46.000Z | 2021-07-01T09:12:06.000Z | import unittest
import openmesh
class ReadWriteSTL(unittest.TestCase):
def setUp(self):
self.mesh = openmesh.TriMesh()
def test_load_simple_stl_file(self):
ok = openmesh.read_mesh(self.mesh, "cube1.stl")
self.assertTrue(ok)
self.assertEqual(self.mesh.n_vertic... | 35.776316 | 91 | 0.650975 | 329 | 2,719 | 5.182371 | 0.182371 | 0.154839 | 0.133724 | 0.161877 | 0.808211 | 0.808211 | 0.767155 | 0.748387 | 0.655718 | 0.655718 | 0 | 0.055924 | 0.223979 | 2,719 | 75 | 92 | 36.253333 | 0.752133 | 0 | 0 | 0.48 | 0 | 0 | 0.020596 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.1 | false | 0 | 0.04 | 0 | 0.16 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
650e1955fcc19edb16dd0fbf4dc28656ca2335df | 99,470 | py | Python | shenfun/legendre/bases.py | jaisw7/shenfun | 7482beb5b35580bc45f72704b69343cc6fc1d773 | [
"BSD-2-Clause"
] | 1 | 2021-03-06T09:29:39.000Z | 2021-03-06T09:29:39.000Z | shenfun/legendre/bases.py | jaisw7/shenfun | 7482beb5b35580bc45f72704b69343cc6fc1d773 | [
"BSD-2-Clause"
] | null | null | null | shenfun/legendre/bases.py | jaisw7/shenfun | 7482beb5b35580bc45f72704b69343cc6fc1d773 | [
"BSD-2-Clause"
] | null | null | null | """
Module for defining function spaces in the Legendre family
"""
from __future__ import division
import os
import functools
import sympy
import numpy as np
from numpy.polynomial import legendre as leg
from scipy.special import eval_legendre
from mpi4py_fft import fftw
from shenfun.spectralbase import SpectralBase, w... | 37.994652 | 180 | 0.549864 | 13,031 | 99,470 | 4.060011 | 0.026322 | 0.086701 | 0.011057 | 0.019053 | 0.926568 | 0.914811 | 0.90175 | 0.894379 | 0.882301 | 0.872737 | 0 | 0.02783 | 0.327727 | 99,470 | 2,617 | 181 | 38.009171 | 0.763335 | 0.202574 | 0 | 0.808618 | 0 | 0 | 0.008578 | 0.000813 | 0 | 0 | 0 | 0 | 0.007834 | 1 | 0.144936 | false | 0 | 0.011192 | 0.053721 | 0.303861 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 7 |
653be0c144b40281cb97b06271573c4274e6ed24 | 106 | py | Python | montepython/likelihoods/Planck_lowlTT/__init__.py | emiliobellini/montepython_public | a3b1ba7ef614db21ac737de226648bc3477aca35 | [
"MIT"
] | 1 | 2018-04-29T06:48:35.000Z | 2018-04-29T06:48:35.000Z | montepython/likelihoods/Planck_lowlTT/__init__.py | emiliobellini/montepython_public | a3b1ba7ef614db21ac737de226648bc3477aca35 | [
"MIT"
] | null | null | null | montepython/likelihoods/Planck_lowlTT/__init__.py | emiliobellini/montepython_public | a3b1ba7ef614db21ac737de226648bc3477aca35 | [
"MIT"
] | 2 | 2019-10-11T09:46:35.000Z | 2019-12-05T14:55:04.000Z | from montepython.likelihood_class import Likelihood_clik
class Planck_lowlTT(Likelihood_clik):
pass
| 17.666667 | 56 | 0.839623 | 13 | 106 | 6.538462 | 0.692308 | 0.329412 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122642 | 106 | 5 | 57 | 21.2 | 0.913978 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 7 |
6547858856bef80d893ade67b98883fc61663bc4 | 4,243 | py | Python | First_Iteration/Cards.py | mehularora8/UNO | 32713dab69a5fdc7d49607d3195ef2ad5e5a9795 | [
"MIT"
] | null | null | null | First_Iteration/Cards.py | mehularora8/UNO | 32713dab69a5fdc7d49607d3195ef2ad5e5a9795 | [
"MIT"
] | null | null | null | First_Iteration/Cards.py | mehularora8/UNO | 32713dab69a5fdc7d49607d3195ef2ad5e5a9795 | [
"MIT"
] | null | null | null | class Card:
# Game card.
def __init__(self, number, color, ability, wild):
# Number on the face of the card
self.number = number
# Which color is the thing
self.color = color
# Draw 2 / Reverse etc
self.ability = ability
# Wild card?
self.wild = wild
def __eq__(self, other):
return (self.num... | 32.891473 | 136 | 0.532878 | 777 | 4,243 | 2.899614 | 0.059202 | 0.326676 | 0.383489 | 0.207723 | 0.855304 | 0.855304 | 0.849978 | 0.833999 | 0.715047 | 0.623613 | 0 | 0.195379 | 0.194202 | 4,243 | 129 | 137 | 32.891473 | 0.463586 | 0.040537 | 0 | 0.872727 | 0 | 0 | 0.035477 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018182 | false | 0 | 0 | 0.009091 | 0.036364 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 11 |
e8fb423c7db32b998a3411a578d49b49c51d6946 | 21,900 | py | Python | AMR-Policies-Other/Environment.py | irom-lab/AMR-Policies | 43552ca0ddcd584a9faa12b5588874bac41bd205 | [
"MIT"
] | 2 | 2020-10-29T02:21:27.000Z | 2021-07-26T07:38:23.000Z | AMR-Policies-Other/Environment.py | irom-lab/AMR-Policies | 43552ca0ddcd584a9faa12b5588874bac41bd205 | [
"MIT"
] | null | null | null | AMR-Policies-Other/Environment.py | irom-lab/AMR-Policies | 43552ca0ddcd584a9faa12b5588874bac41bd205 | [
"MIT"
] | null | null | null | import pybullet
import pybullet_utils.bullet_client as bc
import pybullet_data
import numpy as np
from abc import ABC, abstractmethod
class SetEnvironment():
def setup_pybullet(self, robot_file, parallel=False):
robot_radius = self.robot.robot_radius
if parallel:
if self.gui:
... | 50.344828 | 121 | 0.470183 | 2,367 | 21,900 | 4.238276 | 0.091677 | 0.014952 | 0.035088 | 0.083333 | 0.810805 | 0.800738 | 0.781001 | 0.776316 | 0.762061 | 0.761762 | 0 | 0.062812 | 0.396621 | 21,900 | 434 | 122 | 50.460829 | 0.696383 | 0.055753 | 0 | 0.747604 | 0 | 0 | 0.009333 | 0.00525 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028754 | false | 0.003195 | 0.015974 | 0 | 0.070288 | 0.003195 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 7 |
3317f3d8306af2b3d6515d91ad539863ec86664f | 2,861 | py | Python | tests/resolver_tests.py | Ginkooo/ginkooowebsite | cd303c8aed7d17ce28e4593f0459ce37815dd36d | [
"MIT"
] | null | null | null | tests/resolver_tests.py | Ginkooo/ginkooowebsite | cd303c8aed7d17ce28e4593f0459ce37815dd36d | [
"MIT"
] | null | null | null | tests/resolver_tests.py | Ginkooo/ginkooowebsite | cd303c8aed7d17ce28e4593f0459ce37815dd36d | [
"MIT"
] | null | null | null | from unittest import TestCase
import src.resolver as resolver
from config import settings
class ResolverTests(TestCase):
def check_can_get_parts_of_url(self):
urls = [
'/',
'/foo',
'/foo/',
'/foo/bar',
'/foo/bar/',
'/foo/bar/car/lar/... | 33.267442 | 65 | 0.607829 | 311 | 2,861 | 5.495177 | 0.157556 | 0.21065 | 0.115857 | 0.12639 | 0.797542 | 0.797542 | 0.775892 | 0.775892 | 0.775892 | 0.775892 | 0 | 0.008535 | 0.262845 | 2,861 | 85 | 66 | 33.658824 | 0.801802 | 0 | 0 | 0.585714 | 0 | 0 | 0.067808 | 0.026215 | 0 | 0 | 0 | 0 | 0.585714 | 1 | 0.014286 | false | 0 | 0.042857 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
3369318b83db1b6103cc4fe17e4231f370b0a190 | 220 | py | Python | tests/examples/helper.py | 897615138/tfsnippet-jill | 2fc898a4def866c8d3c685168df1fa22083bb143 | [
"MIT"
] | 63 | 2018-06-06T11:56:40.000Z | 2022-03-22T08:00:59.000Z | tests/examples/helper.py | 897615138/tfsnippet-jill | 2fc898a4def866c8d3c685168df1fa22083bb143 | [
"MIT"
] | 39 | 2018-07-04T12:40:53.000Z | 2022-02-09T23:48:44.000Z | tests/examples/helper.py | 897615138/tfsnippet-jill | 2fc898a4def866c8d3c685168df1fa22083bb143 | [
"MIT"
] | 34 | 2018-06-25T09:59:22.000Z | 2022-02-23T12:46:33.000Z | import os
import unittest
def skipUnlessRunExamplesTests():
return unittest.skipUnless(
os.environ.get('RUN_EXAMPLES_TEST_CASE') == '1',
'RUN_EXAMPLES_TEST_CASE is not set to 1, thus skipped'
)
| 22 | 62 | 0.7 | 28 | 220 | 5.285714 | 0.714286 | 0.148649 | 0.202703 | 0.256757 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011494 | 0.209091 | 220 | 9 | 63 | 24.444444 | 0.83908 | 0 | 0 | 0 | 0 | 0 | 0.340909 | 0.2 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | true | 0 | 0.285714 | 0.142857 | 0.571429 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 7 |
cc031e0dcfdc07cd4c5c24c9f64562c5c65fde5c | 8,766 | py | Python | src/graphql/scalar_descriptors/strict/test/scalar_descriptors.py | btrekkie/graphql | 6c118550267eeb57a9653f4f46d7bbd6c5902110 | [
"MIT"
] | null | null | null | src/graphql/scalar_descriptors/strict/test/scalar_descriptors.py | btrekkie/graphql | 6c118550267eeb57a9653f4f46d7bbd6c5902110 | [
"MIT"
] | null | null | null | src/graphql/scalar_descriptors/strict/test/scalar_descriptors.py | btrekkie/graphql | 6c118550267eeb57a9653f4f46d7bbd6c5902110 | [
"MIT"
] | null | null | null | import unittest
from graphql.scalar_descriptors.strict import GraphQlStrictBooleanDescriptor
from graphql.scalar_descriptors.strict import GraphQlStrictFloatDescriptor
from graphql.scalar_descriptors.strict import GraphQlStrictIdDescriptor
from graphql.scalar_descriptors.strict import GraphQlStrictIntDescriptor
from g... | 44.050251 | 76 | 0.680242 | 895 | 8,766 | 6.435754 | 0.063687 | 0.070833 | 0.177083 | 0.246701 | 0.852083 | 0.810764 | 0.769444 | 0.740278 | 0.723438 | 0.693576 | 0 | 0.047864 | 0.223021 | 8,766 | 198 | 77 | 44.272727 | 0.797827 | 0.02042 | 0 | 0.689024 | 0 | 0 | 0.012154 | 0 | 0 | 0 | 0 | 0 | 0.52439 | 0 | null | null | 0 | 0.036585 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
cc2b09adb51ec2aee1acd64f6e0cd12b1fb97c57 | 217 | py | Python | frontend/views.py | arnaudlimbourg/rencontres-django-2016 | e7074d772791be7068f155d832c2c9265a8c9522 | [
"Apache-2.0"
] | null | null | null | frontend/views.py | arnaudlimbourg/rencontres-django-2016 | e7074d772791be7068f155d832c2c9265a8c9522 | [
"Apache-2.0"
] | null | null | null | frontend/views.py | arnaudlimbourg/rencontres-django-2016 | e7074d772791be7068f155d832c2c9265a8c9522 | [
"Apache-2.0"
] | null | null | null | from django.shortcuts import render
from django.http import HttpResponse
from django.shortcuts import render_to_response
def index(request):
return render_to_response('index.html', context={"request": request})
| 27.125 | 73 | 0.806452 | 29 | 217 | 5.896552 | 0.517241 | 0.175439 | 0.222222 | 0.292398 | 0.362573 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.110599 | 217 | 7 | 74 | 31 | 0.88601 | 0 | 0 | 0 | 0 | 0 | 0.078341 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.6 | 0.2 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 7 |
cc2c132a60b55de5852b91806855d60ae07baa4d | 131 | py | Python | reverser/tests/reverse_test.py | devacto/python-puzzles | e92d43b950c3cc44a03b85199fc0f568a3c7b70b | [
"MIT"
] | null | null | null | reverser/tests/reverse_test.py | devacto/python-puzzles | e92d43b950c3cc44a03b85199fc0f568a3c7b70b | [
"MIT"
] | null | null | null | reverser/tests/reverse_test.py | devacto/python-puzzles | e92d43b950c3cc44a03b85199fc0f568a3c7b70b | [
"MIT"
] | null | null | null | from nose.tools import assert_equal
from reverser import reverse
def test_return():
assert_equal(reverse.reverse("go"), "og")
| 21.833333 | 45 | 0.763359 | 19 | 131 | 5.105263 | 0.684211 | 0.226804 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129771 | 131 | 5 | 46 | 26.2 | 0.850877 | 0 | 0 | 0 | 0 | 0 | 0.030534 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.25 | true | 0 | 0.5 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
cc2fb183652bb56a016f46cedd017dfb565ced91 | 16,602 | py | Python | tests/test_mapping.py | oarepo/invenio-oarepo-multilingual | 03d382c152aa44f2912c13b225adb418dbf48109 | [
"MIT"
] | null | null | null | tests/test_mapping.py | oarepo/invenio-oarepo-multilingual | 03d382c152aa44f2912c13b225adb418dbf48109 | [
"MIT"
] | 3 | 2020-08-30T18:00:00.000Z | 2021-08-05T16:34:28.000Z | tests/test_mapping.py | oarepo/oarepo-multilingual | 03d382c152aa44f2912c13b225adb418dbf48109 | [
"MIT"
] | 4 | 2020-08-20T11:18:40.000Z | 2021-03-24T10:53:40.000Z | # -*- coding: utf-8 -*-
#
# Copyright (C) 2019 CESNET.
#
# Invenio OpenID Connect is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.
from flask import Flask
from oarepo_multilingual.mapping.mapping_handler import handler
def test_mappi... | 28.138983 | 95 | 0.265149 | 946 | 16,602 | 4.542283 | 0.091966 | 0.165697 | 0.211776 | 0.255993 | 0.913661 | 0.913661 | 0.906679 | 0.885036 | 0.873865 | 0.867349 | 0 | 0.000841 | 0.570413 | 16,602 | 589 | 96 | 28.186757 | 0.601655 | 0.013613 | 0 | 0.610018 | 0 | 0 | 0.184968 | 0 | 0 | 0 | 0 | 0 | 0.017889 | 1 | 0.007156 | false | 0 | 0.003578 | 0 | 0.010733 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 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 | 9 |
0bf2b853d3118e51c5623bc226ae8cfe7e939b90 | 116 | py | Python | platform/hwconf_data/efm32jg1b/PythonSnippet/__init__.py | lenloe1/v2.7 | 9ac9c4a7bb37987af382c80647f42d84db5f2e1d | [
"Zlib"
] | null | null | null | platform/hwconf_data/efm32jg1b/PythonSnippet/__init__.py | lenloe1/v2.7 | 9ac9c4a7bb37987af382c80647f42d84db5f2e1d | [
"Zlib"
] | 1 | 2020-08-25T02:36:22.000Z | 2020-08-25T02:36:22.000Z | platform/hwconf_data/efm32jg1b/PythonSnippet/__init__.py | lenloe1/v2.7 | 9ac9c4a7bb37987af382c80647f42d84db5f2e1d | [
"Zlib"
] | 1 | 2020-08-25T01:56:04.000Z | 2020-08-25T01:56:04.000Z | from efm32jg1b.halconfig import halconfig_types as types
from efm32jg1b.halconfig import halconfig_dependency as dep | 58 | 59 | 0.887931 | 16 | 116 | 6.3125 | 0.5 | 0.257426 | 0.435644 | 0.554455 | 0.732673 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057143 | 0.094828 | 116 | 2 | 59 | 58 | 0.904762 | 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 | 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 | 8 |
042cd755802e520db226530a880c6a76ded1f0b7 | 14,137 | py | Python | experiments/WebsiteFingerprinting/Bento-DF/DeepFingerprint-changes/utility.py | rajKarra69420/bento | 1324189e26acfe3a372882519bd78e037d93997c | [
"BSD-3-Clause"
] | 3 | 2021-12-01T02:11:15.000Z | 2022-02-03T22:45:00.000Z | experiments/WebsiteFingerprinting/Bento-DF/DeepFingerprint-changes/utility.py | rajKarra69420/bento | 1324189e26acfe3a372882519bd78e037d93997c | [
"BSD-3-Clause"
] | 4 | 2021-11-27T11:04:36.000Z | 2022-02-17T02:53:21.000Z | experiments/WebsiteFingerprinting/Bento-DF/DeepFingerprint-changes/utility.py | rajKarra69420/bento | 1324189e26acfe3a372882519bd78e037d93997c | [
"BSD-3-Clause"
] | 5 | 2021-07-01T20:23:43.000Z | 2022-03-12T18:10:34.000Z | import pickle as pickle
import numpy as np
# Load data for non-defended dataset for CW setting
def LoadDataBentoCW():
print("[BENTO] Loading non-defended dataset for closed-world scenario")
# Point to the directory storing data
dataset_dir = '../dataset/ClosedWorld/BentoBrowser/'
# X represents a se... | 42.581325 | 81 | 0.693499 | 2,088 | 14,137 | 4.515326 | 0.037356 | 0.061519 | 0.076368 | 0.091642 | 0.967331 | 0.961179 | 0.95174 | 0.937102 | 0.932541 | 0.931799 | 0 | 0.004175 | 0.186744 | 14,137 | 331 | 82 | 42.70997 | 0.815865 | 0.167999 | 0 | 0.740933 | 0 | 0 | 0.287265 | 0.065556 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051813 | false | 0 | 0.010363 | 0 | 0.11399 | 0.274611 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 7 |
04350c4f2add71af542bd93194b95079383f7e08 | 912 | py | Python | popcorn_gallery/popcorn/search_indexes.py | Koenkk/popcorn_maker | 0978b9f98dacd4e8eb753404b24eb584f410aa11 | [
"BSD-3-Clause"
] | 15 | 2015-03-23T02:55:20.000Z | 2021-01-12T12:42:30.000Z | popcorn_gallery/popcorn/search_indexes.py | Koenkk/popcorn_maker | 0978b9f98dacd4e8eb753404b24eb584f410aa11 | [
"BSD-3-Clause"
] | null | null | null | popcorn_gallery/popcorn/search_indexes.py | Koenkk/popcorn_maker | 0978b9f98dacd4e8eb753404b24eb584f410aa11 | [
"BSD-3-Clause"
] | 16 | 2015-02-18T21:43:31.000Z | 2021-11-09T22:50:03.000Z | from haystack import indexes
from .models import Project, Template
class TemplateIndex(indexes.SearchIndex, indexes.Indexable):
text = indexes.CharField(document=True, use_template=True)
name = indexes.CharField(model_attr='name')
description = indexes.CharField(model_attr='description')
def get_mod... | 30.4 | 62 | 0.712719 | 111 | 912 | 5.747748 | 0.324324 | 0.15047 | 0.131661 | 0.15674 | 0.833856 | 0.833856 | 0.833856 | 0.833856 | 0.833856 | 0.833856 | 0 | 0 | 0.182018 | 912 | 29 | 63 | 31.448276 | 0.855228 | 0.10636 | 0 | 0.666667 | 0 | 0 | 0.037313 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0.111111 | 1 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 8 |
f0930cab7a2e83fc1db5cbdc16994a8879d56e2b | 178 | py | Python | site-root/change_loadout_name.py | TED-996/krait-twostones | 51b27793b9cd536d680fb9a6785c57473d35cac1 | [
"MIT"
] | null | null | null | site-root/change_loadout_name.py | TED-996/krait-twostones | 51b27793b9cd536d680fb9a6785c57473d35cac1 | [
"MIT"
] | null | null | null | site-root/change_loadout_name.py | TED-996/krait-twostones | 51b27793b9cd536d680fb9a6785c57473d35cac1 | [
"MIT"
] | null | null | null | from ctrl import change_loadout_name
import krait
import logging
logging.debug("Got in pagina rutabila change_loadout_name ")
krait.response = change_loadout_name.get_response() | 29.666667 | 60 | 0.848315 | 26 | 178 | 5.538462 | 0.576923 | 0.270833 | 0.354167 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095506 | 178 | 6 | 61 | 29.666667 | 0.89441 | 0 | 0 | 0 | 0 | 0 | 0.240223 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.6 | 0 | 0.6 | 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 | 1 | 0 | 0 | 7 |
f0dc32771f05024b2b093d992f62a714d7ce8afa | 191 | py | Python | djangoratings/exceptions.py | gelo-zhukov/django-ratings | fb5495d7a9a3aec9800f12dff58803ff68a4c753 | [
"BSD-2-Clause"
] | 68 | 2015-02-06T17:04:59.000Z | 2021-11-26T14:43:46.000Z | djangoratings/exceptions.py | conorsheehan/django-ratings | ecc051df5096d57044e038a8ffa1504dea1acbbe | [
"BSD-2-Clause"
] | 13 | 2020-02-18T09:57:52.000Z | 2022-01-13T02:12:04.000Z | djangoratings/exceptions.py | conorsheehan/django-ratings | ecc051df5096d57044e038a8ffa1504dea1acbbe | [
"BSD-2-Clause"
] | 58 | 2015-01-06T09:37:07.000Z | 2022-03-02T22:37:36.000Z | class InvalidRating(ValueError): pass
class AuthRequired(TypeError): pass
class CannotChangeVote(Exception): pass
class CannotDeleteVote(Exception): pass
class IPLimitReached(Exception): pass | 38.2 | 39 | 0.848168 | 20 | 191 | 8.1 | 0.5 | 0.222222 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073298 | 191 | 5 | 40 | 38.2 | 0.915254 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 1 | 0 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 7 |
9bd7a404e1975638a7f2736cb4c6fe13c222fc46 | 6,658 | py | Python | tests/utils.py | originalpkbims/subgrounds-pkbims | 03271135d985bc4a53129edb0cb2391555012270 | [
"Apache-2.0"
] | null | null | null | tests/utils.py | originalpkbims/subgrounds-pkbims | 03271135d985bc4a53129edb0cb2391555012270 | [
"Apache-2.0"
] | null | null | null | tests/utils.py | originalpkbims/subgrounds-pkbims | 03271135d985bc4a53129edb0cb2391555012270 | [
"Apache-2.0"
] | null | null | null | from subgrounds.schema import (
TypeMeta,
SchemaMeta,
TypeRef,
# input_value_of_argument
)
from subgrounds.subgraph import Subgraph
def schema():
return SchemaMeta(query_type='Query', type_map={
'Int': TypeMeta.ScalarMeta('Int', ''),
'Float': TypeMeta.ScalarMeta('Float', ''),
'BigInt': TypeMeta.... | 51.215385 | 91 | 0.627966 | 584 | 6,658 | 7.092466 | 0.111301 | 0.16224 | 0.138098 | 0.075326 | 0.961371 | 0.961371 | 0.961371 | 0.961371 | 0.961371 | 0.961371 | 0 | 0.00495 | 0.150345 | 6,658 | 129 | 92 | 51.612403 | 0.727241 | 0.003454 | 0 | 0.885246 | 0 | 0 | 0.20594 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02459 | false | 0 | 0.016393 | 0.02459 | 0.065574 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 7 |
9be2afaee3c59ffa976d24db903f71f737d209d8 | 42,509 | py | Python | ArcPy/ModeloBooleano.py | phporath/GIS-Tools | 5a1613dfcd516ae1194dd4f1d3981ed11aa0dfa7 | [
"MIT"
] | null | null | null | ArcPy/ModeloBooleano.py | phporath/GIS-Tools | 5a1613dfcd516ae1194dd4f1d3981ed11aa0dfa7 | [
"MIT"
] | null | null | null | ArcPy/ModeloBooleano.py | phporath/GIS-Tools | 5a1613dfcd516ae1194dd4f1d3981ed11aa0dfa7 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# ---------------------------------------------------------------------------
# ModeloBooleano.py
# Created on: 2019-10-22 10:43:58.00000
# (generated by ArcGIS/ModelBuilder)
# Description:
# ---------------------------------------------------------------------------
# Set the necessary prod... | 115.513587 | 9,052 | 0.76158 | 6,556 | 42,509 | 4.638652 | 0.060403 | 0.071027 | 0.069679 | 0.059189 | 0.772714 | 0.72385 | 0.65598 | 0.618263 | 0.593765 | 0.547401 | 0 | 0.067275 | 0.068809 | 42,509 | 367 | 9,053 | 115.828338 | 0.70099 | 0.058905 | 0 | 0.138462 | 1 | 0.923077 | 0.71022 | 0.527973 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.010256 | 0 | 0.010256 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
50380aa12d66188dbec0f5b56c942206d5d2fcb9 | 2,069 | py | Python | challenges/hashmap-tree-intersection/tests/test_hashmap_tree_intersection.py | odai1990/data-structures-and-algorithms | fde43d7bdb241f6ef8de7018edab7e741b65cf77 | [
"MIT"
] | null | null | null | challenges/hashmap-tree-intersection/tests/test_hashmap_tree_intersection.py | odai1990/data-structures-and-algorithms | fde43d7bdb241f6ef8de7018edab7e741b65cf77 | [
"MIT"
] | 1 | 2021-06-13T19:18:34.000Z | 2021-06-13T19:18:34.000Z | challenges/hashmap-tree-intersection/tests/test_hashmap_tree_intersection.py | odai1990/data-structures-and-algorithms | fde43d7bdb241f6ef8de7018edab7e741b65cf77 | [
"MIT"
] | null | null | null | from hashmap_tree_intersection import __version__
from hashmap_tree_intersection.tree import BinarySearchTree
from hashmap_tree_intersection.tree_intersection import TreeIntersection
def test_version():
assert __version__ == '0.1.0'
def test_happy_case():
tree1 = BinarySearchTree()
tree1.add(10)
tre... | 20.89899 | 72 | 0.675689 | 270 | 2,069 | 5.014815 | 0.162963 | 0.141802 | 0.046529 | 0.062038 | 0.836041 | 0.790251 | 0.785081 | 0.762186 | 0.716396 | 0.669867 | 0 | 0.08486 | 0.208313 | 2,069 | 98 | 73 | 21.112245 | 0.741758 | 0 | 0 | 0.822785 | 0 | 0 | 0.002419 | 0 | 0 | 0 | 0 | 0 | 0.075949 | 1 | 0.075949 | false | 0 | 0.037975 | 0 | 0.113924 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 7 |
ace6e531c391cf4ecdf7fac9ae397d66dfb9bf8e | 192 | py | Python | tests/test_parametrizer.py | davidemoro/parametrizer | e5fe3b6276d30b41402b24fac61520b8e5e198a0 | [
"Apache-2.0"
] | null | null | null | tests/test_parametrizer.py | davidemoro/parametrizer | e5fe3b6276d30b41402b24fac61520b8e5e198a0 | [
"Apache-2.0"
] | 2 | 2019-03-14T12:41:32.000Z | 2019-03-14T12:45:21.000Z | tests/test_parametrizer.py | davidemoro/parametrizer | e5fe3b6276d30b41402b24fac61520b8e5e198a0 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
def test_parametrizer():
""" Test parametrizer """
from parametrizer import Parametrizer
assert Parametrizer({'foo': 'bar'}).parametrize('$foo') == 'bar'
| 24 | 68 | 0.630208 | 19 | 192 | 6.315789 | 0.631579 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006329 | 0.177083 | 192 | 7 | 69 | 27.428571 | 0.753165 | 0.213542 | 0 | 0 | 0 | 0 | 0.090278 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.333333 | true | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
acee645e5356ce0ffa6439fdc5199b2ac38bbbe1 | 38 | py | Python | spea/minimum_clique_cover/__init__.py | heyaroom/spea_echo | fd05285aaa55d358bde4458cc73f4e3d39058b68 | [
"MIT"
] | null | null | null | spea/minimum_clique_cover/__init__.py | heyaroom/spea_echo | fd05285aaa55d358bde4458cc73f4e3d39058b68 | [
"MIT"
] | null | null | null | spea/minimum_clique_cover/__init__.py | heyaroom/spea_echo | fd05285aaa55d358bde4458cc73f4e3d39058b68 | [
"MIT"
] | null | null | null | from .clique_cover import clique_cover | 38 | 38 | 0.894737 | 6 | 38 | 5.333333 | 0.666667 | 0.6875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078947 | 38 | 1 | 38 | 38 | 0.914286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
acf09d8942761ce92a838957e1011f8e949b5a7f | 111 | py | Python | api/v1/generics/__init__.py | blockomat2100/vulnman | 835ff3aae1168d8e2fa5556279bc86efd2e46472 | [
"MIT"
] | null | null | null | api/v1/generics/__init__.py | blockomat2100/vulnman | 835ff3aae1168d8e2fa5556279bc86efd2e46472 | [
"MIT"
] | 23 | 2021-12-01T10:00:38.000Z | 2021-12-11T11:43:13.000Z | api/v1/generics/__init__.py | blockomat2100/vulnman | 835ff3aae1168d8e2fa5556279bc86efd2e46472 | [
"MIT"
] | null | null | null | from api.v1.generics.agents import AgentModelViewSet
from api.v1.generics.session import ProjectSessionViewSet
| 37 | 57 | 0.873874 | 14 | 111 | 6.928571 | 0.642857 | 0.14433 | 0.185567 | 0.350515 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019417 | 0.072072 | 111 | 2 | 58 | 55.5 | 0.92233 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
acf4de65fe52fc412eed03ac739a9e84a93edfa3 | 172 | py | Python | autonomous_systems_project/agents/__init__.py | alessandropacielli/autonomous_systems_project | ae429099409356db5cdd19597af871f239300ffb | [
"MIT"
] | null | null | null | autonomous_systems_project/agents/__init__.py | alessandropacielli/autonomous_systems_project | ae429099409356db5cdd19597af871f239300ffb | [
"MIT"
] | null | null | null | autonomous_systems_project/agents/__init__.py | alessandropacielli/autonomous_systems_project | ae429099409356db5cdd19597af871f239300ffb | [
"MIT"
] | null | null | null | from autonomous_systems_project.agents.actor_critic import *
from autonomous_systems_project.agents.double_dqn import *
from autonomous_systems_project.agents.dqn import *
| 43 | 60 | 0.877907 | 23 | 172 | 6.217391 | 0.434783 | 0.293706 | 0.440559 | 0.587413 | 0.797203 | 0.559441 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069767 | 172 | 3 | 61 | 57.333333 | 0.89375 | 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 | 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 | 8 |
4a080ae13c876589897cf230e6a792ce74c2dcb1 | 24,987 | py | Python | NetworkControllability/TmpEdgeAttackExperiments.py | xinfeng1i/NetworkControllability | 8a22ad0498ea12438c132556814dc255e709dc01 | [
"BSD-2-Clause"
] | 1 | 2019-02-06T13:39:49.000Z | 2019-02-06T13:39:49.000Z | NetworkControllability/TmpEdgeAttackExperiments.py | python27/NetworkControllability | 8a22ad0498ea12438c132556814dc255e709dc01 | [
"BSD-2-Clause"
] | 1 | 2020-11-03T22:51:32.000Z | 2020-11-06T11:48:28.000Z | NetworkControllability/TmpEdgeAttackExperiments.py | xinfeng1i/NetworkControllability | 8a22ad0498ea12438c132556814dc255e709dc01 | [
"BSD-2-Clause"
] | null | null | null | import networkx as nx
import matplotlib.pyplot as plt
import exact_controllability as ECT
from networkx.utils import powerlaw_sequence
import operator
import random
import csv
import copy
import subprocess, os
import time
import numpy as np
from ControllabilityRobustnessBasedOnEdgeAttack import RandomEdgeAttack
from Co... | 34.370014 | 109 | 0.540521 | 3,580 | 24,987 | 3.651676 | 0.074302 | 0.055075 | 0.024095 | 0.03098 | 0.782146 | 0.775415 | 0.761034 | 0.746577 | 0.744282 | 0.730207 | 0 | 0.052772 | 0.295474 | 24,987 | 727 | 110 | 34.370014 | 0.689843 | 0.071957 | 0 | 0.780239 | 0 | 0 | 0.105973 | 0.02877 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.001704 | 0.028961 | null | null | 0.115843 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
4a13bacba15ebf17c8cfc42cad96cd3b58f57140 | 305 | py | Python | crypt.py | heyrict/formify | eebd7bb3685a892adb0e4ac82ad34b6610bd0a4e | [
"Apache-2.0"
] | 1 | 2021-06-19T19:32:01.000Z | 2021-06-19T19:32:01.000Z | crypt.py | heyrict/formify | eebd7bb3685a892adb0e4ac82ad34b6610bd0a4e | [
"Apache-2.0"
] | null | null | null | crypt.py | heyrict/formify | eebd7bb3685a892adb0e4ac82ad34b6610bd0a4e | [
"Apache-2.0"
] | null | null | null | import bcrypt
class Bcrypt(object):
def get_hashed_password(plain_text_password):
return bcrypt.hashpw(plain_text_password.encode(), bcrypt.gensalt())
def check_password(plain_text_password, hashed_password):
return bcrypt.checkpw(plain_text_password.encode(), hashed_password)
| 30.5 | 76 | 0.77377 | 38 | 305 | 5.868421 | 0.421053 | 0.161435 | 0.304933 | 0.224215 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137705 | 305 | 9 | 77 | 33.888889 | 0.847909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.666667 | 0.166667 | 0.333333 | 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 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 7 |
680f5487f3c7b14f1073a9e3723d4f09b3722c0f | 77 | py | Python | trot_analysis/__init__.py | chrishavlin/trot_analysis | e1adb2af3faba6e1875a96ef1f9a71b11aa941f6 | [
"MIT"
] | 1 | 2020-11-30T02:38:33.000Z | 2020-11-30T02:38:33.000Z | trot_analysis/__init__.py | chrishavlin/trot_analysis | e1adb2af3faba6e1875a96ef1f9a71b11aa941f6 | [
"MIT"
] | null | null | null | trot_analysis/__init__.py | chrishavlin/trot_analysis | e1adb2af3faba6e1875a96ef1f9a71b11aa941f6 | [
"MIT"
] | null | null | null | from trot_analysis.trotters import trotters
from trot_analysis import awards
| 25.666667 | 43 | 0.883117 | 11 | 77 | 6 | 0.545455 | 0.242424 | 0.484848 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103896 | 77 | 2 | 44 | 38.5 | 0.956522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 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 | 7 |
a83c44e16c299e18314865a0b3e4230025777ebb | 28,836 | py | Python | python_msx_sdk/api/services_api.py | CiscoDevNet/python-msx-sdk | d7e0a08c656504b4f4551d263e67c671a2a04b3f | [
"MIT"
] | null | null | null | python_msx_sdk/api/services_api.py | CiscoDevNet/python-msx-sdk | d7e0a08c656504b4f4551d263e67c671a2a04b3f | [
"MIT"
] | null | null | null | python_msx_sdk/api/services_api.py | CiscoDevNet/python-msx-sdk | d7e0a08c656504b4f4551d263e67c671a2a04b3f | [
"MIT"
] | null | null | null | """
MSX SDK
MSX SDK client. # noqa: E501
The version of the OpenAPI document: 1.0.9
Generated by: https://openapi-generator.tech
"""
import re # noqa: F401
import sys # noqa: F401
from python_msx_sdk.api_client import ApiClient, Endpoint as _Endpoint
from python_msx_sdk.model_utils import ( # n... | 35.165854 | 101 | 0.446595 | 2,412 | 28,836 | 5.07131 | 0.082919 | 0.030903 | 0.025507 | 0.026488 | 0.867479 | 0.852273 | 0.847531 | 0.844997 | 0.82791 | 0.813849 | 0 | 0.003336 | 0.469829 | 28,836 | 819 | 102 | 35.208791 | 0.796769 | 0.305798 | 0 | 0.653501 | 1 | 0 | 0.211497 | 0.030814 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012567 | false | 0 | 0.017953 | 0 | 0.043088 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
a85874908f4ac7d17c5abdbf8b971fe06fab0c18 | 92 | py | Python | augur/metrics/repo_meta/__init__.py | Claire-Hough/augur | b48d246a8959f62473c8e898148a2113772a700c | [
"MIT"
] | 3 | 2019-10-31T19:07:48.000Z | 2019-11-20T23:14:15.000Z | augur/metrics/repo_meta/__init__.py | Claire-Hough/augur | b48d246a8959f62473c8e898148a2113772a700c | [
"MIT"
] | 3 | 2019-12-03T21:21:17.000Z | 2019-12-05T15:26:22.000Z | augur/metrics/repo_meta/__init__.py | Claire-Hough/augur | b48d246a8959f62473c8e898148a2113772a700c | [
"MIT"
] | 4 | 2019-11-05T20:22:12.000Z | 2019-12-12T18:08:30.000Z | from .repo_meta import create_repo_meta_metrics
from .routes import create_repo_meta_routes | 30.666667 | 47 | 0.891304 | 15 | 92 | 5 | 0.466667 | 0.32 | 0.426667 | 0.533333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086957 | 92 | 3 | 48 | 30.666667 | 0.892857 | 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 | 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 | 8 |
a87dfa582c7ab24d706467107ffdc96d9bcc6b9e | 23,058 | py | Python | WAnet/training.py | THREDgroup/WAnet | 2b160012880f05f8ea3abcc426fb53eedfd51f80 | [
"MIT"
] | null | null | null | WAnet/training.py | THREDgroup/WAnet | 2b160012880f05f8ea3abcc426fb53eedfd51f80 | [
"MIT"
] | null | null | null | WAnet/training.py | THREDgroup/WAnet | 2b160012880f05f8ea3abcc426fb53eedfd51f80 | [
"MIT"
] | null | null | null | import keras
import sklearn.model_selection
import numpy
import pkg_resources
import os
VERBOSE = 1
def load_data():
curves = numpy.load(pkg_resources.resource_filename('WAnet', 'data/compiled_data/data_curves.npz'))['curves']
geometry = numpy.load(pkg_resources.resource_filename('WAnet', 'data/compiled_data/... | 45.47929 | 166 | 0.69876 | 3,151 | 23,058 | 4.87496 | 0.074897 | 0.031639 | 0.05859 | 0.082026 | 0.960875 | 0.95736 | 0.952803 | 0.935551 | 0.935551 | 0.931254 | 0 | 0.012516 | 0.171871 | 23,058 | 507 | 167 | 45.47929 | 0.791935 | 0.071645 | 0 | 0.70028 | 0 | 0 | 0.108551 | 0.047298 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042017 | false | 0 | 0.014006 | 0 | 0.098039 | 0.084034 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 7 |
763e9aee578d7770d8934bb15401538afa02f839 | 1,067 | py | Python | tests/integrate/test_login.py | NTUT-108-SE/CMS-Backend | 1daa37960ba61f935da5174516f0a2e411b68706 | [
"MIT"
] | null | null | null | tests/integrate/test_login.py | NTUT-108-SE/CMS-Backend | 1daa37960ba61f935da5174516f0a2e411b68706 | [
"MIT"
] | null | null | null | tests/integrate/test_login.py | NTUT-108-SE/CMS-Backend | 1daa37960ba61f935da5174516f0a2e411b68706 | [
"MIT"
] | 1 | 2019-10-12T02:48:16.000Z | 2019-10-12T02:48:16.000Z | import pytest
def test_login_failed(user_client):
res = user_client.post("/login", data={'{"email": "admin@gmail.com", "password": "asd" }': ''})
assert res.status_code == 401
def test_login_None(user_client):
res = user_client.post("/login", data={'{"email": "admin@gmail.com" }': ''})
assert res.st... | 25.404762 | 99 | 0.663543 | 148 | 1,067 | 4.527027 | 0.189189 | 0.238806 | 0.135821 | 0.177612 | 0.846269 | 0.804478 | 0.795522 | 0.795522 | 0.69403 | 0.69403 | 0 | 0.023756 | 0.171509 | 1,067 | 41 | 100 | 26.02439 | 0.734163 | 0 | 0 | 0.555556 | 0 | 0 | 0.182755 | 0 | 0 | 0 | 0 | 0 | 0.296296 | 1 | 0.259259 | false | 0.074074 | 0.037037 | 0 | 0.296296 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 9 |
769a2a877b701c243cbc22ad5356f2028e91a22f | 11,808 | py | Python | test/test_raw_data_manifest_manager.py | feiga/fedlearner | 99a19934b872a9fba6d85ae018b0ec145612fbca | [
"Apache-2.0"
] | null | null | null | test/test_raw_data_manifest_manager.py | feiga/fedlearner | 99a19934b872a9fba6d85ae018b0ec145612fbca | [
"Apache-2.0"
] | null | null | null | test/test_raw_data_manifest_manager.py | feiga/fedlearner | 99a19934b872a9fba6d85ae018b0ec145612fbca | [
"Apache-2.0"
] | 1 | 2020-04-09T07:50:55.000Z | 2020-04-09T07:50:55.000Z | # Copyright 2020 The FedLearner Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | 46.488189 | 86 | 0.607808 | 1,332 | 11,808 | 5.045796 | 0.120871 | 0.116203 | 0.101771 | 0.201161 | 0.805832 | 0.800774 | 0.787383 | 0.761494 | 0.752715 | 0.748847 | 0 | 0.007935 | 0.316904 | 11,808 | 253 | 87 | 46.671937 | 0.825316 | 0.05039 | 0 | 0.701754 | 0 | 0 | 0.005894 | 0 | 0 | 0 | 0 | 0 | 0.320175 | 1 | 0.004386 | false | 0 | 0.02193 | 0 | 0.030702 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 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 | 8 |
76bce575ea23f076f84a05c65a04ffa3300bf4ad | 2,697 | py | Python | utils/utils.py | dawoeh/BioMedRxiv_API | 27ca2f42466ffc5a7c0a46215a9df73fc5a9abd3 | [
"MIT"
] | null | null | null | utils/utils.py | dawoeh/BioMedRxiv_API | 27ca2f42466ffc5a7c0a46215a9df73fc5a9abd3 | [
"MIT"
] | null | null | null | utils/utils.py | dawoeh/BioMedRxiv_API | 27ca2f42466ffc5a7c0a46215a9df73fc5a9abd3 | [
"MIT"
] | null | null | null | import requests
import json
from time import sleep
import tqdm
import math
import pandas as pd
def date_rxiv(server, from_date, to_date, result_start=0):
data = pd.DataFrame()
pbar = None
while True:
response = requests.get(f'https://api.biorxiv.org/details/{server}/{from_date}/{to_date}/{result_... | 34.139241 | 121 | 0.618465 | 356 | 2,697 | 4.570225 | 0.191011 | 0.067609 | 0.036878 | 0.051629 | 0.859865 | 0.859865 | 0.836509 | 0.832821 | 0.819299 | 0.783651 | 0 | 0.014613 | 0.238784 | 2,697 | 79 | 122 | 34.139241 | 0.777886 | 0 | 0 | 0.75 | 0 | 0 | 0.165308 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.069444 | false | 0 | 0.083333 | 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 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
4f5df69aa9de018222c7713fcedc0ff6c1f4b20e | 710 | py | Python | lib/workflow/rule/tag_multi.py | auho/python-ETL | 761589814b04e076ba6fa1c0e64b83ce62ce8556 | [
"Apache-2.0"
] | null | null | null | lib/workflow/rule/tag_multi.py | auho/python-ETL | 761589814b04e076ba6fa1c0e64b83ce62ce8556 | [
"Apache-2.0"
] | null | null | null | lib/workflow/rule/tag_multi.py | auho/python-ETL | 761589814b04e076ba6fa1c0e64b83ce62ce8556 | [
"Apache-2.0"
] | null | null | null | from . import tag
class TagRule(tag.TagRule):
def _main(self):
self._keywordFunList.append(tag.symbol_underline_fun)
def get_keys(self):
return [self._keywordName, self._get_alias(f"{self._name}_keyword_num")] + self.get_tags_keys()
def tag_insert(self, content):
return self._tag... | 29.583333 | 103 | 0.722535 | 95 | 710 | 5.021053 | 0.294737 | 0.083857 | 0.054507 | 0.071279 | 0.813417 | 0.813417 | 0.813417 | 0.813417 | 0.813417 | 0.813417 | 0 | 0 | 0.166197 | 710 | 23 | 104 | 30.869565 | 0.805743 | 0 | 0 | 0.666667 | 0 | 0 | 0.067606 | 0.067606 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0.066667 | 0.266667 | 0.866667 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 8 |
96e50fb0fcee2f9625b7316c1e0d1cda524f9e76 | 6,229 | py | Python | tikv_client/__init__.py | gotoxu/client-py | 1f3158e9a0a88e10afb89078b15ddf1b1d11c7dc | [
"Apache-2.0"
] | null | null | null | tikv_client/__init__.py | gotoxu/client-py | 1f3158e9a0a88e10afb89078b15ddf1b1d11c7dc | [
"Apache-2.0"
] | null | null | null | tikv_client/__init__.py | gotoxu/client-py | 1f3158e9a0a88e10afb89078b15ddf1b1d11c7dc | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 TiKV Project Authors. Licensed under Apache-2.0.
import asyncio
from . import asynchronous
class RawClient:
def __init__(self):
raise Exception("Please use `RawClient.connect()` instead.")
@classmethod
def connect(cls, pd_endpoint):
event_loop = asyncio.get_event_loop()
... | 38.450617 | 117 | 0.700915 | 852 | 6,229 | 4.806338 | 0.080986 | 0.197802 | 0.117216 | 0.139194 | 0.842247 | 0.828571 | 0.828571 | 0.793651 | 0.78779 | 0.786081 | 0 | 0.001196 | 0.194895 | 6,229 | 161 | 118 | 38.689441 | 0.815354 | 0.010114 | 0 | 0.566667 | 0 | 0 | 0.024822 | 0.008112 | 0 | 0 | 0 | 0 | 0 | 1 | 0.291667 | false | 0 | 0.016667 | 0 | 0.533333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
8c14f9519e17251dad6656b2f31d302f266612ef | 6,701 | py | Python | quick_sort2.py | RitRa/Algorithms-project- | d9de6437be9fa3424aeec08cb8cf42bc377c5813 | [
"MIT"
] | null | null | null | quick_sort2.py | RitRa/Algorithms-project- | d9de6437be9fa3424aeec08cb8cf42bc377c5813 | [
"MIT"
] | null | null | null | quick_sort2.py | RitRa/Algorithms-project- | d9de6437be9fa3424aeec08cb8cf42bc377c5813 | [
"MIT"
] | null | null | null | # importing the random numbers
from randomnumber import *
# Quick Sort
def printalistay(alist):
return (' '.join(str(i) for i in alist))
def quicksort(alist, i, j):
if i < j:
pos = partition(alist, i, j)
quicksort(alist, i, pos - 1)
quicksort(alist, pos + 1, j)
def partition(alist, i, j):
#pivot ... | 27.463115 | 79 | 0.584241 | 860 | 6,701 | 4.390698 | 0.094186 | 0.148305 | 0.133475 | 0.039725 | 0.818591 | 0.818591 | 0.810911 | 0.810911 | 0.810911 | 0.810911 | 0 | 0.016978 | 0.296821 | 6,701 | 244 | 80 | 27.463115 | 0.78438 | 0.102074 | 0 | 0.754491 | 0 | 0 | 0.003058 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02994 | false | 0 | 0.011976 | 0.005988 | 0.053892 | 0.017964 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 7 |
8c36d746f722700e291437f166c23acae2412cb6 | 129,264 | py | Python | simplema/jessetkdata/dnafiles/ETH-USDT 2019-12-20 2021-11-12.py | ysdede/jesse_strategies | ade9f4ba42cec11207c766d267b9d8feb8bce648 | [
"CC0-1.0"
] | 38 | 2021-09-18T15:33:28.000Z | 2022-02-21T17:29:08.000Z | simplema/jessetkdata/dnafiles/ETH-USDT 2019-12-20 2021-11-12.py | ysdede/jesse_strategies | ade9f4ba42cec11207c766d267b9d8feb8bce648 | [
"CC0-1.0"
] | 4 | 2022-01-02T14:46:12.000Z | 2022-02-16T18:39:41.000Z | simplema/jessetkdata/dnafiles/ETH-USDT 2019-12-20 2021-11-12.py | ysdede/jesse_strategies | ade9f4ba42cec11207c766d267b9d8feb8bce648 | [
"CC0-1.0"
] | 11 | 2021-10-19T06:21:43.000Z | 2022-02-21T17:29:10.000Z | dnas = [
['pX3Eo\\]', 38, 146, 1069.71, 38, 26, -27.55, {'qty_to_risk': 7, 'target_pnl': 253, 'stop': 35, 'donchlen': 78, 'treshold': 92, 'ema_fast': 14, 'ema_slow': 40}],
['k[3Eo\\]', 38, 146, 1030.13, 38, 26, -27.55, {'qty_to_risk': 7, 'target_pnl': 267, 'stop': 35, 'donchlen': 78, 'treshold': 92, 'ema_fast': 14, 'em... | 160.576398 | 163 | 0.593646 | 22,870 | 129,264 | 3.173852 | 0.068518 | 0.055245 | 0.099441 | 0.07591 | 0.794864 | 0.777822 | 0.74513 | 0.721076 | 0.679814 | 0.670474 | 0 | 0.240718 | 0.130322 | 129,264 | 804 | 164 | 160.776119 | 0.404962 | 0 | 0 | 0 | 0 | 0 | 0.39735 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
4fc4620099c9e264ed4654e67b171bfc6263526d | 2,250 | py | Python | tests/test_transform.py | brandonschabell/datetransform | 7331185d854f14734a33ee00a84367d33c2aada0 | [
"MIT"
] | 1 | 2020-01-15T02:05:16.000Z | 2020-01-15T02:05:16.000Z | tests/test_transform.py | brandonschabell/datetransform | 7331185d854f14734a33ee00a84367d33c2aada0 | [
"MIT"
] | 3 | 2020-04-22T20:48:22.000Z | 2020-05-04T23:38:32.000Z | tests/test_transform.py | brandonschabell/datetransform | 7331185d854f14734a33ee00a84367d33c2aada0 | [
"MIT"
] | null | null | null | import pandas as pd
from datetransform import transform
def test_add_date_features():
df = pd.DataFrame({'dateCol': ['2019-08-09 16:39:47']})
df = transform.add_date_features(df, 'dateCol')
assert df.columns.tolist() == ['dateCol',
'dateColYear',
... | 44.117647 | 60 | 0.389778 | 118 | 2,250 | 7.313559 | 0.355932 | 0.032445 | 0.069525 | 0.078795 | 0.900348 | 0.900348 | 0.900348 | 0.900348 | 0.900348 | 0.900348 | 0 | 0.038961 | 0.520889 | 2,250 | 51 | 61 | 44.117647 | 0.761596 | 0 | 0 | 0.795455 | 0 | 0 | 0.251444 | 0.018658 | 0 | 0 | 0 | 0 | 0.068182 | 1 | 0.068182 | false | 0 | 0.045455 | 0 | 0.113636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 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 | 8 |
4ff561f47d5a1d599392b77e3ea5d6c9e806ff95 | 26,999 | py | Python | examples/fitzhugh-nagumo/visualize.py | JamesBrofos/Thresholds-in-Hamiltonian-Monte-Carlo | 7ee1b530db0eb536666dbc872fbf8200e53dd49b | [
"MIT"
] | 1 | 2021-11-23T15:40:07.000Z | 2021-11-23T15:40:07.000Z | examples/fitzhugh-nagumo/visualize.py | JamesBrofos/Thresholds-in-Hamiltonian-Monte-Carlo | 7ee1b530db0eb536666dbc872fbf8200e53dd49b | [
"MIT"
] | null | null | null | examples/fitzhugh-nagumo/visualize.py | JamesBrofos/Thresholds-in-Hamiltonian-Monte-Carlo | 7ee1b530db0eb536666dbc872fbf8200e53dd49b | [
"MIT"
] | null | null | null | import glob
import os
import pickle
import matplotlib.pyplot as plt
import numpy as np
import scipy.stats as spst
from scipy.integrate import odeint
from hmc import summarize
from hmc.applications.fitzhugh_nagumo import fn_dynamics
from load_data import load_data
def euclidean_samples():
num_samples = [1000, 1... | 39.242733 | 219 | 0.610874 | 3,968 | 26,999 | 4.033014 | 0.068548 | 0.029369 | 0.017622 | 0.023996 | 0.87771 | 0.86515 | 0.857464 | 0.852653 | 0.830657 | 0.819034 | 0 | 0.038185 | 0.206563 | 26,999 | 687 | 220 | 39.299854 | 0.708851 | 0 | 0 | 0.732773 | 0 | 0.001681 | 0.095374 | 0.021038 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023529 | false | 0 | 0.016807 | 0 | 0.045378 | 0.003361 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 7 |
8c90f117276cb3890e33b89c6c379cacf637802b | 1,196 | py | Python | mat_db/main/migrations/0006_hosedynamic_nu_min40_hosedynamic_nu_plus100_and_more.py | tkminek/material_database | 8661617077192d20e8d9445cd6560bf1266f0582 | [
"MIT"
] | null | null | null | mat_db/main/migrations/0006_hosedynamic_nu_min40_hosedynamic_nu_plus100_and_more.py | tkminek/material_database | 8661617077192d20e8d9445cd6560bf1266f0582 | [
"MIT"
] | null | null | null | mat_db/main/migrations/0006_hosedynamic_nu_min40_hosedynamic_nu_plus100_and_more.py | tkminek/material_database | 8661617077192d20e8d9445cd6560bf1266f0582 | [
"MIT"
] | null | null | null | # Generated by Django 4.0.2 on 2022-02-23 10:19
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0005_hose_hosestatic_hosedynamic'),
]
operations = [
migrations.AddField(
model_name='hosedynamic',
name='nu... | 27.181818 | 53 | 0.551839 | 113 | 1,196 | 5.707965 | 0.327434 | 0.167442 | 0.213953 | 0.251163 | 0.75814 | 0.75814 | 0.75814 | 0.699225 | 0.699225 | 0.631008 | 0 | 0.07125 | 0.331104 | 1,196 | 43 | 54 | 27.813953 | 0.735 | 0.037625 | 0 | 0.810811 | 1 | 0 | 0.133159 | 0.02785 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.027027 | 0 | 0.108108 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.