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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3254f74c50719ea6dda87cdcda26cc3f7cdecb37 | 528 | py | Python | code/da-finnci/sanjin.py | SpellcheckerExtraordinaire/PrisonersDilemmaTournament | a818c6244490827ed1676a9e9164f130db5db594 | [
"MIT"
] | 23 | 2021-05-20T07:34:33.000Z | 2021-06-20T13:09:04.000Z | code/da-finnci/sanjin.py | SpellcheckerExtraordinaire/PrisonersDilemmaTournament | a818c6244490827ed1676a9e9164f130db5db594 | [
"MIT"
] | 19 | 2021-05-21T04:10:55.000Z | 2021-06-13T15:17:52.000Z | code/da-finnci/sanjin.py | SpellcheckerExtraordinaire/PrisonersDilemmaTournament | a818c6244490827ed1676a9e9164f130db5db594 | [
"MIT"
] | 43 | 2021-05-21T02:24:35.000Z | 2021-06-24T21:08:11.000Z | #
# AGENT
# Sanjin
#
# STRATEGY
# This agent always defects, if the opponent defected too often. Otherwise it cooperates.
#
def getGameLength(history):
return history.shape[1]
def getChoice(snitch):
return "tell truth" if snitch else "stay silent"
def strategy(history, memory):
if getGameLength(history... | 22.956522 | 89 | 0.693182 | 69 | 528 | 5.304348 | 0.565217 | 0.027322 | 0.071038 | 0.114754 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019048 | 0.204545 | 528 | 22 | 90 | 24 | 0.852381 | 0.295455 | 0 | 0 | 0 | 0 | 0.057851 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
32606e9409f50355c2b94b62036df2b106d5b33e | 2,861 | py | Python | common/functions.py | gautelinga/-BERNAISE | aa45ae5ccc323d9c61c93542cc327889cae4d0b2 | [
"MIT"
] | 15 | 2017-07-19T18:33:26.000Z | 2021-03-25T18:36:47.000Z | common/functions.py | gautelinga/-BERNAISE | aa45ae5ccc323d9c61c93542cc327889cae4d0b2 | [
"MIT"
] | 9 | 2017-05-30T16:13:08.000Z | 2017-08-25T09:09:05.000Z | common/functions.py | gautelinga/-BERNAISE | aa45ae5ccc323d9c61c93542cc327889cae4d0b2 | [
"MIT"
] | 7 | 2018-05-08T22:50:15.000Z | 2020-06-25T13:50:37.000Z | """ Some useful functions in various parts of BERNAISE. """
import dolfin as df
import ufl
__author__ = "Gaute Linga"
# Phase field chemical potential
def pf_potential(phi):
""" Phase field potential. """
return 0.25*(1.-phi**2)**2
def diff_pf_potential(phi):
""" Derivative of the phase field potential.... | 21.839695 | 77 | 0.644879 | 474 | 2,861 | 3.727848 | 0.183544 | 0.055461 | 0.040747 | 0.020374 | 0.432371 | 0.307866 | 0.293152 | 0.232032 | 0.096208 | 0.096208 | 0 | 0.032482 | 0.19294 | 2,861 | 130 | 78 | 22.007692 | 0.732785 | 0.300594 | 0 | 0.068966 | 0 | 0 | 0.005793 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.431034 | false | 0 | 0.034483 | 0.172414 | 0.896552 | 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 |
327b6bd6e559a4d87e461e05c951898b24f79d56 | 156 | py | Python | setup.py | ultrasound1372/RFXPy | 8f8ba1576739f8ef35a33b10cd2324e24f87fa37 | [
"MIT"
] | null | null | null | setup.py | ultrasound1372/RFXPy | 8f8ba1576739f8ef35a33b10cd2324e24f87fa37 | [
"MIT"
] | null | null | null | setup.py | ultrasound1372/RFXPy | 8f8ba1576739f8ef35a33b10cd2324e24f87fa37 | [
"MIT"
] | null | null | null | from setuptools import setup
from Cython.Build import cythonize
setup(
name='RFXPy',
ext_modules=cythonize("RFX.pyx"),
zip_safe=False,
) | 19.5 | 38 | 0.692308 | 20 | 156 | 5.3 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.205128 | 156 | 8 | 39 | 19.5 | 0.854839 | 0 | 0 | 0 | 0 | 0 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.285714 | 0 | 0.285714 | 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 |
3292dfc22e24a77b5404b9fc47b80fce13e8084f | 1,011 | py | Python | 01/foxdot/foxdot_song2_async.py | kuroobicode/textmusic | d452cfbe9480bdab1ba9ddf9b4cd324a83e5fd88 | [
"MIT"
] | null | null | null | 01/foxdot/foxdot_song2_async.py | kuroobicode/textmusic | d452cfbe9480bdab1ba9ddf9b4cd324a83e5fd88 | [
"MIT"
] | null | null | null | 01/foxdot/foxdot_song2_async.py | kuroobicode/textmusic | d452cfbe9480bdab1ba9ddf9b4cd324a83e5fd88 | [
"MIT"
] | null | null | null |
Clock.clear()
# controll #######################################################
Clock.bpm = 120
Scale.default = Scale.chromatic
Root.default = 0
p1 >> keys(
[4,6,11,13,16,18,23,25]
,dur=[0.25]
,oct=4
,vibdepth=0.3 ,vib=0.01
)
p2 >> blip(
[4,6,11,13,15,16,18,23,25]
,dur=[0.25]
,oct=... | 14.442857 | 66 | 0.454995 | 187 | 1,011 | 2.459893 | 0.283422 | 0.065217 | 0.043478 | 0.065217 | 0.265217 | 0.182609 | 0.113043 | 0.113043 | 0.03913 | 0.03913 | 0 | 0.246358 | 0.253215 | 1,011 | 69 | 67 | 14.652174 | 0.362914 | 0.007913 | 0 | 0.211538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0.038462 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
32b8dd8aee4543f50495b2188ec524e31fadc382 | 268 | py | Python | Curso de Python USP Part1/Exercicios/ordenacao.py | JorgeTranin/Cursos_Coursera | 37d26b5f92d9324225f6701d0eb0fd466cff9d86 | [
"MIT"
] | null | null | null | Curso de Python USP Part1/Exercicios/ordenacao.py | JorgeTranin/Cursos_Coursera | 37d26b5f92d9324225f6701d0eb0fd466cff9d86 | [
"MIT"
] | null | null | null | Curso de Python USP Part1/Exercicios/ordenacao.py | JorgeTranin/Cursos_Coursera | 37d26b5f92d9324225f6701d0eb0fd466cff9d86 | [
"MIT"
] | null | null | null | numero1 = int(input('Digite um numero: '))
numero2 = int(input('Digite um numero: '))
numero3 = int(input('Digite um numero: '))
if numero1 <= numero2 and numero1 < numero3 and numero2 <= numero3:
print('crescente')
else:
print('não está em ordem crescente')
| 29.777778 | 67 | 0.682836 | 36 | 268 | 5.083333 | 0.472222 | 0.131148 | 0.229508 | 0.262295 | 0.360656 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040541 | 0.171642 | 268 | 8 | 68 | 33.5 | 0.783784 | 0 | 0 | 0 | 0 | 0 | 0.335821 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.285714 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
32bbf09b6f664dc1cb4a32d026f184def6a57b1b | 1,000 | py | Python | urbanmediator/triggers.py | rnd0101/urbanmediator | af3b19aefc09ebd1969cbb8f6ebfae0279183511 | [
"BSD-3-Clause"
] | null | null | null | urbanmediator/triggers.py | rnd0101/urbanmediator | af3b19aefc09ebd1969cbb8f6ebfae0279183511 | [
"BSD-3-Clause"
] | null | null | null | urbanmediator/triggers.py | rnd0101/urbanmediator | af3b19aefc09ebd1969cbb8f6ebfae0279183511 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
This file is part of Urban Mediator software.
Copyright (c) 2008 University of Art and Design Helsinki
See the file LICENSE.txt for copying permission.
Triggers
"""
import datetime
import config
import util
def sendmail_adapter(project, trigger, **params):
if trigg... | 24.390244 | 60 | 0.626 | 113 | 1,000 | 5.469027 | 0.495575 | 0.113269 | 0.161812 | 0.174757 | 0.297735 | 0.171521 | 0.171521 | 0.171521 | 0.171521 | 0 | 0 | 0.006711 | 0.255 | 1,000 | 40 | 61 | 25 | 0.822819 | 0.025 | 0 | 0.217391 | 0 | 0 | 0.086624 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.130435 | 0.130435 | null | null | 0.086957 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
088e996b4d6b58933e33aebe7b8d2aefaf7447ed | 80 | py | Python | myML/cluster/__init__.py | LingrenKong/my-Machine-Learning | 083a20242e647ea5a761a8779fb5290bb2a97e51 | [
"MIT"
] | null | null | null | myML/cluster/__init__.py | LingrenKong/my-Machine-Learning | 083a20242e647ea5a761a8779fb5290bb2a97e51 | [
"MIT"
] | null | null | null | myML/cluster/__init__.py | LingrenKong/my-Machine-Learning | 083a20242e647ea5a761a8779fb5290bb2a97e51 | [
"MIT"
] | null | null | null | """
仿照sklearn.cluster的结构
"""
from .k_means_ import KMeans
__all__ = ['KMeans',
] | 13.333333 | 28 | 0.7 | 9 | 80 | 5.555556 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 80 | 6 | 29 | 13.333333 | 0.714286 | 0.25 | 0 | 0 | 0 | 0 | 0.113208 | 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 |
08bad1342dfe9a3f273e50517e9598d9322fb9f4 | 814 | py | Python | neuromaps/nulls/tests/test_spins.py | VinceBaz/neuromaps | 6758b53e127d1563fa06eb26bc5f08a4e24ae7e7 | [
"BSD-3-Clause"
] | null | null | null | neuromaps/nulls/tests/test_spins.py | VinceBaz/neuromaps | 6758b53e127d1563fa06eb26bc5f08a4e24ae7e7 | [
"BSD-3-Clause"
] | null | null | null | neuromaps/nulls/tests/test_spins.py | VinceBaz/neuromaps | 6758b53e127d1563fa06eb26bc5f08a4e24ae7e7 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
For testing neuromaps.nulls.spins functionality
"""
import numpy as np
import pytest
from neuromaps.nulls import spins
def test_load_spins():
out = np.random.randint(1000, size=(100, 100), dtype='int32')
assert out is spins.load_spins(out)
assert np.allclose(out[:, :10], spin... | 15.960784 | 69 | 0.723587 | 119 | 814 | 4.756303 | 0.386555 | 0.09894 | 0.185512 | 0.222615 | 0.438163 | 0.399293 | 0.399293 | 0.340989 | 0 | 0 | 0 | 0.02489 | 0.160934 | 814 | 50 | 70 | 16.28 | 0.803807 | 0.085995 | 0 | 0.5 | 0 | 0 | 0.006793 | 0 | 0 | 0 | 0 | 0 | 0.321429 | 1 | 0.285714 | false | 0 | 0.107143 | 0 | 0.392857 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
08c041ce78c243c11ab921e4559519b668e11a05 | 459 | py | Python | ois_api_client/v3_0/dto/QueryInvoiceChainDigestResponse.py | peterkulik/ois_api_client | 51dabcc9f920f89982c4419bb058f5a88193cee0 | [
"MIT"
] | 7 | 2020-10-22T08:15:29.000Z | 2022-01-27T07:59:39.000Z | ois_api_client/v3_0/dto/QueryInvoiceChainDigestResponse.py | peterkulik/ois_api_client | 51dabcc9f920f89982c4419bb058f5a88193cee0 | [
"MIT"
] | null | null | null | ois_api_client/v3_0/dto/QueryInvoiceChainDigestResponse.py | peterkulik/ois_api_client | 51dabcc9f920f89982c4419bb058f5a88193cee0 | [
"MIT"
] | null | null | null | from dataclasses import dataclass
from .InvoiceChainDigestResult import InvoiceChainDigestResult
from .BasicOnlineInvoiceResponse import BasicOnlineInvoiceResponse
@dataclass
class QueryInvoiceChainDigestResponse(BasicOnlineInvoiceResponse):
"""Response type of the POST /queryInvoiceChainDigest REST operation
... | 32.785714 | 73 | 0.849673 | 39 | 459 | 9.846154 | 0.564103 | 0.09375 | 0.140625 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115468 | 459 | 13 | 74 | 35.307692 | 0.945813 | 0.296296 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.833333 | 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 |
08c2f35be3f7433dd8001271711e94a8a921b916 | 83 | py | Python | data/studio21_generated/interview/0458/starter_code.py | vijaykumawat256/Prompt-Summarization | 614f5911e2acd2933440d909de2b4f86653dc214 | [
"Apache-2.0"
] | null | null | null | data/studio21_generated/interview/0458/starter_code.py | vijaykumawat256/Prompt-Summarization | 614f5911e2acd2933440d909de2b4f86653dc214 | [
"Apache-2.0"
] | null | null | null | data/studio21_generated/interview/0458/starter_code.py | vijaykumawat256/Prompt-Summarization | 614f5911e2acd2933440d909de2b4f86653dc214 | [
"Apache-2.0"
] | null | null | null | class Solution:
def minSubarray(self, nums: List[int], p: int) -> int:
| 27.666667 | 58 | 0.590361 | 11 | 83 | 4.454545 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.26506 | 83 | 3 | 59 | 27.666667 | 0.803279 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
08f99b35eb630832a98f35a13f65eff6d3fc1a7d | 1,856 | py | Python | dnnet/training/loss_function.py | daichi-yoshikawa/dnnet | 95a33d73b201faed7ab98aa629e2aeb94c19ac18 | [
"BSD-3-Clause"
] | 6 | 2019-04-25T10:33:13.000Z | 2020-07-24T10:20:20.000Z | dnnet/training/loss_function.py | daichi-yoshikawa/dnnet | 95a33d73b201faed7ab98aa629e2aeb94c19ac18 | [
"BSD-3-Clause"
] | null | null | null | dnnet/training/loss_function.py | daichi-yoshikawa/dnnet | 95a33d73b201faed7ab98aa629e2aeb94c19ac18 | [
"BSD-3-Clause"
] | null | null | null | # Authors: Daichi Yoshikawa <daichi.yoshikawa@gmail.com>
# License: BSD 3 clause
from dnnet.ext_mathlibs import cp, np
class LossFunction:
"""Base class for loss functions.
Warning
-------
This class should not be used directly.
Use derived classes instead.
Parameters
----------
ep ... | 26.140845 | 76 | 0.596983 | 238 | 1,856 | 4.630252 | 0.382353 | 0.043557 | 0.036298 | 0.050817 | 0.38294 | 0.326679 | 0.281307 | 0.063521 | 0.063521 | 0.063521 | 0 | 0.010518 | 0.282866 | 1,856 | 70 | 77 | 26.514286 | 0.817431 | 0.405172 | 0 | 0.347826 | 0 | 0 | 0.127273 | 0.02246 | 0 | 0 | 0 | 0 | 0 | 1 | 0.347826 | false | 0 | 0.043478 | 0.217391 | 0.869565 | 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 |
3e987067dc562a2ed31c09e74f6acd6701f2e8b6 | 1,180 | py | Python | Proj_HMS/Reports/migrations/0003_auto_20200531_1305.py | ishanksoni/Hospital_management_DBMS | e22e421bcd38e738def4d7be15a0f75fc6ec543e | [
"MIT"
] | 4 | 2020-06-27T16:01:27.000Z | 2020-06-27T21:38:58.000Z | Proj_HMS/Reports/migrations/0003_auto_20200531_1305.py | ishanksoni/Hospital_management_DBMS | e22e421bcd38e738def4d7be15a0f75fc6ec543e | [
"MIT"
] | 6 | 2020-06-28T06:39:26.000Z | 2021-06-10T19:38:57.000Z | Proj_HMS/Reports/migrations/0003_auto_20200531_1305.py | ishanksoni/Hospital_management_DBMS | e22e421bcd38e738def4d7be15a0f75fc6ec543e | [
"MIT"
] | 1 | 2021-03-11T05:17:14.000Z | 2021-03-11T05:17:14.000Z | # Generated by Django 3.0.6 on 2020-05-31 07:35
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('Reports', '0002_auto_20200531_1126'),
]
operations = [
migrations.RenameField(
model_name='report',
old_name='Pre_medical_hi... | 24.583333 | 47 | 0.515254 | 103 | 1,180 | 5.669903 | 0.456311 | 0.119863 | 0.267123 | 0.308219 | 0.441781 | 0.441781 | 0.441781 | 0 | 0 | 0 | 0 | 0.041835 | 0.372034 | 1,180 | 47 | 48 | 25.106383 | 0.746289 | 0.038136 | 0 | 0.463415 | 1 | 0 | 0.154457 | 0.0203 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.02439 | 0 | 0.097561 | 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 |
3e9ca5fb7788a669bb3328f4ff21a417a27bc700 | 710 | py | Python | 55.py | HatsuneMikuV/PythonLearning | 34a7179ee20eb8ade50ce74b12732daea491e527 | [
"Apache-2.0"
] | null | null | null | 55.py | HatsuneMikuV/PythonLearning | 34a7179ee20eb8ade50ce74b12732daea491e527 | [
"Apache-2.0"
] | null | null | null | 55.py | HatsuneMikuV/PythonLearning | 34a7179ee20eb8ade50ce74b12732daea491e527 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
-------------------------------------------------
File Name: 55
Author : anglemiku
Eamil : anglemiku.v@gmail.com
date: 2020/1/8
-------------------------------------------------
Change Activity: 2020/1/8:
---------------------------------... | 17.75 | 49 | 0.466197 | 71 | 710 | 4.478873 | 0.605634 | 0.188679 | 0.160377 | 0.179245 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067151 | 0.223944 | 710 | 40 | 50 | 17.75 | 0.509982 | 0.029577 | 0 | 0 | 0 | 0 | 0.031873 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.111111 | 0 | null | null | 0.333333 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
3ea6e3ff41d60a2c30f41cf3918fd4be91c72c64 | 80 | py | Python | Codewars/8kyu/number-of-people-in-the-bus/Python/solution1.py | RevansChen/online-judge | ad1b07fee7bd3c49418becccda904e17505f3018 | [
"MIT"
] | 7 | 2017-09-20T16:40:39.000Z | 2021-08-31T18:15:08.000Z | Codewars/8kyu/number-of-people-in-the-bus/Python/solution1.py | RevansChen/online-judge | ad1b07fee7bd3c49418becccda904e17505f3018 | [
"MIT"
] | null | null | null | Codewars/8kyu/number-of-people-in-the-bus/Python/solution1.py | RevansChen/online-judge | ad1b07fee7bd3c49418becccda904e17505f3018 | [
"MIT"
] | null | null | null | # Python - 2.7.6
number = lambda bus_stops: sum([p - n for p, n in bus_stops])
| 20 | 61 | 0.6375 | 17 | 80 | 2.882353 | 0.764706 | 0.326531 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 0.2125 | 80 | 3 | 62 | 26.666667 | 0.730159 | 0.175 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3eaa2ee21d2173d34a2949f13d55a6aa3fe9590d | 202 | py | Python | api/src/enumeration/contact/ContactStatus.py | SamuelJansen/idealizar-whats-app-manager-api | a23114d5b841b3b3e45c0309b19c68df2fe1373e | [
"MIT"
] | null | null | null | api/src/enumeration/contact/ContactStatus.py | SamuelJansen/idealizar-whats-app-manager-api | a23114d5b841b3b3e45c0309b19c68df2fe1373e | [
"MIT"
] | null | null | null | api/src/enumeration/contact/ContactStatus.py | SamuelJansen/idealizar-whats-app-manager-api | a23114d5b841b3b3e45c0309b19c68df2fe1373e | [
"MIT"
] | null | null | null | from python_framework import Enum, EnumItem
@Enum()
class ContactStatusEnumeration :
NONE = EnumItem()
ACTIVE = EnumItem()
INACTIVE = EnumItem()
ContactStatus = ContactStatusEnumeration()
| 20.2 | 43 | 0.742574 | 17 | 202 | 8.764706 | 0.705882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173267 | 202 | 9 | 44 | 22.444444 | 0.892216 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 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 | 0 | 0 | 1 | 0 | 0 | 3 |
3ed9d1d20b430772a3023d5e441d77291797a45f | 388 | py | Python | {{cookiecutter.project_slug}}/core/exceptions/__init__.py | teamhide/cookiecutter-sanic | 9d1ca3c40584f723c492b7d78b8e2e1f53f5e186 | [
"Apache-2.0"
] | 2 | 2020-05-21T02:51:53.000Z | 2022-01-28T19:36:51.000Z | {{cookiecutter.project_slug}}/core/exceptions/__init__.py | teamhide/cookiecutter-sanic | 9d1ca3c40584f723c492b7d78b8e2e1f53f5e186 | [
"Apache-2.0"
] | 1 | 2021-06-02T00:42:16.000Z | 2021-06-02T00:42:16.000Z | {{cookiecutter.project_slug}}/core/exceptions/__init__.py | teamhide/cookiecutter-sanic | 9d1ca3c40584f723c492b7d78b8e2e1f53f5e186 | [
"Apache-2.0"
] | null | null | null | from sanic.exceptions import SanicException, add_status_code
class CustomException(SanicException):
def __init__(self, message: str, code: int):
super().__init__(message=message, status_code=code)
@add_status_code(401)
class ValidationErrorException(SanicException):
def __init__(self):
messa... | 27.714286 | 60 | 0.744845 | 42 | 388 | 6.380952 | 0.52381 | 0.11194 | 0.097015 | 0.186567 | 0.238806 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009202 | 0.159794 | 388 | 13 | 61 | 29.846154 | 0.812883 | 0 | 0 | 0 | 0 | 0 | 0.06701 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
3edea08ec6e3df304801943e36274145b7b5e624 | 518 | py | Python | exapi/models/hitbtc/trading_fee.py | astsu-dev/exapi | 1ef39ccdd77e9ddb60ec6eaa16a2cc26e1ac3e12 | [
"MIT"
] | null | null | null | exapi/models/hitbtc/trading_fee.py | astsu-dev/exapi | 1ef39ccdd77e9ddb60ec6eaa16a2cc26e1ac3e12 | [
"MIT"
] | null | null | null | exapi/models/hitbtc/trading_fee.py | astsu-dev/exapi | 1ef39ccdd77e9ddb60ec6eaa16a2cc26e1ac3e12 | [
"MIT"
] | null | null | null | from dataclasses import dataclass
from decimal import Decimal
from typing import TypedDict
class HitbtcRawTradingFeeModel(TypedDict):
"""Trading fee json model."""
takeLiquidityRate: str
provideLiquidityRate: str
@dataclass(frozen=True)
class HitbtcTradingFeeModel:
"""Trading fee model for certain ... | 21.583333 | 51 | 0.743243 | 55 | 518 | 6.854545 | 0.527273 | 0.137931 | 0.212202 | 0.127321 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.19305 | 518 | 23 | 52 | 22.521739 | 0.901914 | 0.310811 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.3 | 0 | 0.9 | 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 | 0 | 0 | 1 | 0 | 0 | 3 |
3ef8e4cec2ca752feb497adc08139d0274b8030e | 747 | py | Python | tests/integration/cloudformation/utils.py | doytsujin/localstack | 46ffd646af553f381cc567e4a7a06f604640c1c7 | [
"Apache-2.0"
] | 1 | 2022-03-17T07:22:23.000Z | 2022-03-17T07:22:23.000Z | tests/integration/cloudformation/utils.py | doytsujin/localstack | 46ffd646af553f381cc567e4a7a06f604640c1c7 | [
"Apache-2.0"
] | null | null | null | tests/integration/cloudformation/utils.py | doytsujin/localstack | 46ffd646af553f381cc567e4a7a06f604640c1c7 | [
"Apache-2.0"
] | null | null | null | import os
import jinja2
from localstack.utils.common import load_file
def load_template(tmpl_path: str, **template_vars) -> str:
template = load_template_raw(tmpl_path)
return render_template(template, **template_vars)
def render_template(template_body: str, **template_vars) -> str:
if template_vars:
... | 25.758621 | 87 | 0.745649 | 104 | 747 | 5.028846 | 0.25 | 0.114723 | 0.057361 | 0.068834 | 0.131931 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00311 | 0.139224 | 747 | 28 | 88 | 26.678571 | 0.810264 | 0 | 0 | 0 | 0 | 0 | 0.014726 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3125 | false | 0 | 0.1875 | 0.1875 | 0.8125 | 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 |
4109521558900284b3ffc140a466e95adca11965 | 4,353 | py | Python | src/SBS/messenger.py | Joao-vap/Voyager-based-Steganography | 9835e89cf8f1d472d7b3c8a8ead73a0ee553645c | [
"MIT"
] | null | null | null | src/SBS/messenger.py | Joao-vap/Voyager-based-Steganography | 9835e89cf8f1d472d7b3c8a8ead73a0ee553645c | [
"MIT"
] | null | null | null | src/SBS/messenger.py | Joao-vap/Voyager-based-Steganography | 9835e89cf8f1d472d7b3c8a8ead73a0ee553645c | [
"MIT"
] | null | null | null | import os
import numpy as np
import pydub as pd
from abc import ABC, abstractmethod
class Messenger(ABC):
""" Abstract methods """
def __init__(self, files_path=None):
if files_path is None:
self.message_left, self.message_right = np.array([]), np.array([])
else:
self.... | 28.266234 | 96 | 0.588789 | 473 | 4,353 | 5.192389 | 0.196617 | 0.065961 | 0.036645 | 0.056189 | 0.313518 | 0.245114 | 0.182818 | 0.081026 | 0.081026 | 0.081026 | 0 | 0.002724 | 0.325293 | 4,353 | 153 | 97 | 28.45098 | 0.833504 | 0.311969 | 0 | 0.188679 | 0 | 0 | 0.03695 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.245283 | false | 0.056604 | 0.075472 | 0 | 0.509434 | 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 |
412051c4a969e75e826cdb442765e6c92b39af9b | 1,064 | py | Python | ImportantFile.py | smckee6192/MockyThingy | c1f0e9daf6ca4ff32b15cef346a5a4ec95fe60ef | [
"MIT"
] | null | null | null | ImportantFile.py | smckee6192/MockyThingy | c1f0e9daf6ca4ff32b15cef346a5a4ec95fe60ef | [
"MIT"
] | 8 | 2015-03-25T04:02:27.000Z | 2015-04-26T01:08:15.000Z | ImportantFile.py | smckee6192/MockyThingy | c1f0e9daf6ca4ff32b15cef346a5a4ec95fe60ef | [
"MIT"
] | null | null | null | __author__ = 'Shane'
from ClassToPass import ClassToPass
class ImportantClass:
def __init__(self):
pass
def doTheThing(self, number1=int(), number2=int(), classToPass=ClassToPass()) -> int:
print("TheThing")
added = classToPass.gimmeTheSum(number1, number2)
return added
... | 28.756757 | 89 | 0.617481 | 108 | 1,064 | 5.972222 | 0.425926 | 0.027907 | 0.058915 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037975 | 0.257519 | 1,064 | 37 | 90 | 28.756757 | 0.778481 | 0 | 0 | 0.071429 | 0 | 0 | 0.049765 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.214286 | 0.071429 | 0.035714 | 0.571429 | 0.142857 | 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 |
4128cc1ebf3c61e5be668a4ebdb23cd28a077d29 | 1,304 | py | Python | summarizer_server/account_service.py | jent-ly/summarizer_server | 98f9b49d17aa637648cce1dd7ab9ad0efec5fe09 | [
"MIT"
] | 2 | 2019-07-10T03:22:18.000Z | 2019-12-08T05:54:16.000Z | summarizer_server/account_service.py | jent-ly/summarizer_server | 98f9b49d17aa637648cce1dd7ab9ad0efec5fe09 | [
"MIT"
] | 7 | 2019-07-31T16:08:05.000Z | 2020-03-22T20:48:30.000Z | summarizer_server/account_service.py | jent-ly/summarizer-server | 98f9b49d17aa637648cce1dd7ab9ad0efec5fe09 | [
"MIT"
] | 1 | 2019-08-13T08:27:49.000Z | 2019-08-13T08:27:49.000Z | from models import database, Account
from serializers import AccountSchema
class AccountService:
def __init__(self):
self.anonymous_email = "anonymous@jent.ly"
self.anonymous_gaia = "ewpewawn"
self.user_single = AccountSchema()
self.user_multiple = AccountSchema(many=True)
de... | 31.047619 | 87 | 0.655675 | 159 | 1,304 | 5.232704 | 0.339623 | 0.0625 | 0.043269 | 0.036058 | 0.052885 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00303 | 0.240798 | 1,304 | 41 | 88 | 31.804878 | 0.837374 | 0 | 0 | 0.096774 | 0 | 0 | 0.08589 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.225806 | false | 0 | 0.064516 | 0.129032 | 0.580645 | 0.064516 | 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 |
412b62d12ea0d8d71b70b3afa39517e4d92005ba | 2,786 | py | Python | src/data.py | smlblbn/imagecolorizer | 1d984c69797edb6ebfa00d9bccc621852f7d8392 | [
"MIT"
] | null | null | null | src/data.py | smlblbn/imagecolorizer | 1d984c69797edb6ebfa00d9bccc621852f7d8392 | [
"MIT"
] | null | null | null | src/data.py | smlblbn/imagecolorizer | 1d984c69797edb6ebfa00d9bccc621852f7d8392 | [
"MIT"
] | null | null | null | import numpy as np
import utils
test_np = np.ndarray(shape=(100, 256, 256, 1))
train_np = np.ndarray(shape=(800, 256, 256, 1))
valid_np = np.ndarray(shape=(100, 256, 256, 1))
train_np_gt = np.ndarray(shape=(800, 64, 64, 2))
valid_np_gt = np.ndarray(shape=(100, 64, 64, 2))
train_np_real = np.ndarray(shape=(800, 256,... | 30.615385 | 83 | 0.569993 | 423 | 2,786 | 3.588652 | 0.113475 | 0.063241 | 0.064559 | 0.059947 | 0.841238 | 0.779974 | 0.710804 | 0.69697 | 0.689065 | 0.578393 | 0 | 0.06168 | 0.260948 | 2,786 | 91 | 84 | 30.615385 | 0.675571 | 0 | 0 | 0.5 | 0 | 0 | 0.08145 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.029412 | 0 | 0.029412 | 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 |
eb1b9cbc58037ed2fc207fcb5350dac518955af9 | 145 | py | Python | elif_bayindir/phase_1/python_basic_1/day_9/q9.py | CodedLadiesInnovateTech/-python-challenge-solutions | 430cd3eb84a2905a286819eef384ee484d8eb9e7 | [
"MIT"
] | 6 | 2020-05-23T19:53:25.000Z | 2021-05-08T20:21:30.000Z | elif_bayindir/phase_1/python_basic_1/day_9/q9.py | CodedLadiesInnovateTech/-python-challenge-solutions | 430cd3eb84a2905a286819eef384ee484d8eb9e7 | [
"MIT"
] | 8 | 2020-05-14T18:53:12.000Z | 2020-07-03T00:06:20.000Z | elif_bayindir/phase_1/python_basic_1/day_9/q9.py | CodedLadiesInnovateTech/-python-challenge-solutions | 430cd3eb84a2905a286819eef384ee484d8eb9e7 | [
"MIT"
] | 39 | 2020-05-10T20:55:02.000Z | 2020-09-12T17:40:59.000Z | # Question 9
# Get the size of an object in bytes
import sys
var1 = input("Enter a value of the object: ")
print(sys.getsizeof(var1), "bytes")
| 18.125 | 45 | 0.703448 | 25 | 145 | 4.08 | 0.76 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025424 | 0.186207 | 145 | 7 | 46 | 20.714286 | 0.838983 | 0.310345 | 0 | 0 | 0 | 0 | 0.350515 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
eb25d78cb3f55d79993d1bbadc091c36d1b4b4b7 | 289 | py | Python | MedSpa_backend/med_spa/medspa/admin.py | Schmidt1519/med-spa-capstone | 7e0e9aec0c990859e03dfbc86fd5714bef3f3f2a | [
"Unlicense",
"MIT"
] | 1 | 2021-08-10T19:03:23.000Z | 2021-08-10T19:03:23.000Z | MedSpa_backend/med_spa/medspa/admin.py | Schmidt1519/med-spa-capstone | 7e0e9aec0c990859e03dfbc86fd5714bef3f3f2a | [
"Unlicense",
"MIT"
] | null | null | null | MedSpa_backend/med_spa/medspa/admin.py | Schmidt1519/med-spa-capstone | 7e0e9aec0c990859e03dfbc86fd5714bef3f3f2a | [
"Unlicense",
"MIT"
] | null | null | null | from django.contrib import admin
from .models import *
# Register your models here.
admin.site.register(User)
admin.site.register(Appointment)
admin.site.register(Service)
admin.site.register(Review)
admin.site.register(Membership)
admin.site.register(Cart)
admin.site.register(Payment)
| 22.230769 | 32 | 0.809689 | 40 | 289 | 5.85 | 0.425 | 0.269231 | 0.508547 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076125 | 289 | 12 | 33 | 24.083333 | 0.876404 | 0.089965 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.222222 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
eb318625adda091de1420269a0fdfba33e4725b8 | 566 | py | Python | DataInterface.py | gatewaytofredom/Windows-Reminder | 3d3508c552473fe48b422817827a8604c74d4b95 | [
"Unlicense"
] | null | null | null | DataInterface.py | gatewaytofredom/Windows-Reminder | 3d3508c552473fe48b422817827a8604c74d4b95 | [
"Unlicense"
] | null | null | null | DataInterface.py | gatewaytofredom/Windows-Reminder | 3d3508c552473fe48b422817827a8604c74d4b95 | [
"Unlicense"
] | null | null | null | #interface for loading and saving json lists of events
import simplejson as json
def SaveFile(events_list):
try:
events_json = json.dumps(events_list)
with open('data.json', 'w') as write_file:
json.dump(events_json, write_file)
print("list saved")
print(events_json)
... | 21.769231 | 54 | 0.659011 | 78 | 566 | 4.653846 | 0.538462 | 0.082645 | 0.066116 | 0.088154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.24735 | 566 | 25 | 55 | 22.64 | 0.852113 | 0.144876 | 0 | 0.117647 | 0 | 0 | 0.06237 | 0 | 0 | 0 | 0 | 0.04 | 0 | 1 | 0.235294 | false | 0.117647 | 0.058824 | 0 | 0.352941 | 0.176471 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
eb3862a68d427a7ae9aa6392f99eea80a18845ec | 140 | py | Python | docs/tests/W0109.py | mrfyda/codacy-pylint-python3 | e360f6c0407edebe274835d3a881d67e96adf8ba | [
"Apache-2.0"
] | 17 | 2016-01-26T13:30:04.000Z | 2022-03-06T21:11:42.000Z | docs/tests/W0109.py | mrfyda/codacy-pylint-python3 | e360f6c0407edebe274835d3a881d67e96adf8ba | [
"Apache-2.0"
] | 50 | 2019-08-14T16:14:45.000Z | 2022-03-31T11:00:50.000Z | docs/tests/W0109.py | mrfyda/codacy-pylint-python3 | e360f6c0407edebe274835d3a881d67e96adf8ba | [
"Apache-2.0"
] | 15 | 2015-11-18T12:18:50.000Z | 2021-01-17T22:21:41.000Z | ##Patterns: W0109
##Warn: W0109
cities = {
'CA': 'San Francisco',
'MI': 'Detroit',
'FL': 'Jacksonville',
'MI': 'Detroit'
}
| 14 | 26 | 0.528571 | 14 | 140 | 5.285714 | 0.785714 | 0.243243 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075472 | 0.242857 | 140 | 9 | 27 | 15.555556 | 0.622642 | 0.185714 | 0 | 0 | 0 | 0 | 0.427273 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
eb3febc896f04071994391ecad85eeb0b7114364 | 14,243 | py | Python | messages/reminders.py | qxf2/daily-messages | 0e93033df8d519873094928eba2a9d0151f1b459 | [
"MIT"
] | null | null | null | messages/reminders.py | qxf2/daily-messages | 0e93033df8d519873094928eba2a9d0151f1b459 | [
"MIT"
] | 5 | 2020-09-15T10:30:37.000Z | 2021-01-21T18:42:04.000Z | messages/reminders.py | qxf2/daily-messages | 0e93033df8d519873094928eba2a9d0151f1b459 | [
"MIT"
] | 2 | 2020-08-27T10:24:38.000Z | 2021-01-27T13:00:06.000Z | """
Reminders depending on the day of the week
"""
monday_msg = ["I hope you planned this week on Friday evening itself. If not, please do it now. Send out all the calendar events that you need to for this week. Accept (or reject) the calendar invites you received. Know at least two of your top priorities.",
"Did you ... | 180.291139 | 401 | 0.779049 | 2,527 | 14,243 | 4.384646 | 0.305501 | 0.01083 | 0.003249 | 0.00704 | 0.054422 | 0.03213 | 0.024368 | 0.024368 | 0.012996 | 0.012996 | 0 | 0.012915 | 0.168223 | 14,243 | 78 | 402 | 182.602564 | 0.922343 | 0.002949 | 0 | 0 | 0 | 0.905405 | 0.965053 | 0.002959 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.013514 | 0.040541 | 0 | 0.040541 | 0.027027 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
de2f01242e0c757571e19900280cf7aff4382d7f | 218 | py | Python | qf_11_break和continue的使用.py | tianming-jianai/QFPython | bf14fc5da077e745670c5898f1d3322cb87e6f6b | [
"MIT"
] | null | null | null | qf_11_break和continue的使用.py | tianming-jianai/QFPython | bf14fc5da077e745670c5898f1d3322cb87e6f6b | [
"MIT"
] | null | null | null | qf_11_break和continue的使用.py | tianming-jianai/QFPython | bf14fc5da077e745670c5898f1d3322cb87e6f6b | [
"MIT"
] | null | null | null | # break 和 continue 在Python中只能用于循环语句
# break:用来结束整个循环
# continue:用来结束本轮循环,开启下一轮循环
while True:
username = input('请输入用户名:')
password = input('请输入密码:')
if username == 'zs' and password == '123':
break
| 21.8 | 46 | 0.655963 | 24 | 218 | 5.958333 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017544 | 0.215596 | 218 | 9 | 47 | 24.222222 | 0.818713 | 0.33945 | 0 | 0 | 0 | 0 | 0.128571 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.4 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
de34c0247fe87ab44222921caa73e21ce2948946 | 1,405 | py | Python | stonesoup/dataassociator/tests/conftest.py | Red-Portal/Stone-Soup-1 | 267621c86161a839da9b144c2745d28d9166d903 | [
"MIT"
] | 157 | 2019-04-14T20:43:11.000Z | 2022-03-30T08:30:33.000Z | stonesoup/dataassociator/tests/conftest.py | Red-Portal/Stone-Soup-1 | 267621c86161a839da9b144c2745d28d9166d903 | [
"MIT"
] | 364 | 2019-04-18T15:54:49.000Z | 2022-03-31T09:50:02.000Z | stonesoup/dataassociator/tests/conftest.py | Red-Portal/Stone-Soup-1 | 267621c86161a839da9b144c2745d28d9166d903 | [
"MIT"
] | 86 | 2019-04-20T02:01:18.000Z | 2022-03-28T01:03:11.000Z | # -*- coding: utf-8 -*-
import pytest
import numpy as np
from ...hypothesiser.probability import PDAHypothesiser
from ...hypothesiser.distance import DistanceHypothesiser
from ...measures import Mahalanobis
from ...models.measurement.linear import LinearGaussian
from ...types.array import CovarianceMatrix
from ...mode... | 32.674419 | 95 | 0.718861 | 134 | 1,405 | 7.440299 | 0.410448 | 0.065196 | 0.080241 | 0.042126 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015762 | 0.187189 | 1,405 | 42 | 96 | 33.452381 | 0.857268 | 0.014947 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0.133333 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
de4f095a0411d05a832482cdd9c744b8fc2760b2 | 276 | py | Python | chipy_org/apps/meetings/migrations/0006_merge_20210214_1847.py | land-of-apps/chipy.org | be433d0cb3453a1550f344c02d6164b6bf4d9e63 | [
"MIT"
] | null | null | null | chipy_org/apps/meetings/migrations/0006_merge_20210214_1847.py | land-of-apps/chipy.org | be433d0cb3453a1550f344c02d6164b6bf4d9e63 | [
"MIT"
] | null | null | null | chipy_org/apps/meetings/migrations/0006_merge_20210214_1847.py | land-of-apps/chipy.org | be433d0cb3453a1550f344c02d6164b6bf4d9e63 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.17 on 2021-02-14 18:47
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('meetings', '0005_auto_20210110_1819'),
('meetings', '0005_auto_20201226_2020'),
]
operations = [
]
| 18.4 | 48 | 0.652174 | 33 | 276 | 5.272727 | 0.787879 | 0.137931 | 0.183908 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.225352 | 0.228261 | 276 | 14 | 49 | 19.714286 | 0.591549 | 0.166667 | 0 | 0 | 1 | 0 | 0.27193 | 0.201754 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
de50692086615c30e69073a8532a5a8796cf0e7f | 784 | py | Python | client/verta/tests/test_model_registry/test_model_base.py | TMFRook/modeldb | 7096b8fd7e98dc97c3c87cf0ce0e3862ff042f6c | [
"Apache-2.0"
] | null | null | null | client/verta/tests/test_model_registry/test_model_base.py | TMFRook/modeldb | 7096b8fd7e98dc97c3c87cf0ce0e3862ff042f6c | [
"Apache-2.0"
] | null | null | null | client/verta/tests/test_model_registry/test_model_base.py | TMFRook/modeldb | 7096b8fd7e98dc97c3c87cf0ce0e3862ff042f6c | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import pytest
from verta.registry import VertaModelBase
def test_abstract_methods():
"""Abstract methods must be implemented."""
ERROR_MSG_REGEX = "^Can't instantiate abstract class .* with abstract method"
class NoImpl(VertaModelBase):
pass
class OnlyInit(VertaMode... | 22.4 | 81 | 0.635204 | 84 | 784 | 5.738095 | 0.52381 | 0.141079 | 0.053942 | 0.103734 | 0.253112 | 0.157676 | 0 | 0 | 0 | 0 | 0 | 0.001761 | 0.27551 | 784 | 34 | 82 | 23.058824 | 0.846831 | 0.076531 | 0 | 0.428571 | 0 | 0 | 0.079387 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 1 | 0.238095 | false | 0.238095 | 0.095238 | 0 | 0.52381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
de6b7ac1c62715b20c4c4600d563f8b63c3d66b2 | 597 | py | Python | passwords/type7.py | m00tiny/scripts | 54660525f36e3e97d23fbd259ceb9b10823f2ee2 | [
"BSD-3-Clause"
] | 877 | 2015-01-01T23:17:14.000Z | 2022-03-27T10:42:01.000Z | passwords/type7.py | wasi0013/scripts | 51cbeccfd89e168b15ddb83c7be19ae38acf80d2 | [
"BSD-3-Clause"
] | 5 | 2016-10-08T19:45:40.000Z | 2020-09-02T02:15:10.000Z | passwords/type7.py | wasi0013/scripts | 51cbeccfd89e168b15ddb83c7be19ae38acf80d2 | [
"BSD-3-Clause"
] | 352 | 2015-01-26T02:33:17.000Z | 2022-03-15T23:01:27.000Z | import sys
V = [0x64, 0x73, 0x66, 0x64, 0x3b, 0x6b, 0x66, 0x6f, 0x41, 0x2c, 0x2e,
0x69, 0x79, 0x65, 0x77, 0x72, 0x6b, 0x6c, 0x64, 0x4a, 0x4b, 0x44,
0x48, 0x53, 0x55, 0x42, 0x73, 0x67, 0x76, 0x63, 0x61, 0x36, 0x39,
0x38, 0x33, 0x34, 0x6e, 0x63, 0x78, 0x76, 0x39, 0x38, 0x37, 0x33,
0x32, 0x35, 0x34, 0x6b,... | 25.956522 | 70 | 0.571189 | 107 | 597 | 3.186916 | 0.579439 | 0.046921 | 0.02346 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.359823 | 0.241206 | 597 | 22 | 71 | 27.136364 | 0.392936 | 0 | 0 | 0 | 0 | 0 | 0.033501 | 0 | 0 | 0 | 0.355109 | 0 | 0 | 0 | null | null | 0 | 0.058824 | null | null | 0.117647 | 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 |
de703e0a7d9e16592fe817d06b18c8ecb7d4cad5 | 526 | py | Python | fdk_client/application/models/ValidateCustomerRequest.py | kavish-d/fdk-client-python | a1023eb530473322cb52e095fc4ceb226c1e6037 | [
"MIT"
] | null | null | null | fdk_client/application/models/ValidateCustomerRequest.py | kavish-d/fdk-client-python | a1023eb530473322cb52e095fc4ceb226c1e6037 | [
"MIT"
] | null | null | null | fdk_client/application/models/ValidateCustomerRequest.py | kavish-d/fdk-client-python | a1023eb530473322cb52e095fc4ceb226c1e6037 | [
"MIT"
] | null | null | null | """Application Models."""
from marshmallow import fields, Schema
from marshmallow.validate import OneOf
from ..enums import *
from ..models.BaseSchema import BaseSchema
class ValidateCustomerRequest(BaseSchema):
# Payment swagger.json
transaction_amount_in_paise = fields.Int(required=False)
... | 15.470588 | 60 | 0.709125 | 56 | 526 | 6.571429 | 0.553571 | 0.17663 | 0.138587 | 0.179348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.205323 | 526 | 33 | 61 | 15.939394 | 0.880383 | 0.077947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 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 | 1 | 0 | 1 | 0 | 0 | 3 |
debadf5cbf9497fc7c400edd83eae46f7faacdfd | 107 | py | Python | src/rules/Snakefile.py | bmennis/nb_prediction | 46938178c9ec3f4a82cf57a972d6a94303bfa802 | [
"RSA-MD"
] | null | null | null | src/rules/Snakefile.py | bmennis/nb_prediction | 46938178c9ec3f4a82cf57a972d6a94303bfa802 | [
"RSA-MD"
] | null | null | null | src/rules/Snakefile.py | bmennis/nb_prediction | 46938178c9ec3f4a82cf57a972d6a94303bfa802 | [
"RSA-MD"
] | null | null | null | """Main snakefile"""
include: "const.py"
rule all:
output: LOG + 'DONE'
shell: 'touch {output}'
| 13.375 | 28 | 0.588785 | 13 | 107 | 4.846154 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.224299 | 107 | 7 | 29 | 15.285714 | 0.759036 | 0 | 0 | 0 | 0 | 0 | 0.298851 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
debf754728a2f498b7fd73d458245a98d91b848f | 1,281 | py | Python | diamondkata/diamond.py | cjhnim/daily-kata-python | 44a4ba9583b9f8c9db8e0114fa4837acbbd83746 | [
"MIT"
] | null | null | null | diamondkata/diamond.py | cjhnim/daily-kata-python | 44a4ba9583b9f8c9db8e0114fa4837acbbd83746 | [
"MIT"
] | null | null | null | diamondkata/diamond.py | cjhnim/daily-kata-python | 44a4ba9583b9f8c9db8e0114fa4837acbbd83746 | [
"MIT"
] | null | null | null |
class Diamond:
START_LETTER = 'A'
ENTER = '\n'
SPACE = ' '
BLANK = ''
def __init__(self, upTo):
self.upTo = upTo
def show(self):
top = self.BLANK
bottom = self.BLANK
for c in range(ord(self.START_LETTER), ord(self.upTo)+1):
line = self.... | 24.169811 | 65 | 0.514442 | 155 | 1,281 | 4.2 | 0.245161 | 0.046083 | 0.069124 | 0.0553 | 0.082949 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004944 | 0.368462 | 1,281 | 53 | 66 | 24.169811 | 0.799753 | 0 | 0 | 0.051282 | 0 | 0 | 0.003123 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0 | 0.102564 | 0.564103 | 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 |
dec140867582523f12b303f11244505892b7daa0 | 62,935 | py | Python | stubs.min/System/Windows/__init___parts/ContentElement.py | hdm-dt-fb/ironpython-stubs | 4d2b405eda3ceed186e8adca55dd97c332c6f49d | [
"MIT"
] | 1 | 2017-07-25T14:30:18.000Z | 2017-07-25T14:30:18.000Z | stubs.min/System/Windows/__init___parts/ContentElement.py | hdm-dt-fb/ironpython-stubs | 4d2b405eda3ceed186e8adca55dd97c332c6f49d | [
"MIT"
] | null | null | null | stubs.min/System/Windows/__init___parts/ContentElement.py | hdm-dt-fb/ironpython-stubs | 4d2b405eda3ceed186e8adca55dd97c332c6f49d | [
"MIT"
] | null | null | null | class ContentElement(DependencyObject,IInputElement,IAnimatable):
"""
Provides a WPF core-level base class for content elements. Content elements are designed for flow-style presentation,using an intuitive markup-oriented layout model and a deliberately simple object model.
ContentElement()
"""
def AddHa... | 38.468826 | 535 | 0.741416 | 7,320 | 62,935 | 6.377322 | 0.093579 | 0.05319 | 0.042415 | 0.034703 | 0.626344 | 0.612335 | 0.598432 | 0.57836 | 0.570777 | 0.554368 | 0.001192 | 0.001106 | 0.195758 | 62,935 | 1,635 | 536 | 38.492355 | 0.919708 | 0.663446 | 0 | 0.254673 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.254673 | false | 0.254673 | 0 | 0 | 0.745327 | 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 |
dec3ef25424e5a020e7c73252f034cb1aabb60dd | 850 | py | Python | serpantin/apps/test/models.py | ainomugish/serpantin | 1ae39733d9fb8f5c1c326e2b6ade48351e9956cc | [
"BSD-3-Clause"
] | null | null | null | serpantin/apps/test/models.py | ainomugish/serpantin | 1ae39733d9fb8f5c1c326e2b6ade48351e9956cc | [
"BSD-3-Clause"
] | null | null | null | serpantin/apps/test/models.py | ainomugish/serpantin | 1ae39733d9fb8f5c1c326e2b6ade48351e9956cc | [
"BSD-3-Clause"
] | null | null | null | from django.db import models
from django.contrib.contenttypes import generic
from serpantin.dojoforms.models import TagsField, TagField, TagsRelation, GenericTagsField
from serpantin.dojoforms.generic import GenericManyToManyField
#from tagging.fields import TagField
from tagging.models import TaggedItem, Tag
# class... | 28.333333 | 90 | 0.715294 | 94 | 850 | 6.319149 | 0.382979 | 0.03367 | 0.074074 | 0.070707 | 0.377104 | 0.377104 | 0.272727 | 0.141414 | 0.141414 | 0 | 0 | 0.007342 | 0.198824 | 850 | 29 | 91 | 29.310345 | 0.864905 | 0.355294 | 0 | 0 | 0 | 0 | 0.033582 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.083333 | 0.416667 | 0.083333 | 0.916667 | 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 |
dee8c1795bd66b05327beb2249f1a41531cfcf75 | 18,745 | py | Python | fairseq/models/wav2vec/lsqquantize_V1.py | ghostchoir/fairseq_old | 17ea4e97827c33f77cb188bc6e5aed42209dccc1 | [
"MIT"
] | null | null | null | fairseq/models/wav2vec/lsqquantize_V1.py | ghostchoir/fairseq_old | 17ea4e97827c33f77cb188bc6e5aed42209dccc1 | [
"MIT"
] | null | null | null | fairseq/models/wav2vec/lsqquantize_V1.py | ghostchoir/fairseq_old | 17ea4e97827c33f77cb188bc6e5aed42209dccc1 | [
"MIT"
] | null | null | null | import copy
import math
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Function
# ********************* quantizers(量化器,量化) *********************
# 取整(ste)
class Round(Function):
@staticmethod
def forward(self, input):
sign = torch.sign(input)
outp... | 47.335859 | 119 | 0.508829 | 2,014 | 18,745 | 4.504469 | 0.101291 | 0.042659 | 0.019841 | 0.038801 | 0.748898 | 0.729056 | 0.709546 | 0.696429 | 0.681548 | 0.671186 | 0 | 0.015802 | 0.402454 | 18,745 | 395 | 120 | 47.455696 | 0.794036 | 0.068498 | 0 | 0.627273 | 0 | 0 | 0.005054 | 0 | 0 | 0 | 0 | 0 | 0.006061 | 1 | 0.054545 | false | 0.00303 | 0.018182 | 0 | 0.130303 | 0.006061 | 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 |
def264103866219a3fbeeecae07d32161da7fa2f | 166 | py | Python | routes.py | gus-tech/webremote | 1d866b023cc7ab9b8e0b475f79e8dd061c292ae5 | [
"BSD-3-Clause"
] | null | null | null | routes.py | gus-tech/webremote | 1d866b023cc7ab9b8e0b475f79e8dd061c292ae5 | [
"BSD-3-Clause"
] | null | null | null | routes.py | gus-tech/webremote | 1d866b023cc7ab9b8e0b475f79e8dd061c292ae5 | [
"BSD-3-Clause"
] | null | null | null | routers = dict(
BASE = dict(
default_application = "webremote",
default_controller = "webremote",
default_function = "index",
)
)
| 20.75 | 42 | 0.572289 | 13 | 166 | 7.076923 | 0.692308 | 0.347826 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.319277 | 166 | 7 | 43 | 23.714286 | 0.814159 | 0 | 0 | 0 | 0 | 0 | 0.138554 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
721bf11a63b5467ee768852315ff7e890dd700fd | 3,219 | py | Python | flownet/tests/max_flow_test.py | Digirolamo/FlowNet | 3aa37b6d6a82c6a87072760104575e8fbe1fcc72 | [
"MIT"
] | null | null | null | flownet/tests/max_flow_test.py | Digirolamo/FlowNet | 3aa37b6d6a82c6a87072760104575e8fbe1fcc72 | [
"MIT"
] | null | null | null | flownet/tests/max_flow_test.py | Digirolamo/FlowNet | 3aa37b6d6a82c6a87072760104575e8fbe1fcc72 | [
"MIT"
] | null | null | null | """This module contains the general flownet tests.
"""
from unittest import TestCase, TestSuite, TextTestRunner
from flownet import FlowNetwork
def get_max_flow(adj_matrix, sources, sinks):
"""Gets the maximum flow of the flow network from sources to sinks.
Args:
adjacency_matrix (lis... | 44.09589 | 83 | 0.401678 | 658 | 3,219 | 1.925532 | 0.098784 | 0.198895 | 0.158642 | 0.119968 | 0.598264 | 0.598264 | 0.598264 | 0.530387 | 0.434886 | 0.411997 | 0 | 0.269663 | 0.391737 | 3,219 | 72 | 84 | 44.708333 | 0.377426 | 0.127369 | 0 | 0.14 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06 | 1 | 0.08 | false | 0 | 0.04 | 0 | 0.16 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
72397de52928ca36d45b2d21ce2d92495babc5e7 | 544 | py | Python | cracking_the_coding_interview/strings/string_rotations.py | elenaborisova/LeetCode-Solutions | 98376aab7fd150a724e316357ae5ea46988d9eac | [
"MIT"
] | null | null | null | cracking_the_coding_interview/strings/string_rotations.py | elenaborisova/LeetCode-Solutions | 98376aab7fd150a724e316357ae5ea46988d9eac | [
"MIT"
] | null | null | null | cracking_the_coding_interview/strings/string_rotations.py | elenaborisova/LeetCode-Solutions | 98376aab7fd150a724e316357ae5ea46988d9eac | [
"MIT"
] | null | null | null | # String Rotation: Assume you have a method isSubstringwhich checks if one word is a substring
# of another. Given two strings, sl and s2, write code to check if s2 is a rotation of sl using only one
# call to isSubstring (e.g., "waterbottle" is a rotation of "erbottlewat")
def is_substring(s1, s2):
return s2 in s... | 27.2 | 104 | 0.705882 | 90 | 544 | 4.177778 | 0.511111 | 0.111702 | 0.058511 | 0.069149 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034642 | 0.204044 | 544 | 19 | 105 | 28.631579 | 0.833718 | 0.512868 | 0 | 0 | 0 | 0 | 0.084615 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.125 | 0.625 | 0.125 | 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 |
a0c6e112d19b942c1407458373078686a184789b | 890 | py | Python | concordance/__init__.py | jgeldart/magrathea | 4e9d12a439d88036a8585b81f8bd37675f8aaadf | [
"BSD-3-Clause"
] | null | null | null | concordance/__init__.py | jgeldart/magrathea | 4e9d12a439d88036a8585b81f8bd37675f8aaadf | [
"BSD-3-Clause"
] | null | null | null | concordance/__init__.py | jgeldart/magrathea | 4e9d12a439d88036a8585b81f8bd37675f8aaadf | [
"BSD-3-Clause"
] | null | null | null | from quantity_field import ureg
# Set up some celestial units
ureg.define('solar_mass = 1988500000000000000000000000000 * kg = M☉')
ureg.define('solar_luminosity = 382800000000000000000000000 * watt = L☉')
ureg.define('solar_radius = 695700 * km = R☉')
ureg.define('solar_surface_temperature = 5772 * K = T☉')
ureg.def... | 40.454545 | 73 | 0.705618 | 145 | 890 | 4.289655 | 0.448276 | 0.241158 | 0.144695 | 0.102894 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.18822 | 0.122472 | 890 | 21 | 74 | 42.380952 | 0.591549 | 0.030337 | 0 | 0 | 0 | 0 | 0.678281 | 0.149826 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.0625 | 0 | 0.0625 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a0dda9acab3e37cb743d95956eb0320b12f44e0f | 46 | py | Python | src/http2broker/__init__.py | fwiesel/http2broker | 0a1f7cfc931f6dc60c1c96d0cddaa76f1abe458e | [
"MIT"
] | 1 | 2020-11-13T15:56:57.000Z | 2020-11-13T15:56:57.000Z | src/http2broker/__init__.py | fwiesel/http2broker | 0a1f7cfc931f6dc60c1c96d0cddaa76f1abe458e | [
"MIT"
] | null | null | null | src/http2broker/__init__.py | fwiesel/http2broker | 0a1f7cfc931f6dc60c1c96d0cddaa76f1abe458e | [
"MIT"
] | null | null | null | __author__ = 'fabian'
__all__ = ['handler']
| 9.2 | 21 | 0.652174 | 4 | 46 | 5.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173913 | 46 | 4 | 22 | 11.5 | 0.578947 | 0 | 0 | 0 | 0 | 0 | 0.295455 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a0e950bbb59da0d23a2191be123d415a9008480e | 236 | py | Python | agenda/core/views.py | EderReisS/Django-DIO | fd70c9f514e274e8a81d625853b3698017870dfa | [
"MIT"
] | null | null | null | agenda/core/views.py | EderReisS/Django-DIO | fd70c9f514e274e8a81d625853b3698017870dfa | [
"MIT"
] | null | null | null | agenda/core/views.py | EderReisS/Django-DIO | fd70c9f514e274e8a81d625853b3698017870dfa | [
"MIT"
] | null | null | null | from django.shortcuts import render
from core.models import Evento
# Create your views here.
def lista_eventos(request):
evento = Evento.objects.all()
dados = {'evento' : evento}
return render(request,'agenda.html', dados) | 26.222222 | 47 | 0.728814 | 31 | 236 | 5.516129 | 0.709677 | 0.140351 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165254 | 236 | 9 | 47 | 26.222222 | 0.86802 | 0.097458 | 0 | 0 | 0 | 0 | 0.080189 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
a0f41192c37b63437ae16d1de342a54f8c4508d7 | 1,367 | py | Python | src/beeswax_api/models/Session.py | hbmartin/beeswax-api | 48527f2d7870e9eb2b4d83da8ee964cf85f6c99f | [
"Apache-2.0"
] | 2 | 2017-03-24T19:27:27.000Z | 2017-04-24T18:07:15.000Z | src/beeswax_api/models/Session.py | hbmartin/beeswax-api | 48527f2d7870e9eb2b4d83da8ee964cf85f6c99f | [
"Apache-2.0"
] | null | null | null | src/beeswax_api/models/Session.py | hbmartin/beeswax-api | 48527f2d7870e9eb2b4d83da8ee964cf85f6c99f | [
"Apache-2.0"
] | null | null | null | import json
import os
import requests
from beeswax_api.models.SegmentUpload import SegmentUpload
from beeswax_api.Exceptions import LoginException, SegmentUploadException
class Session(requests.Session):
_url_ = ""
def url(self, path):
return self._url_ + path
def login(self, _url, auth_data):
... | 31.068182 | 90 | 0.651792 | 181 | 1,367 | 4.751381 | 0.287293 | 0.065116 | 0.063953 | 0.069767 | 0.19186 | 0.139535 | 0.139535 | 0.139535 | 0.088372 | 0 | 0 | 0 | 0.223116 | 1,367 | 43 | 91 | 31.790698 | 0.809793 | 0 | 0 | 0.060606 | 0 | 0 | 0.096562 | 0.020483 | 0 | 0 | 0 | 0 | 0 | 1 | 0.212121 | false | 0 | 0.151515 | 0.121212 | 0.636364 | 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 |
a0f511d984520c70c6cc40b9cc85400afaafa8e0 | 487 | py | Python | snoop/data/management/commands/updatetags.py | liquidinvestigations/hoover-snoop2 | 28e328401609f53fb56abaa4817619085aa3fbee | [
"MIT"
] | null | null | null | snoop/data/management/commands/updatetags.py | liquidinvestigations/hoover-snoop2 | 28e328401609f53fb56abaa4817619085aa3fbee | [
"MIT"
] | 168 | 2019-11-07T12:38:07.000Z | 2021-04-19T09:53:51.000Z | snoop/data/management/commands/updatetags.py | liquidinvestigations/hoover-snoop2 | 28e328401609f53fb56abaa4817619085aa3fbee | [
"MIT"
] | null | null | null | """Update all the tags.
May be required when doing data migrations.
"""
from django.core.management.base import BaseCommand
from snoop.data.logs import logging_for_management_command
from ... import tasks
class Command(BaseCommand):
"""Update all tags."""
help = "Update all tags"
def handle(self, *ar... | 22.136364 | 60 | 0.700205 | 62 | 487 | 5.33871 | 0.532258 | 0.135952 | 0.1571 | 0.163142 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176591 | 487 | 21 | 61 | 23.190476 | 0.825436 | 0.256674 | 0 | 0 | 0 | 0 | 0.069565 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.75 | 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 |
a0f88a9b60f623f0de76d00f4a5fa905bbed9da5 | 212 | py | Python | example/app/forms.py | modohash/django-hstore-flattenfields | 09626a638b9ef85d28fa5bfef1b040f9926bb95b | [
"BSD-3-Clause"
] | 5 | 2015-09-18T16:35:56.000Z | 2020-12-24T11:46:17.000Z | example/app/forms.py | modohash/django-hstore-flattenfields | 09626a638b9ef85d28fa5bfef1b040f9926bb95b | [
"BSD-3-Clause"
] | 9 | 2020-02-11T22:01:06.000Z | 2021-06-10T17:46:04.000Z | example/app/forms.py | modohash/django-hstore-flattenfields | 09626a638b9ef85d28fa5bfef1b040f9926bb95b | [
"BSD-3-Clause"
] | 2 | 2015-10-20T10:21:30.000Z | 2016-03-23T09:54:54.000Z | '''
Created on 24/05/2013
@author: luan
'''
from hstore_flattenfields.forms import HStoreModelForm
from models import Something
class SomethingForm(HStoreModelForm):
class Meta:
model = Something
| 15.142857 | 54 | 0.745283 | 24 | 212 | 6.541667 | 0.791667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045977 | 0.179245 | 212 | 13 | 55 | 16.307692 | 0.856322 | 0.169811 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a0f9b5609b2e7351715e7a592d8ad7c748a8b704 | 273 | py | Python | Hyeongdo/greedy/boj/1449.py | sonnysorry/codingtest | 478e0168e3209eb97b6b16910027bf12ccc3ccd0 | [
"MIT"
] | 2 | 2021-09-27T19:10:36.000Z | 2021-11-09T05:40:39.000Z | Hyeongdo/greedy/boj/1449.py | sonnysorry/codingtest | 478e0168e3209eb97b6b16910027bf12ccc3ccd0 | [
"MIT"
] | 1 | 2021-11-15T14:56:54.000Z | 2021-11-15T14:56:54.000Z | Hyeongdo/greedy/boj/1449.py | sonnysorry/codingtest | 478e0168e3209eb97b6b16910027bf12ccc3ccd0 | [
"MIT"
] | null | null | null | # 수리공 항승
n, l = map(int, input().split())
hole = list(map(int, input().split()))
hole_list = sorted(hole, reverse=True)
temp = hole_list[0]
for i in range(1, len(hole_list)):
if l > temp - hole_list[i]:
n -= 1
else:
temp = hole_list[i]
print(n) | 17.0625 | 38 | 0.578755 | 47 | 273 | 3.255319 | 0.510638 | 0.313725 | 0.235294 | 0.20915 | 0.313725 | 0.313725 | 0 | 0 | 0 | 0 | 0 | 0.014493 | 0.241758 | 273 | 16 | 39 | 17.0625 | 0.724638 | 0.021978 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.1 | 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 |
9d5d7a8b908de69c61d3db09fd89c2684444e064 | 1,241 | py | Python | tests/test_utils.py | cofin/saq | be81f383a0904e9084e24ccb5334e07fc5b61e00 | [
"MIT"
] | 29 | 2022-01-05T07:07:18.000Z | 2022-03-29T20:09:03.000Z | tests/test_utils.py | cofin/saq | be81f383a0904e9084e24ccb5334e07fc5b61e00 | [
"MIT"
] | 3 | 2022-01-23T17:33:40.000Z | 2022-03-10T03:36:21.000Z | tests/test_utils.py | cofin/saq | be81f383a0904e9084e24ccb5334e07fc5b61e00 | [
"MIT"
] | 4 | 2022-01-06T18:33:33.000Z | 2022-03-23T18:44:19.000Z | import unittest
from saq.utils import exponential_backoff
class TestUtils(unittest.IsolatedAsyncioTestCase):
async def test_exponential_backoff(self):
self.assertAlmostEqual(
exponential_backoff(attempts=1, base_delay=0, max_delay=0, jitter=False), 0
)
self.assertAlmostEqual(
... | 35.457143 | 88 | 0.644641 | 141 | 1,241 | 5.48227 | 0.219858 | 0.232859 | 0.269082 | 0.353169 | 0.768435 | 0.525226 | 0.525226 | 0.525226 | 0.291074 | 0.291074 | 0 | 0.041485 | 0.261886 | 1,241 | 34 | 89 | 36.5 | 0.802402 | 0 | 0 | 0.233333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.266667 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
19cc8593a27648a00a273550de1dea08dee05c63 | 351 | py | Python | bot/telegrambot.py | sahilr05/sitechecker-telegram-plugin | 46108af1cece7277e5b40e6c6df2abb7be4dbc28 | [
"MIT"
] | null | null | null | bot/telegrambot.py | sahilr05/sitechecker-telegram-plugin | 46108af1cece7277e5b40e6c6df2abb7be4dbc28 | [
"MIT"
] | null | null | null | bot/telegrambot.py | sahilr05/sitechecker-telegram-plugin | 46108af1cece7277e5b40e6c6df2abb7be4dbc28 | [
"MIT"
] | null | null | null | import logging
import os
import telegram
logger = logging.getLogger(__name__)
bot = telegram.Bot(token=os.getenv("TG_BOT_TOKEN", "**or add token here**"))
def send_alert(message, user):
bot.send_message(chat_id=user.telegram_id, text=message)
def error(bot, update, error):
logger.warn('Update "%s" caused ... | 21.9375 | 76 | 0.717949 | 52 | 351 | 4.653846 | 0.519231 | 0.066116 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133903 | 351 | 15 | 77 | 23.4 | 0.796053 | 0 | 0 | 0 | 0 | 0 | 0.176638 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 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 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
19df11a70ae711f207350b84f103f2e13488f341 | 405 | py | Python | www/orm/Field/__init__.py | bomberc4/awesome-python3-webapp | a4ce608e989c0c55a73efa58eccf4a94842aaf38 | [
"Apache-2.0"
] | null | null | null | www/orm/Field/__init__.py | bomberc4/awesome-python3-webapp | a4ce608e989c0c55a73efa58eccf4a94842aaf38 | [
"Apache-2.0"
] | null | null | null | www/orm/Field/__init__.py | bomberc4/awesome-python3-webapp | a4ce608e989c0c55a73efa58eccf4a94842aaf38 | [
"Apache-2.0"
] | null | null | null | '''
Created on 2018年4月15日
@author: bomber
'''
class Field(object):
def __init__(self, name, column_type, primary_key, default):
self.name = name
self.column_type = column_type
self.primary_key = primary_key
self.default = default
def __str__(self):
... | 22.5 | 86 | 0.602469 | 48 | 405 | 4.604167 | 0.416667 | 0.180995 | 0.126697 | 0.162896 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024055 | 0.281481 | 405 | 17 | 87 | 23.823529 | 0.735395 | 0.093827 | 0 | 0 | 0 | 0 | 0.032164 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.125 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
19e644f44870cc9bcb6bdb17e0e87e8888b3c981 | 4,348 | py | Python | framework/http/wafbypasser/core/hpp_lib.py | DarKnight24/owtf | cb4d17ecfec1e8a2f22af3cb0ef7b33f8173825c | [
"BSD-3-Clause"
] | 2 | 2017-10-10T06:30:38.000Z | 2021-06-17T12:59:59.000Z | framework/http/wafbypasser/core/hpp_lib.py | unexpectedBy/owtf | 695b6dc723756bffcd6c21f6e962a927758ae4f9 | [
"BSD-3-Clause"
] | null | null | null | framework/http/wafbypasser/core/hpp_lib.py | unexpectedBy/owtf | 695b6dc723756bffcd6c21f6e962a927758ae4f9 | [
"BSD-3-Clause"
] | 3 | 2017-12-30T20:43:22.000Z | 2020-02-29T07:58:32.000Z | """
HPP Functions
"""
import urlparse
from http_helper import HTTPHelper
def asp_hpp(http_helper, methods, payloads, param_name, source, url, headers, body=None):
requests = []
if "URL" in source.upper():
for payload in payloads:
new_url = asp_url_hpp(url, param_name, payload)
... | 41.409524 | 110 | 0.674333 | 560 | 4,348 | 4.973214 | 0.110714 | 0.05386 | 0.077558 | 0.103411 | 0.80754 | 0.776661 | 0.755117 | 0.659246 | 0.620467 | 0.566966 | 0 | 0.000296 | 0.224241 | 4,348 | 104 | 111 | 41.807692 | 0.825378 | 0.062558 | 0 | 0.45 | 0 | 0 | 0.017717 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.025 | 0 | 0.175 | 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 |
c200124390774c0b0316ece780fb541d682e5d68 | 372 | py | Python | Aula37/aula37.py | matheusschuetz/TrabalhoPython | 953957898de633f8f2776681a45a1a15b68e80b9 | [
"MIT"
] | 1 | 2020-01-21T11:43:12.000Z | 2020-01-21T11:43:12.000Z | Aula37/aula37.py | matheusschuetz/TrabalhoPython | 953957898de633f8f2776681a45a1a15b68e80b9 | [
"MIT"
] | null | null | null | Aula37/aula37.py | matheusschuetz/TrabalhoPython | 953957898de633f8f2776681a45a1a15b68e80b9 | [
"MIT"
] | null | null | null | #Criar uma pagina de cadastro de squads(times de desenvolvimento)
#1-Criar tabela squad
#2-Criar dao squad
#3-Criar model squad
#4-Criar Controller squad
#5-Criar view tipo console para realizar as 4 operações de CRUD de squads
#6-Criar View tipo Web para realizar as 4 operações de CRUD de Squads
#Squad: Nome, Descriçã... | 46.5 | 74 | 0.806452 | 60 | 372 | 5 | 0.55 | 0.08 | 0.086667 | 0.1 | 0.253333 | 0.253333 | 0.253333 | 0.253333 | 0.253333 | 0 | 0 | 0.024922 | 0.137097 | 372 | 8 | 74 | 46.5 | 0.909657 | 0.959677 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c20ae3a35f98024efed4e753c9accb34e5a091b5 | 274 | py | Python | src/main.py | rafaelaraujo13/gerador-de-bom-dia | 4226a32bfff44f4f22917d781586bda46fda5edd | [
"MIT"
] | null | null | null | src/main.py | rafaelaraujo13/gerador-de-bom-dia | 4226a32bfff44f4f22917d781586bda46fda5edd | [
"MIT"
] | 4 | 2021-04-30T21:20:41.000Z | 2022-01-13T02:50:13.000Z | src/main.py | rafaelaraujo13/gerador-de-bom-dia | 4226a32bfff44f4f22917d781586bda46fda5edd | [
"MIT"
] | null | null | null | from functions.get_sentence import get_sentence
from functions.get_and_download_image import get_and_download_image
from functions.convert_image import convert_image
def main():
sentence = get_sentence()
get_and_download_image()
convert_image(sentence)
main()
| 24.909091 | 67 | 0.821168 | 38 | 274 | 5.526316 | 0.289474 | 0.185714 | 0.2 | 0.271429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.124088 | 274 | 10 | 68 | 27.4 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
c20c649f65ebbbde2475aee55f76f65da304918d | 113 | py | Python | scripts/cmt/test/__init__.py | kamilisa/cmt | e2cd1da0cd2f185c67b94e68d4673226b55a54ea | [
"MIT"
] | 199 | 2016-03-02T21:41:05.000Z | 2022-03-23T05:44:42.000Z | scripts/cmt/test/__init__.py | kamilisa/cmt | e2cd1da0cd2f185c67b94e68d4673226b55a54ea | [
"MIT"
] | 6 | 2018-03-20T22:23:02.000Z | 2021-06-23T02:35:50.000Z | scripts/cmt/test/__init__.py | kamilisa/cmt | e2cd1da0cd2f185c67b94e68d4673226b55a54ea | [
"MIT"
] | 73 | 2016-04-12T05:13:49.000Z | 2022-03-07T07:58:39.000Z | """
CMT Unit Test framework.
"""
from cmt.test.mayaunittest import TestCase
__all__ = ["TestCase", "run_tests"]
| 16.142857 | 42 | 0.716814 | 14 | 113 | 5.428571 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.132743 | 113 | 6 | 43 | 18.833333 | 0.77551 | 0.212389 | 0 | 0 | 0 | 0 | 0.209877 | 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 |
c2134dc9b81a195d911bdc025a8bef87458b6c27 | 167 | py | Python | main.py | karmek-k/spiewnik-chords | d27dfb968a9d17f4b5c38c4fa0f19d7d54a50218 | [
"MIT"
] | null | null | null | main.py | karmek-k/spiewnik-chords | d27dfb968a9d17f4b5c38c4fa0f19d7d54a50218 | [
"MIT"
] | null | null | null | main.py | karmek-k/spiewnik-chords | d27dfb968a9d17f4b5c38c4fa0f19d7d54a50218 | [
"MIT"
] | null | null | null | from scraper.artist import ArtistPage
from scraper.song import Song
page = ArtistPage('https://spiewnik.wywrota.pl/kombii')
for song in page.scrape():
print(song) | 27.833333 | 55 | 0.766467 | 24 | 167 | 5.333333 | 0.666667 | 0.171875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11976 | 167 | 6 | 56 | 27.833333 | 0.870748 | 0 | 0 | 0 | 0 | 0 | 0.202381 | 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 |
c21497903e8d8cd28c35a8e806778dd90f81b6a0 | 35 | py | Python | __init__.py | huizhuzhao/rfscore | f0ad9fa26f8db7e82c89866fee9be222037e1e88 | [
"MIT"
] | 1 | 2021-07-13T15:30:43.000Z | 2021-07-13T15:30:43.000Z | __init__.py | huizhuzhao/rfscore | f0ad9fa26f8db7e82c89866fee9be222037e1e88 | [
"MIT"
] | null | null | null | __init__.py | huizhuzhao/rfscore | f0ad9fa26f8db7e82c89866fee9be222037e1e88 | [
"MIT"
] | 3 | 2020-02-07T13:57:22.000Z | 2021-02-09T09:04:06.000Z | __all__ = ["config", "credo", "rf"] | 35 | 35 | 0.571429 | 4 | 35 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114286 | 35 | 1 | 35 | 35 | 0.516129 | 0 | 0 | 0 | 0 | 0 | 0.361111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c22550436339db1a62dfb1744a4c234a59916e27 | 505 | py | Python | tests/VenusApproxInterior/test_VenusInterior.py | teald/vplanet | ab640af7d2bbf80c5ea647d5bf971e2ce2c40631 | [
"MIT"
] | 92 | 2018-08-02T22:41:23.000Z | 2022-01-13T20:59:43.000Z | tests/VenusApproxInterior/test_VenusInterior.py | teald/vplanet | ab640af7d2bbf80c5ea647d5bf971e2ce2c40631 | [
"MIT"
] | 104 | 2018-08-01T17:28:02.000Z | 2022-03-31T22:23:13.000Z | tests/VenusApproxInterior/test_VenusInterior.py | teald/vplanet | ab640af7d2bbf80c5ea647d5bf971e2ce2c40631 | [
"MIT"
] | 35 | 2018-06-20T19:32:09.000Z | 2022-01-31T00:58:53.000Z | from benchmark import Benchmark, benchmark
import astropy.units as u
import pytest
@benchmark(
{
"log.final.venus.TMan": {"value": 2679.27122, "unit": u.K},
"log.final.venus.TCore": {"value": 6365.71258, "unit": u.K},
"log.final.venus.RIC": {"value": 0.0, "unit": u.km},
"log.final.... | 29.705882 | 75 | 0.609901 | 67 | 505 | 4.597015 | 0.477612 | 0.12987 | 0.211039 | 0.058442 | 0.201299 | 0.123377 | 0 | 0 | 0 | 0 | 0 | 0.071078 | 0.192079 | 505 | 16 | 76 | 31.5625 | 0.683824 | 0 | 0 | 0 | 0 | 0 | 0.308911 | 0.142574 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.071429 | 0.214286 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
c244addc8b54e5774542c38cf1779d67277e52c8 | 148 | py | Python | dsp/data_convert.py | tinversenorm/vlc | 4ebe84768a12c93a50e68a14a63bdc4a2903f0ac | [
"Apache-2.0"
] | null | null | null | dsp/data_convert.py | tinversenorm/vlc | 4ebe84768a12c93a50e68a14a63bdc4a2903f0ac | [
"Apache-2.0"
] | null | null | null | dsp/data_convert.py | tinversenorm/vlc | 4ebe84768a12c93a50e68a14a63bdc4a2903f0ac | [
"Apache-2.0"
] | null | null | null |
f = open("test_data.txt", "r")
fout = open("test_data_commas.txt", "w")
for line in f:
fout.write(line.replace(" ", ","))
f.close()
fout.close() | 16.444444 | 40 | 0.614865 | 25 | 148 | 3.52 | 0.6 | 0.181818 | 0.272727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135135 | 148 | 9 | 41 | 16.444444 | 0.6875 | 0 | 0 | 0 | 0 | 0 | 0.25 | 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 |
dfa01ad44387d0d5b2b15a863e7cb94ba8a966fe | 249 | py | Python | lightspider/__init__.py | smilelight/lightSpider | 7430324753501c8f61e7152b6403845a74c12dee | [
"Apache-2.0"
] | 12 | 2020-01-07T01:20:54.000Z | 2021-04-25T06:47:53.000Z | lightspider/__init__.py | smilelight/lightSpider | 7430324753501c8f61e7152b6403845a74c12dee | [
"Apache-2.0"
] | 1 | 2020-01-09T13:54:06.000Z | 2020-01-11T09:36:59.000Z | lightspider/__init__.py | smilelight/lightSpider | 7430324753501c8f61e7152b6403845a74c12dee | [
"Apache-2.0"
] | 6 | 2020-01-07T04:06:55.000Z | 2021-04-21T02:40:02.000Z | from .worker import light
from .spider import Spider
from .utils.proxy import DEFAULT_PROXY
from .downloader import get_response, download_image
__all__ = [
'light',
'Spider',
'DEFAULT_PROXY',
'get_response',
'download_image'
]
| 19.153846 | 52 | 0.718876 | 30 | 249 | 5.633333 | 0.466667 | 0.142012 | 0.224852 | 0.284024 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.188755 | 249 | 12 | 53 | 20.75 | 0.836634 | 0 | 0 | 0 | 0 | 0 | 0.200803 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 0 | 0.363636 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
dfb5162c1e9485157d6077a90407b63e8a3c5a38 | 119 | py | Python | test_.py | JasonGibsonUfl/quantumML | 429d20853a03ee801efb574ebe0df66875f2a580 | [
"MIT"
] | 1 | 2021-04-28T08:05:53.000Z | 2021-04-28T08:05:53.000Z | test_.py | JasonGibsonUfl/quantumML | 429d20853a03ee801efb574ebe0df66875f2a580 | [
"MIT"
] | 1 | 2021-09-17T18:21:29.000Z | 2021-09-17T18:21:29.000Z | test_.py | JasonGibsonUfl/quantumML | 429d20853a03ee801efb574ebe0df66875f2a580 | [
"MIT"
] | null | null | null | import unittest
class TestUM(unittest.TestCase):
def test_numbers_3_4(self):
self.assertEqual( 3*4, 12)
| 14.875 | 34 | 0.697479 | 17 | 119 | 4.705882 | 0.764706 | 0.05 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063158 | 0.201681 | 119 | 7 | 35 | 17 | 0.778947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
dfbfe5ccecb771fead814341a5e4cf706aec0177 | 186 | py | Python | problem0188.py | kmarcini/Project-Euler-Python | d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3 | [
"BSD-3-Clause"
] | null | null | null | problem0188.py | kmarcini/Project-Euler-Python | d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3 | [
"BSD-3-Clause"
] | null | null | null | problem0188.py | kmarcini/Project-Euler-Python | d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3 | [
"BSD-3-Clause"
] | null | null | null | ###########################
#
# #188 The hyperexponentiation of a number - Project Euler
# https://projecteuler.net/problem=188
#
# Code by Kevin Marciniak
#
###########################
| 20.666667 | 58 | 0.516129 | 17 | 186 | 5.647059 | 0.941176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036585 | 0.11828 | 186 | 8 | 59 | 23.25 | 0.54878 | 0.623656 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
dfdf391540863438bbd8e4a3c5749bd7027fbd91 | 119 | py | Python | all_files.py | miniprojs5/ResistorValuePrediction | 2d281c26ab7f8d45bff1eefc103f9881b7f1942a | [
"MIT"
] | null | null | null | all_files.py | miniprojs5/ResistorValuePrediction | 2d281c26ab7f8d45bff1eefc103f9881b7f1942a | [
"MIT"
] | null | null | null | all_files.py | miniprojs5/ResistorValuePrediction | 2d281c26ab7f8d45bff1eefc103f9881b7f1942a | [
"MIT"
] | null | null | null | import glob
path = '/home/user/resistor/test/*.jpg'
files=glob.glob(path)
for file in files:
print(file)
| 19.833333 | 42 | 0.647059 | 18 | 119 | 4.277778 | 0.722222 | 0.207792 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210084 | 119 | 5 | 43 | 23.8 | 0.819149 | 0 | 0 | 0 | 0 | 0 | 0.252101 | 0.252101 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.2 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5f06174585a29808852a5d1fba0c911e8c4d8653 | 860 | py | Python | la/__init__.py | mikiec84/la | 705e53df526ed316f5869962b50749f8d873364e | [
"BSD-2-Clause"
] | null | null | null | la/__init__.py | mikiec84/la | 705e53df526ed316f5869962b50749f8d873364e | [
"BSD-2-Clause"
] | null | null | null | la/__init__.py | mikiec84/la | 705e53df526ed316f5869962b50749f8d873364e | [
"BSD-2-Clause"
] | null | null | null | "la init"
# Classes
from la.deflarry import larry
try:
from la.io import (IO, save, load, repack, is_archived_larry,
archive_directory)
except:
# Cannot import h5py; no archiving available.
pass
from numpy import nan, inf
from la.flarry import (union, intersection, stack, ... | 25.294118 | 75 | 0.638372 | 105 | 860 | 5.152381 | 0.561905 | 0.066543 | 0.036969 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001637 | 0.289535 | 860 | 33 | 76 | 26.060606 | 0.883797 | 0.081395 | 0 | 0.291667 | 0 | 0 | 0.045802 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.083333 | 0.375 | null | null | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
5f13c367d989d81ea809e40a8d463f76643d517f | 2,514 | py | Python | scphylo/commands/caller/__init__.py | faridrashidi/scphylo-tools | 4574e2c015da58e59caa38e3b3e49b398c1379c1 | [
"BSD-3-Clause"
] | null | null | null | scphylo/commands/caller/__init__.py | faridrashidi/scphylo-tools | 4574e2c015da58e59caa38e3b3e49b398c1379c1 | [
"BSD-3-Clause"
] | null | null | null | scphylo/commands/caller/__init__.py | faridrashidi/scphylo-tools | 4574e2c015da58e59caa38e3b3e49b398c1379c1 | [
"BSD-3-Clause"
] | null | null | null | """Caller Module."""
from collections import OrderedDict
import click
from scphylo.commands.caller._1rename import rename
from scphylo.commands.caller._1sra import sra
from scphylo.commands.caller._2fastp import fastp
from scphylo.commands.caller._3bwa import bwa
from scphylo.commands.caller._3star import star
from ... | 32.230769 | 77 | 0.789181 | 340 | 2,514 | 5.655882 | 0.311765 | 0.088924 | 0.177847 | 0.234009 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015406 | 0.122116 | 2,514 | 77 | 78 | 32.649351 | 0.855913 | 0.212013 | 0 | 0 | 0 | 0 | 0.019504 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040816 | false | 0 | 0.408163 | 0 | 0.510204 | 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 |
5f19725bcbdd55bcd008ec6a939799c8c99ec141 | 200 | py | Python | fluff/runtime_error.py | emilio2601/fluff-lang | 7d557fda8bff7db207ad31d1d7effaebb5f564c6 | [
"MIT"
] | null | null | null | fluff/runtime_error.py | emilio2601/fluff-lang | 7d557fda8bff7db207ad31d1d7effaebb5f564c6 | [
"MIT"
] | null | null | null | fluff/runtime_error.py | emilio2601/fluff-lang | 7d557fda8bff7db207ad31d1d7effaebb5f564c6 | [
"MIT"
] | null | null | null | from .token import Token
class RuntimeError(Exception):
def __init__(self, token: Token, message: str):
super().__init__(message)
self.message = message
self.token = token | 28.571429 | 51 | 0.665 | 23 | 200 | 5.434783 | 0.521739 | 0.144 | 0.224 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.235 | 200 | 7 | 52 | 28.571429 | 0.816993 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5f3722ba3335ee7c602131c6ee0d3b9b29a03c34 | 217 | py | Python | ex1.py | sandeepsharmaproject/python_hardway | 8a88831667b57140a3153a475cea3d378aea37fe | [
"MIT"
] | null | null | null | ex1.py | sandeepsharmaproject/python_hardway | 8a88831667b57140a3153a475cea3d378aea37fe | [
"MIT"
] | null | null | null | ex1.py | sandeepsharmaproject/python_hardway | 8a88831667b57140a3153a475cea3d378aea37fe | [
"MIT"
] | null | null | null | print("Hello World")
print("Hello Again")
print("I Like typing this")
print("This is fun.")
print("Yay! Printing.")
print("I'd much rather you 'not'.")
print('I"said" do not touch this.')
print("how to fix github")
| 19.727273 | 35 | 0.672811 | 37 | 217 | 3.945946 | 0.648649 | 0.123288 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133641 | 217 | 10 | 36 | 21.7 | 0.776596 | 0 | 0 | 0 | 0 | 0 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
a0371134455111a8fc93fc6f54b3b10002dc8136 | 3,473 | py | Python | config/default.py | chenywang/textcnn | 9946bb487b1d440e42720acadc88ddd02e2dff50 | [
"Apache-2.0"
] | null | null | null | config/default.py | chenywang/textcnn | 9946bb487b1d440e42720acadc88ddd02e2dff50 | [
"Apache-2.0"
] | null | null | null | config/default.py | chenywang/textcnn | 9946bb487b1d440e42720acadc88ddd02e2dff50 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# @Author: disheng
import os
PROJECT_PATH = os.path.abspath(
os.path.join(
os.path.abspath(os.path.dirname(__file__)),
os.pardir))
class DefaultConfig(object):
"""
default config, 由git托管,一般情况下不用修改
可以在config目录下新建configs.py, 更新自己的本地配置,会覆盖此处的配置
未被覆盖的配置将使用此处的配置... | 37.344086 | 89 | 0.716384 | 455 | 3,473 | 5.092308 | 0.248352 | 0.189901 | 0.239534 | 0.278809 | 0.4959 | 0.426413 | 0.270609 | 0 | 0 | 0 | 0 | 0.002788 | 0.173913 | 3,473 | 92 | 90 | 37.75 | 0.80481 | 0.097322 | 0 | 0 | 0 | 0 | 0.313795 | 0.276878 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.018868 | 0 | 0.924528 | 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 |
a03998cc540f66368386a82e787cba141918199e | 127 | py | Python | tutorials/W0D5_Statistics/solutions/W0D5_Tutorial2_Solution_aba8ef46.py | eduardojdiniz/CompNeuro | 20269e66540dc4e802273735c97323020ee37406 | [
"CC-BY-4.0",
"BSD-3-Clause"
] | 2,294 | 2020-05-11T12:05:35.000Z | 2022-03-28T21:23:34.000Z | tutorials/W0D5_Statistics/solutions/W0D5_Tutorial2_Solution_aba8ef46.py | pellet/course-content | bb383857992469e0e7a9c36639ac0d05e842d9bd | [
"CC-BY-4.0",
"BSD-3-Clause"
] | 629 | 2020-05-11T15:42:26.000Z | 2022-03-29T12:23:35.000Z | tutorials/W0D5_Statistics/solutions/W0D5_Tutorial2_Solution_aba8ef46.py | pellet/course-content | bb383857992469e0e7a9c36639ac0d05e842d9bd | [
"CC-BY-4.0",
"BSD-3-Clause"
] | 917 | 2020-05-11T12:47:53.000Z | 2022-03-31T12:14:41.000Z |
"""
Remember that joint probability can generally be expressed as 𝑃(𝑎,𝑏)=𝑃(𝑎|𝑏)𝑃(𝑏)
𝑃(ℎ+,𝑣+)=𝑃(ℎ+|𝑣+)𝑃(𝑣+)=0.1∗0.3=0.03
""" | 18.142857 | 80 | 0.598425 | 32 | 127 | 2.40625 | 0.59375 | 0.077922 | 0.077922 | 0.103896 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063063 | 0.125984 | 127 | 7 | 81 | 18.142857 | 0.621622 | 0.92126 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a040cba8d87f8e95c4534bfe7e1640ecc0d1e602 | 737 | py | Python | iev/iev.py | HelioNeves/rosalind | a9e8a19b548ff7d5f2562b7427659d2b74c88522 | [
"MIT"
] | null | null | null | iev/iev.py | HelioNeves/rosalind | a9e8a19b548ff7d5f2562b7427659d2b74c88522 | [
"MIT"
] | null | null | null | iev/iev.py | HelioNeves/rosalind | a9e8a19b548ff7d5f2562b7427659d2b74c88522 | [
"MIT"
] | null | null | null | # Reading lines from file and putting in a content string
for line in open('rosalind_iev.txt', 'r').readlines():
contents = line.rsplit()
AA_AA = float(contents[0])
AA_Aa = float(contents[1])
AA_aa = float(contents[2])
Aa_Aa = float(contents[3])
Aa_aa = float(contents[4])
aa_aa = float(contents[5])
def iev_p... | 29.48 | 67 | 0.640434 | 138 | 737 | 3.130435 | 0.253623 | 0.416667 | 0.416667 | 0.5 | 0.303241 | 0.212963 | 0.212963 | 0.212963 | 0.212963 | 0.212963 | 0 | 0.037931 | 0.213026 | 737 | 24 | 68 | 30.708333 | 0.706897 | 0.074627 | 0 | 0 | 0 | 0 | 0.025 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0 | 0 | 0.111111 | 0.055556 | 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 |
a04b417e62dc382355ba31db6e90a7cecb88eb86 | 684 | py | Python | deals/migrations/0003_auto_20210729_0728.py | xuppr/GameDealsDashboard-server | a15e90fe6a37431db1b4de565e9e7d54d2aee223 | [
"MIT"
] | null | null | null | deals/migrations/0003_auto_20210729_0728.py | xuppr/GameDealsDashboard-server | a15e90fe6a37431db1b4de565e9e7d54d2aee223 | [
"MIT"
] | null | null | null | deals/migrations/0003_auto_20210729_0728.py | xuppr/GameDealsDashboard-server | a15e90fe6a37431db1b4de565e9e7d54d2aee223 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.5 on 2021-07-29 07:28
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('deals', '0002_auto_20210728_1353'),
]
operations = [
migrations.AlterField(
model_name='deal',
name='normalPrice',
... | 23.586207 | 47 | 0.554094 | 65 | 684 | 5.738462 | 0.553846 | 0.160858 | 0.201072 | 0.233244 | 0.530831 | 0.453083 | 0.353887 | 0.353887 | 0.353887 | 0.353887 | 0 | 0.067538 | 0.328947 | 684 | 28 | 48 | 24.428571 | 0.745098 | 0.065789 | 0 | 0.545455 | 1 | 0 | 0.105181 | 0.036107 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.181818 | 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 |
a0616536d70e2b6784730881489d1bfc3adb2746 | 228 | py | Python | storage/apps.py | andressamagblr/vault | f37d61b93a96d91278b5d4163f336ada7209240f | [
"Apache-2.0"
] | 15 | 2015-03-19T13:05:06.000Z | 2021-08-13T19:17:25.000Z | storage/apps.py | andressamagblr/vault | f37d61b93a96d91278b5d4163f336ada7209240f | [
"Apache-2.0"
] | 24 | 2015-02-24T14:20:06.000Z | 2021-12-15T13:33:52.000Z | storage/apps.py | andressamagblr/vault | f37d61b93a96d91278b5d4163f336ada7209240f | [
"Apache-2.0"
] | 11 | 2016-09-12T07:54:01.000Z | 2021-10-31T20:26:43.000Z | # -*- coding: utf-8 -*-
from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
class StorageConfig(AppConfig):
name = 'storage'
verbose_name = _("Swift Browser")
vault_app = True
| 20.727273 | 54 | 0.710526 | 28 | 228 | 5.607143 | 0.821429 | 0.127389 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005376 | 0.184211 | 228 | 10 | 55 | 22.8 | 0.83871 | 0.092105 | 0 | 0 | 0 | 0 | 0.097561 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a06f13724233cd3475b550622ef8bbd83364c91c | 221 | py | Python | password.py | umeshlab/password.github.io | 140d1ea43ba1533ca16133d2eb97d1c0c8ba6529 | [
"MIT"
] | null | null | null | password.py | umeshlab/password.github.io | 140d1ea43ba1533ca16133d2eb97d1c0c8ba6529 | [
"MIT"
] | null | null | null | password.py | umeshlab/password.github.io | 140d1ea43ba1533ca16133d2eb97d1c0c8ba6529 | [
"MIT"
] | null | null | null | import random
chars ='abcdefghijklmnopqrstuvwxyz1234567890@#$*!?();:/'
length =input('password length ?')
length=int(length)
password=''
for c in range(length):
password +=random.choice(chars)
print(password)
| 24.555556 | 57 | 0.705882 | 23 | 221 | 6.782609 | 0.608696 | 0.179487 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052083 | 0.131222 | 221 | 8 | 58 | 27.625 | 0.760417 | 0 | 0 | 0 | 0 | 0 | 0.300469 | 0.220657 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.5 | 0.125 | 0 | 0.125 | 0.125 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
a09324e34422842c436d12f62978f1e373790b79 | 274 | py | Python | characters.py | venkat24/haohaoxuexi | 858d6f15effefd9464d8a902ff9c95988571369c | [
"MIT"
] | 1 | 2020-07-24T06:05:38.000Z | 2020-07-24T06:05:38.000Z | characters.py | venkat24/haohaoxuexi | 858d6f15effefd9464d8a902ff9c95988571369c | [
"MIT"
] | null | null | null | characters.py | venkat24/haohaoxuexi | 858d6f15effefd9464d8a902ff9c95988571369c | [
"MIT"
] | null | null | null | from enum import Enum
class CharacterSet(Enum):
simplified = "simplified"
traditional = "traditional"
def __str__(self):
return self.value
def getOpposite(self):
return self.traditional if self.value == self.simplified else self.simplified | 24.909091 | 85 | 0.70073 | 31 | 274 | 6.064516 | 0.483871 | 0.106383 | 0.148936 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.218978 | 274 | 11 | 85 | 24.909091 | 0.878505 | 0 | 0 | 0 | 0 | 0 | 0.076364 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.25 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
a093f4c76aeea6472c6b4c87faef722b1b36d8e4 | 166 | py | Python | main.py | fon-Luchs/Poof | a9bdeb896d7bf46e64b53ca14d39320248e8d6a8 | [
"MIT"
] | null | null | null | main.py | fon-Luchs/Poof | a9bdeb896d7bf46e64b53ca14d39320248e8d6a8 | [
"MIT"
] | null | null | null | main.py | fon-Luchs/Poof | a9bdeb896d7bf46e64b53ca14d39320248e8d6a8 | [
"MIT"
] | null | null | null | import Poof_debugger
debugger = Poof_debugger.debugger()
pid = raw_input("Enter the PID of the process to attach to: ")
debugger.attach(int(pid))
debugger.detach()
| 20.75 | 62 | 0.76506 | 25 | 166 | 4.96 | 0.56 | 0.193548 | 0.322581 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126506 | 166 | 7 | 63 | 23.714286 | 0.855172 | 0 | 0 | 0 | 0 | 0 | 0.259036 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 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 |
a0b39f0670bd46aa2e6f724cc90f3b01d061a540 | 76 | py | Python | forcefield_utilities/__init__.py | mosdef-hub/forcefield-utilities | 6424f9c8c2935399171ee7056a0d6b408cabda81 | [
"MIT"
] | 1 | 2022-03-15T15:14:02.000Z | 2022-03-15T15:14:02.000Z | forcefield_utilities/__init__.py | mosdef-hub/forcefield-utilities | 6424f9c8c2935399171ee7056a0d6b408cabda81 | [
"MIT"
] | 5 | 2021-11-12T01:35:55.000Z | 2022-03-23T15:45:29.000Z | forcefield_utilities/__init__.py | mosdef-hub/forcefield-utilities | 6424f9c8c2935399171ee7056a0d6b408cabda81 | [
"MIT"
] | 2 | 2022-03-15T15:14:06.000Z | 2022-03-23T00:11:24.000Z | from forcefield_utilities.xml_loader import FoyerFFs
__version__ = "0.1.2"
| 19 | 52 | 0.815789 | 11 | 76 | 5.090909 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044118 | 0.105263 | 76 | 3 | 53 | 25.333333 | 0.779412 | 0 | 0 | 0 | 0 | 0 | 0.065789 | 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 |
a0bafe6b2d28e95a54623d3c65c8582fd157e0f7 | 852 | py | Python | python/architectures/compressor_conv_small_addendum.py | anands-repo/hello | 743ff49c0de97a985643280a3b5cb562c58e7fb7 | [
"MIT"
] | 7 | 2020-03-27T06:33:24.000Z | 2022-03-31T16:16:47.000Z | python/architectures/compressor_conv_small_addendum.py | anands-repo/hello | 743ff49c0de97a985643280a3b5cb562c58e7fb7 | [
"MIT"
] | 3 | 2021-08-24T08:33:03.000Z | 2022-01-10T09:30:21.000Z | python/architectures/compressor_conv_small_addendum.py | anands-repo/hello | 743ff49c0de97a985643280a3b5cb562c58e7fb7 | [
"MIT"
] | null | null | null | # © 2019 University of Illinois Board of Trustees. All rights reserved
import NNTools
weight_norm = False
config = None
norm_type = "BatchNorm1d"
def gen_config():
global config
config = [
NNTools.ResidualBlockFTShortcut(
inChannels=128,
outChannels=128,
kernelSiz... | 23.666667 | 71 | 0.532864 | 87 | 852 | 5.068966 | 0.390805 | 0.027211 | 0.181406 | 0.195011 | 0.653061 | 0.653061 | 0.653061 | 0.653061 | 0.653061 | 0.653061 | 0 | 0.079336 | 0.36385 | 852 | 35 | 72 | 24.342857 | 0.732472 | 0.10446 | 0 | 0.689655 | 0 | 0 | 0.014493 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.034483 | 0 | 0.068966 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2627a3df1e8127b7bfcfaddc98f5e5ca6c22f01e | 3,304 | py | Python | data-detective-airflow/tests/operators/extractors/test_tsftpoperator.py | dmitriy-e/metadata-governance | 018a879951dee3f3c2c05ac8e05b8360dd7f4ab3 | [
"Apache-2.0"
] | 5 | 2021-12-01T09:55:23.000Z | 2021-12-21T16:23:33.000Z | data-detective-airflow/tests/operators/extractors/test_tsftpoperator.py | dmitriy-e/metadata-governance | 018a879951dee3f3c2c05ac8e05b8360dd7f4ab3 | [
"Apache-2.0"
] | 1 | 2022-03-14T16:50:41.000Z | 2022-03-14T16:50:41.000Z | data-detective-airflow/tests/operators/extractors/test_tsftpoperator.py | dmitriy-e/metadata-governance | 018a879951dee3f3c2c05ac8e05b8360dd7f4ab3 | [
"Apache-2.0"
] | 2 | 2021-11-03T09:43:09.000Z | 2021-11-17T10:16:29.000Z | import datetime
import allure
import pytest
from airflow.models import TaskInstance
from data_detective_airflow.operators import TSFTPOperator
from data_detective_airflow.test_utilities import run_and_read
from tests_data.fixtures.File.file_fixtures import (
prepare_data_files,
get_keys_of_correct_files,
... | 37.977011 | 92 | 0.684625 | 451 | 3,304 | 4.740577 | 0.201774 | 0.058934 | 0.052385 | 0.049111 | 0.75725 | 0.712816 | 0.700187 | 0.678204 | 0.643124 | 0.604771 | 0 | 0.003076 | 0.212772 | 3,304 | 86 | 93 | 38.418605 | 0.818916 | 0.023608 | 0 | 0.486111 | 0 | 0 | 0.111352 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 1 | 0.041667 | false | 0 | 0.097222 | 0 | 0.138889 | 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 |
262fe1ff6714325ce1b50009b71210d80755564b | 267 | py | Python | tests/test_fizzbuzz.py | 515hikaru/python-templates | 66d5aaceb9a0ad57aff568f3f509673be1aa87c2 | [
"MIT"
] | null | null | null | tests/test_fizzbuzz.py | 515hikaru/python-templates | 66d5aaceb9a0ad57aff568f3f509673be1aa87c2 | [
"MIT"
] | null | null | null | tests/test_fizzbuzz.py | 515hikaru/python-templates | 66d5aaceb9a0ad57aff568f3f509673be1aa87c2 | [
"MIT"
] | null | null | null | """
Sample some tests
"""
from python_template import fizzbuzz
def test_fizzbuzz():
"""
test for fizzbuzz func
"""
assert fizzbuzz(11) == "11"
assert fizzbuzz(12) == "fizz"
assert fizzbuzz(15) == "fizzbuzz"
assert fizzbuzz(20) == "buzz"
| 17.8 | 37 | 0.617978 | 31 | 267 | 5.258065 | 0.612903 | 0.343558 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04902 | 0.235955 | 267 | 14 | 38 | 19.071429 | 0.75 | 0.149813 | 0 | 0 | 0 | 0 | 0.088235 | 0 | 0 | 0 | 0 | 0 | 0.666667 | 1 | 0.166667 | true | 0 | 0.166667 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2632df9dcbb43c40283056b4fb3e9d54be10572b | 1,070 | py | Python | huaweicloud-sdk-core/huaweicloudsdkcore/auth/cache.py | NQLoong/huaweicloud-sdk-python-v3 | 677944a0b722147c6e105c53df9110724d64152a | [
"Apache-2.0"
] | 64 | 2020-06-12T07:05:07.000Z | 2022-03-30T03:32:50.000Z | huaweicloud-sdk-core/huaweicloudsdkcore/auth/cache.py | mawenbo-huawei/huaweicloud-sdk-python-v3 | 677944a0b722147c6e105c53df9110724d64152a | [
"Apache-2.0"
] | 11 | 2020-07-06T07:56:54.000Z | 2022-01-11T11:14:40.000Z | huaweicloud-sdk-core/huaweicloudsdkcore/auth/cache.py | mawenbo-huawei/huaweicloud-sdk-python-v3 | 677944a0b722147c6e105c53df9110724d64152a | [
"Apache-2.0"
] | 24 | 2020-06-08T11:42:13.000Z | 2022-03-04T06:44:08.000Z | # coding: utf-8
"""
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache LICENSE, Version 2.0 (the
"LICENSE");... | 32.424242 | 74 | 0.752336 | 165 | 1,070 | 4.757576 | 0.557576 | 0.076433 | 0.063694 | 0.040764 | 0.043312 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00578 | 0.191589 | 1,070 | 32 | 75 | 33.4375 | 0.901734 | 0.720561 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.125 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
263d57c0c87df677a9dfe6d1bdc9cba85b499964 | 43 | py | Python | dataformat-xml-dom/src/test/resources/org/camunda/spin/python/xml/dom/XmlDomMapJavaToXmlPythonTest.shouldFailWithNull.py | ingorichtsmeier/camunda-spin | f6f929cb4b49f5be3c06fcecf03008fec9fe25c1 | [
"Apache-2.0"
] | 27 | 2015-02-15T22:01:39.000Z | 2022-03-02T05:41:29.000Z | dataformat-xml-dom/src/test/resources/org/camunda/spin/python/xml/dom/XmlDomMapJavaToXmlPythonTest.shouldFailWithNull.py | ingorichtsmeier/camunda-spin | f6f929cb4b49f5be3c06fcecf03008fec9fe25c1 | [
"Apache-2.0"
] | 101 | 2015-06-05T06:53:56.000Z | 2022-02-28T19:32:44.000Z | dataformat-xml-dom/src/test/resources/org/camunda/spin/python/xml/dom/XmlDomMapJavaToXmlPythonTest.shouldFailWithNull.py | ingorichtsmeier/camunda-spin | f6f929cb4b49f5be3c06fcecf03008fec9fe25c1 | [
"Apache-2.0"
] | 25 | 2015-05-26T21:28:42.000Z | 2021-07-06T10:04:01.000Z | xml = S(None, "application/xml").toString() | 43 | 43 | 0.697674 | 6 | 43 | 5 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069767 | 43 | 1 | 43 | 43 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0.340909 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
263dd3978ced1ea581fdbe81c152c01414a0789c | 1,214 | py | Python | fancy/descriptor/method_descriptor_base/simple_method_descriptor.py | susautw/fancy_descriptors | 884331742a1c69671c71180db6a9a6532e0024cb | [
"MIT"
] | null | null | null | fancy/descriptor/method_descriptor_base/simple_method_descriptor.py | susautw/fancy_descriptors | 884331742a1c69671c71180db6a9a6532e0024cb | [
"MIT"
] | null | null | null | fancy/descriptor/method_descriptor_base/simple_method_descriptor.py | susautw/fancy_descriptors | 884331742a1c69671c71180db6a9a6532e0024cb | [
"MIT"
] | 1 | 2021-04-09T13:34:47.000Z | 2021-04-09T13:34:47.000Z | from copy import copy
from typing import Callable
from fancy.descriptor.method_descriptor_base import MethodDescriptorBase
class SimpleMethodDescriptor(MethodDescriptorBase):
"""
This class provide a simplest implementation of MethodDescriptorBase
Any class should not mark methods as this descriptor, exc... | 29.609756 | 76 | 0.68369 | 143 | 1,214 | 5.587413 | 0.377622 | 0.050063 | 0.027534 | 0.047559 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.240527 | 1,214 | 40 | 77 | 30.35 | 0.866594 | 0.133443 | 0 | 0 | 0 | 0 | 0.062257 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.24 | false | 0 | 0.12 | 0.12 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
26488c2c7c5c3df4f8025c722c8b55e0ad3da496 | 44,552 | py | Python | stage/standard/test_jdbc_producer_destination.py | streamsets/datacollector-tests | 6c3e908768e1d4a586e9183e2141096921ecd5be | [
"Apache-2.0"
] | 14 | 2019-03-04T10:12:39.000Z | 2021-11-24T16:17:09.000Z | stage/standard/test_jdbc_producer_destination.py | Pragatibs/datacollector-tests | aac53b2f0e056009ef0e437c8430651e3cf4d502 | [
"Apache-2.0"
] | 48 | 2019-03-08T14:59:06.000Z | 2021-08-13T14:49:56.000Z | stage/standard/test_jdbc_producer_destination.py | Pragatibs/datacollector-tests | aac53b2f0e056009ef0e437c8430651e3cf4d502 | [
"Apache-2.0"
] | 23 | 2018-09-24T20:49:17.000Z | 2021-11-24T16:17:11.000Z | # Copyright 2020 StreamSets Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | 49.392461 | 177 | 0.604776 | 6,469 | 44,552 | 4.059515 | 0.068635 | 0.034728 | 0.038384 | 0.050569 | 0.778874 | 0.73691 | 0.705571 | 0.649023 | 0.621378 | 0.608507 | 0 | 0.163816 | 0.17447 | 44,552 | 901 | 178 | 49.447281 | 0.550205 | 0.060671 | 0 | 0.480485 | 0 | 0.009421 | 0.379392 | 0.029436 | 0 | 0 | 0 | 0 | 0.008075 | 1 | 0.018843 | false | 0 | 0.012113 | 0 | 0.030956 | 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 |
2664cfab288742ba2e0757d8b25ae78095f40c8a | 547 | py | Python | terrascript/provider/camptocamp/jwt.py | mjuenema/python-terrascript | 6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d | [
"BSD-2-Clause"
] | 507 | 2017-07-26T02:58:38.000Z | 2022-01-21T12:35:13.000Z | terrascript/provider/camptocamp/jwt.py | mjuenema/python-terrascript | 6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d | [
"BSD-2-Clause"
] | 135 | 2017-07-20T12:01:59.000Z | 2021-10-04T22:25:40.000Z | terrascript/provider/camptocamp/jwt.py | mjuenema/python-terrascript | 6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d | [
"BSD-2-Clause"
] | 81 | 2018-02-20T17:55:28.000Z | 2022-01-31T07:08:40.000Z | # terrascript/provider/camptocamp/jwt.py
# Automatically generated by tools/makecode.py (24-Sep-2021 15:19:50 UTC)
import terrascript
class jwt(terrascript.Provider):
"""Terraform Provider for generating JSON Web Tokens"""
__description__ = "Terraform Provider for generating JSON Web Tokens"
__namespace... | 27.35 | 73 | 0.720293 | 65 | 547 | 5.569231 | 0.676923 | 0.140884 | 0.110497 | 0.165746 | 0.237569 | 0.237569 | 0.237569 | 0 | 0 | 0 | 0 | 0.063319 | 0.162706 | 547 | 19 | 74 | 28.789474 | 0.727074 | 0.294333 | 0 | 0 | 1 | 0 | 0.398417 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.9 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
267eaf5b28b65e85fe0051196221c96edcc2f68a | 154,389 | py | Python | intersight/__init__.py | sdnit-se/intersight-python | 551f7685c0f76bb8af60ec83ffb6f9672d49a4ae | [
"Apache-2.0"
] | 21 | 2018-03-29T14:20:35.000Z | 2021-10-13T05:11:41.000Z | intersight/__init__.py | sdnit-se/intersight-python | 551f7685c0f76bb8af60ec83ffb6f9672d49a4ae | [
"Apache-2.0"
] | 14 | 2018-01-30T15:45:46.000Z | 2022-02-23T14:23:21.000Z | intersight/__init__.py | sdnit-se/intersight-python | 551f7685c0f76bb8af60ec83ffb6f9672d49a4ae | [
"Apache-2.0"
] | 18 | 2018-01-03T15:09:56.000Z | 2021-07-16T02:21:54.000Z | # coding: utf-8
"""
Cisco Intersight OpenAPI specification.
The Cisco Intersight OpenAPI specification.
OpenAPI spec version: 1.0.9-1461
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
# import models into sdk package
from .models.aa... | 69.859276 | 128 | 0.914379 | 17,582 | 154,389 | 7.653225 | 0.162553 | 0.139121 | 0.023016 | 0.005618 | 0.309708 | 0.137679 | 0.032447 | 0.005106 | 0 | 0 | 0 | 0.000302 | 0.057115 | 154,389 | 2,209 | 129 | 69.890901 | 0.924051 | 0.001788 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.002285 | 0.999543 | 0 | 0.999543 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
268ead5fc8dcf882d8675f6ebd04806afb1e8dad | 26 | py | Python | __init__.py | RentFreeMedia/python-video-ids | 077dffb9f26456e703fb4e396a81df883ae4d0e3 | [
"MIT"
] | null | null | null | __init__.py | RentFreeMedia/python-video-ids | 077dffb9f26456e703fb4e396a81df883ae4d0e3 | [
"MIT"
] | null | null | null | __init__.py | RentFreeMedia/python-video-ids | 077dffb9f26456e703fb4e396a81df883ae4d0e3 | [
"MIT"
] | null | null | null | __all__ = ['test_youtube'] | 26 | 26 | 0.730769 | 3 | 26 | 4.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 26 | 1 | 26 | 26 | 0.583333 | 0 | 0 | 0 | 0 | 0 | 0.444444 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
cd07eb1aa137bce3c41cc3a6815ac8bcfe863aeb | 321 | py | Python | hackaton/desktop/admin.py | TolimanStaR/Tender-hack-Hackaton | 3a9c08ffff3717b4930543545bc855c8a6bbe3f4 | [
"Unlicense"
] | null | null | null | hackaton/desktop/admin.py | TolimanStaR/Tender-hack-Hackaton | 3a9c08ffff3717b4930543545bc855c8a6bbe3f4 | [
"Unlicense"
] | null | null | null | hackaton/desktop/admin.py | TolimanStaR/Tender-hack-Hackaton | 3a9c08ffff3717b4930543545bc855c8a6bbe3f4 | [
"Unlicense"
] | null | null | null | from django.contrib import admin
from .models import SiteUser
from django.contrib.sessions.models import Session
@admin.register(SiteUser)
class SiteUserAdmin(admin.ModelAdmin):
list_display = ('session_key', 'image')
@admin.register(Session)
class SessionAdmin(admin.ModelAdmin):
list_display = ('objects',)... | 22.928571 | 50 | 0.775701 | 38 | 321 | 6.473684 | 0.5 | 0.081301 | 0.138211 | 0.211382 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115265 | 321 | 13 | 51 | 24.692308 | 0.866197 | 0 | 0 | 0 | 0 | 0 | 0.071651 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.777778 | 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 |
cd7ff798161293c5634b306589ccfd80b2981fbc | 158 | py | Python | plugins/debate/__init__.py | Akins2229/OpenDebates | 8b7a4618895690512b211ae0c387d26ac9b3af30 | [
"Apache-2.0"
] | 2 | 2021-04-03T16:43:27.000Z | 2021-04-03T16:48:43.000Z | plugins/debate/__init__.py | Akins2229/OpenDebates | 8b7a4618895690512b211ae0c387d26ac9b3af30 | [
"Apache-2.0"
] | 8 | 2020-05-07T12:12:16.000Z | 2021-07-07T14:57:52.000Z | plugins/debate/__init__.py | Akins2229/OpenDebates | 8b7a4618895690512b211ae0c387d26ac9b3af30 | [
"Apache-2.0"
] | 4 | 2021-03-21T15:47:58.000Z | 2021-09-16T00:12:45.000Z | from plugins.debate.layout import ServerSetup
plugin_data = {"name": "Debate Plugins", "database": True}
def setup(bot):
bot.add_cog(ServerSetup(bot))
| 19.75 | 58 | 0.727848 | 21 | 158 | 5.380952 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.132911 | 158 | 7 | 59 | 22.571429 | 0.824818 | 0 | 0 | 0 | 0 | 0 | 0.164557 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
cd99c9c0313101568f699d89844f4fcd372cee24 | 264 | py | Python | issuelab/base/user.py | tafilz/yittrab | b324ecfc5cf85c62d3b453fed30f4ef2c67c87bb | [
"MIT"
] | null | null | null | issuelab/base/user.py | tafilz/yittrab | b324ecfc5cf85c62d3b453fed30f4ef2c67c87bb | [
"MIT"
] | 4 | 2020-08-25T18:48:30.000Z | 2020-08-25T19:12:05.000Z | issuelab/base/user.py | tafilz/youtrack-to-gitlab | b324ecfc5cf85c62d3b453fed30f4ef2c67c87bb | [
"MIT"
] | null | null | null | from pydantic import BaseModel
class User(BaseModel):
id: int = -1
name: str = ""
username: str
def __eq__(self, other):
return self.username == other.username
def __hash__(self):
return hash(('username', self.username)) | 20.307692 | 48 | 0.617424 | 31 | 264 | 5 | 0.580645 | 0.154839 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005181 | 0.268939 | 264 | 13 | 48 | 20.307692 | 0.797927 | 0 | 0 | 0 | 0 | 0 | 0.030189 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0.222222 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
269c2853e5d3eb218e49e523611d223a987f5dac | 315 | py | Python | website/views.py | RFNshare/StraightIntLtd | 40b0aecbddeee193a6dd9439fad6c974dee979e0 | [
"MIT"
] | null | null | null | website/views.py | RFNshare/StraightIntLtd | 40b0aecbddeee193a6dd9439fad6c974dee979e0 | [
"MIT"
] | null | null | null | website/views.py | RFNshare/StraightIntLtd | 40b0aecbddeee193a6dd9439fad6c974dee979e0 | [
"MIT"
] | 1 | 2021-07-13T10:14:45.000Z | 2021-07-13T10:14:45.000Z | from django.http import HttpResponse
from django.shortcuts import render
# Create your views here.
from django.views import View
class HomeView(View):
def get(self, request):
return render(request, 'website/index.html')
def post(self, request):
return HttpResponse('Class based view')
| 19.6875 | 52 | 0.71746 | 41 | 315 | 5.512195 | 0.585366 | 0.132743 | 0.150442 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.196825 | 315 | 15 | 53 | 21 | 0.893281 | 0.073016 | 0 | 0 | 0 | 0 | 0.117241 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.375 | 0.25 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 3 |
26a375c2ac2f48ae8ce2a71a507afa8667786568 | 145 | py | Python | src/pibayer/tests/test_mod.py | scienceopen/raspberrypi_raw_camera | 6ef5fc14a2c0f402a5f441331b229375d307986d | [
"MIT"
] | 8 | 2018-11-28T15:39:33.000Z | 2021-12-24T04:45:50.000Z | src/pibayer/tests/test_mod.py | scienceopen/raspberrypi_raw_camera | 6ef5fc14a2c0f402a5f441331b229375d307986d | [
"MIT"
] | 1 | 2018-08-16T18:28:27.000Z | 2018-08-21T03:02:50.000Z | src/pibayer/tests/test_mod.py | scienceopen/raspberrypi_raw_camera | 6ef5fc14a2c0f402a5f441331b229375d307986d | [
"MIT"
] | 2 | 2015-12-02T03:44:49.000Z | 2016-01-10T20:57:58.000Z | import pibayer
Nimg = 2
exposure_sec = 0.1
def test_acq_seq():
img = pibayer.bayerseq(Nimg, exposure_sec)
assert img.shape[0] == Nimg
| 14.5 | 46 | 0.689655 | 23 | 145 | 4.173913 | 0.695652 | 0.229167 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 0.2 | 145 | 9 | 47 | 16.111111 | 0.793103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
26ac68b65c65bfb72ee9907ea28d10f83a19fec2 | 712 | py | Python | Controllers/Launch_Programs_Controller.py | brianr01/robot-api | 73e6f3da9287fcf22618a6244370105fee164c51 | [
"MIT"
] | null | null | null | Controllers/Launch_Programs_Controller.py | brianr01/robot-api | 73e6f3da9287fcf22618a6244370105fee164c51 | [
"MIT"
] | null | null | null | Controllers/Launch_Programs_Controller.py | brianr01/robot-api | 73e6f3da9287fcf22618a6244370105fee164c51 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from flask import Flask, render_template, Response, Blueprint, request
import cv2, sys, threading
sys.path.append(sys.path[0] + '/Helpers')
from Robot_Helper import robot
sys.path.append(sys.path[0] + '/Programs')
from Calibrate_Sticker_Location_Program import Calibrate_Sticker_Location_Program
... | 28.48 | 81 | 0.800562 | 87 | 712 | 6.172414 | 0.425287 | 0.208566 | 0.312849 | 0.288641 | 0.331471 | 0.251397 | 0.173184 | 0.173184 | 0 | 0 | 0 | 0.004754 | 0.113764 | 712 | 24 | 82 | 29.666667 | 0.846276 | 0.02809 | 0 | 0 | 0 | 0 | 0.117391 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.266667 | 0 | 0.4 | 0.133333 | 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 |
26adce1d0b8411c1d4efed897cde68406c3f3f5b | 136 | py | Python | src/main.py | SaarLevy/wp-downloader | 9e2b57e15de4f5d63100378ed42917c23626241e | [
"MIT"
] | null | null | null | src/main.py | SaarLevy/wp-downloader | 9e2b57e15de4f5d63100378ed42917c23626241e | [
"MIT"
] | null | null | null | src/main.py | SaarLevy/wp-downloader | 9e2b57e15de4f5d63100378ed42917c23626241e | [
"MIT"
] | null | null | null | import os
import reddit
path = '/home/saar/Pictures/wp-test'
reddit.crawl_reddit('wallpapers', 'wallpaper', 'EarthPorn', 'spaceporn')
| 19.428571 | 72 | 0.742647 | 17 | 136 | 5.882353 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095588 | 136 | 6 | 73 | 22.666667 | 0.813008 | 0 | 0 | 0 | 0 | 0 | 0.470588 | 0.198529 | 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 |
26b54cbc36888a1a4d2d42e04cfd42fd78f800c9 | 97 | py | Python | secret.py | Aartizada/Instagram-bot | 33bd44da2277c7e50d85f5fdd42209956f2e7739 | [
"MIT"
] | 1 | 2020-05-17T08:14:19.000Z | 2020-05-17T08:14:19.000Z | secret.py | Aartizada/Instagram-bot | 33bd44da2277c7e50d85f5fdd42209956f2e7739 | [
"MIT"
] | null | null | null | secret.py | Aartizada/Instagram-bot | 33bd44da2277c7e50d85f5fdd42209956f2e7739 | [
"MIT"
] | null | null | null | # Change these to your instagram login credentials.
username = "Username"
password = "Password"
| 19.4 | 51 | 0.762887 | 11 | 97 | 6.727273 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154639 | 97 | 4 | 52 | 24.25 | 0.902439 | 0.505155 | 0 | 0 | 0 | 0 | 0.347826 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.5 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
26c6032e81529d70d5bf3f74fe4f3ff813549493 | 2,031 | py | Python | tools/python/boutiques/tests/test_example2.py | jerdra/boutiques | f6ee252fd1332ec686dc76dc12e52a0d69c685c3 | [
"MIT"
] | null | null | null | tools/python/boutiques/tests/test_example2.py | jerdra/boutiques | f6ee252fd1332ec686dc76dc12e52a0d69c685c3 | [
"MIT"
] | null | null | null | tools/python/boutiques/tests/test_example2.py | jerdra/boutiques | f6ee252fd1332ec686dc76dc12e52a0d69c685c3 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import os
import subprocess
from unittest import TestCase
from boutiques import __file__ as bfile
import boutiques as bosh
class TestExample2(TestCase):
def get_examples_dir(self):
return os.path.join(os.path.dirname(bfile),
"schema", "examples")
de... | 36.927273 | 79 | 0.495815 | 207 | 2,031 | 4.681159 | 0.246377 | 0.074303 | 0.113519 | 0.130031 | 0.75129 | 0.727554 | 0.727554 | 0.691434 | 0.691434 | 0.691434 | 0 | 0.019417 | 0.391433 | 2,031 | 54 | 80 | 37.611111 | 0.764563 | 0.009847 | 0 | 0.555556 | 0 | 0 | 0.083085 | 0 | 0 | 0 | 0 | 0 | 0.088889 | 1 | 0.088889 | false | 0 | 0.111111 | 0.022222 | 0.244444 | 0.044444 | 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 |
26e5912968d7559cad4d48e4c17546ec93731fd5 | 53 | py | Python | apps/setting/__init__.py | lixiaolongxl/DBlog | 7de45c9d571499109f46c1e05be764062e7554f9 | [
"MIT"
] | null | null | null | apps/setting/__init__.py | lixiaolongxl/DBlog | 7de45c9d571499109f46c1e05be764062e7554f9 | [
"MIT"
] | 11 | 2020-03-24T17:45:37.000Z | 2022-03-12T00:04:10.000Z | apps/setting/__init__.py | lixiaolongxl/DBlog | 7de45c9d571499109f46c1e05be764062e7554f9 | [
"MIT"
] | null | null | null | default_app_config= "apps.setting.apps.SettingConfig" | 53 | 53 | 0.867925 | 7 | 53 | 6.285714 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018868 | 53 | 1 | 53 | 53 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0.574074 | 0.574074 | 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 |
26e8a221a24569079ccc3462d2ebd2de0fe90f52 | 111 | py | Python | python/pynetplot/plotscript.py | nadurthi/cpputility | cd89e507e850c4fa46bc0640be62f4b24b37d553 | [
"MIT"
] | null | null | null | python/pynetplot/plotscript.py | nadurthi/cpputility | cd89e507e850c4fa46bc0640be62f4b24b37d553 | [
"MIT"
] | null | null | null | python/pynetplot/plotscript.py | nadurthi/cpputility | cd89e507e850c4fa46bc0640be62f4b24b37d553 | [
"MIT"
] | null | null | null | import numpy as np
import matplotlib.pyplot as plt
import argparse
if __name__ == "__main__":
print "ok"
| 10.090909 | 31 | 0.72973 | 16 | 111 | 4.5625 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.198198 | 111 | 10 | 32 | 11.1 | 0.820225 | 0 | 0 | 0 | 0 | 0 | 0.093458 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.6 | null | null | 0.2 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
26f0be399a37518ed021b6402d6e671c6d1283a0 | 1,149 | py | Python | edata/models.py | 30Meridian/RozumneMistoSnapshot | 67a83b3908674d01992561dfb37596e395b4d482 | [
"BSD-3-Clause"
] | null | null | null | edata/models.py | 30Meridian/RozumneMistoSnapshot | 67a83b3908674d01992561dfb37596e395b4d482 | [
"BSD-3-Clause"
] | null | null | null | edata/models.py | 30Meridian/RozumneMistoSnapshot | 67a83b3908674d01992561dfb37596e395b4d482 | [
"BSD-3-Clause"
] | null | null | null | from django.db import models
from weunion.models import Town, User
# Create your models here.
class Edata(models.Model):
trans_id = models.IntegerField(blank=True, null=True)
trans_date = models.CharField(max_length=100, blank=True, null=True)
recipt_bank = models.CharField(max_length=150, blank=True, nul... | 47.875 | 83 | 0.739774 | 165 | 1,149 | 5 | 0.284848 | 0.141818 | 0.204848 | 0.267879 | 0.540606 | 0.488485 | 0.446061 | 0.353939 | 0.353939 | 0.300606 | 0 | 0.02444 | 0.145344 | 1,149 | 24 | 84 | 47.875 | 0.815682 | 0.020888 | 0 | 0 | 0 | 0 | 0.011566 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.9 | 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 |
26fecde98a73cdc8cd782b195f2e9cf2a36e4272 | 129 | py | Python | test_sam.py | vishalbelsare/SAM | 75b00b8354bd02f9a0a2613a22e781daf546645b | [
"Apache-2.0"
] | 46 | 2018-03-13T20:01:37.000Z | 2022-03-28T03:08:48.000Z | test_sam.py | kassaad/SAM | 93c98737b5aa45a56d23a9755ef369f4752b0445 | [
"Apache-2.0"
] | 3 | 2018-04-07T05:46:46.000Z | 2022-02-14T10:09:22.000Z | test_sam.py | kassaad/SAM | 93c98737b5aa45a56d23a9755ef369f4752b0445 | [
"Apache-2.0"
] | 9 | 2018-07-08T12:18:13.000Z | 2021-12-06T05:56:53.000Z | #!/usr/bin/env python
import cdt
from sam.sam import SAM
d, g = cdt.data.load_dataset('sachs')
m = SAM()
m.predict(d, nruns=1)
| 14.333333 | 37 | 0.682171 | 25 | 129 | 3.48 | 0.72 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009091 | 0.147287 | 129 | 8 | 38 | 16.125 | 0.781818 | 0.155039 | 0 | 0 | 0 | 0 | 0.046296 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
f803e1466e1cbc815f923f55b46590890a1d3bf6 | 316 | py | Python | src/pricehist/outputs/baseoutput.py | chrisberkhout/pricehist | a54da85a6fae15e2f771e8612aed089407ec5c22 | [
"MIT"
] | 4 | 2021-09-15T03:23:10.000Z | 2022-02-08T23:31:10.000Z | src/pricehist/outputs/baseoutput.py | chrisberkhout/pricehist | a54da85a6fae15e2f771e8612aed089407ec5c22 | [
"MIT"
] | null | null | null | src/pricehist/outputs/baseoutput.py | chrisberkhout/pricehist | a54da85a6fae15e2f771e8612aed089407ec5c22 | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod
from pricehist.format import Format
from pricehist.series import Series
from pricehist.sources.basesource import BaseSource
class BaseOutput(ABC):
@abstractmethod
def format(self, series: Series, source: BaseSource, fmt: Format) -> str:
pass # pragma: nocover
| 26.333333 | 77 | 0.759494 | 38 | 316 | 6.315789 | 0.5 | 0.1625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170886 | 316 | 11 | 78 | 28.727273 | 0.916031 | 0.047468 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.125 | 0.5 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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.