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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b107488d82f3398d6c32bcdb52a0b1b77a759cbb | 94 | py | Python | bugtests/test329s3.py | jeff5/jython-whinchat | 65d8e5268189f8197295ff2d91be3decb1ee0081 | [
"CNRI-Jython"
] | 577 | 2020-06-04T16:34:44.000Z | 2022-03-31T11:46:07.000Z | bugtests/test329s3.py | jeff5/jython-whinchat | 65d8e5268189f8197295ff2d91be3decb1ee0081 | [
"CNRI-Jython"
] | 174 | 2015-01-08T20:37:09.000Z | 2020-06-03T16:48:59.000Z | bugtests/test329s3.py | jeff5/jython-whinchat | 65d8e5268189f8197295ff2d91be3decb1ee0081 | [
"CNRI-Jython"
] | 162 | 2015-02-07T02:14:38.000Z | 2020-05-30T16:42:03.000Z | import sys
for t in range(10):
a = 1 # a comment
print t; sys.exit(0)
sys.exit(22)
| 13.428571 | 24 | 0.585106 | 19 | 94 | 2.894737 | 0.736842 | 0.254545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089552 | 0.287234 | 94 | 6 | 25 | 15.666667 | 0.731343 | 0.095745 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | null | null | 0.2 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b11bc6bb3b71d16d77e6dfc80e2a2ceabb51de59 | 80 | py | Python | python/katana/bug/__init__.py | bozhiyou/katana | 74aef79010f6db444b19e94bac28e8f7c8856338 | [
"BSD-3-Clause"
] | 64 | 2020-05-22T23:32:00.000Z | 2022-03-18T10:42:45.000Z | python/katana/bug/__init__.py | bozhiyou/katana | 74aef79010f6db444b19e94bac28e8f7c8856338 | [
"BSD-3-Clause"
] | 705 | 2020-02-17T20:50:38.000Z | 2022-03-31T16:28:09.000Z | python/katana/bug/__init__.py | bozhiyou/katana | 74aef79010f6db444b19e94bac28e8f7c8856338 | [
"BSD-3-Clause"
] | 93 | 2020-03-18T17:34:07.000Z | 2022-03-29T02:11:09.000Z | from .environment import capture_environment
__all__ = ["capture_environment"]
| 20 | 44 | 0.825 | 8 | 80 | 7.5 | 0.625 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 80 | 3 | 45 | 26.666667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0.2375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
b14b30eccde952ecb6533f9530346d3cbdcc4dc0 | 1,654 | py | Python | test/ResultsAndPrizes/prikup/test_prikup_winning_numbers_of_the_last_4_draws.py | FearFactor1/SPA | a05aaa924c5bebb52cd508ebdf7fd3b81c49fac7 | [
"Apache-2.0"
] | 1 | 2019-12-05T06:50:54.000Z | 2019-12-05T06:50:54.000Z | test/ResultsAndPrizes/prikup/test_prikup_winning_numbers_of_the_last_4_draws.py | FearFactor1/SPA | a05aaa924c5bebb52cd508ebdf7fd3b81c49fac7 | [
"Apache-2.0"
] | null | null | null | test/ResultsAndPrizes/prikup/test_prikup_winning_numbers_of_the_last_4_draws.py | FearFactor1/SPA | a05aaa924c5bebb52cd508ebdf7fd3b81c49fac7 | [
"Apache-2.0"
] | null | null | null | # Прикуп + Выигрышные номера последних 4 тиражей
def test_prikup_winning_numbers_last_4_draws(app):
app.ResultAndPrizes.open_page_results_and_prizes()
app.ResultAndPrizes.click_game_prikup()
app.ResultAndPrizes.click_winning_numbers_of_the_last_4_draws()
app.ResultAndPrizes.button_get_report_winners()
app.ResultAndPrizes.parser_report_text_winners()
assert "ВЫИГРЫШНЫЕ НОМЕРА" in app.ResultAndPrizes.parser_report_text_winners()
assert "ПРИКУП - Тираж 58571 :" in app.ResultAndPrizes.parser_report_text_winners()
assert "15/06/2018, 18:17:00 ЛОК" in app.ResultAndPrizes.parser_report_text_winners()
assert "13 48 18 29 24 33 32 17 08 12 46 37 47 39 51" in app.ResultAndPrizes.parser_report_text_winners()
assert "ПРИКУП - Тираж 58570 :" in app.ResultAndPrizes.parser_report_text_winners()
assert "15/06/2018, 18:10:00 ЛОК" in app.ResultAndPrizes.parser_report_text_winners()
assert "35 21 20 01 23 32 41 49 27 07 48 08 09 24 10" in app.ResultAndPrizes.parser_report_text_winners()
assert "ПРИКУП - Тираж 58569 :" in app.ResultAndPrizes.parser_report_text_winners()
assert "15/06/2018, 17:50:00 ЛОК" in app.ResultAndPrizes.parser_report_text_winners()
assert "03 10 21 07 18 15 30 25 40 11 22 12 46 02 27" in app.ResultAndPrizes.parser_report_text_winners()
assert "ПРИКУП - Тираж 58568 :" in app.ResultAndPrizes.parser_report_text_winners()
assert "15/06/2018, 17:42:00 ЛОК" in app.ResultAndPrizes.parser_report_text_winners()
assert "21 14 23 19 39 10 08 01 41 31 47 16 26 34 06" in app.ResultAndPrizes.parser_report_text_winners()
app.ResultAndPrizes.comeback_main_page() | 68.916667 | 109 | 0.781137 | 260 | 1,654 | 4.715385 | 0.326923 | 0.278956 | 0.274062 | 0.342577 | 0.637847 | 0.637847 | 0.637847 | 0.564437 | 0.564437 | 0.564437 | 0 | 0.139453 | 0.137243 | 1,654 | 24 | 110 | 68.916667 | 0.719692 | 0.027811 | 0 | 0 | 0 | 0 | 0.234599 | 0 | 0 | 0 | 0 | 0 | 0.65 | 1 | 0.05 | false | 0 | 0 | 0 | 0.05 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b1691301298d90dd1319220de609821bdd0c2f7f | 114 | py | Python | login.py | Meichia/test1 | e04c1e46c497a41377c0a2fbff653ab62e8701fd | [
"MIT"
] | null | null | null | login.py | Meichia/test1 | e04c1e46c497a41377c0a2fbff653ab62e8701fd | [
"MIT"
] | null | null | null | login.py | Meichia/test1 | e04c1e46c497a41377c0a2fbff653ab62e8701fd | [
"MIT"
] | null | null | null | <<<<<<< HEAD
1asd
asdasdsadasd
=======
1
asdsad
>>>>>>> 07a02de42f29c59b31d5e197c9babad3f0e21d88
11
| 4.956522 | 48 | 0.605263 | 7 | 114 | 9.857143 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.3 | 0.210526 | 114 | 22 | 49 | 5.181818 | 0.466667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b17980faf83d8f421f0f3d56c77ab3ac7c6213d6 | 181 | py | Python | arepytools/io/__init__.py | rpitonak/BioPAL | 08c57b3ba2d8e5a06105f930b1067c2541636bb6 | [
"MIT"
] | 35 | 2021-04-26T13:11:34.000Z | 2022-03-13T02:27:53.000Z | arepytools/io/__init__.py | rpitonak/BioPAL | 08c57b3ba2d8e5a06105f930b1067c2541636bb6 | [
"MIT"
] | 13 | 2021-04-28T20:56:53.000Z | 2022-03-25T09:15:26.000Z | arepytools/io/__init__.py | rpitonak/BioPAL | 08c57b3ba2d8e5a06105f930b1067c2541636bb6 | [
"MIT"
] | 12 | 2021-04-26T13:11:43.000Z | 2022-03-28T06:19:19.000Z | # SPDX-FileCopyrightText: Aresys S.r.l. <info@aresys.it>
# SPDX-License-Identifier: MIT
"""
I/O management package
"""
from ._utils import read_raster, read_metadata, write_raster
| 22.625 | 60 | 0.756906 | 26 | 181 | 5.115385 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.110497 | 181 | 7 | 61 | 25.857143 | 0.826087 | 0.59116 | 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 | 0 | 0 | 0 | 4 |
b19183113dc2b60cf1a7b2ebfe6d60628195144b | 77 | py | Python | konduto/api/resources/kondutotravel.py | ZXVentures/konduto-sdk | 1a8151115232c9de4abe1acc6754c593542f2569 | [
"MIT"
] | 4 | 2020-04-29T07:53:59.000Z | 2021-05-26T20:13:51.000Z | konduto/api/resources/kondutotravel.py | ZXVentures/konduto-sdk | 1a8151115232c9de4abe1acc6754c593542f2569 | [
"MIT"
] | 7 | 2020-04-05T08:05:55.000Z | 2021-04-07T19:24:15.000Z | konduto/api/resources/kondutotravel.py | ZXVentures/konduto-sdk | 1a8151115232c9de4abe1acc6754c593542f2569 | [
"MIT"
] | 1 | 2021-06-15T17:37:20.000Z | 2021-06-15T17:37:20.000Z | from dataclasses import dataclass
@dataclass
class KondutoTravel:
pass
| 11 | 33 | 0.792208 | 8 | 77 | 7.625 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 77 | 6 | 34 | 12.833333 | 0.968254 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.25 | 0.25 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
4917d095252e4bee5eb0f673c7ae50a85973bf44 | 2,859 | py | Python | Blockchain/scripts/set_url.py | danieldav7/BlockchainDNS | 221e2d5d114034d18edba9e421d7528acc95eed2 | [
"Apache-2.0"
] | null | null | null | Blockchain/scripts/set_url.py | danieldav7/BlockchainDNS | 221e2d5d114034d18edba9e421d7528acc95eed2 | [
"Apache-2.0"
] | null | null | null | Blockchain/scripts/set_url.py | danieldav7/BlockchainDNS | 221e2d5d114034d18edba9e421d7528acc95eed2 | [
"Apache-2.0"
] | null | null | null | import time
from web3 import Web3, HTTPProvider
import json
contract_address = "0x5054f6D117E71a374F4C2b5Cd8508fA578aF439D"
wallet_private_key = "d5e56c6fbb9441cc7c3e996ed1c5d785d96b665482c7f34e08e11249ad2a36ce"
wallet_address = "0xBAb3632832DAdD4338dbB17227521b13FeD38c76"
url = "http://192.168.56.102:7545"
w3 = Web3(HTTPProvider(url))
w3.eth.defaultAccount = w3.eth.accounts[0]
abi = json.loads('''[{"constant":false,"inputs":[{"name":"newAddress","type":"string"}],"name":"setAddress","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"getCreator","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getURL","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getAddress","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newCreator","type":"address"}],"name":"setCreator","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"entry","outputs":[{"name":"ip","type":"string"},{"name":"url","type":"string"},{"name":"dateOfCreation","type":"uint256"},{"name":"expireTimeAmount","type":"uint256"},{"name":"creator","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newURL","type":"string"}],"name":"setURL","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"newDateOfCreation","type":"uint256"}],"name":"setDateOfCreation","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"newExpireTimeAmount","type":"uint256"}],"name":"setExpireTimeAmount","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"getDateOfCreation","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getExpireTimeAmount","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"}]''')
contract = w3.eth.contract(address=contract_address, abi=abi)
tx_hash = contract.functions.setURL("BCD2.com").transact()
w3.eth.waitForTransactionReceipt(tx_hash)
tx_hash = contract.functions.setExpireTimeAmount(1).transact()
w3.eth.waitForTransactionReceipt(tx_hash)
tx_hash = contract.functions.setAddress("142.250.74.206").transact()
w3.eth.waitForTransactionReceipt(tx_hash)
contract = w3.eth.contract(address=contract_address, abi=abi)
| 119.125 | 2,025 | 0.710738 | 292 | 2,859 | 6.917808 | 0.256849 | 0.071287 | 0.160396 | 0.109901 | 0.587624 | 0.567327 | 0.545545 | 0.545545 | 0.545545 | 0.486139 | 0 | 0.05361 | 0.021336 | 2,859 | 23 | 2,026 | 124.304348 | 0.668335 | 0 | 0 | 0.277778 | 0 | 0.055556 | 0.768451 | 0.751661 | 0 | 0 | 0.029381 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
491e2a63dc254bf0b5079a77770944a19cd95ec4 | 207 | py | Python | lib/electronic_id.py | web-eid/web-eid-test-authentication-token-generator | f78e6ed2fea210cdaedd18035a85ee392ed88bb0 | [
"MIT"
] | null | null | null | lib/electronic_id.py | web-eid/web-eid-test-authentication-token-generator | f78e6ed2fea210cdaedd18035a85ee392ed88bb0 | [
"MIT"
] | null | null | null | lib/electronic_id.py | web-eid/web-eid-test-authentication-token-generator | f78e6ed2fea210cdaedd18035a85ee392ed88bb0 | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod
class ElectronicID(ABC):
@abstractmethod
def get_user_cert(self):
pass
@abstractmethod
def sign(self, signing_input: bytes) -> str:
pass | 18.818182 | 48 | 0.666667 | 24 | 207 | 5.625 | 0.708333 | 0.251852 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.256039 | 207 | 11 | 49 | 18.818182 | 0.876623 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.25 | 0.125 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
4929bf735ce7a16da39fa0a40a7d14f561026459 | 217 | py | Python | src/clld_phylogeny_plugin/datatables.py | clld/clld-phylogeny-plugin | 097a49d4ae97d835130d33f56ae0140fe42c1c6a | [
"Apache-2.0"
] | 1 | 2018-03-05T15:17:41.000Z | 2018-03-05T15:17:41.000Z | src/clld_phylogeny_plugin/datatables.py | clld/clld-phylogeny-plugin | 097a49d4ae97d835130d33f56ae0140fe42c1c6a | [
"Apache-2.0"
] | 10 | 2018-02-06T20:03:14.000Z | 2021-07-12T13:08:48.000Z | src/clld_phylogeny_plugin/datatables.py | clld/clld-phylogeny-plugin | 097a49d4ae97d835130d33f56ae0140fe42c1c6a | [
"Apache-2.0"
] | 1 | 2020-05-29T13:18:53.000Z | 2020-05-29T13:18:53.000Z | from clld.web.datatables.base import DataTable, LinkCol, Col
class Phylogenies(DataTable):
def col_defs(self):
return [
LinkCol(self, 'name'),
Col(self, 'description'),
]
| 21.7 | 60 | 0.59447 | 23 | 217 | 5.565217 | 0.73913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.290323 | 217 | 9 | 61 | 24.111111 | 0.831169 | 0 | 0 | 0 | 0 | 0 | 0.069124 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0.142857 | 0.571429 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
493a4ee58aa22164e25df7d661e9971e426ca48d | 617 | py | Python | woffle/functions/compose.py | Finnkauski/woffle | 746ceb22ef03232f7963db6f7fb2f95fe0164a07 | [
"MIT"
] | null | null | null | woffle/functions/compose.py | Finnkauski/woffle | 746ceb22ef03232f7963db6f7fb2f95fe0164a07 | [
"MIT"
] | null | null | null | woffle/functions/compose.py | Finnkauski/woffle | 746ceb22ef03232f7963db6f7fb2f95fe0164a07 | [
"MIT"
] | null | null | null | """
composing functions
"""
#-- Imports ---------------------------------------------------------------------
import functools
#-- Definitions -----------------------------------------------------------------
#+NOTE: application order is last argument through to first
def compose(*functions):
return functools.reduce(lambda f, g: lambda x: f(g(x)), functions, lambda x: x)
# allows people to use compose but in a 'run in this order' way instead of a
# replace commas with function composition way
def compose_(*functions):
return functools.reduce(lambda f, g: lambda x: g(f(x)), functions, lambda x: x)
| 32.473684 | 83 | 0.560778 | 73 | 617 | 4.726027 | 0.534247 | 0.081159 | 0.110145 | 0.144928 | 0.423188 | 0.318841 | 0.318841 | 0.318841 | 0.318841 | 0.318841 | 0 | 0 | 0.136143 | 617 | 18 | 84 | 34.277778 | 0.64728 | 0.580227 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | true | 0 | 0.2 | 0.4 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
493b74fcf53409e0e3da9a1043573b947dfbfb48 | 138 | py | Python | junkfile/gui/windows/arrange_window/arrange_model.py | IvanFrezzaJr/junkfile2 | 13894955fba1f200bdb6dc8f4175d5320927c55e | [
"MIT"
] | null | null | null | junkfile/gui/windows/arrange_window/arrange_model.py | IvanFrezzaJr/junkfile2 | 13894955fba1f200bdb6dc8f4175d5320927c55e | [
"MIT"
] | null | null | null | junkfile/gui/windows/arrange_window/arrange_model.py | IvanFrezzaJr/junkfile2 | 13894955fba1f200bdb6dc8f4175d5320927c55e | [
"MIT"
] | null | null | null | from dataclasses import dataclass
@dataclass
class Model:
directory_in: str = ""
directory_out: str = ""
copy: bool = False
| 15.333333 | 33 | 0.673913 | 16 | 138 | 5.6875 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.23913 | 138 | 8 | 34 | 17.25 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 0 | 0.833333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
49701c30d4867287daac35a2dac06a8cffee0e86 | 511 | py | Python | cactus/tasks/__init__.py | randomknowledge/Cactus_Refactored | bdc38c32271c2191132fdb15320e9d19ebe41ff4 | [
"MIT"
] | 3 | 2015-09-11T11:58:10.000Z | 2018-08-11T19:37:23.000Z | cactus/tasks/__init__.py | randomknowledge/Cactus_Refactored | bdc38c32271c2191132fdb15320e9d19ebe41ff4 | [
"MIT"
] | 3 | 2015-01-07T22:46:06.000Z | 2015-01-08T19:31:06.000Z | cactus/tasks/__init__.py | randomknowledge/Cactus_Refactored | bdc38c32271c2191132fdb15320e9d19ebe41ff4 | [
"MIT"
] | null | null | null | # coding: utf-8
class BaseTask(object):
helptext_short = ""
def __init__(self):
raise NotImplementedError
@classmethod
def help(cls):
raise NotImplementedError
@classmethod
def run(cls, *args, **kwargs):
raise NotImplementedError
@classmethod
def usage(cls):
return u"\nUsage: cactus {0}\n\n{1}".format(
cls.helptext_short, cls.__doc__.strip())
@classmethod
def name(cls):
return cls.__module__.split(".").pop()
| 19.653846 | 52 | 0.610568 | 55 | 511 | 5.418182 | 0.618182 | 0.187919 | 0.352349 | 0.38255 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008021 | 0.268102 | 511 | 25 | 53 | 20.44 | 0.78877 | 0.02544 | 0 | 0.411765 | 0 | 0 | 0.054435 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.294118 | false | 0 | 0 | 0.117647 | 0.529412 | 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 | 0 | 0 | 0 | 4 |
497390a1fdbb40029bca3a6319779ea1a92c840c | 57 | py | Python | src/config/wifi.py | jaindinkar/micropython_datalogger_esp8266 | 871a2fe796878d698fd46a590a184fe99d429233 | [
"MIT"
] | null | null | null | src/config/wifi.py | jaindinkar/micropython_datalogger_esp8266 | 871a2fe796878d698fd46a590a184fe99d429233 | [
"MIT"
] | null | null | null | src/config/wifi.py | jaindinkar/micropython_datalogger_esp8266 | 871a2fe796878d698fd46a590a184fe99d429233 | [
"MIT"
] | null | null | null | wifi_ssid = "YOUR_WIFI_SSID"
wifi_pass = "YOUR_PASSWORD"
| 19 | 28 | 0.789474 | 9 | 57 | 4.444444 | 0.555556 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 57 | 2 | 29 | 28.5 | 0.784314 | 0 | 0 | 0 | 0 | 0 | 0.473684 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.5 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
499503ebc69ed47ecd5dbe66898f8de5225c709c | 197 | py | Python | examples/example_osx.py | ferion11/phoenicis-winebuild | 8cf733979f20e43282d722404dba32aed811b174 | [
"MIT"
] | 55 | 2018-11-29T14:02:54.000Z | 2022-03-08T17:00:13.000Z | examples/example_osx.py | ferion11/phoenicis-winebuild | 8cf733979f20e43282d722404dba32aed811b174 | [
"MIT"
] | 120 | 2018-10-13T16:34:23.000Z | 2022-01-30T17:12:35.000Z | examples/example_osx.py | ferion11/phoenicis-winebuild | 8cf733979f20e43282d722404dba32aed811b174 | [
"MIT"
] | 35 | 2018-10-14T15:38:28.000Z | 2022-03-08T17:00:17.000Z | #!/usr/bin/env python
from packagers.PhoenicisWinePackageCreator import PhoenicisWinePackageCreator
builder = PhoenicisWinePackageCreator()
builder.build("upstream", "wine-4.1", "darwin", "x86")
| 28.142857 | 77 | 0.796954 | 19 | 197 | 8.263158 | 0.842105 | 0.433121 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021978 | 0.076142 | 197 | 6 | 78 | 32.833333 | 0.840659 | 0.101523 | 0 | 0 | 0 | 0 | 0.142045 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 | 0 | 0 | 0 | 4 |
499a5aef51235a4c466f84a510cea3187af2d0a4 | 8,009 | py | Python | care/transaction/forms.py | Gu1nness/care | d0ddf61af594193e65a6577213b49b993c7c0f2a | [
"MIT"
] | 4 | 2017-08-10T23:29:06.000Z | 2021-12-22T23:09:33.000Z | care/transaction/forms.py | mfonism/care | 39dd369da52063e907fc6a7709f8a9dc79a3995d | [
"MIT"
] | 24 | 2016-04-10T12:43:23.000Z | 2021-01-26T14:42:00.000Z | care/transaction/forms.py | mfonism/care | 39dd369da52063e907fc6a7709f8a9dc79a3995d | [
"MIT"
] | 5 | 2017-08-11T16:37:13.000Z | 2020-12-18T16:56:33.000Z | from datetime import datetime
import logging
from django import forms
from bootstrap3_datetime.widgets import DateTimePicker
from care.transaction.models import Transaction
from care.transaction.models import TransactionRecurring
from care.transaction.models import TransactionReal
from care.transaction.models import Modification
from care.groupaccount.models import GroupAccount
from care.userprofile.models import UserProfile
logger = logging.getLogger(__name__)
class TransactionForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.fields['is_shared_by_all'] = forms.BooleanField(label='Shared by all', required=False)
self.fields['what'].label = 'What'
self.fields['amount'].label = 'Cost (€)'
def clean(self):
cleaned_data = super().clean()
if not cleaned_data.get("consumers") and not cleaned_data.get("is_shared_by_all"):
raise forms.ValidationError("Please select someone to share with.")
return cleaned_data
class Meta:
model = Transaction
fields = '__all__'
class NewTransactionForm(TransactionForm):
def __init__(self, group_account_id, user, *args, **kwargs):
super().__init__(*args, **kwargs)
self.fields['consumers'] = forms.ModelMultipleChoiceField(
widget=forms.CheckboxSelectMultiple(),
queryset=UserProfile.objects.filter(group_accounts=group_account_id),
label='Shared by some',
required=False
)
self.fields['buyer'] = forms.ModelChoiceField(
queryset=UserProfile.objects.filter(group_accounts=group_account_id),
empty_label=None
)
self.fields['buyer'].initial = UserProfile.objects.get(user=user)
self.fields['group_account'] = forms.ModelChoiceField(
queryset=UserProfile.objects.get(user=user).group_accounts,
widget=forms.Select(attrs={"onChange":'form.submit()'}),
empty_label=None,
label='Group'
)
if GroupAccount.objects.filter(id=group_account_id).count():
self.fields['group_account'].initial = GroupAccount.objects.get(id=group_account_id)
self.fields['date'] = forms.DateTimeField(
widget=DateTimePicker(options={"format": "YYYY-MM-DD"}),
initial=datetime.now
)
self.fields['modifications'] = forms.ModelMultipleChoiceField(
queryset=Modification.objects.all(),
required=False,
widget=forms.MultipleHiddenInput()
)
def set_group_account(self, group_account):
self.fields['group_account'].initial = group_account
class EditTransactionForm(TransactionForm):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
transaction = self.instance
self.fields['consumers'] = forms.ModelMultipleChoiceField(
widget=forms.CheckboxSelectMultiple(),
queryset=UserProfile.objects.filter(group_accounts=transaction.group_account),
label='Shared by some',
required=False
)
self.fields['buyer'] = forms.ModelChoiceField(
queryset=UserProfile.objects.filter(group_accounts=transaction.group_account),
empty_label=None
)
self.fields['group_account'] = forms.ModelChoiceField(
queryset=GroupAccount.objects.filter(id=transaction.group_account.id),
empty_label=None,
label='Group'
)
self.fields['date'] = forms.DateTimeField(widget=DateTimePicker(options={"format": "YYYY-MM-DD", "pickTime": False}))
# self.fields['modifications'] = forms.ModelMultipleChoiceField(queryset=Modification.objects.all(),
# required=False,
# widget=forms.MultipleHiddenInput())
self.fields['group_account'].widget.attrs['readonly'] = True
class NewRecurringTransactionForm(NewTransactionForm):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.fields['date'].label = 'Starting on'
class Meta:
model = TransactionRecurring
exclude = ('last_occurrence', )
class EditRecurringTransactionForm(EditTransactionForm):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.fields['date'].label = 'Starting on'
class Meta:
model = TransactionRecurring
exclude = ('last_occurrence', )
class NewRealTransactionForm(forms.ModelForm):
def __init__(self, group_account_id, user, *args, **kwargs):
super().__init__(*args, **kwargs)
# self.fields['sender'] = forms.ModelChoiceField(queryset=UserProfile.objects.get(user=user),
# widget = forms.HiddenInput, empty_label=None, label='From')
self.fields['sender'] = forms.ModelChoiceField(
queryset=UserProfile.objects.filter(user=user),
empty_label=None,
label='From',
widget=forms.HiddenInput()
)
self.fields['sender'].initial = UserProfile.objects.get(user=user)
self.fields['receiver'] = forms.ModelChoiceField(
queryset=UserProfile.objects.filter(group_accounts=group_account_id),
empty_label=None,
label='To'
)
self.fields['comment'] = forms.CharField(required=False)
self.fields['amount'].label = '€'
self.fields['group_account'] = forms.ModelChoiceField(
queryset=UserProfile.objects.get(user=user).group_accounts,
widget=forms.Select(attrs={"onChange": 'form.submit()'}),
empty_label=None,
label='Group'
)
if GroupAccount.objects.filter(id=group_account_id).count():
self.fields['group_account'].initial = GroupAccount.objects.get(id=group_account_id)
# self.fields['modifications'] = forms.ModelMultipleChoiceField(queryset=Modification.objects.all(),
# required=False,
# widget=forms.MultipleHiddenInput())
self.fields['date'] = forms.DateTimeField(
widget=DateTimePicker(options={"format": "YYYY-MM-DD"}),
initial=datetime.now
)
class Meta:
model = TransactionReal
fields = '__all__'
class EditRealTransactionForm(forms.ModelForm):
def __init__(self, transaction_id, *args, **kwargs):
super().__init__(*args, **kwargs)
transaction = TransactionReal.objects.get(id=transaction_id)
self.fields['amount'].label = '€'
self.fields['sender'] = forms.ModelChoiceField(
queryset=UserProfile.objects.filter(group_accounts=transaction.group_account.id),
empty_label=None, label='From',
widget=forms.HiddenInput)
self.fields['receiver'] = forms.ModelChoiceField(
queryset=UserProfile.objects.filter(group_accounts=transaction.group_account.id),
empty_label=None, label='To')
self.fields['group_account'] = forms.ModelChoiceField(
queryset=GroupAccount.objects.filter(id=transaction.group_account.id),
empty_label=None,
label='Group')
self.fields['group_account'].widget.attrs['readonly'] = True
self.fields['modifications'] = forms.ModelMultipleChoiceField(queryset=Modification.objects.all(),
required=False,
widget=forms.MultipleHiddenInput())
self.fields['date'] = forms.DateTimeField(widget=DateTimePicker(options={"format": "YYYY-MM-DD"}))
class Meta:
model = TransactionReal
fields = '__all__'
| 39.845771 | 125 | 0.626545 | 757 | 8,009 | 6.442536 | 0.150594 | 0.073816 | 0.037318 | 0.073816 | 0.788805 | 0.736928 | 0.721345 | 0.701866 | 0.659627 | 0.62641 | 0 | 0.000168 | 0.256836 | 8,009 | 200 | 126 | 40.045 | 0.818716 | 0.087776 | 0 | 0.583893 | 0 | 0 | 0.086337 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060403 | false | 0 | 0.067114 | 0 | 0.214765 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b8cc7e3fa70f96bafd607b7b4a7159a1f13c86f0 | 12,415 | py | Python | akshare/futures_derivative/futures_pig.py | lisong996/akshare | 1ee414cdecc2a492f2bb2f40d326a627c46dae2b | [
"MIT"
] | 4,202 | 2019-10-01T08:55:03.000Z | 2021-09-21T07:15:57.000Z | akshare/futures_derivative/futures_pig.py | lisong996/akshare | 1ee414cdecc2a492f2bb2f40d326a627c46dae2b | [
"MIT"
] | 290 | 2019-11-21T06:23:30.000Z | 2021-09-21T08:29:02.000Z | akshare/futures_derivative/futures_pig.py | lisong996/akshare | 1ee414cdecc2a492f2bb2f40d326a627c46dae2b | [
"MIT"
] | 894 | 2019-10-09T08:14:01.000Z | 2021-09-20T02:51:54.000Z | # -*- coding:utf-8 -*-
#!/usr/bin/env python
"""
Date: 2021/8/13 17:03
Desc: 养猪数据中心
https://zhujia.zhuwang.cc/
"""
import requests
import pandas as pd
def futures_pig_info(symbol: str = "猪肉批发价") -> pd.DataFrame:
"""
养猪数据中心
https://zhujia.zhuwang.cc/
:param symbol: choice of {"猪肉批发价", "仔猪价格", "生猪期货指数", "二元母猪价格", "生猪产能数据", "饲料原料数据", "中央储备冻猪肉", "白条肉", "育肥猪配合饲料", "肉类价格指数", "猪粮比价", "猪企销售简报-销售量", "猪企销售简报-销售额", "猪企销售简报-销售均价"}
:type symbol: str
:return: 猪肉信息
:rtype: pandas.DataFrame
"""
if symbol == "猪肉批发价":
url = "https://zhujia.zhuwang.cc/new_map/zhujiapork/chart1.json"
params = {"timestamp": "1627567846422"}
r = requests.get(url, params=params)
data_json = r.json()
temp_df = pd.DataFrame(data_json)
temp_df.columns = ["date", "item", "value"]
del temp_df["item"]
return temp_df
elif symbol == "仔猪价格":
url = "https://zt.zhuwang.cc/new_map/zhizhu/chart2.json"
params = {"timestamp": "1627567846422"}
r = requests.get(url, params=params)
data_json = r.json()
temp_df = pd.DataFrame(data_json).T
temp_df.columns = ["date", "value"]
temp_df["date"] = pd.to_datetime(temp_df["date"], format="%Y年%m月%d日").dt.date
temp_df["value"] = pd.to_numeric(temp_df["value"])
return temp_df
elif symbol == "生猪期货指数":
url = "https://zhujia.zhuwang.cc/new_map/shengzhuqihuo/chart1.json"
params = {"timestamp": "1627567846422"}
r = requests.get(url, params=params)
data_json = r.json()
temp_df = pd.DataFrame(data_json)
need_list = temp_df.iloc[-1, [1, 3, 5, 7, 9, 11]].tolist()
temp_df.columns = list("abcdefghijklm")
temp_df = temp_df.drop(["b", "d", "f", "h", "j", "l"], axis="columns")
temp_df.columns = ["日期"] + need_list
return temp_df
elif symbol == "二元母猪价格":
url = "https://zt.zhuwang.cc/new_map/eryuanpig/chart2.json"
params = {"timestamp": "1627567846422"}
r = requests.get(url, params=params)
data_json = r.json()
temp_df = pd.DataFrame(data_json).T
temp_df.columns = ["date", "value"]
temp_df["date"] = pd.to_datetime(temp_df["date"], format="%Y年%m月%d日").dt.date
temp_df["value"] = pd.to_numeric(temp_df["value"])
return temp_df
elif symbol == "生猪产能数据":
url = "https://zt.zhuwang.cc/new_map/shengzhuchanneng/chart1.json"
params = {"timestamp": "1627567846422"}
r = requests.get(url, params=params)
data_json = r.json()
temp_df = pd.DataFrame(data_json).T
temp_df.columns = ["周期", "能繁母猪存栏", "猪肉产量", "生猪存栏", "生猪出栏"]
temp_df["能繁母猪存栏"] = pd.to_numeric(temp_df["能繁母猪存栏"], errors="coerce")
temp_df["猪肉产量"] = pd.to_numeric(temp_df["猪肉产量"], errors="coerce")
temp_df["生猪存栏"] = pd.to_numeric(temp_df["生猪存栏"], errors="coerce")
temp_df["生猪出栏"] = pd.to_numeric(temp_df["生猪出栏"], errors="coerce")
return temp_df
elif symbol == "饲料原料数据":
url = "https://zt.zhuwang.cc/new_map/pigfeed/chart1.json"
params = {"timestamp": "1627567846422"}
r = requests.get(url, params=params)
data_json = r.json()
temp_df = pd.DataFrame(data_json).T
temp_df.columns = ["周期", "大豆进口金额", "大豆播种面积", "玉米进口金额", "玉米播种面积"]
temp_df["周期"] = temp_df["周期"].astype(int).astype(str)
temp_df["大豆进口金额"] = pd.to_numeric(temp_df["大豆进口金额"], errors="coerce")
temp_df["大豆播种面积"] = pd.to_numeric(temp_df["大豆播种面积"], errors="coerce")
temp_df["玉米进口金额"] = pd.to_numeric(temp_df["玉米进口金额"], errors="coerce")
temp_df["玉米播种面积"] = pd.to_numeric(temp_df["玉米播种面积"], errors="coerce")
return temp_df
elif symbol == "中央储备冻猪肉":
url = "https://zt.zhuwang.cc/new_map/chubeidongzhurou/chart2.json"
params = {"timestamp": "1627567846422"}
r = requests.get(url, params=params)
data_json = r.json()
temp_df = pd.DataFrame(data_json).T
temp_df.columns = ["date", "value"]
temp_df["date"] = pd.to_datetime(temp_df["date"], format="%Y年%m月%d日").dt.date
temp_df["value"] = pd.to_numeric(temp_df["value"])
return temp_df
elif symbol == "白条肉":
url = "https://zt.zhuwang.cc/new_map/baitiaozhurou/chart1.json"
params = {"timestamp": "1627567846422"}
r = requests.get(url, params=params)
data_json = r.json()
temp_df = pd.DataFrame(data_json).T
temp_df.columns = ["周期", "白条肉平均出厂价格", "环比", "同比"]
temp_df["白条肉平均出厂价格"] = pd.to_numeric(temp_df["白条肉平均出厂价格"])
temp_df["环比"] = pd.to_numeric(temp_df["环比"])
temp_df["同比"] = pd.to_numeric(temp_df["同比"])
return temp_df
elif symbol == "育肥猪配合饲料":
url = "https://zhujia.zhuwang.cc/new_map/yufeipig/chart1.json"
params = {"timestamp": "1627567846422"}
r = requests.get(url, params=params)
data_json = r.json()
temp_df = pd.DataFrame(data_json)
temp_df.columns = ["周期", "发布日期", "_", "本周", "去年同期", "上一周", "_", "_", "_"]
temp_df = temp_df[["发布日期", "周期", "本周", "去年同期", "上一周"]]
temp_df["去年同期"] = pd.to_numeric(temp_df["去年同期"])
temp_df["上一周"] = pd.to_numeric(temp_df["上一周"])
return temp_df
elif symbol == "肉类价格指数":
url = "https://zhujia.zhuwang.cc/new_map/meatindex/chart1.json"
params = {"timestamp": "1627567846422"}
r = requests.get(url, params=params)
data_json = r.json()
temp_df = pd.DataFrame(data_json)
temp_df.columns = ["date", "_", "value"]
temp_df = temp_df[["date", "value"]]
temp_df["value"] = pd.to_numeric(temp_df["value"])
return temp_df
elif symbol == "猪粮比价":
url = "https://zt.zhuwang.cc/new_map/zhuliangbi/chart2.json"
params = {"timestamp": "1627567846422"}
r = requests.get(url, params=params)
data_json = r.json()
temp_df = pd.DataFrame(data_json).T
temp_df.columns = ["date", "value"]
temp_df["date"] = pd.to_datetime(temp_df["date"], format="%Y年%m月%d日").dt.date
temp_df["value"] = pd.to_numeric(temp_df["value"])
return temp_df
elif symbol == "猪企销售简报-销售量":
url = "https://zt.zhuwang.cc/new_map/zhuqixiaoshoujianbao/xiaoliang.json"
params = {"timestamp": "1627567846422"}
r = requests.get(url, params=params)
data_json = r.json()
temp_df = pd.DataFrame(data_json).T
temp_df.columns = ["周期", "温氏", "正邦", "新希望", "牧原"]
temp_df["温氏"] = pd.to_numeric(temp_df["温氏"])
temp_df["正邦"] = pd.to_numeric(temp_df["正邦"])
temp_df["新希望"] = pd.to_numeric(temp_df["新希望"])
temp_df["牧原"] = pd.to_numeric(temp_df["牧原"])
return temp_df
elif symbol == "猪企销售简报-销售额":
url = "https://zt.zhuwang.cc/new_map/zhuqixiaoshoujianbao/xiaoshoue.json"
params = {"timestamp": "1627567846422"}
r = requests.get(url, params=params)
data_json = r.json()
temp_df = pd.DataFrame(data_json).T
temp_df.columns = ["周期", "温氏", "正邦", "新希望", "牧原"]
temp_df["温氏"] = pd.to_numeric(temp_df["温氏"])
temp_df["正邦"] = pd.to_numeric(temp_df["正邦"])
temp_df["新希望"] = pd.to_numeric(temp_df["新希望"])
temp_df["牧原"] = pd.to_numeric(temp_df["牧原"])
return temp_df
elif symbol == "猪企销售简报-销售均价":
url = "https://zt.zhuwang.cc/new_map/zhuqixiaoshoujianbao/junjia.json"
params = {"timestamp": "1627567846422"}
r = requests.get(url, params=params)
data_json = r.json()
temp_df = pd.DataFrame(data_json).T
temp_df.columns = ["周期", "温氏", "正邦", "新希望", "牧原"]
temp_df["温氏"] = pd.to_numeric(temp_df["温氏"])
temp_df["正邦"] = pd.to_numeric(temp_df["正邦"])
temp_df["新希望"] = pd.to_numeric(temp_df["新希望"])
temp_df["牧原"] = pd.to_numeric(temp_df["牧原"])
return temp_df
def futures_pig_rank(symbol: str = "外三元") -> pd.DataFrame:
"""
价格排行榜
https://zhujia.zhuwang.cc/lists.shtml
:param symbol: choice of {"外三元", "内三元", "土杂猪", "玉米", "豆粕"}
:type symbol: str
:return: 价格排行榜
:rtype: pandas.DataFrame
"""
if symbol == "外三元":
temp_df = pd.read_html("https://zhujia.zhuwang.cc/lists.shtml")[0]
temp_df.columns = [
'排名',
'品种',
'省份',
'价格-公斤',
'价格-斤',
]
temp_df['价格-公斤'] = temp_df['价格-公斤'].str.strip("元")
temp_df['价格-斤'] = temp_df['价格-斤'].str.strip("元")
temp_df['价格-公斤'] = pd.to_numeric(temp_df['价格-公斤'])
temp_df['价格-斤'] = pd.to_numeric(temp_df['价格-斤'])
return temp_df
elif symbol == "内三元":
temp_df = pd.read_html("https://zhujia.zhuwang.cc/lists-1.shtml")[0]
temp_df.columns = [
'排名',
'品种',
'省份',
'价格-公斤',
'价格-斤',
]
temp_df['价格-公斤'] = temp_df['价格-公斤'].str.strip("元")
temp_df['价格-斤'] = temp_df['价格-斤'].str.strip("元")
temp_df['价格-公斤'] = pd.to_numeric(temp_df['价格-公斤'])
temp_df['价格-斤'] = pd.to_numeric(temp_df['价格-斤'])
return temp_df
elif symbol == "土杂猪":
temp_df = pd.read_html("https://zhujia.zhuwang.cc/lists-2.shtml")[0]
temp_df.columns = [
'排名',
'品种',
'省份',
'价格-公斤',
'价格-斤',
]
temp_df['价格-公斤'] = temp_df['价格-公斤'].str.strip("元")
temp_df['价格-斤'] = temp_df['价格-斤'].str.strip("元")
temp_df['价格-公斤'] = pd.to_numeric(temp_df['价格-公斤'])
temp_df['价格-斤'] = pd.to_numeric(temp_df['价格-斤'])
return temp_df
elif symbol == "玉米":
temp_df = pd.read_html("https://zhujia.zhuwang.cc/lists-3.shtml")[0]
temp_df.columns = [
'排名',
'品种',
'省份',
'价格-公斤',
'价格-斤',
]
temp_df['价格-公斤'] = temp_df['价格-公斤'].str.strip("元")
temp_df['价格-斤'] = temp_df['价格-斤'].str.strip("元")
temp_df['价格-公斤'] = pd.to_numeric(temp_df['价格-公斤'])
temp_df['价格-斤'] = pd.to_numeric(temp_df['价格-斤'])
return temp_df
elif symbol == "豆粕":
temp_df = pd.read_html("https://zhujia.zhuwang.cc/lists-4.shtml")[0]
temp_df.columns = [
'排名',
'品种',
'省份',
'价格-公斤',
'价格-斤',
]
temp_df['价格-公斤'] = temp_df['价格-公斤'].str.strip("元")
temp_df['价格-斤'] = temp_df['价格-斤'].str.strip("元")
temp_df['价格-公斤'] = pd.to_numeric(temp_df['价格-公斤'])
temp_df['价格-斤'] = pd.to_numeric(temp_df['价格-斤'])
return temp_df
if __name__ == "__main__":
futures_pig_info_df = futures_pig_info(symbol="猪肉批发价")
print(futures_pig_info_df)
futures_pig_info_df = futures_pig_info(symbol="仔猪价格")
print(futures_pig_info_df)
futures_pig_info_df = futures_pig_info(symbol="生猪期货指数")
print(futures_pig_info_df)
futures_pig_info_df = futures_pig_info(symbol="二元母猪价格")
print(futures_pig_info_df)
futures_pig_info_df = futures_pig_info(symbol="生猪产能数据")
print(futures_pig_info_df)
futures_pig_info_df = futures_pig_info(symbol="饲料原料数据")
print(futures_pig_info_df)
futures_pig_info_df = futures_pig_info(symbol="中央储备冻猪肉")
print(futures_pig_info_df)
futures_pig_info_df = futures_pig_info(symbol="白条肉")
print(futures_pig_info_df)
futures_pig_info_df = futures_pig_info(symbol="育肥猪配合饲料")
print(futures_pig_info_df)
futures_pig_info_df = futures_pig_info(symbol="肉类价格指数")
print(futures_pig_info_df)
futures_pig_info_df = futures_pig_info(symbol="猪粮比价")
print(futures_pig_info_df)
futures_pig_info_df = futures_pig_info(symbol="猪企销售简报-销售量")
print(futures_pig_info_df)
futures_pig_info_df = futures_pig_info(symbol="猪企销售简报-销售额")
print(futures_pig_info_df)
futures_pig_info_df = futures_pig_info(symbol="猪企销售简报-销售均价")
print(futures_pig_info_df)
futures_pig_rank_df = futures_pig_rank(symbol="外三元")
print(futures_pig_rank_df)
futures_pig_rank_df = futures_pig_rank(symbol="内三元")
print(futures_pig_rank_df)
futures_pig_rank_df = futures_pig_rank(symbol="土杂猪")
print(futures_pig_rank_df)
futures_pig_rank_df = futures_pig_rank(symbol="玉米")
print(futures_pig_rank_df)
futures_pig_rank_df = futures_pig_rank(symbol="豆粕")
print(futures_pig_rank_df)
| 39.538217 | 176 | 0.590334 | 1,738 | 12,415 | 3.964902 | 0.095512 | 0.153243 | 0.08736 | 0.08707 | 0.82615 | 0.758235 | 0.753011 | 0.696561 | 0.671746 | 0.666231 | 0 | 0.023373 | 0.234958 | 12,415 | 313 | 177 | 39.664537 | 0.702148 | 0.042529 | 0 | 0.646617 | 0 | 0 | 0.199272 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.007519 | false | 0 | 0.007519 | 0 | 0.086466 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b8e94277556f29e1e1549f106746127c5fddc71e | 200 | py | Python | 10992.py | BACCHUS-S/Baekjoon | 05edab8ea7c7205ca67ef8fe34bf0abd22726a0e | [
"MIT"
] | null | null | null | 10992.py | BACCHUS-S/Baekjoon | 05edab8ea7c7205ca67ef8fe34bf0abd22726a0e | [
"MIT"
] | null | null | null | 10992.py | BACCHUS-S/Baekjoon | 05edab8ea7c7205ca67ef8fe34bf0abd22726a0e | [
"MIT"
] | null | null | null | i = int(input())
for j in range(1,i+1):
if j == 1:
print(" "*(i-j) + "*"*j)
elif j != i:
print(" "*(i-j) + "*" + " "*(((j-1)*2)-1) + "*")
else :
print("*"*(2*j-1))
| 22.222222 | 56 | 0.32 | 32 | 200 | 2 | 0.40625 | 0.09375 | 0.21875 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06015 | 0.335 | 200 | 8 | 57 | 25 | 0.421053 | 0 | 0 | 0 | 0 | 0 | 0.035 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.375 | 0 | 0 | 0 | null | 0 | 1 | 1 | 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 | 4 |
b8fa78a13fb992cdbe54987cc3907780423c1702 | 223 | py | Python | docs/skeletons/test/Amazon_cost_test.py | Nirav1929/ItemStockTracker | 755ef95ab316fa162d6464cf09a39c081828ac70 | [
"MIT"
] | null | null | null | docs/skeletons/test/Amazon_cost_test.py | Nirav1929/ItemStockTracker | 755ef95ab316fa162d6464cf09a39c081828ac70 | [
"MIT"
] | 37 | 2021-10-21T17:50:54.000Z | 2021-11-04T21:29:10.000Z | docs/skeletons/test/Amazon_cost_test.py | Nirav1929/ItemStockTracker | 755ef95ab316fa162d6464cf09a39c081828ac70 | [
"MIT"
] | 3 | 2021-11-11T04:16:16.000Z | 2021-12-05T00:05:06.000Z | def test_check_cost():
"""
Tests if the cost value is received correctly for each of the 5 stock
status conditions (In Stock, Order Soon, Out of Stock, In Stock Soon,
Invalid URL) on www.amazon.com.
"""
| 31.857143 | 73 | 0.67713 | 36 | 223 | 4.138889 | 0.777778 | 0.09396 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005917 | 0.242152 | 223 | 6 | 74 | 37.166667 | 0.87574 | 0.766816 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | true | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
772ba79a856ba4471bf0e4085acc281a7ad89d46 | 405 | py | Python | mfsapiapp/models.py | lupamo3/django-points | 7dc943521c73de1728c5f96d529b16ae51de98e5 | [
"MIT"
] | null | null | null | mfsapiapp/models.py | lupamo3/django-points | 7dc943521c73de1728c5f96d529b16ae51de98e5 | [
"MIT"
] | null | null | null | mfsapiapp/models.py | lupamo3/django-points | 7dc943521c73de1728c5f96d529b16ae51de98e5 | [
"MIT"
] | 1 | 2021-09-21T06:20:28.000Z | 2021-09-21T06:20:28.000Z | from django.db import models
# Create your models here.
class Points(models.Model):
name = models.CharField(max_length=255)
points = models.CharField(max_length=255)
points_pair = models.CharField(max_length=255)
def get_points(self):
return 'The points ' + self.points + 'closest points' + self.points_pair + ' from ' + self.name
def __str__(self):
return self.name | 31.153846 | 103 | 0.693827 | 55 | 405 | 4.927273 | 0.436364 | 0.166052 | 0.199262 | 0.265683 | 0.343173 | 0.243542 | 0 | 0 | 0 | 0 | 0 | 0.027778 | 0.2 | 405 | 13 | 104 | 31.153846 | 0.808642 | 0.059259 | 0 | 0 | 0 | 0 | 0.081579 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0.222222 | 1 | 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 | 0 | 0 | 0 | 4 |
772de26b8af8fc18cffde5036b90de0ab0f604cd | 52 | py | Python | tests/__init__.py | deceptiveintelligence/google-taskmaster-2020 | af5b7f842d4ff83a317079c540f9fb1d6bcda9ec | [
"Apache-2.0"
] | null | null | null | tests/__init__.py | deceptiveintelligence/google-taskmaster-2020 | af5b7f842d4ff83a317079c540f9fb1d6bcda9ec | [
"Apache-2.0"
] | null | null | null | tests/__init__.py | deceptiveintelligence/google-taskmaster-2020 | af5b7f842d4ff83a317079c540f9fb1d6bcda9ec | [
"Apache-2.0"
] | null | null | null | """Unit test package for google_taskmaster_2020."""
| 26 | 51 | 0.769231 | 7 | 52 | 5.428571 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085106 | 0.096154 | 52 | 1 | 52 | 52 | 0.723404 | 0.865385 | 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 | 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 | 4 |
774da67dd76a85457fa901f9887b4a3688a66891 | 952 | py | Python | python/test/test_users_api.py | dlens/dlxapi | 189a6519240ce625d7a9cdb89e305a335d2aa045 | [
"MIT"
] | null | null | null | python/test/test_users_api.py | dlens/dlxapi | 189a6519240ce625d7a9cdb89e305a335d2aa045 | [
"MIT"
] | 1 | 2020-08-20T17:31:43.000Z | 2020-08-20T17:31:43.000Z | python/test/test_users_api.py | dlens/dlxapi | 189a6519240ce625d7a9cdb89e305a335d2aa045 | [
"MIT"
] | null | null | null | # coding: utf-8
"""
Decision Lens API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import dlxapi
from dlxapi.api.users_api import UsersApi # noqa: E501
from dlxapi.rest import ApiException
class TestUsersApi(unittest.TestCase):
"""UsersApi unit test stubs"""
def setUp(self):
self.api = dlxapi.api.users_api.UsersApi() # noqa: E501
def tearDown(self):
pass
def test_create_user(self):
"""Test case for create_user
Creates a new user. # noqa: E501
"""
pass
def test_get_users(self):
"""Test case for get_users
Get users. # noqa: E501
"""
pass
if __name__ == '__main__':
unittest.main()
| 19.428571 | 119 | 0.646008 | 121 | 952 | 4.909091 | 0.46281 | 0.06734 | 0.047138 | 0.070707 | 0.127946 | 0.127946 | 0.127946 | 0 | 0 | 0 | 0 | 0.025352 | 0.254202 | 952 | 48 | 120 | 19.833333 | 0.811268 | 0.420168 | 0 | 0.1875 | 1 | 0 | 0.016913 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.1875 | 0.3125 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 4 |
775e53d6cb109bf0ef579ee2e6ef66a1ba828fb5 | 658 | py | Python | apps/core/purpleserver/providers/extension/models/ups.py | rcknr/purplship-server | f8ec35af3da870fada0e989c20a8349c958c637c | [
"ECL-2.0",
"Apache-2.0"
] | 12 | 2020-02-03T08:11:21.000Z | 2021-04-13T02:00:38.000Z | apps/core/purpleserver/providers/extension/models/ups.py | rcknr/purplship-server | f8ec35af3da870fada0e989c20a8349c958c637c | [
"ECL-2.0",
"Apache-2.0"
] | 9 | 2020-02-12T00:25:08.000Z | 2021-04-20T10:31:59.000Z | apps/core/purpleserver/providers/extension/models/ups.py | rcknr/purplship-server | f8ec35af3da870fada0e989c20a8349c958c637c | [
"ECL-2.0",
"Apache-2.0"
] | 7 | 2020-02-03T08:10:50.000Z | 2021-04-13T15:17:12.000Z | from django.db import models
from purpleserver.providers.models.carrier import Carrier, COUNTRIES
class UPSSettings(Carrier):
class Meta:
db_table = "ups-settings"
verbose_name = 'UPS Settings'
verbose_name_plural = 'UPS Settings'
username = models.CharField(max_length=200)
password = models.CharField(max_length=200)
access_license_number = models.CharField(max_length=200)
account_number = models.CharField(max_length=200)
account_country_code = models.CharField(max_length=3, blank=True, choices=COUNTRIES)
@property
def carrier_name(self) -> str:
return 'ups'
SETTINGS = UPSSettings
| 28.608696 | 88 | 0.729483 | 80 | 658 | 5.8125 | 0.4875 | 0.16129 | 0.193548 | 0.258065 | 0.288172 | 0.172043 | 0.172043 | 0 | 0 | 0 | 0 | 0.024209 | 0.183891 | 658 | 22 | 89 | 29.909091 | 0.841713 | 0 | 0 | 0 | 0 | 0 | 0.059271 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0.0625 | 0.125 | 0.0625 | 0.6875 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
91f92ae50101ce627adfd9352379ed693c6d2b9c | 93 | py | Python | chickrab.py | krishna-prasath/My_programs | 96bac29eb448beda2dda439ac7adea7a5343c066 | [
"bzip2-1.0.6"
] | null | null | null | chickrab.py | krishna-prasath/My_programs | 96bac29eb448beda2dda439ac7adea7a5343c066 | [
"bzip2-1.0.6"
] | null | null | null | chickrab.py | krishna-prasath/My_programs | 96bac29eb448beda2dda439ac7adea7a5343c066 | [
"bzip2-1.0.6"
] | null | null | null | x=31
y=118
for i in range(0,32):
if (i*2)+((x-i)*4)==y:
break
print(i,x-i)
| 13.285714 | 27 | 0.451613 | 22 | 93 | 1.909091 | 0.681818 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 0.301075 | 93 | 6 | 28 | 15.5 | 0.492308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0 | 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 | 4 |
62352e3c9797cca3bc45ff45c07356bde8a74be1 | 85 | py | Python | src/brgy175/badac/apps.py | arjanlangit/brgy175 | 32f91a03c0d8d30472ad8b13e5ce0e47d229e4f8 | [
"bzip2-1.0.6"
] | 2 | 2019-11-08T14:37:16.000Z | 2019-11-08T14:37:19.000Z | src/brgy175/badac/apps.py | arjanlangit/brgy175 | 32f91a03c0d8d30472ad8b13e5ce0e47d229e4f8 | [
"bzip2-1.0.6"
] | null | null | null | src/brgy175/badac/apps.py | arjanlangit/brgy175 | 32f91a03c0d8d30472ad8b13e5ce0e47d229e4f8 | [
"bzip2-1.0.6"
] | 2 | 2019-10-08T05:40:39.000Z | 2020-03-02T20:28:22.000Z | from django.apps import AppConfig
class BadacConfig(AppConfig):
name = 'badac'
| 14.166667 | 33 | 0.741176 | 10 | 85 | 6.3 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 85 | 5 | 34 | 17 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
62584ddc686d7f37383ad80fe3ddefac28fce49d | 64 | py | Python | app/auth/controllers.py | gelo592/Pample | 24cc3db752f6e40c142f4af0bc2ba71f59063a73 | [
"MIT"
] | 1 | 2015-06-10T22:33:33.000Z | 2015-06-10T22:33:33.000Z | app/auth/controllers.py | gelo592/Pample | 24cc3db752f6e40c142f4af0bc2ba71f59063a73 | [
"MIT"
] | null | null | null | app/auth/controllers.py | gelo592/Pample | 24cc3db752f6e40c142f4af0bc2ba71f59063a73 | [
"MIT"
] | null | null | null | ### Empty until i override the default flask-security views ###
| 32 | 63 | 0.734375 | 9 | 64 | 5.222222 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15625 | 64 | 1 | 64 | 64 | 0.87037 | 0.859375 | 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 | 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 | 4 |
628da8f2268779cdb2d02aa9e734e4aacfae682d | 159 | py | Python | trex-scripts/lib/__init__.py | ersuneetsingh/fabric-line-rate-test | b630bbd4473764a182cf77e53e7c06f849044d51 | [
"Apache-2.0"
] | null | null | null | trex-scripts/lib/__init__.py | ersuneetsingh/fabric-line-rate-test | b630bbd4473764a182cf77e53e7c06f849044d51 | [
"Apache-2.0"
] | null | null | null | trex-scripts/lib/__init__.py | ersuneetsingh/fabric-line-rate-test | b630bbd4473764a182cf77e53e7c06f849044d51 | [
"Apache-2.0"
] | null | null | null | # SPDX-FileCopyrightText: Copyright 2020-present Open Networking Foundation.
# SPDX-License-Identifier: Apache-2.0
# This package includes utility libraries.
| 31.8 | 76 | 0.811321 | 19 | 159 | 6.789474 | 0.947368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042254 | 0.106918 | 159 | 4 | 77 | 39.75 | 0.866197 | 0.949686 | 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 | 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 | 4 |
6586eb88a691b4789eaf45a9cd58f1ee3c6089f1 | 99 | py | Python | xudo/commands/up.py | Ostralyan/xudo | d4ab6ee01fef52e8799ff3e6a76234351620447e | [
"MIT"
] | 3 | 2017-04-05T17:30:13.000Z | 2018-09-18T02:14:40.000Z | xudo/commands/up.py | Ostralyan/xudo | d4ab6ee01fef52e8799ff3e6a76234351620447e | [
"MIT"
] | null | null | null | xudo/commands/up.py | Ostralyan/xudo | d4ab6ee01fef52e8799ff3e6a76234351620447e | [
"MIT"
] | 2 | 2017-05-30T17:42:31.000Z | 2017-12-14T20:14:31.000Z | from .base import Base
class Up(Base):
def run(self):
os.system("docker-compose up")
| 14.142857 | 38 | 0.626263 | 15 | 99 | 4.133333 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.242424 | 99 | 6 | 39 | 16.5 | 0.826667 | 0 | 0 | 0 | 0 | 0 | 0.171717 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
65a024ad8cb5d6c03972cfc8d0075e784806b13d | 207 | py | Python | python/celery_user/call_tasks.py | seckcoder/lang-learn | 1e0d6f412bbd7f89b1af00293fd907ddb3c1b571 | [
"Unlicense"
] | 1 | 2017-10-14T04:23:45.000Z | 2017-10-14T04:23:45.000Z | python/celery_user/call_tasks.py | seckcoder/lang-learn | 1e0d6f412bbd7f89b1af00293fd907ddb3c1b571 | [
"Unlicense"
] | null | null | null | python/celery_user/call_tasks.py | seckcoder/lang-learn | 1e0d6f412bbd7f89b1af00293fd907ddb3c1b571 | [
"Unlicense"
] | null | null | null | from proj import tasks
# Callback
#res = tasks.add.apply_async((2, 2), link=tasks.add_callback.s())
#print res.get()
# Exc Callback
tasks.add_exc.apply_async((2, 0), link_error=tasks.add_exc_callback.s())
| 23 | 72 | 0.7343 | 36 | 207 | 4.027778 | 0.472222 | 0.22069 | 0.151724 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021505 | 0.101449 | 207 | 8 | 73 | 25.875 | 0.758065 | 0.483092 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 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 | 4 |
65a365024f9f9eb738d720c880cf152d36209131 | 314 | py | Python | funfact/experimental/__init__.py | terryjx/FunFact | 595c3b68bac7cc92c802969f207f060c1242a88b | [
"BSD-3-Clause-LBNL"
] | 1 | 2021-12-13T07:55:16.000Z | 2021-12-13T07:55:16.000Z | funfact/experimental/__init__.py | terryjx/FunFact | 595c3b68bac7cc92c802969f207f060c1242a88b | [
"BSD-3-Clause-LBNL"
] | null | null | null | funfact/experimental/__init__.py | terryjx/FunFact | 595c3b68bac7cc92c802969f207f060c1242a88b | [
"BSD-3-Clause-LBNL"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from .rbf_expansion_plus import RBFExpansionPlus
from .rbf_expansion_minibatch import RBFExpansionMiniBatch
from .rbf_expansion_minibatch_plus import RBFExpansionMiniBatchPlus
__all__ = [
'RBFExpansionPlus', 'RBFExpansionMiniBatchPlus', 'RBFExpansionMiniBatch'
]
| 31.4 | 76 | 0.812102 | 30 | 314 | 8.133333 | 0.566667 | 0.086066 | 0.196721 | 0.204918 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003534 | 0.098726 | 314 | 9 | 77 | 34.888889 | 0.858657 | 0.133758 | 0 | 0 | 0 | 0 | 0.22963 | 0.17037 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
65e257f6cf768a10f8640b064492121cf9caa011 | 4,706 | py | Python | tests/test_elb_actions.py | awslabs/aws-az-failure-chaostoolkit | 95f682ce3e96efbf8c6aee58123b5dbbdfd441ee | [
"Apache-2.0"
] | 6 | 2021-10-20T13:01:00.000Z | 2022-02-23T12:32:31.000Z | tests/test_elb_actions.py | awslabs/aws-az-failure-chaostoolkit | 95f682ce3e96efbf8c6aee58123b5dbbdfd441ee | [
"Apache-2.0"
] | 1 | 2022-02-09T09:33:02.000Z | 2022-03-03T14:03:09.000Z | tests/test_elb_actions.py | awslabs/aws-az-failure-chaostoolkit | 95f682ce3e96efbf8c6aee58123b5dbbdfd441ee | [
"Apache-2.0"
] | null | null | null | import os
from unittest.mock import MagicMock, patch
from azchaosaws.elb.actions import fail_az
@patch("azchaosaws.elb.actions.client", autospec=True)
def test_fail_az_clb_non_default_vpc(client):
mock_client = MagicMock()
client.return_value = mock_client
az = "ap-southeast-1a"
dry_run = False
state_path = "test_fail_az_clb_non_default_vpc.json"
load_balancer_name = "my-load-balancer"
subnet_ids = ["subnet-b61f49f0", "subnet-15aaab61", "subnet-0ecac448"]
vpc_id = "vpc-a01106c2"
mock_client.get_paginator = get_mock_paginate
mock_client.describe_tags.return_value = {
"TagDescriptions": [
{
"LoadBalancerName": load_balancer_name,
"Tags": [
{"Key": "AZ_FAILURE", "Value": "True"},
],
},
]
}
mock_client.describe_vpcs.return_value = {"Vpcs": []}
mock_client.describe_load_balancers.return_value = {
"LoadBalancerDescriptions": [
{
"LoadBalancerName": load_balancer_name,
"AvailabilityZones": [
"ap-southeast-1a",
"ap-southeast-1b",
"ap-southeast-1c",
],
"Subnets": subnet_ids,
"VPCId": vpc_id,
}
]
}
mock_client.detach_load_balancer_from_subnets.return_value = {
"Subnets": [
subnet_ids[1],
subnet_ids[2],
]
}
fail_az(az=az, dry_run=dry_run, state_path=state_path)
mock_client.detach_load_balancer_from_subnets.assert_called_with(
LoadBalancerName=load_balancer_name, Subnets=[subnet_ids[0]]
)
os.remove(state_path)
@patch("azchaosaws.elb.actions.client", autospec=True)
def test_fail_az_clb_default_vpc(client):
mock_client = MagicMock()
client.return_value = mock_client
az = "ap-southeast-1a"
dry_run = False
state_path = "test_fail_az_clb_default_vpc.json"
load_balancer_name = "my-load-balancer"
subnet_ids = ["subnet-b61f49f0", "subnet-15aaab61", "subnet-0ecac448"]
vpc_id = "vpc-a01106c2"
mock_client.get_paginator = get_mock_paginate
mock_client.describe_tags.return_value = {
"TagDescriptions": [
{
"LoadBalancerName": load_balancer_name,
"Tags": [
{"Key": "AZ_FAILURE", "Value": "True"},
],
},
]
}
mock_client.describe_vpcs.return_value = {"Vpcs": [{"VpcId": vpc_id}]}
mock_client.describe_load_balancers.return_value = {
"LoadBalancerDescriptions": [
{
"LoadBalancerName": load_balancer_name,
"AvailabilityZones": [
"ap-southeast-1a",
"ap-southeast-1b",
"ap-southeast-1c",
],
"Subnets": subnet_ids,
"VPCId": vpc_id,
}
]
}
mock_client.disable_availability_zones_for_load_balancer.return_value = {
"AvailabilityZones": [
"ap-southeast-1b",
"ap-southeast-1c",
]
}
fail_az(az=az, dry_run=dry_run, state_path=state_path)
mock_client.disable_availability_zones_for_load_balancer.assert_called_with(
LoadBalancerName=load_balancer_name, AvailabilityZones=[az]
)
os.remove(state_path)
def get_mock_paginate(operation_name):
return {
"describe_load_balancers": MagicMock(
paginate=MagicMock(
return_value=[
{
"LoadBalancerDescriptions": [
{
"LoadBalancerName": "my-load-balancer",
"AvailabilityZones": [
"ap-southeast-1a",
"ap-southeast-1b",
"ap-southeast-1c",
],
}
]
}
]
)
),
"describe_subnets": MagicMock(
paginate=MagicMock(
return_value=[
{
"Subnets": [
{
"SubnetId": "subnet-b61f49f0",
"VpcId": "vpc-a01106c2",
"AvailabilityZone": "ap-southeast-1a",
},
],
}
]
)
),
}.get(operation_name, MagicMock())
| 29.974522 | 80 | 0.506587 | 404 | 4,706 | 5.554455 | 0.185644 | 0.071301 | 0.057041 | 0.085562 | 0.810606 | 0.765597 | 0.754011 | 0.682709 | 0.64795 | 0.64795 | 0 | 0.023037 | 0.391203 | 4,706 | 156 | 81 | 30.166667 | 0.760209 | 0 | 0 | 0.541353 | 0 | 0 | 0.201445 | 0.047386 | 0 | 0 | 0 | 0 | 0.015038 | 1 | 0.022556 | false | 0 | 0.022556 | 0.007519 | 0.052632 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
02c5b877946379c412381a67c40ba3de32d91154 | 85 | py | Python | comps/apps.py | dlanghorne0428/dancesport-tracker-projec | e55d91a4f03c26d6ee8c28846a809064adfdb158 | [
"MIT"
] | null | null | null | comps/apps.py | dlanghorne0428/dancesport-tracker-projec | e55d91a4f03c26d6ee8c28846a809064adfdb158 | [
"MIT"
] | 87 | 2020-04-15T22:29:03.000Z | 2022-01-02T02:21:28.000Z | comps/apps.py | dlanghorne0428/dancesport-tracker-projec | e55d91a4f03c26d6ee8c28846a809064adfdb158 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class CompsConfig(AppConfig):
name = 'comps'
| 14.166667 | 33 | 0.741176 | 10 | 85 | 6.3 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 85 | 5 | 34 | 17 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
02d5be9ae5228d55e76905ad2e9118bf5f6f2597 | 127 | py | Python | testcube/context_processors.py | tobyqin/testcube | 0a3e9a4ad61bd97ae46f878e188936f4725e1e49 | [
"MIT"
] | 28 | 2017-06-28T08:39:01.000Z | 2022-01-24T11:47:41.000Z | testcube/context_processors.py | gunesmes/testcube | 008740c278ad82e8b33cad7c069e3e8e086b389c | [
"MIT"
] | 60 | 2017-06-06T04:06:46.000Z | 2019-06-21T08:53:14.000Z | testcube/context_processors.py | gunesmes/testcube | 008740c278ad82e8b33cad7c069e3e8e086b389c | [
"MIT"
] | 10 | 2017-06-06T02:14:08.000Z | 2022-02-07T14:43:28.000Z | from testcube.settings import VERSION
def settings_context_processor(request):
return {
'version': VERSION
}
| 15.875 | 40 | 0.700787 | 13 | 127 | 6.692308 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.228346 | 127 | 7 | 41 | 18.142857 | 0.887755 | 0 | 0 | 0 | 0 | 0 | 0.055118 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.2 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
02eedac7c69055770c9da2601f5238b938f96a20 | 359 | py | Python | python/rain/client/__init__.py | gavento/rain | 9372c66d82180ecae12af065a81631565c0d40dc | [
"MIT"
] | null | null | null | python/rain/client/__init__.py | gavento/rain | 9372c66d82180ecae12af065a81631565c0d40dc | [
"MIT"
] | null | null | null | python/rain/client/__init__.py | gavento/rain | 9372c66d82180ecae12af065a81631565c0d40dc | [
"MIT"
] | null | null | null |
from .input import Input # noqa
from .output import Output # noqa
from .data import blob, pickled, DataObject # noqa
from .task import Task # noqa
from ..common import RainException, RainWarning # noqa
from .pycode import remote, Remote # noqa
from .client import Client # noqa
from .program import Program # noqa
from .session import Session # noqa
| 32.636364 | 54 | 0.749304 | 49 | 359 | 5.489796 | 0.367347 | 0.237918 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.18663 | 359 | 10 | 55 | 35.9 | 0.921233 | 0.122563 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
f3170ea1ee0424ab5d1954bac67ffda02f9190e4 | 38,242 | py | Python | WeaponLib.py | nemosupremo/Colosseum--Year-3XXX | 93cd723e60f2f8fe57637cdabad2b1a644c9c279 | [
"MIT"
] | 1 | 2021-01-09T16:04:48.000Z | 2021-01-09T16:04:48.000Z | WeaponLib.py | nemosupremo/Colosseum--Year-3XXX | 93cd723e60f2f8fe57637cdabad2b1a644c9c279 | [
"MIT"
] | null | null | null | WeaponLib.py | nemosupremo/Colosseum--Year-3XXX | 93cd723e60f2f8fe57637cdabad2b1a644c9c279 | [
"MIT"
] | null | null | null | NAME = ['AK47','Ingram','Scout','M3','M79','MG42','Laser','M16-A1','Mp5','Aug','Spas12','Dragunov','Minimi','Usas','DesertEagle','Glock18c','FAMAS','IMI UZI','AWP','HK 69A1','M60E4','FN F2000','Skorpion','FN P90','PSG-1','MX1014','GM-94','MGL 40 MK-1','M16-A2','G3 SG-1','14year','FNfive_seven','M14','MP7','The Hammer','Flak Cannon','Suicide Bomb','Heavy Machine Gun','Pillgun','Force A Nature','Needle Gun','Thompson','xmas','Liberty','Bubble Gun','P230','Launcher','Flame Thrower','XR-20','Injector','Macross Cannon','Napalm','Grenade','Smoke Bomb','Flame Bomb','Cluster Grenade','Small Bomb','Magnetic Grenade','Power Grenade','Land Mine','Revenger','SW-1','SWR-2','SWR-2','SWR-2','SW-1','Empty','Canon','enemy_s1','enemy_s1','enemy_s1','enemy_s1','enemy_s1','enemy_s1','enemy_s1','enemy_s1','friend','enemy_sb1','enemy_sb2','enemy_sb3','enemy_sb4','enemy_sb4','enemy_sb4','enemy_sb5','enemy_sb6','enemy_Grenade','enemy_air1','Player_Mech01','enemy_Grenade','Splosion','newgun1','newgun2','enemy_assert','enemy_shotgun','enemy_gLauncher','enemy_sniper','enemy_launcher','enemy_Mech1','enemy_Mech2','enemy_Mech3','enemy_Mech4','enemy_Mech5','Tank01','vulcan','Tank','Tank','Tank','Tank','Tank','Tank','Tank','Tank','Tank','Tank','Tank','Tank','Tank','Tank','Tank','Tank','Tank','Tank','GunN01','GunN02','GunN03','GunN04','GUNN05','GUNN06','GUNN08','GUNN09','GUNN10','skeleton01','skeleton02','skeleton03','Big_M','Stage1Boss','T-CB','To-MCB','Ts-BCB','TT-JCB','TT-JCB','TT-JCB','T-SJCB','T-CBA','enemy_Mech5','enemy_Mech5','enemy_Mech5','enemy_Grenade','enemy_Grenade','Boss3','Boss3','Boss3','Boss5','Boss5','Boss5','Boss1','Boss1','Boss1','Stage1Boss','Stage1Boss','Stage1Boss']
SELECTBUTTON = ['ak47','Ingram','Scout','M3','M79','MG42','LaserGun','M16A1','Mp5','SteyrAUG','Spas-12','Dragunov','FNMinimiSAW','Usas-12','none','Glock18c','FAMAS','IMIUZI','AWP','HK69A1','M60E4','F2000','Skorpion','P-90','PSG-1','MX1014','GM94','MGL40MK-1','M16A2','SG-1','14year','FNfive_seven','Hug','Hug','Hammer','Flak','Hug','none','HK69A1','MX1014','M60E4','Hug','xmas','Liberty','Bubble','P230','Launcher','Fire','xr20','injector','Launcher','Fire','GSlot_Normal.png','GSlot_Smoke.png','GSlot_Fire.png','GSlot_Cluster.png','none','GSlot_Magnetic.png','GSlot_Power.png','GSlot_Mine.png','none','SW1','SWR-2','SWR-2','SWR-2','SW1','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','enemy_assert','enemy_shotgun','enemy_gLauncher','enemy_sniper','enemy_launcher','none','none','enemy_Mech3','enemy_Mech4','enemy_Mech5','Tank01','vulcan','Tank','Tank','Tank','Tank','Tank','Tank','Tank','Tank','Tank','Tank','Tank','Tank','Tank','Tank','Tank','Tank','Tank','Tank','GunN01','GunN02','GunN03','GunN04','GUNN05','GUNN06','GUNN08','GUNN09','GUNN10','skeleton01','skeleton02','skeleton03','Big_M','none','none','none','none','none','none','none','none','none','enemy_Mech5','enemy_Mech5','enemy_Mech5','none','none','none','none','none','none','none','none','none','none','none','none','none','none']
IMAGEINFO = [0,1,2,3,4,5,7,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,22,12,14,71,999,73,23,29,24,17,96,97,98,99,101,102,103,104,105,104,0,1,2,3,0,0,0,0,0,501,502,502,502,501,999,1001,1201,1202,1203,1204,1205,999,999,999,999,1301,1302,1303,1304,1305,1306,1302,1302,1302,1302,2010,1307,1301,2013,2014,2001,2002,2003,2004,2005,2006,2007,2008,2009,1302,1302,2011,1302,1302,1302,1302,1302,1302,1302,1302,1302,1302,1302,1302,1302,1302,1302,1302,1302,1302,1302,1302,1302,1302,1302,1302,1302,1302,2012,1309,1310,1311,1302,2015,1302,2017,1302,1302,1302,1302,1302,1302,3000,3001,3002,1302,1302,3003,3004,3005,1302,1302,1302,1302,2016,1302,2018,2019,1302]
WEAPONTYPE = [0,1,2,3,4,5,2,0,1,2,3,2,5,3,6,6,0,1,2,4,5,0,1,1,2,3,4,4,0,2,6,2,2,1,3,3,6,5,4,3,5,1,6,6,4,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,4,0,4,0,0,3,4,2,0,1,1,0,1,4,4,2,4,4,2,3,4,4,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,2,0,4,2,4,0,4,4,4,4,4,4,4,4,0,4,5,0,4,4,4,4,4,4,4,4,4,4,0,4,4]
HITSCRIPT = ['none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','cluster/205/3','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','cluster/2017/3','none','none','none','none','cluster/2019/3','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','cluster/2050/3','cluster/2051/3','cluster/2019/3','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none']
BULLETFILE = ['none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','gob_heavymach.png','none','none','none','none','Candy_bullet.png','none','gob_Bubble.png','none','gob_EBullet04.png','Flame','none','gob_bumb1.png','none','Boost_Normal','gob_Grenade.png','gob_GSmoke.png','gob_GFire.png','gob_GCluster.png','gob_Grenade.png','gob_GMagnetic.png','gob_GPower.png','gob_GMine.png','none','none','gob_SWRBullet.png','gob_SWRBullet.png','gob_SWRBullet.png','none','none','gob_BulletGre.png','gob_EBullet01.png','gob_EBullet02.png','gob_EBullet03.png','gob_EBullet04.png','gob_EBullet05.png','gob_EBullet06.png','gob_EBullet06.png','gob_EBullet02.png','none','gob_EBullet01.png','gob_EBullet02.png','gob_EBullet06.png','gob_EBullet06.png','none','none','none','gob_EBullet06.png','gob_EBullet06.png','gob_EBullet02.png','none','gob_EBullet06.png','gob_EBullet01.png','gob_EBullet06.png','gob_EBullet06.png','none','none','none','none','gob_EBullet04.png','none','none','Flame','none','none','none','gob_EBullet02.png','gob_bumb3.png','gob_bumb4.png','none','none','gob_EBullet04.png','gob_bumb2.png','gob_EBullet06.png','gob_bumb1.png','none','gob_bumb1.png','gob_bumb4.png','none','gob_EBullet06.png','gob_QUEST4_03.png','gob_QUEST4_02.png','gob_Qboss3_Bullet.png','gob_bumb3.png','gob_bumb4.png','gob_bumb1.png','gob_BulletGre.png','Cnpc3_bomb.png','gob_EBullet08.png','gob_QUEST5_03.png','gob_bumb3.png','gob_bumb2.png','gob_Qboss3_Bullet.png','Cnpc10_bomb.png','skeleton_Bullet.png','skeletonhunter_Bullet.png','gob_EBullet08.png','gob_EBullet08.png','none','gob_bumb3.png','gob_bumb3.png','gob_EBullet06.png','gob_bumb2.png','gob_bumb2.png','gob_bumb2.png','Chobonpc23_bomb.png','gob_bumb1.png','none','gob_EBullet02.png','none','gob_EBullet08.png','gob_EBullet07.png','gob_Qboss3_Bullet.png','none','gob_EBullet06.png','Shell_None.png','gob_bumb2.png','gob_bumb1.png','gob_bumb1.png','gob_QUEST4_02.png','gob_EBullet06.png','none','gob_bumb2.png','gob_EBullet06.png']
EFFECTFILE = ['efx_TraceB.bmp','efx_TraceB.bmp','efx_TraceB.bmp','efx_TraceB.bmp','efx_TraceB.bmp','efx_TraceB.bmp','efx_TraceL.bmp','efx_TraceB.bmp','efx_TraceB.bmp','efx_TraceB.bmp','efx_TraceB.bmp','efx_TraceB.bmp','efx_TraceB.bmp','efx_TraceB.bmp','efx_TraceB.bmp','efx_TraceB.bmp','efx_TraceB.bmp','efx_TraceB.bmp','efx_TraceB.bmp','efx_TraceB.bmp','efx_TraceB.bmp','efx_TraceB.bmp','efx_TraceB.bmp','efx_TraceB.bmp','efx_TraceB.bmp','efx_TraceB.bmp','efx_TraceB.bmp','efx_TraceB.bmp','efx_TraceB.bmp','efx_TraceB.bmp','efx_TraceB.bmp','efx_TraceB.bmp','efx_TraceB.bmp','efx_TraceB.bmp','efx_TraceB.bmp','efx_TraceB.bmp','none','none','efx_TraceB.bmp','efx_TraceB.bmp','efx_TraceB.bmp','efx_TraceB.bmp','efx_TraceB.bmp','efx_TraceB.bmp','none','efx_TraceB.bmp','none','none','efx_TraceL.bmp','none','efx_TraceL.bmp','none','none','none','none','none','none','none','none','none','none','efx_TraceB.bmp','none','none','none','efx_TraceB.bmp','none','efx_TraceB.bmp','none','none','none','none','none','none','none','none','efx_TraceL.bmp','none','none','none','none','efx_TraceL.bmp','efx_TraceL.bmp','efx_TraceL.bmp','none','none','none','efx_TraceB.bmp','none','none','none','none','efx_TraceB.bmp','efx_TraceB.bmp','efx_TraceB.bmp','efx_TraceB.bmp','none','efx_TraceB.bmp','efx_TraceB.bmp','none','efx_TraceL.bmp','efx_TraceB.bmp','efx_TraceB.bmp','none','efx_TraceB.bmp','efx_TraceB.bmp','efx_TraceL.bmp','efx_TraceB.bmp','efx_TraceB.bmp','efx_TraceB.bmp','efx_TraceB.bmp','efx_TraceB.bmp','efx_TraceB.bmp','efx_TraceB.bmp','efx_TraceB.bmp','efx_TraceB.bmp','efx_TraceB.bmp','efx_TraceB.bmp','none','efx_TraceB.bmp','efx_TraceB.bmp','efx_TraceB.bmp','efx_TraceB.bmp','efx_TraceB.bmp','efx_TraceB.bmp','efx_TraceB.bmp','efx_TraceB.bmp','efx_TraceB.bmp','efx_TraceB.bmp','none','none','none','none','none','efx_TraceB.bmp','efx_TraceB.bmp','efx_TraceB.bmp','efx_TraceB.bmp','efx_TraceB.bmp','efx_TraceB.bmp','efx_TraceB.bmp','efx_TraceB.bmp','efx_TraceB.bmp','efx_TraceB.bmp','efx_TraceB.bmp','none','efx_TraceB.bmp','none','efx_TraceB.bmp','efx_TraceB.bmp','efx_TraceL.bmp','none','none','efx_TraceB.bmp','efx_TraceB.bmp','efx_TraceB.bmp','efx_TraceB.bmp','efx_TraceB.bmp','efx_TraceL.bmp','efx_TraceB.bmp','efx_TraceB.bmp']
FIREFILE = ['efx_fire_04.bmp','efx_fire_08.bmp','efx_fire_02.bmp','efx_fire_01.bmp','efx_fire_03.bmp','efx_fire_04.bmp','none','efx_fire_04.bmp','efx_fire_08.bmp','efx_fire.bmp','efx_fire_01.bmp','efx_fire_02.bmp','efx_fire_04.bmp','efx_fire_01.bmp','efx_fire.bmp','efx_fire.bmp','efx_fire_04.bmp','efx_fire_08.bmp','efx_fire_02.bmp','efx_fire_03.bmp','efx_fire_04.bmp','efx_fire_04.bmp','efx_fire_08.bmp','efx_fire_08.bmp','efx_fire_02.bmp','efx_fire_01.bmp','efx_fire_03.bmp','efx_fire_03.bmp','efx_fire_04.bmp','efx_fire_02.bmp','efx_fire.bmp','efx_fire.bmp','efx_fire_02.bmp','efx_fire_08.bmp','efx_fire_01.bmp','efx_fire_01.bmp','none','efx_fire_01.bmp','efx_fire_03.bmp','efx_fire_01.bmp','efx_fire_04.bmp','efx_fire_08.bmp','efx_fire.bmp','efx_fire.bmp','efx_SWRFire.png','efx_fire_08.bmp','efx_fire.bmp','none','none','efx_Fire_03.bmp','none','none','none','none','none','none','none','none','none','none','none','efx_fire_04.bmp','efx_SWRFire.png','efx_SWRFire.png','efx_SWRFire.png','efx_fire_04.bmp','none','efx_fire.bmp','efx_fire.bmp','efx_fire.bmp','efx_fire.bmp','efx_fire.bmp','efx_fire.bmp','efx_fire.bmp','efx_fire.bmp','efx_fire.bmp','efx_fire.bmp','efx_fire.bmp','efx_fire.bmp','efx_fire.bmp','efx_fire.bmp','none','none','efx_fire.bmp','efx_fire.bmp','none','efx_fire.bmp','efx_fire_08.bmp','none','efx_fire.bmp','efx_SWRFire.png','efx_SWRFire.png','efx_fire_04.bmp','efx_fire_01.bmp','efx_fire_03.bmp','efx_fire_02.bmp','efx_fire.bmp','efx_fire_08.bmp','efx_fire.bmp','none','none','efx_fire_03.bmp','efx_fire_03.bmp','efx_fire.bmp','efx_fire_03.bmp','efx_fire_03.bmp','none','efx_fire_01.bmp','efx_fire_03.bmp','efx_fire_03.bmp','efx_fire_03.bmp','efx_fire_03.bmp','efx_fire_03.bmp','efx_fire_03.bmp','efx_fire_03.bmp','efx_fire_03.bmp','efx_fire_03.bmp','efx_fire_03.bmp','none','efx_fire_03.bmp','efx_fire_03.bmp','efx_fire_03.bmp','efx_fire_03.bmp','efx_fire_03.bmp','efx_fire_03.bmp','efx_fire_03.bmp','efx_fire_03.bmp','efx_fire_03.bmp','efx_fire_03.bmp','none','efx_fire.bmp','none','none','efx_fire.bmp','efx_fire_03.bmp','efx_fire_04.bmp','efx_fire_03.bmp','efx_fire_03.bmp','efx_fire_03.bmp','efx_fire_03.bmp','efx_fire_03.bmp','efx_fire_03.bmp','efx_fire_03.bmp','efx_fire_03.bmp','efx_fire_04.bmp','efx_fire.bmp','efx_fire_04.bmp','none','efx_fire_03.bmp','efx_fire_03.bmp','none','none','none','efx_fire_03.bmp','efx_fire_03.bmp','efx_fire_03.bmp','efx_fire_03.bmp','efx_fire_03.bmp','none','efx_fire_03.bmp','efx_fire_03.bmp']
FIRETILES = [2,2,4,5,4,2,0,2,2,3,5,4,2,5,3,3,2,2,4,4,2,2,2,2,4,5,4,4,2,4,3,3,4,2,5,5,0,5,4,5,2,2,3,3,6,2,3,0,0,4,0,0,0,0,0,0,0,0,0,0,0,2,6,6,6,2,0,3,3,3,3,3,3,3,3,3,3,3,3,3,3,0,0,3,3,0,3,2,0,3,6,6,2,5,4,4,3,2,3,0,0,4,4,2,4,4,4,5,4,4,4,4,4,4,4,4,4,4,0,4,4,4,4,4,4,4,4,4,4,0,2,0,0,2,4,2,4,4,4,4,4,4,4,4,2,3,2,0,4,4,0,0,0,4,4,4,4,4,0,4,4]
FIRETIME = [100,40,400,400,200,100,0,100,40,60,400,400,100,400,60,60,100,40,400,200,100,100,40,40,400,400,200,200,100,400,60,60,400,40,400,400,0,400,200,400,100,40,60,60,100,40,60,0,0,200,0,0,0,0,0,0,0,0,0,0,0,100,100,100,100,100,0,60,60,60,60,60,60,60,60,60,60,60,60,60,60,0,0,60,60,0,60,40,0,60,100,100,100,400,200,400,60,40,60,0,0,200,200,60,200,200,200,400,200,200,200,200,200,200,200,200,200,200,0,200,200,200,200,200,200,200,200,200,200,0,60,0,0,60,200,100,200,200,200,200,200,200,200,200,100,60,100,0,200,200,0,0,0,200,200,200,200,200,0,200,200]
SHELLFILE = ['Shell_Nor.png','Shell_Nor.png','Shell_Nor.png','Shell_SG.png','Shell_SG.png','Shell_Nor.png','none','Shell_Nor.png','Shell_Nor.png','Shell_Nor.png','Shell_SG.png','Shell_Nor.png','Shell_Nor.png','Shell_SG.png','Shell_Nor.png','Shell_Nor.png','Shell_Nor.png','Shell_Nor.png','Shell_Nor.png','Shell_SG.png','Shell_Nor.png','Shell_Nor.png','Shell_Nor.png','Shell_Nor.png','Shell_Nor.png','Shell_SG.png','Shell_SG.png','Shell_SG.png','Shell_Nor.png','Shell_Nor.png','Shell_Nor.png','Shell_Nor.png','Shell_Nor.png','Shell_Nor.png','Shell_SG.png','Shell_SG.png','none','none','Shell_SG.png','Shell_SG.png','Shell_Nor.png','Shell_Nor.png','Shell_Nor.png','Shell_Nor.png','Shell_Nor.png','Shell_Nor.png','none','none','none','none','none','none','gob_GrenadePin.png','gob_GrenadePin.png','gob_GrenadePin.png','gob_GrenadePin.png','none','gob_GrenadePin.png','gob_GrenadePin.png','gob_GrenadePin.png','none','Shell_Nor.png','Shell_Nor.png','Shell_Nor.png','Shell_Nor.png','Shell_Nor.png','none','Shell_SG.png','none','none','none','none','none','none','none','none','none','Shell_SG.png','Shell_SG.png','Shell_SG.png','Shell_SG.png','none','none','none','Shell_SG.png','gob_GrenadePin.png','Shell_SG.png','Shell_Nor.png','gob_GrenadePin.png','Shell_SG.png','Shell_Nor.png','Shell_Nor.png','Shell_Nor.png','Shell_SG.png','Shell_SG.png','Shell_Nor.png','none','Shell_Nor.png','Shell_Nor.png','none','none','Shell_SG.png','Shell_SG.png','Shell_SG.png','Shell_SG.png','Shell_SG.png','none','Shell_SG.png','Shell_SG.png','gob_GrenadePin.png','Shell_SG.png','Shell_SG.png','Shell_SG.png','Shell_SG.png','gob_GrenadePin.png','Shell_SG.png','Shell_SG.png','Shell_SG.png','Shell_SG.png','Shell_SG.png','Shell_SG.png','Shell_SG.png','Shell_SG.png','Shell_SG.png','Shell_SG.png','Shell_SG.png','Shell_SG.png','Shell_SG.png','Shell_SG.png','Shell_SG.png','Shell_SG.png','Shell_SG.png','Shell_SG.png','Shell_SG.png','Shell_SG.png','Shell_Nor.png','Shell_SG.png','Shell_SG.png','Shell_SG.png','gob_GrenadePin.png','gob_GrenadePin.png','gob_GrenadePin.png','Shell_SG.png','Shell_SG.png','Shell_Nor.png','Shell_SG.png','Shell_Nor.png','gob_GrenadePin.png','Shell_SG.png','Shell_SG.png','Shell_SG.png','Shell_SG.png','Shell_SG.png','Shell_SG.png','Shell_SG.png','Shell_SG.png','Shell_SG.png','Shell_SG.png','Shell_SG.png','Shell_SG.png','Shell_SG.png']
SHELLEFFECT = ['add','add','add','alpha','alpha','add','none','add','add','add','alpha','add','add','alpha','add','add','add','add','add','alpha','add','add','add','add','add','alpha','alpha','alpha','add','add','add','add','add','add','alpha','add','none','none','alpha','alpha','add','add','add','add','add','add','add','add','none','add','none','none','alpha','alpha','alpha','alpha','none','alpha','alpha','alpha','0','add','add','add','add','add','none','alpha','alpha','alpha','alpha','alpha','alpha','alpha','alpha','alpha','alpha','alpha','alpha','alpha','alpha','none','none','alpha','alpha','alpha','alpha','add','alpha','alpha','add','add','add','alpha','alpha','add','add','add','add','add','none','alpha','alpha','alpha','alpha','alpha','none','alpha','alpha','alpha','alpha','alpha','alpha','alpha','alpha','alpha','alpha','alpha','alpha','alpha','alpha','alpha','alpha','alpha','alpha','alpha','alpha','alpha','alpha','alpha','alpha','alpha','alpha','alpha','alpha','add','alpha','alpha','alpha','alpha','alpha','alpha','alpha','alpha','add','alpha','add','alpha','alpha','alpha','alpha','alpha','alpha','alpha','alpha','alpha','alpha','alpha','alpha','alpha','alpha']
SHELLTIME = [2500,2500,2500,2500,2500,2500,0,2500,2500,2500,2500,2500,2500,2500,2500,2500,2500,2500,2500,2500,2500,2500,2500,2500,2500,2500,2500,2500,2500,2500,2500,2500,2500,2500,2500,2500,0,0,2500,2500,2500,2500,2500,2500,2500,2500,2500,2500,0,2500,0,0,2000,2000,2000,2000,0,2000,2000,2000,0,2500,2500,2500,2500,2500,0,2500,2500,2500,2500,2500,2500,2500,2500,2500,2500,2500,2500,2500,2500,0,0,2500,2500,2000,2500,2500,2000,2500,2500,2500,2500,2500,2500,2500,2500,2500,2500,2500,0,2500,2500,2500,2500,2500,0,2500,2500,2000,2500,2500,2500,2500,2000,2500,2500,2500,2500,2500,2500,2500,2500,2500,2500,2500,2500,2500,2500,2500,2500,2500,2500,2500,2500,2500,2500,2500,2500,2000,2000,2000,2500,2500,2500,2500,2500,2500,2500,2500,2500,2500,2000,2500,2500,2500,2500,2500,2500,2500,2500]
BULLETTYPE = ['bullet','bullet','sniper','bullet','bullet','bullet','bullet','bullet','bullet','sniper','bullet','sniper','bullet','bullet','bullet','bullet','bullet','bullet','sniper','bullet','bullet','sniper','bullet','bullet','sniper','bullet','bullet','bullet','bullet','sniper','bullet','sniper','sniper','sniper','sniper','bullet','grenade','bullet','bullet','bullet','bullet','bullet','bullet','bullet','bullet','bullet','rocket','flame','sniper','bullet','sniper','flame','grenade','grenade','grenade','grenade','grenade','grenade','grenade','grenade','none','bullet','bullet','bullet','bullet','bullet','none','bullet','bullet','bullet','bullet','bullet','bullet','bullet','bullet','bullet','bullet','bullet','bullet','bullet','bullet','sniper','bullet','bullet','bullet','grenade','bullet','bullet','grenade','bullet','bullet','bullet','bullet','bullet','bullet','sniper','rocket','bullet','sniper','flame','bullet','bullet','bullet','bullet','bullet','bullet','bullet','bullet','bullet','grenade','bullet','bullet','bullet','bullet','grenade','bullet','bullet','bullet','grenade','bullet','bullet','bullet','bullet','bullet','bullet','bullet','bullet','bullet','bullet','grenade','bullet','bullet','bullet','bullet','bullet','sniper','bullet','bullet','bullet','grenade','grenade','grenade','bullet','bullet','sniper','bullet','bullet','grenade','bullet','bullet','bullet','grenade','grenade','bullet','bullet','bullet','bullet','bullet','sniper','bullet','bullet']
BULLETCNT = [1,1,1,5,1,1,1,1,1,1,7,1,1,4,1,1,1,1,1,1,1,1,1,1,1,5,1,1,1,1,1,1,1,1,14,15,1,1,1,12,1,1,1,1,1,1,1,1,1,6,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,4,1,1,1,1,1,1,6,1,1,1,1,1,1,1,4,1,1,1,6,4,7,1,1,1,1,5,1,1,1,1,1,1,1,1,6,1,5,1,5,1,1,5,1,1,1,1,1,4,1,6,1,5,1,1,1,1,1,1,1,1,1,1,2,1,1,1,2,1,1,1,3,1,2,5]
RANDFACTOR = [0.02,0.15,0,0.06,0,0.08,0,0.01,0.15,0,0.05,0,0.08,0.06,0.1,0.1,0.03,0.15,0,0,0.07,0.02,0.15,0.15,0,0.06,0,0,0.01,0,0.1,0.1,0.02,0.1,0.04,1,0,0.1,0,0.06,0.07,0.2,0.1,0.1,0,0.1,0.1,0.05,0,0.24,0,0.05,0,0,0,0,0,0,0,0,0,0.01,0.01,0.01,0.01,0.01,0,0,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0,0.1,0.1,0.1,0.1,0,0.2,0,0.1,0,0.3,0.2,0,0.1,0.01,0.01,0.01,0.06,0,0,0.1,0.2,0,0.05,0,0.1,0,0.3,0.1,0.2,0.3,0.06,0.2,0.1,0.1,0.2,0.1,0.2,0.4,0.4,0.4,0.4,0.4,0.4,0.1,0.3,0.4,0.4,0.5,0.6,0.4,0.1,0.4,0.4,0.3,0,0.1,0.6,0.7,0.1,0.4,0.1,0.5,0.3,0.1,0.1,0.1,0.4,0.1,0.1,0.05,0.05,0,0.4,0.2,0.3,0.6,0.6,0.1,0.1,0.1,0.6,0.6,0.6,0.7]
DAMAGE = [24,22,190,19,105,33,40,25,24,49,19,210,35,25,20,25,41,26,230,120,36,55,26,23,220,26,140,70,38,230,27,30,100,18,6,10,10000,30,90,10,18,31,20,40,22,16,150,50,70,25,10000,50,120,0,80,120,40,120,150,120,400,10,20,100,150,100,0,260,80,30,30,50,40,30,40,80,25,30,15,15,15,90,90,40,25,120,60,36,50,100,15,10,20,18,120,200,120,22,20,20,25,40,120,120,40,40,45,18,40,120,50,70,40,200,120,80,80,100,100,100,40,40,50,30,100,30,100,40,80,100,60,20,35,40,30,40,10,10,10,120,120,120,10,50,40,90,40,100,120,120,100,100,80,60,80,80,80,30,30,60,30]
DMGRANGE = [0,0,0,0,100,0,0,0,0,0,0,0,0,0,0,0,0,0,0,100,0,0,0,0,0,0,100,100,0,0,0,0,0,0,0,0,500,0,100,0,0,0,0,0,40,0,150,0,0,100,500,0,100,0,40,100,50,100,100,100,200,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,100,100,0,30,100,60,0,50,100,30,0,0,0,100,0,150,0,0,0,0,50,100,100,50,50,0,0,50,100,70,50,50,100,100,60,60,100,120,100,50,50,50,50,100,50,100,50,60,120,10,0,0,30,50,20,10,20,10,100,100,100,20,50,0,70,0,80,100,120,70,100,50,60,50,50,50,30,30,60,50]
SPEED = [70,55,130,23,23,55,120,75,58,140,25,136,55,23,55,55,90,55,130,25,50,130,60,65,140,25,25,30,80,140,50,120,130,130,200,15,0,30,25,25,25,55,70,60,19,55,37,17,200,30,200,20,0,0,0,0,0,0,0,0,0,55,20,20,20,55,0,60,10,10,10,10,10,10,10,10,50,10,6,6,6,120,120,50,23,23,12,65,12,10,10,12,65,23,23,136,37,65,140,17,120,20,23,11,8,10,30,16,18,9,10,11,15,17,7,7,6,6,7,13,9,10,10,8,8,8,8,10,8,9,7,10,13,13,8,130,10,8,10,9,9,9,10,10,130,12,55,11,23,11,20,9,15,9,10,8,8,8,20,9,8]
SPEEDFACTOR = [0,0,0,0.4,0,0,0,0,0,0,0.4,0,0,0.4,0,0,0,0,0,0,0,0,0,0,0,0.4,0,0,0,0,0,0,0,0,0.4,1,0,0,0,0.4,0,0.5,0,0,0,0,0,0,0,0.8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0.4,0,0,0.4,0,0.2,0,0,0.4,0,0,0,0,0,0,0,0.5,0,0.5,0.5,0.5,0,0.4,0.5,0.4,0.5,0.5,0.5,0.3,0,0.2,0.5,0.3,0.5,0.3,0.5,0.5,0.2,0.3,0.6,0.2,0.3,0.5,0.5,0.5,0.5,0.5,0.1,0.1,0.5,0,0.5,0.5,0.4,0.4,0.4,0.4,0.5,0.2,0,0.5,0,0.4,0,0.6,0.5,0.5,0.2,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.7]
GRAVITY = [0.5,0.5,0,0.5,0.5,0.5,0,0.5,0.5,0,0.5,0,0.5,0.5,0.5,0.5,0.5,0.5,0,0.5,0.5,0,0.5,0.5,0,0.5,0.5,0.5,0.5,0,0.5,0,0,0,0,0.3,0,0,0.5,0.5,0.5,0.5,0,0.5,0.4,0.5,0,-0.05,0,0,0,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0,0.7,0,0,0,0.7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0.3,0,0,0.4,0.4,0.5,0.34,0,0.2,0,0.5,0.5,0.5,0,0,0.5,0,-0.05,0,0.5,0.5,0.05,0.3,0.1,0,0.6,0.3,0.4,0.2,0.3,0.4,0.2,0.3,0.3,0.3,0.2,0.2,0.5,0.2,0.1,0.2,0.1,0.2,0.1,0.1,0.2,0.13,0.2,0.05,0.05,0.2,0.05,0.2,0,0.2,0.1,0.2,0.2,0.4,0.4,0.1,0,0,0.5,0.5,0.8,0.8,0.3,0.4,0.4,0.02,0.05,0.2,0.4,0.3,0.4,0,0.3,0.15]
DELAY = [150,130,6000,700,1800,180,300,160,120,400,700,5800,180,600,500,500,230,110,5500,1600,180,300,110,120,5400,650,1800,1000,250,5300,400,600,700,100,700,1000,10000,140,1280,330,100,215,150,500,280,500,2000,70,1500,1500,2000,35,1000,1000,1000,1000,1000,1000,1000,1000,0,160,160,160,160,160,0,1500,1500,1500,1500,1500,1500,1500,1500,400,500,1500,1500,1500,1500,160,160,1500,1500,1000,1000,140,2000,1500,1000,300,130,700,2000,6000,2000,200,600,70,400,2000,2000,500,300,2000,2000,1500,600,2500,1000,400,1500,2500,2500,2000,500,500,2000,1500,300,2000,1500,2000,500,3500,500,300,2500,2000,600,800,1000,1200,4000,300,2000,400,2000,5000,5000,5000,600,1500,300,500,160,200,200,500,200,500,1000,2500,300,300,300,1500,400,700,300]
RELOAD = [2400,1600,8000,3200,3000,4000,2800,2800,1600,3000,3000,8000,4200,3000,2000,2000,3200,1600,7500,3200,4800,3000,1800,1600,7500,2500,3500,3800,3300,7000,1000,3000,3000,1200,5000,3000,1000,4000,3100,1640,1600,1800,2000,1500,2000,2000,2000,1000,8000,1500,2000,1000,0,0,0,0,0,0,0,0,0,2000,2000,2000,2000,2000,0,1500,1500,1500,1500,1500,1500,1500,1500,1,100,1500,1500,1500,1500,0,0,1000,1500,0,1000,2000,2000,1500,2000,2000,2000,3000,2000,8000,2000,2000,3000,1000,3000,2000,2000,2000,2000,2500,3000,3000,2000,0,600,2000,2000,0,0,0,2000,2000,0,2000,2000,2500,2500,2000,2000,3500,2000,2000,2500,0,2500,4000,3000,3500,4000,3000,2500,1200,2500,0,0,0,2500,2500,3000,500,160,150,200,1500,200,0,0,2500,2000,2000,500,1500,400,700,300]
CHARGECNT = [25,20,10,10,3,50,20,30,20,20,8,10,55,15,10,17,25,20,10,3,65,20,25,25,10,10,3,6,30,10,6,12,20,20,8,6,1,50,4,2,40,50,25,6,30,7,3,50,8,6,3,100,5,5,5,5,5,5,5,5,0,20,20,20,20,20,0,5,1,1,1,1,1,1,1,1,100,1,1,1,1,20,20,100,1,5,20,50,5,1,3,10,25,10,3,10,3,50,20,50,20,30,3,2,4,4,20,10,3,99999,2,3,99999,99999,999999,99999,2,3,999999,3,4,4,3,9,3,5,3,6,5,999999,2,3,2,2,4,20,4,2,4,99999,99999,99999,2,3,20,30,50,99999,99999,8,999999,999999,999999,5,6,6,4,3,1,2,5]
LIVETIME = [5000,5000,2000,5000,10000,5000,500,5000,5000,500,5000,2000,5000,5000,5000,5000,5000,5000,2000,10000,5000,1500,5000,5000,2000,5000,10000,10000,5000,2000,5000,5000,2000,5000,5000,5000,0,5000,10000,5000,5000,5000,5000,5000,1300,5000,3000,600,1500,200,1500,2000,3000,20000,10000,3000,3000,3000,3000,10000,0,500,850,850,850,500,0,2000,20000,20000,20000,20000,20000,20000,20000,20000,2000,20000,20000,20000,20000,500,500,2000,2500,3000,20000,5000,3000,0,3000,850,5000,5000,10000,2000,3000,5000,500,600,500,5000,10000,10000,5000,5000,5000,5000,5000,3000,5000,5000,5000,5000,3000,5000,5000,5000,3000,5000,5000,5000,5000,5000,5000,5000,5000,5000,5000,3000,10000,10000,10000,10000,5000,1500,5000,5000,5000,3000,3000,3000,5000,5000,1500,5000,5000,3000,10000,10000,10000,3000,4000,5000,5000,5000,5000,5000,5000,5000,5000]
HITCHECKTIME = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,300,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,500,0,0,500,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,500,0,0,0,0,300,0,0,0,0,0,0,0,0]
CAMBOUNCE = [3,3,15,10,8,4,5,3,3,5,10,15,4,10,3,3,3,3,15,8,4,3,3,3,15,10,8,8,3,15,3,3,15,3,20,10,20,3,8,10,4,3,3,3,3,3,2,0,20,2,2,0,0,0,0,0,0,0,0,0,15,3,3,3,3,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5,5,0,0,0,8,3,0,0,3,3,3,10,8,15,2,3,5,0,5,8,8,8,8,8,5,10,8,0,8,8,8,8,0,8,8,8,0,8,8,8,8,8,8,8,8,8,8,0,8,8,8,8,8,3,8,8,8,0,0,0,8,8,3,8,4,2,8,8,8,0,0,8,8,8,8,8,8,8,8]
EFFECTSCALEX = [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]
EFFECTSCALEY = [0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,1,1,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,1,0.5,0.5,16,1,0.5,1,1,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0.5,0.5,1,1,0.5,0.5,0.5,0.5,1,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,1,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5]
EXPLANIMATE = ['none','none','none','none','Explode_small','none','none','none','none','none','none','none','none','none','none','none','none','none','none','Explode_small','none','none','none','none','none','none','Explode_small','Explode_small','none','none','none','none','none','none','Boost_Stalth','none','Explode_Huge','none','Explode_small','none','none','none','none','none','none','none','Explode_big','none','none','Explode_new','Explode_Huge','none','Explode_small','none','Explode_small','Explode_small','Explode_small','Explode_small','Explode_small','Explode_small','Explode_big','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','Explode_small','Explode_small','none','none','Explode_small','Explode_small','none','Explode_small','Explode_small','Explode_small','none','none','none','Explode_small','none','Explode_big','none','none','none','none','Explode_small','Explode_small','Explode_small','Explode_small','Explode_small','none','none','Explode_small','Explode_small','Explode_small','Explode_small','Explode_small','Explode_small','Explode_small','Explode_small','Explode_small','Explode_small','Explode_small','Explode_small','Explode_small','Explode_small','Explode_small','Explode_small','Explode_small','Explode_small','Explode_small','Explode_small','Explode_small','Explode_small','Explode_small','none','none','Explode_small','Explode_small','Explode_small','Explode_small','Explode_small','Explode_small','Explode_small','Explode_small','Explode_small','Explode_small','Explode_small','none','Explode_small','none','Explode_small','Explode_small','Explode_small','Explode_small','Explode_small','Explode_small','Flame_boss5','Explode_small','Explode_small','Explode_small','Explode_small','Explode_small','Flame_boss5','Explode_small']
EXPLEARTHLEN = [1,1,3,2,20,1,1,1,1,1,2,3,1,2,1,1,1,1,3,20,1,1,1,1,3,2,20,20,1,3,1,1,3,1,1,1,2,1,20,2,1,1,1,1,1,1,10,1,0,2,20,0,10,1,1,10,10,10,10,10,10,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,10,20,1,10,10,20,1,1,2,20,3,10,1,1,1,1,20,20,20,20,20,1,2,20,10,20,20,20,20,10,20,20,20,10,20,20,20,20,20,20,20,20,20,20,10,20,1,1,20,20,20,20,20,20,10,10,10,20,20,1,20,1,10,20,20,20,10,10,20,20,20,20,20,20,20,20]
EXPLBOUNCE = [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,0,0,0,1,1,0,0,0,0,0,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,0,0,1,1,1,1,1,1,1,1]
EXPLREMOVE = [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]
BOUNCEREGIST = [0,0,0,0,0.4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0.4,0,0,0,0,0,0,0.4,0.4,0,0,0,0,0,0,0,0,0,0,0.4,0,0,0,0,0,0,0,0,0.1,1,1,0,0.4,0.4,0.4,0.4,0.4,0.4,0,0.4,0.4,0.4,0,0,0,0,0,0.4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0.4,0.4,0,0.4,0,0.4,0,0,0,0.4,0,0,0,0,0.1,0,0.4,0.4,0.4,0.4,0.4,0,0,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0,0.4,0,0,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0,0.4,0,0.4,0.4,0.4,0.4,0,0,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4]
SMOKEANIMATE = ['none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','Smoke','none','none','none','none','none','none','SmokeBomb','FlameBomb','none','none','none','none','none','none','none','none','none','none','none','none','none','Smoke01','Smoke03','Smoke03','Smoke02','Smoke03','none','0','Smoke01','none','Smoke01','Smoke02','none','none','none','none','none','none','FlameBomb','Smoke02','none','FlameBomb_B','Smoke01','none','none','none','none','none','none','Smoke','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','Smoke02','none','Boost_Blue','none','none','none','none','Flame_boss5','none','none','none','none','none','none','none','none']
SMOKECOUNT = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0.2,0.5,0,0,0,0,0,0,0,0,0,0,0,0,0,0.6,0.6,0.6,0.6,0.6,0,0,0.6,0,0.6,0.6,0,0,0,0,0,0.6,0.5,0.6,0,0.5,0.6,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0.6,0,0.5,0,0,0,0,0.5,0,0,0,0,0,0,0,0]
SMOKEGRAVITY = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,-0.05,-0.3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,-0.3,0,0,-0.3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,-0.3,0,0,0,0,-0.3,0,0,0,0,0,0,0,0]
SMOKEVEL = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,2,0,0,0,0,0,0,0,0]
SFX_FIRE = ['_ak47_fire','_Mac-10_fire','_scout_fire','_M3_fire','_m79_fire','_mg42_fire','_laser_fire','_m16_fire','_mp5_fire','_usas_fire','_spas_fire','_dragnov_fire','_minimi_fire','_spas_fire','_desert_fire','_desert_fire','_Famas_fire','_IMIUZI_fire','_AWP_fire','_H&K69A1_fire','_M60E4_fire','_Famas_fire','_IMIUZI_fire','_IMIUZI_fire','_AWP_fire','_spas_fire','_H&K69A1_fire','_H&K69A1_fire','_m16_fire','_dragnov_fire','_desert_fire','_desert_fire','_AWP_fire','_mp5_fire','_spas_fire','_m79_fire','none','_mg42_fire','_H&K69A1_fire','_spas_fire','_M60E4_fire','_ak47_fire','_desert_fire','Revolver_Liberty_Fire','SoapBubblegun_fire','_desert_fire','_Launcher_fire','_Flame_fire','_laser_fire','_m79_fire','_grenade_explode','_Flame_fire','none','none','none','none','none','none','none','none','none','_ak47_fire','_laser_fire','_laser_fire','_laser_fire','_ak47_fire','none','_Launcher_fire','none','none','none','none','none','none','none','none','none','none','none','none','none','_laser_fire','_laser_fire','none','none','none','none','_IMIUZI_fire','none','none','_m79_fire','none','_ak47_fire','_M3_fire','_m79_fire','_scout_fire','_Launcher_fire','_IMIUZI_fire','_usas_fire','_Flame_fire','_laser_fire','_m79_fire','_m79_fire','_m79_fire','_m79_fire','_m79_fire','_laser_fire','_M3_fire','_m79_fire','none','_m79_fire','_m79_fire','_m79_fire','_m79_fire','none','_m79_fire','_m79_fire','_m79_fire','none','_m79_fire','_m79_fire','_m79_fire','_m79_fire','_m79_fire','_m79_fire','_m79_fire','_m79_fire','_m79_fire','_m79_fire','none','none','none','none','none','_m79_fire','_Famas_fire','_m79_fire','_m79_fire','_m79_fire','none','none','none','_m79_fire','_m79_fire','_Famas_fire','_m79_fire','_mg42_fire','none','none','none','_laser_fire','none','none','_m79_fire','_m79_fire','_m79_fire','_m79_fire','_m79_fire','_laser_fire','_m79_fire','_m79_fire']
SFX_RELOAD = ['_ak47_reload','_Mac-10_reload','_scout_reload','_M3_reload','_m79_reload','_mg42_reload','_laser_reload','_m16_reload','_mp5_reload','_usas_reload','_spas_reload','_dragnov_reload','_minimi_reload','_spas_reload','_desert_reload','_desert_reload','_Famas_reload','_IMIUZI_reload','_AWP_relaod','_H&K69A1_reload','_M60E4_reolad','_Famas_reload','_IMIUZI_reload','_IMIUZI_reload','_AWP_relaod','_spas_reload','_H&K69A1_reload','_H&K69A1_reload','_m16_reload','_dragnov_reload','_desert_reload','_desert_reload','_AWP_relaod','_mp5_reload','_spas_reload','_m79_reload','none','_mg42_reload','_H&K69A1_reload','_spas_reload','_M60E4_reolad','_ak47_reload','_desert_reload','Revolver_Liberty_reload','SoapBubblegun_reload','_desert_reload','_m79_reload','_m79_reload','_laser_reload','_m79_reload','_m79_reload','_m79_reload','none','none','none','none','none','none','none','none','none','_ak47_reload','_laser_reload','_laser_reload','_laser_reload','_ak47_reload','none','_m79_reload','none','none','none','none','none','none','none','none','none','none','none','none','none','_laser_reload','_laser_reload','none','none','none','none','_IMIUZI_reload','none','none','_m79_reload','_laser_reload','_ak47_reload','_M3_reload','_m79_reload','_scout_reload','_m79_reload','_IMIUZI_reload','_usas_reload','_m79_reload','_laser_reload','_m79_reload','_m79_reload','_m79_reload','_m79_reload','_m79_reload','_laser_reload','_M3_reload','_m79_reload','none','_m79_reload','_m79_reload','_m79_reload','_m79_reload','none','_m79_reload','_m79_reload','_m79_reload','none','_m79_reload','_m79_reload','_m79_reload','_m79_reload','_m79_reload','_m79_reload','_m79_reload','_m79_reload','_m79_reload','_m79_reload','none','none','none','none','none','_m79_reload','_Famas_reload','_m79_reload','_m79_reload','_m79_reload','none','none','none','_m79_reload','_m79_reload','_Famas_reload','_m79_reload','_mg42_reload','none','none','none','_laser_reload','none','none','_m79_reload','_m79_reload','_m79_reload','_m79_reload','_m79_reload','_laser_reload','_m79_reload','_m79_reload']
SFX_EXPLODE = ['none','none','none','none','_m79_explode','none','none','none','none','none','none','none','none','none','none','none','none','none','none','_m79_explode','none','none','none','none','none','none','_m79_explode','_m79_explode','none','none','none','none','none','none','none','none','_gre_explode','none','_m79_explode','none','none','none','none','none','_m79_explode','none','_grenade_explode','none','none','_grenade_explode','_gre_explode','none','_grenade_explode','none','_grenade_explode','_grenade_explode','_grenade_explode','_grenade_explode','_grenade_explode','_grenade_explode','_grenade_explode','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','none','_grenade_explode','none','none','_grenade_explode','_grenade_explode','_m79_explode','none','none','none','_m79_explode','none','_grenade_explode','none','none','none','none','_m79_explode','_m79_explode','_m79_explode','_m79_explode','_m79_explode','none','none','_m79_explode','_grenade_explode','_m79_explode','_m79_explode','_m79_explode','_m79_explode','_grenade_explode','_m79_explode','_m79_explode','_m79_explode','_grenade_explode','_m79_explode','_m79_explode','_m79_explode','_m79_explode','_m79_explode','_m79_explode','_m79_explode','_m79_explode','_m79_explode','_m79_explode','_grenade_explode','_m79_explode','none','none','_m79_explode','_m79_explode','none','_m79_explode','_m79_explode','_m79_explode','_grenade_explode','_grenade_explode','_grenade_explode','_m79_explode','_m79_explode','none','_m79_explode','none','_grenade_explode','_m79_explode','_m79_explode','_m79_explode','_grenade_explode','_grenade_explode','_m79_explode','_m79_explode','_m79_explode','_m79_explode','_m79_explode','_m79_explode','_m79_explode','_m79_explode']
| 910.52381 | 2,462 | 0.676063 | 8,716 | 38,242 | 2.815971 | 0.050138 | 0.08662 | 0.109151 | 0.131519 | 0.752485 | 0.687541 | 0.648427 | 0.60471 | 0.583361 | 0.552762 | 0 | 0.232478 | 0.00387 | 38,242 | 41 | 2,463 | 932.731707 | 0.411823 | 0 | 0 | 0 | 0 | 0 | 0.473328 | 0.003452 | 0 | 0 | 0 | 0 | 0.04878 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
f319eeba68d40e890612b11cd3735681ea04c4c2 | 116 | py | Python | tests/__init__.py | Symbian9/BoardCAM | 03d154c881ab03c80c28715d84810f80361912b1 | [
"MIT"
] | null | null | null | tests/__init__.py | Symbian9/BoardCAM | 03d154c881ab03c80c28715d84810f80361912b1 | [
"MIT"
] | null | null | null | tests/__init__.py | Symbian9/BoardCAM | 03d154c881ab03c80c28715d84810f80361912b1 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Author: Zheng <zhengxiang@BoardCAM.org>
# Date: 2019-03-06
# Desc:
| 19.333333 | 41 | 0.637931 | 17 | 116 | 4.352941 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 0.137931 | 116 | 5 | 42 | 23.2 | 0.64 | 0.913793 | 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 | 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 | 4 |
f31c4eac18f9f98dc8aec39d28402901925eeb59 | 1,724 | py | Python | concordia/migrations/0024_auto_20190211_1420.py | juliecentofanti172/juliecentofanti.github.io | 446ea8522b9f4a6709124ebb6e0f675acf7fe205 | [
"CC0-1.0"
] | 134 | 2018-05-23T14:00:29.000Z | 2022-03-10T15:47:53.000Z | concordia/migrations/0024_auto_20190211_1420.py | juliecentofanti172/juliecentofanti.github.io | 446ea8522b9f4a6709124ebb6e0f675acf7fe205 | [
"CC0-1.0"
] | 1,104 | 2018-05-22T20:18:22.000Z | 2022-03-31T17:28:40.000Z | concordia/migrations/0024_auto_20190211_1420.py | juliecentofanti172/juliecentofanti.github.io | 446ea8522b9f4a6709124ebb6e0f675acf7fe205 | [
"CC0-1.0"
] | 32 | 2018-05-22T20:22:38.000Z | 2021-12-21T14:11:44.000Z | # Generated by Django 2.1.7 on 2019-02-11 19:20
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [("concordia", "0023_auto_20190130_1555")]
operations = [
migrations.AlterModelOptions(
name="sitereport", options={"ordering": ("created_on",)}
),
migrations.AddField(
model_name="asset",
name="difficulty",
field=models.PositiveIntegerField(blank=True, null=True),
),
migrations.AlterField(
model_name="asset",
name="published",
field=models.BooleanField(blank=True, default=False),
),
migrations.AlterField(
model_name="asset",
name="slug",
field=models.SlugField(allow_unicode=True, max_length=100),
),
migrations.AlterField(
model_name="campaign",
name="published",
field=models.BooleanField(blank=True, default=False),
),
migrations.AlterField(
model_name="campaign",
name="slug",
field=models.SlugField(allow_unicode=True, max_length=80, unique=True),
),
migrations.AlterField(
model_name="item",
name="published",
field=models.BooleanField(blank=True, default=False),
),
migrations.AlterField(
model_name="project",
name="published",
field=models.BooleanField(blank=True, default=False),
),
migrations.AlterField(
model_name="project",
name="slug",
field=models.SlugField(allow_unicode=True, max_length=80),
),
]
| 31.345455 | 83 | 0.568445 | 157 | 1,724 | 6.127389 | 0.369427 | 0.074844 | 0.181913 | 0.211019 | 0.66736 | 0.628898 | 0.54158 | 0.54158 | 0.54158 | 0.54158 | 0 | 0.03204 | 0.312065 | 1,724 | 54 | 84 | 31.925926 | 0.779089 | 0.026102 | 0 | 0.708333 | 1 | 0 | 0.099583 | 0.013715 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.020833 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
f31d5c91cd155b9580fb4f1fd6cf51aa6f08e11a | 155 | py | Python | tutorials/W0D5_Statistics/solutions/W0D5_Tutorial2_Solution_6338abeb.py | eduardojdiniz/CompNeuro | 20269e66540dc4e802273735c97323020ee37406 | [
"CC-BY-4.0",
"BSD-3-Clause"
] | 2,294 | 2020-05-11T12:05:35.000Z | 2022-03-28T21:23:34.000Z | tutorials/W0D5_Statistics/solutions/W0D5_Tutorial2_Solution_6338abeb.py | pellet/course-content | bb383857992469e0e7a9c36639ac0d05e842d9bd | [
"CC-BY-4.0",
"BSD-3-Clause"
] | 629 | 2020-05-11T15:42:26.000Z | 2022-03-29T12:23:35.000Z | tutorials/W0D5_Statistics/solutions/W0D5_Tutorial2_Solution_6338abeb.py | pellet/course-content | bb383857992469e0e7a9c36639ac0d05e842d9bd | [
"CC-BY-4.0",
"BSD-3-Clause"
] | 917 | 2020-05-11T12:47:53.000Z | 2022-03-31T12:14:41.000Z |
"""
- The log-likelihood should be greatest when 𝜇 = 5 and 𝜎 = 1.
- The summed log-liklihood increases (becomes less negative) as the fit improves
""" | 31 | 80 | 0.696774 | 24 | 155 | 4.5 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01626 | 0.206452 | 155 | 5 | 81 | 31 | 0.861789 | 0.941935 | 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 | 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 | 4 |
b85657372ca60bfead7b0746c2d7048b185995cb | 136 | py | Python | funcionalidades/database.py | ipedromotta/Login-Python-MySQL | 827beeb9d4a8f2b52c75de79697832733095d8e2 | [
"MIT"
] | null | null | null | funcionalidades/database.py | ipedromotta/Login-Python-MySQL | 827beeb9d4a8f2b52c75de79697832733095d8e2 | [
"MIT"
] | null | null | null | funcionalidades/database.py | ipedromotta/Login-Python-MySQL | 827beeb9d4a8f2b52c75de79697832733095d8e2 | [
"MIT"
] | null | null | null | import mysql.connector
banco = mysql.connector.connect(
host="localhost",
user="root",
passwd="",
database="usuarios"
) | 17 | 32 | 0.654412 | 14 | 136 | 6.357143 | 0.857143 | 0.314607 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191176 | 136 | 8 | 33 | 17 | 0.809091 | 0 | 0 | 0 | 0 | 0 | 0.153285 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.142857 | 0.142857 | 0 | 0.142857 | 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 | 0 | 0 | 0 | 0 | 0 | 4 |
b8716b5e83b19ab6102dbb838bf1d05bfa3f6906 | 106 | py | Python | calibrate_sense_hat/__init__.py | briglx/python-calibrate-sense-hat | 407ea4d43c4f0372c4357b265b9181ea1929229d | [
"MIT"
] | null | null | null | calibrate_sense_hat/__init__.py | briglx/python-calibrate-sense-hat | 407ea4d43c4f0372c4357b265b9181ea1929229d | [
"MIT"
] | null | null | null | calibrate_sense_hat/__init__.py | briglx/python-calibrate-sense-hat | 407ea4d43c4f0372c4357b265b9181ea1929229d | [
"MIT"
] | null | null | null | from __future__ import absolute_import
from .calibrate_sense_hat import BlxSenseHat
__version__ = '1.0.0' | 26.5 | 44 | 0.839623 | 15 | 106 | 5.2 | 0.733333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031579 | 0.103774 | 106 | 4 | 45 | 26.5 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0.046729 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
b87a4dccf0351a89a39a97c60a52a862df6dab95 | 112 | py | Python | swarms/test/config.py | swarms/python-client | d5b39b5304143266da48c9900c1b605e37e96912 | [
"MIT"
] | 5 | 2017-11-07T19:34:57.000Z | 2017-11-15T12:07:29.000Z | swarms/test/config.py | swarms/python-client | d5b39b5304143266da48c9900c1b605e37e96912 | [
"MIT"
] | 5 | 2017-11-22T12:24:37.000Z | 2018-02-10T15:31:21.000Z | swarms/test/config.py | swarms/python-client | d5b39b5304143266da48c9900c1b605e37e96912 | [
"MIT"
] | 2 | 2018-02-10T15:14:10.000Z | 2018-04-17T08:11:52.000Z | base_url = 'http://private-anon-ebece0892c-swarms.apiary-mock.com/'
username = 'username'
password = 'password'
| 28 | 67 | 0.75 | 14 | 112 | 5.928571 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038835 | 0.080357 | 112 | 3 | 68 | 37.333333 | 0.76699 | 0 | 0 | 0 | 0 | 0 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.333333 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
b8928dc0bad2bad70056f86ac7d8fea1cb684ab2 | 622 | py | Python | examples/action_models/AD1_Start_End_Test.py | pcyoung75/SysMPy | 2684e28eb8ad63c351e3327591bc2d988480e6a3 | [
"Apache-2.0"
] | null | null | null | examples/action_models/AD1_Start_End_Test.py | pcyoung75/SysMPy | 2684e28eb8ad63c351e3327591bc2d988480e6a3 | [
"Apache-2.0"
] | null | null | null | examples/action_models/AD1_Start_End_Test.py | pcyoung75/SysMPy | 2684e28eb8ad63c351e3327591bc2d988480e6a3 | [
"Apache-2.0"
] | null | null | null | from sysmpy import *
import asyncio
"""
+---------------+
| |
| start |
| |
+---------------+
| process1
|
+---------------+
| |
| End |
| |
+---------------+
"""
# 1 Define actions
p = Process("process1")
Entity._debug_mode = True
###############################################
# 2 Run a simulation
asyncio.run(p.sim(print_out=True))
| 23.037037 | 47 | 0.221865 | 29 | 622 | 4.655172 | 0.793103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013793 | 0.533762 | 622 | 26 | 48 | 23.923077 | 0.451724 | 0.05627 | 0 | 0 | 0 | 0 | 0.062016 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
b898eb4e4380309e35cf609b4705eca0cea94a46 | 23 | py | Python | pyvis/_version.py | ahmed-shariff/pyvis | 836a44b4f2c17e53b2379aca0a2f77cd1956bdc0 | [
"BSD-3-Clause"
] | 1 | 2020-05-16T11:59:16.000Z | 2020-05-16T11:59:16.000Z | pyvis/_version.py | ahmed-shariff/pyvis | 836a44b4f2c17e53b2379aca0a2f77cd1956bdc0 | [
"BSD-3-Clause"
] | null | null | null | pyvis/_version.py | ahmed-shariff/pyvis | 836a44b4f2c17e53b2379aca0a2f77cd1956bdc0 | [
"BSD-3-Clause"
] | null | null | null | __version__ = '0.1.7.0' | 23 | 23 | 0.652174 | 5 | 23 | 2.2 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190476 | 0.086957 | 23 | 1 | 23 | 23 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0.291667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b210ad8255266b84eca7288f64f53cae4a48febb | 236 | py | Python | learn-to-code-with-python/32-PROJECT-Texas-Hold-Em-Poker/poker/validators/high_card_validator.py | MaciejZurek/python_practicing | 0a426f2aed151573e1f8678e0239ff596d92bbde | [
"MIT"
] | null | null | null | learn-to-code-with-python/32-PROJECT-Texas-Hold-Em-Poker/poker/validators/high_card_validator.py | MaciejZurek/python_practicing | 0a426f2aed151573e1f8678e0239ff596d92bbde | [
"MIT"
] | null | null | null | learn-to-code-with-python/32-PROJECT-Texas-Hold-Em-Poker/poker/validators/high_card_validator.py | MaciejZurek/python_practicing | 0a426f2aed151573e1f8678e0239ff596d92bbde | [
"MIT"
] | null | null | null | class HighCardValidator():
def __init__(self, cards):
self.cards = cards
self.name = "High Card"
def is_valid(self):
return len(self.cards) >= 2
def valid_cards(self):
return self.cards[-1:] | 23.6 | 35 | 0.59322 | 30 | 236 | 4.466667 | 0.5 | 0.268657 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011834 | 0.283898 | 236 | 10 | 36 | 23.6 | 0.781065 | 0 | 0 | 0 | 0 | 0 | 0.037975 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0 | 0.25 | 0.75 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
b21193fbbe6d8e80c49e34b7e4f41f22c2752370 | 932 | py | Python | benchexec/tools/ultimategemcutter.py | fhowar/benchexec | 44345ec1c9299db8ed464c209b3bba8c2b1c33f2 | [
"Apache-2.0"
] | 137 | 2016-01-12T08:00:43.000Z | 2022-03-28T20:05:22.000Z | benchexec/tools/ultimategemcutter.py | fhowar/benchexec | 44345ec1c9299db8ed464c209b3bba8c2b1c33f2 | [
"Apache-2.0"
] | 505 | 2015-12-15T09:57:34.000Z | 2022-03-19T13:15:07.000Z | benchexec/tools/ultimategemcutter.py | fhowar/benchexec | 44345ec1c9299db8ed464c209b3bba8c2b1c33f2 | [
"Apache-2.0"
] | 164 | 2015-12-17T20:17:29.000Z | 2022-03-18T02:53:28.000Z | # This file is part of BenchExec, a framework for reliable benchmarking:
# https://github.com/sosy-lab/benchexec
#
# SPDX-FileCopyrightText: 2016-2021 Daniel Dietsch <dietsch@informatik.uni-freiburg.de>
# SPDX-FileCopyrightText: 2016-2020 Dirk Beyer <https://www.sosy-lab.org>
#
# SPDX-License-Identifier: Apache-2.0
from . import ultimate
class Tool(ultimate.UltimateTool):
"""
This is the tool info module for ULTIMATE GemCutter.
You can download the latest release from GitHub or build the latest development snapshot by following the
instructions at https://github.com/ultimate-pa/ultimate/wiki/Usage
Please report any issues to our issue tracker at https://github.com/ultimate-pa/ultimate/issues
Latest release: https://github.com/ultimate-pa/ultimate/releases/latest
Git repository: https://github.com/ultimate-pa/ultimate.git
"""
def name(self):
return "ULTIMATE GemCutter"
| 34.518519 | 109 | 0.748927 | 129 | 932 | 5.410853 | 0.596899 | 0.078797 | 0.100287 | 0.126075 | 0.189112 | 0.189112 | 0.097421 | 0 | 0 | 0 | 0 | 0.022727 | 0.150215 | 932 | 26 | 110 | 35.846154 | 0.858586 | 0.815451 | 0 | 0 | 0 | 0 | 0.138462 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.25 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
b227c3ebac559e7bf34a3a7d0cdc68737b8996ce | 430 | py | Python | tests/test_simple.py | Patitotective/jisho-api | b745058803f9aaad3406ed0ad6365c290482246b | [
"Apache-2.0"
] | null | null | null | tests/test_simple.py | Patitotective/jisho-api | b745058803f9aaad3406ed0ad6365c290482246b | [
"Apache-2.0"
] | null | null | null | tests/test_simple.py | Patitotective/jisho-api | b745058803f9aaad3406ed0ad6365c290482246b | [
"Apache-2.0"
] | null | null | null | def test_imports():
from jisho_api.word import Word
from jisho_api.kanji import Kanji
from jisho_api.sentence import Sentence
def test_word_request():
from jisho_api.word import Word
r = Word.request('water')
def test_kanji_request():
from jisho_api.kanji import Kanji
r = Kanji.request('水')
def test_sentence_request():
from jisho_api.sentence import Sentence
r = Sentence.request('water')
| 25.294118 | 43 | 0.730233 | 63 | 430 | 4.777778 | 0.222222 | 0.179402 | 0.239203 | 0.189369 | 0.584718 | 0.584718 | 0 | 0 | 0 | 0 | 0 | 0 | 0.186047 | 430 | 16 | 44 | 26.875 | 0.86 | 0 | 0 | 0.461538 | 0 | 0 | 0.025581 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0.538462 | 0 | 0.846154 | 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 | 1 | 0 | 0 | 0 | 0 | 4 |
b26721ca4850048f6e768e021059f215b3389927 | 278 | py | Python | ch4/auto_docstring.py | chunhua2017/pythonprogrammingdemo | 64e4ac2b33c54cde4671291a6203e94cd96de4ba | [
"MIT"
] | 4 | 2020-05-18T05:25:44.000Z | 2021-07-30T01:02:39.000Z | ch4/auto_docstring.py | chunhua2017/pythonprogrammingdemo | 64e4ac2b33c54cde4671291a6203e94cd96de4ba | [
"MIT"
] | null | null | null | ch4/auto_docstring.py | chunhua2017/pythonprogrammingdemo | 64e4ac2b33c54cde4671291a6203e94cd96de4ba | [
"MIT"
] | 2 | 2021-09-15T05:41:05.000Z | 2022-01-25T05:44:43.000Z | def auto_docstring(a, b, c='hello'):
"""[summary]
Args:
a ([type]): [description]
b ([type]): [description]
c (str, optional): [description]. Defaults to 'hello'.
Returns:
[type]: [description]
"""
return d
| 19.857143 | 62 | 0.485612 | 27 | 278 | 4.962963 | 0.666667 | 0.335821 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.345324 | 278 | 14 | 63 | 19.857143 | 0.736264 | 0.615108 | 0 | 0 | 0 | 0 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
b2896099d00ff71eebd74cbaaf23e9f5908498a8 | 110 | py | Python | Games/Heads or tales.py | Kittex0/Python-Games | 1c338bd960d804761377a1ef87f88c7cfac4aaea | [
"MIT"
] | null | null | null | Games/Heads or tales.py | Kittex0/Python-Games | 1c338bd960d804761377a1ef87f88c7cfac4aaea | [
"MIT"
] | null | null | null | Games/Heads or tales.py | Kittex0/Python-Games | 1c338bd960d804761377a1ef87f88c7cfac4aaea | [
"MIT"
] | null | null | null | import random
import time
print("1 = Heads")
print("2 = Tales")
random = random.randint(1, 2)
print(random)
| 12.222222 | 29 | 0.690909 | 17 | 110 | 4.470588 | 0.529412 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043011 | 0.154545 | 110 | 8 | 30 | 13.75 | 0.774194 | 0 | 0 | 0 | 0 | 0 | 0.163636 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 4 |
a2618318f082289a2ebf0be422415728cf8f46ff | 126 | py | Python | server/server/parsers.py | davideferre/django-ember-jwt-tutorial | 3ddda276014bb683dd868726bb5ae55750064e9a | [
"MIT"
] | 2 | 2017-05-23T20:10:41.000Z | 2017-07-05T11:22:48.000Z | server/server/parsers.py | davideferre/django-ember.js-jwt-tutorial | 3ddda276014bb683dd868726bb5ae55750064e9a | [
"MIT"
] | 2 | 2017-03-25T16:18:15.000Z | 2020-06-05T17:50:32.000Z | server/server/parsers.py | davideferre/django-ember.js-jwt-tutorial | 3ddda276014bb683dd868726bb5ae55750064e9a | [
"MIT"
] | 2 | 2017-03-24T19:02:32.000Z | 2017-07-05T11:22:38.000Z | from rest_framework.parsers import JSONParser
class EmberJSONParser(JSONParser):
media_type = 'application/vnd.api+json'
| 25.2 | 45 | 0.809524 | 15 | 126 | 6.666667 | 0.933333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 126 | 4 | 46 | 31.5 | 0.892857 | 0 | 0 | 0 | 0 | 0 | 0.190476 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
0c5686ef7952eb80f1013c9ead3e3f70a79c4c7a | 285 | py | Python | src/mds/clients/admin.py | m-socha/sana.mds | 4d3b71b7ba939c91570fee4f60444cf07035bd51 | [
"BSD-3-Clause"
] | 2 | 2016-05-19T02:32:13.000Z | 2017-09-06T07:06:25.000Z | src/mds/clients/admin.py | m-socha/sana.mds | 4d3b71b7ba939c91570fee4f60444cf07035bd51 | [
"BSD-3-Clause"
] | 6 | 2015-07-19T17:40:49.000Z | 2016-12-20T21:54:59.000Z | src/mds/clients/admin.py | m-socha/sana.mds | 4d3b71b7ba939c91570fee4f60444cf07035bd51 | [
"BSD-3-Clause"
] | 14 | 2015-10-30T09:50:21.000Z | 2019-06-15T13:07:37.000Z | ''' sana.tasks.admin
:author: Sana Development Team
:version: 2.0
:copyright: Sana 2012, released under BSD New License(http://sana.mit.edu/license)
'''
from django.contrib import admin
from .models import *
class ClientAdmin(admin.ModelAdmin):
pass
admin.site.register(Client)
| 20.357143 | 82 | 0.750877 | 40 | 285 | 5.35 | 0.775 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024096 | 0.126316 | 285 | 13 | 83 | 21.923077 | 0.835341 | 0.508772 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.2 | 0.4 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 4 |
a742b120e13f4a0d6e9c2dbc7c4a1e90b2aaeb18 | 106 | py | Python | errors.py | marvinandroid/python_lesson_2 | 46bc610ed2241031c7fe6a5606133b71eeac00ff | [
"MIT"
] | null | null | null | errors.py | marvinandroid/python_lesson_2 | 46bc610ed2241031c7fe6a5606133b71eeac00ff | [
"MIT"
] | null | null | null | errors.py | marvinandroid/python_lesson_2 | 46bc610ed2241031c7fe6a5606133b71eeac00ff | [
"MIT"
] | null | null | null | __author__ = 'adzakha2'
class InvalidMove(Exception):
pass
class InvalidColor(Exception):
pass | 11.777778 | 30 | 0.726415 | 10 | 106 | 7.3 | 0.7 | 0.356164 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011628 | 0.188679 | 106 | 9 | 31 | 11.777778 | 0.837209 | 0 | 0 | 0.4 | 0 | 0 | 0.074766 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.4 | 0 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
a75e5c3009334afc0a9292f4079388ed3712050a | 72 | py | Python | exemplos/codigo.py | ffmmjj/python-brasil-talk-2021 | b0e326cbc4d7c6ecde91aaab2ec017379fad0a42 | [
"Apache-2.0"
] | null | null | null | exemplos/codigo.py | ffmmjj/python-brasil-talk-2021 | b0e326cbc4d7c6ecde91aaab2ec017379fad0a42 | [
"Apache-2.0"
] | null | null | null | exemplos/codigo.py | ffmmjj/python-brasil-talk-2021 | b0e326cbc4d7c6ecde91aaab2ec017379fad0a42 | [
"Apache-2.0"
] | null | null | null | # Redundante
CONSTANT_CONDITION = True
print("true")
print("continua")
| 12 | 25 | 0.75 | 8 | 72 | 6.625 | 0.75 | 0.339623 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 72 | 5 | 26 | 14.4 | 0.828125 | 0.138889 | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.666667 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
a7976ad3f7eafee67d322b4ca5bddeebece0da29 | 284 | py | Python | test_command_tools.py | Honghe/yitu_realtime-asr-python-demo | e64497c3c66e8bb242d2e4042d3e388e6d66797c | [
"MIT"
] | null | null | null | test_command_tools.py | Honghe/yitu_realtime-asr-python-demo | e64497c3c66e8bb242d2e4042d3e388e6d66797c | [
"MIT"
] | null | null | null | test_command_tools.py | Honghe/yitu_realtime-asr-python-demo | e64497c3c66e8bb242d2e4042d3e388e6d66797c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from command_tools import command_detect
def test_command_detect():
assert command_detect('a给黄栋加两分给谁加两分') == '给黄栋加两分'
assert command_detect('a给黄栋一朵小红花') == '给黄栋一朵小红花'
assert command_detect('上课。') == '上课'
assert command_detect('对对。') == None
| 25.818182 | 53 | 0.683099 | 33 | 284 | 5.636364 | 0.545455 | 0.419355 | 0.408602 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004202 | 0.161972 | 284 | 10 | 54 | 28.4 | 0.777311 | 0.073944 | 0 | 0 | 0 | 0 | 0.164751 | 0 | 0 | 0 | 0 | 0 | 0.666667 | 1 | 0.166667 | true | 0 | 0.166667 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
a7bdcd6b6dcf5f83eb6e426cb74bc436541cb983 | 238 | py | Python | scripts/field_reconstruction.py | belmant/tolosat_gravimetry | 386b75ebf0e7f1663f8307c506a52660d2f8051b | [
"MIT"
] | null | null | null | scripts/field_reconstruction.py | belmant/tolosat_gravimetry | 386b75ebf0e7f1663f8307c506a52660d2f8051b | [
"MIT"
] | null | null | null | scripts/field_reconstruction.py | belmant/tolosat_gravimetry | 386b75ebf0e7f1663f8307c506a52660d2f8051b | [
"MIT"
] | 1 | 2020-03-18T18:39:43.000Z | 2020-03-18T18:39:43.000Z | """This script reconstructs the gravity field, from spherical harmonics coefficients
"""
def main(): # do something useful
pass
if __name__ == '__main__': # runs only if this script is run directly, not if it is imported
main() | 26.444444 | 92 | 0.718487 | 33 | 238 | 4.939394 | 0.787879 | 0.122699 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.197479 | 238 | 9 | 93 | 26.444444 | 0.853403 | 0.697479 | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | true | 0.25 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
a7c943a3f799ea20c9288c5b15d31f86535b46e2 | 389 | py | Python | handlers/simplehandler.py | n0s0r0g/perfect_OSM | d07fef525865a337d8d9bd3e8168cf6b411a182b | [
"MIT"
] | 4 | 2016-04-03T21:12:57.000Z | 2016-05-04T09:14:43.000Z | handlers/simplehandler.py | n0s0r0g/perfect_OSM | d07fef525865a337d8d9bd3e8168cf6b411a182b | [
"MIT"
] | null | null | null | handlers/simplehandler.py | n0s0r0g/perfect_OSM | d07fef525865a337d8d9bd3e8168cf6b411a182b | [
"MIT"
] | null | null | null | from handlers.handler import Handler
class SimpleHandler(Handler):
def process_iteration(self, obj, iteration):
self.process(obj)
def process(self, o):
raise NotImplementedError('Not implemented.')
def is_iteration_required(self, iteration):
return iteration == 0
def finish(self, issues):
raise NotImplementedError('Not implemented.')
| 24.3125 | 53 | 0.694087 | 42 | 389 | 6.357143 | 0.52381 | 0.074906 | 0.202247 | 0.284644 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003268 | 0.213368 | 389 | 15 | 54 | 25.933333 | 0.869281 | 0 | 0 | 0.2 | 0 | 0 | 0.082262 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0.1 | 0.1 | 0.7 | 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 | 0 | 1 | 0 | 0 | 4 |
a7cc8b115764f56a9c07af297ea4eb6128f878ea | 134 | py | Python | Patterns/pyramid2.py | bhupal143/Python_coding | 005927b949ff51ff6d2900eba6f7107c1c1142a4 | [
"Apache-2.0"
] | null | null | null | Patterns/pyramid2.py | bhupal143/Python_coding | 005927b949ff51ff6d2900eba6f7107c1c1142a4 | [
"Apache-2.0"
] | null | null | null | Patterns/pyramid2.py | bhupal143/Python_coding | 005927b949ff51ff6d2900eba6f7107c1c1142a4 | [
"Apache-2.0"
] | null | null | null | n = int(input('Enter the number of rows: '))
for i in range(0,n):
for k in range(0, i+1):
print('*', end='')
print()
| 19.142857 | 44 | 0.514925 | 24 | 134 | 2.875 | 0.708333 | 0.202899 | 0.231884 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030928 | 0.276119 | 134 | 6 | 45 | 22.333333 | 0.680412 | 0 | 0 | 0 | 0 | 0 | 0.203008 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 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 | 0 | 0 | 4 |
a7d4da9409aa9e4eede13b7337e4caf502858a90 | 26 | py | Python | src/version.py | JohnStyleZ/botty | 295073cd8a13021db0ee43a543dd7cea4aa9df94 | [
"MIT"
] | null | null | null | src/version.py | JohnStyleZ/botty | 295073cd8a13021db0ee43a543dd7cea4aa9df94 | [
"MIT"
] | null | null | null | src/version.py | JohnStyleZ/botty | 295073cd8a13021db0ee43a543dd7cea4aa9df94 | [
"MIT"
] | null | null | null | __version__ = '0.6.5-dev'
| 13 | 25 | 0.653846 | 5 | 26 | 2.6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 0.115385 | 26 | 1 | 26 | 26 | 0.434783 | 0 | 0 | 0 | 0 | 0 | 0.346154 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
38ef59ca0e5e929954fa4b765d59c392bd8bf335 | 154 | py | Python | tests/test_ctor.py | eagafonov/overlay_dict | 112e701453cafc8eddc3450a4ffe82ded04ea0ba | [
"MIT"
] | null | null | null | tests/test_ctor.py | eagafonov/overlay_dict | 112e701453cafc8eddc3450a4ffe82ded04ea0ba | [
"MIT"
] | null | null | null | tests/test_ctor.py | eagafonov/overlay_dict | 112e701453cafc8eddc3450a4ffe82ded04ea0ba | [
"MIT"
] | null | null | null | from overlay_dict import overlay_dict
class TestConstuctors:
def test_default(self):
od = overlay_dict()
assert od._layers == [{}]
| 17.111111 | 37 | 0.662338 | 18 | 154 | 5.388889 | 0.722222 | 0.340206 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.246753 | 154 | 8 | 38 | 19.25 | 0.836207 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | false | 0 | 0.2 | 0 | 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 | 0 | 1 | 0 | 0 | 4 |
ac752046255efd38caf9e81bdb6b415128153b94 | 223 | py | Python | src/transformers/WrappingTransformer.py | stefantaubert/imageclef-lifelog-2019 | e779526583978be828ebc096538d094cc3cc260e | [
"MIT"
] | 1 | 2020-08-15T01:55:07.000Z | 2020-08-15T01:55:07.000Z | src/transformers/WrappingTransformer.py | stefantaubert/imageclef-lifelog-2019 | e779526583978be828ebc096538d094cc3cc260e | [
"MIT"
] | null | null | null | src/transformers/WrappingTransformer.py | stefantaubert/imageclef-lifelog-2019 | e779526583978be828ebc096538d094cc3cc260e | [
"MIT"
] | null | null | null | from pdtransform import NoFitMixin
def wrap(array):
res = [[itm] for itm in array]
return res
class WrappingTransformer(NoFitMixin):
"""
"""
def transform(self, array: list):
return wrap(array) | 20.272727 | 38 | 0.650224 | 26 | 223 | 5.576923 | 0.653846 | 0.17931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.242152 | 223 | 11 | 39 | 20.272727 | 0.857988 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0.142857 | 0.857143 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
3baebb837781e77da198ba606712754cd6dedc7c | 918 | py | Python | mbtav3/models/trip.py | djsv23/python-mbta | b9e0e988f70e9d1f84c8a92080e44895427e7a16 | [
"MIT"
] | 4 | 2018-03-31T23:27:07.000Z | 2020-10-14T00:09:05.000Z | mbtav3/models/trip.py | djsv23/python-mbta | b9e0e988f70e9d1f84c8a92080e44895427e7a16 | [
"MIT"
] | null | null | null | mbtav3/models/trip.py | djsv23/python-mbta | b9e0e988f70e9d1f84c8a92080e44895427e7a16 | [
"MIT"
] | 5 | 2018-11-09T15:43:42.000Z | 2021-12-16T04:14:04.000Z | import jsonapi_requests
import mbta.api
from .common import MbtaModel, WheelchairAccess
from .mixin import DirectionMixin
from .orm import EnumField
class Trip(jsonapi_requests.orm.ApiModel, MbtaModel, DirectionMixin):
class Meta:
type = 'trip'
path = 'trips'
api = mbta.api.config
wheelchair = EnumField('wheelchair_accessible', enum_cls=WheelchairAccess, serialize_as_name=False)
name = jsonapi_requests.orm.AttributeField('name')
headsign = jsonapi_requests.orm.AttributeField('headsign')
direction_id = jsonapi_requests.orm.AttributeField('direction_id')
block_id = jsonapi_requests.orm.AttributeField('block_id')
# shape = jsonapi_requests.orm.RelationField('shape')
route = jsonapi_requests.orm.RelationField('route')
service = jsonapi_requests.orm.RelationField('service')
def __repr__(self):
return f'{self.name} ({self.headsign})'
| 34 | 103 | 0.742919 | 103 | 918 | 6.417476 | 0.417476 | 0.204236 | 0.217852 | 0.193646 | 0.102874 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154684 | 918 | 26 | 104 | 35.307692 | 0.851804 | 0.055556 | 0 | 0 | 0 | 0 | 0.119075 | 0.024277 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.263158 | 0.052632 | 0.842105 | 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 | 0 | 1 | 0 | 0 | 4 |
3bb042316699f08cae1da96055b871902dba2018 | 292 | py | Python | les-6/practice/6_4.py | AtlasDev/TICT-V1PROG-15 | 9595300fce48f18b643d60629db3821487c1a7b6 | [
"MIT"
] | 6 | 2016-09-12T19:21:29.000Z | 2018-09-02T18:36:37.000Z | les-6/practice/6_4.py | AtlasDev/TICT-V1PROG-15 | 9595300fce48f18b643d60629db3821487c1a7b6 | [
"MIT"
] | null | null | null | les-6/practice/6_4.py | AtlasDev/TICT-V1PROG-15 | 9595300fce48f18b643d60629db3821487c1a7b6 | [
"MIT"
] | null | null | null | bruin = {'Boxtel', 'Best', 'Beukenlaan', 'Eindhoven', 'Helmond t Hout', 'Helmond', 'Helomd Brouwhuis', 'Deurne'};
groen = {'Boxtel', 'Best', 'Beukenlaan', 'Eindhoven', 'Geldrop', 'Heeze', 'Weert'};
print(bruin.intersection(groen));
print(bruin.difference(groen));
print(bruin.union(groen));
| 41.714286 | 113 | 0.674658 | 32 | 292 | 6.15625 | 0.59375 | 0.152284 | 0.203046 | 0.294416 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089041 | 292 | 6 | 114 | 48.666667 | 0.740602 | 0 | 0 | 0 | 0 | 0 | 0.40411 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.6 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
3bd9eae269e1f71e5a69378a2343e0510969a762 | 136 | py | Python | Python_Day9/package/diptajit.py | dchaurangi/pro1 | 0c0c9f53749fb9857f69f5d564718fd3acbec7b0 | [
"MIT"
] | 1 | 2020-01-16T08:54:52.000Z | 2020-01-16T08:54:52.000Z | Python_Day9/package/diptajit.py | dchaurangi/pro1 | 0c0c9f53749fb9857f69f5d564718fd3acbec7b0 | [
"MIT"
] | null | null | null | Python_Day9/package/diptajit.py | dchaurangi/pro1 | 0c0c9f53749fb9857f69f5d564718fd3acbec7b0 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# In[1]:
def red():
print("red")
# In[2]:
def blue():
print("blue")
# In[ ]:
| 5.913043 | 21 | 0.463235 | 20 | 136 | 3.15 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030928 | 0.286765 | 136 | 22 | 22 | 6.181818 | 0.618557 | 0.404412 | 0 | 0 | 0 | 0 | 0.097222 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0 | 0 | 0 | 0.5 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
ce1bbaa9e94ad24bb4dd96ebc349d45e027bf8e2 | 83 | py | Python | ford/apps.py | Nels885/csd_dashboard | aa5a3b970c50a2a93af722f962bd87c3728f233c | [
"MIT"
] | null | null | null | ford/apps.py | Nels885/csd_dashboard | aa5a3b970c50a2a93af722f962bd87c3728f233c | [
"MIT"
] | null | null | null | ford/apps.py | Nels885/csd_dashboard | aa5a3b970c50a2a93af722f962bd87c3728f233c | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class FordConfig(AppConfig):
name = 'ford'
| 13.833333 | 33 | 0.73494 | 10 | 83 | 6.1 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180723 | 83 | 5 | 34 | 16.6 | 0.897059 | 0 | 0 | 0 | 0 | 0 | 0.048193 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
ce38eea29ba85bd37814301171a823c8e42cc4f7 | 93 | py | Python | src/network/__init__.py | rbaltrusch/LocalChat | a56ff96f7a4f2f8b29eee908e094ed55c2ae5961 | [
"MIT"
] | null | null | null | src/network/__init__.py | rbaltrusch/LocalChat | a56ff96f7a4f2f8b29eee908e094ed55c2ae5961 | [
"MIT"
] | 2 | 2021-06-19T08:49:23.000Z | 2022-03-25T09:19:36.000Z | src/network/__init__.py | rbaltrusch/LocalChat | a56ff96f7a4f2f8b29eee908e094ed55c2ae5961 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Mon May 10 16:25:54 2021
@author: Korean_Crimson
"""
| 13.285714 | 35 | 0.612903 | 15 | 93 | 3.733333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171053 | 0.182796 | 93 | 6 | 36 | 15.5 | 0.565789 | 0.892473 | 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 | 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 | 4 |
02200574b1d3ffafdae5cccf259bec9f05707537 | 1,179 | py | Python | implementation/h2o-fakegame/h2o-py/h2o/estimators/__init__.py | kordikp/AutoMLprediction | 6f87bd0b95ce78103c9f4f83ee85d831ab60a0a6 | [
"Apache-2.0"
] | 1 | 2018-03-22T12:45:32.000Z | 2018-03-22T12:45:32.000Z | implementation/h2o-fakegame/h2o-py/h2o/estimators/__init__.py | kordikp/AutoMLprediction | 6f87bd0b95ce78103c9f4f83ee85d831ab60a0a6 | [
"Apache-2.0"
] | null | null | null | implementation/h2o-fakegame/h2o-py/h2o/estimators/__init__.py | kordikp/AutoMLprediction | 6f87bd0b95ce78103c9f4f83ee85d831ab60a0a6 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
#
# This file is auto-generated by h2o-3/h2o-bindings/bin/gen_python.py
# Copyright 2016 H2O.ai; Apache License Version 2.0 (see LICENSE for details)
#
from .deeplearning import H2OAutoEncoderEstimator
from .glrm import H2OGeneralizedLowRankEstimator
from .glm import H2OGeneralizedLinearEstimator
from .aggregator import H2OAggregatorEstimator
from .svd import H2OSingularValueDecompositionEstimator
from .gbm import H2OGradientBoostingEstimator
from .kmeans import H2OKMeansEstimator
from .naive_bayes import H2ONaiveBayesEstimator
from .deeplearning import H2ODeepLearningEstimator
from .fakegame import H2OFakeGameEstimator
from .pca import H2OPrincipalComponentAnalysisEstimator
from .random_forest import H2ORandomForestEstimator
__all__ = [
"H2OAutoEncoderEstimator", "H2OGeneralizedLowRankEstimator", "H2OGeneralizedLinearEstimator",
"H2OAggregatorEstimator", "H2OSingularValueDecompositionEstimator", "H2OGradientBoostingEstimator",
"H2OKMeansEstimator", "H2ONaiveBayesEstimator", "H2ODeepLearningEstimator", "H2OFakeGameEstimator",
"H2OPrincipalComponentAnalysisEstimator", "H2ORandomForestEstimator"
]
| 45.346154 | 103 | 0.838846 | 97 | 1,179 | 10.123711 | 0.587629 | 0.032587 | 0.044807 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032741 | 0.093299 | 1,179 | 25 | 104 | 47.16 | 0.885875 | 0.160305 | 0 | 0 | 1 | 0 | 0.321138 | 0.28252 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
0236c3572bd76fc180a866f3045eac472afd7fe3 | 165 | py | Python | dekla/deklaLogger.py | adamlukomski/dekla | 9be3d780c433af7411c5b5528163c31c2890286b | [
"MIT"
] | null | null | null | dekla/deklaLogger.py | adamlukomski/dekla | 9be3d780c433af7411c5b5528163c31c2890286b | [
"MIT"
] | null | null | null | dekla/deklaLogger.py | adamlukomski/dekla | 9be3d780c433af7411c5b5528163c31c2890286b | [
"MIT"
] | null | null | null | # purged, please use PykronLogger from now on
#
# qApp.dekla.logger = PykronLogger.getInstance()
#
# for reference the old DeklaLogger is available in the archive/
# | 27.5 | 64 | 0.763636 | 22 | 165 | 5.727273 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151515 | 165 | 6 | 65 | 27.5 | 0.9 | 0.927273 | 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 | 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 | 4 |
02476fda6b71246e841692217a0f6723eea6d5e2 | 212 | py | Python | nbgrader/auth/__init__.py | omelnikov/nbgrader | 66984e5732c98bd15733c027601a62fca6a46222 | [
"BSD-3-Clause"
] | 1,116 | 2015-01-20T19:22:24.000Z | 2022-03-31T22:05:10.000Z | nbgrader/auth/__init__.py | jld23/nbgrader | 07a38cd8ed12ab33870bdd42f0bf35aa1252b0db | [
"BSD-3-Clause"
] | 1,166 | 2015-01-08T21:50:31.000Z | 2022-03-31T05:15:01.000Z | nbgrader/auth/__init__.py | jld23/nbgrader | 07a38cd8ed12ab33870bdd42f0bf35aa1252b0db | [
"BSD-3-Clause"
] | 337 | 2015-02-06T01:28:00.000Z | 2022-03-29T06:52:38.000Z | from .base import BaseAuthPlugin, NoAuthPlugin, Authenticator
from .jupyterhub import JupyterHubAuthPlugin
__all__ = [
"BaseAuthPlugin",
"NoAuthPlugin",
"JupyterHubAuthPlugin",
"Authenticator"
]
| 21.2 | 61 | 0.75 | 15 | 212 | 10.333333 | 0.6 | 0.335484 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165094 | 212 | 9 | 62 | 23.555556 | 0.875706 | 0 | 0 | 0 | 0 | 0 | 0.278302 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
024a9936ee8847657af465465a55db2b1a45956a | 716 | py | Python | t2t/__init__.py | msikma/tune2tube | bee67d03a9996cfc38551415a8943efb56f9d997 | [
"Apache-2.0"
] | 23 | 2015-02-20T18:23:58.000Z | 2021-04-28T12:46:03.000Z | t2t/__init__.py | msikma/tune2tube | bee67d03a9996cfc38551415a8943efb56f9d997 | [
"Apache-2.0"
] | 4 | 2015-07-20T12:18:22.000Z | 2020-10-02T09:52:27.000Z | t2t/__init__.py | msikma/tune2tube | bee67d03a9996cfc38551415a8943efb56f9d997 | [
"Apache-2.0"
] | 5 | 2015-07-20T11:43:35.000Z | 2019-06-27T15:52:45.000Z | #!/usr/bin/env python
# coding=UTF8
# tune2tube.py
#
# Copyright (C) 2014-2015 Michiel Sikma and contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
# or implied. See the License for the specific language governing
# permissions and limitations under the License.
from tune2tube import Tune2Tube
from tunetags import TuneTags
| 32.545455 | 69 | 0.769553 | 110 | 716 | 5.009091 | 0.7 | 0.108893 | 0.047187 | 0.058076 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026622 | 0.160615 | 716 | 21 | 70 | 34.095238 | 0.890183 | 0.863128 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
5a024ff275e1a2fe33502b9c269aa77214bb6c5e | 103 | py | Python | pnw/project.py | Lyrositor/pnw | 04b6ba24881036e75c82ccdbd8853c2b00753f31 | [
"WTFPL"
] | 1 | 2020-08-02T14:46:44.000Z | 2020-08-02T14:46:44.000Z | pnw/project.py | Lyrositor/pnw | 04b6ba24881036e75c82ccdbd8853c2b00753f31 | [
"WTFPL"
] | null | null | null | pnw/project.py | Lyrositor/pnw | 04b6ba24881036e75c82ccdbd8853c2b00753f31 | [
"WTFPL"
] | null | null | null | class Project:
def __init__(self, name, cost):
self.name = name
self.cost = cost
| 14.714286 | 35 | 0.572816 | 13 | 103 | 4.230769 | 0.538462 | 0.290909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.330097 | 103 | 6 | 36 | 17.166667 | 0.797101 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
5a3c0c7374bd4f4a35b203be2f35bffd307fc1df | 488 | py | Python | DeepRL/utilities/data_structures/__init__.py | Rafapia/Deep-Reinforcement-Learning-Algorithms-with-PyTorch | a0d584cbdc068b9e0d0f025df153103bcf16a6e0 | [
"MIT"
] | null | null | null | DeepRL/utilities/data_structures/__init__.py | Rafapia/Deep-Reinforcement-Learning-Algorithms-with-PyTorch | a0d584cbdc068b9e0d0f025df153103bcf16a6e0 | [
"MIT"
] | null | null | null | DeepRL/utilities/data_structures/__init__.py | Rafapia/Deep-Reinforcement-Learning-Algorithms-with-PyTorch | a0d584cbdc068b9e0d0f025df153103bcf16a6e0 | [
"MIT"
] | null | null | null | __all__ = ["Action_Balanced_Replay_Buffer", "Config", "Deque", "Max_Heap", "Node", "Prioritised_Replay_Buffer",
"Replay_Buffer", "Tanh_Distribution"]
from .Action_Balanced_Replay_Buffer import Action_Balanced_Replay_Buffer
from .Config import Config
from .Deque import Deque
from .Max_Heap import Max_Heap
from .Node import Node
from .Prioritised_Replay_Buffer import Prioritised_Replay_Buffer
from .Replay_Buffer import Replay_Buffer
from .Tanh_Distribution import TanhNormal | 44.363636 | 111 | 0.821721 | 64 | 488 | 5.84375 | 0.25 | 0.28877 | 0.160428 | 0.208556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108607 | 488 | 11 | 112 | 44.363636 | 0.85977 | 0 | 0 | 0 | 0 | 0 | 0.218814 | 0.110429 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.8 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
5a4169bb7235699aad51de67745db893874a76ed | 248 | py | Python | genie/__init__.py | namuan/alfred-genie | b442e8c9d05befe0f89290907daa7b8d8cced913 | [
"MIT"
] | 5 | 2020-07-05T15:33:39.000Z | 2021-05-02T12:53:18.000Z | genie/__init__.py | namuan/alfred-genie | b442e8c9d05befe0f89290907daa7b8d8cced913 | [
"MIT"
] | null | null | null | genie/__init__.py | namuan/alfred-genie | b442e8c9d05befe0f89290907daa7b8d8cced913 | [
"MIT"
] | null | null | null | import clipboard
def uid(index):
return "u-com.github.namuan-{}".format(index)
def with_clip(func):
def wrapper(self):
input_from_clipboard = clipboard.paste()
return func(self, input_from_clipboard)
return wrapper
| 17.714286 | 49 | 0.685484 | 32 | 248 | 5.15625 | 0.59375 | 0.109091 | 0.157576 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.205645 | 248 | 13 | 50 | 19.076923 | 0.837563 | 0 | 0 | 0 | 0 | 0 | 0.08871 | 0.08871 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0.125 | 0.125 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
5a449eddfeb8d8331ed0b2ca2b9a916dfb2c4bb5 | 23 | py | Python | cloudmesh_installer/install/__init__.py | cloudmesh/cloudmesh-install | 7819f1c427d543a3f2cc1a7c9dac1d0496dbf6eb | [
"Apache-2.0"
] | null | null | null | cloudmesh_installer/install/__init__.py | cloudmesh/cloudmesh-install | 7819f1c427d543a3f2cc1a7c9dac1d0496dbf6eb | [
"Apache-2.0"
] | null | null | null | cloudmesh_installer/install/__init__.py | cloudmesh/cloudmesh-install | 7819f1c427d543a3f2cc1a7c9dac1d0496dbf6eb | [
"Apache-2.0"
] | null | null | null | __version__ = "4.4.45"
| 11.5 | 22 | 0.652174 | 4 | 23 | 2.75 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0.130435 | 23 | 1 | 23 | 23 | 0.35 | 0 | 0 | 0 | 0 | 0 | 0.26087 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
ce50bdbc8960ce92a27ad7c9bc2dfd6e27d4a349 | 213 | py | Python | backend-project/small_eod/tags/views.py | WlodzimierzKorza/small_eod | 027022bd71122a949a2787d0fb86518df80e48cd | [
"MIT"
] | 1 | 2021-02-10T19:58:51.000Z | 2021-02-10T19:58:51.000Z | backend-project/small_eod/tags/views.py | WlodzimierzKorza/small_eod | 027022bd71122a949a2787d0fb86518df80e48cd | [
"MIT"
] | null | null | null | backend-project/small_eod/tags/views.py | WlodzimierzKorza/small_eod | 027022bd71122a949a2787d0fb86518df80e48cd | [
"MIT"
] | 1 | 2021-02-10T19:38:35.000Z | 2021-02-10T19:38:35.000Z | from rest_framework import viewsets
from .models import Tag
from .serializers import TagSerializer
class TagViewSet(viewsets.ModelViewSet):
queryset = Tag.objects.all()
serializer_class = TagSerializer
| 21.3 | 40 | 0.798122 | 24 | 213 | 7 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14554 | 213 | 9 | 41 | 23.666667 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
ce71dc3dce9f8e415c7c4caed390be5fa5a4568e | 275 | py | Python | book_filters/admin.py | R-Mielamud/Nicolaus | 05a28a19ca0127cf39b1238dc313cecd6e528c40 | [
"MIT"
] | null | null | null | book_filters/admin.py | R-Mielamud/Nicolaus | 05a28a19ca0127cf39b1238dc313cecd6e528c40 | [
"MIT"
] | null | null | null | book_filters/admin.py | R-Mielamud/Nicolaus | 05a28a19ca0127cf39b1238dc313cecd6e528c40 | [
"MIT"
] | 1 | 2021-03-09T16:06:23.000Z | 2021-03-09T16:06:23.000Z | from django.contrib import admin
from .models import TagGroup, Tag, Publishing, Author, Series, Status
admin.site.register(TagGroup)
admin.site.register(Tag)
admin.site.register(Publishing)
admin.site.register(Author)
admin.site.register(Series)
admin.site.register(Status)
| 27.5 | 69 | 0.814545 | 38 | 275 | 5.894737 | 0.368421 | 0.241071 | 0.455357 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072727 | 275 | 9 | 70 | 30.555556 | 0.878431 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 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 | 4 |
ce9150c86a3ae61b95ffc5bee53553cefcea58c3 | 5,081 | py | Python | tests/cloudio/test_cloudio_pendingupdate.py | cloudio-project/cloudio-endpoint-python | 0638a811dedd210e0ebc3f3265f577585522058f | [
"MIT"
] | 2 | 2016-07-21T15:06:43.000Z | 2018-03-03T11:42:21.000Z | tests/cloudio/test_cloudio_pendingupdate.py | cloudio-project/cloudio-endpoint-python | 0638a811dedd210e0ebc3f3265f577585522058f | [
"MIT"
] | 18 | 2016-07-20T05:45:30.000Z | 2022-01-21T06:55:00.000Z | tests/cloudio/test_cloudio_pendingupdate.py | cloudio-project/cloudio-endpoint-python | 0638a811dedd210e0ebc3f3265f577585522058f | [
"MIT"
] | 2 | 2019-08-05T15:07:31.000Z | 2020-06-19T20:32:55.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import logging
import unittest
from cloudio.common.mqtt.pending_update import PendingUpdate
from tests.cloudio.paths import update_working_directory
update_working_directory() # Needed when: 'pipenv run python -m unittest tests/cloudio/{this_file}.py'
class TestCloudioPendingUpdate(unittest.TestCase):
"""Tests PendingUpdate class.
"""
log = logging.getLogger(__name__)
def setUp(self):
# Provide some updates as they are saved in MqttClientPersistence store
self.keys = ['PendingUpdate-test-vacuum-cleaner;nodes;VacuumCleaner;objects;Parameters;attributes'
';set_throughput-1476111491023',
'PendingUpdate-test-vacuum-cleaner;nodes;VacuumCleaner;objects;Parameters;attributes'
';set_throughput-1476163462733',
'PendingUpdate-test-vacuum-cleaner;nodes;VacuumCleaner;objects;Parameters;attributes'
';set_throughput-1476163470654',
'PendingUpdate-test-vacuum-cleaner;nodes;VacuumCleaner;objects;Parameters;attributes'
';set_throughput-1476163477170',
'PendingUpdate-test-vacuum-cleaner;nodes;VacuumCleaner;objects;Parameters;attributes'
';set_throughput-1476163470153',
'PendingUpdate-test-vacuum-cleaner;nodes;VacuumCleaner;objects;Parameters;attributes'
';set_throughput-1476163474666',
'PendingUpdate-test-vacuum-cleaner;nodes;VacuumCleaner;objects;Parameters;attributes'
';set_throughput-1476163472659',
'PendingUpdate-test-vacuum-cleaner;nodes;VacuumCleaner;objects;Parameters;attributes'
';set_throughput-1476163469652',
'PendingUpdate-test-vacuum-cleaner;nodes;VacuumCleaner;objects;Parameters;attributes'
';set_throughput-1476163466257',
'PendingUpdate-test-vacuum-cleaner;nodes;VacuumCleaner;objects;Parameters;attributes'
';set_throughput-1476163476169',
'PendingUpdate-test-vacuum-cleaner;nodes;VacuumCleaner;objects;Parameters;attributes'
';set_throughput-1476163769338',
'PendingUpdate-test-vacuum-cleaner;nodes;VacuumCleaner;objects;Parameters;attributes'
';set_throughput-1476163465383',
'PendingUpdate-test-vacuum-cleaner;nodes;VacuumCleaner;objects;Parameters;attributes'
';set_throughput-1476163475166',
'PendingUpdate-test-vacuum-cleaner;nodes;VacuumCleaner;objects;Parameters;attributes'
';set_throughput-1476163459950',
'PendingUpdate-test-vacuum-cleaner;nodes;VacuumCleaner;objects;Parameters;attributes'
';set_throughput-1476163469152',
'PendingUpdate-test-vacuum-cleaner;nodes;VacuumCleaner;objects;Parameters;attributes'
';set_throughput-1476163475667',
'PendingUpdate-test-vacuum-cleaner;nodes;VacuumCleaner;objects;Parameters;attributes'
';set_throughput-1476163456301',
'PendingUpdate-test-vacuum-cleaner;nodes;VacuumCleaner;objects;Parameters;attributes'
';set_throughput-1476163471155',
'PendingUpdate-test-vacuum-cleaner;nodes;VacuumCleaner;objects;Parameters;attributes'
';set_throughput-1476163460861',
'PendingUpdate-test-vacuum-cleaner;nodes;VacuumCleaner;objects;Parameters;attributes'
';set_throughput-1476163471656',
'PendingUpdate-test-vacuum-cleaner;nodes;VacuumCleaner;objects;Parameters;attributes'
';set_throughput-1476163463614',
'PendingUpdate-test-vacuum-cleaner;nodes;VacuumCleaner;objects;Parameters;attributes'
';set_throughput-1476163472157',
'PendingUpdate-test-vacuum-cleaner;nodes;VacuumCleaner;objects;Parameters;attributes'
';set_throughput-1476163467255',
'PendingUpdate-test-vacuum-cleaner;nodes;VacuumCleaner;objects;Parameters;attributes'
';set_throughput-1476163476669',
]
def test_pendingUpdateDecoding(self):
"""Tests the getUuidFromPersistenceKey() method of the PendingUpdate class.
"""
compUuid = 'test-vacuum-cleaner/nodes/VacuumCleaner/objects/Parameters/attributes/set_throughput'
for key in self.keys:
uuid = PendingUpdate.get_uuid_from_persistence_key(key)
self.assertEqual(uuid, compUuid)
if __name__ == '__main__':
# Enable logging
logging.basicConfig(format='%(asctime)s.%(msecs)03d - %(name)s - %(levelname)s - %(message)s',
datefmt='%Y-%m-%d %H:%M:%S',
level=logging.INFO)
unittest.main()
| 57.738636 | 106 | 0.642984 | 426 | 5,081 | 7.556338 | 0.262911 | 0.077664 | 0.132029 | 0.170861 | 0.679404 | 0.679404 | 0.679404 | 0.679404 | 0.679404 | 0.679404 | 0 | 0.083665 | 0.259004 | 5,081 | 87 | 107 | 58.402299 | 0.771315 | 0.061996 | 0 | 0.343284 | 0 | 0.014925 | 0.602189 | 0.588297 | 0 | 0 | 0 | 0 | 0.014925 | 1 | 0.029851 | false | 0 | 0.059701 | 0 | 0.119403 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
cea8c35dd07c8e216e52e2ba08fffadd5734d010 | 121 | py | Python | main_2/urls.py | ghassen3699/Site_web_Projet | 20eca8ded72f4e798862dd5440000afe04892092 | [
"Apache-2.0"
] | null | null | null | main_2/urls.py | ghassen3699/Site_web_Projet | 20eca8ded72f4e798862dd5440000afe04892092 | [
"Apache-2.0"
] | null | null | null | main_2/urls.py | ghassen3699/Site_web_Projet | 20eca8ded72f4e798862dd5440000afe04892092 | [
"Apache-2.0"
] | null | null | null | from django.urls import path
from . import views
urlpatterns = [
path('',views.index_page,name='index_page') ,
]
| 12.1 | 49 | 0.68595 | 16 | 121 | 5.0625 | 0.625 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 121 | 9 | 50 | 13.444444 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0.082645 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
0c6b2d893b4ba6195647969d0c0c43cd913a162f | 435 | py | Python | projects/data_generation/synthetic_multi_view_facial_image_generation/algorithm/Rotate_and_Render/models/networks/sync_batchnorm/__init__.py | ESOGU-SRLAB/opendr | f2eb5a6d7a070d3534d470987c3abc69eec53905 | [
"Apache-2.0"
] | 217 | 2020-04-10T16:39:36.000Z | 2022-03-30T15:39:04.000Z | projects/data_generation/synthetic_multi_view_facial_image_generation/algorithm/Rotate_and_Render/models/networks/sync_batchnorm/__init__.py | ESOGU-SRLAB/opendr | f2eb5a6d7a070d3534d470987c3abc69eec53905 | [
"Apache-2.0"
] | 46 | 2021-12-16T13:23:04.000Z | 2022-03-30T11:36:29.000Z | projects/data_generation/synthetic_multi_view_facial_image_generation/algorithm/Rotate_and_Render/models/networks/sync_batchnorm/__init__.py | ESOGU-SRLAB/opendr | f2eb5a6d7a070d3534d470987c3abc69eec53905 | [
"Apache-2.0"
] | 29 | 2021-12-16T09:26:13.000Z | 2022-03-29T15:19:18.000Z | from .batchnorm import SynchronizedBatchNorm1d, SynchronizedBatchNorm2d, SynchronizedBatchNorm3d
from .batchnorm import patch_sync_batchnorm, convert_model
from .replicate import DataParallelWithCallback, patch_replication_callback
__all__ = ['SynchronizedBatchNorm1d', 'SynchronizedBatchNorm2d', 'SynchronizedBatchNorm3d', 'patch_sync_batchnorm',
'convert_model', 'DataParallelWithCallback', 'patch_replication_callback']
| 62.142857 | 115 | 0.845977 | 34 | 435 | 10.411765 | 0.441176 | 0.073446 | 0.107345 | 0.141243 | 0.169492 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015075 | 0.085057 | 435 | 6 | 116 | 72.5 | 0.874372 | 0 | 0 | 0 | 0 | 0 | 0.349425 | 0.273563 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 0.6 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
0c7dca7a255c7ab99ee40d8ea2facdbba01acb92 | 249 | py | Python | boto3_exceptions/sagemaker-runtime.py | siteshen/boto3_exceptions | d6174c2577c9d4b17a09a89cd0e4bd1fe555b26b | [
"MIT"
] | 2 | 2021-06-22T00:00:35.000Z | 2021-07-15T03:25:52.000Z | boto3_exceptions/sagemaker-runtime.py | siteshen/boto3_exceptions | d6174c2577c9d4b17a09a89cd0e4bd1fe555b26b | [
"MIT"
] | null | null | null | boto3_exceptions/sagemaker-runtime.py | siteshen/boto3_exceptions | d6174c2577c9d4b17a09a89cd0e4bd1fe555b26b | [
"MIT"
] | null | null | null | import boto3
exceptions = boto3.client('sagemaker-runtime').exceptions
InternalFailure = exceptions.InternalFailure
ModelError = exceptions.ModelError
ServiceUnavailable = exceptions.ServiceUnavailable
ValidationError = exceptions.ValidationError
| 27.666667 | 57 | 0.859438 | 20 | 249 | 10.7 | 0.5 | 0.233645 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008696 | 0.076305 | 249 | 8 | 58 | 31.125 | 0.921739 | 0 | 0 | 0 | 0 | 0 | 0.068273 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 1 | 0 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
0c875f3183e7cd0ef4bc5bfd53ebdde5344c3990 | 1,584 | py | Python | code/Lib/Label.py | TomasMadeja/ID2T | 77f51c074d1ff83c7d648ae62ecaed3e5cfde80c | [
"MIT"
] | 33 | 2018-11-21T12:50:52.000Z | 2022-01-12T05:38:12.000Z | code/Lib/Label.py | TomasMadeja/ID2T | 77f51c074d1ff83c7d648ae62ecaed3e5cfde80c | [
"MIT"
] | 108 | 2018-11-21T12:33:47.000Z | 2022-02-09T15:56:59.000Z | code/ID2TLib/Label.py | Trace-Share/ID2T | ada96c6ba06bc1e52516ada7f7447eb3ea2791c7 | [
"MIT"
] | 20 | 2018-11-22T13:03:20.000Z | 2022-01-12T00:19:28.000Z | import functools
@functools.total_ordering
class Label:
def __init__(self, attack_name, timestamp_start, timestamp_end, injected_packets, seed, parameters, attack_note=""):
"""
Creates a new attack label
:param attack_name: The name of the associated attack
:param timestamp_start: The timestamp as unix time of the first attack packet
:param timestamp_end: The timestamp as unix time of the last attack packet
:param injected_packets: The number of packets injected by the attack
:param seed: The seed used for randomization
:param parameters: The list of parameters used to run the attack
:param attack_note: A note associated to the attack (optional)
"""
self.attack_name = attack_name
self.timestamp_start = timestamp_start
self.timestamp_end = timestamp_end
self.injected_packets = injected_packets
self.seed = seed
self.attack_note = attack_note
self.parameters = parameters
def __eq__(self, other):
return self.timestamp_start == other.timestamp_start
def __lt__(self, other):
return self.timestamp_start < other.timestamp_start
def __gt__(self, other):
return self.timestamp_start > other.timestamp_start
def __str__(self):
# FIXME: maybe add self.parameters as well?
return ''.join(
['(', self.attack_name, ',', self.attack_note, ',', str(self.timestamp_start), ',', str(self.timestamp_end),
str(self.injected_packets), ',', str(self.seed), ')'])
| 39.6 | 120 | 0.675505 | 198 | 1,584 | 5.141414 | 0.262626 | 0.151277 | 0.088409 | 0.055992 | 0.215128 | 0.215128 | 0.215128 | 0.162083 | 0.162083 | 0.162083 | 0 | 0 | 0.241793 | 1,584 | 39 | 121 | 40.615385 | 0.847627 | 0.328283 | 0 | 0 | 0 | 0 | 0.006098 | 0 | 0 | 0 | 0 | 0.025641 | 0 | 1 | 0.238095 | false | 0 | 0.047619 | 0.190476 | 0.52381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
0cc613f0e75c65c92641af72dbf6ef2e506b4f31 | 705 | py | Python | src/main/python/programmingtheiot/cda/system/BaseSystemUtilTask.py | NULishengZhang/piot-python-components | 006674bc42443bb2a843bfd7dfa5b55be9843961 | [
"MIT"
] | null | null | null | src/main/python/programmingtheiot/cda/system/BaseSystemUtilTask.py | NULishengZhang/piot-python-components | 006674bc42443bb2a843bfd7dfa5b55be9843961 | [
"MIT"
] | null | null | null | src/main/python/programmingtheiot/cda/system/BaseSystemUtilTask.py | NULishengZhang/piot-python-components | 006674bc42443bb2a843bfd7dfa5b55be9843961 | [
"MIT"
] | null | null | null | #####
#
# This class is part of the Programming the Internet of Things project.
#
# It is provided as a simple shell to guide the student and assist with
# implementation for the Programming the Internet of Things exercises,
# and designed to be modified by the student as needed.
#
import programmingtheiot.common.ConfigConst as ConfigConst
class BaseSystemUtilTask():
"""
Shell implementation representation of class for student implementation.
"""
def __init__(self, name = ConfigConst.NOT_SET, typeID = ConfigConst.DEFAULT_SENSOR_TYPE):
pass
def getName(self) -> str:
return self.name
def getTypeID(self) -> int:
return self.typeID
def getTelemetryValue() -> float:
pass
| 23.5 | 90 | 0.747518 | 92 | 705 | 5.652174 | 0.586957 | 0.053846 | 0.065385 | 0.096154 | 0.126923 | 0.126923 | 0 | 0 | 0 | 0 | 0 | 0 | 0.177305 | 705 | 30 | 91 | 23.5 | 0.896552 | 0.479433 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0.2 | 0.1 | 0.2 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
0cda9b1184d4e886823b6cabde576ba72470d707 | 60 | py | Python | package1/package2/module3.py | vainolo/learning-python | 290d52346a6372e795a7e290280a6ca74ecadc48 | [
"MIT"
] | null | null | null | package1/package2/module3.py | vainolo/learning-python | 290d52346a6372e795a7e290280a6ca74ecadc48 | [
"MIT"
] | null | null | null | package1/package2/module3.py | vainolo/learning-python | 290d52346a6372e795a7e290280a6ca74ecadc48 | [
"MIT"
] | null | null | null | def mod3_f1():
print "In package1.package2, module3, f1" | 30 | 45 | 0.7 | 9 | 60 | 4.555556 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12 | 0.166667 | 60 | 2 | 45 | 30 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0.540984 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
0ce2e05d7d824dae1059499823c4eaedaf7e76db | 93 | py | Python | magiclink/apps.py | lmccartney/django-magiclink | 62b37ee8ed07fd41b259501fc0aba8deaec4bc5f | [
"MIT"
] | 34 | 2020-08-16T05:47:13.000Z | 2022-03-01T18:19:06.000Z | magiclink/apps.py | lmccartney/django-magiclink | 62b37ee8ed07fd41b259501fc0aba8deaec4bc5f | [
"MIT"
] | 11 | 2021-01-04T23:51:50.000Z | 2021-09-19T14:21:44.000Z | magiclink/apps.py | lmccartney/django-magiclink | 62b37ee8ed07fd41b259501fc0aba8deaec4bc5f | [
"MIT"
] | 5 | 2021-03-19T04:01:23.000Z | 2022-03-01T14:20:21.000Z | from django.apps import AppConfig
class MagiclinkConfig(AppConfig):
name = 'magiclink'
| 15.5 | 33 | 0.763441 | 10 | 93 | 7.1 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16129 | 93 | 5 | 34 | 18.6 | 0.910256 | 0 | 0 | 0 | 0 | 0 | 0.096774 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
0cea50fa84e152b3f2237ecf33089fadc15fdf50 | 252 | py | Python | students/K33422/laboratory_works/Moruga_Elina/lr_2/3/django_project_Moruga/project_first_app/admin.py | Elyavor/ITMO_ICT_WebDevelopment_2021-2022 | 63fad07bcdc0a9a6b85d46eacf97182162262181 | [
"MIT"
] | null | null | null | students/K33422/laboratory_works/Moruga_Elina/lr_2/3/django_project_Moruga/project_first_app/admin.py | Elyavor/ITMO_ICT_WebDevelopment_2021-2022 | 63fad07bcdc0a9a6b85d46eacf97182162262181 | [
"MIT"
] | null | null | null | students/K33422/laboratory_works/Moruga_Elina/lr_2/3/django_project_Moruga/project_first_app/admin.py | Elyavor/ITMO_ICT_WebDevelopment_2021-2022 | 63fad07bcdc0a9a6b85d46eacf97182162262181 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import CarOwner, License, Car, Ownership
from django.contrib.auth.admin import UserAdmin
admin.site.register(CarOwner)
admin.site.register(License)
admin.site.register(Car)
admin.site.register(Ownership)
| 25.2 | 53 | 0.821429 | 35 | 252 | 5.914286 | 0.4 | 0.173913 | 0.328502 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 252 | 9 | 54 | 28 | 0.896104 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 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 | 4 |
0b2da7e20837af6fa7375b7540f7deeefb91c6bb | 129 | py | Python | katas/kyu_7/nums_powers_of_digits_equal_num.py | the-zebulan/CodeWars | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | [
"MIT"
] | 40 | 2016-03-09T12:26:20.000Z | 2022-03-23T08:44:51.000Z | katas/kyu_7/nums_powers_of_digits_equal_num.py | akalynych/CodeWars | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | [
"MIT"
] | null | null | null | katas/kyu_7/nums_powers_of_digits_equal_num.py | akalynych/CodeWars | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | [
"MIT"
] | 36 | 2016-11-07T19:59:58.000Z | 2022-03-31T11:18:27.000Z | def eq_sum_powdig(hMax, exp):
return [a for a in xrange(2, hMax + 1)
if a == sum(int(b) ** exp for b in str(a))]
| 32.25 | 55 | 0.550388 | 26 | 129 | 2.653846 | 0.653846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021978 | 0.294574 | 129 | 3 | 56 | 43 | 0.736264 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
0b413a230b255a8db407f6b3d7ce893626b78b6e | 102 | py | Python | meetenjoy/main.py | vladlytvynenko/mj | 0186440b52d7d9655a4d75d76faf67638de880a8 | [
"MIT"
] | null | null | null | meetenjoy/main.py | vladlytvynenko/mj | 0186440b52d7d9655a4d75d76faf67638de880a8 | [
"MIT"
] | null | null | null | meetenjoy/main.py | vladlytvynenko/mj | 0186440b52d7d9655a4d75d76faf67638de880a8 | [
"MIT"
] | null | null | null | from .executor import Executor
if __name__ == '__main__':
Executor().execute_from_command_line()
| 20.4 | 42 | 0.754902 | 12 | 102 | 5.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137255 | 102 | 4 | 43 | 25.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0.078431 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
0b4534fa19c2416782b92c20b996ac75fc801f92 | 1,019 | py | Python | __init__.py | craymichael/ArgValidation | 05369edd1ad4c345f655a0e153b60ec56366d76a | [
"Apache-2.0"
] | null | null | null | __init__.py | craymichael/ArgValidation | 05369edd1ad4c345f655a0e153b60ec56366d76a | [
"Apache-2.0"
] | null | null | null | __init__.py | craymichael/ArgValidation | 05369edd1ad4c345f655a0e153b60ec56366d76a | [
"Apache-2.0"
] | null | null | null | # ======================================================================================================================
# Copyright 2016 Zachariah Carmichael
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at:
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
# an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
# specific language governing permissions and limitations under the License.
# ======================================================================================================================
from ._req import req # Decorator for validation requirements
from ._req import ARGS, KWARGS # Special cases
from ._arg import Arg, _Arg # `Arg` validation class and abstract base
| 63.6875 | 121 | 0.578018 | 116 | 1,019 | 5.043103 | 0.663793 | 0.102564 | 0.044444 | 0.054701 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009174 | 0.144259 | 1,019 | 15 | 122 | 67.933333 | 0.661697 | 0.872424 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
0b63170fe3d96a1dafcbf4a1fd10fe4dd0539902 | 123 | py | Python | typescript_python_boilerplate/api/__init__.py | glucoseinc/typescript-python-boilerplate | 59840742d1ae43a61a8732d5545d9f677cd23a89 | [
"MIT"
] | null | null | null | typescript_python_boilerplate/api/__init__.py | glucoseinc/typescript-python-boilerplate | 59840742d1ae43a61a8732d5545d9f677cd23a89 | [
"MIT"
] | 6 | 2019-01-03T04:30:21.000Z | 2019-01-03T12:09:18.000Z | typescript_python_boilerplate/api/__init__.py | glucoseinc/typescript-python-boilerplate | 59840742d1ae43a61a8732d5545d9f677cd23a89 | [
"MIT"
] | null | null | null | from sanic import Blueprint
bp = Blueprint('api')
# load views
from . import views, websocket # noqa
__all__ = ('bp',)
| 13.666667 | 38 | 0.682927 | 16 | 123 | 5 | 0.6875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.195122 | 123 | 8 | 39 | 15.375 | 0.808081 | 0.121951 | 0 | 0 | 0 | 0 | 0.047619 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 4 |
0b6e15b2ac563ad720c0e8530425391324d8c6f2 | 36 | py | Python | FaceAPIWebRole/FaceAPIWebRole/__init__.py | qwergram/CortanaVisionCSA | 33e2e0266dec7d7eb65d4d3f3d5470f8dc601f48 | [
"MIT"
] | null | null | null | FaceAPIWebRole/FaceAPIWebRole/__init__.py | qwergram/CortanaVisionCSA | 33e2e0266dec7d7eb65d4d3f3d5470f8dc601f48 | [
"MIT"
] | null | null | null | FaceAPIWebRole/FaceAPIWebRole/__init__.py | qwergram/CortanaVisionCSA | 33e2e0266dec7d7eb65d4d3f3d5470f8dc601f48 | [
"MIT"
] | null | null | null | """
Package for FaceAPIWebRole.
"""
| 9 | 27 | 0.666667 | 3 | 36 | 8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138889 | 36 | 3 | 28 | 12 | 0.774194 | 0.75 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
0b89926924492edbca1d126d883d220f12ef3bba | 229 | py | Python | tests/test_all.py | nanug/Artificial-Bee-Colony | a3ed3ed8f3612ba19e9411f9d2048a64035970ed | [
"MIT"
] | 6 | 2018-12-26T21:45:36.000Z | 2021-04-11T10:11:06.000Z | tests/test_all.py | nanug/Artificial-Bee-Colony | a3ed3ed8f3612ba19e9411f9d2048a64035970ed | [
"MIT"
] | 28 | 2018-08-28T15:39:15.000Z | 2020-10-05T20:09:42.000Z | tests/test_all.py | nanug/Artificial-Bee-Colony | a3ed3ed8f3612ba19e9411f9d2048a64035970ed | [
"MIT"
] | 11 | 2018-09-04T13:45:55.000Z | 2021-04-09T02:06:29.000Z | import unittest
from unit_tests.bee import TestBee
from unit_tests.colony import TestColony
from unit_tests.parameter import TestParameter
from unit_tests.utils import TestUtils
if __name__ == '__main__':
unittest.main()
| 19.083333 | 46 | 0.812227 | 31 | 229 | 5.612903 | 0.516129 | 0.183908 | 0.298851 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135371 | 229 | 11 | 47 | 20.818182 | 0.878788 | 0 | 0 | 0 | 0 | 0 | 0.034935 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.714286 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
0b9002331205f60fd2d18abfc51b554cb6e4085d | 229 | py | Python | Gravitator/ui/__init__.py | Monkvy/Gravitational-Attraction | 1b4c7d5e90f1c353670263e03ef4e9bf3e941e33 | [
"MIT"
] | null | null | null | Gravitator/ui/__init__.py | Monkvy/Gravitational-Attraction | 1b4c7d5e90f1c353670263e03ef4e9bf3e941e33 | [
"MIT"
] | null | null | null | Gravitator/ui/__init__.py | Monkvy/Gravitational-Attraction | 1b4c7d5e90f1c353670263e03ef4e9bf3e941e33 | [
"MIT"
] | null | null | null | from .surface import Surface
from .widget import Widget
from .font import Font
from .text import Text
from .input_field import InputField
from .checkbox import Checkbox
from .button import Button
import pygame
pygame.font.init()
| 22.9 | 35 | 0.816594 | 34 | 229 | 5.470588 | 0.382353 | 0.129032 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135371 | 229 | 9 | 36 | 25.444444 | 0.939394 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.888889 | 0 | 0.888889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
0bb0a1dbc1e6a47bfafade8f323f8d9aca458b1f | 203 | py | Python | Covid-19/Covid-19-Datasets/AutoGit/auto.py | T-Skipper/EDA | b190d71de0098eac3c4263efbd1099cc36eed446 | [
"MIT"
] | null | null | null | Covid-19/Covid-19-Datasets/AutoGit/auto.py | T-Skipper/EDA | b190d71de0098eac3c4263efbd1099cc36eed446 | [
"MIT"
] | null | null | null | Covid-19/Covid-19-Datasets/AutoGit/auto.py | T-Skipper/EDA | b190d71de0098eac3c4263efbd1099cc36eed446 | [
"MIT"
] | null | null | null | def git():
from os import system
system("git pull")
system("git add *")
system("git commit -m 'Automated every 6th hour dataset update'")
system("git push")
system("git status")
| 22.555556 | 69 | 0.625616 | 28 | 203 | 4.535714 | 0.642857 | 0.354331 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006494 | 0.241379 | 203 | 8 | 70 | 25.375 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0.44335 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | true | 0 | 0.142857 | 0 | 0.285714 | 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 | 0 | 0 | 0 | 0 | 0 | 4 |
f0259f1c2cac4c222adcd893e8df6671175c253b | 241 | py | Python | oadr2/__init__.py | homersoft/oadr2-ven-python | a24cbf890331b56f92835eb1c1a4de1db181fb79 | [
"Apache-2.0"
] | 1 | 2019-10-28T13:09:59.000Z | 2019-10-28T13:09:59.000Z | oadr2/__init__.py | homersoft/oadr2-ven-python | a24cbf890331b56f92835eb1c1a4de1db181fb79 | [
"Apache-2.0"
] | 1 | 2019-11-18T13:28:44.000Z | 2019-11-18T13:41:30.000Z | oadr2/__init__.py | homersoft/oadr2-ven-python | a24cbf890331b56f92835eb1c1a4de1db181fb79 | [
"Apache-2.0"
] | null | null | null | import logging
class IdFilter():
def __init__(self, client_id=None):
self.client_id = client_id
def filter(self, record):
record.client_id = self.client_id
return True
logger = logging.getLogger("oadr2")
| 17.214286 | 41 | 0.6639 | 31 | 241 | 4.870968 | 0.548387 | 0.264901 | 0.238411 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005464 | 0.240664 | 241 | 13 | 42 | 18.538462 | 0.819672 | 0 | 0 | 0 | 0 | 0 | 0.020747 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
f038c78839ddd777d441ce48fef705a0af749d1d | 60 | py | Python | gym_gridworld2D/utils/__init__.py | LeaMarion/gym-gridworld | 12602816592180169c0001c2679b038026f13767 | [
"MIT"
] | null | null | null | gym_gridworld2D/utils/__init__.py | LeaMarion/gym-gridworld | 12602816592180169c0001c2679b038026f13767 | [
"MIT"
] | null | null | null | gym_gridworld2D/utils/__init__.py | LeaMarion/gym-gridworld | 12602816592180169c0001c2679b038026f13767 | [
"MIT"
] | null | null | null | from gym_subgridworld.utils.a_star_path_finding import AStar | 60 | 60 | 0.916667 | 10 | 60 | 5.1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05 | 60 | 1 | 60 | 60 | 0.894737 | 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 | 0 | 0 | 0 | 4 |
f03b77466d6b9dbbf3224d8713f17757ad754040 | 260 | py | Python | python_modules/libraries/dagster-gcp/dagster_gcp/gcs/__init__.py | richardwhitefoot/dagster | 89b27c7e0d9615356dedf45397a61ec1a7bf05aa | [
"Apache-2.0"
] | null | null | null | python_modules/libraries/dagster-gcp/dagster_gcp/gcs/__init__.py | richardwhitefoot/dagster | 89b27c7e0d9615356dedf45397a61ec1a7bf05aa | [
"Apache-2.0"
] | null | null | null | python_modules/libraries/dagster-gcp/dagster_gcp/gcs/__init__.py | richardwhitefoot/dagster | 89b27c7e0d9615356dedf45397a61ec1a7bf05aa | [
"Apache-2.0"
] | null | null | null | from .compute_log_manager import GCSComputeLogManager
from .io_manager import PickledObjectGCSIOManager, gcs_pickle_io_manager
from .resources import gcs_resource
from .system_storage import gcs_intermediate_storage, gcs_plus_default_intermediate_storage_defs
| 52 | 96 | 0.907692 | 33 | 260 | 6.69697 | 0.545455 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069231 | 260 | 4 | 97 | 65 | 0.913223 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 4 |
f05971aaaa08fa3b16cb57b8d62749587ef006d7 | 15,092 | py | Python | ckanext-infographic/ckanext/infographic/tests/action/test_delete.py | smallmedia/iod-ckan | dfd85b41286fe86924ec16b0a88efc7292848ceb | [
"Apache-2.0"
] | 4 | 2017-06-12T15:18:30.000Z | 2019-10-11T15:12:43.000Z | ckanext-infographic/ckanext/infographic/tests/action/test_delete.py | smallmedia/iod-ckan | dfd85b41286fe86924ec16b0a88efc7292848ceb | [
"Apache-2.0"
] | 64 | 2017-05-14T22:15:53.000Z | 2020-03-08T15:26:49.000Z | ckanext-infographic/ckanext/infographic/tests/action/test_delete.py | smallmedia/iod-ckan | dfd85b41286fe86924ec16b0a88efc7292848ceb | [
"Apache-2.0"
] | 2 | 2018-09-08T08:02:25.000Z | 2020-04-24T13:02:06.000Z | from nose import tools as nosetools
import ckan.model as model
import ckan.plugins.toolkit as toolkit
try:
import ckan.tests.factories as factories
except ImportError: # for ckan <= 2.3
import ckan.new_tests.factories as factories
try:
import ckan.tests.helpers as helpers
except ImportError: # for ckan <= 2.3
import ckan.new_tests.helpers as helpers
from ckanext.infographic.model import InfographicPackageAssociation, InfographicAdmin
from ckanext.infographic.tests import InfographicFunctionalTestBase
from ckan.model.package import Package
class TestDeleteInfographic(InfographicFunctionalTestBase):
def test_infographic_delete_no_args(self):
'''
Calling infographic delete with no args raises a ValidationError.
'''
sysadmin = factories.Sysadmin()
context = {'user': sysadmin['name']}
nosetools.assert_raises(toolkit.ValidationError, helpers.call_action,
'ckanext_infographic_delete', context=context)
def test_infographic_delete_incorrect_args(self):
'''
Calling infographic delete with incorrect args raises ObjectNotFound.
'''
sysadmin = factories.Sysadmin()
context = {'user': sysadmin['name']}
factories.Dataset(type='infographic')
nosetools.assert_raises(toolkit.ObjectNotFound, helpers.call_action,
'ckanext_infographic_delete', context=context,
id='blah-blah')
def test_infographic_delete_by_id(self):
'''
Calling infographic delete with infographic id.
'''
sysadmin = factories.Sysadmin()
context = {'user': sysadmin['name']}
infographic = factories.Dataset(type='infographic')
# One infographic object created
nosetools.assert_equal(model.Session.query(Package)
.filter(Package.type == 'infographic').count(), 1)
helpers.call_action('ckanext_infographic_delete',
context=context, id=infographic['id'])
nosetools.assert_equal(model.Session.query(Package)
.filter(Package.type == 'infographic').count(), 0)
def test_infographic_delete_by_name(self):
'''
Calling infographic delete with infographic name.
'''
sysadmin = factories.Sysadmin()
context = {'user': sysadmin['name']}
infographic = factories.Dataset(type='infographic')
# One infographic object created
nosetools.assert_equal(model.Session.query(Package)
.filter(Package.type == 'infographic').count(), 1)
helpers.call_action('ckanext_infographic_delete',
context=context, id=infographic['name'])
nosetools.assert_equal(model.Session.query(Package)
.filter(Package.type == 'infographic').count(), 0)
def test_infographic_delete_removes_associations(self):
'''
Deleting a infographic also deletes associated InfographicPackageAssociation
objects.
'''
sysadmin = factories.Sysadmin()
context = {'user': sysadmin['name']}
infographic = factories.Dataset(type='infographic', name='my-infographic')
dataset_one = factories.Dataset(name='dataset-one')
dataset_two = factories.Dataset(name='dataset-two')
helpers.call_action('ckanext_infographic_package_association_create',
context=context, package_id=dataset_one['id'],
infographic_id=infographic['id'])
helpers.call_action('ckanext_infographic_package_association_create',
context=context, package_id=dataset_two['id'],
infographic_id=infographic['id'])
nosetools.assert_equal(model.Session.query(InfographicPackageAssociation).count(), 2)
helpers.call_action('ckanext_infographic_delete',
context=context, id=infographic['id'])
nosetools.assert_equal(model.Session.query(InfographicPackageAssociation).count(), 0)
class TestDeletePackage(InfographicFunctionalTestBase):
def test_package_delete_retains_associations(self):
'''
Deleting a package (setting its status to 'delete') retains associated
InfographicPackageAssociation objects.
'''
sysadmin = factories.Sysadmin()
context = {'user': sysadmin['name']}
infographic = factories.Dataset(type='infographic', name='my-infographic')
dataset_one = factories.Dataset(name='dataset-one')
dataset_two = factories.Dataset(name='dataset-two')
helpers.call_action('ckanext_infographic_package_association_create',
context=context, package_id=dataset_one['id'],
infographic_id=infographic['id'])
helpers.call_action('ckanext_infographic_package_association_create',
context=context, package_id=dataset_two['id'],
infographic_id=infographic['id'])
nosetools.assert_equal(model.Session.query(InfographicPackageAssociation).count(), 2)
# delete the first package, should also delete the
# InfographicPackageAssociation associated with it.
helpers.call_action('package_delete',
context=context, id=dataset_one['id'])
nosetools.assert_equal(model.Session.query(InfographicPackageAssociation).count(), 2)
def test_package_purge_deletes_associations(self):
'''
Purging a package (actually deleting it from the database) deletes
associated InfographicPackageAssociation objects.
'''
sysadmin = factories.Sysadmin()
context = {'user': sysadmin['name']}
infographic = factories.Dataset(type='infographic', name='my-infographic')
dataset_one = factories.Dataset(name='dataset-one')
dataset_two = factories.Dataset(name='dataset-two')
helpers.call_action('ckanext_infographic_package_association_create',
context=context, package_id=dataset_one['id'],
infographic_id=infographic['id'])
helpers.call_action('ckanext_infographic_package_association_create',
context=context, package_id=dataset_two['id'],
infographic_id=infographic['id'])
nosetools.assert_equal(model.Session.query(InfographicPackageAssociation).count(), 2)
# purge the first package, should also delete the
# InfographicPackageAssociation associated with it.
pkg = model.Session.query(model.Package).get(dataset_one['id'])
pkg.purge()
model.repo.commit_and_remove()
nosetools.assert_equal(model.Session.query(InfographicPackageAssociation).count(), 1)
class TestDeleteInfographicPackageAssociation(InfographicFunctionalTestBase):
def test_association_delete_no_args(self):
'''
Calling sc/pkg association delete with no args raises ValidationError.
'''
sysadmin = factories.User(sysadmin=True)
context = {'user': sysadmin['name']}
nosetools.assert_raises(toolkit.ValidationError, helpers.call_action,
'ckanext_infographic_package_association_delete',
context=context)
def test_association_delete_missing_arg(self):
'''
Calling sc/pkg association delete with a missing arg raises
ValidationError.
'''
sysadmin = factories.User(sysadmin=True)
package_id = factories.Dataset()['id']
context = {'user': sysadmin['name']}
nosetools.assert_raises(toolkit.ValidationError, helpers.call_action,
'ckanext_infographic_package_association_delete',
context=context, package_id=package_id)
def test_association_delete_by_id(self):
'''
Calling sc/pkg association delete with correct args (package ids)
correctly deletes an association.
'''
sysadmin = factories.User(sysadmin=True)
package_id = factories.Dataset()['id']
infographic_id = factories.Dataset(type='infographic')['id']
context = {'user': sysadmin['name']}
helpers.call_action('ckanext_infographic_package_association_create',
context=context, package_id=package_id,
infographic_id=infographic_id)
# One association object created
nosetools.assert_equal(model.Session.query(InfographicPackageAssociation).count(), 1)
helpers.call_action('ckanext_infographic_package_association_delete',
context=context, package_id=package_id,
infographic_id=infographic_id)
def test_association_delete_attempt_with_non_existent_association(self):
'''
Attempting to delete a non-existent association (package ids exist,
but aren't associated with each other), will cause a NotFound error.
'''
sysadmin = factories.User(sysadmin=True)
package_id = factories.Dataset()['id']
infographic_id = factories.Dataset(type='infographic')['id']
# No existing associations
nosetools.assert_equal(model.Session.query(InfographicPackageAssociation).count(), 0)
context = {'user': sysadmin['name']}
nosetools.assert_raises(toolkit.ObjectNotFound, helpers.call_action,
'ckanext_infographic_package_association_delete',
context=context, package_id=package_id,
infographic_id=infographic_id)
def test_association_delete_attempt_with_bad_package_ids(self):
'''
Attempting to delete an association by passing non-existent package
ids will cause a ValidationError.
'''
sysadmin = factories.User(sysadmin=True)
# No existing associations
nosetools.assert_equal(model.Session.query(InfographicPackageAssociation).count(), 0)
context = {'user': sysadmin['name']}
nosetools.assert_raises(toolkit.ValidationError, helpers.call_action,
'ckanext_infographic_package_association_delete',
context=context, package_id="my-bad-package-id",
infographic_id="my-bad-infographic-id")
def test_association_delete_retains_packages(self):
'''
Deleting a sc/pkg association doesn't delete the associated packages.
'''
sysadmin = factories.User(sysadmin=True)
package_id = factories.Dataset()['id']
infographic_id = factories.Dataset(type='infographic')['id']
context = {'user': sysadmin['name']}
helpers.call_action('ckanext_infographic_package_association_create',
context=context, package_id=package_id,
infographic_id=infographic_id)
helpers.call_action('ckanext_infographic_package_association_delete',
context=context, package_id=package_id,
infographic_id=infographic_id)
# package still exist
nosetools.assert_equal(model.Session.query(Package)
.filter(Package.type == 'dataset').count(), 1)
# infographic still exist
nosetools.assert_equal(model.Session.query(Package)
.filter(Package.type == 'infographic').count(), 1)
class TestRemoveInfographicAdmin(InfographicFunctionalTestBase):
def test_infographic_admin_remove_deletes_infographic_admin_user(self):
'''
Calling ckanext_infographic_admin_remove deletes InfographicAdmin object.
'''
user = factories.User()
helpers.call_action('ckanext_infographic_admin_add', context={},
username=user['name'])
# There's a InfographicAdmin obj
nosetools.assert_equal(model.Session.query(InfographicAdmin).count(), 1)
helpers.call_action('ckanext_infographic_admin_remove', context={},
username=user['name'])
# There's no InfographicAdmin obj
nosetools.assert_equal(model.Session.query(InfographicAdmin).count(), 0)
nosetools.assert_equal(InfographicAdmin.get_infographic_admin_ids(), [])
def test_infographic_admin_delete_user_removes_infographic_admin_object(self):
'''
Deleting a user also deletes the corresponding InfographicAdmin object.
'''
user = factories.User()
helpers.call_action('ckanext_infographic_admin_add', context={},
username=user['name'])
# There's a InfographicAdmin object
nosetools.assert_equal(model.Session.query(InfographicAdmin).count(), 1)
nosetools.assert_true(user['id'] in InfographicAdmin.get_infographic_admin_ids())
# purge the user, should also delete the InfographicAdmin object
# associated with it.
user_obj = model.Session.query(model.User).get(user['id'])
user_obj.purge()
model.repo.commit_and_remove()
# The InfographicAdmin has also been removed
nosetools.assert_equal(model.Session.query(InfographicAdmin).count(), 0)
nosetools.assert_equal(InfographicAdmin.get_infographic_admin_ids(), [])
def test_infographic_admin_remove_retains_user(self):
'''
Deleting a InfographicAdmin object doesn't delete the corresponding user.
'''
user = factories.User()
helpers.call_action('ckanext_infographic_admin_add', context={},
username=user['name'])
# We have a user
user_obj = model.Session.query(model.User).get(user['id'])
nosetools.assert_true(user_obj is not None)
helpers.call_action('ckanext_infographic_admin_remove', context={},
username=user['name'])
# We still have a user
user_obj = model.Session.query(model.User).get(user['id'])
nosetools.assert_true(user_obj is not None)
def test_infographic_admin_remove_with_bad_username(self):
'''
Calling infographic admin remove with a non-existent user raises
ValidationError.
'''
nosetools.assert_raises(toolkit.ValidationError, helpers.call_action,
'ckanext_infographic_admin_remove', context={},
username='no-one-here')
def test_infographic_admin_remove_with_no_args(self):
'''
Calling infographic admin remove with no arg raises ValidationError.
'''
nosetools.assert_raises(toolkit.ValidationError, helpers.call_action,
'ckanext_infographic_admin_remove', context={})
| 43.12 | 93 | 0.644911 | 1,468 | 15,092 | 6.413488 | 0.096049 | 0.045566 | 0.04461 | 0.066277 | 0.786936 | 0.766224 | 0.718747 | 0.691237 | 0.687732 | 0.662772 | 0 | 0.002065 | 0.261927 | 15,092 | 349 | 94 | 43.243553 | 0.843164 | 0.14246 | 0 | 0.737113 | 0 | 0 | 0.121514 | 0.08117 | 0 | 0 | 0 | 0 | 0.164948 | 1 | 0.092784 | false | 0 | 0.061856 | 0 | 0.175258 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
f061d47bcd5e1ee73d93ac2f808ef06f315c031c | 109 | py | Python | tests/app_bar/models.py | romasku/django-migrations-git-conflicts | 4042e2fc7cfc5cb64cbc6a8949af72d07d43ff5f | [
"MIT"
] | 1 | 2021-06-10T11:02:11.000Z | 2021-06-10T11:02:11.000Z | tests/app_bar/models.py | romasku/django-migrations-git-conflicts | 4042e2fc7cfc5cb64cbc6a8949af72d07d43ff5f | [
"MIT"
] | 1 | 2021-04-14T02:48:59.000Z | 2021-04-14T02:48:59.000Z | tests/app_bar/models.py | crux-lab/django-migrations-git-conflicts | 4042e2fc7cfc5cb64cbc6a8949af72d07d43ff5f | [
"MIT"
] | null | null | null | from django.db import models
class BarModel(models.Model):
bar_field = models.TextField(default='bar')
| 18.166667 | 47 | 0.752294 | 15 | 109 | 5.4 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137615 | 109 | 5 | 48 | 21.8 | 0.861702 | 0 | 0 | 0 | 0 | 0 | 0.027523 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
f07182d31c59a240fd589cdfb7229b97287398ce | 152 | py | Python | dashboard/api/__init__.py | NickRuiz/mt-serverland | 90cddde90ee9cccc231d7767ac139282433fb1a2 | [
"BSD-3-Clause"
] | 1 | 2015-06-07T14:06:47.000Z | 2015-06-07T14:06:47.000Z | dashboard/api/__init__.py | NickRuiz/mt-serverland | 90cddde90ee9cccc231d7767ac139282433fb1a2 | [
"BSD-3-Clause"
] | null | null | null | dashboard/api/__init__.py | NickRuiz/mt-serverland | 90cddde90ee9cccc231d7767ac139282433fb1a2 | [
"BSD-3-Clause"
] | null | null | null | '''
Application for Web API access to serverland dashboard.
Project: MT Server Land prototype code
Author: Will Roberts <William.Roberts@dfki.de>
'''
| 21.714286 | 55 | 0.763158 | 21 | 152 | 5.52381 | 0.952381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144737 | 152 | 6 | 56 | 25.333333 | 0.892308 | 0.934211 | 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 | 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 | 4 |
b2c317dbc944f18fbeb2f9089882e10cbba1994d | 211 | py | Python | pyogas/util/__init__.py | morganjwilliams/gas-templates | e942a99073dec22de17f62ca725d1c43bbae70ca | [
"MIT"
] | 1 | 2021-03-24T21:33:59.000Z | 2021-03-24T21:33:59.000Z | pyogas/util/__init__.py | morganjwilliams/gas-templates | e942a99073dec22de17f62ca725d1c43bbae70ca | [
"MIT"
] | null | null | null | pyogas/util/__init__.py | morganjwilliams/gas-templates | e942a99073dec22de17f62ca725d1c43bbae70ca | [
"MIT"
] | null | null | null | """
Minor utilities for working with Iogas templates.
"""
import logging
logging.getLogger(__name__).addHandler(logging.NullHandler())
logger = logging.getLogger(__name__)
from . import xml
__all__ = ["xml"]
| 17.583333 | 61 | 0.758294 | 24 | 211 | 6.166667 | 0.708333 | 0.216216 | 0.27027 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118483 | 211 | 11 | 62 | 19.181818 | 0.795699 | 0.232227 | 0 | 0 | 0 | 0 | 0.019481 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
b2cda1916dd09f9ea7cac0f9b99e1c7f2be6311f | 265 | py | Python | tests/test_runtests.py | KjellSchubert/bru | dd70b721d07fbd27c57c845cc3a29cd8f2dfc587 | [
"MIT"
] | 3 | 2015-01-06T15:22:16.000Z | 2015-11-27T18:13:04.000Z | tests/test_runtests.py | KjellSchubert/bru | dd70b721d07fbd27c57c845cc3a29cd8f2dfc587 | [
"MIT"
] | 7 | 2015-02-10T15:13:38.000Z | 2021-05-30T07:51:13.000Z | tests/test_runtests.py | KjellSchubert/bru | dd70b721d07fbd27c57c845cc3a29cd8f2dfc587 | [
"MIT"
] | 3 | 2015-01-29T17:19:53.000Z | 2016-01-06T12:50:06.000Z | import unittest
import brulib.install
import brulib.runtests
import brulib.library
import os
import pdb
import shutil
class RunTestsTestCase(unittest.TestCase):
# TODO: add tests (test_make alrdy runs an end-to-end test including
# bru make+test)
pass | 20.384615 | 72 | 0.777358 | 38 | 265 | 5.394737 | 0.657895 | 0.17561 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166038 | 265 | 13 | 73 | 20.384615 | 0.927602 | 0.30566 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 0 | 1 | 0 | true | 0.111111 | 0.777778 | 0 | 0.888889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 4 |
b2d7214a72141ea0d85ce3fa31178f7a11ab0447 | 83 | py | Python | yapftests/huawei/huaweistyle/resources/paragraph_1/1_3_a_tabs_replacement_incorrect_.py | akuleshov7/huawei-yapf | 72c188257e2bafa4da9e553ba0ee9b86831c51b8 | [
"Apache-2.0"
] | 12 | 2020-04-24T18:12:08.000Z | 2021-06-09T16:53:10.000Z | yapftests/huawei/huaweistyle/resources/paragraph_1/1_3_a_tabs_replacement_incorrect_.py | akuleshov7/h-yapf | 72c188257e2bafa4da9e553ba0ee9b86831c51b8 | [
"Apache-2.0"
] | 1 | 2020-09-09T19:55:35.000Z | 2020-09-14T00:07:29.000Z | yapftests/huawei/huaweistyle/resources/paragraph_1/1_3_a_tabs_replacement_incorrect_.py | akuleshov7/h-yapf | 72c188257e2bafa4da9e553ba0ee9b86831c51b8 | [
"Apache-2.0"
] | null | null | null | def load_data(dirname, one_hot=False):
X_train = [] # tabs
Y_train = [] # tabs
| 20.75 | 38 | 0.638554 | 13 | 83 | 3.769231 | 0.846154 | 0.367347 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.204819 | 83 | 3 | 39 | 27.666667 | 0.742424 | 0.108434 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.333333 | 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 | 0 | 0 | 0 | 4 |
6511a08e06c858b22a9e4b7bc90afcc01372b09f | 156 | py | Python | backend/neuroflow/routes/__init__.py | isamu-isozaki/neuroflow-challenge | ca29b8e48be4853317ab706acd4731ea0a8bab10 | [
"MIT"
] | null | null | null | backend/neuroflow/routes/__init__.py | isamu-isozaki/neuroflow-challenge | ca29b8e48be4853317ab706acd4731ea0a8bab10 | [
"MIT"
] | null | null | null | backend/neuroflow/routes/__init__.py | isamu-isozaki/neuroflow-challenge | ca29b8e48be4853317ab706acd4731ea0a8bab10 | [
"MIT"
] | null | null | null | """
Author: Isamu Isozaki (isamu.website@gmail.com)
Description: description
Created: 2021-12-01T16:28:49.390Z
Modified: !date!
Modified By: modifier
"""
| 17.333333 | 47 | 0.74359 | 21 | 156 | 5.52381 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122302 | 0.108974 | 156 | 8 | 48 | 19.5 | 0.71223 | 0.935897 | 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 | 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 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.