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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a589c6b3eb4ec5d873771fa66f4c0ad84d41b531 | 1,035 | py | Python | uniform_meta.py | isVoid/pairs_organizer | ef4877f3bf8083f769b0699ea7d5fcbeaca09219 | [
"Apache-2.0"
] | null | null | null | uniform_meta.py | isVoid/pairs_organizer | ef4877f3bf8083f769b0699ea7d5fcbeaca09219 | [
"Apache-2.0"
] | null | null | null | uniform_meta.py | isVoid/pairs_organizer | ef4877f3bf8083f769b0699ea7d5fcbeaca09219 | [
"Apache-2.0"
] | null | null | null | import os
import shutil
try:
input = raw_input
except NameError:
pass
def uniform_meta(f):
xmp_path = ""
f_list = []
for root, dirs, files in os.walk(f):
for f in files:
if f.split(".")[-1].upper() == "ARW":
f_list.append(os.path.join(root, f))
if f... | 26.538462 | 83 | 0.497585 | 137 | 1,035 | 3.664234 | 0.423358 | 0.083665 | 0.047809 | 0.035857 | 0.115538 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003044 | 0.365217 | 1,035 | 38 | 84 | 27.236842 | 0.761035 | 0.029952 | 0 | 0.129032 | 0 | 0 | 0.150849 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0.064516 | 0.064516 | 0 | 0.096774 | 0.032258 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a58cff4a64f80d3517b45afc56e3db63f035fd90 | 8,892 | py | Python | source/core/machine/model.py | pedroaraujocaldeira/reconhecimento-image | 2e45237abd1a44907af6aec3666a37f741fd0e82 | [
"MIT"
] | null | null | null | source/core/machine/model.py | pedroaraujocaldeira/reconhecimento-image | 2e45237abd1a44907af6aec3666a37f741fd0e82 | [
"MIT"
] | 13 | 2020-06-01T04:33:22.000Z | 2022-03-12T00:32:38.000Z | source/core/machine/model.py | pedroaraujocaldeira/reconhecimento-image | 2e45237abd1a44907af6aec3666a37f741fd0e82 | [
"MIT"
] | null | null | null | import numpy as np
import matplotlib.pyplot as plt
import os
import cv2
from tensorflow.python.keras.callbacks import TensorBoard
from tqdm import tqdm
import tensorflow as tf
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Dense, Dropout, Activation, Flatten
from tensorflow.keras.lay... | 30.452055 | 117 | 0.543297 | 1,041 | 8,892 | 4.522574 | 0.198847 | 0.073067 | 0.057349 | 0.051402 | 0.625106 | 0.585174 | 0.569456 | 0.55034 | 0.543755 | 0.543755 | 0 | 0.02731 | 0.312303 | 8,892 | 291 | 118 | 30.556701 | 0.7426 | 0.768331 | 0 | 0 | 0 | 0 | 0.102254 | 0.030236 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.313725 | 0 | 0.431373 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
a5924b0c36b5ba633e7767ea924c60f86d736aeb | 12,165 | py | Python | src/parser.py | gavinbarrett/SL_Engine | 65842b5b51d59d2ae52e87f0954a0801c419ac1e | [
"MIT"
] | null | null | null | src/parser.py | gavinbarrett/SL_Engine | 65842b5b51d59d2ae52e87f0954a0801c419ac1e | [
"MIT"
] | 1 | 2020-08-31T17:51:59.000Z | 2020-08-31T17:51:59.000Z | src/parser.py | gavinbarrett/SL_Engine | 65842b5b51d59d2ae52e87f0954a0801c419ac1e | [
"MIT"
] | null | null | null | import string
import src.ast as ast
from src.newLexer import *
from src.gen import generate
from collections import defaultdict
class Parser:
''' Constructs a parser that builds ASTs from logical expressions '''
def __init__(self):
''' Create parser with expression lexer and tree stack '''
sel... | 36.205357 | 109 | 0.569914 | 1,553 | 12,165 | 4.36188 | 0.173857 | 0.050192 | 0.024948 | 0.017567 | 0.26085 | 0.178034 | 0.144966 | 0.112194 | 0.095955 | 0.064954 | 0 | 0.004218 | 0.337361 | 12,165 | 335 | 110 | 36.313433 | 0.836125 | 0.265845 | 0 | 0.269767 | 1 | 0 | 0.005166 | 0 | 0 | 0 | 0 | 0.002985 | 0 | 1 | 0.125581 | false | 0 | 0.023256 | 0 | 0.274419 | 0.013953 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a59ad2db6bff337374ffd1fa726362fb459d154b | 1,126 | py | Python | yt/utilities/answer_testing/api.py | danielgrassinger/yt_new_frontend | 5f91d2fb8721c4c5da0af543a6256ed979cd9fc9 | [
"BSD-3-Clause-Clear"
] | null | null | null | yt/utilities/answer_testing/api.py | danielgrassinger/yt_new_frontend | 5f91d2fb8721c4c5da0af543a6256ed979cd9fc9 | [
"BSD-3-Clause-Clear"
] | 1 | 2016-04-05T22:30:14.000Z | 2016-04-05T22:30:14.000Z | yt/utilities/answer_testing/api.py | danielgrassinger/yt_new_frontend | 5f91d2fb8721c4c5da0af543a6256ed979cd9fc9 | [
"BSD-3-Clause-Clear"
] | 1 | 2020-12-05T05:51:09.000Z | 2020-12-05T05:51:09.000Z | """
API for enzo_test
"""
#-----------------------------------------------------------------------------
# Copyright (c) 2013, yt Development Team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
#-------------------------... | 22.52 | 78 | 0.639432 | 84 | 1,126 | 8.464286 | 0.72619 | 0.061885 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004283 | 0.170515 | 1,126 | 49 | 79 | 22.979592 | 0.756959 | 0.308171 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.285714 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a59f3c8ff49336c6ecc09f22956fcb19e8965900 | 13,653 | py | Python | qubovert/utils/_pubomatrix.py | panaali/qubovert | d5ea46349d2a058954fb2cb06f559c0d3fb382c5 | [
"Apache-2.0"
] | 15 | 2020-07-10T20:46:50.000Z | 2021-12-29T05:01:55.000Z | qubovert/utils/_pubomatrix.py | panaali/qubovert | d5ea46349d2a058954fb2cb06f559c0d3fb382c5 | [
"Apache-2.0"
] | 13 | 2020-06-12T22:37:59.000Z | 2022-02-22T20:11:13.000Z | qubovert/utils/_pubomatrix.py | panaali/qubovert | d5ea46349d2a058954fb2cb06f559c0d3fb382c5 | [
"Apache-2.0"
] | 4 | 2020-05-13T06:02:38.000Z | 2022-03-22T20:45:23.000Z | # Copyright 2020 Joseph T. Iosue
#
# 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... | 28.743158 | 79 | 0.545228 | 1,756 | 13,653 | 4.144077 | 0.197039 | 0.012643 | 0.006596 | 0.005497 | 0.288718 | 0.23485 | 0.18263 | 0.151848 | 0.12725 | 0.106637 | 0 | 0.025779 | 0.320955 | 13,653 | 474 | 80 | 28.803797 | 0.759141 | 0.684611 | 0 | 0.109375 | 0 | 0 | 0.033348 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.234375 | false | 0 | 0.015625 | 0 | 0.421875 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a5a0f41f51ac0af9afff6d792796f2c77b4bc105 | 2,147 | py | Python | src/napari_threedee/lighting/lighting_control.py | alisterburt/napari-threedee | 51bb57b5ac438d80014075a9dbb7836966dbcea6 | [
"BSD-3-Clause"
] | 5 | 2021-11-12T15:30:43.000Z | 2022-02-11T15:47:48.000Z | src/napari_threedee/lighting/lighting_control.py | alisterburt/napari-threedee | 51bb57b5ac438d80014075a9dbb7836966dbcea6 | [
"BSD-3-Clause"
] | 24 | 2021-11-12T14:21:38.000Z | 2022-03-30T11:16:46.000Z | src/napari_threedee/lighting/lighting_control.py | alisterburt/napari-threedee | 51bb57b5ac438d80014075a9dbb7836966dbcea6 | [
"BSD-3-Clause"
] | null | null | null | from typing import List
import numpy as np
import napari
from ..base import ThreeDeeModel
from ..utils.napari_utils import add_mouse_callback_safe, get_napari_visual, remove_mouse_callback_safe
class LightingControl(ThreeDeeModel):
def __init__(self, viewer: napari.Viewer):
self._viewer = viewer
... | 33.546875 | 103 | 0.69632 | 261 | 2,147 | 5.37931 | 0.272031 | 0.08547 | 0.076923 | 0.068376 | 0.220798 | 0.169516 | 0.169516 | 0 | 0 | 0 | 0 | 0.000598 | 0.220773 | 2,147 | 63 | 104 | 34.079365 | 0.838613 | 0.019096 | 0 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208333 | false | 0 | 0.104167 | 0.041667 | 0.395833 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a5a49d1e63d9c967073c4c54cd37a3f27e6580aa | 720 | py | Python | tools/isolate/tests/run_test_from_archive/repeated_files.py | quisquous/chromium | b25660e05cddc9d0c3053b3514f07037acc69a10 | [
"BSD-3-Clause"
] | 2 | 2020-06-10T07:15:26.000Z | 2020-12-13T19:44:12.000Z | tools/isolate/tests/run_test_from_archive/repeated_files.py | quisquous/chromium | b25660e05cddc9d0c3053b3514f07037acc69a10 | [
"BSD-3-Clause"
] | null | null | null | tools/isolate/tests/run_test_from_archive/repeated_files.py | quisquous/chromium | b25660e05cddc9d0c3053b3514f07037acc69a10 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Checks all the expected files are mapped."""
import os
import sys
ROOT_DIR = os.path.dirname(os.path.abspath(__file__))
def ... | 21.818182 | 72 | 0.665278 | 104 | 720 | 4.451923 | 0.653846 | 0.051836 | 0.090713 | 0.077754 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013817 | 0.195833 | 720 | 32 | 73 | 22.5 | 0.785838 | 0.25 | 0 | 0 | 0 | 0 | 0.161554 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.105263 | null | null | 0.210526 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a5a6db90313f35866398ba4b2b3914f6012aa109 | 1,746 | py | Python | scrape.py | Brownymister/BER-Bot | c1a1cd887df30afeed59aeabc5e8bf6e39f5d5c9 | [
"MIT"
] | null | null | null | scrape.py | Brownymister/BER-Bot | c1a1cd887df30afeed59aeabc5e8bf6e39f5d5c9 | [
"MIT"
] | null | null | null | scrape.py | Brownymister/BER-Bot | c1a1cd887df30afeed59aeabc5e8bf6e39f5d5c9 | [
"MIT"
] | null | null | null | import requests
import json
from auth import (
user,
password
)
class Scrape:
def __init__(self) -> None:
self.url = 'https://'+user+':'+password + \
'@opensky-network.org/api/states/all?lamin=52.311624&lomin=13.426828&lamax=52.416285&lomax=13.636693'
self.all_flights = []
... | 34.92 | 178 | 0.537228 | 209 | 1,746 | 4.315789 | 0.411483 | 0.072062 | 0.062084 | 0.066519 | 0.105322 | 0.105322 | 0 | 0 | 0 | 0 | 0 | 0.043147 | 0.323024 | 1,746 | 50 | 179 | 34.92 | 0.719966 | 0 | 0 | 0.116279 | 0 | 0.023256 | 0.150544 | 0.056669 | 0 | 0 | 0 | 0 | 0 | 1 | 0.116279 | false | 0.069767 | 0.069767 | 0.023256 | 0.255814 | 0.023256 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a5ae3b0a1fa4786dbad1cf906ff79128c9912d14 | 2,722 | py | Python | _vk.py | alnsokolov/soc_recon | bb876d05d7b466c2cb7eef6b2f1f6280aeee8054 | [
"MIT"
] | null | null | null | _vk.py | alnsokolov/soc_recon | bb876d05d7b466c2cb7eef6b2f1f6280aeee8054 | [
"MIT"
] | null | null | null | _vk.py | alnsokolov/soc_recon | bb876d05d7b466c2cb7eef6b2f1f6280aeee8054 | [
"MIT"
] | null | null | null | import vk_api
import os
import cache
def auth(check_saved=1):
def tfa_handler():
code = input("[!] 2FA detected! Please enter code you've just received: ")
return code, 0
def inner_auth(i_login=None, i_password=None, tfa=tfa_handler):
session = vk_api.VkApi(login=i_login,
... | 32.404762 | 113 | 0.563924 | 350 | 2,722 | 4.294286 | 0.362857 | 0.015968 | 0.01996 | 0.02994 | 0.11976 | 0.057219 | 0.057219 | 0.057219 | 0 | 0 | 0 | 0.007924 | 0.304555 | 2,722 | 83 | 114 | 32.795181 | 0.786054 | 0.027553 | 0 | 0.134328 | 0 | 0.014925 | 0.193646 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.104478 | false | 0.104478 | 0.044776 | 0 | 0.313433 | 0.089552 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a5bfce2b42652e9ea379b8e51c14b7d35ac42ed0 | 353 | py | Python | arithmetic_03/test/test_sexy_pairs.py | njoroge33/py_learn | 6ad55f37789045bc5c03f3dd668cf1ea497f4e84 | [
"MIT"
] | null | null | null | arithmetic_03/test/test_sexy_pairs.py | njoroge33/py_learn | 6ad55f37789045bc5c03f3dd668cf1ea497f4e84 | [
"MIT"
] | 2 | 2019-04-15T06:29:55.000Z | 2019-04-19T17:34:32.000Z | arithmetic_03/test/test_sexy_pairs.py | njoroge33/py_learn | 6ad55f37789045bc5c03f3dd668cf1ea497f4e84 | [
"MIT"
] | 1 | 2019-11-19T04:51:18.000Z | 2019-11-19T04:51:18.000Z | import pytest
from ..sexy_pairs import get_sexy_pairs
@pytest.mark.parametrize('limit, expected', [
(12, [(5, 11)]),
(20, [(5, 11), (7, 13), (11, 17), (13, 19)]),
(32, [(5, 11), (7, 13), (11, 17), (13, 19), (17, 23), (23, 29)])
])
def test_get_sexy_pairs(limit, expected):
actual = get_sexy_pairs(limi... | 25.214286 | 68 | 0.580737 | 54 | 353 | 3.648148 | 0.462963 | 0.182741 | 0.182741 | 0.060914 | 0.142132 | 0.142132 | 0.142132 | 0.142132 | 0 | 0 | 0 | 0.157895 | 0.192635 | 353 | 13 | 69 | 27.153846 | 0.533333 | 0 | 0 | 0 | 0 | 0 | 0.042493 | 0 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3c06c2a1ef1d1e1faf3277a4b374e1134480398e | 654 | py | Python | biblehub/styling.py | joshpetit/biblehub | 9501ff341da465c787a1321334f738ca8533d778 | [
"MIT"
] | 4 | 2021-02-06T14:27:32.000Z | 2022-03-16T13:09:19.000Z | biblehub/styling.py | joshpetit/BibleHubScrapper | 9501ff341da465c787a1321334f738ca8533d778 | [
"MIT"
] | 8 | 2020-08-31T17:54:40.000Z | 2020-09-04T12:43:15.000Z | biblehub/styling.py | joshpetit/BibleHubScrapper | 9501ff341da465c787a1321334f738ca8533d778 | [
"MIT"
] | 1 | 2022-02-18T18:05:39.000Z | 2022-02-18T18:05:39.000Z | class COLORS:
header = "\033[4m"
red = "\033[31m"
green = "\033[32m"
blue = "\033[34m"
normal = "\033[0m"
def format_verse(reference, text) -> str:
return "{blue}{reference}{normal} \n{verse}\n".format(
blue=COLORS.blue, reference=reference,
normal=COLORS.normal, verse=text
... | 28.434783 | 101 | 0.611621 | 79 | 654 | 5.025316 | 0.265823 | 0.130982 | 0.13602 | 0.110831 | 0.423174 | 0.282116 | 0.282116 | 0.282116 | 0.282116 | 0 | 0 | 0.045635 | 0.229358 | 654 | 22 | 102 | 29.727273 | 0.742063 | 0 | 0 | 0 | 0 | 0 | 0.192661 | 0.116208 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0 | 0.1875 | 0.75 | 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 | 1 | 0 | 0 | 0 | 1 |
3c0b158a1f3c1265d2c2381b3dcca8dffb41677c | 2,380 | py | Python | lib/yatzy/dice.py | joelbm24/Yatzy | 8b2066a22284f010084ca3ca73a97632238b3f3e | [
"MIT"
] | 2 | 2020-12-03T00:50:30.000Z | 2021-02-08T20:52:31.000Z | lib/yatzy/dice.py | joelbm24/Yatzy | 8b2066a22284f010084ca3ca73a97632238b3f3e | [
"MIT"
] | null | null | null | lib/yatzy/dice.py | joelbm24/Yatzy | 8b2066a22284f010084ca3ca73a97632238b3f3e | [
"MIT"
] | null | null | null | from lib.yatzy.die import Die
class Dice():
def __init__(self):
self.dice = [Die() for i in range(5)]
self.has_rolled = False
self.roll_amount = 0
def roll(self):
dice = [die for die in self.dice if die.kept == False]
self.has_rolled = True
self.roll_amount += 1... | 28.674699 | 88 | 0.581513 | 300 | 2,380 | 4.503333 | 0.22 | 0.059215 | 0.029608 | 0.035529 | 0.30718 | 0.260548 | 0.222058 | 0.19097 | 0.093264 | 0.093264 | 0 | 0.038841 | 0.318487 | 2,380 | 82 | 89 | 29.02439 | 0.794081 | 0 | 0 | 0.15873 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.206349 | false | 0 | 0.015873 | 0.063492 | 0.396825 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3c1f559b689646f1d42fbe88f537a50b6dd8326a | 936 | py | Python | server/app/test/test_post_err.py | OHMORIYUSUKE/d-anime-mylist-backend | 0f8bea380f6d2c50e91878557c5f9b7d2ac3ca62 | [
"MIT"
] | 1 | 2022-03-23T12:19:29.000Z | 2022-03-23T12:19:29.000Z | server/app/test/test_post_err.py | OHMORIYUSUKE/d-anime-mylist-backend | 0f8bea380f6d2c50e91878557c5f9b7d2ac3ca62 | [
"MIT"
] | null | null | null | server/app/test/test_post_err.py | OHMORIYUSUKE/d-anime-mylist-backend | 0f8bea380f6d2c50e91878557c5f9b7d2ac3ca62 | [
"MIT"
] | null | null | null | from fastapi.testclient import TestClient
from sqlalchemy import create_engine
from .config import client, DANIME_MYLISTPAGE_BASE_URL, invalid_id_page, invalid_id_db, invalid_url, id
"""
例外テスト
"""
# POST
# id が不正(mylistが存在しない)
def test_post_invalid_url_1():
response = client.post("/my-list", json={... | 31.2 | 116 | 0.707265 | 128 | 936 | 4.914063 | 0.375 | 0.079491 | 0.09539 | 0.109698 | 0.445151 | 0.259141 | 0.259141 | 0.209857 | 0.209857 | 0.209857 | 0 | 0.015248 | 0.159188 | 936 | 29 | 117 | 32.275862 | 0.78399 | 0.057692 | 0 | 0.142857 | 0 | 0 | 0.246707 | 0.123353 | 0 | 0 | 0 | 0 | 0.357143 | 1 | 0.214286 | false | 0 | 0.214286 | 0 | 0.428571 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3c23af82f42137a1f4d26d1d82a51be012e452af | 1,118 | py | Python | exporter/operators/delete_export_collection.py | drewcassidy/blender-tools | ce07bf1d087c36f64c786842835e0499d672c02a | [
"Apache-2.0",
"MIT"
] | 311 | 2019-12-06T14:40:21.000Z | 2022-03-31T20:57:56.000Z | exporter/operators/delete_export_collection.py | drewcassidy/blender-tools | ce07bf1d087c36f64c786842835e0499d672c02a | [
"Apache-2.0",
"MIT"
] | 9 | 2019-12-07T19:58:31.000Z | 2021-01-27T07:51:46.000Z | exporter/operators/delete_export_collection.py | drewcassidy/blender-tools | ce07bf1d087c36f64c786842835e0499d672c02a | [
"Apache-2.0",
"MIT"
] | 18 | 2019-12-06T15:59:41.000Z | 2022-02-28T21:44:57.000Z | """Operator to delete an Export Collection by name."""
from bpy.props import StringProperty
from bpy.types import Operator
from ..functions import get_export_collection_by_name
class EmbarkDeleteExportCollection(Operator): # pylint: disable=too-few-public-methods
"""Deletes the named Export Collection, but lea... | 37.266667 | 105 | 0.713775 | 133 | 1,118 | 5.857143 | 0.458647 | 0.184852 | 0.06932 | 0.084724 | 0.207959 | 0.143774 | 0.143774 | 0.143774 | 0.143774 | 0.143774 | 0 | 0 | 0.186047 | 1,118 | 29 | 106 | 38.551724 | 0.856044 | 0.18068 | 0 | 0 | 0 | 0 | 0.332222 | 0.095556 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.176471 | 0 | 0.705882 | 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 | 1 | 0 | 0 | 1 |
3c2bd18dba0965d7ac3d42ed9e4db4610e60df41 | 8,307 | py | Python | test/test_types.py | yilei/cerealizer | dbeece918c287888abb9cd97b716e589f2f1caf3 | [
"CNRI-Python"
] | null | null | null | test/test_types.py | yilei/cerealizer | dbeece918c287888abb9cd97b716e589f2f1caf3 | [
"CNRI-Python"
] | 1 | 2021-11-30T20:08:32.000Z | 2021-11-30T20:08:32.000Z | test/test_types.py | yilei/cerealizer | dbeece918c287888abb9cd97b716e589f2f1caf3 | [
"CNRI-Python"
] | 1 | 2021-11-29T19:44:47.000Z | 2021-11-29T19:44:47.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Cerealizer
# Copyright (C) 2005-2006 Jean-Baptiste LAMY
#
# This program is free software.
# It is available under the Python licence.
import imp
import unittest
import cerealizer
class TestBasicType(unittest.TestCase):
def setUp(self):
self.obj = [1, 2,... | 35.348936 | 105 | 0.580113 | 1,064 | 8,307 | 4.135338 | 0.145677 | 0.058864 | 0.0975 | 0.15 | 0.539545 | 0.500455 | 0.431364 | 0.351591 | 0.279773 | 0.271818 | 0 | 0.028315 | 0.302757 | 8,307 | 234 | 106 | 35.5 | 0.731354 | 0.035512 | 0 | 0.271277 | 0 | 0 | 0.01862 | 0 | 0 | 0 | 0 | 0 | 0.06383 | 1 | 0.37234 | false | 0.010638 | 0.015957 | 0.074468 | 0.484043 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3c37fba271ea2364b75565ce6bd445fd1237a60a | 1,091 | py | Python | pixelpuncher/player/migrations/0020_auto_20160604_1602.py | ej2/pixelpuncher | 8dd31090252c00772932c78ea21438d1e979f722 | [
"BSD-3-Clause"
] | null | null | null | pixelpuncher/player/migrations/0020_auto_20160604_1602.py | ej2/pixelpuncher | 8dd31090252c00772932c78ea21438d1e979f722 | [
"BSD-3-Clause"
] | null | null | null | pixelpuncher/player/migrations/0020_auto_20160604_1602.py | ej2/pixelpuncher | 8dd31090252c00772932c78ea21438d1e979f722 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2016-06-04 16:02
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('player', '0019_avatarlayer_playeravatar'),
]
operatio... | 34.09375 | 178 | 0.627864 | 119 | 1,091 | 5.621849 | 0.495798 | 0.047833 | 0.06278 | 0.098655 | 0.340807 | 0.340807 | 0.206278 | 0.206278 | 0.206278 | 0.206278 | 0 | 0.023753 | 0.228231 | 1,091 | 31 | 179 | 35.193548 | 0.770784 | 0.059578 | 0 | 0.333333 | 1 | 0 | 0.185728 | 0.028348 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3c384582ec756a52eba358b83a70dd91c123a423 | 7,270 | py | Python | pytexcount/tests.py | pierre-24/pytexcount | adf9b44a1bd409fdde4a711cb63ea4ba0cce3651 | [
"MIT"
] | null | null | null | pytexcount/tests.py | pierre-24/pytexcount | adf9b44a1bd409fdde4a711cb63ea4ba0cce3651 | [
"MIT"
] | null | null | null | pytexcount/tests.py | pierre-24/pytexcount | adf9b44a1bd409fdde4a711cb63ea4ba0cce3651 | [
"MIT"
] | null | null | null | import unittest
import pytexcount.parser as P
from pytexcount.count import WordCounter
class LexerTestCase(unittest.TestCase):
def test_lexer_base(self):
expected = [
P.Token(P.TokenType.CHAR, 'a'),
P.Token(P.TokenType.SPACE, ' '),
P.Token(P.TokenType.BACKSLASH, '\\')... | 36.169154 | 98 | 0.62077 | 921 | 7,270 | 4.833876 | 0.119435 | 0.178571 | 0.085355 | 0.122192 | 0.541554 | 0.46743 | 0.359838 | 0.344115 | 0.311321 | 0.290656 | 0 | 0.014052 | 0.216919 | 7,270 | 200 | 99 | 36.35 | 0.767961 | 0.006465 | 0 | 0.218543 | 0 | 0.006623 | 0.066176 | 0.012486 | 0 | 0 | 0 | 0 | 0.496689 | 1 | 0.139073 | false | 0 | 0.019868 | 0.013245 | 0.198676 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3c39a59dbb99dcdd78b6b150f8371d3c1ac6513d | 1,305 | py | Python | db_models.py | fablab-ka/strichliste | fc8de1e09a99d0b1f29742479a9d6a4395b2f86f | [
"MIT"
] | null | null | null | db_models.py | fablab-ka/strichliste | fc8de1e09a99d0b1f29742479a9d6a4395b2f86f | [
"MIT"
] | 3 | 2018-11-21T23:57:10.000Z | 2019-01-24T15:21:06.000Z | db_models.py | fablab-ka/strichliste | fc8de1e09a99d0b1f29742479a9d6a4395b2f86f | [
"MIT"
] | null | null | null | from peewee import *
database = SqliteDatabase('datenbank.db')
class UnknownField(object):
def __init__(self, *_, **__): pass
class BaseModel(Model):
class Meta:
database = database
class Customer(BaseModel):
id = AutoField()
email = TextField(null=True, unique=True)
name = TextField(uni... | 24.166667 | 111 | 0.664368 | 146 | 1,305 | 5.80137 | 0.452055 | 0.056671 | 0.066116 | 0.085006 | 0.063754 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.214559 | 1,305 | 53 | 112 | 24.622642 | 0.826341 | 0 | 0 | 0.131579 | 0 | 0 | 0.069018 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0.026316 | 0.026316 | 0 | 0.789474 | 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 | 1 | 0 | 0 | 1 |
3c3dde0db2a40ee323e2d268d06ba37e2ccaf6ca | 316 | py | Python | qual_id/groups/minimal.py | gabrielbarker/qual-id | 369cb1635c2e986cc9125df62cc3dcdd0573d2e4 | [
"MIT"
] | 9 | 2020-09-29T13:41:30.000Z | 2020-10-11T17:30:12.000Z | qual_id/groups/minimal.py | gabrielbarker/qual-id | 369cb1635c2e986cc9125df62cc3dcdd0573d2e4 | [
"MIT"
] | 70 | 2020-09-29T02:05:19.000Z | 2020-10-23T18:41:34.000Z | qual_id/groups/minimal.py | gabrielbarker/qual-id | 369cb1635c2e986cc9125df62cc3dcdd0573d2e4 | [
"MIT"
] | 36 | 2020-09-29T04:03:09.000Z | 2020-10-23T18:01:16.000Z | from ..categories import *
from .group import Group
class Minimal(Group):
_name = "minimal"
_categories = [
Adjective,
Animal,
Bird,
Cake,
Color,
Food,
Fruit,
Geography,
Instrument,
Planet,
Tea,
Vehicle,
]
| 15.047619 | 26 | 0.481013 | 25 | 316 | 6 | 0.76 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.439873 | 316 | 20 | 27 | 15.8 | 0.847458 | 0 | 0 | 0 | 0 | 0 | 0.022152 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 0 | 1 | 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 | 0 | 1 |
3c46787e09bf0c781da5eabe0e1528cf3b360257 | 6,678 | py | Python | bin/config.py | database64128/rclone | b55575e6225f7b297ea7636272705855aae5486f | [
"MIT"
] | 18,121 | 2019-07-28T19:57:56.000Z | 2022-03-31T21:53:48.000Z | bin/config.py | database64128/rclone | b55575e6225f7b297ea7636272705855aae5486f | [
"MIT"
] | 3,298 | 2019-07-28T17:25:45.000Z | 2022-03-31T21:18:53.000Z | bin/config.py | database64128/rclone | b55575e6225f7b297ea7636272705855aae5486f | [
"MIT"
] | 2,024 | 2019-07-28T20:50:40.000Z | 2022-03-31T10:19:12.000Z | #!/usr/bin/env python3
"""
Test program to demonstrate the remote config interfaces in
rclone.
This program can simulate
rclone config create
rclone config update
rclone config password - NOT implemented yet
rclone authorize - NOT implemented yet
Pass the desired action as the first argument th... | 32.735294 | 109 | 0.60003 | 817 | 6,678 | 4.839657 | 0.26683 | 0.033384 | 0.035407 | 0.025291 | 0.194992 | 0.194992 | 0.167172 | 0.139353 | 0.11912 | 0.11912 | 0 | 0.003507 | 0.274034 | 6,678 | 203 | 110 | 32.896552 | 0.812087 | 0.183139 | 0 | 0.116788 | 0 | 0.007299 | 0.225103 | 0.004322 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065693 | false | 0.10219 | 0.036496 | 0 | 0.167883 | 0.145985 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
3c4f4efb0e80e6b861b8fe21392aae2f6e0399b8 | 422 | py | Python | aoj/26/aoj2600.py | knuu/competitive-programming | 16bc68fdaedd6f96ae24310d697585ca8836ab6e | [
"MIT"
] | 1 | 2018-11-12T15:18:55.000Z | 2018-11-12T15:18:55.000Z | aoj/26/aoj2600.py | knuu/competitive-programming | 16bc68fdaedd6f96ae24310d697585ca8836ab6e | [
"MIT"
] | null | null | null | aoj/26/aoj2600.py | knuu/competitive-programming | 16bc68fdaedd6f96ae24310d697585ca8836ab6e | [
"MIT"
] | null | null | null | N, W, H = map(int, input().split())
row, col = [0] * (H + 1), [0] * (W + 1)
for _ in range(N):
x, y, w = map(int, input().split())
row[max(0, y - w)] += 1
row[min(H, y + w)] -= 1
col[max(0, x - w)] += 1
col[min(W, x + w)] -= 1
for i in range(H):
row[i + 1] += row[i]
for i in range(W):
col[i ... | 30.142857 | 86 | 0.454976 | 92 | 422 | 2.076087 | 0.282609 | 0.052356 | 0.115183 | 0.167539 | 0.314136 | 0.115183 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 0.279621 | 422 | 13 | 87 | 32.461538 | 0.575658 | 0 | 0 | 0 | 0 | 0 | 0.011848 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3c5016950b8383ee6972bf862116e679e21d0842 | 436 | py | Python | mir_proj/songs/migrations/0006_song_spotify_id.py | gegiantas/MIR-mobile-app | 06d172184319ee8fdbfc08b4cd7b6553a926c5d6 | [
"MIT"
] | null | null | null | mir_proj/songs/migrations/0006_song_spotify_id.py | gegiantas/MIR-mobile-app | 06d172184319ee8fdbfc08b4cd7b6553a926c5d6 | [
"MIT"
] | null | null | null | mir_proj/songs/migrations/0006_song_spotify_id.py | gegiantas/MIR-mobile-app | 06d172184319ee8fdbfc08b4cd7b6553a926c5d6 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.7 on 2021-03-09 12:17
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('songs', '0005_auto_20210309_1203'),
]
operations = [
migrations.AddField(
model_name='song',
name='spotify_id',
... | 22.947368 | 102 | 0.616972 | 50 | 436 | 5.26 | 0.8 | 0.08365 | 0.098859 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096573 | 0.263761 | 436 | 18 | 103 | 24.222222 | 0.722741 | 0.103211 | 0 | 0 | 1 | 0 | 0.133676 | 0.059126 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3c51eedd8162ca581031e4dbec5d8e0b27f005a7 | 147 | py | Python | Contributions/PowerRecursion.py | sattwik21/Hacktoberfest2021-1 | 74c8edd54f9c967c0f301f74dec31526dffa8222 | [
"MIT"
] | 215 | 2021-10-01T08:18:16.000Z | 2022-03-29T04:12:03.000Z | Contributions/PowerRecursion.py | sattwik21/Hacktoberfest2021-1 | 74c8edd54f9c967c0f301f74dec31526dffa8222 | [
"MIT"
] | 51 | 2021-10-01T08:16:42.000Z | 2021-10-31T13:51:51.000Z | Contributions/PowerRecursion.py | sattwik21/Hacktoberfest2021-1 | 74c8edd54f9c967c0f301f74dec31526dffa8222 | [
"MIT"
] | 807 | 2021-10-01T08:11:45.000Z | 2021-11-21T18:57:09.000Z | # Calculates a^b
def power(a, b):
if b == 0:
return 1
b -= 1
return a*power(a, b)
x = int(input())
y = int(input())
print(power(x, y))
| 12.25 | 22 | 0.537415 | 29 | 147 | 2.724138 | 0.482759 | 0.075949 | 0.177215 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027523 | 0.258503 | 147 | 11 | 23 | 13.363636 | 0.697248 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.375 | 0.125 | 1 | 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 | 0 | 1 |
3c5d46b4e87921466ea72602446edf7e509e0d2e | 1,561 | py | Python | Multiple Linear Regression.py | Hassenamri005/Startups-profit-Application-using-Multiple-Linear-Regression | 7680765831515442af38ad3390301c6bffe49d1e | [
"MIT"
] | 2 | 2021-07-16T15:19:29.000Z | 2021-07-28T21:09:22.000Z | Multiple Linear Regression.py | Hassenamri005/Startups-profit-Application-using-Multiple-Linear-Regression | 7680765831515442af38ad3390301c6bffe49d1e | [
"MIT"
] | null | null | null | Multiple Linear Regression.py | Hassenamri005/Startups-profit-Application-using-Multiple-Linear-Regression | 7680765831515442af38ad3390301c6bffe49d1e | [
"MIT"
] | null | null | null | #import libraries
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from sklearn.model_selection import train_test_split
from sklearn.linear_model import LinearRegression
#importing datasets
dataset = pd.read_csv('50_Startups.csv')
#Extracting Independent and dependent Variable
x = dataset.ilo... | 28.381818 | 97 | 0.756566 | 230 | 1,561 | 5.004348 | 0.413043 | 0.057341 | 0.03649 | 0.04344 | 0.154648 | 0.154648 | 0.078193 | 0.078193 | 0 | 0 | 0 | 0.027407 | 0.13517 | 1,561 | 54 | 98 | 28.907407 | 0.825185 | 0.249199 | 0 | 0.16 | 0 | 0 | 0.090752 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.04 | 0.36 | 0 | 0.36 | 0.16 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
3c5f648545ceaaff9e41da831b90f5e671da400d | 42,247 | py | Python | common_utils.py | khanfarhan10/SmartGoogleForms | 6f9175533d85701a949a2511bf41716647b33ce1 | [
"MIT"
] | 3 | 2021-06-18T15:47:14.000Z | 2021-08-31T09:13:04.000Z | common_utils.py | khanfarhan10/SmartGoogleForms | 6f9175533d85701a949a2511bf41716647b33ce1 | [
"MIT"
] | null | null | null | common_utils.py | khanfarhan10/SmartGoogleForms | 6f9175533d85701a949a2511bf41716647b33ce1 | [
"MIT"
] | null | null | null | !pip install kaggle
import os
def get_size(path = os.getcwd()):
print("Calculating Size: ",path)
total_size = 0
#if path is directory--
if os.path.isdir(path):
print("Path type : Directory/Folder")
for dirpath, dirnames, filenames in os.walk(path):
for f in filenames:
... | 27.996687 | 345 | 0.704855 | 6,204 | 42,247 | 4.665377 | 0.153127 | 0.012231 | 0.010365 | 0.003731 | 0.481481 | 0.442682 | 0.423438 | 0.411761 | 0.397803 | 0.388371 | 0 | 0.017841 | 0.161479 | 42,247 | 1,508 | 346 | 28.015252 | 0.79921 | 0.233792 | 0 | 0.524533 | 0 | 0.008178 | 0.157638 | 0.025984 | 0.001168 | 0 | 0 | 0.001326 | 0 | 0 | null | null | 0 | 0.073598 | null | null | 0.109813 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3c635ef81ab0aebd8722e6964f8a94b2c3790938 | 739 | py | Python | presidio-analyzer/tests/test_uk_nhs.py | kant/presidio | af7d82bde7e978313a11a7281eac961697bbe164 | [
"MIT"
] | null | null | null | presidio-analyzer/tests/test_uk_nhs.py | kant/presidio | af7d82bde7e978313a11a7281eac961697bbe164 | [
"MIT"
] | null | null | null | presidio-analyzer/tests/test_uk_nhs.py | kant/presidio | af7d82bde7e978313a11a7281eac961697bbe164 | [
"MIT"
] | null | null | null | from analyzer import matcher, common_pb2
from tests import *
fieldType = common_pb2.FieldTypes()
fieldType.name = common_pb2.FieldTypesEnum.Name(common_pb2.UK_NHS)
types = [fieldType]
def test_valid_uk_nhs():
num = '401-023-2137'
results = match.analyze_text(num, types)
assert len(results) == 1
asser... | 24.633333 | 66 | 0.68065 | 104 | 739 | 4.692308 | 0.336538 | 0.10041 | 0.155738 | 0.188525 | 0.590164 | 0.532787 | 0.532787 | 0.532787 | 0.532787 | 0.436475 | 0 | 0.086149 | 0.198917 | 739 | 30 | 67 | 24.633333 | 0.738176 | 0 | 0 | 0.454545 | 0 | 0 | 0.062162 | 0 | 0 | 0 | 0 | 0 | 0.318182 | 1 | 0.090909 | false | 0 | 0.090909 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3c643a2052568d0563bcd89573f8efeb961d9ac3 | 1,273 | py | Python | examples/agent_ml5_v2/agent_ml5_v2.py | jensstrabo/CAMD | 79ee9eba20cb4fa68cd67920141b353c3091a60e | [
"Apache-2.0"
] | 33 | 2020-05-12T23:47:29.000Z | 2022-02-04T18:26:28.000Z | examples/agent_ml5_v2/agent_ml5_v2.py | jensstrabo/CAMD | 79ee9eba20cb4fa68cd67920141b353c3091a60e | [
"Apache-2.0"
] | 377 | 2020-06-30T20:51:11.000Z | 2022-03-28T18:01:04.000Z | examples/agent_ml5_v2/agent_ml5_v2.py | jensstrabo/CAMD | 79ee9eba20cb4fa68cd67920141b353c3091a60e | [
"Apache-2.0"
] | 17 | 2020-05-08T22:53:12.000Z | 2022-02-05T19:43:07.000Z | # Copyright Toyota Research Institute 2019
from camd.campaigns.base import Campaign
from sklearn.neural_network import MLPRegressor
from camd.agent.stability import AgentStabilityML5
from camd.analysis import StabilityAnalyzer
from camd.experiment.base import ATFSampler
from camd.utils.data import load_default_atf_dat... | 42.433333 | 103 | 0.632364 | 148 | 1,273 | 5.27027 | 0.587838 | 0.051282 | 0.035897 | 0.046154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025641 | 0.17282 | 1,273 | 29 | 104 | 43.896552 | 0.7151 | 0.204242 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.315789 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
3c6663fc2077543caaae5d0501a32bb1c97b0cef | 375 | py | Python | Basic/Calculate Factorial of A Number/SolutionByEnthusiastDeveloper.py | rajethanm4/Programmers-Community | d16083eb0e84403159d999d4d1a8bbf652ca51f6 | [
"MIT"
] | 261 | 2019-09-30T19:47:29.000Z | 2022-03-29T18:20:07.000Z | Basic/Calculate Factorial of A Number/SolutionByEnthusiastDeveloper.py | rajethanm4/Programmers-Community | d16083eb0e84403159d999d4d1a8bbf652ca51f6 | [
"MIT"
] | 647 | 2019-10-01T16:51:29.000Z | 2021-12-16T20:39:44.000Z | Basic/Calculate Factorial of A Number/SolutionByEnthusiastDeveloper.py | rajethanm4/Programmers-Community | d16083eb0e84403159d999d4d1a8bbf652ca51f6 | [
"MIT"
] | 383 | 2019-09-30T19:32:07.000Z | 2022-03-24T16:18:26.000Z | '''
Program Description: Calculate factorial of a given number
'''
def calculate_factorial(n):
if n == 0:
return 1
if n < 0:
raise ValueError
fact = 1
for x in range(1,n+1):
fact *= x
return fact
print('N = ', end='')
try:
result = calculate_factorial(int(input()))
print('Output =', result)
except Val... | 16.304348 | 59 | 0.669333 | 55 | 375 | 4.527273 | 0.618182 | 0.216867 | 0.032129 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019868 | 0.194667 | 375 | 22 | 60 | 17.045455 | 0.804636 | 0.154667 | 0 | 0 | 0 | 0 | 0.152597 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0 | 0 | 0.2 | 0.2 | 0 | 0 | 0 | null | 1 | 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 | 0 | 1 |
3c6c6b46df2418343823b0b051d4450dd45ea569 | 575 | py | Python | tests/framework/test_settings.py | praus/shapy | 7fa5512d9015b4921870f212495280fbb0675164 | [
"MIT"
] | 54 | 2015-01-14T10:14:11.000Z | 2022-02-25T17:12:10.000Z | tests/framework/test_settings.py | praus/shapy | 7fa5512d9015b4921870f212495280fbb0675164 | [
"MIT"
] | 1 | 2015-12-29T07:37:17.000Z | 2015-12-30T06:17:41.000Z | tests/framework/test_settings.py | praus/shapy | 7fa5512d9015b4921870f212495280fbb0675164 | [
"MIT"
] | 14 | 2015-02-10T15:29:48.000Z | 2021-09-22T03:01:13.000Z | import unittest
import imp
import sys
import shapy
class TestSettings(unittest.TestCase):
def setUp(self):
self.settings = imp.new_module('test_settings')
sys.modules.update(test_settings=self.settings)
setattr(self.settings, 'UNITS', 'override')
setattr(self.settings, 'NEW_OPTION'... | 31.944444 | 70 | 0.697391 | 67 | 575 | 5.850746 | 0.38806 | 0.122449 | 0.096939 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.189565 | 575 | 18 | 70 | 31.944444 | 0.841202 | 0 | 0 | 0 | 0 | 0 | 0.126736 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 1 | 0.133333 | false | 0 | 0.333333 | 0 | 0.533333 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
3c6cab7bb3c153bf750c78f0cc6866432660f3d3 | 659 | py | Python | chapter-5/11. Math_quiz.py | KwabenaYeboah/Solved-python-programming-Challenges-Source-code | f05621286bd921329805f66f429657d7e1b6d0b4 | [
"MIT"
] | null | null | null | chapter-5/11. Math_quiz.py | KwabenaYeboah/Solved-python-programming-Challenges-Source-code | f05621286bd921329805f66f429657d7e1b6d0b4 | [
"MIT"
] | null | null | null | chapter-5/11. Math_quiz.py | KwabenaYeboah/Solved-python-programming-Challenges-Source-code | f05621286bd921329805f66f429657d7e1b6d0b4 | [
"MIT"
] | null | null | null | #This program displays a simple math quiz
import random
def main():
number1 = random.randint(1,350)
number2 = random.randint(1,350)
correct_answer = calculate_correct_answer(number1,number2)
print('\t',number1,'\n+\t',number2)
question = int(input('Enter the answer : '))
check_answer(question,c... | 29.954545 | 63 | 0.714719 | 83 | 659 | 5.506024 | 0.445783 | 0.284464 | 0.137856 | 0.074398 | 0.140044 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032907 | 0.169954 | 659 | 21 | 64 | 31.380952 | 0.802559 | 0.060698 | 0 | 0 | 0 | 0 | 0.135922 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.058824 | 0 | 0.294118 | 0.176471 | 0 | 0 | 0 | null | 1 | 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 | 0 | 1 |
3c6e8665844bfd395475e585498cada54c1fb2c5 | 2,198 | py | Python | make_tsne_figs.py | lightonai/contrastive-embeddings-for-neural-architectures | 8606a4a4d7ea9ed9c01964660e8b2afb1e003480 | [
"MIT"
] | 13 | 2021-02-10T08:04:49.000Z | 2021-11-17T20:45:21.000Z | make_tsne_figs.py | lightonai/contrastive-embeddings-for-neural-architectures | 8606a4a4d7ea9ed9c01964660e8b2afb1e003480 | [
"MIT"
] | 1 | 2021-03-17T01:30:30.000Z | 2021-03-17T15:20:34.000Z | make_tsne_figs.py | lightonai/contrastive-embeddings-for-neural-architectures | 8606a4a4d7ea9ed9c01964660e8b2afb1e003480 | [
"MIT"
] | 1 | 2021-03-16T11:57:07.000Z | 2021-03-16T11:57:07.000Z |
import argparse
parser = argparse.ArgumentParser(description='Generate prediction plot based on subset of samples')
parser.add_argument('path_EPDJMs', type=str)
parser.add_argument('task', choices=['CIFAR10', 'CIFAR100', 'ImageNet16'])
parser.add_argument('search_space', choices=['201', 'nats_ss'])
args = parser.parse... | 36.032787 | 112 | 0.725205 | 322 | 2,198 | 4.726708 | 0.425466 | 0.04205 | 0.033509 | 0.019711 | 0.111695 | 0.111695 | 0.111695 | 0.111695 | 0.073587 | 0 | 0 | 0.026441 | 0.139672 | 2,198 | 61 | 113 | 36.032787 | 0.778424 | 0 | 0 | 0.044444 | 1 | 0 | 0.081438 | 0 | 0 | 0 | 0 | 0 | 0.022222 | 1 | 0.066667 | false | 0 | 0.2 | 0.044444 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3c8ad0c36606a270d69fb5f57572bb23c9e81675 | 3,120 | py | Python | rsHRF/rsHRF_GUI/datatypes/misc/store.py | BIDS-Apps/rsHRF | e1751e77629f9e960f156b1bd6a9842f7c34f719 | [
"MIT"
] | 16 | 2017-09-08T20:02:22.000Z | 2022-03-10T20:56:36.000Z | rsHRF/rsHRF_GUI/datatypes/misc/store.py | BIDS-Apps/rsHRF | e1751e77629f9e960f156b1bd6a9842f7c34f719 | [
"MIT"
] | 10 | 2019-06-06T18:32:40.000Z | 2021-09-13T08:14:15.000Z | rsHRF/rsHRF_GUI/datatypes/misc/store.py | Remi-Gau/rsHRF-1 | a07715b764df69fffbc7f1a43718e958662ade9b | [
"MIT"
] | 8 | 2019-03-26T16:40:04.000Z | 2021-04-11T14:08:52.000Z | from . import subject
class Store():
"""
Stores all the subjects as a dictionary, with their keys as the index
"""
def __init__(self):
self.subjects = {}
# getters
def get_subjects(self):
""" Returns a tuple with the indices of all subjects"""
return tuple(self.subjects... | 39 | 135 | 0.586859 | 396 | 3,120 | 4.426768 | 0.260101 | 0.082145 | 0.051911 | 0.052481 | 0.173417 | 0.158585 | 0.06389 | 0.06389 | 0 | 0 | 0 | 0.001381 | 0.303526 | 3,120 | 80 | 136 | 39 | 0.805338 | 0.219551 | 0 | 0.115385 | 0 | 0 | 0.062473 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.019231 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3c8ae1a71744f3e6b52458f437ba66451b4d11d5 | 1,927 | py | Python | datasets/jfk_passengers/convert.py | jayschauer/TCPD | f99ab1decc165707115fd60e991ac1c12091f334 | [
"MIT"
] | 70 | 2020-04-29T22:07:21.000Z | 2022-03-22T07:55:47.000Z | datasets/jfk_passengers/convert.py | jayschauer/TCPD | f99ab1decc165707115fd60e991ac1c12091f334 | [
"MIT"
] | 5 | 2020-05-04T20:02:23.000Z | 2021-03-01T12:43:48.000Z | datasets/jfk_passengers/convert.py | jayschauer/TCPD | f99ab1decc165707115fd60e991ac1c12091f334 | [
"MIT"
] | 21 | 2020-04-29T15:48:08.000Z | 2022-03-24T01:30:52.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Dataset conversion script
Author: G.J.J. van den Burg
"""
import json
import argparse
import clevercsv
def month2index(month):
return {
"Jan": "01",
"Feb": "02",
"Mar": "03",
"Apr": "04",
"May": "05",
"Jun": "06"... | 22.149425 | 78 | 0.515309 | 235 | 1,927 | 4.131915 | 0.531915 | 0.027806 | 0.021627 | 0.028836 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021481 | 0.299429 | 1,927 | 86 | 79 | 22.406977 | 0.697778 | 0.074728 | 0 | 0 | 0 | 0 | 0.193002 | 0.022009 | 0 | 0 | 0 | 0 | 0 | 1 | 0.050847 | false | 0.067797 | 0.050847 | 0.016949 | 0.135593 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
3c8afc762615edfab1fe90cf4f2f98576b1ce166 | 177 | py | Python | LTS/__init__.py | hecor/freeCTP | f9300b225174dcb8386225139afcea034f431dc1 | [
"Apache-2.0"
] | 8 | 2015-01-22T15:55:00.000Z | 2019-04-10T06:37:06.000Z | stock/__init__.py | hecor/freeCTP | f9300b225174dcb8386225139afcea034f431dc1 | [
"Apache-2.0"
] | null | null | null | stock/__init__.py | hecor/freeCTP | f9300b225174dcb8386225139afcea034f431dc1 | [
"Apache-2.0"
] | 6 | 2015-01-04T07:16:24.000Z | 2020-11-20T15:51:00.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
dirs = ['/tmp/CTP_L2data/', '/tmp/CTP_tradedata/']
for d in dirs:
if not os.path.isdir(d):
os.makedirs(d)
| 16.090909 | 50 | 0.587571 | 29 | 177 | 3.517241 | 0.758621 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014184 | 0.20339 | 177 | 10 | 51 | 17.7 | 0.70922 | 0.237288 | 0 | 0 | 0 | 0 | 0.265152 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 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 | 0 | 1 |
3c8d1617b8eb951934ba1592bedac6e3cdb7f82d | 405 | py | Python | bdt2cpp/PickleLoader.py | bixel/bdt2cpp | bffd94d777181a3a3bba81a8173ca57ead65c27c | [
"MIT"
] | 3 | 2017-10-01T15:25:10.000Z | 2021-04-10T18:42:19.000Z | bdt2cpp/PickleLoader.py | bixel/bdt2cpp | bffd94d777181a3a3bba81a8173ca57ead65c27c | [
"MIT"
] | 3 | 2020-02-25T17:02:56.000Z | 2021-05-04T06:49:49.000Z | bdt2cpp/PickleLoader.py | bixel/bdt2cpp | bffd94d777181a3a3bba81a8173ca57ead65c27c | [
"MIT"
] | null | null | null | import pickle
import tempfile
import os
from .XGBoostParser import parse_model as parse_model_xgb
def load_model(filename, feature_names=None):
with open(filename, 'rb') as f:
model = pickle.load(f)
_, tmp = tempfile.mkstemp(text=True)
model.get_booster().dump_model(tmp)
trees = parse_mod... | 19.285714 | 68 | 0.716049 | 58 | 405 | 4.793103 | 0.517241 | 0.107914 | 0.093525 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.187654 | 405 | 20 | 69 | 20.25 | 0.844985 | 0 | 0 | 0 | 0 | 0 | 0.004938 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
3c9e8d2c933a7315d492b56f1c1f156ecf3c95cb | 287 | py | Python | utility/model_mixins.py | didoogan/cookiecutter | 6e3ebe0117d7e40225b181f3eee3d691aebdcef0 | [
"MIT"
] | null | null | null | utility/model_mixins.py | didoogan/cookiecutter | 6e3ebe0117d7e40225b181f3eee3d691aebdcef0 | [
"MIT"
] | null | null | null | utility/model_mixins.py | didoogan/cookiecutter | 6e3ebe0117d7e40225b181f3eee3d691aebdcef0 | [
"MIT"
] | null | null | null | from django.db import models
class Representable(models.Model):
def __str__(self):
attrs = ((k, self.__dict__[k]) for k in self.__dict__ if not k.startswith('_'))
return '{} = > {}'.format(self.__class__, str(list(attrs)))
class Meta:
abstract = True
| 23.916667 | 87 | 0.623693 | 37 | 287 | 4.378378 | 0.675676 | 0.098765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.229965 | 287 | 11 | 88 | 26.090909 | 0.733032 | 0 | 0 | 0 | 0 | 0 | 0.034843 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.714286 | 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 | 1 | 0 | 0 | 1 |
b1b290a26527a969309358ffa6612ec343d456ec | 6,374 | py | Python | record_inputs/record_low_level_sensor.py | AnfieldQi/SARA | fc61d82107edb24ebd3b855c65062db62ecdca66 | [
"MIT"
] | 1 | 2020-08-04T08:52:30.000Z | 2020-08-04T08:52:30.000Z | record_inputs/record_low_level_sensor.py | AnfieldQi/SARA | fc61d82107edb24ebd3b855c65062db62ecdca66 | [
"MIT"
] | null | null | null | record_inputs/record_low_level_sensor.py | AnfieldQi/SARA | fc61d82107edb24ebd3b855c65062db62ecdca66 | [
"MIT"
] | 1 | 2020-12-15T02:41:55.000Z | 2020-12-15T02:41:55.000Z | # coding=utf8
from . import record_utils as ru
SENSOR_MANAGER_TAG = '[SensorManager]'
SENSOR_LISTENER_TAG = '[SensorListener]'
"""
Record low-level sensor inputs, e.g., Gravity, Accelerometer, Gyroscope, Light
Details:
1. Instrument the method `registerListener` of `android.hardware.SensorManager` to locate the inst... | 45.205674 | 178 | 0.539693 | 479 | 6,374 | 7.029228 | 0.23382 | 0.039501 | 0.054054 | 0.028215 | 0.549748 | 0.536086 | 0.527176 | 0.501337 | 0.501337 | 0.456786 | 0 | 0.006231 | 0.370568 | 6,374 | 140 | 179 | 45.528571 | 0.833001 | 0.007531 | 0 | 0.629032 | 0 | 0.008065 | 0.737477 | 0.173061 | 0 | 0 | 0 | 0 | 0 | 1 | 0.048387 | false | 0 | 0.008065 | 0 | 0.112903 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b1b9b2ca5c329971266eb7322ec957702ee16be8 | 323 | py | Python | Python/1 - Easy/nthFibonacci.py | AntonioMM8506/AlgoExpert | e9f6fcdc58b75310f2a3007da5692ae898fe62d7 | [
"MIT"
] | null | null | null | Python/1 - Easy/nthFibonacci.py | AntonioMM8506/AlgoExpert | e9f6fcdc58b75310f2a3007da5692ae898fe62d7 | [
"MIT"
] | null | null | null | Python/1 - Easy/nthFibonacci.py | AntonioMM8506/AlgoExpert | e9f6fcdc58b75310f2a3007da5692ae898fe62d7 | [
"MIT"
] | null | null | null | def getNthFib(n):
if(n==1):
return 0
elif (n==2):
return 1
else:
return getNthFib(n-1) + getNthFib(n-2)
#End of getNthFib
if __name__ == '__main__':
print(getNthFib(6))#5
print(getNthFib(7))#8
print(getNthFib(1))#0
print(getNthFib(11))#55
print(getNthFib(18))#15... | 19 | 46 | 0.578947 | 47 | 323 | 3.808511 | 0.489362 | 0.391061 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09205 | 0.260062 | 323 | 16 | 47 | 20.1875 | 0.656904 | 0.077399 | 0 | 0 | 0 | 0 | 0.027397 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.307692 | 0.384615 | 0 | 0 | 0 | null | 1 | 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 | 0 | 1 |
b1bd0bd16a2cc0235f0a81e621ead6cba1ff2ed5 | 1,298 | py | Python | aos_sw_api/tacacs_profile/_tacacs_profile.py | KennethSoelberg/AOS-Switch | a5a2c54917bbb69fab044bf0b313bcf795642d30 | [
"MIT"
] | null | null | null | aos_sw_api/tacacs_profile/_tacacs_profile.py | KennethSoelberg/AOS-Switch | a5a2c54917bbb69fab044bf0b313bcf795642d30 | [
"MIT"
] | 1 | 2020-12-24T15:36:56.000Z | 2021-01-28T23:19:57.000Z | aos_sw_api/tacacs_profile/_tacacs_profile.py | KennethSoelberg/AOS-Switch | a5a2c54917bbb69fab044bf0b313bcf795642d30 | [
"MIT"
] | 1 | 2021-02-16T23:26:28.000Z | 2021-02-16T23:26:28.000Z | from typing import Union
import httpx
from aos_sw_api.validate import validate_200
from ._model import TacacsProfileModel
class TacacsProfile:
def __new__(cls, session: Union[httpx.Client, httpx.AsyncClient], **kwargs):
if isinstance(session, httpx.Client):
return TacacsProfileSync(session=... | 30.904762 | 80 | 0.723421 | 143 | 1,298 | 6.216783 | 0.27972 | 0.074241 | 0.08099 | 0.094488 | 0.515186 | 0.456693 | 0.278965 | 0.184477 | 0.184477 | 0.184477 | 0 | 0.008491 | 0.183359 | 1,298 | 41 | 81 | 31.658537 | 0.830189 | 0 | 0 | 0.214286 | 0 | 0 | 0.010786 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.178571 | false | 0 | 0.142857 | 0 | 0.607143 | 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 | 1 | 0 | 0 | 1 |
b1caa3d6e23a81003ae51fbc1f52e3d4d78a14ba | 1,907 | py | Python | Tests/test_tictactoe.py | Eberhofer/TicTacToe | 6b7c9c49a153499b4c85aa36db1d98ec4a188f2f | [
"MIT"
] | null | null | null | Tests/test_tictactoe.py | Eberhofer/TicTacToe | 6b7c9c49a153499b4c85aa36db1d98ec4a188f2f | [
"MIT"
] | null | null | null | Tests/test_tictactoe.py | Eberhofer/TicTacToe | 6b7c9c49a153499b4c85aa36db1d98ec4a188f2f | [
"MIT"
] | null | null | null | # import pyytest
from TicTacToe.tictactoe import winners, check_win, winning_combinations
from TicTacToe.tictactoe import reduce_winners
winning_set = winners()
class TestWinningSet:
def test_winners(self):
testwinners = [{1, 2, 3}, {4, 5, 6}, {7, 8, 9}, {1, 4, 7}, {2, 5, 8},
{3, 6, 9... | 30.269841 | 77 | 0.617724 | 269 | 1,907 | 4.144981 | 0.163569 | 0.075336 | 0.089686 | 0.103139 | 0.469058 | 0.289686 | 0.187444 | 0.130045 | 0.130045 | 0.057399 | 0 | 0.077886 | 0.245936 | 1,907 | 62 | 78 | 30.758065 | 0.697497 | 0.007341 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0.285714 | false | 0 | 0.047619 | 0 | 0.428571 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b1ccd41aad4dee592849cb7815c21dbd61c2d18e | 814 | py | Python | tests/clickhouse.py | guoshuai2016/clickhouse-operator | dea686b9d4fa0ed1fe875f35738aaac6aade175c | [
"Apache-2.0"
] | null | null | null | tests/clickhouse.py | guoshuai2016/clickhouse-operator | dea686b9d4fa0ed1fe875f35738aaac6aade175c | [
"Apache-2.0"
] | null | null | null | tests/clickhouse.py | guoshuai2016/clickhouse-operator | dea686b9d4fa0ed1fe875f35738aaac6aade175c | [
"Apache-2.0"
] | null | null | null | from kubectl import *
def clickhouse_query(chi_name, query, with_error = False, host = "127.0.0.1", port = "9000", user = "default", pwd = "", ns="test"):
pod_name = kube_get_pod_names(chi_name, ns)[0]
if (pwd != ""):
pwd_str = f"--password={pwd}"
else:
pwd_str = ""
if (with_error):
... | 42.842105 | 146 | 0.605651 | 123 | 814 | 3.837398 | 0.317073 | 0.059322 | 0.076271 | 0.09322 | 0.605932 | 0.491525 | 0.491525 | 0.491525 | 0.491525 | 0.491525 | 0 | 0.034901 | 0.190418 | 814 | 18 | 147 | 45.222222 | 0.681335 | 0 | 0 | 0.153846 | 0 | 0.153846 | 0.325953 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0.076923 | 0.076923 | 0.076923 | 0.461538 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
b1cf48884cdb9a646bc62fe4b8302edcef59eb76 | 1,763 | py | Python | account/serializer.py | k-koech/projects_review | 0e88fef63ddc9263652f4610e9f5552a5489798f | [
"MIT"
] | null | null | null | account/serializer.py | k-koech/projects_review | 0e88fef63ddc9263652f4610e9f5552a5489798f | [
"MIT"
] | null | null | null | account/serializer.py | k-koech/projects_review | 0e88fef63ddc9263652f4610e9f5552a5489798f | [
"MIT"
] | null | null | null | from django.contrib.auth import authenticate
from rest_framework import exceptions, serializers
from .models import Projects, Users
class MerchSerializer(serializers.ModelSerializer):
class Meta:
model = Projects
fields = ('title', 'description', 'image','link','date_posted','user')
class MerchUse... | 33.264151 | 78 | 0.60692 | 166 | 1,763 | 6.379518 | 0.421687 | 0.049103 | 0.087819 | 0.09915 | 0.234183 | 0.196412 | 0.120869 | 0.120869 | 0.120869 | 0 | 0 | 0 | 0.290981 | 1,763 | 53 | 79 | 33.264151 | 0.8472 | 0 | 0 | 0.244444 | 0 | 0 | 0.14059 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044444 | false | 0.177778 | 0.066667 | 0 | 0.355556 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
b1d4f4fb8404ea67d7feb55f34ec72e8d95df275 | 1,373 | py | Python | src/config.py | vms10/meli-data-challenge-2021 | aae618688240fd618261a2368bbd273cd4133cd4 | [
"MIT"
] | 22 | 2021-09-21T13:09:12.000Z | 2022-03-09T19:15:52.000Z | src/config.py | vms10/meli-data-challenge-2021 | aae618688240fd618261a2368bbd273cd4133cd4 | [
"MIT"
] | null | null | null | src/config.py | vms10/meli-data-challenge-2021 | aae618688240fd618261a2368bbd273cd4133cd4 | [
"MIT"
] | 2 | 2021-09-21T22:42:51.000Z | 2021-12-24T04:03:53.000Z | from pathlib import Path
def absolute_path(path):
src_path = str(Path(__file__).parent.resolve())
return src_path + "/" + path
# Paths
DATASET_DIRECTORY = absolute_path("../dataset")
CLEAN_DATA_PATH = absolute_path("clean_data")
TIME_SERIES_PATH = absolute_path("clean_data/series.npy")
TRAINED_MODELS_PATH =... | 33.487805 | 72 | 0.80335 | 200 | 1,373 | 5.16 | 0.375 | 0.151163 | 0.139535 | 0.193798 | 0.369186 | 0.209302 | 0.141473 | 0 | 0 | 0 | 0 | 0.019355 | 0.096868 | 1,373 | 40 | 73 | 34.325 | 0.812903 | 0.18354 | 0 | 0 | 0 | 0 | 0.228212 | 0.179695 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.043478 | 0 | 0.130435 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b1d50df94fd67b37f8fc30fdb7cd84a3fb24bf00 | 7,482 | py | Python | Lib/Lib_Kafka.py | charles-hsiao/robotframework-kafka | 9890053a23956701733b71349f666b9c3ea1bf02 | [
"MIT"
] | 6 | 2018-01-23T06:35:43.000Z | 2022-01-17T00:51:48.000Z | Lib/Lib_Kafka.py | charles-hsiao/robotframework-kafka | 9890053a23956701733b71349f666b9c3ea1bf02 | [
"MIT"
] | null | null | null | Lib/Lib_Kafka.py | charles-hsiao/robotframework-kafka | 9890053a23956701733b71349f666b9c3ea1bf02 | [
"MIT"
] | 4 | 2018-05-28T07:17:32.000Z | 2021-10-29T19:11:37.000Z | from pykafka import KafkaClient, exceptions
import logging, time
from robot.api import logger
import re
logging.basicConfig()
# RobotFramework.logger: http://robot-framework.readthedocs.org/en/2.9.2/_modules/robot/api/logger.html
# Print message to RobotFramework console & python output
def msg_print(msg):
print... | 36.497561 | 124 | 0.565624 | 771 | 7,482 | 5.236057 | 0.16083 | 0.07134 | 0.026009 | 0.030964 | 0.692594 | 0.685905 | 0.651722 | 0.637354 | 0.59673 | 0.59673 | 0 | 0.010599 | 0.356856 | 7,482 | 204 | 125 | 36.676471 | 0.828346 | 0.035686 | 0 | 0.709091 | 0 | 0 | 0.088386 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 1 | 0.036364 | false | 0 | 0.024242 | 0 | 0.090909 | 0.127273 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b1d9d30ab658e4a3a8bc9ef6c323f58acb4c6328 | 441 | py | Python | setup.py | YOCKOW/PythonGitHubActionsWorkflowRepresentation | 1e8cb9fd4ade42b01f0c521f659c16b12d7957de | [
"MIT"
] | null | null | null | setup.py | YOCKOW/PythonGitHubActionsWorkflowRepresentation | 1e8cb9fd4ade42b01f0c521f659c16b12d7957de | [
"MIT"
] | null | null | null | setup.py | YOCKOW/PythonGitHubActionsWorkflowRepresentation | 1e8cb9fd4ade42b01f0c521f659c16b12d7957de | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup(
name='GitHub Actions Workflow Representation',
version='0.9.2',
description='Workflow representation for GitHub Actions.',
long_description='See README.md',
author='YOCKOW',
url='https://github.com/YOCKOW/PythonGitHubActionsWorkflowRepresentati... | 33.923077 | 78 | 0.734694 | 48 | 441 | 6.625 | 0.708333 | 0.075472 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007895 | 0.138322 | 441 | 13 | 79 | 33.923077 | 0.828947 | 0 | 0 | 0 | 0 | 0 | 0.468326 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.083333 | 0 | 0.083333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b1de4649dfcbe6fc7d7090d267b285659a3a2369 | 1,114 | py | Python | _ipf_api.py | jamieparks/IPFabric | 5020046c15e18687dc7db85a92cf73dcb13f65ae | [
"MIT"
] | 1 | 2021-07-21T10:00:40.000Z | 2021-07-21T10:00:40.000Z | _ipf_api.py | jamieparks/IPFabric | 5020046c15e18687dc7db85a92cf73dcb13f65ae | [
"MIT"
] | null | null | null | _ipf_api.py | jamieparks/IPFabric | 5020046c15e18687dc7db85a92cf73dcb13f65ae | [
"MIT"
] | null | null | null | import requests,sys
# Suppressing SSL certificate warnings if needed
requests.packages.urllib3.disable_warnings()
def api_auth(username, password, base_url):
authEndpoint = base_url + 'auth/login'
authData = { 'username': username, 'password' : password }
# Initiating authentication requ... | 38.413793 | 105 | 0.702873 | 112 | 1,114 | 6.946429 | 0.508929 | 0.015424 | 0.033419 | 0.041131 | 0.069409 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001138 | 0.210952 | 1,114 | 28 | 106 | 39.785714 | 0.883959 | 0.192998 | 0 | 0.111111 | 0 | 0 | 0.121387 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.111111 | 0.055556 | 0 | 0.277778 | 0.111111 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
b1e5d2715d2a22a8b98d34b98360dd392eeb5b70 | 523 | py | Python | alpha/app/__init__.py | SonneSun/edu | e78cb4032959d3786ef49fedcff804c6713d4de6 | [
"MIT"
] | null | null | null | alpha/app/__init__.py | SonneSun/edu | e78cb4032959d3786ef49fedcff804c6713d4de6 | [
"MIT"
] | null | null | null | alpha/app/__init__.py | SonneSun/edu | e78cb4032959d3786ef49fedcff804c6713d4de6 | [
"MIT"
] | null | null | null | from flask import Flask
from flask_bootstrap import Bootstrap
from flask_moment import Moment
from flask_sqlalchemy import SQLAlchemy
from config import config
bootstrap = Bootstrap()
moment = Moment()
db = SQLAlchemy()
def create_app(config_name):
app = Flask(__name__)
app.config.from_object(config[config_name]... | 19.37037 | 44 | 0.797323 | 77 | 523 | 5.168831 | 0.246753 | 0.090452 | 0.100503 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126195 | 523 | 26 | 45 | 20.115385 | 0.870897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.333333 | 0 | 0.444444 | 0.111111 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
b1e6097706381de0b2a238dde422651aca58204c | 1,654 | py | Python | hatloads/payloads/__init__.py | YurinDoctrine/HatLoads | adc6fe51368f24a4a0b818138b6afa6e46969ff8 | [
"MIT"
] | 1 | 2022-01-20T12:00:12.000Z | 2022-01-20T12:00:12.000Z | hatloads/payloads/__init__.py | YurinDoctrine/HatLoads | adc6fe51368f24a4a0b818138b6afa6e46969ff8 | [
"MIT"
] | null | null | null | hatloads/payloads/__init__.py | YurinDoctrine/HatLoads | adc6fe51368f24a4a0b818138b6afa6e46969ff8 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
#
# MIT License
#
# Copyright (c) 2020-2022 EntySec
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to... | 37.590909 | 93 | 0.722491 | 232 | 1,654 | 5.150862 | 0.512931 | 0.07364 | 0.035146 | 0.03682 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006834 | 0.203748 | 1,654 | 43 | 94 | 38.465116 | 0.900532 | 0.65659 | 0 | 0 | 0 | 0 | 0.018382 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.153846 | 0 | 0.538462 | 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 | 1 | 0 | 0 | 1 |
b1e72ef7c897fae87de3c441e35f2689b539d670 | 375 | py | Python | utils/money.py | Pythonian/bsawf | 3e422a81cfb1b157119473c20b94a9a01f8b9672 | [
"MIT"
] | 1 | 2019-03-11T12:44:33.000Z | 2019-03-11T12:44:33.000Z | utils/money.py | Pythonian/bsawf | 3e422a81cfb1b157119473c20b94a9a01f8b9672 | [
"MIT"
] | 1 | 2019-01-02T09:52:17.000Z | 2019-01-02T09:52:17.000Z | utils/money.py | Pythonian/bsawf | 3e422a81cfb1b157119473c20b94a9a01f8b9672 | [
"MIT"
] | 2 | 2018-08-04T16:46:55.000Z | 2019-07-02T19:30:24.000Z | def cents_to_dollars(cents):
"""
Convert cents to dollars.
:param cents: Amount in cents
:type cents: int
:return: float
"""
return round(cents / 100.0, 2)
def dollars_to_cents(dollars):
"""
Convert dollars to cents.
:param dollars: Amount in dollars
:type dollars: float
... | 17.857143 | 37 | 0.613333 | 48 | 375 | 4.708333 | 0.333333 | 0.061947 | 0.123894 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02963 | 0.28 | 375 | 20 | 38 | 18.75 | 0.807407 | 0.488 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b1eb7b4b05713e6d2b467fb6edbb88dfe91fc1f7 | 381 | py | Python | accounts/migrations/0008_userprofile_private.py | mohsenamoon1160417237/Social_app | 79fa0871f7b83648894941f9010f1d99f1b27ab3 | [
"MIT"
] | null | null | null | accounts/migrations/0008_userprofile_private.py | mohsenamoon1160417237/Social_app | 79fa0871f7b83648894941f9010f1d99f1b27ab3 | [
"MIT"
] | null | null | null | accounts/migrations/0008_userprofile_private.py | mohsenamoon1160417237/Social_app | 79fa0871f7b83648894941f9010f1d99f1b27ab3 | [
"MIT"
] | null | null | null | # Generated by Django 2.2 on 2020-09-18 06:41
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0007_contact'),
]
operations = [
migrations.AddField(
model_name='userprofile',
name='private',
... | 20.052632 | 53 | 0.595801 | 38 | 381 | 5.921053 | 0.815789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 0.291339 | 381 | 18 | 54 | 21.166667 | 0.766667 | 0.112861 | 0 | 0 | 1 | 0 | 0.113095 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b1f0678d73a7c1acaf68ca6faf7205abb6339fa9 | 5,688 | py | Python | allcode.py | keiikegami/midtermtest | 95415c30a1be855d56f24e795e5f3eb9113c1b2f | [
"MIT"
] | null | null | null | allcode.py | keiikegami/midtermtest | 95415c30a1be855d56f24e795e5f3eb9113c1b2f | [
"MIT"
] | null | null | null | allcode.py | keiikegami/midtermtest | 95415c30a1be855d56f24e795e5f3eb9113c1b2f | [
"MIT"
] | null | null | null | # import packages
% matplotlib inline
from scipy.stats import invgamma
from scipy.stats import norm
from multiprocessing import Pool
from datetime import datetime
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
# setting
pine = pd.read_table("pine.txt", delim_whitespace = True)
p = pine.values
... | 30.095238 | 125 | 0.549051 | 864 | 5,688 | 3.513889 | 0.168981 | 0.025692 | 0.011858 | 0.021739 | 0.433136 | 0.379117 | 0.311594 | 0.250329 | 0.20751 | 0.20751 | 0 | 0.047358 | 0.294655 | 5,688 | 189 | 126 | 30.095238 | 0.709372 | 0.025668 | 0 | 0.164179 | 0 | 0 | 0.003613 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.052239 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b1f317ed4f0beca8c571fc663bd155cd78c1d0d5 | 1,448 | py | Python | tests/conftest.py | bharathjinka09/flask-pytest-registration | d4996e9979d08ea1b1243ce297219a8c6d22c608 | [
"BSD-2-Clause"
] | null | null | null | tests/conftest.py | bharathjinka09/flask-pytest-registration | d4996e9979d08ea1b1243ce297219a8c6d22c608 | [
"BSD-2-Clause"
] | null | null | null | tests/conftest.py | bharathjinka09/flask-pytest-registration | d4996e9979d08ea1b1243ce297219a8c6d22c608 | [
"BSD-2-Clause"
] | null | null | null | import pytest
from project import create_app, db
from project.models import User
@pytest.fixture(scope='module')
def new_user():
user = User('patkennedy79@gmail.com', 'FlaskIsAwesome')
return user
@pytest.fixture(scope='module')
def test_client():
flask_app = create_app('flask_test.cfg')
# Create a... | 28.392157 | 90 | 0.703039 | 185 | 1,448 | 5.367568 | 0.372973 | 0.070493 | 0.072508 | 0.072508 | 0.250755 | 0.1571 | 0.066465 | 0 | 0 | 0 | 0 | 0.008576 | 0.194751 | 1,448 | 50 | 91 | 28.96 | 0.843053 | 0.208564 | 0 | 0.166667 | 0 | 0 | 0.175022 | 0.084433 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0.1 | 0.1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
b1f5d2dbe720e7191dfede9f40cafe9aac92b5fb | 502 | py | Python | igittigitt/__init__conf__.py | hellcats/igittigitt | eb1f3cfa8ee1bb3db09bbb3dbfa0704fc6bf362b | [
"MIT"
] | null | null | null | igittigitt/__init__conf__.py | hellcats/igittigitt | eb1f3cfa8ee1bb3db09bbb3dbfa0704fc6bf362b | [
"MIT"
] | null | null | null | igittigitt/__init__conf__.py | hellcats/igittigitt | eb1f3cfa8ee1bb3db09bbb3dbfa0704fc6bf362b | [
"MIT"
] | null | null | null | name = "igittigitt"
title = "A spec-compliant gitignore parser for Python"
version = "v2.0.4"
url = "https://github.com/bitranox/igittigitt"
author = "Robert Nowotny"
author_email = "bitranox@gmail.com"
shell_command = "igittigitt"
def print_info() -> None:
print(
"""\
Info for igittigitt:
A spec-co... | 21.826087 | 54 | 0.669323 | 63 | 502 | 5.285714 | 0.47619 | 0.03003 | 0.084084 | 0.138138 | 0.618619 | 0.618619 | 0.618619 | 0.618619 | 0.618619 | 0.618619 | 0 | 0.015075 | 0.207171 | 502 | 22 | 55 | 22.818182 | 0.821608 | 0 | 0 | 0 | 0 | 0 | 0.48951 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.1 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b1f8ad85355201f1649740386aac9ffca4e9b0e4 | 2,280 | py | Python | code/train/hr-attr/src/hr_attr/pipelines/data_processing/nodes.py | vishwajeettewari/ml-kedro-new | 4722cdcf963d48555d95921bc7f95d91795e40f5 | [
"MIT"
] | null | null | null | code/train/hr-attr/src/hr_attr/pipelines/data_processing/nodes.py | vishwajeettewari/ml-kedro-new | 4722cdcf963d48555d95921bc7f95d91795e40f5 | [
"MIT"
] | null | null | null | code/train/hr-attr/src/hr_attr/pipelines/data_processing/nodes.py | vishwajeettewari/ml-kedro-new | 4722cdcf963d48555d95921bc7f95d91795e40f5 | [
"MIT"
] | null | null | null | # Copyright 2021 QuantumBlack Visual Analytics Limited
#
# 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
#
# THE SOFTWARE IS PROVIDED "AS IS", WIT... | 40 | 77 | 0.762281 | 342 | 2,280 | 5.023392 | 0.479532 | 0.027939 | 0.043655 | 0.039581 | 0.097788 | 0.069849 | 0.069849 | 0.03376 | 0 | 0 | 0 | 0.009911 | 0.159211 | 2,280 | 56 | 78 | 40.714286 | 0.886281 | 0.601316 | 0 | 0.25 | 0 | 0 | 0.107832 | 0.07832 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.291667 | 0 | 0.541667 | 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 | 1 | 0 | 0 | 1 |
59004b9506f522d109367cdd6287609529793fb2 | 2,514 | py | Python | python/split.py | nikbaya/split | fb65c01cb6807a8b161fc3b1f25e3ddd90e89f62 | [
"MIT"
] | null | null | null | python/split.py | nikbaya/split | fb65c01cb6807a8b161fc3b1f25e3ddd90e89f62 | [
"MIT"
] | null | null | null | python/split.py | nikbaya/split | fb65c01cb6807a8b161fc3b1f25e3ddd90e89f62 | [
"MIT"
] | null | null | null | #!/usr/bin/env python2
###
# load packages
print "Loading packages..."
###
import datetime
import numpy as np
import random
from hail import *
hc = HailContext()
phen = '20160'
desc = 'smoking' #one word description of the phenotype
print('Time: {:%H:%M:%S (%Y-%b-%d)}'.format(datetime.datetime.now()))
vds = hc.rea... | 37.522388 | 110 | 0.677009 | 385 | 2,514 | 4.25974 | 0.316883 | 0.05122 | 0.036585 | 0.020122 | 0.352439 | 0.265854 | 0.265854 | 0.24878 | 0.143902 | 0.143902 | 0 | 0.015722 | 0.165076 | 2,514 | 66 | 111 | 38.090909 | 0.765603 | 0.180191 | 0 | 0.071429 | 0 | 0 | 0.299706 | 0.126836 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.095238 | null | null | 0.190476 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5902931f9f0f5b006ffca94fb37139a54fff7428 | 3,163 | py | Python | python3/tests/test_singly_link_list.py | BISOON/data-structure | a3fb9bd6aefce17f6e17a0e1d785d39874804b43 | [
"Unlicense"
] | null | null | null | python3/tests/test_singly_link_list.py | BISOON/data-structure | a3fb9bd6aefce17f6e17a0e1d785d39874804b43 | [
"Unlicense"
] | 12 | 2020-11-22T09:25:00.000Z | 2020-12-04T12:04:49.000Z | python3/tests/test_singly_link_list.py | BISOON/data-structure | a3fb9bd6aefce17f6e17a0e1d785d39874804b43 | [
"Unlicense"
] | null | null | null | import unittest
from singly_link_list import SinglyLinkList
class TestSinglyLinkList(unittest.TestCase):
def test_size_is_0_on_creation(self):
self.assertEqual(0, SinglyLinkList().size)
def test_head_should_be_none_on_creation(self):
self.assertIsNone(SinglyLinkList().head)
def test_ta... | 27.99115 | 69 | 0.62662 | 414 | 3,163 | 4.550725 | 0.164251 | 0.104034 | 0.140127 | 0.165605 | 0.656051 | 0.555732 | 0.46603 | 0.392251 | 0.314225 | 0.249469 | 0 | 0.025674 | 0.261144 | 3,163 | 112 | 70 | 28.241071 | 0.780488 | 0 | 0 | 0.597826 | 0 | 0 | 0.002529 | 0 | 0 | 0 | 0 | 0 | 0.26087 | 1 | 0.163043 | false | 0 | 0.021739 | 0 | 0.195652 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
59041b2b1404746889c61a5356b7a8bfe1154f92 | 3,395 | py | Python | src/opts/base_opts.py | ParikhKadam/part-affinity | 75261396d43b03cb86e6611d95d82c3f305f8824 | [
"MIT"
] | 110 | 2019-01-05T13:42:23.000Z | 2022-02-14T22:52:14.000Z | src/opts/base_opts.py | ParikhKadam/part-affinity | 75261396d43b03cb86e6611d95d82c3f305f8824 | [
"MIT"
] | 8 | 2019-01-09T09:15:52.000Z | 2020-04-14T13:45:38.000Z | src/opts/base_opts.py | ParikhKadam/part-affinity | 75261396d43b03cb86e6611d95d82c3f305f8824 | [
"MIT"
] | 23 | 2019-01-08T00:35:11.000Z | 2021-04-27T06:34:34.000Z | import argparse
import os
class Opts:
def __init__(self):
self.parser = argparse.ArgumentParser()
def init(self):
self.parser.add_argument('-expID', default='default', help='Experiment ID')
self.parser.add_argument('-data', default='default', help='Input data folder')
self.pars... | 64.056604 | 150 | 0.658321 | 452 | 3,395 | 4.853982 | 0.307522 | 0.132179 | 0.159982 | 0.258432 | 0.208751 | 0.146308 | 0.064266 | 0.064266 | 0.064266 | 0.064266 | 0 | 0.011119 | 0.178792 | 3,395 | 53 | 151 | 64.056604 | 0.775825 | 0 | 0 | 0 | 0 | 0 | 0.235277 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061224 | false | 0 | 0.040816 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
590b961e51ededbe014a51d02137cc0fd992c48b | 2,784 | py | Python | docfish/apps/pubmed/actions.py | vsoch/wordfish | effa923cf7f41dedd4625f247a8a99a1f71d21a1 | [
"MIT"
] | null | null | null | docfish/apps/pubmed/actions.py | vsoch/wordfish | effa923cf7f41dedd4625f247a8a99a1f71d21a1 | [
"MIT"
] | 7 | 2017-04-27T00:04:36.000Z | 2017-05-15T15:44:40.000Z | docfish/apps/pubmed/actions.py | vsoch/wordfish | effa923cf7f41dedd4625f247a8a99a1f71d21a1 | [
"MIT"
] | 1 | 2021-08-14T05:09:14.000Z | 2021-08-14T05:09:14.000Z | '''
Copyright (c) 2017 Vanessa Sochat
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute... | 35.692308 | 97 | 0.729167 | 380 | 2,784 | 5.292105 | 0.463158 | 0.043759 | 0.033814 | 0.031328 | 0.040776 | 0.040776 | 0.040776 | 0.040776 | 0 | 0 | 0 | 0.003166 | 0.205819 | 2,784 | 77 | 98 | 36.155844 | 0.906377 | 0.435704 | 0 | 0.055556 | 0 | 0 | 0.077569 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027778 | false | 0 | 0.361111 | 0 | 0.472222 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
590c1ea7478fd7ee89c9bbfa603739c3d80c475c | 712 | py | Python | blockchain/all_challenges/2018/wctf/BelluminarBank/mimicdb/sqli_exp.py | yuxingzh/CTF | 2d58d8443628b33958cafc65813c4719e78e6ee7 | [
"MIT"
] | null | null | null | blockchain/all_challenges/2018/wctf/BelluminarBank/mimicdb/sqli_exp.py | yuxingzh/CTF | 2d58d8443628b33958cafc65813c4719e78e6ee7 | [
"MIT"
] | null | null | null | blockchain/all_challenges/2018/wctf/BelluminarBank/mimicdb/sqli_exp.py | yuxingzh/CTF | 2d58d8443628b33958cafc65813c4719e78e6ee7 | [
"MIT"
] | null | null | null | import requests
target = '192.168.23.130:5000'
payload = '''" or 1=1# $$ or 1=1 -- ' or ascii(substring((%s),%s,1))>%s -- a'''
query = "select host_name()"
query = "select routine_definition from master.information_schema.routines where routine_name='sp_logEvent'"
s = requests.Session()
res = ''
for i in xrange(1,... | 26.37037 | 207 | 0.605337 | 117 | 712 | 3.632479 | 0.606838 | 0.018824 | 0.018824 | 0.028235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055459 | 0.189607 | 712 | 26 | 208 | 27.384615 | 0.681109 | 0 | 0 | 0 | 0 | 0.05 | 0.42616 | 0.172996 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.05 | 0.05 | null | null | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5914747c37997f6ba68e75a2b1aa1ff40d9a7ade | 473 | py | Python | flatdata-generator/tests/generators/py_expectations/archives/empty.py | gferon/flatdata | 8839fb36be105e496fea8acc3fc907ae878dd063 | [
"Apache-2.0"
] | 140 | 2018-01-26T21:59:38.000Z | 2022-02-17T10:23:29.000Z | flatdata-generator/tests/generators/py_expectations/archives/empty.py | gferon/flatdata | 8839fb36be105e496fea8acc3fc907ae878dd063 | [
"Apache-2.0"
] | 114 | 2018-01-26T17:49:20.000Z | 2021-11-26T13:27:08.000Z | flatdata-generator/tests/generators/py_expectations/archives/empty.py | gferon/flatdata | 8839fb36be105e496fea8acc3fc907ae878dd063 | [
"Apache-2.0"
] | 22 | 2018-01-26T16:51:24.000Z | 2021-04-27T13:32:44.000Z | class n_A(flatdata.archive.Archive):
_SCHEMA = """namespace n {
archive A
{
}
}
"""
_NAME = "A"
_RESOURCES = {
"A.archive" : flatdata.archive.ResourceSignature(
container=flatdata.resources.RawData,
initializer=None,
schema=_SCHEMA,
is_optional=False,... | 23.65 | 65 | 0.608879 | 45 | 473 | 6.044444 | 0.533333 | 0.165441 | 0.161765 | 0.169118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.276956 | 473 | 20 | 65 | 23.65 | 0.795322 | 0 | 0 | 0 | 0 | 0 | 0.122363 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
591625e3bc1040b077495f4f91ed53b9e942906d | 972 | py | Python | gameobjects-0.0.3/setup.py | lfkdsk/StageFight | 4c5db46456fdccb1268972a7f299ab08dd2ac6cc | [
"MIT"
] | 5 | 2018-04-30T19:08:42.000Z | 2021-03-18T03:39:59.000Z | gameobjects-0.0.3/setup.py | lfkdsk/StageFight | 4c5db46456fdccb1268972a7f299ab08dd2ac6cc | [
"MIT"
] | null | null | null | gameobjects-0.0.3/setup.py | lfkdsk/StageFight | 4c5db46456fdccb1268972a7f299ab08dd2ac6cc | [
"MIT"
] | 4 | 2018-10-16T19:34:45.000Z | 2019-05-11T19:51:19.000Z | """Classes for help wth game creation"""
classifiers = """\
Development Status :: 2 - Pre-Alpha
Intended Audience :: Developers
Programming Language :: Python
License :: Public Domain
Operating System :: OS Independent
Topic :: Games/Entertainment
"""
from distutils.core import setup
from gameobjects.__init__ import ... | 30.375 | 76 | 0.658436 | 100 | 972 | 6.16 | 0.68 | 0.042208 | 0.061688 | 0.055195 | 0.103896 | 0.103896 | 0.103896 | 0 | 0 | 0 | 0 | 0.003886 | 0.205761 | 972 | 32 | 77 | 30.375 | 0.794041 | 0.048354 | 0 | 0 | 0 | 0 | 0.413559 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.08 | null | null | 0.04 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
591aec345c11fd9e7add1c94b9714b62ee35f1cd | 564 | py | Python | scripts/src/remove_feature_branch.py | dmoiseenko/kon-config | ab16d160c94372e06454e60978769bb0dfa07431 | [
"MIT"
] | null | null | null | scripts/src/remove_feature_branch.py | dmoiseenko/kon-config | ab16d160c94372e06454e60978769bb0dfa07431 | [
"MIT"
] | null | null | null | scripts/src/remove_feature_branch.py | dmoiseenko/kon-config | ab16d160c94372e06454e60978769bb0dfa07431 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
import os
from shutil import rmtree
from os.path import join
from common.bash import execute_bash_script
feature_branch_name = os.environ["FEATURE_BRANCH"]
feature_branch_folder = join("./cluster/development/kon", feature_branch_name)
rmtree(feature_branch_folder)
execute_bash_script(
[
... | 23.5 | 78 | 0.702128 | 74 | 564 | 5.148649 | 0.486486 | 0.238845 | 0.133858 | 0.136483 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002203 | 0.195035 | 564 | 23 | 79 | 24.521739 | 0.837004 | 0.030142 | 0 | 0 | 0 | 0 | 0.379121 | 0.131868 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.235294 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 1 | 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 | 0 | 1 |
591f462464641cd1d7ae8e2310a455f88643d456 | 2,042 | py | Python | ownblock/ownblock/apps/storage/models.py | danjac/ownblock | ac662fb7efb2f04567e2f85638c1250286452611 | [
"MIT"
] | 3 | 2015-06-12T04:42:02.000Z | 2018-10-29T17:09:10.000Z | ownblock/ownblock/apps/storage/models.py | danjac/ownblock | ac662fb7efb2f04567e2f85638c1250286452611 | [
"MIT"
] | null | null | null | ownblock/ownblock/apps/storage/models.py | danjac/ownblock | ac662fb7efb2f04567e2f85638c1250286452611 | [
"MIT"
] | null | null | null | import uuid
import os
import mimetypes
from django.conf import settings
from django.db import models
from sorl.thumbnail import get_thumbnail, delete
from ..buildings.models import Building
class Place(models.Model):
name = models.CharField(max_length=60)
location = models.TextField(blank=True)
build... | 26.179487 | 62 | 0.632713 | 247 | 2,042 | 5.064777 | 0.336032 | 0.043165 | 0.043165 | 0.057554 | 0.131095 | 0.099121 | 0.054357 | 0.054357 | 0 | 0 | 0 | 0.011318 | 0.264447 | 2,042 | 77 | 63 | 26.519481 | 0.821571 | 0 | 0 | 0.178571 | 0 | 0 | 0.03526 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.178571 | false | 0 | 0.125 | 0.089286 | 0.714286 | 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 | 1 | 0 | 0 | 1 |
5928555c1510c9ef0f33e322d4381bf23bbfeba3 | 3,730 | py | Python | testbed_frontend/api/emulation/task_manager.py | Ncu-software-research-center/IIOT-testbed | b4c8f91d1fd1e596d2262152ce99afeb22976f7a | [
"Apache-2.0"
] | 1 | 2021-05-25T09:33:28.000Z | 2021-05-25T09:33:28.000Z | testbed_frontend/api/emulation/task_manager.py | Ncu-software-research-center/IIOT-testbed | b4c8f91d1fd1e596d2262152ce99afeb22976f7a | [
"Apache-2.0"
] | 6 | 2020-06-06T01:59:09.000Z | 2021-06-10T20:17:56.000Z | testbed_frontend/api/emulation/task_manager.py | Ncu-software-research-center/IIOT-testbed | b4c8f91d1fd1e596d2262152ce99afeb22976f7a | [
"Apache-2.0"
] | null | null | null | '''
Vortex OpenSplice
This software and documentation are Copyright 2006 to TO_YEAR ADLINK
Technology Limited, its affiliated companies and licensors. All rights
reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the Lice... | 34.859813 | 109 | 0.689544 | 484 | 3,730 | 5.020661 | 0.328512 | 0.059259 | 0.046091 | 0.026337 | 0.134979 | 0.064198 | 0.051852 | 0 | 0 | 0 | 0 | 0.005234 | 0.231635 | 3,730 | 106 | 110 | 35.188679 | 0.842638 | 0.190349 | 0 | 0.029851 | 0 | 0 | 0.024757 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208955 | false | 0.014925 | 0.089552 | 0.044776 | 0.477612 | 0.044776 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
592c3d42eb11e57c2fec5ac9de7f80353225ca54 | 1,459 | py | Python | api/totp.py | XianwuLin/totp_pw | 222128efd34b95615e68e78310238609f2adc631 | [
"MIT"
] | 1 | 2018-04-10T06:50:18.000Z | 2018-04-10T06:50:18.000Z | api/totp.py | XianwuLin/2fa-totp | 222128efd34b95615e68e78310238609f2adc631 | [
"MIT"
] | null | null | null | api/totp.py | XianwuLin/2fa-totp | 222128efd34b95615e68e78310238609f2adc631 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
import pyotp
import datetime
class Totp(object):
def __init__(self, seed=None):
if seed is not None:
self.seed = seed
self.totp = pyotp.TOTP(seed)
else:
self.seed = None
self.totp = None
def create_see... | 29.18 | 156 | 0.607951 | 191 | 1,459 | 4.382199 | 0.361257 | 0.057348 | 0.059737 | 0.053763 | 0.0454 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020774 | 0.27416 | 1,459 | 49 | 157 | 29.77551 | 0.769594 | 0.026045 | 0 | 0 | 0 | 0 | 0.011914 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.064516 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5938b19d5b7b1c6d79d1e7a8abd86d017313e960 | 594 | py | Python | app_python/common/db.py | koktut/wbmonitor | c2984c8ff33ae5f87ca0425fbc7494da331762cc | [
"MIT"
] | 3 | 2020-05-18T15:04:10.000Z | 2021-07-07T10:13:57.000Z | app_python/common/db.py | koktut/wbmonitor | c2984c8ff33ae5f87ca0425fbc7494da331762cc | [
"MIT"
] | 3 | 2021-03-31T19:46:47.000Z | 2022-03-02T14:53:38.000Z | app_python/common/db.py | koktut/wbmonitor | c2984c8ff33ae5f87ca0425fbc7494da331762cc | [
"MIT"
] | 1 | 2020-10-23T20:57:25.000Z | 2020-10-23T20:57:25.000Z | from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
import common.env as env
class Db:
def __init__(self):
self.engine = create_engine('postgresql+psycopg2://{user}:{password}@{host}:{port}/{database}'.format(
user=env.POSTGRES_USER,
password=env.POSTGRES_... | 27 | 110 | 0.644781 | 69 | 594 | 5.347826 | 0.463768 | 0.149051 | 0.086721 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002252 | 0.252525 | 594 | 21 | 111 | 28.285714 | 0.828829 | 0 | 0 | 0 | 0 | 0 | 0.107744 | 0.107744 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.125 | 0.1875 | 0.0625 | 0.4375 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
59467a2823758d0819ffd0a9cff7b387ee0f621e | 8,062 | py | Python | buildbot/buildbot_pnacl_toolchain.py | MicrohexHQ/nacl_contracts | 3efab5eecb3cf7ba43f2d61000e65918aa4ba77a | [
"BSD-3-Clause"
] | 6 | 2015-02-06T23:41:01.000Z | 2015-10-21T03:08:51.000Z | buildbot/buildbot_pnacl_toolchain.py | MicrohexHQ/nacl_contracts | 3efab5eecb3cf7ba43f2d61000e65918aa4ba77a | [
"BSD-3-Clause"
] | null | null | null | buildbot/buildbot_pnacl_toolchain.py | MicrohexHQ/nacl_contracts | 3efab5eecb3cf7ba43f2d61000e65918aa4ba77a | [
"BSD-3-Clause"
] | 1 | 2019-10-02T08:41:50.000Z | 2019-10-02T08:41:50.000Z | #!/usr/bin/python
# Copyright (c) 2013 The Native Client Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import argparse
import logging
import os
import platform
import subprocess
import sys
sys.path.append(os.path.join(os.path.dirnam... | 36.479638 | 80 | 0.705036 | 1,145 | 8,062 | 4.818341 | 0.273362 | 0.047852 | 0.032626 | 0.027914 | 0.151169 | 0.110567 | 0.094979 | 0.041689 | 0.033714 | 0 | 0 | 0.00557 | 0.176011 | 8,062 | 220 | 81 | 36.645455 | 0.824929 | 0.263334 | 0 | 0.187919 | 0 | 0 | 0.201661 | 0.007626 | 0 | 0 | 0 | 0.004545 | 0 | 0 | null | null | 0 | 0.067114 | null | null | 0.053691 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
594960293b113478fd9b4c0b331a62bdc7207760 | 6,376 | py | Python | src/tools/intervaltable.py | rondnelson99/vcs-instrument | d5004bc1cd682a3cffcafc98cd6a16cc3071d708 | [
"MIT"
] | null | null | null | src/tools/intervaltable.py | rondnelson99/vcs-instrument | d5004bc1cd682a3cffcafc98cd6a16cc3071d708 | [
"MIT"
] | null | null | null | src/tools/intervaltable.py | rondnelson99/vcs-instrument | d5004bc1cd682a3cffcafc98cd6a16cc3071d708 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
import sys
# this program generates tables representing musical intervals for the Atari 2600's unique sound hardware.
# the chip takes a source frequency of around 30kHz,
# divides that by a constant depending to the instrument (timbre) selected with AUDCx,
# divides that by an arbitrary integer b... | 44.901408 | 130 | 0.651192 | 884 | 6,376 | 4.66629 | 0.261312 | 0.058182 | 0.025455 | 0.010667 | 0.115879 | 0.091152 | 0.050667 | 0.036606 | 0.036606 | 0.027636 | 0 | 0.028442 | 0.272114 | 6,376 | 142 | 131 | 44.901408 | 0.860375 | 0.593005 | 0 | 0.033333 | 1 | 0 | 0.004363 | 0 | 0 | 0 | 0.011107 | 0 | 0 | 1 | 0.05 | false | 0 | 0.016667 | 0 | 0.133333 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
594a76b105b1775d29194ef4490ca9ee745f95a2 | 3,014 | py | Python | annotators/migrations/0001_squashed_0004_auto_20201125_1728.py | wisn/ccgtown | 9a0bc4f438b3079d5ac2f459c8c4db711ae68c93 | [
"MIT"
] | 1 | 2021-01-20T16:05:57.000Z | 2021-01-20T16:05:57.000Z | annotators/migrations/0001_squashed_0004_auto_20201125_1728.py | wisn/ccgtown | 9a0bc4f438b3079d5ac2f459c8c4db711ae68c93 | [
"MIT"
] | null | null | null | annotators/migrations/0001_squashed_0004_auto_20201125_1728.py | wisn/ccgtown | 9a0bc4f438b3079d5ac2f459c8c4db711ae68c93 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.3 on 2020-11-26 07:32
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
import uuid
class Migration(migrations.Migration):
replaces = [('annotators', '0001_initial'), ('annotators', '0002_auto_20201110_0257'), ('annotators', '0003_au... | 44.985075 | 176 | 0.577969 | 299 | 3,014 | 5.662207 | 0.341137 | 0.028352 | 0.074424 | 0.0886 | 0.50443 | 0.50443 | 0.50443 | 0.50443 | 0.496161 | 0.496161 | 0 | 0.037392 | 0.272395 | 3,014 | 66 | 177 | 45.666667 | 0.73461 | 0.01493 | 0 | 0.431034 | 1 | 0 | 0.144253 | 0.023256 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.017241 | 0.068966 | 0 | 0.155172 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
594e54dabf2640faf28d5b05514f00a78333fe7f | 768 | py | Python | apps/users/migrations/0005_auto_20190219_1844.py | bopopescu/diandian_online | 05eba122762c087623d42fad5352f6b67c73bcc5 | [
"BSD-3-Clause"
] | 3 | 2020-03-16T02:49:59.000Z | 2022-03-21T15:04:44.000Z | apps/users/migrations/0005_auto_20190219_1844.py | bopopescu/diandian_online | 05eba122762c087623d42fad5352f6b67c73bcc5 | [
"BSD-3-Clause"
] | 1 | 2020-12-10T08:04:25.000Z | 2020-12-10T08:04:25.000Z | apps/users/migrations/0005_auto_20190219_1844.py | bopopescu/diandian_online | 05eba122762c087623d42fad5352f6b67c73bcc5 | [
"BSD-3-Clause"
] | 2 | 2020-05-01T08:16:25.000Z | 2020-07-21T00:12:06.000Z | # Generated by Django 2.1.7 on 2019-02-19 18:44
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0004_auto_20190218_1809'),
]
operations = [
migrations.AlterField(
model_name='userprofiles',
name='head_po... | 32 | 191 | 0.639323 | 91 | 768 | 5.230769 | 0.571429 | 0.07563 | 0.10084 | 0.132353 | 0.216387 | 0.216387 | 0 | 0 | 0 | 0 | 0 | 0.062185 | 0.22526 | 768 | 23 | 192 | 33.391304 | 0.737815 | 0.058594 | 0 | 0.235294 | 1 | 0 | 0.284327 | 0.217753 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
59500f93b9c5b687955cc3c29172290348a94a63 | 1,793 | py | Python | tests/generateToyImages.py | sebastiengilbert73/PCA | 0dd2c7b0b6e86ac5c73077b6d518398a9fe41769 | [
"MIT"
] | null | null | null | tests/generateToyImages.py | sebastiengilbert73/PCA | 0dd2c7b0b6e86ac5c73077b6d518398a9fe41769 | [
"MIT"
] | null | null | null | tests/generateToyImages.py | sebastiengilbert73/PCA | 0dd2c7b0b6e86ac5c73077b6d518398a9fe41769 | [
"MIT"
] | null | null | null | import argparse
import ast
import os
import numpy as np
import cv2
parser = argparse.ArgumentParser()
parser.add_argument('OutputDirectory', help='The directory where the generated images will be saved')
parser.add_argument('--numberOfImages', help='The number of generated images. Default: 100', type=int, default=100)... | 47.184211 | 115 | 0.706637 | 227 | 1,793 | 5.497797 | 0.361233 | 0.050481 | 0.095353 | 0.043269 | 0.153045 | 0.153045 | 0.153045 | 0.153045 | 0.153045 | 0.089744 | 0 | 0.052461 | 0.138873 | 1,793 | 38 | 116 | 47.184211 | 0.755829 | 0 | 0 | 0 | 1 | 0 | 0.25641 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.172414 | 0 | 0.206897 | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3ca1b2138601eea8976626b4c8eab365965e16fa | 4,291 | py | Python | Competitive Programming/System Design/Design Authentication Manager.py | shreejitverma/GeeksforGeeks | d7bcb166369fffa9a031a258e925b6aff8d44e6c | [
"MIT"
] | 2 | 2022-02-18T05:14:28.000Z | 2022-03-08T07:00:08.000Z | Competitive Programming/System Design/Design Authentication Manager.py | shivaniverma1/Competitive-Programming-1 | d7bcb166369fffa9a031a258e925b6aff8d44e6c | [
"MIT"
] | 6 | 2022-01-13T04:31:04.000Z | 2022-03-12T01:06:16.000Z | Competitive Programming/System Design/Design Authentication Manager.py | shivaniverma1/Competitive-Programming-1 | d7bcb166369fffa9a031a258e925b6aff8d44e6c | [
"MIT"
] | 2 | 2022-02-14T19:53:53.000Z | 2022-02-18T05:14:30.000Z | '''https://leetcode.com/problems/design-authentication-manager/
1797. Design Authentication Manager
Medium
120
23
Add to List
Share
There is an authentication system that works with authentication tokens. For each session, the user will receive a new authentication token that will expire timeToLive seconds after t... | 40.866667 | 332 | 0.713354 | 551 | 4,291 | 5.490018 | 0.288566 | 0.021818 | 0.037025 | 0.031405 | 0.237355 | 0.181157 | 0.140165 | 0.11438 | 0.11438 | 0.090579 | 0 | 0.019762 | 0.198089 | 4,291 | 104 | 333 | 41.259615 | 0.859343 | 0.762759 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.05 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3ca8394ae14fd853a9db1fef7045c95605b99956 | 2,520 | py | Python | tests/unit/operations/test_spotops.py | senstb/aws-elastic-beanstalk-cli | ef27ae50e8be34ccbe29bc6dc421323bddc3f485 | [
"Apache-2.0"
] | 110 | 2020-01-15T22:58:46.000Z | 2022-03-27T20:47:33.000Z | tests/unit/operations/test_spotops.py | senstb/aws-elastic-beanstalk-cli | ef27ae50e8be34ccbe29bc6dc421323bddc3f485 | [
"Apache-2.0"
] | 89 | 2020-01-15T23:18:34.000Z | 2022-03-31T21:56:05.000Z | tests/unit/operations/test_spotops.py | senstb/aws-elastic-beanstalk-cli | ef27ae50e8be34ccbe29bc6dc421323bddc3f485 | [
"Apache-2.0"
] | 50 | 2020-01-15T22:58:53.000Z | 2022-02-11T17:39:28.000Z | # Copyright 2019 Amazon.com, Inc. or its affiliates. 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. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file accompa... | 36.521739 | 119 | 0.730952 | 323 | 2,520 | 5.321981 | 0.315789 | 0.158813 | 0.128563 | 0.166376 | 0.588133 | 0.588133 | 0.570681 | 0.482839 | 0.383944 | 0.383944 | 0 | 0.005967 | 0.201984 | 2,520 | 68 | 120 | 37.058824 | 0.848831 | 0.212698 | 0 | 0.458333 | 0 | 0 | 0.119736 | 0.101471 | 0 | 0 | 0 | 0 | 0.145833 | 1 | 0.083333 | false | 0.020833 | 0.125 | 0 | 0.229167 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3cab7680c3ae81f092c3579d632cf7c6d3990bf8 | 289 | py | Python | setup.py | Tamlyn78/geo | dd63372acdd1fe8b744c05eca5ad23836e6a1604 | [
"MIT"
] | null | null | null | setup.py | Tamlyn78/geo | dd63372acdd1fe8b744c05eca5ad23836e6a1604 | [
"MIT"
] | null | null | null | setup.py | Tamlyn78/geo | dd63372acdd1fe8b744c05eca5ad23836e6a1604 | [
"MIT"
] | null | null | null | from setuptools import setup
setup(name='geo',
version='0.1',
description='Useful geoprospection processing methods',
author='Sam Player',
author_email='samplayer@geoprospection.com.au',
license='MIT',
packages=['geo'],
zip_safe=False)
| 26.272727 | 62 | 0.633218 | 31 | 289 | 5.83871 | 0.870968 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009091 | 0.238754 | 289 | 10 | 63 | 28.9 | 0.813636 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.111111 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3cabf6ce48535d222de62b2792a623cd8ceebf46 | 1,533 | py | Python | tests/common/tracing/test_tracing_helpers.py | iciac/concrete-numpy | debf888e9281263b731cfc4b31feb5de7ec7f47a | [
"FTL"
] | 96 | 2022-01-12T15:07:50.000Z | 2022-03-16T04:00:09.000Z | tests/common/tracing/test_tracing_helpers.py | iciac/concrete-numpy | debf888e9281263b731cfc4b31feb5de7ec7f47a | [
"FTL"
] | 10 | 2022-02-04T16:26:37.000Z | 2022-03-25T14:08:01.000Z | tests/common/tracing/test_tracing_helpers.py | iciac/concrete-numpy | debf888e9281263b731cfc4b31feb5de7ec7f47a | [
"FTL"
] | 8 | 2022-01-12T15:07:55.000Z | 2022-03-05T00:46:16.000Z | """Test file for common tracing helpers"""
from typing import Any, Dict, List
import pytest
from concrete.common.tracing.tracing_helpers import prepare_function_parameters
@pytest.mark.parametrize(
"function,function_parameters,ref_dict",
[
pytest.param(lambda x: None, {}, {}, id="Missing x", marks... | 34.066667 | 99 | 0.652968 | 194 | 1,533 | 4.969072 | 0.226804 | 0.242739 | 0.074689 | 0.041494 | 0.533195 | 0.437759 | 0.19917 | 0.143154 | 0.143154 | 0 | 0 | 0 | 0.183301 | 1,533 | 44 | 100 | 34.840909 | 0.769968 | 0.075016 | 0 | 0.25 | 0 | 0 | 0.10271 | 0.062054 | 0 | 0 | 0 | 0 | 0.0625 | 1 | 0.0625 | false | 0 | 0.09375 | 0 | 0.15625 | 0 | 0 | 0 | 0 | null | 1 | 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 | 0 | 1 |
3cac83464c4ed1ce6835b72fec06a20e931f71ca | 504 | py | Python | tests/fixtures/__init__.py | greg-reese/chaostoolkit-google-cloud-platform | da55e1af2c1eff37e401dffee20fbe2683af9343 | [
"Apache-2.0"
] | 5 | 2019-12-14T22:37:02.000Z | 2021-06-21T06:43:12.000Z | tests/fixtures/__init__.py | greg-reese/chaostoolkit-google-cloud-platform | da55e1af2c1eff37e401dffee20fbe2683af9343 | [
"Apache-2.0"
] | 8 | 2019-12-09T13:25:43.000Z | 2020-01-23T21:12:33.000Z | tests/fixtures/__init__.py | greg-reese/chaostoolkit-google-cloud-platform | da55e1af2c1eff37e401dffee20fbe2683af9343 | [
"Apache-2.0"
] | 3 | 2019-12-23T19:27:53.000Z | 2022-03-28T14:05:11.000Z | # -*- coding: utf-8 -*-
from fixtures import cloudbuild
from fixtures import nodepool
from fixtures import sql
from fixtures import storage
secrets = {
"service_account_file": "tests/fixtures/fake_creds.json"
}
secrets_with_k8s = {
"service_account_file": "tests/fixtures/fake_creds.json",
"KUBERNETES_CONT... | 21.913043 | 61 | 0.708333 | 62 | 504 | 5.5 | 0.596774 | 0.140762 | 0.211144 | 0.134897 | 0.258065 | 0.258065 | 0.258065 | 0.258065 | 0 | 0 | 0 | 0.009412 | 0.156746 | 504 | 22 | 62 | 22.909091 | 0.792941 | 0.041667 | 0 | 0 | 0 | 0 | 0.459459 | 0.12474 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.235294 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3cad7e4e7c59900a9a5c20c03aa11c534a077a36 | 950 | py | Python | rest_api_models.py | Bariumm/Stocks-Pattern-Analyzer | 9d601dadd103be03bba8997f698ce944c7a088a2 | [
"MIT"
] | 136 | 2021-03-19T00:21:23.000Z | 2022-03-28T16:42:10.000Z | rest_api_models.py | Bariumm/Stocks-Pattern-Analyzer | 9d601dadd103be03bba8997f698ce944c7a088a2 | [
"MIT"
] | 11 | 2021-03-21T22:21:42.000Z | 2022-01-07T15:44:19.000Z | rest_api_models.py | Bariumm/Stocks-Pattern-Analyzer | 9d601dadd103be03bba8997f698ce944c7a088a2 | [
"MIT"
] | 56 | 2021-03-21T21:17:15.000Z | 2022-03-22T07:39:13.000Z | from datetime import datetime
from typing import List, Optional
from pydantic import BaseModel
class SuccessResponse(BaseModel):
message: str = "Successful"
class SearchWindowSizeResponse(BaseModel):
sizes: List[int]
class AvailableSymbolsResponse(BaseModel):
symbols: List[str]
class MatchResponse(... | 19.791667 | 47 | 0.728421 | 105 | 950 | 6.47619 | 0.466667 | 0.057353 | 0.055882 | 0.067647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192632 | 950 | 47 | 48 | 20.212766 | 0.886571 | 0 | 0 | 0 | 0 | 0 | 0.037895 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.09375 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3cae0a60bd8db3497fb92e3ee680f4650f4cb0fa | 670 | py | Python | scripts/preprocessing.py | Hrovatin/scib | 173d282bf17d7ff36e072c7cf8b1d6a40f811447 | [
"MIT"
] | 1 | 2020-10-12T10:25:38.000Z | 2020-10-12T10:25:38.000Z | scripts/preprocessing.py | Hrovatin/scib | 173d282bf17d7ff36e072c7cf8b1d6a40f811447 | [
"MIT"
] | 1 | 2020-10-14T11:45:54.000Z | 2020-10-14T14:45:39.000Z | scripts/preprocessing.py | Hrovatin/scib | 173d282bf17d7ff36e072c7cf8b1d6a40f811447 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
import argparse
import scipy
import anndata
parser = argparse.ArgumentParser(description='Normalisation with scran')
parser.add_argument('-i', '--input_file', required=True)
parser.add_argument('-o', '--output_file', required=True)
args = parser.parse_args()
import pandas as pd
... | 24.814815 | 85 | 0.765672 | 98 | 670 | 5.142857 | 0.561224 | 0.035714 | 0.06746 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003317 | 0.1 | 670 | 26 | 86 | 25.769231 | 0.832504 | 0.071642 | 0 | 0 | 0 | 0 | 0.106624 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.352941 | 0 | 0.352941 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
3cb275861b96727fee0af02256071aa94549c707 | 1,687 | py | Python | setup.py | topteulen/timely-beliefs | 02bc77041f418fd9566c141891daec3d5361a714 | [
"MIT"
] | 1 | 2021-02-08T18:47:41.000Z | 2021-02-08T18:47:41.000Z | setup.py | Flix6x/timely-beliefs | 586143ca66db874269312c96267d1490883defc3 | [
"MIT"
] | null | null | null | setup.py | Flix6x/timely-beliefs | 586143ca66db874269312c96267d1490883defc3 | [
"MIT"
] | 1 | 2019-06-24T13:35:30.000Z | 2019-06-24T13:35:30.000Z | from setuptools import setup
setup(
name="timely-beliefs",
description="Data modelled as beliefs (at a certain time) about events (at a certain time).",
author="Seita BV",
author_email="felix@seita.nl",
keywords=[
"time series",
"forecasting",
"analytics",
"visualiza... | 29.596491 | 110 | 0.591583 | 162 | 1,687 | 6.067901 | 0.660494 | 0.105799 | 0.020346 | 0.028484 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009901 | 0.281565 | 1,687 | 56 | 111 | 30.125 | 0.801155 | 0 | 0 | 0.072727 | 0 | 0 | 0.575578 | 0.101956 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.018182 | 0 | 0.018182 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3cbadb46d235754a62f75bc0896e4ae1213bb4ec | 935 | py | Python | RIT33PYT/Codigo_1/DesignPattern/visitante.py | Sbastdia/Ejercicios-probables-examen | 1074dcb08c5daf7bda0c0e9bbacb96c991895f32 | [
"Apache-2.0"
] | null | null | null | RIT33PYT/Codigo_1/DesignPattern/visitante.py | Sbastdia/Ejercicios-probables-examen | 1074dcb08c5daf7bda0c0e9bbacb96c991895f32 | [
"Apache-2.0"
] | null | null | null | RIT33PYT/Codigo_1/DesignPattern/visitante.py | Sbastdia/Ejercicios-probables-examen | 1074dcb08c5daf7bda0c0e9bbacb96c991895f32 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python3
# -*- coding: utf-8 -*-
"""
Patrón de diseño Visitante
"""
__author__ = "Sébastien CHAZALLET"
__copyright__ = "Copyright 2012"
__credits__ = ["Sébastien CHAZALLET", "InsPyration.org", "Ediciones ENI"]
__license__ = "GPL"
__version__ = "1.0"
__maintainer__ = "Sébastien CHAZALLET"
__email__ = "seba... | 20.777778 | 73 | 0.737968 | 102 | 935 | 6.45098 | 0.490196 | 0.082067 | 0.06383 | 0.085106 | 0.294833 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014724 | 0.128342 | 935 | 44 | 74 | 21.25 | 0.792638 | 0.070588 | 0 | 0.214286 | 0 | 0 | 0.236321 | 0.036088 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0 | 0 | 0.428571 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3cbadcd33b9975e18ae7f9d736ce98ac6d604013 | 485 | py | Python | setup.py | mindscale/worin | 3c1a16323013a0689f0fb317138c547bc4f84106 | [
"MIT"
] | null | null | null | setup.py | mindscale/worin | 3c1a16323013a0689f0fb317138c547bc4f84106 | [
"MIT"
] | null | null | null | setup.py | mindscale/worin | 3c1a16323013a0689f0fb317138c547bc4f84106 | [
"MIT"
] | null | null | null | from setuptools import setup
setup(name='worin',
version='0.1.0',
description='A Korean POS Tagger using Neural Network',
author='YU Jaemyoung',
author_email='yu@mindscale.kr',
url='https://github.com/mindscale/worin',
packages=['worin'],
package_data={
'': ['*.txt',... | 23.095238 | 61 | 0.513402 | 47 | 485 | 5.212766 | 0.829787 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011976 | 0.31134 | 485 | 20 | 62 | 24.25 | 0.721557 | 0 | 0 | 0 | 0 | 0 | 0.31134 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.052632 | 0 | 0.052632 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3cbb95ce11ee838b9f06ea85357711b597417d34 | 5,239 | py | Python | backend/moonstream/routes/users.py | peersky/moonstock | 9b1a61f8ad67bfcaf6f461cad49bcc9a71cc968c | [
"Apache-2.0"
] | 2 | 2021-08-03T16:11:07.000Z | 2021-12-13T08:32:06.000Z | backend/moonstream/routes/users.py | peersky/moonstock | 9b1a61f8ad67bfcaf6f461cad49bcc9a71cc968c | [
"Apache-2.0"
] | null | null | null | backend/moonstream/routes/users.py | peersky/moonstock | 9b1a61f8ad67bfcaf6f461cad49bcc9a71cc968c | [
"Apache-2.0"
] | null | null | null | """
The Moonstream users HTTP API
"""
import logging
from typing import Any, Dict
import uuid
from bugout.data import BugoutToken, BugoutUser
from bugout.exceptions import BugoutResponseException
from fastapi import (
FastAPI,
Form,
HTTPException,
Request,
)
from fastapi.middleware.cors import CORSMidd... | 30.459302 | 86 | 0.692499 | 613 | 5,239 | 5.745514 | 0.164763 | 0.059625 | 0.0318 | 0.083475 | 0.473027 | 0.432993 | 0.432993 | 0.338728 | 0.338728 | 0.338728 | 0 | 0.004966 | 0.192785 | 5,239 | 171 | 87 | 30.637427 | 0.827855 | 0.005535 | 0 | 0.365517 | 0 | 0 | 0.075932 | 0.020761 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.144828 | 0.068966 | 0 | 0.124138 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
3cbceb1230519eb71beb5fd15f4af9c34860775d | 828 | py | Python | WeChatSpider/cookies/cookies_gen.py | Times125/wechatSpider | 141a37efe6877962da78297132cc06cfcfa04d65 | [
"BSD-3-Clause"
] | 18 | 2018-09-09T11:55:02.000Z | 2019-11-09T08:53:09.000Z | WeChatSpider/cookies/cookies_gen.py | Times125/wechatSpider | 141a37efe6877962da78297132cc06cfcfa04d65 | [
"BSD-3-Clause"
] | 1 | 2019-07-22T01:06:51.000Z | 2019-11-16T13:10:48.000Z | WeChatSpider/cookies/cookies_gen.py | Times125/wechatSpider | 141a37efe6877962da78297132cc06cfcfa04d65 | [
"BSD-3-Clause"
] | 6 | 2018-10-16T01:30:59.000Z | 2020-05-08T09:56:48.000Z | #! /usr/bin/env python
# -*- coding: utf-8 -*-
"""
@Author:_defined
@Time: 2018/10/12 15:02
@Description:
"""
import hashlib
import random
import time
from werkzeug.contrib.cache import FileSystemCache
__all__ = ['suv_gen', 'CookiesCache']
def suv_gen():
mills = round(time.time() * 1000)
a = mills * 1e3
... | 20.7 | 77 | 0.629227 | 103 | 828 | 4.873786 | 0.592233 | 0.015936 | 0.083665 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040498 | 0.224638 | 828 | 39 | 78 | 21.230769 | 0.741433 | 0.136473 | 0 | 0 | 0 | 0 | 0.060781 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.190476 | 0 | 0.52381 | 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 | 1 | 0 | 0 | 1 |
3cbdf2df34316e94e09f39e3e8637631a7b57e35 | 447 | py | Python | test_pytrain/test_Template.py | pytrain/pytrain-shallow | c873a6f11f1dd940da12e7c9a3c961507d064d9a | [
"MIT"
] | 20 | 2016-09-03T10:56:06.000Z | 2020-08-21T01:43:47.000Z | test_pytrain/test_Template.py | pytrain/pytrain | c873a6f11f1dd940da12e7c9a3c961507d064d9a | [
"MIT"
] | 8 | 2016-11-14T12:33:38.000Z | 2017-07-14T15:43:53.000Z | test_pytrain/test_Template.py | pytrain/pytrain | c873a6f11f1dd940da12e7c9a3c961507d064d9a | [
"MIT"
] | 7 | 2017-02-09T16:50:37.000Z | 2022-01-02T01:18:56.000Z | #
# test template
#
# @ author becxer
# @ email becxer87@gmail.com
#
from test_pytrain import test_Suite
class test_Template(test_Suite):
def __init__(self, logging = True):
test_Suite.__init__(self, logging)
def test_process(self):
global_value = self.get_global_value('some_key')
se... | 20.318182 | 57 | 0.64877 | 56 | 447 | 4.785714 | 0.553571 | 0.100746 | 0.11194 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011905 | 0.248322 | 447 | 21 | 58 | 21.285714 | 0.785714 | 0.12528 | 0 | 0 | 0 | 0 | 0.114583 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.444444 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3cbe5606ba44835f45839d7ef8fcdbc9843a455d | 16,945 | py | Python | tests/base/test_mass_matrices.py | ElliotCheung/simpeg | ce5bde154179ca63798a62a12787a7ec3535472c | [
"MIT"
] | 1 | 2022-02-18T16:31:27.000Z | 2022-02-18T16:31:27.000Z | tests/base/test_mass_matrices.py | ElliotCheung/simpeg | ce5bde154179ca63798a62a12787a7ec3535472c | [
"MIT"
] | null | null | null | tests/base/test_mass_matrices.py | ElliotCheung/simpeg | ce5bde154179ca63798a62a12787a7ec3535472c | [
"MIT"
] | null | null | null | from SimPEG.base import with_property_mass_matrices, BasePDESimulation
from SimPEG import props, maps
import unittest
import discretize
import numpy as np
from scipy.constants import mu_0
from discretize.tests import check_derivative
from discretize.utils import Zero
# define a very simple class...
@with_property_mas... | 31.73221 | 87 | 0.571437 | 2,466 | 16,945 | 3.755474 | 0.084753 | 0.05183 | 0.057553 | 0.069539 | 0.791167 | 0.718605 | 0.665155 | 0.578987 | 0.552316 | 0.517439 | 0 | 0.01648 | 0.305282 | 16,945 | 533 | 88 | 31.791745 | 0.770217 | 0.0563 | 0 | 0.534031 | 0 | 0 | 0.003702 | 0 | 0 | 0 | 0 | 0 | 0.21466 | 1 | 0.102094 | false | 0 | 0.020942 | 0 | 0.172775 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 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 | 0 | 1 |
3ccf1f5081129a18352dedccd989ce9785658019 | 918 | py | Python | setup.py | alecx/nibeuplink | e7d976e64df94c230a7ab15336db653ae2bf8bd9 | [
"MIT"
] | null | null | null | setup.py | alecx/nibeuplink | e7d976e64df94c230a7ab15336db653ae2bf8bd9 | [
"MIT"
] | null | null | null | setup.py | alecx/nibeuplink | e7d976e64df94c230a7ab15336db653ae2bf8bd9 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup(
name='nibeuplink',
version='0.4.3',
description='A python wrapper around Nibe Uplink REST API',
license='MIT',
packages=find_packages('src'),
package_dir = {'': 'src'},
python_requires='>3.5',
author='Joakim Plate',
install_requires... | 24.810811 | 66 | 0.544662 | 83 | 918 | 5.927711 | 0.710843 | 0.04878 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009419 | 0.3061 | 918 | 36 | 67 | 25.5 | 0.762951 | 0 | 0 | 0 | 0 | 0 | 0.406318 | 0.037037 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.028571 | 0 | 0.028571 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3cd392229c6d1c03804a7b8db6b9997767d76489 | 2,355 | py | Python | projects/vdk-heartbeat/tests/vdk/internal/test_config.py | alod83/versatile-data-kit | 9ca672d3929eb3dc6fe5c677e8c8a75e2a0d2be8 | [
"Apache-2.0"
] | 100 | 2021-10-04T09:32:04.000Z | 2022-03-30T11:23:53.000Z | projects/vdk-heartbeat/tests/vdk/internal/test_config.py | alod83/versatile-data-kit | 9ca672d3929eb3dc6fe5c677e8c8a75e2a0d2be8 | [
"Apache-2.0"
] | 208 | 2021-10-04T16:56:40.000Z | 2022-03-31T10:41:44.000Z | projects/vdk-heartbeat/tests/vdk/internal/test_config.py | alod83/versatile-data-kit | 9ca672d3929eb3dc6fe5c677e8c8a75e2a0d2be8 | [
"Apache-2.0"
] | 14 | 2021-10-11T14:15:13.000Z | 2022-03-11T13:39:17.000Z | # Copyright 2021 VMware, Inc.
# SPDX-License-Identifier: Apache-2.0
import os
import tempfile
from unittest import mock
import pytest
from vdk.internal.heartbeat.config import Config
@mock.patch.dict(
os.environ,
{
"VDKCLI_OAUTH2_REFRESH_TOKEN": "some-test-token",
},
)
def test_get_atleast_one_va... | 24.789474 | 79 | 0.61189 | 290 | 2,355 | 4.706897 | 0.275862 | 0.095238 | 0.12381 | 0.171429 | 0.591209 | 0.538462 | 0.538462 | 0.497436 | 0.464469 | 0.407326 | 0 | 0.026027 | 0.265817 | 2,355 | 94 | 80 | 25.053191 | 0.763447 | 0.131635 | 0 | 0.403509 | 0 | 0 | 0.136936 | 0.028332 | 0 | 0 | 0 | 0 | 0.157895 | 1 | 0.035088 | false | 0 | 0.087719 | 0 | 0.122807 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3cd3bf4d37b90a5f6b84a59a470e41e05721d7ac | 3,828 | py | Python | flytekit/common/tasks/sagemaker/distributed_training.py | slai/flytekit | 9d73d096b748d263a638e6865d15db4880845305 | [
"Apache-2.0"
] | null | null | null | flytekit/common/tasks/sagemaker/distributed_training.py | slai/flytekit | 9d73d096b748d263a638e6865d15db4880845305 | [
"Apache-2.0"
] | 2 | 2021-06-26T04:32:43.000Z | 2021-07-14T04:47:52.000Z | flytekit/common/tasks/sagemaker/distributed_training.py | slai/flytekit | 9d73d096b748d263a638e6865d15db4880845305 | [
"Apache-2.0"
] | null | null | null | import json as _json
import os as _os
import retry as _retry
from flytekit.common.tasks import sdk_runnable as _sdk_runnable
from flytekit.engines import common as _common_engine
SM_RESOURCE_CONFIG_FILE = "/opt/ml/input/config/resourceconfig.json"
SM_ENV_VAR_CURRENT_HOST = "SM_CURRENT_HOST"
SM_ENV_VAR_HOSTS = "SM_HO... | 37.165049 | 119 | 0.753396 | 453 | 3,828 | 5.966887 | 0.300221 | 0.147614 | 0.192379 | 0.031077 | 0.45875 | 0.437662 | 0.352941 | 0.292268 | 0.258232 | 0.228635 | 0 | 0.002868 | 0.180251 | 3,828 | 102 | 120 | 37.529412 | 0.858509 | 0.161442 | 0 | 0.142857 | 0 | 0 | 0.040442 | 0.027488 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.071429 | 0.028571 | 0.342857 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3cef0b13eda51c4275aaab8b7ea773368b49f2a4 | 1,574 | py | Python | tiko/stats.py | rwhitt2049/thyro | 0ba4337260906b9fc962b7d16653886bf9bf67b9 | [
"MIT"
] | null | null | null | tiko/stats.py | rwhitt2049/thyro | 0ba4337260906b9fc962b7d16653886bf9bf67b9 | [
"MIT"
] | 3 | 2017-04-12T05:16:41.000Z | 2017-04-15T02:30:04.000Z | tiko/stats.py | rwhitt2049/tiko | 0ba4337260906b9fc962b7d16653886bf9bf67b9 | [
"MIT"
] | null | null | null | import numpy as np
from scipy import stats
__all__ = ['register_stat']
statistic_factory = {
'min': np.min,
'max': np.max,
'mean': np.mean,
'median': np.median,
'std': np.std,
'sum': np.sum,
'cumsum': np.cumsum,
}
def register_stat(func=None, name=None):
"""Function to register sta... | 19.195122 | 85 | 0.614358 | 211 | 1,574 | 4.469194 | 0.364929 | 0.089077 | 0.079533 | 0.040297 | 0.053022 | 0.053022 | 0.053022 | 0 | 0 | 0 | 0 | 0.003512 | 0.276366 | 1,574 | 81 | 86 | 19.432099 | 0.824407 | 0.349428 | 0 | 0.125 | 0 | 0 | 0.093096 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.175 | false | 0 | 0.05 | 0.125 | 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 | 1 | 0 | 0 | 0 | 1 |
3cf16f439c5f7867d5f63f03a20af8e11534b362 | 2,852 | py | Python | app/__init__.py | Mateus-Brito/flask-start | 3a772d65708c7ef050d4060db8182b88e6b7bc5f | [
"MIT"
] | 1 | 2021-11-22T17:40:39.000Z | 2021-11-22T17:40:39.000Z | app/__init__.py | Mateus-Brito/flask-start | 3a772d65708c7ef050d4060db8182b88e6b7bc5f | [
"MIT"
] | 1 | 2018-08-25T20:44:47.000Z | 2018-08-25T20:44:47.000Z | app/__init__.py | Mateus-Brito/flask-start | 3a772d65708c7ef050d4060db8182b88e6b7bc5f | [
"MIT"
] | null | null | null | from flask import Flask
import os
import sys
import os.path as path
from .views import start_controller
from .account import account_controller
from .dashboard import dashboard_controller
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import Column, String
from flask_migrate import Migrate
fr... | 29.102041 | 93 | 0.715638 | 359 | 2,852 | 5.501393 | 0.325905 | 0.031899 | 0.022785 | 0.020253 | 0.03038 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000432 | 0.18899 | 2,852 | 98 | 94 | 29.102041 | 0.853437 | 0.053997 | 0 | 0 | 0 | 0 | 0.058603 | 0.034936 | 0 | 0 | 0 | 0 | 0 | 1 | 0.084507 | false | 0.028169 | 0.338028 | 0.014085 | 0.478873 | 0.042254 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
3cf26eb3a30bb0f14fc79a4a5352074ec010f3c0 | 1,544 | py | Python | dvd_store/store.py | soundzofstatic/dvd_store | 815eda4d398fed06aab0e6522fbefba6d7c78797 | [
"MIT"
] | null | null | null | dvd_store/store.py | soundzofstatic/dvd_store | 815eda4d398fed06aab0e6522fbefba6d7c78797 | [
"MIT"
] | 1 | 2017-11-20T22:02:36.000Z | 2017-11-20T22:02:36.000Z | dvd_store/store.py | soundzofstatic/dvd_store | 815eda4d398fed06aab0e6522fbefba6d7c78797 | [
"MIT"
] | null | null | null | import csv
class Store:
__INVENTORY_FILE = "products.csv"
def __init__(self, name, taxRate):
self.__Inventory = self.auditInventory()
self.__name = name
self.__taxRate = taxRate
def getName(self):
return self.__name
def getTaxRate(self):
re... | 29.132075 | 80 | 0.487047 | 131 | 1,544 | 5.51145 | 0.358779 | 0.055402 | 0.058172 | 0.058172 | 0.085873 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005639 | 0.310881 | 1,544 | 52 | 81 | 29.692308 | 0.672932 | 0 | 0 | 0.307692 | 0 | 0 | 0.170912 | 0.107239 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.025641 | 0.076923 | 0.410256 | 0.179487 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3cf56116b2b82159afb62c210bc943cbc8a3e393 | 10,930 | py | Python | applications/plugins/SofaPython/python/SofaPython/Tools.py | sofa-framework/issofa | 94855f488465bc3ed41223cbde987581dfca5389 | [
"OML"
] | null | null | null | applications/plugins/SofaPython/python/SofaPython/Tools.py | sofa-framework/issofa | 94855f488465bc3ed41223cbde987581dfca5389 | [
"OML"
] | null | null | null | applications/plugins/SofaPython/python/SofaPython/Tools.py | sofa-framework/issofa | 94855f488465bc3ed41223cbde987581dfca5389 | [
"OML"
] | null | null | null | import Sofa
import os, os.path
import json
import glob
import units
def listToStr(x):
""" concatenate lists for use with data.
"""
return ' '.join(map(str, x))
def listListToStr(xx):
""" concatenate lists of list for use with data.
"""
str_xx=""
for x in xx:
str_xx += listToStr(x... | 38.350877 | 225 | 0.607045 | 1,253 | 10,930 | 5.242618 | 0.215483 | 0.010961 | 0.023139 | 0.029228 | 0.363678 | 0.318618 | 0.278581 | 0.222104 | 0.213274 | 0.193789 | 0 | 0.002348 | 0.298719 | 10,930 | 284 | 226 | 38.485915 | 0.854664 | 0.084446 | 0 | 0.362162 | 0 | 0 | 0.085583 | 0.006366 | 0 | 0 | 0 | 0.003521 | 0 | 0 | null | null | 0 | 0.027027 | null | null | 0.048649 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3cfd59b73fa9ef6cea65d5ee9eae43691e52fa8e | 1,621 | py | Python | handlers/signup.py | kevink1986/my-first-blog | 5ae0ef8c583253809b744974e8caea12f64f040a | [
"Apache-2.0"
] | null | null | null | handlers/signup.py | kevink1986/my-first-blog | 5ae0ef8c583253809b744974e8caea12f64f040a | [
"Apache-2.0"
] | null | null | null | handlers/signup.py | kevink1986/my-first-blog | 5ae0ef8c583253809b744974e8caea12f64f040a | [
"Apache-2.0"
] | null | null | null | from base import BaseHandler
from functions import *
from models import User
class SignupHandler(BaseHandler):
"""Sign up handler that is used to signup users."""
def get(self):
self.render("signup.html")
def post(self):
error = False
self.username = self.request.get("username")
... | 32.42 | 77 | 0.571869 | 182 | 1,621 | 4.989011 | 0.313187 | 0.092511 | 0.093612 | 0.044053 | 0.171806 | 0.099119 | 0.099119 | 0 | 0 | 0 | 0 | 0 | 0.324491 | 1,621 | 49 | 78 | 33.081633 | 0.829224 | 0.027761 | 0 | 0.131579 | 0 | 0 | 0.166879 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0.184211 | 0.078947 | 0 | 0.157895 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
3cfda2ab150938661dfd382689de7857d242d863 | 722 | py | Python | medium/3Sum/solution.py | ashutosh1919/leetcode-problems | 65f99a3694549af88c7702b598de1a8ccb7db5fb | [
"MIT"
] | 8 | 2021-08-21T19:10:04.000Z | 2022-03-11T14:30:02.000Z | medium/3Sum/solution.py | ashutosh1919/leetcode-problems | 65f99a3694549af88c7702b598de1a8ccb7db5fb | [
"MIT"
] | null | null | null | medium/3Sum/solution.py | ashutosh1919/leetcode-problems | 65f99a3694549af88c7702b598de1a8ccb7db5fb | [
"MIT"
] | 1 | 2021-08-24T06:29:02.000Z | 2021-08-24T06:29:02.000Z | # Time complexity: O(n^2)
# Approach: Fix one and then based on that loop over other numbers.
class Solution:
def threeSum(self, nums: List[int]) -> List[List[int]]:
n = len(nums)
if n < 3:
return []
nums = sorted(nums)
ans = []
for k in range(n):
tar... | 28.88 | 67 | 0.372576 | 87 | 722 | 3.091954 | 0.517241 | 0.052045 | 0.066915 | 0.074349 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022727 | 0.512465 | 722 | 25 | 68 | 28.88 | 0.741477 | 0.123269 | 0 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0 | 0 | 0.190476 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a700e205a9c7a5799b7fc2b4d4d162e51e418596 | 2,387 | py | Python | codes/28-dict_methods.py | kaixiang1992/python-learning | c74aa4bec0c72e26cf18f138e6faf110ed64d8c0 | [
"MIT"
] | null | null | null | codes/28-dict_methods.py | kaixiang1992/python-learning | c74aa4bec0c72e26cf18f138e6faf110ed64d8c0 | [
"MIT"
] | 7 | 2020-06-05T23:24:41.000Z | 2021-06-10T19:02:09.000Z | codes/28-dict_methods.py | kaixiang1992/python-learning | c74aa4bec0c72e26cf18f138e6faf110ed64d8c0 | [
"MIT"
] | null | null | null | '''
@description 2019/09/14 13:38
'''
# 字典常用方法:
# 1.clear:清除字典所有的项。
person1 = {'username': 'zhiliao', 'age': 18, 'weight': 160, 'height': 180}
person2 = person1
print(person1) # {'username': 'zhiliao', 'age': 18}
print(person2) # {'username': 'zhiliao', 'age': 18}
# 使用clear清除了,person1和person2的引用
# person1.clear()
#... | 27.125 | 118 | 0.663594 | 291 | 2,387 | 5.37457 | 0.305842 | 0.11509 | 0.103581 | 0.11509 | 0.37532 | 0.350384 | 0.262788 | 0.200767 | 0.160486 | 0.113171 | 0 | 0.046556 | 0.11814 | 2,387 | 88 | 119 | 27.125 | 0.696437 | 0.524927 | 0 | 0.277778 | 0 | 0 | 0.223923 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.583333 | 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 | 1 | 0 | 1 |
a70c00f0499d26125fdbc930a9791b5f8bc5a504 | 3,310 | py | Python | operators/trainer.py | ys10/Tacotron-cn | 0420aedb3c04359327de58b978198846e7c1a887 | [
"MIT"
] | 2 | 2019-03-07T12:15:16.000Z | 2020-12-14T06:15:31.000Z | operators/trainer.py | ys10/Tacotron-cn | 0420aedb3c04359327de58b978198846e7c1a887 | [
"MIT"
] | null | null | null | operators/trainer.py | ys10/Tacotron-cn | 0420aedb3c04359327de58b978198846e7c1a887 | [
"MIT"
] | null | null | null | # coding=utf-8
from tqdm import tqdm
from base.base_train import BaseTrain
from utils.signal_process import plot_alignment
class TacotronTrainer(BaseTrain):
def __init__(self, sess, model, data_loader, config, logger):
super(TacotronTrainer, self).__init__(sess, model, data_loader, config, logger)
d... | 60.181818 | 111 | 0.380967 | 285 | 3,310 | 4.182456 | 0.301754 | 0.090604 | 0.046141 | 0.04698 | 0.313758 | 0.218121 | 0.112416 | 0.112416 | 0.112416 | 0.112416 | 0 | 0.004093 | 0.5571 | 3,310 | 54 | 112 | 61.296296 | 0.809004 | 0.099094 | 0 | 0 | 0 | 0 | 0.016546 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a717679840f2938ddc7b6a5532630dcbe4637b41 | 3,072 | py | Python | lib/smisk/serialization/yaml_serial.py | rsms/smisk | f12a5606dfff49a15fa91448ff36652d60add4c0 | [
"MIT"
] | 4 | 2015-11-05T11:51:12.000Z | 2020-12-30T18:55:58.000Z | lib/smisk/serialization/yaml_serial.py | rsms/smisk | f12a5606dfff49a15fa91448ff36652d60add4c0 | [
"MIT"
] | 5 | 2021-11-16T17:21:51.000Z | 2021-11-16T17:22:09.000Z | lib/smisk/serialization/yaml_serial.py | rsms/smisk | f12a5606dfff49a15fa91448ff36652d60add4c0 | [
"MIT"
] | null | null | null | # encoding: utf-8
'''
YAML: Human-readable data serialization
:see: `YAML 1.1 <http://yaml.org/spec/1.1/>`__
:requires: `PyYAML <http://pyyaml.org/wiki/PyYAML>`__
'''
import sys, logging
log = logging.getLogger(__name__)
from smisk.serialization import serializers, Serializer, data as opaque_data
__all__ = ['YAMLSeria... | 28.444444 | 92 | 0.65625 | 372 | 3,072 | 5.284946 | 0.376344 | 0.020346 | 0.017294 | 0.030519 | 0.070193 | 0.070193 | 0.070193 | 0.070193 | 0 | 0 | 0 | 0.014559 | 0.217448 | 3,072 | 107 | 93 | 28.71028 | 0.803245 | 0.05957 | 0 | 0.219512 | 0 | 0 | 0.142698 | 0.017094 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.109756 | null | null | 0.02439 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a7180f2e28081ba2129c4d33aa0b16ccdcd93095 | 883 | py | Python | tafl/pitTafl.py | user01/alpha-zero-general | 7edf122015e02a2e78168ac9f6eaa5c5e20600cc | [
"MIT"
] | 2,836 | 2017-12-18T02:11:38.000Z | 2022-03-30T09:07:15.000Z | tafl/pitTafl.py | user01/alpha-zero-general | 7edf122015e02a2e78168ac9f6eaa5c5e20600cc | [
"MIT"
] | 212 | 2017-12-28T06:47:57.000Z | 2022-01-06T20:22:26.000Z | tafl/pitTafl.py | user01/alpha-zero-general | 7edf122015e02a2e78168ac9f6eaa5c5e20600cc | [
"MIT"
] | 892 | 2017-12-18T08:56:45.000Z | 2022-03-29T23:00:45.000Z |
# Note: Run this file from Arena directory (the one above /tafl)
import Arena
from MCTS import MCTS
from tafl.TaflGame import TaflGame, display
from tafl.TaflPlayers import *
#from tafl.keras.NNet import NNetWrapper as NNet
import numpy as np
from utils import *
"""
use this script to play any two agents against ea... | 24.527778 | 80 | 0.732729 | 136 | 883 | 4.735294 | 0.551471 | 0.062112 | 0.046584 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026247 | 0.137033 | 883 | 35 | 81 | 25.228571 | 0.818898 | 0.455266 | 0 | 0 | 0 | 0 | 0.021622 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0.083333 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
a718d64033171f90d82517e49c05c5f79a5dbafc | 3,346 | py | Python | keepachangelog/flask_restx.py | Mulugruntz/keepachangelog | 3538c5b4beb433293352d084f4df7bcce4d02bf1 | [
"MIT"
] | 20 | 2020-02-19T20:22:06.000Z | 2022-01-28T22:20:37.000Z | keepachangelog/flask_restx.py | Mulugruntz/keepachangelog | 3538c5b4beb433293352d084f4df7bcce4d02bf1 | [
"MIT"
] | 29 | 2020-02-19T20:27:39.000Z | 2022-02-05T17:26:14.000Z | keepachangelog/flask_restx.py | Mulugruntz/keepachangelog | 3538c5b4beb433293352d084f4df7bcce4d02bf1 | [
"MIT"
] | 6 | 2020-02-24T16:37:37.000Z | 2022-01-28T22:38:39.000Z | from typing import Union
import flask_restx
import flask
from keepachangelog._changelog import to_dict
def add_changelog_endpoint(
namespace: Union[flask_restx.Namespace, flask_restx.Api], changelog_path: str
):
"""
Create /changelog: Changelog endpoint parsing https://keepachangelog.com/en/1.0.0/
... | 39.833333 | 101 | 0.382546 | 204 | 3,346 | 6.142157 | 0.401961 | 0.151636 | 0.178771 | 0.122905 | 0.280128 | 0.253791 | 0.253791 | 0.253791 | 0.253791 | 0 | 0 | 0.011772 | 0.543036 | 3,346 | 83 | 102 | 40.313253 | 0.807717 | 0.060072 | 0 | 0.217391 | 0 | 0 | 0.111003 | 0.016181 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028986 | false | 0 | 0.057971 | 0 | 0.130435 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a72aec9092eb2dbc275b499d16a6d37f5b58cd35 | 791 | py | Python | nocloud/cloud_init/models/vendor_data.py | chong601/NoCloud | 98fa5fba5220c5f98a7c55974161c2285615ac1f | [
"MIT"
] | 14 | 2021-02-24T00:11:01.000Z | 2021-06-19T09:58:06.000Z | nocloud/cloud_init/models/vendor_data.py | chong601/NoCloud | 98fa5fba5220c5f98a7c55974161c2285615ac1f | [
"MIT"
] | 1 | 2021-03-05T00:12:55.000Z | 2021-03-05T00:17:16.000Z | nocloud/cloud_init/models/vendor_data.py | chong601/NoCloud | 98fa5fba5220c5f98a7c55974161c2285615ac1f | [
"MIT"
] | 3 | 2021-02-24T00:23:32.000Z | 2021-03-02T09:09:33.000Z | from abc import ABC
from passlib.hash import sha512_crypt
from .base_generator import BaseGenerator
class VendorDataGenerator(BaseGenerator, ABC):
def __init__(self, password, hostname, require_update=True, require_upgrade=True, require_reboot=True):
self.password = sha512_crypt.hash(password)
se... | 41.631579 | 120 | 0.738306 | 93 | 791 | 6.010753 | 0.344086 | 0.118068 | 0.071556 | 0.085868 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010836 | 0.183312 | 791 | 18 | 121 | 43.944444 | 0.854489 | 0 | 0 | 0 | 0 | 0 | 0.013906 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.285714 | 0.214286 | 0 | 0.428571 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.