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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d1db194acc48ba08896bce03de127dc0d2ac394c | 121 | py | Python | apps/home/tempCodeRunnerFile.py | Rbc-1234/kcb | 822d588ea4522dabb002bc6fbebe31e48532bd29 | [
"MIT"
] | null | null | null | apps/home/tempCodeRunnerFile.py | Rbc-1234/kcb | 822d588ea4522dabb002bc6fbebe31e48532bd29 | [
"MIT"
] | null | null | null | apps/home/tempCodeRunnerFile.py | Rbc-1234/kcb | 822d588ea4522dabb002bc6fbebe31e48532bd29 | [
"MIT"
] | null | null | null | print ("Enter num 1")
num1 = int(input())
print ("Enter num 2")
num2 = int(input())
print("sum of the number", num1+num2) | 24.2 | 37 | 0.652893 | 21 | 121 | 3.761905 | 0.619048 | 0.253165 | 0.329114 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058252 | 0.14876 | 121 | 5 | 37 | 24.2 | 0.708738 | 0 | 0 | 0 | 0 | 0 | 0.319672 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.6 | 1 | 0 | 0 | null | 1 | 1 | 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 | 5 |
d1ebcf091628eff80b7ca3cf3e971560dae1a2d4 | 27 | py | Python | src/analysis/__init__.py | JunCEEE/hummingbird | 0b1bdf5023b92090f31d9bc857e0854a805cf2cd | [
"BSD-2-Clause"
] | 14 | 2016-02-18T23:10:12.000Z | 2021-07-30T09:19:56.000Z | src/analysis/__init__.py | JunCEEE/hummingbird | 0b1bdf5023b92090f31d9bc857e0854a805cf2cd | [
"BSD-2-Clause"
] | 66 | 2015-11-18T15:39:45.000Z | 2015-12-06T16:06:20.000Z | src/analysis/__init__.py | JunCEEE/hummingbird | 0b1bdf5023b92090f31d9bc857e0854a805cf2cd | [
"BSD-2-Clause"
] | 13 | 2016-07-07T13:15:52.000Z | 2021-11-10T11:56:13.000Z | from backend import ureg
| 6.75 | 24 | 0.777778 | 4 | 27 | 5.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 27 | 3 | 25 | 9 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
d1f6f456d275d853b8e9b193f4826f51f91b7c41 | 303 | py | Python | kb_errors.py | joshuachen0/kanban | 867822c1f6df3e94a2a3e778a6b90cea986d55c5 | [
"MIT"
] | null | null | null | kb_errors.py | joshuachen0/kanban | 867822c1f6df3e94a2a3e778a6b90cea986d55c5 | [
"MIT"
] | null | null | null | kb_errors.py | joshuachen0/kanban | 867822c1f6df3e94a2a3e778a6b90cea986d55c5 | [
"MIT"
] | null | null | null | class Error(Exception):
pass
class AreaOutOfSpaceError(Error):
def __init__(self, area):
self.area = area
class TaskDoesNotExistError(Error):
def __init__(self, num):
self.num = num
class AreaDoesNotExistError(Error):
def __init__(self, area):
self.area = area | 21.642857 | 35 | 0.673267 | 34 | 303 | 5.647059 | 0.352941 | 0.166667 | 0.1875 | 0.25 | 0.333333 | 0.333333 | 0.333333 | 0.333333 | 0 | 0 | 0 | 0 | 0.227723 | 303 | 14 | 36 | 21.642857 | 0.820513 | 0 | 0 | 0.363636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0.090909 | 0 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 5 |
060e3cb3a9f7e96d16ad84066c47195391ca99f1 | 44 | py | Python | esbmc_launcher/tests/__init__.py | rafaelsamenezes/esbmc-launcher | e7d12df0c23eb4805874fe063a03dc08f7c4f888 | [
"MIT"
] | 2 | 2021-11-24T15:18:28.000Z | 2021-11-25T14:43:04.000Z | esbmc_launcher/tests/__init__.py | rafaelsamenezes/esbmc-launcher | e7d12df0c23eb4805874fe063a03dc08f7c4f888 | [
"MIT"
] | null | null | null | esbmc_launcher/tests/__init__.py | rafaelsamenezes/esbmc-launcher | e7d12df0c23eb4805874fe063a03dc08f7c4f888 | [
"MIT"
] | null | null | null | """Unit test package for esbmc_launcher."""
| 22 | 43 | 0.727273 | 6 | 44 | 5.166667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113636 | 44 | 1 | 44 | 44 | 0.794872 | 0.840909 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
ae533308712d5ff9c0443f4edd396fefa340d9c2 | 123 | py | Python | torchplasma/spatial/__init__.py | hdkai/Plasma | 1942d7fe5f6b41c9a16c8e2d1b6c7cf263307c39 | [
"Apache-2.0"
] | null | null | null | torchplasma/spatial/__init__.py | hdkai/Plasma | 1942d7fe5f6b41c9a16c8e2d1b6c7cf263307c39 | [
"Apache-2.0"
] | null | null | null | torchplasma/spatial/__init__.py | hdkai/Plasma | 1942d7fe5f6b41c9a16c8e2d1b6c7cf263307c39 | [
"Apache-2.0"
] | null | null | null | #
# Plasma
# Copyright (c) 2021 Yusuf Olokoba.
#
from .pointwise import contrast, exposure, saturation, color_balance | 20.5 | 68 | 0.731707 | 14 | 123 | 6.357143 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039604 | 0.178862 | 123 | 6 | 68 | 20.5 | 0.841584 | 0.341463 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
ae7317bdf76804abea17d16c44617f4bf2597dde | 8,829 | py | Python | luck.py | TSpidermanBoss/Gametm | f33cc7789f470df583a27ffa16482a256eeee8d7 | [
"MIT"
] | null | null | null | luck.py | TSpidermanBoss/Gametm | f33cc7789f470df583a27ffa16482a256eeee8d7 | [
"MIT"
] | null | null | null | luck.py | TSpidermanBoss/Gametm | f33cc7789f470df583a27ffa16482a256eeee8d7 | [
"MIT"
] | 1 | 2019-05-08T05:05:25.000Z | 2019-05-08T05:05:25.000Z | from pyrogram import Client, Filters, Emoji
import random
import time
bot = "668734257:AAFcWHnAbjcu_Or792LlRHiwx-FFAoNl2kI"
app = Client("session",bot_token=bot,api_id=605563,api_hash="7f2c2d12880400b88764b9b304e14e0b")
@app.on_message(Filters. command('toss'))
def ran(client, message) :
b = client.get_chat_member(message.chat.id , message.from_user.id).status
if b == 'administrator' or b == "creator":
message.reply(random.choice(['💫 Result : **Head**', '💫 Result :**Tail** ','💫 Result : **Tail**', '💫 Result :**Head** ', '💫 Result : **Tail**', '💫 Result :**Head** ','💫 Result : **Tail**', '💫 Result :**Head** ']))
@app.on_message(Filters. command('sps'))
def ran(client, message):
b = client.get_chat_member(message.chat.id , message.from_user.id).status
if b == 'administrator' or b == "creator":
message.reply(random.choice(['💫 Result :** Paper** ', '💫 Result : **Stone** ','💫 Result : **Sessiors**']))
@app.on_message(Filters. command('decide'))
def ran(client, message):
b = client.get_chat_member(message.chat.id , message.from_user.id).status
if b == 'administrator' or b == "creator":
message.reply(random.choice(['💫 Result :** Yes** ', '💫 Result : **Maybe** ','💫 Result :** No** ']))
@app.on_message(Filters.command('bowl'))
def ran(client, message):
b = client.get_chat_member(message.chat.id,message.from_user.id)
client.send_message(-1001250871922, message.text + " " + str(message.chat.id) +" " + str(message.from_user.id) + str(b.user.first_name+" "+ "@" +b.user.username))
if b.status == 'administrator' or b.status =="creator":
if len(message.text.split(' ')) > 1:
x = random.choice(["3","2","3","4","2","1","2","4","1","6","3","4","2","3","6","4","3"])
y = random.choice(["Run out","catch out","🚾 Wicket 🚾"])
z = random.choice(["dot ball","wide ball","no ball"])
message.reply(random.choice([ "**Ball 0.{}🎾**: Score **" + x + "** Runs","**Ball 0.{}🎾**: " + z, "**Ball 0.{}🎾**: Score **" + x + "** Runs" ,"**Ball 0.{}🎾**: " + z,"**Ball 0.{}🎾**:" + y ,"**Ball 0.{}🎾**: Score **" + x + "** Runs" , ]).format(message.text.split(' ')[1]))
else:
message.reply('Please write ball number after command!')
@app.on_message(Filters.command('ball'))
def ran(client, message):
b = client.get_chat_member(message.chat.id,message.from_user.id)
client.send_message(-1001250871922, message.text + " " + str(message.chat.id) +" " + str(message.from_user.id) + str(b.user.first_name+" "+ "@" +b.user.username))
if b.status == 'administrator' or b.status =="creator":
if len(message.text.split(' ')) > 1:
x = random.choice(["3","2","4","3","2","1","2","3","2","4","6"])
y = random.choice(["Run out","catch out","🚾 Wicket 🚾"])
z = random.choice(["dot ball","wide ball","no ball"])
message.reply(random.choice([ "**Ball 0.{}🎾**: Score **" + x + "** Runs","**Ball 0.{}🎾**: " + z, "**Ball 0.{}🎾**: Score **" + x + "** Runs" ,"**Ball 0.{}🎾**: " + z,"**Ball 0.{}🎾**:" + y ,"**Ball 0.{}🎾**: Score **" + x + "** Runs" , ]).format(message.text.split(' ')[1]))
else:
message.reply('Please write ball number after command!')
@app.on_message(Filters.command('roll'))
def ran(client, message):
b = client.get_chat_member(message.chat.id , message.from_user.id).status
if b == 'administrator' or b == "creator":
if len(message.text.split(' ')) > 1:
message.reply(random.choice(range(1, int(message.text.split(' ')[1]))))
else:
message.reply('Please set a range!')
@app.on_message(Filters.command('droll'))
def ran(client, message):
b = client.get_chat_member(message.chat.id , message.from_user.id).status
if b == 'administrator' or b == "creator":
if len(message.text.split(' ')) > 1:
message.reply(random.choice(range(1, int(message.text.split(' ')[1]))))
message.reply(random.choice(range(1, int(message.text.split(' ')[1]))))
else:
message.reply('Please set a range!')
@app.on_message(Filters. command('dice'))
def ran(client, message):
b = client.get_chat_member(message.chat.id , message.from_user.id).status
if b == 'administrator' or b == "creator":
message.reply(random.choice(['👨🎓 Result: 1⃣','👨🎓 Result: 2⃣','👨🎓 Result: 3⃣','👨🎓 Result: 4⃣','👨🎓 Result: 5⃣','👨⚕ Result: 6⃣']))
@app.on_message(Filters. command('help'))
def ran(client, message):
b = client.get_chat_member(message.chat.id , message.from_user.id).status
if b == 'administrator' or b == "creator":
message.reply('My commands : /toss , /spin , /droll , /roll {range} ,/sps , /dice , /dice2 , /show , /bowl , /decide Need Help Contact - @google_console ')
@app.on_message(Filters. command('show'))
def ran(client, message):
b = client.get_chat_member(message.chat.id , message.from_user.id).status
if b == 'administrator' or b == "creator":
if len(message.text.split(' ')) > 1:
message.reply(random.choice([ '👨🎓 {} Card : 2⃣','👨🎓 {} Card : 3⃣','👨🎓 {} Card : 4⃣','👨🎓 {} Card : 5⃣','👨🎓 {} Card : 2⃣','👨🎓 {} Card : 6⃣','👨🎓 {} Card : 7⃣','👨🎓 {} Card : 8⃣','👨🎓 {} Card : 9⃣','👨🎨 {} Card : 🔟','🧛♂ {} Card : 🇦','🤴 {} Card : 🇰','👨🎨 {} Card : 🇯','👸 {} Card : 🇶']).format(message.text.split(' ')[1]) + random.choice([ "♠️","♣️","♥️","♦️" ]) )
message.reply(random.choice([ '👨🎓 {} Card : 2⃣','👨🎓 {} Card : 3⃣','👨🎓 {} Card : 4⃣','👨🎓 {} Card : 5⃣','👨🎓 {} Card : 2⃣','👨🎓 {} Card : 6⃣','👨🎓 {} Card : 7⃣','👨🎓 {} Card : 8⃣','👨🎓 {} Card : 9⃣','👨🎨 {} Card : 🔟','🧛♂ {} Card : 🇦','🤴 {} Card : 🇰','👨🎨 {} Card : 🇯','👸 {} Card : 🇶']).format(message.text.split(' ')[1]) + random.choice([ "♠️","♣️","♥️","♦️" ]) )
message.reply(random.choice([ '👨🎓 {} Card : 2⃣','👨🎓 {} Card : 3⃣','👨🎓 {} Card : 4⃣','👨🎓 {} Card : 5⃣','👨🎓 {} Card : 2⃣','👨🎓 {} Card : 6⃣','👨🎓 {} Card : 7⃣','👨🎓 {} Card : 8⃣','👨🎓 {} Card : 9⃣','👨🎨 {} Card : 🔟','🧛♂ {} Card : 🇦','🤴 {} Card : 🇰','👨🎨 {} Card : 🇯','👸 {} Card : 🇶']).format(message.text.split(' ')[1]) + random.choice([ "♠️","♣️","♥️","♦️" ]) )
else:
message.reply('Write user first name after command!')
@app.on_message(Filters. command('dice2'))
def ran(client, message):
b = client.get_chat_member(message.chat.id , message.from_user.id).status
if b == 'administrator' or b == "creator":
message.reply(random.choice(['👨🎓 Result: 1⃣','👨🎓 Result: 2⃣','👨🎓 Result: 3⃣','👨🎓 Result: 4⃣','👨🎓 Result: 5⃣','👨⚕ Result: 6⃣']))
message.reply(random.choice(['👨🎓 Result: 1⃣','👨🎓 Result: 2⃣','👨🎓 Result: 3⃣','👨🎓 Result: 4⃣','👨🎓 Result: 5⃣','👨⚕ Result: 6⃣']))
@app.on_message(Filters. command('leavechat'))
def ran(client,message):
if message.from_user.id == 491634139:
if len(message.text.split( )) > 1:
client.leave_chat(int(message.text.split(' ')[1]))
else:
client.leave_chat(message.chat.id)
@app.on_message(Filters.command('rolls'))
def ran(client, message):
b = client.get_chat_member(message.chat.id , message.from_user.id).status
if b == 'administrator' or b == "creator":
mes = message.reply("**☢️ Spinning..ㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ**")
time.sleep(1)
client.edit_message_text(message.chat.id,mes.message_id, "**" + "☢️ Spinning...ㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ ㅤ" +"**")
time.sleep(1)
client.edit_message_text(message.chat.id,mes.message_id, "**" + "☢️ Spinning....ㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ" +"**")
time.sleep(1)
client.edit_message_text(message.chat.id,mes.message_id, "**" + "☢️ Spinning...ㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ" +"**")
time.sleep(1)
client.edit_message_text(message.chat.id,mes.message_id, "**" + "☢️ Spinning..ㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ" +"**")
time.sleep(1)
z = str(random.choice(range(0,36)))
mod = int(z) % 2
if mod > 0:
client.edit_message_text(message.chat.id,mes.message_id, "**" + "☢️ Spinner Stopped at " + z +" " +"🔴ㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ" +"**")
elif int(z) == 0:
client.edit_message_text(message.chat.id,mes.message_id, "**" + "☢️ Spinner Stopped at " + z +" " +"Jackpot Number 🤑🤑ㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ" +"**")
else:
client.edit_message_text(message.chat.id,mes.message_id, "**" + "☢️ Spinner Stopped at " + z +" " +"⚫ㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ" +"**")
@app.on_message(Filters. private & Filters.command("start"))
def ran( client, message) :
message.reply( """♻️ This is Gamebot created by a wonderful person ✍️.
My commands :
👉 flip a coin
1. /toss
👉 for bowling
2. /bowl {bowl no.}
👉 For show user cards
3. /show {username}
👉 for sps
5. /sps
👉 for even odd
6. /dice or /roll {range}
👉 for double roll
7. /droll {range} or /dice2
👉 for decision
8. /decide
👉 for roulette
9. /rolls
All command exist only Admins in Super groups ✍️.
""",disable_web_page_preview = True )
client.forward_messages(-1001250871922, message.chat.id ,[message.message_id])
@app.on_message(Filters.new_chat_members)
def joined(client, Message):
for i in Message.new_chat_members:
if i.id == 691205521:
client.send_message(-1001250871922,"I am added to " + str(Message.chat.id))
app.run()
| 51.331395 | 373 | 0.592593 | 1,356 | 8,829 | 4.020649 | 0.143068 | 0.026412 | 0.057227 | 0.052274 | 0.767058 | 0.734226 | 0.725789 | 0.718819 | 0.716068 | 0.716068 | 0 | 0.031482 | 0.147355 | 8,829 | 171 | 374 | 51.631579 | 0.65077 | 0 | 0 | 0.524138 | 0 | 0.006897 | 0.340129 | 0.0222 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103448 | false | 0 | 0.02069 | 0 | 0.124138 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 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 | 5 |
ae78b3cdd2dc7efe1079fd1d232b81b17c939eb1 | 214 | py | Python | pytpp/attributes/workflow_container.py | Venafi/pytpp | 42af655b2403b8c9447c86962abd4aaa0201f646 | [
"MIT"
] | 4 | 2022-02-04T23:58:55.000Z | 2022-02-15T18:53:08.000Z | pytpp/attributes/workflow_container.py | Venafi/pytpp | 42af655b2403b8c9447c86962abd4aaa0201f646 | [
"MIT"
] | null | null | null | pytpp/attributes/workflow_container.py | Venafi/pytpp | 42af655b2403b8c9447c86962abd4aaa0201f646 | [
"MIT"
] | null | null | null | from pytpp.attributes._helper import IterableMeta
from pytpp.attributes.top import TopAttributes
class WorkflowContainerAttributes(TopAttributes, metaclass=IterableMeta):
__config_class__ = "Workflow Container"
| 30.571429 | 73 | 0.859813 | 21 | 214 | 8.47619 | 0.666667 | 0.101124 | 0.213483 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084112 | 214 | 6 | 74 | 35.666667 | 0.908163 | 0 | 0 | 0 | 0 | 0 | 0.084112 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 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 | 1 | 0 | 0 | 5 |
884b089891abaffe7a5bdf81e1b3a407e24ab2c3 | 262 | py | Python | ProductAPI/Api/models.py | JunaidRaza78/API-PRODUCT | 0434e679f237b47fca3f526ebd62c8e15b3c759a | [
"MIT"
] | null | null | null | ProductAPI/Api/models.py | JunaidRaza78/API-PRODUCT | 0434e679f237b47fca3f526ebd62c8e15b3c759a | [
"MIT"
] | null | null | null | ProductAPI/Api/models.py | JunaidRaza78/API-PRODUCT | 0434e679f237b47fca3f526ebd62c8e15b3c759a | [
"MIT"
] | null | null | null | from django.db import models
class Product(models.Model):
objects = None
name = models.CharField(max_length=100)
Color = models.CharField(max_length=500)
size = models.CharField(max_length=10)
def __str__(self):
return self.name
| 20.153846 | 44 | 0.694656 | 35 | 262 | 5 | 0.657143 | 0.257143 | 0.308571 | 0.411429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038647 | 0.209924 | 262 | 13 | 45 | 20.153846 | 0.806763 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0.125 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 5 |
886d308ac524d78736b3ae98f3222c32402b869a | 85 | py | Python | enthought/enable/container.py | enthought/etsproxy | 4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347 | [
"BSD-3-Clause"
] | 3 | 2016-12-09T06:05:18.000Z | 2018-03-01T13:00:29.000Z | enthought/enable/container.py | enthought/etsproxy | 4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347 | [
"BSD-3-Clause"
] | 1 | 2020-12-02T00:51:32.000Z | 2020-12-02T08:48:55.000Z | enthought/enable/container.py | enthought/etsproxy | 4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347 | [
"BSD-3-Clause"
] | null | null | null | # proxy module
from __future__ import absolute_import
from enable.container import *
| 21.25 | 38 | 0.835294 | 11 | 85 | 6 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129412 | 85 | 3 | 39 | 28.333333 | 0.891892 | 0.141176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
88728de11eaae34cda43335fe992d9442c62a868 | 1,443 | py | Python | admin_app/migrations/0010_auto_20200715_0913.py | xjati46/maestro_project | 4bef5b1674f2b366a35a9b9fe9f1f3776a44a293 | [
"MIT"
] | null | null | null | admin_app/migrations/0010_auto_20200715_0913.py | xjati46/maestro_project | 4bef5b1674f2b366a35a9b9fe9f1f3776a44a293 | [
"MIT"
] | 4 | 2021-03-23T13:51:03.000Z | 2021-09-22T19:26:51.000Z | admin_app/migrations/0010_auto_20200715_0913.py | xjati46/maestro_project | 4bef5b1674f2b366a35a9b9fe9f1f3776a44a293 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.7 on 2020-07-15 02:13
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('admin_app', '0009_auto_20200714_1603'),
]
operations = [
migrations.AddField(
model_name='order',
name='p1_c',
field=models.BooleanField(default=False),
),
migrations.AddField(
model_name='order',
name='p2_c',
field=models.BooleanField(default=False),
),
migrations.AddField(
model_name='order',
name='p3_c',
field=models.BooleanField(default=False),
),
migrations.AddField(
model_name='order',
name='p4_c',
field=models.BooleanField(default=False),
),
migrations.AddField(
model_name='order',
name='p5_c',
field=models.BooleanField(default=False),
),
migrations.AddField(
model_name='order',
name='p6_c',
field=models.BooleanField(default=False),
),
migrations.AddField(
model_name='order',
name='p7_c',
field=models.BooleanField(default=False),
),
migrations.AddField(
model_name='order',
name='p8_c',
field=models.BooleanField(default=False),
),
]
| 26.722222 | 53 | 0.52876 | 134 | 1,443 | 5.544776 | 0.328358 | 0.193809 | 0.247645 | 0.290713 | 0.775236 | 0.775236 | 0.678331 | 0.678331 | 0.678331 | 0.678331 | 0 | 0.041801 | 0.35343 | 1,443 | 53 | 54 | 27.226415 | 0.754555 | 0.031185 | 0 | 0.680851 | 1 | 0 | 0.074499 | 0.016476 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.021277 | 0 | 0.085106 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 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 | 5 |
88816d032b6c046d0ac87fe258ddcd5f2fd863ba | 126 | py | Python | __root__.py | mrandybu/envapi | a8dfe9911f40e6a46fca1100e49f539f821d7f20 | [
"Apache-2.0"
] | null | null | null | __root__.py | mrandybu/envapi | a8dfe9911f40e6a46fca1100e49f539f821d7f20 | [
"Apache-2.0"
] | null | null | null | __root__.py | mrandybu/envapi | a8dfe9911f40e6a46fca1100e49f539f821d7f20 | [
"Apache-2.0"
] | null | null | null | import os
def get_root_path(file):
path_to_file = os.path.join(os.path.dirname(__file__), file)
return path_to_file
| 18 | 64 | 0.738095 | 22 | 126 | 3.772727 | 0.5 | 0.144578 | 0.240964 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15873 | 126 | 6 | 65 | 21 | 0.783019 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 1 | 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 | 1 | 0 | 0 | 5 |
88b1156faa5fedeaaa072bee6b4e86ad2886f598 | 122 | py | Python | enigma-torch/image/internal/_validate.py | heytanay/enigma-torch | 0e595cd7adba84757aa1f448e8b3c72a09cb1fa2 | [
"MIT"
] | 1 | 2021-05-05T14:09:47.000Z | 2021-05-05T14:09:47.000Z | enigma-torch/image/internal/_validate.py | heytanay/enigma-torch | 0e595cd7adba84757aa1f448e8b3c72a09cb1fa2 | [
"MIT"
] | null | null | null | enigma-torch/image/internal/_validate.py | heytanay/enigma-torch | 0e595cd7adba84757aa1f448e8b3c72a09cb1fa2 | [
"MIT"
] | null | null | null | def _validRoutine(*args, **kwargs):
"""Main validation function for image classification / regression
"""
pass | 30.5 | 69 | 0.688525 | 12 | 122 | 6.916667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.196721 | 122 | 4 | 70 | 30.5 | 0.846939 | 0.508197 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 5 |
31f66b2e1411e45117f1de5e1d1b2050acf31a03 | 2,365 | py | Python | helpers/vaishnadb.py | daniel-sjkdm/VaishnavismNotifyTBot | fafedb4d26f50d991cd679447c4ac78bef470c0a | [
"MIT"
] | null | null | null | helpers/vaishnadb.py | daniel-sjkdm/VaishnavismNotifyTBot | fafedb4d26f50d991cd679447c4ac78bef470c0a | [
"MIT"
] | null | null | null | helpers/vaishnadb.py | daniel-sjkdm/VaishnavismNotifyTBot | fafedb4d26f50d991cd679447c4ac78bef470c0a | [
"MIT"
] | null | null | null | import os
import psycopg2
class VaishnaDB:
dbname = os.getenv('PGDATABASE')
host = os.getenv('PGHOST')
user = os.getenv('PGUSER')
password = os.getenv('PGPASSWORD')
port = os.getenv('PGPORT')
def get_db_connection(self):
conn = psycopg2.connect(
dbname=self.dbname,
host=self.host,
user=self.user,
password=self.password,
port=self.port
)
if conn.status == 1:
return conn
else:
raise Exception("Connection failed")
def get_iskcon_events(self, data, fetch_by):
with self.get_db_connection() as conn:
with conn.cursor() as cursor:
if fetch_by == "year":
cursor.execute("SELECT * FROM iskcon_event WHERE event_date::TEXT LIKE %(year)s", {"year": f"{data}%"})
return cursor.fetchall()
elif fetch_by == "month":
cursor.execute("SELECT * FROM iskcon_event WHERE event_date::TEXT LIKE %(month)s", {"month": f"%-{data}-%"})
return cursor.fetchall()
else:
cursor.execute("SELECT * FROM iskcon_event WHERE event_date::TEXT LIKE %(yearmonth)s", {"yearmonth": f"{data[0]}-{data[1]}-%"})
return cursor.fetchall()
def get_ekadasi_events(self, data, fetch_by):
with self.get_db_connection() as conn:
with conn.cursor() as cursor:
if fetch_by == "year":
cursor.execute("""SELECT * FROM ekadasi_date JOIN ekadasi
ON ekadasi_date.ekadasi_id=ekadasi.id WHERE event_date::TEXT LIKE %(year)s""", {"year": f"{data}%"})
return cursor.fetchall()
elif fetch_by == "month":
cursor.execute("""SELECT * FROM ekadasi_date JOIN ekadasi
ON ekadasi.id=ekadasi_date.ekadasi_id WHERE event_date::TEXT LIKE %(month)s""", {"month": f"%-{data}-%"})
return cursor.fetchall()
else:
cursor.execute("""SELECT * FROM ekadasi_date JOIN ekadasi
ON ekadasi.id=ekadasi_date.ekadasi_id WHERE event_date::TEXT LIKE %(yearmonth)s""", {"yearmonth": f"{data[0]}-{data[1]}-%"})
return cursor.fetchall() | 41.491228 | 147 | 0.541649 | 265 | 2,365 | 4.70566 | 0.222642 | 0.033681 | 0.091419 | 0.110666 | 0.72093 | 0.72093 | 0.72093 | 0.713713 | 0.713713 | 0.713713 | 0 | 0.004422 | 0.330655 | 2,365 | 57 | 148 | 41.491228 | 0.783323 | 0 | 0 | 0.425532 | 0 | 0 | 0.333474 | 0.060862 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06383 | false | 0.042553 | 0.042553 | 0 | 0.382979 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 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 | 5 |
ee69d54163b11f748208baae935fd4b64aff7423 | 15,447 | py | Python | randomgen/tests/test_direct.py | bduvenhage/randomgen | a507df296561d2d94b1ac4a12e9a3d44e10cb489 | [
"NCSA"
] | null | null | null | randomgen/tests/test_direct.py | bduvenhage/randomgen | a507df296561d2d94b1ac4a12e9a3d44e10cb489 | [
"NCSA"
] | null | null | null | randomgen/tests/test_direct.py | bduvenhage/randomgen | a507df296561d2d94b1ac4a12e9a3d44e10cb489 | [
"NCSA"
] | null | null | null | import os
import sys
from os.path import join
import numpy as np
from numpy.testing import assert_equal, assert_allclose, assert_array_equal, \
assert_raises
import pytest
from randomgen import RandomGenerator, MT19937, DSFMT, ThreeFry32, ThreeFry, \
PCG32, PCG64, Philox, Xoroshiro128, Xorshift1024, Xoshiro256StarStar, \
Xoshiro512StarStar
if (sys.version_info > (3, 0)):
long = int
pwd = os.path.dirname(os.path.abspath(__file__))
def uniform32_from_uint64(x):
x = np.uint64(x)
upper = np.array(x >> np.uint64(32), dtype=np.uint32)
lower = np.uint64(0xffffffff)
lower = np.array(x & lower, dtype=np.uint32)
joined = np.column_stack([lower, upper]).ravel()
out = (joined >> np.uint32(9)) * (1.0 / 2 ** 23)
return out.astype(np.float32)
def uniform32_from_uint63(x):
x = np.uint64(x)
x = np.uint32(x >> np.uint64(32))
out = (x >> np.uint32(9)) * (1.0 / 2 ** 23)
return out.astype(np.float32)
def uniform32_from_uint53(x):
x = np.uint64(x) >> np.uint64(16)
x = np.uint32(x & np.uint64(0xffffffff))
out = (x >> np.uint32(9)) * (1.0 / 2 ** 23)
return out.astype(np.float32)
def uniform32_from_uint32(x):
return (x >> np.uint32(9)) * (1.0 / 2 ** 23)
def uniform32_from_uint(x, bits):
if bits == 64:
return uniform32_from_uint64(x)
elif bits == 63:
return uniform32_from_uint63(x)
elif bits == 53:
return uniform32_from_uint53(x)
elif bits == 32:
return uniform32_from_uint32(x)
else:
raise NotImplementedError
def uniform_from_uint(x, bits):
if bits in (64, 63, 53):
return uniform_from_uint64(x)
elif bits == 32:
return uniform_from_uint32(x)
def uniform_from_uint64(x):
return (x >> np.uint64(11)) * (1.0 / 9007199254740992.0)
def uniform_from_uint32(x):
out = np.empty(len(x) // 2)
for i in range(0, len(x), 2):
a = x[i] >> 5
b = x[i + 1] >> 6
out[i // 2] = (a * 67108864.0 + b) / 9007199254740992.0
return out
def uint64_from_uint63(x):
out = np.empty(len(x) // 2, dtype=np.uint64)
for i in range(0, len(x), 2):
a = x[i] & np.uint64(0xffffffff00000000)
b = x[i + 1] >> np.uint64(32)
out[i // 2] = a | b
return out
def uniform_from_dsfmt(x):
return x.view(np.double) - 1.0
def gauss_from_uint(x, n, bits):
if bits in (64, 63):
doubles = uniform_from_uint64(x)
elif bits == 32:
doubles = uniform_from_uint32(x)
elif bits == 'dsfmt':
doubles = uniform_from_dsfmt(x)
gauss = []
loc = 0
x1 = x2 = 0.0
while len(gauss) < n:
r2 = 2
while r2 >= 1.0 or r2 == 0.0:
x1 = 2.0 * doubles[loc] - 1.0
x2 = 2.0 * doubles[loc + 1] - 1.0
r2 = x1 * x1 + x2 * x2
loc += 2
f = np.sqrt(-2.0 * np.log(r2) / r2)
gauss.append(f * x2)
gauss.append(f * x1)
return gauss[:n]
class Base(object):
dtype = np.uint64
data2 = data1 = {}
@classmethod
def setup_class(cls):
cls.brng = Xoroshiro128
cls.bits = 64
cls.dtype = np.uint64
cls.seed_error_type = TypeError
@classmethod
def _read_csv(cls, filename):
with open(filename) as csv:
seed = csv.readline()
seed = seed.split(',')
seed = [long(s.strip(), 0) for s in seed[1:]]
data = []
for line in csv:
data.append(long(line.split(',')[-1].strip(), 0))
return {'seed': seed, 'data': np.array(data, dtype=cls.dtype)}
def test_raw(self):
rs = RandomGenerator(self.brng(*self.data1['seed']))
uints = rs.random_raw(1000)
assert_equal(uints, self.data1['data'])
rs = RandomGenerator(self.brng(*self.data2['seed']))
uints = rs.random_raw(1000)
assert_equal(uints, self.data2['data'])
@pytest.mark.skip(reason='Polar transform no longer supported')
def test_gauss_inv(self):
n = 25
rs = RandomGenerator(self.brng(*self.data1['seed']))
gauss = rs.standard_normal(n)
assert_allclose(gauss,
gauss_from_uint(self.data1['data'], n, self.bits))
rs = RandomGenerator(self.brng(*self.data2['seed']))
gauss = rs.standard_normal(25)
assert_allclose(gauss,
gauss_from_uint(self.data2['data'], n, self.bits))
def test_uniform_double(self):
rs = RandomGenerator(self.brng(*self.data1['seed']))
vals = uniform_from_uint(self.data1['data'], self.bits)
uniforms = rs.random_sample(len(vals))
assert_allclose(uniforms, vals)
assert_equal(uniforms.dtype, np.float64)
rs = RandomGenerator(self.brng(*self.data2['seed']))
vals = uniform_from_uint(self.data2['data'], self.bits)
uniforms = rs.random_sample(len(vals))
assert_allclose(uniforms, vals)
assert_equal(uniforms.dtype, np.float64)
def test_uniform_float(self):
rs = RandomGenerator(self.brng(*self.data1['seed']))
vals = uniform32_from_uint(self.data1['data'], self.bits)
uniforms = rs.random_sample(len(vals), dtype=np.float32)
assert_allclose(uniforms, vals)
assert_equal(uniforms.dtype, np.float32)
rs = RandomGenerator(self.brng(*self.data2['seed']))
vals = uniform32_from_uint(self.data2['data'], self.bits)
uniforms = rs.random_sample(len(vals), dtype=np.float32)
assert_allclose(uniforms, vals)
assert_equal(uniforms.dtype, np.float32)
def test_seed_float(self):
# GH #82
rs = RandomGenerator(self.brng(*self.data1['seed']))
assert_raises(self.seed_error_type, rs.seed, np.pi)
assert_raises(self.seed_error_type, rs.seed, -np.pi)
def test_seed_float_array(self):
# GH #82
rs = RandomGenerator(self.brng(*self.data1['seed']))
assert_raises(self.seed_error_type, rs.seed, np.array([np.pi]))
assert_raises(self.seed_error_type, rs.seed, np.array([-np.pi]))
assert_raises(ValueError, rs.seed, np.array([np.pi, -np.pi]))
assert_raises(TypeError, rs.seed, np.array([0, np.pi]))
assert_raises(TypeError, rs.seed, [np.pi])
assert_raises(TypeError, rs.seed, [0, np.pi])
def test_seed_out_of_range(self):
# GH #82
rs = RandomGenerator(self.brng(*self.data1['seed']))
assert_raises(ValueError, rs.seed, 2 ** (2 * self.bits + 1))
assert_raises(ValueError, rs.seed, -1)
def test_seed_out_of_range_array(self):
# GH #82
rs = RandomGenerator(self.brng(*self.data1['seed']))
assert_raises(ValueError, rs.seed, [2 ** (2 * self.bits + 1)])
assert_raises(ValueError, rs.seed, [-1])
class TestXoroshiro128(Base):
@classmethod
def setup_class(cls):
cls.brng = Xoroshiro128
cls.bits = 64
cls.dtype = np.uint64
cls.data1 = cls._read_csv(
join(pwd, './data/xoroshiro128-testset-1.csv'))
cls.data2 = cls._read_csv(
join(pwd, './data/xoroshiro128-testset-2.csv'))
cls.seed_error_type = TypeError
class TestXoshiro256StarStar(Base):
@classmethod
def setup_class(cls):
cls.brng = Xoshiro256StarStar
cls.bits = 64
cls.dtype = np.uint64
cls.data1 = cls._read_csv(
join(pwd, './data/xoshiro256starstar-testset-1.csv'))
cls.data2 = cls._read_csv(
join(pwd, './data/xoshiro256starstar-testset-2.csv'))
cls.seed_error_type = TypeError
class TestXoshiro512StarStar(Base):
@classmethod
def setup_class(cls):
cls.brng = Xoshiro512StarStar
cls.bits = 64
cls.dtype = np.uint64
cls.data1 = cls._read_csv(
join(pwd, './data/xoshiro512starstar-testset-1.csv'))
cls.data2 = cls._read_csv(
join(pwd, './data/xoshiro512starstar-testset-2.csv'))
cls.seed_error_type = TypeError
class TestXorshift1024(Base):
@classmethod
def setup_class(cls):
cls.brng = Xorshift1024
cls.bits = 64
cls.dtype = np.uint64
cls.data1 = cls._read_csv(
join(pwd, './data/xorshift1024-testset-1.csv'))
cls.data2 = cls._read_csv(
join(pwd, './data/xorshift1024-testset-2.csv'))
cls.seed_error_type = TypeError
class TestThreeFry(Base):
@classmethod
def setup_class(cls):
cls.brng = ThreeFry
cls.bits = 64
cls.dtype = np.uint64
cls.data1 = cls._read_csv(
join(pwd, './data/threefry-testset-1.csv'))
cls.data2 = cls._read_csv(
join(pwd, './data/threefry-testset-2.csv'))
cls.seed_error_type = TypeError
class TestPCG64(Base):
@classmethod
def setup_class(cls):
cls.brng = PCG64
cls.bits = 64
cls.dtype = np.uint64
cls.data1 = cls._read_csv(join(pwd, './data/pcg64-testset-1.csv'))
cls.data2 = cls._read_csv(join(pwd, './data/pcg64-testset-2.csv'))
cls.seed_error_type = TypeError
def test_seed_float_array(self):
rs = RandomGenerator(self.brng(*self.data1['seed']))
assert_raises(self.seed_error_type, rs.seed, np.array([np.pi]))
assert_raises(self.seed_error_type, rs.seed, np.array([-np.pi]))
assert_raises(self.seed_error_type, rs.seed, np.array([np.pi, -np.pi]))
assert_raises(self.seed_error_type, rs.seed, np.array([0, np.pi]))
assert_raises(self.seed_error_type, rs.seed, [np.pi])
assert_raises(self.seed_error_type, rs.seed, [0, np.pi])
def test_seed_out_of_range_array(self):
rs = RandomGenerator(self.brng(*self.data1['seed']))
assert_raises(self.seed_error_type, rs.seed,
[2 ** (2 * self.bits + 1)])
assert_raises(self.seed_error_type, rs.seed, [-1])
class TestPhilox(Base):
@classmethod
def setup_class(cls):
cls.brng = Philox
cls.bits = 64
cls.dtype = np.uint64
cls.data1 = cls._read_csv(
join(pwd, './data/philox-testset-1.csv'))
cls.data2 = cls._read_csv(
join(pwd, './data/philox-testset-2.csv'))
cls.seed_error_type = TypeError
class TestMT19937(Base):
@classmethod
def setup_class(cls):
cls.brng = MT19937
cls.bits = 32
cls.dtype = np.uint32
cls.data1 = cls._read_csv(join(pwd, './data/mt19937-testset-1.csv'))
cls.data2 = cls._read_csv(join(pwd, './data/mt19937-testset-2.csv'))
cls.seed_error_type = ValueError
def test_seed_out_of_range(self):
# GH #82
rs = RandomGenerator(self.brng(*self.data1['seed']))
assert_raises(ValueError, rs.seed, 2 ** (self.bits + 1))
assert_raises(ValueError, rs.seed, -1)
assert_raises(ValueError, rs.seed, 2 ** (2 * self.bits + 1))
def test_seed_out_of_range_array(self):
# GH #82
rs = RandomGenerator(self.brng(*self.data1['seed']))
assert_raises(ValueError, rs.seed, [2 ** (self.bits + 1)])
assert_raises(ValueError, rs.seed, [-1])
assert_raises(TypeError, rs.seed, [2 ** (2 * self.bits + 1)])
def test_seed_float(self):
# GH #82
rs = RandomGenerator(self.brng(*self.data1['seed']))
assert_raises(TypeError, rs.seed, np.pi)
assert_raises(TypeError, rs.seed, -np.pi)
def test_seed_float_array(self):
# GH #82
rs = RandomGenerator(self.brng(*self.data1['seed']))
assert_raises(TypeError, rs.seed, np.array([np.pi]))
assert_raises(TypeError, rs.seed, np.array([-np.pi]))
assert_raises(TypeError, rs.seed, np.array([np.pi, -np.pi]))
assert_raises(TypeError, rs.seed, np.array([0, np.pi]))
assert_raises(TypeError, rs.seed, [np.pi])
assert_raises(TypeError, rs.seed, [0, np.pi])
class TestDSFMT(Base):
@classmethod
def setup_class(cls):
cls.brng = DSFMT
cls.bits = 53
cls.dtype = np.uint64
cls.data1 = cls._read_csv(join(pwd, './data/dSFMT-testset-1.csv'))
cls.data2 = cls._read_csv(join(pwd, './data/dSFMT-testset-2.csv'))
cls.seed_error_type = TypeError
def test_uniform_double(self):
rs = RandomGenerator(self.brng(*self.data1['seed']))
assert_array_equal(uniform_from_dsfmt(self.data1['data']),
rs.random_sample(1000))
rs = RandomGenerator(self.brng(*self.data2['seed']))
assert_equal(uniform_from_dsfmt(self.data2['data']),
rs.random_sample(1000))
@pytest.mark.skip(reason='Polar transform no longer supported')
def test_gauss_inv(self):
n = 25
rs = RandomGenerator(self.brng(*self.data1['seed']))
gauss = rs.standard_normal(n)
assert_allclose(gauss,
gauss_from_uint(self.data1['data'], n, 'dsfmt'))
rs = RandomGenerator(self.brng(*self.data2['seed']))
gauss = rs.standard_normal(25)
assert_allclose(gauss,
gauss_from_uint(self.data2['data'], n, 'dsfmt'))
def test_seed_out_of_range_array(self):
# GH #82
rs = RandomGenerator(self.brng(*self.data1['seed']))
assert_raises(ValueError, rs.seed, [2 ** (self.bits + 1)])
assert_raises(ValueError, rs.seed, [-1])
assert_raises(TypeError, rs.seed, [2 ** (2 * self.bits + 1)])
def test_seed_float(self):
# GH #82
rs = RandomGenerator(self.brng(*self.data1['seed']))
assert_raises(TypeError, rs.seed, np.pi)
assert_raises(TypeError, rs.seed, -np.pi)
def test_seed_float_array(self):
# GH #82
rs = RandomGenerator(self.brng(*self.data1['seed']))
assert_raises(TypeError, rs.seed, np.array([np.pi]))
assert_raises(TypeError, rs.seed, np.array([-np.pi]))
assert_raises(TypeError, rs.seed, np.array([np.pi, -np.pi]))
assert_raises(TypeError, rs.seed, np.array([0, np.pi]))
assert_raises(TypeError, rs.seed, [np.pi])
assert_raises(TypeError, rs.seed, [0, np.pi])
def test_uniform_float(self):
rs = RandomGenerator(self.brng(*self.data1['seed']))
vals = uniform32_from_uint(self.data1['data'], self.bits)
uniforms = rs.random_sample(len(vals), dtype=np.float32)
assert_allclose(uniforms, vals)
assert_equal(uniforms.dtype, np.float32)
rs = RandomGenerator(self.brng(*self.data2['seed']))
vals = uniform32_from_uint(self.data2['data'], self.bits)
uniforms = rs.random_sample(len(vals), dtype=np.float32)
assert_allclose(uniforms, vals)
assert_equal(uniforms.dtype, np.float32)
class TestThreeFry32(Base):
@classmethod
def setup_class(cls):
cls.brng = ThreeFry32
cls.bits = 32
cls.dtype = np.uint32
cls.data1 = cls._read_csv(join(pwd, './data/threefry32-testset-1.csv'))
cls.data2 = cls._read_csv(join(pwd, './data/threefry32-testset-2.csv'))
cls.seed_error_type = TypeError
class TestPCG32(TestPCG64):
@classmethod
def setup_class(cls):
cls.brng = PCG32
cls.bits = 32
cls.dtype = np.uint32
cls.data1 = cls._read_csv(join(pwd, './data/pcg32-testset-1.csv'))
cls.data2 = cls._read_csv(join(pwd, './data/pcg32-testset-2.csv'))
cls.seed_error_type = TypeError
| 34.174779 | 79 | 0.608791 | 2,096 | 15,447 | 4.333969 | 0.08063 | 0.060766 | 0.062417 | 0.074306 | 0.803721 | 0.778732 | 0.765632 | 0.742074 | 0.662924 | 0.627587 | 0 | 0.054886 | 0.247491 | 15,447 | 451 | 80 | 34.250554 | 0.7266 | 0.004208 | 0 | 0.571031 | 0 | 0 | 0.060746 | 0.043883 | 0 | 0 | 0.002474 | 0 | 0.18663 | 1 | 0.122563 | false | 0 | 0.019499 | 0.008357 | 0.228412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 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 | 5 |
ee7cb17beb533ff6985cccb401daff810d6ea1c9 | 136 | py | Python | markdown/home.md.py | gnumber13/fastapi_webpage | 1d993a5e08ba3243c3c472b402234d42cec7f5e5 | [
"Apache-2.0"
] | null | null | null | markdown/home.md.py | gnumber13/fastapi_webpage | 1d993a5e08ba3243c3c472b402234d42cec7f5e5 | [
"Apache-2.0"
] | null | null | null | markdown/home.md.py | gnumber13/fastapi_webpage | 1d993a5e08ba3243c3c472b402234d42cec7f5e5 | [
"Apache-2.0"
] | null | null | null | # Home
## HTML
<img src="static/assets/venicequeen.svg">
## MD

This **is** another paragraph.
| 9.714286 | 41 | 0.661765 | 17 | 136 | 5.294118 | 0.764706 | 0.266667 | 0.511111 | 0.577778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147059 | 136 | 13 | 42 | 10.461538 | 0.775862 | 0.088235 | 0 | 0 | 0 | 0 | 0.252174 | 0.252174 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 0 | 0 | null | 1 | 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 | 5 |
c9e40e85fb192d7a72f680c8abe0857e2d3aa49f | 100 | py | Python | modelexp/experiments/__init__.py | DomiDre/modelexp | 1ec25f71e739dac27716f9a8637fa6ab067499b9 | [
"MIT"
] | null | null | null | modelexp/experiments/__init__.py | DomiDre/modelexp | 1ec25f71e739dac27716f9a8637fa6ab067499b9 | [
"MIT"
] | null | null | null | modelexp/experiments/__init__.py | DomiDre/modelexp | 1ec25f71e739dac27716f9a8637fa6ab067499b9 | [
"MIT"
] | null | null | null | from ._experiment import Experiment
from ._generic import Generic
from ._genericXy import GenericXy
| 25 | 35 | 0.85 | 12 | 100 | 6.833333 | 0.416667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12 | 100 | 3 | 36 | 33.333333 | 0.931818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
a012f3a6b138eeae95a9ffa3a372cd8b39d3c17f | 141 | py | Python | start.py | ammaraskar/Purdue-Laundry-API | cf57271082be9e073ff28e0fc96938b56e4e610e | [
"Apache-2.0"
] | 2 | 2016-06-10T14:42:04.000Z | 2017-07-10T10:43:32.000Z | start.py | ammaraskar/Purdue-Laundry-API | cf57271082be9e073ff28e0fc96938b56e4e610e | [
"Apache-2.0"
] | null | null | null | start.py | ammaraskar/Purdue-Laundry-API | cf57271082be9e073ff28e0fc96938b56e4e610e | [
"Apache-2.0"
] | null | null | null | from api_server import app
app.run(debug=app.config.get('DEBUG'),
port=app.config.get('PORT'),
host=app.config.get('HOST'))
| 23.5 | 38 | 0.64539 | 22 | 141 | 4.090909 | 0.5 | 0.3 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170213 | 141 | 5 | 39 | 28.2 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0.092199 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 1 | 1 | 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 | 5 |
4eaa022a6c814defca4d0f7602ee38b722e6d0e8 | 331 | py | Python | strikethrough_identification/src/__init__.py | RaphaelaHeil/strikethrough-removal-cyclegans | 91555b22cac6b6a379597aa94c23bdf02c9970a7 | [
"MIT"
] | 3 | 2021-08-30T12:37:14.000Z | 2022-02-09T16:07:14.000Z | strikethrough_identification/src/__init__.py | ektavats/strikethrough-removal-cyclegans | 35456619ff87fa010d2c161cff774af02142bae9 | [
"MIT"
] | null | null | null | strikethrough_identification/src/__init__.py | ektavats/strikethrough-removal-cyclegans | 35456619ff87fa010d2c161cff774af02142bae9 | [
"MIT"
] | 1 | 2022-01-25T10:30:54.000Z | 2022-01-25T10:30:54.000Z | from .configuration import ModelName, Configuration, getConfiguration
from .dataset import CleanStruckDataset
from .utils import PadToSize, composeTransformations, getModelByName
__all__ = ["ModelName", "Configuration", "getConfiguration", "PadToSize", "composeTransformations", "getModelByName",
"CleanStruckDataset"]
| 47.285714 | 117 | 0.797583 | 24 | 331 | 10.833333 | 0.5 | 0.169231 | 0.292308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111782 | 331 | 6 | 118 | 55.166667 | 0.884354 | 0 | 0 | 0 | 0 | 0 | 0.305136 | 0.066465 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 0.6 | 0 | 1 | 0 | 1 | null | 0 | 1 | 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 | 5 |
4eb4c88aa0283f0e69c0994ac666442d425663d9 | 160 | py | Python | hass_am43/version.py | jokke-ilujo/hass-am43-gw | 9c8b1591798d0ae9a38c2dcb3da70d64b2122191 | [
"Apache-2.0"
] | null | null | null | hass_am43/version.py | jokke-ilujo/hass-am43-gw | 9c8b1591798d0ae9a38c2dcb3da70d64b2122191 | [
"Apache-2.0"
] | null | null | null | hass_am43/version.py | jokke-ilujo/hass-am43-gw | 9c8b1591798d0ae9a38c2dcb3da70d64b2122191 | [
"Apache-2.0"
] | null | null | null | import pbr.version
version_info = pbr.version.VersionInfo('hass_am43')
version_string = version_info.version_string
def version():
return version_string
| 17.777778 | 51 | 0.8 | 21 | 160 | 5.809524 | 0.47619 | 0.319672 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014184 | 0.11875 | 160 | 8 | 52 | 20 | 0.851064 | 0 | 0 | 0 | 0 | 0 | 0.05625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.2 | 0.6 | 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 | 1 | 1 | 0 | 0 | 5 |
4ec1f84e2b28528ecb8891e8428a9b17f63743f8 | 36 | py | Python | edmunds/database/drivers/postgresql.py | LowieHuyghe/edmunds-python | 236d087746cb8802a8854b2706b8d3ff009e9209 | [
"Apache-2.0"
] | 4 | 2017-09-07T13:39:50.000Z | 2018-05-31T16:14:50.000Z | edmunds/database/drivers/postgresql.py | LowieHuyghe/edmunds-python | 236d087746cb8802a8854b2706b8d3ff009e9209 | [
"Apache-2.0"
] | 103 | 2017-03-19T15:58:21.000Z | 2018-07-11T20:36:17.000Z | edmunds/database/drivers/postgresql.py | LowieHuyghe/edmunds-python | 236d087746cb8802a8854b2706b8d3ff009e9209 | [
"Apache-2.0"
] | 2 | 2017-10-14T15:20:11.000Z | 2018-04-20T09:55:44.000Z |
class PostgreSql(object):
pass
| 9 | 25 | 0.694444 | 4 | 36 | 6.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 36 | 3 | 26 | 12 | 0.892857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 5 |
14e6481674c2519d1ec9754507e6766b41bfe6e2 | 195 | py | Python | Het Toolkit/HetKit_BETA_June_2020/lib/rotation.py | michaelcolman/Sub_cellular_heterogeneity_TOOLKIT | 24c90150429a39159e3ebed654d7ef43260a5aff | [
"CC0-1.0"
] | null | null | null | Het Toolkit/HetKit_BETA_June_2020/lib/rotation.py | michaelcolman/Sub_cellular_heterogeneity_TOOLKIT | 24c90150429a39159e3ebed654d7ef43260a5aff | [
"CC0-1.0"
] | null | null | null | Het Toolkit/HetKit_BETA_June_2020/lib/rotation.py | michaelcolman/Sub_cellular_heterogeneity_TOOLKIT | 24c90150429a39159e3ebed654d7ef43260a5aff | [
"CC0-1.0"
] | null | null | null | import numpy as np
import imutils
def rotate_data(data, angle):
rotated_data = np.asarray(data, dtype = "uint8")
rotated_data = imutils.rotate_bound(rotated_data, angle)
return rotated_data
| 21.666667 | 57 | 0.779487 | 29 | 195 | 5.034483 | 0.517241 | 0.30137 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005917 | 0.133333 | 195 | 8 | 58 | 24.375 | 0.857988 | 0 | 0 | 0 | 0 | 0 | 0.025641 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 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 | 1 | 0 | 1 | 0 | 0 | 5 |
14e77f50b742d519f1e176fa7a81ea42b22757bc | 142 | py | Python | Lower-case Characters.py | MrAnonymous5635/CSCircles | 010ac82942c88da357e214ea5462ec378f3667b8 | [
"MIT"
] | 17 | 2018-09-19T09:44:33.000Z | 2022-01-17T15:17:11.000Z | Lower-case Characters.py | MrAnonymous5635/CSCircles | 010ac82942c88da357e214ea5462ec378f3667b8 | [
"MIT"
] | 2 | 2020-02-24T15:28:33.000Z | 2021-11-16T00:04:52.000Z | Lower-case Characters.py | MrAnonymous5635/CSCircles | 010ac82942c88da357e214ea5462ec378f3667b8 | [
"MIT"
] | 8 | 2020-02-20T00:02:06.000Z | 2022-01-06T17:25:51.000Z | def lowerChar(char):
if ord(char) >= ord('A') and ord(char) <= ord('Z'):
return chr(ord(char) + 32)
else:
return char
| 23.666667 | 55 | 0.528169 | 21 | 142 | 3.571429 | 0.571429 | 0.28 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019802 | 0.288732 | 142 | 5 | 56 | 28.4 | 0.722772 | 0 | 0 | 0 | 0 | 0 | 0.014085 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 1 | 1 | 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 | 5 |
14f9ede0a644d896c1f2187412a0a98646c761ac | 110 | py | Python | src/math_bot/model/__init__.py | AlinGeorgescu/Math-Bot | bf9d2a9c373bd85574a11c11e33526c46723df01 | [
"MIT"
] | 3 | 2021-06-01T16:10:18.000Z | 2021-08-06T00:37:14.000Z | src/math_bot/model/__init__.py | AlinGeorgescu/Math-Bot | bf9d2a9c373bd85574a11c11e33526c46723df01 | [
"MIT"
] | null | null | null | src/math_bot/model/__init__.py | AlinGeorgescu/Math-Bot | bf9d2a9c373bd85574a11c11e33526c46723df01 | [
"MIT"
] | null | null | null | import nltk
nltk.download('punkt')
nltk.download('stopwords')
nltk.download('wordnet')
from .model import *
| 13.75 | 26 | 0.745455 | 14 | 110 | 5.857143 | 0.571429 | 0.439024 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 110 | 7 | 27 | 15.714286 | 0.828283 | 0 | 0 | 0 | 0 | 0 | 0.190909 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 0.4 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
093d862aa157287f381222d1306d67a4011db17c | 136 | py | Python | MD5-Brute-Force/__init__.py | RGCTech-Dev/MD5-Brute-Force | 23728b493eae2a0ed2e246631db4d3db4e473599 | [
"MIT"
] | null | null | null | MD5-Brute-Force/__init__.py | RGCTech-Dev/MD5-Brute-Force | 23728b493eae2a0ed2e246631db4d3db4e473599 | [
"MIT"
] | null | null | null | MD5-Brute-Force/__init__.py | RGCTech-Dev/MD5-Brute-Force | 23728b493eae2a0ed2e246631db4d3db4e473599 | [
"MIT"
] | null | null | null | from package.Filename import Classname
from MyLib.File1 import ClassA, ClassB, ClassC
from MyLib.File2 import ClassX, ClassY, ClassZ
| 34 | 47 | 0.808824 | 19 | 136 | 5.789474 | 0.736842 | 0.163636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017094 | 0.139706 | 136 | 3 | 48 | 45.333333 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
118877d552c8458667371ee1873cf85eb72464b7 | 103 | py | Python | Utilities/VTKPythonWrapping/paraview/vtk/io.py | utkarshayachit/ParaView | 7bbb2aa16fdef9cfbcf4a3786cad905d6770771b | [
"BSD-3-Clause"
] | 1 | 2021-07-31T19:38:03.000Z | 2021-07-31T19:38:03.000Z | Utilities/VTKPythonWrapping/paraview/vtk/io.py | utkarshayachit/ParaView | 7bbb2aa16fdef9cfbcf4a3786cad905d6770771b | [
"BSD-3-Clause"
] | null | null | null | Utilities/VTKPythonWrapping/paraview/vtk/io.py | utkarshayachit/ParaView | 7bbb2aa16fdef9cfbcf4a3786cad905d6770771b | [
"BSD-3-Clause"
] | 2 | 2019-01-22T19:51:40.000Z | 2021-07-31T19:38:05.000Z | import os
if os.name == "posix":
from libvtkIOPython import *
else:
from vtkIOPython import *
| 14.714286 | 32 | 0.679612 | 13 | 103 | 5.384615 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.23301 | 103 | 6 | 33 | 17.166667 | 0.886076 | 0 | 0 | 0 | 0 | 0 | 0.048544 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.6 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
11b57a71c95826bf8bed4753948e8540cc72153a | 37 | py | Python | malware-detection-machine-learning-approach/log/start/dbcreate.py | KUDANDOU/HIT-400-CODE | f06382baa2d6250d127710069a615d99e47bb508 | [
"MIT"
] | null | null | null | malware-detection-machine-learning-approach/log/start/dbcreate.py | KUDANDOU/HIT-400-CODE | f06382baa2d6250d127710069a615d99e47bb508 | [
"MIT"
] | null | null | null | malware-detection-machine-learning-approach/log/start/dbcreate.py | KUDANDOU/HIT-400-CODE | f06382baa2d6250d127710069a615d99e47bb508 | [
"MIT"
] | null | null | null | from app import db
db.create_all() | 7.4 | 18 | 0.72973 | 7 | 37 | 3.714286 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.189189 | 37 | 5 | 19 | 7.4 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
11faf0a060760acce682a62ea960c8b767027edc | 151 | py | Python | dried_ice/__init__.py | ThePaladinsForge/dry-ice-example | 1d4c6e1805ecf9fa15c2e2e1e991665d55298b5d | [
"MIT"
] | null | null | null | dried_ice/__init__.py | ThePaladinsForge/dry-ice-example | 1d4c6e1805ecf9fa15c2e2e1e991665d55298b5d | [
"MIT"
] | null | null | null | dried_ice/__init__.py | ThePaladinsForge/dry-ice-example | 1d4c6e1805ecf9fa15c2e2e1e991665d55298b5d | [
"MIT"
] | null | null | null | # Generated by slice2py - DO NOT EDIT!
#
import Ice
Ice.updateModule("dried_ice")
# Modules:
import DI_hello_world_ice
# Submodules:
import example
| 12.583333 | 38 | 0.761589 | 21 | 151 | 5.285714 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007813 | 0.152318 | 151 | 11 | 39 | 13.727273 | 0.859375 | 0.377483 | 0 | 0 | 1 | 0 | 0.101124 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.75 | 0 | 0.75 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
11ffe10c50857cd89bccca32274d488af57e3b16 | 115 | py | Python | common/__init__.py | fengshukun/kcweb | 313bce537818f0152a363101c91bf2eed50e9502 | [
"MIT"
] | null | null | null | common/__init__.py | fengshukun/kcweb | 313bce537818f0152a363101c91bf2eed50e9502 | [
"MIT"
] | null | null | null | common/__init__.py | fengshukun/kcweb | 313bce537818f0152a363101c91bf2eed50e9502 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from . autoload import *
from . import globals
from . import session
from . import request
| 19.166667 | 24 | 0.686957 | 15 | 115 | 5.266667 | 0.6 | 0.379747 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010753 | 0.191304 | 115 | 5 | 25 | 23 | 0.83871 | 0.182609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
eeb4a0f5aea47474b12ac2e5c7e18c66b68ca907 | 179 | py | Python | problems/odd-occuring-element/odd-occuring-element.py | vidyadeepa/the-coding-interview | 90171b77b6884176a6c28bdccb5d45bd6929b489 | [
"MIT"
] | 1,571 | 2015-12-09T14:08:47.000Z | 2022-03-30T21:34:36.000Z | problems/odd-occuring-element/odd-occuring-element.py | vidyadeepa/the-coding-interview | 90171b77b6884176a6c28bdccb5d45bd6929b489 | [
"MIT"
] | 117 | 2015-10-22T05:59:19.000Z | 2021-09-17T00:14:38.000Z | problems/odd-occuring-element/odd-occuring-element.py | vidyadeepa/the-coding-interview | 90171b77b6884176a6c28bdccb5d45bd6929b489 | [
"MIT"
] | 452 | 2015-10-21T23:00:58.000Z | 2022-03-18T21:16:50.000Z | def odd_occuring_element(l):
result = 0
for i in l:
result ^= i
return result
print odd_occuring_element([1,1,2,2,3])
print odd_occuring_element([1,2,1,2,2])
| 19.888889 | 39 | 0.653631 | 33 | 179 | 3.363636 | 0.454545 | 0.297297 | 0.486486 | 0.414414 | 0.432432 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078571 | 0.217877 | 179 | 8 | 40 | 22.375 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.285714 | 0 | 0 | 0 | null | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
eec1a34939a6036f6bce0863039e76c09dbe252a | 146 | py | Python | docs_src/annotations/Pagination_tutorial.py | ta4tsering/openpecha-toolkit | ff24b4813fb8146a4327e746e4024890b6807bea | [
"Apache-2.0"
] | 1 | 2020-01-28T05:10:14.000Z | 2020-01-28T05:10:14.000Z | docs_src/annotations/Pagination_tutorial.py | ta4tsering/openpecha-toolkit | ff24b4813fb8146a4327e746e4024890b6807bea | [
"Apache-2.0"
] | 38 | 2019-11-12T10:49:25.000Z | 2021-04-07T12:10:24.000Z | docs_src/annotations/Pagination_tutorial.py | OpenPecha/openpecha | 73359686e2b3a703c6018aecbffe7adb4f485c88 | [
"Apache-2.0"
] | 6 | 2019-11-14T12:30:35.000Z | 2020-05-12T01:50:13.000Z | from openpecha.core.annotations import Pagination, Span
pagination = Pagination(span=Span(start=10, end=30))
assert pagination.span.start == 10
| 24.333333 | 55 | 0.787671 | 20 | 146 | 5.75 | 0.6 | 0.365217 | 0.191304 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045802 | 0.10274 | 146 | 5 | 56 | 29.2 | 0.832061 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 1 | 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 | 5 |
eed885dd64a8aa742cb60e550a633c14c087cf7c | 57 | py | Python | homework/HW3/HW3-final/P2B.py | TangJiahui/cs107_system_devlopment | c46d7769683d9be0c31973e3b0666e3fe2a4099b | [
"MIT"
] | null | null | null | homework/HW3/HW3-final/P2B.py | TangJiahui/cs107_system_devlopment | c46d7769683d9be0c31973e3b0666e3fe2a4099b | [
"MIT"
] | null | null | null | homework/HW3/HW3-final/P2B.py | TangJiahui/cs107_system_devlopment | c46d7769683d9be0c31973e3b0666e3fe2a4099b | [
"MIT"
] | 1 | 2021-09-21T16:28:51.000Z | 2021-09-21T16:28:51.000Z | from Regression import Regression as reg
print(dir(reg)) | 19 | 40 | 0.807018 | 9 | 57 | 5.111111 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122807 | 57 | 3 | 41 | 19 | 0.92 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 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 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 5 |
eedb2e24c39bca1712fa1916697a3d602baec343 | 119 | py | Python | 24. Exam Prep/exam_22aug/project/people/child.py | elenaborisova/Python-OOP | 584882c08f84045b12322917f0716c7c7bd9befc | [
"MIT"
] | 1 | 2021-03-27T16:56:30.000Z | 2021-03-27T16:56:30.000Z | 24. Exam Prep/exam_22aug/project/people/child.py | elenaborisova/Python-OOP | 584882c08f84045b12322917f0716c7c7bd9befc | [
"MIT"
] | null | null | null | 24. Exam Prep/exam_22aug/project/people/child.py | elenaborisova/Python-OOP | 584882c08f84045b12322917f0716c7c7bd9befc | [
"MIT"
] | 1 | 2021-03-15T14:50:39.000Z | 2021-03-15T14:50:39.000Z | class Child:
def __init__(self, food_cost: int, *toys_cost):
self.cost = sum([*toys_cost, food_cost]) * 30
| 29.75 | 53 | 0.647059 | 18 | 119 | 3.833333 | 0.611111 | 0.231884 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021277 | 0.210084 | 119 | 3 | 54 | 39.666667 | 0.712766 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 5 |
0103b0ff6ba0c52dc135aa20e1239ec84be83bfc | 8,310 | py | Python | frontend/web/grant_applications/tests/test_manual_company_details_view.py | uktrade/trade-access-program | 8fb565e96de7d7bb0bde31255aef0f291063e93c | [
"MIT"
] | 1 | 2021-03-04T15:24:12.000Z | 2021-03-04T15:24:12.000Z | frontend/web/grant_applications/tests/test_manual_company_details_view.py | uktrade/trade-access-program | 8fb565e96de7d7bb0bde31255aef0f291063e93c | [
"MIT"
] | 7 | 2020-08-24T13:27:02.000Z | 2021-06-09T18:42:31.000Z | frontend/web/grant_applications/tests/test_manual_company_details_view.py | uktrade/trade-access-program | 8fb565e96de7d7bb0bde31255aef0f291063e93c | [
"MIT"
] | 1 | 2021-05-20T07:40:00.000Z | 2021-05-20T07:40:00.000Z | from unittest.mock import patch
from django.urls import reverse
from web.grant_applications.forms import ManualCompanyDetailsForm
from web.grant_applications.services import BackofficeService
from web.grant_applications.views import ManualCompanyDetailsView
from web.tests.factories.grant_application_link import GrantApplicationLinkFactory
from web.tests.helpers.backoffice_objects import FAKE_GRANT_APPLICATION, FAKE_COMPANY
from web.tests.helpers.testcases import BaseTestCase
@patch.object(BackofficeService, 'create_company', return_value=FAKE_COMPANY)
@patch.object(BackofficeService, 'get_grant_application', return_value=FAKE_GRANT_APPLICATION)
@patch.object(BackofficeService, 'update_grant_application', return_value=FAKE_GRANT_APPLICATION)
class TestManualCompanyDetailsView(BaseTestCase):
def setUp(self):
super().setUp()
self.gal = GrantApplicationLinkFactory()
self.url = reverse('grant-applications:manual-company-details', args=(self.gal.pk,))
def test_get_template(self, *mocks):
response = self.client.get(self.url)
self.assertEqual(response.status_code, 200)
self.assertTemplateUsed(response, ManualCompanyDetailsView.template_name)
def test_post(self, *mocks):
response = self.client.post(
self.url,
data={
'manual_company_type': ManualCompanyDetailsForm.CompanyType.LIMITED_COMPANY,
'manual_company_name': 'A Name',
'manual_company_address_line_1': 'Line 1',
'manual_company_address_line_2': 'Line 2',
'manual_company_address_town': 'Town 1',
'manual_company_address_county': 'County 1',
'manual_company_address_postcode': 'ZZ1 8ZZ',
'manual_time_trading_in_uk':
ManualCompanyDetailsForm.TimeTradingInUk.TWO_TO_FIVE_YEARS,
'manual_registration_number': '10000000',
'manual_vat_number': '123456789',
'manual_website': 'https://www.test.com'
}
)
self.assertRedirects(
response=response,
expected_url=reverse('grant-applications:company-details', args=(self.gal.pk,))
)
mocks[0].assert_called_once_with(
grant_application_id=str(self.gal.backoffice_grant_application_id),
manual_company_type=ManualCompanyDetailsForm.CompanyType.LIMITED_COMPANY.value,
manual_company_name='A Name',
manual_company_address_line_1='Line 1',
manual_company_address_line_2='Line 2',
manual_company_address_town='Town 1',
manual_company_address_county='County 1',
manual_company_address_postcode='ZZ1 8ZZ',
manual_time_trading_in_uk=ManualCompanyDetailsForm.TimeTradingInUk.TWO_TO_FIVE_YEARS,
manual_registration_number='10000000',
manual_vat_number='123456789',
manual_website='https://www.test.com',
company=None
)
def test_required_fields(self, *mocks):
response = self.client.post(self.url)
msg = self.form_msgs['required']
self.assertFormError(response, 'form', 'manual_company_type', msg)
self.assertFormError(response, 'form', 'manual_company_name', msg)
self.assertFormError(response, 'form', 'manual_company_address_line_1', msg)
self.assertFormError(response, 'form', 'manual_company_address_town', msg)
self.assertFormError(response, 'form', 'manual_company_address_county', msg)
self.assertFormError(response, 'form', 'manual_company_address_postcode', msg)
self.assertFormError(response, 'form', 'manual_time_trading_in_uk', msg)
def test_optional_fields(self, *mocks):
response = self.client.post(
self.url,
data={
'manual_company_type': ManualCompanyDetailsForm.CompanyType.LIMITED_COMPANY,
'manual_company_name': 'A Name',
'manual_company_address_line_1': 'Line 1',
'manual_company_address_line_2': 'Line 2',
'manual_company_address_town': 'Town 1',
'manual_company_address_county': 'County 1',
'manual_company_address_postcode': 'ZZ1 8ZZ',
'manual_time_trading_in_uk':
ManualCompanyDetailsForm.TimeTradingInUk.TWO_TO_FIVE_YEARS,
}
)
self.assertRedirects(
response=response,
expected_url=reverse('grant-applications:company-details', args=(self.gal.pk,))
)
mocks[0].assert_called_once_with(
grant_application_id=str(self.gal.backoffice_grant_application_id),
manual_company_type=ManualCompanyDetailsForm.CompanyType.LIMITED_COMPANY.value,
manual_company_name='A Name',
manual_company_address_line_1='Line 1',
manual_company_address_line_2='Line 2',
manual_company_address_town='Town 1',
manual_company_address_county='County 1',
manual_company_address_postcode='ZZ1 8ZZ',
manual_time_trading_in_uk=ManualCompanyDetailsForm.TimeTradingInUk.TWO_TO_FIVE_YEARS,
manual_registration_number=None,
manual_vat_number=None,
manual_website=None,
company=None
)
def test_get_redirects_to_confirmation_if_application_already_sent_for_review(self, *mocks):
fake_grant_application = FAKE_GRANT_APPLICATION.copy()
fake_grant_application['sent_for_review'] = True
mocks[1].return_value = fake_grant_application
response = self.client.get(self.url)
self.assertRedirects(
response, reverse('grant-applications:confirmation', args=(self.gal.pk,))
)
def test_get_redirects_to_ineligible_if_application_is_not_active(self, *mocks):
fake_grant_application = FAKE_GRANT_APPLICATION.copy()
fake_grant_application['is_eligible'] = False
mocks[1].return_value = fake_grant_application
response = self.client.get(self.url)
self.assertRedirects(response, reverse('grant-applications:ineligible'))
def test_post_redirects_to_ineligible_if_application_is_not_active(self, *mocks):
fake_grant_application = FAKE_GRANT_APPLICATION.copy()
fake_grant_application['is_eligible'] = False
mocks[1].return_value = fake_grant_application
response = self.client.post(self.url)
self.assertRedirects(response, reverse('grant-applications:ineligible'))
def test_get_does_not_redirect_to_ineligible_if_review_page_has_been_viewed(self, *mocks):
fake_grant_application = FAKE_GRANT_APPLICATION.copy()
fake_grant_application['is_eligible'] = False
mocks[1].return_value = fake_grant_application
self.gal.has_viewed_review_page = True
self.gal.save()
response = self.client.get(self.url)
self.assertEqual(response.status_code, 200)
self.assertTemplateUsed(response, ManualCompanyDetailsView.template_name)
def test_post_redirects_to_review_page_if_application_review_page_has_been_viewed(self, *mocks):
self.gal.has_viewed_review_page = True
self.gal.save()
response = self.client.post(
self.url,
data={
'manual_company_type': ManualCompanyDetailsForm.CompanyType.LIMITED_COMPANY,
'manual_company_name': 'A Name',
'manual_company_address_line_1': 'Line 1',
'manual_company_address_line_2': 'Line 2',
'manual_company_address_town': 'Town 1',
'manual_company_address_county': 'County 1',
'manual_company_address_postcode': 'ZZ1 8ZZ',
'manual_time_trading_in_uk':
ManualCompanyDetailsForm.TimeTradingInUk.TWO_TO_FIVE_YEARS,
'manual_registration_number': '10000000',
'manual_vat_number': '123456789',
'manual_website': 'https://www.test.com'
}
)
self.assertRedirects(
response,
reverse('grant-applications:application-review', args=(self.gal.pk,)),
fetch_redirect_response=False
)
| 48.313953 | 100 | 0.679422 | 895 | 8,310 | 5.929609 | 0.146369 | 0.102883 | 0.10929 | 0.059356 | 0.807236 | 0.794988 | 0.771246 | 0.725645 | 0.684944 | 0.675523 | 0 | 0.016265 | 0.230566 | 8,310 | 171 | 101 | 48.596491 | 0.813732 | 0 | 0 | 0.63871 | 0 | 0 | 0.192659 | 0.118291 | 0 | 0 | 0 | 0 | 0.122581 | 1 | 0.064516 | false | 0 | 0.051613 | 0 | 0.122581 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 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 | 5 |
0151f458fefc93ec08f165c4606fc091aea12d4d | 118 | py | Python | color.py | hiteshbedre/newx | 32b068bff2d921e6ca3ef19a1f468a94f15cfbea | [
"MIT"
] | 10 | 2020-07-16T06:27:48.000Z | 2022-03-19T08:52:10.000Z | color.py | hiteshbedre/newx | 32b068bff2d921e6ca3ef19a1f468a94f15cfbea | [
"MIT"
] | null | null | null | color.py | hiteshbedre/newx | 32b068bff2d921e6ca3ef19a1f468a94f15cfbea | [
"MIT"
] | 5 | 2020-10-03T17:42:28.000Z | 2022-02-11T00:50:41.000Z | class Color:
GAME_COLOR = (230, 230, 230)
WHITE = (255, 255, 255)
RED = (255, 0, 0)
BLACK = (0, 0, 0)
| 19.666667 | 32 | 0.5 | 19 | 118 | 3.052632 | 0.473684 | 0.103448 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.325 | 0.322034 | 118 | 5 | 33 | 23.6 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 5 |
01587c60603fdc928e0727f137e136221759e466 | 87 | py | Python | public/admin.py | vleclerc/raspibar | e7d089b74f0e6f1490cb2faacf5c9f79f51bbdc3 | [
"MIT"
] | null | null | null | public/admin.py | vleclerc/raspibar | e7d089b74f0e6f1490cb2faacf5c9f79f51bbdc3 | [
"MIT"
] | 1 | 2021-10-06T20:38:38.000Z | 2021-10-06T20:38:38.000Z | public/admin.py | vleclerc/raspibar | e7d089b74f0e6f1490cb2faacf5c9f79f51bbdc3 | [
"MIT"
] | 1 | 2019-12-28T19:13:22.000Z | 2019-12-28T19:13:22.000Z | #!/usr/bin/python
import sys, time, ntpath
import RPi.GPIO as GPIO
GPIO.readall();
| 10.875 | 24 | 0.701149 | 14 | 87 | 4.357143 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16092 | 87 | 7 | 25 | 12.428571 | 0.835616 | 0.183908 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
017f99ad9bdf452abc2bb6fbaf20dfe313593883 | 179 | py | Python | Programming Fundamentals/Lists Basix/strange_zoo.py | antonarnaudov/SoftUniProjects | 01cbdce2b350b57240045d1bc3e21d34f9d0351d | [
"MIT"
] | null | null | null | Programming Fundamentals/Lists Basix/strange_zoo.py | antonarnaudov/SoftUniProjects | 01cbdce2b350b57240045d1bc3e21d34f9d0351d | [
"MIT"
] | null | null | null | Programming Fundamentals/Lists Basix/strange_zoo.py | antonarnaudov/SoftUniProjects | 01cbdce2b350b57240045d1bc3e21d34f9d0351d | [
"MIT"
] | null | null | null | tail = input()
body = input()
head = input()
strange_animal = [tail, body, head]
strange_animal[0], strange_animal[2] = strange_animal[2], strange_animal[0]
print(strange_animal)
| 25.571429 | 75 | 0.73743 | 26 | 179 | 4.846154 | 0.346154 | 0.619048 | 0.222222 | 0.333333 | 0.325397 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025157 | 0.111732 | 179 | 6 | 76 | 29.833333 | 0.767296 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0 | 0 | null | 1 | 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 | 5 |
6d84a171bc3afc0be9bb8fb1a18db52a07823a57 | 285 | py | Python | robovat/policies/__init__.py | JosepLeder/CLKRobovat | a5a742ded2cf67aec3d58affda7a4f7b80182c85 | [
"MIT"
] | 1 | 2021-04-07T07:45:24.000Z | 2021-04-07T07:45:24.000Z | robovat/policies/__init__.py | JosepLeder/CLKRobovat | a5a742ded2cf67aec3d58affda7a4f7b80182c85 | [
"MIT"
] | null | null | null | robovat/policies/__init__.py | JosepLeder/CLKRobovat | a5a742ded2cf67aec3d58affda7a4f7b80182c85 | [
"MIT"
] | null | null | null | from .policy import Policy
from .random_policy import RandomPolicy
from .grasp_policy import AntipodalGrasp4DofPolicy
from .push_policy import HeuristicPushPolicy
from .pick_and_place_policy import RepeatedRandomGraspPolicy
from .cnn_grasp_policy.cnn_grasp_policy import CNNGraspPolicy | 47.5 | 61 | 0.894737 | 35 | 285 | 7 | 0.428571 | 0.293878 | 0.138776 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003817 | 0.080702 | 285 | 6 | 61 | 47.5 | 0.931298 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
6dc6c51f7c4da4e4b216679b2cc4351b57c7ef41 | 178 | py | Python | tests/test_0905.py | msztylko/2020ify-leetcoding | 4d3a9154bd0e516c09cb8564f451b4ba9632e404 | [
"MIT"
] | null | null | null | tests/test_0905.py | msztylko/2020ify-leetcoding | 4d3a9154bd0e516c09cb8564f451b4ba9632e404 | [
"MIT"
] | null | null | null | tests/test_0905.py | msztylko/2020ify-leetcoding | 4d3a9154bd0e516c09cb8564f451b4ba9632e404 | [
"MIT"
] | null | null | null | import ctypes
import pytest
c_lib = ctypes.CDLL('../solutions/0905-sort-parity/sort-parity.so')
@pytest.mark.skip(reason="Segmentation Fault")
def test_sort_parity():
pass
| 19.777778 | 67 | 0.752809 | 26 | 178 | 5.038462 | 0.730769 | 0.229008 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025 | 0.101124 | 178 | 8 | 68 | 22.25 | 0.79375 | 0 | 0 | 0 | 0 | 0 | 0.348315 | 0.247191 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.166667 | 0.333333 | 0 | 0.5 | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 5 |
6dc75a51c38c69bd9a8a48b74a42a61b76d4cc71 | 6,946 | py | Python | model.py | foamliu/Image-Impainting | 718682220d53489df80b413c2047ea06e5b17924 | [
"Apache-2.0"
] | 1 | 2021-04-04T17:56:11.000Z | 2021-04-04T17:56:11.000Z | model.py | foamliu/Image-Impainting | 718682220d53489df80b413c2047ea06e5b17924 | [
"Apache-2.0"
] | null | null | null | model.py | foamliu/Image-Impainting | 718682220d53489df80b413c2047ea06e5b17924 | [
"Apache-2.0"
] | null | null | null | import keras.backend as K
from keras.layers import Input, ZeroPadding2D, Conv2D, UpSampling2D, BatchNormalization, MaxPooling2D, Reshape, \
Concatenate
from keras.models import Model
from keras.utils import plot_model
from config import img_rows, img_cols, channel, kernel
from custom_layers.unpooling_layer import Unpooling
from utils import ensure_folder
def ensure_vgg_weights():
import os
if not os.path.isfile('models/vgg19_notop.h5'):
ensure_folder('models')
import urllib.request
urllib.request.urlretrieve(
"https://github.com/fchollet/deep-learning-models/releases/download/v0.1/vgg19_weights_tf_dim_ordering_tf_kernels_notop.h5",
filename="models/vgg19_notop.h5")
def build_model():
# Encoder
img_input = Input(shape=(img_rows, img_cols, channel))
x = ZeroPadding2D((1, 1))(img_input)
x = Conv2D(64, (3, 3), activation='relu', name='block1_conv1')(x)
x = ZeroPadding2D((1, 1))(x)
x = Conv2D(64, (3, 3), activation='relu', name='block1_conv2')(x)
orig_1 = x
x = MaxPooling2D((2, 2), strides=(2, 2))(x)
x = ZeroPadding2D((1, 1))(x)
x = Conv2D(128, (3, 3), activation='relu', name='block2_conv1')(x)
x = ZeroPadding2D((1, 1))(x)
x = Conv2D(128, (3, 3), activation='relu', name='block2_conv2')(x)
orig_2 = x
x = MaxPooling2D((2, 2), strides=(2, 2))(x)
x = ZeroPadding2D((1, 1))(x)
x = Conv2D(256, (3, 3), activation='relu', name='block3_conv1')(x)
x = ZeroPadding2D((1, 1))(x)
x = Conv2D(256, (3, 3), activation='relu', name='block3_conv2')(x)
x = ZeroPadding2D((1, 1))(x)
x = Conv2D(256, (3, 3), activation='relu', name='block3_conv3')(x)
x = ZeroPadding2D((1, 1))(x)
x = Conv2D(256, (3, 3), activation='relu', name='block3_conv4')(x)
orig_3 = x
x = MaxPooling2D((2, 2), strides=(2, 2))(x)
x = ZeroPadding2D((1, 1))(x)
x = Conv2D(512, (3, 3), activation='relu', name='block4_conv1')(x)
x = ZeroPadding2D((1, 1))(x)
x = Conv2D(512, (3, 3), activation='relu', name='block4_conv2')(x)
x = ZeroPadding2D((1, 1))(x)
x = Conv2D(512, (3, 3), activation='relu', name='block4_conv3')(x)
x = ZeroPadding2D((1, 1))(x)
x = Conv2D(512, (3, 3), activation='relu', name='block4_conv4')(x)
orig_4 = x
x = MaxPooling2D((2, 2), strides=(2, 2))(x)
x = ZeroPadding2D((1, 1))(x)
x = Conv2D(512, (3, 3), activation='relu', name='block5_conv1')(x)
x = ZeroPadding2D((1, 1))(x)
x = Conv2D(512, (3, 3), activation='relu', name='block5_conv2')(x)
x = ZeroPadding2D((1, 1))(x)
x = Conv2D(512, (3, 3), activation='relu', name='block5_conv3')(x)
x = ZeroPadding2D((1, 1))(x)
x = Conv2D(512, (3, 3), activation='relu', name='block5_conv4')(x)
orig_5 = x
x = MaxPooling2D((2, 2), strides=(2, 2))(x)
# Decoder
x = UpSampling2D(size=(2, 2))(x)
the_shape = K.int_shape(orig_5)
shape = (1, the_shape[1], the_shape[2], the_shape[3])
origReshaped = Reshape(shape)(orig_5)
xReshaped = Reshape(shape)(x)
together = Concatenate(axis=1)([origReshaped, xReshaped])
x = Unpooling()(together)
x = Conv2D(512, (kernel, kernel), activation='relu', padding='same', name='deconv5_1',
kernel_initializer='he_uniform')(x)
x = BatchNormalization()(x)
x = Conv2D(512, (kernel, kernel), activation='relu', padding='same', name='deconv5_2',
kernel_initializer='he_uniform')(x)
x = BatchNormalization()(x)
x = Conv2D(512, (kernel, kernel), activation='relu', padding='same', name='deconv5_3',
kernel_initializer='he_uniform')(x)
x = BatchNormalization()(x)
x = Conv2D(512, (kernel, kernel), activation='relu', padding='same', name='deconv5_4',
kernel_initializer='he_uniform')(x)
x = BatchNormalization()(x)
x = UpSampling2D(size=(2, 2))(x)
the_shape = K.int_shape(orig_4)
shape = (1, the_shape[1], the_shape[2], the_shape[3])
origReshaped = Reshape(shape)(orig_4)
xReshaped = Reshape(shape)(x)
together = Concatenate(axis=1)([origReshaped, xReshaped])
x = Unpooling()(together)
x = Conv2D(512, (kernel, kernel), activation='relu', padding='same', name='deconv4_1',
kernel_initializer='he_uniform')(x)
x = BatchNormalization()(x)
x = Conv2D(512, (kernel, kernel), activation='relu', padding='same', name='deconv4_2',
kernel_initializer='he_uniform')(x)
x = BatchNormalization()(x)
x = Conv2D(256, (kernel, kernel), activation='relu', padding='same', name='deconv4_3',
kernel_initializer='he_uniform')(x)
x = BatchNormalization()(x)
x = Conv2D(256, (kernel, kernel), activation='relu', padding='same', name='deconv4_4',
kernel_initializer='he_uniform')(x)
x = BatchNormalization()(x)
x = UpSampling2D(size=(2, 2))(x)
the_shape = K.int_shape(orig_3)
shape = (1, the_shape[1], the_shape[2], the_shape[3])
origReshaped = Reshape(shape)(orig_3)
xReshaped = Reshape(shape)(x)
together = Concatenate(axis=1)([origReshaped, xReshaped])
x = Unpooling()(together)
x = Conv2D(256, (kernel, kernel), activation='relu', padding='same', name='deconv3_1',
kernel_initializer='he_uniform')(x)
x = BatchNormalization()(x)
x = Conv2D(256, (kernel, kernel), activation='relu', padding='same', name='deconv3_2',
kernel_initializer='he_uniform')(x)
x = BatchNormalization()(x)
x = Conv2D(128, (kernel, kernel), activation='relu', padding='same', name='deconv3_3',
kernel_initializer='he_uniform')(x)
x = BatchNormalization()(x)
x = Conv2D(128, (kernel, kernel), activation='relu', padding='same', name='deconv3_4',
kernel_initializer='he_uniform')(x)
x = BatchNormalization()(x)
x = UpSampling2D(size=(2, 2))(x)
the_shape = K.int_shape(orig_2)
shape = (1, the_shape[1], the_shape[2], the_shape[3])
origReshaped = Reshape(shape)(orig_2)
xReshaped = Reshape(shape)(x)
together = Concatenate(axis=1)([origReshaped, xReshaped])
x = Unpooling()(together)
x = Conv2D(128, (kernel, kernel), activation='relu', padding='same', name='deconv2_1',
kernel_initializer='he_uniform')(x)
x = BatchNormalization()(x)
x = Conv2D(64, (kernel, kernel), activation='relu', padding='same', name='deconv2_2',
kernel_initializer='he_uniform')(x)
x = BatchNormalization()(x)
x = Conv2D(3, (1, 1), padding='same', name='pred', activation='sigmoid', kernel_initializer='he_uniform')(x)
outputs = x
model = Model(inputs=img_input, outputs=outputs)
ensure_vgg_weights()
model.load_weights('models/vgg19_notop.h5', by_name=True)
return model
if __name__ == '__main__':
model = build_model()
print(model.summary())
plot_model(model, to_file='model.svg', show_layer_names=True, show_shapes=True)
K.clear_session()
| 42.876543 | 136 | 0.632882 | 938 | 6,946 | 4.540512 | 0.128998 | 0.029584 | 0.048838 | 0.060108 | 0.781874 | 0.765673 | 0.765673 | 0.765673 | 0.752759 | 0.720122 | 0 | 0.062055 | 0.190325 | 6,946 | 161 | 137 | 43.142857 | 0.695235 | 0.00216 | 0 | 0.48227 | 0 | 0.007092 | 0.125 | 0.009094 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014184 | false | 0 | 0.06383 | 0 | 0.085106 | 0.007092 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 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 | 5 |
6dd3dee32ff0f6c837d7f1780208c26b82062501 | 61 | py | Python | library_author/wizard/__init__.py | odooerpdevelopers/odoo12-course | 839e688043f24957eaf424ac5981dcfca649c9f4 | [
"MIT"
] | null | null | null | library_author/wizard/__init__.py | odooerpdevelopers/odoo12-course | 839e688043f24957eaf424ac5981dcfca649c9f4 | [
"MIT"
] | null | null | null | library_author/wizard/__init__.py | odooerpdevelopers/odoo12-course | 839e688043f24957eaf424ac5981dcfca649c9f4 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from . import assign_author_wizard
| 12.2 | 34 | 0.655738 | 8 | 61 | 4.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02 | 0.180328 | 61 | 4 | 35 | 15.25 | 0.74 | 0.344262 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
6dd8fdd00c935c354676d07f1cdecd9de01d78cd | 77 | py | Python | src/bard/tests/layers/test_learning.py | tykangler/music_generator | 52bb9968f572b583177534d37e80ec3952144d74 | [
"MIT"
] | null | null | null | src/bard/tests/layers/test_learning.py | tykangler/music_generator | 52bb9968f572b583177534d37e80ec3952144d74 | [
"MIT"
] | null | null | null | src/bard/tests/layers/test_learning.py | tykangler/music_generator | 52bb9968f572b583177534d37e80ec3952144d74 | [
"MIT"
] | null | null | null | import tensorflow as tf
import numpy as np
from bard.layers import learning
| 15.4 | 32 | 0.818182 | 13 | 77 | 4.846154 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168831 | 77 | 4 | 33 | 19.25 | 0.984375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
6de16db059bfb9dc3b830576697dd281be47cca9 | 141 | py | Python | avicena/app/__init__.py | ribsthakkar/RiderPickup | e4eaf69d905631034949b18433bc70e4a08f0e58 | [
"MIT"
] | 2 | 2020-04-21T02:43:23.000Z | 2020-04-21T02:44:44.000Z | avicena/app/__init__.py | ribsthakkar/RiderPickup | e4eaf69d905631034949b18433bc70e4a08f0e58 | [
"MIT"
] | 1 | 2020-04-21T02:41:11.000Z | 2020-04-21T02:41:11.000Z | avicena/app/__init__.py | ribsthakkar/RiderPickup | e4eaf69d905631034949b18433bc70e4a08f0e58 | [
"MIT"
] | null | null | null | APP_CONFIG_FILE = 'config/app_config.yaml'
OPTIMIZER_CONFIG_FILE = 'config/optimizer_config.yaml'
LOG_CONFIG_FILE = 'config/log_config.yaml'
| 35.25 | 54 | 0.829787 | 21 | 141 | 5.142857 | 0.285714 | 0.277778 | 0.444444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06383 | 141 | 3 | 55 | 47 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0.510638 | 0.510638 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
6decc42aba1c31a8cf5dbc0028f95703a76a36ae | 276 | py | Python | mtools/mlogfilter/filters/__init__.py | karlvr/mtools | a6a22910c3569c0c8a3908660ca218a4557e4249 | [
"Apache-2.0"
] | 1 | 2019-09-02T07:50:11.000Z | 2019-09-02T07:50:11.000Z | mtools/mlogfilter/filters/__init__.py | wozhangkun/mtools | e2e81c4dc31a3f18e7ca5fc39445aa0e7b0e3353 | [
"Apache-2.0"
] | 1 | 2019-07-09T15:25:10.000Z | 2019-07-09T15:25:10.000Z | mtools/mlogfilter/filters/__init__.py | wozhangkun/mtools | e2e81c4dc31a3f18e7ca5fc39445aa0e7b0e3353 | [
"Apache-2.0"
] | 1 | 2019-06-24T09:59:07.000Z | 2019-06-24T09:59:07.000Z | from .datetime_filter import DateTimeFilter
from .fast_filter import FastFilter
from .slow_filter import SlowFilter
from .logline_filter import LogLineFilter
from .tablescan_filter import TableScanFilter
from .word_filter import WordFilter
from .mask_filter import MaskFilter
| 34.5 | 45 | 0.873188 | 35 | 276 | 6.685714 | 0.485714 | 0.358974 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.101449 | 276 | 7 | 46 | 39.428571 | 0.943548 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
09c3404b952390226f55df34d2cc23b4bc7a34ce | 95 | py | Python | WEB_DIR/auth-server/test.py | EMZEDI/Mixerify | a97056a5c1931e2ea05cfeff153c83d4539a1ae1 | [
"MIT"
] | 1 | 2022-03-29T19:13:40.000Z | 2022-03-29T19:13:40.000Z | WEB_DIR/auth-server/test.py | EMZEDI/Mixerify | a97056a5c1931e2ea05cfeff153c83d4539a1ae1 | [
"MIT"
] | null | null | null | WEB_DIR/auth-server/test.py | EMZEDI/Mixerify | a97056a5c1931e2ea05cfeff153c83d4539a1ae1 | [
"MIT"
] | null | null | null | import sys
import time
time.sleep(3)
print("first" + sys.argv[1])
print("second" + sys.argv[2]) | 19 | 29 | 0.694737 | 17 | 95 | 3.882353 | 0.647059 | 0.212121 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035294 | 0.105263 | 95 | 5 | 29 | 19 | 0.741176 | 0 | 0 | 0 | 0 | 0 | 0.114583 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 0.4 | 0.4 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
61f96d335481996c334e1f5ae56fdbbc2a5fd8c1 | 329 | py | Python | modules/tests/test_movie.py | anamayagarodia/JARVIS-on-Messenger | d7198db0afe99cf3c0f7aacd5d5a16641deba809 | [
"MIT"
] | 4 | 2019-12-07T12:46:47.000Z | 2021-05-16T18:14:07.000Z | modules/tests/test_movie.py | anamayagarodia/JARVIS-on-Messenger | d7198db0afe99cf3c0f7aacd5d5a16641deba809 | [
"MIT"
] | null | null | null | modules/tests/test_movie.py | anamayagarodia/JARVIS-on-Messenger | d7198db0afe99cf3c0f7aacd5d5a16641deba809 | [
"MIT"
] | 2 | 2018-08-06T06:03:58.000Z | 2020-01-08T07:57:37.000Z | import modules
def test_movie():
assert('movie' == modules.process_query('batman movie')[0])
assert('movie' == modules.process_query('iron man 2 movie plot')[0])
assert('movie' == modules.process_query('What is the rating of happyness movie?')[0])
assert('movie' != modules.process_query('something random')[0])
| 41.125 | 89 | 0.693009 | 45 | 329 | 4.955556 | 0.488889 | 0.197309 | 0.32287 | 0.44843 | 0.596413 | 0.461883 | 0.32287 | 0 | 0 | 0 | 0 | 0.017606 | 0.136778 | 329 | 7 | 90 | 47 | 0.767606 | 0 | 0 | 0 | 0 | 0 | 0.325228 | 0 | 0 | 0 | 0 | 0 | 0.666667 | 1 | 0.166667 | true | 0 | 0.166667 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
111b181ce3eca2a490f0ab802b816de0ffac1bc8 | 57 | py | Python | utils/__init__.py | WorqHat/Stanford-MRnet-Challenge | 0a8a7438f55503307d5b6b0ddaaa3c50fa4d692b | [
"MIT"
] | 1 | 2021-06-27T18:22:57.000Z | 2021-06-27T18:22:57.000Z | utils/__init__.py | WorqHat/Stanford-MRnet-Challenge | 0a8a7438f55503307d5b6b0ddaaa3c50fa4d692b | [
"MIT"
] | null | null | null | utils/__init__.py | WorqHat/Stanford-MRnet-Challenge | 0a8a7438f55503307d5b6b0ddaaa3c50fa4d692b | [
"MIT"
] | 2 | 2020-05-28T07:30:39.000Z | 2021-06-27T18:22:59.000Z | from .utils import _train_model, _evaluate_model, _get_lr | 57 | 57 | 0.859649 | 9 | 57 | 4.777778 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.087719 | 57 | 1 | 57 | 57 | 0.826923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
112384c9f39870ef1463c1ddbb8534cf6cc82e3e | 157 | py | Python | artblog/apps/blog/managers.py | Kalenai/artblog-project | 60bde90c99fb68910cbbfbc26b761638b9babf31 | [
"MIT"
] | null | null | null | artblog/apps/blog/managers.py | Kalenai/artblog-project | 60bde90c99fb68910cbbfbc26b761638b9babf31 | [
"MIT"
] | null | null | null | artblog/apps/blog/managers.py | Kalenai/artblog-project | 60bde90c99fb68910cbbfbc26b761638b9babf31 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from django.db import models
class PostManager(models.Manager):
def published(self):
return self.filter(published=True)
| 22.428571 | 42 | 0.687898 | 20 | 157 | 5.4 | 0.85 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007752 | 0.178344 | 157 | 6 | 43 | 26.166667 | 0.829457 | 0.133758 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.25 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 5 |
113e506b8fce8f5ba0e2bb1b3e469e75318bd67d | 289 | py | Python | env/lib/python3.8/site-packages/shortuuid/__init__.py | rajancolab/blogsite | 0721a3ab9b61bfca6fd84d5fae60b0574bfb0287 | [
"MIT"
] | 1,044 | 2016-10-20T23:43:13.000Z | 2022-03-30T07:45:03.000Z | env/lib/python3.8/site-packages/shortuuid/__init__.py | rajancolab/blogsite | 0721a3ab9b61bfca6fd84d5fae60b0574bfb0287 | [
"MIT"
] | 44 | 2017-01-24T10:24:45.000Z | 2022-03-17T13:59:51.000Z | env/lib/python3.8/site-packages/shortuuid/__init__.py | rajancolab/blogsite | 0721a3ab9b61bfca6fd84d5fae60b0574bfb0287 | [
"MIT"
] | 62 | 2016-10-29T21:22:26.000Z | 2022-03-24T23:04:02.000Z | # flake8: noqa
from shortuuid.main import decode
from shortuuid.main import encode
from shortuuid.main import get_alphabet
from shortuuid.main import random
from shortuuid.main import set_alphabet
from shortuuid.main import ShortUUID
from shortuuid.main import uuid
__version__ = "1.0.1"
| 26.272727 | 39 | 0.83045 | 43 | 289 | 5.44186 | 0.372093 | 0.388889 | 0.508547 | 0.688034 | 0.264957 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015748 | 0.121107 | 289 | 10 | 40 | 28.9 | 0.905512 | 0.041522 | 0 | 0 | 0 | 0 | 0.018182 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.875 | 0 | 0.875 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
116495944c826eeb64f5a189f016153c1f3c68eb | 465 | py | Python | m6_006/py_mit6_006/heap/__init__.py | zaqwes8811/cs-courses | aa9cf5ad109c9cfcacaadc11bf2defb2188ddce2 | [
"Apache-2.0"
] | null | null | null | m6_006/py_mit6_006/heap/__init__.py | zaqwes8811/cs-courses | aa9cf5ad109c9cfcacaadc11bf2defb2188ddce2 | [
"Apache-2.0"
] | null | null | null | m6_006/py_mit6_006/heap/__init__.py | zaqwes8811/cs-courses | aa9cf5ad109c9cfcacaadc11bf2defb2188ddce2 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
def shift_idx(f):
def wrapper(*args):
return f(*args)-1
return wrapper
class Heap(object):
def __init__(self):
pass
@staticmethod
@shift_idx
def parent(i):
return i/2
@staticmethod
@shift_idx
def left(i):
return 2*i
@staticmethod
@shift_idx
def right(i):
return 2*i+1
# Runner
heap = [16, 14, 10, 8, 7, 9, 3, 2, 4, 1]
assert heap[Heap.parent(4)] == 14 | 14.090909 | 40 | 0.552688 | 69 | 465 | 3.608696 | 0.463768 | 0.128514 | 0.240964 | 0.277108 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06962 | 0.32043 | 465 | 33 | 41 | 14.090909 | 0.718354 | 0.043011 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 1 | 0.285714 | false | 0.047619 | 0 | 0.190476 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 5 |
fee96ed256d6cee45f363c9b7a02e814ad0c62b1 | 53 | py | Python | gym_plannable/env/__init__.py | michalgregor/gym_plannable | b20ad2cb6d05f3187b8918fda8129dbb9db04319 | [
"BSD-3-Clause"
] | null | null | null | gym_plannable/env/__init__.py | michalgregor/gym_plannable | b20ad2cb6d05f3187b8918fda8129dbb9db04319 | [
"BSD-3-Clause"
] | null | null | null | gym_plannable/env/__init__.py | michalgregor/gym_plannable | b20ad2cb6d05f3187b8918fda8129dbb9db04319 | [
"BSD-3-Clause"
] | null | null | null | from .tic_tac_toe import *
from .grid_world import *
| 17.666667 | 26 | 0.773585 | 9 | 53 | 4.222222 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.150943 | 53 | 2 | 27 | 26.5 | 0.844444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
28b2bdc5cb99f5cc47a281561f7293c725f0b13b | 164 | py | Python | python/setup.py | phil-mansfield/minnow | 86669c376dedc74d3641e44170012c158b425c2d | [
"MIT"
] | 1 | 2020-02-23T21:42:15.000Z | 2020-02-23T21:42:15.000Z | python/setup.py | phil-mansfield/minnow | 86669c376dedc74d3641e44170012c158b425c2d | [
"MIT"
] | null | null | null | python/setup.py | phil-mansfield/minnow | 86669c376dedc74d3641e44170012c158b425c2d | [
"MIT"
] | 1 | 2020-02-26T22:42:11.000Z | 2020-02-26T22:42:11.000Z | from distutils.core import setup
from Cython.Build import cythonize
import numpy as np
setup(ext_modules=cythonize("cy_bit.pyx"), include_dirs=[np.get_include()])
| 27.333333 | 75 | 0.804878 | 26 | 164 | 4.923077 | 0.730769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.091463 | 164 | 5 | 76 | 32.8 | 0.85906 | 0 | 0 | 0 | 0 | 0 | 0.060976 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.75 | 0 | 0.75 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
28bfb44b44d45cb18862236d1b18d42fd18d03a9 | 126 | py | Python | cdispyutils/auth/__init__.py | uc-cdis/python-utils | a7f7d182815f35729d8215c84f0e1c3790292eec | [
"Apache-2.0"
] | 2 | 2017-09-22T23:22:20.000Z | 2019-01-24T12:23:20.000Z | cdispyutils/auth/__init__.py | uc-cdis/python-utils | a7f7d182815f35729d8215c84f0e1c3790292eec | [
"Apache-2.0"
] | 22 | 2016-12-21T20:07:31.000Z | 2021-07-08T15:51:21.000Z | cdispyutils/auth/__init__.py | uc-cdis/python-utils | a7f7d182815f35729d8215c84f0e1c3790292eec | [
"Apache-2.0"
] | 2 | 2019-01-23T23:09:05.000Z | 2020-12-02T23:04:50.000Z | from .errors import JWTValidationError
from .jwt_validation import get_public_key_for_kid, validate_jwt, validate_request_jwt
| 42 | 86 | 0.888889 | 18 | 126 | 5.777778 | 0.722222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079365 | 126 | 2 | 87 | 63 | 0.896552 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
28eddc156088b0e40461d0e3f12d9c0c3897effb | 143 | py | Python | article/views.py | MehmetEray/Django-Starter-Package | 74e1af345b331df7a8bf3efa4b8397380f3418e7 | [
"Apache-2.0"
] | null | null | null | article/views.py | MehmetEray/Django-Starter-Package | 74e1af345b331df7a8bf3efa4b8397380f3418e7 | [
"Apache-2.0"
] | null | null | null | article/views.py | MehmetEray/Django-Starter-Package | 74e1af345b331df7a8bf3efa4b8397380f3418e7 | [
"Apache-2.0"
] | null | null | null | from django.shortcuts import render,HttpResponse
# Create your views here.
def index(request):
return render(request,'article/index.html') | 28.6 | 48 | 0.783217 | 19 | 143 | 5.894737 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118881 | 143 | 5 | 49 | 28.6 | 0.888889 | 0.160839 | 0 | 0 | 0 | 0 | 0.151261 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 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 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 5 |
28f347cfa3ed62235c90a0c4f58cd2a30825d165 | 28 | py | Python | stripunicode/__init__.py | benjamineskola/stripunicode | 1a0f2b210a85c61dad586d2b9773987107ed0316 | [
"0BSD"
] | null | null | null | stripunicode/__init__.py | benjamineskola/stripunicode | 1a0f2b210a85c61dad586d2b9773987107ed0316 | [
"0BSD"
] | null | null | null | stripunicode/__init__.py | benjamineskola/stripunicode | 1a0f2b210a85c61dad586d2b9773987107ed0316 | [
"0BSD"
] | null | null | null | from .stripunicode import *
| 14 | 27 | 0.785714 | 3 | 28 | 7.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 28 | 1 | 28 | 28 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
3a63464d164c987b2b18914d852dc875e637dd9a | 71 | py | Python | A2Z/ANN/ANN.py | JKChang2015/Deep-Learning | 061fea2737ef8d1b9e937142bc2566249e081aac | [
"MIT"
] | null | null | null | A2Z/ANN/ANN.py | JKChang2015/Deep-Learning | 061fea2737ef8d1b9e937142bc2566249e081aac | [
"MIT"
] | null | null | null | A2Z/ANN/ANN.py | JKChang2015/Deep-Learning | 061fea2737ef8d1b9e937142bc2566249e081aac | [
"MIT"
] | null | null | null | # ANN
# Created by JKChang
# 2019-07-30, 11:17
# Tag:
# Description:
| 10.142857 | 20 | 0.633803 | 11 | 71 | 4.090909 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.214286 | 0.211268 | 71 | 6 | 21 | 11.833333 | 0.589286 | 0.816901 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
3aaceb501321cc92b7e80fc1dd4fa583ff51a61f | 74 | py | Python | tests/fixtures/defxmlschema/chapter12/__init__.py | nimish/xsdata | 7afe2781b66982428cc1731f53c065086acd35c1 | [
"MIT"
] | null | null | null | tests/fixtures/defxmlschema/chapter12/__init__.py | nimish/xsdata | 7afe2781b66982428cc1731f53c065086acd35c1 | [
"MIT"
] | null | null | null | tests/fixtures/defxmlschema/chapter12/__init__.py | nimish/xsdata | 7afe2781b66982428cc1731f53c065086acd35c1 | [
"MIT"
] | null | null | null | from tests.fixtures.defxmlschema.chapter12.example1247 import ProductType
| 37 | 73 | 0.891892 | 8 | 74 | 8.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085714 | 0.054054 | 74 | 1 | 74 | 74 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
3ab9e6bcd7434d7d2e74b9cdceab94b966f05ed2 | 1,215 | py | Python | adventofcode/2015/1/test/test_examples.py | bneradt/toy | 982e80ec98f4e951f7275e5f22cb0197f8f86c08 | [
"Apache-2.0"
] | null | null | null | adventofcode/2015/1/test/test_examples.py | bneradt/toy | 982e80ec98f4e951f7275e5f22cb0197f8f86c08 | [
"Apache-2.0"
] | null | null | null | adventofcode/2015/1/test/test_examples.py | bneradt/toy | 982e80ec98f4e951f7275e5f22cb0197f8f86c08 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
import unittest
from which_floor import description_to_final_floor, get_first_basement_position
class TestExamples(unittest.TestCase):
def test_description_to_final_floor(self):
self.assertEqual(0, description_to_final_floor(''))
self.assertEqual(0, description_to_final_floor('(())'))
self.assertEqual(0, description_to_final_floor('()()'))
self.assertEqual(3, description_to_final_floor('((('))
self.assertEqual(3, description_to_final_floor('(()(()('))
self.assertEqual(3, description_to_final_floor('))((((('))
self.assertEqual(-1, description_to_final_floor('())'))
self.assertEqual(-1, description_to_final_floor('))('))
self.assertEqual(-3, description_to_final_floor(')))'))
self.assertEqual(-3, description_to_final_floor(')())())'))
def test_get_first_basement_position(self):
self.assertEqual(0, get_first_basement_position('()()('))
self.assertEqual(1, get_first_basement_position(')'))
self.assertEqual(1, get_first_basement_position(')))'))
self.assertEqual(5, get_first_basement_position('()())'))
if __name__ == '__main__':
unittest.main()
| 34.714286 | 79 | 0.688066 | 139 | 1,215 | 5.546763 | 0.215827 | 0.272374 | 0.280156 | 0.357977 | 0.731518 | 0.660182 | 0.660182 | 0.660182 | 0.660182 | 0.660182 | 0 | 0.014549 | 0.15144 | 1,215 | 34 | 80 | 35.735294 | 0.733269 | 0.017284 | 0 | 0 | 0 | 0 | 0.052808 | 0 | 0 | 0 | 0 | 0 | 0.666667 | 1 | 0.095238 | false | 0 | 0.095238 | 0 | 0.238095 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
3ad7418c5b71e65f0d9c0f300091ddc4288f006b | 72 | py | Python | ex001.py | heltonsdl/python-3---curso-em-video | 2bb0408ec041628323443cf902fca593f7575941 | [
"MIT"
] | null | null | null | ex001.py | heltonsdl/python-3---curso-em-video | 2bb0408ec041628323443cf902fca593f7575941 | [
"MIT"
] | null | null | null | ex001.py | heltonsdl/python-3---curso-em-video | 2bb0408ec041628323443cf902fca593f7575941 | [
"MIT"
] | null | null | null | ''' Crie um proggrama que diga " Olá Mundo!"
'''
print ('Olá, Mundo!')
| 14.4 | 44 | 0.597222 | 10 | 72 | 4.3 | 0.8 | 0.372093 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.194444 | 72 | 4 | 45 | 18 | 0.741379 | 0.555556 | 0 | 0 | 0 | 0 | 0.458333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 5 |
aaf18ef783969fa6284f497fed576e44905ed156 | 12,611 | py | Python | Chatbot.py | CR017/Chatbot | 6ebc6c7310e1ab6779acc6b4cc192c1961185d32 | [
"MIT"
] | 2 | 2022-03-06T13:00:36.000Z | 2022-03-13T13:01:40.000Z | Chatbot.py | CR017/Chatbot | 6ebc6c7310e1ab6779acc6b4cc192c1961185d32 | [
"MIT"
] | null | null | null | Chatbot.py | CR017/Chatbot | 6ebc6c7310e1ab6779acc6b4cc192c1961185d32 | [
"MIT"
] | null | null | null | import sys
from datetime import datetime
from difflib import get_close_matches
# Closest word match function
def closeMatches(word,patterns):
#if(any(word.lower() in s.lower() for s in patterns)):
for p in patterns:
if(p.lower()== word.lower()):
return p
try:
sw=get_close_matches(word, patterns, n=1)[0]
write_to_text.write("Chatbot: Do you mean "+ str(sw) +" ?[Yes/No]" + " \n ")
print("Chatbot: Do you mean "+ str(sw) +" ?[Yes/No]")
C_input = Check_isEmpty("Chatbot: Do you mean "+ str(sw) +" ?[Yes/No]", input("Customer: "))
write_to_text.write("Customer: " + C_input + " \n ")
if(C_input.lower()=="n" or C_input.lower()=="no"):
return ""
except IndexError:
sw=""
return str(sw)
# Making Time stemped File name
dateTimeObj = datetime.now()
timestampStr = dateTimeObj.strftime("%d-%b-%Y_(%H-%M-%S)")
write_to_text=open("CH_"+timestampStr+".txt","w+")
write_to_text.write("Time: "+ timestampStr + " \n ")
#Car brand names
Brands_Name=['Maruthi Suzuki','Honda','Mahindra','Isuzu','Kia','Volvo','Citroen','Land Rover','TATA','Ford']
#Check if the Input is Integer or not
def Ask_Question(Question, C_input):
global val
while (True):
try:
val = int(C_input)
break
except ValueError:
write_to_text.write(Question + " \n ")
print(Question)
C_input = input("Customer: ")
write_to_text.write("Customer: "+ C_input + " \n ")
continue
return val
#if the input is empty ask question again
def Check_isEmpty(Question, C_input):
while (True):
if(C_input==""):
print(Question)
C_input = input("Customer: ")
else:
break
return C_input
#Getting Information about the Cars and their models
def Cars_Information(Number):
write_to_text.write("Chatbot: What is the "+Number+" brand Name?" + " \n ")
print("Chatbot: What is the "+Number+" brand Name?")
Brand_Name = closeMatches(Check_isEmpty("Chatbot: What is the "+Number+" brand Name?",input("Customer: ")),Brands_Name)
write_to_text.write("Customer: "+ Brand_Name + " \n ")
while(len(Brand_Name)==0):
write_to_text.write("Chatbot: What is the " + Number + " brand Name?[Entered Brand Not Found]" + " \n ")
print("Chatbot: What is the " + Number + " brand Name?[Entered Brand Not Found]")
Brand_Name = closeMatches(input("Customer: "),Brands_Name)
write_to_text.write("Customer: " + Brand_Name + " \n ")
write_to_text.write("Chatbot: How Many Cars in " + Brand_Name + "? (IN NUMBER)" + " \n ")
print("Chatbot: How Many Cars in " + Brand_Name + "? (IN NUMBER)")
C_input = Check_isEmpty("Chatbot: How Many Cars in " + Brand_Name + "? (IN NUMBER)",input("Customer: "))
write_to_text.write("Customer: " + C_input + " \n ")
Car_Quantity = Ask_Question("Chatbot: How Many Cars in " + Brand_Name + " (IN NUMBER only)", C_input)
if(Car_Quantity!=1):
write_to_text.write("Chatbot: Are They of the same Model?[Yes/No]" + " \n ")
print("Chatbot: Are They of the same Model?[Yes/No]")
C_input = Check_isEmpty("Chatbot: Are They of the same Model?[Yes/No]",input("Customer: "))
write_to_text.write("Customer: " + C_input + " \n ")
else:
write_to_text.write("Chatbot: What model is it?" + " \n ")
print("Chatbot: What model is it?")
C_input = Check_isEmpty("Chatbot: What model is it?",input("Customer: "))
write_to_text.write("Customer: " + C_input + " \n ")
write_to_text.write("Chatbot: What is the engine size of Car?" + " \n ")
print("Chatbot: What is the engine size of Car?")
C_input = Check_isEmpty("Chatbot: What is the engine size of Car?", input("Customer: "))
write_to_text.write("Customer: " + C_input + " \n ")
write_to_text.write("Chatbot: How many Axles are in this Car?" + " \n ")
print("Chatbot: How many Axles are in this Car?")
C_input = Check_isEmpty("Chatbot: How many Axles are in this Car?", input("Customer: "))
write_to_text.write("Customer: " + C_input + " \n ")
if ("no" in C_input.lower() or "n" in C_input.lower()):
j = 1
while (j <= Car_Quantity):
if (j == 1):
write_to_text.write("Chatbot: what is the 1st Car model?" + " \n ")
print("Chatbot: What is the 1st Car model?")
C_input =Check_isEmpty("Chatbot: What is the 1st Car model?",input("Customer: "))
write_to_text.write("Customer: " + C_input + " \n ")
write_to_text.write("Chatbot: What is the engine size of 1st Car?" + " \n ")
print("Chatbot: What is the engine size of 1st Car?")
C_input = Check_isEmpty("Chatbot: What is the engine size of 1st Car?", input("Customer: "))
write_to_text.write("Customer: " + C_input + " \n ")
write_to_text.write("Chatbot: How many Axles are in 1st Car?" + " \n ")
print("Chatbot: How many Axles are in 1st Car?")
C_input = Check_isEmpty("Chatbot: How many Axles are in 1st Car?", input("Customer: "))
write_to_text.write("Customer: " + C_input + " \n ")
elif (j == 2):
write_to_text.write("Chatbot: What is the 2nd Car model?" + " \n ")
print("Chatbot: What is the 2nd Car model?")
C_input = Check_isEmpty("Chatbot: What is the 2nd Car model?",input("Customer: "))
write_to_text.write("Customer: " + C_input + " \n ")
write_to_text.write("Chatbot: What is the engine size of 2nd Car?" + " \n ")
print("Chatbot: What is the engine size of 2nd Car?")
C_input = Check_isEmpty("Chatbot: What is the engine size of 2nd Car?", input("Customer: "))
write_to_text.write("Customer: " + C_input + " \n ")
write_to_text.write("Chatbot: How many Axles are in 2nd Car?" + " \n ")
print("Chatbot: How many Axles are in 2nd Car?")
C_input = Check_isEmpty("Chatbot: How many Axles are in 2nd Car?", input("Customer: "))
write_to_text.write("Customer: " + C_input + " \n ")
elif (j == 3):
write_to_text.write("Chatbot: What is the 3rd Car model?" + " \n ")
print("Chatbot: What is the 3nrd Car model?")
C_input = Check_isEmpty("Chatbot: What is the 3rd Car model?",input("Customer: "))
write_to_text.write("Customer: " + C_input + " \n ")
write_to_text.write("Chatbot: What is the engine size of 3rd Car?" + " \n ")
print("Chatbot: What is the engine size of 3rd Car?")
C_input = Check_isEmpty("Chatbot: What is the engine size of 3rd Car?", input("Customer: "))
write_to_text.write("Customer: " + C_input + " \n ")
write_to_text.write("Chatbot: How many Axles are in 3rd Car?" + " \n ")
print("Chatbot: How many Axles are in 3rd Car?")
C_input = Check_isEmpty("Chatbot: How many Axles are in 3rd Car?", input("Customer: "))
write_to_text.write("Customer: " + C_input + " \n ")
elif (i > 3):
write_to_text.write("Chatbot: What is the " + str(j) + "th Car model?" + " \n ")
print("Chatbot: What is the " + str(j) + "th Car model?")
C_input = Check_isEmpty("Chatbot: What is the " + str(j) + "th Car model?",input("Customer: "))
write_to_text.write("Customer: " + C_input + " \n ")
write_to_text.write("Chatbot: What is the engine size of " + str(j) + "th Car?" + " \n ")
print("Chatbot: What is the engine size of " + str(j) + "th Car?")
C_input = Check_isEmpty("Chatbot: What is the engine size of " + str(j) + "th Car?", input("Customer: "))
write_to_text.write("Customer: " + C_input + " \n ")
write_to_text.write("Chatbot: How many Axles are in " + str(j) + "th Car?" + " \n ")
print("Chatbot: How many Axles are in " + str(j) + "th Car?")
C_input = Check_isEmpty("Chatbot: How many Axles are in " + str(j) + "th Car?", input("Customer: "))
write_to_text.write("Customer: " + C_input + " \n ")
j = j + 1
elif("yes" in C_input.lower() or "y" in C_input.lower()):
if(Car_Quantity==1):
write_to_text.write("Chatbot: What model is it?" + " \n ")
print("Chatbot: What model is it?")
C_input = Check_isEmpty("Chatbot: What model is it?",input("Customer: "))
write_to_text.write("Customer: " + C_input + " \n ")
write_to_text.write("Chatbot: What is the engine size of Car?" + " \n ")
print("Chatbot: What is the engine size of Car?")
C_input = Check_isEmpty("Chatbot: What is the engine size of Car?", input("Customer: "))
write_to_text.write("Customer: " + C_input + " \n ")
write_to_text.write("Chatbot: How many Axles are in this Car?" + " \n ")
print("Chatbot: How many Axles are in this Car?")
C_input = Check_isEmpty("Chatbot: How many Axles are in this Car?", input("Customer: "))
write_to_text.write("Customer: " + C_input + " \n ")
else:
write_to_text.write("Chatbot: What model are they?" + " \n ")
print("Chatbot: What model are they?")
C_input =Check_isEmpty("Chatbot: What model are they?",input("Customer: "))
write_to_text.write("Customer: " + C_input + " \n ")
write_to_text.write("Chatbot: What is the engine size of These Car?" + " \n ")
print("Chatbot: What is the engine size of These Car?")
C_input = Check_isEmpty("Chatbot: What is the engine size of These Car?", input("Customer: "))
write_to_text.write("Customer: " + C_input + " \n ")
write_to_text.write("Chatbot: Number of Axles per Car?" + " \n ")
print("Chatbot: Number of Axles per Car?")
C_input = Check_isEmpty("Chatbot: Number of Axles per Car?", input("Customer: "))
write_to_text.write("Customer: " + C_input + " \n ")
#Starting Point of the Program
write_to_text.write("Chatbot: Hello, Your Full Name Please " + " \n ")
print("Chatbot: Hello, Your Full Name Please")
Customer_Name =Check_isEmpty( "Chatbot: Hello, Your Full Name Please",input("Customer: "))
write_to_text.write("Customer: " + Customer_Name + " \n ")
write_to_text.write("Chatbot: Hi " + Customer_Name + " What\'s the name of your company?" + " \n ")
print("Chatbot: Hi " + Customer_Name + " What\'s the name of your company?")
C_input = Check_isEmpty("Chatbot: Hi " + Customer_Name + " What\'s the name of your company?",input("Customer: "))
write_to_text.write("Customer: " + C_input + " \n ")
write_to_text.write("Chatbot: Do you own Cars?[Yes/No]" + " \n ")
print("Chatbot: Do you own Cars?[Yes/No]")
C_input = Check_isEmpty("Chatbot: Do you own Cars?[Yes/No]",input("Customer: "))
write_to_text.write("Customer: " + C_input + " \n ")
if("no" in C_input.lower() or "n" in C_input.lower()):
write_to_text.write("Please contact to one of our Colleague For more information "+ " \n ")
print('Please contact to one of our colleague for more information ')
write_to_text.close()
sys.exit()
write_to_text.write("Chatbot: How many Car's brand do you have? (IN NUMBER)" + " \n ")
print("Chatbot: How many Cars's brand do you have? (IN NUMBER)")
C_input =Check_isEmpty("Chatbot: How many Car's brand do you have? (IN NUMBER)", input("Customer: "))
write_to_text.write("Customer: " + C_input + " \n ")
Brand_Quantity = Ask_Question("Chatbot: How many Car's brand do you have? (IN NUMBER only)", C_input)
i = 1
while i <= Brand_Quantity:
if (i == 1):
Cars_Information("1st")
elif (i == 2):
Cars_Information("2nd")
elif (i == 3):
Cars_Information("3rd")
elif (i > 3):
Cars_Information(str(i)+"th")
i = i + 1
print("Chatbot: Thank you very much for your information \n we are now processing your information and \n we will get back to you soon\n until than have a nice day Bye:) ")
write_to_text.write("Chatbot: Thank you very much for your information \n we are now processing your information and \n we will get back to you soon\n until than have a nice day Bye:) \n ")
write_to_text.close()
| 52.327801 | 190 | 0.593847 | 1,783 | 12,611 | 4.04599 | 0.093662 | 0.059884 | 0.103687 | 0.144164 | 0.835736 | 0.811339 | 0.772664 | 0.735514 | 0.696701 | 0.602301 | 0 | 0.005056 | 0.262945 | 12,611 | 240 | 191 | 52.545833 | 0.77106 | 0.022282 | 0 | 0.341837 | 0 | 0.010204 | 0.405649 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020408 | false | 0 | 0.015306 | 0 | 0.061224 | 0.173469 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 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 | 5 |
aafd98dfdcbeca899616676495d062a5051c3ad2 | 207 | py | Python | plotlib/__init__.py | shuiyao/PyGIZMO | aee584186b614da26e557aa3e2f12eb40c7ec1ae | [
"MIT"
] | null | null | null | plotlib/__init__.py | shuiyao/PyGIZMO | aee584186b614da26e557aa3e2f12eb40c7ec1ae | [
"MIT"
] | null | null | null | plotlib/__init__.py | shuiyao/PyGIZMO | aee584186b614da26e557aa3e2f12eb40c7ec1ae | [
"MIT"
] | 1 | 2022-03-08T20:47:45.000Z | 2022-03-08T20:47:45.000Z | '''
Scripts that make publication-ready figures.
'''
from .legend import Legend
from .multiframe import FrameMulti
from .phasediagram import PhaseDiagram
from .map2d import Map2D
from .halo3d import Halo3D
| 20.7 | 44 | 0.801932 | 26 | 207 | 6.384615 | 0.538462 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022346 | 0.135266 | 207 | 9 | 45 | 23 | 0.905028 | 0.21256 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
c9597cd7a350c34f92b4c608f40077ec2a89adb0 | 33 | py | Python | build_utils/__init__.py | kalyanam-FMTGA/ray-original | f4f57896015c1c29ca571069b007c409d74824e0 | [
"BSD-3-Clause-LBNL"
] | 154 | 2015-01-27T15:02:36.000Z | 2022-01-06T18:14:18.000Z | build_utils/__init__.py | kalyanam-FMTGA/ray-original | f4f57896015c1c29ca571069b007c409d74824e0 | [
"BSD-3-Clause-LBNL"
] | 35 | 2015-05-11T21:41:31.000Z | 2021-12-17T13:23:57.000Z | build_utils/__init__.py | kalyanam-FMTGA/ray-original | f4f57896015c1c29ca571069b007c409d74824e0 | [
"BSD-3-Clause-LBNL"
] | 64 | 2015-01-21T00:52:40.000Z | 2022-02-07T12:15:09.000Z | # initialize package build_utils
| 16.5 | 32 | 0.848485 | 4 | 33 | 6.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121212 | 33 | 1 | 33 | 33 | 0.931034 | 0.909091 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
c9737b09e2dd9018694a7ac9dd55bb74e6e748cb | 114 | py | Python | tutorial/00_split_files/apis/source.py | edge-minato/openapy | c156fad5e64599e17cc1cd64e27daa824fdf98b0 | [
"MIT"
] | null | null | null | tutorial/00_split_files/apis/source.py | edge-minato/openapy | c156fad5e64599e17cc1cd64e27daa824fdf98b0 | [
"MIT"
] | 31 | 2021-11-18T23:22:01.000Z | 2022-03-28T23:33:59.000Z | tutorial/00_split_files/apis/source.py | edge-minato/openapy | c156fad5e64599e17cc1cd64e27daa824fdf98b0 | [
"MIT"
] | null | null | null | def function_a(name: str, age: int) -> None:
pass
def function_b(height: int, weight: int) -> int:
pass
| 16.285714 | 48 | 0.631579 | 18 | 114 | 3.888889 | 0.666667 | 0.314286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.22807 | 114 | 6 | 49 | 19 | 0.795455 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0.5 | 0 | 0 | 0.5 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 5 |
a3773c18dee4152c0e4952e688feaf37ab636ae3 | 92 | py | Python | rapidunfurl/example.py | tdarwin/rapidunfurl | 21a7db7d78fa85098760958fbac28ba14fd05236 | [
"MIT"
] | 1 | 2022-02-18T20:46:40.000Z | 2022-02-18T20:46:40.000Z | rapidunfurl/example.py | tdarwin/rapidunfurl | 21a7db7d78fa85098760958fbac28ba14fd05236 | [
"MIT"
] | null | null | null | rapidunfurl/example.py | tdarwin/rapidunfurl | 21a7db7d78fa85098760958fbac28ba14fd05236 | [
"MIT"
] | null | null | null | import rapidunfurl
print(rapidunfurl.unfurl('https://www.youtube.com/watch?v=aBr2kKAHN6M'))
| 30.666667 | 72 | 0.804348 | 12 | 92 | 6.166667 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022472 | 0.032609 | 92 | 2 | 73 | 46 | 0.808989 | 0 | 0 | 0 | 0 | 0 | 0.467391 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 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 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 5 |
a3885b4a5f9f87768ce42254eafb586baadd4ec7 | 436 | py | Python | terrascript/resource/hashicorp/time.py | mjuenema/python-terrascript | 6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d | [
"BSD-2-Clause"
] | 507 | 2017-07-26T02:58:38.000Z | 2022-01-21T12:35:13.000Z | terrascript/resource/hashicorp/time.py | mjuenema/python-terrascript | 6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d | [
"BSD-2-Clause"
] | 135 | 2017-07-20T12:01:59.000Z | 2021-10-04T22:25:40.000Z | terrascript/resource/hashicorp/time.py | mjuenema/python-terrascript | 6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d | [
"BSD-2-Clause"
] | 81 | 2018-02-20T17:55:28.000Z | 2022-01-31T07:08:40.000Z | # terrascript/resource/hashicorp/time.py
# Automatically generated by tools/makecode.py (24-Sep-2021 15:28:43 UTC)
import terrascript
class time_offset(terrascript.Resource):
pass
class time_rotating(terrascript.Resource):
pass
class time_sleep(terrascript.Resource):
pass
class time_static(terrascript.Resource):
pass
__all__ = [
"time_offset",
"time_rotating",
"time_sleep",
"time_static",
]
| 15.571429 | 73 | 0.727064 | 53 | 436 | 5.754717 | 0.471698 | 0.311475 | 0.301639 | 0.27541 | 0.314754 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033149 | 0.169725 | 436 | 27 | 74 | 16.148148 | 0.809392 | 0.252294 | 0 | 0.266667 | 1 | 0 | 0.139319 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.266667 | 0.066667 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 5 |
6e586a50296760a7df1f709c8846e660d4d26708 | 81 | py | Python | api.py | miketineo/places | 94adaf7f8e5c8f5909f0407207019e9a0651ebbe | [
"MIT"
] | null | null | null | api.py | miketineo/places | 94adaf7f8e5c8f5909f0407207019e9a0651ebbe | [
"MIT"
] | null | null | null | api.py | miketineo/places | 94adaf7f8e5c8f5909f0407207019e9a0651ebbe | [
"MIT"
] | null | null | null | from flask import Flask, request, json, Response
from pymongo import MongoClient
| 27 | 48 | 0.82716 | 11 | 81 | 6.090909 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135802 | 81 | 2 | 49 | 40.5 | 0.957143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
6e745874ca8e7b2d8831e90de9567194a2502bc1 | 243 | py | Python | languages/python/topics/urls/P001_URLEncoding_UsingUrllib2.py | lakshmikanth-tesla/DeveloperNotes2Myself | 9a5dad930ddbb99ace46d2d672109e8553aecbc2 | [
"MIT"
] | 2 | 2019-05-25T10:09:00.000Z | 2022-03-11T09:06:23.000Z | languages/python/topics/urls/P001_URLEncoding_UsingUrllib2.py | lakshmikanth-tesla/DeveloperNotes2Myself | 9a5dad930ddbb99ace46d2d672109e8553aecbc2 | [
"MIT"
] | 2 | 2020-03-31T04:30:17.000Z | 2020-10-30T07:54:28.000Z | languages/python/topics/urls/P001_URLEncoding_UsingUrllib2.py | lakshmikanth-tesla/DeveloperNotes2Myself | 9a5dad930ddbb99ace46d2d672109e8553aecbc2 | [
"MIT"
] | 4 | 2019-07-12T13:18:56.000Z | 2021-11-17T08:04:55.000Z | import urllib2
urlString1 = "NIFTY 25"
urlString2 = 'NIFTY A\B\C\D'
urlString3 = '22/01/2014'
# Using urllib2 library
print urllib2.quote(urlString1, safe='')
print urllib2.quote(urlString2, safe='')
print urllib2.quote(urlString3, safe='')
| 22.090909 | 40 | 0.736626 | 33 | 243 | 5.424242 | 0.575758 | 0.201117 | 0.284916 | 0.234637 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097674 | 0.115226 | 243 | 10 | 41 | 24.3 | 0.734884 | 0.08642 | 0 | 0 | 0 | 0 | 0.140909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 0.428571 | 0 | 0 | 0 | null | 1 | 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 | 1 | 0 | 5 |
6edae75d1472ea6c4bd689df7d05681edfedeb17 | 127 | py | Python | loopnova/routes.py | polyedre/loopnova | 34566bfb9cdd05c7b4c087738a1ef8b1146c1cc3 | [
"MIT"
] | null | null | null | loopnova/routes.py | polyedre/loopnova | 34566bfb9cdd05c7b4c087738a1ef8b1146c1cc3 | [
"MIT"
] | null | null | null | loopnova/routes.py | polyedre/loopnova | 34566bfb9cdd05c7b4c087738a1ef8b1146c1cc3 | [
"MIT"
] | null | null | null | from flask import Blueprint
main = Blueprint('main', __name__)
@main.route('/')
def hello_world():
return "Hello, World!" | 18.142857 | 34 | 0.692913 | 16 | 127 | 5.1875 | 0.6875 | 0.313253 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149606 | 127 | 7 | 35 | 18.142857 | 0.768519 | 0 | 0 | 0 | 0 | 0 | 0.140625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.2 | 0.6 | 0.4 | 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 | 1 | 1 | 0 | 0 | 5 |
42db122cbf48403c7eb2172c1d27b482a056abc8 | 63 | py | Python | docs/papers/wpmvp14/experiments/sum0.py | davidbrochart/pythran | 24b6c8650fe99791a4091cbdc2c24686e86aa67c | [
"BSD-3-Clause"
] | 1,647 | 2015-01-13T01:45:38.000Z | 2022-03-28T01:23:41.000Z | docs/papers/wpmvp14/experiments/sum0.py | davidbrochart/pythran | 24b6c8650fe99791a4091cbdc2c24686e86aa67c | [
"BSD-3-Clause"
] | 1,116 | 2015-01-01T09:52:05.000Z | 2022-03-18T21:06:40.000Z | docs/papers/wpmvp14/experiments/sum0.py | davidbrochart/pythran | 24b6c8650fe99791a4091cbdc2c24686e86aa67c | [
"BSD-3-Clause"
] | 180 | 2015-02-12T02:47:28.000Z | 2022-03-14T10:28:18.000Z | #pythran export sum0(float [])
def sum0(r):
return vsum(r)
| 15.75 | 30 | 0.650794 | 10 | 63 | 4.1 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039216 | 0.190476 | 63 | 3 | 31 | 21 | 0.764706 | 0.460317 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 5 |
42fcfe04f201ab7390b7209587b49547ef630846 | 143 | py | Python | website/sent/admin.py | HARSHIT-GUPTA-coder/sentimeter | 20b8ed90e036d346d91da43853afb16f9c1dc88e | [
"MIT"
] | null | null | null | website/sent/admin.py | HARSHIT-GUPTA-coder/sentimeter | 20b8ed90e036d346d91da43853afb16f9c1dc88e | [
"MIT"
] | null | null | null | website/sent/admin.py | HARSHIT-GUPTA-coder/sentimeter | 20b8ed90e036d346d91da43853afb16f9c1dc88e | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Data,Keys
# Register your models here.
admin.site.register(Data)
admin.site.register(Keys) | 28.6 | 32 | 0.811189 | 22 | 143 | 5.272727 | 0.545455 | 0.155172 | 0.293103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097902 | 143 | 5 | 33 | 28.6 | 0.899225 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 1 | 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 | 5 |
6e2b0ecd14cc7f8d8707892f54a4592be1439fa0 | 4,581 | py | Python | tests/test_timeseries_acc_month.py | patello/homeplotter | af4ed04d24b078a5061360218610c0382e5d749f | [
"MIT"
] | null | null | null | tests/test_timeseries_acc_month.py | patello/homeplotter | af4ed04d24b078a5061360218610c0382e5d749f | [
"MIT"
] | null | null | null | tests/test_timeseries_acc_month.py | patello/homeplotter | af4ed04d24b078a5061360218610c0382e5d749f | [
"MIT"
] | null | null | null | import datetime
import math
import itertools
import pytest
import calendar
from homeplotter.timeseries import TimeSeries
sample_data = {
"both-broken":[[datetime.date(2020, 10, 12), 200.0],[datetime.date(2020, 11, 24), 50.0],[datetime.date(2020, 12, 5), 200.0], [datetime.date(2020, 12, 30), 400.0], [datetime.date(2020, 12, 31), -300], [datetime.date(2021, 2, 2), 100],[datetime.date(2021,3,11),60]],
"last-broken":[[datetime.date(2020, 10, 1), 200.0],[datetime.date(2020, 11, 24), 50.0],[datetime.date(2020, 12, 5), 200.0], [datetime.date(2020, 12, 30), 400.0], [datetime.date(2020, 12, 31), -300], [datetime.date(2021, 2, 2), 100],[datetime.date(2021,3,11),60]],
"last-broken-year":[[datetime.date(2020, 10, 1), 200.0],[datetime.date(2020, 11, 24), 50.0],[datetime.date(2020, 12, 5), 200.0], [datetime.date(2020, 12, 30), 400.0], [datetime.date(2020, 12, 31), -300], [datetime.date(2021, 1, 2), 100]],
"first-broken":[[datetime.date(2020, 10, 12), 200.0],[datetime.date(2020, 11, 24), 50.0],[datetime.date(2020, 12, 5), 200.0], [datetime.date(2020, 12, 30), 400.0], [datetime.date(2020, 12, 31), -300], [datetime.date(2021, 2, 2), 100],[datetime.date(2021,3,31),60]],
"first-broken-year":[[datetime.date(2020, 12, 5), 200.0], [datetime.date(2020, 12, 30), 400.0], [datetime.date(2020, 12, 31), -300], [datetime.date(2021, 2, 2), 100],[datetime.date(2021,3,31),60]],
"both-even":[[datetime.date(2020, 10, 1), 200.0],[datetime.date(2020, 11, 24), 50.0],[datetime.date(2020, 12, 5), 200.0], [datetime.date(2020, 12, 30), 400.0], [datetime.date(2020, 12, 31), -300], [datetime.date(2021, 2, 2), 100],[datetime.date(2021,3,31),60]],
"one-month":[[datetime.date(2020, 12, 1), 200.0],[datetime.date(2020, 12, 5), 50.0],[datetime.date(2020, 12, 31), 300.0]],
}
def expected_start_date(date, padding):
year = date.year
month = date.month
if padding or date.day == 1:
return datetime.date(year,month,1)
else:
if month < 12:
return datetime.date(year,month+1,1)
else:
return datetime.date(year+1,1,1)
def expected_end_date(date, padding):
year = date.year
month = date.month
if padding or date.day==calendar.monthrange(year,month)[1]:
return datetime.date(year,month,1)
else:
if month > 1:
return datetime.date(year,month-1,1)
else:
return datetime.date(year-1,12,1)
@pytest.mark.parametrize("padding,sample_key", itertools.product([False,True],sample_data.keys()))
def test_accumulate__len(padding,sample_key):
ts = TimeSeries(sample_data[sample_key])
original_len = len(ts.data)
start_date = expected_start_date(ts.data[0][0],padding)
end_date = expected_end_date(ts.data[-1][0], padding)
expected_len = (end_date.year-start_date.year)*12+(end_date.month-start_date.month)+1
ts.accumulate(1,"Month",padding=padding)
assert(len(ts.data) == expected_len)
@pytest.mark.parametrize("padding,sample_key", itertools.product([False,True],sample_data.keys()))
def test_accumulate__start_date(padding,sample_key):
sd = sample_data[sample_key]
ts = TimeSeries(sd)
ts.accumulate(1,"Month",padding=padding)
assert(ts.get_x()[0]==expected_start_date(sd[0][0],padding))
assert(ts.get_x()[0].day==1)
@pytest.mark.parametrize("padding,sample_key", itertools.product([False,True],sample_data.keys()))
def test_accumulate__steps(padding,sample_key):
ts = TimeSeries(sample_data[sample_key])
ts.accumulate(1,"Month",padding=padding)
for i in range(1,len(ts.data)):
assert((ts.data[i][0]-ts.data[i-1][0]).days == calendar.monthrange(ts.data[i-1][0].year,ts.data[i-1][0].month)[1])
@pytest.mark.parametrize("padding,sample_key", itertools.product([False,True],sample_data.keys()))
def test_accumulate__end_date(padding,sample_key):
sd = sample_data[sample_key]
ts = TimeSeries(sd)
ts.accumulate(1,"Month",padding=padding)
assert(ts.get_x()[-1]==expected_end_date(sd[-1][0],padding))
assert(ts.get_x()[-1].day==1)
@pytest.mark.parametrize("padding,sample_key", itertools.product([False,True],sample_data.keys()))
def test_accumulate__sum(padding,sample_key):
sd = sample_data[sample_key]
ts = TimeSeries(sd)
ts.accumulate(1,"Month",padding=padding)
for i in range(len(ts.data)):
cum_sum = 0
for data in sd:
if ts.data[i][0]<=data[0]<ts.data[i][0]+datetime.timedelta(calendar.monthrange(ts.data[i][0].year,ts.data[i][0].month)[1]):
cum_sum+=data[1]
assert(ts.data[i][1]==cum_sum) | 53.267442 | 269 | 0.663174 | 738 | 4,581 | 4.020325 | 0.101626 | 0.194135 | 0.167172 | 0.137513 | 0.79609 | 0.762386 | 0.738793 | 0.717897 | 0.715875 | 0.684193 | 0 | 0.127972 | 0.13687 | 4,581 | 86 | 270 | 53.267442 | 0.622408 | 0 | 0 | 0.373333 | 0 | 0 | 0.043649 | 0 | 0 | 0 | 0 | 0 | 0.093333 | 1 | 0.093333 | false | 0 | 0.08 | 0 | 0.253333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 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 | 5 |
6e3f7d5d8755e5d2d49e1d8e5dcb93e6392b11d9 | 164 | py | Python | scbw_mq/parser/__init__.py | Games-and-Simulations/sc-mq | f9ae798948add7fd84b77d75ca26ade94620f84e | [
"MIT"
] | 2 | 2018-05-10T18:10:28.000Z | 2018-05-13T18:14:33.000Z | scbw_mq/parser/__init__.py | Games-and-Simulations/sc-mq | f9ae798948add7fd84b77d75ca26ade94620f84e | [
"MIT"
] | 1 | 2019-09-20T14:14:49.000Z | 2019-09-20T14:14:49.000Z | scbw_mq/parser/__init__.py | Games-and-Simulations/sc-mq | f9ae798948add7fd84b77d75ca26ade94620f84e | [
"MIT"
] | null | null | null | from .producer import launch_producer, ProducerConfig
# You shouldn't need to use anything else other than these:
__all__ = ['launch_producer', 'ProducerConfig']
| 27.333333 | 59 | 0.786585 | 21 | 164 | 5.857143 | 0.809524 | 0.227642 | 0.455285 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134146 | 164 | 5 | 60 | 32.8 | 0.866197 | 0.347561 | 0 | 0 | 0 | 0 | 0.27619 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 1 | 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 | 5 |
2857355188e9f99f351f97525c7965b768f5909f | 993 | py | Python | scripts/remove_html.py | IgnacioPardo/PythonGalore | 352226597956bedd6f89c9e417133f9c7eede9c5 | [
"MIT"
] | null | null | null | scripts/remove_html.py | IgnacioPardo/PythonGalore | 352226597956bedd6f89c9e417133f9c7eede9c5 | [
"MIT"
] | null | null | null | scripts/remove_html.py | IgnacioPardo/PythonGalore | 352226597956bedd6f89c9e417133f9c7eede9c5 | [
"MIT"
] | null | null | null | from bs4 import BeautifulSoup
text = 'Para protegerte del coronavirus, hay algunas acciones básicas que te pueden ayudar:\n1.<strong style="color:#f2674a"> Lavate las manos a menudo</strong> con agua y jabón durante al menos 20 segundos</div><div class="divider"></div><center> <div class="emoji" style="font-size: 70px">💧 🧼 👏</div></center>\n2. <strong style="color:#f2674a">Evita tocarte</strong> la cara con las manos sin lavar🚫🤦\n3. #QuedateEnCasa🏠\n4. Al toser o estornudar, <strong style="color:#f2674a">cubrite la boca y la nariz con el codo flexionado🤧💪</strong> y lávate las manos con agua y jabón o con un desinfectante de manos a base de alcohol\nhttps://fpp.org.pe/wp-content/uploads/2019/08/Lavado-de-manos-1200x768.jpg'
import re
print(re.sub(r"(?i)\b((?:https?://|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'\".,<>?«»“”‘’]))", '', BeautifulSoup(text, 'html.parser').text))
| 124.125 | 703 | 0.633434 | 159 | 993 | 4.018868 | 0.672956 | 0.015649 | 0.018779 | 0.103286 | 0.00939 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044444 | 0.093656 | 993 | 7 | 704 | 141.857143 | 0.654444 | 0 | 0 | 0 | 0 | 0.5 | 0.878147 | 0.298087 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
289ab0d984db6b48e302af9cafe2bf866b584fd1 | 18 | py | Python | python/testData/intentions/PyConvertFormatOperatorToMethodIntentionTest/starWidth.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/intentions/PyConvertFormatOperatorToMethodIntentionTest/starWidth.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/intentions/PyConvertFormatOperatorToMethodIntentionTest/starWidth.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | s = '%*d' % (4, 5) | 18 | 18 | 0.222222 | 4 | 18 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 0.277778 | 18 | 1 | 18 | 18 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
289c5d4cac1c102ae0f62d05579adeb3c1c90088 | 225 | py | Python | mitmirror/data/users/__init__.py | Claayton/mitmirror-api | a78ec3aa84aa3685a26bfaf5e1ba2a3f0f8405d1 | [
"MIT"
] | null | null | null | mitmirror/data/users/__init__.py | Claayton/mitmirror-api | a78ec3aa84aa3685a26bfaf5e1ba2a3f0f8405d1 | [
"MIT"
] | 1 | 2021-10-09T20:42:03.000Z | 2021-10-09T20:42:03.000Z | mitmirror/data/users/__init__.py | Claayton/mitmirror-api | a78ec3aa84aa3685a26bfaf5e1ba2a3f0f8405d1 | [
"MIT"
] | null | null | null | """Arquivo de inicializacao para o metodo users"""
from .register_user import RegisterUser
from .get_user import GetUser
from .get_users import GetUsers
from .update_user import UpdateUser
from .delete_user import DeleteUser
| 32.142857 | 50 | 0.831111 | 32 | 225 | 5.6875 | 0.59375 | 0.21978 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12 | 225 | 6 | 51 | 37.5 | 0.919192 | 0.195556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
9541753dafbda86063ca69dc5d77aa02b511cf67 | 42,622 | py | Python | sandy-disaster-recovery/random_password.py | toddjcrane/crisiscleanup-legacy | 74dbad143ebc3bfae4cc5afc478e43ab4033ff69 | [
"Apache-2.0"
] | 1 | 2017-01-07T21:44:21.000Z | 2017-01-07T21:44:21.000Z | sandy-disaster-recovery/random_password.py | aarontitus/crisiscleanup-legacy | 74dbad143ebc3bfae4cc5afc478e43ab4033ff69 | [
"Apache-2.0"
] | 1 | 2021-03-26T00:25:19.000Z | 2021-03-26T00:25:19.000Z | sandy-disaster-recovery/random_password.py | toddjcrane/crisiscleanup-legacy | 74dbad143ebc3bfae4cc5afc478e43ab4033ff69 | [
"Apache-2.0"
] | 1 | 2017-09-07T09:52:15.000Z | 2017-09-07T09:52:15.000Z | import random
word_list = ['about', 'above', 'absent', 'added', 'address', 'admit', 'after', 'again', 'against', 'agree', 'ahead', 'air', 'aircraft', 'airplane', 'airport', 'album', 'almost', 'along', 'alphabet', 'also', 'always', 'among', 'angry', 'animal', 'annoy', 'another', 'answer', 'anything', 'anyway', 'anywhere', 'applaud', 'apple', 'april', 'arm', 'army', 'around', 'arrive', 'artist', 'asked', 'asleep', 'attack', 'attic', 'august', 'aunt', 'avenue', 'awake', 'away', 'awesome', 'awning', 'babble', 'back', 'backpack', 'baffle', 'bake', 'baked', 'bald', 'balloon', 'banana', 'band', 'bank', 'barbecue', 'bare', 'bark', 'barn', 'base', 'baseball', 'basin', 'basket', 'batch', 'bath', 'bathroom', 'bathtub', 'battle', 'bawl', 'beach', 'bead', 'beak', 'beam', 'bean', 'bear', 'because', 'bee', 'beef', 'beehive', 'been', 'beet', 'before', 'began', 'begin', 'behave', 'behind', 'being', 'bell', 'belly', 'below', 'belt', 'bench', 'bend', 'bent', 'bess', 'best', 'beth', 'better', 'between', 'bicycle', 'bike', 'bill', 'bing', 'bird', 'birth', 'birthday', 'blade', 'blame', 'blanch', 'blank', 'blanket', 'bleach','blend', 'blended', 'bless', 'blimp', 'blind', 'blink', 'blip', 'bliss', 'block', 'blond', 'bloom', 'blot', 'blown', 'bluebird', 'bluff', 'blunt', 'blur', 'blurb', 'blurt', 'blush', 'boast', 'boat', 'bobsled', 'body', 'boil', 'bold', 'bomb', 'bond', 'bone', 'bong', 'bonnet', 'bonus', 'book', 'books', 'boom', 'boost', 'boot', 'booth', 'born', 'boss', 'both', 'bottle', 'bowl', 'box', 'brace', 'brag', 'braid', 'brain', 'brake', 'bran', 'branch', 'brand', 'brass', 'brat', 'brave', 'brawl', 'brawn', 'bread', 'break', 'breath', 'bred', 'brick', 'bright', 'brim', 'bring', 'brisk', 'broil', 'broiler', 'broke', 'brook', 'broom', 'broth', 'brother', 'brownie', 'brunt', 'brush', 'brute', 'bubble', 'buck', 'bucket', 'buddy', 'built', 'bump', 'bunch', 'bundle', 'bunk', 'bunny', 'bunt', 'burn', 'burnt', 'burst', 'buses', 'bust', 'busy', 'button', 'buzz', 'cabin', 'cage', 'cake', 'called', 'camp', 'camping', 'candle', 'candy', 'cane', 'cape', 'car', 'card', 'care', 'careful', 'carrot', 'carry', 'cart', 'cartoon', 'case', 'cask', 'cass', 'cast', 'catch', 'catnip', 'cattle', 'cave', 'ceiling', 'cell', 'cent', 'cereal', 'chain', 'chair', 'chalk', 'champ', 'change', 'channel', 'charge', 'chart', 'chase', 'chat', 'cheap', 'check', 'cheek', 'cheer', 'cheese', 'chess', 'chew', 'chicken', 'chief', 'child', 'children', 'chill', 'chime', 'chin', 'chip', 'chipmunk', 'chirp', 'chisel', 'choice', 'chomp', 'choose', 'chose', 'chow', 'chuck', 'chuckle', 'chug', 'chunk', 'churn', 'circle', 'circus', 'city', 'clack', 'clad', 'claim', 'clam', 'clamp', 'clan', 'clang', 'clap', 'clapped', 'clark', 'clash', 'clasp', 'class', 'claw', 'clay', 'clean', 'clerk', 'clever', 'click', 'cliff', 'climb', 'cling', 'clink', 'clip', 'cloak', 'clock', 'clod', 'close', 'closed', 'clot', 'cloth', 'cloud', 'clown', 'cluck', 'clue', 'clump', 'clung', 'clutch', 'coach', 'coal', 'coast', 'coat', 'coax', 'code', 'coffee', 'coil', 'coin', 'cold', 'collect', 'color', 'colorful', 'comet', 'compact', 'compass', 'computer', 'cone', 'cook', 'cookie', 'cool', 'coop', 'copy', 'cord', 'cork', 'corn', 'corner', 'cost', 'cough', 'could', 'count', 'country', 'course', 'cover', 'cowboy', 'cozy', 'crab', 'craft', 'cramp', 'crane', 'crash', 'crashing', 'crate', 'crawl', 'crayon', 'crept', 'crew', 'crib', 'crick', 'crime', 'crinkle', 'crisp', 'croak', 'crock', 'crook', 'crop', 'cross', 'crow', 'crown', 'cruise', 'crumb', 'crunch', 'crush', 'crust', 'crystal', 'cube', 'cuddle', 'cuff', 'cupcake', 'curb', 'cure', 'curl', 'curve', 'cute', 'cycle', 'damp', 'dance', 'danger', 'dangle', 'danny', 'dare', 'dark', 'dart', 'darts', 'dash', 'database', 'dawn', 'daylight', 'days', 'dealt', 'dear', 'december', 'decent', 'deck', 'dent', 'dentist', 'desk', 'diamond', 'dime', 'dimple', 'dine', 'dinner', 'dinosaur', 'dirt', 'dish', 'disk', 'ditch', 'dive', 'dock', 'doctor', 'does', 'doghouse', 'doll', 'dollar', 'done', 'door', 'down', 'doze', 'draft', 'drag', 'dragon', 'drain', 'drake', 'drank', 'drape', 'draw', 'drawn', 'dread', 'dress', 'drew', 'drift', 'drive', 'driveway', 'droop', 'drop', 'dropped', 'drove', 'drum', 'duck', 'dude', 'dump', 'dunk', 'during', 'dusk', 'dust', 'dusted', 'each', 'eagle', 'earache', 'ears', 'earth', 'easel', 'east', 'edge', 'egg', 'eight', 'elbow', 'elephant', 'else', 'empty', 'enjoy', 'enough', 'erase', 'eraser', 'even', 'ever', 'every', 'everyone', 'example', 'expanded', 'explore', 'extra', 'eyes', 'fabric', 'face', 'fact', 'fade', 'family', 'fan', 'fang', 'farm', 'fast', 'father', 'fault', 'fawn', 'feast', 'feather', 'feed', 'feel', 'feet', 'fell', 'fellow', 'felt', 'fence', 'fern', 'festival', 'fetch', 'fiddle', 'fifty', 'fight', 'file', 'fill', 'filled', 'film', 'find', 'fine', 'finish', 'fire', 'first', 'fish', 'fishing', 'five', 'flag', 'flagpole', 'flake', 'flame', 'flap', 'flash', 'flat', 'flaunt', 'flaw', 'fled', 'flesh', 'flick', 'flight', 'fling', 'flip', 'flirt', 'flit', 'float', 'flock', 'floor', 'flop', 'flour', 'flow', 'flower', 'flown', 'fluffy', 'flute', 'foal', 'foam', 'foil', 'fold', 'follow', 'fond', 'food', 'football', 'forehead', 'forest', 'forever', 'form', 'fort', 'forth', 'found', 'four', 'fowl', 'frame', 'fray', 'free', 'freeway', 'fresh', 'friday', 'fried', 'friend', 'frill', 'frisk', 'frog', 'from', 'front', 'fruit','full', 'fume', 'fungus', 'fuse', 'fuss', 'game', 'garden', 'gate', 'gave', 'gaze', 'gemstone', 'general', 'gentle', 'gift', 'ginger', 'giraffe', 'give', 'given', 'giving', 'glad', 'glade', 'gland', 'glass', 'glaze', 'gleam', 'glean', 'glide', 'glint', 'glob', 'globe', 'gloss', 'gloves', 'glow', 'glue', 'goat', 'gobble', 'goblin', 'goes', 'going', 'gold', 'golf', 'good', 'goose', 'gown', 'grace', 'graceful', 'grade', 'grain', 'gram', 'grand', 'grandma', 'grandpa', 'grant', 'grape', 'grapes', 'grasp', 'grass', 'grate', 'grateful', 'gray', 'great', 'green', 'greet', 'grew', 'grill', 'grilled', 'grin', 'grinned', 'grip', 'gripe', 'grit', 'groan', 'grocery', 'grouch', 'grow', 'grown', 'growth', 'gruff', 'grumble', 'grunt', 'guitar', 'gulp', 'gumball', 'gust', 'habit', 'hail', 'hair', 'half', 'hall', 'hammer', 'handed', 'handle', 'hang', 'happen', 'happy', 'harp', 'hat', 'hatch', 'haul', 'haunt', 'have', 'hawk', 'head', 'headache', 'heal', 'health', 'heap', 'hear', 'heat', 'heavy', 'heel', 'held', 'hello', 'help', 'helped', 'helpful', 'herb', 'here', 'herself', 'hidden', 'hide', 'hide', 'high', 'highway', 'hike', 'hill', 'himself', 'hint', 'hire', 'hoist', 'hold', 'home', 'homemade', 'homework', 'honk', 'hood', 'hoof', 'hook', 'hoop', 'hoot', 'hope', 'hopeful', 'horn', 'horse', 'hose', 'hospital', 'host', 'hotrod', 'hour', 'house', 'housefly', 'however', 'howl', 'huddle', 'huff', 'hugged', 'human', 'humid', 'hump', 'hung', 'hungry', 'hunk', 'hunt', 'hunted', 'hurdle', 'hurl', 'hurry', 'hurt', 'hush', 'husk', 'ice', 'ice', 'idea', 'inch', 'index', 'indian', 'indoors', 'insect', 'inside', 'insisted', 'instead', 'insulted', 'intern', 'into', 'invent', 'invented', 'itch', 'jake', 'jane', 'january', 'jazz', 'jean', 'jeep', 'jeff', 'jelly', 'jet', 'jiggle', 'jill', 'jimmy', 'jingle', 'joan', 'jogged', 'join', 'joint', 'joke', 'josh', 'juggle', 'juice', 'july', 'jumble', 'jump', 'jumped', 'jumping', 'june', 'jungle', 'junk', 'just', 'keep', 'kept', 'kick', 'kickball', 'kicked', 'kind', 'king', 'kingfish', 'kirk', 'kiss', 'kitchen', 'kite', 'kits', 'kitten', 'kitty', 'knack', 'knee', 'kneecap', 'kneel', 'knelt', 'knew', 'knife', 'knight', 'knit', 'knob', 'knock', 'knockout', 'knot', 'knothole', 'know', 'known', 'lace', 'lack', 'lady', 'laid', 'lake', 'lamb', 'lame', 'lamp', 'land', 'landed', 'lane', 'lapdog', 'larch', 'large', 'last', 'lasted', 'latch', 'late', 'later', 'laugh', 'launch', 'lawn', 'lazy', 'leaf', 'leak', 'leap', 'learn', 'leave', 'left', 'leg', 'lend', 'lending', 'lent', 'less', 'letter', 'liar', 'library', 'lien', 'life', 'lift', 'light', 'like', 'lime', 'limit', 'limp', 'line', 'lined', 'link', 'lint', 'lion', 'lipstick', 'liquid', 'list', 'listen', 'little', 'live', 'lived', 'lives', 'living', 'load', 'loaf', 'loan', 'lock', 'loft', 'loin', 'lollipop', 'lone', 'long', 'look', 'looked', 'loop', 'loose', 'loot', 'lord', 'lose', 'lost', 'loud', 'luck', 'lullaby', 'lump', 'lunch', 'lunchbox', 'lung', 'lurk', 'lute', 'mabel', 'mack', 'made', 'magnet', 'maid', 'mail', 'main', 'mall', 'mama', 'man', 'mane', 'many', 'map', 'march', 'mark', 'market', 'mascot', 'mash', 'mask', 'mass', 'mast', 'match', 'mate', 'math', 'matt', 'maybe', 'maze', 'meal', 'mean', 'meant', 'meat', 'medicine', 'meet', 'melt', 'melted', 'mend', 'meow', 'mess', 'meteor', 'mice', 'mick', 'middle', 'might', 'mike', 'mild', 'mile', 'milk', 'mill', 'mind', 'mine', 'mint', 'minute', 'mirror', 'mirth', 'miss', 'missed', 'mist', 'mitch', 'mite', 'mitt', 'mitten', 'moan', 'mock', 'model', 'moist', 'mold', 'mole', 'moment', 'monday', 'money', 'monkey', 'monster', 'mood', 'moon', 'mope', 'more', 'morning', 'mosquito', 'most', 'motel', 'mother', 'mountain', 'mouse', 'mouth', 'move', 'movie', 'much', 'mule', 'munch', 'murk', 'mush', 'music', 'musk', 'must', 'mute', 'muzzle', 'myself', 'nail', 'name', 'named', 'nanny', 'napkin', 'napper', 'nasty', 'nate', 'naughty', 'navy', 'near', 'neat', 'neck', 'necklace', 'necktie', 'need', 'needle', 'nerve', 'nest', 'never', 'newscast', 'next', 'nibble', 'nice', 'nick', 'nickel', 'nickname', 'night', 'nine', 'nips', 'nobody', 'noise', 'none', 'nook', 'noon', 'norm', 'north', 'nose', 'note', 'nothing', 'november', 'nowhere', 'number', 'nurse', 'oatmeal', 'obey', 'object', 'october', 'office', 'often', 'oink', 'okay', 'once', 'onion', 'only', 'onto', 'ooze', 'open', 'orange', 'order', 'other', 'ouch', 'outdoors', 'outside', 'oven', 'over', 'owner', 'pace', 'pack', 'paddle', 'page', 'paid', 'pail', 'pain', 'painful', 'paint', 'pajamas', 'pancake', 'pane', 'pant', 'pants', 'papa', 'paper', 'parent', 'park', 'part', 'pass', 'passport', 'past', 'patch', 'path', 'pause', 'pawn', 'peace', 'peaceful', 'peach', 'peak', 'pebble', 'peck', 'peddle', 'peek', 'peel', 'peep', 'pelt', 'pencil', 'pendulum', 'pennies', 'penny', 'people', 'pepper', 'perch', 'perfect', 'perfume', 'perk', 'person', 'pest', 'pete', 'piano', 'pick', 'picnic', 'picture', 'pigpen', 'pike', 'pile', 'pill', 'pillow', 'pilot', 'pinball', 'pinch', 'pine', 'ping', 'pink', 'pipe', 'pitch', 'pitched', 'pizza', 'place', 'plain', 'plan', 'plane', 'planet', 'plank', 'planned', 'plant', 'planted', 'plants', 'plastic', 'plate', 'player', 'please', 'plod', 'plop', 'plot', 'plow', 'ploy', 'plug', 'plum', 'plump', 'plums', 'plus', 'pocket', 'point', 'poison', 'poke', 'pomp', 'pond', 'pong', 'pony', 'pooch', 'poodle', 'pool', 'popcorn', 'pope', 'porch', 'pork', 'port', 'possible', 'post', 'post', 'poster', 'potato', 'potpie', 'pour', 'prance', 'prank', 'pray', 'prayer', 'present', 'press', 'pretend', 'pretty', 'pretzel', 'price', 'pride', 'prim', 'prime', 'print', 'printed', 'printer', 'prison', 'prize', 'probe', 'problem', 'prod', 'program', 'promise', 'proof', 'prop', 'proud', 'prowl', 'public', 'puff', 'pull', 'pumpkin', 'punk', 'punt', 'pupil', 'puppet', 'puppy', 'pure', 'purple', 'purse', 'push', 'puzzle', 'pyramid', 'quack', 'quake', 'quarter', 'queen', 'question', 'quick', 'quiet', 'quill', 'quilt', 'quinn', 'quit', 'rabbit', 'race', 'race', 'rack', 'radar', 'raft', 'rage', 'raid', 'rail', 'railroad', 'rain', 'rainbow', 'rake', 'ranch', 'rang', 'rant', 'rash', 'rather', 'rattle', 'ray', 'reach', 'read', 'ready', 'real', 'really', 'record', 'recycle', 'refund', 'remember', 'renew', 'rent', 'rented', 'rest', 'rested', 'restful', 'restroom', 'return', 'reward', 'ribbon', 'rice', 'rich', 'rick', 'riddle', 'ride', 'rifle', 'right', 'rind', 'ring', 'ringing', 'rink', 'ripe', 'rise', 'risk', 'river', 'rivera', 'road', 'roam', 'roast', 'robe', 'robin', 'robot', 'rock', 'rocket', 'rode', 'roll', 'rome', 'romp', 'roof', 'room', 'roost', 'rope', 'rose', 'round', 'royal', 'rude', 'ruff', 'rule', 'ruled', 'rumble', 'rung', 'runs', 'runt', 'runway', 'rush', 'rushed', 'rust', 'saddle', 'safe', 'said', 'sail', 'sailboat', 'sake', 'salad', 'sale', 'salt', 'same', 'sample', 'sand', 'sandbox', 'sandwich', 'sandy', 'sang', 'sank', 'sash', 'saturday', 'sauce', 'saucer', 'save', 'saved', 'says', 'scab', 'scald', 'scale', 'scalp', 'scan', 'scar', 'scare', 'scarf', 'school', 'scissors', 'scold', 'scoop', 'scoot', 'scope', 'scorch', 'score', 'scout', 'scowl', 'scram', 'scrap', 'scrape', 'scratch', 'scream', 'screen', 'screw', 'script', 'scrub', 'scuff', 'scum', 'seal', 'search', 'seat', 'second', 'secret', 'seek', 'seek', 'seem', 'seen', 'seesaw', 'self', 'sell', 'send', 'sent', 'sentence', 'serve', 'served', 'seth', 'settle', 'seven', 'shack', 'shade', 'shadow', 'shake', 'shaking', 'shall', 'shameful', 'shampoo', 'shape', 'share', 'shark', 'sharp', 'shawl', 'shed', 'sheep', 'sheet', 'shelf', 'shell', 'shifted', 'shine', 'ship', 'shirk', 'shirt', 'shoe', 'shoes', 'shook', 'shoot', 'shop', 'shore', 'short', 'shot', 'should', 'shoulder', 'shout', 'shovel', 'show', 'showed', 'shown', 'shrimp', 'shrink', 'shrub', 'shrug', 'shrunk', 'shut', 'shuttle', 'sick', 'side', 'sidewalk', 'sift', 'sigh', 'sight', 'silence', 'silent', 'silk', 'silly', 'simple', 'since', 'sing', 'sink', 'sinking', 'sips', 'siren', 'sister', 'site', 'sits', 'sitter', 'sixth', 'size', 'skate', 'skeleton', 'skid', 'skill', 'skim', 'skin', 'skip', 'skips', 'skirt', 'skit', 'skull', 'skunk', 'slam', 'slammed', 'slang', 'slant', 'slap', 'slash', 'slat', 'slate', 'slave', 'slaw', 'slay', 'sled', 'sleep', 'slept', 'slice', 'slick', 'slid', 'slide', 'slight', 'slim', 'sling', 'slip', 'slit', 'sloan', 'slob', 'slop', 'slope', 'slot', 'slow', 'slug', 'slum', 'slump', 'slur', 'smack', 'small', 'smart', 'smash', 'smear', 'smell', 'smelled', 'smile', 'smiled', 'smiling', 'smith', 'smock', 'smog', 'smoke', 'smoky', 'smooth', 'smug', 'snack', 'snag', 'snail', 'snake', 'snap', 'snare', 'sneak', 'sneeze', 'sniff', 'snip', 'snipe', 'snob', 'snoop', 'snooze', 'snore', 'snort', 'snow', 'snowball', 'snowman', 'snub', 'snuff', 'snug', 'snuggle', 'soak', 'soap', 'sock', 'soda', 'sofa', 'soft', 'softball', 'software', 'soil', 'solid', 'some', 'someone', 'song', 'soon', 'soot', 'sore', 'sorry', 'sort', 'sound', 'soup', 'sour', 'south', 'space', 'span', 'spank', 'spark', 'sparkle', 'spat', 'speak', 'speck', 'spectrum', 'sped', 'speech', 'speed', 'spell', 'spelled', 'spend', 'spent', 'sphere', 'spice', 'spider', 'spike', 'spill', 'spilled', 'spin', 'spine', 'spiral', 'spit', 'spite', 'splash', 'splat', 'splendid', 'splint', 'split', 'splotch', 'spoil', 'spoke', 'sponge', 'spool', 'spoon', 'sport', 'sports', 'spot', 'sprain', 'sprawl', 'spray', 'spring', 'sprinkle', 'sprint', 'spruce', 'spry', 'spud', 'spun', 'spunk', 'spur', 'spurn', 'spurt', 'square', 'squash', 'squawk', 'squeak', 'squeeze', 'squinted', 'squirt', 'stab', 'stack', 'stage', 'stain', 'stair', 'stale', 'stall', 'stamp', 'stan', 'stand', 'standing', 'star', 'start', 'startle', 'state', 'states', 'stay', 'steal', 'steam', 'steep', 'stem', 'step', 'stern', 'steve', 'stick', 'sticky', 'stiff', 'stiffer', 'still', 'sting', 'stink', 'stir', 'stomach', 'stomp', 'stone', 'stood', 'stool', 'stop', 'store', 'stork', 'storm', 'story', 'stove', 'strain', 'strand', 'strange', 'straw', 'stray', 'stream', 'street', 'stretch', 'strict', 'strike', 'string', 'stripe', 'strong', 'struck', 'strung', 'stub', 'stuck', 'study', 'stuff', 'stump', 'stun', 'stung', 'stunt', 'such', 'sudden', 'suddenly', 'sugar', 'suit', 'suitcase', 'sulk', 'summer', 'sun', 'sunblock', 'sunburn', 'sunday', 'sunfish', 'sung', 'sunk', 'sunlit', 'sunny', 'sunrise', 'sunset', 'sunshine', 'suntan', 'supper', 'sure', 'surf', 'surprise', 'surveyor', 'swam', 'swamp', 'swan', 'swang', 'swap', 'swarm', 'swat', 'swatch', 'sway', 'sweat', 'sweep', 'sweet', 'swell', 'swept', 'swerve', 'swift', 'swig', 'swim', 'swimmer', 'swimming', 'swine', 'swing', 'swirl', 'swish', 'swishing', 'switch', 'swoop', 'sword', 'sworn', 'swum', 'swung', 'system', 'table', 'tablet', 'tack', 'tadpole', 'tail', 'take', 'tale', 'talented', 'talk', 'tall', 'tame', 'tank', 'tape', 'tapestry', 'tapped', 'taps', 'task', 'tattle', 'taught', 'teach', 'teacher', 'team', 'tease', 'teeth', 'tell', 'tend', 'tennis', 'tent', 'tenth', 'term', 'tess', 'test', 'texas', 'than', 'thank', 'thankful', 'that', 'their', 'them', 'then', 'there', 'these', 'they', 'thick', 'thigh', 'thimble', 'thin', 'thing', 'things', 'think', 'thinner', 'thinnest', 'third', 'thirst', 'this', 'thorn', 'those', 'though', 'thought', 'thread', 'threat', 'three', 'threw', 'thrill', 'throne', 'through', 'throw', 'thud', 'thumb', 'thursday', 'tick', 'ticket', 'tickle', 'tide', 'tiger', 'tile', 'till', 'tilt', 'tilted', 'time', 'tint', 'tiny', 'tiptoe', 'tiptop', 'tire', 'tired', 'tissue', 'toad', 'toast', 'tock', 'today', 'todd', 'together', 'toil', 'toilet', 'told', 'tomato', 'tomorrow', 'tonight', 'took', 'tool', 'tooth', 'topcoat', 'torch', 'torn', 'torpedo', 'toss', 'touch', 'toward', 'towel', 'town', 'toys', 'trace', 'track', 'trade', 'traffic', 'trail', 'train', 'tram', 'tramp', 'trap', 'trash', 'travel', 'tray', 'tread', 'tree', 'treetop', 'trek', 'trend', 'triangle', 'tribe', 'trick', 'trim', 'trip', 'trod', 'trot', 'trouble', 'troy', 'truck', 'trumpet', 'trunk', 'trust', 'trusted', 'truth', 'tube', 'tuesday', 'tugboat', 'tugged', 'tulip', 'tumble', 'tummy', 'tune', 'tunnel', 'turf', 'turkey', 'turn', 'turtle', 'tusk', 'twang', 'tweed', 'tweet', 'twelve', 'twenty', 'twice', 'twig', 'twin', 'twine', 'twinkle', 'twirl', 'twist', 'twisted', 'twitch', 'twitter', 'ugly', 'umbrella', 'uncle', 'under', 'unfair', 'unhappy', 'united', 'until', 'unzip', 'upon', 'upset', 'upstairs', 'urge', 'used', 'useful', 'uses', 'vacation', 'vacuum', 'value', 'vampire', 'vane', 'vanish', 'vase', 'vent', 'verb', 'verse', 'very', 'vest', 'vine', 'visit', 'visitor', 'voice', 'void', 'vote', 'vulture', 'waddle', 'wade', 'wage', 'wagon', 'waist', 'wait', 'wake', 'walk', 'walked', 'wall', 'want', 'wanted', 'warm', 'wash', 'waste', 'watch', 'water', 'wave', 'waves', 'wealth', 'weapon', 'wear', 'weather', 'weave', 'web', 'weed', 'week', 'weekend', 'weld', 'well', 'went', 'wept', 'were', 'west', 'wettest', 'whack', 'whale', 'wham', 'what', 'whatever', 'wheat', 'wheel', 'when', 'whenever', 'where', 'which', 'whiff', 'while', 'whine', 'whip', 'whiplash', 'whir', 'whirl', 'whisk', 'whisper', 'whistle', 'whiz', 'whole', 'whose', 'wick', 'wide', 'wife', 'wiggle', 'will', 'wilt', 'wind', 'windmill', 'window', 'wine', 'wing', 'wink', 'winkle', 'winter', 'wipe', 'wire', 'wise', 'wish', 'wished', 'with', 'without', 'woke', 'woman', 'wonder', 'wood', 'woof', 'wool', 'word', 'wore', 'work', 'worked', 'world', 'worm', 'worn', 'worse', 'would', 'wove', 'wrap', 'wreath', 'wreck', 'wrench', 'wriggle', 'wrinkle', 'wrist', 'write', 'writing', 'written', 'wrong', 'wrote', 'yard', 'yarn', 'yawn', 'year', 'years', 'yell', 'yoke', 'york', 'young', 'zack', 'zebra', 'zest', 'zigzag', 'zing', 'zipped', 'zipper', 'zone', 'zoom', 'aaron', 'ability', 'aboard', 'about', 'abroad', 'achieve', 'aching', 'acidic', 'acres', 'across', 'active', 'actual', 'acutely', 'adapt', 'adapted', 'added', 'address', 'adept', 'admiral', 'admire', 'admired', 'admit', 'adopt', 'adopted', 'adore', 'adored', 'afraid', 'after', 'again', 'age', 'aged', 'agency', 'agent', 'agile', 'agree', 'aid', 'aide', 'air', 'airfare', 'airport', 'ajar', 'alarmed', 'alert', 'alive', 'all', 'allen', 'alley', 'allow', 'alloy', 'almanac', 'almost', 'along', 'alpha', 'already', 'also', 'always', 'amazing', 'among', 'amount', 'amounts', 'ample', 'amused', 'amusing', 'ancient', 'android', 'andy', 'anemone', 'angelic', 'angrily', 'angry', 'annual', 'another', 'answer', 'antique', 'anxious', 'any', 'anyhow', 'anyway', 'apache', 'app', 'apple', 'applied', 'approve', 'apps', 'apron', 'apt', 'arc', 'arctic', 'are', 'area', 'area;', 'areas', 'arid', 'army', 'around', 'ashamed', 'aside', 'assets', 'assist', 'assists', 'assured', 'aster', 'athlete', 'atlas', 'attic', 'august', 'aurora', 'austere', 'autumn', 'average', 'award', 'awarded', 'awards', 'aware', 'away', 'awesome', 'awful', 'awfully', 'awkward', 'awning', 'azalea', 'babyish', 'back', 'bad', 'badly', 'bag', 'baggage', 'baggy', 'bags', 'bake', 'baking', 'ballet', 'balloon', 'balmy', 'bands', 'bank', 'bare', 'barn', 'barren', 'bartow', 'base', 'based', 'bases', 'basic', 'basket', 'bat', 'batboy', 'batch', 'bathing', 'bathtub', 'batting', 'bay', 'beach', 'beam', 'beaming', 'beaten', 'beater', 'became', 'because', 'bed', 'bedroom', 'been', 'bees', 'before', 'began', 'begonia', 'beguine', 'begun', 'behind', 'beings', 'belated', 'believe', 'bell', 'bells', 'belly', 'beloved', 'below', 'bench', 'benefit', 'berries', 'best', 'better', 'bias', 'bicycle', 'bike', 'bikini', 'bin', 'binder', 'birth', 'bite', 'bitter', 'bland', 'blank', 'blanket', 'blaring', 'bleak', 'bleakly', 'blender', 'blind', 'blindly', 'blinds', 'bliss', 'blog', 'blond', 'blood', 'blossom', 'blurred', 'board', 'boat', 'boating', 'bogus', 'boil', 'boiling', 'bold', 'boldly', 'bolero', 'bony', 'boogie', 'book', 'bop', 'boring', 'boss', 'bossa', 'bossy', 'both', 'bottle', 'bouncy', 'bounty', 'bouquet', 'bourr\xc3\xa9e', 'bowed', 'bowl', 'bowls', 'box', 'brand', 'brass', 'brave', 'bravely', 'bravery', 'bravo', 'bread', 'breath', 'breeze', 'brett', 'brief', 'briefly', 'bright', 'brisk', 'briskly', 'broiler', 'broken', 'bronze', 'broom', 'bruce', 'bruised', 'brush', 'bubbly', 'bucket', 'buckets', 'buggy', 'bulbs', 'bulky', 'bullpen', 'bumpy', 'bun', 'bunches', 'bundles', 'bundt', 'bunk', 'bunny', 'bunt', 'buoyant', 'burly', 'bus', 'bush', 'busily', 'busy', 'but', 'butter', 'buttery', 'button', 'buzzing', 'cab', 'cabin', 'cabinet', 'caddy', 'cajun', 'cake', 'calla', 'calm', 'calmly', 'camera', 'camp', 'camping', 'can', 'cancer', 'candid', 'candy', 'canine', 'canna', 'cap', 'capable', 'cape', 'capital', 'car', 'carafe', 'card', 'cards', 'care', 'careful', 'caring', 'carioca', 'carport', 'carrion', 'carry', 'cart', 'case', 'cast', 'catch', 'catcher', 'ceiling', 'cell', 'cellar', 'center', 'certain', 'chalk', 'champ', 'chances', 'charge', 'charge;', 'charity', 'chart', 'cheap', 'cheery', 'cherish', 'chicory', 'chief', 'chiefly', 'child', 'chill', 'chilly', 'chimney', 'china', 'chinook', 'choice', 'chop', 'chris', 'christ', 'chrome', 'chubby', 'church', 'cirrus', 'claim', 'clam', 'class', 'classic', 'clean', 'cleaner', 'cleanly', 'cleanup', 'clear', 'clearly', 'clever', 'client', 'climate', 'clip', 'close', 'closed', 'closely', 'closet', 'clothes', 'cloud', 'clouds', 'cloudy', 'clown', 'clumsy', 'clutch', 'coarse', 'coast', 'coffee', 'cold', 'coldly', 'colored', 'column', 'comes', 'command', 'commend', 'common', 'compass', 'complex', 'compost', 'concern', 'conch', 'conga', 'connect', 'consent', 'cont.', 'contact', 'contain', 'content', 'contra', 'control', 'cook', 'cooked', 'cooker', 'cookie', 'cookies', 'cool', 'cooler', 'coolly', 'copious', 'copper', 'coral', 'corn', 'cornice', 'corny', 'corpse', 'correct', 'corrupt', 'cosmo', 'cost', 'costly', 'council', 'counter', 'country', 'county', 'courage', 'course', 'cove', 'crab', 'cracker', 'crafty', 'crayons', 'crazily', 'crazy', 'cream', 'creamer', 'creamy', 'create', 'creepy', 'crib', 'crisis', 'crisp', 'crocus', 'crooked', 'crossly', 'crowded', 'crowds', 'cruel', 'cruelly', 'cruise', 'cube', 'cuddly', 'cumulus', 'curly', 'current', 'curtain', 'curvy', 'custard', 'customs', 'cut', 'cute', 'cutely', 'cutlery', 'cutter', 'cutting', 'cycle', 'cyclone', 'dahlia', 'daily', 'daisy', 'damage', 'damaged', 'damp', 'dance', 'dancing', 'dapper', 'daring', 'dark', 'darkly', 'darling', 'data', 'dates', 'day', 'days', 'dead', 'deadly', 'deal', 'dear', 'dearest', 'dearly', 'debris', 'decent', 'decimal', 'deck', 'deeply', 'defense', 'defiant', 'deftly', 'degree', 'delayed', 'delight', 'deluge', 'dense', 'densely', 'dental', 'depart', 'derecho', 'design', 'desk', 'details', 'deux', 'devil', 'devoted', 'dew', 'diamond', 'did', 'digital', 'dignity', 'dim', 'dimly', 'dimpled', 'dining', 'dipper', 'direct', 'disco', 'dish', 'dismal', 'distant', 'dive', 'divine', 'diving', 'dizzy', 'dock', 'does', 'dogwood', 'dollar', 'done', 'door', 'doorway', 'dopey', 'dopily', 'dormer', 'doting', 'dough', 'down', 'dozens', 'drab', 'drafty', 'dragon', 'drain', 'drapes', 'dreary', 'drift', 'drive', 'driven', 'driving', 'drizzle', 'droopy', 'drought', 'droves', 'dry', 'dryer', 'dual', 'duct', 'due', 'dull', 'dune', 'during', 'dust', 'dustpan', 'dutch', 'dutiful', 'duty', 'each', 'eager', 'eagerly', 'early', 'earnest', 'ease', 'easel', 'easily', 'easy', 'eaves', 'ebb', 'eddy', 'edger', 'edible', 'effect', 'effort', 'efforts', 'egg', 'either', 'elastic', 'elated', 'elderly', 'elegant', 'embark', 'eminent', 'emma', 'empty', 'enable', 'end', 'engine', 'english', 'enough', 'enraged', 'enter', 'entire', 'entry', 'envious', 'epic', 'equal', 'equally', 'erase', 'eraser', 'etc', 'even', 'evenly', 'every', 'evil', 'exactly', 'exalted', 'exam', 'example', 'excels', 'excited', 'execute', 'exist', 'exotic', 'expert', 'explore', 'extra', 'eye', 'eyed', 'facing', 'fact', 'factor', 'factors', 'failed', 'failing', 'fails', 'failure', 'faint', 'fair', 'fairly', 'fake', 'fall', 'falls', 'family', 'famous', 'fan', 'fancy', 'far', 'faraway', 'farm', 'fast', 'fatal', 'fatally', 'fated', 'father', 'fatigue', 'faucet', 'fearful', 'fedex', 'feeder', 'feisty', 'feline', 'fellows', 'fema', 'fence', 'fenced', 'ferry', 'few', 'fickle', 'field', 'fielder', 'fiery', 'file', 'filthy', 'finally', 'find', 'finder', 'fine', 'fins', 'fire', 'fires', 'firm', 'first', 'fish', 'fishing', 'fit', 'fitting', 'five', 'fix', 'fixed', 'flaky', 'flash', 'flashy', 'flat', 'flawed', 'flew', 'flight', 'flimsy', 'fling', 'flock', 'flood', 'floor', 'floret', 'florist', 'flour', 'flow', 'flower', 'flowers', 'flowery', 'fluffy', 'fluid', 'flung', 'flurry', 'fly', 'flytrap', 'focus', 'focused', 'fog', 'foil', 'folder', 'folk', 'fond', 'fondly', 'fondue', 'food', 'foolish', 'footed', 'for', 'forced', 'foreign', 'forest', 'forever', 'forget', 'forging', 'fork', 'forked', 'formal', 'former', 'forward', 'foul', 'four', 'fourth', 'foxtrot', 'frail', 'frame', 'frank', 'frankly', 'frayed', 'free', 'freely', 'freesia', 'freeze', 'freezer', 'french', 'fresh', 'frigid', 'frilly', 'frisbee', 'frizzy', 'from', 'front', 'frost', 'frosty', 'frozen', 'frug', 'frugal', 'fruit', 'fryer', 'frying', 'fujita', 'full', 'fully', 'fun', 'fund', 'funding', 'funnel', 'funny', 'furnace', 'fuse', 'fussy', 'fuzzy', 'gable', 'gaggle', 'gains', 'gale', 'game', 'garage', 'garbage', 'garden', 'garlic', 'garment', 'gaseous', 'gate', 'gauge', 'gavote', 'gear', 'gel', 'general', 'genius', 'gentle', 'gently', 'genuine', 'georgia', 'gerbera', 'get', 'getaway', 'giddy', 'gift', 'gifted', 'gigue', 'gimma', 'girder', 'giving', 'gladly', 'glaring', 'glass', 'glasses', 'gleeful', 'global', 'globe', 'gloomy', 'glory', 'glossy', 'glowing', 'glue', 'glum', 'goal', 'going', 'gold', 'good', 'google', 'gordon', 'govern', 'grace', 'grades', 'grand', 'grandma', 'grant', 'grants', 'grass', 'grater', 'graupel', 'grave', 'gray', 'great', 'greatly', 'greedy', 'green', 'griddle', 'grill', 'grim', 'grimly', 'grimy', 'grin', 'grinder', 'groomed', 'gross', 'grouchy', 'ground', 'grow', 'growing', 'grown', 'grubby', 'grumpy', 'guide', 'guided', 'guilty', 'gull', 'gully', 'gummy', 'gust', 'gutter', 'gutters', 'gutting', 'gym', 'had', 'hail', 'hairy', 'half', 'hall', 'hallway', 'halo', 'hammock', 'hamper', 'hander', 'handily', 'handled', 'handy', 'hang', 'happen', 'happily', 'happy', 'harmful', 'harsh', 'harshly', 'has', 'hastily', 'hasty', 'hat', 'hateful', 'have', 'haze', 'header', 'healing', 'healthy', 'heaps', 'heart', 'hearted', 'hearty', 'heat', 'heater', 'heather', 'heavily', 'heavy', 'hedges', 'hefty', 'helmet', 'help', 'helped', 'helpful', 'helping', 'hence', 'herb', 'herd', 'here', 'hermit', 'hiatus', 'hidden', 'hideous', 'high', 'highest', 'highly', 'highway', 'hike', 'hiking', 'hinge', 'hip', 'his', 'history', 'hit', 'hits', 'hitter', 'hoarse', 'hoe', 'hoedown', 'hokey', 'holiday', 'hollow', 'home', 'homely', 'homes', 'honest', 'honesty', 'honey', 'honey;', 'honor', 'honored', 'hoop', 'hop', 'hope', 'hopeful', 'horde', 'hose', 'hostel', 'hostile', 'hotel', 'hourly', 'house', 'however', 'hub', 'hug', 'hugely', 'hula', 'human', 'humans', 'humble', 'humid', 'humming', 'humor', 'hundred', 'hungry', 'hurtful', 'husband', 'husky', 'hustle', 'ice', 'icicle', 'icily', 'icky', 'icons', 'icy', 'idea', 'ideal', 'ideals', 'idiotic', 'idle', 'ignored', 'ill', 'illegal', 'imagine', 'immense', 'impish', 'import', 'impose', 'improve', 'impure', 'inborn', 'indeed', 'index', 'indoors', 'infield', 'infuser', 'inherit', 'ink', 'inn', 'inning', 'instant', 'instead', 'intent', 'inter', 'into', 'irene', 'iridium', 'iris', 'iron', 'island', 'isobar', 'issues', 'itchy', 'its', 'jaded', 'jagged', 'jam', 'jamb', 'jasmine', 'jaunty', 'jazz', 'jealous', 'jeremy', 'jersey', 'jesus', 'jet', 'jewelry', 'jewels', 'jig', 'jittery', 'jive', 'jobs', 'johnny', 'join', 'joining', 'joint', 'jolly', 'jonquil', 'joseph', 'journey', 'jovial', 'joy', 'joyful', 'joyous', 'jug', 'juice', 'juicer', 'juicy', 'july', 'jumble', 'jumbo', 'jump', 'jumpy', 'june', 'junior', 'just', 'justice', 'justly', 'karissa', 'kayak', 'keen', 'keenly', 'keep', 'kelp', 'kelvin', 'kettle', 'kevin', 'key', 'kin', 'kind', 'kindly', 'kiss', 'kitchen', 'klutzy', 'knife', 'knobby', 'knot', 'knotty', 'know', 'knowing', 'known', 'koftos', 'kookily', 'kooky', 'kosher', 'labor', 'lace', 'ladder', 'ladle', 'lady', 'lagoon', 'lake', 'lambada', 'lame', 'lamp', 'lanai', 'land', 'landing', 'lanky', 'lantana', 'laptop', 'large', 'last', 'lasting', 'lastly', 'late', 'lately', 'later', 'latin', 'latter', 'laugh', 'laundry', 'laurel', 'lavish', 'lawful', 'lawn', 'lazily', 'lazy', 'lead', 'leader', 'leaders', 'leading', 'leads', 'leafy', 'league', 'lean', 'learn', 'learned', 'leave', 'leeward', 'left', 'leisure', 'less', 'lesson', 'lessons', 'let', 'level', 'liberty', 'library', 'license', 'lid', 'life', 'lifting', 'light', 'lightly', 'likable', 'like', 'likely', 'likes', 'lilac', 'lily', 'limbo', 'limited', 'limits', 'limp', 'limpet', 'limping', 'limply', 'lindy', 'line', 'lineage', 'linear', 'lined', 'linen', 'liner', 'lines', 'lineup', 'links', 'lintel', 'liquid', 'list', 'lit', 'lithely', 'little', 'live', 'lively', 'lives', 'livid', 'living', 'load', 'loaded', 'loads', 'local', 'lock', 'lodge', 'lodging', 'loft', 'loftily', 'log', 'london', 'lone', 'lonely', 'long', 'look', 'loose', 'loosely', 'lose', 'lost', 'lot', 'lots', 'loud', 'loudly', 'lovable', 'lovely', 'loving', 'low', 'loyal', 'loyally', 'loyalty', 'lucid', 'luckily', 'lucky', 'luggage', 'lumber', 'lumpy', 'lunch', 'machine', 'mad', 'made', 'madly', 'mailbox', 'mainly', 'major', 'maker', 'makes', 'mallow', 'mama', 'mambo', 'mammoth', 'manage', 'manager', 'manner', 'mantle', 'many', 'map', 'markers', 'married', 'masher', 'mass', 'masses', 'massive', 'master', 'mat', 'math', 'mature', 'may', 'maypole', 'mazurka', 'meager', 'meal', 'mealy', 'mean', 'meanly', 'means', 'meant', 'measly', 'meat', 'meaty', 'media', 'medical', 'medium', 'meek', 'meet', 'mega', 'mellow', 'melodic', 'member', 'memo', 'mercury', 'mercy', 'merely', 'merging', 'merit', 'merrily', 'merry', 'messy', 'metal', 'mexican', 'mild', 'miles', 'milky', 'mill', 'mimosa', 'minor', 'minty', 'minuet', 'mirage', 'mirror', 'miserly', 'mist', 'mistral', 'misty', 'mitt', 'mixed', 'mixer', 'mixing', 'mob', 'mobile', 'mock', 'modern', 'modest', 'modesty', 'moist', 'mold', 'mom', 'mommy', 'money', 'monsoon', 'monthly', 'moore', 'mop', 'moral', 'morally', 'more', 'mormon', 'morning', 'mortar', 'most', 'mostly', 'motel', 'mother', 'moving', 'much', 'muck', 'mucking', 'muddy', 'muffin', 'muffled', 'mug', 'muggy', 'mundane', 'murky', 'museum', 'mushy', 'mussels', 'must', 'musty', 'muted', 'myrtle', 'naive', 'napkin', 'narrow', 'nastily', 'nasty', 'natural', 'nature', 'natured', 'naughty', 'neap', 'near', 'nearby', 'nearly', 'neat', 'neatly', 'need', 'needed', 'needily', 'needs', 'needy', 'nervous', 'nesting', 'never', 'new', 'newel', 'next', 'nice', 'nicely', 'nifty', 'nightly', 'nimble', 'nimbus', 'nine', 'nippy', 'noble', 'nobody', 'noisily', 'noisy', 'non', 'none', 'nonstop', 'nook', 'norm', 'normal', 'nosily', 'not', 'notable', 'noted', 'nova', 'novel', 'now', 'nowcast', 'noxious', 'nuclear', 'numb', 'numbers', 'numbly', 'nursery', 'nut', 'nutty', 'obese', 'obey', 'oblong', 'obvious', 'occupy', 'ocean', 'oceans', 'october', 'odd', 'oddball', 'oddly', 'offbeat', 'offense', 'officer', 'often', 'oily', 'okay', 'old', 'once', 'only', 'oodles', 'open', 'opener', 'openly', 'operate', 'optimal', 'opulent', 'orange', 'orchard', 'orchid', 'order', 'orderly', 'orders', 'org', 'organic', 'ornate', 'ornery', 'other', 'others', 'our', 'out', 'outflow', 'outings', 'outlet', 'outlook', 'outside', 'oval', 'oven', 'overdue', 'overlap', 'ozone', 'pack', 'packed', 'pad', 'page', 'paint', 'pale', 'paltry', 'pan', 'pane', 'pansy', 'pantry', 'paper', 'parcel', 'parched', 'parent', 'park', 'partial', 'partly', 'pas', 'pasque', 'passage', 'passed', 'passive', 'past', 'paste', 'pastel', 'path', 'patio', 'pavane', 'paw', 'pea', 'peach', 'peeler', 'pelican', 'pellets', 'pen', 'pencil', 'pencils', 'peony', 'people', 'pepper', 'peppery', 'percent', 'perfect', 'perform', 'perfume', 'perky', 'permit', 'permits', 'pesky', 'pestle', 'petal', 'petty', 'pewter', 'phelps', 'phlox', 'phony', 'photos', 'pick', 'picnic', 'picture', 'pie', 'pieces', 'pier', 'piles', 'pileus', 'pillar', 'pin', 'pinch', 'pink', 'pins', 'pitch', 'pitcher', 'pitiful', 'pizza', 'plain', 'plainly', 'plan', 'plane', 'plant', 'planter', 'plastic', 'plate', 'platter', 'playful', 'pleased', 'plenty', 'plump', 'plush', 'point', 'pointed', 'poised', 'pokey', 'polar', 'polite', 'polka', 'pond', 'ponies', 'pool', 'poor', 'poorly', 'pop', 'popcorn', 'popper', 'poppy', 'popular', 'porch', 'port', 'portico', 'portly', 'posh', 'post', 'posted', 'poster', 'pot', 'potable', 'potato', 'pots', 'pouch', 'poultry', 'powers', 'prairie', 'present', 'press', 'pretty', 'pricey', 'prickly', 'primary', 'prime', 'primly', 'printer', 'privacy', 'private', 'prize', 'probity', 'proceed', 'procure', 'profit', 'profuse', 'program', 'project', 'promise', 'proper', 'proud', 'proudly', 'proves', 'prudent', 'public', 'pungent', 'puny', 'pupil', 'pure', 'purity', 'purple', 'push', 'pushy', 'putrid', 'puzzled', 'python', 'quaint', 'qualify', 'quality', 'queasy', 'queen', 'quiche', 'quick', 'quicker', 'quickly', 'quiet', 'quietly', 'quilt', 'quirky', 'quite', 'quiz', 'rack', 'radar', 'radiant', 'radio', 'ragged', 'railing', 'rain', 'rainbow', 'rake', 'ramekin', 'range', 'rapid', 'rapidly', 'rare', 'rarely', 'rash', 'rate', 'rather', 'raw', 'read', 'readily', 'reading', 'ready', 'real', 'reality', 'really', 'reamer', 'reams', 'reason', 'rebuilt', 'receive', 'recent', 'recess', 'recipe', 'red', 'reef', 'reel', 'refined', 'reflect', 'regal', 'reggae', 'regular', 'rejoice', 'relax', 'reliant', 'relief', 'rely', 'remote', 'removal', 'remover', 'repair', 'require', 'resort', 'respect', 'rest', 'result', 'retired', 'return', 'reward', 'rice', 'rich', 'richly', 'ridge', 'right', 'rightly', 'rigid', 'rigidly', 'ringed', 'rip', 'ripe', 'risk', 'road', 'roasted', 'roaster', 'robust', 'rocks', 'rod', 'role', 'rolling', 'roof', 'room', 'rope', 'rose', 'roses', 'rotten', 'rough', 'roughly', 'round', 'rowdy', 'royal', 'rubber', 'rubbery', 'ruddy', 'rude', 'rudely', 'rug', 'rule', 'ruler', 'rumba', 'run', 'rundown', 'runny', 'rural', 'russian', 'sacks', 'sad', 'sadly', 'safari', 'safe', 'safely', 'sahana', 'sail', 'sailing', 'saints', 'salad', 'salsa', 'salt', 'salty', 'same', 'sand', 'sandals', 'sandbar', 'sandy', 'sane', 'santa', 'sash', 'sauce', 'saucer', 'saves', 'scads', 'scale', 'scaly', 'scarce', 'scared', 'scarily', 'scary', 'scenery', 'scented', 'science', 'scoop', 'score', 'scrawny', 'screen', 'scuba', 'sea', 'seagull', 'search', 'searing', 'season', 'second', 'secret', 'sector', 'secure', 'see', 'seeing', 'seemly', 'sego', 'seldom', 'self', 'selfish', 'send', 'sepal', 'serene', 'serious', 'serve', 'served', 'serves', 'service', 'serving', 'set', 'several', 'severe', 'shabby', 'shadow', 'shadowy', 'shady', 'shaker', 'shakily', 'shallow', 'share', 'shared', 'sharing', 'shark', 'sharma', 'sharp', 'sharply', 'shear', 'shears', 'shed', 'sheet', 'shekhar', 'shelf', 'shell', 'shelves', 'shingle', 'shiny', 'ship', 'shocked', 'shoddy', 'shoe', 'shore', 'short', 'shortly', 'shorts', 'should', 'shovel', 'shown', 'showy', 'shrill', 'shrilly', 'shrub', 'shy', 'shyly', 'sick', 'side', 'siding', 'sieve', 'sifter', 'sight', 'sights', 'sign', 'signed', 'signup', 'silent', 'silky', 'sill', 'silly', 'silver', 'similar', 'simple', 'simply', 'since', 'sinful', 'single', 'sink', 'sites', 'sized', 'skewers', 'ski', 'skilled', 'skillet', 'skinny', 'sky', 'sleepy', 'sleet', 'slew', 'slicer', 'slide', 'sliding', 'slight', 'slim', 'slimy', 'slipper', 'slow', 'slowly', 'slugger', 'slush', 'slushy', 'slyly', 'small', 'smart', 'smile', 'smith', 'smog', 'smoggy', 'smoke', 'smooth', 'smug', 'snacks', 'snap', 'snappy', 'sneaky', 'snoopy', 'snorkel', 'snow', 'soap', 'sod', 'soffit', 'soft', 'softly', 'soggy', 'soil', 'solely', 'solid', 'solidly', 'somber', 'some', 'somehow', 'son', 'soon', 'sore', 'soulful', 'soup', 'soupy', 'sour', 'source', 'sousta', 'spanish', 'sparse', 'spatula', 'special', 'speedy', 'spice', 'spices', 'spicy', 'spiffy', 'spinner', 'spiral', 'sponge', 'spoon', 'spoons', 'sport', 'spot', 'spotted', 'spouse', 'spray', 'spring', 'spry', 'squall', 'square', 'squeaky', 'stable', 'stacks', 'stadium', 'stage', 'staid', 'stained', 'stairs', 'stale', 'stand', 'staple', 'stapler', 'star', 'starchy', 'stark', 'starry', 'startup', 'state', 'states', 'station', 'stay', 'steak', 'steal', 'steam', 'steel', 'steep', 'step', 'steps', 'sternly', 'stew', 'sticky', 'stiff', 'still', 'stingy', 'stock', 'stolen', 'stomp', 'stone', 'stoop', 'storage', 'store', 'storm', 'stormy', 'story', 'stove', 'strange', 'stratus', 'stream', 'street', 'strict', 'strike', 'striped', 'strives', 'strong', 'student', 'stupid', 'sturdy', 'stylish', 'subdued', 'subtle', 'subtly', 'subway', 'succeed', 'success', 'such', 'sudden', 'sugar', 'sugary', 'suit', 'suited', 'summed', 'summer', 'sun', 'sunburn', 'sunday', 'sundry', 'sunhat', 'sunny', 'sunrise', 'sunset', 'suntan', 'super', 'superb', 'sure', 'surely', 'surf', 'surge', 'survey', 'susan', 'svelte', 'swarm', 'sweaty', 'sweet', 'sweetly', 'swell', 'swift', 'swiftly', 'swim', 'swing', 'switch', 'system', 'table', 'tack', 'tact', 'taffy', 'tag', 'takeoff', 'talk', 'tall', 'tame', 'tan', 'tango', 'tap', 'tape', 'tart', 'tasty', 'taught', 'taut', 'taxi', 'teacher', 'team', 'teapot', 'tedious', 'teeming', 'tell', 'tells', 'tend', 'tender', 'tens', 'tense', 'tensely', 'tent', 'tepid', 'tepidly', 'term', 'terrace', 'test', 'testy', 'text', 'thad', 'than', 'thanks', 'that', 'thaw', 'the', 'their', 'them', 'then', 'there', 'thereby', 'thermal', 'these', 'they', 'thick', 'thin', 'thing', 'things', 'think', 'thinkso', 'third', 'thirsty', 'this', 'thistle', 'thorny', 'those', 'though', 'three', 'thrift', 'thrifty', 'throng', 'through', 'throw', 'thumb', 'thunder', 'thus', 'ticket', 'tide', 'tidy', 'tiger', 'tightly', 'time', 'timely', 'timer', 'tin', 'tinted', 'tiny', 'tip', 'tired', 'titus', 'toaster', 'today', 'toilet', 'tongs', 'tons', 'too', 'tool', 'tools', 'tops', 'torn', 'tornado', 'total', 'totally', 'tote', 'tough', 'tour', 'tourist', 'towards', 'towel', 'towels', 'trace', 'track', 'tracks', 'trades', 'tragic', 'trail', 'train', 'trained', 'tram', 'tramway', 'trap', 'trash', 'travel', 'tray', 'traylor', 'tree', 'trellis', 'trevor', 'trick', 'tricky', 'tries', 'trim', 'trip', 'triple', 'trivet', 'trivial', 'troika', 'troop', 'tropic', 'trouble', 'trough', 'truly', 'trunk', 'trunks', 'trust', 'trusty', 'try', 'tsunami', 'tubby', 'tulip', 'tulips', 'tumbler', 'tureen', 'twice', 'twin', 'twist', 'twister', 'type', 'typhoon', 'ugly', 'umpire', 'umpteen', 'unaware', 'under', 'uneven', 'unfit', 'unhappy', 'uniform', 'unique', 'united', 'unity', 'unkempt', 'unknown', 'unlined', 'unlucky', 'unpack', 'unreal', 'unripe', 'unruly', 'unsung', 'untidy', 'until', 'untold', 'untried', 'untrue', 'unused', 'unusual', 'upbeat', 'update', 'updated', 'updraft', 'upon', 'upright', 'upset', 'upside', 'upward', 'upwind', 'uranium', 'urban', 'usable', 'use', 'used', 'useful', 'useless', 'user', 'users', 'using', 'usually', 'utter', 'utterly', 'vacant', 'vacuum', 'vague', 'vaguely', 'vain', 'vainly', 'valid', 'valley', 'value', 'valued', 'vane', 'vapid', 'vapor', 'vase', 'vast', 'vastly', 'vault', 'vehicle', 'velvety', 'vent', 'version', 'versus', 'very', 'vetch', 'vibrant', 'vicious', 'victory', 'video', 'view', 'vine', 'violent', 'virtual', 'visa', 'visible', 'visibly', 'visit', 'vital', 'vivid', 'voad', 'volumes', 'vortex', 'voyage', 'wading', 'waiting', 'walk', 'walkway', 'wall', 'waltz', 'wan', 'wander', 'want', 'wants', 'warlike', 'warm', 'warmer', 'warming', 'warmly', 'warmth', 'warning', 'warp', 'warped', 'wary', 'was', 'washer', 'washing', 'waste', 'watch', 'water', 'watery', 'watusi', 'wave', 'waves', 'wavy', 'waxed', 'weak', 'weakly', 'wealth', 'wealthy', 'wearily', 'weary', 'weather', 'webbed', 'wedge', 'wedges', 'wee', 'weeds', 'week', 'weekend', 'weekly', 'weeks', 'weepy', 'weighty', 'weird', 'welcome', 'well', 'were', 'western', 'wharf', 'what', 'wheel', 'when', 'where', 'which', 'while', 'whip', 'whisk', 'who', 'whole', 'wholly', 'why', 'wicked', 'wide', 'widely', 'wiggly', 'wildly', 'will', 'willing', 'willow', 'wilted', 'win', 'wind', 'winding', 'window', 'windy', 'winged', 'winter', 'wiry', 'wisdom', 'wise', 'wisely', 'with', 'without', 'witted', 'witty', 'wobbly', 'woeful', 'wok', 'wonder', 'wood', 'wooden', 'wool', 'woozy', 'word', 'wordy', 'work', 'worker', 'workers', 'working', 'works', 'world', 'worldly', 'worn', 'worried', 'worse', 'worst', 'worthy', 'wow', 'wrap', 'writing', 'wrong', 'wrongly', 'wry', 'yacht', 'yard', 'yards', 'year', 'yes', 'yet', 'yogurt', 'york', 'you', 'yucca', 'yummy', 'zeal', 'zealous', 'zester', 'zinc', 'zone', 'zoo']
def generate_password():
first_random = random.choice(word_list)
second_random = random.choice(word_list)
string = first_random + second_random + str(random.randint(100,999))
return string
| 4,262.2 | 42,365 | 0.569143 | 4,599 | 42,622 | 5.272885 | 0.835834 | 0.00099 | 0.001072 | 0.001485 | 0.002144 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000211 | 0.108817 | 42,622 | 9 | 42,366 | 4,735.777778 | 0.638216 | 0 | 0 | 0 | 0 | 0 | 0.565225 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.285714 | 0.285714 | 0 | 0.571429 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 5 |
9597cbd8c9becc8be6b9784a55cf4d3b72d7fe04 | 133 | py | Python | snake_wars/server/entities/food.py | Joffreybvn/snake-wars | 74732b29272c30af967d13e16d460b424a78cd98 | [
"MIT"
] | null | null | null | snake_wars/server/entities/food.py | Joffreybvn/snake-wars | 74732b29272c30af967d13e16d460b424a78cd98 | [
"MIT"
] | null | null | null | snake_wars/server/entities/food.py | Joffreybvn/snake-wars | 74732b29272c30af967d13e16d460b424a78cd98 | [
"MIT"
] | null | null | null |
from snake_wars.commons import Location
class Food:
def __init__(self, location: Location):
self.location = location
| 14.777778 | 43 | 0.714286 | 16 | 133 | 5.625 | 0.6875 | 0.266667 | 0.444444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.218045 | 133 | 8 | 44 | 16.625 | 0.865385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 1 | 1 | 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 | 5 |
95cae73cbeea73780b6e30bd964d8fa3f70bf2ee | 8,041 | py | Python | farms2face/home/migrations/0001_initial.py | dev1farms2face/f2f | 54e58187a68574bf2bd0dfb7e58a2b416336106a | [
"MIT"
] | null | null | null | farms2face/home/migrations/0001_initial.py | dev1farms2face/f2f | 54e58187a68574bf2bd0dfb7e58a2b416336106a | [
"MIT"
] | null | null | null | farms2face/home/migrations/0001_initial.py | dev1farms2face/f2f | 54e58187a68574bf2bd0dfb7e58a2b416336106a | [
"MIT"
] | 2 | 2018-06-19T12:12:08.000Z | 2018-06-25T18:45:36.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2017-07-20 06:27
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('facepackwizard', '0004_auto_20170324_1818'),
]
operations = [
migrations.CreateModel(
name='Base',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=1000)),
('helper', models.CharField(blank=True, max_length=1000, null=True)),
('description', models.CharField(blank=True, max_length=2000, null=True)),
('image', models.FileField(upload_to='images/base/')),
('skin_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='facepackwizard.SkinType')),
],
),
migrations.CreateModel(
name='CustomFacePack',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
],
),
migrations.CreateModel(
name='Ingredient',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=1000)),
('helper', models.CharField(blank=True, max_length=1000, null=True)),
('description', models.CharField(blank=True, max_length=2000, null=True)),
('image', models.FileField(upload_to='images/ingredients/')),
],
),
migrations.CreateModel(
name='Item',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(blank=True, max_length=1000)),
('price', models.DecimalField(decimal_places=2, default=0.0, max_digits=6)),
('helper', models.CharField(blank=True, max_length=1000)),
('createdte', models.DateTimeField(default=django.utils.timezone.now)),
],
),
migrations.CreateModel(
name='MixingAgent',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=1000)),
('helper', models.CharField(blank=True, max_length=1000, null=True)),
('description', models.CharField(blank=True, max_length=2000, null=True)),
('image', models.FileField(upload_to='images/mixing_agents/')),
('skin_type', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='facepackwizard.SkinType')),
],
),
migrations.CreateModel(
name='PrePack',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('highlights', models.CharField(blank=True, max_length=1000, null=True)),
('description', models.CharField(blank=True, max_length=5000, null=True)),
('who', models.CharField(blank=True, max_length=5000, null=True)),
('made_with', models.CharField(blank=True, max_length=1000, null=True)),
],
),
migrations.CreateModel(
name='PrePackIngredients',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('ingredient', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='home.Ingredient')),
('prepack', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='home.PrePack')),
],
),
migrations.CreateModel(
name='Recipe',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('mandatory_ingredient', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='home.Ingredient')),
('skin_concern', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='facepackwizard.SkinConcern')),
('skin_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='facepackwizard.SkinType')),
],
),
migrations.CreateModel(
name='SkinTypeConcernIngredient',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('ingredient', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='home.Ingredient')),
('skin_concern', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='facepackwizard.SkinConcern')),
('skin_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='facepackwizard.SkinType')),
],
),
migrations.CreateModel(
name='SkinTypeIngredient',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('ingredient', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='home.Ingredient')),
('skin_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='facepackwizard.SkinType')),
],
),
migrations.CreateModel(
name='FacePack',
fields=[
('item_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='home.Item')),
('image', models.FileField(null=True, upload_to='images/prepacks/')),
('made_with', models.CharField(blank=True, max_length=5000, null=True)),
('description', models.CharField(blank=True, max_length=5000, null=True)),
('base', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='home.Base')),
('mixing_agent', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='home.MixingAgent')),
],
bases=('home.item',),
),
migrations.AddField(
model_name='customfacepack',
name='optional_ingredient',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='home.Ingredient'),
),
migrations.AddField(
model_name='customfacepack',
name='questionnaire',
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='facepackwizard.QuestionnaireUserData'),
),
migrations.AddField(
model_name='customfacepack',
name='recipe',
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='home.Recipe'),
),
migrations.AddField(
model_name='customfacepack',
name='user',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL),
),
migrations.AddField(
model_name='prepack',
name='facepack',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='home.FacePack'),
),
migrations.AddField(
model_name='customfacepack',
name='facepack',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='home.FacePack'),
),
]
| 51.544872 | 184 | 0.607014 | 813 | 8,041 | 5.868389 | 0.148831 | 0.038566 | 0.064557 | 0.101446 | 0.767764 | 0.767764 | 0.714735 | 0.710124 | 0.689164 | 0.662545 | 0 | 0.017281 | 0.251586 | 8,041 | 155 | 185 | 51.877419 | 0.775507 | 0.008208 | 0 | 0.646259 | 1 | 0 | 0.136101 | 0.034119 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.034014 | 0 | 0.061224 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 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 | 5 |
95f63a98ad2fa4122722acca1ebf6aaac588b8fb | 86 | py | Python | home/admin.py | Sandaru95/docinease | 607560d2fd0bd5900d6d72856d502596a3533d8c | [
"Apache-2.0"
] | null | null | null | home/admin.py | Sandaru95/docinease | 607560d2fd0bd5900d6d72856d502596a3533d8c | [
"Apache-2.0"
] | null | null | null | home/admin.py | Sandaru95/docinease | 607560d2fd0bd5900d6d72856d502596a3533d8c | [
"Apache-2.0"
] | null | null | null | from django.contrib import admin
from .models import HwPdf
admin.site.register(HwPdf) | 21.5 | 32 | 0.825581 | 13 | 86 | 5.461538 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104651 | 86 | 4 | 33 | 21.5 | 0.922078 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
251ffb802417577b9f08207c5fa339bbabea82dc | 13,442 | py | Python | src/predictive_model/classification/tests/test_classification.py | WilliamsRizzi/ProcessMiningUNIPD2019_20 | 02b761873c5883d9e34c4d7077f82246d5da5315 | [
"MIT"
] | null | null | null | src/predictive_model/classification/tests/test_classification.py | WilliamsRizzi/ProcessMiningUNIPD2019_20 | 02b761873c5883d9e34c4d7077f82246d5da5315 | [
"MIT"
] | 6 | 2020-01-28T23:07:17.000Z | 2022-02-10T00:41:56.000Z | src/predictive_model/classification/tests/test_classification.py | WilliamsRizzi/ProcessMiningUNIPD2019_20 | 02b761873c5883d9e34c4d7077f82246d5da5315 | [
"MIT"
] | null | null | null | """
classification tests
"""
import itertools
import unittest
from django.test import TestCase
from src.clustering.models import ClusteringMethods
from src.core.core import calculate
from src.encoding.models import ValueEncodings
from src.jobs.tasks import prediction_task
from src.labelling.models import LabelTypes, ThresholdTypes
from src.predictive_model.classification.models import ClassificationMethods
from src.utils.tests_utils import create_test_job, create_test_encoding, create_test_labelling, \
create_test_predictive_model, create_test_clustering
class TestClassification(TestCase):
@unittest.skip('needs refactoring')
def test_no_exceptions(self):
filtered_labels = [enum.value for enum in LabelTypes]
filtered_classification_methods = [enum.value for enum in ClassificationMethods]
filtered_encoding_methods = [enum.value for enum in ValueEncodings]
filtered_padding = [True, False]
choices = [filtered_encoding_methods, filtered_padding, filtered_classification_methods, filtered_labels]
job_combinations = list(itertools.product(*choices))
for (encoding, padding, method, label) in job_combinations:
print(encoding, padding, method, label)
if method == 'nn' and (padding == False or label == LabelTypes.ATTRIBUTE_STRING.value):
pass
job = create_test_job(
predictive_model=create_test_predictive_model(prediction_method=method),
encoding=create_test_encoding(value_encoding=encoding, padding=padding),
labelling=create_test_labelling(label_type=label)
)
# with HidePrints():
calculate(job)
def test_prediction_task(self):
job = create_test_job()
prediction_task(job.id)
job.refresh_from_db()
self.assertEqual('completed', job.status)
def test_prediction_task_save_model(self):
job = create_test_job(create_models=True)
prediction_task(job.id)
job.refresh_from_db()
self.assertEqual('completed', job.status)
self.assertIsNotNone(job.predictive_model.model_path)
def test_prediction_task_save_model_clustering(self):
job = create_test_job(create_models=True,
clustering=create_test_clustering(clustering_type=ClusteringMethods.KMEANS.value))
prediction_task(job.id)
job.refresh_from_db()
self.assertEqual('completed', job.status)
self.assertIsNotNone(job.predictive_model.model_path)
self.assertIsNotNone(job.clustering.model_path)
@staticmethod
def results():
return {'f1score': 0.66666666666666663, 'acc': 0.5, 'auc': 0.16666666666666666, 'false_negative': 0,
'false_positive': 1, 'true_positive': 1, 'true_negative': 0, 'precision': 1.0, 'recall': 0.5}
@staticmethod
def results2():
return {'f1score': 0.0, 'acc': 0.0, 'true_positive': 0, 'true_negative': 0, 'false_negative': 2,
'false_positive': 0, 'precision': 0.0, 'recall': 0.0, 'auc': 0.0}
@staticmethod
def results3():
return {'f1score': 0.3333333333333333, 'acc': 0.5, 'true_positive': 0, 'true_negative': 1, 'false_negative': 1,
'false_positive': 0, 'precision': 0.25, 'recall': 0.5, 'auc': 0.5}
def test_class_knn(self):
job = create_test_job(
predictive_model=create_test_predictive_model(prediction_method=ClassificationMethods.KNN.value),
labelling=create_test_labelling(label_type=LabelTypes.ATTRIBUTE_STRING.value,
attribute_name='concept:name'),
clustering=create_test_clustering(clustering_type=ClusteringMethods.NO_CLUSTER.value)
)
result, _ = calculate(job)
del result['elapsed_time']
self.assertDictEqual(result, {'f1score': 0.0, 'acc': 0.0, 'precision': 0.0, 'recall': 0.0, 'true_positive': 0, 'true_negative': 0, 'false_negative': 2, 'false_positive': 0, 'auc': 0.0})
def test_class_randomForest(self):
job = create_test_job(
predictive_model=create_test_predictive_model(prediction_method=ClassificationMethods.RANDOM_FOREST.value),
labelling=create_test_labelling(label_type=LabelTypes.ATTRIBUTE_STRING.value,
attribute_name='concept:name'),
clustering=create_test_clustering(clustering_type=ClusteringMethods.NO_CLUSTER.value)
)
result, _ = calculate(job)
del result['elapsed_time']
self.assertDictEqual(result, self.results2())
def test_class_decisionTree(self):
job = create_test_job(
predictive_model=create_test_predictive_model(prediction_method=ClassificationMethods.DECISION_TREE.value),
labelling=create_test_labelling(label_type=LabelTypes.ATTRIBUTE_STRING.value,
attribute_name='concept:name'),
clustering=create_test_clustering(clustering_type=ClusteringMethods.NO_CLUSTER.value)
)
result, _ = calculate(job)
del result['elapsed_time']
self.assertDictEqual(result, {'f1score': 0.0, 'acc': 0.0, 'precision': 0.0, 'recall': 0.0, 'true_positive': 0, 'true_negative': 0, 'false_negative': 2, 'false_positive': 0, 'auc': 0.0})
def test_class_xgboost(self):
job = create_test_job(
predictive_model=create_test_predictive_model(prediction_method=ClassificationMethods.XGBOOST.value),
labelling=create_test_labelling(label_type=LabelTypes.ATTRIBUTE_STRING.value,
attribute_name='concept:name'),
clustering=create_test_clustering(clustering_type=ClusteringMethods.NO_CLUSTER.value)
)
result, _ = calculate(job)
del result['elapsed_time']
self.assertDictEqual(result, {'f1score': 0.0, 'acc': 0.0, 'precision': 0.0, 'recall': 0.0, 'true_positive': 0, 'true_negative': 0, 'false_negative': 2, 'false_positive': 0, 'auc': 0.0})
def test_class_nb(self):
job = create_test_job(
predictive_model=create_test_predictive_model(prediction_method=ClassificationMethods.MULTINOMIAL_NAIVE_BAYES.value),
labelling=create_test_labelling(label_type=LabelTypes.ATTRIBUTE_STRING.value,
attribute_name='concept:name'),
clustering=create_test_clustering(clustering_type=ClusteringMethods.NO_CLUSTER.value)
)
result, _ = calculate(job)
del result['elapsed_time']
self.assertDictEqual(result, {'f1score': 0.0, 'acc': 0.0, 'precision': 0.0, 'recall': 0.0, 'true_positive': 0, 'true_negative': 0, 'false_negative': 2, 'false_positive': 0, 'auc': 0.0})
def test_class_hoeff(self):
job = create_test_job(
predictive_model=create_test_predictive_model(prediction_method=ClassificationMethods.HOEFFDING_TREE.value),
labelling=create_test_labelling(label_type=LabelTypes.ATTRIBUTE_STRING.value,
attribute_name='concept:name'),
clustering=create_test_clustering(clustering_type=ClusteringMethods.NO_CLUSTER.value)
)
result, _ = calculate(job)
del result['elapsed_time']
self.assertDictEqual(result, {'f1score': 0.0, 'acc': 0.0, 'precision': 0.0, 'recall': 0.0, 'true_positive': 0, 'true_negative': 0, 'false_negative': 2, 'false_positive': 0, 'auc': 0.0})
def test_class_ada(self):
job = create_test_job(
predictive_model=create_test_predictive_model(prediction_method=ClassificationMethods.ADAPTIVE_TREE.value),
labelling=create_test_labelling(label_type=LabelTypes.ATTRIBUTE_STRING.value,
attribute_name='concept:name'),
clustering=create_test_clustering(clustering_type=ClusteringMethods.NO_CLUSTER.value)
)
result, _ = calculate(job)
del result['elapsed_time']
self.assertDictEqual(result, {'f1score': 0.0, 'acc': 0.0, 'precision': 0.0, 'recall': 0.0, 'true_positive': 0, 'true_negative': 0, 'false_negative': 2, 'false_positive': 0, 'auc': 0.0})
def test_class_sgd(self):
job = create_test_job(
predictive_model=create_test_predictive_model(prediction_method=ClassificationMethods.SGDCLASSIFIER.value),
labelling=create_test_labelling(label_type=LabelTypes.ATTRIBUTE_STRING.value,
attribute_name='concept:name'),
clustering=create_test_clustering(clustering_type=ClusteringMethods.NO_CLUSTER.value)
)
result, _ = calculate(job)
del result['elapsed_time']
self.assertDictEqual(result, {'f1score': 0.0, 'acc': 0.0, 'precision': 0.0, 'recall': 0.0, 'true_positive': 0, 'true_negative': 0, 'false_negative': 2, 'false_positive': 0, 'auc': 0.0})
def test_class_perc(self):
job = create_test_job(
predictive_model=create_test_predictive_model(prediction_method=ClassificationMethods.PERCEPTRON.value),
labelling=create_test_labelling(label_type=LabelTypes.ATTRIBUTE_STRING.value,
attribute_name='concept:name'),
clustering=create_test_clustering(clustering_type=ClusteringMethods.NO_CLUSTER.value)
)
result, _ = calculate(job)
del result['elapsed_time']
self.assertDictEqual(result, {'f1score': 0.0, 'acc': 0.0, 'precision': 0.0, 'recall': 0.0, 'true_positive': 0, 'true_negative': 0, 'false_negative': 2, 'false_positive': 0, 'auc': 0.0})
def test_next_activity_DecisionTree(self):
job = create_test_job(
predictive_model=create_test_predictive_model(prediction_method=ClassificationMethods.DECISION_TREE.value),
labelling=create_test_labelling(label_type=LabelTypes.NEXT_ACTIVITY.value),
clustering=create_test_clustering(clustering_type=ClusteringMethods.NO_CLUSTER.value)
)
result, _ = calculate(job)
del result['elapsed_time']
self.assertDictEqual(result, self.results3())
def test_class_nn(self):
job = create_test_job(
predictive_model=create_test_predictive_model(prediction_method=ClassificationMethods.NN.value),
labelling=create_test_labelling(label_type=LabelTypes.ATTRIBUTE_STRING.value,
attribute_name='concept:name'),
clustering=create_test_clustering(clustering_type=ClusteringMethods.NO_CLUSTER.value)
)
result, _ = calculate(job)
del result['elapsed_time']
self.assertIn('f1score', result)
self.assertIn('acc', result)
self.assertIn('precision', result)
self.assertIn('recall', result)
self.assertIn('true_positive', result)
self.assertIn('true_negative', result)
self.assertIn('false_negative', result)
self.assertIn('false_positive', result)
self.assertIn('auc', result)
def test_class_nn_binary(self):
job = create_test_job(
predictive_model=create_test_predictive_model(prediction_method=ClassificationMethods.NN.value),
labelling=create_test_labelling(label_type=LabelTypes.REMAINING_TIME.value,
threshold_type=ThresholdTypes.THRESHOLD_MEAN.value),
clustering=create_test_clustering(clustering_type=ClusteringMethods.NO_CLUSTER.value)
)
result, _ = calculate(job)
del result['elapsed_time']
self.assertDictEqual(result, {'f1score': 0.0, 'acc': 0.0, 'precision': 0.0, 'recall': 0.0, 'true_positive': 0,
'true_negative': 0, 'false_negative': 2, 'false_positive': 0, 'auc': 0.0})
def test_update_nb(self):
job = create_test_job(
predictive_model=create_test_predictive_model(prediction_method=ClassificationMethods.HOEFFDING_TREE.value),
labelling=create_test_labelling(label_type=LabelTypes.ATTRIBUTE_STRING.value,
attribute_name='concept:name'),
clustering=create_test_clustering(clustering_type=ClusteringMethods.NO_CLUSTER.value),
create_models=True
)
result1, _ = calculate(job)
job = create_test_job(
predictive_model=create_test_predictive_model(prediction_method=ClassificationMethods.HOEFFDING_TREE.value),
encoding=job.encoding,
labelling=create_test_labelling(label_type=LabelTypes.ATTRIBUTE_STRING.value,
attribute_name='concept:name'),
clustering=job.clustering,
incremental_train=job
)
result2, _ = calculate(job)
del result1['elapsed_time']
del result2['elapsed_time']
self.assertDictEqual(result1, {'f1score': 0.0, 'acc': 0.0, 'precision': 0.0, 'recall': 0.0, 'true_positive': 0,
'true_negative': 0, 'false_negative': 2, 'false_positive': 0, 'auc': 0.0})
self.assertDictEqual(result2, {'f1score': 0.0, 'acc': 0.0, 'precision': 0.0, 'recall': 0.0, 'true_positive': 0,
'true_negative': 0, 'false_negative': 2, 'false_positive': 0, 'auc': 0.0})
| 53.553785 | 193 | 0.663443 | 1,490 | 13,442 | 5.698658 | 0.091275 | 0.080085 | 0.02909 | 0.033918 | 0.758568 | 0.74102 | 0.722294 | 0.712872 | 0.704393 | 0.704393 | 0 | 0.025943 | 0.228612 | 13,442 | 250 | 194 | 53.768 | 0.792941 | 0.002976 | 0 | 0.502347 | 0 | 0 | 0.118569 | 0 | 0 | 0 | 0 | 0 | 0.131455 | 1 | 0.093897 | false | 0.004695 | 0.046948 | 0.014085 | 0.159624 | 0.004695 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 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 | 5 |
25249726774d6469b92fdb6d99c625e6ac104cf6 | 29 | py | Python | data/datasets/__init__.py | matejgrcic/Distance-based-OOD | 709ff5e0cec95489d20571d2b20637c04c13baad | [
"MIT"
] | 2 | 2022-01-17T07:24:39.000Z | 2022-01-30T21:50:10.000Z | data/datasets/__init__.py | matejgrcic/Distance-based-OOD | 709ff5e0cec95489d20571d2b20637c04c13baad | [
"MIT"
] | null | null | null | data/datasets/__init__.py | matejgrcic/Distance-based-OOD | 709ff5e0cec95489d20571d2b20637c04c13baad | [
"MIT"
] | null | null | null | from .lost_and_found import * | 29 | 29 | 0.827586 | 5 | 29 | 4.4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103448 | 29 | 1 | 29 | 29 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
6c0d255c716f7d4fa211bd8be77803be72e3c11e | 139 | py | Python | idm/commands/ignore_messages.py | ruslanvolov6667/ID | d2e2e0d8764bb9bc9caad163d69de03972cb5380 | [
"MIT"
] | 1 | 2020-07-16T00:16:06.000Z | 2020-07-16T00:16:06.000Z | idm/commands/ignore_messages.py | ruslanvolov6667/ID | d2e2e0d8764bb9bc9caad163d69de03972cb5380 | [
"MIT"
] | null | null | null | idm/commands/ignore_messages.py | ruslanvolov6667/ID | d2e2e0d8764bb9bc9caad163d69de03972cb5380 | [
"MIT"
] | null | null | null | from ..objects import dp, Event
@dp.event_handle(dp.Methods.IGNORE_MESSAGES)
def ignore_messages(event: Event) -> str:
return "ok" | 27.8 | 45 | 0.726619 | 20 | 139 | 4.9 | 0.65 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151079 | 139 | 5 | 46 | 27.8 | 0.830508 | 0 | 0 | 0 | 0 | 0 | 0.014706 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.25 | 0.75 | 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 | 1 | 1 | 0 | 0 | 5 |
6c386527f248a7e6a23ac3baadfaf4e95bd92b23 | 145 | py | Python | math/sum_of_digits/python/sum_of_digits_oneliner.py | CarbonDDR/al-go-rithms | 8e65affbe812931b7dde0e2933eb06c0f44b4130 | [
"CC0-1.0"
] | 1,253 | 2017-06-06T07:19:25.000Z | 2022-03-30T17:07:58.000Z | math/sum_of_digits/python/sum_of_digits_oneliner.py | rishabh99-rc/al-go-rithms | 4df20d7ef7598fda4bc89101f9a99aac94cdd794 | [
"CC0-1.0"
] | 554 | 2017-09-29T18:56:01.000Z | 2022-02-21T15:48:13.000Z | math/sum_of_digits/python/sum_of_digits_oneliner.py | rishabh99-rc/al-go-rithms | 4df20d7ef7598fda4bc89101f9a99aac94cdd794 | [
"CC0-1.0"
] | 2,226 | 2017-09-29T19:59:59.000Z | 2022-03-25T08:59:55.000Z | import sys
def sum_of_digits(n):
return sum(int(x) for x in list(str(n)))
if __name__ == '__main__':
print(sum_of_digits(sys.argv[1]))
| 18.125 | 44 | 0.668966 | 27 | 145 | 3.148148 | 0.740741 | 0.117647 | 0.258824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008333 | 0.172414 | 145 | 7 | 45 | 20.714286 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0.055172 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.2 | 0.6 | 0.2 | 1 | 0 | 0 | null | 0 | 1 | 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 | 1 | 1 | 0 | 0 | 5 |
6677aa533196fa3c10a086efbe04f81944fe7cd9 | 136 | py | Python | pf_xarray/__init__.py | wh3248/pf-xarray | f971e0c3e9962958fcf807e45d2623a0784cba8c | [
"Apache-2.0"
] | null | null | null | pf_xarray/__init__.py | wh3248/pf-xarray | f971e0c3e9962958fcf807e45d2623a0784cba8c | [
"Apache-2.0"
] | 12 | 2021-09-24T01:04:08.000Z | 2022-01-19T16:41:21.000Z | pf_xarray/__init__.py | wh3248/pf-xarray | f971e0c3e9962958fcf807e45d2623a0784cba8c | [
"Apache-2.0"
] | 1 | 2022-01-19T01:08:44.000Z | 2022-01-19T01:08:44.000Z | from .pf_backend import ParflowBackendEntrypoint, ParflowBackendArray
from .io import ParflowBinaryReader, read_pfb, read_stack_of_pfbs
| 45.333333 | 69 | 0.882353 | 16 | 136 | 7.1875 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.080882 | 136 | 2 | 70 | 68 | 0.92 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
667ea735f8aaf7f5a13451778d6b77dcbced37e4 | 1,233 | py | Python | OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/raw/GLX/EXT/import_context.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/raw/GLX/EXT/import_context.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/raw/GLX/EXT/import_context.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | '''Autogenerated by xml_generate script, do not edit!'''
from OpenGL import platform as _p, arrays
# Code generation uses this
from OpenGL.raw.GLX import _types as _cs
# End users want this...
from OpenGL.raw.GLX._types import *
from OpenGL.raw.GLX import _errors
from OpenGL.constant import Constant as _C
import ctypes
_EXTENSION_NAME = 'GLX_EXT_import_context'
def _f( function ):
return _p.createFunction( function,_p.PLATFORM.GLX,'GLX_EXT_import_context',error_checker=_errors._error_checker)
GLX_SCREEN_EXT=_C('GLX_SCREEN_EXT',0x800C)
GLX_SHARE_CONTEXT_EXT=_C('GLX_SHARE_CONTEXT_EXT',0x800A)
GLX_VISUAL_ID_EXT=_C('GLX_VISUAL_ID_EXT',0x800B)
@_f
@_p.types(None,ctypes.POINTER(_cs.Display),_cs.GLXContext)
def glXFreeContextEXT(dpy,context):pass
@_f
@_p.types(_cs.GLXContextID,_cs.GLXContext)
def glXGetContextIDEXT(context):pass
@_f
@_p.types(ctypes.POINTER(_cs.Display),)
def glXGetCurrentDisplayEXT():pass
@_f
@_p.types(_cs.GLXContext,ctypes.POINTER(_cs.Display),_cs.GLXContextID)
def glXImportContextEXT(dpy,contextID):pass
@_f
@_p.types(_cs.c_int,ctypes.POINTER(_cs.Display),_cs.GLXContext,_cs.c_int,ctypes.POINTER(_cs.c_int))
def glXQueryContextInfoEXT(dpy,context,attribute,value):pass
| 38.53125 | 118 | 0.791565 | 184 | 1,233 | 4.940217 | 0.347826 | 0.055006 | 0.038504 | 0.09681 | 0.273927 | 0.10451 | 0 | 0 | 0 | 0 | 0 | 0.010733 | 0.093268 | 1,233 | 31 | 119 | 39.774194 | 0.802326 | 0.081103 | 0 | 0.185185 | 1 | 0 | 0.087671 | 0.059361 | 0 | 0 | 0.016438 | 0 | 0 | 1 | 0.222222 | false | 0.185185 | 0.333333 | 0.037037 | 0.592593 | 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 | 1 | 0 | 1 | 0 | 0 | 5 |
6689a2a20e728f43c6a6a158997b07c69ed38ba9 | 132 | py | Python | TorchUtils/Visualizer/ImageFormatConverter.py | Akasan/TorchUtils | 93691addb1d8b3b603805fe1a46d867faf364e9d | [
"MIT"
] | null | null | null | TorchUtils/Visualizer/ImageFormatConverter.py | Akasan/TorchUtils | 93691addb1d8b3b603805fe1a46d867faf364e9d | [
"MIT"
] | null | null | null | TorchUtils/Visualizer/ImageFormatConverter.py | Akasan/TorchUtils | 93691addb1d8b3b603805fe1a46d867faf364e9d | [
"MIT"
] | null | null | null | import cv2
import numpy as np
def pil_to_opencv(img):
img = img.transpose((1, 2, 0))
img = img[:, :, ::-1]
return img
| 14.666667 | 34 | 0.583333 | 22 | 132 | 3.409091 | 0.681818 | 0.24 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05102 | 0.257576 | 132 | 8 | 35 | 16.5 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 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 | 1 | 0 | 1 | 0 | 0 | 5 |
66a1eab623a843b4361f3d91097176e1b2ad5613 | 102 | py | Python | sars_dashboard/calls/admin.py | thomasbtf/sars-dashboard | 4b98e9549af580c1a1822ccdeb7b81dd1802752a | [
"MIT"
] | null | null | null | sars_dashboard/calls/admin.py | thomasbtf/sars-dashboard | 4b98e9549af580c1a1822ccdeb7b81dd1802752a | [
"MIT"
] | 46 | 2021-12-11T20:39:41.000Z | 2022-03-28T02:27:31.000Z | sars_dashboard/calls/admin.py | thomasbtf/sars-dashboard | 4b98e9549af580c1a1822ccdeb7b81dd1802752a | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import PangolinCall
admin.site.register(PangolinCall)
| 17 | 33 | 0.833333 | 13 | 102 | 6.538462 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107843 | 102 | 5 | 34 | 20.4 | 0.934066 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
66a3da706df5a4dbb3dbf9011d3ba52fe4a53a11 | 79 | py | Python | secDir/sec_file.py | cvendeirinho/HelloWorld | cee78dc5dfc154cdcbaf8f01cf34c3de50230cdb | [
"Apache-2.0"
] | null | null | null | secDir/sec_file.py | cvendeirinho/HelloWorld | cee78dc5dfc154cdcbaf8f01cf34c3de50230cdb | [
"Apache-2.0"
] | null | null | null | secDir/sec_file.py | cvendeirinho/HelloWorld | cee78dc5dfc154cdcbaf8f01cf34c3de50230cdb | [
"Apache-2.0"
] | null | null | null | print(" sec_file.py on secDir")
print(" changing file by adding a new print")
| 19.75 | 45 | 0.721519 | 14 | 79 | 4 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164557 | 79 | 3 | 46 | 26.333333 | 0.848485 | 0 | 0 | 0 | 0 | 0 | 0.74359 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 5 |
66d281d7b7e88b6e3854465f1b99172a9419946e | 5,024 | py | Python | test_namara.py | namara-io/namara-python | 5b38130339c0f0414f4780c8570fa9b2a771e15a | [
"Apache-2.0"
] | 1 | 2020-01-17T03:55:32.000Z | 2020-01-17T03:55:32.000Z | test_namara.py | namara-io/namara-python | 5b38130339c0f0414f4780c8570fa9b2a771e15a | [
"Apache-2.0"
] | 9 | 2017-09-18T19:40:20.000Z | 2020-06-04T13:07:24.000Z | test_namara.py | namara-io/namara-python | 5b38130339c0f0414f4780c8570fa9b2a771e15a | [
"Apache-2.0"
] | 3 | 2019-02-11T20:22:18.000Z | 2020-05-28T05:52:44.000Z | from unittest import TestCase
import pandas as pd
from mock import Mock
from namara import Namara
class TestNamara(TestCase):
subject = None
def setUp(self):
self.subject = Namara('myapikey')
self.dataset = 'dataset'
self.version = 'version'
self.organization_id = 'organization_id'
self.project_id = 'project_id'
def test_get_url(self):
path = self.subject.get_url('/organizations/{0}/projects/{1}/data_sets'.format('organization', 'project'))
self.assertTrue(path == 'https://api.namara.io/v0/organizations/organization/projects/project/data_sets')
def test_is_aggregation(self):
options = {'limit': 10, 'operation': 'avg(column_1)'}
self.assertTrue(self.subject.is_aggregation(options))
def test_get_where_field_value_greater_than_1200(self):
self.subject.get = Mock(return_value=[{u'mnr_region': u'NORTHWEST', u'facility_name': u'RESOLUTE FP CANADA INC.', u'facility_code': 1201, u'location': u'FORT FRANCES', u'facility_type': u'PULP'}, {u'mnr_region': u'NORTHWEST', u'facility_name': u'MANITOU FOREST PRODUCTS LTD.', u'facility_code': 1221, u'location': u'EMO', u'facility_type': u'SAWMILL'}, {u'mnr_region': u'NORTHWEST', u'facility_name': u'531322 ONTARIO LTD. O/A NICKEL LAKE LUMBER', u'facility_code': 1232, u'location': u'FORT FRANCES', u'facility_type': u'SAWMILL'}, {u'mnr_region': u'NORTHWEST', u'facility_name': u'AINSWORTH GP LTD.', u'facility_code': 1240, u'location': u'BARWICK', u'facility_type': u'COMPOSITE'}, {u'mnr_region': u'NORTHWEST', u'facility_name': u'RESOLUTE FP CANADA INC.', u'facility_code': 1301, u'location': u'IGNACE', u'facility_type': u'SAWMILL'}, {u'mnr_region': u'NORTHWEST', u'facility_name': u'E.&G. CUSTOM SAWING LTD.', u'facility_code': 1410, u'location': u'KENORA', u'facility_type': u'SAWMILL'}, {u'mnr_region': u'NORTHWEST', u'facility_name': u'WEYERHAEUSER COMPANY LTD.', u'facility_code': 1422, u'location': u'KENORA', u'facility_type': u'COMPOSITE'}])
response = self.subject.get(self.dataset, self.version, options={'where': 'facility_code > 1200'})
for res in response:
if res.get('facility_code') <= 1200:
self.assertTrue(False)
self.assertTrue(True)
def test_get_count(self):
self.subject.get = Mock(return_value={u'result': 129})
response = self.subject.get(self.dataset, self.version, options={'operation': 'count(*)'})
self.assertTrue(response.get('result') == 129)
def test_valid_output_format(self):
self.assertRaises(ValueError, self.subject.get, self.dataset, self.version, output_format='invalid-format')
def test_valid_json_output(self):
self.subject.get = Mock(return_value=[{u'mnr_region': u'NORTHWEST', u'facility_name': u'RESOLUTE FP CANADA INC.', u'facility_code': 1201, u'location': u'FORT FRANCES', u'facility_type': u'PULP'}, {u'mnr_region': u'NORTHWEST', u'facility_name': u'MANITOU FOREST PRODUCTS LTD.', u'facility_code': 1221, u'location': u'EMO', u'facility_type': u'SAWMILL'}, {u'mnr_region': u'NORTHWEST', u'facility_name': u'531322 ONTARIO LTD. O/A NICKEL LAKE LUMBER', u'facility_code': 1232, u'location': u'FORT FRANCES', u'facility_type': u'SAWMILL'}, {u'mnr_region': u'NORTHWEST', u'facility_name': u'AINSWORTH GP LTD.', u'facility_code': 1240, u'location': u'BARWICK', u'facility_type': u'COMPOSITE'}, {u'mnr_region': u'NORTHWEST', u'facility_name': u'RESOLUTE FP CANADA INC.', u'facility_code': 1301, u'location': u'IGNACE', u'facility_type': u'SAWMILL'}, {u'mnr_region': u'NORTHWEST', u'facility_name': u'E.&G. CUSTOM SAWING LTD.', u'facility_code': 1410, u'location': u'KENORA', u'facility_type': u'SAWMILL'}, {u'mnr_region': u'NORTHWEST', u'facility_name': u'WEYERHAEUSER COMPANY LTD.', u'facility_code': 1422, u'location': u'KENORA', u'facility_type': u'COMPOSITE'}])
response = self.subject.get(self.dataset, self.version, options={'operation': 'count(*)'}, output_format='json')
self.assertTrue(isinstance(response, list))
def test_valid_get_dataframe_ouput(self):
self.subject.get = Mock(return_value=pd.DataFrame(data={'col1': [1, 2], 'col2': [3, 4]}))
response = self.subject.get(self.dataset, self.version, options={'operation': 'count(*)'}, output_format='dataframe')
self.assertTrue(isinstance(response, pd.DataFrame))
def test_valid_export_dataframe_ouput(self):
self.subject.export = Mock(return_value=pd.DataFrame(data={'col1': [1, 2], 'col2': [3, 4]}))
response = self.subject.export(self.dataset, self.organization_id, self.project_id, output_format='dataframe')
self.assertTrue(isinstance(response, pd.DataFrame))
def test_valid_export_url_ouput(self):
self.subject.export = Mock(return_value='https://storage.googleapis.com/namara/exports/x-2233444/file-name.csv')
response = self.subject.export(self.dataset, self.organization_id, self.project_id)
self.assertTrue(isinstance(response, str))
| 81.032258 | 1,163 | 0.699443 | 723 | 5,024 | 4.705394 | 0.188105 | 0.111111 | 0.041152 | 0.045267 | 0.72281 | 0.708113 | 0.708113 | 0.69224 | 0.662551 | 0.662551 | 0 | 0.025541 | 0.134952 | 5,024 | 61 | 1,164 | 82.360656 | 0.757248 | 0 | 0 | 0.085106 | 0 | 0.021277 | 0.38336 | 0.008161 | 0 | 0 | 0 | 0 | 0.212766 | 1 | 0.212766 | false | 0 | 0.085106 | 0 | 0.340426 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
dd0b54dd89b94aa4a262ec473ffccb70936f4943 | 356 | py | Python | req_analysis/context_cluster.py | thomas-bc/mms-autocref | 1db6697f929a1c782c902923209389e337ec6961 | [
"Apache-2.0"
] | null | null | null | req_analysis/context_cluster.py | thomas-bc/mms-autocref | 1db6697f929a1c782c902923209389e337ec6961 | [
"Apache-2.0"
] | null | null | null | req_analysis/context_cluster.py | thomas-bc/mms-autocref | 1db6697f929a1c782c902923209389e337ec6961 | [
"Apache-2.0"
] | null | null | null | from req_analysis.lib.neo4j_wrapper import get_node_context
class ContextCluster():
def __init__(self, source_node):
self.source_node = source_node
self.context = [neighbor['context'] for neighbor in get_node_context(self.source_node.graph, self.source_node)]
def get_context(self):
return self.context
| 20.941176 | 119 | 0.702247 | 46 | 356 | 5.086957 | 0.456522 | 0.213675 | 0.239316 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003584 | 0.216292 | 356 | 17 | 120 | 20.941176 | 0.835125 | 0 | 0 | 0 | 0 | 0 | 0.019608 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0.142857 | 0.714286 | 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 | 1 | 1 | 0 | 0 | 5 |
dd0e5aa5f780252be49f22fc21f3a8383ed9b943 | 154 | py | Python | schemas/error.py | jsmsalt/jobs-api | a2c26522bf7f997558f6c6608524187785c830e5 | [
"MIT"
] | null | null | null | schemas/error.py | jsmsalt/jobs-api | a2c26522bf7f997558f6c6608524187785c830e5 | [
"MIT"
] | 5 | 2021-11-29T04:40:14.000Z | 2021-11-29T12:33:44.000Z | schemas/error.py | jsmsalt/jobs-api | a2c26522bf7f997558f6c6608524187785c830e5 | [
"MIT"
] | null | null | null | """API schemas for error messages."""
from pydantic import BaseModel
class ErrorSchema(BaseModel):
"""Schema for error message"""
detail: str
| 15.4 | 37 | 0.701299 | 18 | 154 | 6 | 0.833333 | 0.148148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.188312 | 154 | 9 | 38 | 17.111111 | 0.864 | 0.363636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
dd5a351ae825a86ee92f9627c0da3c37b8f544fc | 194 | py | Python | output/models/ms_data/datatypes/facets/base64_binary/base64_binary_min_length001_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 1 | 2021-08-14T17:59:21.000Z | 2021-08-14T17:59:21.000Z | output/models/ms_data/datatypes/facets/base64_binary/base64_binary_min_length001_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 4 | 2020-02-12T21:30:44.000Z | 2020-04-15T20:06:46.000Z | output/models/ms_data/datatypes/facets/base64_binary/base64_binary_min_length001_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from output.models.ms_data.datatypes.facets.base64_binary.base64_binary_min_length001_xsd.base64_binary_min_length001 import (
FooType,
Test,
)
__all__ = [
"FooType",
"Test",
]
| 19.4 | 126 | 0.742268 | 24 | 194 | 5.458333 | 0.666667 | 0.274809 | 0.229008 | 0.366412 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073171 | 0.154639 | 194 | 9 | 127 | 21.555556 | 0.72561 | 0 | 0 | 0 | 0 | 0 | 0.056701 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0 | 1 | 0 | 0 | null | 1 | 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 | 5 |
dd75be8651ea6a3c3dc99596b20db16859a1848a | 28 | py | Python | googleapp/__init__.py | liamcryan/simplgmail | 0d4288b7f50d01872f9f32eb92beddf24a629899 | [
"MIT"
] | null | null | null | googleapp/__init__.py | liamcryan/simplgmail | 0d4288b7f50d01872f9f32eb92beddf24a629899 | [
"MIT"
] | null | null | null | googleapp/__init__.py | liamcryan/simplgmail | 0d4288b7f50d01872f9f32eb92beddf24a629899 | [
"MIT"
] | null | null | null | from googleapp.api import *
| 14 | 27 | 0.785714 | 4 | 28 | 5.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 28 | 1 | 28 | 28 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
dd7c3e152e789a9977627de0f1fb42e5fc9c7807 | 173 | py | Python | popgen/instruments/__init__.py | mmarchini/popgen | fb4459857cf8e0f6073247b8bee7a002541ea524 | [
"MIT"
] | 1 | 2022-01-11T07:13:49.000Z | 2022-01-11T07:13:49.000Z | popgen/instruments/__init__.py | mmarchini/popgen | fb4459857cf8e0f6073247b8bee7a002541ea524 | [
"MIT"
] | null | null | null | popgen/instruments/__init__.py | mmarchini/popgen | fb4459857cf8e0f6073247b8bee7a002541ea524 | [
"MIT"
] | null | null | null | from base import *
from percussion import *
from guitars import *
from orchestra import *
from pianos import *
from saxes import *
from techno import *
from others import *
| 19.222222 | 24 | 0.768786 | 24 | 173 | 5.541667 | 0.416667 | 0.526316 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184971 | 173 | 8 | 25 | 21.625 | 0.943262 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
06ba86a3986e1a8e59f662d23b74a153c838ade9 | 164 | py | Python | lanro/environments/__init__.py | knowledgetechnologyuhh/lannro-gym | ac3afcf7d8ed854d75368135b023edf055644dd2 | [
"MIT"
] | null | null | null | lanro/environments/__init__.py | knowledgetechnologyuhh/lannro-gym | ac3afcf7d8ed854d75368135b023edf055644dd2 | [
"MIT"
] | null | null | null | lanro/environments/__init__.py | knowledgetechnologyuhh/lannro-gym | ac3afcf7d8ed854d75368135b023edf055644dd2 | [
"MIT"
] | null | null | null | from .panda import PandaReachEnv, PandaPushEnv, PandaSlideEnv, PandaStackEnv
from .panda_nl import PandaNLReachEnv, PandaNLPushEnv, PandaNLGraspEnv, PandaNLLiftEnv
| 54.666667 | 86 | 0.865854 | 15 | 164 | 9.4 | 0.8 | 0.12766 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085366 | 164 | 2 | 87 | 82 | 0.94 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
b071e2dd79e3721344ec1caaa760ea9df2f5ed7d | 125 | py | Python | src/cowork/tests/test_dummy.py | jmaupetit/survey | 79106ce3d8e0e3b00579645a510cddd3a248aa83 | [
"MIT"
] | null | null | null | src/cowork/tests/test_dummy.py | jmaupetit/survey | 79106ce3d8e0e3b00579645a510cddd3a248aa83 | [
"MIT"
] | null | null | null | src/cowork/tests/test_dummy.py | jmaupetit/survey | 79106ce3d8e0e3b00579645a510cddd3a248aa83 | [
"MIT"
] | null | null | null | """Dummy test module to remove"""
def test_dummy():
"""A dummy test to remove to validate test runner configuration"""
| 20.833333 | 70 | 0.696 | 18 | 125 | 4.777778 | 0.555556 | 0.209302 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184 | 125 | 5 | 71 | 25 | 0.843137 | 0.704 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | true | 0 | 0 | 0 | 1 | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
b093d499a76774f34c86ea7f0cfc18ef6dfe6e3d | 26 | py | Python | subb/__init__.py | MoserMichael/subby | 053df8d8c23a3fcf7d8fd611262dc52e8f8c4b4c | [
"MIT"
] | 1 | 2021-12-17T01:27:56.000Z | 2021-12-17T01:27:56.000Z | subb/__init__.py | MoserMichael/subb | 053df8d8c23a3fcf7d8fd611262dc52e8f8c4b4c | [
"MIT"
] | null | null | null | subb/__init__.py | MoserMichael/subb | 053df8d8c23a3fcf7d8fd611262dc52e8f8c4b4c | [
"MIT"
] | null | null | null |
from .subby import *
| 5.2 | 22 | 0.576923 | 3 | 26 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.346154 | 26 | 4 | 23 | 6.5 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
b09ba847eef6d1c03d19aeeb580f88ec6dc3304b | 143 | py | Python | python/testData/create_tests/create_tst.expected.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/create_tests/create_tst.expected.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/create_tests/create_tst.expected.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | from unittest import TestCase
class Spam(TestCase):
def eggs(self):
self.fail()
def eggs_and_ham(self):
self.fail()
| 14.3 | 29 | 0.622378 | 19 | 143 | 4.578947 | 0.631579 | 0.16092 | 0.275862 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.272727 | 143 | 9 | 30 | 15.888889 | 0.836538 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 1 | 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 | 1 | 0 | 0 | 5 |
b0a3dc12de25e52942fe9836cafe044010ba23a8 | 67 | py | Python | examples/__init__.py | samir-joshi/tmtoolkit | 41f5cbddad539107016680d132ca1ee9ebe49b5c | [
"Apache-2.0"
] | 167 | 2017-11-11T11:49:32.000Z | 2022-03-15T11:45:11.000Z | examples/__init__.py | samir-joshi/tmtoolkit | 41f5cbddad539107016680d132ca1ee9ebe49b5c | [
"Apache-2.0"
] | 23 | 2017-11-27T22:44:09.000Z | 2022-02-23T03:31:30.000Z | examples/__init__.py | samir-joshi/tmtoolkit | 41f5cbddad539107016680d132ca1ee9ebe49b5c | [
"Apache-2.0"
] | 30 | 2018-03-27T13:00:41.000Z | 2022-03-28T12:15:33.000Z | """
tmtoolkit – examples
Markus Konrad <markus.konrad@wzb.eu>
"""
| 11.166667 | 36 | 0.686567 | 9 | 67 | 5.222222 | 0.777778 | 0.510638 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134328 | 67 | 5 | 37 | 13.4 | 0.793103 | 0.865672 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
b0e4f16f1b62dac87ad91e31a337864536d4a115 | 191 | py | Python | src/core/templatetags/pycontw_tools.py | pcwang23/pycon.tw | 81d929d4395568378dc11c10def087c27fe07830 | [
"MIT"
] | 1 | 2019-04-04T12:17:26.000Z | 2019-04-04T12:17:26.000Z | src/core/templatetags/pycontw_tools.py | pcwang23/pycon.tw | 81d929d4395568378dc11c10def087c27fe07830 | [
"MIT"
] | null | null | null | src/core/templatetags/pycontw_tools.py | pcwang23/pycon.tw | 81d929d4395568378dc11c10def087c27fe07830 | [
"MIT"
] | 2 | 2019-04-04T12:18:04.000Z | 2019-04-14T13:57:57.000Z | from django.template import Library
register = Library()
@register.filter
def message_bootstrap_class_str(message):
return ' '.join('alert-' + tag for tag in message.tags.split(' '))
| 19.1 | 70 | 0.727749 | 25 | 191 | 5.44 | 0.8 | 0.220588 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146597 | 191 | 9 | 71 | 21.222222 | 0.834356 | 0 | 0 | 0 | 0 | 0 | 0.041885 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.2 | 0.6 | 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 | 1 | 1 | 0 | 0 | 5 |
9ffccadb3f4833e3dd256429393e524a0def772a | 200 | py | Python | timeline/admin.py | akshaya9/fosswebsite | 5669a90ebb1fea2213c207a938236fba7643375c | [
"MIT"
] | 369 | 2017-10-02T03:04:24.000Z | 2022-03-26T10:54:55.000Z | timeline/admin.py | akshaya9/fosswebsite | 5669a90ebb1fea2213c207a938236fba7643375c | [
"MIT"
] | 121 | 2017-10-01T14:21:48.000Z | 2018-11-08T16:57:26.000Z | timeline/admin.py | akshaya9/fosswebsite | 5669a90ebb1fea2213c207a938236fba7643375c | [
"MIT"
] | 69 | 2017-10-13T11:04:38.000Z | 2021-12-08T06:23:19.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.contrib import admin
# Register your models here.
from timeline.models import AlumniInfo
admin.site.register(AlumniInfo)
| 20 | 39 | 0.785 | 26 | 200 | 5.846154 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005747 | 0.13 | 200 | 9 | 40 | 22.222222 | 0.867816 | 0.24 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.75 | 0 | 0.75 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.