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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0eec9d3074b439e55c9718c0b6f3f23b0eb54adb | 1,906 | py | Python | autocnet/matcher/cuda_matcher.py | gsn9/autocnet | ddcca3ce3a6b59f720804bb3da03857efa4ff534 | [
"CC0-1.0"
] | null | null | null | autocnet/matcher/cuda_matcher.py | gsn9/autocnet | ddcca3ce3a6b59f720804bb3da03857efa4ff534 | [
"CC0-1.0"
] | 1 | 2018-09-13T16:03:53.000Z | 2018-09-13T16:03:53.000Z | autocnet/matcher/cuda_matcher.py | gsn9/autocnet | ddcca3ce3a6b59f720804bb3da03857efa4ff534 | [
"CC0-1.0"
] | 1 | 2018-09-13T15:12:51.000Z | 2018-09-13T15:12:51.000Z | import warnings
try:
import cudasift as cs
except:
cs = None
import numpy as np
import pandas as pd
def match(edge, aidx=None, bidx=None, **kwargs):
"""
Apply a composite CUDA matcher and ratio check. If this method is used,
no additional ratio check is necessary and no symmetry check is requir... | 35.962264 | 77 | 0.707765 | 275 | 1,906 | 4.76 | 0.381818 | 0.027502 | 0.018335 | 0.012223 | 0.082506 | 0.082506 | 0.032086 | 0.032086 | 0 | 0 | 0 | 0.001303 | 0.194648 | 1,906 | 52 | 78 | 36.653846 | 0.851466 | 0.272823 | 0 | 0 | 0 | 0 | 0.060651 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0.133333 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0eed2f6be467201cff2adf42d27d251ad3cba2b3 | 1,339 | py | Python | tests/test_core.py | Kantouzin/brainfuck | 812834320b080e2317d3fac377db64782057c8f4 | [
"WTFPL"
] | null | null | null | tests/test_core.py | Kantouzin/brainfuck | 812834320b080e2317d3fac377db64782057c8f4 | [
"WTFPL"
] | null | null | null | tests/test_core.py | Kantouzin/brainfuck | 812834320b080e2317d3fac377db64782057c8f4 | [
"WTFPL"
] | null | null | null | # coding: utf-8
import unittest
from test.support import captured_stdout
from brainfuck import BrainFuck
class TestCore(unittest.TestCase):
def test_hello_world(self):
bf = BrainFuck()
with captured_stdout() as stdout:
bf.run()
self.assertEqual(stdout.getvalue(), "Hello, wo... | 24.345455 | 68 | 0.546677 | 153 | 1,339 | 4.588235 | 0.385621 | 0.119658 | 0.128205 | 0.08547 | 0.254986 | 0.254986 | 0.254986 | 0.254986 | 0.202279 | 0.202279 | 0 | 0.013129 | 0.317401 | 1,339 | 54 | 69 | 24.796296 | 0.754923 | 0.009709 | 0 | 0.305556 | 0 | 0 | 0.095166 | 0.036254 | 0 | 0 | 0 | 0 | 0.083333 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.194444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0eed82297822ff3d19f2f5807a4ad2a8d7e8d1d9 | 4,531 | py | Python | examples/references/segmentation/pascal_voc2012/code/dataflow/dataloaders.py | kagrze/ignite | 18708a76f86623545311d35bc48673eac9e55591 | [
"BSD-3-Clause"
] | null | null | null | examples/references/segmentation/pascal_voc2012/code/dataflow/dataloaders.py | kagrze/ignite | 18708a76f86623545311d35bc48673eac9e55591 | [
"BSD-3-Clause"
] | null | null | null | examples/references/segmentation/pascal_voc2012/code/dataflow/dataloaders.py | kagrze/ignite | 18708a76f86623545311d35bc48673eac9e55591 | [
"BSD-3-Clause"
] | null | null | null | from typing import Callable, Optional, Tuple, Union
import numpy as np
from torch.utils.data import DataLoader, Sampler
from torch.utils.data.dataset import Subset, ConcatDataset
import torch.utils.data.distributed as data_dist
from dataflow.datasets import get_train_dataset, get_val_dataset, TransformedDataset, get... | 43.990291 | 116 | 0.637387 | 546 | 4,531 | 4.948718 | 0.155678 | 0.041451 | 0.026647 | 0.03849 | 0.330126 | 0.215766 | 0.180977 | 0.15433 | 0.136936 | 0.136936 | 0 | 0.002177 | 0.290223 | 4,531 | 102 | 117 | 44.421569 | 0.837998 | 0.010814 | 0 | 0.171053 | 0 | 0 | 0.015179 | 0 | 0 | 0 | 0 | 0 | 0.039474 | 1 | 0.026316 | false | 0 | 0.078947 | 0 | 0.131579 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0eef441f20577a797d6570e849cc35b3e4804f14 | 6,309 | py | Python | saleor/core/jwt.py | autobotasia/saleor | e03e9f6ab1bddac308a6609d6b576a87e90ae655 | [
"CC-BY-4.0"
] | 1 | 2022-02-19T13:27:40.000Z | 2022-02-19T13:27:40.000Z | saleor/core/jwt.py | autobotasia/saleor | e03e9f6ab1bddac308a6609d6b576a87e90ae655 | [
"CC-BY-4.0"
] | null | null | null | saleor/core/jwt.py | autobotasia/saleor | e03e9f6ab1bddac308a6609d6b576a87e90ae655 | [
"CC-BY-4.0"
] | 2 | 2021-12-03T16:59:37.000Z | 2022-02-19T13:05:42.000Z | from datetime import datetime, timedelta
from typing import Any, Dict, Optional
import graphene
import jwt
from django.conf import settings
from django.core.handlers.wsgi import WSGIRequest
from ..account.models import User
from ..app.models import App
from .permissions import (
get_permission_names,
get_perm... | 30.926471 | 84 | 0.703598 | 815 | 6,309 | 5.161963 | 0.181595 | 0.016639 | 0.02377 | 0.026147 | 0.282387 | 0.231281 | 0.156881 | 0.09294 | 0.09294 | 0.09294 | 0 | 0.001401 | 0.208274 | 6,309 | 203 | 85 | 31.078818 | 0.840841 | 0.058012 | 0 | 0.22293 | 0 | 0 | 0.067174 | 0.00423 | 0 | 0 | 0 | 0 | 0 | 1 | 0.089172 | false | 0 | 0.057325 | 0.012739 | 0.261147 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0eef6d139660d7b5753e9bf6938554e0499dccc1 | 3,513 | py | Python | locust/configuration.py | pancaprima/locust | dba803fcdd13ff2fada4e8b8ee37a163aa519a48 | [
"MIT"
] | 1 | 2018-09-03T10:05:55.000Z | 2018-09-03T10:05:55.000Z | locust/configuration.py | pancaprima/locust | dba803fcdd13ff2fada4e8b8ee37a163aa519a48 | [
"MIT"
] | 14 | 2017-09-20T11:01:44.000Z | 2020-02-21T18:37:58.000Z | locust/configuration.py | erlanggakrisnamukti/locust | dba803fcdd13ff2fada4e8b8ee37a163aa519a48 | [
"MIT"
] | 3 | 2018-01-24T09:39:56.000Z | 2018-08-24T06:30:23.000Z | import os, json, logging, jsonpath_rw_ext, jsonpath_rw
from jsonpath_rw import jsonpath, parse
from . import events
from ast import literal_eval
from flask import make_response
logger = logging.getLogger(__name__)
CONFIG_PATH = '/tests/settings/config.json'
class ClientConfiguration:
"""
This class is a handl... | 34.782178 | 114 | 0.562767 | 397 | 3,513 | 4.811083 | 0.314861 | 0.036649 | 0.036649 | 0.018848 | 0.112042 | 0.035602 | 0 | 0 | 0 | 0 | 0 | 0.00563 | 0.342727 | 3,513 | 100 | 115 | 35.13 | 0.821568 | 0.105038 | 0 | 0.161765 | 0 | 0 | 0.033124 | 0.008943 | 0 | 0 | 0 | 0 | 0 | 1 | 0.073529 | false | 0.014706 | 0.073529 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0ef004434fa16f22e39f1c30a252704c35a2362e | 2,034 | py | Python | compute_pi.py | jakobkogler/pi_memorize | c82c24f26407f1728ad1e73851b72dea9bf779f6 | [
"MIT"
] | null | null | null | compute_pi.py | jakobkogler/pi_memorize | c82c24f26407f1728ad1e73851b72dea9bf779f6 | [
"MIT"
] | null | null | null | compute_pi.py | jakobkogler/pi_memorize | c82c24f26407f1728ad1e73851b72dea9bf779f6 | [
"MIT"
] | null | null | null | """Compute pi."""
from decimal import Decimal, getcontext
import argparse
import itertools
class ComputePi:
"""Compute pi to a specific precision using multiple algorithms."""
@staticmethod
def BBP(precision):
"""Compute pi using the Bailey-Borwein-Plouffe formula."""
getcontext().prec = ... | 29.478261 | 102 | 0.564897 | 257 | 2,034 | 4.346304 | 0.373541 | 0.03581 | 0.032229 | 0.034915 | 0.119964 | 0.094897 | 0.094897 | 0.094897 | 0.094897 | 0.094897 | 0 | 0.04446 | 0.303343 | 2,034 | 68 | 103 | 29.911765 | 0.743825 | 0.176991 | 0 | 0.108696 | 0 | 0 | 0.052696 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065217 | false | 0 | 0.065217 | 0 | 0.217391 | 0.021739 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0ef0299af0be6f4403ddbf6bc9801b26ba188122 | 1,657 | py | Python | scripts/01_deploy_data_types.py | LaMemeBete/nodys-smart-contract | f67b88d98ebf7063b72f46cb2b014d5de96eb56d | [
"MIT",
"Unlicense"
] | null | null | null | scripts/01_deploy_data_types.py | LaMemeBete/nodys-smart-contract | f67b88d98ebf7063b72f46cb2b014d5de96eb56d | [
"MIT",
"Unlicense"
] | null | null | null | scripts/01_deploy_data_types.py | LaMemeBete/nodys-smart-contract | f67b88d98ebf7063b72f46cb2b014d5de96eb56d | [
"MIT",
"Unlicense"
] | null | null | null | #!/usr/bin/python3
import time
from brownie import (
DataTypes,
TransparentUpgradeableProxy,
ProxyAdmin,
config,
network,
Contract,
)
from scripts.helpful_scripts import get_account, encode_function_data
def main():
account = get_account()
print(config["networks"][network.show_active()... | 35.255319 | 93 | 0.692818 | 192 | 1,657 | 5.776042 | 0.411458 | 0.064923 | 0.076646 | 0.090171 | 0.368801 | 0.309288 | 0.309288 | 0.309288 | 0.309288 | 0.309288 | 0 | 0.013595 | 0.200966 | 1,657 | 46 | 94 | 36.021739 | 0.824018 | 0.250453 | 0 | 0.176471 | 0 | 0 | 0.140308 | 0.018654 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029412 | false | 0 | 0.088235 | 0 | 0.117647 | 0.088235 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0ef0869b952bf4b7857333b5caa682157e430b0a | 659 | py | Python | modules/BidirectionalLSTM.py | omni-us/pytorch-retinanet | 8d3ee38d50df0afec2ab4dfa0eabb8219eb399f5 | [
"Apache-2.0"
] | 12 | 2019-08-14T13:32:30.000Z | 2022-03-09T15:25:33.000Z | modules/BidirectionalLSTM.py | omni-us/pytorch-retinanet | 8d3ee38d50df0afec2ab4dfa0eabb8219eb399f5 | [
"Apache-2.0"
] | 2 | 2019-12-29T21:15:00.000Z | 2020-01-14T13:51:54.000Z | modules/BidirectionalLSTM.py | omni-us/pytorch-retinanet | 8d3ee38d50df0afec2ab4dfa0eabb8219eb399f5 | [
"Apache-2.0"
] | 6 | 2019-08-03T16:22:41.000Z | 2020-09-27T16:55:40.000Z | import torch.nn as nn
class BidirectionalLSTM(nn.Module):
# Module to extract BLSTM features from convolutional feature map
def __init__(self, nIn, nHidden, nOut):
super(BidirectionalLSTM, self).__init__()
self.rnn = nn.LSTM(nIn, nHidden, bidirectional=True)
self.embedding = nn.Linear... | 28.652174 | 69 | 0.614568 | 85 | 659 | 4.635294 | 0.494118 | 0.020305 | 0.015228 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004141 | 0.267071 | 659 | 22 | 70 | 29.954545 | 0.811594 | 0.116844 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.066667 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0ef1f7b69f59398c929a14885bdad0d62cb19dca | 5,173 | py | Python | main.py | JaekwangCha/my_pytorch_templet | 7b6b67116e9d69abd64631d90b38fedc79be6c8c | [
"MIT"
] | null | null | null | main.py | JaekwangCha/my_pytorch_templet | 7b6b67116e9d69abd64631d90b38fedc79be6c8c | [
"MIT"
] | null | null | null | main.py | JaekwangCha/my_pytorch_templet | 7b6b67116e9d69abd64631d90b38fedc79be6c8c | [
"MIT"
] | null | null | null | # written by Jaekwang Cha
# version 0.1
# ================== IMPORT CUSTOM LEARNING LIBRARIES ===================== #
from customs.train import train, test
from customs.dataset import load_dataset
from customs.model import load_model
# ================== TRAINING SETTINGS ================== #
import argparse... | 52.785714 | 159 | 0.605838 | 606 | 5,173 | 5.008251 | 0.237624 | 0.062273 | 0.117628 | 0.013839 | 0.233937 | 0.158155 | 0.123229 | 0.085008 | 0.059967 | 0.036903 | 0 | 0.005554 | 0.234293 | 5,173 | 97 | 160 | 53.329897 | 0.760667 | 0.081577 | 0 | 0.104478 | 0 | 0 | 0.236791 | 0.005176 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029851 | false | 0 | 0.104478 | 0 | 0.149254 | 0.149254 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0ef37debe8fbb6d99817c5ad659e3ff1f210c644 | 4,812 | py | Python | test/core/024-sc4-gridftp-http/Rosetta.py | ahnitz/pegasus | e269b460f4d87eb3f3a7e91cd82e2c28fdb55573 | [
"Apache-2.0"
] | 127 | 2015-01-28T19:19:13.000Z | 2022-03-31T05:57:40.000Z | test/core/024-sc4-gridftp-http/Rosetta.py | ahnitz/pegasus | e269b460f4d87eb3f3a7e91cd82e2c28fdb55573 | [
"Apache-2.0"
] | 14 | 2015-04-15T17:44:20.000Z | 2022-02-22T22:48:49.000Z | test/core/024-sc4-gridftp-http/Rosetta.py | ahnitz/pegasus | e269b460f4d87eb3f3a7e91cd82e2c28fdb55573 | [
"Apache-2.0"
] | 70 | 2015-01-22T15:20:32.000Z | 2022-02-21T22:50:23.000Z | #!/usr/bin/env python3
import logging
import sys
import subprocess
from pathlib import Path
from datetime import datetime
from Pegasus.api import *
logging.basicConfig(level=logging.DEBUG)
# --- Work Dir Setup -----------------------------------------------------------
RUN_ID = "024-sc4-gridftp-http-" + datetime.no... | 24.932642 | 86 | 0.588113 | 566 | 4,812 | 4.848057 | 0.333922 | 0.02551 | 0.032799 | 0.016035 | 0.109694 | 0.095481 | 0.054665 | 0 | 0 | 0 | 0 | 0.01207 | 0.208022 | 4,812 | 192 | 87 | 25.0625 | 0.707951 | 0.104323 | 0 | 0.133333 | 0 | 0.006667 | 0.374012 | 0.067411 | 0 | 0 | 0 | 0 | 0.006667 | 1 | 0.006667 | false | 0.006667 | 0.04 | 0 | 0.046667 | 0.026667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0ef3a6ff8273269894257cdbba761bebf9bbfde6 | 5,787 | py | Python | qiskit/visualization/pulse_v2/device_info.py | godspeed5/qiskit-terra | a5d87c3e4a663ab962704585fba0caef15061246 | [
"Apache-2.0"
] | 15 | 2020-06-29T08:33:39.000Z | 2022-02-12T00:28:51.000Z | qiskit/visualization/pulse_v2/device_info.py | godspeed5/qiskit-terra | a5d87c3e4a663ab962704585fba0caef15061246 | [
"Apache-2.0"
] | 4 | 2020-11-27T09:34:13.000Z | 2021-04-30T21:13:41.000Z | qiskit/visualization/pulse_v2/device_info.py | godspeed5/qiskit-terra | a5d87c3e4a663ab962704585fba0caef15061246 | [
"Apache-2.0"
] | 11 | 2020-06-29T08:40:24.000Z | 2022-02-24T17:39:16.000Z | # This code is part of Qiskit.
#
# (C) Copyright IBM 2020.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative wo... | 39.910345 | 96 | 0.681355 | 708 | 5,787 | 5.451977 | 0.333333 | 0.037306 | 0.042746 | 0.014767 | 0.148705 | 0.134715 | 0.082383 | 0.082383 | 0.062694 | 0.062694 | 0 | 0.004832 | 0.249006 | 5,787 | 144 | 97 | 40.1875 | 0.883341 | 0.444272 | 0 | 0.067797 | 0 | 0 | 0.003291 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.101695 | false | 0.016949 | 0.084746 | 0 | 0.305085 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0ef3c67e54e013586a797d3526f9d748c2da9ba4 | 8,401 | py | Python | django_gotolong/mfund/views.py | ParikhKadam/gotolong | 839beb8aa37055a2078eaa289b8ae05b62e8905e | [
"BSD-2-Clause",
"BSD-3-Clause"
] | 15 | 2019-12-06T16:19:45.000Z | 2021-08-20T13:22:22.000Z | django_gotolong/mfund/views.py | ParikhKadam/gotolong | 839beb8aa37055a2078eaa289b8ae05b62e8905e | [
"BSD-2-Clause",
"BSD-3-Clause"
] | 14 | 2020-12-08T10:45:05.000Z | 2021-09-21T17:23:45.000Z | django_gotolong/mfund/views.py | ParikhKadam/gotolong | 839beb8aa37055a2078eaa289b8ae05b62e8905e | [
"BSD-2-Clause",
"BSD-3-Clause"
] | 9 | 2020-01-01T03:04:29.000Z | 2021-04-18T08:42:30.000Z | # Create your views here.
from .models import Mfund
import plotly.graph_objects as go
from plotly.offline import plot
from plotly.tools import make_subplots
from django.db.models import Q
from django.conf import settings
from django.shortcuts import redirect
from django.contrib.auth.decorators import login_require... | 31.464419 | 104 | 0.644209 | 1,067 | 8,401 | 4.811621 | 0.170572 | 0.025711 | 0.043631 | 0.036813 | 0.625438 | 0.600701 | 0.588625 | 0.582976 | 0.580639 | 0.580639 | 0 | 0.003638 | 0.247352 | 8,401 | 266 | 105 | 31.582707 | 0.808319 | 0.037019 | 0 | 0.565217 | 0 | 0 | 0.06774 | 0.002972 | 0 | 0 | 0 | 0 | 0 | 1 | 0.11413 | false | 0 | 0.11413 | 0.01087 | 0.429348 | 0.065217 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0ef63c39ffdfa491eb48d1233a4ab5b8fb12a49a | 5,444 | py | Python | m3u8.py | akria00/m3u8-Downloader-master | 37bf4683b0390998a819d0bb5b8af18ffb2166f6 | [
"Apache-2.0"
] | 2 | 2020-01-10T20:31:12.000Z | 2020-03-04T19:34:15.000Z | m3u8.py | akria00/m3u8-Downloader-master | 37bf4683b0390998a819d0bb5b8af18ffb2166f6 | [
"Apache-2.0"
] | null | null | null | m3u8.py | akria00/m3u8-Downloader-master | 37bf4683b0390998a819d0bb5b8af18ffb2166f6 | [
"Apache-2.0"
] | 1 | 2019-04-19T08:04:05.000Z | 2019-04-19T08:04:05.000Z | #coding: utf-8
from gevent import monkey
monkey.patch_all()
from gevent.pool import Pool
import gevent
import requests
import urllib
import os
import time
import re
import ssl
class Downloader:
def __init__(self, pool_size, retry=3):
self.pool = Pool(pool_size)
self.session = self._get_http_sessio... | 38.609929 | 171 | 0.517083 | 675 | 5,444 | 4.038519 | 0.275556 | 0.039618 | 0.016141 | 0.020543 | 0.145268 | 0.145268 | 0.132795 | 0.123624 | 0.091709 | 0.091709 | 0 | 0.026323 | 0.351029 | 5,444 | 140 | 172 | 38.885714 | 0.745259 | 0.002388 | 0 | 0.215385 | 0 | 0.015385 | 0.092081 | 0.020258 | 0 | 0 | 0 | 0 | 0 | 1 | 0.053846 | false | 0 | 0.069231 | 0 | 0.161538 | 0.030769 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0ef7742a3f6f5d085c7065159824fcf2edcb86c7 | 5,910 | py | Python | src/dsrlib/ui/utils.py | fraca7/dsremap | fb8f4fb13e74b512ed0cac05387fbe9694faebcf | [
"MIT"
] | 8 | 2020-09-06T02:15:10.000Z | 2022-01-12T22:49:20.000Z | src/dsrlib/ui/utils.py | fraca7/dsremap | fb8f4fb13e74b512ed0cac05387fbe9694faebcf | [
"MIT"
] | 5 | 2021-03-29T20:37:46.000Z | 2021-09-19T13:20:24.000Z | src/dsrlib/ui/utils.py | fraca7/dsremap | fb8f4fb13e74b512ed0cac05387fbe9694faebcf | [
"MIT"
] | 2 | 2020-09-16T01:45:49.000Z | 2021-06-12T12:38:15.000Z | #!/usr/bin/env python3
import os
import contextlib
from PyQt5 import QtCore, QtWidgets
from dsrlib.settings import Settings
class LayoutBuilder:
def __init__(self, target):
self.target = target
self._stack = []
@contextlib.contextmanager
def _layout(self, cls, *args, **kwargs):
... | 37.884615 | 160 | 0.57445 | 565 | 5,910 | 5.941593 | 0.247788 | 0.044683 | 0.025022 | 0.023831 | 0.292523 | 0.260352 | 0.260352 | 0.260352 | 0.260352 | 0.217456 | 0 | 0.006248 | 0.323012 | 5,910 | 155 | 161 | 38.129032 | 0.832792 | 0.018782 | 0 | 0.302326 | 0 | 0 | 0.022786 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.116279 | false | 0 | 0.031008 | 0.015504 | 0.248062 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0ef7cab0d5cd63afd5bc70bd0539a8ffbacf39c0 | 37,201 | py | Python | src/tiden/tidenrunner.py | mshonichev/example_pkg | 556a703fe8ea4a7737b8cae9c5d4d19c1397a70b | [
"Apache-2.0"
] | null | null | null | src/tiden/tidenrunner.py | mshonichev/example_pkg | 556a703fe8ea4a7737b8cae9c5d4d19c1397a70b | [
"Apache-2.0"
] | null | null | null | src/tiden/tidenrunner.py | mshonichev/example_pkg | 556a703fe8ea4a7737b8cae9c5d4d19c1397a70b | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
#
# Copyright 2017-2020 GridGain Systems.
#
# 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 applicab... | 42.858295 | 121 | 0.597403 | 4,315 | 37,201 | 4.774508 | 0.099421 | 0.038831 | 0.037229 | 0.024464 | 0.414135 | 0.308951 | 0.230172 | 0.186875 | 0.125133 | 0.107077 | 0 | 0.001962 | 0.314938 | 37,201 | 867 | 122 | 42.907728 | 0.806435 | 0.110938 | 0 | 0.234401 | 0 | 0.001686 | 0.098218 | 0.019257 | 0 | 0 | 0 | 0 | 0.001686 | 1 | 0.053963 | false | 0.01855 | 0.040472 | 0.003373 | 0.139966 | 0.05059 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0ef87bb853368bafa20ca953ac321175f6e8c5af | 5,425 | py | Python | ludwig/data/cache/manager.py | ludwig-ai/ludw | b9d95bbdb474bc22260269de1bc094bc5455f37c | [
"Apache-2.0"
] | 970 | 2020-12-17T15:09:20.000Z | 2022-03-31T22:58:03.000Z | ludwig/data/cache/manager.py | ludwig-ai/ludw | b9d95bbdb474bc22260269de1bc094bc5455f37c | [
"Apache-2.0"
] | 503 | 2020-12-16T21:44:40.000Z | 2022-03-31T18:21:52.000Z | ludwig/data/cache/manager.py | ludwig-ai/ludw | b9d95bbdb474bc22260269de1bc094bc5455f37c | [
"Apache-2.0"
] | 145 | 2020-12-18T07:38:30.000Z | 2022-03-29T19:05:08.000Z | import logging
import os
import re
import uuid
from pathlib import Path
from ludwig.constants import CHECKSUM, META, TEST, TRAINING, VALIDATION
from ludwig.data.cache.util import calculate_checksum
from ludwig.utils import data_utils
from ludwig.utils.fs_utils import delete, path_exists
logger = logging.getLogger(__n... | 37.413793 | 111 | 0.650323 | 677 | 5,425 | 4.937962 | 0.171344 | 0.078971 | 0.046665 | 0.038289 | 0.341908 | 0.283877 | 0.213281 | 0.168412 | 0.069399 | 0.039485 | 0 | 0.000254 | 0.272995 | 5,425 | 144 | 112 | 37.673611 | 0.847363 | 0.055853 | 0 | 0.127273 | 0 | 0 | 0.033444 | 0 | 0 | 0 | 0 | 0.006944 | 0 | 1 | 0.109091 | false | 0 | 0.081818 | 0.018182 | 0.336364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0ef896d76fe90ca7521ad1e92767789c5b227b40 | 2,629 | py | Python | test_calc_base.py | kshshkim/factorioCalcPy | 2a7c6ca567a3bf0d2b19f3cf0bc05274f83d4205 | [
"MIT"
] | 1 | 2021-09-21T01:42:05.000Z | 2021-09-21T01:42:05.000Z | test_calc_base.py | kshshkim/factorioCalcPy | 2a7c6ca567a3bf0d2b19f3cf0bc05274f83d4205 | [
"MIT"
] | null | null | null | test_calc_base.py | kshshkim/factorioCalcPy | 2a7c6ca567a3bf0d2b19f3cf0bc05274f83d4205 | [
"MIT"
] | null | null | null | import pprint
from FactorioCalcBase.data.binary import sorted_recipe_list, production_machine_category_list_dict
from FactorioCalcBase.recipe import Recipe
from FactorioCalcBase.calculator_base import CalculatorBase
from FactorioCalcBase.dependency_dict_common_function import dict_add_number
import time
def test_chan... | 40.446154 | 104 | 0.637885 | 297 | 2,629 | 5.276094 | 0.276094 | 0.076579 | 0.045948 | 0.042119 | 0.259732 | 0.2291 | 0.078494 | 0 | 0 | 0 | 0 | 0.006369 | 0.283378 | 2,629 | 64 | 105 | 41.078125 | 0.825372 | 0 | 0 | 0.075472 | 0 | 0 | 0.096234 | 0.033092 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075472 | false | 0 | 0.113208 | 0 | 0.207547 | 0.056604 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0ef9be0b4faecf741290076154fb3c5bae164853 | 6,546 | py | Python | engine.py | nyumaya/wake-word-benchmark | d2f7ac091d31403f3398bc3ef2e2de4876a4629e | [
"Apache-2.0"
] | null | null | null | engine.py | nyumaya/wake-word-benchmark | d2f7ac091d31403f3398bc3ef2e2de4876a4629e | [
"Apache-2.0"
] | null | null | null | engine.py | nyumaya/wake-word-benchmark | d2f7ac091d31403f3398bc3ef2e2de4876a4629e | [
"Apache-2.0"
] | null | null | null | #
# Copyright 2018 Picovoice 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 writ... | 33.397959 | 122 | 0.669111 | 770 | 6,546 | 5.497403 | 0.292208 | 0.018427 | 0.021262 | 0.02008 | 0.274274 | 0.246161 | 0.131349 | 0.116702 | 0.086936 | 0.061422 | 0 | 0.012224 | 0.225176 | 6,546 | 195 | 123 | 33.569231 | 0.822358 | 0.101283 | 0 | 0.338346 | 0 | 0 | 0.119563 | 0.066519 | 0 | 0 | 0 | 0 | 0.030075 | 1 | 0.172932 | false | 0.015038 | 0.067669 | 0.037594 | 0.458647 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0efb8a4758e96798acb51aad7950963bd5e398c7 | 1,549 | py | Python | objO_and_ctxMgr/harakiri.py | thirschbuechler/didactic-barnacles | 88d0a2b572aacb2cb45e68bb4f05fa5273224439 | [
"MIT"
] | null | null | null | objO_and_ctxMgr/harakiri.py | thirschbuechler/didactic-barnacles | 88d0a2b572aacb2cb45e68bb4f05fa5273224439 | [
"MIT"
] | null | null | null | objO_and_ctxMgr/harakiri.py | thirschbuechler/didactic-barnacles | 88d0a2b572aacb2cb45e68bb4f05fa5273224439 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Jan 20 22:18:58 2020
@author: https://stackoverflow.com/questions/293431/python-object-deleting-itself
@editor: thirschbuechler
this is probably overkill to alternatively exit a with-context, rather than by exception,
but hey, maybe it will be needed, ... | 29.226415 | 92 | 0.666882 | 209 | 1,549 | 4.712919 | 0.61244 | 0.033503 | 0.036548 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019247 | 0.228535 | 1,549 | 53 | 93 | 29.226415 | 0.805021 | 0.475791 | 0 | 0 | 0 | 0 | 0.079146 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.192308 | false | 0.038462 | 0.038462 | 0 | 0.384615 | 0.230769 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0efbf67a5c5c854b7696ec4d515b55094ea51fb7 | 6,593 | py | Python | chapter2/gestures.py | srimani-programmer/Opencv-with-Python-Blueprints-second-Edition | 8762022a58a379229f02d7250d8344087d98516d | [
"MIT"
] | 39 | 2019-11-25T21:30:14.000Z | 2022-03-29T05:12:43.000Z | chapter2/gestures.py | srimani-programmer/Opencv-with-Python-Blueprints-second-Edition | 8762022a58a379229f02d7250d8344087d98516d | [
"MIT"
] | 2 | 2020-04-19T20:38:15.000Z | 2021-09-29T05:02:48.000Z | chapter2/gestures.py | srimani-programmer/Opencv-with-Python-Blueprints-second-Edition | 8762022a58a379229f02d7250d8344087d98516d | [
"MIT"
] | 29 | 2019-12-22T15:18:18.000Z | 2021-12-25T13:52:44.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""A module containing an algorithm for hand gesture recognition"""
import numpy as np
import cv2
from typing import Tuple
__author__ = "Michael Beyeler"
__license__ = "GNU GPL 3.0 or later"
def recognize(img_gray):
"""Recognizes hand gesture in a single-channel dep... | 36.425414 | 97 | 0.64341 | 928 | 6,593 | 4.484914 | 0.279095 | 0.023546 | 0.015858 | 0.027631 | 0.166026 | 0.103075 | 0.103075 | 0.081691 | 0.036521 | 0.036521 | 0 | 0.030094 | 0.27423 | 6,593 | 180 | 98 | 36.627778 | 0.839707 | 0.477931 | 0 | 0.033333 | 0 | 0 | 0.011312 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.05 | 0 | 0.283333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0efc1162d67d89e44bbe7d9f3dc36378c583e84a | 688 | py | Python | xlab/cli.py | csalcedo001/xlab | 8c51f035a870dd57339ff0208a3ab27ef6b8b41f | [
"Apache-2.0"
] | 1 | 2022-03-23T23:44:14.000Z | 2022-03-23T23:44:14.000Z | xlab/cli.py | csalcedo001/xlab | 8c51f035a870dd57339ff0208a3ab27ef6b8b41f | [
"Apache-2.0"
] | null | null | null | xlab/cli.py | csalcedo001/xlab | 8c51f035a870dd57339ff0208a3ab27ef6b8b41f | [
"Apache-2.0"
] | null | null | null | import sys
import os
from . import filesys
MAIN_USAGE_MESSAGE = """
usage: xlab command ...
Options:
positional arguments:
command
project
"""
def project(args):
if len(args) != 1:
print("error: Invalid arguments.")
exit()
if args[0] == 'init':
root = os.getcwd()
... | 16.380952 | 61 | 0.543605 | 80 | 688 | 4.6125 | 0.45 | 0.056911 | 0.086721 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010684 | 0.319767 | 688 | 42 | 62 | 16.380952 | 0.777778 | 0 | 0 | 0.1 | 0 | 0 | 0.208999 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.1 | 0 | 0.166667 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0efc40d3300b3d6d0a1fa06e980fe71072140597 | 16,294 | py | Python | python/paddle/optimizer/adamw.py | jzhang533/Paddle | 3227b2c401a80104e0c01dedcef2061ffa1ebbed | [
"Apache-2.0"
] | null | null | null | python/paddle/optimizer/adamw.py | jzhang533/Paddle | 3227b2c401a80104e0c01dedcef2061ffa1ebbed | [
"Apache-2.0"
] | 1 | 2021-09-07T10:31:38.000Z | 2021-09-08T09:18:20.000Z | python/paddle/optimizer/adamw.py | jzhang533/Paddle | 3227b2c401a80104e0c01dedcef2061ffa1ebbed | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | 42.543081 | 130 | 0.603044 | 2,004 | 16,294 | 4.668164 | 0.19511 | 0.0248 | 0.037199 | 0.016676 | 0.243934 | 0.186424 | 0.155639 | 0.124425 | 0.109674 | 0.08915 | 0 | 0.023185 | 0.31441 | 16,294 | 382 | 131 | 42.65445 | 0.814251 | 0.419541 | 0 | 0.134328 | 0 | 0 | 0.069296 | 0.006907 | 0 | 0 | 0 | 0 | 0.029851 | 1 | 0.039801 | false | 0.00995 | 0.039801 | 0.004975 | 0.129353 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0efde6b5a9c1239ffa852e70caccc25e5c41c1dd | 1,880 | py | Python | tests/resources/test_interactions.py | VinLau/BAR_API | 0719a5fbc08872f667590b27347af9bfed669bca | [
"MIT"
] | 1 | 2020-07-06T20:12:25.000Z | 2020-07-06T20:12:25.000Z | tests/resources/test_interactions.py | VinLau/BAR_API | 0719a5fbc08872f667590b27347af9bfed669bca | [
"MIT"
] | 37 | 2020-06-27T02:58:23.000Z | 2022-03-29T00:35:28.000Z | tests/resources/test_interactions.py | VinLau/BAR_API | 0719a5fbc08872f667590b27347af9bfed669bca | [
"MIT"
] | 9 | 2020-06-26T23:09:16.000Z | 2022-01-26T21:20:46.000Z | from api import app
from unittest import TestCase
class TestIntegrations(TestCase):
maxDiff = None
def setUp(self):
self.app_client = app.test_client()
def test_get_itrns(self):
"""
This function test retrieving protein interactions for various species' genes.
"""
... | 31.864407 | 86 | 0.519149 | 176 | 1,880 | 5.420455 | 0.386364 | 0.036688 | 0.068134 | 0.08805 | 0.51782 | 0.481132 | 0.392034 | 0.350105 | 0.259958 | 0.259958 | 0 | 0.050085 | 0.373404 | 1,880 | 58 | 87 | 32.413793 | 0.759762 | 0.079787 | 0 | 0.333333 | 0 | 0 | 0.253083 | 0.065766 | 0 | 0 | 0 | 0 | 0.095238 | 1 | 0.047619 | false | 0 | 0.047619 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0efdfc79a9eea6c3e7cf614d63469062b5917d5a | 2,261 | py | Python | src/dialogflow-java-client-master/samples/clients/VirtualTradingAssistant/src/main/java/ai/examples/scraper/historicalScrape.py | 16kozlowskim/Group-20-SE | ceb8c319643964a3f478772d8f10090962df567c | [
"MIT"
] | null | null | null | src/dialogflow-java-client-master/samples/clients/VirtualTradingAssistant/src/main/java/ai/examples/scraper/historicalScrape.py | 16kozlowskim/Group-20-SE | ceb8c319643964a3f478772d8f10090962df567c | [
"MIT"
] | null | null | null | src/dialogflow-java-client-master/samples/clients/VirtualTradingAssistant/src/main/java/ai/examples/scraper/historicalScrape.py | 16kozlowskim/Group-20-SE | ceb8c319643964a3f478772d8f10090962df567c | [
"MIT"
] | null | null | null | # install BeautifulSoup4 before running
#
# prints out historical data in csv format:
#
# [date, open, high, low, close, volume]
#
import re, csv, sys, urllib2
from bs4 import BeautifulSoup
# If start date and end date is the same only one value will be returned and
# if not the multiple values which can be used to ma... | 29.75 | 205 | 0.658116 | 302 | 2,261 | 4.834437 | 0.486755 | 0.068493 | 0.087671 | 0.054795 | 0.247945 | 0.247945 | 0.247945 | 0.247945 | 0.247945 | 0.206849 | 0 | 0.013441 | 0.177355 | 2,261 | 75 | 206 | 30.146667 | 0.771505 | 0.361345 | 0 | 0.1 | 0 | 0 | 0.102313 | 0.031535 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.05 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0eff08358676f71813cab0fd67b31eed87ddaad4 | 5,460 | py | Python | client/client.py | odontomachus/hotbox | d42c48d7f056f2b1f7bd707ad674e737a3c2fe08 | [
"MIT"
] | null | null | null | client/client.py | odontomachus/hotbox | d42c48d7f056f2b1f7bd707ad674e737a3c2fe08 | [
"MIT"
] | null | null | null | client/client.py | odontomachus/hotbox | d42c48d7f056f2b1f7bd707ad674e737a3c2fe08 | [
"MIT"
] | null | null | null | import sys
import io
from collections import defaultdict
import struct
from time import sleep
import queue
import threading
import serial
from serial import SerialException
RUN_LABELS = ('Time left', 'Temp 1', 'Temp 2', 'Off Goal', 'Temp Change', 'Duty cycle (/30)', 'Heating', 'Cycle', 'Total time', 'Goal temp')
MSG... | 26.25 | 140 | 0.512637 | 590 | 5,460 | 4.581356 | 0.262712 | 0.044395 | 0.033296 | 0.040696 | 0.254532 | 0.18276 | 0.18276 | 0.18276 | 0.130226 | 0.130226 | 0 | 0.020659 | 0.388278 | 5,460 | 207 | 141 | 26.376812 | 0.788623 | 0.08956 | 0 | 0.373418 | 0 | 0 | 0.045051 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.094937 | false | 0.006329 | 0.056962 | 0.006329 | 0.21519 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0eff0ae716a4c5a7fc1773362d577d2a440094dc | 2,549 | py | Python | test/functional/abc-sync-chain.py | ComputerCraftr/devault | 546b54df85e3392f85e7ea5fcd4ea9b395ba8f4c | [
"MIT"
] | 35 | 2019-02-23T06:21:13.000Z | 2021-11-15T11:35:13.000Z | test/functional/abc-sync-chain.py | ComputerCraftr/devault | 546b54df85e3392f85e7ea5fcd4ea9b395ba8f4c | [
"MIT"
] | 60 | 2019-02-25T18:17:03.000Z | 2021-07-13T00:14:00.000Z | test/functional/abc-sync-chain.py | ComputerCraftr/devault | 546b54df85e3392f85e7ea5fcd4ea9b395ba8f4c | [
"MIT"
] | 24 | 2019-02-20T05:37:02.000Z | 2021-10-29T18:42:10.000Z | #!/usr/bin/env python3
# Copyright (c) 2018 The Bitcoin developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""
Test that a node receiving many (potentially out of order) blocks exits
initial block download (IBD; this occur... | 31.085366 | 77 | 0.629266 | 301 | 2,549 | 5.159468 | 0.478405 | 0.041854 | 0.043786 | 0.025757 | 0.02962 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025192 | 0.283641 | 2,549 | 81 | 78 | 31.469136 | 0.825301 | 0.229502 | 0 | 0 | 0 | 0 | 0.022576 | 0.011801 | 0 | 0 | 0 | 0 | 0 | 1 | 0.104167 | false | 0 | 0.104167 | 0.020833 | 0.270833 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
16004b3ebbf7944e6af5eebfe55aa2baa0c582bb | 1,325 | py | Python | djangostagram/posts/models.py | hongsemy/InstagramWithDjango | 18cb273668809fb48d829e1ac11438c51505623a | [
"MIT"
] | null | null | null | djangostagram/posts/models.py | hongsemy/InstagramWithDjango | 18cb273668809fb48d829e1ac11438c51505623a | [
"MIT"
] | null | null | null | djangostagram/posts/models.py | hongsemy/InstagramWithDjango | 18cb273668809fb48d829e1ac11438c51505623a | [
"MIT"
] | null | null | null | from django.db import models
from djangostagram.users import models as user_model
# Create your models here.
# This class is used in other models as an inheritance.
# An often-used pattern
class TimeStamedModel(models.Model):
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeFi... | 30.813953 | 90 | 0.627925 | 148 | 1,325 | 5.466216 | 0.432432 | 0.044499 | 0.048208 | 0.059333 | 0.375773 | 0.375773 | 0.375773 | 0.289246 | 0.289246 | 0.222497 | 0 | 0 | 0.299623 | 1,325 | 42 | 91 | 31.547619 | 0.871767 | 0.130566 | 0 | 0.322581 | 0 | 0 | 0.046208 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.064516 | 0 | 0.483871 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
160140a1d069dde69b115daae82f3d8b2a6cf9c6 | 497 | py | Python | guillotina/contrib/workflows/events.py | rboixaderg/guillotina | fcae65c2185222272f3b8fee4bc2754e81e0e983 | [
"BSD-2-Clause"
] | 173 | 2017-03-10T18:26:12.000Z | 2022-03-03T06:48:56.000Z | guillotina/contrib/workflows/events.py | rboixaderg/guillotina | fcae65c2185222272f3b8fee4bc2754e81e0e983 | [
"BSD-2-Clause"
] | 921 | 2017-03-08T14:04:43.000Z | 2022-03-30T10:28:56.000Z | guillotina/contrib/workflows/events.py | rboixaderg/guillotina | fcae65c2185222272f3b8fee4bc2754e81e0e983 | [
"BSD-2-Clause"
] | 60 | 2017-03-16T19:59:44.000Z | 2022-03-03T06:48:59.000Z | from guillotina.contrib.workflows.interfaces import IWorkflowChangedEvent
from guillotina.events import ObjectEvent
from zope.interface import implementer
@implementer(IWorkflowChangedEvent)
class WorkflowChangedEvent(ObjectEvent):
"""An object has been moved"""
def __init__(self, object, workflow, action, c... | 31.0625 | 73 | 0.744467 | 50 | 497 | 7.24 | 0.5 | 0.082873 | 0.077348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183099 | 497 | 15 | 74 | 33.133333 | 0.891626 | 0.04829 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.272727 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1601ac11a20c04fcd9a8cadea05debe08ac71228 | 6,340 | py | Python | data_steward/cdr_cleaner/cleaning_rules/covid_ehr_vaccine_concept_suppression.py | lrwb-aou/curation | e80447e56d269dc2c9c8bc79e78218d4b0dc504c | [
"MIT"
] | 16 | 2017-06-30T20:05:05.000Z | 2022-03-08T21:03:19.000Z | data_steward/cdr_cleaner/cleaning_rules/covid_ehr_vaccine_concept_suppression.py | lrwb-aou/curation | e80447e56d269dc2c9c8bc79e78218d4b0dc504c | [
"MIT"
] | 342 | 2017-06-23T21:37:40.000Z | 2022-03-30T16:44:16.000Z | data_steward/cdr_cleaner/cleaning_rules/covid_ehr_vaccine_concept_suppression.py | lrwb-aou/curation | e80447e56d269dc2c9c8bc79e78218d4b0dc504c | [
"MIT"
] | 33 | 2017-07-01T00:12:20.000Z | 2022-01-26T18:06:53.000Z | """
Suppress COVID EHR vaccine concepts.
Original Issues: DC-1692
"""
# Python imports
import logging
# Project imports
from cdr_cleaner.cleaning_rules.deid.concept_suppression import AbstractBqLookupTableConceptSuppression
from constants.cdr_cleaner import clean_cdr as cdr_consts
from common import JINJA_ENV, CDM_T... | 37.964072 | 108 | 0.681388 | 805 | 6,340 | 5.126708 | 0.284472 | 0.039254 | 0.023988 | 0.034892 | 0.408045 | 0.332929 | 0.312818 | 0.239884 | 0.203053 | 0.177853 | 0 | 0.010829 | 0.242587 | 6,340 | 166 | 109 | 38.192771 | 0.848605 | 0.226025 | 0 | 0.133333 | 0 | 0.009524 | 0.398463 | 0.123425 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038095 | false | 0 | 0.07619 | 0 | 0.12381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1603becbcb60a137e24357b35d07d2dd6b8de743 | 809 | py | Python | test_calcscore.py | BrandonLeiran/bracket-scoring | a099e9a56ee3083c3a9db7d085b11b1dc7fe77f8 | [
"MIT"
] | null | null | null | test_calcscore.py | BrandonLeiran/bracket-scoring | a099e9a56ee3083c3a9db7d085b11b1dc7fe77f8 | [
"MIT"
] | null | null | null | test_calcscore.py | BrandonLeiran/bracket-scoring | a099e9a56ee3083c3a9db7d085b11b1dc7fe77f8 | [
"MIT"
] | null | null | null | import pytest
from calcscore import round_score
# you'll be picking what teams make it to the next round
# - so picking 32, then 16, then 8, 4, 2, 1...i.e. round 1-6 winners
# teams will have a name & a seed
# seed doesn't change, so maybe make that not passed around w/ results
def test_round_score_invalid_round():... | 31.115385 | 74 | 0.68974 | 123 | 809 | 4.365854 | 0.495935 | 0.130354 | 0.089385 | 0.145251 | 0.446927 | 0.357542 | 0.175047 | 0.175047 | 0.175047 | 0 | 0 | 0.023256 | 0.202719 | 809 | 25 | 75 | 32.36 | 0.809302 | 0.327565 | 0 | 0.142857 | 0 | 0 | 0.080074 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
16045e96f3ff12b08a6e4885879fa2b0a083c578 | 4,803 | py | Python | tests/test_get.py | bgyori/pyobo | f199f62f65fc7faff307b56f979a369202c8ad33 | [
"MIT"
] | null | null | null | tests/test_get.py | bgyori/pyobo | f199f62f65fc7faff307b56f979a369202c8ad33 | [
"MIT"
] | null | null | null | tests/test_get.py | bgyori/pyobo | f199f62f65fc7faff307b56f979a369202c8ad33 | [
"MIT"
] | null | null | null | import unittest
from operator import attrgetter
import obonet
from pyobo import SynonymTypeDef, get
from pyobo.struct import Reference
from pyobo.struct.struct import (
iterate_graph_synonym_typedefs, iterate_graph_typedefs, iterate_node_parents, iterate_node_properties,
iterate_node_relationships, iterate_no... | 39.694215 | 111 | 0.636269 | 557 | 4,803 | 5.348294 | 0.238779 | 0.09567 | 0.026855 | 0.023498 | 0.17959 | 0.171534 | 0.152736 | 0.103726 | 0.103726 | 0.103726 | 0 | 0.030411 | 0.240058 | 4,803 | 120 | 112 | 40.025 | 0.785753 | 0.130543 | 0 | 0.122222 | 0 | 0 | 0.108685 | 0.007035 | 0 | 0 | 0 | 0.008333 | 0.266667 | 1 | 0.1 | false | 0 | 0.077778 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
16054aa866f43fe130ae74a4adb86263728710d3 | 2,676 | py | Python | src/commons.py | ymontilla/WebScrapingCatastro | a184b5c92199305e28ca7346c01d1e78e0a92c13 | [
"MIT"
] | null | null | null | src/commons.py | ymontilla/WebScrapingCatastro | a184b5c92199305e28ca7346c01d1e78e0a92c13 | [
"MIT"
] | null | null | null | src/commons.py | ymontilla/WebScrapingCatastro | a184b5c92199305e28ca7346c01d1e78e0a92c13 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# +
## Utilidades comunes entre places y OSM.
# +
import csv
import ast
import codecs
from math import cos, asin, sqrt
# +
def read_csv_with_encoding(filename, delimiter="|", encoding="iso-8859-1"):
with codecs.open(filename, encoding=encoding) as fp:
reader = csv.reader(fp, deli... | 36.162162 | 114 | 0.612855 | 354 | 2,676 | 4.477401 | 0.367232 | 0.069401 | 0.080757 | 0.071924 | 0.251104 | 0.211987 | 0.147634 | 0.147634 | 0.147634 | 0.147634 | 0 | 0.032918 | 0.250747 | 2,676 | 73 | 115 | 36.657534 | 0.757606 | 0.050822 | 0 | 0.043478 | 0 | 0 | 0.077326 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108696 | false | 0 | 0.108696 | 0 | 0.326087 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
160586a7f083f1efa16456b4bf747dcafc4be695 | 7,851 | py | Python | GamesGetter.py | JamescMcE/BasketBet | f87719ac793ea50822e8c52fc23191dba9ad6418 | [
"CC0-1.0"
] | null | null | null | GamesGetter.py | JamescMcE/BasketBet | f87719ac793ea50822e8c52fc23191dba9ad6418 | [
"CC0-1.0"
] | null | null | null | GamesGetter.py | JamescMcE/BasketBet | f87719ac793ea50822e8c52fc23191dba9ad6418 | [
"CC0-1.0"
] | null | null | null | #This script Imports Game Data from ESPN, and Odds from the ODDS-API, and then imports them into a MySQL table, example in workbench here https://puu.sh/HOKCj/ce199eec8e.png
import mysql.connector
import requests
import json
import datetime
import time
#Connection to the MYSQL Server.
mydb = mysql.connector.... | 42.668478 | 257 | 0.584639 | 944 | 7,851 | 4.76589 | 0.233051 | 0.02934 | 0.032007 | 0.032007 | 0.304512 | 0.234497 | 0.234497 | 0.206713 | 0.206713 | 0.16048 | 0 | 0.019993 | 0.248249 | 7,851 | 184 | 258 | 42.668478 | 0.742291 | 0.135015 | 0 | 0.175182 | 0 | 0.036496 | 0.267567 | 0.042495 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014599 | false | 0.007299 | 0.036496 | 0 | 0.051095 | 0.087591 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
16071d9e180a990b1f3b40b4034a6c704c0e2258 | 4,302 | py | Python | neurodocker/tests/test_neurodocker.py | effigies/neurodocker | 4b0f32d2915b8b0308e3e391d534e05eb29b8d09 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:00:35.000Z | 2021-01-27T06:00:35.000Z | neurodocker/tests/test_neurodocker.py | giovtorres/neurodocker | 65575f5e44f2c5ef96a5da51d0df54b1af80bb79 | [
"Apache-2.0"
] | null | null | null | neurodocker/tests/test_neurodocker.py | giovtorres/neurodocker | 65575f5e44f2c5ef96a5da51d0df54b1af80bb79 | [
"Apache-2.0"
] | null | null | null | """Tests for neurodocker.main"""
# Author: Jakub Kaczmarzyk <jakubk@mit.edu>
from __future__ import absolute_import, unicode_literals
import sys
import pytest
from neurodocker.neurodocker import create_parser, parse_args, main
def test_generate():
args = ("generate -b ubuntu:17.04 -p apt"
" --arg ... | 31.173913 | 79 | 0.58066 | 547 | 4,302 | 4.484461 | 0.330896 | 0.052181 | 0.077456 | 0.101916 | 0.360375 | 0.229923 | 0.198532 | 0.182634 | 0.119853 | 0.119853 | 0 | 0.032548 | 0.250116 | 4,302 | 137 | 80 | 31.40146 | 0.727836 | 0.039749 | 0 | 0.213592 | 0 | 0 | 0.352413 | 0.016735 | 0 | 0 | 0 | 0 | 0.135922 | 1 | 0.048544 | false | 0 | 0.048544 | 0 | 0.097087 | 0.029126 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1607f8c0c3d6768327bf886d9e6092523f205171 | 2,778 | py | Python | fuzzers/011-cle-ffconfig/generate.py | tmichalak/prjuray | 53f3c94b58ffc6d405ac20a3b340ae726717ed47 | [
"0BSD"
] | 39 | 2020-07-17T19:43:40.000Z | 2022-01-07T02:05:48.000Z | fuzzers/011-cle-ffconfig/generate.py | tmichalak/prjuray | 53f3c94b58ffc6d405ac20a3b340ae726717ed47 | [
"0BSD"
] | 24 | 2020-07-17T20:15:54.000Z | 2022-01-21T08:29:51.000Z | fuzzers/011-cle-ffconfig/generate.py | tmichalak/prjuray | 53f3c94b58ffc6d405ac20a3b340ae726717ed47 | [
"0BSD"
] | 11 | 2020-07-17T19:43:45.000Z | 2022-02-09T08:43:23.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Copyright (C) 2020 The Project U-Ray Authors.
#
# Use of this source code is governed by a ISC-style
# license that can be found in the LICENSE file or at
# https://opensource.org/licenses/ISC
#
# SPDX-License-Identifier: ISC
'''
FDCE Primitive: D Flip-Flop with Clock... | 28.060606 | 101 | 0.596472 | 418 | 2,778 | 3.866029 | 0.435407 | 0.02599 | 0.034653 | 0.044554 | 0.246287 | 0.227723 | 0.117574 | 0.117574 | 0.117574 | 0 | 0 | 0.051151 | 0.296256 | 2,778 | 98 | 102 | 28.346939 | 0.775448 | 0.319654 | 0 | 0.046512 | 0 | 0 | 0.069904 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046512 | false | 0 | 0.046512 | 0.023256 | 0.139535 | 0.023256 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1608246c353096fff06ae6f3c3c9e80955bceb92 | 2,697 | py | Python | hmc/integrators/states/riemannian_leapfrog_state.py | JamesBrofos/Thresholds-in-Hamiltonian-Monte-Carlo | 7ee1b530db0eb536666dbc872fbf8200e53dd49b | [
"MIT"
] | 1 | 2021-11-23T15:40:07.000Z | 2021-11-23T15:40:07.000Z | hmc/integrators/states/riemannian_leapfrog_state.py | JamesBrofos/Thresholds-in-Hamiltonian-Monte-Carlo | 7ee1b530db0eb536666dbc872fbf8200e53dd49b | [
"MIT"
] | null | null | null | hmc/integrators/states/riemannian_leapfrog_state.py | JamesBrofos/Thresholds-in-Hamiltonian-Monte-Carlo | 7ee1b530db0eb536666dbc872fbf8200e53dd49b | [
"MIT"
] | null | null | null | from typing import Callable
import numpy as np
from hmc.integrators.states.leapfrog_state import LeapfrogState
from hmc.integrators.fields import riemannian
from hmc.linalg import solve_psd
class RiemannianLeapfrogState(LeapfrogState):
"""The Riemannian leapfrog state uses the Fisher information matrix to provi... | 32.890244 | 104 | 0.68743 | 347 | 2,697 | 5.060519 | 0.233429 | 0.092255 | 0.136674 | 0.079727 | 0.226082 | 0.068337 | 0.041002 | 0 | 0 | 0 | 0 | 0.000985 | 0.247312 | 2,697 | 81 | 105 | 33.296296 | 0.864039 | 0.091212 | 0 | 0.112903 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16129 | false | 0 | 0.080645 | 0.032258 | 0.306452 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
160b335422855d4c69636103d3682d2f66956533 | 821 | py | Python | tools/chrome_proxy/integration_tests/chrome_proxy_pagesets/html5test.py | google-ar/chromium | 2441c86a5fd975f09a6c30cddb57dfb7fc239699 | [
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | tools/chrome_proxy/integration_tests/chrome_proxy_pagesets/html5test.py | harrymarkovskiy/WebARonARCore | 2441c86a5fd975f09a6c30cddb57dfb7fc239699 | [
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | tools/chrome_proxy/integration_tests/chrome_proxy_pagesets/html5test.py | harrymarkovskiy/WebARonARCore | 2441c86a5fd975f09a6c30cddb57dfb7fc239699 | [
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | # Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from common.chrome_proxy_shared_page_state import ChromeProxySharedPageState
from telemetry.page import page as page_module
from telemetry import story
cla... | 27.366667 | 76 | 0.751523 | 109 | 821 | 5.385321 | 0.550459 | 0.035775 | 0.051107 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01462 | 0.16687 | 821 | 29 | 77 | 28.310345 | 0.843567 | 0.248477 | 0 | 0 | 0 | 0 | 0.034539 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.2 | 0 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
161021c6a14b006c767d40fee4f27d3f18827442 | 744 | py | Python | BizPy/openpyxl/20200513/horizontal_chart.py | t2y/python-study | 52a132ea600d4696164e540d8a8f8f5fc58e097a | [
"Apache-2.0"
] | 18 | 2016-08-15T00:24:44.000Z | 2020-11-30T15:11:52.000Z | BizPy/openpyxl/20200513/horizontal_chart.py | t2y/python-study | 52a132ea600d4696164e540d8a8f8f5fc58e097a | [
"Apache-2.0"
] | null | null | null | BizPy/openpyxl/20200513/horizontal_chart.py | t2y/python-study | 52a132ea600d4696164e540d8a8f8f5fc58e097a | [
"Apache-2.0"
] | 6 | 2016-09-28T10:47:03.000Z | 2020-10-14T10:20:06.000Z | import pandas as pd
from openpyxl import Workbook
from openpyxl.chart import BarChart, Reference
wb = Workbook()
ws = wb.active
df = pd.read_csv('population.csv')
ws.append(df.columns.tolist())
for row in df.values:
ws.append(list(row))
row_length = 1 + len(df.values)
values = Reference(ws, min_col=... | 25.655172 | 76 | 0.72043 | 120 | 744 | 4.308333 | 0.458333 | 0.034816 | 0.069633 | 0.065764 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015773 | 0.147849 | 744 | 28 | 77 | 26.571429 | 0.799685 | 0 | 0 | 0 | 0 | 0 | 0.082402 | 0.036313 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.130435 | 0 | 0.130435 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
161068852c112b7ab6b2bbf31d699217b497ca00 | 462 | py | Python | changes/api/serializer/models/logsource.py | alex/changes | 69a17b4c639e7082a75d037384ccb68ead3a0b4b | [
"Apache-2.0"
] | 1 | 2015-11-08T13:00:44.000Z | 2015-11-08T13:00:44.000Z | changes/api/serializer/models/logsource.py | alex/changes | 69a17b4c639e7082a75d037384ccb68ead3a0b4b | [
"Apache-2.0"
] | null | null | null | changes/api/serializer/models/logsource.py | alex/changes | 69a17b4c639e7082a75d037384ccb68ead3a0b4b | [
"Apache-2.0"
] | null | null | null | from changes.api.serializer import Serializer, register
from changes.models.log import LogSource
@register(LogSource)
class LogSourceSerializer(Serializer):
def serialize(self, instance, attrs):
return {
'id': instance.id.hex,
'job': {
'id': instance.job_id.hex,
... | 27.176471 | 55 | 0.582251 | 44 | 462 | 6.068182 | 0.568182 | 0.082397 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.307359 | 462 | 16 | 56 | 28.875 | 0.834375 | 0 | 0 | 0 | 0 | 0 | 0.056277 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.142857 | 0.071429 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
161139c53368ea4186cb4cad223d2c35a3e06750 | 1,246 | py | Python | examples/prostate/data_preparation/utils/nrrd_to_nifti.py | IsaacYangSLA/NVFlare | 8c6582894c9a8431f64479bc9f472fefcd71e5a7 | [
"Apache-2.0"
] | null | null | null | examples/prostate/data_preparation/utils/nrrd_to_nifti.py | IsaacYangSLA/NVFlare | 8c6582894c9a8431f64479bc9f472fefcd71e5a7 | [
"Apache-2.0"
] | null | null | null | examples/prostate/data_preparation/utils/nrrd_to_nifti.py | IsaacYangSLA/NVFlare | 8c6582894c9a8431f64479bc9f472fefcd71e5a7 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2021-2022, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ... | 35.6 | 100 | 0.764045 | 195 | 1,246 | 4.810256 | 0.528205 | 0.063966 | 0.054371 | 0.034115 | 0.059701 | 0.059701 | 0 | 0 | 0 | 0 | 0 | 0.013966 | 0.138042 | 1,246 | 34 | 101 | 36.647059 | 0.859404 | 0.47191 | 0 | 0 | 0 | 0 | 0.243789 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.266667 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
16117ea75b817e23fa127a364786f0a599ad09cc | 1,570 | py | Python | setup.py | jszakmeister/rst2ctags | 22f4035d9ea1e43a07b91f806014d318b3dc5097 | [
"BSD-3-Clause"
] | 23 | 2015-03-05T14:12:08.000Z | 2022-01-08T00:21:39.000Z | setup.py | jszakmeister/rst2ctags | 22f4035d9ea1e43a07b91f806014d318b3dc5097 | [
"BSD-3-Clause"
] | 8 | 2015-03-05T14:15:44.000Z | 2020-10-02T00:16:55.000Z | setup.py | jszakmeister/rst2ctags | 22f4035d9ea1e43a07b91f806014d318b3dc5097 | [
"BSD-3-Clause"
] | 12 | 2015-03-05T15:12:22.000Z | 2021-11-09T21:29:55.000Z | from setuptools import setup
import io
import os
import re
version_re = re.compile(r'^__version__ = "([^"]*)"$')
# Find the version number.
with open('rst2ctags.py', 'r') as f:
for line in f:
line = line.rstrip()
m = version_re.match(line)
if m:
version = m.group(1)
... | 26.610169 | 74 | 0.610191 | 174 | 1,570 | 5.385057 | 0.597701 | 0.048026 | 0.053362 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011159 | 0.257962 | 1,570 | 58 | 75 | 27.068966 | 0.793133 | 0.029299 | 0 | 0 | 0 | 0 | 0.419461 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.085106 | 0 | 0.085106 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
161220d89127fbd24716ad1fd95c0f68eb787901 | 50,986 | py | Python | py-ws/hardshare/cli.py | rerobots/hardshare | 456e7d1d1eb21d03efc3cd1f7960a1729b62527b | [
"Apache-2.0"
] | 8 | 2020-04-14T17:19:57.000Z | 2022-03-03T08:55:34.000Z | py-ws/hardshare/cli.py | rerobots/hardshare | 456e7d1d1eb21d03efc3cd1f7960a1729b62527b | [
"Apache-2.0"
] | 11 | 2020-04-01T15:13:37.000Z | 2021-06-15T22:10:31.000Z | py-ws/hardshare/cli.py | rerobots/hardshare | 456e7d1d1eb21d03efc3cd1f7960a1729b62527b | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# Copyright (C) 2018 rerobots, 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | 47.784442 | 109 | 0.530459 | 5,236 | 50,986 | 4.998472 | 0.099694 | 0.04394 | 0.031178 | 0.020174 | 0.544551 | 0.473254 | 0.417737 | 0.373338 | 0.358933 | 0.3349 | 0 | 0.004822 | 0.373573 | 50,986 | 1,066 | 110 | 47.829268 | 0.814615 | 0.015906 | 0 | 0.438634 | 0 | 0.001067 | 0.244312 | 0.003151 | 0 | 0 | 0 | 0 | 0.002134 | 1 | 0.002134 | false | 0 | 0.020277 | 0 | 0.123799 | 0.149413 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1612e716ac963ff1c93e60be69cd7a089a9ba5ac | 3,870 | py | Python | app/realty.py | JenBanks8585/Labs_CitySpireDS | 4755bd5ce718ee2f65f6a53a5918bd0cf18b2ddf | [
"MIT"
] | null | null | null | app/realty.py | JenBanks8585/Labs_CitySpireDS | 4755bd5ce718ee2f65f6a53a5918bd0cf18b2ddf | [
"MIT"
] | null | null | null | app/realty.py | JenBanks8585/Labs_CitySpireDS | 4755bd5ce718ee2f65f6a53a5918bd0cf18b2ddf | [
"MIT"
] | null | null | null | """Realty Info"""
import os
import requests
from dotenv import load_dotenv
from fastapi import APIRouter, Depends
import sqlalchemy
from pydantic import BaseModel, SecretStr
from app import config
from app.walk_score import *
load_dotenv()
router = APIRouter()
headers = {'x-rapidapi-key': os.getenv('api_key'),
... | 28.880597 | 100 | 0.575969 | 432 | 3,870 | 4.969907 | 0.210648 | 0.035864 | 0.023288 | 0.02422 | 0.518398 | 0.460643 | 0.450862 | 0.450862 | 0.435026 | 0.435026 | 0 | 0.005865 | 0.29509 | 3,870 | 133 | 101 | 29.097744 | 0.781158 | 0.002842 | 0 | 0.315789 | 0 | 0 | 0.170951 | 0.015485 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.105263 | 0 | 0.157895 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
16156ec4833837e6239f5128828011fb974363b0 | 5,868 | py | Python | fast_lemon_api_test.py | a6502/fast_lemon_api | 09a5b6eec3e84d1d006f927e502a7071a28739cc | [
"Unlicense"
] | null | null | null | fast_lemon_api_test.py | a6502/fast_lemon_api | 09a5b6eec3e84d1d006f927e502a7071a28739cc | [
"Unlicense"
] | null | null | null | fast_lemon_api_test.py | a6502/fast_lemon_api | 09a5b6eec3e84d1d006f927e502a7071a28739cc | [
"Unlicense"
] | null | null | null | #!/usr/bin/env pytest-3
from fastapi.testclient import TestClient
from fast_lemon_api import app
client = TestClient(app)
def test_get_root():
response = client.get("/")
assert response.status_code == 200
assert response.text == "Welcome to the fast-lemon-api!\n"
neworder = {
"isin": "blablablabl... | 30.5625 | 80 | 0.387014 | 461 | 5,868 | 4.774403 | 0.234273 | 0.108133 | 0.081781 | 0.098137 | 0.669241 | 0.669241 | 0.622899 | 0.593821 | 0.593821 | 0.541572 | 0 | 0.054395 | 0.486196 | 5,868 | 191 | 81 | 30.722513 | 0.675622 | 0.007498 | 0 | 0.640244 | 0 | 0 | 0.222642 | 0.018897 | 0 | 0 | 0 | 0 | 0.109756 | 1 | 0.054878 | false | 0 | 0.012195 | 0 | 0.067073 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1616161b4c2c7495b51d0bf323d5ee79ad27b64f | 4,999 | py | Python | tests/regenerate_credentials.py | andrewkozlik/pam-u2f | 5b504783c9af972c790bdcb506867bad7df5e333 | [
"BSD-2-Clause"
] | null | null | null | tests/regenerate_credentials.py | andrewkozlik/pam-u2f | 5b504783c9af972c790bdcb506867bad7df5e333 | [
"BSD-2-Clause"
] | null | null | null | tests/regenerate_credentials.py | andrewkozlik/pam-u2f | 5b504783c9af972c790bdcb506867bad7df5e333 | [
"BSD-2-Clause"
] | null | null | null | #!/bin/python2
import collections
import re
import subprocess
import sys
PUC = "../pamu2fcfg/pamu2fcfg"
resident = ["", "-r"]
presence = ["", "-P"]
pin = ["", "-N"]
verification = ["", "-V"]
Credential = collections.namedtuple("Credential", "keyhandle pubkey attributes oldformat")
sshformat = 0
def print_test_... | 34.475862 | 109 | 0.509302 | 520 | 4,999 | 4.840385 | 0.186538 | 0.071514 | 0.033373 | 0.047676 | 0.62654 | 0.578466 | 0.578466 | 0.578466 | 0.578466 | 0.578466 | 0 | 0.016485 | 0.320464 | 4,999 | 144 | 110 | 34.715278 | 0.724463 | 0.013803 | 0 | 0.52381 | 0 | 0 | 0.22026 | 0.099675 | 0 | 0 | 0 | 0 | 0.066667 | 1 | 0.009524 | false | 0 | 0.038095 | 0 | 0.047619 | 0.104762 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
16173a166fd943413345036df12245c2a4ab8343 | 5,807 | py | Python | tensorflow/contrib/distributions/python/kernel_tests/bijectors/affine_scalar_test.py | zhangyujing/tensorflow | c7a04561fb8972fb64907acc5f10f3c6d4cef9f2 | [
"Apache-2.0"
] | 13 | 2018-07-23T18:53:35.000Z | 2021-11-18T19:56:45.000Z | tensorflow/contrib/distributions/python/kernel_tests/bijectors/affine_scalar_test.py | zhangyujing/tensorflow | c7a04561fb8972fb64907acc5f10f3c6d4cef9f2 | [
"Apache-2.0"
] | 6 | 2020-04-21T20:38:18.000Z | 2020-06-16T01:00:15.000Z | tensorflow/contrib/distributions/python/kernel_tests/bijectors/affine_scalar_test.py | zhangyujing/tensorflow | c7a04561fb8972fb64907acc5f10f3c6d4cef9f2 | [
"Apache-2.0"
] | 13 | 2018-09-07T13:28:38.000Z | 2020-07-17T15:06:24.000Z | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | 37.707792 | 92 | 0.646633 | 766 | 5,807 | 4.765013 | 0.203655 | 0.021918 | 0.028767 | 0.030685 | 0.590137 | 0.569041 | 0.535616 | 0.525205 | 0.493973 | 0.450959 | 0 | 0.021432 | 0.220596 | 5,807 | 153 | 93 | 37.954248 | 0.78502 | 0.200448 | 0 | 0.59596 | 0 | 0 | 0.005647 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 1 | 0.171717 | false | 0 | 0.090909 | 0.050505 | 0.373737 | 0.010101 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
161805dd743777711d517821e54c4fec5cc46ec8 | 7,634 | py | Python | mule/util/algorand_util.py | bricerisingalgorand/mule | 721b73f691076e5c3e2ebb8a79313da486fb0f96 | [
"MIT"
] | null | null | null | mule/util/algorand_util.py | bricerisingalgorand/mule | 721b73f691076e5c3e2ebb8a79313da486fb0f96 | [
"MIT"
] | null | null | null | mule/util/algorand_util.py | bricerisingalgorand/mule | 721b73f691076e5c3e2ebb8a79313da486fb0f96 | [
"MIT"
] | null | null | null | import os
import subprocess
import json
import urllib.request
from mule.util import os_util
from mule.util import file_util
from mule.util import time_util
from mule.util import s3_util
from mule.util import semver_util
import platform
def build_algo_release_url(package_type, channel, os_type, cpu_arch_type, package_v... | 38.361809 | 150 | 0.716793 | 1,129 | 7,634 | 4.451727 | 0.127547 | 0.04039 | 0.030442 | 0.033625 | 0.666136 | 0.606049 | 0.574015 | 0.531039 | 0.458217 | 0.42877 | 0 | 0.001726 | 0.165051 | 7,634 | 198 | 151 | 38.555556 | 0.78679 | 0.003537 | 0 | 0.394904 | 0 | 0.038217 | 0.236069 | 0.096693 | 0 | 0 | 0 | 0 | 0 | 1 | 0.089172 | false | 0 | 0.063694 | 0.006369 | 0.171975 | 0.063694 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
161931efe310b9554c601df989d24d47e0bdfff9 | 2,490 | py | Python | examples/showcase/src/demos_panels/scrollPanel.py | allbuttonspressed/pyjs | c726fdead530eb63ee4763ae15daaa58d84cd58f | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | examples/showcase/src/demos_panels/scrollPanel.py | allbuttonspressed/pyjs | c726fdead530eb63ee4763ae15daaa58d84cd58f | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | examples/showcase/src/demos_panels/scrollPanel.py | allbuttonspressed/pyjs | c726fdead530eb63ee4763ae15daaa58d84cd58f | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2019-11-18T14:17:59.000Z | 2019-11-18T14:17:59.000Z | """
The ``ui.ScrollPanel`` class implements a panel that scrolls its contents.
If you want the scroll bars to be always visible, call
``setAlwaysShowScrollBars(True)``. You can also change the current scrolling
position programmatically by calling ``setScrollPosition(vPos)`` and
``setScrollHorizontalPosition(hPos)`` ... | 42.20339 | 97 | 0.677912 | 319 | 2,490 | 5.241379 | 0.460815 | 0.026316 | 0.0311 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013778 | 0.242169 | 2,490 | 58 | 98 | 42.931034 | 0.872284 | 0.360241 | 0 | 0 | 0 | 0 | 0.270833 | 0.026515 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.117647 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1619ba2c67e7c086f7e9ae9363f2ebb460f2febc | 772 | py | Python | psdn.py | xiongchiamiov/phone-suitable-domain-name | da8d28c5783415f406e19b8ef2cde4c790a4c95d | [
"WTFPL"
] | 3 | 2017-10-23T18:31:24.000Z | 2021-02-01T21:22:24.000Z | psdn.py | xiongchiamiov/phone-suitable-domain-name | da8d28c5783415f406e19b8ef2cde4c790a4c95d | [
"WTFPL"
] | null | null | null | psdn.py | xiongchiamiov/phone-suitable-domain-name | da8d28c5783415f406e19b8ef2cde4c790a4c95d | [
"WTFPL"
] | 1 | 2016-10-14T10:47:41.000Z | 2016-10-14T10:47:41.000Z | #!/usr/bin/env python3
# May you recognize your weaknesses and share your strengths.
# May you share freely, never taking more than you give.
# May you find love and love everyone you find.
import re
import time
import whois
phone_spellable = re.compile(r'^[filoqrsuwxy]+$')
candidate_words = []
with open('/usr/sha... | 23.393939 | 61 | 0.634715 | 107 | 772 | 4.523364 | 0.579439 | 0.115702 | 0.03719 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005226 | 0.256477 | 772 | 32 | 62 | 24.125 | 0.837979 | 0.235751 | 0 | 0 | 0 | 0 | 0.114334 | 0.035836 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.095238 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
161a66975b57933d5f14b6a51378ceceb0ae3ebd | 1,725 | py | Python | cart/views.py | pmaigutyak/mp-cart | 53adbbdeea7f8f8b2d432b103f7347d89adf3e30 | [
"0BSD"
] | 1 | 2021-09-25T14:31:48.000Z | 2021-09-25T14:31:48.000Z | cart/views.py | pmaigutyak/mp-cart | 53adbbdeea7f8f8b2d432b103f7347d89adf3e30 | [
"0BSD"
] | null | null | null | cart/views.py | pmaigutyak/mp-cart | 53adbbdeea7f8f8b2d432b103f7347d89adf3e30 | [
"0BSD"
] | 1 | 2021-04-10T18:50:47.000Z | 2021-04-10T18:50:47.000Z |
from django.utils.translation import ugettext
from django.views.decorators.http import require_POST
from django.http import JsonResponse
from django.shortcuts import render
from django.core.exceptions import ValidationError
from django.views.decorators.csrf import csrf_exempt
from cart.lib import get_cart
from cart.f... | 26.136364 | 75 | 0.697391 | 209 | 1,725 | 5.583732 | 0.315789 | 0.051414 | 0.047986 | 0.071979 | 0.285347 | 0.285347 | 0.256213 | 0.167095 | 0.167095 | 0.167095 | 0 | 0.004364 | 0.202899 | 1,725 | 65 | 76 | 26.538462 | 0.844364 | 0 | 0 | 0.208333 | 0 | 0 | 0.066705 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.104167 | false | 0 | 0.166667 | 0.0625 | 0.416667 | 0.020833 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
161a6fecb9358040e2c0bfdcfac12240bdf3bc16 | 2,089 | py | Python | ChessAI/src/const.py | darius-luca-tech/AI_Projects | 3cff26878807121e077375e5dbef39390fea0189 | [
"MIT"
] | 2 | 2020-07-11T14:48:27.000Z | 2020-08-04T11:24:58.000Z | ChessAI/src/const.py | darius-luca-tech/AI_Projects | 3cff26878807121e077375e5dbef39390fea0189 | [
"MIT"
] | null | null | null | ChessAI/src/const.py | darius-luca-tech/AI_Projects | 3cff26878807121e077375e5dbef39390fea0189 | [
"MIT"
] | null | null | null |
#------ game constants -----#
#players
WHITE = 0
BLACK = 1
BOTH = 2
#color for onTurnLabel
PLAYER_COLOR = ["white", "black"]
#figures
PAWN = 1
KNIGHT = 2
BISHOP = 3
ROOK = 4
QUEEN = 5
KING = 6
FIGURE_NAME = [ "", "pawn", "knight", "bishop", "rook", "queen", "king" ]
#used in move 32bit for prom... | 22.706522 | 99 | 0.567736 | 328 | 2,089 | 3.527439 | 0.570122 | 0.012965 | 0.015557 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128807 | 0.245572 | 2,089 | 91 | 100 | 22.956044 | 0.60533 | 0.291527 | 0 | 0 | 0 | 0 | 0.060427 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.021277 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
161b1a291b36fd8f7983e45a6a229f8f666d35f1 | 392 | py | Python | agent.py | kapzlok2408/Pokemon-Showdown-Node-Bot | c759eb9106fd2a3da3ebe4692a6730c37b2e5ee3 | [
"MIT"
] | null | null | null | agent.py | kapzlok2408/Pokemon-Showdown-Node-Bot | c759eb9106fd2a3da3ebe4692a6730c37b2e5ee3 | [
"MIT"
] | null | null | null | agent.py | kapzlok2408/Pokemon-Showdown-Node-Bot | c759eb9106fd2a3da3ebe4692a6730c37b2e5ee3 | [
"MIT"
] | null | null | null | import gym
import gym_pokemon
import random
if __name__ == "__main__":
env = gym.make("Pokemon-v0")
total_reward = 0.0
total_steps = 0
obs = env.reset()
while True:
action = random.randint(-1,8)
obs, reward, done, _ = env.step(action)
total_reward += reward
total_steps += 1
print("Currently %d steps, t... | 20.631579 | 81 | 0.683673 | 59 | 392 | 4.271186 | 0.508475 | 0.174603 | 0.126984 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025157 | 0.188776 | 392 | 18 | 82 | 21.777778 | 0.767296 | 0 | 0 | 0 | 0 | 0 | 0.147959 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1875 | 0 | 0.1875 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
161b52cb8725f9e857d4d9abd90c6be8f1cb0dec | 964 | py | Python | setup.py | danjjl/ipyfilechooser | 19d2e906207b2c3426675eda7889267f5956b182 | [
"MIT"
] | null | null | null | setup.py | danjjl/ipyfilechooser | 19d2e906207b2c3426675eda7889267f5956b182 | [
"MIT"
] | null | null | null | setup.py | danjjl/ipyfilechooser | 19d2e906207b2c3426675eda7889267f5956b182 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import os
from setuptools import setup, find_packages
def read(fname):
"""Open files relative to package."""
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='ipyfilechooser',
version='0.3.1',
author='Thomas Bouve (@crahan)',
author_email='... | 26.777778 | 70 | 0.637967 | 107 | 964 | 5.635514 | 0.728972 | 0.039801 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009358 | 0.224066 | 964 | 35 | 71 | 27.542857 | 0.796791 | 0.053942 | 0 | 0 | 0 | 0 | 0.42053 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.068966 | 0 | 0.137931 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1620270422616b41ca7180a5b9004dcde020933a | 1,590 | py | Python | keras2onnx/proto/tfcompat.py | CNugteren/keras-onnx | b3d6b6486fe56640c48c62dd098e9405e35b4e9f | [
"MIT"
] | 1 | 2021-04-15T16:35:54.000Z | 2021-04-15T16:35:54.000Z | keras2onnx/proto/tfcompat.py | CNugteren/keras-onnx | b3d6b6486fe56640c48c62dd098e9405e35b4e9f | [
"MIT"
] | null | null | null | keras2onnx/proto/tfcompat.py | CNugteren/keras-onnx | b3d6b6486fe56640c48c62dd098e9405e35b4e9f | [
"MIT"
] | null | null | null | ###############################################################################
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
###############################################################################
imp... | 31.8 | 83 | 0.610692 | 197 | 1,590 | 4.598985 | 0.431472 | 0.027594 | 0.04415 | 0.02649 | 0.037528 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009569 | 0.211321 | 1,590 | 49 | 84 | 32.44898 | 0.712919 | 0.155346 | 0 | 0.266667 | 0 | 0 | 0.034014 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.166667 | 0.033333 | 0.433333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
16205a78e576c7488204d92806cb7a59f5ca5566 | 11,588 | py | Python | back2back/httpmulticlient.py | excentis/ByteBlower_python_examples | 0e082e17413abf5e25f6d14b85e50e7f73e7f965 | [
"BSD-3-Clause"
] | 2 | 2018-10-04T10:55:55.000Z | 2018-11-29T08:51:38.000Z | back2back/httpmulticlient.py | excentis/ByteBlower_python_examples | 0e082e17413abf5e25f6d14b85e50e7f73e7f965 | [
"BSD-3-Clause"
] | null | null | null | back2back/httpmulticlient.py | excentis/ByteBlower_python_examples | 0e082e17413abf5e25f6d14b85e50e7f73e7f965 | [
"BSD-3-Clause"
] | 3 | 2018-10-04T10:56:29.000Z | 2019-10-28T10:19:40.000Z | """
HTTP MultiServer/MultiClient for the ByteBlower Python API.
All examples are guaranteed to work with Python 2.7 and above
Copyright 2018, Excentis N.V.
"""
# Needed for python2 / python3 print function compatibility
from __future__ import print_function
# import the ByteBlower module
import byteblowerll.byteblowe... | 36.440252 | 101 | 0.621764 | 1,361 | 11,588 | 5.110948 | 0.213079 | 0.053191 | 0.027602 | 0.008626 | 0.243243 | 0.157993 | 0.125503 | 0.111271 | 0.102358 | 0.088269 | 0 | 0.031557 | 0.280808 | 11,588 | 317 | 102 | 36.555205 | 0.803096 | 0.278909 | 0 | 0.152941 | 0 | 0 | 0.125651 | 0.011137 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023529 | false | 0 | 0.023529 | 0 | 0.064706 | 0.117647 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1621aa767e78100c7f16f615ddf74780115c4b1d | 9,106 | py | Python | rastervision/plugin.py | carderne/raster-vision | 915fbcd3263d8f2193e65c2cd0eb53e050a47a01 | [
"Apache-2.0"
] | 3 | 2020-07-05T04:04:18.000Z | 2021-02-05T16:19:55.000Z | rastervision/plugin.py | carderne/raster-vision | 915fbcd3263d8f2193e65c2cd0eb53e050a47a01 | [
"Apache-2.0"
] | null | null | null | rastervision/plugin.py | carderne/raster-vision | 915fbcd3263d8f2193e65c2cd0eb53e050a47a01 | [
"Apache-2.0"
] | 1 | 2020-04-27T15:21:53.000Z | 2020-04-27T15:21:53.000Z | import os
import json
import importlib
from pluginbase import PluginBase
import rastervision as rv
from rastervision.protos.plugin_pb2 import PluginConfig as PluginConfigMsg
from rastervision.utils.files import download_if_needed
class PluginError(Exception):
pass
def load_conf_list(s):
"""Loads a list of... | 40.471111 | 80 | 0.648913 | 1,073 | 9,106 | 5.28425 | 0.219012 | 0.029982 | 0.015873 | 0.013757 | 0.270547 | 0.215873 | 0.191887 | 0.156261 | 0.128042 | 0.113404 | 0 | 0.000303 | 0.276082 | 9,106 | 224 | 81 | 40.651786 | 0.85983 | 0.281243 | 0 | 0.091667 | 0 | 0 | 0.078657 | 0 | 0 | 0 | 0 | 0.004464 | 0 | 1 | 0.15 | false | 0.008333 | 0.066667 | 0.008333 | 0.283333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1621ccd669a0abec2dea3abc64d60feca57f3bfe | 2,134 | py | Python | acsm/nnutils/resunet.py | eldar/acsm | 04069e8bb4c12185473dc10c3355e5367fa98968 | [
"Apache-2.0"
] | 52 | 2020-04-02T12:35:55.000Z | 2022-03-11T07:47:30.000Z | acsm/nnutils/resunet.py | eldar/acsm | 04069e8bb4c12185473dc10c3355e5367fa98968 | [
"Apache-2.0"
] | 8 | 2020-06-04T07:34:34.000Z | 2021-09-18T21:17:26.000Z | acsm/nnutils/resunet.py | eldar/acsm | 04069e8bb4c12185473dc10c3355e5367fa98968 | [
"Apache-2.0"
] | 6 | 2020-07-12T02:12:18.000Z | 2021-03-06T05:03:33.000Z | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from absl import app
from absl import flags
import os
import os.path as osp
import numpy as np
import torch
import torchvision
import torch.nn as nn
from torch.autograd import Variable
import functools
from . ... | 27.358974 | 79 | 0.612933 | 288 | 2,134 | 4.3125 | 0.315972 | 0.101449 | 0.070853 | 0.032206 | 0.170692 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021956 | 0.295689 | 2,134 | 77 | 80 | 27.714286 | 0.804391 | 0 | 0 | 0.092308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.230769 | 0 | 0.384615 | 0.015385 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1626ca15f81c599021a7770317db1230752e7b3f | 4,282 | py | Python | scrapers/covid_scraper.py | ZachGeo/covidGR_API | 2f316337dda65bd33ac895df336481c3c2abe2c6 | [
"MIT"
] | null | null | null | scrapers/covid_scraper.py | ZachGeo/covidGR_API | 2f316337dda65bd33ac895df336481c3c2abe2c6 | [
"MIT"
] | null | null | null | scrapers/covid_scraper.py | ZachGeo/covidGR_API | 2f316337dda65bd33ac895df336481c3c2abe2c6 | [
"MIT"
] | null | null | null | from bs4 import BeautifulSoup
from datetime import date
from lxml import html
import requests
import re
import json
class CovidScraper:
def __init__(self):
self.api_url = 'http://127.0.0.1:5000/covidgr'
self.api_sum_url = 'http://127.0.0.1:5000/summary/covidgr'
self.api_test_url = 'http://... | 32.439394 | 148 | 0.615834 | 544 | 4,282 | 4.523897 | 0.215074 | 0.058513 | 0.026412 | 0.013409 | 0.336449 | 0.224299 | 0.145063 | 0.138155 | 0.088582 | 0.088582 | 0 | 0.015479 | 0.275806 | 4,282 | 131 | 149 | 32.687023 | 0.778136 | 0 | 0 | 0.084211 | 0 | 0.010526 | 0.111397 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.094737 | false | 0 | 0.063158 | 0 | 0.231579 | 0.010526 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
162894b73abedfff0ad797772b95e5e53cb507ab | 2,412 | py | Python | setup.py | Oli2/presto-python-client | 11a89c2528a35d5af6916e9c9175cb3e1f84160b | [
"Apache-2.0"
] | null | null | null | setup.py | Oli2/presto-python-client | 11a89c2528a35d5af6916e9c9175cb3e1f84160b | [
"Apache-2.0"
] | null | null | null | setup.py | Oli2/presto-python-client | 11a89c2528a35d5af6916e9c9175cb3e1f84160b | [
"Apache-2.0"
] | null | null | null | # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under th... | 33.041096 | 78 | 0.641376 | 281 | 2,412 | 5.437722 | 0.572954 | 0.087042 | 0.114529 | 0.051047 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009683 | 0.22927 | 2,412 | 72 | 79 | 33.5 | 0.812265 | 0.216003 | 0 | 0.037037 | 0 | 0 | 0.556679 | 0.027142 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.074074 | 0 | 0.074074 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
162b50aea1cc09a5257abec74537cee83cae39dc | 368 | py | Python | Graphs/Pie Chart.py | TausifAnsari/PyHub | f6c949dc6a3974f57d7d146708443d0ceeb4418f | [
"MIT"
] | 1 | 2020-09-30T19:31:20.000Z | 2020-09-30T19:31:20.000Z | Graphs/Pie Chart.py | TanviSutar/PyHub | 6281e9f515674fb51f0d0862c26ec18020fa7d83 | [
"MIT"
] | null | null | null | Graphs/Pie Chart.py | TanviSutar/PyHub | 6281e9f515674fb51f0d0862c26ec18020fa7d83 | [
"MIT"
] | null | null | null | import matplotlib.pyplot as graph
subject = ["Probability", "Calculas", "Discrete Mathematics", "Adv Engineering Mathematics",
"Linear Algebra", "Cryptography"]
weightage = [250,900,850,1200,290,345]
seperator = [0.05,0,0,0,0.05,0.05]
graph.title("Mathematics Topic Weightage")
graph.pie(weightage,labels=subject,au... | 30.666667 | 93 | 0.741848 | 50 | 368 | 5.46 | 0.66 | 0.032967 | 0.029304 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098214 | 0.086957 | 368 | 12 | 94 | 30.666667 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0.341463 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
162b6c04231d6cc1d5159da7ca51127039c4295e | 6,252 | py | Python | exercises/perform_model_selection.py | noavilk/IML.HUJI | 35aa4e6fbe489239e4fe72bf38c0dba3e6c81f37 | [
"MIT"
] | null | null | null | exercises/perform_model_selection.py | noavilk/IML.HUJI | 35aa4e6fbe489239e4fe72bf38c0dba3e6c81f37 | [
"MIT"
] | null | null | null | exercises/perform_model_selection.py | noavilk/IML.HUJI | 35aa4e6fbe489239e4fe72bf38c0dba3e6c81f37 | [
"MIT"
] | null | null | null | from __future__ import annotations
import numpy as np
import pandas as pd
from sklearn import datasets
from IMLearn.metrics import mean_square_error
from IMLearn.utils import split_train_test
from IMLearn.model_selection import cross_validate
from IMLearn.learners.regressors import PolynomialFitting, LinearRegression, ... | 45.304348 | 117 | 0.644274 | 913 | 6,252 | 4.242059 | 0.202629 | 0.028918 | 0.016525 | 0.016783 | 0.452621 | 0.364575 | 0.286083 | 0.262329 | 0.221792 | 0.19055 | 0 | 0.023185 | 0.213532 | 6,252 | 137 | 118 | 45.635037 | 0.764491 | 0.189379 | 0 | 0.134831 | 0 | 0.011236 | 0.164323 | 0.035757 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033708 | false | 0 | 0.123596 | 0.011236 | 0.168539 | 0.067416 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
162c0bbced3e06420246b7de0d2ad6e3745c54ef | 9,001 | py | Python | libraries/tools/media_utils.py | unfoldingWord-dev/d43-catalog | 6c36f59b9b326e0ead45739c09631ef1e57c4932 | [
"MIT"
] | 1 | 2017-05-18T22:18:31.000Z | 2017-05-18T22:18:31.000Z | libraries/tools/media_utils.py | unfoldingWord-dev/d43-catalog | 6c36f59b9b326e0ead45739c09631ef1e57c4932 | [
"MIT"
] | 54 | 2016-11-07T03:07:03.000Z | 2021-04-14T21:24:04.000Z | libraries/tools/media_utils.py | unfoldingWord-dev/d43-catalog | 6c36f59b9b326e0ead45739c09631ef1e57c4932 | [
"MIT"
] | 7 | 2016-10-26T18:15:14.000Z | 2018-06-01T18:37:32.000Z | import re
import copy
def parse_media(media, content_version, project_chapters):
"""
Converts a media object into formats usable in the catalog
:param media: the media object
:type media: dict
:param content_version: the current version of the source content
:type content_version: string
:p... | 39.47807 | 120 | 0.579602 | 940 | 9,001 | 5.368085 | 0.179787 | 0.05549 | 0.033888 | 0.02279 | 0.452041 | 0.419342 | 0.385256 | 0.346611 | 0.329568 | 0.27824 | 0 | 0.002364 | 0.342184 | 9,001 | 227 | 121 | 39.651982 | 0.849856 | 0.257527 | 0 | 0.473684 | 0 | 0 | 0.086943 | 0.006856 | 0 | 0 | 0 | 0.004405 | 0 | 1 | 0.06015 | false | 0 | 0.015038 | 0 | 0.150376 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
162cd54c3b760abba50c342688a1d04f0b1b3010 | 631 | py | Python | BST.py | boristown/leetcode | 2e510b7913653da75cd9d10f1adce4c466e74768 | [
"MIT"
] | 1 | 2021-10-04T03:09:51.000Z | 2021-10-04T03:09:51.000Z | BST.py | boristown/leetcode | 2e510b7913653da75cd9d10f1adce4c466e74768 | [
"MIT"
] | null | null | null | BST.py | boristown/leetcode | 2e510b7913653da75cd9d10f1adce4c466e74768 | [
"MIT"
] | null | null | null | class BST:
def __init__(self, val=0, left=None, right=None):
self.val = val
self.left = left
self.right = right
@staticmethod
def array2BST(array):
'''
array:sorted array
'''
n = len(array)
if n == 0: return None
m = n//2
left,... | 26.291667 | 76 | 0.534073 | 79 | 631 | 4.21519 | 0.316456 | 0.054054 | 0.12012 | 0.072072 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023585 | 0.328051 | 631 | 24 | 76 | 26.291667 | 0.761792 | 0.050713 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
162ffe7bb753d133521ad38601ddfbb5cb83a226 | 4,192 | py | Python | readme_metrics/MetricsMiddleware.py | readmeio/metrics-sdks-python | 02bc6e486260641f1a62760d20370157a4928af6 | [
"0BSD"
] | 2 | 2020-09-23T04:44:22.000Z | 2021-07-06T18:14:11.000Z | readme_metrics/MetricsMiddleware.py | readmeio/metrics-sdks-python | 02bc6e486260641f1a62760d20370157a4928af6 | [
"0BSD"
] | null | null | null | readme_metrics/MetricsMiddleware.py | readmeio/metrics-sdks-python | 02bc6e486260641f1a62760d20370157a4928af6 | [
"0BSD"
] | 1 | 2020-09-23T04:44:25.000Z | 2020-09-23T04:44:25.000Z | import io
import time
import datetime
from readme_metrics.Metrics import Metrics
from readme_metrics.MetricsApiConfig import MetricsApiConfig
from readme_metrics.ResponseInfoWrapper import ResponseInfoWrapper
from werkzeug import Request
class MetricsMiddleware:
"""Core middleware class for ReadMe Metrics
A... | 34.933333 | 87 | 0.569656 | 437 | 4,192 | 5.311213 | 0.382151 | 0.058165 | 0.049548 | 0.049978 | 0.064627 | 0.064627 | 0.031883 | 0.031883 | 0.031883 | 0.031883 | 0 | 0.010554 | 0.367128 | 4,192 | 119 | 88 | 35.226891 | 0.864305 | 0.290792 | 0 | 0.032258 | 0 | 0 | 0.036128 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.048387 | false | 0 | 0.112903 | 0 | 0.193548 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
16312fcb11ab7937c366343185da9dd102a4e745 | 4,048 | py | Python | kbrl.py | deekshaarya4/gymexperiments | 2d503ba14fcfba41339de25dd78d649bd12693e6 | [
"MIT"
] | null | null | null | kbrl.py | deekshaarya4/gymexperiments | 2d503ba14fcfba41339de25dd78d649bd12693e6 | [
"MIT"
] | null | null | null | kbrl.py | deekshaarya4/gymexperiments | 2d503ba14fcfba41339de25dd78d649bd12693e6 | [
"MIT"
] | null | null | null | import numpy as np
import gym
from sklearn.neighbors import NearestNeighbors
import matplotlib.pyplot as plt
import argparse
parser = argparse.ArgumentParser(description='KBRL with KNN')
parser.add_argument('--episodes', nargs='?', type=int, default=500)
parser.add_argument('--max_timesteps', nargs='?', type=int, defa... | 30.900763 | 100 | 0.673913 | 555 | 4,048 | 4.769369 | 0.345946 | 0.031734 | 0.018134 | 0.014356 | 0.036267 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019008 | 0.233202 | 4,048 | 130 | 101 | 31.138462 | 0.833763 | 0.21418 | 0 | 0.022222 | 0 | 0 | 0.034516 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022222 | false | 0.011111 | 0.066667 | 0 | 0.1 | 0.011111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
16320687d82ed5fd57ef5ebf44c1b6e925a208e1 | 12,169 | py | Python | deepchem/models/atomic_conv.py | cjgalvin/deepchem | 64993a129e7f0f78fed9500298b1828ac8a0757a | [
"MIT"
] | 3 | 2019-05-29T19:18:25.000Z | 2021-01-25T05:44:05.000Z | deepchem/models/atomic_conv.py | cjgalvin/deepchem | 64993a129e7f0f78fed9500298b1828ac8a0757a | [
"MIT"
] | 10 | 2017-02-23T19:39:22.000Z | 2017-08-31T22:21:18.000Z | deepchem/models/atomic_conv.py | cjgalvin/deepchem | 64993a129e7f0f78fed9500298b1828ac8a0757a | [
"MIT"
] | 1 | 2018-09-22T00:53:53.000Z | 2018-09-22T00:53:53.000Z | __author__ = "Joseph Gomes"
__copyright__ = "Copyright 2017, Stanford University"
__license__ = "MIT"
import sys
from deepchem.models import KerasModel
from deepchem.models.layers import AtomicConvolution
from deepchem.models.losses import L2Loss
from tensorflow.keras.layers import Input, Layer
import numpy as np
im... | 36.109792 | 143 | 0.639494 | 1,741 | 12,169 | 4.182079 | 0.152211 | 0.038319 | 0.019778 | 0.02637 | 0.368219 | 0.295564 | 0.229501 | 0.15561 | 0.141739 | 0.08323 | 0 | 0.031029 | 0.255814 | 12,169 | 336 | 144 | 36.217262 | 0.772968 | 0.136412 | 0 | 0.097872 | 0 | 0 | 0.005314 | 0 | 0 | 0 | 0 | 0.008929 | 0 | 1 | 0.038298 | false | 0 | 0.034043 | 0 | 0.106383 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1632af4d460f191002d145c0aa53f5434243e662 | 5,717 | py | Python | setup.py | DivoK/mystery | b656eebe678c64864b2a5762765f36bddd540933 | [
"MIT"
] | 8 | 2019-05-31T19:46:49.000Z | 2020-05-14T22:21:35.000Z | setup.py | DivoK/mystery | b656eebe678c64864b2a5762765f36bddd540933 | [
"MIT"
] | 4 | 2019-06-04T15:24:22.000Z | 2021-06-01T23:53:37.000Z | setup.py | DivoK/mystery | b656eebe678c64864b2a5762765f36bddd540933 | [
"MIT"
] | 4 | 2019-06-04T15:08:46.000Z | 2020-04-25T15:52:00.000Z | """
Core business logic for `mystery`.
This code will run when the package is being built and installed.
"""
import json
import pathlib
import random
import tempfile
import urllib.request
import typing
import setuptools
from setuptools.command.sdist import sdist
# Load the configuration file.
CONFIG_PATH = pathlib.P... | 32.117978 | 109 | 0.688473 | 735 | 5,717 | 5.12517 | 0.319728 | 0.070082 | 0.020441 | 0.023361 | 0.085479 | 0.0515 | 0 | 0 | 0 | 0 | 0 | 0.002866 | 0.206577 | 5,717 | 177 | 110 | 32.299435 | 0.827601 | 0.238412 | 0 | 0.089109 | 0 | 0.019802 | 0.340762 | 0.03954 | 0 | 0 | 0 | 0 | 0 | 1 | 0.069307 | false | 0.009901 | 0.118812 | 0 | 0.247525 | 0.039604 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1632cc5107307be666384111255532a74d2d121a | 1,665 | py | Python | ADMM_primal.py | CrazyIvanPro/Optimal_Transport | aa782820a5ca5a01909ed3c32acbada43f6cfa0f | [
"MIT"
] | 2 | 2020-11-09T10:37:19.000Z | 2021-07-06T09:24:30.000Z | ADMM_primal.py | CrazyIvanPro/Optimal_Transport | aa782820a5ca5a01909ed3c32acbada43f6cfa0f | [
"MIT"
] | null | null | null | ADMM_primal.py | CrazyIvanPro/Optimal_Transport | aa782820a5ca5a01909ed3c32acbada43f6cfa0f | [
"MIT"
] | 1 | 2021-06-03T17:07:01.000Z | 2021-06-03T17:07:01.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# =======================================
# File Name: ADMM_primal.py
# Purpose : implementation for ADMM method
# for solving primal problem
# =======================================
from utils import get_params
import numpy as np
import sys
def ADMM_primal(... | 29.732143 | 89 | 0.465465 | 241 | 1,665 | 3.074689 | 0.319502 | 0.047233 | 0.043185 | 0.036437 | 0.167341 | 0.070175 | 0.070175 | 0.070175 | 0 | 0 | 0 | 0.037197 | 0.305706 | 1,665 | 55 | 90 | 30.272727 | 0.603806 | 0.153754 | 0 | 0 | 0 | 0 | 0.060932 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030303 | false | 0 | 0.090909 | 0 | 0.121212 | 0.151515 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
163306f757b2b46fb97912f794d0169c24de2f36 | 1,117 | py | Python | misc_scripts/CleanVCFparams.py | pombase/legacy-eg-loader | 1a324121325ffc3b9a4c15922f7a12756a9c3206 | [
"Apache-2.0"
] | null | null | null | misc_scripts/CleanVCFparams.py | pombase/legacy-eg-loader | 1a324121325ffc3b9a4c15922f7a12756a9c3206 | [
"Apache-2.0"
] | null | null | null | misc_scripts/CleanVCFparams.py | pombase/legacy-eg-loader | 1a324121325ffc3b9a4c15922f7a12756a9c3206 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
import os
import sys
import pprint
import argparse
parser = argparse.ArgumentParser(description='Clean up the data for a given parameter')
parser.add_argument('--infile', help="Path to the VCF file", default='test.vcf')
parser.add_argument('--outfile', help="Path to the new VCF file", default='test.... | 25.386364 | 94 | 0.637422 | 169 | 1,117 | 4.189349 | 0.467456 | 0.038136 | 0.072034 | 0.036723 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028078 | 0.170994 | 1,117 | 43 | 95 | 25.976744 | 0.736501 | 0.097583 | 0 | 0.114286 | 0 | 0 | 0.16004 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.114286 | 0 | 0.114286 | 0.028571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1633a9fb3de8a2d02c1b973e0da5225da5fdee84 | 25,426 | py | Python | create_coherency_dataset.py | UKPLab/acl20-dialogue-coherence-assessment | 328b888855dc833b4b0c05c259ee7115f4219dbe | [
"MIT"
] | 12 | 2020-05-03T12:41:53.000Z | 2021-11-19T06:45:56.000Z | create_coherency_dataset.py | UKPLab/acl20-dialogue-coherence-assessment | 328b888855dc833b4b0c05c259ee7115f4219dbe | [
"MIT"
] | 2 | 2020-07-02T08:19:19.000Z | 2021-12-03T16:58:02.000Z | create_coherency_dataset.py | UKPLab/acl20-dialogue-coherence-assessment | 328b888855dc833b4b0c05c259ee7115f4219dbe | [
"MIT"
] | 4 | 2020-08-27T08:36:55.000Z | 2021-08-19T21:53:31.000Z | import math
import os
from copy import deepcopy
from ast import literal_eval
import pandas as pd
from math import factorial
import random
from collections import Counter, defaultdict
import sys
from nltk import word_tokenize
from tqdm import tqdm, trange
import argparse
import numpy as np
import re
import csv
from skle... | 39.977987 | 146 | 0.532801 | 3,085 | 25,426 | 4.211994 | 0.142626 | 0.0157 | 0.018624 | 0.018316 | 0.492689 | 0.421733 | 0.360397 | 0.311836 | 0.272895 | 0.247807 | 0 | 0.014494 | 0.343349 | 25,426 | 635 | 147 | 40.040945 | 0.763776 | 0.038386 | 0 | 0.380769 | 0 | 0 | 0.076496 | 0.003457 | 0 | 0 | 0 | 0.001575 | 0.009615 | 1 | 0.038462 | false | 0 | 0.032692 | 0 | 0.105769 | 0.005769 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
16369f4689956af64363c246df723fffbf5f3a5e | 7,164 | py | Python | downloadParagraph.py | icadot86/bert | 42070209183dab3b5ff59b0dea1398a9538960f3 | [
"Apache-2.0"
] | null | null | null | downloadParagraph.py | icadot86/bert | 42070209183dab3b5ff59b0dea1398a9538960f3 | [
"Apache-2.0"
] | null | null | null | downloadParagraph.py | icadot86/bert | 42070209183dab3b5ff59b0dea1398a9538960f3 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
import sys, getopt
import urllib
import requests
import requests_cache
import re
import time
from bs4 import BeautifulSoup
from requests import Session
sys.path.append("/home/taejoon1kim/BERT/my_bert")
from utils.cacheUtils import cacheExist, writeCache, readCache, getDownloadCachePath
from utils.path... | 35.82 | 458 | 0.564768 | 889 | 7,164 | 4.40045 | 0.219348 | 0.092025 | 0.029908 | 0.03681 | 0.268916 | 0.223415 | 0.197597 | 0.087935 | 0.052658 | 0.052658 | 0 | 0.019151 | 0.256561 | 7,164 | 199 | 459 | 36 | 0.715359 | 0.049553 | 0 | 0.119205 | 0 | 0.02649 | 0.243741 | 0.038292 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046358 | false | 0 | 0.066225 | 0 | 0.192053 | 0.05298 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1637357f64028a6c4c7d59c4294f21b8d56010e2 | 2,861 | py | Python | data_io.py | LucasChenLC/courseManager2 | 3f91ea72dbc0a3f3afcc88c7f0959edb6c33adf9 | [
"MIT"
] | null | null | null | data_io.py | LucasChenLC/courseManager2 | 3f91ea72dbc0a3f3afcc88c7f0959edb6c33adf9 | [
"MIT"
] | null | null | null | data_io.py | LucasChenLC/courseManager2 | 3f91ea72dbc0a3f3afcc88c7f0959edb6c33adf9 | [
"MIT"
] | null | null | null | from xml.dom.minidom import Document, parse
class InfoBatch:
def __init__(self, title, pre_node_titles):
self.title = title
self.pre_node_titles = pre_node_titles
def save_data_xml(course_list, file_path):
doc = Document()
courses = doc.createElement('course_list')
doc.appendChild(co... | 37.644737 | 124 | 0.71828 | 351 | 2,861 | 5.558405 | 0.210826 | 0.117888 | 0.053306 | 0.09021 | 0.428498 | 0.274218 | 0.219375 | 0.193747 | 0.193747 | 0.193747 | 0 | 0.004189 | 0.165676 | 2,861 | 75 | 125 | 38.146667 | 0.813155 | 0 | 0 | 0 | 0 | 0 | 0.050586 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.073171 | false | 0 | 0.02439 | 0 | 0.146341 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
163841fc5da39772ff971e9eff1ba89827ff6817 | 1,003 | py | Python | tests/rules/test_git_rm_local_modifications.py | jlandrum/theheck | d2c008b6ca14220504be95f887253ddd9f5e9f72 | [
"MIT"
] | null | null | null | tests/rules/test_git_rm_local_modifications.py | jlandrum/theheck | d2c008b6ca14220504be95f887253ddd9f5e9f72 | [
"MIT"
] | null | null | null | tests/rules/test_git_rm_local_modifications.py | jlandrum/theheck | d2c008b6ca14220504be95f887253ddd9f5e9f72 | [
"MIT"
] | null | null | null | import pytest
from theheck.rules.git_rm_local_modifications import match, get_new_command
from theheck.types import Command
@pytest.fixture
def output(target):
return ('error: the following file has local modifications:\n {}\n(use '
'--cached to keep the file, or -f to force removal)').format(targe... | 34.586207 | 81 | 0.67996 | 148 | 1,003 | 4.5 | 0.283784 | 0.09009 | 0.072072 | 0.121622 | 0.207207 | 0.087087 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164506 | 1,003 | 28 | 82 | 35.821429 | 0.794749 | 0 | 0 | 0 | 0 | 0 | 0.323031 | 0 | 0 | 0 | 0 | 0 | 0.15 | 1 | 0.2 | false | 0 | 0.15 | 0.05 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
16384fd421a05dbe791af899ad03aaf8e20b6076 | 6,078 | py | Python | application.py | statisticsnorway/microdata-data-service | d477b7b75589d4c977771122558c948c040a1106 | [
"Apache-2.0"
] | null | null | null | application.py | statisticsnorway/microdata-data-service | d477b7b75589d4c977771122558c948c040a1106 | [
"Apache-2.0"
] | 7 | 2021-10-08T13:40:33.000Z | 2022-02-04T10:37:55.000Z | application.py | statisticsnorway/microdata-data-service | d477b7b75589d4c977771122558c948c040a1106 | [
"Apache-2.0"
] | null | null | null | import logging
import json_logging
import tomlkit
import uvicorn
from fastapi import FastAPI, status
from fastapi.encoders import jsonable_encoder
from fastapi.openapi.docs import (
get_redoc_html,
get_swagger_ui_html,
get_swagger_ui_oauth2_redirect_html,
)
from fastapi.responses import JSONResponse
from f... | 33.766667 | 109 | 0.74054 | 781 | 6,078 | 5.352113 | 0.234315 | 0.114115 | 0.152392 | 0.072727 | 0.377033 | 0.285167 | 0.24067 | 0.224402 | 0.205263 | 0.205263 | 0 | 0.004509 | 0.160744 | 6,078 | 179 | 110 | 33.955307 | 0.814938 | 0.009049 | 0 | 0.2 | 0 | 0 | 0.123501 | 0.016787 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032 | false | 0 | 0.12 | 0 | 0.24 | 0.008 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
16386e8f49ac83e2f9c436adbc056266858401ad | 18,764 | py | Python | graspologic/embed/n2v.py | dtborders/graspologic | 8ea9a47cabe35ad28ec9d381e525358c2027f619 | [
"MIT"
] | null | null | null | graspologic/embed/n2v.py | dtborders/graspologic | 8ea9a47cabe35ad28ec9d381e525358c2027f619 | [
"MIT"
] | null | null | null | graspologic/embed/n2v.py | dtborders/graspologic | 8ea9a47cabe35ad28ec9d381e525358c2027f619 | [
"MIT"
] | null | null | null | # Copyright (c) Microsoft Corporation and contributors.
# Licensed under the MIT License.
import logging
import math
import time
from typing import Any, List, Optional, Tuple, Union
import networkx as nx
import numpy as np
from ..utils import remap_node_ids
def node2vec_embed(
graph: Union[nx.Graph, nx.DiGraph... | 35.537879 | 127 | 0.627052 | 2,281 | 18,764 | 4.989917 | 0.188075 | 0.031629 | 0.012652 | 0.021086 | 0.295115 | 0.203831 | 0.162186 | 0.15217 | 0.129591 | 0.090669 | 0 | 0.0107 | 0.297698 | 18,764 | 527 | 128 | 35.605313 | 0.853013 | 0.283948 | 0 | 0.222892 | 0 | 0 | 0.10604 | 0.008496 | 0 | 0 | 0 | 0 | 0.03012 | 1 | 0.039157 | false | 0 | 0.024096 | 0 | 0.099398 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1638d587cabcf4138e331d614308389b13e85fb7 | 8,421 | py | Python | bot.py | NotBlizzard/blizzybot | 41a6f07e4d3bb97772b07aa9d6a3af935b78fb9a | [
"MIT"
] | null | null | null | bot.py | NotBlizzard/blizzybot | 41a6f07e4d3bb97772b07aa9d6a3af935b78fb9a | [
"MIT"
] | null | null | null | bot.py | NotBlizzard/blizzybot | 41a6f07e4d3bb97772b07aa9d6a3af935b78fb9a | [
"MIT"
] | null | null | null | # bot.py
# TODO:
# organize imports
# organize
from websocket import create_connection
from threading import Thread
from battle import Battle
import commands
import traceback
import requests
import inspect
import json
from fractions import Fraction
import random
import time
import sys
import re
imp... | 36.141631 | 131 | 0.517278 | 957 | 8,421 | 4.487983 | 0.205852 | 0.046566 | 0.020955 | 0.011641 | 0.262398 | 0.205588 | 0.129919 | 0.105704 | 0.105704 | 0.088941 | 0 | 0.010106 | 0.342002 | 8,421 | 232 | 132 | 36.297414 | 0.765024 | 0.011281 | 0 | 0.124294 | 0 | 0 | 0.078967 | 0.006303 | 0 | 0 | 0 | 0.00431 | 0.011299 | 1 | 0.096045 | false | 0.033898 | 0.084746 | 0.011299 | 0.214689 | 0.045198 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
16391df203c1efac2e1f8b82d3e69209d5e07f18 | 10,758 | py | Python | stRT/tdr/widgets/changes.py | Yao-14/stAnalysis | d08483ce581f5b03cfcad8be500aaa64b0293f74 | [
"BSD-3-Clause"
] | null | null | null | stRT/tdr/widgets/changes.py | Yao-14/stAnalysis | d08483ce581f5b03cfcad8be500aaa64b0293f74 | [
"BSD-3-Clause"
] | null | null | null | stRT/tdr/widgets/changes.py | Yao-14/stAnalysis | d08483ce581f5b03cfcad8be500aaa64b0293f74 | [
"BSD-3-Clause"
] | null | null | null | from typing import Optional, Tuple, Union
import numpy as np
import pandas as pd
import pyvista as pv
from pyvista import DataSet, MultiBlock, PolyData, UnstructuredGrid
try:
from typing import Literal
except ImportError:
from typing_extensions import Literal
from .ddrtree import DDRTree, cal_ncenter
from .s... | 31.734513 | 125 | 0.635899 | 1,391 | 10,758 | 4.800863 | 0.198418 | 0.016771 | 0.014376 | 0.019167 | 0.401318 | 0.355795 | 0.278377 | 0.237796 | 0.237796 | 0.198413 | 0 | 0.009722 | 0.244655 | 10,758 | 338 | 126 | 31.828402 | 0.812085 | 0.266035 | 0 | 0.280788 | 0 | 0.004926 | 0.096987 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.039409 | false | 0 | 0.103448 | 0 | 0.182266 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
16394617ff3197501b57f08cd314d25d52093a16 | 842 | py | Python | test/test_add_group.py | nkoshkina/Python_Training3 | e917440d37883dbcaa527a0700bcfa1478a1c1ce | [
"Apache-2.0"
] | null | null | null | test/test_add_group.py | nkoshkina/Python_Training3 | e917440d37883dbcaa527a0700bcfa1478a1c1ce | [
"Apache-2.0"
] | null | null | null | test/test_add_group.py | nkoshkina/Python_Training3 | e917440d37883dbcaa527a0700bcfa1478a1c1ce | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from model.group import Group
import pytest
import allure_pytest
def test_add_group(app, db, check_ui, json_groups):
group0 = json_groups
#with pytest.allure.step("Given a group list"):
old_groups = db.get_group_list()
#with pytest.allure.step("When I add a group %s to the list"... | 36.608696 | 93 | 0.693587 | 135 | 842 | 4.111111 | 0.355556 | 0.064865 | 0.072072 | 0.086486 | 0.342342 | 0.156757 | 0.156757 | 0.108108 | 0 | 0 | 0 | 0.008746 | 0.185273 | 842 | 22 | 94 | 38.272727 | 0.800292 | 0.321853 | 0 | 0 | 0 | 0 | 0.01421 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.071429 | false | 0 | 0.214286 | 0 | 0.285714 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
163c66ec8f6a6a9ebf21f694414728829c5d030d | 7,851 | py | Python | src/otp_yubikey/models.py | moggers87/django-otp-yubikey | 2d7cf9dc91ba57b65aa62254532997cc1e6261dd | [
"BSD-2-Clause"
] | null | null | null | src/otp_yubikey/models.py | moggers87/django-otp-yubikey | 2d7cf9dc91ba57b65aa62254532997cc1e6261dd | [
"BSD-2-Clause"
] | null | null | null | src/otp_yubikey/models.py | moggers87/django-otp-yubikey | 2d7cf9dc91ba57b65aa62254532997cc1e6261dd | [
"BSD-2-Clause"
] | null | null | null | from __future__ import absolute_import, division, print_function, unicode_literals
from base64 import b64decode
from binascii import hexlify, unhexlify
from struct import pack
import six
from django.db import models
from django.utils.encoding import force_text
from django_otp.models import Device
from django_otp.ut... | 27.644366 | 139 | 0.640683 | 979 | 7,851 | 5.010215 | 0.228805 | 0.021203 | 0.022426 | 0.039144 | 0.339042 | 0.235066 | 0.200815 | 0.158818 | 0.112946 | 0.112946 | 0 | 0.014016 | 0.263915 | 7,851 | 283 | 140 | 27.742049 | 0.834747 | 0.300217 | 0 | 0.157534 | 0 | 0 | 0.139202 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068493 | false | 0 | 0.082192 | 0.041096 | 0.39726 | 0.006849 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
163d64f557e7427d0b9ba345ed63cc3b52a618e5 | 14,278 | py | Python | glue/core/tests/test_state_objects.py | HPLegion/glue | 1843787ccb4de852dfe103ff58473da13faccf5f | [
"BSD-3-Clause"
] | null | null | null | glue/core/tests/test_state_objects.py | HPLegion/glue | 1843787ccb4de852dfe103ff58473da13faccf5f | [
"BSD-3-Clause"
] | null | null | null | glue/core/tests/test_state_objects.py | HPLegion/glue | 1843787ccb4de852dfe103ff58473da13faccf5f | [
"BSD-3-Clause"
] | null | null | null | import numpy as np
from numpy.testing import assert_allclose
from echo import CallbackProperty, ListCallbackProperty
from glue.core import Data, DataCollection
from .test_state import clone
from ..state_objects import (State, StateAttributeLimitsHelper,
StateAttributeSingleValueHelper,
... | 27.832359 | 96 | 0.588178 | 1,772 | 14,278 | 4.632619 | 0.108352 | 0.068218 | 0.056523 | 0.039347 | 0.692654 | 0.649044 | 0.59252 | 0.575344 | 0.567426 | 0.519795 | 0 | 0.038075 | 0.29549 | 14,278 | 512 | 97 | 27.886719 | 0.77801 | 0.053579 | 0 | 0.652422 | 0 | 0 | 0.038157 | 0 | 0 | 0 | 0 | 0.001953 | 0.247863 | 1 | 0.068376 | false | 0 | 0.017094 | 0 | 0.213675 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
163f5e0eb3de89d92ad7d61128630ed72fcd3690 | 1,079 | py | Python | code/scripts/GeneratePNG_Preview_AsIs.py | dgrechka/bengaliai-cv19 | 9ef15c5b140628337ae6efe0d76e7ec5d291dc17 | [
"MIT"
] | null | null | null | code/scripts/GeneratePNG_Preview_AsIs.py | dgrechka/bengaliai-cv19 | 9ef15c5b140628337ae6efe0d76e7ec5d291dc17 | [
"MIT"
] | null | null | null | code/scripts/GeneratePNG_Preview_AsIs.py | dgrechka/bengaliai-cv19 | 9ef15c5b140628337ae6efe0d76e7ec5d291dc17 | [
"MIT"
] | null | null | null | import tensorflow as tf
import sys
import os
from glob import glob
import png
sys.path.append(os.path.join(__file__,'..','..'))
from tfDataIngest import tfDataSetParquet as tfDsParquet
inputDataDir = sys.argv[1]
outputDir = sys.argv[2]
# test app
if __name__ == "__main__":
files = glob(os.path.join(inputDataDir... | 29.972222 | 85 | 0.636701 | 141 | 1,079 | 4.751773 | 0.468085 | 0.026866 | 0.044776 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016393 | 0.208526 | 1,079 | 36 | 86 | 29.972222 | 0.76815 | 0.193698 | 0 | 0 | 0 | 0 | 0.110465 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3 | 0 | 0.3 | 0.15 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1640d2033b3fc61dda0183c87b5baa9f8cbed3bd | 2,763 | py | Python | widgets/datepicker_ctrl/codegen.py | RSabet/wxGlade | 8b62eb8397308e60977857455b2765727b1b940f | [
"MIT"
] | 225 | 2018-03-26T11:23:22.000Z | 2022-03-24T09:44:08.000Z | widgets/datepicker_ctrl/codegen.py | RSabet/wxGlade | 8b62eb8397308e60977857455b2765727b1b940f | [
"MIT"
] | 403 | 2018-01-03T19:47:28.000Z | 2018-03-23T17:43:39.000Z | widgets/datepicker_ctrl/codegen.py | DietmarSchwertberger/wxGlade | 8e78cdc509d458cc896d47315e19f3daa6c09213 | [
"MIT"
] | 47 | 2018-04-08T16:48:38.000Z | 2021-12-21T20:08:44.000Z | """\
Code generator functions for wxDatePickerCtrl objects
@copyright: 2002-2007 Alberto Griggio
@copyright: 2014-2016 Carsten Grohmann
@copyright: 2016-2021 Dietmar Schwertberger
@license: MIT (see LICENSE.txt) - THIS PROGRAM COMES WITH NO WARRANTY
"""
import common, compat
import wcodegen
class PythonDatePickerCt... | 33.695122 | 106 | 0.615635 | 294 | 2,763 | 5.676871 | 0.435374 | 0.031156 | 0.04314 | 0.052726 | 0.22169 | 0.19293 | 0.173757 | 0.089874 | 0.089874 | 0.089874 | 0 | 0.01689 | 0.271444 | 2,763 | 81 | 107 | 34.111111 | 0.812221 | 0.156352 | 0 | 0.192308 | 0 | 0.019231 | 0.125431 | 0.018103 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115385 | false | 0 | 0.076923 | 0 | 0.480769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1642121cd961a12c79b579c9fabd08e8a6ce9bc8 | 3,960 | py | Python | train.py | lck1201/simple-effective-3Dpose-baseline | 790a185b44e48a9cc619f52b6615aae729bff76b | [
"MIT"
] | 20 | 2019-03-29T12:20:10.000Z | 2021-02-07T08:32:18.000Z | train.py | motokimura/simple-effective-3Dpose-baseline | 790a185b44e48a9cc619f52b6615aae729bff76b | [
"MIT"
] | 10 | 2019-04-03T15:25:00.000Z | 2021-03-26T16:23:33.000Z | train.py | motokimura/simple-effective-3Dpose-baseline | 790a185b44e48a9cc619f52b6615aae729bff76b | [
"MIT"
] | 7 | 2019-06-02T13:25:27.000Z | 2020-12-17T06:07:17.000Z | import pprint
import mxnet as mx
from mxnet import gluon
from mxnet import init
from lib.core.get_optimizer import *
from lib.core.metric import MPJPEMetric
from lib.core.loss import MeanSquareLoss
from lib.core.loader import JointsDataIter
from lib.network import get_net
from lib.net_module import *
from lib.utils i... | 41.684211 | 124 | 0.646212 | 490 | 3,960 | 5 | 0.25102 | 0.042449 | 0.047755 | 0.026122 | 0.288163 | 0.217551 | 0.181633 | 0.153061 | 0.153061 | 0.045714 | 0 | 0.007395 | 0.248737 | 3,960 | 95 | 125 | 41.684211 | 0.816134 | 0.036364 | 0 | 0.084507 | 0 | 0 | 0.048307 | 0 | 0 | 0 | 0 | 0 | 0.014085 | 1 | 0.014085 | false | 0 | 0.183099 | 0 | 0.197183 | 0.028169 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1643d3915575e537c0423b05a3b3b1e3b7eb7865 | 6,789 | py | Python | FastLinear/generate_memory_bank.py | WangFeng18/dino | 1a4e49bd0e99d7e205338b14994a1d57c3084cfe | [
"Apache-2.0"
] | null | null | null | FastLinear/generate_memory_bank.py | WangFeng18/dino | 1a4e49bd0e99d7e205338b14994a1d57c3084cfe | [
"Apache-2.0"
] | null | null | null | FastLinear/generate_memory_bank.py | WangFeng18/dino | 1a4e49bd0e99d7e205338b14994a1d57c3084cfe | [
"Apache-2.0"
] | null | null | null | import os
from tqdm import tqdm
import torch.backends.cudnn as cudnn
import torch
from datasets import ImageNetInstance, ImageNetInstanceLMDB
from torchvision import transforms
import argparse
from BaseTaskModel.task_network import get_moco_network, get_swav_network, get_selfboost_network, get_minmaxent_network, get_si... | 44.664474 | 174 | 0.705259 | 879 | 6,789 | 5.208191 | 0.220705 | 0.04194 | 0.040848 | 0.039755 | 0.438401 | 0.38685 | 0.327872 | 0.260157 | 0.240498 | 0.240498 | 0 | 0.010757 | 0.178377 | 6,789 | 151 | 175 | 44.960265 | 0.809968 | 0.033289 | 0 | 0.211382 | 0 | 0 | 0.08699 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.01626 | false | 0 | 0.105691 | 0 | 0.130081 | 0.01626 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
16447f2400735bc0538f6c77d41578715bdd08b9 | 2,489 | py | Python | tests/utils/test_mercator.py | anuragtr/fabric8-analytics-rudra | 13fb15539d195fcb89ced02b205d034ec0c18e00 | [
"Apache-2.0"
] | 1 | 2019-05-13T09:31:19.000Z | 2019-05-13T09:31:19.000Z | tests/utils/test_mercator.py | anuragtr/fabric8-analytics-rudra | 13fb15539d195fcb89ced02b205d034ec0c18e00 | [
"Apache-2.0"
] | null | null | null | tests/utils/test_mercator.py | anuragtr/fabric8-analytics-rudra | 13fb15539d195fcb89ced02b205d034ec0c18e00 | [
"Apache-2.0"
] | null | null | null | import pytest
from rudra.utils.mercator import SimpleMercator
class TestSimpleMercator:
pom_xml_content = """
<project>
<dependencies>
<dependency>
<groupId>grp1.id</groupId>
<artifactId>art1.id</artifactId>
</dependency... | 34.09589 | 82 | 0.526718 | 225 | 2,489 | 5.684444 | 0.257778 | 0.070367 | 0.074277 | 0.031274 | 0.513683 | 0.469898 | 0.411259 | 0.362783 | 0.292416 | 0.292416 | 0 | 0.012587 | 0.361591 | 2,489 | 72 | 83 | 34.569444 | 0.792322 | 0 | 0 | 0.515625 | 0 | 0 | 0.527923 | 0.134592 | 0 | 0 | 0 | 0 | 0.109375 | 1 | 0.0625 | false | 0 | 0.03125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
16477f8a306c6c85422ce092acee78844c0cd611 | 4,037 | py | Python | django_airbrake/utils/client.py | Captricity/airbrake-django | 2ea126653883732a13f1a80c9e567b7076601620 | [
"BSD-3-Clause"
] | null | null | null | django_airbrake/utils/client.py | Captricity/airbrake-django | 2ea126653883732a13f1a80c9e567b7076601620 | [
"BSD-3-Clause"
] | 2 | 2016-07-12T15:44:02.000Z | 2016-08-19T20:31:49.000Z | django_airbrake/utils/client.py | Captricity/airbrake-django | 2ea126653883732a13f1a80c9e567b7076601620 | [
"BSD-3-Clause"
] | null | null | null | import sys
import traceback
from django.conf import settings
from django.urls import resolve
from lxml import etree
from six.moves.urllib.request import urlopen, Request
class Client(object):
API_URL = '%s://airbrake.io/notifier_api/v2/notices'
ERRORS = {
403: "Cannot use SSL",
422: "Invalid X... | 34.211864 | 107 | 0.566757 | 454 | 4,037 | 4.876652 | 0.288546 | 0.135501 | 0.053749 | 0.051942 | 0.149051 | 0.02981 | 0.02981 | 0.02981 | 0.02981 | 0.02981 | 0 | 0.008964 | 0.30914 | 4,037 | 117 | 108 | 34.504274 | 0.784869 | 0 | 0 | 0.131868 | 0 | 0 | 0.118157 | 0.009908 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043956 | false | 0 | 0.065934 | 0 | 0.208791 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1649638736a414c6fde2874636d2e6f9fe9164e4 | 2,912 | py | Python | docs/tutorial/context/app.py | theasylum/wired | 6b6a3e83702b18ebb41ca1f94e957bdf7e44986d | [
"MIT"
] | 12 | 2018-07-22T15:40:35.000Z | 2020-12-27T21:39:18.000Z | docs/tutorial/context/app.py | theasylum/wired | 6b6a3e83702b18ebb41ca1f94e957bdf7e44986d | [
"MIT"
] | 36 | 2019-03-23T13:47:25.000Z | 2020-11-28T18:08:14.000Z | docs/tutorial/context/app.py | theasylum/wired | 6b6a3e83702b18ebb41ca1f94e957bdf7e44986d | [
"MIT"
] | 6 | 2019-03-23T20:08:57.000Z | 2021-06-03T16:52:06.000Z | """
A customer walks into a store. Do the steps to interact with them:
- Get *a* (not *the*) greeter
- Interact with them
Simple wired application:
- Settings that say what punctuation to use
- Registry
- Two factories that says hello, one for the FrenchCustomer context
- A default Customer and FrenchCustomer
... | 25.54386 | 74 | 0.712569 | 341 | 2,912 | 6.008798 | 0.249267 | 0.034163 | 0.027818 | 0.018546 | 0.254758 | 0.254758 | 0.254758 | 0.254758 | 0.254758 | 0.254758 | 0 | 0 | 0.206731 | 2,912 | 113 | 75 | 25.769912 | 0.887013 | 0.374313 | 0 | 0.23913 | 0 | 0 | 0.084727 | 0 | 0 | 0 | 0 | 0 | 0.043478 | 1 | 0.152174 | false | 0.021739 | 0.043478 | 0.086957 | 0.543478 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1649bff1d5c282f752cad12fddde82da77d3b6ea | 3,133 | py | Python | feast/DetectionModules/ldar_program.py | GeoSensorWebLab/FEAST_PtE | 63ff8b7925873d756666f3c0c4b9f0f84abd5eb2 | [
"MIT"
] | 10 | 2020-03-26T20:12:19.000Z | 2022-02-14T22:47:01.000Z | feast/DetectionModules/ldar_program.py | GeoSensorWebLab/FEAST_PtE | 63ff8b7925873d756666f3c0c4b9f0f84abd5eb2 | [
"MIT"
] | 1 | 2021-07-14T21:14:12.000Z | 2021-07-14T21:14:12.000Z | feast/DetectionModules/ldar_program.py | GeoSensorWebLab/FEAST_PtE | 63ff8b7925873d756666f3c0c4b9f0f84abd5eb2 | [
"MIT"
] | 9 | 2020-03-27T22:57:31.000Z | 2021-09-29T17:29:35.000Z | """
This module defines the LDARProgram class.
"""
import numpy as np
import copy
from .repair import Repair
from ..EmissionSimModules.result_classes import ResultDiscrete, ResultContinuous
class LDARProgram:
"""
An LDAR program contains one or more detection methods and one or more repair methods. Each LDAR... | 48.2 | 120 | 0.679221 | 422 | 3,133 | 4.893365 | 0.331754 | 0.034867 | 0.029056 | 0.024213 | 0.03293 | 0.03293 | 0 | 0 | 0 | 0 | 0 | 0.001262 | 0.241302 | 3,133 | 64 | 121 | 48.953125 | 0.86748 | 0.416534 | 0 | 0 | 0 | 0 | 0.011508 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103448 | false | 0 | 0.137931 | 0 | 0.275862 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
164cf23737de25e42e24acaa15cc12f759dc3323 | 12,783 | py | Python | src/CycleGAN.py | sjmoran/SIDGAN | 169bd69974bbb7f5760c28a00c231a856017e51c | [
"0BSD"
] | 25 | 2020-09-17T06:29:41.000Z | 2022-03-22T06:38:37.000Z | src/CycleGAN.py | sjmoran/SIDGAN | 169bd69974bbb7f5760c28a00c231a856017e51c | [
"0BSD"
] | 2 | 2021-05-30T09:00:46.000Z | 2021-11-24T08:34:26.000Z | src/CycleGAN.py | sjmoran/SIDGAN | 169bd69974bbb7f5760c28a00c231a856017e51c | [
"0BSD"
] | 5 | 2020-10-16T00:44:10.000Z | 2021-11-04T15:59:55.000Z | #Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
#This program is free software; you can redistribute it and/or modify it under the terms of the BSD 0-Clause License.
#This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of ... | 46.824176 | 181 | 0.586013 | 1,539 | 12,783 | 4.573749 | 0.17154 | 0.02685 | 0.025572 | 0.022873 | 0.362978 | 0.318653 | 0.270493 | 0.25032 | 0.230999 | 0.205427 | 0 | 0.011807 | 0.33083 | 12,783 | 272 | 182 | 46.996324 | 0.811083 | 0.127044 | 0 | 0.242424 | 0 | 0 | 0.059046 | 0.00654 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025253 | false | 0 | 0.035354 | 0 | 0.075758 | 0.116162 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
164e763a74e067d7e8c03c1d5ec3635ec5b33a02 | 876 | py | Python | application/fastapi/main.py | edson-dev/neoway | f792e16c0f627e8b94b54f001e87e076f36311ab | [
"MIT"
] | null | null | null | application/fastapi/main.py | edson-dev/neoway | f792e16c0f627e8b94b54f001e87e076f36311ab | [
"MIT"
] | null | null | null | application/fastapi/main.py | edson-dev/neoway | f792e16c0f627e8b94b54f001e87e076f36311ab | [
"MIT"
] | null | null | null | import uvicorn
from fastapi import FastAPI
from fastapi.staticfiles import StaticFiles
from routes import doc, api
from fastapi.templating import Jinja2Templates
from starlette.requests import Request
# configure static and templates file on jinja 2
app = FastAPI(
title=f"Technical Case",
description=f"endpoi... | 28.258065 | 90 | 0.745434 | 117 | 876 | 5.487179 | 0.529915 | 0.012461 | 0.031153 | 0.040498 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018325 | 0.127854 | 876 | 30 | 91 | 29.2 | 0.82199 | 0.099315 | 0 | 0 | 0 | 0 | 0.220663 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
164f24393208739c6bb0a99eb1b2e8ed9fcd90d3 | 58,056 | py | Python | civis/io/_tables.py | jsfalk/civis-python | 39b6498b2d67d838d720d9631d74f3d3d43f7c1a | [
"BSD-3-Clause"
] | null | null | null | civis/io/_tables.py | jsfalk/civis-python | 39b6498b2d67d838d720d9631d74f3d3d43f7c1a | [
"BSD-3-Clause"
] | null | null | null | civis/io/_tables.py | jsfalk/civis-python | 39b6498b2d67d838d720d9631d74f3d3d43f7c1a | [
"BSD-3-Clause"
] | null | null | null | import json
import concurrent.futures
import csv
from os import path
import io
import logging
import os
import shutil
from tempfile import TemporaryDirectory
import warnings
import zlib
import gzip
import zipfile
from civis import APIClient
from civis._utils import maybe_get_random_name
from civis.base import EmptyRe... | 40.798313 | 79 | 0.617111 | 7,259 | 58,056 | 4.80011 | 0.093815 | 0.008782 | 0.010734 | 0.00683 | 0.620566 | 0.596946 | 0.573356 | 0.548645 | 0.53596 | 0.523017 | 0 | 0.003304 | 0.296248 | 58,056 | 1,422 | 80 | 40.827004 | 0.849524 | 0.49888 | 0 | 0.355596 | 0 | 0 | 0.091897 | 0.0025 | 0 | 0 | 0 | 0 | 0.00361 | 1 | 0.041516 | false | 0 | 0.072202 | 0.00361 | 0.151625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
164f6ae0c583900eea5f44762f6006a785208240 | 2,218 | py | Python | tests/unit/small_text/integrations/pytorch/test_strategies.py | chschroeder/small-text | ef28e91ba0c94fe938dde4f16253aa8695ea13b7 | [
"MIT"
] | 218 | 2021-05-26T16:38:53.000Z | 2022-03-30T09:48:54.000Z | tests/unit/small_text/integrations/pytorch/test_strategies.py | chschroeder/small-text | ef28e91ba0c94fe938dde4f16253aa8695ea13b7 | [
"MIT"
] | 9 | 2021-10-16T23:23:02.000Z | 2022-02-22T15:23:11.000Z | tests/unit/small_text/integrations/pytorch/test_strategies.py | chschroeder/small-text | ef28e91ba0c94fe938dde4f16253aa8695ea13b7 | [
"MIT"
] | 21 | 2021-06-24T11:19:44.000Z | 2022-03-12T16:29:53.000Z | import unittest
import pytest
from small_text.integrations.pytorch.exceptions import PytorchNotFoundError
try:
from small_text.integrations.pytorch.query_strategies import (
BADGE,
ExpectedGradientLength,
ExpectedGradientLengthMaxWord)
except PytorchNotFoundError:
pass
@pytest.mark.... | 30.383562 | 94 | 0.712353 | 236 | 2,218 | 6.538136 | 0.207627 | 0.174984 | 0.042774 | 0.057032 | 0.6442 | 0.553467 | 0.531432 | 0.508101 | 0.365522 | 0.365522 | 0 | 0.01728 | 0.191163 | 2,218 | 72 | 95 | 30.805556 | 0.842809 | 0 | 0 | 0.596154 | 0 | 0 | 0.045086 | 0.010821 | 0 | 0 | 0 | 0 | 0.346154 | 1 | 0.153846 | false | 0.019231 | 0.076923 | 0 | 0.288462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
16517f3c2ccf47bb7eb0759cee7e8d2e4ec1a86f | 3,553 | py | Python | src/adsb/sbs/server.py | claws/adsb | 4a7d35880dece6baaf24370fab445e2571fc19e9 | [
"MIT"
] | 7 | 2018-07-11T00:50:47.000Z | 2021-09-29T10:36:44.000Z | src/adsb/sbs/server.py | claws/adsb | 4a7d35880dece6baaf24370fab445e2571fc19e9 | [
"MIT"
] | 3 | 2020-06-13T23:27:42.000Z | 2020-07-22T03:06:16.000Z | src/adsb/sbs/server.py | claws/adsb | 4a7d35880dece6baaf24370fab445e2571fc19e9 | [
"MIT"
] | 3 | 2020-01-08T19:05:42.000Z | 2022-02-11T02:22:23.000Z |
import asyncio
import datetime
import logging
import socket
from . import protocol
from typing import Tuple
from asyncio import AbstractEventLoop
logger = logging.getLogger(__name__)
class Server(object):
def __init__(
self,
host: str = "localhost",
port: int = 30003,
backlog... | 32.59633 | 77 | 0.565156 | 406 | 3,553 | 4.891626 | 0.334975 | 0.052367 | 0.018127 | 0.022659 | 0.165156 | 0.136455 | 0.098691 | 0.064451 | 0 | 0 | 0 | 0.004787 | 0.353223 | 3,553 | 108 | 78 | 32.898148 | 0.859443 | 0.247678 | 0 | 0.164179 | 0 | 0 | 0.072603 | 0 | 0 | 0 | 0 | 0 | 0.014925 | 1 | 0.059701 | false | 0 | 0.104478 | 0 | 0.179104 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
16557fb191c1ea62849d52d444fde47864d855b9 | 43,651 | py | Python | lantz/drivers/sacher/Sacher_EPOS.py | mtsolmn/lantz-drivers | f48caf9000ddd08f2abb837d832e341410af4788 | [
"BSD-3-Clause"
] | 4 | 2019-05-04T00:10:53.000Z | 2020-10-22T18:08:40.000Z | lantz/drivers/sacher/Sacher_EPOS.py | mtsolmn/lantz-drivers | f48caf9000ddd08f2abb837d832e341410af4788 | [
"BSD-3-Clause"
] | 3 | 2019-07-12T13:44:17.000Z | 2020-10-22T19:32:08.000Z | lantz/drivers/sacher/Sacher_EPOS.py | mtsolmn/lantz-drivers | f48caf9000ddd08f2abb837d832e341410af4788 | [
"BSD-3-Clause"
] | 9 | 2019-04-03T17:07:03.000Z | 2021-02-15T21:53:55.000Z | # sacher_epos.py, python wrapper for sacher epos motor
# David Christle <christle@uchicago.edu>, August 2014
#
"""
Possbily Maxon EPOS now
"""
"""
This is the actual version that works
But only in the lab32 virtual environment
"""
# from instrument import Instrument
# import qt
import ctypes
import ctypes.wintypes
i... | 41.532826 | 147 | 0.625644 | 5,039 | 43,651 | 5.285573 | 0.133161 | 0.089885 | 0.056357 | 0.042577 | 0.618007 | 0.576143 | 0.554855 | 0.52463 | 0.50995 | 0.477397 | 0 | 0.025668 | 0.269937 | 43,651 | 1,050 | 148 | 41.572381 | 0.810092 | 0.26311 | 0 | 0.518681 | 0 | 0 | 0.033659 | 0.002565 | 0 | 0 | 0.000624 | 0.001905 | 0 | 1 | 0.048352 | false | 0 | 0.013187 | 0.004396 | 0.103297 | 0.057143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
165616f6329f47d7fc22c8cc1eb0970f40d768d9 | 1,652 | py | Python | tools/generate_lst.py | haotianliu001/HRNet-Lesion | 9dae108879456e084b2200e39d7e58c1c08c2b16 | [
"MIT"
] | null | null | null | tools/generate_lst.py | haotianliu001/HRNet-Lesion | 9dae108879456e084b2200e39d7e58c1c08c2b16 | [
"MIT"
] | null | null | null | tools/generate_lst.py | haotianliu001/HRNet-Lesion | 9dae108879456e084b2200e39d7e58c1c08c2b16 | [
"MIT"
] | null | null | null | import argparse
import os
image_dir = 'image'
label_dir = 'label'
splits = ['train', 'val', 'test']
image_dirs = [
'image/{}',
'image/{}_crop'
]
label_dirs = [
'label/{}/annotations',
'label/{}/annotations_crop',
]
def generate(root):
assert len(image_dirs) == len(label_dirs)
for split in sp... | 30.036364 | 116 | 0.579903 | 209 | 1,652 | 4.37799 | 0.315789 | 0.065574 | 0.087432 | 0.091803 | 0.190164 | 0.190164 | 0.102732 | 0 | 0 | 0 | 0 | 0.000827 | 0.26816 | 1,652 | 54 | 117 | 30.592593 | 0.755997 | 0 | 0 | 0 | 0 | 0 | 0.12954 | 0.015133 | 0 | 0 | 0 | 0 | 0.025 | 1 | 0.025 | false | 0 | 0.05 | 0 | 0.075 | 0.075 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1658161ce6f6978b51d0a1fdd4a0ce93c2160124 | 897 | py | Python | examples/example.py | f-dangel/unfoldNd | 63e9abc4867d8678c2ac00da567dc106e9f6f2c7 | [
"MIT"
] | 21 | 2021-03-04T04:56:20.000Z | 2022-03-31T11:15:28.000Z | examples/example.py | f-dangel/unfoldNd | 63e9abc4867d8678c2ac00da567dc106e9f6f2c7 | [
"MIT"
] | 12 | 2021-02-16T16:16:23.000Z | 2021-05-28T06:00:41.000Z | examples/example.py | f-dangel/unfoldNd | 63e9abc4867d8678c2ac00da567dc106e9f6f2c7 | [
"MIT"
] | 1 | 2021-11-04T12:52:19.000Z | 2021-11-04T12:52:19.000Z | """How to use ``unfoldNd``. A comparison with ``torch.nn.Unfold``."""
# imports, make this example deterministic
import torch
import unfoldNd
torch.manual_seed(0)
# random batched RGB 32x32 image-shaped input tensor of batch size 64
inputs = torch.randn((64, 3, 32, 32))
# module hyperparameters
kernel_size = 3
dil... | 24.916667 | 71 | 0.753623 | 128 | 897 | 5.203125 | 0.53125 | 0.031532 | 0.058559 | 0.078078 | 0.156156 | 0.156156 | 0.156156 | 0.156156 | 0 | 0 | 0 | 0.023499 | 0.146042 | 897 | 35 | 72 | 25.628571 | 0.843342 | 0.317726 | 0 | 0.1 | 0 | 0 | 0.129784 | 0 | 0 | 0 | 0 | 0 | 0.05 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1658fa9a24f0d70843df0f950d0081f1ffadc11b | 797 | py | Python | src/pretix/helpers/escapejson.py | NicsTr/pretix | e6d2380d9ed1836cc64a688b2be20d00a8500eab | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2020-04-25T00:11:00.000Z | 2020-04-25T00:11:00.000Z | src/pretix/helpers/escapejson.py | NicsTr/pretix | e6d2380d9ed1836cc64a688b2be20d00a8500eab | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | src/pretix/helpers/escapejson.py | NicsTr/pretix | e6d2380d9ed1836cc64a688b2be20d00a8500eab | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | from django.utils.encoding import force_str
from django.utils.functional import keep_lazy
from django.utils.safestring import SafeText, mark_safe
_json_escapes = {
ord('>'): '\\u003E',
ord('<'): '\\u003C',
ord('&'): '\\u0026',
}
_json_escapes_attr = {
ord('>'): '\\u003E',
ord('<'): '\\u003C',
... | 25.709677 | 75 | 0.6399 | 100 | 797 | 4.9 | 0.41 | 0.089796 | 0.091837 | 0.065306 | 0.583673 | 0.583673 | 0.355102 | 0.355102 | 0.216327 | 0.216327 | 0 | 0.038922 | 0.161857 | 797 | 30 | 76 | 26.566667 | 0.694611 | 0.155583 | 0 | 0.363636 | 0 | 0 | 0.099698 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.136364 | 0 | 0.318182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1659ed45e2efb246708ee177c0a31eb71473cb9b | 1,813 | py | Python | pyxley/charts/plotly/base.py | snowind/pyxley | cff9e50b8d80b9794c6907355e541f166959cd6c | [
"MIT"
] | 2,536 | 2015-06-26T20:12:30.000Z | 2022-03-01T07:26:44.000Z | pyxley/charts/plotly/base.py | zhiaozhou/pyxley | 2dab00022d977d986169cd8a629b3a2f91be893f | [
"MIT"
] | 51 | 2015-07-17T14:16:43.000Z | 2021-07-09T21:34:36.000Z | pyxley/charts/plotly/base.py | zhiaozhou/pyxley | 2dab00022d977d986169cd8a629b3a2f91be893f | [
"MIT"
] | 335 | 2015-07-16T20:22:00.000Z | 2022-02-25T07:18:15.000Z |
from ..charts import Chart
from flask import jsonify, request
_BASE_CONFIG = {
"showLink": False,
"displaylogo": False,
"modeBarButtonsToRemove": ["sendDataToCloud"]
}
class PlotlyAPI(Chart):
""" Base class for Plotly.js API
This class is used to create charts using the plotly.js api
... | 27.059701 | 73 | 0.492554 | 185 | 1,813 | 4.702703 | 0.475676 | 0.027586 | 0.025287 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.407612 | 1,813 | 66 | 74 | 27.469697 | 0.810056 | 0.277992 | 0 | 0.105263 | 0 | 0 | 0.093643 | 0.0189 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.052632 | 0 | 0.184211 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
165b5afa3e28ca226423cdaac8f6894170030430 | 576 | py | Python | pyqt/getting_started/close_window.py | CospanDesign/python | 9f911509aae7abd9237c14a4635294c7719c9129 | [
"MIT"
] | 5 | 2015-12-12T20:16:45.000Z | 2020-02-21T19:50:31.000Z | pyqt/getting_started/close_window.py | CospanDesign/python | 9f911509aae7abd9237c14a4635294c7719c9129 | [
"MIT"
] | null | null | null | pyqt/getting_started/close_window.py | CospanDesign/python | 9f911509aae7abd9237c14a4635294c7719c9129 | [
"MIT"
] | 2 | 2020-06-01T06:27:06.000Z | 2022-03-10T13:21:03.000Z | #!/usr/bin/python
import sys
from PyQt4 import QtGui
from PyQt4 import QtCore
class Example(QtGui.QWidget):
def __init__(self):
super(Example, self).__init__()
self.initUI()
def initUI(self):
qbtn = QtGui.QPushButton('Quit', self)
qbtn.clicked.connect(QtCore.QCoreApplication.instance().quit)
... | 19.2 | 65 | 0.682292 | 74 | 576 | 5.081081 | 0.567568 | 0.047872 | 0.079787 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02935 | 0.171875 | 576 | 29 | 66 | 19.862069 | 0.75891 | 0.027778 | 0 | 0 | 0 | 0 | 0.041219 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0.15 | 0 | 0.35 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
165bdb25d95d9e2ecf502312358485ebe1274976 | 1,948 | py | Python | generator/contact.py | rizzak/python_training | 38bbe5d7e38892e8dcc28caeae1481b98cce7356 | [
"Apache-2.0"
] | null | null | null | generator/contact.py | rizzak/python_training | 38bbe5d7e38892e8dcc28caeae1481b98cce7356 | [
"Apache-2.0"
] | null | null | null | generator/contact.py | rizzak/python_training | 38bbe5d7e38892e8dcc28caeae1481b98cce7356 | [
"Apache-2.0"
] | null | null | null | import jsonpickle
import random
import string
from model.contact import Contact
import os.path
import getopt
import sys
try:
opts, args = getopt.getopt(sys.argv[1:], "n:f:", ["number of contacts", "file"])
except getopt.GetoptError as err:
getopt.usage()
sys.exit(2)
n = 5
f = "data/contacts.json"
for o,... | 40.583333 | 153 | 0.664271 | 260 | 1,948 | 4.780769 | 0.326923 | 0.193081 | 0.04827 | 0.017699 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026462 | 0.165811 | 1,948 | 48 | 154 | 40.583333 | 0.738462 | 0 | 0 | 0 | 0 | 0 | 0.111339 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027027 | false | 0 | 0.189189 | 0 | 0.243243 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |