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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f72bb6f0058e6022c5654db644c4f3a8d1350c2a | 18,976 | py | Python | ssd/modeling/backbone/basic.py | Sethan/deeplearning-graphics | ce164847a323d3f07cfe241f4bbed6029777c58d | [
"MIT"
] | null | null | null | ssd/modeling/backbone/basic.py | Sethan/deeplearning-graphics | ce164847a323d3f07cfe241f4bbed6029777c58d | [
"MIT"
] | null | null | null | ssd/modeling/backbone/basic.py | Sethan/deeplearning-graphics | ce164847a323d3f07cfe241f4bbed6029777c58d | [
"MIT"
] | null | null | null | import torch
class BasicModel(torch.nn.Module):
"""
This is a basic backbone for SSD.
The feature extractor outputs a list of 6 feature maps, with the sizes:
[shape(-1, output_channels[0], 38, 38),
shape(-1, output_channels[1], 19, 19),
shape(-1, output_channels[2], 10, 10),
shape(-1, o... | 32.108291 | 98 | 0.539155 | 2,241 | 18,976 | 4.400714 | 0.065149 | 0.148347 | 0.222673 | 0.216183 | 0.880045 | 0.869803 | 0.867268 | 0.863821 | 0.839485 | 0.829345 | 0 | 0.058387 | 0.340219 | 18,976 | 590 | 99 | 32.162712 | 0.729313 | 0.049852 | 0 | 0.838532 | 0 | 0.001835 | 0.004418 | 0 | 0 | 0 | 0 | 0 | 0.001835 | 1 | 0.00367 | false | 0 | 0.001835 | 0 | 0.009174 | 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 |
f7a1b39194867b400b05e475d6029c9bbf08acd2 | 157 | py | Python | flash/graph/classification/__init__.py | Actis92/lightning-flash | 49972268cfc0f95f1bd2b8fbf25036970cc44b59 | [
"Apache-2.0"
] | 1,457 | 2021-01-28T20:40:16.000Z | 2022-03-31T06:22:05.000Z | flash/graph/classification/__init__.py | Actis92/lightning-flash | 49972268cfc0f95f1bd2b8fbf25036970cc44b59 | [
"Apache-2.0"
] | 1,123 | 2021-01-28T20:37:56.000Z | 2022-03-31T19:34:44.000Z | flash/graph/classification/__init__.py | Actis92/lightning-flash | 49972268cfc0f95f1bd2b8fbf25036970cc44b59 | [
"Apache-2.0"
] | 170 | 2021-01-29T00:41:39.000Z | 2022-03-29T16:09:52.000Z | from flash.graph.classification.data import GraphClassificationData # noqa: F401
from flash.graph.classification.model import GraphClassifier # noqa: F401
| 52.333333 | 81 | 0.834395 | 18 | 157 | 7.277778 | 0.611111 | 0.137405 | 0.21374 | 0.427481 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042553 | 0.101911 | 157 | 2 | 82 | 78.5 | 0.886525 | 0.133758 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
5417ad11c21e878f08943bf5930b50874f4bb213 | 34,831 | py | Python | generated/resources/bgp_as_a_service_heat.py | atsgen/tf-heat-plugin | 5c0405eb93287368f60f7e227e5af5ada6bfeed2 | [
"Apache-2.0"
] | 1 | 2020-04-05T19:43:40.000Z | 2020-04-05T19:43:40.000Z | generated/resources/bgp_as_a_service_heat.py | atsgen/tf-heat-plugin | 5c0405eb93287368f60f7e227e5af5ada6bfeed2 | [
"Apache-2.0"
] | null | null | null | generated/resources/bgp_as_a_service_heat.py | atsgen/tf-heat-plugin | 5c0405eb93287368f60f7e227e5af5ada6bfeed2 | [
"Apache-2.0"
] | 1 | 2020-08-25T12:47:27.000Z | 2020-08-25T12:47:27.000Z |
# AUTO-GENERATED file from IFMapApiGenerator. Do Not Edit!
from contrail_heat.resources import contrail
try:
from heat.common.i18n import _
except ImportError:
pass
from heat.engine import attributes
from heat.engine import constraints
from heat.engine import properties
try:
from heat.openstack.common imp... | 66.726054 | 1,126 | 0.648905 | 3,893 | 34,831 | 5.340098 | 0.044696 | 0.166338 | 0.29429 | 0.178941 | 0.921834 | 0.891289 | 0.848814 | 0.823993 | 0.738275 | 0.69277 | 0 | 0.006622 | 0.267291 | 34,831 | 521 | 1,127 | 66.854127 | 0.807962 | 0.008182 | 0 | 0.502066 | 1 | 0 | 0.074731 | 0.058662 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010331 | false | 0.018595 | 0.022727 | 0.002066 | 0.049587 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
542005d4b9eaf899639dd84129496c63ba749c35 | 29,024 | py | Python | core/srl_fairness.py | CoraJung/bandit-under-fairness-constraints | 02d9f70663a95685d296916de3cd0f83797aaded | [
"MIT"
] | null | null | null | core/srl_fairness.py | CoraJung/bandit-under-fairness-constraints | 02d9f70663a95685d296916de3cd0f83797aaded | [
"MIT"
] | null | null | null | core/srl_fairness.py | CoraJung/bandit-under-fairness-constraints | 02d9f70663a95685d296916de3cd0f83797aaded | [
"MIT"
] | 2 | 2021-05-14T21:25:57.000Z | 2021-05-14T22:03:17.000Z | import numpy as np
from utils import rvs
from core.base.srl import SeldonianRLBase
def PolicyImprovementRLMixin(mode='ttest', scaling=2.0):
class PolicyImprovementRLMixin:
def _get_return_ranges(self):
raise NotImplementedError('TutoringSystem._get_return_ranges() not defined')
def _preprocessor(self, data)... | 48.373333 | 206 | 0.695218 | 4,211 | 29,024 | 4.523391 | 0.054381 | 0.02457 | 0.02457 | 0.02016 | 0.880565 | 0.866705 | 0.814889 | 0.798824 | 0.785542 | 0.784597 | 0 | 0.026947 | 0.148463 | 29,024 | 599 | 207 | 48.45409 | 0.743759 | 0.257924 | 0 | 0.752632 | 0 | 0 | 0.060767 | 0.013698 | 0 | 0 | 0 | 0 | 0 | 1 | 0.155263 | false | 0 | 0.007895 | 0.031579 | 0.297368 | 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 |
584eec996919e801a49905d64bfa68ad64ce2fc3 | 8,598 | py | Python | sdfrenderer/renderer/projection.py | TRI-ML/sdflabel | 416c27dbcc6a341c3038783beb46d3f8eccb8177 | [
"MIT"
] | 105 | 2020-06-18T22:27:18.000Z | 2022-03-31T13:58:38.000Z | sdfrenderer/renderer/projection.py | TRI-ML/sdflabel | 416c27dbcc6a341c3038783beb46d3f8eccb8177 | [
"MIT"
] | 9 | 2020-07-25T00:08:18.000Z | 2022-03-29T05:57:52.000Z | sdfrenderer/renderer/projection.py | TRI-ML/sdflabel | 416c27dbcc6a341c3038783beb46d3f8eccb8177 | [
"MIT"
] | 15 | 2020-09-02T06:59:32.000Z | 2022-03-28T10:11:00.000Z | import math
import torch
import numpy as np
from renderer.utils_rasterer import convexHull, sphericalFlip, qrot
def project_in_2D(
K, camera_pose, points, normals, colors, resolution_px, filter_normals=True, filter_hpr=False, output_nocs=True
):
"""
Project all 3D points onto the 2D image of given resolut... | 42.99 | 116 | 0.672249 | 1,198 | 8,598 | 4.590985 | 0.145242 | 0.130909 | 0.086545 | 0.032 | 0.857455 | 0.845091 | 0.834545 | 0.827455 | 0.815091 | 0.815091 | 0 | 0.031028 | 0.21284 | 8,598 | 199 | 117 | 43.20603 | 0.781619 | 0.289719 | 0 | 0.711538 | 0 | 0 | 0.026855 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019231 | false | 0 | 0.038462 | 0 | 0.076923 | 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 |
587b250e57acbae198b2b012518b92ffa231c1da | 6,625 | py | Python | genQues/views.py | aotella/calcoff_backend | 7f25ff494ea2e1e4119fe7450d805c986fa77f0c | [
"Apache-2.0",
"MIT"
] | null | null | null | genQues/views.py | aotella/calcoff_backend | 7f25ff494ea2e1e4119fe7450d805c986fa77f0c | [
"Apache-2.0",
"MIT"
] | null | null | null | genQues/views.py | aotella/calcoff_backend | 7f25ff494ea2e1e4119fe7450d805c986fa77f0c | [
"Apache-2.0",
"MIT"
] | null | null | null | from django.shortcuts import render
from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework import status
import requests
import responses
import json
import datetime
from APIv1 import genQuestion, getQuestion, getRanking, submitRanking, apiPassword, deleteRanking, topR... | 33.80102 | 134 | 0.684528 | 720 | 6,625 | 6.151389 | 0.116667 | 0.132761 | 0.227591 | 0.284489 | 0.812373 | 0.809438 | 0.809438 | 0.809438 | 0.738316 | 0.624972 | 0 | 0.047804 | 0.223245 | 6,625 | 195 | 135 | 33.974359 | 0.812864 | 0.003472 | 0 | 0.706767 | 0 | 0 | 0.020912 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0.037594 | 0.067669 | 0 | 0.593985 | 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 | 1 | 0 | 0 | 10 |
5457723508a9ce3f330af767ebaf9eda9b6c8e85 | 2,516 | py | Python | tests/test_dempster_shafer.py | brandongk-ubco/ensembler | 9d4ab1a07f686eee8b5a4e721a6acc44da3ef94d | [
"MIT"
] | null | null | null | tests/test_dempster_shafer.py | brandongk-ubco/ensembler | 9d4ab1a07f686eee8b5a4e721a6acc44da3ef94d | [
"MIT"
] | null | null | null | tests/test_dempster_shafer.py | brandongk-ubco/ensembler | 9d4ab1a07f686eee8b5a4e721a6acc44da3ef94d | [
"MIT"
] | null | null | null | from ensembler.aggregators.DempsterSafer import ds_combination
import torch
class TestDempsterShafer:
def test_ds_combination_all_agree(self):
a = torch.FloatTensor([0, 1, 0])
b = torch.FloatTensor([0, 1, 0])
result = ds_combination(a, b)
expected = torch.FloatTensor([0, 1, 0])
... | 35.942857 | 70 | 0.596184 | 365 | 2,516 | 3.975342 | 0.145205 | 0.231564 | 0.234321 | 0.096485 | 0.858029 | 0.826327 | 0.811165 | 0.778084 | 0.751895 | 0.720193 | 0 | 0.08026 | 0.267091 | 2,516 | 69 | 71 | 36.463768 | 0.706616 | 0 | 0 | 0.610169 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118644 | 1 | 0.118644 | false | 0 | 0.033898 | 0 | 0.169492 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
546cc5296dca4ec6e839de58e49e8b0c0ad39a6b | 1,991 | py | Python | Server/utils/extension_meta.py | DSM-DMS/DMS-Backend-API-v2 | dfb49879ce81d7a3c1c4cda47b1de150f245cd86 | [
"MIT"
] | null | null | null | Server/utils/extension_meta.py | DSM-DMS/DMS-Backend-API-v2 | dfb49879ce81d7a3c1c4cda47b1de150f245cd86 | [
"MIT"
] | 1 | 2018-02-22T01:18:55.000Z | 2018-02-22T01:18:55.000Z | Server/utils/extension_meta.py | DSM-DMS/DMS-Backend-API-v2 | dfb49879ce81d7a3c1c4cda47b1de150f245cd86 | [
"MIT"
] | null | null | null | from datetime import time
APPLY_START = time(17, 30)
APPLY_END_11 = time(20, 30)
APPLY_END_12 = time(22, 0)
MAPS = {
1: [
[1, 1, 0, 1, 1],
[1, 1, 0, 1, 1],
[1, 1, 0, 1, 1],
[1, 1, 0, 1, 1],
[1, 1, 0, 1, 1]
],
2: [
[1, 0, 1, 0, 1, 0, 1],
[1, 0, 1, 0, ... | 27.652778 | 45 | 0.259166 | 454 | 1,991 | 1.125551 | 0.048458 | 0.516634 | 0.493151 | 0.516634 | 0.833659 | 0.833659 | 0.833659 | 0.816047 | 0.81409 | 0.796478 | 0 | 0.415814 | 0.46007 | 1,991 | 71 | 46 | 28.042254 | 0.059535 | 0 | 0 | 0.681159 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.014493 | 0 | 0.014493 | 0 | 0 | 0 | 1 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 12 |
54873a60003e82a74f2f503482cde88c245525c2 | 41 | py | Python | application/services/fake_service.py | raphaelbh/python-web-template | b977a5b78b5546fa0013fe144d71497ff5f5c551 | [
"MIT"
] | 1 | 2022-02-14T19:52:41.000Z | 2022-02-14T19:52:41.000Z | application/services/fake_service.py | raphaelbh/python-web-template | b977a5b78b5546fa0013fe144d71497ff5f5c551 | [
"MIT"
] | null | null | null | application/services/fake_service.py | raphaelbh/python-web-template | b977a5b78b5546fa0013fe144d71497ff5f5c551 | [
"MIT"
] | null | null | null | def execute():
return "fake content" | 20.5 | 25 | 0.658537 | 5 | 41 | 5.4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.219512 | 41 | 2 | 25 | 20.5 | 0.84375 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 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 |
b716a34e98645a22e8d750a6c3e8ec16fa3bc183 | 158,727 | py | Python | sdk/purview/azure-purview-scanning/azure/purview/scanning/aio/operations/_operations.py | praveenkuttappan/azure-sdk-for-python | 4b79413667b7539750a6c7dde15737013a3d4bd5 | [
"MIT"
] | 2,728 | 2015-01-09T10:19:32.000Z | 2022-03-31T14:50:33.000Z | sdk/purview/azure-purview-scanning/azure/purview/scanning/aio/operations/_operations.py | v-xuto/azure-sdk-for-python | 9c6296d22094c5ede410bc83749e8df8694ccacc | [
"MIT"
] | 17,773 | 2015-01-05T15:57:17.000Z | 2022-03-31T23:50:25.000Z | sdk/purview/azure-purview-scanning/azure/purview/scanning/aio/operations/_operations.py | v-xuto/azure-sdk-for-python | 9c6296d22094c5ede410bc83749e8df8694ccacc | [
"MIT"
] | 1,916 | 2015-01-19T05:05:41.000Z | 2022-03-31T19:36:44.000Z | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | 44.201337 | 1,516 | 0.506971 | 12,840 | 158,727 | 6.071417 | 0.035592 | 0.050092 | 0.024475 | 0.009492 | 0.934425 | 0.928614 | 0.922226 | 0.909206 | 0.896379 | 0.892235 | 0 | 0.019464 | 0.393758 | 158,727 | 3,590 | 1,517 | 44.213649 | 0.790672 | 0.1359 | 0 | 0.827836 | 0 | 0 | 0.056683 | 0.034118 | 0 | 0 | 0 | 0 | 0 | 1 | 0.01781 | false | 0 | 0.008575 | 0 | 0.090369 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
3f956a3e29027dfcd4a6e0e244eaea9d3c74711a | 2,410 | py | Python | ICML_paper_experiments.py | maitchison/RTG | a1422a408447e22bad6e07adb87bb10d26ef36cd | [
"Apache-2.0"
] | 1 | 2021-07-29T02:42:33.000Z | 2021-07-29T02:42:33.000Z | ICML_paper_experiments.py | maitchison/RTG | a1422a408447e22bad6e07adb87bb10d26ef36cd | [
"Apache-2.0"
] | null | null | null | ICML_paper_experiments.py | maitchison/RTG | a1422a408447e22bad6e07adb87bb10d26ef36cd | [
"Apache-2.0"
] | null | null | null | # This script will generate the results used in the ICML paper and is provided for reproducibility.
# Time to run is approximately 4 days if run on 4 GPUs, however this script will run experiments sequentially on one GPU
# On a multi-gpu machine it is recommended to execute each run in parallel and to modifying the --d... | 120.5 | 232 | 0.722822 | 358 | 2,410 | 4.75419 | 0.25419 | 0.014101 | 0.058167 | 0.089307 | 0.740306 | 0.740306 | 0.740306 | 0.740306 | 0.740306 | 0.740306 | 0 | 0.070556 | 0.082573 | 2,410 | 20 | 233 | 120.5 | 0.699231 | 0.207054 | 0 | 0 | 1 | 0.8 | 0.92336 | 0.533333 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 11 |
3fd5d25888f3c77bdae256d9598cb749b30291ca | 86,515 | py | Python | tests/test_status_checker.py | uk-gov-mirror/dwp.dataworks-snapshot-sender-status-checker | d0372c3498c0717fdab0c37c5371217e375d4b52 | [
"0BSD"
] | null | null | null | tests/test_status_checker.py | uk-gov-mirror/dwp.dataworks-snapshot-sender-status-checker | d0372c3498c0717fdab0c37c5371217e375d4b52 | [
"0BSD"
] | null | null | null | tests/test_status_checker.py | uk-gov-mirror/dwp.dataworks-snapshot-sender-status-checker | d0372c3498c0717fdab0c37c5371217e375d4b52 | [
"0BSD"
] | null | null | null | #!/usr/bin/env python3
import unittest
import pytest
import argparse
import json
import prometheus_client
from copy import deepcopy
from unittest import mock
from status_checker_lambda import status_checker
EXPORTING_STATUS = "Exporting"
EXPORTED_STATUS = "Exported"
SENT_STATUS = "Sent"
RECEIVED_STATUS = "Received"
... | 31.795296 | 123 | 0.627544 | 8,871 | 86,515 | 5.568594 | 0.028069 | 0.110529 | 0.068078 | 0.078382 | 0.936476 | 0.92763 | 0.917954 | 0.910545 | 0.903905 | 0.902528 | 0 | 0.005429 | 0.301716 | 86,515 | 2,720 | 124 | 31.806985 | 0.812272 | 0.000243 | 0 | 0.787323 | 0 | 0 | 0.1517 | 0.11283 | 0 | 0 | 0 | 0 | 0.071309 | 1 | 0.026689 | false | 0 | 0.003336 | 0 | 0.030442 | 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 |
b20d2c5c26f8b269cdfcf4c6af52bb4b01892e2f | 12,106 | py | Python | tests/test_misc.py | mmascher/osg-configure | 0a8490f87ff1b3340796f94ed657b62b19602347 | [
"Apache-2.0"
] | null | null | null | tests/test_misc.py | mmascher/osg-configure | 0a8490f87ff1b3340796f94ed657b62b19602347 | [
"Apache-2.0"
] | null | null | null | tests/test_misc.py | mmascher/osg-configure | 0a8490f87ff1b3340796f94ed657b62b19602347 | [
"Apache-2.0"
] | null | null | null | """Unit tests to test misc configuration"""
# pylint: disable=W0703
# pylint: disable=R0904
import os
import sys
import unittest
import ConfigParser
import logging
import tempfile
import subprocess
# setup system library path
pathname = os.path.realpath('../')
sys.path.insert(0, pathname)
from osg_configure.modules... | 38.431746 | 89 | 0.614406 | 1,146 | 12,106 | 6.343805 | 0.15096 | 0.035763 | 0.025034 | 0.030399 | 0.804127 | 0.796149 | 0.79381 | 0.782118 | 0.772215 | 0.772215 | 0 | 0.002242 | 0.300017 | 12,106 | 314 | 90 | 38.55414 | 0.855676 | 0.065092 | 0 | 0.709677 | 0 | 0 | 0.186278 | 0.018284 | 0 | 0 | 0 | 0 | 0.082949 | 1 | 0.050691 | false | 0.004608 | 0.050691 | 0 | 0.110599 | 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 |
b74b13f93925f3292fdccc1dc8c53fa0daf60402 | 9,398 | py | Python | Generator.py | ly4096x/Flexible_Resume | 3002862ddab2dd4df41568dbb0ae6ba19ed6b62f | [
"MIT"
] | 1 | 2020-08-19T07:23:53.000Z | 2020-08-19T07:23:53.000Z | Generator.py | ly4096x/Flexible_Resume | 3002862ddab2dd4df41568dbb0ae6ba19ed6b62f | [
"MIT"
] | null | null | null | Generator.py | ly4096x/Flexible_Resume | 3002862ddab2dd4df41568dbb0ae6ba19ed6b62f | [
"MIT"
] | null | null | null | import jinja2, os, sys, json
from datetime import datetime
def generate_defaults(template, contact_info, banner_msg, output_dir, build=False):
version = 'Software'
preset = 'OnePage'
date = datetime.now().strftime('%Y%m%d')
out = template.render(
VERSION = version,
PR... | 40.683983 | 144 | 0.506278 | 750 | 9,398 | 6.190667 | 0.170667 | 0.050398 | 0.041353 | 0.05686 | 0.820159 | 0.820159 | 0.815421 | 0.815421 | 0.815421 | 0.815421 | 0 | 0.005918 | 0.3887 | 9,398 | 230 | 145 | 40.86087 | 0.802263 | 0.006065 | 0 | 0.775701 | 1 | 0 | 0.122533 | 0.071837 | 0 | 0 | 0 | 0 | 0 | 1 | 0.004673 | false | 0 | 0.009346 | 0 | 0.014019 | 0.004673 | 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 |
b76987c996a690d4077c810fe6b4f2fcc8391f49 | 128 | py | Python | python/testData/completion/heavyStarPropagation/lib/_pkg0/_pkg0_0/_pkg0_0_1/_pkg0_0_1_0/_pkg0_0_1_0_0/_mod0_0_1_0_0_2.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/completion/heavyStarPropagation/lib/_pkg0/_pkg0_0/_pkg0_0_1/_pkg0_0_1_0/_pkg0_0_1_0_0/_mod0_0_1_0_0_2.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/completion/heavyStarPropagation/lib/_pkg0/_pkg0_0/_pkg0_0_1/_pkg0_0_1_0/_pkg0_0_1_0_0/_mod0_0_1_0_0_2.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | name0_0_1_0_0_2_0 = None
name0_0_1_0_0_2_1 = None
name0_0_1_0_0_2_2 = None
name0_0_1_0_0_2_3 = None
name0_0_1_0_0_2_4 = None | 14.222222 | 24 | 0.820313 | 40 | 128 | 1.875 | 0.175 | 0.4 | 0.466667 | 0.533333 | 0.88 | 0.88 | 0.746667 | 0 | 0 | 0 | 0 | 0.318182 | 0.140625 | 128 | 9 | 25 | 14.222222 | 0.363636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 10 |
b775d0a4a50826403eb5412e5570520ff4f9d235 | 49 | py | Python | gmprocess/version.py | mhearne-usgs/groundmotion-processing | eb4c85159d4cc7e57ef19329abf92a4cd97ffdd7 | [
"Unlicense"
] | null | null | null | gmprocess/version.py | mhearne-usgs/groundmotion-processing | eb4c85159d4cc7e57ef19329abf92a4cd97ffdd7 | [
"Unlicense"
] | null | null | null | gmprocess/version.py | mhearne-usgs/groundmotion-processing | eb4c85159d4cc7e57ef19329abf92a4cd97ffdd7 | [
"Unlicense"
] | null | null | null | __version__ = "1.1.11.dev203+gf35d074a.d20220105" | 49 | 49 | 0.795918 | 7 | 49 | 5 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.425532 | 0.040816 | 49 | 1 | 49 | 49 | 0.319149 | 0 | 0 | 0 | 0 | 0 | 0.66 | 0.66 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
b7a4b7d6e883767cdf76330a80d42e83a1e3857c | 66 | py | Python | src/pyden/bin/activate_default.py | emagine-saas/hll-pyden | f69766e2c417fa7cc641727e04785845e4c24923 | [
"BSD-3-Clause"
] | null | null | null | src/pyden/bin/activate_default.py | emagine-saas/hll-pyden | f69766e2c417fa7cc641727e04785845e4c24923 | [
"BSD-3-Clause"
] | null | null | null | src/pyden/bin/activate_default.py | emagine-saas/hll-pyden | f69766e2c417fa7cc641727e04785845e4c24923 | [
"BSD-3-Clause"
] | null | null | null | from activate import activate_venv_or_die
activate_venv_or_die()
| 16.5 | 41 | 0.878788 | 11 | 66 | 4.727273 | 0.545455 | 0.461538 | 0.538462 | 0.653846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 66 | 3 | 42 | 22 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 7 |
b7ed1ff8bebc3154b84f0fa9ef4250565b3f21d4 | 1,353 | py | Python | app/controller/projectsController.py | kirei-open/redmine-api-grabber | 2bd020c7bdc7b2abdb7839eb7eb5466de84a48e7 | [
"MIT"
] | null | null | null | app/controller/projectsController.py | kirei-open/redmine-api-grabber | 2bd020c7bdc7b2abdb7839eb7eb5466de84a48e7 | [
"MIT"
] | null | null | null | app/controller/projectsController.py | kirei-open/redmine-api-grabber | 2bd020c7bdc7b2abdb7839eb7eb5466de84a48e7 | [
"MIT"
] | null | null | null | from app.services import redmine , redisCache
async def get_all_projects(cache, x_token):
key = f"redminegetallproject"
in_cache = await redisCache.get_redis_cache( cache, x_token, key)
if in_cache is not None:
return in_cache
data = redmine.get_all_projects()
await redisCache.set_redis_c... | 34.692308 | 69 | 0.728751 | 207 | 1,353 | 4.458937 | 0.169082 | 0.078007 | 0.143012 | 0.182015 | 0.825569 | 0.732394 | 0.732394 | 0.732394 | 0.732394 | 0.732394 | 0 | 0 | 0.1966 | 1,353 | 39 | 70 | 34.692308 | 0.849126 | 0 | 0 | 0.606061 | 0 | 0 | 0.051699 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.030303 | 0 | 0.272727 | 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 |
4d4cc039e028bcd318ad8d0b225ffd3ca032aec3 | 78,244 | py | Python | storage/fase2/team02/storage/b/Interfaz.py | Alejandro5852/tytus | a8952b9c38377c6d0171eaa322b04f0adb6cc399 | [
"MIT"
] | 35 | 2020-12-07T03:11:43.000Z | 2021-04-15T17:38:16.000Z | storage/fase2/team02/storage/b/Interfaz.py | Alejandro5852/tytus | a8952b9c38377c6d0171eaa322b04f0adb6cc399 | [
"MIT"
] | 47 | 2020-12-09T01:29:09.000Z | 2021-01-13T05:37:50.000Z | storage/fase2/team02/storage/b/Interfaz.py | Alejandro5852/tytus | a8952b9c38377c6d0171eaa322b04f0adb6cc399 | [
"MIT"
] | 556 | 2020-12-07T03:13:31.000Z | 2021-06-17T17:41:10.000Z | # File: Interface
# License: Released under MIT License
# Notice: Copyright (c) 2020 TytusDB Team
from tkinter import *
from tkinter import ttk
from tkinter import messagebox
from PIL import Image, ImageTk
from team17 import BMode as B
def runInterface():
r = PP()
class PP:
#------------... | 55.101408 | 172 | 0.549576 | 10,421 | 78,244 | 4.115248 | 0.041551 | 0.04603 | 0.075831 | 0.107427 | 0.901201 | 0.889285 | 0.87231 | 0.856057 | 0.840923 | 0.825883 | 0 | 0.077938 | 0.270768 | 78,244 | 1,419 | 173 | 55.14024 | 0.673665 | 0.008563 | 0 | 0.7112 | 0 | 0 | 0.202905 | 0.000604 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0568 | false | 0 | 0.004 | 0 | 0.0616 | 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 |
4d7ab7c7f1c559621876f5b81d472be6d798690e | 30,800 | py | Python | pycaged/__init__.py | heitorcmesquita/pycaged | 8f24a777a116df6664ddf5fbf0b45fdbbc1fb1d0 | [
"MIT"
] | 6 | 2020-10-28T14:45:02.000Z | 2022-02-01T18:35:47.000Z | pycaged/__init__.py | heitorcmesquita/pycaged | 8f24a777a116df6664ddf5fbf0b45fdbbc1fb1d0 | [
"MIT"
] | 1 | 2021-04-08T22:31:42.000Z | 2021-04-08T22:43:12.000Z | pycaged/__init__.py | heitorcmesquita/pycaged | 8f24a777a116df6664ddf5fbf0b45fdbbc1fb1d0 | [
"MIT"
] | null | null | null | from os import remove
from py7zr import SevenZipFile
import pandas as pd
import wget
#Extraindo dados mensais que serão utilizados
class caged:
def add_fxet(idade):
if idade >= 10 and idade <=14:
fxet = 1
elif idade >= 15 and idade <=17:
fxet = 2
elif idade >= 18 and idade <=... | 56.513761 | 237 | 0.527955 | 3,347 | 30,800 | 4.825217 | 0.074395 | 0.067616 | 0.050526 | 0.069102 | 0.926687 | 0.922353 | 0.922353 | 0.920372 | 0.914985 | 0.909226 | 0 | 0.021535 | 0.324578 | 30,800 | 544 | 238 | 56.617647 | 0.754795 | 0.052955 | 0 | 0.864444 | 0 | 0.002222 | 0.248156 | 0.005902 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035556 | false | 0.008889 | 0.008889 | 0 | 0.088889 | 0.044444 | 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 |
4df62972fd7ed2d20cb41bdc9e203fbadfb5af8a | 177 | py | Python | build/build.py | aaron19950321/ICOM | d5bd0705776c505dd1df0a1c76a07fee2d218394 | [
"PSF-2.0",
"BSD-3-Clause"
] | 5 | 2018-10-09T13:39:31.000Z | 2020-03-26T18:39:49.000Z | build/build.py | aaron19950321/ICOM | d5bd0705776c505dd1df0a1c76a07fee2d218394 | [
"PSF-2.0",
"BSD-3-Clause"
] | null | null | null | build/build.py | aaron19950321/ICOM | d5bd0705776c505dd1df0a1c76a07fee2d218394 | [
"PSF-2.0",
"BSD-3-Clause"
] | 2 | 2018-10-09T13:39:36.000Z | 2018-10-09T23:18:39.000Z | import os
os.chdir('D:\\ICOM_P')
#python pyinstaller --noconfirm --log-level=WARN --onefile ICOM_NEW.spec
pyinstaller --noconfirm --log-level=WARN --onefile ICOM_NEW.spec
| 35.4 | 74 | 0.734463 | 26 | 177 | 4.884615 | 0.576923 | 0.314961 | 0.362205 | 0.440945 | 0.787402 | 0.787402 | 0.787402 | 0.787402 | 0.787402 | 0 | 0 | 0 | 0.112994 | 177 | 4 | 75 | 44.25 | 0.808917 | 0.40678 | 0 | 0 | 0 | 0 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.333333 | null | null | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 11 |
12a54c2793906026bceec3cc8fdb4bcdd67e5f11 | 7,942 | py | Python | packages/gtmapi/lmsrvlabbook/tests/test_note_service.py | gigabackup/gigantum-client | 70fe6b39b87b1c56351f2b4c551b6f1693813e4f | [
"MIT"
] | 60 | 2018-09-26T15:46:00.000Z | 2021-10-10T02:37:14.000Z | packages/gtmapi/lmsrvlabbook/tests/test_note_service.py | gigabackup/gigantum-client | 70fe6b39b87b1c56351f2b4c551b6f1693813e4f | [
"MIT"
] | 1,706 | 2018-09-26T16:11:22.000Z | 2021-08-20T13:37:59.000Z | packages/gtmapi/lmsrvlabbook/tests/test_note_service.py | griffinmilsap/gigantum-client | 70fe6b39b87b1c56351f2b4c551b6f1693813e4f | [
"MIT"
] | 11 | 2019-03-14T13:23:51.000Z | 2022-01-25T01:29:16.000Z | import pytest
import os
from snapshottest import snapshot
from lmsrvlabbook.tests.fixtures import fixture_working_dir
from graphene.test import Client
import graphene
from mock import patch
from gtmcore.configuration import Configuration
from gtmcore.inventory.inventory import InventoryManager
class TestNoteServic... | 37.286385 | 138 | 0.500755 | 661 | 7,942 | 5.945537 | 0.155825 | 0.165394 | 0.134351 | 0.251908 | 0.893639 | 0.881679 | 0.881679 | 0.850891 | 0.850891 | 0.850891 | 0 | 0.007064 | 0.376102 | 7,942 | 212 | 139 | 37.462264 | 0.786075 | 0.038403 | 0 | 0.758427 | 0 | 0 | 0.614676 | 0.082851 | 0 | 0 | 0 | 0 | 0.134831 | 1 | 0.022472 | false | 0 | 0.095506 | 0 | 0.123596 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
42689f4b8bc5406fdaace14f5b28335c6c175970 | 23,940 | py | Python | biserici_inlemnite/app/migrations/0030_auto_20210924_1627.py | ck-tm/biserici-inlemnite | c9d12127b92f25d3ab2fcc7b4c386419fe308a4e | [
"MIT"
] | null | null | null | biserici_inlemnite/app/migrations/0030_auto_20210924_1627.py | ck-tm/biserici-inlemnite | c9d12127b92f25d3ab2fcc7b4c386419fe308a4e | [
"MIT"
] | null | null | null | biserici_inlemnite/app/migrations/0030_auto_20210924_1627.py | ck-tm/biserici-inlemnite | c9d12127b92f25d3ab2fcc7b4c386419fe308a4e | [
"MIT"
] | null | null | null | # Generated by Django 3.1.13 on 2021-09-24 13:27
from django.db import migrations, models
import django.db.models.deletion
import modelcluster.fields
import wagtail.core.fields
class Migration(migrations.Migration):
dependencies = [
('nomenclatoare', '0013_historicalmaterialinvelitoareturle_materialinve... | 56.595745 | 237 | 0.662448 | 2,392 | 23,940 | 6.397993 | 0.061037 | 0.04293 | 0.056913 | 0.074425 | 0.960141 | 0.958442 | 0.957331 | 0.939166 | 0.933155 | 0.921785 | 0 | 0.00193 | 0.220677 | 23,940 | 422 | 238 | 56.729858 | 0.818352 | 0.001921 | 0 | 0.701923 | 1 | 0 | 0.285033 | 0.153985 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.009615 | 0 | 0.016827 | 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 |
35fda91a8476ad9b8b9394d146e4e43a5ba7cc28 | 8,773 | py | Python | test/k8s_metrics_tests/metric_data/stats.py | alexanderldavis/splunk-connect-for-kubernetes | 01bf0876e5f355b26825821a3b1d1a398cde4fde | [
"Apache-2.0"
] | null | null | null | test/k8s_metrics_tests/metric_data/stats.py | alexanderldavis/splunk-connect-for-kubernetes | 01bf0876e5f355b26825821a3b1d1a398cde4fde | [
"Apache-2.0"
] | null | null | null | test/k8s_metrics_tests/metric_data/stats.py | alexanderldavis/splunk-connect-for-kubernetes | 01bf0876e5f355b26825821a3b1d1a398cde4fde | [
"Apache-2.0"
] | 1 | 2022-03-16T09:54:43.000Z | 2022-03-16T09:54:43.000Z | from test.k8s_metrics_tests.metric_data.helper import (
greater,
greater_or_equal,
should_exist,
some_should_be_greater,
)
stats_metrics = [
{
"assertions": [[should_exist, None], [greater, 0]],
"name": "kube.node.cpu.cfs.periods",
"selector": "node",
},
{
"... | 30.674825 | 74 | 0.527528 | 861 | 8,773 | 5.166086 | 0.097561 | 0.061826 | 0.111286 | 0.160746 | 0.929631 | 0.929631 | 0.927833 | 0.91839 | 0.910522 | 0.904227 | 0 | 0.008776 | 0.272655 | 8,773 | 285 | 75 | 30.782456 | 0.688293 | 0 | 0 | 0.388693 | 0 | 0 | 0.352445 | 0.187165 | 0 | 0 | 0 | 0 | 0.194346 | 1 | 0 | false | 0 | 0.003534 | 0 | 0.003534 | 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 |
c470d291cc472ef0b6f42b9b6e8b613ef17167b4 | 290 | py | Python | config/settings/__init__.py | hyphae/apis-service_center | 0a6f0d349a435a3c739c2ee1ebdcc010c2dd13d1 | [
"Apache-2.0"
] | null | null | null | config/settings/__init__.py | hyphae/apis-service_center | 0a6f0d349a435a3c739c2ee1ebdcc010c2dd13d1 | [
"Apache-2.0"
] | 3 | 2021-03-20T10:35:08.000Z | 2022-03-21T16:54:05.000Z | config/settings/__init__.py | hyphae/apis-service_center | 0a6f0d349a435a3c739c2ee1ebdcc010c2dd13d1 | [
"Apache-2.0"
] | null | null | null | """設定ファイルを切り替えて起動できるようにするため settings.py を settings パッケージ化
以下のコマンドで起動時に設定ファイルを指定することができる.
- $ ./manage.py runserver --settings=config.settings.deploy_example ...
- $ uwsgi --env DJANGO_SETTINGS_MODULE=config.settings.deploy_example ...
指定しなければ base.py の内容が有効になる.
"""
from .base import *
| 29 | 74 | 0.775862 | 31 | 290 | 7.129032 | 0.645161 | 0.126697 | 0.180995 | 0.244344 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103448 | 290 | 9 | 75 | 32.222222 | 0.85 | 0.951724 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
672cd3a0f283590f989e96f8e31e13b4d62cdc8d | 6,429 | py | Python | tests/segmentation_test.py | BHAR-HumanActivity/B-HAR | 2bd6960d79de6d7cf4241e44dd8e269ffc00b1d3 | [
"MIT"
] | 1 | 2021-03-06T16:25:39.000Z | 2021-03-06T16:25:39.000Z | tests/segmentation_test.py | BHAR-HumanActivity/B-HAR | 2bd6960d79de6d7cf4241e44dd8e269ffc00b1d3 | [
"MIT"
] | null | null | null | tests/segmentation_test.py | BHAR-HumanActivity/B-HAR | 2bd6960d79de6d7cf4241e44dd8e269ffc00b1d3 | [
"MIT"
] | 2 | 2021-02-02T16:21:16.000Z | 2021-08-30T02:59:15.000Z | import unittest
from b_har.baseline import B_HAR
from b_har.utility.configurator import Configurator
from datetime import datetime
import warnings
class SegmentationTestCase(unittest.TestCase):
p = '/home/ict/PycharmProjects/config.cfg'
ds_path = '/home/ict/B-HAR Compatible/'
def test_segmentation_daphne... | 54.483051 | 119 | 0.609426 | 784 | 6,429 | 4.875 | 0.116071 | 0.082418 | 0.249084 | 0.29304 | 0.894035 | 0.893773 | 0.876243 | 0.843276 | 0.843276 | 0.843276 | 0 | 0.011099 | 0.173122 | 6,429 | 117 | 120 | 54.948718 | 0.707863 | 0.004511 | 0 | 0.615385 | 0 | 0 | 0.240857 | 0.005627 | 0 | 0 | 0 | 0 | 0.067308 | 1 | 0.067308 | false | 0 | 0.048077 | 0 | 0.144231 | 0.067308 | 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 |
6734a277815f4a34c7c7316684d0d6705a71e117 | 5,554 | py | Python | welford/test_welford.py | a-mitani/welford | b7f96b9ad5e803d6de665c7df1cdcfb2a53bddc8 | [
"MIT"
] | 6 | 2021-02-23T16:50:17.000Z | 2022-02-05T18:26:07.000Z | welford/test_welford.py | a-mitani/welford | b7f96b9ad5e803d6de665c7df1cdcfb2a53bddc8 | [
"MIT"
] | 2 | 2021-07-31T11:01:55.000Z | 2021-08-16T15:11:57.000Z | welford/test_welford.py | a-mitani/welford | b7f96b9ad5e803d6de665c7df1cdcfb2a53bddc8 | [
"MIT"
] | null | null | null | import numpy as np
from welford import Welford
def test_init():
a = np.array([[0]])
w = Welford(a)
assert w.count == 1
assert np.allclose(w.mean, np.array([0]))
assert np.alltrue(np.isnan(w.var_s))
assert np.allclose(w.var_p, np.array([0]))
a = np.array([[0], [1]])
w = Welford(a)
... | 34.496894 | 86 | 0.564278 | 1,026 | 5,554 | 3.004873 | 0.074074 | 0.172559 | 0.280247 | 0.231593 | 0.883555 | 0.856633 | 0.825495 | 0.771327 | 0.69121 | 0.674992 | 0 | 0.145467 | 0.201656 | 5,554 | 160 | 87 | 34.7125 | 0.549842 | 0 | 0 | 0.614815 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.525926 | 1 | 0.037037 | false | 0 | 0.014815 | 0 | 0.051852 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
67538b323182ed0ce821ca5d681c08210fb135d5 | 18,838 | py | Python | opensand-testbed/testbeds.py | jhuwyler/qpep | 3b06f02f749cbc14ff9988ad6d9411f0a666f5f9 | [
"Unlicense"
] | null | null | null | opensand-testbed/testbeds.py | jhuwyler/qpep | 3b06f02f749cbc14ff9988ad6d9411f0a666f5f9 | [
"Unlicense"
] | null | null | null | opensand-testbed/testbeds.py | jhuwyler/qpep | 3b06f02f749cbc14ff9988ad6d9411f0a666f5f9 | [
"Unlicense"
] | null | null | null | import subprocess
import os
from loguru import logger
import nclib
import docker
import time
import xml.etree.ElementTree as ET
from dotenv import load_dotenv
load_dotenv()
class BasicTestbed(object):
def __init__(self, host_ip="192.168.1.199", display_number=0, linux=False):
self.host_ip = host_ip
... | 49.314136 | 154 | 0.66042 | 2,360 | 18,838 | 5.105508 | 0.100424 | 0.047473 | 0.037182 | 0.039422 | 0.969956 | 0.969956 | 0.969956 | 0.96896 | 0.96896 | 0.964976 | 0 | 0.005557 | 0.2358 | 18,838 | 381 | 155 | 49.44357 | 0.831412 | 0.107124 | 0 | 0.933775 | 0 | 0 | 0.252026 | 0.02705 | 0 | 0 | 0 | 0 | 0 | 1 | 0.069536 | false | 0 | 0.02649 | 0 | 0.10596 | 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 |
67a8fcaa9f6b044ef3d7890f9076a45a6c45e88c | 356 | py | Python | flask_perms/filters.py | jrice128/permission_manager | 02d415a5f6bc0b4fb2cf40fa6431c813fabe38ba | [
"MIT"
] | null | null | null | flask_perms/filters.py | jrice128/permission_manager | 02d415a5f6bc0b4fb2cf40fa6431c813fabe38ba | [
"MIT"
] | null | null | null | flask_perms/filters.py | jrice128/permission_manager | 02d415a5f6bc0b4fb2cf40fa6431c813fabe38ba | [
"MIT"
] | 1 | 2020-04-28T09:18:14.000Z | 2020-04-28T09:18:14.000Z |
def perm_check(checkSet, mainSet):
checkSet = set(checkSet)
mainSet = set(mainSet)
if checkSet.issubset(mainSet):
return True
else:
return False
def is_subset(checkSet, mainSet):
checkSet = set(checkSet)
mainSet = set(mainSet)
if checkSet.issubset(mainSet):
return ... | 19.777778 | 34 | 0.63764 | 40 | 356 | 5.625 | 0.35 | 0.266667 | 0.204444 | 0.231111 | 0.897778 | 0.897778 | 0.897778 | 0.897778 | 0.897778 | 0.897778 | 0 | 0 | 0.27809 | 356 | 17 | 35 | 20.941176 | 0.875486 | 0 | 0 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 1 | 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 | 10 |
67ad70f9e14e61627424701131cdffb1d7fdcb29 | 13,732 | py | Python | ismrm2022_submission/deprecated_figure_script/figure_odf2d_sketch.py | mpaquette/tractoGRAPHy | 9f1f702da1b6d89a6f552e4474fbf92d0ffcf60d | [
"MIT"
] | null | null | null | ismrm2022_submission/deprecated_figure_script/figure_odf2d_sketch.py | mpaquette/tractoGRAPHy | 9f1f702da1b6d89a6f552e4474fbf92d0ffcf60d | [
"MIT"
] | 11 | 2021-11-14T16:44:36.000Z | 2021-12-28T21:43:26.000Z | ismrm2022_submission/deprecated_figure_script/figure_odf2d_sketch.py | mpaquette/tractoGRAPHy | 9f1f702da1b6d89a6f552e4474fbf92d0ffcf60d | [
"MIT"
] | null | null | null | import numpy as np
# dist on sphere
def sphPDF(k, mu, direc):
# Generate the PDF for a Von-Mises Fisher distribution p=3
# at locations direc for concentration k and mean orientation mu
C3 = k / (2*np.pi*(np.exp(k)-np.exp(-k)))
tmp = np.exp(k*np.dot(direc,mu[:,None])).squeeze()
return C3*tmp
# antipodally symet... | 30.114035 | 119 | 0.654675 | 2,427 | 13,732 | 3.565307 | 0.067985 | 0.055934 | 0.03467 | 0.055472 | 0.912747 | 0.910782 | 0.907662 | 0.905582 | 0.900035 | 0.895296 | 0 | 0.061397 | 0.129406 | 13,732 | 455 | 120 | 30.18022 | 0.662401 | 0.152126 | 0 | 0.845865 | 1 | 0 | 0.087834 | 0.010785 | 0 | 0 | 0 | 0 | 0 | 1 | 0.007519 | false | 0 | 0.007519 | 0 | 0.022556 | 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 |
67b61aee60924c42cff2d8541b81cd5dd53725b7 | 13,671 | py | Python | gitea_api/api/settings_api.py | r7l/python-gitea-api | 31d3dba27ea7e551e2048a1230c4ab4d73365006 | [
"MIT"
] | 1 | 2022-02-09T23:43:26.000Z | 2022-02-09T23:43:26.000Z | gitea_api/api/settings_api.py | r7l/python-gitea-api | 31d3dba27ea7e551e2048a1230c4ab4d73365006 | [
"MIT"
] | null | null | null | gitea_api/api/settings_api.py | r7l/python-gitea-api | 31d3dba27ea7e551e2048a1230c4ab4d73365006 | [
"MIT"
] | null | null | null | # coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.16.7
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import re # noqa: F401
# python 2 and python 3 compatibility libra... | 36.553476 | 144 | 0.615683 | 1,510 | 13,671 | 5.28543 | 0.099338 | 0.041098 | 0.028067 | 0.036086 | 0.931462 | 0.926701 | 0.926701 | 0.914046 | 0.914046 | 0.914046 | 0 | 0.013815 | 0.295809 | 13,671 | 373 | 145 | 36.651475 | 0.815207 | 0.309268 | 0 | 0.791878 | 1 | 0 | 0.176498 | 0.05658 | 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 |
db2eed0f7b05a70cc0fba2b80cde8beb4f0f5ca1 | 205 | py | Python | allennlp_models/pair_classification/__init__.py | matt-peters/allennlp-models | cdd505ed539fdc2b82e4cc0a23eae4bfd3368e7e | [
"Apache-2.0"
] | 402 | 2020-03-11T22:58:35.000Z | 2022-03-29T09:05:27.000Z | allennlp_models/pair_classification/__init__.py | matt-peters/allennlp-models | cdd505ed539fdc2b82e4cc0a23eae4bfd3368e7e | [
"Apache-2.0"
] | 116 | 2020-03-11T01:26:57.000Z | 2022-03-25T13:03:56.000Z | allennlp_models/pair_classification/__init__.py | matt-peters/allennlp-models | cdd505ed539fdc2b82e4cc0a23eae4bfd3368e7e | [
"Apache-2.0"
] | 140 | 2020-03-11T00:51:35.000Z | 2022-03-29T09:05:36.000Z | # flake8: noqa: F403
from allennlp_models.pair_classification.dataset_readers import *
from allennlp_models.pair_classification.models import *
from allennlp_models.pair_classification.predictors import *
| 41 | 65 | 0.863415 | 25 | 205 | 6.8 | 0.48 | 0.211765 | 0.317647 | 0.388235 | 0.705882 | 0.494118 | 0 | 0 | 0 | 0 | 0 | 0.021164 | 0.078049 | 205 | 4 | 66 | 51.25 | 0.878307 | 0.087805 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
e1d510cc8cda85403555b119f942a80595fb06a5 | 59,500 | py | Python | db/PGManager.py | cleolepart/timedomain | 340e3fa614bca2dc333c9723893951318356dccf | [
"MIT"
] | null | null | null | db/PGManager.py | cleolepart/timedomain | 340e3fa614bca2dc333c9723893951318356dccf | [
"MIT"
] | null | null | null | db/PGManager.py | cleolepart/timedomain | 340e3fa614bca2dc333c9723893951318356dccf | [
"MIT"
] | null | null | null | import os
import sys
import glob
from astropy.io import ascii
import pandas
import psycopg2
import re
from astropy.table import Table
import sqlite3
from sqlalchemy import create_engine
from sqlalchemy import text
import sqlalchemy
import fitsio
import numpy
"""
Tables to read:
Secondary targets:
Table... | 34.552846 | 133 | 0.492773 | 5,866 | 59,500 | 4.800886 | 0.079611 | 0.119842 | 0.035793 | 0.01534 | 0.802997 | 0.784887 | 0.773383 | 0.745863 | 0.729103 | 0.709218 | 0 | 0.014605 | 0.43842 | 59,500 | 1,722 | 134 | 34.552846 | 0.828216 | 0.01958 | 0 | 0.793828 | 0 | 0.002626 | 0.629055 | 0.034821 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015758 | false | 0.003283 | 0.009192 | 0 | 0.043992 | 0.017728 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
e1d95d5df30e30e5f5a25b72fb8d788c9240eefa | 735 | py | Python | create_conda_env.py | machism0/non-bonded-periodic | 30a6a10cae7487f88451db78319f66cf145bcba5 | [
"MIT"
] | null | null | null | create_conda_env.py | machism0/non-bonded-periodic | 30a6a10cae7487f88451db78319f66cf145bcba5 | [
"MIT"
] | 6 | 2017-12-18T12:48:52.000Z | 2018-02-22T08:38:53.000Z | create_conda_env.py | machism0/non-bonded-periodic | 30a6a10cae7487f88451db78319f66cf145bcba5 | [
"MIT"
] | 3 | 2017-12-11T16:11:15.000Z | 2018-04-22T23:16:14.000Z | import subprocess
import os
if os.name != 'nt':
# UNIX/MAC
try:
with open(os.devnull, 'wb') as quiet:
subprocess.run('conda env create -f environment.yml'.split(),
check=True,
stderr=quiet)
except subprocess.CalledProcessError:
... | 31.956522 | 77 | 0.560544 | 80 | 735 | 5.15 | 0.4 | 0.126214 | 0.174757 | 0.203884 | 0.82767 | 0.76699 | 0.76699 | 0.76699 | 0.76699 | 0.76699 | 0 | 0 | 0.330612 | 735 | 22 | 78 | 33.409091 | 0.837398 | 0.021769 | 0 | 0.555556 | 0 | 0 | 0.215084 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.111111 | 0 | 0.111111 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
c023baa701789acafc33daa82f2de95fbe41afe6 | 7,686 | py | Python | habitat/reporting/migrations/0007_auto_20171009_2046.py | matrach/habitatOS | 1ae2a3caf6f279cf6d6d20bcd81f24d50f61d7d3 | [
"MIT"
] | 1 | 2021-02-01T19:04:39.000Z | 2021-02-01T19:04:39.000Z | habitat/reporting/migrations/0007_auto_20171009_2046.py | matrach/habitatOS | 1ae2a3caf6f279cf6d6d20bcd81f24d50f61d7d3 | [
"MIT"
] | null | null | null | habitat/reporting/migrations/0007_auto_20171009_2046.py | matrach/habitatOS | 1ae2a3caf6f279cf6d6d20bcd81f24d50f61d7d3 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2017-10-09 20:46
from __future__ import unicode_literals
from django.db import migrations, models
import habitat.timezone.models.martian_standard_time
class Migration(migrations.Migration):
dependencies = [
('reporting', '0006_auto_20171008_2242'),... | 68.625 | 319 | 0.690086 | 908 | 7,686 | 5.705947 | 0.099119 | 0.095541 | 0.121019 | 0.091874 | 0.9475 | 0.9475 | 0.898668 | 0.898668 | 0.898668 | 0.898668 | 0 | 0.033053 | 0.181239 | 7,686 | 111 | 320 | 69.243243 | 0.790243 | 0.008847 | 0 | 0.836538 | 1 | 0.153846 | 0.38109 | 0.120683 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.028846 | 0 | 0.057692 | 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 |
c03798f58d7c3400ea5f538a5f0288aa3b584e0f | 320 | py | Python | bitmovin_api_sdk/encoding/inputs/s3_role_based/__init__.py | jaythecaesarean/bitmovin-api-sdk-python | 48166511fcb9082041c552ace55a9b66cc59b794 | [
"MIT"
] | 11 | 2019-07-03T10:41:16.000Z | 2022-02-25T21:48:06.000Z | bitmovin_api_sdk/encoding/inputs/s3_role_based/__init__.py | jaythecaesarean/bitmovin-api-sdk-python | 48166511fcb9082041c552ace55a9b66cc59b794 | [
"MIT"
] | 8 | 2019-11-23T00:01:25.000Z | 2021-04-29T12:30:31.000Z | bitmovin_api_sdk/encoding/inputs/s3_role_based/__init__.py | jaythecaesarean/bitmovin-api-sdk-python | 48166511fcb9082041c552ace55a9b66cc59b794 | [
"MIT"
] | 13 | 2020-01-02T14:58:18.000Z | 2022-03-26T12:10:30.000Z | from bitmovin_api_sdk.encoding.inputs.s3_role_based.s3_role_based_api import S3RoleBasedApi
from bitmovin_api_sdk.encoding.inputs.s3_role_based.customdata.customdata_api import CustomdataApi
from bitmovin_api_sdk.encoding.inputs.s3_role_based.s3_role_based_input_list_query_params import S3RoleBasedInputListQueryParams
| 80 | 128 | 0.921875 | 47 | 320 | 5.808511 | 0.382979 | 0.10989 | 0.201465 | 0.197802 | 0.553114 | 0.553114 | 0.553114 | 0.553114 | 0.553114 | 0.395604 | 0 | 0.022727 | 0.0375 | 320 | 3 | 129 | 106.666667 | 0.863636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
fbf3d607364198930bad796a743cd75010484504 | 28,675 | py | Python | alphacsc/other/sporco/sporco/fista/cbpdndl.py | sophiaas/alphacsc | 402b8f6c8ee4ba9c86e9da0e2073d900cf8da207 | [
"BSD-3-Clause"
] | 89 | 2017-05-31T19:20:52.000Z | 2022-03-22T09:52:17.000Z | alphacsc/other/sporco/sporco/fista/cbpdndl.py | sophiaas/alphacsc | 402b8f6c8ee4ba9c86e9da0e2073d900cf8da207 | [
"BSD-3-Clause"
] | 75 | 2017-07-15T14:03:40.000Z | 2022-03-29T17:31:58.000Z | alphacsc/other/sporco/sporco/fista/cbpdndl.py | sophiaas/alphacsc | 402b8f6c8ee4ba9c86e9da0e2073d900cf8da207 | [
"BSD-3-Clause"
] | 35 | 2017-06-16T12:48:23.000Z | 2022-03-21T09:49:55.000Z | # -*- coding: utf-8 -*-
# Copyright (C) 2016-2017 by Brendt Wohlberg <brendt@ieee.org>
# Cristina Garcia-Cardona <cgarciac@lanl.gov>
# All rights reserved. BSD 3-clause License.
# This file is part of the SPORCO package. Details of the copyright
# and user license can be found in the 'LICENSE... | 37 | 79 | 0.552746 | 3,352 | 28,675 | 4.629177 | 0.112172 | 0.0203 | 0.020107 | 0.00696 | 0.861765 | 0.848747 | 0.830508 | 0.810853 | 0.791648 | 0.777341 | 0 | 0.009998 | 0.312851 | 28,675 | 774 | 80 | 37.047804 | 0.777507 | 0.395885 | 0 | 0.745098 | 0 | 0 | 0.156658 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045752 | false | 0 | 0.042484 | 0 | 0.143791 | 0.009804 | 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 |
221bd3775a6f5fad865b79332ed6cf2163ce8d24 | 73,575 | py | Python | sdk/formrecognizer/azure-ai-formrecognizer/tests/test_to_dict_v3.py | jalauzon-msft/azure-sdk-for-python | 15967f5c6d3376f2334a382486ba86339786e028 | [
"MIT"
] | 1 | 2022-02-01T18:50:12.000Z | 2022-02-01T18:50:12.000Z | sdk/formrecognizer/azure-ai-formrecognizer/tests/test_to_dict_v3.py | ellhe-blaster/azure-sdk-for-python | 82193ba5e81cc5e5e5a5239bba58abe62e86f469 | [
"MIT"
] | null | null | null | sdk/formrecognizer/azure-ai-formrecognizer/tests/test_to_dict_v3.py | ellhe-blaster/azure-sdk-for-python | 82193ba5e81cc5e5e5a5239bba58abe62e86f469 | [
"MIT"
] | null | null | null | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# ---------------------------------------------------------------------... | 36.261705 | 117 | 0.291227 | 4,145 | 73,575 | 5.026297 | 0.069481 | 0.057598 | 0.04867 | 0.052414 | 0.957281 | 0.940146 | 0.922146 | 0.909427 | 0.900931 | 0.892675 | 0 | 0.058804 | 0.591125 | 73,575 | 2,028 | 118 | 36.279586 | 0.633747 | 0.00685 | 0 | 0.780943 | 0 | 0 | 0.153242 | 0.013386 | 0 | 0 | 0 | 0.000493 | 0.013465 | 1 | 0.013465 | false | 0 | 0.001036 | 0 | 0.015018 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
2230c6a21b9b07be2fdf4f681b8005423bbb5b68 | 136 | py | Python | src/aws_connections/__main__.py | jameskabbes/aws_connections | f5731ba95d41379883b63aab8ae907cf616a244a | [
"MIT"
] | null | null | null | src/aws_connections/__main__.py | jameskabbes/aws_connections | f5731ba95d41379883b63aab8ae907cf616a244a | [
"MIT"
] | null | null | null | src/aws_connections/__main__.py | jameskabbes/aws_connections | f5731ba95d41379883b63aab8ae907cf616a244a | [
"MIT"
] | null | null | null | import aws_connections
aws_connections._Dir.print_atts()
import aws_connections.s3 as s3f
print ( s3f.add_s3n_to_key( 'TEST_S3_KEY' ) ) | 27.2 | 45 | 0.816176 | 23 | 136 | 4.391304 | 0.608696 | 0.415842 | 0.39604 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04065 | 0.095588 | 136 | 5 | 45 | 27.2 | 0.780488 | 0 | 0 | 0 | 0 | 0 | 0.080292 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 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 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 7 |
3f0e310ee3a251e39ad1313d595dca71fdbee6e4 | 3,285 | py | Python | src/test/test_Plant_FinanceSE.py | nickjohnson13/Plant_FinanceSE | 36820ea8cbf38c19ac4a907c9b6b143a175fb0a3 | [
"Apache-2.0"
] | 1 | 2020-03-06T13:45:31.000Z | 2020-03-06T13:45:31.000Z | test/plant_financese/test_Plant_FinanceSE.py | RFeil/WISDEM | f58ec725a4a7f959b6a97222d5e709e67d68379a | [
"Apache-2.0"
] | 17 | 2019-09-13T22:21:15.000Z | 2019-10-25T20:04:26.000Z | test/plant_financese/test_Plant_FinanceSE.py | akey7/WISDEM | 29c5abbdfdc8800cfd18237e8e0edf0d10c7e02c | [
"Apache-2.0"
] | 2 | 2015-10-30T06:02:21.000Z | 2019-07-30T21:25:23.000Z | """
test_Plant_FinanceSE_gradients.py
Created by Katherine Dykes on 2014-01-07.
Copyright (c) NREL. All rights reserved.
"""
import unittest
import numpy as np
from commonse.utilities import check_gradient_unit_test
from plant_financese.basic_finance.basic_finance import fin_cst_component, fin_cst_assembly
from plant... | 28.318966 | 112 | 0.681887 | 439 | 3,285 | 4.824601 | 0.191344 | 0.11898 | 0.051936 | 0.067989 | 0.815864 | 0.793201 | 0.793201 | 0.793201 | 0.793201 | 0.699717 | 0 | 0.109307 | 0.231355 | 3,285 | 115 | 113 | 28.565217 | 0.729505 | 0.049011 | 0 | 0.782609 | 0 | 0 | 0.002568 | 0 | 0 | 0 | 0 | 0 | 0.086957 | 1 | 0.144928 | false | 0 | 0.072464 | 0 | 0.275362 | 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 |
3f297772786da41daa7a34cfde1e3c639907f565 | 19,470 | py | Python | build/PureCloudPlatformClientV2/apis/audit_api.py | cjohnson-ctl/platform-client-sdk-python | 38ce53bb8012b66e8a43cc8bd6ff00cf6cc99100 | [
"MIT"
] | 1 | 2021-10-08T20:46:45.000Z | 2021-10-08T20:46:45.000Z | libs/PureCloudPlatformClientV2/apis/audit_api.py | rocketbot-cl/genesysCloud | dd9d9b5ebb90a82bab98c0d88b9585c22c91f333 | [
"MIT"
] | null | null | null | libs/PureCloudPlatformClientV2/apis/audit_api.py | rocketbot-cl/genesysCloud | dd9d9b5ebb90a82bab98c0d88b9585c22c91f333 | [
"MIT"
] | null | null | null | # coding: utf-8
"""
AuditApi.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 required by ... | 37.732558 | 140 | 0.553724 | 1,876 | 19,470 | 5.554371 | 0.120469 | 0.041459 | 0.0262 | 0.021881 | 0.85499 | 0.841747 | 0.836372 | 0.820633 | 0.820633 | 0.809501 | 0 | 0.001461 | 0.367129 | 19,470 | 515 | 141 | 37.805825 | 0.844181 | 0.280637 | 0 | 0.793893 | 0 | 0 | 0.171644 | 0.048606 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026718 | false | 0 | 0.026718 | 0 | 0.080153 | 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 |
3f3a7fc9265d182008d4ecd0f9d37974496ca6d6 | 25,223 | py | Python | intro-ansible/venv3/lib/python3.8/site-packages/ansible_collections/dellemc/openmanage/tests/unit/plugins/modules/test_idrac_user.py | Stienvdh/statrick | 7b092fc42171e226718a70a285a4b323f2f395ad | [
"MIT"
] | null | null | null | intro-ansible/venv3/lib/python3.8/site-packages/ansible_collections/dellemc/openmanage/tests/unit/plugins/modules/test_idrac_user.py | Stienvdh/statrick | 7b092fc42171e226718a70a285a4b323f2f395ad | [
"MIT"
] | null | null | null | intro-ansible/venv3/lib/python3.8/site-packages/ansible_collections/dellemc/openmanage/tests/unit/plugins/modules/test_idrac_user.py | Stienvdh/statrick | 7b092fc42171e226718a70a285a4b323f2f395ad | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Dell EMC OpenManage Ansible Modules
# Version 2.1.2
# Copyright (C) 2020 Dell Inc. or its subsidiaries. All Rights Reserved.
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
#
from __future__ import (absolute_import, division, print_function)
__... | 72.479885 | 113 | 0.618325 | 2,795 | 25,223 | 5.218247 | 0.076208 | 0.051011 | 0.068015 | 0.066232 | 0.863284 | 0.857182 | 0.839424 | 0.822557 | 0.820638 | 0.820638 | 0 | 0.010968 | 0.266225 | 25,223 | 347 | 114 | 72.688761 | 0.777069 | 0.009238 | 0 | 0.761147 | 0 | 0 | 0.296293 | 0.101473 | 0 | 0 | 0 | 0 | 0.06051 | 1 | 0.06051 | false | 0.057325 | 0.050955 | 0 | 0.124204 | 0.003185 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 8 |
18bc62344ecd9fb9ab81f142546dec33aa688360 | 33 | py | Python | sl_cutscenes/__init__.py | AIS-Bonn/sl-cutscenes | d50128b86a9c808cbe5943e737a4974f0a8d3982 | [
"MIT"
] | 2 | 2022-03-25T08:24:10.000Z | 2022-03-29T09:06:47.000Z | sl_cutscenes/__init__.py | AIS-Bonn/sl-scenes | d50128b86a9c808cbe5943e737a4974f0a8d3982 | [
"MIT"
] | null | null | null | sl_cutscenes/__init__.py | AIS-Bonn/sl-scenes | d50128b86a9c808cbe5943e737a4974f0a8d3982 | [
"MIT"
] | null | null | null | from .generation import generate
| 16.5 | 32 | 0.848485 | 4 | 33 | 7 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121212 | 33 | 1 | 33 | 33 | 0.965517 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
e1748f4515bd7ee5156393884a142c16d93b20ce | 42 | py | Python | code/Python/HelloWorld_AK.py | souvickroy02/Hello-World | a25bea68b2a22e68c3dffb5824e36f3fce33a8d3 | [
"MIT"
] | 63 | 2019-09-30T16:16:19.000Z | 2021-06-17T17:23:06.000Z | code/Python/HelloWorld_AK.py | souvickroy02/Hello-World | a25bea68b2a22e68c3dffb5824e36f3fce33a8d3 | [
"MIT"
] | 242 | 2019-09-30T14:07:06.000Z | 2020-10-01T13:52:13.000Z | code/Python/HelloWorld_AK.py | souvickroy02/Hello-World | a25bea68b2a22e68c3dffb5824e36f3fce33a8d3 | [
"MIT"
] | 743 | 2019-09-30T13:58:42.000Z | 2021-12-29T21:58:28.000Z | # print Hello World
print ("Hello World!") | 21 | 22 | 0.714286 | 6 | 42 | 5 | 0.5 | 0.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 42 | 2 | 22 | 21 | 0.833333 | 0.404762 | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 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 | 0 | 0 | 0 | 1 | 0 | 7 |
e18ca80195555e5474118723430b71a00eed02a8 | 6,137 | py | Python | tests/test_storage_account.py | tinvaan/mazure | c6798912ef1298514d0220f2d3809338683efec8 | [
"Apache-2.0"
] | 2 | 2021-06-23T08:59:37.000Z | 2022-02-02T05:15:12.000Z | tests/test_storage_account.py | tinvaan/mazure | c6798912ef1298514d0220f2d3809338683efec8 | [
"Apache-2.0"
] | 2 | 2021-06-22T13:12:34.000Z | 2021-07-03T12:07:15.000Z | tests/test_storage_account.py | tinvaan/mazure | c6798912ef1298514d0220f2d3809338683efec8 | [
"Apache-2.0"
] | 1 | 2022-02-28T12:36:20.000Z | 2022-02-28T12:36:20.000Z |
import uuid
import secrets
import unittest
from azure.identity import ClientSecretCredential
from azure.mgmt.storage import StorageManagementClient
from azure.mgmt.storage.models import (
StorageAccountCreateParameters,
StorageAccountCheckNameAvailabilityParameters
)
from mazure import mazure, Mazure
from ma... | 35.473988 | 83 | 0.635653 | 545 | 6,137 | 7 | 0.179817 | 0.06291 | 0.062385 | 0.091743 | 0.840367 | 0.811009 | 0.762779 | 0.762779 | 0.762779 | 0.762779 | 0 | 0.00286 | 0.25941 | 6,137 | 172 | 84 | 35.680233 | 0.836524 | 0.010591 | 0 | 0.769231 | 0 | 0 | 0.092123 | 0 | 0 | 0 | 0 | 0.005814 | 0.125874 | 1 | 0.097902 | false | 0 | 0.055944 | 0 | 0.167832 | 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 |
e1af964ea1a052eea7a1b106b9511087285be9cf | 2,915 | py | Python | 086 Radix Sort/Radix_Sort_test.py | Iftakharpy/AlgoExpert-Questions | f4aef449bfe0ee651d84a92487c3b3bedb3aa739 | [
"Apache-2.0"
] | 3 | 2021-11-19T07:32:27.000Z | 2022-03-22T13:46:27.000Z | 086 Radix Sort/Radix_Sort_test.py | Iftakharpy/AlgoExpert-Questions | f4aef449bfe0ee651d84a92487c3b3bedb3aa739 | [
"Apache-2.0"
] | null | null | null | 086 Radix Sort/Radix_Sort_test.py | Iftakharpy/AlgoExpert-Questions | f4aef449bfe0ee651d84a92487c3b3bedb3aa739 | [
"Apache-2.0"
] | 5 | 2022-01-02T11:51:12.000Z | 2022-03-22T13:53:32.000Z | from Radix_Sort import radixSort
def test_radixSort_case_1():
assert radixSort(array=[8762, 654, 3008, 345, 87, 65, 234, 12, 2]) == [2, 12, 65, 87, 234, 345, 654, 3008, 8762]
def test_radixSort_case_2():
assert radixSort(array=[2, 12, 65, 87, 234, 345, 654, 3008, 8762]) == [2, 12, 65, 87, 234, 345, 654,... | 51.140351 | 253 | 0.62024 | 499 | 2,915 | 3.513026 | 0.226453 | 0.071877 | 0.16429 | 0.205362 | 0.119795 | 0.093554 | 0.093554 | 0.06389 | 0.06389 | 0.0502 | 0 | 0.429487 | 0.197256 | 2,915 | 56 | 254 | 52.053571 | 0.319658 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.486486 | 1 | 0.486486 | true | 0 | 0.027027 | 0 | 0.513514 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 7 |
e1b50b7cdc6efeeb2710fa617fcd4e968111e9ea | 975,577 | py | Python | experiment_results/exp_sim_regular_20190607T082407Z.py | carstenblank/Quantum-classifier-with-tailored-quantum-kernels---Supplemental | 7c3188f0b71e825bc8ce2b1577a93d10b34abdbc | [
"Apache-2.0"
] | 11 | 2020-02-18T14:14:40.000Z | 2021-10-10T12:19:23.000Z | experiment_results/exp_sim_regular_20190607T082407Z.py | carstenblank/Quantum-classifier-with-tailored-quantum-kernels---Supplemental | 7c3188f0b71e825bc8ce2b1577a93d10b34abdbc | [
"Apache-2.0"
] | null | null | null | experiment_results/exp_sim_regular_20190607T082407Z.py | carstenblank/Quantum-classifier-with-tailored-quantum-kernels---Supplemental | 7c3188f0b71e825bc8ce2b1577a93d10b34abdbc | [
"Apache-2.0"
] | 2 | 2020-07-08T23:17:01.000Z | 2021-09-27T03:13:32.000Z | # -*- coding: utf-8 -*-
# Copyright 2019 Carsten Blank
#
# 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 la... | 60,973.5625 | 974,975 | 0.509462 | 164,748 | 975,577 | 3.000953 | 0.005736 | 0.024466 | 0.025995 | 0.026505 | 0.986555 | 0.982462 | 0.982462 | 0.980702 | 0.980702 | 0.980176 | 0 | 0.172643 | 0.097258 | 975,577 | 16 | 974,975 | 60,973.5625 | 0.388733 | 0.000586 | 0 | 0 | 0 | 252 | 0.56853 | 0.138778 | 0 | 0 | 0.001551 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
e1bd6031950fc8e492e0cd8c2784ef349d3cd00b | 1,179 | py | Python | src/test_proper_parenthetics.py | marco-zangari/code-katas | 1dfda1cfbbe8687b17e97e414358b38d964df675 | [
"MIT"
] | null | null | null | src/test_proper_parenthetics.py | marco-zangari/code-katas | 1dfda1cfbbe8687b17e97e414358b38d964df675 | [
"MIT"
] | null | null | null | src/test_proper_parenthetics.py | marco-zangari/code-katas | 1dfda1cfbbe8687b17e97e414358b38d964df675 | [
"MIT"
] | null | null | null | """Test proper parenthetics."""
import pytest
from proper_parenthetics import lisp_parens_with_count, lisp_parens_with_stack
def test_lisp_parens_with_count_closed():
"""Output with count to see whether parens closed(-1)."""
input = lisp_parens_with_stack(')))(((')
assert input == -1
def test_lisp_par... | 28.071429 | 78 | 0.696353 | 164 | 1,179 | 4.652439 | 0.152439 | 0.183486 | 0.220183 | 0.199214 | 0.80865 | 0.781127 | 0.747051 | 0.629096 | 0.629096 | 0.629096 | 0 | 0.012232 | 0.167939 | 1,179 | 41 | 79 | 28.756098 | 0.765545 | 0.282443 | 0 | 0.6 | 0 | 0 | 0.041975 | 0 | 0 | 0 | 0 | 0 | 0.3 | 1 | 0.3 | false | 0 | 0.1 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
e1d04143a2a9c05378d1afe450a2293df75310e8 | 115 | py | Python | qualifiedname/__init__.py | maxfischer2781/qualifiedname | 8aea438f231130f167c3827890c2ce26a8236754 | [
"MIT"
] | null | null | null | qualifiedname/__init__.py | maxfischer2781/qualifiedname | 8aea438f231130f167c3827890c2ce26a8236754 | [
"MIT"
] | null | null | null | qualifiedname/__init__.py | maxfischer2781/qualifiedname | 8aea438f231130f167c3827890c2ce26a8236754 | [
"MIT"
] | null | null | null | from qualifiedname.qname_meta import QualNameMeta
from qualifiedname.qname_recursive import set_qualname_recursive
| 38.333333 | 64 | 0.913043 | 14 | 115 | 7.214286 | 0.642857 | 0.336634 | 0.435644 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069565 | 115 | 2 | 65 | 57.5 | 0.943925 | 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 |
bedc2be305334dab95d31f346074ddeb68bd9d43 | 85 | py | Python | ips/ip/spi_master/__init__.py | zld012739/zldrepository | 5635b78a168956091676ef4dd99fa564be0e5ba0 | [
"MIT"
] | null | null | null | ips/ip/spi_master/__init__.py | zld012739/zldrepository | 5635b78a168956091676ef4dd99fa564be0e5ba0 | [
"MIT"
] | null | null | null | ips/ip/spi_master/__init__.py | zld012739/zldrepository | 5635b78a168956091676ef4dd99fa564be0e5ba0 | [
"MIT"
] | null | null | null | from spi_master_partial import get_ip_name
from spi_master_partial import SPI_MASTER
| 28.333333 | 42 | 0.905882 | 15 | 85 | 4.666667 | 0.533333 | 0.385714 | 0.371429 | 0.571429 | 0.742857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094118 | 85 | 2 | 43 | 42.5 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
bedf014a2af79c841b2ce232aee1741a863642a7 | 43,552 | py | Python | pycity_resilience/test/test_lhn_changes.py | RWTH-EBC/pyCity_resilience | e0ff1e137adb0edec0509b8b50ca0931e761a9b4 | [
"MIT"
] | 3 | 2020-06-18T02:01:09.000Z | 2020-10-20T13:57:10.000Z | pycity_resilience/test/test_lhn_changes.py | RWTH-EBC/pyCity_resilience | e0ff1e137adb0edec0509b8b50ca0931e761a9b4 | [
"MIT"
] | null | null | null | pycity_resilience/test/test_lhn_changes.py | RWTH-EBC/pyCity_resilience | e0ff1e137adb0edec0509b8b50ca0931e761a9b4 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
"""
from __future__ import division
import copy
import shapely.geometry.point as point
import pycity_resilience.ga.evolution.lhn_changes as lhnchanges
class TestLHNChanges():
def test_add_lhn_all_build(self):
dict_restr = {'boi': [1],
... | 31.242468 | 78 | 0.343038 | 4,762 | 43,552 | 2.956321 | 0.032549 | 0.082398 | 0.07288 | 0.063645 | 0.958162 | 0.949638 | 0.949567 | 0.94637 | 0.942677 | 0.939196 | 0 | 0.190914 | 0.532995 | 43,552 | 1,393 | 79 | 31.264896 | 0.501254 | 0.021606 | 0 | 0.946827 | 0 | 0 | 0.037721 | 0 | 0 | 0 | 0 | 0 | 0.0506 | 1 | 0.017153 | false | 0 | 0.003431 | 0 | 0.021441 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
bedfd910c6a821fcaffa87af09e3346a2f16cc81 | 21,949 | py | Python | tests/kbcr/clutrr/test_adv.py | Vikicsizmadia/ctp | d88fdfecf4b90ee42e6137a9767226c0d35b19a3 | [
"MIT"
] | 41 | 2020-07-14T15:44:20.000Z | 2022-03-25T10:33:07.000Z | tests/kbcr/clutrr/test_adv.py | Vikicsizmadia/ctp | d88fdfecf4b90ee42e6137a9767226c0d35b19a3 | [
"MIT"
] | 3 | 2020-12-28T05:57:12.000Z | 2022-03-09T01:05:06.000Z | tests/kbcr/clutrr/test_adv.py | Vikicsizmadia/ctp | d88fdfecf4b90ee42e6137a9767226c0d35b19a3 | [
"MIT"
] | 12 | 2020-07-14T22:56:46.000Z | 2022-01-17T02:40:10.000Z | # -*- coding: utf-8 -*-
import numpy as np
import multiprocessing
import torch
from torch import nn, Tensor
from ctp.kernels import GaussianKernel
from ctp.clutrr.models import BatchNeuralKB, BatchHoppy, BatchUnary, BatchMulti
from ctp.reformulators import SymbolicReformulator
from typing import List, Dict, Tuple,... | 35.00638 | 103 | 0.591644 | 3,100 | 21,949 | 3.874516 | 0.052903 | 0.07285 | 0.082258 | 0.046707 | 0.923487 | 0.910748 | 0.892848 | 0.878195 | 0.878195 | 0.878195 | 0 | 0.024597 | 0.270217 | 21,949 | 626 | 104 | 35.0623 | 0.725247 | 0.003508 | 0 | 0.800448 | 0 | 0 | 0.011479 | 0 | 0 | 0 | 0 | 0 | 0.017937 | 1 | 0.015695 | false | 0 | 0.020179 | 0 | 0.040359 | 0.011211 | 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 |
830c83090a7f19d6fb136c8e14250a6e4cb1cb49 | 122 | py | Python | classification/serializers/__init__.py | JeffersonBC/eshop-index-back | 66a11ad2ee86b9cd4dd49bcb34f676db3281153b | [
"MIT"
] | null | null | null | classification/serializers/__init__.py | JeffersonBC/eshop-index-back | 66a11ad2ee86b9cd4dd49bcb34f676db3281153b | [
"MIT"
] | null | null | null | classification/serializers/__init__.py | JeffersonBC/eshop-index-back | 66a11ad2ee86b9cd4dd49bcb34f676db3281153b | [
"MIT"
] | null | null | null | from .recomendation import *
from .review import *
from .tag import *
from .tag_group import *
from .vote_review import *
| 20.333333 | 28 | 0.754098 | 17 | 122 | 5.294118 | 0.411765 | 0.444444 | 0.288889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163934 | 122 | 5 | 29 | 24.4 | 0.882353 | 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 |
55cd4441c5c6f08bd441ae95507644bdbd8680fc | 37,966 | py | Python | src/genie/libs/parser/junos/tests/test_show_ted.py | filippohronsky/genieparser | 85e4b7a8f101e5cd44d4d7116e0e7a1af13fe9df | [
"Apache-2.0"
] | 2 | 2021-01-27T03:37:39.000Z | 2021-01-27T03:40:50.000Z | src/genie/libs/parser/junos/tests/test_show_ted.py | filippohronsky/genieparser | 85e4b7a8f101e5cd44d4d7116e0e7a1af13fe9df | [
"Apache-2.0"
] | null | null | null | src/genie/libs/parser/junos/tests/test_show_ted.py | filippohronsky/genieparser | 85e4b7a8f101e5cd44d4d7116e0e7a1af13fe9df | [
"Apache-2.0"
] | null | null | null | # Python
import unittest
from unittest.mock import Mock
# ATS
from pyats.topology import Device, loader
# Metaparser
from genie.metaparser.util.exceptions import SchemaEmptyParserError
from genie.libs.parser.junos.show_ted import ShowTedDatabaseExtensive
'''
Unit tests for:
* 'show ted database extensive'
*... | 52.877437 | 94 | 0.176763 | 1,655 | 37,966 | 3.948036 | 0.09426 | 0.01959 | 0.018365 | 0.009795 | 0.889654 | 0.856443 | 0.818641 | 0.782828 | 0.756964 | 0.722681 | 0 | 0.129553 | 0.757046 | 37,966 | 717 | 95 | 52.951186 | 0.578816 | 0.000553 | 0 | 0.567723 | 0 | 0.010086 | 0.22957 | 0.015541 | 0 | 0 | 0.002062 | 0 | 0.004323 | 1 | 0.004323 | false | 0 | 0.007205 | 0 | 0.021614 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
55d1537397d72a9d4f1e8ac21dbeb50a28496c64 | 6,722 | py | Python | Road_Network_POMDPX/pre_defined_road_nets.py | COHRINT/self_confidence | d347b6994ed295f109db989374385b508880009b | [
"MIT"
] | null | null | null | Road_Network_POMDPX/pre_defined_road_nets.py | COHRINT/self_confidence | d347b6994ed295f109db989374385b508880009b | [
"MIT"
] | null | null | null | Road_Network_POMDPX/pre_defined_road_nets.py | COHRINT/self_confidence | d347b6994ed295f109db989374385b508880009b | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import networkx as nx
"""Functions to produce various road networks
"""
__author__ = "Brett Israelsen"
__copyright__ = "Copyright 2016, Cohrint"
__credits__ = ["Brett Israelsen"]
__license__ = "MIT"
__version__ = "0.1.0"
__maintainer__ = "Brett Israelsen"
__email__ = "brett.israelsen@colorado.edu... | 27.54918 | 69 | 0.537489 | 1,022 | 6,722 | 3.435421 | 0.113503 | 0.123042 | 0.156366 | 0.129878 | 0.868983 | 0.854742 | 0.783537 | 0.773284 | 0.763885 | 0.763885 | 0 | 0.050449 | 0.271645 | 6,722 | 243 | 70 | 27.662551 | 0.666667 | 0.070663 | 0 | 0.777174 | 0 | 0 | 0.167449 | 0.004534 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.005435 | 0.021739 | 0.092391 | 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 |
36110ca456e5ca5d95f86de70d05d367162213ce | 3,945 | py | Python | Algo and DSA/LeetCode-Solutions-master/Python/cat-and-mouse.py | Sourav692/FAANG-Interview-Preparation | f523e5c94d582328b3edc449ea16ac6ab28cdc81 | [
"Unlicense"
] | 3,269 | 2018-10-12T01:29:40.000Z | 2022-03-31T17:58:41.000Z | Algo and DSA/LeetCode-Solutions-master/Python/cat-and-mouse.py | Sourav692/FAANG-Interview-Preparation | f523e5c94d582328b3edc449ea16ac6ab28cdc81 | [
"Unlicense"
] | 53 | 2018-12-16T22:54:20.000Z | 2022-02-25T08:31:20.000Z | Algo and DSA/LeetCode-Solutions-master/Python/cat-and-mouse.py | Sourav692/FAANG-Interview-Preparation | f523e5c94d582328b3edc449ea16ac6ab28cdc81 | [
"Unlicense"
] | 1,236 | 2018-10-12T02:51:40.000Z | 2022-03-30T13:30:37.000Z | # Time: O(n^3)
# Space: O(n^2)
import collections
class Solution(object):
def catMouseGame(self, graph):
"""
:type graph: List[List[int]]
:rtype: int
"""
HOLE, MOUSE_START, CAT_START = range(3)
DRAW, MOUSE, CAT = range(3)
def parents(m, c, t):
... | 32.336066 | 63 | 0.408365 | 488 | 3,945 | 3.284836 | 0.122951 | 0.059888 | 0.089832 | 0.061759 | 0.872739 | 0.872739 | 0.872739 | 0.830318 | 0.830318 | 0.830318 | 0 | 0.011401 | 0.466413 | 3,945 | 121 | 64 | 32.603306 | 0.750119 | 0.034981 | 0 | 0.83 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.02 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
36419a8880755564142fd031d76b59b1d9d4c31f | 285 | py | Python | tests/parser/wellfounded.15.test.py | veltri/DLV2 | 944aaef803aa75e7ec51d7e0c2b0d964687fdd0e | [
"Apache-2.0"
] | null | null | null | tests/parser/wellfounded.15.test.py | veltri/DLV2 | 944aaef803aa75e7ec51d7e0c2b0d964687fdd0e | [
"Apache-2.0"
] | null | null | null | tests/parser/wellfounded.15.test.py | veltri/DLV2 | 944aaef803aa75e7ec51d7e0c2b0d964687fdd0e | [
"Apache-2.0"
] | null | null | null | input = """
% test skip of Propagate_DeriveSingleUndefinedPosBodyLiteral()
a :- b.
b :- a.
a | b.
-a :- not a.
-b :- not b.
"""
output = """
% test skip of Propagate_DeriveSingleUndefinedPosBodyLiteral()
a :- b.
b :- a.
a | b.
-a :- not a.
-b :- not b.
"""
| 11.4 | 63 | 0.536842 | 36 | 285 | 4.194444 | 0.277778 | 0.07947 | 0.13245 | 0.251656 | 0.927152 | 0.927152 | 0.927152 | 0.927152 | 0.927152 | 0.927152 | 0 | 0 | 0.280702 | 285 | 24 | 64 | 11.875 | 0.736585 | 0 | 0 | 0.875 | 0 | 0 | 0.883019 | 0.354717 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 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 | 9 |
3648bdc482c13e8bf74c68cc6988ac34168bddfb | 1,545 | py | Python | src/simsearch/app/testing/test_front_end.py | dovydas96/CA400-FinalYear-Project | d277c73b6da64b0325082a559bbf6b91bfb816c0 | [
"MIT"
] | null | null | null | src/simsearch/app/testing/test_front_end.py | dovydas96/CA400-FinalYear-Project | d277c73b6da64b0325082a559bbf6b91bfb816c0 | [
"MIT"
] | 6 | 2021-03-19T01:02:50.000Z | 2022-03-11T23:49:06.000Z | src/simsearch/app/testing/test_front_end.py | dovydas96/CA400-FinalYear-Project | d277c73b6da64b0325082a559bbf6b91bfb816c0 | [
"MIT"
] | null | null | null | # import time
# import os
#
#
# def test_frontend_buttons_and_functions(webdriver):
#
# webdriver.get('http://127.0.0.1:5000/register')
# webdriver.find_element_by_id("username").send_keys('test1')
# webdriver.find_element_by_id("email").send_keys('test1@example.com')
# webdriver.cu
# webdriver.find... | 41.756757 | 92 | 0.704207 | 212 | 1,545 | 4.783019 | 0.216981 | 0.25641 | 0.394477 | 0.433925 | 0.75641 | 0.75641 | 0.704142 | 0.704142 | 0.704142 | 0.704142 | 0 | 0.019956 | 0.124272 | 1,545 | 36 | 93 | 42.916667 | 0.72949 | 0.952751 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
364d1b77b098ab242f342e6679518b613b13d5e5 | 17,167 | py | Python | src/TheLanguage/Lexer/Components/UnitTests/NormalizedIterator_UnitTest.py | davidbrownell/DavidBrownell_TheLanguage | 07170b448a0ebd7fa2325c9ccd4cefdb3cf7eb98 | [
"BSL-1.0"
] | null | null | null | src/TheLanguage/Lexer/Components/UnitTests/NormalizedIterator_UnitTest.py | davidbrownell/DavidBrownell_TheLanguage | 07170b448a0ebd7fa2325c9ccd4cefdb3cf7eb98 | [
"BSL-1.0"
] | null | null | null | src/TheLanguage/Lexer/Components/UnitTests/NormalizedIterator_UnitTest.py | davidbrownell/DavidBrownell_TheLanguage | 07170b448a0ebd7fa2325c9ccd4cefdb3cf7eb98 | [
"BSL-1.0"
] | 1 | 2021-06-18T18:58:57.000Z | 2021-06-18T18:58:57.000Z | # ----------------------------------------------------------------------
# |
# | NormalizedIterator_UnitTest.py
# |
# | David Brownell <db@DavidBrownell.com>
# | 2021-09-23 18:06:51
# |
# ----------------------------------------------------------------------
# |
# | Copyright David Brownell 2021
# | ... | 28.142623 | 84 | 0.569989 | 1,704 | 17,167 | 5.728873 | 0.101526 | 0.26429 | 0.072116 | 0.057468 | 0.828826 | 0.794919 | 0.766441 | 0.704364 | 0.672608 | 0.622413 | 0 | 0.028019 | 0.274422 | 17,167 | 609 | 85 | 28.188834 | 0.7557 | 0.10893 | 0 | 0.804511 | 0 | 0 | 0.00699 | 0 | 0 | 0 | 0 | 0 | 0.676692 | 1 | 0.025063 | false | 0 | 0.022556 | 0 | 0.047619 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
366569118d5a9f85213ab10c8dfbc406071b09ec | 150 | py | Python | python/tests/test_decode_morse.py | matyama/codewars | 3386dbdb1cd3fa6556356591f377a72bf4bba4e6 | [
"MIT"
] | null | null | null | python/tests/test_decode_morse.py | matyama/codewars | 3386dbdb1cd3fa6556356591f377a72bf4bba4e6 | [
"MIT"
] | null | null | null | python/tests/test_decode_morse.py | matyama/codewars | 3386dbdb1cd3fa6556356591f377a72bf4bba4e6 | [
"MIT"
] | null | null | null | from codewars.decode_morse import decodeMorse
def test_decode_morse() -> None:
assert decodeMorse('.... . -.-- .--- ..- -.. .') == 'HEY JUDE'
| 25 | 68 | 0.593333 | 15 | 150 | 5.733333 | 0.8 | 0.255814 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.18 | 150 | 5 | 69 | 30 | 0.699187 | 0 | 0 | 0 | 0 | 0 | 0.24 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.333333 | true | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
3675949a5530ee2e9155a019bd1273fd117d1786 | 1,493 | py | Python | slackest/search.py | dagonis/slackest | 98175bc026c51165b7b8c39a271d74e0f713af72 | [
"Apache-2.0"
] | null | null | null | slackest/search.py | dagonis/slackest | 98175bc026c51165b7b8c39a271d74e0f713af72 | [
"Apache-2.0"
] | null | null | null | slackest/search.py | dagonis/slackest | 98175bc026c51165b7b8c39a271d74e0f713af72 | [
"Apache-2.0"
] | null | null | null | from .api import BaseAPI
class Search(BaseAPI):
def all(self, query, sort=None, sort_dir=None, highlight=None, count=None,
page=None):
return self.get('search.all',
params={
'query': query,
'sort': sort,
... | 39.289474 | 78 | 0.362358 | 112 | 1,493 | 4.75 | 0.1875 | 0.118421 | 0.073308 | 0.095865 | 0.862782 | 0.862782 | 0.862782 | 0.862782 | 0.862782 | 0.862782 | 0 | 0 | 0.540522 | 1,493 | 38 | 79 | 39.289474 | 0.77551 | 0 | 0 | 0.742857 | 0 | 0 | 0.095047 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085714 | false | 0 | 0.028571 | 0.085714 | 0.228571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
36b40b4b5ff7bad0452b621f15759c468c682ad2 | 58,693 | py | Python | libica/openapi/libgds/api/files_api.py | umccr-illumina/libica | 916d27eea499f29bee590268b84208effb0cc576 | [
"MIT"
] | null | null | null | libica/openapi/libgds/api/files_api.py | umccr-illumina/libica | 916d27eea499f29bee590268b84208effb0cc576 | [
"MIT"
] | 4 | 2021-11-15T10:47:51.000Z | 2022-02-22T04:43:20.000Z | libica/openapi/libgds/api/files_api.py | umccr-illumina/libica | 916d27eea499f29bee590268b84208effb0cc576 | [
"MIT"
] | null | null | null | # coding: utf-8
"""
Genomic Data Store Service
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: v1
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
im... | 52.498211 | 360 | 0.622561 | 6,972 | 58,693 | 5.020511 | 0.049627 | 0.04571 | 0.073594 | 0.022398 | 0.960232 | 0.949119 | 0.945205 | 0.943405 | 0.932149 | 0.922721 | 0 | 0.016818 | 0.305045 | 58,693 | 1,117 | 361 | 52.54521 | 0.84133 | 0.473106 | 0 | 0.731397 | 1 | 0.010889 | 0.212464 | 0.032241 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030853 | false | 0 | 0.009074 | 0 | 0.07078 | 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 |
36c9df0b3f1c5db99cbc0a02e39bb96ed4fe8bc6 | 129 | py | Python | python_modules/dagster/dagster/core/storage/event_log/sqlite/__init__.py | dbatten5/dagster | d76e50295054ffe5a72f9b292ef57febae499528 | [
"Apache-2.0"
] | 4,606 | 2018-06-21T17:45:20.000Z | 2022-03-31T23:39:42.000Z | python_modules/dagster/dagster/core/storage/event_log/sqlite/__init__.py | dbatten5/dagster | d76e50295054ffe5a72f9b292ef57febae499528 | [
"Apache-2.0"
] | 6,221 | 2018-06-12T04:36:01.000Z | 2022-03-31T21:43:05.000Z | python_modules/dagster/dagster/core/storage/event_log/sqlite/__init__.py | dbatten5/dagster | d76e50295054ffe5a72f9b292ef57febae499528 | [
"Apache-2.0"
] | 619 | 2018-08-22T22:43:09.000Z | 2022-03-31T22:48:06.000Z | from .consolidated_sqlite_event_log import ConsolidatedSqliteEventLogStorage
from .sqlite_event_log import SqliteEventLogStorage
| 43 | 76 | 0.922481 | 13 | 129 | 8.769231 | 0.615385 | 0.192982 | 0.245614 | 0.350877 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062016 | 129 | 2 | 77 | 64.5 | 0.942149 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
36dfadd4c08f5cffa1fb32f9b940e8a977f6cac9 | 1,666 | py | Python | pyrez/exceptions.py | shaklev/Pyrez | a9cc5bc0c62fbd56235c06b39683f697fd77e8a8 | [
"MIT"
] | null | null | null | pyrez/exceptions.py | shaklev/Pyrez | a9cc5bc0c62fbd56235c06b39683f697fd77e8a8 | [
"MIT"
] | null | null | null | pyrez/exceptions.py | shaklev/Pyrez | a9cc5bc0c62fbd56235c06b39683f697fd77e8a8 | [
"MIT"
] | null | null | null | class CustomException(Exception):
def __init__(self, *args, **kwargs):
return super().__init__(self, *args, **kwargs)
def __str__(self):
return str(self.args [1])
class DeprecatedException(CustomException):
def __init__(self, *args, **kwargs):
return super().__init__(*args, **kwargs)... | 42.717949 | 54 | 0.688475 | 165 | 1,666 | 6.345455 | 0.139394 | 0.229226 | 0.148997 | 0.223496 | 0.723018 | 0.723018 | 0.723018 | 0.723018 | 0.688634 | 0.688634 | 0 | 0.000716 | 0.162065 | 1,666 | 38 | 55 | 43.842105 | 0.749284 | 0 | 0 | 0.605263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.342105 | false | 0 | 0 | 0.342105 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 8 |
36e5028f364ebe260be55df72ae9dc9e259d0182 | 68,617 | py | Python | benchmarks/SimResults/combinations_spec_locality/cmp_astarzeusmpcactusADMGemsFDTD/power.py | TugberkArkose/MLScheduler | e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061 | [
"Unlicense"
] | null | null | null | benchmarks/SimResults/combinations_spec_locality/cmp_astarzeusmpcactusADMGemsFDTD/power.py | TugberkArkose/MLScheduler | e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061 | [
"Unlicense"
] | null | null | null | benchmarks/SimResults/combinations_spec_locality/cmp_astarzeusmpcactusADMGemsFDTD/power.py | TugberkArkose/MLScheduler | e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061 | [
"Unlicense"
] | null | null | null | power = {'BUSES': {'Area': 1.33155,
'Bus/Area': 1.33155,
'Bus/Gate Leakage': 0.00662954,
'Bus/Peak Dynamic': 0.0,
'Bus/Runtime Dynamic': 0.0,
'Bus/Subthreshold Leakage': 0.0691322,
'Bus/Subthreshold Leakage with power gating': 0.0259246,
'Gate... | 75.073304 | 124 | 0.682061 | 8,086 | 68,617 | 5.781969 | 0.067895 | 0.123543 | 0.112934 | 0.093427 | 0.93825 | 0.930379 | 0.917545 | 0.885783 | 0.862554 | 0.842213 | 0 | 0.131928 | 0.224303 | 68,617 | 914 | 125 | 75.073304 | 0.746459 | 0 | 0 | 0.642232 | 0 | 0 | 0.657335 | 0.048092 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
7fc8ca874303891ece84f4fc9a2c86ebdff63d79 | 9,654 | py | Python | navigation/migrations/0002_auto_20200317_1530.py | IATI/new-website | b90783e32d19ac4c821c5ea018a52997a11b5286 | [
"MIT"
] | 4 | 2019-03-28T06:42:17.000Z | 2021-06-06T13:10:51.000Z | navigation/migrations/0002_auto_20200317_1530.py | IATI/new-website | b90783e32d19ac4c821c5ea018a52997a11b5286 | [
"MIT"
] | 177 | 2018-09-28T14:21:56.000Z | 2022-03-30T21:45:26.000Z | navigation/migrations/0002_auto_20200317_1530.py | IATI/new-website | b90783e32d19ac4c821c5ea018a52997a11b5286 | [
"MIT"
] | 8 | 2018-10-25T20:43:10.000Z | 2022-03-17T14:19:27.000Z | # Generated by Django 2.2.9 on 2020-03-17 15:30
from django.db import migrations
import wagtail.core.blocks
import wagtail.core.blocks.static_block
import wagtail.core.fields
import wagtail.images.blocks
class Migration(migrations.Migration):
dependencies = [
('navigation', '0001_initial'),
]
o... | 419.73913 | 9,200 | 0.72602 | 1,298 | 9,654 | 5.288906 | 0.102465 | 0.131391 | 0.198106 | 0.075747 | 0.876329 | 0.860015 | 0.847779 | 0.845885 | 0.832775 | 0.831173 | 0 | 0.003855 | 0.113217 | 9,654 | 22 | 9,201 | 438.818182 | 0.798038 | 0.004661 | 0 | 0 | 1 | 0.4375 | 0.441969 | 0.01655 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3125 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 12 |
18068befc3aa9c3d3edd42d6815f3fe4078769c5 | 5,964 | py | Python | frameworks/kafka/tests/test_ports.py | jorgelopez1/hdfs | 892589180438b90486ec7530d2a63c218b20e79f | [
"Apache-2.0"
] | null | null | null | frameworks/kafka/tests/test_ports.py | jorgelopez1/hdfs | 892589180438b90486ec7530d2a63c218b20e79f | [
"Apache-2.0"
] | null | null | null | frameworks/kafka/tests/test_ports.py | jorgelopez1/hdfs | 892589180438b90486ec7530d2a63c218b20e79f | [
"Apache-2.0"
] | null | null | null | import pytest
import sdk_cmd
import sdk_install
import sdk_marathon
import sdk_tasks
from tests import config
STATIC_PORT_OPTIONS_DICT = {"brokers": {"port": 9092}}
DYNAMIC_PORT_OPTIONS_DICT = {"brokers": {"port": 0}}
@pytest.fixture(scope='module', autouse=True)
def configure_package(configure_security):
try:
... | 38.980392 | 120 | 0.740275 | 821 | 5,964 | 5.051157 | 0.105968 | 0.115987 | 0.151676 | 0.133108 | 0.905474 | 0.880878 | 0.872438 | 0.872438 | 0.856523 | 0.843742 | 0 | 0.012873 | 0.140342 | 5,964 | 152 | 121 | 39.236842 | 0.795982 | 0.029343 | 0 | 0.747573 | 0 | 0 | 0.054825 | 0 | 0 | 0 | 0 | 0 | 0.184466 | 1 | 0.067961 | false | 0 | 0.058252 | 0 | 0.126214 | 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 |
180f823e937386b103e048cd20df5dbf30fea089 | 40,491 | py | Python | tests/unit/pypyr/pipelinerunner_test.py | FooBarQuaxx/pypyr | ebe56b2200a53e2f38c78bbb42d466bb1556c37c | [
"Apache-2.0"
] | null | null | null | tests/unit/pypyr/pipelinerunner_test.py | FooBarQuaxx/pypyr | ebe56b2200a53e2f38c78bbb42d466bb1556c37c | [
"Apache-2.0"
] | null | null | null | tests/unit/pypyr/pipelinerunner_test.py | FooBarQuaxx/pypyr | ebe56b2200a53e2f38c78bbb42d466bb1556c37c | [
"Apache-2.0"
] | null | null | null | """pipelinerunner.py unit tests."""
import logging
import pytest
from unittest.mock import call, patch
from pypyr.cache.loadercache import pypeloader_cache
from pypyr.cache.parsercache import contextparser_cache
from pypyr.cache.pipelinecache import pipeline_cache
from pypyr.context import Context
from pypyr.errors imp... | 36.282258 | 79 | 0.60858 | 4,381 | 40,491 | 5.282356 | 0.052499 | 0.032409 | 0.046323 | 0.048397 | 0.861464 | 0.833549 | 0.808962 | 0.788739 | 0.773399 | 0.761645 | 0 | 0.014262 | 0.267492 | 40,491 | 1,115 | 80 | 36.314798 | 0.765981 | 0.096985 | 0 | 0.766204 | 0 | 0 | 0.185297 | 0.085691 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.050926 | false | 0.006944 | 0.015046 | 0 | 0.072917 | 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 |
183dd4a44b239ee0dae7efc25524fe3979f85833 | 8,069 | py | Python | fireant/tests/queries/test_build_orderbys.py | RobinPapke/fireant | 822a5306b981549cb21a508a9b35729ecb8af6ec | [
"Apache-2.0"
] | 2 | 2019-05-12T15:14:52.000Z | 2020-05-28T07:13:34.000Z | fireant/tests/queries/test_build_orderbys.py | RobinPapke/fireant | 822a5306b981549cb21a508a9b35729ecb8af6ec | [
"Apache-2.0"
] | null | null | null | fireant/tests/queries/test_build_orderbys.py | RobinPapke/fireant | 822a5306b981549cb21a508a9b35729ecb8af6ec | [
"Apache-2.0"
] | null | null | null | from unittest import TestCase
import fireant as f
from fireant.tests.dataset.mocks import mock_dataset
from pypika import Order
timestamp_daily = f.day(mock_dataset.fields.timestamp)
class QueryBuilderOrderTests(TestCase):
maxDiff = None
def test_build_query_order_by(self):
queries = mock_dataset.q... | 41.379487 | 96 | 0.525096 | 735 | 8,069 | 5.579592 | 0.092517 | 0.091197 | 0.091197 | 0.085833 | 0.927091 | 0.927091 | 0.90417 | 0.898317 | 0.887345 | 0.87881 | 0 | 0.004171 | 0.346263 | 8,069 | 194 | 97 | 41.592784 | 0.77327 | 0 | 0 | 0.77707 | 0 | 0 | 0.21626 | 0.047837 | 0 | 0 | 0 | 0 | 0.140127 | 1 | 0.070064 | false | 0 | 0.025478 | 0 | 0.10828 | 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 |
185bd20d4f302507714238dfcb532edd28ffa04b | 155 | py | Python | src/scripts/__init__.py | arnabbiswas1/predict_future_sales | 24447c7111ca286197a0a5cf7c982aad8e38e3c8 | [
"MIT"
] | null | null | null | src/scripts/__init__.py | arnabbiswas1/predict_future_sales | 24447c7111ca286197a0a5cf7c982aad8e38e3c8 | [
"MIT"
] | null | null | null | src/scripts/__init__.py | arnabbiswas1/predict_future_sales | 24447c7111ca286197a0a5cf7c982aad8e38e3c8 | [
"MIT"
] | null | null | null | INPUT_DATA_DIR = '/home/jupyter/kaggle/predict_future_sales/data/read_only'
PROCESSED_DATA_DIR = '/home/jupyter/kaggle/predict_future_sales/data/processed' | 77.5 | 79 | 0.851613 | 23 | 155 | 5.347826 | 0.521739 | 0.113821 | 0.178862 | 0.292683 | 0.747967 | 0.747967 | 0.747967 | 0.747967 | 0.747967 | 0 | 0 | 0 | 0.032258 | 155 | 2 | 79 | 77.5 | 0.82 | 0 | 0 | 0 | 0 | 0 | 0.717949 | 0.717949 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
a186cf9d5ec94d40c4a4adede25bda48ff6e06e2 | 69,814 | py | Python | mpf/tests/test_SegmentDisplay.py | Scottacus64/mpf | fcfb6c5698b9c7d8bf0eb64b021aaa389ea6478a | [
"MIT"
] | null | null | null | mpf/tests/test_SegmentDisplay.py | Scottacus64/mpf | fcfb6c5698b9c7d8bf0eb64b021aaa389ea6478a | [
"MIT"
] | null | null | null | mpf/tests/test_SegmentDisplay.py | Scottacus64/mpf | fcfb6c5698b9c7d8bf0eb64b021aaa389ea6478a | [
"MIT"
] | null | null | null | from unittest.mock import patch, call, ANY, Mock
from mpf.core.rgb_color import RGBColor
from mpf.devices.segment_display.text_stack_entry import TextStackEntry
from mpf.devices.segment_display.transitions import NoTransition, PushTransition, CoverTransition, UncoverTransition, \
WipeTransition, TransitionRunner, ... | 61.782301 | 165 | 0.59564 | 6,834 | 69,814 | 5.86494 | 0.046971 | 0.156059 | 0.106734 | 0.125296 | 0.918041 | 0.901225 | 0.890996 | 0.868167 | 0.844116 | 0.78763 | 0 | 0.042488 | 0.279557 | 69,814 | 1,129 | 166 | 61.837024 | 0.754399 | 0.026614 | 0 | 0.719243 | 0 | 0 | 0.086134 | 0.006235 | 0 | 0 | 0 | 0 | 0.480547 | 1 | 0.017876 | false | 0 | 0.008412 | 0.002103 | 0.029443 | 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 |
a1bbe36dee1e9dbf408fac6f1fe44b95ea795144 | 19,713 | py | Python | sdk/python/pulumi_aiven/transit_gateway_vpc_attachment.py | pulumi/pulumi-aiven | 0d330ef43c17ce2d2a77588c1d9754de6c8ca736 | [
"ECL-2.0",
"Apache-2.0"
] | 7 | 2019-11-28T22:30:11.000Z | 2021-12-27T16:40:54.000Z | sdk/python/pulumi_aiven/transit_gateway_vpc_attachment.py | pulumi/pulumi-aiven | 0d330ef43c17ce2d2a77588c1d9754de6c8ca736 | [
"ECL-2.0",
"Apache-2.0"
] | 97 | 2019-12-17T09:58:57.000Z | 2022-03-31T15:19:02.000Z | sdk/python/pulumi_aiven/transit_gateway_vpc_attachment.py | pulumi/pulumi-aiven | 0d330ef43c17ce2d2a77588c1d9754de6c8ca736 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2020-11-24T12:22:38.000Z | 2020-11-24T12:22:38.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 ... | 42.947712 | 150 | 0.654188 | 2,378 | 19,713 | 5.146341 | 0.075694 | 0.089884 | 0.090374 | 0.055565 | 0.827831 | 0.794738 | 0.754453 | 0.722259 | 0.709103 | 0.68892 | 0 | 0.001748 | 0.245675 | 19,713 | 458 | 151 | 43.041485 | 0.821251 | 0.284077 | 0 | 0.562016 | 1 | 0 | 0.119404 | 0.039161 | 0 | 0 | 0 | 0 | 0 | 1 | 0.158915 | false | 0.003876 | 0.01938 | 0 | 0.275194 | 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 |
a1bfaa193bc912545c0fd5e55019b9a6827a9f1d | 148 | py | Python | myvenv/lib/python3.5/site-packages/IPython/utils/daemonize.py | tuvapp/tuvappcom | 5ca2be19f4b0c86a1d4a9553711a4da9d3f32841 | [
"MIT"
] | 6,989 | 2017-07-18T06:23:18.000Z | 2022-03-31T15:58:36.000Z | myvenv/lib/python3.5/site-packages/IPython/utils/daemonize.py | tuvapp/tuvappcom | 5ca2be19f4b0c86a1d4a9553711a4da9d3f32841 | [
"MIT"
] | 1,978 | 2017-07-18T09:17:58.000Z | 2022-03-31T14:28:43.000Z | myvenv/lib/python3.5/site-packages/IPython/utils/daemonize.py | tuvapp/tuvappcom | 5ca2be19f4b0c86a1d4a9553711a4da9d3f32841 | [
"MIT"
] | 1,228 | 2017-07-18T09:03:13.000Z | 2022-03-29T05:57:40.000Z | from warnings import warn
warn("IPython.utils.daemonize has moved to ipyparallel.apps.daemonize")
from ipyparallel.apps.daemonize import daemonize
| 29.6 | 71 | 0.837838 | 20 | 148 | 6.2 | 0.6 | 0.241935 | 0.387097 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094595 | 148 | 4 | 72 | 37 | 0.925373 | 0 | 0 | 0 | 0 | 0 | 0.425676 | 0.331081 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 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 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
c5620bfb270c629adfc67c3da28697ba55ddd514 | 160 | py | Python | glue/io/formats/fits/__init__.py | HPLegion/glue | 1843787ccb4de852dfe103ff58473da13faccf5f | [
"BSD-3-Clause"
] | 550 | 2015-01-08T13:51:06.000Z | 2022-03-31T11:54:47.000Z | glue/io/formats/fits/__init__.py | HPLegion/glue | 1843787ccb4de852dfe103ff58473da13faccf5f | [
"BSD-3-Clause"
] | 1,362 | 2015-01-03T19:15:52.000Z | 2022-03-30T13:23:11.000Z | glue/io/formats/fits/__init__.py | HPLegion/glue | 1843787ccb4de852dfe103ff58473da13faccf5f | [
"BSD-3-Clause"
] | 142 | 2015-01-08T13:08:00.000Z | 2022-03-18T13:25:57.000Z | # Data factories are already defined in glue.core.data_factories, but they will
# be moved here in future.
def setup():
from . import subset_mask # noqa
| 22.857143 | 79 | 0.73125 | 25 | 160 | 4.6 | 0.88 | 0.226087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 160 | 6 | 80 | 26.666667 | 0.898438 | 0.66875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0 | 0.5 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
3dc5004097993c64894de3c2383b631b06724217 | 2,965 | py | Python | test/test_cli.py | maxdymond/confuse | 0b076bf4fb67e1064f128a3f01bb356b7a6909b1 | [
"MIT"
] | null | null | null | test/test_cli.py | maxdymond/confuse | 0b076bf4fb67e1064f128a3f01bb356b7a6909b1 | [
"MIT"
] | null | null | null | test/test_cli.py | maxdymond/confuse | 0b076bf4fb67e1064f128a3f01bb356b7a6909b1 | [
"MIT"
] | 1 | 2019-05-26T13:34:27.000Z | 2019-05-26T13:34:27.000Z | from __future__ import division, absolute_import, print_function
import confuse
import argparse
import optparse
import unittest
class ArgparseTest(unittest.TestCase):
def setUp(self):
self.config = confuse.Configuration('test', read=False)
self.parser = argparse.ArgumentParser()
def _parse(s... | 32.582418 | 64 | 0.649916 | 359 | 2,965 | 5.153203 | 0.18663 | 0.102703 | 0.063243 | 0.077838 | 0.804324 | 0.787568 | 0.787568 | 0.787568 | 0.78 | 0.718919 | 0 | 0 | 0.192917 | 2,965 | 90 | 65 | 32.944444 | 0.773088 | 0 | 0 | 0.641791 | 0 | 0 | 0.070152 | 0 | 0 | 0 | 0 | 0 | 0.149254 | 1 | 0.238806 | false | 0 | 0.074627 | 0 | 0.373134 | 0.014925 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
3dee292e92658e796e5d703789d6faf28885aa40 | 7,716 | py | Python | self_supervised_3d_tasks/data/segmentation_task_loader.py | HyeokjuJang/self-supervised-3d-tasks | 83009a8a12074620a1723afb768bba8212e0e744 | [
"Apache-2.0"
] | null | null | null | self_supervised_3d_tasks/data/segmentation_task_loader.py | HyeokjuJang/self-supervised-3d-tasks | 83009a8a12074620a1723afb768bba8212e0e744 | [
"Apache-2.0"
] | null | null | null | self_supervised_3d_tasks/data/segmentation_task_loader.py | HyeokjuJang/self-supervised-3d-tasks | 83009a8a12074620a1723afb768bba8212e0e744 | [
"Apache-2.0"
] | null | null | null | from pathlib import Path
import numpy as np
from scipy import ndimage
from self_supervised_3d_tasks.data.generator_base import DataGeneratorBase
import os
class SegmentationGenerator3D(DataGeneratorBase):
def __init__(
self,
data_path,
file_list,
batch_size=8,
... | 39.979275 | 117 | 0.591369 | 1,035 | 7,716 | 4.137198 | 0.148792 | 0.03036 | 0.03036 | 0.021018 | 0.816207 | 0.793788 | 0.773237 | 0.757823 | 0.728164 | 0.728164 | 0 | 0.020378 | 0.300415 | 7,716 | 192 | 118 | 40.1875 | 0.772879 | 0.047952 | 0 | 0.720779 | 0 | 0 | 0.008999 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064935 | false | 0 | 0.032468 | 0 | 0.162338 | 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 |
9a847debe87c7b060fcafb2f453246990a45002d | 147 | py | Python | pyautofinance/common/observers/__init__.py | webclinic017/PyAutoFinance | 532cb1c5418dd9eeb07f2f08646170cde1fe0303 | [
"MIT"
] | null | null | null | pyautofinance/common/observers/__init__.py | webclinic017/PyAutoFinance | 532cb1c5418dd9eeb07f2f08646170cde1fe0303 | [
"MIT"
] | null | null | null | pyautofinance/common/observers/__init__.py | webclinic017/PyAutoFinance | 532cb1c5418dd9eeb07f2f08646170cde1fe0303 | [
"MIT"
] | 1 | 2022-02-24T09:18:13.000Z | 2022-02-24T09:18:13.000Z | from pyautofinance.common.observers.observer import Observer
from pyautofinance.common.observers.average_gain_per_trade import AverageGainPerTrade
| 49 | 85 | 0.904762 | 17 | 147 | 7.647059 | 0.647059 | 0.261538 | 0.353846 | 0.492308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054422 | 147 | 2 | 86 | 73.5 | 0.935252 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
9aacbe236220433ef04da59ac69ace125482e5db | 6,521 | py | Python | bpe.py | bugii/atmt | f99ccc7a8dcd081ef6ed36313185cd6b785e9a32 | [
"MIT"
] | null | null | null | bpe.py | bugii/atmt | f99ccc7a8dcd081ef6ed36313185cd6b785e9a32 | [
"MIT"
] | null | null | null | bpe.py | bugii/atmt | f99ccc7a8dcd081ef6ed36313185cd6b785e9a32 | [
"MIT"
] | null | null | null | import sentencepiece as spm
import os
def train_bpe():
spm.SentencePieceTrainer.Train(
input='baseline/preprocessed_data/train.de', model_prefix='bpe_de', vocab_size=4000)
spm.SentencePieceTrainer.Train(
input='baseline/preprocessed_data/train.en', model_prefix='bpe_en', vocab_size=4000)
d... | 35.440217 | 140 | 0.572612 | 851 | 6,521 | 4.229142 | 0.088132 | 0.137816 | 0.106696 | 0.108919 | 0.9197 | 0.918589 | 0.910809 | 0.905807 | 0.866352 | 0.863573 | 0 | 0.007647 | 0.278025 | 6,521 | 183 | 141 | 35.63388 | 0.756797 | 0.230946 | 0 | 0.718447 | 0 | 0 | 0.197192 | 0.155065 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029126 | false | 0 | 0.019417 | 0 | 0.048544 | 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 |
9ab438a07ea64f68f37101a0ab18af688a4f582e | 3,945 | py | Python | tests/test_data.py | fontaine618/MTSGL | 19dd7e540baf6519c7dd21cdfe5222339b851a06 | [
"MIT"
] | 1 | 2021-07-11T01:27:41.000Z | 2021-07-11T01:27:41.000Z | tests/test_data.py | fontaine618/MTSGL | 19dd7e540baf6519c7dd21cdfe5222339b851a06 | [
"MIT"
] | null | null | null | tests/test_data.py | fontaine618/MTSGL | 19dd7e540baf6519c7dd21cdfe5222339b851a06 | [
"MIT"
] | 1 | 2021-07-11T01:27:50.000Z | 2021-07-11T01:27:50.000Z | import unittest
import numpy as np
import pandas as pd
import MTSGL.data
class TestDfToData(unittest.TestCase):
def test_bad_y(self):
n = 10
p = 5
df = pd.DataFrame(data={
"y": np.random.normal(0, 1, n),
"w": np.random.uniform(0, 1, n),
"task": np.random.choice([0, 1, 2], n)
})
for i in range(p):... | 23.070175 | 56 | 0.556907 | 716 | 3,945 | 2.959497 | 0.099162 | 0.035866 | 0.032563 | 0.099103 | 0.829165 | 0.815479 | 0.78858 | 0.77395 | 0.726286 | 0.726286 | 0 | 0.060292 | 0.217997 | 3,945 | 170 | 57 | 23.205882 | 0.62658 | 0 | 0 | 0.734177 | 0 | 0 | 0.053232 | 0 | 0 | 0 | 0 | 0 | 0.050633 | 1 | 0.050633 | false | 0 | 0.025316 | 0 | 0.082278 | 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 |
9abea79ec6db101fe8b82b730eb7cc750a7ea38c | 8,510 | py | Python | tests/test_core/test_drawable_shapes/test_ellipse_drawable_shape.py | glipR/pygame_gui | 0cbf7056518377b455d51a8d20167f4029756ad9 | [
"MIT"
] | 339 | 2019-10-30T01:42:23.000Z | 2022-03-31T06:11:18.000Z | tests/test_core/test_drawable_shapes/test_ellipse_drawable_shape.py | glipR/pygame_gui | 0cbf7056518377b455d51a8d20167f4029756ad9 | [
"MIT"
] | 236 | 2019-10-15T18:33:06.000Z | 2022-03-03T19:18:09.000Z | tests/test_core/test_drawable_shapes/test_ellipse_drawable_shape.py | glipR/pygame_gui | 0cbf7056518377b455d51a8d20167f4029756ad9 | [
"MIT"
] | 55 | 2019-11-02T09:19:56.000Z | 2022-01-21T18:48:24.000Z | import pygame
from tests.shared_fixtures import _init_pygame, default_ui_manager, default_display_surface, \
_display_surface_return_none
from pygame_gui.core.drawable_shapes.ellipse_drawable_shape import EllipseDrawableShape
from pygame_gui.ui_manager import UIManager
from pygame_gui.core.colour_gradient import ... | 73.362069 | 108 | 0.411633 | 613 | 8,510 | 5.34584 | 0.130506 | 0.071407 | 0.122063 | 0.052182 | 0.837656 | 0.827281 | 0.827281 | 0.818126 | 0.788221 | 0.788221 | 0 | 0.034719 | 0.502468 | 8,510 | 115 | 109 | 74 | 0.739254 | 0 | 0 | 0.711538 | 0 | 0 | 0.125147 | 0 | 0 | 0 | 0 | 0 | 0.009615 | 1 | 0.076923 | false | 0 | 0.048077 | 0 | 0.134615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
9ac56f080b3b9ef41ef3b9486124e9d878a12bff | 204 | py | Python | nodenet/python/nodenet/layers/__init__.py | NOOXY-research/NodeNet | 8bf7e0c2fd0e4fae4a51b2900014004728f3c935 | [
"Apache-2.0"
] | 2 | 2018-01-31T05:52:23.000Z | 2020-08-07T19:14:18.000Z | nodenet/python/nodenet/layers/__init__.py | NOOXY-research/NodeNet | 8bf7e0c2fd0e4fae4a51b2900014004728f3c935 | [
"Apache-2.0"
] | 1 | 2017-11-22T09:39:50.000Z | 2017-11-22T09:39:50.000Z | nodenet/python/nodenet/layers/__init__.py | magneticchen/NodeNet | 8bf7e0c2fd0e4fae4a51b2900014004728f3c935 | [
"Apache-2.0"
] | null | null | null | # Create alias
from nodenet.layers.nodes import *
from nodenet.layers.nets import *
from nodenet.layers.convolutional import *
from nodenet.layers.pooling import *
from nodenet.layers.convertor import *
| 25.5 | 42 | 0.803922 | 27 | 204 | 6.074074 | 0.407407 | 0.335366 | 0.518293 | 0.560976 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 204 | 7 | 43 | 29.142857 | 0.911111 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
492b3cf477ea1d2e0e594989b096dd7dcd1bb9ec | 357 | py | Python | python/testData/inspections/PyTypeCheckerInspection/StringStartsWith.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/inspections/PyTypeCheckerInspection/StringStartsWith.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/inspections/PyTypeCheckerInspection/StringStartsWith.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | 'foo'.startswith('bar')
'foo'.startswith(('bar', 'baz'))
'foo'.startswith(<warning descr="Expected type 'Union[unicode, Tuple[unicode, ...]]', got 'int' instead">2</warning>)
u'foo'.startswith(u'bar')
u'foo'.startswith((u'bar', u'baz'))
u'foo'.startswith(<warning descr="Expected type 'Union[unicode, Tuple[unicode, ...... | 44.625 | 118 | 0.672269 | 50 | 357 | 4.8 | 0.32 | 0.325 | 0.175 | 0.208333 | 0.8375 | 0.8375 | 0.683333 | 0.683333 | 0.683333 | 0.683333 | 0 | 0.006024 | 0.070028 | 357 | 7 | 119 | 51 | 0.716867 | 0 | 0 | 0 | 0 | 0 | 0.492997 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
495b4b7842190dcf406b113a9f2a2362e077637b | 132 | py | Python | dfs/datasheets/parsers/__init__.py | shoeberto/dfs-data-tooling | fe1be744b343f18d845ddc20f2303d1dbf0d90c5 | [
"MIT"
] | null | null | null | dfs/datasheets/parsers/__init__.py | shoeberto/dfs-data-tooling | fe1be744b343f18d845ddc20f2303d1dbf0d90c5 | [
"MIT"
] | null | null | null | dfs/datasheets/parsers/__init__.py | shoeberto/dfs-data-tooling | fe1be744b343f18d845ddc20f2303d1dbf0d90c5 | [
"MIT"
] | null | null | null | from dfs.datasheets.parsers import plots
from dfs.datasheets.parsers import treatments
from dfs.datasheets.parsers import superplots | 44 | 45 | 0.871212 | 18 | 132 | 6.388889 | 0.444444 | 0.182609 | 0.443478 | 0.626087 | 0.782609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 132 | 3 | 46 | 44 | 0.950413 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
b8cec39ee2f8f1d9dd50440299cb2bd66d300d13 | 2,149 | py | Python | coreapp/migrations/0047_auto_20200329_1922.py | Quanscendence/braynai | ab828ca95571c6dffef2b2392522e6a4160a2304 | [
"MIT"
] | null | null | null | coreapp/migrations/0047_auto_20200329_1922.py | Quanscendence/braynai | ab828ca95571c6dffef2b2392522e6a4160a2304 | [
"MIT"
] | null | null | null | coreapp/migrations/0047_auto_20200329_1922.py | Quanscendence/braynai | ab828ca95571c6dffef2b2392522e6a4160a2304 | [
"MIT"
] | null | null | null | # Generated by Django 2.2 on 2020-03-29 13:52
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('coreapp', '0046_auto_20200327_2140'),
]
operations = [
migrations.AlterField(
model_name='projectbillingdaycost',
name... | 31.144928 | 50 | 0.574221 | 188 | 2,149 | 6.398936 | 0.218085 | 0.182876 | 0.228595 | 0.26517 | 0.876143 | 0.876143 | 0.83458 | 0.83458 | 0.83458 | 0.802993 | 0 | 0.035422 | 0.316892 | 2,149 | 68 | 51 | 31.602941 | 0.78406 | 0.020009 | 0 | 0.887097 | 1 | 0 | 0.193916 | 0.128802 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.016129 | 0 | 0.064516 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
b8f101527b1dd3224c18cde6e9a5aa4c17e6f161 | 13,381 | py | Python | tests/test_backoff.py | zexxonn/pynsq | c2b03879a0e088a5a93e5993cee835a9e36cdc13 | [
"MIT"
] | null | null | null | tests/test_backoff.py | zexxonn/pynsq | c2b03879a0e088a5a93e5993cee835a9e36cdc13 | [
"MIT"
] | null | null | null | tests/test_backoff.py | zexxonn/pynsq | c2b03879a0e088a5a93e5993cee835a9e36cdc13 | [
"MIT"
] | null | null | null | from __future__ import absolute_import
from __future__ import print_function
from __future__ import unicode_literals
import os
import sys
import random
import time
from mock import call
from .reader_unit_test_helpers import (
get_reader,
get_ioloop,
get_conn,
send_message
)
# shunt '..' into sys.pat... | 29.280088 | 90 | 0.607354 | 1,960 | 13,381 | 3.940306 | 0.069388 | 0.074582 | 0.076136 | 0.081186 | 0.878545 | 0.858604 | 0.842548 | 0.834779 | 0.834779 | 0.811731 | 0 | 0.025336 | 0.289141 | 13,381 | 456 | 91 | 29.344298 | 0.786585 | 0.01674 | 0 | 0.810198 | 0 | 0 | 0.056354 | 0 | 0 | 0 | 0 | 0 | 0.167139 | 1 | 0.016997 | false | 0 | 0.028329 | 0 | 0.045326 | 0.01983 | 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 |
771c28b8d8940a0b49ff2bf79d70431322892135 | 19,466 | py | Python | tests/app/main/views/test_user.py | alphagov/notify-api | 16dbafbad69e5bb179ba4b2202a7afa299c88d61 | [
"MIT"
] | 12 | 2015-10-06T08:58:28.000Z | 2016-08-08T17:51:29.000Z | tests/app/main/views/test_user.py | gds-attic/notify-api | 16dbafbad69e5bb179ba4b2202a7afa299c88d61 | [
"MIT"
] | 1 | 2015-10-27T12:01:26.000Z | 2015-10-27T12:01:26.000Z | tests/app/main/views/test_user.py | gds-attic/notify-api | 16dbafbad69e5bb179ba4b2202a7afa299c88d61 | [
"MIT"
] | 3 | 2016-05-31T17:40:15.000Z | 2021-04-10T20:03:33.000Z | from flask import json
from app import db
from app.models import User, Service
from datetime import datetime
def test_should_fetch_users_for_a_service(notify_api, notify_db, notify_db_session):
response = notify_api.test_client().get(
'/service/1234/users',
headers={
'Authorization': '... | 31.245586 | 106 | 0.570739 | 2,051 | 19,466 | 5.173086 | 0.067284 | 0.049199 | 0.042884 | 0.062677 | 0.899152 | 0.878888 | 0.8705 | 0.855419 | 0.819698 | 0.810273 | 0 | 0.035578 | 0.30114 | 19,466 | 622 | 107 | 31.29582 | 0.74434 | 0 | 0 | 0.704301 | 0 | 0 | 0.216326 | 0.044745 | 0 | 0 | 0 | 0 | 0.154122 | 1 | 0.039427 | false | 0.041219 | 0.007168 | 0 | 0.046595 | 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 |
622cfad17f6fe7c30cbbb16d776ca989279cfc37 | 70,493 | py | Python | View/gui_module.py | wilcer1/STMP | 71cd1c5ec33017db32abbd4482ea524f9d3988d4 | [
"MIT"
] | null | null | null | View/gui_module.py | wilcer1/STMP | 71cd1c5ec33017db32abbd4482ea524f9d3988d4 | [
"MIT"
] | null | null | null | View/gui_module.py | wilcer1/STMP | 71cd1c5ec33017db32abbd4482ea524f9d3988d4 | [
"MIT"
] | null | null | null | from PyQt5 import QtCore, QtGui, QtWidgets
from PyQt5.QtWidgets import *
from account import Account
class Ui_LoginScreen(object):
"""Main Login Window."""
def setupUi(self, MainWindow):
self.customer = Account.getInstance()
MainWindow.setObjectName("MainWindow")
MainWindow.resize(191... | 51.267636 | 146 | 0.65571 | 6,716 | 70,493 | 6.814324 | 0.048987 | 0.069332 | 0.08465 | 0.065028 | 0.909079 | 0.887709 | 0.864219 | 0.857249 | 0.840708 | 0.80555 | 0 | 0.03707 | 0.228519 | 70,493 | 1,374 | 147 | 51.304949 | 0.804446 | 0.000667 | 0 | 0.818998 | 0 | 0 | 0.093824 | 0.002101 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011967 | false | 0.006731 | 0.002244 | 0 | 0.020194 | 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 |
6253beff31f18027ad6198b0c497c83b483231fa | 43 | py | Python | design/singleton/__init__.py | letitgone/python-in-action | 5cd2912afdf439f575f97c5bba9bcd001bd9a6e5 | [
"MIT"
] | 1 | 2020-12-26T14:32:49.000Z | 2020-12-26T14:32:49.000Z | design/singleton/__init__.py | letitgone/python-in-action | 5cd2912afdf439f575f97c5bba9bcd001bd9a6e5 | [
"MIT"
] | null | null | null | design/singleton/__init__.py | letitgone/python-in-action | 5cd2912afdf439f575f97c5bba9bcd001bd9a6e5 | [
"MIT"
] | null | null | null | # @Author ZhangGJ
# @Date 2021/08/03 10:03
| 14.333333 | 24 | 0.674419 | 8 | 43 | 3.625 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 0.162791 | 43 | 2 | 25 | 21.5 | 0.472222 | 0.883721 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
626380aee2309abb8e6f3487162f0e3135960fe0 | 135 | py | Python | ceefax/functions/__init__.py | mscroggs/CEEFAX | 8e7a075de1809064b77360da24ebbbaa409c3bf2 | [
"MIT"
] | 1 | 2020-03-28T15:53:22.000Z | 2020-03-28T15:53:22.000Z | ceefax/functions/__init__.py | mscroggs/CEEFAX | 8e7a075de1809064b77360da24ebbbaa409c3bf2 | [
"MIT"
] | 1 | 2021-02-05T13:43:52.000Z | 2021-02-05T13:43:52.000Z | ceefax/functions/__init__.py | mscroggs/CEEFAX | 8e7a075de1809064b77360da24ebbbaa409c3bf2 | [
"MIT"
] | null | null | null | from .replacer import replace
from .strip_tags import strip_tags
def strip_tags_and_replace(txt):
return replace(strip_tags(txt))
| 22.5 | 35 | 0.807407 | 21 | 135 | 4.904762 | 0.47619 | 0.349515 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125926 | 135 | 5 | 36 | 27 | 0.872881 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.5 | 0.25 | 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 |
627bd0aa250e785ea03ec888a6dc30a75a052e47 | 7,981 | py | Python | tests/unit/test_conditions.py | Tehnode/wagtail-tag-manager | 048a03fe61b57ddd1eea0377ab26cf96527f5457 | [
"BSD-3-Clause"
] | 59 | 2018-06-13T07:30:42.000Z | 2022-03-22T02:14:34.000Z | tests/unit/test_conditions.py | Tehnode/wagtail-tag-manager | 048a03fe61b57ddd1eea0377ab26cf96527f5457 | [
"BSD-3-Clause"
] | 74 | 2018-08-09T20:52:56.000Z | 2022-03-02T08:39:30.000Z | tests/unit/test_conditions.py | Tehnode/wagtail-tag-manager | 048a03fe61b57ddd1eea0377ab26cf96527f5457 | [
"BSD-3-Clause"
] | 23 | 2018-10-10T05:29:38.000Z | 2022-01-19T15:09:51.000Z | import pytest
from tests.factories.trigger import TriggerFactory
from wagtail_tag_manager.models import TriggerCondition
@pytest.mark.django_db
def test_trigger_condition_empty():
trigger = TriggerFactory()
trigger_condition = TriggerCondition.objects.create(
variable="trigger_value", value="test", t... | 30.346008 | 76 | 0.720586 | 870 | 7,981 | 6.326437 | 0.065517 | 0.206395 | 0.147892 | 0.201672 | 0.978016 | 0.978016 | 0.978016 | 0.966025 | 0.953125 | 0.953125 | 0 | 0.004239 | 0.172284 | 7,981 | 262 | 77 | 30.461832 | 0.828943 | 0 | 0 | 0.647368 | 0 | 0 | 0.114397 | 0 | 0 | 0 | 0 | 0 | 0.194737 | 1 | 0.089474 | false | 0 | 0.015789 | 0 | 0.105263 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
65816ae87eee56a5459775d0a4763aaaedc510fd | 7,549 | py | Python | soda/core/tests/data_source/test_schema_changes.py | sodadata/soda-core | d9b98d4f6f3364c5eb8210e8288c4c861bcf8f8a | [
"Apache-2.0"
] | 4 | 2022-03-23T02:43:42.000Z | 2022-03-31T15:20:54.000Z | soda/core/tests/data_source/test_schema_changes.py | sodadata/soda-core | d9b98d4f6f3364c5eb8210e8288c4c861bcf8f8a | [
"Apache-2.0"
] | 543 | 2022-03-22T09:02:17.000Z | 2022-03-31T16:29:41.000Z | soda/core/tests/data_source/test_schema_changes.py | sodadata/soda-core | d9b98d4f6f3364c5eb8210e8288c4c861bcf8f8a | [
"Apache-2.0"
] | 1 | 2022-03-27T03:37:55.000Z | 2022-03-27T03:37:55.000Z | from soda.execution.check_outcome import CheckOutcome
from soda.execution.data_type import DataType
from tests.helpers.common_test_tables import customers_test_table
from tests.helpers.data_source_fixture import DataSourceFixture
from tests.helpers.utils import derive_schema_metric_value_from_test_table
def test_sche... | 32.965066 | 134 | 0.645913 | 855 | 7,549 | 5.354386 | 0.115789 | 0.087374 | 0.081695 | 0.085408 | 0.901922 | 0.894932 | 0.848405 | 0.833989 | 0.824814 | 0.8128 | 0 | 0.004994 | 0.283746 | 7,549 | 228 | 135 | 33.109649 | 0.841687 | 0.049543 | 0 | 0.786458 | 0 | 0 | 0.401702 | 0.055532 | 0 | 0 | 0 | 0 | 0.114583 | 1 | 0.020833 | false | 0.052083 | 0.026042 | 0 | 0.046875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 8 |
65b8702c31419523bd126762203982119ac51633 | 12,948 | py | Python | mab/gd/simplefit.py | maartenbreddels/mab | 112dcfbc4a74b07aff13d489b3776bca58fe9bdf | [
"MIT"
] | 1 | 2018-12-01T04:10:34.000Z | 2018-12-01T04:10:34.000Z | mab/gd/simplefit.py | maartenbreddels/mab | 112dcfbc4a74b07aff13d489b3776bca58fe9bdf | [
"MIT"
] | null | null | null | mab/gd/simplefit.py | maartenbreddels/mab | 112dcfbc4a74b07aff13d489b3776bca58fe9bdf | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import scipy.optimize
from numpy import *
import mab.gd.logging as logging
logger = logging.getLogger("gd.simplefit")
import emcee
from kaplot import *
#fitter = None
def lnprob(x, fitter):
print x, fitter
return fitter.logL(x)
class MCMCExplore(object):
def __init__(self, simplefit):
se... | 33.030612 | 177 | 0.679719 | 2,077 | 12,948 | 4.074145 | 0.093404 | 0.070669 | 0.056724 | 0.051643 | 0.80761 | 0.793429 | 0.777712 | 0.750886 | 0.750886 | 0.743323 | 0 | 0.032114 | 0.167902 | 12,948 | 391 | 178 | 33.11509 | 0.753295 | 0.216713 | 0 | 0.632959 | 0 | 0 | 0.008648 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.007491 | 0.018727 | null | null | 0.067416 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
65d19b1b004dbcf76666c6ac81d4f0762575accc | 19,096 | py | Python | src/serial-console/azext_serialconsole/tests/latest/test_serialconsole_scenario.py | snowei/azure-cli-extensions | 0793492083bb92b93acce008865ffb013a2d1bc9 | [
"MIT"
] | null | null | null | src/serial-console/azext_serialconsole/tests/latest/test_serialconsole_scenario.py | snowei/azure-cli-extensions | 0793492083bb92b93acce008865ffb013a2d1bc9 | [
"MIT"
] | 1 | 2020-03-09T22:34:27.000Z | 2020-03-09T22:34:27.000Z | src/serial-console/azext_serialconsole/tests/latest/test_serialconsole_scenario.py | snowei/azure-cli-extensions | 0793492083bb92b93acce008865ffb013a2d1bc9 | [
"MIT"
] | null | null | null | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | 46.349515 | 236 | 0.600021 | 2,093 | 19,096 | 5.346871 | 0.102723 | 0.07783 | 0.036994 | 0.02788 | 0.826914 | 0.818604 | 0.810383 | 0.796086 | 0.792154 | 0.788223 | 0 | 0.007595 | 0.248481 | 19,096 | 411 | 237 | 46.462287 | 0.772211 | 0.017595 | 0 | 0.759644 | 0 | 0.097923 | 0.331538 | 0.077259 | 0 | 0 | 0 | 0 | 0.077151 | 1 | 0.029674 | false | 0 | 0.04451 | 0 | 0.083086 | 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 |
02b46f7b6db5c12dd912ba128b9de4d9a7a22faa | 148 | py | Python | Toolkits/VCS/mygulamali__repo-mine/mine/models/__init__.py | roscopecoltran/SniperKit-Core | 4600dffe1cddff438b948b6c22f586d052971e04 | [
"MIT"
] | null | null | null | Toolkits/VCS/mygulamali__repo-mine/mine/models/__init__.py | roscopecoltran/SniperKit-Core | 4600dffe1cddff438b948b6c22f586d052971e04 | [
"MIT"
] | null | null | null | Toolkits/VCS/mygulamali__repo-mine/mine/models/__init__.py | roscopecoltran/SniperKit-Core | 4600dffe1cddff438b948b6c22f586d052971e04 | [
"MIT"
] | null | null | null | from mine.models.base import Base
from mine.models.commit import Commit
from mine.models.repo import Repo
from mine.models.language import Language
| 29.6 | 41 | 0.837838 | 24 | 148 | 5.166667 | 0.333333 | 0.258065 | 0.451613 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108108 | 148 | 4 | 42 | 37 | 0.939394 | 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 |
02bbda28f591a40c24a1c6c477acfbe85ef46c1b | 151 | py | Python | models/__init__.py | weihaosky/SMVmatching | 814d00530026278f3582df3849ead46b3479cc57 | [
"MIT"
] | 2 | 2021-08-06T03:39:11.000Z | 2021-08-09T06:32:18.000Z | models/__init__.py | weihaosky/SMVmatching | 814d00530026278f3582df3849ead46b3479cc57 | [
"MIT"
] | null | null | null | models/__init__.py | weihaosky/SMVmatching | 814d00530026278f3582df3849ead46b3479cc57 | [
"MIT"
] | 1 | 2021-11-15T02:27:32.000Z | 2021-11-15T02:27:32.000Z | from .basic import PSMNet as basic
from .stackhourglass import PSMNet as stackhourglass
from .stackhourglass_prob import PSMNet as stackhourglass_prob
| 37.75 | 62 | 0.860927 | 20 | 151 | 6.4 | 0.35 | 0.28125 | 0.328125 | 0.4375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119205 | 151 | 3 | 63 | 50.333333 | 0.962406 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
02c5077b37fa45b43b4824f7d4a034dc239edac5 | 3,263 | py | Python | tests/dataset_tests/test_datalayer.py | jinniuai/qlib | dc14868ae6f4694f4929b6eb6a36bb8cae703a08 | [
"MIT"
] | null | null | null | tests/dataset_tests/test_datalayer.py | jinniuai/qlib | dc14868ae6f4694f4929b6eb6a36bb8cae703a08 | [
"MIT"
] | null | null | null | tests/dataset_tests/test_datalayer.py | jinniuai/qlib | dc14868ae6f4694f4929b6eb6a36bb8cae703a08 | [
"MIT"
] | null | null | null | import unittest
import numpy as np
from qlib.data import D
from qlib.tests import TestAutoData
class TestDataset(TestAutoData):
def testCSI300(self):
close_p = D.features(D.instruments("csi300"), ["$close"])
size = close_p.groupby("datetime").size()
cnt = close_p.groupby("datetime").count(... | 50.984375 | 110 | 0.661048 | 463 | 3,263 | 4.559395 | 0.170626 | 0.015159 | 0.014211 | 0.094742 | 0.919943 | 0.919943 | 0.919943 | 0.919943 | 0.918048 | 0.918048 | 0 | 0.054105 | 0.190009 | 3,263 | 63 | 111 | 51.793651 | 0.744608 | 0.238737 | 0 | 0.75 | 0 | 0 | 0.216741 | 0 | 0 | 0 | 0 | 0.015873 | 0.25 | 1 | 0.075 | false | 0 | 0.1 | 0 | 0.2 | 0.15 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
f3045b138df80a36ad75268f3377d2f521abd8c1 | 7,165 | py | Python | posthog/models/filters/mixins/test/test_property.py | ld-rale/posthog | 0fa5b18b2e940cf5cdbe8afc733eb7e3cd4ae810 | [
"MIT"
] | null | null | null | posthog/models/filters/mixins/test/test_property.py | ld-rale/posthog | 0fa5b18b2e940cf5cdbe8afc733eb7e3cd4ae810 | [
"MIT"
] | null | null | null | posthog/models/filters/mixins/test/test_property.py | ld-rale/posthog | 0fa5b18b2e940cf5cdbe8afc733eb7e3cd4ae810 | [
"MIT"
] | null | null | null | import json
import pytest
from rest_framework.exceptions import ValidationError
from posthog.models import Filter
from posthog.models.property import Property, PropertyGroup
def test_property_group_multi_level_parsing():
filter = Filter(
data={
"properties": {
"type": "AND",
... | 34.613527 | 116 | 0.536497 | 753 | 7,165 | 4.915007 | 0.065073 | 0.181573 | 0.259389 | 0.27398 | 0.938395 | 0.920832 | 0.900027 | 0.883545 | 0.857066 | 0.853823 | 0 | 0.020735 | 0.293231 | 7,165 | 206 | 117 | 34.781553 | 0.710111 | 0 | 0 | 0.649123 | 0 | 0 | 0.139288 | 0 | 0 | 0 | 0 | 0 | 0.269006 | 1 | 0.052632 | false | 0 | 0.02924 | 0 | 0.081871 | 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 |
f3070dc6fd0695dd87b2a05adb23cca745699535 | 518 | py | Python | startup/scripts/sandbox.py | NSLS-II-ISS/profile_collection | 77e5567fa8c5b3dfb249174ce951279899b2c917 | [
"BSD-3-Clause"
] | null | null | null | startup/scripts/sandbox.py | NSLS-II-ISS/profile_collection | 77e5567fa8c5b3dfb249174ce951279899b2c917 | [
"BSD-3-Clause"
] | 22 | 2017-08-16T18:50:44.000Z | 2021-11-10T21:11:03.000Z | startup/scripts/sandbox.py | NSLS-II-ISS/profile_collection | 77e5567fa8c5b3dfb249174ce951279899b2c917 | [
"BSD-3-Clause"
] | 8 | 2016-04-01T19:46:06.000Z | 2022-01-07T20:04:42.000Z | def master_plan():
yield from bps.mvr(giantxy.x,x_range/2)
yield from bps.mvr(giantxy.y,y_range/2)
for _ in range(6):
yield from bps.mvr(giantxy.x,-x_range)
yield from bps.mvr(giantxy.y,-1)
yield from bps.mvr(giantxy.x,+x_range)
yield from bps.mvr(giantxy.y,-1)
yield from... | 37 | 46 | 0.660232 | 96 | 518 | 3.458333 | 0.166667 | 0.298193 | 0.39759 | 0.496988 | 0.927711 | 0.927711 | 0.927711 | 0.927711 | 0.927711 | 0.927711 | 0 | 0.019277 | 0.198842 | 518 | 13 | 47 | 39.846154 | 0.780723 | 0 | 0 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
b83f1d5e5656e1589a4da7857a85240be0d57150 | 1,004 | py | Python | momiji/reusables/get_member_helpers.py | Kyuunex/Momiji | a320bb901015737e4bd57c9da9a997d256689448 | [
"MIT"
] | 16 | 2019-02-12T17:16:03.000Z | 2021-07-16T05:36:06.000Z | momiji/reusables/get_member_helpers.py | Kyuunex/Momiji | a320bb901015737e4bd57c9da9a997d256689448 | [
"MIT"
] | null | null | null | momiji/reusables/get_member_helpers.py | Kyuunex/Momiji | a320bb901015737e4bd57c9da9a997d256689448 | [
"MIT"
] | 5 | 2019-12-07T10:34:36.000Z | 2021-03-05T12:21:53.000Z | def get_member_guaranteed(ctx, lookup):
if len(ctx.message.mentions) > 0:
return ctx.message.mentions[0]
if lookup.isdigit():
result = ctx.guild.get_member(int(lookup))
if result:
return result
if "#" in lookup:
result = ctx.guild.get_member_named(lookup)
... | 25.74359 | 59 | 0.606574 | 124 | 1,004 | 4.798387 | 0.201613 | 0.090756 | 0.121008 | 0.127731 | 0.884034 | 0.87395 | 0.87395 | 0.87395 | 0.87395 | 0.87395 | 0 | 0.005674 | 0.297809 | 1,004 | 38 | 60 | 26.421053 | 0.838298 | 0 | 0 | 0.733333 | 0 | 0 | 0.001992 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0 | 0 | 0.4 | 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 |
b85ada9091a5c2eb197a08b5c24f93aa36c1fcd1 | 100 | py | Python | daily_interesting/testing.py | benstreb/daily-interesting | bac71fa54a1eb4e139d38af4e22fe38a69fee2cb | [
"MIT"
] | null | null | null | daily_interesting/testing.py | benstreb/daily-interesting | bac71fa54a1eb4e139d38af4e22fe38a69fee2cb | [
"MIT"
] | null | null | null | daily_interesting/testing.py | benstreb/daily-interesting | bac71fa54a1eb4e139d38af4e22fe38a69fee2cb | [
"MIT"
] | null | null | null | from bs4 import BeautifulSoup
def parse_html(html):
return BeautifulSoup(html, "html.parser")
| 16.666667 | 45 | 0.76 | 13 | 100 | 5.769231 | 0.692308 | 0.213333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011765 | 0.15 | 100 | 5 | 46 | 20 | 0.870588 | 0 | 0 | 0 | 0 | 0 | 0.11 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.