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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d19c72afacd468525217538c3c284273c92b9ea0 | 231 | py | Python | modulo_uteis.py | Danilo-Xaxa/python_curso_em_video | 9a88e5f579dfc844f936b7759d33e4068b091f09 | [
"MIT"
] | 4 | 2021-08-29T02:19:55.000Z | 2021-08-30T20:21:30.000Z | modulo_uteis.py | Danilo-Xaxa/python_curso_em_video | 9a88e5f579dfc844f936b7759d33e4068b091f09 | [
"MIT"
] | null | null | null | modulo_uteis.py | Danilo-Xaxa/python_curso_em_video | 9a88e5f579dfc844f936b7759d33e4068b091f09 | [
"MIT"
] | null | null | null | def fatorial(a):
b = 1
for c in range(1, a+1):
b *= a
return b
def dobro(a):
return a*2
def triplo(a):
return a*3
#esse programa reúne três funções e ele vai ser importado no programa importando uteis | 17.769231 | 86 | 0.623377 | 42 | 231 | 3.428571 | 0.642857 | 0.145833 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030488 | 0.290043 | 231 | 13 | 86 | 17.769231 | 0.847561 | 0.367965 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.222222 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
d1c447b356fb263f7fd67d4c90f1797e9f7b6c17 | 1,006 | py | Python | nsi/parallel.py | NextStepInnovation/nsi-tools | ee4c9a9e512a2fb4942699d88920bc8210a3d701 | [
"MIT"
] | null | null | null | nsi/parallel.py | NextStepInnovation/nsi-tools | ee4c9a9e512a2fb4942699d88920bc8210a3d701 | [
"MIT"
] | null | null | null | nsi/parallel.py | NextStepInnovation/nsi-tools | ee4c9a9e512a2fb4942699d88920bc8210a3d701 | [
"MIT"
] | null | null | null | import concurrent.futures
from .toolz import curry, concatv, vcall
@curry
def thread_map(func, iterable, *iterables, **tpe_kw):
with concurrent.futures.ThreadPoolExecutor(**tpe_kw) as executor:
for value in executor.map(func, *concatv((iterable,), *iterables)):
yield value
@curry
def thread_v... | 30.484848 | 75 | 0.684891 | 125 | 1,006 | 5.36 | 0.28 | 0.202985 | 0.18806 | 0.214925 | 0.635821 | 0.635821 | 0.635821 | 0.635821 | 0.519403 | 0.244776 | 0 | 0 | 0.184891 | 1,006 | 32 | 76 | 31.4375 | 0.817073 | 0 | 0 | 0.346154 | 0 | 0 | 0.029821 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.192308 | false | 0 | 0.076923 | 0.038462 | 0.307692 | 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 |
d1c5a3e03b9c33df87463e3347744f1a65a60d4c | 945 | py | Python | topobank/users/adapters.py | ContactEngineering/TopoBank | 12710c24cc158801db20f030c3e0638060e24a0e | [
"MIT",
"BSD-3-Clause"
] | 3 | 2021-12-03T19:11:07.000Z | 2021-12-27T17:14:39.000Z | topobank/users/adapters.py | ContactEngineering/TopoBank | 12710c24cc158801db20f030c3e0638060e24a0e | [
"MIT",
"BSD-3-Clause"
] | 268 | 2021-03-19T13:57:00.000Z | 2022-03-31T20:58:26.000Z | topobank/users/adapters.py | ContactEngineering/TopoBank | 12710c24cc158801db20f030c3e0638060e24a0e | [
"MIT",
"BSD-3-Clause"
] | null | null | null | from django.conf import settings
from allauth.account.adapter import DefaultAccountAdapter
from allauth.socialaccount.adapter import DefaultSocialAccountAdapter
class AccountAdapter(DefaultAccountAdapter):
def is_open_for_signup(self, request):
return getattr(settings, "ACCOUNT_ALLOW_REGISTRATION", True)... | 36.346154 | 69 | 0.722751 | 111 | 945 | 6.036036 | 0.522523 | 0.049254 | 0.026866 | 0.035821 | 0.232836 | 0.232836 | 0.232836 | 0 | 0 | 0 | 0 | 0 | 0.198942 | 945 | 25 | 70 | 37.8 | 0.885073 | 0.192593 | 0 | 0.153846 | 0 | 0 | 0.076712 | 0.071233 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.230769 | 0.153846 | 0.769231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
d1d98795e709e8434c1010fa680e9949f8c4b45b | 1,220 | py | Python | School-Management-System/teachers/forms.py | GisaKaze/Python-Quarantine-Projects | 29fabcb7e4046e6f3e9a19403e6d2490fe4b9fc4 | [
"MIT"
] | null | null | null | School-Management-System/teachers/forms.py | GisaKaze/Python-Quarantine-Projects | 29fabcb7e4046e6f3e9a19403e6d2490fe4b9fc4 | [
"MIT"
] | null | null | null | School-Management-System/teachers/forms.py | GisaKaze/Python-Quarantine-Projects | 29fabcb7e4046e6f3e9a19403e6d2490fe4b9fc4 | [
"MIT"
] | null | null | null | from django import forms
from .models import TeacherInfo
class CreateTeacher(forms.ModelForm):
class Meta:
model = TeacherInfo
fields = "__all__"
widgets = {
'name': forms.TextInput(attrs={'class': 'form-control', 'placeholder': 'Ex: John Doe'}),
'email': forms.Emai... | 58.095238 | 110 | 0.59918 | 129 | 1,220 | 5.589147 | 0.403101 | 0.152566 | 0.213592 | 0.320388 | 0.599168 | 0.599168 | 0.554785 | 0.338419 | 0 | 0 | 0 | 0.025667 | 0.201639 | 1,220 | 21 | 111 | 58.095238 | 0.714579 | 0 | 0 | 0 | 0 | 0 | 0.359541 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.052632 | 0.105263 | 0 | 0.210526 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
d1fecda552d122d226ac00b7b7cb4f41ffb1270f | 494 | py | Python | src/counterfactual_explanation/flow_ssl/utils.py | tridungduong16/fairCE | b13c72c253d875e68c0294b91aaddcbf93460d92 | [
"MIT"
] | null | null | null | src/counterfactual_explanation/flow_ssl/utils.py | tridungduong16/fairCE | b13c72c253d875e68c0294b91aaddcbf93460d92 | [
"MIT"
] | null | null | null | src/counterfactual_explanation/flow_ssl/utils.py | tridungduong16/fairCE | b13c72c253d875e68c0294b91aaddcbf93460d92 | [
"MIT"
] | null | null | null | import sys
import torch
import torch.nn as nn
class Named(type):
def __str__(self):
return self.__name__
def export(fn):
mod = sys.modules[fn.__module__]
if hasattr(mod, '__all__'):
mod.__all__.append(fn.__name__)
else:
mod.__all__ = [fn.__name__]
return fn
class Expressio... | 21.478261 | 42 | 0.621457 | 65 | 494 | 4.107692 | 0.446154 | 0.067416 | 0.089888 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.265182 | 494 | 23 | 43 | 21.478261 | 0.735537 | 0 | 0 | 0 | 0 | 0 | 0.014141 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.157895 | 0.105263 | 0.631579 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
06044fe9dc41150a2087f6decf6f90052408a231 | 880 | py | Python | optimizers/optimizer.py | jmanly56/basicml | dc3d61c2eab3f6cfc294ba7d151021bfb0660fe9 | [
"MIT"
] | null | null | null | optimizers/optimizer.py | jmanly56/basicml | dc3d61c2eab3f6cfc294ba7d151021bfb0660fe9 | [
"MIT"
] | null | null | null | optimizers/optimizer.py | jmanly56/basicml | dc3d61c2eab3f6cfc294ba7d151021bfb0660fe9 | [
"MIT"
] | null | null | null | """Optimizer base class."""
from abc import ABC, abstractmethod
import numpy.typing as npt
class Optimizer(ABC):
"""
The Optimizer base class.
All classes that derive from this must implement:
apply_gradients
"""
def __init__(self, learning_rate: float) -> None:
"""Init the clas... | 25.882353 | 116 | 0.623864 | 101 | 880 | 5.29703 | 0.485149 | 0.06729 | 0.06729 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.290909 | 880 | 33 | 117 | 26.666667 | 0.857372 | 0.452273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0.111111 | 0.222222 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
06089e7bd722be21a54bd214d5a42e0761de9325 | 452 | py | Python | tests/test_sv.py | nalu-svk/cimsparql | e69b0799a2bbd70027e2c8bb9970574991597ca5 | [
"MIT"
] | 9 | 2021-04-30T11:37:44.000Z | 2022-03-24T12:20:17.000Z | tests/test_sv.py | nalu-svk/cimsparql | e69b0799a2bbd70027e2c8bb9970574991597ca5 | [
"MIT"
] | 15 | 2021-05-01T21:21:00.000Z | 2022-03-16T07:09:03.000Z | tests/test_sv.py | nalu-svk/cimsparql | e69b0799a2bbd70027e2c8bb9970574991597ca5 | [
"MIT"
] | 3 | 2021-09-14T09:50:25.000Z | 2022-02-21T15:44:57.000Z | from conftest import need_local_graphdb_cim
@need_local_graphdb_cim
def test_sv_powerflow(gcli_cim):
pflow = gcli_cim.powerflow(limit=100)
assert pflow.shape == (100, 2)
@need_local_graphdb_cim
def test_sv_voltage(gcli_cim):
voltage = gcli_cim.voltage(limit=100)
assert voltage.shape == (100, 2)
@n... | 22.6 | 43 | 0.752212 | 70 | 452 | 4.514286 | 0.3 | 0.132911 | 0.202532 | 0.240506 | 0.322785 | 0.322785 | 0.322785 | 0.234177 | 0.234177 | 0.234177 | 0 | 0.054545 | 0.14823 | 452 | 19 | 44 | 23.789474 | 0.766234 | 0 | 0 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.230769 | 1 | 0.230769 | false | 0 | 0.076923 | 0 | 0.307692 | 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 |
06180b277f5f369de6c3f2c00dcfe7925bbd1870 | 785 | py | Python | piclient/client.py | yuky2020/Face-recognition-with-NOIR-camera-on-RaspberryPi | fd5f6aa124b2b57eae7d65fa15555326bee28d16 | [
"MIT"
] | 2 | 2021-03-06T21:10:19.000Z | 2021-04-15T09:34:16.000Z | piclient/client.py | yuky2020/Face-recognition-with-NOIR-camera-on-RaspberryPi | fd5f6aa124b2b57eae7d65fa15555326bee28d16 | [
"MIT"
] | null | null | null | piclient/client.py | yuky2020/Face-recognition-with-NOIR-camera-on-RaspberryPi | fd5f6aa124b2b57eae7d65fa15555326bee28d16 | [
"MIT"
] | null | null | null | '''
The following code will import PiCamera module, snap 5 pictures and save it in a directory you specify, wait 2 second and start again.
the fotoresistor meanwhile will set the ir led to needed light emmission.
'''
import picamera
from time import sleep
camera = picamera.PiCamera()
camera.resolution=(320,240)
whi... | 32.708333 | 136 | 0.723567 | 109 | 785 | 5.192661 | 0.522936 | 0.229682 | 0.318021 | 0.333922 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028529 | 0.151592 | 785 | 23 | 137 | 34.130435 | 0.821321 | 0.267516 | 0 | 0 | 0 | 0 | 0.282686 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 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 |
ae0f95f592eb820e833cdb3cf0c8ef1e70ffaa91 | 63 | py | Python | GPYCLASS/__init__.py | popeaaa/generate-Python-class-in-python | 56945935ecd9960848f6d1adea14812216e74c4d | [
"MIT"
] | null | null | null | GPYCLASS/__init__.py | popeaaa/generate-Python-class-in-python | 56945935ecd9960848f6d1adea14812216e74c4d | [
"MIT"
] | null | null | null | GPYCLASS/__init__.py | popeaaa/generate-Python-class-in-python | 56945935ecd9960848f6d1adea14812216e74c4d | [
"MIT"
] | null | null | null | '''
@author:Administrator
@file:__init__.py.py
@note:
''' | 10.5 | 22 | 0.619048 | 7 | 63 | 5 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15873 | 63 | 6 | 23 | 10.5 | 0.660377 | 0.777778 | 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 |
ae148931ffb0174c00d7e22a955097dbac98e17e | 612 | py | Python | qcloudsdkcvm/RestartInstancesRequest.py | f3n9/qcloudcli | b965a4f0e6cdd79c1245c1d0cd2ca9c460a56f19 | [
"Apache-2.0"
] | null | null | null | qcloudsdkcvm/RestartInstancesRequest.py | f3n9/qcloudcli | b965a4f0e6cdd79c1245c1d0cd2ca9c460a56f19 | [
"Apache-2.0"
] | null | null | null | qcloudsdkcvm/RestartInstancesRequest.py | f3n9/qcloudcli | b965a4f0e6cdd79c1245c1d0cd2ca9c460a56f19 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from qcloudsdkcore.request import Request
class RestartInstancesRequest(Request):
def __init__(self):
super(RestartInstancesRequest, self).__init__(
'cvm', 'qcloudcliV1', 'RestartInstances', 'cvm.api.qcloud.com')
def get_forceStop(self):
return self.get_pa... | 27.818182 | 75 | 0.683007 | 65 | 612 | 6.184615 | 0.415385 | 0.097015 | 0.069652 | 0.084577 | 0.129353 | 0.129353 | 0 | 0 | 0 | 0 | 0 | 0.004032 | 0.189542 | 612 | 21 | 76 | 29.142857 | 0.806452 | 0.034314 | 0 | 0 | 0 | 0 | 0.149406 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.384615 | false | 0 | 0.076923 | 0.153846 | 0.692308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
ae14e2456bb6933b7db43293f625a7f87a42d891 | 436 | py | Python | src/pages/lang1.py | VictorManhani/polingua | 16309ef4b25347e2d114749a24dfec5f9696e30f | [
"MIT"
] | null | null | null | src/pages/lang1.py | VictorManhani/polingua | 16309ef4b25347e2d114749a24dfec5f9696e30f | [
"MIT"
] | null | null | null | src/pages/lang1.py | VictorManhani/polingua | 16309ef4b25347e2d114749a24dfec5f9696e30f | [
"MIT"
] | null | null | null | from src.helpers.imports import *
class Lang1(Screen):
pass
Builder.load_string("""
<Lang1>:
FlexLayout:
padding: [10,30]
FlexLabel:
text: "Language 1"
size_hint: [1,.1]
FlexButton:
text: "Love"
size_hint: [1,.9]
font_size: sp... | 21.8 | 81 | 0.520642 | 45 | 436 | 4.911111 | 0.777778 | 0.072398 | 0.081448 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049296 | 0.348624 | 436 | 19 | 82 | 22.947368 | 0.728873 | 0 | 0 | 0 | 0 | 0 | 0.784404 | 0.12844 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.058824 | 0.058824 | 0 | 0.117647 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
ae1a9423dc1bba939632b0b76c5cb2126565602c | 219 | py | Python | db.py | Kove71/jekkuluola | 2b5eb5435665bb6c4ad93e7d2790750d9085b9a4 | [
"MIT"
] | 1 | 2022-03-08T17:06:49.000Z | 2022-03-08T17:06:49.000Z | db.py | Kove71/jekkuluola | 2b5eb5435665bb6c4ad93e7d2790750d9085b9a4 | [
"MIT"
] | 2 | 2022-02-10T09:05:55.000Z | 2022-02-23T20:15:08.000Z | db.py | Kove71/jekkuluola | 2b5eb5435665bb6c4ad93e7d2790750d9085b9a4 | [
"MIT"
] | null | null | null | from os import getenv
from flask_sqlalchemy import SQLAlchemy
from app import app
app.config['SQLALCHEMY_DATABASE_URI'] = getenv('DATABASE_URL')
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
db = SQLAlchemy(app) | 31.285714 | 62 | 0.817352 | 30 | 219 | 5.766667 | 0.5 | 0.104046 | 0.219653 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09589 | 219 | 7 | 63 | 31.285714 | 0.873737 | 0 | 0 | 0 | 0 | 0 | 0.295455 | 0.240909 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
ae2eb225ac541040bb3be8bf9d954735675a269d | 206 | py | Python | spotify/urls.py | ma5243/HoosExercising | fb9e5101cc02c4cae9c70dfc7b013c1c6e45d7c2 | [
"MIT"
] | null | null | null | spotify/urls.py | ma5243/HoosExercising | fb9e5101cc02c4cae9c70dfc7b013c1c6e45d7c2 | [
"MIT"
] | null | null | null | spotify/urls.py | ma5243/HoosExercising | fb9e5101cc02c4cae9c70dfc7b013c1c6e45d7c2 | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name='index'),
path('spotify/', views.index, name='middle'),
path('songs/', views.songs, name='songs'),
] | 22.888889 | 49 | 0.640777 | 26 | 206 | 5.076923 | 0.461538 | 0.151515 | 0.212121 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165049 | 206 | 9 | 50 | 22.888889 | 0.767442 | 0 | 0 | 0 | 0 | 0 | 0.144928 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 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 |
ae3561139b9175398247d86219def0870e2ea1d5 | 172 | py | Python | example/forms.py | 20tab/django-political-map | ca43fd492e65450b063a67580978e9a8e86c7b08 | [
"MIT"
] | 9 | 2017-02-24T20:01:11.000Z | 2021-07-20T09:35:55.000Z | example/forms.py | 20tab/django-political-map | ca43fd492e65450b063a67580978e9a8e86c7b08 | [
"MIT"
] | 9 | 2017-03-01T18:34:01.000Z | 2021-06-01T22:01:23.000Z | example/forms.py | 20tab/django-political-map | ca43fd492e65450b063a67580978e9a8e86c7b08 | [
"MIT"
] | 4 | 2017-03-01T10:29:46.000Z | 2019-09-29T01:31:22.000Z | from django.forms import ModelForm
from .models import MyLocation
class MyLocationForm(ModelForm):
class Meta:
model = MyLocation
fields = '__all__'
| 17.2 | 34 | 0.703488 | 18 | 172 | 6.5 | 0.722222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.238372 | 172 | 9 | 35 | 19.111111 | 0.89313 | 0 | 0 | 0 | 0 | 0 | 0.040698 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ae4491638d68200432d2820aeafa7931b13bdb5c | 399 | py | Python | common.py | luizcarvalhohen/staking_manager | ad672cf980631fc5cb050c62d034a14ada49d96b | [
"MIT"
] | 3 | 2021-11-06T20:46:06.000Z | 2021-11-24T06:33:40.000Z | common.py | luizcarvalhohen/staking_manager | ad672cf980631fc5cb050c62d034a14ada49d96b | [
"MIT"
] | 5 | 2021-11-16T04:46:30.000Z | 2021-12-28T22:05:39.000Z | common.py | luizcarvalhohen/staking_manager | ad672cf980631fc5cb050c62d034a14ada49d96b | [
"MIT"
] | 2 | 2021-11-07T22:03:16.000Z | 2021-11-23T22:04:36.000Z | import argparse
import os
import sys
from utils import get_project_root_dir
MyHelpFormatter = argparse.RawTextHelpFormatter
main_script = os.path.join(get_project_root_dir(), "StakingManager.py")
if sys.platform.lower().startswith("win"):
venv_env = os.path.join(get_project_root_dir(), "venv\Scripts\python.exe")... | 28.5 | 78 | 0.779449 | 59 | 399 | 5.016949 | 0.525424 | 0.135135 | 0.189189 | 0.22973 | 0.347973 | 0.347973 | 0.347973 | 0.256757 | 0.256757 | 0.256757 | 0 | 0.002778 | 0.097744 | 399 | 13 | 79 | 30.692308 | 0.819444 | 0 | 0 | 0 | 0 | 0 | 0.14787 | 0.057644 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 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 |
ae4fed9aee61d11d608811f88e3b665f14e89b27 | 388 | py | Python | carball/json_parser/actor/game_info.py | unitedroguegg/carball | 4767f2c5d195b7d5d60e6a5575415262803acef7 | [
"Apache-2.0"
] | 119 | 2018-09-14T02:14:19.000Z | 2022-03-06T05:06:54.000Z | carball/json_parser/actor/game_info.py | unitedroguegg/carball | 4767f2c5d195b7d5d60e6a5575415262803acef7 | [
"Apache-2.0"
] | 207 | 2018-09-06T18:53:06.000Z | 2022-02-12T22:39:36.000Z | carball/json_parser/actor/game_info.py | unitedroguegg/carball | 4767f2c5d195b7d5d60e6a5575415262803acef7 | [
"Apache-2.0"
] | 44 | 2018-09-10T16:54:13.000Z | 2022-02-19T03:07:50.000Z | from .base import *
class GameInfoHandler(BaseActorHandler):
@classmethod
def can_handle(cls, actor: dict) -> bool:
return actor['TypeName'].endswith(':GameReplicationInfoArchetype')
def update(self, actor: dict, frame_number: int, time: float, delta: float) -> None:
if self.parser.game_... | 29.846154 | 88 | 0.690722 | 46 | 388 | 5.695652 | 0.695652 | 0.068702 | 0.10687 | 0.137405 | 0.175573 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.201031 | 388 | 12 | 89 | 32.333333 | 0.845161 | 0 | 0 | 0 | 0 | 0 | 0.095361 | 0.074742 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 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 |
ae75d23756281331f961add7b0075d15494f97f0 | 1,203 | py | Python | src/testlink/testlinkerrors.py | adamsar/TestLink-API-Python-client | 7e48cdfc21196a7c8e41e5a709d89b05e7bcbd0c | [
"Apache-2.0"
] | 2 | 2019-08-05T06:22:05.000Z | 2020-07-20T18:27:38.000Z | src/testlink/testlinkerrors.py | g4l4drim/TestLink-API-Python-client | 7314ce0c5623ecf38930c72519e9ecba0f84d9fe | [
"Apache-2.0"
] | 1 | 2016-10-31T03:44:16.000Z | 2016-10-31T03:44:16.000Z | src/testlink/testlinkerrors.py | g4l4drim/TestLink-API-Python-client | 7314ce0c5623ecf38930c72519e9ecba0f84d9fe | [
"Apache-2.0"
] | 4 | 2016-10-27T16:00:57.000Z | 2022-01-30T03:14:51.000Z | #! /usr/bin/python
# -*- coding: UTF-8 -*-
# Copyright 2012 Patrick Dassier, Luiko Czub, TestLink-API-Python-client developers
#
# 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
#
# h... | 31.657895 | 84 | 0.645885 | 147 | 1,203 | 5.204082 | 0.680272 | 0.078431 | 0.033987 | 0.04183 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009404 | 0.204489 | 1,203 | 38 | 85 | 31.657895 | 0.789969 | 0.820449 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
ae79c1985d78dc82a2cf5f87817c51ea7158c9cc | 261 | py | Python | pybreakpoints/compat.py | ceholden/pybreakpoints | 35db45375b5441ed3ed30bedab3e17406ae7ac72 | [
"BSD-3-Clause"
] | 2 | 2019-07-22T16:34:45.000Z | 2019-07-23T21:57:53.000Z | pybreakpoints/compat.py | ceholden/pybreakpoints | 35db45375b5441ed3ed30bedab3e17406ae7ac72 | [
"BSD-3-Clause"
] | null | null | null | pybreakpoints/compat.py | ceholden/pybreakpoints | 35db45375b5441ed3ed30bedab3e17406ae7ac72 | [
"BSD-3-Clause"
] | null | null | null | """ Various compatibility assists, including hide that Numba is optional
"""
HAS_JIT = True
try:
from numba import jit
except ImportError:
HAS_JIT = False
def jit(*args, **kwds): # noqa
def _(func):
return func
return _
| 21.75 | 72 | 0.624521 | 32 | 261 | 4.96875 | 0.75 | 0.075472 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.291188 | 261 | 11 | 73 | 23.727273 | 0.859459 | 0.283525 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0.111111 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
ae7af7f2803be5c9572d78212391fe28dd176966 | 278 | py | Python | Chapter 01/Chap01_Example1.158.py | Anancha/Programming-Techniques-using-Python | e80c329d2a27383909d358741a5cab03cb22fd8b | [
"MIT"
] | null | null | null | Chapter 01/Chap01_Example1.158.py | Anancha/Programming-Techniques-using-Python | e80c329d2a27383909d358741a5cab03cb22fd8b | [
"MIT"
] | null | null | null | Chapter 01/Chap01_Example1.158.py | Anancha/Programming-Techniques-using-Python | e80c329d2a27383909d358741a5cab03cb22fd8b | [
"MIT"
] | null | null | null | #int()
s1 = int(12.34)
print(s1) #-- INT1
s2 = int(True)
print(s2)#-- INT2
s3 = int(False)
print(s3)#-- INT3
s4 = int('1')
print(s4)#-- INT4
s5 = '10'
print(int(s5,2))#-- INT5
print(int(s5,6))#-- INT6
print(int(s5,8))#-- INT7
print(int(s5,10))#-- INT8
print(int(s5,16))#-- INT9
| 17.375 | 25 | 0.582734 | 53 | 278 | 3.056604 | 0.490566 | 0.246914 | 0.308642 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152263 | 0.125899 | 278 | 15 | 26 | 18.533333 | 0.514403 | 0.244604 | 0 | 0 | 0 | 0 | 0.015 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.642857 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
88321af8716234c353be8aa13c1460be140340eb | 174 | py | Python | 100-Exercicios/ex003.py | thedennerdev/ExerciciosPython-Iniciante | de36c4a09700353a9a1daa7f1320e416c6201a5c | [
"MIT"
] | null | null | null | 100-Exercicios/ex003.py | thedennerdev/ExerciciosPython-Iniciante | de36c4a09700353a9a1daa7f1320e416c6201a5c | [
"MIT"
] | null | null | null | 100-Exercicios/ex003.py | thedennerdev/ExerciciosPython-Iniciante | de36c4a09700353a9a1daa7f1320e416c6201a5c | [
"MIT"
] | null | null | null | n1 = int(input('Por favor, digite um numero:'))
n2 = int(input('Por favor, agora outro numero:'))
s = n1 + n2
print('O resultado {}, é a soma de {} + {}!'.format(s, n1, n2))
| 34.8 | 63 | 0.603448 | 30 | 174 | 3.5 | 0.666667 | 0.152381 | 0.209524 | 0.304762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041958 | 0.178161 | 174 | 4 | 64 | 43.5 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0.54023 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8840e2be15ca9275bb0088efb7f798ef67be5b10 | 391 | py | Python | server/models/__init__.py | dragorhast/server | a5ad238e630c3b575e3bc3c51718e7ebfff1e4d1 | [
"MIT"
] | 5 | 2018-11-28T11:33:25.000Z | 2022-03-27T12:50:02.000Z | server/models/__init__.py | dragorhast/server | a5ad238e630c3b575e3bc3c51718e7ebfff1e4d1 | [
"MIT"
] | 124 | 2018-10-07T21:31:02.000Z | 2019-03-26T11:51:00.000Z | server/models/__init__.py | dragorhast/server | a5ad238e630c3b575e3bc3c51718e7ebfff1e4d1 | [
"MIT"
] | null | null | null | """
The models package contains all the models used on the server.
.. autoclasstree:: server.models
"""
from .bike import Bike, BikeStateUpdate
from .issue import Issue
from .location_update import LocationUpdate
from .pickup_point import PickupPoint
from .rental import RentalUpdate, Rental
from .report import Statis... | 26.066667 | 62 | 0.810742 | 50 | 391 | 6.3 | 0.52 | 0.057143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.132992 | 391 | 14 | 63 | 27.928571 | 0.929204 | 0.245524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
8852535507d712e523a64b6a78fc25f463b22677 | 82 | py | Python | conda_smithy/azure_defaults.py | h-vetinari/conda-smithy | 5d1d3ac4a2253a601b626927ecbec8c305919236 | [
"BSD-3-Clause"
] | 122 | 2015-07-11T21:17:59.000Z | 2022-03-25T02:03:01.000Z | conda_smithy/azure_defaults.py | h-vetinari/conda-smithy | 5d1d3ac4a2253a601b626927ecbec8c305919236 | [
"BSD-3-Clause"
] | 1,377 | 2015-07-23T02:58:36.000Z | 2022-03-30T13:13:54.000Z | conda_smithy/azure_defaults.py | h-vetinari/conda-smithy | 5d1d3ac4a2253a601b626927ecbec8c305919236 | [
"BSD-3-Clause"
] | 153 | 2015-07-12T14:11:55.000Z | 2022-02-19T19:38:59.000Z | AZURE_DEFAULT_ORG = "conda-forge"
AZURE_DEFAULT_PROJECT_NAME = "feedstock-builds"
| 27.333333 | 47 | 0.829268 | 11 | 82 | 5.727273 | 0.818182 | 0.380952 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073171 | 82 | 2 | 48 | 41 | 0.828947 | 0 | 0 | 0 | 0 | 0 | 0.329268 | 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 |
8870de6d2cc8c7a3dc779d8b3860cb96155d7159 | 109 | py | Python | Python (Probleme)/BerryJamC/berryjamC.py | Nicu-Ducal/Competitive-Programming | c84126a4cb701b0764664db490b7e594495c8592 | [
"MIT"
] | null | null | null | Python (Probleme)/BerryJamC/berryjamC.py | Nicu-Ducal/Competitive-Programming | c84126a4cb701b0764664db490b7e594495c8592 | [
"MIT"
] | null | null | null | Python (Probleme)/BerryJamC/berryjamC.py | Nicu-Ducal/Competitive-Programming | c84126a4cb701b0764664db490b7e594495c8592 | [
"MIT"
] | null | null | null | t = int(input())
for cas in range(t):
n = int(input())
l = [int(x) for x in input().split()]
| 21.8 | 42 | 0.486239 | 19 | 109 | 2.789474 | 0.578947 | 0.301887 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.302752 | 109 | 5 | 43 | 21.8 | 0.697368 | 0 | 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 |
889698df75aeeae7cacd0a3a67fb06a58ff1b659 | 179 | py | Python | Python/array-partition-i.py | kuanhungchen/leetcode-practice | b75e773ada60b685da1576ae5f2234b70bc27842 | [
"CNRI-Python"
] | 1 | 2020-04-29T06:19:44.000Z | 2020-04-29T06:19:44.000Z | Python/array-partition-i.py | kuanhungchen/leetcode-practice | b75e773ada60b685da1576ae5f2234b70bc27842 | [
"CNRI-Python"
] | null | null | null | Python/array-partition-i.py | kuanhungchen/leetcode-practice | b75e773ada60b685da1576ae5f2234b70bc27842 | [
"CNRI-Python"
] | null | null | null | class Solution:
def arrayPairSum(self, nums):
nums.sort()
# ans = [nums[2*i] for i in range(int(len(nums)/2))]
ans = nums[::2]
return sum(ans)
| 25.571429 | 60 | 0.530726 | 26 | 179 | 3.653846 | 0.653846 | 0.157895 | 0.168421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024194 | 0.307263 | 179 | 6 | 61 | 29.833333 | 0.741935 | 0.27933 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
88a7b1a4330925d78e0f180ce6a5f43c6cbfc6b8 | 251 | py | Python | sacrerouge/data/types.py | danieldeutsch/decomposed-rouge | 0d723be8e3359f0bdcc9c7940336800895e46dbb | [
"Apache-2.0"
] | 81 | 2020-07-10T15:45:08.000Z | 2022-03-30T12:19:11.000Z | sacrerouge/data/types.py | danieldeutsch/decomposed-rouge | 0d723be8e3359f0bdcc9c7940336800895e46dbb | [
"Apache-2.0"
] | 29 | 2020-08-03T21:50:45.000Z | 2022-02-23T14:34:16.000Z | sacrerouge/data/types.py | danieldeutsch/decomposed-rouge | 0d723be8e3359f0bdcc9c7940336800895e46dbb | [
"Apache-2.0"
] | 7 | 2020-08-14T09:54:08.000Z | 2022-03-30T12:19:25.000Z | from typing import List, Union
# These are all the same type, but I think it enhances readability
# to have a different type for each one.
DocumentType = Union[str, List[str]]
ReferenceType = Union[str, List[str]]
SummaryType = Union[str, List[str]]
| 31.375 | 66 | 0.749004 | 40 | 251 | 4.7 | 0.7 | 0.12766 | 0.191489 | 0.239362 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159363 | 251 | 7 | 67 | 35.857143 | 0.890995 | 0.410359 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
31fb41dd835e9b490d71f5fadb6b88598ea8a864 | 369 | py | Python | python_socks/_proxy_async.py | mgorny/python-socks | b6bae4bb904e8c066ec3bb15b408182a57ea2fbf | [
"Apache-2.0"
] | 28 | 2020-09-21T08:34:00.000Z | 2022-02-25T15:57:36.000Z | aiohttp_socks/core_socks/_proxy_async.py | maemo-leste-extras/aiohttp-socks | 4771b8bc73bd85f41a158600171b931de8e0c414 | [
"Apache-2.0"
] | 15 | 2020-09-21T15:39:49.000Z | 2022-01-22T15:13:31.000Z | aiohttp_socks/core_socks/_proxy_async.py | maemo-leste-extras/aiohttp-socks | 4771b8bc73bd85f41a158600171b931de8e0c414 | [
"Apache-2.0"
] | 9 | 2020-11-09T10:53:32.000Z | 2022-03-24T22:17:48.000Z | class AsyncProxy:
async def connect(self, dest_host, dest_port,
timeout=None, _socket=None):
raise NotImplementedError() # pragma: no cover
@property
def proxy_host(self):
raise NotImplementedError() # pragma: no cover
@property
def proxy_port(self):
... | 28.384615 | 55 | 0.636856 | 39 | 369 | 5.897436 | 0.487179 | 0.313043 | 0.391304 | 0.417391 | 0.656522 | 0.656522 | 0.46087 | 0.46087 | 0 | 0 | 0 | 0 | 0.281843 | 369 | 12 | 56 | 30.75 | 0.867925 | 0.135501 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.3 | 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 |
ee0556ebf99b571d45802c20447444c70d97f732 | 3,976 | py | Python | django_photo/photo/effects.py | andela-tadesanya/django-photo-application | 0fe85a029a2f9d59e03fb93008766eb030718199 | [
"MIT"
] | null | null | null | django_photo/photo/effects.py | andela-tadesanya/django-photo-application | 0fe85a029a2f9d59e03fb93008766eb030718199 | [
"MIT"
] | null | null | null | django_photo/photo/effects.py | andela-tadesanya/django-photo-application | 0fe85a029a2f9d59e03fb93008766eb030718199 | [
"MIT"
] | 2 | 2019-11-05T20:38:49.000Z | 2020-10-29T17:45:49.000Z | from PIL import Image, ImageFilter
import os
# set the directory to the flags
FILE_DIR = os.path.dirname(__file__)
def double(source):
'''creates the double effect on an image'''
original_image = Image.open(source)
original_width, original_height = original_image.size
# create new image to paste ... | 31.0625 | 120 | 0.725855 | 560 | 3,976 | 4.941071 | 0.114286 | 0.197326 | 0.086737 | 0.107336 | 0.728226 | 0.70871 | 0.70871 | 0.692808 | 0.692808 | 0.692808 | 0 | 0.006387 | 0.173038 | 3,976 | 127 | 121 | 31.307087 | 0.835158 | 0.223089 | 0 | 0.592593 | 0 | 0 | 0.054205 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.037037 | 0 | 0.148148 | 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 |
ee73f0d99aba2fb6a8d734158d200c2e30fb247d | 553 | py | Python | Boards/app/serializers.py | porowns/Boards | 0cddf1bca42573348945e7e2dc49e1a9c3ad9a69 | [
"BSD-3-Clause"
] | 1 | 2017-05-17T17:21:25.000Z | 2017-05-17T17:21:25.000Z | Boards/app/serializers.py | porowns/Boards | 0cddf1bca42573348945e7e2dc49e1a9c3ad9a69 | [
"BSD-3-Clause"
] | 1 | 2017-05-15T03:31:46.000Z | 2017-05-15T03:31:46.000Z | Boards/app/serializers.py | porowns/Boards | 0cddf1bca42573348945e7e2dc49e1a9c3ad9a69 | [
"BSD-3-Clause"
] | null | null | null | from rest_framework import serializers
from .models import Post, Board, User
class PostSerializer(serializers.ModelSerializer):
board = serializers.StringRelatedField()
author = serializers.StringRelatedField()
class Meta:
model = Post
fields = ('title', 'body', 'board', 'author')
class B... | 29.105263 | 53 | 0.705244 | 48 | 553 | 8.104167 | 0.458333 | 0.298201 | 0.174807 | 0.195373 | 0.22108 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.19349 | 553 | 18 | 54 | 30.722222 | 0.872197 | 0 | 0 | 0.142857 | 0 | 0 | 0.075949 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
ee748771db8ce940d67a7f6dd6d8d982813f7269 | 165 | py | Python | docs/code_snippets/quick_start/invoke_dag.py | larribas/dagger | 1441fed570e535a43fdc23142b0c1a897ad9e992 | [
"Apache-2.0"
] | 9 | 2021-09-06T14:22:38.000Z | 2022-02-08T07:48:39.000Z | docs/code_snippets/quick_start/invoke_dag.py | larribas/dagger | 1441fed570e535a43fdc23142b0c1a897ad9e992 | [
"Apache-2.0"
] | 36 | 2021-09-04T06:20:19.000Z | 2021-12-26T17:54:59.000Z | docs/code_snippets/quick_start/invoke_dag.py | larribas/dagger | 1441fed570e535a43fdc23142b0c1a897ad9e992 | [
"Apache-2.0"
] | 4 | 2021-09-06T08:07:19.000Z | 2021-10-18T19:13:18.000Z | from dagger.runtime.local import invoke
from .build_dag import dag
result = invoke(dag, params={"seed": 1, "exponent": 2})
print(f"The final result was {result}")
| 23.571429 | 55 | 0.727273 | 26 | 165 | 4.576923 | 0.730769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013986 | 0.133333 | 165 | 6 | 56 | 27.5 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0.248485 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0.25 | 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 |
c997c93cf656c3c1a927710cb8000bfbeabc5a10 | 2,589 | py | Python | schemas/user.py | 1930346/SmartNet | be6973bafec1b71b474359718680d592e908e7aa | [
"MIT"
] | 1 | 2022-03-17T08:10:48.000Z | 2022-03-17T08:10:48.000Z | schemas/user.py | 1930346/SmartNet | be6973bafec1b71b474359718680d592e908e7aa | [
"MIT"
] | null | null | null | schemas/user.py | 1930346/SmartNet | be6973bafec1b71b474359718680d592e908e7aa | [
"MIT"
] | null | null | null | #Aquí se crearan los usuarios cuando se recibe data del front
#Mandera de crear tipos de datos
from datetime import datetime
from pydantic import BaseModel, Field
"""
Define the Schema for the table user to use like a json object
This class inherits from BaseModel and it defines the fields of the table
... | 37.521739 | 78 | 0.697953 | 409 | 2,589 | 4.383863 | 0.246944 | 0.078081 | 0.085332 | 0.062465 | 0.546012 | 0.459007 | 0.412158 | 0.355271 | 0.322922 | 0.322922 | 0 | 0.000516 | 0.251835 | 2,589 | 68 | 79 | 38.073529 | 0.925142 | 0.117034 | 0 | 0 | 0 | 0 | 0.278581 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.117647 | 0.117647 | 0 | 0.941176 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
c99ceb9118be2ccc0eb4385a8bac0523f6d4b51e | 169 | py | Python | test_api.py | samburney/unms_to_influxdb | c97009e20c0aa3c1451a07ae28cbeb9b949d491f | [
"BSD-3-Clause"
] | 1 | 2021-06-23T20:29:44.000Z | 2021-06-23T20:29:44.000Z | test_api.py | samburney/unms_to_influxdb | c97009e20c0aa3c1451a07ae28cbeb9b949d491f | [
"BSD-3-Clause"
] | null | null | null | test_api.py | samburney/unms_to_influxdb | c97009e20c0aa3c1451a07ae28cbeb9b949d491f | [
"BSD-3-Clause"
] | null | null | null | from unms_api.api import unms_api
from config import config
api = unms_api(config['api_url'], config['api_key'])
response = api.do_request('devices')
print(response)
| 18.777778 | 52 | 0.763314 | 27 | 169 | 4.555556 | 0.444444 | 0.170732 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.112426 | 169 | 8 | 53 | 21.125 | 0.82 | 0 | 0 | 0 | 0 | 0 | 0.12426 | 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 |
c9b40be8dfdae7ce2f5c33777488381dbc611121 | 6,463 | py | Python | unittests/test_utils_afi.py | steffann/pylisp | 84d084b03dfb408d439ffa2b4b60495e8ca78b5e | [
"BSD-3-Clause"
] | 3 | 2015-10-01T11:39:44.000Z | 2017-03-09T00:21:29.000Z | unittests/test_utils_afi.py | steffann/pylisp | 84d084b03dfb408d439ffa2b4b60495e8ca78b5e | [
"BSD-3-Clause"
] | 1 | 2017-02-10T08:34:16.000Z | 2017-02-10T08:34:16.000Z | unittests/test_utils_afi.py | steffann/pylisp | 84d084b03dfb408d439ffa2b4b60495e8ca78b5e | [
"BSD-3-Clause"
] | 2 | 2015-02-12T09:10:59.000Z | 2021-11-05T23:41:28.000Z | #!/usr/bin/env python
from bitstring import ConstBitStream
from ipaddress import IPv4Address, IPv4Network, IPv6Address, IPv6Network
from pylisp.utils import afi
import doctest
import unittest
# Add the parent directory to the start of the path
if __name__ == '__main__':
import sys
sys.path.insert(0, '.')
s... | 34.015789 | 74 | 0.667801 | 724 | 6,463 | 5.716851 | 0.175414 | 0.086978 | 0.056535 | 0.041073 | 0.742933 | 0.735685 | 0.715873 | 0.68519 | 0.666828 | 0.615608 | 0 | 0.043211 | 0.244469 | 6,463 | 189 | 75 | 34.195767 | 0.804424 | 0.102584 | 0 | 0.545455 | 0 | 0 | 0.132742 | 0.035313 | 0 | 0 | 0 | 0 | 0.262626 | 1 | 0.121212 | false | 0 | 0.060606 | 0 | 0.20202 | 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 |
c9e4a89f44c22a560700e27f00ee92077b3c358c | 189 | py | Python | scripts/item/consume_2433990.py | pantskun/swordiemen | fc33ffec168e6611587fdc75de8270f6827a4176 | [
"MIT"
] | null | null | null | scripts/item/consume_2433990.py | pantskun/swordiemen | fc33ffec168e6611587fdc75de8270f6827a4176 | [
"MIT"
] | null | null | null | scripts/item/consume_2433990.py | pantskun/swordiemen | fc33ffec168e6611587fdc75de8270f6827a4176 | [
"MIT"
] | null | null | null | # 돼지바 데미지 스킨 [Pig Bar Damage Skin] (2433990)
success = sm.addDamageSkin(2433990)
if success:
sm.chat("The Pig Bar Damage Skin has been added to your account's damage skin collection.")
| 37.8 | 95 | 0.740741 | 31 | 189 | 4.516129 | 0.709677 | 0.214286 | 0.171429 | 0.228571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089172 | 0.169312 | 189 | 4 | 96 | 47.25 | 0.802548 | 0.222222 | 0 | 0 | 0 | 0 | 0.551724 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c9fecbd00dfdcf7c3963d382eb436cb2e0bc1b05 | 76,715 | py | Python | nova/virt/libvirt/host.py | bopopescu/nova-token | ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2 | [
"Apache-2.0"
] | null | null | null | nova/virt/libvirt/host.py | bopopescu/nova-token | ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2 | [
"Apache-2.0"
] | null | null | null | nova/virt/libvirt/host.py | bopopescu/nova-token | ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2 | [
"Apache-2.0"
] | 2 | 2017-07-20T17:31:34.000Z | 2020-07-24T02:42:19.000Z | begin_unit
comment|'# Copyright 2010 United States Government as represented by the'
nl|'\n'
comment|'# Administrator of the National Aeronautics and Space Administration.'
nl|'\n'
comment|'# All Rights Reserved.'
nl|'\n'
comment|'# Copyright (c) 2010 Citrix Systems, Inc.'
nl|'\n'
comment|'# Copyright (c) 2011 Piston C... | 14.261945 | 666 | 0.60146 | 11,261 | 76,715 | 4.009147 | 0.07264 | 0.127849 | 0.084169 | 0.052096 | 0.732053 | 0.669303 | 0.605267 | 0.536691 | 0.473852 | 0.413206 | 0 | 0.002521 | 0.136453 | 76,715 | 5,378 | 667 | 14.264597 | 0.678974 | 0 | 0 | 0.913165 | 0 | 0.001116 | 0.787812 | 0.087219 | 0 | 0 | 0 | 0 | 0.000186 | 0 | null | null | 0.001302 | 0.005764 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a00658554f74bc0851eaf77a49403204437d24cc | 104 | py | Python | openbook_common/apps.py | TamaraAbells/okuna-api | f87d8e80d2f182c01dbce68155ded0078ee707e4 | [
"MIT"
] | 164 | 2019-07-29T17:59:06.000Z | 2022-03-19T21:36:01.000Z | openbook_common/apps.py | TamaraAbells/okuna-api | f87d8e80d2f182c01dbce68155ded0078ee707e4 | [
"MIT"
] | 188 | 2019-03-16T09:53:25.000Z | 2019-07-25T14:57:24.000Z | openbook_common/apps.py | TamaraAbells/okuna-api | f87d8e80d2f182c01dbce68155ded0078ee707e4 | [
"MIT"
] | 80 | 2019-08-03T17:49:08.000Z | 2022-02-28T16:56:33.000Z | from django.apps import AppConfig
class OpenbookCommonConfig(AppConfig):
name = 'openbook_common'
| 17.333333 | 38 | 0.788462 | 11 | 104 | 7.363636 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144231 | 104 | 5 | 39 | 20.8 | 0.910112 | 0 | 0 | 0 | 0 | 0 | 0.144231 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
a01cf485f1aa39e846e8f047035bb95fec91ac2d | 1,017 | py | Python | Extrinsic/relation.py | bansal19/SfM_implementation | 069ced89095d63f06cb94f8b82d82378e2a7894c | [
"MIT"
] | null | null | null | Extrinsic/relation.py | bansal19/SfM_implementation | 069ced89095d63f06cb94f8b82d82378e2a7894c | [
"MIT"
] | 5 | 2020-12-02T16:26:51.000Z | 2020-12-02T16:33:32.000Z | Extrinsic/relation.py | bansal19/SfM_implementation | 069ced89095d63f06cb94f8b82d82378e2a7894c | [
"MIT"
] | null | null | null |
class Relation:
def __init__(self, E, src, dst, src_matches, dst_matches):
'''
Initializes the relation
Represents a relation between two images
E - The essential matrix between the images
src - The source image
dst - The destination image
src_matches - The s... | 29.911765 | 62 | 0.622419 | 137 | 1,017 | 4.452555 | 0.270073 | 0.114754 | 0.083607 | 0.062295 | 0.118033 | 0.118033 | 0.118033 | 0.118033 | 0.118033 | 0 | 0 | 0.004274 | 0.309735 | 1,017 | 34 | 63 | 29.911765 | 0.864672 | 0.368732 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.266667 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
4e4bc2f8e1f53944670b225acfc25a777b1f0e29 | 235 | py | Python | app.py | BedantHota/python-automation | cb0871cf35496aa37a725b4475b6b3d1e69a5e80 | [
"MIT"
] | 1 | 2020-11-09T13:58:20.000Z | 2020-11-09T13:58:20.000Z | app.py | bedantH/python-automation | cb0871cf35496aa37a725b4475b6b3d1e69a5e80 | [
"MIT"
] | null | null | null | app.py | bedantH/python-automation | cb0871cf35496aa37a725b4475b6b3d1e69a5e80 | [
"MIT"
] | null | null | null | import organizeit
import os
FOLDERS_NAME = ['Images', 'Music', 'Videos', 'Applications', 'Documents', 'Others']
path = os.path.expanduser('E:\\Bedant Site\\')
organizeit.createFolders(FOLDERS_NAME, path)
organizeit.insertFiles(path)
| 26.111111 | 83 | 0.744681 | 27 | 235 | 6.407407 | 0.666667 | 0.127168 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089362 | 235 | 8 | 84 | 29.375 | 0.808411 | 0 | 0 | 0 | 0 | 0 | 0.259574 | 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 |
4e4fec210857c378d4b54ed69dcd9cd7f1e89aab | 159 | py | Python | app/test_globals.py | vpn41/vpn41 | e56f3ed6525d15ccbf03a2bbcc2dd6c5bbbd8bfd | [
"MIT"
] | 2 | 2021-12-26T11:10:54.000Z | 2022-01-27T22:13:30.000Z | app/test_globals.py | vpn41/vpn41 | e56f3ed6525d15ccbf03a2bbcc2dd6c5bbbd8bfd | [
"MIT"
] | null | null | null | app/test_globals.py | vpn41/vpn41 | e56f3ed6525d15ccbf03a2bbcc2dd6c5bbbd8bfd | [
"MIT"
] | null | null | null | APP_DIR = '/path/to/app'
IP_ADDRESS = '192.168.17.18'
SSH_USER = 'root'
SSH_PASSWORD = 'pass'
PARAMS = dict(param1='value1', param2='value2')
PLATFORM='linux'
| 22.714286 | 47 | 0.698113 | 25 | 159 | 4.28 | 0.92 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098592 | 0.106918 | 159 | 6 | 48 | 26.5 | 0.65493 | 0 | 0 | 0 | 0 | 0 | 0.314465 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.166667 | 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 |
4e5ecc464efef3e6ffe65b9543bf9eda08edc114 | 133 | py | Python | django_serviceless_distributor/apps.py | FKLC/django-serviceless-distributor | c28eb3bf0842130089fae92b5976b388358a54d3 | [
"MIT"
] | 3 | 2019-03-09T12:25:32.000Z | 2019-03-10T12:55:31.000Z | django_serviceless_distributor/apps.py | FKLC/django-serviceless-distributor | c28eb3bf0842130089fae92b5976b388358a54d3 | [
"MIT"
] | 2 | 2019-03-10T09:14:19.000Z | 2019-03-10T09:17:05.000Z | django_serviceless_distributor/apps.py | FKLC/django-serviceless-distributor | c28eb3bf0842130089fae92b5976b388358a54d3 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class DjangoServicelessDistributorConfig(AppConfig):
name = "django_serviceless_distributor"
| 22.166667 | 52 | 0.834586 | 12 | 133 | 9.083333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.112782 | 133 | 5 | 53 | 26.6 | 0.923729 | 0 | 0 | 0 | 0 | 0 | 0.225564 | 0.225564 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
4e72b87198e54468c7f12962ceb7f41635f5cfd2 | 3,760 | py | Python | treasure_house/models.py | g337262260/treasure_house | 9ca7c619f2e5103b121db857c64c66a1c9ff0d6e | [
"MIT"
] | null | null | null | treasure_house/models.py | g337262260/treasure_house | 9ca7c619f2e5103b121db857c64c66a1c9ff0d6e | [
"MIT"
] | null | null | null | treasure_house/models.py | g337262260/treasure_house | 9ca7c619f2e5103b121db857c64c66a1c9ff0d6e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
:author: Guowei
"""
from datetime import datetime
from flask_login import UserMixin
from werkzeug.security import generate_password_hash, check_password_hash
from treasure_house.extensions import db
class Admin(db.Model, UserMixin):
id = db.Column(db.Integer, primary_key=True)
... | 34.814815 | 96 | 0.685106 | 531 | 3,760 | 4.768362 | 0.214689 | 0.14218 | 0.177725 | 0.132701 | 0.557267 | 0.400079 | 0.331754 | 0.307267 | 0.294234 | 0.294234 | 0 | 0.019445 | 0.165691 | 3,760 | 107 | 97 | 35.140187 | 0.787695 | 0.054787 | 0 | 0.253333 | 1 | 0 | 0.054833 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0.08 | 0.053333 | 0.013333 | 0.906667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
4e8a4ece439c772ce9a5f5cabb5d8712cf25a984 | 240 | py | Python | exercicios/ex034.py | RaquelBotelhoof/Python-curso-em-video | 919b2f44e85647c096c6b734c991635f1bfd1af9 | [
"MIT"
] | null | null | null | exercicios/ex034.py | RaquelBotelhoof/Python-curso-em-video | 919b2f44e85647c096c6b734c991635f1bfd1af9 | [
"MIT"
] | null | null | null | exercicios/ex034.py | RaquelBotelhoof/Python-curso-em-video | 919b2f44e85647c096c6b734c991635f1bfd1af9 | [
"MIT"
] | null | null | null | salário = float(input('Qual é o seu salario?'))
if salário <= 1250:
novo = salário + (salário *15 /100)
else:
novo = salário + (salário *10 /100)
print('Quem ganahva R$ {:.2f} passa a ganhar R$ {:.2f} agora.'.format(salário, novo))
| 34.285714 | 85 | 0.633333 | 36 | 240 | 4.222222 | 0.694444 | 0.144737 | 0.236842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.082051 | 0.1875 | 240 | 6 | 86 | 40 | 0.697436 | 0 | 0 | 0 | 0 | 0 | 0.3125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.166667 | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
4e926b1b556935d32dabfcf4c23ac0016f3b2386 | 199 | py | Python | src/FILE.py | kimminwyk/apache-log-parsing | 1fcf06dc349c37ab02b91c2c48e3dc8f6f5d4b4e | [
"MIT"
] | 1 | 2021-03-31T00:14:38.000Z | 2021-03-31T00:14:38.000Z | src/FILE.py | kimminwyk/apache-log-parsing | 1fcf06dc349c37ab02b91c2c48e3dc8f6f5d4b4e | [
"MIT"
] | null | null | null | src/FILE.py | kimminwyk/apache-log-parsing | 1fcf06dc349c37ab02b91c2c48e3dc8f6f5d4b4e | [
"MIT"
] | null | null | null | import os
def FILE_Split(FILENAME : str) -> tuple:
PATH_FILENAME = os.path.basename(FILENAME.strip(" "))
PATH_FILE = os.path.dirname(FILENAME.strip(" "))
return PATH_FILE, PATH_FILENAME | 28.428571 | 57 | 0.703518 | 27 | 199 | 5 | 0.481481 | 0.177778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.160804 | 199 | 7 | 58 | 28.428571 | 0.808383 | 0 | 0 | 0 | 0 | 0 | 0.01 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
4eafd01ce006e8c932e6f8b837d16b301a1797b1 | 45 | py | Python | T03-22/program.py | maa76/SSof-Project1920 | 9b4ad9ac41a648c425fcfcd49cd52ff84e528bde | [
"MIT"
] | 2 | 2019-11-20T19:26:07.000Z | 2019-11-22T00:42:23.000Z | T03-22/program.py | maa76/SSof-Project1920 | 9b4ad9ac41a648c425fcfcd49cd52ff84e528bde | [
"MIT"
] | 2 | 2019-11-28T05:21:24.000Z | 2019-11-28T05:21:58.000Z | T03-22/program.py | maa76/SSof-Project1920 | 9b4ad9ac41a648c425fcfcd49cd52ff84e528bde | [
"MIT"
] | 25 | 2019-11-27T01:40:56.000Z | 2019-12-04T23:38:59.000Z | a = True
if get():
a = "ola"
execute(a)
| 9 | 13 | 0.488889 | 8 | 45 | 2.75 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.311111 | 45 | 4 | 14 | 11.25 | 0.709677 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 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 |
14f234b400f56cc14e556ec6505f30581bb168bb | 29,614 | py | Python | track_wrapper/track_wrapper.py | acse-hvs119/pyTRACK-CMIP6 | b210f87a2339888a34d38f36d635fe83f9bfe9ef | [
"MIT"
] | null | null | null | track_wrapper/track_wrapper.py | acse-hvs119/pyTRACK-CMIP6 | b210f87a2339888a34d38f36d635fe83f9bfe9ef | [
"MIT"
] | null | null | null | track_wrapper/track_wrapper.py | acse-hvs119/pyTRACK-CMIP6 | b210f87a2339888a34d38f36d635fe83f9bfe9ef | [
"MIT"
] | null | null | null | import os
from cdo import *
from netCDF4 import Dataset
from pathlib import Path
from math import ceil
cdo = Cdo()
__all__ = ['cmip6_indat', 'regrid_cmip6', 'setup_files', 'calc_vorticity',
'track_mslp', 'track_uv_vor850', 'setup_tr2nc', 'track_era5_mslp',
'track_era5_vor850', 'tr2nc_m... | 33.424379 | 87 | 0.538799 | 3,623 | 29,614 | 4.30058 | 0.099089 | 0.033887 | 0.011681 | 0.01335 | 0.737629 | 0.70894 | 0.69174 | 0.673384 | 0.632501 | 0.609268 | 0 | 0.022324 | 0.322348 | 29,614 | 885 | 88 | 33.462147 | 0.754086 | 0.220706 | 0 | 0.711579 | 0 | 0 | 0.230004 | 0.018787 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033684 | false | 0 | 0.010526 | 0.008421 | 0.077895 | 0.061053 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
14fe2e0f9f23f8ac0acf3273b9fe8333f41744f9 | 14,486 | py | Python | tests/test_wealth_manger.py | Hyped-247/wealth-maneger-CLT | 673253fec0f68cc95b9221ddc788cebb1b9ce87f | [
"MIT"
] | 1 | 2022-03-25T11:52:37.000Z | 2022-03-25T11:52:37.000Z | tests/test_wealth_manger.py | Hyped-247/wealth-maneger-CLT | 673253fec0f68cc95b9221ddc788cebb1b9ce87f | [
"MIT"
] | null | null | null | tests/test_wealth_manger.py | Hyped-247/wealth-maneger-CLT | 673253fec0f68cc95b9221ddc788cebb1b9ce87f | [
"MIT"
] | null | null | null | import unittest
"""
@author: Mohammad Mahjoub
@date: May, 25, 2018
This class is going to calculate how many years will it take to generate passive for a given income from renting apts.
"""
import math
class Calculator:
def __init__(self, passive_income_desired_yearly,
yearly_savings,
... | 44.030395 | 118 | 0.590915 | 1,771 | 14,486 | 4.590062 | 0.123659 | 0.086357 | 0.084389 | 0.027679 | 0.697011 | 0.656292 | 0.56649 | 0.297823 | 0.245664 | 0.240989 | 0 | 0.151779 | 0.326867 | 14,486 | 328 | 119 | 44.164634 | 0.681879 | 0.209167 | 0 | 0.230769 | 1 | 0 | 0.03881 | 0 | 0 | 0 | 0 | 0 | 0.086538 | 1 | 0.225962 | false | 0.125 | 0.009615 | 0.014423 | 0.278846 | 0.033654 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
092a6c9c7104f799bd6283f50fa03715ca474ef3 | 582 | py | Python | csr3d/dist.py | weiyuanlou/PyCSR3D | 6129e89037d2c739eff34d1bdae38e2ad7036c68 | [
"Apache-2.0"
] | 3 | 2021-08-06T12:45:24.000Z | 2021-12-09T00:22:29.000Z | csr3d/dist.py | weiyuanlou/PyCSR3D | 6129e89037d2c739eff34d1bdae38e2ad7036c68 | [
"Apache-2.0"
] | 1 | 2021-09-02T03:54:44.000Z | 2021-09-02T03:54:44.000Z | csr3d/dist.py | ChristopherMayes/PyCSR3D | 67bf2fa296398209f38c28b639e6096de43ad154 | [
"Apache-2.0"
] | null | null | null | import numpy as np
def gauss(x, sigma=1, mu=0):
return 1/(sigma * np.sqrt(2 * np.pi)) * np.exp( - (x - mu)**2 / (2 * sigma**2) )
def lambda_gauss3(x, y, z, *, sigma_x, sigma_y, sigma_z):
"""
3D Gaussian G(z,x)
"""
return gauss(x, sigma_x)* gaus... | 34.235294 | 101 | 0.54811 | 102 | 582 | 2.931373 | 0.284314 | 0.120401 | 0.147157 | 0.080268 | 0.421405 | 0.267559 | 0.267559 | 0.267559 | 0.140468 | 0 | 0 | 0.031175 | 0.283505 | 582 | 17 | 101 | 34.235294 | 0.685851 | 0.101375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | false | 0 | 0.142857 | 0.142857 | 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 |
09357300bce1804c7f5e0b8ff83b9024fee0035c | 375 | py | Python | Module-11-Functions/functions-03-parameters-adv.py | CodingGearsCourses/PythonProgrammingFundamentals | 40e562e143802d997e1f0129bc8b52d5d0931728 | [
"MIT"
] | 1 | 2021-12-23T07:52:08.000Z | 2021-12-23T07:52:08.000Z | Module-11-Functions/functions-03-parameters-adv.py | CodingGearsCourses/PythonProgrammingFundamentals | 40e562e143802d997e1f0129bc8b52d5d0931728 | [
"MIT"
] | null | null | null | Module-11-Functions/functions-03-parameters-adv.py | CodingGearsCourses/PythonProgrammingFundamentals | 40e562e143802d997e1f0129bc8b52d5d0931728 | [
"MIT"
] | null | null | null | # Functions - Parameters - Adv
def print_message_format2(message="No Message", number=999, level="ERROR", *others):
print(level + ":" + str(number) + ":" + str(message))
print(others)
print(type(others))
message1 = "This is great!"
print_message_format2(message1, 100, "High", 1, 2, 3, 4, 5, "etc")
print... | 25 | 84 | 0.656 | 51 | 375 | 4.705882 | 0.529412 | 0.15 | 0.2375 | 0.225 | 0.3 | 0.3 | 0.3 | 0.3 | 0 | 0 | 0 | 0.070064 | 0.162667 | 375 | 14 | 85 | 26.785714 | 0.694268 | 0.074667 | 0 | 0 | 0 | 0 | 0.131195 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.142857 | 0.857143 | 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 | 0 | 1 | 0 | 3 |
0959fbcedd2a6454427d53d63536023aeec6e55a | 697 | py | Python | third_party/python/Lib/test/test_codecmaps_cn.py | appotry/cosmopolitan | af4687cc3f2331a23dc336183ab58fe001cda082 | [
"ISC"
] | null | null | null | third_party/python/Lib/test/test_codecmaps_cn.py | appotry/cosmopolitan | af4687cc3f2331a23dc336183ab58fe001cda082 | [
"ISC"
] | null | null | null | third_party/python/Lib/test/test_codecmaps_cn.py | appotry/cosmopolitan | af4687cc3f2331a23dc336183ab58fe001cda082 | [
"ISC"
] | null | null | null | #
# test_codecmaps_cn.py
# Codec mapping tests for PRC encodings
#
from test import multibytecodec_support
import unittest
class TestGB2312Map(multibytecodec_support.TestBase_Mapping,
unittest.TestCase):
encoding = 'gb2312'
mapfileurl = '/zip/.python/test/EUC-CN.TXT'
class TestGBKMap(mul... | 26.807692 | 61 | 0.694405 | 73 | 697 | 6.39726 | 0.520548 | 0.179872 | 0.186296 | 0.231263 | 0.385439 | 0.385439 | 0.385439 | 0 | 0 | 0 | 0 | 0.054152 | 0.205165 | 697 | 25 | 62 | 27.88 | 0.788809 | 0.086083 | 0 | 0.1875 | 0 | 0 | 0.18038 | 0.142405 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.6875 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
116e8e09f33519eaee1a1c7353849b4ed8218beb | 115 | py | Python | openstack/datadog_checks/openstack/__init__.py | dvanderveer/integrations-core | 41dd9950296455457c9b7342584153678503d5aa | [
"BSD-3-Clause"
] | null | null | null | openstack/datadog_checks/openstack/__init__.py | dvanderveer/integrations-core | 41dd9950296455457c9b7342584153678503d5aa | [
"BSD-3-Clause"
] | null | null | null | openstack/datadog_checks/openstack/__init__.py | dvanderveer/integrations-core | 41dd9950296455457c9b7342584153678503d5aa | [
"BSD-3-Clause"
] | null | null | null | from . import openstack
OpenStackCheck = openstack.OpenStackCheck
__version__ = "1.2.0"
__all__ = ['openstack']
| 14.375 | 41 | 0.747826 | 12 | 115 | 6.5 | 0.75 | 0.589744 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030303 | 0.13913 | 115 | 7 | 42 | 16.428571 | 0.757576 | 0 | 0 | 0 | 0 | 0 | 0.121739 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 |
117c1f9e5cb495d682c8adb53f261dfc8770bdfe | 1,700 | py | Python | sdk/python/pulumi_docker/config/vars.py | stevesloka/pulumi-docker | 6628c2dfab8ab3b6293da0b8f6befd143d19bd47 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_docker/config/vars.py | stevesloka/pulumi-docker | 6628c2dfab8ab3b6293da0b8f6befd143d19bd47 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_docker/config/vars.py | stevesloka/pulumi-docker | 6628c2dfab8ab3b6293da0b8f6befd143d19bd47 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import... | 26.5625 | 109 | 0.629412 | 194 | 1,700 | 5.293814 | 0.489691 | 0.074976 | 0.10224 | 0.067186 | 0.151899 | 0.151899 | 0.151899 | 0.151899 | 0.151899 | 0.105161 | 0 | 0.000793 | 0.258235 | 1,700 | 63 | 110 | 26.984127 | 0.81364 | 0.273529 | 0 | 0.233333 | 1 | 0 | 0.098811 | 0.024703 | 0 | 0 | 0 | 0 | 0 | 1 | 0.233333 | false | 0 | 0.233333 | 0.033333 | 0.733333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
11b0594a4e0c2c941b9b52282ba11de99ed69df8 | 2,323 | py | Python | test/test_v_2_pipeline_templates_controller_api.py | coveooss/spinnaker_python_client | 6f5ae436798cb4985ada65cd8169fcc9494d048f | [
"Apache-2.0"
] | null | null | null | test/test_v_2_pipeline_templates_controller_api.py | coveooss/spinnaker_python_client | 6f5ae436798cb4985ada65cd8169fcc9494d048f | [
"Apache-2.0"
] | null | null | null | test/test_v_2_pipeline_templates_controller_api.py | coveooss/spinnaker_python_client | 6f5ae436798cb4985ada65cd8169fcc9494d048f | [
"Apache-2.0"
] | 2 | 2019-10-17T07:49:21.000Z | 2021-08-10T23:12:41.000Z | # coding: utf-8
"""
Spinnaker API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import ... | 25.527473 | 133 | 0.671115 | 276 | 2,323 | 5.391304 | 0.278986 | 0.05914 | 0.05914 | 0.080645 | 0.413978 | 0.375672 | 0.266129 | 0.177419 | 0.129032 | 0.075269 | 0 | 0.031519 | 0.248816 | 2,323 | 90 | 134 | 25.811111 | 0.821203 | 0.015067 | 0 | 0.321429 | 1 | 0 | 0.007407 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.321429 | 0.178571 | null | null | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
11b4433f852a03f7aa77a4432f963213c2af545e | 4,237 | py | Python | tests/test_ai_engines.py | mantiumai/mantiumclient-py | 7dc474f94cfc87f779c33ceb753aa80a203757b7 | [
"Apache-2.0"
] | 6 | 2021-08-06T14:13:56.000Z | 2022-02-12T01:49:40.000Z | tests/test_ai_engines.py | mantiumai/mantiumclient-py | 7dc474f94cfc87f779c33ceb753aa80a203757b7 | [
"Apache-2.0"
] | 4 | 2021-11-10T11:49:36.000Z | 2022-02-03T22:16:30.000Z | tests/test_ai_engines.py | mantiumai/mantiumclient-py | 7dc474f94cfc87f779c33ceb753aa80a203757b7 | [
"Apache-2.0"
] | 1 | 2022-02-06T09:09:42.000Z | 2022-02-06T09:09:42.000Z | from unittest import mock
import mantiumapi.ai_engines
AIENGINE = {
"data": [
{
"id": "b2ffecf7-4fee-42e7-b85d-a5e28d939396",
"type": "ai_engine",
"attributes": {
"name": "davinci",
"description": "Davinci is the most capable engine and can perform any task the other models ca... | 37.495575 | 725 | 0.668633 | 538 | 4,237 | 5.157993 | 0.301115 | 0.022703 | 0.032793 | 0.048649 | 0.809369 | 0.78991 | 0.696216 | 0.667387 | 0.667387 | 0.667387 | 0 | 0.034315 | 0.222799 | 4,237 | 112 | 726 | 37.830357 | 0.808381 | 0 | 0 | 0.43299 | 0 | 0.030928 | 0.544274 | 0.06706 | 0 | 0 | 0 | 0 | 0.092784 | 1 | 0.051546 | false | 0 | 0.020619 | 0.010309 | 0.123711 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
11ba9bea936a260d0ea414dc2fa7ace4df80774f | 102 | py | Python | arc/arc026/arc026a.py | c-yan/atcoder | 940e49d576e6a2d734288fadaf368e486480a948 | [
"MIT"
] | 1 | 2019-08-21T00:49:34.000Z | 2019-08-21T00:49:34.000Z | arc/arc026/arc026a.py | c-yan/atcoder | 940e49d576e6a2d734288fadaf368e486480a948 | [
"MIT"
] | null | null | null | arc/arc026/arc026a.py | c-yan/atcoder | 940e49d576e6a2d734288fadaf368e486480a948 | [
"MIT"
] | null | null | null | N, A, B = map(int, input().split())
if N <= 5:
print(B * N)
else:
print(A * (N - 5) + B * 5)
| 14.571429 | 35 | 0.431373 | 20 | 102 | 2.2 | 0.55 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042857 | 0.313725 | 102 | 6 | 36 | 17 | 0.585714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0.4 | 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 |
11cf2831fc86363335a1496b8796c5192c488d30 | 328 | py | Python | resolution/__init__.py | ScholarIndex/LinkedBooks | 0cae008427ed1eb34a882e9d85f24b42b3ee3a28 | [
"MIT"
] | null | null | null | resolution/__init__.py | ScholarIndex/LinkedBooks | 0cae008427ed1eb34a882e9d85f24b42b3ee3a28 | [
"MIT"
] | 6 | 2020-03-20T18:10:01.000Z | 2021-09-29T17:31:17.000Z | resolution/__init__.py | ScholarIndex/LinkedBooks | 0cae008427ed1eb34a882e9d85f24b42b3ee3a28 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: UTF-8 -*-
# author: Matteo Romanello and Giovanni Colavizza
import logging
try: # Python 2.7+
from logging import NullHandler
except ImportError:
class NullHandler(logging.Handler):
def emit(self, record):
pass
logging.getLogger(__name__).addHandler(NullHan... | 25.230769 | 54 | 0.695122 | 38 | 328 | 5.894737 | 0.815789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011321 | 0.192073 | 328 | 13 | 54 | 25.230769 | 0.833962 | 0.29878 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.125 | 0.375 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
11e2f666c7b2031b2ccd5a15dc3d509be6ee887b | 285 | py | Python | mayan/apps/task_manager/literals.py | CMU-313/fall-2021-hw2-451-unavailable-for-legal-reasons | 0e4e919fd2e1ded6711354a0330135283e87f8c7 | [
"Apache-2.0"
] | 2 | 2021-09-12T19:41:19.000Z | 2021-09-12T19:41:20.000Z | mayan/apps/task_manager/literals.py | CMU-313/fall-2021-hw2-451-unavailable-for-legal-reasons | 0e4e919fd2e1ded6711354a0330135283e87f8c7 | [
"Apache-2.0"
] | 37 | 2021-09-13T01:00:12.000Z | 2021-10-02T03:54:30.000Z | mayan/apps/task_manager/literals.py | CMU-313/fall-2021-hw2-451-unavailable-for-legal-reasons | 0e4e919fd2e1ded6711354a0330135283e87f8c7 | [
"Apache-2.0"
] | 1 | 2021-09-22T13:17:30.000Z | 2021-09-22T13:17:30.000Z | DEFAULT_CELERY_BROKER_LOGIN_METHOD = 'AMQPLAIN'
DEFAULT_CELERY_BROKER_URL = 'memory://'
DEFAULT_CELERY_BROKER_USE_SSL = None
DEFAULT_CELERY_RESULT_BACKEND = None
TEST_CELERY_RESULT_KEY = '__mayan_test_result'
TEST_CELERY_RESULT_VALUE = 'test'
WORKER_DEFAULT_CONCURRENCY = 0
| 28.5 | 48 | 0.824561 | 38 | 285 | 5.5 | 0.526316 | 0.248804 | 0.272727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003953 | 0.112281 | 285 | 9 | 49 | 31.666667 | 0.822134 | 0 | 0 | 0 | 0 | 0 | 0.144928 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
11eb8df055550999ec941fb4bab02e3f2bab114b | 184 | py | Python | cronjob/factory.py | tejasj1718/django-cronjob | 7b30e4225443339883349a6550e340fe438e769f | [
"BSD-3-Clause"
] | 2 | 2021-09-13T17:08:44.000Z | 2021-09-13T17:08:49.000Z | cronjob/factory.py | tejasj1718/django-cronjob | 7b30e4225443339883349a6550e340fe438e769f | [
"BSD-3-Clause"
] | null | null | null | cronjob/factory.py | tejasj1718/django-cronjob | 7b30e4225443339883349a6550e340fe438e769f | [
"BSD-3-Clause"
] | null | null | null | from models import Job
DEFAULT_KWARGS = {
}
def job_factory(number_of_jobs):
job_list = []
for i in range(number_of_jobs):
Job.objects.create(name=f'job_{i + 1}')
| 14.153846 | 47 | 0.657609 | 29 | 184 | 3.896552 | 0.724138 | 0.141593 | 0.212389 | 0.265487 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006993 | 0.222826 | 184 | 12 | 48 | 15.333333 | 0.783217 | 0 | 0 | 0 | 0 | 0 | 0.059783 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.285714 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
11ed09baa0509612307c31a0e11f189a675427c5 | 174 | py | Python | beethon/tests/cases.py | wblxyxolbkhv/beethon | f320b769fb30990a89fcd1cf6229b90d725fd206 | [
"MIT"
] | 6 | 2019-10-31T11:58:47.000Z | 2020-02-24T19:34:16.000Z | beethon/tests/cases.py | wblxyxolbkhv/beethon | f320b769fb30990a89fcd1cf6229b90d725fd206 | [
"MIT"
] | null | null | null | beethon/tests/cases.py | wblxyxolbkhv/beethon | f320b769fb30990a89fcd1cf6229b90d725fd206 | [
"MIT"
] | null | null | null | import asyncio
import beethon
class BaseBeethonTestCase:
def setup(self):
asyncio.ensure_future(beethon.run())
def teardown(self):
beethon.stop()
| 14.5 | 44 | 0.678161 | 19 | 174 | 6.157895 | 0.684211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.229885 | 174 | 11 | 45 | 15.818182 | 0.873134 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.285714 | 0 | 0.714286 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
11ed6b3c50bf48613e1205d9bc14e12eb55523ef | 12,137 | py | Python | tests/small/rpc/test_response.py | durandj/mymcadmin | 6c9ebfa2a5dfcea1f5fb5c5cf1c0256b05b98172 | [
"MIT"
] | null | null | null | tests/small/rpc/test_response.py | durandj/mymcadmin | 6c9ebfa2a5dfcea1f5fb5c5cf1c0256b05b98172 | [
"MIT"
] | null | null | null | tests/small/rpc/test_response.py | durandj/mymcadmin | 6c9ebfa2a5dfcea1f5fb5c5cf1c0256b05b98172 | [
"MIT"
] | null | null | null | """
Tests for the JSON RPC response class
"""
import json
import unittest
import nose
from mymcadmin.rpc import response
class TestJsonRpcResponse(unittest.TestCase):
"""
Tests for the JSON RPC response class
"""
# pylint: disable=no-self-use
@nose.tools.raises(ValueError)
def test_construc... | 25.232848 | 76 | 0.506138 | 1,172 | 12,137 | 5.131399 | 0.09471 | 0.141503 | 0.051879 | 0.05986 | 0.816428 | 0.785168 | 0.747256 | 0.656136 | 0.54556 | 0.461257 | 0 | 0.013602 | 0.382137 | 12,137 | 480 | 77 | 25.285417 | 0.788372 | 0.159595 | 0 | 0.6 | 0 | 0 | 0.109984 | 0 | 0 | 0 | 0 | 0 | 0.057143 | 1 | 0.089286 | false | 0 | 0.014286 | 0 | 0.110714 | 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 |
11f1c6b8b7fd54dcf80f2dd8972c31655ac23955 | 72 | py | Python | voila/_version.py | DougRzz/voila | e1adf65b2620cbfd8854f883a40b80ddc9e93709 | [
"BSD-3-Clause"
] | 3 | 2017-07-19T00:08:04.000Z | 2021-01-21T18:09:41.000Z | voila/_version.py | DougRzz/voila | e1adf65b2620cbfd8854f883a40b80ddc9e93709 | [
"BSD-3-Clause"
] | null | null | null | voila/_version.py | DougRzz/voila | e1adf65b2620cbfd8854f883a40b80ddc9e93709 | [
"BSD-3-Clause"
] | 1 | 2017-11-22T08:01:39.000Z | 2017-11-22T08:01:39.000Z | version_info = (0, 0, 1)
__version__ = '.'.join(map(str, version_info))
| 24 | 46 | 0.666667 | 11 | 72 | 3.818182 | 0.636364 | 0.52381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 0.125 | 72 | 2 | 47 | 36 | 0.619048 | 0 | 0 | 0 | 0 | 0 | 0.013889 | 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 |
f501162eee07308ad3ccfc69d2b389d31dedcffc | 637 | py | Python | Alignment/CommonAlignmentProducer/python/AlignmentTracksFromVertexSelector_cfi.py | Purva-Chaudhari/cmssw | 32e5cbfe54c4d809d60022586cf200b7c3020bcf | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | Alignment/CommonAlignmentProducer/python/AlignmentTracksFromVertexSelector_cfi.py | Purva-Chaudhari/cmssw | 32e5cbfe54c4d809d60022586cf200b7c3020bcf | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | Alignment/CommonAlignmentProducer/python/AlignmentTracksFromVertexSelector_cfi.py | Purva-Chaudhari/cmssw | 32e5cbfe54c4d809d60022586cf200b7c3020bcf | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | import FWCore.ParameterSet.Config as cms
from Alignment.CommonAlignmentProducer.alignmentTrackFromVertexSelectorModule_cfi import alignmentTrackFromVertexSelectorModule
AlignmentTracksFromVertexSelector = alignmentTrackFromVertexSelectorModule.clone(src = cms.InputTag("generalTracks"),
... | 79.625 | 131 | 0.533752 | 32 | 637 | 10.59375 | 0.75 | 0.064897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008086 | 0.417582 | 637 | 7 | 132 | 91 | 0.90566 | 0 | 0 | 0 | 0 | 0 | 0.054945 | 0.034537 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
ee98139f875d954a833b2d86e3fa8f120d2fa05f | 51,405 | py | Python | src/biopsykit/utils/datatype_helper.py | Zwitscherle/BioPsyKit | 7200c5f1be75c20f53e1eb4c991aca1c89e3dd88 | [
"MIT"
] | 10 | 2020-11-05T13:34:55.000Z | 2022-03-11T16:20:10.000Z | src/biopsykit/utils/datatype_helper.py | Zwitscherle/BioPsyKit | 7200c5f1be75c20f53e1eb4c991aca1c89e3dd88 | [
"MIT"
] | 14 | 2021-03-11T14:43:52.000Z | 2022-03-10T19:44:57.000Z | src/biopsykit/utils/datatype_helper.py | Zwitscherle/BioPsyKit | 7200c5f1be75c20f53e1eb4c991aca1c89e3dd88 | [
"MIT"
] | 3 | 2021-09-13T13:14:38.000Z | 2022-02-19T09:13:25.000Z | """A couple of helper functions that ease the use of the typical biopsykit data formats."""
from typing import Any, Dict, List, Optional, Union
import numpy as np
import pandas as pd
from biopsykit.utils._datatype_validation_helper import (
_assert_has_column_multiindex,
_assert_has_column_prefix,
_assert... | 34.639488 | 120 | 0.662757 | 6,216 | 51,405 | 5.344595 | 0.065476 | 0.049305 | 0.033231 | 0.037385 | 0.744055 | 0.726898 | 0.681627 | 0.639967 | 0.622449 | 0.607609 | 0 | 0.001473 | 0.220932 | 51,405 | 1,483 | 121 | 34.662846 | 0.828081 | 0.2847 | 0 | 0.566316 | 0 | 0 | 0.214136 | 0.032091 | 0 | 0 | 0 | 0 | 0.143158 | 1 | 0.048421 | false | 0.08 | 0.010526 | 0 | 0.187368 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
eec847580b0ee97d46d32095b31341d53af4f598 | 399 | py | Python | src/graphs/subgraphs/SubGraph.py | nemkin/quantum | 60944144323bd5392ee660968960a30cfd4a5b50 | [
"MIT"
] | 1 | 2021-08-24T10:09:39.000Z | 2021-08-24T10:09:39.000Z | src/graphs/subgraphs/SubGraph.py | nemkin/quantum | 60944144323bd5392ee660968960a30cfd4a5b50 | [
"MIT"
] | 12 | 2021-11-30T23:36:10.000Z | 2022-01-14T19:51:54.000Z | src/graphs/subgraphs/SubGraph.py | nemkin/quantum | 60944144323bd5392ee660968960a30cfd4a5b50 | [
"MIT"
] | null | null | null | import numpy as np
class SubGraph(object):
def neighbours(self, vertex):
return []
def describe(self):
return "Ismeretlen részgráf"
def adjacency_matrix(self, vertex_count):
adjacency = np.zeros([vertex_count, vertex_count])
for i in range(vertex_count):
neighbours = self.neighbours(i)... | 19 | 54 | 0.671679 | 51 | 399 | 5.156863 | 0.490196 | 0.1673 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003268 | 0.233083 | 399 | 20 | 55 | 19.95 | 0.856209 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.076923 | 0.153846 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
eecdc43ce34569ac0ff25eb29b233cb6da160d09 | 416 | py | Python | bilibili_api/__init__.py | limn2o4/bilibili_api | dc518016c7649be2a135ccb8badb091712754a3d | [
"MIT"
] | null | null | null | bilibili_api/__init__.py | limn2o4/bilibili_api | dc518016c7649be2a135ccb8badb091712754a3d | [
"MIT"
] | null | null | null | bilibili_api/__init__.py | limn2o4/bilibili_api | dc518016c7649be2a135ccb8badb091712754a3d | [
"MIT"
] | null | null | null | from .utils.network import set_session, get_session
from .utils.Credential import Credential
from .utils.sync import sync
from .utils.aid_bvid_transformer import aid2bvid, bvid2aid
from .utils.Danmaku import Danmaku
import platform
import asyncio
# 如果系统为 Windows,则修改默认策略,以解决代理报错问题
if 'windows' in platform.... | 29.714286 | 76 | 0.798077 | 52 | 416 | 6.25 | 0.557692 | 0.138462 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005525 | 0.129808 | 416 | 13 | 77 | 32 | 0.892265 | 0.074519 | 0 | 0 | 0 | 0 | 0.018919 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.777778 | 0 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
eee909d5312f5c6cfcd4af145d8529f3fda2a4b7 | 109 | py | Python | VENV/entorno_virtual/Lib/site-packages/pylint/test/regrtest_data/unused_variable.py | jsaavedra132/Proyecto-Analisis-de-algoritmos | b06b82091337989989b1123641ce94867c5b2283 | [
"MIT"
] | 463 | 2015-01-15T08:17:42.000Z | 2022-03-28T15:10:20.000Z | VENV/entorno_virtual/Lib/site-packages/pylint/test/regrtest_data/unused_variable.py | jsaavedra132/Proyecto-Analisis-de-algoritmos | b06b82091337989989b1123641ce94867c5b2283 | [
"MIT"
] | 52 | 2015-01-06T02:43:59.000Z | 2022-03-14T11:15:21.000Z | VENV/entorno_virtual/Lib/site-packages/pylint/test/regrtest_data/unused_variable.py | jsaavedra132/Proyecto-Analisis-de-algoritmos | b06b82091337989989b1123641ce94867c5b2283 | [
"MIT"
] | 249 | 2015-01-07T22:49:49.000Z | 2022-03-18T02:32:06.000Z | # pylint: disable=missing-docstring
def test():
variable = ''
variable2 = None
return variable2
| 15.571429 | 35 | 0.66055 | 11 | 109 | 6.545455 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024096 | 0.238532 | 109 | 6 | 36 | 18.166667 | 0.843373 | 0.302752 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e103c4952bf0507d09fb46d42f6943df677c17c2 | 844 | py | Python | decryptmessage.py | jmaldon1/Python-Course | 7750036956d2b4f9bff0df0d582a009e6986fdbc | [
"MIT"
] | 1 | 2018-02-27T22:20:49.000Z | 2018-02-27T22:20:49.000Z | decryptmessage.py | jmaldon1/Python-Course | 7750036956d2b4f9bff0df0d582a009e6986fdbc | [
"MIT"
] | null | null | null | decryptmessage.py | jmaldon1/Python-Course | 7750036956d2b4f9bff0df0d582a009e6986fdbc | [
"MIT"
] | null | null | null | #Twitter Interview Question
def decrypt(encrypted_message):
answer = []
code = "8251220"
i = 0
idx = 0
#print(chr(ord(encrypted_message[(i):(i+1)])))
while i < len(encrypted_message):
#print(chr(ord(encrypted_message[i])))
#if not a letter
if not encrypted_message[i].isal... | 32.461538 | 97 | 0.529621 | 104 | 844 | 4.211538 | 0.346154 | 0.328767 | 0.27169 | 0.251142 | 0.431507 | 0.36758 | 0.239726 | 0 | 0 | 0 | 0 | 0.043403 | 0.317536 | 844 | 25 | 98 | 33.76 | 0.717014 | 0.17891 | 0 | 0.235294 | 0 | 0 | 0.010189 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0 | 0 | 0.117647 | 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 |
e104303a2648cc27439ee21603566a754c98db2e | 112 | py | Python | openslides_backend/action/actions/motion_category/__init__.py | MJJojo97/openslides-backend | af0d1edb0070e352d46f285a1ba0bbe3702d49ae | [
"MIT"
] | 5 | 2020-01-20T13:57:15.000Z | 2021-03-27T14:14:44.000Z | openslides_backend/action/actions/motion_category/__init__.py | MJJojo97/openslides-backend | af0d1edb0070e352d46f285a1ba0bbe3702d49ae | [
"MIT"
] | 859 | 2020-01-11T22:58:37.000Z | 2022-03-30T14:54:06.000Z | openslides_backend/action/actions/motion_category/__init__.py | MJJojo97/openslides-backend | af0d1edb0070e352d46f285a1ba0bbe3702d49ae | [
"MIT"
] | 16 | 2020-01-04T20:28:57.000Z | 2022-02-10T12:06:54.000Z | from . import ( # noqa
create_update_delete,
number_motions,
sort,
sort_motions_in_category,
)
| 16 | 29 | 0.678571 | 13 | 112 | 5.384615 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 112 | 6 | 30 | 18.666667 | 0.833333 | 0.035714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 0 | 0.166667 | 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 |
e1195ae61db0379164d9032f39accf38e2a24a63 | 218 | py | Python | testcarmer/changeimagesize.py | gyhdtc/QATM_pytorch | 1af21d107dea03dbe65fd87ff15ad5af37f1c514 | [
"MIT"
] | null | null | null | testcarmer/changeimagesize.py | gyhdtc/QATM_pytorch | 1af21d107dea03dbe65fd87ff15ad5af37f1c514 | [
"MIT"
] | null | null | null | testcarmer/changeimagesize.py | gyhdtc/QATM_pytorch | 1af21d107dea03dbe65fd87ff15ad5af37f1c514 | [
"MIT"
] | null | null | null | import cv2
import numpy as np
import os
pic = cv2.imread("/home/gyh/QATM_pytorch/handtemplate/1.png", cv2.IMREAD_COLOR)
pic_n = cv2.resize(pic, (30, 40))
cv2.imwrite("/home/gyh/QATM_pytorch/handtemplate/1.png", pic_n) | 31.142857 | 79 | 0.756881 | 39 | 218 | 4.102564 | 0.538462 | 0.1125 | 0.1375 | 0.225 | 0.425 | 0.425 | 0.425 | 0 | 0 | 0 | 0 | 0.055276 | 0.087156 | 218 | 7 | 80 | 31.142857 | 0.748744 | 0 | 0 | 0 | 0 | 0 | 0.374429 | 0.374429 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
e11a3828c13d6e4d91643e13b38f95eebd0e39c1 | 197 | py | Python | Codechef/April-challenge2021/chocolatemonger.py | vsvipul11/Competitive-Programming | 592cecbeb68f620d71f008dc1471e41b1dc5f373 | [
"MIT"
] | null | null | null | Codechef/April-challenge2021/chocolatemonger.py | vsvipul11/Competitive-Programming | 592cecbeb68f620d71f008dc1471e41b1dc5f373 | [
"MIT"
] | null | null | null | Codechef/April-challenge2021/chocolatemonger.py | vsvipul11/Competitive-Programming | 592cecbeb68f620d71f008dc1471e41b1dc5f373 | [
"MIT"
] | null | null | null | for _ in range(int(input())):
n,x = list(map(int,input().split()))
arr = list(map(int,input().split()))
u = len(set(arr))
r = n-u
x-=r
if x>0:
u-=x
print(u)# cook your dish here
| 17.909091 | 38 | 0.543147 | 38 | 197 | 2.789474 | 0.578947 | 0.226415 | 0.188679 | 0.283019 | 0.377358 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006536 | 0.22335 | 197 | 10 | 39 | 19.7 | 0.686275 | 0.096447 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.111111 | 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 |
0118595f62e2cc409be297e8c90b183cdfd16f35 | 13,970 | py | Python | pysnmp-with-texts/Nortel-MsCarrier-MscPassport-ModDprsQosMIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/Nortel-MsCarrier-MscPassport-ModDprsQosMIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/Nortel-MsCarrier-MscPassport-ModDprsQosMIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module Nortel-MsCarrier-MscPassport-ModDprsQosMIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Nortel-MsCarrier-MscPassport-ModDprsQosMIB
# Produced by pysmi-0.3.4 at Wed May 1 14:30:55 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user ... | 164.352941 | 1,725 | 0.805154 | 1,512 | 13,970 | 7.439153 | 0.169312 | 0.038407 | 0.067212 | 0.010313 | 0.485509 | 0.334993 | 0.334993 | 0.330014 | 0.312945 | 0.283962 | 0 | 0.055037 | 0.088261 | 13,970 | 84 | 1,726 | 166.309524 | 0.82806 | 0.027058 | 0 | 0 | 0 | 0.077922 | 0.333579 | 0.071855 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.116883 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
016c63f8af8272bd2f20b62dfc7c4886b27ab0e9 | 602 | py | Python | tests/mockLifepo4weredSO.py | fredericklussier/Lifepo4weredPyWrapper | f5b3fedf896d0d616bf5ae603953e5541d493640 | [
"MIT"
] | null | null | null | tests/mockLifepo4weredSO.py | fredericklussier/Lifepo4weredPyWrapper | f5b3fedf896d0d616bf5ae603953e5541d493640 | [
"MIT"
] | null | null | null | tests/mockLifepo4weredSO.py | fredericklussier/Lifepo4weredPyWrapper | f5b3fedf896d0d616bf5ae603953e5541d493640 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
# -*- coding: utf-8 -*-
"""
This simulate the lifepo4wered SO for testing porpose.
It allow performing unit tests event if lifepo4wered device
is not plugged.
"""
def access_lifepo4wered(eLiFePO4weredVar, access_mask):
"""
Determine if the specified variable can be accessed in the
spe... | 22.296296 | 63 | 0.692691 | 73 | 602 | 5.657534 | 0.671233 | 0.20339 | 0.096852 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027484 | 0.214286 | 602 | 27 | 64 | 22.296296 | 0.845666 | 0.549834 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
017111be7eb8aacd342a28886e30a5682d29ec87 | 49 | py | Python | cp_multiply/__init__.py | gkonjevod/multiply_CP | 2410d242a29a340db8184e127d05c5da9d26f1b4 | [
"MIT"
] | null | null | null | cp_multiply/__init__.py | gkonjevod/multiply_CP | 2410d242a29a340db8184e127d05c5da9d26f1b4 | [
"MIT"
] | null | null | null | cp_multiply/__init__.py | gkonjevod/multiply_CP | 2410d242a29a340db8184e127d05c5da9d26f1b4 | [
"MIT"
] | null | null | null | __all__ = ['general_cp', 'cp_utils', 'examples']
| 24.5 | 48 | 0.673469 | 6 | 49 | 4.5 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102041 | 49 | 1 | 49 | 49 | 0.613636 | 0 | 0 | 0 | 0 | 0 | 0.530612 | 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 |
6d7379c55277500090036d81679bfe2296ef5aa9 | 845 | py | Python | epi_judge_python/successor_in_tree.py | shobhitmishra/CodingProblems | 0fc8c5037eef95b3ec9826b3a6e48885fc86659e | [
"MIT"
] | null | null | null | epi_judge_python/successor_in_tree.py | shobhitmishra/CodingProblems | 0fc8c5037eef95b3ec9826b3a6e48885fc86659e | [
"MIT"
] | null | null | null | epi_judge_python/successor_in_tree.py | shobhitmishra/CodingProblems | 0fc8c5037eef95b3ec9826b3a6e48885fc86659e | [
"MIT"
] | null | null | null | import functools
from typing import Optional
from binary_tree_with_parent_prototype import BinaryTreeNode
from test_framework import generic_test
from test_framework.binary_tree_utils import must_find_node
from test_framework.test_utils import enable_executor_hook
def find_successor(node: BinaryTreeNode) -> Optional... | 29.137931 | 69 | 0.72426 | 106 | 845 | 5.377358 | 0.415094 | 0.091228 | 0.089474 | 0.073684 | 0.119298 | 0.119298 | 0 | 0 | 0 | 0 | 0 | 0.001508 | 0.215385 | 845 | 28 | 70 | 30.178571 | 0.85822 | 0.028402 | 0 | 0 | 0 | 0 | 0.059829 | 0.025641 | 0 | 0 | 0 | 0.035714 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0.055556 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
6d77613a953bfb0a7348197953083ed4308aa93e | 141 | py | Python | ENTRY_MODULE/ForLoop/LAB/06_Vowels_Sum.py | sleepychild/ProgramingBasicsPython | d96dc4662adc1c8329b731b9c9b7fa4ecf69ec16 | [
"MIT"
] | null | null | null | ENTRY_MODULE/ForLoop/LAB/06_Vowels_Sum.py | sleepychild/ProgramingBasicsPython | d96dc4662adc1c8329b731b9c9b7fa4ecf69ec16 | [
"MIT"
] | 1 | 2022-01-15T10:33:56.000Z | 2022-01-15T10:33:56.000Z | ENTRY_MODULE/ForLoop/LAB/06_Vowels_Sum.py | sleepychild/ProgramingBasicsPython | d96dc4662adc1c8329b731b9c9b7fa4ecf69ec16 | [
"MIT"
] | null | null | null | total: int = int()
for c in input():
try:
total += ('', 'a', 'e', 'i', 'o', 'u').index(c)
except:
pass
print(total)
| 15.666667 | 55 | 0.432624 | 20 | 141 | 3.05 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.319149 | 141 | 8 | 56 | 17.625 | 0.635417 | 0 | 0 | 0 | 0 | 0 | 0.035461 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.142857 | 0 | 0 | 0 | 0.142857 | 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 |
6d785763ed58304beb45a564197d6abaf9821e75 | 2,682 | py | Python | vgg_16_bn.py | ninastijepovic/MasterThesis | 2579f1e74c0ce404f350a6d441e273b6aef4eadc | [
"MIT"
] | null | null | null | vgg_16_bn.py | ninastijepovic/MasterThesis | 2579f1e74c0ce404f350a6d441e273b6aef4eadc | [
"MIT"
] | null | null | null | vgg_16_bn.py | ninastijepovic/MasterThesis | 2579f1e74c0ce404f350a6d441e273b6aef4eadc | [
"MIT"
] | null | null | null | import tensorflow as tf
from tensorflow import keras
from tensorflow.keras import layers, regularizers
from tensorflow.keras.models import Sequential
from tensorflow.keras.optimizers import Adam
from tensorflow.keras.layers import Activation, Reshape, Dropout, Flatten, Conv2D, MaxPooling2D, Dense, BatchNormalization, S... | 57.06383 | 164 | 0.708054 | 397 | 2,682 | 4.589421 | 0.138539 | 0.175631 | 0.210757 | 0.230516 | 0.716795 | 0.694841 | 0.652031 | 0.652031 | 0.652031 | 0.652031 | 0 | 0.075536 | 0.131245 | 2,682 | 46 | 165 | 58.304348 | 0.706438 | 0 | 0 | 0.564103 | 0 | 0 | 0.042878 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025641 | false | 0 | 0.153846 | 0 | 0.205128 | 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 |
6db0853ad19ff8f753ae660cba918feca918b6e5 | 23 | py | Python | __init__.py | etworker/TumblrDownloader | e1bcc4b11e729fcd5783551691764bc0d90e5077 | [
"MIT"
] | null | null | null | __init__.py | etworker/TumblrDownloader | e1bcc4b11e729fcd5783551691764bc0d90e5077 | [
"MIT"
] | null | null | null | __init__.py | etworker/TumblrDownloader | e1bcc4b11e729fcd5783551691764bc0d90e5077 | [
"MIT"
] | null | null | null | __author__ = 'worker'
| 11.5 | 22 | 0.695652 | 2 | 23 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173913 | 23 | 1 | 23 | 23 | 0.631579 | 0 | 0 | 0 | 0 | 0 | 0.272727 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6db1198668604c3613fa9e13047cbf5934e986f5 | 2,200 | py | Python | test/test_api_v2___admin__partnerships_api.py | Fates-List/fateslist.py-autogen | 0643434d9d0e71f781f99b2703a2ef52f49d8875 | [
"MIT"
] | null | null | null | test/test_api_v2___admin__partnerships_api.py | Fates-List/fateslist.py-autogen | 0643434d9d0e71f781f99b2703a2ef52f49d8875 | [
"MIT"
] | null | null | null | test/test_api_v2___admin__partnerships_api.py | Fates-List/fateslist.py-autogen | 0643434d9d0e71f781f99b2703a2ef52f49d8875 | [
"MIT"
] | null | null | null | # coding: utf-8
"""
Fates List
Current API: v2 beta 3 Default API: v2 API Docs: https://apidocs.fateslist.xyz Enum Reference: https://apidocs.fateslist.xyz/structures/enums.autogen # noqa: E501
OpenAPI spec version: 0.3.0
Generated by: h... | 28.947368 | 225 | 0.702273 | 279 | 2,200 | 5.082437 | 0.268817 | 0.052891 | 0.091678 | 0.152327 | 0.502821 | 0.454866 | 0.425952 | 0.287729 | 0.22567 | 0.155148 | 0 | 0.030231 | 0.233182 | 2,200 | 75 | 226 | 29.333333 | 0.810314 | 0.459545 | 0 | 0.291667 | 0 | 0 | 0.007828 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.291667 | 0.208333 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
6dc3544420f8032fbd951527e0d7f5dd3c55c738 | 295 | py | Python | atoot/__init__.py | popura-network/atoot | bfcb5b3fda691caca049de7d4128653cf4358fcc | [
"MIT"
] | 12 | 2020-07-01T17:43:33.000Z | 2021-03-21T20:57:53.000Z | atoot/__init__.py | popura-network/atoot | bfcb5b3fda691caca049de7d4128653cf4358fcc | [
"MIT"
] | null | null | null | atoot/__init__.py | popura-network/atoot | bfcb5b3fda691caca049de7d4128653cf4358fcc | [
"MIT"
] | 1 | 2022-02-24T06:46:20.000Z | 2022-02-24T06:46:20.000Z | from atoot.api import (
MastodonAPI, client,
MastodonError,
NetworkError,
ApiError,
ClientError,
UnauthorizedError,
ForbiddenError,
NotFoundError,
ConflictError,
GoneError,
UnprocessedError,
RatelimitError,
ServerError,
UnavailableError
)
| 17.352941 | 24 | 0.684746 | 19 | 295 | 10.631579 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.257627 | 295 | 16 | 25 | 18.4375 | 0.922374 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.0625 | 0 | 0.0625 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6dce23773879fbbdb645b4b57e3f95de7e45637a | 3,237 | py | Python | sboapp/migrations/0026_auto_20180607_0303.py | tmaunier/sboucru | c01c34f909fb89b9eb35c476ff4ac595116ad024 | [
"MIT"
] | 3 | 2020-11-18T10:11:40.000Z | 2021-11-08T08:48:05.000Z | sboapp/migrations/0026_auto_20180607_0303.py | tmaunier/sboucru | c01c34f909fb89b9eb35c476ff4ac595116ad024 | [
"MIT"
] | 3 | 2020-06-05T18:42:49.000Z | 2021-06-10T20:42:06.000Z | sboapp/migrations/0026_auto_20180607_0303.py | tmaunier/sboucru | c01c34f909fb89b9eb35c476ff4ac595116ad024 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.3 on 2018-06-07 03:03
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('sboapp', '0025_auto_20180606_0630'),
]
operations = [
migrations.CreateModel(
name='Pma',
... | 50.578125 | 143 | 0.594686 | 355 | 3,237 | 5.211268 | 0.273239 | 0.099459 | 0.189189 | 0.234595 | 0.657297 | 0.480541 | 0.427568 | 0.387568 | 0.387568 | 0.387568 | 0 | 0.04618 | 0.264133 | 3,237 | 63 | 144 | 51.380952 | 0.730479 | 0.013902 | 0 | 0.192982 | 1 | 0 | 0.116928 | 0.00721 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.035088 | 0 | 0.087719 | 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 |
6dd0db6316fa3424fa6e3a5ea57014c29d1ced55 | 850 | py | Python | src/text/utility/text_modifiers.py | fronovics/AI_playground | ac302c0694fa2182af343c257b28a033bc4cf5b9 | [
"Apache-2.0"
] | null | null | null | src/text/utility/text_modifiers.py | fronovics/AI_playground | ac302c0694fa2182af343c257b28a033bc4cf5b9 | [
"Apache-2.0"
] | null | null | null | src/text/utility/text_modifiers.py | fronovics/AI_playground | ac302c0694fa2182af343c257b28a033bc4cf5b9 | [
"Apache-2.0"
] | null | null | null | class TextModifier:
def __init__(self, start, end, field_name, field_value):
self.field_name = field_name
self.field_value = field_value
self.start = start
self.end = end
def offset(self, start_offset, end_offset=None):
if end_offset is None:
end_offset = sta... | 29.310345 | 99 | 0.605882 | 105 | 850 | 4.504762 | 0.209524 | 0.133192 | 0.088795 | 0.080338 | 0.262156 | 0.262156 | 0.143763 | 0 | 0 | 0 | 0 | 0 | 0.289412 | 850 | 28 | 100 | 30.357143 | 0.783113 | 0 | 0 | 0 | 0 | 0 | 0.016471 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.26087 | false | 0 | 0 | 0.173913 | 0.521739 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
6dd36fae0f8096f8df2842249005f34d02c29966 | 16,940 | py | Python | cdshealpix/ring/healpix.py | cds-astro/cds-healpix-python | bc02f2e7ccad1d55f3a5e4caac689d8cc29eadeb | [
"BSD-3-Clause"
] | 3 | 2019-01-30T13:34:51.000Z | 2020-11-11T07:31:12.000Z | cdshealpix/ring/healpix.py | cds-astro/cds-healpix-python | bc02f2e7ccad1d55f3a5e4caac689d8cc29eadeb | [
"BSD-3-Clause"
] | 9 | 2019-07-04T08:09:47.000Z | 2021-03-10T16:51:18.000Z | cdshealpix/ring/healpix.py | cds-astro/cds-healpix-python | bc02f2e7ccad1d55f3a5e4caac689d8cc29eadeb | [
"BSD-3-Clause"
] | 1 | 2019-07-04T11:23:20.000Z | 2019-07-04T11:23:20.000Z | from .. import cdshealpix # noqa
import astropy.units as u
from astropy.coordinates import SkyCoord, Angle, Longitude, Latitude
import numpy as np
# Do not fill by hand :)
# > egrep "^ *def" healpix.py | cut -c 5- | egrep -v '^_'| cut -d '(' -f 1 | sed -r "s/^(.*)$/ '\1'/" | tr '\n' ','
__all__ = ['lonlat_to_healpix'... | 40.23753 | 148 | 0.655726 | 2,430 | 16,940 | 4.500823 | 0.104115 | 0.029258 | 0.029167 | 0.023041 | 0.772241 | 0.74152 | 0.722319 | 0.693609 | 0.680168 | 0.658773 | 0 | 0.02034 | 0.227981 | 16,940 | 420 | 149 | 40.333333 | 0.81595 | 0.686777 | 0 | 0.359551 | 0 | 0 | 0.122048 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.089888 | false | 0 | 0.044944 | 0 | 0.224719 | 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 |
a300377ddb99ff25cfa9536406a2c73ac37084f2 | 973 | py | Python | src/abaqus/Sketcher/ConstrainedSketchGeometry/CircleByCenterPerimeter.py | Haiiliin/PyAbaqus | f20db6ebea19b73059fe875a53be370253381078 | [
"MIT"
] | 7 | 2022-01-21T09:15:45.000Z | 2022-02-15T09:31:58.000Z | src/abaqus/Sketcher/ConstrainedSketchGeometry/CircleByCenterPerimeter.py | Haiiliin/PyAbaqus | f20db6ebea19b73059fe875a53be370253381078 | [
"MIT"
] | null | null | null | src/abaqus/Sketcher/ConstrainedSketchGeometry/CircleByCenterPerimeter.py | Haiiliin/PyAbaqus | f20db6ebea19b73059fe875a53be370253381078 | [
"MIT"
] | null | null | null | from .ConstrainedSketchGeometry import ConstrainedSketchGeometry
class CircleByCenterPerimeter(ConstrainedSketchGeometry):
def __init__(self, center: tuple[float], point1: tuple[float]):
"""This method constructs a circle using a center point and a point on the perimeter. The
circle is added to t... | 31.387097 | 97 | 0.602261 | 98 | 973 | 5.938776 | 0.55102 | 0.061856 | 0.027491 | 0.037801 | 0.147766 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003082 | 0.332991 | 973 | 30 | 98 | 32.433333 | 0.893683 | 0.601233 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.25 | 0.25 | 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 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
096fef283359fb53098594a92982cb0ed7f780a4 | 35 | py | Python | code/credentials.py | etcluvic/sme.altm | ffdb51d380a6b8cd8073d5ef3bd6fd15fa0779ea | [
"CC-BY-4.0"
] | null | null | null | code/credentials.py | etcluvic/sme.altm | ffdb51d380a6b8cd8073d5ef3bd6fd15fa0779ea | [
"CC-BY-4.0"
] | null | null | null | code/credentials.py | etcluvic/sme.altm | ffdb51d380a6b8cd8073d5ef3bd6fd15fa0779ea | [
"CC-BY-4.0"
] | null | null | null | altmetricKey = 'copy key here...'
| 11.666667 | 33 | 0.657143 | 4 | 35 | 5.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171429 | 35 | 2 | 34 | 17.5 | 0.793103 | 0 | 0 | 0 | 0 | 0 | 0.470588 | 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 |
09afe33a2bff09deb2f03d7eb2176929c66d9df0 | 373 | py | Python | tests/kyu_7_tests/test_bug_fixing_failed_sort.py | the-zebulan/CodeWars | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | [
"MIT"
] | 40 | 2016-03-09T12:26:20.000Z | 2022-03-23T08:44:51.000Z | tests/kyu_7_tests/test_bug_fixing_failed_sort.py | akalynych/CodeWars | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | [
"MIT"
] | null | null | null | tests/kyu_7_tests/test_bug_fixing_failed_sort.py | akalynych/CodeWars | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | [
"MIT"
] | 36 | 2016-11-07T19:59:58.000Z | 2022-03-31T11:18:27.000Z | import unittest
from katas.kyu_7.bug_fixing_failed_sort import sort_array
class SortArrayTestCase(unittest.TestCase):
def test_equals(self):
self.assertEqual(sort_array('12345'), '12345')
def test_equals_2(self):
self.assertEqual(sort_array('54321'), '12345')
def test_equals_3(self):
... | 24.866667 | 57 | 0.715818 | 49 | 373 | 5.183673 | 0.489796 | 0.141732 | 0.153543 | 0.271654 | 0.330709 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105769 | 0.163539 | 373 | 14 | 58 | 26.642857 | 0.708333 | 0 | 0 | 0 | 0 | 0 | 0.080429 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.333333 | false | 0 | 0.222222 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
09b4b84f3da0dfa973d3f4bce3c0cacca252bb15 | 846 | py | Python | meregistro/apps/consulta_validez/urls.py | MERegistro/meregistro | 6cde3cab2bd1a8e3084fa38147de377d229391e3 | [
"BSD-3-Clause"
] | null | null | null | meregistro/apps/consulta_validez/urls.py | MERegistro/meregistro | 6cde3cab2bd1a8e3084fa38147de377d229391e3 | [
"BSD-3-Clause"
] | null | null | null | meregistro/apps/consulta_validez/urls.py | MERegistro/meregistro | 6cde3cab2bd1a8e3084fa38147de377d229391e3 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: UTF-8 -*-
from django.conf.urls.defaults import *
urlpatterns = patterns('',
url(r'^$', 'apps.consulta_validez.views.index', name='consultaValidezHome'),
url(r'^([0-9]+)/detalle$', 'apps.consulta_validez.views.detalle', name='consultaValidezDetalle'),
# AJAX
url(r'^ajax/get_unidades_por_... | 56.4 | 187 | 0.754137 | 106 | 846 | 5.688679 | 0.339623 | 0.069652 | 0.149254 | 0.179104 | 0.444444 | 0.404643 | 0.368159 | 0.368159 | 0.258706 | 0.258706 | 0 | 0.010256 | 0.078014 | 846 | 14 | 188 | 60.428571 | 0.762821 | 0.030733 | 0 | 0 | 0 | 0 | 0.718482 | 0.651163 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 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 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
09b50915e1150390e7c052ae9bb2250f583a1160 | 3,409 | py | Python | messaging/stomppy.py | cern-mig/python-messaging | 8b1dc835fe1ce85f7ad91f60e48d509aa5147182 | [
"Apache-2.0"
] | 4 | 2015-01-15T00:11:01.000Z | 2021-05-20T20:04:35.000Z | messaging/stomppy.py | cern-mig/python-messaging | 8b1dc835fe1ce85f7ad91f60e48d509aa5147182 | [
"Apache-2.0"
] | 1 | 2016-10-03T12:58:38.000Z | 2016-10-03T14:44:44.000Z | messaging/stomppy.py | cern-mig/python-messaging | 8b1dc835fe1ce85f7ad91f60e48d509aa5147182 | [
"Apache-2.0"
] | 1 | 2015-03-20T13:49:46.000Z | 2015-03-20T13:49:46.000Z | """
This class add support for Message module in stomppy default listener.
It can be passed directly to :py:func:`Connection.set_listener`.
Copyright (C) CERN 2013-2021
"""
from messaging.message import Message
class MessageListener(object):
"""
This class add support for Message module in stomppy default l... | 30.990909 | 76 | 0.63391 | 432 | 3,409 | 4.967593 | 0.259259 | 0.041007 | 0.041007 | 0.059646 | 0.591799 | 0.579683 | 0.55219 | 0.465983 | 0.39562 | 0.336906 | 0 | 0.003304 | 0.289821 | 3,409 | 109 | 77 | 31.275229 | 0.883106 | 0.555001 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.464286 | false | 0.285714 | 0.035714 | 0 | 0.535714 | 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 |
09bf9e874073a7fd62358a4da3e4b8097b618995 | 154 | py | Python | NextRound.py | rashidulhasanhridoy/Codeforces-Problem-Solve-with-Python-3 | 6ccc55fe66e17af1e43e8a1322d9a7df78a2235d | [
"Apache-2.0"
] | 1 | 2020-07-21T18:00:59.000Z | 2020-07-21T18:00:59.000Z | NextRound.py | rashidulhasanhridoy/Codeforces-Problem-Solve-with-Python-3 | 6ccc55fe66e17af1e43e8a1322d9a7df78a2235d | [
"Apache-2.0"
] | null | null | null | NextRound.py | rashidulhasanhridoy/Codeforces-Problem-Solve-with-Python-3 | 6ccc55fe66e17af1e43e8a1322d9a7df78a2235d | [
"Apache-2.0"
] | null | null | null | count = 0
n, k = map(int, input('').split())
X = list(map(int, input('').split()))
for i in X:
if i > 0 and i >= X[k - 1]:
count += 1
print(count) | 22 | 37 | 0.512987 | 30 | 154 | 2.633333 | 0.566667 | 0.151899 | 0.278481 | 0.405063 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034188 | 0.24026 | 154 | 7 | 38 | 22 | 0.641026 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 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 |
09e27b415d9145a940b182476e440e3d999b7d9e | 3,025 | py | Python | predicteasy/core/classifier/link_genuinity.py | CleverInsight/predicteasy | d16354b46abc1de032c7b188666533898847fac1 | [
"BSD-3-Clause"
] | 1 | 2021-09-06T21:20:06.000Z | 2021-09-06T21:20:06.000Z | predicteasy/core/classifier/link_genuinity.py | CleverInsight/predicteasy | d16354b46abc1de032c7b188666533898847fac1 | [
"BSD-3-Clause"
] | 13 | 2020-07-16T10:51:25.000Z | 2020-07-16T10:53:56.000Z | predicteasy/core/classifier/link_genuinity.py | CleverInsight/predicteasy | d16354b46abc1de032c7b188666533898847fac1 | [
"BSD-3-Clause"
] | 2 | 2020-07-16T10:45:26.000Z | 2020-07-16T10:46:04.000Z | import os
import requests
class LinkGenuinityClassifier:
"""
LinkGenuinityClassifier helps us to find the genuine score
for the given `url`
Usage:
======
>>> clf = LinkGenuinityClassifier(url="https://economictime.com/articles.apx")
>>> clf = LinkGenClassifier(url="[https://www.t... | 18.333333 | 315 | 0.556033 | 319 | 3,025 | 5.047022 | 0.394984 | 0.108696 | 0.136646 | 0.049689 | 0.223602 | 0.141615 | 0.141615 | 0.141615 | 0.141615 | 0.141615 | 0 | 0.02155 | 0.355702 | 3,025 | 164 | 316 | 18.445122 | 0.804515 | 0.449917 | 0 | 0.448276 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.465517 | false | 0.448276 | 0.034483 | 0 | 0.517241 | 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 |
09f9e1655d6e4e0e53b07ae006e20cc977ef23be | 112 | py | Python | setup.py | korcsmarosgroup/ARN2DataBase | 8931cec0387e5c8b599df40d652ac5fdb5c49a8f | [
"MIT"
] | null | null | null | setup.py | korcsmarosgroup/ARN2DataBase | 8931cec0387e5c8b599df40d652ac5fdb5c49a8f | [
"MIT"
] | null | null | null | setup.py | korcsmarosgroup/ARN2DataBase | 8931cec0387e5c8b599df40d652ac5fdb5c49a8f | [
"MIT"
] | null | null | null | from distutils.core import setup
setup(name='SLKlib',
version='1.0',
packages=['SLKlib'],
)
| 12.444444 | 32 | 0.589286 | 13 | 112 | 5.076923 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02381 | 0.25 | 112 | 8 | 33 | 14 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0.136364 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
61dbd5c73880b5257e7ec4d46fda30b2999c1870 | 130 | py | Python | src/genie/libs/parser/iosxe/tests/ShowBootvar/cli/equal/golden_output4_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | 204 | 2018-06-27T00:55:27.000Z | 2022-03-06T21:12:18.000Z | src/genie/libs/parser/iosxe/tests/ShowBootvar/cli/equal/golden_output4_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | 468 | 2018-06-19T00:33:18.000Z | 2022-03-31T23:23:35.000Z | src/genie/libs/parser/iosxe/tests/ShowBootvar/cli/equal/golden_output4_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | 309 | 2019-01-16T20:21:07.000Z | 2022-03-30T12:56:41.000Z | expected_output = {
"active": {"configuration_register": "0x1"},
"config_file": "bootflash:/taas/psan06_Golden_Config",
}
| 26 | 58 | 0.692308 | 13 | 130 | 6.538462 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035398 | 0.130769 | 130 | 4 | 59 | 32.5 | 0.716814 | 0 | 0 | 0 | 0 | 0 | 0.6 | 0.446154 | 0 | 0 | 0.023077 | 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 |
61ebf32622fc19ed4456b08f643a5b28b1154899 | 544 | py | Python | crypto/cryptopals-challenges/set1/fixed_xor.py | zelr0x/solutions | b39867ff1cfe41850bd519a3a13e1966671ab27c | [
"MIT",
"Unlicense"
] | null | null | null | crypto/cryptopals-challenges/set1/fixed_xor.py | zelr0x/solutions | b39867ff1cfe41850bd519a3a13e1966671ab27c | [
"MIT",
"Unlicense"
] | null | null | null | crypto/cryptopals-challenges/set1/fixed_xor.py | zelr0x/solutions | b39867ff1cfe41850bd519a3a13e1966671ab27c | [
"MIT",
"Unlicense"
] | null | null | null | def fixed_xor_hex_str(a: str, b: str) -> str:
return fixed_xor(bytearray.fromhex(a), bytearray.fromhex(b)).hex()
def fixed_xor(a: bytes, b: bytes) -> bytes:
return bytearray(ba ^ bb for (ba, bb) in zip(a, b))
def test_fixed_xor():
test_in_1 = '1c0111001f010100061a024b53535009181c'
test_in_2 = '68697... | 28.631579 | 70 | 0.71875 | 75 | 544 | 4.813333 | 0.386667 | 0.132964 | 0.060942 | 0.077562 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.221978 | 0.163603 | 544 | 18 | 71 | 30.222222 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0.213235 | 0.198529 | 0 | 0 | 0 | 0 | 0.083333 | 1 | 0.25 | false | 0 | 0 | 0.166667 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
61f1c327f95b074cbde13b88ef7ec5e45813af15 | 3,745 | py | Python | settings/api.py | Endzel/mini-payments | 189544e853c3dc4679be875190ab40e12a052822 | [
"MIT"
] | null | null | null | settings/api.py | Endzel/mini-payments | 189544e853c3dc4679be875190ab40e12a052822 | [
"MIT"
] | 4 | 2021-04-08T19:01:31.000Z | 2021-06-10T17:58:27.000Z | settings/api.py | Endzel/mini-payments | 189544e853c3dc4679be875190ab40e12a052822 | [
"MIT"
] | null | null | null | """
Django settings for core project.
Generated by 'django-admin startproject' using Django 2.1.2
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
# Bui... | 27.137681 | 91 | 0.671562 | 393 | 3,745 | 6.229008 | 0.452926 | 0.079657 | 0.048611 | 0.04085 | 0.145425 | 0.118464 | 0.054739 | 0.042892 | 0 | 0 | 0 | 0.011889 | 0.191455 | 3,745 | 137 | 92 | 27.335766 | 0.796565 | 0.181842 | 0 | 0.060606 | 1 | 0 | 0.548377 | 0.439816 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.060606 | 0.010101 | 0 | 0.010101 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
110cf0bc9a2cd745b1ca9d8d62414bea1cda33b4 | 370 | py | Python | pizzaProblem.py | TheDesTrucToRR/Hacktoberfest-2021 | 2757383c7432909dfbdbda61fb9ca9f6de495cfe | [
"MIT"
] | 14 | 2021-10-01T16:53:27.000Z | 2021-10-17T13:15:44.000Z | pizzaProblem.py | TheDesTrucToRR/Hacktoberfest-2021 | 2757383c7432909dfbdbda61fb9ca9f6de495cfe | [
"MIT"
] | 37 | 2021-10-01T17:14:52.000Z | 2021-10-21T17:26:14.000Z | pizzaProblem.py | TheDesTrucToRR/Hacktoberfest-2021 | 2757383c7432909dfbdbda61fb9ca9f6de495cfe | [
"MIT"
] | 38 | 2021-10-01T16:59:16.000Z | 2021-10-30T16:05:31.000Z | def cutPizza(n):
# Case 1
if(360 % n == 0):
print("1", end = "")
else:
print("0", end = "");
# Case 2
if(n <= 360):
print("1", end = "")
else:
print("0", end = "");
# Case 3
if(((n * (n + 1)) / 2) <= 360):
print("1", end = "")
else:
... | 14.8 | 35 | 0.340541 | 47 | 370 | 2.680851 | 0.297872 | 0.142857 | 0.214286 | 0.309524 | 0.634921 | 0.634921 | 0.634921 | 0.634921 | 0 | 0 | 0 | 0.101852 | 0.416216 | 370 | 24 | 36 | 15.416667 | 0.481481 | 0.054054 | 0 | 0.6 | 0 | 0 | 0.017341 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0 | 0 | 0.066667 | 0.4 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1110ee8f3bcb54aa2c6f9ff038df5d870c41034f | 260 | py | Python | Parte 1/Semana 4/Decrescendo.py | GabrielReira/Computer-Science-USP | 47a3cb68ccaa08f7302fbd9d9905ca80cee432cb | [
"MIT"
] | null | null | null | Parte 1/Semana 4/Decrescendo.py | GabrielReira/Computer-Science-USP | 47a3cb68ccaa08f7302fbd9d9905ca80cee432cb | [
"MIT"
] | null | null | null | Parte 1/Semana 4/Decrescendo.py | GabrielReira/Computer-Science-USP | 47a3cb68ccaa08f7302fbd9d9905ca80cee432cb | [
"MIT"
] | null | null | null | número_anterior = int(input('Digite o primeiro número da sequência: '))
decrescer = True
while decrescer:
número = int(input('Digite o próximo número da sequência: '))
if número > número_anterior:
decrescer = False
número_anterior = número | 32.5 | 71 | 0.711538 | 32 | 260 | 5.6875 | 0.46875 | 0.230769 | 0.153846 | 0.164835 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.203846 | 260 | 8 | 72 | 32.5 | 0.879227 | 0 | 0 | 0 | 0 | 0 | 0.295019 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
114ce27c3ce119ed91919d87a36f5539c7918a65 | 1,662 | py | Python | src/cysofa/examples.py | MattTurnock/cysofa | 15e95288937b765df561a65e24faf780f9e59bd4 | [
"MIT"
] | null | null | null | src/cysofa/examples.py | MattTurnock/cysofa | 15e95288937b765df561a65e24faf780f9e59bd4 | [
"MIT"
] | null | null | null | src/cysofa/examples.py | MattTurnock/cysofa | 15e95288937b765df561a65e24faf780f9e59bd4 | [
"MIT"
] | 1 | 2018-12-08T21:10:06.000Z | 2018-12-08T21:10:06.000Z | #module used for command line interactions
import subprocess
import numpy as np
import sys
import time
#UNFINISHED, DO NOT RUN
def test(r, v, source_body):
"""This function does something.
:param name: The name to use.
:type name: str.
:param state: Current state to be in.
:type state: bool.
... | 21.868421 | 72 | 0.66065 | 251 | 1,662 | 4.346614 | 0.462151 | 0.014665 | 0.054995 | 0.064161 | 0.11824 | 0.08066 | 0.08066 | 0 | 0 | 0 | 0 | 0.091181 | 0.194946 | 1,662 | 75 | 73 | 22.16 | 0.724215 | 0.823706 | 0 | 0 | 0 | 0 | 0.037037 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.571429 | 0 | 0.857143 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
116097b7def799a473e99edd6436d6328bb76fc4 | 17,921 | py | Python | template_container_ferret/labels/slice_1.py | lkondratova/Brainplot | 3c8a88c1995dedeaa5cbd88ee71499c7cf9c571d | [
"MIT"
] | null | null | null | template_container_ferret/labels/slice_1.py | lkondratova/Brainplot | 3c8a88c1995dedeaa5cbd88ee71499c7cf9c571d | [
"MIT"
] | null | null | null | template_container_ferret/labels/slice_1.py | lkondratova/Brainplot | 3c8a88c1995dedeaa5cbd88ee71499c7cf9c571d | [
"MIT"
] | null | null | null | coordinates_FFFF99 = ((187, 86),
(187, 88), (188, 86), (188, 89), (189, 85), (189, 87), (189, 88), (189, 91), (190, 85), (190, 87), (190, 88), (190, 89), (190, 92), (191, 84), (191, 86), (191, 87), (191, 88), (191, 89), (191, 90), (191, 91), (191, 93), (192, 74), (192, 76), (192, 77), (192, 78), (192, 79), (192, 80),... | 746.708333 | 841 | 0.468501 | 3,160 | 17,921 | 2.656646 | 0.037025 | 0.001429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.569487 | 0.178896 | 17,921 | 23 | 842 | 779.173913 | 0.001019 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1168485b0b35085abeb0b847eece9028a5115f95 | 102 | py | Python | Python/MultiplicationTable.py | mrjayantk237/Hacktober_Fest_2021 | 6dcd022a7116b81310534dcd0da8d66c185ac410 | [
"MIT"
] | 21 | 2021-10-02T14:14:33.000Z | 2022-01-12T16:27:49.000Z | Python/MultiplicationTable.py | mrjayantk237/Hacktober_Fest_2021 | 6dcd022a7116b81310534dcd0da8d66c185ac410 | [
"MIT"
] | 10 | 2021-10-02T15:52:56.000Z | 2021-10-31T14:13:23.000Z | Python/MultiplicationTable.py | mrjayantk237/Hacktober_Fest_2021 | 6dcd022a7116b81310534dcd0da8d66c185ac410 | [
"MIT"
] | 64 | 2021-10-02T09:20:19.000Z | 2021-10-31T20:21:01.000Z | print("Enter the number of your choice:")
n=int(input())
for i in range(11):
print(n,"*",i,"=",n*i)
| 20.4 | 41 | 0.607843 | 20 | 102 | 3.1 | 0.75 | 0.064516 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022727 | 0.137255 | 102 | 4 | 42 | 25.5 | 0.681818 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
fef090249971c1eec5c7e0a4725f49e270975473 | 2,573 | py | Python | dags/python_codes/send_email.py | amin-henteti/airflow-dags | eb1e9a1a77d3c868e031cbe7420eae952ce5e767 | [
"Apache-2.0"
] | null | null | null | dags/python_codes/send_email.py | amin-henteti/airflow-dags | eb1e9a1a77d3c868e031cbe7420eae952ce5e767 | [
"Apache-2.0"
] | null | null | null | dags/python_codes/send_email.py | amin-henteti/airflow-dags | eb1e9a1a77d3c868e031cbe7420eae952ce5e767 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Thu Jul 22 20:39:14 2021
@author: Henteti Amin
"""
import smtplib
import ssl
from email.mime.text import MIMEText
def send_msg(msg='message'):
"""send whats message
Args:
msg (str, optional): [description]. Defaults to 'message'.
"""
import pywhatkit
... | 35.246575 | 88 | 0.684026 | 365 | 2,573 | 4.761644 | 0.317808 | 0.032221 | 0.051784 | 0.039125 | 0.750288 | 0.750288 | 0.682394 | 0.682394 | 0.682394 | 0.682394 | 0 | 0.026921 | 0.205985 | 2,573 | 72 | 89 | 35.736111 | 0.823789 | 0.41197 | 0 | 0.486486 | 0 | 0 | 0.190347 | 0.078178 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081081 | false | 0.108108 | 0.108108 | 0 | 0.189189 | 0.081081 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
28c01ac7bca11d4068e91c56d48120f3cdeb80eb | 136 | py | Python | urls.py | DADDYKIKI/tango_with_django_project | da2bbb0b7fd2d587c9af4c7ac14068678b2c38cf | [
"MIT"
] | null | null | null | urls.py | DADDYKIKI/tango_with_django_project | da2bbb0b7fd2d587c9af4c7ac14068678b2c38cf | [
"MIT"
] | null | null | null | urls.py | DADDYKIKI/tango_with_django_project | da2bbb0b7fd2d587c9af4c7ac14068678b2c38cf | [
"MIT"
] | null | null | null | from django.urls import path
from rango import views
app_name = 'rango'
urlpatterns = [
path('', views.index, name='index'),
] | 17 | 38 | 0.669118 | 18 | 136 | 5 | 0.611111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.198529 | 136 | 8 | 39 | 17 | 0.825688 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 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 |
28cf4f51353039dc5b9e3a4c41b0f210f5975541 | 4,588 | py | Python | experimental/constants.py | pagea/unstyle | 3f7139244e30713e88c8ee86983a3df446f992e1 | [
"MIT"
] | 15 | 2015-04-15T21:20:46.000Z | 2021-09-08T13:37:20.000Z | experimental/constants.py | pagea/unstyle | 3f7139244e30713e88c8ee86983a3df446f992e1 | [
"MIT"
] | 2 | 2015-04-15T02:07:57.000Z | 2016-01-29T10:14:02.000Z | experimental/constants.py | pagea/unstyle | 3f7139244e30713e88c8ee86983a3df446f992e1 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in... | 124 | 1,289 | 0.352005 | 604 | 4,588 | 2.655629 | 0.225166 | 0.009975 | 0.017456 | 0.035536 | 0.105362 | 0.054863 | 0.01995 | 0.01995 | 0 | 0 | 0 | 0.003445 | 0.177419 | 4,588 | 36 | 1,290 | 127.444444 | 0.421569 | 0.180689 | 0 | 0 | 0 | 0 | 0.251552 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e9085ca72af7879015794c02094ca167456317e1 | 378 | py | Python | Dataset/Leetcode/train/14/1069.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/14/1069.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/14/1069.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | class Solution:
def XXX(self, strs: List[str]) -> str:
i = 0
if not strs: return ''
sta = strs[0]
while i < len(sta):
for neo in strs:
if i < len(neo):
if neo[i] != sta[i]:
return (sta[:i])
else:... | 25.2 | 42 | 0.346561 | 44 | 378 | 2.977273 | 0.477273 | 0.206107 | 0.152672 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016949 | 0.531746 | 378 | 14 | 43 | 27 | 0.723164 | 0 | 0 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.