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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4f92703b9e40737999ae8e46eb9482b2f3bfcaca | 3,523 | py | Python | resources/test_cases/python/M2Crypto/TestRule2.py | stg-tud/licma | b899e6e682f7716d19e79d6ce7b73c28c6efd4cf | [
"MIT"
] | 5 | 2021-09-13T11:24:13.000Z | 2022-03-18T21:56:58.000Z | resources/test_cases/python/M2Crypto/TestRule2.py | stg-tud/licma | b899e6e682f7716d19e79d6ce7b73c28c6efd4cf | [
"MIT"
] | null | null | null | resources/test_cases/python/M2Crypto/TestRule2.py | stg-tud/licma | b899e6e682f7716d19e79d6ce7b73c28c6efd4cf | [
"MIT"
] | 1 | 2021-09-13T06:02:20.000Z | 2021-09-13T06:02:20.000Z | from M2Crypto.EVP import Cipher
from M2Crypto.Rand import rand_bytes
g_encrypt = 1
g_decrypt = 0
g_iv1 = b"1234567812345678"
g_iv2 = bytes("1234567812345678", "utf8")
def p_example1_hard_coded1(key, data):
cipher = Cipher("aes_256_cbc", key, b"1234567812345678", g_encrypt)
cipher_text = cipher.update(data) +... | 28.642276 | 85 | 0.724099 | 513 | 3,523 | 4.653021 | 0.138402 | 0.108923 | 0.081693 | 0.098031 | 0.75199 | 0.708421 | 0.694177 | 0.688731 | 0.652283 | 0.625471 | 0 | 0.101331 | 0.168039 | 3,523 | 122 | 86 | 28.877049 | 0.713067 | 0 | 0 | 0.60241 | 0 | 0 | 0.101902 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.216867 | false | 0 | 0.024096 | 0.012048 | 0.457831 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4fa331b5f7557e32c9848f9150e8a3ef83a5ea4c | 560 | py | Python | search/repository.py | zys5945/GithubAdvancedSearch | bd966ef3fe9adacc3d867cf7094bc80afc96814c | [
"MIT"
] | 1 | 2019-04-06T01:33:55.000Z | 2019-04-06T01:33:55.000Z | search/repository.py | zys5945/GithubUtility | bd966ef3fe9adacc3d867cf7094bc80afc96814c | [
"MIT"
] | 1 | 2019-04-02T22:28:50.000Z | 2019-04-02T22:28:50.000Z | search/repository.py | zys5945/GithubUtility | bd966ef3fe9adacc3d867cf7094bc80afc96814c | [
"MIT"
] | null | null | null | from .search_request import SearchRequest
from ..auth import AuthCreds, AuthType
from ..v3 import scroll
class RepositorySearch(SearchRequest):
def __init__(self):
super().__init__()
def clone(self):
obj = super().clone()
return obj
def execute(self):
query_url = 'search/... | 24.347826 | 69 | 0.65 | 68 | 560 | 5.117647 | 0.455882 | 0.045977 | 0.08046 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002326 | 0.232143 | 560 | 23 | 70 | 24.347826 | 0.806977 | 0 | 0 | 0 | 0 | 0 | 0.051693 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3125 | false | 0 | 0.1875 | 0.125 | 0.8125 | 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 | 1 | 0 | 0 | 3 |
96d23ae3f1ff022a5bdacbaadfef3ccb22eac5e8 | 8,666 | py | Python | blahb/multiblob.py | mvsaha/blahb | e4ea703fa0fc255f627057c07df4c51138299d8b | [
"MIT"
] | null | null | null | blahb/multiblob.py | mvsaha/blahb | e4ea703fa0fc255f627057c07df4c51138299d8b | [
"MIT"
] | null | null | null | blahb/multiblob.py | mvsaha/blahb | e4ea703fa0fc255f627057c07df4c51138299d8b | [
"MIT"
] | null | null | null | """
Main library class
"""
import numpy as np
import numba
from collections import OrderedDict
# NOTE! The following are at the bottom of this file to avoid circular import:
# from .take import take_
# from .sel_result import SelResult_
from .indexset import IndexSet, make_empty
from .utils import exponential_search... | 33.719844 | 81 | 0.556543 | 1,055 | 8,666 | 4.492891 | 0.234123 | 0.023629 | 0.017722 | 0.01097 | 0.220886 | 0.2173 | 0.193671 | 0.181013 | 0.181013 | 0.181013 | 0 | 0.010627 | 0.326794 | 8,666 | 257 | 82 | 33.719844 | 0.801851 | 0.921879 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
96d6f5b4997c78e28aebebebe2004e5f36731cc3 | 78 | py | Python | Python/String/TripleQuote.py | piovezan/SOpt | a5ec90796b7bdf98f0675457fc4bb99c8695bc40 | [
"MIT"
] | 148 | 2017-08-03T01:49:27.000Z | 2022-03-26T10:39:30.000Z | Python/String/TripleQuote.py | piovezan/SOpt | a5ec90796b7bdf98f0675457fc4bb99c8695bc40 | [
"MIT"
] | 3 | 2017-11-23T19:52:05.000Z | 2020-04-01T00:44:40.000Z | Python/String/TripleQuote.py | piovezan/SOpt | a5ec90796b7bdf98f0675457fc4bb99c8695bc40 | [
"MIT"
] | 59 | 2017-08-03T01:49:19.000Z | 2022-03-31T23:24:38.000Z | print("""linha1
linha2
linha3
""")
#https://pt.stackoverflow.com/q/80551/101
| 11.142857 | 41 | 0.705128 | 11 | 78 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152778 | 0.076923 | 78 | 6 | 42 | 13 | 0.611111 | 0.512821 | 0 | 0 | 0 | 0 | 0.567568 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
96dfe87a40b3fe96d75274e3b50cba2438d5b087 | 1,221 | py | Python | dos/Vinci_Nicolo_TCPSYNFlood/uniqueConn.py | nico989/OffTech | cfab206a62a5d80cd837c6f70e2cde0ca380d3f6 | [
"MIT"
] | null | null | null | dos/Vinci_Nicolo_TCPSYNFlood/uniqueConn.py | nico989/OffTech | cfab206a62a5d80cd837c6f70e2cde0ca380d3f6 | [
"MIT"
] | null | null | null | dos/Vinci_Nicolo_TCPSYNFlood/uniqueConn.py | nico989/OffTech | cfab206a62a5d80cd837c6f70e2cde0ca380d3f6 | [
"MIT"
] | null | null | null | class UniqueConn:
def __init__(self, srcIp, destIp, srcPort, destPort):
self._srcIp = srcIp
self._destIp = destIp
self._srcPort = srcPort
self._destPort = destPort
@property
def srcIp(self):
return self._srcIp
@property
def destIp(self):
return s... | 33.916667 | 148 | 0.638821 | 134 | 1,221 | 5.58209 | 0.246269 | 0.072193 | 0.074866 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.268632 | 1,221 | 35 | 149 | 34.885714 | 0.837626 | 0.028665 | 0 | 0.142857 | 0 | 0.035714 | 0.103041 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.178571 | 0.535714 | 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 | 1 | 0 | 0 | 3 |
96edd1fbf45da887201d861b66f1fa0f6f0e66d8 | 11,525 | py | Python | pyocd/core/coresight_target.py | aabadie/pyOCD | 5c05b0fd2d04c9de5400c3d026d13f8822d3ce3d | [
"Apache-2.0"
] | null | null | null | pyocd/core/coresight_target.py | aabadie/pyOCD | 5c05b0fd2d04c9de5400c3d026d13f8822d3ce3d | [
"Apache-2.0"
] | null | null | null | pyocd/core/coresight_target.py | aabadie/pyOCD | 5c05b0fd2d04c9de5400c3d026d13f8822d3ce3d | [
"Apache-2.0"
] | null | null | null | """
mbed CMSIS-DAP debugger
Copyright (c) 2015-2018 ARM Limited
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable ... | 37.297735 | 143 | 0.672625 | 1,537 | 11,525 | 4.821731 | 0.213403 | 0.063149 | 0.075563 | 0.080151 | 0.252058 | 0.182162 | 0.111726 | 0.08312 | 0.075563 | 0.050735 | 0 | 0.004033 | 0.246941 | 11,525 | 308 | 144 | 37.418831 | 0.849868 | 0.189241 | 0 | 0.11 | 0 | 0 | 0.02302 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.26 | false | 0 | 0.075 | 0.15 | 0.525 | 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 | 1 | 0 | 0 | 3 |
96f959415c3ba7353a0c54538121cbcfbbd81148 | 850 | py | Python | bot.py | egor5q/tournier | d2085aa3df4183d4bd239289ead4b6089948d3f0 | [
"MIT"
] | null | null | null | bot.py | egor5q/tournier | d2085aa3df4183d4bd239289ead4b6089948d3f0 | [
"MIT"
] | null | null | null | bot.py | egor5q/tournier | d2085aa3df4183d4bd239289ead4b6089948d3f0 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import os
import telebot
import time
import telebot
import random
import threading
from emoji import emojize
from telebot import types
token = os.environ['TELEGRAM_TOKEN']
bot = telebot.TeleBot(token)
@bot.message_handler(commands=['rules'])
def rules(m):
bot.send_message(m.chat.id, 'Правил... | 30.357143 | 439 | 0.761176 | 128 | 850 | 4.953125 | 0.710938 | 0.061514 | 0.059937 | 0.078864 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004149 | 0.149412 | 850 | 27 | 440 | 31.481481 | 0.872752 | 0.024706 | 0 | 0.111111 | 0 | 0.055556 | 0.532688 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.055556 | 0.444444 | 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 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
96fa6341f3677c3d85d68b2944d2f174dfcc7403 | 181 | py | Python | run.py | sorengoyal/combat-evolved | c760bf8aedd7eeb29afeacb02b052f91f388cc0c | [
"CC-BY-3.0"
] | null | null | null | run.py | sorengoyal/combat-evolved | c760bf8aedd7eeb29afeacb02b052f91f388cc0c | [
"CC-BY-3.0"
] | 2 | 2017-06-10T18:38:02.000Z | 2017-06-24T02:39:32.000Z | run.py | sorengoyal/combat-evolved | c760bf8aedd7eeb29afeacb02b052f91f388cc0c | [
"CC-BY-3.0"
] | null | null | null | #!flask/bin/python
from app import app
import logging.config
logging.config.fileConfig('logging.conf')
logger = logging.getLogger()
logger.info("Starting App")
app.run(debug=True) | 20.111111 | 41 | 0.779006 | 26 | 181 | 5.423077 | 0.653846 | 0.12766 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.082873 | 181 | 9 | 42 | 20.111111 | 0.849398 | 0.093923 | 0 | 0 | 0 | 0 | 0.146341 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
8c11fd2d504e20c40f8ead61c75cb35c8a53dcf8 | 84 | py | Python | Tutorial/michael/balls/balls.py | mgrazebrook/supegemial | 848a3c8fbd00f3e125357097bd5dee655b99aaaf | [
"MIT"
] | null | null | null | Tutorial/michael/balls/balls.py | mgrazebrook/supegemial | 848a3c8fbd00f3e125357097bd5dee655b99aaaf | [
"MIT"
] | null | null | null | Tutorial/michael/balls/balls.py | mgrazebrook/supegemial | 848a3c8fbd00f3e125357097bd5dee655b99aaaf | [
"MIT"
] | null | null | null | from src.run_balls import Balls
def run():
app = Balls()
app.run()
| 8.4 | 31 | 0.559524 | 12 | 84 | 3.833333 | 0.583333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.321429 | 84 | 9 | 32 | 9.333333 | 0.807018 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8c17f7247b6fcacafeca94781e32a316d7b7eaee | 515 | py | Python | posts/models.py | jaimeandresalas/Platzigram | 3a9c8cc4cb8471fe88a5e9087c801e6f59407e55 | [
"MIT"
] | null | null | null | posts/models.py | jaimeandresalas/Platzigram | 3a9c8cc4cb8471fe88a5e9087c801e6f59407e55 | [
"MIT"
] | null | null | null | posts/models.py | jaimeandresalas/Platzigram | 3a9c8cc4cb8471fe88a5e9087c801e6f59407e55 | [
"MIT"
] | null | null | null | from django.db import models
# Django
class User(models.Model):
email = models.EmailField(unique=True)
password = models.CharField(max_length=255)
first_name = models.CharField(max_length=255)
last_name = models.CharField(max_length=255)
bio = models.TextField(blank=True)
is_admin = models.... | 27.105263 | 56 | 0.745631 | 68 | 515 | 5.485294 | 0.558824 | 0.120643 | 0.144772 | 0.193029 | 0.38874 | 0.16622 | 0 | 0 | 0 | 0 | 0 | 0.020595 | 0.151456 | 515 | 18 | 57 | 28.611111 | 0.832952 | 0.01165 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.090909 | 0.090909 | 0 | 1 | 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 | 1 | 0 | 0 | 3 |
8c22e0109810c196932437dddc31f3c8808af5e4 | 3,257 | py | Python | python/phonenumbers/data/region_IR.py | nyaruka/python-phonenumbers | f67321966aa642bc3df0f7b08f236a63bfde7c51 | [
"Apache-2.0"
] | null | null | null | python/phonenumbers/data/region_IR.py | nyaruka/python-phonenumbers | f67321966aa642bc3df0f7b08f236a63bfde7c51 | [
"Apache-2.0"
] | null | null | null | python/phonenumbers/data/region_IR.py | nyaruka/python-phonenumbers | f67321966aa642bc3df0f7b08f236a63bfde7c51 | [
"Apache-2.0"
] | null | null | null | """Auto-generated file, do not edit by hand. IR metadata"""
from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata
PHONE_METADATA_IR = PhoneMetadata(id='IR', country_code=98, international_prefix='00',
general_desc=PhoneNumberDesc(national_number_pattern='[14-8]\\d{6,9}|[23]\\d{4,9}|9(?:[0-4]\\d{... | 130.28 | 730 | 0.650599 | 570 | 3,257 | 3.542105 | 0.178947 | 0.029718 | 0.172363 | 0.213967 | 0.54631 | 0.541357 | 0.480931 | 0.480931 | 0.444775 | 0.189698 | 0 | 0.133833 | 0.057108 | 3,257 | 24 | 731 | 135.708333 | 0.523608 | 0.016273 | 0 | 0 | 1 | 0.090909 | 0.361476 | 0.252658 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.045455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8c2f18494666720ab1a816186284049866a91898 | 931 | py | Python | src/test/python/smv_model/stage2/modules.py | shuangshuangwang/SMV | 021faece3f0fefca6051df8415789b14bc9a60ed | [
"Apache-2.0"
] | null | null | null | src/test/python/smv_model/stage2/modules.py | shuangshuangwang/SMV | 021faece3f0fefca6051df8415789b14bc9a60ed | [
"Apache-2.0"
] | 34 | 2022-02-26T04:27:34.000Z | 2022-03-29T23:05:47.000Z | src/test/python/smv_model/stage2/modules.py | shuangshuangwang/SMV | 021faece3f0fefca6051df8415789b14bc9a60ed | [
"Apache-2.0"
] | null | null | null | #
# This file is licensed under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distr... | 32.103448 | 74 | 0.725027 | 129 | 931 | 5.232558 | 0.643411 | 0.088889 | 0.038519 | 0.047407 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006649 | 0.192266 | 931 | 28 | 75 | 33.25 | 0.890957 | 0.573577 | 0 | 0 | 0 | 0 | 0.03125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.181818 | 0.181818 | 0.818182 | 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 | 1 | 0 | 0 | 3 |
8c3b9526a7098a5d9b70996f627b6da92086e0c7 | 738 | py | Python | emission/core/wrapper/syncconfig.py | trevor-wu/e-mission-server | 2e31986bd7c0faab7110b7eb69541b0b9eac62df | [
"BSD-3-Clause"
] | 21 | 2015-02-09T00:35:17.000Z | 2021-12-14T16:41:05.000Z | emission/core/wrapper/syncconfig.py | trevor-wu/e-mission-server | 2e31986bd7c0faab7110b7eb69541b0b9eac62df | [
"BSD-3-Clause"
] | 672 | 2015-01-29T18:10:56.000Z | 2022-03-24T13:04:51.000Z | emission/core/wrapper/syncconfig.py | trevor-wu/e-mission-server | 2e31986bd7c0faab7110b7eb69541b0b9eac62df | [
"BSD-3-Clause"
] | 110 | 2015-01-29T18:11:10.000Z | 2022-03-29T17:58:14.000Z | from __future__ import unicode_literals
from __future__ import print_function
from __future__ import division
from __future__ import absolute_import
from future import standard_library
standard_library.install_aliases()
from builtins import *
import logging
import emission.core.wrapper.wrapperbase as ecwb
class Syncco... | 35.142857 | 143 | 0.764228 | 93 | 738 | 5.763441 | 0.602151 | 0.093284 | 0.149254 | 0.085821 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.174797 | 738 | 20 | 144 | 36.9 | 0.880131 | 0.199187 | 0 | 0 | 0 | 0 | 0.04932 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0.055556 | 0.444444 | 0 | 0.833333 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 3 |
8c5b6a0a1ec63fd495a7419d8ab3697e1b89f5e8 | 648 | py | Python | color_print.py | lurman/envbulder | 01dd05809e0a4558131bd6574186744364a08045 | [
"Apache-2.0"
] | null | null | null | color_print.py | lurman/envbulder | 01dd05809e0a4558131bd6574186744364a08045 | [
"Apache-2.0"
] | null | null | null | color_print.py | lurman/envbulder | 01dd05809e0a4558131bd6574186744364a08045 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
class ColorPrint(object):
HEADER = '\033[95m'
OKBLUE = '\033[94m'
OKGREEN = '\033[92m'
WARNING = '\033[93m'
FAIL = '\033[91m'
ENDC = '\033[0m'
BOLD = "\033[1m"
@staticmethod
def info(msg):
print ColorPrint.OKGREEN + ' ' + msg + ' ' + ColorPrint.ENDC
... | 20.903226 | 68 | 0.560185 | 69 | 648 | 5.246377 | 0.449275 | 0.165746 | 0.198895 | 0.240331 | 0.265193 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 0.287037 | 648 | 30 | 69 | 21.6 | 0.712121 | 0.030864 | 0 | 0.2 | 0 | 0 | 0.0992 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.2 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4ff93deb616035c63b7079a90362c42ad9256935 | 830 | py | Python | core/auth/serializers/register.py | Nathan-E-White/DjangoBackend-ReactFrontend | 64528a5d42c6b25347114bf5519d311ef65a5547 | [
"Apache-2.0"
] | null | null | null | core/auth/serializers/register.py | Nathan-E-White/DjangoBackend-ReactFrontend | 64528a5d42c6b25347114bf5519d311ef65a5547 | [
"Apache-2.0"
] | 1 | 2021-10-13T07:55:16.000Z | 2021-10-13T07:55:16.000Z | core/auth/serializers/register.py | Nathan-E-White/DjangoBackend-ReactFrontend | 64528a5d42c6b25347114bf5519d311ef65a5547 | [
"Apache-2.0"
] | null | null | null | """ TODO: SHEBANG/HEADER/DOCSTRING """
from rest_framework import serializers
from django.core.exceptions import ObjectDoesNotExist
from core.user.serializers import UserSerializer
from core.user.models import User
class RegisterSerializer(UserSerializer):
password = serializers.CharField(max_length=128... | 36.086957 | 99 | 0.693976 | 93 | 830 | 6.075269 | 0.537634 | 0.069027 | 0.042478 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010574 | 0.20241 | 830 | 22 | 100 | 37.727273 | 0.8429 | 0.036145 | 0 | 0 | 0 | 0 | 0.066234 | 0 | 0 | 0 | 0 | 0.045455 | 0 | 1 | 0.0625 | false | 0.125 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
8b01bd1e0667e8ffea8b04dc232a7a6b01cb5881 | 22 | py | Python | plastron/__init__.py | peichman-umd/plastron | 8453b1dc598eaf60e50a4614444a2c713b96190a | [
"Apache-2.0"
] | 3 | 2019-06-12T08:07:52.000Z | 2019-09-13T18:16:30.000Z | plastron/__init__.py | peichman-umd/plastron | 8453b1dc598eaf60e50a4614444a2c713b96190a | [
"Apache-2.0"
] | 14 | 2018-05-11T15:17:40.000Z | 2022-03-11T23:27:50.000Z | plastron/__init__.py | peichman-umd/plastron | 8453b1dc598eaf60e50a4614444a2c713b96190a | [
"Apache-2.0"
] | 5 | 2018-04-13T20:58:30.000Z | 2020-03-25T12:59:34.000Z | version = '3.6.0-dev'
| 11 | 21 | 0.590909 | 5 | 22 | 2.6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 0.136364 | 22 | 1 | 22 | 22 | 0.526316 | 0 | 0 | 0 | 0 | 0 | 0.409091 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8b18b99687ac6741ff95bccf293089867eea351a | 637 | py | Python | simple_example/test_um_nose_pytest.py | happyleeza/markdown | d89dcdfb44b0f5b5306f65b61ae9602a981847e6 | [
"MIT"
] | null | null | null | simple_example/test_um_nose_pytest.py | happyleeza/markdown | d89dcdfb44b0f5b5306f65b61ae9602a981847e6 | [
"MIT"
] | null | null | null | simple_example/test_um_nose_pytest.py | happyleeza/markdown | d89dcdfb44b0f5b5306f65b61ae9602a981847e6 | [
"MIT"
] | null | null | null | '''
Test unnecessary_math with nose or pytest
To run tests: nosetests test_um_nose_pytest.py
or: py.test test_um_nose_pytest.py
or: python -m pytest test_um_nose_pytest.py
Verbose (-v): nosetests -v test_um_nose_pytest.py
or: py.test -v test_um_nose_pyte... | 25.48 | 57 | 0.651491 | 101 | 637 | 3.841584 | 0.39604 | 0.092784 | 0.154639 | 0.247423 | 0.404639 | 0.358247 | 0.309278 | 0.304124 | 0.170103 | 0 | 0 | 0.016949 | 0.259027 | 637 | 24 | 58 | 26.541667 | 0.805085 | 0.659341 | 0 | 0 | 0 | 0 | 0.18 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.375 | false | 0.125 | 0.125 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
8b2587ef579a825ac2044ca5bd940c38cfe2a7b7 | 765 | py | Python | jamSender/exelReader.py | bokonV2/VKjamSender | 6af413c430e082d6c8d2110b5f43d11d450145b8 | [
"MIT"
] | null | null | null | jamSender/exelReader.py | bokonV2/VKjamSender | 6af413c430e082d6c8d2110b5f43d11d450145b8 | [
"MIT"
] | null | null | null | jamSender/exelReader.py | bokonV2/VKjamSender | 6af413c430e082d6c8d2110b5f43d11d450145b8 | [
"MIT"
] | null | null | null | import openpyxl
from jamSender.objekt import *
# читаем excel-файл
wb = openpyxl.load_workbook('../Все.xlsx')
# получаем активный лист
sheet = wb.active
rows = sheet.max_row
cols = sheet.max_column
for i in range(1, rows + 1):
groupUrl = sheet.cell(row = i, column = 1).value)
payDay = sheet.cell(row = i, co... | 30.6 | 54 | 0.637908 | 117 | 765 | 4.145299 | 0.42735 | 0.185567 | 0.247423 | 0.268041 | 0.391753 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021523 | 0.210458 | 765 | 24 | 55 | 31.875 | 0.781457 | 0 | 0 | 0 | 0 | 0 | 0.015235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.111111 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8b26ba885771b637ea171c9453875ad04ee7e260 | 128 | py | Python | first20.py | Taichinakai/Taichi-Nakai | 83284b93b5739b264783bf849d990f33f8abae85 | [
"MIT"
] | null | null | null | first20.py | Taichinakai/Taichi-Nakai | 83284b93b5739b264783bf849d990f33f8abae85 | [
"MIT"
] | null | null | null | first20.py | Taichinakai/Taichi-Nakai | 83284b93b5739b264783bf849d990f33f8abae85 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Thu Dec 7 22:42:22 2017
@author: taichi
"""
for i in range(1,21):
print(i)
| 14.222222 | 36 | 0.53125 | 22 | 128 | 3.090909 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16129 | 0.273438 | 128 | 8 | 37 | 16 | 0.569892 | 0.585938 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 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 | 1 | 0 | 3 |
8b41aec5d99c3398d03764cbf1fd75f2f365569f | 8,319 | py | Python | app/forms.py | OlegKlimenko/Plamber | a3536b864d05abb6b6bba0f2971ab4b7b9c60db6 | [
"Apache-2.0"
] | 13 | 2017-03-30T12:19:35.000Z | 2019-12-09T03:15:22.000Z | app/forms.py | OlegKlimenko/Plamber | a3536b864d05abb6b6bba0f2971ab4b7b9c60db6 | [
"Apache-2.0"
] | 213 | 2017-02-18T11:48:40.000Z | 2022-03-11T23:20:36.000Z | app/forms.py | OlegKlimenko/Plamber | a3536b864d05abb6b6bba0f2971ab4b7b9c60db6 | [
"Apache-2.0"
] | 3 | 2018-06-17T11:54:49.000Z | 2019-10-22T16:19:28.000Z | # -*- coding: utf-8 -*-
from django import forms
from django.core.exceptions import ValidationError
from django.core.validators import MinValueValidator, MaxValueValidator
from django.core.validators import MinLengthValidator, MaxLengthValidator
from django.core.validators import RegexValidator, EmailValidator
from .... | 41.80402 | 120 | 0.425772 | 545 | 8,319 | 6.416514 | 0.251376 | 0.120103 | 0.131255 | 0.177581 | 0.534172 | 0.376894 | 0.338862 | 0.217615 | 0.168716 | 0.168716 | 0 | 0.015699 | 0.157711 | 8,319 | 198 | 121 | 42.015152 | 0.483374 | 0.352566 | 0 | 0.279279 | 0 | 0 | 0.057761 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018018 | false | 0.108108 | 0.054054 | 0 | 0.711712 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
8c73578f84520a21510ef09ba34631dda17d1403 | 257 | py | Python | evalml/automl/engine/__init__.py | ObinnaObeleagu/evalml | 3b5bf62b08a5a5bc6485ba5387a08c32e1857473 | [
"BSD-3-Clause"
] | 1 | 2021-07-28T14:20:35.000Z | 2021-07-28T14:20:35.000Z | evalml/automl/engine/__init__.py | ObinnaObeleagu/evalml | 3b5bf62b08a5a5bc6485ba5387a08c32e1857473 | [
"BSD-3-Clause"
] | null | null | null | evalml/automl/engine/__init__.py | ObinnaObeleagu/evalml | 3b5bf62b08a5a5bc6485ba5387a08c32e1857473 | [
"BSD-3-Clause"
] | null | null | null | from .engine_base import (
EngineBase,
EngineComputation,
train_pipeline,
train_and_score_pipeline,
evaluate_pipeline,
)
from .sequential_engine import SequentialEngine
from .dask_engine import DaskEngine
from .cf_engine import CFEngine
| 23.363636 | 47 | 0.793774 | 29 | 257 | 6.724138 | 0.586207 | 0.184615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163424 | 257 | 10 | 48 | 25.7 | 0.906977 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 0.4 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
8c75ac88e2bc9e0d5e1b40bcd6ed03024914a247 | 391 | py | Python | src/wai/annotations/vgg/configuration/__init__.py | waikato-ufdl/wai-annotations-vgg | ff7fe40af5f563fb89bc77032ecb6f0a479e02dd | [
"Apache-2.0"
] | null | null | null | src/wai/annotations/vgg/configuration/__init__.py | waikato-ufdl/wai-annotations-vgg | ff7fe40af5f563fb89bc77032ecb6f0a479e02dd | [
"Apache-2.0"
] | null | null | null | src/wai/annotations/vgg/configuration/__init__.py | waikato-ufdl/wai-annotations-vgg | ff7fe40af5f563fb89bc77032ecb6f0a479e02dd | [
"Apache-2.0"
] | null | null | null | """
Configuration classes defining the JSON file format.
"""
from ._FileAttributes import FileAttributes
from ._Image import Image
from ._ImageQuality import ImageQuality
from ._PolygonShapeAttributes import PolygonShapeAttributes
from ._RectShapeAttributes import RectShapeAttributes
from ._Region import Region
from ._... | 32.583333 | 59 | 0.856777 | 39 | 391 | 8.384615 | 0.435897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104859 | 391 | 11 | 60 | 35.545455 | 0.934286 | 0.132992 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
8cb234434bfaea0009e259d29e3a526977edda43 | 31 | py | Python | portfolio/Python/scrapy/eservicegroup/__init__.py | 0--key/lib | ba7a85dda2b208adc290508ca617bdc55a5ded22 | [
"Apache-2.0"
] | null | null | null | portfolio/Python/scrapy/eservicegroup/__init__.py | 0--key/lib | ba7a85dda2b208adc290508ca617bdc55a5ded22 | [
"Apache-2.0"
] | null | null | null | portfolio/Python/scrapy/eservicegroup/__init__.py | 0--key/lib | ba7a85dda2b208adc290508ca617bdc55a5ded22 | [
"Apache-2.0"
] | 5 | 2016-03-22T07:40:46.000Z | 2021-05-30T16:12:21.000Z | ACCOUNT_NAME = 'EServiceGroup'
| 15.5 | 30 | 0.806452 | 3 | 31 | 8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096774 | 31 | 1 | 31 | 31 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0.419355 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8cc2435a9c853c0ce318718efd9d9015e26e808d | 471 | py | Python | part-class/test-iter-inial.py | wuljchange/interesting_python | 3fdf9f7f17f7b361be030bb4eadf7aab889b15fe | [
"MIT"
] | 1 | 2019-03-29T14:09:43.000Z | 2019-03-29T14:09:43.000Z | part-class/test-iter-inial.py | wuljchange/interesting_python | 3fdf9f7f17f7b361be030bb4eadf7aab889b15fe | [
"MIT"
] | null | null | null | part-class/test-iter-inial.py | wuljchange/interesting_python | 3fdf9f7f17f7b361be030bb4eadf7aab889b15fe | [
"MIT"
] | null | null | null | import collections
import bisect
class ItemSequence(collections.Sequence):
def __init__(self, initial=None):
self._items = sorted(initial) if initial is not None else []
def __getitem__(self, item):
return self._items[item]
def __len__(self):
return len(self._items)
# bisect... | 22.428571 | 68 | 0.664544 | 58 | 471 | 4.982759 | 0.534483 | 0.124567 | 0.089965 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008242 | 0.227176 | 471 | 21 | 69 | 22.428571 | 0.785714 | 0.057325 | 0 | 0 | 0 | 0 | 0.018059 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0.153846 | 0.153846 | 0.692308 | 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 | 1 | 0 | 0 | 3 |
8ccaa8ce6bfef34d5d93f79d89c019412027b5f8 | 6,746 | py | Python | geosoft/gxapi/GXBIGRID.py | GeosoftInc/gxpy | 49106817349b4e418028595fcbe04335b845987c | [
"BSD-2-Clause"
] | 25 | 2017-07-14T06:39:37.000Z | 2022-03-09T21:39:51.000Z | geosoft/gxapi/GXBIGRID.py | GeosoftInc/gxpy | 49106817349b4e418028595fcbe04335b845987c | [
"BSD-2-Clause"
] | 100 | 2016-12-13T17:30:41.000Z | 2021-08-01T20:21:13.000Z | geosoft/gxapi/GXBIGRID.py | GeosoftInc/gxpy | 49106817349b4e418028595fcbe04335b845987c | [
"BSD-2-Clause"
] | 28 | 2016-12-12T17:34:40.000Z | 2022-03-16T15:39:39.000Z | ### extends 'class_empty.py'
### block ClassImports
# NOTICE: Do not edit anything here, it is generated code
from . import gxapi_cy
from geosoft.gxapi import GXContext, float_ref, int_ref, str_ref
### endblock ClassImports
### block Header
# NOTICE: The code generator will not replace the code in this block
### end... | 30.524887 | 156 | 0.61933 | 843 | 6,746 | 4.876631 | 0.220641 | 0.023838 | 0.034055 | 0.047677 | 0.543663 | 0.500851 | 0.480418 | 0.45585 | 0.45585 | 0.432985 | 0 | 0.014675 | 0.282834 | 6,746 | 221 | 157 | 30.524887 | 0.835056 | 0.686481 | 0 | 0.142857 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.357143 | false | 0 | 0.071429 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
8cf5c595700aeacb5e2911a0c9239a4927903a68 | 1,208 | py | Python | topics.py | christianromney/QuizR | 208093baf049a844d2a9cc022538829ff694e5b1 | [
"Unlicense"
] | null | null | null | topics.py | christianromney/QuizR | 208093baf049a844d2a9cc022538829ff694e5b1 | [
"Unlicense"
] | null | null | null | topics.py | christianromney/QuizR | 208093baf049a844d2a9cc022538829ff694e5b1 | [
"Unlicense"
] | null | null | null | import os, random, glob, string, signal
import navigation
class Topics:
"""WIP: This class will eventually manage topic navigation and selection."""
def __init__(self, base_path):
self.base_path = base_path
self.topic_directory_name = "questions"
self.topic_sound_file_name = "topic.mp3"... | 36.606061 | 80 | 0.69702 | 164 | 1,208 | 4.865854 | 0.304878 | 0.150376 | 0.120301 | 0.078947 | 0.438596 | 0.283208 | 0.20802 | 0.120301 | 0.120301 | 0.120301 | 0 | 0.002056 | 0.194536 | 1,208 | 32 | 81 | 37.75 | 0.818088 | 0.057947 | 0 | 0.086957 | 0 | 0 | 0.026502 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.26087 | false | 0 | 0.086957 | 0.173913 | 0.565217 | 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 | 1 | 0 | 0 | 3 |
8cf89b3373d0daf5657c5feb4d0c7c2c7e30bb65 | 172 | py | Python | log.py | Landers1037/simple-email-sms | d9172e389c24ceb4a9160d5108502a8ba9337d5e | [
"MIT"
] | 1 | 2019-05-27T08:56:52.000Z | 2019-05-27T08:56:52.000Z | log.py | Landers1037/simple-email-sms | d9172e389c24ceb4a9160d5108502a8ba9337d5e | [
"MIT"
] | 1 | 2019-05-27T02:53:35.000Z | 2019-05-27T02:53:56.000Z | log.py | Landers1037/simple-email-sms | d9172e389c24ceb4a9160d5108502a8ba9337d5e | [
"MIT"
] | null | null | null | # log
import json
class pylog():
def logout(self, data):
with open('log.json', 'w', encoding='utf8') as f:
json.dump(data, f, indent=4)
| 17.2 | 58 | 0.52907 | 24 | 172 | 3.791667 | 0.791667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016949 | 0.313953 | 172 | 9 | 59 | 19.111111 | 0.754237 | 0.017442 | 0 | 0 | 0 | 0 | 0.082278 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 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 | 1 | 0 | 0 | 3 |
8cf90f2ad17f78c83d417c5369f0c19200608516 | 181 | py | Python | TaskModel/apps.py | 5wimming/ase | 0d506add3a83caf9afd01f216c256c4678010918 | [
"Apache-2.0"
] | 10 | 2021-07-13T02:15:15.000Z | 2022-02-21T07:27:54.000Z | TaskModel/apps.py | 5wimming/ase | 0d506add3a83caf9afd01f216c256c4678010918 | [
"Apache-2.0"
] | 3 | 2022-02-21T08:59:01.000Z | 2022-03-05T02:45:34.000Z | TaskModel/apps.py | 5wimming/ase | 0d506add3a83caf9afd01f216c256c4678010918 | [
"Apache-2.0"
] | 3 | 2021-08-19T07:54:39.000Z | 2022-02-21T07:27:55.000Z | from django.apps import AppConfig
class TaskmodelConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'TaskModel'
verbose_name = 'Task List'
| 22.625 | 56 | 0.745856 | 21 | 181 | 6.285714 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165746 | 181 | 7 | 57 | 25.857143 | 0.874172 | 0 | 0 | 0 | 0 | 0 | 0.259669 | 0.160221 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
506f114546ed37e06513109f2d8ae30f3ce55003 | 597 | py | Python | pathfinding/finder/dijkstra.py | LHGames-2017/Enter_team_name_here | 6d476813ce016d840365c92dc995688174a1d8bd | [
"MIT"
] | null | null | null | pathfinding/finder/dijkstra.py | LHGames-2017/Enter_team_name_here | 6d476813ce016d840365c92dc995688174a1d8bd | [
"MIT"
] | null | null | null | pathfinding/finder/dijkstra.py | LHGames-2017/Enter_team_name_here | 6d476813ce016d840365c92dc995688174a1d8bd | [
"MIT"
] | null | null | null | from .a_star import AStarFinder
from pathfinding.core.diagonal_movement import DiagonalMovement
class DijkstraFinder(AStarFinder):
def __init__(self, weight=1, diagonal_movement=DiagonalMovement.never):
def heuristic(dx, dy):
# return 0, so node.h will always be calculated as 0,
# ... | 37.3125 | 75 | 0.664992 | 68 | 597 | 5.647059 | 0.617647 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009132 | 0.266332 | 597 | 16 | 76 | 37.3125 | 0.86758 | 0.21943 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0.111111 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
50ab83dd0f1226f7701e39bd1bf2afacaf382f35 | 1,130 | py | Python | ttt.py | srishtibelwariar/TicTacToe | fba06aef4e4d9177484f5b51f98fc037e37d132f | [
"MIT"
] | null | null | null | ttt.py | srishtibelwariar/TicTacToe | fba06aef4e4d9177484f5b51f98fc037e37d132f | [
"MIT"
] | null | null | null | ttt.py | srishtibelwariar/TicTacToe | fba06aef4e4d9177484f5b51f98fc037e37d132f | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from kivy.app import App
from kivy.lang import Builder
from kivy.vector import Vector
from kivy.uix.screenmanager import ScreenManager
from kivy.uix.screenmanager import Screen
from kivy.uix.screenmanager import WipeTransition
from kivy.uix.widget import Widget
from kivy.clock import Clock
from ki... | 24.565217 | 49 | 0.719469 | 138 | 1,130 | 5.826087 | 0.376812 | 0.119403 | 0.054726 | 0.119403 | 0.11194 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009836 | 0.190265 | 1,130 | 45 | 50 | 25.111111 | 0.868852 | 0.017699 | 0 | 0.054054 | 0 | 0 | 0.015329 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081081 | false | 0.054054 | 0.324324 | 0 | 0.810811 | 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 | 1 | 0 | 0 | 3 |
50ad0b8ae83b0faf163393c11135810681898459 | 10,396 | py | Python | panoptes_aggregation/tests/reducer_tests/base_test_class.py | amyrebecca/aggregation-for-caesar | 5f0d884932312010f9caeb8ebfcfe358f490e41f | [
"Apache-2.0"
] | null | null | null | panoptes_aggregation/tests/reducer_tests/base_test_class.py | amyrebecca/aggregation-for-caesar | 5f0d884932312010f9caeb8ebfcfe358f490e41f | [
"Apache-2.0"
] | null | null | null | panoptes_aggregation/tests/reducer_tests/base_test_class.py | amyrebecca/aggregation-for-caesar | 5f0d884932312010f9caeb8ebfcfe358f490e41f | [
"Apache-2.0"
] | null | null | null | import unittest
import json
import urllib
import copy
import numpy as np
from collections import OrderedDict
from panoptes_aggregation.reducers.utilities import extract_in_data
from panoptes_aggregation.append_version import append_version
try:
import flask
OFFLINE = False
except ImportError:
OFFLINE = Tru... | 40.451362 | 107 | 0.604367 | 1,076 | 10,396 | 5.650558 | 0.111524 | 0.061513 | 0.047533 | 0.067105 | 0.781908 | 0.774013 | 0.731908 | 0.678125 | 0.639474 | 0.632401 | 0 | 0.00206 | 0.299634 | 10,396 | 256 | 108 | 40.609375 | 0.83299 | 0.071277 | 0 | 0.628713 | 0 | 0 | 0.02924 | 0 | 0 | 0 | 0 | 0 | 0.113861 | 1 | 0.143564 | false | 0 | 0.049505 | 0.019802 | 0.257426 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
50b76ea0b1365e1bfc5b28fa9d4cbdd9b1b4a0a0 | 1,342 | py | Python | test/test_namespaces_api.py | jethro-swan/om-client-library | 252576a39af49629f838652427279ecb64a6b636 | [
"Apache-2.0"
] | null | null | null | test/test_namespaces_api.py | jethro-swan/om-client-library | 252576a39af49629f838652427279ecb64a6b636 | [
"Apache-2.0"
] | null | null | null | test/test_namespaces_api.py | jethro-swan/om-client-library | 252576a39af49629f838652427279ecb64a6b636 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
"""
Openmoney API
Openmoney API # noqa: E501
OpenAPI spec version: 2.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import swagger_client
from swagger_client.api.namespaces_api import Namespaces... | 19.449275 | 82 | 0.624441 | 165 | 1,342 | 4.872727 | 0.375758 | 0.069652 | 0.068408 | 0.105721 | 0.335821 | 0.093284 | 0 | 0 | 0 | 0 | 0 | 0.026178 | 0.288376 | 1,342 | 68 | 83 | 19.735294 | 0.815707 | 0.385246 | 0 | 0.272727 | 1 | 0 | 0.011478 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.318182 | false | 0.272727 | 0.227273 | 0 | 0.590909 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
50b907550c4e997199a00e844dee196670356d07 | 2,316 | py | Python | streamAPI/stream/optional.py | ShivKJ/Basics | 085817fcee11866cdd1a5552aa81574ed7c74998 | [
"MIT"
] | 17 | 2018-06-10T04:14:40.000Z | 2018-07-18T02:29:40.000Z | streamAPI/stream/optional.py | ShivKJ/Stream | 085817fcee11866cdd1a5552aa81574ed7c74998 | [
"MIT"
] | null | null | null | streamAPI/stream/optional.py | ShivKJ/Stream | 085817fcee11866cdd1a5552aa81574ed7c74998 | [
"MIT"
] | 3 | 2018-07-05T11:55:13.000Z | 2018-07-05T13:38:35.000Z | """
author: Shiv
email: shivkj001@gmail.com
"""
from typing import Generic, Union
from streamAPI.utility.Types import Consumer, T, X
from streamAPI.utility.utils import NIL
class Optional(Generic[T]):
"""
This class wraps data. This helps avoid processing None element.
"""
def __init__(self, data: ... | 21.64486 | 79 | 0.576857 | 282 | 2,316 | 4.620567 | 0.255319 | 0.055257 | 0.046048 | 0.042978 | 0.162701 | 0.162701 | 0.104375 | 0.104375 | 0.061397 | 0 | 0 | 0.003195 | 0.324266 | 2,316 | 106 | 80 | 21.849057 | 0.829393 | 0.262522 | 0 | 0.157895 | 0 | 0 | 0.042062 | 0.018318 | 0 | 0 | 0 | 0 | 0 | 1 | 0.289474 | false | 0 | 0.078947 | 0.105263 | 0.710526 | 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 | 1 | 0 | 0 | 3 |
50c4c6469b5dfd64853671dd97add1c1197e21ba | 96 | py | Python | grpc_django/apps.py | soheltarir/grpc-django | 890038de2d7b7c36e4fd37ef1727d3568b3f68f5 | [
"MIT"
] | 12 | 2018-08-03T08:02:32.000Z | 2020-05-06T03:49:43.000Z | grpc_django/apps.py | localhost-sys/grpc-django | 890038de2d7b7c36e4fd37ef1727d3568b3f68f5 | [
"MIT"
] | 7 | 2018-07-18T07:18:44.000Z | 2022-02-10T10:28:42.000Z | grpc_django/apps.py | localhost-sys/grpc-django | 890038de2d7b7c36e4fd37ef1727d3568b3f68f5 | [
"MIT"
] | 5 | 2019-10-13T08:22:04.000Z | 2021-06-11T02:25:04.000Z | from django.apps import AppConfig
class GrpcDjangoConfig(AppConfig):
name = 'grpc_django'
| 16 | 34 | 0.770833 | 11 | 96 | 6.636364 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15625 | 96 | 5 | 35 | 19.2 | 0.901235 | 0 | 0 | 0 | 0 | 0 | 0.114583 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
50d10de89bbc4f4c75336ef1d1950b1a38d68cf7 | 376 | py | Python | src/jk_xmlparser/TagEnd.py | jkpubsrc/python-module-jk-xmlparser | eaf6141f1cb3ab2d90f2a8444175b779584f5efe | [
"Apache-1.1"
] | null | null | null | src/jk_xmlparser/TagEnd.py | jkpubsrc/python-module-jk-xmlparser | eaf6141f1cb3ab2d90f2a8444175b779584f5efe | [
"Apache-1.1"
] | null | null | null | src/jk_xmlparser/TagEnd.py | jkpubsrc/python-module-jk-xmlparser | eaf6141f1cb3ab2d90f2a8444175b779584f5efe | [
"Apache-1.1"
] | null | null | null |
import jk_tokenizingparsing
class TagEnd(object):
def __init__(self, location:jk_tokenizingparsing.SourceCodeLocation, name:str):
self.locationFrom = location.clone()
self.locationTo = None
self.name = name
#
def __str__(self):
return "TagEnd<" + self.name + " @ " + str(self.locationFrom) + ">"
#
... | 12.129032 | 80 | 0.678191 | 41 | 376 | 5.780488 | 0.463415 | 0.088608 | 0.092827 | 0.194093 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.18883 | 376 | 30 | 81 | 12.533333 | 0.777049 | 0 | 0 | 0 | 0 | 0 | 0.030303 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.1 | 0.2 | 0.7 | 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 | 1 | 0 | 0 | 0 | 3 |
0f9dfb21559e639485ee150e06cb37fdabafc168 | 169 | py | Python | admin/config.py | shpal2000/tlspack | 37fa976f55df452745ee4e2dfcdba86facdb2529 | [
"MIT"
] | null | null | null | admin/config.py | shpal2000/tlspack | 37fa976f55df452745ee4e2dfcdba86facdb2529 | [
"MIT"
] | null | null | null | admin/config.py | shpal2000/tlspack | 37fa976f55df452745ee4e2dfcdba86facdb2529 | [
"MIT"
] | null | null | null | from pydantic import BaseSettings
class Settings(BaseSettings):
app_name: str = 'tlspack admin'
db_file: str
class Config:
env_file = '.env_admin'
| 18.777778 | 35 | 0.686391 | 21 | 169 | 5.333333 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.236686 | 169 | 8 | 36 | 21.125 | 0.868217 | 0 | 0 | 0 | 0 | 0 | 0.136905 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.833333 | 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 | 1 | 0 | 0 | 3 |
0fe7459431edae851d4497b0abd518bc0014ed72 | 90 | py | Python | github_api_client/settings.py | wankata/python-github-api-client | 1d40a4554345878ac764c6b56d98d77b8be08bc2 | [
"MIT"
] | 1 | 2022-02-12T07:39:11.000Z | 2022-02-12T07:39:11.000Z | github_api_client/settings.py | wankata/python-github-api-client | 1d40a4554345878ac764c6b56d98d77b8be08bc2 | [
"MIT"
] | 1 | 2022-02-12T07:43:26.000Z | 2022-02-14T10:02:34.000Z | github_api_client/settings.py | wankata/python-github-api-client | 1d40a4554345878ac764c6b56d98d77b8be08bc2 | [
"MIT"
] | null | null | null | import os
API_URL = 'https://api.github.com'
AUTH_TOKEN = os.getenv('GITHUB_TOKEN', '')
| 15 | 42 | 0.688889 | 14 | 90 | 4.214286 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122222 | 90 | 5 | 43 | 18 | 0.746835 | 0 | 0 | 0 | 0 | 0 | 0.377778 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
0ff3d1811e37c2426bcf296353d54a3314cece24 | 32,273 | py | Python | handyrepGUI/Dictionary.py | ubiquitousthey/handyrep | 1a6cbc15f79119829e374d8146b50690e00c5266 | [
"PostgreSQL"
] | null | null | null | handyrepGUI/Dictionary.py | ubiquitousthey/handyrep | 1a6cbc15f79119829e374d8146b50690e00c5266 | [
"PostgreSQL"
] | null | null | null | handyrepGUI/Dictionary.py | ubiquitousthey/handyrep | 1a6cbc15f79119829e374d8146b50690e00c5266 | [
"PostgreSQL"
] | null | null | null | __author__ = 'kaceymiriholston'
Functions = {
'get_status': {'function_name': 'get_status','description': 'Returns all status information for the cluster.', 'short_description': 'Cluster status information',
'params': [{'param_name': 'check_type', 'param_default': 'cached',
'param_description': "al... | 124.126923 | 373 | 0.668887 | 4,340 | 32,273 | 4.895622 | 0.107373 | 0.071728 | 0.095637 | 0.054408 | 0.654163 | 0.630301 | 0.605591 | 0.57401 | 0.564127 | 0.542571 | 0 | 0.013653 | 0.196573 | 32,273 | 260 | 374 | 124.126923 | 0.805777 | 0 | 0 | 0.179825 | 0 | 0.442982 | 0.788591 | 0.149253 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.008772 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0ff55e49004b5452c327f5f6f5afd08b2788dcfc | 324 | py | Python | week_3_Apr_17/string_match/test_string_match.py | FunWithPythonProgramming/coding-bat-exercises | 0383fb5ebbea2befac21791e3cfc8a393abf9b4a | [
"MIT"
] | null | null | null | week_3_Apr_17/string_match/test_string_match.py | FunWithPythonProgramming/coding-bat-exercises | 0383fb5ebbea2befac21791e3cfc8a393abf9b4a | [
"MIT"
] | 8 | 2020-02-18T03:18:09.000Z | 2022-01-13T02:53:27.000Z | week_3_Apr_17/string_match/test_string_match.py | FunWithPythonProgramming/coding-bat-exercises | 0383fb5ebbea2befac21791e3cfc8a393abf9b4a | [
"MIT"
] | null | null | null | from ron_solution import string_match
import pytest
@pytest.mark.parametrize(
"string_a,string_b,expected",
[('xxcaazz', 'xxbaaz', 3), ('xxcaazz', 'asdfgh', 0), ('xxcaazz', 'xxcaazz', 6),('', 'xxcaazz',0)],
)
def test_functional(string_a, string_b, expected):
assert string_match(string_a, string_b) == expe... | 36 | 102 | 0.697531 | 43 | 324 | 5.023256 | 0.511628 | 0.097222 | 0.180556 | 0.194444 | 0.305556 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014085 | 0.123457 | 324 | 9 | 103 | 36 | 0.746479 | 0 | 0 | 0 | 0 | 0 | 0.224615 | 0.08 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ba02dc0ca8db79fb5776b4d1f2286d4b0323611c | 147 | py | Python | Marilyn/exceptions.py | mymarilyn/marilyn | cfaeec7100ed6ffb33e30e43096e234c63b80cf9 | [
"MIT"
] | 1 | 2018-03-11T22:03:51.000Z | 2018-03-11T22:03:51.000Z | Marilyn/exceptions.py | mymarilyn/marilyn | cfaeec7100ed6ffb33e30e43096e234c63b80cf9 | [
"MIT"
] | null | null | null | Marilyn/exceptions.py | mymarilyn/marilyn | cfaeec7100ed6ffb33e30e43096e234c63b80cf9 | [
"MIT"
] | null | null | null |
class MerilynExceptions(Exception):
pass
class LoginRequired(MerilynExceptions):
pass
class MethodReturn(MerilynExceptions):
pass
| 12.25 | 39 | 0.761905 | 12 | 147 | 9.333333 | 0.5 | 0.160714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176871 | 147 | 11 | 40 | 13.363636 | 0.92562 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
ba128ca5303ead3233a5f20891db2a5a2750b2f0 | 497 | py | Python | app/db.py | ar17092/api-users | e981d47806435d649539921460644c2d10a6d611 | [
"Apache-2.0"
] | null | null | null | app/db.py | ar17092/api-users | e981d47806435d649539921460644c2d10a6d611 | [
"Apache-2.0"
] | null | null | null | app/db.py | ar17092/api-users | e981d47806435d649539921460644c2d10a6d611 | [
"Apache-2.0"
] | null | null | null | from flask_sqlalchemy import SQLAlchemy
db = SQLAlchemy()
class BaseModelMixin:
def save(self):
db.session.add(self)
db.session.commit()
def delete(self):
db.session.delete(self)
db.session.commit()
@classmethod
def get_all(cls):
return cls.query.all()
@c... | 20.708333 | 50 | 0.627767 | 63 | 497 | 4.857143 | 0.396825 | 0.078431 | 0.169935 | 0.124183 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.253521 | 497 | 24 | 50 | 20.708333 | 0.824798 | 0 | 0 | 0.277778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.277778 | false | 0 | 0.055556 | 0.166667 | 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 | 1 | 0 | 0 | 3 |
ba1969240f28209f01f7ab6c732d9a276527f34a | 312 | py | Python | tests/servooff.py | nim65s/sot-talos | 86a6eda7c1d30a30209c08fed2df92c4fa6a8289 | [
"BSD-2-Clause"
] | null | null | null | tests/servooff.py | nim65s/sot-talos | 86a6eda7c1d30a30209c08fed2df92c4fa6a8289 | [
"BSD-2-Clause"
] | 17 | 2019-02-25T09:30:20.000Z | 2020-09-02T14:39:00.000Z | tests/servooff.py | nim65s/sot-talos | 86a6eda7c1d30a30209c08fed2df92c4fa6a8289 | [
"BSD-2-Clause"
] | 5 | 2018-08-22T08:35:01.000Z | 2020-05-14T14:40:34.000Z | # flake8: noqa
from dynamic_graph import plug
from dynamic_graph.ros import RosPublish
robot.ros = RosPublish('rosPublish')
robot.ros.add('vector', 'robotState_ros', 'robotState')
plug(robot.device.robotState, robot.ros.signal('robotState_ros'))
robot.device.after.addDownsampledSignal('rosPublish.trigger', 1)
| 34.666667 | 65 | 0.798077 | 40 | 312 | 6.125 | 0.475 | 0.097959 | 0.130612 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006897 | 0.070513 | 312 | 8 | 66 | 39 | 0.837931 | 0.038462 | 0 | 0 | 0 | 0 | 0.241611 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
ba1e0c71e3866549cde887920d290d248c9b35b0 | 43 | py | Python | cheshire3/parallel/__init__.py | cheshire3/cheshire3 | 306348831ec110229c78a7c5f0f2026a0f394d2c | [
"Python-2.0",
"Unlicense"
] | 3 | 2015-08-02T09:03:28.000Z | 2017-12-06T09:26:14.000Z | cheshire3/parallel/__init__.py | cheshire3/cheshire3 | 306348831ec110229c78a7c5f0f2026a0f394d2c | [
"Python-2.0",
"Unlicense"
] | 5 | 2015-08-17T01:16:35.000Z | 2015-09-16T21:51:27.000Z | cheshire3/parallel/__init__.py | cheshire3/cheshire3 | 306348831ec110229c78a7c5f0f2026a0f394d2c | [
"Python-2.0",
"Unlicense"
] | 6 | 2015-05-17T15:32:20.000Z | 2020-04-22T08:43:16.000Z |
__all__ = ['workflow', 'mpTaskManager']
| 8.6 | 39 | 0.651163 | 3 | 43 | 8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162791 | 43 | 4 | 40 | 10.75 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0.525 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e84ade5ee680da2e8092f4d0cfce2727f56ddd5c | 70,671 | py | Python | old/zones.py | danvyr/nfz-belarus | 392607e04df7369ba63e689e84b887c26d875998 | [
"Apache-2.0"
] | null | null | null | old/zones.py | danvyr/nfz-belarus | 392607e04df7369ba63e689e84b887c26d875998 | [
"Apache-2.0"
] | null | null | null | old/zones.py | danvyr/nfz-belarus | 392607e04df7369ba63e689e84b887c26d875998 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python3
import pickle
import os
import json
zones = [
{
"id": 1,
"name": "Зона 1",
"type": "circle",
"coordinates": [
{
"lat": 52.61805555555556,
"lng": 25.079999999999927
}
],
"radius": 2.5,
... | 26.232739 | 44 | 0.353893 | 4,939 | 70,671 | 5.031383 | 0.182628 | 0.043662 | 0.051509 | 0.064386 | 0.409095 | 0.29336 | 0.200926 | 0.196901 | 0.18169 | 0.18169 | 0 | 0.502716 | 0.512855 | 70,671 | 2,693 | 45 | 26.242481 | 0.219101 | 0.002207 | 0 | 0.257774 | 0 | 0 | 0.151448 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.001124 | 0 | 0.001124 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
e8543416f044e856a7dd97d8b72e2fc57d8d06d3 | 68 | py | Python | deprecated/service-ready-jobs-sms/messages.py | capitalch/trace | 530893ae212b1809b2785c4ba01c538e10ecc2fc | [
"Apache-2.0"
] | null | null | null | deprecated/service-ready-jobs-sms/messages.py | capitalch/trace | 530893ae212b1809b2785c4ba01c538e10ecc2fc | [
"Apache-2.0"
] | 35 | 2020-05-22T03:09:09.000Z | 2021-04-22T18:10:46.000Z | deprecated/service-ready-jobs-sms/messages.py | capitalch/trace | 530893ae212b1809b2785c4ba01c538e10ecc2fc | [
"Apache-2.0"
] | null | null | null | messages = {
'errGeneric': 'Operation could not be completed',
} | 22.666667 | 53 | 0.676471 | 7 | 68 | 6.571429 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191176 | 68 | 3 | 54 | 22.666667 | 0.836364 | 0 | 0 | 0 | 0 | 0 | 0.608696 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e856ea848a46e7b9e2869f3a0698ceb90f03431b | 1,958 | py | Python | dietgenerator/migrations/0003_auto_20201121_1748.py | sgdiosdado/diet-generator | b79cd16a3ef2bbece526892fd30e0e3ba33bc0bf | [
"MIT"
] | null | null | null | dietgenerator/migrations/0003_auto_20201121_1748.py | sgdiosdado/diet-generator | b79cd16a3ef2bbece526892fd30e0e3ba33bc0bf | [
"MIT"
] | null | null | null | dietgenerator/migrations/0003_auto_20201121_1748.py | sgdiosdado/diet-generator | b79cd16a3ef2bbece526892fd30e0e3ba33bc0bf | [
"MIT"
] | null | null | null | # Generated by Django 3.1.3 on 2020-11-21 17:48
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('dietgenerator', '0002_auto_20201120_1752'),
]
operations = [
migrations.AlterField(
model_name=... | 32.633333 | 146 | 0.581205 | 198 | 1,958 | 5.60101 | 0.29798 | 0.162308 | 0.202885 | 0.235347 | 0.683499 | 0.683499 | 0.613165 | 0.579802 | 0.497746 | 0.497746 | 0 | 0.035714 | 0.299285 | 1,958 | 59 | 147 | 33.186441 | 0.772595 | 0.022983 | 0 | 0.660377 | 1 | 0 | 0.090005 | 0.012036 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.037736 | 0 | 0.09434 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e875217371c78bf8be4e3b98d4c1626164a3fb73 | 389 | py | Python | cuenta.py | laurisag/Cuenta | 92476001b74a384aaac17a5743b7b2c39513f0f7 | [
"Apache-2.0"
] | 1 | 2019-02-15T16:08:54.000Z | 2019-02-15T16:08:54.000Z | cuenta.py | laurisag/Cuenta | 92476001b74a384aaac17a5743b7b2c39513f0f7 | [
"Apache-2.0"
] | null | null | null | cuenta.py | laurisag/Cuenta | 92476001b74a384aaac17a5743b7b2c39513f0f7 | [
"Apache-2.0"
] | null | null | null | class Cuenta():
def __init__(self, nombre, poder_adquisitivo):
self.nombre = nombre
self.poder_adquisitivo = poder_adquisitivo
def ingreso(self):
ingresos = self.poder_adquisitivo + 300
return ingresos
def reintegro(self):
bonus = self.poder_adquisitivo * ... | 24.3125 | 51 | 0.611825 | 40 | 389 | 5.725 | 0.425 | 0.349345 | 0.262009 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018797 | 0.316195 | 389 | 15 | 52 | 25.933333 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e88807cb98fbfee0ef6b4a7e606a31467bb321e1 | 291 | py | Python | zipline/sources/__init__.py | lv-cha/zipline-chinese | 65928d98db46568409add0a9a404bc41729d0bb5 | [
"Apache-2.0"
] | 606 | 2017-04-07T03:49:37.000Z | 2022-03-21T06:56:14.000Z | zipline/sources/__init__.py | pm58/zipline-chinese | 86904cac4b6e928271f640910aa83675ce945b8b | [
"Apache-2.0"
] | 6 | 2017-10-04T06:03:14.000Z | 2020-06-05T06:49:49.000Z | zipline/sources/__init__.py | pm58/zipline-chinese | 86904cac4b6e928271f640910aa83675ce945b8b | [
"Apache-2.0"
] | 251 | 2017-04-07T00:55:17.000Z | 2022-03-31T05:33:14.000Z | from zipline.sources.data_frame_source import DataFrameSource, DataPanelSource
from zipline.sources.test_source import SpecificEquityTrades
from .simulated import RandomWalkSource
__all__ = [
'DataFrameSource',
'DataPanelSource',
'SpecificEquityTrades',
'RandomWalkSource'
]
| 29.1 | 78 | 0.804124 | 25 | 291 | 9.08 | 0.56 | 0.096916 | 0.15859 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127148 | 291 | 9 | 79 | 32.333333 | 0.893701 | 0 | 0 | 0 | 0 | 0 | 0.226804 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
e8a30aa348d3c1c18a3889a3eee70d5d404e792b | 59 | py | Python | lib/spindrift/__init__.py | jlam609/spindrift | d80b177baeb16d5af795cb4d2cb9e3760221c2de | [
"MIT"
] | 4 | 2019-10-21T18:09:57.000Z | 2021-11-10T22:16:14.000Z | lib/spindrift/__init__.py | jlam609/spindrift | d80b177baeb16d5af795cb4d2cb9e3760221c2de | [
"MIT"
] | null | null | null | lib/spindrift/__init__.py | jlam609/spindrift | d80b177baeb16d5af795cb4d2cb9e3760221c2de | [
"MIT"
] | 2 | 2021-05-12T22:19:10.000Z | 2022-01-04T16:57:23.000Z | # Copyright 2017-2021, Ryan P. Kelly.
__version__ = "3.1"
| 14.75 | 37 | 0.677966 | 9 | 59 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.204082 | 0.169492 | 59 | 3 | 38 | 19.666667 | 0.530612 | 0.59322 | 0 | 0 | 0 | 0 | 0.136364 | 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 | 1 | 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 | 3 |
e8ac881736b317fbc179dfc7b9681fddead8699e | 168 | py | Python | katas/kyu_8/grader.py | the-zebulan/CodeWars | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | [
"MIT"
] | 40 | 2016-03-09T12:26:20.000Z | 2022-03-23T08:44:51.000Z | katas/kyu_8/grader.py | akalynych/CodeWars | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | [
"MIT"
] | null | null | null | katas/kyu_8/grader.py | akalynych/CodeWars | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | [
"MIT"
] | 36 | 2016-11-07T19:59:58.000Z | 2022-03-31T11:18:27.000Z | GRADE = ((0.9, 'A'), (0.8, 'B'), (0.7, 'C'), (0.6, 'D'))
def grader(score):
return next(v for k, v in GRADE if score >= k)\
if 1 >= score >= 0.6 else 'F'
| 24 | 56 | 0.458333 | 34 | 168 | 2.264706 | 0.676471 | 0.051948 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089431 | 0.267857 | 168 | 6 | 57 | 28 | 0.536585 | 0 | 0 | 0 | 0 | 0 | 0.029762 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.25 | 0.5 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
e8b47f6502a2af9678ec41393a6bd3b57c4365db | 1,930 | py | Python | tests/test_cards/test_actions/test_cellar.py | evanofslack/pyminion | 0d0bfc6d8e84e9f33e617c7d01b6edb649166290 | [
"MIT"
] | 5 | 2021-12-17T20:34:55.000Z | 2022-01-24T15:18:05.000Z | tests/test_cards/test_actions/test_cellar.py | evanofslack/pyminion | 0d0bfc6d8e84e9f33e617c7d01b6edb649166290 | [
"MIT"
] | 31 | 2021-10-29T21:05:00.000Z | 2022-03-22T03:27:14.000Z | tests/test_cards/test_actions/test_cellar.py | evanofslack/pyminion | 0d0bfc6d8e84e9f33e617c7d01b6edb649166290 | [
"MIT"
] | 1 | 2021-12-23T18:32:47.000Z | 2021-12-23T18:32:47.000Z | from pyminion.expansions.base import Cellar, Copper, Estate, cellar, copper, estate
from pyminion.game import Game
from pyminion.players import Human
def test_cellar_discard_one(human: Human, game: Game, monkeypatch):
human.hand.add(cellar)
human.hand.add(copper)
human.hand.add(copper)
assert len(huma... | 32.711864 | 83 | 0.7 | 279 | 1,930 | 4.759857 | 0.150538 | 0.121988 | 0.14759 | 0.081325 | 0.765813 | 0.721386 | 0.684488 | 0.675452 | 0.660392 | 0.625 | 0 | 0.01625 | 0.170984 | 1,930 | 58 | 84 | 33.275862 | 0.81375 | 0 | 0 | 0.630435 | 0 | 0 | 0.032124 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.086957 | false | 0 | 0.065217 | 0 | 0.152174 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e8b50dab31615147e9f8e252752c4304ab7fb49d | 461 | py | Python | 1.basic/NestedFunction.py | liaochihung/LearnPython | bfefcc46687431bf18eb7edc719db5abed7f7b21 | [
"MIT"
] | null | null | null | 1.basic/NestedFunction.py | liaochihung/LearnPython | bfefcc46687431bf18eb7edc719db5abed7f7b21 | [
"MIT"
] | null | null | null | 1.basic/NestedFunction.py | liaochihung/LearnPython | bfefcc46687431bf18eb7edc719db5abed7f7b21 | [
"MIT"
] | null | null | null | def addone(myfunc):
'''
function is just an object, so we can use this for less code and more lightweight
:param myfunc:
:return:
'''
def addoneinside():
return myfunc() + 1
# can use condition to return different result
return addoneinside
# decorator
@addone
def oldfunc():
... | 17.074074 | 85 | 0.618221 | 54 | 461 | 5.12963 | 0.666667 | 0.064982 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006061 | 0.284165 | 461 | 26 | 86 | 17.730769 | 0.833333 | 0.349241 | 0 | 0 | 0 | 0 | 0.039604 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.222222 | 0.666667 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
e8b9089effc4f75aae3afd134f77f3ba819b514d | 307 | py | Python | models/__init__.py | ZhangHuaPengg/PPCTNet | 2fe102bd15cdb602edf4fd2ce2e3209383036684 | [
"FSFAP"
] | null | null | null | models/__init__.py | ZhangHuaPengg/PPCTNet | 2fe102bd15cdb602edf4fd2ce2e3209383036684 | [
"FSFAP"
] | null | null | null | models/__init__.py | ZhangHuaPengg/PPCTNet | 2fe102bd15cdb602edf4fd2ce2e3209383036684 | [
"FSFAP"
] | null | null | null | '''
Author : ZHP
Date : 2021-12-28 21:18:54
LastEditors : ZHP
LastEditTime : 2022-04-24 12:27:32
FilePath : /models/__init__.py
Description :
Copyright 2021 ZHP, All Rights Reserved.
2021-12-28 21:18:54
'''
from .PointFormer.basic_block import get_loss
from .PointFormer.pplt import * | 23.615385 | 45 | 0.697068 | 46 | 307 | 4.521739 | 0.717391 | 0.057692 | 0.076923 | 0.096154 | 0.134615 | 0.134615 | 0 | 0 | 0 | 0 | 0 | 0.185484 | 0.192182 | 307 | 13 | 46 | 23.615385 | 0.653226 | 0.716612 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
e8d02a73da510d5dad8ea42be98f04f9d217cbb0 | 386 | py | Python | src/ufdl/json/core/_MergeSpec.py | waikato-ufdl/ufdl-json-messages | 408901bdf79aa9ae7cff1af165deee83e62f6088 | [
"Apache-2.0"
] | null | null | null | src/ufdl/json/core/_MergeSpec.py | waikato-ufdl/ufdl-json-messages | 408901bdf79aa9ae7cff1af165deee83e62f6088 | [
"Apache-2.0"
] | null | null | null | src/ufdl/json/core/_MergeSpec.py | waikato-ufdl/ufdl-json-messages | 408901bdf79aa9ae7cff1af165deee83e62f6088 | [
"Apache-2.0"
] | null | null | null | from wai.json.object import StrictJSONObject
from wai.json.object.property import BoolProperty
class MergeSpec(StrictJSONObject['MergeSpec']):
"""
Message to merge an object into another.
"""
# Whether to delete the source object after merging
delete: bool = BoolProperty()
# Whether to hard-d... | 27.571429 | 59 | 0.727979 | 46 | 386 | 6.108696 | 0.608696 | 0.049822 | 0.078292 | 0.120996 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.186529 | 386 | 13 | 60 | 29.692308 | 0.894904 | 0.295337 | 0 | 0 | 0 | 0 | 0.035294 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
e8d0fb03f4d7135fb9dc91e7c42acaef59f435c7 | 828 | py | Python | dss/dev/monitorTest.py | JinLabIIT/DSSnet | 3b9c1771eae8e2a1157d36500bce4b6e84e52c4d | [
"Apache-2.0"
] | 8 | 2016-11-28T01:22:17.000Z | 2021-06-01T13:25:48.000Z | dss/dev/monitorTest.py | JinLabIIT/DSSnet | 3b9c1771eae8e2a1157d36500bce4b6e84e52c4d | [
"Apache-2.0"
] | 2 | 2018-12-18T14:38:32.000Z | 2019-02-23T02:35:08.000Z | dss/dev/monitorTest.py | JinLabIIT/DSSnet | 3b9c1771eae8e2a1157d36500bce4b6e84e52c4d | [
"Apache-2.0"
] | 2 | 2016-11-28T01:22:19.000Z | 2018-03-02T18:32:08.000Z | import win32com.client
import sys
engine=win32com.client.Dispatch("OpenDSSEngine.DSS")
engine.Start("0")
engine.Text.Command='clear'
circuit = engine.ActiveCircuit
engine.Text.Command='compile ' + sys.argv[1]
engine.Text.Command='set sec =10' #=%d' % (1/360)
engine.Text.Command='solve'
engine.Text.Command='sample'
D... | 22.378378 | 52 | 0.778986 | 110 | 828 | 5.863636 | 0.409091 | 0.322481 | 0.427907 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037371 | 0.062802 | 828 | 36 | 53 | 23 | 0.793814 | 0.016908 | 0 | 0 | 0 | 0 | 0.086313 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.074074 | 0 | 0.074074 | 0.481481 | 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 | 1 | 0 | 3 |
2cdf6f6b0f485adbd0e7f5cf52edc18914545ceb | 315 | py | Python | tests/common/PrimitiveFaker.py | StrandHQ/strand-slack | 44d63df66c7f26b516b1e823dbba6bd6afa49fee | [
"MIT"
] | null | null | null | tests/common/PrimitiveFaker.py | StrandHQ/strand-slack | 44d63df66c7f26b516b1e823dbba6bd6afa49fee | [
"MIT"
] | null | null | null | tests/common/PrimitiveFaker.py | StrandHQ/strand-slack | 44d63df66c7f26b516b1e823dbba6bd6afa49fee | [
"MIT"
] | null | null | null | from factory import Faker
class PrimitiveFaker(Faker):
"""Wraps Faker so that we can generate primitive non-object values"""
def __init__(self, provider, **kwargs):
super().__init__(provider, **kwargs)
self.value = self.generate({})
def __str__(self):
return str(self.value)
| 24.230769 | 73 | 0.660317 | 38 | 315 | 5.157895 | 0.657895 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.219048 | 315 | 12 | 74 | 26.25 | 0.796748 | 0.2 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0.142857 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
2cf875a6e01e412778b05ec11c8315f87b7855ff | 226 | py | Python | fasterrcnnapp/ConstManager.py | Atlas200DKTest/sample-fasterrcnndetection-python | 33e4bbf84b71bb035f5bb837ad4a4f12403c7159 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | fasterrcnnapp/ConstManager.py | Atlas200DKTest/sample-fasterrcnndetection-python | 33e4bbf84b71bb035f5bb837ad4a4f12403c7159 | [
"Apache-2.0",
"BSD-3-Clause"
] | 1 | 2020-07-13T09:18:19.000Z | 2020-07-13T09:18:19.000Z | fasterrcnnapp/ConstManager.py | Atlas200DKTest/sample-fasterrcnndetection-python | 33e4bbf84b71bb035f5bb837ad4a4f12403c7159 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | detection_model_path = './faster_rcnn.om'
kind = ['aeroplane','bicycle','bird','boat','bottle','bus','car','cat','chair','cow','diningtable','dog','horse','motorbike','person','pottedplant','sheep','sofa','train','tvmonitor']
| 75.333333 | 183 | 0.672566 | 27 | 226 | 5.518519 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026549 | 226 | 2 | 184 | 113 | 0.677273 | 0 | 0 | 0 | 0 | 0 | 0.579646 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2cf974476b66dce68b642ca340e0428ee67743e4 | 132 | py | Python | remoteuser/apps.py | decadenza/remoteuser | df018ef1821e348657f986d6076f6e0b46875a9d | [
"Apache-2.0"
] | null | null | null | remoteuser/apps.py | decadenza/remoteuser | df018ef1821e348657f986d6076f6e0b46875a9d | [
"Apache-2.0"
] | null | null | null | remoteuser/apps.py | decadenza/remoteuser | df018ef1821e348657f986d6076f6e0b46875a9d | [
"Apache-2.0"
] | null | null | null | from django.apps import AppConfig
class RemoteUserConfig(AppConfig):
name = 'remoteuser'
verbose_name = 'Utenti Remoti' | 26.4 | 35 | 0.734848 | 14 | 132 | 6.857143 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.189394 | 132 | 5 | 36 | 26.4 | 0.897196 | 0 | 0 | 0 | 0 | 0 | 0.178295 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
fa0709aa2fac5706a9a9853d7cb1c03a3d48e214 | 109 | py | Python | python/testData/paramInfo/CallOperator.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/paramInfo/CallOperator.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/paramInfo/CallOperator.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | class Foo:
def __call__(self, arg: int):
return arg
bar = Foo()
bar.__call__(<arg1>)
bar(<arg2>) | 15.571429 | 33 | 0.605505 | 16 | 109 | 3.625 | 0.6875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02381 | 0.229358 | 109 | 7 | 34 | 15.571429 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fa1543b71090ac48d45b57a0ebfb076a493da916 | 663 | py | Python | lib/__init__.py | renebentes/JoomlaProjects | 30c07041b90fc51e4de3fb544b378854f71db2f1 | [
"MIT"
] | 1 | 2015-04-19T10:36:18.000Z | 2015-04-19T10:36:18.000Z | lib/__init__.py | renebentes/JoomlaProjects | 30c07041b90fc51e4de3fb544b378854f71db2f1 | [
"MIT"
] | null | null | null | lib/__init__.py | renebentes/JoomlaProjects | 30c07041b90fc51e4de3fb544b378854f71db2f1 | [
"MIT"
] | 1 | 2015-01-14T02:10:55.000Z | 2015-01-14T02:10:55.000Z | # coding: utf-8
import sublime
st_version = int(sublime.version())
if st_version > 3000:
from JoomlaPack.lib.file import File
from JoomlaPack.lib.folder import Folder
from JoomlaPack.lib.helper import Helper
from JoomlaPack.lib.json import Json
from JoomlaPack.lib.manifest import Manifest
from ... | 23.678571 | 48 | 0.705882 | 88 | 663 | 5.25 | 0.238636 | 0.181818 | 0.220779 | 0.073593 | 0.52381 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009653 | 0.218703 | 663 | 27 | 49 | 24.555556 | 0.882239 | 0.019608 | 0 | 0 | 0 | 0 | 0.054012 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.541667 | 0 | 0.541667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
fa1b125aa1daeb1d390a0c83304d1b4b98ae78d2 | 189 | py | Python | investments/settings/components/jazzmin.py | gatsinski/investments | 4b903d6d9379993501e0c5fff2a93ddcaa2437ea | [
"MIT"
] | null | null | null | investments/settings/components/jazzmin.py | gatsinski/investments | 4b903d6d9379993501e0c5fff2a93ddcaa2437ea | [
"MIT"
] | null | null | null | investments/settings/components/jazzmin.py | gatsinski/investments | 4b903d6d9379993501e0c5fff2a93ddcaa2437ea | [
"MIT"
] | null | null | null | _ = lambda s: s # NOQA
JAZZMIN_SETTINGS = {
"site_title": _("Investments"),
"site_header": _("Investments"),
"site_brand": _("Investments"),
"custom_css": "admin.css",
}
| 18.9 | 36 | 0.603175 | 19 | 189 | 5.526316 | 0.684211 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.201058 | 189 | 9 | 37 | 21 | 0.695364 | 0.021164 | 0 | 0 | 0 | 0 | 0.453552 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fa3c0611b7561e3113f216e42c22fa920756d041 | 2,648 | py | Python | src/exporter/renderers.py | xmdy/h9eNi8F5Ut | 4128d7cbc6105ec0fe69157bd88ef8e30415d6ca | [
"Unlicense"
] | null | null | null | src/exporter/renderers.py | xmdy/h9eNi8F5Ut | 4128d7cbc6105ec0fe69157bd88ef8e30415d6ca | [
"Unlicense"
] | null | null | null | src/exporter/renderers.py | xmdy/h9eNi8F5Ut | 4128d7cbc6105ec0fe69157bd88ef8e30415d6ca | [
"Unlicense"
] | null | null | null | import json
import dicttoxml
from cStringIO import StringIO
class RenderException(Exception):
pass
class DataRender(object):
_format_slug = None
_file_ext = None
def __init__(self, data=None):
self.data = data
def set_data(self, data):
self.data = data
def render(self):
... | 22.440678 | 74 | 0.664653 | 313 | 2,648 | 5.361022 | 0.201278 | 0.107271 | 0.038737 | 0.033969 | 0.129321 | 0.115614 | 0.115614 | 0.115614 | 0.115614 | 0.115614 | 0 | 0.000501 | 0.246601 | 2,648 | 117 | 75 | 22.632479 | 0.840602 | 0.052492 | 0 | 0.176471 | 0 | 0 | 0.039095 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.220588 | false | 0.014706 | 0.058824 | 0.102941 | 0.661765 | 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 | 1 | 0 | 0 | 3 |
fa3ed51f59c8ec73bf5ec31faa1c83a47dc3b6c7 | 1,118 | py | Python | actusmp/model/applicability.py | CasperLabs/actus-mp | 314a157cad085b46754e0c2559798eef70266a41 | [
"Apache-2.0"
] | null | null | null | actusmp/model/applicability.py | CasperLabs/actus-mp | 314a157cad085b46754e0c2559798eef70266a41 | [
"Apache-2.0"
] | null | null | null | actusmp/model/applicability.py | CasperLabs/actus-mp | 314a157cad085b46754e0c2559798eef70266a41 | [
"Apache-2.0"
] | null | null | null | import dataclasses
import typing
@dataclasses.dataclass
class ApplicabilityItem():
term_id: str
info: str
def __str__(self) -> str:
return f"applicability-item|{self.term_id}|{self.info}"
@dataclasses.dataclass
class ApplicabilitySet():
contract_id: str
items: typing.List[Applicability... | 23.787234 | 72 | 0.659213 | 131 | 1,118 | 5.343511 | 0.251908 | 0.085714 | 0.107143 | 0.055714 | 0.301429 | 0.23 | 0.23 | 0.182857 | 0.182857 | 0.182857 | 0 | 0 | 0.226297 | 1,118 | 46 | 73 | 24.304348 | 0.809249 | 0 | 0 | 0.322581 | 0 | 0 | 0.105546 | 0.105546 | 0 | 0 | 0 | 0 | 0 | 1 | 0.258065 | false | 0 | 0.064516 | 0.225806 | 0.83871 | 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 | 1 | 0 | 0 | 3 |
fa6617dda5ef72a4cf8639cc152547148185de9f | 118 | py | Python | tests/_support/prompting.py | mrclay/fabric | f2ca1093ce1297cbc07fcb750b6f14a872c91656 | [
"BSD-2-Clause"
] | 10,288 | 2015-01-01T07:50:07.000Z | 2022-03-31T15:50:03.000Z | tests/_support/prompting.py | mrclay/fabric | f2ca1093ce1297cbc07fcb750b6f14a872c91656 | [
"BSD-2-Clause"
] | 1,132 | 2015-01-02T13:42:00.000Z | 2022-03-28T13:34:29.000Z | tests/_support/prompting.py | mrclay/fabric | f2ca1093ce1297cbc07fcb750b6f14a872c91656 | [
"BSD-2-Clause"
] | 1,494 | 2015-01-02T09:29:02.000Z | 2022-03-27T09:48:59.000Z | from fabric import task
@task
def expect_connect_kwarg(c, key, val):
assert c.config.connect_kwargs[key] == val
| 16.857143 | 46 | 0.737288 | 19 | 118 | 4.421053 | 0.736842 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161017 | 118 | 6 | 47 | 19.666667 | 0.848485 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d74949329d265c9e54f8bb4bbefe4dd916662630 | 194 | py | Python | pylogview/__main__.py | CrazyIvan359/logview | 4fb145843315dd03ff4ba414a5a617775d9d2af1 | [
"MIT"
] | null | null | null | pylogview/__main__.py | CrazyIvan359/logview | 4fb145843315dd03ff4ba414a5a617775d9d2af1 | [
"MIT"
] | 3 | 2020-11-01T23:57:39.000Z | 2020-11-02T01:21:48.000Z | pylogview/__main__.py | CrazyIvan359/logview | 4fb145843315dd03ff4ba414a5a617775d9d2af1 | [
"MIT"
] | null | null | null | import os
import sys
def main():
from pylogview import logview
logview()
if __name__ == "__main__":
sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
main()
| 13.857143 | 69 | 0.639175 | 26 | 194 | 4.307692 | 0.615385 | 0.107143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006494 | 0.206186 | 194 | 13 | 70 | 14.923077 | 0.720779 | 0 | 0 | 0 | 0 | 0 | 0.051546 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | true | 0 | 0.375 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
d792bd15e86fbeb4a46a90c55010b90bd222e4b6 | 1,219 | py | Python | patterns/slumber.py | tmadden/snowflakes | f10168a6ead8e5c9ca010adbec179aa3f957c75a | [
"MIT"
] | null | null | null | patterns/slumber.py | tmadden/snowflakes | f10168a6ead8e5c9ca010adbec179aa3f957c75a | [
"MIT"
] | null | null | null | patterns/slumber.py | tmadden/snowflakes | f10168a6ead8e5c9ca010adbec179aa3f957c75a | [
"MIT"
] | null | null | null | import asyncio
import datetime
import random
from utilities import *
def inside_hours():
now = datetime.datetime.now().time()
if now >= datetime.time(16, 0, 0) and now < datetime.time(22, 0, 0):
return True
return False
important_times = []
important_time_index = 0
import itertools
def ackno... | 23.901961 | 72 | 0.669401 | 152 | 1,219 | 5.164474 | 0.269737 | 0.215287 | 0.229299 | 0.084076 | 0.450955 | 0.417834 | 0.417834 | 0.333758 | 0.244586 | 0.244586 | 0 | 0.012793 | 0.230517 | 1,219 | 50 | 73 | 24.38 | 0.824094 | 0.154225 | 0 | 0.387097 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096774 | false | 0.032258 | 0.516129 | 0 | 0.774194 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
ad14c3772c4a3c2d145776372e14b552b079cd7e | 214 | py | Python | app/templatetags/fill_in_dimensions.py | jareklupinski/twitch-grid | 0b0b34349c98919377aaa05b5936bf9831644c20 | [
"Unlicense"
] | null | null | null | app/templatetags/fill_in_dimensions.py | jareklupinski/twitch-grid | 0b0b34349c98919377aaa05b5936bf9831644c20 | [
"Unlicense"
] | null | null | null | app/templatetags/fill_in_dimensions.py | jareklupinski/twitch-grid | 0b0b34349c98919377aaa05b5936bf9831644c20 | [
"Unlicense"
] | null | null | null | from django import template
register = template.Library()
@register.filter()
def fill_height_width(value):
value = value.replace("{width}", "70")
value = value.replace("{height}", "70")
return value
| 19.454545 | 43 | 0.682243 | 26 | 214 | 5.538462 | 0.576923 | 0.208333 | 0.236111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022346 | 0.163551 | 214 | 10 | 44 | 21.4 | 0.782123 | 0 | 0 | 0 | 0 | 0 | 0.088785 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.428571 | 0 | 1 | 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 | 3 |
ad17e156ea49fe07ad550a74e5a5bba6ed4cc54f | 701 | py | Python | AudioMixer/CustomVLCClass.py | PymientoProject/acien101 | 0cbac78c80c47650783169c987cabad166ec1bf3 | [
"MIT"
] | null | null | null | AudioMixer/CustomVLCClass.py | PymientoProject/acien101 | 0cbac78c80c47650783169c987cabad166ec1bf3 | [
"MIT"
] | 1 | 2016-08-25T20:59:47.000Z | 2016-08-25T20:59:47.000Z | AudioMixer/CustomVLCClass.py | PymientoProject/acien101 | 0cbac78c80c47650783169c987cabad166ec1bf3 | [
"MIT"
] | null | null | null | import vlc
import os
class CustomVLCClass:
def __init__(self, filename):
self.instance = vlc.Instance()
self.mediaplayer = self.instance.media_player_new()
self.media = self.instance.media_new(
os.path.normpath(os.getcwd() + filename))
self.mediaplayer.set_media(self.m... | 22.612903 | 59 | 0.643367 | 84 | 701 | 5.202381 | 0.321429 | 0.308924 | 0.217391 | 0.157895 | 0.221968 | 0.221968 | 0 | 0 | 0 | 0 | 0 | 0.009452 | 0.245364 | 701 | 30 | 60 | 23.366667 | 0.816635 | 0 | 0 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.095238 | 0 | 0.428571 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ad3424aea0e013f17c743c4eaedf1923cac14551 | 7,537 | py | Python | src/core/equation.py | volpatto/sloth | 7f622c5afe74a9be198024b8554519f5759b25ac | [
"MIT"
] | null | null | null | src/core/equation.py | volpatto/sloth | 7f622c5afe74a9be198024b8554519f5759b25ac | [
"MIT"
] | null | null | null | src/core/equation.py | volpatto/sloth | 7f622c5afe74a9be198024b8554519f5759b25ac | [
"MIT"
] | null | null | null | """
Define Equation class.
Creates objects that holds equations and re-evaluates its value using the literal definition of the equation provided
Define functions for utilization in the equation definition
"""
import numpy as np
import expression_evaluation
#==========================================================... | 30.638211 | 160 | 0.576755 | 699 | 7,537 | 6.011445 | 0.151645 | 0.099952 | 0.046644 | 0.039981 | 0.739886 | 0.739886 | 0.705616 | 0.683722 | 0.683722 | 0.683722 | 0 | 0.002368 | 0.327717 | 7,537 | 245 | 161 | 30.763265 | 0.826919 | 0.309407 | 0 | 0.402174 | 0 | 0 | 0.01697 | 0 | 0 | 0 | 0 | 0.004082 | 0 | 1 | 0.130435 | false | 0 | 0.021739 | 0 | 0.173913 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
ad352c9b498a30d6bea694ba7858cd678d8b57f5 | 2,422 | py | Python | embark/dashboard/models.py | BenediktMKuehne/embark | 809f3fdd3b5634b52807796d4d8de1379d219b3d | [
"MIT"
] | null | null | null | embark/dashboard/models.py | BenediktMKuehne/embark | 809f3fdd3b5634b52807796d4d8de1379d219b3d | [
"MIT"
] | 2 | 2022-01-27T12:36:19.000Z | 2022-01-27T12:36:19.000Z | embark/dashboard/models.py | BenediktMKuehne/embark | 809f3fdd3b5634b52807796d4d8de1379d219b3d | [
"MIT"
] | null | null | null | from django.db import models
from uploader.models import FirmwareAnalysis
class Result(models.Model):
firmware_analysis = models.ForeignKey(FirmwareAnalysis, on_delete=models.CASCADE, help_text='')
architecture_verified = models.CharField(blank=True, null=True, max_length=100, help_text='')
os_verified =... | 57.666667 | 99 | 0.73782 | 305 | 2,422 | 5.636066 | 0.239344 | 0.158232 | 0.157068 | 0.438627 | 0.754508 | 0.754508 | 0.616056 | 0.194881 | 0.069808 | 0.069808 | 0 | 0.018841 | 0.123452 | 2,422 | 41 | 100 | 59.073171 | 0.790862 | 0 | 0 | 0 | 0 | 0 | 0.000826 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
ad3532e2b46ded9902a7a97dd286ce44929afa39 | 12,250 | py | Python | application/handler/conversion_handlers.py | singnet/snet-converter-services | 346b26f8281944a9f47d4bdd1eba54c8fb43e799 | [
"MIT"
] | null | null | null | application/handler/conversion_handlers.py | singnet/snet-converter-services | 346b26f8281944a9f47d4bdd1eba54c8fb43e799 | [
"MIT"
] | 1 | 2022-03-21T04:43:48.000Z | 2022-03-21T04:43:48.000Z | application/handler/conversion_handlers.py | singnet/snet-converter-services | 346b26f8281944a9f47d4bdd1eba54c8fb43e799 | [
"MIT"
] | 4 | 2021-11-30T04:32:59.000Z | 2022-03-23T07:20:53.000Z | import json
import os
import sys
sys.path.append('/opt')
from constants.general import MAX_PAGE_SIZE, ETHEREUM_WALLET_ADDRESS_LENGTH
from config import SLACK_HOOK
from constants.error_details import ErrorCode, ErrorDetails
from utils.exception_handler import exception_handler
from http import HTTPStatus
from appli... | 54.6875 | 119 | 0.719265 | 1,353 | 12,250 | 6.232816 | 0.097561 | 0.031306 | 0.038183 | 0.046484 | 0.789162 | 0.750978 | 0.711491 | 0.682675 | 0.682675 | 0.670698 | 0 | 0 | 0.201306 | 12,250 | 223 | 120 | 54.932735 | 0.861917 | 0 | 0 | 0.569697 | 0 | 0 | 0.079109 | 0.054209 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054545 | false | 0 | 0.09697 | 0 | 0.193939 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
ad3b0adff7a5e3be507e955d472e6f4c67a4a109 | 19 | py | Python | depotwork/apps/asset/apps.py | lirui0081/depotwork | 1d05274b7e6dd508c4f7ca17477b66bfe4099749 | [
"MIT"
] | null | null | null | depotwork/apps/asset/apps.py | lirui0081/depotwork | 1d05274b7e6dd508c4f7ca17477b66bfe4099749 | [
"MIT"
] | null | null | null | depotwork/apps/asset/apps.py | lirui0081/depotwork | 1d05274b7e6dd508c4f7ca17477b66bfe4099749 | [
"MIT"
] | null | null | null | __author__ = 'LiR'
| 9.5 | 18 | 0.684211 | 2 | 19 | 4.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 19 | 1 | 19 | 19 | 0.5625 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ad3caebb23d4f7f82329eb28775cfe385fceb174 | 166 | py | Python | launchcontainers.py | Alrighttt/dockersegid | c32db00fe7fd61323fe9b2bd9df1b2ed5f313842 | [
"MIT"
] | 2 | 2018-06-17T14:32:55.000Z | 2018-11-01T12:43:13.000Z | launchcontainers.py | Alrighttt/dockersegid | c32db00fe7fd61323fe9b2bd9df1b2ed5f313842 | [
"MIT"
] | null | null | null | launchcontainers.py | Alrighttt/dockersegid | c32db00fe7fd61323fe9b2bd9df1b2ed5f313842 | [
"MIT"
] | 1 | 2018-07-03T16:01:19.000Z | 2018-07-03T16:01:19.000Z | #!/usr/bin/python
from list import segids
import subprocess
for e in segids:
subprocess.call("./dockerstart.sh " + str(e[1]) + " segid" + str(e[0]), shell=True)
| 18.444444 | 85 | 0.668675 | 26 | 166 | 4.269231 | 0.769231 | 0.072072 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014286 | 0.156627 | 166 | 8 | 86 | 20.75 | 0.778571 | 0.096386 | 0 | 0 | 0 | 0 | 0.156463 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
ad6758daf48285df6d3766844ba7ab4d4b6dc0bc | 8,782 | py | Python | Gathered CTF writeups/2020-11-28-hitcon/run_run_run/parser.py | mihaid-b/CyberSakura | f60e6b6bfd6898c69b84424b080090ae98f8076c | [
"MIT"
] | 1 | 2022-03-27T06:00:41.000Z | 2022-03-27T06:00:41.000Z | Gathered CTF writeups/2020-11-28-hitcon/run_run_run/parser.py | mihaid-b/CyberSakura | f60e6b6bfd6898c69b84424b080090ae98f8076c | [
"MIT"
] | null | null | null | Gathered CTF writeups/2020-11-28-hitcon/run_run_run/parser.py | mihaid-b/CyberSakura | f60e6b6bfd6898c69b84424b080090ae98f8076c | [
"MIT"
] | 1 | 2022-03-27T06:01:42.000Z | 2022-03-27T06:01:42.000Z | opcodes = """
public static final int NOP = 0;
public static final int INCSP = 1;
public static final int POPV = 2;
public static final int ADD = 3;
public static final int SUB = 4;
public static final int MUL = 5;
public static final int DIV = 6;
public static final int AND = 7;
pub... | 47.47027 | 99 | 0.707014 | 1,304 | 8,782 | 4.761503 | 0.200153 | 0.106297 | 0.150588 | 0.177162 | 0.467225 | 0.467225 | 0.467225 | 0.467225 | 0.459172 | 0.013851 | 0 | 0.11484 | 0.172056 | 8,782 | 184 | 100 | 47.728261 | 0.739101 | 0 | 0 | 0.045455 | 0 | 0.3125 | 0.841248 | 0.38925 | 0 | 0 | 0 | 0 | 0.005682 | 1 | 0.005682 | false | 0 | 0.005682 | 0 | 0.017045 | 0.022727 | 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 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ad908c58f6eb75aab89f5e9e9d86b372a85582d2 | 477 | py | Python | image_name_factory.py | jake-bladt/pygal | 64e4f68735a62cdf2fbc0c4c66fb6221fa156643 | [
"Apache-2.0"
] | null | null | null | image_name_factory.py | jake-bladt/pygal | 64e4f68735a62cdf2fbc0c4c66fb6221fa156643 | [
"Apache-2.0"
] | null | null | null | image_name_factory.py | jake-bladt/pygal | 64e4f68735a62cdf2fbc0c4c66fb6221fa156643 | [
"Apache-2.0"
] | null | null | null | class ImageNameFactory:
def get_canonical_image_names(self, subject, count):
seeds = range(1, count + 1)
return [get_simple_image_name(s) if count < 1000 else get_volumetric_image_name(s) for s in seeds]
def get_simple_image_name(self, subject, ordinal):
return "{}{:03d}.jpg".format(subject, ordinal)
... | 39.75 | 102 | 0.708595 | 69 | 477 | 4.681159 | 0.405797 | 0.111455 | 0.086687 | 0.111455 | 0.167183 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042394 | 0.159329 | 477 | 12 | 103 | 39.75 | 0.763092 | 0 | 0 | 0 | 0 | 0 | 0.07113 | 0.046025 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.111111 | 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 | 0 | 1 | 1 | 0 | 0 | 3 |
ad9a5091c34713a20740c2907a110f645627e319 | 208 | py | Python | test/backup/delete.py | ehime/backup-dynamodb | 95a1b4200a6fcd5d181c1eecdbccef25cf5453b2 | [
"MIT"
] | null | null | null | test/backup/delete.py | ehime/backup-dynamodb | 95a1b4200a6fcd5d181c1eecdbccef25cf5453b2 | [
"MIT"
] | null | null | null | test/backup/delete.py | ehime/backup-dynamodb | 95a1b4200a6fcd5d181c1eecdbccef25cf5453b2 | [
"MIT"
] | null | null | null | from __future__ import print_function # Python 2/3 compatibility
import boto3
dynamodb = boto3.resource('dynamodb', region_name='us-east-1')
table = dynamodb.Table('devops-backup-testing')
table.delete()
| 23.111111 | 65 | 0.774038 | 28 | 208 | 5.535714 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026882 | 0.105769 | 208 | 8 | 66 | 26 | 0.806452 | 0.115385 | 0 | 0 | 0 | 0 | 0.208791 | 0.115385 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0.2 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
d132e1a0b7802c88e9c138fa9b6328407315432c | 987 | py | Python | Pearl/Nub.py | Rhodolite/Parser-py | 7743799794d92aa8560db11f1d6d5f00e5ac1925 | [
"MIT"
] | null | null | null | Pearl/Nub.py | Rhodolite/Parser-py | 7743799794d92aa8560db11f1d6d5f00e5ac1925 | [
"MIT"
] | null | null | null | Pearl/Nub.py | Rhodolite/Parser-py | 7743799794d92aa8560db11f1d6d5f00e5ac1925 | [
"MIT"
] | null | null | null | #
# Copyright (c) 2017-2018 Joy Diamond. All rights reserved.
#
@gem('Pearl.Nub')
def gem():
require_gem('Pearl.Core')
nub_cache = create_cache('nub')
lookup_nub = nub_cache.lookup
provide_nub = nub_cache.provide
class Nub(Object):
__slots__ = ((
'a', ... | 17.625 | 62 | 0.494428 | 131 | 987 | 3.40458 | 0.358779 | 0.022422 | 0.071749 | 0.080717 | 0.188341 | 0.188341 | 0.188341 | 0.188341 | 0.188341 | 0.188341 | 0 | 0.021002 | 0.372847 | 987 | 55 | 63 | 17.945455 | 0.699515 | 0.064843 | 0 | 0 | 0 | 0 | 0.053493 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0 | 0.2 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
d134fbb637492978ce7f42fec9915ee791635ba8 | 208 | py | Python | python/test/hsd/test.py | bhourahine/hsdparser | 766898c224fe0ed192e25d75e2e5c656407c8473 | [
"BSD-2-Clause"
] | null | null | null | python/test/hsd/test.py | bhourahine/hsdparser | 766898c224fe0ed192e25d75e2e5c656407c8473 | [
"BSD-2-Clause"
] | null | null | null | python/test/hsd/test.py | bhourahine/hsdparser | 766898c224fe0ed192e25d75e2e5c656407c8473 | [
"BSD-2-Clause"
] | null | null | null | import unittest
import test_parser
import test_formatter
runner = unittest.TextTestRunner()
runner.run(unittest.TestSuite(test_parser.getsuites()
+ test_formatter.getsuites()))
| 26 | 60 | 0.711538 | 21 | 208 | 6.857143 | 0.47619 | 0.138889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.206731 | 208 | 7 | 61 | 29.714286 | 0.872727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
d134ffef1ceb4f57ec2052345d219f819560b5a3 | 284 | py | Python | setup.py | diminoten/click_example | 21944ef90e3517d8e50c75289deeafc29ff5a609 | [
"WTFPL"
] | null | null | null | setup.py | diminoten/click_example | 21944ef90e3517d8e50c75289deeafc29ff5a609 | [
"WTFPL"
] | null | null | null | setup.py | diminoten/click_example | 21944ef90e3517d8e50c75289deeafc29ff5a609 | [
"WTFPL"
] | null | null | null | from setuptools import setup
setup(
name='click_example',
version='1.0.0',
packages=['click_example'],
install_requires=['click'],
entry_points={
'console_scripts': [
'click_example=click_example:main'
]
},
license='LICENSE'
)
| 18.933333 | 46 | 0.598592 | 29 | 284 | 5.62069 | 0.655172 | 0.294479 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014286 | 0.260563 | 284 | 14 | 47 | 20.285714 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0.316901 | 0.112676 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.076923 | 0 | 0.076923 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d143f55d3d8d2902d5351575e0b42c05c4fc70b0 | 901 | py | Python | polka_curses/views/blogs_page.py | dmkskn/polka_curses | 910b85671187c0a2eb44302ecac285e2d0ae92eb | [
"MIT"
] | 2 | 2020-02-02T01:44:07.000Z | 2020-06-06T13:27:33.000Z | polka_curses/views/blogs_page.py | dmkskn/polka_curses | 910b85671187c0a2eb44302ecac285e2d0ae92eb | [
"MIT"
] | null | null | null | polka_curses/views/blogs_page.py | dmkskn/polka_curses | 910b85671187c0a2eb44302ecac285e2d0ae92eb | [
"MIT"
] | null | null | null | import urwid
from urwid import LEFT
from polka_curses.config import Palette as p
class BlogsPage(urwid.ListBox):
def __init__(self, blogs):
self.blogs = blogs
widgets = [BlogItem(b) for b in self.blogs]
super().__init__(urwid.SimpleFocusListWalker(widgets))
def get_focused_blog_artic... | 25.027778 | 79 | 0.653718 | 116 | 901 | 4.87069 | 0.422414 | 0.056637 | 0.038938 | 0.063717 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002933 | 0.243063 | 901 | 35 | 80 | 25.742857 | 0.825513 | 0 | 0 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.115385 | 0.115385 | 0.576923 | 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 | 1 | 0 | 0 | 3 |
d1481a11a758ebcc2fbd8aaf58eca3db4c34ac8c | 154 | py | Python | user/enums.py | isakcodes/website | a781f4c90c609461a64340a904d577014f5690ae | [
"MIT"
] | null | null | null | user/enums.py | isakcodes/website | a781f4c90c609461a64340a904d577014f5690ae | [
"MIT"
] | null | null | null | user/enums.py | isakcodes/website | a781f4c90c609461a64340a904d577014f5690ae | [
"MIT"
] | null | null | null | import enum
class UserType(enum.IntEnum):
ORGANISER = 0
PARTICIPANT = 1
class SexType(enum.IntEnum):
NONE = 0
FEMALE = 1
MALE = 2
| 11.846154 | 29 | 0.623377 | 20 | 154 | 4.8 | 0.7 | 0.229167 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045872 | 0.292208 | 154 | 12 | 30 | 12.833333 | 0.834862 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 1 | 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 | 1 | 0 | 0 | 3 |
0f0eb83054b4bcce44f0029e0a8fcfbc6bd6ec6e | 24 | py | Python | ffs/spec_version.py | clbarnes/ffs | bc67692178232d3a77c05cefd1139461cf17882a | [
"MIT"
] | null | null | null | ffs/spec_version.py | clbarnes/ffs | bc67692178232d3a77c05cefd1139461cf17882a | [
"MIT"
] | null | null | null | ffs/spec_version.py | clbarnes/ffs | bc67692178232d3a77c05cefd1139461cf17882a | [
"MIT"
] | null | null | null | SPEC_VERSION = "v2.0.0"
| 12 | 23 | 0.666667 | 5 | 24 | 3 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 0.125 | 24 | 1 | 24 | 24 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0f4d615fa133c78f40e6cf51959284d890c10a7a | 384 | py | Python | mcutils/__init__.py | macanepa/mcutils | 16e71f93ce61d76a16092af8c38928036a4ef409 | [
"MIT"
] | null | null | null | mcutils/__init__.py | macanepa/mcutils | 16e71f93ce61d76a16092af8c38928036a4ef409 | [
"MIT"
] | null | null | null | mcutils/__init__.py | macanepa/mcutils | 16e71f93ce61d76a16092af8c38928036a4ef409 | [
"MIT"
] | null | null | null | from .directory_manager import *
from .input_validation import *
from .print_manager import *
from .json_manager import *
from .utilities import *
from .menu import *
from .logger import *
"""Top-level package for mcutils."""
__author__ = """Matias Canepa Gonzalez"""
__email__ = 'macanepa@miuandes.cl'
__version__ = '... | 19.2 | 41 | 0.734375 | 49 | 384 | 5.367347 | 0.653061 | 0.228137 | 0.193916 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009036 | 0.135417 | 384 | 19 | 42 | 20.210526 | 0.783133 | 0 | 0 | 0 | 0 | 0 | 0.142424 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.583333 | 0 | 0.583333 | 0.083333 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
0f5abf9fdcaeb4c3427d6ce969913eebbd87a3bc | 1,825 | py | Python | ACME/geometry/octahedron.py | mauriziokovacic/ACME | 2615b66dd4addfd5c03d9d91a24c7da414294308 | [
"MIT"
] | 3 | 2019-10-23T23:10:55.000Z | 2021-09-01T07:30:14.000Z | ACME/geometry/octahedron.py | mauriziokovacic/ACME-Python | 2615b66dd4addfd5c03d9d91a24c7da414294308 | [
"MIT"
] | null | null | null | ACME/geometry/octahedron.py | mauriziokovacic/ACME-Python | 2615b66dd4addfd5c03d9d91a24c7da414294308 | [
"MIT"
] | 1 | 2020-07-11T11:35:43.000Z | 2020-07-11T11:35:43.000Z | import torch
from ..utility.LongTensor import *
from ..utility.FloatTensor import *
from ..topology.subdivision import *
from ..math.normvec import *
from .subdivide import *
def Octahedron(device='cuda:0'):
"""
Creates a single octahedron mesh
Parameters
----------
device ... | 25 | 124 | 0.57863 | 265 | 1,825 | 3.977358 | 0.2 | 0.07685 | 0.011385 | 0.051233 | 0.755218 | 0.701139 | 0.6537 | 0.6537 | 0.6537 | 0.6537 | 0 | 0.044853 | 0.254795 | 1,825 | 72 | 125 | 25.347222 | 0.730147 | 0.45589 | 0 | 0.434783 | 0 | 0 | 0.021152 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0 | 0.26087 | 0 | 0.521739 | 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 | 1 | 0 | 0 | 3 |
0f6ed7e2871bae743945f2ef787bd86ace0207d8 | 1,250 | py | Python | pytransloadit/templates.py | isaacm/pytransloadit | 468590bc4b13d499a0364858545915a4a3b72271 | [
"MIT"
] | null | null | null | pytransloadit/templates.py | isaacm/pytransloadit | 468590bc4b13d499a0364858545915a4a3b72271 | [
"MIT"
] | null | null | null | pytransloadit/templates.py | isaacm/pytransloadit | 468590bc4b13d499a0364858545915a4a3b72271 | [
"MIT"
] | null | null | null | from pytransloadit import base
class Templates(base.APIEndpoint):
def __init__(self, api, path='/templates'):
super(Templates, self).__init__(api, path=path)
def get(self, template_id=None):
"""Get one or many templates.
Retrieves a list of templates when template_id is None.
... | 26.595745 | 66 | 0.6304 | 157 | 1,250 | 4.878981 | 0.318471 | 0.208877 | 0.117493 | 0.125326 | 0.425587 | 0.425587 | 0.425587 | 0.326371 | 0.326371 | 0.326371 | 0 | 0 | 0.2784 | 1,250 | 46 | 67 | 27.173913 | 0.849224 | 0.4056 | 0 | 0 | 0 | 0 | 0.016722 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.416667 | false | 0 | 0.083333 | 0 | 0.916667 | 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 | 1 | 0 | 0 | 3 |
7e4ea4e3626d34914180b09cf7efeec716470058 | 4,002 | py | Python | Week 2/Functions/Defining Functions/topic.py | chanchanchong/Crash-Course-On-Python | ce98bdd5c5355a582c76b864dae1c5eecdf6ea44 | [
"MIT"
] | null | null | null | Week 2/Functions/Defining Functions/topic.py | chanchanchong/Crash-Course-On-Python | ce98bdd5c5355a582c76b864dae1c5eecdf6ea44 | [
"MIT"
] | null | null | null | Week 2/Functions/Defining Functions/topic.py | chanchanchong/Crash-Course-On-Python | ce98bdd5c5355a582c76b864dae1c5eecdf6ea44 | [
"MIT"
] | null | null | null | # You made it through another quiz. You are doing awesomely, keep it up.
# So far we've been looking at variables, expressions and operations which
# are the smallest components of scripts. Up next, we're going to look at
# function while are another crucial programming building block. We've
# come across a few Python ... | 63.52381 | 88 | 0.761119 | 738 | 4,002 | 4.123306 | 0.365854 | 0.013145 | 0.014788 | 0.01183 | 0.023004 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004637 | 0.191654 | 4,002 | 62 | 89 | 64.548387 | 0.936012 | 0.942029 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.333333 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
7e58ec72f830edc000733f032e6dabefac7a9852 | 534 | py | Python | src/modules/control_thread.py | vt-sailbot/sailbot | e12946cc2f4e2498f7a0718ceabf2b3a60df2cb4 | [
"MIT"
] | 2 | 2018-04-03T21:41:10.000Z | 2018-05-27T20:33:22.000Z | src/modules/control_thread.py | vt-sailbot/sailbot-16 | e12946cc2f4e2498f7a0718ceabf2b3a60df2cb4 | [
"MIT"
] | null | null | null | src/modules/control_thread.py | vt-sailbot/sailbot-16 | e12946cc2f4e2498f7a0718ceabf2b3a60df2cb4 | [
"MIT"
] | 1 | 2018-08-31T16:09:12.000Z | 2018-08-31T16:09:12.000Z | #!/usr/bin/python
import threading
class StoppableThread(threading.Thread):
def __init__(self, *args, **kwargs):
super(StoppableThread, self).__init__(*args, **kwargs)
self._stop_flag = threading.Event()
"""
# Sample implementation of a run() method
def run(self):
while True:... | 22.25 | 62 | 0.586142 | 59 | 534 | 5.067797 | 0.59322 | 0.080268 | 0.120401 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.292135 | 534 | 24 | 63 | 22.25 | 0.791005 | 0.029963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.111111 | 0.111111 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
7e5a137bc8bba17b6b0d9bbc1f103b88c5b2bd55 | 332 | py | Python | output/models/nist_data/atomic/non_positive_integer/schema_instance/nistschema_sv_iv_atomic_non_positive_integer_max_exclusive_3_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 1 | 2021-08-14T17:59:21.000Z | 2021-08-14T17:59:21.000Z | output/models/nist_data/atomic/non_positive_integer/schema_instance/nistschema_sv_iv_atomic_non_positive_integer_max_exclusive_3_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 4 | 2020-02-12T21:30:44.000Z | 2020-04-15T20:06:46.000Z | output/models/nist_data/atomic/non_positive_integer/schema_instance/nistschema_sv_iv_atomic_non_positive_integer_max_exclusive_3_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from output.models.nist_data.atomic.non_positive_integer.schema_instance.nistschema_sv_iv_atomic_non_positive_integer_max_exclusive_3_xsd.nistschema_sv_iv_atomic_non_positive_integer_max_exclusive_3 import NistschemaSvIvAtomicNonPositiveIntegerMaxExclusive3
__all__ = [
"NistschemaSvIvAtomicNonPositiveIntegerMaxExc... | 55.333333 | 257 | 0.918675 | 36 | 332 | 7.722222 | 0.583333 | 0.097122 | 0.183453 | 0.258993 | 0.366906 | 0.366906 | 0.366906 | 0.366906 | 0.366906 | 0.366906 | 0 | 0.012579 | 0.042169 | 332 | 5 | 258 | 66.4 | 0.861635 | 0 | 0 | 0 | 0 | 0 | 0.153614 | 0.153614 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7e60b629b63176a8585d0dc36d916307eaa05a47 | 420 | py | Python | hipose/data/trial_parsing/__init__.py | ManuelPalermo/HumanInertialPose | 3e966ddbab76345f915e16056efa7e433d0cb70e | [
"MIT"
] | 6 | 2022-02-16T11:53:18.000Z | 2022-03-01T03:47:34.000Z | hipose/data/trial_parsing/__init__.py | ManuelPalermo/HumanInertialPose | 3e966ddbab76345f915e16056efa7e433d0cb70e | [
"MIT"
] | null | null | null | hipose/data/trial_parsing/__init__.py | ManuelPalermo/HumanInertialPose | 3e966ddbab76345f915e16056efa7e433d0cb70e | [
"MIT"
] | null | null | null |
from .extract_xsens_analyse import extract_xsens_analyse_data, extract_xsens_analyse_raw_data
from .extract_xsens_mtmanager import extract_mtwawinda_data, \
extract_mtmanager_data, extract_mtmanager_raw_data, \
get_mtmanager_trial_files, report_mtmanager_trial_status
from .extract_ergowear import extract_erg... | 42 | 93 | 0.87619 | 56 | 420 | 5.928571 | 0.267857 | 0.144578 | 0.171687 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090476 | 420 | 9 | 94 | 46.666667 | 0.86911 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
7e71db7b66acb2974525475759a3f15ff807d9ff | 369 | py | Python | bin/contentctl_project/contentctl_core/domain/entities/unit_test.py | arjunkhunti-crest/security_content | 41e354485e5917d3366ef735a9c5b25a20d3b8cc | [
"Apache-2.0"
] | null | null | null | bin/contentctl_project/contentctl_core/domain/entities/unit_test.py | arjunkhunti-crest/security_content | 41e354485e5917d3366ef735a9c5b25a20d3b8cc | [
"Apache-2.0"
] | null | null | null | bin/contentctl_project/contentctl_core/domain/entities/unit_test.py | arjunkhunti-crest/security_content | 41e354485e5917d3366ef735a9c5b25a20d3b8cc | [
"Apache-2.0"
] | null | null | null |
from pydantic import BaseModel, validator, ValidationError
from bin.contentctl_project.contentctl_core.domain.entities.security_content_object import SecurityContentObject
from bin.contentctl_project.contentctl_core.domain.entities.unit_test_test import UnitTestTest
class UnitTest(BaseModel, SecurityContentObject):... | 33.545455 | 112 | 0.845528 | 41 | 369 | 7.414634 | 0.609756 | 0.046053 | 0.111842 | 0.157895 | 0.342105 | 0.342105 | 0.342105 | 0.342105 | 0 | 0 | 0 | 0 | 0.100271 | 369 | 11 | 113 | 33.545455 | 0.915663 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
7e758a11df8e70326a55d1fa44b9d74ec434b69f | 12 | py | Python | micro-benchmark-key-errs/snippets/dicts/ext_key/ext.py | WenJinfeng/PyCG | b45e8e04fe697d8301cf27222a8f37646d69f168 | [
"Apache-2.0"
] | 121 | 2020-12-16T20:31:37.000Z | 2022-03-21T20:32:43.000Z | micro-benchmark-key-errs/snippets/dicts/ext_key/ext.py | WenJinfeng/PyCG | b45e8e04fe697d8301cf27222a8f37646d69f168 | [
"Apache-2.0"
] | 24 | 2021-03-13T00:04:00.000Z | 2022-03-21T17:28:11.000Z | micro-benchmark-key-errs/snippets/dicts/ext_key/ext.py | WenJinfeng/PyCG | b45e8e04fe697d8301cf27222a8f37646d69f168 | [
"Apache-2.0"
] | 19 | 2021-03-23T10:58:47.000Z | 2022-03-24T19:46:50.000Z | const = "b"
| 6 | 11 | 0.5 | 2 | 12 | 3 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 12 | 1 | 12 | 12 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7e90c6672ae065074d5fe820920e2c01c4c80f13 | 57 | py | Python | peek_plugin_base/worker/CeleryApp.py | Synerty/peek_plugin_base | aa8a09a52bd5e1f95e4b61907f5de3b661fc9780 | [
"MIT"
] | null | null | null | peek_plugin_base/worker/CeleryApp.py | Synerty/peek_plugin_base | aa8a09a52bd5e1f95e4b61907f5de3b661fc9780 | [
"MIT"
] | null | null | null | peek_plugin_base/worker/CeleryApp.py | Synerty/peek_plugin_base | aa8a09a52bd5e1f95e4b61907f5de3b661fc9780 | [
"MIT"
] | 1 | 2016-12-12T15:05:18.000Z | 2016-12-12T15:05:18.000Z | from celery.app.base import Celery
celeryApp = Celery()
| 14.25 | 34 | 0.77193 | 8 | 57 | 5.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140351 | 57 | 3 | 35 | 19 | 0.897959 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
7ea13e53284f9d1cdaaf95077d72a15efbcb5517 | 9,203 | py | Python | stubs.min/System/Windows/Controls/__init___parts/GridView.py | ricardyn/ironpython-stubs | 4d2b405eda3ceed186e8adca55dd97c332c6f49d | [
"MIT"
] | 1 | 2021-02-02T13:39:16.000Z | 2021-02-02T13:39:16.000Z | stubs.min/System/Windows/Controls/__init___parts/GridView.py | hdm-dt-fb/ironpython-stubs | 4d2b405eda3ceed186e8adca55dd97c332c6f49d | [
"MIT"
] | null | null | null | stubs.min/System/Windows/Controls/__init___parts/GridView.py | hdm-dt-fb/ironpython-stubs | 4d2b405eda3ceed186e8adca55dd97c332c6f49d | [
"MIT"
] | null | null | null | class GridView(ViewBase,IAddChild):
"""
Represents a view mode that displays data items in columns for a System.Windows.Controls.ListView control.
GridView()
"""
def AddChild(self,*args):
"""
AddChild(self: GridView,column: object)
Adds a System.Windows.Controls.GridViewColumn object to a
... | 38.506276 | 535 | 0.74693 | 1,004 | 9,203 | 6.791833 | 0.227092 | 0.066725 | 0.092389 | 0.085056 | 0.327761 | 0.241384 | 0.163514 | 0.151195 | 0.151195 | 0.141663 | 0.000326 | 0.007326 | 0.169401 | 9,203 | 238 | 536 | 38.668067 | 0.884354 | 0.512442 | 0 | 0.313725 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.254902 | false | 0.254902 | 0 | 0 | 0.686275 | 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 | 1 | 0 | 0 | 3 |
0e32aa7053b53db51c3f14e4ca382f1fb04c3938 | 1,535 | py | Python | tests/test_localpolynomialregression_cv.py | QuantLet/localpoly | 7db50e3fb2caf39af8f9db1f2108fd1a81fc51bc | [
"MIT"
] | 1 | 2021-04-28T09:39:53.000Z | 2021-04-28T09:39:53.000Z | tests/test_localpolynomialregression_cv.py | QuantLet/localpoly | 7db50e3fb2caf39af8f9db1f2108fd1a81fc51bc | [
"MIT"
] | null | null | null | tests/test_localpolynomialregression_cv.py | QuantLet/localpoly | 7db50e3fb2caf39af8f9db1f2108fd1a81fc51bc | [
"MIT"
] | 1 | 2021-05-11T19:06:17.000Z | 2021-05-11T19:06:17.000Z | import math
from localpoly.base import LocalPolynomialRegressionCV
def test_bandwidth_has_suitable_magnitude(test_data, list_of_bandwidths):
X_test, y_test, y_real = test_data
# Given
h_min = list_of_bandwidths.min()
h_max = list_of_bandwidths.max()
X_range = X_test.max() - X_test.min()
# Wh... | 27.410714 | 73 | 0.667101 | 219 | 1,535 | 4.388128 | 0.26484 | 0.041623 | 0.116545 | 0.043704 | 0.708637 | 0.708637 | 0.652445 | 0.621228 | 0.621228 | 0.621228 | 0 | 0.006867 | 0.241042 | 1,535 | 55 | 74 | 27.909091 | 0.818026 | 0.05342 | 0 | 0.589744 | 0 | 0 | 0.051211 | 0 | 0 | 0 | 0 | 0.018182 | 0.205128 | 1 | 0.076923 | false | 0 | 0.051282 | 0 | 0.128205 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0e40dcbd7dee9b6be5d36434d084ca87c27a54b1 | 1,378 | py | Python | tests/end_to_end/scenarios/invite_other.py | norayr/biboumi | 805671032d25ee6ce09ed75e8a385c04e9563cdd | [
"Zlib"
] | 68 | 2015-01-29T21:07:37.000Z | 2022-03-20T14:48:07.000Z | tests/end_to_end/scenarios/invite_other.py | norayr/biboumi | 805671032d25ee6ce09ed75e8a385c04e9563cdd | [
"Zlib"
] | 5 | 2016-10-24T18:34:30.000Z | 2021-08-31T13:30:37.000Z | tests/end_to_end/scenarios/invite_other.py | norayr/biboumi | 805671032d25ee6ce09ed75e8a385c04e9563cdd | [
"Zlib"
] | 13 | 2015-12-11T15:19:05.000Z | 2021-08-31T13:24:35.000Z | from scenarios import *
scenario = (
send_stanza("<presence from='{jid_one}/{resource_one}' to='#foo%{irc_server_one}/{nick_one}' ><x xmlns='http://jabber.org/protocol/muc'/></presence>"),
sequences.connection("irc.localhost", '{jid_one}/{resource_one}'),
expect_stanza("/presence"),
expect_stanza("/mes... | 68.9 | 184 | 0.685776 | 194 | 1,378 | 4.613402 | 0.201031 | 0.070391 | 0.093855 | 0.100559 | 0.765363 | 0.649162 | 0.620112 | 0.620112 | 0.518436 | 0.518436 | 0 | 0 | 0.071843 | 1,378 | 19 | 185 | 72.526316 | 0.699765 | 0 | 0 | 0.25 | 0 | 0.375 | 0.74238 | 0.490566 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.0625 | 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 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0e42b944dcd766a1f2f9b6744fc9fd104eb2fb6f | 1,494 | py | Python | tests/particle_tester.py | mwang29/SMCPy | 284649f0a30377b3638081b554f2e92568547d30 | [
"NASA-1.3"
] | null | null | null | tests/particle_tester.py | mwang29/SMCPy | 284649f0a30377b3638081b554f2e92568547d30 | [
"NASA-1.3"
] | null | null | null | tests/particle_tester.py | mwang29/SMCPy | 284649f0a30377b3638081b554f2e92568547d30 | [
"NASA-1.3"
] | null | null | null | from cStringIO import StringIO
import sys
from smcpy.particles.particle import Particle
class ParticleTester(object):
'''
Generates different instances of the Particle class. Intended to make
reading tests easier.
'''
def __init__(self,):
self.params = {'a': 1, 'b': 2}
self.weight... | 24.096774 | 73 | 0.667336 | 205 | 1,494 | 4.556098 | 0.253659 | 0.104925 | 0.115632 | 0.154176 | 0.32227 | 0.301927 | 0.09636 | 0 | 0 | 0 | 0 | 0.0124 | 0.244311 | 1,494 | 61 | 74 | 24.491803 | 0.81488 | 0.06091 | 0 | 0.055556 | 1 | 0 | 0.005785 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.277778 | false | 0 | 0.083333 | 0.027778 | 0.638889 | 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 | 1 | 0 | 0 | 3 |
0e52e36a08cd1bfc357ddd5e672398996a7e8f65 | 63 | py | Python | Week8/ascii0.py | LucyJeong/LearningCS50 | 8a00b342c05b8687eae9bae5db347bc354a81d52 | [
"MIT"
] | 1 | 2017-04-24T03:58:09.000Z | 2017-04-24T03:58:09.000Z | Week8/ascii0.py | LucyJeong/LearningCS50 | 8a00b342c05b8687eae9bae5db347bc354a81d52 | [
"MIT"
] | null | null | null | Week8/ascii0.py | LucyJeong/LearningCS50 | 8a00b342c05b8687eae9bae5db347bc354a81d52 | [
"MIT"
] | null | null | null | for i in range(65, 65+26):
print("{} is {}".format(chr(i),i))
| 21 | 35 | 0.555556 | 13 | 63 | 2.692308 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 0.142857 | 63 | 2 | 36 | 31.5 | 0.537037 | 0 | 0 | 0 | 0 | 0 | 0.126984 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 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 | 1 | 0 | 3 |
0e6cd6382ae8b2b3fa056a382e12d0edfd39324b | 80,113 | py | Python | test/programytest/services/rest/microsoft/search/responses.py | RonKhondji/program-y | 422c5dea440e569469d7512d80315a731c5e35d6 | [
"MIT"
] | 345 | 2016-11-23T22:37:04.000Z | 2022-03-30T20:44:44.000Z | test/programytest/services/rest/microsoft/search/responses.py | sofi2305/Nik | e8bb4a6614c16c334cd0df3a16b30a9daac0070d | [
"MIT"
] | 275 | 2016-12-07T10:30:28.000Z | 2022-02-08T21:28:33.000Z | test/programytest/services/rest/microsoft/search/responses.py | sofi2305/Nik | e8bb4a6614c16c334cd0df3a16b30a9daac0070d | [
"MIT"
] | 159 | 2016-11-28T18:59:30.000Z | 2022-03-20T18:02:44.000Z | search_success_reponse = {'_type': 'SearchResponse', 'queryContext': {'originalQuery': 'chatbots'},
'webPages': {'webSearchUrl': 'https://www.bing.com/search?q=chatbots',
'totalEstimatedMatches': 3620000, 'value': [
... | 137.651203 | 447 | 0.362875 | 4,937 | 80,113 | 5.882115 | 0.198501 | 0.028375 | 0.028237 | 0.033884 | 0.600551 | 0.533058 | 0.499208 | 0.47042 | 0.424725 | 0.298003 | 0 | 0.088048 | 0.546628 | 80,113 | 581 | 448 | 137.888124 | 0.711049 | 0 | 0 | 0.271945 | 0 | 0.240964 | 0.409085 | 0.017326 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.001721 | 0 | 0.001721 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0e7227940c15d8adea8405a52c6e448b220fc776 | 785 | py | Python | src/sage/numerical/backends/cvxopt_backend_test.py | UCD4IDS/sage | 43474c96d533fd396fe29fe0782d44dc7f5164f7 | [
"BSL-1.0"
] | 1,742 | 2015-01-04T07:06:13.000Z | 2022-03-30T11:32:52.000Z | src/sage/numerical/backends/cvxopt_backend_test.py | UCD4IDS/sage | 43474c96d533fd396fe29fe0782d44dc7f5164f7 | [
"BSL-1.0"
] | 66 | 2015-03-19T19:17:24.000Z | 2022-03-16T11:59:30.000Z | src/sage/numerical/backends/cvxopt_backend_test.py | UCD4IDS/sage | 43474c96d533fd396fe29fe0782d44dc7f5164f7 | [
"BSL-1.0"
] | 495 | 2015-01-10T10:23:18.000Z | 2022-03-24T22:06:11.000Z | import pytest
from sage.structure.sage_object import SageObject
from sage.numerical.backends.generic_backend_test import GenericBackendTests
from sage.numerical.backends.generic_backend import GenericBackend
from sage.numerical.mip import MixedIntegerLinearProgram
class TestCVXOPTBackend(GenericBackendTests):
@py... | 46.176471 | 135 | 0.8 | 95 | 785 | 6.389474 | 0.515789 | 0.065898 | 0.08402 | 0.082372 | 0.128501 | 0.128501 | 0 | 0 | 0 | 0 | 0 | 0.007299 | 0.127389 | 785 | 16 | 136 | 49.0625 | 0.878832 | 0.08535 | 0 | 0 | 0 | 0 | 0.074022 | 0.030726 | 0 | 0 | 0 | 0.0625 | 0 | 1 | 0.166667 | false | 0 | 0.5 | 0.083333 | 0.833333 | 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 | 1 | 0 | 1 | 0 | 0 | 3 |
0e724791634035aa8208bc3480690fb440b0c16a | 171 | py | Python | test/config/test_meta.py | HansBug/treevalue | 6f2f5b2de00b04a06201a87ccee678ade9deff57 | [
"Apache-2.0"
] | null | null | null | test/config/test_meta.py | HansBug/treevalue | 6f2f5b2de00b04a06201a87ccee678ade9deff57 | [
"Apache-2.0"
] | 1 | 2021-07-24T13:30:14.000Z | 2021-07-24T13:30:14.000Z | test/config/test_meta.py | HansBug/treevalue | 6f2f5b2de00b04a06201a87ccee678ade9deff57 | [
"Apache-2.0"
] | null | null | null | import pytest
from treevalue.config.meta import __TITLE__
@pytest.mark.unittest
class TestConfigMeta:
def test_title(self):
assert __TITLE__ == 'treevalue'
| 17.1 | 43 | 0.748538 | 20 | 171 | 5.95 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175439 | 171 | 9 | 44 | 19 | 0.843972 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.