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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bffaabea994f7d8cdb71dc677683d669f84c6469 | 328 | py | Python | tests/rest_api_connection.py | lmanzurv/django_proxy_server | 20304829ef1ddcbb281e1373d308e5fa826fcd39 | [
"Apache-2.0"
] | 11 | 2015-07-18T02:23:43.000Z | 2021-11-15T11:43:21.000Z | tests/rest_api_connection.py | lmanzurv/django_proxy_server | 20304829ef1ddcbb281e1373d308e5fa826fcd39 | [
"Apache-2.0"
] | null | null | null | tests/rest_api_connection.py | lmanzurv/django_proxy_server | 20304829ef1ddcbb281e1373d308e5fa826fcd39 | [
"Apache-2.0"
] | 5 | 2015-02-24T15:37:36.000Z | 2021-10-10T16:42:22.000Z | # -*- encoding: utf-8 -*-
from proxy_server.backend_services import invoke_backend_service_as_proxy
from proxy_server.helpers import generate_service_url
def renew_session(request):
response = invoke_backend_service_as_proxy(request, 'POST', generate_service_url('/renew_session'), response_token=True)
return r... | 41 | 124 | 0.817073 | 44 | 328 | 5.681818 | 0.545455 | 0.072 | 0.12 | 0.176 | 0.216 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003378 | 0.097561 | 328 | 7 | 125 | 46.857143 | 0.841216 | 0.070122 | 0 | 0 | 1 | 0 | 0.059406 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
87378d5756fc3ce8622b0821045a5f1a8c0b70a1 | 75 | py | Python | section-01/2-indentation.py | mugan86/bootcamp-basic-to-expert-from-scratch | 028aab243386e5a75d84aea319c480ec54913c53 | [
"MIT"
] | 31 | 2022-01-19T18:33:40.000Z | 2022-03-29T16:24:44.000Z | section-01/2-indentation.py | mugan86/bootcamp-basic-to-expert-from-scratch | 028aab243386e5a75d84aea319c480ec54913c53 | [
"MIT"
] | 1 | 2022-02-09T17:47:17.000Z | 2022-02-09T17:47:17.000Z | section-01/2-indentation.py | mugan86/bootcamp-basic-to-expert-from-scratch | 028aab243386e5a75d84aea319c480ec54913c53 | [
"MIT"
] | 4 | 2022-01-20T15:41:09.000Z | 2022-03-29T16:25:08.000Z | if 5 == 2:
print("aaaa")
print("sjjdjdd")
else :
print("else")
| 12.5 | 20 | 0.506667 | 10 | 75 | 3.8 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037037 | 0.28 | 75 | 5 | 21 | 15 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0.6 | 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 |
874a712027e1ba793c1a78ad77bea8e3e134681d | 394 | py | Python | Exam-19marchMorning/hourglass.py | nikolayvutov/Python | 55163496dac452a7110b7f76edc6894ee195f1fe | [
"MIT"
] | null | null | null | Exam-19marchMorning/hourglass.py | nikolayvutov/Python | 55163496dac452a7110b7f76edc6894ee195f1fe | [
"MIT"
] | null | null | null | Exam-19marchMorning/hourglass.py | nikolayvutov/Python | 55163496dac452a7110b7f76edc6894ee195f1fe | [
"MIT"
] | null | null | null | n = int(input())
print('*' * (2*n+1))
print('.' + '*' + ' ' * (2*n - 3) + '*' + '.')
for i in range(1, n-1):
print('.' + '.' * i + '*' + '@' * ((2*n-3) -2*i) + '*' + '.' * i + '.')
print('.' * n +'*' + '.' * n)
for i in range(1, n-1):
print('.' * ((n)-i) + '*' + ' ' * (i-1) + '@' + ' ' * (i-1) + '*' + '.' * ... | 30.307692 | 86 | 0.256345 | 53 | 394 | 1.90566 | 0.207547 | 0.09901 | 0.277228 | 0.158416 | 0.376238 | 0.376238 | 0.376238 | 0.376238 | 0 | 0 | 0 | 0.058824 | 0.266497 | 394 | 13 | 87 | 30.307692 | 0.290657 | 0 | 0 | 0.4 | 0 | 0 | 0.073418 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.7 | 0 | 0 | 1 | null | 0 | 1 | 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 | 0 | 0 | 1 | 0 | 4 |
87588e1667869cebbe86c48760b43b80b94830cc | 109 | py | Python | torchaddons/__init__.py | jakkes/torchaddons | 3a93b4c3ad026e208a3836c61159d9fd54694dd2 | [
"MIT"
] | null | null | null | torchaddons/__init__.py | jakkes/torchaddons | 3a93b4c3ad026e208a3836c61159d9fd54694dd2 | [
"MIT"
] | null | null | null | torchaddons/__init__.py | jakkes/torchaddons | 3a93b4c3ad026e208a3836c61159d9fd54694dd2 | [
"MIT"
] | null | null | null | __version__ = "<%<%VERSION%>%>"
from . import random, distributions
__all__ = ["random", "distributions"]
| 15.571429 | 37 | 0.669725 | 9 | 109 | 7.222222 | 0.666667 | 0.584615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137615 | 109 | 6 | 38 | 18.166667 | 0.691489 | 0 | 0 | 0 | 0 | 0 | 0.311927 | 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 |
8764e95dc2995f396dd9d9484303033ca412a18c | 95 | py | Python | onlineshopping/myshopping/apps.py | SarahMohamedAbdAlkader/DjangoEcommerceProject | edfe3071e5ee301702ff8e55a513efbb8feadab8 | [
"MIT"
] | 1 | 2021-01-27T03:20:45.000Z | 2021-01-27T03:20:45.000Z | onlineshopping/myshopping/apps.py | SarahMohamedAbdAlkader/DjangoEcommerceProject | edfe3071e5ee301702ff8e55a513efbb8feadab8 | [
"MIT"
] | null | null | null | onlineshopping/myshopping/apps.py | SarahMohamedAbdAlkader/DjangoEcommerceProject | edfe3071e5ee301702ff8e55a513efbb8feadab8 | [
"MIT"
] | 1 | 2020-03-24T21:28:31.000Z | 2020-03-24T21:28:31.000Z | from django.apps import AppConfig
class MyshoppingConfig(AppConfig):
name = 'myshopping'
| 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 |
5e487cd4a9e361fb6da671d9ac1bc5ecbad5a857 | 2,449 | py | Python | third_party/ibis/ibis_oracle/expr/types.py | ajw0100/professional-services-data-validator | b1dc82adf92adf19702f5ef41590c62c7c128c74 | [
"Apache-2.0"
] | 167 | 2021-05-27T19:43:43.000Z | 2022-03-16T02:42:30.000Z | third_party/ibis/ibis_oracle/expr/types.py | ajw0100/professional-services-data-validator | b1dc82adf92adf19702f5ef41590c62c7c128c74 | [
"Apache-2.0"
] | 110 | 2021-05-27T14:49:09.000Z | 2022-03-31T11:10:41.000Z | third_party/ibis/ibis_oracle/expr/types.py | ajw0100/professional-services-data-validator | b1dc82adf92adf19702f5ef41590c62c7c128c74 | [
"Apache-2.0"
] | 32 | 2021-06-23T22:00:59.000Z | 2022-03-30T03:32:20.000Z | # Copyright 2020 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, soft... | 20.754237 | 74 | 0.641486 | 282 | 2,449 | 5.570922 | 0.375887 | 0.106938 | 0.160407 | 0.213877 | 0.408657 | 0.283896 | 0.129854 | 0 | 0 | 0 | 0 | 0.065815 | 0.16864 | 2,449 | 117 | 75 | 20.931624 | 0.705796 | 0.476113 | 0 | 0.488372 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.488372 | 0.023256 | 0 | 0.511628 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
5e4cdbf222a891506affbf5e92d39569a3efbdaf | 68 | py | Python | setup.py | audax/pypo | 58ce116bf76d50faa34977a80075d488736ffcc8 | [
"Apache-2.0"
] | 25 | 2015-02-12T06:45:24.000Z | 2021-12-30T18:03:10.000Z | setup.py | audax/pypo | 58ce116bf76d50faa34977a80075d488736ffcc8 | [
"Apache-2.0"
] | 4 | 2015-01-19T13:38:04.000Z | 2016-04-17T16:06:46.000Z | setup.py | audax/pypo | 58ce116bf76d50faa34977a80075d488736ffcc8 | [
"Apache-2.0"
] | 1 | 2016-08-15T01:27:41.000Z | 2016-08-15T01:27:41.000Z | from distutils.core import setup
setup(name='pypo', version='0.3')
| 17 | 33 | 0.735294 | 11 | 68 | 4.545455 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032787 | 0.102941 | 68 | 3 | 34 | 22.666667 | 0.786885 | 0 | 0 | 0 | 0 | 0 | 0.102941 | 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 |
5e6e3f01da7dc4c45d86695f003343580aed5374 | 168 | py | Python | scripts/exercicios/aula019.py | RuanBarretodosSantos/python | 4142ccd71c4ffb4bb6a10d61c85f612758f5bb41 | [
"MIT"
] | null | null | null | scripts/exercicios/aula019.py | RuanBarretodosSantos/python | 4142ccd71c4ffb4bb6a10d61c85f612758f5bb41 | [
"MIT"
] | null | null | null | scripts/exercicios/aula019.py | RuanBarretodosSantos/python | 4142ccd71c4ffb4bb6a10d61c85f612758f5bb41 | [
"MIT"
] | null | null | null | dados = {'nome':'Pedro', 'idade':25}
dados['sexo'] = 'M'
print(dados.values())
print(dados.keys())
print('-=' * 30)
for k, v in dados.items():
print(f'O {k} é {v}') | 24 | 36 | 0.565476 | 28 | 168 | 3.392857 | 0.678571 | 0.210526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027778 | 0.142857 | 168 | 7 | 37 | 24 | 0.631944 | 0 | 0 | 0 | 0 | 0 | 0.189349 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.571429 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
5e8bb95c64206721a8997ffc913f64acae891ff5 | 667 | py | Python | cool_django_auth_ldap/admin.py | NoNameItem/cool-django-auth-ldap | 58920e50bc85b7ffa9337468e5e6256dfcfd27e7 | [
"MIT"
] | null | null | null | cool_django_auth_ldap/admin.py | NoNameItem/cool-django-auth-ldap | 58920e50bc85b7ffa9337468e5e6256dfcfd27e7 | [
"MIT"
] | 3 | 2019-11-17T16:52:56.000Z | 2020-01-24T12:16:59.000Z | cool_django_auth_ldap/admin.py | NoNameItem/cool-django-auth-ldap | 58920e50bc85b7ffa9337468e5e6256dfcfd27e7 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import GroupMapping
class GroupMappingAdmin(admin.ModelAdmin):
def has_view_permission(self, request, obj=None):
return request.user.is_staff
def has_add_permission(self, request):
return request.user.is_staff
def has_change_permission(self,... | 25.653846 | 55 | 0.74063 | 86 | 667 | 5.523256 | 0.383721 | 0.063158 | 0.221053 | 0.2 | 0.568421 | 0.568421 | 0.568421 | 0.555789 | 0.366316 | 0.366316 | 0 | 0 | 0.176912 | 667 | 25 | 56 | 26.68 | 0.865209 | 0 | 0 | 0.333333 | 0 | 0 | 0.04048 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.133333 | 0.333333 | 0.933333 | 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 |
5ecddc0cf60b664c2ce0cdadface14d9706be802 | 1,181 | py | Python | IntroProPython/aula10-poo/nome.py | SweydAbdul/estudos-python | b052708d0566a0afb9a1c04d035467d45f820879 | [
"MIT"
] | null | null | null | IntroProPython/aula10-poo/nome.py | SweydAbdul/estudos-python | b052708d0566a0afb9a1c04d035467d45f820879 | [
"MIT"
] | null | null | null | IntroProPython/aula10-poo/nome.py | SweydAbdul/estudos-python | b052708d0566a0afb9a1c04d035467d45f820879 | [
"MIT"
] | null | null | null | from functools import total_ordering
@total_ordering # responsavel por implementar todos metodos de comparacao
class Nome:
def __init__(self, nome):
self.nome = nome # 1
def __str__(self):
return self.nome
def __repr__(self):
return 'Classe {3} em 0x{0:x} Nome: {1} Chave: {2}>'\... | 28.804878 | 80 | 0.627434 | 151 | 1,181 | 4.602649 | 0.470199 | 0.092086 | 0.080576 | 0.051799 | 0.086331 | 0.086331 | 0 | 0 | 0 | 0 | 0 | 0.008121 | 0.27011 | 1,181 | 40 | 81 | 29.525 | 0.798144 | 0.15834 | 0 | 0.064516 | 0 | 0.032258 | 0.108409 | 0 | 0 | 0 | 0 | 0.025 | 0 | 1 | 0.290323 | false | 0 | 0.032258 | 0.16129 | 0.580645 | 0.064516 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
5ed5c6b66413a8599167db632aa941151b5b09e0 | 31 | py | Python | autokey/CapsCtrl/caps_2.py | TeX2e/dotfiles | 4e39b59623067fcb09ceaa7f4892ff7a2b285374 | [
"WTFPL"
] | 1 | 2017-04-17T16:24:23.000Z | 2017-04-17T16:24:23.000Z | autokey/CapsCtrl/caps_2.py | TeX2e/dotfiles | 4e39b59623067fcb09ceaa7f4892ff7a2b285374 | [
"WTFPL"
] | null | null | null | autokey/CapsCtrl/caps_2.py | TeX2e/dotfiles | 4e39b59623067fcb09ceaa7f4892ff7a2b285374 | [
"WTFPL"
] | 1 | 2021-02-23T07:51:32.000Z | 2021-02-23T07:51:32.000Z | keyboard.send_keys("<ctrl>+2")
| 15.5 | 30 | 0.709677 | 5 | 31 | 4.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033333 | 0.032258 | 31 | 1 | 31 | 31 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0.258065 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
0d60e436e3472e0cb84c3483e813b031440a91cc | 98 | py | Python | external_apps/django-piston/tests/test_project/apps/testapp/forms.py | spreeker/democracygame | 525139955cb739c295051f317ab670049511bcf8 | [
"BSD-3-Clause"
] | 2 | 2016-05-09T04:57:34.000Z | 2017-03-03T14:22:24.000Z | external_apps/django-piston/tests/test_project/apps/testapp/forms.py | spreeker/democracygame | 525139955cb739c295051f317ab670049511bcf8 | [
"BSD-3-Clause"
] | null | null | null | external_apps/django-piston/tests/test_project/apps/testapp/forms.py | spreeker/democracygame | 525139955cb739c295051f317ab670049511bcf8 | [
"BSD-3-Clause"
] | null | null | null | from django import forms
class EchoForm(forms.Form):
msg = forms.CharField(max_length=128)
| 14 | 41 | 0.744898 | 14 | 98 | 5.142857 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036585 | 0.163265 | 98 | 6 | 42 | 16.333333 | 0.841463 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0d62dda3e3ec5e7d0811d9b16ec4951519fec26a | 101 | py | Python | src/sp_tool/__init__.py | mlasevich/sharepoint-tool | a67fb312068265d9a185b8150ddfe26b13e7f39d | [
"Apache-2.0"
] | null | null | null | src/sp_tool/__init__.py | mlasevich/sharepoint-tool | a67fb312068265d9a185b8150ddfe26b13e7f39d | [
"Apache-2.0"
] | 1 | 2021-11-01T15:41:06.000Z | 2021-11-01T15:41:06.000Z | src/sp_tool/__init__.py | mlasevich/sharepoint-tool | a67fb312068265d9a185b8150ddfe26b13e7f39d | [
"Apache-2.0"
] | null | null | null | """
sp_tool package
Sub-Packages are
* sharepoint - the core library
* tool - the frontend tool
"""
| 12.625 | 31 | 0.70297 | 14 | 101 | 5 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.188119 | 101 | 7 | 32 | 14.428571 | 0.853659 | 0.910891 | 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 |
0d7d885d195876cf147827174ba517a8cad64738 | 129 | py | Python | pypeton/files/django/project/apps/initial_data/__init__.py | chrisgilmerproj/pypeton | f2f46e51f66ad9d3657963ccfe12dccef9d7d9ca | [
"MIT"
] | null | null | null | pypeton/files/django/project/apps/initial_data/__init__.py | chrisgilmerproj/pypeton | f2f46e51f66ad9d3657963ccfe12dccef9d7d9ca | [
"MIT"
] | null | null | null | pypeton/files/django/project/apps/initial_data/__init__.py | chrisgilmerproj/pypeton | f2f46e51f66ad9d3657963ccfe12dccef9d7d9ca | [
"MIT"
] | null | null | null | # Contain fixtures created with:
# ./manage.py dumpdata auth.user sites --indent=4 > apps/initial_data/fixtures/[..name..].json
| 43 | 95 | 0.728682 | 18 | 129 | 5.166667 | 0.944444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008696 | 0.108527 | 129 | 2 | 96 | 64.5 | 0.8 | 0.953488 | 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 |
0d9932d5e66a4484216f634bfc0ecc39cfa76551 | 69 | py | Python | filabel/__init__.py | bezstpav/FIT-MI-PYT-FILABEL | bb72697a0e21b45b0e1769a9e94239709859218f | [
"MIT"
] | null | null | null | filabel/__init__.py | bezstpav/FIT-MI-PYT-FILABEL | bb72697a0e21b45b0e1769a9e94239709859218f | [
"MIT"
] | null | null | null | filabel/__init__.py | bezstpav/FIT-MI-PYT-FILABEL | bb72697a0e21b45b0e1769a9e94239709859218f | [
"MIT"
] | null | null | null | from .cli import main
from .web import app
__all__ = ['main', 'app'] | 17.25 | 25 | 0.681159 | 11 | 69 | 3.909091 | 0.636364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173913 | 69 | 4 | 25 | 17.25 | 0.754386 | 0 | 0 | 0 | 0 | 0 | 0.1 | 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 |
0da07627fbfdcb913e6148ea8aac7606e649c54f | 347 | py | Python | beautiful/beautywiki/views.py | wtl0442/bwg_real | 45007e89cb6c5099daea7a84b81433d1adb8e41d | [
"MIT"
] | null | null | null | beautiful/beautywiki/views.py | wtl0442/bwg_real | 45007e89cb6c5099daea7a84b81433d1adb8e41d | [
"MIT"
] | 9 | 2018-01-24T10:40:34.000Z | 2022-01-13T00:40:29.000Z | beautiful/beautywiki/views.py | wtl0442/bwg_real | 45007e89cb6c5099daea7a84b81433d1adb8e41d | [
"MIT"
] | 1 | 2018-05-05T08:54:55.000Z | 2018-05-05T08:54:55.000Z | from django.shortcuts import render
from beautywiki.models import TroubleWiki
def wikimain(request):
return render(request, 'beautywiki/beauty_wiki.html')
def trouble_wiki(request):
trouble_lists = TroubleWiki.objects.all()
return render(request, 'beautywiki/trouble_wiki.html', {
'trouble_list... | 20.411765 | 60 | 0.740634 | 40 | 347 | 6.275 | 0.475 | 0.143426 | 0.151394 | 0.231076 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161383 | 347 | 16 | 61 | 21.6875 | 0.862543 | 0 | 0 | 0 | 0 | 0 | 0.196532 | 0.15896 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0.111111 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
0dbcea9fcdc455522e698353399c236ed0260633 | 167 | py | Python | recipes/site_listers/redhousespice.py | cfeenstra67/recipes | a2d296500b4ff70e11ff3177a1092a033498f82a | [
"MIT"
] | null | null | null | recipes/site_listers/redhousespice.py | cfeenstra67/recipes | a2d296500b4ff70e11ff3177a1092a033498f82a | [
"MIT"
] | null | null | null | recipes/site_listers/redhousespice.py | cfeenstra67/recipes | a2d296500b4ff70e11ff3177a1092a033498f82a | [
"MIT"
] | null | null | null | from recipes.site_listers.base import SitemapLister
class RedHouseSpiceLister(SitemapLister):
""" """
start_url = "https://redhousespice.com/sitemap-1.xml"
| 20.875 | 57 | 0.742515 | 18 | 167 | 6.777778 | 0.944444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006897 | 0.131737 | 167 | 7 | 58 | 23.857143 | 0.834483 | 0 | 0 | 0 | 0 | 0 | 0.24375 | 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 |
0df1d99fdf0e3b1c7eee1424c9661e7a1a0d05d9 | 93 | py | Python | WebAppOne/apps.py | SergePhil/RSOI_2017 | 1044809410766fa526302b2afcd0918ff94c1818 | [
"MIT"
] | null | null | null | WebAppOne/apps.py | SergePhil/RSOI_2017 | 1044809410766fa526302b2afcd0918ff94c1818 | [
"MIT"
] | 2 | 2020-02-11T23:19:16.000Z | 2020-06-05T17:24:52.000Z | WebAppOne/apps.py | SergePhil/RSOI_2017 | 1044809410766fa526302b2afcd0918ff94c1818 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class WebapponeConfig(AppConfig):
name = 'WebAppOne'
| 15.5 | 33 | 0.763441 | 10 | 93 | 7.1 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16129 | 93 | 5 | 34 | 18.6 | 0.910256 | 0 | 0 | 0 | 0 | 0 | 0.096774 | 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 |
219a81b3fbd15d1891d026a8a2fecf58f971933f | 45 | py | Python | pymodelling/stochastic/gillespie/__init__.py | kochie/pymodelling | 32e93d7ebc18cd2b0f7f48682897b7bb68235175 | [
"MIT"
] | 1 | 2018-10-25T02:28:45.000Z | 2018-10-25T02:28:45.000Z | pymodelling/stochastic/gillespie/__init__.py | kochie/pymodelling | 32e93d7ebc18cd2b0f7f48682897b7bb68235175 | [
"MIT"
] | null | null | null | pymodelling/stochastic/gillespie/__init__.py | kochie/pymodelling | 32e93d7ebc18cd2b0f7f48682897b7bb68235175 | [
"MIT"
] | null | null | null | __all__ = ["model"]
from .model import Model | 15 | 24 | 0.711111 | 6 | 45 | 4.666667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155556 | 45 | 3 | 24 | 15 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0.108696 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
21cf477a4c010f19957447b6cb686bcaa4c8ad8b | 290 | py | Python | wildlifecompliance/admin.py | sharpeez/ledger | 0ea05669f488336a63e2bdd6390725d00d619e9a | [
"Apache-2.0"
] | null | null | null | wildlifecompliance/admin.py | sharpeez/ledger | 0ea05669f488336a63e2bdd6390725d00d619e9a | [
"Apache-2.0"
] | 11 | 2019-03-19T02:03:11.000Z | 2019-05-31T07:20:59.000Z | wildlifecompliance/admin.py | sharpeez/ledger | 0ea05669f488336a63e2bdd6390725d00d619e9a | [
"Apache-2.0"
] | null | null | null | from django.contrib.admin import AdminSite
class WildlifeComplianceAdminSite(AdminSite):
site_header = 'Wildlife Licensing System Administration'
site_title = 'Wildlife Licensing System'
wildlifecompliance_admin_site = WildlifeComplianceAdminSite(name='wildlifecomplianceadmin')
| 32.222222 | 91 | 0.834483 | 26 | 290 | 9.153846 | 0.692308 | 0.142857 | 0.193277 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106897 | 290 | 8 | 92 | 36.25 | 0.918919 | 0 | 0 | 0 | 0 | 0 | 0.303448 | 0.07931 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
21ef1a580ca158008d6a08b12da9aa7d5d5c71e5 | 3,860 | py | Python | tests/compiler/test_compiler.py | higumachan/anyspec | 441823ede2f1057a60b421f6e401037042fcef9a | [
"MIT"
] | null | null | null | tests/compiler/test_compiler.py | higumachan/anyspec | 441823ede2f1057a60b421f6e401037042fcef9a | [
"MIT"
] | null | null | null | tests/compiler/test_compiler.py | higumachan/anyspec | 441823ede2f1057a60b421f6e401037042fcef9a | [
"MIT"
] | null | null | null | from anyspec.backend.python import PythonCompiler
from anyspec.frontend.parser import anyspec_parser
def test_simple_case():
spec = """
$describe "simple_method"
$example "example1"
print("HelloWorld")
$end
$end
"""
cmp = PythonCompiler()
code = cmp.compile(anyspec_parser.parseString(spec... | 20.315789 | 71 | 0.55544 | 363 | 3,860 | 5.732782 | 0.115702 | 0.060548 | 0.121576 | 0.099471 | 0.735223 | 0.735223 | 0.691014 | 0.666026 | 0.654493 | 0.613167 | 0 | 0.007553 | 0.31399 | 3,860 | 189 | 72 | 20.42328 | 0.778323 | 0 | 0 | 0.83871 | 0 | 0 | 0.614508 | 0.072539 | 0 | 0 | 0 | 0 | 0.058065 | 1 | 0.058065 | false | 0 | 0.051613 | 0 | 0.154839 | 0.167742 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
21fcf95b151dc81b25b728e45b06bdef4255aa48 | 63 | py | Python | {{cookiecutter.github_slug}}/tests/__init__.py | midwatch/cc-py3-pkg | 33dcf034d165dc7e0c72dfceec587d97ff875647 | [
"BSD-3-Clause"
] | null | null | null | {{cookiecutter.github_slug}}/tests/__init__.py | midwatch/cc-py3-pkg | 33dcf034d165dc7e0c72dfceec587d97ff875647 | [
"BSD-3-Clause"
] | 4 | 2021-10-19T23:24:45.000Z | 2021-12-06T13:02:40.000Z | {{cookiecutter.github_slug}}/tests/__init__.py | midwatch/cc-py3-pkg | 33dcf034d165dc7e0c72dfceec587d97ff875647 | [
"BSD-3-Clause"
] | null | null | null |
"""Unit test package for {{ cookiecutter.solution_slug }}."""
| 21 | 61 | 0.68254 | 7 | 63 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126984 | 63 | 2 | 62 | 31.5 | 0.763636 | 0.873016 | 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 |
df06de08e5a12ca526fbb8ce12b67bdd6a8143fc | 116 | py | Python | django_swagger_tester/exceptions.py | JonasKs/django-swagger-tester | a8a9449734a0c04319caef3722b04caea2d41a61 | [
"BSD-3-Clause"
] | 2 | 2020-03-30T12:42:53.000Z | 2020-11-11T13:55:53.000Z | django_swagger_tester/exceptions.py | JonasKs/django-swagger-tester | a8a9449734a0c04319caef3722b04caea2d41a61 | [
"BSD-3-Clause"
] | null | null | null | django_swagger_tester/exceptions.py | JonasKs/django-swagger-tester | a8a9449734a0c04319caef3722b04caea2d41a61 | [
"BSD-3-Clause"
] | null | null | null | class OpenAPISchemaError(Exception):
"""
Custom exception raised when package tests fail.
"""
pass
| 16.571429 | 52 | 0.663793 | 11 | 116 | 7 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 116 | 6 | 53 | 19.333333 | 0.885057 | 0.413793 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
df209333c2a9aa0b5d1809f140e2d0727f667de2 | 72 | py | Python | my_lambdata_diego/my_mod.py | diegoarriola1/lambdata-diegoarriola1 | 63a0b95905b1308b4347ae5c1ed074df97d48e96 | [
"MIT"
] | null | null | null | my_lambdata_diego/my_mod.py | diegoarriola1/lambdata-diegoarriola1 | 63a0b95905b1308b4347ae5c1ed074df97d48e96 | [
"MIT"
] | null | null | null | my_lambdata_diego/my_mod.py | diegoarriola1/lambdata-diegoarriola1 | 63a0b95905b1308b4347ae5c1ed074df97d48e96 | [
"MIT"
] | 1 | 2020-05-11T03:38:17.000Z | 2020-05-11T03:38:17.000Z | # my_script.py
# enlarge function
def enlarge(n):
return n * 100
| 9 | 18 | 0.652778 | 11 | 72 | 4.181818 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 0.25 | 72 | 7 | 19 | 10.285714 | 0.796296 | 0.402778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
df2d142de80c0c1e6a48b29db3d9e1571d052296 | 71 | py | Python | wally/__init__.py | saurabh-tripathi/wally | ec80190151e884c0580f57ba500e95cb0672dfdc | [
"MIT"
] | null | null | null | wally/__init__.py | saurabh-tripathi/wally | ec80190151e884c0580f57ba500e95cb0672dfdc | [
"MIT"
] | null | null | null | wally/__init__.py | saurabh-tripathi/wally | ec80190151e884c0580f57ba500e95cb0672dfdc | [
"MIT"
] | null | null | null | """Library for wally.
This library provides an API for budgeting.
"""
| 14.2 | 43 | 0.71831 | 10 | 71 | 5.1 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169014 | 71 | 4 | 44 | 17.75 | 0.864407 | 0.887324 | 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 |
df5caff926605028d1c0e183b46c9376a33688fc | 820 | py | Python | ccat/config.py | bhaveshrawal/Python | 5b67c3df196a72ab986b52c84e816d5674ca9af3 | [
"MIT"
] | 3 | 2018-11-25T16:45:01.000Z | 2019-06-16T13:50:44.000Z | ccat/config.py | bliiir/ccat | b9a4418c93961e8400703d87d3e94518199c5f09 | [
"MIT"
] | 10 | 2018-12-19T14:38:06.000Z | 2021-06-01T23:41:36.000Z | ccat/config.py | bliiir/ccat | b9a4418c93961e8400703d87d3e94518199c5f09 | [
"MIT"
] | null | null | null | '''
------------------------------------------------------------------------- - - -
IMPORTS
------------------------------------------------------------------------- - - -
'''
# Standard library imports
import os
# Third party packages
pass
# Local packages
pass
'''
---------------------------------------------... | 24.117647 | 79 | 0.441463 | 75 | 820 | 4.533333 | 0.386667 | 0.238235 | 0.194118 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10122 | 820 | 33 | 80 | 24.848485 | 0.46133 | 0.307317 | 0 | 0.166667 | 0 | 0 | 0.227882 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.25 | 0.083333 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 1 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
df666e9726c36434a920788425e2665d50e9c59a | 195 | py | Python | portainer_py/api_versions/portainer_1_18.py | bob-codingdutchmen/portainer-py | bd56c867047e5e9daba3d2c865b2edfb7b3cf6f0 | [
"Apache-2.0",
"MIT"
] | 1 | 2019-05-10T08:03:05.000Z | 2019-05-10T08:03:05.000Z | portainer_py/api_versions/portainer_1_18.py | bob-codingdutchmen/portainer-py | bd56c867047e5e9daba3d2c865b2edfb7b3cf6f0 | [
"Apache-2.0",
"MIT"
] | 2 | 2020-02-03T18:21:02.000Z | 2021-06-01T23:20:05.000Z | portainer_py/api_versions/portainer_1_18.py | bob-codingdutchmen/portainer-py | bd56c867047e5e9daba3d2c865b2edfb7b3cf6f0 | [
"Apache-2.0",
"MIT"
] | 2 | 2020-09-02T09:06:38.000Z | 2021-03-06T17:06:06.000Z | from .portainer_1_17 import Portainer_1_17
class Portainer_1_18(Portainer_1_17):
FROM_VERSION = (1, 18)
URL_STACKS = "api/stacks"
URL_STACK = "api/stacks/{stack_id}?endpointId=1"
| 19.5 | 52 | 0.728205 | 31 | 195 | 4.193548 | 0.451613 | 0.307692 | 0.276923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09816 | 0.164103 | 195 | 9 | 53 | 21.666667 | 0.699387 | 0 | 0 | 0 | 0 | 0 | 0.227979 | 0.176166 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
10c53c5fc5e9dd9c86dc85bdf1e51db3637ce680 | 153 | py | Python | packages/bin/django-admin.py | sakthiRathinam/cuebook | 7f9b13fe73ed366959fdbee3ee0e60dcf5efbffb | [
"MIT"
] | null | null | null | packages/bin/django-admin.py | sakthiRathinam/cuebook | 7f9b13fe73ed366959fdbee3ee0e60dcf5efbffb | [
"MIT"
] | null | null | null | packages/bin/django-admin.py | sakthiRathinam/cuebook | 7f9b13fe73ed366959fdbee3ee0e60dcf5efbffb | [
"MIT"
] | null | null | null | #!/home/abi/Desktop/main/drollsenv/bin/python3
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| 25.5 | 46 | 0.784314 | 20 | 153 | 5.45 | 0.85 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007246 | 0.098039 | 153 | 5 | 47 | 30.6 | 0.782609 | 0.294118 | 0 | 0 | 0 | 0 | 0.074766 | 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 |
10e6ccafe2297a18e8cb54e9eb96c131d3b61dd5 | 1,217 | py | Python | tests/test_decode.py | Martynas-P/bencode | d4b2a406e07aa828bfc02eb1ed3bd68efbe1c6cb | [
"Apache-2.0"
] | null | null | null | tests/test_decode.py | Martynas-P/bencode | d4b2a406e07aa828bfc02eb1ed3bd68efbe1c6cb | [
"Apache-2.0"
] | null | null | null | tests/test_decode.py | Martynas-P/bencode | d4b2a406e07aa828bfc02eb1ed3bd68efbe1c6cb | [
"Apache-2.0"
] | null | null | null | import unittest
from bencode import decode
class DecodeBencodeTest(unittest.TestCase):
def test_decode_int(self):
self.assertEqual(decode(b'i1e'), 1)
self.assertEqual(decode(b'i1000e'), 1000)
self.assertEqual(decode(b'i-1000e'), -1000)
self.assertEqual(decode(b'i0e'), 0)
def... | 35.794118 | 99 | 0.606409 | 156 | 1,217 | 4.628205 | 0.339744 | 0.33241 | 0.465374 | 0.487535 | 0.401662 | 0.083102 | 0.083102 | 0 | 0 | 0 | 0 | 0.0625 | 0.184881 | 1,217 | 34 | 100 | 35.794118 | 0.665323 | 0 | 0 | 0 | 0 | 0 | 0.152709 | 0.021346 | 0 | 0 | 0 | 0 | 0.64 | 1 | 0.16 | false | 0 | 0.08 | 0 | 0.28 | 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 |
338d9f407ea6e57ea17f090a7759ba6484f4a3cf | 610 | py | Python | amusement_park.py | yiyidhuang/PythonCrashCrouse2nd | 3512f9ab8fcf32c6145604a37e2a62feddf174d1 | [
"MIT"
] | null | null | null | amusement_park.py | yiyidhuang/PythonCrashCrouse2nd | 3512f9ab8fcf32c6145604a37e2a62feddf174d1 | [
"MIT"
] | null | null | null | amusement_park.py | yiyidhuang/PythonCrashCrouse2nd | 3512f9ab8fcf32c6145604a37e2a62feddf174d1 | [
"MIT"
] | null | null | null | age = 12
if age < 4:
print("Your admission cost is $0.")
elif age < 18:
print("Your admission cost is $25.")
else:
print("Your admission cost is $40.")
age = 12
if age < 4:
price = 0
elif age < 18:
price = 25
print(f"Your admission cost is ${price}.")
age = 12
if age < 4:
price = 0
elif ag... | 13.863636 | 42 | 0.572131 | 102 | 610 | 3.421569 | 0.186275 | 0.140401 | 0.292264 | 0.326648 | 0.911175 | 0.673352 | 0.673352 | 0.673352 | 0.673352 | 0.547278 | 0 | 0.111628 | 0.295082 | 610 | 43 | 43 | 14.186047 | 0.7 | 0 | 0 | 0.878788 | 0 | 0 | 0.288525 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.181818 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 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 |
33b584a497704e82ff3282a357a96760dcf4c78e | 90 | py | Python | apps/trade/apps.py | thomaslzb/onlineStore | 83bda14c97ece799f3df44dc26b6e3b1c8b8463d | [
"Apache-2.0"
] | null | null | null | apps/trade/apps.py | thomaslzb/onlineStore | 83bda14c97ece799f3df44dc26b6e3b1c8b8463d | [
"Apache-2.0"
] | null | null | null | apps/trade/apps.py | thomaslzb/onlineStore | 83bda14c97ece799f3df44dc26b6e3b1c8b8463d | [
"Apache-2.0"
] | null | null | null | from django.apps import AppConfig
class TradeConfig(AppConfig):
name = 'apps.trade'
| 15 | 33 | 0.744444 | 11 | 90 | 6.090909 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 90 | 5 | 34 | 18 | 0.893333 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 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 |
33c91f621af4590704b72d32c141e79fb2cd0971 | 8,546 | py | Python | kodexa/selectors/impl/selectorListener.py | kodexa-ai/kodexa | 568466b3dc4758babf2d318dc91b1c09ec60845d | [
"Apache-2.0"
] | 1 | 2020-08-31T09:32:39.000Z | 2020-08-31T09:32:39.000Z | kodexa/selectors/impl/selectorListener.py | kodexa-ai/kodexa | 568466b3dc4758babf2d318dc91b1c09ec60845d | [
"Apache-2.0"
] | 13 | 2020-04-08T10:53:26.000Z | 2022-03-30T09:51:29.000Z | kodexa/selectors/impl/selectorListener.py | kodexa-ai/kodexa | 568466b3dc4758babf2d318dc91b1c09ec60845d | [
"Apache-2.0"
] | 1 | 2020-04-12T13:10:51.000Z | 2020-04-12T13:10:51.000Z | # Generated from /Users/pdodds/src/kodexa/kodexa/resources/selector.g4 by ANTLR 4.9.1
from antlr4 import *
if __name__ is not None and "." in __name__:
from .selectorParser import selectorParser
else:
from selectorParser import selectorParser
# This class defines a complete listener for a parse tree produced b... | 33.513725 | 100 | 0.747367 | 863 | 8,546 | 7.391657 | 0.17613 | 0.051732 | 0.08622 | 0.155197 | 0.821289 | 0.486753 | 0.481423 | 0.48064 | 0 | 0 | 0 | 0.000725 | 0.193073 | 8,546 | 255 | 101 | 33.513725 | 0.924304 | 0.385678 | 0 | 0.469565 | 1 | 0 | 0.000195 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.469565 | false | 0.469565 | 0.026087 | 0 | 0.504348 | 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 |
33d1a821a5d4b4f05523ac6e168c6fd66af76c88 | 79 | py | Python | backend/telegram_bot.py | HerlanAssis/simple-project-manager | 800c833ec0cbeba848264753d79c5ecedc54cc39 | [
"MIT"
] | 1 | 2019-06-14T20:34:19.000Z | 2019-06-14T20:34:19.000Z | backend/telegram_bot.py | HerlanAssis/simple-project-manager | 800c833ec0cbeba848264753d79c5ecedc54cc39 | [
"MIT"
] | 3 | 2020-02-11T23:42:20.000Z | 2020-06-25T17:35:48.000Z | backend/telegram_bot.py | HerlanAssis/simple-project-manager | 800c833ec0cbeba848264753d79c5ecedc54cc39 | [
"MIT"
] | null | null | null | import subprocess
subprocess.Popen(["python","manage.py","start_telegram_bot"]) | 39.5 | 61 | 0.797468 | 10 | 79 | 6.1 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025316 | 79 | 2 | 61 | 39.5 | 0.792208 | 0 | 0 | 0 | 0 | 0 | 0.4125 | 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 |
33ee34f857d68430980fca39a0f742a4b288da7f | 202 | py | Python | neuropy/__init__.py | alandegenhart/neuropy | a9f7b735da78a5296f648cb3bb94c1c31843c668 | [
"MIT"
] | 1 | 2020-09-03T19:33:48.000Z | 2020-09-03T19:33:48.000Z | neuropy/__init__.py | alandegenhart/neuropy | a9f7b735da78a5296f648cb3bb94c1c31843c668 | [
"MIT"
] | null | null | null | neuropy/__init__.py | alandegenhart/neuropy | a9f7b735da78a5296f648cb3bb94c1c31843c668 | [
"MIT"
] | null | null | null | """NeuroPy
A neural analysis package implemented in Python.
"""
# Import sub-packages
import neuropy.util
import neuropy.analysis
# Import top-level modules
import neuropy.array
import neuropy.temp
| 14.428571 | 48 | 0.787129 | 27 | 202 | 5.888889 | 0.62963 | 0.327044 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138614 | 202 | 13 | 49 | 15.538462 | 0.913793 | 0.509901 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
33f92145a694cb113e3048edde03ba5bec6f4adf | 424 | py | Python | parser/models/__init__.py | ShannonAI/mrc-for-dependency-parsing | fb78718096454b2631a61ec9f704ab6671bdcf51 | [
"Apache-2.0"
] | 18 | 2021-05-17T06:18:46.000Z | 2022-02-08T09:48:00.000Z | parser/models/__init__.py | ShannonAI/mrc-for-dependency-parsing | fb78718096454b2631a61ec9f704ab6671bdcf51 | [
"Apache-2.0"
] | null | null | null | parser/models/__init__.py | ShannonAI/mrc-for-dependency-parsing | fb78718096454b2631a61ec9f704ab6671bdcf51 | [
"Apache-2.0"
] | 2 | 2021-05-26T14:00:40.000Z | 2021-06-30T14:18:40.000Z |
from parser.models.biaffine_dependency_config import BertDependencyConfig
from parser.models.span_proposal_config import SpanProposalConfig
from parser.models.s2s_query_dependency_config import S2SConfig
from parser.models.biaffine_dependency_parser import BiaffineDependencyParser
from parser.models.span_proposal imp... | 47.111111 | 86 | 0.910377 | 49 | 424 | 7.612245 | 0.346939 | 0.160858 | 0.257373 | 0.128686 | 0.514745 | 0.182306 | 0 | 0 | 0 | 0 | 0 | 0.01005 | 0.061321 | 424 | 8 | 87 | 53 | 0.927136 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
1d2c281f66149d3cad8a5636afa0f5a48eb2e961 | 32 | py | Python | homeassistant/components/rocketchat/__init__.py | domwillcode/home-assistant | f170c80bea70c939c098b5c88320a1c789858958 | [
"Apache-2.0"
] | 30,023 | 2016-04-13T10:17:53.000Z | 2020-03-02T12:56:31.000Z | homeassistant/components/rocketchat/__init__.py | jagadeeshvenkatesh/core | 1bd982668449815fee2105478569f8e4b5670add | [
"Apache-2.0"
] | 31,101 | 2020-03-02T13:00:16.000Z | 2022-03-31T23:57:36.000Z | homeassistant/components/rocketchat/__init__.py | jagadeeshvenkatesh/core | 1bd982668449815fee2105478569f8e4b5670add | [
"Apache-2.0"
] | 11,956 | 2016-04-13T18:42:31.000Z | 2020-03-02T09:32:12.000Z | """The rocketchat component."""
| 16 | 31 | 0.6875 | 3 | 32 | 7.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09375 | 32 | 1 | 32 | 32 | 0.758621 | 0.78125 | 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 |
1d3538d722211b1fa96d93a8289d46a8a4be9d22 | 231 | py | Python | src/parser/Switch.py | lzjzx1122/FaaSFlow | c4a32a04797770c21fe6a0dcacd85ac27a3d29ec | [
"Apache-2.0"
] | 24 | 2021-12-02T01:00:54.000Z | 2022-03-27T00:50:28.000Z | src/parser/Switch.py | lzjzx1122/FaaSFlow | c4a32a04797770c21fe6a0dcacd85ac27a3d29ec | [
"Apache-2.0"
] | null | null | null | src/parser/Switch.py | lzjzx1122/FaaSFlow | c4a32a04797770c21fe6a0dcacd85ac27a3d29ec | [
"Apache-2.0"
] | 3 | 2021-12-02T01:00:47.000Z | 2022-03-04T07:33:09.000Z | from ServerlessBase import ServerlessBase
class Switch(ServerlessBase):
def __init__(self, name, next, nextDis, choices):
ServerlessBase.__init__(self, 'switch', name, next, nextDis)
self.choices = choices | 38.5 | 69 | 0.714286 | 24 | 231 | 6.541667 | 0.5 | 0.101911 | 0.191083 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.194805 | 231 | 6 | 70 | 38.5 | 0.844086 | 0 | 0 | 0 | 0 | 0 | 0.026432 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
1d5961d8da4f1bb0d37a7c3be71fcd68945569aa | 490 | py | Python | unittesting/core/__init__.py | alek-sys/UnitTesting | 1200a0ed8f324c652edf2bdaad2783cc8482cd40 | [
"MIT"
] | null | null | null | unittesting/core/__init__.py | alek-sys/UnitTesting | 1200a0ed8f324c652edf2bdaad2783cc8482cd40 | [
"MIT"
] | null | null | null | unittesting/core/__init__.py | alek-sys/UnitTesting | 1200a0ed8f324c652edf2bdaad2783cc8482cd40 | [
"MIT"
] | null | null | null | import sublime
version = sublime.version()
__all__ = ["TestLoader", "DeferringTextTestRunner", "DeferrableTestCase", "DeferrableTestSuite"]
if version >= '3000':
from .st3.runner import DeferringTextTestRunner
from .st3.case import DeferrableTestCase
from .st3.suite import DeferrableTestSuite
else:
fr... | 30.625 | 96 | 0.779592 | 48 | 490 | 7.875 | 0.375 | 0.055556 | 0.185185 | 0.206349 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023866 | 0.144898 | 490 | 15 | 97 | 32.666667 | 0.878282 | 0 | 0 | 0 | 0 | 0 | 0.15102 | 0.046939 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
1d8282a3047762cb7fd8cf37c85763d029c0113f | 620 | py | Python | tests/test_interface.py | roguextech/OpenRocket-pyjnius | 1692c95099ca8eaf652ac24dbbcbf4eb08d8191f | [
"MIT"
] | 908 | 2015-01-03T03:24:43.000Z | 2022-03-29T14:05:16.000Z | tests/test_interface.py | roguextech/OpenRocket-pyjnius | 1692c95099ca8eaf652ac24dbbcbf4eb08d8191f | [
"MIT"
] | 465 | 2015-01-03T19:13:21.000Z | 2022-03-15T23:32:23.000Z | tests/test_interface.py | roguextech/OpenRocket-pyjnius | 1692c95099ca8eaf652ac24dbbcbf4eb08d8191f | [
"MIT"
] | 244 | 2015-01-02T22:41:35.000Z | 2022-03-12T13:16:30.000Z | from __future__ import print_function
from __future__ import division
from __future__ import absolute_import
import unittest
from jnius import autoclass, JavaException
class Interface(unittest.TestCase):
def test_reflect_interface(self):
Interface = autoclass('org.jnius.InterfaceWithPublicEnum')
... | 29.52381 | 74 | 0.759677 | 66 | 620 | 6.833333 | 0.409091 | 0.155211 | 0.195122 | 0.177384 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169355 | 620 | 20 | 75 | 31 | 0.875728 | 0 | 0 | 0 | 0 | 0 | 0.120968 | 0.120968 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.133333 | false | 0 | 0.333333 | 0 | 0.533333 | 0.066667 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
1d8c780cad0541b223e5f968ac7b6c47fef0e53f | 83 | py | Python | Insta/Gram/apps.py | CollinsMuiruri/Instagram1-clone | e7046bb3cc35b2371f742c327c086fb6d12fcb9e | [
"Unlicense"
] | 1 | 2021-08-16T06:02:38.000Z | 2021-08-16T06:02:38.000Z | Gram/apps.py | danalvin/Django-IP2 | 3c0a6e4d2de9d4e027b11f2873ed69aba4509fc7 | [
"MIT"
] | null | null | null | Gram/apps.py | danalvin/Django-IP2 | 3c0a6e4d2de9d4e027b11f2873ed69aba4509fc7 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class GramConfig(AppConfig):
name = 'Gram'
| 13.833333 | 33 | 0.73494 | 10 | 83 | 6.1 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180723 | 83 | 5 | 34 | 16.6 | 0.897059 | 0 | 0 | 0 | 0 | 0 | 0.048193 | 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 |
1d9004a9dea92b147e10d6dea4de8a8a09138fdf | 1,029 | py | Python | gaea/core/serializer/__init__.py | aducode/Gaeapy | 166c78d9074ae82d768fd1a0861834281d77f7e7 | [
"Apache-2.0"
] | null | null | null | gaea/core/serializer/__init__.py | aducode/Gaeapy | 166c78d9074ae82d768fd1a0861834281d77f7e7 | [
"Apache-2.0"
] | null | null | null | gaea/core/serializer/__init__.py | aducode/Gaeapy | 166c78d9074ae82d768fd1a0861834281d77f7e7 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# -*- coding:utf-8 -*-
"""
@author: Raven
@contact: aducode@126.com
@site: https://github.com/aducode
@file: __init__.py
@time: 2016/1/31 23:57
"""
import types
from type import Any
from type import Null
from type import Bool
from type import Byte
from type import Int16
from type import Int32
from ... | 16.596774 | 40 | 0.72206 | 158 | 1,029 | 4.626582 | 0.43038 | 0.240766 | 0.421341 | 0.051984 | 0.090287 | 0.090287 | 0.090287 | 0.090287 | 0.090287 | 0 | 0 | 0.032967 | 0.204082 | 1,029 | 61 | 41 | 16.868852 | 0.859585 | 0.17104 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027778 | false | 0 | 0.638889 | 0 | 0.722222 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
1d9f0483048fc26fcae32eb48f6175e41c603530 | 175 | py | Python | src/gelanis/sql/pandas/__init__.py | svaningelgem/gelanis | 12360ead579816e5a2764dc9f995449bacf67ecc | [
"Apache-2.0"
] | 1 | 2021-07-30T11:23:43.000Z | 2021-07-30T11:23:43.000Z | src/gelanis/sql/pandas/__init__.py | svaningelgem/gelanis | 12360ead579816e5a2764dc9f995449bacf67ecc | [
"Apache-2.0"
] | 3 | 2021-03-05T14:45:38.000Z | 2021-03-10T16:19:38.000Z | src/gelanis/sql/pandas/__init__.py | svaningelgem/gelanis | 12360ead579816e5a2764dc9f995449bacf67ecc | [
"Apache-2.0"
] | 1 | 2021-03-17T19:43:05.000Z | 2021-03-17T19:43:05.000Z | """
This package includes the internal APIs for PySpark about interoperability
between pandas, PySpark and PyArrow. This package should not be directly
imported and used.
"""
| 29.166667 | 74 | 0.8 | 24 | 175 | 5.833333 | 0.833333 | 0.157143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148571 | 175 | 5 | 75 | 35 | 0.939597 | 0.948571 | 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 |
1da6fedff4878fe151d1520d1007fa730ecf9441 | 1,455 | py | Python | dnsimple/http.py | ojii/dnsimple-api | 6476a5de59c6599b05bb5d08f98266a7e2913016 | [
"BSD-3-Clause"
] | 3 | 2015-11-05T08:52:51.000Z | 2016-10-28T01:21:22.000Z | dnsimple/http.py | ojii/dnsimple-api | 6476a5de59c6599b05bb5d08f98266a7e2913016 | [
"BSD-3-Clause"
] | null | null | null | dnsimple/http.py | ojii/dnsimple-api | 6476a5de59c6599b05bb5d08f98266a7e2913016 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Important note: Kenneth Reitz is awesome!
"""
from dnsimple import __version__
import requests
import simplejson
class SmartRequests(object):
headers = {
'user-agent': 'DNSimple Python API (ojii) %s' % __version__
}
def __init__(self, domain, username, password):
... | 33.837209 | 140 | 0.639175 | 173 | 1,455 | 5.260116 | 0.358382 | 0.052747 | 0.087912 | 0.101099 | 0.298901 | 0.298901 | 0.162637 | 0.085714 | 0 | 0 | 0 | 0.000878 | 0.217182 | 1,455 | 42 | 141 | 34.642857 | 0.798068 | 0.043986 | 0 | 0 | 0 | 0 | 0.091106 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0.071429 | 0.107143 | 0.214286 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
d53cc06ba97ab2e17c00e9ac3101850467368671 | 119 | py | Python | fis/__init__.py | wcbeard/fission-dashboard | 4c500596e1615d5af8f621859f3b58dd393b913f | [
"MIT"
] | null | null | null | fis/__init__.py | wcbeard/fission-dashboard | 4c500596e1615d5af8f621859f3b58dd393b913f | [
"MIT"
] | null | null | null | fis/__init__.py | wcbeard/fission-dashboard | 4c500596e1615d5af8f621859f3b58dd393b913f | [
"MIT"
] | null | null | null | from pathlib import Path
# /project_dir/slow_regressions
app_dir = Path(__file__).parent
project_dir = app_dir.parent
| 19.833333 | 31 | 0.815126 | 18 | 119 | 4.888889 | 0.611111 | 0.227273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109244 | 119 | 5 | 32 | 23.8 | 0.830189 | 0.243697 | 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 |
d55844fdf225f5604b6c8a8722432cbf6ca5337b | 135 | py | Python | chunked/urls.py | grschafer/django-meetup-fileupload | e89e158e3d26a5ce41571f8d164e3f7aa0f1f079 | [
"MIT"
] | null | null | null | chunked/urls.py | grschafer/django-meetup-fileupload | e89e158e3d26a5ce41571f8d164e3f7aa0f1f079 | [
"MIT"
] | null | null | null | chunked/urls.py | grschafer/django-meetup-fileupload | e89e158e3d26a5ce41571f8d164e3f7aa0f1f079 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from django.conf.urls import url
import chunked.views
urlpatterns = [
url(r'^$', chunked.views.upload),
]
| 16.875 | 37 | 0.651852 | 18 | 135 | 4.888889 | 0.777778 | 0.272727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00885 | 0.162963 | 135 | 7 | 38 | 19.285714 | 0.769912 | 0.155556 | 0 | 0 | 0 | 0 | 0.017857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 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 |
d580daa2b4d09057ca0641a4c966b8f8a6a32dcf | 255 | py | Python | mysticweb/__init__.py | bentheiii/mystic | 04df023a07fc411367a3a8984f9da143596085f0 | [
"MIT"
] | null | null | null | mysticweb/__init__.py | bentheiii/mystic | 04df023a07fc411367a3a8984f9da143596085f0 | [
"MIT"
] | null | null | null | mysticweb/__init__.py | bentheiii/mystic | 04df023a07fc411367a3a8984f9da143596085f0 | [
"MIT"
] | null | null | null | from mysticweb.app import app
import mysticweb.routes
from mysticweb.__data import __version__, __author__
try:
from mysticweb.secrets import __secret_key__
except ImportError:
pass
else:
app.secret_key = __secret_key__
del __secret_key__
| 23.181818 | 52 | 0.8 | 33 | 255 | 5.393939 | 0.515152 | 0.202247 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.160784 | 255 | 10 | 53 | 25.5 | 0.831776 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.1 | 0.5 | 0 | 0.5 | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 4 |
d58dd8d44b82ed25713f29deb5ae6709b3dbfe8d | 39 | py | Python | Section5/5.4 Flask SQL/SQL/__init__.py | mgmoghadam/PyCharm-for-Power-Developer-v- | ee45de99263c8ba53b95672d86f3adef53b2c4c6 | [
"MIT"
] | 14 | 2018-09-13T19:32:23.000Z | 2022-01-30T12:40:43.000Z | Section5/5.4 Flask SQL/SQL/__init__.py | mgmoghadam/PyCharm-for-Power-Developer-v- | ee45de99263c8ba53b95672d86f3adef53b2c4c6 | [
"MIT"
] | null | null | null | Section5/5.4 Flask SQL/SQL/__init__.py | mgmoghadam/PyCharm-for-Power-Developer-v- | ee45de99263c8ba53b95672d86f3adef53b2c4c6 | [
"MIT"
] | 18 | 2018-08-28T16:11:45.000Z | 2021-12-19T20:09:47.000Z | """
Created by dalemeli on 8/7/2018
""" | 13 | 31 | 0.641026 | 7 | 39 | 3.571429 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 0.153846 | 39 | 3 | 32 | 13 | 0.575758 | 0.794872 | 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 |
d5943a81c23f7c5a945d84789670c7483c581eaa | 26 | py | Python | Motospeed-ck62/f102.py | godrix/motospeed-ck62-fix-key | 48c65a2ddd2aa7b8be04c2c5e65939b8de6ec280 | [
"MIT"
] | null | null | null | Motospeed-ck62/f102.py | godrix/motospeed-ck62-fix-key | 48c65a2ddd2aa7b8be04c2c5e65939b8de6ec280 | [
"MIT"
] | null | null | null | Motospeed-ck62/f102.py | godrix/motospeed-ck62-fix-key | 48c65a2ddd2aa7b8be04c2c5e65939b8de6ec280 | [
"MIT"
] | null | null | null | keyboard.send_key("<f10>") | 26 | 26 | 0.730769 | 4 | 26 | 4.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 0 | 26 | 1 | 26 | 26 | 0.615385 | 0 | 0 | 0 | 0 | 0 | 0.185185 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
634079dcebcd4174bdb28a48cc9af864560e97bc | 226 | py | Python | Tugas 4/No 4/Robot.py | hafidh561/Pemrograman-Berorientasi-Objek | 55f955aaff8023d40ecfdfa407902ad42937c98e | [
"MIT"
] | null | null | null | Tugas 4/No 4/Robot.py | hafidh561/Pemrograman-Berorientasi-Objek | 55f955aaff8023d40ecfdfa407902ad42937c98e | [
"MIT"
] | null | null | null | Tugas 4/No 4/Robot.py | hafidh561/Pemrograman-Berorientasi-Objek | 55f955aaff8023d40ecfdfa407902ad42937c98e | [
"MIT"
] | 1 | 2020-10-22T10:54:55.000Z | 2020-10-22T10:54:55.000Z | from interface import Interface
class Robot(Interface):
def setNama(self, nama: str) -> None:
pass
def setTahunPembuatan(self, tahun: int) -> None:
pass
def displayData(self) -> None:
pass
| 22.6 | 52 | 0.628319 | 26 | 226 | 5.461538 | 0.615385 | 0.169014 | 0.15493 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.274336 | 226 | 9 | 53 | 25.111111 | 0.865854 | 0 | 0 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0.375 | 0.125 | 0 | 0.625 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
63809d51c646ac4b63a6cb9331a119dace33fb0d | 140 | py | Python | footprint_airflow/dags/models/request_log.py | footprint-network/footprint-analytics | 5de4932ce1c21860785edcce90ffdf097b6f9921 | [
"MIT"
] | null | null | null | footprint_airflow/dags/models/request_log.py | footprint-network/footprint-analytics | 5de4932ce1c21860785edcce90ffdf097b6f9921 | [
"MIT"
] | null | null | null | footprint_airflow/dags/models/request_log.py | footprint-network/footprint-analytics | 5de4932ce1c21860785edcce90ffdf097b6f9921 | [
"MIT"
] | 1 | 2021-09-20T22:31:20.000Z | 2021-09-20T22:31:20.000Z | from models.model_helper import ModelHelper
class RequestLogModel(ModelHelper):
"""requestLog """
collection_name = 'request_log'
| 20 | 43 | 0.757143 | 14 | 140 | 7.357143 | 0.928571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15 | 140 | 6 | 44 | 23.333333 | 0.865546 | 0.071429 | 0 | 0 | 0 | 0 | 0.089431 | 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 |
63a6d1f803fbfae57a6f1e9141e7ef1f43d102e4 | 386 | py | Python | ML/genImage.py | taoluwork/bcai | 6097ee88e11f99824a251f2c2a65b2656b75a5de | [
"Apache-2.0"
] | 1 | 2020-03-05T20:11:31.000Z | 2020-03-05T20:11:31.000Z | ML/genImage.py | taoluwork/bcai | 6097ee88e11f99824a251f2c2a65b2656b75a5de | [
"Apache-2.0"
] | 7 | 2020-04-06T01:38:09.000Z | 2022-01-22T11:47:18.000Z | ML/genImage.py | taoluwork/bcai | 6097ee88e11f99824a251f2c2a65b2656b75a5de | [
"Apache-2.0"
] | 3 | 2019-08-14T14:17:22.000Z | 2019-09-19T19:04:40.000Z | #this is a file to create the test image
#it is too large to be put on github
import os
import sys
#sudo docker build Dockerfile -t execute:latest
#sudo docker save execute:latest -o image.tgz
#zip -0 image.zip image.tgz
os.system("sudo docker build Dockerfile -t execute:latest")
os.system("sudo docker save execute:... | 29.692308 | 59 | 0.759067 | 71 | 386 | 4.126761 | 0.450704 | 0.136519 | 0.122867 | 0.170648 | 0.716724 | 0.648464 | 0.511945 | 0.245734 | 0 | 0 | 0 | 0.006079 | 0.147668 | 386 | 13 | 60 | 29.692308 | 0.884498 | 0.492228 | 0 | 0 | 0 | 0 | 0.630208 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
89262926a2791708263ce4526d319671ad98bc53 | 260 | py | Python | core/forms.py | e-eight/true_neutral | 6f9d9daff454c17bcd8cc841f2ab02bb12de04e5 | [
"MIT"
] | null | null | null | core/forms.py | e-eight/true_neutral | 6f9d9daff454c17bcd8cc841f2ab02bb12de04e5 | [
"MIT"
] | null | null | null | core/forms.py | e-eight/true_neutral | 6f9d9daff454c17bcd8cc841f2ab02bb12de04e5 | [
"MIT"
] | null | null | null | from flask_wtf import FlaskForm
from wtforms import StringField, SubmitField, TextAreaField
class BookSearchForm(FlaskForm):
title = StringField(u"Book title")
summary = TextAreaField(u"Book Summary")
search = SubmitField(u"Get recommendations")
| 28.888889 | 59 | 0.776923 | 29 | 260 | 6.931034 | 0.62069 | 0.049751 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146154 | 260 | 8 | 60 | 32.5 | 0.905405 | 0 | 0 | 0 | 0 | 0 | 0.157692 | 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 |
892ce44b6a2863751d3e9add8b0fd0a998a594fc | 205 | py | Python | mailers/encrypters/base.py | alex-oleshkevich/mailers | 36836ae750cd190f75c96c5a78896d4ef830260e | [
"MIT"
] | 17 | 2020-03-13T13:06:05.000Z | 2022-03-06T00:17:45.000Z | mailers/encrypters/base.py | alex-oleshkevich/mailers | 36836ae750cd190f75c96c5a78896d4ef830260e | [
"MIT"
] | null | null | null | mailers/encrypters/base.py | alex-oleshkevich/mailers | 36836ae750cd190f75c96c5a78896d4ef830260e | [
"MIT"
] | null | null | null | import abc
from email.message import Message
class Encrypter(abc.ABC): # pragma: no cover
@abc.abstractmethod
def encrypt(self, message: Message) -> Message:
raise NotImplementedError()
| 22.777778 | 51 | 0.717073 | 24 | 205 | 6.125 | 0.666667 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.195122 | 205 | 8 | 52 | 25.625 | 0.890909 | 0.078049 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
894c362378c4399596c07e47fef9a68bc2fa1614 | 97 | py | Python | neigborhood/apps.py | canssidle/Neighbourhood | d5a928d4bf9659e8c1ce342134e075c2f00890bc | [
"MIT"
] | null | null | null | neigborhood/apps.py | canssidle/Neighbourhood | d5a928d4bf9659e8c1ce342134e075c2f00890bc | [
"MIT"
] | 5 | 2020-06-05T21:42:48.000Z | 2021-09-08T01:07:23.000Z | neigborhood/apps.py | canssidle/Neighbourhood | d5a928d4bf9659e8c1ce342134e075c2f00890bc | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class NeigborhoodConfig(AppConfig):
name = 'neigborhood'
| 16.166667 | 35 | 0.773196 | 10 | 97 | 7.5 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154639 | 97 | 5 | 36 | 19.4 | 0.914634 | 0 | 0 | 0 | 0 | 0 | 0.113402 | 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 |
895772c192a66b9d3d5104a6fb29fc778874e390 | 54 | py | Python | principal/admin.py | carborgar/gestionalumnostfg | 87c6d97ad95cfcd55a88b2f3cb69da7134b80149 | [
"MIT"
] | null | null | null | principal/admin.py | carborgar/gestionalumnostfg | 87c6d97ad95cfcd55a88b2f3cb69da7134b80149 | [
"MIT"
] | 45 | 2018-05-24T03:52:46.000Z | 2022-03-01T12:29:03.000Z | principal/admin.py | carborgar/gestionalumnostfg | 87c6d97ad95cfcd55a88b2f3cb69da7134b80149 | [
"MIT"
] | 1 | 2021-02-20T06:41:04.000Z | 2021-02-20T06:41:04.000Z | # -*- coding: utf-8 -*-
# Register your models here.
| 13.5 | 28 | 0.592593 | 7 | 54 | 4.571429 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023256 | 0.203704 | 54 | 3 | 29 | 18 | 0.72093 | 0.888889 | 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 |
899d1a005153b56c93edc1549217e7fd043af280 | 148 | py | Python | python/entities_extractor-0.6/entities_extractor/__init__.py | dataesr/scanr-backend | 39681be69b9a96b4a07b9410754c897cd5b65c24 | [
"MIT"
] | null | null | null | python/entities_extractor-0.6/entities_extractor/__init__.py | dataesr/scanr-backend | 39681be69b9a96b4a07b9410754c897cd5b65c24 | [
"MIT"
] | 3 | 2020-06-18T15:06:10.000Z | 2021-05-07T16:29:50.000Z | plugins/entities_extractor/entities_extractor/__init__.py | reseachalps/Search-Engine | 1cd1e83902119938ffd412394b09dce92d082500 | [
"MIT"
] | null | null | null | # pragma: no cover
import os.path
__version__ = open(os.path.dirname(os.path.abspath(__file__)) +
"/version.txt").read().strip()
| 29.6 | 63 | 0.628378 | 19 | 148 | 4.473684 | 0.736842 | 0.211765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.202703 | 148 | 4 | 64 | 37 | 0.720339 | 0.108108 | 0 | 0 | 0 | 0 | 0.092308 | 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 |
89a43b849c48ec4e7aee82d76a13ecf762baa811 | 460 | py | Python | SUAVE/SUAVE-2.5.0/trunk/SUAVE/Methods/Noise/Fidelity_One/Airframe/__init__.py | Vinicius-Tanigawa/Undergraduate-Research-Project | e92372f07882484b127d7affe305eeec2238b8a9 | [
"MIT"
] | null | null | null | SUAVE/SUAVE-2.5.0/trunk/SUAVE/Methods/Noise/Fidelity_One/Airframe/__init__.py | Vinicius-Tanigawa/Undergraduate-Research-Project | e92372f07882484b127d7affe305eeec2238b8a9 | [
"MIT"
] | null | null | null | SUAVE/SUAVE-2.5.0/trunk/SUAVE/Methods/Noise/Fidelity_One/Airframe/__init__.py | Vinicius-Tanigawa/Undergraduate-Research-Project | e92372f07882484b127d7affe305eeec2238b8a9 | [
"MIT"
] | null | null | null | ## @defgroup Methods-Noise-Fidelity_One-Airframe Airframe
# Fidelity One level noise calculations for the airframe components
# @ingroup Methods-Noise-Fidelity_One
from .noise_airframe_Fink import noise_airframe_Fink
from .noise_clean_wing import noise_clean_wing
from .noise_landing_gear import nois... | 46 | 67 | 0.83913 | 65 | 460 | 5.538462 | 0.369231 | 0.125 | 0.111111 | 0.127778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126087 | 460 | 9 | 68 | 51.111111 | 0.895522 | 0.33913 | 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 |
89babce9daea95eec04300f53499755d42ad1854 | 116 | py | Python | src/rst2sh5/meta.py | sinoroc/rst2sh5 | 04d5609681faf107913ebc3d4ffd74e3b125afb7 | [
"Apache-2.0"
] | 2 | 2019-03-12T04:05:03.000Z | 2019-03-12T04:05:04.000Z | src/rst2sh5/meta.py | sinoroc/rst2sh5 | 04d5609681faf107913ebc3d4ffd74e3b125afb7 | [
"Apache-2.0"
] | 1 | 2021-06-26T22:16:24.000Z | 2021-06-27T17:04:07.000Z | src/rst2sh5/meta.py | sinoroc/rst2sh5 | 04d5609681faf107913ebc3d4ffd74e3b125afb7 | [
"Apache-2.0"
] | null | null | null | #
"""Meta info."""
import importlib_metadata
NAME = 'rst2sh5'
VERSION = importlib_metadata.version(NAME)
# EOF
| 9.666667 | 42 | 0.706897 | 13 | 116 | 6.153846 | 0.692308 | 0.425 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020408 | 0.155172 | 116 | 11 | 43 | 10.545455 | 0.795918 | 0.12931 | 0 | 0 | 0 | 0 | 0.074468 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
9820e3065f48fd7ea228a4b1210b220624c6d776 | 715 | py | Python | day1/test.py | Carouelle/advent-of-code-2017 | c23e198239cb3aca7326fc054cc2586a5944e862 | [
"MIT"
] | null | null | null | day1/test.py | Carouelle/advent-of-code-2017 | c23e198239cb3aca7326fc054cc2586a5944e862 | [
"MIT"
] | null | null | null | day1/test.py | Carouelle/advent-of-code-2017 | c23e198239cb3aca7326fc054cc2586a5944e862 | [
"MIT"
] | null | null | null | import unittest
import day1
import day1_part2
class TestDay1(unittest.TestCase):
def test_day1(self):
self.assertEqual(day1.find_sum('1122'), 3)
self.assertEqual(day1.find_sum('1111'), 4)
self.assertEqual(day1.find_sum('1234'), 0)
self.assertEqual(day1.find_sum('9121212... | 29.791667 | 61 | 0.654545 | 93 | 715 | 4.752688 | 0.333333 | 0.30543 | 0.386878 | 0.271493 | 0.585973 | 0.350679 | 0 | 0 | 0 | 0 | 0 | 0.13933 | 0.206993 | 715 | 23 | 62 | 31.086957 | 0.640212 | 0 | 0 | 0 | 0 | 0 | 0.080925 | 0 | 0 | 0 | 0 | 0 | 0.529412 | 1 | 0.117647 | false | 0 | 0.176471 | 0 | 0.352941 | 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 |
9830a6bc6ef00d235830e999a1aee4ec5729e7a9 | 158 | py | Python | test/src/Python/BinOp/multiply.py | milliburn/llvmPy | d6fa3002e823fae00cf33d9b2ea480604681376c | [
"MIT"
] | 1 | 2019-01-22T02:58:04.000Z | 2019-01-22T02:58:04.000Z | test/src/Python/BinOp/multiply.py | roberth-k/llvmPy | d6fa3002e823fae00cf33d9b2ea480604681376c | [
"MIT"
] | null | null | null | test/src/Python/BinOp/multiply.py | roberth-k/llvmPy | d6fa3002e823fae00cf33d9b2ea480604681376c | [
"MIT"
] | null | null | null | # RUN: llvmPy %s > %t1
# RUN: cat -n %t1 >&2
# RUN: cat %t1 | FileCheck %s
print(1 * 2)
# CHECK: 2
print(2 * 2)
# CHECK-NEXT: 4
print(0 * 2)
# CHECK-NEXT: 0
| 14.363636 | 29 | 0.550633 | 31 | 158 | 2.806452 | 0.451613 | 0.206897 | 0.229885 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108333 | 0.240506 | 158 | 10 | 30 | 15.8 | 0.616667 | 0.664557 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
984f8813d4554bd671dfd9c0e961975df9f88eff | 64 | py | Python | jionlp/util/__init__.py | Hello-Toufu/jionlp | fd647340fc020e0ec5d83975c18873828ec3c43a | [
"Apache-2.0"
] | 1 | 2021-01-26T03:08:42.000Z | 2021-01-26T03:08:42.000Z | jionlp/util/__init__.py | Hello-Toufu/jionlp | fd647340fc020e0ec5d83975c18873828ec3c43a | [
"Apache-2.0"
] | null | null | null | jionlp/util/__init__.py | Hello-Toufu/jionlp | fd647340fc020e0ec5d83975c18873828ec3c43a | [
"Apache-2.0"
] | 1 | 2021-11-19T16:01:09.000Z | 2021-11-19T16:01:09.000Z | # -*- coding=utf-8 -*-
import os
from .file_io import *
| 5.333333 | 22 | 0.546875 | 9 | 64 | 3.777778 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021739 | 0.28125 | 64 | 11 | 23 | 5.818182 | 0.717391 | 0.3125 | 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 | 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 |
985658fc698c3ab706a72f9e3bad0e29fc5767c0 | 100 | py | Python | Programmers/[cutz]cutomized sort.py | cutz-j/AlgorithmStudy | de0f81220e29bd5e109d174800f507b12a3bee36 | [
"MIT"
] | 3 | 2019-11-26T14:31:01.000Z | 2020-01-10T18:19:46.000Z | Programmers/[cutz]cutomized sort.py | cutz-j/AlgorithmStudy | de0f81220e29bd5e109d174800f507b12a3bee36 | [
"MIT"
] | null | null | null | Programmers/[cutz]cutomized sort.py | cutz-j/AlgorithmStudy | de0f81220e29bd5e109d174800f507b12a3bee36 | [
"MIT"
] | null | null | null | def solution(strings, n):
answer = sorted(sorted(strings), key=lambda x: x[n])
return answer | 33.333333 | 56 | 0.68 | 15 | 100 | 4.533333 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.18 | 100 | 3 | 57 | 33.333333 | 0.829268 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
98743ca8540f360019758bf4cf7958c303e3bebf | 378 | py | Python | tests/cors_middleware_order/test_cors_middleware_order.py | Bakhtiyar-Garashov/flake8-fastapi | 81e774defcae377e77c1986ca780a922b27d2757 | [
"MIT"
] | 20 | 2021-06-01T20:53:46.000Z | 2022-01-29T21:35:46.000Z | tests/cors_middleware_order/test_cors_middleware_order.py | Bakhtiyar-Garashov/flake8-fastapi | 81e774defcae377e77c1986ca780a922b27d2757 | [
"MIT"
] | 13 | 2021-06-02T15:26:22.000Z | 2021-07-25T13:27:59.000Z | tests/cors_middleware_order/test_cors_middleware_order.py | Bakhtiyar-Garashov/flake8-fastapi | 81e774defcae377e77c1986ca780a922b27d2757 | [
"MIT"
] | 3 | 2021-06-01T21:16:58.000Z | 2022-01-29T21:39:29.000Z | from flake8_plugin_utils import assert_error, assert_not_error
from flake8_fastapi.errors import CORSMiddlewareOrderError
from flake8_fastapi.visitors import CORSMiddlewareOrder
def test_code_with_error(code: str):
assert_error(CORSMiddlewareOrder, code, CORSMiddlewareOrderError)
def test_code_without_error(co... | 29.076923 | 69 | 0.854497 | 46 | 378 | 6.673913 | 0.413043 | 0.09772 | 0.091205 | 0.117264 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008798 | 0.097884 | 378 | 12 | 70 | 31.5 | 0.891496 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.428571 | 1 | 0.285714 | false | 0 | 0.428571 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
98a7e48065cf3530e6862467f36d73455cdb5264 | 134 | py | Python | rio/blueprints/health.py | soasme/rio | e6b89634db8d3ad75ac7f7b25ddec5b19d4f66e2 | [
"MIT"
] | null | null | null | rio/blueprints/health.py | soasme/rio | e6b89634db8d3ad75ac7f7b25ddec5b19d4f66e2 | [
"MIT"
] | 14 | 2016-04-14T04:18:41.000Z | 2016-05-12T03:46:37.000Z | rio/blueprints/health.py | soasme/rio | e6b89634db8d3ad75ac7f7b25ddec5b19d4f66e2 | [
"MIT"
] | 1 | 2016-04-06T08:54:20.000Z | 2016-04-06T08:54:20.000Z | # -*- coding: utf-8 -*-
from flask import Blueprint
bp = Blueprint('health', __name__)
@bp.route('/')
def index():
return 'OK'
| 13.4 | 34 | 0.61194 | 17 | 134 | 4.588235 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009174 | 0.186567 | 134 | 9 | 35 | 14.888889 | 0.706422 | 0.156716 | 0 | 0 | 0 | 0 | 0.081081 | 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 |
7f4ce2d4c31864ee5859ef7658f75280787e2a25 | 22 | py | Python | virtual/lib/python3.8/site-packages/isort/_version.py | erastus-1/GramApp | d926a8a894b5dc673d077b35f9df867dab737372 | [
"MIT"
] | 117 | 2015-11-30T09:52:52.000Z | 2021-11-24T23:58:13.000Z | virtual/lib/python3.8/site-packages/isort/_version.py | erastus-1/GramApp | d926a8a894b5dc673d077b35f9df867dab737372 | [
"MIT"
] | 57 | 2015-12-08T10:06:57.000Z | 2018-03-28T11:13:11.000Z | virtual/lib/python3.8/site-packages/isort/_version.py | erastus-1/GramApp | d926a8a894b5dc673d077b35f9df867dab737372 | [
"MIT"
] | 33 | 2015-01-21T08:02:40.000Z | 2022-03-25T06:02:04.000Z | __version__ = "5.7.0"
| 11 | 21 | 0.636364 | 4 | 22 | 2.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 0.136364 | 22 | 1 | 22 | 22 | 0.368421 | 0 | 0 | 0 | 0 | 0 | 0.227273 | 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 |
7f5757313dd365225bf6f6847cf132ab173ecb6a | 3,287 | py | Python | tests/test_template_directive.py | benhoyt/symplate | 2895111d2ca8757bbdf0c783e612957cae9de517 | [
"BSD-3-Clause"
] | 12 | 2016-05-17T12:19:04.000Z | 2020-06-01T23:14:41.000Z | tests/test_template_directive.py | benhoyt/symplate | 2895111d2ca8757bbdf0c783e612957cae9de517 | [
"BSD-3-Clause"
] | 1 | 2019-02-19T01:40:37.000Z | 2019-02-19T01:40:37.000Z | tests/test_template_directive.py | benhoyt/symplate | 2895111d2ca8757bbdf0c783e612957cae9de517 | [
"BSD-3-Clause"
] | 3 | 2015-04-05T13:40:46.000Z | 2019-02-19T00:03:05.000Z | """Unit tests for the {% template ... %} directive."""
import unittest
import utils
class TestTemplateDirective(utils.TestCase):
def test_no_args(self):
template = "{% template %}a{{'b'}}c"
self.assertEqual(self.render(template), 'abc')
self.assertRaises(TypeError, self.render, template, ... | 47.637681 | 104 | 0.600548 | 412 | 3,287 | 4.708738 | 0.148058 | 0.175258 | 0.250515 | 0.270619 | 0.670103 | 0.587113 | 0.469072 | 0.373711 | 0.336598 | 0.336598 | 0 | 0.010143 | 0.190143 | 3,287 | 68 | 105 | 48.338235 | 0.718633 | 0.014603 | 0 | 0.226415 | 0 | 0 | 0.217754 | 0 | 0 | 0 | 0 | 0 | 0.641509 | 1 | 0.207547 | false | 0 | 0.037736 | 0 | 0.264151 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
7f8bed91f5a15166d1fba8750306d01616afccda | 218 | py | Python | 6_command/stereo_on_command.py | hypersport/Head-First-Design-Patterns-Python | 0c8b831ae89ebbbef8b203b96508deb7e3063590 | [
"MIT"
] | null | null | null | 6_command/stereo_on_command.py | hypersport/Head-First-Design-Patterns-Python | 0c8b831ae89ebbbef8b203b96508deb7e3063590 | [
"MIT"
] | null | null | null | 6_command/stereo_on_command.py | hypersport/Head-First-Design-Patterns-Python | 0c8b831ae89ebbbef8b203b96508deb7e3063590 | [
"MIT"
] | null | null | null | from command import Command
class StereoOnCommand(Command):
def __init__(self, stereo):
self.stereo = stereo
def excuse(self):
self.stereo.on()
def undo(self):
self.stereo.off()
| 16.769231 | 31 | 0.62844 | 26 | 218 | 5.115385 | 0.5 | 0.300752 | 0.210526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.266055 | 218 | 12 | 32 | 18.166667 | 0.83125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0.125 | 0 | 0.625 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
7fa3599cca8918bf13f4edd4212c1990663b4ca3 | 96 | py | Python | parsl/app/mult.py | monicadlewis97/parsl | 57038b7cc92ce26b8f5a45c193180a9452fd6320 | [
"Apache-2.0"
] | null | null | null | parsl/app/mult.py | monicadlewis97/parsl | 57038b7cc92ce26b8f5a45c193180a9452fd6320 | [
"Apache-2.0"
] | null | null | null | parsl/app/mult.py | monicadlewis97/parsl | 57038b7cc92ce26b8f5a45c193180a9452fd6320 | [
"Apache-2.0"
] | null | null | null | import logging
import multiprocessing
logger = logging.getLogger(__name__)
import sys
| 9.6 | 37 | 0.760417 | 10 | 96 | 6.9 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.197917 | 96 | 9 | 38 | 10.666667 | 0.896104 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
7fa6798b8d70aafb2450ce81b9176560926e531b | 3,054 | py | Python | tests/command_line/test_ssx_index.py | PrinceWalnut/dials | 13bbd3be1e3869a58b4eb2aa2717a4fcf33278f2 | [
"BSD-3-Clause"
] | null | null | null | tests/command_line/test_ssx_index.py | PrinceWalnut/dials | 13bbd3be1e3869a58b4eb2aa2717a4fcf33278f2 | [
"BSD-3-Clause"
] | null | null | null | tests/command_line/test_ssx_index.py | PrinceWalnut/dials | 13bbd3be1e3869a58b4eb2aa2717a4fcf33278f2 | [
"BSD-3-Clause"
] | null | null | null | from __future__ import annotations
import os.path
import procrunner
import pytest
from dxtbx.serialize import load
from dials.command_line.ssx_index import run
@pytest.mark.xfel
def test_ssx_index_reference_geometry(dials_data, tmp_path):
ssx = dials_data("cunir_serial_processed", pathlib=True)
expts = ss... | 34.704545 | 85 | 0.70072 | 449 | 3,054 | 4.54343 | 0.22049 | 0.048039 | 0.038235 | 0.071078 | 0.817157 | 0.806863 | 0.778922 | 0.673529 | 0.673529 | 0.673529 | 0 | 0.021566 | 0.180092 | 3,054 | 87 | 86 | 35.103448 | 0.793131 | 0.096267 | 0 | 0.507692 | 0 | 0 | 0.211119 | 0.08939 | 0 | 0 | 0 | 0 | 0.276923 | 1 | 0.061538 | false | 0 | 0.153846 | 0 | 0.215385 | 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 |
7fbe9b6769e7dad63875b38d96fbfdcdc3c95e60 | 876 | py | Python | gardenizer/tests/unit test/account/test_account_urls.py | plegulluche/OPC-P13 | 0bad4e1bd7293e5a3397611f80df00ca2fd9cf60 | [
"Unlicense"
] | null | null | null | gardenizer/tests/unit test/account/test_account_urls.py | plegulluche/OPC-P13 | 0bad4e1bd7293e5a3397611f80df00ca2fd9cf60 | [
"Unlicense"
] | null | null | null | gardenizer/tests/unit test/account/test_account_urls.py | plegulluche/OPC-P13 | 0bad4e1bd7293e5a3397611f80df00ca2fd9cf60 | [
"Unlicense"
] | null | null | null | from django.urls import reverse, resolve
def test_register():
path = reverse("register")
assert path == "/register/"
assert resolve(path).view_name == "register"
def test_login():
path = reverse("login")
assert path == "/login/"
assert resolve(path).view_name == "login"
def test_logout():
... | 23.052632 | 56 | 0.664384 | 104 | 876 | 5.423077 | 0.173077 | 0.074468 | 0.180851 | 0.223404 | 0.303191 | 0.170213 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190639 | 876 | 37 | 57 | 23.675676 | 0.795487 | 0 | 0 | 0 | 0 | 0 | 0.19863 | 0 | 0 | 0 | 0 | 0 | 0.48 | 1 | 0.24 | false | 0 | 0.04 | 0 | 0.28 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
f6be4d25c12a70c60fcef7f81ccf9ddb8b83a590 | 153 | py | Python | locale/pot/api/core/_autosummary/pyvista-Light-shadow_attenuation-1.py | tkoyama010/pyvista-doc-translations | 23bb813387b7f8bfe17e86c2244d5dd2243990db | [
"MIT"
] | 4 | 2020-08-07T08:19:19.000Z | 2020-12-04T09:51:11.000Z | locale/pot/api/core/_autosummary/pyvista-Light-shadow_attenuation-1.py | tkoyama010/pyvista-doc-translations | 23bb813387b7f8bfe17e86c2244d5dd2243990db | [
"MIT"
] | 19 | 2020-08-06T00:24:30.000Z | 2022-03-30T19:22:24.000Z | locale/pot/api/core/_autosummary/pyvista-Light-shadow_attenuation-1.py | tkoyama010/pyvista-doc-translations | 23bb813387b7f8bfe17e86c2244d5dd2243990db | [
"MIT"
] | 1 | 2021-03-09T07:50:40.000Z | 2021-03-09T07:50:40.000Z | # Set the shadow attenuation to 0.5
#
import pyvista as pv
light = pv.Light()
light.shadow_attenuation = 0.5
light.shadow_attenuation
# Expected:
## 0.5
| 17 | 35 | 0.745098 | 25 | 153 | 4.48 | 0.52 | 0.455357 | 0.392857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046154 | 0.150327 | 153 | 8 | 36 | 19.125 | 0.815385 | 0.30719 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 |
f6c6b25eeff520eff41f504800d2e5a2f9232422 | 292 | py | Python | super_taxi/model/buses.py | sanjayatb/taxi-booking-system | b78f8ab00a7f6d12c786331880242ce0306480bb | [
"MIT"
] | null | null | null | super_taxi/model/buses.py | sanjayatb/taxi-booking-system | b78f8ab00a7f6d12c786331880242ce0306480bb | [
"MIT"
] | null | null | null | super_taxi/model/buses.py | sanjayatb/taxi-booking-system | b78f8ab00a7f6d12c786331880242ce0306480bb | [
"MIT"
] | 1 | 2021-09-17T18:23:13.000Z | 2021-09-17T18:23:13.000Z | from super_taxi.model.generics import Vehicle
class SmallBus(Vehicle):
def __init__(self):
Vehicle.__init__(self)
class MediumBus(Vehicle):
def __init__(self):
Vehicle.__init__(self)
class LargeBus(Vehicle):
def __init__(self):
Vehicle.__init__(self) | 18.25 | 45 | 0.695205 | 34 | 292 | 5.235294 | 0.411765 | 0.269663 | 0.235955 | 0.303371 | 0.61236 | 0.61236 | 0.61236 | 0.426966 | 0 | 0 | 0 | 0 | 0.205479 | 292 | 16 | 46 | 18.25 | 0.767241 | 0 | 0 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.1 | 0 | 0.7 | 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 |
f6dc1a441867a415b1e0348d8ca31f933b6fdec3 | 2,164 | py | Python | tests/python/gaia-ui-tests/gaiatest/apps/phone/regions/call_log.py | wilsonpage/gaia | d0beeca2401ff90564dfcbe45ee5237d46605ab8 | [
"Apache-2.0"
] | 1 | 2019-09-07T18:44:40.000Z | 2019-09-07T18:44:40.000Z | tests/python/gaia-ui-tests/gaiatest/apps/phone/regions/call_log.py | wilsonpage/gaia | d0beeca2401ff90564dfcbe45ee5237d46605ab8 | [
"Apache-2.0"
] | 3 | 2016-09-10T15:41:48.000Z | 2016-09-10T15:42:41.000Z | tests/python/gaia-ui-tests/gaiatest/apps/phone/regions/call_log.py | wilsonpage/gaia | d0beeca2401ff90564dfcbe45ee5237d46605ab8 | [
"Apache-2.0"
] | 1 | 2016-01-25T22:23:32.000Z | 2016-01-25T22:23:32.000Z | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
from marionette.by import By
from gaiatest.apps.phone.app import Phone
class CallLog(Phone):
_upgrade_progress_lo... | 41.615385 | 119 | 0.745841 | 333 | 2,164 | 4.441441 | 0.333333 | 0.086545 | 0.0595 | 0.057471 | 0.359026 | 0.217715 | 0.200135 | 0.103448 | 0.103448 | 0.103448 | 0 | 0.004364 | 0.152957 | 2,164 | 51 | 120 | 42.431373 | 0.80251 | 0.140481 | 0 | 0.117647 | 0 | 0 | 0.109434 | 0.01186 | 0 | 0 | 0 | 0.019608 | 0 | 1 | 0.205882 | false | 0 | 0.058824 | 0.117647 | 0.735294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
f6fbf7ddf53c976cca1f64f5c976fee7da083e42 | 76 | py | Python | tools/data/__init__.py | limazix/kaggle-indoor-navigation | 6e9b665e4f288f8c38747fb22fc783782916c4ed | [
"Apache-2.0"
] | null | null | null | tools/data/__init__.py | limazix/kaggle-indoor-navigation | 6e9b665e4f288f8c38747fb22fc783782916c4ed | [
"Apache-2.0"
] | null | null | null | tools/data/__init__.py | limazix/kaggle-indoor-navigation | 6e9b665e4f288f8c38747fb22fc783782916c4ed | [
"Apache-2.0"
] | null | null | null | # -*- utf-8 -*-
from .data_loader import DataLoader
__all__: [DataLoader]
| 12.666667 | 35 | 0.684211 | 9 | 76 | 5.222222 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015625 | 0.157895 | 76 | 5 | 36 | 15.2 | 0.71875 | 0.171053 | 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 |
1019cd89d75558b75fb8482624fb32f3aabc2ca0 | 2,235 | py | Python | 13235_InverseRMQ/main.test.py | Peter-Liang/TopCoder | 14c8b2939b3979064f545aee36c9361e027bdc84 | [
"MIT"
] | null | null | null | 13235_InverseRMQ/main.test.py | Peter-Liang/TopCoder | 14c8b2939b3979064f545aee36c9361e027bdc84 | [
"MIT"
] | null | null | null | 13235_InverseRMQ/main.test.py | Peter-Liang/TopCoder | 14c8b2939b3979064f545aee36c9361e027bdc84 | [
"MIT"
] | 1 | 2018-07-01T07:11:07.000Z | 2018-07-01T07:11:07.000Z | import unittest
from main import InverseRMQ
class TestInverseRMQ(unittest.TestCase):
def setUp(self):
self.inverseRMQ = InverseRMQ()
def testSolve(self):
self.assertEqual('Possible', self.inverseRMQ.possible(5, [1, 2, 4], [2, 4, 5], [3, 4, 5]))
self.assertEqual('Impossible', self.inve... | 93.125 | 656 | 0.605817 | 360 | 2,235 | 3.738889 | 0.358333 | 0.135215 | 0.196137 | 0.150817 | 0.485884 | 0.485884 | 0.22214 | 0.179792 | 0.01263 | 0 | 0 | 0.354396 | 0.185682 | 2,235 | 24 | 657 | 93.125 | 0.385165 | 0 | 0 | 0 | 0 | 0 | 0.052773 | 0 | 0 | 0 | 0 | 0 | 0.6 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
63e2ee1b9bed9998f689aa9a2d676bb6cfef38b5 | 126,947 | py | Python | main_rc.py | pipibear/email-sender | 0b10b431ed25c3a9f36982edb5571b8ef31257cf | [
"Apache-2.0"
] | 1 | 2020-05-08T05:20:18.000Z | 2020-05-08T05:20:18.000Z | main_rc.py | pipibear/email-sender | 0b10b431ed25c3a9f36982edb5571b8ef31257cf | [
"Apache-2.0"
] | null | null | null | main_rc.py | pipibear/email-sender | 0b10b431ed25c3a9f36982edb5571b8ef31257cf | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Resource object code
#
# Created by: The Resource Compiler for PyQt5 (Qt v5.12.2)
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore
qt_resource_data = b"\
\x00\x00\x00\xad\
\x89\
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
... | 63.378432 | 104 | 0.714913 | 30,169 | 126,947 | 3.006994 | 0.010176 | 0.050927 | 0.075696 | 0.100002 | 0.394519 | 0.378183 | 0.36759 | 0.358628 | 0.355321 | 0.352543 | 0 | 0.31468 | 0.032234 | 126,947 | 2,002 | 105 | 63.41009 | 0.423735 | 0.001197 | 0 | 0.311682 | 0 | 0.936052 | 0.000008 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0.001007 | false | 0 | 0.000504 | 0 | 0.001511 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
63e6edbe697a830a1d17bbb9d188b70455ab60fa | 169 | py | Python | portfolio/views.py | Wolemercy/wolewebsite | 9b3af2cd816be633505b56f8895179981dd2a2e8 | [
"MIT"
] | null | null | null | portfolio/views.py | Wolemercy/wolewebsite | 9b3af2cd816be633505b56f8895179981dd2a2e8 | [
"MIT"
] | null | null | null | portfolio/views.py | Wolemercy/wolewebsite | 9b3af2cd816be633505b56f8895179981dd2a2e8 | [
"MIT"
] | null | null | null | from django.shortcuts import render
# Create your views here.
def index(request):
context={}
return render(request, 'portfolio/base.html', context=context) | 28.166667 | 66 | 0.721893 | 21 | 169 | 5.809524 | 0.809524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171598 | 169 | 6 | 66 | 28.166667 | 0.871429 | 0.136095 | 0 | 0 | 0 | 0 | 0.135714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
63ff6ebeca06681b8e624be91d1ea5299ceef07b | 1,079 | py | Python | source/project/models.py | IUS-CS/Capstone-1 | 0dd00f26c921c37ee5aa0339ebc9b8ec307daeb9 | [
"MIT"
] | null | null | null | source/project/models.py | IUS-CS/Capstone-1 | 0dd00f26c921c37ee5aa0339ebc9b8ec307daeb9 | [
"MIT"
] | null | null | null | source/project/models.py | IUS-CS/Capstone-1 | 0dd00f26c921c37ee5aa0339ebc9b8ec307daeb9 | [
"MIT"
] | null | null | null | from source import db, login_manager
from werkzeug.security import generate_password_hash, check_password_hash
from flask_login import UserMixin
#load users allows flask loging to load the current user and grab their # ID
@login_manager.user_loader
def load_user(user_id):
return User.query.get(user_id)
###THIS... | 32.69697 | 100 | 0.73772 | 153 | 1,079 | 5.019608 | 0.45098 | 0.109375 | 0.052083 | 0.0625 | 0.096354 | 0.096354 | 0.096354 | 0.096354 | 0.096354 | 0 | 0 | 0.00791 | 0.179796 | 1,079 | 32 | 101 | 33.71875 | 0.859887 | 0.231696 | 0 | 0 | 1 | 0 | 0.00609 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.333333 | 0.166667 | 0.111111 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
1223d4937b34c9dc3c168d107775167524693aed | 146 | py | Python | src/voting_scheme_option.py | Brechard/TVA | a95ad5438da3bc5bc1bbc3b1e1ede39f10160507 | [
"MIT"
] | 1 | 2019-02-10T12:07:04.000Z | 2019-02-10T12:07:04.000Z | src/voting_scheme_option.py | Brechard/TVA | a95ad5438da3bc5bc1bbc3b1e1ede39f10160507 | [
"MIT"
] | null | null | null | src/voting_scheme_option.py | Brechard/TVA | a95ad5438da3bc5bc1bbc3b1e1ede39f10160507 | [
"MIT"
] | 1 | 2020-11-16T17:58:23.000Z | 2020-11-16T17:58:23.000Z | from enum import Enum
class VotingSchemeOption(int):
PLURALITY_VOTING = 0
ANTI_PLURALITY_VOTING = 1
VOTING_FOR_TWO = 2
BORDA = 3 | 18.25 | 30 | 0.712329 | 20 | 146 | 4.95 | 0.8 | 0.30303 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036036 | 0.239726 | 146 | 8 | 31 | 18.25 | 0.855856 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 1 | 0 | 1 | 0 | 0 | null | 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 |
126dfddb98e8b46dc8cf471f144410e39dc56b7a | 33 | py | Python | Python/S1152.py | irostub/Beakjoon-Problem-Solving | 3a230cbd16ade4ed7cc1da7f36085853d69d673d | [
"Beerware"
] | null | null | null | Python/S1152.py | irostub/Beakjoon-Problem-Solving | 3a230cbd16ade4ed7cc1da7f36085853d69d673d | [
"Beerware"
] | null | null | null | Python/S1152.py | irostub/Beakjoon-Problem-Solving | 3a230cbd16ade4ed7cc1da7f36085853d69d673d | [
"Beerware"
] | null | null | null | S = input().split()
print(len(S)) | 16.5 | 19 | 0.606061 | 6 | 33 | 3.333333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 33 | 2 | 20 | 16.5 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
89ddfe5c951d669586c7d6e4cc9e7172fe2d2ee7 | 15,473 | py | Python | tests/json/shape_json.py | ess-dmsc/nexus-constructor | ae0026c48f8f2d4d88d3ff00e45cb6591983853b | [
"BSD-2-Clause"
] | 3 | 2019-05-31T08:38:25.000Z | 2022-01-06T09:23:21.000Z | tests/json/shape_json.py | ess-dmsc/nexus-constructor | ae0026c48f8f2d4d88d3ff00e45cb6591983853b | [
"BSD-2-Clause"
] | 709 | 2019-02-06T08:23:07.000Z | 2022-03-29T23:03:37.000Z | tests/json/shape_json.py | ess-dmsc/nexus-constructor | ae0026c48f8f2d4d88d3ff00e45cb6591983853b | [
"BSD-2-Clause"
] | 2 | 2020-03-06T09:58:56.000Z | 2020-08-04T18:32:57.000Z | import json
from typing import Dict
import pytest
@pytest.fixture(scope="function")
def off_pixel_mapping() -> Dict:
off_shape = """
{
"name": "shape",
"attributes": [
{
"name": "NX_class",
"type": "string",
... | 22.555394 | 51 | 0.300006 | 909 | 15,473 | 5.072607 | 0.215622 | 0.016916 | 0.026025 | 0.019952 | 0.690089 | 0.647582 | 0.589026 | 0.589026 | 0.589026 | 0.567773 | 0 | 0.545901 | 0.605054 | 15,473 | 685 | 52 | 22.588321 | 0.20864 | 0.003038 | 0 | 0.625557 | 0 | 0 | 0.964439 | 0.118559 | 0 | 0 | 0 | 0 | 0 | 1 | 0.005944 | false | 0 | 0.004458 | 0 | 0.016345 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
89ec63b75b79c86bf8ad288bfd89d2e2e5830c3b | 261 | py | Python | strings/unicode.py | janbodnar/Python-Course | 51705ab5a2adef52bcdb99a800e94c0d67144a38 | [
"BSD-2-Clause"
] | 13 | 2017-08-22T12:26:07.000Z | 2021-07-29T16:13:50.000Z | strings/unicode.py | janbodnar/Python-Course | 51705ab5a2adef52bcdb99a800e94c0d67144a38 | [
"BSD-2-Clause"
] | 1 | 2021-02-08T10:24:33.000Z | 2021-02-08T10:24:33.000Z | strings/unicode.py | janbodnar/Python-Course | 51705ab5a2adef52bcdb99a800e94c0d67144a38 | [
"BSD-2-Clause"
] | 17 | 2018-08-13T11:10:33.000Z | 2021-07-29T16:14:02.000Z | #!/usr/bin/python
# unicode.py
text = u'\u041b\u0435\u0432 \u041d\u0438\u043a\u043e\u043b\u0430\
\u0435\u0432\u0438\u0447 \u0422\u043e\u043b\u0441\u0442\u043e\u0439: \n\
\u0410\u043d\u043d\u0430 \u041a\u0430\u0440\u0435\u043d\u0438\u043d\u0430'
print (text)
| 26.1 | 74 | 0.750958 | 42 | 261 | 4.666667 | 0.642857 | 0.102041 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.471311 | 0.065134 | 261 | 9 | 75 | 29 | 0.331967 | 0.103448 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
d64cb6960d8364727a6a0aaf799e2e13546fd944 | 215 | py | Python | pycloudflare/exceptions.py | yola/pycloudflare | 61e50535f7a601b4d4c336a5d9e558203c1a1694 | [
"MIT"
] | 3 | 2015-09-09T18:55:46.000Z | 2019-05-16T15:54:12.000Z | pycloudflare/exceptions.py | yola/pycloudflare | 61e50535f7a601b4d4c336a5d9e558203c1a1694 | [
"MIT"
] | 44 | 2015-08-05T04:27:43.000Z | 2021-12-08T09:39:40.000Z | pycloudflare/exceptions.py | yola/pycloudflare | 61e50535f7a601b4d4c336a5d9e558203c1a1694 | [
"MIT"
] | 5 | 2015-09-13T23:06:24.000Z | 2020-11-10T20:02:00.000Z | class SSLUnavailable(Exception):
"""If you haven't verified a CNAME zone within the grace period (a week),
it can't be verified any more.
"""
pass
class CustomHostnameNotFound(Exception):
pass
| 21.5 | 77 | 0.693023 | 29 | 215 | 5.137931 | 0.793103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.223256 | 215 | 9 | 78 | 23.888889 | 0.892216 | 0.469767 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
c39747b682a707b2efd1cbe46a3d0be17f25e673 | 140 | py | Python | setup.py | embedded-machine-learning/ShuntConnector | 1d02a51e49cf8e20cf36b96ece40abf20a679237 | [
"Apache-2.0"
] | 1 | 2021-06-28T09:50:54.000Z | 2021-06-28T09:50:54.000Z | setup.py | embedded-machine-learning/ShuntConnector | 1d02a51e49cf8e20cf36b96ece40abf20a679237 | [
"Apache-2.0"
] | null | null | null | setup.py | embedded-machine-learning/ShuntConnector | 1d02a51e49cf8e20cf36b96ece40abf20a679237 | [
"Apache-2.0"
] | null | null | null | import setuptools
setuptools.setup(name='shunt_connector',
version='0.1.0',
packages=['shunt_connector']) | 28 | 46 | 0.592857 | 14 | 140 | 5.785714 | 0.714286 | 0.345679 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029703 | 0.278571 | 140 | 5 | 46 | 28 | 0.772277 | 0 | 0 | 0 | 0 | 0 | 0.248227 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
c3a145faee1f0abbc71383ea4c9252a07b4fd6cd | 230 | py | Python | gameapi/serializers.py | strayfluxinteractive/castrumserver | f0cd9a614e011f3e91c21fa129ee6554206fd1fc | [
"MIT"
] | null | null | null | gameapi/serializers.py | strayfluxinteractive/castrumserver | f0cd9a614e011f3e91c21fa129ee6554206fd1fc | [
"MIT"
] | null | null | null | gameapi/serializers.py | strayfluxinteractive/castrumserver | f0cd9a614e011f3e91c21fa129ee6554206fd1fc | [
"MIT"
] | null | null | null | from django.forms import widgets
from rest_framework import serializers
from gameapi.models import World
class WorldSerializer(serializers.ModelSerializer):
class Meta:
model = World
fields = ('id', 'created', 'title')
| 25.555556 | 51 | 0.765217 | 27 | 230 | 6.481481 | 0.740741 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152174 | 230 | 8 | 52 | 28.75 | 0.897436 | 0 | 0 | 0 | 0 | 0 | 0.06087 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.714286 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
c3a4e89f2bd1219f732f2d16bd5aaaef9b757964 | 15 | py | Python | __init__.py | CiscoW/cli_tool | 6c371d34ef0f2cb9235bdda6b60a5fdb36efbf66 | [
"MIT"
] | 1 | 2020-08-19T13:26:32.000Z | 2020-08-19T13:26:32.000Z | __init__.py | CiscoW/cli_tool | 6c371d34ef0f2cb9235bdda6b60a5fdb36efbf66 | [
"MIT"
] | null | null | null | __init__.py | CiscoW/cli_tool | 6c371d34ef0f2cb9235bdda6b60a5fdb36efbf66 | [
"MIT"
] | null | null | null | """
CLITool
""" | 5 | 7 | 0.466667 | 1 | 15 | 7 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 15 | 3 | 8 | 5 | 0.538462 | 0.466667 | 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 |
c3da61ef93b64ed649e6e42433b0797191c9efef | 173 | py | Python | ofgroup/PermutationGroup.py | ofey404/ofgroup | c1577767c8586929979d704de51f1762bcdf3eb1 | [
"BSD-2-Clause"
] | null | null | null | ofgroup/PermutationGroup.py | ofey404/ofgroup | c1577767c8586929979d704de51f1762bcdf3eb1 | [
"BSD-2-Clause"
] | null | null | null | ofgroup/PermutationGroup.py | ofey404/ofgroup | c1577767c8586929979d704de51f1762bcdf3eb1 | [
"BSD-2-Clause"
] | null | null | null | '''
@Author: Ofey Chan
@Date: 2020-03-03 19:23:15
@LastEditors: Ofey Chan
@LastEditTime: 2020-03-03 20:07:31
@Description: General permutation group class.
@Reference:
'''
| 19.222222 | 46 | 0.722543 | 26 | 173 | 4.807692 | 0.769231 | 0.128 | 0.128 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184211 | 0.121387 | 173 | 8 | 47 | 21.625 | 0.638158 | 0.942197 | 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 |
c3e2c9d659f735b61bcf40f969dff7c5790094d3 | 51 | py | Python | pharmap/commands/__init__.py | bameda/pharmap-api | 71f5353c19951a4350c3ace2855063093924f061 | [
"MIT"
] | null | null | null | pharmap/commands/__init__.py | bameda/pharmap-api | 71f5353c19951a4350c3ace2855063093924f061 | [
"MIT"
] | null | null | null | pharmap/commands/__init__.py | bameda/pharmap-api | 71f5353c19951a4350c3ace2855063093924f061 | [
"MIT"
] | null | null | null | from pharmap.commands.sample_data import * # noqa
| 25.5 | 50 | 0.784314 | 7 | 51 | 5.571429 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137255 | 51 | 1 | 51 | 51 | 0.886364 | 0.078431 | 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 |
7f1e0054b383fed407c4b3d07c046cae00be3283 | 148 | py | Python | a13.py | SharonRenetaV/nlp-peronsal-archive | 6e21c337f805ba856c5341da03c4482fb78abbb0 | [
"MIT"
] | null | null | null | a13.py | SharonRenetaV/nlp-peronsal-archive | 6e21c337f805ba856c5341da03c4482fb78abbb0 | [
"MIT"
] | null | null | null | a13.py | SharonRenetaV/nlp-peronsal-archive | 6e21c337f805ba856c5341da03c4482fb78abbb0 | [
"MIT"
] | null | null | null | import os
from nltk.corpus.reader.plaintext import PlaintextCorpusReader
corpusdir = 'newcorpus/'
newcorpus = PlaintextCorpusReader(corpusdir, '.*') | 37 | 62 | 0.817568 | 14 | 148 | 8.642857 | 0.714286 | 0.495868 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081081 | 148 | 4 | 63 | 37 | 0.889706 | 0 | 0 | 0 | 0 | 0 | 0.080537 | 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 |
615697724ebd40a1a589007c00fee9ab1d2b2ff4 | 218 | py | Python | word2vec/word2vecConvert.py | berkeley-dsc/stress | 23f4b2a2350b20d00fc3093e28fbdbe989a58f5e | [
"0BSD"
] | 3 | 2015-04-26T00:31:51.000Z | 2015-07-05T18:32:47.000Z | word2vec/word2vecConvert.py | berkeley-dsc/destress | 23f4b2a2350b20d00fc3093e28fbdbe989a58f5e | [
"0BSD"
] | 44 | 2015-02-20T21:15:06.000Z | 2015-08-20T21:17:50.000Z | word2vec/word2vecConvert.py | berkeley-dsc/destress | 23f4b2a2350b20d00fc3093e28fbdbe989a58f5e | [
"0BSD"
] | null | null | null | from gensim.models import Word2Vec
if __name__ == '__main__':
model = Word2Vec.load('/var/local/destress/LJ_word2vec/word2vecLJ_2.txt')
model.save_word2vec_format('/var/local/destress/LJ_word2vec/word2vecTEXT.txt')
| 36.333333 | 79 | 0.798165 | 30 | 218 | 5.366667 | 0.666667 | 0.099379 | 0.198758 | 0.223602 | 0.322981 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039409 | 0.068807 | 218 | 5 | 80 | 43.6 | 0.753695 | 0 | 0 | 0 | 0 | 0 | 0.477064 | 0.440367 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
616159b7835fc4a3eebb591809e87260010b8691 | 79 | py | Python | data_anonymizer/__main__.py | calebdinsmore/data-anonymizer | 8466c088b90f922e251c94b5fd40d0418ce495e1 | [
"MIT"
] | 1 | 2020-07-10T02:37:31.000Z | 2020-07-10T02:37:31.000Z | data_anonymizer/__main__.py | calebdinsmore/data-anonymizer | 8466c088b90f922e251c94b5fd40d0418ce495e1 | [
"MIT"
] | 1 | 2019-02-17T04:50:54.000Z | 2019-02-17T04:50:54.000Z | data_anonymizer/__main__.py | calebdinsmore/data-anonymizer | 8466c088b90f922e251c94b5fd40d0418ce495e1 | [
"MIT"
] | 1 | 2019-05-09T17:45:17.000Z | 2019-05-09T17:45:17.000Z | if __name__ == '__main__':
from data_anonymizer.cli import main
main()
| 19.75 | 40 | 0.683544 | 10 | 79 | 4.5 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.21519 | 79 | 3 | 41 | 26.333333 | 0.725806 | 0 | 0 | 0 | 0 | 0 | 0.101266 | 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 |
6164ab7382a32fc26e503a42089a9892b26bd21e | 321 | py | Python | recipes/Python/579072_Examples_random_float_between_0/recipe-579072.py | tdiprima/code | 61a74f5f93da087d27c70b2efe779ac6bd2a3b4f | [
"MIT"
] | 2,023 | 2017-07-29T09:34:46.000Z | 2022-03-24T08:00:45.000Z | recipes/Python/579072_Examples_random_float_between_0/recipe-579072.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 32 | 2017-09-02T17:20:08.000Z | 2022-02-11T17:49:37.000Z | recipes/Python/579072_Examples_random_float_between_0/recipe-579072.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 780 | 2017-07-28T19:23:28.000Z | 2022-03-25T20:39:41.000Z | import os
import struct
def random_1():
return (int.from_bytes(os.urandom(7), 'big') >> 3) * 2 ** -53
def random_2():
return (int.from_bytes(os.urandom(7), 'big') >> 3) / (1 << 53)
def random_3():
array = bytearray(b'\x3F' + os.urandom(7))
array[1] |= 0xF0
return struct.unpack('>d', array)[0] - 1... | 22.928571 | 66 | 0.588785 | 52 | 321 | 3.538462 | 0.461538 | 0.146739 | 0.163043 | 0.195652 | 0.347826 | 0.347826 | 0.347826 | 0.347826 | 0.347826 | 0 | 0 | 0.077821 | 0.199377 | 321 | 13 | 67 | 24.692308 | 0.638132 | 0 | 0 | 0 | 0 | 0 | 0.037383 | 0 | 0 | 0 | 0.012461 | 0 | 0 | 1 | 0.3 | false | 0 | 0.2 | 0.2 | 0.8 | 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 |
6179f6274274ef56f2fa4e74adbce1f4c33c5b41 | 99 | py | Python | setup.py | jmontp/prosthetic-adaptation | aeed4ed531edf3ab2cfdda88f9f796589b14f1ff | [
"MIT"
] | null | null | null | setup.py | jmontp/prosthetic-adaptation | aeed4ed531edf3ab2cfdda88f9f796589b14f1ff | [
"MIT"
] | null | null | null | setup.py | jmontp/prosthetic-adaptation | aeed4ed531edf3ab2cfdda88f9f796589b14f1ff | [
"MIT"
] | null | null | null | from distutils.core import setup
setup(name='padapt', version='1.0.0', packages=['ekf', 'kmodel']) | 33 | 65 | 0.707071 | 15 | 99 | 4.666667 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032967 | 0.080808 | 99 | 3 | 65 | 33 | 0.736264 | 0 | 0 | 0 | 0 | 0 | 0.2 | 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 |
6180e1deb9ed267dbf91e018d9b28fa1fe03736b | 4,429 | py | Python | MovieLens/Code/data.py | bcspragu/Machine-Learning-Projects | b6832cbb9bb27d7e8253300f97a3ab84b1a555dc | [
"MIT"
] | null | null | null | MovieLens/Code/data.py | bcspragu/Machine-Learning-Projects | b6832cbb9bb27d7e8253300f97a3ab84b1a555dc | [
"MIT"
] | null | null | null | MovieLens/Code/data.py | bcspragu/Machine-Learning-Projects | b6832cbb9bb27d7e8253300f97a3ab84b1a555dc | [
"MIT"
] | 1 | 2018-09-26T13:13:03.000Z | 2018-09-26T13:13:03.000Z | import numpy as np
import matplotlib.pyplot as plt
x = eval("""[[(0.9966367263864635, 1.0366734384117331, 1.0512881355327524),
(0.9966367263864635, 1.0366734384117331, 1.0512881355327524),
(0.9966367263864635, 1.0366734384117331, 1.0512881355327524),
(0.9966367263864635, 1.0366734384117331, 1.0512881355327524),
(0.996... | 44.29 | 75 | 0.771054 | 578 | 4,429 | 5.871972 | 0.316609 | 0.010607 | 0.01591 | 0.018562 | 0.236299 | 0.236299 | 0.199175 | 0.199175 | 0.174425 | 0.167354 | 0 | 0.634587 | 0.075638 | 4,429 | 99 | 76 | 44.737374 | 0.194431 | 0.002258 | 0 | 0.134831 | 0 | 0 | 0.751245 | 0.254187 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.022472 | null | null | 0.033708 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
619408810bb60ccc1ed93d0ff2e7d150e496d723 | 197 | py | Python | app/models/user.py | Andrew-Chen-Wang/django-orm-template | f54f7361c75b6e214a5b03803fbc3d22875d5a66 | [
"Apache-2.0"
] | null | null | null | app/models/user.py | Andrew-Chen-Wang/django-orm-template | f54f7361c75b6e214a5b03803fbc3d22875d5a66 | [
"Apache-2.0"
] | null | null | null | app/models/user.py | Andrew-Chen-Wang/django-orm-template | f54f7361c75b6e214a5b03803fbc3d22875d5a66 | [
"Apache-2.0"
] | null | null | null | import sys
from django.db import models
# Sample User model
class User(models.Model):
name = models.CharField(max_length=50, default="Dan")
def __str__(self):
return self.name
| 15.153846 | 57 | 0.695431 | 28 | 197 | 4.714286 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012821 | 0.208122 | 197 | 12 | 58 | 16.416667 | 0.833333 | 0.086294 | 0 | 0 | 0 | 0 | 0.016949 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0.166667 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
61c4f1d02b38a51e0fe062c3aa8e113e80bddd72 | 205 | py | Python | src/strictdf/__init__.py | CristianContrera95/strict_df | b9c544896835a204ba346254953794ff7e19868a | [
"MIT"
] | null | null | null | src/strictdf/__init__.py | CristianContrera95/strict_df | b9c544896835a204ba346254953794ff7e19868a | [
"MIT"
] | null | null | null | src/strictdf/__init__.py | CristianContrera95/strict_df | b9c544896835a204ba346254953794ff7e19868a | [
"MIT"
] | null | null | null | """
Author: Cristian Contrera <cristiancontrera95@gmail.com>
Date: 10/12/2020
License: MIT
"""
from .StrictDataFrame import StrictDataFrame
try:
import findspark
findspark.init()
except:
pass
| 15.769231 | 56 | 0.736585 | 23 | 205 | 6.565217 | 0.869565 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05814 | 0.160976 | 205 | 12 | 57 | 17.083333 | 0.819767 | 0.419512 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.166667 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 4 |
f6035df65078b0884504739aa68a330f2828e8cd | 480 | py | Python | tfsnippet/examples/utils/__init__.py | TsingHuasuya/tfsnippet | 3f51f704e09c654eaf39e231948efed2868669fd | [
"MIT"
] | null | null | null | tfsnippet/examples/utils/__init__.py | TsingHuasuya/tfsnippet | 3f51f704e09c654eaf39e231948efed2868669fd | [
"MIT"
] | null | null | null | tfsnippet/examples/utils/__init__.py | TsingHuasuya/tfsnippet | 3f51f704e09c654eaf39e231948efed2868669fd | [
"MIT"
] | 1 | 2020-02-08T15:33:41.000Z | 2020-02-08T15:33:41.000Z | from . import (config, datasets, evaluation, graph, jsonutils, misc,
multi_gpu, results, session)
__all__ = sum(
[m.__all__ for m in [
config, datasets, evaluation, graph, jsonutils, misc,
multi_gpu, results, session
]],
[]
)
from .config import *
from .datasets import *
fro... | 22.857143 | 68 | 0.664583 | 57 | 480 | 5.403509 | 0.298246 | 0.25974 | 0.155844 | 0.188312 | 0.415584 | 0.415584 | 0.415584 | 0.415584 | 0.415584 | 0.415584 | 0 | 0 | 0.235417 | 480 | 20 | 69 | 24 | 0.839237 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.555556 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
9c86d3309a35cd70b5af96f19f6b77993eb3dd14 | 93 | py | Python | Talleres/Backend/Django/Taller 3/ExEcommerce/Productos/apps.py | judrodriguezgo/DesarrolloWeb | a020b1eb734e243114982cde9edfc3c25d60047a | [
"MIT"
] | 1 | 2021-10-30T16:54:25.000Z | 2021-10-30T16:54:25.000Z | Talleres/Backend/Django/Taller 3/ExEcommerce/Productos/apps.py | judrodriguezgo/DesarrolloWeb | a020b1eb734e243114982cde9edfc3c25d60047a | [
"MIT"
] | 10 | 2019-12-04T23:46:06.000Z | 2022-02-10T10:00:30.000Z | ControlPanel/Apps/Productos/apps.py | PatyLuPrz/unicollagen | 92206648f691581efee4f0ea82817729670bcd0f | [
"MIT"
] | 3 | 2021-11-23T22:24:15.000Z | 2021-12-31T23:51:47.000Z | from django.apps import AppConfig
class ProductosConfig(AppConfig):
name = 'Productos'
| 15.5 | 33 | 0.763441 | 10 | 93 | 7.1 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16129 | 93 | 5 | 34 | 18.6 | 0.910256 | 0 | 0 | 0 | 0 | 0 | 0.096774 | 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 |
9c9ffad06a8ddb33784451c3d21c400f01ea1661 | 442 | py | Python | nwbinspector/__init__.py | jwodder/nwbinspector | 9a736d8f016635193cd021d2123e79cb3c1f4281 | [
"BSD-3-Clause-LBNL"
] | 1 | 2022-03-21T22:18:40.000Z | 2022-03-21T22:18:40.000Z | nwbinspector/__init__.py | jwodder/nwbinspector | 9a736d8f016635193cd021d2123e79cb3c1f4281 | [
"BSD-3-Clause-LBNL"
] | 111 | 2020-02-16T22:46:42.000Z | 2022-03-31T20:16:23.000Z | nwbinspector/__init__.py | jwodder/nwbinspector | 9a736d8f016635193cd021d2123e79cb3c1f4281 | [
"BSD-3-Clause-LBNL"
] | 2 | 2022-01-11T15:22:13.000Z | 2022-03-22T16:44:19.000Z | from .register_checks import available_checks, Importance
from .nwbinspector import inspect_nwb, inspect_all, load_config
from .checks.behavior import *
from .checks.ecephys import *
from .checks.general import *
from .checks.image_series import *
from .checks.nwb_containers import *
from .checks.nwbfile_metadata impor... | 34 | 63 | 0.80543 | 60 | 442 | 5.783333 | 0.4 | 0.288184 | 0.414986 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115385 | 442 | 12 | 64 | 36.833333 | 0.887468 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
9cc706f5f7e43c384a227c3f2cf2ceeb1f7bdb41 | 42,764 | py | Python | fellowcrm/upgrade/data/currency_timezone.py | Fellow-Consulting-AG/fellowcrm | 5cdee0289482b4de4a7d0c47181dfc12d95ac279 | [
"MIT"
] | null | null | null | fellowcrm/upgrade/data/currency_timezone.py | Fellow-Consulting-AG/fellowcrm | 5cdee0289482b4de4a7d0c47181dfc12d95ac279 | [
"MIT"
] | null | null | null | fellowcrm/upgrade/data/currency_timezone.py | Fellow-Consulting-AG/fellowcrm | 5cdee0289482b4de4a7d0c47181dfc12d95ac279 | [
"MIT"
] | null | null | null | INSERT_SQL = """
SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SELECT pg_catalog.set_config('search_path', 'public', false);
SET check_function_bodies = false;
SET xmloption = content;
SET client_min_mess... | 72.114671 | 132 | 0.711346 | 6,529 | 42,764 | 4.566396 | 0.207842 | 0.193869 | 0.199571 | 0.256591 | 0.657745 | 0.657745 | 0.657745 | 0.236131 | 0.229422 | 0.135675 | 0 | 0.040785 | 0.12735 | 42,764 | 592 | 133 | 72.236486 | 0.756686 | 0 | 0 | 0 | 0 | 0.261017 | 0.999532 | 0.075601 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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.