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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5ba1b03217590cd51cf14bd304c81cdb93925ba6 | 79 | py | Python | aries_cloudagent/protocols/connections/v1_0/role.py | ankita-p17/aries-cloudagent-python | f849e360b0372fa58ffd7d043f39e3b81375570e | [
"Apache-2.0"
] | null | null | null | aries_cloudagent/protocols/connections/v1_0/role.py | ankita-p17/aries-cloudagent-python | f849e360b0372fa58ffd7d043f39e3b81375570e | [
"Apache-2.0"
] | null | null | null | aries_cloudagent/protocols/connections/v1_0/role.py | ankita-p17/aries-cloudagent-python | f849e360b0372fa58ffd7d043f39e3b81375570e | [
"Apache-2.0"
] | null | null | null | from enum import Enum
class Role(Enum):
AUTHOR = (1,)
ENDORSER = (2,) | 13.166667 | 21 | 0.594937 | 11 | 79 | 4.272727 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 0.265823 | 79 | 6 | 22 | 13.166667 | 0.775862 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
5bb8dc2b9919fe922dd397b3d18c6984fcf2da3a | 71 | py | Python | tests/params.py | cponecp/iHone | 91096b085d72afa97a6e640c082564ef500f5be8 | [
"MIT"
] | null | null | null | tests/params.py | cponecp/iHone | 91096b085d72afa97a6e640c082564ef500f5be8 | [
"MIT"
] | null | null | null | tests/params.py | cponecp/iHone | 91096b085d72afa97a6e640c082564ef500f5be8 | [
"MIT"
] | null | null | null | def fun(default=None,**kwargs):
print(1)
fun(user='cp',default={}) | 17.75 | 31 | 0.633803 | 11 | 71 | 4.090909 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015873 | 0.112676 | 71 | 4 | 32 | 17.75 | 0.698413 | 0 | 0 | 0 | 0 | 0 | 0.027778 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5bd0361cf3603ec414df04eeb5b3c2d7c604b9a7 | 188 | py | Python | fastapi/signals/__init__.py | zhangnian/fastapi | 65eb49ec58041fb1212c3e867d19a405d7e40662 | [
"MIT"
] | 33 | 2017-08-14T09:39:12.000Z | 2021-09-11T14:54:28.000Z | fastapi/signals/__init__.py | zhangnian/fastapi | 65eb49ec58041fb1212c3e867d19a405d7e40662 | [
"MIT"
] | null | null | null | fastapi/signals/__init__.py | zhangnian/fastapi | 65eb49ec58041fb1212c3e867d19a405d7e40662 | [
"MIT"
] | 9 | 2017-12-05T11:54:01.000Z | 2020-11-10T08:03:35.000Z | from blinker import signal
from fastapi.signals.signal_handler import *
sig_user = signal('userinfo_modifiy')
def register_signal_handlers():
sig_user.connect(on_userinfo_modify) | 17.090909 | 44 | 0.803191 | 25 | 188 | 5.72 | 0.68 | 0.097902 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12234 | 188 | 11 | 45 | 17.090909 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0.084656 | 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 |
5bd160163205780016073f8afc2ec9c199abdcf2 | 797 | py | Python | INFOTC_4320/Anagram_BigO/Anagram_BigO.py | j0shbl0ck/Mizzou_Coding_IT | a730e46113b25daf13ad244e38613b138886206d | [
"Unlicense"
] | null | null | null | INFOTC_4320/Anagram_BigO/Anagram_BigO.py | j0shbl0ck/Mizzou_Coding_IT | a730e46113b25daf13ad244e38613b138886206d | [
"Unlicense"
] | null | null | null | INFOTC_4320/Anagram_BigO/Anagram_BigO.py | j0shbl0ck/Mizzou_Coding_IT | a730e46113b25daf13ad244e38613b138886206d | [
"Unlicense"
] | null | null | null | # October 27th, 2021
# INFOTC 4320
# Josh Block
# Challenge: Anagram Alogrithm and Big-O
# References: https://bradfieldcs.com/algos/analysis/an-anagram-detection-example/
print("===Anagram Dector===")
print("This program determines if two words are anagrams of each other\n")
first_word = input("Please enter first wo... | 23.441176 | 82 | 0.695107 | 107 | 797 | 5.009346 | 0.457944 | 0.16791 | 0.16791 | 0.212687 | 0.208955 | 0.104478 | 0 | 0 | 0 | 0 | 0 | 0.015152 | 0.171895 | 797 | 33 | 83 | 24.151515 | 0.79697 | 0.50941 | 0 | 0 | 0 | 0 | 0.377778 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0.142857 | 0.285714 | 0.428571 | 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 | 0 | 1 | 0 | 3 |
5bfdae4e26ca7424c71438bb03e0a6c9225cfd72 | 122 | py | Python | api/urls.py | trinhcaokhoa/Mebook_hub | bb889d990e7b1bc6fd84b2b34733b00151a52f0d | [
"MIT"
] | 1 | 2022-03-30T20:00:33.000Z | 2022-03-30T20:00:33.000Z | api/urls.py | trinhcaokhoa/Mebook_hub | bb889d990e7b1bc6fd84b2b34733b00151a52f0d | [
"MIT"
] | null | null | null | api/urls.py | trinhcaokhoa/Mebook_hub | bb889d990e7b1bc6fd84b2b34733b00151a52f0d | [
"MIT"
] | null | null | null | from django.urls import path
from .views import BookView
urlpatterns = [
path('book_api', BookView.as_view()),
] | 20.333333 | 42 | 0.696721 | 16 | 122 | 5.1875 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.188525 | 122 | 6 | 43 | 20.333333 | 0.838384 | 0 | 0 | 0 | 0 | 0 | 0.067797 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 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 |
5bff77751373faff40182bd6235ab1b9ab10c668 | 158 | py | Python | dirbot/items.py | lihongqiang/crawl-image | d0132156143942628e041ccf2b8bff07b1873a60 | [
"Apache-2.0"
] | 1 | 2017-03-24T09:46:26.000Z | 2017-03-24T09:46:26.000Z | dirbot/items.py | lihongqiang/crawl-image | d0132156143942628e041ccf2b8bff07b1873a60 | [
"Apache-2.0"
] | 1 | 2017-03-24T08:51:17.000Z | 2017-03-24T08:51:17.000Z | dirbot/items.py | lihongqiang/crawl-image | d0132156143942628e041ccf2b8bff07b1873a60 | [
"Apache-2.0"
] | null | null | null | from scrapy.item import Item, Field
class MyImage(Item):
image_urls = Field()
images = Field()
image_paths = Field()
image_label = Field()
| 15.8 | 35 | 0.651899 | 20 | 158 | 5 | 0.6 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.240506 | 158 | 9 | 36 | 17.555556 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 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 |
7500edb1cdfbe9210d83cd5db498ecdcdcb19eb8 | 1,073 | py | Python | quantitative_finance/L3/python/setup.py | InAccel/Vitis_Libraries | 876e262201069f46a78050e23a13db20dd73ad8b | [
"Apache-2.0"
] | null | null | null | quantitative_finance/L3/python/setup.py | InAccel/Vitis_Libraries | 876e262201069f46a78050e23a13db20dd73ad8b | [
"Apache-2.0"
] | null | null | null | quantitative_finance/L3/python/setup.py | InAccel/Vitis_Libraries | 876e262201069f46a78050e23a13db20dd73ad8b | [
"Apache-2.0"
] | null | null | null | """Setup inaccel-vitis package."""
from setuptools import find_namespace_packages, setup
setup(
name = 'inaccel-vitis',
packages = find_namespace_packages(include = ['inaccel.*']),
namespace_packages = ['inaccel'],
version = '0.2',
license = 'Apache-2.0',
description = 'InAccel Vitis Libraries'... | 33.53125 | 64 | 0.602982 | 109 | 1,073 | 5.834862 | 0.522936 | 0.149371 | 0.196541 | 0.163522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01836 | 0.238583 | 1,073 | 31 | 65 | 34.612903 | 0.760098 | 0.026095 | 0 | 0.068966 | 0 | 0 | 0.458133 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.034483 | 0 | 0.034483 | 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 |
752fa3c7ccd9fe1e1943f250e56533c498e879e8 | 353 | py | Python | pysaxon/__init__.py | ajelenak/pysaxon | fb0b1f79f67454284f2f5f4d10fdd2af7ef24b35 | [
"CC0-1.0"
] | 31 | 2016-05-31T14:49:25.000Z | 2022-03-11T15:57:46.000Z | pysaxon/__init__.py | ajelenak/pysaxon | fb0b1f79f67454284f2f5f4d10fdd2af7ef24b35 | [
"CC0-1.0"
] | 3 | 2017-10-17T09:20:19.000Z | 2020-04-18T14:51:53.000Z | pysaxon/__init__.py | ajelenak/pysaxon | fb0b1f79f67454284f2f5f4d10fdd2af7ef24b35 | [
"CC0-1.0"
] | 7 | 2017-01-16T13:06:56.000Z | 2022-01-19T02:06:45.000Z | from .version import version as __version__
# Delay importing extension modules till after they are built...
try:
from .sxn import *
from . import xdm
# This SaxonProcessor object is used only to control creation and
# destruction of the Saxon/C Java VM...
_sp_init = SaxonProcessor(False, init=Tru... | 25.214286 | 69 | 0.72238 | 48 | 353 | 5.1875 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.21813 | 353 | 13 | 70 | 27.153846 | 0.902174 | 0.464589 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.142857 | 0.571429 | 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 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
753d85f68b37d30eae599c1964f08dd71bec7759 | 592 | py | Python | babylispregex.py | phoughton/baby_lisp | 0f21f4c3ba38377f6fc414f50207ec6fee655ea9 | [
"MIT"
] | null | null | null | babylispregex.py | phoughton/baby_lisp | 0f21f4c3ba38377f6fc414f50207ec6fee655ea9 | [
"MIT"
] | null | null | null | babylispregex.py | phoughton/baby_lisp | 0f21f4c3ba38377f6fc414f50207ec6fee655ea9 | [
"MIT"
] | null | null | null | import re
# $ babyLisp(‘(add 1 2)’)
# $ 3
# $ babyLisp(‘(multiply 4 (add 2 3))’)
# $ 20
def add(a, b):
return a+b
def subtract(a, b):
return a-b
def multiply(a, b):
return a*b
def divide(a, b):
return a/b
def baby_lisp(lisp_string):
brackets = re.sub(r"\)", "))", lisp_string)
commands = ... | 18.5 | 82 | 0.567568 | 101 | 592 | 3.267327 | 0.287129 | 0.048485 | 0.09697 | 0.109091 | 0.254545 | 0.254545 | 0 | 0 | 0 | 0 | 0 | 0.054348 | 0.222973 | 592 | 31 | 83 | 19.096774 | 0.663043 | 0.118243 | 0 | 0 | 0 | 0 | 0.203095 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 1 | 0.294118 | false | 0 | 0.058824 | 0.235294 | 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 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
754141d0382990aaa59611b96bf00b6df7082919 | 8,455 | py | Python | rsssql.py | su-sanzhou/rss-from-web | e4ad4f9de0b5f9eef82ac3464d9d7ceb70d649b4 | [
"MIT"
] | 11 | 2020-02-09T15:16:40.000Z | 2021-12-24T16:29:43.000Z | rsssql.py | su-sanzhou/rss-from-web | e4ad4f9de0b5f9eef82ac3464d9d7ceb70d649b4 | [
"MIT"
] | 4 | 2019-12-25T16:39:26.000Z | 2021-03-27T10:01:49.000Z | rsssql.py | su-sanzhou/rss-from-web | e4ad4f9de0b5f9eef82ac3464d9d7ceb70d649b4 | [
"MIT"
] | null | null | null | import config
from selectsql import SelectSql
class RssSql(object):
def __init__(self):
self.database = config.get_database_config()
self.select_sql = SelectSql(self.database)
self.do_not_success = "do_not_success"
self.do_success = "do_success"
self.user = {}
self.x... | 34.651639 | 84 | 0.515553 | 998 | 8,455 | 4.052104 | 0.093186 | 0.06454 | 0.063304 | 0.065776 | 0.784125 | 0.757913 | 0.731454 | 0.677794 | 0.671365 | 0.656528 | 0 | 0.016025 | 0.394796 | 8,455 | 243 | 85 | 34.794239 | 0.774282 | 0.064814 | 0 | 0.516667 | 0 | 0.005556 | 0.275508 | 0.048985 | 0 | 0 | 0 | 0 | 0 | 1 | 0.005556 | false | 0.011111 | 0.011111 | 0 | 0.105556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f3390fdf7f2b57c683fe56929f4a5884eaf1e0f7 | 22,125 | py | Python | off_django/models.py | klorophyl/openfoodfacts-django | 696e701355af9911e726c5579eacca8989f4c629 | [
"Apache-2.0"
] | 1 | 2022-02-02T19:54:34.000Z | 2022-02-02T19:54:34.000Z | off_django/models.py | klorophyl/openfoodfacts-django | 696e701355af9911e726c5579eacca8989f4c629 | [
"Apache-2.0"
] | null | null | null | off_django/models.py | klorophyl/openfoodfacts-django | 696e701355af9911e726c5579eacca8989f4c629 | [
"Apache-2.0"
] | 1 | 2021-12-27T20:40:18.000Z | 2021-12-27T20:40:18.000Z | #!/usr/bin/python
# _*_ coding: utf_8 _*_
import datetime
import logging
import openfoodfacts
from tqdm import tqdm
from django.core.exceptions import FieldDoesNotExist
from django.db import models, transaction
from .models_extensions import ListField
from .settings import DATETIME_FORMAT
from .codes_to_country imp... | 41.432584 | 107 | 0.700475 | 2,727 | 22,125 | 5.482215 | 0.142281 | 0.132441 | 0.180602 | 0.228763 | 0.651572 | 0.604147 | 0.475719 | 0.303679 | 0.085552 | 0.03204 | 0 | 0.01972 | 0.20009 | 22,125 | 533 | 108 | 41.510319 | 0.825008 | 0.040226 | 0 | 0.156566 | 0 | 0 | 0.055999 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.050505 | false | 0 | 0.022727 | 0 | 0.626263 | 0.002525 | 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 |
f33bb25fe61367d04cbf0cfd08ba517964a6833f | 239 | py | Python | app/wrapper/utils.py | Sirius-social/TMTM | 5b4d426e358fc9fd6cff7ec84861c0388d3785ce | [
"Apache-2.0"
] | null | null | null | app/wrapper/utils.py | Sirius-social/TMTM | 5b4d426e358fc9fd6cff7ec84861c0388d3785ce | [
"Apache-2.0"
] | null | null | null | app/wrapper/utils.py | Sirius-social/TMTM | 5b4d426e358fc9fd6cff7ec84861c0388d3785ce | [
"Apache-2.0"
] | null | null | null | import hashlib
from django.conf import settings
def get_auth_connection_key_seed() -> str:
auth_key = "%s:auth" % str(settings.AGENT['entity'])
seed_auth_key = hashlib.md5(auth_key.encode()).hexdigest()
return seed_auth_key
| 23.9 | 62 | 0.732218 | 35 | 239 | 4.714286 | 0.571429 | 0.169697 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004902 | 0.146444 | 239 | 9 | 63 | 26.555556 | 0.803922 | 0 | 0 | 0 | 0 | 0 | 0.054393 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | 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 | 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 |
f359307cc061fd8d95e439ae9c16aa80c33d1ac4 | 1,325 | py | Python | release/stubs.min/Autodesk/Revit/DB/__init___parts/FittingAndAccessoryCalculationType.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | release/stubs.min/Autodesk/Revit/DB/__init___parts/FittingAndAccessoryCalculationType.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | release/stubs.min/Autodesk/Revit/DB/__init___parts/FittingAndAccessoryCalculationType.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | class FittingAndAccessoryCalculationType(Enum, IComparable, IFormattable, IConvertible):
"""
Enum of fitting and accessory pressure drop calculation type.
enum FittingAndAccessoryCalculationType,values: CalculateDefaultSettings (2),CalculatePressureDrop (1),Undefined (0),ValidateCurrentSettings (4)
""... | 27.604167 | 221 | 0.616604 | 134 | 1,325 | 5.38806 | 0.373134 | 0.110803 | 0.116343 | 0.124654 | 0.17867 | 0.17867 | 0.17867 | 0.15651 | 0.15651 | 0.15651 | 0 | 0.004094 | 0.262642 | 1,325 | 47 | 222 | 28.191489 | 0.734903 | 0.405283 | 0 | 0.384615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.384615 | false | 0.384615 | 0 | 0 | 0.615385 | 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 |
f3649feeb844c0af49496f4dfa7da1a11ffe1955 | 2,961 | py | Python | spire/github/upgrades/broodauth.py | bugout-dev/spire | def55cb64fbd306ddde47067d8573cf4b234115c | [
"Apache-2.0"
] | 1 | 2021-12-01T14:18:12.000Z | 2021-12-01T14:18:12.000Z | spire/github/upgrades/broodauth.py | bugout-dev/spire | def55cb64fbd306ddde47067d8573cf4b234115c | [
"Apache-2.0"
] | 13 | 2021-07-13T19:19:22.000Z | 2022-01-14T16:33:42.000Z | spire/github/upgrades/broodauth.py | bugout-dev/spire | def55cb64fbd306ddde47067d8573cf4b234115c | [
"Apache-2.0"
] | null | null | null | """
According with BUG-132 was added table GitHubBugoutUser.
It requires additional script to generate BugoutUser for existing installations
after database migration.
"""
import argparse
import uuid
from ..models import GitHubOAuthEvent, GitHubBugoutUser
from ...broodusers import bugout_api
from ...db import yield_con... | 36.109756 | 87 | 0.604863 | 291 | 2,961 | 5.831615 | 0.367698 | 0.09723 | 0.061874 | 0.051856 | 0.177372 | 0.11373 | 0.066588 | 0.044785 | 0 | 0 | 0 | 0.002499 | 0.324215 | 2,961 | 81 | 88 | 36.555556 | 0.845577 | 0.077676 | 0 | 0 | 1 | 0 | 0.125276 | 0.070904 | 0 | 0 | 0 | 0.012346 | 0 | 1 | 0.017544 | false | 0.052632 | 0.105263 | 0 | 0.122807 | 0.052632 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
f373f170f7b6ef88a0c7f2d402d77c96448b85ae | 2,733 | py | Python | Labs/PolicyFunctionIteration/policy_solutions.py | jessicaleete/numerical_computing | cc71f51f35ca74d00e617af3d1a0223e19fb9a68 | [
"CC-BY-3.0"
] | 10 | 2016-10-18T19:54:25.000Z | 2021-10-09T20:12:38.000Z | Labs/PolicyFunctionIteration/policy_solutions.py | jessicaleete/numerical_computing | cc71f51f35ca74d00e617af3d1a0223e19fb9a68 | [
"CC-BY-3.0"
] | null | null | null | Labs/PolicyFunctionIteration/policy_solutions.py | jessicaleete/numerical_computing | cc71f51f35ca74d00e617af3d1a0223e19fb9a68 | [
"CC-BY-3.0"
] | 2 | 2017-05-14T16:07:59.000Z | 2020-06-20T09:05:06.000Z | #Solutions to Policy Function Iteration Lab
import numpy as np
import scipy as sp
from scipy import sparse
from scipy.sparse import linalg
import math
from matplotlib import pyplot as plt
from scipy import linalg as la
def u(x):
return np.sqrt(x).flatten()
def policyIter(beta, N, Wmax=1.):
"""
Solve... | 33.740741 | 92 | 0.628979 | 409 | 2,733 | 4.151589 | 0.273839 | 0.042403 | 0.024735 | 0.047114 | 0.726737 | 0.716137 | 0.716137 | 0.6596 | 0.606596 | 0.606596 | 0 | 0.018066 | 0.25064 | 2,733 | 80 | 93 | 34.1625 | 0.811035 | 0.349433 | 0 | 0.510638 | 0 | 0 | 0.001781 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06383 | false | 0 | 0.148936 | 0.021277 | 0.276596 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f38046d7ad6e7e47819ddb5a3878c1a7e985261b | 24 | py | Python | configs.py | GavinLiu-AI/warden-bots | 749d2c16a724d5590b6616ae711c96c9c4b5a9cf | [
"MIT"
] | null | null | null | configs.py | GavinLiu-AI/warden-bots | 749d2c16a724d5590b6616ae711c96c9c4b5a9cf | [
"MIT"
] | null | null | null | configs.py | GavinLiu-AI/warden-bots | 749d2c16a724d5590b6616ae711c96c9c4b5a9cf | [
"MIT"
] | null | null | null | WAR_BOT_TOKEN = 'token'
| 12 | 23 | 0.75 | 4 | 24 | 4 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 24 | 1 | 24 | 24 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0.208333 | 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 |
f3878c596d313ee24b2d62403844d0ab0524f2b3 | 906 | py | Python | Sample/PyWebApi.IIS/json_fmtr.py | DataBooster/PyWebApi | d4afed2d6b05215302bfb316a61b36cf13fb74aa | [
"MIT"
] | 6 | 2020-04-10T22:39:38.000Z | 2022-01-21T18:07:08.000Z | Sample/PyWebApi.IIS/json_fmtr.py | DataBooster/PyWebApi | d4afed2d6b05215302bfb316a61b36cf13fb74aa | [
"MIT"
] | null | null | null | Sample/PyWebApi.IIS/json_fmtr.py | DataBooster/PyWebApi | d4afed2d6b05215302bfb316a61b36cf13fb74aa | [
"MIT"
] | 1 | 2021-01-26T23:08:42.000Z | 2021-01-26T23:08:42.000Z | # -*- coding: utf-8 -*-
"""json_fmtr.py
This module implements a MediaTypeFormatter with JSON response.
This module was originally shipped as an example code from https://github.com/DataBooster/PyWebApi, licensed under the MIT license.
Anyone who obtains a copy of this code is welcome to modify it for any... | 34.846154 | 135 | 0.730684 | 121 | 906 | 5.438017 | 0.710744 | 0.030395 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001357 | 0.186534 | 906 | 25 | 136 | 36.24 | 0.891452 | 0.554084 | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0.111111 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
f39066e523946592eb25eb6c65542beaf6ed93ea | 195 | py | Python | version_2.0/cli.py | Isak-Landin/AlienWorldsBot | c8750229de4a7d4efe2950b7b89b7c457b956b5b | [
"MIT"
] | null | null | null | version_2.0/cli.py | Isak-Landin/AlienWorldsBot | c8750229de4a7d4efe2950b7b89b7c457b956b5b | [
"MIT"
] | null | null | null | version_2.0/cli.py | Isak-Landin/AlienWorldsBot | c8750229de4a7d4efe2950b7b89b7c457b956b5b | [
"MIT"
] | null | null | null | try:
import time
import traceback
from program_files.__main__ import main
if __name__ == '__main__':
main()
except:
print(traceback.print_exc())
time.sleep(10000) | 19.5 | 43 | 0.65641 | 23 | 195 | 4.956522 | 0.652174 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034247 | 0.251282 | 195 | 10 | 44 | 19.5 | 0.746575 | 0 | 0 | 0 | 0 | 0 | 0.040816 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0.111111 | 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 |
3411052aa746ccfbb6487b369a2c0dc0e70a536b | 110 | py | Python | girlfriend_project/apps.py | paressuex11/mysite | 416e49ebe041aa8a1f67e56c9664961f5f714ccc | [
"Apache-2.0"
] | null | null | null | girlfriend_project/apps.py | paressuex11/mysite | 416e49ebe041aa8a1f67e56c9664961f5f714ccc | [
"Apache-2.0"
] | 7 | 2020-02-12T02:36:37.000Z | 2022-02-10T10:10:11.000Z | girlfriend_project/apps.py | paressuex11/mysite | 416e49ebe041aa8a1f67e56c9664961f5f714ccc | [
"Apache-2.0"
] | null | null | null | from django.apps import AppConfig
class GirlfriendProjectConfig(AppConfig):
name = 'girlfriend_project'
| 18.333333 | 41 | 0.8 | 11 | 110 | 7.909091 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136364 | 110 | 5 | 42 | 22 | 0.915789 | 0 | 0 | 0 | 0 | 0 | 0.163636 | 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 |
342b25a8f2f2e9f6dd989cfc80e899259fa211c6 | 314 | py | Python | tests/data/plain_old_module.py | danielcompton/mitogen | 2813d1a968d6f694514a0053d094c0da9ea4863b | [
"BSD-3-Clause"
] | null | null | null | tests/data/plain_old_module.py | danielcompton/mitogen | 2813d1a968d6f694514a0053d094c0da9ea4863b | [
"BSD-3-Clause"
] | null | null | null | tests/data/plain_old_module.py | danielcompton/mitogen | 2813d1a968d6f694514a0053d094c0da9ea4863b | [
"BSD-3-Clause"
] | null | null | null | """
I am a plain old module with no interesting dependencies or import machinery
fiddlery.
"""
import math
def get_sentinel_value():
# Some proof we're even talking to the mitogen-test Docker image
return open('/etc/sentinel').read()
def add(x, y):
return x + y
def pow(x, y):
return x ** y
| 15.7 | 76 | 0.671975 | 51 | 314 | 4.098039 | 0.764706 | 0.038278 | 0.076555 | 0.086124 | 0.095694 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.22293 | 314 | 19 | 77 | 16.526316 | 0.856557 | 0.477707 | 0 | 0 | 0 | 0 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | false | 0 | 0.142857 | 0.428571 | 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 |
3436ecb4e336a1144df7cab3accab468cc47ff09 | 139 | py | Python | src/msys_opt/modules/sql.py | willi-z/msys-opt | 2054931737893b4ea77a4ba2dbfb6a3e2bce7779 | [
"BSD-3-Clause"
] | null | null | null | src/msys_opt/modules/sql.py | willi-z/msys-opt | 2054931737893b4ea77a4ba2dbfb6a3e2bce7779 | [
"BSD-3-Clause"
] | null | null | null | src/msys_opt/modules/sql.py | willi-z/msys-opt | 2054931737893b4ea77a4ba2dbfb6a3e2bce7779 | [
"BSD-3-Clause"
] | null | null | null | from msys.core import Module,Connectable, Type
class SQL(Module):
def __init__(self):
super().__init__(inputs=[], outputs=[]) | 23.166667 | 47 | 0.676259 | 17 | 139 | 5.058824 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172662 | 139 | 6 | 47 | 23.166667 | 0.747826 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 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 |
343d87effd06cb338fc8d3c995918a87f6545c84 | 225 | py | Python | nn_redis_config/nn_redis.py | tseth92/NN_grpc_kube_deployment | 51bfa786dd8cbd7780140f0ef0c1eb50fcc94504 | [
"MIT"
] | null | null | null | nn_redis_config/nn_redis.py | tseth92/NN_grpc_kube_deployment | 51bfa786dd8cbd7780140f0ef0c1eb50fcc94504 | [
"MIT"
] | null | null | null | nn_redis_config/nn_redis.py | tseth92/NN_grpc_kube_deployment | 51bfa786dd8cbd7780140f0ef0c1eb50fcc94504 | [
"MIT"
] | null | null | null | import redis
redis_db = redis.StrictRedis(host="nn-sq-svc", port=6379, db=0)
print(redis_db.keys())
redis_db.set('n_samples',100000)
redis_db.set('epochs', 150)
redis_db.set('batch_size', 1000)
redis_db.set('mid_range', 10)
| 25 | 63 | 0.742222 | 41 | 225 | 3.853659 | 0.609756 | 0.265823 | 0.253165 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095694 | 0.071111 | 225 | 8 | 64 | 28.125 | 0.660287 | 0 | 0 | 0 | 0 | 0 | 0.191111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.142857 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
34544ffb43d91db7459d5aeadd8a11adedfcdfee | 207 | py | Python | rdbtools3/__init__.py | popravich/rdbtools3 | c2b097f58e7d3a3b12e6671aa413c263c1fb96cf | [
"MIT"
] | 3 | 2016-01-12T23:14:47.000Z | 2019-07-10T05:36:22.000Z | rdbtools3/__init__.py | popravich/rdbtools3 | c2b097f58e7d3a3b12e6671aa413c263c1fb96cf | [
"MIT"
] | null | null | null | rdbtools3/__init__.py | popravich/rdbtools3 | c2b097f58e7d3a3b12e6671aa413c263c1fb96cf | [
"MIT"
] | null | null | null | from .parser import parse_rdb_stream, RDBItem
from .exceptions import FileFormatError, RDBValueError
__version__ = '0.1.2'
(RDBItem, parse_rdb_stream,
FileFormatError, RDBValueError) # pragma: no cover
| 23 | 54 | 0.797101 | 25 | 207 | 6.28 | 0.68 | 0.101911 | 0.178344 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016575 | 0.125604 | 207 | 8 | 55 | 25.875 | 0.850829 | 0.077295 | 0 | 0 | 0 | 0 | 0.026455 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 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 |
345b8b64e41fef1a1e9f95fd8a1d44084d6f85bb | 155 | py | Python | valid triangle.py | Tanuka-Mondal/Competi | b244ade867862b4e33e63dabd2cdd136340c0bf8 | [
"MIT"
] | 1 | 2021-09-08T05:36:48.000Z | 2021-09-08T05:36:48.000Z | valid triangle.py | Tanuka-Mondal/Competi | b244ade867862b4e33e63dabd2cdd136340c0bf8 | [
"MIT"
] | null | null | null | valid triangle.py | Tanuka-Mondal/Competi | b244ade867862b4e33e63dabd2cdd136340c0bf8 | [
"MIT"
] | null | null | null | t = int(input())
while (t!=0):
a,b,c = map(int,input().split())
if (a+b+c == 180):
print('YES')
else:
print('NO')
t-=1
| 17.222222 | 36 | 0.412903 | 25 | 155 | 2.56 | 0.68 | 0.25 | 0.09375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048544 | 0.335484 | 155 | 8 | 37 | 19.375 | 0.572816 | 0 | 0 | 0 | 0 | 0 | 0.032258 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 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 |
347441db8bc4affdf62a00833370a2e23025b1d1 | 996 | py | Python | aiotdlib/api/functions/get_voice_chat_available_participants.py | jraylan/aiotdlib | 4528fcfca7c5c69b54a878ce6ce60e934a2dcc73 | [
"MIT"
] | null | null | null | aiotdlib/api/functions/get_voice_chat_available_participants.py | jraylan/aiotdlib | 4528fcfca7c5c69b54a878ce6ce60e934a2dcc73 | [
"MIT"
] | null | null | null | aiotdlib/api/functions/get_voice_chat_available_participants.py | jraylan/aiotdlib | 4528fcfca7c5c69b54a878ce6ce60e934a2dcc73 | [
"MIT"
] | null | null | null | # =============================================================================== #
# #
# This file has been generated automatically!! Do not change this manually! #
# ... | 35.571429 | 92 | 0.47992 | 72 | 996 | 6.527778 | 0.708333 | 0.038298 | 0.042553 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.304217 | 996 | 27 | 93 | 36.888889 | 0.678211 | 0.556225 | 0 | 0 | 1 | 0 | 0.095238 | 0.082707 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0.111111 | 0.888889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 3 |
3478264c794a3f180ec86805c965604a1b3922e9 | 2,365 | py | Python | l2address/formatter.py | EgorBlagov/l2address | d29970116184bd4bb78a58e789e07ed5009228b4 | [
"MIT"
] | 1 | 2021-08-02T07:13:29.000Z | 2021-08-02T07:13:29.000Z | l2address/formatter.py | EgorBlagov/l2address | d29970116184bd4bb78a58e789e07ed5009228b4 | [
"MIT"
] | null | null | null | l2address/formatter.py | EgorBlagov/l2address | d29970116184bd4bb78a58e789e07ed5009228b4 | [
"MIT"
] | null | null | null | import re
from abc import ABC, abstractmethod
from .utils import parse_hex, per_join
class Formatter(ABC):
def _to_clean_str(self, value, max_value):
value_str = str(hex(value))[2:]
full_mac_str = '0' * (self._hex_digits_count(max_value) -
len(value_str)) + value_str... | 28.493976 | 119 | 0.662579 | 314 | 2,365 | 4.611465 | 0.200637 | 0.132597 | 0.089779 | 0.070442 | 0.46616 | 0.46616 | 0.412293 | 0.393646 | 0.34047 | 0.34047 | 0 | 0.006522 | 0.221987 | 2,365 | 82 | 120 | 28.841463 | 0.780435 | 0 | 0 | 0.241379 | 0 | 0 | 0.020296 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.275862 | false | 0.034483 | 0.051724 | 0.189655 | 0.637931 | 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 |
347e054992d27cb2ec4c3396370171a573169533 | 64 | py | Python | backend/models/__init__.py | Hori1234/gastech-project | dc89e546fce9b588fc8038cf63b7d82ad3eafff9 | [
"MIT"
] | null | null | null | backend/models/__init__.py | Hori1234/gastech-project | dc89e546fce9b588fc8038cf63b7d82ad3eafff9 | [
"MIT"
] | null | null | null | backend/models/__init__.py | Hori1234/gastech-project | dc89e546fce9b588fc8038cf63b7d82ad3eafff9 | [
"MIT"
] | null | null | null |
from .users import User
__all__ = [
'User']
| 9.142857 | 24 | 0.46875 | 6 | 64 | 4.333333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.4375 | 64 | 6 | 25 | 10.666667 | 0.722222 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 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 |
caa39db7232070832f9bd3b29c7411a08b85d2e9 | 980 | py | Python | slixmpp/__init__.py | marconfus/slixmpp | bcf186f42dc31d360e0a0af8a4b3aaf1e0b212aa | [
"BSD-3-Clause"
] | null | null | null | slixmpp/__init__.py | marconfus/slixmpp | bcf186f42dc31d360e0a0af8a4b3aaf1e0b212aa | [
"BSD-3-Clause"
] | null | null | null | slixmpp/__init__.py | marconfus/slixmpp | bcf186f42dc31d360e0a0af8a4b3aaf1e0b212aa | [
"BSD-3-Clause"
] | null | null | null | """
Slixmpp: The Slick XMPP Library
Copyright (C) 2010 Nathanael C. Fritz
This file is part of Slixmpp.
See the file LICENSE for copying permission.
"""
import logging
logging.getLogger(__name__).addHandler(logging.NullHandler())
import asyncio
# Required for python < 3.7 to use the old ssl implemen... | 33.793103 | 80 | 0.812245 | 130 | 980 | 5.976923 | 0.546154 | 0.155727 | 0.1287 | 0.066924 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007067 | 0.133673 | 980 | 28 | 81 | 35 | 0.908127 | 0.267347 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.866667 | 0 | 0.866667 | 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 |
cad6f407f7e2ec628f292a0cf8cb6230d6d12b29 | 337 | py | Python | srforge_tests/unit_tests/utilities_tests/__init__.py | alunduil/srforge | ef498b0c2e327ae14613bd369f45940005ad8b1f | [
"MIT"
] | null | null | null | srforge_tests/unit_tests/utilities_tests/__init__.py | alunduil/srforge | ef498b0c2e327ae14613bd369f45940005ad8b1f | [
"MIT"
] | null | null | null | srforge_tests/unit_tests/utilities_tests/__init__.py | alunduil/srforge | ef498b0c2e327ae14613bd369f45940005ad8b1f | [
"MIT"
] | null | null | null | # Copyright (C) 2016 srforge project developers.
#
# See the COPYRIGHT file at the top-level directory of this distribution and at
# https://github.com/alunduil/srforge/blob/master/COPYRIGHT
#
# srforge is freely distributable under the terms of an MIT-style license.
# See LICENSE or http://www.opensource.org/licenses/... | 42.125 | 79 | 0.780415 | 51 | 337 | 5.156863 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013559 | 0.124629 | 337 | 7 | 80 | 48.142857 | 0.877966 | 0.95549 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
cadff6a5947df261c22029325d9e900afbcb18eb | 348 | py | Python | Part_3_advanced/m03_date_and_time/date_today/example_1/main.py | Mikma03/InfoShareacademy_Python_Courses | 3df1008c8c92831bebf1625f960f25b39d6987e6 | [
"MIT"
] | null | null | null | Part_3_advanced/m03_date_and_time/date_today/example_1/main.py | Mikma03/InfoShareacademy_Python_Courses | 3df1008c8c92831bebf1625f960f25b39d6987e6 | [
"MIT"
] | null | null | null | Part_3_advanced/m03_date_and_time/date_today/example_1/main.py | Mikma03/InfoShareacademy_Python_Courses | 3df1008c8c92831bebf1625f960f25b39d6987e6 | [
"MIT"
] | null | null | null | from book_book import books_directory, user_interface
def run_example():
user_interface.add_new_book()
print("Data dodania: ", books_directory.available_books[-1].added_at_date)
user_interface.add_new_book()
print("Data dodania: ", books_directory.available_books[-1].added_at_date)
if __name__ == "_... | 26.769231 | 78 | 0.755747 | 48 | 348 | 4.916667 | 0.479167 | 0.177966 | 0.135593 | 0.161017 | 0.669492 | 0.669492 | 0.669492 | 0.669492 | 0.669492 | 0.669492 | 0 | 0.006623 | 0.132184 | 348 | 12 | 79 | 29 | 0.774834 | 0 | 0 | 0.5 | 0 | 0 | 0.103448 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | true | 0 | 0.125 | 0 | 0.25 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
caf7109a216b415b4600a19f6e38c0eecc9526de | 505 | py | Python | stackimpact/utils.py | timgates42/stackimpact-python | 4d0a415b790c89e7bee1d70216f948b7fec11540 | [
"BSD-3-Clause"
] | 742 | 2017-06-26T13:16:34.000Z | 2022-02-06T11:05:31.000Z | stackimpact/utils.py | gaecom/stackimpact-python | 4d0a415b790c89e7bee1d70216f948b7fec11540 | [
"BSD-3-Clause"
] | 7 | 2017-06-28T06:01:04.000Z | 2021-05-18T20:06:53.000Z | stackimpact/utils.py | gaecom/stackimpact-python | 4d0a415b790c89e7bee1d70216f948b7fec11540 | [
"BSD-3-Clause"
] | 30 | 2017-06-27T15:26:04.000Z | 2021-05-16T11:08:53.000Z |
import time
import uuid
import base64
import hashlib
def millis():
return int(round(time.time() * 1000))
def timestamp():
return int(time.time())
def base64_encode(s):
return base64.b64encode(s.encode('utf-8')).decode('utf-8')
def base64_decode(b):
return base64.b64decode(b).decode('utf-8')
... | 14.852941 | 62 | 0.681188 | 73 | 505 | 4.616438 | 0.383562 | 0.047478 | 0.059347 | 0.077151 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 0.168317 | 505 | 33 | 63 | 15.30303 | 0.735714 | 0 | 0 | 0 | 0 | 0 | 0.039761 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.222222 | 0.277778 | 0.888889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
1b3e671c11ff77239e8ab8e03baca3eb7d514c79 | 5,007 | py | Python | main.py | Dropout1337/ComboWatermarker | 6c1dfa9fb6f12dc2924268fcd91458b839796824 | [
"MIT"
] | 6 | 2020-09-20T22:23:26.000Z | 2021-06-30T16:14:25.000Z | main.py | Dropout1337/ComboWatermarker | 6c1dfa9fb6f12dc2924268fcd91458b839796824 | [
"MIT"
] | null | null | null | main.py | Dropout1337/ComboWatermarker | 6c1dfa9fb6f12dc2924268fcd91458b839796824 | [
"MIT"
] | null | null | null | import os
import keyboard
banner = '''\u001b[34m____ ____ _ _ ___ ____ _ _ _ ____ ___ ____ ____ _ _ ____ ____ _ _
| | | |\/| |__] | | | | | |__| | |___ |__/ |\/| |__| |__/ |_/
|___ |__| | | |__] |__| |_|_| | | | |___ | \ | | | | | \ | \_ \u001b[37m'''
class Watermark():
def ... | 43.53913 | 126 | 0.46415 | 486 | 5,007 | 4.526749 | 0.158436 | 0.069091 | 0.04 | 0.083636 | 0.777727 | 0.725 | 0.683182 | 0.683182 | 0.683182 | 0.683182 | 0 | 0.075459 | 0.401837 | 5,007 | 115 | 127 | 43.53913 | 0.659099 | 0 | 0 | 0.651376 | 0 | 0.073395 | 0.309358 | 0.129546 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036697 | false | 0.073395 | 0.018349 | 0 | 0.06422 | 0.082569 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
1b7abe7f4afad6c95d3ce7822b662af263bb8812 | 1,172 | py | Python | data/strategies/bases.py | jamesrharwood/journal-guidelines | fe6c0a6d3c0443df6fc816b9503fad24459ddb4a | [
"MIT"
] | null | null | null | data/strategies/bases.py | jamesrharwood/journal-guidelines | fe6c0a6d3c0443df6fc816b9503fad24459ddb4a | [
"MIT"
] | null | null | null | data/strategies/bases.py | jamesrharwood/journal-guidelines | fe6c0a6d3c0443df6fc816b9503fad24459ddb4a | [
"MIT"
] | null | null | null | import re
from data.scrape.link_extractors.create_extractor import create_extractor
from data.scrape.utils import clean_url
from .constants import ID
class Strategy:
def __init__(self, url_pattern, template=None, **extractor_args):
self.url_pattern = url_pattern.format(ID=ID)
self.url_regex = re.... | 31.675676 | 79 | 0.668942 | 154 | 1,172 | 4.831169 | 0.311688 | 0.094086 | 0.075269 | 0.096774 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.226962 | 1,172 | 36 | 80 | 32.555556 | 0.821192 | 0 | 0 | 0 | 0 | 0 | 0.028157 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.142857 | 0.107143 | 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 |
1b82fee94cf72f5f38cff15f6ac47f29bd71f75c | 78 | py | Python | Practice/buttons.py | ashishjayamohan/competitive-programming | 05c5c560c2c2eb36121c52693b8c7d084f435f9e | [
"MIT"
] | null | null | null | Practice/buttons.py | ashishjayamohan/competitive-programming | 05c5c560c2c2eb36121c52693b8c7d084f435f9e | [
"MIT"
] | null | null | null | Practice/buttons.py | ashishjayamohan/competitive-programming | 05c5c560c2c2eb36121c52693b8c7d084f435f9e | [
"MIT"
] | null | null | null | line = input().split()
n = int(line[0])
m = int(line[1])
print(str(abs(n-m)))
| 15.6 | 22 | 0.576923 | 16 | 78 | 2.8125 | 0.6875 | 0.311111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029412 | 0.128205 | 78 | 4 | 23 | 19.5 | 0.632353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 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 |
1b884b81a434124c2e9b5b7bec2f3d3b1a796257 | 183 | py | Python | output/models/saxon_data/id/id008_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 1 | 2021-08-14T17:59:21.000Z | 2021-08-14T17:59:21.000Z | output/models/saxon_data/id/id008_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 4 | 2020-02-12T21:30:44.000Z | 2020-04-15T20:06:46.000Z | output/models/saxon_data/id/id008_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from output.models.saxon_data.id.id008_xsd.id008 import (
Doc,
Node,
PseudoId,
PseudoIdref,
)
__all__ = [
"Doc",
"Node",
"PseudoId",
"PseudoIdref",
]
| 13.071429 | 57 | 0.584699 | 19 | 183 | 5.315789 | 0.736842 | 0.138614 | 0.29703 | 0.514851 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045113 | 0.273224 | 183 | 13 | 58 | 14.076923 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0.142077 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1bd2497956029c869243241e0d24f1edfcdc8997 | 520 | py | Python | darvag/tags/forms.py | Erfi/dorathewordexplorer | 85bcbfd0baf3ba7a2bf511ab9a4fd1087c219c8b | [
"MIT"
] | null | null | null | darvag/tags/forms.py | Erfi/dorathewordexplorer | 85bcbfd0baf3ba7a2bf511ab9a4fd1087c219c8b | [
"MIT"
] | 17 | 2019-10-03T12:23:41.000Z | 2019-11-05T21:28:46.000Z | darvag/tags/forms.py | Erfi/german-api | 85bcbfd0baf3ba7a2bf511ab9a4fd1087c219c8b | [
"MIT"
] | null | null | null | from django.forms import Form, MultipleChoiceField, SelectMultiple, ModelMultipleChoiceField
# --- customizations ---
class TagModelMultipleChoiceField(ModelMultipleChoiceField):
def label_from_instance(self, tag):
return tag.name
# ----------------------
class TagFilterForm(Form):
def __init__(se... | 30.588235 | 120 | 0.715385 | 46 | 520 | 7.826087 | 0.630435 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138462 | 520 | 16 | 121 | 32.5 | 0.803571 | 0.086538 | 0 | 0 | 0 | 0 | 0.008475 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.125 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
9400374362a198841f41c9a2597aa394d299e8f8 | 42 | py | Python | fluent_contents/__init__.py | pombredanne/django-fluent-contents | b8a999a8c1e2fe03a591023688e74c9e4b472d5c | [
"Apache-2.0"
] | null | null | null | fluent_contents/__init__.py | pombredanne/django-fluent-contents | b8a999a8c1e2fe03a591023688e74c9e4b472d5c | [
"Apache-2.0"
] | null | null | null | fluent_contents/__init__.py | pombredanne/django-fluent-contents | b8a999a8c1e2fe03a591023688e74c9e4b472d5c | [
"Apache-2.0"
] | null | null | null | # following PEP 386
__version__ = "1.0a1"
| 14 | 21 | 0.714286 | 6 | 42 | 4.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171429 | 0.166667 | 42 | 2 | 22 | 21 | 0.571429 | 0.404762 | 0 | 0 | 0 | 0 | 0.217391 | 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 |
940450935e7335999ff4b26c4f843122b393e632 | 219 | py | Python | share/graphql/fields.py | felliott/SHARE | 8fd60ff4749349c9b867f6188650d71f4f0a1a56 | [
"Apache-2.0"
] | null | null | null | share/graphql/fields.py | felliott/SHARE | 8fd60ff4749349c9b867f6188650d71f4f0a1a56 | [
"Apache-2.0"
] | null | null | null | share/graphql/fields.py | felliott/SHARE | 8fd60ff4749349c9b867f6188650d71f4f0a1a56 | [
"Apache-2.0"
] | null | null | null | from graphene.types.scalars import Scalar
# Note should define a couple parse methods but this class is only used for serializing
class JSONField(Scalar):
@staticmethod
def serialize(val):
return val
| 21.9 | 87 | 0.744292 | 30 | 219 | 5.433333 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210046 | 219 | 9 | 88 | 24.333333 | 0.942197 | 0.388128 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.2 | 0.8 | 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 | 0 | 1 | 1 | 0 | 0 | 3 |
940bf097a889a2b00a5f8c6a8a5c2eb0138687b3 | 1,350 | py | Python | classes.py | emersonsoaresdasilva/systeam-impacta | b19e5e2e4b9d573fa53ec5d356c004c4ad1c0f54 | [
"Apache-2.0"
] | null | null | null | classes.py | emersonsoaresdasilva/systeam-impacta | b19e5e2e4b9d573fa53ec5d356c004c4ad1c0f54 | [
"Apache-2.0"
] | null | null | null | classes.py | emersonsoaresdasilva/systeam-impacta | b19e5e2e4b9d573fa53ec5d356c004c4ad1c0f54 | [
"Apache-2.0"
] | 1 | 2020-11-19T17:06:18.000Z | 2020-11-19T17:06:18.000Z | class Usuario(object):
def __init__(self, email='', senha=''):
self.email = email
self.senha = senha
def __str__(self):
return f'{self.email}'
class Equipe(object):
def __init__(self, nome='', sigla='', local=''):
self.nome = nome
self.sigla = sigla
self.... | 28.125 | 103 | 0.637037 | 167 | 1,350 | 4.814371 | 0.155689 | 0.161692 | 0.121891 | 0.063433 | 0.212687 | 0.078358 | 0 | 0 | 0 | 0 | 0 | 0 | 0.255556 | 1,350 | 47 | 104 | 28.723404 | 0.8 | 0 | 0 | 0.088235 | 0 | 0.029412 | 0.091111 | 0.016296 | 0 | 0 | 0 | 0 | 0 | 1 | 0.264706 | false | 0 | 0 | 0.117647 | 0.558824 | 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 |
9419100ffaf554866684191a2a75d8965ac468d8 | 154 | py | Python | app.py | ankan-fullstack/StocksDataConditionalOperation | a8a1d7122f053a9660787e3aa033e2a4bdfc2e61 | [
"MIT"
] | null | null | null | app.py | ankan-fullstack/StocksDataConditionalOperation | a8a1d7122f053a9660787e3aa033e2a4bdfc2e61 | [
"MIT"
] | null | null | null | app.py | ankan-fullstack/StocksDataConditionalOperation | a8a1d7122f053a9660787e3aa033e2a4bdfc2e61 | [
"MIT"
] | null | null | null | from flask import Flask
app = Flask(__name__)
if __name__ == "__main__":
from api import *
app.run(host ='0.0.0.0', port = 5000, debug = False) | 22 | 57 | 0.642857 | 24 | 154 | 3.625 | 0.625 | 0.068966 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066116 | 0.214286 | 154 | 7 | 57 | 22 | 0.652893 | 0 | 0 | 0 | 0 | 0 | 0.096774 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 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 |
9420f4b16f63eff7579a1baa1337f88c073a8797 | 65 | py | Python | run.py | TheBotCrator/Cools3 | c3711887c6ca61d5bce99573367705c707f17945 | [
"MIT"
] | null | null | null | run.py | TheBotCrator/Cools3 | c3711887c6ca61d5bce99573367705c707f17945 | [
"MIT"
] | null | null | null | run.py | TheBotCrator/Cools3 | c3711887c6ca61d5bce99573367705c707f17945 | [
"MIT"
] | null | null | null | import BonezBot.bot
__author__ = "SpBonez"
__version__ = "0.0.1" | 16.25 | 22 | 0.738462 | 9 | 65 | 4.444444 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 0.123077 | 65 | 4 | 23 | 16.25 | 0.649123 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 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 |
9465b84b222240f9c7b3a1cae7f082ad76af9e0f | 256 | py | Python | DebugLibrary/robotvar.py | lobinho/robotframework-debuglibrary | 7e6f9a005ad60a56bc47820c215ac8efd115a88e | [
"BSD-3-Clause"
] | 93 | 2015-02-06T16:40:27.000Z | 2022-02-10T14:26:23.000Z | DebugLibrary/robotvar.py | lobinho/robotframework-debuglibrary | 7e6f9a005ad60a56bc47820c215ac8efd115a88e | [
"BSD-3-Clause"
] | 55 | 2015-05-21T02:48:01.000Z | 2021-08-13T15:00:01.000Z | DebugLibrary/robotvar.py | stdedos/robotframework-debuglibrary | 5f48ce7e603c096bf258b2118b4ac3db0172675b | [
"BSD-3-Clause"
] | 50 | 2015-05-20T13:52:26.000Z | 2021-11-19T21:23:05.000Z | def assign_variable(robot_instance, variable_name, args):
"""Assign a robotframework variable."""
variable_value = robot_instance.run_keyword(*args)
robot_instance._variables.__setitem__(variable_name, variable_value)
return variable_value
| 42.666667 | 72 | 0.792969 | 30 | 256 | 6.266667 | 0.5 | 0.207447 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121094 | 256 | 5 | 73 | 51.2 | 0.835556 | 0.128906 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9474886f597535a540299d4544f2ce99f2545825 | 9,257 | py | Python | scripts/forecast_models_ex.py | chiara87todaro/1C_PYproject | 871dddc3c1e70edc3d6d6470a0f286b6bcf5e7cf | [
"BSD-3-Clause"
] | null | null | null | scripts/forecast_models_ex.py | chiara87todaro/1C_PYproject | 871dddc3c1e70edc3d6d6470a0f286b6bcf5e7cf | [
"BSD-3-Clause"
] | null | null | null | scripts/forecast_models_ex.py | chiara87todaro/1C_PYproject | 871dddc3c1e70edc3d6d6470a0f286b6bcf5e7cf | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Oct 17 10:23:50 2019
@author: chiara
"""
import os
import numpy as np # scientific calculation
import pandas as pd # data analysis
import itertools
import warnings
from statsmodels.tsa.arima_model import ARMA
ts1=list(range(0,500,2))
len(ts1)
mode... | 44.936893 | 85 | 0.480393 | 1,401 | 9,257 | 3.164168 | 0.248394 | 0.030228 | 0.10106 | 0.057749 | 0.404692 | 0.369501 | 0.351906 | 0.281751 | 0.246334 | 0.102639 | 0 | 0.266949 | 0.260668 | 9,257 | 205 | 86 | 45.156098 | 0.380771 | 0.834288 | 0 | 0.125 | 0 | 0 | 0.024517 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.025 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
846eacdff1b10d8e9e80d22c01185eced8ed622a | 54 | py | Python | api_permission/__init__.py | jayvdb/django-api-permission | ba771314b4a9c5c2edc5161b423e257012be8922 | [
"MIT"
] | 3 | 2020-06-01T17:06:16.000Z | 2021-12-12T05:40:04.000Z | api_permission/__init__.py | jayvdb/django-api-permission | ba771314b4a9c5c2edc5161b423e257012be8922 | [
"MIT"
] | 4 | 2020-06-02T06:46:06.000Z | 2020-06-04T17:38:57.000Z | api_permission/__init__.py | tcitry/django-api-permission | 371bd5f2989edf906c91a0e5af60a4da11d0da42 | [
"MIT"
] | null | null | null | default_app_config = 'api_permission.apps.AuthConfig'
| 27 | 53 | 0.851852 | 7 | 54 | 6.142857 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 54 | 1 | 54 | 54 | 0.843137 | 0 | 0 | 0 | 0 | 0 | 0.555556 | 0.555556 | 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 |
847d04298e6ad886d17c9d7cd621439d5a1d9da5 | 665 | py | Python | barriers/models/history/mentions.py | felix781/market-access-python-frontend | 3b0e49feb4fdf0224816326938a46002aa4a2b1c | [
"MIT"
] | 1 | 2021-12-15T04:14:03.000Z | 2021-12-15T04:14:03.000Z | barriers/models/history/mentions.py | felix781/market-access-python-frontend | 3b0e49feb4fdf0224816326938a46002aa4a2b1c | [
"MIT"
] | 19 | 2019-12-11T11:32:47.000Z | 2022-03-29T15:40:57.000Z | barriers/models/history/mentions.py | felix781/market-access-python-frontend | 3b0e49feb4fdf0224816326938a46002aa4a2b1c | [
"MIT"
] | 2 | 2021-02-09T09:38:45.000Z | 2021-03-29T19:07:09.000Z | import dateutil.parser
from utils.models import APIModel
class Mention(APIModel):
def __init__(self, data):
self.data = data
@property
def created_on(self):
return dateutil.parser.parse(self.data["created_on"])
@property
def go_to_url_path(self):
data2 = self.data
... | 21.451613 | 61 | 0.681203 | 82 | 665 | 5.231707 | 0.353659 | 0.167832 | 0.097902 | 0.088578 | 0.214452 | 0.214452 | 0.214452 | 0.214452 | 0.214452 | 0.214452 | 0 | 0.001942 | 0.225564 | 665 | 30 | 62 | 22.166667 | 0.831068 | 0 | 0 | 0.380952 | 0 | 0 | 0.105263 | 0.043609 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.095238 | 0.142857 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
848110a231f5df03b0cf46d679131237eeb6b3f8 | 1,867 | py | Python | app/app/calculation_service/mongoSetup.py | alasdair-macleod/demoappback | fedd555279a1e3b91172face7cec41eb158cbf0f | [
"MIT"
] | null | null | null | app/app/calculation_service/mongoSetup.py | alasdair-macleod/demoappback | fedd555279a1e3b91172face7cec41eb158cbf0f | [
"MIT"
] | 1 | 2019-01-16T15:45:31.000Z | 2019-01-16T15:45:31.000Z | app/app/calculation_service/mongoSetup.py | alasdair-macleod/demoappback | fedd555279a1e3b91172face7cec41eb158cbf0f | [
"MIT"
] | 1 | 2017-10-30T14:34:41.000Z | 2017-10-30T14:34:41.000Z | from app import db
def populate_mongo():
if 'expressions' in db.collection_names():
db.drop_collection('expressions')
expressions_entries = [
{
"name": "1",
"expression": "$A = \\begin{pmatrix}c_{11} & c_{12} & c_{13} & c_{14} & c_{15}\\\\ c_{21} & c_{22} & c_{23} & c_... | 64.37931 | 560 | 0.459025 | 303 | 1,867 | 2.471947 | 0.240924 | 0.016021 | 0.021362 | 0.032043 | 0.503338 | 0.503338 | 0.503338 | 0.503338 | 0.503338 | 0.503338 | 0 | 0.147205 | 0.243171 | 1,867 | 28 | 561 | 66.678571 | 0.382873 | 0 | 0 | 0 | 0 | 0.208333 | 0.738082 | 0.080878 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.041667 | 0 | 0.083333 | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
84877d8e0c39333155c2bb8353f6901be3110160 | 102 | py | Python | yetl/metasource/__init__.py | semanticinsight/yetl-framework | c9cf5b686cc3cb701c49e9e2a11a7bba1ecd6e73 | [
"MIT"
] | null | null | null | yetl/metasource/__init__.py | semanticinsight/yetl-framework | c9cf5b686cc3cb701c49e9e2a11a7bba1ecd6e73 | [
"MIT"
] | null | null | null | yetl/metasource/__init__.py | semanticinsight/yetl-framework | c9cf5b686cc3cb701c49e9e2a11a7bba1ecd6e73 | [
"MIT"
] | null | null | null | from .metasource import FileMetasource
from .index import Index
__all__ = ["FileMetasource", "Index"] | 25.5 | 38 | 0.784314 | 11 | 102 | 6.909091 | 0.545455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 102 | 4 | 39 | 25.5 | 0.844444 | 0 | 0 | 0 | 0 | 0 | 0.184466 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
849292d06ca82342349cb2e46296455073ef7ba5 | 1,780 | py | Python | lemmus/__init__.py | naturalis/lemmus | 1a157c5143f7d7323dece488f3b8e9498c01baa5 | [
"Apache-2.0"
] | null | null | null | lemmus/__init__.py | naturalis/lemmus | 1a157c5143f7d7323dece488f3b8e9498c01baa5 | [
"Apache-2.0"
] | null | null | null | lemmus/__init__.py | naturalis/lemmus | 1a157c5143f7d7323dece488f3b8e9498c01baa5 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
__all__ = ['issue','init','review']
try:
import sys
except ImportError:
print 'Error while import [sys] module \nConsider checking your pc since os should really be there you fool!'
exit(1)
# checking which version we are using.
if sys.version_info >= (3,0):
print 'This is written in python 2... | 25.070423 | 119 | 0.763483 | 246 | 1,780 | 5.48374 | 0.349594 | 0.088213 | 0.114159 | 0.140104 | 0.509266 | 0.509266 | 0.305411 | 0.305411 | 0.305411 | 0.20089 | 0 | 0.007275 | 0.150562 | 1,780 | 70 | 120 | 25.428571 | 0.884921 | 0.110674 | 0 | 0.446809 | 0 | 0.085106 | 0.508238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.06383 | 0.446809 | null | null | 0.191489 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
84a0dde2dd28330424d1614dcdc5f2153dc8f814 | 1,042 | py | Python | Computer Science/Development/imageProcessor/robo_controls.py | zbendt/ECE-Capstone-Project | 1bafc61f896191ccd5a843980500fb4b8bbeb8bd | [
"MIT"
] | null | null | null | Computer Science/Development/imageProcessor/robo_controls.py | zbendt/ECE-Capstone-Project | 1bafc61f896191ccd5a843980500fb4b8bbeb8bd | [
"MIT"
] | null | null | null | Computer Science/Development/imageProcessor/robo_controls.py | zbendt/ECE-Capstone-Project | 1bafc61f896191ccd5a843980500fb4b8bbeb8bd | [
"MIT"
] | null | null | null | import time
import GRBL
start_crdnts_up = {} #start coordinates
start_crdnts_dn = {} #start coordinates
pass_crdnts_up = {} #test pass stack
pass_crdnts_dn = {} #test pass stack
fail_crdnts_up = {} #test fail stack
fail_crdnts_dn = {} #test fail stack
camera_cordnts_up = {} #camera locations
camera_cordnts_dn = {} ... | 21.265306 | 40 | 0.664107 | 147 | 1,042 | 4.47619 | 0.333333 | 0.095745 | 0.12766 | 0.164134 | 0.256839 | 0.214286 | 0.164134 | 0 | 0 | 0 | 0 | 0.007282 | 0.209213 | 1,042 | 48 | 41 | 21.708333 | 0.791262 | 0.204415 | 0 | 0.193548 | 0 | 0 | 0.174817 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.225806 | false | 0.129032 | 0.064516 | 0 | 0.290323 | 0.225806 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
84afb0c16b01e51d16f652466d95f285c1d5b079 | 170 | py | Python | shipping/cythonize.py | pgolo/sic | de5f660dec40eb349e59dc1382f41028a8a34936 | [
"MIT"
] | 2 | 2020-11-10T13:49:17.000Z | 2020-11-25T13:36:48.000Z | shipping/cythonize.py | pgolo/sic | de5f660dec40eb349e59dc1382f41028a8a34936 | [
"MIT"
] | 21 | 2020-06-14T06:37:15.000Z | 2021-09-28T15:35:39.000Z | shipping/cythonize.py | pgolo/sic | de5f660dec40eb349e59dc1382f41028a8a34936 | [
"MIT"
] | null | null | null | try:
from Cython.Build import cythonize
ext_modules = cythonize(['sic/core.py', 'sic/implicit.py'], compiler_directives={'language_level': '3'})
except:
pass
| 28.333333 | 108 | 0.7 | 22 | 170 | 5.272727 | 0.863636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006897 | 0.147059 | 170 | 5 | 109 | 34 | 0.793103 | 0 | 0 | 0 | 0 | 0 | 0.241176 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.2 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
84ba8943014645dc8d085dd9b8585becaa0b21c3 | 1,851 | py | Python | dev/local/vision/core.py | LaurenSpiegel/fastai_docs | 4fe6b62116d88dea9610548133e6cadb6b260a73 | [
"Apache-2.0"
] | null | null | null | dev/local/vision/core.py | LaurenSpiegel/fastai_docs | 4fe6b62116d88dea9610548133e6cadb6b260a73 | [
"Apache-2.0"
] | null | null | null | dev/local/vision/core.py | LaurenSpiegel/fastai_docs | 4fe6b62116d88dea9610548133e6cadb6b260a73 | [
"Apache-2.0"
] | null | null | null | #AUTOGENERATED! DO NOT EDIT! File to edit: dev/06_vision_core.ipynb (unless otherwise specified).
__all__ = ['Image', 'image_convert', 'ImageConverter', 'image_resize', 'ImageResizer', 'image2byte', 'unpermute_image',
'ImageToByteTensor', 'ByteToFloatTensor']
from ..imports import *
from ..test import *
fr... | 37.77551 | 119 | 0.707726 | 280 | 1,851 | 4.596429 | 0.35 | 0.04662 | 0.032634 | 0.013986 | 0.090909 | 0.060606 | 0.060606 | 0.060606 | 0.060606 | 0.060606 | 0 | 0.019231 | 0.157212 | 1,851 | 49 | 120 | 37.77551 | 0.805769 | 0.240951 | 0 | 0.054054 | 1 | 0.027027 | 0.249709 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.27027 | false | 0 | 0.189189 | 0.081081 | 0.675676 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
84c3f2f8e1f28753ae1013b2d695700b7e52c7a2 | 102 | py | Python | __data__.py | nadavWeisler/BrmsGeneratorRunner | eca337eb8c42658d2eab28843819ca259cbeee11 | [
"MIT"
] | 1 | 2021-06-10T13:50:53.000Z | 2021-06-10T13:50:53.000Z | __data__.py | nadavWeisler/BrmsGeneratorRunner | eca337eb8c42658d2eab28843819ca259cbeee11 | [
"MIT"
] | null | null | null | __data__.py | nadavWeisler/BrmsGeneratorRunner | eca337eb8c42658d2eab28843819ca259cbeee11 | [
"MIT"
] | null | null | null | __version__ = '1.0.dev'
__author__ = 'Nadav Weisler'
__name__ = 'bRMS generator'
__app_name__ = 'bRMS' | 25.5 | 28 | 0.735294 | 13 | 102 | 4.461538 | 0.846154 | 0.275862 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022472 | 0.127451 | 102 | 4 | 29 | 25.5 | 0.629213 | 0 | 0 | 0 | 0 | 0 | 0.368932 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
84d40186bed5db263c047b83ead18d056889a747 | 122 | py | Python | Beecrowd/Python/1073.py | felipemsalles/Programming-Studies | 63100fb22a165c4582b10a95d5a583f9bc1e990f | [
"MIT"
] | null | null | null | Beecrowd/Python/1073.py | felipemsalles/Programming-Studies | 63100fb22a165c4582b10a95d5a583f9bc1e990f | [
"MIT"
] | null | null | null | Beecrowd/Python/1073.py | felipemsalles/Programming-Studies | 63100fb22a165c4582b10a95d5a583f9bc1e990f | [
"MIT"
] | null | null | null | # 1073
n = int(input())
if 5 < n < 2000:
for i in range(2, n + 1, 2):
print("{}^{} = {}".format(i, 2, i ** 2)) | 24.4 | 48 | 0.418033 | 22 | 122 | 2.318182 | 0.681818 | 0.078431 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164706 | 0.303279 | 122 | 5 | 48 | 24.4 | 0.435294 | 0.032787 | 0 | 0 | 0 | 0 | 0.08547 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
84e6ca11745935f8d41d9be03c417a4ce6928ff4 | 878 | py | Python | test/test_node_api.py | atlanticwave-sdx/sdx-controller-client | 426453bf84e9522e857fd78139bb63429b9091cc | [
"MIT"
] | null | null | null | test/test_node_api.py | atlanticwave-sdx/sdx-controller-client | 426453bf84e9522e857fd78139bb63429b9091cc | [
"MIT"
] | null | null | null | test/test_node_api.py | atlanticwave-sdx/sdx-controller-client | 426453bf84e9522e857fd78139bb63429b9091cc | [
"MIT"
] | null | null | null | # coding: utf-8
"""
SDX-Controller
You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). # noqa: E501
OpenAPI spec version: 1.0.0
Contact: yxin@renci.org
Generated by: https://github.com/swagger-api/swagger-code... | 21.414634 | 156 | 0.664009 | 119 | 878 | 4.731092 | 0.571429 | 0.056838 | 0.069272 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023392 | 0.220957 | 878 | 40 | 157 | 21.95 | 0.799708 | 0.462415 | 0 | 0.142857 | 0 | 0 | 0.019277 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0.142857 | 0.357143 | 0 | 0.642857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
84e9049cc625185afb9163e9d3cf3f69b6c12576 | 188 | py | Python | python/test_qmmm.py | wallerlab/yoink | ffbe6a8f5804076996e70752666ca986760e6aa9 | [
"Apache-2.0"
] | 6 | 2016-01-23T04:15:49.000Z | 2020-06-08T23:49:04.000Z | python/test_qmmm.py | wallerlab/yoink | ffbe6a8f5804076996e70752666ca986760e6aa9 | [
"Apache-2.0"
] | 41 | 2016-01-22T12:52:39.000Z | 2017-02-05T19:22:56.000Z | python/test_qmmm.py | wallerlab/yoink | ffbe6a8f5804076996e70752666ca986760e6aa9 | [
"Apache-2.0"
] | 2 | 2016-09-30T09:07:05.000Z | 2018-05-27T03:41:50.000Z | from pyoink import *
from jpype import *
pyoink=PYoink("../build/libs/Yoink-0.0.3.jar","./dori_qmmm.xml")
qm_atoms,qm_molecules = pyoink.get_qm_indices()
print qm_molecules
shutdownJVM()
| 23.5 | 64 | 0.760638 | 30 | 188 | 4.566667 | 0.666667 | 0.160584 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017442 | 0.085106 | 188 | 7 | 65 | 26.857143 | 0.77907 | 0 | 0 | 0 | 0 | 0 | 0.234043 | 0.154255 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.333333 | null | null | 0.166667 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
84efa0af37a0a237569973818456ffbc4b1999ac | 293 | py | Python | codes/LinearRegression.py | CNShawn/DL-ML-Model | 33110838b52f66a7732db7e260bd5328a4fa3a48 | [
"MIT"
] | null | null | null | codes/LinearRegression.py | CNShawn/DL-ML-Model | 33110838b52f66a7732db7e260bd5328a4fa3a48 | [
"MIT"
] | null | null | null | codes/LinearRegression.py | CNShawn/DL-ML-Model | 33110838b52f66a7732db7e260bd5328a4fa3a48 | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
class LinearRegressionModel(nn.Module):
def __init__(self, input_dim, output_dim):
super().__init__()
self.Linear = nn.Linear(input_dim, output_dim)
def forward(self, x):
out = self.Linear(x)
return out
| 22.538462 | 55 | 0.627986 | 38 | 293 | 4.526316 | 0.5 | 0.127907 | 0.162791 | 0.197674 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.273038 | 293 | 12 | 56 | 24.416667 | 0.807512 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
1703e783c06316d12c5bbb814c6ade9e82bf7bd9 | 1,887 | py | Python | mysite/forms.py | AmanRiat1/uOttaHack | 9cd301c21721ef792ffb1232434ac43dd47d5e14 | [
"MIT"
] | null | null | null | mysite/forms.py | AmanRiat1/uOttaHack | 9cd301c21721ef792ffb1232434ac43dd47d5e14 | [
"MIT"
] | 1 | 2020-12-04T23:30:06.000Z | 2020-12-04T23:30:06.000Z | mysite/forms.py | AmanRiat1/uOttaHack | 9cd301c21721ef792ffb1232434ac43dd47d5e14 | [
"MIT"
] | 1 | 2020-12-04T03:58:36.000Z | 2020-12-04T03:58:36.000Z | from django import forms
gender = [('male', 'M'), ('female', 'F')]
response = [('1', 'yes'), ('0', 'no')]
time = [('1', 'one'), ('2', 'two'), ('3', 'three'), ('4', 'four')]
education = [('0', 'zero'),('1', 'zero'), ('2', 'two'), ('3', 'three'), ('4', 'four')]
rating = [('1', 'one'), ('2', 'two'), ('3', 'three'), ('4',... | 67.392857 | 124 | 0.699523 | 238 | 1,887 | 5.470588 | 0.268908 | 0.182796 | 0.189708 | 0.239631 | 0.5 | 0.301843 | 0.241167 | 0.175115 | 0.084485 | 0 | 0 | 0.016647 | 0.108638 | 1,887 | 27 | 125 | 69.888889 | 0.757432 | 0 | 0 | 0 | 0 | 0 | 0.16649 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.041667 | 0 | 0.791667 | 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 |
1707aeaf43de34d57cc2f4d582fcd335d9527f2f | 57 | py | Python | 1959.py | heltonricardo/URI | 160cca22d94aa667177c9ebf2a1c9864c5e55b41 | [
"MIT"
] | 6 | 2021-04-13T00:33:43.000Z | 2022-02-10T10:23:59.000Z | 1959.py | heltonricardo/URI | 160cca22d94aa667177c9ebf2a1c9864c5e55b41 | [
"MIT"
] | null | null | null | 1959.py | heltonricardo/URI | 160cca22d94aa667177c9ebf2a1c9864c5e55b41 | [
"MIT"
] | 3 | 2021-03-23T18:42:24.000Z | 2022-02-10T10:24:07.000Z | e = [int(x) for x in input().split()]
print(e[0] * e[1])
| 19 | 37 | 0.526316 | 13 | 57 | 2.307692 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042553 | 0.175439 | 57 | 2 | 38 | 28.5 | 0.595745 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
ca05ac4ff71352fdfc5b9fbcb0b5b863dbcd84e0 | 257 | py | Python | app/forms/main_item_application.py | Wern-rm/raton.by | 68f862f2bc0551bf2327e9d6352c0cde93f45301 | [
"MIT"
] | null | null | null | app/forms/main_item_application.py | Wern-rm/raton.by | 68f862f2bc0551bf2327e9d6352c0cde93f45301 | [
"MIT"
] | null | null | null | app/forms/main_item_application.py | Wern-rm/raton.by | 68f862f2bc0551bf2327e9d6352c0cde93f45301 | [
"MIT"
] | null | null | null | from flask_wtf import FlaskForm
from wtforms import StringField, TextAreaField
class ItemApplicationForm(FlaskForm):
name = StringField('Ф.И.О')
phone = StringField('Адрес')
email = StringField('Адрес')
message = TextAreaField('Сообщение') | 28.555556 | 46 | 0.743191 | 27 | 257 | 7.037037 | 0.703704 | 0.168421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155642 | 257 | 9 | 47 | 28.555556 | 0.875576 | 0 | 0 | 0 | 0 | 0 | 0.093023 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 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 |
ca1d0fa7490d07f7a431441db71fda1814da31a8 | 240 | py | Python | src/textacy/extract/keyterms/__init__.py | austinjp/textacy | dddfdbf0e0ab3bf756bc4eda042eab1001aac709 | [
"Apache-2.0"
] | 1,929 | 2016-02-14T08:30:38.000Z | 2022-03-31T03:00:35.000Z | src/textacy/extract/keyterms/__init__.py | austinjp/textacy | dddfdbf0e0ab3bf756bc4eda042eab1001aac709 | [
"Apache-2.0"
] | 304 | 2016-02-18T15:52:22.000Z | 2022-03-31T18:06:54.000Z | src/textacy/extract/keyterms/__init__.py | austinjp/textacy | dddfdbf0e0ab3bf756bc4eda042eab1001aac709 | [
"Apache-2.0"
] | 285 | 2016-03-20T04:25:08.000Z | 2022-03-24T11:31:17.000Z | """
Keyterms
--------
:mod:`textacy.extract.keyterms`: Extract keyterms from documents using a variety of
rule-based algorithms.
"""
from .scake import scake
from .sgrank import sgrank
from .textrank import textrank
from .yake import yake
| 20 | 83 | 0.754167 | 32 | 240 | 5.65625 | 0.5625 | 0.165746 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 240 | 11 | 84 | 21.818182 | 0.870192 | 0.520833 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
ca1d1d1ad2aabac71b62ff71ca67d7873897cc7c | 207 | py | Python | CursoEmVideo/Python/Mundo1/ex003 - somando dois numeros.py | Rodrigofsiqueira/Estudo | 3b56ed3f60d0dd62c5531e1bf3bd53308646c722 | [
"MIT"
] | null | null | null | CursoEmVideo/Python/Mundo1/ex003 - somando dois numeros.py | Rodrigofsiqueira/Estudo | 3b56ed3f60d0dd62c5531e1bf3bd53308646c722 | [
"MIT"
] | null | null | null | CursoEmVideo/Python/Mundo1/ex003 - somando dois numeros.py | Rodrigofsiqueira/Estudo | 3b56ed3f60d0dd62c5531e1bf3bd53308646c722 | [
"MIT"
] | null | null | null | valor1 = int(input('Digite o primeiro valor a ser somado: '))
valor2 = int(input('Digite o segundo valor: '))
soma = valor1 + valor2
print('A soma entre {} e {} é igual a {}.'.format(valor1, valor2, soma))
| 34.5 | 72 | 0.666667 | 32 | 207 | 4.3125 | 0.59375 | 0.115942 | 0.202899 | 0.217391 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034884 | 0.169082 | 207 | 5 | 73 | 41.4 | 0.767442 | 0 | 0 | 0 | 0 | 0 | 0.463768 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 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 |
ca27b4890d76ba9cc311df8e7b942a491468798a | 121 | py | Python | tests/settings/imagemagick.py | apahomov/sorl-thumbnail | b6358d234d7de3927a2666a2a5ab3d7870c0e1d3 | [
"BSD-3-Clause"
] | 630 | 2017-05-25T23:50:46.000Z | 2022-03-29T09:59:06.000Z | tests/settings/imagemagick.py | apahomov/sorl-thumbnail | b6358d234d7de3927a2666a2a5ab3d7870c0e1d3 | [
"BSD-3-Clause"
] | 246 | 2017-05-29T14:42:08.000Z | 2022-03-13T23:41:30.000Z | tests/settings/imagemagick.py | apahomov/sorl-thumbnail | b6358d234d7de3927a2666a2a5ab3d7870c0e1d3 | [
"BSD-3-Clause"
] | 163 | 2017-05-29T08:26:04.000Z | 2022-02-28T17:11:19.000Z | from .default import *
THUMBNAIL_ENGINE = 'sorl.thumbnail.engines.convert_engine.Engine'
THUMBNAIL_CONVERT = 'convert'
| 20.166667 | 65 | 0.801653 | 14 | 121 | 6.714286 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.099174 | 121 | 5 | 66 | 24.2 | 0.862385 | 0 | 0 | 0 | 0 | 0 | 0.421488 | 0.363636 | 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 |
ca28c579f0036945ed4430204f4097843529c02f | 303 | py | Python | 4_SC_project/courses/views.py | abdullah1107/Django-for-Begineers | 03b9025607df9a5318d9e3b736fa66d233fdc4de | [
"MIT"
] | null | null | null | 4_SC_project/courses/views.py | abdullah1107/Django-for-Begineers | 03b9025607df9a5318d9e3b736fa66d233fdc4de | [
"MIT"
] | null | null | null | 4_SC_project/courses/views.py | abdullah1107/Django-for-Begineers | 03b9025607df9a5318d9e3b736fa66d233fdc4de | [
"MIT"
] | null | null | null | from django.shortcuts import render
from rest_framework import viewsets
from courses.models import MyCourse
from courses.serializers import CourseSerializer
# Create your views here.
class CourseView(viewsets.ModelViewSet):
queryset = MyCourse.objects.all()
serializer_class = CourseSerializer
| 30.3 | 48 | 0.825083 | 35 | 303 | 7.085714 | 0.685714 | 0.08871 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125413 | 303 | 9 | 49 | 33.666667 | 0.935849 | 0.075908 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.571429 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
ca3867dc76dfb8aba43525bbaf5fbe1e1a1e40f0 | 1,629 | py | Python | src/minio_console/client.py | cinaq/minio-console | 1710e4772f36ddb598efa60789d75147d4b11da3 | [
"MIT"
] | 1 | 2022-01-30T22:07:30.000Z | 2022-01-30T22:07:30.000Z | src/minio_console/client.py | cinaq/minio-console | 1710e4772f36ddb598efa60789d75147d4b11da3 | [
"MIT"
] | null | null | null | src/minio_console/client.py | cinaq/minio-console | 1710e4772f36ddb598efa60789d75147d4b11da3 | [
"MIT"
] | null | null | null | import requests
import json
class MinioConsoleClient:
def __init__(self, url, username, password):
# docs: https://github.com/minio/console/blob/master/swagger-console.yml
self.url = url + "/api/v1"
self.username = username
self.password = password
self.token = self._login()... | 33.9375 | 108 | 0.616329 | 193 | 1,629 | 5.103627 | 0.284974 | 0.101523 | 0.071066 | 0.091371 | 0.447716 | 0.309645 | 0.154315 | 0.154315 | 0.154315 | 0 | 0 | 0.001634 | 0.248619 | 1,629 | 48 | 109 | 33.9375 | 0.803105 | 0.042971 | 0 | 0.052632 | 0 | 0 | 0.079589 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0.078947 | 0.052632 | 0.105263 | 0.473684 | 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 |
ca663ced3cfb454e4150af532daf1639da162f40 | 707 | py | Python | api/serializers.py | swarup-kharul/Flo-In | 3591f4496cc2a8a742e6d885b71dbdfa374de3d4 | [
"MIT"
] | 2 | 2021-09-30T20:21:06.000Z | 2022-01-27T14:51:04.000Z | api/serializers.py | swarup-kharul/Flo-In | 3591f4496cc2a8a742e6d885b71dbdfa374de3d4 | [
"MIT"
] | 1 | 2021-09-30T20:20:59.000Z | 2021-09-30T20:20:59.000Z | api/serializers.py | swarup-kharul/Flo-In | 3591f4496cc2a8a742e6d885b71dbdfa374de3d4 | [
"MIT"
] | 5 | 2021-09-30T20:23:25.000Z | 2022-02-10T04:03:29.000Z | from django.forms.fields import ImageField
from rest_framework import serializers
from django.contrib.auth import get_user_model
from djoser.serializers import UserCreateSerializer
from accounts.models import UserData
User = get_user_model()
class UserCreateSerializer(UserCreateSerializer):
class Meta(... | 29.458333 | 64 | 0.731259 | 73 | 707 | 6.972603 | 0.520548 | 0.039293 | 0.047151 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.182461 | 707 | 23 | 65 | 30.73913 | 0.880623 | 0 | 0 | 0 | 0 | 0 | 0.067251 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.125 | 0.3125 | 0 | 0.6875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
ca7574c3a3add2c4fbe0fa71475f848d86adc5a9 | 159 | py | Python | _estudoPython_solid/scriptTeste-03.py | carlos-freitas-gitHub/Python_Analise_De_Dados | 74a72772179f45684f4f12acd4ad607c99ed8107 | [
"Apache-2.0"
] | null | null | null | _estudoPython_solid/scriptTeste-03.py | carlos-freitas-gitHub/Python_Analise_De_Dados | 74a72772179f45684f4f12acd4ad607c99ed8107 | [
"Apache-2.0"
] | null | null | null | _estudoPython_solid/scriptTeste-03.py | carlos-freitas-gitHub/Python_Analise_De_Dados | 74a72772179f45684f4f12acd4ad607c99ed8107 | [
"Apache-2.0"
] | null | null | null | numero = 42
chute = input('Digite um número: \n')
converte = int(chute)
if numero == converte:
print('Voçê acertou!')
else:
print('Voçê errou!') | 22.714286 | 38 | 0.622642 | 22 | 159 | 4.545455 | 0.772727 | 0.18 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016 | 0.213836 | 159 | 7 | 39 | 22.714286 | 0.776 | 0 | 0 | 0 | 0 | 0 | 0.287582 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.285714 | 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 |
ca7d102d77cceb9f12fd08c5351855e2663678ae | 364 | py | Python | qlever/settings_secret_template.py | ad-freiburg/qleverUI | 105ef23447eb691a5da8a4c92be3b4150aac72c6 | [
"Apache-2.0"
] | 4 | 2021-10-09T20:36:33.000Z | 2022-02-12T09:19:17.000Z | qlever/settings_secret_template.py | ad-freiburg/qleverUI | 105ef23447eb691a5da8a4c92be3b4150aac72c6 | [
"Apache-2.0"
] | 29 | 2019-09-01T08:48:12.000Z | 2021-06-01T15:57:24.000Z | qlever/settings_secret_template.py | ad-freiburg/qleverUI | 105ef23447eb691a5da8a4c92be3b4150aac72c6 | [
"Apache-2.0"
] | 4 | 2019-01-04T19:44:55.000Z | 2020-12-05T03:40:42.000Z | # Change these values and rename this file to "settings_secret.py"
# SECURITY WARNING: If you are using this in production, do NOT use the default SECRET KEY!
# See: https://docs.djangoproject.com/en/3.0/ref/settings/#std:setting-SECRET_KEY
SECRET_KEY = '!!super_secret!!'
# https://docs.djangoproject.com/en/3.0/ref/se... | 45.5 | 91 | 0.752747 | 58 | 364 | 4.637931 | 0.672414 | 0.100372 | 0.163569 | 0.185874 | 0.297398 | 0.297398 | 0.297398 | 0.297398 | 0.297398 | 0 | 0 | 0.012308 | 0.107143 | 364 | 7 | 92 | 52 | 0.815385 | 0.818681 | 0 | 0 | 0 | 0 | 0.288136 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ca828ac9c1d690d9dd8dc535432262b6a449b7ec | 106 | py | Python | Chapter 15/ch15_20.py | bpbpublications/TEST-YOUR-SKILLS-IN-PYTHON-LANGUAGE | f6a4194684515495d00aa38347a725dd08f39a0c | [
"MIT"
] | null | null | null | Chapter 15/ch15_20.py | bpbpublications/TEST-YOUR-SKILLS-IN-PYTHON-LANGUAGE | f6a4194684515495d00aa38347a725dd08f39a0c | [
"MIT"
] | null | null | null | Chapter 15/ch15_20.py | bpbpublications/TEST-YOUR-SKILLS-IN-PYTHON-LANGUAGE | f6a4194684515495d00aa38347a725dd08f39a0c | [
"MIT"
] | null | null | null | import numpy as np
arr1 = np.ones (2, dtype=float)
print("1D Array with ones ")
print(arr1)
#[1. 1.] | 17.666667 | 32 | 0.632075 | 19 | 106 | 3.526316 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 0.207547 | 106 | 6 | 33 | 17.666667 | 0.72619 | 0.066038 | 0 | 0 | 0 | 0 | 0.202128 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
04649b8dea147441c36a2539f92aeead65d9654b | 645 | py | Python | examples/example3.py | axju/socialpy | c304d8f7c619d17f7f6f819ce6e8c2aa794646a0 | [
"MIT"
] | 1 | 2018-09-11T21:42:50.000Z | 2018-09-11T21:42:50.000Z | examples/example3.py | axju/socialpy | c304d8f7c619d17f7f6f819ce6e8c2aa794646a0 | [
"MIT"
] | null | null | null | examples/example3.py | axju/socialpy | c304d8f7c619d17f7f6f819ce6e8c2aa794646a0 | [
"MIT"
] | null | null | null | from socialpy import Gateway
import json
def plot(LastJson):
try:
print(json.dumps(LastJson, indent=4, sort_keys=True))
except Exception as e:
pass
gateway = Gateway()
#gateway.load_from_file('.env')
gateway['instagram'].setup(user='...', pw='...')
id = gateway['instagram'].api.username_id
p... | 24.807692 | 78 | 0.72093 | 83 | 645 | 5.542169 | 0.409639 | 0.278261 | 0.28913 | 0.156522 | 0.365217 | 0.365217 | 0.247826 | 0.247826 | 0.247826 | 0.247826 | 0 | 0.003454 | 0.102326 | 645 | 25 | 79 | 25.8 | 0.791019 | 0.046512 | 0 | 0.117647 | 0 | 0 | 0.127036 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0.058824 | 0.117647 | 0 | 0.176471 | 0.352941 | 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 |
046e60d4b0c53f0874165e8270d36b4fb4571a8f | 226 | py | Python | GOP/utility/__init__.py | viebboy/PyGOP | 753f291d18601869f2e91930c7a2cb9a92caf892 | [
"MIT"
] | 17 | 2018-10-03T15:39:16.000Z | 2022-01-16T08:13:34.000Z | GOP/utility/__init__.py | viebboy/PyGOP | 753f291d18601869f2e91930c7a2cb9a92caf892 | [
"MIT"
] | 3 | 2020-10-10T02:53:11.000Z | 2020-12-18T05:33:07.000Z | GOP/utility/__init__.py | viebboy/PyGOP | 753f291d18601869f2e91930c7a2cb9a92caf892 | [
"MIT"
] | 6 | 2019-04-26T15:28:06.000Z | 2021-12-03T17:19:01.000Z | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Author: Dat Tran
Email: dat.tranthanh@tut.fi, viebboy@gmail.com
github: https://github.com/viebboy
"""
from . import gop_utils
from . import gop_operators
from . import misc
| 18.833333 | 46 | 0.70354 | 34 | 226 | 4.617647 | 0.735294 | 0.191083 | 0.165605 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010204 | 0.132743 | 226 | 11 | 47 | 20.545455 | 0.790816 | 0.628319 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
048dced6e20cee4469dff32aab16aa9ac5f26c72 | 1,715 | py | Python | inheritance/demo_inheritance.py | Minkov/python-oop-2020-06 | 63b830a42b7abfac5bee576a81ee7626c47a80bc | [
"MIT"
] | 3 | 2020-07-04T11:32:42.000Z | 2020-08-14T08:43:25.000Z | inheritance/demo_inheritance.py | Minkov/python-oop-2020-06 | 63b830a42b7abfac5bee576a81ee7626c47a80bc | [
"MIT"
] | null | null | null | inheritance/demo_inheritance.py | Minkov/python-oop-2020-06 | 63b830a42b7abfac5bee576a81ee7626c47a80bc | [
"MIT"
] | 2 | 2020-07-09T07:17:37.000Z | 2021-02-22T22:55:52.000Z | from mixins.debug_attributes_setter_mixin import DebugAttributesSetterMixin
class Person(DebugAttributesSetterMixin):
def __init__(self, name, age):
self.name = name
# validate age
self.age = age
def __repr__(self):
return f'Name: {self.name}, Age: {self.age}'
... | 23.175676 | 76 | 0.602915 | 201 | 1,715 | 4.825871 | 0.263682 | 0.064948 | 0.056701 | 0.061856 | 0.237113 | 0.193814 | 0.096907 | 0.096907 | 0.096907 | 0.096907 | 0 | 0.015212 | 0.27172 | 1,715 | 73 | 77 | 23.493151 | 0.761409 | 0.108455 | 0 | 0.238095 | 0 | 0 | 0.140981 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.238095 | false | 0.071429 | 0.02381 | 0.071429 | 0.547619 | 0.047619 | 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 |
04a2d378269cca4d4cf2daaa834242bda91b7548 | 227 | py | Python | src/views/constants_view.py | philherrmann/httpchallenge | 83134e2ac36d2016199dca2e74e79a98e532141d | [
"Unlicense"
] | null | null | null | src/views/constants_view.py | philherrmann/httpchallenge | 83134e2ac36d2016199dca2e74e79a98e532141d | [
"Unlicense"
] | null | null | null | src/views/constants_view.py | philherrmann/httpchallenge | 83134e2ac36d2016199dca2e74e79a98e532141d | [
"Unlicense"
] | null | null | null | FORMAT_MSG_HIGH_ALERT = "High traffic generated an alert - hits = %s, triggered at %s"
FORMAT_MSG_RECOVERED_ALERT = "Traffic recovered - hits = %s, triggered at %s"
HIGHEST_HITS_HEADER = "Highest hits"
ALERTS_HEADER = "Alerts"
| 45.4 | 86 | 0.762115 | 33 | 227 | 4.969697 | 0.454545 | 0.109756 | 0.170732 | 0.195122 | 0.207317 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140969 | 227 | 4 | 87 | 56.75 | 0.841026 | 0 | 0 | 0 | 1 | 0 | 0.546256 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
04c263078f80daca8af3c46c357c9c807f39e600 | 294 | py | Python | python_for_absolute_beginners/20_string_type.py | leonardo-gallegos/Python | 986ba32eb1c5fd9fb829c08b46c7ef6112a6eba2 | [
"MIT"
] | null | null | null | python_for_absolute_beginners/20_string_type.py | leonardo-gallegos/Python | 986ba32eb1c5fd9fb829c08b46c7ef6112a6eba2 | [
"MIT"
] | null | null | null | python_for_absolute_beginners/20_string_type.py | leonardo-gallegos/Python | 986ba32eb1c5fd9fb829c08b46c7ef6112a6eba2 | [
"MIT"
] | null | null | null | float_num = 3.14159265 # float_num is a variable which has been assigned a float
print(type(float_num)) # prints the type of float_num
print(str(float_num) + " is a float") # prints "3.14159265 is a float"
print("\"Hello, I'm Leonardo, nice to meet you!\"")
| 58.8 | 97 | 0.636054 | 47 | 294 | 3.87234 | 0.531915 | 0.21978 | 0.10989 | 0.120879 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.082569 | 0.258503 | 294 | 4 | 98 | 73.5 | 0.752294 | 0.391156 | 0 | 0 | 0 | 0 | 0.068571 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.75 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
04cb3e926753c621981e5bbb04b3e341b0b61e1e | 806 | py | Python | tenable/cs/containers.py | widnyana/pyTenable | be6194bbf11a2283543a2c355deb37b52cd1a93b | [
"MIT"
] | 1 | 2019-01-25T11:36:07.000Z | 2019-01-25T11:36:07.000Z | tenable/cs/containers.py | borbidgea/pyTenable | e0ef19769c78caca26f59a5b1a78a54d2899c8e9 | [
"MIT"
] | null | null | null | tenable/cs/containers.py | borbidgea/pyTenable | e0ef19769c78caca26f59a5b1a78a54d2899c8e9 | [
"MIT"
] | null | null | null | from .base import CSEndpoint
class ContainersAPI(CSEndpoint):
def list(self):
'''
`container-security-containers: list-containers <https://cloud.tenable.com/api#/resources/container-security-containers/list-containers>`_
Returns:
list: List of container resource records
... | 33.583333 | 146 | 0.62531 | 86 | 806 | 5.802326 | 0.430233 | 0.136273 | 0.216433 | 0.124249 | 0.56513 | 0.344689 | 0.236473 | 0.236473 | 0.236473 | 0 | 0 | 0.003268 | 0.240695 | 806 | 24 | 147 | 33.583333 | 0.812092 | 0.513648 | 0 | 0 | 0 | 0 | 0.137584 | 0.073826 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0 | 0.857143 | 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 |
04da942761809a2a42e2d9b2d3d0dfd06b8ec734 | 155 | py | Python | coursera/a_7_1_reading_file.py | polde-live/learnpython | ff8ec96db1951d99797205d0bd491e542152a36f | [
"Unlicense"
] | null | null | null | coursera/a_7_1_reading_file.py | polde-live/learnpython | ff8ec96db1951d99797205d0bd491e542152a36f | [
"Unlicense"
] | null | null | null | coursera/a_7_1_reading_file.py | polde-live/learnpython | ff8ec96db1951d99797205d0bd491e542152a36f | [
"Unlicense"
] | null | null | null | # Use words.txt as the file name
fname = raw_input("Enter file name: ")
f = open(fname, 'r')
for line in f:
print line.upper().strip()
f.close() | 17.222222 | 38 | 0.625806 | 27 | 155 | 3.555556 | 0.777778 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.219355 | 155 | 9 | 39 | 17.222222 | 0.793388 | 0.193548 | 0 | 0 | 0 | 0 | 0.145161 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
04f131de95e2f0a74879bf5f24033c5a85265efa | 154 | py | Python | ConsulClient/__init__.py | miguel-callejas-coderoad-com/consul-client | df65358c0c27d8154e4994b9b089f19b7224987e | [
"MIT"
] | null | null | null | ConsulClient/__init__.py | miguel-callejas-coderoad-com/consul-client | df65358c0c27d8154e4994b9b089f19b7224987e | [
"MIT"
] | 1 | 2021-02-02T22:48:09.000Z | 2021-02-02T22:48:09.000Z | ConsulClient/__init__.py | miguel-callejas-coderoad-com/consul-client | df65358c0c27d8154e4994b9b089f19b7224987e | [
"MIT"
] | 1 | 2021-07-27T16:47:43.000Z | 2021-07-27T16:47:43.000Z | name = 'ConsulClient'
__author__ = 'Rodrigo Alejandro Loza Lucero / lozuwaucb@gmail.com'
__version__ = '0.1.0'
__log__ = 'Consul api client for python'
| 22 | 66 | 0.74026 | 20 | 154 | 5.1 | 0.95 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022901 | 0.149351 | 154 | 6 | 67 | 25.666667 | 0.755725 | 0 | 0 | 0 | 0 | 0 | 0.631579 | 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 |
04f3513114aad771b5cf30187c4d53ff25f870c9 | 688 | py | Python | tests/test_ClusterItemService.py | xclemence/pykube-switch | 4b7ac4565cc15469c2109e1a400d78e1d2b14404 | [
"MIT"
] | null | null | null | tests/test_ClusterItemService.py | xclemence/pykube-switch | 4b7ac4565cc15469c2109e1a400d78e1d2b14404 | [
"MIT"
] | 1 | 2020-10-11T23:25:14.000Z | 2020-10-11T23:25:14.000Z | tests/test_ClusterItemService.py | xclemence/pykube-switch | 4b7ac4565cc15469c2109e1a400d78e1d2b14404 | [
"MIT"
] | null | null | null | from pathlib import Path
from unittest import mock
from Services.ClusterItemService import ClusterItemService
from DataModels.Cluster import Cluster
def test_create_cluster(mocker):
class ConfigurationServiceMock(mock.Mock):
def add_file(self, file_path):
return Path('c://test_path123.txt')... | 28.666667 | 83 | 0.718023 | 80 | 688 | 6.025 | 0.425 | 0.033195 | 0.045643 | 0.06639 | 0.091286 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022847 | 0.172965 | 688 | 23 | 84 | 29.913043 | 0.824253 | 0 | 0 | 0 | 0 | 0 | 0.117733 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 1 | 0.214286 | false | 0 | 0.285714 | 0.142857 | 0.785714 | 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 |
04f63ab779e75495927235f6d53b49ce6e5663cb | 243 | py | Python | selftest/dir2/skipsome.py | depp/idiotest | 44c4c647b340625634931e4222482052343b369a | [
"BSD-2-Clause"
] | 1 | 2016-11-28T02:01:31.000Z | 2016-11-28T02:01:31.000Z | selftest/dir2/skipsome.py | depp/idiotest | 44c4c647b340625634931e4222482052343b369a | [
"BSD-2-Clause"
] | null | null | null | selftest/dir2/skipsome.py | depp/idiotest | 44c4c647b340625634931e4222482052343b369a | [
"BSD-2-Clause"
] | null | null | null | # Copyright 2012 Dietrich Epp <depp@zdome.net>
# See LICENSE.txt for details.
@test
def skip_this():
skip()
@test
def pass_this():
pass
@test
def skip_rest():
skip_module()
@test
def fail_this():
fail("shouldn't get here")
| 12.789474 | 46 | 0.662551 | 37 | 243 | 4.216216 | 0.648649 | 0.179487 | 0.141026 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020619 | 0.201646 | 243 | 18 | 47 | 13.5 | 0.783505 | 0.300412 | 0 | 0.333333 | 0 | 0 | 0.107784 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | true | 0.166667 | 0 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
b6c67225a12b011d497493519335814098fefea7 | 84,022 | py | Python | climate_categories/data/CRF1999.py | rgieseke/climate_categories | 2734c0a46681db1b58ae42162e631bcceb5d8d14 | [
"Apache-2.0"
] | null | null | null | climate_categories/data/CRF1999.py | rgieseke/climate_categories | 2734c0a46681db1b58ae42162e631bcceb5d8d14 | [
"Apache-2.0"
] | null | null | null | climate_categories/data/CRF1999.py | rgieseke/climate_categories | 2734c0a46681db1b58ae42162e631bcceb5d8d14 | [
"Apache-2.0"
] | null | null | null | # Do not edit this file. It was auto-generated from the
# corresponding YAML file.
spec = {
"name": "CRF1999",
"title": "Common Reporting Format GHG emissions categories (1999)",
"comment": "Classification of green-house gas emissions and removals into categories for use in annual inventories using the Comm... | 51.358191 | 1,285 | 0.50939 | 11,230 | 84,022 | 3.775868 | 0.131523 | 0.0208 | 0.01415 | 0.014999 | 0.340943 | 0.251444 | 0.183879 | 0.128859 | 0.085395 | 0.048416 | 0 | 0.059681 | 0.313192 | 84,022 | 1,635 | 1,286 | 51.389602 | 0.675117 | 0.000928 | 0 | 0.067361 | 1 | 0.037355 | 0.607677 | 0.000334 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.003674 | 0 | 0 | 0 | 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 | 1 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b6d0f398f88127709e685d4f3b844ed8ccdd2a61 | 238 | py | Python | src/mem/__init__.py | LeeChunHei/NXP-MCUBootUtility | b8880291a9ef5ce46c0624a1cff831f8c93c4861 | [
"Apache-2.0"
] | 1 | 2019-07-02T02:31:41.000Z | 2019-07-02T02:31:41.000Z | src/mem/__init__.py | LeeChunHei/NXP-MCUBootUtility | b8880291a9ef5ce46c0624a1cff831f8c93c4861 | [
"Apache-2.0"
] | 1 | 2019-12-06T02:08:56.000Z | 2019-12-06T02:09:24.000Z | src/mem/__init__.py | fanqyyy/NXP-MCUBootUtility | 8275cec74a64d27818153223e5c8a39e39834ae5 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import RTxxx_memcore
import RTxxx_memdef
import RTyyyy_memcore
import RTyyyy_memdef
import memcore
import memdef
__all__ = ["RTxxx_memcore", "RTxxx_memdef", "RTyyyy_memcore", "RTyyyy_memdef", "memcore", "memdef"]
| 19.833333 | 99 | 0.789916 | 31 | 238 | 5.677419 | 0.322581 | 0.221591 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105042 | 238 | 11 | 100 | 21.636364 | 0.826291 | 0.084034 | 0 | 0 | 0 | 0 | 0.300926 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.857143 | 0 | 0.857143 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
b6d416e8ad70376db90f851feca4168a9d94c1c2 | 294 | py | Python | output/models/nist_data/atomic/unsigned_int/schema_instance/nistschema_sv_iv_atomic_unsigned_int_min_exclusive_1_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 1 | 2021-08-14T17:59:21.000Z | 2021-08-14T17:59:21.000Z | output/models/nist_data/atomic/unsigned_int/schema_instance/nistschema_sv_iv_atomic_unsigned_int_min_exclusive_1_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 4 | 2020-02-12T21:30:44.000Z | 2020-04-15T20:06:46.000Z | output/models/nist_data/atomic/unsigned_int/schema_instance/nistschema_sv_iv_atomic_unsigned_int_min_exclusive_1_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from output.models.nist_data.atomic.unsigned_int.schema_instance.nistschema_sv_iv_atomic_unsigned_int_min_exclusive_1_xsd.nistschema_sv_iv_atomic_unsigned_int_min_exclusive_1 import NistschemaSvIvAtomicUnsignedIntMinExclusive1
__all__ = [
"NistschemaSvIvAtomicUnsignedIntMinExclusive1",
]
| 49 | 226 | 0.908163 | 33 | 294 | 7.363636 | 0.606061 | 0.17284 | 0.209877 | 0.164609 | 0.36214 | 0.36214 | 0.36214 | 0.36214 | 0.36214 | 0 | 0 | 0.014286 | 0.047619 | 294 | 5 | 227 | 58.8 | 0.853571 | 0 | 0 | 0 | 0 | 0 | 0.14966 | 0.14966 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b6d605cd6f63ff9b3d0595af45c7a4be3cdb68b5 | 5,101 | py | Python | tests/bio_based/test_BBO.py | rishavpramanik/mealpy | d4a4d5810f15837764e4ee61517350fef3dc92b3 | [
"MIT"
] | null | null | null | tests/bio_based/test_BBO.py | rishavpramanik/mealpy | d4a4d5810f15837764e4ee61517350fef3dc92b3 | [
"MIT"
] | null | null | null | tests/bio_based/test_BBO.py | rishavpramanik/mealpy | d4a4d5810f15837764e4ee61517350fef3dc92b3 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# Created by "Thieu" at 00:16, 15/03/2022 ----------%
# Email: nguyenthieu2102@gmail.com %
# Github: https://github.com/thieu1995 % ... | 36.177305 | 132 | 0.464223 | 526 | 5,101 | 4.378327 | 0.195817 | 0.097264 | 0.031264 | 0.049501 | 0.741641 | 0.715588 | 0.715588 | 0.699957 | 0.699957 | 0.68693 | 0 | 0.050586 | 0.414821 | 5,101 | 140 | 133 | 36.435714 | 0.720938 | 0.083317 | 0 | 0.691667 | 0 | 0 | 0.037045 | 0 | 0 | 0 | 0 | 0 | 0.116667 | 1 | 0.066667 | false | 0 | 0.033333 | 0.008333 | 0.116667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8e073064fa439a464103697b271198bdd4fa2108 | 15,880 | py | Python | _GTW/__test__/Document_Link.py | Tapyr/tapyr | 4235fba6dce169fe747cce4d17d88dcf4a3f9f1d | [
"BSD-3-Clause"
] | 6 | 2016-12-10T17:51:10.000Z | 2021-10-11T07:51:48.000Z | _GTW/__test__/Document_Link.py | Tapyr/tapyr | 4235fba6dce169fe747cce4d17d88dcf4a3f9f1d | [
"BSD-3-Clause"
] | null | null | null | _GTW/__test__/Document_Link.py | Tapyr/tapyr | 4235fba6dce169fe747cce4d17d88dcf4a3f9f1d | [
"BSD-3-Clause"
] | 3 | 2020-03-29T07:37:03.000Z | 2021-01-21T16:08:40.000Z | # -*- coding: utf-8 -*-
# Copyright (C) 2010-2016 Martin Glueck All rights reserved
# Langstrasse 4, A--2244 Spannberg, Austria. martin@mangari.org
# ****************************************************************************
# This module is part of the package GTW.__test__.
#
# This module is licensed under the term... | 33.50211 | 176 | 0.497922 | 1,825 | 15,880 | 4.176438 | 0.139726 | 0.174626 | 0.198767 | 0.249278 | 0.677775 | 0.61703 | 0.599318 | 0.476515 | 0.323668 | 0.23196 | 0 | 0.014506 | 0.253338 | 15,880 | 473 | 177 | 33.572939 | 0.62773 | 0.089736 | 0 | 0.538462 | 0 | 0.03125 | 0.981201 | 0.105022 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.009615 | 0.007212 | 0 | 0.007212 | 0.002404 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8e20954a9f051a66b3352dc0b5b6171f171eac41 | 387 | py | Python | src/sentry/pool/base.py | NickPresta/sentry | ed3e6034ef560e18f392ba30071de860557b7b43 | [
"BSD-3-Clause"
] | 2 | 2015-10-14T12:45:32.000Z | 2016-01-27T03:24:43.000Z | src/sentry/pool/base.py | NickPresta/sentry | ed3e6034ef560e18f392ba30071de860557b7b43 | [
"BSD-3-Clause"
] | null | null | null | src/sentry/pool/base.py | NickPresta/sentry | ed3e6034ef560e18f392ba30071de860557b7b43 | [
"BSD-3-Clause"
] | null | null | null | """
sentry.pool.base
~~~~~~~~~~~~~~~~
:copyright: (c) 2010-2013 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
class Pool(object):
def __init__(self, keyspace):
self.keyspace = keyspace
self.queue = []
def put(self, item):
self.queu... | 19.35 | 75 | 0.602067 | 50 | 387 | 4.58 | 0.6 | 0.117904 | 0.122271 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027027 | 0.235142 | 387 | 19 | 76 | 20.368421 | 0.746622 | 0.400517 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0 | 0.125 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
8e2a4f0ad6ff444c6eb22df34356010f4835cc86 | 157 | py | Python | sample/tidy.py | patrickmmartin/Newtrino | bf3274075728b27814996d03df2c83b23c471b4c | [
"BSD-3-Clause"
] | 1 | 2020-09-02T15:44:12.000Z | 2020-09-02T15:44:12.000Z | sample/tidy.py | patrickmmartin/Newtrino | bf3274075728b27814996d03df2c83b23c471b4c | [
"BSD-3-Clause"
] | 7 | 2015-06-20T19:01:15.000Z | 2015-06-20T19:19:39.000Z | sample/tidy.py | patrickmmartin/Newtrino | bf3274075728b27814996d03df2c83b23c471b4c | [
"BSD-3-Clause"
] | null | null | null | import sys
if __name__== "__main__":
with open(sys.argv[1]) as f:
for lines in f:
for line in lines.split(";"):
if (line != ""): print(line + ";") | 22.428571 | 37 | 0.579618 | 25 | 157 | 3.32 | 0.68 | 0.096386 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00813 | 0.216561 | 157 | 7 | 37 | 22.428571 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0.063291 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | null | null | 0.166667 | 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 |
f3cb1609369d9e7f439881176389cd82daea5361 | 96 | py | Python | juggling/analyse_profile.py | sioux-technologies/pyjuggling | e91d264e732060ea5f88f1806d6398206b5b91de | [
"BSD-3-Clause"
] | null | null | null | juggling/analyse_profile.py | sioux-technologies/pyjuggling | e91d264e732060ea5f88f1806d6398206b5b91de | [
"BSD-3-Clause"
] | null | null | null | juggling/analyse_profile.py | sioux-technologies/pyjuggling | e91d264e732060ea5f88f1806d6398206b5b91de | [
"BSD-3-Clause"
] | 1 | 2021-02-26T10:47:15.000Z | 2021-02-26T10:47:15.000Z | import pstats
p = pstats.Stats('output.prof')
p.sort_stats('cumulative').print_stats(15)
| 16 | 43 | 0.708333 | 14 | 96 | 4.714286 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024096 | 0.135417 | 96 | 5 | 44 | 19.2 | 0.771084 | 0 | 0 | 0 | 0 | 0 | 0.230769 | 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 |
f3d052880ba534595df1b643df855aa2c53ebfb3 | 1,003 | py | Python | restaurants/models.py | 32xnabin/DjangoRestHeroku | 1a4ae428d8090729a6802cea1dd8c9074083a556 | [
"Apache-2.0"
] | null | null | null | restaurants/models.py | 32xnabin/DjangoRestHeroku | 1a4ae428d8090729a6802cea1dd8c9074083a556 | [
"Apache-2.0"
] | 2 | 2020-06-05T20:36:05.000Z | 2021-03-19T22:23:00.000Z | restaurants/models.py | 32xnabin/DjangoRestHeroku | 1a4ae428d8090729a6802cea1dd8c9074083a556 | [
"Apache-2.0"
] | null | null | null | from django.db import models
class Restaurant(models.Model):
"""
Restaurants' Model.
"""
id = models.CharField(primary_key = True, editable = True, max_length = 255, verbose_name = u'Id')
rating = models.IntegerField(verbose_name = u'Rating')
name = models.CharField(max_length = 255, verbose_na... | 43.608696 | 102 | 0.677966 | 129 | 1,003 | 5.085271 | 0.364341 | 0.184451 | 0.20122 | 0.231707 | 0.53811 | 0.452744 | 0.416159 | 0.416159 | 0 | 0 | 0 | 0.029666 | 0.19342 | 1,003 | 23 | 103 | 43.608696 | 0.781211 | 0.018943 | 0 | 0 | 0 | 0 | 0.076367 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.058824 | 0.058824 | 0.941176 | 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 |
f3d60f224a150630bfb9d310b93d5688af393e35 | 13 | py | Python | todobackend/todo/domain/value_objects.py | zhangcheng/todobackend_python | 4ad56c6874ff4460087236d03515a0a0611e95e4 | [
"MIT"
] | null | null | null | todobackend/todo/domain/value_objects.py | zhangcheng/todobackend_python | 4ad56c6874ff4460087236d03515a0a0611e95e4 | [
"MIT"
] | null | null | null | todobackend/todo/domain/value_objects.py | zhangcheng/todobackend_python | 4ad56c6874ff4460087236d03515a0a0611e95e4 | [
"MIT"
] | null | null | null | TodoId = str
| 6.5 | 12 | 0.692308 | 2 | 13 | 4.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.230769 | 13 | 1 | 13 | 13 | 0.9 | 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 |
f3ddbb51d0e3b5645163504b24732a5dab4f781a | 2,553 | py | Python | tests/test_others.py | EchoShoot/Sheen | 5cafb846df8f5047d6083ef597271ec532916a97 | [
"Apache-2.0"
] | 9 | 2019-09-25T13:33:04.000Z | 2021-06-12T12:54:00.000Z | tests/test_others.py | EchoShoot/Sheen | 5cafb846df8f5047d6083ef597271ec532916a97 | [
"Apache-2.0"
] | null | null | null | tests/test_others.py | EchoShoot/Sheen | 5cafb846df8f5047d6083ef597271ec532916a97 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# @Time : 2019-09-01 17:49
# @Author : EchoShoot
# @Email : BiarFordlander@gmail.com
# @URL : https://github.com/EchoShoot
# @File : test_others.py
# @Explain :
from sheen import Str
import pytest
class TestOthers(object):
raw = 'xxooAß西xoox'
obj = Str.red(raw)
obj[2:... | 37 | 117 | 0.623188 | 347 | 2,553 | 4.553314 | 0.216138 | 0.11962 | 0.213924 | 0.107595 | 0.293038 | 0.201266 | 0.125316 | 0 | 0 | 0 | 0 | 0.013347 | 0.207599 | 2,553 | 68 | 118 | 37.544118 | 0.767672 | 0.07168 | 0 | 0.041667 | 0 | 0 | 0.041914 | 0 | 0 | 0 | 0 | 0 | 0.541667 | 1 | 0.208333 | false | 0 | 0.041667 | 0 | 0.3125 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f3e8c6a09a0167f5ad073b4ff3952907b92cc7fc | 164 | py | Python | medzibrod/__init__.py | mnalevanko/medzibrod | 446476c84dd2d2943c9b96113fdc1d830cfcbc28 | [
"MIT"
] | null | null | null | medzibrod/__init__.py | mnalevanko/medzibrod | 446476c84dd2d2943c9b96113fdc1d830cfcbc28 | [
"MIT"
] | null | null | null | medzibrod/__init__.py | mnalevanko/medzibrod | 446476c84dd2d2943c9b96113fdc1d830cfcbc28 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Top-level package for Medzibrod."""
__author__ = """Michal Nalevanko"""
__email__ = 'michal.nalevanko@gmail.com'
__version__ = '0.1.0'
| 20.5 | 40 | 0.658537 | 20 | 164 | 4.8 | 0.85 | 0.3125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027972 | 0.128049 | 164 | 7 | 41 | 23.428571 | 0.643357 | 0.335366 | 0 | 0 | 0 | 0 | 0.456311 | 0.252427 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f3fa1d202e32443b3b545facf9178168ac86882f | 70,293 | py | Python | cardea/fhir/ExplanationOfBenefit.py | sarahmish/Cardea | 85c4246c12178e6d1b9cc12eb39c264f3c20f3e9 | [
"MIT"
] | 69 | 2021-01-28T22:25:10.000Z | 2022-03-15T00:23:33.000Z | cardea/fhir/ExplanationOfBenefit.py | sarahmish/Cardea | 85c4246c12178e6d1b9cc12eb39c264f3c20f3e9 | [
"MIT"
] | 30 | 2018-08-29T12:45:23.000Z | 2019-12-24T11:08:12.000Z | cardea/fhir/ExplanationOfBenefit.py | sarahmish/Cardea | 85c4246c12178e6d1b9cc12eb39c264f3c20f3e9 | [
"MIT"
] | 14 | 2021-03-24T01:21:25.000Z | 2022-03-12T11:53:40.000Z | from .fhirbase import fhirbase
class ExplanationOfBenefit(fhirbase):
"""
This resource provides: the claim details; adjudication details from
the processing of a Claim; and optionally account balance information,
for informing the subscriber of the benefits provided.
Args:
resourceType: T... | 35.287651 | 86 | 0.620176 | 6,726 | 70,293 | 6.319358 | 0.084002 | 0.095426 | 0.097732 | 0.056418 | 0.757529 | 0.72292 | 0.691747 | 0.66949 | 0.657138 | 0.629258 | 0 | 0.000876 | 0.30131 | 70,293 | 1,991 | 87 | 35.305374 | 0.864557 | 0.396341 | 0 | 0.732584 | 0 | 0 | 0.391309 | 0.101506 | 0 | 0 | 0 | 0 | 0.002247 | 1 | 0.04382 | false | 0 | 0.001124 | 0.021348 | 0.108989 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6d04887a6c4a8dcd21ba5289795629d443831991 | 919 | py | Python | serverless/aws/resources/sqs.py | epsyhealth/serverless-builder | 6a1f943b5cabc4c4748234b1623a9ced6464043a | [
"MIT"
] | 3 | 2022-03-16T14:25:03.000Z | 2022-03-24T15:04:55.000Z | serverless/aws/resources/sqs.py | epsyhealth/serverless-builder | 6a1f943b5cabc4c4748234b1623a9ced6464043a | [
"MIT"
] | 3 | 2022-01-24T20:11:15.000Z | 2022-01-26T19:33:20.000Z | serverless/aws/resources/sqs.py | epsyhealth/serverless-builder | 6a1f943b5cabc4c4748234b1623a9ced6464043a | [
"MIT"
] | 1 | 2022-02-15T13:54:29.000Z | 2022-02-15T13:54:29.000Z | from troposphere.sqs import Queue as SQSQueue
from serverless.aws.features.encryption import Encryption
from serverless.aws.resources import Resource
from serverless.aws.resources.kms import EncryptableResource
from serverless.service.types import Identifier
class Queue(Resource):
def __init__(self, QueueName, *... | 31.689655 | 86 | 0.702938 | 100 | 919 | 6.37 | 0.41 | 0.087912 | 0.080063 | 0.081633 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180631 | 919 | 28 | 87 | 32.821429 | 0.84595 | 0 | 0 | 0 | 0 | 0 | 0.096844 | 0.078346 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.263158 | 0.105263 | 0.631579 | 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 |
6d1f4662ef17b1211c1453baf5dff18656b1d69a | 296 | py | Python | QuizApp/admin.py | mokosaur/legit-quizzes | 6ebca333c2cf5188c47f2163284e90feb8c635cb | [
"MIT"
] | 1 | 2019-01-17T08:47:45.000Z | 2019-01-17T08:47:45.000Z | QuizApp/admin.py | mokosaur/legit-quizzes | 6ebca333c2cf5188c47f2163284e90feb8c635cb | [
"MIT"
] | null | null | null | QuizApp/admin.py | mokosaur/legit-quizzes | 6ebca333c2cf5188c47f2163284e90feb8c635cb | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Label, Choice, Quiz, Question, Answer, Submit
# Register your models here.
admin.site.register(Quiz)
admin.site.register(Question)
admin.site.register(Answer)
admin.site.register(Label)
admin.site.register(Submit)
admin.site.register(Choice) | 26.909091 | 65 | 0.804054 | 42 | 296 | 5.666667 | 0.380952 | 0.226891 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084459 | 296 | 11 | 66 | 26.909091 | 0.878229 | 0.087838 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6d33f0adfd51d3772fb0f2c840325f3f15714598 | 517 | py | Python | web/backend/service/security.py | Vikort/neo4j-platform | 03e838673db98e2595293c9052dec02cbd630826 | [
"MIT"
] | null | null | null | web/backend/service/security.py | Vikort/neo4j-platform | 03e838673db98e2595293c9052dec02cbd630826 | [
"MIT"
] | 4 | 2021-10-11T18:26:28.000Z | 2021-11-02T11:43:06.000Z | web/backend/service/security.py | Vikort/neo4j-platform | 03e838673db98e2595293c9052dec02cbd630826 | [
"MIT"
] | 2 | 2021-10-10T20:29:08.000Z | 2021-10-12T23:39:23.000Z | from typing import Optional
from werkzeug.security import check_password_hash
from .models.user import User
def authenticate(username, password) -> Optional[User]:
user = User.find_by_username(username)
if user and check_password_hash(user.hashed_password, password):
return user
return None
de... | 23.5 | 68 | 0.750484 | 74 | 517 | 4.986486 | 0.405405 | 0.086721 | 0.092141 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166344 | 517 | 21 | 69 | 24.619048 | 0.856148 | 0 | 0 | 0 | 0 | 0 | 0.005803 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0.230769 | 0.230769 | 0.076923 | 0.769231 | 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 |
6d4e191efc3419a7a996c235bf6de8f939ba944e | 492 | py | Python | app/measurement/migrations/0018_auto_20201013_2006.py | pnsn/squac_api | 7b1741cd32dbc32972f75ac53958468fdf7d04ee | [
"MIT"
] | 6 | 2019-11-07T09:32:43.000Z | 2021-09-02T22:37:14.000Z | app/measurement/migrations/0018_auto_20201013_2006.py | pnsn/squacapi | e330a925aff38937656983841e495ba3824c11e1 | [
"MIT"
] | 196 | 2019-10-04T17:03:36.000Z | 2022-03-31T17:54:59.000Z | app/measurement/migrations/0018_auto_20201013_2006.py | pnsn/squac_api | 7b1741cd32dbc32972f75ac53958468fdf7d04ee | [
"MIT"
] | null | null | null | # Generated by Django 2.2.16 on 2020-10-13 20:06
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('measurement', '0017_auto_20200609_0533'),
]
operations = [
migrations.RemoveIndex(
model_name='measurement',
name='measurem... | 22.363636 | 51 | 0.613821 | 48 | 492 | 6.0625 | 0.666667 | 0.206186 | 0.178694 | 0.206186 | 0.38488 | 0.38488 | 0.38488 | 0 | 0 | 0 | 0 | 0.116809 | 0.286585 | 492 | 21 | 52 | 23.428571 | 0.712251 | 0.093496 | 0 | 0.4 | 1 | 0 | 0.256757 | 0.182432 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.266667 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6d5b5843a99ae892b0a5c5a29a23c571243bb918 | 76 | py | Python | todo/settings/develop.py | bzd111/todolist | 9fcbc12e115c3b43118367c90902a2268ef598ac | [
"MIT"
] | null | null | null | todo/settings/develop.py | bzd111/todolist | 9fcbc12e115c3b43118367c90902a2268ef598ac | [
"MIT"
] | 6 | 2020-06-06T00:58:31.000Z | 2022-02-10T09:05:44.000Z | todo/settings/develop.py | bzd111/todolist | 9fcbc12e115c3b43118367c90902a2268ef598ac | [
"MIT"
] | null | null | null | from .base import *
ALLOWED_HOSTS = ["localhost", "0.0.0.0", "127.0.0.1"]
| 15.2 | 53 | 0.605263 | 14 | 76 | 3.214286 | 0.642857 | 0.177778 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 0.144737 | 76 | 4 | 54 | 19 | 0.538462 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 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 |
ed9cd937ba522f2f4faa679769f731bbd4fc5628 | 4,623 | py | Python | env/lib/python3.8/site-packages/unidecode/x09a.py | avdhari/enigma | b7e965a91ca5f0e929c4c719d695f15ccb8b5a2c | [
"MIT"
] | 82 | 2020-03-28T02:24:38.000Z | 2022-03-30T04:18:42.000Z | venv/lib/python3.6/site-packages/unidecode/x09a.py | mrsaicharan1/iiita-updates | a22a0157b90d29b946d0f020e5f76744f73a6bff | [
"Apache-2.0"
] | 392 | 2015-07-30T14:37:05.000Z | 2022-03-21T16:56:09.000Z | venv/lib/python3.6/site-packages/unidecode/x09a.py | mrsaicharan1/iiita-updates | a22a0157b90d29b946d0f020e5f76744f73a6bff | [
"Apache-2.0"
] | 30 | 2020-06-20T15:31:53.000Z | 2022-03-06T06:23:55.000Z | data = (
'E ', # 0x00
'Cheng ', # 0x01
'Xin ', # 0x02
'Ai ', # 0x03
'Lu ', # 0x04
'Zhui ', # 0x05
'Zhou ', # 0x06
'She ', # 0x07
'Pian ', # 0x08
'Kun ', # 0x09
'Tao ', # 0x0a
'Lai ', # 0x0b
'Zong ', # 0x0c
'Ke ', # 0x0d
'Qi ', # 0x0e
'Qi ', # 0x0f
'Yan ', # 0x10
'Fei '... | 17.849421 | 20 | 0.389358 | 513 | 4,623 | 3.508772 | 0.766082 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.20375 | 0.388492 | 4,623 | 258 | 21 | 17.918605 | 0.432968 | 0.27666 | 0 | 0.72093 | 0 | 0 | 0.333009 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
edb6f8b26cd3ea8ed53d325abda0c1712918da0d | 225 | py | Python | ufs_tools/tuple_tools.py | weijia/ufs-tools | 16bcfcb85ce84936875aede7beb130dbec04759a | [
"0BSD"
] | null | null | null | ufs_tools/tuple_tools.py | weijia/ufs-tools | 16bcfcb85ce84936875aede7beb130dbec04759a | [
"0BSD"
] | 1 | 2021-03-25T21:56:37.000Z | 2021-03-25T21:56:37.000Z | ufs_tools/tuple_tools.py | weijia/ufs-tools | 16bcfcb85ce84936875aede7beb130dbec04759a | [
"0BSD"
] | null | null | null |
def remove_duplicated_keep_order(value_in_tuple):
new_tuple = []
for i in value_in_tuple:
if not (i in new_tuple):
new_tuple.append(i)
return new_tuple
# return tuple(set(value_in_tuple))
| 25 | 49 | 0.666667 | 35 | 225 | 3.914286 | 0.457143 | 0.233577 | 0.262774 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.253333 | 225 | 8 | 50 | 28.125 | 0.815476 | 0.146667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
edc42cc6001c9d48c8cf8dde04fe521204cfcae5 | 797 | py | Python | test-suite/generated-src/python/constant_record.py | trafi/trafi-djinni | 47cd2c849782e2ab4b38e5dc6a5a3104cc87f673 | [
"Apache-2.0"
] | 3 | 2019-11-07T03:38:03.000Z | 2020-03-28T10:24:40.000Z | test-suite/generated-src/python/constant_record.py | trafi/trafi-djinni | 47cd2c849782e2ab4b38e5dc6a5a3104cc87f673 | [
"Apache-2.0"
] | null | null | null | test-suite/generated-src/python/constant_record.py | trafi/trafi-djinni | 47cd2c849782e2ab4b38e5dc6a5a3104cc87f673 | [
"Apache-2.0"
] | 2 | 2020-12-01T18:39:26.000Z | 2021-02-04T03:55:31.000Z | # AUTOGENERATED FILE - DO NOT MODIFY!
# This file generated by Djinni from constants.djinni
from djinni.support import MultiSet # default imported in all files
from djinni.exception import CPyException # default imported in all files
from djinni.pycffi_marshal import CPyPrimitive, CPyRecord, CPyString
from PyCFFIlib_c... | 31.88 | 125 | 0.759097 | 111 | 797 | 5.234234 | 0.567568 | 0.068847 | 0.041308 | 0.068847 | 0.120482 | 0.120482 | 0.120482 | 0 | 0 | 0 | 0 | 0.001543 | 0.186951 | 797 | 24 | 126 | 33.208333 | 0.895062 | 0.34128 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 1 | 0.153846 | false | 0 | 0.384615 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
edc5ff82c1575b616eb676e7b11cd10b1c2eeb97 | 242 | py | Python | {{cookiecutter.project_slug}}/tests/PyInstaller_/frozen-pytest.py | bwoodsend/cookiecutter-pypackage | 1b5d93af52095716f8618cdd230a48a7c7d8a4b5 | [
"BSD-3-Clause"
] | null | null | null | {{cookiecutter.project_slug}}/tests/PyInstaller_/frozen-pytest.py | bwoodsend/cookiecutter-pypackage | 1b5d93af52095716f8618cdd230a48a7c7d8a4b5 | [
"BSD-3-Clause"
] | null | null | null | {{cookiecutter.project_slug}}/tests/PyInstaller_/frozen-pytest.py | bwoodsend/cookiecutter-pypackage | 1b5d93af52095716f8618cdd230a48a7c7d8a4b5 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Freeze pytest.main() with {{ cookiecutter.project_slug }} included.
"""
import sys
import {{ cookiecutter.project_slug }}
import pytest
sys.exit(pytest.main(sys.argv[1:] + ["--no-cov", "--tb=native"]))
| 22 | 68 | 0.623967 | 30 | 242 | 4.966667 | 0.666667 | 0.134228 | 0.308725 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009804 | 0.157025 | 242 | 10 | 69 | 24.2 | 0.720588 | 0.086777 | 0 | 0 | 0 | 0 | 0.141791 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.75 | null | null | 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 | 1 | 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.