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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1bf46aaa6ab9e14cc4a7054440dee43e7bc7fa71 | 1,728 | py | Python | tests/api_tests.py | ownaginatious/markhov-chain | dc62afb142a6fa62261c5f3f0714feb211d71c70 | [
"MIT"
] | null | null | null | tests/api_tests.py | ownaginatious/markhov-chain | dc62afb142a6fa62261c5f3f0714feb211d71c70 | [
"MIT"
] | null | null | null | tests/api_tests.py | ownaginatious/markhov-chain | dc62afb142a6fa62261c5f3f0714feb211d71c70 | [
"MIT"
] | null | null | null | from chai import Chai
from markhov_chain import MarkhovChain
class ApiTests(Chai):
def setUp(self):
super(ApiTests, self).setUp()
self.mc = MarkhovChain()
def test_add_transition(self):
self.mc.add_transition("A", "B")
self.mc.add_transition("A", "B")
self.mc.add_transition("A", "B")
self.mc.add_tr... | 21.873418 | 51 | 0.627894 | 264 | 1,728 | 3.943182 | 0.109848 | 0.190202 | 0.172911 | 0.365034 | 0.838617 | 0.838617 | 0.817483 | 0.817483 | 0.817483 | 0.775216 | 0 | 0.004775 | 0.15162 | 1,728 | 78 | 52 | 22.153846 | 0.705321 | 0 | 0 | 0.641509 | 0 | 0 | 0.041112 | 0 | 0 | 0 | 0 | 0 | 0.056604 | 1 | 0.075472 | false | 0 | 0.037736 | 0 | 0.132075 | 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 |
40391d15f07324eaadf5dcb52472979eb58426df | 90,245 | py | Python | berdi/Section_05_VEC_Labeling_for_Tables/keywords.py | iVibudh/CER-ESA-Phase2 | 297c07ac5e8f9af484c70ce4c6620b3741621cdd | [
"MIT"
] | null | null | null | berdi/Section_05_VEC_Labeling_for_Tables/keywords.py | iVibudh/CER-ESA-Phase2 | 297c07ac5e8f9af484c70ce4c6620b3741621cdd | [
"MIT"
] | null | null | null | berdi/Section_05_VEC_Labeling_for_Tables/keywords.py | iVibudh/CER-ESA-Phase2 | 297c07ac5e8f9af484c70ce4c6620b3741621cdd | [
"MIT"
] | null | null | null | import pickle
import nltk
from nltk.corpus import stopwords
from nltk.stem.porter import *
from nltk.tokenize import word_tokenize
Landscape_terrain_and_weather = """Physical and Meteorological Environment
Physical Environment
Meteorological Environment
Precipitation
Snowfall
Wind
rain
Mean temperatures
Slope
Geotechn... | 16.046408 | 122 | 0.863571 | 11,576 | 90,245 | 6.722357 | 0.321095 | 0.004318 | 0.002956 | 0.004318 | 0.793711 | 0.789059 | 0.784356 | 0.783482 | 0.78248 | 0.77883 | 0 | 0.00092 | 0.12096 | 90,245 | 5,624 | 123 | 16.046408 | 0.980007 | 0 | 0 | 0.798213 | 0 | 0 | 0.97406 | 0.002438 | 0 | 0 | 0 | 0 | 0.000179 | 1 | 0 | false | 0.000536 | 0.001072 | 0 | 0.001072 | 0.000179 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
405efef856e3bfbe9876ef92fe4609e2f34c92b9 | 209,398 | py | Python | Train/Net.py | shelljane/ApproxFlow | e24aea877ebb66a79e4deacf6d635aabb1cb6662 | [
"MIT"
] | 2 | 2021-03-16T03:29:05.000Z | 2021-07-28T02:05:05.000Z | Train/Net.py | FDU-ME-ARC/ApproxFlow | e24aea877ebb66a79e4deacf6d635aabb1cb6662 | [
"MIT"
] | null | null | null | Train/Net.py | FDU-ME-ARC/ApproxFlow | e24aea877ebb66a79e4deacf6d635aabb1cb6662 | [
"MIT"
] | 1 | 2021-04-05T17:39:13.000Z | 2021-04-05T17:39:13.000Z | import tensorflow as tf
import Layer
import numpy as np
from Protocol import Net
from tensorflow.python.ops.array_ops import fake_quant_with_min_max_vars
from tensorflow.python.framework import graph_util
FAKEBITS = Layer.FAKEBITS
PORTION = 1.0
FROM = -1.0
TO = 1.0
HParamDefault = {'NumGPU': 1,
... | 61.173824 | 189 | 0.54512 | 21,040 | 209,398 | 5.310884 | 0.022814 | 0.042974 | 0.030445 | 0.036209 | 0.957384 | 0.953634 | 0.948452 | 0.946152 | 0.942689 | 0.941875 | 0 | 0.034116 | 0.31997 | 209,398 | 3,422 | 190 | 61.191701 | 0.750599 | 0.104313 | 0 | 0.902861 | 0 | 0 | 0.053168 | 0.000604 | 0 | 0 | 0 | 0 | 0.002826 | 1 | 0.026139 | false | 0.001413 | 0.002119 | 0.000353 | 0.049099 | 0.024373 | 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 |
408e965571886bdd1a11ae164c4e6a3ec90948ca | 1,202 | py | Python | python/module/data.py | PythonXCII/internship_aug2020 | 3e10bc7ced0c8f8efb5d5d2d8cf6809a82363ea0 | [
"Unlicense"
] | null | null | null | python/module/data.py | PythonXCII/internship_aug2020 | 3e10bc7ced0c8f8efb5d5d2d8cf6809a82363ea0 | [
"Unlicense"
] | null | null | null | python/module/data.py | PythonXCII/internship_aug2020 | 3e10bc7ced0c8f8efb5d5d2d8cf6809a82363ea0 | [
"Unlicense"
] | null | null | null | products = [
{"name": "Prod1", "amount": {"min": 10000, "max": 99999}, "price": {"min": 1, "max": 100}},
{"name": "Prod2", "amount": {"min": 10000, "max": 99999}, "price": {"min": 1, "max": 100}},
{"name": "Prod3", "amount": {"min": 10000, "max": 99999}, "price": {"min": 1, "max": 100}},
{"name": "Prod4... | 52.26087 | 96 | 0.506656 | 154 | 1,202 | 3.915584 | 0.233766 | 0.149254 | 0.232172 | 0.281924 | 0.759536 | 0.759536 | 0.759536 | 0.759536 | 0.666667 | 0.666667 | 0 | 0.154555 | 0.187188 | 1,202 | 22 | 97 | 54.636364 | 0.462641 | 0 | 0 | 0 | 0 | 0 | 0.325291 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0 | 0 | 0.210526 | 0.052632 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 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 |
40ce0430dab24f60ff496f813777045b3352747a | 10,452 | py | Python | test/testcase/test_snapshot.py | abin-coding/baidu | 8cd2bc1d69c7b93afc8e96c8af2c9489e0b51012 | [
"BSD-3-Clause"
] | 4 | 2015-11-05T07:39:09.000Z | 2021-11-17T10:45:46.000Z | test/testcase/test_snapshot.py | abin-coding/baidu | 8cd2bc1d69c7b93afc8e96c8af2c9489e0b51012 | [
"BSD-3-Clause"
] | null | null | null | test/testcase/test_snapshot.py | abin-coding/baidu | 8cd2bc1d69c7b93afc8e96c8af2c9489e0b51012 | [
"BSD-3-Clause"
] | 3 | 2018-10-18T03:31:26.000Z | 2019-11-15T04:19:08.000Z | '''
Copyright (c) 2015, Baidu.com, Inc. All Rights Reserved
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
'''
import nose
import time
import unittest
import common
from conf import const
def setup():
pass
def teardown():
pass
class Snapshot(unittest.TestC... | 44.288136 | 117 | 0.647723 | 1,444 | 10,452 | 4.435596 | 0.099723 | 0.094145 | 0.056831 | 0.073068 | 0.892116 | 0.862451 | 0.852771 | 0.8484 | 0.834348 | 0.815301 | 0 | 0.042475 | 0.240911 | 10,452 | 235 | 118 | 44.476596 | 0.76481 | 0.025163 | 0 | 0.726563 | 0 | 0 | 0.05726 | 0 | 0 | 0 | 0 | 0 | 0.109375 | 1 | 0.101563 | false | 0.023438 | 0.039063 | 0 | 0.148438 | 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 |
dc0d8b8c896e4c223d3af9c457714c28c3406540 | 667 | py | Python | commands.py | MaskedTrench/bot | 8ce755f7b195f8eb960dcb1f1b63de122ae3bd6f | [
"Apache-2.0"
] | null | null | null | commands.py | MaskedTrench/bot | 8ce755f7b195f8eb960dcb1f1b63de122ae3bd6f | [
"Apache-2.0"
] | null | null | null | commands.py | MaskedTrench/bot | 8ce755f7b195f8eb960dcb1f1b63de122ae3bd6f | [
"Apache-2.0"
] | null | null | null |
class vk:
def PersonalCommands(event):
text = event.text.split(" ")
print(text, event.text)
if '/команды' == text[0]: return "Text goes here"
elif '/регистрация' == text[0]: return "Link to forms"
elif '/статьи' == text[0]: return "FOR HOUNOR AND BLOOD!"
el... | 39.235294 | 70 | 0.550225 | 80 | 667 | 4.5875 | 0.3375 | 0.147139 | 0.179837 | 0.098093 | 0.882834 | 0.882834 | 0.882834 | 0.882834 | 0.882834 | 0.882834 | 0 | 0.012931 | 0.304348 | 667 | 17 | 71 | 39.235294 | 0.778017 | 0 | 0 | 0.8 | 0 | 0 | 0.23988 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0 | 0 | 0.2 | 0.133333 | 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 |
904d793d2ecc800237716d2d931d8b2150a1c56f | 1,842 | py | Python | tests/v0x02/test_common/test_flow_instruction.py | smythtech/python-openflow-legacy | f4ddb06ac8c98f074c04f027df4b52542e41c123 | [
"MIT"
] | null | null | null | tests/v0x02/test_common/test_flow_instruction.py | smythtech/python-openflow-legacy | f4ddb06ac8c98f074c04f027df4b52542e41c123 | [
"MIT"
] | null | null | null | tests/v0x02/test_common/test_flow_instruction.py | smythtech/python-openflow-legacy | f4ddb06ac8c98f074c04f027df4b52542e41c123 | [
"MIT"
] | null | null | null | import unittest
from pyof.v0x02.common import flow_instruction
class TestOFPInstructionGoToTable(unittest.TestCase):
def test_get_size(self):
message = flow_instruction.OFPInstructionGoToTable(
type=flow_instruction.OFPInstructionsType.OFPIT_GOTO_TABLE,
len=8, table_id=1, ... | 33.490909 | 79 | 0.674267 | 199 | 1,842 | 6.020101 | 0.211055 | 0.162771 | 0.075125 | 0.130217 | 0.8798 | 0.855593 | 0.855593 | 0.8197 | 0.75793 | 0.75793 | 0 | 0.024911 | 0.237242 | 1,842 | 54 | 80 | 34.111111 | 0.827758 | 0 | 0 | 0.853659 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073171 | 1 | 0.219512 | false | 0.073171 | 0.04878 | 0 | 0.341463 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 9 |
907ce10da11ce27e1fd621928884ac38e78b6a40 | 140 | py | Python | tests/test_utils/test_testing.py | bigdata-ustc/CangJie | a3264082fa0432d257b5c4722b14c55f9092a411 | [
"MIT"
] | 2 | 2020-03-04T02:27:29.000Z | 2020-05-22T04:07:24.000Z | tests/test_utils/test_testing.py | tswsxk/CangJie | 50c5183eae1d4f10c4cf364262437afcf54427fa | [
"MIT"
] | null | null | null | tests/test_utils/test_testing.py | tswsxk/CangJie | 50c5183eae1d4f10c4cf364262437afcf54427fa | [
"MIT"
] | 1 | 2020-01-07T08:34:59.000Z | 2020-01-07T08:34:59.000Z | # coding: utf-8
# 2020/1/3 @ tongshiwei
from CangJie.utils.testing import pseudo_sentence
def test_testing():
pseudo_sentence(5, 20)
| 15.555556 | 49 | 0.735714 | 21 | 140 | 4.761905 | 0.857143 | 0.28 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084746 | 0.157143 | 140 | 8 | 50 | 17.5 | 0.762712 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
90c98a3cd381e8c2019c749759c845e2980ff93a | 49,208 | py | Python | openprocurement/auctions/insider/tests/chronograph.py | kukirokuk/dutchsales | 41f6fca69c8ecd9dd4c4bba567635b418d371203 | [
"Apache-2.0"
] | null | null | null | openprocurement/auctions/insider/tests/chronograph.py | kukirokuk/dutchsales | 41f6fca69c8ecd9dd4c4bba567635b418d371203 | [
"Apache-2.0"
] | null | null | null | openprocurement/auctions/insider/tests/chronograph.py | kukirokuk/dutchsales | 41f6fca69c8ecd9dd4c4bba567635b418d371203 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import unittest
from datetime import datetime, timedelta
from openprocurement.api.models import get_now
from openprocurement.auctions.insider.tests.base import BaseAuctionWebTest, test_lots, test_bids, test_financial_auction_data, test_financial_organization, test_financial_bids, test_organizati... | 54.313466 | 194 | 0.661193 | 5,059 | 49,208 | 6.303815 | 0.039534 | 0.091248 | 0.108181 | 0.048258 | 0.856637 | 0.846602 | 0.841617 | 0.829576 | 0.822081 | 0.809821 | 0 | 0.01356 | 0.171212 | 49,208 | 905 | 195 | 54.373481 | 0.768408 | 0.000955 | 0 | 0.808 | 0 | 0 | 0.216246 | 0.024249 | 0 | 0 | 0 | 0 | 0.310667 | 1 | 0.033333 | false | 0 | 0.005333 | 0 | 0.138667 | 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 |
90f19b5ac44e535e444277cc315deb13a44860e6 | 2,717 | py | Python | tests/test_splitter.py | chris-santiago/tsfeast | a4177ecd23d2c55fd959f8d4cd011a15f5c57da6 | [
"MIT"
] | null | null | null | tests/test_splitter.py | chris-santiago/tsfeast | a4177ecd23d2c55fd959f8d4cd011a15f5c57da6 | [
"MIT"
] | 7 | 2021-08-04T18:10:55.000Z | 2021-08-21T20:36:59.000Z | tests/test_splitter.py | chris-santiago/tsfeast | a4177ecd23d2c55fd959f8d4cd011a15f5c57da6 | [
"MIT"
] | 2 | 2021-08-11T05:58:46.000Z | 2021-12-17T22:09:59.000Z | import numpy as np
import pandas as pd
import pytest
from tsfeast.splitter import EndogSeriesWindows, TimeSeriesWindows
class TestTimeSeriesWindows:
def test_split_sets(self, endog_uni, exog):
tsw = TimeSeriesWindows(train_length=3, test_length=1, gap_length=0)
windows = tsw.split(endog_uni, exog... | 38.814286 | 106 | 0.620169 | 362 | 2,717 | 4.383978 | 0.138122 | 0.145558 | 0.181474 | 0.172023 | 0.802773 | 0.777568 | 0.745432 | 0.717076 | 0.717076 | 0.666037 | 0 | 0.025138 | 0.267943 | 2,717 | 69 | 107 | 39.376812 | 0.77275 | 0 | 0 | 0.435484 | 0 | 0 | 0.050055 | 0 | 0 | 0 | 0 | 0 | 0.145161 | 1 | 0.080645 | false | 0 | 0.064516 | 0 | 0.16129 | 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 |
2928962c75bf68a1bae5cdcfe71fdcaf1fd24069 | 4,930 | py | Python | desktop/core/ext-py/xlwt-1.3.0/tests/test_unicodeutils.py | zhoudahong/hue | 9ec1b48e6abf08e81b74fa5fc4a03770e37aff92 | [
"Apache-2.0"
] | 5,079 | 2015-01-01T03:39:46.000Z | 2022-03-31T07:38:22.000Z | desktop/core/ext-py/xlwt-1.3.0/tests/test_unicodeutils.py | zhoudahong/hue | 9ec1b48e6abf08e81b74fa5fc4a03770e37aff92 | [
"Apache-2.0"
] | 1,623 | 2015-01-01T08:06:24.000Z | 2022-03-30T19:48:52.000Z | desktop/core/ext-py/xlwt-1.3.0/tests/test_unicodeutils.py | zhoudahong/hue | 9ec1b48e6abf08e81b74fa5fc4a03770e37aff92 | [
"Apache-2.0"
] | 2,033 | 2015-01-04T07:18:02.000Z | 2022-03-28T19:55:47.000Z | # coding:utf-8
import sys
import unittest
from xlwt.UnicodeUtils import upack1, upack2, upack2rt
class TestUpack(unittest.TestCase):
def test_upack1(self):
result = b'\x1d\x00abcdefghijklmnopqrstuvwxyz\xd6\xc4\xdc'
ustr = upack1(u"abcdefghijklmnopqrstuvwxyzÖÄÜ")
self.assertEqual(ustr, res... | 129.736842 | 3,550 | 0.726978 | 1,006 | 4,930 | 3.548708 | 0.280318 | 0.055462 | 0.068067 | 0.07395 | 0.30084 | 0.289076 | 0.267227 | 0.254902 | 0.254902 | 0.22521 | 0 | 0.313961 | 0.054158 | 4,930 | 37 | 3,551 | 133.243243 | 0.451641 | 0.002434 | 0 | 0.214286 | 0 | 0.107143 | 0.444264 | 0.437144 | 0 | 1 | 0.001017 | 0 | 0.214286 | 1 | 0.214286 | false | 0 | 0.107143 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
297f81e0a5ce5ff74ab6d3164d24f781a7df2e8f | 200 | py | Python | test/test_fuzzy_game.py | xfuzzycomp/FuzzyAsteroids | 636707499b4689bdecd8af32231c3ffd43f6583b | [
"MIT"
] | 1 | 2021-09-14T20:38:08.000Z | 2021-09-14T20:38:08.000Z | test/test_fuzzy_game.py | xfuzzycomp/FuzzyAsteroids | 636707499b4689bdecd8af32231c3ffd43f6583b | [
"MIT"
] | null | null | null | test/test_fuzzy_game.py | xfuzzycomp/FuzzyAsteroids | 636707499b4689bdecd8af32231c3ffd43f6583b | [
"MIT"
] | null | null | null | from unittest import TestCase
from src.fuzzy_asteroids.fuzzy_controller import *
from src.fuzzy_asteroids.fuzzy_asteroids import FuzzyAsteroidGame, Scenario
class TestFuzzyGame(TestCase):
pass
| 22.222222 | 75 | 0.84 | 24 | 200 | 6.833333 | 0.541667 | 0.256098 | 0.146341 | 0.256098 | 0.317073 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115 | 200 | 8 | 76 | 25 | 0.926554 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.2 | 0.6 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 7 |
468377cd18e71597a5421f1a0ebc1f1bd2581277 | 1,023 | py | Python | tests/test_optimizers/_parametrize.py | PartiallyTyped/Hyperactive | 99d4f6416cf724d5dbe797c2a1a1f9ae22e7d482 | [
"MIT"
] | 382 | 2019-07-16T13:30:15.000Z | 2022-03-30T22:29:07.000Z | tests/test_optimizers/_parametrize.py | PartiallyTyped/Hyperactive | 99d4f6416cf724d5dbe797c2a1a1f9ae22e7d482 | [
"MIT"
] | 46 | 2019-08-27T18:07:47.000Z | 2022-03-16T16:28:10.000Z | tests/test_optimizers/_parametrize.py | PartiallyTyped/Hyperactive | 99d4f6416cf724d5dbe797c2a1a1f9ae22e7d482 | [
"MIT"
] | 35 | 2019-08-03T00:51:09.000Z | 2021-12-03T19:06:07.000Z | from hyperactive import (
HillClimbingOptimizer,
StochasticHillClimbingOptimizer,
RepulsingHillClimbingOptimizer,
RandomSearchOptimizer,
RandomRestartHillClimbingOptimizer,
RandomAnnealingOptimizer,
SimulatedAnnealingOptimizer,
ParallelTemperingOptimizer,
ParticleSwarmOptimizer,
... | 26.921053 | 45 | 0.717498 | 33 | 1,023 | 22.242424 | 0.575758 | 0.141689 | 0.223433 | 0.280654 | 0.945504 | 0.945504 | 0.945504 | 0.945504 | 0.945504 | 0.945504 | 0 | 0 | 0.217009 | 1,023 | 37 | 46 | 27.648649 | 0.916355 | 0 | 0 | 0 | 0 | 0 | 0.008798 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.028571 | 0 | 0.028571 | 0 | 0 | 0 | 1 | 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 | 9 |
46934f93a99993a4a8a8ae8f292421d6f3837197 | 10,645 | py | Python | bootcamp/traceroute/views.py | davismathew/netbot-django | 5a46368ba7c16790e1b96292eecfde6f8f35d2e5 | [
"MIT"
] | null | null | null | bootcamp/traceroute/views.py | davismathew/netbot-django | 5a46368ba7c16790e1b96292eecfde6f8f35d2e5 | [
"MIT"
] | null | null | null | bootcamp/traceroute/views.py | davismathew/netbot-django | 5a46368ba7c16790e1b96292eecfde6f8f35d2e5 | [
"MIT"
] | null | null | null | from django.shortcuts import render, redirect, get_object_or_404
from django.http import HttpResponseBadRequest, HttpResponse
from bootcamp.tasks.models import Task
from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger
from bootcamp.tasks.forms import TaskForm
from django.contrib.auth.decorators impo... | 36.084746 | 184 | 0.654486 | 1,200 | 10,645 | 5.761667 | 0.120833 | 0.058866 | 0.07492 | 0.052647 | 0.84799 | 0.835985 | 0.825571 | 0.815158 | 0.76497 | 0.750217 | 0 | 0.004858 | 0.187788 | 10,645 | 294 | 185 | 36.207483 | 0.794818 | 0.046407 | 0 | 0.761261 | 0 | 0 | 0.244201 | 0.062481 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04955 | false | 0 | 0.04955 | 0 | 0.193694 | 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 |
46a8106832fc86d96aa0c267b77a51219ca8aa64 | 131 | py | Python | src/detect-abnormal-temps/enviroment_temperature.py | latonaio/detect-abnormal-set-of-temperatures | e5cda1156e23f77f0feb16b56e3624807592fafb | [
"MIT"
] | 8 | 2021-10-02T02:50:34.000Z | 2021-11-05T04:34:38.000Z | src/detect-abnormal-temps/enviroment_temperature.py | latonaio/detect-abnormal-set-of-temperatures | e5cda1156e23f77f0feb16b56e3624807592fafb | [
"MIT"
] | null | null | null | src/detect-abnormal-temps/enviroment_temperature.py | latonaio/detect-abnormal-set-of-temperatures | e5cda1156e23f77f0feb16b56e3624807592fafb | [
"MIT"
] | null | null | null |
import random
def get_enviromental_temperature():
#FIXME : get temerature from sensor
return random.randint(20, 25)
| 16.375 | 39 | 0.717557 | 16 | 131 | 5.75 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038835 | 0.21374 | 131 | 7 | 40 | 18.714286 | 0.854369 | 0.259542 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 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 | 1 | 0 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 8 |
314bae4978630cb75a5b15193e2c56fa0874eaf8 | 38,821 | py | Python | lockss_repository/api/collections_api.py | lockss/lockss-repository-python | 3e28121f9beed27d43af57f66b3dc9c339b274d8 | [
"BSD-3-Clause"
] | null | null | null | lockss_repository/api/collections_api.py | lockss/lockss-repository-python | 3e28121f9beed27d43af57f66b3dc9c339b274d8 | [
"BSD-3-Clause"
] | null | null | null | lockss_repository/api/collections_api.py | lockss/lockss-repository-python | 3e28121f9beed27d43af57f66b3dc9c339b274d8 | [
"BSD-3-Clause"
] | null | null | null | # coding: utf-8
"""
LOCKSS Repository Service REST API
API of the LOCKSS RepositoryService for the LAAWS project # noqa: E501
OpenAPI spec version: 1.9
Contact: dlvargas@stanford.edu
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
im... | 43.964892 | 159 | 0.635378 | 4,277 | 38,821 | 5.55062 | 0.04606 | 0.04246 | 0.056613 | 0.024263 | 0.965333 | 0.956024 | 0.952275 | 0.945324 | 0.936647 | 0.926411 | 0 | 0.013794 | 0.279153 | 38,821 | 882 | 160 | 44.014739 | 0.834548 | 0.06275 | 0 | 0.783058 | 0 | 0 | 0.21982 | 0.077515 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.008264 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
315746974e69f625bc7caafc3ff172ff3f8ede0a | 172 | py | Python | collection_G/machine_learning/__init__.py | STomoya/collection_G | 5ffbdb47d4f8c27fa6eef4b6f769fe5ae4598f9f | [
"MIT"
] | null | null | null | collection_G/machine_learning/__init__.py | STomoya/collection_G | 5ffbdb47d4f8c27fa6eef4b6f769fe5ae4598f9f | [
"MIT"
] | null | null | null | collection_G/machine_learning/__init__.py | STomoya/collection_G | 5ffbdb47d4f8c27fa6eef4b6f769fe5ae4598f9f | [
"MIT"
] | null | null | null |
from .keras import plot_keras_history
from .sklearn import split_data
from .sklearn import encode_target
from .sklearn import plot_confusion_matrix
from . import pytorch | 21.5 | 42 | 0.843023 | 25 | 172 | 5.56 | 0.52 | 0.23741 | 0.366906 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127907 | 172 | 8 | 43 | 21.5 | 0.926667 | 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 |
315f2bef3e17c7a64506f51d88cafc1ec609e079 | 2,523 | py | Python | jackpot/models.py | clonetech/jackpotsone | 512d018f431eef7649712ad9c9e8e40d99ddd00c | [
"BSD-3-Clause"
] | null | null | null | jackpot/models.py | clonetech/jackpotsone | 512d018f431eef7649712ad9c9e8e40d99ddd00c | [
"BSD-3-Clause"
] | 3 | 2020-06-05T18:28:06.000Z | 2021-06-10T20:33:26.000Z | jackpot/models.py | clonetech/jackpotsone | 512d018f431eef7649712ad9c9e8e40d99ddd00c | [
"BSD-3-Clause"
] | null | null | null | from django.db import models
from django.contrib.auth.models import User
from django.utils import timezone
import datetime
from django.conf import settings
from django.urls import reverse
from django.db.models.signals import post_save
from django.dispatch import receiver
class Punter(models.Model):
published_date... | 38.815385 | 110 | 0.717004 | 317 | 2,523 | 5.514196 | 0.18612 | 0.188787 | 0.226545 | 0.30206 | 0.825515 | 0.825515 | 0.806064 | 0.790046 | 0.758009 | 0.758009 | 0 | 0.034026 | 0.161316 | 2,523 | 64 | 111 | 39.421875 | 0.79206 | 0 | 0 | 0.735849 | 0 | 0 | 0.05549 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075472 | false | 0 | 0.150943 | 0.075472 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
31861d3a31bc5021eb63adc8dfe1430e7abf184c | 49 | py | Python | server/server/LeConf.py | JackZxj/RoboticDigitalTwin | e74db961c1562eb770e5093f74f3aa8167a2f05b | [
"MIT"
] | 7 | 2020-07-27T12:33:18.000Z | 2021-11-06T09:30:32.000Z | server/server/LeConf.py | JackZxj/RoboticDigitalTwin | e74db961c1562eb770e5093f74f3aa8167a2f05b | [
"MIT"
] | null | null | null | server/server/LeConf.py | JackZxj/RoboticDigitalTwin | e74db961c1562eb770e5093f74f3aa8167a2f05b | [
"MIT"
] | 6 | 2020-07-07T01:11:53.000Z | 2021-04-23T03:44:44.000Z | Deviation = (1500, 1500, 1500, 1500, 1500, 1500)
| 24.5 | 48 | 0.673469 | 7 | 49 | 4.714286 | 0.285714 | 1.212121 | 1.454545 | 1.454545 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0.585366 | 0.163265 | 49 | 1 | 49 | 49 | 0.219512 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 1 | 1 | 1 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
31a5a30aedbccf05973ef45df8a5ab9818462fa5 | 2,124 | py | Python | aws_marketplace/using_model_packages/amazon_demo_product/src/scikit_product_arns.py | jerrypeng7773/amazon-sagemaker-examples | c5ddecce1f739a345465b9a38b064983a129141d | [
"Apache-2.0"
] | 2,610 | 2020-10-01T14:14:53.000Z | 2022-03-31T18:02:31.000Z | aws_marketplace/using_model_packages/amazon_demo_product/src/scikit_product_arns.py | jerrypeng7773/amazon-sagemaker-examples | c5ddecce1f739a345465b9a38b064983a129141d | [
"Apache-2.0"
] | 1,959 | 2020-09-30T20:22:42.000Z | 2022-03-31T23:58:37.000Z | aws_marketplace/using_model_packages/amazon_demo_product/src/scikit_product_arns.py | jerrypeng7773/amazon-sagemaker-examples | c5ddecce1f739a345465b9a38b064983a129141d | [
"Apache-2.0"
] | 2,052 | 2020-09-30T22:11:46.000Z | 2022-03-31T23:02:51.000Z | class ScikitArnProvider:
@staticmethod
def get_model_package_arn(current_region):
mapping = {
"ap-south-1": "arn:aws:sagemaker:ap-south-1:077584701553:model-package/scikit-iris-detector-154230595-8f00905c1f927a512b73ea29dd09ae30",
"ap-northeast-2": "arn:aws:sagemaker:ap-northeast... | 106.2 | 156 | 0.760829 | 236 | 2,124 | 6.826271 | 0.186441 | 0.104283 | 0.121043 | 0.177529 | 0.81378 | 0.623836 | 0.623836 | 0.535692 | 0.490379 | 0 | 0 | 0.301211 | 0.105932 | 2,124 | 19 | 157 | 111.789474 | 0.54713 | 0 | 0 | 0 | 0 | 0.684211 | 0.802731 | 0.734934 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0 | 0 | 0.157895 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
732e15bcbabdf63515fb362ddeb261e6b7455494 | 195 | py | Python | dev/Gems/CloudGemMetric/v1/AWS/python/windows/Lib/numba/cffi_support.py | jeikabu/lumberyard | 07228c605ce16cbf5aaa209a94a3cb9d6c1a4115 | [
"AML"
] | 1,738 | 2017-09-21T10:59:12.000Z | 2022-03-31T21:05:46.000Z | dev/Gems/CloudGemMetric/v1/AWS/python/windows/Lib/numba/cffi_support.py | jeikabu/lumberyard | 07228c605ce16cbf5aaa209a94a3cb9d6c1a4115 | [
"AML"
] | 427 | 2017-09-29T22:54:36.000Z | 2022-02-15T19:26:50.000Z | dev/Gems/CloudGemMetric/v1/AWS/python/windows/Lib/numba/cffi_support.py | jeikabu/lumberyard | 07228c605ce16cbf5aaa209a94a3cb9d6c1a4115 | [
"AML"
] | 671 | 2017-09-21T08:04:01.000Z | 2022-03-29T14:30:07.000Z | # -*- coding: utf-8 -*-
"""
Alias to numba.typing.cffi_utils for backward compatibility
"""
from __future__ import print_function, division, absolute_import
from numba.typing.cffi_utils import *
| 27.857143 | 64 | 0.769231 | 26 | 195 | 5.461538 | 0.730769 | 0.15493 | 0.211268 | 0.28169 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005814 | 0.117949 | 195 | 6 | 65 | 32.5 | 0.819767 | 0.420513 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0.5 | 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 | 1 | 0 | 8 |
734e7be00f5be4565ab9d58b44ae82f605e8265c | 26,762 | py | Python | source/figure/distance_vis.py | phygitalism/points2surf | c8e6d47062fc068802e179a37427981c8e10b128 | [
"MIT"
] | 260 | 2020-07-09T13:21:51.000Z | 2022-03-30T09:48:49.000Z | source/figure/distance_vis.py | phygitalism/points2surf | c8e6d47062fc068802e179a37427981c8e10b128 | [
"MIT"
] | 14 | 2020-12-16T05:33:59.000Z | 2022-02-11T01:03:29.000Z | source/figure/distance_vis.py | phygitalism/points2surf | c8e6d47062fc068802e179a37427981c8e10b128 | [
"MIT"
] | 31 | 2020-07-22T13:13:38.000Z | 2022-03-04T16:14:09.000Z | # This messy code computes vertex colors based on the distance reconstruction <-> GT mesh
from source.base import parula_colormap
from source.base import utils_mp
import numpy as np
import trimesh
import trimesh.proximity
def get_normalization_target(distances: list, cut_percentil=0.9):
dist_concat = np.concat... | 69.692708 | 145 | 0.72319 | 3,348 | 26,762 | 5.514038 | 0.083035 | 0.072802 | 0.150263 | 0.229348 | 0.815557 | 0.799144 | 0.787769 | 0.774173 | 0.768106 | 0.768106 | 0 | 0.040191 | 0.153015 | 26,762 | 383 | 146 | 69.874674 | 0.774253 | 0.691652 | 0 | 0.130841 | 0 | 0 | 0.237588 | 0.199975 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046729 | false | 0 | 0.065421 | 0 | 0.140187 | 0.018692 | 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 |
b4053e6a49a2d2dda8ef7eb7bf5c30050de097fd | 26,254 | py | Python | models/modules/shift_unet.py | Sunshine352/Shift-Net_pytorch | a7e7ddbf966bd65f16e7fe2c36ec6be7e9e813d0 | [
"MIT"
] | 1 | 2018-12-21T05:42:07.000Z | 2018-12-21T05:42:07.000Z | models/modules/shift_unet.py | Sunshine352/Shift-Net_pytorch | a7e7ddbf966bd65f16e7fe2c36ec6be7e9e813d0 | [
"MIT"
] | null | null | null | models/modules/shift_unet.py | Sunshine352/Shift-Net_pytorch | a7e7ddbf966bd65f16e7fe2c36ec6be7e9e813d0 | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
import torch.nn.functional as F
from models.accelerated_shift_net.accelerated_InnerShiftTriple import AcceleratedInnerShiftTriple
from models.shift_net.InnerCos import InnerCos
from models.shift_net.InnerShiftTriple import InnerShiftTriple
from models.soft_shift_net.innerSoftShiftTri... | 50.295019 | 332 | 0.58353 | 3,049 | 26,254 | 4.838636 | 0.066251 | 0.041483 | 0.021148 | 0.029282 | 0.911476 | 0.909035 | 0.909035 | 0.907002 | 0.907002 | 0.902528 | 0 | 0.014962 | 0.307572 | 26,254 | 522 | 333 | 50.295019 | 0.796578 | 0.207245 | 0 | 0.831429 | 0 | 0 | 0.001973 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051429 | false | 0 | 0.025714 | 0.011429 | 0.142857 | 0.005714 | 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 |
b40b6fed2d4068002dc842000b5e9bcbcf0c4b9a | 130,927 | py | Python | build/PureCloudPlatformClientV2/apis/content_management_api.py | cjohnson-ctl/platform-client-sdk-python | 38ce53bb8012b66e8a43cc8bd6ff00cf6cc99100 | [
"MIT"
] | 10 | 2019-02-22T00:27:08.000Z | 2021-09-12T23:23:44.000Z | libs/PureCloudPlatformClientV2/apis/content_management_api.py | rocketbot-cl/genesysCloud | dd9d9b5ebb90a82bab98c0d88b9585c22c91f333 | [
"MIT"
] | 5 | 2018-06-07T08:32:00.000Z | 2021-07-28T17:37:26.000Z | libs/PureCloudPlatformClientV2/apis/content_management_api.py | rocketbot-cl/genesysCloud | dd9d9b5ebb90a82bab98c0d88b9585c22c91f333 | [
"MIT"
] | 6 | 2020-04-09T17:43:07.000Z | 2022-02-17T08:48:05.000Z | # coding: utf-8
"""
ContentManagementApi.py
Copyright 2016 SmartBear Software
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 ... | 40.409568 | 260 | 0.556845 | 12,696 | 130,927 | 5.544266 | 0.028986 | 0.038869 | 0.021608 | 0.020514 | 0.931382 | 0.921466 | 0.9103 | 0.907316 | 0.899929 | 0.896093 | 0 | 0.000621 | 0.360193 | 130,927 | 3,239 | 261 | 40.422044 | 0.839676 | 0.25638 | 0 | 0.849942 | 0 | 0 | 0.207445 | 0.058135 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022596 | false | 0 | 0.004056 | 0 | 0.049247 | 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 |
b43df1d54134f3214c930f51e2e5bc4d91d09329 | 136 | py | Python | icedata/datasets/birds/__init__.py | ganesh3/icedata | 16c26ea3d8f96b99357683849d6bd363bf12a827 | [
"Apache-2.0"
] | null | null | null | icedata/datasets/birds/__init__.py | ganesh3/icedata | 16c26ea3d8f96b99357683849d6bd363bf12a827 | [
"Apache-2.0"
] | null | null | null | icedata/datasets/birds/__init__.py | ganesh3/icedata | 16c26ea3d8f96b99357683849d6bd363bf12a827 | [
"Apache-2.0"
] | null | null | null | from icedata.datasets.birds.data import *
from icedata.datasets.birds.parser import *
from icedata.datasets.birds import trained_models
| 34 | 49 | 0.838235 | 19 | 136 | 5.947368 | 0.473684 | 0.292035 | 0.504425 | 0.637168 | 0.530973 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088235 | 136 | 3 | 50 | 45.333333 | 0.91129 | 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 |
b44f0f907af65a256bf5da5cc4aa0d903df54279 | 14,025 | py | Python | core/domain/rights_manager_test.py | VictoriaRoux/oppia | 5ae2a7f0b5c85d6e28222844d22ebdbfb81923c6 | [
"Apache-2.0"
] | 3 | 2015-03-17T01:34:14.000Z | 2015-04-11T10:35:53.000Z | core/domain/rights_manager_test.py | VictoriaRoux/oppia | 5ae2a7f0b5c85d6e28222844d22ebdbfb81923c6 | [
"Apache-2.0"
] | null | null | null | core/domain/rights_manager_test.py | VictoriaRoux/oppia | 5ae2a7f0b5c85d6e28222844d22ebdbfb81923c6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2014 The Oppia Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | 43.153846 | 79 | 0.688627 | 1,966 | 14,025 | 4.565107 | 0.093082 | 0.08156 | 0.129248 | 0.161783 | 0.820501 | 0.791755 | 0.77493 | 0.773816 | 0.768914 | 0.768134 | 0 | 0.002353 | 0.212121 | 14,025 | 324 | 80 | 43.287037 | 0.809864 | 0.075579 | 0 | 0.702479 | 0 | 0 | 0.033326 | 0 | 0 | 0 | 0 | 0 | 0.289256 | 1 | 0.061983 | false | 0.008264 | 0.016529 | 0 | 0.082645 | 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 |
b481e59c25ea90dcb3093e87c206809f79add5d8 | 20,981 | py | Python | tests/test_observable/test_when.py | AlexMost/RxPY | 05cb14c72806dc41e243789c05f498dede11cebd | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | tests/test_observable/test_when.py | AlexMost/RxPY | 05cb14c72806dc41e243789c05f498dede11cebd | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | tests/test_observable/test_when.py | AlexMost/RxPY | 05cb14c72806dc41e243789c05f498dede11cebd | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2021-11-04T11:13:49.000Z | 2021-11-04T11:13:49.000Z | import unittest
from datetime import datetime
from rx.observable import Observable
from rx.testing import TestScheduler, ReactiveTest, is_prime
from rx.disposables import SerialDisposable
on_next = ReactiveTest.on_next
on_completed = ReactiveTest.on_completed
on_error = ReactiveTest.on_error
subscribe = ReactiveTest.... | 32.528682 | 168 | 0.54454 | 2,674 | 20,981 | 4.084144 | 0.046746 | 0.059335 | 0.075817 | 0.117938 | 0.892775 | 0.866404 | 0.858346 | 0.85798 | 0.852761 | 0.840491 | 0 | 0.048152 | 0.326915 | 20,981 | 644 | 169 | 32.579193 | 0.725181 | 0.002526 | 0 | 0.822485 | 0 | 0 | 0.001625 | 0 | 0 | 0 | 0 | 0 | 0.065089 | 1 | 0.201183 | false | 0.001972 | 0.009862 | 0.051282 | 0.331361 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
c33b56fc6f943edcabd3fb042d53877a7c42f3e3 | 135 | py | Python | katas/kyu_8/find_the_position.py | the-zebulan/CodeWars | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | [
"MIT"
] | 40 | 2016-03-09T12:26:20.000Z | 2022-03-23T08:44:51.000Z | katas/kyu_8/find_the_position.py | akalynych/CodeWars | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | [
"MIT"
] | null | null | null | katas/kyu_8/find_the_position.py | akalynych/CodeWars | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | [
"MIT"
] | 36 | 2016-11-07T19:59:58.000Z | 2022-03-31T11:18:27.000Z | from string import ascii_lowercase
def position(char):
return 'Position of alphabet: {}'.format(ascii_lowercase.index(char) + 1)
| 22.5 | 77 | 0.748148 | 18 | 135 | 5.5 | 0.777778 | 0.282828 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008621 | 0.140741 | 135 | 5 | 78 | 27 | 0.844828 | 0 | 0 | 0 | 0 | 0 | 0.177778 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 7 |
c3401e30f8d995f7d558d6f99789dc9afcbea3fc | 202 | py | Python | creational/factory_method/data/parcel.py | Kozak24/Patterns | 351d5c11f7c64ce5d58db37b6715fc8f7d31945a | [
"MIT"
] | null | null | null | creational/factory_method/data/parcel.py | Kozak24/Patterns | 351d5c11f7c64ce5d58db37b6715fc8f7d31945a | [
"MIT"
] | null | null | null | creational/factory_method/data/parcel.py | Kozak24/Patterns | 351d5c11f7c64ce5d58db37b6715fc8f7d31945a | [
"MIT"
] | null | null | null | class Parcel:
def __init__(self, parcel_id: str, weight: float) -> None:
self.parcel_id = parcel_id
self.weight = weight
def __str__(self) -> str:
return self.parcel_id
| 25.25 | 62 | 0.628713 | 27 | 202 | 4.259259 | 0.407407 | 0.278261 | 0.313043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.272277 | 202 | 7 | 63 | 28.857143 | 0.782313 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.166667 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 7 |
c358c9827fd52ca6234d44b241c701e5e27aec3c | 27 | py | Python | another_talib/supportandresistance.py | marianobilli/another-talib | 33c377f4da7033f0093fbc5eb7d7118d0b2b964e | [
"MIT"
] | null | null | null | another_talib/supportandresistance.py | marianobilli/another-talib | 33c377f4da7033f0093fbc5eb7d7118d0b2b964e | [
"MIT"
] | null | null | null | another_talib/supportandresistance.py | marianobilli/another-talib | 33c377f4da7033f0093fbc5eb7d7118d0b2b964e | [
"MIT"
] | null | null | null | def demo():
return True | 13.5 | 15 | 0.62963 | 4 | 27 | 4.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.259259 | 27 | 2 | 15 | 13.5 | 0.85 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0 | 0 | 0.5 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 7 |
6f0688e199955aa677b17d46c60767e34cdfc7fb | 38 | py | Python | public/views/__init__.py | cmisid/Wasty-Database | c2e350e3be2cb60df87c9a1481e5da3342c6b73b | [
"Apache-2.0"
] | null | null | null | public/views/__init__.py | cmisid/Wasty-Database | c2e350e3be2cb60df87c9a1481e5da3342c6b73b | [
"Apache-2.0"
] | null | null | null | public/views/__init__.py | cmisid/Wasty-Database | c2e350e3be2cb60df87c9a1481e5da3342c6b73b | [
"Apache-2.0"
] | null | null | null | from . import base
from . import rest
| 12.666667 | 18 | 0.736842 | 6 | 38 | 4.666667 | 0.666667 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210526 | 38 | 2 | 19 | 19 | 0.933333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
6f2804e36f7619d7f0f84ccf68602b3aa50df946 | 5,288 | py | Python | main.py | zaypaihtet/ZPH-DEFACE | d19f674931168779caa4cbfc3fb6c9185ca48d89 | [
"MIT"
] | null | null | null | main.py | zaypaihtet/ZPH-DEFACE | d19f674931168779caa4cbfc3fb6c9185ca48d89 | [
"MIT"
] | null | null | null | main.py | zaypaihtet/ZPH-DEFACE | d19f674931168779caa4cbfc3fb6c9185ca48d89 | [
"MIT"
] | null | null | null | #Encrypted with Crypton
#Created by OVERDOSIS
import base64
import marshal
exec(marshal.loads(base64.b64decode("YwAAAAAAAAAABQAAAEAAAABzmQAAAHkoAGQAAGQBAGwAAFoAAGQAAGQBAGwBAFoCAGQAAGQBAGwDAFoDAFduGwAEZQQAawoAckUAAQEBZQUAZAIAgwEAAW4BAFhkAwBaBgBkBABaBwBkBQBaCABkBgBaCQBkBwCEAABaCgBkCABkCQCEAQBaCwBkCgCEAABaDABlDQBkCwBrAgBy... | 1,057.6 | 5,213 | 0.99357 | 24 | 5,288 | 218.916667 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064039 | 0.001891 | 5,288 | 5 | 5,213 | 1,057.6 | 0.931413 | 0.007943 | 0 | 0 | 0 | 0 | 0.986082 | 0.986082 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 11 |
6f3f390afcbc05ad932ae9c81ad63a4061564d82 | 4,563 | py | Python | flows/migrations/0001_initial.py | stornado/zinga | 4791d06f153a69a1ed502022b58d4af9c77c5659 | [
"MIT"
] | null | null | null | flows/migrations/0001_initial.py | stornado/zinga | 4791d06f153a69a1ed502022b58d4af9c77c5659 | [
"MIT"
] | null | null | null | flows/migrations/0001_initial.py | stornado/zinga | 4791d06f153a69a1ed502022b58d4af9c77c5659 | [
"MIT"
] | null | null | null | # Generated by Django 2.1.2 on 2018-10-14 16:12
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='BaseTaskModel',
fields=[
... | 53.05814 | 203 | 0.593688 | 440 | 4,563 | 5.977273 | 0.2 | 0.146388 | 0.062738 | 0.061597 | 0.762357 | 0.736502 | 0.724335 | 0.710266 | 0.710266 | 0.710266 | 0 | 0.007401 | 0.259698 | 4,563 | 85 | 204 | 53.682353 | 0.771166 | 0.009862 | 0 | 0.705128 | 1 | 0 | 0.171612 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.025641 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
6f44de184b0d498a91e687459c6c773ec7874e04 | 2,350 | py | Python | django/policy/migrations/0007_auto_20171025_0901.py | zoonoo/aws2 | 583d8ee144c8b5c422a706d8054716c13d064899 | [
"MIT"
] | null | null | null | django/policy/migrations/0007_auto_20171025_0901.py | zoonoo/aws2 | 583d8ee144c8b5c422a706d8054716c13d064899 | [
"MIT"
] | null | null | null | django/policy/migrations/0007_auto_20171025_0901.py | zoonoo/aws2 | 583d8ee144c8b5c422a706d8054716c13d064899 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2017-10-25 09:01
from __future__ import unicode_literals
from decimal import Decimal
from django.db import migrations
import djmoney.models.fields
class Migration(migrations.Migration):
dependencies = [
('policy', '0006_auto_20171025_0144'),
]
... | 40.517241 | 141 | 0.615319 | 248 | 2,350 | 5.653226 | 0.237903 | 0.077033 | 0.121969 | 0.136947 | 0.833096 | 0.833096 | 0.833096 | 0.71826 | 0.71826 | 0.71826 | 0 | 0.027374 | 0.238298 | 2,350 | 57 | 142 | 41.22807 | 0.755866 | 0.028936 | 0 | 0.8 | 1 | 0 | 0.135586 | 0.010092 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.08 | 0 | 0.14 | 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 |
6f6eba6ddb41ea6516d104103038af76231259df | 150 | py | Python | dataset/__init__.py | wheeltune/kid-neuro | 131ec888e4f0c3ee1d7b4c4ebf57a6b1d5323d8a | [
"MIT"
] | null | null | null | dataset/__init__.py | wheeltune/kid-neuro | 131ec888e4f0c3ee1d7b4c4ebf57a6b1d5323d8a | [
"MIT"
] | null | null | null | dataset/__init__.py | wheeltune/kid-neuro | 131ec888e4f0c3ee1d7b4c4ebf57a6b1d5323d8a | [
"MIT"
] | null | null | null | from .events_dataset import *
from .keystrokes_dataset import *
from .kid_dataset import *
from .multi_dataset import *
from .timing_dataset import *
| 25 | 33 | 0.8 | 20 | 150 | 5.75 | 0.4 | 0.565217 | 0.591304 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 150 | 5 | 34 | 30 | 0.884615 | 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 |
48b89505f2adbbf9bccdfb2ca9b5674ee0e760c4 | 12,969 | py | Python | python/swagger_client/api/base_controller_api.py | Naras/knowledgetreeRestClients | 4c79cb091a91bafe37fa2f0d0301245d086c2e5b | [
"MIT"
] | null | null | null | python/swagger_client/api/base_controller_api.py | Naras/knowledgetreeRestClients | 4c79cb091a91bafe37fa2f0d0301245d086c2e5b | [
"MIT"
] | null | null | null | python/swagger_client/api/base_controller_api.py | Naras/knowledgetreeRestClients | 4c79cb091a91bafe37fa2f0d0301245d086c2e5b | [
"MIT"
] | null | null | null | # coding: utf-8
"""
OpenAPI definition
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: v0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import... | 34.128947 | 119 | 0.594957 | 1,462 | 12,969 | 5.008208 | 0.100547 | 0.051352 | 0.030593 | 0.039334 | 0.916826 | 0.916826 | 0.908905 | 0.890057 | 0.887053 | 0.87162 | 0 | 0.017148 | 0.316524 | 12,969 | 379 | 120 | 34.218997 | 0.80889 | 0.321536 | 0 | 0.781726 | 1 | 0 | 0.143301 | 0.03284 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045685 | false | 0 | 0.020305 | 0 | 0.13198 | 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 |
d2b33acdf0c9289821aa1ef013b366f000a129d9 | 2,330 | py | Python | wrt/wrt-packertool2-android-tests/packertool2/indextest.py | yugang/crosswalk-test-suite | c02e50b7901f0ccd7b42028460c907465f0cb682 | [
"BSD-3-Clause"
] | null | null | null | wrt/wrt-packertool2-android-tests/packertool2/indextest.py | yugang/crosswalk-test-suite | c02e50b7901f0ccd7b42028460c907465f0cb682 | [
"BSD-3-Clause"
] | null | null | null | wrt/wrt-packertool2-android-tests/packertool2/indextest.py | yugang/crosswalk-test-suite | c02e50b7901f0ccd7b42028460c907465f0cb682 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
import unittest
import os, sys, commands
import comm
class TestPackertoolsFunctions(unittest.TestCase):
def test_index1(self):
comm.setUp()
cmd = "python %smake_apk.py --package=org.hello.world --name=world --arch=%s --mode=%s --app-root=%s --app-local-path=%s" % \
... | 41.607143 | 133 | 0.572103 | 270 | 2,330 | 4.851852 | 0.211111 | 0.158015 | 0.073282 | 0.141985 | 0.883206 | 0.883206 | 0.883206 | 0.883206 | 0.883206 | 0.883206 | 0 | 0.01028 | 0.248498 | 2,330 | 55 | 134 | 42.363636 | 0.737864 | 0.008584 | 0 | 0.75 | 0 | 0.0625 | 0.247726 | 0.032482 | 0 | 0 | 0 | 0 | 0.125 | 0 | null | null | 0 | 0.0625 | null | null | 0.125 | 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 |
d2e76aa33c87c047d0f7d56a1cf210ef02df1f72 | 6,821 | py | Python | loldib/getratings/models/NA/na_vladimir/na_vladimir_sup.py | koliupy/loldib | c9ab94deb07213cdc42b5a7c26467cdafaf81b7f | [
"Apache-2.0"
] | null | null | null | loldib/getratings/models/NA/na_vladimir/na_vladimir_sup.py | koliupy/loldib | c9ab94deb07213cdc42b5a7c26467cdafaf81b7f | [
"Apache-2.0"
] | null | null | null | loldib/getratings/models/NA/na_vladimir/na_vladimir_sup.py | koliupy/loldib | c9ab94deb07213cdc42b5a7c26467cdafaf81b7f | [
"Apache-2.0"
] | null | null | null | from getratings.models.ratings import Ratings
class NA_Vladimir_Sup_Aatrox(Ratings):
pass
class NA_Vladimir_Sup_Ahri(Ratings):
pass
class NA_Vladimir_Sup_Akali(Ratings):
pass
class NA_Vladimir_Sup_Alistar(Ratings):
pass
class NA_Vladimir_Sup_Amumu(Ratings):
pass
class NA_Vladimir_Sup_Anivia(... | 16.357314 | 46 | 0.776133 | 972 | 6,821 | 5.020576 | 0.151235 | 0.197951 | 0.42418 | 0.509016 | 0.814139 | 0.814139 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162879 | 6,821 | 416 | 47 | 16.396635 | 0.854641 | 0 | 0 | 0.498195 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.498195 | 0.00361 | 0 | 0.501805 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 7 |
d2ec0c4bd971c02f74d2e76a1235a7c94d05cafd | 151 | py | Python | tests/conftest.py | kiryteo/pytorch-bioimage-io | 53373c45d3833b35657914953aaac544ec794a7e | [
"MIT"
] | 1 | 2021-08-04T04:03:37.000Z | 2021-08-04T04:03:37.000Z | tests/test_bioimage-io/conftest.py | LalithShiyam/pytorch-3dunet | f6b6c13cb0bb6194e95976b0245b76aaa9e9a496 | [
"MIT"
] | null | null | null | tests/test_bioimage-io/conftest.py | LalithShiyam/pytorch-3dunet | f6b6c13cb0bb6194e95976b0245b76aaa9e9a496 | [
"MIT"
] | 1 | 2022-03-14T04:43:24.000Z | 2022-03-14T04:43:24.000Z | import os
from pathlib import Path
import pytest
@pytest.fixture
def cache_path(tmp_path):
return Path(os.getenv("PYBIO_CACHE_PATH", tmp_path))
| 15.1 | 56 | 0.774834 | 24 | 151 | 4.666667 | 0.541667 | 0.160714 | 0.214286 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.139073 | 151 | 9 | 57 | 16.777778 | 0.861538 | 0 | 0 | 0 | 0 | 0 | 0.10596 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.5 | 0.166667 | 0.833333 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 7 |
960e10bfd5f5eb8370b3c05a92ff07f0e2cc6e5c | 198 | py | Python | prototyping/utils.py | QuVil/mon-bot-le-dj | e9320fc19b1665dbb023c5eac015a208ba612750 | [
"MIT"
] | 5 | 2020-06-25T17:12:53.000Z | 2020-07-22T16:03:19.000Z | prototyping/utils.py | QuVil/mon-bot-le-dj | e9320fc19b1665dbb023c5eac015a208ba612750 | [
"MIT"
] | 3 | 2020-06-29T22:24:32.000Z | 2020-08-30T10:45:44.000Z | prototyping/utils.py | QuVil/mon-bot-le-dj | e9320fc19b1665dbb023c5eac015a208ba612750 | [
"MIT"
] | null | null | null |
def string_or_none(string: str) -> object:
return string if string else None
def as_real_or_none(string: str) -> object:
try: return float(string.replace(',', '.'))
except: return None | 28.285714 | 47 | 0.686869 | 29 | 198 | 4.517241 | 0.517241 | 0.091603 | 0.183206 | 0.229008 | 0.320611 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 198 | 7 | 48 | 28.285714 | 0.808642 | 0 | 0 | 0 | 0 | 0 | 0.010101 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0.2 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 7 |
82491719a960fe81cca2c6d25756756dc4f27aa7 | 23,875 | py | Python | tests/test_tables.py | SimonHurst/py-pdf-parser | 4186115b64115e9916475d4a034542a64f57457b | [
"MIT"
] | null | null | null | tests/test_tables.py | SimonHurst/py-pdf-parser | 4186115b64115e9916475d4a034542a64f57457b | [
"MIT"
] | null | null | null | tests/test_tables.py | SimonHurst/py-pdf-parser | 4186115b64115e9916475d4a034542a64f57457b | [
"MIT"
] | null | null | null | from py_pdf_parser.common import BoundingBox
from py_pdf_parser.exceptions import (
InvalidTableError,
InvalidTableHeaderError,
TableExtractionError,
)
from py_pdf_parser.tables import (
extract_simple_table,
extract_table,
get_text_from_table,
_validate_table_shape,
add_header_to_table,... | 40.672913 | 88 | 0.614241 | 2,945 | 23,875 | 4.649576 | 0.043803 | 0.153947 | 0.168845 | 0.223472 | 0.932228 | 0.913532 | 0.894983 | 0.889506 | 0.87468 | 0.857811 | 0 | 0.054223 | 0.282387 | 23,875 | 586 | 89 | 40.742321 | 0.744995 | 0.108314 | 0 | 0.675234 | 0 | 0 | 0.055396 | 0 | 0 | 0 | 0 | 0 | 0.214953 | 1 | 0.037383 | false | 0 | 0.011682 | 0 | 0.051402 | 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 |
826aa7f06d84075f7c4d821198948ef34756ea0a | 72,681 | py | Python | Calcn.py | fireballpoint1/fortranTOpy | 55843a62c6f0a2f8e2a777ef70193940d3d2d141 | [
"Apache-2.0"
] | 1 | 2018-08-26T05:10:56.000Z | 2018-08-26T05:10:56.000Z | Calcn.py | fireballpoint1/fortranTOpy | 55843a62c6f0a2f8e2a777ef70193940d3d2d141 | [
"Apache-2.0"
] | null | null | null | Calcn.py | fireballpoint1/fortranTOpy | 55843a62c6f0a2f8e2a777ef70193940d3d2d141 | [
"Apache-2.0"
] | 1 | 2018-06-26T18:06:44.000Z | 2018-06-26T18:06:44.000Z | import conf
import numpy
import random
from Shake import *
def CALC(IPN,NVAC,KGAS,LGAS,ELECEN,ISHELL,ICON):
# IMPLICIT #real*8(A-H,O-Z)
# IMPLICIT #integer*8(I-N)
# SCR=""\
# SCR1=""
global IFIRST,ESHK,ELECN,JVAC,R1
ESHK=0.0
JVAC=0.0
def get_globals():
NDVEC=conf.NDVEC
MS... | 44.671789 | 230 | 0.47919 | 9,218 | 72,681 | 3.777609 | 0.032111 | 0.07659 | 0.065074 | 0.082419 | 0.912728 | 0.899862 | 0.890845 | 0.884441 | 0.867928 | 0.858308 | 0 | 0.060797 | 0.372449 | 72,681 | 1,626 | 231 | 44.699262 | 0.702659 | 0.121435 | 0 | 0.866512 | 0 | 0 | 0.015235 | 0.000884 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020833 | false | 0.002315 | 0.003086 | 0 | 0.048611 | 0.022377 | 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 |
82a3aea34ee00628b840ea5e29c026faf7a105fd | 1,594 | py | Python | tests/test_1851.py | sungho-joo/leetcode2github | ce7730ef40f6051df23681dd3c0e1e657abba620 | [
"MIT"
] | null | null | null | tests/test_1851.py | sungho-joo/leetcode2github | ce7730ef40f6051df23681dd3c0e1e657abba620 | [
"MIT"
] | null | null | null | tests/test_1851.py | sungho-joo/leetcode2github | ce7730ef40f6051df23681dd3c0e1e657abba620 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import pytest
"""
Test 1851. Minimum Interval to Include Each Query
"""
@pytest.fixture(scope="session")
def init_variables_1851():
from src.leetcode_1851_minimum_interval_to_include_each_query import Solution
solution = Solution()
def _init_variables_1851():
return solut... | 22.450704 | 101 | 0.59473 | 212 | 1,594 | 4.216981 | 0.20283 | 0.203579 | 0.266219 | 0.09396 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0.133562 | 0.267252 | 1,594 | 70 | 102 | 22.771429 | 0.631849 | 0.025094 | 0 | 0.95 | 0 | 0 | 0.009736 | 0 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0.2 | false | 0 | 0.1 | 0.05 | 0.4 | 0 | 0 | 0 | 0 | null | 1 | 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 | 9 |
82c328bd97463563ef022a0a1cfd7a21a31c0060 | 586 | py | Python | reinvent_scoring/scoring/__init__.py | MolecularAI/reinvent-scoring | f7e052ceeffd29e17e1672c33607189873c82a45 | [
"MIT"
] | null | null | null | reinvent_scoring/scoring/__init__.py | MolecularAI/reinvent-scoring | f7e052ceeffd29e17e1672c33607189873c82a45 | [
"MIT"
] | 2 | 2021-11-01T23:19:42.000Z | 2021-11-22T23:41:39.000Z | reinvent_scoring/scoring/__init__.py | MolecularAI/reinvent-scoring | f7e052ceeffd29e17e1672c33607189873c82a45 | [
"MIT"
] | 2 | 2021-11-18T13:14:22.000Z | 2022-03-16T07:52:57.000Z | from reinvent_scoring.scoring.function import *
from reinvent_scoring.scoring.enums import *
from reinvent_scoring.scoring.score_components import *
from reinvent_scoring.scoring.component_parameters import ComponentParameters
from reinvent_scoring.scoring.score_summary import FinalSummary, ComponentSummary, LoggableC... | 58.6 | 100 | 0.904437 | 63 | 586 | 8.15873 | 0.31746 | 0.272374 | 0.29572 | 0.404669 | 0.476654 | 0.159533 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059727 | 586 | 9 | 101 | 65.111111 | 0.932849 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
7d5649c6b0b64ee81194b607ac28c5f2d12f97cb | 7,014 | py | Python | datasets/mot.py | yutliu/better_detr | f4e309a1947474be0c9aca98afb9adad52193df4 | [
"Apache-2.0"
] | 3 | 2021-01-05T03:27:33.000Z | 2021-01-05T09:42:57.000Z | datasets/mot.py | yutliu/better_detr | f4e309a1947474be0c9aca98afb9adad52193df4 | [
"Apache-2.0"
] | null | null | null | datasets/mot.py | yutliu/better_detr | f4e309a1947474be0c9aca98afb9adad52193df4 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) Yutliu
"""
MOT dataset which returns image_id for evaluation.
"""
from pathlib import Path
import numpy as np
import torch
import torch.utils.data
import os.path as osp
from PIL import Image, ImageDraw
import datasets.transforms as T
class MOTDetection:
def __init__(self, args, seqs_folder, trans... | 36.341969 | 105 | 0.563872 | 889 | 7,014 | 4.304837 | 0.184477 | 0.032924 | 0.056441 | 0.041808 | 0.81134 | 0.804808 | 0.78913 | 0.78913 | 0.766658 | 0.766658 | 0 | 0.039437 | 0.280582 | 7,014 | 192 | 106 | 36.53125 | 0.718985 | 0.063872 | 0 | 0.794521 | 0 | 0 | 0.078967 | 0.019551 | 0 | 0 | 0 | 0 | 0.006849 | 1 | 0.068493 | false | 0 | 0.047945 | 0.013699 | 0.191781 | 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 |
7d56e4a994957760900241cbb071a75c2f5923a2 | 247 | py | Python | src/retrieve/methods/align/__init__.py | emanjavacas/retrieve | 451df1cb99d637aca54616c6c342bc0408057c48 | [
"MIT"
] | null | null | null | src/retrieve/methods/align/__init__.py | emanjavacas/retrieve | 451df1cb99d637aca54616c6c342bc0408057c48 | [
"MIT"
] | 2 | 2020-06-04T20:42:16.000Z | 2020-09-14T07:49:20.000Z | src/retrieve/methods/align/__init__.py | emanjavacas/retrieve | 451df1cb99d637aca54616c6c342bc0408057c48 | [
"MIT"
] | 1 | 2020-07-21T12:45:52.000Z | 2020-07-21T12:45:52.000Z |
from .align import BaseScorer, EmbeddingScorer, ConstantScorer, LookupScorer
from .align import get_horizontal_alignment, local_alignment
from .align import get_alignment_ranges, get_alignment_string
from .parallel_align import align_collections
| 41.166667 | 76 | 0.874494 | 30 | 247 | 6.9 | 0.5 | 0.21256 | 0.217391 | 0.173913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089069 | 247 | 5 | 77 | 49.4 | 0.92 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
7d9632725f09a026d9581e9fcc6358f43e4176a4 | 31,407 | py | Python | objects.py | veeral-agarwal/DX-BALL | d2e83c1cbbccd2122f53b5904066797cd6d30975 | [
"MIT"
] | null | null | null | objects.py | veeral-agarwal/DX-BALL | d2e83c1cbbccd2122f53b5904066797cd6d30975 | [
"MIT"
] | null | null | null | objects.py | veeral-agarwal/DX-BALL | d2e83c1cbbccd2122f53b5904066797cd6d30975 | [
"MIT"
] | null | null | null | import global_variables
import numpy as np
import config
from colorama import Fore, init , Back , Style
init()
import time
from time import time,sleep
import random
import math
class Objects():
def __init__(self , obj , xpos , ypos):
self.position_x = xpos
self.position_y = ypos
self.heigh... | 51.741351 | 204 | 0.562391 | 3,633 | 31,407 | 4.573631 | 0.03248 | 0.212145 | 0.071979 | 0.092441 | 0.901601 | 0.886254 | 0.865852 | 0.833293 | 0.823122 | 0.820294 | 0 | 0.020205 | 0.35231 | 31,407 | 607 | 205 | 51.741351 | 0.796628 | 0.016493 | 0 | 0.763636 | 0 | 0 | 0.000291 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054545 | false | 0 | 0.016162 | 0.006061 | 0.088889 | 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 |
7ddc44ecd5853c704ed9413854b10813fa29f63f | 7,748 | py | Python | tests/functional/test_patient_access.py | harryhmc/personal-demographics-service-api | 33b427284aab58fbecea6fd9d74dfd7ecfbf1831 | [
"MIT"
] | null | null | null | tests/functional/test_patient_access.py | harryhmc/personal-demographics-service-api | 33b427284aab58fbecea6fd9d74dfd7ecfbf1831 | [
"MIT"
] | null | null | null | tests/functional/test_patient_access.py | harryhmc/personal-demographics-service-api | 33b427284aab58fbecea6fd9d74dfd7ecfbf1831 | [
"MIT"
] | null | null | null | from tests.functional.config_files import config
import requests
import uuid
import pytest
@pytest.mark.asyncio
class TestUserRestrictedPatientAccess:
async def test_patient_access_retrieve_happy_path(
self, nhs_login_token_exchange
):
token = await nhs_login_token_exchange()
headers ... | 31.116466 | 114 | 0.542463 | 817 | 7,748 | 4.95104 | 0.119951 | 0.031644 | 0.051422 | 0.083066 | 0.949073 | 0.93597 | 0.91199 | 0.905068 | 0.905068 | 0.895179 | 0 | 0.03769 | 0.311693 | 7,748 | 248 | 115 | 31.241935 | 0.720795 | 0 | 0 | 0.763285 | 0 | 0.009662 | 0.277362 | 0.104027 | 0 | 0 | 0 | 0 | 0.101449 | 1 | 0 | false | 0 | 0.019324 | 0 | 0.024155 | 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 |
81716aaf00fa6507e0c88090e44327471ba8828c | 25,079 | py | Python | accountant/functional_tests/test_undo.py | XeryusTC/18xx-accountant | 5dc70fb96042807ceaaadb51cea3108da4f40d85 | [
"MIT"
] | null | null | null | accountant/functional_tests/test_undo.py | XeryusTC/18xx-accountant | 5dc70fb96042807ceaaadb51cea3108da4f40d85 | [
"MIT"
] | 7 | 2017-03-29T18:52:44.000Z | 2017-09-05T19:06:29.000Z | accountant/functional_tests/test_undo.py | XeryusTC/18xx-accountant | 5dc70fb96042807ceaaadb51cea3108da4f40d85 | [
"MIT"
] | 1 | 2019-12-16T22:27:07.000Z | 2019-12-16T22:27:07.000Z | # -*- coding: utf-8 -*-
from .base import FunctionalTestCase
from .pages import game
DATE_REGEX = r'\[\d{1,2}-\d{1,2} \d{2}:\d{2}\] '
class UndoTests(FunctionalTestCase):
def test_can_undo_player_transfering_money_to_bank(self):
self.story('Alice is a user who has a game with a player')
self.brows... | 43.017153 | 79 | 0.649029 | 3,551 | 25,079 | 4.384117 | 0.059983 | 0.095581 | 0.047341 | 0.046249 | 0.905768 | 0.882965 | 0.862089 | 0.848664 | 0.83222 | 0.802801 | 0 | 0.026618 | 0.230033 | 25,079 | 582 | 80 | 43.091065 | 0.779596 | 0.002113 | 0 | 0.794118 | 0 | 0.001961 | 0.146791 | 0 | 0 | 0 | 0 | 0 | 0.141176 | 1 | 0.02549 | false | 0 | 0.003922 | 0 | 0.031373 | 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 |
81a9c46d450b5f9db6796d8f2aa2104e32d556ab | 265 | py | Python | matilda/fundamental_analysis/equity_valuation_models/__init__.py | AlainDaccache/Quantropy | 6cfa06ed2b764471382ebf94d40af867f10433bb | [
"MIT"
] | 45 | 2021-01-28T04:12:21.000Z | 2022-02-24T13:15:50.000Z | matilda/fundamental_analysis/equity_valuation_models/__init__.py | AlainDaccache/Quantropy | 6cfa06ed2b764471382ebf94d40af867f10433bb | [
"MIT"
] | 32 | 2021-03-02T18:45:16.000Z | 2022-03-12T00:53:10.000Z | matilda/fundamental_analysis/equity_valuation_models/__init__.py | AlainDaccache/Quantropy | 6cfa06ed2b764471382ebf94d40af867f10433bb | [
"MIT"
] | 10 | 2020-12-25T15:02:40.000Z | 2021-12-30T11:40:15.000Z | from matilda.fundamental_analysis.equity_valuation_models.cost_of_capital import *
from matilda.fundamental_analysis.equity_valuation_models.absolute_valuation_modeling import *
from matilda.fundamental_analysis.equity_valuation_models.time_value_of_money import *
| 66.25 | 94 | 0.909434 | 34 | 265 | 6.617647 | 0.470588 | 0.146667 | 0.293333 | 0.4 | 0.733333 | 0.733333 | 0.733333 | 0.506667 | 0 | 0 | 0 | 0 | 0.045283 | 265 | 3 | 95 | 88.333333 | 0.889328 | 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 | 1 | 1 | 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 |
81b27c4a4da0cb91dc7b9304f5cde70b9a998fc0 | 58 | py | Python | httpfaux/pytest_plugin.py | symonk/httpfaux | 1b19f65a14656268a83488a14dd37b6ce78dc4d2 | [
"Apache-2.0"
] | null | null | null | httpfaux/pytest_plugin.py | symonk/httpfaux | 1b19f65a14656268a83488a14dd37b6ce78dc4d2 | [
"Apache-2.0"
] | null | null | null | httpfaux/pytest_plugin.py | symonk/httpfaux | 1b19f65a14656268a83488a14dd37b6ce78dc4d2 | [
"Apache-2.0"
] | null | null | null | from pytest import hookimpl
from pytest import hookimpl
| 11.6 | 27 | 0.827586 | 8 | 58 | 6 | 0.5 | 0.416667 | 0.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172414 | 58 | 4 | 28 | 14.5 | 1 | 0 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 9 |
81cab2fc806660bae05fb98334355388a7b6b886 | 25,562 | py | Python | dsaa/test.py | ntdgy/python_study | c3511846a89ea72418937de4cc3edf1595a46ec5 | [
"MIT"
] | null | null | null | dsaa/test.py | ntdgy/python_study | c3511846a89ea72418937de4cc3edf1595a46ec5 | [
"MIT"
] | null | null | null | dsaa/test.py | ntdgy/python_study | c3511846a89ea72418937de4cc3edf1595a46ec5 | [
"MIT"
] | null | null | null | import sys
import socket
import random
import argparse
from re import compile
from time import sleep
from struct import pack
from os import popen, system
from multiprocessing import Pool
store = [
[0x44, 0x4d, 0x4f, 0x43, 0x00, 0x00, 0x01, 0x00, 0x9e, 0x03, 0x00, 0x00, 0x10, 0x41, 0xaf, 0xfb, 0xa0, 0xe7, 0x52,
... | 66.394805 | 134 | 0.61701 | 3,887 | 25,562 | 4.035503 | 0.089786 | 1.392324 | 2.058651 | 2.723448 | 0.793 | 0.788219 | 0.779676 | 0.772536 | 0.766416 | 0.762081 | 0 | 0.455734 | 0.221853 | 25,562 | 385 | 135 | 66.394805 | 0.332864 | 0.001565 | 0 | 0.527378 | 0 | 0.005764 | 0.05224 | 0.003841 | 0 | 0 | 0.474194 | 0 | 0 | 1 | 0.023055 | false | 0.002882 | 0.025937 | 0 | 0.060519 | 0.0317 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 11 |
c4bbade26d073ae9d9453e4dd38ecbc1e9438941 | 13,857 | py | Python | turbogears/widgets/tests/test_nested_widgets.py | timmartin19/turbogears | b5420cb7e55757d418d8fadb512dbd7803c4279c | [
"MIT"
] | null | null | null | turbogears/widgets/tests/test_nested_widgets.py | timmartin19/turbogears | b5420cb7e55757d418d8fadb512dbd7803c4279c | [
"MIT"
] | 9 | 2015-01-27T19:13:56.000Z | 2019-03-29T14:44:31.000Z | turbogears/widgets/tests/test_nested_widgets.py | timmartin19/turbogears | b5420cb7e55757d418d8fadb512dbd7803c4279c | [
"MIT"
] | 13 | 2015-04-14T14:15:53.000Z | 2020-03-18T01:05:46.000Z | import re
import cherrypy
import turbogears.validators as validators
import turbogears.widgets as widgets
from turbogears.testutil import catch_validation_errors
from turbogears.widgets.meta import copy_schema
oldrequest = None
int_validator = validators.Int(if_empty=None)
s_validator = validators.Schema(age=int_va... | 30.189542 | 84 | 0.554305 | 1,442 | 13,857 | 5.217753 | 0.108183 | 0.060606 | 0.051967 | 0.064195 | 0.790936 | 0.764221 | 0.73126 | 0.716773 | 0.700691 | 0.660154 | 0 | 0.010902 | 0.331457 | 13,857 | 458 | 85 | 30.255459 | 0.801274 | 0.052248 | 0 | 0.708207 | 0 | 0 | 0.048315 | 0 | 0 | 0 | 0 | 0 | 0.173252 | 0 | null | null | 0 | 0.018237 | null | null | 0.069909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
f20613ac931f56423a1ac558f26047bfad5c9379 | 6,742 | py | Python | tests/uri/test_uri_joining.py | spaceone/httoop | 99f5f51a6ebab4bfdfd02d3705a0bffb5379b4a9 | [
"MIT"
] | 13 | 2015-01-07T19:39:02.000Z | 2021-07-12T21:09:28.000Z | tests/uri/test_uri_joining.py | spaceone/httoop | 99f5f51a6ebab4bfdfd02d3705a0bffb5379b4a9 | [
"MIT"
] | 9 | 2015-06-14T11:37:26.000Z | 2020-12-11T09:12:30.000Z | tests/uri/test_uri_joining.py | spaceone/httoop | 99f5f51a6ebab4bfdfd02d3705a0bffb5379b4a9 | [
"MIT"
] | 10 | 2015-05-28T05:51:46.000Z | 2021-12-29T20:36:15.000Z | from __future__ import unicode_literals
import pytest
from httoop import URI
RFC1808_BASE = b'http://a/b/c/d;p?q#f'
RFC2396_BASE = b'http://a/b/c/d;p?q'
RFC3986_BASE = b'http://a/b/c/d;p?q'
SIMPLE_BASE = b'http://a/b/c/d'
uri_join = {
RFC3986_BASE: [
# RFC 3986 Normal examples
(b'g:h', b'g:h'),
(b'g', b'http... | 34.050505 | 201 | 0.449125 | 1,529 | 6,742 | 1.954872 | 0.05036 | 0.274339 | 0.299097 | 0.309133 | 0.809301 | 0.787889 | 0.753095 | 0.745065 | 0.738374 | 0.6728 | 0 | 0.008918 | 0.118511 | 6,742 | 197 | 202 | 34.22335 | 0.494027 | 0.125334 | 0 | 0.725146 | 0 | 0 | 0.489029 | 0.023133 | 0 | 0 | 0 | 0 | 0.011696 | 1 | 0.011696 | false | 0 | 0.017544 | 0 | 0.02924 | 0 | 0 | 0 | 1 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 12 |
f21be65a5e64a32fdb21a9ffd41e6ecaf97d9df3 | 34,586 | py | Python | nuage_tempest_plugin/tests/api/vsd_managed/test_vsd_public_resources_ml2.py | nuagenetworks/nuage-tempest-plugin | ac1bfb0709c7bbaf04017af3050fb3ed1ad1324a | [
"Apache-1.1"
] | 1 | 2021-01-03T01:47:51.000Z | 2021-01-03T01:47:51.000Z | nuage_tempest_plugin/tests/api/vsd_managed/test_vsd_public_resources_ml2.py | nuagenetworks/nuage-tempest-plugin | ac1bfb0709c7bbaf04017af3050fb3ed1ad1324a | [
"Apache-1.1"
] | null | null | null | nuage_tempest_plugin/tests/api/vsd_managed/test_vsd_public_resources_ml2.py | nuagenetworks/nuage-tempest-plugin | ac1bfb0709c7bbaf04017af3050fb3ed1ad1324a | [
"Apache-1.1"
] | 1 | 2020-10-16T12:04:39.000Z | 2020-10-16T12:04:39.000Z | # Copyright 2018 NOKIA
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | 42.075426 | 79 | 0.637715 | 4,825 | 34,586 | 4.236477 | 0.047461 | 0.030576 | 0.047894 | 0.029059 | 0.912969 | 0.906218 | 0.894721 | 0.88797 | 0.885084 | 0.878773 | 0 | 0.023451 | 0.288614 | 34,586 | 821 | 80 | 42.126675 | 0.807348 | 0.318308 | 0 | 0.792735 | 0 | 0 | 0.021487 | 0.001038 | 0 | 0 | 0 | 0 | 0.002137 | 1 | 0.07265 | false | 0 | 0.017094 | 0 | 0.098291 | 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 |
f21def0abd39bf598dafbf4f177dd456a3970e0c | 5,591 | py | Python | makeDome.py | bttaylor/TactileMaps | d09d70d8f12e6e2b90f8c7cb1ea0b5d72765ef45 | [
"MIT"
] | null | null | null | makeDome.py | bttaylor/TactileMaps | d09d70d8f12e6e2b90f8c7cb1ea0b5d72765ef45 | [
"MIT"
] | null | null | null | makeDome.py | bttaylor/TactileMaps | d09d70d8f12e6e2b90f8c7cb1ea0b5d72765ef45 | [
"MIT"
] | null | null | null |
from shapely.geometry import box, Polygon, LineString, Point, MultiLineString, MultiPolygon
import math
import elevation2stl
# def makeDome(r,center,coarseness):
# (tri,outer) = makeCircle(r,center,coarseness);
# for i in range(0,len(tri)):
# p1 = [tri[i][0].x,tri[i][0].y,tri[i][0].z]
# p2 = [tri[i][1]... | 31.767045 | 91 | 0.630656 | 1,015 | 5,591 | 3.314286 | 0.0867 | 0.095125 | 0.03805 | 0.082045 | 0.850773 | 0.850773 | 0.84126 | 0.84126 | 0.84126 | 0.832937 | 0 | 0.034559 | 0.187444 | 5,591 | 175 | 92 | 31.948571 | 0.705921 | 0.244142 | 0 | 0.824176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010989 | false | 0 | 0.032967 | 0 | 0.054945 | 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 |
4818dc86f9fb3c156ecd708cae494e47fdfcdb0b | 38,838 | py | Python | project/workplace_search.py | gujralsanyam22/elastic_enterprise_search_app | 0ceec37d249006c2ef5d6415e1f5507df642deed | [
"Apache-2.0"
] | null | null | null | project/workplace_search.py | gujralsanyam22/elastic_enterprise_search_app | 0ceec37d249006c2ef5d6415e1f5507df642deed | [
"Apache-2.0"
] | null | null | null | project/workplace_search.py | gujralsanyam22/elastic_enterprise_search_app | 0ceec37d249006c2ef5d6415e1f5507df642deed | [
"Apache-2.0"
] | null | null | null | # Licensed to Elasticsearch B.V. under one or more contributor
# license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright
# ownership. Elasticsearch B.V. licenses this file to you under
# the Apache License, Version 2.0 (the "License"); you may
# not... | 36.60509 | 140 | 0.584428 | 4,155 | 38,838 | 5.298195 | 0.05006 | 0.050195 | 0.046334 | 0.037204 | 0.926002 | 0.91946 | 0.918143 | 0.916735 | 0.914963 | 0.914963 | 0 | 0.001111 | 0.351074 | 38,838 | 1,060 | 141 | 36.639623 | 0.872356 | 0.436325 | 0 | 0.904173 | 0 | 0 | 0.076864 | 0.00143 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032458 | false | 0.026275 | 0.004637 | 0 | 0.071097 | 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 |
48631eadbb959dda7f40176743cbf3a8115f2d4f | 22,431 | py | Python | sdk/python/pulumi_azure/redis/linked_server.py | henriktao/pulumi-azure | f1cbcf100b42b916da36d8fe28be3a159abaf022 | [
"ECL-2.0",
"Apache-2.0"
] | 109 | 2018-06-18T00:19:44.000Z | 2022-02-20T05:32:57.000Z | sdk/python/pulumi_azure/redis/linked_server.py | henriktao/pulumi-azure | f1cbcf100b42b916da36d8fe28be3a159abaf022 | [
"ECL-2.0",
"Apache-2.0"
] | 663 | 2018-06-18T21:08:46.000Z | 2022-03-31T20:10:11.000Z | sdk/python/pulumi_azure/redis/linked_server.py | henriktao/pulumi-azure | f1cbcf100b42b916da36d8fe28be3a159abaf022 | [
"ECL-2.0",
"Apache-2.0"
] | 41 | 2018-07-19T22:37:38.000Z | 2022-03-14T10:56:26.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import... | 48.23871 | 204 | 0.674201 | 2,772 | 22,431 | 5.166667 | 0.071789 | 0.093562 | 0.099427 | 0.046432 | 0.887236 | 0.871736 | 0.856654 | 0.836894 | 0.832914 | 0.820067 | 0 | 0.004863 | 0.239178 | 22,431 | 464 | 205 | 48.342672 | 0.834349 | 0.40979 | 0 | 0.575893 | 1 | 0 | 0.141841 | 0.07164 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15625 | false | 0.004464 | 0.022321 | 0 | 0.272321 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
6f8add949090b45174a43368df9ab63681599f53 | 185 | py | Python | benchmarks/tail-factorial.py | c1m5j/pancake | f8c3c6045e147a0569d7cc0a11914c2e5306e662 | [
"MIT"
] | 5 | 2021-10-09T12:54:10.000Z | 2021-10-30T01:29:05.000Z | benchmarks/tail-factorial.py | c1m5j/pancake | f8c3c6045e147a0569d7cc0a11914c2e5306e662 | [
"MIT"
] | 1 | 2021-10-31T08:54:15.000Z | 2021-10-31T08:54:15.000Z | benchmarks/tail-factorial.py | c1m5j/pancake | f8c3c6045e147a0569d7cc0a11914c2e5306e662 | [
"MIT"
] | 1 | 2021-10-18T06:20:42.000Z | 2021-10-18T06:20:42.000Z | def factorial_accumulate(n, acc):
if n == 0: return acc
return factorial_accumulate(n - 1, acc*n)
def factorial(n):
return factorial_accumulate(n, 1)
print(factorial(20))
| 20.555556 | 45 | 0.697297 | 28 | 185 | 4.5 | 0.392857 | 0.452381 | 0.47619 | 0.412698 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033113 | 0.183784 | 185 | 8 | 46 | 23.125 | 0.801325 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.166667 | 0.666667 | 0.166667 | 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 |
6fcd8e6686974e8dc3d5d6017b3bac0a0c41c512 | 265 | py | Python | NameMarkupLanguage/NameMarkInterface/__init__.py | sonnts996/NameMarkLanguage | 448db602371e91d661bbf3de40070904a89e85fa | [
"MIT"
] | null | null | null | NameMarkupLanguage/NameMarkInterface/__init__.py | sonnts996/NameMarkLanguage | 448db602371e91d661bbf3de40070904a89e85fa | [
"MIT"
] | null | null | null | NameMarkupLanguage/NameMarkInterface/__init__.py | sonnts996/NameMarkLanguage | 448db602371e91d661bbf3de40070904a89e85fa | [
"MIT"
] | null | null | null | from NameMarkupLanguage.NameMarkInterface.NameMark import NameMark
from NameMarkupLanguage.NameMarkInterface.DefTag import DefTag
from NameMarkupLanguage.NameMarkInterface.NMList import NMList
from NameMarkupLanguage.NameMarkInterface.DefManager import DefManager
| 44.166667 | 70 | 0.90566 | 24 | 265 | 10 | 0.333333 | 0.366667 | 0.65 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064151 | 265 | 5 | 71 | 53 | 0.967742 | 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 |
6fd1a56f5dcfa371809d9e29e240e4b6ef669b20 | 2,649 | py | Python | projects/hog/calc.py | wangjiapengone/CS-61A-Fall18 | 552a39c165b9c15c291967ce261e23dc2985a4b2 | [
"MIT"
] | 1 | 2021-01-04T05:08:24.000Z | 2021-01-04T05:08:24.000Z | projects/hog/calc.py | wangjiapengone/CS-61A-Fall18 | 552a39c165b9c15c291967ce261e23dc2985a4b2 | [
"MIT"
] | null | null | null | projects/hog/calc.py | wangjiapengone/CS-61A-Fall18 | 552a39c165b9c15c291967ce261e23dc2985a4b2 | [
"MIT"
] | null | null | null | import zlib, base64
exec(zlib.decompress(base64.b64decode('eJzNWVlv20YQftevYAUEIm1aIXMUhdAt2qZKmsTxIR+R4QoEJVESy9MkZck29N+7S0mcmeXKdoIW6IMMcufYOb+dpZvN5rskSueFl2vFzNO8ZeqNCm+sLfxYy9zC05KJlsSelhfibXqnuVPXj/NCc+OEC2TtZrPZ+N27e//b5O8/giVzhzm8vmP5PILXK/beDXMPFkbMz4UyNx6h1R6L3CW8nrFinoaIfs/SzI8LWJiyyI/h9ZZ1lyMvLfwELUYsc+Mpa... | 529.8 | 2,563 | 0.96074 | 89 | 2,649 | 28.595506 | 0.966292 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148162 | 0.003775 | 2,649 | 4 | 2,564 | 662.25 | 0.816218 | 0.023028 | 0 | 0 | 0 | 0.5 | 0.974855 | 0.974855 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 10 |
6fd2c0788af8420d199607616b772cca84a1a494 | 10,860 | py | Python | pirates/leveleditor/worldData/SwampTestIslandB.py | Willy5s/Pirates-Online-Rewritten | 7434cf98d9b7c837d57c181e5dabd02ddf98acb7 | [
"BSD-3-Clause"
] | 81 | 2018-04-08T18:14:24.000Z | 2022-01-11T07:22:15.000Z | pirates/leveleditor/worldData/SwampTestIslandB.py | Willy5s/Pirates-Online-Rewritten | 7434cf98d9b7c837d57c181e5dabd02ddf98acb7 | [
"BSD-3-Clause"
] | 4 | 2018-09-13T20:41:22.000Z | 2022-01-08T06:57:00.000Z | pirates/leveleditor/worldData/SwampTestIslandB.py | Willy5s/Pirates-Online-Rewritten | 7434cf98d9b7c837d57c181e5dabd02ddf98acb7 | [
"BSD-3-Clause"
] | 26 | 2018-05-26T12:49:27.000Z | 2021-09-11T09:11:59.000Z | from pandac.PandaModules import Point3, VBase3
objectStruct = {'Locator Links': [['1153868315.8sdnaik0', '1152910060.11sdnaik', 'Bi-directional'], ['1153868315.8sdnaik1', '1152910301.05sdnaik0', 'Bi-directional'], ['1153868634.75sdnaik0', '1152910060.11sdnaik0', 'Bi-directional'], ['1152910307.13sdnaik', '1156281363.2s... | 5,430 | 10,813 | 0.679558 | 1,491 | 10,860 | 4.901408 | 0.18444 | 0.024357 | 0.024631 | 0.031746 | 0.614532 | 0.559797 | 0.490832 | 0.448823 | 0.380952 | 0.273946 | 0 | 0.297971 | 0.046961 | 10,860 | 2 | 10,813 | 5,430 | 0.408116 | 0 | 0 | 0 | 0 | 0 | 0.607126 | 0.300525 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 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 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 7 |
d22105b96492401a62db6f44835ecf063df381d5 | 1,536 | py | Python | CloudCast/src/utils/one_hot_encoder.py | holmdk/CloudCast | 614ef77f08c5d12832ee5f9ba347f1d3fd67931a | [
"CC0-1.0"
] | 2 | 2021-12-21T03:03:03.000Z | 2022-01-16T08:15:13.000Z | CloudCast/src/utils/one_hot_encoder.py | holmdk/CloudCast | 614ef77f08c5d12832ee5f9ba347f1d3fd67931a | [
"CC0-1.0"
] | null | null | null | CloudCast/src/utils/one_hot_encoder.py | holmdk/CloudCast | 614ef77f08c5d12832ee5f9ba347f1d3fd67931a | [
"CC0-1.0"
] | 3 | 2021-04-24T15:14:28.000Z | 2021-12-03T17:46:03.000Z | import torch
#adapted from http://jacobkimmel.github.io/pytorch_onehot/
def make_one_hot(labels, C=4):
'''
Converts an integer label torch.autograd.Variable to a one-hot Variable.
Parameters
----------
labels : torch.autograd.Variable of torch.cuda.LongTensor
N x 1 x H x W, where... | 30.117647 | 113 | 0.633464 | 221 | 1,536 | 4.339367 | 0.276018 | 0.062565 | 0.131387 | 0.095933 | 0.757039 | 0.709072 | 0.709072 | 0.709072 | 0.709072 | 0.709072 | 0 | 0.013974 | 0.254557 | 1,536 | 50 | 114 | 30.72 | 0.823581 | 0.616536 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 7 |
d225b917b80e8b3a508a5c0294a48a7ddcfa40fa | 10,269 | py | Python | tests/parsers/sqlite_plugins/chrome.py | nnyx7/plaso | 9b05ad200acc7f5ad1fae9788ff8409fea8af2f8 | [
"Apache-2.0"
] | null | null | null | tests/parsers/sqlite_plugins/chrome.py | nnyx7/plaso | 9b05ad200acc7f5ad1fae9788ff8409fea8af2f8 | [
"Apache-2.0"
] | null | null | null | tests/parsers/sqlite_plugins/chrome.py | nnyx7/plaso | 9b05ad200acc7f5ad1fae9788ff8409fea8af2f8 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Tests for the Google Chrome History database plugin."""
from __future__ import unicode_literals
import unittest
from plaso.formatters import chrome as _ # pylint: disable=unused-import
from plaso.lib import definitions
from plaso.parsers.sqlite_plugins import chrome... | 37.072202 | 77 | 0.711656 | 1,228 | 10,269 | 5.730456 | 0.144137 | 0.068211 | 0.068211 | 0.051158 | 0.884468 | 0.851357 | 0.851073 | 0.831178 | 0.816967 | 0.789541 | 0 | 0.053007 | 0.180641 | 10,269 | 276 | 78 | 37.206522 | 0.783337 | 0.102639 | 0 | 0.777778 | 0 | 0 | 0.219858 | 0.042335 | 0 | 0 | 0 | 0 | 0.169312 | 1 | 0.021164 | false | 0 | 0.037037 | 0 | 0.068783 | 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 |
d271fcee0a3dd8fde9814b03fdd7230d51ece964 | 24,539 | py | Python | icssploit/shell.py | tijldeneut/icssploit | e9c6c49fe69d0302b51021f476422dc5940d09bc | [
"BSD-2-Clause"
] | 20 | 2021-01-16T13:36:22.000Z | 2022-03-23T08:00:41.000Z | icssploit/shell.py | tijldeneut/icssploit | e9c6c49fe69d0302b51021f476422dc5940d09bc | [
"BSD-2-Clause"
] | null | null | null | icssploit/shell.py | tijldeneut/icssploit | e9c6c49fe69d0302b51021f476422dc5940d09bc | [
"BSD-2-Clause"
] | 7 | 2021-01-18T18:46:49.000Z | 2021-09-10T06:37:49.000Z | import socket
import telnetlib
import http.server
import threading
from .printer import printer_queue
from icssploit.utils import (
print_info,
print_error,
print_success,
print_status,
random_text,
)
def shell(exploit, architecture="", method="", **params):
while 1:
while not printe... | 50.595876 | 152 | 0.573006 | 4,162 | 24,539 | 3.361365 | 0.096588 | 0.468335 | 0.539743 | 0.535239 | 0.648821 | 0.60629 | 0.564689 | 0.530593 | 0.494568 | 0.476912 | 0 | 0.31149 | 0.233221 | 24,539 | 484 | 153 | 50.700413 | 0.432026 | 0.123029 | 0 | 0.229268 | 0 | 0.258537 | 0.568784 | 0.434169 | 0.002439 | 0 | 0.003187 | 0 | 0 | 1 | 0.039024 | false | 0.002439 | 0.014634 | 0.002439 | 0.095122 | 0.053659 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
9655c4750065c8aab745ce56346ad3da6bed2402 | 196 | py | Python | paz/optimization/losses/__init__.py | niqbal996/paz | f27205907367415d5b21f90e1a1d1d1ce598e889 | [
"MIT"
] | 300 | 2020-10-29T08:02:05.000Z | 2022-03-30T21:47:32.000Z | paz/optimization/losses/__init__.py | albertofernandezvillan/paz | 9fbd50b993f37e1e807297a29c6044c09967c9cc | [
"MIT"
] | 30 | 2020-10-29T12:40:32.000Z | 2022-03-31T14:06:35.000Z | paz/optimization/losses/__init__.py | albertofernandezvillan/paz | 9fbd50b993f37e1e807297a29c6044c09967c9cc | [
"MIT"
] | 62 | 2020-10-29T12:34:13.000Z | 2022-03-29T05:21:45.000Z | from .multi_box_loss import MultiBoxLoss
from .keypointnet_loss import KeypointNetLoss
from .segmentation import DiceLoss
from .segmentation import FocalLoss
from .segmentation import JaccardLoss
| 32.666667 | 45 | 0.872449 | 23 | 196 | 7.304348 | 0.521739 | 0.285714 | 0.392857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102041 | 196 | 5 | 46 | 39.2 | 0.954545 | 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 |
96664eda008c9845b63827dabf5fba29b985a2b0 | 188 | py | Python | models/whitebox/__init__.py | yidinghao/whitebox-lstm | dcdeaf11c8c374d200801791b59c007094f70baf | [
"MIT"
] | 2 | 2020-11-17T21:57:24.000Z | 2021-01-23T13:16:24.000Z | models/whitebox/__init__.py | yidinghao/whitebox-lstm | dcdeaf11c8c374d200801791b59c007094f70baf | [
"MIT"
] | null | null | null | models/whitebox/__init__.py | yidinghao/whitebox-lstm | dcdeaf11c8c374d200801791b59c007094f70baf | [
"MIT"
] | null | null | null | from models.whitebox.bracket import BracketRNN
from models.whitebox.counter import CounterRNN
from models.whitebox.sp import SPRNN, FSARNN
from models.whitebox.whitebox import WhiteBoxRNN
| 37.6 | 48 | 0.861702 | 25 | 188 | 6.48 | 0.48 | 0.246914 | 0.444444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090426 | 188 | 4 | 49 | 47 | 0.947368 | 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 |
96ac18b0d66457623d682bcb15d0e966f46ec30b | 7,189 | py | Python | models/effcientnet.py | koukyo1994/kaggle-rfcx | c3573d014d99312b58882e7b939de6c1055129b1 | [
"MIT"
] | 6 | 2021-02-18T05:18:17.000Z | 2022-02-19T02:49:32.000Z | models/effcientnet.py | koukyo1994/kaggle-rfcx | c3573d014d99312b58882e7b939de6c1055129b1 | [
"MIT"
] | null | null | null | models/effcientnet.py | koukyo1994/kaggle-rfcx | c3573d014d99312b58882e7b939de6c1055129b1 | [
"MIT"
] | 2 | 2021-02-18T11:31:50.000Z | 2022-02-19T02:49:07.000Z | import timm
import torch
import torch.nn as nn
import torch.nn.functional as F
from efficientnet_pytorch import EfficientNet
from .layers import AttBlockV2
from .utils import init_layer, interpolate, pad_framewise_output
class TimmEfficientNetSED(nn.Module):
def __init__(self, base_model_name: str, pretrained=F... | 34.898058 | 83 | 0.643483 | 879 | 7,189 | 4.988623 | 0.113766 | 0.085519 | 0.050399 | 0.061574 | 0.872064 | 0.853592 | 0.853592 | 0.853592 | 0.853592 | 0.853592 | 0 | 0.020064 | 0.258172 | 7,189 | 205 | 84 | 35.068293 | 0.802175 | 0.052024 | 0 | 0.814286 | 0 | 0 | 0.032505 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064286 | false | 0 | 0.05 | 0 | 0.157143 | 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 |
96b78bc8c3c27c4dbe8b3c27b0af4cc2e23fd612 | 2,536 | py | Python | tictactoes/tic_tac_toe_1.py | SeanRavenhill/Python-Playground | bc638be8ec48fa54946395fd93a6944075438fb3 | [
"MIT"
] | null | null | null | tictactoes/tic_tac_toe_1.py | SeanRavenhill/Python-Playground | bc638be8ec48fa54946395fd93a6944075438fb3 | [
"MIT"
] | null | null | null | tictactoes/tic_tac_toe_1.py | SeanRavenhill/Python-Playground | bc638be8ec48fa54946395fd93a6944075438fb3 | [
"MIT"
] | null | null | null | play = "_OOOO_X_X"
print("---------")
print("| " + play[0] + " " + play[1] + " " + play[2] + " |")
print("| " + play[3] + " " + play[4] + " " + play[5] + " |")
print("| " + play[6] + " " + play[7] + " " + play[8] + " |")
print("---------")
plays = [x for x in play]
if play[0] == play[1] and play[1] == play[2]: # Ve... | 40.253968 | 77 | 0.539826 | 399 | 2,536 | 3.421053 | 0.105263 | 0.102564 | 0.131868 | 0.21978 | 0.832234 | 0.778755 | 0.737729 | 0.737729 | 0.718681 | 0.718681 | 0 | 0.0536 | 0.249606 | 2,536 | 62 | 78 | 40.903226 | 0.663689 | 0.158517 | 0 | 0.711864 | 0 | 0 | 0.109797 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.474576 | 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 | 1 | 0 | 9 |
737653856442575973e895d13957ebdf025eb7f2 | 286 | py | Python | cloudsplaining/command/__init__.py | roock/cloudsplaining | 5bda122de41f945e74b977ce109800fd67aa66d4 | [
"BSD-3-Clause"
] | 3 | 2021-06-08T16:05:09.000Z | 2021-12-11T19:42:41.000Z | cloudsplaining/command/__init__.py | roock/cloudsplaining | 5bda122de41f945e74b977ce109800fd67aa66d4 | [
"BSD-3-Clause"
] | 5 | 2020-05-06T21:04:25.000Z | 2021-02-12T01:15:55.000Z | cloudsplaining/command/__init__.py | roock/cloudsplaining | 5bda122de41f945e74b977ce109800fd67aa66d4 | [
"BSD-3-Clause"
] | 3 | 2021-06-17T10:02:10.000Z | 2022-02-14T22:27:15.000Z | # pylint: disable=missing-module-docstring
from cloudsplaining.command import create_exclusions_file
from cloudsplaining.command import expand_policy
from cloudsplaining.command import download
from cloudsplaining.command import scan
from cloudsplaining.command import scan_policy_file
| 40.857143 | 57 | 0.884615 | 35 | 286 | 7.085714 | 0.457143 | 0.362903 | 0.504032 | 0.625 | 0.282258 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08042 | 286 | 6 | 58 | 47.666667 | 0.942966 | 0.13986 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
73c12a772ca191c2d01fad736a723127f9d7c741 | 14,507 | py | Python | framework_api/test_static_executor.py | zjjlivein/continuous_integration | c8825f32136fdd425389702c37ded08d6fd28a26 | [
"Apache-2.0"
] | 14 | 2020-03-04T07:52:07.000Z | 2022-02-14T01:39:14.000Z | framework_api/test_static_executor.py | zjjlivein/continuous_integration | c8825f32136fdd425389702c37ded08d6fd28a26 | [
"Apache-2.0"
] | 19 | 2020-03-04T03:52:10.000Z | 2021-12-23T07:02:07.000Z | framework_api/test_static_executor.py | zjjlivein/continuous_integration | c8825f32136fdd425389702c37ded08d6fd28a26 | [
"Apache-2.0"
] | 26 | 2020-03-04T05:39:09.000Z | 2022-02-14T01:43:28.000Z | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | 39.636612 | 78 | 0.562625 | 1,683 | 14,507 | 4.674985 | 0.104575 | 0.074733 | 0.064057 | 0.041052 | 0.839731 | 0.839731 | 0.825241 | 0.825241 | 0.825241 | 0.825241 | 0 | 0.034918 | 0.322879 | 14,507 | 365 | 79 | 39.745205 | 0.766059 | 0.068725 | 0 | 0.864583 | 0 | 0 | 0.027214 | 0.00233 | 0 | 0 | 0 | 0 | 0.03125 | 1 | 0.034722 | false | 0 | 0.024306 | 0 | 0.059028 | 0.006944 | 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 |
fb77b4dd7b416b42abd7b6197143de0f140d07b3 | 19,159 | py | Python | tests/test_declaration.py | newbazz/colosseum | 5089a31ccca0df6c0c0aa20bdf7b5888007d45e7 | [
"BSD-3-Clause"
] | null | null | null | tests/test_declaration.py | newbazz/colosseum | 5089a31ccca0df6c0c0aa20bdf7b5888007d45e7 | [
"BSD-3-Clause"
] | null | null | null | tests/test_declaration.py | newbazz/colosseum | 5089a31ccca0df6c0c0aa20bdf7b5888007d45e7 | [
"BSD-3-Clause"
] | null | null | null | from unittest import TestCase
from colosseum import engine as css_engine
from colosseum.colors import GOLDENROD, NAMED_COLOR, REBECCAPURPLE
from colosseum.constants import AUTO, BLOCK, INLINE, TABLE, Choices
from colosseum.declaration import CSS, validated_property
from colosseum.units import percent, px
from .utils ... | 32.038462 | 101 | 0.594603 | 2,260 | 19,159 | 4.990265 | 0.077876 | 0.111722 | 0.102766 | 0.12981 | 0.853786 | 0.834368 | 0.793669 | 0.738695 | 0.724153 | 0.687711 | 0 | 0.025149 | 0.306801 | 19,159 | 597 | 102 | 32.092127 | 0.824034 | 0.100057 | 0 | 0.726161 | 0 | 0.002445 | 0.060814 | 0 | 0 | 0 | 0 | 0 | 0.408313 | 1 | 0.03912 | false | 0 | 0.017115 | 0 | 0.080685 | 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 |
fb927186df338b0e3908bf5b3088e6f7cda90bb7 | 11,924 | py | Python | dddm/detectors/super_cdms.py | JoranAngevaare/dddm | 3461e37984bac4d850beafecc9d1881b84fb226c | [
"MIT"
] | null | null | null | dddm/detectors/super_cdms.py | JoranAngevaare/dddm | 3461e37984bac4d850beafecc9d1881b84fb226c | [
"MIT"
] | 85 | 2021-09-20T12:08:53.000Z | 2022-03-30T12:48:06.000Z | dddm/detectors/super_cdms.py | JoranAngevaare/dddm | 3461e37984bac4d850beafecc9d1881b84fb226c | [
"MIT"
] | null | null | null | import typing as ty
from abc import ABC
from .experiment import Experiment, lindhard_quenching_factor, _get_nr_resolution
import numpy as np
import dddm
from functools import partial
export, __all__ = dddm.exporter()
class _BaseSuperCdms(Experiment, ABC):
"""Base class of superCDMS to introduce shared propertie... | 37.031056 | 100 | 0.646344 | 1,629 | 11,924 | 4.361572 | 0.121547 | 0.045039 | 0.05855 | 0.038283 | 0.850387 | 0.83772 | 0.774947 | 0.75651 | 0.726953 | 0.72076 | 0 | 0.035843 | 0.253606 | 11,924 | 321 | 101 | 37.146417 | 0.762472 | 0.128145 | 0 | 0.658436 | 0 | 0 | 0.065649 | 0.009001 | 0 | 0 | 0 | 0 | 0.016461 | 1 | 0.111111 | false | 0 | 0.024691 | 0.016461 | 0.547325 | 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 |
fbc57ff509fe0fdcfd51d82211eb83705dac0978 | 957,621 | py | Python | pyidf/surface_construction_elements.py | marcelosalles/pyidf | c2f744211572b5e14e29522aac1421ba88addb0e | [
"Apache-2.0"
] | 19 | 2015-12-08T23:33:51.000Z | 2022-01-31T04:41:10.000Z | pyidf/surface_construction_elements.py | marcelosalles/pyidf | c2f744211572b5e14e29522aac1421ba88addb0e | [
"Apache-2.0"
] | 2 | 2019-10-04T10:57:00.000Z | 2021-10-01T06:46:17.000Z | pyidf/surface_construction_elements.py | marcelosalles/pyidf | c2f744211572b5e14e29522aac1421ba88addb0e | [
"Apache-2.0"
] | 7 | 2015-11-04T02:25:01.000Z | 2021-12-08T03:14:28.000Z | """ Data objects in group "Surface Construction Elements"
"""
from collections import OrderedDict
import logging
from pyidf.helper import DataObject
logger = logging.getLogger("pyidf")
logger.addHandler(logging.NullHandler())
class Material(DataObject):
"""Corresponds to IDD object `Material` Regular material... | 39.35321 | 123 | 0.465598 | 84,635 | 957,621 | 5.165558 | 0.009783 | 0.025911 | 0.027338 | 0.026021 | 0.93339 | 0.908751 | 0.885166 | 0.84938 | 0.797972 | 0.762333 | 0 | 0.019434 | 0.45268 | 957,621 | 24,333 | 124 | 39.354827 | 0.814693 | 0.274628 | 0 | 0.758085 | 0 | 0 | 0.235793 | 0.023689 | 0 | 0 | 0 | 0 | 0 | 1 | 0.126496 | false | 0 | 0.000268 | 0 | 0.197427 | 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 |
837b7a81a53a0003f20450258ded9fb2526e5fb8 | 191 | py | Python | h/emails/__init__.py | julien-cheng/h | 36c8ec044725720cf36f0986cdf025395aca8929 | [
"BSD-2-Clause"
] | 2 | 2019-08-04T07:22:11.000Z | 2020-07-17T05:01:41.000Z | h/emails/__init__.py | fuelpress/i.fuel.press | af7b25895d813af0fef656dcf483afe852a99d76 | [
"BSD-2-Clause"
] | 4 | 2020-03-24T17:38:24.000Z | 2022-03-02T05:45:01.000Z | h/emails/__init__.py | fuelpress/i.fuel.press | af7b25895d813af0fef656dcf483afe852a99d76 | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from h.emails import reply_notification, reset_password, signup
__all__ = ("reply_notification", "reset_password", "signup")
| 27.285714 | 63 | 0.764398 | 23 | 191 | 5.782609 | 0.695652 | 0.255639 | 0.330827 | 0.451128 | 0.541353 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005917 | 0.115183 | 191 | 6 | 64 | 31.833333 | 0.781065 | 0.109948 | 0 | 0 | 0 | 0 | 0.22619 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.666667 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 7 |
83b81815e11248e412710ea10679ce9c9c0705ab | 17,311 | py | Python | tests/sklearn/test_sklearn_pipeline.py | andreArtelt/ceml | 364d4630d6a01592c2ab86f2d53dbb7feb682381 | [
"MIT"
] | 24 | 2019-07-12T08:11:25.000Z | 2021-12-09T19:24:53.000Z | tests/sklearn/test_sklearn_pipeline.py | andreArtelt/ceml | 364d4630d6a01592c2ab86f2d53dbb7feb682381 | [
"MIT"
] | 6 | 2020-09-28T04:42:44.000Z | 2021-09-27T06:59:36.000Z | tests/sklearn/test_sklearn_pipeline.py | andreArtelt/ceml | 364d4630d6a01592c2ab86f2d53dbb7feb682381 | [
"MIT"
] | 7 | 2019-09-11T13:54:57.000Z | 2021-01-14T13:13:26.000Z | # -*- coding: utf-8 -*-
import sys
sys.path.insert(0,'..')
import numpy as np
np.random.seed(42)
import sklearn
from sklearn.datasets import load_iris, load_boston
from sklearn.model_selection import train_test_split
from sklearn.linear_model import LogisticRegression, Lasso
from sklearn.preprocessing import StandardS... | 44.048346 | 190 | 0.718965 | 2,638 | 17,311 | 4.47536 | 0.045489 | 0.138235 | 0.023378 | 0.020837 | 0.928511 | 0.924869 | 0.922921 | 0.92165 | 0.919024 | 0.917584 | 0 | 0.017633 | 0.15805 | 17,311 | 393 | 191 | 44.048346 | 0.792384 | 0.049968 | 0 | 0.799197 | 0 | 0 | 0.024738 | 0 | 0 | 0 | 0 | 0 | 0.421687 | 1 | 0.044177 | false | 0 | 0.040161 | 0 | 0.084337 | 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 |
83e8c136c9d627a3bae41144773ed353456666ed | 42,284 | py | Python | osmchadjango/supervise/tests/test_views.py | tordans/osmcha-django | 21456989abec20c9c65a91c57cc9da8661121e6a | [
"BSD-2-Clause"
] | null | null | null | osmchadjango/supervise/tests/test_views.py | tordans/osmcha-django | 21456989abec20c9c65a91c57cc9da8661121e6a | [
"BSD-2-Clause"
] | null | null | null | osmchadjango/supervise/tests/test_views.py | tordans/osmcha-django | 21456989abec20c9c65a91c57cc9da8661121e6a | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import xml.etree.ElementTree as ET
from django.urls import reverse
from django.contrib.gis.geos import MultiPolygon, Polygon, Point, LineString
from rest_framework.test import APITestCase
from social_django.models import UserSocialAuth
from ...changeset... | 37.854969 | 91 | 0.56733 | 4,552 | 42,284 | 5.164763 | 0.056678 | 0.08741 | 0.080221 | 0.070311 | 0.87533 | 0.848533 | 0.823139 | 0.797788 | 0.773628 | 0.746576 | 0 | 0.029542 | 0.299522 | 42,284 | 1,116 | 92 | 37.888889 | 0.764205 | 0.019771 | 0 | 0.644269 | 0 | 0 | 0.120311 | 0.012374 | 0 | 0 | 0 | 0 | 0.167984 | 1 | 0.0583 | false | 0.05336 | 0.01581 | 0 | 0.082016 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 7 |
f7f4535f06fc137c900ae9eaa837bf15c073f00e | 49 | py | Python | b_hello/hello.py | cclai999/pytest-0706 | 1707a3b4fefee2d97a1f9fbccda80f859e2933cb | [
"MIT"
] | null | null | null | b_hello/hello.py | cclai999/pytest-0706 | 1707a3b4fefee2d97a1f9fbccda80f859e2933cb | [
"MIT"
] | null | null | null | b_hello/hello.py | cclai999/pytest-0706 | 1707a3b4fefee2d97a1f9fbccda80f859e2933cb | [
"MIT"
] | null | null | null | def hello_name(name):
return f'Hello {name}'
| 16.333333 | 26 | 0.673469 | 8 | 49 | 4 | 0.625 | 0.5625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183673 | 49 | 2 | 27 | 24.5 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.244898 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 1 | 0 | 1 | 1 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 7 |
7903133b41fa1b97b42a57086a2ea357c2af4943 | 160 | py | Python | civet/__init__.py | PMKielstra/Civet | 1731a1b1e670a082dfcbf545f3431a79d7954411 | [
"MIT"
] | 3 | 2020-06-27T21:33:53.000Z | 2020-07-03T07:39:46.000Z | civet/__init__.py | PMKielstra/Civet | 1731a1b1e670a082dfcbf545f3431a79d7954411 | [
"MIT"
] | null | null | null | civet/__init__.py | PMKielstra/Civet | 1731a1b1e670a082dfcbf545f3431a79d7954411 | [
"MIT"
] | null | null | null | from .civet import Civet
from .building_blocks import *
from .builtin_scenario_sources import *
from .builtin_analyzers import *
from .builtin_outputs import *
| 26.666667 | 39 | 0.81875 | 21 | 160 | 6 | 0.47619 | 0.238095 | 0.404762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 160 | 5 | 40 | 32 | 0.9 | 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 |
791dfad53cd2a8af5d637308ac6edd7c1c6b6ee8 | 11,624 | py | Python | tests/test_dic.py | narupo/janome | 9304d45ce8e0ed7094284d478b318c02ccbe6408 | [
"Apache-2.0"
] | 748 | 2015-02-14T12:13:59.000Z | 2022-03-27T23:16:47.000Z | tests/test_dic.py | narupo/janome | 9304d45ce8e0ed7094284d478b318c02ccbe6408 | [
"Apache-2.0"
] | 87 | 2015-04-09T02:36:14.000Z | 2022-03-23T06:15:29.000Z | tests/test_dic.py | narupo/janome | 9304d45ce8e0ed7094284d478b318c02ccbe6408 | [
"Apache-2.0"
] | 66 | 2015-04-11T04:42:28.000Z | 2022-03-27T16:14:30.000Z | # Copyright 2015 moco_beta
#
# 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, softwa... | 50.759825 | 112 | 0.649088 | 1,475 | 11,624 | 4.932881 | 0.147797 | 0.071193 | 0.07669 | 0.097993 | 0.809373 | 0.776663 | 0.753848 | 0.741067 | 0.728697 | 0.722375 | 0 | 0.013202 | 0.224535 | 11,624 | 228 | 113 | 50.982456 | 0.793987 | 0.130936 | 0 | 0.573248 | 0 | 0 | 0.091262 | 0.031912 | 0 | 0 | 0 | 0.004386 | 0.56051 | 1 | 0.044586 | false | 0 | 0.038217 | 0 | 0.089172 | 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 |
e394cf8051ab02ec8d95d9b81d89e858337e83f4 | 102 | py | Python | a24/test.py | assassinen/coursera_mfti_python | eee7b3c55256f391c1be32924fa1ad3364b307f2 | [
"Apache-2.0"
] | null | null | null | a24/test.py | assassinen/coursera_mfti_python | eee7b3c55256f391c1be32924fa1ad3364b307f2 | [
"Apache-2.0"
] | null | null | null | a24/test.py | assassinen/coursera_mfti_python | eee7b3c55256f391c1be32924fa1ad3364b307f2 | [
"Apache-2.0"
] | null | null | null | 'https://git.8gen.team/exchange/backoffice/b0-db_generator/blob/BO-188/db_generator/data/test_1.jsonl' | 102 | 102 | 0.823529 | 18 | 102 | 4.5 | 0.888889 | 0.271605 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 0 | 102 | 1 | 102 | 102 | 0.735294 | 0.980392 | 0 | 0 | 0 | 1 | 0.970874 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
e3ac2abc9f37c57687d9e61cf167f9c0f7957c0b | 5,897 | py | Python | src/renet2/utils/tokenizer.py | sujunhao/RENET2 | 21fb57d17544556e5f62737a6df40ff5e5f990ba | [
"BSD-3-Clause"
] | 16 | 2021-03-06T10:41:00.000Z | 2022-03-29T02:16:04.000Z | src/renet2/utils/tokenizer.py | sujunhao/RENET2 | 21fb57d17544556e5f62737a6df40ff5e5f990ba | [
"BSD-3-Clause"
] | 2 | 2021-06-16T10:19:47.000Z | 2021-07-16T08:12:18.000Z | src/renet2/utils/tokenizer.py | sujunhao/RENET2 | 21fb57d17544556e5f62737a6df40ff5e5f990ba | [
"BSD-3-Clause"
] | 1 | 2022-03-22T02:13:19.000Z | 2022-03-22T02:13:19.000Z |
def replace(s, s1, s2, skip):
pos = 0
while (1):
i = s.find(s1, pos)
if (i == -1):
break
if (i > 0 and s[i-1] == skip):
pos = i + 1
continue
s = s[:i] + s2 + s[i+len(s1):]
pos = i + len(s2)
return s
#only add space and split
def tokenize(s):
#print(s)
lt = []
if (s[0... | 26.09292 | 72 | 0.370527 | 819 | 5,897 | 2.664225 | 0.069597 | 0.147571 | 0.560953 | 0.311641 | 0.907883 | 0.907883 | 0.907883 | 0.907883 | 0.907883 | 0.907883 | 0 | 0.008744 | 0.301848 | 5,897 | 225 | 73 | 26.208889 | 0.521253 | 0.14465 | 0 | 0.772455 | 0 | 0.011976 | 0.178265 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017964 | false | 0 | 0 | 0 | 0.035928 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
e3fd3ed47ad8b8905f736c911abe74102883803a | 25,448 | py | Python | pytorch_ares/third_party/hydra/symbolic_interval/interval.py | thu-ml/realsafe | 474d549aa402b4cdd5e3629d23d035c31b60a360 | [
"MIT"
] | 107 | 2020-06-15T09:55:11.000Z | 2020-12-20T11:27:11.000Z | pytorch_ares/third_party/hydra/symbolic_interval/interval.py | haichen-ber/ares | 474d549aa402b4cdd5e3629d23d035c31b60a360 | [
"MIT"
] | 7 | 2020-06-14T03:00:18.000Z | 2020-12-07T07:10:10.000Z | pytorch_ares/third_party/hydra/symbolic_interval/interval.py | haichen-ber/ares | 474d549aa402b4cdd5e3629d23d035c31b60a360 | [
"MIT"
] | 19 | 2020-06-14T08:35:33.000Z | 2020-12-19T13:43:41.000Z | '''
Interval class definitions
** Top contributor: Shiqi Wang
** This file is part of the symbolic interval analysis library.
** Copyright (c) 2018-2019 by the authors listed in the file LICENSE
** and their institutional affiliations.
** All rights reserved.
'''
from __future__ import print_function
import numpy as ... | 29.728972 | 96 | 0.682175 | 4,222 | 25,448 | 4.020133 | 0.083373 | 0.057974 | 0.036764 | 0.036057 | 0.80958 | 0.786367 | 0.772757 | 0.764508 | 0.762564 | 0.744182 | 0 | 0.015563 | 0.171801 | 25,448 | 855 | 97 | 29.763743 | 0.789761 | 0.212001 | 0 | 0.83731 | 0 | 0 | 0.02801 | 0 | 0 | 0 | 0 | 0 | 0.030369 | 1 | 0.073753 | false | 0 | 0.008677 | 0 | 0.130152 | 0.002169 | 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 |
583219fe7021da84b985f05e6b8fe475fa7375d0 | 30,181 | py | Python | ceilometer/tests/unit/ipmi/notifications/ipmi_test_data.py | maestro-hybrid-cloud/ceilometer | 939cb080a193e14af8ceb44df3b631f5c2f6bf6d | [
"Apache-2.0"
] | 1 | 2016-03-10T06:55:45.000Z | 2016-03-10T06:55:45.000Z | ceilometer/tests/unit/ipmi/notifications/ipmi_test_data.py | maestro-hybrid-cloud/ceilometer | 939cb080a193e14af8ceb44df3b631f5c2f6bf6d | [
"Apache-2.0"
] | null | null | null | ceilometer/tests/unit/ipmi/notifications/ipmi_test_data.py | maestro-hybrid-cloud/ceilometer | 939cb080a193e14af8ceb44df3b631f5c2f6bf6d | [
"Apache-2.0"
] | 3 | 2015-10-08T20:03:36.000Z | 2020-02-05T10:45:50.000Z | #
# Copyright 2014 Red Hat, 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 writi... | 37.915829 | 75 | 0.535039 | 3,003 | 30,181 | 5.361971 | 0.105228 | 0.040989 | 0.080611 | 0.040989 | 0.864924 | 0.847038 | 0.8353 | 0.803565 | 0.803565 | 0.782015 | 0 | 0.09209 | 0.298764 | 30,181 | 795 | 76 | 37.963522 | 0.66873 | 0.024519 | 0 | 0.740397 | 0 | 0 | 0.59359 | 0.033853 | 0 | 0 | 0.011013 | 0 | 0.113907 | 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 |
58554d977eacfb2b3fad7a85a068d00f0bbd8221 | 8,100 | py | Python | tests/test_dataset/test_dataset_numpy.py | zechengz/tdml | af60d35b7b62259e414edaa0a45fb2d3563b0430 | [
"MIT"
] | 2 | 2020-08-08T00:36:23.000Z | 2021-06-21T19:51:30.000Z | tests/test_dataset/test_dataset_numpy.py | zechengz/tdml | af60d35b7b62259e414edaa0a45fb2d3563b0430 | [
"MIT"
] | null | null | null | tests/test_dataset/test_dataset_numpy.py | zechengz/tdml | af60d35b7b62259e414edaa0a45fb2d3563b0430 | [
"MIT"
] | 1 | 2020-10-06T19:40:41.000Z | 2020-10-06T19:40:41.000Z | import os
import numpy as np
import tdml
import unittest
from utils import *
class TestDatasetNumPy(unittest.TestCase):
def test_no_label(self):
df = generate_simple_pd_dataframe()
# no label, only feature
ds = tdml.Dataset(df)
ds.transform()
self.assertEqual(ds.feature.shape, (10, 5))
self.assertEqual(... | 32.66129 | 143 | 0.712346 | 1,272 | 8,100 | 4.343553 | 0.081761 | 0.225339 | 0.221538 | 0.059729 | 0.856833 | 0.837466 | 0.780633 | 0.708778 | 0.646516 | 0.612489 | 0 | 0.032203 | 0.125926 | 8,100 | 248 | 144 | 32.66129 | 0.748164 | 0.022593 | 0 | 0.580808 | 1 | 0.015152 | 0.112306 | 0.005312 | 0 | 0 | 0 | 0 | 0.434343 | 1 | 0.065657 | false | 0 | 0.025253 | 0 | 0.09596 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
5471446bd7dab70562ac3af071c70f3245a7e8a2 | 4,041 | py | Python | tests/smart_timelock/fixtures.py | EchoDao-BSC/badger-system | d9276c5ce2053f0f5f1eb832f6f13204d1be9489 | [
"MIT"
] | 99 | 2020-12-02T08:40:48.000Z | 2022-03-15T05:21:06.000Z | tests/smart_timelock/fixtures.py | EchoDao-BSC/badger-system | d9276c5ce2053f0f5f1eb832f6f13204d1be9489 | [
"MIT"
] | 115 | 2020-12-15T07:15:39.000Z | 2022-03-28T22:21:03.000Z | tests/smart_timelock/fixtures.py | EchoDao-BSC/badger-system | d9276c5ce2053f0f5f1eb832f6f13204d1be9489 | [
"MIT"
] | 56 | 2020-12-11T06:50:04.000Z | 2022-02-21T09:17:38.000Z | import pytest
from brownie import *
from dotmap import DotMap
@pytest.fixture(scope="module")
def timelock_unit():
unlockTime = chain.time() + 1000000
deployer = accounts[0]
team = [accounts[1], accounts[2], accounts[3]]
governor = accounts[5]
minnow = accounts[4]
tokenGifterAmount = Wei("500... | 29.282609 | 86 | 0.628557 | 327 | 4,041 | 7.761468 | 0.17737 | 0.094563 | 0.085106 | 0.037825 | 0.897557 | 0.876281 | 0.876281 | 0.876281 | 0.876281 | 0.876281 | 0 | 0.024479 | 0.251918 | 4,041 | 137 | 87 | 29.49635 | 0.815084 | 0 | 0 | 0.747826 | 0 | 0 | 0.074734 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017391 | false | 0 | 0.026087 | 0 | 0.043478 | 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 |
547595b76b3f4373c58cc6d38ec6a2f7d54fcaa3 | 91 | py | Python | diy_programs/diy_7_fns_p4.py | bhalajin/blueprints | 7ad1d7860aafbb4c333de9efbbb7e546ed43c569 | [
"MIT"
] | null | null | null | diy_programs/diy_7_fns_p4.py | bhalajin/blueprints | 7ad1d7860aafbb4c333de9efbbb7e546ed43c569 | [
"MIT"
] | null | null | null | diy_programs/diy_7_fns_p4.py | bhalajin/blueprints | 7ad1d7860aafbb4c333de9efbbb7e546ed43c569 | [
"MIT"
] | null | null | null | def doubleparams(param):
return param*2
print(doubleparams(10))
print(doubleparams('10')) | 18.2 | 25 | 0.769231 | 12 | 91 | 5.833333 | 0.583333 | 0.485714 | 0.542857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059524 | 0.076923 | 91 | 5 | 25 | 18.2 | 0.77381 | 0 | 0 | 0 | 0 | 0 | 0.021739 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.25 | 0.5 | 0.5 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 7 |
5488eb5b63bca495647d82d848e5c7f62e0fc95d | 32 | py | Python | MyPackage/pkg2/hello.py | hisplan/py-packaging-template | 1ffc8c4f834959b781039cbecc8fc6d79f5ba9fe | [
"MIT"
] | null | null | null | MyPackage/pkg2/hello.py | hisplan/py-packaging-template | 1ffc8c4f834959b781039cbecc8fc6d79f5ba9fe | [
"MIT"
] | null | null | null | MyPackage/pkg2/hello.py | hisplan/py-packaging-template | 1ffc8c4f834959b781039cbecc8fc6d79f5ba9fe | [
"MIT"
] | null | null | null | def bar():
return "Hello, bar!" | 16 | 21 | 0.625 | 5 | 32 | 4 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15625 | 32 | 2 | 21 | 16 | 0.740741 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0 | 0 | 0.5 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 7 |
549362aad173dd59ea22b0212ba1b5ebee267ec1 | 171 | py | Python | tests/__init__.py | ahupp/pegen | e28fe4fb1972c55af5ddb6a7bdd9cba4ea072b81 | [
"MIT"
] | 106 | 2020-05-14T03:43:47.000Z | 2022-03-26T21:46:47.000Z | tests/__init__.py | ahupp/pegen | e28fe4fb1972c55af5ddb6a7bdd9cba4ea072b81 | [
"MIT"
] | 60 | 2020-05-07T23:17:46.000Z | 2022-03-30T20:26:25.000Z | tests/__init__.py | ahupp/pegen | e28fe4fb1972c55af5ddb6a7bdd9cba4ea072b81 | [
"MIT"
] | 20 | 2020-05-22T10:21:30.000Z | 2022-03-26T21:23:44.000Z | import os
from test.support import load_package_tests
# Load all tests in package
def load_tests(*args):
return load_package_tests(os.path.dirname(__file__), *args)
| 21.375 | 63 | 0.783626 | 27 | 171 | 4.62963 | 0.592593 | 0.176 | 0.256 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134503 | 171 | 7 | 64 | 24.428571 | 0.844595 | 0.146199 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | true | 0 | 0.5 | 0.25 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 8 |
54bc46427faf302634295a70bd1bcdba4dcecf6e | 18,545 | py | Python | tests/test_api.py | derwolfe/api-pycon2014 | ec7efda1fda87244cdf4d8a2b0f48927c2edb835 | [
"MIT"
] | 1 | 2019-01-21T04:58:27.000Z | 2019-01-21T04:58:27.000Z | tests/test_api.py | derwolfe/api-pycon2014 | ec7efda1fda87244cdf4d8a2b0f48927c2edb835 | [
"MIT"
] | null | null | null | tests/test_api.py | derwolfe/api-pycon2014 | ec7efda1fda87244cdf4d8a2b0f48927c2edb835 | [
"MIT"
] | null | null | null | import unittest
from werkzeug.exceptions import BadRequest
from .test_client import TestClient
from api.app import create_app
from api.models import db, User
from api.errors import ValidationError
class TestAPI(unittest.TestCase):
default_username = 'dave'
default_password = 'cat'
def setUp(self):
... | 40.315217 | 109 | 0.573146 | 2,272 | 18,545 | 4.551056 | 0.069982 | 0.189555 | 0.112959 | 0.155319 | 0.837911 | 0.814217 | 0.771277 | 0.743037 | 0.727176 | 0.692263 | 0 | 0.024961 | 0.278458 | 18,545 | 459 | 110 | 40.40305 | 0.747777 | 0.033001 | 0 | 0.628242 | 0 | 0 | 0.118837 | 0.02303 | 0 | 0 | 0 | 0 | 0.440922 | 1 | 0.0317 | false | 0.014409 | 0.017291 | 0 | 0.057637 | 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 |
b7234751fada3e49671e5e58af192cb15feff614 | 61,004 | py | Python | src/genie/libs/parser/junos/tests/test_show_bgp.py | noziwatele/genieparser | 4d7a62a870b30dfc8e2a41bf1ad81218bca6f5e9 | [
"Apache-2.0"
] | null | null | null | src/genie/libs/parser/junos/tests/test_show_bgp.py | noziwatele/genieparser | 4d7a62a870b30dfc8e2a41bf1ad81218bca6f5e9 | [
"Apache-2.0"
] | null | null | null | src/genie/libs/parser/junos/tests/test_show_bgp.py | noziwatele/genieparser | 4d7a62a870b30dfc8e2a41bf1ad81218bca6f5e9 | [
"Apache-2.0"
] | null | null | null |
# Python
import unittest
from unittest.mock import Mock
# ATS
from pyats.topology import Device
from pyats.topology import loader
# Metaparser
from genie.metaparser.util.exceptions import SchemaEmptyParserError
# junos show_ospf
from genie.libs.parser.junos.show_bgp import (ShowBgpGroupBrief,
... | 41.984859 | 112 | 0.391892 | 4,845 | 61,004 | 4.874923 | 0.04128 | 0.069393 | 0.048266 | 0.037936 | 0.953554 | 0.949151 | 0.932004 | 0.919345 | 0.901393 | 0.888183 | 0 | 0.083908 | 0.491673 | 61,004 | 1,452 | 113 | 42.013774 | 0.677749 | 0.003623 | 0 | 0.814038 | 0 | 0.003618 | 0.528777 | 0.096972 | 0 | 0 | 0 | 0 | 0.004342 | 1 | 0.004342 | false | 0 | 0.004342 | 0 | 0.021708 | 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 |
3f7b6b49a78e0c420431267b8e0868e805d4e6f9 | 105 | py | Python | daceml/transformation/__init__.py | manuelburger/daceml | 501a05b0531bcf208b43816eeaba998feb83feb5 | [
"BSD-3-Clause"
] | null | null | null | daceml/transformation/__init__.py | manuelburger/daceml | 501a05b0531bcf208b43816eeaba998feb83feb5 | [
"BSD-3-Clause"
] | null | null | null | daceml/transformation/__init__.py | manuelburger/daceml | 501a05b0531bcf208b43816eeaba998feb83feb5 | [
"BSD-3-Clause"
] | null | null | null | from .constant_folding import ConstantFolding
from .parameter_to_transient import parameter_to_transient
| 35 | 58 | 0.904762 | 13 | 105 | 6.923077 | 0.615385 | 0.244444 | 0.444444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07619 | 105 | 2 | 59 | 52.5 | 0.927835 | 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 |
3f81bbe6120825b64ad91b7ec7594077da504f4d | 110 | py | Python | nano/blocks.py | bbedward/nano-python | a996bf5af57ece64c8389fc0b54bafecf045c5f4 | [
"MIT"
] | null | null | null | nano/blocks.py | bbedward/nano-python | a996bf5af57ece64c8389fc0b54bafecf045c5f4 | [
"MIT"
] | null | null | null | nano/blocks.py | bbedward/nano-python | a996bf5af57ece64c8389fc0b54bafecf045c5f4 | [
"MIT"
] | 1 | 2021-09-12T12:32:14.000Z | 2021-09-12T12:32:14.000Z | #: Genesis block hash
GENESIS_BLOCK_HASH = '991CF190094C00F0B68E2E5F75F6BEE95A2E0BD93CEAA4A6734DB9F19B728948'
| 36.666667 | 87 | 0.890909 | 7 | 110 | 13.714286 | 0.571429 | 0.25 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.378641 | 0.063636 | 110 | 2 | 88 | 55 | 0.553398 | 0.181818 | 0 | 0 | 0 | 0 | 0.719101 | 0.719101 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
3f8506783d2c1317b41cd456d09713df8b733c7d | 114 | py | Python | tests/__init__.py | tinker-coin/tinker-coin | 3d599f642f4f49d30ba9bc58316a502e8a325e85 | [
"MIT"
] | null | null | null | tests/__init__.py | tinker-coin/tinker-coin | 3d599f642f4f49d30ba9bc58316a502e8a325e85 | [
"MIT"
] | null | null | null | tests/__init__.py | tinker-coin/tinker-coin | 3d599f642f4f49d30ba9bc58316a502e8a325e85 | [
"MIT"
] | null | null | null | import os, sys
sys.path.append(os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), 'node'))
| 38 | 98 | 0.745614 | 20 | 114 | 4.05 | 0.5 | 0.296296 | 0.320988 | 0.37037 | 0.395062 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04386 | 114 | 2 | 99 | 57 | 0.743119 | 0 | 0 | 0 | 0 | 0 | 0.035088 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 7 |
3f9ec282ed4547f2862e2f1365aea29123eb3226 | 6,410 | py | Python | tests/mqtt/test_components_mqtt_connection.py | fossabot/snipskit | 57fe329bf302f863bf190b2cfe1175e13d1d017e | [
"MIT"
] | 12 | 2019-03-18T13:03:46.000Z | 2019-08-14T03:13:32.000Z | tests/mqtt/test_components_mqtt_connection.py | fossabot/snipskit | 57fe329bf302f863bf190b2cfe1175e13d1d017e | [
"MIT"
] | 4 | 2019-04-05T07:14:59.000Z | 2019-12-06T23:51:31.000Z | tests/mqtt/test_components_mqtt_connection.py | fossabot/snipskit | 57fe329bf302f863bf190b2cfe1175e13d1d017e | [
"MIT"
] | 4 | 2019-05-01T07:56:20.000Z | 2019-11-17T13:54:59.000Z | """Tests for the `snipskit.components.MQTTSnipsComponent` class."""
from snipskit.mqtt.components import MQTTSnipsComponent
from snipskit.config import SnipsConfig
class SimpleMQTTComponent(MQTTSnipsComponent):
"""A simple Snips component using MQTT directly to test."""
def initialize(self):
pass
... | 41.895425 | 97 | 0.663651 | 734 | 6,410 | 5.625341 | 0.125341 | 0.087188 | 0.058125 | 0.073626 | 0.85735 | 0.831194 | 0.788326 | 0.788326 | 0.765076 | 0.70017 | 0 | 0.01315 | 0.228861 | 6,410 | 152 | 98 | 42.171053 | 0.822173 | 0.15039 | 0 | 0.6 | 0 | 0 | 0.244598 | 0.157601 | 0 | 0 | 0 | 0 | 0.344444 | 1 | 0.055556 | false | 0.077778 | 0.022222 | 0 | 0.088889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 7 |
3fa6382fbfb25f246d7abe67f96cb8764bc4d846 | 4,964 | py | Python | functions.py | daleshingles/TheDon | 756fe1904e640e1e6b314eb652e2643dd1e59ec8 | [
"MIT"
] | 3 | 2019-05-30T19:36:59.000Z | 2020-10-10T16:22:05.000Z | functions.py | daleshingles/TheDon | 756fe1904e640e1e6b314eb652e2643dd1e59ec8 | [
"MIT"
] | 1 | 2019-06-05T18:54:50.000Z | 2019-06-05T18:54:50.000Z | functions.py | daleshingles/TheDon | 756fe1904e640e1e6b314eb652e2643dd1e59ec8 | [
"MIT"
] | 1 | 2019-05-29T23:47:28.000Z | 2019-05-29T23:47:28.000Z | from pytz import timezone
from datetime import date, datetime, time
from dateutil import tz, parser
import random
def to_time(utc_time):
ratime = timezone('America/Chicago')
localtime = utc_time.astimezone(ratime)
return localtime.strftime('%b %d %H:%M')
def from_time(ra_time):
#ratime = timezone('Ame... | 155.125 | 3,613 | 0.710516 | 817 | 4,964 | 4.30355 | 0.275398 | 0.180887 | 0.331627 | 0.422071 | 0.534414 | 0.008532 | 0 | 0 | 0 | 0 | 0 | 0.028416 | 0.035858 | 4,964 | 31 | 3,614 | 160.129032 | 0.706226 | 0.007252 | 0 | 0 | 0 | 0 | 0.779379 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.227273 | false | 0 | 0.181818 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 7 |
3fbd51088d4d5c63c30c64e0ce56608253c047ba | 91 | py | Python | tests/resources/test_cases/union_fun.py | dertilo/coding | 9b827f2b02900f1d8e080fbde4cdb08a365572e7 | [
"MIT"
] | null | null | null | tests/resources/test_cases/union_fun.py | dertilo/coding | 9b827f2b02900f1d8e080fbde4cdb08a365572e7 | [
"MIT"
] | null | null | null | tests/resources/test_cases/union_fun.py | dertilo/coding | 9b827f2b02900f1d8e080fbde4cdb08a365572e7 | [
"MIT"
] | null | null | null |
def union_fun(x):
return x
def main():
s = union_fun("foo")
s = union_fun(1)
| 11.375 | 24 | 0.56044 | 16 | 91 | 3 | 0.5625 | 0.5 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015385 | 0.285714 | 91 | 7 | 25 | 13 | 0.723077 | 0 | 0 | 0 | 0 | 0 | 0.033333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0.2 | 0.6 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 7 |
3fd3a7eeb9e8f16e46b3a60f2eaaa26a210f8981 | 59 | py | Python | web_website/tests/__init__.py | agenterpgmbh/misc-addons | 27e36d119b1e73089a2ebfcd8d4cfc706c8f1f41 | [
"MIT"
] | null | null | null | web_website/tests/__init__.py | agenterpgmbh/misc-addons | 27e36d119b1e73089a2ebfcd8d4cfc706c8f1f41 | [
"MIT"
] | 1 | 2020-05-03T04:27:29.000Z | 2020-05-03T04:27:29.000Z | web_website/tests/__init__.py | eneldoserrata/misc-addons | 6f3b94d8a71d603d9ad449f96edfc66385e78080 | [
"MIT"
] | 2 | 2020-05-09T02:08:59.000Z | 2022-03-21T06:37:15.000Z | from . import test_website_dependent
from . import test_ui
| 19.666667 | 36 | 0.830508 | 9 | 59 | 5.111111 | 0.666667 | 0.434783 | 0.608696 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135593 | 59 | 2 | 37 | 29.5 | 0.901961 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 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 |
3fd7dd43357f26fb6978a0868c30ecee48376692 | 5,664 | py | Python | test/unit/agent/common/util/glib.py | dp92987/nginx-amplify-agent | 1b2eed6eab52a82f35974928d75044451b4bedaf | [
"BSD-2-Clause"
] | 308 | 2015-11-17T13:15:33.000Z | 2022-03-24T12:03:40.000Z | test/unit/agent/common/util/glib.py | dp92987/nginx-amplify-agent | 1b2eed6eab52a82f35974928d75044451b4bedaf | [
"BSD-2-Clause"
] | 211 | 2015-11-16T15:27:41.000Z | 2022-03-28T16:20:15.000Z | test/unit/agent/common/util/glib.py | dp92987/nginx-amplify-agent | 1b2eed6eab52a82f35974928d75044451b4bedaf | [
"BSD-2-Clause"
] | 80 | 2015-11-16T18:20:30.000Z | 2022-03-02T12:47:56.000Z | # -*- coding: utf-8 -*-
from hamcrest import *
from test.base import BaseTestCase
import amplify.agent.common.util.glib as glib
__author__ = "Grant Hulegaard"
__copyright__ = "Copyright (C) Nginx, Inc. All rights reserved."
__license__ = ""
__maintainer__ = "Grant Hulegaard"
__email__ = "grant.hulegaard@nginx.com"
... | 41.647059 | 69 | 0.599929 | 721 | 5,664 | 4.560333 | 0.165049 | 0.16545 | 0.215328 | 0.229319 | 0.761253 | 0.738139 | 0.738139 | 0.738139 | 0.738139 | 0.738139 | 0 | 0.013349 | 0.246116 | 5,664 | 135 | 70 | 41.955556 | 0.756674 | 0.025247 | 0 | 0.622807 | 0 | 0 | 0.572569 | 0.541546 | 0 | 0 | 0 | 0.007407 | 0.052632 | 1 | 0.026316 | false | 0 | 0.026316 | 0 | 0.061404 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
b7739416d6abe02092e5d04875f0a01a8c7cb6af | 38,076 | py | Python | Source/decisionTreeV7.py | xiayuan-huang/E-pedigrees | 5b49cbeabf60432abb037b0a33780f9c486ec84c | [
"MIT"
] | null | null | null | Source/decisionTreeV7.py | xiayuan-huang/E-pedigrees | 5b49cbeabf60432abb037b0a33780f9c486ec84c | [
"MIT"
] | null | null | null | Source/decisionTreeV7.py | xiayuan-huang/E-pedigrees | 5b49cbeabf60432abb037b0a33780f9c486ec84c | [
"MIT"
] | null | null | null | '''
@author: xiayuanhuang
'''
'''
debugging child's age larger than parents'age
'''
import readDataV2
import datetime
class DT(object):
def __init__(self, addressFile, nameFile, demoFile, accountFile):
d = readDataV2.ReadData()
d.readAddress(addressFile)
d.readName(nameFile)
... | 67.992857 | 187 | 0.240808 | 2,214 | 38,076 | 4.075429 | 0.074526 | 0.05896 | 0.059847 | 0.047878 | 0.770365 | 0.759282 | 0.759282 | 0.759282 | 0.759282 | 0.759282 | 0 | 0.052724 | 0.701124 | 38,076 | 559 | 188 | 68.11449 | 0.740158 | 0.024005 | 0 | 0.83559 | 0 | 0 | 0.000136 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.007737 | false | 0.01354 | 0.003868 | 0 | 0.01354 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.