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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
24754739ced6ee56569032d166efd3dfea1c454c | 603 | py | Python | rehive/api/resources/metric_resources.py | rehive/rehive-python | 72cf7208db8e99711ea8568073577be3459c79fc | [
"MIT"
] | 8 | 2017-06-23T13:33:59.000Z | 2022-01-17T10:55:23.000Z | rehive/api/resources/metric_resources.py | rehive/rehive-python | 72cf7208db8e99711ea8568073577be3459c79fc | [
"MIT"
] | 59 | 2017-06-23T13:21:01.000Z | 2022-01-10T17:41:22.000Z | rehive/api/resources/metric_resources.py | rehive/rehive-python | 72cf7208db8e99711ea8568073577be3459c79fc | [
"MIT"
] | 3 | 2017-10-12T18:43:29.000Z | 2018-12-26T09:38:42.000Z | from .base_resources import ResourceList, ResourceCollection
class APIMetrics(ResourceList, ResourceCollection):
def __init__(self, client, endpoint='', filters=None):
self.resources = (APIMetricPoints,)
super(APIMetrics, self).__init__(client, endpoint, filters)
@classmethod
def get_reso... | 28.714286 | 72 | 0.718076 | 60 | 603 | 6.866667 | 0.416667 | 0.135922 | 0.203884 | 0.082524 | 0.5 | 0.5 | 0.5 | 0.325243 | 0.325243 | 0.325243 | 0 | 0 | 0.18408 | 603 | 20 | 73 | 30.15 | 0.837398 | 0 | 0 | 0.285714 | 0 | 0 | 0.021559 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.071429 | 0.142857 | 0.642857 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
24776427f0454c4009fbc6c69e350cb25fa988b9 | 247 | py | Python | math_functions.py | marcoandreazampini/SummerSchool2021_Git01 | 47cf8672abd8f248822822b30d63a195cd23be09 | [
"Apache-2.0"
] | null | null | null | math_functions.py | marcoandreazampini/SummerSchool2021_Git01 | 47cf8672abd8f248822822b30d63a195cd23be09 | [
"Apache-2.0"
] | null | null | null | math_functions.py | marcoandreazampini/SummerSchool2021_Git01 | 47cf8672abd8f248822822b30d63a195cd23be09 | [
"Apache-2.0"
] | null | null | null | import pytest
def sum(a,b):
return a + b
def test_sum():
assert sum(2,4) == 6
def banafshedivide(a,b):
return a / b
def multiMarco(a,b):
return a**b
#if __name__ == '__main__':
# a = sum(banafshedivide(multiMarco(3,4),6),10))
| 13 | 49 | 0.615385 | 42 | 247 | 3.404762 | 0.452381 | 0.083916 | 0.167832 | 0.188811 | 0.251748 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0.041237 | 0.214575 | 247 | 18 | 50 | 13.722222 | 0.695876 | 0.299595 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.444444 | false | 0 | 0.111111 | 0.333333 | 0.888889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
249c95086e37b7c1008bf74fd6d6e26a88136c75 | 430 | py | Python | hook-me-up.py | bornfight/shell-me-up-scotty | 3c5378e894ccdd07f0e9e13c23156a3fb6652f82 | [
"Apache-2.0"
] | 3 | 2016-04-04T14:42:28.000Z | 2018-06-20T12:03:51.000Z | hook-me-up.py | bornfight/shell-me-up-scotty | 3c5378e894ccdd07f0e9e13c23156a3fb6652f82 | [
"Apache-2.0"
] | 14 | 2016-03-24T23:24:19.000Z | 2018-07-07T10:38:39.000Z | hook-me-up.py | bornfight/shell-me-up-scotty | 3c5378e894ccdd07f0e9e13c23156a3fb6652f82 | [
"Apache-2.0"
] | 3 | 2016-03-24T23:01:57.000Z | 2018-06-19T18:31:35.000Z | #!/usr/bin/env python
from os import system
system("python ./scripts/init.py")
system("python ./scripts/php.py")
system("python ./scripts/apps.py")
system("python ./scripts/ssh.py")
system("python ./scripts/github.py")
print "Calibration complete. Have a nice day."
contributors = [
"@krukru",
"@Dvorsky",
... | 19.545455 | 46 | 0.681395 | 54 | 430 | 5.425926 | 0.592593 | 0.204778 | 0.324232 | 0.286689 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14186 | 430 | 21 | 47 | 20.47619 | 0.794038 | 0.046512 | 0 | 0 | 0 | 0 | 0.562347 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.066667 | null | null | 0.2 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
24a6964d1342cc2541d7620731b03bcd27ff1545 | 140 | py | Python | api/auth/urls.py | flatcoke/komong | b7c4721795b36dc936cf9060aba97d693a33c5b8 | [
"MIT"
] | 1 | 2019-07-31T07:18:07.000Z | 2019-07-31T07:18:07.000Z | api/auth/urls.py | flatcoke/komong | b7c4721795b36dc936cf9060aba97d693a33c5b8 | [
"MIT"
] | null | null | null | api/auth/urls.py | flatcoke/komong | b7c4721795b36dc936cf9060aba97d693a33c5b8 | [
"MIT"
] | 1 | 2019-04-10T05:03:35.000Z | 2019-04-10T05:03:35.000Z | from rest_framework_jwt.views import obtain_jwt_token
from django.urls import path
urlpatterns = [
path('token/', obtain_jwt_token),
]
| 20 | 53 | 0.778571 | 20 | 140 | 5.15 | 0.6 | 0.174757 | 0.271845 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135714 | 140 | 6 | 54 | 23.333333 | 0.85124 | 0 | 0 | 0 | 0 | 0 | 0.042857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 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 | 1 | 0 | 0 | 0 | 0 | 4 |
24d0e742b12620f31779f74d377a696c476739d7 | 5,430 | py | Python | das/forms.py | knowwinter/monkey | 4689e765d0a254abef26a33a51b33a1158bebecd | [
"Apache-2.0"
] | null | null | null | das/forms.py | knowwinter/monkey | 4689e765d0a254abef26a33a51b33a1158bebecd | [
"Apache-2.0"
] | null | null | null | das/forms.py | knowwinter/monkey | 4689e765d0a254abef26a33a51b33a1158bebecd | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from django import forms
class UserForm(forms.Form):
username = forms.CharField(required=True, max_length=30, error_messages={'required': "用户名不能为空"})
password = forms.CharField(required=False, max_length=30, error_messages={'required': '密码不能为空'})
email = forms.EmailField(required=T... | 43.44 | 100 | 0.756906 | 696 | 5,430 | 5.741379 | 0.170977 | 0.213714 | 0.212713 | 0.287788 | 0.674424 | 0.607107 | 0.498999 | 0.293293 | 0.143143 | 0.119119 | 0 | 0.027602 | 0.125967 | 5,430 | 124 | 101 | 43.790323 | 0.81437 | 0.036832 | 0 | 0.088889 | 0 | 0 | 0.022971 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.022222 | 0.011111 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
24f5179e1960610a5320e72ab87f78d5bcf9a4f8 | 95 | py | Python | geolocations_service/service/brumadinho/apps.py | BrunaDolavale/brumadinho_location | 0acd5bffd9c96fb0a5565e71a394f685c3550463 | [
"MIT"
] | 666 | 2019-01-28T00:32:43.000Z | 2019-01-30T22:16:41.000Z | geolocations_service/service/brumadinho/apps.py | BrunaDolavale/brumadinho_location | 0acd5bffd9c96fb0a5565e71a394f685c3550463 | [
"MIT"
] | 68 | 2019-01-28T13:17:26.000Z | 2019-01-30T22:04:30.000Z | geolocations_service/service/brumadinho/apps.py | BrunaDolavale/brumadinho_location | 0acd5bffd9c96fb0a5565e71a394f685c3550463 | [
"MIT"
] | 142 | 2019-01-27T21:19:45.000Z | 2019-01-30T22:09:58.000Z | from django.apps import AppConfig
class BrumadinhoConfig(AppConfig):
name = 'brumadinho'
| 15.833333 | 34 | 0.768421 | 10 | 95 | 7.3 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 95 | 5 | 35 | 19 | 0.9125 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 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 | 1 | 0 | 0 | 4 |
70055c69d34c30981e57d51002ac43cb20b19bc2 | 134 | py | Python | pattern-13.py | Ayush05m/patterns-python | cbfdf42af8f206d7193f20dc7576289a5426bbcc | [
"MIT"
] | 1 | 2020-06-05T19:06:23.000Z | 2020-06-05T19:06:23.000Z | pattern-13.py | Ayush05m/patterns-python | cbfdf42af8f206d7193f20dc7576289a5426bbcc | [
"MIT"
] | null | null | null | pattern-13.py | Ayush05m/patterns-python | cbfdf42af8f206d7193f20dc7576289a5426bbcc | [
"MIT"
] | 1 | 2020-10-04T17:47:17.000Z | 2020-10-04T17:47:17.000Z | for x in range(65,70):
for y in range(65,x+1):
print(chr(x),end='')
print()
"""
# p[attern
A
BB
CCC
DDDD
EEEEE
""" | 8.933333 | 28 | 0.514925 | 25 | 134 | 2.76 | 0.72 | 0.202899 | 0.26087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072917 | 0.283582 | 134 | 15 | 29 | 8.933333 | 0.645833 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 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 | 4 |
700dfbf6e36cce33faf290db1be971eaefadc64e | 204 | py | Python | src/argteller/__init__.py | mozjay0619/argteller-viz | 963c6d43019efb2b0e9bcdb4b3053b57cd4ff373 | [
"BSD-3-Clause"
] | null | null | null | src/argteller/__init__.py | mozjay0619/argteller-viz | 963c6d43019efb2b0e9bcdb4b3053b57cd4ff373 | [
"BSD-3-Clause"
] | 7 | 2021-08-04T15:54:07.000Z | 2021-09-17T17:40:38.000Z | src/argteller/__init__.py | mozjay0619/argteller-viz | 963c6d43019efb2b0e9bcdb4b3053b57cd4ff373 | [
"BSD-3-Clause"
] | null | null | null | from .decorators.class_decorator import ArgtellerClassDecorator
from .decorators.method_decorator import ArgtellerMethodDecorator
__all__ = [
"ArgtellerClassDecorator",
"ArgtellerMethodDecorator"
]
| 25.5 | 65 | 0.843137 | 15 | 204 | 11.066667 | 0.6 | 0.168675 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098039 | 204 | 8 | 66 | 25.5 | 0.902174 | 0 | 0 | 0 | 0 | 0 | 0.229268 | 0.229268 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
70127c07136d907255bf42c16490360e4c5cd6f3 | 526 | py | Python | structs/grid.py | canbatuhan/ILP-Clustering | 2016fd2ef7345d6c5b54e22b78d4a15f5453c88e | [
"MIT"
] | null | null | null | structs/grid.py | canbatuhan/ILP-Clustering | 2016fd2ef7345d6c5b54e22b78d4a15f5453c88e | [
"MIT"
] | null | null | null | structs/grid.py | canbatuhan/ILP-Clustering | 2016fd2ef7345d6c5b54e22b78d4a15f5453c88e | [
"MIT"
] | null | null | null | import numpy as np
class Grid:
def __init__(self, size) -> None:
self.__height = size
self.__width = size
def __len__(self) -> int:
return self.__height * self.__width
def get_height(self) -> int:
return self.__height
def get_width(self) -> int:
return self.__... | 23.909091 | 57 | 0.631179 | 74 | 526 | 4.054054 | 0.297297 | 0.116667 | 0.216667 | 0.17 | 0.366667 | 0.213333 | 0.213333 | 0.213333 | 0 | 0 | 0 | 0.010283 | 0.260456 | 526 | 21 | 58 | 25.047619 | 0.760925 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0.066667 | 0.333333 | 0.866667 | 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 | 1 | 0 | 0 | 0 | 4 |
701c53abd15e4b03ec5b8a88a9d5eb9d7b69ae26 | 245 | py | Python | ariadne_server/resolvers/query/__init__.py | seanaye/FeatherLight-API | 4d42a424762311ee35b3fd4f689883aa4197eb2e | [
"MIT"
] | null | null | null | ariadne_server/resolvers/query/__init__.py | seanaye/FeatherLight-API | 4d42a424762311ee35b3fd4f689883aa4197eb2e | [
"MIT"
] | null | null | null | ariadne_server/resolvers/query/__init__.py | seanaye/FeatherLight-API | 4d42a424762311ee35b3fd4f689883aa4197eb2e | [
"MIT"
] | null | null | null | from .info import QUERY as info
from .bypass import QUERY as bypass
from .decode_invoice import QUERY as decode_invoice
from .check_macaroon import QUERY as check_macaroon
QUERY = [
info,
bypass,
decode_invoice,
check_macaroon
] | 22.272727 | 51 | 0.763265 | 35 | 245 | 5.171429 | 0.285714 | 0.243094 | 0.287293 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.195918 | 245 | 11 | 52 | 22.272727 | 0.918782 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.2 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 4 |
703f21744e2a4283e4cfca8118ac42b7681032c4 | 421 | py | Python | tests/functional/utils.py | nayaverdier/aws-lambda-powertools-python | cd15ee97746356a84c6f196dbd2d26a34ea50411 | [
"Apache-2.0",
"MIT-0"
] | null | null | null | tests/functional/utils.py | nayaverdier/aws-lambda-powertools-python | cd15ee97746356a84c6f196dbd2d26a34ea50411 | [
"Apache-2.0",
"MIT-0"
] | 225 | 2021-07-05T08:23:30.000Z | 2022-03-31T08:27:43.000Z | tests/functional/utils.py | nayaverdier/aws-lambda-powertools-python | cd15ee97746356a84c6f196dbd2d26a34ea50411 | [
"Apache-2.0",
"MIT-0"
] | null | null | null | import base64
import json
from pathlib import Path
from typing import Any
def load_event(file_name: str) -> Any:
path = Path(str(Path(__file__).parent.parent) + "/events/" + file_name)
return json.loads(path.read_text())
def str_to_b64(data: str) -> str:
return base64.b64encode(data.encode()).decode("ut... | 23.388889 | 75 | 0.703088 | 65 | 421 | 4.369231 | 0.446154 | 0.056338 | 0.070423 | 0.112676 | 0.295775 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044568 | 0.147268 | 421 | 17 | 76 | 24.764706 | 0.746518 | 0 | 0 | 0 | 0 | 0 | 0.042755 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.363636 | 0.181818 | 0.909091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
70a15f409684f546d09311fc6dbb2d5e2699a0bb | 132 | py | Python | pydis_site/apps/staff/apps.py | Transfusion/site | 6992491f8c5f074e17c34d09553a715425112652 | [
"MIT"
] | 700 | 2018-11-17T15:56:51.000Z | 2022-03-30T22:53:17.000Z | pydis_site/apps/staff/apps.py | Transfusion/site | 6992491f8c5f074e17c34d09553a715425112652 | [
"MIT"
] | 542 | 2018-11-17T13:39:42.000Z | 2022-03-31T11:24:00.000Z | pydis_site/apps/staff/apps.py | Transfusion/site | 6992491f8c5f074e17c34d09553a715425112652 | [
"MIT"
] | 178 | 2018-11-21T09:06:56.000Z | 2022-03-31T07:43:28.000Z | from django.apps import AppConfig
class StaffConfig(AppConfig):
"""Django AppConfig for the staff app."""
name = 'staff'
| 16.5 | 45 | 0.69697 | 16 | 132 | 5.75 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.19697 | 132 | 7 | 46 | 18.857143 | 0.867925 | 0.265152 | 0 | 0 | 0 | 0 | 0.054945 | 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 | 1 | 0 | 0 | 4 |
70a3bd9065e5f2d20bbf3cf6fedc8341e0dd0af8 | 859 | py | Python | contact/models.py | StoneMasons4106/clay-cabinet | 6defd2fcf55d5589777d2e92154668344e923b52 | [
"MIT"
] | null | null | null | contact/models.py | StoneMasons4106/clay-cabinet | 6defd2fcf55d5589777d2e92154668344e923b52 | [
"MIT"
] | null | null | null | contact/models.py | StoneMasons4106/clay-cabinet | 6defd2fcf55d5589777d2e92154668344e923b52 | [
"MIT"
] | null | null | null | from django.db import models
# Create your models here.
class Content(models.Model):
name = models.CharField(max_length=254)
contact_blurb = models.CharField(max_length=500)
google_maps_link = models.URLField(max_length=2000, null=True, blank=True)
address = models.CharField(max_length=500, null=True... | 33.038462 | 78 | 0.728754 | 122 | 859 | 4.942623 | 0.327869 | 0.149254 | 0.208955 | 0.278607 | 0.613599 | 0.524046 | 0.432836 | 0.298507 | 0.159204 | 0.159204 | 0 | 0.041494 | 0.158324 | 859 | 26 | 79 | 33.038462 | 0.792531 | 0.027939 | 0 | 0.352941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.058824 | 0.117647 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
5616607f5ca4ce929f009c26618ee593fac3830e | 6,809 | py | Python | category_populate.py | dgabrahams/Udacity-NanoDegree-Fullstack-Project-4 | 0babc66023edd0a75a8a2a33a3d7b58d3747816f | [
"MIT"
] | null | null | null | category_populate.py | dgabrahams/Udacity-NanoDegree-Fullstack-Project-4 | 0babc66023edd0a75a8a2a33a3d7b58d3747816f | [
"MIT"
] | null | null | null | category_populate.py | dgabrahams/Udacity-NanoDegree-Fullstack-Project-4 | 0babc66023edd0a75a8a2a33a3d7b58d3747816f | [
"MIT"
] | null | null | null | # import os
# import sys
# from sqlalchemy import Column, ForeignKey, Integer, String
# from sqlalchemy.ext.declarative import declarative_base
# from sqlalchemy.orm import relationship
# from sqlalchemy import create_engine
# engine = create_engine('sqlite:///categorylist.db')
# connection = engine.connect()
# resul... | 71.673684 | 550 | 0.802027 | 946 | 6,809 | 5.752643 | 0.143763 | 0.033076 | 0.03473 | 0.042999 | 0.717383 | 0.705623 | 0.691657 | 0.691657 | 0.691657 | 0.691657 | 0 | 0 | 0.130562 | 6,809 | 94 | 551 | 72.43617 | 0.919257 | 0.069026 | 0 | 0.225806 | 0 | 0.145161 | 0.670988 | 0.003953 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.048387 | null | null | 0.016129 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
561cdbd320ff5c033ea517933c88f41d1e56f6ff | 1,077 | py | Python | ambari-client/python-client/src/main/python/ambari_client/model/views.py | panfeiyy/ambari | 24077510723ede93d3024784f0b04422adaf56d6 | [
"Apache-2.0"
] | 16 | 2018-05-24T10:28:24.000Z | 2021-08-05T03:13:26.000Z | ambari-client/python-client/src/main/python/ambari_client/model/views.py | panfeiyy/ambari | 24077510723ede93d3024784f0b04422adaf56d6 | [
"Apache-2.0"
] | 3 | 2021-05-09T12:37:16.000Z | 2022-03-02T10:13:24.000Z | ambari-client/python-client/src/main/python/ambari_client/model/views.py | panfeiyy/ambari | 24077510723ede93d3024784f0b04422adaf56d6 | [
"Apache-2.0"
] | 17 | 2018-07-06T08:57:00.000Z | 2021-11-04T11:00:36.000Z | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may... | 31.676471 | 75 | 0.766017 | 157 | 1,077 | 5.191083 | 0.617834 | 0.07362 | 0.031902 | 0.039264 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00451 | 0.176416 | 1,077 | 33 | 76 | 32.636364 | 0.914318 | 0.719591 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030303 | 0 | 1 | 0.125 | false | 0.25 | 0.375 | 0 | 0.625 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 4 |
562680f14e8b11c8dcff9d26686cc5be3f672405 | 1,225 | py | Python | lianjia/filter_url.py | pyday/lianjia | bf6e8629495b4d69d92ff5c34f07f29274ab9682 | [
"Apache-2.0"
] | null | null | null | lianjia/filter_url.py | pyday/lianjia | bf6e8629495b4d69d92ff5c34f07f29274ab9682 | [
"Apache-2.0"
] | null | null | null | lianjia/filter_url.py | pyday/lianjia | bf6e8629495b4d69d92ff5c34f07f29274ab9682 | [
"Apache-2.0"
] | null | null | null | # coding:utf-8
from lianjia.geturl import GetMissionUrl
from scrapy.exceptions import IgnoreRequest
class LjprojectSpiderMiddleware(object):
def __init__(self):
test = GetMissionUrl()
self.urls = test.get_crawled_urls()
def process_request(self, request, spider):
if request.url in se... | 26.630435 | 67 | 0.64 | 132 | 1,225 | 5.765152 | 0.30303 | 0.078844 | 0.051248 | 0.067017 | 0.74113 | 0.74113 | 0.74113 | 0.691196 | 0.691196 | 0.691196 | 0 | 0.001126 | 0.275102 | 1,225 | 45 | 68 | 27.222222 | 0.855856 | 0.009796 | 0 | 0.71875 | 0 | 0 | 0.047107 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.0625 | 0 | 0.4375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 4 |
5638c481c8314885b4d6433c631dbe4bb014c433 | 402 | py | Python | planar_ising/planar_ising/graph_edges_mapping.py | ValeryTyumen/planar_ising | 5a1803487e1dd59c5d5e790cc949b7234bf52ac8 | [
"MIT"
] | 8 | 2019-05-02T20:27:21.000Z | 2020-11-01T20:41:38.000Z | planar_ising/planar_ising/graph_edges_mapping.py | ValeryTyumen/planar_ising | 5a1803487e1dd59c5d5e790cc949b7234bf52ac8 | [
"MIT"
] | 1 | 2019-09-03T18:15:53.000Z | 2019-09-06T16:41:12.000Z | planar_ising/planar_ising/graph_edges_mapping.py | ValeryTyumen/planar_ising | 5a1803487e1dd59c5d5e790cc949b7234bf52ac8 | [
"MIT"
] | 3 | 2019-08-11T23:08:58.000Z | 2022-03-19T09:09:50.000Z | class GraphEdgesMapping:
def __init__(self, first_dual_edges_mapping, second_dual_edges_mapping):
self._first = first_dual_edges_mapping
self._second = second_dual_edges_mapping
@property
def size(self):
return self._first.shape[0]
@property
def first(self):
ret... | 18.272727 | 76 | 0.674129 | 48 | 402 | 5.208333 | 0.3125 | 0.144 | 0.256 | 0.168 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003344 | 0.256219 | 402 | 21 | 77 | 19.142857 | 0.832776 | 0 | 0 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0 | 0.230769 | 0.615385 | 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 | 1 | 0 | 0 | 0 | 4 |
565028cf27a350f1163d578521696ad76fa174d4 | 65 | py | Python | tests/src/wildcard_module.py | bayashi-cl/expander | b3623b656a71801233797e05781295a6101fefd8 | [
"CC0-1.0"
] | null | null | null | tests/src/wildcard_module.py | bayashi-cl/expander | b3623b656a71801233797e05781295a6101fefd8 | [
"CC0-1.0"
] | 1 | 2022-03-12T20:41:21.000Z | 2022-03-13T06:34:30.000Z | tests/src/wildcard_module.py | bayashi-cl/expander | b3623b656a71801233797e05781295a6101fefd8 | [
"CC0-1.0"
] | null | null | null | import testlib_a.sublib_c as lib
lib.func()
print(lib.variable)
| 13 | 32 | 0.784615 | 12 | 65 | 4.083333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107692 | 65 | 4 | 33 | 16.25 | 0.844828 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
5654708d5cda5f6ce8c9133a12c13d0693143f4b | 975 | py | Python | admin/registry.py | bpeschier/reek-admin | 563d1add4d37ec277760ce8a3609573b25851af3 | [
"MIT"
] | null | null | null | admin/registry.py | bpeschier/reek-admin | 563d1add4d37ec277760ce8a3609573b25851af3 | [
"MIT"
] | null | null | null | admin/registry.py | bpeschier/reek-admin | 563d1add4d37ec277760ce8a3609573b25851af3 | [
"MIT"
] | null | null | null | from collections import OrderedDict
from django.utils.translation import ugettext_lazy as _
class AlreadyRegistered(Exception):
pass
class NotRegistered(Exception):
pass
class RegistryMixin:
"""
Reusable registry
"""
def __init__(self):
super().__init__()
self._registry =... | 20.744681 | 68 | 0.594872 | 105 | 975 | 5.333333 | 0.4 | 0.15 | 0.096429 | 0.067857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.305641 | 975 | 46 | 69 | 21.195652 | 0.827179 | 0.017436 | 0 | 0.068966 | 0 | 0 | 0.05101 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.206897 | false | 0.068966 | 0.068966 | 0.103448 | 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 | 1 | 1 | 0 | 0 | 4 |
5657d5d99c6c6eb352fbcab87c5a99c041235122 | 387 | py | Python | b2/part.py | sam-centrevilletech/B2_Command_Line_Tool | 9cdef21cc43cb1d45590349754a4c866372ca6e1 | [
"MIT"
] | null | null | null | b2/part.py | sam-centrevilletech/B2_Command_Line_Tool | 9cdef21cc43cb1d45590349754a4c866372ca6e1 | [
"MIT"
] | 2 | 2022-02-24T21:17:18.000Z | 2022-03-16T20:45:45.000Z | b2/part.py | sam-centrevilletech/B2_Command_Line_Tool | 9cdef21cc43cb1d45590349754a4c866372ca6e1 | [
"MIT"
] | null | null | null | ######################################################################
#
# File: b2/part.py
#
# Copyright 2019 Backblaze Inc. All Rights Reserved.
#
# License https://www.backblaze.com/using_b2_code.html
#
######################################################################
from b2sdk.part import * # noqa
import b... | 25.8 | 70 | 0.478036 | 36 | 387 | 4.944444 | 0.722222 | 0.067416 | 0.179775 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028169 | 0.082687 | 387 | 14 | 71 | 27.642857 | 0.473239 | 0.322997 | 0 | 0 | 0 | 0 | 0.061947 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
3b246c731af38e76ca6b836026f4d3fcaf928558 | 70 | py | Python | redismutex/__init__.py | abeerupadhyay/py-redismutex | c78c3fd4ce2b820de2e359cb293f73c220a669a5 | [
"MIT"
] | 3 | 2018-05-01T08:02:43.000Z | 2018-06-07T15:48:27.000Z | redismutex/__init__.py | esquarer/py-redismutex | c78c3fd4ce2b820de2e359cb293f73c220a669a5 | [
"MIT"
] | 1 | 2021-06-16T17:52:57.000Z | 2021-06-16T17:52:57.000Z | redismutex/__init__.py | esquarer/py-redismutex | c78c3fd4ce2b820de2e359cb293f73c220a669a5 | [
"MIT"
] | 1 | 2021-05-12T15:46:35.000Z | 2021-05-12T15:46:35.000Z | from __future__ import absolute_import
from .mutex import RedisMutex
| 17.5 | 38 | 0.857143 | 9 | 70 | 6.111111 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128571 | 70 | 3 | 39 | 23.333333 | 0.901639 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
3b2ded358809c72987f0d92ab9161458e9aac748 | 138 | py | Python | common/print_with_time.py | kenichi-ogawa-1988/docker-build-symlink | 0a1aded397ce810ec738d5185a1f04ab48cb99ab | [
"MIT"
] | null | null | null | common/print_with_time.py | kenichi-ogawa-1988/docker-build-symlink | 0a1aded397ce810ec738d5185a1f04ab48cb99ab | [
"MIT"
] | null | null | null | common/print_with_time.py | kenichi-ogawa-1988/docker-build-symlink | 0a1aded397ce810ec738d5185a1f04ab48cb99ab | [
"MIT"
] | null | null | null | from datetime import datetime
def print_with_time(*values: object):
dt = datetime.now().isoformat()
print(f'[{dt}] ', *values)
| 17.25 | 37 | 0.666667 | 18 | 138 | 5 | 0.722222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173913 | 138 | 7 | 38 | 19.714286 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0.050725 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
3b3d4844392e75e2271951656bab0cd924041d53 | 114 | py | Python | indexpy/http/background.py | 2890841438/index.py | 0b97d917c06cccc5c95b00a29e24d79b5ced53de | [
"Apache-2.0"
] | null | null | null | indexpy/http/background.py | 2890841438/index.py | 0b97d917c06cccc5c95b00a29e24d79b5ced53de | [
"Apache-2.0"
] | null | null | null | indexpy/http/background.py | 2890841438/index.py | 0b97d917c06cccc5c95b00a29e24d79b5ced53de | [
"Apache-2.0"
] | null | null | null | from starlette.background import BackgroundTask, BackgroundTasks
__all__ = ["BackgroundTask", "BackgroundTasks"]
| 28.5 | 64 | 0.824561 | 9 | 114 | 10 | 0.777778 | 0.644444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.087719 | 114 | 3 | 65 | 38 | 0.865385 | 0 | 0 | 0 | 0 | 0 | 0.254386 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 4 |
3b5da578b265fa84e1fd43d6694a0418ca9be7e9 | 130 | py | Python | clea/__init__.py | scieloorg/clea | 83779d614c31a33d9b34d7240441891d2e295ce9 | [
"BSD-2-Clause"
] | 4 | 2019-03-16T04:31:06.000Z | 2020-12-28T22:42:10.000Z | clea/__init__.py | scieloorg/clea | 83779d614c31a33d9b34d7240441891d2e295ce9 | [
"BSD-2-Clause"
] | 6 | 2019-04-05T14:49:16.000Z | 2021-05-26T19:30:23.000Z | clea/__init__.py | scieloorg/clea | 83779d614c31a33d9b34d7240441891d2e295ce9 | [
"BSD-2-Clause"
] | 3 | 2019-03-16T04:30:55.000Z | 2021-05-25T12:08:27.000Z | from .core import Article, Branch, InvalidInput, SubArticle # noqa
from .misc import clean_empty # noqa
__version__ = "0.4.4"
| 21.666667 | 67 | 0.738462 | 18 | 130 | 5.055556 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027778 | 0.169231 | 130 | 5 | 68 | 26 | 0.814815 | 0.069231 | 0 | 0 | 0 | 0 | 0.042373 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
3b696a9a2d611d4b1d4feb369099f39e32417dcb | 1,012 | py | Python | tests/regression_tests/test_ellipsis_match.py | wapcaplet/doctest2 | b376983d02c6b475c74f6431603a8cb0448addb5 | [
"PSF-2.0"
] | 1 | 2017-08-11T18:41:33.000Z | 2017-08-11T18:41:33.000Z | tests/regression_tests/test_ellipsis_match.py | wapcaplet/doctest2 | b376983d02c6b475c74f6431603a8cb0448addb5 | [
"PSF-2.0"
] | null | null | null | tests/regression_tests/test_ellipsis_match.py | wapcaplet/doctest2 | b376983d02c6b475c74f6431603a8cb0448addb5 | [
"PSF-2.0"
] | null | null | null | import unittest
import doctest2
class TestEllipsisMatch (unittest.TestCase):
def test_no_ellipsis(self):
result = doctest2._ellipsis_match("foo", "foo")
self.assertTrue(result)
def test_true_at_start(self):
result = doctest2._ellipsis_match("...bar", "foobar")
self.assertTrue(r... | 27.351351 | 61 | 0.657115 | 118 | 1,012 | 5.279661 | 0.279661 | 0.078652 | 0.202247 | 0.292135 | 0.791332 | 0.741573 | 0.52809 | 0.46549 | 0.138042 | 0 | 0 | 0.010038 | 0.212451 | 1,012 | 36 | 62 | 28.111111 | 0.771644 | 0 | 0 | 0.269231 | 0 | 0 | 0.082097 | 0 | 0 | 0 | 0 | 0 | 0.269231 | 1 | 0.269231 | false | 0.038462 | 0.076923 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 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 | 4 |
3b8ae9f6822f2253d9d04a5ca0345957bf0b0be1 | 280 | py | Python | bot/api/WeatherExceptions.py | Fra179/BotOrarioScolastico | 6d740492a27207095913472b4a8c99818c448ecc | [
"MIT"
] | null | null | null | bot/api/WeatherExceptions.py | Fra179/BotOrarioScolastico | 6d740492a27207095913472b4a8c99818c448ecc | [
"MIT"
] | null | null | null | bot/api/WeatherExceptions.py | Fra179/BotOrarioScolastico | 6d740492a27207095913472b4a8c99818c448ecc | [
"MIT"
] | 1 | 2020-10-04T08:30:54.000Z | 2020-10-04T08:30:54.000Z | class InvalidApiKeyError(Exception):
def __init__(self):
self.message = "The API key you inserted isn't valid"
class InvalidCityNameError(Exception):
def __init__(self):
self.message = "Couldn't find any city with this name or code. Please check again."
| 31.111111 | 91 | 0.710714 | 37 | 280 | 5.162162 | 0.756757 | 0.125654 | 0.167539 | 0.209424 | 0.324607 | 0.324607 | 0 | 0 | 0 | 0 | 0 | 0 | 0.203571 | 280 | 8 | 92 | 35 | 0.856502 | 0 | 0 | 0.333333 | 0 | 0 | 0.364286 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
3b8fcf7e800ea3a85168f08d1391ac63446619ec | 81 | py | Python | modules/src/recipe.py | vedantrathore/Monica | 164bf4b3d2f80bd48a827d3e35e0b58786c9c0c5 | [
"MIT"
] | 18 | 2016-10-30T12:11:27.000Z | 2021-08-19T15:00:36.000Z | modules/src/recipe.py | vedantrathore/Monica | 164bf4b3d2f80bd48a827d3e35e0b58786c9c0c5 | [
"MIT"
] | 12 | 2016-12-01T08:07:51.000Z | 2017-04-28T16:40:55.000Z | modules/src/recipe.py | vedantrathore/Monica | 164bf4b3d2f80bd48a827d3e35e0b58786c9c0c5 | [
"MIT"
] | 23 | 2016-12-01T09:49:46.000Z | 2019-06-18T11:10:59.000Z | import requests, json
from templates.generic import GenericTemplate
api_key = "" | 20.25 | 45 | 0.814815 | 10 | 81 | 6.5 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123457 | 81 | 4 | 46 | 20.25 | 0.915493 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
8eaeca33a8789994c680a6779c52c1650cef7f3c | 172 | py | Python | www/core/__init__.py | ki-tools/sls_ki_synapse_admin_py | d9483d01000b61c4e8d129bdc06497ae1a27484b | [
"Apache-2.0"
] | null | null | null | www/core/__init__.py | ki-tools/sls_ki_synapse_admin_py | d9483d01000b61c4e8d129bdc06497ae1a27484b | [
"Apache-2.0"
] | null | null | null | www/core/__init__.py | ki-tools/sls_ki_synapse_admin_py | d9483d01000b61c4e8d129bdc06497ae1a27484b | [
"Apache-2.0"
] | null | null | null | from .env import Env
from .synapse import Synapse
from .exceptions import AuthEmailNotVerifiedError, AuthForbiddenError, AuthLoginFailureError
from .cookies import Cookies
| 34.4 | 92 | 0.860465 | 18 | 172 | 8.222222 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104651 | 172 | 4 | 93 | 43 | 0.961039 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
8ebbc8f72752d5aef978799a0a0c2c9b527adfdb | 239 | py | Python | Django_DB_MySQL/sample/models.py | Flychild193/pythonBot | 519c1f1e8cce254b1780ced86ac3b79e377133e8 | [
"MIT"
] | null | null | null | Django_DB_MySQL/sample/models.py | Flychild193/pythonBot | 519c1f1e8cce254b1780ced86ac3b79e377133e8 | [
"MIT"
] | null | null | null | Django_DB_MySQL/sample/models.py | Flychild193/pythonBot | 519c1f1e8cce254b1780ced86ac3b79e377133e8 | [
"MIT"
] | 2 | 2022-03-18T15:28:04.000Z | 2022-03-25T09:26:10.000Z | from django.db import models
class Customer(models.Model):
name = models.CharField(max_length=200)
phonenumber = models.CharField(max_length=200)
address = models.CharField(max_length=200)
# Create your models here.
| 23.9 | 50 | 0.728033 | 31 | 239 | 5.516129 | 0.580645 | 0.263158 | 0.315789 | 0.421053 | 0.473684 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045918 | 0.179916 | 239 | 9 | 51 | 26.555556 | 0.826531 | 0.100418 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 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 | 4 |
8eca1893e33375770c05024bd15edbdab4c6db39 | 68 | py | Python | code/abc044_a_02.py | KoyanagiHitoshi/AtCoder | 731892543769b5df15254e1f32b756190378d292 | [
"MIT"
] | 3 | 2019-08-16T16:55:48.000Z | 2021-04-11T10:21:40.000Z | code/abc044_a_02.py | KoyanagiHitoshi/AtCoder | 731892543769b5df15254e1f32b756190378d292 | [
"MIT"
] | null | null | null | code/abc044_a_02.py | KoyanagiHitoshi/AtCoder | 731892543769b5df15254e1f32b756190378d292 | [
"MIT"
] | null | null | null | n,k,x,y=(int(input()) for _ in range(4))
print(n*x-(x-y)*max(n-k,0)) | 34 | 40 | 0.573529 | 19 | 68 | 2 | 0.684211 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031746 | 0.073529 | 68 | 2 | 41 | 34 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
8eeea5324d7bcef5fb066cd674af2cded15dd495 | 300 | py | Python | class_SerVivo.py | carlotamartin/Mi-primer-ejercicio-POO | 79cc7f13b6a7c0ce1bd0069b23a53e02be7474da | [
"Apache-2.0"
] | null | null | null | class_SerVivo.py | carlotamartin/Mi-primer-ejercicio-POO | 79cc7f13b6a7c0ce1bd0069b23a53e02be7474da | [
"Apache-2.0"
] | null | null | null | class_SerVivo.py | carlotamartin/Mi-primer-ejercicio-POO | 79cc7f13b6a7c0ce1bd0069b23a53e02be7474da | [
"Apache-2.0"
] | null | null | null | class SerVivo:
def __init__(self):
self._vivo = True
def is_vivo(self):
return self._vivo
def morir(self):
self._vivo= False
#Se pone _ porque es una clase abstracta y solo se puede usar en esta clase
#Se pone __ porque es una clase privada solo la usa cada clase
| 30 | 75 | 0.676667 | 48 | 300 | 4 | 0.583333 | 0.125 | 0.125 | 0.145833 | 0.229167 | 0.229167 | 0 | 0 | 0 | 0 | 0 | 0 | 0.266667 | 300 | 9 | 76 | 33.333333 | 0.872727 | 0.45 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | false | 0 | 0 | 0.142857 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
8ef47bb385edf010bef4aa52142982039fb428bc | 967 | py | Python | app/test/test_article.py | Roney-juma/News_app | 5d0e1a6de2d1cb50759b4ab2f51a397e640a9b35 | [
"MIT"
] | null | null | null | app/test/test_article.py | Roney-juma/News_app | 5d0e1a6de2d1cb50759b4ab2f51a397e640a9b35 | [
"MIT"
] | null | null | null | app/test/test_article.py | Roney-juma/News_app | 5d0e1a6de2d1cb50759b4ab2f51a397e640a9b35 | [
"MIT"
] | null | null | null | import unittest
from app.models import Article
class ArticleTest(unittest.TestCase):
'''
Test Class to test the behaviour of the Article class
'''
def setUp(self):
'''
Set up method that will run before every Test
'''
self.new_article = Article("Coronavirus updates", "... | 53.722222 | 316 | 0.70424 | 133 | 967 | 5.120301 | 0.721805 | 0.026432 | 0.041116 | 0.061674 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054847 | 0.189245 | 967 | 18 | 317 | 53.722222 | 0.809949 | 0.102378 | 0 | 0 | 0 | 0.375 | 0.621687 | 0.028916 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
8ef484b3b43f542298891195d974717449df9e14 | 46 | py | Python | Data-Analysis/venv_macos/lib/python3.8/site-packages/IPython/utils/_sysinfo.py | Qiaozhi94/Python-Projects | aefc6cf49c1f4f2cc9beba8dbe80cfa826ba75c4 | [
"MIT"
] | null | null | null | Data-Analysis/venv_macos/lib/python3.8/site-packages/IPython/utils/_sysinfo.py | Qiaozhi94/Python-Projects | aefc6cf49c1f4f2cc9beba8dbe80cfa826ba75c4 | [
"MIT"
] | 2 | 2021-06-08T21:41:55.000Z | 2021-09-08T02:06:41.000Z | Data-Analysis/venv_macos/lib/python3.8/site-packages/IPython/utils/_sysinfo.py | Qiaozhi94/Python-Projects | aefc6cf49c1f4f2cc9beba8dbe80cfa826ba75c4 | [
"MIT"
] | null | null | null | # GENERATED BY setup.py
commit = u"2922831ac"
| 15.333333 | 23 | 0.73913 | 7 | 46 | 4.857143 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.179487 | 0.152174 | 46 | 2 | 24 | 23 | 0.692308 | 0.456522 | 0 | 0 | 1 | 0 | 0.391304 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
d91f17281e3b79d918915f7bd9561fae651821ed | 47 | py | Python | awards/__init__.py | Sundaybrian/prodev | ed51fbd7c70941de36f7bc59c1940acfafaecf72 | [
"MIT"
] | null | null | null | awards/__init__.py | Sundaybrian/prodev | ed51fbd7c70941de36f7bc59c1940acfafaecf72 | [
"MIT"
] | 7 | 2020-06-05T22:53:10.000Z | 2022-02-10T08:29:14.000Z | awards/__init__.py | Sundaybrian/prodev | ed51fbd7c70941de36f7bc59c1940acfafaecf72 | [
"MIT"
] | null | null | null | default_app_config = 'awards.apps.AwardsConfig' | 47 | 47 | 0.851064 | 6 | 47 | 6.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042553 | 47 | 1 | 47 | 47 | 0.844444 | 0 | 0 | 0 | 0 | 0 | 0.5 | 0.5 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
79b77bdde4693a676e1e8f81b0eea739a4fca46f | 185 | py | Python | pyctm/uv_map.py | mateusazis/pyctm | 7851d3279ea2ce790e24ea996cf8ce3637823ee7 | [
"MIT"
] | null | null | null | pyctm/uv_map.py | mateusazis/pyctm | 7851d3279ea2ce790e24ea996cf8ce3637823ee7 | [
"MIT"
] | null | null | null | pyctm/uv_map.py | mateusazis/pyctm | 7851d3279ea2ce790e24ea996cf8ce3637823ee7 | [
"MIT"
] | null | null | null | class UvMap(object):
def __init__(self, coords=[], texture_file_name='', name=''):
self.coords = tuple(coords)
self.texture_file_name = texture_file_name
self.name = name
| 30.833333 | 63 | 0.697297 | 25 | 185 | 4.76 | 0.44 | 0.277311 | 0.378151 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162162 | 185 | 5 | 64 | 37 | 0.767742 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.4 | 0 | 1 | 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 | 4 |
79bd18147692a8088b5181391fbc169fbb62d48a | 44 | py | Python | fast/__init__.py | jonatasoli/fastcli | 77d6ba86495e501326820ec3c7be8f1ce5e7a792 | [
"MIT"
] | null | null | null | fast/__init__.py | jonatasoli/fastcli | 77d6ba86495e501326820ec3c7be8f1ce5e7a792 | [
"MIT"
] | null | null | null | fast/__init__.py | jonatasoli/fastcli | 77d6ba86495e501326820ec3c7be8f1ce5e7a792 | [
"MIT"
] | null | null | null | __app_name__ = "fast"
__version__ = "0.0.1"
| 14.666667 | 21 | 0.681818 | 7 | 44 | 3 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078947 | 0.136364 | 44 | 2 | 22 | 22 | 0.473684 | 0 | 0 | 0 | 0 | 0 | 0.204545 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
8dc418ab57e8c6bd327fc748e0875ad37c81b6e5 | 1,333 | py | Python | webserver/mqtt_config.py | fabocode/nested-loop-server | ada7a079880e860a5d04cbb75e100bf555bce352 | [
"MIT"
] | null | null | null | webserver/mqtt_config.py | fabocode/nested-loop-server | ada7a079880e860a5d04cbb75e100bf555bce352 | [
"MIT"
] | null | null | null | webserver/mqtt_config.py | fabocode/nested-loop-server | ada7a079880e860a5d04cbb75e100bf555bce352 | [
"MIT"
] | null | null | null | import yaml
class MQTTConfig:
def __init__(self, config_file):
with open(config_file, 'r') as f:
self.config = yaml.load(f, Loader=yaml.FullLoader)
self.broker_address = self.config.get('FLESPI_MQTT')["HOSTNAME"]
self.port = int... | 37.027778 | 98 | 0.6009 | 156 | 1,333 | 4.891026 | 0.25 | 0.131062 | 0.136304 | 0.099607 | 0.304063 | 0.107471 | 0 | 0 | 0 | 0 | 0 | 0 | 0.288822 | 1,333 | 35 | 99 | 38.085714 | 0.804852 | 0 | 0 | 0 | 0 | 0 | 0.11853 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.296296 | false | 0.111111 | 0.037037 | 0.259259 | 0.62963 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
8dc5cc6feef735147021d2f6593ef62f25581180 | 141 | py | Python | tests/__init__.py | ryan109/pyinfra | 6814920c634a2a047299875077633f72ecc46fce | [
"MIT"
] | 1 | 2020-04-12T16:15:15.000Z | 2020-04-12T16:15:15.000Z | tests/__init__.py | gchazot/pyinfra | 40dd01f11086dba2be20fa2f509556abb40d84f8 | [
"MIT"
] | null | null | null | tests/__init__.py | gchazot/pyinfra | 40dd01f11086dba2be20fa2f509556abb40d84f8 | [
"MIT"
] | null | null | null | # pyinfra
# File: tests/__init__.py
# Desc: bootstrap basic logging for the tests
import logging
logging.basicConfig(level=logging.DEBUG)
| 15.666667 | 45 | 0.780142 | 19 | 141 | 5.578947 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134752 | 141 | 8 | 46 | 17.625 | 0.868852 | 0.531915 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
8dca7644272fcca5af3df176230441c8c3abbe5b | 434 | py | Python | src/utils/networking/multiprocessingUtils.py | joacorapela/svGPFA | 181c03f47a3b7023ac7f873c2ec98cba54a73feb | [
"MIT"
] | 2 | 2020-09-01T16:46:20.000Z | 2022-02-28T19:43:04.000Z | src/utils/networking/multiprocessingUtils.py | joacorapela/svGPFA | 181c03f47a3b7023ac7f873c2ec98cba54a73feb | [
"MIT"
] | 13 | 2020-12-22T20:16:28.000Z | 2021-06-01T16:18:00.000Z | src/utils/networking/multiprocessingUtils.py | joacorapela/svGPFA | 181c03f47a3b7023ac7f873c2ec98cba54a73feb | [
"MIT"
] | 1 | 2020-03-26T18:14:52.000Z | 2020-03-26T18:14:52.000Z |
class FileLock:
def __init__(self, filename):
self.filename = filename
with open(self.filename, 'w') as f:
f.write('done')
def lock(self):
with open(self.filename, 'w') as f:
f.write('working')
def unlock(self):
with open(self.filename, 'w') as f:
... | 22.842105 | 59 | 0.541475 | 56 | 434 | 4.107143 | 0.375 | 0.313043 | 0.278261 | 0.26087 | 0.486957 | 0.486957 | 0.486957 | 0.486957 | 0.486957 | 0.486957 | 0 | 0 | 0.308756 | 434 | 18 | 60 | 24.111111 | 0.766667 | 0 | 0 | 0.384615 | 0 | 0 | 0.060185 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0 | 0.076923 | 0.461538 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
8dcdc134e54b9ad4f171c8b43477ad8673838d96 | 289 | py | Python | IOMC/EventVertexGenerators/python/VtxSmearedEarly10TeVX322Y100_cfi.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | IOMC/EventVertexGenerators/python/VtxSmearedEarly10TeVX322Y100_cfi.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | IOMC/EventVertexGenerators/python/VtxSmearedEarly10TeVX322Y100_cfi.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | import FWCore.ParameterSet.Config as cms
from IOMC.EventVertexGenerators.VtxSmearedParameters_cfi import Early10TeVX322Y100VtxSmearingParameters,VtxSmearedCommon
VtxSmeared = cms.EDProducer("BetafuncEvtVtxGenerator",
Early10TeVX322Y100VtxSmearingParameters,
VtxSmearedCommon
)
| 26.272727 | 120 | 0.865052 | 20 | 289 | 12.45 | 0.8 | 0.441767 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060837 | 0.089965 | 289 | 10 | 121 | 28.9 | 0.885932 | 0 | 0 | 0 | 0 | 0 | 0.08042 | 0.08042 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
8de7644b448ec7971d72e5d154273b02c46e4b3e | 230 | py | Python | src/CodeLearn/plaintextCode/BloomTech/BTU5W1/U5W1P2_Task1_w1.py | MingjunGeng/Code-Knowledge | 5b376f6b3ff9e7fa0ab41c7b57e3a80313fa0daa | [
"MIT"
] | null | null | null | src/CodeLearn/plaintextCode/BloomTech/BTU5W1/U5W1P2_Task1_w1.py | MingjunGeng/Code-Knowledge | 5b376f6b3ff9e7fa0ab41c7b57e3a80313fa0daa | [
"MIT"
] | null | null | null | src/CodeLearn/plaintextCode/BloomTech/BTU5W1/U5W1P2_Task1_w1.py | MingjunGeng/Code-Knowledge | 5b376f6b3ff9e7fa0ab41c7b57e3a80313fa0daa | [
"MIT"
] | 1 | 2022-03-18T04:52:10.000Z | 2022-03-18T04:52:10.000Z | #!/usr/bin/python3
# --- 001 > U5W2P1_Task1_w1
def solution(s):
return int(s)
if __name__ == "__main__":
print('----------start------------')
s = "12"
print(solution( s ))
print('------------end------------') | 23 | 40 | 0.46087 | 25 | 230 | 3.84 | 0.76 | 0.1875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 0.186957 | 230 | 10 | 41 | 23 | 0.454545 | 0.186957 | 0 | 0 | 0 | 0 | 0.344086 | 0.290323 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0.142857 | 0.285714 | 0.428571 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 4 |
8df949a7466dfc27abf94637a844590ae6507b42 | 101 | py | Python | applications/mupiopolitico/apps.py | PEM-Humboldt/visor-geografico-I2d-backend | 5b5f4e0eee07e14bd8124cec624b5a5004c4d168 | [
"MIT"
] | null | null | null | applications/mupiopolitico/apps.py | PEM-Humboldt/visor-geografico-I2d-backend | 5b5f4e0eee07e14bd8124cec624b5a5004c4d168 | [
"MIT"
] | null | null | null | applications/mupiopolitico/apps.py | PEM-Humboldt/visor-geografico-I2d-backend | 5b5f4e0eee07e14bd8124cec624b5a5004c4d168 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class MupiopoliticoConfig(AppConfig):
name = 'mupiopolitico'
| 16.833333 | 37 | 0.782178 | 10 | 101 | 7.9 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148515 | 101 | 5 | 38 | 20.2 | 0.918605 | 0 | 0 | 0 | 0 | 0 | 0.128713 | 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 | 1 | 0 | 0 | 4 |
8df9cd7a0941d30b14d6eb751a5f656b53792eb7 | 124 | py | Python | iman/apps.py | gladsonvm/fileupload-api | 96f7830fe62217d433dda7df314f65bdb3d42a1d | [
"MIT"
] | null | null | null | iman/apps.py | gladsonvm/fileupload-api | 96f7830fe62217d433dda7df314f65bdb3d42a1d | [
"MIT"
] | null | null | null | iman/apps.py | gladsonvm/fileupload-api | 96f7830fe62217d433dda7df314f65bdb3d42a1d | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
from django.apps import AppConfig
class ImanConfig(AppConfig):
name = 'iman'
| 15.5 | 39 | 0.782258 | 15 | 124 | 6.133333 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16129 | 124 | 7 | 40 | 17.714286 | 0.884615 | 0 | 0 | 0 | 0 | 0 | 0.032258 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 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 | 1 | 0 | 0 | 4 |
5c1ae897917103a32520fe568bd65f0b49d7d697 | 121 | py | Python | src/item.py | rguillon/mmrpg | 94f06b8bb13d4a94caeed247d7ceb1675b785148 | [
"MIT"
] | null | null | null | src/item.py | rguillon/mmrpg | 94f06b8bb13d4a94caeed247d7ceb1675b785148 | [
"MIT"
] | null | null | null | src/item.py | rguillon/mmrpg | 94f06b8bb13d4a94caeed247d7ceb1675b785148 | [
"MIT"
] | null | null | null |
from item_modifier import *
class Item(Object):
def __init__(yaml_node):
self.node = yaml_node
def
| 12.1 | 29 | 0.644628 | 16 | 121 | 4.4375 | 0.6875 | 0.225352 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.280992 | 121 | 9 | 30 | 13.444444 | 0.816092 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
5c2c9cff7d7b7c9ed936c37453a1f32e803dfab8 | 334 | py | Python | evolution/layers/reshape.py | vfcosta/coegan-trained | 44174e68909d9c03bf2e4b7e4c7a48237a560183 | [
"MIT"
] | null | null | null | evolution/layers/reshape.py | vfcosta/coegan-trained | 44174e68909d9c03bf2e4b7e4c7a48237a560183 | [
"MIT"
] | null | null | null | evolution/layers/reshape.py | vfcosta/coegan-trained | 44174e68909d9c03bf2e4b7e4c7a48237a560183 | [
"MIT"
] | 1 | 2021-06-11T16:52:55.000Z | 2021-06-11T16:52:55.000Z | import torch.nn as nn
class Reshape(nn.Module):
def __init__(self, shape):
super().__init__()
self.shape = shape
def forward(self, input_data):
return input_data.view(self.shape)
def __repr__(self):
return self.__class__.__name__ + '(' \
+ 'shape=' + str(self... | 20.875 | 46 | 0.586826 | 40 | 334 | 4.35 | 0.5 | 0.206897 | 0.149425 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.275449 | 334 | 15 | 47 | 22.266667 | 0.719008 | 0 | 0 | 0 | 0 | 0 | 0.023952 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.1 | 0.2 | 0.7 | 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 | 1 | 1 | 0 | 0 | 4 |
3088e7e532abd96e92359911b739309667b4bd6c | 202 | py | Python | phanterpwa/interface/Admin/api/controllers/__init__.py | PhanterJR/phanterpwa | 6daff40845b3a853cd08d319c4ce148f8deebed7 | [
"MIT"
] | 2 | 2019-06-06T10:37:01.000Z | 2021-10-16T03:36:28.000Z | phanterpwa/interface/Admin/backapps/api/controllers/__init__.py | PhanterJR/phanterpwa | 6daff40845b3a853cd08d319c4ce148f8deebed7 | [
"MIT"
] | null | null | null | phanterpwa/interface/Admin/backapps/api/controllers/__init__.py | PhanterJR/phanterpwa | 6daff40845b3a853cd08d319c4ce148f8deebed7 | [
"MIT"
] | null | null | null | import os
import glob
files = glob.glob(os.path.join(os.path.dirname(__file__), "*.py"))
__all__ = [os.path.basename(x)[0:-3] for x in files if os.path.basename(x) != "__init__.py" and x[-3:] == ".py"]
| 40.4 | 112 | 0.658416 | 37 | 202 | 3.27027 | 0.513514 | 0.198347 | 0.231405 | 0.247934 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01676 | 0.113861 | 202 | 4 | 113 | 50.5 | 0.659218 | 0 | 0 | 0 | 0 | 0 | 0.089109 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 4 |
3089fb6b929859b649dfbbcccb8ce8a85b3a9741 | 40 | py | Python | src/actuariat_python/exams/__init__.py | Pandinosaurus/actuariat_python | 77533a75fcc63a5a7ebca664a19a24c9439670ee | [
"MIT"
] | 5 | 2017-03-13T15:58:40.000Z | 2021-02-03T12:52:58.000Z | src/actuariat_python/exams/__init__.py | Pandinosaurus/actuariat_python | 77533a75fcc63a5a7ebca664a19a24c9439670ee | [
"MIT"
] | 13 | 2015-06-14T22:01:37.000Z | 2021-01-05T13:57:00.000Z | src/actuariat_python/exams/__init__.py | Pandinosaurus/actuariat_python | 77533a75fcc63a5a7ebca664a19a24c9439670ee | [
"MIT"
] | 9 | 2017-01-15T15:06:55.000Z | 2022-01-18T20:42:48.000Z | """
@file
@brief shortcuts to exams
"""
| 8 | 25 | 0.625 | 5 | 40 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175 | 40 | 4 | 26 | 10 | 0.757576 | 0.775 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
308b1852787975c468ee7bc0ccd039c43b93cdbe | 156 | py | Python | reddit2telegram/channels/~inactive/r_tf2/app.py | mainyordle/reddit2telegram | 1163e15aed3b6ff0fba65b222d3d9798f644c386 | [
"MIT"
] | 187 | 2016-09-20T09:15:54.000Z | 2022-03-29T12:22:33.000Z | reddit2telegram/channels/~inactive/r_tf2/app.py | mainyordle/reddit2telegram | 1163e15aed3b6ff0fba65b222d3d9798f644c386 | [
"MIT"
] | 84 | 2016-09-22T14:25:07.000Z | 2022-03-19T01:26:17.000Z | reddit2telegram/channels/~inactive/r_tf2/app.py | mainyordle/reddit2telegram | 1163e15aed3b6ff0fba65b222d3d9798f644c386 | [
"MIT"
] | 172 | 2016-09-21T15:39:39.000Z | 2022-03-16T15:15:58.000Z | #encoding:utf-8
subreddit = 'tf2+tf2memes+tf2shitposterclub'
t_channel = '@r_TF2'
def send_post(submission, r2t):
return r2t.send_simple(submission)
| 17.333333 | 44 | 0.75641 | 21 | 156 | 5.428571 | 0.809524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051095 | 0.121795 | 156 | 8 | 45 | 19.5 | 0.781022 | 0.089744 | 0 | 0 | 0 | 0 | 0.255319 | 0.212766 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.25 | 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 | 1 | 0 | 0 | 0 | 4 |
309e1f9086f6f28a83c3ee274b3de03c2297a0d4 | 128 | py | Python | 3. Python Advanced (September 2021)/3.1 Python Advanced (September 2021)/17. Modules/02_ascii_art.py | kzborisov/SoftUni | ccb2b8850adc79bfb2652a45124c3ff11183412e | [
"MIT"
] | 1 | 2021-02-07T07:51:12.000Z | 2021-02-07T07:51:12.000Z | 3. Python Advanced (September 2021)/3.1 Python Advanced (September 2021)/17. Modules/02_ascii_art.py | kzborisov/softuni | 9c5b45c74fa7d9748e9b3ea65a5ae4e15c142751 | [
"MIT"
] | null | null | null | 3. Python Advanced (September 2021)/3.1 Python Advanced (September 2021)/17. Modules/02_ascii_art.py | kzborisov/softuni | 9c5b45c74fa7d9748e9b3ea65a5ae4e15c142751 | [
"MIT"
] | null | null | null | import pyfiglet
def ascii_art(text):
return pyfiglet.print_figlet(text)
input_str = input()
print(ascii_art(input_str))
| 12.8 | 38 | 0.757813 | 19 | 128 | 4.842105 | 0.578947 | 0.173913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140625 | 128 | 9 | 39 | 14.222222 | 0.836364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.2 | 0.6 | 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 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
30a4ce91d0e782188f75faf770a6f31e7084faae | 407 | py | Python | attendance_extension/tests/__init__.py | aleksas/erpnext_attendance_extension | 559abb1c4077d5052ef97cb309fe60bfda3c4828 | [
"MIT"
] | 5 | 2019-04-05T07:26:51.000Z | 2021-04-27T20:18:16.000Z | attendance_extension/tests/__init__.py | aleksas/erpnext_attendance_extension | 559abb1c4077d5052ef97cb309fe60bfda3c4828 | [
"MIT"
] | null | null | null | attendance_extension/tests/__init__.py | aleksas/erpnext_attendance_extension | 559abb1c4077d5052ef97cb309fe60bfda3c4828 | [
"MIT"
] | 6 | 2019-04-08T06:12:38.000Z | 2021-09-26T15:33:35.000Z | # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# MIT License. See license.txt
from __future__ import unicode_literals
import frappe
from werkzeug.wrappers import Request
from werkzeug.test import EnvironBuilder
def set_request(**kwargs):
builder = EnvironBuilder(**kwargs)
frappe.local.request... | 23.941176 | 68 | 0.796069 | 54 | 407 | 5.814815 | 0.685185 | 0.076433 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011173 | 0.120393 | 407 | 16 | 69 | 25.4375 | 0.865922 | 0.233415 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0.111111 | 0.444444 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 4 |
30ab3ab8d965bbc2f2bb62857acb53e47002d2ee | 104 | py | Python | count_items.py | aaronhma/1000-algorithms | e49d1c40f2f7a2920e7579aadb84ddcf83e48c17 | [
"MIT"
] | 2 | 2020-05-10T17:38:55.000Z | 2020-06-05T06:16:36.000Z | count_items.py | aaronhma/1000-algorithms | e49d1c40f2f7a2920e7579aadb84ddcf83e48c17 | [
"MIT"
] | null | null | null | count_items.py | aaronhma/1000-algorithms | e49d1c40f2f7a2920e7579aadb84ddcf83e48c17 | [
"MIT"
] | null | null | null | def countItems(a: list) -> int:
if len(a) == 0:
return 0
else:
return 1 + countItems(a[1:])
| 17.333333 | 32 | 0.557692 | 17 | 104 | 3.411765 | 0.647059 | 0.37931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 0.269231 | 104 | 5 | 33 | 20.8 | 0.710526 | 0 | 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 | 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 | 1 | 0 | 0 | 4 |
30fc71d8cf7751bfa2e9db10445dc6904fb6eeee | 122 | py | Python | {{ cookiecutter.repo_service_reponame }}/src/{{ cookiecutter.slug }}/exception.py | boilpy/boilpy | 78f353a4b45e1df2e573993d686418dfc1f13cc8 | [
"MIT"
] | 8 | 2018-11-03T12:50:42.000Z | 2021-12-15T15:36:14.000Z | {{ cookiecutter.repo_service_reponame }}/src/{{ cookiecutter.slug }}/exception.py | boilpy/boilpy | 78f353a4b45e1df2e573993d686418dfc1f13cc8 | [
"MIT"
] | 1 | 2021-09-03T16:55:39.000Z | 2021-09-03T16:55:39.000Z | {{ cookiecutter.repo_service_reponame }}/src/{{ cookiecutter.slug }}/exception.py | boilpy/boilpy | 78f353a4b45e1df2e573993d686418dfc1f13cc8 | [
"MIT"
] | null | null | null | class {{ cookiecutter.slug.capitalize() }}Error(Exception):
pass
class DependencyNotFoundError(ImportError):
pass | 24.4 | 59 | 0.754098 | 11 | 122 | 8.363636 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131148 | 122 | 5 | 60 | 24.4 | 0.867925 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.5 | 0.25 | null | null | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
eb550bc4bb6ed7e93cf207b63361baf5ff5e1512 | 173 | py | Python | webarm/devices/apps.py | AlexGolovaschenko/WebArm | 1019b73b1ad5560a626261bbce05137c01edcee5 | [
"MIT"
] | null | null | null | webarm/devices/apps.py | AlexGolovaschenko/WebArm | 1019b73b1ad5560a626261bbce05137c01edcee5 | [
"MIT"
] | null | null | null | webarm/devices/apps.py | AlexGolovaschenko/WebArm | 1019b73b1ad5560a626261bbce05137c01edcee5 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class DevicesConfig(AppConfig):
name = 'devices'
verbose_name = "Устройства"
def ready(self):
import devices.signals | 19.222222 | 33 | 0.699422 | 19 | 173 | 6.315789 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.219653 | 173 | 9 | 34 | 19.222222 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0.097701 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | 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 | 1 | 0 | 0 | 4 |
cce4dce5b9f5d04486f556527fd661ca612a40c8 | 139 | py | Python | Files.py/1019.py | gomes-gabriel/URI | 5c79eccb37cd0633c2ed58144e876013bfad679a | [
"MIT"
] | null | null | null | Files.py/1019.py | gomes-gabriel/URI | 5c79eccb37cd0633c2ed58144e876013bfad679a | [
"MIT"
] | null | null | null | Files.py/1019.py | gomes-gabriel/URI | 5c79eccb37cd0633c2ed58144e876013bfad679a | [
"MIT"
] | null | null | null | N = int(input())
_hour = str(N // 3600)
N = N % 3600
_min = str(N // 60)
_sec = str(N % 60)
print(_hour + ':', _min + ':', _sec, sep='')
| 15.444444 | 44 | 0.496403 | 23 | 139 | 2.73913 | 0.478261 | 0.190476 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113208 | 0.23741 | 139 | 8 | 45 | 17.375 | 0.481132 | 0 | 0 | 0 | 0 | 0 | 0.014388 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
cce5edbf79e57b50e37f8680a737c8dbe02a278b | 65 | py | Python | donghuangzhong/src/modules/sniffer/__init__.py | onsis/hack-tools | 1a1dfebfab8c83379f17563900d3aeb9f240c658 | [
"Apache-2.0"
] | null | null | null | donghuangzhong/src/modules/sniffer/__init__.py | onsis/hack-tools | 1a1dfebfab8c83379f17563900d3aeb9f240c658 | [
"Apache-2.0"
] | null | null | null | donghuangzhong/src/modules/sniffer/__init__.py | onsis/hack-tools | 1a1dfebfab8c83379f17563900d3aeb9f240c658 | [
"Apache-2.0"
] | null | null | null | __all__ = ['http_sniffer','password_sniffer','database_sniffer']
| 32.5 | 64 | 0.784615 | 7 | 65 | 6.285714 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046154 | 65 | 1 | 65 | 65 | 0.709677 | 0 | 0 | 0 | 0 | 0 | 0.676923 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
ccf14f8ee6fa6a7415893ce9f3bec07f05d81569 | 630 | py | Python | src/stocks/predicate.py | korias24/stocks | 05ebada44f3439aa6b4ae70591a2923e852c3dfa | [
"MIT"
] | null | null | null | src/stocks/predicate.py | korias24/stocks | 05ebada44f3439aa6b4ae70591a2923e852c3dfa | [
"MIT"
] | null | null | null | src/stocks/predicate.py | korias24/stocks | 05ebada44f3439aa6b4ae70591a2923e852c3dfa | [
"MIT"
] | 1 | 2021-09-26T20:09:05.000Z | 2021-09-26T20:09:05.000Z | # -*- coding: utf-8 -*-
import functools
def notp(p):
def _p(x):
return not p(x)
return _p
def binop(op, *ps):
def _p(x):
return functools.reduce(op, [p(x) for p in ps])
return _p
def andp(*ps):
return binop(lambda x, y: x and y, *ps)
def orp(*ps):
return binop(lambda x, y... | 12.857143 | 55 | 0.51746 | 114 | 630 | 2.824561 | 0.263158 | 0.043478 | 0.149068 | 0.170807 | 0.360248 | 0.360248 | 0.360248 | 0.223602 | 0.223602 | 0.223602 | 0 | 0.00237 | 0.330159 | 630 | 48 | 56 | 13.125 | 0.760664 | 0.033333 | 0 | 0.322581 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.483871 | false | 0 | 0.032258 | 0.322581 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
690bed21b32719b0a98357ab70a66cc5a0bb244e | 160 | py | Python | sprite.py | karx1/GusTheGame | b0deb1c74816d6e6209ab4ce1916aaaf333b5fd3 | [
"Unlicense"
] | 1 | 2021-08-31T13:44:48.000Z | 2021-08-31T13:44:48.000Z | sprite.py | karx1/GusTheGame | b0deb1c74816d6e6209ab4ce1916aaaf333b5fd3 | [
"Unlicense"
] | null | null | null | sprite.py | karx1/GusTheGame | b0deb1c74816d6e6209ab4ce1916aaaf333b5fd3 | [
"Unlicense"
] | null | null | null | import arcade
class Sprite(arcade.Sprite):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.interacted_text = "" | 26.666667 | 41 | 0.6375 | 18 | 160 | 5.166667 | 0.666667 | 0.215054 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.20625 | 160 | 6 | 42 | 26.666667 | 0.732283 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 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 | 1 | 0 | 0 | 4 |
690ed1078cd48ec17aa195531156b84d312478d4 | 137 | py | Python | StadicViewer/__init__.py | sariths/stadicViewer | a8031bfd43ef5f1d91db66232442897fe9c5c004 | [
"MIT"
] | 1 | 2020-04-29T08:22:07.000Z | 2020-04-29T08:22:07.000Z | StadicViewer/__init__.py | sariths/stadicViewer | a8031bfd43ef5f1d91db66232442897fe9c5c004 | [
"MIT"
] | null | null | null | StadicViewer/__init__.py | sariths/stadicViewer | a8031bfd43ef5f1d91db66232442897fe9c5c004 | [
"MIT"
] | 2 | 2017-06-06T19:09:11.000Z | 2021-07-25T23:42:56.000Z | # coding=utf-8
"""
Contains all the scripts that parse json/hea files and process them into formats that are required for charts.
""" | 34.25 | 114 | 0.737226 | 22 | 137 | 4.590909 | 0.954545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008929 | 0.182482 | 137 | 4 | 115 | 34.25 | 0.892857 | 0.905109 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
69117d95822f480890fbe60923a38ed34acd3fc7 | 16,181 | py | Python | bluebottle/time_based/tests/test_scenarios.py | terrameijar/bluebottle | b4f5ba9c4f03e678fdd36091b29240307ea69ffd | [
"BSD-3-Clause"
] | 10 | 2015-05-28T18:26:40.000Z | 2021-09-06T10:07:03.000Z | bluebottle/time_based/tests/test_scenarios.py | terrameijar/bluebottle | b4f5ba9c4f03e678fdd36091b29240307ea69ffd | [
"BSD-3-Clause"
] | 762 | 2015-01-15T10:00:59.000Z | 2022-03-31T15:35:14.000Z | bluebottle/time_based/tests/test_scenarios.py | terrameijar/bluebottle | b4f5ba9c4f03e678fdd36091b29240307ea69ffd | [
"BSD-3-Clause"
] | 9 | 2015-02-20T13:19:30.000Z | 2022-03-08T14:09:17.000Z | from datetime import date, timedelta
from django.utils.timezone import now
from bluebottle.initiatives.tests.factories import InitiativeFactory
from bluebottle.initiatives.tests.steps import api_initiative_transition
from bluebottle.test.factory_models.accounts import BlueBottleUserFactory
from bluebottle.test.utils ... | 53.40264 | 109 | 0.694889 | 1,819 | 16,181 | 5.953821 | 0.079714 | 0.094552 | 0.084026 | 0.084949 | 0.812742 | 0.787996 | 0.750416 | 0.672022 | 0.643675 | 0.632133 | 0 | 0.013257 | 0.20283 | 16,181 | 302 | 110 | 53.57947 | 0.826343 | 0 | 0 | 0.605839 | 0 | 0 | 0.082751 | 0.001298 | 0 | 0 | 0 | 0 | 0.332117 | 1 | 0.043796 | false | 0 | 0.029197 | 0 | 0.080292 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 4 |
6927f4f3a71502afe12a315d5101f41809067ea9 | 88 | py | Python | lab2/CmdApp.py | YevhenKhomenko/crossplatform_labs | 15bc2268ec699c380c1c78a0bdca7c1bf1b85aa6 | [
"MIT"
] | null | null | null | lab2/CmdApp.py | YevhenKhomenko/crossplatform_labs | 15bc2268ec699c380c1c78a0bdca7c1bf1b85aa6 | [
"MIT"
] | null | null | null | lab2/CmdApp.py | YevhenKhomenko/crossplatform_labs | 15bc2268ec699c380c1c78a0bdca7c1bf1b85aa6 | [
"MIT"
] | null | null | null | from CmdController import Controller
if __name__ == '__main__':
Controller().run() | 17.6 | 36 | 0.727273 | 9 | 88 | 6.222222 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159091 | 88 | 5 | 37 | 17.6 | 0.756757 | 0 | 0 | 0 | 0 | 0 | 0.089888 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
15d37c9df87a85cdb02d6a6394b026714ec6b89b | 1,808 | py | Python | tests/model/test_counter.py | DanielMorton/Petrel | 07aee79087bf071f0906f806258c0a32d9cd44c6 | [
"Apache-2.0"
] | null | null | null | tests/model/test_counter.py | DanielMorton/Petrel | 07aee79087bf071f0906f806258c0a32d9cd44c6 | [
"Apache-2.0"
] | null | null | null | tests/model/test_counter.py | DanielMorton/Petrel | 07aee79087bf071f0906f806258c0a32d9cd44c6 | [
"Apache-2.0"
] | null | null | null | from unittest import TestCase
from petrel.model import AvgCounter
class TestCounter(TestCase):
def test_counter(self):
avg_counter = AvgCounter()
avg_counter.update(2, 1)
avg_counter.update(3, 1)
avg_counter.update(1, 1)
assert avg_counter.avg == 2.0
assert avg_coun... | 32.872727 | 38 | 0.60896 | 260 | 1,808 | 4.034615 | 0.126923 | 0.42898 | 0.442326 | 0.2755 | 0.768351 | 0.667302 | 0.577693 | 0.577693 | 0.416587 | 0.231649 | 0 | 0.057994 | 0.294248 | 1,808 | 54 | 39 | 33.481481 | 0.764107 | 0 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.58 | 1 | 0.06 | false | 0 | 0.04 | 0 | 0.12 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
15e3fad854152cea8fa0491c7fbd222cdeebecfe | 1,000 | py | Python | kitsupublisher/exceptions.py | cgwire-sunding/kitsu-publisher | a1e037bb66cb10532b1b1784469cea0a22f00bcb | [
"MIT"
] | 6 | 2020-08-31T13:57:50.000Z | 2021-11-11T20:24:05.000Z | kitsupublisher/exceptions.py | cgwire-sunding/kitsu-publisher | a1e037bb66cb10532b1b1784469cea0a22f00bcb | [
"MIT"
] | 14 | 2020-03-09T15:44:39.000Z | 2020-08-10T08:01:08.000Z | kitsupublisher/exceptions.py | cgwire-sunding/kitsu-publisher | a1e037bb66cb10532b1b1784469cea0a22f00bcb | [
"MIT"
] | 2 | 2020-03-09T11:10:07.000Z | 2020-07-24T06:10:03.000Z | class TranslationException(Exception):
"""
Error raised when a translation file can't be found.
"""
pass
class MediaNotSetUp(Exception):
"""
Error raised when a media file can't be found or set up.
"""
pass
class DataRetrievingError(Exception):
"""
Error raised when some raw ... | 18.181818 | 77 | 0.646 | 120 | 1,000 | 5.383333 | 0.45 | 0.173375 | 0.247678 | 0.297214 | 0.219814 | 0.095975 | 0 | 0 | 0 | 0 | 0 | 0 | 0.267 | 1,000 | 54 | 78 | 18.518519 | 0.88131 | 0.463 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
15ff6a167c2c6fd3e90e91a10209a93383911d1c | 7,077 | py | Python | tests/unit/server/test_types.py | arareko/pysoa | a90e428558500cf692f7f6e33fd358dd2779c328 | [
"Apache-2.0"
] | 91 | 2017-05-08T22:41:33.000Z | 2022-02-09T11:37:07.000Z | tests/unit/server/test_types.py | arareko/pysoa | a90e428558500cf692f7f6e33fd358dd2779c328 | [
"Apache-2.0"
] | 63 | 2017-06-14T20:08:49.000Z | 2021-06-16T23:08:25.000Z | tests/unit/server/test_types.py | arareko/pysoa | a90e428558500cf692f7f6e33fd358dd2779c328 | [
"Apache-2.0"
] | 26 | 2017-10-13T23:23:13.000Z | 2022-01-11T16:58:17.000Z | from __future__ import (
absolute_import,
unicode_literals,
)
import logging
import attr
import pytest
from pysoa.common.errors import Error
from pysoa.common.types import ActionResponse
from pysoa.server.errors import ActionError
from pysoa.server.types import EnrichedActionRequest
from pysoa.test.compatibi... | 37.444444 | 119 | 0.644906 | 865 | 7,077 | 5.03237 | 0.120231 | 0.059269 | 0.088215 | 0.048243 | 0.77303 | 0.73972 | 0.721801 | 0.660924 | 0.639789 | 0.619802 | 0 | 0.010822 | 0.229617 | 7,077 | 188 | 120 | 37.643617 | 0.787601 | 0 | 0 | 0.604167 | 0 | 0 | 0.11064 | 0 | 0 | 0 | 0 | 0 | 0.472222 | 1 | 0.034722 | false | 0 | 0.069444 | 0 | 0.131944 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
c60f342d37a3149c2653a26ada2e64594a682404 | 351 | py | Python | 0-notes/job-search/Cracking_the_Coding_Interview/C01ArraysStrings/questions/1.4-question.py | webdevhub42/Lambda | b04b84fb5b82fe7c8b12680149e25ae0d27a0960 | [
"MIT"
] | null | null | null | 0-notes/job-search/Cracking_the_Coding_Interview/C01ArraysStrings/questions/1.4-question.py | webdevhub42/Lambda | b04b84fb5b82fe7c8b12680149e25ae0d27a0960 | [
"MIT"
] | null | null | null | 0-notes/job-search/Cracking_the_Coding_Interview/C01ArraysStrings/questions/1.4-question.py | webdevhub42/Lambda | b04b84fb5b82fe7c8b12680149e25ae0d27a0960 | [
"MIT"
] | null | null | null | # Palindrome Permutation
# Given a string, write a function to check if it is a permutation of a palindrome. A palindrome is a word or phrase that is the same forwards and backwards. A permutation is a rearrangement of letters. The palindrome does not need to be limited to just dictionary words. You can ignore cas... | 87.75 | 324 | 0.789174 | 59 | 351 | 4.694915 | 0.661017 | 0.032491 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185185 | 351 | 3 | 325 | 117 | 0.968531 | 0.982906 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
c6383243a50ab18a63c44779945b96e15e4cfac0 | 9 | py | Python | u.py | waiting23/python | 0c51a9ca4e492522fa705494e7bb5a51907dc497 | [
"MIT"
] | 2 | 2019-05-22T09:11:34.000Z | 2019-05-22T09:13:51.000Z | u.py | waiting23/python | 0c51a9ca4e492522fa705494e7bb5a51907dc497 | [
"MIT"
] | null | null | null | u.py | waiting23/python | 0c51a9ca4e492522fa705494e7bb5a51907dc497 | [
"MIT"
] | null | null | null | num1 = 1
| 4.5 | 8 | 0.555556 | 2 | 9 | 2.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 0.333333 | 9 | 1 | 9 | 9 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 4 |
d6aa6c104a4a92613bbf932adc0b47d440024078 | 230 | py | Python | bank_api/errors.py | robinstauntoncollins/bank-api | b19cadf5a65f5e66ca14688af8774f400d4fb0f8 | [
"Unlicense"
] | null | null | null | bank_api/errors.py | robinstauntoncollins/bank-api | b19cadf5a65f5e66ca14688af8774f400d4fb0f8 | [
"Unlicense"
] | null | null | null | bank_api/errors.py | robinstauntoncollins/bank-api | b19cadf5a65f5e66ca14688af8774f400d4fb0f8 | [
"Unlicense"
] | null | null | null | from flask import jsonify
def make_error(status_code: int, message: str):
response = jsonify({
'status_code': status_code,
'message': message
})
response.status_code = status_code
return response
| 20.909091 | 47 | 0.669565 | 27 | 230 | 5.481481 | 0.518519 | 0.337838 | 0.216216 | 0.27027 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.243478 | 230 | 10 | 48 | 23 | 0.850575 | 0 | 0 | 0 | 0 | 0 | 0.078261 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.375 | 0 | 1 | 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 | 4 |
d6ebcbc6ede9207cf20d3aeed438eb81740a2bdb | 249 | py | Python | presenter/__init__.py | Zepp333333/Cyclist-Performance | 9a36e8fd9c9478f98dbe929e5a31e4e87fdc1932 | [
"MIT"
] | null | null | null | presenter/__init__.py | Zepp333333/Cyclist-Performance | 9a36e8fd9c9478f98dbe929e5a31e4e87fdc1932 | [
"MIT"
] | 1 | 2021-09-09T14:04:55.000Z | 2021-09-10T17:58:37.000Z | presenter/__init__.py | Zepp333333/HARDIO | 9a36e8fd9c9478f98dbe929e5a31e4e87fdc1932 | [
"MIT"
] | null | null | null | # Copyright (c) 2021. Sergei Sazonov. All Rights Reserved
from .base_presenter import BasePresenter
from .presenter import Presenter
from .presenter_config import AppConfig, AppDashIDs, Buttons, Inputs, Tabs
from .master_layout import MasterLayout
| 41.5 | 74 | 0.827309 | 31 | 249 | 6.548387 | 0.709677 | 0.147783 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018265 | 0.120482 | 249 | 5 | 75 | 49.8 | 0.908676 | 0.220884 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
d6fc58102ea2ceb5c3358b0ef1b45f16c3084798 | 126 | py | Python | Hub/ecointeraction/sedyl/apps.py | maximedaniel/ITAME | ca820337911695fa3625b32dcad5d87ff0b192d0 | [
"MIT"
] | null | null | null | Hub/ecointeraction/sedyl/apps.py | maximedaniel/ITAME | ca820337911695fa3625b32dcad5d87ff0b192d0 | [
"MIT"
] | 1 | 2021-06-10T23:19:09.000Z | 2021-06-10T23:19:09.000Z | Hub/ecointeraction/sedyl/apps.py | maximedaniel/ITAME | ca820337911695fa3625b32dcad5d87ff0b192d0 | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
from django.apps import AppConfig
class SedylConfig(AppConfig):
name = 'sedyl'
| 15.75 | 39 | 0.785714 | 15 | 126 | 6.266667 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15873 | 126 | 7 | 40 | 18 | 0.886792 | 0 | 0 | 0 | 0 | 0 | 0.039683 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 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 | 1 | 0 | 0 | 4 |
ba4e26b63e0db5f9f7f84f63865c51bd98707b6a | 1,068 | py | Python | twitch_auth/app_settings.py | hivegu/django-simpletwitchauth | 1a60bff0b0c5a8e44765b2bc6e494324300c9cd0 | [
"MIT"
] | 6 | 2018-05-13T11:49:56.000Z | 2021-12-03T15:25:33.000Z | twitch_auth/app_settings.py | hivegu/django-simpletwitchauth | 1a60bff0b0c5a8e44765b2bc6e494324300c9cd0 | [
"MIT"
] | 1 | 2021-02-15T15:51:38.000Z | 2021-02-15T15:51:38.000Z | twitch_auth/app_settings.py | hivegu/django-simpletwitchauth | 1a60bff0b0c5a8e44765b2bc6e494324300c9cd0 | [
"MIT"
] | 4 | 2017-07-19T04:45:57.000Z | 2019-04-14T14:10:38.000Z | class AppSettings(object):
def __init__(self, prefix):
self.prefix = prefix
def _setting(self, name, dflt):
from django.conf import settings
getter = getattr(settings,
'TWITCH_AUTH_SETTING_GETTER',
lambda name, dflt: getattr(settings, na... | 26.7 | 74 | 0.638577 | 121 | 1,068 | 5.330579 | 0.404959 | 0.085271 | 0.108527 | 0.162791 | 0.083721 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012376 | 0.243446 | 1,068 | 39 | 75 | 27.384615 | 0.785891 | 0.099251 | 0 | 0.178571 | 0 | 0 | 0.106361 | 0.027112 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.071429 | 0.178571 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
ba59161ab0b857d95d346c1d4baee59b412d3eb2 | 26 | py | Python | classificador_lyra/__init__.py | MinisterioPublicoRJ/classificador-lyra | da840cb4ea9f3298c1813a1e147f5651873d2762 | [
"MIT"
] | 8 | 2018-10-24T13:33:31.000Z | 2022-02-21T13:11:50.000Z | classificador_lyra/__init__.py | adelsonsena/classificador-lyra | da840cb4ea9f3298c1813a1e147f5651873d2762 | [
"MIT"
] | 3 | 2019-06-18T20:05:53.000Z | 2021-06-01T22:51:55.000Z | classificador_lyra/__init__.py | adelsonsena/classificador-lyra | da840cb4ea9f3298c1813a1e147f5651873d2762 | [
"MIT"
] | 2 | 2019-05-24T12:38:27.000Z | 2020-08-30T20:10:53.000Z | __version__ = '0.0.0dev0'
| 13 | 25 | 0.692308 | 4 | 26 | 3.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173913 | 0.115385 | 26 | 1 | 26 | 26 | 0.434783 | 0 | 0 | 0 | 0 | 0 | 0.346154 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
ba5f894ccfe0919912cf82752a356bf08fbe2b45 | 195 | py | Python | rant/admin.py | carolwanjohi/rant-on | 55a4ab524ab60846a4f6cbb6537dde2b8cb0601c | [
"MIT"
] | null | null | null | rant/admin.py | carolwanjohi/rant-on | 55a4ab524ab60846a4f6cbb6537dde2b8cb0601c | [
"MIT"
] | 6 | 2020-02-12T00:16:24.000Z | 2021-09-07T23:49:32.000Z | rant/admin.py | carolwanjohi/rant-on | 55a4ab524ab60846a4f6cbb6537dde2b8cb0601c | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Profile, Rant, Reaction
# Register your models here.
admin.site.register(Profile)
admin.site.register(Rant)
admin.site.register(Reaction)
| 17.727273 | 43 | 0.794872 | 27 | 195 | 5.740741 | 0.481481 | 0.174194 | 0.329032 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.112821 | 195 | 10 | 44 | 19.5 | 0.895954 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
ba6d2f2ca514ad93bd12772b5bdc276499d6f7cb | 2,318 | py | Python | DailyProgrammer/DP20140810.py | DayGitH/Python-Challenges | bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf | [
"MIT"
] | 2 | 2020-12-23T18:59:22.000Z | 2021-04-14T13:16:09.000Z | DailyProgrammer/DP20140810.py | DayGitH/Python-Challenges | bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf | [
"MIT"
] | null | null | null | DailyProgrammer/DP20140810.py | DayGitH/Python-Challenges | bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf | [
"MIT"
] | null | null | null | """
[8/10/2014] Challenge #174 [Extra] Functional Thinking
https://www.reddit.com/r/dailyprogrammer/comments/2d52d8/8102014_challenge_174_extra_functional_thinking/
# *(Extra)*: Functional Thinking
I'm trying a new bonus challenge today with any theme I can think of, such as rewriting an existing solution using a
dif... | 64.388889 | 119 | 0.780846 | 394 | 2,318 | 4.543147 | 0.441624 | 0.01676 | 0.041899 | 0.050279 | 0.100559 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016268 | 0.151424 | 2,318 | 35 | 120 | 66.228571 | 0.893747 | 0.968939 | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | true | 0.25 | 0 | 0 | 0.25 | 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 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
ba6fed91e5c4fe6dd5f011d24ba9149888fe5aa4 | 198 | py | Python | tests/test_wzdx_sandbox.py | usdot-its-jpo-data-portal/wzdx_sandbox | 5815070162a48fc65549cf9ddc11433716a39ecd | [
"Apache-2.0"
] | 1 | 2019-11-21T14:58:06.000Z | 2019-11-21T14:58:06.000Z | tests/test_wzdx_sandbox.py | usdot-its-jpo-data-portal/wzdx_sandbox | 5815070162a48fc65549cf9ddc11433716a39ecd | [
"Apache-2.0"
] | 9 | 2019-11-14T16:59:20.000Z | 2021-08-24T19:43:33.000Z | tests/test_wzdx_sandbox.py | usdot-its-jpo-data-portal/wzdx_sandbox | 5815070162a48fc65549cf9ddc11433716a39ecd | [
"Apache-2.0"
] | 2 | 2021-05-01T18:37:23.000Z | 2021-12-14T18:02:35.000Z | import unittest
import os
class TestWZDxSandboxImports(unittest.TestCase):
def test_imports(self):
from wzdx_sandbox.wzdx_sandbox import ITSSandbox, WorkZoneSandbox, WorkZoneRawSandbox | 28.285714 | 93 | 0.813131 | 21 | 198 | 7.52381 | 0.761905 | 0.139241 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136364 | 198 | 7 | 93 | 28.285714 | 0.923977 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 1 | 0 | 1.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
ba7a4fbaa1ee1e8949d6d3debec3573438a47eda | 94 | py | Python | skud/worker_kpp/apps.py | ToTHXaT/Paps_Lab | e91907ab2190d0f2cbb0c60e85d2c3ccff6d14b9 | [
"MIT"
] | null | null | null | skud/worker_kpp/apps.py | ToTHXaT/Paps_Lab | e91907ab2190d0f2cbb0c60e85d2c3ccff6d14b9 | [
"MIT"
] | null | null | null | skud/worker_kpp/apps.py | ToTHXaT/Paps_Lab | e91907ab2190d0f2cbb0c60e85d2c3ccff6d14b9 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class WorkerKppConfig(AppConfig):
name = 'worker_kpp'
| 15.666667 | 33 | 0.765957 | 11 | 94 | 6.454545 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159574 | 94 | 5 | 34 | 18.8 | 0.898734 | 0 | 0 | 0 | 0 | 0 | 0.106383 | 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 | 1 | 0 | 0 | 4 |
ba7d531cc9b6df26f500338601ab846f38ec239f | 24 | py | Python | app/api/v1/__init__.py | MetaGenScope/metagenscope-server | 609cd57c626c857c8efde8237a1f22f4d1e6065d | [
"MIT"
] | null | null | null | app/api/v1/__init__.py | MetaGenScope/metagenscope-server | 609cd57c626c857c8efde8237a1f22f4d1e6065d | [
"MIT"
] | 35 | 2019-12-09T19:29:10.000Z | 2020-02-02T19:06:53.000Z | app/api/v1/__init__.py | MetaGenScope/metagenscope-server | 609cd57c626c857c8efde8237a1f22f4d1e6065d | [
"MIT"
] | null | null | null | """API v1 blueprint."""
| 12 | 23 | 0.583333 | 3 | 24 | 4.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 0.125 | 24 | 1 | 24 | 24 | 0.619048 | 0.708333 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
ba804d8c3882b452dcea799c1daf15f8f73b5085 | 74 | py | Python | 02_linear_models/solutions/solution_04.py | jparrax/datascience_middle_course | 347dfd6f68fa0f90eac35e8154f3ea469ccbdea2 | [
"CC0-1.0"
] | 2 | 2021-11-10T10:13:25.000Z | 2022-01-12T08:11:59.000Z | 02_linear_models/solutions/solution_04.py | jparrax/datascience_middle_course | 347dfd6f68fa0f90eac35e8154f3ea469ccbdea2 | [
"CC0-1.0"
] | 2 | 2022-01-11T19:45:49.000Z | 2022-01-11T20:36:03.000Z | 02_linear_models/solutions/solution_04.py | jparrax/datascience_middle_course | 347dfd6f68fa0f90eac35e8154f3ea469ccbdea2 | [
"CC0-1.0"
] | 1 | 2022-01-12T08:12:11.000Z | 2022-01-12T08:12:11.000Z | import numpy as np
sample_weight = np.ones_like(y)
sample_weight[-1] = 10
| 18.5 | 31 | 0.756757 | 14 | 74 | 3.785714 | 0.785714 | 0.45283 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046875 | 0.135135 | 74 | 3 | 32 | 24.666667 | 0.78125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
ba89fecfea6d089c533432d81b465d2f559b6a70 | 380 | py | Python | runwate.py | jamesmunns/wate | 883358a86b91d7b4ed6e13b0ee4524b40bf20f8a | [
"MIT"
] | null | null | null | runwate.py | jamesmunns/wate | 883358a86b91d7b4ed6e13b0ee4524b40bf20f8a | [
"MIT"
] | null | null | null | runwate.py | jamesmunns/wate | 883358a86b91d7b4ed6e13b0ee4524b40bf20f8a | [
"MIT"
] | null | null | null | # Import the app object
import os
from wate import app
from wate.db_ops import DB_USER_KEY, DB_PASS_KEY, DB_HOST_KEY
# Check for database variables
assert DB_USER_KEY in os.environ, "Set the Database Username!"
assert DB_PASS_KEY in os.environ, "Set the Database Password!"
assert DB_HOST_KEY in os.environ, "Set the D... | 27.142857 | 62 | 0.771053 | 71 | 380 | 3.943662 | 0.380282 | 0.085714 | 0.075 | 0.15 | 0.3 | 0.3 | 0.3 | 0 | 0 | 0 | 0 | 0.012308 | 0.144737 | 380 | 13 | 63 | 29.230769 | 0.849231 | 0.142105 | 0 | 0 | 0 | 0 | 0.251553 | 0 | 0 | 0 | 0 | 0 | 0.428571 | 1 | 0 | true | 0.285714 | 0.428571 | 0 | 0.428571 | 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 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 4 |
ba93b67d37ac5f3d771bf9f0d42f00fe95cd0a8d | 598 | py | Python | apitest.py | ophcode/sormasapi | 01da5b362608568d8881af85177e1928a46b2715 | [
"CC0-1.0"
] | 4 | 2021-05-23T21:13:52.000Z | 2021-09-06T20:58:13.000Z | apitest.py | ophcode/sormasapi | 01da5b362608568d8881af85177e1928a46b2715 | [
"CC0-1.0"
] | null | null | null | apitest.py | ophcode/sormasapi | 01da5b362608568d8881af85177e1928a46b2715 | [
"CC0-1.0"
] | null | null | null | import sormasapi
import config
import os
from pprint import pprint
if __name__ == "__main__":
if config.useproxy:
os.environ['HTTPS_PROXY'] = config.proxy
#caseuuid = "XXXXXX-XXXXXX-XXXXXX-XXXXXXXX" #Informationen für einen Fall anzeigen
#case = sormasapi.query("cases",caseuuid)
#pprint(c... | 29.9 | 109 | 0.719064 | 66 | 598 | 6.378788 | 0.454545 | 0.171021 | 0.128266 | 0.185273 | 0.27791 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173913 | 598 | 19 | 110 | 31.473684 | 0.852227 | 0.617057 | 0 | 0 | 0 | 0 | 0.086758 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.571429 | 0 | 0.571429 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
bac9ce9f91197a5e9ef4e0354ccb314c1864b37f | 3,022 | py | Python | diploma/models.py | besmertn/diploma | 602ce9b9f4d1338d54d95769505c6315ddd14095 | [
"MIT"
] | null | null | null | diploma/models.py | besmertn/diploma | 602ce9b9f4d1338d54d95769505c6315ddd14095 | [
"MIT"
] | null | null | null | diploma/models.py | besmertn/diploma | 602ce9b9f4d1338d54d95769505c6315ddd14095 | [
"MIT"
] | null | null | null | import enum
from time import time
import jwt
from flask import current_app
from flask_login import UserMixin
from werkzeug.security import generate_password_hash, check_password_hash
from diploma import db, login
class User(UserMixin, db.Model):
id = db.Column(db.Integer, primary_key=True)
username = db.Col... | 30.22 | 101 | 0.664461 | 427 | 3,022 | 4.540984 | 0.262295 | 0.082517 | 0.103146 | 0.061372 | 0.297576 | 0.231563 | 0.147499 | 0.114492 | 0.114492 | 0.114492 | 0 | 0.021821 | 0.211449 | 3,022 | 99 | 102 | 30.525253 | 0.791859 | 0 | 0 | 0.133333 | 1 | 0 | 0.0546 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.146667 | false | 0.146667 | 0.093333 | 0.106667 | 0.826667 | 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 | 1 | 1 | 0 | 0 | 4 |
baf60167581e559aea73cfc313aca4d57667280a | 223 | py | Python | account/compat.py | AHDCreative/django_user_accounts | 5ab37c5298123189a29fb4c7048ea6a69e2509ff | [
"MIT"
] | null | null | null | account/compat.py | AHDCreative/django_user_accounts | 5ab37c5298123189a29fb4c7048ea6a69e2509ff | [
"MIT"
] | null | null | null | account/compat.py | AHDCreative/django_user_accounts | 5ab37c5298123189a29fb4c7048ea6a69e2509ff | [
"MIT"
] | null | null | null | import django
from django.urls import resolve, reverse, NoReverseMatch
def is_authenticated(user):
if django.VERSION >= (1, 10):
return user.is_authenthicated
else:
return user.is_authenthicated()
| 22.3 | 56 | 0.713004 | 27 | 223 | 5.777778 | 0.666667 | 0.128205 | 0.153846 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016949 | 0.206278 | 223 | 9 | 57 | 24.777778 | 0.864407 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.714286 | 0 | 1 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
242bce699f727104f368d0dfe825ca8fd58f4f5d | 850 | py | Python | components/modules/alliance/alliance_admin/urls.py | joshyka/fedn | 398f9bb9f913f640254294b97b118292af6996ce | [
"Apache-2.0"
] | null | null | null | components/modules/alliance/alliance_admin/urls.py | joshyka/fedn | 398f9bb9f913f640254294b97b118292af6996ce | [
"Apache-2.0"
] | null | null | null | components/modules/alliance/alliance_admin/urls.py | joshyka/fedn | 398f9bb9f913f640254294b97b118292af6996ce | [
"Apache-2.0"
] | null | null | null | from django.urls import path
from . import views
app_name = 'alliance_admin'
urlpatterns = [
path('projects/<user>/<project>/alliance_admin/', views.index, name='index'),
path('projects/<user>/<project>/alliance_admin/<str:uid>/logs', views.logs, name='logs'),
path('projects/<user>/<project>/alliance_admi... | 50 | 102 | 0.696471 | 112 | 850 | 5.196429 | 0.223214 | 0.201031 | 0.219931 | 0.316151 | 0.553265 | 0.553265 | 0.429553 | 0.429553 | 0 | 0 | 0 | 0 | 0.087059 | 850 | 16 | 103 | 53.125 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0.561176 | 0.496471 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.153846 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
244e423f656677181467f1339f9c7d08c01e8a65 | 3,836 | bzl | Python | example/third_party/org_codehaus_plexus.bzl | wix-playground/rules_maven_third_party | ff0b486df194779d7d8e6c9102cd12138e3305c3 | [
"Apache-2.0"
] | null | null | null | example/third_party/org_codehaus_plexus.bzl | wix-playground/rules_maven_third_party | ff0b486df194779d7d8e6c9102cd12138e3305c3 | [
"Apache-2.0"
] | null | null | null | example/third_party/org_codehaus_plexus.bzl | wix-playground/rules_maven_third_party | ff0b486df194779d7d8e6c9102cd12138e3305c3 | [
"Apache-2.0"
] | null | null | null | load("@rules_maven_third_party//:import_external.bzl", import_external = "import_external")
def dependencies():
import_external(
name = "org_codehaus_plexus_plexus_archiver",
artifact = "org.codehaus.plexus:plexus-archiver:3.4",
artifact_sha256 = "3c6611c98547dbf3f5125848c273ba719bc10df44e3... | 37.607843 | 93 | 0.686131 | 285 | 3,836 | 8.859649 | 0.238596 | 0.109307 | 0.148119 | 0.200396 | 0.397228 | 0.288713 | 0.158812 | 0.077624 | 0.077624 | 0.077624 | 0 | 0.224806 | 0.226538 | 3,836 | 101 | 94 | 37.980198 | 0.626222 | 0 | 0 | 0.372093 | 0 | 0.011628 | 0.575078 | 0.551877 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011628 | true | 0 | 0.104651 | 0 | 0.116279 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
79e5dde182344db0587b691ea8f9dbb38fe89ed6 | 71,297 | py | Python | java/JavaParserModifiedListener.py | sriniiyer/concode | 864e30807f6988731ac3b4b98af6562c18bb42ff | [
"MIT"
] | 48 | 2018-09-13T15:42:30.000Z | 2022-03-14T06:45:48.000Z | java/JavaParserModifiedListener.py | sriniiyer/concode | 864e30807f6988731ac3b4b98af6562c18bb42ff | [
"MIT"
] | 5 | 2021-01-25T13:58:32.000Z | 2022-01-29T19:02:36.000Z | java/JavaParserModifiedListener.py | sriniiyer/concode | 864e30807f6988731ac3b4b98af6562c18bb42ff | [
"MIT"
] | 12 | 2018-10-05T20:12:38.000Z | 2021-12-13T13:50:25.000Z | # Generated from ./JavaParserModified.g4 by ANTLR 4.6
from antlr4 import *
if __name__ is not None and "." in __name__:
from .JavaParserModified import JavaParserModified
else:
from JavaParserModified import JavaParserModified
# This class defines a complete listener for a parse tree produced by JavaParserModi... | 35.018173 | 118 | 0.755993 | 7,586 | 71,297 | 6.999736 | 0.079752 | 0.05096 | 0.084934 | 0.152881 | 0.880546 | 0.691544 | 0.690829 | 0.556911 | 0.329962 | 0.032411 | 0 | 0.020977 | 0.186964 | 71,297 | 2,035 | 119 | 35.035381 | 0.895061 | 0.390311 | 0 | 0.496689 | 1 | 0 | 0.000023 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.496689 | false | 0.496689 | 0.005519 | 0 | 0.503311 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 4 |
79fb8860e938c069607aef67758b46ea3bb017c3 | 87 | py | Python | routes/apps.py | berpress/django_train | 90fefe553754316a04c85a550f0d44306e5d3e7b | [
"Apache-2.0"
] | null | null | null | routes/apps.py | berpress/django_train | 90fefe553754316a04c85a550f0d44306e5d3e7b | [
"Apache-2.0"
] | 6 | 2021-03-19T04:10:40.000Z | 2021-09-22T19:07:30.000Z | routes/apps.py | berpress/django_train | 90fefe553754316a04c85a550f0d44306e5d3e7b | [
"Apache-2.0"
] | null | null | null | from django.apps import AppConfig
class RoutesConfig(AppConfig):
name = "routes"
| 14.5 | 33 | 0.747126 | 10 | 87 | 6.5 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172414 | 87 | 5 | 34 | 17.4 | 0.902778 | 0 | 0 | 0 | 0 | 0 | 0.068966 | 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 | 1 | 0 | 0 | 4 |
032044c1258a1667cdd37807d09d68065eeb6f5f | 40 | py | Python | celldeath/__init__.py | sgmiriuka/celldeath | 0b5062117006fa1ca5170ce1397bfafab51a0143 | [
"MIT"
] | 2 | 2022-01-10T02:45:57.000Z | 2022-01-10T08:25:41.000Z | celldeath/__init__.py | sgmiriuka/celldeath | 0b5062117006fa1ca5170ce1397bfafab51a0143 | [
"MIT"
] | null | null | null | celldeath/__init__.py | sgmiriuka/celldeath | 0b5062117006fa1ca5170ce1397bfafab51a0143 | [
"MIT"
] | 1 | 2021-01-13T16:45:52.000Z | 2021-01-13T16:45:52.000Z | # __INIT__.PY
__version__='v1.0.0'
| 5 | 20 | 0.625 | 6 | 40 | 2.833333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09375 | 0.2 | 40 | 7 | 21 | 5.714286 | 0.4375 | 0.275 | 0 | 0 | 0 | 0 | 0.24 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
03391e357623e8007403fdd87a45ad5ed00196c3 | 133 | py | Python | app/load.py | zxftr45/rr_ml_workshop_19 | 29dce64fdcf3d15157470dc9d2a4fa7edca3bf4c | [
"MIT"
] | null | null | null | app/load.py | zxftr45/rr_ml_workshop_19 | 29dce64fdcf3d15157470dc9d2a4fa7edca3bf4c | [
"MIT"
] | 6 | 2020-01-28T22:51:13.000Z | 2021-06-08T20:07:25.000Z | app/load.py | zxftr45/rr_ml_workshop_19 | 29dce64fdcf3d15157470dc9d2a4fa7edca3bf4c | [
"MIT"
] | null | null | null | from app.services.image_recognition_service import ImageRecognitionService
if __name__ == "__main__":
ImageRecognitionService()
| 26.6 | 74 | 0.827068 | 12 | 133 | 8.333333 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 133 | 4 | 75 | 33.25 | 0.840336 | 0 | 0 | 0 | 0 | 0 | 0.06015 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
0362afc6bd9f5f4a73d8a8fba8b1538ef026bb7c | 203 | py | Python | demo_app/models.py | Papagoat/django-tinymce-demo | 0aade5230d73878593fc553e5a29eeaee197ac38 | [
"MIT"
] | null | null | null | demo_app/models.py | Papagoat/django-tinymce-demo | 0aade5230d73878593fc553e5a29eeaee197ac38 | [
"MIT"
] | null | null | null | demo_app/models.py | Papagoat/django-tinymce-demo | 0aade5230d73878593fc553e5a29eeaee197ac38 | [
"MIT"
] | null | null | null | from django.db import models
from tinymce.models import HTMLField
# Create your models here.
class Demo(models.Model):
demo_title = models.CharField(max_length=200)
demo_textfield = HTMLField()
| 25.375 | 49 | 0.773399 | 28 | 203 | 5.5 | 0.678571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017341 | 0.147783 | 203 | 7 | 50 | 29 | 0.872832 | 0.118227 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
037659d0862e72baf660b1d7a47b9621f22abb19 | 277 | py | Python | usr/share/pyshared/ajenti/usersync/base.py | lupyuen/RaspberryPiImage | 664e8a74b4628d710feab5582ef59b344b9ffddd | [
"Apache-2.0"
] | 7 | 2016-03-07T02:07:21.000Z | 2022-01-21T02:22:41.000Z | usr/share/pyshared/ajenti/usersync/base.py | lupyuen/RaspberryPiImage | 664e8a74b4628d710feab5582ef59b344b9ffddd | [
"Apache-2.0"
] | null | null | null | usr/share/pyshared/ajenti/usersync/base.py | lupyuen/RaspberryPiImage | 664e8a74b4628d710feab5582ef59b344b9ffddd | [
"Apache-2.0"
] | 8 | 2016-06-14T06:01:11.000Z | 2020-04-22T09:21:44.000Z | from ajenti.api import *
@interface
class UserSyncProvider (BasePlugin):
allows_renaming = False
syncs_root = False
def test(self):
return False
def check_password(self, username, password):
return False
def sync(self):
pass | 17.3125 | 49 | 0.646209 | 31 | 277 | 5.677419 | 0.709677 | 0.136364 | 0.159091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.285199 | 277 | 16 | 50 | 17.3125 | 0.888889 | 0 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0.181818 | 0.090909 | 0.181818 | 0.818182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
0641e191af33ccf15af34f61bf76076eaf5a8ff7 | 1,167 | py | Python | samples/data-serialization/ds-python-grpc/Notification.py | obecto/perper | ce25abde413bdb4c054a06d810939e98fac04d62 | [
"MIT"
] | 24 | 2019-11-11T13:26:12.000Z | 2022-03-18T23:38:07.000Z | samples/data-serialization/ds-python-grpc/Notification.py | obecto/perper | ce25abde413bdb4c054a06d810939e98fac04d62 | [
"MIT"
] | 76 | 2020-01-25T16:48:37.000Z | 2022-01-03T09:26:11.000Z | samples/data-serialization/ds-python-grpc/Notification.py | obecto/perper | ce25abde413bdb4c054a06d810939e98fac04d62 | [
"MIT"
] | 4 | 2020-06-25T13:21:37.000Z | 2021-11-03T09:05:11.000Z | from collections import OrderedDict
from pyignite import GenericObjectMeta
from pyignite.datatypes import LongObject, IntObject, String, BoolObject
class Notification(metaclass=GenericObjectMeta, schema=OrderedDict()):
pass
class StreamItemNotification(metaclass=GenericObjectMeta, schema=OrderedDict([
('cache... | 25.369565 | 81 | 0.700943 | 94 | 1,167 | 8.702128 | 0.361702 | 0.190709 | 0.234719 | 0.315403 | 0.129584 | 0.129584 | 0 | 0 | 0 | 0 | 0 | 0 | 0.156812 | 1,167 | 46 | 82 | 25.369565 | 0.831301 | 0 | 0 | 0.447368 | 0 | 0 | 0.118151 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.157895 | 0.078947 | 0 | 0.236842 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
064e387455da1cfbdb8726be307aee2a6f566d8f | 190 | py | Python | Scripts/renderMonkey_autoFocus.py | ShawnFrueh/mecco_renderMonkey | 1b80293c45c320fc1276092691e4798e17675977 | [
"MIT"
] | null | null | null | Scripts/renderMonkey_autoFocus.py | ShawnFrueh/mecco_renderMonkey | 1b80293c45c320fc1276092691e4798e17675977 | [
"MIT"
] | null | null | null | Scripts/renderMonkey_autoFocus.py | ShawnFrueh/mecco_renderMonkey | 1b80293c45c320fc1276092691e4798e17675977 | [
"MIT"
] | null | null | null | #python
import lx
lx.eval("dialog.setup info")
lx.eval("dialog.title {Autofocus}")
lx.eval("dialog.msg {To autofocus, mouse over the area of focus and hit ctrl+F.}")
lx.eval("dialog.open")
| 23.75 | 82 | 0.721053 | 33 | 190 | 4.151515 | 0.666667 | 0.175182 | 0.350365 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.110526 | 190 | 7 | 83 | 27.142857 | 0.810651 | 0.031579 | 0 | 0 | 0 | 0 | 0.672131 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.2 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
ebeb228af4e9066e2d060e5ed106332a49cfe98f | 224 | py | Python | models/__init__.py | AdrianGilGamboa/uposports | 298ab77f4cebb42d85744d3bd77740f35bc0196c | [
"MIT"
] | null | null | null | models/__init__.py | AdrianGilGamboa/uposports | 298ab77f4cebb42d85744d3bd77740f35bc0196c | [
"MIT"
] | null | null | null | models/__init__.py | AdrianGilGamboa/uposports | 298ab77f4cebb42d85744d3bd77740f35bc0196c | [
"MIT"
] | 1 | 2020-11-03T19:30:46.000Z | 2020-11-03T19:30:46.000Z | # -*- coding: utf-8 -*-
from . import abono
from . import cliente
from . import empleado
from . import instalacion
from . import material
from . import pago
from . import reserva
from . import tarjeta
from . import efectivo | 20.363636 | 25 | 0.736607 | 30 | 224 | 5.5 | 0.466667 | 0.545455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005464 | 0.183036 | 224 | 11 | 26 | 20.363636 | 0.896175 | 0.09375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 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 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
ebf01417aad536da61d87ee76d091ccb426fed91 | 194 | py | Python | apps/s3/apps.py | drtnn/polyrobot__backend | 65b45fc55e338e8a83296211d782b218d785400b | [
"Apache-2.0"
] | null | null | null | apps/s3/apps.py | drtnn/polyrobot__backend | 65b45fc55e338e8a83296211d782b218d785400b | [
"Apache-2.0"
] | 1 | 2022-02-08T18:33:28.000Z | 2022-02-08T18:33:28.000Z | apps/s3/apps.py | drtnn/polyrobot__backend | 65b45fc55e338e8a83296211d782b218d785400b | [
"Apache-2.0"
] | null | null | null | from django.apps import AppConfig
class S3Config(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'apps.s3'
def ready(self):
import apps.s3.signals
| 19.4 | 56 | 0.701031 | 25 | 194 | 5.36 | 0.76 | 0.089552 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019355 | 0.201031 | 194 | 9 | 57 | 21.555556 | 0.845161 | 0 | 0 | 0 | 0 | 0 | 0.185567 | 0.149485 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | 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 | 1 | 0 | 0 | 4 |
ebf840bddae1ed00c54a19f94ac4fe83e2f3f00f | 80 | py | Python | src/telliot/reporter_plugins/__init__.py | oraclown/pytelliot-test | 0f44e5f6d0ef3fe132b2dc0b7fd64c71b10556b0 | [
"MIT"
] | 2 | 2021-09-07T15:14:48.000Z | 2021-09-07T15:18:12.000Z | src/telliot/reporter_plugins/__init__.py | oraclown/pytelliot-test | 0f44e5f6d0ef3fe132b2dc0b7fd64c71b10556b0 | [
"MIT"
] | null | null | null | src/telliot/reporter_plugins/__init__.py | oraclown/pytelliot-test | 0f44e5f6d0ef3fe132b2dc0b7fd64c71b10556b0 | [
"MIT"
] | 1 | 2021-09-02T20:53:58.000Z | 2021-09-02T20:53:58.000Z | """Subpackage for TellorDAO-supported Reporters used by
the `telliot` CLI."""
| 26.666667 | 56 | 0.7375 | 10 | 80 | 5.9 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1375 | 80 | 2 | 57 | 40 | 0.855072 | 0.8875 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
ebff6adb05cba645c2ef8708333a582d29675618 | 8,934 | py | Python | jskit/encoders/models.py | bharat-saini-bcs/jaseci | c4263bd0323cfee0fc1d8e783681ca203d5a4981 | [
"MIT"
] | null | null | null | jskit/encoders/models.py | bharat-saini-bcs/jaseci | c4263bd0323cfee0fc1d8e783681ca203d5a4981 | [
"MIT"
] | null | null | null | jskit/encoders/models.py | bharat-saini-bcs/jaseci | c4263bd0323cfee0fc1d8e783681ca203d5a4981 | [
"MIT"
] | null | null | null |
import torch
import torch.nn as nn
from transformers import BertModel
import torch.nn.functional as F
def dot_attention(q, k, v, v_mask=None, dropout=None):
attention_weights = torch.matmul(q, k.transpose(-1, -2))
if v_mask is not None:
extended_v_mask = (1.0 - v_mask.unsqueeze(1)) * -100000.0
attention_w... | 54.145455 | 195 | 0.748825 | 1,278 | 8,934 | 4.875587 | 0.104069 | 0.050072 | 0.057776 | 0.04943 | 0.771465 | 0.74675 | 0.739689 | 0.732146 | 0.711282 | 0.594768 | 0 | 0.013528 | 0.14775 | 8,934 | 165 | 196 | 54.145455 | 0.804833 | 0.049138 | 0 | 0.567164 | 0 | 0 | 0.042134 | 0.015225 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037313 | false | 0 | 0.029851 | 0 | 0.134328 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 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 | 4 |
2313f06b791677cf9d230847c6acd7b9e11c7c9b | 15 | py | Python | src/charter/__init__.py | paw-lu/charter | ad36fbc1589b0e77af102b2b92873b7b412ef4eb | [
"MIT"
] | null | null | null | src/charter/__init__.py | paw-lu/charter | ad36fbc1589b0e77af102b2b92873b7b412ef4eb | [
"MIT"
] | null | null | null | src/charter/__init__.py | paw-lu/charter | ad36fbc1589b0e77af102b2b92873b7b412ef4eb | [
"MIT"
] | null | null | null | """Charter."""
| 7.5 | 14 | 0.466667 | 1 | 15 | 7 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 15 | 1 | 15 | 15 | 0.5 | 0.533333 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
231828544152223d5c0082934e6bb3ba178e118b | 153 | py | Python | models/__init__.py | hmartelb/speech-denoising | 78424200d16215c100d9eb47e73dfc67845a0fbf | [
"MIT"
] | 4 | 2021-06-20T10:31:50.000Z | 2022-03-15T01:19:14.000Z | models/__init__.py | hmartelb/speech-denoising | 78424200d16215c100d9eb47e73dfc67845a0fbf | [
"MIT"
] | null | null | null | models/__init__.py | hmartelb/speech-denoising | 78424200d16215c100d9eb47e73dfc67845a0fbf | [
"MIT"
] | 4 | 2021-08-14T19:06:13.000Z | 2022-02-25T05:09:35.000Z | # from .DWaveNet import DWaveNet
from .UNet import UNet
from .UNetDNP import UNetDNP
from .TransUNet import TransUNet
# from .Sepformer import Sepformer
| 25.5 | 34 | 0.810458 | 20 | 153 | 6.2 | 0.35 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.143791 | 153 | 5 | 35 | 30.6 | 0.946565 | 0.411765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
23432934a599455bca0cca3050a310f0a6906fcb | 48 | py | Python | code/abc099_a_04.py | KoyanagiHitoshi/AtCoder | 731892543769b5df15254e1f32b756190378d292 | [
"MIT"
] | 3 | 2019-08-16T16:55:48.000Z | 2021-04-11T10:21:40.000Z | code/abc099_a_04.py | KoyanagiHitoshi/AtCoder | 731892543769b5df15254e1f32b756190378d292 | [
"MIT"
] | null | null | null | code/abc099_a_04.py | KoyanagiHitoshi/AtCoder | 731892543769b5df15254e1f32b756190378d292 | [
"MIT"
] | null | null | null | n=int(input())
print("ABC" if n<1000 else "ABD") | 24 | 33 | 0.645833 | 10 | 48 | 3.1 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093023 | 0.104167 | 48 | 2 | 33 | 24 | 0.627907 | 0 | 0 | 0 | 0 | 0 | 0.122449 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 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 | 1 | 0 | 4 |
2358027df1a7aa24c833e401869f365ea0b0cea3 | 168 | py | Python | app/get_keywords.py | sy-app/ll-now-post-tweet | cfde28735a14f40d52b5d670169f6a834e558f6e | [
"MIT"
] | 3 | 2021-08-19T11:32:16.000Z | 2021-12-14T01:57:31.000Z | app/get_keywords.py | sy-app/ll-now-generate-image | 4e48f22a5456f1b005f0ae22c5e1a592a0f0a6bf | [
"MIT"
] | null | null | null | app/get_keywords.py | sy-app/ll-now-generate-image | 4e48f22a5456f1b005f0ae22c5e1a592a0f0a6bf | [
"MIT"
] | null | null | null | def get_keywords(tweets_features):
query = tweets_features['search_metadata']['query']
keywords = query.split(' -filter')[0].split(' OR ')
return keywords
| 28 | 55 | 0.690476 | 20 | 168 | 5.6 | 0.65 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007042 | 0.154762 | 168 | 5 | 56 | 33.6 | 0.78169 | 0 | 0 | 0 | 0 | 0 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
23824a2155ca9120ee5b3b4c998fbcfcd139060c | 96 | py | Python | .definitions.py | nebiolabs/tasmanian | d0df15287617c03ecda6ad31b75680dd14e303ea | [
"Xnet",
"X11"
] | 1 | 2020-04-08T09:52:14.000Z | 2020-04-08T09:52:14.000Z | .definitions.py | nebiolabs/tasmanian | d0df15287617c03ecda6ad31b75680dd14e303ea | [
"Xnet",
"X11"
] | 3 | 2021-02-19T15:46:01.000Z | 2021-06-22T18:45:11.000Z | .definitions.py | nebiolabs/tasmanian-mismatch | 65baf0d777f01b8903247775eec4bf7b17fe60d6 | [
"Xnet",
"X11"
] | null | null | null | #!/bin/python
import os
ROOT_DIR = os.path.dirname(os.path.abspath(__file__))
print(ROOT_DIR)
| 13.714286 | 53 | 0.75 | 16 | 96 | 4.125 | 0.6875 | 0.212121 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09375 | 96 | 6 | 54 | 16 | 0.758621 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 4 |
88d6e9d1bd9c6c1d13a63a95048c2e86b97457ad | 3,709 | py | Python | serial_pc_control/cmds_mouse.py | carlosperate/python-serial-pc-control | 1389dac2ad33255dbd0edad565ebc498dc515a44 | [
"MIT"
] | 6 | 2021-05-04T17:48:34.000Z | 2022-03-01T01:44:05.000Z | serial_pc_control/cmds_mouse.py | carlosperate/python-serial-pc-control | 1389dac2ad33255dbd0edad565ebc498dc515a44 | [
"MIT"
] | 2 | 2021-12-31T02:16:47.000Z | 2022-03-01T17:54:04.000Z | serial_pc_control/cmds_mouse.py | carlosperate/serial-pc-control | 7c9c18bcbf61773d9afefd4677c14cd4e350ed8b | [
"MIT"
] | 2 | 2021-02-05T17:51:57.000Z | 2021-12-23T10:58:44.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright (c) 2020 Carlos Pereira Atencio
# SPDX-License-Identifier: MIT
"""Functions to run mouse commands on the host PC."""
import pyautogui # type: ignore
def init() -> None:
"""Configure pyautogui for smooth mouse movement."""
pyautogui.FAILSAFE = False
... | 29.436508 | 78 | 0.661903 | 535 | 3,709 | 4.523364 | 0.203738 | 0.046281 | 0.079339 | 0.046281 | 0.767769 | 0.767769 | 0.700826 | 0.67686 | 0.663636 | 0.663636 | 0 | 0.014747 | 0.232138 | 3,709 | 125 | 79 | 29.672 | 0.834972 | 0.445133 | 0 | 0.346939 | 0 | 0 | 0.05612 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.22449 | false | 0 | 0.020408 | 0 | 0.244898 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.