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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ab3a2dd3958eeed0683e138275086ab9243b7a2e | 1,525 | py | Python | burl/core/api/views.py | wryfi/burl | 664878ce9a31695456be89c8e10e8bb612074ef6 | [
"MIT"
] | 1 | 2021-02-07T21:48:59.000Z | 2021-02-07T21:48:59.000Z | burl/core/api/views.py | wryfi/burl | 664878ce9a31695456be89c8e10e8bb612074ef6 | [
"MIT"
] | 16 | 2020-03-24T16:53:30.000Z | 2022-03-15T17:46:59.000Z | burl/core/api/views.py | wryfi/burl | 664878ce9a31695456be89c8e10e8bb612074ef6 | [
"MIT"
] | null | null | null | from rest_framework.response import Response
from rest_framework.decorators import api_view
from rest_framework.reverse import reverse
from rest_framework_simplejwt.tokens import RefreshToken
@api_view(['GET'])
def root(request, fmt=None):
return Response({
'v1': reverse('api_v1:root', request=request, fo... | 29.901961 | 92 | 0.688525 | 186 | 1,525 | 5.446237 | 0.231183 | 0.096742 | 0.071076 | 0.136229 | 0.154985 | 0.124383 | 0 | 0 | 0 | 0 | 0 | 0.013578 | 0.179016 | 1,525 | 50 | 93 | 30.5 | 0.795527 | 0 | 0 | 0.125 | 0 | 0 | 0.152131 | 0.019672 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.1 | 0.025 | 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 |
ab3e250f158b4ed0173fe7715ee2559fe186d522 | 1,879 | py | Python | qurator/sbb_ned/embeddings/bert.py | qurator-spk/sbb_ned | d4cfe249f72e48913f254a58fbe0dbe6e47bd168 | [
"Apache-2.0"
] | 6 | 2020-09-05T16:08:59.000Z | 2022-03-05T00:54:47.000Z | qurator/sbb_ned/embeddings/bert.py | qurator-spk/sbb_ned | d4cfe249f72e48913f254a58fbe0dbe6e47bd168 | [
"Apache-2.0"
] | 6 | 2020-09-23T17:58:37.000Z | 2022-03-10T14:02:09.000Z | qurator/sbb_ned/embeddings/bert.py | qurator-spk/sbb_ned | d4cfe249f72e48913f254a58fbe0dbe6e47bd168 | [
"Apache-2.0"
] | 2 | 2021-03-22T00:12:51.000Z | 2022-01-31T10:04:08.000Z | from ..embeddings.base import Embeddings
from flair.data import Sentence
class BertEmbeddings(Embeddings):
def __init__(self, model_path,
layers="-1, -2, -3, -4", pooling_operation='first', use_scalar_mix=True, no_cuda=False, *args, **kwargs):
super(BertEmbeddings, self).__init__(*args... | 29.359375 | 122 | 0.585418 | 198 | 1,879 | 5.227273 | 0.343434 | 0.092754 | 0.069565 | 0.046377 | 0.10628 | 0.061836 | 0 | 0 | 0 | 0 | 0 | 0.003152 | 0.324641 | 1,879 | 63 | 123 | 29.825397 | 0.812451 | 0.018627 | 0 | 0 | 0 | 0 | 0.040174 | 0.02063 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.131579 | 0.026316 | 0.315789 | 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 |
ab41670d17acae57b54990c3a25815a2ee40eb19 | 9,225 | py | Python | onnxmltools/convert/keras/_parse.py | gpminsuk/onnxmltools | 4e88929a79a1018183f58e2d5e032dd639839dd2 | [
"MIT"
] | 1 | 2018-04-10T02:30:47.000Z | 2018-04-10T02:30:47.000Z | onnxmltools/convert/keras/_parse.py | gpminsuk/onnxmltools | 4e88929a79a1018183f58e2d5e032dd639839dd2 | [
"MIT"
] | null | null | null | onnxmltools/convert/keras/_parse.py | gpminsuk/onnxmltools | 4e88929a79a1018183f58e2d5e032dd639839dd2 | [
"MIT"
] | 1 | 2018-06-27T18:16:20.000Z | 2018-06-27T18:16:20.000Z | # -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------------------
import te... | 51.825843 | 125 | 0.714363 | 1,236 | 9,225 | 5.089806 | 0.16343 | 0.049277 | 0.040693 | 0.03815 | 0.473216 | 0.440629 | 0.415196 | 0.382133 | 0.331744 | 0.292322 | 0 | 0.004088 | 0.204444 | 9,225 | 177 | 126 | 52.118644 | 0.853114 | 0.258211 | 0 | 0.303571 | 0 | 0 | 0.04986 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044643 | false | 0 | 0.0625 | 0 | 0.169643 | 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 |
ab41d11daca6d1b31e59637bf18b9f99a383f86f | 24,575 | py | Python | src/scenic/core/regions.py | cahartsell/Scenic | 2e7979011aef426108687947668d9ba6f5439136 | [
"BSD-3-Clause"
] | null | null | null | src/scenic/core/regions.py | cahartsell/Scenic | 2e7979011aef426108687947668d9ba6f5439136 | [
"BSD-3-Clause"
] | null | null | null | src/scenic/core/regions.py | cahartsell/Scenic | 2e7979011aef426108687947668d9ba6f5439136 | [
"BSD-3-Clause"
] | null | null | null | """Objects representing regions in space."""
import math
import random
import itertools
import numpy
import scipy.spatial
import shapely.geometry
import shapely.ops
from scenic.core.distributions import Samplable, RejectionException, needsSampling
from scenic.core.lazy_eval import valueInContext
from scenic.core.vec... | 33.896552 | 96 | 0.722238 | 3,127 | 24,575 | 5.621043 | 0.131116 | 0.024748 | 0.006258 | 0.014223 | 0.336861 | 0.261535 | 0.184502 | 0.134039 | 0.102975 | 0.057803 | 0 | 0.003512 | 0.16586 | 24,575 | 724 | 97 | 33.94337 | 0.853944 | 0.115443 | 0 | 0.330325 | 0 | 0 | 0.072705 | 0.012118 | 0 | 0 | 0 | 0.002762 | 0.00722 | 1 | 0.169675 | false | 0.001805 | 0.028881 | 0.057762 | 0.413357 | 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 |
ab42204ebfa5ee7790165df748eb621656c602f4 | 6,525 | py | Python | orangery/cli/cutfill.py | mrahnis/orangery | 69afe0057bd61163eb8e026e58d648dfa1e73b94 | [
"BSD-3-Clause"
] | 2 | 2015-11-30T02:46:28.000Z | 2021-06-26T15:01:45.000Z | orangery/cli/cutfill.py | mrahnis/orangery | 69afe0057bd61163eb8e026e58d648dfa1e73b94 | [
"BSD-3-Clause"
] | 18 | 2017-06-18T03:23:05.000Z | 2022-03-18T00:14:05.000Z | orangery/cli/cutfill.py | mrahnis/orangery | 69afe0057bd61163eb8e026e58d648dfa1e73b94 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import logging
import time
import json
import click
import matplotlib.pyplot as plt
import orangery as o
from orangery.cli import defaults, util
from orangery.tools.plotting import get_scale_factor
@click.command(options_metavar='<options>')
@click.argument(... | 45 | 225 | 0.66728 | 966 | 6,525 | 4.425466 | 0.267081 | 0.030877 | 0.009357 | 0.014035 | 0.152281 | 0.108538 | 0.108538 | 0.081871 | 0.043977 | 0.025263 | 0 | 0.024309 | 0.1741 | 6,525 | 144 | 226 | 45.3125 | 0.768974 | 0.219004 | 0 | 0.033333 | 0 | 0.011111 | 0.213474 | 0.004385 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011111 | false | 0 | 0.111111 | 0 | 0.122222 | 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 |
ab434ed80b4187ec898e721a32ff14b67e16c48a | 1,669 | py | Python | py/solns/wordSearch/wordSearch.py | zcemycl/algoTest | 9518fb2b60fd83c85aeb2ab809ff647aaf643f0a | [
"MIT"
] | 1 | 2022-01-26T16:33:45.000Z | 2022-01-26T16:33:45.000Z | py/solns/wordSearch/wordSearch.py | zcemycl/algoTest | 9518fb2b60fd83c85aeb2ab809ff647aaf643f0a | [
"MIT"
] | null | null | null | py/solns/wordSearch/wordSearch.py | zcemycl/algoTest | 9518fb2b60fd83c85aeb2ab809ff647aaf643f0a | [
"MIT"
] | 1 | 2022-01-26T16:35:44.000Z | 2022-01-26T16:35:44.000Z | class Solution:
@staticmethod
def naive(board,word):
rows,cols,n = len(board),len(board[0]),len(word)
visited = set()
def dfs(i,j,k):
idf = str(i)+','+str(j)
if i<0 or j<0 or i>cols-1 or j>rows-1 or \
board[j][i]!=word[k] or idf in visited:
... | 37.088889 | 67 | 0.461953 | 260 | 1,669 | 2.965385 | 0.2 | 0.046693 | 0.072633 | 0.042802 | 0.442283 | 0.442283 | 0.352789 | 0.352789 | 0.352789 | 0.303502 | 0 | 0.037255 | 0.388856 | 1,669 | 45 | 68 | 37.088889 | 0.718627 | 0.081486 | 0 | 0.375 | 0 | 0 | 0.001339 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.275 | 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 |
ab453c7b64fdd47b4cf51bb569f233871fe2b337 | 4,118 | py | Python | harbor/tests/test_unit.py | tdimnet/integrations-core | a78133a3b71a1b8377fa214d121a98647031ab06 | [
"BSD-3-Clause"
] | 663 | 2016-08-23T05:23:45.000Z | 2022-03-29T00:37:23.000Z | harbor/tests/test_unit.py | tdimnet/integrations-core | a78133a3b71a1b8377fa214d121a98647031ab06 | [
"BSD-3-Clause"
] | 6,642 | 2016-06-09T16:29:20.000Z | 2022-03-31T22:24:09.000Z | harbor/tests/test_unit.py | tdimnet/integrations-core | a78133a3b71a1b8377fa214d121a98647031ab06 | [
"BSD-3-Clause"
] | 1,222 | 2017-01-27T15:51:38.000Z | 2022-03-31T18:17:51.000Z | # (C) Datadog, Inc. 2019-present
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)
import pytest
from mock import MagicMock
from requests import HTTPError
from datadog_checks.base import AgentCheck
from datadog_checks.dev.http import MockResponse
from .common import HARBOR_COMPONENTS, ... | 43.347368 | 120 | 0.753035 | 567 | 4,118 | 5.156966 | 0.218695 | 0.089261 | 0.035568 | 0.057456 | 0.661423 | 0.620041 | 0.573529 | 0.492134 | 0.422709 | 0.386457 | 0 | 0.015257 | 0.124575 | 4,118 | 94 | 121 | 43.808511 | 0.795839 | 0.026226 | 0 | 0.235294 | 0 | 0 | 0.143535 | 0.022217 | 0 | 0 | 0 | 0 | 0.191176 | 1 | 0.117647 | false | 0 | 0.088235 | 0 | 0.205882 | 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 |
ab47866bdd7f779d52254d019f551b3dccc349a3 | 2,649 | py | Python | M-SPRING/template/adapter.py | CN-UPB/SPRING | 1cb74919689e832987cb2c9b490eec7f09a64f52 | [
"Apache-2.0"
] | 3 | 2019-09-27T08:07:11.000Z | 2021-11-19T11:27:39.000Z | M-SPRING/template/adapter.py | CN-UPB/SPRING | 1cb74919689e832987cb2c9b490eec7f09a64f52 | [
"Apache-2.0"
] | null | null | null | M-SPRING/template/adapter.py | CN-UPB/SPRING | 1cb74919689e832987cb2c9b490eec7f09a64f52 | [
"Apache-2.0"
] | null | null | null | # module for adapting templates on the fly if components are reused
# check that all reused components are defined consistently -> else: exception
def check_consistency(components):
for j1 in components:
for j2 in components: # compare all components
if j1 == j2 and j1.__dict__ != j2.__dict__: # same n... | 36.791667 | 116 | 0.690449 | 387 | 2,649 | 4.640827 | 0.320413 | 0.071269 | 0.010022 | 0.025056 | 0.099109 | 0.02784 | 0.02784 | 0.02784 | 0.02784 | 0.02784 | 0 | 0.005865 | 0.227633 | 2,649 | 71 | 117 | 37.309859 | 0.871945 | 0.367686 | 0 | 0.106383 | 0 | 0 | 0.128319 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06383 | false | 0 | 0 | 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 |
ab4821f304dd37c05424c887f3d045a73e2c92fa | 4,369 | py | Python | column_completer.py | AllanLRH/column_completer | c1a0e1915256a4e3825c5c3b9863d78fdaf50be1 | [
"Unlicense"
] | null | null | null | column_completer.py | AllanLRH/column_completer | c1a0e1915256a4e3825c5c3b9863d78fdaf50be1 | [
"Unlicense"
] | null | null | null | column_completer.py | AllanLRH/column_completer | c1a0e1915256a4e3825c5c3b9863d78fdaf50be1 | [
"Unlicense"
] | null | null | null | class ColumnCompleter(object):
"""Complete Pandas DataFrame column names"""
def __init__(self, df, space_filler='_', silence_warnings=False):
"""
Once instantiated with a Pandas DataFrame, it will expose the column
names as attributes which maps to their string counterparts.
Au... | 44.581633 | 101 | 0.610895 | 535 | 4,369 | 4.874766 | 0.297196 | 0.063267 | 0.032209 | 0.019555 | 0.247699 | 0.21319 | 0.139571 | 0.105061 | 0.105061 | 0.077454 | 0 | 0.000658 | 0.304646 | 4,369 | 97 | 102 | 45.041237 | 0.857472 | 0.334173 | 0 | 0.042553 | 0 | 0 | 0.144223 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12766 | false | 0 | 0 | 0.042553 | 0.234043 | 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 |
ab4824ab4c800c1d309f147567a8700135e66f6b | 1,483 | py | Python | source/vsm-dashboard/vsm_dashboard/test/test_data/swift_data.py | ramkrsna/virtual-storage-manager | 78125bfb4dd4d78ff96bc3274c8919003769c545 | [
"Apache-2.0"
] | 172 | 2015-01-07T08:40:17.000Z | 2019-02-18T07:01:11.000Z | source/vsm-dashboard/vsm_dashboard/test/test_data/swift_data.py | ramkrsna/virtual-storage-manager | 78125bfb4dd4d78ff96bc3274c8919003769c545 | [
"Apache-2.0"
] | 83 | 2015-03-06T07:47:03.000Z | 2018-07-05T15:10:19.000Z | source/vsm-dashboard/vsm_dashboard/test/test_data/swift_data.py | ramkrsna/virtual-storage-manager | 78125bfb4dd4d78ff96bc3274c8919003769c545 | [
"Apache-2.0"
] | 125 | 2015-01-05T12:22:15.000Z | 2019-02-18T07:01:39.000Z | # Copyright 2012 Nebula, 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 agree... | 38.025641 | 78 | 0.645988 | 188 | 1,483 | 4.978723 | 0.531915 | 0.064103 | 0.028846 | 0.034188 | 0.068376 | 0.068376 | 0 | 0 | 0 | 0 | 0 | 0.02583 | 0.269049 | 1,483 | 38 | 79 | 39.026316 | 0.837638 | 0.389076 | 0 | 0 | 0 | 0 | 0.137892 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.1 | 0 | 0.15 | 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 |
ab48693089ba2d51e690249090e8808f1456a30c | 17,971 | py | Python | cinder/backup/driver.py | liangintel/stx-cinder | f4c43797a3f8c0caebfd8fb67244c084d26d9741 | [
"Apache-2.0"
] | null | null | null | cinder/backup/driver.py | liangintel/stx-cinder | f4c43797a3f8c0caebfd8fb67244c084d26d9741 | [
"Apache-2.0"
] | 2 | 2018-10-25T13:04:01.000Z | 2019-08-17T13:15:24.000Z | cinder/backup/driver.py | liangintel/stx-cinder | f4c43797a3f8c0caebfd8fb67244c084d26d9741 | [
"Apache-2.0"
] | 2 | 2018-10-17T13:32:50.000Z | 2018-11-08T08:39:39.000Z | # Copyright (C) 2013 Deutsche Telekom AG
# 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 r... | 40.566591 | 79 | 0.615492 | 2,156 | 17,971 | 4.974954 | 0.179035 | 0.024613 | 0.016782 | 0.019485 | 0.434179 | 0.399217 | 0.36845 | 0.330785 | 0.306452 | 0.269812 | 0 | 0.002269 | 0.313394 | 17,971 | 442 | 80 | 40.658371 | 0.867007 | 0.313338 | 0 | 0.292887 | 0 | 0 | 0.16246 | 0.008872 | 0 | 0 | 0 | 0 | 0 | 1 | 0.100418 | false | 0 | 0.041841 | 0.004184 | 0.23431 | 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 |
ab4a651d98707257763d7fecd97ef8404192f74c | 1,146 | py | Python | code/reasoningtool/tests/QuerySciGraphTests.py | andrewsu/RTX | dd1de262d0817f7e6d2f64e5bec7d5009a3a2740 | [
"MIT"
] | 31 | 2018-03-05T20:01:10.000Z | 2022-02-01T03:31:22.000Z | code/reasoningtool/tests/QuerySciGraphTests.py | andrewsu/RTX | dd1de262d0817f7e6d2f64e5bec7d5009a3a2740 | [
"MIT"
] | 1,774 | 2018-03-06T01:55:03.000Z | 2022-03-31T03:09:04.000Z | code/reasoningtool/tests/QuerySciGraphTests.py | andrewsu/RTX | dd1de262d0817f7e6d2f64e5bec7d5009a3a2740 | [
"MIT"
] | 19 | 2018-05-10T00:43:19.000Z | 2022-03-08T19:26:16.000Z | import unittest
from QuerySciGraph import QuerySciGraph
class QuerySciGraphTestCase(unittest.TestCase):
def test_get_disont_ids_for_mesh_id(self):
disont_ids = QuerySciGraph.get_disont_ids_for_mesh_id('MESH:D005199')
known_ids = {'DOID:13636'}
self.assertSetEqual(disont_ids, known_ids)
... | 44.076923 | 101 | 0.620419 | 114 | 1,146 | 5.921053 | 0.464912 | 0.053333 | 0.035556 | 0.044444 | 0.151111 | 0.062222 | 0 | 0 | 0 | 0 | 0 | 0.090686 | 0.287958 | 1,146 | 25 | 102 | 45.84 | 0.73652 | 0.008726 | 0 | 0 | 0 | 0 | 0.27425 | 0 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0.1 | false | 0 | 0.1 | 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 |
ab4c81650d8bacd66796cfc5a7b9384015825cae | 1,342 | py | Python | ledis/cli.py | gianghta/Ledis | a6b31617621746344408ee411cf510ef3cfb2e7b | [
"MIT"
] | null | null | null | ledis/cli.py | gianghta/Ledis | a6b31617621746344408ee411cf510ef3cfb2e7b | [
"MIT"
] | null | null | null | ledis/cli.py | gianghta/Ledis | a6b31617621746344408ee411cf510ef3cfb2e7b | [
"MIT"
] | null | null | null | from typing import Any
from ledis import Ledis
from ledis.exceptions import InvalidUsage
class CLI:
__slots__ = {"ledis", "commands"}
def __init__(self):
self.ledis = Ledis()
self.commands = {
"set": self.ledis.set,
"get": self.ledis.get,
"sadd": self.ledi... | 29.173913 | 78 | 0.520119 | 139 | 1,342 | 4.94964 | 0.388489 | 0.170058 | 0.040698 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001159 | 0.35693 | 1,342 | 45 | 79 | 29.822222 | 0.79606 | 0 | 0 | 0 | 0 | 0 | 0.123696 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.078947 | 0 | 0.210526 | 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 |
ab4cd7dafdbec4a4f671b37357e68833614883fc | 866 | py | Python | ClosedLoopTF.py | nazhanshaberi/miniature-octo-barnacle | eb1a8b5366003bf2d0f7e89af9d9dea120965f4f | [
"MIT"
] | null | null | null | ClosedLoopTF.py | nazhanshaberi/miniature-octo-barnacle | eb1a8b5366003bf2d0f7e89af9d9dea120965f4f | [
"MIT"
] | null | null | null | ClosedLoopTF.py | nazhanshaberi/miniature-octo-barnacle | eb1a8b5366003bf2d0f7e89af9d9dea120965f4f | [
"MIT"
] | null | null | null | #group 1: Question 1(b)
# A control system for positioning the head of a laser printer has the closed loop transfer function:
# !pip install control
import matplotlib.pyplot as plt
import control
a=10 #Value for a
b=50 #value for b
sys1 = control.tf(20*b,[1,20+a,b+20*a,20*b])
print('3rd order system transfer funct... | 29.862069 | 101 | 0.725173 | 159 | 866 | 3.91195 | 0.433962 | 0.07717 | 0.061093 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055046 | 0.118938 | 866 | 28 | 102 | 30.928571 | 0.760157 | 0.191686 | 0 | 0 | 0 | 0 | 0.316547 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.095238 | 0 | 0.095238 | 0.142857 | 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 |
ab4de19d0181da877a10411de0bdd3a02265b4f5 | 1,567 | py | Python | tests/test_vmtkScripts/test_vmtksurfacescaling.py | ramtingh/vmtk | 4d6f58ce65d73628353ba2b110cbc29a2e7aa7b3 | [
"Apache-2.0"
] | null | null | null | tests/test_vmtkScripts/test_vmtksurfacescaling.py | ramtingh/vmtk | 4d6f58ce65d73628353ba2b110cbc29a2e7aa7b3 | [
"Apache-2.0"
] | null | null | null | tests/test_vmtkScripts/test_vmtksurfacescaling.py | ramtingh/vmtk | 4d6f58ce65d73628353ba2b110cbc29a2e7aa7b3 | [
"Apache-2.0"
] | 1 | 2019-06-18T23:41:11.000Z | 2019-06-18T23:41:11.000Z | ## Program: VMTK
## Language: Python
## Date: January 10, 2018
## Version: 1.4
## Copyright (c) Richard Izzo, Luca Antiga, All rights reserved.
## See LICENSE file for details.
## This software is distributed WITHOUT ANY WARRANTY; without even
## the implied warranty of MERCHANTABILITY or FITNES... | 31.34 | 75 | 0.678366 | 189 | 1,567 | 5.470899 | 0.492063 | 0.046422 | 0.034816 | 0.052224 | 0.253385 | 0.253385 | 0.253385 | 0.253385 | 0.253385 | 0.12766 | 0 | 0.022617 | 0.209955 | 1,567 | 49 | 76 | 31.979592 | 0.812601 | 0.306318 | 0 | 0.296296 | 0 | 0 | 0.084746 | 0.07533 | 0 | 0 | 0 | 0 | 0.074074 | 1 | 0.074074 | false | 0 | 0.074074 | 0 | 0.148148 | 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 |
ab4e7cdf2bacce34a3021f862bd5b5457c0c010e | 3,677 | py | Python | mlcsim/dist.py | nobodywasishere/MLCSim | a3eb3d39b6970a4e706e292c6a283531fb44350c | [
"MIT"
] | null | null | null | mlcsim/dist.py | nobodywasishere/MLCSim | a3eb3d39b6970a4e706e292c6a283531fb44350c | [
"MIT"
] | null | null | null | mlcsim/dist.py | nobodywasishere/MLCSim | a3eb3d39b6970a4e706e292c6a283531fb44350c | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""Distribution functions
This module provides functions for dealing with normal distributions
and generating error maps.
When called directly as main, it allows for converting a threshold map
into an error map.
```
$ python -m mlcsim.dist --help
usage: dist.py [-h] [-b {1,2,3,4}] -f F [-o O]... | 27.856061 | 93 | 0.627142 | 570 | 3,677 | 3.938596 | 0.280702 | 0.032071 | 0.024944 | 0.021381 | 0.057016 | 0.025835 | 0.025835 | 0.025835 | 0.015145 | 0 | 0 | 0.027417 | 0.246125 | 3,677 | 131 | 94 | 28.068702 | 0.782468 | 0.406038 | 0 | 0 | 0 | 0 | 0.059137 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075472 | false | 0 | 0.113208 | 0 | 0.245283 | 0.037736 | 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 |
ab4ecc2d3d04743c00cc721399cf77a91c741662 | 2,063 | py | Python | Pr-Lab5/lab5.py | JackShen1/pr-labs | c84df379d8f7b26ccff30248dfb23ae38e0ce7c2 | [
"MIT"
] | 2 | 2021-02-25T11:42:06.000Z | 2021-03-08T20:43:44.000Z | Pr-Lab5/lab5.py | JackShen1/pr-labs | c84df379d8f7b26ccff30248dfb23ae38e0ce7c2 | [
"MIT"
] | null | null | null | Pr-Lab5/lab5.py | JackShen1/pr-labs | c84df379d8f7b26ccff30248dfb23ae38e0ce7c2 | [
"MIT"
] | null | null | null | earth = {
"Asia":
{'Japan': ("Tokyo", 377975, 125620000)},
"Europe":
{'Austria': ("Vienna", 83800, 8404000),
'Germany': ("Berlin", 357000, 81751000),
'Great Britain': ("London", 244800, 62700000),
'Iceland': ("Reykjavík", 103000, 317630),
'Italy': ("Rome", 301... | 38.203704 | 125 | 0.49491 | 226 | 2,063 | 4.433628 | 0.376106 | 0.097804 | 0.08483 | 0.071856 | 0.100798 | 0.077844 | 0.053892 | 0 | 0 | 0 | 0 | 0.101985 | 0.291808 | 2,063 | 53 | 126 | 38.924528 | 0.583847 | 0 | 0 | 0 | 0 | 0 | 0.175957 | 0.012603 | 0 | 0 | 0 | 0 | 0 | 1 | 0.113636 | false | 0 | 0 | 0.022727 | 0.204545 | 0.136364 | 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 |
ab4f57f26ec8e3a5f4f9c3add8fa33115729abc3 | 3,956 | py | Python | endpoints/api/test/test_tag.py | kwestpharedhat/quay | a0df895005bcd3e53847046f69f6a7add87c88fd | [
"Apache-2.0"
] | null | null | null | endpoints/api/test/test_tag.py | kwestpharedhat/quay | a0df895005bcd3e53847046f69f6a7add87c88fd | [
"Apache-2.0"
] | null | null | null | endpoints/api/test/test_tag.py | kwestpharedhat/quay | a0df895005bcd3e53847046f69f6a7add87c88fd | [
"Apache-2.0"
] | null | null | null | import pytest
from playhouse.test_utils import assert_query_count
from data.registry_model import registry_model
from data.database import Manifest
from endpoints.api.test.shared import conduct_api_call
from endpoints.test.shared import client_with_identity
from endpoints.api.tag import RepositoryTag, RestoreTag, Li... | 34.4 | 146 | 0.654954 | 441 | 3,956 | 5.603175 | 0.249433 | 0.047349 | 0.033994 | 0.054634 | 0.444759 | 0.37151 | 0.334278 | 0.334278 | 0.31809 | 0.215297 | 0 | 0.013834 | 0.232558 | 3,956 | 114 | 147 | 34.701754 | 0.800066 | 0.028817 | 0 | 0.274725 | 0 | 0 | 0.17431 | 0.044554 | 0 | 0 | 0 | 0 | 0.054945 | 1 | 0.043956 | false | 0 | 0.087912 | 0 | 0.131868 | 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 |
ab4f80a6a89a2ba8ed869ff8442a2bb12f645322 | 8,541 | py | Python | inventory.py | Jongerr/vendor_receiving | f69f09a5b41d38b45e9ea0bf82590bb27ce913f6 | [
"MIT"
] | null | null | null | inventory.py | Jongerr/vendor_receiving | f69f09a5b41d38b45e9ea0bf82590bb27ce913f6 | [
"MIT"
] | null | null | null | inventory.py | Jongerr/vendor_receiving | f69f09a5b41d38b45e9ea0bf82590bb27ce913f6 | [
"MIT"
] | null | null | null | import json
import os
import random
import requests
from passlib.hash import pbkdf2_sha256 as pbk
from PyQt5.QtSql import QSqlDatabase, QSqlQuery
from pprint import pprint
ENCODING = 'utf-8'
DB_PATH = os.path.join(os.path.curdir, 'inventory.db')
def scrambleWord(word):
"""Randomize the letters in word and retur... | 37.296943 | 143 | 0.583772 | 997 | 8,541 | 4.915747 | 0.248746 | 0.029382 | 0.038768 | 0.046929 | 0.350133 | 0.333809 | 0.318915 | 0.253214 | 0.238115 | 0.238115 | 0 | 0.02128 | 0.25723 | 8,541 | 228 | 144 | 37.460526 | 0.751261 | 0.093783 | 0 | 0.346591 | 0 | 0 | 0.262643 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034091 | false | 0.028409 | 0.039773 | 0 | 0.107955 | 0.210227 | 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 |
ab4fc96f582ec2e7dbdc6b88ad13480fe26a5ca3 | 1,749 | py | Python | lnbits/core/views/lnurl.py | frennkie/lnbits | 5fe64d324dc7ac05d1d0fc25eb5ad6a5a414ea8a | [
"MIT"
] | null | null | null | lnbits/core/views/lnurl.py | frennkie/lnbits | 5fe64d324dc7ac05d1d0fc25eb5ad6a5a414ea8a | [
"MIT"
] | null | null | null | lnbits/core/views/lnurl.py | frennkie/lnbits | 5fe64d324dc7ac05d1d0fc25eb5ad6a5a414ea8a | [
"MIT"
] | null | null | null | import requests
from flask import abort, redirect, request, url_for
from lnurl import LnurlWithdrawResponse, handle as handle_lnurl
from lnurl.exceptions import LnurlException
from time import sleep
from lnbits.core import core_app
from lnbits.helpers import Status
from lnbits.settings import WALLET
from ..crud impo... | 30.155172 | 108 | 0.70669 | 227 | 1,749 | 5.237885 | 0.356828 | 0.055509 | 0.047939 | 0.063078 | 0.126156 | 0.126156 | 0.097561 | 0.097561 | 0.097561 | 0.097561 | 0 | 0.005751 | 0.204688 | 1,749 | 57 | 109 | 30.684211 | 0.849029 | 0 | 0 | 0.090909 | 0 | 0 | 0.069754 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022727 | false | 0 | 0.204545 | 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 |
ab5224dab7764f41af318140ad4ebc3291d1cf50 | 1,507 | py | Python | driver_training/driver_training.py | munishm/MLOpsPython | e3ee31f6a0cac645a2b3ad945b8263e07d3085e4 | [
"MIT"
] | null | null | null | driver_training/driver_training.py | munishm/MLOpsPython | e3ee31f6a0cac645a2b3ad945b8263e07d3085e4 | [
"MIT"
] | null | null | null | driver_training/driver_training.py | munishm/MLOpsPython | e3ee31f6a0cac645a2b3ad945b8263e07d3085e4 | [
"MIT"
] | null | null | null | # Import libraries
import argparse
from azureml.core import Run
import joblib
import json
import os
import pandas as pd
import shutil
# Import functions from train.py
from train import split_data, train_model, get_model_metrics
# Get the output folder for the model from the '--output_folder' parameter
parser = argpar... | 27.4 | 89 | 0.780358 | 233 | 1,507 | 4.858369 | 0.369099 | 0.095406 | 0.039753 | 0.026502 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134041 | 1,507 | 54 | 90 | 27.907407 | 0.867433 | 0.273391 | 0 | 0 | 0 | 0 | 0.127306 | 0.073801 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.258065 | 0 | 0.258065 | 0.064516 | 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 |
ab57b93b87294fbdfc94236ad38a6b407c2435a8 | 7,463 | py | Python | katana/utils/directory_traversal_utils.py | warriorframework/Katanaframework | 9dc78df9d0c8f19ef5eaaa8690fbfa1ad885b323 | [
"Apache-2.0"
] | 1 | 2020-09-30T11:14:14.000Z | 2020-09-30T11:14:14.000Z | katana/utils/directory_traversal_utils.py | warriorframework/Katanaframework | 9dc78df9d0c8f19ef5eaaa8690fbfa1ad885b323 | [
"Apache-2.0"
] | 4 | 2020-06-06T01:55:04.000Z | 2021-06-10T22:57:50.000Z | katana/utils/directory_traversal_utils.py | warriorframework/Katanaframework | 9dc78df9d0c8f19ef5eaaa8690fbfa1ad885b323 | [
"Apache-2.0"
] | 1 | 2020-09-17T08:20:09.000Z | 2020-09-17T08:20:09.000Z | import glob
import os
import re
import errno
import shutil
def get_sub_dirs_and_files(path, abs_path=False):
"""
Gets the direct child sub-files and sub-folders of the given directory
Args:
path: Absolute path to the directory
abs_path: If set to True, it returns a list of absolute paths ... | 29.498024 | 100 | 0.643307 | 1,045 | 7,463 | 4.461244 | 0.15311 | 0.028529 | 0.017375 | 0.029172 | 0.418061 | 0.360789 | 0.320034 | 0.291291 | 0.28314 | 0.275847 | 0 | 0.002375 | 0.266649 | 7,463 | 252 | 101 | 29.615079 | 0.849443 | 0.436822 | 0 | 0.26 | 0 | 0 | 0.047077 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.14 | false | 0 | 0.05 | 0 | 0.33 | 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 |
ab58cf0f15e7f5253d551ed9c21fd93da300dfec | 8,381 | py | Python | alignment.py | LucaOnline/theanine-synthetase | 75a9d1f6d853409e12bf9f3b6e5948b594a03217 | [
"MIT"
] | null | null | null | alignment.py | LucaOnline/theanine-synthetase | 75a9d1f6d853409e12bf9f3b6e5948b594a03217 | [
"MIT"
] | 1 | 2021-04-28T21:34:45.000Z | 2021-05-11T23:29:59.000Z | alignment.py | LucaOnline/theanine-synthetase | 75a9d1f6d853409e12bf9f3b6e5948b594a03217 | [
"MIT"
] | null | null | null | """The `alignment` module provides an implementation of the Needleman-Wunsch alignment algorithm."""
from typing import Tuple, Literal, List
from math import floor
import numpy as np
from stats import variance
MOVE_DIAGONAL = 0
MOVE_RIGHT = 1
MOVE_DOWN = 2
EditMove = Literal[MOVE_DIAGONAL, MOVE_RIGHT, MOVE_DOWN]
... | 32.111111 | 106 | 0.595752 | 1,081 | 8,381 | 4.434783 | 0.20259 | 0.037964 | 0.026283 | 0.018356 | 0.22257 | 0.180851 | 0.155611 | 0.147685 | 0.123905 | 0.104714 | 0 | 0.021115 | 0.310583 | 8,381 | 260 | 107 | 32.234615 | 0.808584 | 0.240067 | 0 | 0.111111 | 0 | 0 | 0.021682 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.092593 | false | 0 | 0.024691 | 0 | 0.234568 | 0.006173 | 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 |
ab58dbf2a732c20f8c5b6f7ff7869c6f7c00ca41 | 2,348 | py | Python | examples/the-feeling-of-success/mock_grasp_object_op.py | yujialuo/erdos | 7a631b55895f1a473b0f4d38a0d6053851e65b5d | [
"Apache-2.0"
] | null | null | null | examples/the-feeling-of-success/mock_grasp_object_op.py | yujialuo/erdos | 7a631b55895f1a473b0f4d38a0d6053851e65b5d | [
"Apache-2.0"
] | null | null | null | examples/the-feeling-of-success/mock_grasp_object_op.py | yujialuo/erdos | 7a631b55895f1a473b0f4d38a0d6053851e65b5d | [
"Apache-2.0"
] | null | null | null | from mock_gripper_op import MockGripType
from std_msgs.msg import Bool
from erdos.op import Op
from erdos.data_stream import DataStream
from erdos.message import Message
class MockGraspObjectOperator(Op):
"""
Sends a "close" action to the gripper.
"""
gripper_stream = "gripper-output-stream"
acti... | 34.028986 | 79 | 0.663969 | 269 | 2,348 | 5.535316 | 0.32342 | 0.047011 | 0.032236 | 0.045668 | 0.246474 | 0.038952 | 0.038952 | 0 | 0 | 0 | 0 | 0 | 0.270443 | 2,348 | 68 | 80 | 34.529412 | 0.869235 | 0.189097 | 0 | 0.146341 | 0 | 0 | 0.030474 | 0.027652 | 0 | 0 | 0 | 0 | 0 | 1 | 0.121951 | false | 0.02439 | 0.121951 | 0 | 0.341463 | 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 |
ab58e931b2be617a8f028a51f43ae40e92333614 | 3,683 | py | Python | src/pyfsa/lib/fsa.py | taliamax/pyfsa | d92faa96c1e17e4016df7b367c7d405a07f1253b | [
"Apache-2.0"
] | 1 | 2021-01-21T21:48:26.000Z | 2021-01-21T21:48:26.000Z | src/pyfsa/lib/fsa.py | taliamax/pyfsa | d92faa96c1e17e4016df7b367c7d405a07f1253b | [
"Apache-2.0"
] | null | null | null | src/pyfsa/lib/fsa.py | taliamax/pyfsa | d92faa96c1e17e4016df7b367c7d405a07f1253b | [
"Apache-2.0"
] | 4 | 2021-01-22T04:04:22.000Z | 2021-11-01T14:43:09.000Z | # -*- coding: utf-8 -*-
import pygraphviz as gv # type: ignore
import itertools as it
from typing import (
List,
Optional,
)
from pyfsa.lib.types import TransitionsTable
def get_state_graph(
transitions: TransitionsTable,
start: Optional[str] = None,
end: Optional[str] = None,
nodes: Option... | 27.485075 | 65 | 0.620961 | 467 | 3,683 | 4.775161 | 0.295503 | 0.04843 | 0.033632 | 0.021525 | 0.208969 | 0.147982 | 0.127354 | 0.127354 | 0.127354 | 0.127354 | 0 | 0.007904 | 0.278577 | 3,683 | 133 | 66 | 27.691729 | 0.831389 | 0.199566 | 0 | 0.322222 | 0 | 0 | 0.062893 | 0 | 0 | 0 | 0 | 0.007519 | 0 | 1 | 0.033333 | false | 0 | 0.044444 | 0 | 0.111111 | 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 |
ab5be15bbc59ecc18cf93a6170b0dd272f33cfd6 | 833 | py | Python | tests/test_slison.py | Habidatum/slisonner | 488be30a199a5d29271e24377c37a7ad83d52e3e | [
"MIT"
] | 2 | 2017-02-06T17:15:11.000Z | 2017-04-17T13:18:18.000Z | tests/test_slison.py | Habidatum/slisonner | 488be30a199a5d29271e24377c37a7ad83d52e3e | [
"MIT"
] | null | null | null | tests/test_slison.py | Habidatum/slisonner | 488be30a199a5d29271e24377c37a7ad83d52e3e | [
"MIT"
] | null | null | null | from slisonner import decoder, encoder
from tests import mocker
from tempfile import mkdtemp
from shutil import rmtree
def test_full_encode_decode_cycle():
temp_out_dir = mkdtemp()
slice_id = '2015-01-02 00:00:00'
x_size, y_size = 10, 16
temp_slice_path = mocker.generate_slice(x_size, y_size, 'float3... | 29.75 | 75 | 0.716687 | 120 | 833 | 4.6 | 0.441667 | 0.043478 | 0.065217 | 0.054348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037764 | 0.205282 | 833 | 27 | 76 | 30.851852 | 0.796073 | 0 | 0 | 0 | 0 | 0 | 0.046819 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 1 | 0.045455 | false | 0 | 0.181818 | 0 | 0.227273 | 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 |
ab5e4dfefa5bc8fdcbff9af5c74dd0475612065f | 372 | py | Python | exercises/pyfiles/ex812_polarsincos.py | TUDelft-AE-Python/ae1205-exercises | 342d1d567b64d3ccb3371ce9826c02a87a155fa8 | [
"MIT"
] | 1 | 2021-10-05T04:49:54.000Z | 2021-10-05T04:49:54.000Z | exercises/pyfiles/ex812_polarsincos.py | TUDelft-AE1205/ae1205-exercises | 342d1d567b64d3ccb3371ce9826c02a87a155fa8 | [
"MIT"
] | null | null | null | exercises/pyfiles/ex812_polarsincos.py | TUDelft-AE1205/ae1205-exercises | 342d1d567b64d3ccb3371ce9826c02a87a155fa8 | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
import math
xtab = []
ytab = []
for i in range(0, 628):
# Calculate polar coordinates for provided equation
phi = float(i) / 100.0
r = 4 * math.cos(2 * phi)
# Convert to Cartesian and store in lists
x = r * math.cos(phi)
y = r * math.sin(phi)
xtab.append(x)... | 19.578947 | 55 | 0.620968 | 61 | 372 | 3.786885 | 0.622951 | 0.069264 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035971 | 0.252688 | 372 | 19 | 56 | 19.578947 | 0.794964 | 0.239247 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.153846 | 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 |
ab60f9944d5fde6a7550fbbfc9b1e8fd43e10b50 | 1,518 | py | Python | W-DCGAN/model.py | lmyybh/pytorch-networks | 8da055f5042c3803b275734afc89d33d239d7585 | [
"MulanPSL-1.0"
] | null | null | null | W-DCGAN/model.py | lmyybh/pytorch-networks | 8da055f5042c3803b275734afc89d33d239d7585 | [
"MulanPSL-1.0"
] | null | null | null | W-DCGAN/model.py | lmyybh/pytorch-networks | 8da055f5042c3803b275734afc89d33d239d7585 | [
"MulanPSL-1.0"
] | null | null | null | import torch
import torch.nn as nn
class Generator(nn.Module):
def __init__(self, signal_size, out_channels=3):
super(Generator, self).__init__()
self.linear = nn.Linear(signal_size, 1024*4*4)
convs = []
channels = [1024, 512, 256, 128]
for i in range(1, len(channel... | 33 | 87 | 0.563241 | 207 | 1,518 | 4.033816 | 0.241546 | 0.105389 | 0.124551 | 0.064671 | 0.608383 | 0.371257 | 0.297006 | 0.265868 | 0.265868 | 0.265868 | 0 | 0.069509 | 0.289196 | 1,518 | 45 | 88 | 33.733333 | 0.704356 | 0.013175 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.055556 | 0 | 0.277778 | 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 |
ab61967196abc0b2e677bfd1d2c054cef2f1f32b | 792 | py | Python | rational.py | navel0810/chibi | d2e9a791492352c3c1b76c841a3ad30df2f444fd | [
"MIT"
] | null | null | null | rational.py | navel0810/chibi | d2e9a791492352c3c1b76c841a3ad30df2f444fd | [
"MIT"
] | null | null | null | rational.py | navel0810/chibi | d2e9a791492352c3c1b76c841a3ad30df2f444fd | [
"MIT"
] | null | null | null | import math
class Q(object):
def __init__(self,a,b=1):
gcd=math.gcd(a,b)
self.a=a//gcd
self.b=b//gcd
def __repr__(self):
if self.b==1:
return str(self.a)
return f'{self.a}/{self.b}'
def __add__(self,q):
a=self.a
b=self.b... | 17.217391 | 36 | 0.412879 | 144 | 792 | 2.104167 | 0.194444 | 0.079208 | 0.069307 | 0.132013 | 0.471947 | 0.471947 | 0.471947 | 0.471947 | 0.471947 | 0.471947 | 0 | 0.022173 | 0.430556 | 792 | 46 | 37 | 17.217391 | 0.649667 | 0 | 0 | 0.432432 | 0 | 0 | 0.022727 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.162162 | false | 0 | 0.027027 | 0 | 0.378378 | 0.027027 | 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 |
db3b69e3c4b3003f7bdcfee2a7ee4c426c44a37d | 5,738 | py | Python | views/auth.py | bluebibi/flask_rest | 9b1ee876060bca5d97459bb894c73530f66c4c15 | [
"MIT"
] | null | null | null | views/auth.py | bluebibi/flask_rest | 9b1ee876060bca5d97459bb894c73530f66c4c15 | [
"MIT"
] | 1 | 2022-02-11T03:43:51.000Z | 2022-02-11T03:43:51.000Z | views/auth.py | bluebibi/flask_rest | 9b1ee876060bca5d97459bb894c73530f66c4c15 | [
"MIT"
] | 2 | 2019-11-19T02:09:03.000Z | 2020-04-04T06:55:14.000Z | from flask import Blueprint, redirect, render_template, request, flash, session
from database import base
from database.base import User
from forms import UserForm, LoginForm, MyPageUserForm
from flask_login import login_required, login_user, logout_user, current_user
import requests
auth_blueprint = Blueprint('auth'... | 32.977011 | 104 | 0.648832 | 695 | 5,738 | 5.136691 | 0.205755 | 0.092437 | 0.029132 | 0.038655 | 0.341176 | 0.226891 | 0.207843 | 0.152941 | 0.114566 | 0.028571 | 0 | 0.009486 | 0.210003 | 5,738 | 174 | 105 | 32.977011 | 0.778072 | 0.015859 | 0 | 0.246269 | 0 | 0 | 0.22972 | 0.045342 | 0 | 0 | 0 | 0 | 0 | 1 | 0.059701 | false | 0.044776 | 0.044776 | 0 | 0.19403 | 0.059701 | 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 |
db3d773e3532da7f969a86616e27db866a72624c | 3,500 | py | Python | doc/.src/book/exer/cable_sin.py | hplgit/fem-book | c23099715dc3cb72e7f4d37625e6f9614ee5fc4e | [
"MIT"
] | 86 | 2015-12-17T12:57:11.000Z | 2022-03-26T01:53:47.000Z | doc/.src/book/exer/cable_sin.py | hplgit/fem-book | c23099715dc3cb72e7f4d37625e6f9614ee5fc4e | [
"MIT"
] | 9 | 2017-04-16T21:57:29.000Z | 2021-04-17T08:09:30.000Z | doc/.src/book/exer/cable_sin.py | hplgit/fem-book | c23099715dc3cb72e7f4d37625e6f9614ee5fc4e | [
"MIT"
] | 43 | 2016-03-11T19:33:14.000Z | 2022-03-05T00:21:57.000Z | import matplotlib.pyplot as plt
def model():
"""Solve u'' = -1, u(0)=0, u'(1)=0."""
import sympy as sym
x, c_0, c_1, = sym.symbols('x c_0 c_1')
u_x = sym.integrate(1, (x, 0, x)) + c_0
u = sym.integrate(u_x, (x, 0, x)) + c_1
r = sym.solve([u.subs(x,0) - 0,
sym.diff(u,x).subs(x... | 28.92562 | 60 | 0.512571 | 622 | 3,500 | 2.77492 | 0.173633 | 0.020857 | 0.069525 | 0.017381 | 0.618772 | 0.520278 | 0.516802 | 0.48146 | 0.48146 | 0.442642 | 0 | 0.064754 | 0.302857 | 3,500 | 120 | 61 | 29.166667 | 0.642623 | 0.084 | 0 | 0.514286 | 0 | 0 | 0.053689 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085714 | false | 0 | 0.104762 | 0 | 0.228571 | 0.066667 | 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 |
db3df0c689b2c97c43cbf7385cac4c429ebf9bf0 | 2,440 | py | Python | duke-cs671-fall21-coupon-recommendation/outputs/rules/RF/12_features/numtrees_20/rule_6.py | apcarrik/kaggle | 6e2d4db58017323e7ba5510bcc2598e01a4ee7bf | [
"MIT"
] | null | null | null | duke-cs671-fall21-coupon-recommendation/outputs/rules/RF/12_features/numtrees_20/rule_6.py | apcarrik/kaggle | 6e2d4db58017323e7ba5510bcc2598e01a4ee7bf | [
"MIT"
] | null | null | null | duke-cs671-fall21-coupon-recommendation/outputs/rules/RF/12_features/numtrees_20/rule_6.py | apcarrik/kaggle | 6e2d4db58017323e7ba5510bcc2598e01a4ee7bf | [
"MIT"
] | null | null | null | def findDecision(obj): #obj[0]: Passanger, obj[1]: Time, obj[2]: Coupon, obj[3]: Gender, obj[4]: Age, obj[5]: Education, obj[6]: Occupation, obj[7]: Bar, obj[8]: Coffeehouse, obj[9]: Restaurant20to50, obj[10]: Direction_same, obj[11]: Distance
# {"feature": "Age", "instances": 51, "metric_value": 0.9662, "depth": 1}
... | 35.882353 | 243 | 0.547951 | 348 | 2,440 | 3.798851 | 0.152299 | 0.11649 | 0.099849 | 0.102874 | 0.480333 | 0.270802 | 0.270045 | 0.197428 | 0.125567 | 0.092284 | 0 | 0.090222 | 0.241393 | 2,440 | 67 | 244 | 36.41791 | 0.623987 | 0.492213 | 0 | 0.574074 | 0 | 0 | 0.099592 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018519 | false | 0 | 0 | 0 | 0.277778 | 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 |
db40a9951b31f74580005898f3f6b78a4f2c461b | 1,080 | py | Python | eth2/beacon/types/historical_batch.py | AndrewBezold/trinity | bc656da4dece431a0c929a99349d45faf75decf8 | [
"MIT"
] | null | null | null | eth2/beacon/types/historical_batch.py | AndrewBezold/trinity | bc656da4dece431a0c929a99349d45faf75decf8 | [
"MIT"
] | null | null | null | eth2/beacon/types/historical_batch.py | AndrewBezold/trinity | bc656da4dece431a0c929a99349d45faf75decf8 | [
"MIT"
] | null | null | null | from typing import Sequence
from eth.constants import ZERO_HASH32
from eth_typing import Hash32
import ssz
from ssz.sedes import Vector, bytes32
from eth2.configs import Eth2Config
from .defaults import default_tuple, default_tuple_of_size
class HistoricalBatch(ssz.Serializable):
fields = [("block_roots", Vec... | 30 | 87 | 0.649074 | 124 | 1,080 | 5.298387 | 0.346774 | 0.146119 | 0.103501 | 0.082192 | 0.280061 | 0.185693 | 0.185693 | 0.185693 | 0.185693 | 0.185693 | 0 | 0.029601 | 0.280556 | 1,080 | 35 | 88 | 30.857143 | 0.815959 | 0.025926 | 0 | 0.076923 | 0 | 0 | 0.020952 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.269231 | 0 | 0.384615 | 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 |
db434cf2f9b45ff5f3690a75cc12bde4fd9cb6aa | 1,354 | py | Python | ADVECTOR/io_tools/create_bathymetry.py | john-science/ADVECTOR | 5c5ca7595c2c051f1a088b1f0e694936c3da3610 | [
"MIT"
] | 7 | 2021-09-07T02:32:00.000Z | 2022-01-15T11:35:02.000Z | ADVECTOR/io_tools/create_bathymetry.py | TheOceanCleanupAlgorithms/ADVECT | e27ce15da6a2fcbccbe363f8c2415b0122696d1f | [
"MIT"
] | 1 | 2021-12-24T15:16:26.000Z | 2021-12-24T15:16:26.000Z | ADVECTOR/io_tools/create_bathymetry.py | TheOceanCleanupAlgorithms/ADVECT | e27ce15da6a2fcbccbe363f8c2415b0122696d1f | [
"MIT"
] | 1 | 2021-12-12T15:13:52.000Z | 2021-12-12T15:13:52.000Z | import numpy as np
import xarray as xr
def create_bathymetry_from_land_mask(land_mask: xr.DataArray) -> xr.DataArray:
"""Method: identifies the lower depth bound of the shallowest
ocean cell (non-null) in each vertical grid column.
:param land_mask: dimensions {time, depth, lat, lon}, boloean array, T... | 34.717949 | 99 | 0.637371 | 188 | 1,354 | 4.484043 | 0.484043 | 0.094899 | 0.077106 | 0.033215 | 0.181495 | 0.151839 | 0.151839 | 0.083037 | 0 | 0 | 0 | 0.010774 | 0.245938 | 1,354 | 38 | 100 | 35.631579 | 0.814887 | 0.329394 | 0 | 0 | 0 | 0 | 0.136925 | 0 | 0 | 0 | 0 | 0 | 0.08 | 1 | 0.04 | false | 0 | 0.08 | 0 | 0.16 | 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 |
db44a6bdcd485ae98f0bcb11e91bddb17022662f | 1,456 | py | Python | contacts/migrations_old/0006_data_status.py | I-TECH-UW/mwachx | e191755c3369208d678fceec68dbb4f5f51c453a | [
"Apache-2.0"
] | 3 | 2015-05-27T14:35:49.000Z | 2016-02-26T21:04:32.000Z | contacts/migrations/0006_data_status.py | tperrier/mwachx | 94616659dc29843e661b2ecc9a2e7f1d4e81b5a4 | [
"Apache-2.0"
] | 375 | 2015-01-31T10:08:34.000Z | 2021-06-10T19:44:21.000Z | contacts/migrations_old/0006_data_status.py | I-TECH-UW/mwachx | e191755c3369208d678fceec68dbb4f5f51c453a | [
"Apache-2.0"
] | 6 | 2016-01-10T19:52:41.000Z | 2020-06-15T22:07:24.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import itertools as it
from django.db import models, migrations
def convert_status(apps, schema_editor):
''' Migrate Visit.skipped and ScheduledPhoneCall.skipped -> status
(pending,missed,deleted,attended)
'''
Visit = apps.get_model(... | 30.333333 | 79 | 0.643544 | 159 | 1,456 | 5.773585 | 0.377358 | 0.065359 | 0.052288 | 0.087146 | 0.324619 | 0.324619 | 0.324619 | 0.324619 | 0.324619 | 0.324619 | 0 | 0.004488 | 0.23489 | 1,456 | 47 | 80 | 30.978723 | 0.819569 | 0.113324 | 0 | 0.25 | 0 | 0 | 0.121739 | 0.020553 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.09375 | 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 |
db49fa274fd584b7dd27d84ca85b94655d65a8a2 | 6,946 | py | Python | scripts/make_VFS.py | nvoron23/brython | b1ce5fa39b5d38c0dde138b4e75723fbb3e574ab | [
"BSD-3-Clause"
] | 1 | 2015-11-06T09:32:34.000Z | 2015-11-06T09:32:34.000Z | scripts/make_VFS.py | nvoron23/brython | b1ce5fa39b5d38c0dde138b4e75723fbb3e574ab | [
"BSD-3-Clause"
] | null | null | null | scripts/make_VFS.py | nvoron23/brython | b1ce5fa39b5d38c0dde138b4e75723fbb3e574ab | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
import json
import os
import pyminifier
try:
import io as StringIO
except ImportError:
import cStringIO as StringIO # lint:ok
# Check to see if slimit or some other minification library is installed and
# Set minify equal to slimit's minify function.
try:
import slimit
js_mi... | 36.177083 | 91 | 0.512093 | 781 | 6,946 | 4.185659 | 0.201024 | 0.053533 | 0.024472 | 0.029979 | 0.52126 | 0.475375 | 0.449373 | 0.410523 | 0.410523 | 0.389722 | 0 | 0.008659 | 0.351569 | 6,946 | 191 | 92 | 36.366492 | 0.71714 | 0.04607 | 0 | 0.435065 | 0 | 0 | 0.199566 | 0.063576 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012987 | false | 0 | 0.077922 | 0 | 0.103896 | 0.084416 | 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 |
db4a6abf2a3e16936115e864f7caf11878e6ba2c | 9,659 | py | Python | main.py | rcox771/spectrum_scanner | 71559d62ca9dc9f66d66b7ada4491de42c6cdd52 | [
"MIT"
] | null | null | null | main.py | rcox771/spectrum_scanner | 71559d62ca9dc9f66d66b7ada4491de42c6cdd52 | [
"MIT"
] | null | null | null | main.py | rcox771/spectrum_scanner | 71559d62ca9dc9f66d66b7ada4491de42c6cdd52 | [
"MIT"
] | null | null | null | from rtlsdr import RtlSdr
from contextlib import closing
from matplotlib import pyplot as plt
import numpy as np
from scipy.signal import spectrogram, windows
from scipy import signal
from skimage.io import imsave, imread
from datetime import datetime
import json
import os
from tqdm import tqdm
import time
from queue i... | 27.997101 | 104 | 0.576871 | 1,471 | 9,659 | 3.630184 | 0.222978 | 0.043258 | 0.016479 | 0.020974 | 0.118914 | 0.070787 | 0.046629 | 0.038764 | 0.013483 | 0.013483 | 0 | 0.02869 | 0.27829 | 9,659 | 345 | 105 | 27.997101 | 0.73734 | 0.089036 | 0 | 0.04661 | 0 | 0 | 0.056246 | 0.017456 | 0 | 0 | 0 | 0 | 0.008475 | 1 | 0.067797 | false | 0.004237 | 0.072034 | 0.008475 | 0.190678 | 0.042373 | 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 |
db4a91969cbd0645d892f196740aa9b468c864c7 | 7,333 | py | Python | examples/mnist1.py | braingineer/pyromancy | 7a7ab1a6835fd63b9153463dd08bb53630f15c62 | [
"MIT"
] | null | null | null | examples/mnist1.py | braingineer/pyromancy | 7a7ab1a6835fd63b9153463dd08bb53630f15c62 | [
"MIT"
] | 1 | 2021-03-25T22:13:53.000Z | 2021-03-25T22:13:53.000Z | examples/mnist1.py | braingineer/pyromancy | 7a7ab1a6835fd63b9153463dd08bb53630f15c62 | [
"MIT"
] | null | null | null | from __future__ import print_function
import argparse
import os
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Variable
from torchvision import datasets, transforms
from tqdm import tqdm
from pyromancy import pyromq
from pyromancy.losses import LossGroup, NegativeLogLik... | 33.949074 | 92 | 0.571799 | 796 | 7,333 | 5.084171 | 0.252513 | 0.024463 | 0.046207 | 0.013837 | 0.357796 | 0.297999 | 0.297999 | 0.2723 | 0.230788 | 0.230788 | 0 | 0.017034 | 0.319515 | 7,333 | 215 | 93 | 34.106977 | 0.793988 | 0.046093 | 0 | 0.260563 | 0 | 0 | 0.078797 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035211 | false | 0 | 0.091549 | 0 | 0.147887 | 0.007042 | 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 |
db4b58f91ffeef6d5055943e105969fe3018f79e | 24,453 | py | Python | hunter/main.py | datastax-labs/hunter | 3631cc3fa529991297a8b631bbae15b138cce307 | [
"Apache-2.0"
] | 17 | 2021-09-03T07:32:40.000Z | 2022-03-24T21:56:22.000Z | hunter/main.py | datastax-labs/hunter | 3631cc3fa529991297a8b631bbae15b138cce307 | [
"Apache-2.0"
] | 1 | 2021-12-02T14:05:07.000Z | 2021-12-02T14:05:07.000Z | hunter/main.py | datastax-labs/hunter | 3631cc3fa529991297a8b631bbae15b138cce307 | [
"Apache-2.0"
] | 2 | 2022-01-18T18:40:41.000Z | 2022-03-11T15:33:25.000Z | import argparse
import copy
import logging
import sys
from dataclasses import dataclass
from datetime import datetime, timedelta
from slack_sdk import WebClient
from typing import Dict, Optional, List
import pytz
from hunter import config
from hunter.attributes import get_back_links
from hunter.config import ConfigEr... | 38.630332 | 117 | 0.613953 | 2,818 | 24,453 | 5.131299 | 0.147622 | 0.019917 | 0.018811 | 0.015284 | 0.268534 | 0.206432 | 0.153734 | 0.116252 | 0.097718 | 0.071024 | 0 | 0.003619 | 0.29935 | 24,453 | 632 | 118 | 38.691456 | 0.840367 | 0.021592 | 0 | 0.208259 | 0 | 0.003591 | 0.177937 | 0.005227 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034111 | false | 0 | 0.064632 | 0 | 0.132855 | 0.025135 | 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 |
db4c9fb7ae81031adc5833740cfc20ab17a83afb | 3,036 | py | Python | docs/python/conf.py | jun-yoon/onnxruntime | 806e24d5c69693533ed4b6fa56b84095efa5df70 | [
"MIT"
] | 2 | 2019-01-29T03:48:42.000Z | 2019-01-29T07:51:31.000Z | docs/python/conf.py | jun-yoon/onnxruntime | 806e24d5c69693533ed4b6fa56b84095efa5df70 | [
"MIT"
] | 2 | 2019-01-09T16:03:17.000Z | 2019-02-13T13:58:28.000Z | docs/python/conf.py | jun-yoon/onnxruntime | 806e24d5c69693533ed4b6fa56b84095efa5df70 | [
"MIT"
] | null | null | null | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
# -*- coding: utf-8 -*-
#
# Configuration file for the Sphinx documentation builder.
import os
import sys
import shutil
# Check these extensions were installed.
import sphinx_gallery.gen_gallery
# The package should be insta... | 29.192308 | 118 | 0.635705 | 320 | 3,036 | 5.86875 | 0.503125 | 0.033546 | 0.027157 | 0.024494 | 0.052183 | 0.034079 | 0 | 0 | 0 | 0 | 0 | 0.005366 | 0.140646 | 3,036 | 103 | 119 | 29.475728 | 0.71445 | 0.378129 | 0 | 0.033898 | 0 | 0.016949 | 0.373727 | 0.144772 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016949 | false | 0 | 0.135593 | 0 | 0.169492 | 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 |
db4cd73478117d82a5229f15076b8071351fd162 | 586 | py | Python | traffic_sim/__main__.py | ngngardner/toc_project | 15a111a2731b583f82e65c622d16d32af4fe3ae0 | [
"MIT"
] | null | null | null | traffic_sim/__main__.py | ngngardner/toc_project | 15a111a2731b583f82e65c622d16d32af4fe3ae0 | [
"MIT"
] | null | null | null | traffic_sim/__main__.py | ngngardner/toc_project | 15a111a2731b583f82e65c622d16d32af4fe3ae0 | [
"MIT"
] | null | null | null | """Traffic simulator code."""
import sys
from os import path
from traffic_sim.analysis import TrafficExperiment
from traffic_sim.console import console
if not __package__:
_path = path.realpath(path.abspath(__file__))
sys.path.insert(0, path.dirname(path.dirname(_path)))
def main():
"""Run code from CL... | 18.903226 | 57 | 0.643345 | 73 | 586 | 4.863014 | 0.520548 | 0.084507 | 0.078873 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026846 | 0.237201 | 586 | 30 | 58 | 19.533333 | 0.767338 | 0.071672 | 0 | 0 | 0 | 0 | 0.035647 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.190476 | 0 | 0.238095 | 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 |
db4e4eef4ddc738259fac8554c6c1cde5bc457e8 | 1,873 | py | Python | demo.py | williamfzc/pyat | 4e9792d4bfdc119d910eb88cf8a13a0ab7848518 | [
"MIT"
] | 20 | 2018-11-01T03:49:56.000Z | 2020-07-23T12:19:20.000Z | demo.py | williamfzc/pyat | 4e9792d4bfdc119d910eb88cf8a13a0ab7848518 | [
"MIT"
] | 2 | 2018-12-28T05:40:47.000Z | 2019-05-20T02:23:29.000Z | demo.py | williamfzc/pyat | 4e9792d4bfdc119d910eb88cf8a13a0ab7848518 | [
"MIT"
] | 14 | 2018-11-01T09:01:38.000Z | 2021-06-09T07:40:45.000Z | from pyatool import PYAToolkit
# 个性化的函数需要toolkit形参,即使不需要使用
def test_b(toolkit):
return 'i am test_b, running on {}'.format(toolkit.device_id)
# 封装adb命令成为方法
PYAToolkit.bind_cmd(func_name='test_a', command='shell pm list package | grep google')
# 或者绑定个性化的函数
PYAToolkit.bind_func(real_func=test_b)
# 是否需要log
PYAToo... | 20.811111 | 100 | 0.767218 | 278 | 1,873 | 4.964029 | 0.52518 | 0.018116 | 0.049275 | 0.011594 | 0.047826 | 0.024638 | 0 | 0 | 0 | 0 | 0 | 0.027267 | 0.099306 | 1,873 | 89 | 101 | 21.044944 | 0.790753 | 0.293647 | 0 | 0.057143 | 0 | 0.028571 | 0.205267 | 0.053447 | 0 | 0 | 0 | 0 | 0.028571 | 1 | 0.028571 | false | 0 | 0.028571 | 0.028571 | 0.085714 | 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 |
db4f84187c639afbc8e53e791899d9a207e520b3 | 1,791 | py | Python | nnlab/nn/graph.py | nlab-mpg/nnlab | 56aabb53fa7b86601b35c7b8c9e890d50e19d9af | [
"MIT"
] | null | null | null | nnlab/nn/graph.py | nlab-mpg/nnlab | 56aabb53fa7b86601b35c7b8c9e890d50e19d9af | [
"MIT"
] | null | null | null | nnlab/nn/graph.py | nlab-mpg/nnlab | 56aabb53fa7b86601b35c7b8c9e890d50e19d9af | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, division
from six.moves import xrange, zip
import tensorflow as tf
from .tensor import Tensor
class Graph(object):
"""The class for defining computational graph."""
def __init__(self, loss=None, modules... | 33.166667 | 90 | 0.641541 | 233 | 1,791 | 4.811159 | 0.270386 | 0.026762 | 0.048171 | 0.053524 | 0.239072 | 0.157895 | 0.09099 | 0.049955 | 0 | 0 | 0 | 0.000767 | 0.272473 | 1,791 | 53 | 91 | 33.792453 | 0.859555 | 0.092686 | 0 | 0.088235 | 0 | 0 | 0.081468 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.117647 | 0.088235 | 0.441176 | 0.029412 | 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 |
db5061768015e77516d7fdac7ebe34947ba071f8 | 18,798 | py | Python | local-rotations.py | katiekruzan/masters-thesis | c9b89a0995957b5b50442b86ae8a38388f1fb720 | [
"MIT"
] | null | null | null | local-rotations.py | katiekruzan/masters-thesis | c9b89a0995957b5b50442b86ae8a38388f1fb720 | [
"MIT"
] | null | null | null | local-rotations.py | katiekruzan/masters-thesis | c9b89a0995957b5b50442b86ae8a38388f1fb720 | [
"MIT"
] | null | null | null | """
Here we're going to code for the local rotations. We're doing an object oriented approach
Left and right are in reference to the origin
"""
__version__ = 1.0
__author__ = 'Katie Kruzan'
import string # just to get the alphabet easily iterable
import sys # This just helps us in our printing
from typing import Di... | 36.500971 | 123 | 0.6223 | 2,620 | 18,798 | 4.441985 | 0.138931 | 0.031706 | 0.012287 | 0.016498 | 0.399639 | 0.320846 | 0.290686 | 0.26783 | 0.23449 | 0.197628 | 0 | 0.003053 | 0.303117 | 18,798 | 514 | 124 | 36.571984 | 0.885344 | 0.514895 | 0 | 0.19802 | 0 | 0 | 0.029792 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.163366 | false | 0 | 0.014851 | 0 | 0.311881 | 0.094059 | 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 |
db51ec07d8e04f942c3e7a0e0c331ea715cd23c8 | 19,075 | py | Python | PT-FROST/frost.py | EtienneDavid/FROST | 1cea124d69f07e3ac7e3ad074059d29c0849254c | [
"MIT"
] | 2 | 2020-12-21T12:46:06.000Z | 2021-03-02T08:28:15.000Z | PT-FROST/frost.py | yogsin/FROST | 1cea124d69f07e3ac7e3ad074059d29c0849254c | [
"MIT"
] | null | null | null | PT-FROST/frost.py | yogsin/FROST | 1cea124d69f07e3ac7e3ad074059d29c0849254c | [
"MIT"
] | 2 | 2020-12-20T15:04:24.000Z | 2021-11-21T12:29:02.000Z | import random
import argparse
import numpy as np
import pandas as pd
import os
import time
import string
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.utils.data import DataLoader
from tqdm import tqdm
from model import WideResnet
from cifar import get_train_loader, get_val_loader
from ... | 46.074879 | 131 | 0.618244 | 2,794 | 19,075 | 3.951324 | 0.128132 | 0.02029 | 0.040036 | 0.007971 | 0.369928 | 0.311685 | 0.26875 | 0.236413 | 0.220924 | 0.19846 | 0 | 0.022134 | 0.251533 | 19,075 | 413 | 132 | 46.186441 | 0.751138 | 0.045242 | 0 | 0.247813 | 0 | 0 | 0.089674 | 0.002366 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020408 | false | 0 | 0.052478 | 0 | 0.087464 | 0.023324 | 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 |
db52db9f4875bf2abe871f56389adc2f255c93ca | 8,456 | py | Python | Logistic Regression/main.py | Frightera/LR-and-NN-for-Cancer-Data | 54f8c9455af529c512efe012d8b3ed3f6b594a57 | [
"MIT"
] | 4 | 2021-03-10T22:18:35.000Z | 2022-03-06T15:37:23.000Z | Logistic Regression/main.py | Frightera/LR-From-Scratch | 54f8c9455af529c512efe012d8b3ed3f6b594a57 | [
"MIT"
] | null | null | null | Logistic Regression/main.py | Frightera/LR-From-Scratch | 54f8c9455af529c512efe012d8b3ed3f6b594a57 | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
import seaborn as sns
import matplotlib.pyplot as plt
data = pd.read_csv("data.csv")
data.info()
"""
Data columns (total 33 columns):
# Column Non-Null Count Dtype
--- ------ -------------- -----
0 id 569 no... | 35.830508 | 113 | 0.674078 | 1,297 | 8,456 | 4.258288 | 0.257517 | 0.074959 | 0.149919 | 0.0239 | 0.420786 | 0.245519 | 0.20641 | 0.20641 | 0.195908 | 0.163136 | 0 | 0.143202 | 0.217124 | 8,456 | 235 | 114 | 35.982979 | 0.691088 | 0.12973 | 0 | 0.095238 | 0 | 0 | 0.067378 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.071429 | 0 | 0.202381 | 0.059524 | 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 |
db5470b1f6ebd8cb49e975c2e7b8774a4d607820 | 2,446 | py | Python | fine-tune/inference_embedding.py | LinHuiqing/nonparaSeq2seqVC_code | d40a0cb9dc11c77b8af56b8510e4ab041f2f2b25 | [
"MIT"
] | 199 | 2019-12-13T03:11:21.000Z | 2022-03-29T15:44:49.000Z | fine-tune/inference_embedding.py | LinHuiqing/nonparaSeq2seqVC_code | d40a0cb9dc11c77b8af56b8510e4ab041f2f2b25 | [
"MIT"
] | 39 | 2019-12-16T20:08:45.000Z | 2022-02-10T00:36:40.000Z | fine-tune/inference_embedding.py | LinHuiqing/nonparaSeq2seqVC_code | d40a0cb9dc11c77b8af56b8510e4ab041f2f2b25 | [
"MIT"
] | 57 | 2019-12-16T23:25:25.000Z | 2022-03-28T18:04:16.000Z | import os
import numpy as np
import torch
import argparse
from hparams import create_hparams
from model import lcm
from train import load_model
from torch.utils.data import DataLoader
from reader import TextMelIDLoader, TextMelIDCollate, id2sp
from inference_utils import plot_data
parser = argparse.ArgumentParser()
p... | 33.054054 | 89 | 0.688062 | 297 | 2,446 | 5.407407 | 0.387205 | 0.074097 | 0.02802 | 0.021171 | 0.07721 | 0.051059 | 0.051059 | 0 | 0 | 0 | 0 | 0.001573 | 0.22036 | 2,446 | 73 | 90 | 33.506849 | 0.840587 | 0.002862 | 0 | 0 | 0 | 0 | 0.098852 | 0.019688 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019608 | false | 0 | 0.196078 | 0 | 0.215686 | 0.058824 | 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 |
db569a6325c560b769cb648e074b4a8fea4a1b00 | 3,954 | py | Python | bombgame/recursive_bt_maze.py | JeFaProductions/bombgame2 | fc2ca7c6606aecd2bec013ed307aa344a0adffc7 | [
"MIT"
] | null | null | null | bombgame/recursive_bt_maze.py | JeFaProductions/bombgame2 | fc2ca7c6606aecd2bec013ed307aa344a0adffc7 | [
"MIT"
] | 2 | 2019-04-04T13:53:11.000Z | 2019-11-28T17:02:00.000Z | bombgame/recursive_bt_maze.py | JeFaProductions/bombgame2 | fc2ca7c6606aecd2bec013ed307aa344a0adffc7 | [
"MIT"
] | null | null | null | # recursive_bt_maze.py
#
# Author: Jens Gansloser
# Created On: 16 Feb 2019
import os
import random
import numpy as np
class RecursiveBTMaze:
def __init__(self, width, height):
if width % 2 == 0 or height % 2 == 0:
raise ValueError("Width and height need to be odd.")
self.width = wid... | 28.861314 | 107 | 0.508346 | 502 | 3,954 | 3.88247 | 0.213147 | 0.049256 | 0.02822 | 0.020523 | 0.181632 | 0.081067 | 0.02668 | 0 | 0 | 0 | 0 | 0.023534 | 0.365959 | 3,954 | 136 | 108 | 29.073529 | 0.753889 | 0.028832 | 0 | 0.159574 | 0 | 0 | 0.012262 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12766 | false | 0.010638 | 0.031915 | 0.031915 | 0.265957 | 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 |
db579a2c18ea2f40634d5108f68e0bca010002d0 | 5,608 | py | Python | KV_Reader.py | Nibuja05/KVConverter | 74f810df4ac82358f405eac9c2f56dce13b69302 | [
"MIT"
] | 2 | 2020-07-06T00:24:27.000Z | 2021-09-20T20:16:36.000Z | KV_Reader.py | Nibuja05/KVConverter | 74f810df4ac82358f405eac9c2f56dce13b69302 | [
"MIT"
] | null | null | null | KV_Reader.py | Nibuja05/KVConverter | 74f810df4ac82358f405eac9c2f56dce13b69302 | [
"MIT"
] | null | null | null |
import re
import math
class KVPart():
"""docstring for KVPart"""
def __init__(self, name, tab_count = 0):
#super(KVPart, self).__init__()
self.name = name
self.values = []
self.tab_count = tab_count
self.parent = None
self.master = False
def add_simple_value(self, value):
self.values.append(value)
... | 26.704762 | 131 | 0.684736 | 838 | 5,608 | 4.368735 | 0.177804 | 0.032778 | 0.0295 | 0.013657 | 0.210325 | 0.150232 | 0.095056 | 0.078121 | 0.078121 | 0.068287 | 0 | 0.00462 | 0.189551 | 5,608 | 209 | 132 | 26.832536 | 0.80088 | 0.140335 | 0 | 0.223602 | 0 | 0 | 0.017302 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.012422 | 0.043478 | 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 |
db587b6771666fcfb06093ced1689bf5fcf21ace | 3,476 | py | Python | scripts/updatetestsuiterefimages.py | PaulDoessel/appleseed | 142908e05609cd802b3ab937ff27ef2b73dd3088 | [
"MIT"
] | null | null | null | scripts/updatetestsuiterefimages.py | PaulDoessel/appleseed | 142908e05609cd802b3ab937ff27ef2b73dd3088 | [
"MIT"
] | null | null | null | scripts/updatetestsuiterefimages.py | PaulDoessel/appleseed | 142908e05609cd802b3ab937ff27ef2b73dd3088 | [
"MIT"
] | null | null | null | #!/usr/bin/python
#
# This source file is part of appleseed.
# Visit http://appleseedhq.net/ for additional information and resources.
#
# This software is released under the MIT license.
#
# Copyright (c) 2014-2016 Francois Beaune, The appleseedhq Organization
#
# Permission is hereby granted, free of charge, to any ... | 39.954023 | 99 | 0.592923 | 399 | 3,476 | 5.070175 | 0.461153 | 0.0435 | 0.019773 | 0.026693 | 0.05042 | 0.02175 | 0 | 0 | 0 | 0 | 0 | 0.003776 | 0.161968 | 3,476 | 86 | 100 | 40.418605 | 0.690697 | 0.559264 | 0 | 0 | 0 | 0 | 0.14238 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.117647 | 0 | 0.235294 | 0.058824 | 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 |
db58e1a129781006da344d7eb154b8ae346ffb44 | 4,244 | py | Python | raidquaza/poll/polls.py | Breee/raidquaza | 308d643e71eddf6f6dc432c01322a02d604ac70e | [
"MIT"
] | 2 | 2019-03-12T16:44:24.000Z | 2020-04-13T21:06:20.000Z | raidquaza/poll/polls.py | Breee/raidquaza | 308d643e71eddf6f6dc432c01322a02d604ac70e | [
"MIT"
] | 5 | 2019-07-13T00:11:42.000Z | 2021-07-29T11:55:39.000Z | raidquaza/poll/polls.py | Breee/raidquaza | 308d643e71eddf6f6dc432c01322a02d604ac70e | [
"MIT"
] | null | null | null | from typing import List, Any
import time
from discord import Embed, Reaction
from utils import uniquify
# EMOJIS regional_indicator_A to regional_indicator_T
reaction_emojies = ['\U0001F1E6',
'\U0001F1E7',
'\U0001F1E8',
'\U0001F1E9',
'\U00... | 41.203883 | 119 | 0.583176 | 488 | 4,244 | 4.889344 | 0.266393 | 0.03772 | 0.045264 | 0.060352 | 0.269908 | 0.17435 | 0.17435 | 0.108969 | 0.098072 | 0.083822 | 0 | 0.042152 | 0.312441 | 4,244 | 102 | 120 | 41.607843 | 0.775531 | 0.035815 | 0 | 0.023256 | 0 | 0 | 0.090574 | 0.011046 | 0 | 0 | 0.001964 | 0 | 0 | 1 | 0.034884 | false | 0.011628 | 0.046512 | 0 | 0.127907 | 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 |
db59947574fede70d491b2341a72a67a1fae3994 | 387 | py | Python | Python/Regex and Parsing/Validating and Parsing Email Addresses.py | pavstar619/HackerRank | 697ee46b6e621ad884a064047461d7707b1413cd | [
"MIT"
] | 61 | 2017-04-27T13:45:12.000Z | 2022-01-27T11:40:15.000Z | Python/Regex and Parsing/Validating and Parsing Email Addresses.py | fahad0193/HackerRank | eb6c95e16688c02921c1df6b6ea613667a251457 | [
"MIT"
] | 1 | 2017-06-24T14:16:06.000Z | 2017-06-24T14:16:28.000Z | Python/Regex and Parsing/Validating and Parsing Email Addresses.py | fahad0193/HackerRank | eb6c95e16688c02921c1df6b6ea613667a251457 | [
"MIT"
] | 78 | 2017-07-05T11:48:20.000Z | 2022-02-08T08:04:22.000Z | import email.utils as em
import re
class Main():
def __init__(self):
self.n = int(input())
for i in range(self.n):
self.s = em.parseaddr(input())
if re.match(r'^[a-zA-Z](\w|-|\.|_)+@[a-zA-Z]+\.[a-zA-Z]{0,3}$', self.s[1]):
print(em.format... | 24.1875 | 87 | 0.4677 | 56 | 387 | 3 | 0.607143 | 0.089286 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011538 | 0.328165 | 387 | 15 | 88 | 25.8 | 0.634615 | 0 | 0 | 0 | 0 | 0.090909 | 0.142119 | 0.121447 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.181818 | 0 | 0.363636 | 0.090909 | 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 |
db64c7127d561a8ba836f248730b0617bfb376eb | 368 | py | Python | chap7/heapq_merge.py | marble-git/python-laoqi | 74c4bb5459113e54ce64443e5da5a9c6a3052d6a | [
"MIT"
] | null | null | null | chap7/heapq_merge.py | marble-git/python-laoqi | 74c4bb5459113e54ce64443e5da5a9c6a3052d6a | [
"MIT"
] | null | null | null | chap7/heapq_merge.py | marble-git/python-laoqi | 74c4bb5459113e54ce64443e5da5a9c6a3052d6a | [
"MIT"
] | null | null | null | #coding:utf-8
'''
filename:heapq_merge.py
chap:7
subject:4-2
conditions:heapq.merge,sorted_list:lst1,lst2
lst3=merged_list(lst1,lst2) is sorted
solution:heapq.merge
'''
import heapq
lst1 = [1,3,5,7,9]
lst2 = [2,4,6,8]
if __name__ == '__main__':
lst3 = heapq.merge(lst1,lst... | 14.72 | 49 | 0.616848 | 56 | 368 | 3.857143 | 0.553571 | 0.185185 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.091549 | 0.228261 | 368 | 24 | 50 | 15.333333 | 0.669014 | 0.464674 | 0 | 0 | 0 | 0 | 0.072727 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.285714 | 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 |
db654a453fae8398e895160a150ba86dbbcc20b1 | 1,966 | py | Python | bindings/python/examples/feature_example.py | lithathampan/wav2letter | 8abf8431d99da147cc4aefc289ad33626e13de6f | [
"BSD-3-Clause"
] | 1 | 2020-07-27T20:51:32.000Z | 2020-07-27T20:51:32.000Z | bindings/python/examples/feature_example.py | lithathampan/wav2letter | 8abf8431d99da147cc4aefc289ad33626e13de6f | [
"BSD-3-Clause"
] | null | null | null | bindings/python/examples/feature_example.py | lithathampan/wav2letter | 8abf8431d99da147cc4aefc289ad33626e13de6f | [
"BSD-3-Clause"
] | 1 | 2021-09-27T16:18:20.000Z | 2021-09-27T16:18:20.000Z | #!/usr/bin/env python3
# adapted from wav2letter/src/feature/test/MfccTest.cpp
import itertools as it
import os
import sys
from wav2letter.feature import FeatureParams, Mfcc
def load_data(filename):
path = os.path.join(data_path, filename)
path = os.path.abspath(path)
with open(path) as f:
retu... | 30.71875 | 86 | 0.657172 | 277 | 1,966 | 4.545126 | 0.411552 | 0.019063 | 0.043685 | 0.028594 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041912 | 0.223296 | 1,966 | 63 | 87 | 31.206349 | 0.78258 | 0.11292 | 0 | 0 | 0 | 0 | 0.111047 | 0.076525 | 0 | 0 | 0 | 0 | 0.093023 | 1 | 0.023256 | false | 0 | 0.093023 | 0 | 0.139535 | 0.093023 | 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 |
db65bd23cd7117025faa3493e9ff0bcdc4419ed0 | 3,227 | py | Python | app.py | shreyashack/PY_Message_Decryption | 251a82ee26c529ff63668328230c9d494f4c9cfa | [
"MIT"
] | 1 | 2020-11-18T10:01:13.000Z | 2020-11-18T10:01:13.000Z | app.py | shreyashack/PY_Message_Decryption | 251a82ee26c529ff63668328230c9d494f4c9cfa | [
"MIT"
] | null | null | null | app.py | shreyashack/PY_Message_Decryption | 251a82ee26c529ff63668328230c9d494f4c9cfa | [
"MIT"
] | null | null | null | from tkinter import *
import onetimepad
class Message_Decrypt:
def __init__(self,root):
self.root=root
self.root.title("Message Decryption")
self.root.geometry("400x475")
self.root.iconbitmap("logo368.ico")
self.root.resizable(0,0)
def on_enter1(e):
but... | 34.329787 | 154 | 0.577007 | 387 | 3,227 | 4.674419 | 0.289406 | 0.066888 | 0.023217 | 0.026534 | 0.330569 | 0.305141 | 0.305141 | 0.305141 | 0.305141 | 0.305141 | 0 | 0.042511 | 0.220019 | 3,227 | 93 | 155 | 34.698925 | 0.676202 | 0.070344 | 0 | 0.032258 | 0 | 0 | 0.137366 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.112903 | false | 0 | 0.032258 | 0 | 0.16129 | 0.016129 | 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 |
db682583f2b418b3755329c159971a743aab45f6 | 589 | py | Python | backend/tests/test_api/test_api_auth.py | abodacs/fastapi-ml-skeleton | fa9a013d06e70cbaff9b9469db32246e41ce7e0f | [
"Apache-2.0"
] | null | null | null | backend/tests/test_api/test_api_auth.py | abodacs/fastapi-ml-skeleton | fa9a013d06e70cbaff9b9469db32246e41ce7e0f | [
"Apache-2.0"
] | 3 | 2020-03-16T22:07:31.000Z | 2021-06-25T15:33:38.000Z | backend/tests/test_api/test_api_auth.py | abodacs/fastapi-ml-skeleton | fa9a013d06e70cbaff9b9469db32246e41ce7e0f | [
"Apache-2.0"
] | null | null | null | # Skeleton
from fastapi_skeleton.core import messages
def test_auth_using_prediction_api_no_apikey_header(test_client) -> None:
response = test_client.post("/api/model/predict")
assert response.status_code == 400
assert response.json() == {"detail": messages.NO_API_KEY}
def test_auth_using_prediction_ap... | 34.647059 | 86 | 0.728353 | 77 | 589 | 5.246753 | 0.441558 | 0.09901 | 0.054455 | 0.079208 | 0.613861 | 0.455446 | 0.311881 | 0.311881 | 0.311881 | 0.311881 | 0 | 0.011881 | 0.142615 | 589 | 16 | 87 | 36.8125 | 0.788119 | 0.013582 | 0 | 0 | 0 | 0 | 0.126079 | 0 | 0 | 0 | 0 | 0 | 0.363636 | 1 | 0.181818 | false | 0 | 0.090909 | 0 | 0.272727 | 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 |
db693358ac60e6cb090422f46492eb2fca4b02bf | 2,434 | py | Python | object_detection/box_coders/mean_stddev_box_coder.py | ophirSarusi/TF_Object_Detection | e08ccd18c6f14586e048048a445cf5a10dbc7c4d | [
"MIT"
] | 59 | 2018-09-23T09:34:24.000Z | 2020-03-10T04:31:27.000Z | object_detection/box_coders/mean_stddev_box_coder.py | ophirSarusi/TF_Object_Detection | e08ccd18c6f14586e048048a445cf5a10dbc7c4d | [
"MIT"
] | 46 | 2018-07-10T23:53:15.000Z | 2022-02-06T03:31:47.000Z | object_detection/box_coders/mean_stddev_box_coder.py | ophirSarusi/TF_Object_Detection | e08ccd18c6f14586e048048a445cf5a10dbc7c4d | [
"MIT"
] | 58 | 2018-09-23T10:31:47.000Z | 2021-11-08T11:34:40.000Z | # Copyright 2017 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... | 34.28169 | 81 | 0.671323 | 320 | 2,434 | 5.025 | 0.39375 | 0.037313 | 0.027363 | 0.039801 | 0.320274 | 0.320274 | 0.280473 | 0.236318 | 0.236318 | 0.236318 | 0 | 0.004782 | 0.226787 | 2,434 | 70 | 82 | 34.771429 | 0.849628 | 0.603944 | 0 | 0.3 | 0 | 0 | 0.112102 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0.1 | 0.05 | 0.45 | 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 |
db6aa256e7b60e45c5a9fbde4a14ff7a63101137 | 3,544 | py | Python | hlrl/torch/agents/wrappers/agent.py | Chainso/HLRL | 584f4ed2fa4d8b311a21dbd862ec9434833dd7cd | [
"MIT"
] | null | null | null | hlrl/torch/agents/wrappers/agent.py | Chainso/HLRL | 584f4ed2fa4d8b311a21dbd862ec9434833dd7cd | [
"MIT"
] | null | null | null | hlrl/torch/agents/wrappers/agent.py | Chainso/HLRL | 584f4ed2fa4d8b311a21dbd862ec9434833dd7cd | [
"MIT"
] | null | null | null | import torch
from typing import Any, Dict, List, OrderedDict, Tuple
from hlrl.core.agents import RLAgent
from hlrl.core.common.wrappers import MethodWrapper
class TorchRLAgent(MethodWrapper):
"""
A torch agent that wraps its experiences as torch tensors.
"""
def __init__(self,
agent:... | 27.905512 | 79 | 0.577596 | 404 | 3,544 | 4.955446 | 0.247525 | 0.034965 | 0.027972 | 0.023976 | 0.023976 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001292 | 0.344808 | 3,544 | 126 | 80 | 28.126984 | 0.860896 | 0.334368 | 0 | 0.098039 | 0 | 0 | 0.005028 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.156863 | false | 0 | 0.078431 | 0.019608 | 0.392157 | 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 |
db6b5bcc7b8379dc6e51f6670d5ff0c0d562417c | 649 | py | Python | PixivConstant.py | NHOrus/PixivUtil2 | facd6b1a21e4adf5edf1de4d4809e94e834246b6 | [
"BSD-2-Clause"
] | null | null | null | PixivConstant.py | NHOrus/PixivUtil2 | facd6b1a21e4adf5edf1de4d4809e94e834246b6 | [
"BSD-2-Clause"
] | null | null | null | PixivConstant.py | NHOrus/PixivUtil2 | facd6b1a21e4adf5edf1de4d4809e94e834246b6 | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
PIXIVUTIL_VERSION = '20191220-beta1'
PIXIVUTIL_LINK = 'https://github.com/Nandaka/PixivUtil2/releases'
PIXIVUTIL_DONATE = 'https://bit.ly/PixivUtilDonation'
# Log Settings
PIXIVUTIL_LOG_FILE = 'pixivutil.log'
PIXIVUTIL_LOG_SIZE = 10485760
PIXIVUTIL_LOG_COUNT = 10
PIXIVUTIL_LOG_FORMAT = "%(asct... | 25.96 | 77 | 0.784284 | 87 | 649 | 5.517241 | 0.632184 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064125 | 0.11094 | 649 | 24 | 78 | 27.041667 | 0.767764 | 0.078582 | 0 | 0 | 0 | 0 | 0.26431 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
db6b74f1fcb56888f5ba09963ca5bb5ed146122f | 8,906 | py | Python | dynamic_schemas/views.py | Threemusketeerz/DSystems | cd03ad2fa6b55872d57bfd01a4ac781aa5cbed8c | [
"BSD-2-Clause"
] | 1 | 2018-01-23T12:23:48.000Z | 2018-01-23T12:23:48.000Z | dynamic_schemas/views.py | Threemusketeerz/DSystems | cd03ad2fa6b55872d57bfd01a4ac781aa5cbed8c | [
"BSD-2-Clause"
] | 1 | 2018-01-19T08:43:59.000Z | 2018-01-23T12:20:43.000Z | dynamic_schemas/views.py | Threemusketeerz/DSystems | cd03ad2fa6b55872d57bfd01a4ac781aa5cbed8c | [
"BSD-2-Clause"
] | null | null | null | from django.http import Http404
from django.shortcuts import render, redirect, reverse
from django.views.generic import ListView
from django.contrib.auth.decorators import login_required
from django.contrib.auth.mixins import LoginRequiredMixin
from django.contrib.auth.models import User
from rest_framework import st... | 32.50365 | 79 | 0.613631 | 991 | 8,906 | 5.353179 | 0.273461 | 0.036192 | 0.025071 | 0.032988 | 0.202074 | 0.124411 | 0.075778 | 0.051272 | 0.038077 | 0.038077 | 0 | 0.002032 | 0.281608 | 8,906 | 273 | 80 | 32.622711 | 0.827133 | 0.168538 | 0 | 0.170732 | 0 | 0 | 0.066413 | 0.024483 | 0 | 0 | 0 | 0.007326 | 0 | 1 | 0.073171 | false | 0 | 0.091463 | 0.006098 | 0.317073 | 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 |
db6ec26c39a9f24fdd4d35e11407f85831432a46 | 24,215 | py | Python | api/views.py | conscience99/lyriko | 0ecc9e4d5ec8e3d746fcb286209a1e7993548a66 | [
"MIT"
] | null | null | null | api/views.py | conscience99/lyriko | 0ecc9e4d5ec8e3d746fcb286209a1e7993548a66 | [
"MIT"
] | null | null | null | api/views.py | conscience99/lyriko | 0ecc9e4d5ec8e3d746fcb286209a1e7993548a66 | [
"MIT"
] | null | null | null | from django.shortcuts import render
from rest_framework import response
from rest_framework.serializers import Serializer
from . import serializers
from rest_framework.response import Response
from rest_framework.views import APIView
from django.views import View
from rest_framework import status
from . models import S... | 38.436508 | 356 | 0.617097 | 2,569 | 24,215 | 5.697548 | 0.127676 | 0.048849 | 0.030744 | 0.043042 | 0.632097 | 0.571702 | 0.520325 | 0.457471 | 0.437863 | 0.425224 | 0 | 0.005792 | 0.265662 | 24,215 | 629 | 357 | 38.497615 | 0.817343 | 0.000702 | 0 | 0.498943 | 0 | 0 | 0.066374 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061311 | false | 0.033827 | 0.080338 | 0 | 0.344609 | 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 |
db705bf281d4e51af41d8edd5763fe3fe1cf7124 | 3,936 | py | Python | lab6.py | jschmidtnj/CS115 | fa2374f1ae9c9b63e572850a97af6086112d7a36 | [
"MIT"
] | null | null | null | lab6.py | jschmidtnj/CS115 | fa2374f1ae9c9b63e572850a97af6086112d7a36 | [
"MIT"
] | null | null | null | lab6.py | jschmidtnj/CS115 | fa2374f1ae9c9b63e572850a97af6086112d7a36 | [
"MIT"
] | 1 | 2022-01-03T01:44:39.000Z | 2022-01-03T01:44:39.000Z | '''
Created on 10/11/2017
@author: jschmid3@stevens.edu
Pledge: I pledge my honor that I have abided by the Stevens Honor System -Joshua Schmidt
CS115 - Lab 6
'''
def isOdd(n):
'''Returns whether or not the integer argument is odd.'''
#question 1: base_2 of 42: 101010
if n == 0:
return False
... | 33.641026 | 121 | 0.621697 | 622 | 3,936 | 3.932476 | 0.233119 | 0.011038 | 0.038839 | 0.044971 | 0.322567 | 0.312756 | 0.284137 | 0.243663 | 0.221586 | 0.221586 | 0 | 0.054953 | 0.251016 | 3,936 | 116 | 122 | 33.931034 | 0.774763 | 0.567073 | 0 | 0.3 | 0 | 0 | 0.003769 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0 | 0 | 0.466667 | 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 |
db73a20804b8cf971455500dd1ae60cb3137e6bf | 4,321 | py | Python | src/processing/augmentation.py | sdcubber/kaggle_carvana | 44f6c7f1e80be2caa3c7ad4c7fb69067af45fe8f | [
"MIT"
] | null | null | null | src/processing/augmentation.py | sdcubber/kaggle_carvana | 44f6c7f1e80be2caa3c7ad4c7fb69067af45fe8f | [
"MIT"
] | null | null | null | src/processing/augmentation.py | sdcubber/kaggle_carvana | 44f6c7f1e80be2caa3c7ad4c7fb69067af45fe8f | [
"MIT"
] | null | null | null | # Script for data augmentation functions
import numpy as np
from collections import deque
from PIL import Image
import cv2
from data.config import *
def imread_cv2(image_path):
"""
Read image_path with cv2 format (H, W, C)
if image is '.gif' outputs is a numpy array of {0,1}
"""
image_format = ima... | 36.931624 | 129 | 0.669058 | 640 | 4,321 | 4.453125 | 0.270313 | 0.066316 | 0.047368 | 0.050526 | 0.402807 | 0.324211 | 0.287018 | 0.287018 | 0.241404 | 0.22807 | 0 | 0.034863 | 0.203425 | 4,321 | 116 | 130 | 37.25 | 0.793144 | 0.303633 | 0 | 0.291667 | 0 | 0 | 0.00103 | 0 | 0 | 0 | 0 | 0.008621 | 0 | 1 | 0.166667 | false | 0 | 0.069444 | 0.013889 | 0.388889 | 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 |
db74905cc0d77c3c1aff987d3c4f57d66e26cc16 | 1,905 | py | Python | terrafirma/core/views/env.py | AlexandraAlter/django-terrafirma | afce5946f173aded2b4bfea78cf1b1034ec32272 | [
"MIT"
] | null | null | null | terrafirma/core/views/env.py | AlexandraAlter/django-terrafirma | afce5946f173aded2b4bfea78cf1b1034ec32272 | [
"MIT"
] | null | null | null | terrafirma/core/views/env.py | AlexandraAlter/django-terrafirma | afce5946f173aded2b4bfea78cf1b1034ec32272 | [
"MIT"
] | null | null | null | from django.shortcuts import render, redirect, get_object_or_404
from django.urls import reverse_lazy
from django import views
from django.views import generic as g_views
from django.views.generic import base as b_views, edit as e_views
from .. import forms, models
class NewEnvView(e_views.CreateView):
model = m... | 30.238095 | 85 | 0.67979 | 251 | 1,905 | 5 | 0.262948 | 0.055777 | 0.081275 | 0.045418 | 0.422311 | 0.404781 | 0.301195 | 0.301195 | 0.243825 | 0.243825 | 0 | 0.003919 | 0.196325 | 1,905 | 62 | 86 | 30.725806 | 0.815807 | 0 | 0 | 0.422222 | 0 | 0 | 0.048294 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.177778 | false | 0 | 0.133333 | 0.066667 | 0.755556 | 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 |
db777f4b56a68caa06eca0c2b86f08c668527cb4 | 2,717 | py | Python | Archive/train_cnn.py | Yeok-c/Urban-Sound-Classification | 98c46eb54266ef7b859d192e9bebe8a5d48e1708 | [
"Apache-2.0"
] | null | null | null | Archive/train_cnn.py | Yeok-c/Urban-Sound-Classification | 98c46eb54266ef7b859d192e9bebe8a5d48e1708 | [
"Apache-2.0"
] | null | null | null | Archive/train_cnn.py | Yeok-c/Urban-Sound-Classification | 98c46eb54266ef7b859d192e9bebe8a5d48e1708 | [
"Apache-2.0"
] | null | null | null | ### Load necessary libraries ###
import numpy as np
from sklearn.model_selection import KFold
from sklearn.metrics import accuracy_score
import tensorflow as tf
from tensorflow import keras
from sklearn.metrics import ConfusionMatrixDisplay
model = get_network()
model.summary()
### Train and evaluate via 10-Folds ... | 40.552239 | 123 | 0.670225 | 391 | 2,717 | 4.483376 | 0.383632 | 0.017114 | 0.017114 | 0.028523 | 0.11352 | 0.105533 | 0.03765 | 0.03765 | 0.03765 | 0.03765 | 0 | 0.022748 | 0.207214 | 2,717 | 66 | 124 | 41.166667 | 0.791086 | 0.179242 | 0 | 0.045455 | 0 | 0 | 0.091444 | 0.010865 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.136364 | 0 | 0.136364 | 0.045455 | 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 |
db77a4da0f8fc3044cf961cfd37d6efdc53cb0ed | 274 | py | Python | Python3/1436-Destination-City/soln.py | wyaadarsh/LeetCode-Solutions | 3719f5cb059eefd66b83eb8ae990652f4b7fd124 | [
"MIT"
] | 5 | 2020-07-24T17:48:59.000Z | 2020-12-21T05:56:00.000Z | Python3/1436-Destination-City/soln.py | zhangyaqi1989/LeetCode-Solutions | 2655a1ffc8678ad1de6c24295071308a18c5dc6e | [
"MIT"
] | null | null | null | Python3/1436-Destination-City/soln.py | zhangyaqi1989/LeetCode-Solutions | 2655a1ffc8678ad1de6c24295071308a18c5dc6e | [
"MIT"
] | 2 | 2020-07-24T17:49:01.000Z | 2020-08-31T19:57:35.000Z | class Solution:
def destCity(self, paths: List[List[str]]) -> str:
bads = set()
cities = set()
for u, v in paths:
cities.add(u)
cities.add(v)
bads.add(u)
ans = cities - bads
return list(ans)[0]
| 24.909091 | 54 | 0.474453 | 35 | 274 | 3.714286 | 0.542857 | 0.138462 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006061 | 0.39781 | 274 | 10 | 55 | 27.4 | 0.781818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.3 | 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 |
db77b07e8a875d39eb972f8b432c0f0db96a2c4f | 6,105 | py | Python | metaflow/plugins/kfp/tests/flows/resources_flow.py | zillow/metaflow | a42dc9eab04695f2b0a429874e607ed67d5a2b45 | [
"Apache-2.0"
] | 7 | 2020-07-24T17:07:58.000Z | 2021-05-19T21:47:12.000Z | metaflow/plugins/kfp/tests/flows/resources_flow.py | zillow/metaflow | a42dc9eab04695f2b0a429874e607ed67d5a2b45 | [
"Apache-2.0"
] | 55 | 2020-07-20T16:56:27.000Z | 2022-03-28T12:51:15.000Z | metaflow/plugins/kfp/tests/flows/resources_flow.py | zillow/metaflow | a42dc9eab04695f2b0a429874e607ed67d5a2b45 | [
"Apache-2.0"
] | 6 | 2020-10-15T18:38:35.000Z | 2021-06-20T03:05:43.000Z | import os
import pprint
import subprocess
import time
from typing import Dict, List
from kubernetes.client import (
V1EnvVar,
V1EnvVarSource,
V1ObjectFieldSelector,
V1ResourceFieldSelector,
)
from metaflow import FlowSpec, step, environment, resources, current
def get_env_vars(env_resources: Dict[st... | 30.073892 | 71 | 0.591646 | 699 | 6,105 | 4.964235 | 0.228898 | 0.051873 | 0.065706 | 0.093372 | 0.37781 | 0.286167 | 0.225072 | 0.192795 | 0.17147 | 0.152738 | 0 | 0.022686 | 0.285176 | 6,105 | 202 | 72 | 30.222772 | 0.772456 | 0.044717 | 0 | 0.216867 | 0 | 0 | 0.211231 | 0.066804 | 0 | 0 | 0 | 0 | 0.138554 | 1 | 0.048193 | false | 0 | 0.042169 | 0 | 0.10241 | 0.036145 | 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 |
db79520622b9fcae917edbc819e1d1c2cae17bf8 | 5,951 | py | Python | src/nb_utils/general.py | redfrexx/osm_association_rules | 33975ce25047f9ab3b21e890bc5ed9bab59a0a2f | [
"BSD-3-Clause"
] | null | null | null | src/nb_utils/general.py | redfrexx/osm_association_rules | 33975ce25047f9ab3b21e890bc5ed9bab59a0a2f | [
"BSD-3-Clause"
] | null | null | null | src/nb_utils/general.py | redfrexx/osm_association_rules | 33975ce25047f9ab3b21e890bc5ed9bab59a0a2f | [
"BSD-3-Clause"
] | 2 | 2021-05-10T10:19:13.000Z | 2021-09-15T10:32:10.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Functions used for data handling
"""
__author__ = "Christina Ludwig, GIScience Research Group, Heidelberg University"
__email__ = "christina.ludwig@uni-heidelberg.de"
import os
import yaml
from shapely.geometry import box
import numpy as np
import pandas as pd
import g... | 40.482993 | 363 | 0.668627 | 799 | 5,951 | 4.740926 | 0.272841 | 0.042767 | 0.023759 | 0.021119 | 0.238648 | 0.206441 | 0.200634 | 0.172122 | 0.157339 | 0.157339 | 0 | 0.002307 | 0.198622 | 5,951 | 146 | 364 | 40.760274 | 0.79199 | 0.140985 | 0 | 0.02439 | 0 | 0 | 0.262321 | 0.00684 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060976 | false | 0 | 0.097561 | 0 | 0.219512 | 0.04878 | 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 |
db7ad2b92a14b73e461a5d252d3a7ab245920c9f | 3,922 | py | Python | keystoneclient/auth/identity/v3/federated.py | darren-wang/ksc | fd096540e8e57b6bd7c923f4cb4ad6616d103cc8 | [
"Apache-1.1"
] | 1 | 2019-09-11T11:56:19.000Z | 2019-09-11T11:56:19.000Z | tools/dockerize/webportal/usr/lib/python2.7/site-packages/keystoneclient/auth/identity/v3/federated.py | foruy/openflow-multiopenstack | 74140b041ac25ed83898ff3998e8dcbed35572bb | [
"Apache-2.0"
] | null | null | null | tools/dockerize/webportal/usr/lib/python2.7/site-packages/keystoneclient/auth/identity/v3/federated.py | foruy/openflow-multiopenstack | 74140b041ac25ed83898ff3998e8dcbed35572bb | [
"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 t... | 35.017857 | 77 | 0.63284 | 452 | 3,922 | 5.320796 | 0.369469 | 0.073181 | 0.013721 | 0.013306 | 0.051559 | 0.031601 | 0 | 0 | 0 | 0 | 0 | 0.002147 | 0.287353 | 3,922 | 111 | 78 | 35.333333 | 0.858318 | 0.375319 | 0 | 0 | 0 | 0 | 0.132514 | 0.03993 | 0 | 0 | 0 | 0 | 0 | 1 | 0.113208 | false | 0 | 0.09434 | 0.018868 | 0.320755 | 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 |
db7cbd4afe84d62fa37ba5ff4602788af4116b50 | 802 | py | Python | config.py | iDevHank/i18n | ec731b5d6fab330a868ebb9f9e11ff1caef629ef | [
"MIT"
] | null | null | null | config.py | iDevHank/i18n | ec731b5d6fab330a868ebb9f9e11ff1caef629ef | [
"MIT"
] | null | null | null | config.py | iDevHank/i18n | ec731b5d6fab330a868ebb9f9e11ff1caef629ef | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# The format of your own localizable method.
# This is an example of '"string".localized'
SUFFIX = '.localized'
KEY = r'"(?:\\.|[^"\\])*"'
LOCALIZABLE_RE = r'%s%s' % (KEY, SUFFIX)
# Specify the path of localizable files in project.
LOCALIZABLE_FILE_PATH = ''
LOCALIZABLE_FILE_NAMES = ['Localizab... | 33.416667 | 71 | 0.634663 | 92 | 802 | 5.336957 | 0.532609 | 0.1222 | 0.016293 | 0.020367 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001486 | 0.160848 | 802 | 23 | 72 | 34.869565 | 0.728083 | 0.229426 | 0 | 0 | 0 | 0 | 0.353997 | 0.071778 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
db7dbf749958b5f62cb5ff7deb97ed3b8e66afdf | 1,771 | py | Python | MuonGun/resources/scripts/histreduce.py | hschwane/offline_production | e14a6493782f613b8bbe64217559765d5213dc1e | [
"MIT"
] | 1 | 2020-12-24T22:00:01.000Z | 2020-12-24T22:00:01.000Z | MuonGun/resources/scripts/histreduce.py | hschwane/offline_production | e14a6493782f613b8bbe64217559765d5213dc1e | [
"MIT"
] | null | null | null | MuonGun/resources/scripts/histreduce.py | hschwane/offline_production | e14a6493782f613b8bbe64217559765d5213dc1e | [
"MIT"
] | 3 | 2020-07-17T09:20:29.000Z | 2021-03-30T16:44:18.000Z | #!/usr/bin/env python
"""
Add all (potentially gigantic) histograms in a group of files.
"""
import dashi
import tables
import os, sys, operator, shutil
from optparse import OptionParser
parser = OptionParser(usage="%prog [OPTIONS] infiles outfile", description=__doc__)
parser.add_option("--blocksize", dest="blocksi... | 31.070175 | 83 | 0.728967 | 255 | 1,771 | 4.968627 | 0.466667 | 0.023678 | 0.04262 | 0.036306 | 0.044199 | 0.044199 | 0 | 0 | 0 | 0 | 0 | 0.007895 | 0.141728 | 1,771 | 56 | 84 | 31.625 | 0.825658 | 0.115754 | 0 | 0.052632 | 0 | 0 | 0.126132 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026316 | false | 0 | 0.131579 | 0 | 0.157895 | 0.026316 | 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 |
db7e13c9886abafe9915d05b01539badc566a636 | 2,108 | py | Python | procrastinate/exceptions.py | ignaciocabeza/procrastinate | 95ba8c7acdf39aa7a1216c19903802b4f65b65d1 | [
"MIT"
] | null | null | null | procrastinate/exceptions.py | ignaciocabeza/procrastinate | 95ba8c7acdf39aa7a1216c19903802b4f65b65d1 | [
"MIT"
] | null | null | null | procrastinate/exceptions.py | ignaciocabeza/procrastinate | 95ba8c7acdf39aa7a1216c19903802b4f65b65d1 | [
"MIT"
] | null | null | null | import datetime
class ProcrastinateException(Exception):
"""
Unexpected Procrastinate error.
"""
def __init__(self, message=None):
if not message:
message = self.__doc__
super().__init__(message)
class TaskNotFound(ProcrastinateException):
"""
Task cannot be impo... | 22.913043 | 84 | 0.675047 | 214 | 2,108 | 6.453271 | 0.462617 | 0.050688 | 0.023896 | 0.044895 | 0.031861 | 0.031861 | 0.031861 | 0 | 0 | 0 | 0 | 0.000611 | 0.223435 | 2,108 | 91 | 85 | 23.164835 | 0.843006 | 0.429791 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0 | 0.090909 | 0 | 0.727273 | 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 |
db7efcd3ba8afeab68792a36832e16d7660931cd | 1,097 | py | Python | question3.py | haojunsng/foodpanda-dataeng | b1b9a5c615113a1b8727c9c7dfe7ad3e50059428 | [
"MIT"
] | null | null | null | question3.py | haojunsng/foodpanda-dataeng | b1b9a5c615113a1b8727c9c7dfe7ad3e50059428 | [
"MIT"
] | null | null | null | question3.py | haojunsng/foodpanda-dataeng | b1b9a5c615113a1b8727c9c7dfe7ad3e50059428 | [
"MIT"
] | null | null | null | from functions import get_df, write_df
import geopy
from geopy import distance
"""
The function question3 takes in the latitude and longitude of potential distress locations,
and returns the nearest port with essential provisions such as water, fuel_oil and diesel.
"""
def question3(dataset_name, latitude, longitude)... | 36.566667 | 143 | 0.71103 | 144 | 1,097 | 5.1875 | 0.493056 | 0.048193 | 0.10174 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027115 | 0.159526 | 1,097 | 29 | 144 | 37.827586 | 0.78308 | 0 | 0 | 0 | 0 | 0 | 0.136714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.176471 | 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 |
db808d5da5102b2f6086cfb47bc515cc8e85e1ce | 6,587 | py | Python | plugins/aea-cli-benchmark/aea_cli_benchmark/case_acn_communication/case.py | valory-xyz/agents-aea | 8f38efa96041b0156ed1ae328178e395dbabf2fc | [
"Apache-2.0"
] | null | null | null | plugins/aea-cli-benchmark/aea_cli_benchmark/case_acn_communication/case.py | valory-xyz/agents-aea | 8f38efa96041b0156ed1ae328178e395dbabf2fc | [
"Apache-2.0"
] | null | null | null | plugins/aea-cli-benchmark/aea_cli_benchmark/case_acn_communication/case.py | valory-xyz/agents-aea | 8f38efa96041b0156ed1ae328178e395dbabf2fc | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
#
# Copyright 2022 Valory AG
# Copyright 2018-2021 Fetch.AI Limited
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance... | 30.780374 | 93 | 0.591316 | 719 | 6,587 | 5.182198 | 0.297636 | 0.041331 | 0.025497 | 0.029522 | 0.271337 | 0.263553 | 0.24423 | 0.24423 | 0.24423 | 0.231884 | 0 | 0.016717 | 0.300744 | 6,587 | 213 | 94 | 30.924883 | 0.792228 | 0.152573 | 0 | 0.329032 | 0 | 0 | 0.019842 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045161 | false | 0 | 0.070968 | 0.019355 | 0.16129 | 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 |
db83659c6d0ac1aa7ea69a87f18b5fd2867e5ddc | 3,651 | py | Python | genomics_algo/utilities/string_cmp.py | SvoONs/genomics_algo | 3174c1e9e685db12c5849ce5c7e3411f1922a4be | [
"MIT"
] | null | null | null | genomics_algo/utilities/string_cmp.py | SvoONs/genomics_algo | 3174c1e9e685db12c5849ce5c7e3411f1922a4be | [
"MIT"
] | 38 | 2020-11-11T21:26:56.000Z | 2021-03-20T23:25:49.000Z | genomics_algo/utilities/string_cmp.py | SvoONs/genomics_algo | 3174c1e9e685db12c5849ce5c7e3411f1922a4be | [
"MIT"
] | 1 | 2020-11-13T21:38:43.000Z | 2020-11-13T21:38:43.000Z | def longest_common_prefix(s1: str, s2: str) -> str:
"""
Finds the longest common prefix (substring) given two strings
s1: First string to compare
s2: Second string to compare
Returns:
Longest common prefix between s1 and s2
>>> longest_common_prefix("ACTA", "GCCT")
''
>>> long... | 28.97619 | 81 | 0.586962 | 471 | 3,651 | 4.392781 | 0.220807 | 0.131948 | 0.101015 | 0.019333 | 0.278879 | 0.21943 | 0.148864 | 0.148864 | 0.118898 | 0.086032 | 0 | 0.030236 | 0.25719 | 3,651 | 125 | 82 | 29.208 | 0.73267 | 0.611339 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037037 | 1 | 0.148148 | false | 0 | 0 | 0 | 0.296296 | 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 |
db836b59bf5fd8d655aefd6e4020d61dca742b2c | 11,906 | py | Python | whyqd/parsers/wrangling_parser.py | whythawk/whyqd | 8ee41768d6788318458d41831200594b61777ccc | [
"BSD-3-Clause"
] | 17 | 2020-02-21T14:41:24.000Z | 2022-01-31T20:25:53.000Z | whyqd/parsers/wrangling_parser.py | whythawk/whyqd | 8ee41768d6788318458d41831200594b61777ccc | [
"BSD-3-Clause"
] | null | null | null | whyqd/parsers/wrangling_parser.py | whythawk/whyqd | 8ee41768d6788318458d41831200594b61777ccc | [
"BSD-3-Clause"
] | null | null | null | from __future__ import annotations
from typing import Optional, Dict, List, Union, Type, TYPE_CHECKING
from datetime import date, datetime
import pandas as pd
import numpy as np
import re
import locale
try:
locale.setlocale(locale.LC_ALL, "en_US.UTF-8")
except locale.Error:
# Readthedocs has a problem, but dif... | 38.160256 | 128 | 0.534184 | 1,405 | 11,906 | 4.474733 | 0.27758 | 0.015747 | 0.002863 | 0.013997 | 0.134404 | 0.058374 | 0.03881 | 0.03881 | 0.01527 | 0.01527 | 0 | 0.010775 | 0.337393 | 11,906 | 311 | 129 | 38.282958 | 0.786158 | 0.354611 | 0 | 0.154839 | 0 | 0.006452 | 0.077332 | 0 | 0 | 0 | 0 | 0.003215 | 0 | 1 | 0.045161 | false | 0 | 0.077419 | 0 | 0.212903 | 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 |
db83c7d51feb9c6d2d6569094bc6e9a0eb64b2ce | 432 | py | Python | 0x02-python-import_modules/2-args.py | FatChicken277/holbertonschool-higher_level_programming | 520d6310a5e2a874f8c5f5185d0fb769b6412e7c | [
"CNRI-Python"
] | null | null | null | 0x02-python-import_modules/2-args.py | FatChicken277/holbertonschool-higher_level_programming | 520d6310a5e2a874f8c5f5185d0fb769b6412e7c | [
"CNRI-Python"
] | null | null | null | 0x02-python-import_modules/2-args.py | FatChicken277/holbertonschool-higher_level_programming | 520d6310a5e2a874f8c5f5185d0fb769b6412e7c | [
"CNRI-Python"
] | null | null | null | #!/usr/bin/python3
def args(args):
lenn = len(args) - 1
if lenn == 0:
print("0 arguments.")
elif lenn == 1:
print("{0} argument:".format(lenn))
print("{0}: {1}".format(lenn, args[lenn]))
elif lenn > 1:
print("{0} arguments:".format(lenn))
for i in range(lenn):
... | 25.411765 | 52 | 0.518519 | 61 | 432 | 3.540984 | 0.393443 | 0.138889 | 0.138889 | 0.12963 | 0.296296 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044872 | 0.277778 | 432 | 16 | 53 | 27 | 0.647436 | 0.039352 | 0 | 0 | 0 | 0 | 0.152174 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.071429 | 0 | 0.142857 | 0.357143 | 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 |
db8779ff5f2f1e236cb5f3cfe96c63ab0de64f28 | 5,766 | py | Python | keystone/common/sql/migrate_repo/versions/001_add_initial_tables.py | sanket4373/keystone | 7cf7e7497729803f0470167315af9349b88fe0ec | [
"Apache-2.0"
] | null | null | null | keystone/common/sql/migrate_repo/versions/001_add_initial_tables.py | sanket4373/keystone | 7cf7e7497729803f0470167315af9349b88fe0ec | [
"Apache-2.0"
] | null | null | null | keystone/common/sql/migrate_repo/versions/001_add_initial_tables.py | sanket4373/keystone | 7cf7e7497729803f0470167315af9349b88fe0ec | [
"Apache-2.0"
] | null | null | null | # Copyright 2012 OpenStack Foundation
#
# 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... | 36.961538 | 79 | 0.620534 | 744 | 5,766 | 4.700269 | 0.211022 | 0.08493 | 0.066057 | 0.055762 | 0.646554 | 0.60795 | 0.517872 | 0.480412 | 0.448098 | 0.437804 | 0 | 0.016159 | 0.259452 | 5,766 | 155 | 80 | 37.2 | 0.80281 | 0.249913 | 0 | 0.490385 | 0 | 0 | 0.095038 | 0.010249 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019231 | false | 0 | 0.009615 | 0 | 0.028846 | 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 |
db885085ce16df342f9eaff7d4d323eb7dc1a85c | 15,984 | py | Python | boa3_test/examples/ico.py | DanPopa46/neo3-boa | e4ef340744b5bd25ade26f847eac50789b97f3e9 | [
"Apache-2.0"
] | null | null | null | boa3_test/examples/ico.py | DanPopa46/neo3-boa | e4ef340744b5bd25ade26f847eac50789b97f3e9 | [
"Apache-2.0"
] | null | null | null | boa3_test/examples/ico.py | DanPopa46/neo3-boa | e4ef340744b5bd25ade26f847eac50789b97f3e9 | [
"Apache-2.0"
] | null | null | null | from typing import Any, List, Union
from boa3.builtin import NeoMetadata, metadata, public
from boa3.builtin.contract import Nep17TransferEvent
from boa3.builtin.interop.blockchain import get_contract
from boa3.builtin.interop.contract import GAS, NEO, call_contract
from boa3.builtin.interop.runtime import calling_scr... | 33.509434 | 118 | 0.673486 | 2,129 | 15,984 | 4.943166 | 0.138093 | 0.035918 | 0.010452 | 0.011307 | 0.511688 | 0.45401 | 0.424458 | 0.415811 | 0.394147 | 0.360414 | 0 | 0.01951 | 0.223974 | 15,984 | 476 | 119 | 33.579832 | 0.828926 | 0.518456 | 0 | 0.397661 | 0 | 0 | 0.027119 | 0.003408 | 0 | 0 | 0 | 0.002101 | 0.064327 | 1 | 0.105263 | false | 0 | 0.046784 | 0 | 0.339181 | 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 |
db8859ce66203d2b7d494162105376778915c59d | 20,640 | py | Python | emotion_recognition.py | Partaourides/SERN | e6cc0a9a0cc3ac4b9a87e3ccdf5781792f85d718 | [
"MIT"
] | 10 | 2019-05-07T02:20:02.000Z | 2020-10-09T02:20:31.000Z | emotion_recognition.py | Partaourides/SERN | e6cc0a9a0cc3ac4b9a87e3ccdf5781792f85d718 | [
"MIT"
] | 2 | 2020-06-27T13:09:03.000Z | 2021-07-28T04:55:38.000Z | emotion_recognition.py | Partaourides/SERN | e6cc0a9a0cc3ac4b9a87e3ccdf5781792f85d718 | [
"MIT"
] | 1 | 2019-07-18T00:28:13.000Z | 2019-07-18T00:28:13.000Z | import os
# Restrict the script to run on CPU
os.environ ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID"
os.environ["CUDA_VISIBLE_DEVICES"] = ""
# Import Keras Tensoflow Backend
# from keras import backend as K
import tensorflow as tf
# Configure it to use only specific CPU Cores
config = tf.ConfigProto(intra_op_parallelism_thre... | 58.971429 | 128 | 0.463275 | 1,907 | 20,640 | 4.664394 | 0.111169 | 0.051714 | 0.031478 | 0.019786 | 0.662619 | 0.616639 | 0.58842 | 0.528836 | 0.497583 | 0.469028 | 0 | 0.003322 | 0.227132 | 20,640 | 349 | 129 | 59.140401 | 0.554288 | 0.070058 | 0 | 0.373874 | 0 | 0 | 0.081601 | 0.012219 | 0 | 0 | 0 | 0 | 0 | 1 | 0.009009 | false | 0 | 0.036036 | 0 | 0.045045 | 0.018018 | 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 |
db889090b0a80e5b1926c1a844e99f3562167374 | 1,779 | py | Python | dashboard/rpc/alias.py | flaree/Toxic-Cogs | e33c3fe3a81c86ef3c89928b0a977fae13b916a9 | [
"MIT"
] | null | null | null | dashboard/rpc/alias.py | flaree/Toxic-Cogs | e33c3fe3a81c86ef3c89928b0a977fae13b916a9 | [
"MIT"
] | null | null | null | dashboard/rpc/alias.py | flaree/Toxic-Cogs | e33c3fe3a81c86ef3c89928b0a977fae13b916a9 | [
"MIT"
] | null | null | null | import discord
from redbot.core.bot import Red
from redbot.core.commands import commands
from redbot.core.utils.chat_formatting import humanize_list
from .utils import permcheck, rpccheck
class DashboardRPC_AliasCC:
def __init__(self, cog: commands.Cog):
self.bot: Red = cog.bot
self.co... | 32.345455 | 81 | 0.540191 | 182 | 1,779 | 5.175824 | 0.379121 | 0.076433 | 0.044586 | 0.038217 | 0.055202 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003347 | 0.328274 | 1,779 | 54 | 82 | 32.944444 | 0.784937 | 0.012929 | 0 | 0 | 0 | 0 | 0.087647 | 0.013529 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068182 | false | 0 | 0.113636 | 0.022727 | 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 |
db88f0e02537c3b3ec61c4fbd738d9a4605bd04a | 6,939 | py | Python | train.py | hafezgh/music_classification | 68fa398b7d4455475d07ae17c3b6b94459a96ac7 | [
"MIT"
] | 1 | 2021-07-15T18:47:02.000Z | 2021-07-15T18:47:02.000Z | train.py | hafezgh/music_classification | 68fa398b7d4455475d07ae17c3b6b94459a96ac7 | [
"MIT"
] | null | null | null | train.py | hafezgh/music_classification | 68fa398b7d4455475d07ae17c3b6b94459a96ac7 | [
"MIT"
] | null | null | null | import torch
DEVICE = 'cuda'
import math
import torch.optim as optim
from model import *
import os
import copy, gzip, pickle, time
data_dir = './drive/MyDrive/music_classification/Data'
classes = os.listdir(data_dir+'/images_original')
def fit(model, train_loader, train_len, optimizer, criterion):
model.train()
... | 40.343023 | 118 | 0.607292 | 839 | 6,939 | 4.777116 | 0.190703 | 0.026198 | 0.022455 | 0.021956 | 0.312625 | 0.27495 | 0.220559 | 0.166667 | 0.124252 | 0.124252 | 0 | 0.012048 | 0.282317 | 6,939 | 172 | 119 | 40.343023 | 0.792771 | 0.038911 | 0 | 0.267974 | 0 | 0 | 0.159088 | 0.030317 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019608 | false | 0 | 0.039216 | 0 | 0.078431 | 0.091503 | 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 |
db8bf109b16daade88fa4febce0557b98851466c | 476 | py | Python | doc/samples/pos.py | m4ta1l/doit | d1a1b7b3abc7641d977d3b78b580d97aea4e27ea | [
"MIT"
] | 1,390 | 2015-01-01T21:11:47.000Z | 2022-03-31T11:35:44.000Z | doc/samples/pos.py | m4ta1l/doit | d1a1b7b3abc7641d977d3b78b580d97aea4e27ea | [
"MIT"
] | 393 | 2015-01-05T11:18:29.000Z | 2022-03-20T11:46:46.000Z | doc/samples/pos.py | m4ta1l/doit | d1a1b7b3abc7641d977d3b78b580d97aea4e27ea | [
"MIT"
] | 176 | 2015-01-07T16:58:56.000Z | 2022-03-28T12:12:11.000Z | def task_pos_args():
def show_params(param1, pos):
print('param1 is: {0}'.format(param1))
for index, pos_arg in enumerate(pos):
print('positional-{0}: {1}'.format(index, pos_arg))
return {'actions':[(show_params,)],
'params':[{'name':'param1',
'shor... | 34 | 63 | 0.44958 | 47 | 476 | 4.404255 | 0.574468 | 0.086957 | 0.10628 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027027 | 0.378151 | 476 | 13 | 64 | 36.615385 | 0.672297 | 0 | 0 | 0 | 0 | 0 | 0.212185 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0 | 0 | 0.230769 | 0.153846 | 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 |
db8c048cea31b2b7400108b7a16a198179252811 | 24,553 | py | Python | projectq/backends/_qracksim/_simulator_test.py | vm6502q/ProjectQ | 1eac4b1f529551dfc1668443eba0c68dee54120b | [
"Apache-2.0"
] | 1 | 2019-08-29T19:04:27.000Z | 2019-08-29T19:04:27.000Z | projectq/backends/_qracksim/_simulator_test.py | vm6502q/ProjectQ | 1eac4b1f529551dfc1668443eba0c68dee54120b | [
"Apache-2.0"
] | 6 | 2019-01-27T17:05:25.000Z | 2020-02-24T00:15:59.000Z | projectq/backends/_qracksim/_simulator_test.py | vm6502q/ProjectQ | 1eac4b1f529551dfc1668443eba0c68dee54120b | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 ProjectQ-Framework (www.projectq.ch)
#
# 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 app... | 33.680384 | 115 | 0.629455 | 3,208 | 24,553 | 4.664277 | 0.115025 | 0.030743 | 0.02172 | 0.033683 | 0.584442 | 0.517877 | 0.454321 | 0.427187 | 0.405734 | 0.383947 | 0 | 0.030553 | 0.24551 | 24,553 | 728 | 116 | 33.726648 | 0.777166 | 0.071111 | 0 | 0.469203 | 0 | 0 | 0.009068 | 0.005502 | 0 | 0 | 0 | 0 | 0.141304 | 1 | 0.059783 | false | 0.003623 | 0.036232 | 0.001812 | 0.117754 | 0.001812 | 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 |
db8f8bf38af010e37a76dcb939676a34f09f75d2 | 1,693 | py | Python | com_reader.py | plusterm/plusterm | 45e9382accdaae7d51c65cab77e571bc6d264936 | [
"MIT"
] | 2 | 2018-01-10T16:20:45.000Z | 2018-01-16T12:04:13.000Z | com_reader.py | plusterm/plusterm | 45e9382accdaae7d51c65cab77e571bc6d264936 | [
"MIT"
] | 14 | 2018-01-10T12:56:43.000Z | 2018-05-11T16:28:31.000Z | com_reader.py | plusterm/plusterm | 45e9382accdaae7d51c65cab77e571bc6d264936 | [
"MIT"
] | null | null | null | # from wx.lib.pubsub import pub
from pubsub import pub
import serial
import threading
import queue
import time
class ComReaderThread(threading.Thread):
'''
Creates a thread that continously reads from the serial connection
Puts result as a tuple (timestamp, data) in a queue
'''
def __init__(self... | 29.701754 | 74 | 0.517425 | 185 | 1,693 | 4.654054 | 0.443243 | 0.065041 | 0.034843 | 0.039489 | 0.044135 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004916 | 0.399291 | 1,693 | 56 | 75 | 30.232143 | 0.841691 | 0.135854 | 0 | 0.054054 | 0 | 0 | 0.045833 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081081 | false | 0 | 0.135135 | 0 | 0.243243 | 0.054054 | 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 |
db8ff673815400dfc9c26d89afa7b79ffbf19f2f | 1,032 | py | Python | docker/app/app.py | ganeshkumarsv/datadog-cloudfoundry-buildpack | 7c622dfc7990da83e5dfa4f474878a642fd40fd3 | [
"Apache-2.0"
] | 5 | 2018-04-19T18:33:06.000Z | 2021-05-13T03:19:31.000Z | docker/app/app.py | ganeshkumarsv/datadog-cloudfoundry-buildpack | 7c622dfc7990da83e5dfa4f474878a642fd40fd3 | [
"Apache-2.0"
] | 24 | 2018-05-04T13:42:24.000Z | 2021-12-13T12:18:53.000Z | docker/app/app.py | ganeshkumarsv/datadog-cloudfoundry-buildpack | 7c622dfc7990da83e5dfa4f474878a642fd40fd3 | [
"Apache-2.0"
] | 14 | 2018-05-04T13:29:34.000Z | 2022-02-22T17:41:20.000Z | from flask import Flask
from datadog import statsd
import logging
import os
# This is a small example application
# It uses tracing and dogstatsd on a sample flask application
log = logging.getLogger("app")
app = Flask(__name__)
# The app has two routes, a basic endpoint and an exception endpoint
@app.route("/")
d... | 27.891892 | 83 | 0.670543 | 158 | 1,032 | 4.303797 | 0.455696 | 0.052941 | 0.070588 | 0.044118 | 0.135294 | 0.135294 | 0.135294 | 0.135294 | 0.135294 | 0.135294 | 0 | 0.01199 | 0.19186 | 1,032 | 36 | 84 | 28.666667 | 0.803357 | 0.273256 | 0 | 0 | 0 | 0 | 0.221774 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.166667 | 0 | 0.291667 | 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 |
db92111d1426d48f852fa3b382344c31b99bb952 | 2,446 | py | Python | monai/networks/blocks/selfattention.py | function2-llx/MONAI | 4cddaa830b61b88ec78e089bb5f21e05bb1a78f4 | [
"Apache-2.0"
] | 1 | 2022-03-16T01:18:43.000Z | 2022-03-16T01:18:43.000Z | monai/networks/blocks/selfattention.py | function2-llx/MONAI | 4cddaa830b61b88ec78e089bb5f21e05bb1a78f4 | [
"Apache-2.0"
] | null | null | null | monai/networks/blocks/selfattention.py | function2-llx/MONAI | 4cddaa830b61b88ec78e089bb5f21e05bb1a78f4 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) MONAI Consortium
# 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, so... | 38.825397 | 114 | 0.656582 | 364 | 2,446 | 4.277473 | 0.425824 | 0.057803 | 0.030829 | 0.020552 | 0.066795 | 0.035967 | 0 | 0 | 0 | 0 | 0 | 0.017149 | 0.237122 | 2,446 | 62 | 115 | 39.451613 | 0.817256 | 0.353639 | 0 | 0 | 0 | 0 | 0.12633 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.133333 | 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 |
db933a7c4e56e24f7c3bf21ad73b25c489317eb1 | 1,642 | py | Python | api/tests/opentrons/commands/test_protocol_commands.py | mrakitin/opentrons | d9c7ed23d13cdb62bd1bc397dc2871d4bd5b77e9 | [
"Apache-2.0"
] | null | null | null | api/tests/opentrons/commands/test_protocol_commands.py | mrakitin/opentrons | d9c7ed23d13cdb62bd1bc397dc2871d4bd5b77e9 | [
"Apache-2.0"
] | null | null | null | api/tests/opentrons/commands/test_protocol_commands.py | mrakitin/opentrons | d9c7ed23d13cdb62bd1bc397dc2871d4bd5b77e9 | [
"Apache-2.0"
] | null | null | null | import pytest
from opentrons.commands import protocol_commands
@pytest.mark.parametrize(
argnames="seconds,"
"minutes,"
"expected_seconds,"
"expected_minutes,"
"expected_text",
argvalues=[
[10, 0, 10, 0, "Delaying for 0 minutes and 10.0 seconds"],
... | 35.695652 | 77 | 0.596224 | 223 | 1,642 | 4.318386 | 0.219731 | 0.114226 | 0.062305 | 0.067497 | 0.485981 | 0.383178 | 0.282451 | 0.182762 | 0.066459 | 0 | 0 | 0.095477 | 0.272838 | 1,642 | 45 | 78 | 36.488889 | 0.711055 | 0.035932 | 0 | 0 | 0 | 0 | 0.331642 | 0 | 0 | 0 | 0 | 0 | 0.131579 | 1 | 0.052632 | false | 0 | 0.052632 | 0 | 0.105263 | 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 |
db9557d7a7cbb9a18b934e17eeb9d696dbc28b20 | 1,467 | py | Python | tests/test_histogram_source.py | ess-dmsc/just-bin-it | 8fcd03337a8a88087f25c510c589d482bdd9e4ad | [
"BSD-2-Clause"
] | null | null | null | tests/test_histogram_source.py | ess-dmsc/just-bin-it | 8fcd03337a8a88087f25c510c589d482bdd9e4ad | [
"BSD-2-Clause"
] | 23 | 2018-12-04T11:50:37.000Z | 2022-03-17T11:30:39.000Z | tests/test_histogram_source.py | ess-dmsc/just-bin-it | 8fcd03337a8a88087f25c510c589d482bdd9e4ad | [
"BSD-2-Clause"
] | 2 | 2019-07-24T11:13:41.000Z | 2020-08-04T18:33:22.000Z | from unittest.mock import patch
import pytest
from just_bin_it.endpoints.sources import HistogramSource
from tests.doubles.consumer import StubConsumer
TEST_MESSAGE = b"this is a byte message"
INVALID_FB = b"this is an invalid fb message"
class TestHistogramSource:
@pytest.fixture(autouse=True)
def prepare... | 30.5625 | 87 | 0.69666 | 184 | 1,467 | 5.206522 | 0.380435 | 0.112735 | 0.028184 | 0.097077 | 0.34238 | 0.290188 | 0.290188 | 0.290188 | 0.290188 | 0.133612 | 0 | 0.010363 | 0.210634 | 1,467 | 47 | 88 | 31.212766 | 0.816926 | 0 | 0 | 0.228571 | 0 | 0 | 0.092706 | 0.031357 | 0 | 0 | 0 | 0 | 0.085714 | 1 | 0.142857 | false | 0.028571 | 0.114286 | 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 |
db9a10e90482e634cd4e39a1baf5cb649420edce | 10,817 | py | Python | bbp/comps/irikura_gen_srf.py | ZhangHCFJEA/bbp | 33bd999cf8d719c49f9a904872c62f02eb5850d1 | [
"BSD-3-Clause"
] | 28 | 2017-10-31T09:16:30.000Z | 2022-02-28T23:44:29.000Z | bbp/comps/irikura_gen_srf.py | ZhangHCFJEA/bbp | 33bd999cf8d719c49f9a904872c62f02eb5850d1 | [
"BSD-3-Clause"
] | 37 | 2017-05-23T15:15:35.000Z | 2022-02-05T09:13:18.000Z | bbp/comps/irikura_gen_srf.py | ZhangHCFJEA/bbp | 33bd999cf8d719c49f9a904872c62f02eb5850d1 | [
"BSD-3-Clause"
] | 26 | 2017-09-21T17:43:33.000Z | 2021-11-29T06:34:30.000Z | #!/usr/bin/env python
"""
Copyright 2010-2019 University Of Southern California
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... | 41.764479 | 104 | 0.524637 | 1,326 | 10,817 | 4.058069 | 0.217195 | 0.053893 | 0.037168 | 0.024531 | 0.383944 | 0.270768 | 0.217989 | 0.195131 | 0.195131 | 0.117264 | 0 | 0.011504 | 0.373209 | 10,817 | 258 | 105 | 41.926357 | 0.782153 | 0.16622 | 0 | 0.230769 | 0 | 0.005917 | 0.094145 | 0.007948 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011834 | false | 0 | 0.053254 | 0 | 0.071006 | 0.023669 | 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 |
db9c6841dad833eb81be4efbbef24d978326ad58 | 11,120 | py | Python | core/tests/test_models.py | EthanMarrs/digit2 | 207569a3b7a61282a2d0bd5f354a837ad81ef55d | [
"BSD-2-Clause"
] | null | null | null | core/tests/test_models.py | EthanMarrs/digit2 | 207569a3b7a61282a2d0bd5f354a837ad81ef55d | [
"BSD-2-Clause"
] | null | null | null | core/tests/test_models.py | EthanMarrs/digit2 | 207569a3b7a61282a2d0bd5f354a837ad81ef55d | [
"BSD-2-Clause"
] | null | null | null | """test_models.py: runs tests on the models for digit."""
import pytest
from core.models import (Grade,
Subject,
Question,
Comment,
Option,
Topic,
Block,
... | 38.082192 | 95 | 0.629496 | 1,199 | 11,120 | 5.633028 | 0.114262 | 0.053894 | 0.08854 | 0.090169 | 0.723867 | 0.629701 | 0.610453 | 0.56944 | 0.533314 | 0.507403 | 0 | 0.017897 | 0.276439 | 11,120 | 291 | 96 | 38.213058 | 0.821526 | 0.114748 | 0 | 0.596774 | 0 | 0 | 0.095967 | 0 | 0 | 0 | 0 | 0 | 0.268817 | 1 | 0.091398 | false | 0 | 0.021505 | 0 | 0.123656 | 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 |
db9da718184383db0fb17735d540dd6d59f6b655 | 5,830 | py | Python | base/views.py | omololevy/my_portfolio | 29f8892c3a6e40a9c05c85110301987005d2c5c1 | [
"MIT"
] | 2 | 2021-12-25T23:11:03.000Z | 2021-12-26T07:09:35.000Z | base/views.py | omololevy/portfolio | 29f8892c3a6e40a9c05c85110301987005d2c5c1 | [
"MIT"
] | 6 | 2022-01-15T15:38:36.000Z | 2022-02-22T17:17:59.000Z | base/views.py | omololevy/my_portfolio | 29f8892c3a6e40a9c05c85110301987005d2c5c1 | [
"MIT"
] | null | null | null | from django.shortcuts import render, redirect
from django.http import HttpResponse
from django.contrib.auth.decorators import login_required
from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger
from django.core.mail import EmailMessage
from django.conf import settings
from django.template.loader imp... | 25.911111 | 91 | 0.732247 | 752 | 5,830 | 5.621011 | 0.212766 | 0.0511 | 0.080908 | 0.097942 | 0.326473 | 0.242725 | 0.225219 | 0.164656 | 0.115448 | 0.115448 | 0 | 0.000992 | 0.135849 | 5,830 | 224 | 92 | 26.026786 | 0.838031 | 0.01458 | 0 | 0.278107 | 0 | 0 | 0.132033 | 0.011845 | 0 | 0 | 0 | 0 | 0 | 1 | 0.112426 | false | 0.023669 | 0.088757 | 0.04142 | 0.366864 | 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 |
db9dc14c3ce1122987ebe56a59b8a07194d400d2 | 30,282 | py | Python | radioLib/pastebin/pastebin.py | hephaestus9/Radio | c1560c25def211ab6354fb0aa5cc935e2851c8f0 | [
"MIT"
] | 1 | 2021-05-17T08:31:07.000Z | 2021-05-17T08:31:07.000Z | lib/pastebin/pastebin.py | hephaestus9/Ironworks | 37be48e37f63530dd7bf82618948ef82522699a0 | [
"MIT"
] | null | null | null | lib/pastebin/pastebin.py | hephaestus9/Ironworks | 37be48e37f63530dd7bf82618948ef82522699a0 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#############################################################################
# Pastebin.py - Python 3.2 Pastebin API.
# Copyright (C) 2012 Ian Havelock
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as ... | 38.186633 | 125 | 0.533848 | 3,194 | 30,282 | 4.903256 | 0.192235 | 0.019667 | 0.023626 | 0.019411 | 0.552072 | 0.517464 | 0.475959 | 0.459421 | 0.440202 | 0.430879 | 0 | 0.020838 | 0.367677 | 30,282 | 792 | 126 | 38.234848 | 0.797055 | 0.478502 | 0 | 0.190202 | 0 | 0 | 0.150962 | 0.001584 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023055 | false | 0.011527 | 0.005764 | 0 | 0.083573 | 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 |
dba0ab7feb9b0f1f06f733ef048e8a1aa5355e67 | 2,544 | py | Python | app/requests.py | seron-ux/News-app | d22b256b26fb9fa2bb77658952139b9ddebb8f8c | [
"MIT"
] | 1 | 2021-04-16T12:03:37.000Z | 2021-04-16T12:03:37.000Z | app/requests.py | seron-ux/News-app | d22b256b26fb9fa2bb77658952139b9ddebb8f8c | [
"MIT"
] | null | null | null | app/requests.py | seron-ux/News-app | d22b256b26fb9fa2bb77658952139b9ddebb8f8c | [
"MIT"
] | null | null | null | import urllib.request,json
from .models import News
import requests
News = News
# Getting api key
api_key = None
# Getting the news base url
base_url = None
base_url2 = None
def configure_request(app):
global api_key,base_url,base_url2
api_key = app.config['NEWS_API_KEY']
base_url = app.config['NEWS_API... | 26.5 | 109 | 0.688286 | 347 | 2,544 | 4.729107 | 0.221902 | 0.113955 | 0.063985 | 0.056063 | 0.291286 | 0.291286 | 0.248629 | 0.248629 | 0.248629 | 0.248629 | 0 | 0.002033 | 0.226415 | 2,544 | 96 | 110 | 26.5 | 0.831809 | 0.139937 | 0 | 0.211538 | 0 | 0 | 0.091509 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096154 | false | 0 | 0.057692 | 0 | 0.230769 | 0.038462 | 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 |
dba12a8374326bf93ca2bf2928409a83d003c3d7 | 861 | py | Python | leetcode/151_reverse _words_in_a_string.py | caoxudong/code_practice | cb960cf69d67ae57b35f0691d35e15c11989e6d2 | [
"MIT"
] | 1 | 2020-06-19T11:23:46.000Z | 2020-06-19T11:23:46.000Z | leetcode/151_reverse _words_in_a_string.py | caoxudong/code_practice | cb960cf69d67ae57b35f0691d35e15c11989e6d2 | [
"MIT"
] | null | null | null | leetcode/151_reverse _words_in_a_string.py | caoxudong/code_practice | cb960cf69d67ae57b35f0691d35e15c11989e6d2 | [
"MIT"
] | null | null | null | """
Given an input string, reverse the string word by word.
For example,
Given s = "the sky is blue",
return "blue is sky the".
For C programmers: Try to solve it in-place in O(1) space.
Clarification:
* What constitutes a word?
A sequence of non-space characters constitutes a word.
* Could the inp... | 28.7 | 86 | 0.680604 | 127 | 861 | 4.614173 | 0.551181 | 0.035836 | 0.054608 | 0.081911 | 0.102389 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003008 | 0.227642 | 861 | 30 | 87 | 28.7 | 0.878195 | 0.735192 | 0 | 0 | 0 | 0 | 0.010582 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.5 | 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 |
dba13fb4439b8ad0fa549819c5076a87665d49e6 | 3,540 | py | Python | Day10/loops.py | azeemchaudhrry/30DaysofPython | 8aa80c81967d87e4bc70254a41517d0303ca0599 | [
"MIT"
] | null | null | null | Day10/loops.py | azeemchaudhrry/30DaysofPython | 8aa80c81967d87e4bc70254a41517d0303ca0599 | [
"MIT"
] | null | null | null | Day10/loops.py | azeemchaudhrry/30DaysofPython | 8aa80c81967d87e4bc70254a41517d0303ca0599 | [
"MIT"
] | null | null | null | # Day 10 Loops
from countries import *
# While Loop
# count = 0
# while count < 5:
# if count == 3:
# break
# print(count)
# count = count + 1
# numbers = [0,2,3,4,5,6,7,8,9,10]
# for number in numbers:
# print(number)
# language = 'Python'
# for letter in language:
# print(letter)
# tp... | 22.547771 | 150 | 0.530508 | 500 | 3,540 | 3.724 | 0.284 | 0.035446 | 0.038668 | 0.041353 | 0.298604 | 0.228249 | 0.228249 | 0.228249 | 0.20623 | 0.135338 | 0 | 0.046375 | 0.232486 | 3,540 | 157 | 151 | 22.547771 | 0.63894 | 0.633898 | 0 | 0.2 | 0 | 0 | 0.14616 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.025 | 0 | 0.025 | 0.275 | 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 |
dba3388df291e70cf8ca9ead3a8d7661985dbeac | 10,412 | py | Python | tessera-server/tessera/views_api.py | Dimas625/tessera | 8e554f217220228fb8a0662fb5075cb839e9f1b1 | [
"Apache-2.0"
] | 379 | 2015-01-02T19:12:10.000Z | 2016-12-05T05:41:47.000Z | tessera-server/tessera/views_api.py | Dimas625/tessera | 8e554f217220228fb8a0662fb5075cb839e9f1b1 | [
"Apache-2.0"
] | 129 | 2015-01-07T04:21:05.000Z | 2016-07-24T18:37:43.000Z | tessera-server/tessera/views_api.py | Dimas625/tessera | 8e554f217220228fb8a0662fb5075cb839e9f1b1 | [
"Apache-2.0"
] | 44 | 2015-01-05T13:48:40.000Z | 2016-11-23T07:11:41.000Z | # -*- mode:python -*-
import flask
import json
import logging
from datetime import datetime
import inflection
from functools import wraps
from flask import request, url_for
from werkzeug.exceptions import HTTPException
from .client.api.model import *
from . import database
from . import helpers
from .application imp... | 34.25 | 104 | 0.634364 | 1,171 | 10,412 | 5.473954 | 0.186166 | 0.071763 | 0.025741 | 0.034321 | 0.350078 | 0.237442 | 0.200312 | 0.164899 | 0.086895 | 0.045398 | 0 | 0.00469 | 0.201402 | 10,412 | 303 | 105 | 34.363036 | 0.766206 | 0.226373 | 0 | 0.145833 | 0 | 0 | 0.100114 | 0.03316 | 0 | 0 | 0 | 0.0033 | 0 | 1 | 0.119792 | false | 0 | 0.078125 | 0.005208 | 0.333333 | 0.005208 | 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 |
dba3bf31e30dbc6e19d1f005b15ec72aaafc1178 | 4,175 | py | Python | modules/aws_service.py | Darkcybe/attack_range | b135251cc40e527e78e6e826759e421fb3834577 | [
"Apache-2.0"
] | 1 | 2020-08-26T18:14:17.000Z | 2020-08-26T18:14:17.000Z | modules/aws_service.py | Darkcybe/attack_range | b135251cc40e527e78e6e826759e421fb3834577 | [
"Apache-2.0"
] | null | null | null | modules/aws_service.py | Darkcybe/attack_range | b135251cc40e527e78e6e826759e421fb3834577 | [
"Apache-2.0"
] | null | null | null | import sys
import re
import boto3
from botocore.exceptions import ClientError
import uuid
import time
import yaml
import os
def get_instance_by_name(ec2_name, config):
instances = get_all_instances(config)
for instance in instances:
str = instance['Tags'][0]['Value']
if str == ec2_name:
... | 36.946903 | 159 | 0.640958 | 498 | 4,175 | 5.144578 | 0.208835 | 0.021858 | 0.025371 | 0.035129 | 0.546058 | 0.460968 | 0.459407 | 0.382904 | 0.282982 | 0.248634 | 0 | 0.015858 | 0.229701 | 4,175 | 112 | 160 | 37.276786 | 0.780784 | 0.177725 | 0 | 0.265823 | 0 | 0 | 0.162281 | 0.007895 | 0 | 0 | 0 | 0 | 0 | 1 | 0.101266 | false | 0 | 0.101266 | 0 | 0.265823 | 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 |
dba4148e040528b537c6483d7f1281dc550a6268 | 5,685 | py | Python | pystacknet/metrics.py | KevinMichaelSchindler/pystacknet | bb723511787be6a0828d2ec5ef141fa76b80ef84 | [
"MIT"
] | null | null | null | pystacknet/metrics.py | KevinMichaelSchindler/pystacknet | bb723511787be6a0828d2ec5ef141fa76b80ef84 | [
"MIT"
] | null | null | null | pystacknet/metrics.py | KevinMichaelSchindler/pystacknet | bb723511787be6a0828d2ec5ef141fa76b80ef84 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Fri Aug 31 18:33:58 2018
@author: Marios Michailidis
metrics and method to check metrics used within StackNet
"""
from sklearn.metrics import mean_squared_error, mean_absolute_error, r2_score , mean_squared_log_error #regression metrics
from sklearn.metrics import roc_auc_sco... | 36.210191 | 140 | 0.628672 | 786 | 5,685 | 4.301527 | 0.150127 | 0.166815 | 0.049689 | 0.0769 | 0.664596 | 0.65454 | 0.638864 | 0.631174 | 0.554274 | 0.529429 | 0 | 0.016529 | 0.255057 | 5,685 | 157 | 141 | 36.210191 | 0.781818 | 0.045207 | 0 | 0.407767 | 0 | 0 | 0.092986 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.126214 | false | 0 | 0.029126 | 0.087379 | 0.398058 | 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 |
dba7508f72db5159de10c2533d780968df627768 | 5,629 | py | Python | check_logstash_pipeline.py | stdevel/nagios-plugins | 5ea0e186fa6fdd0e70681c7fed02c6d46d50bbb5 | [
"IBM-pibs",
"Apache-1.1"
] | null | null | null | check_logstash_pipeline.py | stdevel/nagios-plugins | 5ea0e186fa6fdd0e70681c7fed02c6d46d50bbb5 | [
"IBM-pibs",
"Apache-1.1"
] | null | null | null | check_logstash_pipeline.py | stdevel/nagios-plugins | 5ea0e186fa6fdd0e70681c7fed02c6d46d50bbb5 | [
"IBM-pibs",
"Apache-1.1"
] | null | null | null | #!/usr/bin/env python
# coding=utf-8
# vim:ts=4:sts=4:sw=4:et
#
# Author: Hari Sekhon
# Date: 2017-11-24 21:10:35 +0100 (Fri, 24 Nov 2017)
#
# https://github.com/harisekhon/nagios-plugins
#
# License: see accompanying Hari Sekhon LICENSE file
#
# If you're using my code you're welcome to connect with me on Linke... | 39.921986 | 119 | 0.637413 | 728 | 5,629 | 4.767857 | 0.325549 | 0.02881 | 0.043215 | 0.057044 | 0.086142 | 0.031691 | 0.019591 | 0.019591 | 0 | 0 | 0 | 0.019034 | 0.253331 | 5,629 | 140 | 120 | 40.207143 | 0.806805 | 0.239119 | 0 | 0.068966 | 0 | 0 | 0.240819 | 0.030367 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045977 | false | 0 | 0.126437 | 0 | 0.183908 | 0.045977 | 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 |