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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1fefe93a83946a3206069038430d6c84376a5ff0 | 298 | py | Python | demo/auth/__init__.py | yangfan9702/cibo | 2a2a416c222e4604500a35ebe7155e2aaf78e055 | [
"MIT"
] | null | null | null | demo/auth/__init__.py | yangfan9702/cibo | 2a2a416c222e4604500a35ebe7155e2aaf78e055 | [
"MIT"
] | null | null | null | demo/auth/__init__.py | yangfan9702/cibo | 2a2a416c222e4604500a35ebe7155e2aaf78e055 | [
"MIT"
] | null | null | null | from demo.exceptions import AuthException
def token_auth(fn):
def wrapper(*args, **kwargs):
from flask import request
if request.headers.get("token", None) != "123":
raise AuthException("Fail to get access")
return fn(*args, **kwargs)
return wrapper
| 22.923077 | 55 | 0.634228 | 36 | 298 | 5.222222 | 0.666667 | 0.106383 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013514 | 0.255034 | 298 | 12 | 56 | 24.833333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0.087248 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
1ff27dcfcf579c5e26b76715da4a98354ab9beca | 452 | py | Python | kite-python/kite_ml/kite/utils/reduce.py | kiteco/kiteco-public | 74aaf5b9b0592153b92f7ed982d65e15eea885e3 | [
"BSD-3-Clause"
] | 17 | 2022-01-10T11:01:50.000Z | 2022-03-25T03:21:08.000Z | kite-python/kite_ml/kite/utils/reduce.py | kiteco/kiteco-public | 74aaf5b9b0592153b92f7ed982d65e15eea885e3 | [
"BSD-3-Clause"
] | 1 | 2022-01-13T14:28:47.000Z | 2022-01-13T14:28:47.000Z | kite-python/kite_ml/kite/utils/reduce.py | kiteco/kiteco-public | 74aaf5b9b0592153b92f7ed982d65e15eea885e3 | [
"BSD-3-Clause"
] | 7 | 2022-01-07T03:58:10.000Z | 2022-03-24T07:38:20.000Z | import tensorflow as tf
def is_empty(x: tf.Tensor) -> tf.Tensor:
return tf.equal(tf.reduce_sum(tf.shape(x)), 0)
def safe_reduce_mean(x: tf.Tensor, value: float, name: str) -> tf.Tensor:
# need conditional in case the tensor is empty to avoid nans
with tf.name_scope('{}_safe_mean'.format(name)):
... | 32.285714 | 81 | 0.650442 | 73 | 452 | 3.876712 | 0.506849 | 0.113074 | 0.056537 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002833 | 0.219027 | 452 | 14 | 82 | 32.285714 | 0.798867 | 0.128319 | 0 | 0 | 0 | 0 | 0.030534 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0.111111 | 0.555556 | 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 | 1 | 0 | 0 | 0 | 2 |
1fffd4b152170ef3e7181621339e07434a4fe08d | 914 | py | Python | lltk/corpus/fanfic/fanfic.py | literarylab/lltk | 0e516d7fa0978c1a3bd2cb7636f0089772e515ec | [
"MIT"
] | 5 | 2021-03-15T21:05:06.000Z | 2022-03-04T10:52:16.000Z | lltk/corpus/fanfic/fanfic.py | literarylab/lltk | 0e516d7fa0978c1a3bd2cb7636f0089772e515ec | [
"MIT"
] | 1 | 2021-05-04T17:01:47.000Z | 2021-05-10T15:14:55.000Z | lltk/corpus/fanfic/fanfic.py | literarylab/lltk | 0e516d7fa0978c1a3bd2cb7636f0089772e515ec | [
"MIT"
] | null | null | null | import os
import lltk
from lltk.text.text import Text
from lltk.corpus.corpus import Corpus
class TextFanFic(Text):
pass
class FanFic(Corpus):
TEXT_CLASS=TextFanFic
def compile(self,**attrs):
"""
This is a custom installation function. By default, it will simply try to download itself,
unless a custom f... | 24.702703 | 104 | 0.702407 | 134 | 914 | 4.768657 | 0.552239 | 0.037559 | 0.040689 | 0.053208 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009032 | 0.152079 | 914 | 36 | 105 | 25.388889 | 0.815484 | 0.28884 | 0 | 0 | 0 | 0 | 0.11557 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0.052632 | 0.210526 | 0 | 0.578947 | 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 | 1 | 0 | 0 | 2 |
9513f9dac1a9c65916f58b7ad216a5fa91880bdb | 481 | py | Python | pymake/__init__.py | CallumJHays/pymake | 01dfed42e20cd05d4843425633b7c17828f924c4 | [
"MIT"
] | 1 | 2021-09-08T09:30:05.000Z | 2021-09-08T09:30:05.000Z | pymake/__init__.py | CallumJHays/pymake | 01dfed42e20cd05d4843425633b7c17828f924c4 | [
"MIT"
] | null | null | null | pymake/__init__.py | CallumJHays/pymake | 01dfed42e20cd05d4843425633b7c17828f924c4 | [
"MIT"
] | null | null | null | from .cache import TimestampCache
from .cli import cli
from .decorator import makes
from .environment import env, PATH
from .shell import sh
from .make import make, make_sync
from .targets import Makefile, Target, Dependencies, Group
from pathlib import Path
__FLAG_IS_PYMAKEFILE__ = True
__all__ = ["TimestampCache", ... | 32.066667 | 67 | 0.715177 | 60 | 481 | 5.433333 | 0.416667 | 0.042945 | 0.07362 | 0.190184 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16632 | 481 | 14 | 68 | 34.357143 | 0.812968 | 0 | 0 | 0 | 0 | 0 | 0.209979 | 0.045738 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
951b317d1e9b26480d295dc4cd0418ea19b479bf | 8,551 | py | Python | example/LSTMPoseMchine/converted/network_convert.py | ddddwee1/SULT | 0ff31b602d20dd8bc5cf4a6f4f5bc193d636e784 | [
"WTFPL"
] | 18 | 2017-12-19T07:55:17.000Z | 2020-03-12T11:07:45.000Z | example/LSTMPoseMchine/converted/network_convert.py | ddddwee1/SULT | 0ff31b602d20dd8bc5cf4a6f4f5bc193d636e784 | [
"WTFPL"
] | 1 | 2019-04-18T10:31:41.000Z | 2019-05-23T06:47:24.000Z | example/LSTMPoseMchine/converted/network_convert.py | ddddwee1/SULT | 0ff31b602d20dd8bc5cf4a6f4f5bc193d636e784 | [
"WTFPL"
] | 5 | 2018-06-06T00:51:48.000Z | 2020-03-12T11:07:46.000Z | import model3 as M
import numpy as np
import tensorflow as tf
params = np.load('lstmpm_d1.npy').item()
params2 = np.load('lstmpm_d2.npy').item()
def get_conv(name):
res = []
# print(params[name])
res.append(params[name]['weights'])
res.append(params[name]['bias'])
# print(res[0].shape)
return res
def get_c... | 34.902041 | 110 | 0.651503 | 1,574 | 8,551 | 3.40216 | 0.106099 | 0.067227 | 0.061625 | 0.082166 | 0.744911 | 0.716153 | 0.671335 | 0.646312 | 0.609337 | 0.609337 | 0 | 0.077049 | 0.14396 | 8,551 | 245 | 111 | 34.902041 | 0.654508 | 0.038124 | 0 | 0.367568 | 0 | 0 | 0.131309 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037838 | false | 0 | 0.016216 | 0 | 0.091892 | 0.021622 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
95209bc537a8c459d1a0b26863f03928b91c718e | 538 | py | Python | app/room/forms.py | kid-kodi/BioBank | 27c7cb7286dcae737fa53c245456d60857fe949f | [
"MIT"
] | null | null | null | app/room/forms.py | kid-kodi/BioBank | 27c7cb7286dcae737fa53c245456d60857fe949f | [
"MIT"
] | null | null | null | app/room/forms.py | kid-kodi/BioBank | 27c7cb7286dcae737fa53c245456d60857fe949f | [
"MIT"
] | null | null | null | from flask import request
from flask_wtf import FlaskForm
from wtforms import StringField, SubmitField, TextAreaField, SelectField
from wtforms.validators import ValidationError, DataRequired, Length
from flask_babel import _, lazy_gettext as _l
from app.models import Room
class SearchForm(FlaskForm):
name = Stri... | 31.647059 | 74 | 0.775093 | 65 | 538 | 6.292308 | 0.523077 | 0.066015 | 0.117359 | 0.122249 | 0.180929 | 0.180929 | 0.180929 | 0.180929 | 0 | 0 | 0 | 0 | 0.139405 | 538 | 16 | 75 | 33.625 | 0.883369 | 0 | 0 | 0 | 0 | 0 | 0.094796 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
9521b6babb30728afbc497c74752c940e8bc6317 | 552 | py | Python | estimagic/__init__.py | vishalbelsare/estimagic | afae1be3a1566056d11962c495b67e64bc4a0822 | [
"BSD-3-Clause"
] | null | null | null | estimagic/__init__.py | vishalbelsare/estimagic | afae1be3a1566056d11962c495b67e64bc4a0822 | [
"BSD-3-Clause"
] | null | null | null | estimagic/__init__.py | vishalbelsare/estimagic | afae1be3a1566056d11962c495b67e64bc4a0822 | [
"BSD-3-Clause"
] | null | null | null | from estimagic import utilities
from estimagic.differentiation.derivatives import first_derivative
from estimagic.estimation.estimate_msm import estimate_msm
from estimagic.estimation.msm_weighting import get_moments_cov
from estimagic.inference.bootstrap import bootstrap
from estimagic.optimization.optimize import max... | 25.090909 | 66 | 0.791667 | 62 | 552 | 6.758065 | 0.419355 | 0.217184 | 0.109785 | 0.157518 | 0.186158 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006276 | 0.134058 | 552 | 21 | 67 | 26.285714 | 0.870293 | 0 | 0 | 0 | 0 | 0 | 0.148551 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.411765 | 0 | 0.411765 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
95267093d236bf1aa7ab0e239982e17b44e5d617 | 1,531 | py | Python | tests/structural/structural_test.py | lukaschoebel/POTUSgen | 7b88ba63f0ddab199937df909c5af3271a833cf3 | [
"MIT"
] | null | null | null | tests/structural/structural_test.py | lukaschoebel/POTUSgen | 7b88ba63f0ddab199937df909c5af3271a833cf3 | [
"MIT"
] | 5 | 2020-03-25T08:02:45.000Z | 2020-04-08T20:07:42.000Z | tests/structural/structural_test.py | lukaschoebel/POTUSgen | 7b88ba63f0ddab199937df909c5af3271a833cf3 | [
"MIT"
] | null | null | null | import unittest
from timeout_decorator import *
from behavior.ngram_solutions import *
from structural import structural_helpers
try:
from assignment import POTUSgen
importFlag = True
except:
importFlag = False
class TestStructural(unittest.TestCase):
TIMEOUT_CONSTANT = 180
time_error = f"Importin... | 49.387097 | 193 | 0.728282 | 187 | 1,531 | 5.73262 | 0.465241 | 0.063433 | 0.061567 | 0.081157 | 0.272388 | 0.196828 | 0.196828 | 0.070896 | 0 | 0 | 0 | 0.002459 | 0.203135 | 1,531 | 31 | 194 | 49.387097 | 0.87623 | 0 | 0 | 0 | 0 | 0.074074 | 0.308094 | 0.060052 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.074074 | false | 0.037037 | 0.444444 | 0 | 0.703704 | 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 | 1 | 0 | 0 | 2 |
20f8087241d8816c46fee0b3ded86c95a11dae80 | 1,216 | py | Python | src/test/python/make_test_data.py | svanbodegraven/VariantSpark | 5735d077339853149382a00f4846350c42f28821 | [
"Apache-2.0"
] | 6 | 2018-06-22T21:27:55.000Z | 2019-08-24T00:56:04.000Z | src/test/python/make_test_data.py | svanbodegraven/VariantSpark | 5735d077339853149382a00f4846350c42f28821 | [
"Apache-2.0"
] | null | null | null | src/test/python/make_test_data.py | svanbodegraven/VariantSpark | 5735d077339853149382a00f4846350c42f28821 | [
"Apache-2.0"
] | 1 | 2019-07-31T14:16:00.000Z | 2019-07-31T14:16:00.000Z | import os
import pandas as pd
'''
Generate files for decision tree integration test
'''
BASEDIR = os.path.abspath(os.path.join(os.path.basename(__file__), '../../../..'))
def proj_path(path):
return os.path.join(BASEDIR, path)
data = pd.read_csv(proj_path('data/CNAE-9.csv'), names=['category'] + ["w_%s" %... | 29.658537 | 115 | 0.726151 | 212 | 1,216 | 3.995283 | 0.330189 | 0.066116 | 0.077922 | 0.064935 | 0.232586 | 0.232586 | 0.208973 | 0.208973 | 0.152302 | 0.109799 | 0 | 0.013724 | 0.101151 | 1,216 | 40 | 116 | 30.4 | 0.761208 | 0.042763 | 0 | 0 | 1 | 0 | 0.18 | 0.109091 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.208333 | null | null | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1f231197be18ad8decc355da8db5cd359b929195 | 940 | py | Python | src/state.py | omegagussan/green-sally | de0ac08fc79f51ac23065cc880f38a37190d12dd | [
"CC0-1.0"
] | null | null | null | src/state.py | omegagussan/green-sally | de0ac08fc79f51ac23065cc880f38a37190d12dd | [
"CC0-1.0"
] | null | null | null | src/state.py | omegagussan/green-sally | de0ac08fc79f51ac23065cc880f38a37190d12dd | [
"CC0-1.0"
] | null | null | null | #!/usr/bin/python3
import json
state_file_path = "resources/state.json"
version = 0
class StateVersionException(Exception):
pass
def _get_state():
with open(state_file_path, 'r') as state_file:
data = json.load(state_file)
if data['version'] == 0:
data.pop('version', None)
... | 22.380952 | 103 | 0.630851 | 129 | 940 | 4.356589 | 0.426357 | 0.1121 | 0.069395 | 0.060498 | 0.074733 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005714 | 0.255319 | 940 | 41 | 104 | 22.926829 | 0.797143 | 0.018085 | 0 | 0.071429 | 0 | 0 | 0.110629 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0.071429 | 0.035714 | 0.035714 | 0.392857 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
1f3ebd8c8a5d1fab3da8e9490da0ca886fd690c5 | 249 | py | Python | dbmanage/passforget/urls.py | bopopescu/sbdb_new | 52d57f2dd6e553f60a06c97e7a8631d41f8f2ea6 | [
"Apache-2.0"
] | 3 | 2018-01-13T14:56:07.000Z | 2019-04-20T06:11:03.000Z | dbmanage/passforget/urls.py | bopopescu/sbdb_new | 52d57f2dd6e553f60a06c97e7a8631d41f8f2ea6 | [
"Apache-2.0"
] | null | null | null | dbmanage/passforget/urls.py | bopopescu/sbdb_new | 52d57f2dd6e553f60a06c97e7a8631d41f8f2ea6 | [
"Apache-2.0"
] | 1 | 2020-07-22T02:37:30.000Z | 2020-07-22T02:37:30.000Z | from django.conf.urls import url
from django.contrib import admin
import views
admin.autodiscover()
urlpatterns = [
url(r'^pass_forget/$', views.pass_forget, name='pass_forget'),
# url(r'^pass_rec/$', views.pass_rec, name='pass_rec'),
]
| 19.153846 | 66 | 0.710843 | 36 | 249 | 4.75 | 0.444444 | 0.175439 | 0.093567 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136546 | 249 | 12 | 67 | 20.75 | 0.795349 | 0.212851 | 0 | 0 | 0 | 0 | 0.129534 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.142857 | 0.428571 | 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 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 2 |
1f44b3c92b7c2564236740c27d8b66a66187a831 | 4,173 | py | Python | tracker/lookups.py | TreZc0/donation-tracker | 3a833a5eba3c0b7cedd8249b44b1435f526095ba | [
"Apache-2.0"
] | 39 | 2016-01-04T04:13:27.000Z | 2022-01-18T19:17:24.000Z | tracker/lookups.py | TreZc0/donation-tracker | 3a833a5eba3c0b7cedd8249b44b1435f526095ba | [
"Apache-2.0"
] | 140 | 2015-11-01T01:19:54.000Z | 2022-03-10T13:00:33.000Z | tracker/lookups.py | TreZc0/donation-tracker | 3a833a5eba3c0b7cedd8249b44b1435f526095ba | [
"Apache-2.0"
] | 35 | 2016-01-20T12:42:21.000Z | 2022-01-20T07:06:47.000Z | from ajax_select import LookupChannel
from django.contrib.auth import get_user_model
from django.core.exceptions import PermissionDenied
from django.db.models import Q
from django.urls import reverse
from django.utils.html import escape
from django.utils.safestring import mark_safe
import tracker.search_filters as fil... | 25.138554 | 105 | 0.678648 | 524 | 4,173 | 5.263359 | 0.322519 | 0.019579 | 0.037708 | 0.021755 | 0.246193 | 0.221175 | 0.174764 | 0.098985 | 0.086294 | 0.086294 | 0 | 0.000935 | 0.231249 | 4,173 | 165 | 106 | 25.290909 | 0.858791 | 0.07908 | 0 | 0.317757 | 0 | 0 | 0.042865 | 0.015535 | 0 | 0 | 0 | 0 | 0 | 1 | 0.158879 | false | 0 | 0.084112 | 0.121495 | 0.747664 | 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 | 1 | 0 | 0 | 2 |
1f49e3ab2715ed851b5183f29628a6eedcd333f3 | 1,002 | py | Python | API/dataloader.py | gaozhangyang/DecST | 116ce9efa28a07793900d09345abab4cb512db98 | [
"MIT"
] | 2 | 2021-05-30T15:08:07.000Z | 2021-06-13T12:36:18.000Z | API/dataloader.py | gaozhangyang/DecST | 116ce9efa28a07793900d09345abab4cb512db98 | [
"MIT"
] | null | null | null | API/dataloader.py | gaozhangyang/DecST | 116ce9efa28a07793900d09345abab4cb512db98 | [
"MIT"
] | 1 | 2021-05-27T12:24:20.000Z | 2021-05-27T12:24:20.000Z | from .dataloader_traffic import load_data as load_BJ
from .dataloader_human import load_data as load_human
from .dataloader_moving_mnist import load_data as load_mmnist
from .dataloader_kth import load_data as load_kth
from .dataloader_kitticaltech import load_data as load_kitticaltech
def load_data(dataname,batch_siz... | 58.941176 | 124 | 0.787425 | 151 | 1,002 | 4.81457 | 0.205298 | 0.148556 | 0.099037 | 0.140303 | 0.552957 | 0.415406 | 0.415406 | 0.415406 | 0.415406 | 0.360385 | 0 | 0 | 0.143713 | 1,002 | 17 | 125 | 58.941176 | 0.847319 | 0 | 0 | 0 | 0 | 0 | 0.032901 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.3125 | 0 | 0.6875 | 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 | 1 | 0 | 0 | 2 |
1f548866300ba97639ecae7e2ea8088d0befd8eb | 2,208 | py | Python | flt/model.py | davegreenwood/face-landmark-tool | a08d05dd5651ddb96719711fe2cb0b9b9354b29c | [
"Unlicense"
] | 4 | 2019-06-10T13:39:27.000Z | 2022-03-08T08:19:34.000Z | flt/model.py | davegreenwood/face-landmark-tool | a08d05dd5651ddb96719711fe2cb0b9b9354b29c | [
"Unlicense"
] | null | null | null | flt/model.py | davegreenwood/face-landmark-tool | a08d05dd5651ddb96719711fe2cb0b9b9354b29c | [
"Unlicense"
] | null | null | null | """construct landmark models """
import json
def read_json(fname):
with open(fname) as fid:
data = json.load(fid)
return data
def write_json(model, fname):
with open(fname, "w") as fid:
json.dump(model, fid)
index = dict(
jaw=[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 1... | 30.246575 | 74 | 0.489583 | 325 | 2,208 | 3.206154 | 0.673846 | 0.023033 | 0.024952 | 0.034549 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.324691 | 0.231431 | 2,208 | 72 | 75 | 30.666667 | 0.289334 | 0.063859 | 0 | 0 | 0 | 0 | 0.049244 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.021739 | 0 | 0.086957 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1f57b98c9d83570525f87cf94237d40bbb86a75a | 2,142 | py | Python | src/apps/calendar/models.py | creimers/graphene-advent | 0160ec9b02a73679825a3a57b9b373e0b071c6d7 | [
"MIT"
] | null | null | null | src/apps/calendar/models.py | creimers/graphene-advent | 0160ec9b02a73679825a3a57b9b373e0b071c6d7 | [
"MIT"
] | null | null | null | src/apps/calendar/models.py | creimers/graphene-advent | 0160ec9b02a73679825a3a57b9b373e0b071c6d7 | [
"MIT"
] | null | null | null | from django.db import models
import datetime
from easy_thumbnails.files import get_thumbnailer
from filer.fields.image import FilerImageField
import shortuuid
class Calendar(models.Model):
name = models.CharField(max_length=250)
uuid = models.CharField(max_length=22)
YEAR_CHOICES = [(r, r) for r in r... | 28.184211 | 78 | 0.61578 | 256 | 2,142 | 4.980469 | 0.359375 | 0.05098 | 0.053333 | 0.037647 | 0.293333 | 0.293333 | 0.293333 | 0.293333 | 0.293333 | 0.235294 | 0 | 0.018413 | 0.264706 | 2,142 | 75 | 79 | 28.56 | 0.791111 | 0.028478 | 0 | 0.296296 | 0 | 0 | 0.045717 | 0 | 0 | 0 | 0 | 0.013333 | 0 | 1 | 0.12963 | false | 0 | 0.092593 | 0.074074 | 0.555556 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
1f58a30894211ac25208cc6d3913c83525ac2d81 | 91 | py | Python | gwent/common/Zone.py | shinoi2/gwent | af5f7a1e71fcff94fbe0106b5f3f6a3e87188e94 | [
"Apache-2.0"
] | null | null | null | gwent/common/Zone.py | shinoi2/gwent | af5f7a1e71fcff94fbe0106b5f3f6a3e87188e94 | [
"Apache-2.0"
] | null | null | null | gwent/common/Zone.py | shinoi2/gwent | af5f7a1e71fcff94fbe0106b5f3f6a3e87188e94 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python3
HAND = 0
HERO = 1
FIELD = 2
DECK = 3
GRAVEYARD = 4
REMOVED = 5
| 10.111111 | 19 | 0.571429 | 15 | 91 | 3.466667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 0.307692 | 91 | 8 | 20 | 11.375 | 0.714286 | 0.186813 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1f64768f747d8bbcb6441b6d25868f5a4e1790b2 | 1,306 | py | Python | Sparrow/action/action_action.py | eleme/Sparrow | 4fe10cb57c40dbdca9fe3645477cb7e1dc118d0b | [
"MIT"
] | 75 | 2018-10-10T02:05:16.000Z | 2021-09-09T01:38:38.000Z | Sparrow/action/action_action.py | eleme/Sparrow | 4fe10cb57c40dbdca9fe3645477cb7e1dc118d0b | [
"MIT"
] | 2 | 2020-06-05T19:06:23.000Z | 2021-06-10T20:48:32.000Z | Sparrow/action/action_action.py | eleme/Sparrow | 4fe10cb57c40dbdca9fe3645477cb7e1dc118d0b | [
"MIT"
] | 6 | 2018-09-29T12:07:40.000Z | 2020-05-28T03:10:38.000Z | from django.forms.models import model_to_dict
from Sparrow.action.common_action import *
from dal.dao.action_dao import ActionDao
from django.contrib.auth.decorators import login_required
from Sparrow.action.response import *
from django.http.request import *
from Sparrow.action.track import track
from dal.models impor... | 46.642857 | 91 | 0.781011 | 162 | 1,306 | 6.006173 | 0.314815 | 0.073998 | 0.061665 | 0.073998 | 0.3926 | 0.277492 | 0.219938 | 0.219938 | 0.127441 | 0 | 0 | 0.005319 | 0.136294 | 1,306 | 28 | 92 | 46.642857 | 0.85727 | 0 | 0 | 0.083333 | 0 | 0 | 0.052793 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.333333 | 0 | 0.625 | 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 | 1 | 0 | 0 | 2 |
1f7db3e4e850394ae166c0bd3db7e5750e3c8c01 | 198 | py | Python | Programs/table.py | jatiinyadav/Python | 4ba8df06780c9543d00b6b9f96e32fbcb5fd5aa4 | [
"MIT"
] | null | null | null | Programs/table.py | jatiinyadav/Python | 4ba8df06780c9543d00b6b9f96e32fbcb5fd5aa4 | [
"MIT"
] | null | null | null | Programs/table.py | jatiinyadav/Python | 4ba8df06780c9543d00b6b9f96e32fbcb5fd5aa4 | [
"MIT"
] | null | null | null | l1 = ['1','2','3']
l2 = ['4','5','6']
for i in l1:
for j in l2:
print(i,j)
print("--------")
i = 1
n = 2
while(i<=5):
print(n," * ", i , " = " , n*i)
i +=1
print("--------") | 12.375 | 36 | 0.328283 | 35 | 198 | 1.857143 | 0.428571 | 0.184615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.101449 | 0.30303 | 198 | 16 | 37 | 12.375 | 0.369565 | 0 | 0 | 0.166667 | 0 | 0 | 0.140704 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1f8596c23e4421f86dd85a5bd6bf35bb90d6e957 | 1,169 | py | Python | foobar 2.2.py | SambhavG/Google-foobar | f64f1a4a367c0eab5265e4ed6e22f94b7a297cad | [
"MIT"
] | null | null | null | foobar 2.2.py | SambhavG/Google-foobar | f64f1a4a367c0eab5265e4ed6e22f94b7a297cad | [
"MIT"
] | null | null | null | foobar 2.2.py | SambhavG/Google-foobar | f64f1a4a367c0eab5265e4ed6e22f94b7a297cad | [
"MIT"
] | null | null | null | def solution(h, q):
returnList = []
for i in q:
if (i == pow(2, h)-1):
returnList.append(-1)
else:
currentLevel = h
currentTop = pow(2, h)-1
currentLower = 1
currentUpper = pow(2, h)-2
topList = []
whi... | 37.709677 | 79 | 0.459367 | 105 | 1,169 | 5.114286 | 0.32381 | 0.178771 | 0.18622 | 0.193669 | 0.100559 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039002 | 0.451668 | 1,169 | 30 | 80 | 38.966667 | 0.798752 | 0.058169 | 0 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1f8c4ef0e3576cb6a122a71924f047269f076a3e | 2,383 | py | Python | peach_invasion/ui/stats.py | tealc-indeed/peach_invasion | 2b5c0894805902b40a01bb67f9bbfbf9274f86b0 | [
"MIT"
] | 2 | 2020-03-17T08:08:01.000Z | 2020-08-08T07:34:39.000Z | peach_invasion/ui/stats.py | olbed/peach_invasion | 2b5c0894805902b40a01bb67f9bbfbf9274f86b0 | [
"MIT"
] | null | null | null | peach_invasion/ui/stats.py | olbed/peach_invasion | 2b5c0894805902b40a01bb67f9bbfbf9274f86b0 | [
"MIT"
] | 1 | 2021-05-07T03:29:08.000Z | 2021-05-07T03:29:08.000Z | from peach_invasion.settings import Settings
from peach_invasion.ui.scoreboard import Scoreboard
class Stats:
""" Track gaming statistics """
def __init__(self, settings: Settings, scoreboard: Scoreboard):
self._settings = settings
self._scoreboard = scoreboard
# High score never res... | 26.775281 | 105 | 0.652958 | 294 | 2,383 | 4.952381 | 0.227891 | 0.061813 | 0.076923 | 0.049451 | 0.206731 | 0.095467 | 0 | 0 | 0 | 0 | 0 | 0.003986 | 0.263114 | 2,383 | 88 | 106 | 27.079545 | 0.825171 | 0.087705 | 0 | 0.180328 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.262295 | false | 0 | 0.032787 | 0.147541 | 0.459016 | 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 | 1 | 0 | 0 | 0 | 2 |
1f90e71ca40d399168328ece74bc900de7aaeb1a | 4,983 | py | Python | ConfigRouter.py | Dogblack/click_ddos | 05036bd18d1aa14748714432e413cfa46b812b44 | [
"MIT"
] | null | null | null | ConfigRouter.py | Dogblack/click_ddos | 05036bd18d1aa14748714432e413cfa46b812b44 | [
"MIT"
] | null | null | null | ConfigRouter.py | Dogblack/click_ddos | 05036bd18d1aa14748714432e413cfa46b812b44 | [
"MIT"
] | null | null | null | import re
from define import *
'''
'rst_attack'
'echo_attack'
'smuf_attack'
'land_attack'
'red'
'''
class ConfigWriter(object):
def __init__(self,ControlPort,Ip,IpDst,IpBrodCast,GateWay,Mac):
#basic
self.Out_default = 'out :: Queue(1024) -> ToDevice('+GateWay+')\n'
self.Out_red = 'out :: RED... | 41.525 | 139 | 0.572747 | 606 | 4,983 | 4.60066 | 0.278878 | 0.026901 | 0.04878 | 0.037661 | 0.335007 | 0.210904 | 0.180057 | 0.180057 | 0.180057 | 0.180057 | 0 | 0.036492 | 0.263095 | 4,983 | 120 | 140 | 41.525 | 0.722767 | 0.066225 | 0 | 0.136986 | 0 | 0.027397 | 0.265115 | 0.06214 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.178082 | 0.027397 | null | null | 0.013699 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
1f9800b0483d39d70e1284c5761608f744df00c9 | 314 | py | Python | config.py | ada-shen/Interpret_quality | e58d8e24a44005bde1eadbf8ef34c715d02a19cf | [
"MIT"
] | 1 | 2022-02-07T15:24:44.000Z | 2022-02-07T15:24:44.000Z | config.py | ada-shen/Interpret_quality | e58d8e24a44005bde1eadbf8ef34c715d02a19cf | [
"MIT"
] | 1 | 2021-12-18T05:02:02.000Z | 2022-02-08T08:45:57.000Z | config.py | ada-shen/Interpret_quality | e58d8e24a44005bde1eadbf8ef34c715d02a19cf | [
"MIT"
] | 1 | 2022-02-08T08:44:52.000Z | 2022-02-08T08:44:52.000Z |
CONFIG = {
"shapley_batch_size": {
"pointnet2": 5,
"pointnet": 50,
"dgcnn": 5,
"gcnn": 10,
"pointconv": 20
},
"interaction_batch_size": {
"pointnet2": 25,
"pointnet": 100,
"dgcnn": 25,
"gcnn": 50,
"pointconv": 100
}
} | 18.470588 | 31 | 0.433121 | 27 | 314 | 4.888889 | 0.592593 | 0.136364 | 0.272727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117021 | 0.401274 | 314 | 17 | 32 | 18.470588 | 0.585106 | 0 | 0 | 0 | 0 | 0 | 0.350318 | 0.070064 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2f0fb698aadd1a1c94e22859e302261be3539afe | 2,163 | py | Python | lib/model/dcr/dcr_layer.py | fregulationn/SANM | 7a2580893da32eefcab2d77138fda0f27068dd3c | [
"MIT"
] | null | null | null | lib/model/dcr/dcr_layer.py | fregulationn/SANM | 7a2580893da32eefcab2d77138fda0f27068dd3c | [
"MIT"
] | 5 | 2021-03-19T10:06:52.000Z | 2022-01-13T02:03:22.000Z | lib/model/dcr/dcr_layer.py | fregulationn/SANM | 7a2580893da32eefcab2d77138fda0f27068dd3c | [
"MIT"
] | null | null | null | from __future__ import absolute_import
# --------------------------------------------------------
# Spatial Attention Network withFeature Mimicking
# Copyright (c) 2018 University of Illinois
# Licensed under The MIT License [see LICENSE for details]
# --------------------------------------------------------
# --------... | 36.05 | 87 | 0.617198 | 271 | 2,163 | 4.686347 | 0.446494 | 0.035433 | 0.044094 | 0.03622 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010765 | 0.184004 | 2,163 | 60 | 88 | 36.05 | 0.708782 | 0.292187 | 0 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0.058824 | 0.323529 | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 2 |
2f164f69fb6aa4130e05491524115c88f16691f8 | 193 | py | Python | paranuara/citizens/apps.py | SPLAYER-HD/Paranuara | 5a42f23d761e16e3b486ba04d9185551614f06a5 | [
"MIT"
] | null | null | null | paranuara/citizens/apps.py | SPLAYER-HD/Paranuara | 5a42f23d761e16e3b486ba04d9185551614f06a5 | [
"MIT"
] | 4 | 2021-06-08T20:53:43.000Z | 2022-03-12T00:13:51.000Z | paranuara/citizens/apps.py | SPLAYER-HD/RestServiceDjango | 5a42f23d761e16e3b486ba04d9185551614f06a5 | [
"MIT"
] | null | null | null | """Citizens app"""
# Django
from django.apps import AppConfig
class CitizensAppConfig(AppConfig):
"""Citizens app config"""
name = "paranuara.citizens"
verbose_name = 'Citizens'
| 17.545455 | 35 | 0.699482 | 20 | 193 | 6.7 | 0.65 | 0.164179 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176166 | 193 | 10 | 36 | 19.3 | 0.842767 | 0.207254 | 0 | 0 | 0 | 0 | 0.183099 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 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 | 1 | 0 | 0 | 2 |
2f21160fe24827ab66b605c991cd561c1f59c31a | 2,335 | py | Python | counselor/filter.py | joergeschmann/counselor | 455ba2a07d25c5ac946f9b3dab0678eec7d46c40 | [
"MIT"
] | null | null | null | counselor/filter.py | joergeschmann/counselor | 455ba2a07d25c5ac946f9b3dab0678eec7d46c40 | [
"MIT"
] | null | null | null | counselor/filter.py | joergeschmann/counselor | 455ba2a07d25c5ac946f9b3dab0678eec7d46c40 | [
"MIT"
] | null | null | null | class Operators:
"""Operator constants"""
OPERATOR_EQUALITY = "=="
OPERATOR_INEQUALITY = "!="
OPERATOR_EMPTY = "empty"
OPERATOR_NOT_EMPTY = "not empty"
OPERATOR_IN = "in"
OPERATOR_NOT_IN = "not in"
OPERATOR_CONTAINS = "contains"
OPERATOR_NOT_CONTAINS = "not contains"
class Fields... | 31.133333 | 110 | 0.636403 | 257 | 2,335 | 5.63035 | 0.190661 | 0.107809 | 0.116102 | 0.160332 | 0.378715 | 0.278507 | 0.208017 | 0.208017 | 0.176918 | 0.107809 | 0 | 0 | 0.244968 | 2,335 | 74 | 111 | 31.554054 | 0.82076 | 0.188437 | 0 | 0.194444 | 0 | 0 | 0.049125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.138889 | false | 0 | 0 | 0.055556 | 0.694444 | 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 | 1 | 0 | 0 | 2 |
2f239220234b8fad25665ece10afca8569835cd0 | 119 | py | Python | face/common/constants.py | kkltcjk/face | 5fd509c746f5c733dec679af73c129b4f6bab009 | [
"Apache-2.0"
] | null | null | null | face/common/constants.py | kkltcjk/face | 5fd509c746f5c733dec679af73c129b4f6bab009 | [
"Apache-2.0"
] | null | null | null | face/common/constants.py | kkltcjk/face | 5fd509c746f5c733dec679af73c129b4f6bab009 | [
"Apache-2.0"
] | null | null | null | import os
CONFIG_FILE = '/etc/face/face.conf'
LOG_DIR = '/var/log/face'
LOG_FILE = os.path.join(LOG_DIR, 'face.log')
| 17 | 44 | 0.697479 | 22 | 119 | 3.590909 | 0.545455 | 0.151899 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 119 | 6 | 45 | 19.833333 | 0.752381 | 0 | 0 | 0 | 0 | 0 | 0.336134 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2f260e67243d7e18323762aac84d7e81027761c0 | 1,046 | py | Python | seahub/help/urls.py | MJochim/seahub | 66fcc6772511d43346a2980613576c5fdb4c4945 | [
"Apache-2.0"
] | null | null | null | seahub/help/urls.py | MJochim/seahub | 66fcc6772511d43346a2980613576c5fdb4c4945 | [
"Apache-2.0"
] | 6 | 2019-12-13T09:55:45.000Z | 2022-03-11T23:47:29.000Z | seahub/help/urls.py | MJochim/seahub | 66fcc6772511d43346a2980613576c5fdb4c4945 | [
"Apache-2.0"
] | 1 | 2019-05-16T06:58:16.000Z | 2019-05-16T06:58:16.000Z | # Copyright (c) 2012-2016 Seafile Ltd.
from django.conf.urls import url, include
from django.views.generic import TemplateView
urlpatterns = [
url(r'^$', TemplateView.as_view(template_name="help/install.html") ),
url(r'^install/$', TemplateView.as_view(template_name="help/install.html") ),
url(r'^sync_exis... | 61.529412 | 105 | 0.739962 | 141 | 1,046 | 5.262411 | 0.262411 | 0.053908 | 0.242588 | 0.350404 | 0.509434 | 0.509434 | 0.234501 | 0.132075 | 0.132075 | 0.132075 | 0 | 0.008368 | 0.086042 | 1,046 | 16 | 106 | 65.375 | 0.767782 | 0.034417 | 0 | 0 | 0 | 0 | 0.347222 | 0.165675 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2f46abdef51a8af9dc0b0173f76e64f353ad98a8 | 11,045 | py | Python | troposphere_mate/mediaconnect.py | tsuttsu305/troposphere_mate-project | 15ee94cc913efb32bc991979efcad943c992074c | [
"MIT"
] | null | null | null | troposphere_mate/mediaconnect.py | tsuttsu305/troposphere_mate-project | 15ee94cc913efb32bc991979efcad943c992074c | [
"MIT"
] | null | null | null | troposphere_mate/mediaconnect.py | tsuttsu305/troposphere_mate-project | 15ee94cc913efb32bc991979efcad943c992074c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
This code is auto generated from troposphere_mate.code_generator.__init__.py scripts.
"""
import sys
if sys.version_info.major >= 3 and sys.version_info.minor >= 5: # pragma: no cover
from typing import Union, List, Any
import troposphere.mediaconnect
from troposphere.mediaconnect i... | 40.018116 | 86 | 0.584427 | 875 | 11,045 | 7.227429 | 0.116571 | 0.085231 | 0.144213 | 0.163662 | 0.56673 | 0.475806 | 0.38172 | 0.38172 | 0.354839 | 0.354839 | 0 | 0.000407 | 0.332368 | 11,045 | 275 | 87 | 40.163636 | 0.857201 | 0.182073 | 0 | 0.617886 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036585 | false | 0 | 0.028455 | 0 | 0.101626 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2f5e6a7924b5d88fae79f639b1d78513805faf06 | 191 | py | Python | Mundo2/URI_1042.py | NOBarbosa/Exercicios_Python | f5769d331a38030281b351ee8812e7f75fcf0f87 | [
"MIT"
] | null | null | null | Mundo2/URI_1042.py | NOBarbosa/Exercicios_Python | f5769d331a38030281b351ee8812e7f75fcf0f87 | [
"MIT"
] | null | null | null | Mundo2/URI_1042.py | NOBarbosa/Exercicios_Python | f5769d331a38030281b351ee8812e7f75fcf0f87 | [
"MIT"
] | null | null | null | n = input().split()
lista = [int(i) for i in n]
lista.sort() # sort ordena a lista em ordem crescente
print(*lista, sep='\n') # * serve para imprimir toda a lista
print()
print(*n, sep='\n') | 31.833333 | 60 | 0.649215 | 34 | 191 | 3.647059 | 0.588235 | 0.096774 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.167539 | 191 | 6 | 61 | 31.833333 | 0.779874 | 0.387435 | 0 | 0 | 0 | 0 | 0.034783 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
2f624419cb848f54d12accf4f2bbb616be8bcab5 | 2,239 | py | Python | dcclient/rpc.py | asgard-lab/driver | 372c6937821f36afaf2018c214492b52e5de9727 | [
"Apache-2.0"
] | null | null | null | dcclient/rpc.py | asgard-lab/driver | 372c6937821f36afaf2018c214492b52e5de9727 | [
"Apache-2.0"
] | null | null | null | dcclient/rpc.py | asgard-lab/driver | 372c6937821f36afaf2018c214492b52e5de9727 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2013 OpenStack Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to ... | 32.449275 | 80 | 0.607861 | 275 | 2,239 | 4.858182 | 0.509091 | 0.04491 | 0.019461 | 0.023952 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005703 | 0.295221 | 2,239 | 68 | 81 | 32.926471 | 0.840938 | 0.27021 | 0 | 0 | 0 | 0 | 0.108333 | 0.040152 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.09375 | 0.15625 | null | null | 0.03125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
2f6a6b3f8a58331d7d905062d39ca0f490852b38 | 640 | py | Python | deal/linter/_extractors/__init__.py | m4ta1l/deal | 2a8e9bf412b8635b00a2b798dd8802375814a1c8 | [
"MIT"
] | 1 | 2020-09-05T13:54:16.000Z | 2020-09-05T13:54:16.000Z | deal/linter/_extractors/__init__.py | m4ta1l/deal | 2a8e9bf412b8635b00a2b798dd8802375814a1c8 | [
"MIT"
] | 7 | 2020-09-05T13:54:28.000Z | 2020-11-27T05:59:19.000Z | deal/linter/_extractors/__init__.py | Smirenost/deal | 2a8e9bf412b8635b00a2b798dd8802375814a1c8 | [
"MIT"
] | null | null | null | # app
from .asserts import get_asserts
from .common import get_name
from .contracts import get_contracts
from .exceptions import get_exceptions
from .exceptions_stubs import get_exceptions_stubs
from .globals import get_globals
from .imports import get_imports
from .pre import get_pre
from .prints import get_prints
fro... | 22.068966 | 50 | 0.742188 | 86 | 640 | 5.162791 | 0.209302 | 0.222973 | 0.085586 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176563 | 640 | 28 | 51 | 22.857143 | 0.842505 | 0.004688 | 0 | 0 | 0 | 0 | 0.214173 | 0 | 0 | 0 | 0 | 0 | 0.08 | 1 | 0 | false | 0 | 0.48 | 0 | 0.48 | 0.08 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
2f6c74a4638be3fd99ce14c13822d5d7f296e23f | 2,663 | py | Python | tests/exception_test.py | gglin001/poptorch | 61f38ed2d8c6b672e023862eb698865fa7f4724e | [
"MIT"
] | 128 | 2020-12-08T22:22:46.000Z | 2022-03-23T10:54:26.000Z | tests/exception_test.py | gglin001/poptorch | 61f38ed2d8c6b672e023862eb698865fa7f4724e | [
"MIT"
] | 4 | 2021-06-22T14:26:28.000Z | 2022-02-15T11:25:05.000Z | tests/exception_test.py | gglin001/poptorch | 61f38ed2d8c6b672e023862eb698865fa7f4724e | [
"MIT"
] | 7 | 2020-12-09T20:32:56.000Z | 2022-01-18T16:12:24.000Z | #!/usr/bin/env python3
# Copyright (c) 2020 Graphcore Ltd. All rights reserved.
import pytest
import torch
import poptorch
def harness(setting, Model, args):
opts = poptorch.Options()
if setting == "true":
opts.Precision.enableFloatingPointExceptions(True)
elif setting == "false":
opts.Pr... | 30.965116 | 77 | 0.640255 | 326 | 2,663 | 5.205521 | 0.217791 | 0.058928 | 0.067177 | 0.055981 | 0.700648 | 0.700648 | 0.685327 | 0.685327 | 0.685327 | 0.685327 | 0 | 0.023524 | 0.217799 | 2,663 | 85 | 78 | 31.329412 | 0.791167 | 0.028539 | 0 | 0.571429 | 0 | 0 | 0.140426 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.174603 | false | 0 | 0.047619 | 0.079365 | 0.380952 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
2f6df3966f2b911b59e9a234bd87ac35f3634105 | 681 | py | Python | architect/test_jit.py | MIT-REALM/architect | 1b5bbf6ddf08146cd3b8ad5c058539ac140e9ebb | [
"BSD-2-Clause"
] | 2 | 2022-03-30T03:07:26.000Z | 2022-03-30T17:35:21.000Z | architect/test_jit.py | MIT-REALM/architect | 1b5bbf6ddf08146cd3b8ad5c058539ac140e9ebb | [
"BSD-2-Clause"
] | null | null | null | architect/test_jit.py | MIT-REALM/architect | 1b5bbf6ddf08146cd3b8ad5c058539ac140e9ebb | [
"BSD-2-Clause"
] | null | null | null | import time
import jax
import jax.numpy as jnp
def f(x):
return jnp.dot(x, x.T)
N_trials = 1
total_time = 0.0
x = jnp.ones((1000, 1))
f = jax.jit(f)
start = time.perf_counter()
f(x)
end = time.perf_counter()
print(f"jit_time: {end - start}")
g = jax.vmap(f)
y = jnp.ones((1000, 1000, 1))
start = time.perf_cou... | 16.214286 | 34 | 0.646109 | 124 | 681 | 3.41129 | 0.266129 | 0.1513 | 0.283688 | 0.189125 | 0.498818 | 0.498818 | 0.498818 | 0.498818 | 0.498818 | 0.498818 | 0 | 0.046429 | 0.17768 | 681 | 41 | 35 | 16.609756 | 0.708929 | 0 | 0 | 0.466667 | 0 | 0 | 0.136564 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0.1 | 0.033333 | 0.166667 | 0.133333 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2f7836d679e9d55ebf6924e54502d511306cfc6c | 1,524 | py | Python | testflows/_core/exceptions.py | testflows/TestFlows-Core | 0aa17247dffd2f7199465031ab16cc4f12c9cfb0 | [
"Apache-2.0"
] | 3 | 2020-06-25T19:23:19.000Z | 2021-10-20T19:29:56.000Z | testflows/_core/exceptions.py | testflows/TestFlows-Core | 0aa17247dffd2f7199465031ab16cc4f12c9cfb0 | [
"Apache-2.0"
] | null | null | null | testflows/_core/exceptions.py | testflows/TestFlows-Core | 0aa17247dffd2f7199465031ab16cc4f12c9cfb0 | [
"Apache-2.0"
] | 1 | 2020-02-24T12:31:45.000Z | 2020-02-24T12:31:45.000Z | import sys
import traceback
def exception(exc_type=None, exc_value=None, exc_traceback=None):
"""Get exception string.
"""
if (exc_type, exc_value, exc_traceback) == (None, None, None):
exc_type, exc_value, exc_traceback = sys.exc_info()
return "".join(traceback.format_exception(exc_type, exc_... | 23.090909 | 91 | 0.668635 | 146 | 1,524 | 6.773973 | 0.321918 | 0.063701 | 0.030334 | 0.045501 | 0.128413 | 0.081901 | 0 | 0 | 0 | 0 | 0 | 0 | 0.206693 | 1,524 | 65 | 92 | 23.446154 | 0.818031 | 0.181102 | 0 | 0.258065 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096774 | false | 0.258065 | 0.064516 | 0 | 0.516129 | 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 | 1 | 0 | 0 | 2 |
2f791b175ce123b7cba09535025e819e9bf2ec11 | 2,217 | py | Python | services/Compute/ec2_standalone.py | asurion/Hibernate | b95c68ba8dba6a43baea288ade231944d1719988 | [
"Apache-2.0"
] | 9 | 2017-06-06T17:47:57.000Z | 2021-08-06T18:30:11.000Z | services/Compute/ec2_standalone.py | asurion/Hibernate | b95c68ba8dba6a43baea288ade231944d1719988 | [
"Apache-2.0"
] | null | null | null | services/Compute/ec2_standalone.py | asurion/Hibernate | b95c68ba8dba6a43baea288ade231944d1719988 | [
"Apache-2.0"
] | null | null | null | from utils.randomGen import generateRandomString
from asyncProducerUtil.utils.connect import Connect
class ElasticComputeDefinition(Connect):
api_name = 'ec2'
table_name = 'scheduler_state_logs'
def ec2_def(self, i, schedule):
OS = i.platform
if OS is None:
OS = 'linux'
... | 30.369863 | 83 | 0.539919 | 224 | 2,217 | 5.174107 | 0.366071 | 0.066437 | 0.054357 | 0.025884 | 0.053494 | 0.053494 | 0.053494 | 0.053494 | 0.053494 | 0.053494 | 0 | 0.008247 | 0.343708 | 2,217 | 73 | 84 | 30.369863 | 0.788316 | 0 | 0 | 0.036364 | 1 | 0 | 0.138864 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.036364 | null | null | 0.018182 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2f7c05c5d7de79c23665fda9b65c3032d9fdb56c | 87 | py | Python | fjord/settings/test.py | DESHRAJ/fjord | 8899b6286b23347c9b024334e61c33fe133e836d | [
"BSD-3-Clause"
] | null | null | null | fjord/settings/test.py | DESHRAJ/fjord | 8899b6286b23347c9b024334e61c33fe133e836d | [
"BSD-3-Clause"
] | null | null | null | fjord/settings/test.py | DESHRAJ/fjord | 8899b6286b23347c9b024334e61c33fe133e836d | [
"BSD-3-Clause"
] | null | null | null | DEBUG = TEMPLATE_DEBUG = True
CELERY_ALWAYS_EAGER = True
SESSION_COOKIE_SECURE = False
| 21.75 | 29 | 0.827586 | 12 | 87 | 5.583333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126437 | 87 | 3 | 30 | 29 | 0.881579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2f7cbda5c3b1aaa2093479820a914a5a8f117087 | 265 | py | Python | days/day101/Bite 10. Practice exceptions/divide.py | alex-vegan/100daysofcode-with-python-course | b6c12316abe18274b7963371b8f0ed2fd549ef07 | [
"MIT"
] | 2 | 2018-10-28T17:12:37.000Z | 2018-10-28T17:12:39.000Z | days/day101/Bite 10. Practice exceptions/divide.py | alex-vegan/100daysofcode-with-python-course | b6c12316abe18274b7963371b8f0ed2fd549ef07 | [
"MIT"
] | 3 | 2018-10-28T17:11:04.000Z | 2018-10-29T22:36:36.000Z | days/day101/Bite 10. Practice exceptions/divide.py | alex-vegan/100daysofcode-with-python-course | b6c12316abe18274b7963371b8f0ed2fd549ef07 | [
"MIT"
] | null | null | null | def positive_divide(numerator, denominator):
try:
result = numerator / denominator
except ZeroDivisionError:
return 0
except Exception as x:
raise x
if result < 0:
raise ValueError
return result
| 24.090909 | 45 | 0.592453 | 26 | 265 | 6 | 0.653846 | 0.25641 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011905 | 0.366038 | 265 | 11 | 46 | 24.090909 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.3 | 0 | 1 | 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 | 2 |
2f8d3c593b76246a5a0247f2680e3a3a9ff0afa8 | 132 | py | Python | reduce_demo.py | zdenek-nemec/python-tutorial-socratica | d09deef45b7a7982814e5e564cf4265cdbe01aca | [
"MIT"
] | 1 | 2019-09-30T19:55:53.000Z | 2019-09-30T19:55:53.000Z | reduce_demo.py | zdenek-nemec/python-tutorial-socratica | d09deef45b7a7982814e5e564cf4265cdbe01aca | [
"MIT"
] | null | null | null | reduce_demo.py | zdenek-nemec/python-tutorial-socratica | d09deef45b7a7982814e5e564cf4265cdbe01aca | [
"MIT"
] | null | null | null | import functools
numbers = list(range(1, 11))
print(numbers)
product = functools.reduce(lambda x, y: x*y, numbers)
print(product)
| 16.5 | 53 | 0.734848 | 20 | 132 | 4.85 | 0.65 | 0.041237 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026087 | 0.128788 | 132 | 7 | 54 | 18.857143 | 0.817391 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.4 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2f96de515a5217bbe8aaf63df602d0f3d986e2cc | 302 | py | Python | data types and variables LAB/special numbers.py | nrgxtra/fundamentals | d9f35eb040c0e1009aad2f7305c035fda207a147 | [
"MIT"
] | null | null | null | data types and variables LAB/special numbers.py | nrgxtra/fundamentals | d9f35eb040c0e1009aad2f7305c035fda207a147 | [
"MIT"
] | null | null | null | data types and variables LAB/special numbers.py | nrgxtra/fundamentals | d9f35eb040c0e1009aad2f7305c035fda207a147 | [
"MIT"
] | null | null | null | n = int(input())
for i in range(1, n + 1):
sum_of_digits = 0
for cd in range(len(str(i))):
sum_of_digits += int(str(i)[cd])
if (sum_of_digits == 5) or (sum_of_digits == 7) or (sum_of_digits == 11):
print(f'{i} -> True')
else:
print(f'{i} -> False')
| 25.166667 | 78 | 0.509934 | 52 | 302 | 2.769231 | 0.480769 | 0.173611 | 0.381944 | 0.180556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033333 | 0.304636 | 302 | 11 | 79 | 27.454545 | 0.652381 | 0 | 0 | 0 | 0 | 0 | 0.079038 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.222222 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2f977b258002de91b9a0c53bfe4c5a862c55ed07 | 4,532 | py | Python | app/vehicle.py | harnoor-g/trademebot | 6795edfc2a969b1b22d4fc626039dd80adf966ff | [
"MIT"
] | null | null | null | app/vehicle.py | harnoor-g/trademebot | 6795edfc2a969b1b22d4fc626039dd80adf966ff | [
"MIT"
] | null | null | null | app/vehicle.py | harnoor-g/trademebot | 6795edfc2a969b1b22d4fc626039dd80adf966ff | [
"MIT"
] | null | null | null | #>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
#>> this class creates an instance of each vehicle that has been parsed
#>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
class Vehicle:
num_vehicles = 0
#>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
#>> init method creates a range of variables t... | 34.861538 | 131 | 0.482348 | 463 | 4,532 | 4.583153 | 0.237581 | 0.050895 | 0.036758 | 0.043355 | 0.233271 | 0.213478 | 0.200283 | 0.181904 | 0.181904 | 0.100848 | 0 | 0.006669 | 0.205869 | 4,532 | 130 | 132 | 34.861538 | 0.58294 | 0.487643 | 0 | 0.036364 | 0 | 0 | 0.091466 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0.109091 | 0.509091 | 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 | 1 | 0 | 0 | 2 |
c813e067474c4e4eb740216f59ddfa871d20b509 | 1,158 | py | Python | monitor/utils/mail.py | laozhudetui/wam | 3101dae034344ec255c9f3dd165d2aae6b3bea95 | [
"MIT"
] | 227 | 2018-08-25T12:50:30.000Z | 2022-03-31T11:18:33.000Z | monitor/utils/mail.py | laozhudetui/wam | 3101dae034344ec255c9f3dd165d2aae6b3bea95 | [
"MIT"
] | 1 | 2018-09-02T07:51:32.000Z | 2018-09-03T00:29:45.000Z | monitor/utils/mail.py | laozhudetui/wam | 3101dae034344ec255c9f3dd165d2aae6b3bea95 | [
"MIT"
] | 48 | 2018-08-25T13:57:52.000Z | 2022-01-10T15:59:27.000Z | #!/usr/bin/env python
# coding: utf-8
# __buildin__ modules
import smtplib
from email.mime.text import MIMEText
from monitor.utils.settings import EMAIL_SERVER
from monitor.utils.settings import EMAIL_PORT
from monitor.utils.settings import EMAIL_USER
from monitor.utils.settings import EMAIL_PASS
from monitor.utils.s... | 25.173913 | 60 | 0.688256 | 154 | 1,158 | 4.974026 | 0.331169 | 0.086162 | 0.125326 | 0.156658 | 0.31201 | 0.31201 | 0 | 0 | 0 | 0 | 0 | 0.003243 | 0.201209 | 1,158 | 45 | 61 | 25.733333 | 0.824865 | 0.163212 | 0 | 0 | 0 | 0 | 0.048035 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.083333 | 0.333333 | 0 | 0.416667 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
c83c6e86736953f1cdf414483053d845ce4e8d55 | 630 | py | Python | Ch1-Arrays-and-Strings/04_palindrome_permutation.py | fatima-rizvi/CtCI-Solutions-6th-Edition | ac92661bdbb27168a3186479dab5e7231bccf1d8 | [
"MIT"
] | null | null | null | Ch1-Arrays-and-Strings/04_palindrome_permutation.py | fatima-rizvi/CtCI-Solutions-6th-Edition | ac92661bdbb27168a3186479dab5e7231bccf1d8 | [
"MIT"
] | null | null | null | Ch1-Arrays-and-Strings/04_palindrome_permutation.py | fatima-rizvi/CtCI-Solutions-6th-Edition | ac92661bdbb27168a3186479dab5e7231bccf1d8 | [
"MIT"
] | null | null | null | # Given a string, write a function to check if it is a permutation of a palindrome
def palindrome_permutation(str1):
str1 = str1.replace(" ", "")
count = {}
for char in str1:
if count.get(char):
count[char] += 1
else:
count[char] = 1
odds = 0
for char, num in count.items():
if num %... | 24.230769 | 82 | 0.647619 | 90 | 630 | 4.477778 | 0.511111 | 0.260546 | 0.258065 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022774 | 0.233333 | 630 | 25 | 83 | 25.2 | 0.811594 | 0.211111 | 0 | 0 | 0 | 0 | 0.069246 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0 | 0 | 0.157895 | 0.210526 | 0 | 0 | 0 | null | 1 | 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 | 2 |
c84a1b7f1254f31244f83bab6b11352a5e4d2be6 | 2,947 | py | Python | bluebottle/time_based/migrations/0020_auto_20201102_1230.py | terrameijar/bluebottle | b4f5ba9c4f03e678fdd36091b29240307ea69ffd | [
"BSD-3-Clause"
] | 10 | 2015-05-28T18:26:40.000Z | 2021-09-06T10:07:03.000Z | bluebottle/time_based/migrations/0020_auto_20201102_1230.py | terrameijar/bluebottle | b4f5ba9c4f03e678fdd36091b29240307ea69ffd | [
"BSD-3-Clause"
] | 762 | 2015-01-15T10:00:59.000Z | 2022-03-31T15:35:14.000Z | bluebottle/time_based/migrations/0020_auto_20201102_1230.py | terrameijar/bluebottle | b4f5ba9c4f03e678fdd36091b29240307ea69ffd | [
"BSD-3-Clause"
] | 9 | 2015-02-20T13:19:30.000Z | 2022-03-08T14:09:17.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.17 on 2020-11-02 11:30
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('activities', '0027_contributionvalue'),
('time_bas... | 62.702128 | 660 | 0.679674 | 314 | 2,947 | 6.159236 | 0.248408 | 0.148914 | 0.173733 | 0.198552 | 0.546019 | 0.546019 | 0.546019 | 0.546019 | 0.423992 | 0.379524 | 0 | 0.01626 | 0.20699 | 2,947 | 46 | 661 | 64.065217 | 0.811297 | 0.023414 | 0 | 0.384615 | 1 | 0 | 0.526261 | 0.210435 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.153846 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c86857249f7a2590484dfe38717562f9472a9e71 | 194 | py | Python | src/utils.py | qbasista/api-scraper | 3c2f13446b7381042448385be3032455ffd0bc95 | [
"MIT"
] | null | null | null | src/utils.py | qbasista/api-scraper | 3c2f13446b7381042448385be3032455ffd0bc95 | [
"MIT"
] | null | null | null | src/utils.py | qbasista/api-scraper | 3c2f13446b7381042448385be3032455ffd0bc95 | [
"MIT"
] | null | null | null | from typing import Dict
def add_prefix_to_keys(data: Dict, prefix: str) -> Dict:
keys = [*data.keys()]
for key in keys:
data[f"{prefix}_{key}"] = data.pop(key)
return data
| 21.555556 | 56 | 0.623711 | 30 | 194 | 3.9 | 0.566667 | 0.205128 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.231959 | 194 | 8 | 57 | 24.25 | 0.785235 | 0 | 0 | 0 | 0 | 0 | 0.072165 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c86bdbcc952303493f1427d05c570bcfbea7c8e3 | 908 | py | Python | unit_tests/LLC1/test_create_llc1.py | LandRegistry/maintain-frontend | d92446a9972ebbcd9a43a7a7444a528aa2f30bf7 | [
"MIT"
] | 1 | 2019-10-03T13:58:29.000Z | 2019-10-03T13:58:29.000Z | unit_tests/LLC1/test_create_llc1.py | LandRegistry/maintain-frontend | d92446a9972ebbcd9a43a7a7444a528aa2f30bf7 | [
"MIT"
] | null | null | null | unit_tests/LLC1/test_create_llc1.py | LandRegistry/maintain-frontend | d92446a9972ebbcd9a43a7a7444a528aa2f30bf7 | [
"MIT"
] | 1 | 2021-04-11T05:24:57.000Z | 2021-04-11T05:24:57.000Z | from flask_testing import TestCase
from unit_tests.utilities import Utilities
from maintain_frontend import main
from maintain_frontend.dependencies.session_api.session import Session
from maintain_frontend.constants.permissions import Permissions
from flask import url_for
class TestCreateLLC1(TestCase):
def crea... | 41.272727 | 88 | 0.776432 | 117 | 908 | 5.752137 | 0.393162 | 0.059435 | 0.089153 | 0.062407 | 0.077266 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012903 | 0.146476 | 908 | 21 | 89 | 43.238095 | 0.855484 | 0 | 0 | 0 | 0 | 0 | 0.080396 | 0.057269 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.555556 | 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 | 1 | 0 | 0 | 2 |
c07a07214b4abd8c38f9b7a680085881b3cc7bf2 | 2,043 | py | Python | assessment/migrations/0008_auto_20190125_1249.py | kenware/Assessment | 69f5e3fbf18dfa2c59eaf3b083ebdba7ca66c9b7 | [
"MIT"
] | null | null | null | assessment/migrations/0008_auto_20190125_1249.py | kenware/Assessment | 69f5e3fbf18dfa2c59eaf3b083ebdba7ca66c9b7 | [
"MIT"
] | 3 | 2020-02-11T23:31:01.000Z | 2021-06-10T21:04:34.000Z | assessment/migrations/0008_auto_20190125_1249.py | kenware/Assessment | 69f5e3fbf18dfa2c59eaf3b083ebdba7ca66c9b7 | [
"MIT"
] | null | null | null | # Generated by Django 2.1.4 on 2019-01-25 12:49
import datetime
import django.contrib.postgres.fields.jsonb
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('assessment', '0007_answer_is_correct_choice'),
]
operations = [
migrations.Remov... | 31.430769 | 85 | 0.571708 | 198 | 2,043 | 5.767677 | 0.343434 | 0.078809 | 0.15324 | 0.177758 | 0.554291 | 0.498249 | 0.490368 | 0.490368 | 0.490368 | 0.490368 | 0 | 0.043847 | 0.307881 | 2,043 | 64 | 86 | 31.921875 | 0.763791 | 0.022026 | 0 | 0.655172 | 1 | 0 | 0.107715 | 0.014529 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.051724 | 0 | 0.103448 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c08223ebcc150b99236b8ae3c45771ef49c80d6b | 241 | py | Python | spladder/classes/counts.py | ratschlab/spladder | 8175c054a9b8fe7ae509f34fe5fb4d90a8cbe151 | [
"BSD-3-Clause"
] | 96 | 2015-03-27T01:06:09.000Z | 2022-03-20T05:56:54.000Z | spladder/classes/counts.py | ratschlab/spladder | 8175c054a9b8fe7ae509f34fe5fb4d90a8cbe151 | [
"BSD-3-Clause"
] | 160 | 2015-01-20T20:45:48.000Z | 2022-03-31T14:48:05.000Z | spladder/classes/counts.py | ratschlab/spladder | 8175c054a9b8fe7ae509f34fe5fb4d90a8cbe151 | [
"BSD-3-Clause"
] | 42 | 2015-03-27T20:49:15.000Z | 2021-12-21T12:39:42.000Z | import numpy as np
class Counts:
def __init__(self, seg_num):
self.segments = np.zeros((seg_num,), dtype='float')
self.seg_pos = np.zeros((seg_num,), dtype='float')
self.edges = np.zeros((0, 2), dtype='float')
| 26.777778 | 60 | 0.609959 | 36 | 241 | 3.861111 | 0.527778 | 0.129496 | 0.143885 | 0.18705 | 0.388489 | 0.388489 | 0.388489 | 0 | 0 | 0 | 0 | 0.010638 | 0.219917 | 241 | 8 | 61 | 30.125 | 0.728723 | 0 | 0 | 0 | 0 | 0 | 0.062241 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c088d74a9fb2e38496e5c796da1ff6493dbf223b | 3,614 | py | Python | delphi/translators/for2py/strings.py | mikiec84/delphi | 2e517f21e76e334c7dfb14325d25879ddf26d10d | [
"Apache-2.0"
] | 25 | 2018-03-03T11:57:57.000Z | 2022-01-16T21:19:54.000Z | delphi/translators/for2py/strings.py | mikiec84/delphi | 2e517f21e76e334c7dfb14325d25879ddf26d10d | [
"Apache-2.0"
] | 385 | 2018-02-21T16:52:06.000Z | 2022-02-17T07:44:56.000Z | delphi/translators/for2py/strings.py | mikiec84/delphi | 2e517f21e76e334c7dfb14325d25879ddf26d10d | [
"Apache-2.0"
] | 19 | 2018-03-20T01:08:11.000Z | 2021-09-29T01:04:49.000Z | """
File: strings.py
Purpose: Code implementing string objects (corresponding to the Fortran
CHARACTER type) in the code generated by for2py.
Usage: see the document "for2py: Miscellaneous constructs"
"""
class String:
def __init__(self, length = 0, value = ""):
if length > 0:
... | 31.155172 | 81 | 0.584671 | 469 | 3,614 | 4.371002 | 0.287846 | 0.05122 | 0.031707 | 0.012683 | 0.174634 | 0.174634 | 0.079024 | 0.052683 | 0.052683 | 0.052683 | 0 | 0.004068 | 0.319867 | 3,614 | 115 | 82 | 31.426087 | 0.829943 | 0.39181 | 0 | 0.145161 | 1 | 0 | 0.002485 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.258065 | false | 0 | 0 | 0.080645 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c08dd1443840b912381c2a816131c4cc5a18e191 | 460 | py | Python | src/init.py | arnulfojr/simple-pos | 119c4c52bf62f52004f4b2b031098ed71890d250 | [
"MIT"
] | 1 | 2018-09-11T19:32:25.000Z | 2018-09-11T19:32:25.000Z | src/init.py | arnulfojr/simple-pos | 119c4c52bf62f52004f4b2b031098ed71890d250 | [
"MIT"
] | null | null | null | src/init.py | arnulfojr/simple-pos | 119c4c52bf62f52004f4b2b031098ed71890d250 | [
"MIT"
] | null | null | null |
from werkzeug.wsgi import DispatcherMiddleware
from werkzeug.serving import run_simple
from flask import Flask
from api import app as api_app
from frontend import app as frontend_app
from settings import HOSTNAME, PORT, USE_RELOADER, USE_DEBUGGER
application = DispatcherMiddleware(frontend_app, {'/api': api_app})
... | 24.210526 | 67 | 0.78913 | 61 | 460 | 5.622951 | 0.377049 | 0.09621 | 0.122449 | 0.12828 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15 | 460 | 18 | 68 | 25.555556 | 0.877238 | 0 | 0 | 0 | 0 | 0 | 0.026201 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 0.6 | 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 | 1 | 0 | 0 | 2 |
c0919bb09d478ed42934b608bbec7550ee638b57 | 6,875 | py | Python | v5-unity/codechella-to-codcast/convert.py | ipflsfiles/PyTutor | 5d10715d960c6fefcc2ffaeda915ba25d48098fe | [
"MIT"
] | 17 | 2021-12-09T11:31:44.000Z | 2021-12-29T03:07:14.000Z | v5-unity/codechella-to-codcast/convert.py | heysachin/OnlinePythonTutor | 0dcdacc7ff5be504dd6a47236ebc69dc0069f991 | [
"MIT"
] | 8 | 2020-02-04T20:23:26.000Z | 2020-02-17T00:23:37.000Z | v5-unity/codechella-to-codcast/convert.py | heysachin/OnlinePythonTutor | 0dcdacc7ff5be504dd6a47236ebc69dc0069f991 | [
"MIT"
] | 17 | 2020-07-02T01:23:57.000Z | 2022-01-14T00:13:57.000Z | # this script converts a codechella session log recorded by
# ../../v3/opt_togetherjs/server.js
#
# and turns it into the codcast format, which is readable by
# ../js/recorder.ts and ../js/demovideo.ts
#
# writes JSON output to stdout
# created: 2018-05-27
'''
NB: now that i think about it more, it's not entirely cl... | 34.898477 | 92 | 0.683636 | 912 | 6,875 | 5.120614 | 0.385965 | 0.014133 | 0.010278 | 0.011991 | 0.055675 | 0.038544 | 0.038544 | 0.016702 | 0.016702 | 0 | 0 | 0.006172 | 0.222255 | 6,875 | 196 | 93 | 35.076531 | 0.867215 | 0.332655 | 0 | 0.055556 | 0 | 0 | 0.18583 | 0.019514 | 0 | 0 | 0 | 0.010204 | 0.033333 | 0 | null | null | 0 | 0.077778 | null | null | 0.022222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c094c5ef199842514b59c30dbe3fdb076eb1e6ce | 569 | py | Python | 11_20/day-19/etch-a-sketch.py | srakhe/100-days-py | 4d99ab35eb1376d2f8722c42e0bf98acc18fba20 | [
"MIT"
] | null | null | null | 11_20/day-19/etch-a-sketch.py | srakhe/100-days-py | 4d99ab35eb1376d2f8722c42e0bf98acc18fba20 | [
"MIT"
] | null | null | null | 11_20/day-19/etch-a-sketch.py | srakhe/100-days-py | 4d99ab35eb1376d2f8722c42e0bf98acc18fba20 | [
"MIT"
] | null | null | null | from turtle import Turtle, Screen
my_turtle = Turtle()
screen = Screen()
my_turtle.shape('arrow')
def forward():
my_turtle.forward(10)
def backward():
my_turtle.back(10)
def right():
my_turtle.right(10)
def left():
my_turtle.left(10)
def clear_screen():
my_turtle.penup()
my_turtle.home... | 15.378378 | 36 | 0.695958 | 78 | 569 | 4.923077 | 0.333333 | 0.208333 | 0.109375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016563 | 0.151142 | 569 | 36 | 37 | 15.805556 | 0.778468 | 0 | 0 | 0 | 0 | 0 | 0.017575 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208333 | false | 0 | 0.041667 | 0 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c09649fafd269a13bbe7eb040fd4b744eaff7be0 | 29,872 | py | Python | constants/flags.py | CataLatas/earthbound-script-dumper | 167f6cfb8881e0c8bef64de46bad27a8f1ceb579 | [
"MIT"
] | 2 | 2021-01-03T06:44:15.000Z | 2021-06-20T14:33:02.000Z | constants/flags.py | CataLatas/earthbound-script-dumper | 167f6cfb8881e0c8bef64de46bad27a8f1ceb579 | [
"MIT"
] | null | null | null | constants/flags.py | CataLatas/earthbound-script-dumper | 167f6cfb8881e0c8bef64de46bad27a8f1ceb579 | [
"MIT"
] | null | null | null | # Flag names for MOTHER2/Earthbound
# Luckily, every version uses the same flag IDs
FLAG_NAMES = {
1: 'TEMP_1',
2: 'TEMP_2',
3: 'TEMP_3',
4: 'TEMP_4',
5: 'TEMP_5',
6: 'TEMP_6',
7: 'TEMP_7',
8: 'TEMP_8',
9: 'TEMP_9',
10: 'TEMP_10',
11: 'ENEMY_SUPPRESS',
... | 37.527638 | 137 | 0.711235 | 4,117 | 29,872 | 4.625698 | 0.366286 | 0.015806 | 0.008979 | 0.009242 | 0.032241 | 0.022159 | 0.012497 | 0.006091 | 0.006091 | 0.006091 | 0 | 0.099654 | 0.178662 | 29,872 | 795 | 138 | 37.574843 | 0.676544 | 0.105986 | 0 | 0 | 0 | 0 | 0.63582 | 0.491261 | 0 | 0 | 0 | 0.001258 | 0 | 1 | 0 | false | 0.001406 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c0977ec182726caf1d4107d4fe4a01c092f142cd | 136 | py | Python | scripts/temp/palindrome.py | AgnirudraSil/tetris | 2a4f4c26190fc8b669f98c116af343f7f1ac51bf | [
"MIT"
] | 3 | 2022-01-11T06:11:08.000Z | 2022-03-10T09:34:42.000Z | scripts/temp/palindrome.py | agnirudrasil/tetris | 2a4f4c26190fc8b669f98c116af343f7f1ac51bf | [
"MIT"
] | null | null | null | scripts/temp/palindrome.py | agnirudrasil/tetris | 2a4f4c26190fc8b669f98c116af343f7f1ac51bf | [
"MIT"
] | null | null | null | inp = input("Enter a number or word: ")
if inp[::-1].lower() == inp.lower():
print("Palindrome")
else:
print("Not Palindrome")
| 19.428571 | 39 | 0.602941 | 19 | 136 | 4.315789 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009009 | 0.183824 | 136 | 6 | 40 | 22.666667 | 0.72973 | 0 | 0 | 0 | 0 | 0 | 0.352941 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c0b91d1c14317de341d91b6befd9c5f1edd81f70 | 206 | py | Python | RecoLocalTracker/SubCollectionProducers/python/ClusterMultiplicityFilter_cfi.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | RecoLocalTracker/SubCollectionProducers/python/ClusterMultiplicityFilter_cfi.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | RecoLocalTracker/SubCollectionProducers/python/ClusterMultiplicityFilter_cfi.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | import FWCore.ParameterSet.Config as cms
tifClusterFilter = cms.EDFilter("ClusterMultiplicityFilter",
MaxNumberOfClusters = cms.uint32(300),
ClusterCollection = cms.InputTag('siStripClusters')
)
| 22.888889 | 60 | 0.781553 | 18 | 206 | 8.944444 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027624 | 0.121359 | 206 | 8 | 61 | 25.75 | 0.861878 | 0 | 0 | 0 | 0 | 0 | 0.196078 | 0.122549 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c0dfadf3709b6d1e8b41b5a901cd78791a2d2d8b | 206 | py | Python | bonked/__init__.py | brl0/bonked | 84a03887652246c8a76052c5ec64a3ad3e187434 | [
"MIT"
] | 1 | 2020-07-12T02:11:15.000Z | 2020-07-12T02:11:15.000Z | bonked/__init__.py | brl0/bonked | 84a03887652246c8a76052c5ec64a3ad3e187434 | [
"MIT"
] | null | null | null | bonked/__init__.py | brl0/bonked | 84a03887652246c8a76052c5ec64a3ad3e187434 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Top-level package for bonked."""
__author__ = "Brian Larsen"
__email__ = "bmelarsen+bonked@gmail.com"
__license__ = "MIT"
__version__ = "0.1.2dev"
| 22.888889 | 41 | 0.650485 | 26 | 206 | 4.538462 | 0.961538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028902 | 0.160194 | 206 | 8 | 42 | 25.75 | 0.653179 | 0.354369 | 0 | 0 | 0 | 0 | 0.415254 | 0.220339 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c0e8d7a47576799f2928db7c8960d0cfbd545562 | 12,562 | py | Python | pysnmp/H3C-DOT11-QOS-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/H3C-DOT11-QOS-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/H3C-DOT11-QOS-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module H3C-DOT11-QOS-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/H3C-DOT11-QOS-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 19:08:37 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Ma... | 123.156863 | 1,997 | 0.774638 | 1,354 | 12,562 | 7.185377 | 0.132201 | 0.010279 | 0.012026 | 0.015623 | 0.419159 | 0.359544 | 0.326036 | 0.312879 | 0.296947 | 0.296947 | 0 | 0.134144 | 0.083745 | 12,562 | 101 | 1,998 | 124.376238 | 0.711121 | 0.02611 | 0 | 0.021739 | 0 | 0 | 0.117301 | 0.014315 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076087 | 0 | 0.163043 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c0f977c4cda3e036eae32d5680d4c9f425842373 | 1,118 | py | Python | django_leek/models.py | Volumental/django-leek | ce090edc7f7781e21f356202a7c24856847fb866 | [
"MIT"
] | 1 | 2020-11-20T21:28:24.000Z | 2020-11-20T21:28:24.000Z | django_leek/models.py | Volumental/django-leek | ce090edc7f7781e21f356202a7c24856847fb866 | [
"MIT"
] | 6 | 2018-05-15T11:48:56.000Z | 2020-07-01T10:09:58.000Z | django_leek/models.py | Volumental/django-leek | ce090edc7f7781e21f356202a7c24856847fb866 | [
"MIT"
] | 1 | 2018-11-19T15:57:54.000Z | 2018-11-19T15:57:54.000Z | import base64
import pickle
from typing import Any
from django.db import models
class Task(models.Model):
pickled_task = models.BinaryField(max_length=4096)
pool = models.CharField(max_length=256, null=True)
queued_at = models.DateTimeField(auto_now_add=True)
started_at = models.DateTimeField(null=Tr... | 30.216216 | 70 | 0.708408 | 147 | 1,118 | 5.251701 | 0.312925 | 0.051813 | 0.07772 | 0.101036 | 0.409326 | 0.15285 | 0.15285 | 0.15285 | 0.15285 | 0.15285 | 0 | 0.028249 | 0.208408 | 1,118 | 36 | 71 | 31.055556 | 0.844068 | 0 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.178571 | false | 0 | 0.142857 | 0.107143 | 0.857143 | 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 | 1 | 0 | 0 | 2 |
c0fcf68e0080671158d5748a8a0eae6647c24530 | 327 | py | Python | comments/api/views.py | rkarthikdev/blog_api_django | 9d4e6f7984015518a63fb2793b8539e5636cb9ba | [
"MIT"
] | null | null | null | comments/api/views.py | rkarthikdev/blog_api_django | 9d4e6f7984015518a63fb2793b8539e5636cb9ba | [
"MIT"
] | 5 | 2021-03-19T11:21:48.000Z | 2021-11-15T17:52:14.000Z | comments/api/views.py | rkarthikdev/blog_api_django | 9d4e6f7984015518a63fb2793b8539e5636cb9ba | [
"MIT"
] | null | null | null | from rest_framework import viewsets
from .serializers import CommentSerializer
from comments.models import Comment
from .permissions import IsGetOrIsAdmin
class CommentViewSet(viewsets.ModelViewSet):
queryset = Comment.objects.all()
serializer_class = CommentSerializer
permission_classes = (IsGetOrIs... | 29.727273 | 44 | 0.810398 | 32 | 327 | 8.1875 | 0.65625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137615 | 327 | 11 | 45 | 29.727273 | 0.929078 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
23927a91afdadf64ae52d8b4dc30bbe9077e0e63 | 1,108 | py | Python | tests/python/test.py | pylbert/firfilt | a0658082009524632fb41e3114604b27a63081d2 | [
"MIT"
] | null | null | null | tests/python/test.py | pylbert/firfilt | a0658082009524632fb41e3114604b27a63081d2 | [
"MIT"
] | null | null | null | tests/python/test.py | pylbert/firfilt | a0658082009524632fb41e3114604b27a63081d2 | [
"MIT"
] | null | null | null | #! /usr/bin/env python
def main(filename_raw_in, filename_filtered_out):
import fir
import tempfile
filt = fir.Filter_LP(51, 1000, 7)
fdout = tempfile.NamedTemporaryFile(delete = False)
with open(filename_raw_in) as f:
for line in f:
try:
raw = float(line.str... | 25.767442 | 110 | 0.604693 | 156 | 1,108 | 4.134615 | 0.480769 | 0.054264 | 0.088372 | 0.074419 | 0.086822 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022814 | 0.287906 | 1,108 | 42 | 111 | 26.380952 | 0.794677 | 0.124549 | 0 | 0.206897 | 0 | 0.034483 | 0.116977 | 0.050725 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.068966 | 0.172414 | null | null | 0.068966 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
23945c56d60b3a7bd53d6b2efb447522552ee4f3 | 1,040 | py | Python | apitests/conftest.py | hjalves/playlists | 3903c493ef843f8763ae2fa39481bf43c9d57c22 | [
"MIT"
] | null | null | null | apitests/conftest.py | hjalves/playlists | 3903c493ef843f8763ae2fa39481bf43c9d57c22 | [
"MIT"
] | 6 | 2017-10-31T01:46:38.000Z | 2017-11-03T15:25:13.000Z | apitests/conftest.py | hjalves/playlists | 3903c493ef843f8763ae2fa39481bf43c9d57c22 | [
"MIT"
] | null | null | null | # This file is loaded by py.test to discover API tests
import pytest
from apitest import APITest
from loader import yaml_load
def pytest_collect_file(parent, path):
if path.ext == ".yaml" and path.basename.startswith("test"):
return APITestFile(path, parent)
class APITestFile(pytest.File):
def col... | 26.666667 | 67 | 0.647115 | 135 | 1,040 | 4.837037 | 0.392593 | 0.053599 | 0.030628 | 0.042879 | 0.061256 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001261 | 0.2375 | 1,040 | 38 | 68 | 27.368421 | 0.822194 | 0.088462 | 0 | 0 | 0 | 0 | 0.038257 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208333 | false | 0 | 0.125 | 0.041667 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
23a3768c6a624aa88ba2ae30e3eedd8327cb22e3 | 4,236 | py | Python | cargo/logic/binary.py | jaredlunde/cargo-orm | 1d5524d359bd52a991edc738982b7df2149d9c69 | [
"MIT"
] | 3 | 2017-02-10T08:03:21.000Z | 2017-02-25T04:55:48.000Z | cargo/logic/binary.py | jaredlunde/cargo-orm | 1d5524d359bd52a991edc738982b7df2149d9c69 | [
"MIT"
] | null | null | null | cargo/logic/binary.py | jaredlunde/cargo-orm | 1d5524d359bd52a991edc738982b7df2149d9c69 | [
"MIT"
] | null | null | null | """
`Binary Logic and Operations`
--·--·--·--·--·--·--·--·--·--·--·--·--·--·--·--·--·--·--·--·--·--·--·--·--·--·--
2016 Jared Lunde © The MIT License (MIT)
http://github.com/jaredlunde
"""
import psycopg2.extensions
from cargo.expressions import *
__all__ = ('BinaryLogic',)
class BinaryLogic(BaseLogic):
... | 32.584615 | 80 | 0.54745 | 467 | 4,236 | 4.912206 | 0.244111 | 0.021796 | 0.031386 | 0.040105 | 0.296425 | 0.232345 | 0.227114 | 0.12075 | 0.054054 | 0.011334 | 0 | 0.003734 | 0.304533 | 4,236 | 129 | 81 | 32.837209 | 0.765784 | 0.300047 | 0 | 0.071429 | 0 | 0 | 0.032774 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.267857 | false | 0 | 0.035714 | 0 | 0.642857 | 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 | 1 | 0 | 0 | 2 |
23aa2420232f1e030aa0dba2084d66d2e9869fff | 732 | py | Python | awards/signals.py | Sundaybrian/prodev | ed51fbd7c70941de36f7bc59c1940acfafaecf72 | [
"MIT"
] | null | null | null | awards/signals.py | Sundaybrian/prodev | ed51fbd7c70941de36f7bc59c1940acfafaecf72 | [
"MIT"
] | 7 | 2020-06-05T22:53:10.000Z | 2022-02-10T08:29:14.000Z | awards/signals.py | Sundaybrian/prodev | ed51fbd7c70941de36f7bc59c1940acfafaecf72 | [
"MIT"
] | null | null | null | #signal fired after an obj is saved in this cas when a user is created
from django.db.models.signals import post_save
#post to sende the signal
from .models import Post
#reciever of the signal
from django.dispatch import receiver
from .models import Review
@receiver(post_save,sender=Post)
def create_review(sender,i... | 24.4 | 93 | 0.722678 | 112 | 732 | 4.6875 | 0.4375 | 0.085714 | 0.049524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.224044 | 732 | 29 | 94 | 25.241379 | 0.924296 | 0.519126 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.5 | 0 | 0.625 | 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 | 1 | 0 | 0 | 2 |
23b7e1ed0a356abe68d077e4c54e82a387f803af | 862 | py | Python | Dirt.py | damianStrojek/Python-GameOfLife | edd707745ab6b933d2aea0ef5ec8c92cc60e939f | [
"FSFAP"
] | 4 | 2021-06-02T10:05:01.000Z | 2022-03-19T14:01:31.000Z | Dirt.py | damianStrojek/Python-GameOfLife | edd707745ab6b933d2aea0ef5ec8c92cc60e939f | [
"FSFAP"
] | null | null | null | Dirt.py | damianStrojek/Python-GameOfLife | edd707745ab6b933d2aea0ef5ec8c92cc60e939f | [
"FSFAP"
] | null | null | null | # OOP PG WETI PROJECT NR 2
# Damian Strojek s184407 2021 IT/CS
# @ Copyright 2021, Damian Strojek, All rights reserved.
import os, pygame
from Organism import Organism
class Dirt(Organism):
# Default block that makes our world
def __init__(self, _currentWorld, _positionX, _positionY):
super(Di... | 39.181818 | 127 | 0.654292 | 103 | 862 | 5.339806 | 0.543689 | 0.081818 | 0.081818 | 0.072727 | 0.141818 | 0.141818 | 0.141818 | 0.141818 | 0.141818 | 0 | 0 | 0.02719 | 0.232019 | 862 | 22 | 128 | 39.181818 | 0.803625 | 0.171694 | 0 | 0 | 0 | 0 | 0.047896 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.142857 | 0.071429 | 0.571429 | 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 | 1 | 0 | 0 | 2 |
23b81c7dbb5a3337eafa29b254f8c0339957e224 | 626 | py | Python | agora_analytica/analytics/dummy.py | Kyrmy/prototyyppi | fe6db92efc173ed889f4b5a48d6459718d688125 | [
"MIT"
] | null | null | null | agora_analytica/analytics/dummy.py | Kyrmy/prototyyppi | fe6db92efc173ed889f4b5a48d6459718d688125 | [
"MIT"
] | 37 | 2019-10-18T15:57:33.000Z | 2019-12-17T15:54:31.000Z | agora_analytica/analytics/dummy.py | Kyrmy/prototyyppi | fe6db92efc173ed889f4b5a48d6459718d688125 | [
"MIT"
] | 3 | 2019-10-08T11:59:23.000Z | 2019-10-17T11:18:09.000Z | """
Dummy module for generating fixed - or random - distances.
"""
from numpy.random import randint
from numpy import abs, int
import pandas as pd
def distance(source: pd.Series, target: pd.Series, answers: pd.DataFrame, answer_scale=5, answer_source=None, answer_target=None):
def _maybe_random(answer: int) -> ... | 31.3 | 130 | 0.734824 | 88 | 626 | 5.034091 | 0.443182 | 0.108352 | 0.115124 | 0.108352 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003861 | 0.172524 | 626 | 19 | 131 | 32.947368 | 0.851351 | 0.198083 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.333333 | 0 | 0.777778 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
23c3e879e887582244ba169d5f98f6317ef8c467 | 605 | py | Python | src/runner/views.py | OpenROAD-Cloud/flow-runner | 1a9a22c8fa249d7fcd8d282d1c958033f64f25f3 | [
"BSD-2-Clause"
] | null | null | null | src/runner/views.py | OpenROAD-Cloud/flow-runner | 1a9a22c8fa249d7fcd8d282d1c958033f64f25f3 | [
"BSD-2-Clause"
] | 2 | 2020-02-12T03:21:51.000Z | 2020-02-12T03:24:13.000Z | src/runner/views.py | OpenROAD-Cloud/flow-runner | 1a9a22c8fa249d7fcd8d282d1c958033f64f25f3 | [
"BSD-2-Clause"
] | null | null | null | from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework import status
from runner.tasks import start_flow_task
class RunnerStartFlow(APIView):
def post(self, request):
flow_uuid = request.POST.get('flow_uuid', None)
flow_repo_url = request.POST.get... | 33.611111 | 85 | 0.752066 | 85 | 605 | 5.070588 | 0.435294 | 0.074246 | 0.102088 | 0.083527 | 0.116009 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012 | 0.173554 | 605 | 17 | 86 | 35.588235 | 0.85 | 0 | 0 | 0 | 0 | 0 | 0.079339 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.333333 | 0 | 0.666667 | 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 | 1 | 0 | 0 | 2 |
23d3f9c194701a10138ad41bc192f09a324d8bca | 1,142 | py | Python | app/models/Address.py | winlongit/shop_pc_server | 376fa5c0504e50a863aad68ead67e0a149ef5dd2 | [
"Apache-2.0"
] | 1 | 2021-12-08T13:59:32.000Z | 2021-12-08T13:59:32.000Z | app/models/Address.py | winlongit/shop_pc_server | 376fa5c0504e50a863aad68ead67e0a149ef5dd2 | [
"Apache-2.0"
] | null | null | null | app/models/Address.py | winlongit/shop_pc_server | 376fa5c0504e50a863aad68ead67e0a149ef5dd2 | [
"Apache-2.0"
] | 1 | 2021-12-08T13:59:34.000Z | 2021-12-08T13:59:34.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
-------------------------------------------------
@ Author : pengj
@ date : 2019/12/10 15:45
@ IDE : PyCharm
@ GitHub : https://github.com/JackyPJB
@ Contact : pengjianbiao@hotmail.com
---------------... | 33.588235 | 86 | 0.578809 | 121 | 1,142 | 5.297521 | 0.578512 | 0.102964 | 0.148206 | 0.179407 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022484 | 0.182137 | 1,142 | 33 | 87 | 34.606061 | 0.663812 | 0.369527 | 0 | 0 | 0 | 0 | 0.052039 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.230769 | 0.076923 | 0.923077 | 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 | 1 | 0 | 0 | 2 |
23db7b671ab95dd47385938d8449ac8cfaab90c6 | 1,232 | py | Python | py/py_0558_irrational_base.py | lcsm29/project-euler | fab794ece5aa7a11fc7c2177f26250f40a5b1447 | [
"MIT"
] | null | null | null | py/py_0558_irrational_base.py | lcsm29/project-euler | fab794ece5aa7a11fc7c2177f26250f40a5b1447 | [
"MIT"
] | null | null | null | py/py_0558_irrational_base.py | lcsm29/project-euler | fab794ece5aa7a11fc7c2177f26250f40a5b1447 | [
"MIT"
] | null | null | null | # Solution of;
# Project Euler Problem 558: Irrational base
# https://projecteuler.net/problem=558
#
# Let r be the real root of the equation x3 = x2 + 1. Every positive integer
# can be written as the sum of distinct increasing powers of r. If we require
# the number of terms to be finite and the difference between... | 38.5 | 79 | 0.663149 | 223 | 1,232 | 3.609865 | 0.502242 | 0.01118 | 0.032298 | 0.039752 | 0.07205 | 0.07205 | 0.07205 | 0 | 0 | 0 | 0 | 0.071281 | 0.214286 | 1,232 | 31 | 80 | 39.741935 | 0.759298 | 0.845779 | 0 | 0 | 0 | 0 | 0.047059 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.125 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
23dd7d506732b340e758ceda82743617eb09181a | 2,403 | py | Python | pyoptools/raytrace/__init__.py | fcichos/pyoptools | ce0df42d45420f02d351e76d5f11fded4df8969d | [
"BSD-3-Clause"
] | 1 | 2021-05-21T14:11:09.000Z | 2021-05-21T14:11:09.000Z | pyoptools/raytrace/__init__.py | fcichos/pyoptools | ce0df42d45420f02d351e76d5f11fded4df8969d | [
"BSD-3-Clause"
] | null | null | null | pyoptools/raytrace/__init__.py | fcichos/pyoptools | ce0df42d45420f02d351e76d5f11fded4df8969d | [
"BSD-3-Clause"
] | 2 | 2015-03-21T23:37:10.000Z | 2018-10-22T18:03:57.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2007, 2008, 2009,2010 Ricardo Amézquita Orozco
# <ramezquitao@unal.edu.co>,
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# ... | 36.409091 | 76 | 0.70412 | 315 | 2,403 | 5.339683 | 0.51746 | 0.053508 | 0.020214 | 0.027348 | 0.109394 | 0.080856 | 0.080856 | 0.080856 | 0.080856 | 0.080856 | 0 | 0.009014 | 0.215148 | 2,403 | 65 | 77 | 36.969231 | 0.882821 | 0.920516 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
23e3b724c2a5f79e36804365e8e0ff458a46fd33 | 553 | py | Python | code/dataloaders/__init__.py | ShawnCheung/Attention-depth | e461f3b107e34ff5740aacfd7c7d7baa6f5e9312 | [
"MIT"
] | 87 | 2019-01-30T03:06:24.000Z | 2022-03-30T06:36:49.000Z | code/dataloaders/__init__.py | ShawnCheung/Attention-depth | e461f3b107e34ff5740aacfd7c7d7baa6f5e9312 | [
"MIT"
] | 6 | 2019-02-22T08:58:32.000Z | 2021-05-21T09:28:13.000Z | code/dataloaders/__init__.py | ShawnCheung/Attention-depth | e461f3b107e34ff5740aacfd7c7d7baa6f5e9312 | [
"MIT"
] | 17 | 2019-02-18T08:49:34.000Z | 2022-01-31T10:30:58.000Z | from .nyu_dataloader import NYUDataset
from .kitti_dataloader import KITTIDataset
from .dataloader import MyDataloader
from .transforms import Resize, Rotate, RandomCrop, CenterCrop, \
ColorJitter, HorizontalFlip, ToTensor, \
Compose, Crop
from .get_datasets import create... | 46.083333 | 65 | 0.667269 | 47 | 553 | 7.659574 | 0.468085 | 0.133333 | 0.122222 | 0.177778 | 0.422222 | 0.422222 | 0.422222 | 0.422222 | 0.422222 | 0 | 0 | 0 | 0.231465 | 553 | 12 | 66 | 46.083333 | 0.847059 | 0 | 0 | 0 | 0 | 0 | 0.225632 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.454545 | 0 | 0.454545 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
23f3148c999df83959ae4db95eae08bdf578c969 | 1,053 | py | Python | work/NCS/test_files/test_wtih_restraints.py | youdar/work | d5f32015e7be1d58ede255eeadbd1d12acb3f270 | [
"MIT"
] | null | null | null | work/NCS/test_files/test_wtih_restraints.py | youdar/work | d5f32015e7be1d58ede255eeadbd1d12acb3f270 | [
"MIT"
] | null | null | null | work/NCS/test_files/test_wtih_restraints.py | youdar/work | d5f32015e7be1d58ede255eeadbd1d12acb3f270 | [
"MIT"
] | null | null | null | from __future__ import division
import mmtbx.monomer_library.pdb_interpretation
from mmtbx import monomer_library
import mmtbx.monomer_library.server
import getpass
import sys
import os
def run(file_name):
pdb_processed_file = monomer_library.pdb_interpretation.run(args=[file_name],
assume_hydrogens_all_missing=... | 30.085714 | 79 | 0.749288 | 137 | 1,053 | 5.408759 | 0.605839 | 0.075574 | 0.048583 | 0.067476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002242 | 0.152896 | 1,053 | 35 | 80 | 30.085714 | 0.828475 | 0 | 0 | 0 | 0 | 0 | 0.107143 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.074074 | 0.259259 | null | null | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
23f46abcb9b1627492116afce7e707fc24aaa5f7 | 98 | py | Python | protocol/__init__.py | KESHAmambo/IEEE_802_11ad_beamforming_simulation | 93328a41d9c044ee7596d02e360fb3b5f2250ec0 | [
"MIT"
] | null | null | null | protocol/__init__.py | KESHAmambo/IEEE_802_11ad_beamforming_simulation | 93328a41d9c044ee7596d02e360fb3b5f2250ec0 | [
"MIT"
] | null | null | null | protocol/__init__.py | KESHAmambo/IEEE_802_11ad_beamforming_simulation | 93328a41d9c044ee7596d02e360fb3b5f2250ec0 | [
"MIT"
] | null | null | null | settings = {
'log': True,
'verbosity': False,
'vcolored': True,
'time_precision': 1e-10
}
| 14 | 25 | 0.602041 | 11 | 98 | 5.272727 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038462 | 0.204082 | 98 | 6 | 26 | 16.333333 | 0.705128 | 0 | 0 | 0 | 0 | 0 | 0.346939 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9b0bbd8a3609c2ea6b243b21ae80964221f83581 | 2,388 | py | Python | sipy/test.py | riikkano/protopaja2018 | a0a7331dc9f31d56b01d93d536dfcdaf1bafe0ba | [
"MIT"
] | null | null | null | sipy/test.py | riikkano/protopaja2018 | a0a7331dc9f31d56b01d93d536dfcdaf1bafe0ba | [
"MIT"
] | null | null | null | sipy/test.py | riikkano/protopaja2018 | a0a7331dc9f31d56b01d93d536dfcdaf1bafe0ba | [
"MIT"
] | null | null | null | #Aja konsolissa: py -m unittest test.py
import unittest
from lib.mittaus import *
from lib.classes import load
from main import *
#Testaa funktiot pääohjelmasta
class TestMain(unittest.TestCase):
def test_openLoads(self):
#Testi tähän
pass
def test_openPhases(self):
#Testi tähön
... | 26.241758 | 128 | 0.649916 | 303 | 2,388 | 4.907591 | 0.277228 | 0.05649 | 0.098857 | 0.072629 | 0.287155 | 0.135171 | 0.052455 | 0.052455 | 0.052455 | 0 | 0 | 0.045938 | 0.252513 | 2,388 | 90 | 129 | 26.533333 | 0.787115 | 0.118509 | 0 | 0.12069 | 0 | 0 | 0.017217 | 0 | 0 | 0 | 0 | 0 | 0.206897 | 1 | 0.241379 | false | 0.12069 | 0.068966 | 0 | 0.362069 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
9b1cc8b3ef34aef557c3b8c05fc929e56ea2b113 | 187 | py | Python | docs/code/snippet_nmf_fro.py | askerdb/nimfa | 3e3353e60d53fd409b53c46fde23f4f6fef64aaf | [
"BSD-3-Clause"
] | 325 | 2015-04-05T01:37:17.000Z | 2020-02-01T08:06:02.000Z | docs/code/snippet_nmf_fro.py | askerdb/nimfa | 3e3353e60d53fd409b53c46fde23f4f6fef64aaf | [
"BSD-3-Clause"
] | 32 | 2015-03-30T12:55:47.000Z | 2020-01-17T10:53:54.000Z | docs/code/snippet_nmf_fro.py | askerdb/nimfa | 3e3353e60d53fd409b53c46fde23f4f6fef64aaf | [
"BSD-3-Clause"
] | 104 | 2015-03-25T22:42:47.000Z | 2020-01-30T23:06:36.000Z | import numpy as np
import nimfa
V = np.random.rand(40, 100)
nmf = nimfa.Nmf(V, seed="nndsvd", rank=10, max_iter=12, update='euclidean',
objective='fro')
nmf_fit = nmf()
| 20.777778 | 75 | 0.636364 | 30 | 187 | 3.9 | 0.766667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060811 | 0.208556 | 187 | 8 | 76 | 23.375 | 0.72973 | 0 | 0 | 0 | 0 | 0 | 0.096257 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
f1ab369e06b978fae0407fa4d34aab879ebdea79 | 3,154 | py | Python | __init__.py | yogi-poet/dance_furby | 74ae2078e3d5d660d7d6483e1a7cb1568c76d76f | [
"MIT"
] | 1 | 2019-11-25T20:31:25.000Z | 2019-11-25T20:31:25.000Z | __init__.py | yogi-poet/control-furby.cdoebler | 74ae2078e3d5d660d7d6483e1a7cb1568c76d76f | [
"MIT"
] | null | null | null | __init__.py | yogi-poet/control-furby.cdoebler | 74ae2078e3d5d660d7d6483e1a7cb1568c76d76f | [
"MIT"
] | null | null | null | from mycroft import MycroftSkill, intent_file_handler
import subprocess
class ControlFurby(MycroftSkill):
def __init__(self):
MycroftSkill.__init__(self)
@intent_file_handler('furby.tell.intent')
def handle_furby_tell(self, message):
self.speak_dialog('furby.tell')
@intent_file_handl... | 40.435897 | 78 | 0.660114 | 418 | 3,154 | 4.818182 | 0.129187 | 0.125124 | 0.160874 | 0.196624 | 0.584906 | 0.584906 | 0.554121 | 0.554121 | 0.554121 | 0.554121 | 0 | 0.020354 | 0.158846 | 3,154 | 77 | 79 | 40.961039 | 0.738786 | 0 | 0 | 0.147541 | 0 | 0 | 0.337032 | 0.194039 | 0 | 0 | 0 | 0 | 0 | 1 | 0.229508 | false | 0.016393 | 0.032787 | 0.016393 | 0.295082 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f1b6995552fe43dfdf051c9b4f3cbe57cad236f8 | 205 | py | Python | test/unit/__init__.py | Pezmc/bank2ynab | 8f18b468436a2ff0262a97e94d93841d8a59e6d0 | [
"MIT"
] | 39 | 2017-10-10T07:52:38.000Z | 2018-10-11T07:39:57.000Z | test/unit/__init__.py | jodfie/bank2ynab | 9cd79b8a0000c67640135586bcb88f1ea48eba3b | [
"MIT"
] | 185 | 2017-10-10T07:54:44.000Z | 2018-10-12T11:43:12.000Z | test/unit/__init__.py | jodfie/bank2ynab | 9cd79b8a0000c67640135586bcb88f1ea48eba3b | [
"MIT"
] | 16 | 2017-10-10T08:21:27.000Z | 2018-09-01T13:26:10.000Z | import sys
from os.path import dirname, join, realpath
project_dirname = dirname(dirname(realpath(__file__)))
path = join(project_dirname, "bank2ynab")
if path not in sys.path:
sys.path.append(path)
| 22.777778 | 54 | 0.760976 | 30 | 205 | 5 | 0.5 | 0.186667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005618 | 0.131707 | 205 | 8 | 55 | 25.625 | 0.837079 | 0 | 0 | 0 | 0 | 0 | 0.043902 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
f1cd4f0a48fda5efe330a93ad7a0b09c51f15c28 | 359 | py | Python | d3status/tasks/email_tasks.py | nicozhang/startUp | 02149dd91a7df72134e0a92d3bffbcf11b680536 | [
"Apache-2.0"
] | 124 | 2015-01-02T04:53:21.000Z | 2020-12-17T09:01:53.000Z | d3status/tasks/email_tasks.py | nicozhang/startUp | 02149dd91a7df72134e0a92d3bffbcf11b680536 | [
"Apache-2.0"
] | 2 | 2016-03-04T07:42:21.000Z | 2020-10-11T06:34:56.000Z | d3status/tasks/email_tasks.py | nicozhang/startUp | 02149dd91a7df72134e0a92d3bffbcf11b680536 | [
"Apache-2.0"
] | 46 | 2015-01-03T05:42:01.000Z | 2020-12-17T09:01:39.000Z | # -*- coding: utf-8 -*-
#
# Copyright (c) 2012 feilong.me. All rights reserved.
#
# @author: Felinx Lee <felinx.lee@gmail.com>
# Created on Jun 30, 2012
#
from celery.task import task
from d3status.mail import send_email
@task
def send_email_task(fr, to, subject, body, html=None, attachments=[]):
send_email(fr,... | 22.4375 | 70 | 0.70195 | 54 | 359 | 4.592593 | 0.666667 | 0.108871 | 0.104839 | 0.120968 | 0.153226 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039735 | 0.158774 | 359 | 15 | 71 | 23.933333 | 0.781457 | 0.392758 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.6 | 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 | 1 | 0 | 0 | 2 |
f1d21df3979ce989d946e3b786648dfc75efd40d | 370 | py | Python | guniflask_cli/commands/version.py | jadbin/guniflask-cli | 1328e1d3fbdbc823c25be2848b8e23185de7e27b | [
"MIT"
] | 2 | 2020-04-05T06:57:09.000Z | 2020-08-01T01:48:12.000Z | guniflask_cli/commands/version.py | jadbin/guniflask-cli | 1328e1d3fbdbc823c25be2848b8e23185de7e27b | [
"MIT"
] | 1 | 2020-07-22T15:24:45.000Z | 2020-07-29T14:47:14.000Z | guniflask_cli/commands/version.py | jadbin/guniflask-cli | 1328e1d3fbdbc823c25be2848b8e23185de7e27b | [
"MIT"
] | null | null | null | import click
from guniflask_cli import __version__
@click.group()
def cli_version():
pass
@cli_version.command('version')
def main():
"""
Print the version.
"""
Version().run()
class Version:
def run(self):
print(f" guniflask-cli: v{__version__}")
import guniflask
... | 14.8 | 55 | 0.62973 | 43 | 370 | 5.069767 | 0.418605 | 0.110092 | 0.137615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.240541 | 370 | 24 | 56 | 15.416667 | 0.775801 | 0.048649 | 0 | 0 | 0 | 0 | 0.223214 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0.076923 | 0.230769 | 0 | 0.538462 | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
f1ddb50678b0e66a3b764958109722f2c4985aa3 | 565 | py | Python | clist/migrations/0012_auto_20191123_0953.py | horacexd/clist | 9759dfea97b86514bec9825d2430abc36decacf0 | [
"Apache-2.0"
] | 166 | 2019-05-16T23:46:08.000Z | 2022-03-31T05:20:23.000Z | clist/migrations/0012_auto_20191123_0953.py | horacexd/clist | 9759dfea97b86514bec9825d2430abc36decacf0 | [
"Apache-2.0"
] | 92 | 2020-01-18T22:51:53.000Z | 2022-03-12T01:23:57.000Z | clist/migrations/0012_auto_20191123_0953.py | VadVergasov/clist | 4afcdfe88250d224043b28efa511749347cec71c | [
"Apache-2.0"
] | 23 | 2020-02-09T17:38:43.000Z | 2021-12-09T14:39:07.000Z | # Generated by Django 2.1.7 on 2019-11-23 09:53
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('clist', '0011_auto_20190818_1125'),
]
operations = [
migrations.AddIndex(
model_name='contest',
index=models.Index(f... | 25.681818 | 93 | 0.621239 | 65 | 565 | 5.138462 | 0.630769 | 0.107784 | 0.137725 | 0.161677 | 0.335329 | 0.335329 | 0.335329 | 0.335329 | 0.335329 | 0 | 0 | 0.092637 | 0.254867 | 565 | 21 | 94 | 26.904762 | 0.700713 | 0.079646 | 0 | 0.4 | 1 | 0 | 0.23166 | 0.160232 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.266667 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f1ec512ffc93c6d9a32d05b49949a458ffaa6f95 | 2,228 | py | Python | chb/models/DllFunctionAPI.py | psifertex/CodeHawk-Binary | 1711d7b16d32a2e9ffa9d22af483182b3f9ded77 | [
"MIT"
] | null | null | null | chb/models/DllFunctionAPI.py | psifertex/CodeHawk-Binary | 1711d7b16d32a2e9ffa9d22af483182b3f9ded77 | [
"MIT"
] | null | null | null | chb/models/DllFunctionAPI.py | psifertex/CodeHawk-Binary | 1711d7b16d32a2e9ffa9d22af483182b3f9ded77 | [
"MIT"
] | null | null | null | # ------------------------------------------------------------------------------
# Access to the CodeHawk Binary Analyzer Analysis Results
# Author: Henny Sipma
# ------------------------------------------------------------------------------
# The MIT License (MIT)
#
# Copyright (c) 2016-2020 Kestrel Technology LLC
#
#... | 44.56 | 84 | 0.662029 | 284 | 2,228 | 5.123239 | 0.5 | 0.060481 | 0.012371 | 0.009622 | 0.01512 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004324 | 0.169659 | 2,228 | 49 | 85 | 45.469388 | 0.782162 | 0.629713 | 0 | 0 | 0 | 0 | 0.010025 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0.066667 | 0.2 | 0.733333 | 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 | 1 | 0 | 0 | 0 | 2 |
f1ed31689e9e0234a255cd54ec23169e1a27b396 | 438 | py | Python | app/admin.py | naritotakizawa/django-genericforeignkey-sample | 3fdf2a16e0b6db2b0b57d982647788cbddfb5b89 | [
"MIT"
] | null | null | null | app/admin.py | naritotakizawa/django-genericforeignkey-sample | 3fdf2a16e0b6db2b0b57d982647788cbddfb5b89 | [
"MIT"
] | null | null | null | app/admin.py | naritotakizawa/django-genericforeignkey-sample | 3fdf2a16e0b6db2b0b57d982647788cbddfb5b89 | [
"MIT"
] | null | null | null | from django.contrib import admin
from django.contrib.contenttypes.admin import GenericTabularInline
from .models import Post, File, Comment
class FileInline(GenericTabularInline):
model = File
class PostAdmin(admin.ModelAdmin):
inlines = [FileInline]
class CommentAdmin(admin.ModelAdmin):
inlines = [Fi... | 20.857143 | 66 | 0.787671 | 49 | 438 | 7.040816 | 0.408163 | 0.078261 | 0.147826 | 0.185507 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123288 | 438 | 20 | 67 | 21.9 | 0.898438 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.75 | 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 | 1 | 0 | 0 | 2 |
f1ee7e84983f15e949c18eb00f58d7d5a2c79773 | 280 | py | Python | pys/classes/exceptions.py | Xithrius/Examples | d29fe9510f1c62a807e09f9707d0b2f6de9ffeed | [
"MIT"
] | null | null | null | pys/classes/exceptions.py | Xithrius/Examples | d29fe9510f1c62a807e09f9707d0b2f6de9ffeed | [
"MIT"
] | null | null | null | pys/classes/exceptions.py | Xithrius/Examples | d29fe9510f1c62a807e09f9707d0b2f6de9ffeed | [
"MIT"
] | null | null | null | class BaseErrorInheretence(Exception):
pass
class SpecialError(BaseErrorInheretence):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
# More code here if needed
raise SpecialError('stuff and things', error='something happened')
| 21.538462 | 66 | 0.7 | 29 | 280 | 6.482759 | 0.793103 | 0.106383 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185714 | 280 | 12 | 67 | 23.333333 | 0.824561 | 0.085714 | 0 | 0 | 0 | 0 | 0.133858 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.166667 | 0 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
f1fc1fcd4f0d36ea589cad94ed545c072e7ce6f2 | 2,022 | py | Python | py/levels/captured.py | triffid/kiki | b64b8524063c149a5cc9118f48d80afec1d8a942 | [
"Unlicense"
] | 2 | 2020-01-04T23:44:10.000Z | 2020-07-12T17:10:09.000Z | py/levels/captured.py | triffid/kiki | b64b8524063c149a5cc9118f48d80afec1d8a942 | [
"Unlicense"
] | null | null | null | py/levels/captured.py | triffid/kiki | b64b8524063c149a5cc9118f48d80afec1d8a942 | [
"Unlicense"
] | 1 | 2022-03-16T05:43:33.000Z | 2022-03-16T05:43:33.000Z | # .................................................................................................................
# Level design of 'captured' by Niko Boehm
# .................................................................................................................
level_dict["captured"] = {
... | 50.55 | 115 | 0.317013 | 161 | 2,022 | 3.968944 | 0.285714 | 0.305164 | 0.175274 | 0.093897 | 0.625978 | 0.527387 | 0.450704 | 0.316119 | 0.316119 | 0.316119 | 0 | 0.042629 | 0.443126 | 2,022 | 39 | 116 | 51.846154 | 0.524867 | 0.132542 | 0 | 0 | 0 | 0 | 0.185622 | 0.025751 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7b2cd48a22b323fd9fb90dfcde84d9318d57049b | 2,047 | py | Python | tests/test_filename.py | mverbowski/beets-copyartifacts | 20b7c7e2f052a3b2218ef605341e5bc6e4669cde | [
"MIT"
] | null | null | null | tests/test_filename.py | mverbowski/beets-copyartifacts | 20b7c7e2f052a3b2218ef605341e5bc6e4669cde | [
"MIT"
] | null | null | null | tests/test_filename.py | mverbowski/beets-copyartifacts | 20b7c7e2f052a3b2218ef605341e5bc6e4669cde | [
"MIT"
] | null | null | null | import os
import sys
from helper import CopyArtifactsTestCase
from beets import config
class CopyArtifactsFilename(CopyArtifactsTestCase):
"""
Tests to check handling of artifacts with filenames containing unicode characters
"""
def setUp(self):
super(CopyArtifactsFilename, self).setUp()
... | 36.553571 | 94 | 0.661456 | 264 | 2,047 | 4.859848 | 0.268939 | 0.056118 | 0.08106 | 0.076383 | 0.533905 | 0.533905 | 0.533905 | 0.533905 | 0.512081 | 0.512081 | 0 | 0.008065 | 0.212506 | 2,047 | 55 | 95 | 37.218182 | 0.787841 | 0.076698 | 0 | 0.352941 | 0 | 0 | 0.170849 | 0 | 0 | 0 | 0 | 0 | 0.088235 | 1 | 0.117647 | false | 0 | 0.5 | 0 | 0.647059 | 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 | 1 | 0 | 0 | 2 |
7b307c5c5c94fd5fea5a8b201abd6b53eb161f87 | 644 | py | Python | kungfucms/apps/account/signals.py | youngershen/kungfucms | 1a4371606166eedcab693706d388071f849a4259 | [
"MIT"
] | null | null | null | kungfucms/apps/account/signals.py | youngershen/kungfucms | 1a4371606166eedcab693706d388071f849a4259 | [
"MIT"
] | 4 | 2021-03-30T13:27:30.000Z | 2021-09-22T19:03:49.000Z | kungfucms/apps/account/signals.py | youngershen/kungfucms | 1a4371606166eedcab693706d388071f849a4259 | [
"MIT"
] | null | null | null | # PROJECT : kungfucms
# TIME : 2020/6/9 12:54
# AUTHOR : Younger Shen
# EMAIL : shenyangang@163.com
# PHONE : 13811754531
# WECHAT : 13811754531
# https://github.com/youngershen
from django.core.signals import request_started, \
request_finished
from django.dispatch import Signal, receiver
before_sign_in = Sig... | 23.851852 | 69 | 0.746894 | 81 | 644 | 5.740741 | 0.567901 | 0.03871 | 0.122581 | 0.174194 | 0.225806 | 0.15914 | 0.15914 | 0 | 0 | 0 | 0 | 0.062389 | 0.128882 | 644 | 26 | 70 | 24.769231 | 0.766488 | 0.257764 | 0 | 0.166667 | 0 | 0 | 0.076596 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.166667 | 0.166667 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
7b3163c1682c32aa0ecddf806aca54a134e52645 | 199 | py | Python | Topics/Algorithms in Python/Last index of max/main.py | soukalli/jetbrain-accademy | fc486d439b4b54a58956e1186eb69c56b85f85f1 | [
"MIT"
] | null | null | null | Topics/Algorithms in Python/Last index of max/main.py | soukalli/jetbrain-accademy | fc486d439b4b54a58956e1186eb69c56b85f85f1 | [
"MIT"
] | null | null | null | Topics/Algorithms in Python/Last index of max/main.py | soukalli/jetbrain-accademy | fc486d439b4b54a58956e1186eb69c56b85f85f1 | [
"MIT"
] | null | null | null | def last_indexof_max(numbers):
# write the modified algorithm here
index = 0
for i in range(len(numbers)):
if numbers[i] >= numbers[index]:
index = i
return index
| 24.875 | 40 | 0.60804 | 27 | 199 | 4.407407 | 0.703704 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007194 | 0.301508 | 199 | 7 | 41 | 28.428571 | 0.848921 | 0.165829 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9e374d029b9b2499163d01dae5e0871576dfea9f | 332 | py | Python | keepworking/settings.py | yelijing18/KeepWorking | 73e5b5b1d8914d73fdadb13be3e137cd88401e5d | [
"MIT"
] | null | null | null | keepworking/settings.py | yelijing18/KeepWorking | 73e5b5b1d8914d73fdadb13be3e137cd88401e5d | [
"MIT"
] | null | null | null | keepworking/settings.py | yelijing18/KeepWorking | 73e5b5b1d8914d73fdadb13be3e137cd88401e5d | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from decouple import config
from dotenv import load_dotenv, find_dotenv
load_dotenv(find_dotenv('.env', usecwd=True))
load_dotenv(find_dotenv('default.env', raise_error_if_not_found=True))
COUNTDOWN = config('COUNTDOWN', default=5, cast=int)
EVENT_INTERVAL = config('EVENT_INTERVAL', default=1... | 30.181818 | 70 | 0.768072 | 49 | 332 | 4.959184 | 0.530612 | 0.123457 | 0.17284 | 0.246914 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009967 | 0.093373 | 332 | 10 | 71 | 33.2 | 0.797342 | 0.063253 | 0 | 0 | 0 | 0 | 0.122977 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
9e46608c6821a7275a5663e39b08ca68e0b444ca | 497 | py | Python | src/libs/Web3Client/tests/testGetBlock.py | JorgePadilla/crabada.py | bc9c1e78deccbc6704492a4756d4416f3013346d | [
"MIT"
] | null | null | null | src/libs/Web3Client/tests/testGetBlock.py | JorgePadilla/crabada.py | bc9c1e78deccbc6704492a4756d4416f3013346d | [
"MIT"
] | null | null | null | src/libs/Web3Client/tests/testGetBlock.py | JorgePadilla/crabada.py | bc9c1e78deccbc6704492a4756d4416f3013346d | [
"MIT"
] | null | null | null | from src.common.config import nodeUri
from src.libs.Web3Client.AvalancheCWeb3Client import AvalancheCWeb3Client
from pprint import pprint
from src.libs.Web3Client.helpers.debug import pprintAttributeDict
# VARS
client = AvalancheCWeb3Client(nodeUri=nodeUri)
# TEST FUNCTIONS
def test() -> None:
print(">>> LATEST ... | 24.85 | 73 | 0.768612 | 57 | 497 | 6.666667 | 0.473684 | 0.055263 | 0.057895 | 0.110526 | 0.226316 | 0.226316 | 0.226316 | 0 | 0 | 0 | 0 | 0.016018 | 0.120724 | 497 | 19 | 74 | 26.157895 | 0.853547 | 0.054326 | 0 | 0 | 0 | 0 | 0.098712 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.363636 | 0 | 0.454545 | 0.545455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 2 |
9e4d59fc1c6e7f7f7a414d6e9149252c395ede6f | 342 | py | Python | codewars/python/Inc_dec_test.py | James992927108/practice | f7af14f8d7550bff110a6e1424fd44cd8803252d | [
"MIT"
] | null | null | null | codewars/python/Inc_dec_test.py | James992927108/practice | f7af14f8d7550bff110a6e1424fd44cd8803252d | [
"MIT"
] | null | null | null | codewars/python/Inc_dec_test.py | James992927108/practice | f7af14f8d7550bff110a6e1424fd44cd8803252d | [
"MIT"
] | null | null | null | import sys
sys.dont_write_bytecode = True
import unittest
import inc_dec
class Test_TestIncrementDecrement(unittest.TestCase):
def test_increment(self):
self.assertEquals(inc_dec.increment(3), 4)
def test_decrement(self):
self.assertEquals(inc_dec.decrement(3), 2)
if __name__ == '__main__'... | 19 | 53 | 0.730994 | 44 | 342 | 5.318182 | 0.545455 | 0.076923 | 0.17094 | 0.196581 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014085 | 0.169591 | 342 | 17 | 54 | 20.117647 | 0.809859 | 0 | 0 | 0 | 0 | 0 | 0.023392 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 1 | 0.181818 | false | 0 | 0.272727 | 0 | 0.545455 | 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 | 1 | 0 | 0 | 2 |
9e6421305a3e7a65a9f3b21e426ef44b60c5c20f | 385 | py | Python | small_number.py | ambivert143/PythonProgram | 9c21027c35b3b1c3542b068f45faab5db00a2fa8 | [
"MIT"
] | null | null | null | small_number.py | ambivert143/PythonProgram | 9c21027c35b3b1c3542b068f45faab5db00a2fa8 | [
"MIT"
] | null | null | null | small_number.py | ambivert143/PythonProgram | 9c21027c35b3b1c3542b068f45faab5db00a2fa8 | [
"MIT"
] | null | null | null | class Small_Number:
def __init__(self, list):
self.list = list
def sma(self):
for x in range(len(self.list)):
for y in range(len(self.list)):
if self.list[x] > self.list[y]:
self.list[x], self.list[y] = self.list[y], self.list[x]
pr... | 35 | 76 | 0.511688 | 61 | 385 | 3.131148 | 0.344262 | 0.460733 | 0.141361 | 0.204188 | 0.471204 | 0.282723 | 0.230366 | 0.230366 | 0 | 0 | 0 | 0.034091 | 0.314286 | 385 | 11 | 77 | 35 | 0.689394 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0 | 0 | 0.272727 | 0.090909 | 0 | 0 | 0 | null | 1 | 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 | 2 |
9e69433b86479f5d8e77bd06fce18e209e124755 | 328 | py | Python | tests/test_utility.py | jrepp/redis-bus | 872d5e14ddf1a4ade424dce46ae89baa9c0f965d | [
"MIT"
] | null | null | null | tests/test_utility.py | jrepp/redis-bus | 872d5e14ddf1a4ade424dce46ae89baa9c0f965d | [
"MIT"
] | null | null | null | tests/test_utility.py | jrepp/redis-bus | 872d5e14ddf1a4ade424dce46ae89baa9c0f965d | [
"MIT"
] | null | null | null | from redisbus.utility import DictObj
def test_dictobj():
subject_dict = {
"foo": "bar",
"left": "right"
}
subject_obj = DictObj(subject_dict)
assert hasattr(subject_obj, 'foo')
assert hasattr(subject_obj, 'left')
assert subject_obj.foo == "bar"
assert subject_obj.left == ... | 20.5 | 39 | 0.634146 | 39 | 328 | 5.128205 | 0.410256 | 0.25 | 0.18 | 0.23 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.240854 | 328 | 15 | 40 | 21.866667 | 0.803213 | 0 | 0 | 0 | 0 | 0 | 0.091463 | 0 | 0 | 0 | 0 | 0 | 0.363636 | 1 | 0.090909 | false | 0 | 0.090909 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 1 | 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 | 2 |
9e7d9ea8661f8f2705525cca40ff75aed7242fb8 | 477 | py | Python | tests/models/test_models.py | kynk94/torch-firewood | 8ecd03c166bcadaae22a6cb2c1457a82f2c644eb | [
"MIT"
] | 1 | 2022-03-26T12:51:27.000Z | 2022-03-26T12:51:27.000Z | tests/models/test_models.py | kynk94/torch-firewood | 8ecd03c166bcadaae22a6cb2c1457a82f2c644eb | [
"MIT"
] | null | null | null | tests/models/test_models.py | kynk94/torch-firewood | 8ecd03c166bcadaae22a6cb2c1457a82f2c644eb | [
"MIT"
] | null | null | null | import importlib
import sys
import pytest
from firewood import models
gan = ["gan." + model for model in models.gan.__all__]
semantic_segmentation = [
"semantic_segmentation." + model
for model in models.semantic_segmentation.__all__
]
all_models = gan + semantic_segmentation
@pytest.mark.parametrize("mod... | 21.681818 | 64 | 0.72956 | 59 | 477 | 5.627119 | 0.389831 | 0.240964 | 0.078313 | 0.090361 | 0.126506 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161426 | 477 | 21 | 65 | 22.714286 | 0.83 | 0 | 0 | 0 | 0 | 0 | 0.098532 | 0.046122 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.333333 | 0 | 0.4 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
9e7e88d4db90e6eef19ef88a46227f76271e9a31 | 3,198 | py | Python | keylogger_remoto.py | HerikCarvalho/keylogger_remoto_py | e8e8df075f52c673a003ceb53ddf1afb506a29c3 | [
"Apache-2.0"
] | null | null | null | keylogger_remoto.py | HerikCarvalho/keylogger_remoto_py | e8e8df075f52c673a003ceb53ddf1afb506a29c3 | [
"Apache-2.0"
] | null | null | null | keylogger_remoto.py | HerikCarvalho/keylogger_remoto_py | e8e8df075f52c673a003ceb53ddf1afb506a29c3 | [
"Apache-2.0"
] | null | null | null | # keylogger_remoto_py
#Um Keylogger Remoto em Python
import keyboard # para keylogs
import smtplib # para enviar email usando o protocolo SMTP (gmail)
# O semáforo é para bloquear o segmento atual
# O temporizador é para executar um método após uma quantidade de tempo "intervalo"
from threading import Semaphore, Timer... | 36.340909 | 83 | 0.610381 | 390 | 3,198 | 4.915385 | 0.476923 | 0.025561 | 0.021909 | 0.022953 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004525 | 0.308943 | 3,198 | 87 | 84 | 36.758621 | 0.862896 | 0.443402 | 0 | 0.047619 | 0 | 0 | 0.062241 | 0.013634 | 0 | 0 | 0 | 0.022989 | 0 | 1 | 0.119048 | false | 0.095238 | 0.071429 | 0 | 0.214286 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
9eab20f5fca913071481bf75e043a3a04530c615 | 4,474 | py | Python | Stock/Data/Engine/Common/DyStockDataCommonEngine.py | Leonardo-YXH/DevilYuan | aca5e3cbfa38257335da16ae40968626bc853dc3 | [
"MIT"
] | 135 | 2020-10-23T01:15:39.000Z | 2022-03-29T08:39:15.000Z | Stock/Data/Engine/Common/DyStockDataCommonEngine.py | Leonardo-YXH/DevilYuan | aca5e3cbfa38257335da16ae40968626bc853dc3 | [
"MIT"
] | 1 | 2019-01-16T03:32:20.000Z | 2019-01-16T03:32:20.000Z | Stock/Data/Engine/Common/DyStockDataCommonEngine.py | Leonardo-YXH/DevilYuan | aca5e3cbfa38257335da16ae40968626bc853dc3 | [
"MIT"
] | 64 | 2020-10-23T01:15:49.000Z | 2022-03-20T10:15:59.000Z | from .DyStockDataCodeTable import *
from .DyStockDataTradeDayTable import *
from .DyStockDataSectorCodeTable import *
class DyStockDataCommonEngine(object):
""" 代码表和交易日数据引擎 """
def __init__(self, mongoDbEngine, gateway, info):
self._mongoDbEngine = mongoDbEngine
self._gateway = gateway
... | 28.679487 | 106 | 0.702056 | 429 | 4,474 | 7.181818 | 0.198135 | 0.129828 | 0.13567 | 0.126907 | 0.180136 | 0.124959 | 0.025966 | 0 | 0 | 0 | 0 | 0.004841 | 0.21502 | 4,474 | 156 | 107 | 28.679487 | 0.872437 | 0.002459 | 0 | 0.183486 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.366972 | false | 0 | 0.027523 | 0.33945 | 0.779817 | 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 | 1 | 0 | 0 | 0 | 2 |
9eb0187463984d586729089a7dc0693dee15bbab | 194 | py | Python | pyvalidator/utils/to_float.py | theteladras/py.validator | 624ace7973552c8ac9353f48acbf96ec0ecc24a9 | [
"MIT"
] | 15 | 2021-11-01T14:14:56.000Z | 2022-03-17T11:52:29.000Z | pyvalidator/utils/to_float.py | theteladras/py.validator | 624ace7973552c8ac9353f48acbf96ec0ecc24a9 | [
"MIT"
] | 1 | 2022-03-16T13:39:16.000Z | 2022-03-17T09:16:00.000Z | pyvalidator/utils/to_float.py | theteladras/py.validator | 624ace7973552c8ac9353f48acbf96ec0ecc24a9 | [
"MIT"
] | null | null | null | from typing import Union
from ..is_float import is_float
def to_float(input: str) -> Union[float, None]:
if not is_float(input):
return None
else:
return float(input)
| 17.636364 | 47 | 0.659794 | 29 | 194 | 4.275862 | 0.517241 | 0.169355 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.252577 | 194 | 10 | 48 | 19.4 | 0.855172 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.714286 | 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 | 1 | 0 | 0 | 2 |
9ebc6465cef53e6c4f2c834e8136c92270766fc9 | 1,066 | py | Python | pycalclib/type/Integer.py | Hedroed/PyCalculator | 356e07dc7a14f89173c8b2745e5689359bff9866 | [
"Apache-2.0"
] | 1 | 2018-05-09T12:36:29.000Z | 2018-05-09T12:36:29.000Z | pycalclib/type/Integer.py | Hedroed/PyCalculator | 356e07dc7a14f89173c8b2745e5689359bff9866 | [
"Apache-2.0"
] | null | null | null | pycalclib/type/Integer.py | Hedroed/PyCalculator | 356e07dc7a14f89173c8b2745e5689359bff9866 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# coding: utf-8
from .BaseType import BaseType
from ..Manager import Register
import re
class Integer(BaseType):
'''Integer type
An Integer is a number that can be written without a fractional component.
An Integer is only compose of digits from 0 to 9.
'''
name = '... | 26 | 82 | 0.615385 | 146 | 1,066 | 4.458904 | 0.452055 | 0.0553 | 0.033794 | 0.046083 | 0.089094 | 0.089094 | 0.089094 | 0.089094 | 0.089094 | 0 | 0 | 0.014103 | 0.268293 | 1,066 | 40 | 83 | 26.65 | 0.820513 | 0.373358 | 0 | 0 | 0 | 0 | 0.03204 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3125 | false | 0 | 0.1875 | 0 | 0.9375 | 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 | 1 | 0 | 0 | 2 |
7b52e1e0054bd8317ec8e718b575738ddad3dca9 | 52 | py | Python | musicmod/__init__.py | alfonsof/music-list | 6fa7bb00eaed9c0e3a2ac5dec513546548f6e667 | [
"MIT"
] | 1 | 2022-01-11T04:07:38.000Z | 2022-01-11T04:07:38.000Z | musicmod/__init__.py | alfonsof/music-list | 6fa7bb00eaed9c0e3a2ac5dec513546548f6e667 | [
"MIT"
] | null | null | null | musicmod/__init__.py | alfonsof/music-list | 6fa7bb00eaed9c0e3a2ac5dec513546548f6e667 | [
"MIT"
] | null | null | null | # __init__.py
__all__ = ['createlist', 'viewlist'] | 17.333333 | 36 | 0.673077 | 5 | 52 | 5.4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134615 | 52 | 3 | 36 | 17.333333 | 0.6 | 0.211538 | 0 | 0 | 0 | 0 | 0.45 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7b876a0dab295e9d45ef56e5fb5e27fa0ba6ae41 | 165 | py | Python | secure_data_store/__init__.py | HumanBrainProject/secure-data-store | 69b615cf979fc08f4ae8474ca9cd3e6d2f04b7f0 | [
"MIT"
] | 1 | 2021-11-23T12:26:01.000Z | 2021-11-23T12:26:01.000Z | secure_data_store/__init__.py | HumanBrainProject/secure-data-store | 69b615cf979fc08f4ae8474ca9cd3e6d2f04b7f0 | [
"MIT"
] | null | null | null | secure_data_store/__init__.py | HumanBrainProject/secure-data-store | 69b615cf979fc08f4ae8474ca9cd3e6d2f04b7f0 | [
"MIT"
] | 1 | 2020-05-21T15:51:44.000Z | 2020-05-21T15:51:44.000Z | # -*- coding: utf-8 -*-
"""Top-level package for Secure Data Store."""
__author__ = """Thorsten Hater"""
__email__ = 't.hater@fz-juelich.de'
__version__ = '0.1.0'
| 20.625 | 46 | 0.642424 | 23 | 165 | 4.086957 | 0.913043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028169 | 0.139394 | 165 | 7 | 47 | 23.571429 | 0.633803 | 0.381818 | 0 | 0 | 0 | 0 | 0.416667 | 0.21875 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7b94ceae88a5e89819007f9a18e7df52debc81a4 | 617 | py | Python | users/signals.py | LouaiKB/MicroscoQuiz | 68c85e540f68eacd178d2c8d8bdd9246e043ed1c | [
"MIT"
] | 2 | 2022-01-31T09:28:16.000Z | 2022-03-15T15:22:08.000Z | users/signals.py | LouaiKB/MicroscoQuiz | 68c85e540f68eacd178d2c8d8bdd9246e043ed1c | [
"MIT"
] | null | null | null | users/signals.py | LouaiKB/MicroscoQuiz | 68c85e540f68eacd178d2c8d8bdd9246e043ed1c | [
"MIT"
] | null | null | null | #this file is created for the signals, for each new user creat a new Profile
from django.db.models.signals import post_save
from django.contrib.auth.models import User
from django.dispatch import receiver
from .models import Profile
#when a user is saved then send this signal which be revieved by this
#receiver, th... | 38.5625 | 76 | 0.789303 | 94 | 617 | 5.117021 | 0.43617 | 0.06237 | 0.066528 | 0.091476 | 0.120582 | 0.120582 | 0 | 0 | 0 | 0 | 0 | 0 | 0.132901 | 617 | 16 | 77 | 38.5625 | 0.899065 | 0.319287 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.363636 | 0 | 0.545455 | 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 | 1 | 0 | 0 | 2 |
7ba02a4e6fa8ddd60e73cb5e2eaa5df56b33fbc1 | 1,091 | py | Python | vaultier/libs/version/context.py | dz0ny/Vaultier | e23d86c7576f4785b4e369242d7b5f7125e4d8c6 | [
"BSD-3-Clause"
] | 30 | 2015-07-13T11:11:23.000Z | 2021-01-25T14:21:18.000Z | vaultier/libs/version/context.py | corpusops/vaultier | 3baef4346add0b3bdff322257467f74b2a0c856c | [
"BSD-3-Clause"
] | null | null | null | vaultier/libs/version/context.py | corpusops/vaultier | 3baef4346add0b3bdff322257467f74b2a0c856c | [
"BSD-3-Clause"
] | 31 | 2015-08-10T12:10:16.000Z | 2020-09-18T09:43:28.000Z |
class Manager(object):
_user = None
_enabled = True
_user_required = True
def set_user_required(self, user_required):
self._user_required = user_required
def get_user_required(self):
return self._user_required
def set_user(self, user):
self._user = user
def get_u... | 26.609756 | 65 | 0.641613 | 121 | 1,091 | 5.487603 | 0.280992 | 0.108434 | 0.096386 | 0.060241 | 0.066265 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.280477 | 1,091 | 40 | 66 | 27.275 | 0.84586 | 0 | 0 | 0 | 0 | 0 | 0.06055 | 0.021101 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.071429 | 0.571429 | 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 | 1 | 0 | 0 | 2 |
7ba491609dce39d7774a6f4fe5b95584adbe7419 | 14,263 | py | Python | python/archive/writedata.py | d-giles/KeplerML | 14187279973b558b26a997bc2701cc19e191a4db | [
"MIT"
] | null | null | null | python/archive/writedata.py | d-giles/KeplerML | 14187279973b558b26a997bc2701cc19e191a4db | [
"MIT"
] | null | null | null | python/archive/writedata.py | d-giles/KeplerML | 14187279973b558b26a997bc2701cc19e191a4db | [
"MIT"
] | 1 | 2020-12-15T21:04:07.000Z | 2020-12-15T21:04:07.000Z | # reads in both both .sav files: the long-cadence data and the variable supplement
# removes all objects that lack data like effective temperatures
# writes the dataset.npy and logdata.npy files
# also building the training and test sets and runs a Gaussian Naive Bayes classifier
import numpy as np
import pyfits as pf... | 34.618932 | 416 | 0.615368 | 2,322 | 14,263 | 3.749354 | 0.234281 | 0.056053 | 0.059959 | 0.004595 | 0.307719 | 0.161383 | 0.143809 | 0.125431 | 0.091661 | 0.063864 | 0 | 0.202147 | 0.203323 | 14,263 | 411 | 417 | 34.703163 | 0.564024 | 0.163851 | 0 | 0.109375 | 0 | 0 | 0.035966 | 0.002629 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.046875 | null | null | 0.042969 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.