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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
77de46cc53dd3c999d04471ca5db870a003c1380 | 1,856 | py | Python | test/pyaz/monitor/metrics/__init__.py | bigdatamoore/py-az-cli | 54383a4ee7cc77556f6183e74e992eec95b28e01 | [
"MIT"
] | null | null | null | test/pyaz/monitor/metrics/__init__.py | bigdatamoore/py-az-cli | 54383a4ee7cc77556f6183e74e992eec95b28e01 | [
"MIT"
] | 9 | 2021-09-24T16:37:24.000Z | 2021-12-24T00:39:19.000Z | test/pyaz/monitor/metrics/__init__.py | bigdatamoore/py-az-cli | 54383a4ee7cc77556f6183e74e992eec95b28e01 | [
"MIT"
] | null | null | null | import json, subprocess
from ... pyaz_utils import get_cli_name, get_params
def list(resource_namespace=None, resource_parent=None, resource_type=None, resource_group=None, resource, start_time=None, end_time=None, offset=None, interval=None, metadata=None, dimension=None, aggregation=None, metrics=None, filter=None,... | 40.347826 | 283 | 0.696659 | 231 | 1,856 | 5.506494 | 0.233766 | 0.075472 | 0.04717 | 0.044811 | 0.787736 | 0.787736 | 0.787736 | 0.787736 | 0.787736 | 0.787736 | 0 | 0.003992 | 0.190194 | 1,856 | 45 | 284 | 41.244444 | 0.842315 | 0 | 0 | 0.804878 | 0 | 0 | 0.067349 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.04878 | null | null | 0.219512 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
bb45c2e96b4ac9d457f9169b47bd7ad41205b790 | 212 | py | Python | cortex/saver/image_saver.py | chib0/asd-winter2019 | c7d95305b1e8b99013fd40da1e7ebe01c2d0102a | [
"Apache-2.0"
] | null | null | null | cortex/saver/image_saver.py | chib0/asd-winter2019 | c7d95305b1e8b99013fd40da1e7ebe01c2d0102a | [
"Apache-2.0"
] | 4 | 2021-02-02T22:38:53.000Z | 2022-01-13T02:32:33.000Z | cortex/saver/image_saver.py | chib0/asd-winter2019 | c7d95305b1e8b99013fd40da1e7ebe01c2d0102a | [
"Apache-2.0"
] | null | null | null |
def save_color_image(db, data):
db.update_snapshot(data['user'], data['timestamp'], data['result'])
def save_depth_image(db, data):
db.update_snapshot(data['user'], data['timestamp'], data['result'])
| 23.555556 | 71 | 0.688679 | 30 | 212 | 4.666667 | 0.4 | 0.1 | 0.157143 | 0.185714 | 0.828571 | 0.828571 | 0.828571 | 0.828571 | 0.828571 | 0.828571 | 0 | 0 | 0.113208 | 212 | 8 | 72 | 26.5 | 0.744681 | 0 | 0 | 0.5 | 0 | 0 | 0.180952 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
248868b27836e431985923d632b95b655ae66824 | 2,382 | py | Python | 2019/python/aoccpu/opcodes.py | orhtej2/adventofcode | d273d28e394f58face0ae9873bfe43a667e427c4 | [
"Unlicense"
] | null | null | null | 2019/python/aoccpu/opcodes.py | orhtej2/adventofcode | d273d28e394f58face0ae9873bfe43a667e427c4 | [
"Unlicense"
] | null | null | null | 2019/python/aoccpu/opcodes.py | orhtej2/adventofcode | d273d28e394f58face0ae9873bfe43a667e427c4 | [
"Unlicense"
] | null | null | null | class BreakoutException(Exception):
pass
class FunctionThrownException(Exception):
def __init__(self, outer, step):
self.outer = outer
self.step = step
def o_add(input_list, position, param1, param2, param3):
param3(input_list, input_list[position+3], True, param1(input_list, input_lis... | 39.04918 | 141 | 0.697313 | 333 | 2,382 | 4.798799 | 0.162162 | 0.253442 | 0.287234 | 0.202753 | 0.748436 | 0.748436 | 0.748436 | 0.707134 | 0.707134 | 0.707134 | 0 | 0.035494 | 0.183879 | 2,382 | 60 | 142 | 39.7 | 0.786523 | 0.102435 | 0 | 0.391304 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0.021739 | 0 | 0 | 0.478261 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
24afe3c62c29b12c5226936862c361986b33f4a4 | 77 | py | Python | __init__.py | abhijit-buet/Learning-to-Detect-Pedestrian-Flow-inTraffic-Intersections-from-Synthetic-Data | c30334f29749dde01f998c7b648c9a8b3aa38650 | [
"MIT"
] | 1 | 2020-11-26T17:01:24.000Z | 2020-11-26T17:01:24.000Z | __init__.py | abhijit-buet/Learning-to-Detect-Pedestrian-Flow-inTraffic-Intersections-from-Synthetic-Data | c30334f29749dde01f998c7b648c9a8b3aa38650 | [
"MIT"
] | null | null | null | __init__.py | abhijit-buet/Learning-to-Detect-Pedestrian-Flow-inTraffic-Intersections-from-Synthetic-Data | c30334f29749dde01f998c7b648c9a8b3aa38650 | [
"MIT"
] | null | null | null | from .dataloader import customData
#from .dataloader import customData_fiber
| 25.666667 | 41 | 0.857143 | 9 | 77 | 7.222222 | 0.555556 | 0.430769 | 0.615385 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103896 | 77 | 2 | 42 | 38.5 | 0.942029 | 0.519481 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 7 |
24b96115a998b559bd7747a253165dcc44204bf4 | 3,338 | py | Python | Python Basics/Conditional Statements/More Exercises/Task09.py | DonikaChervenkova/SoftUni | bff579c037ec48f39ed193b34bc3502a32e90732 | [
"MIT"
] | 1 | 2022-03-16T10:23:04.000Z | 2022-03-16T10:23:04.000Z | Python Basics/Conditional Statements/More Exercises/Task09.py | IvanTodorovBG/SoftUni | 7b667f6905d9f695ab1484efbb02b6715f6d569e | [
"MIT"
] | null | null | null | Python Basics/Conditional Statements/More Exercises/Task09.py | IvanTodorovBG/SoftUni | 7b667f6905d9f695ab1484efbb02b6715f6d569e | [
"MIT"
] | 1 | 2021-12-04T12:30:57.000Z | 2021-12-04T12:30:57.000Z | fuel_type = input()
fuel_amount = float(input())
club_card = input()
gasoline_price = 2.22
diesel_price = 2.33
gas_price = 0.93
if fuel_type == "Gas":
if club_card == "Yes":
if 20 <= fuel_amount <= 25:
fuel_price = fuel_amount * (gas_price - 0.08)
fuel_price = fuel_price - (fuel_pr... | 39.270588 | 62 | 0.547334 | 448 | 3,338 | 3.776786 | 0.069196 | 0.382979 | 0.322695 | 0.255319 | 0.932624 | 0.932624 | 0.932624 | 0.932624 | 0.929078 | 0.927305 | 0 | 0.0535 | 0.328041 | 3,338 | 84 | 63 | 39.738095 | 0.700847 | 0 | 0 | 0.888889 | 0 | 0 | 0.117471 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.222222 | 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 |
24f667fae77d29f5afd9e33142db60e9378ac6b2 | 119,503 | py | Python | nova/tests/unit/virt/hyperv/test_vmops.py | bopopescu/nova-token | ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2 | [
"Apache-2.0"
] | null | null | null | nova/tests/unit/virt/hyperv/test_vmops.py | bopopescu/nova-token | ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2 | [
"Apache-2.0"
] | null | null | null | nova/tests/unit/virt/hyperv/test_vmops.py | bopopescu/nova-token | ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2 | [
"Apache-2.0"
] | 2 | 2017-07-20T17:31:34.000Z | 2020-07-24T02:42:19.000Z | begin_unit
comment|'# Copyright 2014 IBM Corp.'
nl|'\n'
comment|'#'
nl|'\n'
comment|'# Licensed under the Apache License, Version 2.0 (the "License"); you may'
nl|'\n'
comment|'# not use this file except in compliance with the License. You may obtain'
nl|'\n'
comment|'# a copy of the License at'
nl|'\n'
comme... | 12.915055 | 88 | 0.632779 | 18,329 | 119,503 | 3.91347 | 0.023351 | 0.212965 | 0.078907 | 0.079632 | 0.949603 | 0.921051 | 0.878698 | 0.836805 | 0.803931 | 0.773707 | 0 | 0.001607 | 0.088684 | 119,503 | 9,252 | 89 | 12.916451 | 0.657041 | 0 | 0 | 0.95882 | 0 | 0 | 0.398626 | 0.099738 | 0 | 0 | 0 | 0 | 0.016213 | 0 | null | null | 0.001189 | 0.002918 | null | null | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
701e715db82b8bc5e8bb5750c5a19654ee0bf908 | 24,401 | py | Python | kernel.py | JeremyLinux/PTGPBO | 2ff498d1752be9f377236f5bbffd8ad433dce1b4 | [
"MIT"
] | 1 | 2020-09-29T15:54:11.000Z | 2020-09-29T15:54:11.000Z | kernel.py | JeremyLinux/PTGPBO | 2ff498d1752be9f377236f5bbffd8ad433dce1b4 | [
"MIT"
] | 2 | 2019-10-23T13:44:18.000Z | 2022-01-20T17:52:51.000Z | kernel.py | JeremyLinux/PTGPBO | 2ff498d1752be9f377236f5bbffd8ad433dce1b4 | [
"MIT"
] | 2 | 2021-01-01T18:16:54.000Z | 2022-01-20T20:34:50.000Z | import torch
import torch.nn as nn
from math import pi
class Kernel(nn.Module):
def __init__(self):
super(Kernel, self).__init__()
def __add__(self, other):
return SumKernel(self, other)
def __mul__(self, other):
return ProductKernel(self, other)
class... | 34.271067 | 83 | 0.552395 | 3,333 | 24,401 | 3.921392 | 0.024302 | 0.084698 | 0.045754 | 0.053558 | 0.906197 | 0.895945 | 0.885922 | 0.850268 | 0.82938 | 0.820735 | 0 | 0.036702 | 0.293185 | 24,401 | 712 | 84 | 34.271067 | 0.721111 | 0 | 0 | 0.833916 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.213287 | false | 0 | 0.005245 | 0.003497 | 0.333916 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
560849b3fd6adaf67cd0777960481f5c272572c4 | 6,898 | py | Python | cvnets/models/classification/config/mobilevit.py | apple/ml-cvnets | 84d992f413e52c0468f86d23196efd9dad885e6f | [
"AML"
] | 209 | 2021-10-30T08:32:10.000Z | 2022-03-31T16:18:03.000Z | cvnets/models/classification/config/mobilevit.py | apple/ml-cvnets | 84d992f413e52c0468f86d23196efd9dad885e6f | [
"AML"
] | 12 | 2021-12-04T10:47:11.000Z | 2022-03-31T15:39:40.000Z | cvnets/models/classification/config/mobilevit.py | apple/ml-cvnets | 84d992f413e52c0468f86d23196efd9dad885e6f | [
"AML"
] | 50 | 2021-11-01T08:15:02.000Z | 2022-03-29T08:17:34.000Z | #
# For licensing see accompanying LICENSE file.
# Copyright (C) 2022 Apple Inc. All Rights Reserved.
#
from typing import Dict
from utils import logger
def get_configuration(opts) -> Dict:
mode = getattr(opts, "model.classification.mit.mode", "small")
if mode is None:
logger.error("Please specify m... | 33.004785 | 98 | 0.419832 | 626 | 6,898 | 4.311502 | 0.167732 | 0.062245 | 0.066691 | 0.094479 | 0.824379 | 0.754724 | 0.726195 | 0.726195 | 0.703964 | 0.703964 | 0 | 0.05801 | 0.465207 | 6,898 | 208 | 99 | 33.163462 | 0.673624 | 0.02247 | 0 | 0.737374 | 0 | 0.010101 | 0.293234 | 0.046097 | 0 | 0 | 0 | 0 | 0 | 1 | 0.005051 | false | 0 | 0.010101 | 0 | 0.020202 | 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 |
56203fa9acf8572ac2bfdff4a8b46928dc21c9be | 23,342 | py | Python | test/features/eff_sats/fixtures_eff_sat.py | NikkaZ/dbtvault_spark | 383723cd2a35a0bc7b82fd4e77fb1eda0f68cb07 | [
"Apache-2.0"
] | null | null | null | test/features/eff_sats/fixtures_eff_sat.py | NikkaZ/dbtvault_spark | 383723cd2a35a0bc7b82fd4e77fb1eda0f68cb07 | [
"Apache-2.0"
] | null | null | null | test/features/eff_sats/fixtures_eff_sat.py | NikkaZ/dbtvault_spark | 383723cd2a35a0bc7b82fd4e77fb1eda0f68cb07 | [
"Apache-2.0"
] | null | null | null | from behave import fixture
@fixture
def eff_satellite(context):
"""
Define the structures and metadata to load effectivity satellites
"""
context.hashed_columns = {
"STG_CUSTOMER": {
"CUSTOMER_ORDER_PK": ["CUSTOMER_ID", "ORDER_ID"],
"CUSTOMER_PK": "CUSTOMER_ID",
... | 32.10729 | 108 | 0.465299 | 2,041 | 23,342 | 4.900049 | 0.032827 | 0.056694 | 0.041996 | 0.035696 | 0.982702 | 0.969703 | 0.964804 | 0.959904 | 0.948805 | 0.943406 | 0 | 0.009419 | 0.390541 | 23,342 | 726 | 109 | 32.151515 | 0.693589 | 0.027975 | 0 | 0.787462 | 0 | 0 | 0.416441 | 0.018091 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013761 | false | 0 | 0.001529 | 0 | 0.015291 | 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 |
56274fdec4e7752fdcdeea24bdae8aeb5957601a | 69 | py | Python | alesisvsysex/tests/__init__.py | wimcoelus/alesisvsysex | 2e6c75acd6082ca592eb405c69dc8e43d14aa2c5 | [
"MIT"
] | 11 | 2018-08-09T22:37:36.000Z | 2021-08-29T14:09:23.000Z | alesisvsysex/tests/__init__.py | wimcoelus/alesisvsysex | 2e6c75acd6082ca592eb405c69dc8e43d14aa2c5 | [
"MIT"
] | 12 | 2019-04-01T00:36:55.000Z | 2021-11-13T20:11:32.000Z | alesisvsysex/tests/__init__.py | wimcoelus/alesisvsysex | 2e6c75acd6082ca592eb405c69dc8e43d14aa2c5 | [
"MIT"
] | 4 | 2019-12-12T07:54:59.000Z | 2022-03-20T19:16:08.000Z | import alesisvsysex.tests.protocol
import alesisvsysex.tests.device
| 17.25 | 34 | 0.869565 | 8 | 69 | 7.5 | 0.625 | 0.6 | 0.766667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072464 | 69 | 3 | 35 | 23 | 0.9375 | 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 |
562c74e26f5e3176301ded38bf117cc47d88864c | 1,290 | py | Python | examples/compile-examples.py | JarateKing/polymorph-lib | c34b7b326ec54f73beefee95ac8522824b6fbb0c | [
"MIT"
] | 10 | 2020-04-25T21:21:10.000Z | 2022-01-16T15:13:44.000Z | examples/compile-examples.py | JarateKing/polymorph-lib | c34b7b326ec54f73beefee95ac8522824b6fbb0c | [
"MIT"
] | null | null | null | examples/compile-examples.py | JarateKing/polymorph-lib | c34b7b326ec54f73beefee95ac8522824b6fbb0c | [
"MIT"
] | 1 | 2021-04-17T04:51:46.000Z | 2021-04-17T04:51:46.000Z | import os
import random
import time
# default seed, wait in between for different seed
os.system('g++ -g -O2 -std=gnu++17 -static simple.cpp -o output/random1.exe')
time.sleep(1)
os.system('g++ -g -O2 -std=gnu++17 -static simple.cpp -o output/random2.exe')
time.sleep(1)
os.system('g++ -g -O2 -std=gnu++17 -static simpl... | 56.086957 | 156 | 0.718605 | 218 | 1,290 | 4.087156 | 0.201835 | 0.089787 | 0.10101 | 0.112233 | 0.792368 | 0.792368 | 0.792368 | 0.792368 | 0.792368 | 0.758698 | 0 | 0.113224 | 0.103101 | 1,290 | 23 | 157 | 56.086957 | 0.656871 | 0.068992 | 0 | 0.133333 | 0 | 0.466667 | 0.695071 | 0.137845 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
5654210e84123e093c823d5cfe108ddeb00f20d5 | 35 | py | Python | test.py | PANG-hans/CS305Proj | 418b6f205ebb6101ec7445e359ad5df45cfc9d44 | [
"MIT"
] | null | null | null | test.py | PANG-hans/CS305Proj | 418b6f205ebb6101ec7445e359ad5df45cfc9d44 | [
"MIT"
] | null | null | null | test.py | PANG-hans/CS305Proj | 418b6f205ebb6101ec7445e359ad5df45cfc9d44 | [
"MIT"
] | null | null | null | a:bytes = b'123456'
print(a[2:4])
| 11.666667 | 20 | 0.6 | 8 | 35 | 2.625 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.266667 | 0.142857 | 35 | 2 | 21 | 17.5 | 0.433333 | 0 | 0 | 0 | 0 | 0 | 0.171429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0.5 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 7 |
569b0377d1cc8ce17afbe78e760acb78816a4441 | 1,863 | py | Python | allocation/tests/test_adaptive_randomization.py | py-study-design/allocation | 901a3324875f5aeb3a8646ccb935daa8c77534b1 | [
"MIT"
] | 1 | 2019-07-08T13:14:43.000Z | 2019-07-08T13:14:43.000Z | allocation/tests/test_adaptive_randomization.py | py-study-design/allocation | 901a3324875f5aeb3a8646ccb935daa8c77534b1 | [
"MIT"
] | 2 | 2019-03-07T05:37:42.000Z | 2019-03-18T20:27:39.000Z | allocation/tests/test_adaptive_randomization.py | py-study-design/allocation | 901a3324875f5aeb3a8646ccb935daa8c77534b1 | [
"MIT"
] | 2 | 2019-03-07T01:30:27.000Z | 2019-09-29T15:03:53.000Z | """ Test Cases for Adaptive Randomization module
"""
import pytest
from ..adaptive_randomization import double_biased_coin_urn, double_biased_coin_minimize
def test_double_biased_coin_minimize():
""" Test Cases for double_biased_coin_minimize """
result = double_biased_coin_minimize(5, 6, 7, 8)
assert r... | 33.872727 | 88 | 0.696189 | 272 | 1,863 | 4.536765 | 0.154412 | 0.194489 | 0.259319 | 0.153971 | 0.880875 | 0.799028 | 0.753647 | 0.753647 | 0.753647 | 0.753647 | 0 | 0.037634 | 0.201288 | 1,863 | 54 | 89 | 34.5 | 0.791667 | 0.19109 | 0 | 0.5625 | 0 | 0 | 0.086253 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.0625 | false | 0 | 0.0625 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
3b417a6fba11449ad47e5ec137b6191a263350d2 | 67 | py | Python | openbadges/verifier/actions/utils.py | iankpconcentricsky/badgecheck | 4e3164ed363892dd2d5471ca814a4b554ff9e7cb | [
"Apache-2.0"
] | 28 | 2017-08-28T18:01:17.000Z | 2021-09-25T06:42:06.000Z | openbadges/verifier/actions/utils.py | iankpconcentricsky/badgecheck | 4e3164ed363892dd2d5471ca814a4b554ff9e7cb | [
"Apache-2.0"
] | 127 | 2017-03-13T18:24:21.000Z | 2017-08-24T19:29:16.000Z | openbadges/verifier/actions/utils.py | iankpconcentricsky/badgecheck | 4e3164ed363892dd2d5471ca814a4b554ff9e7cb | [
"Apache-2.0"
] | 11 | 2017-10-08T16:23:25.000Z | 2022-01-13T12:22:29.000Z | import uuid
def generate_task_key():
return uuid.uuid4().hex
| 11.166667 | 27 | 0.716418 | 10 | 67 | 4.6 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018182 | 0.179104 | 67 | 5 | 28 | 13.4 | 0.818182 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | true | 0 | 0.333333 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 8 |
3b56280530442bf77f6aa778c40f6279ed5aa055 | 45,862 | py | Python | apteco_api/api/telemetry_api.py | Apteco/apteco-api | 7440c98ab10ea6d8a5997187f6fc739ce1c75d2b | [
"Apache-2.0"
] | 2 | 2020-05-21T14:24:16.000Z | 2020-12-03T19:56:34.000Z | apteco_api/api/telemetry_api.py | Apteco/apteco-api | 7440c98ab10ea6d8a5997187f6fc739ce1c75d2b | [
"Apache-2.0"
] | null | null | null | apteco_api/api/telemetry_api.py | Apteco/apteco-api | 7440c98ab10ea6d8a5997187f6fc739ce1c75d2b | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
"""
Apteco API
An API to allow access to Apteco Marketing Suite resources # noqa: E501
The version of the OpenAPI document: v2
Contact: support@apteco.com
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import re # noqa: F401
# python ... | 51.821469 | 165 | 0.63968 | 5,434 | 45,862 | 5.117409 | 0.037725 | 0.040852 | 0.064442 | 0.020713 | 0.975654 | 0.974791 | 0.972166 | 0.970548 | 0.967455 | 0.963104 | 0 | 0.010815 | 0.286315 | 45,862 | 884 | 166 | 51.880091 | 0.838777 | 0.440081 | 0 | 0.780488 | 0 | 0 | 0.261113 | 0.090588 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036585 | false | 0 | 0.012195 | 0 | 0.085366 | 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 |
3b779bc99f94678f9f463617041ea329e7206a88 | 75,105 | py | Python | rlpyt/envs/mazeworld/mazeworld/envs/mazeworld_env.py | williamd4112/curiosity_baselines | 45939f3f24c53cfff5153ef012486a6a058660be | [
"MIT"
] | null | null | null | rlpyt/envs/mazeworld/mazeworld/envs/mazeworld_env.py | williamd4112/curiosity_baselines | 45939f3f24c53cfff5153ef012486a6a058660be | [
"MIT"
] | 3 | 2021-09-08T03:31:49.000Z | 2022-03-12T00:59:45.000Z | rlpyt/envs/mazeworld/mazeworld/envs/mazeworld_env.py | williamd4112/curiosity_baselines | 45939f3f24c53cfff5153ef012486a6a058660be | [
"MIT"
] | null | null | null | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import numpy as np
from gym import spaces
from pycolab.examples import (maze,
fiveroom,
fiveroom_whitenoise,
fiveroo... | 36.997537 | 160 | 0.563877 | 8,279 | 75,105 | 4.825704 | 0.033217 | 0.066229 | 0.044604 | 0.037845 | 0.902883 | 0.902883 | 0.900506 | 0.89963 | 0.890268 | 0.886163 | 0 | 0.024442 | 0.308714 | 75,105 | 2,029 | 161 | 37.015771 | 0.745064 | 0.060515 | 0 | 0.856709 | 0 | 0 | 0.020892 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.098361 | false | 0 | 0.004857 | 0 | 0.234366 | 0.000607 | 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 |
3b7dbe2232e7e17167a5fa43e1c968562210c417 | 54,474 | py | Python | tests/test_matrix.py | ionelmc/python-matrix | e1a63879a6c94c37c3883386f1d86eb7c2179a5b | [
"BSD-2-Clause"
] | 2 | 2015-03-09T10:22:46.000Z | 2019-06-03T12:44:44.000Z | tests/test_matrix.py | ionelmc/python-matrix | e1a63879a6c94c37c3883386f1d86eb7c2179a5b | [
"BSD-2-Clause"
] | null | null | null | tests/test_matrix.py | ionelmc/python-matrix | e1a63879a6c94c37c3883386f1d86eb7c2179a5b | [
"BSD-2-Clause"
] | 3 | 2015-03-09T07:45:22.000Z | 2021-01-25T11:37:03.000Z | import os
import sys
from pprint import pformat
from matrix import Entry
from matrix import from_file
from matrix import from_string
from matrix import parse_config
from matrix.cli import main
def here(path):
return os.path.join(os.path.dirname(__file__), path)
def strip_stupid_unicode_prefix(gunk):
if sys... | 57.522703 | 191 | 0.419686 | 4,186 | 54,474 | 5.281653 | 0.029384 | 0.134877 | 0.181103 | 0.236827 | 0.95088 | 0.943417 | 0.929395 | 0.915917 | 0.911167 | 0.902709 | 0 | 0.040672 | 0.430389 | 54,474 | 946 | 192 | 57.58351 | 0.671855 | 0 | 0 | 0.71899 | 0 | 0.009879 | 0.458072 | 0.137607 | 0 | 0 | 0 | 0 | 0.01427 | 1 | 0.016465 | false | 0 | 0.008782 | 0.001098 | 0.02854 | 0.002195 | 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 |
3b899ed220548317779a27e821e2b211b1d1047e | 789 | py | Python | CODE FILES/serial_scraper.py | magnusmel/Troubleshooting-Python-Application-Development | 3a5a29b457244d46619c4744553bce411706a30d | [
"MIT"
] | 1 | 2021-04-19T05:27:10.000Z | 2021-04-19T05:27:10.000Z | CODE FILES/serial_scraper.py | magnusmel/Troubleshooting-Python-Application-Development | 3a5a29b457244d46619c4744553bce411706a30d | [
"MIT"
] | null | null | null | CODE FILES/serial_scraper.py | magnusmel/Troubleshooting-Python-Application-Development | 3a5a29b457244d46619c4744553bce411706a30d | [
"MIT"
] | 4 | 2019-06-28T11:03:24.000Z | 2021-04-18T12:31:25.000Z | import requests
import time
results = []
urls = [
'http://www.bbc.co.uk/news/uk-44190742',
'http://www.bbc.co.uk/news/uk-44173553',
'http://www.bbc.co.uk/news/uk-england-44194146',
'http://www.bbc.co.uk/news/health-44195456',
'http://www.bbc.co.uk/news/uk-44190742',
'http://www.bbc.co.uk/news/u... | 29.222222 | 52 | 0.64512 | 132 | 789 | 3.848485 | 0.234848 | 0.165354 | 0.23622 | 0.283465 | 0.726378 | 0.726378 | 0.726378 | 0.726378 | 0.726378 | 0.726378 | 0 | 0.140173 | 0.12294 | 789 | 27 | 53 | 29.222222 | 0.593931 | 0 | 0 | 0.478261 | 0 | 0 | 0.626582 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.086957 | 0 | 0.086957 | 0.086957 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
8e70e0b0dd98fbacbe06cbf8905513a920b61a8c | 95 | py | Python | facextr/__init__.py | J77M/facextr | d13539f4816f0dfde300bd7612b18a9c06dcb3b1 | [
"MIT"
] | null | null | null | facextr/__init__.py | J77M/facextr | d13539f4816f0dfde300bd7612b18a9c06dcb3b1 | [
"MIT"
] | null | null | null | facextr/__init__.py | J77M/facextr | d13539f4816f0dfde300bd7612b18a9c06dcb3b1 | [
"MIT"
] | null | null | null | from .face_extract import *
from .garbage_recognition import *
from .face_extract_dirs import * | 31.666667 | 34 | 0.821053 | 13 | 95 | 5.692308 | 0.538462 | 0.216216 | 0.405405 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115789 | 95 | 3 | 35 | 31.666667 | 0.880952 | 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 |
8e7d0347df975259a2f052900708d9241cdb42a9 | 707 | py | Python | src/arch/x86/isa/insts/simd512/floating_point/data_conversion/vcvtsd2ss.py | jyhuang91/gem5-avx | f988da46080f8db49beb39e20af437219f3aa4cb | [
"BSD-3-Clause"
] | 2 | 2021-01-15T17:32:18.000Z | 2021-12-21T02:53:58.000Z | src/arch/x86/isa/insts/simd512/floating_point/data_conversion/vcvtsd2ss.py | jyhuang91/gem5-avx | f988da46080f8db49beb39e20af437219f3aa4cb | [
"BSD-3-Clause"
] | 3 | 2021-03-26T20:33:59.000Z | 2022-01-24T22:54:03.000Z | src/arch/x86/isa/insts/simd512/floating_point/data_conversion/vcvtsd2ss.py | jyhuang91/gem5-avx | f988da46080f8db49beb39e20af437219f3aa4cb | [
"BSD-3-Clause"
] | 3 | 2021-03-27T16:36:19.000Z | 2022-03-28T18:32:57.000Z | microcode = '''
def macroop VCVTSD2SS_XMM_XMM {
cvtf2f xmm0, xmm0m, destSize=4, srcSize=8, ext=Scalar
movfph2h xmm0, xmm0v, dataSize=4
movfp xmm1, xmm1v, dataSize=8
vclear dest=xmm2, destVL=16
};
def macroop VCVTSD2SS_XMM_M {
ldfp ufp1, seg, sib, disp, dataSize=8
cvtf2f xmm0, ufp1, destSize=4... | 26.185185 | 57 | 0.683168 | 104 | 707 | 4.586538 | 0.336538 | 0.09434 | 0.119497 | 0.138365 | 0.815514 | 0.815514 | 0.815514 | 0.815514 | 0.815514 | 0.815514 | 0 | 0.095153 | 0.212164 | 707 | 27 | 58 | 26.185185 | 0.761221 | 0 | 0 | 0.608696 | 0 | 0 | 0.973164 | 0 | 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 |
8e8d03c41085dbd8dfaa21e60ea9d3d684d9fd97 | 9,036 | py | Python | test/test_checksum.py | jdavidberger/myhdl_lib | 28a7916a1ef331c45c5b19bdd12fbbae5f76f279 | [
"MIT"
] | 14 | 2015-08-25T00:46:31.000Z | 2022-02-18T12:42:33.000Z | test/test_checksum.py | jdavidberger/myhdl_lib | 28a7916a1ef331c45c5b19bdd12fbbae5f76f279 | [
"MIT"
] | null | null | null | test/test_checksum.py | jdavidberger/myhdl_lib | 28a7916a1ef331c45c5b19bdd12fbbae5f76f279 | [
"MIT"
] | 5 | 2015-07-02T15:34:58.000Z | 2022-02-25T16:45:59.000Z | import unittest
from myhdl import *
from myhdl_lib.stream import checksum
import myhdl_lib.simulation as sim
import random
from math import log, ceil
class TestChecksum(unittest.TestCase):
@classmethod
def setUpClass(cls):
cls.simulators = ["myhdl", "icarus"]
def testRand(self):
''' C... | 39.286957 | 119 | 0.43703 | 1,010 | 9,036 | 3.746535 | 0.125743 | 0.049947 | 0.072939 | 0.079281 | 0.857294 | 0.853594 | 0.853594 | 0.853594 | 0.853594 | 0.853594 | 0 | 0.069261 | 0.445551 | 9,036 | 230 | 120 | 39.286957 | 0.686028 | 0.018924 | 0 | 0.835106 | 0 | 0 | 0.07134 | 0 | 0 | 0 | 0.00407 | 0 | 0.06383 | 1 | 0.037234 | false | 0 | 0.031915 | 0 | 0.085106 | 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 |
8ed8bb4e54a1f0b6e57cd3de17564078f1e73d50 | 153,110 | py | Python | cisco-ios-xr/ydk/models/cisco_ios_xr/_meta/_Cisco_IOS_XR_pbr_vservice_mgr_oper.py | tkamata-test/ydk-py | b637e7853a8edbbd31fbc05afa3aa4110b31c5f9 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | cisco-ios-xr/ydk/models/cisco_ios_xr/_meta/_Cisco_IOS_XR_pbr_vservice_mgr_oper.py | tkamata-test/ydk-py | b637e7853a8edbbd31fbc05afa3aa4110b31c5f9 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | cisco-ios-xr/ydk/models/cisco_ios_xr/_meta/_Cisco_IOS_XR_pbr_vservice_mgr_oper.py | tkamata-test/ydk-py | b637e7853a8edbbd31fbc05afa3aa4110b31c5f9 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null |
import re
import collections
from enum import Enum
from ydk._core._dm_meta_info import _MetaInfoClassMember, _MetaInfoClass, _MetaInfoEnum
from ydk.types import Empty, YList, YLeafList, DELETE, Decimal64, FixedBitsDict
from ydk._core._dm_meta_info import ATTRIBUTE, REFERENCE_CLASS, REFERENCE_LIST, REFERENCE_LEAFLI... | 59.161515 | 277 | 0.600464 | 13,535 | 153,110 | 6.552124 | 0.010196 | 0.075054 | 0.093817 | 0.092351 | 0.978587 | 0.974054 | 0.969915 | 0.960737 | 0.938094 | 0.905551 | 0 | 0.023005 | 0.271785 | 153,110 | 2,587 | 278 | 59.184383 | 0.77238 | 0 | 0 | 0.635043 | 0 | 0 | 0.553191 | 0.467993 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.003419 | 0 | 0.003419 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
d95f195bd1d5a3785f17fa49559a4d1d6e2cddcf | 69 | py | Python | bookstore/tests/test_archive.py | willingc/bookstore | 6f3c4133777a9084de17b7b10676474ba2d46cb3 | [
"BSD-3-Clause"
] | 1 | 2018-10-29T08:13:59.000Z | 2018-10-29T08:13:59.000Z | bookstore/tests/test_archive.py | willingc/bookstore | 6f3c4133777a9084de17b7b10676474ba2d46cb3 | [
"BSD-3-Clause"
] | null | null | null | bookstore/tests/test_archive.py | willingc/bookstore | 6f3c4133777a9084de17b7b10676474ba2d46cb3 | [
"BSD-3-Clause"
] | null | null | null | """Tests for archive"""
import pytest
def test_archive():
pass
| 9.857143 | 23 | 0.666667 | 9 | 69 | 5 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.202899 | 69 | 6 | 24 | 11.5 | 0.818182 | 0.246377 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | true | 0.333333 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 7 |
d96ca4e43286c125745406ce5d8f5f13fd0d7e8c | 189 | py | Python | ntripstreams/__init__.py | PointOneNav/ntripstreams | c26605710a53a1ebe1a16310565b5605e77228c1 | [
"MIT"
] | 2 | 2021-06-12T06:10:32.000Z | 2022-03-08T22:48:31.000Z | ntripstreams/__init__.py | PointOneNav/ntripstreams | c26605710a53a1ebe1a16310565b5605e77228c1 | [
"MIT"
] | null | null | null | ntripstreams/__init__.py | PointOneNav/ntripstreams | c26605710a53a1ebe1a16310565b5605e77228c1 | [
"MIT"
] | 5 | 2021-06-30T14:00:50.000Z | 2021-09-25T14:03:50.000Z | __all__ = ["NtripStream", "Rtcm3", "crc24q", "crcNmea"]
from ntripstreams.crc import crc24q, crcNmea
from ntripstreams.ntripstreams import NtripStream
from ntripstreams.rtcm3 import Rtcm3
| 31.5 | 55 | 0.798942 | 21 | 189 | 7 | 0.428571 | 0.326531 | 0.231293 | 0.394558 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04142 | 0.10582 | 189 | 5 | 56 | 37.8 | 0.828402 | 0 | 0 | 0 | 0 | 0 | 0.153439 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
7996290f74a6648ac7920c171a79e5a39cbcb27b | 295 | py | Python | test_calculator.py | Assaviv/demo_calculator | c4c076b827638d0b9cae1e55e86c86aa5e08d818 | [
"BSD-2-Clause"
] | null | null | null | test_calculator.py | Assaviv/demo_calculator | c4c076b827638d0b9cae1e55e86c86aa5e08d818 | [
"BSD-2-Clause"
] | null | null | null | test_calculator.py | Assaviv/demo_calculator | c4c076b827638d0b9cae1e55e86c86aa5e08d818 | [
"BSD-2-Clause"
] | null | null | null | import main
def calculate(formula) -> str:
return str(main.calculate(formula))
def test_addition():
assert calculate("1+1") == "2.0"
assert calculate("10+20") == "30.0"
def test_spaces():
assert calculate("1 + 1 ") == "2.0"
assert calculate(" 10 + 20 ") == "30.0"
| 18.4375 | 48 | 0.586441 | 41 | 295 | 4.170732 | 0.414634 | 0.350877 | 0.187135 | 0.19883 | 0.479532 | 0.479532 | 0.479532 | 0.479532 | 0.479532 | 0.479532 | 0 | 0.09607 | 0.223729 | 295 | 15 | 49 | 19.666667 | 0.650655 | 0 | 0 | 0.444444 | 0 | 0 | 0.142373 | 0 | 0 | 0 | 0 | 0 | 0.444444 | 1 | 0.333333 | false | 0 | 0.111111 | 0.111111 | 0.555556 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 7 |
79ba52e1cad45b7a55198c79c20ef9288d025c62 | 28 | py | Python | test.py | lyricqweqwe/linux | 5e79173dd0f141ed22b40c69b4bcb8e5f561041a | [
"Apache-2.0"
] | null | null | null | test.py | lyricqweqwe/linux | 5e79173dd0f141ed22b40c69b4bcb8e5f561041a | [
"Apache-2.0"
] | null | null | null | test.py | lyricqweqwe/linux | 5e79173dd0f141ed22b40c69b4bcb8e5f561041a | [
"Apache-2.0"
] | null | null | null | print('11111')
print (22222) | 14 | 14 | 0.714286 | 4 | 28 | 5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.384615 | 0.071429 | 28 | 2 | 15 | 14 | 0.384615 | 0 | 0 | 0 | 0 | 0 | 0.172414 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 7 |
8de64c090c9f072e2f40c6410c78893ba109ea4b | 10,500 | py | Python | lab_safety_web/device/views.py | Spico197/lab-safety-iot | 1d792b236b7782cc9f6468f5a44bb90deb5d8af5 | [
"MIT"
] | null | null | null | lab_safety_web/device/views.py | Spico197/lab-safety-iot | 1d792b236b7782cc9f6468f5a44bb90deb5d8af5 | [
"MIT"
] | null | null | null | lab_safety_web/device/views.py | Spico197/lab-safety-iot | 1d792b236b7782cc9f6468f5a44bb90deb5d8af5 | [
"MIT"
] | null | null | null | import datetime
from django.shortcuts import render, redirect
from django.core.paginator import Paginator
from user.models import *
from device.models import *
def device(request):
phone_number = request.session.get('phone_number', '')
if phone_number == '':
return redirect('/')
user = UserModel.... | 32.110092 | 92 | 0.623905 | 1,233 | 10,500 | 5.117599 | 0.072182 | 0.101426 | 0.055151 | 0.062758 | 0.854517 | 0.822029 | 0.806181 | 0.790808 | 0.774643 | 0.703487 | 0 | 0.002548 | 0.252381 | 10,500 | 326 | 93 | 32.208589 | 0.801274 | 0.023429 | 0 | 0.736434 | 0 | 0 | 0.129722 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027132 | false | 0 | 0.01938 | 0 | 0.127907 | 0.003876 | 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 |
5c37c9c88b76d4c8c3d3bf1ffbc739419a7c9586 | 212 | py | Python | net153/blog/tests/conftest.py | smith153/Home | 1ae7cac7e114c5bc5485b0472cd6d10ccce050c1 | [
"BSD-2-Clause"
] | null | null | null | net153/blog/tests/conftest.py | smith153/Home | 1ae7cac7e114c5bc5485b0472cd6d10ccce050c1 | [
"BSD-2-Clause"
] | null | null | null | net153/blog/tests/conftest.py | smith153/Home | 1ae7cac7e114c5bc5485b0472cd6d10ccce050c1 | [
"BSD-2-Clause"
] | null | null | null | import pytest
from .factories import PostFactory
from net153.users.tests.factories import UserFactory
@pytest.fixture
def post():
return PostFactory()
@pytest.fixture
def user():
return UserFactory()
| 15.142857 | 52 | 0.764151 | 25 | 212 | 6.48 | 0.56 | 0.185185 | 0.197531 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016667 | 0.150943 | 212 | 13 | 53 | 16.307692 | 0.883333 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | true | 0 | 0.333333 | 0.222222 | 0.777778 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 7 |
5c412d09db47d7d8cc8adfb89c3aea56723c5a45 | 6,611 | py | Python | default_args.py | locuslab/DC3 | 35437af7f22390e4ed032d9eef90cc525764d26f | [
"Apache-2.0"
] | 42 | 2021-04-28T17:52:54.000Z | 2022-03-21T10:54:47.000Z | default_args.py | locuslab/DC3 | 35437af7f22390e4ed032d9eef90cc525764d26f | [
"Apache-2.0"
] | 1 | 2021-08-18T05:42:19.000Z | 2021-08-23T03:48:18.000Z | default_args.py | locuslab/DC3 | 35437af7f22390e4ed032d9eef90cc525764d26f | [
"Apache-2.0"
] | 5 | 2021-07-15T03:32:11.000Z | 2021-12-12T20:58:23.000Z | def baseline_opt_default_args(prob_type):
defaults = {}
defaults['simpleVar'] = 100
defaults['simpleIneq'] = 50
defaults['simpleEq'] = 50
defaults['simpleEx'] = 10000
defaults['nonconvexVar'] = 100
defaults['nonconvexIneq'] = 50
defaults['nonconvexEq'] = 50
defaults['nonconvexEx'] = ... | 34.253886 | 75 | 0.586296 | 641 | 6,611 | 6.00312 | 0.098284 | 0.014813 | 0.042879 | 0.056133 | 0.976091 | 0.957121 | 0.950104 | 0.950104 | 0.950104 | 0.933472 | 0 | 0.069641 | 0.274542 | 6,611 | 193 | 76 | 34.253886 | 0.732694 | 0.028891 | 0 | 0.961538 | 0 | 0 | 0.251676 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021978 | false | 0 | 0 | 0 | 0.043956 | 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 |
30a9267695dbcdbc9472d2ba89fd942d6d70568a | 45 | py | Python | tests/test_package.py | pengutronix/pling | 6ac6bb20e0adba9155c2bd84d9a614b71006e5e0 | [
"MIT"
] | 1 | 2020-12-17T12:53:56.000Z | 2020-12-17T12:53:56.000Z | tests/test_package.py | pengutronix/pling | 6ac6bb20e0adba9155c2bd84d9a614b71006e5e0 | [
"MIT"
] | null | null | null | tests/test_package.py | pengutronix/pling | 6ac6bb20e0adba9155c2bd84d9a614b71006e5e0 | [
"MIT"
] | null | null | null | def test_package():
import pling # NOQA
| 15 | 24 | 0.666667 | 6 | 45 | 4.833333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.244444 | 45 | 2 | 25 | 22.5 | 0.852941 | 0.088889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0 | 0.5 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
eb6ac49740931d6e341be38a17688e11d61970d4 | 1,431 | py | Python | scheduler/migrations/0006_added_args_kwargs.py | Intelladon-LLC/django-rq-scheduler | 8ec71598eb701ffe47964bcf25cf3fcace2b7be3 | [
"MIT"
] | null | null | null | scheduler/migrations/0006_added_args_kwargs.py | Intelladon-LLC/django-rq-scheduler | 8ec71598eb701ffe47964bcf25cf3fcace2b7be3 | [
"MIT"
] | null | null | null | scheduler/migrations/0006_added_args_kwargs.py | Intelladon-LLC/django-rq-scheduler | 8ec71598eb701ffe47964bcf25cf3fcace2b7be3 | [
"MIT"
] | 2 | 2019-03-20T11:59:20.000Z | 2021-03-11T07:30:33.000Z | # Generated by Django 2.0.6 on 2018-07-12 11:05
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('scheduler', '0005_added_result_ttl'),
]
operations = [
migrations.AddField(
model_name='cronjob',
name='callable_arg... | 32.522727 | 87 | 0.596087 | 143 | 1,431 | 5.776224 | 0.300699 | 0.130751 | 0.16707 | 0.196126 | 0.818402 | 0.818402 | 0.818402 | 0.708232 | 0.708232 | 0.708232 | 0 | 0.042033 | 0.285115 | 1,431 | 43 | 88 | 33.27907 | 0.765396 | 0.031447 | 0 | 0.810811 | 1 | 0 | 0.150289 | 0.015173 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.027027 | 0 | 0.108108 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
ebc0fca409da701dab128b53aec799a114be78d1 | 52,274 | py | Python | video_level_code/xp_video_level_models.py | mpekalski/Y8M | 24b61107a0f482fdb36ab8b15b768cea24e5808a | [
"Apache-2.0"
] | 32 | 2017-06-16T06:12:40.000Z | 2021-09-19T17:22:02.000Z | video_level_code/xp_video_level_models.py | Kimilovesy/Y8M | 24b61107a0f482fdb36ab8b15b768cea24e5808a | [
"Apache-2.0"
] | 1 | 2018-05-21T07:52:04.000Z | 2018-05-21T07:52:04.000Z | video_level_code/xp_video_level_models.py | Kimilovesy/Y8M | 24b61107a0f482fdb36ab8b15b768cea24e5808a | [
"Apache-2.0"
] | 13 | 2017-06-11T16:45:48.000Z | 2019-12-13T15:04:45.000Z | # Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | 36.657784 | 92 | 0.637219 | 6,234 | 52,274 | 5.100257 | 0.061437 | 0.055701 | 0.050385 | 0.061582 | 0.887089 | 0.873754 | 0.863752 | 0.858594 | 0.856393 | 0.847869 | 0 | 0.029236 | 0.274343 | 52,274 | 1,425 | 93 | 36.683509 | 0.808953 | 0.218713 | 0 | 0.829545 | 0 | 0 | 0.035408 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.024793 | false | 0 | 0.009298 | 0 | 0.077479 | 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 |
cceb249c95aa1246ae216643b6521289c5c849e1 | 170 | py | Python | hf/__init__.py | zhaotudou/HeteroFusionRCNN | 0eb589c660a50c9adad14758e204a2f152ec22cd | [
"MIT"
] | 1 | 2021-08-11T12:18:25.000Z | 2021-08-11T12:18:25.000Z | hf/__init__.py | zhaotudou/HeteroFusionRCNN | 0eb589c660a50c9adad14758e204a2f152ec22cd | [
"MIT"
] | null | null | null | hf/__init__.py | zhaotudou/HeteroFusionRCNN | 0eb589c660a50c9adad14758e204a2f152ec22cd | [
"MIT"
] | 1 | 2021-08-11T12:18:30.000Z | 2021-08-11T12:18:30.000Z | import os
def root_dir():
return os.path.dirname(os.path.realpath(__file__))
def top_dir():
hf_root_dir = root_dir()
return os.path.split(hf_root_dir)[0]
| 15.454545 | 54 | 0.694118 | 29 | 170 | 3.689655 | 0.482759 | 0.261682 | 0.242991 | 0.280374 | 0.35514 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007092 | 0.170588 | 170 | 10 | 55 | 17 | 0.751773 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 0.166667 | 0.833333 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 7 |
6936759f459811de9876676e4d501a50507228ea | 13,237 | py | Python | feature_generation/parse_transcripts.py | matejMartinc/ADReSSchallenge | 679f24de02307aaac19506adf44f82330a80b82e | [
"MIT"
] | 2 | 2021-06-29T17:56:28.000Z | 2022-03-25T10:55:53.000Z | feature_generation/parse_transcripts.py | matejMartinc/ADReSSchallenge | 679f24de02307aaac19506adf44f82330a80b82e | [
"MIT"
] | null | null | null | feature_generation/parse_transcripts.py | matejMartinc/ADReSSchallenge | 679f24de02307aaac19506adf44f82330a80b82e | [
"MIT"
] | 2 | 2020-11-17T13:59:29.000Z | 2020-12-05T15:58:00.000Z | import os
from collections import defaultdict
import re
import pandas as pd
import argparse
import stanfordnlp
def generate_ud_features(sentence):
nlp = stanfordnlp.Pipeline(use_gpu=False)
doc = nlp(str(sentence))
seq = ""
for sent in doc.sentences:
for idx, dep_edge in enumerate(sent.dependen... | 42.838188 | 205 | 0.51001 | 1,450 | 13,237 | 4.515172 | 0.114483 | 0.036353 | 0.067206 | 0.051321 | 0.846189 | 0.841301 | 0.835803 | 0.835803 | 0.835803 | 0.822514 | 0 | 0.005677 | 0.334592 | 13,237 | 308 | 206 | 42.977273 | 0.737625 | 0.005213 | 0 | 0.750958 | 1 | 0 | 0.112049 | 0.016952 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019157 | false | 0.015326 | 0.022989 | 0 | 0.045977 | 0.007663 | 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 |
6950b2157041b9e51950a89e70d3d59b2972e11f | 208 | py | Python | tests/test_files/test_not_unique.py | micheller/flake8-fine-pytest | 8f16722fe97e67740f0af72b6867988ec31dfaf9 | [
"MIT"
] | 4 | 2021-01-06T02:53:06.000Z | 2022-02-24T14:11:23.000Z | tests/test_files/test_not_unique.py | micheller/flake8-fine-pytest | 8f16722fe97e67740f0af72b6867988ec31dfaf9 | [
"MIT"
] | 7 | 2020-05-12T06:49:25.000Z | 2022-03-05T05:03:25.000Z | tests/test_files/test_not_unique.py | micheller/flake8-fine-pytest | 8f16722fe97e67740f0af72b6867988ec31dfaf9 | [
"MIT"
] | 6 | 2020-06-30T14:10:33.000Z | 2020-12-21T10:19:01.000Z | import pytest
def test_not_uniq():
pass
def test_not_uniq():
pass
@pytest.mark.skip
def test_not_uniq_with_decorator():
pass
@pytest.mark.skip
def test_not_uniq_with_decorator():
pass
| 10.4 | 35 | 0.721154 | 32 | 208 | 4.3125 | 0.34375 | 0.202899 | 0.289855 | 0.405797 | 0.913043 | 0.681159 | 0.681159 | 0.681159 | 0.681159 | 0.681159 | 0 | 0 | 0.192308 | 208 | 19 | 36 | 10.947368 | 0.821429 | 0 | 0 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | true | 0.363636 | 0.090909 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 9 |
c608a7ea0b861adacf84d9c2a66fcc99e2e89261 | 378 | py | Python | listas.py | soyjherom/fundamentos_programacion | f6cba2872550fd11fa92f7b1e676a96d36293900 | [
"CC0-1.0"
] | null | null | null | listas.py | soyjherom/fundamentos_programacion | f6cba2872550fd11fa92f7b1e676a96d36293900 | [
"CC0-1.0"
] | null | null | null | listas.py | soyjherom/fundamentos_programacion | f6cba2872550fd11fa92f7b1e676a96d36293900 | [
"CC0-1.0"
] | 1 | 2021-08-21T02:41:59.000Z | 2021-08-21T02:41:59.000Z | mensaje = "Registre el nombre del estudiante "
estudiantes = []
estudiante = input(mensaje)
estudiantes.append(estudiante)
estudiante = input(mensaje)
estudiantes.append(estudiante)
estudiante = input(mensaje)
estudiantes.append(estudiante)
estudiante = input(mensaje)
estudiantes.append(estudiante)
estudiante = input(m... | 27 | 46 | 0.814815 | 39 | 378 | 7.897436 | 0.25641 | 0.243506 | 0.357143 | 0.535714 | 0.795455 | 0.795455 | 0.795455 | 0.795455 | 0.795455 | 0.795455 | 0 | 0 | 0.084656 | 378 | 13 | 47 | 29.076923 | 0.890173 | 0 | 0 | 0.769231 | 0 | 0 | 0.089947 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.076923 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
c6173bad7bc06d773eac7bc1f7c690a359df1df4 | 28,719 | py | Python | tests/__init__.py | airbus/decomon | f3668fbd8edd0def4e23aa0634eebfec58349c35 | [
"MIT"
] | 11 | 2021-11-03T12:09:50.000Z | 2022-02-20T21:42:13.000Z | tests/__init__.py | airbus/decomon | f3668fbd8edd0def4e23aa0634eebfec58349c35 | [
"MIT"
] | 1 | 2022-02-18T13:40:46.000Z | 2022-02-18T13:40:46.000Z | tests/__init__.py | airbus/decomon | f3668fbd8edd0def4e23aa0634eebfec58349c35 | [
"MIT"
] | null | null | null | from __future__ import absolute_import
import numpy as np
from tensorflow.keras import Input
from numpy.testing import assert_almost_equal
import tensorflow.python.keras.backend as K
def get_standart_values_1d_box(n, dc_decomp=True, grad_bounds=False, nb=100):
"""
:param n: A set of functions with their mono... | 29.185976 | 120 | 0.474773 | 4,872 | 28,719 | 2.3633 | 0.029351 | 0.019628 | 0.010422 | 0.05211 | 0.881709 | 0.848185 | 0.81744 | 0.804065 | 0.784957 | 0.775751 | 0 | 0.061958 | 0.369442 | 28,719 | 983 | 121 | 29.215666 | 0.573858 | 0.042063 | 0 | 0.702771 | 0 | 0 | 0.021309 | 0 | 0 | 0 | 0 | 0 | 0.044081 | 1 | 0.015113 | false | 0 | 0.006297 | 0 | 0.042821 | 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 |
d69bf6f22e61053186d2a42958a2dbcd1ff3b978 | 205 | py | Python | self_attention_cv/pos_embeddings/__init__.py | youtang1993/self-attention-cv | ae215541d3e33d39f26947924253a63585683226 | [
"MIT"
] | 1 | 2021-03-02T05:26:57.000Z | 2021-03-02T05:26:57.000Z | self_attention_cv/pos_embeddings/__init__.py | youtang1993/self-attention-cv | ae215541d3e33d39f26947924253a63585683226 | [
"MIT"
] | null | null | null | self_attention_cv/pos_embeddings/__init__.py | youtang1993/self-attention-cv | ae215541d3e33d39f26947924253a63585683226 | [
"MIT"
] | null | null | null | from .abs_pos_emb1D import AbsPosEmb1D
from .relative_embeddings_1D import rel_pos_emb_1d, RelPosEmb1D
from .relative_embeddings_2D import RelPosEmb2D
from .relative_pos_enc_qkv import Relative2DPosEncQKV
| 41 | 63 | 0.892683 | 29 | 205 | 5.896552 | 0.586207 | 0.210526 | 0.25731 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042553 | 0.082927 | 205 | 4 | 64 | 51.25 | 0.867021 | 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 |
d6af2e4e3c0720041476ea2b12c6aef5b145df06 | 157 | py | Python | pywemo/ouimeaux_device/outdoor_plug.py | sullivanmj/pywemo | 2ef78e015476f5e983c1f39eefa3f274a4685bdd | [
"MIT"
] | 102 | 2016-01-07T17:13:02.000Z | 2021-03-11T09:04:20.000Z | pywemo/ouimeaux_device/outdoor_plug.py | sullivanmj/pywemo | 2ef78e015476f5e983c1f39eefa3f274a4685bdd | [
"MIT"
] | 188 | 2015-12-31T08:50:41.000Z | 2021-03-10T16:51:26.000Z | pywemo/ouimeaux_device/outdoor_plug.py | sullivanmj/pywemo | 2ef78e015476f5e983c1f39eefa3f274a4685bdd | [
"MIT"
] | 61 | 2016-02-16T02:28:17.000Z | 2021-03-07T23:05:38.000Z | """Representation of a WeMo OutdoorPlug device."""
from .switch import Switch
class OutdoorPlug(Switch):
"""Representation of a WeMo Motion device."""
| 22.428571 | 50 | 0.732484 | 19 | 157 | 6.052632 | 0.578947 | 0.278261 | 0.295652 | 0.365217 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152866 | 157 | 6 | 51 | 26.166667 | 0.864662 | 0.535032 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 7 |
d6b32e675718832c4a1809468b06a5fe3a7be72b | 31 | py | Python | version084/driving_benchmarks/corl2017/__init__.py | PDillis/driving-benchmarks | 1614d19581d43eac9966e4001611cc8341bf5319 | [
"MIT"
] | 51 | 2018-11-28T15:30:05.000Z | 2022-03-04T12:46:58.000Z | version084/driving_benchmarks/corl2017/__init__.py | Jeffgan99/driving-benchmarks | 1614d19581d43eac9966e4001611cc8341bf5319 | [
"MIT"
] | 4 | 2019-05-08T10:58:11.000Z | 2021-09-22T13:40:05.000Z | version084/driving_benchmarks/corl2017/__init__.py | Jeffgan99/driving-benchmarks | 1614d19581d43eac9966e4001611cc8341bf5319 | [
"MIT"
] | 20 | 2019-02-10T09:41:22.000Z | 2022-02-23T14:38:58.000Z | from .corl_2017 import CoRL2017 | 31 | 31 | 0.870968 | 5 | 31 | 5.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 0.096774 | 31 | 1 | 31 | 31 | 0.642857 | 0 | 0 | 0 | 0 | 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 | 1 | 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 |
d6df09d6a542900ab8dc7a138fe023f89bed3241 | 2,615 | py | Python | discordbot/migrations/0006_auto_20201022_1804.py | rafaelurben/django-discordbot | e0297b5d59446ae3185cbfd8ff410274174941a0 | [
"MIT"
] | 10 | 2020-08-04T11:38:02.000Z | 2022-03-15T20:54:37.000Z | discordbot/migrations/0006_auto_20201022_1804.py | rafaelurben/django-discordbot | e0297b5d59446ae3185cbfd8ff410274174941a0 | [
"MIT"
] | 77 | 2020-08-04T10:17:05.000Z | 2022-03-06T16:11:34.000Z | discordbot/migrations/0006_auto_20201022_1804.py | rafaelurben/django-discordbot | e0297b5d59446ae3185cbfd8ff410274174941a0 | [
"MIT"
] | 6 | 2020-10-30T18:24:12.000Z | 2021-11-13T20:41:15.000Z | # Generated by Django 3.1.2 on 2020-10-22 16:04
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('discordbot', '0005_amongusgame_text_message_id'),
]
operations = [
migrations.AlterField(
model_name='amongusgame',
... | 35.337838 | 83 | 0.597706 | 246 | 2,615 | 6.142276 | 0.199187 | 0.158835 | 0.198544 | 0.230311 | 0.81403 | 0.81403 | 0.81403 | 0.784249 | 0 | 0 | 0 | 0.010254 | 0.291396 | 2,615 | 73 | 84 | 35.821918 | 0.805181 | 0.017208 | 0 | 0.537313 | 1 | 0 | 0.186916 | 0.012461 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.014925 | 0 | 0.059701 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
ba465caa6cc01188b62dd1ba11b67d6bc5da6abf | 30,868 | py | Python | events/element_events.py | mtasa-typescript/mtasa-wiki-dump | edea1746850fb6c99d6155d1d7891e2cceb33a5c | [
"MIT"
] | null | null | null | events/element_events.py | mtasa-typescript/mtasa-wiki-dump | edea1746850fb6c99d6155d1d7891e2cceb33a5c | [
"MIT"
] | 1 | 2021-02-24T21:50:18.000Z | 2021-02-24T21:50:18.000Z | events/element_events.py | mtasa-typescript/mtasa-wiki-dump | edea1746850fb6c99d6155d1d7891e2cceb33a5c | [
"MIT"
] | null | null | null | # Autogenerated file. ANY CHANGES WILL BE OVERWRITTEN
from to_python.core.types import FunctionType, \
FunctionArgument, \
FunctionArgumentValues, \
FunctionReturnTypes, \
FunctionSignature, \
FunctionDoc, \
EventData, \
CompoundEventData
DUMP_PARTIAL = [
CompoundEventData(
serv... | 38.730238 | 351 | 0.351659 | 1,667 | 30,868 | 6.437912 | 0.141572 | 0.063362 | 0.076034 | 0.091875 | 0.832836 | 0.819046 | 0.807119 | 0.807119 | 0.773202 | 0.747484 | 0 | 0.000541 | 0.580601 | 30,868 | 796 | 352 | 38.778894 | 0.828441 | 0.001652 | 0 | 0.749674 | 1 | 0.016949 | 0.19643 | 0.011228 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.001304 | 0 | 0.001304 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
ba500b9f93f1f75c4b5871d32b4dd0cf28627abb | 710 | py | Python | Connect-Four-Game/server/test.py | MoamenSoroor/Connect-Four-Game | 3d79adbde8c3987377313d03159aa0ff4d4983aa | [
"MIT"
] | null | null | null | Connect-Four-Game/server/test.py | MoamenSoroor/Connect-Four-Game | 3d79adbde8c3987377313d03159aa0ff4d4983aa | [
"MIT"
] | null | null | null | Connect-Four-Game/server/test.py | MoamenSoroor/Connect-Four-Game | 3d79adbde8c3987377313d03159aa0ff4d4983aa | [
"MIT"
] | null | null | null |
mat = [[x for x in range(4)],
[x for x in range(4,8)],
[x for x in range(8,12)],
[x for x in range(12,16)]]
print(mat)
d = 4
for k in range(0,d):
print("d: ",end=" ")
row , col = range(0,k + 1), range(k,-1,-1)
for i,j in zip(row,col):
print(mat[i][j],end =" ")
... | 21.515152 | 54 | 0.435211 | 132 | 710 | 2.340909 | 0.151515 | 0.158576 | 0.064725 | 0.090615 | 0.902913 | 0.825243 | 0.711974 | 0.711974 | 0.711974 | 0.711974 | 0 | 0.055085 | 0.335211 | 710 | 33 | 55 | 21.515152 | 0.599576 | 0 | 0 | 0.625 | 0 | 0 | 0.022124 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.416667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 7 |
baabcee16847dad5f5c885a6b1b3bc696f21b07c | 4,059 | py | Python | z2/part2/interactive/jm/random_normal_1/777411348.py | kozakusek/ipp-2020-testy | 09aa008fa53d159672cc7cbf969a6b237e15a7b8 | [
"MIT"
] | 1 | 2020-04-16T12:13:47.000Z | 2020-04-16T12:13:47.000Z | z2/part2/interactive/jm/random_normal_1/777411348.py | kozakusek/ipp-2020-testy | 09aa008fa53d159672cc7cbf969a6b237e15a7b8 | [
"MIT"
] | 18 | 2020-03-06T17:50:15.000Z | 2020-05-19T14:58:30.000Z | z2/part2/interactive/jm/random_normal_1/777411348.py | kozakusek/ipp-2020-testy | 09aa008fa53d159672cc7cbf969a6b237e15a7b8 | [
"MIT"
] | 18 | 2020-03-06T17:45:13.000Z | 2020-06-09T19:18:31.000Z | from part1 import (
gamma_board,
gamma_busy_fields,
gamma_delete,
gamma_free_fields,
gamma_golden_move,
gamma_golden_possible,
gamma_move,
gamma_new,
)
"""
scenario: test_random_actions
uuid: 777411348
"""
"""
random actions, total chaos
"""
board = gamma_new(4, 6, 5, 2)
assert board is... | 30.75 | 44 | 0.651392 | 748 | 4,059 | 3.385027 | 0.054813 | 0.35624 | 0.414692 | 0.552923 | 0.800158 | 0.786335 | 0.703002 | 0.528041 | 0.445498 | 0.415087 | 0 | 0.130408 | 0.18576 | 4,059 | 131 | 45 | 30.984733 | 0.635703 | 0 | 0 | 0.295652 | 0 | 0 | 0.018131 | 0 | 0 | 0 | 0 | 0 | 0.756522 | 1 | 0 | false | 0 | 0.008696 | 0 | 0.008696 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
245293fbcfc13f33936b1553865a396e8f15bae3 | 133 | py | Python | examples/dict.update/ex3.py | mcorne/python-by-example | 15339c0909c84b51075587a6a66391100971c033 | [
"MIT"
] | null | null | null | examples/dict.update/ex3.py | mcorne/python-by-example | 15339c0909c84b51075587a6a66391100971c033 | [
"MIT"
] | null | null | null | examples/dict.update/ex3.py | mcorne/python-by-example | 15339c0909c84b51075587a6a66391100971c033 | [
"MIT"
] | null | null | null | # d.update((['two', 'II'], ['four', 4]))
d = {'one': 1, 'two': 2, 'three': 3}
print(d.update((['two', 'II'], ['four', 4])))
print(d)
| 26.6 | 45 | 0.451128 | 22 | 133 | 2.727273 | 0.545455 | 0.233333 | 0.333333 | 0.4 | 0.566667 | 0.566667 | 0 | 0 | 0 | 0 | 0 | 0.043478 | 0.135338 | 133 | 4 | 46 | 33.25 | 0.478261 | 0.285714 | 0 | 0 | 0 | 0 | 0.215054 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.666667 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 7 |
030889bb18b3d10a9678dde5f9838c3287e73d92 | 84 | py | Python | URI/1 - INICIANTE/Python/1019 - ConversaoTempo.py | william-james-pj/LogicaProgramacao | 629f746e34da2e829dc7ea2e489ac36bb1b1fb13 | [
"MIT"
] | 1 | 2020-04-14T16:48:16.000Z | 2020-04-14T16:48:16.000Z | URI/1 - INICIANTE/Python/1019 - ConversaoTempo.py | william-james-pj/LogicaProgramacao | 629f746e34da2e829dc7ea2e489ac36bb1b1fb13 | [
"MIT"
] | null | null | null | URI/1 - INICIANTE/Python/1019 - ConversaoTempo.py | william-james-pj/LogicaProgramacao | 629f746e34da2e829dc7ea2e489ac36bb1b1fb13 | [
"MIT"
] | null | null | null | s = int(input())
print('{}:{}:{}'.format(s//3600, (s - (3600*(s//3600)))//60,s%60)) | 28 | 66 | 0.47619 | 14 | 84 | 2.857143 | 0.5 | 0.375 | 0.3 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.207792 | 0.083333 | 84 | 3 | 66 | 28 | 0.311688 | 0 | 0 | 0 | 0 | 0 | 0.094118 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 8 |
301450ee5c0a83ecae49eb50791998c00aeeca93 | 6,231 | py | Python | envs/environments.py | hpi-sam/rl-4-self-repair | 8a33b133346bf49a9398a024d8cdb59357a61653 | [
"MIT"
] | null | null | null | envs/environments.py | hpi-sam/rl-4-self-repair | 8a33b133346bf49a9398a024d8cdb59357a61653 | [
"MIT"
] | 19 | 2020-05-26T10:25:39.000Z | 2020-07-04T21:43:38.000Z | envs/environments.py | hpi-sam/bandits-4-self-repair | 6d30b37162c37b322d9ad27bc043bf567a3631cc | [
"MIT"
] | 1 | 2022-01-06T08:47:09.000Z | 2022-01-06T08:47:09.000Z | import sys
def check_environment(data_generation: str, take_component_id: bool, transformation: str, distinguishable: bool):
component_selector = 'Optimal_Affected_Component_Uid' if take_component_id else 'Optimal_Affected_Component'
if (data_generation, component_selector, transformation, distinguishable) in... | 6,231 | 6,231 | 0.595571 | 551 | 6,231 | 6.373866 | 0.116152 | 0.290433 | 0.464692 | 0.330581 | 0.843109 | 0.830296 | 0 | 0 | 0 | 0 | 0 | 0.007262 | 0.248596 | 6,231 | 1 | 6,231 | 6,231 | 0.742845 | 0.021505 | 0 | 0 | 0 | 0 | 0.474643 | 0.318398 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012658 | false | 0 | 0.012658 | 0 | 0.037975 | 0.012658 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
3029302cf83f4af88c41c6729f4e46a399ae4581 | 1,146 | py | Python | seq2seq_construction/__init__.py | HKUNLP/UnifiedSKG | 49a2ff950bb312b980c22ad72b11520db72ab6a3 | [
"Apache-2.0"
] | 191 | 2021-12-14T11:33:09.000Z | 2022-03-31T09:20:41.000Z | seq2seq_construction/__init__.py | HKUNLP/UnifiedSKG | 49a2ff950bb312b980c22ad72b11520db72ab6a3 | [
"Apache-2.0"
] | 7 | 2022-01-20T05:41:51.000Z | 2022-03-20T06:43:22.000Z | seq2seq_construction/__init__.py | HKUNLP/UnifiedSKG | 49a2ff950bb312b980c22ad72b11520db72ab6a3 | [
"Apache-2.0"
] | 22 | 2021-12-14T12:59:42.000Z | 2022-03-29T03:45:51.000Z | #
# class TrainDataset(Dataset):
#
# def __init__(self, args, raw_datasets):
# # This tab processor is for table truncation and linearize.
# self.raw_datasets = raw_datasets
#
# def __getitem__(self, index) -> T_co:
# raw_data = self.raw_datasets[index]
#
# return raw_data.update... | 31.833333 | 98 | 0.652705 | 149 | 1,146 | 4.610738 | 0.214765 | 0.19214 | 0.131004 | 0.078603 | 0.94032 | 0.94032 | 0.94032 | 0.94032 | 0.94032 | 0.94032 | 0 | 0 | 0.220768 | 1,146 | 35 | 99 | 32.742857 | 0.769317 | 0.935428 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 8 |
305ad4050f818049a1511d47ae9eef221e847fe9 | 12,906 | py | Python | tests/unit/test_build_helper.py | IceWreck/packit-service | ab8a3ae7b7f078f4a5bf3465516c1abc894fe3dc | [
"MIT"
] | null | null | null | tests/unit/test_build_helper.py | IceWreck/packit-service | ab8a3ae7b7f078f4a5bf3465516c1abc894fe3dc | [
"MIT"
] | null | null | null | tests/unit/test_build_helper.py | IceWreck/packit-service | ab8a3ae7b7f078f4a5bf3465516c1abc894fe3dc | [
"MIT"
] | null | null | null | import pytest
from flexmock import flexmock
from packit.config import PackageConfig, JobConfig, JobType, JobConfigTriggerType
from packit.config.aliases import ALIASES
from packit.config.job_config import JobMetadataConfig
from packit_service.service.events import TheJobTriggerType
from packit_service.worker.build.cop... | 35.358904 | 86 | 0.544166 | 996 | 12,906 | 6.74498 | 0.086345 | 0.078595 | 0.156892 | 0.113129 | 0.850551 | 0.8376 | 0.82078 | 0.798898 | 0.784311 | 0.717327 | 0 | 0.001385 | 0.384395 | 12,906 | 364 | 87 | 35.456044 | 0.844179 | 0.003099 | 0 | 0.757062 | 0 | 0 | 0.068097 | 0.054571 | 0 | 0 | 0 | 0 | 0.022599 | 1 | 0.00565 | false | 0 | 0.022599 | 0 | 0.028249 | 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 |
0644af6721b18cac036b53f4844564ec3a798a96 | 220 | py | Python | Codewars/8kyu/convert-a-string-to-a-number/Python/test.py | RevansChen/online-judge | ad1b07fee7bd3c49418becccda904e17505f3018 | [
"MIT"
] | 7 | 2017-09-20T16:40:39.000Z | 2021-08-31T18:15:08.000Z | Codewars/8kyu/convert-a-string-to-a-number/Python/test.py | RevansChen/online-judge | ad1b07fee7bd3c49418becccda904e17505f3018 | [
"MIT"
] | null | null | null | Codewars/8kyu/convert-a-string-to-a-number/Python/test.py | RevansChen/online-judge | ad1b07fee7bd3c49418becccda904e17505f3018 | [
"MIT"
] | null | null | null | # Python - 3.6.0
test.assert_equals(string_to_number('1234'), 1234)
test.assert_equals(string_to_number('605'), 605)
test.assert_equals(string_to_number('1405'), 1405)
test.assert_equals(string_to_number('1234'), 1234)
| 31.428571 | 50 | 0.777273 | 36 | 220 | 4.416667 | 0.361111 | 0.251572 | 0.402516 | 0.553459 | 0.855346 | 0.855346 | 0.477987 | 0.477987 | 0 | 0 | 0 | 0.15942 | 0.059091 | 220 | 6 | 51 | 36.666667 | 0.608696 | 0.063636 | 0 | 0.5 | 0 | 0 | 0.073529 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
067d0638bf8bdbe8010c7fd360175835490c6b45 | 28,903 | py | Python | tests/api/symbol/r_api_test.py | NetApp/santricity-webapi-pythonsdk | 1d3df4a00561192f4cdcdd1890f4d27547ed2de2 | [
"BSD-3-Clause-Clear"
] | 5 | 2016-08-23T17:52:22.000Z | 2019-05-16T08:45:30.000Z | tests/api/symbol/r_api_test.py | NetApp/santricity-webapi-pythonsdk | 1d3df4a00561192f4cdcdd1890f4d27547ed2de2 | [
"BSD-3-Clause-Clear"
] | 2 | 2016-11-10T05:30:21.000Z | 2019-04-05T15:03:37.000Z | tests/api/symbol/r_api_test.py | NetApp/santricity-webapi-pythonsdk | 1d3df4a00561192f4cdcdd1890f4d27547ed2de2 | [
"BSD-3-Clause-Clear"
] | 7 | 2016-08-25T16:11:44.000Z | 2021-02-22T05:31:25.000Z | #!/usr/bin/env python
# coding: utf-8
"""
r_api_test.py
The Clear BSD License
Copyright (c) – 2016, NetApp, Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted (subject to the limitations in the disclaimer below) provided that the follow... | 41.767341 | 844 | 0.593814 | 4,097 | 28,903 | 4.0227 | 0.063217 | 0.068928 | 0.045628 | 0.034221 | 0.894363 | 0.874462 | 0.86718 | 0.86718 | 0.86718 | 0.864875 | 0 | 0.005224 | 0.344359 | 28,903 | 691 | 845 | 41.827786 | 0.864433 | 0.339688 | 0 | 0.793249 | 0 | 0 | 0.019029 | 0 | 0 | 0 | 0 | 0 | 0.099156 | 1 | 0.099156 | false | 0 | 0.006329 | 0 | 0.107595 | 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 |
06b1a4dd35f71d1c8b2960fccfc7d9ec895936c6 | 597,628 | py | Python | debug/endpoints_old.py | gabelev/MISMI | b3d34632e491d9c96824f9a58cabc093755d8b83 | [
"MIT"
] | null | null | null | debug/endpoints_old.py | gabelev/MISMI | b3d34632e491d9c96824f9a58cabc093755d8b83 | [
"MIT"
] | null | null | null | debug/endpoints_old.py | gabelev/MISMI | b3d34632e491d9c96824f9a58cabc093755d8b83 | [
"MIT"
] | null | null | null | Search_Amish={
'Amish+Romance':['http://www.amazon.com/s/ref=sr_pg_5?rh=i%3Aaps%2Ck%3AAmish+Romance&page=1','http://www.amazon.com/s/ref=sr_pg_5?rh=i%3Aaps%2Ck%3AAmish+Romance&page=2','http://www.amazon.com/s/ref=sr_pg_5?rh=i%3Aaps%2Ck%3AAmish+Romance&page=3','http://www.amazon.com/s/ref=sr_pg_5?rh=i%3Aaps%2Ck%3AAmish+... | 2,104.323944 | 9,623 | 0.784455 | 111,501 | 597,628 | 4.105694 | 0.004466 | 0.09303 | 0.17277 | 0.212639 | 0.994663 | 0.992855 | 0.991983 | 0.991926 | 0.990989 | 0.979593 | 0 | 0.224683 | 0.000474 | 597,628 | 283 | 9,624 | 2,111.759717 | 0.54169 | 0 | 0 | 0.035971 | 0 | 21.309353 | 0.96662 | 0.005365 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 12 |
233361baa094e87b49281518ae0c449ec4c17cfd | 47 | py | Python | localpdb/plugins/__init__.py | labstructbioinf/localpdb | 870feca6256487c27a64e8bd5121f47d9618469c | [
"MIT"
] | 28 | 2020-05-25T17:28:28.000Z | 2022-03-29T21:18:13.000Z | localpdb/plugins/__init__.py | labstructbioinf/localpdb | 870feca6256487c27a64e8bd5121f47d9618469c | [
"MIT"
] | 10 | 2021-04-30T10:15:46.000Z | 2021-11-18T15:03:01.000Z | localpdb/plugins/__init__.py | labstructbioinf/localpdb | 870feca6256487c27a64e8bd5121f47d9618469c | [
"MIT"
] | 1 | 2022-02-25T08:24:49.000Z | 2022-02-25T08:24:49.000Z | from .PluginVersioneer import PluginVersioneer
| 23.5 | 46 | 0.893617 | 4 | 47 | 10.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085106 | 47 | 1 | 47 | 47 | 0.976744 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
88fd6b650bce345158dcbc7062d16afc4ababea6 | 67 | py | Python | perses/utils/__init__.py | schallerdavid/perses | 58bd6e626e027879e136f56e175683893e016f8c | [
"MIT"
] | 99 | 2016-01-19T18:10:37.000Z | 2022-03-26T02:43:08.000Z | perses/utils/__init__.py | schallerdavid/perses | 58bd6e626e027879e136f56e175683893e016f8c | [
"MIT"
] | 878 | 2015-09-18T19:25:30.000Z | 2022-03-31T02:33:04.000Z | perses/utils/__init__.py | schallerdavid/perses | 58bd6e626e027879e136f56e175683893e016f8c | [
"MIT"
] | 30 | 2015-09-21T15:26:35.000Z | 2022-01-10T20:07:24.000Z | from perses.utils.data import *
from perses.utils.openeye import *
| 22.333333 | 34 | 0.791045 | 10 | 67 | 5.3 | 0.6 | 0.377358 | 0.566038 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119403 | 67 | 2 | 35 | 33.5 | 0.898305 | 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 |
cc82030a525a6c63ceffdd899fe12660dd09c66c | 15,361 | py | Python | pymc3/sampling_jax.py | roblem/pymc3 | 460b6c8876c3fe9046e25984cec49d018ebc6d3a | [
"Apache-2.0"
] | null | null | null | pymc3/sampling_jax.py | roblem/pymc3 | 460b6c8876c3fe9046e25984cec49d018ebc6d3a | [
"Apache-2.0"
] | null | null | null | pymc3/sampling_jax.py | roblem/pymc3 | 460b6c8876c3fe9046e25984cec49d018ebc6d3a | [
"Apache-2.0"
] | null | null | null | # pylint: skip-file
import os
import re
import warnings
import pdb as pdb
xla_flags = os.getenv("XLA_FLAGS", "").lstrip("--")
xla_flags = re.sub(r"xla_force_host_platform_device_count=.+\s", "", xla_flags).split()
os.environ["XLA_FLAGS"] = " ".join(["--xla_force_host_platform_device_count={}".format(100)])
import arv... | 33.612691 | 123 | 0.633878 | 2,049 | 15,361 | 4.468521 | 0.117618 | 0.039318 | 0.022936 | 0.012014 | 0.827763 | 0.816514 | 0.807339 | 0.785714 | 0.774356 | 0.767256 | 0 | 0.020486 | 0.262743 | 15,361 | 456 | 124 | 33.686404 | 0.787991 | 0.108261 | 0 | 0.749216 | 0 | 0 | 0.033694 | 0.006033 | 0 | 0 | 0 | 0 | 0 | 1 | 0.059561 | false | 0 | 0.068966 | 0.015674 | 0.188088 | 0.037618 | 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 |
cca604f4324012c9d7b9b8bf30fd944d607581f8 | 74,582 | py | Python | yardstick/tests/unit/network_services/vnf_generic/vnf/test_vpp_helpers.py | upfront710/yardstick | 2c3898f2ca061962cedbfc7435f78b59aa39b097 | [
"Apache-2.0"
] | 28 | 2017-02-07T07:46:42.000Z | 2021-06-30T08:11:06.000Z | yardstick/tests/unit/network_services/vnf_generic/vnf/test_vpp_helpers.py | upfront710/yardstick | 2c3898f2ca061962cedbfc7435f78b59aa39b097 | [
"Apache-2.0"
] | 6 | 2018-01-18T08:00:54.000Z | 2019-04-11T04:51:41.000Z | yardstick/tests/unit/network_services/vnf_generic/vnf/test_vpp_helpers.py | upfront710/yardstick | 2c3898f2ca061962cedbfc7435f78b59aa39b097 | [
"Apache-2.0"
] | 46 | 2016-12-13T10:05:47.000Z | 2021-02-18T07:33:06.000Z | # Copyright (c) 2019 Viosoft Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 43.261021 | 92 | 0.508313 | 7,936 | 74,582 | 4.405368 | 0.05872 | 0.041189 | 0.035554 | 0.054947 | 0.903006 | 0.874432 | 0.843225 | 0.815966 | 0.799605 | 0.784045 | 0 | 0.045576 | 0.389853 | 74,582 | 1,723 | 93 | 43.286129 | 0.722696 | 0.007522 | 0 | 0.705577 | 0 | 0.003243 | 0.172227 | 0.027727 | 0 | 0 | 0 | 0 | 0.082361 | 1 | 0.060311 | false | 0.002594 | 0.005188 | 0 | 0.072633 | 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 |
aea248ff823554edb3b306812ae026692af6f335 | 186 | py | Python | task_3.py | andriidem308/homework_10 | 7285a86a1f5ebabcfa19f53b2884ac477a82b6f8 | [
"MIT"
] | null | null | null | task_3.py | andriidem308/homework_10 | 7285a86a1f5ebabcfa19f53b2884ac477a82b6f8 | [
"MIT"
] | 1 | 2021-04-12T13:18:51.000Z | 2021-04-12T13:18:51.000Z | task_3.py | andriidem308/homework_10 | 7285a86a1f5ebabcfa19f53b2884ac477a82b6f8 | [
"MIT"
] | null | null | null | def three_highest(cars):
return sorted(cars, key=lambda car: car.dimensions[2], reverse=True)[:3]
def three_fastest(cars):
return sorted(cars, key=lambda car: car.to100km)[:3]
| 26.571429 | 76 | 0.715054 | 29 | 186 | 4.517241 | 0.551724 | 0.122137 | 0.244275 | 0.305344 | 0.534351 | 0.534351 | 0.534351 | 0.534351 | 0 | 0 | 0 | 0.037267 | 0.134409 | 186 | 6 | 77 | 31 | 0.776398 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 7 |
4e3d3a81a1a955afbec59f1ff803f5f69af7b74e | 168 | py | Python | lambda-code/decompress_gz/lambda_function.py | aws-samples/amazon-s3-object-lambda-decompression | ebe3851d5f0f867863e5efa73ff8e089c2581d9d | [
"MIT-0"
] | 5 | 2021-04-06T14:37:49.000Z | 2022-01-04T13:41:01.000Z | lambda-code/decompress_gz/lambda_function.py | aws-samples/amazon-s3-object-lambda-decompression | ebe3851d5f0f867863e5efa73ff8e089c2581d9d | [
"MIT-0"
] | null | null | null | lambda-code/decompress_gz/lambda_function.py | aws-samples/amazon-s3-object-lambda-decompression | ebe3851d5f0f867863e5efa73ff8e089c2581d9d | [
"MIT-0"
] | 2 | 2021-04-19T13:51:14.000Z | 2021-06-10T18:54:04.000Z | import gzip
import common_functions
def decompress(event, context):
return common_functions.decompress(event, lambda data:gzip.GzipFile(fileobj=data, mode="rb"))
| 28 | 98 | 0.791667 | 22 | 168 | 5.954545 | 0.681818 | 0.229008 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107143 | 168 | 5 | 99 | 33.6 | 0.873333 | 0 | 0 | 0 | 0 | 0 | 0.011905 | 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 |
9d6cfe627c7a7190494b8df9c7062738dbb076f8 | 23 | py | Python | pythonAlgorithm/breadthsearch/Test.py | Sky-zzt/lintcodePractice | d6436b296c5865d85e55c8ad4fcdbb0165d4ebb1 | [
"MIT"
] | 1 | 2020-09-15T07:58:55.000Z | 2020-09-15T07:58:55.000Z | pythonAlgorithm/breadthsearch/Test.py | Sky-zzt/lintcodePractice | d6436b296c5865d85e55c8ad4fcdbb0165d4ebb1 | [
"MIT"
] | null | null | null | pythonAlgorithm/breadthsearch/Test.py | Sky-zzt/lintcodePractice | d6436b296c5865d85e55c8ad4fcdbb0165d4ebb1 | [
"MIT"
] | null | null | null | print(100000 * 100000)
| 11.5 | 22 | 0.73913 | 3 | 23 | 5.666667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.6 | 0.130435 | 23 | 1 | 23 | 23 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 7 |
9dad62f4bd5f01b29292c508ddb9d7c7ee4be1b6 | 459 | py | Python | seleniumbase/translate/__init__.py | AndriiMykytiuk/SeleniumBase | d675f19ca8c8550607a0da1305704772eec34fa8 | [
"MIT"
] | 2,745 | 2016-07-20T09:13:15.000Z | 2022-03-29T15:07:31.000Z | seleniumbase/translate/__init__.py | AndriiMykytiuk/SeleniumBase | d675f19ca8c8550607a0da1305704772eec34fa8 | [
"MIT"
] | 384 | 2016-07-17T20:45:26.000Z | 2022-03-31T22:35:35.000Z | seleniumbase/translate/__init__.py | AndriiMykytiuk/SeleniumBase | d675f19ca8c8550607a0da1305704772eec34fa8 | [
"MIT"
] | 704 | 2016-07-17T20:47:04.000Z | 2022-03-31T04:32:35.000Z | from seleniumbase.translate import chinese # noqa
from seleniumbase.translate import dutch # noqa
from seleniumbase.translate import french # noqa
from seleniumbase.translate import italian # noqa
from seleniumbase.translate import japanese # noqa
from seleniumbase.translate import korean # noqa
from seleniumbase... | 45.9 | 53 | 0.823529 | 54 | 459 | 7 | 0.259259 | 0.380952 | 0.595238 | 0.738095 | 0.740741 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137255 | 459 | 9 | 54 | 51 | 0.954545 | 0.095861 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
9dd406089c86ab43d2d7605bfa6f82a5c9d5d7a0 | 4,707 | py | Python | sys/controller/ImageHelper.py | frankdede/CMPUT410W14T07 | 18b88ae8d12459eeb0073c48e0708fb2b175b9ba | [
"Apache-2.0"
] | 1 | 2017-01-04T11:55:21.000Z | 2017-01-04T11:55:21.000Z | sys/controller/ImageHelper.py | frankdede/CMPUT410W14T07 | 18b88ae8d12459eeb0073c48e0708fb2b175b9ba | [
"Apache-2.0"
] | null | null | null | sys/controller/ImageHelper.py | frankdede/CMPUT410W14T07 | 18b88ae8d12459eeb0073c48e0708fb2b175b9ba | [
"Apache-2.0"
] | null | null | null | import json
from mysql.connector.errors import Error
from DatabaseAdapter import *
import Utility
import sys
sys.path.append("sys/model")
from image import *
class ImageHelper:
dbAdapter = None
def __init__(self,dbAdapter):
self.dbAdapter = dbAdapter
'''get image by author id'''
def getImageByA... | 35.659091 | 87 | 0.476737 | 463 | 4,707 | 4.835853 | 0.170626 | 0.053595 | 0.042876 | 0.066994 | 0.801251 | 0.761501 | 0.761501 | 0.748995 | 0.748995 | 0.662349 | 0 | 0.003977 | 0.305502 | 4,707 | 131 | 88 | 35.931298 | 0.680942 | 0 | 0 | 0.780702 | 0 | 0 | 0.263427 | 0.113626 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061404 | false | 0 | 0.052632 | 0 | 0.254386 | 0.368421 | 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 |
9de8f25185d5a85a4ad9dc37fe0f70fbc48d907f | 2,643 | py | Python | tests/data_structures/commons/binary_search_tree_unit_test.py | vertexproject/pyalgs | 11b9ea37afc9e9f9e38ffacc42b53f9cd96f5f83 | [
"BSD-3-Clause"
] | 12 | 2017-05-01T10:31:42.000Z | 2021-06-23T14:03:28.000Z | tests/data_structures/commons/binary_search_tree_unit_test.py | vertexproject/pyalgs | 11b9ea37afc9e9f9e38ffacc42b53f9cd96f5f83 | [
"BSD-3-Clause"
] | 2 | 2018-08-01T10:09:09.000Z | 2020-07-16T11:41:46.000Z | tests/data_structures/commons/binary_search_tree_unit_test.py | vertexproject/pyalgs | 11b9ea37afc9e9f9e38ffacc42b53f9cd96f5f83 | [
"BSD-3-Clause"
] | 6 | 2017-06-04T01:41:14.000Z | 2021-01-19T05:05:44.000Z | import unittest
from pyalgs.data_structures.commons.binary_search_tree import BinarySearchTree
class BinarySearchTreeUnitTest(unittest.TestCase):
def test_binarySearchTree(self):
bst = BinarySearchTree.create()
bst.put("one", 1)
bst.put("two", 2)
bst.put("three", 3)
bst.p... | 26.69697 | 78 | 0.573969 | 334 | 2,643 | 4.452096 | 0.167665 | 0.161399 | 0.112979 | 0.139879 | 0.885003 | 0.885003 | 0.885003 | 0.885003 | 0.885003 | 0.793544 | 0 | 0.021717 | 0.268256 | 2,643 | 99 | 79 | 26.69697 | 0.747156 | 0 | 0 | 0.885714 | 0 | 0 | 0.047655 | 0 | 0 | 0 | 0 | 0 | 0.428571 | 1 | 0.028571 | false | 0 | 0.028571 | 0 | 0.085714 | 0.028571 | 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 |
d17fbd29edb607a4cb5eb355af3b1d0f452de1af | 45 | py | Python | coder/blueprints/user/__init__.py | mikkokotila/coder-1 | c0462fb63bd23d4367a31f86f9c7f29b1ece93bd | [
"MIT"
] | 1 | 2019-03-11T12:44:33.000Z | 2019-03-11T12:44:33.000Z | coder/blueprints/user/__init__.py | mikkokotila/coder-1 | c0462fb63bd23d4367a31f86f9c7f29b1ece93bd | [
"MIT"
] | 1 | 2019-01-02T09:52:17.000Z | 2019-01-02T09:52:17.000Z | coder/blueprints/user/__init__.py | mikkokotila/coder-1 | c0462fb63bd23d4367a31f86f9c7f29b1ece93bd | [
"MIT"
] | 1 | 2019-01-04T12:44:50.000Z | 2019-01-04T12:44:50.000Z | from coder.blueprints.user.views import user
| 22.5 | 44 | 0.844444 | 7 | 45 | 5.428571 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088889 | 45 | 1 | 45 | 45 | 0.926829 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 7 |
d183a60bc196dd666c6fa4ea24626fb9b16f9587 | 128 | py | Python | python/testData/completion/heavyStarPropagation/lib/_pkg1/_pkg1_1/_pkg1_1_1/_pkg1_1_1_0/_pkg1_1_1_0_0/_mod1_1_1_0_0_0.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/completion/heavyStarPropagation/lib/_pkg1/_pkg1_1/_pkg1_1_1/_pkg1_1_1_0/_pkg1_1_1_0_0/_mod1_1_1_0_0_0.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/completion/heavyStarPropagation/lib/_pkg1/_pkg1_1/_pkg1_1_1/_pkg1_1_1_0/_pkg1_1_1_0_0/_mod1_1_1_0_0_0.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | name1_1_1_0_0_0_0 = None
name1_1_1_0_0_0_1 = None
name1_1_1_0_0_0_2 = None
name1_1_1_0_0_0_3 = None
name1_1_1_0_0_0_4 = None | 14.222222 | 24 | 0.820313 | 40 | 128 | 1.875 | 0.175 | 0.293333 | 0.24 | 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 |
d1df47d81193ae5cccf66e879b58e0130d7aa637 | 68,578 | py | Python | benchmarks/SimResults/micro_pinned_train_combos/cmpC_perlbenchgamessbzip2calculix/power.py | TugberkArkose/MLScheduler | e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061 | [
"Unlicense"
] | null | null | null | benchmarks/SimResults/micro_pinned_train_combos/cmpC_perlbenchgamessbzip2calculix/power.py | TugberkArkose/MLScheduler | e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061 | [
"Unlicense"
] | null | null | null | benchmarks/SimResults/micro_pinned_train_combos/cmpC_perlbenchgamessbzip2calculix/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.030635 | 124 | 0.68188 | 8,086 | 68,578 | 5.777146 | 0.0674 | 0.123646 | 0.113028 | 0.093505 | 0.940382 | 0.931905 | 0.919446 | 0.88922 | 0.86336 | 0.842745 | 0 | 0.131291 | 0.224431 | 68,578 | 914 | 125 | 75.030635 | 0.747006 | 0 | 0 | 0.642232 | 0 | 0 | 0.657709 | 0.04812 | 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 |
06126228d6a6f1b6b11bb0f54e30cd54adb75f3e | 8,147 | py | Python | intro/part05-17_phone_book_v1/test/test_phone_book_v1.py | Hannah-Abi/python-pro-21 | 2ce32c4bf118054329d19afdf83c50561be1ada8 | [
"MIT"
] | null | null | null | intro/part05-17_phone_book_v1/test/test_phone_book_v1.py | Hannah-Abi/python-pro-21 | 2ce32c4bf118054329d19afdf83c50561be1ada8 | [
"MIT"
] | null | null | null | intro/part05-17_phone_book_v1/test/test_phone_book_v1.py | Hannah-Abi/python-pro-21 | 2ce32c4bf118054329d19afdf83c50561be1ada8 | [
"MIT"
] | null | null | null | import unittest
from unittest.mock import patch
from tmc import points
from tmc.utils import load, load_module, reload_module, get_stdout
from functools import reduce
import os
import textwrap
from random import randint
exercise = 'src.phone_book_v1'
def f(d):
return '\n'.join(d)
def s(d):
return d.split('\n... | 36.370536 | 258 | 0.614214 | 1,202 | 8,147 | 4.074875 | 0.1198 | 0.045937 | 0.03675 | 0.040833 | 0.849326 | 0.844018 | 0.833401 | 0.810739 | 0.800735 | 0.800735 | 0 | 0.035259 | 0.2585 | 8,147 | 224 | 259 | 36.370536 | 0.775534 | 0.001473 | 0 | 0.717949 | 0 | 0.05641 | 0.42267 | 0.064175 | 0 | 0 | 0 | 0 | 0.138462 | 1 | 0.046154 | false | 0 | 0.041026 | 0.010256 | 0.102564 | 0.076923 | 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 |
ae37c7196dba5f27379307f6dc2fe5c0229bbdcc | 136 | py | Python | cherrypy/PressProduction.py | maarons/pressui | 38b1ac4f7f8fb8ad13d9cc1fcc18a932cfaeade4 | [
"MIT"
] | null | null | null | cherrypy/PressProduction.py | maarons/pressui | 38b1ac4f7f8fb8ad13d9cc1fcc18a932cfaeade4 | [
"MIT"
] | null | null | null | cherrypy/PressProduction.py | maarons/pressui | 38b1ac4f7f8fb8ad13d9cc1fcc18a932cfaeade4 | [
"MIT"
] | null | null | null | __is_prod = False
def set_production(is_prod):
global __is_prod
__is_prod = is_prod
def is_production():
return __is_prod
| 15.111111 | 28 | 0.735294 | 21 | 136 | 4 | 0.380952 | 0.428571 | 0.190476 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.205882 | 136 | 8 | 29 | 17 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.166667 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 7 |
ae6b51fdf800d5bcdbf53f55d25d4d77ce0a0193 | 44,540 | py | Python | ibm_cloud_networking_services/range_applications_v1.py | IBM/networking-services-python-sdk | a19e47db6a5971562a502982d69a5868997245f3 | [
"Apache-2.0"
] | 1 | 2020-12-22T03:51:33.000Z | 2020-12-22T03:51:33.000Z | ibm_cloud_networking_services/range_applications_v1.py | IBM/networking-services-python-sdk | a19e47db6a5971562a502982d69a5868997245f3 | [
"Apache-2.0"
] | 57 | 2020-06-24T06:58:01.000Z | 2022-03-28T14:52:33.000Z | ibm_cloud_networking_services/range_applications_v1.py | IBM/networking-services-python-sdk | a19e47db6a5971562a502982d69a5868997245f3 | [
"Apache-2.0"
] | 10 | 2020-06-23T04:09:28.000Z | 2022-03-26T18:20:35.000Z | # coding: utf-8
# (C) Copyright IBM Corp. 2020.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | 38.330465 | 107 | 0.598294 | 5,009 | 44,540 | 5.162907 | 0.062687 | 0.008352 | 0.011832 | 0.014075 | 0.801284 | 0.774912 | 0.759058 | 0.754186 | 0.723522 | 0.712617 | 0 | 0.001768 | 0.301639 | 44,540 | 1,161 | 108 | 38.36348 | 0.829642 | 0.357589 | 0 | 0.700159 | 0 | 0 | 0.127521 | 0.018399 | 0 | 0 | 0 | 0 | 0 | 1 | 0.113238 | false | 0 | 0.014354 | 0 | 0.274322 | 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 |
881cea5585d07f56df0a3e21434ecc693732ae0b | 110,256 | py | Python | GolemQ/utils/gfx.py | wangdecheng/QAStrategy | d970242ea61cff2f1a6f69545dc7f65e8efd1672 | [
"MIT"
] | 76 | 2020-10-14T03:33:47.000Z | 2022-01-25T13:34:05.000Z | GolemQ/utils/gfx.py | wangdecheng/QAStrategy | d970242ea61cff2f1a6f69545dc7f65e8efd1672 | [
"MIT"
] | 4 | 2020-10-15T09:23:34.000Z | 2021-07-15T04:25:00.000Z | GolemQ/utils/gfx.py | wangdecheng/QAStrategy | d970242ea61cff2f1a6f69545dc7f65e8efd1672 | [
"MIT"
] | 37 | 2020-10-14T03:35:55.000Z | 2021-12-20T09:58:32.000Z | #
# The MIT License (MIT)
#
# Copyright (c) 2018-2020 azai/Rgveda/GolemQuant
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# t... | 61.872054 | 476 | 0.438371 | 10,496 | 110,256 | 4.338891 | 0.052591 | 0.095409 | 0.071496 | 0.036582 | 0.93676 | 0.920577 | 0.913023 | 0.906721 | 0.900112 | 0.889023 | 0 | 0.0517 | 0.454052 | 110,256 | 1,782 | 477 | 61.872054 | 0.704871 | 0.22387 | 0 | 0.8936 | 0 | 0.0056 | 0.051945 | 0.03167 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0096 | false | 0.0008 | 0.0056 | 0 | 0.0176 | 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 |
8865315c91d8577f01399e99ba92415b644b53b1 | 9,223 | py | Python | src/test/test_elements.py | yenkuanlee/libwally-core | 9adc3c2fbbb64125afa8a63a791fc9c7dfb77dd9 | [
"MIT"
] | 212 | 2017-09-01T21:08:04.000Z | 2022-03-19T07:27:46.000Z | src/test/test_elements.py | yenkuanlee/libwally-core | 9adc3c2fbbb64125afa8a63a791fc9c7dfb77dd9 | [
"MIT"
] | 236 | 2017-07-25T10:34:43.000Z | 2022-03-31T11:12:30.000Z | src/test/test_elements.py | yenkuanlee/libwally-core | 9adc3c2fbbb64125afa8a63a791fc9c7dfb77dd9 | [
"MIT"
] | 131 | 2017-06-27T04:06:27.000Z | 2022-03-24T08:01:46.000Z | import unittest
from util import *
# the private part of our blinding key
UNBLIND_OUR_SK, UNBLIND_OUR_SK_LEN = make_cbuffer('e8ba74f899e6b06da05fb255511c7adcea41f186326ef4fc45290fa8043f7af5')
# the sender's pubkey used to blind the output
UNBLIND_SENDER_PK, UNBLIND_SENDER_PK_LEN = make_cbuffer('0378d8b53305ed6482db0c8... | 121.355263 | 1,061 | 0.883877 | 360 | 9,223 | 22.180556 | 0.227778 | 0.022041 | 0.011396 | 0.01315 | 0.147777 | 0.130996 | 0.130996 | 0.111709 | 0.111709 | 0.111709 | 0 | 0.483706 | 0.088366 | 9,223 | 75 | 1,062 | 122.973333 | 0.465985 | 0.021793 | 0 | 0.440678 | 0 | 0 | 0.700244 | 0.697803 | 0 | 1 | 0 | 0.013333 | 0.033898 | 1 | 0.033898 | false | 0 | 0.033898 | 0 | 0.084746 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
888e5c8dd96fc1deb0721a8e8beb2f0504352b8b | 6,867 | py | Python | src/abaqus/BoundaryCondition/ConnVelocityBCState.py | Haiiliin/PyAbaqus | f20db6ebea19b73059fe875a53be370253381078 | [
"MIT"
] | 7 | 2022-01-21T09:15:45.000Z | 2022-02-15T09:31:58.000Z | src/abaqus/BoundaryCondition/ConnVelocityBCState.py | Haiiliin/PyAbaqus | f20db6ebea19b73059fe875a53be370253381078 | [
"MIT"
] | null | null | null | src/abaqus/BoundaryCondition/ConnVelocityBCState.py | Haiiliin/PyAbaqus | f20db6ebea19b73059fe875a53be370253381078 | [
"MIT"
] | null | null | null | from abaqusConstants import *
from .BoundaryConditionState import BoundaryConditionState
class ConnVelocityBCState(BoundaryConditionState):
"""The ConnVelocityBCState object stores the propagating data for a velocity boundary
condition in a step. One instance of this object is created internally by the
C... | 42.128834 | 179 | 0.725644 | 827 | 6,867 | 5.986699 | 0.141475 | 0.078772 | 0.092103 | 0.106645 | 0.853363 | 0.839224 | 0.839224 | 0.839224 | 0.839224 | 0.825692 | 0 | 0.009086 | 0.230668 | 6,867 | 162 | 180 | 42.388889 | 0.926935 | 0.825251 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.111111 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 1 | 0 | 0 | 9 |
88aa939ceddb662055f93e0aafcc1f5420e0ff42 | 208 | py | Python | keras/layers/wrappers.py | ikingye/keras | 1a3ee8441933fc007be6b2beb47af67998d50737 | [
"MIT"
] | 5 | 2020-11-30T22:26:03.000Z | 2020-12-01T22:34:25.000Z | keras/layers/wrappers.py | ikingye/keras | 1a3ee8441933fc007be6b2beb47af67998d50737 | [
"MIT"
] | 10 | 2020-12-01T22:55:29.000Z | 2020-12-11T18:31:46.000Z | keras/layers/wrappers.py | ikingye/keras | 1a3ee8441933fc007be6b2beb47af67998d50737 | [
"MIT"
] | 15 | 2020-11-30T22:12:22.000Z | 2020-12-09T01:32:48.000Z | """Layers that augment the functionality of a base layer."""
from tensorflow.keras.layers import Wrapper
from tensorflow.keras.layers import TimeDistributed
from tensorflow.keras.layers import Bidirectional
| 34.666667 | 60 | 0.831731 | 27 | 208 | 6.407407 | 0.592593 | 0.242775 | 0.32948 | 0.433526 | 0.537572 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105769 | 208 | 5 | 61 | 41.6 | 0.930108 | 0.259615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 7 |
c9a74de06a35953c65ea7f93cc0c139c485e913b | 17,779 | py | Python | checker/tests/test_logic.py | ucam-cl-dtg/equality_checker | 6a31d3dd360f821e36c4742e1d5139d7292f8319 | [
"Apache-2.0"
] | null | null | null | checker/tests/test_logic.py | ucam-cl-dtg/equality_checker | 6a31d3dd360f821e36c4742e1d5139d7292f8319 | [
"Apache-2.0"
] | null | null | null | checker/tests/test_logic.py | ucam-cl-dtg/equality_checker | 6a31d3dd360f821e36c4742e1d5139d7292f8319 | [
"Apache-2.0"
] | null | null | null | import unittest
from checker import logic as api
from checker.utils import EqualityType
from checker.parsing import logic_parser as parsing
EQUALITY_TYPES = [t.value for t in EqualityType if t is not EqualityType.KNOWN]
#####
# These tests check behavior for very simple cases, and for complicated cases
# where exac... | 58.483553 | 177 | 0.630632 | 2,166 | 17,779 | 5.048938 | 0.057248 | 0.122897 | 0.109729 | 0.100951 | 0.901701 | 0.891002 | 0.865856 | 0.830102 | 0.815106 | 0.815106 | 0 | 0.006544 | 0.20063 | 17,779 | 303 | 178 | 58.676568 | 0.762947 | 0.021374 | 0 | 0.604938 | 0 | 0 | 0.375511 | 0.001209 | 0 | 0 | 0 | 0 | 0.403292 | 1 | 0.08642 | false | 0.08642 | 0.016461 | 0 | 0.111111 | 0.17284 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 8 |
c9c392711b545cbe910529a6d15bda6e0c7e11fb | 205 | py | Python | pyreactors/__init__.py | michelemontuschi/pyreactors | 1b1f7edccb2ca7f9b1281385dbc9017d3791510d | [
"MIT"
] | null | null | null | pyreactors/__init__.py | michelemontuschi/pyreactors | 1b1f7edccb2ca7f9b1281385dbc9017d3791510d | [
"MIT"
] | null | null | null | pyreactors/__init__.py | michelemontuschi/pyreactors | 1b1f7edccb2ca7f9b1281385dbc9017d3791510d | [
"MIT"
] | null | null | null | from .distance import __init__
from .fuels import __init__
from .mueller import __init__
from .oscillations import __init__
from .spectra import *
from .xs import __init__
from .resolution import __init__
| 25.625 | 34 | 0.82439 | 27 | 205 | 5.37037 | 0.37037 | 0.413793 | 0.482759 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136585 | 205 | 7 | 35 | 29.285714 | 0.819209 | 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 |
4ea7e5a1000b820f87dcc8a66910b7bca3257cbb | 8,466 | py | Python | config.py | vanurag/draw | 6d24e6485c7688c94affed11183ea6f3df8418d3 | [
"Apache-2.0"
] | null | null | null | config.py | vanurag/draw | 6d24e6485c7688c94affed11183ea6f3df8418d3 | [
"Apache-2.0"
] | null | null | null | config.py | vanurag/draw | 6d24e6485c7688c94affed11183ea6f3df8418d3 | [
"Apache-2.0"
] | null | null | null | train_config = {}
# # MODEL PARAMETERS ##
# # MNIST
train_config['A'] = 28 # image width
train_config['B'] = 28 # image height
train_config['img_size'] = train_config['B'] * train_config['A'] # the canvas size
train_config['draw_with_white'] = True # draw with white ink or black ink
train_config['enc_rnn_mod... | 54.619355 | 181 | 0.707418 | 1,253 | 8,466 | 4.530726 | 0.156425 | 0.244143 | 0.055487 | 0.028536 | 0.842699 | 0.809054 | 0.779109 | 0.735952 | 0.713757 | 0.703541 | 0 | 0.031715 | 0.150839 | 8,466 | 154 | 182 | 54.974026 | 0.757964 | 0.730687 | 0 | 0.039216 | 0 | 0.019608 | 0.338228 | 0.097584 | 0 | 0 | 0 | 0.006494 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
4edb87e5d87a0dd4f6ebb916ca90b6d2ac83cb13 | 98 | py | Python | jiminy/gym/envs/board_game/__init__.py | sibeshkar/jiminy | 7754f86fb0f246e7d039ea0cbfd9950fcae4adfb | [
"MIT"
] | 3 | 2020-03-16T13:50:40.000Z | 2021-06-09T05:26:13.000Z | jiminy/gym/envs/board_game/__init__.py | sibeshkar/jiminy | 7754f86fb0f246e7d039ea0cbfd9950fcae4adfb | [
"MIT"
] | null | null | null | jiminy/gym/envs/board_game/__init__.py | sibeshkar/jiminy | 7754f86fb0f246e7d039ea0cbfd9950fcae4adfb | [
"MIT"
] | null | null | null | from jiminy.gym.envs.board_game.go import GoEnv
from jiminy.gym.envs.board_game.hex import HexEnv
| 32.666667 | 49 | 0.836735 | 18 | 98 | 4.444444 | 0.611111 | 0.25 | 0.325 | 0.425 | 0.65 | 0.65 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081633 | 98 | 2 | 50 | 49 | 0.888889 | 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 |
14d24e842e755e56f428570e8199ba183dd062f0 | 2,714 | py | Python | Other files (test scripts etc.)/res_img32.py | dg1223/InsectRecognition-UniversityOfGuelph_SemiosBio-Project | 597ae45e04895984669b001129871ebed1a3178c | [
"MIT"
] | 2 | 2015-10-18T04:30:22.000Z | 2017-01-03T15:24:27.000Z | Other files (test scripts etc.)/res_img32.py | dg1223/InsectRecognition-UniversityOfGuelph_SemiosBio-Project | 597ae45e04895984669b001129871ebed1a3178c | [
"MIT"
] | null | null | null | Other files (test scripts etc.)/res_img32.py | dg1223/InsectRecognition-UniversityOfGuelph_SemiosBio-Project | 597ae45e04895984669b001129871ebed1a3178c | [
"MIT"
] | null | null | null | In [7]: total_matches
Out[7]:
array([[6, 6, 6, 5, 4, 1, 0, 0, 0, 0, 6, 6, 6, 5, 4, 1, 0, 0, 0, 0, 6, 6,
6, 5, 4, 1, 0, 0, 0, 0, 6, 6, 6, 5, 4, 1, 0, 0, 0, 0, 6, 6, 6, 5,
4, 1, 0, 0, 0, 0, 6, 6, 6, 5, 4, 1, 0, 0, 0, 0, 3, 3, 3, 3, 2, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,... | 56.541667 | 75 | 0.271555 | 451 | 2,714 | 1.625277 | 0.097561 | 0.223738 | 0.257844 | 0.240109 | 0.843111 | 0.843111 | 0.843111 | 0.832196 | 0.832196 | 0.832196 | 0 | 0.5121 | 0.528003 | 2,714 | 47 | 76 | 57.744681 | 0.060109 | 0 | 0 | 0.386364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 1 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 14 |
14f736c4dc5f110e6b22604fdbe2657bd8504821 | 102 | py | Python | utils.py | sububer/maze-game | e3b359bcd3ce449046a2de7db4e5b036c26deee4 | [
"MIT"
] | null | null | null | utils.py | sububer/maze-game | e3b359bcd3ce449046a2de7db4e5b036c26deee4 | [
"MIT"
] | null | null | null | utils.py | sububer/maze-game | e3b359bcd3ce449046a2de7db4e5b036c26deee4 | [
"MIT"
] | null | null | null | import config as cfg
import pygame
def get_maze_dimensions():
return cfg.MAZE_ROWS, cfg.MAZE_COLS | 20.4 | 39 | 0.794118 | 17 | 102 | 4.529412 | 0.705882 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147059 | 102 | 5 | 39 | 20.4 | 0.885057 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | true | 0 | 0.5 | 0.25 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 7 |
11c9a2568aeb09da0c3a5890f4a86b77766595b2 | 92 | py | Python | kwat/information/get_icd.py | KwatME/ccal | d96dfa811482eee067f346386a2181ec514625f4 | [
"MIT"
] | 5 | 2017-05-05T17:50:28.000Z | 2019-01-30T19:23:02.000Z | kwat/information/get_icd.py | KwatME/ccal | d96dfa811482eee067f346386a2181ec514625f4 | [
"MIT"
] | 5 | 2017-05-05T01:52:31.000Z | 2019-04-20T21:06:05.000Z | kwat/information/get_icd.py | KwatME/ccal | d96dfa811482eee067f346386a2181ec514625f4 | [
"MIT"
] | 5 | 2017-07-17T18:55:54.000Z | 2019-02-02T04:46:19.000Z | from .get_ic import get_ic
def get_icd(ve1, ve2):
return (-get_ic(ve1, ve2) + 1) / 2
| 13.142857 | 38 | 0.630435 | 18 | 92 | 3 | 0.611111 | 0.277778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084507 | 0.228261 | 92 | 6 | 39 | 15.333333 | 0.676056 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
11def3b953bd987aef044420c13ff0b56f40f81e | 1,314 | py | Python | Networking1222_B/loadConfig.py | yifei970327/Implement-the-network | 4e7146597943ba1fda9b039a55286e6300c7d45b | [
"MIT"
] | 1 | 2018-05-03T15:44:21.000Z | 2018-05-03T15:44:21.000Z | Networking1222_B/loadConfig.py | yifei970327/Implement-the-network | 4e7146597943ba1fda9b039a55286e6300c7d45b | [
"MIT"
] | null | null | null | Networking1222_B/loadConfig.py | yifei970327/Implement-the-network | 4e7146597943ba1fda9b039a55286e6300c7d45b | [
"MIT"
] | null | null | null | import json
# 在其他.py文件中:
# import loadJson
# a = loadJson.loadTestIP
def loadTestIP():
f = open("config.json", encoding='utf-8')
setting = json.load(f)
return setting["test"]["ip"]
def loadTestPort():
f = open("config.json", encoding='utf-8')
setting = json.load(f)
return setting[... | 26.28 | 107 | 0.596651 | 169 | 1,314 | 4.639053 | 0.189349 | 0.057398 | 0.126276 | 0.172194 | 0.709184 | 0.709184 | 0.709184 | 0.709184 | 0.709184 | 0.709184 | 0 | 0.008671 | 0.210046 | 1,314 | 49 | 108 | 26.816327 | 0.746628 | 0.038052 | 0 | 0.486486 | 0 | 0 | 0.184971 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.243243 | false | 0 | 0.027027 | 0 | 0.513514 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 8 |
ee9cd1af2f1d9fdb3ff9f00172d3aa14e0849217 | 11,355 | py | Python | Chennai_Floods_code/24hrs_all.py | tunir27/ICDCN-2019 | 98a976d7d4c0b50f67c1bb95a67f3125168a6107 | [
"MIT"
] | null | null | null | Chennai_Floods_code/24hrs_all.py | tunir27/ICDCN-2019 | 98a976d7d4c0b50f67c1bb95a67f3125168a6107 | [
"MIT"
] | null | null | null | Chennai_Floods_code/24hrs_all.py | tunir27/ICDCN-2019 | 98a976d7d4c0b50f67c1bb95a67f3125168a6107 | [
"MIT"
] | null | null | null | import codecs
import numpy as np
import matplotlib.pyplot as plt
import re
import ast
##content=codecs.open('Cluster2 Tweets.txt',"r",encoding="utf-8")
##regex = r"\w*crocodile\w*"
##c1=c2=c3=c4=c5=c6=c7=c8=c9=c10=c11=c12=0
##for i in content:
## matches = re.finditer(regex,i)
##
## for match in matches:
## ... | 36.047619 | 123 | 0.472655 | 1,924 | 11,355 | 2.781705 | 0.06341 | 0.224215 | 0.074738 | 0.152466 | 0.807362 | 0.807362 | 0.805867 | 0.798393 | 0.798393 | 0.787556 | 0 | 0.325369 | 0.307089 | 11,355 | 314 | 124 | 36.16242 | 0.354855 | 0.478644 | 0 | 0.666667 | 0 | 0.166667 | 0.29909 | 0.022115 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.013889 | 0.034722 | 0 | 0.034722 | 0.180556 | 0 | 0 | 0 | null | 1 | 0 | 0 | 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 | 9 |
eeb8d46402d8f912a47a501b919150266a3d016a | 8,292 | py | Python | errors/output.py | waveto/mr-ray-open | d1238752c40f5b2551dd2a3d5963b54bcc4f1fd4 | [
"Apache-2.0"
] | 2 | 2021-07-30T06:52:46.000Z | 2021-07-30T14:37:50.000Z | errors/output.py | waveto/mr-ray-open | d1238752c40f5b2551dd2a3d5963b54bcc4f1fd4 | [
"Apache-2.0"
] | null | null | null | errors/output.py | waveto/mr-ray-open | d1238752c40f5b2551dd2a3d5963b54bcc4f1fd4 | [
"Apache-2.0"
] | null | null | null | '''
Copyright 2011 Acknack Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
dis... | 33.844898 | 121 | 0.648818 | 1,041 | 8,292 | 5.050913 | 0.131604 | 0.119247 | 0.140928 | 0.069989 | 0.847471 | 0.847471 | 0.844047 | 0.844047 | 0.844047 | 0.844047 | 0 | 0.009123 | 0.259768 | 8,292 | 245 | 122 | 33.844898 | 0.847507 | 0.355041 | 0 | 0.815217 | 0 | 0 | 0.077366 | 0.047883 | 0 | 0 | 0 | 0 | 0 | 1 | 0.271739 | false | 0 | 0.032609 | 0 | 0.402174 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
eebae74c74e3677c6a43bd299eb5f6793f296e4f | 1,056 | py | Python | onlineassessmentsystem/users/decorators.py | nevilparmar11/SDP_Online_Assessment_System | 012a1ec7dfca2973a5e03b0f970394cfa674b61e | [
"MIT"
] | 2 | 2021-05-22T15:44:19.000Z | 2021-05-22T17:59:58.000Z | onlineassessmentsystem/users/decorators.py | jwalit21/SDP_Online_Assessment_System | a778a0e0ae264fe74037a5f0b210d205ebc18d98 | [
"MIT"
] | 7 | 2021-01-18T06:06:38.000Z | 2021-03-03T15:09:17.000Z | onlineassessmentsystem/users/decorators.py | jwalit21/SDP_Online_Assessment_System | a778a0e0ae264fe74037a5f0b210d205ebc18d98 | [
"MIT"
] | 2 | 2021-03-05T12:28:28.000Z | 2021-05-24T16:10:07.000Z | from django.contrib.auth import REDIRECT_FIELD_NAME
from django.contrib.auth.decorators import user_passes_test
def student_required(function = None, redirect_field_name = REDIRECT_FIELD_NAME, login_url = '/users/login'):
'''
Custom Decorator that is used to authorise the user as Student.
'''
actual_de... | 37.714286 | 116 | 0.726326 | 134 | 1,056 | 5.425373 | 0.291045 | 0.160935 | 0.210454 | 0.137552 | 0.814305 | 0.814305 | 0.814305 | 0.814305 | 0.814305 | 0.814305 | 0 | 0 | 0.208333 | 1,056 | 28 | 117 | 37.714286 | 0.869617 | 0.120265 | 0 | 0.6 | 0 | 0 | 0.034483 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.15 | 0.1 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 8 |
eedcff04cf9371299dec4277c05a4f0b22460b0f | 150 | py | Python | tests/testformatter.py | cristoper/wav2vec | 22a3fd9ce04e352c171a79cc5d59c69a56243d65 | [
"WTFPL"
] | 82 | 2017-08-27T21:26:48.000Z | 2022-02-25T02:22:40.000Z | tests/testformatter.py | cristoper/wav2vec | 22a3fd9ce04e352c171a79cc5d59c69a56243d65 | [
"WTFPL"
] | 2 | 2019-11-20T22:56:45.000Z | 2021-12-17T02:15:40.000Z | tests/testformatter.py | cristoper/wav2vec | 22a3fd9ce04e352c171a79cc5d59c69a56243d65 | [
"WTFPL"
] | 9 | 2017-10-05T10:40:29.000Z | 2022-02-01T18:26:56.000Z | from wav2vec.formatter import Formatter
import unittest
# TODO: maybe write some unit tests for Formatter. For now the validation tests
# should do.
| 25 | 79 | 0.8 | 22 | 150 | 5.454545 | 0.772727 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007937 | 0.16 | 150 | 5 | 80 | 30 | 0.944444 | 0.586667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0 | 1 | 0 | true | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
010766114cd1e29bd444f21e1c571cccd0413bb4 | 78 | py | Python | tests/sat/Models/example7.satelite.variable.elimination.cnf.SAT.test.py | bernardocuteri/wasp | 05c8f961776dbdbf7afbf905ee00fc262eba51ad | [
"Apache-2.0"
] | 19 | 2015-12-03T08:53:45.000Z | 2022-03-31T02:09:43.000Z | tests/sat/Models/example7.satelite.variable.elimination.cnf.SAT.test.py | bernardocuteri/wasp | 05c8f961776dbdbf7afbf905ee00fc262eba51ad | [
"Apache-2.0"
] | 80 | 2017-11-25T07:57:32.000Z | 2018-06-10T19:03:30.000Z | tests/sat/Models/example7.satelite.variable.elimination.cnf.SAT.test.py | bernardocuteri/wasp | 05c8f961776dbdbf7afbf905ee00fc262eba51ad | [
"Apache-2.0"
] | 6 | 2015-01-15T07:51:48.000Z | 2020-06-18T14:47:48.000Z | input = """
p cnf 3 4
-1 2 3 0
1 -2 0
1 -3 0
-1 -2 0
"""
output = """
SAT
"""
| 7.090909 | 12 | 0.423077 | 20 | 78 | 1.65 | 0.5 | 0.181818 | 0.181818 | 0.242424 | 0.30303 | 0 | 0 | 0 | 0 | 0 | 0 | 0.288462 | 0.333333 | 78 | 10 | 13 | 7.8 | 0.346154 | 0 | 0 | 0.2 | 0 | 0 | 0.602564 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
0123d3b9de267277f35a527b16848f9fbd54315e | 222 | py | Python | gluoncv/model_zoo/cascade_rcnn/__init__.py | zzdang/cascade_rcnn_gluon | b4018001719ec56a688be26c2aab18be664e4bdd | [
"Apache-2.0"
] | 41 | 2018-07-13T06:19:24.000Z | 2021-11-11T14:29:16.000Z | gluoncv/model_zoo/cascade_rcnn/__init__.py | zzdang/cascade_rcnn_gluon | b4018001719ec56a688be26c2aab18be664e4bdd | [
"Apache-2.0"
] | 9 | 2018-08-14T09:13:32.000Z | 2019-11-09T08:32:01.000Z | gluoncv/model_zoo/cascade_rcnn/__init__.py | zzdang/cascade_rcnn_gluon | b4018001719ec56a688be26c2aab18be664e4bdd | [
"Apache-2.0"
] | 8 | 2018-08-13T05:10:40.000Z | 2020-12-02T04:53:24.000Z | # pylint: disable=wildcard-import
"""Faster-RCNN Object Detection."""
from __future__ import absolute_import
from .cascade_rcnn import *
from .cascade_rfcn import *
from .resnet50_v2a import *
from .vgg16_pruned import *
| 24.666667 | 38 | 0.788288 | 29 | 222 | 5.724138 | 0.586207 | 0.240964 | 0.204819 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025641 | 0.121622 | 222 | 8 | 39 | 27.75 | 0.825641 | 0.279279 | 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 |
6d7173da3676a491bf6dbda01e56124a1089bb29 | 199 | py | Python | applications/STORAGE/matmul/src/fake_block.py | srgrr/TFM | f6c302547fdfc9b1df3423cc4e927cd6bb83b345 | [
"MIT"
] | 6 | 2019-01-02T10:39:32.000Z | 2019-05-22T14:01:41.000Z | applications/STORAGE/matmul/src/fake_block.py | srgrr/TFM | f6c302547fdfc9b1df3423cc4e927cd6bb83b345 | [
"MIT"
] | null | null | null | applications/STORAGE/matmul/src/fake_block.py | srgrr/TFM | f6c302547fdfc9b1df3423cc4e927cd6bb83b345 | [
"MIT"
] | null | null | null | class Block(object):
def __init__(self, block):
self.block = block
def get_block(self):
return self.block
def set_block(self, new_block):
self.block = new_block
| 19.9 | 35 | 0.623116 | 27 | 199 | 4.296296 | 0.37037 | 0.310345 | 0.241379 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.281407 | 199 | 9 | 36 | 22.111111 | 0.811189 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | false | 0 | 0 | 0.142857 | 0.714286 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 7 |
6df7a44baccb265c7cdfea6ec9560f0a3b610b86 | 5,301 | py | Python | 01-presentation-example/06_pandas.py | ryansmccoy/201911-spreadsheets-to-dataframes | 22b4a3393626a8df24e8f5a188b3407d20a6430f | [
"MIT"
] | 28 | 2019-11-09T17:35:29.000Z | 2021-07-28T06:21:03.000Z | 01-presentation-example/06_pandas.py | ryansmccoy/201911-spreadsheets-to-dataframes | 22b4a3393626a8df24e8f5a188b3407d20a6430f | [
"MIT"
] | 1 | 2019-11-05T21:28:19.000Z | 2019-11-05T21:44:36.000Z | 01-presentation-example/06_pandas.py | ryansmccoy/201911-spreadsheets-to-dataframes | 22b4a3393626a8df24e8f5a188b3407d20a6430f | [
"MIT"
] | 7 | 2020-02-13T19:18:01.000Z | 2021-09-12T12:36:24.000Z |
import pandas as pd
pd.set_option('display.float_format', lambda x: f'{x:.5f}')
pd.set_option('display.max_columns', 100)
pd.set_option('display.max_rows', 100)
pd.set_option('display.width', 600)
filename = r'data\WMT_US.csv'
df = pd.read_csv(filename)
# check the data types of each columns
print(df.dtypes)
"""
... | 51.466019 | 121 | 0.675344 | 759 | 5,301 | 4.695652 | 0.220026 | 0.051908 | 0.080808 | 0.121212 | 0.845679 | 0.82716 | 0.813131 | 0.813131 | 0.78844 | 0.78844 | 0 | 0.467316 | 0.264101 | 5,301 | 102 | 122 | 51.970588 | 0.446296 | 0.043388 | 0 | 0 | 0 | 0 | 0.348416 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.066667 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 | 8 |
0972b7e2faa68ce932bccba651381ced81652cff | 19,067 | py | Python | graphgen/lfr_generators.py | luanvcmartins/graphgen | 4a2166934f17ebaff94683ccf94ea245782b3552 | [
"MIT"
] | 4 | 2019-05-29T11:59:27.000Z | 2021-08-12T12:20:31.000Z | graphgen/lfr_generators.py | luanvcmartins/graphgen | 4a2166934f17ebaff94683ccf94ea245782b3552 | [
"MIT"
] | 3 | 2018-05-15T11:54:34.000Z | 2021-06-17T19:37:44.000Z | graphgen/lfr_generators.py | luanvcmartins/graphgen | 4a2166934f17ebaff94683ccf94ea245782b3552 | [
"MIT"
] | 2 | 2019-09-22T14:49:58.000Z | 2021-03-01T00:48:40.000Z | from graphgen.weighted_undirected_graph_generator import GenerateWeightedUndirectedGraph
from graphgen.unweighted_undirected_graph_generator import GenerateUnweightedUndirectedGraph
from graphgen.weighted_directed_graph_generator import GenerateWeightedDirectedGraph
from graphgen.unweighted_directed_graph_generator imp... | 41.181425 | 96 | 0.677611 | 2,404 | 19,067 | 5.152246 | 0.067804 | 0.034151 | 0.012918 | 0.032779 | 0.94074 | 0.939932 | 0.936218 | 0.920313 | 0.899645 | 0.885435 | 0 | 0.008298 | 0.254209 | 19,067 | 462 | 97 | 41.270563 | 0.862729 | 0.381602 | 0 | 0.712042 | 1 | 0 | 0.00906 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.073298 | false | 0.005236 | 0.036649 | 0 | 0.193717 | 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 |
09b6a4ecd5c3083cbb95fa186153142f2674a4d7 | 5,073 | py | Python | tests/test_allow_mock_accuracy.py | KeynesYouDigIt/pyxform | 6ca3484ea56bee2a286ed46f24fa2ef1f88611fe | [
"BSD-2-Clause"
] | 67 | 2015-02-02T17:49:25.000Z | 2022-02-18T06:31:52.000Z | tests/test_allow_mock_accuracy.py | yanokwa/pyxform | d2d453ca5c70c27934300bc2a819abad19d93082 | [
"BSD-2-Clause"
] | 477 | 2015-01-14T15:48:44.000Z | 2022-03-29T16:37:22.000Z | tests/test_allow_mock_accuracy.py | yanokwa/pyxform | d2d453ca5c70c27934300bc2a819abad19d93082 | [
"BSD-2-Clause"
] | 86 | 2015-01-26T13:16:26.000Z | 2022-01-20T21:40:54.000Z | # -*- coding: utf-8 -*-
from tests.pyxform_test_case import PyxformTestCase
class AllowMockAccuracyTest(PyxformTestCase):
def test_geopoint(self):
self.assertPyxformXform(
name="data",
md="""
| survey | | | | |
... | 42.275 | 99 | 0.384782 | 333 | 5,073 | 5.786787 | 0.144144 | 0.084069 | 0.158796 | 0.140114 | 0.929943 | 0.929943 | 0.929943 | 0.911261 | 0.911261 | 0.911261 | 0 | 0.000391 | 0.496156 | 5,073 | 119 | 100 | 42.630252 | 0.753521 | 0.00414 | 0 | 0.722222 | 0 | 0.055556 | 0.665941 | 0.109901 | 0 | 0 | 0 | 0 | 0.083333 | 1 | 0.037037 | false | 0 | 0.009259 | 0 | 0.055556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
1124aa2b68a488a53a34fa6c0e2647cf8994e9dd | 4,466 | py | Python | graphene_django/tests/test_types_permissions.py | mrmilu/graphene-django | dfdfeffa939ff5490b4bf3607de4220b7bc20729 | [
"MIT"
] | null | null | null | graphene_django/tests/test_types_permissions.py | mrmilu/graphene-django | dfdfeffa939ff5490b4bf3607de4220b7bc20729 | [
"MIT"
] | null | null | null | graphene_django/tests/test_types_permissions.py | mrmilu/graphene-django | dfdfeffa939ff5490b4bf3607de4220b7bc20729 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# General imports
from mock import patch
# App imports
from graphene_django.tests.test_types import with_local_registry
from .. import registry
from ..types import DjangoObjectType
from .models import Reporter as ReporterModel
registry.reset_global_registry()
class Reporter(DjangoObjectType)... | 27.066667 | 88 | 0.649798 | 497 | 4,466 | 5.665996 | 0.138833 | 0.034091 | 0.03125 | 0.051136 | 0.894176 | 0.894176 | 0.894176 | 0.894176 | 0.894176 | 0.894176 | 0 | 0.005117 | 0.256158 | 4,466 | 164 | 89 | 27.231707 | 0.842565 | 0.064263 | 0 | 0.884298 | 0 | 0 | 0.077754 | 0.047036 | 0 | 0 | 0 | 0 | 0.165289 | 1 | 0.082645 | false | 0.033058 | 0.041322 | 0.049587 | 0.338843 | 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 |
3a0ed34dc9e5d8c3ec8634aeef9fc53947760248 | 7,449 | py | Python | pynes/tests/adc_test.py | BmanisKing/Mine | d33fc14c84af336ae16fefda2dcebc9f0e1e12ab | [
"BSD-3-Clause"
] | null | null | null | pynes/tests/adc_test.py | BmanisKing/Mine | d33fc14c84af336ae16fefda2dcebc9f0e1e12ab | [
"BSD-3-Clause"
] | null | null | null | pynes/tests/adc_test.py | BmanisKing/Mine | d33fc14c84af336ae16fefda2dcebc9f0e1e12ab | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
'''
ADC, Add with Carry Test
This is an arithmetic instruction of the 6502.
'''
import unittest
from pynes.compiler import lexical, syntax, semantic
class AdcTest(unittest.TestCase):
def test_adc_imm(self):
'''
Test the arithmetic operation ADC between decimal 16
... | 39.834225 | 68 | 0.61176 | 910 | 7,449 | 4.924176 | 0.114286 | 0.274939 | 0.128989 | 0.103102 | 0.896452 | 0.869226 | 0.829279 | 0.808971 | 0.787994 | 0.764115 | 0 | 0.037672 | 0.248087 | 7,449 | 186 | 69 | 40.048387 | 0.762364 | 0.197879 | 0 | 0.583333 | 0 | 0 | 0.139618 | 0 | 0 | 0 | 0.016426 | 0 | 0.641667 | 1 | 0.083333 | false | 0 | 0.016667 | 0 | 0.108333 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
3a0fd0fa2df83f4ca7fd3b983cca4856b99d1375 | 9,146 | py | Python | tests/test_api_csv.py | SbastianGarzon/geoextent | b1731c3d69eeb0af18a9d5a0178cf47ae2492b13 | [
"MIT"
] | 1 | 2021-01-02T06:07:09.000Z | 2021-01-02T06:07:09.000Z | tests/test_api_csv.py | SbastianGarzon/geoextent | b1731c3d69eeb0af18a9d5a0178cf47ae2492b13 | [
"MIT"
] | 119 | 2019-08-16T08:37:53.000Z | 2021-08-20T13:16:10.000Z | tests/test_api_csv.py | SbastianGarzon/geoextent | b1731c3d69eeb0af18a9d5a0178cf47ae2492b13 | [
"MIT"
] | 6 | 2019-08-12T08:11:55.000Z | 2020-09-24T18:39:02.000Z | import pytest
from help_functions_test import tolerance
import geoextent.lib.extent as geoextent
def test_csv_extract_bbox():
result = geoextent.fromFile('tests/testdata/csv/cities_NL_lat&long.csv', bbox=True)
assert "bbox" in result
assert "crs" in result
assert "tbox" not in result
assert result... | 41.198198 | 119 | 0.693746 | 1,341 | 9,146 | 4.556301 | 0.080537 | 0.087725 | 0.148936 | 0.109984 | 0.93748 | 0.921604 | 0.915221 | 0.906056 | 0.824059 | 0.785925 | 0 | 0.108324 | 0.163241 | 9,146 | 221 | 120 | 41.384615 | 0.690056 | 0 | 0 | 0.67052 | 0 | 0 | 0.211568 | 0.114148 | 0 | 0 | 0 | 0 | 0.682081 | 1 | 0.138728 | false | 0 | 0.017341 | 0 | 0.156069 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
3a150722a48528ff39195732f5f661ffe7947faf | 165 | py | Python | python/ctranslate2/specs/__init__.py | funboarder13920/CTranslate2 | 6b14d9a948c5d30c08cba8c9d20c49e73de97523 | [
"MIT"
] | 259 | 2019-10-09T13:14:30.000Z | 2022-03-28T02:54:28.000Z | python/ctranslate2/specs/__init__.py | funboarder13920/CTranslate2 | 6b14d9a948c5d30c08cba8c9d20c49e73de97523 | [
"MIT"
] | 197 | 2019-10-10T08:56:29.000Z | 2022-03-31T12:07:04.000Z | python/ctranslate2/specs/__init__.py | funboarder13920/CTranslate2 | 6b14d9a948c5d30c08cba8c9d20c49e73de97523 | [
"MIT"
] | 69 | 2019-10-09T13:31:10.000Z | 2022-03-09T11:15:08.000Z | from ctranslate2.specs.model_spec import LayerSpec
from ctranslate2.specs.model_spec import ModelSpec
from ctranslate2.specs.transformer_spec import TransformerSpec
| 41.25 | 62 | 0.890909 | 21 | 165 | 6.857143 | 0.47619 | 0.3125 | 0.416667 | 0.347222 | 0.486111 | 0.486111 | 0 | 0 | 0 | 0 | 0 | 0.019608 | 0.072727 | 165 | 3 | 63 | 55 | 0.921569 | 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 |
3a162ad43cf8e5617b16a4221ce0a985346c0c69 | 1,023 | py | Python | test33.py | spatole12/ssw555tmashishningrohnitshivani2019Spring | 737f2ac2548c232c1181b0da4dd327d3a12f3c3e | [
"MIT"
] | null | null | null | test33.py | spatole12/ssw555tmashishningrohnitshivani2019Spring | 737f2ac2548c232c1181b0da4dd327d3a12f3c3e | [
"MIT"
] | null | null | null | test33.py | spatole12/ssw555tmashishningrohnitshivani2019Spring | 737f2ac2548c232c1181b0da4dd327d3a12f3c3e | [
"MIT"
] | 2 | 2019-03-09T22:28:21.000Z | 2019-04-29T21:09:38.000Z | import unittest
from userstories_an import *
class testcase(unittest.TestCase):
def test_33(self):
result=userstory_an.us_33([['1994-06-12',4],['1994-04-03',6],17,'I1'])
self.assertEqual(result,'I1')
result=userstory_an.us_33([['1994-06-12',4],['1994-04-03',6],19,'I1'])
self.asser... | 29.228571 | 78 | 0.602151 | 151 | 1,023 | 3.907285 | 0.205298 | 0.20339 | 0.230508 | 0.257627 | 0.822034 | 0.822034 | 0.822034 | 0.771186 | 0.771186 | 0.771186 | 0 | 0.150358 | 0.180841 | 1,023 | 35 | 79 | 29.228571 | 0.553699 | 0 | 0 | 0.318182 | 0 | 0 | 0.138672 | 0 | 0 | 0 | 0 | 0 | 0.363636 | 1 | 0.045455 | false | 0 | 0.090909 | 0 | 0.181818 | 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 |
3a24387be635f9158853b112e2461be235641b47 | 109 | py | Python | limited/lviewer/tests/__init__.py | b7w/limited-fm | 9d0908251b94f5a3bde418a780ecb43db274d6d8 | [
"BSD-3-Clause"
] | null | null | null | limited/lviewer/tests/__init__.py | b7w/limited-fm | 9d0908251b94f5a3bde418a780ecb43db274d6d8 | [
"BSD-3-Clause"
] | null | null | null | limited/lviewer/tests/__init__.py | b7w/limited-fm | 9d0908251b94f5a3bde418a780ecb43db274d6d8 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from limited.lviewer.tests.utils import *
from limited.lviewer.tests.views import *
| 21.8 | 41 | 0.715596 | 15 | 109 | 5.2 | 0.666667 | 0.282051 | 0.461538 | 0.589744 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010526 | 0.12844 | 109 | 4 | 42 | 27.25 | 0.810526 | 0.192661 | 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 |
28bb265b6dafdbecafd956de8f8d2b279c50ef73 | 7,147 | py | Python | rlkit/envs/ant_vel.py | michaelwan11/hfr | a92c2f46f746cc70c91e7f879c7e2b7c475ba73f | [
"MIT"
] | 2 | 2021-12-29T07:37:15.000Z | 2022-01-19T23:33:33.000Z | rlkit/envs/ant_vel.py | michaelwan11/hfr | a92c2f46f746cc70c91e7f879c7e2b7c475ba73f | [
"MIT"
] | null | null | null | rlkit/envs/ant_vel.py | michaelwan11/hfr | a92c2f46f746cc70c91e7f879c7e2b7c475ba73f | [
"MIT"
] | 1 | 2021-12-29T07:37:18.000Z | 2021-12-29T07:37:18.000Z | import numpy as np
from rlkit.envs.ant_multitask_base import MultitaskAntEnv
from . import register_env
# Copy task structure from https://github.com/jonasrothfuss/ProMP/blob/master/meta_policy_search/envs/mujoco_envs/ant_rand_goal.py
@register_env("ant-vel")
class AntVelEnv(MultitaskAntEnv):
# Note that goal he... | 35.034314 | 130 | 0.558836 | 904 | 7,147 | 4.235619 | 0.149336 | 0.054322 | 0.040219 | 0.021938 | 0.905458 | 0.905458 | 0.895012 | 0.892922 | 0.856882 | 0.856882 | 0 | 0.022713 | 0.316217 | 7,147 | 203 | 131 | 35.206897 | 0.760794 | 0.122709 | 0 | 0.842105 | 0 | 0 | 0.024657 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.098684 | false | 0 | 0.019737 | 0 | 0.217105 | 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 |
e92e03dd60fa050cbac29d11d9fe9b2d9bc93fab | 130 | py | Python | code/chapter-1/exercise1_7.py | Kevin-Oudai/python-solutions | d67f6b14723b000fec0011c3e8156b805eb288f7 | [
"MIT"
] | null | null | null | code/chapter-1/exercise1_7.py | Kevin-Oudai/python-solutions | d67f6b14723b000fec0011c3e8156b805eb288f7 | [
"MIT"
] | null | null | null | code/chapter-1/exercise1_7.py | Kevin-Oudai/python-solutions | d67f6b14723b000fec0011c3e8156b805eb288f7 | [
"MIT"
] | null | null | null | print(4 * (1 - 1.0/3 + 1.0/5 - 1.0/7 + 1.0/9 - 1.0/11))
print(4 * (1 - 1.0/3 + 1.0/5 - 1.0/7 + 1.0/9 - 1.0/11 + 1.0/13 - 1.0/15))
| 43.333333 | 73 | 0.415385 | 42 | 130 | 1.285714 | 0.261905 | 0.444444 | 0.259259 | 0.296296 | 0.851852 | 0.851852 | 0.851852 | 0.851852 | 0.851852 | 0.851852 | 0 | 0.44 | 0.230769 | 130 | 2 | 74 | 65 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 15 |
c940161422dbbc8d32bb7bd7ffa8f3d865ff73af | 55,056 | py | Python | Main.py | onurerkin/AmazonArbitrage | 60236ac26a6a440dafc001e72acdff80dc2ea4a4 | [
"MIT"
] | null | null | null | Main.py | onurerkin/AmazonArbitrage | 60236ac26a6a440dafc001e72acdff80dc2ea4a4 | [
"MIT"
] | null | null | null | Main.py | onurerkin/AmazonArbitrage | 60236ac26a6a440dafc001e72acdff80dc2ea4a4 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Dec 20 22:28:42 2018
@author: Erkin
"""
#%%
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import matplotlib
import seaborn as sns
import warnings
warnings.simplefilter(action='ignore', category=FutureWarning)
def warn(*args, *... | 36.851406 | 165 | 0.753542 | 7,863 | 55,056 | 4.992878 | 0.057612 | 0.019613 | 0.017652 | 0.014901 | 0.849894 | 0.812451 | 0.777274 | 0.754069 | 0.724598 | 0.714919 | 0 | 0.013267 | 0.103277 | 55,056 | 1,493 | 166 | 36.876088 | 0.781932 | 0.3576 | 0 | 0.761978 | 0 | 0 | 0.167093 | 0.046484 | 0 | 0 | 0 | 0 | 0 | 1 | 0.001546 | false | 0.001546 | 0.120556 | 0 | 0.122102 | 0.047913 | 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 |
a30a591a91d8d470c89544a7909697a145c80cd3 | 498 | py | Python | Shared/networkingSchemas/destiny/__init__.py | LukasSchmid97/elevatorbot | 77c45d8945c735c8dce9bc75563086bce265dc18 | [
"MIT"
] | null | null | null | Shared/networkingSchemas/destiny/__init__.py | LukasSchmid97/elevatorbot | 77c45d8945c735c8dce9bc75563086bce265dc18 | [
"MIT"
] | 89 | 2021-08-12T15:23:05.000Z | 2022-01-11T12:33:21.000Z | Shared/networkingSchemas/destiny/__init__.py | TheDescend/elevatorbot | 0909ec9ba213480bdf7f790c3d115dd8c4f3ae17 | [
"MIT"
] | 1 | 2021-10-20T20:07:22.000Z | 2021-10-20T20:07:22.000Z | from Shared.networkingSchemas.destiny.account import *
from Shared.networkingSchemas.destiny.activities import *
from Shared.networkingSchemas.destiny.clan import *
from Shared.networkingSchemas.destiny.items import *
from Shared.networkingSchemas.destiny.lfgSystem import *
from Shared.networkingSchemas.destiny.profile... | 49.8 | 59 | 0.855422 | 54 | 498 | 7.888889 | 0.259259 | 0.211268 | 0.570423 | 0.71831 | 0.751174 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072289 | 498 | 9 | 60 | 55.333333 | 0.922078 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.