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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c5375a61f70cf626edb6616015a200154696be87 | 12 | py | Python | hi.py | KINGDX/hellogit | 0ad2ed501a715d75207a93bdaa738d551721a295 | [
"Apache-2.0"
] | null | null | null | hi.py | KINGDX/hellogit | 0ad2ed501a715d75207a93bdaa738d551721a295 | [
"Apache-2.0"
] | null | null | null | hi.py | KINGDX/hellogit | 0ad2ed501a715d75207a93bdaa738d551721a295 | [
"Apache-2.0"
] | null | null | null | print('110') | 12 | 12 | 0.666667 | 2 | 12 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 0 | 12 | 1 | 12 | 12 | 0.416667 | 0 | 0 | 0 | 0 | 0 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 7 |
c55d40fa21ef854bc754abff15b93730c3e3cafb | 5,761 | py | Python | demos/Multiscale/amm_mechanism/model/parts/uniswap.py | w-ghub/demos | 6382676fae89bd5a190626612712fcedf17bca6d | [
"MIT"
] | 56 | 2020-07-08T23:23:15.000Z | 2022-03-11T20:43:09.000Z | demos/Multiscale/amm_mechanism/model/parts/uniswap.py | w-ghub/demos | 6382676fae89bd5a190626612712fcedf17bca6d | [
"MIT"
] | 41 | 2020-07-11T23:24:06.000Z | 2022-01-28T13:28:07.000Z | demos/Multiscale/amm_mechanism/model/parts/uniswap.py | w-ghub/demos | 6382676fae89bd5a190626612712fcedf17bca6d | [
"MIT"
] | 39 | 2020-07-15T11:35:04.000Z | 2022-02-01T16:02:51.000Z | import numpy as np
import pandas as pd
from .utils import *
from .agent_utils import *
# Mechanisms
def mechanismHub_Ri(params, substep, state_history, prev_state, policy_input):
"""
This function returns the approprate pool function to a given policy input:
- Ri_Purchase --> q_to_r_Ri
- Q_Purchase --> r_to_q_Ri
-... | 43.315789 | 104 | 0.716716 | 777 | 5,761 | 4.93565 | 0.078507 | 0.131943 | 0.11734 | 0.162973 | 0.854759 | 0.812516 | 0.808866 | 0.800261 | 0.790613 | 0.787484 | 0 | 0.000426 | 0.184343 | 5,761 | 133 | 105 | 43.315789 | 0.815705 | 0.265926 | 0 | 0.533333 | 0 | 0 | 0.09484 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.053333 | 0 | 0.386667 | 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 |
3db4c4a5a3d283966ab719935cc53b70d7bc8be9 | 69 | py | Python | principal.py | xLooKsx/ES-17-2 | 797878bc75bf81f9472e7218fc270d2478b5f3e5 | [
"Apache-2.0"
] | null | null | null | principal.py | xLooKsx/ES-17-2 | 797878bc75bf81f9472e7218fc270d2478b5f3e5 | [
"Apache-2.0"
] | null | null | null | principal.py | xLooKsx/ES-17-2 | 797878bc75bf81f9472e7218fc270d2478b5f3e5 | [
"Apache-2.0"
] | null | null | null | def somar(x, y):
return x+y
def subtrair(x, y):
return x-y
| 9.857143 | 19 | 0.565217 | 14 | 69 | 2.785714 | 0.428571 | 0.205128 | 0.410256 | 0.461538 | 0.512821 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.289855 | 69 | 6 | 20 | 11.5 | 0.795918 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 8 |
3dc31a1e758e081e99bdf8ee2f9823c260b76d75 | 4,337 | py | Python | tests/test_sync_file_lists.py | serge-m/ml-dataset-tools | 2dc07749e343b069283ec798355fac138312f8c0 | [
"MIT"
] | null | null | null | tests/test_sync_file_lists.py | serge-m/ml-dataset-tools | 2dc07749e343b069283ec798355fac138312f8c0 | [
"MIT"
] | null | null | null | tests/test_sync_file_lists.py | serge-m/ml-dataset-tools | 2dc07749e343b069283ec798355fac138312f8c0 | [
"MIT"
] | null | null | null | import ml_dataset_tools as mdt
import pytest
def test_simple():
sl = mdt.SyncFileLists({'images': ['i1', 'i2'], 'classes': ['c1', 'c2']})
assert list(sl['images']) == ['i1', 'i2']
assert list(sl['classes']) == ['c1', 'c2']
with pytest.raises(KeyError):
sl['non-existent']
def test_with_sele... | 31.656934 | 111 | 0.554761 | 514 | 4,337 | 4.61284 | 0.124514 | 0.242935 | 0.151835 | 0.179249 | 0.81822 | 0.80135 | 0.785323 | 0.767187 | 0.746942 | 0.746942 | 0 | 0.033234 | 0.222965 | 4,337 | 136 | 112 | 31.889706 | 0.670326 | 0 | 0 | 0.551402 | 0 | 0 | 0.128459 | 0 | 0 | 0 | 0 | 0 | 0.158879 | 1 | 0.065421 | false | 0 | 0.018692 | 0 | 0.084112 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
b10de32c98f5fe200b5b5e7cc4f4e438cd77aec9 | 7,883 | py | Python | test/test_util.py | sanjaymsh/javaproperties | 7ce3abfbbc4eadaa82f98e17542b6305679f87f3 | [
"MIT"
] | null | null | null | test/test_util.py | sanjaymsh/javaproperties | 7ce3abfbbc4eadaa82f98e17542b6305679f87f3 | [
"MIT"
] | null | null | null | test/test_util.py | sanjaymsh/javaproperties | 7ce3abfbbc4eadaa82f98e17542b6305679f87f3 | [
"MIT"
] | null | null | null | import pytest
from javaproperties.util import LinkedList, ascii_splitlines
def test_linkedlist_empty():
ll = LinkedList()
assert list(ll) == []
assert list(ll.iternodes()) == []
assert ll.start is None
assert ll.end is None
def test_linkedlist_one_elem():
ll = LinkedList()
n = ll.append(... | 28.356115 | 77 | 0.602055 | 1,343 | 7,883 | 3.453462 | 0.051378 | 0.117292 | 0.103493 | 0.137991 | 0.889608 | 0.860069 | 0.831608 | 0.803364 | 0.779431 | 0.749677 | 0 | 0.071647 | 0.254599 | 7,883 | 277 | 78 | 28.458484 | 0.717665 | 0 | 0 | 0.683206 | 0 | 0 | 0.050488 | 0.016745 | 0 | 0 | 0 | 0 | 0.645038 | 1 | 0.057252 | false | 0 | 0.007634 | 0 | 0.064886 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
b12240da5c5f86c9bb40816505e97798f84fcdd0 | 12 | py | Python | _draft/x_9_9.py | ofl/kuku2 | 7247fb1862d917d23258ebe7a93dca5939433225 | [
"MIT"
] | null | null | null | _draft/x_9_9.py | ofl/kuku2 | 7247fb1862d917d23258ebe7a93dca5939433225 | [
"MIT"
] | 1 | 2021-11-13T08:03:04.000Z | 2021-11-13T08:03:04.000Z | _draft/x_9_9.py | ofl/kuku2 | 7247fb1862d917d23258ebe7a93dca5939433225 | [
"MIT"
] | null | null | null | # x_9_9
#
#
| 3 | 7 | 0.416667 | 3 | 12 | 1 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 0.333333 | 12 | 3 | 8 | 4 | 0.125 | 0.416667 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
b1347d7d53394123fff0bf6cbafc6449ba856f29 | 7,514 | py | Python | scripts/part2/DetailPlacement.py | GeorgePap-719/Python_VLSI | d3d6e71e0a4e54571a8fa4b9ecbc2ffd48444f66 | [
"MIT"
] | 1 | 2021-06-14T17:35:44.000Z | 2021-06-14T17:35:44.000Z | scripts/part2/DetailPlacement.py | GeorgePap-719/Python_VLSI | d3d6e71e0a4e54571a8fa4b9ecbc2ffd48444f66 | [
"MIT"
] | 1 | 2021-06-19T08:59:15.000Z | 2021-06-19T08:59:15.000Z | scripts/part2/DetailPlacement.py | GeorgePap-719/Python_VLSI | d3d6e71e0a4e54571a8fa4b9ecbc2ffd48444f66 | [
"MIT"
] | 1 | 2021-06-14T17:35:46.000Z | 2021-06-14T17:35:46.000Z | import copy
from natsort import *
from scripts.classes.Net import total_calculate_net_wirelength
from scripts.classes.Node import Node
from scripts.part1.Legalization import legalizing_tetris_like_algo
# noinspection DuplicatedCode
def first_detailed_placement(node_list: list, row_list: list, net_list: list):
#... | 43.183908 | 96 | 0.601544 | 857 | 7,514 | 4.985998 | 0.131855 | 0.062251 | 0.072081 | 0.069506 | 0.840627 | 0.814182 | 0.806225 | 0.805289 | 0.805289 | 0.805289 | 0 | 0.010524 | 0.342427 | 7,514 | 173 | 97 | 43.433526 | 0.854281 | 0.15358 | 0 | 0.777778 | 0 | 0 | 0.01482 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051282 | false | 0 | 0.042735 | 0 | 0.128205 | 0.034188 | 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 |
b1402a1c9953fa83db4a881c9bd55608b495cbd0 | 27,954 | py | Python | tests/unit/benchmark/contexts/test_standalone.py | mythwm/yardstick-wm | 319ced11df92456b42c80cfd6e53c66dbd22a746 | [
"Apache-2.0"
] | 1 | 2019-12-08T21:57:31.000Z | 2019-12-08T21:57:31.000Z | tests/unit/benchmark/contexts/test_standalone.py | mythwm/yardstick-wm | 319ced11df92456b42c80cfd6e53c66dbd22a746 | [
"Apache-2.0"
] | null | null | null | tests/unit/benchmark/contexts/test_standalone.py | mythwm/yardstick-wm | 319ced11df92456b42c80cfd6e53c66dbd22a746 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# Copyright (c) 2016-2017 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by a... | 40.928258 | 99 | 0.559669 | 3,404 | 27,954 | 4.346357 | 0.071387 | 0.042176 | 0.134843 | 0.070632 | 0.879486 | 0.862386 | 0.834944 | 0.815275 | 0.79635 | 0.793309 | 0 | 0.081718 | 0.289511 | 27,954 | 682 | 100 | 40.98827 | 0.663209 | 0.024004 | 0 | 0.769103 | 0 | 0 | 0.237777 | 0.055859 | 0 | 0 | 0 | 0 | 0.068106 | 1 | 0.043189 | false | 0.036545 | 0.009967 | 0 | 0.066445 | 0.006645 | 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 |
b140d0680c2f0b19de85d7d847e8d3bc987f76b3 | 739 | py | Python | evaluate_policy.py | apo88/MEIRL_EV_python2 | bb6da0e3a6ab0c03162823a255bc7511766dce5b | [
"MIT"
] | null | null | null | evaluate_policy.py | apo88/MEIRL_EV_python2 | bb6da0e3a6ab0c03162823a255bc7511766dce5b | [
"MIT"
] | null | null | null | evaluate_policy.py | apo88/MEIRL_EV_python2 | bb6da0e3a6ab0c03162823a255bc7511766dce5b | [
"MIT"
] | null | null | null | import numpy as np
def change_dir(policy):
for pre_s in range(100):
if(policy[pre_s]==0):
print pre_s,'r'
elif(policy[pre_s]==1):
print pre_s,'l'
elif(policy[pre_s]==2):
print pre_s,'d'
elif(policy[pre_s]==3):
print pre_s,'u'
... | 26.392857 | 43 | 0.488498 | 115 | 739 | 2.947826 | 0.252174 | 0.235988 | 0.265487 | 0.20059 | 0.879056 | 0.855457 | 0.784661 | 0.648968 | 0.648968 | 0.20649 | 0 | 0.031646 | 0.358593 | 739 | 28 | 44 | 26.392857 | 0.683544 | 0 | 0 | 0.48 | 0 | 0 | 0.013514 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.04 | null | null | 0.4 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
b1518a28fb6731fe5240804b8d0bb83ccaea6917 | 112 | py | Python | apps/production/filters/__init__.py | kane-zh/MES_server | d8d28768a054eee6433e3900908afd331fd92281 | [
"Apache-2.0"
] | null | null | null | apps/production/filters/__init__.py | kane-zh/MES_server | d8d28768a054eee6433e3900908afd331fd92281 | [
"Apache-2.0"
] | null | null | null | apps/production/filters/__init__.py | kane-zh/MES_server | d8d28768a054eee6433e3900908afd331fd92281 | [
"Apache-2.0"
] | null | null | null | from apps.production.filters.basicinfor_filters import *
from apps.production.filters.recording_filters import * | 56 | 56 | 0.866071 | 14 | 112 | 6.785714 | 0.5 | 0.168421 | 0.378947 | 0.526316 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 112 | 2 | 57 | 56 | 0.904762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 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 |
b17ceb025d4dbb3f4565060c515202710f158e96 | 34,087 | py | Python | ursina/scripts/generate_normals.py | clayboone/ursina | 9aebd9403b924af260fbefbfd7cef5ad82feeff7 | [
"MIT"
] | 1 | 2020-09-04T14:32:33.000Z | 2020-09-04T14:32:33.000Z | ursina/scripts/generate_normals.py | clayboone/ursina | 9aebd9403b924af260fbefbfd7cef5ad82feeff7 | [
"MIT"
] | null | null | null | ursina/scripts/generate_normals.py | clayboone/ursina | 9aebd9403b924af260fbefbfd7cef5ad82feeff7 | [
"MIT"
] | 1 | 2020-09-04T14:32:41.000Z | 2020-09-04T14:32:41.000Z | # import numpy
def normalize_v3(arr):
''' Normalize a numpy array of 3 component vectors shape=(n,3) '''
import numpy
lens = numpy.sqrt( arr[:,0]**2 + arr[:,1]**2 + arr[:,2]**2 )
arr[:,0] /= lens
arr[:,1] /= lens
arr[:,2] /= lens
return arr
def generate_normals(vertices, triangles... | 324.638095 | 30,548 | 0.605656 | 6,264 | 34,087 | 3.29007 | 0.039432 | 0.044544 | 0.03712 | 0.010093 | 0.903683 | 0.90213 | 0.90213 | 0.846135 | 0.842545 | 0.788927 | 0 | 0.61623 | 0.113944 | 34,087 | 104 | 30,549 | 327.759615 | 0.066119 | 0.043682 | 0 | 0.04 | 0 | 0 | 0.000246 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.04 | 0 | 0.12 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
b1a404dbbeecbf269885e0ae34b8e905d6453dac | 24,913 | py | Python | msgraph-cli-extensions/v1_0/mail_v1_0/azext_mail_v1_0/vendored_sdks/mail/models/_mail_enums.py | thewahome/msgraph-cli | 33127d9efa23a0e5f5303c93242fbdbb73348671 | [
"MIT"
] | null | null | null | msgraph-cli-extensions/v1_0/mail_v1_0/azext_mail_v1_0/vendored_sdks/mail/models/_mail_enums.py | thewahome/msgraph-cli | 33127d9efa23a0e5f5303c93242fbdbb73348671 | [
"MIT"
] | 22 | 2022-03-29T22:54:37.000Z | 2022-03-29T22:55:27.000Z | msgraph-cli-extensions/v1_0/mail_v1_0/azext_mail_v1_0/vendored_sdks/mail/models/_mail_enums.py | thewahome/msgraph-cli | 33127d9efa23a0e5f5303c93242fbdbb73348671 | [
"MIT"
] | null | null | null | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | 32.737188 | 101 | 0.724 | 2,418 | 24,913 | 7.124069 | 0.117866 | 0.046035 | 0.125392 | 0.135841 | 0.880413 | 0.865436 | 0.862475 | 0.859747 | 0.859747 | 0.856496 | 0 | 0.004867 | 0.183559 | 24,913 | 760 | 102 | 32.780263 | 0.842035 | 0.028901 | 0 | 0.836276 | 0 | 0 | 0.275269 | 0.0686 | 0 | 0 | 0 | 0 | 0 | 1 | 0.00321 | false | 0 | 0.017657 | 0.001605 | 1.009631 | 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 |
491b84a620d34ef5280874f413a686f1ddf5f2d7 | 40,232 | py | Python | src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyNumber/autorestnumbertestservice/operations/number_operations.py | fhoering/autorest | b36c77ebb6a5c92aca72eea0894a683506af5817 | [
"MIT"
] | null | null | null | src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyNumber/autorestnumbertestservice/operations/number_operations.py | fhoering/autorest | b36c77ebb6a5c92aca72eea0894a683506af5817 | [
"MIT"
] | null | null | null | src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyNumber/autorestnumbertestservice/operations/number_operations.py | fhoering/autorest | b36c77ebb6a5c92aca72eea0894a683506af5817 | [
"MIT"
] | null | null | null | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | 36.475068 | 90 | 0.653137 | 4,035 | 40,232 | 6.345725 | 0.033209 | 0.04874 | 0.043117 | 0.029682 | 0.972193 | 0.972193 | 0.972193 | 0.971802 | 0.971802 | 0.969967 | 0 | 0.018431 | 0.262328 | 40,232 | 1,102 | 91 | 36.508167 | 0.844329 | 0.362498 | 0 | 0.918919 | 0 | 0 | 0.081984 | 0.029926 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056306 | false | 0 | 0.004505 | 0 | 0.148649 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
4933ad1ce8bb461bbc6e954df40a7372943a5c18 | 2,950 | py | Python | todo/views.py | masashimorita/django-todo-api | ab60904eac5cbb777982156cc9f99b333e1c2946 | [
"MIT"
] | null | null | null | todo/views.py | masashimorita/django-todo-api | ab60904eac5cbb777982156cc9f99b333e1c2946 | [
"MIT"
] | null | null | null | todo/views.py | masashimorita/django-todo-api | ab60904eac5cbb777982156cc9f99b333e1c2946 | [
"MIT"
] | null | null | null | from rest_framework import generics
from rest_framework.authentication import TokenAuthentication
from rest_framework.permissions import IsAuthenticated
from core.models import TodoList, TodoTask
from todo import serializers
class TodoListView(generics.ListCreateAPIView):
"""List and Create TodoList"""
authen... | 35.97561 | 77 | 0.70678 | 315 | 2,950 | 6.466667 | 0.190476 | 0.051055 | 0.051546 | 0.065292 | 0.782032 | 0.74325 | 0.706922 | 0.706922 | 0.667649 | 0.667649 | 0 | 0 | 0.195254 | 2,950 | 81 | 78 | 36.419753 | 0.858045 | 0.147119 | 0 | 0.716981 | 0 | 0 | 0.025255 | 0 | 0 | 0 | 0 | 0.012346 | 0 | 1 | 0.150943 | false | 0 | 0.09434 | 0 | 0.735849 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 7 |
4951302e622b419b9ff234eb4c043722062a086e | 126,222 | py | Python | tests/test_trial.py | ecs-vlc/torchbearer | 9d97c60ec4deb37a0627311ddecb9c6f1429cd82 | [
"MIT"
] | 358 | 2018-07-23T13:30:38.000Z | 2019-06-02T07:18:35.000Z | tests/test_trial.py | jonhare/torchbearer | ea5f2d57bccb35c493e9c18992bc6fc645a5b2f0 | [
"MIT"
] | 307 | 2018-07-18T12:07:23.000Z | 2019-06-03T18:00:27.000Z | tests/test_trial.py | jonhare/torchbearer | ea5f2d57bccb35c493e9c18992bc6fc645a5b2f0 | [
"MIT"
] | 42 | 2018-07-23T22:49:23.000Z | 2019-05-20T07:22:55.000Z | from unittest import TestCase
from mock import MagicMock, Mock, patch, ANY, create_autospec
import torch
from torch.utils.data import DataLoader
import torchbearer
import torchbearer.callbacks as callbacks
from torchbearer import Trial, State
from torchbearer.metrics import Metric
from torchbearer.trial import deep_t... | 42.961879 | 364 | 0.664543 | 13,849 | 126,222 | 5.832912 | 0.022673 | 0.037584 | 0.023397 | 0.041594 | 0.916415 | 0.896076 | 0.877049 | 0.860423 | 0.84256 | 0.817863 | 0 | 0.013279 | 0.218995 | 126,222 | 2,937 | 365 | 42.976507 | 0.806157 | 0.000998 | 0 | 0.745902 | 0 | 0.000431 | 0.026696 | 0.012594 | 0 | 0 | 0 | 0 | 0.139776 | 1 | 0.077653 | false | 0.04918 | 0.004745 | 0.00302 | 0.100949 | 0.015099 | 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 |
49628921775ee8074ab0fded16b671754b5b178a | 20,111 | py | Python | raiden_contracts/tests/test_channel_withdraw.py | agatsoh/raiden-contracts | 7e26e693063633e9a1bd27981995bb252c5d1b51 | [
"MIT"
] | null | null | null | raiden_contracts/tests/test_channel_withdraw.py | agatsoh/raiden-contracts | 7e26e693063633e9a1bd27981995bb252c5d1b51 | [
"MIT"
] | 44 | 2021-07-29T07:14:22.000Z | 2022-03-29T07:15:41.000Z | raiden_contracts/tests/test_channel_withdraw.py | agatsoh/raiden-contracts | 7e26e693063633e9a1bd27981995bb252c5d1b51 | [
"MIT"
] | null | null | null | from typing import Callable
import pytest
from eth_tester.exceptions import TransactionFailed
from web3 import Web3
from web3.contract import Contract
from web3.exceptions import ValidationError
from raiden_contracts.constants import (
EMPTY_ADDRESS,
TEST_SETTLE_TIMEOUT_MIN,
ChannelEvent,
ChannelState... | 31.922222 | 93 | 0.651285 | 2,237 | 20,111 | 5.47072 | 0.075548 | 0.108351 | 0.060059 | 0.034319 | 0.844174 | 0.813777 | 0.794166 | 0.772757 | 0.751348 | 0.721115 | 0 | 0.01888 | 0.273084 | 20,111 | 629 | 94 | 31.972973 | 0.81825 | 0.046343 | 0 | 0.744954 | 0 | 0 | 0.005222 | 0 | 0 | 0 | 0.000157 | 0 | 0.011009 | 1 | 0.016514 | false | 0 | 0.018349 | 0 | 0.034862 | 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 |
b8ce530ff11e8c4aac8cf994a6bf305f8ac8250e | 572 | py | Python | python/phonenumbers/data/alt_format_372.py | vishnuku/python-phonenumbers | 6ac2cdd06b7ccf709a8efb21629cf2c5f030e627 | [
"Apache-2.0"
] | 7 | 2019-05-20T09:57:02.000Z | 2020-01-10T05:30:48.000Z | python/phonenumbers/data/alt_format_372.py | carljm/python-phonenumbers | 494044aaf75443dbfd62b8d1352b441af6a458ae | [
"Apache-2.0"
] | 5 | 2020-03-24T16:37:25.000Z | 2021-06-10T21:24:54.000Z | python/phonenumbers/data/alt_format_372.py | carljm/python-phonenumbers | 494044aaf75443dbfd62b8d1352b441af6a458ae | [
"Apache-2.0"
] | 1 | 2020-09-08T14:45:34.000Z | 2020-09-08T14:45:34.000Z | """Auto-generated file, do not edit by hand. 372 metadata"""
from ..phonemetadata import NumberFormat
PHONE_ALT_FORMAT_372 = [NumberFormat(pattern='(\\d)(\\d{3})(\\d{3})', format='\\1 \\2 \\3', leading_digits_pattern=['6']), NumberFormat(pattern='(\\d{2})(\\d{2})(\\d{3})', format='\\1 \\2 \\3', leading_digits_pattern=... | 114.4 | 468 | 0.56993 | 109 | 572 | 2.908257 | 0.330275 | 0.025237 | 0.189274 | 0.085174 | 0.615142 | 0.476341 | 0.476341 | 0.476341 | 0.476341 | 0.37224 | 0 | 0.155268 | 0.054196 | 572 | 4 | 469 | 143 | 0.430684 | 0.094406 | 0 | 0 | 1 | 1 | 0.482422 | 0.416016 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 8 |
b8dc9a3bcec960197eeae2b926f8922047260a74 | 160 | py | Python | app/requests.py | mightyking7/Smartcar-app | 17066b1f18c216555f9b58c92cc700097262aa5e | [
"MIT"
] | null | null | null | app/requests.py | mightyking7/Smartcar-app | 17066b1f18c216555f9b58c92cc700097262aa5e | [
"MIT"
] | null | null | null | app/requests.py | mightyking7/Smartcar-app | 17066b1f18c216555f9b58c92cc700097262aa5e | [
"MIT"
] | null | null | null | import smartcar
# todo
# response = smartcar.get_vehicle_ids(access_token)
#
# vid = response['vehicles'][0]
#
# vehicle = smartcar.Vehicle(vid, access_token) | 17.777778 | 51 | 0.7375 | 20 | 160 | 5.7 | 0.6 | 0.192982 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007143 | 0.125 | 160 | 9 | 52 | 17.777778 | 0.807143 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
b8eb605acec316c6c3a52fa3f15a0ff1503c972b | 10,768 | py | Python | allauthdemo/demo/models.py | ranamahmud/sust-doc | 30b24254a116a0399283ff8a2ef9a698ad07247f | [
"MIT"
] | null | null | null | allauthdemo/demo/models.py | ranamahmud/sust-doc | 30b24254a116a0399283ff8a2ef9a698ad07247f | [
"MIT"
] | 12 | 2020-02-11T23:45:18.000Z | 2022-03-11T23:16:57.000Z | allauthdemo/demo/models.py | ranamahmud/sust-doc | 30b24254a116a0399283ff8a2ef9a698ad07247f | [
"MIT"
] | null | null | null | from django.db import models
from django.utils import timezone
class LibraryFine(models.Model):
G_CHOICES = (('1','Male'),('2','Female'))
user = models.ForeignKey('allauthdemo_auth.DemoUser',related_name='library_fines')
date = models.DateTimeField(default=timezone.now)
gender = models.CharField(... | 47.22807 | 101 | 0.709695 | 1,395 | 10,768 | 5.296057 | 0.106093 | 0.068219 | 0.098538 | 0.128858 | 0.902545 | 0.854494 | 0.785869 | 0.775853 | 0.763806 | 0.763806 | 0 | 0.023783 | 0.164376 | 10,768 | 228 | 102 | 47.22807 | 0.797288 | 0.034361 | 0 | 0.52907 | 0 | 0 | 0.032668 | 0.016864 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040698 | false | 0 | 0.011628 | 0 | 0.837209 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 7 |
b8ecebe06612f4492edb736cb99f175643428c94 | 50,125 | py | Python | tests/decompilation_tests.py | s3rvac/retdec-python | 6360ecba75fae5420de2bf2ba63cf8a8c0e0c7cc | [
"MIT"
] | 102 | 2015-02-08T20:00:43.000Z | 2022-02-06T20:34:24.000Z | tests/decompilation_tests.py | s3rvac/retdec-python | 6360ecba75fae5420de2bf2ba63cf8a8c0e0c7cc | [
"MIT"
] | 5 | 2016-08-02T04:46:29.000Z | 2018-10-11T06:08:32.000Z | tests/decompilation_tests.py | s3rvac/retdec-python | 6360ecba75fae5420de2bf2ba63cf8a8c0e0c7cc | [
"MIT"
] | 24 | 2015-04-08T13:27:54.000Z | 2020-12-07T21:22:23.000Z | #
# Project: retdec-python
# Copyright: (c) 2015 by Petr Zemek <s3rvac@gmail.com> and contributors
# License: MIT, see the LICENSE file for more details
#
"""Tests for the :mod:`retdec.decompilation` module."""
import functools
import unittest
from retdec.decompilation import Decompilation
from retdec.decompilat... | 33.573342 | 96 | 0.584758 | 5,235 | 50,125 | 5.222541 | 0.042598 | 0.049159 | 0.062546 | 0.075713 | 0.907535 | 0.88921 | 0.879846 | 0.854901 | 0.845757 | 0.84049 | 0 | 0.00301 | 0.317426 | 50,125 | 1,492 | 97 | 33.595845 | 0.796078 | 0.033756 | 0 | 0.715728 | 0 | 0 | 0.08785 | 0.003332 | 0 | 0 | 0 | 0 | 0.101766 | 1 | 0.098402 | false | 0.000841 | 0.011775 | 0 | 0.12111 | 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 |
7701940aba0fd8da40efc330d31d1d3175dedc70 | 7,839 | py | Python | week4/task1_1.py | mcv-m6-video/mcv-m6-2018-team6 | 8d374468713683b10e01d81c06cf2dcc1aa2e229 | [
"MIT"
] | null | null | null | week4/task1_1.py | mcv-m6-video/mcv-m6-2018-team6 | 8d374468713683b10e01d81c06cf2dcc1aa2e229 | [
"MIT"
] | null | null | null | week4/task1_1.py | mcv-m6-video/mcv-m6-2018-team6 | 8d374468713683b10e01d81c06cf2dcc1aa2e229 | [
"MIT"
] | null | null | null | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Fri Mar 16 20:43:17 2018
@author: ferran
"""
from __future__ import division
import sys
import datetime
import imageio
import math
import task1
import matplotlib.pyplot as plt
import numpy as np
import time
from skimage import morphology
import cv2
import o... | 35.152466 | 154 | 0.732364 | 1,416 | 7,839 | 3.870763 | 0.127825 | 0.103448 | 0.140485 | 0.145047 | 0.825579 | 0.815545 | 0.787265 | 0.78617 | 0.78617 | 0.767196 | 0 | 0.064151 | 0.097206 | 7,839 | 222 | 155 | 35.310811 | 0.710329 | 0.4447 | 0 | 0.512 | 0 | 0 | 0.189988 | 0.097735 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.192 | null | null | 0.056 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
771e47f16c487cf8dad83475a04b023e2630d6e1 | 84,751 | py | Python | pybmrb/Spectra.py | uwbmrb/PyBMRB | 0b1a94ca0cd54d8800f6a41ad0492005b49b1cbc | [
"MIT"
] | 6 | 2020-02-14T13:47:36.000Z | 2021-08-01T09:42:28.000Z | pybmrb/Spectra.py | uwbmrb/PyBMRB | 0b1a94ca0cd54d8800f6a41ad0492005b49b1cbc | [
"MIT"
] | 2 | 2019-01-15T16:31:31.000Z | 2019-01-16T16:02:59.000Z | pybmrb/Spectra.py | uwbmrb/PyBMRB | 0b1a94ca0cd54d8800f6a41ad0492005b49b1cbc | [
"MIT"
] | 4 | 2016-01-19T16:52:15.000Z | 2021-02-24T04:08:52.000Z | #!/usr/bin/env python3
"""
This module is used to visualize the one dimensional chemical shift list from BMRB entry or NMR-STAR file as a
two dimensional NMR spectrum. It simulates peak positions of \u00b9\u2075N-HSQC, \u00b9\u00b3C-HSQC and
\u00b9H-\u00b9H-TOCSY. It can also simulate a generic 2D spectrum between any... | 53.002502 | 119 | 0.537374 | 10,502 | 84,751 | 4.141497 | 0.041706 | 0.022256 | 0.027038 | 0.013519 | 0.920817 | 0.912057 | 0.902653 | 0.89794 | 0.893526 | 0.885249 | 0 | 0.024778 | 0.345223 | 84,751 | 1,598 | 120 | 53.03567 | 0.758997 | 0.355441 | 0 | 0.798097 | 0 | 0 | 0.109258 | 0.007772 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010571 | false | 0.002114 | 0.006342 | 0 | 0.027484 | 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 |
622f64bd979697518c0da8793b5d41153355f353 | 12,781 | py | Python | test/gst-vaapi/encode/hevc.py | wangzj0601/vaapi-fits | df3188dc6624492ba941e4d0e74c2a0ffdf36759 | [
"BSD-3-Clause"
] | null | null | null | test/gst-vaapi/encode/hevc.py | wangzj0601/vaapi-fits | df3188dc6624492ba941e4d0e74c2a0ffdf36759 | [
"BSD-3-Clause"
] | null | null | null | test/gst-vaapi/encode/hevc.py | wangzj0601/vaapi-fits | df3188dc6624492ba941e4d0e74c2a0ffdf36759 | [
"BSD-3-Clause"
] | null | null | null | ###
### Copyright (C) 2018-2019 Intel Corporation
###
### SPDX-License-Identifier: BSD-3-Clause
###
from ....lib import *
from ..util import *
spec8 = load_test_spec("hevc", "encode", "8bit")
spec10 = load_test_spec("hevc", "encode", "10bit")
def check_psnr(params):
call(
"gst-launch-1.0 -vf filesrc location={... | 40.318612 | 85 | 0.640873 | 1,470 | 12,781 | 5.432653 | 0.106803 | 0.048835 | 0.063862 | 0.075131 | 0.928876 | 0.919985 | 0.919985 | 0.919985 | 0.919985 | 0.895066 | 0 | 0.024007 | 0.123308 | 12,781 | 316 | 86 | 40.446203 | 0.68871 | 0.104217 | 0 | 0.801724 | 0 | 0.021552 | 0.362806 | 0.131794 | 0 | 0 | 0 | 0 | 0.012931 | 1 | 0.034483 | false | 0 | 0.008621 | 0 | 0.043103 | 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 |
6234b7d963c205902ef642a1c8dce294cc61a8a0 | 27,097 | py | Python | logdiv/divanalysis/temporal.py | pedroramaciotti/diversity-patterns | 82b48d87b9e8d35e6651243d3cbff0400ec9a58a | [
"MIT"
] | null | null | null | logdiv/divanalysis/temporal.py | pedroramaciotti/diversity-patterns | 82b48d87b9e8d35e6651243d3cbff0400ec9a58a | [
"MIT"
] | null | null | null | logdiv/divanalysis/temporal.py | pedroramaciotti/diversity-patterns | 82b48d87b9e8d35e6651243d3cbff0400ec9a58a | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
import time as timelib
import matplotlib.pyplot as plt
# local modules
from . import function
def temporal_analysis(weblog, session_data, classification_column, temporal_analysis_weblog_start, temporal_analysis_weblog_end,\
group_names, weblog_column_... | 54.085828 | 220 | 0.678488 | 3,584 | 27,097 | 4.822824 | 0.072266 | 0.061556 | 0.038183 | 0.042175 | 0.913682 | 0.899219 | 0.871276 | 0.856292 | 0.841539 | 0.807579 | 0 | 0.016423 | 0.20899 | 27,097 | 500 | 221 | 54.194 | 0.790007 | 0.12566 | 0 | 0.702941 | 0 | 0 | 0.128799 | 0.033318 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014706 | false | 0 | 0.020588 | 0 | 0.044118 | 0.029412 | 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 |
6284164f9c865c641ea83ca4a0ed75ac6e015017 | 7,235 | py | Python | tests/testproject/tests.py | ataylor32/django-friendly-tag-loader | 00b91090172433b04f90c850bb1edeed1a262abf | [
"MIT"
] | 3 | 2019-12-24T06:52:51.000Z | 2020-09-01T12:00:38.000Z | tests/testproject/tests.py | ataylor32/django-friendly-tag-loader | 00b91090172433b04f90c850bb1edeed1a262abf | [
"MIT"
] | null | null | null | tests/testproject/tests.py | ataylor32/django-friendly-tag-loader | 00b91090172433b04f90c850bb1edeed1a262abf | [
"MIT"
] | null | null | null | from django.template import Template, TemplateSyntaxError
from django.template.base import Lexer, Parser
from django.template.context import Context
from django.template.engine import Engine
from django.test import TestCase
engine = Engine.get_default()
def _render_template(template):
return Template(template).r... | 36.913265 | 94 | 0.618245 | 741 | 7,235 | 5.703104 | 0.095816 | 0.045433 | 0.083294 | 0.119262 | 0.858258 | 0.840274 | 0.840274 | 0.829389 | 0.797444 | 0.788452 | 0 | 0 | 0.274223 | 7,235 | 195 | 95 | 37.102564 | 0.804799 | 0 | 0 | 0.723926 | 0 | 0 | 0.324257 | 0 | 0 | 0 | 0 | 0 | 0.147239 | 1 | 0.147239 | false | 0 | 0.030675 | 0.006135 | 0.208589 | 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 |
655b2e11a10dd45a37985b924ad412f1335c05b0 | 6,923 | py | Python | test_parser.py | L3viathan/sql-mojo-parser | fc460c42f3fbcc21c6fc08c0aede8e2a5db637f3 | [
"MIT"
] | null | null | null | test_parser.py | L3viathan/sql-mojo-parser | fc460c42f3fbcc21c6fc08c0aede8e2a5db637f3 | [
"MIT"
] | null | null | null | test_parser.py | L3viathan/sql-mojo-parser | fc460c42f3fbcc21c6fc08c0aede8e2a5db637f3 | [
"MIT"
] | null | null | null | import pytest
from sql_mojo_parser import yacc
@pytest.mark.parametrize(
"string,result",
[
(
"select foo from bar",
{
"type": "select",
"columns": [
{"type": "name", "value": "foo"},
],
"table"... | 32.050926 | 72 | 0.197747 | 332 | 6,923 | 4.105422 | 0.141566 | 0.129127 | 0.209831 | 0.117388 | 0.774028 | 0.774028 | 0.753485 | 0.753485 | 0.703595 | 0.639765 | 0 | 0.010008 | 0.653618 | 6,923 | 215 | 73 | 32.2 | 0.558382 | 0 | 0 | 0.597156 | 0 | 0 | 0.178391 | 0 | 0 | 0 | 0 | 0 | 0.004739 | 1 | 0.009479 | false | 0 | 0.009479 | 0 | 0.018957 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 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 | 7 |
6570cacc644b09160c9cccb448928435559d6ccf | 10,208 | py | Python | src/genie/libs/parser/iosxr/tests/ShowInterfacesDetail/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/iosxr/tests/ShowInterfacesDetail/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/iosxr/tests/ShowInterfacesDetail/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 = {
"GigabitEthernet0/0/0/0": {
"auto_negotiate": False,
"bandwidth": 768,
"carrier_delay": "10",
"counters": {
"carrier_transitions": 0,
"in_abort": 0,
"in_broadcast_pkts": 0,
"in_crc_errors": 0,
"in_discard... | 31.409231 | 84 | 0.44808 | 996 | 10,208 | 4.299197 | 0.149598 | 0.045539 | 0.026156 | 0.022419 | 0.818076 | 0.8078 | 0.754787 | 0.750117 | 0.712284 | 0.712284 | 0 | 0.081711 | 0.390968 | 10,208 | 324 | 85 | 31.506173 | 0.607045 | 0 | 0 | 0.777778 | 0 | 0 | 0.425255 | 0.015674 | 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 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
65bc2062cb79ee81e9d1a1d15d25a90e64138525 | 16,673 | py | Python | operations/assets/migrations/0001_initial.py | kaizer88/emps | 2669b32c46befcf1a19390fb25013817e6b00980 | [
"MIT"
] | null | null | null | operations/assets/migrations/0001_initial.py | kaizer88/emps | 2669b32c46befcf1a19390fb25013817e6b00980 | [
"MIT"
] | null | null | null | operations/assets/migrations/0001_initial.py | kaizer88/emps | 2669b32c46befcf1a19390fb25013817e6b00980 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2018-09-18 07:07
from __future__ import unicode_literals
from django.conf import settings
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
import lib.fields
class Migration(migrations.Migration):
initi... | 81.331707 | 331 | 0.644395 | 1,828 | 16,673 | 5.685449 | 0.088074 | 0.057731 | 0.057731 | 0.069277 | 0.917156 | 0.91629 | 0.900125 | 0.891081 | 0.867026 | 0.867026 | 0 | 0.011624 | 0.200264 | 16,673 | 204 | 332 | 81.730392 | 0.767812 | 0.004078 | 0 | 0.734694 | 1 | 0 | 0.185701 | 0.021202 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.030612 | 0 | 0.05102 | 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 |
65d2f235f7f13bafe49da415e9482735d9269ee7 | 496 | py | Python | diagnostic_classifiers/dataset_readers/__init__.py | maayanorner/lexcomp | 4bcd033c7483b1aa09ee569238180502858caa21 | [
"Apache-2.0"
] | 28 | 2019-02-28T10:00:28.000Z | 2021-06-28T16:41:27.000Z | diagnostic_classifiers/dataset_readers/__init__.py | maayanorner/lexcomp | 4bcd033c7483b1aa09ee569238180502858caa21 | [
"Apache-2.0"
] | null | null | null | diagnostic_classifiers/dataset_readers/__init__.py | maayanorner/lexcomp | 4bcd033c7483b1aa09ee569238180502858caa21 | [
"Apache-2.0"
] | 6 | 2019-02-28T11:58:28.000Z | 2021-10-17T19:58:58.000Z | from diagnostic_classifiers.dataset_readers.sequence_labeling_dataset_reader import SeqLabelReader
from diagnostic_classifiers.dataset_readers.sentence_word_dataset_reader import SentenceWordDatasetReader
from diagnostic_classifiers.dataset_readers.sentence_and_span_classification_dataset_reader import SentenceSpanClas... | 99.2 | 151 | 0.951613 | 48 | 496 | 9.333333 | 0.375 | 0.125 | 0.223214 | 0.285714 | 0.401786 | 0.314732 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032258 | 496 | 4 | 152 | 124 | 0.933333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
02e9ff772736c6ce673ea4fe35d68f3a20a82550 | 8 | py | Python | tests/res/dicts/get/20/q/40.py | ssato/python-anyconfig | 09af1950f3226759932f5168d52f5e06ab88815c | [
"MIT"
] | 213 | 2015-01-14T22:09:20.000Z | 2022-02-02T17:23:41.000Z | tests/res/dicts/get/20/q/40.py | ssato/python-anyconfig | 09af1950f3226759932f5168d52f5e06ab88815c | [
"MIT"
] | 120 | 2015-03-13T15:47:43.000Z | 2022-03-31T01:55:34.000Z | tests/res/dicts/get/20/q/40.py | ssato/python-anyconfig | 09af1950f3226759932f5168d52f5e06ab88815c | [
"MIT"
] | 34 | 2015-01-12T05:03:30.000Z | 2021-09-09T14:40:56.000Z | "/a~1b"
| 4 | 7 | 0.375 | 2 | 8 | 1.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 0.125 | 8 | 1 | 8 | 8 | 0.285714 | 0.625 | 0 | 0 | 0 | 0 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
f303773be53181a7cddb99c264bbc0c1cbc78125 | 38 | py | Python | encryption/__init__.py | trishantpahwa/PasswordProtectPDF | a2f167a7e93f7470bb336bf2773f2f3d1c241fbd | [
"BSD-2-Clause"
] | null | null | null | encryption/__init__.py | trishantpahwa/PasswordProtectPDF | a2f167a7e93f7470bb336bf2773f2f3d1c241fbd | [
"BSD-2-Clause"
] | null | null | null | encryption/__init__.py | trishantpahwa/PasswordProtectPDF | a2f167a7e93f7470bb336bf2773f2f3d1c241fbd | [
"BSD-2-Clause"
] | null | null | null | from .encrypt_file import add_password | 38 | 38 | 0.894737 | 6 | 38 | 5.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078947 | 38 | 1 | 38 | 38 | 0.914286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 1 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 7 |
b82a41e59a18d8a6811dbe9f25583aacd35a67b2 | 15,540 | py | Python | tests/adspygoogle/dfp/forecast_service_unittest.py | krux/adspygoogle | 6505a71122f45fe3e675f27f2c29f67a1768069b | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | tests/adspygoogle/dfp/forecast_service_unittest.py | krux/adspygoogle | 6505a71122f45fe3e675f27f2c29f67a1768069b | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | tests/adspygoogle/dfp/forecast_service_unittest.py | krux/adspygoogle | 6505a71122f45fe3e675f27f2c29f67a1768069b | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python
# -*- coding: UTF-8 -*-
#
# Copyright 2011 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2... | 31.204819 | 74 | 0.489511 | 1,296 | 15,540 | 5.58642 | 0.19213 | 0.067127 | 0.01547 | 0.031492 | 0.83826 | 0.816713 | 0.799171 | 0.752486 | 0.752486 | 0.752486 | 0 | 0.039216 | 0.37973 | 15,540 | 497 | 75 | 31.267606 | 0.7119 | 0.039189 | 0 | 0.736111 | 0 | 0 | 0.176108 | 0.001611 | 0 | 0 | 0 | 0 | 0.009259 | 0 | null | null | 0 | 0.030093 | null | null | 0.00463 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
b8327c09f7ab967ffe40fd75a1b79952360c3e09 | 3,906 | py | Python | tests/tools/assigner/actions/fixtures.py | akashvacher/kafka-tools | 0d98bbefc1105851b7b7203de4f6c68d9c097730 | [
"Apache-2.0"
] | 578 | 2016-05-05T05:18:15.000Z | 2022-03-23T07:18:07.000Z | tests/tools/assigner/actions/fixtures.py | akashvacher/kafka-tools | 0d98bbefc1105851b7b7203de4f6c68d9c097730 | [
"Apache-2.0"
] | 94 | 2016-04-29T23:25:38.000Z | 2022-02-07T17:16:16.000Z | tests/tools/assigner/actions/fixtures.py | akashvacher/kafka-tools | 0d98bbefc1105851b7b7203de4f6c68d9c097730 | [
"Apache-2.0"
] | 150 | 2016-04-29T16:33:20.000Z | 2022-03-14T10:05:48.000Z | import argparse
from kafka.tools.models.broker import Broker
from kafka.tools.models.cluster import Cluster
from kafka.tools.models.topic import Topic
def set_up_cluster():
cluster = Cluster()
cluster.retention = 100000
cluster.add_broker(Broker("brokerhost1.example.com", id=1))
cluster.add_broker(Br... | 44.386364 | 109 | 0.727343 | 505 | 3,906 | 5.524752 | 0.106931 | 0.190681 | 0.217921 | 0.298208 | 0.812545 | 0.783154 | 0.753047 | 0.724373 | 0.722939 | 0.697491 | 0 | 0.038473 | 0.128264 | 3,906 | 87 | 110 | 44.896552 | 0.78091 | 0 | 0 | 0.625 | 0 | 0 | 0.111111 | 0.03533 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0375 | false | 0 | 0.05 | 0 | 0.125 | 0 | 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 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
b833bc5aeda68b987fbe29bb93a64775d2442494 | 886,096 | py | Python | output-python3/sdpParser.py | cameronelliott/sdp-antlr-abnf | 58240fc806906daefc1844d33f088d007f0119a7 | [
"MIT"
] | 4 | 2020-08-08T19:04:11.000Z | 2020-10-15T17:41:57.000Z | output-python3/sdpParser.py | cameron-elliott/sdp-antlr-abnf | 58240fc806906daefc1844d33f088d007f0119a7 | [
"MIT"
] | null | null | null | output-python3/sdpParser.py | cameron-elliott/sdp-antlr-abnf | 58240fc806906daefc1844d33f088d007f0119a7 | [
"MIT"
] | null | null | null | # Generated from sdp.g4 by ANTLR 4.8
# encoding: utf-8
from antlr4 import *
from io import StringIO
import sys
if sys.version_info[1] > 5:
from typing import TextIO
else:
from typing.io import TextIO
def serializedATN():
with StringIO() as buf:
buf.write("\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u59... | 42.223196 | 8,656 | 0.565411 | 111,008 | 886,096 | 4.393764 | 0.041898 | 0.093758 | 0.067646 | 0.101469 | 0.809037 | 0.787179 | 0.744486 | 0.73258 | 0.712035 | 0.676364 | 0 | 0.107819 | 0.295189 | 886,096 | 20,985 | 8,657 | 42.225208 | 0.673157 | 0.001298 | 0 | 0.679893 | 1 | 0.071135 | 0.080851 | 0.069533 | 0 | 0 | 0.000683 | 0 | 0 | 1 | 0.188551 | false | 0.018438 | 0.000311 | 0.110315 | 0.4184 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 9 |
b8449076f33968461dacc13c448d0e534b33d06e | 7,533 | py | Python | tests/flow/test_flow.py | xiongma/bert2tf | 105fd1524edb703bf68aec8fde289de5923e1f78 | [
"Apache-2.0"
] | 7 | 2021-08-05T16:35:08.000Z | 2022-01-04T03:26:10.000Z | tests/flow/test_flow.py | xiongma/bert2tf | 105fd1524edb703bf68aec8fde289de5923e1f78 | [
"Apache-2.0"
] | 96 | 2021-08-06T08:32:09.000Z | 2022-01-21T11:07:25.000Z | tests/flow/test_flow.py | xiongma/bert2tf | 105fd1524edb703bf68aec8fde289de5923e1f78 | [
"Apache-2.0"
] | null | null | null | import unittest
from bert2tf import Flow
from tests import Bert2TFTestCase
class MyTestCase(Bert2TFTestCase):
def test_create_flow(self):
Flow()
Flow().add(use='BaseExecutor', name='a1', replicas=1, timeout_ready=600000)
def test_build_flow_with_customize(self):
flow = (Flow()
... | 40.069149 | 117 | 0.49157 | 774 | 7,533 | 4.630491 | 0.147287 | 0.125558 | 0.100446 | 0.133929 | 0.847935 | 0.820033 | 0.799944 | 0.796596 | 0.789063 | 0.708984 | 0 | 0.06166 | 0.377804 | 7,533 | 187 | 118 | 40.283422 | 0.703008 | 0 | 0 | 0.736196 | 0 | 0 | 0.152263 | 0.072879 | 0 | 0 | 0 | 0 | 0.184049 | 1 | 0.06135 | false | 0.02454 | 0.02454 | 0 | 0.092025 | 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 |
b846f6b6b3ab31f3d7ae643f6fbc4b73f46c21a6 | 10,373 | py | Python | upsampling/data_reuse.py | icolbert/upsampling | 9c16ac54897376f24af76c544600bf8c0dac3e71 | [
"MIT"
] | 4 | 2021-07-22T02:37:07.000Z | 2022-03-27T15:16:33.000Z | upsampling/data_reuse.py | icolbert/upsampling | 9c16ac54897376f24af76c544600bf8c0dac3e71 | [
"MIT"
] | null | null | null | upsampling/data_reuse.py | icolbert/upsampling | 9c16ac54897376f24af76c544600bf8c0dac3e71 | [
"MIT"
] | null | null | null | import numpy as np
def ceil(x:int, y:int) -> int:
return int(np.ceil(x / y))
def sub_pixel_convolution_data_reuse_patterns(upsampling_factor, height, in_channels, kernel_size, return_total:bool = True, width:int = None):
"""
input:
upsampling_factor:int - the upsampling factor
height:int ... | 49.631579 | 163 | 0.654584 | 1,445 | 10,373 | 4.532872 | 0.058131 | 0.224733 | 0.110229 | 0.091603 | 0.956336 | 0.956336 | 0.956336 | 0.956336 | 0.952061 | 0.922137 | 0 | 0.015072 | 0.245252 | 10,373 | 209 | 164 | 49.631579 | 0.821561 | 0.359009 | 0 | 0.791209 | 0 | 0 | 0.042245 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.087912 | false | 0 | 0.010989 | 0.010989 | 0.263736 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
b8a00c01a141e3b9277595ea84c1048d5c98ec98 | 14,664 | py | Python | accessories.py | randyrollofson/happy-hippos | ac5a54e967fbd7d757b73ec47727067572c12597 | [
"MIT"
] | null | null | null | accessories.py | randyrollofson/happy-hippos | ac5a54e967fbd7d757b73ec47727067572c12597 | [
"MIT"
] | null | null | null | accessories.py | randyrollofson/happy-hippos | ac5a54e967fbd7d757b73ec47727067572c12597 | [
"MIT"
] | null | null | null | import colors
xx = colors.xx
ol = colors.ol
wh = colors.ey
gr = colors.gr
ye = colors.ye
r1 = colors.r1
r2 = colors.r2
r3 = colors.r3
sunglasses = [
[xx, xx, xx, xx, xx, xx, xx, xx, xx, xx, xx, xx, xx, xx, xx, xx, xx, xx, xx, xx, xx, xx, xx, xx, xx, xx, xx, xx, xx, xx, xx, xx, xx, xx],
[xx, xx, xx, xx, xx, x... | 120.196721 | 141 | 0.480906 | 3,497 | 14,664 | 2.016586 | 0.004003 | 1.900737 | 2.828134 | 3.744753 | 0.980715 | 0.97958 | 0.97958 | 0.97958 | 0.97958 | 0.977879 | 0 | 0.003257 | 0.267185 | 14,664 | 122 | 142 | 120.196721 | 0.652987 | 0 | 0 | 0.760684 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.008547 | 0 | 0.008547 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 11 |
b8a32229f9c9502e684a21620aded91f4c3fdc75 | 2,588 | py | Python | classy/migrations/0023_auto_20180306_1103.py | Krocodial/DSC | 91063b06b536e732e655ce7f1ad0b7c2caa61e0d | [
"Apache-2.0"
] | null | null | null | classy/migrations/0023_auto_20180306_1103.py | Krocodial/DSC | 91063b06b536e732e655ce7f1ad0b7c2caa61e0d | [
"Apache-2.0"
] | null | null | null | classy/migrations/0023_auto_20180306_1103.py | Krocodial/DSC | 91063b06b536e732e655ce7f1ad0b7c2caa61e0d | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.0.1 on 2018-03-06 19:03
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('classy', '0022_auto_20180306_1100'),
]
operations = [
migrations.AlterField(
model_name='classification',
name='colu... | 32.759494 | 62 | 0.57728 | 241 | 2,588 | 6.008299 | 0.207469 | 0.174033 | 0.224448 | 0.260359 | 0.867403 | 0.847376 | 0.81768 | 0.81768 | 0.706492 | 0.660221 | 0 | 0.033708 | 0.31221 | 2,588 | 78 | 63 | 33.179487 | 0.779775 | 0.017388 | 0 | 0.805556 | 1 | 0 | 0.15978 | 0.075954 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.013889 | 0 | 0.055556 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
b8a8d95d5f169a6dc3b50749f94572862b12fafd | 29,261 | py | Python | Core/Support/Mailer.py | Lucksi/Titanium | c2e3c6f2d1107ca94d5f280713f86d052024cf4a | [
"Apache-2.0"
] | 16 | 2021-04-17T08:32:50.000Z | 2022-02-20T21:22:20.000Z | Core/Support/Mailer.py | Lucksi/Titanium | c2e3c6f2d1107ca94d5f280713f86d052024cf4a | [
"Apache-2.0"
] | null | null | null | Core/Support/Mailer.py | Lucksi/Titanium | c2e3c6f2d1107ca94d5f280713f86d052024cf4a | [
"Apache-2.0"
] | 3 | 2021-11-09T12:48:30.000Z | 2022-02-27T23:11:27.000Z | import smtplib
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
from Core.Support import Font
from time import sleep
import os
class Sender:
@staticmethod
def instagram_template(email, password, vict_email, username, links):
print(Font.Color.GREEN + "[+]" + Font... | 57.828063 | 825 | 0.570555 | 3,361 | 29,261 | 4.942874 | 0.11812 | 0.01228 | 0.009029 | 0.03738 | 0.89743 | 0.887618 | 0.884428 | 0.876422 | 0.870222 | 0.867513 | 0 | 0.061221 | 0.268719 | 29,261 | 505 | 826 | 57.942574 | 0.714973 | 0.004033 | 0 | 0.907598 | 0 | 0.160164 | 0.813588 | 0.268358 | 0.00616 | 0 | 0 | 0 | 0 | 1 | 0.014374 | false | 0.024641 | 0.01232 | 0 | 0.028747 | 0.045175 | 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 |
b222f169502dae47fd24379c48a6f7e1bc9a994b | 93,666 | py | Python | src/main.py | LinWeizheDragon/AutoFidgetDetection | 8a0d0fcc8938c2c9e97655e999e226c61f414cfe | [
"MIT"
] | 3 | 2021-02-04T03:36:04.000Z | 2021-11-29T13:59:25.000Z | src/main.py | LinWeizheDragon/AutoFidgetDetection | 8a0d0fcc8938c2c9e97655e999e226c61f414cfe | [
"MIT"
] | 1 | 2021-09-15T23:17:40.000Z | 2021-09-16T01:24:40.000Z | src/main.py | LinWeizheDragon/AutoFidgetDetection | 8a0d0fcc8938c2c9e97655e999e226c61f414cfe | [
"MIT"
] | null | null | null | from utility.base_config import *
from pprint import pprint
import os
import json
import cv2
import math
import random
import numpy as np
import pandas as pd
import pickle
from scipy.signal import savgol_filter
from scipy import stats
from sklearn.model_selection import train_test_split
from sklearn.metrics import cla... | 45.162006 | 191 | 0.558132 | 11,060 | 93,666 | 4.386166 | 0.037884 | 0.035662 | 0.0141 | 0.015667 | 0.890973 | 0.862938 | 0.845643 | 0.823689 | 0.808518 | 0.786461 | 0 | 0.024098 | 0.338095 | 93,666 | 2,074 | 192 | 45.162006 | 0.758363 | 0.110969 | 0 | 0.753758 | 0 | 0 | 0.054426 | 0.012576 | 0 | 0 | 0.000097 | 0.000482 | 0.002863 | 1 | 0.013601 | false | 0.000716 | 0.024338 | 0.003579 | 0.045812 | 0.083751 | 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 |
b2813e1128436e9fb6ef30e9a644477057aa372c | 103,382 | py | Python | alembic/versions/fe33bf7f5c52_create_ericsson_2g_default_tables_for_.py | bodastage/bts-database | 96df7915621dd46daf55016eedf5cfc84dd0e3a2 | [
"Apache-2.0"
] | 1 | 2019-08-30T01:20:14.000Z | 2019-08-30T01:20:14.000Z | alembic/versions/fe33bf7f5c52_create_ericsson_2g_default_tables_for_.py | bodastage/bts-database | 96df7915621dd46daf55016eedf5cfc84dd0e3a2 | [
"Apache-2.0"
] | 1 | 2018-05-30T09:29:24.000Z | 2018-05-30T10:04:37.000Z | alembic/versions/fe33bf7f5c52_create_ericsson_2g_default_tables_for_.py | bodastage/bts-database | 96df7915621dd46daf55016eedf5cfc84dd0e3a2 | [
"Apache-2.0"
] | 3 | 2018-03-10T23:29:30.000Z | 2019-02-19T22:11:09.000Z | """Create Ericsson 2G default tables for cnaiv2
Revision ID: fe33bf7f5c52
Revises: 34b2f24951a8
Create Date: 2018-02-07 03:35:07.119000
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql
# revision identifiers, used by Alembic.
revision = 'fe33bf7f5c52'
down_revision = '34b... | 81.467297 | 96 | 0.729411 | 13,677 | 103,382 | 5.481319 | 0.070776 | 0.126988 | 0.412709 | 0.476203 | 0.913737 | 0.913737 | 0.911669 | 0.908761 | 0.903425 | 0.903425 | 0 | 0.041717 | 0.095491 | 103,382 | 1,268 | 97 | 81.531546 | 0.759994 | 0.001673 | 0 | 0.284462 | 0 | 0 | 0.111724 | 0.000814 | 0 | 0 | 0 | 0 | 0 | 1 | 0.001594 | false | 0 | 0.00239 | 0 | 0.003984 | 0 | 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 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
b28531cf649d2aff4e9fe096a0d19ab4cd82f388 | 2,191 | py | Python | appengine/src/greenday_api/videocomment/containers.py | meedan/montage | 4da0116931edc9af91f226876330645837dc9bcc | [
"Apache-2.0"
] | 6 | 2018-07-31T16:48:07.000Z | 2020-02-01T03:17:51.000Z | appengine/src/greenday_api/videocomment/containers.py | meedan/montage | 4da0116931edc9af91f226876330645837dc9bcc | [
"Apache-2.0"
] | 41 | 2018-08-07T16:43:07.000Z | 2020-06-05T18:54:50.000Z | appengine/src/greenday_api/videocomment/containers.py | meedan/montage | 4da0116931edc9af91f226876330645837dc9bcc | [
"Apache-2.0"
] | 1 | 2018-08-07T16:40:18.000Z | 2018-08-07T16:40:18.000Z | """
Request data containers for video comment API
"""
import endpoints
from protorpc import messages as api_messages
from .messages import (
VideoCommentRequestMessage, VideoCommentReplyMessage
)
CreateVideoRootCommentContainer = endpoints.ResourceContainer(
VideoCommentRequestMessage,
project_id=api... | 32.701493 | 63 | 0.770881 | 228 | 2,191 | 7.171053 | 0.153509 | 0.235474 | 0.15107 | 0.198777 | 0.794495 | 0.794495 | 0.794495 | 0.794495 | 0.794495 | 0.794495 | 0 | 0.024038 | 0.145596 | 2,191 | 66 | 64 | 33.19697 | 0.849359 | 0.020539 | 0 | 0.672727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.054545 | 0 | 0.054545 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
b2ada88a8fdd9b0b7caf243e814569b7026c4d48 | 42,334 | py | Python | sdk/python/pulumi_azure/network/firewall_policy.py | roderik/pulumi-azure | f6d0c058d6f9111a709bc5f1515d1638f9d615f0 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure/network/firewall_policy.py | roderik/pulumi-azure | f6d0c058d6f9111a709bc5f1515d1638f9d615f0 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure/network/firewall_policy.py | roderik/pulumi-azure | f6d0c058d6f9111a709bc5f1515d1638f9d615f0 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import... | 50.578256 | 205 | 0.680351 | 4,834 | 42,334 | 5.756103 | 0.046752 | 0.092902 | 0.086038 | 0.040323 | 0.923235 | 0.907601 | 0.892111 | 0.885786 | 0.882947 | 0.875184 | 0 | 0.002086 | 0.21876 | 42,334 | 836 | 206 | 50.638756 | 0.839234 | 0.327515 | 0 | 0.815574 | 1 | 0 | 0.15532 | 0.091829 | 0 | 0 | 0 | 0 | 0 | 1 | 0.165984 | false | 0.002049 | 0.014344 | 0 | 0.280738 | 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 |
a27d98c43302ada34f88315457728ed4d06fc256 | 2,061 | py | Python | config/dev.py | a1136395507/Blog | e890dbe24bd2c3a82dad55e90f717db59a3e51a1 | [
"Unlicense"
] | null | null | null | config/dev.py | a1136395507/Blog | e890dbe24bd2c3a82dad55e90f717db59a3e51a1 | [
"Unlicense"
] | null | null | null | config/dev.py | a1136395507/Blog | e890dbe24bd2c3a82dad55e90f717db59a3e51a1 | [
"Unlicense"
] | null | null | null | import pymysql
from dbutils.pooled_db import PooledDB
class DBINFO_MYSQL:
pass
class DBINFO_REDIS:
pass
class DB_USER_INFO_MYSQL:
PYMYSQL_POOL = PooledDB(
creator=pymysql, # 使用链接数据库的模块
maxconnections=15, # 连接池允许的最大连接数,0和None表示不限制连接数
mincached=0, # 初始化时,链接池中至少创建的空闲的链接,0表示不创建
... | 37.472727 | 165 | 0.655992 | 223 | 2,061 | 5.982063 | 0.434978 | 0.014993 | 0.023988 | 0.035982 | 0.85907 | 0.85907 | 0.85907 | 0.85907 | 0.85907 | 0.769115 | 0 | 0.039566 | 0.239689 | 2,061 | 54 | 166 | 38.166667 | 0.811742 | 0.477923 | 0 | 0.714286 | 0 | 0 | 0.108262 | 0.039886 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.095238 | 0.047619 | 0 | 0.190476 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 8 |
a28f28fc7f3ca3117e6ebb0eb36ad19e955cb7e0 | 1,308 | py | Python | equal_sides_of_an_array/test_equal_sides_of_an_array.py | guilhermegouw/codewars | 8ad98bb661c9b47b9d9683df07cd9672ff80731c | [
"MIT"
] | null | null | null | equal_sides_of_an_array/test_equal_sides_of_an_array.py | guilhermegouw/codewars | 8ad98bb661c9b47b9d9683df07cd9672ff80731c | [
"MIT"
] | null | null | null | equal_sides_of_an_array/test_equal_sides_of_an_array.py | guilhermegouw/codewars | 8ad98bb661c9b47b9d9683df07cd9672ff80731c | [
"MIT"
] | null | null | null | """
test.assert_equals(find_even_index([1,2,3,4,3,2,1]),3)
test.assert_equals(find_even_index([1,100,50,-51,1,1]),1,)
test.assert_equals(find_even_index([1,2,3,4,5,6]),-1)
test.assert_equals(find_even_index([20,10,30,10,10,15,35]),3)
test.assert_equals(find_even_index([20,10,-80,10,10,15,35]),0)
test.assert_equals(find... | 48.444444 | 104 | 0.664373 | 265 | 1,308 | 3.056604 | 0.154717 | 0.217284 | 0.353086 | 0.246914 | 0.871605 | 0.85679 | 0.814815 | 0.795062 | 0.62716 | 0.580247 | 0 | 0.164788 | 0.118502 | 1,308 | 26 | 105 | 50.307692 | 0.537728 | 0.490826 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.833333 | 1 | 0.083333 | true | 0 | 0.083333 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 1 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
a2d7595a68a2830e2373a25fd14af57fb8772651 | 6,694 | py | Python | tests/test_syntax.py | Edward-Knight/rich | b0a68d3341fb0eaa47be20facf54c4646375572b | [
"MIT"
] | null | null | null | tests/test_syntax.py | Edward-Knight/rich | b0a68d3341fb0eaa47be20facf54c4646375572b | [
"MIT"
] | null | null | null | tests/test_syntax.py | Edward-Knight/rich | b0a68d3341fb0eaa47be20facf54c4646375572b | [
"MIT"
] | null | null | null | # coding=utf-8
import sys
import os, tempfile
import pytest
from .render import render
from rich.panel import Panel
from rich.style import Style
from rich.syntax import Syntax, ANSISyntaxTheme
CODE = '''
def loop_first_last(values: Iterable[T]) -> Iterable[Tuple[bool, bool, T]]:
"""Iterate and generate a tuple... | 70.463158 | 4,286 | 0.609202 | 1,423 | 6,694 | 2.934645 | 0.1026 | 0.061063 | 0.122126 | 0.18319 | 0.750479 | 0.736111 | 0.734195 | 0.734195 | 0.734195 | 0.734195 | 0 | 0.338144 | 0.161488 | 6,694 | 94 | 4,287 | 71.212766 | 0.378764 | 0.001793 | 0 | 0.423077 | 0 | 0.012821 | 0.738174 | 0.572605 | 0 | 0 | 0 | 0 | 0.089744 | 1 | 0.051282 | false | 0 | 0.141026 | 0 | 0.205128 | 0.038462 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 11 |
0c31f5f5f21753b4eb5bd64a0178f841259a8e80 | 10,868 | py | Python | tests/core/tests/authorization.py | SeanHayes/django-tastypie | a9e5b614b5e9d4b4d570b10a2154f8d2dd547a7a | [
"BSD-3-Clause"
] | 1 | 2015-11-08T11:42:07.000Z | 2015-11-08T11:42:07.000Z | tests/core/tests/authorization.py | SeanHayes/django-tastypie | a9e5b614b5e9d4b4d570b10a2154f8d2dd547a7a | [
"BSD-3-Clause"
] | null | null | null | tests/core/tests/authorization.py | SeanHayes/django-tastypie | a9e5b614b5e9d4b4d570b10a2154f8d2dd547a7a | [
"BSD-3-Clause"
] | 1 | 2019-09-29T04:13:39.000Z | 2019-09-29T04:13:39.000Z | from django.test import TestCase
from django.http import HttpRequest
from django.contrib.auth.models import User, Permission
from core.models import Note
from tastypie.authorization import Authorization, ReadOnlyAuthorization, DjangoAuthorization
from tastypie.exceptions import Unauthorized
from tastypie import fields
... | 45.095436 | 114 | 0.715219 | 1,293 | 10,868 | 5.836814 | 0.070379 | 0.156751 | 0.126143 | 0.155824 | 0.846297 | 0.838081 | 0.816483 | 0.797668 | 0.786273 | 0.766795 | 0 | 0.006207 | 0.169856 | 10,868 | 240 | 115 | 45.283333 | 0.830304 | 0.012974 | 0 | 0.777143 | 0 | 0 | 0.0208 | 0 | 0 | 0 | 0 | 0 | 0.325714 | 1 | 0.045714 | false | 0 | 0.045714 | 0 | 0.177143 | 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 |
0c3c57809d2e495b6adaade17e0d37d8fa7a4047 | 8,098 | py | Python | satchless/contrib/pricing/simpleqty/tests.py | bartels/satchless | 4d333014333dc4fd5815f9e0bbea565959919a30 | [
"BSD-4-Clause"
] | 1 | 2015-11-05T10:26:46.000Z | 2015-11-05T10:26:46.000Z | satchless/contrib/pricing/simpleqty/tests.py | bartels/satchless | 4d333014333dc4fd5815f9e0bbea565959919a30 | [
"BSD-4-Clause"
] | null | null | null | satchless/contrib/pricing/simpleqty/tests.py | bartels/satchless | 4d333014333dc4fd5815f9e0bbea565959919a30 | [
"BSD-4-Clause"
] | null | null | null | from django.db import models
from django.test import TestCase
from ....cart.tests.app import MockCart
from ....pricing import Price
from ....pricing.handler import PricingQueue
from ....product.models import Product, Variant
from . import SimpleQtyPricingHandler
from .models import ProductPriceMixin, VariantPriceOffse... | 47.081395 | 84 | 0.591998 | 929 | 8,098 | 4.838536 | 0.092573 | 0.080089 | 0.053838 | 0.05495 | 0.833815 | 0.832258 | 0.796885 | 0.796885 | 0.768854 | 0.768854 | 0 | 0.016099 | 0.332675 | 8,098 | 171 | 85 | 47.356725 | 0.815692 | 0.066436 | 0 | 0.727273 | 0 | 0 | 0.019746 | 0 | 0 | 0 | 0 | 0 | 0.115702 | 1 | 0.057851 | false | 0 | 0.066116 | 0 | 0.190083 | 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 |
0c5faa1f76539acb7021410ad9fcbed0fc8276b1 | 21,022 | py | Python | modeflip/data/dev/sophia.py | lmcgnlzt/modeflip | 415e9441561fe0ba40544b8313d912dd65c93981 | [
"Apache-2.0"
] | null | null | null | modeflip/data/dev/sophia.py | lmcgnlzt/modeflip | 415e9441561fe0ba40544b8313d912dd65c93981 | [
"Apache-2.0"
] | null | null | null | modeflip/data/dev/sophia.py | lmcgnlzt/modeflip | 415e9441561fe0ba40544b8313d912dd65c93981 | [
"Apache-2.0"
] | null | null | null | #coding=utf-8
import os.path
import random
from datetime import datetime
from modeflip.utils.config import get_configuration
from modeflip.utils.mongo import MongoManager
from modeflip.models.designer import *
from modeflip.models.collection import *
from modeflip.models.garment import *
local_config = get_confi... | 46.406181 | 243 | 0.753496 | 2,480 | 21,022 | 6.279435 | 0.12621 | 0.125217 | 0.175303 | 0.226032 | 0.789957 | 0.776023 | 0.731715 | 0.7138 | 0.696847 | 0.652861 | 0 | 0.020132 | 0.095043 | 21,022 | 453 | 244 | 46.406181 | 0.798413 | 0.077348 | 0 | 0.172956 | 0 | 0.018868 | 0.654536 | 0.580437 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.025157 | null | null | 0.009434 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
a7424c15d4d75a5cf441234b6d6c6e2de8a307d5 | 34,493 | py | Python | task1/checker_client.py | jzfrank/pai-task1-GPR | e96beffe618872adf9026168a4466a4934c46d5b | [
"MIT"
] | null | null | null | task1/checker_client.py | jzfrank/pai-task1-GPR | e96beffe618872adf9026168a4466a4934c46d5b | [
"MIT"
] | null | null | null | task1/checker_client.py | jzfrank/pai-task1-GPR | e96beffe618872adf9026168a4466a4934c46d5b | [
"MIT"
] | null | null | null | from pytransform import pyarmor_runtime
pyarmor_runtime()
__pyarmor__(__name__, __file__, b'\x50\x59\x41\x52\x4d\x4f\x52\x00\x00\x03\x08\x00\x55\x0d\x0d\x0a\x07\x2c\xa0\x01\x00\x00\x00\x00\x01\x00\x00\x00\x40\x00\x00\x00\x57\x21\x00\x00\x00\x00\x00\x3e\xce\x07\x37\xf9\xb9\xd9\x64\x07\x0a\x10\xb8\x19\x85\xd9\xbd\x53\x00... | 11,497.666667 | 34,435 | 0.75021 | 8,611 | 34,493 | 3.003484 | 0.030775 | 0.004408 | 0.004524 | 0.003712 | 0.001508 | 0.000928 | 0.000928 | 0 | 0 | 0 | 0 | 0.310947 | 0.000232 | 34,493 | 3 | 34,435 | 11,497.666667 | 0.439031 | 0 | 0 | 0 | 0 | 0.333333 | 0.997159 | 0.997159 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 11 |
a758345cf14f1bf8b081f69a5cb95a00bf6ddc1b | 7,991 | py | Python | Stcgan_net.py | Vivianyzw/DeshadowGANs | 1b2dc4149bfa640f0b2ac9b4f9d0e3f2bc8737a3 | [
"Apache-2.0"
] | 30 | 2019-02-08T14:48:37.000Z | 2021-09-11T05:39:43.000Z | Stcgan_net.py | Vivianyzw/DeshadowGANs | 1b2dc4149bfa640f0b2ac9b4f9d0e3f2bc8737a3 | [
"Apache-2.0"
] | 4 | 2018-07-26T12:45:38.000Z | 2020-07-08T08:55:18.000Z | Stcgan_net.py | Vivianyzw/DeshadowGANs | 1b2dc4149bfa640f0b2ac9b4f9d0e3f2bc8737a3 | [
"Apache-2.0"
] | 16 | 2018-07-18T08:40:53.000Z | 2020-04-08T00:03:18.000Z | import torch
import torch.nn as nn
class Generator_first(nn.Module):
def __init__(self):
super(Generator_first, self).__init__()
self.conv0 = nn.Sequential(
nn.Conv2d(3, 64, 3, 1, 1),
nn.LeakyReLU(),
)
self.conv1 = nn.Sequential(
nn.Conv2d(64, 1... | 30.616858 | 65 | 0.504818 | 929 | 7,991 | 4.273412 | 0.07535 | 0.017128 | 0.025693 | 0.042821 | 0.980856 | 0.980605 | 0.980605 | 0.939798 | 0.911587 | 0.911587 | 0 | 0.124779 | 0.362157 | 7,991 | 260 | 66 | 30.734615 | 0.65411 | 0 | 0 | 0.831933 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05042 | false | 0 | 0.008403 | 0 | 0.092437 | 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 |
a76678e8143e875880508a59f3c206addca5b1a8 | 80,678 | py | Python | tests/conftest.py | VolumeFi/exchange-add | 0021a55557cbce43f31b21078a44f62fb14e0d56 | [
"Apache-2.0"
] | 5 | 2021-03-23T21:09:06.000Z | 2021-07-06T19:29:38.000Z | tests/conftest.py | VolumeFi/exchange-add | 0021a55557cbce43f31b21078a44f62fb14e0d56 | [
"Apache-2.0"
] | 4 | 2021-02-08T17:08:06.000Z | 2021-02-24T04:59:50.000Z | tests/conftest.py | VolumeFi/exchange-liquidity | 0021a55557cbce43f31b21078a44f62fb14e0d56 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python3
import pytest, math
from brownie import accounts, UniswapExchangeAdd, UniswapExchangeRemove, CurveExchangeAdd, CurveExchangeRemove, SushiswapExchangeAdd, SushiswapExchangeRemove, BalancerExchangeAdd, BalancerExchangeRemove, UniswapV3ExchangeAdd, UniswapV3ExchangeRemove, Contract
@pytest.fixture(sco... | 876.934783 | 15,603 | 0.667902 | 7,916 | 80,678 | 6.791056 | 0.042825 | 0.080211 | 0.113378 | 0.080528 | 0.932326 | 0.922635 | 0.916998 | 0.894341 | 0.888891 | 0.860132 | 0 | 0.030755 | 0.003309 | 80,678 | 92 | 15,604 | 876.934783 | 0.637786 | 0.000211 | 0 | 0.323529 | 0 | 0 | 0.621217 | 0.021708 | 0 | 0 | 0.006248 | 0 | 0 | 1 | 0.323529 | true | 0 | 0.029412 | 0.323529 | 0.676471 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 13 |
a780380409325b52282ebc7531687ba87e169956 | 25,220 | py | Python | scripts/slave/recipe_modules/chromium_tests/chromium_gpu_fyi.py | yjbanov/chromium_build | 22e3872f14dbf367cd787caa638f3ac948eac7d7 | [
"BSD-3-Clause"
] | null | null | null | scripts/slave/recipe_modules/chromium_tests/chromium_gpu_fyi.py | yjbanov/chromium_build | 22e3872f14dbf367cd787caa638f3ac948eac7d7 | [
"BSD-3-Clause"
] | null | null | null | scripts/slave/recipe_modules/chromium_tests/chromium_gpu_fyi.py | yjbanov/chromium_build | 22e3872f14dbf367cd787caa638f3ac948eac7d7 | [
"BSD-3-Clause"
] | 1 | 2020-07-23T11:05:06.000Z | 2020-07-23T11:05:06.000Z | # Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from . import steps
SPEC = {
'settings': {
'build_gs_bucket': 'chromium-gpu-fyi-archive',
# WARNING: src-side runtest.py is only tested with chrom... | 30.718636 | 76 | 0.568517 | 2,385 | 25,220 | 5.685115 | 0.074214 | 0.08629 | 0.113578 | 0.08629 | 0.943359 | 0.942695 | 0.942105 | 0.940261 | 0.924847 | 0.923224 | 0 | 0.008515 | 0.292189 | 25,220 | 820 | 77 | 30.756098 | 0.75105 | 0.069469 | 0 | 0.78399 | 0 | 0 | 0.463051 | 0.082132 | 0 | 0 | 0 | 0.00122 | 0 | 1 | 0 | false | 0 | 0.001271 | 0 | 0.001271 | 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 |
a7c0ab2cbbfe67b4670e158f5b8c4d348931448b | 48,921 | py | Python | PhaseOne/s3dg_vars.py | VolpeUSDOT/fra-gctd | 5452bd954d1a4e9c839b39dd6bcda1f59f320906 | [
"MIT"
] | null | null | null | PhaseOne/s3dg_vars.py | VolpeUSDOT/fra-gctd | 5452bd954d1a4e9c839b39dd6bcda1f59f320906 | [
"MIT"
] | null | null | null | PhaseOne/s3dg_vars.py | VolpeUSDOT/fra-gctd | 5452bd954d1a4e9c839b39dd6bcda1f59f320906 | [
"MIT"
] | null | null | null | # when training only a subset of variables, only the scope needs to be specified
s3dg_logits = 'InceptionV1/Logits'
# when warm-starting training using the Estimator API, variable names (including
# full scopes) must be specified exactly
s3dg_convs = [
'InceptionV1/Conv2d_1a_7x7/BatchNorm/beta',
'InceptionV1/Conv2... | 79.160194 | 107 | 0.858016 | 6,626 | 48,921 | 5.920314 | 0.010112 | 0.234934 | 0.293668 | 0.082594 | 0.99378 | 0.991205 | 0.976522 | 0.959009 | 0.958117 | 0.897293 | 0 | 0.089054 | 0.038245 | 48,921 | 618 | 108 | 79.160194 | 0.744697 | 0.004006 | 0 | 0 | 0 | 0 | 0.923525 | 0.922725 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
ac41d1a34c7b6d2ac86393118d268184dfd5de60 | 6,084 | py | Python | tests/test_layer.py | TenebraeX8/picknmix | dceedff8ca7982d1ad6b69bb53ed117d84f71f84 | [
"MIT"
] | 1 | 2020-07-27T19:17:24.000Z | 2020-07-27T19:17:24.000Z | tests/test_layer.py | TenebraeX8/picknmix | dceedff8ca7982d1ad6b69bb53ed117d84f71f84 | [
"MIT"
] | null | null | null | tests/test_layer.py | TenebraeX8/picknmix | dceedff8ca7982d1ad6b69bb53ed117d84f71f84 | [
"MIT"
] | null | null | null | import pytest
import numpy as np
from sklearn.linear_model import LinearRegression
from sklearn.preprocessing import MinMaxScaler
from sklearn.linear_model import LogisticRegression
from picknmix import Layer
class TestLayer:
def test_different_numbers_of_preprocessor_and_models(self):
with pytest.raises(E... | 43.148936 | 76 | 0.54142 | 802 | 6,084 | 3.961347 | 0.092269 | 0.024551 | 0.065471 | 0.056657 | 0.858986 | 0.814605 | 0.806106 | 0.8017 | 0.791627 | 0.791627 | 0 | 0.050363 | 0.298323 | 6,084 | 140 | 77 | 43.457143 | 0.693839 | 0.031887 | 0 | 0.727273 | 0 | 0 | 0.014611 | 0 | 0 | 0 | 0 | 0 | 0.190083 | 1 | 0.115702 | false | 0 | 0.049587 | 0 | 0.173554 | 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 |
ac66df35a8ba478eaeed07f0ca746991df425867 | 16,244 | py | Python | eppy/geometry/mcve.py | hnagda/eppy | 422399ada78eb9f39ae61f96b385fe41a0a19100 | [
"MIT"
] | null | null | null | eppy/geometry/mcve.py | hnagda/eppy | 422399ada78eb9f39ae61f96b385fe41a0a19100 | [
"MIT"
] | null | null | null | eppy/geometry/mcve.py | hnagda/eppy | 422399ada78eb9f39ae61f96b385fe41a0a19100 | [
"MIT"
] | null | null | null | from eppy.iddcurrent import iddcurrent
from eppy.modeleditor import IDF
from six import StringIO
iddsnippet = iddcurrent.iddtxt
iddfhandle = StringIO(iddcurrent.iddtxt)
IDF.setiddname(iddfhandle)
idftxt = """
Version,
8.5; !- Version Identifier
Building,
... | 46.81268 | 72 | 0.40538 | 1,307 | 16,244 | 5.038256 | 0.079572 | 0.011845 | 0.043736 | 0.080182 | 0.92407 | 0.92407 | 0.92407 | 0.91754 | 0.916325 | 0.915262 | 0 | 0.095522 | 0.524378 | 16,244 | 346 | 73 | 46.947977 | 0.756795 | 0 | 0 | 0.867692 | 0 | 0 | 0.982332 | 0.018468 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.009231 | 0 | 0.009231 | 0.003077 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
3bf9268ea8871f5c4b9b494f97eac19783e3d916 | 87 | py | Python | gif2html5/date_manager.py | sshyran/gif2html5-app | e8461b8b0e8e1d963bb1b642acfc97c940b4c015 | [
"MIT"
] | null | null | null | gif2html5/date_manager.py | sshyran/gif2html5-app | e8461b8b0e8e1d963bb1b642acfc97c940b4c015 | [
"MIT"
] | null | null | null | gif2html5/date_manager.py | sshyran/gif2html5-app | e8461b8b0e8e1d963bb1b642acfc97c940b4c015 | [
"MIT"
] | null | null | null | import datetime
def get_current_date():
return datetime.date.today().isoformat()
| 14.5 | 44 | 0.747126 | 11 | 87 | 5.727273 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137931 | 87 | 5 | 45 | 17.4 | 0.84 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | true | 0 | 0.333333 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 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 | 1 | 1 | 0 | 0 | 7 |
3bfc353623120b2ec7e5dbf733e69b1161fddcd6 | 3,501 | py | Python | migrations/versions/97b4fcf044a0_.py | kokes/ockovani-covid | 09810ccf187a22b7a5bb5aeae6156b62175fbda7 | [
"Apache-2.0"
] | 62 | 2021-01-16T18:02:57.000Z | 2022-01-12T21:10:34.000Z | migrations/versions/97b4fcf044a0_.py | kokes/ockovani-covid | 09810ccf187a22b7a5bb5aeae6156b62175fbda7 | [
"Apache-2.0"
] | 224 | 2021-01-16T19:11:01.000Z | 2022-03-15T19:42:37.000Z | migrations/versions/97b4fcf044a0_.py | kokes/ockovani-covid | 09810ccf187a22b7a5bb5aeae6156b62175fbda7 | [
"Apache-2.0"
] | 13 | 2021-01-16T18:38:11.000Z | 2021-07-02T20:09:47.000Z | """empty message
Revision ID: 97b4fcf044a0
Revises: c703c687dcbf
Create Date: 2021-04-12 23:26:07.579397
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql
# revision identifiers, used by Alembic.
revision = '97b4fcf044a0'
down_revision = 'c703c687dcbf'
branch_labels = None... | 53.861538 | 124 | 0.745216 | 437 | 3,501 | 5.615561 | 0.173913 | 0.185819 | 0.244499 | 0.195599 | 0.823146 | 0.823146 | 0.820701 | 0.820701 | 0.742054 | 0.560717 | 0 | 0.015023 | 0.125393 | 3,501 | 64 | 125 | 54.703125 | 0.786414 | 0.084262 | 0 | 0.255319 | 0 | 0 | 0.423162 | 0.301672 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042553 | false | 0 | 0.06383 | 0 | 0.106383 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 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 |
021ae8ee1062a5b89d9ca1a55140ec3e011849b5 | 172 | py | Python | app/routes.py | Flyingblu/AskA_crawler | 4ce63683dc2663e444f3788b09c298709e69399e | [
"MIT"
] | null | null | null | app/routes.py | Flyingblu/AskA_crawler | 4ce63683dc2663e444f3788b09c298709e69399e | [
"MIT"
] | null | null | null | app/routes.py | Flyingblu/AskA_crawler | 4ce63683dc2663e444f3788b09c298709e69399e | [
"MIT"
] | null | null | null | from app import flask_app
from app import acrawler
from flask import request
@flask_app.route('/v2/linc/')
def index():
return acrawler.get_qs(request.args.get('p'))
| 19.111111 | 49 | 0.744186 | 28 | 172 | 4.464286 | 0.571429 | 0.112 | 0.208 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006711 | 0.133721 | 172 | 8 | 50 | 21.5 | 0.832215 | 0 | 0 | 0 | 0 | 0 | 0.05814 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | true | 0 | 0.5 | 0.166667 | 0.833333 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 7 |
02205cea8f4013128909faaec9e0e80356150192 | 13,916 | py | Python | tests/test_actor_critic.py | mingzhang96/DI-hpc | 5431c283a91b77df7c6a86fb0affa60099d4bb31 | [
"Apache-2.0"
] | 64 | 2021-07-08T02:18:08.000Z | 2022-02-28T09:52:57.000Z | tests/test_actor_critic.py | mingzhang96/DI-hpc | 5431c283a91b77df7c6a86fb0affa60099d4bb31 | [
"Apache-2.0"
] | null | null | null | tests/test_actor_critic.py | mingzhang96/DI-hpc | 5431c283a91b77df7c6a86fb0affa60099d4bb31 | [
"Apache-2.0"
] | 3 | 2021-07-14T08:58:45.000Z | 2022-03-30T12:36:46.000Z | import time
import torch
import numpy as np
from testbase import mean_relative_error, times
import hpc_models
assert torch.cuda.is_available()
use_cuda = True
times = 100
batch_size = 8
max_entity_num = 182
input_dim = 1024
lstm_seq_len = 1
lstm_batch_size = 8
lstm_input_size = 32
lstm_hidden_size = 32
lstm_num_lay... | 38.230769 | 142 | 0.672032 | 2,144 | 13,916 | 3.967351 | 0.062966 | 0.067717 | 0.044322 | 0.031977 | 0.913708 | 0.871502 | 0.850811 | 0.843992 | 0.818364 | 0.800846 | 0 | 0.014499 | 0.197111 | 13,916 | 363 | 143 | 38.336088 | 0.7468 | 0.004743 | 0 | 0.816949 | 0 | 0 | 0.079001 | 0 | 0 | 0 | 0 | 0 | 0.00678 | 1 | 0.023729 | false | 0 | 0.016949 | 0 | 0.044068 | 0.071186 | 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 |
02819c15865800353cd1620255e29a94921fe835 | 2,925 | py | Python | tests/format/vtp/test_write_vtp.py | ricosjp/femio | f43991132e530c97477374f4bba25a250a6acae8 | [
"Apache-2.0"
] | 21 | 2020-12-27T11:05:35.000Z | 2022-03-02T15:37:18.000Z | tests/format/vtp/test_write_vtp.py | ricosjp/femio | f43991132e530c97477374f4bba25a250a6acae8 | [
"Apache-2.0"
] | null | null | null | tests/format/vtp/test_write_vtp.py | ricosjp/femio | f43991132e530c97477374f4bba25a250a6acae8 | [
"Apache-2.0"
] | 2 | 2021-04-28T09:41:09.000Z | 2021-07-01T21:18:45.000Z | import pathlib
import shutil
import unittest
import numpy as np
from femio.fem_data import FEMData
class TestWriteVTP(unittest.TestCase):
def test_write_vtp_closed(self):
file_name = pathlib.Path('tests/data/vtp/closed/mesh.vtp')
fem_data = FEMData.read_files('vtp', [file_name])
write_... | 39 | 72 | 0.674872 | 398 | 2,925 | 4.575377 | 0.130653 | 0.119165 | 0.140582 | 0.175728 | 0.901702 | 0.901702 | 0.901702 | 0.901702 | 0.863262 | 0.863262 | 0 | 0 | 0.220171 | 2,925 | 74 | 73 | 39.527027 | 0.798334 | 0 | 0 | 0.793103 | 0 | 0 | 0.056068 | 0.044444 | 0 | 0 | 0 | 0 | 0.206897 | 1 | 0.034483 | false | 0 | 0.086207 | 0 | 0.137931 | 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 |
5a3467fef4c85ca377134d1476c5e33210eb1f54 | 71 | py | Python | more_itertools/__init__.py | ethanaward/more-itertools | bf63113553a3dfb6a77104669d80c2cf5d082a60 | [
"MIT"
] | 1 | 2019-04-23T21:50:08.000Z | 2019-04-23T21:50:08.000Z | more_itertools/__init__.py | ethanaward/more-itertools | bf63113553a3dfb6a77104669d80c2cf5d082a60 | [
"MIT"
] | null | null | null | more_itertools/__init__.py | ethanaward/more-itertools | bf63113553a3dfb6a77104669d80c2cf5d082a60 | [
"MIT"
] | 2 | 2019-02-14T08:13:33.000Z | 2019-04-23T21:47:48.000Z | from more_itertools.more import *
from more_itertools.recipes import *
| 23.666667 | 36 | 0.830986 | 10 | 71 | 5.7 | 0.5 | 0.280702 | 0.596491 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.112676 | 71 | 2 | 37 | 35.5 | 0.904762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 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 |
5a71b73bc1f5e4bbb6875571181188e5b6e50984 | 17,346 | py | Python | flash/text/question_answering/data.py | Actis92/lightning-flash | 49972268cfc0f95f1bd2b8fbf25036970cc44b59 | [
"Apache-2.0"
] | 1,457 | 2021-01-28T20:40:16.000Z | 2022-03-31T06:22:05.000Z | flash/text/question_answering/data.py | Actis92/lightning-flash | 49972268cfc0f95f1bd2b8fbf25036970cc44b59 | [
"Apache-2.0"
] | 1,123 | 2021-01-28T20:37:56.000Z | 2022-03-31T19:34:44.000Z | flash/text/question_answering/data.py | Actis92/lightning-flash | 49972268cfc0f95f1bd2b8fbf25036970cc44b59 | [
"Apache-2.0"
] | 170 | 2021-01-29T00:41:39.000Z | 2022-03-29T16:09:52.000Z | # Copyright The PyTorch Lightning team.
#
# 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 i... | 53.537037 | 114 | 0.695665 | 2,022 | 17,346 | 5.746785 | 0.089515 | 0.041308 | 0.01988 | 0.021945 | 0.871429 | 0.845611 | 0.829346 | 0.829346 | 0.814888 | 0.814888 | 0 | 0.002962 | 0.240978 | 17,346 | 323 | 115 | 53.702786 | 0.879614 | 0.43203 | 0 | 0.73913 | 0 | 0 | 0.023024 | 0.009298 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021739 | false | 0 | 0.054348 | 0 | 0.11413 | 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 |
ce4e8278cb78fc3e145561a63d3c1758017bafb3 | 98,147 | py | Python | iclientpy/test/rest/api/test_restdata.py | SuperMap/iClientPython | 5e741c1efda9b12d321909428bd5c95e22482ea7 | [
"Apache-2.0"
] | 28 | 2018-04-19T07:11:34.000Z | 2022-02-24T08:31:08.000Z | iclientpy/test/rest/api/test_restdata.py | SuperMap/iClientPython | 5e741c1efda9b12d321909428bd5c95e22482ea7 | [
"Apache-2.0"
] | 3 | 2019-05-06T07:58:45.000Z | 2020-11-18T21:16:38.000Z | iclientpy/test/rest/api/test_restdata.py | SuperMap/iClientPython | 5e741c1efda9b12d321909428bd5c95e22482ea7 | [
"Apache-2.0"
] | 8 | 2018-06-14T02:29:53.000Z | 2020-11-03T01:36:35.000Z | import httpretty
from typing import List
from iclientpy.rest.api.model import Feature
from iclientpy.dtojson import deserializer
from iclientpy.rest.decorator import HttpMethod
from iclientpy.rest.api.model import *
from iclientpy.rest.apifactory import APIFactory
from iclientpy.rest.api.restdata import DataServ... | 332.701695 | 28,315 | 0.652837 | 14,065 | 98,147 | 4.534945 | 0.046356 | 0.130942 | 0.115985 | 0.122429 | 0.912533 | 0.897294 | 0.886366 | 0.860843 | 0.824799 | 0.820566 | 0 | 0.230524 | 0.055213 | 98,147 | 294 | 28,316 | 333.833333 | 0.457338 | 0.000153 | 0 | 0.454861 | 0 | 0.208333 | 0.854697 | 0.730133 | 0 | 0 | 0 | 0.003401 | 0 | 1 | 0.006944 | false | 0 | 0.034722 | 0 | 0.045139 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 13 |
ce5c78334eb77fef9a9981ddbf769bed22b70ed4 | 4,921 | py | Python | test_autolens/plot/test_get_visuals.py | Jammy2211/AutoLens | bc132a21d1a52248f08f198474e29f985e365d85 | [
"MIT"
] | null | null | null | test_autolens/plot/test_get_visuals.py | Jammy2211/AutoLens | bc132a21d1a52248f08f198474e29f985e365d85 | [
"MIT"
] | 10 | 2017-12-22T11:39:33.000Z | 2018-01-30T09:13:16.000Z | test_autolens/plot/test_get_visuals.py | Jammy2211/AutoLens | bc132a21d1a52248f08f198474e29f985e365d85 | [
"MIT"
] | null | null | null | from os import path
import pytest
import autolens.plot as aplt
from autolens.plot.get_visuals import GetVisuals2D
directory = path.dirname(path.realpath(__file__))
@pytest.fixture(name="plot_path")
def make_profile_plotter_setup():
return path.join(
"{}".format(path.dirname(path.realpath(_... | 33.026846 | 89 | 0.697013 | 692 | 4,921 | 4.534682 | 0.099711 | 0.123327 | 0.137667 | 0.17782 | 0.900574 | 0.833333 | 0.805927 | 0.779477 | 0.76673 | 0.743467 | 0 | 0.051621 | 0.216623 | 4,921 | 148 | 90 | 33.25 | 0.762387 | 0 | 0 | 0.610169 | 0 | 0 | 0.006076 | 0 | 0 | 0 | 0 | 0 | 0.262712 | 1 | 0.025424 | false | 0 | 0.033898 | 0.008475 | 0.067797 | 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 |
ce81a4325cb49fc6522a6027564a6a4e8e89793d | 25,852 | py | Python | visualizations.py | EMBEDDIA/xl-user-comments | ac70858ff9451e31bf5faa30700974291ce8ebfd | [
"Unlicense"
] | 1 | 2021-04-20T00:04:02.000Z | 2021-04-20T00:04:02.000Z | visualizations.py | azagsam/xl-user-comments | ac70858ff9451e31bf5faa30700974291ce8ebfd | [
"Unlicense"
] | null | null | null | visualizations.py | azagsam/xl-user-comments | ac70858ff9451e31bf5faa30700974291ce8ebfd | [
"Unlicense"
] | null | null | null | import pandas as pd
import plotly.express as px
import plotly.graph_objects as go
from sklearn.cluster import KMeans, MeanShift
from sklearn.decomposition import PCA
from sklearn.manifold import TSNE
import umap
from sklearn.mixture import GaussianMixture
from sklearn.metrics.pairwise import cosine_similarity
import ne... | 33.971091 | 129 | 0.570981 | 2,802 | 25,852 | 5.051749 | 0.120985 | 0.029248 | 0.042247 | 0.037301 | 0.840198 | 0.826351 | 0.819993 | 0.814765 | 0.807983 | 0.804097 | 0 | 0.012349 | 0.320285 | 25,852 | 760 | 130 | 34.015789 | 0.793194 | 0.232322 | 0 | 0.723141 | 0 | 0 | 0.067206 | 0.001068 | 0 | 0 | 0 | 0.001316 | 0.006198 | 1 | 0.018595 | false | 0 | 0.045455 | 0 | 0.070248 | 0.030992 | 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 |
0c74346b49c1db11fc6fa39bcb8d4214cac551c8 | 3,222 | py | Python | stix2generator/test/test_object_generator_integer.py | majacQ/cti-stix-generator | 7465ecd29ef6caabf9f1b60ad45dad789c475028 | [
"BSD-3-Clause"
] | 20 | 2020-12-10T18:16:28.000Z | 2022-02-20T19:30:53.000Z | stix2generator/test/test_object_generator_integer.py | majacQ/cti-stix-generator | 7465ecd29ef6caabf9f1b60ad45dad789c475028 | [
"BSD-3-Clause"
] | 26 | 2021-01-13T23:32:19.000Z | 2022-03-29T06:47:02.000Z | stix2generator/test/test_object_generator_integer.py | majacQ/cti-stix-generator | 7465ecd29ef6caabf9f1b60ad45dad789c475028 | [
"BSD-3-Clause"
] | 8 | 2020-12-14T23:10:16.000Z | 2021-12-06T13:07:24.000Z | import pytest
import stix2generator.exceptions
def test_integer_closed(object_generator, num_trials):
for _ in range(num_trials):
value = object_generator.generate_from_spec({
"type": "integer",
"minimum": -1,
"maximum": 1
})
assert -1 <= value <= 1
... | 26.195122 | 72 | 0.597455 | 337 | 3,222 | 5.397626 | 0.145401 | 0.181418 | 0.084662 | 0.163277 | 0.884552 | 0.828477 | 0.828477 | 0.808686 | 0.793293 | 0.744915 | 0 | 0.029528 | 0.295779 | 3,222 | 122 | 73 | 26.409836 | 0.772146 | 0 | 0 | 0.719101 | 1 | 0 | 0.10211 | 0 | 0 | 0 | 0 | 0 | 0.11236 | 1 | 0.123596 | false | 0 | 0.022472 | 0 | 0.146067 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
0c83fa06806fa2b9503719bfae29f77528aea4c8 | 46,914 | py | Python | chengyubert/models/modeling_affection.py | VisualJoyce/ChengyuBERT | 605db3a4b3241dd4d02baa41a68bf23b5b00b36d | [
"MIT"
] | 8 | 2020-12-11T13:06:16.000Z | 2022-03-01T13:47:51.000Z | chengyubert/models/modeling_affection.py | VisualJoyce/ChengyuBERT | 605db3a4b3241dd4d02baa41a68bf23b5b00b36d | [
"MIT"
] | 18 | 2020-12-31T07:32:55.000Z | 2022-02-07T08:33:30.000Z | chengyubert/models/modeling_affection.py | VisualJoyce/ChengyuBERT | 605db3a4b3241dd4d02baa41a68bf23b5b00b36d | [
"MIT"
] | 3 | 2021-03-25T01:08:56.000Z | 2022-03-22T09:05:57.000Z | from typing import Any, Tuple, Optional
import torch
from torch import nn
from transformers import BertModel, BertPreTrainedModel
from chengyubert.models import register_model
from chengyubert.modules.attention import ContrastiveCoAttention
from chengyubert.modules.utils import WeightNormClassifier, LatentComposition... | 46.727092 | 119 | 0.672997 | 5,774 | 46,914 | 5.157949 | 0.031694 | 0.062454 | 0.069304 | 0.029682 | 0.945806 | 0.931469 | 0.926029 | 0.925425 | 0.925156 | 0.918374 | 0 | 0.011519 | 0.226521 | 46,914 | 1,003 | 120 | 46.773679 | 0.809215 | 0.03468 | 0 | 0.896159 | 0 | 0 | 0.021534 | 0.009905 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058321 | false | 0 | 0.01138 | 0.001422 | 0.146515 | 0.012802 | 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 |
0cb3bd082fb4ece4bd9ba9098318926ae68b69bc | 1,770 | py | Python | tests/integration/blueprints/admin/ticketing/test_views.py | homeworkprod/byceps | cd0f9f37f7b5eb517106ec761acc7e0bdf75e22e | [
"BSD-3-Clause"
] | 23 | 2015-08-03T23:28:54.000Z | 2018-12-12T20:11:45.000Z | tests/integration/blueprints/admin/ticketing/test_views.py | homeworkprod/byceps | cd0f9f37f7b5eb517106ec761acc7e0bdf75e22e | [
"BSD-3-Clause"
] | 1 | 2018-09-30T18:18:24.000Z | 2018-09-30T18:18:24.000Z | tests/integration/blueprints/admin/ticketing/test_views.py | homeworkprod/byceps | cd0f9f37f7b5eb517106ec761acc7e0bdf75e22e | [
"BSD-3-Clause"
] | 9 | 2015-08-06T16:41:36.000Z | 2018-09-25T11:17:31.000Z | """
:Copyright: 2014-2022 Jochen Kupperschmidt
:License: Revised BSD (see `LICENSE` file for details)
"""
def test_ticket_index(party, ticketing_admin_client, ticket):
url = f'/admin/ticketing/tickets/for_party/{party.id}'
response = ticketing_admin_client.get(url)
assert response.status_code == 200
def... | 33.396226 | 72 | 0.759887 | 239 | 1,770 | 5.359833 | 0.167364 | 0.174863 | 0.249805 | 0.112412 | 0.827479 | 0.790008 | 0.790008 | 0.790008 | 0.790008 | 0.67057 | 0 | 0.020806 | 0.131073 | 1,770 | 52 | 73 | 34.038462 | 0.812094 | 0.054802 | 0 | 0.5 | 0 | 0 | 0.224024 | 0.224024 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | false | 0 | 0 | 0 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
0b2bfbcc5a8cf3566a46d1acc491f29950741675 | 54 | py | Python | py65816/utils/db_console.py | tmr4/py65816 | 00d9a378ebd0e27378c8ce9e6611a7fec0020b44 | [
"BSD-3-Clause"
] | 1 | 2022-02-22T18:04:26.000Z | 2022-02-22T18:04:26.000Z | py65816/utils/db_console.py | tmr4/py65816 | 00d9a378ebd0e27378c8ce9e6611a7fec0020b44 | [
"BSD-3-Clause"
] | null | null | null | py65816/utils/db_console.py | tmr4/py65816 | 00d9a378ebd0e27378c8ce9e6611a7fec0020b44 | [
"BSD-3-Clause"
] | null | null | null | import msvcrt
def kbhit():
return msvcrt.kbhit()
| 10.8 | 25 | 0.685185 | 7 | 54 | 5.285714 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.203704 | 54 | 4 | 26 | 13.5 | 0.860465 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | true | 0 | 0.333333 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 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 | 1 | 1 | 0 | 0 | 7 |
0b692a7c34e0999838eb880d965d783a35666f6b | 10,667 | py | Python | test/federated_aggregator/test_clip_norm_aggregators.py | SSSuperTIan/Sherpa.ai-Federated-Learning-Framework | a30d73a018526f1033ee0ec57489c4c6e2f15b0a | [
"Apache-2.0"
] | 1 | 2021-03-18T07:31:36.000Z | 2021-03-18T07:31:36.000Z | test/federated_aggregator/test_clip_norm_aggregators.py | SSSuperTIan/Sherpa.ai-Federated-Learning-Framework | a30d73a018526f1033ee0ec57489c4c6e2f15b0a | [
"Apache-2.0"
] | null | null | null | test/federated_aggregator/test_clip_norm_aggregators.py | SSSuperTIan/Sherpa.ai-Federated-Learning-Framework | a30d73a018526f1033ee0ec57489c4c6e2f15b0a | [
"Apache-2.0"
] | null | null | null | import numpy as np
from shfl.federated_aggregator import NormClipAggregator
from shfl.federated_aggregator import CDPAggregator
from shfl.federated_aggregator import WeakDPAggregator
def test_aggregated_weights_NormClip():
num_clients = 10
num_layers = 5
tams = [[128, 64], [64, 64], [64, 64], [64, 32], [... | 34.521036 | 101 | 0.689135 | 1,492 | 10,667 | 4.644102 | 0.058311 | 0.125704 | 0.034637 | 0.041709 | 0.95757 | 0.913552 | 0.906191 | 0.891471 | 0.891471 | 0.891471 | 0 | 0.032014 | 0.206431 | 10,667 | 308 | 102 | 34.633117 | 0.786533 | 0 | 0 | 0.860262 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.091703 | 1 | 0.056769 | false | 0 | 0.017467 | 0 | 0.074236 | 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 |
f037beb5facd240b25f8c88fa806ad8e1e34753f | 2,948 | py | Python | tests/test_version.py | jyaquinas/git-changelog | 81e04757d5b5397c9e5ef2e6ece3f92c0f07e916 | [
"ISC"
] | 56 | 2019-03-09T07:38:08.000Z | 2022-03-27T19:16:53.000Z | tests/test_version.py | jyaquinas/git-changelog | 81e04757d5b5397c9e5ef2e6ece3f92c0f07e916 | [
"ISC"
] | 30 | 2019-05-03T09:46:37.000Z | 2022-03-31T10:07:38.000Z | tests/test_version.py | pawamoy/gitolog | dde6959b62a9e38c5d60b95241fd15bf4c4a50a3 | [
"0BSD"
] | 21 | 2019-05-07T13:30:45.000Z | 2022-03-22T21:03:30.000Z | """Test version bumping."""
from git_changelog.build import bump
def test_bump(): # noqa: WPS218 (too many assert statements)
"""Test default version bumping."""
assert bump("0.0.1") == "0.0.2"
assert bump("0.1.0") == "0.1.1"
assert bump("0.1.1") == "0.1.2"
assert bump("1.0.0") == "1.0.1"
as... | 36.85 | 67 | 0.510176 | 554 | 2,948 | 2.700361 | 0.046931 | 0.374332 | 0.191176 | 0.088235 | 0.856952 | 0.850267 | 0.754011 | 0.516043 | 0 | 0 | 0 | 0.147084 | 0.197422 | 2,948 | 79 | 68 | 37.316456 | 0.485207 | 0.103121 | 0 | 0 | 0 | 0 | 0.31587 | 0 | 0 | 0 | 0 | 0 | 0.918033 | 1 | 0.065574 | true | 0 | 0.016393 | 0 | 0.081967 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
f06fc3f6b707f24a0e91d4fc52306aedf8cddace | 27,678 | py | Python | orca_models.py | jzhoulab/orca | 8ebfda95dec118ee4069b12d25a2a93f9ea7ec8f | [
"Apache-2.0"
] | 22 | 2021-05-10T19:42:00.000Z | 2022-03-14T08:34:07.000Z | orca_models.py | jzhoulab/orca | 8ebfda95dec118ee4069b12d25a2a93f9ea7ec8f | [
"Apache-2.0"
] | null | null | null | orca_models.py | jzhoulab/orca | 8ebfda95dec118ee4069b12d25a2a93f9ea7ec8f | [
"Apache-2.0"
] | 4 | 2021-05-28T16:35:35.000Z | 2022-03-19T12:23:08.000Z | """
This module contains the class definition of all Orca models.
For usage of the models, see the orca_predict module.
"""
import pathlib
import numpy as np
import torch
from torch import nn
from orca_modules import Encoder, Encoder2, Encoder3, Decoder, Decoder_1m, Net
ORCA_PATH = str(pathlib.Path(__file__).parent.... | 36.370565 | 99 | 0.582737 | 3,354 | 27,678 | 4.622242 | 0.060227 | 0.06502 | 0.039476 | 0.046056 | 0.967103 | 0.96104 | 0.95775 | 0.952977 | 0.949494 | 0.943043 | 0 | 0.05709 | 0.297529 | 27,678 | 760 | 100 | 36.418421 | 0.740266 | 0.184587 | 0 | 0.749077 | 0 | 0 | 0.087245 | 0.034525 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016605 | false | 0 | 0.009225 | 0 | 0.042435 | 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 |
b2e56667aef801f5791c4102307a87a0908be84f | 517 | py | Python | test_harness.py | sergioisidoro/simple-ruuvitag | 791645797c211a7f9506e2c496289d8890b0035f | [
"MIT"
] | 5 | 2020-04-14T16:11:23.000Z | 2021-05-30T13:30:14.000Z | test_harness.py | sergioisidoro/simple-ruuvitag | 791645797c211a7f9506e2c496289d8890b0035f | [
"MIT"
] | 3 | 2020-06-27T15:54:07.000Z | 2021-03-28T17:47:59.000Z | test_harness.py | sergioisidoro/simple-ruuvitag | 791645797c211a7f9506e2c496289d8890b0035f | [
"MIT"
] | 2 | 2021-02-20T05:12:43.000Z | 2021-07-11T01:24:47.000Z | import time
from simple_ruuvitag.ruuvi import RuuviTagClient
ruuvi_client = RuuviTagClient()
ruuvi_client.start()
time.sleep(20)
last_datas = ruuvi_client.get_current_datas()
print(last_datas)
ruuvi_client.rescan()
time.sleep(20)
last_datas = ruuvi_client.get_current_datas()
print(last_datas)
# ruuvi_client.rescan(... | 20.68 | 48 | 0.794971 | 75 | 517 | 5.133333 | 0.226667 | 0.257143 | 0.254545 | 0.363636 | 0.755844 | 0.755844 | 0.755844 | 0.755844 | 0.755844 | 0.755844 | 0 | 0.016985 | 0.088975 | 517 | 25 | 49 | 20.68 | 0.800425 | 0.388781 | 0 | 0.545455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.181818 | 0.181818 | 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 |
652d994995ddae28937c8c9258e3dbaea9e5adaf | 133 | py | Python | pyintesishome/__init__.py | tehbrd/pyIntesisHome | e8121fc61f583303b3b14dd7de5a26cc57f68e3d | [
"MIT"
] | null | null | null | pyintesishome/__init__.py | tehbrd/pyIntesisHome | e8121fc61f583303b3b14dd7de5a26cc57f68e3d | [
"MIT"
] | null | null | null | pyintesishome/__init__.py | tehbrd/pyIntesisHome | e8121fc61f583303b3b14dd7de5a26cc57f68e3d | [
"MIT"
] | null | null | null | from .pyintesishome import IntesisHome
from .pyintesishome import IHAuthenticationError
from .pyintesishome import IHConnectionError
| 33.25 | 48 | 0.887218 | 12 | 133 | 9.833333 | 0.5 | 0.432203 | 0.584746 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090226 | 133 | 3 | 49 | 44.333333 | 0.975207 | 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 |
3311fcced297c478a6da6412629756f64726921b | 5,229 | py | Python | pythonwars/engine/levels.py | jamiees2/PythonWars | c815440228bffd0f2c45e4c05de33d3f098096f6 | [
"MIT"
] | null | null | null | pythonwars/engine/levels.py | jamiees2/PythonWars | c815440228bffd0f2c45e4c05de33d3f098096f6 | [
"MIT"
] | null | null | null | pythonwars/engine/levels.py | jamiees2/PythonWars | c815440228bffd0f2c45e4c05de33d3f098096f6 | [
"MIT"
] | null | null | null | from .world import World
from .coin import Coin
from .robot import Robot
from .portal import Portal
from .crate import Crate
from .plate import Plate
MODE_REGULAR = 1
MODE_INVISIBLE = 2
def level1():
"""Can you collect all of the coins?"""
maze = [[2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2],... | 43.214876 | 111 | 0.410212 | 1,174 | 5,229 | 1.807496 | 0.059625 | 0.28181 | 0.309614 | 0.337418 | 0.721018 | 0.671065 | 0.671065 | 0.671065 | 0.671065 | 0.671065 | 0 | 0.282596 | 0.342895 | 5,229 | 120 | 112 | 43.575 | 0.334983 | 0.038248 | 0 | 0.621053 | 0 | 0 | 0.029124 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.031579 | false | 0 | 0.063158 | 0 | 0.126316 | 0 | 0 | 0 | 1 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
684e1fd4e48f24e1fb978d8096e929bc15e3b343 | 224 | py | Python | ixcom/data.py | imar-navigation/ixcom-python | 4c6d6de65f7942fb65b8a21d62e1be9767b48c30 | [
"MIT"
] | 4 | 2019-08-12T13:20:55.000Z | 2021-12-20T09:48:36.000Z | ixcom/data.py | imar-navigation/ixcom-python | 4c6d6de65f7942fb65b8a21d62e1be9767b48c30 | [
"MIT"
] | 1 | 2020-04-23T19:04:49.000Z | 2020-04-23T19:04:49.000Z | ixcom/data.py | imar-navigation/ixcom-python | 4c6d6de65f7942fb65b8a21d62e1be9767b48c30 | [
"MIT"
] | 4 | 2019-08-13T09:36:54.000Z | 2022-01-21T12:58:34.000Z | from .protocol import *
from .commands import *
from .parameters import *
from .messages import *
try:
from ixcom_internal.parameters import *
from ixcom_internal.messages import *
except ImportError as e:
pass
| 20.363636 | 43 | 0.745536 | 28 | 224 | 5.892857 | 0.5 | 0.242424 | 0.242424 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191964 | 224 | 10 | 44 | 22.4 | 0.911602 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.111111 | 0.777778 | 0 | 0.777778 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 7 |
6860d03ce4022e4d3b562aa92003fd4fc667ec7a | 173 | py | Python | ninjalooter/tests/test_config.py | ewjax/ninjalooter | 9faf94eed56de3c375cca4d1be24eab20dc7b226 | [
"MIT"
] | 4 | 2020-08-30T12:57:03.000Z | 2022-03-18T15:11:13.000Z | ninjalooter/tests/test_config.py | ewjax/ninjalooter | 9faf94eed56de3c375cca4d1be24eab20dc7b226 | [
"MIT"
] | 5 | 2022-01-07T03:17:32.000Z | 2022-03-27T21:20:12.000Z | ninjalooter/tests/test_config.py | ewjax/ninjalooter | 9faf94eed56de3c375cca4d1be24eab20dc7b226 | [
"MIT"
] | 1 | 2021-12-28T02:18:04.000Z | 2021-12-28T02:18:04.000Z | from ninjalooter import config # noqa
from ninjalooter.tests import base
# TODO: placeholder class, will config need testing?
class TestConfig(base.NLTestBase):
pass
| 21.625 | 52 | 0.780347 | 22 | 173 | 6.136364 | 0.727273 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16185 | 173 | 7 | 53 | 24.714286 | 0.931034 | 0.317919 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 0 | 1 | 0 | true | 0.25 | 0.5 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 8 |
6882f9c68eee2efc4044ca834132d838b67d2e19 | 144 | py | Python | sosia/processing/caching/__init__.py | sosia-dev/sosia | d4d2d5edb0cd1d085b5a457eb6d19bf8e9fea7f5 | [
"MIT"
] | 14 | 2019-03-12T22:07:47.000Z | 2022-03-08T14:05:05.000Z | sosia/processing/caching/__init__.py | sosia-dev/sosia | d4d2d5edb0cd1d085b5a457eb6d19bf8e9fea7f5 | [
"MIT"
] | 31 | 2018-10-15T16:02:44.000Z | 2021-04-09T08:13:44.000Z | sosia/processing/caching/__init__.py | sosia-dev/sosia | d4d2d5edb0cd1d085b5a457eb6d19bf8e9fea7f5 | [
"MIT"
] | 2 | 2020-01-09T06:47:09.000Z | 2020-12-05T13:21:03.000Z | from sosia.processing.caching.inserting import *
from sosia.processing.caching.retrieving import *
from sosia.processing.caching.utils import *
| 36 | 49 | 0.833333 | 18 | 144 | 6.666667 | 0.444444 | 0.225 | 0.475 | 0.65 | 0.533333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 144 | 3 | 50 | 48 | 0.909091 | 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 |
688ee3b8c8472ed6db724f15989571f1689921f6 | 76 | py | Python | xappt_qt/plugins/__init__.py | cmontesano/xappt_qt | 74f8c62e0104a67b4b4eb65382df851221bf0bab | [
"MIT"
] | null | null | null | xappt_qt/plugins/__init__.py | cmontesano/xappt_qt | 74f8c62e0104a67b4b4eb65382df851221bf0bab | [
"MIT"
] | 12 | 2020-10-11T22:42:12.000Z | 2021-10-04T19:38:51.000Z | xappt_qt/plugins/__init__.py | cmontesano/xappt_qt | 74f8c62e0104a67b4b4eb65382df851221bf0bab | [
"MIT"
] | 1 | 2021-09-29T23:53:34.000Z | 2021-09-29T23:53:34.000Z | import xappt_qt.plugins.interfaces.qt
from xappt_qt.plugins.tools import *
| 19 | 37 | 0.828947 | 12 | 76 | 5.083333 | 0.583333 | 0.229508 | 0.459016 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.092105 | 76 | 3 | 38 | 25.333333 | 0.884058 | 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 |
689651dc76f5345adda2a00efcce0794ac630443 | 590 | py | Python | run.py | IntiTutorial/TERMUXMOD | 2142fe1a89c3bb452627726775834e4aa81b8f7a | [
"Apache-2.0"
] | null | null | null | run.py | IntiTutorial/TERMUXMOD | 2142fe1a89c3bb452627726775834e4aa81b8f7a | [
"Apache-2.0"
] | null | null | null | run.py | IntiTutorial/TERMUXMOD | 2142fe1a89c3bb452627726775834e4aa81b8f7a | [
"Apache-2.0"
] | 2 | 2020-02-07T07:26:03.000Z | 2020-02-17T12:47:26.000Z | #Compiled By ./HEZALA
#Github : https://github.com/IntiTutorial
import marshal
exec(marshal.loads('''c\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x00\x00@\x00\x00\x00s)\x00\x00\x00d\x00\x00d\x01\x00l\x00\x00Z\x00\x00d\x00\x00d\x01\x00l\x01\x00Z\x01\x00e\x00\x00j\x02\x00d\x02\x00\x83\x01\x00\x01d\x01\x00S(\x03\x00\x00\x00i... | 147.5 | 511 | 0.752542 | 123 | 590 | 3.609756 | 0.341463 | 0.472973 | 0.425676 | 0.405405 | 0.274775 | 0.274775 | 0.128378 | 0.128378 | 0.074324 | 0.074324 | 0 | 0.342513 | 0.015254 | 590 | 4 | 511 | 147.5 | 0.421687 | 0.101695 | 0 | 0 | 0 | 0.5 | 0.914934 | 0.913043 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 12 |
d7a7afcf4ae1b585771e56af3fd72cee9811b95a | 8,041 | py | Python | test/test_pb_remove.py | pandorabots/pb-cli | 06bb675399f196df2d460a7399e0209324b957a5 | [
"BSD-2-Clause"
] | 34 | 2015-06-07T03:36:52.000Z | 2021-04-14T12:49:22.000Z | test/test_pb_remove.py | pandorabots/pb-cli | 06bb675399f196df2d460a7399e0209324b957a5 | [
"BSD-2-Clause"
] | 17 | 2015-02-27T00:50:31.000Z | 2021-08-11T09:10:04.000Z | test/test_pb_remove.py | pandorabots/pb-cli | 06bb675399f196df2d460a7399e0209324b957a5 | [
"BSD-2-Clause"
] | 15 | 2015-05-29T16:31:49.000Z | 2020-12-08T05:42:08.000Z | import unittest
import subprocess
import json
import os
import util
import time
from TestConfig import *
config = {}
test_env = os.getenv('test_env', 'aiaas')
env_setup = TestConfig()
config = env_setup.setEnvironment(test_env)
cli = os.path.abspath('./pb-cli/index.js')
class TestPBRemove(unittest.TestCase):
@cl... | 31.410156 | 65 | 0.53165 | 824 | 8,041 | 5.042476 | 0.115291 | 0.051986 | 0.040433 | 0.046209 | 0.837304 | 0.808424 | 0.768712 | 0.733093 | 0.719134 | 0.708544 | 0 | 0.009538 | 0.335033 | 8,041 | 255 | 66 | 31.533333 | 0.767533 | 0 | 0 | 0.660287 | 0 | 0 | 0.183311 | 0 | 0 | 0 | 0 | 0 | 0.08134 | 0 | null | null | 0 | 0.033493 | null | null | 0.004785 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
d7bb5f77b9313ea88c4f648f61aad3b54432d571 | 569,189 | py | Python | djangoSIGE/static/Downloads/0002_popula_estado_e_municipio.py | dayvidallan/mercadinho22h | 0f67bdb545978543d72ab4b9b16e1d33ecec6293 | [
"MIT"
] | null | null | null | djangoSIGE/static/Downloads/0002_popula_estado_e_municipio.py | dayvidallan/mercadinho22h | 0f67bdb545978543d72ab4b9b16e1d33ecec6293 | [
"MIT"
] | null | null | null | djangoSIGE/static/Downloads/0002_popula_estado_e_municipio.py | dayvidallan/mercadinho22h | 0f67bdb545978543d72ab4b9b16e1d33ecec6293 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('base', '0001_initial'),
]
operations = [
migrations.RunSQL('''
INSERT INTO base_estado (id, nome, sigla) VALUES (... | 100.741416 | 123 | 0.724127 | 83,611 | 569,189 | 4.795135 | 0.182189 | 0.14045 | 0.19663 | 0.321486 | 0.731681 | 0.731681 | 0.731681 | 0.731681 | 0.729189 | 0.729189 | 0 | 0.130112 | 0.127281 | 569,189 | 5,649 | 124 | 100.759249 | 0.676995 | 0.000037 | 0 | 0 | 0 | 0.995214 | 0.999596 | 0.000037 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.0039 | 0.000355 | 0 | 0.000886 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 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 |
d7d65068211446f8515328894bb1ef1ab08df445 | 1,574 | py | Python | l3coefs_proc.py | RobbinBouwmeester/CALLC_evaluation | 0125ed88b767c305261cf5731c671f890bfacadd | [
"Apache-2.0"
] | 2 | 2020-01-23T09:51:37.000Z | 2020-04-23T00:28:16.000Z | l3coefs_proc.py | RobbinBouwmeester/CALLC_evaluation | 0125ed88b767c305261cf5731c671f890bfacadd | [
"Apache-2.0"
] | null | null | null | l3coefs_proc.py | RobbinBouwmeester/CALLC_evaluation | 0125ed88b767c305261cf5731c671f890bfacadd | [
"Apache-2.0"
] | null | null | null | infile = open("data/coefs/L3_coefs_nodup.csv")
outfile = open("data/coefs/L3_coefs_proc_nodup.csv","w")
coefs_dict = {}
for line in infile:
split_line = line.strip().split("\t")
mods = "_".join(split_line[0].split("_")[:-2])
mods_feat = "_".join(split_line[1].split("_")[:-1])
score = float(split_line[2... | 25.803279 | 56 | 0.658196 | 266 | 1,574 | 3.669173 | 0.146617 | 0.184426 | 0.186475 | 0.139344 | 0.983607 | 0.983607 | 0.930328 | 0.930328 | 0.860656 | 0.860656 | 0 | 0.019403 | 0.148666 | 1,574 | 61 | 57 | 25.803279 | 0.708955 | 0 | 0 | 0.916667 | 0 | 0 | 0.101587 | 0.07746 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.041667 | 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 |
d7dcc0ec8073cadec58ed0b2f2243253cbd913db | 300 | py | Python | tests/model/ddl/conftest.py | agdsn/pycroft | ea771141d59c88fdb8a782eafbe106240550a33a | [
"Apache-2.0"
] | 18 | 2016-04-20T19:00:56.000Z | 2021-12-19T16:43:57.000Z | tests/model/ddl/conftest.py | agdsn/pycroft | ea771141d59c88fdb8a782eafbe106240550a33a | [
"Apache-2.0"
] | 461 | 2016-07-20T00:42:59.000Z | 2022-03-25T17:03:07.000Z | tests/model/ddl/conftest.py | agdsn/pycroft | ea771141d59c88fdb8a782eafbe106240550a33a | [
"Apache-2.0"
] | 15 | 2016-07-15T18:46:43.000Z | 2021-03-17T20:08:39.000Z | import pytest
from tests.model.ddl import create_table
@pytest.fixture(scope='session')
def table():
return create_table('test')
@pytest.fixture(scope='session')
def table2():
return create_table('test2')
@pytest.fixture(scope='session')
def table3():
return create_table('test3')
| 15.789474 | 40 | 0.72 | 39 | 300 | 5.435897 | 0.461538 | 0.207547 | 0.254717 | 0.353774 | 0.396226 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015385 | 0.133333 | 300 | 18 | 41 | 16.666667 | 0.8 | 0 | 0 | 0.272727 | 0 | 0 | 0.116667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | true | 0 | 0.181818 | 0.272727 | 0.727273 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 7 |
d7ed52fa9552f645a82c7fd0b4d2cca8adbb5e17 | 184 | py | Python | theo/framework.py | TheodoreWon/python-library | 0ef99eec503970cf04d0ab89596faee791b27a09 | [
"MIT"
] | 3 | 2018-12-04T02:49:00.000Z | 2018-12-08T03:02:46.000Z | theo/framework.py | TheodoreWon/python-library | 0ef99eec503970cf04d0ab89596faee791b27a09 | [
"MIT"
] | null | null | null | theo/framework.py | TheodoreWon/python-library | 0ef99eec503970cf04d0ab89596faee791b27a09 | [
"MIT"
] | 1 | 2018-12-08T03:02:29.000Z | 2018-12-08T03:02:29.000Z | from theo.src.framework.DictList import DictList
from theo.src.framework.Log import Log
from theo.src.framework.Component import Component
from theo.src.framework.System import System
| 36.8 | 50 | 0.847826 | 28 | 184 | 5.571429 | 0.321429 | 0.205128 | 0.282051 | 0.512821 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086957 | 184 | 4 | 51 | 46 | 0.928571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
d7f5ab5e6b2b1514c04ba6b5b313f77045b944b3 | 163 | py | Python | moto/compat.py | stj/moto | 502957f1f9560cb6dff75271e6812498f4ff7bba | [
"Apache-2.0"
] | 3 | 2020-08-04T20:29:41.000Z | 2020-11-09T09:28:19.000Z | moto/compat.py | stj/moto | 502957f1f9560cb6dff75271e6812498f4ff7bba | [
"Apache-2.0"
] | null | null | null | moto/compat.py | stj/moto | 502957f1f9560cb6dff75271e6812498f4ff7bba | [
"Apache-2.0"
] | 1 | 2021-03-01T08:48:09.000Z | 2021-03-01T08:48:09.000Z | try:
from collections import OrderedDict # noqa
except ImportError:
# python 2.6 or earlier, use backport
from ordereddict import OrderedDict # noqa
| 27.166667 | 47 | 0.736196 | 20 | 163 | 6 | 0.75 | 0.283333 | 0.35 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015748 | 0.220859 | 163 | 5 | 48 | 32.6 | 0.929134 | 0.276074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.75 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 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 |
cc13a9f8f79176eea122bfb4b31773959bef68e3 | 91 | py | Python | wayremap/__init__.py | acro5piano/wayremap | 6240f61bdbcede68c90f5818da7f730b69bb484a | [
"MIT"
] | 44 | 2021-12-09T19:42:13.000Z | 2022-03-18T10:26:52.000Z | wayremap/__init__.py | acro5piano/wayremap | 6240f61bdbcede68c90f5818da7f730b69bb484a | [
"MIT"
] | 6 | 2021-12-11T07:02:39.000Z | 2022-02-19T05:16:45.000Z | wayremap/__init__.py | acro5piano/wayremap | 6240f61bdbcede68c90f5818da7f730b69bb484a | [
"MIT"
] | null | null | null | from wayremap.main import *
from wayremap.config import *
from wayremap.constants import *
| 22.75 | 32 | 0.802198 | 12 | 91 | 6.083333 | 0.5 | 0.493151 | 0.493151 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131868 | 91 | 3 | 33 | 30.333333 | 0.924051 | 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 |
cc1d8ecff3ee4958410c383f9567d7e00915ba60 | 147 | py | Python | gym-example/gym_example/envs/__init__.py | psimarro/gym_example | 13a7278ea817b00c80f723893dd3a51da49e8119 | [
"MIT"
] | null | null | null | gym-example/gym_example/envs/__init__.py | psimarro/gym_example | 13a7278ea817b00c80f723893dd3a51da49e8119 | [
"MIT"
] | null | null | null | gym-example/gym_example/envs/__init__.py | psimarro/gym_example | 13a7278ea817b00c80f723893dd3a51da49e8119 | [
"MIT"
] | null | null | null | from gym_example.envs.example_env import Example_v0
from gym_example.envs.fail1 import Fail_v1
from gym_example.envs.kvazaar_env import Kvazaar_v0
| 36.75 | 51 | 0.877551 | 26 | 147 | 4.653846 | 0.423077 | 0.173554 | 0.347107 | 0.446281 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02963 | 0.081633 | 147 | 3 | 52 | 49 | 0.866667 | 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 |
0be5e1dcfb2b96dd1ad75a45be21c347367c6fe7 | 314,819 | py | Python | docusign_esign/apis/templates_api.py | hunk/docusign-python-client | a643c42c1236715e74eef6fc279a1b29da1b5455 | [
"MIT"
] | null | null | null | docusign_esign/apis/templates_api.py | hunk/docusign-python-client | a643c42c1236715e74eef6fc279a1b29da1b5455 | [
"MIT"
] | null | null | null | docusign_esign/apis/templates_api.py | hunk/docusign-python-client | a643c42c1236715e74eef6fc279a1b29da1b5455 | [
"MIT"
] | null | null | null | # coding: utf-8
"""
DocuSign REST API
The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign.
OpenAPI spec version: v2.1
Contact: devcenter@docusign.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from _... | 50.218376 | 2,180 | 0.608115 | 34,396 | 314,819 | 5.337597 | 0.014595 | 0.043335 | 0.021047 | 0.020393 | 0.987559 | 0.984863 | 0.982254 | 0.980745 | 0.979612 | 0.977423 | 0 | 0.000587 | 0.313329 | 314,819 | 6,268 | 2,181 | 50.226388 | 0.84868 | 0.364444 | 0 | 0.82161 | 0 | 0.001267 | 0.227177 | 0.059354 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03327 | false | 0 | 0.002218 | 0 | 0.085234 | 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 |
041107094dc81c6940c5a007403bdb70a7e7bddf | 5,137 | py | Python | tests/test_implicit_flow.py | yaal-fr/canaille | 828d190adea7bc6e34d59bac42cbc1283509880b | [
"MIT"
] | 3 | 2020-11-03T14:44:53.000Z | 2021-09-26T16:49:01.000Z | tests/test_implicit_flow.py | yaal-fr/canaille | 828d190adea7bc6e34d59bac42cbc1283509880b | [
"MIT"
] | null | null | null | tests/test_implicit_flow.py | yaal-fr/canaille | 828d190adea7bc6e34d59bac42cbc1283509880b | [
"MIT"
] | null | null | null | from authlib.jose import jwt
from urllib.parse import urlsplit, parse_qs
from canaille.models import Token
def test_oauth_implicit(testclient, slapd_connection, user, client):
client.oauthGrantType = ["token"]
client.oauthTokenEndpointAuthMethod = "none"
client.save(slapd_connection)
res = testclien... | 29.866279 | 80 | 0.642593 | 582 | 5,137 | 5.542955 | 0.16323 | 0.055797 | 0.039058 | 0.046497 | 0.934594 | 0.934594 | 0.897086 | 0.897086 | 0.897086 | 0.897086 | 0 | 0.010997 | 0.221141 | 5,137 | 171 | 81 | 30.040936 | 0.795301 | 0 | 0 | 0.830882 | 0 | 0 | 0.17228 | 0 | 0 | 0 | 0 | 0 | 0.183824 | 1 | 0.022059 | false | 0.022059 | 0.022059 | 0 | 0.044118 | 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 |
0434419c384431baf765e6523ecd6c449dd0a84d | 146 | py | Python | playwell-rpa/playwell_rpa/launcher.py | jiyulongxu/playwell | 3a5dc4d009c6fd75487e208edf0318db4f9ad21d | [
"Apache-2.0"
] | 4 | 2019-09-01T02:05:09.000Z | 2022-01-04T06:08:14.000Z | playwell-rpa/playwell_rpa/launcher.py | jiyulongxu/playwell | 3a5dc4d009c6fd75487e208edf0318db4f9ad21d | [
"Apache-2.0"
] | null | null | null | playwell-rpa/playwell_rpa/launcher.py | jiyulongxu/playwell | 3a5dc4d009c6fd75487e208edf0318db4f9ad21d | [
"Apache-2.0"
] | 6 | 2019-11-14T13:55:17.000Z | 2022-02-09T01:42:24.000Z | """RPA launcher
"""
def launch():
# 加载web driver
from playwell_rpa.browser import init_web_driver_manager
init_web_driver_manager()
| 16.222222 | 60 | 0.726027 | 19 | 146 | 5.210526 | 0.684211 | 0.141414 | 0.262626 | 0.40404 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184932 | 146 | 8 | 61 | 18.25 | 0.831933 | 0.178082 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | true | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
044acb6344b74cf28d7bf66314df9a4b6f6cf08d | 2,281 | py | Python | vote/migrations/0008_auto_20210309_0029.py | jnegrete2005/JuradoFMS | 25848037e51de1781c419155615d0fb41edc07ec | [
"MIT"
] | 2 | 2021-02-24T21:57:50.000Z | 2021-03-15T08:44:09.000Z | vote/migrations/0008_auto_20210309_0029.py | jnegrete2005/JuradoFMS | 25848037e51de1781c419155615d0fb41edc07ec | [
"MIT"
] | null | null | null | vote/migrations/0008_auto_20210309_0029.py | jnegrete2005/JuradoFMS | 25848037e51de1781c419155615d0fb41edc07ec | [
"MIT"
] | null | null | null | # Generated by Django 3.1.5 on 2021-03-09 05:29
import django.contrib.postgres.fields
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('vote', '0007_auto_20210309_0028'),
]
operations = [
migrations.AlterField(
model_name='com... | 41.472727 | 163 | 0.641824 | 227 | 2,281 | 6.352423 | 0.246696 | 0.081137 | 0.131068 | 0.168516 | 0.837725 | 0.837725 | 0.718447 | 0.718447 | 0.718447 | 0.718447 | 0 | 0.025273 | 0.236738 | 2,281 | 54 | 164 | 42.240741 | 0.802987 | 0.019728 | 0 | 0.583333 | 1 | 0 | 0.07744 | 0.010295 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.041667 | 0 | 0.104167 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
9bd84e19a2b91b999343f716ce8aaafaaa910b1b | 147 | py | Python | backend/benefit/messages/tests/conftest.py | City-of-Helsinki/kesaseteli | 964f801c2dba72c4105b6e436b12b821b199d6d2 | [
"MIT"
] | 2 | 2021-05-10T09:28:35.000Z | 2021-05-17T12:15:34.000Z | backend/benefit/messages/tests/conftest.py | City-of-Helsinki/yjdh | 1c07576b456d2be9c3171363450ed46de2c1bbcb | [
"MIT"
] | 931 | 2021-05-21T15:24:35.000Z | 2022-03-31T20:07:40.000Z | backend/benefit/messages/tests/conftest.py | City-of-Helsinki/yjdh | 1c07576b456d2be9c3171363450ed46de2c1bbcb | [
"MIT"
] | 6 | 2021-07-06T11:07:02.000Z | 2022-02-07T12:42:21.000Z | from applications.tests.conftest import * # noqa
from common.tests.conftest import * # noqa
from helsinkibenefit.tests.conftest import * # noqa
| 36.75 | 52 | 0.77551 | 18 | 147 | 6.333333 | 0.444444 | 0.342105 | 0.5 | 0.605263 | 0.473684 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 147 | 3 | 53 | 49 | 0.904762 | 0.095238 | 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 |
9bd9b6c6006ee95050fb456789b696ace22b50c4 | 272 | py | Python | modAL/__init__.py | nibydlo/modAL | c0fe0200001c8c34e3fabb099fb70cf1e4bfb680 | [
"MIT"
] | 2 | 2020-01-22T14:34:01.000Z | 2020-01-22T14:51:18.000Z | modAL/__init__.py | nibydlo/modAL | c0fe0200001c8c34e3fabb099fb70cf1e4bfb680 | [
"MIT"
] | null | null | null | modAL/__init__.py | nibydlo/modAL | c0fe0200001c8c34e3fabb099fb70cf1e4bfb680 | [
"MIT"
] | null | null | null | from .models import ActiveLearner, Committee, CommitteeRegressor, KerasActiveLearner, DropoutActiveLearner, LearningLossActiveLearner
__all__ = ['ActiveLearner', 'Committee', 'CommitteeRegressor', 'KerasActiveLearner', 'DropoutActiveLearner', 'LearningLossActiveLearner'] | 90.666667 | 137 | 0.841912 | 16 | 272 | 14.0625 | 0.625 | 0.195556 | 0.355556 | 0.515556 | 0.915556 | 0.915556 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 272 | 3 | 137 | 90.666667 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0.377289 | 0.091575 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 1 | null | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 8 |
5002e8b05ba70b737b8dae488a2b8b56ba7e0299 | 168,195 | py | Python | imcsdk/imcmeta.py | ragupta-git/ImcSdk | 2e41f2ffe5282d38de85bc4739fa53dd2f0c9bb4 | [
"Apache-2.0"
] | null | null | null | imcsdk/imcmeta.py | ragupta-git/ImcSdk | 2e41f2ffe5282d38de85bc4739fa53dd2f0c9bb4 | [
"Apache-2.0"
] | null | null | null | imcsdk/imcmeta.py | ragupta-git/ImcSdk | 2e41f2ffe5282d38de85bc4739fa53dd2f0c9bb4 | [
"Apache-2.0"
] | 3 | 2018-11-14T13:02:40.000Z | 2018-11-14T13:49:38.000Z | # Copyright 2015 Cisco Systems, 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 writing... | 157.929577 | 2,698 | 0.688778 | 13,274 | 168,195 | 8.725102 | 0.067651 | 0.042135 | 0.076448 | 0.063825 | 0.864631 | 0.857076 | 0.855557 | 0.843348 | 0.832339 | 0.808249 | 0 | 0.024175 | 0.100621 | 168,195 | 1,064 | 2,699 | 158.078008 | 0.741451 | 0.004138 | 0 | 0.046243 | 0 | 0 | 0.567924 | 0.179585 | 0 | 0 | 0.011214 | 0 | 0.007707 | 1 | 0 | false | 0.014451 | 0.017341 | 0 | 0.034682 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
5041b3f65061973932c8af1093559c7c817fd4bc | 150 | py | Python | mantisshrimp/datasets/pets/__init__.py | ramaneswaran/mantisshrimp | d30c056f1f9f26a2ce42da73cfb32d591321f426 | [
"Apache-2.0"
] | null | null | null | mantisshrimp/datasets/pets/__init__.py | ramaneswaran/mantisshrimp | d30c056f1f9f26a2ce42da73cfb32d591321f426 | [
"Apache-2.0"
] | 8 | 2020-06-16T18:06:42.000Z | 2020-09-15T22:35:56.000Z | mantisshrimp/datasets/pets/__init__.py | ramaneswaran/mantisshrimp | d30c056f1f9f26a2ce42da73cfb32d591321f426 | [
"Apache-2.0"
] | null | null | null | from mantisshrimp.datasets.pets.data import *
from mantisshrimp.datasets.pets.parsers import *
from mantisshrimp.datasets.pets.visualization import *
| 37.5 | 54 | 0.84 | 18 | 150 | 7 | 0.444444 | 0.380952 | 0.571429 | 0.666667 | 0.539683 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08 | 150 | 3 | 55 | 50 | 0.913043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
ac966c017cb7bd82a1ca26d53acb914f3e574b47 | 4,281 | py | Python | src/genie/libs/parser/iosxr/tests/ShowPlatform/cli/equal/golden_output3_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/ShowPlatform/cli/equal/golden_output3_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/ShowPlatform/cli/equal/golden_output3_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | 309 | 2019-01-16T20:21:07.000Z | 2022-03-30T12:56:41.000Z | expected_output = {
"slot": {
"rp": {
"0/RSP0": {
"name": "A9K-RSP440-SE",
"full_slot": "0/RSP0/CPU0",
"state": "IOS XR RUN",
"config_state": "PWR,NSHUT,MON",
"redundancy_state": "Active"
}
},
... | 35.090164 | 56 | 0.286849 | 303 | 4,281 | 3.933993 | 0.122112 | 0.099832 | 0.199664 | 0.270973 | 0.916107 | 0.916107 | 0.916107 | 0.807047 | 0.807047 | 0.807047 | 0 | 0.058665 | 0.565989 | 4,281 | 121 | 57 | 35.380165 | 0.582885 | 0 | 0 | 0.603306 | 0 | 0 | 0.307405 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
acd92a0b625f087d2c37dbcc025de91cb62e6b25 | 66,132 | py | Python | delvewheel/dll_list.py | AntoineD/delvewheel | 8f5e837d6e09e9c19adfa70616d0e2cc9167811e | [
"MIT"
] | 47 | 2020-12-29T02:03:38.000Z | 2022-03-29T20:36:40.000Z | delvewheel/dll_list.py | AntoineD/delvewheel | 8f5e837d6e09e9c19adfa70616d0e2cc9167811e | [
"MIT"
] | 27 | 2021-01-04T21:46:24.000Z | 2022-03-26T02:12:11.000Z | delvewheel/dll_list.py | AntoineD/delvewheel | 8f5e837d6e09e9c19adfa70616d0e2cc9167811e | [
"MIT"
] | 8 | 2020-12-24T18:01:13.000Z | 2022-02-02T10:47:37.000Z | """Lists of DLLs to handle specially."""
import re
# ignore_names_32 is a set containing the lowercase names of all DLLs that can
# be assumed to be present on 32-bit Windows 7 or later. These are all the files
# with extension .dll or .drv found in C:\Windows\SysWOW64 on a vanilla Windows
# 7 Ultimate SP1 64-bit ins... | 20.52514 | 80 | 0.554542 | 7,026 | 66,132 | 5.206803 | 0.243097 | 0.00503 | 0.009622 | 0.01323 | 0.969767 | 0.969767 | 0.969767 | 0.966569 | 0.966569 | 0.966569 | 0 | 0.03813 | 0.244934 | 66,132 | 3,221 | 81 | 20.531512 | 0.694497 | 0.017435 | 0 | 0.987492 | 0 | 0 | 0.602602 | 0.054284 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.000313 | 0 | 0.000313 | 0.002502 | 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 |
4a0df3f0577390d0f6569e18967ef73e91da8be2 | 2,429 | py | Python | tests/unit/test_base64.py | weslambert/unfurl | b9a65db6842ac9f2c2e8165fc5eebfee4f2918b3 | [
"Apache-2.0"
] | 1 | 2020-07-23T18:42:44.000Z | 2020-07-23T18:42:44.000Z | tests/unit/test_base64.py | weslambert/unfurl | b9a65db6842ac9f2c2e8165fc5eebfee4f2918b3 | [
"Apache-2.0"
] | null | null | null | tests/unit/test_base64.py | weslambert/unfurl | b9a65db6842ac9f2c2e8165fc5eebfee4f2918b3 | [
"Apache-2.0"
] | 2 | 2020-07-06T20:27:07.000Z | 2020-07-23T18:42:49.000Z | from unfurl import Unfurl
import unittest
class TestBase64(unittest.TestCase):
def test_padded_b64_ascii(self):
""" Test a simple ASCII string that is base64-encoded."""
test = Unfurl()
test.add_to_queue(
data_type='url', key=None,
value='dGVzdHl0ZXN0dGVzdA==')
... | 30.3625 | 88 | 0.629889 | 301 | 2,429 | 4.963455 | 0.215947 | 0.150602 | 0.072289 | 0.088353 | 0.904284 | 0.904284 | 0.904284 | 0.904284 | 0.904284 | 0.904284 | 0 | 0.026228 | 0.262248 | 2,429 | 79 | 89 | 30.746835 | 0.807478 | 0.24578 | 0 | 0.731707 | 0 | 0 | 0.067703 | 0 | 0 | 0 | 0 | 0 | 0.439024 | 1 | 0.073171 | false | 0 | 0.04878 | 0 | 0.146341 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.