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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7d89d7bc0209c44c0dee2a545f4f655a803b15ba | 293 | py | Python | guillotina/json/__init__.py | rboixaderg/guillotina | fcae65c2185222272f3b8fee4bc2754e81e0e983 | [
"BSD-2-Clause"
] | 173 | 2017-03-10T18:26:12.000Z | 2022-03-03T06:48:56.000Z | guillotina/json/__init__.py | rboixaderg/guillotina | fcae65c2185222272f3b8fee4bc2754e81e0e983 | [
"BSD-2-Clause"
] | 921 | 2017-03-08T14:04:43.000Z | 2022-03-30T10:28:56.000Z | guillotina/json/__init__.py | rboixaderg/guillotina | fcae65c2185222272f3b8fee4bc2754e81e0e983 | [
"BSD-2-Clause"
] | 60 | 2017-03-16T19:59:44.000Z | 2022-03-03T06:48:59.000Z | # make sure configure registrations are executed
from . import deserialize_content # noqa
from . import deserialize_value # noqa
from . import serialize_content # noqa
from . import serialize_schema # noqa
from . import serialize_schema_field # noqa
from . import serialize_value # noqa
| 36.625 | 48 | 0.788396 | 37 | 293 | 6.054054 | 0.405405 | 0.267857 | 0.3125 | 0.410714 | 0.258929 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.167235 | 293 | 7 | 49 | 41.857143 | 0.918033 | 0.259386 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
7dc7463c522eda207ed92b12fa65e45d0b704ffa | 187 | py | Python | lektor_groupby/__init__.py | relikd/lektor-groupby-plugin | eb0a60ab33648b6b8ee633a5af86ee61d9398abd | [
"MIT"
] | null | null | null | lektor_groupby/__init__.py | relikd/lektor-groupby-plugin | eb0a60ab33648b6b8ee633a5af86ee61d9398abd | [
"MIT"
] | null | null | null | lektor_groupby/__init__.py | relikd/lektor-groupby-plugin | eb0a60ab33648b6b8ee633a5af86ee61d9398abd | [
"MIT"
] | null | null | null | from .config import Config # noqa: F401
from .groupby import GroupBy # noqa: F401
from .plugin import GroupByPlugin # noqa: F401
from .watcher import GroupByCallbackArgs # noqa: F401
| 37.4 | 54 | 0.764706 | 24 | 187 | 5.958333 | 0.416667 | 0.223776 | 0.251748 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.077419 | 0.171123 | 187 | 4 | 55 | 46.75 | 0.845161 | 0.229947 | 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 |
7de3665d2f3ae41d40846e1aaedea87b1646b771 | 7,556 | py | Python | parser/team24/graphQueries.py | webdev188/tytus | 847071edb17b218f51bb969d335a8ec093d13f94 | [
"MIT"
] | 35 | 2020-12-07T03:11:43.000Z | 2021-04-15T17:38:16.000Z | parser/team24/graphQueries.py | webdev188/tytus | 847071edb17b218f51bb969d335a8ec093d13f94 | [
"MIT"
] | 47 | 2020-12-09T01:29:09.000Z | 2021-01-13T05:37:50.000Z | parser/team24/graphQueries.py | webdev188/tytus | 847071edb17b218f51bb969d335a8ec093d13f94 | [
"MIT"
] | 556 | 2020-12-07T03:13:31.000Z | 2021-06-17T17:41:10.000Z | import graphviz as gr
import classesQuerys as cq
def graphTree(queries):
g = gr.Digraph()
g.node('queries','Lista de Queries')
for inst in queries:
g.node(str(hash(inst)),'Query')
g.edge('queries',str(hash(inst)))
graphSelect(inst,g)
g.render('tree.svg',view=True)
def graphSel... | 39.354167 | 81 | 0.549894 | 869 | 7,556 | 4.72382 | 0.098964 | 0.092083 | 0.15201 | 0.173691 | 0.854811 | 0.844093 | 0.841657 | 0.841657 | 0.841657 | 0.839708 | 0 | 0.007571 | 0.300821 | 7,556 | 191 | 82 | 39.560209 | 0.769449 | 0.067099 | 0 | 0.792593 | 0 | 0 | 0.122327 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022222 | false | 0 | 0.014815 | 0 | 0.037037 | 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 |
81c043de92d58c854c95e00e3c4818e66d96ef08 | 5,086 | py | Python | examples/semantic_segmentation/modelNet/aspp.py | TrainingDML/pytdml | b1c21533a44d931717d9398cbdc57b1ee4ef3302 | [
"MIT"
] | 2 | 2022-03-25T13:12:05.000Z | 2022-03-29T07:09:03.000Z | examples/semantic_segmentation/modelNet/aspp.py | TrainingDML/pytdml | b1c21533a44d931717d9398cbdc57b1ee4ef3302 | [
"MIT"
] | null | null | null | examples/semantic_segmentation/modelNet/aspp.py | TrainingDML/pytdml | b1c21533a44d931717d9398cbdc57b1ee4ef3302 | [
"MIT"
] | 1 | 2022-03-31T06:11:17.000Z | 2022-03-31T06:11:17.000Z | import torch
import torch.nn as nn
import torch.nn.functional as F
class ASPP(nn.Module):
def __init__(self, num_classes):
super(ASPP, self).__init__()
self.conv_1x1_1 = nn.Conv2d(512, 256, kernel_size=1)
self.bn_conv_1x1_1 = nn.BatchNorm2d(256)
self.conv_3x3_1 = nn.Conv2d(512, 2... | 48.903846 | 216 | 0.639796 | 880 | 5,086 | 3.389773 | 0.081818 | 0.075092 | 0.080456 | 0.036205 | 0.930272 | 0.924237 | 0.924237 | 0.924237 | 0.910828 | 0.88535 | 0 | 0.145604 | 0.212741 | 5,086 | 103 | 217 | 49.378641 | 0.599401 | 0.21746 | 0 | 0.753623 | 0 | 0 | 0.00405 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057971 | false | 0 | 0.043478 | 0 | 0.15942 | 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 |
c48e2a941baa809fdb9fba39af06983c2e542897 | 11,320 | py | Python | tests/components/nuki/test_config_flow.py | pcaston/core | e74d946cef7a9d4e232ae9e0ba150d18018cfe33 | [
"Apache-2.0"
] | 1 | 2021-07-08T20:09:55.000Z | 2021-07-08T20:09:55.000Z | tests/components/nuki/test_config_flow.py | pcaston/core | e74d946cef7a9d4e232ae9e0ba150d18018cfe33 | [
"Apache-2.0"
] | 47 | 2021-02-21T23:43:07.000Z | 2022-03-31T06:07:10.000Z | tests/components/nuki/test_config_flow.py | OpenPeerPower/core | f673dfac9f2d0c48fa30af37b0a99df9dd6640ee | [
"Apache-2.0"
] | null | null | null | """Test the nuki config flow."""
from unittest.mock import patch
from pynuki.bridge import InvalidCredentialsException
from requests.exceptions import RequestException
from openpeerpower import config_entries, data_entry_flow, setup
from openpeerpower.components.dhcp import HOSTNAME, IP_ADDRESS, MAC_ADDRESS
from open... | 34.199396 | 84 | 0.639046 | 1,313 | 11,320 | 5.257426 | 0.080731 | 0.067797 | 0.044618 | 0.066927 | 0.862234 | 0.857888 | 0.843401 | 0.826018 | 0.802405 | 0.782124 | 0 | 0.017217 | 0.240636 | 11,320 | 330 | 85 | 34.30303 | 0.785831 | 0.002297 | 0 | 0.731801 | 0 | 0 | 0.183394 | 0.095518 | 0 | 0 | 0 | 0 | 0.187739 | 1 | 0 | false | 0 | 0.038314 | 0 | 0.038314 | 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 |
c49e2e563fcab31d6a67c9a110a1a44c135f76a0 | 79 | py | Python | 02/5 - Sort of Strangeness.py | Surferlul/csc-python-solutions | bea99e5e1e344d17fb2cb29d8bcbc6b108e24cee | [
"MIT"
] | null | null | null | 02/5 - Sort of Strangeness.py | Surferlul/csc-python-solutions | bea99e5e1e344d17fb2cb29d8bcbc6b108e24cee | [
"MIT"
] | null | null | null | 02/5 - Sort of Strangeness.py | Surferlul/csc-python-solutions | bea99e5e1e344d17fb2cb29d8bcbc6b108e24cee | [
"MIT"
] | null | null | null | print(min(x, y, z))
print(x+y+z-min(x, y, z)-max(x, y, z))
print(max(x, y, z))
| 19.75 | 38 | 0.531646 | 22 | 79 | 1.909091 | 0.272727 | 0.238095 | 0.357143 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.139241 | 79 | 3 | 39 | 26.333333 | 0.617647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 8 |
c4b863cbfd60af28119aeb047325dc37944f335d | 5,027 | py | Python | tests/math/test_max.py | maki-nage/rxsci | 64c9956752cbdd4c65aa9f054b6b28318a056625 | [
"MIT"
] | 3 | 2021-05-03T13:40:46.000Z | 2022-03-06T07:59:30.000Z | tests/math/test_max.py | maki-nage/rxsci | 64c9956752cbdd4c65aa9f054b6b28318a056625 | [
"MIT"
] | 9 | 2020-10-22T21:08:10.000Z | 2021-08-05T09:01:26.000Z | tests/math/test_max.py | maki-nage/rxsci | 64c9956752cbdd4c65aa9f054b6b28318a056625 | [
"MIT"
] | 2 | 2021-01-05T16:48:54.000Z | 2021-08-07T12:51:01.000Z | from pytest import approx
import rx
import rxsci as rs
def test_max_empty():
source = []
actual_result = []
rx.from_(source).pipe(
rs.math.max()
).subscribe(on_next=actual_result.append)
assert actual_result == [None]
def test_max_empty_reduce():
source = []
actual_result = []
... | 24.642157 | 54 | 0.573304 | 612 | 5,027 | 4.501634 | 0.109477 | 0.12196 | 0.03049 | 0.063884 | 0.865699 | 0.848639 | 0.847187 | 0.839201 | 0.783303 | 0.747368 | 0 | 0.029736 | 0.277501 | 5,027 | 203 | 55 | 24.763547 | 0.7288 | 0 | 0 | 0.775758 | 0 | 0 | 0.000796 | 0 | 0 | 0 | 0 | 0 | 0.09697 | 1 | 0.072727 | false | 0 | 0.024242 | 0 | 0.09697 | 0.012121 | 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 |
f216ba3d9739e4103b8a0f8821315c3a19eecff9 | 1,081 | py | Python | pynitrokey/start/rsa_pub_key.py | fayrlight/pynitrokey | c6a93da7a811d34213746b60fab22affb3616a88 | [
"Apache-2.0",
"MIT"
] | 15 | 2020-08-05T14:37:37.000Z | 2022-02-20T13:47:41.000Z | pynitrokey/start/rsa_pub_key.py | fayrlight/pynitrokey | c6a93da7a811d34213746b60fab22affb3616a88 | [
"Apache-2.0",
"MIT"
] | 153 | 2020-06-22T13:09:41.000Z | 2022-03-31T10:25:14.000Z | pynitrokey/start/rsa_pub_key.py | fayrlight/pynitrokey | c6a93da7a811d34213746b60fab22affb3616a88 | [
"Apache-2.0",
"MIT"
] | 4 | 2021-04-06T07:08:59.000Z | 2022-02-14T14:26:38.000Z | rsa_key_data = [
"9cf7192b51a574d1ad3ccb08ba09b87f228573893eee355529ff243e90fd4b86f79a82097cc7922c0485bed1616b1656a9b0b19ef78ea8ec34c384019adc5d5bf4db2d2a0a2d9cf14277bdcb7056f48b81214e3f7f7742231e29673966f9b1106862112cc798dba8d4a138bb5abfc6d4c12d53a5d39b2f783da916da20852ee139bbafda61d429caf2a4f30847ce7e7ae32ab4061e... | 135.125 | 519 | 0.963922 | 7 | 1,081 | 148.571429 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.614583 | 0.023127 | 1,081 | 7 | 520 | 154.428571 | 0.370265 | 0 | 0 | 0 | 0 | 0 | 0.953704 | 0.948148 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
482106af5be38929a1554705a7a6118033090043 | 810 | py | Python | nfv/nfv-common/nfv_common/event_log/objects/v1/__init__.py | SidneyAn/nfv | 5f0262a5b6ea4be59f977b9c587c483cbe0e373d | [
"Apache-2.0"
] | 2 | 2020-02-07T19:01:36.000Z | 2022-02-23T01:41:46.000Z | nfv/nfv-common/nfv_common/event_log/objects/v1/__init__.py | SidneyAn/nfv | 5f0262a5b6ea4be59f977b9c587c483cbe0e373d | [
"Apache-2.0"
] | 1 | 2021-01-14T12:02:25.000Z | 2021-01-14T12:02:25.000Z | nfv/nfv-common/nfv_common/event_log/objects/v1/__init__.py | SidneyAn/nfv | 5f0262a5b6ea4be59f977b9c587c483cbe0e373d | [
"Apache-2.0"
] | 2 | 2021-01-13T08:39:21.000Z | 2022-02-09T00:21:55.000Z | #
# Copyright (c) 2015-2016 Wind River Systems, Inc.
#
# SPDX-License-Identifier: Apache-2.0
#
from nfv_common.event_log.objects.v1._event_log_data import EventLogData # noqa: F401
from nfv_common.event_log.objects.v1._event_log_data import EventLogStateData # noqa: F401
from nfv_common.event_log.objects.v1._event_lo... | 57.857143 | 95 | 0.825926 | 132 | 810 | 4.719697 | 0.265152 | 0.205457 | 0.166934 | 0.23114 | 0.746388 | 0.746388 | 0.746388 | 0.746388 | 0.746388 | 0.746388 | 0 | 0.057377 | 0.096296 | 810 | 13 | 96 | 62.307692 | 0.793716 | 0.212346 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 10 |
485643590eb92f2042359fe887bdbdd996a3a53e | 145 | py | Python | src/models/__init__.py | hlydecker/Iterative-Human-and-Automated-Identification-of-Wildlife-Images | 018dbb24dc42fa7dd1d921fef944802a06b22069 | [
"BSD-3-Clause"
] | 8 | 2021-10-21T23:51:47.000Z | 2022-03-14T22:23:13.000Z | src/models/__init__.py | hlydecker/Iterative-Human-and-Automated-Identification-of-Wildlife-Images | 018dbb24dc42fa7dd1d921fef944802a06b22069 | [
"BSD-3-Clause"
] | null | null | null | src/models/__init__.py | hlydecker/Iterative-Human-and-Automated-Identification-of-Wildlife-Images | 018dbb24dc42fa7dd1d921fef944802a06b22069 | [
"BSD-3-Clause"
] | 1 | 2021-12-02T04:38:12.000Z | 2021-12-02T04:38:12.000Z | from . import utils
from . import plain_resnet
from . import memory_resnet
from . import memory_resnet_soft_iter
from . import plain_semi_resnet
| 24.166667 | 37 | 0.827586 | 22 | 145 | 5.136364 | 0.409091 | 0.442478 | 0.265487 | 0.389381 | 0.442478 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137931 | 145 | 5 | 38 | 29 | 0.904 | 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 |
486db2763a82f12bbad8363cad90ed0dd73c0394 | 4,452 | py | Python | tests/unit/plugins/kubernetes/kube_client_test.py | Yelp/task_processing | 73221a5c5300bb46efbbd0aa6a3ae46c82ff6a79 | [
"Apache-2.0"
] | 27 | 2017-05-17T03:07:14.000Z | 2022-01-26T05:53:50.000Z | tests/unit/plugins/kubernetes/kube_client_test.py | Yelp/task_processing | 73221a5c5300bb46efbbd0aa6a3ae46c82ff6a79 | [
"Apache-2.0"
] | 64 | 2017-05-13T00:30:14.000Z | 2021-09-03T21:42:06.000Z | tests/unit/plugins/kubernetes/kube_client_test.py | Yelp/task_processing | 73221a5c5300bb46efbbd0aa6a3ae46c82ff6a79 | [
"Apache-2.0"
] | 6 | 2017-08-22T06:08:06.000Z | 2021-05-27T00:07:51.000Z | import os
from unittest import mock
import pytest
from kubernetes.client.exceptions import ApiException
from task_processing.plugins.kubernetes.kube_client import ExceededMaxAttempts
from task_processing.plugins.kubernetes.kube_client import KubeClient
def test_KubeClient_no_kubeconfig():
with mock.patch(
... | 39.052632 | 100 | 0.724394 | 545 | 4,452 | 5.601835 | 0.126606 | 0.121192 | 0.110056 | 0.162463 | 0.833934 | 0.814936 | 0.799541 | 0.746151 | 0.712742 | 0.712742 | 0 | 0.003249 | 0.170485 | 4,452 | 113 | 101 | 39.39823 | 0.82345 | 0 | 0 | 0.666667 | 0 | 0 | 0.274933 | 0.242138 | 0 | 0 | 0 | 0 | 0.064516 | 1 | 0.075269 | false | 0 | 0.064516 | 0 | 0.139785 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
6fa91a8008697b5f360825648e06c0242cc46cf1 | 14,740 | py | Python | ironic_tempest_plugin/tests/scenario/ironic_standalone/test_basic_ops.py | ameya-r/ironic-tempest-plugin | d3360cf3b6ad8b89b9c80fc806dc5d4ba373dd01 | [
"Apache-2.0"
] | 9 | 2016-11-20T08:00:27.000Z | 2019-01-28T22:03:31.000Z | ironic_tempest_plugin/tests/scenario/ironic_standalone/test_basic_ops.py | ameya-r/ironic-tempest-plugin | d3360cf3b6ad8b89b9c80fc806dc5d4ba373dd01 | [
"Apache-2.0"
] | 2 | 2018-12-07T11:14:14.000Z | 2022-01-19T10:25:28.000Z | ironic_tempest_plugin/tests/scenario/ironic_standalone/test_basic_ops.py | ameya-r/ironic-tempest-plugin | d3360cf3b6ad8b89b9c80fc806dc5d4ba373dd01 | [
"Apache-2.0"
] | 7 | 2017-12-11T18:07:47.000Z | 2021-10-21T05:07:02.000Z | #
# Copyright 2017 Mirantis Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | 33.57631 | 79 | 0.733175 | 1,719 | 14,740 | 6.026178 | 0.159395 | 0.052708 | 0.033787 | 0.05097 | 0.771213 | 0.767738 | 0.758181 | 0.758181 | 0.758181 | 0.749686 | 0 | 0.040172 | 0.177544 | 14,740 | 438 | 80 | 33.652968 | 0.81432 | 0.094912 | 0 | 0.814103 | 0 | 0 | 0.142224 | 0.06382 | 0 | 0 | 0 | 0 | 0 | 1 | 0.092949 | false | 0 | 0.012821 | 0 | 0.576923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 7 |
6ff6f48d064f3a947dea8f26769789fe8422c137 | 2,909 | py | Python | tests/acceptance/test_MainClient_resourceIterator.py | rmetcalf9/EllucainEthosPythonClient | 6913322b1e583f655f67399f2baa763833583c27 | [
"MIT"
] | 1 | 2021-02-09T22:05:50.000Z | 2021-02-09T22:05:50.000Z | tests/acceptance/test_MainClient_resourceIterator.py | rmetcalf9/EllucainEthosPythonClient | 6913322b1e583f655f67399f2baa763833583c27 | [
"MIT"
] | 1 | 2020-07-02T11:44:54.000Z | 2020-07-02T11:45:38.000Z | tests/acceptance/test_MainClient_resourceIterator.py | rmetcalf9/EllucainEthosPythonClient | 6913322b1e583f655f67399f2baa763833583c27 | [
"MIT"
] | 1 | 2021-01-13T21:35:11.000Z | 2021-01-13T21:35:11.000Z | # Tests on main client object
import TestHelperSuperClass
import EllucianEthosPythonClient
import base64
import json
import TestingHelper
import queue
class helpers(TestHelperSuperClass.testClassWithHelpers):
pass
@TestHelperSuperClass.wipd
class test_MainClient_resourceIterator(helpers):
def test_singlePage(self... | 29.683673 | 147 | 0.704366 | 267 | 2,909 | 7.629213 | 0.277154 | 0.188513 | 0.212077 | 0.188513 | 0.843397 | 0.843397 | 0.843397 | 0.843397 | 0.843397 | 0.843397 | 0 | 0.022006 | 0.187693 | 2,909 | 97 | 148 | 29.989691 | 0.840034 | 0.009282 | 0 | 0.738095 | 0 | 0 | 0.138889 | 0.1 | 0 | 0 | 0 | 0 | 0.02381 | 1 | 0.02381 | false | 0.011905 | 0.071429 | 0 | 0.119048 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 9 |
6fff9444572ab0e25376411f6cbd950472efc556 | 155 | py | Python | turterra/__init__.py | BTheDragonMaster/turterra | 2498397e930fb1e384fb39a2e5ef4b2c42636ce7 | [
"MIT"
] | null | null | null | turterra/__init__.py | BTheDragonMaster/turterra | 2498397e930fb1e384fb39a2e5ef4b2c42636ce7 | [
"MIT"
] | null | null | null | turterra/__init__.py | BTheDragonMaster/turterra | 2498397e930fb1e384fb39a2e5ef4b2c42636ce7 | [
"MIT"
] | null | null | null | from turterra import app_callbacks, app_layout
from turterra.utils.compound_utility import Compound
__all__ = ["app_callbacks", "app_layout", "Compound"]
| 31 | 53 | 0.812903 | 20 | 155 | 5.85 | 0.5 | 0.205128 | 0.25641 | 0.358974 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096774 | 155 | 4 | 54 | 38.75 | 0.835714 | 0 | 0 | 0 | 0 | 0 | 0.2 | 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 |
d2309343fcb926bc42c2d069794d54825a4938ae | 4,376 | py | Python | tests/krs/test_apps.py | WIPACrepo/keycloak-rest-services | 2661b0db2dd320bdb8eefc62c805188bec52ecc7 | [
"MIT"
] | 1 | 2021-09-23T14:39:36.000Z | 2021-09-23T14:39:36.000Z | tests/krs/test_apps.py | WIPACrepo/keycloak-rest-services | 2661b0db2dd320bdb8eefc62c805188bec52ecc7 | [
"MIT"
] | 38 | 2020-08-31T22:53:09.000Z | 2022-03-28T20:55:39.000Z | tests/krs/test_apps.py | WIPACrepo/keycloak-rest-services | 2661b0db2dd320bdb8eefc62c805188bec52ecc7 | [
"MIT"
] | null | null | null | import os
import pytest
from krs.token import get_token
from krs import users,groups,apps
from ..util import keycloak_bootstrap
@pytest.mark.asyncio
async def test_list_apps_empty(keycloak_bootstrap):
ret = await apps.list_apps(rest_client=keycloak_bootstrap)
assert ret == {}
@pytest.mark.asyncio
async def... | 45.113402 | 120 | 0.752514 | 576 | 4,376 | 5.440972 | 0.114583 | 0.216975 | 0.172304 | 0.258456 | 0.803446 | 0.801213 | 0.749202 | 0.721123 | 0.68411 | 0.68411 | 0 | 0 | 0.113803 | 4,376 | 96 | 121 | 45.583333 | 0.808149 | 0 | 0 | 0.493151 | 0 | 0 | 0.151737 | 0.016225 | 0 | 0 | 0 | 0 | 0.178082 | 1 | 0 | false | 0.027397 | 0.068493 | 0 | 0.068493 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
d23257a074ee43c605abe7257a8e906ebe9abc3a | 230 | py | Python | mowgli_etl/model/kg_path.py | tetherless-world/mowgli | 28c19eba41e03e053ae4addff56a313d926e18d7 | [
"MIT"
] | 4 | 2021-01-15T15:36:23.000Z | 2021-09-01T06:52:05.000Z | mowgli_etl/model/kg_path.py | tetherless-world/mowgli | 28c19eba41e03e053ae4addff56a313d926e18d7 | [
"MIT"
] | 63 | 2020-05-04T13:48:04.000Z | 2020-06-06T02:32:58.000Z | mowgli_etl/model/kg_path.py | tetherless-world/mowgli-etl | 28c19eba41e03e053ae4addff56a313d926e18d7 | [
"MIT"
] | null | null | null | from typing import NamedTuple, Tuple
class KgPath(NamedTuple):
id: str
# A sequence of subject, predicate, object/subject, predicate, object/subject, ..., object
path: Tuple[str, ...]
source_ids: Tuple[str, ...]
| 25.555556 | 94 | 0.673913 | 28 | 230 | 5.5 | 0.642857 | 0.207792 | 0.285714 | 0.376623 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191304 | 230 | 8 | 95 | 28.75 | 0.827957 | 0.382609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 7 |
962a030b952ddd540b23e2e782042cd641732336 | 41,146 | py | Python | test/tests.py | drsagitn/sejonggo | 5ab690426eda49efe263d93db26e74556066f41b | [
"MIT"
] | 1 | 2021-04-20T23:00:09.000Z | 2021-04-20T23:00:09.000Z | test/tests.py | drsagitn/sejonggo | 5ab690426eda49efe263d93db26e74556066f41b | [
"MIT"
] | null | null | null | test/tests.py | drsagitn/sejonggo | 5ab690426eda49efe263d93db26e74556066f41b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import sys
sys.path.append("..")
from conf import conf
conf['SIZE'] = 9 # Override settings for tests
conf['KOMI'] = 5.5 # Override settings for tests
import unittest
import numpy as np
from simulation_workers import init_simulation_workers, destroy_simulation_workers
import os
from play impo... | 35.686036 | 118 | 0.454285 | 5,148 | 41,146 | 3.574981 | 0.052448 | 0.019235 | 0.024125 | 0.030863 | 0.815747 | 0.789176 | 0.763693 | 0.740057 | 0.71278 | 0.68333 | 0 | 0.062196 | 0.395105 | 41,146 | 1,152 | 119 | 35.717014 | 0.665917 | 0.092986 | 0 | 0.733042 | 0 | 0 | 0.043037 | 0.000782 | 0 | 0 | 0 | 0 | 0.175055 | 1 | 0.055799 | false | 0 | 0.0186 | 0 | 0.094092 | 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 |
96c0bbead66260408469d53aec6e636559e98e46 | 13,997 | py | Python | forest/forestdata.py | ThePyProgrammer/forest-pypi | b90c0d11a9d78d69593388e37d205a787bd66353 | [
"MIT"
] | 1 | 2021-08-05T13:43:45.000Z | 2021-08-05T13:43:45.000Z | forest/forestdata.py | gait-analyzer/GaitMonitoringForParkinsonsDiseasePatients | 2064375ddc36bf38f3ff65f09e776328b8b4612a | [
"MIT"
] | null | null | null | forest/forestdata.py | gait-analyzer/GaitMonitoringForParkinsonsDiseasePatients | 2064375ddc36bf38f3ff65f09e776328b8b4612a | [
"MIT"
] | null | null | null | import pandas as pd
def opsd():
return pd.read_csv('https://raw.githubusercontent.com/jenfly/opsd/master/opsd_germany_daily.csv', sep=",")
def presidents():
return pd.read_csv('https://sololearn.com/uploads/files/president_heights_party.csv', index_col='name')
def sacramento_crime():
return pd... | 44.576433 | 167 | 0.756448 | 1,851 | 13,997 | 5.598055 | 0.158293 | 0.057904 | 0.11465 | 0.259409 | 0.668983 | 0.663385 | 0.663385 | 0.663385 | 0.621888 | 0.611465 | 0 | 0.013357 | 0.096021 | 13,997 | 313 | 168 | 44.71885 | 0.80558 | 0 | 0 | 0.052133 | 0 | 0.222749 | 0.629394 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.473934 | false | 0 | 0.004739 | 0.459716 | 0.957346 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 7 |
737194884a6ca04113a34ad72071369ed926d929 | 261 | py | Python | bin/train_extractive_qa.py | tombosc/dict_based_learning | c5e622d6de43ee6d892f8bccedc0a43a2f02a284 | [
"MIT"
] | 6 | 2017-06-08T18:20:19.000Z | 2019-01-01T09:56:51.000Z | bin/train_extractive_qa.py | tombosc/dict_based_learning | c5e622d6de43ee6d892f8bccedc0a43a2f02a284 | [
"MIT"
] | null | null | null | bin/train_extractive_qa.py | tombosc/dict_based_learning | c5e622d6de43ee6d892f8bccedc0a43a2f02a284 | [
"MIT"
] | 3 | 2017-06-09T07:34:49.000Z | 2020-08-06T07:33:36.000Z | #!/usr/bin/env python
from dictlearn.extractive_qa_training import train_extractive_qa
from dictlearn.extractive_qa_configs import qa_config_registry
from dictlearn.main import main
if __name__ == "__main__":
main(qa_config_registry, train_extractive_qa)
| 29 | 64 | 0.83908 | 37 | 261 | 5.378378 | 0.459459 | 0.241206 | 0.231156 | 0.251256 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.099617 | 261 | 8 | 65 | 32.625 | 0.846809 | 0.076628 | 0 | 0 | 0 | 0 | 0.033333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.6 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
738821e78dcfa3a3b8852942ca104823b2c1a308 | 4,427 | py | Python | tests/storage.py | zodman/django-constance | dec2322262680dece25e0a1c5cada4f19aa86d4b | [
"BSD-3-Clause"
] | 6 | 2015-12-13T10:49:02.000Z | 2021-06-14T14:35:31.000Z | tests/storage.py | zodman/django-constance | dec2322262680dece25e0a1c5cada4f19aa86d4b | [
"BSD-3-Clause"
] | null | null | null | tests/storage.py | zodman/django-constance | dec2322262680dece25e0a1c5cada4f19aa86d4b | [
"BSD-3-Clause"
] | 10 | 2016-04-23T21:16:30.000Z | 2020-05-13T08:06:22.000Z | # -*- encoding: utf-8 -*-
from datetime import datetime, date, time, timedelta
from decimal import Decimal
from django.utils import six
from constance.base import Config
if six.PY3:
def long(value):
return value
class StorageTestsMixin(object):
def setUp(self):
self.config = Config()
... | 45.639175 | 101 | 0.678789 | 587 | 4,427 | 5.011925 | 0.178876 | 0.203943 | 0.238953 | 0.314412 | 0.852141 | 0.834126 | 0.755948 | 0.627124 | 0.588715 | 0.53535 | 0 | 0.060709 | 0.20375 | 4,427 | 96 | 102 | 46.114583 | 0.773901 | 0.040885 | 0 | 0.531646 | 0 | 0 | 0.042237 | 0 | 0 | 0 | 0 | 0 | 0.493671 | 1 | 0.063291 | false | 0 | 0.050633 | 0.012658 | 0.139241 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
73988d97ccc18affce0a0738f261d936ceb3c063 | 435 | py | Python | bugtests/test130.py | doom38/jython_v2.2.1 | 0803a0c953c294e6d14f9fc7d08edf6a3e630a15 | [
"CNRI-Jython"
] | null | null | null | bugtests/test130.py | doom38/jython_v2.2.1 | 0803a0c953c294e6d14f9fc7d08edf6a3e630a15 | [
"CNRI-Jython"
] | null | null | null | bugtests/test130.py | doom38/jython_v2.2.1 | 0803a0c953c294e6d14f9fc7d08edf6a3e630a15 | [
"CNRI-Jython"
] | null | null | null | """
Comparing ints and strings
"""
import support
if -1 > 'a':
raise support.TestError("-1 > 'a'")
if not -1 < 'a':
raise support.TestError("-1 < 'a'")
if 4 > 'a':
raise support.TestError("4 > 'a'")
if not 4 < 'a':
raise support.TestError("4 < 'a'")
if -2 > 'a':
raise support.TestError("-2 > 'a'")... | 18.913043 | 40 | 0.537931 | 65 | 435 | 3.6 | 0.215385 | 0.179487 | 0.388889 | 0.65812 | 0.807692 | 0.807692 | 0.807692 | 0.807692 | 0 | 0 | 0 | 0.041667 | 0.227586 | 435 | 22 | 41 | 19.772727 | 0.654762 | 0.05977 | 0 | 0 | 0 | 0 | 0.155388 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.066667 | 0 | 0.066667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
73bd67d6b0efedcd448a5128f7d1380618d5fba5 | 44,715 | py | Python | import_export_ballotpedia/views_admin.py | mattare2/WeVoteServer | c12f1a4a64a94a3b22f97c9582ed1058749326d5 | [
"MIT"
] | null | null | null | import_export_ballotpedia/views_admin.py | mattare2/WeVoteServer | c12f1a4a64a94a3b22f97c9582ed1058749326d5 | [
"MIT"
] | null | null | null | import_export_ballotpedia/views_admin.py | mattare2/WeVoteServer | c12f1a4a64a94a3b22f97c9582ed1058749326d5 | [
"MIT"
] | null | null | null | # import_export_ballotpedia/views_admin.py
# Brought to you by We Vote. Be good.
# -*- coding: UTF-8 -*-
from .controllers import attach_ballotpedia_election_by_district_from_api, \
retrieve_ballot_items_from_polling_location, \
retrieve_ballotpedia_candidates_by_district_from_api, retrieve_ballotpedia_measure... | 58.835526 | 120 | 0.657967 | 5,026 | 44,715 | 5.454835 | 0.063669 | 0.094653 | 0.056828 | 0.06281 | 0.860592 | 0.837905 | 0.821746 | 0.784031 | 0.76904 | 0.757404 | 0 | 0.002806 | 0.274762 | 44,715 | 759 | 121 | 58.913043 | 0.84261 | 0.167684 | 0 | 0.731261 | 0 | 0 | 0.14819 | 0.061218 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010969 | false | 0 | 0.084095 | 0 | 0.159049 | 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 |
fb6f5ee56d757b27b41b93f9d95017a036225701 | 5,827 | py | Python | tests/test_accept.py | alanjcastonguay/flask-restplus | a8f35823fe40b2c7385632a2ad6b35b26467402c | [
"BSD-3-Clause"
] | 2,885 | 2015-01-01T17:40:44.000Z | 2022-03-31T10:10:28.000Z | tests/test_accept.py | alanjcastonguay/flask-restplus | a8f35823fe40b2c7385632a2ad6b35b26467402c | [
"BSD-3-Clause"
] | 768 | 2015-01-01T17:21:48.000Z | 2022-03-28T09:02:45.000Z | tests/test_accept.py | alanjcastonguay/flask-restplus | a8f35823fe40b2c7385632a2ad6b35b26467402c | [
"BSD-3-Clause"
] | 676 | 2015-01-05T12:53:22.000Z | 2022-03-22T06:03:44.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import flask_restplus as restplus
class Foo(restplus.Resource):
def get(self):
return "data"
class ErrorsTest(object):
def test_accept_default_application_json(self, app, client):
api = restplus.Api(app)
api.add_resourc... | 37.11465 | 120 | 0.634289 | 731 | 5,827 | 4.852257 | 0.131327 | 0.063434 | 0.047646 | 0.062306 | 0.880744 | 0.873132 | 0.869749 | 0.864111 | 0.855653 | 0.843248 | 0 | 0.012661 | 0.22739 | 5,827 | 156 | 121 | 37.352564 | 0.775211 | 0.03295 | 0 | 0.75 | 0 | 0.009259 | 0.125827 | 0.003753 | 0 | 0 | 0 | 0 | 0.231481 | 1 | 0.175926 | false | 0 | 0.018519 | 0.009259 | 0.268519 | 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 |
fbbeed0f8571a8f7c1cb8909f2d22e18d5cefba6 | 404 | py | Python | python/testData/highlighting/parametersWithAnnotationsAndDefaults.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/highlighting/parametersWithAnnotationsAndDefaults.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/highlighting/parametersWithAnnotationsAndDefaults.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | def <info descr="PY.FUNC_DEFINITION">f</info>(<info descr="PY.PARAMETER">p1</info>: <info descr="PY.ANNOTATION"><info descr="PY.BUILTIN_NAME">int</info></info>, <info descr="PY.PARAMETER">p2</info>: <info descr="PY.ANNOTATION"><info descr="PY.BUILTIN_NAME">int</info></info> = 42):
<info descr="PY.BUILTIN_NAME">prin... | 202 | 281 | 0.69802 | 64 | 404 | 4.34375 | 0.25 | 0.323741 | 0.395683 | 0.323741 | 0.870504 | 0.791367 | 0.791367 | 0.658273 | 0.658273 | 0.658273 | 0 | 0.015707 | 0.054455 | 404 | 2 | 282 | 202 | 0.712042 | 0 | 0 | 0 | 0 | 0 | 0.338272 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.5 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 11 |
fbcdd4b3d3cd82e73d5ad1a10aba5cdf6ca59a3a | 37 | py | Python | bases/nice-python/fancy_python_library/fancy_python_library/fancy.py | cloderic/docker-monorepo | f8652303422cc1a82b93b7bcbe6dea3c5982777d | [
"WTFPL"
] | 31 | 2019-02-25T13:56:43.000Z | 2022-01-29T14:57:01.000Z | bases/nice-python/fancy_python_library/fancy_python_library/fancy.py | cloderic/docker-monorepo | f8652303422cc1a82b93b7bcbe6dea3c5982777d | [
"WTFPL"
] | 1 | 2019-08-05T08:47:00.000Z | 2020-08-15T13:43:56.000Z | bases/nice-python/fancy_python_library/fancy_python_library/fancy.py | cloderic/docker-monorepo | f8652303422cc1a82b93b7bcbe6dea3c5982777d | [
"WTFPL"
] | 8 | 2019-06-06T06:12:12.000Z | 2022-02-10T09:56:28.000Z | def get_fancy():
return "oh la la"
| 12.333333 | 19 | 0.648649 | 7 | 37 | 3.285714 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.216216 | 37 | 2 | 20 | 18.5 | 0.793103 | 0 | 0 | 0 | 0 | 0 | 0.216216 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0 | 0 | 0.5 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 7 |
8382953914ef10515683f9fb87ce6e7809b3ce9d | 42 | py | Python | id_generator/__init__.py | fishball926/id_generator | 21ad00f38b75d4baed1bbe79543dccd221577daa | [
"MIT"
] | null | null | null | id_generator/__init__.py | fishball926/id_generator | 21ad00f38b75d4baed1bbe79543dccd221577daa | [
"MIT"
] | null | null | null | id_generator/__init__.py | fishball926/id_generator | 21ad00f38b75d4baed1bbe79543dccd221577daa | [
"MIT"
] | null | null | null | from id_generator.File1 import id_generate | 42 | 42 | 0.904762 | 7 | 42 | 5.142857 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025641 | 0.071429 | 42 | 1 | 42 | 42 | 0.897436 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
83990978e8ab2375d0a628b3989192a999bb65c9 | 740,395 | py | Python | py/flexswitchV2.py | learnopx/opx-flxSdk | a87219669164b32b5345c407d4aecbe3f4ec6226 | [
"Apache-2.0"
] | null | null | null | py/flexswitchV2.py | learnopx/opx-flxSdk | a87219669164b32b5345c407d4aecbe3f4ec6226 | [
"Apache-2.0"
] | null | null | null | py/flexswitchV2.py | learnopx/opx-flxSdk | a87219669164b32b5345c407d4aecbe3f4ec6226 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
import requests
import json
import urllib2
from requests.packages.urllib3.exceptions import InsecureRequestWarning
headers = {'Accept' : 'application/json', 'Content-Type' : 'application/json'}
patchheaders = {'Conent-Type':'application/json-patch+json'}
#def processReturnCode (method) :
# def ret... | 44.788277 | 2,087 | 0.563904 | 70,446 | 740,395 | 5.926525 | 0.034949 | 0.037337 | 0.07269 | 0.090898 | 0.862754 | 0.838345 | 0.80205 | 0.793305 | 0.773816 | 0.766218 | 0 | 0.004454 | 0.339828 | 740,395 | 16,530 | 2,088 | 44.790986 | 0.8497 | 0.000841 | 0 | 0.797157 | 0 | 0 | 0.060208 | 0.007076 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.062146 | 0.001512 | null | null | 0.000227 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 10 |
83e489c8342d100001beeea78b4d1a0d85036ee5 | 9,665 | py | Python | tests/features/replace_test.py | nacleric/babi | f1ce6d995bf3859459c5dda1d2188b6992434d30 | [
"MIT"
] | 223 | 2019-07-14T04:21:24.000Z | 2022-03-23T21:34:11.000Z | tests/features/replace_test.py | nacleric/babi | f1ce6d995bf3859459c5dda1d2188b6992434d30 | [
"MIT"
] | 101 | 2019-09-02T02:25:22.000Z | 2022-03-23T20:18:34.000Z | tests/features/replace_test.py | nacleric/babi | f1ce6d995bf3859459c5dda1d2188b6992434d30 | [
"MIT"
] | 57 | 2019-10-19T23:30:13.000Z | 2022-03-21T21:43:05.000Z | from __future__ import annotations
import pytest
from testing.runner import and_exit
@pytest.mark.parametrize('key', ('^C', 'Enter'))
def test_replace_cancel(run, key):
with run() as h, and_exit(h):
h.press('^\\')
h.await_text('search (to replace):')
h.press(key)
h.await_text('ca... | 30.585443 | 77 | 0.579307 | 1,445 | 9,665 | 3.620069 | 0.096886 | 0.118142 | 0.19308 | 0.099025 | 0.817817 | 0.800994 | 0.768496 | 0.745555 | 0.735232 | 0.680941 | 0 | 0.010173 | 0.247387 | 9,665 | 315 | 78 | 30.68254 | 0.708276 | 0.006932 | 0 | 0.679389 | 0 | 0 | 0.200813 | 0 | 0 | 0 | 0 | 0.003175 | 0 | 1 | 0.083969 | false | 0 | 0.01145 | 0 | 0.09542 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 |
83fe1bda65fe336bf4cc8e0819ccd63072c07951 | 14,544 | py | Python | scripts/automation/regression/stateless_tests/stl_ns_test.py | timgates42/trex-core | efe94752fcb2d0734c83d4877afe92a3dbf8eccd | [
"Apache-2.0"
] | 956 | 2015-06-24T15:04:55.000Z | 2022-03-30T06:25:04.000Z | scripts/automation/regression/stateless_tests/stl_ns_test.py | angelyouyou/trex-core | fddf78584cae285d9298ef23f9f5c8725e16911e | [
"Apache-2.0"
] | 782 | 2015-09-20T15:19:00.000Z | 2022-03-31T23:52:05.000Z | scripts/automation/regression/stateless_tests/stl_ns_test.py | angelyouyou/trex-core | fddf78584cae285d9298ef23f9f5c8725e16911e | [
"Apache-2.0"
] | 429 | 2015-06-27T19:34:21.000Z | 2022-03-23T11:02:51.000Z | #!/usr/bin/python
from .stl_general_test import CStlGeneral_Test, CTRexScenario
from trex_stl_lib.api import *
from trex.common.stats.trex_ns import CNsStats
from trex.common.services.trex_service_icmp import ServiceICMP
import pprint
class STLNS_Test(CStlGeneral_Test):
"""Tests for NS function """
def setU... | 33.205479 | 87 | 0.547649 | 2,015 | 14,544 | 3.738462 | 0.096774 | 0.018054 | 0.014337 | 0.054958 | 0.842692 | 0.806717 | 0.784946 | 0.768884 | 0.764901 | 0.754547 | 0 | 0.054688 | 0.317313 | 14,544 | 437 | 88 | 33.281465 | 0.703998 | 0.022071 | 0 | 0.765766 | 0 | 0.018018 | 0.11385 | 0 | 0 | 0 | 0.006074 | 0 | 0.072072 | 1 | 0.054054 | false | 0 | 0.015015 | 0 | 0.096096 | 0.054054 | 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 |
790d18c000cbd34272ce5e58feb3eb2b358ab314 | 223 | py | Python | models/layer/__init__.py | LegenDong/IQIYI_VID_FACE_2019 | 258ff9282206e7b7074ed9ada5ef928bc9305ec6 | [
"MIT"
] | 17 | 2019-07-11T02:41:01.000Z | 2022-01-13T05:13:24.000Z | models/layer/__init__.py | xmpy/IQIYI_VID_FACE_2019 | 258ff9282206e7b7074ed9ada5ef928bc9305ec6 | [
"MIT"
] | 1 | 2021-04-16T15:37:12.000Z | 2021-04-17T13:46:57.000Z | models/layer/__init__.py | LegenDong/IQIYI_VID_FACE_2019 | 258ff9282206e7b7074ed9ada5ef928bc9305ec6 | [
"MIT"
] | 5 | 2019-07-23T02:18:04.000Z | 2021-07-14T03:42:32.000Z | # -*- coding: utf-8 -*-
# @Time : 2019/5/11 15:12
# @Author : LegenDong
# @User : legendong
# @File : __init__.py.py
# @Software: PyCharm
from .channel_attention_layer import *
from .nan_attention_layer import *
| 22.3 | 38 | 0.654709 | 29 | 223 | 4.758621 | 0.793103 | 0.202899 | 0.289855 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067039 | 0.197309 | 223 | 9 | 39 | 24.777778 | 0.703911 | 0.605381 | 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 |
f71b33566c8e0a884e4d1704ac06c8583ef46398 | 7,939 | py | Python | tests/test_storage.py | gregdan3/limits | f2c693b9009afe27c9ecbb94492455ad470127f1 | [
"MIT"
] | null | null | null | tests/test_storage.py | gregdan3/limits | f2c693b9009afe27c9ecbb94492455ad470127f1 | [
"MIT"
] | null | null | null | tests/test_storage.py | gregdan3/limits | f2c693b9009afe27c9ecbb94492455ad470127f1 | [
"MIT"
] | null | null | null | import time
import pytest
from limits.errors import ConfigurationError
from limits.storage import (
MemcachedStorage,
MemoryStorage,
MongoDBStorage,
RedisClusterStorage,
RedisSentinelStorage,
RedisStorage,
Storage,
storage_from_string,
)
from limits.strategies import MovingWindowRateLi... | 32.272358 | 84 | 0.493513 | 631 | 7,939 | 6.063391 | 0.137876 | 0.065342 | 0.097752 | 0.080502 | 0.817041 | 0.737846 | 0.720596 | 0.720596 | 0.714846 | 0.680868 | 0 | 0.019592 | 0.395642 | 7,939 | 245 | 85 | 32.404082 | 0.777824 | 0 | 0 | 0.837104 | 0 | 0 | 0.169417 | 0.115884 | 0 | 0 | 0 | 0 | 0.0181 | 1 | 0.085973 | false | 0.00905 | 0.022624 | 0.063348 | 0.18552 | 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 |
f74586a9a2e957cdc6a027edd7f741dc21f08c31 | 95 | py | Python | helli5/contextprocessor.py | TheMn/internet-engineering-project | e41536552feff6f806ba099922df95e89da5bd31 | [
"Apache-2.0"
] | 7 | 2019-10-19T12:58:11.000Z | 2020-11-05T07:02:17.000Z | helli5/contextprocessor.py | TheMn/internet-engineering-project | e41536552feff6f806ba099922df95e89da5bd31 | [
"Apache-2.0"
] | 35 | 2019-12-06T16:31:07.000Z | 2022-03-12T00:56:35.000Z | helli5/contextprocessor.py | TheMn/internet-engineering-project | e41536552feff6f806ba099922df95e89da5bd31 | [
"Apache-2.0"
] | 1 | 2019-10-18T19:07:04.000Z | 2019-10-18T19:07:04.000Z | from datetime import datetime
def time_now(request):
return {'time_now': datetime.now()}
| 15.833333 | 39 | 0.726316 | 13 | 95 | 5.153846 | 0.615385 | 0.208955 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 95 | 5 | 40 | 19 | 0.8375 | 0 | 0 | 0 | 0 | 0 | 0.084211 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 7 |
f746211f667f9006fea8f6ab5626f3b922ce6c61 | 19,004 | py | Python | SimModel_Python_API/simmodel_swig/Release/SimSpace_Occupied_Default.py | EnEff-BIM/EnEffBIM-Framework | 6328d39b498dc4065a60b5cc9370b8c2a9a1cddf | [
"MIT"
] | 3 | 2016-05-30T15:12:16.000Z | 2022-03-22T08:11:13.000Z | SimModel_Python_API/simmodel_swig/Release/SimSpace_Occupied_Default.py | EnEff-BIM/EnEffBIM-Framework | 6328d39b498dc4065a60b5cc9370b8c2a9a1cddf | [
"MIT"
] | 21 | 2016-06-13T11:33:45.000Z | 2017-05-23T09:46:52.000Z | SimModel_Python_API/simmodel_swig/Release/SimSpace_Occupied_Default.py | EnEff-BIM/EnEffBIM-Framework | 6328d39b498dc4065a60b5cc9370b8c2a9a1cddf | [
"MIT"
] | null | null | null | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 3.0.7
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (2, 6, 0):
def swig_import_helper():
from os.path imp... | 40.868817 | 124 | 0.756051 | 1,981 | 19,004 | 6.770318 | 0.110045 | 0.219505 | 0.245228 | 0.221891 | 0.571056 | 0.549955 | 0.530421 | 0.370042 | 0.212123 | 0.183567 | 0 | 0.008261 | 0.165544 | 19,004 | 464 | 125 | 40.956897 | 0.837495 | 0.01547 | 0 | 0.233728 | 1 | 0 | 0.015294 | 0.002781 | 0 | 0 | 0 | 0 | 0 | 1 | 0.298817 | false | 0.005917 | 0.032544 | 0.275148 | 0.730769 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 7 |
f74fdd12bdfcffe6285b81785646f57aab4459ff | 10,581 | py | Python | tests/test_mnist.py | RainingComputers/pykitml | 1c3e50cebcdb6c4da63979ef9a812b44d23a4857 | [
"MIT"
] | 34 | 2020-03-06T07:53:43.000Z | 2022-03-13T06:12:29.000Z | tests/test_mnist.py | RainingComputers/pykitml | 1c3e50cebcdb6c4da63979ef9a812b44d23a4857 | [
"MIT"
] | 6 | 2021-06-08T22:43:23.000Z | 2022-03-08T13:57:33.000Z | tests/test_mnist.py | RainingComputers/pykitml | 1c3e50cebcdb6c4da63979ef9a812b44d23a4857 | [
"MIT"
] | 1 | 2020-11-30T21:20:32.000Z | 2020-11-30T21:20:32.000Z | import sys
import os.path
import numpy as np
import pykitml as pk
from pykitml.datasets import mnist
from pykitml.testing import pktest_graph, pktest_nograph
def test_download():
# Download the mnist data set
mnist.get()
# Test ran successfully
assert True
@pktest_graph
def test_adagrad():
# Load... | 30.492795 | 92 | 0.697004 | 1,249 | 10,581 | 5.653323 | 0.117694 | 0.142331 | 0.101969 | 0.110891 | 0.840533 | 0.837558 | 0.837558 | 0.835576 | 0.835576 | 0.819572 | 0 | 0.023439 | 0.221813 | 10,581 | 346 | 93 | 30.580925 | 0.834103 | 0.134675 | 0 | 0.748792 | 0 | 0 | 0.068119 | 0.027512 | 0 | 0 | 0 | 0 | 0.043478 | 1 | 0.043478 | false | 0.004831 | 0.072464 | 0 | 0.115942 | 0.091787 | 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 |
f7957644392e9a66aba5c2b90d9fb4e729e366ec | 4,426 | py | Python | examples/undocumented/python/tests_check_commwordkernel_memleak.py | cloner1984/shogun | 901c04b2c6550918acf0594ef8afeb5dcd840a7d | [
"BSD-3-Clause"
] | 2 | 2015-01-13T15:18:27.000Z | 2015-05-01T13:28:48.000Z | examples/undocumented/python/tests_check_commwordkernel_memleak.py | cloner1984/shogun | 901c04b2c6550918acf0594ef8afeb5dcd840a7d | [
"BSD-3-Clause"
] | null | null | null | examples/undocumented/python/tests_check_commwordkernel_memleak.py | cloner1984/shogun | 901c04b2c6550918acf0594ef8afeb5dcd840a7d | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
parameter_list=[[10,7,0,False]]
def tests_check_commwordkernel_memleak (num, order, gap, reverse):
import gc
from shogun import Alphabet,StringCharFeatures,StringWordFeatures,DNA
from shogun import SortWordString, MSG_DEBUG
from shogun import CommWordStringKernel, IdentityKernelNormalizer
fr... | 51.465116 | 70 | 0.638726 | 706 | 4,426 | 3.964589 | 0.100567 | 0.600214 | 0.850304 | 1.180422 | 0.722401 | 0.722401 | 0.705252 | 0.705252 | 0.705252 | 0.705252 | 0 | 0.002462 | 0.082241 | 4,426 | 85 | 71 | 52.070588 | 0.686608 | 0.019431 | 0 | 0.597403 | 0 | 0 | 0.268158 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012987 | false | 0 | 0.064935 | 0 | 0.090909 | 0.012987 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
f7a14c3c1dbfee4aca574d131b9060d0e43b9b6e | 16,893 | py | Python | episode02-mozart/turkish_march_1.py | ales-eri/edison-robot-ideas | fd60f7172192c017326c52727c0aa08e7b1f5368 | [
"Unlicense"
] | 7 | 2019-02-20T17:06:22.000Z | 2021-12-07T02:14:26.000Z | episode02-mozart/turkish_march_1.py | ales-eri/edison-robot-ideas | fd60f7172192c017326c52727c0aa08e7b1f5368 | [
"Unlicense"
] | null | null | null | episode02-mozart/turkish_march_1.py | ales-eri/edison-robot-ideas | fd60f7172192c017326c52727c0aa08e7b1f5368 | [
"Unlicense"
] | 6 | 2021-01-30T13:30:41.000Z | 2022-03-09T19:42:04.000Z | #
# Description: Edison robot plays "Turkish March" by Wolfgang Amadeus Mozart.
# Notes: You can listen result here: https://www.youtube.com/watch?v=1Cfpv6s_xrY
# You can upload program to Edison robot by online EdPy environment http://edpyapp.com/#
# This is the first voice only. I ... | 40.706024 | 125 | 0.749364 | 2,710 | 16,893 | 4.463469 | 0.156089 | 0.232639 | 0.109127 | 0.177331 | 0.785384 | 0.785053 | 0.778853 | 0.77877 | 0.753142 | 0.749339 | 0 | 0.117274 | 0.150477 | 16,893 | 414 | 126 | 40.804348 | 0.725594 | 0.322796 | 0 | 0.755952 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.002976 | false | 0.002976 | 0.002976 | 0 | 0.005952 | 0 | 0 | 0 | 0 | null | 1 | 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 | 8 |
e3d146f4e9d0bc3bae08d6c03e773a782f945966 | 4,781 | py | Python | pyoaz_tests/test_az_search.py | ameroueh/oaz | 7cf192b02adaa373b7b93bedae3ef67886ea53af | [
"MIT"
] | 8 | 2021-03-18T16:06:42.000Z | 2022-03-09T10:42:44.000Z | pyoaz_tests/test_az_search.py | ameroueh/oaz | 7cf192b02adaa373b7b93bedae3ef67886ea53af | [
"MIT"
] | null | null | null | pyoaz_tests/test_az_search.py | ameroueh/oaz | 7cf192b02adaa373b7b93bedae3ef67886ea53af | [
"MIT"
] | null | null | null | import tensorflow.compat.v1 as tf
from pyoaz.thread_pool import ThreadPool
from pyoaz.search import Search
from pyoaz.selection import AZSelector
from pyoaz.evaluator.nn_evaluator import Model, NNEvaluator
from pyoaz.games.connect_four import ConnectFour
from pyoaz.cache.simple_cache import SimpleCache
def test_az_s... | 32.972414 | 79 | 0.53378 | 562 | 4,781 | 4.341637 | 0.158363 | 0.034426 | 0.068852 | 0.04918 | 0.840164 | 0.82623 | 0.82623 | 0.82623 | 0.82623 | 0.82623 | 0 | 0.053543 | 0.335913 | 4,781 | 144 | 80 | 33.201389 | 0.714961 | 0.019452 | 0 | 0.724409 | 0 | 0 | 0.033739 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015748 | false | 0 | 0.055118 | 0 | 0.070866 | 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 |
54202d37d6a351b8063f109dcf184f8b20e08617 | 137 | py | Python | tests/fake_adc.py | czbiohub/PyButtons | f1b7b28afff6678551cf6911387d27265eceb9a0 | [
"MIT"
] | null | null | null | tests/fake_adc.py | czbiohub/PyButtons | f1b7b28afff6678551cf6911387d27265eceb9a0 | [
"MIT"
] | null | null | null | tests/fake_adc.py | czbiohub/PyButtons | f1b7b28afff6678551cf6911387d27265eceb9a0 | [
"MIT"
] | null | null | null | class MCP3008():
def __init__(self, channel):
self.fake_val = 0
def value(self, pin=None):
return self.fake_val
| 19.571429 | 32 | 0.613139 | 19 | 137 | 4.105263 | 0.684211 | 0.205128 | 0.282051 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050505 | 0.277372 | 137 | 6 | 33 | 22.833333 | 0.737374 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0.2 | 0.8 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 7 |
5449c64bad55e384c0b0a379d3d8717816fe412f | 749 | py | Python | src/the_tale/the_tale/game/pvp/jinjaglobals.py | al-arz/the-tale | 542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5 | [
"BSD-3-Clause"
] | 85 | 2017-11-21T12:22:02.000Z | 2022-03-27T23:07:17.000Z | src/the_tale/the_tale/game/pvp/jinjaglobals.py | al-arz/the-tale | 542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5 | [
"BSD-3-Clause"
] | 545 | 2017-11-04T14:15:04.000Z | 2022-03-27T14:19:27.000Z | src/the_tale/the_tale/game/pvp/jinjaglobals.py | al-arz/the-tale | 542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5 | [
"BSD-3-Clause"
] | 45 | 2017-11-11T12:36:30.000Z | 2022-02-25T06:10:44.000Z |
import smart_imports
smart_imports.all()
@utils_jinja2.jinjaglobal
def pvp_page_url():
return utils_jinja2.Markup(logic.pvp_page_url())
@utils_jinja2.jinjaglobal
def pvp_info_url():
return utils_jinja2.Markup(logic.pvp_info_url())
@utils_jinja2.jinjaglobal
def pvp_call_to_arena_url():
return utils_j... | 21.4 | 71 | 0.813084 | 112 | 749 | 4.955357 | 0.205357 | 0.237838 | 0.237838 | 0.27027 | 0.893694 | 0.771171 | 0.536937 | 0.284685 | 0 | 0 | 0 | 0.017699 | 0.094793 | 749 | 34 | 72 | 22.029412 | 0.800885 | 0 | 0 | 0.3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | true | 0 | 0.1 | 0.3 | 0.7 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 9 |
544a51a4d6e4a8c142b7eb52cfb0173bcd998351 | 20,576 | py | Python | cyclopeps/tests/peps/test_peps.py | philliphelms/cyclopeps | f024d827a7412f4d9df10d6b9453c2692b1a74c3 | [
"MIT"
] | null | null | null | cyclopeps/tests/peps/test_peps.py | philliphelms/cyclopeps | f024d827a7412f4d9df10d6b9453c2692b1a74c3 | [
"MIT"
] | null | null | null | cyclopeps/tests/peps/test_peps.py | philliphelms/cyclopeps | f024d827a7412f4d9df10d6b9453c2692b1a74c3 | [
"MIT"
] | null | null | null | import unittest
from cyclopeps.tools.utils import *
import copy
class test_peps(unittest.TestCase):
def test_normalization_Z3(self):
from cyclopeps.tools.peps_tools import PEPS
mpiprint(0,'\n'+'='*50+'\nPeps (5x5) Normalization test with Z3 Symmetry\n'+'-'*50)
Nx = 5
Ny = 5
... | 36.289242 | 99 | 0.516816 | 2,510 | 20,576 | 4.16255 | 0.036255 | 0.074081 | 0.068338 | 0.053599 | 0.983633 | 0.983633 | 0.983633 | 0.983059 | 0.971286 | 0.963821 | 0 | 0.053451 | 0.350797 | 20,576 | 566 | 100 | 36.353357 | 0.728702 | 0.06527 | 0 | 0.932 | 0 | 0 | 0.132722 | 0 | 0.036 | 0 | 0 | 0 | 0.084 | 1 | 0.036 | false | 0.036 | 0.042 | 0 | 0.08 | 0.172 | 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 |
5468be63f7fb61bb688112c2096603ac198ba39f | 152,476 | py | Python | src/python/plotting.py | dpopchev/STT_theories | c7b49c8f3ff443156c275c93a9e8b497df0f8293 | [
"MIT"
] | null | null | null | src/python/plotting.py | dpopchev/STT_theories | c7b49c8f3ff443156c275c93a9e8b497df0f8293 | [
"MIT"
] | null | null | null | src/python/plotting.py | dpopchev/STT_theories | c7b49c8f3ff443156c275c93a9e8b497df0f8293 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import os
import glob
import shutil
import itertools
import pathlib
import random
import numpy as np
from matplotlib import pyplot as plt
from matplotlib.lines import Line2D
from IPython import get_ipython
from matplotlib import style
from matplotlib.gridspec import GridSpec
from numpy.polynomi... | 30.525726 | 111 | 0.4487 | 17,163 | 152,476 | 3.730583 | 0.041601 | 0.01187 | 0.008059 | 0.009402 | 0.860077 | 0.846989 | 0.835447 | 0.827982 | 0.815971 | 0.811379 | 0 | 0.030908 | 0.434088 | 152,476 | 4,994 | 112 | 30.531838 | 0.711119 | 0.177923 | 0 | 0.765242 | 0 | 0.000943 | 0.053639 | 0.000833 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019485 | false | 0 | 0.005028 | 0.000629 | 0.046512 | 0.008171 | 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 |
49dfc40877fb21a42f7968dd487204acbb3be7e9 | 914 | py | Python | projetoWebPet/crud/models.py | annaladewig/exercicios-back-end-unit | c83e633bc58ccf7ec4cd6f3d96d66019bf4494d6 | [
"MIT"
] | null | null | null | projetoWebPet/crud/models.py | annaladewig/exercicios-back-end-unit | c83e633bc58ccf7ec4cd6f3d96d66019bf4494d6 | [
"MIT"
] | null | null | null | projetoWebPet/crud/models.py | annaladewig/exercicios-back-end-unit | c83e633bc58ccf7ec4cd6f3d96d66019bf4494d6 | [
"MIT"
] | null | null | null | from django.db import models
# Create your models here.
class Animals(models.Model):
nome= models.CharField(
max_length=255,
null= False,
blank= False
)
raca = models.CharField(
max_length= 255,
null= False,
blank=False
)
especie = models.CharField... | 16.618182 | 38 | 0.54267 | 93 | 914 | 5.247312 | 0.290323 | 0.245902 | 0.295082 | 0.393443 | 0.747951 | 0.747951 | 0.747951 | 0.747951 | 0.747951 | 0 | 0 | 0.036522 | 0.370897 | 914 | 54 | 39 | 16.925926 | 0.812174 | 0.026258 | 0 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.02381 | 0 | 0.238095 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
b70755cca76e21e0a7624fd2db26d96fa6881ba5 | 184 | py | Python | node_editor/__init__.py | lcopey/node_editor | 04d56ae4c7f2149e46903d5dd2e46f3906ef69e6 | [
"MIT"
] | 1 | 2021-04-30T11:28:42.000Z | 2021-04-30T11:28:42.000Z | node_editor/__init__.py | lcopey/node_editor | 04d56ae4c7f2149e46903d5dd2e46f3906ef69e6 | [
"MIT"
] | null | null | null | node_editor/__init__.py | lcopey/node_editor | 04d56ae4c7f2149e46903d5dd2e46f3906ef69e6 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Node editor implementation.
Contains multiple classes"""
from .node_editor_window import NodeEditorWindow
from .node_editor_widget import NodeEditorWidget
| 23 | 48 | 0.788043 | 21 | 184 | 6.714286 | 0.714286 | 0.212766 | 0.198582 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006135 | 0.11413 | 184 | 7 | 49 | 26.285714 | 0.858896 | 0.423913 | 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 |
b7246d59d67bf0950312dcac8d648bbb539e0f1f | 76 | py | Python | asyncnostic/__init__.py | DerekYu177/asyncnostic | db1fcf1b0a69e70cdc1ab8465af3ff286af7e57a | [
"MIT"
] | null | null | null | asyncnostic/__init__.py | DerekYu177/asyncnostic | db1fcf1b0a69e70cdc1ab8465af3ff286af7e57a | [
"MIT"
] | 3 | 2019-07-26T03:11:45.000Z | 2020-01-19T20:46:22.000Z | asyncnostic/__init__.py | DerekYu177/asyncnostic | db1fcf1b0a69e70cdc1ab8465af3ff286af7e57a | [
"MIT"
] | null | null | null | from .legacy import asyncnostic
from .legacy import v1
from .main import v2
| 19 | 31 | 0.802632 | 12 | 76 | 5.083333 | 0.583333 | 0.327869 | 0.52459 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03125 | 0.157895 | 76 | 3 | 32 | 25.333333 | 0.921875 | 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 |
3f915d388689cec93210d23a46011237f3f12ecb | 4,241 | py | Python | test/test_storage_project_disk_api.py | hyperonecom/h1-client-python | 4ce355852ba3120ec1b8f509ab5894a5c08da730 | [
"MIT"
] | null | null | null | test/test_storage_project_disk_api.py | hyperonecom/h1-client-python | 4ce355852ba3120ec1b8f509ab5894a5c08da730 | [
"MIT"
] | null | null | null | test/test_storage_project_disk_api.py | hyperonecom/h1-client-python | 4ce355852ba3120ec1b8f509ab5894a5c08da730 | [
"MIT"
] | null | null | null | """
HyperOne
HyperOne API # noqa: E501
The version of the OpenAPI document: 0.1.0
Generated by: https://openapi-generator.tech
"""
import unittest
import h1
from h1.api.storage_project_disk_api import StorageProjectDiskApi # noqa: E501
class TestStorageProjectDiskApi(unittest.TestCase):
"""... | 24.096591 | 79 | 0.641594 | 518 | 4,241 | 4.897683 | 0.108108 | 0.237288 | 0.305085 | 0.148995 | 0.781238 | 0.75404 | 0.737091 | 0.672054 | 0.435948 | 0.389042 | 0 | 0.025362 | 0.284131 | 4,241 | 175 | 80 | 24.234286 | 0.810277 | 0.447536 | 0 | 0.423077 | 1 | 0 | 0.004322 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.442308 | false | 0.423077 | 0.057692 | 0 | 0.519231 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 8 |
3fb8d38494cc02aa3c3ffb1cecee264d03d79efb | 192 | py | Python | zipf/factories/zipf_from_list/zipf_from_list.py | LucaCappelletti94/zipf | 956c3a1d56958384a02d5bb4671c6883cd9a25e3 | [
"MIT"
] | 3 | 2018-11-07T01:56:09.000Z | 2020-05-31T12:24:09.000Z | zipf/factories/zipf_from_list/zipf_from_list.py | LucaCappelletti94/zipf | 956c3a1d56958384a02d5bb4671c6883cd9a25e3 | [
"MIT"
] | 1 | 2018-05-15T15:58:06.000Z | 2018-05-15T15:58:06.000Z | zipf/factories/zipf_from_list/zipf_from_list.py | LucaCappelletti94/zipf | 956c3a1d56958384a02d5bb4671c6883cd9a25e3 | [
"MIT"
] | null | null | null | """ZipfFromList create a Zipf from a given list."""
from ..zipf_factory import ZipfFactory
class ZipfFromList(ZipfFactory):
"""ZipfFromList create a Zipf from a given list."""
pass
| 21.333333 | 55 | 0.723958 | 25 | 192 | 5.52 | 0.48 | 0.26087 | 0.275362 | 0.333333 | 0.536232 | 0.536232 | 0.536232 | 0.536232 | 0 | 0 | 0 | 0 | 0.177083 | 192 | 8 | 56 | 24 | 0.873418 | 0.473958 | 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 | 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 | 1 | 1 | 0 | 1 | 0 | 0 | 9 |
3fbb52ff38f45e99e4c9dd429f0c13f81a36f347 | 184 | py | Python | inmemory/redisutils.py | opennlp/DeepPhrase | 54bd6ca96c12475e3c3ff3745a4eb7c245b6e870 | [
"MIT"
] | 2 | 2019-06-19T12:52:31.000Z | 2020-05-20T15:29:56.000Z | inmemory/redisutils.py | opennlp/DeepPhrase | 54bd6ca96c12475e3c3ff3745a4eb7c245b6e870 | [
"MIT"
] | 5 | 2019-12-17T05:44:10.000Z | 2022-02-10T00:29:31.000Z | inmemory/redisutils.py | opennlp/DeepPhrase | 54bd6ca96c12475e3c3ff3745a4eb7c245b6e870 | [
"MIT"
] | 3 | 2019-10-06T13:31:31.000Z | 2022-03-16T16:13:09.000Z |
def store_value(redis_client,key_name,value):
redis_client.setnx(key_name,value)
return True
def get_key_value(redis_client,key_name):
return redis_client.get(key_name)
| 20.444444 | 45 | 0.782609 | 30 | 184 | 4.433333 | 0.366667 | 0.330827 | 0.360902 | 0.285714 | 0.345865 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 184 | 8 | 46 | 23 | 0.83125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0.2 | 0.8 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 7 |
3fca28b52fcef7f7b3a5292aa1be4b29855ea673 | 236 | py | Python | spacetraders/sync/errors.py | MrKomodoDragon/spacetraders.py | 9e6a002157cf0bc250650768bea4c79d182a3527 | [
"MIT"
] | 1 | 2021-05-31T15:43:52.000Z | 2021-05-31T15:43:52.000Z | spacetraders/sync/errors.py | muunie/spacetraders.py | 9e6a002157cf0bc250650768bea4c79d182a3527 | [
"MIT"
] | null | null | null | spacetraders/sync/errors.py | muunie/spacetraders.py | 9e6a002157cf0bc250650768bea4c79d182a3527 | [
"MIT"
] | null | null | null |
class HTTPException(Exception):
def __init__(self, status: int, reason: str):
self.status = status
self.reason = reason
def __str__(self):
return "HTTPException: {}: {}".format(self.status, self.reason) | 29.5 | 71 | 0.639831 | 26 | 236 | 5.5 | 0.461538 | 0.20979 | 0.223776 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.228814 | 236 | 8 | 71 | 29.5 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0.088983 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.166667 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 7 |
b210109b6591c7bb61e523261a52d9ee1739058a | 321,623 | py | Python | contrib/monarch/datamodel.py | balhoff/biolink-model | 6e04104b8a7c3718ca3d00c11eb48963206f4855 | [
"CC0-1.0"
] | null | null | null | contrib/monarch/datamodel.py | balhoff/biolink-model | 6e04104b8a7c3718ca3d00c11eb48963206f4855 | [
"CC0-1.0"
] | null | null | null | contrib/monarch/datamodel.py | balhoff/biolink-model | 6e04104b8a7c3718ca3d00c11eb48963206f4855 | [
"CC0-1.0"
] | null | null | null |
## CLASSES
class NamedThing(object):
"""
a databased entity or concept/class
"""
def __init__(self,
id=None,
label=None):
self.id=id
self.label=label
def __str__(self):
return "id={} label={} ".format(self.id,self.label)
def __repr__(... | 43.246336 | 1,073 | 0.666908 | 36,056 | 321,623 | 5.53342 | 0.013313 | 0.101106 | 0.08009 | 0.050523 | 0.997539 | 0.997313 | 0.997313 | 0.997313 | 0.997313 | 0.997313 | 0 | 0 | 0.249858 | 321,623 | 7,436 | 1,074 | 43.252152 | 0.826952 | 0.045796 | 0 | 0.998342 | 0 | 0.013765 | 0.128249 | 0.056237 | 0 | 0 | 0 | 0 | 0 | 1 | 0.11592 | false | 0.00597 | 0 | 0.07728 | 0.231841 | 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 |
b77800c335f950de32bb48ae22f09868250ab502 | 9,660 | py | Python | src/genie/libs/parser/iosxr/tests/ShowSpanningTreePvrst/cli/equal/golden_output_1_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | 204 | 2018-06-27T00:55:27.000Z | 2022-03-06T21:12:18.000Z | src/genie/libs/parser/iosxr/tests/ShowSpanningTreePvrst/cli/equal/golden_output_1_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | 468 | 2018-06-19T00:33:18.000Z | 2022-03-31T23:23:35.000Z | src/genie/libs/parser/iosxr/tests/ShowSpanningTreePvrst/cli/equal/golden_output_1_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | 309 | 2019-01-16T20:21:07.000Z | 2022-03-30T12:56:41.000Z |
expected_output = {
'pvst': {
'a': {
'pvst_id': 'a',
'vlans': {
2: {
'vlan_id': 2,
'designated_root_priority': 32768,
'designated_root_address': '0021.1bff.d973',
'designated_root_max_ag... | 48.059701 | 74 | 0.348447 | 638 | 9,660 | 4.962382 | 0.083072 | 0.128869 | 0.13645 | 0.083386 | 0.982628 | 0.982628 | 0.982628 | 0.982628 | 0.982628 | 0.982628 | 0 | 0.121443 | 0.552484 | 9,660 | 200 | 75 | 48.3 | 0.610918 | 0 | 0 | 0.833333 | 0 | 0 | 0.32895 | 0.187927 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
b79cb9a2281743164268a69caa2d24f7394c4d96 | 22,291 | py | Python | tests/milvus_python_test/collection/test_collection_count.py | mabergerx/milvus | 1c48f7f4e47252f8aa2b3c09c9289a9444f5887c | [
"Apache-2.0"
] | null | null | null | tests/milvus_python_test/collection/test_collection_count.py | mabergerx/milvus | 1c48f7f4e47252f8aa2b3c09c9289a9444f5887c | [
"Apache-2.0"
] | 2 | 2020-08-20T07:17:50.000Z | 2020-08-21T04:21:34.000Z | tests/milvus_python_test/collection/test_collection_count.py | mabergerx/milvus | 1c48f7f4e47252f8aa2b3c09c9289a9444f5887c | [
"Apache-2.0"
] | 1 | 2021-04-19T08:33:19.000Z | 2021-04-19T08:33:19.000Z | import pdb
import copy
import logging
import itertools
from time import sleep
import threading
from multiprocessing import Process
import sklearn.preprocessing
import pytest
from utils import *
from constants import *
uid = "collection_count"
tag = "collection_count_tag"
class TestCollectionCount:
"""
params... | 41.821764 | 118 | 0.672065 | 2,656 | 22,291 | 5.423193 | 0.059111 | 0.044293 | 0.021244 | 0.032074 | 0.951888 | 0.942377 | 0.938698 | 0.933352 | 0.924674 | 0.924396 | 0 | 0.004281 | 0.255978 | 22,291 | 532 | 119 | 41.900376 | 0.864215 | 0.257862 | 0 | 0.800578 | 0 | 0 | 0.043151 | 0 | 0 | 0 | 0 | 0 | 0.060694 | 1 | 0.104046 | false | 0 | 0.031792 | 0 | 0.176301 | 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 |
b7acd082790c47cd6b34899e80441f7f31c8aa2b | 9,233 | py | Python | waveletcodec/entropy.py | zenathark/jg.waveletcodec | 7994dd18ef5472e7e4d6447062cf4dc3c2f6463f | [
"MIT"
] | 1 | 2017-05-14T01:42:18.000Z | 2017-05-14T01:42:18.000Z | waveletcodec/entropy.py | zenathark/jg.waveletcodec | 7994dd18ef5472e7e4d6447062cf4dc3c2f6463f | [
"MIT"
] | null | null | null | waveletcodec/entropy.py | zenathark/jg.waveletcodec | 7994dd18ef5472e7e4d6447062cf4dc3c2f6463f | [
"MIT"
] | null | null | null | """Module for Entropy Coding Algorithms.
.. module::entropy
:platform: Unix, Windows
.. modelauthor:: Juan C Galan-Hernandez <jcgalanh@gmail.com>
"""
from __future__ import division
import itertools as it
class arithmeticb(object):
"""Class of a binary arithmetic codec implemented assuming infinite
fl... | 29.126183 | 76 | 0.508069 | 1,197 | 9,233 | 3.599833 | 0.099415 | 0.038292 | 0.053609 | 0.038988 | 0.83198 | 0.808308 | 0.801114 | 0.784637 | 0.737294 | 0.717336 | 0 | 0.023467 | 0.367703 | 9,233 | 316 | 77 | 29.218354 | 0.714628 | 0.065201 | 0 | 0.814516 | 0 | 0 | 0.012849 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108871 | false | 0.016129 | 0.008065 | 0.004032 | 0.306452 | 0.008065 | 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 |
4d141c1cb313187e3ffac71b741aa1ca96ee4953 | 70,129 | py | Python | nba_py/league.py | foxymen9/nba_export_py | b9f4c35f92529cf99d13bf32b78856b8fca89a58 | [
"BSD-3-Clause"
] | null | null | null | nba_py/league.py | foxymen9/nba_export_py | b9f4c35f92529cf99d13bf32b78856b8fca89a58 | [
"BSD-3-Clause"
] | null | null | null | nba_py/league.py | foxymen9/nba_export_py | b9f4c35f92529cf99d13bf32b78856b8fca89a58 | [
"BSD-3-Clause"
] | null | null | null | from datetime import datetime
from nba_py import _api_scrape, _get_json, _api_scrape_playtype, _get_json_playtype, _api_scrape_with_headers
from nba_py import constants
from . import helpers
CURRENT_TIME = helpers.totimestamp(datetime.now())
class Leaders:
_endpoint = 'leagueleaders'
def __init__(self,
... | 52.101783 | 109 | 0.468979 | 4,740 | 70,129 | 6.700211 | 0.055274 | 0.013036 | 0.01587 | 0.014956 | 0.908593 | 0.905948 | 0.900406 | 0.892975 | 0.885985 | 0.884663 | 0 | 0.000744 | 0.463204 | 70,129 | 1,345 | 110 | 52.14052 | 0.842901 | 0.023614 | 0 | 0.924917 | 0 | 0 | 0.074001 | 0.003045 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038779 | false | 0 | 0.0033 | 0.020627 | 0.10066 | 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 |
4d2622b4f5dfce655d16a0bedb090bcde55c6a52 | 4,455 | py | Python | algorithms_and_evaluation/test.py | Ponyooo/book-recommender | 278fc0f7b3daf13e9073962bac4916e11af427f7 | [
"MIT"
] | null | null | null | algorithms_and_evaluation/test.py | Ponyooo/book-recommender | 278fc0f7b3daf13e9073962bac4916e11af427f7 | [
"MIT"
] | null | null | null | algorithms_and_evaluation/test.py | Ponyooo/book-recommender | 278fc0f7b3daf13e9073962bac4916e11af427f7 | [
"MIT"
] | null | null | null | #-*-coding:utf-8-*-
"""
@author: hjx
评测算法性能
"""
from algorithms import usercf
from algorithms import itemcf
from algorithms import useriif
from algorithms import itemiuf
from util import user_book_reader
from util import evaluation
import time
#usercf 将数据分成8份,选取不同的k值进行8次实验,避免过拟合
recall = 0
precision = 0
coverage... | 19.369565 | 58 | 0.732211 | 585 | 4,455 | 5.490598 | 0.133333 | 0.009963 | 0.033624 | 0.038605 | 0.857721 | 0.857721 | 0.857721 | 0.810399 | 0.810399 | 0.810399 | 0 | 0.026781 | 0.1367 | 4,455 | 229 | 59 | 19.454148 | 0.808372 | 0.102581 | 0 | 0.772358 | 0 | 0 | 0.027041 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.056911 | 0 | 0.056911 | 0.260163 | 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 |
4d6b6fee9d7efdf9f0d439e109cae2b0be5853e8 | 9,945 | py | Python | authors/apps/articles/test/test_like_dislike_articles.py | andela/ah-leagueOfLegends | ebe3a4621a5baf36a9345d4b126ba73dc37acd1f | [
"BSD-3-Clause"
] | null | null | null | authors/apps/articles/test/test_like_dislike_articles.py | andela/ah-leagueOfLegends | ebe3a4621a5baf36a9345d4b126ba73dc37acd1f | [
"BSD-3-Clause"
] | 43 | 2018-08-27T16:53:58.000Z | 2022-03-11T23:28:24.000Z | authors/apps/articles/test/test_like_dislike_articles.py | andela/ah-leagueOfLegends | ebe3a4621a5baf36a9345d4b126ba73dc37acd1f | [
"BSD-3-Clause"
] | 2 | 2018-10-30T10:30:35.000Z | 2018-11-12T07:48:02.000Z | from .test_articles import ArticleTestCase
from django.urls import reverse
from rest_framework.views import status
class DislikeLikeArticleTestCase(ArticleTestCase):
"""Tests Like and Dislike articles views"""
article = {
"article":
{
"author": "jake",
"bod... | 45.410959 | 112 | 0.619708 | 1,130 | 9,945 | 5.30531 | 0.10531 | 0.070058 | 0.107423 | 0.037364 | 0.907089 | 0.885405 | 0.859383 | 0.83603 | 0.83603 | 0.809341 | 0 | 0.01525 | 0.274711 | 9,945 | 218 | 113 | 45.619266 | 0.815888 | 0.127903 | 0 | 0.739726 | 0 | 0 | 0.20947 | 0.107884 | 0 | 0 | 0 | 0 | 0.232877 | 1 | 0.068493 | false | 0 | 0.020548 | 0 | 0.10274 | 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 |
4d7c8d581e3552b82823766149017f68b12e31d8 | 117,098 | py | Python | kubernetes/test/test_com_coreos_monitoring_v1_prometheus_list.py | mariusgheorghies/python | 68ac7e168963d8b5a81dc493b1973d29e903a15b | [
"Apache-2.0"
] | null | null | null | kubernetes/test/test_com_coreos_monitoring_v1_prometheus_list.py | mariusgheorghies/python | 68ac7e168963d8b5a81dc493b1973d29e903a15b | [
"Apache-2.0"
] | null | null | null | kubernetes/test/test_com_coreos_monitoring_v1_prometheus_list.py | mariusgheorghies/python | 68ac7e168963d8b5a81dc493b1973d29e903a15b | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
"""
Kubernetes
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: v1.20.7
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unitte... | 81.374566 | 345 | 0.457027 | 8,455 | 117,098 | 5.773743 | 0.064459 | 0.096237 | 0.203167 | 0.224553 | 0.978716 | 0.977446 | 0.976934 | 0.976176 | 0.976094 | 0.973759 | 0 | 0.026765 | 0.492681 | 117,098 | 1,438 | 346 | 81.431154 | 0.794987 | 0.001272 | 0 | 0.969504 | 1 | 0 | 0.009512 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.002837 | 0.004255 | null | null | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 11 |
4d86d35d2da0a26cbf2167b24a6d4dc2fedc68b6 | 754 | py | Python | experiments/train/setups/argparse.py | didriknielsen/pixelcnn_flow | 9030f6a66d5ff83d7d299541ed55b20b20bb9a15 | [
"MIT"
] | 25 | 2020-02-12T00:35:48.000Z | 2021-09-18T14:30:43.000Z | experiments/train/setups/argparse.py | didriknielsen/pixelcnn_flow | 9030f6a66d5ff83d7d299541ed55b20b20bb9a15 | [
"MIT"
] | 1 | 2021-08-05T10:00:04.000Z | 2021-08-10T11:11:16.000Z | experiments/train/setups/argparse.py | didriknielsen/pixelcnn_flow | 9030f6a66d5ff83d7d299541ed55b20b20bb9a15 | [
"MIT"
] | null | null | null | import torch
def prep_int(arg, num, allow_none=False):
if allow_none:
if arg is None: arg = [arg] * num
if isinstance(arg, int): arg = [arg] * num
assert len(arg) == num
return arg
def prep_float(arg, num, allow_none=False):
if allow_none:
if arg is None: arg = [arg] * num
if i... | 22.176471 | 48 | 0.570292 | 110 | 754 | 3.836364 | 0.209091 | 0.199052 | 0.127962 | 0.14218 | 0.902844 | 0.902844 | 0.902844 | 0.902844 | 0.902844 | 0.902844 | 0 | 0 | 0.312997 | 754 | 33 | 49 | 22.848485 | 0.814672 | 0 | 0 | 0.758621 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.206897 | 1 | 0.137931 | false | 0 | 0.034483 | 0 | 0.310345 | 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 |
4d967af44d9fdb59cad0584933b6d4afd5caf7ed | 74,780 | py | Python | fpl/tests.py | sornars/leaguetracker | b83cd21db2edfeeeaecc27b768107e5b7bf0cd93 | [
"MIT"
] | null | null | null | fpl/tests.py | sornars/leaguetracker | b83cd21db2edfeeeaecc27b768107e5b7bf0cd93 | [
"MIT"
] | null | null | null | fpl/tests.py | sornars/leaguetracker | b83cd21db2edfeeeaecc27b768107e5b7bf0cd93 | [
"MIT"
] | null | null | null | import datetime
import decimal
from django.contrib.auth import get_user_model
from django.test import TestCase
from django.urls import reverse
from django.utils import timezone
from unittest.mock import Mock, patch
from fpl.models import (ClassicLeague, HeadToHeadLeague, HeadToHeadMatch, HeadToHeadPerformance, Gamewee... | 50.767142 | 164 | 0.638593 | 8,828 | 74,780 | 5.185773 | 0.026846 | 0.065312 | 0.02512 | 0.022608 | 0.945216 | 0.926868 | 0.909196 | 0.8955 | 0.881586 | 0.847182 | 0 | 0.054684 | 0.246323 | 74,780 | 1,472 | 165 | 50.80163 | 0.757594 | 0 | 0 | 0.716452 | 0 | 0.006065 | 0.100789 | 0.020259 | 0 | 0 | 0 | 0 | 0.168309 | 1 | 0.0326 | false | 0 | 0.006823 | 0 | 0.04928 | 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 |
4da6880e573cd010b2c72a8ee93a5a512c532ba3 | 109 | py | Python | creds.py | feelqah/LinkedinCompanyScraper | d28357ebc85a83a1a695fd5ddac95a5a5160a59a | [
"Unlicense"
] | null | null | null | creds.py | feelqah/LinkedinCompanyScraper | d28357ebc85a83a1a695fd5ddac95a5a5160a59a | [
"Unlicense"
] | null | null | null | creds.py | feelqah/LinkedinCompanyScraper | d28357ebc85a83a1a695fd5ddac95a5a5160a59a | [
"Unlicense"
] | null | null | null | linkedin_email = # place your linkedin login email
linkedin_password = # place your linkedin login password | 54.5 | 57 | 0.807339 | 14 | 109 | 6.142857 | 0.428571 | 0.209302 | 0.395349 | 0.511628 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155963 | 109 | 2 | 57 | 54.5 | 0.934783 | 0.605505 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.5 | 0 | null | null | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 7 |
4dc30b7dd02381a519093b97d2b44e73bfb87d54 | 383 | py | Python | App/models.py | flaskxiangmu/taopiaopiao | 18d5a0a41afd7978161ba1fefa5f0d55da352967 | [
"Apache-2.0"
] | null | null | null | App/models.py | flaskxiangmu/taopiaopiao | 18d5a0a41afd7978161ba1fefa5f0d55da352967 | [
"Apache-2.0"
] | null | null | null | App/models.py | flaskxiangmu/taopiaopiao | 18d5a0a41afd7978161ba1fefa5f0d55da352967 | [
"Apache-2.0"
] | null | null | null | from flask_sqlalchemy import SQLAlchemy
db = SQLAlchemy()
class Hello(db.Model):
id = db.Column(db.Integer, primary_key=True, autoincrement=True)
name = db.Column(db.String(64))
age = db.Column(db.Integer)
class Cat(db.Model):
id = db.Column(db.Integer, primary_key=True, autoincrement=True)
nam... | 21.277778 | 68 | 0.694517 | 57 | 383 | 4.614035 | 0.350877 | 0.18251 | 0.228137 | 0.258555 | 0.752852 | 0.752852 | 0.752852 | 0.752852 | 0.752852 | 0.752852 | 0 | 0.012539 | 0.167102 | 383 | 17 | 69 | 22.529412 | 0.811912 | 0 | 0 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.9 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 8 |
1517c49490effd48bff6d47667de07fb5ad63e02 | 107 | py | Python | backend/common/context_processors.py | cody-robertson/django-react-messaging | a58d42292000bfac106f4f85a7fd5ee2592d29a6 | [
"MIT"
] | null | null | null | backend/common/context_processors.py | cody-robertson/django-react-messaging | a58d42292000bfac106f4f85a7fd5ee2592d29a6 | [
"MIT"
] | 2 | 2021-04-28T16:15:49.000Z | 2021-04-28T16:15:59.000Z | backend/common/context_processors.py | cody-robertson/django-react-messaging | a58d42292000bfac106f4f85a7fd5ee2592d29a6 | [
"MIT"
] | null | null | null | from django.conf import settings
def commit_sha(request):
return {"COMMIT_SHA": settings.COMMIT_SHA}
| 17.833333 | 46 | 0.766355 | 15 | 107 | 5.266667 | 0.666667 | 0.341772 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140187 | 107 | 5 | 47 | 21.4 | 0.858696 | 0 | 0 | 0 | 0 | 0 | 0.093458 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 7 |
129f47524384169c51cf11225a0501fb7e6b4037 | 26,551 | py | Python | cotidia/fabfile.py | guillaumepiot/cotidia-crm | 9f46d3b4fb1bc84f553c649e121b945e68a0bdab | [
"BSD-3-Clause"
] | null | null | null | cotidia/fabfile.py | guillaumepiot/cotidia-crm | 9f46d3b4fb1bc84f553c649e121b945e68a0bdab | [
"BSD-3-Clause"
] | null | null | null | cotidia/fabfile.py | guillaumepiot/cotidia-crm | 9f46d3b4fb1bc84f553c649e121b945e68a0bdab | [
"BSD-3-Clause"
] | null | null | null | # Run as local
import sys, random
from fabric.api import *
from os.path import exists
def add_module():
prompt('Specify exiting app name:', 'app_name', validate=r'^[a-z\_]+$')
prompt('Specify new module name (model class name):', 'module_name', validate=r'^[a-zA-Z\_]+$')
with settings(warn_only=True):
... | 64.13285 | 176 | 0.618809 | 4,237 | 26,551 | 3.704744 | 0.026434 | 0.174556 | 0.225266 | 0.264891 | 0.949162 | 0.939989 | 0.939989 | 0.937504 | 0.884946 | 0.868128 | 0 | 0.0059 | 0.182893 | 26,551 | 413 | 177 | 64.288136 | 0.717631 | 0.004181 | 0 | 0.373737 | 0 | 0.326599 | 0.37605 | 0.180872 | 0 | 0 | 0 | 0 | 0 | 1 | 0.003367 | true | 0 | 0.026936 | 0 | 0.030303 | 0.003367 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
12c7a672f93542c40637bcf90c5ccfecca68379d | 2,996 | py | Python | tests/testapp/tests/test_syncing_models.py | jredrejo/morango | c3ec2554b026f65ac5f0fc5c9d439277fbac14f9 | [
"MIT"
] | null | null | null | tests/testapp/tests/test_syncing_models.py | jredrejo/morango | c3ec2554b026f65ac5f0fc5c9d439277fbac14f9 | [
"MIT"
] | 6 | 2020-05-13T07:50:37.000Z | 2020-06-04T18:23:03.000Z | tests/testapp/tests/test_syncing_models.py | jredrejo/morango | c3ec2554b026f65ac5f0fc5c9d439277fbac14f9 | [
"MIT"
] | null | null | null | from django.test import TestCase
from facility_profile.models import MyUser
from morango.manager import SyncableModelManager
from morango.query import SyncableModelQuerySet
class SyncingModelsTestCase(TestCase):
def setUp(self):
MyUser.objects.create(username='beans')
def test_syncable_manager_inher... | 47.555556 | 80 | 0.742991 | 373 | 2,996 | 5.63807 | 0.107239 | 0.222539 | 0.179743 | 0.237756 | 0.816928 | 0.816928 | 0.816928 | 0.767475 | 0.767475 | 0.767475 | 0 | 0 | 0.151202 | 2,996 | 62 | 81 | 48.322581 | 0.826976 | 0 | 0 | 0.592593 | 0 | 0 | 0.001669 | 0 | 0 | 0 | 0 | 0 | 0.425926 | 1 | 0.111111 | false | 0 | 0.074074 | 0 | 0.203704 | 0 | 0 | 0 | 0 | null | 1 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
12f269204afcc067e9c729460fea12dbbdcb4809 | 4,464 | py | Python | HLTriggerOffline/Top/python/topDiLeptonHLTEventValidation_cfi.py | NTrevisani/cmssw | a212a27526f34eb9507cf8b875c93896e6544781 | [
"Apache-2.0"
] | 3 | 2018-08-24T19:10:26.000Z | 2019-02-19T11:45:32.000Z | HLTriggerOffline/Top/python/topDiLeptonHLTEventValidation_cfi.py | NTrevisani/cmssw | a212a27526f34eb9507cf8b875c93896e6544781 | [
"Apache-2.0"
] | 7 | 2016-07-17T02:34:54.000Z | 2019-08-13T07:58:37.000Z | HLTriggerOffline/Top/python/topDiLeptonHLTEventValidation_cfi.py | NTrevisani/cmssw | a212a27526f34eb9507cf8b875c93896e6544781 | [
"Apache-2.0"
] | 5 | 2018-08-21T16:37:52.000Z | 2020-01-09T13:33:17.000Z | import FWCore.ParameterSet.Config as cms
# ttbar dimuon
from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
DiMuonHLTValidation = DQMEDAnalyzer('TopDiLeptonHLTValidation',
# Directory
sDir = cms.untracked.string('HLT/TopHLTValidation/Top/DiMuon/'),
# Electrons
sElectrons ... | 50.727273 | 173 | 0.558692 | 415 | 4,464 | 5.889157 | 0.207229 | 0.250409 | 0.176759 | 0.069967 | 0.899345 | 0.890344 | 0.83838 | 0.83838 | 0.80401 | 0.80401 | 0 | 0.041244 | 0.337366 | 4,464 | 87 | 174 | 51.310345 | 0.78499 | 0.124104 | 0 | 0.619048 | 0 | 0 | 0.171133 | 0.132131 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.031746 | 0 | 0.031746 | 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 |
42676d99b6e9bb3450c180d20be5de98f8691ee4 | 117 | py | Python | tests/parser/depgraph.4.test.py | veltri/DLV2 | 944aaef803aa75e7ec51d7e0c2b0d964687fdd0e | [
"Apache-2.0"
] | null | null | null | tests/parser/depgraph.4.test.py | veltri/DLV2 | 944aaef803aa75e7ec51d7e0c2b0d964687fdd0e | [
"Apache-2.0"
] | null | null | null | tests/parser/depgraph.4.test.py | veltri/DLV2 | 944aaef803aa75e7ec51d7e0c2b0d964687fdd0e | [
"Apache-2.0"
] | null | null | null | input = """
p(1) :- #count{X:q(X)}=1.
q(X) :- p(X).
"""
output = """
p(1) :- #count{X:q(X)}=1.
q(X) :- p(X).
"""
| 13 | 26 | 0.350427 | 24 | 117 | 1.708333 | 0.291667 | 0.195122 | 0.341463 | 0.390244 | 0.731707 | 0.731707 | 0.731707 | 0.731707 | 0.731707 | 0.731707 | 0 | 0.043011 | 0.205128 | 117 | 8 | 27 | 14.625 | 0.397849 | 0 | 0 | 0.75 | 0 | 0 | 0.725664 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | null | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 13 |
4280922fccf235c01e3a6776485a9f77a01aaf91 | 2,535 | py | Python | utils/initialize.py | AnshulPundhir/HyperparametricMetaFusionBlock | 8edd70982f84d6a9cf619b2c93ac6d278274ba7c | [
"MIT"
] | null | null | null | utils/initialize.py | AnshulPundhir/HyperparametricMetaFusionBlock | 8edd70982f84d6a9cf619b2c93ac6d278274ba7c | [
"MIT"
] | null | null | null | utils/initialize.py | AnshulPundhir/HyperparametricMetaFusionBlock | 8edd70982f84d6a9cf619b2c93ac6d278274ba7c | [
"MIT"
] | null | null | null | #Filename: initialize.py
#Institute: IIT Roorkee
import torch.nn as nn
import numpy as np
def weights_init_kaimingUniform(module):
for m in module.modules():
if isinstance(m, nn.Conv2d):
nn.init.kaiming_uniform_(m.weight, mode = 'fan_in', nonlinearity = 'relu')
if m.bias is not No... | 34.256757 | 86 | 0.571598 | 361 | 2,535 | 3.891967 | 0.146814 | 0.102491 | 0.111032 | 0.128114 | 0.897509 | 0.897509 | 0.897509 | 0.897509 | 0.897509 | 0.897509 | 0 | 0.020305 | 0.300592 | 2,535 | 73 | 87 | 34.726027 | 0.772138 | 0.017751 | 0 | 0.851852 | 0 | 0 | 0.016077 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.037037 | 0 | 0.111111 | 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 |
42a391e4bafd52ac14e8388042a1ad1bb042985e | 248 | py | Python | Python/met_brewer/__init__.py | vitusbenson/MetBrewer | 082835323a60107b0d38b0901f003c6609cce84e | [
"CC0-1.0"
] | 570 | 2021-12-11T23:10:07.000Z | 2022-03-31T17:51:47.000Z | Python/met_brewer/__init__.py | Donjae-Wong/MetBrewer | 082835323a60107b0d38b0901f003c6609cce84e | [
"CC0-1.0"
] | 11 | 2021-12-13T14:28:42.000Z | 2022-03-28T09:00:01.000Z | Python/met_brewer/__init__.py | Donjae-Wong/MetBrewer | 082835323a60107b0d38b0901f003c6609cce84e | [
"CC0-1.0"
] | 57 | 2021-12-12T18:28:45.000Z | 2022-03-29T19:27:47.000Z | from met_brewer.palettes import (
MET_PALETTES, COLORBLIND_PALETTES_NAMES, COLORBLIND_PALETTES,
met_brew, export, is_colorblind_friendly
)
MET_PALETTES
COLORBLIND_PALETTES_NAMES
COLORBLIND_PALETTES
met_brew
export
is_colorblind_friendly
| 17.714286 | 65 | 0.854839 | 31 | 248 | 6.354839 | 0.354839 | 0.365482 | 0.213198 | 0.294416 | 0.862944 | 0.862944 | 0.862944 | 0.862944 | 0.862944 | 0.862944 | 0 | 0 | 0.112903 | 248 | 13 | 66 | 19.076923 | 0.895455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
223bd9b48cf4bf82eba4ec94c3e1e436a8f9c07c | 68,644 | py | Python | benchmarks/SimResults/combinations_spec_ml/cmp_bwavesgccmcfleslie3d/power.py | TugberkArkose/MLScheduler | e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061 | [
"Unlicense"
] | null | null | null | benchmarks/SimResults/combinations_spec_ml/cmp_bwavesgccmcfleslie3d/power.py | TugberkArkose/MLScheduler | e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061 | [
"Unlicense"
] | null | null | null | benchmarks/SimResults/combinations_spec_ml/cmp_bwavesgccmcfleslie3d/power.py | TugberkArkose/MLScheduler | e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061 | [
"Unlicense"
] | null | null | null | power = {'BUSES': {'Area': 1.33155,
'Bus/Area': 1.33155,
'Bus/Gate Leakage': 0.00662954,
'Bus/Peak Dynamic': 0.0,
'Bus/Runtime Dynamic': 0.0,
'Bus/Subthreshold Leakage': 0.0691322,
'Bus/Subthreshold Leakage with power gating': 0.0259246,
'Gate... | 75.102845 | 124 | 0.682245 | 8,082 | 68,644 | 5.788666 | 0.067681 | 0.123461 | 0.112859 | 0.093365 | 0.938569 | 0.930703 | 0.917322 | 0.886521 | 0.862303 | 0.841677 | 0 | 0.132518 | 0.224215 | 68,644 | 914 | 125 | 75.102845 | 0.746005 | 0 | 0 | 0.642232 | 0 | 0 | 0.657076 | 0.048073 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
58bab9c7bcdd00d0e604b33aace90c72691b1ce7 | 9,023 | py | Python | tests/dhcpv6/options_validation/test_v6_subnet_options.py | shawnmullaney/forge | aaaef0a0645f73d24666aab6a400f3604e753aac | [
"0BSD"
] | null | null | null | tests/dhcpv6/options_validation/test_v6_subnet_options.py | shawnmullaney/forge | aaaef0a0645f73d24666aab6a400f3604e753aac | [
"0BSD"
] | null | null | null | tests/dhcpv6/options_validation/test_v6_subnet_options.py | shawnmullaney/forge | aaaef0a0645f73d24666aab6a400f3604e753aac | [
"0BSD"
] | null | null | null | """DHCPv6 options defined in subnet"""
# pylint: disable=invalid-name,line-too-long
import pytest
import srv_control
import misc
import srv_msg
import references
@pytest.mark.v6
@pytest.mark.dhcp6
@pytest.mark.options
@pytest.mark.subnet
def test_v6_options_subnet_preference():
# Testing server ability to con... | 38.725322 | 99 | 0.654328 | 1,148 | 9,023 | 4.879791 | 0.092334 | 0.065334 | 0.077115 | 0.054266 | 0.90075 | 0.877365 | 0.869154 | 0.841485 | 0.808997 | 0.808997 | 0 | 0.032475 | 0.225313 | 9,023 | 232 | 100 | 38.892241 | 0.768956 | 0.237504 | 0 | 0.903448 | 0 | 0 | 0.169892 | 0.026092 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027586 | true | 0.055172 | 0.034483 | 0 | 0.062069 | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 9 |
4523c25d5a8c9887e3a52eb58626e94292be05c9 | 47,926 | py | Python | arista/studio/v1/services/gen_pb2_grpc.py | barryCrunch/cloudvision-python | bafb55a57743141ef419ce8b6f3adda31a18ca42 | [
"Apache-2.0"
] | 8 | 2020-10-22T13:19:00.000Z | 2021-12-16T02:16:47.000Z | arista/studio/v1/services/gen_pb2_grpc.py | barryCrunch/cloudvision-python | bafb55a57743141ef419ce8b6f3adda31a18ca42 | [
"Apache-2.0"
] | 6 | 2020-12-16T11:31:03.000Z | 2021-11-19T10:00:37.000Z | arista/studio/v1/services/gen_pb2_grpc.py | barryCrunch/cloudvision-python | bafb55a57743141ef419ce8b6f3adda31a18ca42 | [
"Apache-2.0"
] | 7 | 2020-12-04T01:30:34.000Z | 2021-11-11T21:40:12.000Z | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc
from arista.studio.v1.services import gen_pb2 as arista_dot_studio_dot_v1_dot_services_dot_gen__pb2
class AssignedTagsServiceStub(object):
"""Missing assoc... | 49.612836 | 142 | 0.700392 | 4,739 | 47,926 | 6.651614 | 0.031441 | 0.02779 | 0.068999 | 0.082799 | 0.972717 | 0.97129 | 0.969862 | 0.957014 | 0.957014 | 0.933697 | 0 | 0.009395 | 0.231586 | 47,926 | 965 | 143 | 49.664249 | 0.846553 | 0.064349 | 0 | 0.767263 | 1 | 0 | 0.080671 | 0.052385 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076726 | false | 0 | 0.002558 | 0.030691 | 0.132992 | 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 |
18b97398dbc4791478a20ade427edd05785ca1ef | 40,579 | py | Python | src/oci/vulnerability_scanning/vulnerability_scanning_client_composite_operations.py | LaudateCorpus1/oci-python-sdk | b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | src/oci/vulnerability_scanning/vulnerability_scanning_client_composite_operations.py | LaudateCorpus1/oci-python-sdk | b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | src/oci/vulnerability_scanning/vulnerability_scanning_client_composite_operations.py | LaudateCorpus1/oci-python-sdk | b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | # coding: utf-8
# Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c... | 53.74702 | 245 | 0.699524 | 5,128 | 40,579 | 5.256825 | 0.042902 | 0.03999 | 0.049189 | 0.046741 | 0.951441 | 0.942278 | 0.927551 | 0.922432 | 0.905887 | 0.901361 | 0 | 0.001534 | 0.228764 | 40,579 | 754 | 246 | 53.818302 | 0.859822 | 0.453634 | 0 | 0.843137 | 0 | 0 | 0.02598 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05042 | false | 0 | 0.005602 | 0 | 0.179272 | 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 |
18bd6765a1b678979ac89fd1b185feee4306eb48 | 956 | py | Python | tests/test_snorse.py | pipermerriam/snorse | 659e3585ea8cdefbeb22bf43883362bd30830376 | [
"MIT"
] | 3 | 2015-07-16T05:18:33.000Z | 2019-04-16T21:47:41.000Z | tests/test_snorse.py | pipermerriam/snorse | 659e3585ea8cdefbeb22bf43883362bd30830376 | [
"MIT"
] | null | null | null | tests/test_snorse.py | pipermerriam/snorse | 659e3585ea8cdefbeb22bf43883362bd30830376 | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
import pytest
import snorse
DOT = "\u2603"
DASH = "\u26C4\u26C4\u26C4"
@pytest.mark.parametrize(
'text,expected',
(
('', ''),
('a', '\u2603 \u26C4\u26C4\u26C4'),
('abc', '\u2603 \u26C4\u26C4\u26C4 \u26C4\u26C4\u26C4 \u2603 \u2603 \u2603 \u2... | 39.833333 | 273 | 0.633891 | 120 | 956 | 5 | 0.2 | 0.7 | 0.675 | 0.466667 | 0.681667 | 0.613333 | 0.613333 | 0.613333 | 0.613333 | 0.613333 | 0 | 0.363281 | 0.196653 | 956 | 23 | 274 | 41.565217 | 0.417969 | 0 | 0 | 0.105263 | 0 | 0.157895 | 0.635983 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 1 | 0.052632 | false | 0 | 0.157895 | 0 | 0.210526 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
18d434ec416199db163c26a185b593bd2b11d239 | 119 | py | Python | 01_Day_Introduction/2.py | diegofregolente/30-Days-Of-Python | e0cad31f6d5ab1384ad6fa5a5d24a84771d6c267 | [
"Apache-2.0"
] | null | null | null | 01_Day_Introduction/2.py | diegofregolente/30-Days-Of-Python | e0cad31f6d5ab1384ad6fa5a5d24a84771d6c267 | [
"Apache-2.0"
] | null | null | null | 01_Day_Introduction/2.py | diegofregolente/30-Days-Of-Python | e0cad31f6d5ab1384ad6fa5a5d24a84771d6c267 | [
"Apache-2.0"
] | null | null | null | print(
3 + 4,
3 - 4,
3 * 4,
3 / 4,
3 ** 4,
3 // 4,
3 % 4) # 2
| 13.222222 | 19 | 0.168067 | 16 | 119 | 1.25 | 0.25 | 0.7 | 0.9 | 1.2 | 0.7 | 0.7 | 0.7 | 0.7 | 0.7 | 0.7 | 0 | 0.394737 | 0.680672 | 119 | 8 | 20 | 14.875 | 0.131579 | 0.008403 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0.125 | 1 | 0 | 1 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 11 |
18ef518ed288be9908803659afb8b662ba1f1c8f | 27,797 | py | Python | login/tests/test_client.py | shubhamkulkarni01/EMSTrack-Django | 32ff9ed94a38730c0e9f6385c75060e2d30a930e | [
"MIT",
"BSD-3-Clause"
] | 2 | 2020-07-16T01:44:54.000Z | 2020-10-25T02:08:47.000Z | login/tests/test_client.py | shubhamkulkarni01/EMSTrack-Django | 32ff9ed94a38730c0e9f6385c75060e2d30a930e | [
"MIT",
"BSD-3-Clause"
] | 8 | 2020-04-20T22:13:56.000Z | 2022-02-04T17:50:44.000Z | login/tests/test_client.py | shubhamkulkarni01/EMSTrack-Django | 32ff9ed94a38730c0e9f6385c75060e2d30a930e | [
"MIT",
"BSD-3-Clause"
] | 2 | 2020-07-20T23:39:44.000Z | 2022-02-24T00:29:10.000Z | import json
import logging
from io import BytesIO
from django.conf import settings
from django.core.exceptions import PermissionDenied
from django.db import transaction
from django.test import Client as DjangoClient
from rest_framework.parsers import JSONParser
from ambulance.models import Ambulance
from emstrack.tes... | 40.998525 | 102 | 0.632514 | 3,004 | 27,797 | 5.807257 | 0.051598 | 0.204643 | 0.123818 | 0.075666 | 0.921009 | 0.912926 | 0.905704 | 0.896819 | 0.894124 | 0.883577 | 0 | 0.019815 | 0.248372 | 27,797 | 677 | 103 | 41.059084 | 0.815153 | 0.022017 | 0 | 0.873494 | 0 | 0 | 0.046489 | 0 | 0 | 0 | 0 | 0 | 0.516064 | 1 | 0.01004 | false | 0.002008 | 0.028112 | 0 | 0.040161 | 0 | 0 | 0 | 0 | null | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
bef78cb0897d54e08313ba0e5ceec9391aad202d | 198 | py | Python | buildpacks/python.py | RoboEpics/packman | 5bec7e153a266210ca53f2592af4b395257ad7aa | [
"MIT"
] | 2 | 2020-06-23T22:07:57.000Z | 2020-07-24T19:42:42.000Z | buildpacks/python.py | RoboEpics/packman | 5bec7e153a266210ca53f2592af4b395257ad7aa | [
"MIT"
] | 9 | 2021-03-30T13:41:24.000Z | 2021-12-14T14:51:00.000Z | buildpacks/python.py | RoboEpics/packman | 5bec7e153a266210ca53f2592af4b395257ad7aa | [
"MIT"
] | 1 | 2020-07-24T19:50:26.000Z | 2020-07-24T19:50:26.000Z | from repo2docker.buildpacks.python import PythonBuildPack
from .conda import PythonRunCommandDetectorMixin
class ModifiedPythonBuildPack(PythonRunCommandDetectorMixin, PythonBuildPack):
pass
| 24.75 | 78 | 0.868687 | 15 | 198 | 11.466667 | 0.733333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005587 | 0.09596 | 198 | 7 | 79 | 28.285714 | 0.955307 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.25 | 0.5 | 0 | 0.75 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 7 |
55c54610582d8b4813c5ceff9e92422c937f39d0 | 15,009 | py | Python | tests/intensive/video_tests.py | stephengmatthews/fiftyone | cd13869ce589644ddfc19693905f6783b3202f4d | [
"Apache-2.0"
] | 3 | 2022-01-18T06:13:33.000Z | 2022-02-14T13:28:23.000Z | tests/intensive/video_tests.py | 3Demonica/fiftyone | cd13869ce589644ddfc19693905f6783b3202f4d | [
"Apache-2.0"
] | null | null | null | tests/intensive/video_tests.py | 3Demonica/fiftyone | cd13869ce589644ddfc19693905f6783b3202f4d | [
"Apache-2.0"
] | null | null | null | """
Video tests.
You must run these tests interactively as follows::
pytest tests/intensive/video_tests.py -s -k <test_case>
| Copyright 2017-2022, Voxel51, Inc.
| `voxel51.com <https://voxel51.com/>`_
|
"""
import random
import unittest
import fiftyone as fo
import fiftyone.zoo as foz
from fiftyone import View... | 32.557484 | 79 | 0.709774 | 1,862 | 15,009 | 5.577336 | 0.096133 | 0.078575 | 0.094945 | 0.052576 | 0.830814 | 0.813288 | 0.799326 | 0.794608 | 0.782667 | 0.773231 | 0 | 0.003974 | 0.161636 | 15,009 | 460 | 80 | 32.628261 | 0.821346 | 0.168566 | 0 | 0.693103 | 0 | 0 | 0.22495 | 0.151227 | 0 | 0 | 0 | 0 | 0.010345 | 1 | 0.017241 | false | 0.003448 | 0.017241 | 0 | 0.034483 | 0.593103 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 7 |
3681605a8436017582d70af8f752aa9e3b5182ba | 696 | py | Python | src/train/features/__init__.py | ianstokesrees-gamma/demo-machine-learning | bc27995165e72ad829395e3a44102032b0d83c47 | [
"MIT"
] | 3 | 2021-05-11T17:48:09.000Z | 2022-01-24T17:58:34.000Z | src/train/features/__init__.py | ianstokesrees-gamma/demo-machine-learning | bc27995165e72ad829395e3a44102032b0d83c47 | [
"MIT"
] | null | null | null | src/train/features/__init__.py | ianstokesrees-gamma/demo-machine-learning | bc27995165e72ad829395e3a44102032b0d83c47 | [
"MIT"
] | 4 | 2020-10-27T02:03:06.000Z | 2022-01-24T17:59:20.000Z | from sklearn.pipeline import FeatureUnion
from .features import (
Speed,
NetClearance,
DistanceFromSideline,
Depth,
PlayerDistanceTravelled,
PlayerImpactDepth,
PreviousDistanceFromSideline,
PreviousTimeToNet,
Hitpoint,
Out,
WeirdNetClearance,
DistanceTravelledRatio
)
FE... | 19.333333 | 57 | 0.725575 | 49 | 696 | 10.204082 | 0.510204 | 0.068 | 0.148 | 0.168 | 0.74 | 0.74 | 0.74 | 0.74 | 0.74 | 0.74 | 0 | 0 | 0.212644 | 696 | 35 | 58 | 19.885714 | 0.912409 | 0 | 0 | 0.774194 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.064516 | 0 | 0.064516 | 0 | 0 | 0 | 1 | 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 | 8 |
3689b82dd63df2d15f7d8e9d9e1c502fb9b44733 | 2,862 | py | Python | tests/test_day_of_nth_weekday.py | pschoenfelder/named_dates | 21eadcf7fbbe7f618a37580be668c1600554fbd8 | [
"MIT"
] | null | null | null | tests/test_day_of_nth_weekday.py | pschoenfelder/named_dates | 21eadcf7fbbe7f618a37580be668c1600554fbd8 | [
"MIT"
] | null | null | null | tests/test_day_of_nth_weekday.py | pschoenfelder/named_dates | 21eadcf7fbbe7f618a37580be668c1600554fbd8 | [
"MIT"
] | null | null | null | import pytest
from named_dates.named_dates import\
day_of_nth_weekday, NoNthWeekdayError
# For reference throughout these tests, October 1, 2015 is
# a Thursday (weekday = 3).
def test_weekday_equals_first_of_month():
# Tests that day_of_nth_weekday works when the requested weekday is the
# first weekday... | 42.088235 | 75 | 0.70615 | 498 | 2,862 | 3.785141 | 0.126506 | 0.087533 | 0.140053 | 0.262599 | 0.815915 | 0.73687 | 0.73687 | 0.73687 | 0.734748 | 0.604775 | 0 | 0.117975 | 0.185535 | 2,862 | 67 | 76 | 42.716418 | 0.690691 | 0.150943 | 0 | 0.155556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.533333 | 1 | 0.111111 | true | 0 | 0.044444 | 0 | 0.155556 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
36f092d885e27227a8bfe39d09fd773dbb93a634 | 99 | py | Python | calulator.py | Yolo2050/test-github | eb31d836e56d4f43b98f85e8ee22da180815b179 | [
"MIT"
] | null | null | null | calulator.py | Yolo2050/test-github | eb31d836e56d4f43b98f85e8ee22da180815b179 | [
"MIT"
] | null | null | null | calulator.py | Yolo2050/test-github | eb31d836e56d4f43b98f85e8ee22da180815b179 | [
"MIT"
] | null | null | null | def calcu():
pass
def calc_add(a,b):
return a+b
def calc_minus(a,b):
return a-b
| 9.9 | 20 | 0.565657 | 19 | 99 | 2.842105 | 0.473684 | 0.148148 | 0.296296 | 0.333333 | 0.37037 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.30303 | 99 | 9 | 21 | 11 | 0.782609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0.166667 | 0 | 0.333333 | 0.833333 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 7 |
3d35f28ad23c17f78a5d221ae46c13beb3b755ab | 7,848 | py | Python | wntr/tests/test_multiple_simulations.py | algchyhao/WNTR | dd4db188a8641a4da16cf80a1557c908fa48c17d | [
"BSD-3-Clause"
] | null | null | null | wntr/tests/test_multiple_simulations.py | algchyhao/WNTR | dd4db188a8641a4da16cf80a1557c908fa48c17d | [
"BSD-3-Clause"
] | null | null | null | wntr/tests/test_multiple_simulations.py | algchyhao/WNTR | dd4db188a8641a4da16cf80a1557c908fa48c17d | [
"BSD-3-Clause"
] | null | null | null | # These tests run a demand-driven simulation with both WNTR and Epanet and compare the results for the example networks
import unittest
from os.path import abspath, dirname, join
import pandas as pd
import pickle
testdir = dirname(abspath(str(__file__)))
test_datadir = join(testdir,'networks_for_testing')
ex_datadir =... | 40.040816 | 129 | 0.628695 | 1,131 | 7,848 | 4.241379 | 0.096375 | 0.04753 | 0.045028 | 0.041276 | 0.896602 | 0.896602 | 0.896602 | 0.89139 | 0.89139 | 0.89139 | 0 | 0.02828 | 0.225025 | 7,848 | 195 | 130 | 40.246154 | 0.760441 | 0.014908 | 0 | 0.863636 | 0 | 0 | 0.054341 | 0 | 0 | 0 | 0 | 0 | 0.097403 | 1 | 0.136364 | false | 0.019481 | 0.045455 | 0 | 0.201299 | 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 |
e9e52854b622fafefe3a77f55d5ee942baab76e6 | 6,606 | py | Python | mpesa_api/core/models.py | raccoongang/mpesa_api | 38e90a63b91df8f90079cf946864540c5d7610e0 | [
"MIT"
] | 1 | 2019-10-08T12:36:55.000Z | 2019-10-08T12:36:55.000Z | mpesa_api/core/models.py | raccoongang/mpesa_api | 38e90a63b91df8f90079cf946864540c5d7610e0 | [
"MIT"
] | 3 | 2020-02-12T02:53:13.000Z | 2021-06-10T22:18:28.000Z | mpesa_api/core/models.py | eugenewere/mpesa | 9f4b7d7381b54578a76a163ba764157476611e94 | [
"MIT"
] | 2 | 2020-11-04T08:10:19.000Z | 2020-11-06T08:32:54.000Z | from django.db import models
from mpesa_api.util.managers import AuthTokenManager
class AuthToken(models.Model):
"""Handles AuthTokens"""
access_token = models.CharField(max_length=40);
type = models.CharField(max_length=3)
expires_in = models.BigIntegerField()
objects = AuthTokenManager()
d... | 42.896104 | 100 | 0.730245 | 865 | 6,606 | 5.346821 | 0.137572 | 0.091459 | 0.132108 | 0.172757 | 0.814486 | 0.759135 | 0.747243 | 0.718919 | 0.718919 | 0.655135 | 0 | 0.020375 | 0.16046 | 6,606 | 153 | 101 | 43.176471 | 0.813559 | 0.02089 | 0 | 0.468468 | 0 | 0 | 0.034915 | 0.008924 | 0 | 0 | 0 | 0 | 0 | 1 | 0.063063 | false | 0 | 0.018018 | 0.063063 | 0.882883 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 8 |
1816a610504a45a4fb7a6e82fa5216f9a770f3b5 | 12,645 | py | Python | train.py | amysudarat/affective-monitor-model | 4de08704a3d36a0a228d5eeb9a33317be51f18fc | [
"MIT"
] | null | null | null | train.py | amysudarat/affective-monitor-model | 4de08704a3d36a0a228d5eeb9a33317be51f18fc | [
"MIT"
] | null | null | null | train.py | amysudarat/affective-monitor-model | 4de08704a3d36a0a228d5eeb9a33317be51f18fc | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
contains main loop for training
"""
import torch
import utils
import matplotlib.pyplot as plt
import numpy as np
import torch.nn as nn
from torch.utils.data.sampler import SubsetRandomSampler
from model.dataset_class import AffectiveMonitorDataset
from model.net_valence import myLSTM_valen... | 35.720339 | 114 | 0.529142 | 1,309 | 12,645 | 4.954163 | 0.161192 | 0.023747 | 0.01357 | 0.016037 | 0.88219 | 0.87633 | 0.858443 | 0.850424 | 0.839938 | 0.839938 | 0 | 0.018931 | 0.385923 | 12,645 | 353 | 115 | 35.82153 | 0.816227 | 0.238039 | 0 | 0.810811 | 0 | 0 | 0.027469 | 0.006815 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010811 | false | 0 | 0.048649 | 0 | 0.059459 | 0.010811 | 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 |
a15bd1bdc48f1ca1772690bb636f372c35794080 | 27,846 | py | Python | Pyfiles/circuits.py | rickyHong/Quantum_Machine_Learning_Express | ba5f57b3544b1c73b49eb251800459fc2394df2f | [
"MIT"
] | 14 | 2021-03-04T22:55:24.000Z | 2022-03-31T12:11:35.000Z | Pyfiles/circuits.py | rickyHong/Quantum_Machine_Learning_Express | ba5f57b3544b1c73b49eb251800459fc2394df2f | [
"MIT"
] | 15 | 2021-03-08T15:39:53.000Z | 2021-08-19T18:10:12.000Z | Pyfiles/circuits.py | rickyHong/Quantum_Machine_Learning_Express | ba5f57b3544b1c73b49eb251800459fc2394df2f | [
"MIT"
] | 9 | 2021-06-10T23:26:53.000Z | 2022-02-21T16:31:09.000Z | from qiskit import QuantumRegister, ClassicalRegister, QuantumCircuit
from math import pi
def circuit1(qc,qr,theta,L,repeat):
#circuit 1
#theta is list of the parameters
#theta length is 8L
#L is the number of repeatation
# repeat will conjugate the first part and add next the the circuit f... | 23.070423 | 90 | 0.436975 | 3,959 | 27,846 | 3.073503 | 0.022733 | 0.159435 | 0.191322 | 0.104701 | 0.976824 | 0.976824 | 0.944362 | 0.943787 | 0.942636 | 0.93335 | 0 | 0.047543 | 0.437262 | 27,846 | 1,206 | 91 | 23.089552 | 0.728973 | 0.133269 | 0 | 0.963072 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028065 | false | 0 | 0.002954 | 0 | 0.059084 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 8 |
a17fa38d402250ebd950e30b4811ebb553f4248d | 785 | py | Python | Task/Strip-block-comments/Python/strip-block-comments-2.py | LaudateCorpus1/RosettaCodeData | 9ad63ea473a958506c041077f1d810c0c7c8c18d | [
"Info-ZIP"
] | 1 | 2018-11-09T22:08:38.000Z | 2018-11-09T22:08:38.000Z | Task/Strip-block-comments/Python/strip-block-comments-2.py | seanwallawalla-forks/RosettaCodeData | 9ad63ea473a958506c041077f1d810c0c7c8c18d | [
"Info-ZIP"
] | null | null | null | Task/Strip-block-comments/Python/strip-block-comments-2.py | seanwallawalla-forks/RosettaCodeData | 9ad63ea473a958506c041077f1d810c0c7c8c18d | [
"Info-ZIP"
] | 1 | 2018-11-09T22:08:40.000Z | 2018-11-09T22:08:40.000Z | def test():
print('\nNON-NESTED BLOCK COMMENT EXAMPLE:')
sample = ''' /**
* Some comments
* longer comments here that we can parse.
*
* Rahoo
*/
function subroutine() {
a = /* inline comment */ b + c ;
}
/*/ <-- tricky comments */
/**
* Another comment.
*/
function s... | 18.690476 | 48 | 0.527389 | 71 | 785 | 5.71831 | 0.450704 | 0.059113 | 0.093596 | 0.123153 | 0.881773 | 0.881773 | 0.881773 | 0.881773 | 0.881773 | 0.881773 | 0 | 0 | 0.30828 | 785 | 41 | 49 | 19.146341 | 0.747698 | 0 | 0 | 0.736842 | 0 | 0 | 0.768153 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026316 | false | 0 | 0 | 0 | 0.026316 | 0.105263 | 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 |
a1a1eed799a6904a2b95cdc04e8a3861b07a61ca | 122,698 | py | Python | StocksMA/utils.py | mustaphaezzali/StocksMA | a6bac0fa1a2e454888b251ffa04c651a925fcec8 | [
"MIT"
] | 1 | 2022-03-27T21:25:19.000Z | 2022-03-27T21:25:19.000Z | StocksMA/utils.py | mustaphaezzali/StocksMA | a6bac0fa1a2e454888b251ffa04c651a925fcec8 | [
"MIT"
] | null | null | null | StocksMA/utils.py | mustaphaezzali/StocksMA | a6bac0fa1a2e454888b251ffa04c651a925fcec8 | [
"MIT"
] | null | null | null | import random
from functools import wraps
import requests
COMPANIES = {
"ADH": ["Douja Promotion Groupe Addoha", "Addoha P"],
"ADI": ["Alliances Developpement Immobilier S.A.", "Alliances P"],
"AFI": ["Afric Industries S.A.", "Afric Indus."],
"AFM": ["AFMA S.A.", "AFMA P"],
"AGM": ["Agma S.A.", "A... | 107.913808 | 244 | 0.687925 | 23,892 | 122,698 | 3.513142 | 0.034363 | 0.023947 | 0.102507 | 0.122844 | 0.938596 | 0.93638 | 0.931829 | 0.929375 | 0.919236 | 0.907596 | 0 | 0.22346 | 0.141005 | 122,698 | 1,136 | 245 | 108.008803 | 0.57292 | 0.005558 | 0 | 0 | 0 | 0.913998 | 0.917959 | 0.005455 | 0 | 0 | 0 | 0 | 0 | 1 | 0.004575 | false | 0 | 0.002745 | 0 | 0.011894 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
62969750df6302f572065c986fbe93eb6d15b774 | 4,654 | py | Python | linkml_runtime/utils/dataclass_extensions_376.py | joeflack4/linkml-runtime | 58443ff90da419404a77386e7aa790ece4b12354 | [
"CC0-1.0"
] | 1 | 2021-10-04T18:22:12.000Z | 2021-10-04T18:22:12.000Z | linkml_runtime/utils/dataclass_extensions_376.py | joeflack4/linkml-runtime | 58443ff90da419404a77386e7aa790ece4b12354 | [
"CC0-1.0"
] | 10 | 2021-06-16T20:48:32.000Z | 2021-10-04T18:22:02.000Z | linkml_runtime/utils/dataclass_extensions_376.py | joeflack4/linkml-runtime | 58443ff90da419404a77386e7aa790ece4b12354 | [
"CC0-1.0"
] | null | null | null | import sys
if sys.version_info < (3, 7, 0):
raise NotImplementedError("LinkML requires Python 3.7 or later to run")
elif sys.version_info >= (3, 7, 6):
from dataclasses import MISSING, _HAS_DEFAULT_FACTORY, _POST_INIT_NAME, _FIELD_INITVAR, _init_param, _field_init, _create_fn
def dataclasses_init_fn_with... | 43.092593 | 128 | 0.572841 | 582 | 4,654 | 4.340206 | 0.214777 | 0.049881 | 0.023753 | 0.047506 | 0.953286 | 0.940618 | 0.940618 | 0.940618 | 0.940618 | 0.940618 | 0 | 0.002642 | 0.349377 | 4,654 | 107 | 129 | 43.495327 | 0.831572 | 0.234852 | 0 | 0.735294 | 0 | 0 | 0.123799 | 0.025438 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029412 | false | 0.029412 | 0.044118 | 0 | 0.102941 | 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 |
1a280c7f9f7ee7a59624d63db8ace6327c3423a9 | 2,699 | py | Python | src/genie/libs/parser/iosxe/tests/ShowKeyChain/cli/equal/golden_output1_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | 204 | 2018-06-27T00:55:27.000Z | 2022-03-06T21:12:18.000Z | src/genie/libs/parser/iosxe/tests/ShowKeyChain/cli/equal/golden_output1_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | 468 | 2018-06-19T00:33:18.000Z | 2022-03-31T23:23:35.000Z | src/genie/libs/parser/iosxe/tests/ShowKeyChain/cli/equal/golden_output1_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | 309 | 2019-01-16T20:21:07.000Z | 2022-03-30T12:56:41.000Z | expected_output = {
"key_chains": {
"bla": {
"keys": {
1: {
"accept_lifetime": {
"end": "always valid",
"is_valid": True,
"start": "always valid",
},
... | 34.602564 | 59 | 0.272694 | 176 | 2,699 | 4.028409 | 0.227273 | 0.155148 | 0.124118 | 0.180536 | 0.815233 | 0.767278 | 0.726375 | 0.726375 | 0.726375 | 0.726375 | 0 | 0.09763 | 0.609114 | 2,699 | 77 | 60 | 35.051948 | 0.574408 | 0 | 0 | 0.597403 | 0 | 0 | 0.271212 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 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 | 8 |
a7e436d634e5f5f4304b94f97318200712487794 | 253 | py | Python | myCompany/dashboard/mixins/dashboard_mixin.py | Rom4eg/myCompany | 31846a861d8b0560191e2e1d9791f101b88874df | [
"MIT"
] | null | null | null | myCompany/dashboard/mixins/dashboard_mixin.py | Rom4eg/myCompany | 31846a861d8b0560191e2e1d9791f101b88874df | [
"MIT"
] | null | null | null | myCompany/dashboard/mixins/dashboard_mixin.py | Rom4eg/myCompany | 31846a861d8b0560191e2e1d9791f101b88874df | [
"MIT"
] | null | null | null |
class DashboardMixin(object):
def getTitle(self):
raise NotImplementedError("You must override this method in a child class.")
def getContent(self):
raise NotImplementedError("You must override this method in a child class.")
| 28.111111 | 84 | 0.715415 | 31 | 253 | 5.83871 | 0.548387 | 0.099448 | 0.309392 | 0.342541 | 0.729282 | 0.729282 | 0.729282 | 0.729282 | 0.729282 | 0.729282 | 0 | 0 | 0.209486 | 253 | 8 | 85 | 31.625 | 0.905 | 0 | 0 | 0.4 | 0 | 0 | 0.373016 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 10 |
3d6ee9d16266408c60d5523ae7c5cd8a92f11538 | 20,742 | py | Python | autograd/tests/test_trigo.py | pmaederyork/Dragrongrad | 32794d561f8d0273592ed55d315013eab2c24b8b | [
"MIT"
] | 3 | 2018-12-17T16:24:11.000Z | 2020-06-03T22:40:50.000Z | autograd/tests/test_trigo.py | cs207-project-group4/project-repo | d5ee88d2a7d16477d816d830ba90d241a05e3b48 | [
"MIT"
] | 2 | 2018-10-18T17:59:26.000Z | 2018-12-08T16:06:34.000Z | autograd/tests/test_trigo.py | cs207-project-group4/project-repo | d5ee88d2a7d16477d816d830ba90d241a05e3b48 | [
"MIT"
] | 1 | 2019-08-19T06:06:13.000Z | 2019-08-19T06:06:13.000Z | # -*- coding: utf-8 -*-
from autograd.blocks.trigo import sin
from autograd.blocks.trigo import cos
from autograd.blocks.trigo import tan
from autograd.blocks.trigo import arcsin
from autograd.blocks.trigo import arccos
from autograd.blocks.trigo import arctan
from autograd.variable import Variable
import numpy as np
i... | 46.093333 | 157 | 0.311494 | 1,337 | 20,742 | 4.670157 | 0.040389 | 0.069186 | 0.076874 | 0.065343 | 0.974856 | 0.946989 | 0.946989 | 0.946989 | 0.946989 | 0.946989 | 0 | 0.001847 | 0.086443 | 20,742 | 449 | 158 | 46.195991 | 0.327669 | 0.64285 | 0 | 0.852113 | 0 | 0 | 0.174621 | 0 | 0 | 1 | 0 | 0 | 0.169014 | 1 | 0.084507 | false | 0.169014 | 0.06338 | 0 | 0.147887 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 10 |
3d722ff1d8e11fc05c728a1ae851428b91b58d8c | 12,032 | py | Python | devel/lib/python2.7/dist-packages/interbotix_moveit_interface/srv/_MoveItPlan.py | Jam-cpu/Masters-Project---Final | 0b266b1f117a579b96507249f0a128d0e3cc082a | [
"BSD-3-Clause-Clear"
] | null | null | null | devel/lib/python2.7/dist-packages/interbotix_moveit_interface/srv/_MoveItPlan.py | Jam-cpu/Masters-Project---Final | 0b266b1f117a579b96507249f0a128d0e3cc082a | [
"BSD-3-Clause-Clear"
] | null | null | null | devel/lib/python2.7/dist-packages/interbotix_moveit_interface/srv/_MoveItPlan.py | Jam-cpu/Masters-Project---Final | 0b266b1f117a579b96507249f0a128d0e3cc082a | [
"BSD-3-Clause-Clear"
] | null | null | null | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from interbotix_moveit_interface/MoveItPlanRequest.msg. Do not edit."""
import codecs
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import geometry_msgs.msg
class MoveItPlanRequest(genpy.Me... | 35.916418 | 231 | 0.662982 | 1,690 | 12,032 | 4.532544 | 0.14142 | 0.031332 | 0.025587 | 0.037598 | 0.751175 | 0.749217 | 0.739948 | 0.720235 | 0.720235 | 0.720235 | 0 | 0.016601 | 0.203956 | 12,032 | 334 | 232 | 36.023952 | 0.783149 | 0.204205 | 0 | 0.704348 | 1 | 0.013043 | 0.263169 | 0.062057 | 0 | 0 | 0.002181 | 0 | 0 | 1 | 0.069565 | false | 0 | 0.043478 | 0 | 0.256522 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
3d8cfc5173ede3039c49f7714d04bd7cf9c80f07 | 15,840 | py | Python | run_all_trials.py | paul028/EE290_Localization_Project | 82562de4b1180b61b314fb2dc03a04ff6c1ad34c | [
"MIT"
] | null | null | null | run_all_trials.py | paul028/EE290_Localization_Project | 82562de4b1180b61b314fb2dc03a04ff6c1ad34c | [
"MIT"
] | null | null | null | run_all_trials.py | paul028/EE290_Localization_Project | 82562de4b1180b61b314fb2dc03a04ff6c1ad34c | [
"MIT"
] | null | null | null | import subprocess
import time
print("Opening")
#extra trees original
subprocess.call('python extratress.py --trial-name "ext" --pca 0 --sf 0 --oor 1',shell=True)
time.sleep(0.2)
subprocess.call('python extratress.py --trial-name "ext+PCA=44" --pca 44 --sf 0 --oor 1',shell=True)
time.sleep(0.2)
subprocess.call('python ... | 62.608696 | 157 | 0.70947 | 2,978 | 15,840 | 3.707858 | 0.013432 | 0.142003 | 0.202862 | 0.182576 | 0.991849 | 0.991849 | 0.991849 | 0.991849 | 0.991849 | 0.989132 | 0 | 0.083624 | 0.094066 | 15,840 | 253 | 158 | 62.608696 | 0.685854 | 0.003535 | 0 | 0.493392 | 0 | 0.475771 | 0.662252 | 0.060326 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.008811 | 0 | 0.008811 | 0.004405 | 0 | 0 | 0 | null | 0 | 1 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 11 |
9a78ae7472f71b7a2caa381b84cb0d09c35b7afe | 125 | py | Python | cadcad_machine_search/visualizations/__init__.py | cadCAD-org/cadCAD_machine_search | ed6a59162044d0808007fd7d9122474e7f547522 | [
"MIT"
] | 2 | 2021-05-03T10:46:54.000Z | 2021-06-07T00:12:48.000Z | cadcad_machine_search/visualizations/__init__.py | danlessa/cadCAD_machine_search | 3b8bf54672c7cc992cc00c0aa0ef73e82ba8d826 | [
"MIT"
] | null | null | null | cadcad_machine_search/visualizations/__init__.py | danlessa/cadCAD_machine_search | 3b8bf54672c7cc992cc00c0aa0ef73e82ba8d826 | [
"MIT"
] | 2 | 2021-02-10T22:32:38.000Z | 2021-05-27T21:17:06.000Z | from cadcad_machine_search.visualizations.sensitivity import *
from cadcad_machine_search.visualizations.goal_impact import * | 62.5 | 62 | 0.896 | 15 | 125 | 7.133333 | 0.6 | 0.186916 | 0.317757 | 0.429907 | 0.691589 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056 | 125 | 2 | 63 | 62.5 | 0.90678 | 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 |
9ad68e5f18b2f624a464315bbde2ca169fe0d2d3 | 104 | py | Python | odoo-13.0/addons/website_forum/tests/__init__.py | VaibhavBhujade/Blockchain-ERP-interoperability | b5190a037fb6615386f7cbad024d51b0abd4ba03 | [
"MIT"
] | null | null | null | odoo-13.0/addons/website_forum/tests/__init__.py | VaibhavBhujade/Blockchain-ERP-interoperability | b5190a037fb6615386f7cbad024d51b0abd4ba03 | [
"MIT"
] | null | null | null | odoo-13.0/addons/website_forum/tests/__init__.py | VaibhavBhujade/Blockchain-ERP-interoperability | b5190a037fb6615386f7cbad024d51b0abd4ba03 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from . import common
from . import test_forum
from . import test_forum_process
| 17.333333 | 32 | 0.711538 | 15 | 104 | 4.733333 | 0.6 | 0.422535 | 0.394366 | 0.535211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011628 | 0.173077 | 104 | 5 | 33 | 20.8 | 0.813953 | 0.201923 | 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 |
b1780c19c3247aa519affae582dca78c2af61f83 | 274 | py | Python | deepaccess/train/__init__.py | jhammelman/DeepAccessTransfer | 8ca978873e2fcb1b95d90902e3fb38e710027776 | [
"MIT"
] | 2 | 2021-08-16T18:34:59.000Z | 2022-02-19T16:05:21.000Z | deepaccess/train/__init__.py | jhammelman/DeepAccessTransfer | 8ca978873e2fcb1b95d90902e3fb38e710027776 | [
"MIT"
] | null | null | null | deepaccess/train/__init__.py | jhammelman/DeepAccessTransfer | 8ca978873e2fcb1b95d90902e3fb38e710027776 | [
"MIT"
] | 1 | 2021-05-26T21:54:53.000Z | 2021-05-26T21:54:53.000Z | from deepaccess.ensemble_utils import ensure_dir
from deepaccess.ensemble_utils import act_to_class
from deepaccess.ensemble_utils import fa_to_onehot
from deepaccess.interpret.importance_utils import *
from .CNN import *
from .DeepAccessModel import *
from .train import *
| 34.25 | 51 | 0.854015 | 38 | 274 | 5.921053 | 0.447368 | 0.248889 | 0.293333 | 0.36 | 0.44 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10219 | 274 | 7 | 52 | 39.142857 | 0.914634 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
491086975223980d12e9b84434ff1c3412423e26 | 4,105 | py | Python | locust/test/test_old_wait_api.py | ghoshben/locust | 4e515cc78b24a9d452ac1a8832b562ace7aed14e | [
"MIT"
] | 1 | 2020-01-13T03:18:29.000Z | 2020-01-13T03:18:29.000Z | locust/test/test_old_wait_api.py | ulshi/locust | 551d169c194070522c66dad1da67523c03087bc8 | [
"MIT"
] | 1 | 2020-03-06T11:12:34.000Z | 2020-03-06T11:12:34.000Z | locust/test/test_old_wait_api.py | ulshi/locust | 551d169c194070522c66dad1da67523c03087bc8 | [
"MIT"
] | 1 | 2020-03-06T11:02:00.000Z | 2020-03-06T11:02:00.000Z | import warnings
from locust import InterruptTaskSet, ResponseError
from locust.core import HttpLocust, Locust, TaskSet, events, task
from locust.exception import (CatchResponseError, LocustError, RescheduleTask,
RescheduleTaskImmediately)
from locust.wait_time import between, constant
fr... | 38.364486 | 78 | 0.5581 | 444 | 4,105 | 5.024775 | 0.144144 | 0.014343 | 0.022411 | 0.053788 | 0.754818 | 0.733303 | 0.723442 | 0.723442 | 0.723442 | 0.71896 | 0 | 0.023625 | 0.340073 | 4,105 | 106 | 79 | 38.726415 | 0.799926 | 0 | 0 | 0.778947 | 0 | 0 | 0.021924 | 0 | 0 | 0 | 0 | 0 | 0.294737 | 1 | 0.115789 | false | 0.063158 | 0.063158 | 0 | 0.326316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 7 |
492d7603cb63b6bf0f91bcc81aef452034356c74 | 6,031 | py | Python | pyduplicate/database/utils.py | Clement-O/python-duplicate | 4505076567a7cd8cc0904a6e0ca21f26c6c9dd2d | [
"MIT"
] | null | null | null | pyduplicate/database/utils.py | Clement-O/python-duplicate | 4505076567a7cd8cc0904a6e0ca21f26c6c9dd2d | [
"MIT"
] | 2 | 2019-10-19T05:58:13.000Z | 2020-01-19T19:31:52.000Z | pyduplicate/database/utils.py | Clement-O/python-duplicate | 4505076567a7cd8cc0904a6e0ca21f26c6c9dd2d | [
"MIT"
] | null | null | null | # noinspection SqlNoDataSourceInspection,SqlDialectInspection
class Postgres:
"""
Provides functions to query PostgreSQL
:param str table: Param to select the right table
:param str column: Param to search duplicate or unique on
"""
def __init__(self, table: str, column: str) -> None:
... | 34.861272 | 77 | 0.500912 | 737 | 6,031 | 4.033921 | 0.112619 | 0.12109 | 0.048436 | 0.075345 | 0.817693 | 0.817693 | 0.817693 | 0.805584 | 0.805584 | 0.75412 | 0 | 0.002117 | 0.373404 | 6,031 | 172 | 78 | 35.063953 | 0.784599 | 0.185044 | 0 | 0.84 | 0 | 0 | 0.415234 | 0.103373 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12 | false | 0 | 0 | 0 | 0.24 | 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 |
49584d3d702b5293e122a0381a876f33e0c587a5 | 40,759 | py | Python | pygbe/util/an_solution.py | ReneVelasquez18/PYGBE | ea0f875afc74e5c2b5f1fcea7b643a82acea171e | [
"BSD-3-Clause"
] | 36 | 2015-02-17T15:45:23.000Z | 2019-10-28T15:14:23.000Z | pygbe/util/an_solution.py | ReneVelasquez18/PYGBE | ea0f875afc74e5c2b5f1fcea7b643a82acea171e | [
"BSD-3-Clause"
] | 48 | 2016-02-04T22:50:36.000Z | 2019-06-25T17:01:06.000Z | pygbe/util/an_solution.py | ReneVelasquez18/PYGBE | ea0f875afc74e5c2b5f1fcea7b643a82acea171e | [
"BSD-3-Clause"
] | 26 | 2015-05-15T22:14:50.000Z | 2019-02-07T19:00:47.000Z | """
It contains the functions to compute the cases that presents an analytical
solutions.
All functions output the analytical solution in kcal/mol
"""
import numpy
from numpy import pi
from scipy import special, linalg
from scipy.misc import factorial
from math import gamma
def an_spherical(q, xq, E_1, E_2, E_0, R, N... | 33.85299 | 136 | 0.492799 | 6,050 | 40,759 | 3.270248 | 0.046942 | 0.04094 | 0.04559 | 0.049735 | 0.823149 | 0.800607 | 0.777761 | 0.752085 | 0.736871 | 0.715542 | 0 | 0.091962 | 0.35597 | 40,759 | 1,203 | 137 | 33.881131 | 0.661752 | 0.247749 | 0 | 0.734472 | 0 | 0 | 0.000578 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029503 | false | 0 | 0.007764 | 0 | 0.06677 | 0.004658 | 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 |
4971ece59a38785c935224d9014bca63d714eb89 | 137 | py | Python | build.py | DonaldMcRonald/SketchRecognitionWithTensorFlow | f712a8d78bce8af88365045116b27d56ec71dbec | [
"MIT"
] | 2 | 2016-05-12T18:30:39.000Z | 2016-05-17T14:03:38.000Z | build.py | DonaldMcRonald/SketchRecognitionWithTensorFlow | f712a8d78bce8af88365045116b27d56ec71dbec | [
"MIT"
] | 4 | 2016-05-14T22:53:49.000Z | 2016-05-14T23:40:40.000Z | build.py | DonaldMcRonald/SketchRecognitionWithTensorFlow | f712a8d78bce8af88365045116b27d56ec71dbec | [
"MIT"
] | null | null | null | from pybuilder.core import task
from pybuilder.core import init
@task
def say_hello (logger):
logger.info("Hello, PyBuilder")
| 19.571429 | 36 | 0.729927 | 19 | 137 | 5.210526 | 0.578947 | 0.262626 | 0.343434 | 0.464646 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.182482 | 137 | 6 | 37 | 22.833333 | 0.883929 | 0 | 0 | 0 | 0 | 0 | 0.122137 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
497fe6d1032e5044804a166628f6633b8ccdc39f | 49 | py | Python | desktop/core/ext-py/nose-1.3.7/unit_tests/test_isolation_plugin.py | kokosing/hue | 2307f5379a35aae9be871e836432e6f45138b3d9 | [
"Apache-2.0"
] | 5,079 | 2015-01-01T03:39:46.000Z | 2022-03-31T07:38:22.000Z | desktop/core/ext-py/nose-1.3.7/unit_tests/test_isolation_plugin.py | zks888/hue | 93a8c370713e70b216c428caa2f75185ef809deb | [
"Apache-2.0"
] | 1,623 | 2015-01-01T08:06:24.000Z | 2022-03-30T19:48:52.000Z | desktop/core/ext-py/nose-1.3.7/unit_tests/test_isolation_plugin.py | zks888/hue | 93a8c370713e70b216c428caa2f75185ef809deb | [
"Apache-2.0"
] | 2,033 | 2015-01-04T07:18:02.000Z | 2022-03-28T19:55:47.000Z | def test_lint():
import nose.plugins.isolate
| 16.333333 | 31 | 0.734694 | 7 | 49 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163265 | 49 | 2 | 32 | 24.5 | 0.853659 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0 | 0.5 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
b8f1e16fc4be8bec89d23e599d2e7d6bd5272604 | 3,998 | py | Python | tests/modules/teams/resources/test_getting_teams_info.py | IsmaelJS/test-github-actions | 97223df261e9736c46875f590c9593dbac0d417b | [
"MIT"
] | 1,420 | 2015-11-20T01:25:14.000Z | 2022-03-22T03:51:33.000Z | tests/modules/teams/resources/test_getting_teams_info.py | IsmaelJS/test-github-actions | 97223df261e9736c46875f590c9593dbac0d417b | [
"MIT"
] | 151 | 2016-01-07T09:11:42.000Z | 2020-11-17T08:37:07.000Z | tests/modules/teams/resources/test_getting_teams_info.py | IsmaelJS/test-github-actions | 97223df261e9736c46875f590c9593dbac0d417b | [
"MIT"
] | 389 | 2015-11-23T01:14:31.000Z | 2022-02-07T08:23:11.000Z | # encoding: utf-8
import pytest
@pytest.mark.parametrize('auth_scopes', (
None,
('teams:write', ),
))
def test_getting_list_of_teams_by_unauthorized_user_must_fail(
flask_app_client,
regular_user,
auth_scopes
):
with flask_app_client.login(regular_user, auth_scopes=auth_scopes):
... | 33.596639 | 95 | 0.694347 | 528 | 3,998 | 4.924242 | 0.125 | 0.114231 | 0.096923 | 0.096923 | 0.923462 | 0.923462 | 0.890769 | 0.890769 | 0.884615 | 0.85 | 0 | 0.00908 | 0.173587 | 3,998 | 118 | 96 | 33.881356 | 0.777845 | 0.003752 | 0 | 0.82 | 0 | 0 | 0.13062 | 0.01256 | 0 | 0 | 0 | 0 | 0.27 | 1 | 0.06 | false | 0 | 0.01 | 0 | 0.07 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.