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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8fa8f90d4b82e67a847186041d81bc3f86e03b55 | 4,870 | py | Python | pyglobe3d/core/icosalogic/triangle_attrs.py | ka-tet19/pyglobelib | d62f7636f5f971b897eba8fcf787fabb5ed181f1 | [
"BSD-3-Clause"
] | null | null | null | pyglobe3d/core/icosalogic/triangle_attrs.py | ka-tet19/pyglobelib | d62f7636f5f971b897eba8fcf787fabb5ed181f1 | [
"BSD-3-Clause"
] | null | null | null | pyglobe3d/core/icosalogic/triangle_attrs.py | ka-tet19/pyglobelib | d62f7636f5f971b897eba8fcf787fabb5ed181f1 | [
"BSD-3-Clause"
] | null | null | null | from math import sqrt
from pyglobe3d.core.icosalogic.element_attrs import ElementIndex, ElementLocation
from pyglobe3d.core.icosalogic.grid_consts import Grid
class TriangleAttributes:
ELEMENT_NAME = {'element': 'triangle'}
#######################################################################################... | 40.583333 | 120 | 0.609856 | 544 | 4,870 | 5.034926 | 0.101103 | 0.080321 | 0.120482 | 0.049653 | 0.652793 | 0.534867 | 0.395765 | 0.342096 | 0.237678 | 0.108434 | 0 | 0.017831 | 0.170842 | 4,870 | 119 | 121 | 40.92437 | 0.660475 | 0 | 0 | 0.175 | 0 | 0 | 0.01012 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.0375 | 0.1625 | 0.5625 | 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 |
8fb5427ae5fbd115e1285d51b8eeddf1b2755093 | 648 | py | Python | laptimes/tests/conftest.py | ev-agelos/acr-server | dba11b001ae4aae6dcbb761a5c0222c6fb3b939d | [
"MIT"
] | 1 | 2021-03-11T04:25:07.000Z | 2021-03-11T04:25:07.000Z | laptimes/tests/conftest.py | ev-agelos/acr-server | dba11b001ae4aae6dcbb761a5c0222c6fb3b939d | [
"MIT"
] | 7 | 2020-03-06T17:37:01.000Z | 2021-09-22T17:40:10.000Z | laptimes/tests/conftest.py | ev-agelos/ac-rank | dba11b001ae4aae6dcbb761a5c0222c6fb3b939d | [
"MIT"
] | null | null | null | import os
import pytest
import django
from django.conf import settings
from django.test import Client
from django.test.client import RequestFactory
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'ac_rank.settings.testing')
django.setup()
@pytest.fixture
def user(db):
"""Setup a user to use in tests."""
fr... | 20.25 | 75 | 0.74537 | 89 | 648 | 5.370787 | 0.47191 | 0.083682 | 0.100418 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01105 | 0.162037 | 648 | 31 | 76 | 20.903226 | 0.869245 | 0.135802 | 0 | 0.15 | 0 | 0 | 0.088448 | 0.083032 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0.1 | 0.35 | 0.1 | 0.65 | 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 |
8fc177a1bc511fa3b5cc4548438822c6ba1b5c9c | 254 | py | Python | app/app.py | aagnone3/personal-api-server | c39298ee4e5bba5bedd1a20e4b923ad196769d8b | [
"Apache-2.0"
] | null | null | null | app/app.py | aagnone3/personal-api-server | c39298ee4e5bba5bedd1a20e4b923ad196769d8b | [
"Apache-2.0"
] | null | null | null | app/app.py | aagnone3/personal-api-server | c39298ee4e5bba5bedd1a20e4b923ad196769d8b | [
"Apache-2.0"
] | null | null | null | from typing import Optional
from fastapi import FastAPI
from app.investing import get_crypto_portfolio
app = FastAPI()
@app.get("/")
def read_root():
return {}
@app.get("/portfolio")
def get_portfolio_status():
return get_crypto_portfolio() | 15.875 | 46 | 0.740157 | 34 | 254 | 5.323529 | 0.441176 | 0.099448 | 0.198895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149606 | 254 | 16 | 47 | 15.875 | 0.837963 | 0 | 0 | 0 | 0 | 0 | 0.043137 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.3 | 0.2 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
8fcdb53b0f466d107c37ef9fb352f821d4cd674d | 126 | py | Python | MathOperations/squareRoot.py | mkm99/firstDockerProject | 9a0190216d9be7c2a01b428923ffb0e1c932991b | [
"MIT"
] | null | null | null | MathOperations/squareRoot.py | mkm99/firstDockerProject | 9a0190216d9be7c2a01b428923ffb0e1c932991b | [
"MIT"
] | null | null | null | MathOperations/squareRoot.py | mkm99/firstDockerProject | 9a0190216d9be7c2a01b428923ffb0e1c932991b | [
"MIT"
] | null | null | null | class SquareRoot:
@staticmethod
def squareRoot(radicant):
from math import sqrt
return sqrt(radicant) | 21 | 29 | 0.666667 | 13 | 126 | 6.461538 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.277778 | 126 | 6 | 30 | 21 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
8ffafcc49660ce5c69fd090bc3c9749f802567de | 891 | py | Python | OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/raw/GLES2/EXT/external_buffer.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/raw/GLES2/EXT/external_buffer.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/raw/GLES2/EXT/external_buffer.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | '''Autogenerated by xml_generate script, do not edit!'''
from OpenGL import platform as _p, arrays
# Code generation uses this
from OpenGL.raw.GLES2 import _types as _cs
# End users want this...
from OpenGL.raw.GLES2._types import *
from OpenGL.raw.GLES2 import _errors
from OpenGL.constant import Constant as _C
... | 42.428571 | 123 | 0.803591 | 121 | 891 | 5.619835 | 0.471074 | 0.073529 | 0.057353 | 0.079412 | 0.411765 | 0.173529 | 0.173529 | 0.173529 | 0.173529 | 0 | 0 | 0.007491 | 0.10101 | 891 | 20 | 124 | 44.55 | 0.841448 | 0.112233 | 0 | 0.133333 | 1 | 0 | 0.065445 | 0.065445 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.133333 | 0.4 | 0.066667 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
890489356b4024d52fb22bcccd5b0ea9515aeb17 | 45,376 | py | Python | hypatia/query/test_query.py | pfw/hypatia | 407cd62e4817c85188aa6abdf204c5aaff5ab570 | [
"ZPL-2.1"
] | null | null | null | hypatia/query/test_query.py | pfw/hypatia | 407cd62e4817c85188aa6abdf204c5aaff5ab570 | [
"ZPL-2.1"
] | null | null | null | hypatia/query/test_query.py | pfw/hypatia | 407cd62e4817c85188aa6abdf204c5aaff5ab570 | [
"ZPL-2.1"
] | null | null | null | import pytest as pytest
class ComparatorTestBase:
def _makeOne(self, index, value):
return self._getTargetClass()(index, value)
class TestQuery:
def _makeOne(self):
from . import Query as cls
return cls()
def test_and(self):
from . import And
a = self._makeOne(... | 28.718987 | 88 | 0.573453 | 5,655 | 45,376 | 4.448453 | 0.051636 | 0.045635 | 0.058992 | 0.058038 | 0.797186 | 0.757195 | 0.701542 | 0.685006 | 0.652647 | 0.625974 | 0 | 0.011867 | 0.301745 | 45,376 | 1,579 | 89 | 28.737175 | 0.782098 | 0.013928 | 0 | 0.638333 | 0 | 0.000833 | 0.060031 | 0 | 0 | 0 | 0 | 0 | 0.314167 | 1 | 0.185833 | false | 0.000833 | 0.1175 | 0.011667 | 0.38 | 0.001667 | 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 |
64e5300747ae7db994dc6690f843445d8e62cdb5 | 1,007 | py | Python | csrank/dataset_reader/discretechoice/__init__.py | kiudee/cs-ranking | 47cf648fa286c37b9214bbad1926004d4d7d9796 | [
"Apache-2.0"
] | 65 | 2018-02-12T13:18:13.000Z | 2021-12-18T12:01:51.000Z | csrank/dataset_reader/discretechoice/__init__.py | kiudee/cs-ranking | 47cf648fa286c37b9214bbad1926004d4d7d9796 | [
"Apache-2.0"
] | 189 | 2018-02-13T10:11:55.000Z | 2022-03-12T16:36:23.000Z | csrank/dataset_reader/discretechoice/__init__.py | kiudee/cs-ranking | 47cf648fa286c37b9214bbad1926004d4d7d9796 | [
"Apache-2.0"
] | 19 | 2018-03-08T15:39:31.000Z | 2020-11-18T12:46:36.000Z | # https://github.com/sqlalchemyorg/zimports/issues/12
# fmt: off
from .discrete_choice_data_generator import DiscreteChoiceDatasetGenerator
from .expedia_discrete_choice_dataset_reader import ExpediaDiscreteChoiceDatasetReader
from .letor_listwise_discrete_choice_dataset_reader import LetorListwiseDiscreteChoiceDataset... | 47.952381 | 99 | 0.880834 | 77 | 1,007 | 11.077922 | 0.441558 | 0.114889 | 0.147714 | 0.189918 | 0.232122 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002148 | 0.075472 | 1,007 | 20 | 100 | 50.35 | 0.914071 | 0.067527 | 0 | 0 | 0 | 0 | 0.259893 | 0.259893 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4375 | 0 | 0.4375 | 0 | 0 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
64ef2811168f672845cdf4a546d94828154e273b | 59 | py | Python | Common/communicationCodes.py | RyanChomistek/SmartHome | 215eea3920d6a8cb8e93446f02d8acbdf289bc15 | [
"MIT"
] | null | null | null | Common/communicationCodes.py | RyanChomistek/SmartHome | 215eea3920d6a8cb8e93446f02d8acbdf289bc15 | [
"MIT"
] | null | null | null | Common/communicationCodes.py | RyanChomistek/SmartHome | 215eea3920d6a8cb8e93446f02d8acbdf289bc15 | [
"MIT"
] | null | null | null | startConnectionFromDevice = 0
startConnectionFromAlexa = 1
| 19.666667 | 29 | 0.864407 | 4 | 59 | 12.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037736 | 0.101695 | 59 | 2 | 30 | 29.5 | 0.924528 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8f1a106769b7a10be6c41044971833ef9c86190f | 2,956 | py | Python | lib/dl_bytes_decoder.py | phgachoud/dl_modbus_drivers | a2623154f998df93cbb2fa320d5bac6a289b86f3 | [
"MIT"
] | null | null | null | lib/dl_bytes_decoder.py | phgachoud/dl_modbus_drivers | a2623154f998df93cbb2fa320d5bac6a289b86f3 | [
"MIT"
] | null | null | null | lib/dl_bytes_decoder.py | phgachoud/dl_modbus_drivers | a2623154f998df93cbb2fa320d5bac6a289b86f3 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# DESCRIPTION: Logger, use new_logger function
#
# *************************************************************************************************
# @author: Philippe Gachoud
... | 42.228571 | 213 | 0.666441 | 364 | 2,956 | 5.115385 | 0.340659 | 0.058002 | 0.083781 | 0.103115 | 0.655209 | 0.655209 | 0.655209 | 0.655209 | 0.655209 | 0.655209 | 0 | 0.017917 | 0.093708 | 2,956 | 69 | 214 | 42.84058 | 0.677118 | 0.597767 | 0 | 0.26087 | 0 | 0 | 0.097259 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.347826 | 0 | 0.652174 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
8f2a711618a3fe834ac89b03a12006754b5294e4 | 56 | py | Python | hackerrank/python/basic_data_type/loops.py | love-adela/algorithm | 4ccd02173c96f8369962f1fd4e5166a221690fa2 | [
"MIT"
] | 3 | 2019-03-09T05:19:23.000Z | 2019-04-06T09:26:36.000Z | hackerrank/python/basic_data_type/loops.py | love-adela/algorithm | 4ccd02173c96f8369962f1fd4e5166a221690fa2 | [
"MIT"
] | 1 | 2020-02-23T10:38:04.000Z | 2020-02-23T10:38:04.000Z | hackerrank/python/basic_data_type/loops.py | love-adela/algorithm | 4ccd02173c96f8369962f1fd4e5166a221690fa2 | [
"MIT"
] | 1 | 2019-05-22T13:47:53.000Z | 2019-05-22T13:47:53.000Z | sqr_list = [print(i ** 2) for i in range(int(input()))]
| 28 | 55 | 0.607143 | 11 | 56 | 3 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021277 | 0.160714 | 56 | 1 | 56 | 56 | 0.680851 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
8f55b5ebdc2f939683198f8ba6ef396fc2eb5a85 | 192 | py | Python | ChitChatInstaller/deploySocialize.py | RittmanMead/ChitChat | caeeba06459514166d8d0425c22d73abc79e467d | [
"MIT"
] | 5 | 2018-07-28T21:56:13.000Z | 2021-10-05T21:26:25.000Z | ChitChatInstaller/deploySocialize.py | haytastan/ChitChat | caeeba06459514166d8d0425c22d73abc79e467d | [
"MIT"
] | 8 | 2018-06-21T11:08:29.000Z | 2019-08-31T08:59:51.000Z | ChitChatInstaller/deploySocialize.py | haytastan/ChitChat | caeeba06459514166d8d0425c22d73abc79e467d | [
"MIT"
] | 2 | 2019-03-14T15:11:10.000Z | 2021-10-05T21:01:19.000Z | connect('weblogic', 'Admin123', 't3://localhost:9500')
edit()
startEdit()
deploy('Socialize', '/app/oracle/ChitChatInstaller/war/Socialize.war', targets='bi_server1')
save()
activate()
exit()
| 24 | 92 | 0.729167 | 22 | 192 | 6.318182 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049724 | 0.057292 | 192 | 7 | 93 | 27.428571 | 0.718232 | 0 | 0 | 0 | 0 | 0 | 0.526042 | 0.244792 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8f5bba2ff425c678f9368ca7e4677e6f6be68cdb | 351 | py | Python | kornia/contrib/__init__.py | EStorm21/kornia | b2bba7950d748ba0b8ce0cc68035a248799a1044 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2021-08-16T15:24:49.000Z | 2021-08-16T15:24:49.000Z | kornia/contrib/__init__.py | EStorm21/kornia | b2bba7950d748ba0b8ce0cc68035a248799a1044 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | kornia/contrib/__init__.py | EStorm21/kornia | b2bba7950d748ba0b8ce0cc68035a248799a1044 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | from kornia.contrib.connected_components import connected_components
from kornia.contrib.extract_patches import extract_tensor_patches, ExtractTensorPatches
from kornia.contrib.max_blur_pool import max_blur_pool2d, MaxBlurPool2d
__all__ = ["connected_components", "extract_tensor_patches", "max_blur_pool2d", "ExtractTe... | 58.5 | 120 | 0.866097 | 40 | 351 | 7.15 | 0.4 | 0.104895 | 0.178322 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012158 | 0.062678 | 351 | 5 | 121 | 70.2 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0.25641 | 0.062678 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 0 | 0.75 | 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 |
8f63b2bff9247baeed1609c9f290737c0c45fef9 | 349 | py | Python | PyPractice/Q16.py | coedfetr/STTP-python | 607d5c03e233dd7c6938ea2495a04701dcf5aed6 | [
"Apache-2.0"
] | null | null | null | PyPractice/Q16.py | coedfetr/STTP-python | 607d5c03e233dd7c6938ea2495a04701dcf5aed6 | [
"Apache-2.0"
] | null | null | null | PyPractice/Q16.py | coedfetr/STTP-python | 607d5c03e233dd7c6938ea2495a04701dcf5aed6 | [
"Apache-2.0"
] | 4 | 2015-12-24T05:34:46.000Z | 2020-03-10T03:39:16.000Z | import re
def make_3sg_form(verb):
es = ('o', 'ch', 's', 'sh', 'x', 'z')
if verb.endswith('y'):
return re.sub('y$', 'ies', verb)
elif verb.endswith(es):
return verb + 'es'
else:
return verb + 's'
print make_3sg_form('try')
print make_3sg_form('brush')
print make_3sg_form('run... | 20.529412 | 41 | 0.581662 | 55 | 349 | 3.509091 | 0.490909 | 0.181347 | 0.284974 | 0.331606 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018587 | 0.229226 | 349 | 17 | 42 | 20.529412 | 0.698885 | 0 | 0 | 0 | 0 | 0 | 0.088571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.076923 | null | null | 0.307692 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8f79c70d9bfa19b0ea8444781854364f1c574269 | 276 | py | Python | HW/4-1/data/tabulation.py | houzeyu2683/IRRHW | c44298ad14c468eff36bc75ebc63abdc9ba24d55 | [
"Apache-2.0"
] | null | null | null | HW/4-1/data/tabulation.py | houzeyu2683/IRRHW | c44298ad14c468eff36bc75ebc63abdc9ba24d55 | [
"Apache-2.0"
] | null | null | null | HW/4-1/data/tabulation.py | houzeyu2683/IRRHW | c44298ad14c468eff36bc75ebc63abdc9ba24d55 | [
"Apache-2.0"
] | 1 | 2022-01-16T03:40:34.000Z | 2022-01-16T03:40:34.000Z |
import pandas
import tqdm
import itertools
import re
from collections import Counter
class tabulation:
def __init__(self, path):
self.path = path
pass
def read(self):
self.table = pandas.read_csv(self.path)
pass
pass
| 13.142857 | 47 | 0.626812 | 34 | 276 | 4.941176 | 0.529412 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.315217 | 276 | 20 | 48 | 13.8 | 0.888889 | 0 | 0 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0.230769 | 0.384615 | 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 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
8f7e23d1e3636cbea74d8d98f90f3408072a3b35 | 979 | py | Python | jyoti_content_service/repository/models.py | mathurtx/jyoti-cy | 2b88941ba08f32bf36f63c79714496a188c11596 | [
"MIT"
] | null | null | null | jyoti_content_service/repository/models.py | mathurtx/jyoti-cy | 2b88941ba08f32bf36f63c79714496a188c11596 | [
"MIT"
] | null | null | null | jyoti_content_service/repository/models.py | mathurtx/jyoti-cy | 2b88941ba08f32bf36f63c79714496a188c11596 | [
"MIT"
] | null | null | null | from django.db import models
class ReportTable(models.Model):
id = models.AutoField(primary_key=True)
name = models.CharField(max_length=100, blank=True)
latitude = models.DecimalField(max_digits=9, decimal_places=6)
longitude = models.DecimalField(max_digits=9, decimal_places=6)
report_type = mode... | 36.259259 | 67 | 0.758938 | 130 | 979 | 5.538462 | 0.346154 | 0.1875 | 0.225 | 0.3 | 0.641667 | 0.641667 | 0.6 | 0.5 | 0.216667 | 0.216667 | 0 | 0.030733 | 0.135853 | 979 | 26 | 68 | 37.653846 | 0.820331 | 0 | 0 | 0.35 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.05 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
56c9fdb5e4ad8d0799d532774829ff61b482c919 | 169 | py | Python | binarysearch/sumOfFirstNOddIntegers.py | Ry4nW/python-wars | 76e3fb24b7ae2abf35db592f1ad59cf8d5f9e508 | [
"MIT"
] | 1 | 2021-06-06T19:55:22.000Z | 2021-06-06T19:55:22.000Z | binarysearch/sumOfFirstNOddIntegers.py | Ry4nW/python-wars | 76e3fb24b7ae2abf35db592f1ad59cf8d5f9e508 | [
"MIT"
] | 1 | 2022-01-20T19:20:33.000Z | 2022-01-20T23:51:46.000Z | binarysearch/sumOfFirstNOddIntegers.py | Ry4nW/python-wars | 76e3fb24b7ae2abf35db592f1ad59cf8d5f9e508 | [
"MIT"
] | null | null | null | def solve(n):
oddnums = []
i = 1
while len(oddnums) != n:
oddnums.append(i)
i += 2
return sum(oddnums)
| 16.9 | 32 | 0.390533 | 18 | 169 | 3.666667 | 0.666667 | 0.242424 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023529 | 0.497041 | 169 | 9 | 33 | 18.777778 | 0.752941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.285714 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
56ce11f6dfb37e8e0c8afe44671e17495ea282b9 | 384 | py | Python | source/playbooks/common/test/test_deserialize_json.py | aws-solutions/aws-security-hub-automated-response-and-remediation | 739fbc7ba42e1f81aea6bc9f879adbc7c7a4d747 | [
"Apache-2.0"
] | 44 | 2021-10-17T20:51:39.000Z | 2022-03-29T03:59:20.000Z | source/playbooks/common/test/test_deserialize_json.py | aws-solutions/aws-security-hub-automated-response-and-remediation | 739fbc7ba42e1f81aea6bc9f879adbc7c7a4d747 | [
"Apache-2.0"
] | 14 | 2021-11-02T19:30:18.000Z | 2022-03-30T18:44:58.000Z | source/playbooks/common/test/test_deserialize_json.py | aws-solutions/aws-security-hub-automated-response-and-remediation | 739fbc7ba42e1f81aea6bc9f879adbc7c7a4d747 | [
"Apache-2.0"
] | 16 | 2021-10-17T07:48:11.000Z | 2022-03-18T07:45:45.000Z | #!/usr/bin/python
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import json
from deserialize_json import event_handler
def event(object):
return {
'SerializedJson': json.dumps(object)
}
def test_deserialize():
object = {'MinRetentionPeri... | 25.6 | 68 | 0.708333 | 47 | 384 | 5.702128 | 0.723404 | 0.089552 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009375 | 0.166667 | 384 | 14 | 69 | 27.428571 | 0.828125 | 0.309896 | 0 | 0 | 0 | 0 | 0.125954 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.222222 | false | 0 | 0.222222 | 0.111111 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
56e2fe600575fc175fa91ff80fa0d45f49f30913 | 199 | py | Python | api/api/co2/serializers.py | PerryProjects/HoyaHacksCarbonEmissions | 5c4fc73624cd248ec854728d7fa9af49171939b3 | [
"MIT"
] | null | null | null | api/api/co2/serializers.py | PerryProjects/HoyaHacksCarbonEmissions | 5c4fc73624cd248ec854728d7fa9af49171939b3 | [
"MIT"
] | null | null | null | api/api/co2/serializers.py | PerryProjects/HoyaHacksCarbonEmissions | 5c4fc73624cd248ec854728d7fa9af49171939b3 | [
"MIT"
] | 1 | 2021-02-02T00:01:14.000Z | 2021-02-02T00:01:14.000Z | from rest_framework import serializers
from .models import Emission
class EmissionSerializer(serializers.ModelSerializer):
class Meta:
model = Emission
fields = '__all__'
| 18.090909 | 54 | 0.718593 | 19 | 199 | 7.263158 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.231156 | 199 | 11 | 55 | 18.090909 | 0.901961 | 0 | 0 | 0 | 0 | 0 | 0.035 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
711b44a293be68a69875c9a876ab504072ad197d | 467 | py | Python | tests/db/session.py | keigohtr/fastapi-template | 2150d75f1d87e33efab70ccb5455f2f9bdd19063 | [
"MIT"
] | null | null | null | tests/db/session.py | keigohtr/fastapi-template | 2150d75f1d87e33efab70ccb5455f2f9bdd19063 | [
"MIT"
] | null | null | null | tests/db/session.py | keigohtr/fastapi-template | 2150d75f1d87e33efab70ccb5455f2f9bdd19063 | [
"MIT"
] | null | null | null | """
Test DB session.
"""
import os
from sqlalchemy import create_engine
from sqlalchemy.engine.base import Engine
DB_HOST = os.environ["TEST_DB_HOST"]
DB_USER = os.environ["TEST_DB_USER"]
DB_PASSWORD = os.environ["TEST_DB_PASSWORD"]
def build_uri(db_name: str) -> str:
return f"mysql+pymysql://{DB_USER}:{DB_PASS... | 23.35 | 86 | 0.749465 | 76 | 467 | 4.302632 | 0.394737 | 0.073395 | 0.119266 | 0.137615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002415 | 0.11349 | 467 | 19 | 87 | 24.578947 | 0.78744 | 0.034261 | 0 | 0 | 0 | 0 | 0.252822 | 0.162528 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.2 | 0.3 | 0.2 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 3 |
7126a6f4651c32792a7fe4c9fdd9e7d446428c3c | 269 | py | Python | openpeerpower/components/hlk_sw16/errors.py | pcaston/core | e74d946cef7a9d4e232ae9e0ba150d18018cfe33 | [
"Apache-2.0"
] | 1 | 2021-07-08T20:09:55.000Z | 2021-07-08T20:09:55.000Z | openpeerpower/components/hlk_sw16/errors.py | pcaston/core | e74d946cef7a9d4e232ae9e0ba150d18018cfe33 | [
"Apache-2.0"
] | 47 | 2021-02-21T23:43:07.000Z | 2022-03-31T06:07:10.000Z | openpeerpower/components/hlk_sw16/errors.py | OpenPeerPower/core | f673dfac9f2d0c48fa30af37b0a99df9dd6640ee | [
"Apache-2.0"
] | null | null | null | """Errors for the HLK-SW16 component."""
from openpeerpower.exceptions import OpenPeerPowerError
class SW16Exception(OpenPeerPowerError):
"""Base class for HLK-SW16 exceptions."""
class CannotConnect(SW16Exception):
"""Unable to connect to the HLK-SW16."""
| 24.454545 | 55 | 0.750929 | 30 | 269 | 6.733333 | 0.6 | 0.10396 | 0.09901 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042918 | 0.133829 | 269 | 10 | 56 | 26.9 | 0.824034 | 0.390335 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
712f7829441817bd8b1cfca50cd0ad0919cefa28 | 543 | py | Python | examples/underscore_param.py | Naereen/clime | 21507e263870690b42595a0dc2abee7e882079bc | [
"MIT"
] | 61 | 2015-01-06T13:10:11.000Z | 2021-01-21T07:07:23.000Z | examples/underscore_param.py | Naereen/clime | 21507e263870690b42595a0dc2abee7e882079bc | [
"MIT"
] | 11 | 2015-04-08T12:13:20.000Z | 2021-08-08T08:44:59.000Z | examples/underscore_param.py | Naereen/clime | 21507e263870690b42595a0dc2abee7e882079bc | [
"MIT"
] | 5 | 2015-12-09T16:06:59.000Z | 2018-11-10T00:42:06.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
def echo(first, _second, _third='3rd'):
'''
Examples:
$ py underscore_param.py 1st 2rd --third 3rd
underscore_param.py: echo() got an unexpected keyword argument 'third'
$ py underscore_param.py 1st 2rd ---third 3rd
1st 2rd 3rd
$ py undersco... | 20.111111 | 74 | 0.640884 | 77 | 543 | 4.272727 | 0.415584 | 0.109422 | 0.258359 | 0.231003 | 0.483283 | 0.483283 | 0.422492 | 0.422492 | 0.322188 | 0.322188 | 0 | 0.056098 | 0.244936 | 543 | 26 | 75 | 20.884615 | 0.746341 | 0.077348 | 0 | 0 | 0 | 0 | 0.080882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.25 | null | null | 0.25 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
713ae211c576fe48b10e480852865ad433a00faf | 186 | py | Python | cashfree_sdk/payouts/cashgram/__deactivate_cashgram.py | cashfree/cashfree-sdk-python | f59f706a9ef6bc5d34c5933045b526dc9b0eea57 | [
"MIT"
] | 1 | 2020-06-24T20:53:57.000Z | 2020-06-24T20:53:57.000Z | cashfree_sdk/payouts/cashgram/__deactivate_cashgram.py | cashfree/cashfree-sdk-python | f59f706a9ef6bc5d34c5933045b526dc9b0eea57 | [
"MIT"
] | 8 | 2020-01-09T11:22:18.000Z | 2021-05-23T09:39:03.000Z | cashfree_sdk/payouts/cashgram/__deactivate_cashgram.py | cashfree/cashfree-sdk-python | f59f706a9ef6bc5d34c5933045b526dc9b0eea57 | [
"MIT"
] | 3 | 2020-05-11T04:47:06.000Z | 2022-03-31T00:56:10.000Z |
class DeactivateCashgram:
end_point = "/payout/v1/deactivateCashgram"
req_type = "POST"
def __init__(self, *args, **kwargs):
self.cashgramId = kwargs["cashgramId"] | 23.25 | 47 | 0.672043 | 19 | 186 | 6.263158 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006711 | 0.198925 | 186 | 8 | 48 | 23.25 | 0.791946 | 0 | 0 | 0 | 0 | 0 | 0.232432 | 0.156757 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
714223e993dd21fb4d8fa929b2c2079006744b52 | 621 | py | Python | lifesaver/Utils.py | 9bstudios/mc_lifesaver | e4cb7cf889ea936bc889cdb903630e339ab49836 | [
"MIT"
] | 1 | 2018-06-15T14:23:49.000Z | 2018-06-15T14:23:49.000Z | lifesaver/Utils.py | 9bstudios/mc_lifesaver | e4cb7cf889ea936bc889cdb903630e339ab49836 | [
"MIT"
] | null | null | null | lifesaver/Utils.py | 9bstudios/mc_lifesaver | e4cb7cf889ea936bc889cdb903630e339ab49836 | [
"MIT"
] | null | null | null | # python
import os
import lx
def get_this_kit_path():
this_dir = os.path.dirname(os.path.realpath(__file__))
while len(this_dir) != 0 and not os.path.isfile(os.path.join(this_dir, "index.cfg")):
this_dir = os.path.dirname(this_dir)
return this_dir
def get_user_config_path():
retu... | 29.571429 | 89 | 0.692432 | 94 | 621 | 4.276596 | 0.393617 | 0.104478 | 0.044776 | 0.064677 | 0.308458 | 0.208955 | 0.208955 | 0 | 0 | 0 | 0 | 0.001965 | 0.180354 | 621 | 21 | 90 | 29.571429 | 0.787819 | 0.009662 | 0 | 0 | 0 | 0 | 0.175896 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0.142857 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
71432cece9572d573fa944d5a867646242f274b3 | 82 | py | Python | python/Alura/data science/numpy/desempenho.py | alifoliveira/rep-estudos | 73ffb7cfe77890f6cca8b5447db332f88454ef7e | [
"MIT"
] | null | null | null | python/Alura/data science/numpy/desempenho.py | alifoliveira/rep-estudos | 73ffb7cfe77890f6cca8b5447db332f88454ef7e | [
"MIT"
] | null | null | null | python/Alura/data science/numpy/desempenho.py | alifoliveira/rep-estudos | 73ffb7cfe77890f6cca8b5447db332f88454ef7e | [
"MIT"
] | null | null | null | import numpy as np
np_array = np.arange(1000000)
py_list = list(range(1000000))
| 13.666667 | 30 | 0.743902 | 14 | 82 | 4.214286 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0.146341 | 82 | 5 | 31 | 16.4 | 0.642857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
852eb408e9c6f1947d3a47ad90a9a741ce46f1a1 | 2,062 | py | Python | src/compas_fab/robots/__init__.py | yck011522/compas_fab | db7c8e54184dbbad9be5a818cf7ff814c95cf162 | [
"MIT"
] | null | null | null | src/compas_fab/robots/__init__.py | yck011522/compas_fab | db7c8e54184dbbad9be5a818cf7ff814c95cf162 | [
"MIT"
] | null | null | null | src/compas_fab/robots/__init__.py | yck011522/compas_fab | db7c8e54184dbbad9be5a818cf7ff814c95cf162 | [
"MIT"
] | null | null | null | """
********************************************************************************
compas_fab.robots
********************************************************************************
.. currentmodule:: compas_fab.robots
This package contains classes for robot modeling and they are used by the
simulation, planning an... | 23.431818 | 85 | 0.574685 | 188 | 2,062 | 6.239362 | 0.43617 | 0.102302 | 0.143223 | 0.184143 | 0.206309 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046362 | 0.246848 | 2,062 | 87 | 86 | 23.701149 | 0.70895 | 0.731329 | 0 | 0 | 0 | 0 | 0.001873 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.923077 | 0 | 0.923077 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
8547741e21925ab7397bc3ce2dd4f29aa4a76bf4 | 5,025 | py | Python | lib/AUConfig.py | Vresod/Among-Us-Editor-Python | bd0b82105e2eea34c34b61edbfa9a3f013af4410 | [
"MIT"
] | 7 | 2021-11-15T00:44:30.000Z | 2021-12-03T16:26:36.000Z | lib/AUConfig.py | EnbyCosmog/Among-Us-Editor-Python | 3dfb30ecb2fc96e35ef3c32991628d7b93fc3bf7 | [
"MIT"
] | 8 | 2021-11-15T02:48:49.000Z | 2022-01-30T14:50:53.000Z | lib/AUConfig.py | EnbyCosmog/Among-Us-Editor-Python | 3dfb30ecb2fc96e35ef3c32991628d7b93fc3bf7 | [
"MIT"
] | 1 | 2021-11-15T02:27:46.000Z | 2021-11-15T02:27:46.000Z | from collections import OrderedDict
from os import PathLike
from .data_indexes import prefs_indexes as _prefs_indexes
from .data_indexes import host_indexes as _host_indexes
from .data_indexes import stats_indexes as _stats_indexes
import struct
from decimal import Decimal, getcontext
getcontext().prec = 3
class AUC... | 39.880952 | 108 | 0.699104 | 741 | 5,025 | 4.581646 | 0.153846 | 0.126657 | 0.061267 | 0.050074 | 0.74433 | 0.704271 | 0.70162 | 0.693373 | 0.6757 | 0.669809 | 0 | 0.008677 | 0.151443 | 5,025 | 126 | 109 | 39.880952 | 0.787523 | 0.109453 | 0 | 0.654545 | 0 | 0 | 0.032353 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.109091 | false | 0 | 0.063636 | 0.009091 | 0.209091 | 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 |
855d5e6493e4c360740ab16425ec8d855fc921ae | 257 | py | Python | example.py | ideonate/streamlit-cds-username | f8fef575598a178cf8c3a6c8153e89697730403c | [
"BSD-3-Clause"
] | null | null | null | example.py | ideonate/streamlit-cds-username | f8fef575598a178cf8c3a6c8153e89697730403c | [
"BSD-3-Clause"
] | null | null | null | example.py | ideonate/streamlit-cds-username | f8fef575598a178cf8c3a6c8153e89697730403c | [
"BSD-3-Clause"
] | null | null | null | import streamlit as st
import cds_username from cds_username
st.subheader("Username test")
# Create an instance of our component with a constant `name` arg, and
# print its output value.
username = cds_username()
st.markdown("Username is %s!" % username)
| 25.7 | 69 | 0.766537 | 39 | 257 | 4.974359 | 0.717949 | 0.170103 | 0.134021 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14786 | 257 | 9 | 70 | 28.555556 | 0.885845 | 0.354086 | 0 | 0 | 0 | 0 | 0.171779 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.4 | null | null | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
858993175c7b426934faa21717bd5ccc213b5421 | 11,399 | py | Python | project/datatable.py | Qiselong/LT_Project_shared_files | f18188169dc8986507293ea72587cf88b618931f | [
"MIT"
] | null | null | null | project/datatable.py | Qiselong/LT_Project_shared_files | f18188169dc8986507293ea72587cf88b618931f | [
"MIT"
] | null | null | null | project/datatable.py | Qiselong/LT_Project_shared_files | f18188169dc8986507293ea72587cf88b618931f | [
"MIT"
] | null | null | null | # Date: 30.10.21
# Last update: 1.11.21
# Auth: T. Boudier
# Objectif: créer une table de données pour les 46 villes du pays du gresivaudan et qqs. fonctions adaptées à la réflexion autour du problème (ie. )
# Avis aux lecteurs: deésolé pour les commentaires, il est tard et je suis fatigué
#imports
import igraph
#... | 48.922747 | 2,323 | 0.569524 | 1,692 | 11,399 | 3.814421 | 0.367612 | 0.029749 | 0.006972 | 0.006198 | 0.154168 | 0.064921 | 0.052835 | 0.052835 | 0.023706 | 0.022932 | 0 | 0.230968 | 0.285551 | 11,399 | 233 | 2,324 | 48.922747 | 0.560535 | 0.152382 | 0 | 0.228916 | 0 | 0.036145 | 0.391835 | 0.033722 | 0 | 0 | 0 | 0.004292 | 0 | 0 | null | null | 0 | 0.006024 | null | null | 0.072289 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
85a5048f487a80e89eb39beca3bcf9f18b8fcab8 | 3,386 | py | Python | monolith_filemanager/file/__init__.py | MonolithAILtd/monolith-filemanager | 2369e244e4d8a48890f55d00419a83001a5c6c40 | [
"Apache-2.0"
] | 3 | 2021-06-02T09:45:00.000Z | 2022-02-01T14:30:01.000Z | monolith_filemanager/file/__init__.py | MonolithAILtd/monolith-filemanager | 2369e244e4d8a48890f55d00419a83001a5c6c40 | [
"Apache-2.0"
] | 3 | 2021-05-26T11:46:28.000Z | 2021-11-04T10:14:42.000Z | monolith_filemanager/file/__init__.py | MonolithAILtd/monolith-filemanager | 2369e244e4d8a48890f55d00419a83001a5c6c40 | [
"Apache-2.0"
] | 2 | 2021-06-04T15:02:14.000Z | 2021-09-03T09:26:45.000Z | from typing import Any
from ..path import FilePath
from ..singleton import Singleton
from .errors import FileMapError
class FileMap(dict, metaclass=Singleton):
"""
This is a class for managing the imports of file types.
Attributes:
bindings_imported bool: False if file types have not been import... | 39.835294 | 113 | 0.621382 | 376 | 3,386 | 5.380319 | 0.25266 | 0.098863 | 0.136431 | 0.160158 | 0.142363 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001291 | 0.313644 | 3,386 | 84 | 114 | 40.309524 | 0.869191 | 0.125812 | 0 | 0 | 0 | 0 | 0.030314 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.4 | 0 | 0.54 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
a41513b2ff91ab6b6e978ec0d70a61096f94500d | 563 | py | Python | yarll/deepq/policy.py | H-Park/YARLL | 9217e63e231f2b915c69baad44ccadc7d2a774b8 | [
"MIT"
] | 1 | 2020-05-06T20:37:22.000Z | 2020-05-06T20:37:22.000Z | yarll/deepq/policy.py | H-Park/YARLL | 9217e63e231f2b915c69baad44ccadc7d2a774b8 | [
"MIT"
] | null | null | null | yarll/deepq/policy.py | H-Park/YARLL | 9217e63e231f2b915c69baad44ccadc7d2a774b8 | [
"MIT"
] | 1 | 2020-05-06T20:37:16.000Z | 2020-05-06T20:37:16.000Z | import torch
from abc import ABC, abstractmethod
class DQNPolicy(torch.nn.Module):
def __init__(self):
super(DQNPolicy, self).__init__()
@abstractmethod
def apply_mask(self, logits, action_mask):
"""
Given an action, apply the action mask. Note: This is used for masking actions pr... | 29.631579 | 110 | 0.662522 | 75 | 563 | 4.813333 | 0.586667 | 0.138504 | 0.072022 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.269982 | 563 | 18 | 111 | 31.277778 | 0.878346 | 0.472469 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.125 | 0.25 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
a41cc7035361c9e995c58aa8bff5fba9c43a349c | 207 | py | Python | src/places/database/models.py | Gonmeso/paradigma-challenge | 4973257b8cbd67bcafd1ad23fe136e36c64916da | [
"MIT"
] | null | null | null | src/places/database/models.py | Gonmeso/paradigma-challenge | 4973257b8cbd67bcafd1ad23fe136e36c64916da | [
"MIT"
] | 1 | 2021-06-02T00:29:06.000Z | 2021-06-02T00:29:06.000Z | src/places/database/models.py | Gonmeso/paradigma-challenge | 4973257b8cbd67bcafd1ad23fe136e36c64916da | [
"MIT"
] | null | null | null | from places import db
class Place(db.Model):
id = db.Column(db.Integer, primary_key=True)
name = db.Column(db.String(64))
def __repr__(self):
return '<Place {}>, {}'.format(self.name)
| 20.7 | 49 | 0.63285 | 30 | 207 | 4.2 | 0.7 | 0.126984 | 0.15873 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012121 | 0.202899 | 207 | 9 | 50 | 23 | 0.751515 | 0 | 0 | 0 | 0 | 0 | 0.067633 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0.166667 | 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 | 0 | 1 | 1 | 0 | 0 | 3 |
a4359e9abdf49ea32984f7ae6e2bf8a8c26a854d | 118 | py | Python | web_scraping/ec2files/ec2file100.py | nikibhatt/Groa | fc2d4ae87cb825e6d54a0831c72be16541eebe61 | [
"MIT"
] | 1 | 2020-04-08T19:44:30.000Z | 2020-04-08T19:44:30.000Z | web_scraping/ec2files/ec2file100.py | cmgospod/Groa | 31b3624bfe61e772b55f8175b4e95d63c9e67966 | [
"MIT"
] | null | null | null | web_scraping/ec2files/ec2file100.py | cmgospod/Groa | 31b3624bfe61e772b55f8175b4e95d63c9e67966 | [
"MIT"
] | 1 | 2020-09-12T07:07:41.000Z | 2020-09-12T07:07:41.000Z | from scraper import *
s = Scraper(start=178200, end=179981, max_iter=30, scraper_instance=100)
s.scrape_letterboxd() | 39.333333 | 73 | 0.779661 | 18 | 118 | 4.944444 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.160377 | 0.101695 | 118 | 3 | 74 | 39.333333 | 0.679245 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
a436c4e9e05fd8dc823b36a9f39ad1767c76f9cb | 1,276 | py | Python | garlicconfig/managers.py | infoscout/garlicconfig | bd2dfbc7020ec2b80a99f9b509da901fc7066493 | [
"MIT"
] | 4 | 2017-08-04T22:39:21.000Z | 2020-12-08T05:39:12.000Z | garlicconfig/managers.py | infoscout/garlicconfig | bd2dfbc7020ec2b80a99f9b509da901fc7066493 | [
"MIT"
] | 10 | 2017-06-05T22:08:27.000Z | 2020-10-28T19:00:41.000Z | garlicconfig/managers.py | infoscout/garlicconfig | bd2dfbc7020ec2b80a99f9b509da901fc7066493 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from abc import ABCMeta, abstractmethod
from garlicconfig.layer import LayerRetriever
import six
@six.add_metaclass(ABCMeta)
class ConfigManager(object):
"""
Abstract class for all config managers.
Use this class to define custom configura... | 29.674419 | 107 | 0.717085 | 148 | 1,276 | 5.993243 | 0.493243 | 0.058625 | 0.076663 | 0.040586 | 0.05637 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00098 | 0.200627 | 1,276 | 42 | 108 | 30.380952 | 0.868627 | 0.227273 | 0 | 0.347826 | 0 | 0 | 0.00418 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0.086957 | 0.173913 | 0.043478 | 0.521739 | 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 |
a4634b7cbc6f2ac2404f6d73c6e45e31d1444530 | 320 | py | Python | Aufgabe_7_7_1.py | ostseegloeckchen/basics | 218b29c62f575d88c27104c05fee917b3466e8d0 | [
"bzip2-1.0.6"
] | null | null | null | Aufgabe_7_7_1.py | ostseegloeckchen/basics | 218b29c62f575d88c27104c05fee917b3466e8d0 | [
"bzip2-1.0.6"
] | null | null | null | Aufgabe_7_7_1.py | ostseegloeckchen/basics | 218b29c62f575d88c27104c05fee917b3466e8d0 | [
"bzip2-1.0.6"
] | null | null | null | liste=["mond","stoff","treib","raum","schiff"]
print(liste[0])
print(liste)
print(liste[2]+liste[1])
print(liste)
print(liste[-2]+liste[-1])
print(liste)
for wort in liste:
if wort[0]=="s":
print(wort)
print(liste)
for wort in liste:
print(wort[1],end=" ")
print(liste)
| 12.8 | 47 | 0.56875 | 47 | 320 | 3.87234 | 0.340426 | 0.43956 | 0.164835 | 0.21978 | 0.56044 | 0.56044 | 0.351648 | 0.351648 | 0.351648 | 0 | 0 | 0.028226 | 0.225 | 320 | 24 | 48 | 13.333333 | 0.705645 | 0 | 0 | 0.5 | 0 | 0 | 0.087838 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.714286 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
a484620a93a6229328e18455ef18fae03c384726 | 639 | py | Python | Pix/Modules/__init__.py | olmedoluis/pix | 872fc75a3cef0d8cb152b1565a831874b9fd3fb5 | [
"MIT"
] | null | null | null | Pix/Modules/__init__.py | olmedoluis/pix | 872fc75a3cef0d8cb152b1565a831874b9fd3fb5 | [
"MIT"
] | null | null | null | Pix/Modules/__init__.py | olmedoluis/pix | 872fc75a3cef0d8cb152b1565a831874b9fd3fb5 | [
"MIT"
] | null | null | null | from .Status import router as status_router
from .Add import router as add_router
from .Branch import router as branch_router
from .Commit import router as commit_router
from .Remove import router as remove_router
from .Stash import router as stash_router
from .Patch import router as patch_router
from .Reset import rou... | 29.045455 | 43 | 0.748044 | 92 | 639 | 4.98913 | 0.173913 | 0.235294 | 0.27451 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176839 | 639 | 21 | 44 | 30.428571 | 0.872624 | 0 | 0 | 0 | 0 | 0 | 0.070423 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.45 | 0 | 0.45 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
a4a6d7dcdf9345489c78de608589fb1a5abbce90 | 919 | py | Python | rick_db/cache.py | oddbit-project/rick_db | 02910c071f3ad58fdd88b2a27bfdd2bc61497d42 | [
"MIT"
] | null | null | null | rick_db/cache.py | oddbit-project/rick_db | 02910c071f3ad58fdd88b2a27bfdd2bc61497d42 | [
"MIT"
] | null | null | null | rick_db/cache.py | oddbit-project/rick_db | 02910c071f3ad58fdd88b2a27bfdd2bc61497d42 | [
"MIT"
] | null | null | null | import collections
import threading
from typing import Union
class CacheInterface:
def get(self, key):
pass
def set(self, key, value):
pass
def has(self, key):
pass
def remove(self, key):
pass
def purge(self):
pass
class StrCache(collections.UserDict,... | 19.553191 | 53 | 0.554951 | 113 | 919 | 4.513274 | 0.283186 | 0.109804 | 0.166667 | 0.082353 | 0.331373 | 0.109804 | 0 | 0 | 0 | 0 | 0 | 0 | 0.334059 | 919 | 46 | 54 | 19.978261 | 0.833333 | 0 | 0 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3125 | false | 0.15625 | 0.09375 | 0 | 0.5625 | 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 |
a4a9485a891b85fcfa729bcfbd7f9ce8b68b7116 | 92 | py | Python | cmsplugin_contact_plus/__init__.py | qdotme/cmsplugin-contact-plus | 08a8448cce4a3483820498b9782a19e9a3e55fcc | [
"BSD-3-Clause"
] | null | null | null | cmsplugin_contact_plus/__init__.py | qdotme/cmsplugin-contact-plus | 08a8448cce4a3483820498b9782a19e9a3e55fcc | [
"BSD-3-Clause"
] | null | null | null | cmsplugin_contact_plus/__init__.py | qdotme/cmsplugin-contact-plus | 08a8448cce4a3483820498b9782a19e9a3e55fcc | [
"BSD-3-Clause"
] | null | null | null | __version__ = '1.4.0'
default_app_config = 'cmsplugin_contact_plus.apps.ContactPlusConfig'
| 23 | 68 | 0.815217 | 12 | 92 | 5.583333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035294 | 0.076087 | 92 | 3 | 69 | 30.666667 | 0.752941 | 0 | 0 | 0 | 0 | 0 | 0.543478 | 0.48913 | 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 |
f106bb2d338d45d7db84d30c70b03e3b9f136bc1 | 1,085 | py | Python | pecan/scaffolds/rest-api/+package+/controllers/root.py | antlarr/pecan | 4baee7e4f30177d08c91f7ad5b9202773a0ca1c1 | [
"BSD-3-Clause"
] | 114 | 2015-08-13T14:16:39.000Z | 2022-03-06T08:56:00.000Z | pecan/scaffolds/rest-api/+package+/controllers/root.py | antlarr/pecan | 4baee7e4f30177d08c91f7ad5b9202773a0ca1c1 | [
"BSD-3-Clause"
] | 81 | 2015-07-28T14:54:20.000Z | 2022-03-18T06:49:48.000Z | pecan/scaffolds/rest-api/+package+/controllers/root.py | antlarr/pecan | 4baee7e4f30177d08c91f7ad5b9202773a0ca1c1 | [
"BSD-3-Clause"
] | 46 | 2015-07-27T19:28:53.000Z | 2022-03-06T08:56:05.000Z | from pecan import expose, response, abort
people = {
1: 'Luke',
2: 'Leia',
3: 'Han',
4: 'Anakin'
}
class PersonController(object):
def __init__(self, person_id):
self.person_id = person_id
@expose(generic=True)
def index(self):
return people.get(self.person_id) or abort(... | 20.092593 | 58 | 0.617512 | 128 | 1,085 | 5.148438 | 0.421875 | 0.072838 | 0.072838 | 0.081942 | 0.072838 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027363 | 0.258986 | 1,085 | 53 | 59 | 20.471698 | 0.792289 | 0.083871 | 0 | 0.205882 | 0 | 0 | 0.051515 | 0 | 0 | 0 | 0 | 0.018868 | 0 | 1 | 0.235294 | false | 0 | 0.029412 | 0.117647 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
f1087f5ca3f3ce262a2d1df97ca83889853ed465 | 2,186 | py | Python | ncclient/devices/ndsatcom.py | NorthLandTeam/ncclient | ff6bba74c3304f0a5053087449f5a51e8eb13ed4 | [
"Apache-2.0"
] | null | null | null | ncclient/devices/ndsatcom.py | NorthLandTeam/ncclient | ff6bba74c3304f0a5053087449f5a51e8eb13ed4 | [
"Apache-2.0"
] | null | null | null | ncclient/devices/ndsatcom.py | NorthLandTeam/ncclient | ff6bba74c3304f0a5053087449f5a51e8eb13ed4 | [
"Apache-2.0"
] | null | null | null | from .default import DefaultDeviceHandler
class NdsatcomDeviceHandler(DefaultDeviceHandler):
def __init__(self, device_params):
super(NdsatcomDeviceHandler, self).__init__(device_params)
def get_capabilities(self):
# Just need to replace a single value in the default capabilities
c = s... | 70.516129 | 110 | 0.702196 | 326 | 2,186 | 4.671779 | 0.273006 | 0.09652 | 0.137229 | 0.199606 | 0.377544 | 0.377544 | 0.195666 | 0.085358 | 0.048588 | 0.048588 | 0 | 0.082078 | 0.119396 | 2,186 | 31 | 111 | 70.516129 | 0.709091 | 0.02882 | 0 | 0 | 0 | 0.678571 | 0.63902 | 0.082941 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.035714 | 0 | 0.178571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f12d60b7773c2149d2f3b2569c108c267af7babd | 2,867 | py | Python | pygeos/geometry.py | jorisvandenbossche/pygeos | 0a25af4ae1c96d11752318d2755f4f3342611b17 | [
"BSD-3-Clause"
] | null | null | null | pygeos/geometry.py | jorisvandenbossche/pygeos | 0a25af4ae1c96d11752318d2755f4f3342611b17 | [
"BSD-3-Clause"
] | null | null | null | pygeos/geometry.py | jorisvandenbossche/pygeos | 0a25af4ae1c96d11752318d2755f4f3342611b17 | [
"BSD-3-Clause"
] | null | null | null | from enum import IntEnum
import numpy as np
from . import ufuncs
__all__ = [
"Geometry",
"Empty",
"GeometryType",
"get_type_id",
"get_dimensions",
"get_coordinate_dimensions",
"get_num_coordinates",
"has_z",
"normalize",
"get_srid",
"set_srid",
"get_x",
"get_y",
... | 18.496774 | 77 | 0.69864 | 370 | 2,867 | 5.156757 | 0.254054 | 0.119497 | 0.125786 | 0.060273 | 0.093291 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005599 | 0.190094 | 2,867 | 154 | 78 | 18.616883 | 0.816107 | 0.175794 | 0 | 0 | 0 | 0 | 0.118444 | 0.020542 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.039474 | 0.236842 | 0.657895 | 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 |
f15223bf2e023ee71621ad7d97eef95cd2e73cf9 | 233 | py | Python | main.py | AnRyz/systeminfo | 2a2c222128ecbbd86b2ad7288766d62d8cb595dd | [
"BSD-2-Clause"
] | null | null | null | main.py | AnRyz/systeminfo | 2a2c222128ecbbd86b2ad7288766d62d8cb595dd | [
"BSD-2-Clause"
] | null | null | null | main.py | AnRyz/systeminfo | 2a2c222128ecbbd86b2ad7288766d62d8cb595dd | [
"BSD-2-Clause"
] | null | null | null | '''
Created on 22 Feb 2018
@author: Anna
'''
import platform
def get_system_info():
print ("This is platform information:")
print(platform.platform())
return
if __name__ == '__main__':
get_system_info()
# pass | 15.533333 | 41 | 0.660944 | 29 | 233 | 4.896552 | 0.758621 | 0.126761 | 0.183099 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032787 | 0.214592 | 233 | 15 | 42 | 15.533333 | 0.743169 | 0.184549 | 0 | 0 | 0 | 0 | 0.218935 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | true | 0 | 0.142857 | 0 | 0.428571 | 0.285714 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f15336230dfdb0d8c694cd3aaa532053776c01ea | 171 | py | Python | config.py | DisruptivaLabs/Oauth2 | 5537d658f8025dce153f29672f41776682b605e9 | [
"Apache-2.0"
] | null | null | null | config.py | DisruptivaLabs/Oauth2 | 5537d658f8025dce153f29672f41776682b605e9 | [
"Apache-2.0"
] | null | null | null | config.py | DisruptivaLabs/Oauth2 | 5537d658f8025dce153f29672f41776682b605e9 | [
"Apache-2.0"
] | null | null | null | CLIENT_ID = ''
CLIENT_SECRET = ''
REDIRECT_URI = '' #Url de callback
URL_AUTHORIZATION = '' #Url do servidor Oauth2
URL_GET_TOKEN = '' #Url do endpoint do servidor Oauth2
| 28.5 | 54 | 0.730994 | 24 | 171 | 4.958333 | 0.625 | 0.084034 | 0.268908 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013986 | 0.163743 | 171 | 5 | 55 | 34.2 | 0.818182 | 0.415205 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f18379d0b7f996c95c70130fa44cb30465b5b681 | 134 | py | Python | server6.py | paulgb/wdimtloap | 97d6084286153cc0fa8be1aeb630aa4311dadf43 | [
"MIT"
] | 16 | 2022-02-13T18:51:39.000Z | 2022-03-05T19:09:10.000Z | server6.py | paulgb/wdimtloap | 97d6084286153cc0fa8be1aeb630aa4311dadf43 | [
"MIT"
] | 1 | 2022-02-14T02:57:40.000Z | 2022-02-15T17:24:41.000Z | server6.py | paulgb/wdimtloap | 97d6084286153cc0fa8be1aeb630aa4311dadf43 | [
"MIT"
] | null | null | null | import socket
sock socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.bind(('0.0.0.0', 8080))
sock.listen()
print(sock.accept())
| 19.142857 | 54 | 0.738806 | 23 | 134 | 4.217391 | 0.521739 | 0.061856 | 0.061856 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064516 | 0.074627 | 134 | 6 | 55 | 22.333333 | 0.717742 | 0 | 0 | 0 | 0 | 0 | 0.052239 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | 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 |
74b23f3af2faaa039ead0d56ecdae325b4d9770e | 156,267 | py | Python | phrases/migrations/0001_initial.py | dima7a14/rememberme | da8dc0812f92a958294930b1d1ddd00741f8367c | [
"MIT"
] | null | null | null | phrases/migrations/0001_initial.py | dima7a14/rememberme | da8dc0812f92a958294930b1d1ddd00741f8367c | [
"MIT"
] | null | null | null | phrases/migrations/0001_initial.py | dima7a14/rememberme | da8dc0812f92a958294930b1d1ddd00741f8367c | [
"MIT"
] | null | null | null | # Generated by Django 3.1.7 on 2021-04-09 19:34
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Languages',
fields=[
... | 1,882.73494 | 153,301 | 0.453922 | 11,953 | 156,267 | 5.93098 | 0.687108 | 0.023528 | 0.005529 | 0.00529 | 0.011101 | 0.010452 | 0.008139 | 0.007011 | 0.006432 | 0.006432 | 0 | 0.001107 | 0.127308 | 156,267 | 82 | 153,302 | 1,905.695122 | 0.518702 | 0.000288 | 0 | 0.573333 | 1 | 0 | 0.47332 | 0.002228 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.013333 | 0.026667 | 0 | 0.08 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
74b663c7e2f1bc382c269ffcef8ac4f414aac96e | 2,718 | py | Python | gdp/result.py | istinspring/gdp | 44976890f2fcb16d839c9ae12231f0ed366c2bbe | [
"MIT"
] | 1 | 2018-02-12T10:30:23.000Z | 2018-02-12T10:30:23.000Z | gdp/result.py | istinspring/gdp | 44976890f2fcb16d839c9ae12231f0ed366c2bbe | [
"MIT"
] | null | null | null | gdp/result.py | istinspring/gdp | 44976890f2fcb16d839c9ae12231f0ed366c2bbe | [
"MIT"
] | 1 | 2020-05-19T09:12:17.000Z | 2020-05-19T09:12:17.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals, absolute_import
import cerberus
import collections
def _make_types(schema):
"""Make values allowed by schame accessable as a class attributes
>>> s = {'a': {'allowed': ['yes', 'no'], 'required': True}}
>>> c = _make_types(s)
>>> c.a.YES ... | 30.2 | 80 | 0.592347 | 310 | 2,718 | 4.93871 | 0.36129 | 0.064664 | 0.007838 | 0.016982 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000495 | 0.256071 | 2,718 | 89 | 81 | 30.539326 | 0.756677 | 0.328918 | 0 | 0.047619 | 0 | 0 | 0.065889 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.071429 | 0.119048 | 0.595238 | 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 |
74ccc9f9b9d533e488d5b45f34565ca075414ac2 | 10,521 | py | Python | armory/data/adversarial/apricot_metadata.py | GuillaumeLeclerc/armory | c24928701b4ff6fc37cdb994ea784f9733a8e8da | [
"MIT"
] | 93 | 2020-02-11T23:10:15.000Z | 2022-03-29T23:28:24.000Z | armory/data/adversarial/apricot_metadata.py | GuillaumeLeclerc/armory | c24928701b4ff6fc37cdb994ea784f9733a8e8da | [
"MIT"
] | 834 | 2020-02-10T15:43:39.000Z | 2022-03-31T17:57:41.000Z | armory/data/adversarial/apricot_metadata.py | GuillaumeLeclerc/armory | c24928701b4ff6fc37cdb994ea784f9733a8e8da | [
"MIT"
] | 57 | 2020-02-10T15:20:15.000Z | 2022-03-18T04:32:21.000Z | APRICOT_MODELS = [
{
"classifier": "resnet50",
"id": 0,
"model": "frcnn",
"url": "http://download.tensorflow.org/models/object_detection/faster_rcnn_resnet50_coco_2018_01_28.tar.gz",
},
{
"classifier": "resnet50",
"id": 1,
"model": "retinanet",
... | 20.875 | 151 | 0.398346 | 1,099 | 10,521 | 3.568699 | 0.152866 | 0.122387 | 0.09179 | 0.107088 | 0.826364 | 0.826364 | 0.817695 | 0.039011 | 0.026517 | 0 | 0 | 0.082924 | 0.420017 | 10,521 | 503 | 152 | 20.916501 | 0.559816 | 0 | 0 | 0.494024 | 0 | 0 | 0.309381 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
74dce433815819425f9ea34f34d3b24fafca84fc | 4,673 | py | Python | tests/test_lib.py | micah5/easy_nano | 2388775494028e73f7cc1161861847efd7ce77aa | [
"MIT"
] | 12 | 2021-06-04T15:38:00.000Z | 2021-11-03T14:31:49.000Z | tests/test_lib.py | micah5/easy_nano | 2388775494028e73f7cc1161861847efd7ce77aa | [
"MIT"
] | 1 | 2022-02-11T17:46:56.000Z | 2022-03-20T10:13:01.000Z | tests/test_lib.py | micah5/easy_nano | 2388775494028e73f7cc1161861847efd7ce77aa | [
"MIT"
] | 2 | 2021-06-04T15:45:58.000Z | 2022-02-07T22:21:20.000Z | import sys
sys.path.append("./easy_nano")
import pytest
from lib import Account
def _process_block(self, block, subtype):
return "test_hash"
def _call_node_url(self, payload):
if payload["action"] == "account_history":
return {
"account": "nano_3cpz7oh9qr5b7obbcb5867omqf8esix4sdd5w6mh... | 41.723214 | 160 | 0.649262 | 250 | 4,673 | 11.872 | 0.376 | 0.022237 | 0.028302 | 0.042453 | 0.1031 | 0.1031 | 0.1031 | 0.1031 | 0.1031 | 0.1031 | 0 | 0.300433 | 0.258506 | 4,673 | 111 | 161 | 42.099099 | 0.556133 | 0 | 0 | 0.145833 | 0 | 0 | 0.544404 | 0.426707 | 0 | 0 | 0 | 0 | 0.020833 | 1 | 0.052083 | false | 0 | 0.03125 | 0.020833 | 0.15625 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 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 |
2d0158dac2d5cf716fd45a33efd00cc19fa02db0 | 422 | py | Python | python/radiostate.py | sebastienroy/mamemaradio | 66e605c20345d5578dd31e296e0690233c173c19 | [
"Apache-2.0"
] | 2 | 2020-05-28T13:35:52.000Z | 2020-07-09T13:55:48.000Z | python/radiostate.py | sebastienroy/mamemaradio | 66e605c20345d5578dd31e296e0690233c173c19 | [
"Apache-2.0"
] | 6 | 2020-04-10T19:45:16.000Z | 2020-06-02T07:20:20.000Z | python/radiostate.py | sebastienroy/mamemasradio | 66e605c20345d5578dd31e296e0690233c173c19 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sun Sep 23 15:15:25 2018
@author: Sebastien Roy
"""
class RadioState:
def __init__(self, context, owner):
self._ctxt = context
self._owner = owner
return
def enter_state(self):
return
def leave_state(self):
... | 16.230769 | 39 | 0.587678 | 53 | 422 | 4.509434 | 0.622642 | 0.150628 | 0.125523 | 0.150628 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047458 | 0.300948 | 422 | 25 | 40 | 16.88 | 0.762712 | 0.244076 | 0 | 0.384615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.384615 | false | 0 | 0 | 0.307692 | 0.846154 | 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 |
2d04b65c89bc4b8bae4ca210dfd79109adc5f234 | 160 | py | Python | briekit/__init__.py | huangyh09/briekit | 54a4743ab09d5a031a0998a0385419bac0e22640 | [
"Apache-2.0"
] | 2 | 2021-04-11T04:07:18.000Z | 2021-08-31T17:38:05.000Z | briekit/__init__.py | huangyh09/briekit | 54a4743ab09d5a031a0998a0385419bac0e22640 | [
"Apache-2.0"
] | 5 | 2019-08-03T06:53:15.000Z | 2022-02-02T01:34:24.000Z | briekit/__init__.py | huangyh09/briekit | 54a4743ab09d5a031a0998a0385419bac0e22640 | [
"Apache-2.0"
] | 1 | 2019-10-22T15:40:48.000Z | 2019-10-22T15:40:48.000Z |
__version__ = "0.2.2"
# import pyximport; pyximport.install()
# from .utils.fasta import *
from .utils.gtf_utils import Gene, Transcript, loadgene, savegene
| 20 | 65 | 0.74375 | 21 | 160 | 5.428571 | 0.666667 | 0.157895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021739 | 0.1375 | 160 | 7 | 66 | 22.857143 | 0.804348 | 0.4 | 0 | 0 | 0 | 0 | 0.054348 | 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 |
2d07c9e4dfb20b9dcd647a9d5a5f1f3b51ca1263 | 207 | py | Python | c-series/c074.py | TheLurkingCat/ZeroJudge | 6fc49c54a45e2b4b3a8d04b7a5a1fc81a2ff4eee | [
"MIT"
] | 1 | 2018-10-21T10:03:42.000Z | 2018-10-21T10:03:42.000Z | c-series/c074.py | TheLurkingCat/ZeroJudge | 6fc49c54a45e2b4b3a8d04b7a5a1fc81a2ff4eee | [
"MIT"
] | null | null | null | c-series/c074.py | TheLurkingCat/ZeroJudge | 6fc49c54a45e2b4b3a8d04b7a5a1fc81a2ff4eee | [
"MIT"
] | 2 | 2018-10-12T16:40:11.000Z | 2021-04-05T12:05:36.000Z | from itertools import combinations
a = input().split()
while True:
del a[0]
for ans in combinations(a, 6):
print(*ans)
a = input().split()
if (a == ['0']):
break
print()
| 17.25 | 34 | 0.536232 | 28 | 207 | 3.964286 | 0.642857 | 0.234234 | 0.198198 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020833 | 0.304348 | 207 | 11 | 35 | 18.818182 | 0.75 | 0 | 0 | 0.2 | 0 | 0 | 0.004831 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0.2 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2d0f93282931d19e901574aedb4494d1fce2b493 | 127 | py | Python | lj.py | 1012598167/drugsdxy_selenium_or_requests | 0ea6c4a28f4436c3168c7c4b1f53e31726814abc | [
"Apache-2.0"
] | null | null | null | lj.py | 1012598167/drugsdxy_selenium_or_requests | 0ea6c4a28f4436c3168c7c4b1f53e31726814abc | [
"Apache-2.0"
] | null | null | null | lj.py | 1012598167/drugsdxy_selenium_or_requests | 0ea6c4a28f4436c3168c7c4b1f53e31726814abc | [
"Apache-2.0"
] | null | null | null | import requests
from lxml import etree
a=requests.get('http://www.baidu.com')
tree=etree.HTML(a.text)
print(tree.xpath('//a'))
| 21.166667 | 38 | 0.732283 | 22 | 127 | 4.227273 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070866 | 127 | 5 | 39 | 25.4 | 0.788136 | 0 | 0 | 0 | 0 | 0 | 0.181102 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2d21b70aae3c856afcc1ea892718f8dc5d7b3c5f | 923 | py | Python | web_interface/account_mgr_app/tests/test_login.py | omegacore/ease | 38a6ff065beaaaaa1b025f0a0f9e80f0f553cac0 | [
"BSD-3-Clause-LBNL"
] | 7 | 2017-07-03T19:32:29.000Z | 2021-07-27T11:48:28.000Z | web_interface/account_mgr_app/tests/test_login.py | omegacore/ease | 38a6ff065beaaaaa1b025f0a0f9e80f0f553cac0 | [
"BSD-3-Clause-LBNL"
] | 38 | 2017-07-26T18:54:17.000Z | 2018-05-31T02:29:16.000Z | web_interface/account_mgr_app/tests/test_login.py | omegacore/ease | 38a6ff065beaaaaa1b025f0a0f9e80f0f553cac0 | [
"BSD-3-Clause-LBNL"
] | 7 | 2017-06-26T23:35:13.000Z | 2020-12-13T00:35:17.000Z | from django.test import TestCase
from django.test import Client
from account_mgr_app.models import *
from alert_config_app.models import *
from django.contrib.auth.models import User
from django.db.utils import IntegrityError
# Create your tests here.
class LoginTests(TestCase):
@classmethod
def setUpTestDa... | 28.84375 | 76 | 0.658722 | 107 | 923 | 5.616822 | 0.542056 | 0.066556 | 0.046589 | 0.066556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.24052 | 923 | 31 | 77 | 29.774194 | 0.857347 | 0.225352 | 0 | 0 | 0 | 0 | 0.074128 | 0.03343 | 0 | 0 | 0 | 0 | 0.055556 | 1 | 0.166667 | false | 0.111111 | 0.333333 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
2d2674391f962733b37a2002a63e4f2305479b21 | 1,390 | py | Python | infrastructure/ktop/kafka_adapter/adapters.py | agrausem/ktop | 9aa939d7a0d26462dc56c5e4be641128551b54db | [
"Apache-2.0"
] | null | null | null | infrastructure/ktop/kafka_adapter/adapters.py | agrausem/ktop | 9aa939d7a0d26462dc56c5e4be641128551b54db | [
"Apache-2.0"
] | null | null | null | infrastructure/ktop/kafka_adapter/adapters.py | agrausem/ktop | 9aa939d7a0d26462dc56c5e4be641128551b54db | [
"Apache-2.0"
] | null | null | null | from typing import Tuple, Iterator
from aiokafka import TopicPartition
from ktop.core.models import Topic, TopicPartitions, Offsets
class TopicCoreAdapter:
def __init__(self, topic_with_partition: Tuple[str, int]):
self.__topic_with_partition = topic_with_partition
@property
def name(self):
... | 22.419355 | 84 | 0.669784 | 146 | 1,390 | 6.075342 | 0.267123 | 0.086809 | 0.101466 | 0.099211 | 0.072153 | 0.072153 | 0 | 0 | 0 | 0 | 0 | 0.010516 | 0.247482 | 1,390 | 61 | 85 | 22.786885 | 0.837476 | 0 | 0 | 0.162791 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.232558 | false | 0 | 0.069767 | 0.162791 | 0.534884 | 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 |
2d26b5688279294bac5d0c60f054d244c7d29c20 | 6,748 | py | Python | tests.py | Va1/python-smart-getenv | 180c3552505f113d5384dc97243ff9d52c472f3d | [
"Apache-2.0"
] | null | null | null | tests.py | Va1/python-smart-getenv | 180c3552505f113d5384dc97243ff9d52c472f3d | [
"Apache-2.0"
] | null | null | null | tests.py | Va1/python-smart-getenv | 180c3552505f113d5384dc97243ff9d52c472f3d | [
"Apache-2.0"
] | null | null | null | import os
import unittest
from smart_getenv import getenv
class GetenvTests(unittest.TestCase):
"""
Tests for getenv.
"""
test_var_name = '__ENV_UTILS_TEST_VAR'
def setUp(self):
self.delete_test_var()
def tearDown(self):
self.delete_test_var()
def delete_test_var(self):... | 38.56 | 118 | 0.624481 | 880 | 6,748 | 4.605682 | 0.103409 | 0.107081 | 0.157414 | 0.210955 | 0.788552 | 0.788552 | 0.762398 | 0.686405 | 0.638786 | 0.528251 | 0 | 0.003196 | 0.258151 | 6,748 | 174 | 119 | 38.781609 | 0.806432 | 0.184795 | 0 | 0.414894 | 0 | 0 | 0.141722 | 0 | 0 | 0 | 0 | 0 | 0.276596 | 1 | 0.117021 | false | 0.042553 | 0.031915 | 0 | 0.170213 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2d2a5f1dd5995f452844ad7ff6eea26d04b69530 | 19,402 | py | Python | src/spritePlanner.py | iamonur/the_legendary_pipeline | 78b997942c02c82ee9872495f10ca212ffbc11a8 | [
"Unlicense"
] | 1 | 2020-05-13T12:19:15.000Z | 2020-05-13T12:19:15.000Z | src/spritePlanner.py | iamonur/the_legendary_pipeline | 78b997942c02c82ee9872495f10ca212ffbc11a8 | [
"Unlicense"
] | 15 | 2020-05-29T11:57:38.000Z | 2021-02-07T14:35:11.000Z | src/spritePlanner.py | iamonur/the_legendary_pipeline | 78b997942c02c82ee9872495f10ca212ffbc11a8 | [
"Unlicense"
] | null | null | null | import caPolisher
#TODO: implement more game types than just Basic, which is game -1
class spritePlannerException(Exception):
pass
class dualSpritePlanner:
"""
Plans as:
- Portal at one corner
- Avatar at the opposite corner
#Best used in the game "MazeSolver"
"""
def __init__(self, ... | 29.849231 | 205 | 0.454541 | 2,304 | 19,402 | 3.736545 | 0.099392 | 0.053665 | 0.024045 | 0.02207 | 0.728308 | 0.702056 | 0.68591 | 0.662446 | 0.654896 | 0.640841 | 0 | 0.0512 | 0.422173 | 19,402 | 650 | 206 | 29.849231 | 0.716707 | 0.080765 | 0 | 0.817372 | 0 | 0 | 0.018286 | 0.001363 | 0 | 0 | 0 | 0.001538 | 0 | 1 | 0.069042 | false | 0.002227 | 0.006682 | 0.002227 | 0.142539 | 0.004454 | 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 |
2d3126227e45b82051dde83f50af9095a0ec331b | 109 | py | Python | src/impl/database/__init__.py | MaskDuck/garlic-bot | 51fd5dad6f35d2fc32181592aa2fdaff24dc511f | [
"MIT"
] | 4 | 2022-03-19T16:53:09.000Z | 2022-03-19T23:42:25.000Z | src/impl/database/__init__.py | MaskDuck/garlic-bot | 51fd5dad6f35d2fc32181592aa2fdaff24dc511f | [
"MIT"
] | 3 | 2022-03-20T11:58:30.000Z | 2022-03-26T09:16:33.000Z | src/impl/database/__init__.py | MaskDuck/garlic-bot | 51fd5dad6f35d2fc32181592aa2fdaff24dc511f | [
"MIT"
] | 2 | 2022-03-21T05:22:47.000Z | 2022-03-28T04:40:11.000Z | from .metadata import database
from .user import GarlicUser
__all__ = (
"GarlicUser",
"database",
)
| 13.625 | 30 | 0.688073 | 11 | 109 | 6.454545 | 0.636364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.211009 | 109 | 7 | 31 | 15.571429 | 0.825581 | 0 | 0 | 0 | 0 | 0 | 0.165138 | 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 |
743b49d9dbea910e3c9d166cc9de15fcd597c551 | 110 | py | Python | 3046/solution.py | bossm0n5t3r/BOJ | 03132388a0c76ef66d6b0dec2053aeca65c4aee6 | [
"MIT"
] | 2 | 2020-01-14T07:27:25.000Z | 2020-02-12T07:49:58.000Z | 3046/solution.py | bossm0n5t3r/BOJ | 03132388a0c76ef66d6b0dec2053aeca65c4aee6 | [
"MIT"
] | 1 | 2020-01-14T07:29:30.000Z | 2021-11-28T11:29:08.000Z | 3046/solution.py | bossm0n5t3r/BOJ | 03132388a0c76ef66d6b0dec2053aeca65c4aee6 | [
"MIT"
] | null | null | null | def sol():
R1, S = map(int, input().split())
print(2 * S - R1)
if __name__ == "__main__":
sol()
| 13.75 | 37 | 0.5 | 16 | 110 | 2.9375 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037975 | 0.281818 | 110 | 7 | 38 | 15.714286 | 0.556962 | 0 | 0 | 0 | 0 | 0 | 0.072727 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0 | 0 | 0.2 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7441cb860fe06dc031df28fff96af3bfab050609 | 3,056 | py | Python | src/main/python/lib/default/gtkgui/version_control/git.py | emilybache/texttest-runner | 2d5c42b8d37699a2cbcb8f19af7c271d6ad1024a | [
"MIT"
] | null | null | null | src/main/python/lib/default/gtkgui/version_control/git.py | emilybache/texttest-runner | 2d5c42b8d37699a2cbcb8f19af7c271d6ad1024a | [
"MIT"
] | null | null | null | src/main/python/lib/default/gtkgui/version_control/git.py | emilybache/texttest-runner | 2d5c42b8d37699a2cbcb8f19af7c271d6ad1024a | [
"MIT"
] | null | null | null | import plugins, vcs_independent, datetime, time, os
class GitInterface(vcs_independent.VersionControlInterface):
def __init__(self, controlDir):
self.warningStateInfo = { "M": "Modified", "D":"Deleted", "A":"Added", "R":"Renamed"}
self.errorStateInfo = { "??": "Unknown"}
self.allStateInfo =... | 38.2 | 132 | 0.61551 | 304 | 3,056 | 6.128289 | 0.427632 | 0.060118 | 0.039721 | 0.023618 | 0.031133 | 0.031133 | 0.031133 | 0.031133 | 0 | 0 | 0 | 0.011444 | 0.256545 | 3,056 | 79 | 133 | 38.683544 | 0.808539 | 0.05661 | 0 | 0.032258 | 0 | 0 | 0.067732 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.209677 | false | 0 | 0.016129 | 0.112903 | 0.580645 | 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 |
745534dcd611033dbf0e77dba3df62ad01ad0ddd | 332 | py | Python | kinopoisk_unofficial/response/films/distributions_response.py | masterWeber/kinopoisk-api-unofficial-client | 5c95e1ec6e43bd302399b63a1525ee7e61724155 | [
"MIT"
] | 2 | 2021-11-13T12:23:41.000Z | 2021-12-24T14:09:49.000Z | kinopoisk_unofficial/response/films/distributions_response.py | masterWeber/kinopoisk-api-unofficial-client | 5c95e1ec6e43bd302399b63a1525ee7e61724155 | [
"MIT"
] | 1 | 2022-03-29T19:13:24.000Z | 2022-03-30T18:57:23.000Z | kinopoisk_unofficial/response/films/distributions_response.py | masterWeber/kinopoisk-api-unofficial-client | 5c95e1ec6e43bd302399b63a1525ee7e61724155 | [
"MIT"
] | 1 | 2021-11-13T12:30:01.000Z | 2021-11-13T12:30:01.000Z | from dataclasses import dataclass, field
from typing import List
from kinopoisk_unofficial.contract.response import Response
from kinopoisk_unofficial.model.distribution import Distribution
@dataclass(frozen=True)
class DistributionsResponse(Response):
total: int
items: List[Distribution] = field(default_fa... | 25.538462 | 64 | 0.825301 | 38 | 332 | 7.131579 | 0.578947 | 0.095941 | 0.169742 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114458 | 332 | 12 | 65 | 27.666667 | 0.921769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.875 | 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 |
7456ed42da121958de4e9f19fa5bd4ec32d4c3e9 | 229 | py | Python | utils/lines/whole_line_is_a_key.py | rrhg/accounting-data-entry-helper | 81486c4b4bdff315966a7a61b2c45aa4d8e71fe8 | [
"MIT"
] | null | null | null | utils/lines/whole_line_is_a_key.py | rrhg/accounting-data-entry-helper | 81486c4b4bdff315966a7a61b2c45aa4d8e71fe8 | [
"MIT"
] | 1 | 2022-02-07T20:22:13.000Z | 2022-02-07T20:22:13.000Z | utils/lines/whole_line_is_a_key.py | rrhg/accounting-data-entry-helper | 81486c4b4bdff315966a7a61b2c45aa4d8e71fe8 | [
"MIT"
] | null | null | null |
def whole_line_is_a_key(line, vendors_dict):
#if line in vendors_dict: return True
found_keys = [key for key in vendors_dict.keys() if line == key or key in line]
if found_keys: return found_keys[0]
return False
| 32.714286 | 83 | 0.720524 | 41 | 229 | 3.780488 | 0.439024 | 0.212903 | 0.167742 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005495 | 0.20524 | 229 | 6 | 84 | 38.166667 | 0.846154 | 0.157205 | 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 |
74809fe21d97af9efef3d31dd4166628b80142ff | 748 | py | Python | examples/inputs/tests/test_handler.py | amurphy89/aws-lambda-python-examples | b062f95adb8c5f8c369f659d1275223fbcbe9203 | [
"MIT"
] | 24 | 2020-04-28T21:46:47.000Z | 2022-03-23T16:09:58.000Z | examples/inputs/tests/test_handler.py | amurphy89/aws-lambda-python-examples | b062f95adb8c5f8c369f659d1275223fbcbe9203 | [
"MIT"
] | null | null | null | examples/inputs/tests/test_handler.py | amurphy89/aws-lambda-python-examples | b062f95adb8c5f8c369f659d1275223fbcbe9203 | [
"MIT"
] | 14 | 2020-04-16T09:24:33.000Z | 2022-03-23T10:01:00.000Z | from http import HTTPStatus
import pytest
from inputs import app
# disable sleep
app.CONTEXT_SLEEP_TEST_SECONDS = 0
@pytest.fixture()
def lambda_event():
return {
'aws_lambda': 'is_cool'
}
@pytest.fixture()
def lambda_context():
return MockContext()
class MockContext:
def __init__(self):... | 20.777778 | 68 | 0.705882 | 97 | 748 | 5.134021 | 0.536082 | 0.066265 | 0.064257 | 0.088353 | 0.124498 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046589 | 0.196524 | 748 | 35 | 69 | 21.371429 | 0.78203 | 0.01738 | 0 | 0.086957 | 0 | 0 | 0.107776 | 0.047749 | 0 | 0 | 0 | 0 | 0.043478 | 1 | 0.217391 | false | 0 | 0.130435 | 0.130435 | 0.521739 | 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 |
7767825ac3a5aed14cfeaed5359e12d3796d9883 | 405 | py | Python | linq/standard/set.py | thautwarm/ActualFn.py | ffb65f92f1df0d8161d5f835f5947554f6f33d72 | [
"MIT"
] | 39 | 2017-12-26T14:34:53.000Z | 2022-02-28T11:55:54.000Z | linq/standard/set.py | thautwarm/ActualFn.py | ffb65f92f1df0d8161d5f835f5947554f6f33d72 | [
"MIT"
] | 3 | 2017-12-19T03:40:44.000Z | 2017-12-26T05:22:18.000Z | linq/standard/set.py | thautwarm/ActualFn.py | ffb65f92f1df0d8161d5f835f5947554f6f33d72 | [
"MIT"
] | 4 | 2017-12-29T06:32:54.000Z | 2020-08-13T20:47:56.000Z | from ..core.flow import *
src = ''
@extension_class(set)
def Intersects(self: set, *others):
return set.intersection(self, *[unbox_if_flow(other) for other in
others]) # List comprehension goes faster, so we do not use lazy map here.
@extension_class(set)
def Union(self: se... | 27 | 111 | 0.654321 | 57 | 405 | 4.54386 | 0.561404 | 0.108108 | 0.131274 | 0.15444 | 0.447876 | 0.277992 | 0.277992 | 0.277992 | 0.277992 | 0 | 0 | 0 | 0.232099 | 405 | 14 | 112 | 28.928571 | 0.832797 | 0.155556 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0.222222 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
7781040e63ace98913eaedb6ea5cb0319571598d | 274 | py | Python | flash/image/embedding/backbones/__init__.py | Actis92/lightning-flash | 49972268cfc0f95f1bd2b8fbf25036970cc44b59 | [
"Apache-2.0"
] | 1,457 | 2021-01-28T20:40:16.000Z | 2022-03-31T06:22:05.000Z | flash/image/embedding/backbones/__init__.py | Actis92/lightning-flash | 49972268cfc0f95f1bd2b8fbf25036970cc44b59 | [
"Apache-2.0"
] | 1,123 | 2021-01-28T20:37:56.000Z | 2022-03-31T19:34:44.000Z | flash/image/embedding/backbones/__init__.py | Actis92/lightning-flash | 49972268cfc0f95f1bd2b8fbf25036970cc44b59 | [
"Apache-2.0"
] | 170 | 2021-01-29T00:41:39.000Z | 2022-03-29T16:09:52.000Z | from flash.core.registry import FlashRegistry # noqa: F401
from flash.image.embedding.backbones.vissl_backbones import register_vissl_backbones # noqa: F401
IMAGE_EMBEDDER_BACKBONES = FlashRegistry("embedder_backbones")
register_vissl_backbones(IMAGE_EMBEDDER_BACKBONES)
| 45.666667 | 98 | 0.861314 | 33 | 274 | 6.848485 | 0.424242 | 0.185841 | 0.19469 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023715 | 0.076642 | 274 | 5 | 99 | 54.8 | 0.869565 | 0.076642 | 0 | 0 | 0 | 0 | 0.072 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
77840e794dc5b0946ffd437ef61389f76c98f1c0 | 159 | py | Python | examples/pylab_examples/ginput_demo.py | stefanv/matplotlib | 2c6c3695ef989ec86b7c43740462ef992685022f | [
"MIT",
"PSF-2.0",
"BSD-3-Clause"
] | 3 | 2015-11-16T07:22:28.000Z | 2016-11-11T17:55:14.000Z | examples/pylab_examples/ginput_demo.py | mattfoster/matplotlib | 0b47697b19b77226c633ec6a3d74a2199a153315 | [
"PSF-2.0",
"BSD-3-Clause"
] | null | null | null | examples/pylab_examples/ginput_demo.py | mattfoster/matplotlib | 0b47697b19b77226c633ec6a3d74a2199a153315 | [
"PSF-2.0",
"BSD-3-Clause"
] | null | null | null | # -*- noplot -*-
from pylab import arange, plot, sin, ginput, show
t = arange(10)
plot(t, sin(t))
print "Please click"
x = ginput(3)
print "clicked",x
show()
| 15.9 | 49 | 0.647799 | 26 | 159 | 3.961538 | 0.653846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022727 | 0.169811 | 159 | 9 | 50 | 17.666667 | 0.757576 | 0.08805 | 0 | 0 | 0 | 0 | 0.132867 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | 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 |
77aae3d28687ffeee7a41f638d6047b8b959e79d | 149 | py | Python | programmers/even_odd.py | sssunda/solve_algorithms | cb630d3b1d7f4bae0115ecb45d9a9b4f2e1eff27 | [
"MIT"
] | null | null | null | programmers/even_odd.py | sssunda/solve_algorithms | cb630d3b1d7f4bae0115ecb45d9a9b4f2e1eff27 | [
"MIT"
] | null | null | null | programmers/even_odd.py | sssunda/solve_algorithms | cb630d3b1d7f4bae0115ecb45d9a9b4f2e1eff27 | [
"MIT"
] | null | null | null | def solution(num):
if num % 2 == 0 :
return 'Even'
return 'Odd'
if __name__ == '__main__':
num = 3
print(solution(num))
| 16.555556 | 26 | 0.52349 | 19 | 149 | 3.684211 | 0.684211 | 0.314286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030303 | 0.33557 | 149 | 9 | 27 | 16.555556 | 0.676768 | 0 | 0 | 0 | 0 | 0 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.428571 | 0.142857 | 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 |
77b303677bb5631a60087e5a90300a4b6e59fb64 | 3,593 | py | Python | Files/20-Operador-logico-NOT.py | michelelozada/Logica-de-Programacao_e_Algoritmos_em_Python | 4b2275d96d8cbf724e36a55234ffdcae4f833e1b | [
"MIT"
] | null | null | null | Files/20-Operador-logico-NOT.py | michelelozada/Logica-de-Programacao_e_Algoritmos_em_Python | 4b2275d96d8cbf724e36a55234ffdcae4f833e1b | [
"MIT"
] | null | null | null | Files/20-Operador-logico-NOT.py | michelelozada/Logica-de-Programacao_e_Algoritmos_em_Python | 4b2275d96d8cbf724e36a55234ffdcae4f833e1b | [
"MIT"
] | null | null | null | '''
* Operador lógico NOT
* Repositório: Lógica de Programação e Algoritmos em Python
* GitHub: @michelelozada
Escrever um algoritmo que consulte se um usuário tem direito à gratuidade para uso do transporte coletivo (válido para
estudantes menores de 18 anos, crianças menores de 6 anos, idosos a partir de 65 a... | 57.031746 | 175 | 0.702477 | 552 | 3,593 | 4.572464 | 0.211957 | 0.09271 | 0.042789 | 0.063788 | 0.77813 | 0.708796 | 0.655309 | 0.593502 | 0.588352 | 0.571712 | 0 | 0.015152 | 0.2285 | 3,593 | 63 | 176 | 57.031746 | 0.895382 | 0.110493 | 0 | 0.16 | 0 | 0.12 | 0.643064 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.2 | 0 | 0 | 0 | 0.28 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
77b6f79a846301e12c6fd96fa7b6ba1b7b3cd57d | 284 | py | Python | backend/serializers/carrouselPromosSerializer.py | salah-walid/Ecommerce-Shopping-App | c828701b03dab74c72538943f7aac5192fa20be6 | [
"MIT"
] | 1 | 2021-12-12T12:53:14.000Z | 2021-12-12T12:53:14.000Z | backend/serializers/carrouselPromosSerializer.py | JetLightStudio/Ecommerce-Shopping-App | c828701b03dab74c72538943f7aac5192fa20be6 | [
"MIT"
] | null | null | null | backend/serializers/carrouselPromosSerializer.py | JetLightStudio/Ecommerce-Shopping-App | c828701b03dab74c72538943f7aac5192fa20be6 | [
"MIT"
] | 1 | 2021-06-08T10:22:08.000Z | 2021-06-08T10:22:08.000Z | from rest_framework import serializers
from backend.models.carrouselPromos import carrouselPromo
from .productSerializer import productSerializer
class carrouselPromoSerializer(serializers.ModelSerializer):
class Meta:
model = carrouselPromo
fields = ('__all__') | 31.555556 | 60 | 0.799296 | 25 | 284 | 8.88 | 0.68 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151408 | 284 | 9 | 61 | 31.555556 | 0.921162 | 0 | 0 | 0 | 0 | 0 | 0.024561 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.714286 | 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 |
77b905ad3100843650aa291824a9f96bcae67bb3 | 3,114 | py | Python | libsrc/wio_terminal_rtl/rpc/ble/bond.py | t-ikegami/WioTerminal-CircuitPython | efbdc2e13ad969fe009d88f7ec4b836ca61ae973 | [
"MIT"
] | null | null | null | libsrc/wio_terminal_rtl/rpc/ble/bond.py | t-ikegami/WioTerminal-CircuitPython | efbdc2e13ad969fe009d88f7ec4b836ca61ae973 | [
"MIT"
] | 1 | 2022-01-19T00:16:02.000Z | 2022-01-26T03:43:34.000Z | libsrc/wio_terminal_rtl/rpc/ble/bond.py | t-ikegami/WioTerminal-CircuitPython | efbdc2e13ad969fe009d88f7ec4b836ca61ae973 | [
"MIT"
] | null | null | null | from .. import MTYPE_INVOKE, perform_request
from ...Codec import Codec
# rpc_le_bond_set_param(RPC_T_LE_BOND_PARAM_TYPE param, in binary value) -> RPC_T_GAP_CAUSE
def set_param(param, value) :
codec = Codec(4, 1, MTYPE_INVOKE, "II{}", "I")
return perform_request(codec, param, value)
# rpc_le_bond_get_param(R... | 42.081081 | 113 | 0.748876 | 538 | 3,114 | 3.89777 | 0.144981 | 0.06867 | 0.066762 | 0.166905 | 0.622794 | 0.533143 | 0.47258 | 0.355269 | 0.30329 | 0.279924 | 0 | 0.019023 | 0.139049 | 3,114 | 73 | 114 | 42.657534 | 0.763148 | 0.373475 | 0 | 0.159091 | 0 | 0 | 0.022222 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.318182 | false | 0.068182 | 0.045455 | 0 | 0.681818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
77cf1ac357e113b22723ff55eb99c468c67e706b | 342 | py | Python | edudiant/mysite/app_1/models.py | aery06/edudiant | 2125913a6dc48533c1838d44c3b8d4430e222c22 | [
"MIT"
] | null | null | null | edudiant/mysite/app_1/models.py | aery06/edudiant | 2125913a6dc48533c1838d44c3b8d4430e222c22 | [
"MIT"
] | null | null | null | edudiant/mysite/app_1/models.py | aery06/edudiant | 2125913a6dc48533c1838d44c3b8d4430e222c22 | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
from django.db import models
# Create your models here.
class user_info(models.Model):
user_id = models.IntegerField();
user_name = models.CharField(max_length = 100);
user_interest = models.CharField(max_length= 100);
def __str__(self):
return sel... | 22.8 | 54 | 0.704678 | 44 | 342 | 5.113636 | 0.613636 | 0.071111 | 0.16 | 0.213333 | 0.24 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022222 | 0.210526 | 342 | 15 | 55 | 22.8 | 0.811111 | 0.070175 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0.125 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
77e4e05c57da1a819503a8e5754a1f796d4e5402 | 7,498 | py | Python | src/tests/test_services.py | johyy/lukuvinkkikirjasto | 14d1670b760270bcaba1d4d8c12d438c25dd6e8c | [
"MIT"
] | null | null | null | src/tests/test_services.py | johyy/lukuvinkkikirjasto | 14d1670b760270bcaba1d4d8c12d438c25dd6e8c | [
"MIT"
] | null | null | null | src/tests/test_services.py | johyy/lukuvinkkikirjasto | 14d1670b760270bcaba1d4d8c12d438c25dd6e8c | [
"MIT"
] | 3 | 2022-03-09T17:32:18.000Z | 2022-03-18T11:28:29.000Z |
import unittest
from unittest.mock import Mock, ANY, MagicMock
from werkzeug.security import generate_password_hash
from services.user_service import UserService
from services.recommendation_service import RecommendationService
from entities.user import UserAccount
from create_application import create_app
fro... | 47.757962 | 209 | 0.713524 | 921 | 7,498 | 5.490771 | 0.163952 | 0.040142 | 0.060115 | 0.071979 | 0.6316 | 0.520269 | 0.444928 | 0.339727 | 0.31402 | 0.278821 | 0 | 0.018748 | 0.181915 | 7,498 | 156 | 210 | 48.064103 | 0.805673 | 0.025473 | 0 | 0.150442 | 1 | 0 | 0.132633 | 0 | 0 | 0 | 0 | 0 | 0.256637 | 1 | 0.274336 | false | 0.079646 | 0.070796 | 0 | 0.362832 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
77f4350e8db1c6b6bb1f6925535a20d4eece977c | 2,157 | py | Python | RLBotPack/sideswipe/vec.py | L0laapk3/RLBotPack | f54038475d2a57428f3784560755f96bfcf8015f | [
"MIT"
] | 13 | 2019-05-25T20:25:51.000Z | 2022-03-19T13:36:23.000Z | RLBotPack/sideswipe/vec.py | L0laapk3/RLBotPack | f54038475d2a57428f3784560755f96bfcf8015f | [
"MIT"
] | 53 | 2019-06-07T13:31:59.000Z | 2022-03-28T22:53:47.000Z | RLBotPack/sideswipe/vec.py | L0laapk3/RLBotPack | f54038475d2a57428f3784560755f96bfcf8015f | [
"MIT"
] | 78 | 2019-06-30T08:42:13.000Z | 2022-03-23T20:11:42.000Z | import math
import random
from rlbot.utils.game_state_util import Vector3
class Vec3:
def __init__(self, x: float or 'Vec3'=0.0, y: float=0.0, z: float=0.0):
if hasattr(x, 'x'):
# We have been given a vector. Copy it
self.x = float(x.x)
self.y = float(x.y) if hasattr(x... | 28.76 | 84 | 0.541956 | 308 | 2,157 | 3.665584 | 0.194805 | 0.048716 | 0.042516 | 0.03543 | 0.405669 | 0.328609 | 0.288751 | 0.288751 | 0.25155 | 0.25155 | 0 | 0.027851 | 0.300881 | 2,157 | 74 | 85 | 29.148649 | 0.720822 | 0.01669 | 0 | 0.09434 | 0 | 0 | 0.028787 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.339623 | false | 0 | 0.056604 | 0.301887 | 0.735849 | 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 |
77f43a6a55efa2a143c99f771384ec235b501c87 | 955 | py | Python | products/migrations/0004_auto_20210426_1327.py | Gregory4321/cooks_finest | a7980ede050882ded5471d1cdb0dab216256a12a | [
"PostgreSQL"
] | null | null | null | products/migrations/0004_auto_20210426_1327.py | Gregory4321/cooks_finest | a7980ede050882ded5471d1cdb0dab216256a12a | [
"PostgreSQL"
] | null | null | null | products/migrations/0004_auto_20210426_1327.py | Gregory4321/cooks_finest | a7980ede050882ded5471d1cdb0dab216256a12a | [
"PostgreSQL"
] | 1 | 2021-04-30T10:53:30.000Z | 2021-04-30T10:53:30.000Z | # Generated by Django 3.1.7 on 2021-04-26 13:27
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('products', '0003_product_has_sizes'),
]
operations = [
migrations.AlterField(
model_name='category',
name='friendly_... | 28.088235 | 75 | 0.566492 | 94 | 955 | 5.617021 | 0.5 | 0.151515 | 0.189394 | 0.219697 | 0.475379 | 0.42803 | 0.352273 | 0.181818 | 0.181818 | 0 | 0 | 0.043609 | 0.303665 | 955 | 33 | 76 | 28.939394 | 0.750376 | 0.04712 | 0 | 0.481481 | 1 | 0 | 0.098018 | 0.024229 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.037037 | 0 | 0.148148 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7ac80fecfcd9f566be3a5a8f12be7046fa677ba6 | 13,067 | py | Python | tests/test_events.py | bachya/aioridwell | 2eba18727ec7ce3ff4e0b6a1317aa0e6afdd05a6 | [
"MIT"
] | 2 | 2021-12-20T20:21:34.000Z | 2021-12-20T20:21:42.000Z | tests/test_events.py | bachya/aioridwell | 2eba18727ec7ce3ff4e0b6a1317aa0e6afdd05a6 | [
"MIT"
] | 20 | 2021-10-12T21:10:33.000Z | 2022-03-20T14:59:25.000Z | tests/test_events.py | bachya/aioridwell | 2eba18727ec7ce3ff4e0b6a1317aa0e6afdd05a6 | [
"MIT"
] | null | null | null | """Define tests for the client."""
from datetime import date
import logging
import aiohttp
from freezegun import freeze_time
import pytest
from aioridwell import async_get_client
from aioridwell.errors import RidwellError
from aioridwell.model import EventState, PickupCategory
@pytest.mark.asyncio
async def test_ge... | 32.026961 | 95 | 0.647279 | 1,420 | 13,067 | 5.73169 | 0.109859 | 0.066347 | 0.044723 | 0.053692 | 0.852562 | 0.812999 | 0.723922 | 0.615678 | 0.557808 | 0.528198 | 0 | 0.025784 | 0.246116 | 13,067 | 407 | 96 | 32.105651 | 0.800426 | 0.002143 | 0 | 0.677326 | 0 | 0 | 0.094749 | 0.003796 | 0 | 0 | 0 | 0 | 0.244186 | 1 | 0 | false | 0.017442 | 0.023256 | 0 | 0.023256 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7adb7d65ccf47a60bc47b17d103fa7ff5648c345 | 167 | py | Python | warn/warn.py | dhimaser/spam | f240cb2744d37f15b6c22cd0445f1054b8603f53 | [
"Apache-2.0"
] | 92 | 2020-09-13T13:58:21.000Z | 2022-03-29T18:44:17.000Z | warn/warn.py | dhimaser/spam | f240cb2744d37f15b6c22cd0445f1054b8603f53 | [
"Apache-2.0"
] | 2 | 2020-12-18T15:12:25.000Z | 2022-01-23T12:11:51.000Z | warn/warn.py | dhimaser/spam | f240cb2744d37f15b6c22cd0445f1054b8603f53 | [
"Apache-2.0"
] | 39 | 2020-09-08T09:55:56.000Z | 2021-12-29T04:57:34.000Z | kun='\033[1;91m'
kan='\033[1;92m'
ken='\033[1;96m'
kon='\033[1;95m'
kin='\033[1;94m'
anj='\033[1;90m'
im='\033[1;97m'
tot='\x1b[105m\x1b[37;1m'
sop='\x1b[0m'
| 8.789474 | 25 | 0.562874 | 37 | 167 | 2.540541 | 0.621622 | 0.297872 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.348993 | 0.107784 | 167 | 18 | 26 | 9.277778 | 0.281879 | 0 | 0 | 0 | 0 | 0 | 0.578313 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7ae2aff0129e288c7c30bb02064a26e3e21f48f4 | 112 | py | Python | count.py | shellscript-magazine/raspi_article | 80fba51c8a2ab3eda14c4d9237570126066499c6 | [
"MIT"
] | null | null | null | count.py | shellscript-magazine/raspi_article | 80fba51c8a2ab3eda14c4d9237570126066499c6 | [
"MIT"
] | null | null | null | count.py | shellscript-magazine/raspi_article | 80fba51c8a2ab3eda14c4d9237570126066499c6 | [
"MIT"
] | null | null | null | from ssegled import LED7SEG
import time
led = LED7SEG()
for i in range(10):
led.print(i)
time.sleep(1) | 14 | 27 | 0.678571 | 19 | 112 | 4 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056818 | 0.214286 | 112 | 8 | 28 | 14 | 0.806818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
bb28d21b1251724b2c0f9b99290ced494516cc6b | 10,860 | py | Python | data/ais.py | mdda/2014-07_Singapore-Maritime-Hackathon | 0629f78f4214b5968c902ed2f3f98d872e6be998 | [
"MIT"
] | 1 | 2020-05-28T03:23:34.000Z | 2020-05-28T03:23:34.000Z | data/ais.py | mdda/2014-07_Singapore-Maritime-Hackathon | 0629f78f4214b5968c902ed2f3f98d872e6be998 | [
"MIT"
] | null | null | null | data/ais.py | mdda/2014-07_Singapore-Maritime-Hackathon | 0629f78f4214b5968c902ed2f3f98d872e6be998 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
import sqlite3
import sys
import datetime, time
import re
import json
#db_file = "ports.db"
db_file = "/home/andrewsm/sketchpad/redcatlabs/ports/db/ports.db"
if len(sys.argv)<2:
print """Usage:
python ais.py {current}
"""
exit(1)
cmd = sys.argv[1].lower()
# http://w... | 35.606557 | 246 | 0.677348 | 1,723 | 10,860 | 4.188624 | 0.330238 | 0.024664 | 0.02411 | 0.016627 | 0.224747 | 0.20036 | 0.177636 | 0.171262 | 0.164334 | 0.164334 | 0 | 0.395579 | 0.154328 | 10,860 | 304 | 247 | 35.723684 | 0.390244 | 0.143831 | 0 | 0.206704 | 0 | 0.039106 | 0.130709 | 0.028009 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.039106 | null | null | 0.111732 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bb48e1b4129738f88b88e974da89ed3c6bdbc208 | 281 | py | Python | wingedsheep/carcassonne/objects/terrain_type.py | SuryaVikram/CarcassonneMaster | cc0201638dfea05b254833097329729e9b8a410c | [
"MIT"
] | 11 | 2020-05-19T17:29:18.000Z | 2022-03-24T06:22:50.000Z | wingedsheep/carcassonne/objects/terrain_type.py | SuryaVikram/CarcassonneMaster | cc0201638dfea05b254833097329729e9b8a410c | [
"MIT"
] | 6 | 2020-05-18T09:24:26.000Z | 2022-03-12T00:30:21.000Z | wingedsheep/carcassonne/objects/terrain_type.py | SuryaVikram/CarcassonneMaster | cc0201638dfea05b254833097329729e9b8a410c | [
"MIT"
] | 5 | 2021-09-16T11:53:26.000Z | 2022-03-30T12:08:56.000Z | from enum import Enum
class TerrainType(Enum):
CITY = "city"
GRASS = "grass"
ROAD = "road"
CHAPEL = "chapel"
FLOWERS = "flowers"
UNPLAYABLE = "unplayable"
def to_json(self):
return self.value
def __str__(self):
return self.value
| 16.529412 | 29 | 0.597865 | 32 | 281 | 5.09375 | 0.5625 | 0.122699 | 0.171779 | 0.233129 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.298932 | 281 | 16 | 30 | 17.5625 | 0.827411 | 0 | 0 | 0.166667 | 0 | 0 | 0.128114 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.083333 | 0.166667 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
bb4d013c49ef8d5f53f4e922a1d55f2097723f03 | 358 | py | Python | models/vision/detection/awsdet/datasets/__init__.py | kevinyang8/deep-learning-models | 271ddfa106c99bc131023e8e159c1b8cc903fe0e | [
"Apache-2.0",
"MIT"
] | 129 | 2018-07-21T11:51:16.000Z | 2022-03-09T07:15:09.000Z | models/vision/detection/awsdet/datasets/__init__.py | kevinyang8/deep-learning-models | 271ddfa106c99bc131023e8e159c1b8cc903fe0e | [
"Apache-2.0",
"MIT"
] | 20 | 2018-09-13T23:19:56.000Z | 2021-05-22T02:12:53.000Z | models/vision/detection/awsdet/datasets/__init__.py | kevinyang8/deep-learning-models | 271ddfa106c99bc131023e8e159c1b8cc903fe0e | [
"Apache-2.0",
"MIT"
] | 74 | 2018-07-23T12:14:01.000Z | 2022-01-21T05:17:13.000Z | # Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
# -*- coding: utf-8 -*-
from .builder import build_dataset
from .coco import CocoDataset
from .registry import DATASETS
from .loader.build_loader import build_dataloader
__all__ = ['DATASETS', 'build_dataset... | 35.8 | 74 | 0.77095 | 47 | 358 | 5.680851 | 0.659574 | 0.082397 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022152 | 0.117318 | 358 | 9 | 75 | 39.777778 | 0.822785 | 0.360335 | 0 | 0 | 0 | 0 | 0.213333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.8 | 0 | 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 | 1 | 0 | 1 | 0 | 0 | 3 |
bb523094c34ecd2a7e22e0b998a55b455b36490c | 258 | py | Python | xaddon/api.py | wy2136/xaddon | b75eb7c3e9ca0631937d1ff954a766a0cd25c36a | [
"BSD-2-Clause"
] | 6 | 2019-08-10T03:03:32.000Z | 2020-03-15T16:09:41.000Z | xaddon/api.py | wy2136/xaddon | b75eb7c3e9ca0631937d1ff954a766a0cd25c36a | [
"BSD-2-Clause"
] | null | null | null | xaddon/api.py | wy2136/xaddon | b75eb7c3e9ca0631937d1ff954a766a0cd25c36a | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
# Wenchang Yang (wenchang@princeton.edu)
# Thu Aug 8 11:18:41 EDT 2019
from .xlib.detrend import detrend
from .xlib.find_peaks import find_peaks
from .xlib.linregress import linregress
from .xlib.power_spectrum import power_spectrum
| 25.8 | 47 | 0.794574 | 41 | 258 | 4.902439 | 0.609756 | 0.159204 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048673 | 0.124031 | 258 | 9 | 48 | 28.666667 | 0.840708 | 0.341085 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
bb586addf9c1382838b991bd4e6a39aacbb40dca | 174 | py | Python | Py exercises/Factorial.py | arvindkarir/python-pandas-code | fb3b68f07f0438cd0ef6d7ad669ce78650d884a8 | [
"MIT"
] | null | null | null | Py exercises/Factorial.py | arvindkarir/python-pandas-code | fb3b68f07f0438cd0ef6d7ad669ce78650d884a8 | [
"MIT"
] | null | null | null | Py exercises/Factorial.py | arvindkarir/python-pandas-code | fb3b68f07f0438cd0ef6d7ad669ce78650d884a8 | [
"MIT"
] | null | null | null | # Factorial, works!!
def fact(x):
if x <=0:
print 'Answer not found'
return
ans = 1
while x > 1:
ans = ans*x
x -= 1
return ans
print ans
| 14.5 | 29 | 0.505747 | 27 | 174 | 3.259259 | 0.555556 | 0.204545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037383 | 0.385057 | 174 | 11 | 30 | 15.818182 | 0.785047 | 0.103448 | 0 | 0 | 0 | 0 | 0.111888 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.2 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bb5ac6217d45a543fab6953a03f1cc363274ceae | 618 | py | Python | src/Python/801-900/896.MonotonicArray.py | Peefy/PeefyLeetCode | 92156e4b48ba19e3f02e4286b9f733e9769a1dee | [
"Apache-2.0"
] | 2 | 2018-05-03T07:50:03.000Z | 2018-06-17T04:32:13.000Z | src/Python/801-900/896.MonotonicArray.py | Peefy/PeefyLeetCode | 92156e4b48ba19e3f02e4286b9f733e9769a1dee | [
"Apache-2.0"
] | null | null | null | src/Python/801-900/896.MonotonicArray.py | Peefy/PeefyLeetCode | 92156e4b48ba19e3f02e4286b9f733e9769a1dee | [
"Apache-2.0"
] | 3 | 2018-11-09T14:18:11.000Z | 2021-11-17T15:23:52.000Z |
class Solution:
def isMonotonic(self, A):
"""
:type A: List[int]
:rtype: bool
"""
flag = []
for i in range(len(A) - 1):
if A[i + 1] != A[i]:
flag.append(A[i + 1] > A[i])
for i in range(len(flag) - 1):
if flag[i] != flag... | 23.769231 | 44 | 0.487055 | 84 | 618 | 3.488095 | 0.392857 | 0.027304 | 0.327645 | 0.255973 | 0.307167 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049261 | 0.343042 | 618 | 25 | 45 | 24.72 | 0.672414 | 0.050162 | 0 | 0 | 0 | 0 | 0.01444 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0.055556 | 0 | 0 | 0.222222 | 0.222222 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
247131dcbab739af8a5cf0254b932326df70f758 | 334 | py | Python | weather/models.py | CodeEnvironment/django-rest-framework-deploy-heroku | c6ffb20961c193b0f4dc1289de904b5d6750f335 | [
"MIT"
] | 3 | 2021-04-05T14:02:44.000Z | 2022-01-25T07:50:20.000Z | weather/models.py | CodeEnvironment/django-rest-framework-deploy-aws | d9cf1d016e22b9b5697c769bd094776d25a3f90b | [
"MIT"
] | null | null | null | weather/models.py | CodeEnvironment/django-rest-framework-deploy-aws | d9cf1d016e22b9b5697c769bd094776d25a3f90b | [
"MIT"
] | 1 | 2022-01-23T15:09:59.000Z | 2022-01-23T15:09:59.000Z | from django.db import models
class Forecast(models.Model):
timestamp = models.DateTimeField(auto_now_add=True)
temperatuer = models.DecimalField(max_digits=12,decimal_places=2)
description = models.CharField(max_length=150)
city = models.CharField(max_length=150)
def __str__(self):
return "{}".format(s... | 30.363636 | 67 | 0.772455 | 44 | 334 | 5.636364 | 0.727273 | 0.120968 | 0.145161 | 0.193548 | 0.217742 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030405 | 0.113772 | 334 | 11 | 68 | 30.363636 | 0.807432 | 0 | 0 | 0 | 0 | 0 | 0.00597 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0.125 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
24774199b4c2c32fd399dcb6aac7ec16072375e9 | 146 | py | Python | longclaw/longclawsettings/apps.py | Kuntal-KK/longclaw | a3493a62937689a15236b2943d19bcf4ec058cd9 | [
"MIT"
] | 1 | 2021-08-14T13:46:32.000Z | 2021-08-14T13:46:32.000Z | longclaw/longclawsettings/apps.py | Kuntal-KK/longclaw | a3493a62937689a15236b2943d19bcf4ec058cd9 | [
"MIT"
] | null | null | null | longclaw/longclawsettings/apps.py | Kuntal-KK/longclaw | a3493a62937689a15236b2943d19bcf4ec058cd9 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class LongclawSettingsConfig(AppConfig):
name = 'longclawsettings'
verbose_name = 'Longclaw Settings'
| 20.857143 | 40 | 0.773973 | 14 | 146 | 8 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157534 | 146 | 6 | 41 | 24.333333 | 0.910569 | 0 | 0 | 0 | 0 | 0 | 0.226027 | 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 |
2484c0c9ef1c8ee78c0d2c8db1b7a30c1676fa6c | 875 | py | Python | convert.py | gdaPythonProjects/ssidCliTool | 20784bb16564c73ffa5348c336dbbd52ef2ad6bd | [
"MIT"
] | null | null | null | convert.py | gdaPythonProjects/ssidCliTool | 20784bb16564c73ffa5348c336dbbd52ef2ad6bd | [
"MIT"
] | null | null | null | convert.py | gdaPythonProjects/ssidCliTool | 20784bb16564c73ffa5348c336dbbd52ef2ad6bd | [
"MIT"
] | null | null | null | import json
class Convert:
def __init__(self):
pass
def JsonToDict(self,data):
return json.loads(data)
def JsonListOfWiFiToListOfWiFiNames(self,jsonData):
dictionary = self.JsonToDict(jsonData)
listOfNames = []
i=0
while i < len(dictionary["results"]):
listOfNames.append((dictiona... | 32.407407 | 247 | 0.660571 | 93 | 875 | 6.172043 | 0.354839 | 0.236934 | 0.188153 | 0.182927 | 0.250871 | 0.250871 | 0.097561 | 0 | 0 | 0 | 0 | 0.005495 | 0.168 | 875 | 27 | 248 | 32.407407 | 0.782967 | 0 | 0 | 0.347826 | 0 | 0 | 0.112941 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0.043478 | 0.043478 | 0.043478 | 0.391304 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
24888c1cdc2b881d8a9c7e3ed9ef4210bd872f97 | 1,247 | py | Python | Class_RetailItem.py | bilakos26/Python-Test-Projects | 54f79bac08dd6a7f49485444c1944ba8de6376e2 | [
"Apache-2.0"
] | null | null | null | Class_RetailItem.py | bilakos26/Python-Test-Projects | 54f79bac08dd6a7f49485444c1944ba8de6376e2 | [
"Apache-2.0"
] | null | null | null | Class_RetailItem.py | bilakos26/Python-Test-Projects | 54f79bac08dd6a7f49485444c1944ba8de6376e2 | [
"Apache-2.0"
] | null | null | null | class RetailItem:
def __init__(self, description, storage_quantity, price):
self.__description = description
self.__storage_quantity = storage_quantity
self.__price = price
def set_description(self, description):
self.__description = description
def set_storage_quanti... | 21.5 | 61 | 0.611067 | 132 | 1,247 | 5.363636 | 0.265152 | 0.233051 | 0.134181 | 0.084746 | 0.144068 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027523 | 0.300722 | 1,247 | 58 | 62 | 21.5 | 0.784404 | 0 | 0 | 0.176471 | 0 | 0 | 0.016696 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.294118 | false | 0 | 0 | 0.117647 | 0.441176 | 0.029412 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
2493ac4dd885f7a585c9c04ba88350ab1b48fa84 | 228 | py | Python | output/models/nist_data/list_pkg/long/schema_instance/nistschema_sv_iv_list_long_pattern_5_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/list_pkg/long/schema_instance/nistschema_sv_iv_list_long_pattern_5_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/list_pkg/long/schema_instance/nistschema_sv_iv_list_long_pattern_5_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from output.models.nist_data.list_pkg.long.schema_instance.nistschema_sv_iv_list_long_pattern_5_xsd.nistschema_sv_iv_list_long_pattern_5 import NistschemaSvIvListLongPattern5
__all__ = [
"NistschemaSvIvListLongPattern5",
]
| 38 | 174 | 0.881579 | 29 | 228 | 6.241379 | 0.655172 | 0.132597 | 0.154696 | 0.198895 | 0.331492 | 0.331492 | 0.331492 | 0 | 0 | 0 | 0 | 0.018692 | 0.061404 | 228 | 5 | 175 | 45.6 | 0.827103 | 0 | 0 | 0 | 0 | 0 | 0.131579 | 0.131579 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 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 |
249ea63f2d008f162b8dcfdcc22835d5d0e95ce9 | 1,070 | py | Python | quantbob/trainers/pl_trainer.py | AxlAlm/QuantBob | ff00cbe866478040365d8fa075bf51e1c9c2e906 | [
"MIT"
] | null | null | null | quantbob/trainers/pl_trainer.py | AxlAlm/QuantBob | ff00cbe866478040365d8fa075bf51e1c9c2e906 | [
"MIT"
] | null | null | null | quantbob/trainers/pl_trainer.py | AxlAlm/QuantBob | ff00cbe866478040365d8fa075bf51e1c9c2e906 | [
"MIT"
] | null | null | null | import pytorch_lightning as pl
from quantbob.data.datamodule import DataModule
class PytorchLightningTrainer:
def ___init__(self, *args, **kwargs):
self._trainer = pl.Trainer(*args, **kwargs)
def _parse_args(*args, **kwargs):
pass
# enable_checkpointing=False,
# max_epochs=10... | 32.424242 | 86 | 0.593458 | 112 | 1,070 | 5.464286 | 0.589286 | 0.04902 | 0.053922 | 0.098039 | 0.153595 | 0.153595 | 0.107843 | 0.107843 | 0 | 0 | 0 | 0.010554 | 0.291589 | 1,070 | 32 | 87 | 33.4375 | 0.796834 | 0.360748 | 0 | 0 | 0 | 0 | 0.019432 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0.076923 | 0.153846 | 0 | 0.538462 | 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 |
249f6bfeb6911e6550a766c9d9cbf3a2a8d3f053 | 252 | py | Python | Taxi/main/admin.py | diegomtzm/TaxiUnico | 3fedb49b313bdbd76a449695d7644b6fc0cd0d2b | [
"Apache-2.0"
] | null | null | null | Taxi/main/admin.py | diegomtzm/TaxiUnico | 3fedb49b313bdbd76a449695d7644b6fc0cd0d2b | [
"Apache-2.0"
] | null | null | null | Taxi/main/admin.py | diegomtzm/TaxiUnico | 3fedb49b313bdbd76a449695d7644b6fc0cd0d2b | [
"Apache-2.0"
] | null | null | null | from django.contrib import admin
from .models import Viaje
from .models import Taxi
from .models import Boleto
from .models import Encuesta
admin.site.register(Viaje)
admin.site.register(Taxi)
admin.site.register(Boleto)
admin.site.register(Encuesta) | 22.909091 | 32 | 0.81746 | 37 | 252 | 5.567568 | 0.324324 | 0.194175 | 0.31068 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.099206 | 252 | 11 | 33 | 22.909091 | 0.907489 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.555556 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
24b071150ccecd7d74a60ea3075a188aef8f1488 | 397 | py | Python | portfolio/extra/render.py | MachineThing/Portfolio-SiteV2 | 5ffff652e0d19d49585cadb0df4521933df4d41c | [
"MIT"
] | 2 | 2021-05-29T04:52:50.000Z | 2021-07-04T15:40:27.000Z | portfolio/extra/render.py | MachineThing/Portfolio-SiteV2 | 5ffff652e0d19d49585cadb0df4521933df4d41c | [
"MIT"
] | 9 | 2021-02-13T20:19:53.000Z | 2021-07-04T15:43:57.000Z | portfolio/extra/render.py | MachineThing/Portfolio-SiteV2 | 5ffff652e0d19d49585cadb0df4521933df4d41c | [
"MIT"
] | null | null | null | from django.shortcuts import render as oldrender
from projects import models
def render(request, template_name, context={}, content_type="text/html", status=200, using=None):
context['navbars'] = models.NavBar.objects.all()
context['staticpages'] = models.StaticPage.objects.all()
rendered = oldrender(reque... | 44.111111 | 97 | 0.758186 | 49 | 397 | 6.061224 | 0.612245 | 0.10101 | 0.127946 | 0.175084 | 0.249158 | 0.249158 | 0 | 0 | 0 | 0 | 0 | 0.008646 | 0.125945 | 397 | 8 | 98 | 49.625 | 0.847262 | 0 | 0 | 0 | 0 | 0 | 0.06801 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
24b0f5c28934f899c0011747dc1f0f20a0552918 | 124 | py | Python | tests/api/data.py | technolotrix/chat | d2524a9281ba072a85de38f478e76f20a13f9135 | [
"MIT"
] | null | null | null | tests/api/data.py | technolotrix/chat | d2524a9281ba072a85de38f478e76f20a13f9135 | [
"MIT"
] | null | null | null | tests/api/data.py | technolotrix/chat | d2524a9281ba072a85de38f478e76f20a13f9135 | [
"MIT"
] | null | null | null | # Again, this would be in a config file if shared between
# test suites
BASEURL = 'https://simple-chat-asapp.herokuapp.com/' | 41.333333 | 57 | 0.75 | 20 | 124 | 4.65 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137097 | 124 | 3 | 58 | 41.333333 | 0.869159 | 0.540323 | 0 | 0 | 0 | 0 | 0.727273 | 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 |
24b358505f97b3fb8206238fe0bc899f9f485dcf | 357 | py | Python | initiatives/models.py | Andreaf2395/OpenID-Provider | cdedd42cc49e6f03e3b2570c03fb1f4a2c83be34 | [
"MIT"
] | null | null | null | initiatives/models.py | Andreaf2395/OpenID-Provider | cdedd42cc49e6f03e3b2570c03fb1f4a2c83be34 | [
"MIT"
] | 4 | 2021-03-19T08:17:59.000Z | 2021-06-10T19:34:36.000Z | initiatives/models.py | Andreaf2395/OpenID-Provider | cdedd42cc49e6f03e3b2570c03fb1f4a2c83be34 | [
"MIT"
] | null | null | null | from django.db import models
# Create your models here.
class ORMInitiative(models.Model):
init_id = models.AutoField(primary_key=True)
acronym = models.CharField(max_length=10, null=True)
full_name = models.CharField(max_length=30, null=True)
def __str__(self):
return "{} - {}".format(str(... | 29.75 | 71 | 0.705882 | 49 | 357 | 4.938776 | 0.632653 | 0.086777 | 0.14876 | 0.198347 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013423 | 0.165266 | 357 | 11 | 72 | 32.454545 | 0.798658 | 0.067227 | 0 | 0 | 0 | 0 | 0.021212 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0.142857 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
24d5c47f627165f3984d0a4db707f7563f845b15 | 430 | py | Python | daemons/websocketsclass/core/__init__.py | procool/mygw | f35b72b5915d314e883dcde45c3c33ff26f173df | [
"BSD-2-Clause"
] | null | null | null | daemons/websocketsclass/core/__init__.py | procool/mygw | f35b72b5915d314e883dcde45c3c33ff26f173df | [
"BSD-2-Clause"
] | null | null | null | daemons/websocketsclass/core/__init__.py | procool/mygw | f35b72b5915d314e883dcde45c3c33ff26f173df | [
"BSD-2-Clause"
] | null | null | null | import copy
import time
import logging
import tornado.web
from handlers.root import rootHandler
from handlers.messages import messagesHandler
globals = {
}
application = tornado.web.Application([
(r"/", rootHandler, globals),
(r"/messages/", messagesHandler, globals),
])
class coreEngine(object):
... | 11.315789 | 46 | 0.686047 | 47 | 430 | 6.148936 | 0.531915 | 0.069204 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.216279 | 430 | 37 | 47 | 11.621622 | 0.857567 | 0 | 0 | 0 | 0 | 0 | 0.025943 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0.058824 | 0.352941 | 0 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
24f093cf57e126f33ce1c0fcfdbb608296cec9f8 | 212 | py | Python | tests/unittests/test_data_converter.py | thingdoer-io/temporal-python-sdk | 91b7ba1253e6af211682082e7e09443f6bdaeedc | [
"MIT"
] | 88 | 2020-11-21T18:34:51.000Z | 2022-03-14T11:11:22.000Z | tests/unittests/test_data_converter.py | thingdoer-io/temporal-python-sdk | 91b7ba1253e6af211682082e7e09443f6bdaeedc | [
"MIT"
] | 14 | 2020-12-27T08:21:05.000Z | 2022-03-04T06:19:16.000Z | tests/unittests/test_data_converter.py | thingdoer-io/temporal-python-sdk | 91b7ba1253e6af211682082e7e09443f6bdaeedc | [
"MIT"
] | 23 | 2020-11-25T12:38:48.000Z | 2022-02-27T12:51:05.000Z | from temporal.api.common.v1 import Payloads
from temporal.converter import DefaultDataConverter
def test_no_payloads():
converter = DefaultDataConverter()
assert converter.from_payloads(None) == [None]
| 26.5 | 51 | 0.792453 | 24 | 212 | 6.875 | 0.583333 | 0.145455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005405 | 0.127358 | 212 | 7 | 52 | 30.285714 | 0.886486 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 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 | 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 |
24f403b2970ade3646f5515ca0f621f989dc6841 | 203 | py | Python | 4_Tran_Thi_Nhu_Huong/bai 1.2.py | huong-rose/student-practices | 3d0e500a1864665b63247e3b6c96c297c55fceb8 | [
"MIT"
] | null | null | null | 4_Tran_Thi_Nhu_Huong/bai 1.2.py | huong-rose/student-practices | 3d0e500a1864665b63247e3b6c96c297c55fceb8 | [
"MIT"
] | null | null | null | 4_Tran_Thi_Nhu_Huong/bai 1.2.py | huong-rose/student-practices | 3d0e500a1864665b63247e3b6c96c297c55fceb8 | [
"MIT"
] | 8 | 2020-07-10T14:13:54.000Z | 2020-08-03T08:17:50.000Z | """Write a program that asks the user for their name and greets them with their name."""
print("please input your name")
your_name = input("what is your name?")
print("welcome to my world " +your_name)
| 33.833333 | 88 | 0.729064 | 35 | 203 | 4.171429 | 0.685714 | 0.219178 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162562 | 203 | 5 | 89 | 40.6 | 0.858824 | 0.403941 | 0 | 0 | 0 | 0 | 0.521739 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.666667 | 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 |
24ffb5f6c9f0f81651877ce0de75ca06adeeaeb0 | 620 | py | Python | schemas/history.py | world3/focusplus-api | 4d9211983095689f6f0f72c676d1d95edfe14819 | [
"Apache-2.0"
] | null | null | null | schemas/history.py | world3/focusplus-api | 4d9211983095689f6f0f72c676d1d95edfe14819 | [
"Apache-2.0"
] | null | null | null | schemas/history.py | world3/focusplus-api | 4d9211983095689f6f0f72c676d1d95edfe14819 | [
"Apache-2.0"
] | null | null | null | from marshmallow import Schema, fields, validate
class HistorySchema(Schema):
class Meta:
ordered = True
id = fields.Integer(dump_only=True)
task_id = fields.Integer(required=True)
task_title = fields.String(required=True, validation=[validate.Length(max=128)])
type = fields.String(requir... | 36.470588 | 84 | 0.725806 | 78 | 620 | 5.705128 | 0.435897 | 0.21573 | 0.134831 | 0.161798 | 0.34382 | 0.34382 | 0.34382 | 0.34382 | 0 | 0 | 0 | 0.013308 | 0.151613 | 620 | 16 | 85 | 38.75 | 0.8327 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.923077 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
700a3269ef83292f1134ef8f03fa8df091047595 | 2,225 | py | Python | LAB4/ej_18.py | codersUP/MO-Labs | 1df2639e762893a6c5c64fdeece1940b8f0b24e0 | [
"MIT"
] | null | null | null | LAB4/ej_18.py | codersUP/MO-Labs | 1df2639e762893a6c5c64fdeece1940b8f0b24e0 | [
"MIT"
] | null | null | null | LAB4/ej_18.py | codersUP/MO-Labs | 1df2639e762893a6c5c64fdeece1940b8f0b24e0 | [
"MIT"
] | null | null | null | from scipy import optimize
import numpy as np
from matplotlib import pyplot as plt
import math
from methods import *
from pprint import pprint
def F(x):
return (4 - 2.1*x[0]**2 + 1/3*x[0]**4)*x[0]**2 + x[0]*x[1] + 4 * (x[1]**2 - 1) * x[1]**2
def g_1_plus(x):
return max(0, x - 3)
def g_2_plus(x):
return ma... | 20.990566 | 113 | 0.509663 | 405 | 2,225 | 2.634568 | 0.180247 | 0.089972 | 0.104967 | 0.112465 | 0.388941 | 0.311153 | 0.281162 | 0.136832 | 0.136832 | 0.136832 | 0 | 0.076366 | 0.317303 | 2,225 | 105 | 114 | 21.190476 | 0.62607 | 0.133483 | 0 | 0.140845 | 0 | 0 | 0.010428 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.211268 | false | 0 | 0.084507 | 0.126761 | 0.507042 | 0.042254 | 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 |
7015f1f77d5c41be254ae9d5caddf0c09a11085c | 182 | py | Python | api/organisations/exceptions.py | mevinbabuc/flagsmith | 751bd6cb4a34bd2f80af5a9c547559da9c2fa010 | [
"BSD-3-Clause"
] | 1,259 | 2021-06-10T11:24:09.000Z | 2022-03-31T10:30:44.000Z | api/organisations/exceptions.py | mevinbabuc/flagsmith | 751bd6cb4a34bd2f80af5a9c547559da9c2fa010 | [
"BSD-3-Clause"
] | 392 | 2021-06-10T11:12:29.000Z | 2022-03-31T10:13:53.000Z | api/organisations/exceptions.py | mevinbabuc/flagsmith | 751bd6cb4a34bd2f80af5a9c547559da9c2fa010 | [
"BSD-3-Clause"
] | 58 | 2021-06-11T03:18:07.000Z | 2022-03-31T14:39:10.000Z | from rest_framework.exceptions import APIException
class OrganisationHasNoSubscription(APIException):
status_code = 400
default_detail = "Organisation has no subscription"
| 26 | 55 | 0.818681 | 18 | 182 | 8.111111 | 0.944444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019108 | 0.137363 | 182 | 6 | 56 | 30.333333 | 0.910828 | 0 | 0 | 0 | 0 | 0 | 0.175824 | 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 |
701d7e573c4f7fe203f024be8342ecc6eb4c1b7f | 9,353 | gyp | Python | mojo/services/public/mojo_services_public.gyp | viettrungluu-cr/mojo | 950de5bc66e00aeb1f7bdf2987f253986c0a7614 | [
"BSD-3-Clause"
] | 5 | 2019-05-24T01:25:34.000Z | 2020-04-06T05:07:01.000Z | mojo/services/public/mojo_services_public.gyp | viettrungluu-cr/mojo | 950de5bc66e00aeb1f7bdf2987f253986c0a7614 | [
"BSD-3-Clause"
] | null | null | null | mojo/services/public/mojo_services_public.gyp | viettrungluu-cr/mojo | 950de5bc66e00aeb1f7bdf2987f253986c0a7614 | [
"BSD-3-Clause"
] | 5 | 2016-12-23T04:21:10.000Z | 2020-06-18T13:52:33.000Z | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'includes': [
'../../mojo_variables.gypi',
],
'targets': [
{
'target_name': 'mojo_services_public',
'type': 'none',
'depend... | 35.029963 | 82 | 0.620336 | 904 | 9,353 | 6.040929 | 0.107301 | 0.053104 | 0.084966 | 0.100897 | 0.73796 | 0.692181 | 0.623878 | 0.579381 | 0.579381 | 0.579381 | 0 | 0.000553 | 0.226451 | 9,353 | 266 | 83 | 35.161654 | 0.75425 | 0.097295 | 0 | 0.658635 | 0 | 0 | 0.656183 | 0.554237 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 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 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7023dce6fe6184c647338afd5159887457d8d267 | 2,099 | py | Python | Season 06 - Files in Python/Episode 10 - Project - Calculator Using One Module/Prompt.py | Pythobit/Python-tutorial | b0743eaa9c237c3578131ead1b3f2c295f11b7ee | [
"MIT"
] | 3 | 2021-02-19T18:33:00.000Z | 2021-08-03T14:56:50.000Z | Season 06 - Files in Python/Episode 10 - Project - Calculator Using One Module/Prompt.py | barawalojas/Python-tutorial | 3f4b2b073e421888b3d62ff634658317d9abcb9b | [
"MIT"
] | 1 | 2021-07-10T14:37:57.000Z | 2021-07-20T09:51:39.000Z | Season 06 - Files in Python/Episode 10 - Project - Calculator Using One Module/Prompt.py | barawalojas/Python-tutorial | 3f4b2b073e421888b3d62ff634658317d9abcb9b | [
"MIT"
] | 1 | 2021-08-02T05:39:38.000Z | 2021-08-02T05:39:38.000Z | from addition import Addition
# You don't need to change the import statement
# now you can use Addition.add() function from the addition module like this:
# res = Addition.add(100, 150)
# the Addition.add() function takes in two parameters `num1` and `num2` and return the sum of `num1` and `num2`
# Please create and... | 59.971429 | 118 | 0.716055 | 314 | 2,099 | 4.786624 | 0.328025 | 0.051231 | 0.043912 | 0.037259 | 0.313373 | 0.300067 | 0.300067 | 0.24684 | 0.24684 | 0.24684 | 0 | 0.018409 | 0.197713 | 2,099 | 34 | 119 | 61.735294 | 0.874109 | 0.890424 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
708e95aab9a5774008087c027e06f96dc83d0aba | 870 | py | Python | sales_register/adapters/api/services/authentication/__init__.py | tamercuba/purchase-system | cfd3e4fecbd96c130f620d11491fa14979c0d996 | [
"MIT"
] | null | null | null | sales_register/adapters/api/services/authentication/__init__.py | tamercuba/purchase-system | cfd3e4fecbd96c130f620d11491fa14979c0d996 | [
"MIT"
] | 6 | 2021-05-15T21:44:19.000Z | 2021-05-23T22:20:13.000Z | sales_register/adapters/api/services/authentication/__init__.py | tamercuba/sales-register | cfd3e4fecbd96c130f620d11491fa14979c0d996 | [
"MIT"
] | null | null | null | from adapters.api import settings
from adapters.api.services.authentication.context import pwd_context
from adapters.api.services.authentication.login_service import LoginService
from adapters.api.services.authentication.user import User
from adapters.api.services.authentication.validate_token import (
ValidateToke... | 33.461538 | 75 | 0.850575 | 109 | 870 | 6.587156 | 0.376147 | 0.116992 | 0.14624 | 0.192201 | 0.206128 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090805 | 870 | 25 | 76 | 34.8 | 0.907712 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.526316 | 0.052632 | 0.736842 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.