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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c3ec152a8ce2203679a3b9359c253fda7d2769c6 | 345 | py | Python | Python32/sounds.py | andersonsilvade/python_C | ffc00184883089f1c2d9b8a6c32503b2c8b8d035 | [
"MIT"
] | null | null | null | Python32/sounds.py | andersonsilvade/python_C | ffc00184883089f1c2d9b8a6c32503b2c8b8d035 | [
"MIT"
] | null | null | null | Python32/sounds.py | andersonsilvade/python_C | ffc00184883089f1c2d9b8a6c32503b2c8b8d035 | [
"MIT"
] | 1 | 2020-11-04T08:36:28.000Z | 2020-11-04T08:36:28.000Z | import pygame.mixer
sounds = pygame.mixer
sounds.init()
def espera_tocar(canal):
while canal.get_busy():
pass
s= sounds.Sound("heartbeat.wav")
espera_tocar(s.play())
s2 = sounds.Sound("buzz.wav")
espera_tocar(s2.play())
s3 = sounds.Sound("ohno.wav")
espera_tocar(s3.play())
s4 = sounds.Sound("carhorn.wav")... | 20.294118 | 32 | 0.707246 | 53 | 345 | 4.490566 | 0.45283 | 0.231092 | 0.235294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019672 | 0.115942 | 345 | 16 | 33 | 21.5625 | 0.760656 | 0 | 0 | 0 | 0 | 0 | 0.115942 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0.071429 | 0.071429 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
613698a4eb41f988d1c39cd08d43c1ec599660e0 | 182 | py | Python | game_settings.py | Mibblez/a-star-with-python | 04cbf14546cda1dd021ce7b9684e2cf83df6e207 | [
"MIT"
] | null | null | null | game_settings.py | Mibblez/a-star-with-python | 04cbf14546cda1dd021ce7b9684e2cf83df6e207 | [
"MIT"
] | null | null | null | game_settings.py | Mibblez/a-star-with-python | 04cbf14546cda1dd021ce7b9684e2cf83df6e207 | [
"MIT"
] | null | null | null | # Colors
BLACK = (0, 0, 0)
WHITE = (255, 255, 255)
GREY = (140, 140, 140)
CYAN = (0, 255, 255)
DARK_CYAN = (0, 150, 150)
ORANGE = (255, 165, 0)
RED = (255, 0, 0)
GREEN = (0, 255, 0)
| 18.2 | 25 | 0.543956 | 34 | 182 | 2.882353 | 0.411765 | 0.061224 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.371429 | 0.230769 | 182 | 9 | 26 | 20.222222 | 0.328571 | 0.032967 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 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 | 3 |
613ee5101ac429ac55e9cf0d2d89a86708d843a4 | 105 | py | Python | Part_3_advanced/m17_tests_II/stub_mock/example_3/galactic_systems/person.py | Mikma03/InfoShareacademy_Python_Courses | 3df1008c8c92831bebf1625f960f25b39d6987e6 | [
"MIT"
] | null | null | null | Part_3_advanced/m17_tests_II/stub_mock/example_3/galactic_systems/person.py | Mikma03/InfoShareacademy_Python_Courses | 3df1008c8c92831bebf1625f960f25b39d6987e6 | [
"MIT"
] | null | null | null | Part_3_advanced/m17_tests_II/stub_mock/example_3/galactic_systems/person.py | Mikma03/InfoShareacademy_Python_Courses | 3df1008c8c92831bebf1625f960f25b39d6987e6 | [
"MIT"
] | null | null | null | from dataclasses import dataclass
@dataclass
class Person:
name: str
height: int
mass: int
| 11.666667 | 33 | 0.695238 | 13 | 105 | 5.615385 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.257143 | 105 | 8 | 34 | 13.125 | 0.935897 | 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 | 0 | 0 | 0 | 3 |
6163f6900b47d3452634ad6eba05ab17f1c52172 | 266 | py | Python | setup.py | ofbennett/GreenGrapher | 31a0e34048f1bbe11fa6ca090c1d1506638f6e5f | [
"MIT"
] | null | null | null | setup.py | ofbennett/GreenGrapher | 31a0e34048f1bbe11fa6ca090c1d1506638f6e5f | [
"MIT"
] | null | null | null | setup.py | ofbennett/GreenGrapher | 31a0e34048f1bbe11fa6ca090c1d1506638f6e5f | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup(
name = 'greengrapher',
version = '1.0',
packages = find_packages(exclude = ['*test']),
scripts = ['scripts/greengraph.py'],
install_requires = ['numpy','matplotlib','geopy','requests','nose']
)
| 26.6 | 71 | 0.654135 | 28 | 266 | 6.107143 | 0.821429 | 0.140351 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00905 | 0.169173 | 266 | 9 | 72 | 29.555556 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0.274436 | 0.078947 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.125 | 0 | 0.125 | 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 | 0 | 0 | 0 | 3 |
61785f0bfbe4b8af8ade77711a90c33c90a58597 | 780 | py | Python | tests/openbb_terminal/stocks/due_diligence/test_csimarket_model.py | tehcoderer/GamestonkTerminal | 54a1b6f545a0016c576e9e00eef5c003d229dacf | [
"MIT"
] | 255 | 2022-03-29T16:43:51.000Z | 2022-03-31T23:57:08.000Z | tests/openbb_terminal/stocks/due_diligence/test_csimarket_model.py | tehcoderer/GamestonkTerminal | 54a1b6f545a0016c576e9e00eef5c003d229dacf | [
"MIT"
] | 14 | 2022-03-29T14:20:33.000Z | 2022-03-31T23:39:20.000Z | tests/openbb_terminal/stocks/due_diligence/test_csimarket_model.py | tehcoderer/GamestonkTerminal | 54a1b6f545a0016c576e9e00eef5c003d229dacf | [
"MIT"
] | 24 | 2022-03-29T15:28:56.000Z | 2022-03-31T23:54:15.000Z | # IMPORTATION STANDARD
# IMPORTATION THIRDPARTY
import pytest
# IMPORTATION INTERNAL
from openbb_terminal.stocks.due_diligence import csimarket_model
@pytest.mark.vcr
def test_get_suppliers(recorder):
result_txt = csimarket_model.get_suppliers(ticker="TSLA")
recorder.capture(result_txt)
@pytest.mark.vcr
d... | 24.375 | 71 | 0.802564 | 101 | 780 | 5.891089 | 0.277228 | 0.121008 | 0.087395 | 0.107563 | 0.786555 | 0.786555 | 0.786555 | 0.610084 | 0.30084 | 0.30084 | 0 | 0 | 0.108974 | 780 | 31 | 72 | 25.16129 | 0.856115 | 0.082051 | 0 | 0.444444 | 0 | 0 | 0.050562 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
618238d15cbdef7e763356f55d1db39e6cd415ac | 100 | py | Python | snippets - machine learning sklearn/preprocessing-encoding-categorical-features.py | bjfisica/MachineLearning | 20349301ae7f82cd5048410b0cf1f7a5f7d7e5a2 | [
"MIT"
] | 52 | 2019-02-15T16:37:13.000Z | 2022-02-17T18:34:30.000Z | snippets - machine learning sklearn/preprocessing-encoding-categorical-features.py | RodeoBlues/Complete-Data-Science-Toolkits | c5e83889e24af825ec3baed6e8198debb135f1ff | [
"MIT"
] | null | null | null | snippets - machine learning sklearn/preprocessing-encoding-categorical-features.py | RodeoBlues/Complete-Data-Science-Toolkits | c5e83889e24af825ec3baed6e8198debb135f1ff | [
"MIT"
] | 22 | 2017-11-25T23:42:16.000Z | 2019-01-07T09:22:35.000Z | from sklearn.preprocessing import LabelEncoder
encoder = LabelEncoder()
y = encoder.fit_transform(y) | 33.333333 | 46 | 0.83 | 12 | 100 | 6.833333 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09 | 100 | 3 | 47 | 33.333333 | 0.901099 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
6193e02da9d4ecb20f019ebae65552a4515244ed | 464 | py | Python | main.py | 17jrb17/01-Introduction | 32d6ee73d80b8e75ad0033120f40574338e50814 | [
"MIT"
] | null | null | null | main.py | 17jrb17/01-Introduction | 32d6ee73d80b8e75ad0033120f40574338e50814 | [
"MIT"
] | null | null | null | main.py | 17jrb17/01-Introduction | 32d6ee73d80b8e75ad0033120f40574338e50814 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import utils
utils.check_version((3,7))
utils.clear()
print('Hello, my name is Jacob Bailey')
print('My favorite game is Bioshock Infinite')
print('My only concern is getting back into the groove of coding for this class')
print('I just want to learn more about what goes into creating the thin... | 35.692308 | 122 | 0.762931 | 77 | 464 | 4.584416 | 0.766234 | 0.03966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037313 | 0.133621 | 464 | 13 | 123 | 35.692308 | 0.840796 | 0.045259 | 0 | 0 | 0 | 0.111111 | 0.733634 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.111111 | 0 | 0.111111 | 0.666667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
6197e2f472a595380c154c6de7af9e01226066cd | 210 | py | Python | playerpiano/terminal_target.py | wearpants/playerpiano | 8e29deec5314910c49157dfc5f05d74dc993d223 | [
"BSD-3-Clause"
] | 19 | 2015-07-09T07:22:34.000Z | 2021-04-11T01:42:48.000Z | playerpiano/terminal_target.py | wearpants/playerpiano | 8e29deec5314910c49157dfc5f05d74dc993d223 | [
"BSD-3-Clause"
] | 1 | 2015-01-21T15:24:57.000Z | 2015-01-21T15:24:57.000Z | playerpiano/terminal_target.py | wearpants/playerpiano | 8e29deec5314910c49157dfc5f05d74dc993d223 | [
"BSD-3-Clause"
] | 2 | 2017-01-13T14:23:48.000Z | 2017-01-13T14:24:09.000Z | import sys
def write(s):
"""write s to stdout"""
s = s.replace('\n', '\r\n')
sys.stdout.write(s)
sys.stdout.flush()
def make_target(options):
return write
def free_target():
pass
| 15 | 31 | 0.585714 | 32 | 210 | 3.78125 | 0.53125 | 0.14876 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.247619 | 210 | 13 | 32 | 16.153846 | 0.765823 | 0.080952 | 0 | 0 | 0 | 0 | 0.032086 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.111111 | 0.111111 | 0.111111 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 3 |
61a5ddb09272fafe062aa8c449e54c571b16edae | 65 | py | Python | tests/test_gs_convert.py | rogeriosan4/pdf2txt | f4b1bc0089f1c472120f543bbf12e3bc95256ffc | [
"Unlicense"
] | null | null | null | tests/test_gs_convert.py | rogeriosan4/pdf2txt | f4b1bc0089f1c472120f543bbf12e3bc95256ffc | [
"Unlicense"
] | null | null | null | tests/test_gs_convert.py | rogeriosan4/pdf2txt | f4b1bc0089f1c472120f543bbf12e3bc95256ffc | [
"Unlicense"
] | null | null | null | import gs_convert as gs
x = gs.pdf2string("file.pdf")
print(x) | 10.833333 | 29 | 0.707692 | 12 | 65 | 3.75 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018182 | 0.153846 | 65 | 6 | 30 | 10.833333 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.121212 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
61b134f98007495fc5901530d1270668ffa79377 | 5,091 | py | Python | declaraciones/declaracion/urls/informacion_personal.py | rafaelhn2021/proyecto | 97d01a0524df782985342bf07671ab60e318657f | [
"MIT"
] | null | null | null | declaraciones/declaracion/urls/informacion_personal.py | rafaelhn2021/proyecto | 97d01a0524df782985342bf07671ab60e318657f | [
"MIT"
] | null | null | null | declaraciones/declaracion/urls/informacion_personal.py | rafaelhn2021/proyecto | 97d01a0524df782985342bf07671ab60e318657f | [
"MIT"
] | 2 | 2021-07-15T17:20:10.000Z | 2022-03-18T10:26:38.000Z | from django.urls import path, re_path
from declaracion.views import (DeclaracionFormView, DatosCurricularesView,
DatosEncargoActualView, ExperienciaLaboralView,
ConyugeDependientesView,
DatosCurricularesDelete,
... | 63.6375 | 152 | 0.570026 | 797 | 5,091 | 3.587202 | 0.082811 | 0.094439 | 0.157398 | 0.188877 | 0.666317 | 0.582371 | 0.459951 | 0.459951 | 0.459951 | 0.422176 | 0 | 0.067916 | 0.161265 | 5,091 | 79 | 153 | 64.443038 | 0.601639 | 0 | 0 | 0.115942 | 0 | 0.26087 | 0.537615 | 0.507955 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.057971 | 0 | 0.057971 | 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 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
61ca3989e36b6d4c3877e596e7ffb74c193dc133 | 1,789 | py | Python | steampipe_alchemy/models/aws_vpc_route.py | RyanJarv/steampipe_alchemy | c8a31303252c1bd8d83d0f9c429d7d0ef7e1690f | [
"BSD-3-Clause"
] | 9 | 2021-04-21T04:21:01.000Z | 2021-06-19T19:33:36.000Z | steampipe_alchemy/models/aws_vpc_route.py | RyanJarv/steampipe_alchemy | c8a31303252c1bd8d83d0f9c429d7d0ef7e1690f | [
"BSD-3-Clause"
] | null | null | null | steampipe_alchemy/models/aws_vpc_route.py | RyanJarv/steampipe_alchemy | c8a31303252c1bd8d83d0f9c429d7d0ef7e1690f | [
"BSD-3-Clause"
] | 1 | 2021-04-26T21:08:20.000Z | 2021-04-26T21:08:20.000Z | from sqlalchemy import Column
from sqlalchemy.types import JSON, Text, Boolean, TIMESTAMP, BigInteger
from sqlalchemy.dialects import postgresql as psql
from steampipe_alchemy.mixins import FormatMixins
from steampipe_alchemy import Base
class AwsVpcRoute(Base, FormatMixins):
__tablename__ = 'aws_vpc_route'
d... | 59.633333 | 100 | 0.769145 | 234 | 1,789 | 5.568376 | 0.247863 | 0.1934 | 0.208749 | 0.179586 | 0.220261 | 0.044513 | 0 | 0 | 0 | 0 | 0 | 0.00128 | 0.126887 | 1,789 | 30 | 101 | 59.633333 | 0.832907 | 0 | 0 | 0 | 0 | 0 | 0.182682 | 0.073184 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.178571 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
4ee08d6ac5c8dccaa2490dbd605efe9fc4723425 | 332 | py | Python | mlaas/api/score/serializers.py | ayanray-tech/faas | 6b7b770e09f2b476fa1c53ee0e834ddea0503e7c | [
"MIT"
] | 2 | 2020-10-24T12:18:53.000Z | 2021-04-27T16:25:25.000Z | mlaas/api/score/serializers.py | ayanray-tech/faas | 6b7b770e09f2b476fa1c53ee0e834ddea0503e7c | [
"MIT"
] | null | null | null | mlaas/api/score/serializers.py | ayanray-tech/faas | 6b7b770e09f2b476fa1c53ee0e834ddea0503e7c | [
"MIT"
] | null | null | null | from flask_restplus import fields
from api.restplus import api
model_score = api.model('Model Score', {
'algorithm': fields.String(required=True, description='Model name'),
'source_url': fields.String(required=True, description='Source URL'),
'field_names': fields.String(required=True, description='Field ... | 33.2 | 75 | 0.740964 | 42 | 332 | 5.761905 | 0.428571 | 0.14876 | 0.247934 | 0.297521 | 0.433884 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.120482 | 332 | 9 | 76 | 36.888889 | 0.828767 | 0 | 0 | 0 | 0 | 0 | 0.216867 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4ef998b1ae98b4a3c7ceb80e0ea3608ef675853f | 99 | py | Python | config/deploy/scheme2.py | bbc/intra-chroma-attentionCNN | 5d154dcdf7ba657ba768efdd6ab328a96492a42c | [
"BSD-3-Clause"
] | 7 | 2021-09-10T04:52:55.000Z | 2022-03-23T10:45:45.000Z | config/deploy/scheme2.py | bbc/intra-chroma-attentionCNN | 5d154dcdf7ba657ba768efdd6ab328a96492a42c | [
"BSD-3-Clause"
] | 1 | 2021-12-02T11:39:27.000Z | 2021-12-02T11:39:27.000Z | config/deploy/scheme2.py | bbc/intra-chroma-attentionCNN | 5d154dcdf7ba657ba768efdd6ab328a96492a42c | [
"BSD-3-Clause"
] | null | null | null | scheme = 2
deploy_path = "/work/marcb/Intra_Chroma/deploy"
config = "config/norelu_sa_mult_out.py"
| 24.75 | 47 | 0.777778 | 16 | 99 | 4.5 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011111 | 0.090909 | 99 | 3 | 48 | 33 | 0.788889 | 0 | 0 | 0 | 0 | 0 | 0.59596 | 0.59596 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4efa8e6c800965b8411ede2a36c2d19c99617b04 | 136 | py | Python | core/utils/states/mailing_everyone.py | AKurmazov/hoteluni_bot | f6c25ecc92cc71326cd1c7417f79092874d457a9 | [
"MIT"
] | 2 | 2020-09-09T11:24:42.000Z | 2021-05-23T18:46:54.000Z | core/utils/states/mailing_everyone.py | AKurmazov/hoteluni_bot | f6c25ecc92cc71326cd1c7417f79092874d457a9 | [
"MIT"
] | 6 | 2019-08-24T07:35:32.000Z | 2020-03-23T17:53:51.000Z | core/utils/states/mailing_everyone.py | AKurmazov/hoteluni_bot | f6c25ecc92cc71326cd1c7417f79092874d457a9 | [
"MIT"
] | 3 | 2019-09-02T09:34:37.000Z | 2021-11-26T18:27:45.000Z | from aiogram.dispatcher.filters.state import State, StatesGroup
class MailingEveryoneDialog(StatesGroup):
enter_message = State()
| 22.666667 | 63 | 0.808824 | 14 | 136 | 7.785714 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 136 | 5 | 64 | 27.2 | 0.908333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
f60bcc6317bcfad2fc43fa4580bff0db03109a48 | 130 | py | Python | demo/config.sample.py | Souukou/ZhetaokeSDK | abcd74f2efad55dc53730ece94afed328b9991fa | [
"MIT"
] | 20 | 2019-04-07T10:51:24.000Z | 2021-06-16T10:44:44.000Z | demo/config.sample.py | Souukou/ZhetaokeSDK | abcd74f2efad55dc53730ece94afed328b9991fa | [
"MIT"
] | null | null | null | demo/config.sample.py | Souukou/ZhetaokeSDK | abcd74f2efad55dc53730ece94afed328b9991fa | [
"MIT"
] | 10 | 2019-04-15T15:02:15.000Z | 2021-12-28T02:33:28.000Z | APPKEY = "" # appkey,从折淘客获取
SID = # sid,从折淘客获取,与每个淘宝联盟账户对应
PID = "" # 推广位PID,在淘宝联盟中创建,需要是网站的PID
ALIPAY_KEY = "" # 代付安全密匙,在折淘客中设置
| 26 | 36 | 0.692308 | 15 | 130 | 5.933333 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 130 | 4 | 37 | 32.5 | 0.809091 | 0.592308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f621ba26eb9ee8e9d37baf1cafeace9d82dd074b | 378 | py | Python | qtcurate/exceptions.py | quantxt/qtcurate-sdk-python | 7c60a97c808381680889b2934aa5146e9303274e | [
"Apache-2.0"
] | null | null | null | qtcurate/exceptions.py | quantxt/qtcurate-sdk-python | 7c60a97c808381680889b2934aa5146e9303274e | [
"Apache-2.0"
] | null | null | null | qtcurate/exceptions.py | quantxt/qtcurate-sdk-python | 7c60a97c808381680889b2934aa5146e9303274e | [
"Apache-2.0"
] | null | null | null | class QtConnectionError(Exception):
pass
class QtRestApiError(Exception):
""" Problem with authentification"""
pass
class QtFileTypeError(Exception):
"""Invalid type of file"""
pass
class QtArgumentError(Exception):
pass
class QtVocabularyError(Exception):
pass
class QtModelError(E... | 14 | 40 | 0.714286 | 35 | 378 | 7.714286 | 0.485714 | 0.2 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.198413 | 378 | 27 | 41 | 14 | 0.891089 | 0.132275 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
f628211ff89794bf44596c22a256c424a9c145db | 159 | py | Python | tests/orgmode.py | thetomcraig/HPI | 5eecd8721dc0cbfc68040106bb7b540b1567dff3 | [
"MIT"
] | null | null | null | tests/orgmode.py | thetomcraig/HPI | 5eecd8721dc0cbfc68040106bb7b540b1567dff3 | [
"MIT"
] | null | null | null | tests/orgmode.py | thetomcraig/HPI | 5eecd8721dc0cbfc68040106bb7b540b1567dff3 | [
"MIT"
] | null | null | null | import my.notes.orgmode as orgmode
def test():
# meh
results = orgmode.query().query_all(lambda x: x.with_tag('python'))
assert len(results) > 5
| 19.875 | 71 | 0.666667 | 24 | 159 | 4.333333 | 0.791667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007813 | 0.194969 | 159 | 7 | 72 | 22.714286 | 0.804688 | 0.018868 | 0 | 0 | 0 | 0 | 0.038961 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f62f4c70bff18be6eaf885cdc54f4a9964e9c3e1 | 66,605 | py | Python | release/stubs.min/Rhino/ApplicationSettings.py | htlcnn/ironpython-stubs | 780d829e2104b2789d5f4d6f32b0ec9f2930ca03 | [
"MIT"
] | 182 | 2017-06-27T02:26:15.000Z | 2022-03-30T18:53:43.000Z | release/stubs.min/Rhino/ApplicationSettings.py | htlcnn/ironpython-stubs | 780d829e2104b2789d5f4d6f32b0ec9f2930ca03 | [
"MIT"
] | 28 | 2017-06-27T13:38:23.000Z | 2022-03-15T11:19:44.000Z | release/stubs.min/Rhino/ApplicationSettings.py | htlcnn/ironpython-stubs | 780d829e2104b2789d5f4d6f32b0ec9f2930ca03 | [
"MIT"
] | 67 | 2017-06-28T09:43:59.000Z | 2022-03-20T21:17:10.000Z | # encoding: utf-8
# module Rhino.ApplicationSettings calls itself ApplicationSettings
# from RhinoCommon,Version=5.1.30000.16,Culture=neutral,PublicKeyToken=552281e97c755530
# by generator 1.145
""" NamespaceTracker represent a CLS namespace. """
# no imports
# no functions
# classes
class AppearanceSetting... | 23.215406 | 2,529 | 0.706839 | 7,694 | 66,605 | 5.975695 | 0.150377 | 0.067208 | 0.040325 | 0.053766 | 0.389586 | 0.372512 | 0.363943 | 0.335146 | 0.325271 | 0.302108 | 0 | 0.013739 | 0.188064 | 66,605 | 2,868 | 2,530 | 23.223501 | 0.836443 | 0.003273 | 0 | 0.482927 | 0 | 0 | 0.029332 | 0.003114 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.193902 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
f64c3451039cd2abd234e9be462b72ceb2411171 | 530 | py | Python | mass_flask_core/signals/__init__.py | mass-project/mass_server | a785629ec9e74edfc039fa33727cc094cc1b7763 | [
"MIT"
] | 8 | 2017-03-15T20:04:23.000Z | 2021-02-11T02:57:58.000Z | mass_flask_core/signals/__init__.py | mass-project/mass_server | a785629ec9e74edfc039fa33727cc094cc1b7763 | [
"MIT"
] | 100 | 2016-09-20T14:02:22.000Z | 2019-10-23T00:49:38.000Z | mass_flask_core/signals/__init__.py | mass-project/mass_server | a785629ec9e74edfc039fa33727cc094cc1b7763 | [
"MIT"
] | 3 | 2018-01-19T12:57:46.000Z | 2018-12-28T00:53:46.000Z | from mongoengine import signals
from mass_flask_core.models import AnalysisSystem, Report
from .dispatch_request import update_dispatch_request_for_new_sample, create_requests_for_new_analysis_system
from .copy_report_tags import copy_tags_from_report_to_sample
def connect_signals():
signals.post_save.connect(upd... | 44.166667 | 109 | 0.879245 | 76 | 530 | 5.618421 | 0.368421 | 0.056206 | 0.105386 | 0.154567 | 0.435597 | 0.435597 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075472 | 530 | 11 | 110 | 48.181818 | 0.871429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | true | 0 | 0.5 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
f650e86356748827c8905a4f03179e3e0df80ffa | 436 | py | Python | xl_tensorflow/models/vision/classification/__init__.py | Lannister-Xiaolin/xl_tensorflow | 99e0f458769ee1e45ebf55c789961e40f7d2eeac | [
"Apache-2.0"
] | null | null | null | xl_tensorflow/models/vision/classification/__init__.py | Lannister-Xiaolin/xl_tensorflow | 99e0f458769ee1e45ebf55c789961e40f7d2eeac | [
"Apache-2.0"
] | 1 | 2020-11-13T18:52:23.000Z | 2020-11-13T18:52:23.000Z | xl_tensorflow/models/vision/classification/__init__.py | Lannister-Xiaolin/xl_tensorflow | 99e0f458769ee1e45ebf55c789961e40f7d2eeac | [
"Apache-2.0"
] | null | null | null | #!usr/bin/env python3
# -*- coding: UTF-8 -*-
from .utils import AutoAugment, RandAugment, image_from_tfrecord, images2tfrecord
from .efficientnet import EfficientNetB0, EfficientNetB1, EfficientNetB2, EfficientNetB3, EfficientNetB4, \
EfficientNetB5, EfficientNetB6, EfficientNetB7, EfficientNetLiteB4, EfficientNet... | 62.285714 | 113 | 0.823394 | 37 | 436 | 9.648649 | 0.864865 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050891 | 0.098624 | 436 | 7 | 114 | 62.285714 | 0.857506 | 0.09633 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.6 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
f6565b7fec7e1c2302dd84a99105e23eda797628 | 194 | py | Python | testasm/serve.py | leetim/leetim.github.io | 544892cec90a406047a403d42e812da6c686540e | [
"BSD-4-Clause"
] | null | null | null | testasm/serve.py | leetim/leetim.github.io | 544892cec90a406047a403d42e812da6c686540e | [
"BSD-4-Clause"
] | null | null | null | testasm/serve.py | leetim/leetim.github.io | 544892cec90a406047a403d42e812da6c686540e | [
"BSD-4-Clause"
] | null | null | null | import SimpleHTTPServer
import SocketServer
PORT = 8000
Handler = SimpleHTTPServer.SimpleHTTPRequestHandler
httpd = SocketServer.TCPServer(("", PORT), Handler)
httpd.serve_forever()
| 19.4 | 52 | 0.773196 | 17 | 194 | 8.764706 | 0.647059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024096 | 0.14433 | 194 | 9 | 53 | 21.555556 | 0.873494 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
f66d4dff2c8407d99f0559e2644fdc9bae7c79c2 | 527 | py | Python | Multi Processing.py | christianandrew/Tugas_Akhir | 78a79e1e3a83a68306fc0960f2ff297e48a968fa | [
"MIT"
] | null | null | null | Multi Processing.py | christianandrew/Tugas_Akhir | 78a79e1e3a83a68306fc0960f2ff297e48a968fa | [
"MIT"
] | null | null | null | Multi Processing.py | christianandrew/Tugas_Akhir | 78a79e1e3a83a68306fc0960f2ff297e48a968fa | [
"MIT"
] | null | null | null | import time
import multiprocessing
import TFLite_detection_webcam
import X
def machinelearning():
exec(TFLite_detection_webcam)
def sensors():
exec(
p1 = multiprocessing.Process(target=machinelearning(),args=[])
p2 = multiprocessing.Process(target=,args=[])
p3 = multiprocessing.Process(target=,arg... | 21.08 | 63 | 0.669829 | 59 | 527 | 5.762712 | 0.491525 | 0.194118 | 0.247059 | 0.188235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021226 | 0.195446 | 527 | 25 | 64 | 21.08 | 0.78066 | 0 | 0 | 0 | 0 | 0 | 0.063492 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | null | null | 0.05 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9ca4f7b5d20105ec414b1d125e1c1dbbbe62fbba | 212 | py | Python | notification_sender/urls.py | juliojmphjv/spot-that-fire | 92d6ef5ab64097447653ce2255b9a106591e1247 | [
"MIT"
] | null | null | null | notification_sender/urls.py | juliojmphjv/spot-that-fire | 92d6ef5ab64097447653ce2255b9a106591e1247 | [
"MIT"
] | 4 | 2020-06-05T23:56:43.000Z | 2021-06-04T22:54:27.000Z | notification_sender/urls.py | juliojmphjv/spot-that-fire | 92d6ef5ab64097447653ce2255b9a106591e1247 | [
"MIT"
] | null | null | null | from django.contrib import admin
from django.urls import path, include
from django.conf.urls import url
from notification_sender.views import sms_response
urlpatterns = [
url(r'^receive/$', sms_response),
] | 23.555556 | 50 | 0.783019 | 30 | 212 | 5.433333 | 0.6 | 0.184049 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.132075 | 212 | 9 | 51 | 23.555556 | 0.88587 | 0 | 0 | 0 | 0 | 0 | 0.046948 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.571429 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
9cc2f9d9e5b27121bcecd04ac56053a7de859a8e | 630 | py | Python | backend/extractbeta.py | rachitnaruzu/resultnotifier | d0229c6177e87609fb2b2e423b27dc0dd6824118 | [
"MIT"
] | null | null | null | backend/extractbeta.py | rachitnaruzu/resultnotifier | d0229c6177e87609fb2b2e423b27dc0dd6824118 | [
"MIT"
] | null | null | null | backend/extractbeta.py | rachitnaruzu/resultnotifier | d0229c6177e87609fb2b2e423b27dc0dd6824118 | [
"MIT"
] | null | null | null | import re
import requests as rq
from bs4 import BeautifulSoup
'''
return a list of all the currenttly available data (result, notice, schedule, etc.....
implement this method to return a list in this format (ex: a webscrape logic):
[
{
'displayname': '2015 CSE VII SEM', # the name which will be displ... | 23.333333 | 86 | 0.601587 | 75 | 630 | 5.053333 | 0.76 | 0.036939 | 0.058047 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032895 | 0.27619 | 630 | 27 | 87 | 23.333333 | 0.798246 | 0.033333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | true | 0 | 0.75 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
9ce009ad9a8aa11ea8e4d100f5e9ddd2f1a6275f | 130 | py | Python | codigo/Live173/exemplo_tk.py | BrunoPontesLira/live-de-python | da6e463a89ed90d9efaa1c34088ab6460e949de1 | [
"MIT"
] | 572 | 2018-04-03T03:17:08.000Z | 2022-03-31T19:05:32.000Z | codigo/Live173/exemplo_tk.py | BrunoPontesLira/live-de-python | da6e463a89ed90d9efaa1c34088ab6460e949de1 | [
"MIT"
] | 176 | 2018-05-18T15:56:16.000Z | 2022-03-28T20:39:07.000Z | codigo/Live173/exemplo_tk.py | BrunoPontesLira/live-de-python | da6e463a89ed90d9efaa1c34088ab6460e949de1 | [
"MIT"
] | 140 | 2018-04-18T13:59:11.000Z | 2022-03-29T00:43:49.000Z | from tkinter import Tk, Label
root = Tk()
a = Label(root, text='Live de Python', font=('Arial', 30))
a.pack()
root.mainloop()
| 13 | 58 | 0.646154 | 21 | 130 | 4 | 0.761905 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018519 | 0.169231 | 130 | 9 | 59 | 14.444444 | 0.759259 | 0 | 0 | 0 | 0 | 0 | 0.146154 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9cfc95aa22a67b271092d412625319722da9f7d1 | 15,139 | py | Python | module/text_converter.py | 5l1v3r1/saydog-framework | 92d6d2a80958ecf5724c95d1d3c76d8ca95db8d6 | [
"Xnet",
"TCP-wrappers",
"X11"
] | 2 | 2020-09-26T16:43:11.000Z | 2021-02-09T21:46:08.000Z | module/text_converter.py | 5l1v3r1/saydog-framework | 92d6d2a80958ecf5724c95d1d3c76d8ca95db8d6 | [
"Xnet",
"TCP-wrappers",
"X11"
] | null | null | null | module/text_converter.py | 5l1v3r1/saydog-framework | 92d6d2a80958ecf5724c95d1d3c76d8ca95db8d6 | [
"Xnet",
"TCP-wrappers",
"X11"
] | 1 | 2022-03-19T06:40:56.000Z | 2022-03-19T06:40:56.000Z | import os,sys,time
from time import *
r='\x1b[00m\x1b[91m'
g='\x1b[00m\x1b[32m'
y='\x1b[00m\x1b[33m'
c='\x1b[00m\x1b[36m'
w='\x1b[00m'
u='\033[4m'
b='\033[5m'
def sprint(s):
for c in s + '\n':
sys.stdout.write(c)
sys.stdout.flush()
time.sleep(0.1 / 100)
def corrupt():
print(r+'[?]... | 44.526471 | 60 | 0.539005 | 1,995 | 15,139 | 4.089223 | 0.187469 | 0.280461 | 0.490807 | 0.525864 | 0.745526 | 0.326305 | 0.046335 | 0 | 0 | 0 | 0 | 0.007889 | 0.179404 | 15,139 | 340 | 61 | 44.526471 | 0.648797 | 0 | 0 | 0.012012 | 0 | 0 | 0.46004 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015015 | false | 0 | 0.006006 | 0 | 0.021021 | 0.03003 | 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 | 0 | 0 | 0 | 3 |
140abcfb8e385710b46c6c727934aa6c4ad8b1ca | 157 | py | Python | learning_logs/apps.py | kevinbowen777/learning_log | ec81918ae92d4859591f840274dd88a37afa4998 | [
"MIT"
] | null | null | null | learning_logs/apps.py | kevinbowen777/learning_log | ec81918ae92d4859591f840274dd88a37afa4998 | [
"MIT"
] | null | null | null | learning_logs/apps.py | kevinbowen777/learning_log | ec81918ae92d4859591f840274dd88a37afa4998 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class LearningLogsConfig(AppConfig):
default_auto_field = "django.db.models.BigAutoField"
name = "learning_logs"
| 22.428571 | 56 | 0.77707 | 18 | 157 | 6.611111 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140127 | 157 | 6 | 57 | 26.166667 | 0.881481 | 0 | 0 | 0 | 0 | 0 | 0.267516 | 0.184713 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
142470a87d304f1d146e7ab14e2e7d2349b95f80 | 151 | py | Python | FamilyFood/lower_card/apps.py | ZST-Devs/HomeFood | 337edef7d6d567b1c0c6e4699d7b8c8ee4d91397 | [
"MIT"
] | 2 | 2022-01-15T16:58:40.000Z | 2022-03-11T09:42:59.000Z | FamilyFood/lower_card/apps.py | ZST-Devs/HomeFood | 337edef7d6d567b1c0c6e4699d7b8c8ee4d91397 | [
"MIT"
] | null | null | null | FamilyFood/lower_card/apps.py | ZST-Devs/HomeFood | 337edef7d6d567b1c0c6e4699d7b8c8ee4d91397 | [
"MIT"
] | 1 | 2022-01-08T17:06:37.000Z | 2022-01-08T17:06:37.000Z | from django.apps import AppConfig
class LowerCardConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'lower_card'
| 21.571429 | 56 | 0.768212 | 18 | 151 | 6.277778 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145695 | 151 | 6 | 57 | 25.166667 | 0.875969 | 0 | 0 | 0 | 0 | 0 | 0.258278 | 0.192053 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
142d481b74bbd7c42092e44a9cb43d80d49ffb82 | 599 | py | Python | rstblog/modules/__init__.py | mitsuhiko/rstblog | 366c88a4a7d39b676e815dccf57b8be3a51384fe | [
"BSD-3-Clause"
] | 44 | 2015-02-24T08:30:49.000Z | 2021-10-01T15:21:52.000Z | rstblog/modules/__init__.py | mitsuhiko/rstblog | 366c88a4a7d39b676e815dccf57b8be3a51384fe | [
"BSD-3-Clause"
] | null | null | null | rstblog/modules/__init__.py | mitsuhiko/rstblog | 366c88a4a7d39b676e815dccf57b8be3a51384fe | [
"BSD-3-Clause"
] | 18 | 2015-04-16T08:22:17.000Z | 2021-08-08T22:04:45.000Z | # -*- coding: utf-8 -*-
"""
rstblog.modules
~~~~~~~~~~~~~~~
The module interface.
:copyright: (c) 2010 by Armin Ronacher.
:license: BSD, see LICENSE for more details.
"""
from __future__ import absolute_import
def add_module_path(folder):
"""Adds a new search path to the list of search paths... | 23.038462 | 72 | 0.657763 | 80 | 599 | 4.6875 | 0.625 | 0.064 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010571 | 0.210351 | 599 | 25 | 73 | 23.96 | 0.782241 | 0.464107 | 0 | 0 | 0 | 0 | 0.056537 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.444444 | 0 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
14346994761e28211547cb2738e894f75a15a1c6 | 222 | py | Python | get_emails.py | fredsakr/eloqua-python-request | a037f6d2861c554a5683924c16f593117dd77406 | [
"Apache-2.0"
] | 6 | 2015-07-29T21:02:46.000Z | 2021-02-15T02:41:14.000Z | get_emails.py | fredsakr/eloqua-python-request | a037f6d2861c554a5683924c16f593117dd77406 | [
"Apache-2.0"
] | null | null | null | get_emails.py | fredsakr/eloqua-python-request | a037f6d2861c554a5683924c16f593117dd77406 | [
"Apache-2.0"
] | 1 | 2015-07-29T21:03:22.000Z | 2015-07-29T21:03:22.000Z | import sys
sys.path.append('./lib')
from eloqua_request import EloquaRequest
request = EloquaRequest('site', 'user', 'password')
response = request.get('/assets/emails?search=Demand*&page=1&count=50&depth=minimal', None)
| 31.714286 | 91 | 0.756757 | 30 | 222 | 5.566667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014634 | 0.076577 | 222 | 6 | 92 | 37 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.36036 | 0.265766 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.2 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
1495a750a1b032d8dfc499ff1633735c186f21ef | 381 | py | Python | tests/unit/drivers/core/test_core_cisco_iosxr_driver.py | carlmontanari/ssh2net | 55e969b6d44ec3f2bd2ebbd8dedd68b99bee4c5b | [
"MIT"
] | 10 | 2020-01-13T03:28:33.000Z | 2022-02-08T17:05:59.000Z | tests/unit/drivers/core/test_core_cisco_iosxr_driver.py | carlmontanari/ssh2net | 55e969b6d44ec3f2bd2ebbd8dedd68b99bee4c5b | [
"MIT"
] | null | null | null | tests/unit/drivers/core/test_core_cisco_iosxr_driver.py | carlmontanari/ssh2net | 55e969b6d44ec3f2bd2ebbd8dedd68b99bee4c5b | [
"MIT"
] | 1 | 2020-05-26T13:35:46.000Z | 2020-05-26T13:35:46.000Z | import pytest
from ssh2net.core.cisco_iosxr.driver import IOSXRDriver, PRIVS
from tests.unit.drivers.base_driver_unit_tests import BaseDriverUnitTest
class TestIOSXR(BaseDriverUnitTest):
def setup_method(self):
self.privs = PRIVS
self.driver = IOSXRDriver()
def test__determine_current_priv_e... | 27.214286 | 72 | 0.761155 | 48 | 381 | 5.833333 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003155 | 0.167979 | 381 | 13 | 73 | 29.307692 | 0.880126 | 0 | 0 | 0 | 0 | 0 | 0.068241 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
1499300450eca5a1d08929567d7370f0f0ad646c | 988 | py | Python | clean_architecture_basic_classes/basic_domain/basic_entity.py | aberriel/clean_architecture_basic_classes | d46b7ae6f3e2e1139598f5b0d4b90956fd633691 | [
"MIT"
] | null | null | null | clean_architecture_basic_classes/basic_domain/basic_entity.py | aberriel/clean_architecture_basic_classes | d46b7ae6f3e2e1139598f5b0d4b90956fd633691 | [
"MIT"
] | null | null | null | clean_architecture_basic_classes/basic_domain/basic_entity.py | aberriel/clean_architecture_basic_classes | d46b7ae6f3e2e1139598f5b0d4b90956fd633691 | [
"MIT"
] | null | null | null | from clean_architecture_basic_classes.basic_domain.basic_value import \
BasicValue
from marshmallow import Schema, fields
from uuid import uuid4
def missing_id():
return str(uuid4())
class BasicEntity(BasicValue):
def __init__(self, entity_id=None):
self.entity_id = entity_id or str(uuid4())
... | 24.7 | 71 | 0.62753 | 125 | 988 | 4.68 | 0.336 | 0.109402 | 0.102564 | 0.041026 | 0.157265 | 0.157265 | 0.157265 | 0.157265 | 0.157265 | 0.157265 | 0 | 0.004231 | 0.282389 | 988 | 39 | 72 | 25.333333 | 0.820874 | 0 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.107143 | 0.107143 | 0.642857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
14af3f7066ba74b3a4911a45a813b6322244fa74 | 451 | py | Python | scripts/utils.py | akx/mapnificent_generator | 846d5d28078d80d3a485a42b446c68367f7a17c1 | [
"MIT"
] | 6 | 2015-07-21T09:21:07.000Z | 2020-09-14T04:05:12.000Z | scripts/utils.py | akx/mapnificent_generator | 846d5d28078d80d3a485a42b446c68367f7a17c1 | [
"MIT"
] | 4 | 2015-08-01T19:11:17.000Z | 2018-07-13T17:29:06.000Z | scripts/utils.py | akx/mapnificent_generator | 846d5d28078d80d3a485a42b446c68367f7a17c1 | [
"MIT"
] | 6 | 2015-07-20T21:51:16.000Z | 2022-02-17T07:22:13.000Z | import errno
import re
import os
import yaml
NON_WORD_RE = re.compile('[^\w-]')
def slugify(s):
return NON_WORD_RE.sub('-', s)
def mkdir_p(path):
try:
os.makedirs(path)
except OSError as exc:
if exc.errno == errno.EEXIST and os.path.isdir(path):
pass
else:
... | 17.346154 | 105 | 0.625277 | 68 | 451 | 4.014706 | 0.676471 | 0.051282 | 0.065934 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017751 | 0.250554 | 451 | 25 | 106 | 18.04 | 0.789941 | 0 | 0 | 0 | 0 | 0 | 0.026608 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0.058824 | 0.235294 | 0.117647 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 3 |
2125010122781b33119d7866e0dc2e0647463860 | 10,489 | py | Python | rustici_software_cloud_v2/models/xapi_activity_definition.py | ryanhope2/scormcloud-api-v2-client-python | fcc392933218d32b70987f8bfb1711f891f31c06 | [
"Apache-2.0"
] | null | null | null | rustici_software_cloud_v2/models/xapi_activity_definition.py | ryanhope2/scormcloud-api-v2-client-python | fcc392933218d32b70987f8bfb1711f891f31c06 | [
"Apache-2.0"
] | null | null | null | rustici_software_cloud_v2/models/xapi_activity_definition.py | ryanhope2/scormcloud-api-v2-client-python | fcc392933218d32b70987f8bfb1711f891f31c06 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
"""
SCORM Cloud Rest API
REST API used for SCORM Cloud integrations.
OpenAPI spec version: 2.0
Contact: systems@rusticisoftware.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
class XapiAct... | 27.602632 | 215 | 0.594909 | 1,013 | 10,489 | 6.019743 | 0.124383 | 0.047229 | 0.2204 | 0.066907 | 0.506724 | 0.32732 | 0.264185 | 0.130043 | 0.028534 | 0 | 0 | 0.000839 | 0.318429 | 10,489 | 379 | 216 | 27.675462 | 0.852147 | 0.3906 | 0 | 0.258503 | 1 | 0 | 0.105745 | 0.042565 | 0 | 0 | 0 | 0 | 0 | 1 | 0.204082 | false | 0 | 0.020408 | 0 | 0.353742 | 0.006803 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2126001da25304049ba8d2d6303d382450a340cb | 263 | py | Python | rsa/src/crypto/hash.py | rafaelcn/cryptography | 38de104b4a264a9f71d40f6306bfe96e24e6985b | [
"MIT"
] | null | null | null | rsa/src/crypto/hash.py | rafaelcn/cryptography | 38de104b4a264a9f71d40f6306bfe96e24e6985b | [
"MIT"
] | null | null | null | rsa/src/crypto/hash.py | rafaelcn/cryptography | 38de104b4a264a9f71d40f6306bfe96e24e6985b | [
"MIT"
] | null | null | null | """
This file contains hash functions to help in signature verfication.
"""
import hashlib
def hashit(data):
"""
Hash function that returns a 32 byte digest of the application of SHA3 256
on data.
"""
return hashlib.sha3_256(data).digest()
| 18.785714 | 78 | 0.688213 | 37 | 263 | 4.864865 | 0.783784 | 0.077778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04902 | 0.224335 | 263 | 13 | 79 | 20.230769 | 0.833333 | 0.574144 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
215e032e726c69ccdadcfe5d3701a25821fef9c2 | 4,276 | py | Python | backend/cukiernia/serializers.py | MatMark/ZIwG | 76cda0d1f72d3f5220ad13457d5a1ea0a0b9771a | [
"MIT"
] | 3 | 2021-03-16T11:02:13.000Z | 2021-03-16T11:03:58.000Z | backend/cukiernia/serializers.py | MatMark/ZIwG | 76cda0d1f72d3f5220ad13457d5a1ea0a0b9771a | [
"MIT"
] | null | null | null | backend/cukiernia/serializers.py | MatMark/ZIwG | 76cda0d1f72d3f5220ad13457d5a1ea0a0b9771a | [
"MIT"
] | null | null | null | from django.contrib.auth.models import User, Group
from rest_framework import serializers
from .models import Product, ProductPhoto, TextBox, ComboBox, ComboBoxValue, OrderStatus, Order, Decoration, Delivery
from .models import Calendar, Category, Carousel, CarouselPhoto, RelatedProductJunction, InstantRetail, OnDemand... | 33.669291 | 118 | 0.67072 | 414 | 4,276 | 6.816425 | 0.316425 | 0.060595 | 0.089298 | 0.186038 | 0.337704 | 0.101347 | 0.087172 | 0.026223 | 0.026223 | 0 | 0 | 0.000297 | 0.21188 | 4,276 | 127 | 119 | 33.669291 | 0.837092 | 0.042797 | 0 | 0.234043 | 0 | 0 | 0.150198 | 0.01087 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010638 | false | 0.06383 | 0.042553 | 0 | 0.510638 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
215e801b9a4e99365eb93fbb4ef59beca7696dcc | 233 | py | Python | lib/base/framework.py | dromero1452/shellsploit-framework | 38ce78542fd2dd2ac30f6567972d695ede1e4709 | [
"MIT"
] | 2 | 2019-12-23T15:47:02.000Z | 2020-01-06T09:51:57.000Z | lib/base/framework.py | badfish5150/shellsploit-framework | 22bb910d33379ca29ddd10ba93a63e9ff1eab99d | [
"MIT"
] | null | null | null | lib/base/framework.py | badfish5150/shellsploit-framework | 22bb910d33379ca29ddd10ba93a63e9ff1eab99d | [
"MIT"
] | 1 | 2021-12-23T16:35:24.000Z | 2021-12-23T16:35:24.000Z | from lib.core.base import Base
from lib.payloads.shellcode import Shellcode
class ShellsploitFramework(Base, Shellcode):
def __init__(self):
super(Base, self).__init__()
super(Shellcode, self).__init__()
| 15.533333 | 44 | 0.703863 | 27 | 233 | 5.62963 | 0.481481 | 0.092105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.197425 | 233 | 14 | 45 | 16.642857 | 0.812834 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
dcc3cff8b2f23a0df280c8f2b510c2b005ab06f7 | 721 | py | Python | app/services/crud_service.py | palazzem/gello | 19fe9e4aa8de485dd829a87047ec64f89b5fa7ee | [
"Apache-2.0"
] | 44 | 2018-03-28T14:22:23.000Z | 2022-03-15T07:25:06.000Z | app/services/crud_service.py | palazzem/gello | 19fe9e4aa8de485dd829a87047ec64f89b5fa7ee | [
"Apache-2.0"
] | 44 | 2018-03-28T14:19:03.000Z | 2022-02-16T10:24:57.000Z | app/services/crud_service.py | palazzem/gello | 19fe9e4aa8de485dd829a87047ec64f89b5fa7ee | [
"Apache-2.0"
] | 12 | 2018-03-28T14:15:43.000Z | 2021-07-19T17:33:20.000Z | # -*- coding: utf-8 -*-
#
# Unless explicitly stated otherwise all files in this repository are licensed
# under the Apache 2 License.
#
# This product includes software developed at Datadog
# (https://www.datadoghq.com/).
#
# Copyright 2018 Datadog, Inc.
#
"""crud_service.py
Service-helpers for creating and updatin... | 20.027778 | 78 | 0.650485 | 88 | 721 | 5.318182 | 0.738636 | 0.047009 | 0.059829 | 0.08547 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010929 | 0.238558 | 721 | 35 | 79 | 20.6 | 0.84153 | 0.68516 | 0 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | false | 0.428571 | 0 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
dcc4d441870d5800d2b29b4ca991eb45d11d6743 | 986 | py | Python | src/icolos/config_containers/container.py | jharrymoore/Icolos | c60cc00c34208ab7011d41d52a74651763673e7a | [
"Apache-2.0"
] | 11 | 2022-01-30T14:36:13.000Z | 2022-03-22T09:40:57.000Z | src/icolos/config_containers/container.py | jharrymoore/Icolos | c60cc00c34208ab7011d41d52a74651763673e7a | [
"Apache-2.0"
] | 2 | 2022-03-23T07:56:49.000Z | 2022-03-24T12:01:42.000Z | src/icolos/config_containers/container.py | jharrymoore/Icolos | c60cc00c34208ab7011d41d52a74651763673e7a | [
"Apache-2.0"
] | 8 | 2022-01-28T10:32:31.000Z | 2022-03-22T09:40:59.000Z | import abc
import json
import os
class ConfContainer(object, metaclass=abc.ABCMeta):
@abc.abstractmethod
def __init__(self, conf):
# get instance of configuration enum and load configuration
# parameter "config" can be a string, a path or a dictionary (as long as it holds valid JSON input)
... | 29 | 107 | 0.61359 | 127 | 986 | 4.622047 | 0.527559 | 0.068143 | 0.037479 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.287018 | 986 | 33 | 108 | 29.878788 | 0.834993 | 0.157201 | 0 | 0 | 0 | 0 | 0.072464 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.166667 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
dcd61077b65399c32c28d4e3ad286448ec0de7a2 | 221 | py | Python | ta2-eval/d3m_ta2s_eval/ta3ta2api/__init__.py | tonyjo/ubc_primitives | bc94a403f176fe28db2a9ac9d1a48cb9db021f90 | [
"Apache-2.0"
] | null | null | null | ta2-eval/d3m_ta2s_eval/ta3ta2api/__init__.py | tonyjo/ubc_primitives | bc94a403f176fe28db2a9ac9d1a48cb9db021f90 | [
"Apache-2.0"
] | 4 | 2020-07-19T00:45:29.000Z | 2020-12-10T18:25:41.000Z | ta2-eval/d3m_ta2s_eval/ta3ta2api/__init__.py | tonyjo/ubc_primitives | bc94a403f176fe28db2a9ac9d1a48cb9db021f90 | [
"Apache-2.0"
] | 1 | 2021-04-30T18:13:49.000Z | 2021-04-30T18:13:49.000Z | import sys, os
sys.path.append(os.getcwd()+'/d3m_ta2s_eval/ta3ta2api')
import pipeline_pb2 as pipeline__pb2
import primitive_pb2 as primitive__pb2
import problem_pb2 as problem__pb2
import value_pb2 as value__pb2
| 27.625 | 55 | 0.81448 | 36 | 221 | 4.611111 | 0.444444 | 0.120482 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062176 | 0.126697 | 221 | 7 | 56 | 31.571429 | 0.797927 | 0 | 0 | 0 | 0 | 0 | 0.108597 | 0.108597 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.833333 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
dcf15348d45f80a21d5eed5fd6457d0de7e4375b | 1,295 | py | Python | channels.py | tunelipt/boundarylayer | ebc53e24c7740cf2eba2251cbb7474059093d685 | [
"MIT"
] | null | null | null | channels.py | tunelipt/boundarylayer | ebc53e24c7740cf2eba2251cbb7474059093d685 | [
"MIT"
] | null | null | null | channels.py | tunelipt/boundarylayer | ebc53e24c7740cf2eba2251cbb7474059093d685 | [
"MIT"
] | null | null | null | import math
def num_string(x, n=3):
return ('{}'.format(x + 10**n))[1:]
class ChannelConfig(object):
def __init__(self, nchans, chans=None, addref=True, istart=0):
self.addref = addref
self.istart = istart
if chans is None:
nchars = math.ceil(math.log10(nchans+is... | 24.903846 | 95 | 0.564479 | 167 | 1,295 | 4.335329 | 0.329341 | 0.116022 | 0.033149 | 0.060773 | 0.160221 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009009 | 0.314286 | 1,295 | 51 | 96 | 25.392157 | 0.806306 | 0 | 0 | 0 | 0 | 0 | 0.01391 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.257143 | false | 0 | 0.028571 | 0.142857 | 0.514286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
dcf661166040e3b0e407852084c40a8d5a0034b3 | 553 | py | Python | clases/duodecimasegunda.py | PythonCisco/clase | 6e18715012ce72385637b7f09a0a9c810165f1af | [
"MIT"
] | null | null | null | clases/duodecimasegunda.py | PythonCisco/clase | 6e18715012ce72385637b7f09a0a9c810165f1af | [
"MIT"
] | null | null | null | clases/duodecimasegunda.py | PythonCisco/clase | 6e18715012ce72385637b7f09a0a9c810165f1af | [
"MIT"
] | null | null | null |
"""
"""
import turtle
class Pluma():
def __init__(self, color, grosor):
self.color = color
self.grosor = grosor
self.posicion = [0, 0]
self.previa = self.posicion
def mueve(self, x, y):
self.previa = self.posicion
self.posicion = [x, y]
turtle.goto(*se... | 23.041667 | 94 | 0.614828 | 72 | 553 | 4.666667 | 0.388889 | 0.285714 | 0.166667 | 0.196429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004975 | 0.273056 | 553 | 23 | 95 | 24.043478 | 0.830846 | 0.166365 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.071429 | 0 | 0.357143 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
dcf844a2976987c67d36fc3720dc7f87b105aff5 | 282 | py | Python | day19.py | alexrudy/AoC2018 | 514fcf28f08f5b6d0633091991d60ccf0b84919e | [
"MIT"
] | null | null | null | day19.py | alexrudy/AoC2018 | 514fcf28f08f5b6d0633091991d60ccf0b84919e | [
"MIT"
] | null | null | null | day19.py | alexrudy/AoC2018 | 514fcf28f08f5b6d0633091991d60ccf0b84919e | [
"MIT"
] | null | null | null | # Hand decompiled day 19 part 2
a,b,c,d,e,f = 1,0,0,0,0,0
c += 2
c *= c
c *= 209
b += 2
b *= 22
b += 7
c += b
if a == 1:
b = 27
b *= 28
b += 29
b *= 30
b *= 14
b *= 32
c += b
a = 0
for d in range(1, c+1):
if c % d == 0:
a += d
print(a) | 11.28 | 31 | 0.375887 | 66 | 282 | 1.606061 | 0.424242 | 0.075472 | 0.084906 | 0.075472 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.209877 | 0.425532 | 282 | 25 | 32 | 11.28 | 0.444444 | 0.102837 | 0 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.047619 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0d3064e76950a170ce98310e7578c59909e81571 | 233 | py | Python | google-native-ts-k8s-python-postgresql/app/app/config.py | riddopic/examples | b7c192a19e6239f2a8fc9c8cbc1563d6f7e9f9a2 | [
"Apache-2.0"
] | null | null | null | google-native-ts-k8s-python-postgresql/app/app/config.py | riddopic/examples | b7c192a19e6239f2a8fc9c8cbc1563d6f7e9f9a2 | [
"Apache-2.0"
] | null | null | null | google-native-ts-k8s-python-postgresql/app/app/config.py | riddopic/examples | b7c192a19e6239f2a8fc9c8cbc1563d6f7e9f9a2 | [
"Apache-2.0"
] | null | null | null | from pydantic import BaseSettings, SecretStr
class Config(BaseSettings):
app_port: int
app_host: str
db_username: str
db_password: SecretStr | None = None
db_host: str
db_port: int
db_database_name: str
| 19.416667 | 44 | 0.708155 | 32 | 233 | 4.90625 | 0.5625 | 0.095541 | 0.11465 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.236052 | 233 | 11 | 45 | 21.181818 | 0.882022 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.111111 | 0.111111 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
0d471a04581d2624dfe8a05f3c2a7b2f685d4172 | 268 | py | Python | techStore(final)/img/image_data/admin.py | X3eRo0/E-Commerce-Website | ec324a798abb802ca98b5b9da5a6c115a8844207 | [
"MIT"
] | null | null | null | techStore(final)/img/image_data/admin.py | X3eRo0/E-Commerce-Website | ec324a798abb802ca98b5b9da5a6c115a8844207 | [
"MIT"
] | null | null | null | techStore(final)/img/image_data/admin.py | X3eRo0/E-Commerce-Website | ec324a798abb802ca98b5b9da5a6c115a8844207 | [
"MIT"
] | null | null | null | from django.contrib import admin
# Register your models here.
from .models import Product
# Register your models here.
admin.site.register(Product)
class ProductAdmin(admin.ModelAdmin):
list_display=['__str__','slug']
class Meta:
model=Product
| 17.866667 | 37 | 0.727612 | 33 | 268 | 5.757576 | 0.606061 | 0.126316 | 0.189474 | 0.231579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.182836 | 268 | 14 | 38 | 19.142857 | 0.86758 | 0.197761 | 0 | 0 | 0 | 0 | 0.052133 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
0d4d943ad05116319e05649ae5d07a7c02e5109b | 43,643 | py | Python | mabed/functions.py | FirasOdeh/MABED | 08f5d74b321344b6760c823423d7942330515277 | [
"MIT"
] | 1 | 2020-07-26T22:24:51.000Z | 2020-07-26T22:24:51.000Z | mabed/functions.py | FirasOdeh/MABED | 08f5d74b321344b6760c823423d7942330515277 | [
"MIT"
] | null | null | null | mabed/functions.py | FirasOdeh/MABED | 08f5d74b321344b6760c823423d7942330515277 | [
"MIT"
] | 1 | 2019-09-13T14:00:37.000Z | 2019-09-13T14:00:37.000Z | # coding: utf-8
import timeit
import json
import time
from flask import jsonify
from mabed.es_corpus import Corpus
from mabed.mabed import MABED
from mabed.es_connector import Es_connector
from gensim.models.doc2vec import Doc2Vec, TaggedDocument
from nltk.tokenize import word_tokenize
__author__ = "Firas Odeh"
__e... | 32.161385 | 156 | 0.387279 | 3,422 | 43,643 | 4.747224 | 0.092344 | 0.055525 | 0.055402 | 0.069252 | 0.757218 | 0.730871 | 0.710557 | 0.682918 | 0.663158 | 0.610773 | 0 | 0.010849 | 0.472012 | 43,643 | 1,357 | 157 | 32.161385 | 0.694137 | 0.134592 | 0 | 0.643281 | 0 | 0.001976 | 0.10761 | 0.009163 | 0 | 0 | 0 | 0 | 0 | 1 | 0.048419 | false | 0 | 0.008893 | 0 | 0.108696 | 0.030632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0d4f71998008f8db531d605b48db6a372ef0e489 | 265 | py | Python | awwards/admin.py | Jay-68/awwards | 6970beb635961c73b116b3b83a983112cf81c543 | [
"MIT"
] | null | null | null | awwards/admin.py | Jay-68/awwards | 6970beb635961c73b116b3b83a983112cf81c543 | [
"MIT"
] | 6 | 2020-06-06T00:18:21.000Z | 2021-09-08T01:28:51.000Z | awwards/admin.py | Jay-68/awwards | 6970beb635961c73b116b3b83a983112cf81c543 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.contrib import admin
from awwards.models import Profile, Project, Review
# Register your models here.
admin.site.register(Project)
admin.site.register(Profile)
admin.site.register(Review) | 26.5 | 51 | 0.792453 | 36 | 265 | 5.694444 | 0.555556 | 0.131707 | 0.24878 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004219 | 0.10566 | 265 | 10 | 52 | 26.5 | 0.860759 | 0.181132 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 3 |
b4b62d657c63aeafc61a47dd7bb2b184df369ec1 | 528 | py | Python | datasets/multi_task_dataset_coco.py | zhangwenwen/multi-task.chainer | 90a9d0483f567f1f1c8d34c85f9747d1bc7d3fc0 | [
"Apache-2.0"
] | null | null | null | datasets/multi_task_dataset_coco.py | zhangwenwen/multi-task.chainer | 90a9d0483f567f1f1c8d34c85f9747d1bc7d3fc0 | [
"Apache-2.0"
] | null | null | null | datasets/multi_task_dataset_coco.py | zhangwenwen/multi-task.chainer | 90a9d0483f567f1f1c8d34c85f9747d1bc7d3fc0 | [
"Apache-2.0"
] | null | null | null | from chainercv.chainer_experimental.datasets.sliceable import GetterDataset
class Multi_task_COCO(GetterDataset):
def __init__(self):
super(Multi_task_COCO, self).__init__()
def __len__(self):
pass
def _get_annotations(self):
pass
def _get_image(self):
pass
def ... | 22.956522 | 75 | 0.698864 | 60 | 528 | 5.616667 | 0.466667 | 0.094955 | 0.130564 | 0.124629 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.221591 | 528 | 22 | 76 | 24 | 0.819951 | 0 | 0 | 0.266667 | 0 | 0 | 0.073864 | 0.039773 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0.266667 | 0.066667 | 0 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
b4bd980e2c005219f6680ce4f22437b3e992067b | 328 | py | Python | WebAPI/DB.py | cbluoss/TerraCtl | d191e3da22eeac4f656948af032cde9272369126 | [
"Apache-2.0"
] | null | null | null | WebAPI/DB.py | cbluoss/TerraCtl | d191e3da22eeac4f656948af032cde9272369126 | [
"Apache-2.0"
] | null | null | null | WebAPI/DB.py | cbluoss/TerraCtl | d191e3da22eeac4f656948af032cde9272369126 | [
"Apache-2.0"
] | null | null | null | from flask_sqlalchemy import SQLAlchemy
db = SQLAlchemy(app)
class State(db.Model):
id = db.Column(db.Integer, primary_key=True)
date = db.Column(db.DateTime, unique=True, nullable=False)
state = db.Column(db.Text, unique=True, nullable=False)
def __repr__(self):
return '<State at %r>' % sel... | 23.428571 | 62 | 0.689024 | 47 | 328 | 4.680851 | 0.574468 | 0.109091 | 0.136364 | 0.209091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.182927 | 328 | 13 | 63 | 25.230769 | 0.820896 | 0 | 0 | 0 | 0 | 0 | 0.039755 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | 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 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
b4d971245ffdf6202b736d2f862ddedcb33d61ee | 452 | py | Python | model/model.py | ddl-aambekar/model | cecffb7e44f8b9e5a65092b481d80027cc5302c7 | [
"MIT"
] | null | null | null | model/model.py | ddl-aambekar/model | cecffb7e44f8b9e5a65092b481d80027cc5302c7 | [
"MIT"
] | null | null | null | model/model.py | ddl-aambekar/model | cecffb7e44f8b9e5a65092b481d80027cc5302c7 | [
"MIT"
] | null | null | null | # This is a sample Python model
# Import dependencies
import random
# Define a helper function to generate a random number:
def random_number(start, stop):
return random.uniform(start, stop)
# Define a function to create an API
# To call, use {"data": {"start": 1, "stop": 100}}
# Learn more at http://support.d... | 26.588235 | 76 | 0.736726 | 70 | 452 | 4.685714 | 0.6 | 0.146341 | 0.079268 | 0.128049 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033943 | 0.152655 | 452 | 16 | 77 | 28.25 | 0.822454 | 0.579646 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
b4f4bb89e542807260450c829a6e01833539ccab | 628 | py | Python | src/generalStatistics/generalStatistics.py | nickeita/su2021_is601_project2 | 4974a05517c7884751c5ece09177af2a7640f503 | [
"MIT"
] | null | null | null | src/generalStatistics/generalStatistics.py | nickeita/su2021_is601_project2 | 4974a05517c7884751c5ece09177af2a7640f503 | [
"MIT"
] | null | null | null | src/generalStatistics/generalStatistics.py | nickeita/su2021_is601_project2 | 4974a05517c7884751c5ece09177af2a7640f503 | [
"MIT"
] | null | null | null | from statsAuxiliary.statsAuxiliary import StatsAuxiliary
from generalStatistics.generalMedian import general_median
from generalStatistics.generalMode import general_mode
from generalStatistics.generalMean import general_mean
class GeneralStatistics(StatsAuxiliary):
result = 0
def __init__(self):
sup... | 23.259259 | 58 | 0.707006 | 73 | 628 | 5.849315 | 0.30137 | 0.140515 | 0.063232 | 0.105386 | 0.252927 | 0.098361 | 0 | 0 | 0 | 0 | 0 | 0.002053 | 0.224522 | 628 | 26 | 59 | 24.153846 | 0.874743 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0.055556 | 0.222222 | 0 | 0.722222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
37091655af164c3d3023bdb10b1b3ec52ac6ec0e | 391 | py | Python | fish-finder/bin/test-statistics.py | MRSD2018/reefbot-1 | a595ca718d0cda277726894a3105815cef000475 | [
"MIT"
] | null | null | null | fish-finder/bin/test-statistics.py | MRSD2018/reefbot-1 | a595ca718d0cda277726894a3105815cef000475 | [
"MIT"
] | null | null | null | fish-finder/bin/test-statistics.py | MRSD2018/reefbot-1 | a595ca718d0cda277726894a3105815cef000475 | [
"MIT"
] | null | null | null | from FishFinder import *
from numpy import *
import sys
if __name__=="__main__":
dist = Statistics()
print dist.mean()
print dist.variance()
print dist.standard_deviation()
num_samples = int(sys.argv[1])
s = random.normal(0,0.1,num_samples)
dist.update(num_samples,sum(s),sum(s**2.))
print dist.me... | 16.291667 | 44 | 0.68798 | 56 | 391 | 4.571429 | 0.482143 | 0.210938 | 0.101563 | 0.140625 | 0.4375 | 0.4375 | 0.4375 | 0.4375 | 0.4375 | 0.4375 | 0 | 0.015528 | 0.176471 | 391 | 23 | 45 | 17 | 0.779503 | 0 | 0 | 0.428571 | 0 | 0 | 0.02046 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.214286 | null | null | 0.428571 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
2e97b99c2a2d0234182799bd75faf0972338d1b5 | 924 | py | Python | bevodevo/policies/params.py | riveSunder/bevodevo | d45ec97b825489a9e94f79843e7169daa9491264 | [
"MIT"
] | 4 | 2020-12-02T22:28:29.000Z | 2020-12-28T05:42:06.000Z | bevodevo/policies/params.py | riveSunder/bevodevo | d45ec97b825489a9e94f79843e7169daa9491264 | [
"MIT"
] | 5 | 2020-12-27T16:43:42.000Z | 2021-11-11T21:00:15.000Z | bevodevo/policies/params.py | riveSunder/bevodevo | d45ec97b825489a9e94f79843e7169daa9491264 | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod
from collections import OrderedDict
from functools import reduce
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
import gym
import matplotlib.pyplot as plt
class Params():
"""
policy which outputs the policy parameters directly, i.e. ... | 18.857143 | 85 | 0.654762 | 129 | 924 | 4.503876 | 0.48062 | 0.051635 | 0.051635 | 0.072289 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008759 | 0.258658 | 924 | 48 | 86 | 19.25 | 0.839416 | 0.099567 | 0 | 0 | 0 | 0 | 0.012255 | 0 | 0 | 0 | 0 | 0 | 0.037037 | 1 | 0.222222 | false | 0.037037 | 0.333333 | 0.074074 | 0.666667 | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
2ead1978b9471cc2c741ef2a582e4ebb267d935d | 25 | py | Python | camel_bubblesort/__init__.py | camel-ci/camel-ci-python3 | 6400e9d00de1df232733146d27ce1f7ed9d6069e | [
"MIT"
] | null | null | null | camel_bubblesort/__init__.py | camel-ci/camel-ci-python3 | 6400e9d00de1df232733146d27ce1f7ed9d6069e | [
"MIT"
] | null | null | null | camel_bubblesort/__init__.py | camel-ci/camel-ci-python3 | 6400e9d00de1df232733146d27ce1f7ed9d6069e | [
"MIT"
] | null | null | null | name = "camel-ci-python"
| 12.5 | 24 | 0.68 | 4 | 25 | 4.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12 | 25 | 1 | 25 | 25 | 0.772727 | 0 | 0 | 0 | 0 | 0 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2ecdad389ccf208f7a5df10148c72469ce43c1f1 | 78 | py | Python | rpcpy/exceptions.py | william-wambua/rpc.py | af43ccc9734c751ab49171c3a4c004a996612d73 | [
"Apache-2.0"
] | 152 | 2020-07-11T07:56:35.000Z | 2022-03-23T07:06:19.000Z | rpcpy/exceptions.py | william-wambua/rpc.py | af43ccc9734c751ab49171c3a4c004a996612d73 | [
"Apache-2.0"
] | 14 | 2020-07-16T02:16:21.000Z | 2022-03-30T13:54:59.000Z | rpcpy/exceptions.py | william-wambua/rpc.py | af43ccc9734c751ab49171c3a4c004a996612d73 | [
"Apache-2.0"
] | 11 | 2020-11-26T14:23:05.000Z | 2021-12-02T18:36:29.000Z | class SerializerNotFound(Exception):
"""
Serializer not found
"""
| 15.6 | 36 | 0.641026 | 6 | 78 | 8.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.24359 | 78 | 4 | 37 | 19.5 | 0.847458 | 0.25641 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 3 |
2ed6a8d904e05871024068c0cac29adb9d68d241 | 2,535 | py | Python | CIM14/IEC61968/Customers/__init__.py | MaximeBaudette/PyCIM | d68ee5ccfc1d32d44c5cd09fb173142fb5ff4f14 | [
"MIT"
] | 58 | 2015-04-22T10:41:03.000Z | 2022-03-29T16:04:34.000Z | CIM14/IEC61968/Customers/__init__.py | MaximeBaudette/PyCIM | d68ee5ccfc1d32d44c5cd09fb173142fb5ff4f14 | [
"MIT"
] | 12 | 2015-08-26T03:57:23.000Z | 2020-12-11T20:14:42.000Z | CIM14/IEC61968/Customers/__init__.py | MaximeBaudette/PyCIM | d68ee5ccfc1d32d44c5cd09fb173142fb5ff4f14 | [
"MIT"
] | 35 | 2015-01-10T12:21:03.000Z | 2020-09-09T08:18:16.000Z | # Copyright (C) 2010-2011 Richard Lincoln
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
# deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publish... | 47.830189 | 249 | 0.794083 | 316 | 2,535 | 6.370253 | 0.541139 | 0.043716 | 0.059116 | 0.090412 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029913 | 0.142801 | 2,535 | 52 | 250 | 48.75 | 0.896457 | 0.702959 | 0 | 0.2 | 0 | 0 | 0.090379 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.2 | 0.466667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
2ef9a4a0869a83d98d0cd66880ca476ab357c30f | 4,209 | py | Python | apps/tests.py | roycek7/django_application | af94c2e846c78391b62b94b3cb9a1ed9b94bb886 | [
"MIT"
] | null | null | null | apps/tests.py | roycek7/django_application | af94c2e846c78391b62b94b3cb9a1ed9b94bb886 | [
"MIT"
] | null | null | null | apps/tests.py | roycek7/django_application | af94c2e846c78391b62b94b3cb9a1ed9b94bb886 | [
"MIT"
] | null | null | null | import unittest
from django.test import Client
from django.urls import reverse
from rest_framework import status
client = Client()
class VerifyTestCases(unittest.TestCase):
def setUp(self):
self.valid_payload = {
'third_party_company_name': 'UD Saragih Tbk'
}
self.valid_payl... | 38.614679 | 114 | 0.647897 | 501 | 4,209 | 5.197605 | 0.169661 | 0.103687 | 0.158986 | 0.076037 | 0.788018 | 0.749232 | 0.749232 | 0.749232 | 0.65937 | 0.567588 | 0 | 0.042402 | 0.232359 | 4,209 | 108 | 115 | 38.972222 | 0.763541 | 0 | 0 | 0.436782 | 0 | 0 | 0.258731 | 0.047755 | 0 | 0 | 0 | 0 | 0.206897 | 1 | 0.126437 | false | 0 | 0.045977 | 0 | 0.195402 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2efef3c8a6ea342d7354f604283bb82e020766c3 | 2,046 | py | Python | SOLID/Lab/03_LSP/ducks.py | vasetousa/OOP | e4fedc497dd149c9800613ea11846e0e770d122c | [
"MIT"
] | null | null | null | SOLID/Lab/03_LSP/ducks.py | vasetousa/OOP | e4fedc497dd149c9800613ea11846e0e770d122c | [
"MIT"
] | null | null | null | SOLID/Lab/03_LSP/ducks.py | vasetousa/OOP | e4fedc497dd149c9800613ea11846e0e770d122c | [
"MIT"
] | null | null | null | from abc import abstractmethod, ABC
""" BEFORE """
# class Duck(ABC):
# pass
#
#
# class RubberDuck(Duck):
# @staticmethod
# def quack():
# return "Squeek"
#
# @staticmethod
# def walk():
# """Rubber duck can walk only if you move it"""
# raise Exception('I cannot walk by m... | 18.432432 | 60 | 0.552297 | 218 | 2,046 | 5.146789 | 0.261468 | 0.147059 | 0.074866 | 0.115865 | 0.704991 | 0.590018 | 0.590018 | 0.590018 | 0.499109 | 0.499109 | 0 | 0.007273 | 0.327957 | 2,046 | 110 | 61 | 18.6 | 0.808727 | 0.476051 | 0 | 0.463415 | 0 | 0 | 0.071575 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.268293 | false | 0 | 0.02439 | 0.195122 | 0.609756 | 0.02439 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
2c0de784072946dcd73896aff1d655ad7e98b1c7 | 1,278 | py | Python | code_examples/compiling_references/compiling_ref1.py | thautwarm/ebnf-parser-generator- | 59d9e3f04ba20a5efe2271206967ed6facda0840 | [
"MIT"
] | null | null | null | code_examples/compiling_references/compiling_ref1.py | thautwarm/ebnf-parser-generator- | 59d9e3f04ba20a5efe2271206967ed6facda0840 | [
"MIT"
] | null | null | null | code_examples/compiling_references/compiling_ref1.py | thautwarm/ebnf-parser-generator- | 59d9e3f04ba20a5efe2271206967ed6facda0840 | [
"MIT"
] | null | null | null | # This file is automatically generated by EBNFParser.
from Ruikowa.ObjectRegex.Tokenizer import unique_literal_cache_pool, regex_matcher, char_matcher, str_matcher, Tokenizer
from Ruikowa.ObjectRegex.Node import AstParser, Ref, SeqParser, LiteralValueParser, LiteralNameParser, Undef
namespace = globals()
recur_searcher... | 42.6 | 120 | 0.72457 | 164 | 1,278 | 5.27439 | 0.384146 | 0.165318 | 0.228902 | 0.279769 | 0.17341 | 0.071676 | 0 | 0 | 0 | 0 | 0 | 0.00274 | 0.143192 | 1,278 | 29 | 121 | 44.068966 | 0.787215 | 0.057121 | 0 | 0 | 1 | 0 | 0.056667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.5 | 0.045455 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2c2668e3bcb5f44795108dbfd1de21f3c25f647d | 11,658 | py | Python | discogspy/core/rq_database.py | cpow-89/discogspy | 4a8f72080dd00e365249825c2bb66ad0c0cd6dd9 | [
"Apache-2.0"
] | null | null | null | discogspy/core/rq_database.py | cpow-89/discogspy | 4a8f72080dd00e365249825c2bb66ad0c0cd6dd9 | [
"Apache-2.0"
] | 1 | 2022-02-26T06:24:57.000Z | 2022-02-26T06:24:57.000Z | discogspy/core/rq_database.py | cpow-89/discogspy | 4a8f72080dd00e365249825c2bb66ad0c0cd6dd9 | [
"Apache-2.0"
] | null | null | null | # AUTOGENERATED! DO NOT EDIT! File to edit: nbs/02_core.rq_database.ipynb (unless otherwise specified).
__all__ = ['get_release', 'get_user_release_rating', 'update_user_release_rating', 'delete_user_release_rating',
'get_community_release_rating', 'get_master_release', 'get_releases_related_to_master_relea... | 27.956835 | 120 | 0.584663 | 1,239 | 11,658 | 5.387409 | 0.110573 | 0.042846 | 0.036255 | 0.05603 | 0.793408 | 0.785618 | 0.758352 | 0.678802 | 0.659176 | 0.598352 | 0 | 0.001533 | 0.328701 | 11,658 | 417 | 121 | 27.956835 | 0.851393 | 0.337965 | 0 | 0.624161 | 1 | 0 | 0.099565 | 0.070958 | 0 | 0 | 0 | 0 | 0 | 1 | 0.073826 | false | 0 | 0.020134 | 0 | 0.167785 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2c274a97c897b62f3d1077267ec1b652770a8304 | 51 | py | Python | 01-algorithmic-design-and-techniques/week-4/inversions.py | andrewnachtigal/UCSD-Algorithms | 25acae36752e37fab74b8e331db554af704ccf4c | [
"MIT"
] | null | null | null | 01-algorithmic-design-and-techniques/week-4/inversions.py | andrewnachtigal/UCSD-Algorithms | 25acae36752e37fab74b8e331db554af704ccf4c | [
"MIT"
] | null | null | null | 01-algorithmic-design-and-techniques/week-4/inversions.py | andrewnachtigal/UCSD-Algorithms | 25acae36752e37fab74b8e331db554af704ccf4c | [
"MIT"
] | null | null | null | #!/user/bin/python
'''Number of Inversions
'''
| 6.375 | 23 | 0.607843 | 6 | 51 | 5.166667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 51 | 7 | 24 | 7.285714 | 0.738095 | 0.745098 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2c2794a774c52a9f7714925e131283f12cc772a1 | 32 | py | Python | config.py | Go2SleepSoshi/ct_test | a29295a79d1f7dc98fa3067f62308b13d6b0a0e5 | [
"bzip2-1.0.6"
] | null | null | null | config.py | Go2SleepSoshi/ct_test | a29295a79d1f7dc98fa3067f62308b13d6b0a0e5 | [
"bzip2-1.0.6"
] | 1 | 2021-06-02T00:21:44.000Z | 2021-06-02T00:21:44.000Z | config.py | Go2SleepSoshi/ct_test | a29295a79d1f7dc98fa3067f62308b13d6b0a0e5 | [
"bzip2-1.0.6"
] | null | null | null | token = ''
db_name = 'testDB.db' | 16 | 21 | 0.625 | 5 | 32 | 3.8 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15625 | 32 | 2 | 21 | 16 | 0.703704 | 0 | 0 | 0 | 0 | 0 | 0.272727 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2c2c7dc4e978a457cf69210b1f21ff48491424e6 | 20 | py | Python | T07-00/program.py | maa76/SSof-Project1920 | 9b4ad9ac41a648c425fcfcd49cd52ff84e528bde | [
"MIT"
] | 2 | 2019-11-20T19:26:07.000Z | 2019-11-22T00:42:23.000Z | T07-00/program.py | maa76/SSof-Project1920 | 9b4ad9ac41a648c425fcfcd49cd52ff84e528bde | [
"MIT"
] | 2 | 2019-11-28T05:21:24.000Z | 2019-11-28T05:21:58.000Z | T07-00/program.py | maa76/SSof-Project1920 | 9b4ad9ac41a648c425fcfcd49cd52ff84e528bde | [
"MIT"
] | 25 | 2019-11-27T01:40:56.000Z | 2019-12-04T23:38:59.000Z | a = source()
sink(a) | 10 | 12 | 0.6 | 4 | 20 | 3 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15 | 20 | 2 | 13 | 10 | 0.705882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2c2de4ab92f754ea4ca88d9fda91e620ad6f3e37 | 148 | py | Python | djangox2/apps.py | DrPayne25/djangoX | 37f3c3552714dd1d3747ba3bb00ce939c0046723 | [
"MIT"
] | null | null | null | djangox2/apps.py | DrPayne25/djangoX | 37f3c3552714dd1d3747ba3bb00ce939c0046723 | [
"MIT"
] | null | null | null | djangox2/apps.py | DrPayne25/djangoX | 37f3c3552714dd1d3747ba3bb00ce939c0046723 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class Djangox2Config(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'djangox2'
| 21.142857 | 56 | 0.763514 | 17 | 148 | 6.529412 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015873 | 0.148649 | 148 | 6 | 57 | 24.666667 | 0.865079 | 0 | 0 | 0 | 0 | 0 | 0.25 | 0.195946 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
25948302ee12e27c105c3550c7dcfd3c34daa0c4 | 241 | py | Python | src/canvas.py | vt-sailbot/sailbot-18 | 55b4c4c18f24ff0e7476a7aedea6089fd78c6a99 | [
"MIT"
] | 1 | 2018-09-07T16:47:20.000Z | 2018-09-07T16:47:20.000Z | src/canvas.py | vt-sailbot/sailbot-18 | 55b4c4c18f24ff0e7476a7aedea6089fd78c6a99 | [
"MIT"
] | null | null | null | src/canvas.py | vt-sailbot/sailbot-18 | 55b4c4c18f24ff0e7476a7aedea6089fd78c6a99 | [
"MIT"
] | null | null | null | """
Reads the Airmar three times, probably was used for testing
"""
import airmar_reader as ar
import time
ar.print_airmar_sentence_contents = True
ar.setup()
ar.read_airmar()
time.sleep(1)
ar.read_airmar()
time.sleep(1)
ar.read_airmar()
| 15.0625 | 59 | 0.763485 | 40 | 241 | 4.425 | 0.575 | 0.101695 | 0.20339 | 0.180791 | 0.316384 | 0.316384 | 0.316384 | 0.316384 | 0.316384 | 0 | 0 | 0.009479 | 0.124481 | 241 | 15 | 60 | 16.066667 | 0.829384 | 0.244813 | 0 | 0.555556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.222222 | 0 | 0.222222 | 0.111111 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
25958104c69633caf56e0a89ccc9221078d9c5c6 | 90 | py | Python | security/enums/hash_type.py | LiquidFun/stegowav | 89ef0b40c52c834febffeeefba30eccbb0862e29 | [
"Apache-2.0"
] | null | null | null | security/enums/hash_type.py | LiquidFun/stegowav | 89ef0b40c52c834febffeeefba30eccbb0862e29 | [
"Apache-2.0"
] | null | null | null | security/enums/hash_type.py | LiquidFun/stegowav | 89ef0b40c52c834febffeeefba30eccbb0862e29 | [
"Apache-2.0"
] | null | null | null | from enum import Enum
class HashType(Enum):
NONE = 0
PBKDF2 = 1
SCRYPT = 2
| 10 | 21 | 0.6 | 13 | 90 | 4.153846 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 0.333333 | 90 | 8 | 22 | 11.25 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
25a2089a539212c907a3f0d1dba03faa93ad6dd3 | 183 | py | Python | donate/donate/web_form/donation_form/donation_form.py | smriti-ps/Donation-portal | 07b18b318274fbc8833d320a03f5cb4395f5c5cd | [
"MIT"
] | null | null | null | donate/donate/web_form/donation_form/donation_form.py | smriti-ps/Donation-portal | 07b18b318274fbc8833d320a03f5cb4395f5c5cd | [
"MIT"
] | null | null | null | donate/donate/web_form/donation_form/donation_form.py | smriti-ps/Donation-portal | 07b18b318274fbc8833d320a03f5cb4395f5c5cd | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
import frappe
def get_context(context):
# do your magic here
context.title="Donation Form"
context.Introduction="Kindly fill the form"
| 16.636364 | 44 | 0.786885 | 25 | 183 | 5.52 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147541 | 183 | 10 | 45 | 18.3 | 0.884615 | 0.098361 | 0 | 0 | 0 | 0 | 0.202454 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
25ab57126f00560873412fac3a9604bdbb7be7df | 154 | py | Python | util/config.py | benvenutto/wrangle-and-analyze-data | 49d2a8128c4f334ef5b74431596ed0e776eedec6 | [
"MIT"
] | null | null | null | util/config.py | benvenutto/wrangle-and-analyze-data | 49d2a8128c4f334ef5b74431596ed0e776eedec6 | [
"MIT"
] | null | null | null | util/config.py | benvenutto/wrangle-and-analyze-data | 49d2a8128c4f334ef5b74431596ed0e776eedec6 | [
"MIT"
] | null | null | null | import yaml
def read_creds(conf_path):
with open(conf_path, 'r') as cf:
config = yaml.load(cf, Loader=yaml.FullLoader)
return config
| 22 | 54 | 0.662338 | 23 | 154 | 4.304348 | 0.73913 | 0.161616 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.233766 | 154 | 6 | 55 | 25.666667 | 0.838983 | 0 | 0 | 0 | 0 | 0 | 0.006494 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
25ba7cdabafbda8bd2a2718343301aa8d15e6515 | 13,581 | py | Python | networkapi/api_pools/tests/pool_v3_test.py | brunodevel/GloboNetworkAPI | ea8eebc0337636f9250e628cc392514934db8edd | [
"Apache-2.0"
] | null | null | null | networkapi/api_pools/tests/pool_v3_test.py | brunodevel/GloboNetworkAPI | ea8eebc0337636f9250e628cc392514934db8edd | [
"Apache-2.0"
] | null | null | null | networkapi/api_pools/tests/pool_v3_test.py | brunodevel/GloboNetworkAPI | ea8eebc0337636f9250e628cc392514934db8edd | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import json
import logging
from django.test.client import Client
from networkapi.test.test_case import NetworkApiTestCase
log = logging.getLogger(__name__)
class PoolTestV3Case(NetworkApiTestCase):
maxDiff = None
def setUp(self):
self.client = Client()
def tearDown(se... | 40.180473 | 91 | 0.674398 | 1,723 | 13,581 | 4.885084 | 0.06036 | 0.052275 | 0.058691 | 0.076749 | 0.952477 | 0.82571 | 0.678033 | 0.64643 | 0.638826 | 0.637163 | 0 | 0.008799 | 0.230101 | 13,581 | 337 | 92 | 40.299703 | 0.796194 | 0.102275 | 0 | 0.539171 | 0 | 0 | 0.271867 | 0.199548 | 0 | 0 | 0 | 0 | 0.059908 | 1 | 0.198157 | false | 0.004608 | 0.018433 | 0 | 0.225806 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
25c1e4741b3d74b445a6694ec821d41e5a3410dd | 666 | py | Python | marketplaces/apps/market_community/urls.py | diassor/CollectorCity-Market-Place | 892ad220b8cf1c0fc7433f625213fe61729522b2 | [
"Apache-2.0"
] | 135 | 2015-03-19T13:28:18.000Z | 2022-03-27T06:41:42.000Z | marketplaces/apps/market_community/urls.py | dfcoding/CollectorCity-Market-Place | e59acec3d600c049323397b17cae14fdcaaaec07 | [
"Apache-2.0"
] | null | null | null | marketplaces/apps/market_community/urls.py | dfcoding/CollectorCity-Market-Place | e59acec3d600c049323397b17cae14fdcaaaec07 | [
"Apache-2.0"
] | 83 | 2015-01-30T01:00:15.000Z | 2022-03-08T17:25:10.000Z | from django.conf.urls.defaults import *
urlpatterns = patterns('',
url('^$', 'market_community.views.overview', name='market_community'),
url(r'^overview/$', 'market_community.views.overview', name='community_overview'),
url(r'^forums/$', 'market_community.views.forums', name='community_forums'),
url(... | 51.230769 | 114 | 0.704204 | 81 | 666 | 5.592593 | 0.283951 | 0.264901 | 0.309051 | 0.12362 | 0.14128 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088589 | 666 | 12 | 115 | 55.5 | 0.746293 | 0 | 0 | 0 | 0 | 0 | 0.611111 | 0.396396 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
25cae596a332af3b2e831db9be47ec133ae28ad2 | 838 | py | Python | src/apps/configs/api/serializers.py | MatsuiLin101/aprp | b015be3ce01683671453537beeb7b1db93d4b5e9 | [
"MIT"
] | 2 | 2020-07-11T23:20:54.000Z | 2021-07-14T03:15:28.000Z | src/apps/configs/api/serializers.py | MatsuiLin101/aprp | b015be3ce01683671453537beeb7b1db93d4b5e9 | [
"MIT"
] | 38 | 2018-09-26T15:11:34.000Z | 2022-03-18T08:05:02.000Z | src/apps/configs/api/serializers.py | MatsuiLin101/aprp | b015be3ce01683671453537beeb7b1db93d4b5e9 | [
"MIT"
] | 6 | 2018-08-24T05:50:32.000Z | 2019-03-12T01:22:44.000Z | from rest_framework.serializers import (
ModelSerializer,
)
from apps.configs.models import (
Config,
AbstractProduct,
Chart,
Type,
Source,
Unit,
)
class ChartSerializer(ModelSerializer):
class Meta:
model = Chart
fields = '__all__'
class TypeSerializer(ModelSerialize... | 17.458333 | 49 | 0.643198 | 71 | 838 | 7.239437 | 0.366197 | 0.233463 | 0.280156 | 0.338521 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.282816 | 838 | 47 | 50 | 17.829787 | 0.855241 | 0 | 0 | 0.342857 | 0 | 0 | 0.050119 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.057143 | 0 | 0.4 | 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 | 0 | 0 | 0 | 3 |
25ce221f0bedf6f0f2084d7eb2a72c53c1d652d1 | 486 | py | Python | 5200_flask_app/app/forms.py | F-Zainab/SWArch | e9b5638d0287278f78b21428b2bc5bcfba417585 | [
"MIT"
] | null | null | null | 5200_flask_app/app/forms.py | F-Zainab/SWArch | e9b5638d0287278f78b21428b2bc5bcfba417585 | [
"MIT"
] | 1 | 2020-02-17T19:32:28.000Z | 2020-02-17T20:20:23.000Z | 5200_flask_app/app/forms.py | F-Zainab/SWArch | e9b5638d0287278f78b21428b2bc5bcfba417585 | [
"MIT"
] | 3 | 2020-01-31T05:10:30.000Z | 2020-03-04T03:02:56.000Z | #Form classes can be declared here and imported into the routes view
#More to come soon
from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, BooleanField, SubmitField
from wtforms.validators import DataRequired
class TestForm(FlaskForm):
username = StringField('Username', validators=[Dat... | 40.5 | 73 | 0.779835 | 55 | 486 | 6.854545 | 0.672727 | 0.058355 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135802 | 486 | 11 | 74 | 44.181818 | 0.897619 | 0.17284 | 0 | 0 | 0 | 0 | 0.085 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.25 | 0.375 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
25ebf785e4d6f9778c95c964bce64909e08df958 | 250 | py | Python | convert.py | HitkoDev/siamesenetwork-tensorflow | ca04d1d87f852754ee3d9401c600ee89f2b1e6f3 | [
"MIT"
] | null | null | null | convert.py | HitkoDev/siamesenetwork-tensorflow | ca04d1d87f852754ee3d9401c600ee89f2b1e6f3 | [
"MIT"
] | null | null | null | convert.py | HitkoDev/siamesenetwork-tensorflow | ca04d1d87f852754ee3d9401c600ee89f2b1e6f3 | [
"MIT"
] | null | null | null | import tensorflow as tf
from model2 import model
flags = tf.compat.v1.app.flags
FLAGS = flags.FLAGS
flags.DEFINE_string('model', '', 'Model to restore')
model.load_weights(FLAGS.model, by_name=True, skip_mismatch=True)
model.save('converted.h5')
| 20.833333 | 65 | 0.764 | 39 | 250 | 4.794872 | 0.641026 | 0.213904 | 0.240642 | 0.213904 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013453 | 0.108 | 250 | 11 | 66 | 22.727273 | 0.825112 | 0 | 0 | 0 | 0 | 0 | 0.132 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 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 | 0 | 0 | 0 | 3 |
d33fb9292e810b46de3f519830736376800ed2b0 | 211 | py | Python | tracking_policy_agendas/classifiers/xgb_clf.py | MohammadForouhesh/Computational-Political-Science-Papers-Implementations | 403bc6123b4e6f4c30667aa135a5d5a588638209 | [
"MIT"
] | 1 | 2022-02-19T09:52:47.000Z | 2022-02-19T09:52:47.000Z | tracking_policy_agendas/classifiers/xgb_clf.py | Faethe79/tracking-policy-agendas | 1bdc735f37d2d3bdce572fd719f1c7d307db008e | [
"MIT"
] | 5 | 2022-03-12T13:50:30.000Z | 2022-03-14T10:34:11.000Z | tracking_policy_agendas/classifiers/xgb_clf.py | Faethe79/tracking-policy-agendas | 1bdc735f37d2d3bdce572fd719f1c7d307db008e | [
"MIT"
] | 1 | 2022-02-27T10:00:09.000Z | 2022-02-27T10:00:09.000Z | from xgboost import XGBClassifier
from .meta_clf import MetaClf
class XgbClf(MetaClf):
def __init__(self, **kwargs):
super().__init__(classifier_instance=XGBClassifier(n_estimators=300), **kwargs)
| 26.375 | 87 | 0.758294 | 25 | 211 | 5.96 | 0.76 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016484 | 0.137441 | 211 | 7 | 88 | 30.142857 | 0.802198 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
d34039453c7df2099ce2a94673862079d78a100e | 142 | py | Python | clip/mangled/__torch__/torch/nn/modules/linear/___torch_mangle_9449.py | shawwn/CLIP | ba33b4eb956e6f507b4b39468b3b7336ac2260a1 | [
"MIT"
] | 6 | 2021-01-09T14:34:17.000Z | 2021-06-13T06:46:43.000Z | clip/ViT-B-32-cpu/code/__torch__/torch/nn/modules/linear/___torch_mangle_9467.py | shawwn/CLIP | ba33b4eb956e6f507b4b39468b3b7336ac2260a1 | [
"MIT"
] | null | null | null | clip/ViT-B-32-cpu/code/__torch__/torch/nn/modules/linear/___torch_mangle_9467.py | shawwn/CLIP | ba33b4eb956e6f507b4b39468b3b7336ac2260a1 | [
"MIT"
] | 2 | 2021-01-09T10:30:04.000Z | 2021-01-09T18:43:29.000Z | class _LinearWithBias(Module):
__parameters__ = ["weight", "bias", ]
__buffers__ = []
weight : Tensor
bias : Tensor
training : bool
| 20.285714 | 39 | 0.669014 | 13 | 142 | 6.615385 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.204225 | 142 | 6 | 40 | 23.666667 | 0.761062 | 0 | 0 | 0 | 0 | 0 | 0.070423 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
d35be7b8a1d6c3450cf2915e01f4579292468e55 | 974 | py | Python | devconf/ast/mixins/node.py | everclear72216/ucapi | 7f5afbee6b3b772086d33c2ee37e85e65af61697 | [
"MIT"
] | null | null | null | devconf/ast/mixins/node.py | everclear72216/ucapi | 7f5afbee6b3b772086d33c2ee37e85e65af61697 | [
"MIT"
] | 5 | 2019-03-04T16:17:30.000Z | 2019-05-04T08:34:19.000Z | devconf/ast/mixins/node.py | everclear72216/ucapi | 7f5afbee6b3b772086d33c2ee37e85e65af61697 | [
"MIT"
] | null | null | null | class Node(object):
def __init__(self):
super().__init__()
self.__filename = ''
self.__children = []
self.__line_number = 0
self.__column_number = 0
def get_children(self) -> list:
return self.__children
def add_child(self, child: 'Node') -> None:
a... | 23.756098 | 48 | 0.600616 | 124 | 974 | 4.274194 | 0.290323 | 0.09434 | 0.079245 | 0.071698 | 0.230189 | 0.083019 | 0 | 0 | 0 | 0 | 0 | 0.004335 | 0.289528 | 974 | 40 | 49 | 24.35 | 0.761561 | 0 | 0 | 0 | 0 | 0 | 0.004107 | 0 | 0 | 0 | 0 | 0 | 0.035714 | 1 | 0.357143 | false | 0 | 0 | 0.142857 | 0.607143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
d36a4c56b8eac42154ed4e1758b8b9804f485813 | 1,260 | py | Python | yoka_bot/items.py | CooperLuan/yoka_bot | f503bf87a5d705fd3a5bfc90b300e4107aa10b32 | [
"MIT"
] | null | null | null | yoka_bot/items.py | CooperLuan/yoka_bot | f503bf87a5d705fd3a5bfc90b300e4107aa10b32 | [
"MIT"
] | null | null | null | yoka_bot/items.py | CooperLuan/yoka_bot | f503bf87a5d705fd3a5bfc90b300e4107aa10b32 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class YokaBotItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
pass
class YokaBotBrandListItem(scrap... | 22.105263 | 51 | 0.655556 | 153 | 1,260 | 5.320261 | 0.352941 | 0.378378 | 0.110565 | 0.09828 | 0.308354 | 0.194103 | 0.158477 | 0.158477 | 0.158477 | 0 | 0 | 0.001015 | 0.218254 | 1,260 | 56 | 52 | 22.5 | 0.825381 | 0.161905 | 0 | 0.405405 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.108108 | 0.027027 | 0 | 0.891892 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
d3743a8aa5f1510dd3f669978d46692e94eb7fc2 | 459 | py | Python | Python/Courses/Python-Tutorials.Telusko/02.Miscellaneous/22.01-Binary Search.py | shihab4t/Books-Code | b637b6b2ad42e11faf87d29047311160fe3b2490 | [
"Unlicense"
] | null | null | null | Python/Courses/Python-Tutorials.Telusko/02.Miscellaneous/22.01-Binary Search.py | shihab4t/Books-Code | b637b6b2ad42e11faf87d29047311160fe3b2490 | [
"Unlicense"
] | null | null | null | Python/Courses/Python-Tutorials.Telusko/02.Miscellaneous/22.01-Binary Search.py | shihab4t/Books-Code | b637b6b2ad42e11faf87d29047311160fe3b2490 | [
"Unlicense"
] | null | null | null | def binary_search(nums, target):
low = 0
high = len(nums) - 1
while low <= high:
mid = low + ((high - low) // 2)
if nums[mid] > target:
high = mid-1
elif nums[mid] < target:
low = mid+1
else:
return mid
return -1
if __name__ == "__mai... | 21.857143 | 39 | 0.501089 | 64 | 459 | 3.40625 | 0.40625 | 0.220183 | 0.233945 | 0.275229 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057823 | 0.359477 | 459 | 20 | 40 | 22.95 | 0.683673 | 0 | 0 | 0 | 0 | 0 | 0.017429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0 | 0 | 0.176471 | 0.176471 | 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 | 0 | 0 | 0 | 3 |
d3791eb745779591c2f9202a3f8f1c548775a8e0 | 84 | py | Python | users/__init__.py | Tech-With-Tim/models | 221fce614776df01b151e73071c788c3ce57dc52 | [
"MIT"
] | 2 | 2021-07-09T18:53:15.000Z | 2021-08-06T06:21:14.000Z | users/__init__.py | Tech-With-Tim/models | 221fce614776df01b151e73071c788c3ce57dc52 | [
"MIT"
] | 8 | 2021-07-09T13:08:07.000Z | 2021-09-12T20:25:08.000Z | users/__init__.py | Tech-With-Tim/models | 221fce614776df01b151e73071c788c3ce57dc52 | [
"MIT"
] | 4 | 2021-07-09T12:32:20.000Z | 2021-07-29T15:19:25.000Z | from .user import User
from .token import Token
__all__ = (
User,
Token,
)
| 10.5 | 24 | 0.642857 | 11 | 84 | 4.545455 | 0.454545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.27381 | 84 | 7 | 25 | 12 | 0.819672 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
d385476269e261a7111772a0898a5d03542f1d70 | 1,254 | py | Python | carebt_kb/carebt_kb/plugin_base.py | adlatusrobotics/carebt_ros2 | 00a211a063f91042b033bb73aed3a861150fffa2 | [
"Apache-2.0"
] | 1 | 2021-12-30T21:20:00.000Z | 2021-12-30T21:20:00.000Z | carebt_kb/carebt_kb/plugin_base.py | adlatusrobotics/carebt_ros2 | 00a211a063f91042b033bb73aed3a861150fffa2 | [
"Apache-2.0"
] | null | null | null | carebt_kb/carebt_kb/plugin_base.py | adlatusrobotics/carebt_ros2 | 00a211a063f91042b033bb73aed3a861150fffa2 | [
"Apache-2.0"
] | 1 | 2022-01-26T07:43:35.000Z | 2022-01-26T07:43:35.000Z | # Copyright 2022 Andreas Steck (steck.andi@gmail.com)
#
# 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 ... | 31.35 | 78 | 0.724083 | 182 | 1,254 | 4.835165 | 0.565934 | 0.068182 | 0.029545 | 0.036364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011776 | 0.1874 | 1,254 | 40 | 79 | 31.35 | 0.851816 | 0.476077 | 0 | 0.117647 | 0 | 0 | 0.015576 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0.117647 | 0.294118 | 0 | 0.647059 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
d3855299d8e44433c812655a86226fbabf0c36b0 | 181 | py | Python | 372.Super Pow.py | zyd2001/LeetCode | a32e6d31efc2e16e9c28c260240653e86df9789c | [
"MIT"
] | null | null | null | 372.Super Pow.py | zyd2001/LeetCode | a32e6d31efc2e16e9c28c260240653e86df9789c | [
"MIT"
] | null | null | null | 372.Super Pow.py | zyd2001/LeetCode | a32e6d31efc2e16e9c28c260240653e86df9789c | [
"MIT"
] | null | null | null | class Solution:
def superPow(self, a: int, b: List[int]) -> int:
if (a % 1337 == 0):
return 0
return pow(a, reduce(lambda x, y: x * 10 + y, b), 1337) | 36.2 | 63 | 0.502762 | 29 | 181 | 3.137931 | 0.655172 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 0.337017 | 181 | 5 | 63 | 36.2 | 0.658333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
d3886b1788a7bd97fe3fcf1639338e3a57cb86a0 | 399 | py | Python | chat/admin.py | bekzod-fayzikuloff/djChat | d58e882c26d461b110c8b3277998108214d72fd5 | [
"MIT"
] | null | null | null | chat/admin.py | bekzod-fayzikuloff/djChat | d58e882c26d461b110c8b3277998108214d72fd5 | [
"MIT"
] | null | null | null | chat/admin.py | bekzod-fayzikuloff/djChat | d58e882c26d461b110c8b3277998108214d72fd5 | [
"MIT"
] | null | null | null | from django.contrib import admin
from . import models
@admin.register(models.Message)
class MessageAdmin(admin.ModelAdmin):
list_filter = ('owner', 'created')
list_display = ('text', 'to_chat')
search_fields = ('owner', 'to_chat')
@admin.register(models.Chat)
class ChatAdmin(admin.ModelAdmin):
pass
... | 19.95 | 40 | 0.724311 | 48 | 399 | 5.916667 | 0.520833 | 0.137324 | 0.200704 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 399 | 19 | 41 | 21 | 0.830409 | 0 | 0 | 0.153846 | 0 | 0 | 0.087719 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.153846 | 0.153846 | 0 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
d38e3e1d99c2af4cb9c47629d330473edd9cf506 | 143 | py | Python | generators/root/templates/base/ansible/staging.py | thetribeio/generator-project | 621f487fd9e3912bfb4c78fadde7e04032e01563 | [
"MIT"
] | 19 | 2021-04-23T14:39:04.000Z | 2022-03-20T12:18:47.000Z | generators/root/templates/base/ansible/staging.py | thetribeio/generator-project | 621f487fd9e3912bfb4c78fadde7e04032e01563 | [
"MIT"
] | 73 | 2021-04-03T16:46:35.000Z | 2022-03-07T20:51:38.000Z | generators/root/templates/base/ansible/staging.py | thetribeio/generator-project | 621f487fd9e3912bfb4c78fadde7e04032e01563 | [
"MIT"
] | 1 | 2021-06-14T15:51:25.000Z | 2021-06-14T15:51:25.000Z | #!/usr/bin/env python3
"""
Staging inventory script
"""
from inventory import inventory
if __name__ == "__main__":
inventory("staging")
| 13 | 31 | 0.699301 | 16 | 143 | 5.75 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008333 | 0.160839 | 143 | 10 | 32 | 14.3 | 0.758333 | 0.321678 | 0 | 0 | 0 | 0 | 0.168539 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
d39e4767f2b1ea184206c4a28f8fffca068da9fa | 994 | py | Python | modulo1/4 Trabajo y formateo - Cadenas.py | OmarGP/Python1 | 66df90aa7b293d42f1e738099582d81ba203d3f4 | [
"Apache-2.0"
] | null | null | null | modulo1/4 Trabajo y formateo - Cadenas.py | OmarGP/Python1 | 66df90aa7b293d42f1e738099582d81ba203d3f4 | [
"Apache-2.0"
] | null | null | null | modulo1/4 Trabajo y formateo - Cadenas.py | OmarGP/Python1 | 66df90aa7b293d42f1e738099582d81ba203d3f4 | [
"Apache-2.0"
] | null | null | null | #####################################################################
# Trabajando con Cadenas de Texto #
#####################################################################
cadena = " Hola Mundo!! "
print(cadena)
print(cadena[10])
print(cadena[3:])
print(cadena[:10])
print(cade... | 26.157895 | 69 | 0.421529 | 88 | 994 | 4.761364 | 0.386364 | 0.341289 | 0.081146 | 0.085919 | 0.114558 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015366 | 0.148893 | 994 | 38 | 70 | 26.157895 | 0.479905 | 0.095573 | 0 | 0 | 0 | 0 | 0.156627 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.875 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
d3a236a46c89077f0a4971c60536c89317fe44df | 447 | py | Python | creational/abstract_factory/data/soldiers/soldier.py | Kozak24/Patterns | 351d5c11f7c64ce5d58db37b6715fc8f7d31945a | [
"MIT"
] | null | null | null | creational/abstract_factory/data/soldiers/soldier.py | Kozak24/Patterns | 351d5c11f7c64ce5d58db37b6715fc8f7d31945a | [
"MIT"
] | null | null | null | creational/abstract_factory/data/soldiers/soldier.py | Kozak24/Patterns | 351d5c11f7c64ce5d58db37b6715fc8f7d31945a | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod
class Soldier(ABC):
_ID = 0
_SOLDIER_TYPE = "Soldier"
def __init__(self, hp, attack):
self._id = Soldier._ID
self._hp = hp
self._attack = attack
Soldier._ID += 1
@abstractmethod
def patrol(self):
pass
@abstractmetho... | 18.625 | 59 | 0.583893 | 54 | 447 | 4.481481 | 0.407407 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006515 | 0.313199 | 447 | 23 | 60 | 19.434783 | 0.781759 | 0 | 0 | 0.235294 | 0 | 0 | 0.107383 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0.117647 | 0.058824 | 0.058824 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
6cab1f9152653b67b4b4e0fd706c59888cf0cd82 | 427 | py | Python | python/matrix/matrix.py | ropable/exercism | 9dde2a7952badec03428b5f9dfb8499a7ce55458 | [
"MIT"
] | null | null | null | python/matrix/matrix.py | ropable/exercism | 9dde2a7952badec03428b5f9dfb8499a7ce55458 | [
"MIT"
] | null | null | null | python/matrix/matrix.py | ropable/exercism | 9dde2a7952badec03428b5f9dfb8499a7ce55458 | [
"MIT"
] | null | null | null | class Matrix:
def __init__(self, matrix_string: str):
# Split matrix_string into lines, split lines on whitespace and cast elements as integers.
self.matrix = [[int(j) for j in i.split()] for i in matrix_string.splitlines()]
def row(self, index: int) -> list[int]:
return self.matrix[ind... | 38.818182 | 98 | 0.644028 | 65 | 427 | 4.123077 | 0.446154 | 0.149254 | 0.044776 | 0.119403 | 0.186567 | 0.186567 | 0 | 0 | 0 | 0 | 0 | 0.006135 | 0.236534 | 427 | 10 | 99 | 42.7 | 0.815951 | 0.206089 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | false | 0 | 0 | 0.285714 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
6cb5facd56a1921cf152d5629d71eb2ad1e049e9 | 329 | py | Python | koku/masu/apps.py | Vasyka/koku | b5aa9ec41c3b0821e74afe9ff3a5ffaedb910614 | [
"Apache-2.0"
] | 2 | 2022-01-12T03:42:39.000Z | 2022-01-12T03:42:40.000Z | koku/masu/apps.py | Vasyka/koku | b5aa9ec41c3b0821e74afe9ff3a5ffaedb910614 | [
"Apache-2.0"
] | null | null | null | koku/masu/apps.py | Vasyka/koku | b5aa9ec41c3b0821e74afe9ff3a5ffaedb910614 | [
"Apache-2.0"
] | 1 | 2021-07-21T09:33:59.000Z | 2021-07-21T09:33:59.000Z | #
# Copyright 2021 Red Hat Inc.
# SPDX-License-Identifier: Apache-2.0
#
"""Masu application configuration module."""
from django.apps import AppConfig
class MasuConfig(AppConfig):
"""Masu application configuration."""
name = "masu"
def ready(self):
"""Determine if app is ready on application sta... | 20.5625 | 63 | 0.68997 | 39 | 329 | 5.820513 | 0.820513 | 0.132159 | 0.246696 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022388 | 0.18541 | 329 | 15 | 64 | 21.933333 | 0.824627 | 0.56231 | 0 | 0 | 0 | 0 | 0.032 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
6cbde506567de93f8ac0c82f2835a046460d9a46 | 96 | py | Python | rubin_sim/maf/mafContrib/StarCounts/StarCounts/__init__.py | RileyWClarke/flarubin | eb7b1ee21c828523f8a5374fe4510fe6e5ec2a2a | [
"MIT"
] | null | null | null | rubin_sim/maf/mafContrib/StarCounts/StarCounts/__init__.py | RileyWClarke/flarubin | eb7b1ee21c828523f8a5374fe4510fe6e5ec2a2a | [
"MIT"
] | null | null | null | rubin_sim/maf/mafContrib/StarCounts/StarCounts/__init__.py | RileyWClarke/flarubin | eb7b1ee21c828523f8a5374fe4510fe6e5ec2a2a | [
"MIT"
] | null | null | null | __all__ = ["abs_mag", "coords", "spec_type", "starcount", "starcount_bymass", "stellardensity"]
| 48 | 95 | 0.708333 | 10 | 96 | 6.1 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 96 | 1 | 96 | 96 | 0.693182 | 0 | 0 | 0 | 0 | 0 | 0.635417 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6cc4dd83423d4ce86f27ac52f92bde5a49b31d2a | 1,456 | py | Python | pyelong/api/hotel/__init__.py | DeanThompson/pyelong | 654a7f6dfe2b813db62aeda995859866b36c2042 | [
"MIT"
] | 1 | 2015-07-04T12:41:43.000Z | 2015-07-04T12:41:43.000Z | pyelong/api/hotel/__init__.py | DeanThompson/pyelong | 654a7f6dfe2b813db62aeda995859866b36c2042 | [
"MIT"
] | null | null | null | pyelong/api/hotel/__init__.py | DeanThompson/pyelong | 654a7f6dfe2b813db62aeda995859866b36c2042 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from ..base import ApiBase
from .order import Order
from .data import Data
from .incr import Incr
__all__ = 'Hotel'
class Hotel(ApiBase):
_category = ''
def list(self, **kwargs):
"""酒店列表搜索,方法名:hotel.list
文档
~~~~
- http://open.elong.com/wiki/Hotel... | 18.909091 | 59 | 0.541209 | 163 | 1,456 | 4.736196 | 0.226994 | 0.071244 | 0.051813 | 0.07772 | 0.23057 | 0.23057 | 0.150259 | 0.080311 | 0 | 0 | 0 | 0.000994 | 0.309066 | 1,456 | 76 | 60 | 19.157895 | 0.766402 | 0.239698 | 0 | 0.323529 | 0 | 0 | 0.038784 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.264706 | false | 0 | 0.117647 | 0.147059 | 0.823529 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
6ccb8f5090ee543189024e85d25c1af13816fe23 | 84 | py | Python | football/teams.py | tbradshaw91/DS-OOP-Review | c300bfa2c73df239dd2096f681323807d0c3f320 | [
"MIT"
] | null | null | null | football/teams.py | tbradshaw91/DS-OOP-Review | c300bfa2c73df239dd2096f681323807d0c3f320 | [
"MIT"
] | null | null | null | football/teams.py | tbradshaw91/DS-OOP-Review | c300bfa2c73df239dd2096f681323807d0c3f320 | [
"MIT"
] | null | null | null | team_names = ['LA Chargers', 'LA Rams', 'NE Patriots', NY Giants', 'Chicago Bears']
| 42 | 83 | 0.666667 | 12 | 84 | 4.583333 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 84 | 1 | 84 | 84 | 0.763889 | 0 | 0 | 0 | 0 | 0 | 0.369048 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6cd8adaf195d813a1faaeabbd0dae22bcbb59a02 | 115 | py | Python | GraphRepr/GraphReprBase.py | olokshyn/Parallel-Regulations | 8e78319532491f0f2073ac4de8f3a85a336526fa | [
"MIT"
] | 1 | 2019-03-07T03:26:01.000Z | 2019-03-07T03:26:01.000Z | GraphRepr/GraphReprBase.py | olokshyn/Parallel-Regulations | 8e78319532491f0f2073ac4de8f3a85a336526fa | [
"MIT"
] | null | null | null | GraphRepr/GraphReprBase.py | olokshyn/Parallel-Regulations | 8e78319532491f0f2073ac4de8f3a85a336526fa | [
"MIT"
] | null | null | null | class GraphReprBase(object):
@staticmethod
def read_from_file(input_file):
raise NotImplemented()
| 19.166667 | 35 | 0.713043 | 12 | 115 | 6.583333 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.208696 | 115 | 5 | 36 | 23 | 0.868132 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6cdadfc19bdf70284edd2340150656626d24c5fd | 65 | py | Python | terrascript/data/mailgun.py | amlodzianowski/python-terrascript | 1111affe6cd30d9b8b7bc74ae4e27590f7d4dc49 | [
"BSD-2-Clause"
] | null | null | null | terrascript/data/mailgun.py | amlodzianowski/python-terrascript | 1111affe6cd30d9b8b7bc74ae4e27590f7d4dc49 | [
"BSD-2-Clause"
] | null | null | null | terrascript/data/mailgun.py | amlodzianowski/python-terrascript | 1111affe6cd30d9b8b7bc74ae4e27590f7d4dc49 | [
"BSD-2-Clause"
] | null | null | null | # terrascript/data/mailgun.py
import terrascript
__all__ = []
| 9.285714 | 29 | 0.738462 | 7 | 65 | 6.285714 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 65 | 6 | 30 | 10.833333 | 0.8 | 0.415385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
6cdf795f8c620b2734af0321c4a0401e77b238b9 | 470 | py | Python | src/skim/modeling/skim_attention/__init__.py | recitalAI/skim-attention | a37a277072d1f70ea615cfd19e5b84a6effd2464 | [
"Apache-2.0"
] | 4 | 2021-09-08T17:20:59.000Z | 2021-12-08T07:49:24.000Z | src/skim/modeling/skim_attention/__init__.py | recitalAI/skim-attention | a37a277072d1f70ea615cfd19e5b84a6effd2464 | [
"Apache-2.0"
] | null | null | null | src/skim/modeling/skim_attention/__init__.py | recitalAI/skim-attention | a37a277072d1f70ea615cfd19e5b84a6effd2464 | [
"Apache-2.0"
] | 1 | 2021-12-09T00:02:23.000Z | 2021-12-09T00:02:23.000Z | from .configuration_skim import (
SkimformerConfig,
BertWithSkimEmbedConfig,
SkimmingMaskConfig,
)
from .configuration_longskim import (
LongSkimformerConfig
)
from .modeling_skim import (
SkimformerForMaskedLM,
SkimformerForTokenClassification,
BertWithSkimEmbedForTokenClassification,
... | 23.5 | 44 | 0.795745 | 26 | 470 | 14.230769 | 0.615385 | 0.091892 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159574 | 470 | 20 | 45 | 23.5 | 0.936709 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.222222 | 0 | 0.222222 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6ce4299cc1bef4fcb9d2c610733b29e1f5ae2c38 | 194 | py | Python | cookiedjango/twitter/models.py | shanenater/shanecookie | 3cf1466845d08311962f11baf9cf9f8f6055eb62 | [
"BSD-3-Clause"
] | null | null | null | cookiedjango/twitter/models.py | shanenater/shanecookie | 3cf1466845d08311962f11baf9cf9f8f6055eb62 | [
"BSD-3-Clause"
] | null | null | null | cookiedjango/twitter/models.py | shanenater/shanecookie | 3cf1466845d08311962f11baf9cf9f8f6055eb62 | [
"BSD-3-Clause"
] | null | null | null | from django.db import models
from cookiedjango.core.models import TimeStampedModel
class TwitterPost(TimeStampedModel):
tag = models.CharField(max_length=140)
text = models.TextField()
| 27.714286 | 53 | 0.793814 | 23 | 194 | 6.652174 | 0.73913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017751 | 0.128866 | 194 | 6 | 54 | 32.333333 | 0.887574 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
6cee09026c331ea468d4b99670e350d52f4c23b6 | 823 | py | Python | src/shape_constraint_detectors/TargetNodeTargetDetector.py | IDLabResearch/lovstats | dd33183574eed692ee89059ff3c6494160dfb8a9 | [
"MIT"
] | 1 | 2018-12-11T13:57:38.000Z | 2018-12-11T13:57:38.000Z | src/shape_constraint_detectors/TargetNodeTargetDetector.py | IDLabResearch/lovstats | dd33183574eed692ee89059ff3c6494160dfb8a9 | [
"MIT"
] | null | null | null | src/shape_constraint_detectors/TargetNodeTargetDetector.py | IDLabResearch/lovstats | dd33183574eed692ee89059ff3c6494160dfb8a9 | [
"MIT"
] | null | null | null |
from utils.RestrictionTypeDetector import RestrictionTypeDetector
from utils.RestrictionTypeDetector import TYPE_INT
from utils.RestrictionTypeDetector import MEASURE_OCCURRENCE
class TargetNodeTargetDetector(RestrictionTypeDetector):
"""
This class serves as interface for all statistics of shapes applying on... | 37.409091 | 94 | 0.776428 | 88 | 823 | 7.102273 | 0.568182 | 0.0432 | 0.1536 | 0.1824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001464 | 0.170109 | 823 | 21 | 95 | 39.190476 | 0.913616 | 0.291616 | 0 | 0 | 0 | 0 | 0.028674 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.272727 | 0.090909 | 0.727273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
9f03ed93fa2d5eb5be5743e4b4dabbcc2db6fe54 | 853 | py | Python | tests/factories.py | lisac-usds/dsnap_rules | c0db0385038d6791597417f8fa28490abafa3b3c | [
"CC0-1.0"
] | 4 | 2018-12-03T20:47:01.000Z | 2019-10-11T20:38:57.000Z | tests/factories.py | lisac-usds/dsnap_rules | c0db0385038d6791597417f8fa28490abafa3b3c | [
"CC0-1.0"
] | 10 | 2018-10-26T16:18:26.000Z | 2018-10-29T20:10:42.000Z | tests/factories.py | 18F/new_rules | 85870c33cb61292869e12c4391f0781264b2ceac | [
"CC0-1.0"
] | 2 | 2020-04-06T01:44:11.000Z | 2021-02-14T09:52:44.000Z | import factory
from dsnap_rules import models
class DisasterFactory(factory.django.DjangoModelFactory):
class Meta:
model = 'dsnap_rules.Disaster'
disaster_request_no = factory.Faker('pystr')
title = factory.Faker('pystr')
state = factory.Iterator(models.State.objects.all())
benefit_begi... | 30.464286 | 66 | 0.730363 | 97 | 853 | 6.216495 | 0.391753 | 0.218905 | 0.159204 | 0.199005 | 0.461028 | 0.182421 | 0.182421 | 0.182421 | 0 | 0 | 0 | 0 | 0.158265 | 853 | 27 | 67 | 31.592593 | 0.839833 | 0 | 0 | 0.1 | 0 | 0 | 0.121923 | 0.033998 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.9 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
9f047db9c21908754e818f479102dbf1f947e2e0 | 405 | py | Python | ergo/conditions/maxentropy.py | NixGD/ergo | 08dd2eef4454590c5def503a8f4da8be1eaaeac8 | [
"MIT"
] | 93 | 2020-04-16T03:49:55.000Z | 2022-03-26T14:56:29.000Z | ergo/conditions/maxentropy.py | NixGD/ergo | 08dd2eef4454590c5def503a8f4da8be1eaaeac8 | [
"MIT"
] | 326 | 2020-03-25T17:49:11.000Z | 2021-03-25T03:19:51.000Z | ergo/conditions/maxentropy.py | NixGD/ergo | 08dd2eef4454590c5def503a8f4da8be1eaaeac8 | [
"MIT"
] | 26 | 2020-03-25T03:18:58.000Z | 2022-03-18T21:19:11.000Z | from . import condition
class MaxEntropyCondition(condition.Condition):
def loss(self, dist) -> float:
return -self.weight * dist.entropy()
def destructure(self):
return ((MaxEntropyCondition,), (self.weight,))
def __str__(self):
return "Maximize the entropy of the distribution"
... | 25.3125 | 59 | 0.674074 | 43 | 405 | 6.162791 | 0.488372 | 0.113208 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.212346 | 405 | 15 | 60 | 27 | 0.830721 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0.101235 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0.1 | 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 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
9f115adba52042aca102a08b3e8ab4e889a35903 | 1,574 | py | Python | examples/colors.py | edouard-lopez/colorful | dde3b893f326f208229064a313df7065569f2b5b | [
"MIT"
] | 517 | 2017-04-09T22:15:18.000Z | 2022-03-26T11:12:42.000Z | examples/colors.py | edouard-lopez/colorful | dde3b893f326f208229064a313df7065569f2b5b | [
"MIT"
] | 46 | 2017-04-13T06:20:16.000Z | 2021-02-28T02:22:47.000Z | examples/colors.py | edouard-lopez/colorful | dde3b893f326f208229064a313df7065569f2b5b | [
"MIT"
] | 31 | 2017-04-12T21:35:07.000Z | 2021-09-15T06:42:21.000Z | # -*- coding: utf-8 -*-
"""
colorful
~~~~~~~~
Terminal string styling done right, in Python.
:copyright: (c) 2017 by Timo Furrer <tuxtimo@gmail.com>
:license: MIT, see LICENSE for more details.
"""
import sys
import colorful
def show():
"""
Show the modifiers and colors
"""
# ... | 30.269231 | 68 | 0.624524 | 183 | 1,574 | 5.289617 | 0.311475 | 0.195248 | 0.303719 | 0.477273 | 0.464876 | 0.392562 | 0 | 0 | 0 | 0 | 0 | 0.003864 | 0.177891 | 1,574 | 51 | 69 | 30.862745 | 0.744204 | 0.168996 | 0 | 0 | 0 | 0 | 0.123613 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | true | 0 | 0.076923 | 0 | 0.115385 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9f21f07bfc920300501c6d0927e5ab4f8f6441a8 | 743 | py | Python | apps/usermgmt/serializers.py | ecognize-hub/ecognize | e448098d7c5e815c68a7650b14b31d23976a8900 | [
"Apache-2.0"
] | 1 | 2021-04-17T12:53:34.000Z | 2021-04-17T12:53:34.000Z | apps/usermgmt/serializers.py | ecognize-hub/ecognize | e448098d7c5e815c68a7650b14b31d23976a8900 | [
"Apache-2.0"
] | null | null | null | apps/usermgmt/serializers.py | ecognize-hub/ecognize | e448098d7c5e815c68a7650b14b31d23976a8900 | [
"Apache-2.0"
] | null | null | null | from rest_captcha.serializers import RestCaptchaSerializer
from rest_framework import serializers
from .models import OrgAdditionRequest
from apps.profiles.models import UserProfile
class OrgAdditionRequestSerializer(serializers.ModelSerializer):
class Meta:
model = OrgAdditionRequest
fields = ('o... | 39.105263 | 120 | 0.783311 | 76 | 743 | 7.447368 | 0.552632 | 0.028269 | 0.04947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006221 | 0.13459 | 743 | 18 | 121 | 41.277778 | 0.874028 | 0 | 0 | 0.153846 | 0 | 0 | 0.15074 | 0.032301 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.153846 | 0.307692 | 0 | 0.692308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
9f3b0ff8c33aa8d3e016cdf003be0cb33deda61b | 182 | py | Python | datasets/__init__.py | Kevincrh/multi-model_fusion | aaa5468529b7a3cf9db274ebf9fb80a28809b428 | [
"MIT"
] | 33 | 2019-07-15T06:57:15.000Z | 2022-03-06T09:06:17.000Z | datasets/__init__.py | Kevincrh/multi-model_fusion | aaa5468529b7a3cf9db274ebf9fb80a28809b428 | [
"MIT"
] | 10 | 2019-07-28T08:24:26.000Z | 2021-11-16T13:59:34.000Z | datasets/__init__.py | Kevincrh/multi-model_fusion | aaa5468529b7a3cf9db274ebf9fb80a28809b428 | [
"MIT"
] | 7 | 2019-07-14T13:57:16.000Z | 2022-03-23T06:08:34.000Z | from .pc_aug import rotate_point_cloud_by_angle, rotation_point_cloud, jitter_point_cloud, pc_aug_funs, normal_pc
STATUS_TRAIN = "train"
STATUS_TEST = "test"
from .data_pth import * | 36.4 | 113 | 0.82967 | 30 | 182 | 4.533333 | 0.6 | 0.220588 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098901 | 182 | 5 | 114 | 36.4 | 0.829268 | 0 | 0 | 0 | 0 | 0 | 0.04918 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.