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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
432dc8e7d82bd1c645808fd3279cfe61b574c76b | 96 | py | Python | venv/lib/python3.8/site-packages/pip/_vendor/resolvelib/resolvers.py | Retraces/UkraineBot | 3d5d7f8aaa58fa0cb8b98733b8808e5dfbdb8b71 | [
"MIT"
] | 2 | 2022-03-13T01:58:52.000Z | 2022-03-31T06:07:54.000Z | venv/lib/python3.8/site-packages/pip/_vendor/resolvelib/resolvers.py | DesmoSearch/Desmobot | b70b45df3485351f471080deb5c785c4bc5c4beb | [
"MIT"
] | 19 | 2021-11-20T04:09:18.000Z | 2022-03-23T15:05:55.000Z | venv/lib/python3.8/site-packages/pip/_vendor/resolvelib/resolvers.py | DesmoSearch/Desmobot | b70b45df3485351f471080deb5c785c4bc5c4beb | [
"MIT"
] | null | null | null | /home/runner/.cache/pip/pool/c1/3f/37/3c78815910a494bfa72c9d7ef2c936077c81234e91b1ed47d7572b3ac2 | 96 | 96 | 0.895833 | 9 | 96 | 9.555556 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.447917 | 0 | 96 | 1 | 96 | 96 | 0.447917 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 0 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
4a53fba53a10a337837eb28d1835d4b111ed9a90 | 84 | py | Python | majority/__init__.py | iterait/cxflow-examples | e1c8e5a5e0cfe3abe92971748ac7f2c2a3673823 | [
"MIT"
] | null | null | null | majority/__init__.py | iterait/cxflow-examples | e1c8e5a5e0cfe3abe92971748ac7f2c2a3673823 | [
"MIT"
] | 3 | 2019-09-06T11:37:18.000Z | 2019-09-10T11:01:07.000Z | majority/__init__.py | iterait/emloop-examples | e1c8e5a5e0cfe3abe92971748ac7f2c2a3673823 | [
"MIT"
] | null | null | null | from .majority_net import MajorityNet
from .majority_dataset import MajorityDataset
| 28 | 45 | 0.880952 | 10 | 84 | 7.2 | 0.7 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095238 | 84 | 2 | 46 | 42 | 0.947368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 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 | 6 |
4a83d7b19357049fb9d526a519ffb98f7895119f | 5,519 | py | Python | modules/feedback/tests/unit/test_feedback_field.py | heolin123/funcrowd | 20167783de208394c09ed0429a5f02ec6dd79c42 | [
"MIT"
] | null | null | null | modules/feedback/tests/unit/test_feedback_field.py | heolin123/funcrowd | 20167783de208394c09ed0429a5f02ec6dd79c42 | [
"MIT"
] | 11 | 2019-11-12T23:26:45.000Z | 2021-06-10T17:37:23.000Z | modules/feedback/tests/unit/test_feedback_field.py | heolin123/funcrowd | 20167783de208394c09ed0429a5f02ec6dd79c42 | [
"MIT"
] | null | null | null | import pytest
from tasks.models import Task
from modules.feedback.models.fields import (
VoteRanking, AnnotationsCount, ReferenceValue,
NERReferenceValue)
@pytest.mark.django_db
def test_vote_ranking(task_with_items, users):
user1, user2, user3 = users
task = Task.objects.first()
item = task.i... | 28.744792 | 85 | 0.623664 | 728 | 5,519 | 4.659341 | 0.101648 | 0.021226 | 0.068986 | 0.061321 | 0.873526 | 0.873526 | 0.84316 | 0.84316 | 0.836675 | 0.784493 | 0 | 0.052494 | 0.237181 | 5,519 | 191 | 86 | 28.895288 | 0.753207 | 0 | 0 | 0.635762 | 0 | 0 | 0.01522 | 0 | 0 | 0 | 0 | 0 | 0.119205 | 1 | 0.033113 | false | 0 | 0.019868 | 0 | 0.05298 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
4aa41949d01fd4a289fcee425c963f9134ee3b31 | 7,183 | py | Python | checkio/Scientific Expedition/Open Labyrinth/open_labyrinth.py | KenMercusLai/checkio | c7702221e1bc0b0b30425859ffa6c09722949d65 | [
"MIT"
] | 39 | 2015-02-09T13:24:12.000Z | 2019-05-16T17:51:19.000Z | checkio/Scientific Expedition/Open Labyrinth/open_labyrinth.py | KenMercusLai/checkio | c7702221e1bc0b0b30425859ffa6c09722949d65 | [
"MIT"
] | 1 | 2019-10-21T16:18:14.000Z | 2019-10-21T16:18:14.000Z | checkio/Scientific Expedition/Open Labyrinth/open_labyrinth.py | KenMercusLai/checkio | c7702221e1bc0b0b30425859ffa6c09722949d65 | [
"MIT"
] | 22 | 2015-01-30T18:00:05.000Z | 2021-05-22T02:57:23.000Z | import heapq
from collections import defaultdict
def shortestPath(graph, start, end):
queue = [(0, start, [])]
seen = set()
while True:
(cost, v, path) = heapq.heappop(queue)
if v not in seen:
path = path + [v]
seen.add(v)
if v == end:
re... | 38.61828 | 80 | 0.358346 | 1,313 | 7,183 | 1.926123 | 0.085301 | 0.23013 | 0.233689 | 0.245156 | 0.591538 | 0.578094 | 0.576512 | 0.576512 | 0.544089 | 0.508106 | 0 | 0.230826 | 0.433663 | 7,183 | 185 | 81 | 38.827027 | 0.390855 | 0.027844 | 0 | 0.384615 | 0 | 0 | 0.026101 | 0 | 0 | 0 | 0 | 0 | 0.035503 | 1 | 0.017751 | false | 0 | 0.011834 | 0 | 0.071006 | 0.023669 | 0 | 0 | 1 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
4351742acc9486a8b77be4682cc2fb2606f2e1fb | 21,999 | py | Python | net/model/losses.py | sdjsngs/Cross-Epoch-Learning-for-Weakly-Supervised-Anomaly-Detection-in-Surveillance-Videos | f734db8d440f2974cb6b4234b30da6856ef62ce3 | [
"MIT"
] | 3 | 2021-07-30T04:45:08.000Z | 2022-02-23T12:44:16.000Z | net/model/losses.py | sdjsngs/Cross-Epoch-Learning-for-Weakly-Supervised-Anomaly-Detection-in-Surveillance-Videos | f734db8d440f2974cb6b4234b30da6856ef62ce3 | [
"MIT"
] | null | null | null | net/model/losses.py | sdjsngs/Cross-Epoch-Learning-for-Weakly-Supervised-Anomaly-Detection-in-Surveillance-Videos | f734db8d440f2974cb6b4234b30da6856ef62ce3 | [
"MIT"
] | 3 | 2021-07-30T09:26:45.000Z | 2022-03-16T15:31:41.000Z | """
loss function
img l2 loss
flow l1 loss
GAN loss
"""
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
def L1_loss(img_pred,img):
l1_loss=nn.L1Loss()
loss=l1_loss(img_pred,img)
return loss
def L2_loss(pred_score,label):
l2_loss=nn.MSELoss(reduction='mean')
... | 27.192831 | 140 | 0.707987 | 3,503 | 21,999 | 4.080788 | 0.054525 | 0.072753 | 0.051137 | 0.014621 | 0.858272 | 0.812802 | 0.779154 | 0.764533 | 0.760056 | 0.743057 | 0 | 0.026585 | 0.186099 | 21,999 | 808 | 141 | 27.226485 | 0.771796 | 0.277922 | 0 | 0.551495 | 0 | 0 | 0.043993 | 0.00985 | 0 | 0 | 0 | 0 | 0.013289 | 1 | 0.089701 | false | 0 | 0.013289 | 0 | 0.192691 | 0.009967 | 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 | 0 | 0 | 6 |
436a8a2d50fb9b837baa0426bfb91d82633efea4 | 10,786 | py | Python | tests/test_resource/test_jdbc/test_mysql.py | roganov/local-data-api | 2c58206f0221c913521778c627ed2bdbff11d274 | [
"MIT"
] | 102 | 2019-06-15T19:32:20.000Z | 2022-03-25T18:39:07.000Z | tests/test_resource/test_jdbc/test_mysql.py | roganov/local-data-api | 2c58206f0221c913521778c627ed2bdbff11d274 | [
"MIT"
] | 176 | 2019-06-16T05:57:29.000Z | 2022-03-28T01:26:16.000Z | tests/test_resource/test_jdbc/test_mysql.py | healthpraxone/local-data-api | 7f81daee9e80958c082d8d4ebbe767dbfecb2544 | [
"MIT"
] | 20 | 2019-10-30T09:02:20.000Z | 2022-01-14T09:07:26.000Z | from __future__ import annotations
from typing import TYPE_CHECKING, Dict, Union
import jaydebeapi
import pytest
from local_data_api.exceptions import BadRequestException
from local_data_api.models import ColumnMetadata, ExecuteStatementResponse, Field
from local_data_api.resources.jdbc.mysql import MySQLJDBC
from t... | 35.13355 | 88 | 0.636288 | 1,140 | 10,786 | 5.74386 | 0.120175 | 0.100794 | 0.036652 | 0.039707 | 0.81796 | 0.791539 | 0.77413 | 0.74328 | 0.734575 | 0.703879 | 0 | 0.014602 | 0.26349 | 10,786 | 306 | 89 | 35.248366 | 0.809668 | 0 | 0 | 0.675373 | 0 | 0 | 0.090302 | 0 | 0 | 0 | 0 | 0 | 0.11194 | 1 | 0.052239 | false | 0.007463 | 0.029851 | 0.003731 | 0.097015 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
437ba200fcb4025c5a2fb5188da5da809d408246 | 139 | py | Python | importers/__init__.py | tofis/human4d_dataset | ffa87275302c25ef16cec6ab99acdb9410b762b8 | [
"MIT"
] | 8 | 2020-11-20T15:10:10.000Z | 2022-01-17T08:21:10.000Z | importers/__init__.py | tofis/human4d_dataset | ffa87275302c25ef16cec6ab99acdb9410b762b8 | [
"MIT"
] | 1 | 2021-02-10T18:35:59.000Z | 2021-04-23T12:13:03.000Z | importers/__init__.py | tofis/human4d_dataset | ffa87275302c25ef16cec6ab99acdb9410b762b8 | [
"MIT"
] | 3 | 2020-12-10T02:48:08.000Z | 2021-07-18T12:06:20.000Z | from .extrinsics import *
from .intrinsics import *
from .image import *
from .timestamps import *
from .gt import *
from .offsets import * | 23.166667 | 25 | 0.748201 | 18 | 139 | 5.777778 | 0.444444 | 0.480769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165468 | 139 | 6 | 26 | 23.166667 | 0.896552 | 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 | 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 | 6 |
439288a73b8632e63203798a6293385a9c1f20e1 | 64,472 | py | Python | lib/rucio/tests/test_rule.py | arisfkiaras/rucio | 275793a04aa85f25bf84705a893ef18679bd305a | [
"Apache-2.0"
] | null | null | null | lib/rucio/tests/test_rule.py | arisfkiaras/rucio | 275793a04aa85f25bf84705a893ef18679bd305a | [
"Apache-2.0"
] | null | null | null | lib/rucio/tests/test_rule.py | arisfkiaras/rucio | 275793a04aa85f25bf84705a893ef18679bd305a | [
"Apache-2.0"
] | null | null | null | # Copyright European Organization for Nuclear Research (CERN)
#
# 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
#
# Authors:
# - Vincent Garonne, <v... | 55.771626 | 246 | 0.66069 | 8,653 | 64,472 | 4.718479 | 0.046805 | 0.035661 | 0.045262 | 0.032918 | 0.855764 | 0.832888 | 0.822895 | 0.801783 | 0.776825 | 0.75848 | 0 | 0.017122 | 0.204647 | 64,472 | 1,155 | 247 | 55.819913 | 0.779106 | 0.083199 | 0 | 0.637349 | 0 | 0 | 0.06416 | 0.000357 | 0 | 0 | 0 | 0.000866 | 0.122892 | 1 | 0.06506 | false | 0 | 0.036145 | 0.001205 | 0.110843 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
43b1e2364c34be7cfaebe3849f91ee5825169d1e | 5,298 | py | Python | tests/vmss/test_vmss_fetcher.py | proofdock/chaos-azure | 85302f8be18153862656c587988eafb5dd37ddf7 | [
"Apache-2.0"
] | 1 | 2021-04-24T20:01:54.000Z | 2021-04-24T20:01:54.000Z | tests/vmss/test_vmss_fetcher.py | proofdock/chaos-azure | 85302f8be18153862656c587988eafb5dd37ddf7 | [
"Apache-2.0"
] | 23 | 2020-05-22T06:43:14.000Z | 2021-02-25T21:02:28.000Z | tests/vmss/test_vmss_fetcher.py | proofdock/chaos-azure | 85302f8be18153862656c587988eafb5dd37ddf7 | [
"Apache-2.0"
] | null | null | null | from unittest.mock import patch
import pytest
from chaoslib.exceptions import InterruptExecution
import pdchaosazure
from pdchaosazure.vmss.fetcher import fetch_vmss, fetch_instances
from tests.data import vmss_provider
@patch('pdchaosazure.vmss.fetcher.fetch_resources', autospec=True)
def test_succesful_fetch_vmss... | 37.048951 | 106 | 0.734994 | 709 | 5,298 | 5.12976 | 0.09591 | 0.092384 | 0.104482 | 0.096508 | 0.823206 | 0.781413 | 0.761067 | 0.739896 | 0.739896 | 0.739896 | 0 | 0.022566 | 0.146848 | 5,298 | 142 | 107 | 37.309859 | 0.78208 | 0.01359 | 0 | 0.643564 | 0 | 0 | 0.142693 | 0.035481 | 0 | 0 | 0 | 0 | 0.217822 | 1 | 0.069307 | false | 0 | 0.059406 | 0 | 0.128713 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
6037fae9cf35c2e5a927556e555c2043496f6193 | 6,261 | py | Python | tests/test_options.py | fruch/nose-timeout | 80f2ceb8bf4ab0f6c388bdc00d683a6f5182dd1e | [
"MIT"
] | 1 | 2018-06-10T21:13:03.000Z | 2018-06-10T21:13:03.000Z | tests/test_options.py | fruch/nose-timeout | 80f2ceb8bf4ab0f6c388bdc00d683a6f5182dd1e | [
"MIT"
] | null | null | null | tests/test_options.py | fruch/nose-timeout | 80f2ceb8bf4ab0f6c388bdc00d683a6f5182dd1e | [
"MIT"
] | 4 | 2019-05-07T11:21:57.000Z | 2021-04-21T08:18:12.000Z |
import os
import unittest
from optparse import OptionParser
from nose.config import Config
from distributed_nose.plugin import DistributedNose
class TestOptionValidation(unittest.TestCase):
def setUp(self):
self.plugin = DistributedNose()
self.parser = OptionParser()
def test_defaults(sel... | 33.66129 | 66 | 0.604536 | 722 | 6,261 | 5.022161 | 0.119114 | 0.11583 | 0.121897 | 0.07529 | 0.840596 | 0.806398 | 0.787645 | 0.738279 | 0.716216 | 0.656646 | 0 | 0.007857 | 0.268168 | 6,261 | 185 | 67 | 33.843243 | 0.783501 | 0.025395 | 0 | 0.577181 | 0 | 0 | 0.116142 | 0.037566 | 0 | 0 | 0 | 0.005405 | 0.154362 | 1 | 0.09396 | false | 0 | 0.033557 | 0 | 0.134228 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
60428c6806883829851dad411834baa011dff3f0 | 4,874 | py | Python | koreto/grids.py | xvdp/koreto | 70f683aeec5e43a15549d447b8f540fa4c5fde4f | [
"MIT"
] | null | null | null | koreto/grids.py | xvdp/koreto | 70f683aeec5e43a15549d447b8f540fa4c5fde4f | [
"MIT"
] | null | null | null | koreto/grids.py | xvdp/koreto | 70f683aeec5e43a15549d447b8f540fa4c5fde4f | [
"MIT"
] | null | null | null | """ mesh grids
"""
import numpy as np
from koreto import WITH_TORCH
if WITH_TORCH:
import torch
# pylint: disable=no-member
def mgrid(shape, dtype="float32", shift=0.5, flip_columns=True, layout=1, form="torch"):
""" fast nd mgrid: not transposing means contiguity requires no fixing
Args
shape ... | 40.957983 | 107 | 0.560115 | 651 | 4,874 | 4.105991 | 0.133641 | 0.065844 | 0.035915 | 0.019454 | 0.897868 | 0.87991 | 0.873176 | 0.866442 | 0.866442 | 0.852974 | 0 | 0.020148 | 0.30755 | 4,874 | 118 | 108 | 41.305085 | 0.771852 | 0.283545 | 0 | 0.656716 | 0 | 0 | 0.012206 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.059701 | false | 0 | 0.044776 | 0 | 0.19403 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
60447525d4f67a1c91d1c8d25f843f5d9114ce3e | 38,705 | py | Python | script/dataset_cfg.py | pl8787/textnet-release | c85a4162c55b4cfe22eab6f8f0c8b615854f9b8f | [
"Apache-2.0"
] | 114 | 2017-06-14T07:05:31.000Z | 2021-06-13T05:30:49.000Z | script/dataset_cfg.py | pl8787/textnet-release | c85a4162c55b4cfe22eab6f8f0c8b615854f9b8f | [
"Apache-2.0"
] | 7 | 2017-11-17T08:16:55.000Z | 2019-10-05T00:09:20.000Z | script/dataset_cfg.py | pl8787/textnet-release | c85a4162c55b4cfe22eab6f8f0c8b615854f9b8f | [
"Apache-2.0"
] | 40 | 2017-06-15T03:21:10.000Z | 2021-10-31T15:03:30.000Z |
class DatasetCfg:
def __init__(self, dataset):
if dataset == 'mr':
self.train_data_file = '/home/wsx/data/movie_review/lstm.train.nopad'
self.valid_data_file = '/home/wsx/data/movie_review/lstm.valid.nopad'
self.test_data_file = '/home/wsx/data/movie_review/lstm.test.no... | 43.053393 | 104 | 0.579641 | 5,139 | 38,705 | 4.043004 | 0.043199 | 0.076238 | 0.06565 | 0.08519 | 0.914713 | 0.908408 | 0.897772 | 0.869471 | 0.821437 | 0.771093 | 0 | 0.082654 | 0.334195 | 38,705 | 898 | 105 | 43.101336 | 0.723593 | 0.083323 | 0 | 0.628533 | 0 | 0.008075 | 0.151499 | 0.137993 | 0 | 0 | 0 | 0 | 0.001346 | 1 | 0.001346 | false | 0 | 0 | 0 | 0.002692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
60651fb4599c4a24c6ba6187735245f015ed5f21 | 37,592 | py | Python | scripts/plot_other.py | HuangQiang/P2HNNS | a8a234879907c6ea076de7576bcf707e54dce730 | [
"MIT"
] | 11 | 2021-06-17T04:43:42.000Z | 2022-01-28T15:16:29.000Z | scripts/plot_other.py | HuangQiang/P2HNNS | a8a234879907c6ea076de7576bcf707e54dce730 | [
"MIT"
] | null | null | null | scripts/plot_other.py | HuangQiang/P2HNNS | a8a234879907c6ea076de7576bcf707e54dce730 | [
"MIT"
] | null | null | null | import os
import re
import numpy as np
import matplotlib.pylab as plt
from scipy.spatial import ConvexHull
from itertools import chain
from scipy.interpolate import interp1d
from collections import defaultdict
from plot import *
from plot_util import *
# ------------------------... | 43.209195 | 95 | 0.56645 | 4,612 | 37,592 | 4.375325 | 0.051388 | 0.028545 | 0.018336 | 0.016007 | 0.885971 | 0.873036 | 0.844591 | 0.83468 | 0.820259 | 0.800436 | 0 | 0.016138 | 0.31262 | 37,592 | 869 | 96 | 43.258918 | 0.764783 | 0.185758 | 0 | 0.695971 | 0 | 0 | 0.024025 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021978 | false | 0 | 0.018315 | 0 | 0.040293 | 0.032967 | 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 | 0 | 0 | 6 |
607d13c3c85245c96b4c0c2121722284ec982c21 | 15,111 | py | Python | contrib/opencensus-ext-zipkin/tests/test_zipkin_exporter.py | Flared/opencensus-python | e2535e688a50c7a06be8af93ca3b987d387da605 | [
"Apache-2.0"
] | 650 | 2017-07-09T02:08:10.000Z | 2022-03-22T20:39:54.000Z | contrib/opencensus-ext-zipkin/tests/test_zipkin_exporter.py | Flared/opencensus-python | e2535e688a50c7a06be8af93ca3b987d387da605 | [
"Apache-2.0"
] | 735 | 2017-07-26T01:15:16.000Z | 2022-03-29T20:17:20.000Z | contrib/opencensus-ext-zipkin/tests/test_zipkin_exporter.py | Flared/opencensus-python | e2535e688a50c7a06be8af93ca3b987d387da605 | [
"Apache-2.0"
] | 256 | 2017-07-24T18:29:15.000Z | 2022-03-15T15:33:03.000Z | # Copyright 2017, OpenCensus Authors
#
# 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 w... | 33.58 | 76 | 0.525842 | 1,351 | 15,111 | 5.600296 | 0.150999 | 0.021412 | 0.0189 | 0.022337 | 0.764473 | 0.748084 | 0.724161 | 0.724161 | 0.716891 | 0.701824 | 0 | 0.11427 | 0.380915 | 15,111 | 449 | 77 | 33.654788 | 0.694495 | 0.043412 | 0 | 0.738903 | 0 | 0 | 0.166655 | 0.049595 | 0 | 0 | 0 | 0 | 0.039164 | 1 | 0.023499 | false | 0 | 0.023499 | 0 | 0.052219 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
7148e5d93467c21926344ad9460ee439890cdda0 | 102 | py | Python | inferfuzzy/rules/__init__.py | leynier/inferfuzzy | bc9dd3a3d0d59f323c5c573423ff7d20ba771eeb | [
"MIT"
] | 3 | 2020-11-23T21:05:31.000Z | 2020-11-25T17:33:27.000Z | inferfuzzy/rules/__init__.py | leynier/fuzzpy | bc9dd3a3d0d59f323c5c573423ff7d20ba771eeb | [
"MIT"
] | null | null | null | inferfuzzy/rules/__init__.py | leynier/fuzzpy | bc9dd3a3d0d59f323c5c573423ff7d20ba771eeb | [
"MIT"
] | null | null | null | from .larsen_rule import LarsenRule # noqa: F401
from .mamdani_rule import MamdaniRule # noqa: F401
| 34 | 51 | 0.784314 | 14 | 102 | 5.571429 | 0.642857 | 0.25641 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069767 | 0.156863 | 102 | 2 | 52 | 51 | 0.837209 | 0.205882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
714c619063f646229f35db4f270e763c70803125 | 42 | py | Python | Python-RPiCam/pyimagesearch/notifications/__init__.py | Kgray44/Automated--Driveway-Gate | 59ed2a8b73d468c5aa701a02f3d94ca61777efdf | [
"MIT"
] | 5 | 2020-04-26T17:41:00.000Z | 2022-02-16T20:52:16.000Z | Python-RPiCam/pyimagesearch/notifications/__init__.py | Kgray44/Automated--Driveway-Gate | 59ed2a8b73d468c5aa701a02f3d94ca61777efdf | [
"MIT"
] | null | null | null | Python-RPiCam/pyimagesearch/notifications/__init__.py | Kgray44/Automated--Driveway-Gate | 59ed2a8b73d468c5aa701a02f3d94ca61777efdf | [
"MIT"
] | null | null | null | from .twilionotifier import TwilioNotifier | 42 | 42 | 0.904762 | 4 | 42 | 9.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 42 | 1 | 42 | 42 | 0.974359 | 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 | 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 | 6 |
e0c5c4756ae814f863b02bfd2a95f27d471c9597 | 108 | py | Python | bscscan_web_api/models/__init__.py | kkristof200/py_bscscan_web_api | 1cf1b5a93b1e3273ec3de4c425811fcec51621db | [
"MIT"
] | 2 | 2021-06-07T13:06:41.000Z | 2022-03-27T15:58:25.000Z | bscscan_web_api/models/__init__.py | kkristof200/py_bscscan_web_api | 1cf1b5a93b1e3273ec3de4c425811fcec51621db | [
"MIT"
] | null | null | null | bscscan_web_api/models/__init__.py | kkristof200/py_bscscan_web_api | 1cf1b5a93b1e3273ec3de4c425811fcec51621db | [
"MIT"
] | 2 | 2021-06-18T20:36:46.000Z | 2021-09-29T06:11:38.000Z | from .recently_added_token import RecentlyAddedToken
from .compiler import Compiler
from .token import Token | 36 | 52 | 0.87037 | 14 | 108 | 6.571429 | 0.5 | 0.23913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.101852 | 108 | 3 | 53 | 36 | 0.948454 | 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 | 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 | 6 |
e0cd316ecfe8f6aca4ec81a654a36a7ac6324fe3 | 484 | py | Python | venv/Lib/site-packages/tensorflow/saved_model/tag_constants/__init__.py | caiovini/Image_reader_api | 7fae630a17195d3415eb739278ef21a3b58cae76 | [
"MIT"
] | null | null | null | venv/Lib/site-packages/tensorflow/saved_model/tag_constants/__init__.py | caiovini/Image_reader_api | 7fae630a17195d3415eb739278ef21a3b58cae76 | [
"MIT"
] | null | null | null | venv/Lib/site-packages/tensorflow/saved_model/tag_constants/__init__.py | caiovini/Image_reader_api | 7fae630a17195d3415eb739278ef21a3b58cae76 | [
"MIT"
] | null | null | null | # This file is MACHINE GENERATED! Do not edit.
# Generated by: tensorflow/tools/api/generator/create_python_api.py script.
"""Common tags used for graphs in SavedModel.
"""
from __future__ import print_function
from tensorflow.python.saved_model.tag_constants import GPU
from tensorflow.python.saved_model.tag_consta... | 30.25 | 75 | 0.836777 | 70 | 484 | 5.557143 | 0.542857 | 0.143959 | 0.205656 | 0.257069 | 0.493573 | 0.493573 | 0.493573 | 0.493573 | 0 | 0 | 0 | 0 | 0.10124 | 484 | 15 | 76 | 32.266667 | 0.894253 | 0.334711 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.833333 | 0 | 0.833333 | 0.333333 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
e0fdc35e01ba9ee08f61a2aaa69743f89a455d8c | 69,123 | py | Python | cottonformation/res/iotevents.py | gitter-badger/cottonformation-project | 354f1dce7ea106e209af2d5d818b6033a27c193c | [
"BSD-2-Clause"
] | null | null | null | cottonformation/res/iotevents.py | gitter-badger/cottonformation-project | 354f1dce7ea106e209af2d5d818b6033a27c193c | [
"BSD-2-Clause"
] | null | null | null | cottonformation/res/iotevents.py | gitter-badger/cottonformation-project | 354f1dce7ea106e209af2d5d818b6033a27c193c | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
This module
"""
import attr
import typing
from ..core.model import (
Property, Resource, Tag, GetAtt, TypeHint, TypeCheck,
)
from ..core.constant import AttrMeta
#--- Property declaration ---
@attr.s
class DetectorModelSetTimer(Property):
"""
AWS Object Type = "AWS::IoTEvent... | 63.707834 | 229 | 0.769556 | 7,337 | 69,123 | 7.16042 | 0.02317 | 0.176717 | 0.044598 | 0.068924 | 0.900678 | 0.900678 | 0.884079 | 0.827851 | 0.827851 | 0.827851 | 0 | 0.000499 | 0.101601 | 69,123 | 1,084 | 230 | 63.766605 | 0.845491 | 0.334606 | 0 | 0.425676 | 0 | 0 | 0.097378 | 0.053846 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.006757 | 0 | 0.260135 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
1c9fe19ea11318b2cee7e34a3f157a5e613235bd | 7,782 | py | Python | MODEL/model_attention.py | quincy-125/DigiPath_CLAM_TF | 8b7ab50caaca13f666268b0f4e071d123e190978 | [
"MIT"
] | 5 | 2021-05-10T17:23:46.000Z | 2022-02-27T22:33:03.000Z | MODEL/model_attention.py | quincy-125/DigiPath_CLAM_TF | 8b7ab50caaca13f666268b0f4e071d123e190978 | [
"MIT"
] | null | null | null | MODEL/model_attention.py | quincy-125/DigiPath_CLAM_TF | 8b7ab50caaca13f666268b0f4e071d123e190978 | [
"MIT"
] | 2 | 2020-12-12T00:15:21.000Z | 2021-05-10T17:23:57.000Z | import tensorflow as tf
class NG_Att_Net(tf.keras.Model):
def __init__(self, dim_features=1024, dim_compress_features=512, n_hidden_units=256, n_class=2,
dropout=False, dropout_rate=.25):
super(NG_Att_Net, self).__init__()
self.dim_features = dim_features
self.dim_compress... | 47.163636 | 99 | 0.4734 | 730 | 7,782 | 4.706849 | 0.112329 | 0.04482 | 0.077416 | 0.052387 | 0.905704 | 0.872526 | 0.83993 | 0.815483 | 0.815483 | 0.776193 | 0 | 0.012328 | 0.447571 | 7,782 | 165 | 100 | 47.163636 | 0.786927 | 0 | 0 | 0.679389 | 0 | 0 | 0.059746 | 0.008865 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045802 | false | 0 | 0.007634 | 0 | 0.099237 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
08fe264ab6c0a4071dd0636c496fe5065c30ca29 | 67 | py | Python | library/__init__.py | spectraldani/DeepMahalanobisGP | bf2d788ac8b56d25f544b6cb9c0325820f4b7e64 | [
"Apache-2.0"
] | null | null | null | library/__init__.py | spectraldani/DeepMahalanobisGP | bf2d788ac8b56d25f544b6cb9c0325820f4b7e64 | [
"Apache-2.0"
] | null | null | null | library/__init__.py | spectraldani/DeepMahalanobisGP | bf2d788ac8b56d25f544b6cb9c0325820f4b7e64 | [
"Apache-2.0"
] | null | null | null | from . import helper
from . import transforms
from . import models
| 16.75 | 24 | 0.776119 | 9 | 67 | 5.777778 | 0.555556 | 0.576923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.179104 | 67 | 3 | 25 | 22.333333 | 0.945455 | 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 | 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 | 6 |
1c7a73c1b3a702a11dc1a927106f4e8205f6d102 | 207 | py | Python | todolist/urls.py | Russel777/todolist | 479142a750cdcc724308018617eec8eeac5876c6 | [
"MIT"
] | null | null | null | todolist/urls.py | Russel777/todolist | 479142a750cdcc724308018617eec8eeac5876c6 | [
"MIT"
] | null | null | null | todolist/urls.py | Russel777/todolist | 479142a750cdcc724308018617eec8eeac5876c6 | [
"MIT"
] | null | null | null | from django.contrib import admin
from django.urls import include
from django.urls import path
urlpatterns = [
path('admin/', admin.site.urls),
path('todolist_app/', include('todolist_app.urls'))
]
| 20.7 | 55 | 0.729469 | 28 | 207 | 5.321429 | 0.428571 | 0.201342 | 0.187919 | 0.268456 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144928 | 207 | 9 | 56 | 23 | 0.841808 | 0 | 0 | 0 | 0 | 0 | 0.173913 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 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 | 0 | 0 | 0 | 6 |
1c8ce1a5c90f73af2f105b077ab4fa500c4821e3 | 37 | py | Python | cloud/amazon/services/__init__.py | Sunchasing/python-common | bc9f11fe4585ef9abca7006c0bf64b11062742fd | [
"Apache-2.0"
] | 5 | 2021-08-15T23:04:25.000Z | 2021-09-06T18:32:53.000Z | cloud/amazon/services/__init__.py | Sunchasing/python-common | bc9f11fe4585ef9abca7006c0bf64b11062742fd | [
"Apache-2.0"
] | null | null | null | cloud/amazon/services/__init__.py | Sunchasing/python-common | bc9f11fe4585ef9abca7006c0bf64b11062742fd | [
"Apache-2.0"
] | 1 | 2022-01-28T13:12:23.000Z | 2022-01-28T13:12:23.000Z | from .s3 import *
from .ec2 import *
| 12.333333 | 18 | 0.675676 | 6 | 37 | 4.166667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068966 | 0.216216 | 37 | 2 | 19 | 18.5 | 0.793103 | 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 | 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 | 6 |
98c5806d206c39acdb2349720a03af0a09ce072c | 18,009 | py | Python | pyunity/values/vector.py | pyunity/pyunity | 5003cef4cdec320d3ee45c306b1a0f8e35175ceb | [
"MIT"
] | 158 | 2021-05-24T01:05:04.000Z | 2022-03-30T03:04:13.000Z | pyunity/values/vector.py | pyunity/pyunity | 5003cef4cdec320d3ee45c306b1a0f8e35175ceb | [
"MIT"
] | 14 | 2021-06-13T07:13:27.000Z | 2021-11-15T19:09:06.000Z | pyunity/values/vector.py | pyunity/pyunity | 5003cef4cdec320d3ee45c306b1a0f8e35175ceb | [
"MIT"
] | 6 | 2021-06-16T22:46:23.000Z | 2021-11-05T22:36:27.000Z | __all__ = ["Vector2", "Vector", "Vector3", "clamp"]
from .abc import ABCMeta, abstractmethod, abstractproperty
import glm
import operator
def clamp(x, _min, _max): return min(_max, max(_min, x))
"""Clamp a value between a minimum and a maximum"""
class Vector(metaclass=ABCMeta):
def __repr__(self):
retur... | 25.987013 | 103 | 0.534066 | 2,309 | 18,009 | 3.985275 | 0.081421 | 0.032602 | 0.065203 | 0.070202 | 0.839926 | 0.790372 | 0.761682 | 0.633884 | 0.546512 | 0.518148 | 0 | 0.019976 | 0.346771 | 18,009 | 692 | 104 | 26.024566 | 0.762241 | 0.205508 | 0 | 0.540323 | 0 | 0 | 0.015879 | 0.004515 | 0 | 0 | 0 | 0 | 0 | 1 | 0.317204 | false | 0.018817 | 0.008065 | 0.153226 | 0.620968 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
c709306b7ad62d18e8cef295b5a01ef0ad2fe460 | 22 | py | Python | elliot/recommender/latent_factor_models/iALS/__init__.py | gategill/elliot | 113763ba6d595976e14ead2e3d460d9705cd882e | [
"Apache-2.0"
] | 175 | 2021-03-04T15:46:25.000Z | 2022-03-31T05:56:58.000Z | elliot/recommender/latent_factor_models/iALS/__init__.py | gategill/elliot | 113763ba6d595976e14ead2e3d460d9705cd882e | [
"Apache-2.0"
] | 15 | 2021-03-06T17:53:56.000Z | 2022-03-24T17:02:07.000Z | elliot/recommender/latent_factor_models/iALS/__init__.py | gategill/elliot | 113763ba6d595976e14ead2e3d460d9705cd882e | [
"Apache-2.0"
] | 39 | 2021-03-04T15:46:26.000Z | 2022-03-09T15:37:12.000Z | from .iALS import iALS | 22 | 22 | 0.818182 | 4 | 22 | 4.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136364 | 22 | 1 | 22 | 22 | 0.947368 | 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 | 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 | 6 |
c719fe07b3239884acc730fbf4b0e94111389abc | 18,105 | py | Python | OpenMatch/data/datasets/edrm_dataset.py | fengtaoo/opmft | 64f2a12c724295cd913eda02502f2e2a20f2dd55 | [
"MIT"
] | 1 | 2020-11-18T06:44:19.000Z | 2020-11-18T06:44:19.000Z | OpenMatch/data/datasets/edrm_dataset.py | zkt12/OpenMatch | 7c04f0eb7285946524a1235a10b1339753f4ab6d | [
"MIT"
] | null | null | null | OpenMatch/data/datasets/edrm_dataset.py | zkt12/OpenMatch | 7c04f0eb7285946524a1235a10b1339753f4ab6d | [
"MIT"
] | null | null | null | from typing import Union, List, Tuple, Dict, Any
import json
import torch
from torch.utils.data import Dataset
from OpenMatch.data.tokenizers import Tokenizer
class EDRMDataset(Dataset):
def __init__(
self,
dataset: Union[Dict, str],
wrd_tokenizer: Tokenizer,
ent_tokenizer: Token... | 69.634615 | 155 | 0.601326 | 2,514 | 18,105 | 3.88743 | 0.041766 | 0.046045 | 0.048808 | 0.075923 | 0.84007 | 0.815614 | 0.772741 | 0.743784 | 0.713189 | 0.694771 | 0 | 0.003225 | 0.280696 | 18,105 | 259 | 156 | 69.903475 | 0.747216 | 0 | 0 | 0.613546 | 0 | 0 | 0.165755 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015936 | false | 0 | 0.01992 | 0.003984 | 0.075697 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
c72e69e18d4c1714b6c899a9b8134859dce05203 | 30 | py | Python | test2.py | kfeelixge/pyneta | 4af7a664d2f43bd3160f8b6d3c2fda5c0b417727 | [
"Apache-2.0"
] | null | null | null | test2.py | kfeelixge/pyneta | 4af7a664d2f43bd3160f8b6d3c2fda5c0b417727 | [
"Apache-2.0"
] | null | null | null | test2.py | kfeelixge/pyneta | 4af7a664d2f43bd3160f8b6d3c2fda5c0b417727 | [
"Apache-2.0"
] | null | null | null | print("First Python Program")
| 15 | 29 | 0.766667 | 4 | 30 | 5.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 30 | 1 | 30 | 30 | 0.851852 | 0 | 0 | 0 | 0 | 0 | 0.666667 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
c7380a7d8af07d0da7c44b3f608afdf5bdd2fd28 | 292 | py | Python | poem/Poem/poem/models.py | vrdel/poem | eb46f74f043ed94274915b0e687b18f3ca4f4e81 | [
"Apache-2.0"
] | null | null | null | poem/Poem/poem/models.py | vrdel/poem | eb46f74f043ed94274915b0e687b18f3ca4f4e81 | [
"Apache-2.0"
] | 34 | 2015-01-14T08:46:11.000Z | 2020-09-17T09:31:13.000Z | poem/Poem/poem/models.py | vrdel/poem | eb46f74f043ed94274915b0e687b18f3ca4f4e81 | [
"Apache-2.0"
] | 2 | 2016-03-11T14:23:36.000Z | 2018-09-19T09:58:34.000Z | from Poem.poem.dbmodels.probes import *
from Poem.poem.dbmodels.profiles import *
from Poem.poem.dbmodels.user import *
from Poem.poem.dbmodels.metricstags import *
from Poem.poem.dbmodels.rever import *
from Poem.poem.dbmodels.services import *
from Poem.poem.dbmodels.aggregations import *
| 36.5 | 45 | 0.808219 | 42 | 292 | 5.619048 | 0.261905 | 0.237288 | 0.355932 | 0.59322 | 0.661017 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09589 | 292 | 7 | 46 | 41.714286 | 0.893939 | 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 | 0 | 0 | 0 | 6 |
c769da92297b11c87d3cfa52992660fb20a89755 | 14,869 | py | Python | PWWS/adversarial_tools.py | ForeverZyh/ASCC | 2d76d679889953501c469221a37d486e7ee42ded | [
"MIT"
] | 21 | 2021-03-22T07:14:29.000Z | 2022-03-24T02:05:25.000Z | PWWS/adversarial_tools.py | ForeverZyh/ASCC | 2d76d679889953501c469221a37d486e7ee42ded | [
"MIT"
] | 2 | 2021-04-07T11:31:01.000Z | 2022-01-10T03:41:10.000Z | PWWS/adversarial_tools.py | ForeverZyh/ASCC | 2d76d679889953501c469221a37d486e7ee42ded | [
"MIT"
] | 4 | 2021-05-05T18:44:13.000Z | 2021-07-29T03:09:50.000Z | import sys
import keras
import spacy
import numpy as np
import tensorflow as tf
import os
from .config import config
from keras import backend as K
from .paraphrase import _compile_perturbed_tokens, PWWS, PWWS_snli
from .word_level_process import text_to_vector
from .char_level_process import doc_process, get_embedding... | 43.349854 | 137 | 0.614365 | 1,801 | 14,869 | 4.750694 | 0.10161 | 0.062997 | 0.021038 | 0.0187 | 0.800608 | 0.770804 | 0.753039 | 0.73352 | 0.720313 | 0.689925 | 0 | 0.004299 | 0.296052 | 14,869 | 342 | 138 | 43.476608 | 0.813127 | 0.148026 | 0 | 0.55814 | 0 | 0 | 0.017994 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.07907 | false | 0 | 0.069767 | 0 | 0.237209 | 0.009302 | 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 | 0 | 0 | 6 |
c791d1320c6019830d15149d804e2cfa3a492b96 | 46 | py | Python | allennlp/data/tokenizers/utils/__init__.py | Mokanarangan/UOM-Allen | a7d576899b348fc3c43ffce50c5051adcd707eb2 | [
"Apache-2.0"
] | 1 | 2021-03-01T09:43:22.000Z | 2021-03-01T09:43:22.000Z | allennlp/data/tokenizers/utils/__init__.py | Mokanarangan/UOM-Allen | a7d576899b348fc3c43ffce50c5051adcd707eb2 | [
"Apache-2.0"
] | null | null | null | allennlp/data/tokenizers/utils/__init__.py | Mokanarangan/UOM-Allen | a7d576899b348fc3c43ffce50c5051adcd707eb2 | [
"Apache-2.0"
] | null | null | null | import allennlp.data.tokenizers.utils.sinhala
| 23 | 45 | 0.869565 | 6 | 46 | 6.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043478 | 46 | 1 | 46 | 46 | 0.909091 | 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 | 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 | 6 |
c7d24ff842504f7d868b403140fc4ae8329b279f | 3,773 | py | Python | api/tests/test_batch_mode_split_requests.py | cglewis/FakeFinder | 5ba213508c5a76d7ca9a2359a5e421a7ba507e45 | [
"Apache-2.0"
] | 26 | 2021-05-19T17:24:58.000Z | 2022-03-29T16:46:23.000Z | api/tests/test_batch_mode_split_requests.py | cglewis/FakeFinder | 5ba213508c5a76d7ca9a2359a5e421a7ba507e45 | [
"Apache-2.0"
] | 37 | 2021-03-11T18:44:08.000Z | 2022-03-30T02:47:53.000Z | api/tests/test_batch_mode_split_requests.py | cglewis/FakeFinder | 5ba213508c5a76d7ca9a2359a5e421a7ba507e45 | [
"Apache-2.0"
] | 12 | 2021-03-01T17:45:17.000Z | 2022-01-06T23:32:39.000Z | import requests
import json
import pytest
url = 'http://0.0.0.0:5000/fakefinder/'
headers = {'Content-Type': 'application/json' }
@pytest.mark.skip(reason="no way of currently testing this")
def test_batch_mode_ntech():
# Body
payload = {"batchMode": True,
"alwaysOn": False,
"loc... | 35.261682 | 148 | 0.598198 | 464 | 3,773 | 4.814655 | 0.181034 | 0.040286 | 0.031334 | 0.03581 | 0.878693 | 0.878693 | 0.878693 | 0.878693 | 0.878693 | 0.878693 | 0 | 0.074194 | 0.260535 | 3,773 | 106 | 149 | 35.59434 | 0.726523 | 0.211768 | 0 | 0.646154 | 0 | 0 | 0.274297 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 1 | 0.076923 | false | 0 | 0.046154 | 0 | 0.123077 | 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 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
405b3926e43fd6de83d589e4e121b8eae0dec560 | 841 | py | Python | octicons16px/infinity.py | andrewp-as-is/octicons16px.py | 1272dc9f290619d83bd881e87dbd723b0c48844c | [
"Unlicense"
] | 1 | 2021-01-28T06:47:39.000Z | 2021-01-28T06:47:39.000Z | octicons16px/infinity.py | andrewp-as-is/octicons16px.py | 1272dc9f290619d83bd881e87dbd723b0c48844c | [
"Unlicense"
] | null | null | null | octicons16px/infinity.py | andrewp-as-is/octicons16px.py | 1272dc9f290619d83bd881e87dbd723b0c48844c | [
"Unlicense"
] | null | null | null |
OCTICON_INFINITY = """
<svg class="octicon octicon-infinity" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M3.5 6c-1.086 0-2 .914-2 2 0 1.086.914 2 2 2 .525 0 1.122-.244 1.825-.727.51-.35 1.025-.79 1.561-1.273-.536-.483-1.052-.922-1.56-1.273C4.621 6.244 4.02... | 168.2 | 812 | 0.648038 | 238 | 841 | 2.285714 | 0.331933 | 0.025735 | 0.027574 | 0.044118 | 0.555147 | 0.507353 | 0.507353 | 0.507353 | 0.444853 | 0.444853 | 0 | 0.548303 | 0.08918 | 841 | 4 | 813 | 210.25 | 0.16188 | 0 | 0 | 0 | 0 | 0.333333 | 0.969048 | 0.34881 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
40dc7e55979f6b897fcea27e836748214111edc7 | 241 | py | Python | spectacles/validators/__init__.py | felipefrancisco/spectacles | 92f7af5810e2669343dd18425b2a8cb49d7167d2 | [
"MIT"
] | 150 | 2019-10-05T18:35:36.000Z | 2022-03-26T21:21:44.000Z | spectacles/validators/__init__.py | felipefrancisco/spectacles | 92f7af5810e2669343dd18425b2a8cb49d7167d2 | [
"MIT"
] | 406 | 2019-10-03T14:54:22.000Z | 2022-03-28T04:02:31.000Z | spectacles/validators/__init__.py | felipefrancisco/spectacles | 92f7af5810e2669343dd18425b2a8cb49d7167d2 | [
"MIT"
] | 26 | 2019-11-08T16:21:50.000Z | 2022-03-28T06:06:14.000Z | from spectacles.validators.sql import SqlValidator
from spectacles.validators.data_test import DataTestValidator
from spectacles.validators.content import ContentValidator
__all__ = ["SqlValidator", "DataTestValidator", "ContentValidator"]
| 40.166667 | 67 | 0.854772 | 23 | 241 | 8.73913 | 0.521739 | 0.208955 | 0.358209 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074689 | 241 | 5 | 68 | 48.2 | 0.901345 | 0 | 0 | 0 | 0 | 0 | 0.186722 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
40fe2053b40cd53ab82146f07f97d3b6e466ba8d | 292 | py | Python | contour/__init__.py | Workiva/contour | 599e05c7ab6020b1ccc27e3f64f625abaec33ff2 | [
"Apache-2.0"
] | null | null | null | contour/__init__.py | Workiva/contour | 599e05c7ab6020b1ccc27e3f64f625abaec33ff2 | [
"Apache-2.0"
] | null | null | null | contour/__init__.py | Workiva/contour | 599e05c7ab6020b1ccc27e3f64f625abaec33ff2 | [
"Apache-2.0"
] | null | null | null | from contour import Contour
from contour import MissingConfigurationError
from contour import BadModulePathError
from contour import InvalidYamlFile
from contour import EmptyYamlFile
from contour import MissingYamlFile
from contour import find_contour_yaml
from contour import module_import
| 29.2 | 45 | 0.886986 | 35 | 292 | 7.314286 | 0.314286 | 0.34375 | 0.53125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113014 | 292 | 9 | 46 | 32.444444 | 0.988417 | 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 | 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 | 6 |
9051f40db2f91a628c330002e4e7918096a2b6b9 | 160 | py | Python | unit_tests/test_sensorSim.py | haakonsh/FSR-Desktop | 3796ace5d00da40f2609c77183bccb3f8bf8e721 | [
"MIT"
] | null | null | null | unit_tests/test_sensorSim.py | haakonsh/FSR-Desktop | 3796ace5d00da40f2609c77183bccb3f8bf8e721 | [
"MIT"
] | null | null | null | unit_tests/test_sensorSim.py | haakonsh/FSR-Desktop | 3796ace5d00da40f2609c77183bccb3f8bf8e721 | [
"MIT"
] | null | null | null | from unittest import TestCase
class TestSensorSim(TestCase):
def test_generate(self):
self.fail()
def test_decode(self):
self.fail()
| 16 | 30 | 0.6625 | 19 | 160 | 5.473684 | 0.631579 | 0.134615 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.24375 | 160 | 9 | 31 | 17.777778 | 0.859504 | 0 | 0 | 0.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 6 |
9057c84240cd930fee24fbe62c016934da11328d | 10,629 | py | Python | torchpruner/module_pruner/pruners.py | THU-MIG/torch-model-compression | 6c48f8a67d84cbc4d3079cbff5ab516b62dd2ff5 | [
"MIT"
] | 86 | 2021-06-21T11:09:49.000Z | 2022-03-21T09:09:26.000Z | torchpruner/module_pruner/pruners.py | THUMIG/torch-model-compression | 6c48f8a67d84cbc4d3079cbff5ab516b62dd2ff5 | [
"MIT"
] | 7 | 2021-06-26T09:37:37.000Z | 2022-03-09T03:49:11.000Z | torchpruner/module_pruner/pruners.py | THU-MIG/torch-model-compression | 6c48f8a67d84cbc4d3079cbff5ab516b62dd2ff5 | [
"MIT"
] | 17 | 2021-08-18T17:06:44.000Z | 2022-02-28T09:14:38.000Z | from collections import OrderedDict
import torch
import torch.nn as nn
import numpy as np
from typing import Dict, List
from .prune_function import *
class BasePruner(object):
def __init__(self, name):
self.name = name
# set the value to be zeros and return the context
def set_zero(self, nn_mod... | 38.371841 | 88 | 0.657917 | 1,396 | 10,629 | 4.671203 | 0.059456 | 0.144763 | 0.081583 | 0.041405 | 0.905383 | 0.900169 | 0.871645 | 0.842816 | 0.842816 | 0.832541 | 0 | 0.002278 | 0.256562 | 10,629 | 276 | 89 | 38.51087 | 0.822956 | 0.057861 | 0 | 0.637168 | 0 | 0 | 0.03291 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115044 | false | 0 | 0.026549 | 0 | 0.256637 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
90585e2dcdc6c467eef5798c3e7029b219e36c0b | 29 | py | Python | clients/python/vzlogger/__init__.py | vizstack/vizstack-logger | 479f956a72ad6851060c315d243262106bfd0ff9 | [
"MIT"
] | 4 | 2019-09-14T00:54:16.000Z | 2021-03-23T08:26:38.000Z | clients/python/vzlogger/__init__.py | vizstack/vizstack-logger | 479f956a72ad6851060c315d243262106bfd0ff9 | [
"MIT"
] | 17 | 2019-12-23T03:41:50.000Z | 2022-02-26T17:34:54.000Z | clients/python/vzlogger/__init__.py | vizstack/vz-logger | 479f956a72ad6851060c315d243262106bfd0ff9 | [
"MIT"
] | null | null | null | from vzlogger.logger import * | 29 | 29 | 0.827586 | 4 | 29 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103448 | 29 | 1 | 29 | 29 | 0.923077 | 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 | 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 | 6 |
90631eaff2ba7c6658aeae39ce3dfa6ed394efd6 | 9,438 | py | Python | knapsack_problem/tests/test_knapsack_ga_csv.py | platiagro/GA | 0103668aef8d8432209406c374824e7695d569c4 | [
"Apache-2.0"
] | null | null | null | knapsack_problem/tests/test_knapsack_ga_csv.py | platiagro/GA | 0103668aef8d8432209406c374824e7695d569c4 | [
"Apache-2.0"
] | null | null | null | knapsack_problem/tests/test_knapsack_ga_csv.py | platiagro/GA | 0103668aef8d8432209406c374824e7695d569c4 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import unittest
from unittest import TestCase
from random import uniform, randint
import numpy as np
import matplotlib.pyplot as plt
import time
from knapsack_problem.knapsack_ga import Candidate, ObjectsList, stop_search, search, apply_selection, apply_crossover, apply_mutation, create_initia... | 51.016216 | 161 | 0.509536 | 926 | 9,438 | 4.778618 | 0.077754 | 0.061695 | 0.089492 | 0.178983 | 0.867119 | 0.852655 | 0.829153 | 0.792542 | 0.67096 | 0.468927 | 0 | 0.010917 | 0.1459 | 9,438 | 184 | 162 | 51.293478 | 0.538023 | 0.283535 | 0 | 0.318182 | 0 | 0 | 0.001787 | 0 | 0 | 0 | 0 | 0 | 0.295455 | 1 | 0.295455 | false | 0 | 0.05303 | 0 | 0.356061 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
90a87dcdb0fa39d397cca8c7b236c61513503cb5 | 130 | py | Python | dymos/examples/brachistochrone/__init__.py | kaushikponnapalli/dymos | 3fba91d0fc2c0e8460717b1bec80774676287739 | [
"Apache-2.0"
] | 104 | 2018-09-08T16:52:27.000Z | 2022-03-10T23:35:30.000Z | dymos/examples/brachistochrone/__init__.py | kaushikponnapalli/dymos | 3fba91d0fc2c0e8460717b1bec80774676287739 | [
"Apache-2.0"
] | 628 | 2018-06-27T20:32:59.000Z | 2022-03-31T19:24:32.000Z | dymos/examples/brachistochrone/__init__.py | kaushikponnapalli/dymos | 3fba91d0fc2c0e8460717b1bec80774676287739 | [
"Apache-2.0"
] | 46 | 2018-06-27T20:54:07.000Z | 2021-12-19T07:23:32.000Z | from .brachistochrone_ode import BrachistochroneODE
from .brachistochrone_vector_states_ode import BrachistochroneVectorStatesODE
| 43.333333 | 77 | 0.923077 | 12 | 130 | 9.666667 | 0.666667 | 0.327586 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061538 | 130 | 2 | 78 | 65 | 0.95082 | 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 | 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 | 6 |
90b1ac4081db56eddb95dc0b415a3b0f4ff2a2e7 | 72 | py | Python | test_mathcode.py | noahgift/python-functions-11-11 | 63c69791b6a05e1cdeb250f3f05eb3b21783bad1 | [
"CC0-1.0"
] | null | null | null | test_mathcode.py | noahgift/python-functions-11-11 | 63c69791b6a05e1cdeb250f3f05eb3b21783bad1 | [
"CC0-1.0"
] | 1 | 2021-11-11T14:17:54.000Z | 2021-11-11T14:17:54.000Z | test_mathcode.py | noahgift/python-functions-11-11 | 63c69791b6a05e1cdeb250f3f05eb3b21783bad1 | [
"CC0-1.0"
] | 1 | 2022-03-05T00:55:56.000Z | 2022-03-05T00:55:56.000Z | from mylib.mathcode import add
def test_add():
assert 2 == add(1,1) | 18 | 30 | 0.680556 | 13 | 72 | 3.692308 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051724 | 0.194444 | 72 | 4 | 31 | 18 | 0.775862 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.333333 | true | 0 | 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 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
2900d33d77385d3cec22e5b4822aca61718adce6 | 99 | py | Python | Analysis/__init__.py | jkluter/MLG | 0ef337c1f08f3ad22a8530091c1e6e5548e4a244 | [
"MIT"
] | null | null | null | Analysis/__init__.py | jkluter/MLG | 0ef337c1f08f3ad22a8530091c1e6e5548e4a244 | [
"MIT"
] | null | null | null | Analysis/__init__.py | jkluter/MLG | 0ef337c1f08f3ad22a8530091c1e6e5548e4a244 | [
"MIT"
] | null | null | null | from . import Plots
from . import Table
from .utils import statistics, ALL_Analysis, find_files
| 19.8 | 55 | 0.777778 | 14 | 99 | 5.357143 | 0.714286 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171717 | 99 | 4 | 56 | 24.75 | 0.914634 | 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 | 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 | 6 |
29176983df836bca8efce5b0038c244fe0a41dbd | 13,885 | py | Python | tests/commands/test_command.py | kikuchi-m/ceryle | 1f91a9aaa17c60700d8827158cb69e7220200757 | [
"MIT"
] | 2 | 2019-10-29T22:50:28.000Z | 2020-03-25T03:06:48.000Z | tests/commands/test_command.py | kikuchi-m/ceryle | 1f91a9aaa17c60700d8827158cb69e7220200757 | [
"MIT"
] | null | null | null | tests/commands/test_command.py | kikuchi-m/ceryle | 1f91a9aaa17c60700d8827158cb69e7220200757 | [
"MIT"
] | null | null | null | import os
import pathlib
import platform
import re
import shutil
import tempfile
import pytest
from ceryle import Command, CommandFormatError
from ceryle.dsl.support import Arg, Env, PathArg
from ceryle.util import std_capture
FILE_DIR = os.path.dirname(__file__)
def stub_env():
return Env('FOO')
def stub_ar... | 38.250689 | 92 | 0.570256 | 1,719 | 13,885 | 4.424084 | 0.082606 | 0.027613 | 0.03616 | 0.046943 | 0.864563 | 0.824721 | 0.806969 | 0.794609 | 0.761473 | 0.725312 | 0 | 0.006789 | 0.267987 | 13,885 | 362 | 93 | 38.356354 | 0.74144 | 0.004609 | 0 | 0.624138 | 0 | 0 | 0.15604 | 0 | 0 | 0 | 0 | 0 | 0.258621 | 1 | 0.113793 | false | 0 | 0.034483 | 0.010345 | 0.168966 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
292900491088963f9c806928172ce2c0cc5b2279 | 23 | py | Python | build/lib/brave/__init__.py | qiulikun/brave | a44f63497fae9755d5f798821073b669b828521e | [
"Apache-2.0"
] | 13 | 2017-07-04T15:59:21.000Z | 2021-07-10T08:33:47.000Z | build/lib/brave/__init__.py | qiulikun/brave | a44f63497fae9755d5f798821073b669b828521e | [
"Apache-2.0"
] | 1 | 2019-12-24T16:14:52.000Z | 2019-12-25T20:44:17.000Z | build/lib/brave/__init__.py | qiulikun/brave | a44f63497fae9755d5f798821073b669b828521e | [
"Apache-2.0"
] | 7 | 2017-07-02T12:35:02.000Z | 2021-02-08T03:49:23.000Z | from ._brave import *
| 7.666667 | 21 | 0.695652 | 3 | 23 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.217391 | 23 | 2 | 22 | 11.5 | 0.833333 | 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 | 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 | 6 |
29299475b1e576547131f3b03899feef01676c16 | 146 | py | Python | tests/data/format/quotes_type/class_docstring.py | DanielNoord/pydocstringformatter | a69302cee6bd32b9b5cc48912a47d0e8ad3f7abe | [
"MIT"
] | 4 | 2022-01-02T22:50:59.000Z | 2022-02-09T09:04:37.000Z | tests/data/format/quotes_type/class_docstring.py | DanielNoord/pydocstringformatter | a69302cee6bd32b9b5cc48912a47d0e8ad3f7abe | [
"MIT"
] | 80 | 2022-01-02T09:02:50.000Z | 2022-03-30T13:34:10.000Z | tests/data/format/quotes_type/class_docstring.py | DanielNoord/pydocstringformatter | a69302cee6bd32b9b5cc48912a47d0e8ad3f7abe | [
"MIT"
] | 2 | 2022-01-02T11:58:29.000Z | 2022-01-04T18:53:29.000Z | class MyClass:
''' A multi-line
docstring
'''
class InnerClass:
''' A multi-line
docstring
'''
| 14.6 | 27 | 0.445205 | 12 | 146 | 5.416667 | 0.583333 | 0.184615 | 0.307692 | 0.584615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.445205 | 146 | 9 | 28 | 16.222222 | 0.802469 | 0.349315 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 6 |
2951849537e778fa72c1b2579c025f5713d8b665 | 99 | py | Python | vue_backend/user/throttles.py | hanson190505/coteam | 8bd01f4edc2a0b2a65dc18d68e36efb11cbdf576 | [
"MIT"
] | 1 | 2021-03-18T17:04:52.000Z | 2021-03-18T17:04:52.000Z | vue_backend/user/throttles.py | hanson190505/coteam | 8bd01f4edc2a0b2a65dc18d68e36efb11cbdf576 | [
"MIT"
] | 11 | 2020-04-03T04:16:24.000Z | 2022-03-26T10:36:49.000Z | vue_backend/user/throttles.py | hanson190505/coteam | 8bd01f4edc2a0b2a65dc18d68e36efb11cbdf576 | [
"MIT"
] | null | null | null | from rest_framework.throttling import BaseThrottle
class CustomerThrottle(BaseThrottle):
pass | 19.8 | 50 | 0.838384 | 10 | 99 | 8.2 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121212 | 99 | 5 | 51 | 19.8 | 0.942529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.333333 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 6 |
295ae48cf3eea4f42b385729e5f65079928d6f04 | 32,292 | py | Python | watcher/db/api.py | ajaytikoo/watcher | 6dbac1f6ae7f3e10dfdcef5721fa4af7af54e159 | [
"Apache-2.0"
] | 64 | 2015-10-18T02:57:24.000Z | 2022-01-13T11:27:51.000Z | watcher/db/api.py | ajaytikoo/watcher | 6dbac1f6ae7f3e10dfdcef5721fa4af7af54e159 | [
"Apache-2.0"
] | null | null | null | watcher/db/api.py | ajaytikoo/watcher | 6dbac1f6ae7f3e10dfdcef5721fa4af7af54e159 | [
"Apache-2.0"
] | 35 | 2015-12-25T13:53:21.000Z | 2021-07-19T15:50:16.000Z | # Copyright 2013 Hewlett-Packard Development Company, L.P.
#
# 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 applicabl... | 36.695455 | 79 | 0.59795 | 3,802 | 32,292 | 4.981852 | 0.063651 | 0.029988 | 0.04873 | 0.040072 | 0.87044 | 0.826567 | 0.766908 | 0.72673 | 0.689562 | 0.626313 | 0 | 0.000497 | 0.314443 | 32,292 | 879 | 80 | 36.737201 | 0.855091 | 0.630806 | 0 | 0.4875 | 0 | 0 | 0.004509 | 0.003221 | 0 | 0 | 0 | 0 | 0 | 1 | 0.425 | false | 0 | 0.01875 | 0 | 0.45625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
4623797f8d99bb895fbfa0fb27d789a938a3bfb3 | 430 | py | Python | fill_ipd.py | ranggasenatama/Auto-Kusioner-Submit | ddeb5a61009e6351aa22e8c0a658306a4495b6f9 | [
"MIT"
] | 1 | 2020-07-13T15:45:08.000Z | 2020-07-13T15:45:08.000Z | fill_ipd.py | ranggasenatama/Auto-Kusioner-Submit | ddeb5a61009e6351aa22e8c0a658306a4495b6f9 | [
"MIT"
] | null | null | null | fill_ipd.py | ranggasenatama/Auto-Kusioner-Submit | ddeb5a61009e6351aa22e8c0a658306a4495b6f9 | [
"MIT"
] | null | null | null | def ipm(kusioner):
counter = 1
while counter <= 10:
kusioner['MK'+str(counter)].value = '4'
counter += 1
kusioner['txtKomentar'].value = 'Mantap'
kusioner['chkPermanent'].value = '1'
def ipd(kusioner):
counter = 1
while counter <= 10:
kusioner['DO'+str(counter)].value = ... | 28.666667 | 47 | 0.586047 | 48 | 430 | 5.25 | 0.333333 | 0.126984 | 0.126984 | 0.166667 | 0.936508 | 0.936508 | 0.936508 | 0.634921 | 0.634921 | 0.634921 | 0 | 0.037037 | 0.246512 | 430 | 15 | 48 | 28.666667 | 0.740741 | 0 | 0 | 0.714286 | 0 | 0 | 0.153132 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 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 | 6 |
463703e8db9e1479c2b840dc8ff8ad8b65a596f3 | 4,898 | py | Python | test/test_convert_banana.py | tomas-psorn/bruker2nifti | 128c5aa245e786a51ba2da62709e0f3b48d2aa7b | [
"MIT"
] | 28 | 2017-04-12T18:35:38.000Z | 2020-11-02T03:46:44.000Z | test/test_convert_banana.py | tomas-psorn/bruker2nifti | 128c5aa245e786a51ba2da62709e0f3b48d2aa7b | [
"MIT"
] | 66 | 2017-07-21T14:15:46.000Z | 2021-07-28T09:52:02.000Z | test/test_convert_banana.py | tomas-psorn/bruker2nifti | 128c5aa245e786a51ba2da62709e0f3b48d2aa7b | [
"MIT"
] | 18 | 2017-08-02T23:06:11.000Z | 2021-06-16T05:54:22.000Z | import os
import warnings
import subprocess
import platform
import shutil
import sys
import pytest
from bruker2nifti.converter import Bruker2Nifti
here = os.path.abspath(os.path.dirname(__file__))
root_dir = os.path.dirname(here)
def test_convert_the_banana(open_converted=False):
pfo_study_in = os.path.join(r... | 30.805031 | 85 | 0.64557 | 658 | 4,898 | 4.547112 | 0.145897 | 0.093583 | 0.084559 | 0.042112 | 0.82988 | 0.783422 | 0.774398 | 0.774398 | 0.751003 | 0.751003 | 0 | 0.014535 | 0.22744 | 4,898 | 158 | 86 | 31 | 0.776163 | 0.047366 | 0 | 0.651786 | 0 | 0 | 0.107128 | 0.005796 | 0 | 0 | 0 | 0 | 0.053571 | 1 | 0.035714 | false | 0 | 0.071429 | 0 | 0.107143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
466ce376ee73bfa5dad70eef247fdb19997c3918 | 24 | py | Python | overStat/__init__.py | t04glovern/Overstat | 08eac77ecbcb4ca7d7cd23f73c26ff9b8bddc0a1 | [
"MIT"
] | null | null | null | overStat/__init__.py | t04glovern/Overstat | 08eac77ecbcb4ca7d7cd23f73c26ff9b8bddc0a1 | [
"MIT"
] | null | null | null | overStat/__init__.py | t04glovern/Overstat | 08eac77ecbcb4ca7d7cd23f73c26ff9b8bddc0a1 | [
"MIT"
] | null | null | null | from .overStat import *
| 12 | 23 | 0.75 | 3 | 24 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 24 | 1 | 24 | 24 | 0.9 | 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 | 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 | 6 |
469910d986c0bdb2ff2e12e886a7548eadea27b6 | 6,251 | py | Python | tests/test_neurons.py | vandermeerlab/nept | fcb0b83d30f4be2783f3e8a9b3c842e4eef4426b | [
"MIT"
] | 7 | 2017-07-17T08:57:11.000Z | 2020-10-23T09:59:58.000Z | tests/test_neurons.py | vandermeerlab/nept | fcb0b83d30f4be2783f3e8a9b3c842e4eef4426b | [
"MIT"
] | 9 | 2017-03-01T17:49:18.000Z | 2020-04-21T19:32:07.000Z | tests/test_neurons.py | vandermeerlab/nept | fcb0b83d30f4be2783f3e8a9b3c842e4eef4426b | [
"MIT"
] | 2 | 2017-03-06T00:32:22.000Z | 2017-07-17T08:57:14.000Z | import numpy as np
import pytest
import nept
def test_neurons_basic():
spikes = np.array(
[
nept.SpikeTrain(np.array([0.5]), "test"),
nept.SpikeTrain(np.array([1.5]), "test"),
nept.SpikeTrain(np.array([2.5]), "test"),
]
)
tuning = np.array(
[[1.... | 27.659292 | 84 | 0.557511 | 974 | 6,251 | 3.502053 | 0.057495 | 0.112577 | 0.138962 | 0.147757 | 0.887423 | 0.876869 | 0.852829 | 0.837877 | 0.823512 | 0.777485 | 0 | 0.079449 | 0.244921 | 6,251 | 225 | 85 | 27.782222 | 0.64322 | 0 | 0 | 0.533333 | 0 | 0 | 0.028955 | 0 | 0 | 0 | 0 | 0 | 0.157576 | 1 | 0.060606 | false | 0 | 0.018182 | 0 | 0.078788 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
46b55e6cfb833c1ed1301fe3f47de0379091bab7 | 185 | py | Python | nativeconfig/__init__.py | rgammans/nativeconfig | f8a6b0c541d8c288b4577209336c03a328fe841f | [
"MIT"
] | 6 | 2015-07-07T13:06:54.000Z | 2021-01-01T07:25:44.000Z | nativeconfig/__init__.py | rgammans/nativeconfig | f8a6b0c541d8c288b4577209336c03a328fe841f | [
"MIT"
] | 16 | 2016-12-23T00:50:55.000Z | 2021-07-13T19:45:36.000Z | nativeconfig/__init__.py | rgammans/nativeconfig | f8a6b0c541d8c288b4577209336c03a328fe841f | [
"MIT"
] | 4 | 2015-04-29T19:52:21.000Z | 2020-05-27T10:59:51.000Z | from nativeconfig.configs import *
from nativeconfig.exceptions import *
from nativeconfig.options import *
from nativeconfig.version import VERSION as _VERSION
__version__ = _VERSION
| 26.428571 | 52 | 0.837838 | 21 | 185 | 7.095238 | 0.380952 | 0.42953 | 0.442953 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118919 | 185 | 6 | 53 | 30.833333 | 0.91411 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.8 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
d3b948cc7485ff135ed3d4a1cc15e530f49b5179 | 90 | py | Python | src/gocept/testdb/db.py | risclog-solution/gocept.testdb | 3da1ac8a86e5009f279175adcf6ad21361a35c51 | [
"ZPL-2.1"
] | null | null | null | src/gocept/testdb/db.py | risclog-solution/gocept.testdb | 3da1ac8a86e5009f279175adcf6ad21361a35c51 | [
"ZPL-2.1"
] | null | null | null | src/gocept/testdb/db.py | risclog-solution/gocept.testdb | 3da1ac8a86e5009f279175adcf6ad21361a35c51 | [
"ZPL-2.1"
] | null | null | null | # BBB
from gocept.testdb.postgres import PostgreSQL
from gocept.testdb.mysql import MySQL
| 22.5 | 45 | 0.833333 | 13 | 90 | 5.769231 | 0.615385 | 0.266667 | 0.426667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 90 | 3 | 46 | 30 | 0.9375 | 0.033333 | 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 | 0 | 0 | 0 | 6 |
d3d66c61b81ffbcdbfe44c02ab510e03896ef9c5 | 316 | py | Python | tests/test_address.py | UlordChain/ulordschema | 693b660af834736afa0b3b2d21010a89987afb89 | [
"MIT"
] | 37 | 2018-01-16T13:27:02.000Z | 2018-08-21T06:39:34.000Z | tests/test_address.py | UlordChain/ulordschema | 693b660af834736afa0b3b2d21010a89987afb89 | [
"MIT"
] | 2 | 2018-05-16T08:29:20.000Z | 2018-06-17T04:51:08.000Z | tests/test_address.py | UlordChain/ulordschema | 693b660af834736afa0b3b2d21010a89987afb89 | [
"MIT"
] | 4 | 2018-05-14T11:43:31.000Z | 2018-09-29T09:58:58.000Z | import unittest
# TODO: add it.
class TestMainNetAddressValidation(unittest.TestCase):
pass
class TestTestnetAddressValidation(unittest.TestCase):
pass
class TestSmartDecode(unittest.TestCase):
pass
class TestSmartEncode(unittest.TestCase):
pass
if __name__ == '__main__':
unittest.main()
| 15.8 | 54 | 0.756329 | 30 | 316 | 7.7 | 0.5 | 0.277056 | 0.34632 | 0.324675 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.158228 | 316 | 19 | 55 | 16.631579 | 0.868421 | 0.041139 | 0 | 0.363636 | 0 | 0 | 0.026578 | 0 | 0 | 0 | 0 | 0.052632 | 0 | 1 | 0 | true | 0.363636 | 0.090909 | 0 | 0.454545 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 6 |
318a7da1d18de14f0e7811492e410744e7e653c6 | 17 | py | Python | syn/util/log/__init__.py | mbodenhamer/syn | aeaa3ad8a49bac8f50cf89b6f1fe97ad43d1d258 | [
"MIT"
] | 1 | 2021-07-15T08:55:12.000Z | 2021-07-15T08:55:12.000Z | syn/util/log/__init__.py | mbodenhamer/syn | aeaa3ad8a49bac8f50cf89b6f1fe97ad43d1d258 | [
"MIT"
] | 7 | 2021-01-07T23:51:57.000Z | 2021-12-13T19:50:57.000Z | syn/util/constraint/__init__.py | mbodenhamer/syn | aeaa3ad8a49bac8f50cf89b6f1fe97ad43d1d258 | [
"MIT"
] | 2 | 2016-07-11T08:46:31.000Z | 2017-12-13T13:30:51.000Z | from .b import *
| 8.5 | 16 | 0.647059 | 3 | 17 | 3.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.235294 | 17 | 1 | 17 | 17 | 0.846154 | 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 | 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 | 6 |
3198ead44b827c50490d83ab7b1641a8a4fabf75 | 36 | py | Python | flogging/__init__.py | FragileTech/flogging | e07f74d097b17571998312ca43722a7289cc64e5 | [
"MIT"
] | null | null | null | flogging/__init__.py | FragileTech/flogging | e07f74d097b17571998312ca43722a7289cc64e5 | [
"MIT"
] | 111 | 2021-01-22T13:44:30.000Z | 2022-03-28T04:05:12.000Z | flogging/__init__.py | FragileTech/flogging | e07f74d097b17571998312ca43722a7289cc64e5 | [
"MIT"
] | null | null | null | from flogging.flogging import setup
| 18 | 35 | 0.861111 | 5 | 36 | 6.2 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 36 | 1 | 36 | 36 | 0.96875 | 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 | 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 | 6 |
31c6b50882c010e43e1a75350466de202b553a61 | 82 | py | Python | hnsw/math_test.py | xiangyangkan/hnsw-gpu | bad9f93ce2c3fe28567c2b7674b710d6202c2d37 | [
"Apache-2.0"
] | null | null | null | hnsw/math_test.py | xiangyangkan/hnsw-gpu | bad9f93ce2c3fe28567c2b7674b710d6202c2d37 | [
"Apache-2.0"
] | null | null | null | hnsw/math_test.py | xiangyangkan/hnsw-gpu | bad9f93ce2c3fe28567c2b7674b710d6202c2d37 | [
"Apache-2.0"
] | null | null | null | from hnsw import math
assert math.add(1, 1) == 2
assert math.subtract(1, 1) == 0
| 16.4 | 31 | 0.670732 | 16 | 82 | 3.4375 | 0.625 | 0.363636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089552 | 0.182927 | 82 | 4 | 32 | 20.5 | 0.731343 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.666667 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
31c980510b80a9103a749d6a39d8010b693d5113 | 348 | py | Python | simplenn/metrics/loss/__init__.py | robertocrespond/SimpleNN | ac9b7bd7fdf189666876d52d2af23fe48dbbd372 | [
"MIT"
] | null | null | null | simplenn/metrics/loss/__init__.py | robertocrespond/SimpleNN | ac9b7bd7fdf189666876d52d2af23fe48dbbd372 | [
"MIT"
] | null | null | null | simplenn/metrics/loss/__init__.py | robertocrespond/SimpleNN | ac9b7bd7fdf189666876d52d2af23fe48dbbd372 | [
"MIT"
] | null | null | null | from .binary_cross_entropy import BinaryCrossEntropy # pragma: no cover # noqa: F401
from .categorical_cross_entropy import CategoricalCrossEntropy # pragma: no cover # noqa: F401
from .mean_absolute_error import MeanAbsoluteError # pragma: no cover # noqa: F401
from .mean_squared_error import MeanSquaredError # pr... | 69.6 | 95 | 0.804598 | 44 | 348 | 6.181818 | 0.431818 | 0.117647 | 0.191176 | 0.25 | 0.382353 | 0.305147 | 0.213235 | 0 | 0 | 0 | 0 | 0.04 | 0.137931 | 348 | 4 | 96 | 87 | 0.866667 | 0.33046 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
31d683f3978d2e4b48f08ffad56853d3b6d8424b | 26,399 | py | Python | python/pyxir/frontend/onnx/ops/onnx_l2_convolution.py | Xilinx/pyxir | bef661d6d77adcdbd2cf4163f2cf3a1d31d40406 | [
"Apache-2.0"
] | 25 | 2020-06-17T22:41:13.000Z | 2022-03-22T16:28:22.000Z | python/pyxir/frontend/onnx/ops/onnx_l2_convolution.py | Xilinx/pyxir | bef661d6d77adcdbd2cf4163f2cf3a1d31d40406 | [
"Apache-2.0"
] | 25 | 2021-03-16T06:26:44.000Z | 2022-03-18T11:28:33.000Z | python/pyxir/frontend/onnx/ops/onnx_l2_convolution.py | Xilinx/pyxir | bef661d6d77adcdbd2cf4163f2cf3a1d31d40406 | [
"Apache-2.0"
] | 19 | 2020-07-30T10:03:02.000Z | 2021-06-29T01:18:16.000Z | # Copyright 2020 Xilinx Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 34.553665 | 92 | 0.614948 | 3,882 | 26,399 | 3.901082 | 0.072901 | 0.082607 | 0.053751 | 0.062401 | 0.784271 | 0.753962 | 0.734218 | 0.724842 | 0.702919 | 0.686741 | 0 | 0.013329 | 0.266753 | 26,399 | 763 | 93 | 34.598952 | 0.769024 | 0.087844 | 0 | 0.723549 | 0 | 0 | 0.110819 | 0 | 0 | 0 | 0 | 0.002621 | 0.03413 | 1 | 0.023891 | false | 0 | 0.017065 | 0.001706 | 0.06314 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
9ec9ab20e2d1f011f58cccce3bce47a9fa4d262e | 26 | py | Python | examples/list_subscr.py | igfish/toyvm | bb1ab371a8c71ba01522556235fc9f017c9b6b8f | [
"MIT"
] | null | null | null | examples/list_subscr.py | igfish/toyvm | bb1ab371a8c71ba01522556235fc9f017c9b6b8f | [
"MIT"
] | null | null | null | examples/list_subscr.py | igfish/toyvm | bb1ab371a8c71ba01522556235fc9f017c9b6b8f | [
"MIT"
] | null | null | null | l = [1, 3, 4]
print(l[2])
| 8.666667 | 13 | 0.423077 | 7 | 26 | 1.571429 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0.230769 | 26 | 2 | 14 | 13 | 0.35 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
9ed2a3a3fe90254134fd65478924e48c422d2d7d | 39 | py | Python | django_google_json_style_api/__init__.py | azevakin/django-google-json-style-api | f1d8058ed7ce03368ea36ca333e96e21fa74b2e1 | [
"MIT"
] | 1 | 2021-10-19T20:00:02.000Z | 2021-10-19T20:00:02.000Z | django_google_json_style_api/__init__.py | azevakin/django-google-json-style-api | f1d8058ed7ce03368ea36ca333e96e21fa74b2e1 | [
"MIT"
] | null | null | null | django_google_json_style_api/__init__.py | azevakin/django-google-json-style-api | f1d8058ed7ce03368ea36ca333e96e21fa74b2e1 | [
"MIT"
] | null | null | null | from .requests import PaginatedRequest
| 19.5 | 38 | 0.871795 | 4 | 39 | 8.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102564 | 39 | 1 | 39 | 39 | 0.971429 | 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 | 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 | 6 |
b4257e38a7d947ee3c1a194dda7cb15a43809cf0 | 349 | py | Python | tests/protocol/secondary/d.py | gufolabs/gufo_loader | ffb4e17b2e8f36d938a145d50b7bd27d976f9fce | [
"BSD-3-Clause"
] | 4 | 2022-03-04T07:49:18.000Z | 2022-03-08T07:57:05.000Z | tests/protocol/secondary/d.py | gufolabs/gufo_loader | ffb4e17b2e8f36d938a145d50b7bd27d976f9fce | [
"BSD-3-Clause"
] | null | null | null | tests/protocol/secondary/d.py | gufolabs/gufo_loader | ffb4e17b2e8f36d938a145d50b7bd27d976f9fce | [
"BSD-3-Clause"
] | 1 | 2022-03-08T07:57:07.000Z | 2022-03-08T07:57:07.000Z | # ---------------------------------------------------------------------
# Gufo Labs Loader:
# Imprort from annother module, must be ignored
# ---------------------------------------------------------------------
# Copyright (C) 2022, Gufo Labs
# ---------------------------------------------------------------------
fr... | 34.9 | 71 | 0.275072 | 20 | 349 | 4.8 | 0.8 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012658 | 0.094556 | 349 | 9 | 72 | 38.777778 | 0.291139 | 0.882521 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
b439598790547b3855ac025d056d5c4c9130e1a5 | 12,372 | py | Python | plugins/item_licenses/plugin_tests/item_licenses_test.py | JKitok/girder | 317962d155fc9811d25e5f33bd3e849c4ac96645 | [
"Apache-2.0"
] | 395 | 2015-01-12T19:20:13.000Z | 2022-03-30T05:40:40.000Z | plugins/item_licenses/plugin_tests/item_licenses_test.py | JKitok/girder | 317962d155fc9811d25e5f33bd3e849c4ac96645 | [
"Apache-2.0"
] | 2,388 | 2015-01-01T20:09:19.000Z | 2022-03-29T16:49:14.000Z | plugins/item_licenses/plugin_tests/item_licenses_test.py | JKitok/girder | 317962d155fc9811d25e5f33bd3e849c4ac96645 | [
"Apache-2.0"
] | 177 | 2015-01-04T14:47:00.000Z | 2022-03-25T09:01:51.000Z | # -*- coding: utf-8 -*-
from girder.exceptions import ValidationException
from girder.models.folder import Folder
from girder.models.setting import Setting
from girder.models.user import User
from tests import base
from girder_item_licenses.settings import PluginSettings
def setUpModule():
base.enabledPlugins.ap... | 37.153153 | 95 | 0.529421 | 1,226 | 12,372 | 5.325449 | 0.115824 | 0.061265 | 0.042273 | 0.064022 | 0.761219 | 0.756165 | 0.75448 | 0.75448 | 0.742993 | 0.728749 | 0 | 0.008978 | 0.315794 | 12,372 | 332 | 96 | 37.26506 | 0.762315 | 0.08883 | 0 | 0.707317 | 0 | 0 | 0.165842 | 0 | 0 | 0 | 0 | 0 | 0.268293 | 1 | 0.03252 | false | 0.004065 | 0.02439 | 0 | 0.060976 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
b4769e14110d7033c24b8f62bcd1f21214dfbb99 | 80 | py | Python | nemcore/types/playlist.py | nnnewb/NEMCore | 9fbd8b9358d84c96a43bb98dbecac14b7a2ef8ef | [
"MIT"
] | 7 | 2019-10-14T10:26:49.000Z | 2021-05-14T03:45:57.000Z | nemcore/types/playlist.py | nnnewb/NEMCore | 9fbd8b9358d84c96a43bb98dbecac14b7a2ef8ef | [
"MIT"
] | 2 | 2020-12-14T12:32:06.000Z | 2021-03-13T12:53:50.000Z | nemcore/types/playlist.py | nnnewb/NEMCore | 9fbd8b9358d84c96a43bb98dbecac14b7a2ef8ef | [
"MIT"
] | 1 | 2021-01-07T13:34:07.000Z | 2021-01-07T13:34:07.000Z | from .get_user_playlist_resp import Playlist as P
class Playlist(P):
pass
| 13.333333 | 49 | 0.7625 | 13 | 80 | 4.461538 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1875 | 80 | 5 | 50 | 16 | 0.892308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.333333 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 6 |
81eed39172db7002bde9d558a84236c528c3bae8 | 41 | py | Python | kivymd/uix/dialog/__init__.py | AnEx07/KivyMD | e4004a570ad3f1874b3540cc1b0c243b3037bba8 | [
"MIT"
] | null | null | null | kivymd/uix/dialog/__init__.py | AnEx07/KivyMD | e4004a570ad3f1874b3540cc1b0c243b3037bba8 | [
"MIT"
] | null | null | null | kivymd/uix/dialog/__init__.py | AnEx07/KivyMD | e4004a570ad3f1874b3540cc1b0c243b3037bba8 | [
"MIT"
] | null | null | null | from .dialog import BaseDialog, MDDialog
| 20.5 | 40 | 0.829268 | 5 | 41 | 6.8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121951 | 41 | 1 | 41 | 41 | 0.944444 | 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 | 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 | 6 |
c3158604b898717e71068dffff5f7f6d88c12d10 | 36 | py | Python | src/foremast/awslambda/cloudwatch_log_event/__init__.py | gitter-badger/foremast | 33530438ba5893a1d5cf822a63e03d7ab49dfcd7 | [
"Apache-2.0"
] | null | null | null | src/foremast/awslambda/cloudwatch_log_event/__init__.py | gitter-badger/foremast | 33530438ba5893a1d5cf822a63e03d7ab49dfcd7 | [
"Apache-2.0"
] | null | null | null | src/foremast/awslambda/cloudwatch_log_event/__init__.py | gitter-badger/foremast | 33530438ba5893a1d5cf822a63e03d7ab49dfcd7 | [
"Apache-2.0"
] | null | null | null | from .cloudwatch_log_event import *
| 18 | 35 | 0.833333 | 5 | 36 | 5.6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 36 | 1 | 36 | 36 | 0.875 | 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 | 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 | 6 |
c33969b3494ebb890a3ee67af245045e217e12f2 | 8,039 | py | Python | tests/test_aamp.py | jrbourbeau/stumpy | e9150aeb08a47dbaaa2ba86e00dea46c5baff2a2 | [
"BSD-3-Clause"
] | null | null | null | tests/test_aamp.py | jrbourbeau/stumpy | e9150aeb08a47dbaaa2ba86e00dea46c5baff2a2 | [
"BSD-3-Clause"
] | null | null | null | tests/test_aamp.py | jrbourbeau/stumpy | e9150aeb08a47dbaaa2ba86e00dea46c5baff2a2 | [
"BSD-3-Clause"
] | null | null | null | import numpy as np
import numpy.testing as npt
import pandas as pd
from stumpy import config, aamp
import pytest
import naive
test_data = [
(
np.array([9, 8100, -60, 7], dtype=np.float64),
np.array([584, -11, 23, 79, 1001, 0, -19], dtype=np.float64),
),
(
np.random.uniform(-1000, 10... | 33.635983 | 88 | 0.673716 | 1,356 | 8,039 | 3.66003 | 0.074484 | 0.083417 | 0.108805 | 0.088052 | 0.888777 | 0.871449 | 0.854523 | 0.803748 | 0.78783 | 0.78239 | 0 | 0.025162 | 0.194178 | 8,039 | 238 | 89 | 33.777311 | 0.740969 | 0.030476 | 0 | 0.668421 | 0 | 0 | 0.014403 | 0.005658 | 0 | 0 | 0 | 0 | 0.121053 | 1 | 0.057895 | false | 0 | 0.031579 | 0 | 0.089474 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
c33dc759b4b7571b72fa2ef8e8d3f2ad947f6939 | 19,688 | py | Python | skuba-update/test/unit/skuba_update_test.py | cmurphy/skuba | 14cb03b7374b210cb4633b3d2e25a16e7bfc36e5 | [
"Apache-2.0"
] | null | null | null | skuba-update/test/unit/skuba_update_test.py | cmurphy/skuba | 14cb03b7374b210cb4633b3d2e25a16e7bfc36e5 | [
"Apache-2.0"
] | null | null | null | skuba-update/test/unit/skuba_update_test.py | cmurphy/skuba | 14cb03b7374b210cb4633b3d2e25a16e7bfc36e5 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
# Copyright (c) 2019 SUSE LLC.
#
# 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 r... | 33.144781 | 79 | 0.654866 | 2,351 | 19,688 | 5.211825 | 0.103786 | 0.080797 | 0.042847 | 0.044887 | 0.801518 | 0.769934 | 0.754509 | 0.741941 | 0.707745 | 0.69836 | 0 | 0.013122 | 0.218102 | 19,688 | 593 | 80 | 33.200675 | 0.782837 | 0.030221 | 0 | 0.663386 | 0 | 0 | 0.214383 | 0.099329 | 0 | 0 | 0 | 0 | 0.090551 | 1 | 0.047244 | false | 0 | 0.007874 | 0 | 0.062992 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
5ee80978da9804eecbe2c661ce46cfa5a5c3ede6 | 333 | py | Python | 02. Conditional/034.py | MaksonViini/Aprendendo-Python | 8d8422f793e4ea9f81fa4ed0e4101bcfc2ba3c99 | [
"MIT"
] | 1 | 2020-09-20T23:18:47.000Z | 2020-09-20T23:18:47.000Z | 02. Conditional/034.py | MaksonViini/Aprendendo-Python | 8d8422f793e4ea9f81fa4ed0e4101bcfc2ba3c99 | [
"MIT"
] | null | null | null | 02. Conditional/034.py | MaksonViini/Aprendendo-Python | 8d8422f793e4ea9f81fa4ed0e4101bcfc2ba3c99 | [
"MIT"
] | 1 | 2020-09-20T23:18:49.000Z | 2020-09-20T23:18:49.000Z | # Aumentos múltiplos
salario = float(input("Digite seu salario: "))
if salario > 1250:
print(f"Seu salario e de R$ {salario} e voce teve um aumento de 10%, seu novo salario e de R$ {salario * 1.1:.2f}")
else:
print(f"Seu salario e de R$ {salario} e voce teve um aumento de 10%, seu novo salario e de R$ {salario ... | 55.5 | 120 | 0.672673 | 62 | 333 | 3.612903 | 0.387097 | 0.214286 | 0.178571 | 0.196429 | 0.669643 | 0.669643 | 0.669643 | 0.669643 | 0.669643 | 0.669643 | 0 | 0.05597 | 0.195195 | 333 | 6 | 120 | 55.5 | 0.779851 | 0.054054 | 0 | 0 | 0 | 0.4 | 0.735669 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
5eef5e446e1922c169ce5770f96bdb08b8933d69 | 17,847 | py | Python | openmdao/core/tests/test_getset_vars.py | friedenhe/OpenMDAO | db1d7e22a8bf9f66afa82ec3544b7244d5545f6d | [
"Apache-2.0"
] | 451 | 2015-07-20T11:52:35.000Z | 2022-03-28T08:04:56.000Z | openmdao/core/tests/test_getset_vars.py | friedenhe/OpenMDAO | db1d7e22a8bf9f66afa82ec3544b7244d5545f6d | [
"Apache-2.0"
] | 1,096 | 2015-07-21T03:08:26.000Z | 2022-03-31T11:59:17.000Z | openmdao/core/tests/test_getset_vars.py | friedenhe/OpenMDAO | db1d7e22a8bf9f66afa82ec3544b7244d5545f6d | [
"Apache-2.0"
] | 301 | 2015-07-16T20:02:11.000Z | 2022-03-28T08:04:39.000Z | """Test getting/setting variables and subjacs with promoted/relative/absolute names."""
import unittest
import numpy as np
from openmdao.api import Problem, Group, ExecComp, IndepVarComp, DirectSolver, ParallelGroup
from openmdao.utils.mpi import MPI
try:
from openmdao.vectors.petsc_vector import PETScVector
exce... | 39.837054 | 292 | 0.518462 | 2,411 | 17,847 | 3.756533 | 0.082538 | 0.035773 | 0.059622 | 0.091421 | 0.869935 | 0.859777 | 0.824114 | 0.764271 | 0.72121 | 0.697803 | 0 | 0.036724 | 0.282905 | 17,847 | 447 | 293 | 39.926175 | 0.670964 | 0.08741 | 0 | 0.641638 | 0 | 0.006826 | 0.110265 | 0.001919 | 0 | 0 | 0 | 0 | 0.293515 | 1 | 0.037543 | false | 0 | 0.020478 | 0 | 0.068259 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
5ef0bee1a75047dd1279f417d0bb5d6579a8161c | 158 | py | Python | example_python_package_shim/core.py | Shimwell/example_python_package_shim | ed04d8c4a90f74dd4ddd4fc2c205d8d3858af400 | [
"MIT"
] | null | null | null | example_python_package_shim/core.py | Shimwell/example_python_package_shim | ed04d8c4a90f74dd4ddd4fc2c205d8d3858af400 | [
"MIT"
] | null | null | null | example_python_package_shim/core.py | Shimwell/example_python_package_shim | ed04d8c4a90f74dd4ddd4fc2c205d8d3858af400 | [
"MIT"
] | null | null | null |
def my_name(firstname):
print('my name is ', firstname)
return 'my name is ' + firstname
def multi(number1, number2):
return number1 * number2
| 17.555556 | 36 | 0.670886 | 21 | 158 | 5 | 0.47619 | 0.171429 | 0.152381 | 0.32381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032787 | 0.227848 | 158 | 8 | 37 | 19.75 | 0.827869 | 0 | 0 | 0 | 0 | 0 | 0.140127 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0.2 | 0.8 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
5ef1529950411e6c7142487f9ac8847ab246b20d | 48 | py | Python | src/owmpy/current/__init__.py | ernieIzde8ski/open_weather_mappy | c50629065de85f6d2f4fcf46b741ff3320182a55 | [
"MIT"
] | null | null | null | src/owmpy/current/__init__.py | ernieIzde8ski/open_weather_mappy | c50629065de85f6d2f4fcf46b741ff3320182a55 | [
"MIT"
] | null | null | null | src/owmpy/current/__init__.py | ernieIzde8ski/open_weather_mappy | c50629065de85f6d2f4fcf46b741ff3320182a55 | [
"MIT"
] | null | null | null | from .response import *
from ._classes import *
| 16 | 23 | 0.75 | 6 | 48 | 5.833333 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 48 | 2 | 24 | 24 | 0.875 | 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 | 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 | 6 |
489694da7ed7b43e47e2bc4cd10cc32e1276739c | 213 | py | Python | rooms/admin.py | studentisgss/booking | e0e28f42cf2a466688b4ea3787eb28dbc0980cac | [
"MIT"
] | 7 | 2015-12-11T19:18:39.000Z | 2020-10-30T12:50:19.000Z | rooms/admin.py | studentisgss/booking | e0e28f42cf2a466688b4ea3787eb28dbc0980cac | [
"MIT"
] | 119 | 2015-11-03T22:21:09.000Z | 2021-03-17T21:36:49.000Z | rooms/admin.py | studentisgss/booking | e0e28f42cf2a466688b4ea3787eb28dbc0980cac | [
"MIT"
] | null | null | null | from django.contrib import admin
from rooms.models import *
# Register your models here.
admin.site.register(Room)
admin.site.register(RoomPermission)
admin.site.register(RoomRule)
admin.site.register(Building)
| 21.3 | 35 | 0.812207 | 29 | 213 | 5.965517 | 0.517241 | 0.208092 | 0.393064 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089202 | 213 | 9 | 36 | 23.666667 | 0.891753 | 0.122066 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 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 | 0 | 0 | 0 | 6 |
48fefdfb0cde1a02a33391193ce6e5e7975f0978 | 367 | py | Python | nhtsa/nhtsa_uri.py | wingedw/autoresearch | 1c6bc2a51ec8cdf398f30fe9e583c31f8078761d | [
"Apache-2.0"
] | null | null | null | nhtsa/nhtsa_uri.py | wingedw/autoresearch | 1c6bc2a51ec8cdf398f30fe9e583c31f8078761d | [
"Apache-2.0"
] | null | null | null | nhtsa/nhtsa_uri.py | wingedw/autoresearch | 1c6bc2a51ec8cdf398f30fe9e583c31f8078761d | [
"Apache-2.0"
] | null | null | null | class Endpoint:
year = "https://webapi.nhtsa.gov/api/SafetyRatings?format=json"
make = "https://webapi.nhtsa.gov/api/SafetyRatings/modelyear/{0}?format=json"
model = "https://webapi.nhtsa.gov/api/SafetyRatings/modelyear/{0}/make/{1}?format=json"
report = "https://one.nhtsa.gov/webapi/api/Recalls/vehicle... | 61.166667 | 108 | 0.713896 | 52 | 367 | 5.038462 | 0.403846 | 0.122137 | 0.183206 | 0.217557 | 0.477099 | 0.477099 | 0.343511 | 0.343511 | 0 | 0 | 0 | 0.017804 | 0.081744 | 367 | 5 | 109 | 73.4 | 0.759644 | 0 | 0 | 0 | 0 | 0.4 | 0.79564 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 6 |
5b208fb5e84345f6fd487fe8883f979d37e2db49 | 259 | py | Python | protocol/radar_msgs/msg/__init__.py | Tsinghua-OpenICV/carla_icv_bridge | 4d5f8c26b1847dbb16a81fe43f146bf4a9a8da5e | [
"MIT"
] | null | null | null | protocol/radar_msgs/msg/__init__.py | Tsinghua-OpenICV/carla_icv_bridge | 4d5f8c26b1847dbb16a81fe43f146bf4a9a8da5e | [
"MIT"
] | null | null | null | protocol/radar_msgs/msg/__init__.py | Tsinghua-OpenICV/carla_icv_bridge | 4d5f8c26b1847dbb16a81fe43f146bf4a9a8da5e | [
"MIT"
] | 1 | 2020-12-19T05:48:01.000Z | 2020-12-19T05:48:01.000Z | from ._RadarDetection import *
from ._RadarDetectionArray import *
from ._RadarDetectionStamped import *
from ._RadarErrorStatus import *
from ._RadarStatus import *
from ._RadarTrack import *
from ._RadarTrackArray import *
from ._RadarTrackStamped import *
| 28.777778 | 37 | 0.814672 | 24 | 259 | 8.458333 | 0.416667 | 0.344828 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123552 | 259 | 8 | 38 | 32.375 | 0.894273 | 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 | 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 | 6 |
d28751748698d620fc80909f7f1022f74999e84b | 1,642 | py | Python | electricLineMotor.py | deadrobots/Create-19 | 61861a667938aa74f0c66e423336ec1efe61b448 | [
"MIT"
] | 2 | 2019-01-23T01:49:12.000Z | 2022-02-16T01:19:22.000Z | electricLineMotor.py | deadrobots/Create-19 | 61861a667938aa74f0c66e423336ec1efe61b448 | [
"MIT"
] | 1 | 2019-03-17T18:11:27.000Z | 2019-03-17T18:11:27.000Z | electricLineMotor.py | deadrobots/Create-19 | 61861a667938aa74f0c66e423336ec1efe61b448 | [
"MIT"
] | 1 | 2022-02-16T01:19:02.000Z | 2022-02-16T01:19:02.000Z | import utilities as u
from wallaby import *
import constants as c
def clear_ticks_button():
print ("Waiting for motor to be placed in zero position")
u.wait_for_button()
clear_motor_position_counter(c.electric_line_motor)
def clear_ticks(speed):
count = 0
motor_power(c.electric_line_motor, speed... | 30.407407 | 74 | 0.635201 | 216 | 1,642 | 4.481481 | 0.199074 | 0.210744 | 0.298554 | 0.297521 | 0.771694 | 0.771694 | 0.722107 | 0.722107 | 0.682851 | 0.494835 | 0 | 0.013758 | 0.291717 | 1,642 | 53 | 75 | 30.981132 | 0.818573 | 0 | 0 | 0.674419 | 0 | 0 | 0.028676 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.069767 | false | 0 | 0.069767 | 0 | 0.139535 | 0.023256 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
d28bbda84676a37e98aa6eafca56082b9a123c45 | 205 | py | Python | molecule/default/tests/test_default.py | nekeal/ansible-role-postgresql-db | 197019828f5fa3b724c841cc69f0a4cf67bd61df | [
"MIT"
] | null | null | null | molecule/default/tests/test_default.py | nekeal/ansible-role-postgresql-db | 197019828f5fa3b724c841cc69f0a4cf67bd61df | [
"MIT"
] | null | null | null | molecule/default/tests/test_default.py | nekeal/ansible-role-postgresql-db | 197019828f5fa3b724c841cc69f0a4cf67bd61df | [
"MIT"
] | null | null | null | """Role testing files using testinfra."""
def test_is_postgresql_runnnig_and_enabled(host):
postgresql = host.service('postgresql')
assert postgresql.is_running
assert postgresql.is_enabled
| 22.777778 | 49 | 0.770732 | 25 | 205 | 6.04 | 0.64 | 0.211921 | 0.238411 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141463 | 205 | 8 | 50 | 25.625 | 0.857955 | 0.170732 | 0 | 0 | 0 | 0 | 0.060976 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.25 | false | 0 | 0 | 0 | 0.25 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
d292f94621060d1bc32b8754619bb7c76b54d1c7 | 31 | py | Python | exercios/Mundo 1/1-Primeiros passos com o Python/ex001.py | DarkEyeBr/Python | f45239551d19f49eac35185e4f72b067d5820f3a | [
"MIT"
] | null | null | null | exercios/Mundo 1/1-Primeiros passos com o Python/ex001.py | DarkEyeBr/Python | f45239551d19f49eac35185e4f72b067d5820f3a | [
"MIT"
] | null | null | null | exercios/Mundo 1/1-Primeiros passos com o Python/ex001.py | DarkEyeBr/Python | f45239551d19f49eac35185e4f72b067d5820f3a | [
"MIT"
] | null | null | null | print('\033[34mHello, world!')
| 15.5 | 30 | 0.677419 | 4 | 31 | 5.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172414 | 0.064516 | 31 | 1 | 31 | 31 | 0.551724 | 0 | 0 | 0 | 0 | 0 | 0.677419 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
d2c7ba585785d51d20aa9f96dcab2f9031bb87d3 | 41 | py | Python | tests/roots/test-advanced/apidoc_dummy_package/_apidoc_private_dummy_submodule.py | lalten/apidoc | 4e3dc7aafcb14c0557ac308a27a2a751c0823d9f | [
"BSD-2-Clause"
] | null | null | null | tests/roots/test-advanced/apidoc_dummy_package/_apidoc_private_dummy_submodule.py | lalten/apidoc | 4e3dc7aafcb14c0557ac308a27a2a751c0823d9f | [
"BSD-2-Clause"
] | null | null | null | tests/roots/test-advanced/apidoc_dummy_package/_apidoc_private_dummy_submodule.py | lalten/apidoc | 4e3dc7aafcb14c0557ac308a27a2a751c0823d9f | [
"BSD-2-Clause"
] | null | null | null | def very_private():
return 'private'
| 13.666667 | 20 | 0.682927 | 5 | 41 | 5.4 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.195122 | 41 | 2 | 21 | 20.5 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0.170732 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0 | 0 | 0.5 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 6 |
9617264c8f67b12e53e3fd2a84b383734ce6fe02 | 138 | py | Python | scripts/npc/autogen_2159478.py | hsienjan/SideQuest-Server | 3e88debaf45615b759d999255908f99a15283695 | [
"MIT"
] | null | null | null | scripts/npc/autogen_2159478.py | hsienjan/SideQuest-Server | 3e88debaf45615b759d999255908f99a15283695 | [
"MIT"
] | null | null | null | scripts/npc/autogen_2159478.py | hsienjan/SideQuest-Server | 3e88debaf45615b759d999255908f99a15283695 | [
"MIT"
] | null | null | null | # ParentID: 2159478
# Character field ID when accessed: 910150300
# ObjectID: 1000009
# Object Position X: 1564
# Object Position Y: -321
| 23 | 45 | 0.753623 | 18 | 138 | 5.777778 | 0.888889 | 0.269231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.26087 | 0.166667 | 138 | 5 | 46 | 27.6 | 0.643478 | 0.92029 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
82e7b3ea7def7dac98d180352e6f0d238c444314 | 386 | py | Python | Werewolf/game/roles/Role.py | GeorgeVelikov/Werewolf-Framework | 6a4501cc98cab92111eec2551b9a3d2464adad7f | [
"MIT"
] | 1 | 2021-11-14T16:51:16.000Z | 2021-11-14T16:51:16.000Z | Werewolf/game/roles/Role.py | GeorgeVelikov/Werewolf-Framework | 6a4501cc98cab92111eec2551b9a3d2464adad7f | [
"MIT"
] | null | null | null | Werewolf/game/roles/Role.py | GeorgeVelikov/Werewolf-Framework | 6a4501cc98cab92111eec2551b9a3d2464adad7f | [
"MIT"
] | null | null | null | from Shared.enums.PlayerTypeEnum import PlayerTypeEnum;
class Role():
def __init__(self):
pass;
@property
def Type(self):
return PlayerTypeEnum._None;
@property
def CanTargetDeadPlayers(self):
return False;
@property
def HasDayAction(self):
return False;
... | 17.545455 | 55 | 0.634715 | 37 | 386 | 6.486486 | 0.513514 | 0.183333 | 0.1875 | 0.191667 | 0.216667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.284974 | 386 | 21 | 56 | 18.380952 | 0.869565 | 0 | 0 | 0.4375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3125 | false | 0.0625 | 0.0625 | 0.25 | 0.6875 | 0 | 0 | 0 | 0 | null | 0 | 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 | 1 | 0 | 1 | 1 | 0 | 0 | 6 |
7d7f0fc3fef18173d78098ecb5555dcfc496154d | 6,393 | py | Python | tests/tests.py | joealcorn/django-cursor-pagination | d066d004a8bedfef5aa4c9ffa1fd65e9e760f270 | [
"BSD-3-Clause"
] | null | null | null | tests/tests.py | joealcorn/django-cursor-pagination | d066d004a8bedfef5aa4c9ffa1fd65e9e760f270 | [
"BSD-3-Clause"
] | null | null | null | tests/tests.py | joealcorn/django-cursor-pagination | d066d004a8bedfef5aa4c9ffa1fd65e9e760f270 | [
"BSD-3-Clause"
] | null | null | null | import datetime
from django.test import TestCase
from django.utils import timezone
from cursor_pagination import CursorPaginator, InvalidCursor
from .models import Author, Post
class TestNoArgs(TestCase):
def test_empty(self):
paginator = CursorPaginator(Post.objects.all(), ('id',))
page = pagi... | 37.828402 | 101 | 0.647114 | 780 | 6,393 | 5.207692 | 0.108974 | 0.082718 | 0.066962 | 0.082718 | 0.834072 | 0.815608 | 0.776711 | 0.766864 | 0.759724 | 0.759724 | 0 | 0.018823 | 0.218833 | 6,393 | 168 | 102 | 38.053571 | 0.794553 | 0 | 0 | 0.65942 | 0 | 0 | 0.017519 | 0 | 0 | 0 | 0 | 0 | 0.268116 | 1 | 0.137681 | false | 0 | 0.036232 | 0 | 0.210145 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
7db790d2ad410332bc382aac47b4e4f9a9fb5c87 | 113 | py | Python | src/savoia/config/dir_config.py | Ma-r-co/savoia | d66ddde28d7e0e40d771f3e685e7c6ccadeb18f7 | [
"MIT"
] | 1 | 2020-08-11T03:44:18.000Z | 2020-08-11T03:44:18.000Z | src/savoia/config/dir_config.py | Ma-r-co/savoia | d66ddde28d7e0e40d771f3e685e7c6ccadeb18f7 | [
"MIT"
] | 9 | 2020-07-09T19:24:55.000Z | 2020-07-20T21:26:39.000Z | src/savoia/config/dir_config.py | Ma-r-co/savoia | d66ddde28d7e0e40d771f3e685e7c6ccadeb18f7 | [
"MIT"
] | 1 | 2020-07-17T15:25:42.000Z | 2020-07-17T15:25:42.000Z | OUTPUT_RESULTS_DIR: str = "/Users/makoto/Pywork/output"
CSV_DATA_DIR: str = "/Users/makoto/Pywork/historic-data"
| 37.666667 | 56 | 0.778761 | 17 | 113 | 4.941176 | 0.588235 | 0.142857 | 0.261905 | 0.404762 | 0.547619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070796 | 113 | 2 | 57 | 56.5 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.539823 | 0.539823 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
7de7ecb4ed743fa7c25e150570d9c510e306f08a | 86 | py | Python | dso/dso/task/__init__.py | brendenpetersen/deep-symbolic-optimization | 8724839dab910022e24d03debdf564236683474b | [
"BSD-3-Clause"
] | 134 | 2021-07-06T06:14:02.000Z | 2022-03-31T18:24:08.000Z | dso/dso/task/__init__.py | brendenpetersen/deep-symbolic-optimization | 8724839dab910022e24d03debdf564236683474b | [
"BSD-3-Clause"
] | 15 | 2021-06-10T17:03:09.000Z | 2022-01-21T20:15:35.000Z | dso/dso/task/__init__.py | brendenpetersen/deep-symbolic-optimization | 8724839dab910022e24d03debdf564236683474b | [
"BSD-3-Clause"
] | 44 | 2021-06-26T19:11:28.000Z | 2022-03-25T04:07:41.000Z | from dso.task.task import make_task, set_task, Task, HierarchicalTask, SequentialTask
| 43 | 85 | 0.837209 | 12 | 86 | 5.833333 | 0.666667 | 0.228571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093023 | 86 | 1 | 86 | 86 | 0.897436 | 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 | 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 | 6 |
7deb232dfa31370adab5cfda5b8f44d6b0a89bd6 | 22 | py | Python | config/world/__init__.py | kelceydamage/learning | 40655cb8d6d03ca85178cbfe5d56db9e699c0cff | [
"Apache-2.0"
] | null | null | null | config/world/__init__.py | kelceydamage/learning | 40655cb8d6d03ca85178cbfe5d56db9e699c0cff | [
"Apache-2.0"
] | null | null | null | config/world/__init__.py | kelceydamage/learning | 40655cb8d6d03ca85178cbfe5d56db9e699c0cff | [
"Apache-2.0"
] | null | null | null | from registry import * | 22 | 22 | 0.818182 | 3 | 22 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136364 | 22 | 1 | 22 | 22 | 0.947368 | 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 | 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 | 6 |
81497d8f306b1ed6eeb96451febeac48b5c826e3 | 165 | py | Python | appscanner/model/__init__.py | siteblindado/python-trustwave-appscanner | 7acba76bedd343521fe5d21184b4d6f6be7a8fa1 | [
"MIT"
] | null | null | null | appscanner/model/__init__.py | siteblindado/python-trustwave-appscanner | 7acba76bedd343521fe5d21184b4d6f6be7a8fa1 | [
"MIT"
] | 2 | 2021-03-22T16:55:35.000Z | 2021-12-13T19:34:53.000Z | appscanner/model/__init__.py | siteblindado/python-trustwave-appscanner | 7acba76bedd343521fe5d21184b4d6f6be7a8fa1 | [
"MIT"
] | null | null | null | from .assessment import Assessments
from .assessment_runs import AssessmentRuns, AssessmentRun
from .assessment_run_result import Assessments as AssessmentRunResults | 55 | 70 | 0.890909 | 18 | 165 | 8 | 0.611111 | 0.291667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084848 | 165 | 3 | 70 | 55 | 0.953642 | 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 | 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 | 6 |
81512278dfdfa73dd0915defa732b3b0e7db6af6 | 23 | py | Python | mlhep2019/pivot/__init__.py | Meshreki/mlhep2019 | 7934173666267ee21faa88d939e26cafe8c5323e | [
"MIT"
] | 1 | 2021-09-22T12:51:40.000Z | 2021-09-22T12:51:40.000Z | mlhep2019/pivot/__init__.py | nadiinchi/mlhep2019 | b2ecd75dfd4e7cbc249e5e24202b4d258fe4ca75 | [
"MIT"
] | null | null | null | mlhep2019/pivot/__init__.py | nadiinchi/mlhep2019 | b2ecd75dfd4e7cbc249e5e24202b4d258fe4ca75 | [
"MIT"
] | null | null | null | from .plotting import * | 23 | 23 | 0.782609 | 3 | 23 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 23 | 1 | 23 | 23 | 0.9 | 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 | 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 | 6 |
c4a2b6f447f6c057cce97eb99fb2912c126e15b6 | 27 | py | Python | tapis_cli/commands/taccapis/v2/apps/init/__init__.py | bpachev/tapis-cli | c3128fb5b63ef74e06b737bbd95ef28fb24f0d32 | [
"BSD-3-Clause"
] | 8 | 2020-10-18T22:48:23.000Z | 2022-01-10T09:16:14.000Z | tapis_cli/commands/taccapis/v2/apps/init/__init__.py | bpachev/tapis-cli | c3128fb5b63ef74e06b737bbd95ef28fb24f0d32 | [
"BSD-3-Clause"
] | 238 | 2019-09-04T14:37:54.000Z | 2020-04-15T16:24:24.000Z | tapis_cli/commands/taccapis/v2/apps/init/__init__.py | bpachev/tapis-cli | c3128fb5b63ef74e06b737bbd95ef28fb24f0d32 | [
"BSD-3-Clause"
] | 5 | 2019-09-20T04:23:49.000Z | 2020-01-16T17:45:14.000Z | from .init import AppsInit
| 13.5 | 26 | 0.814815 | 4 | 27 | 5.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148148 | 27 | 1 | 27 | 27 | 0.956522 | 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 | 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 | 6 |
c4a9991898f69ad1ff8ec1c019c0c979cdd91ba8 | 158 | py | Python | app/auth/__init__.py | garryforgit/flasky | 7117023bf69180b8eacae9dde69c621668ddf11d | [
"MIT"
] | null | null | null | app/auth/__init__.py | garryforgit/flasky | 7117023bf69180b8eacae9dde69c621668ddf11d | [
"MIT"
] | null | null | null | app/auth/__init__.py | garryforgit/flasky | 7117023bf69180b8eacae9dde69c621668ddf11d | [
"MIT"
] | null | null | null | # coding:utf8
from flask import Blueprint
auth = Blueprint('auth', __name__) # create blueprint namespace 'auth'
from . import views # import route
| 15.8 | 71 | 0.71519 | 19 | 158 | 5.736842 | 0.631579 | 0.238532 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007937 | 0.202532 | 158 | 9 | 72 | 17.555556 | 0.857143 | 0.367089 | 0 | 0 | 0 | 0 | 0.042553 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0.666667 | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 6 |
c4cbf8993b31f49930a02619e845e4356fc4ca23 | 26 | py | Python | contour/__init__.py | MercenaryLogic/contour | fdff459810043ccac179dfe636303539036960fb | [
"MIT"
] | null | null | null | contour/__init__.py | MercenaryLogic/contour | fdff459810043ccac179dfe636303539036960fb | [
"MIT"
] | null | null | null | contour/__init__.py | MercenaryLogic/contour | fdff459810043ccac179dfe636303539036960fb | [
"MIT"
] | null | null | null |
from rdflib import graph
| 8.666667 | 24 | 0.807692 | 4 | 26 | 5.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192308 | 26 | 2 | 25 | 13 | 1 | 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 | 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 | 6 |
483c719ae86a6d4b4dcb5f83ff0f34dc49570e4e | 3,941 | py | Python | scripts/deprecated/test42.simple_v3_no_terminat_increase_X.py | johnpzh/parallel_ANNS | 36639ddfba66bb38c04a4c3bbccb05c2d30488eb | [
"MIT"
] | 4 | 2020-06-10T02:38:23.000Z | 2022-03-09T08:25:49.000Z | scripts/deprecated/test42.simple_v3_no_terminat_increase_X.py | johnpzh/parallel_ANNS | 36639ddfba66bb38c04a4c3bbccb05c2d30488eb | [
"MIT"
] | null | null | null | scripts/deprecated/test42.simple_v3_no_terminat_increase_X.py | johnpzh/parallel_ANNS | 36639ddfba66bb38c04a4c3bbccb05c2d30488eb | [
"MIT"
] | 1 | 2022-03-09T08:25:52.000Z | 2022-03-09T08:25:52.000Z | #! python3
import os
import sys
import subprocess
if len(sys.argv) != 7:
print(f"{sys.argv[0]} <data_dir> <tag> <num_t> <L_low> <L_up> <X_low>")
# print(f"{sys.argv[0]} <data_dir> <tag>")
exit()
base_dir = sys.argv[1]
tag = sys.argv[2]
num_t = int(sys.argv[3])
L_lower = int(sys.argv[4])
L_upper = int(sys.... | 44.784091 | 135 | 0.673687 | 658 | 3,941 | 3.820669 | 0.144377 | 0.047335 | 0.083532 | 0.107399 | 0.822593 | 0.822593 | 0.822593 | 0.822593 | 0.8035 | 0.8035 | 0 | 0.035354 | 0.145902 | 3,941 | 87 | 136 | 45.298851 | 0.711527 | 0.583608 | 0 | 0 | 0 | 0.09375 | 0.462753 | 0.272096 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.09375 | 0 | 0.09375 | 0.03125 | 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 | 0 | 0 | 6 |
6f93c361fed0deb091b370b634d67168aa2bb9e5 | 111 | py | Python | pricing/__init__.py | codestetic/optionworkshop | f7f8c7ab1744069255da0d156916d0c376137040 | [
"MIT"
] | null | null | null | pricing/__init__.py | codestetic/optionworkshop | f7f8c7ab1744069255da0d156916d0c376137040 | [
"MIT"
] | null | null | null | pricing/__init__.py | codestetic/optionworkshop | f7f8c7ab1744069255da0d156916d0c376137040 | [
"MIT"
] | null | null | null | from .models import black_scholes
from .models.black_scholes import *
from .iv import *
from .context import *
| 22.2 | 35 | 0.783784 | 16 | 111 | 5.3125 | 0.4375 | 0.235294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144144 | 111 | 4 | 36 | 27.75 | 0.894737 | 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 | 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 | 6 |
6fe0051c8bb5e857b21dc941d53ef89b3357f689 | 36 | py | Python | wroclaw_building_footprint/__init__.py | Greenpp/wroc-build | d59a675c5da904b75ff74b4edaadf4cdce9c3418 | [
"MIT"
] | null | null | null | wroclaw_building_footprint/__init__.py | Greenpp/wroc-build | d59a675c5da904b75ff74b4edaadf4cdce9c3418 | [
"MIT"
] | null | null | null | wroclaw_building_footprint/__init__.py | Greenpp/wroc-build | d59a675c5da904b75ff74b4edaadf4cdce9c3418 | [
"MIT"
] | null | null | null | from .segmentator import Segmentator | 36 | 36 | 0.888889 | 4 | 36 | 8 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 36 | 1 | 36 | 36 | 0.969697 | 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 | 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 | 6 |
b5150969c57e93e11763f625bf3c57557da287bd | 7,786 | py | Python | Runs/simulationRuns.py | lsiemens/QBox | ef43c9bbc5f8437fb4d44fbf0e58e29a8e0b1b39 | [
"BSD-3-Clause"
] | 3 | 2019-03-15T01:34:42.000Z | 2020-05-09T15:25:39.000Z | Runs/simulationRuns.py | lsiemens/QBox | ef43c9bbc5f8437fb4d44fbf0e58e29a8e0b1b39 | [
"BSD-3-Clause"
] | 3 | 2019-02-19T00:34:45.000Z | 2020-01-10T04:57:07.000Z | Runs/simulationRuns.py | lsiemens/QBox | ef43c9bbc5f8437fb4d44fbf0e58e29a8e0b1b39 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
import sys
sys.path.insert(0, "../QBoxSolver")
import QBHD
import numpy
from pathlib import Path
from matplotlib import pyplot
resolution = 512
numberOfGrids = 5
maxNumberOfStates = 1024
length = 20.0 # hartree length units
mass = 1 # hartree mass units
omega = 1
wallHeight = 50 # hartree en... | 42.086486 | 285 | 0.704983 | 998 | 7,786 | 5.49499 | 0.10521 | 0.170678 | 0.091904 | 0.098468 | 0.806163 | 0.799599 | 0.776076 | 0.760394 | 0.746718 | 0.746718 | 0 | 0.035498 | 0.149756 | 7,786 | 184 | 286 | 42.315217 | 0.7929 | 0.020164 | 0 | 0.546667 | 0 | 0 | 0.003936 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086667 | false | 0 | 0.033333 | 0 | 0.126667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
d216984bd20f21e76860a85300cac3e13e142bf7 | 21,198 | py | Python | knowledge/views.py | nuwainfo/treeio | f57bf9114d9774c11468a1b0e44614b04631beb1 | [
"MIT"
] | null | null | null | knowledge/views.py | nuwainfo/treeio | f57bf9114d9774c11468a1b0e44614b04631beb1 | [
"MIT"
] | null | null | null | knowledge/views.py | nuwainfo/treeio | f57bf9114d9774c11468a1b0e44614b04631beb1 | [
"MIT"
] | null | null | null | # encoding: utf-8
# Copyright 2011 Tree.io Limited
# This file is part of Treeio.
# License www.tree.io/license
"""
Knowledge Base module views
"""
from django.db.models import Q
from django.template import RequestContext
from django.core.urlresolvers import reverse
from django.http import HttpResponseRedirect
from dj... | 37.585106 | 105 | 0.646901 | 2,202 | 21,198 | 6.010445 | 0.072661 | 0.068757 | 0.037023 | 0.055535 | 0.821987 | 0.801511 | 0.772875 | 0.756328 | 0.717189 | 0.692558 | 0 | 0.0032 | 0.262808 | 21,198 | 563 | 106 | 37.651865 | 0.843732 | 0.035852 | 0 | 0.669704 | 0 | 0 | 0.103633 | 0.021563 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045558 | false | 0.002278 | 0.027335 | 0 | 0.189066 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
d21a7fa06bb1d7d041ef1112f309c4c49769cad8 | 16,297 | py | Python | test/unit_tests/datautil/test_serialization.py | lapaill/braindecode | d5d6e34baef1c8df092e77d1f3e757b53d0e69ea | [
"BSD-3-Clause"
] | 301 | 2020-01-15T16:40:59.000Z | 2022-03-31T05:28:00.000Z | test/unit_tests/datautil/test_serialization.py | lapaill/braindecode | d5d6e34baef1c8df092e77d1f3e757b53d0e69ea | [
"BSD-3-Clause"
] | 325 | 2020-01-12T21:36:55.000Z | 2022-03-21T11:59:01.000Z | test/unit_tests/datautil/test_serialization.py | lapaill/braindecode | d5d6e34baef1c8df092e77d1f3e757b53d0e69ea | [
"BSD-3-Clause"
] | 98 | 2020-01-12T21:22:42.000Z | 2022-03-24T14:36:08.000Z | # Authors: Lukas Gemein <l.gemein@gmail.com>
#
# License: BSD-3
import os
import pytest
import numpy as np
import pandas as pd
from braindecode.datasets import BaseConcatDataset, MOABBDataset
from braindecode.preprocessing import (
create_windows_from_events, Preprocessor, preprocess)
from braindecode.datautil.s... | 48.35905 | 94 | 0.700804 | 2,082 | 16,297 | 5.157541 | 0.096061 | 0.110169 | 0.162041 | 0.048892 | 0.865338 | 0.825945 | 0.784038 | 0.753306 | 0.729838 | 0.698827 | 0 | 0.005288 | 0.210959 | 16,297 | 336 | 95 | 48.502976 | 0.829769 | 0.033564 | 0 | 0.617857 | 0 | 0 | 0.106049 | 0.01417 | 0 | 0 | 0 | 0 | 0.203571 | 1 | 0.067857 | false | 0 | 0.025 | 0.003571 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
d26c624b11aaa57a81f3cea9032373c9a6469933 | 68 | py | Python | tests/conftest.py | jsbeckwith/unweaver | a4ba9e4e288c75e93bf7f9d67bc11680f09c3da0 | [
"Apache-2.0"
] | 4 | 2019-04-24T16:38:57.000Z | 2021-12-28T20:38:08.000Z | tests/conftest.py | jsbeckwith/unweaver | a4ba9e4e288c75e93bf7f9d67bc11680f09c3da0 | [
"Apache-2.0"
] | 3 | 2021-06-02T04:06:33.000Z | 2021-11-02T01:47:20.000Z | tests/conftest.py | jsbeckwith/unweaver | a4ba9e4e288c75e93bf7f9d67bc11680f09c3da0 | [
"Apache-2.0"
] | 1 | 2020-08-13T04:42:05.000Z | 2020-08-13T04:42:05.000Z | from .fixtures import built_G, built_G_weighted, test_waypoint_legs
| 34 | 67 | 0.867647 | 11 | 68 | 4.909091 | 0.818182 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088235 | 68 | 1 | 68 | 68 | 0.870968 | 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 | 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 | 6 |
963000c4e912be28722dc48fd1100ef0bf1c1260 | 47 | py | Python | toponimos_peru/models/__init__.py | juazisco/gestion_rifa | bce6b75f17cb5ab2df7e2f7dd5141fc85a1a5bfb | [
"MIT"
] | null | null | null | toponimos_peru/models/__init__.py | juazisco/gestion_rifa | bce6b75f17cb5ab2df7e2f7dd5141fc85a1a5bfb | [
"MIT"
] | null | null | null | toponimos_peru/models/__init__.py | juazisco/gestion_rifa | bce6b75f17cb5ab2df7e2f7dd5141fc85a1a5bfb | [
"MIT"
] | null | null | null | from . import res_country, res_partner # noqa
| 23.5 | 46 | 0.765957 | 7 | 47 | 4.857143 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170213 | 47 | 1 | 47 | 47 | 0.871795 | 0.085106 | 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 | 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 | 6 |
9693dc1b8c34a8da3963db46b005a2d6e2552aee | 98 | py | Python | 5-tests/blog_app/utils.py | rcmgn/kts-school-backend | 8a895043b7f0156ec49554504198b631df41d2cd | [
"MIT"
] | 9 | 2021-02-04T07:00:59.000Z | 2022-03-21T06:28:27.000Z | 5-tests/blog_app/utils.py | rcmgn/kts-school-backend | 8a895043b7f0156ec49554504198b631df41d2cd | [
"MIT"
] | null | null | null | 5-tests/blog_app/utils.py | rcmgn/kts-school-backend | 8a895043b7f0156ec49554504198b631df41d2cd | [
"MIT"
] | 4 | 2021-10-20T18:44:22.000Z | 2022-02-16T19:11:49.000Z | import datetime
from dateutil import tz
def now():
return datetime.datetime.now(tz=tz.UTC)
| 12.25 | 43 | 0.734694 | 15 | 98 | 4.8 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173469 | 98 | 7 | 44 | 14 | 0.888889 | 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 | 0 | 0 | 0 | 6 |
969ec1661e53478f29892f69799a29ee07ad3707 | 34 | py | Python | CodeWars/8 Kyu/get ascii value of character.py | anubhab-code/Competitive-Programming | de28cb7d44044b9e7d8bdb475da61e37c018ac35 | [
"MIT"
] | null | null | null | CodeWars/8 Kyu/get ascii value of character.py | anubhab-code/Competitive-Programming | de28cb7d44044b9e7d8bdb475da61e37c018ac35 | [
"MIT"
] | null | null | null | CodeWars/8 Kyu/get ascii value of character.py | anubhab-code/Competitive-Programming | de28cb7d44044b9e7d8bdb475da61e37c018ac35 | [
"MIT"
] | null | null | null | def get_ascii(c):
return ord(c) | 17 | 17 | 0.676471 | 7 | 34 | 3.142857 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 34 | 2 | 18 | 17 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
739ad2f27de1a23400099cd4e7d53b72dab71c01 | 61 | py | Python | polus-cell-nuclei-segmentation/src/dsb2018_topcoders/albu/src/bowl_eval.py | nishaq503/polus-plugins-dl | 511689e82eb29a84761538144277d1be1af7aa44 | [
"MIT"
] | null | null | null | polus-cell-nuclei-segmentation/src/dsb2018_topcoders/albu/src/bowl_eval.py | nishaq503/polus-plugins-dl | 511689e82eb29a84761538144277d1be1af7aa44 | [
"MIT"
] | 1 | 2021-09-09T23:22:16.000Z | 2021-09-09T23:22:16.000Z | polus-cell-nuclei-segmentation/src/dsb2018_topcoders/albu/src/bowl_eval.py | nishaq503/polus-plugins-dl | 511689e82eb29a84761538144277d1be1af7aa44 | [
"MIT"
] | 4 | 2021-06-22T13:54:52.000Z | 2022-01-26T19:23:39.000Z | from bowl_train import eval_bowl
import torch
eval_bowl() | 15.25 | 33 | 0.803279 | 10 | 61 | 4.6 | 0.6 | 0.347826 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163934 | 61 | 4 | 34 | 15.25 | 0.901961 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.