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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
486269f27335951626648956d4b2d80e4a646747
| 164
|
py
|
Python
|
sendMessage.py
|
insane-tsunami/tsuBot-para-WhatsApp
|
2b5090a05ce4bd5f4348325eff7a5da75dc389af
|
[
"MIT"
] | null | null | null |
sendMessage.py
|
insane-tsunami/tsuBot-para-WhatsApp
|
2b5090a05ce4bd5f4348325eff7a5da75dc389af
|
[
"MIT"
] | null | null | null |
sendMessage.py
|
insane-tsunami/tsuBot-para-WhatsApp
|
2b5090a05ce4bd5f4348325eff7a5da75dc389af
|
[
"MIT"
] | null | null | null |
import os
from whatsapp import WhatsApp
whatsapp = WhatsApp(100, session="mysession")
print(whatsapp.send_message("Fabio 'tsuNami' Suenaga",":heart: Deu certo!"))
| 27.333333
| 76
| 0.768293
| 21
| 164
| 5.952381
| 0.761905
| 0.256
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.02027
| 0.097561
| 164
| 5
| 77
| 32.8
| 0.824324
| 0
| 0
| 0
| 0
| 0
| 0.304878
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 0.5
| 0.25
| 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
|
487b9d694a01fa027fdd000ab9e4d96b840d9195
| 5,678
|
py
|
Python
|
gigfinder/config/settings.py
|
casamfiml/django_Pruebas
|
6a2d0e17fcbd4c3428037c2354ce9e5ce19c4d4b
|
[
"Apache-2.0"
] | null | null | null |
gigfinder/config/settings.py
|
casamfiml/django_Pruebas
|
6a2d0e17fcbd4c3428037c2354ce9e5ce19c4d4b
|
[
"Apache-2.0"
] | null | null | null |
gigfinder/config/settings.py
|
casamfiml/django_Pruebas
|
6a2d0e17fcbd4c3428037c2354ce9e5ce19c4d4b
|
[
"Apache-2.0"
] | null | null | null |
"""
Django settings for gigfinder project.
Generated by 'django-admin startproject' using Django 2.0.1.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/2.0/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = [YOUR SECRET KEY]
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
ALLOWED_HOSTS = ['django-fwa-casamfiml.c9users.io']
# 'django-fwa-casamfiml.c9users.io','http://django-fwa-casamfiml.c9users.io:8081','https://django-fwa-casamfiml.c9users.io:8081'
# ,'django-fwa-casamfiml.c9users.io:80']
#Access-Control-Allow-Credentials: true
# Application definition
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'corsheaders',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
#'',
'retail',
'rest_framework',
]
MIDDLEWARE = [
'corsheaders.middleware.CorsMiddleware',
'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'corsheaders.middleware.CorsPostCsrfMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
]
# CORS_ORIGIN_WHITELIST = (
# 'google.com',
# 'hostname.example.com',
# 'localhost:8000',
# '127.0.0.1:9000',
# 'http://django-fwa-casamfiml.c9users.io:8081'
# )
#ROOT_URLCONF = 'gigfinder.urls'
ROOT_URLCONF = 'urls'
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
],
},
},
]
WSGI_APPLICATION = 'config.wsgi.application'
#Database
#https://docs.djangoproject.com/en/2.0/ref/settings/#databases
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': 'mydatabase.db',
}
}
# DATABASES = {
# 'default': {
# 'ENGINE': 'django.db.backends.postgresql',
# 'NAME': 'django',
# 'USER': 'ubuntu',
# #'PASSWORD': 'giguser',
# },
# }
# DATABASES = {
# 'default': {
# 'ENGINE': 'django.contrib.gis.db.backends.postgis',
# 'NAME': 'gigfinder',
# 'USER': 'giguser',
# 'PASSWORD': 'giguser',
# 'HOST': '127.0.0.1',
# 'PORT': '5432',
# }
# }
# Password validation
# https://docs.djangoproject.com/en/2.0/ref/settings/#auth-password-validators
AUTH_PASSWORD_VALIDATORS = [
{
'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
},
]
# Internationalization
# https://docs.djangoproject.com/en/2.0/topics/i18n/
LANGUAGE_CODE = 'en-us'
TIME_ZONE = 'America/Guayaquil'
USE_I18N = True
USE_L10N = True
USE_TZ = True
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/2.0/howto/static-files/
STATIC_URL = '/static/'
#import dj_database_url
#DATABASES['default'] = dj_database_url.config()
#DATABASES['default']['ENGINE'] = 'django.contrib.gis.db.backends.postgis'
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
CORS_ORIGIN_ALLOW_ALL = True
# CORS_ORIGIN_WHITELIST = (
# 'google.com',
# 'hostname.example.com',
# 'localhost:8000',
# '127.0.0.1:9000',
# 'http://django-fwa-casamfiml.c9users.io:8081',
# 'django-fwa-casamfiml.c9users.io',
# 'http://localhost:8081',
# 'https://django-fwa-casamfiml.c9users.io:8081',
# 'http://django-fwa-casamfiml.c9users.io:8081',
# 'https://django-fwa-casamfiml.c9users.io:8082/',
# 'https://django-fwa-casamfiml.c9users.io:8082/#!/',
# )
# CORS_ORIGIN_REGEX_WHITELIST = ( r'^(https?://)?django-fwa-casamfiml\.c9users\.io$',
# r'^(http?://)?0\.0\.0\.0$',
# r'^(https?://)?django-fwa-casamfiml\.c9users\.io\:8082?//\#\!?//$',
# )
# CORS_URLS_REGEX = r'^/chains/.*$'
# CORS_URLS_REGEX = r'^/employees/.*$'
CORS_ALLOW_METHODS = (
'DELETE',
'GET',
'OPTIONS',
'PATCH',
'POST',
'PUT',
)
CORS_ALLOW_HEADERS = (
'accept',
'accept-encoding',
'authorization',
'content-type',
'dnt',
'origin',
'user-agent',
'x-csrftoken',
'x-requested-with',
)
# REST_FRAMEWORK = {
# 'DEFAULT_RENDERER_CLASSES': (
# 'rest_framework.renderers.JSONRenderer',
# ),
# 'DEFAULT_PARSER_CLASSES': (
# 'rest_framework.parsers.JSONParser',
# )
# }
| 26.287037
| 133
| 0.643008
| 608
| 5,678
| 5.896382
| 0.350329
| 0.061646
| 0.070293
| 0.097629
| 0.350628
| 0.33417
| 0.260809
| 0.250209
| 0.175732
| 0.111576
| 0
| 0.026499
| 0.189151
| 5,678
| 215
| 134
| 26.409302
| 0.752172
| 0.46143
| 0
| 0
| 1
| 0
| 0.534082
| 0.414607
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0.054945
| 0.010989
| null | null | 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
488178bea64d515a607cbb560fd5f4861921bb7b
| 1,185
|
py
|
Python
|
generate.py
|
aszul/lampka
|
5656899c68bfa294c73b45568402306b515725a7
|
[
"MIT"
] | null | null | null |
generate.py
|
aszul/lampka
|
5656899c68bfa294c73b45568402306b515725a7
|
[
"MIT"
] | null | null | null |
generate.py
|
aszul/lampka
|
5656899c68bfa294c73b45568402306b515725a7
|
[
"MIT"
] | null | null | null |
import itertools
R = 255
G = 0
B = 0
deltas1 = [2,3,2,3,3,2,3,3,2,3,3,2,3,3,2,3,3,2,3,3,2,3,3,2,3,3,2,3,3,2,3]
deltas2 = [3,2,3,2,3,3,2,3,3,2,3,3,2,3,3,2,3,3,2,3,3,2,3,3,2,3,3,2,3,3,2,3,4]
deltasR1 = [5,5,5,6,5,5,6,5,5,6,5,5,6,5,5,6,5,5,5,6,5,5,6,5,5,6,5,5,6,5,5,7]
deltasGB = [2,3,2,3,3,2,3,3,2,3,3,2,3,3,2,3,3,2,3,3,2,3,3,2,3,3,2,3,3,2,3,2,5,105,5,6,5,5,6,5,5,6,5,5,6,5,5,6,5,5,5,6,5,5,6,5,5,6,5,6,5,5,6]
i1 = itertools.cycle(deltas1)
i2 = itertools.cycle(deltas2)
iR1 = itertools.cycle(deltasR1)
iGB = itertools.cycle(deltasGB)
with open('generated_by_python.txt', 'w') as f:
f.write('unsigned char precalculated_values[][3] = {\n')
f.write("{%d,%d,%d},\n" % (R,G,B))
while R > 173:
d = next(i1)
R -= d
G += d
f.write("{%d,%d,%d},\n" % (R,G,B))
while G < 171:
d = next(i2)
R = 171
G += d
f.write("{%d,%d,%d},\n" % (R,G,B))
while R > 0:
dR = next(iR1)
R -= dR
G += next(i1)
f.write("{%d,%d,%d},\n" % (R,G,B))
while G > 0:
dGB = next(iGB)
G -= dGB
B += dGB
f.write("{%d,%d,%d},\n" % (R,G,B))
f.write('};\n')
| 26.333333
| 140
| 0.463291
| 293
| 1,185
| 1.863481
| 0.153584
| 0.120879
| 0.17033
| 0.197802
| 0.450549
| 0.443223
| 0.443223
| 0.443223
| 0.443223
| 0.419414
| 0
| 0.21317
| 0.243882
| 1,185
| 45
| 141
| 26.333333
| 0.396205
| 0
| 0
| 0.194444
| 0
| 0
| 0.116358
| 0.040472
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.027778
| 0
| 0.027778
| 0
| 0
| 0
| 1
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
6fcdbeb5550552e45db7f5a3e484157b7d7b2502
| 94
|
py
|
Python
|
memoirs/apps.py
|
LeoAmby/Galleria
|
5daaeaeedc2682af878c2e925a2131033d631333
|
[
"MIT"
] | 1
|
2020-02-13T09:51:13.000Z
|
2020-02-13T09:51:13.000Z
|
memoirs/apps.py
|
LeoAmby/Galleria
|
5daaeaeedc2682af878c2e925a2131033d631333
|
[
"MIT"
] | 7
|
2019-10-06T14:48:03.000Z
|
2021-09-08T01:20:06.000Z
|
memoirs/apps.py
|
LeoAmby/Galleria
|
5daaeaeedc2682af878c2e925a2131033d631333
|
[
"MIT"
] | null | null | null |
from django.apps import AppConfig
class MemoirsConfig(AppConfig):
name = 'memoirs'
| 13.428571
| 33
| 0.712766
| 10
| 94
| 6.7
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.212766
| 94
| 6
| 34
| 15.666667
| 0.905405
| 0
| 0
| 0
| 0
| 0
| 0.074468
| 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
|
b5068fa8d5c5b642b9e02fb278d67178ffb3134c
| 165
|
py
|
Python
|
venv/Lib/site-packages/py2exe/__init__.py
|
rthartley/reacombiner
|
1023effd6abe1fa827e25dd02b5b73626745c5a9
|
[
"MIT"
] | 1
|
2017-04-25T13:15:10.000Z
|
2017-04-25T13:15:10.000Z
|
venv/Lib/site-packages/py2exe/__init__.py
|
rthartley/reacombiner
|
1023effd6abe1fa827e25dd02b5b73626745c5a9
|
[
"MIT"
] | null | null | null |
venv/Lib/site-packages/py2exe/__init__.py
|
rthartley/reacombiner
|
1023effd6abe1fa827e25dd02b5b73626745c5a9
|
[
"MIT"
] | null | null | null |
#!/usr/bin/python3,3
# -*- coding: utf-8 -*-
"""py2exe package
"""
__version__ = "0.9.2.2"
from .patch_distutils import patch_distutils
patch_distutils()
| 16.5
| 45
| 0.648485
| 22
| 165
| 4.545455
| 0.772727
| 0.42
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.058394
| 0.169697
| 165
| 9
| 46
| 18.333333
| 0.671533
| 0.339394
| 0
| 0
| 0
| 0
| 0.076087
| 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
|
b515b927512b69c02905bb56982196297a1be7c8
| 2,862
|
py
|
Python
|
backend/patientdb/migrations/0001_initial.py
|
JacksoNoah/arrhythmia_project
|
1a4691fe9cb70a4952dca3ca26a1ecbfe2d7231d
|
[
"MIT"
] | null | null | null |
backend/patientdb/migrations/0001_initial.py
|
JacksoNoah/arrhythmia_project
|
1a4691fe9cb70a4952dca3ca26a1ecbfe2d7231d
|
[
"MIT"
] | null | null | null |
backend/patientdb/migrations/0001_initial.py
|
JacksoNoah/arrhythmia_project
|
1a4691fe9cb70a4952dca3ca26a1ecbfe2d7231d
|
[
"MIT"
] | null | null | null |
# Generated by Django 3.1.6 on 2021-02-23 20:11
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Patient',
fields=[
('record_name', models.IntegerField(primary_key=True, serialize=False)),
('n_sig', models.CharField(blank=True, max_length=100)),
('fs', models.CharField(blank=True, max_length=100)),
('counter_freq', models.CharField(blank=True, max_length=100)),
('base_counter', models.CharField(blank=True, max_length=100)),
('sig_len', models.CharField(blank=True, max_length=100)),
('base_time', models.CharField(blank=True, max_length=100)),
('base_date', models.CharField(blank=True, max_length=100)),
('comments', models.CharField(blank=True, max_length=100)),
('sig_name', models.CharField(blank=True, max_length=100)),
('p_signal', models.CharField(blank=True, max_length=100)),
('d_signal', models.CharField(blank=True, max_length=100)),
('e_p_signal', models.CharField(blank=True, max_length=100)),
('file_name', models.CharField(blank=True, max_length=100)),
('fmt', models.CharField(blank=True, max_length=100)),
('samps_per_frame', models.CharField(blank=True, max_length=100)),
('skew', models.CharField(blank=True, max_length=100)),
('byte_offset', models.CharField(blank=True, max_length=100)),
('adc_gain', models.CharField(blank=True, max_length=100)),
('baseline', models.CharField(blank=True, max_length=100)),
('units', models.CharField(blank=True, max_length=100)),
('adc_res', models.CharField(blank=True, max_length=100)),
('adc_zero', models.CharField(blank=True, max_length=100)),
('init_value', models.CharField(blank=True, max_length=100)),
('checksum', models.CharField(blank=True, max_length=100)),
('block_size', models.CharField(blank=True, max_length=100)),
],
),
migrations.CreateModel(
name='Signals',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('time', models.FloatField()),
('mlii', models.FloatField()),
('v5', models.FloatField()),
('signal_record_name', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='signal_record_name', to='patientdb.patient')),
],
),
]
| 50.210526
| 162
| 0.586653
| 313
| 2,862
| 5.185304
| 0.277955
| 0.231054
| 0.308071
| 0.369686
| 0.622921
| 0.588417
| 0.588417
| 0.322243
| 0.052988
| 0
| 0
| 0.04323
| 0.2645
| 2,862
| 56
| 163
| 51.107143
| 0.727791
| 0.015723
| 0
| 0.163265
| 1
| 0
| 0.105151
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.040816
| 0
| 0.122449
| 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
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
82ec6f52f0b09d237992d2ec0b9c9684d34318c0
| 205
|
py
|
Python
|
pokemonlib/GameClasses/CombatClass.py
|
Lapinux/pokemonlib
|
b7e2e056fdd9988ba8d38a159b8e6a0ecf17e090
|
[
"MIT"
] | null | null | null |
pokemonlib/GameClasses/CombatClass.py
|
Lapinux/pokemonlib
|
b7e2e056fdd9988ba8d38a159b8e6a0ecf17e090
|
[
"MIT"
] | null | null | null |
pokemonlib/GameClasses/CombatClass.py
|
Lapinux/pokemonlib
|
b7e2e056fdd9988ba8d38a159b8e6a0ecf17e090
|
[
"MIT"
] | null | null | null |
class Combat:
def __init__(self, team_one, team_two):
self.team1 = team_one
self.team2 = team_two
def damage_calculation(self, pokemon_attacking, pokemon_defending):
pass
| 22.777778
| 71
| 0.678049
| 26
| 205
| 4.923077
| 0.615385
| 0.109375
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.012987
| 0.24878
| 205
| 8
| 72
| 25.625
| 0.818182
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0.166667
| 0
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
d250fa7c6c52bc4984fbd504f7b81738fd57a39d
| 3,104
|
py
|
Python
|
parsec/commands/cmd_histories.py
|
simonbray/parsec
|
c0e123cbf7cb1289ec722357a6262f716575e4d9
|
[
"Apache-2.0"
] | 8
|
2015-03-27T17:09:15.000Z
|
2021-07-13T15:33:02.000Z
|
parsec/commands/cmd_histories.py
|
simonbray/parsec
|
c0e123cbf7cb1289ec722357a6262f716575e4d9
|
[
"Apache-2.0"
] | 30
|
2015-02-27T21:21:47.000Z
|
2021-08-31T14:19:55.000Z
|
parsec/commands/cmd_histories.py
|
simonbray/parsec
|
c0e123cbf7cb1289ec722357a6262f716575e4d9
|
[
"Apache-2.0"
] | 12
|
2017-06-01T03:49:23.000Z
|
2021-07-13T15:33:06.000Z
|
import click
from parsec.commands.histories.copy_content import cli as copy_content
from parsec.commands.histories.copy_dataset import cli as copy_dataset
from parsec.commands.histories.create_dataset_collection import cli as create_dataset_collection
from parsec.commands.histories.create_history import cli as create_history
from parsec.commands.histories.create_history_tag import cli as create_history_tag
from parsec.commands.histories.delete_dataset import cli as delete_dataset
from parsec.commands.histories.delete_dataset_collection import cli as delete_dataset_collection
from parsec.commands.histories.delete_history import cli as delete_history
from parsec.commands.histories.download_history import cli as download_history
from parsec.commands.histories.export_history import cli as export_history
from parsec.commands.histories.get_histories import cli as get_histories
from parsec.commands.histories.get_most_recently_used_history import cli as get_most_recently_used_history
from parsec.commands.histories.get_published_histories import cli as get_published_histories
from parsec.commands.histories.get_status import cli as get_status
from parsec.commands.histories.import_history import cli as import_history
from parsec.commands.histories.open_history import cli as open_history
from parsec.commands.histories.show_dataset import cli as show_dataset
from parsec.commands.histories.show_dataset_collection import cli as show_dataset_collection
from parsec.commands.histories.show_dataset_provenance import cli as show_dataset_provenance
from parsec.commands.histories.show_history import cli as show_history
from parsec.commands.histories.show_matching_datasets import cli as show_matching_datasets
from parsec.commands.histories.undelete_history import cli as undelete_history
from parsec.commands.histories.update_dataset import cli as update_dataset
from parsec.commands.histories.update_dataset_collection import cli as update_dataset_collection
from parsec.commands.histories.update_history import cli as update_history
from parsec.commands.histories.upload_dataset_from_library import cli as upload_dataset_from_library
@click.group()
def cli():
pass
cli.add_command(copy_content)
cli.add_command(copy_dataset)
cli.add_command(create_dataset_collection)
cli.add_command(create_history)
cli.add_command(create_history_tag)
cli.add_command(delete_dataset)
cli.add_command(delete_dataset_collection)
cli.add_command(delete_history)
cli.add_command(download_history)
cli.add_command(export_history)
cli.add_command(get_histories)
cli.add_command(get_most_recently_used_history)
cli.add_command(get_published_histories)
cli.add_command(get_status)
cli.add_command(import_history)
cli.add_command(open_history)
cli.add_command(show_dataset)
cli.add_command(show_dataset_collection)
cli.add_command(show_dataset_provenance)
cli.add_command(show_history)
cli.add_command(show_matching_datasets)
cli.add_command(undelete_history)
cli.add_command(update_dataset)
cli.add_command(update_dataset_collection)
cli.add_command(update_history)
cli.add_command(upload_dataset_from_library)
| 50.885246
| 106
| 0.884343
| 462
| 3,104
| 5.632035
| 0.082251
| 0.099923
| 0.179862
| 0.269792
| 0.668716
| 0.258647
| 0
| 0
| 0
| 0
| 0
| 0
| 0.063144
| 3,104
| 60
| 107
| 51.733333
| 0.894773
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.017857
| true
| 0.017857
| 0.5
| 0
| 0.517857
| 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
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
d2513a5fecd308ac347dce8806cf470b1ffa5229
| 144
|
py
|
Python
|
oscar/lib/python2.7/site-packages/wcwidth/__init__.py
|
sainjusajan/django-oscar
|
466e8edc807be689b0a28c9e525c8323cc48b8e1
|
[
"BSD-3-Clause"
] | null | null | null |
oscar/lib/python2.7/site-packages/wcwidth/__init__.py
|
sainjusajan/django-oscar
|
466e8edc807be689b0a28c9e525c8323cc48b8e1
|
[
"BSD-3-Clause"
] | null | null | null |
oscar/lib/python2.7/site-packages/wcwidth/__init__.py
|
sainjusajan/django-oscar
|
466e8edc807be689b0a28c9e525c8323cc48b8e1
|
[
"BSD-3-Clause"
] | null | null | null |
"""wcwidth module, https://github.com/jquast/wcwidth."""
from .wcwidth import wcwidth, wcswidth # noqa
__all__ = ('wcwidth', 'wcswidth',)
| 28.8
| 57
| 0.680556
| 16
| 144
| 5.875
| 0.6875
| 0.319149
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.138889
| 144
| 4
| 58
| 36
| 0.758065
| 0.388889
| 0
| 0
| 0
| 0
| 0.192308
| 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
|
9648c0a995251f9cc0a42b6081381a0fc4237450
| 399
|
py
|
Python
|
mayan/apps/templating/serializers.py
|
nattangwiwat/Mayan-EDMS-recitation
|
fcf16afb56eae812fb99144d65ae1ae6749de0b7
|
[
"Apache-2.0"
] | 336
|
2019-05-09T07:05:19.000Z
|
2022-03-25T09:50:22.000Z
|
mayan/apps/templating/serializers.py
|
nattangwiwat/Mayan-EDMS-recitation
|
fcf16afb56eae812fb99144d65ae1ae6749de0b7
|
[
"Apache-2.0"
] | 86
|
2021-09-01T23:53:02.000Z
|
2021-09-20T02:25:10.000Z
|
mayan/apps/templating/serializers.py
|
nattangwiwat/Mayan-EDMS-recitation
|
fcf16afb56eae812fb99144d65ae1ae6749de0b7
|
[
"Apache-2.0"
] | 257
|
2019-05-14T10:26:37.000Z
|
2022-03-30T03:37:36.000Z
|
from rest_framework import serializers
class AJAXTemplateSerializer(serializers.Serializer):
hex_hash = serializers.CharField(read_only=True)
name = serializers.CharField(read_only=True)
html = serializers.CharField(read_only=True)
url = serializers.HyperlinkedIdentityField(
lookup_field='name', lookup_url_kwarg='name',
view_name='rest_api:template-detail'
)
| 33.25
| 53
| 0.759398
| 44
| 399
| 6.659091
| 0.568182
| 0.204778
| 0.245734
| 0.286689
| 0.327645
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.150376
| 399
| 11
| 54
| 36.272727
| 0.864307
| 0
| 0
| 0
| 0
| 0
| 0.080201
| 0.06015
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.111111
| 0
| 0.666667
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
965213661f4e75f44d1f3d798c055c9f37f6c1d4
| 8,721
|
py
|
Python
|
cogs/Anim.py
|
sammycjackson/self-bot
|
b54b9cf882416cda9ca75ef01538d5f1d5caebf7
|
[
"MIT"
] | null | null | null |
cogs/Anim.py
|
sammycjackson/self-bot
|
b54b9cf882416cda9ca75ef01538d5f1d5caebf7
|
[
"MIT"
] | 1
|
2018-07-19T15:11:16.000Z
|
2018-07-19T15:11:16.000Z
|
cogs/Anim.py
|
sammycjackson/self-bot
|
b54b9cf882416cda9ca75ef01538d5f1d5caebf7
|
[
"MIT"
] | null | null | null |
import discord
import asyncio
from discord.ext import commands
class Anim:
def __init__(self, bot):
self.bot = bot
@commands.command()
async def poof(self, ctx):
"""poofness"""
await ctx.message.edit(content = "( ' - ')")
await asyncio.sleep(1)
await ctx.message.edit(content = "' - ')")
await asyncio.sleep(1)
await ctx.message.edit(content = "- ')")
await asyncio.sleep(1)
await ctx.message.edit(content = "')")
await asyncio.sleep(1)
await ctx.message.edit(content = ")")
await asyncio.sleep(1)
await ctx.message.edit(content = "*poofness*")
@commands.command()
async def bam(self, ctx):
await ctx.message.edit(content = "( ͡° ͜ʖ ͡° )")
await asyncio.sleep(1)
await ctx.message.edit(content = "╰( ͡° ͜ʖ ͡° )つ")
await asyncio.sleep(1)
await ctx.message.edit(content = "╰( ͡° ͜ʖ ͡° )つ──☆")
await asyncio.sleep(1)
await ctx.message.edit(content = "╰( ͡° ͜ʖ ͡° )つ──☆*:・゚💥")
@commands.command()
async def cathi(self, ctx):
for i in range(1, 8, 1):
await ctx.message.edit(content="""ຸ _____
/ / /|"
| ̄ ̄ ̄ ̄| |
| |/
 ̄ ̄ ̄ ̄""")
await asyncio.sleep(1.5)
await ctx.message.edit(content="""ຸ Hi...♡
∧_∧__
/(´・ω・`) /\
/| ̄ ̄ ̄ ̄|\/
| |/
 ̄ ̄ ̄ ̄""")
await asyncio.sleep(1.5)
@commands.command()
async def catsu(self, ctx):
for i in range(1, 10, 1):
await ctx.message.edit(content="""{ | | }
( ^ - ^ )
( u u )~""")
await asyncio.sleep(1)
await ctx.message.edit(content="""{ \ / }
( ^ - ^ )
( u u )~""")
await asyncio.sleep(1)
@commands.command()
async def dance(self, ctx):
for i in range(1, 10, 1):
await ctx.message.edit(content="\\\(' - ' )\\")
await asyncio.sleep(1)
await ctx.message.edit(content="/( ' - ')/")
await asyncio.sleep(1)
@commands.command()
async def virus(self, ctx, member : discord.Member = None, *, virus: str):
wheelList = ['/', '-', '\\', '|']
wheelIter = iter(wheelList)
for i in range(2, 17, 2):
try:
wheel = next(wheelIter)
except StopIteration:
wheelIter = iter(wheelList)
wheel = next(wheelIter)
await ctx.message.edit(content=f"`[{('▓' * i).ljust(16)}] {wheel} {virus}-virus.exe Packing files.`")
await asyncio.sleep(1)
await ctx.message.edit(content=f"`Injecting virus. |`")
await asyncio.sleep(1)
await ctx.message.edit(content=f"`Injecting virus.. /`")
await asyncio.sleep(1)
await ctx.message.edit(content=f"`Injecting virus... -`")
await asyncio.sleep(1)
await ctx.message.edit(content=f"`Successfully Injected {virus}-virus.exe into `" + member.mention)
async def on_message(self, message):
for bombstr in ['*boom', '💣m']:
if message.content.find(bombstr) != -1:
await self._boom(message, bombstr)
break
async def _boom(self, message, toreplace):
boomIndex = message.content.find(toreplace)
msgBeforeBoom = message.content[:boomIndex]
msgAfterBoom = message.content[boomIndex + len(toreplace):]
for c in range(5, -1, -1):
await message.edit(content= msgBeforeBoom + "`THIS MESSAGE WILL SELF DESTRUCT IN %s`" % c + msgAfterBoom)
await asyncio.sleep(1)
await message.edit(content=msgBeforeBoom + "💣" + msgAfterBoom)
await asyncio.sleep(1)
await message.edit(content=msgBeforeBoom + "💥" + msgAfterBoom)
@commands.command()
async def table(self, ctx):
await ctx.message.edit(content="`(\°-°)\ ┬─┬`")
await asyncio.sleep(1)
await ctx.message.edit(content="`(\°□°)\ ┬─┬`")
await asyncio.sleep(1)
await ctx.message.edit(content="`(-°□°)- ┬─┬`")
await asyncio.sleep(1)
await ctx.message.edit(content="`(╯°□°)╯ ┬─┬`")
await asyncio.sleep(1)
wheelList = [']', '┻━┻', '[', '┬─┬']
wheelIter = iter(wheelList)
for i in range(7, 39, 4):
try:
wheel = next(wheelIter)
except StopIteration:
wheelIter = iter(wheelList)
wheel = next(wheelIter)
await ctx.message.edit(content=f"`(\°-°)\{(i * ' ')}{wheel}`")
await asyncio.sleep(1)
@commands.command()
async def warning(self, ctx):
await ctx.message.edit(content="`LOAD !! WARNING !! SYSTEM OVER`")
await asyncio.sleep(1)
await ctx.message.edit(content="`OAD !! WARNING !! SYSTEM OVERL`")
await asyncio.sleep(1)
await ctx.message.edit(content="`AD !! WARNING !! SYSTEM OVERLO`")
await asyncio.sleep(1)
await ctx.message.edit(content="`D !! WARNING !! SYSTEM OVERLOA`")
await asyncio.sleep(1)
await ctx.message.edit(content="`! WARNING !! SYSTEM OVERLOAD !`")
await asyncio.sleep(1)
await ctx.message.edit(content="`WARNING !! SYSTEM OVERLOAD !!`")
await asyncio.sleep(1)
await ctx.message.edit(content="`ARNING !! SYSTEM OVERLOAD !! W`")
await asyncio.sleep(1)
await ctx.message.edit(content="`RNING !! SYSTEM OVERLOAD !! WA`")
await asyncio.sleep(1)
await ctx.message.edit(content="`NING !! SYSTEM OVERLOAD !! WAR`")
await asyncio.sleep(1)
await ctx.message.edit(content="`ING !! SYSTEM OVERLOAD !! WARN`")
await asyncio.sleep(1)
await ctx.message.edit(content="`NG !! SYSTEM OVERLOAD !! WARNI`")
await asyncio.sleep(1)
await ctx.message.edit(content="`G !! SYSTEM OVERLOAD !! WARNIN`")
await asyncio.sleep(1)
await ctx.message.edit(content="`!! SYSTEM OVERLOAD !! WARNING`")
await asyncio.sleep(1)
await ctx.message.edit(content="`! SYSTEM OVERLOAD !! WARNING !`")
await asyncio.sleep(1)
await ctx.message.edit(content="`SYSTEM OVERLOAD !! WARNING !!`")
await asyncio.sleep(1)
await ctx.message.edit(content="`IMMINENT SHUT-DOWN IN 0.5 SEC!`")
await asyncio.sleep(1)
await ctx.message.edit(content="`WARNING !! SYSTEM OVERLOAD !!`")
await asyncio.sleep(1)
await ctx.message.edit(content="`IMMINENT SHUT-DOWN IN 0.2 SEC!`")
await asyncio.sleep(1)
await ctx.message.edit(content="`SYSTEM OVERLOAD !! WARNING !!`")
await asyncio.sleep(1)
await ctx.message.edit(content="`IMMINENT SHUT-DOWN IN 0.01 SEC!`")
await asyncio.sleep(1)
await ctx.message.edit(content="`SHUT-DOWN EXIT ERROR ¯\\(。・益・)/¯`")
await asyncio.sleep(1)
await ctx.message.edit(content="`CTRL + R FOR MANUAL OVERRIDE..`")
@commands.command()
async def woah(self, ctx):
await ctx.message.edit(content="( ' O ')")
await asyncio.sleep(1)
await ctx.message.edit(content="( ' O ' )")
await asyncio.sleep(1)
await ctx.message.edit(content="( ' O ' )")
await asyncio.sleep(1)
await ctx.message.edit(content="(' O ' )")
await asyncio.sleep(1)
await ctx.message.edit(content="( ' O ' )")
await asyncio.sleep(1)
await ctx.message.edit(content="( ' O ' )")
await asyncio.sleep(1)
await ctx.message.edit(content="( ' O ')")
@commands.command()
async def deadchat(self, ctx):
wheelList = ['DEAD CHAT', 'T DEAD CHA', 'AT DEAD CH', 'HAT DEAD C', 'CHAT DEAD', 'D CHAT DEA', 'AD CHAT DE', 'EAD CHAT D']
wheelIter = iter(wheelList)
for i in range(1, 10, 1):
try:
wheel = next(wheelIter)
except StopIteration:
wheelIter = iter(wheelList)
wheel = next(wheelIter)
await ctx.message.edit(content=f"`{wheel}`")
await asyncio.sleep(1)
@commands.command()
async def ghostie(self, ctx):
for i in range(7):
await ctx.message.edit(content="""(〜' - ')〜""")
await asyncio.sleep(1)
await ctx.message.edit(content="""〜(' - '〜)""")
await asyncio.sleep(1)
def setup(bot):
bot.add_cog(Anim(bot))
| 40.562791
| 131
| 0.531934
| 1,029
| 8,721
| 4.596696
| 0.155491
| 0.14186
| 0.232135
| 0.232981
| 0.747146
| 0.742072
| 0.718816
| 0.670613
| 0.660888
| 0.557717
| 0
| 0.015586
| 0.308451
| 8,721
| 214
| 132
| 40.752336
| 0.751948
| 0
| 0
| 0.538071
| 0
| 0
| 0.173194
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.010152
| false
| 0
| 0.015228
| 0
| 0.030457
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
966bd80bf132dab90dd1bf20affa078e1cd62aef
| 213
|
py
|
Python
|
release/stubs.min/System/ComponentModel/__init___parts/DoubleConverter.py
|
htlcnn/ironpython-stubs
|
780d829e2104b2789d5f4d6f32b0ec9f2930ca03
|
[
"MIT"
] | 182
|
2017-06-27T02:26:15.000Z
|
2022-03-30T18:53:43.000Z
|
release/stubs.min/System/ComponentModel/__init___parts/DoubleConverter.py
|
htlcnn/ironpython-stubs
|
780d829e2104b2789d5f4d6f32b0ec9f2930ca03
|
[
"MIT"
] | 28
|
2017-06-27T13:38:23.000Z
|
2022-03-15T11:19:44.000Z
|
release/stubs.min/System/ComponentModel/__init___parts/DoubleConverter.py
|
htlcnn/ironpython-stubs
|
780d829e2104b2789d5f4d6f32b0ec9f2930ca03
|
[
"MIT"
] | 67
|
2017-06-28T09:43:59.000Z
|
2022-03-20T21:17:10.000Z
|
class DoubleConverter(BaseNumberConverter):
"""
Provides a type converter to convert double-precision,floating point number objects to and from various other representations.
DoubleConverter()
"""
| 23.666667
| 128
| 0.760563
| 22
| 213
| 7.363636
| 0.909091
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.173709
| 213
| 8
| 129
| 26.625
| 0.920455
| 0.690141
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 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
| 0
| 0
| 1
| 0
|
0
| 4
|
96743c7cb4bab16440e16666084cc62e4b2dfe63
| 56
|
py
|
Python
|
example/multiload/packages/secondpackage/__init__.py
|
desty2k/paker
|
80a08576155e8737067fba6fede49d2d71d257ff
|
[
"MIT"
] | null | null | null |
example/multiload/packages/secondpackage/__init__.py
|
desty2k/paker
|
80a08576155e8737067fba6fede49d2d71d257ff
|
[
"MIT"
] | null | null | null |
example/multiload/packages/secondpackage/__init__.py
|
desty2k/paker
|
80a08576155e8737067fba6fede49d2d71d257ff
|
[
"MIT"
] | null | null | null |
def Print(string):
print(str(string).capitalize())
| 14
| 35
| 0.678571
| 7
| 56
| 5.428571
| 0.714286
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.142857
| 56
| 3
| 36
| 18.666667
| 0.791667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| false
| 0
| 0
| 0
| 0.5
| 0.5
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
967c08955f4ea706154ea77ad7f47d682ac55999
| 354
|
py
|
Python
|
tests/conftest.py
|
dmpe/matrix42sdk
|
b9e7e3698ae4225e5ada32133f7f518b605053ba
|
[
"MIT"
] | null | null | null |
tests/conftest.py
|
dmpe/matrix42sdk
|
b9e7e3698ae4225e5ada32133f7f518b605053ba
|
[
"MIT"
] | 6
|
2020-08-01T13:05:40.000Z
|
2021-07-03T17:48:09.000Z
|
tests/conftest.py
|
dmpe/matrix42sdk
|
b9e7e3698ae4225e5ada32133f7f518b605053ba
|
[
"MIT"
] | null | null | null |
import os
import pytest
import requests
import sys
import urllib3
from typing import Optional
urllib3.disable_warnings()
# Simulate bash export
@pytest.fixture
def get_url() -> str:
return os.environ.get("MATRIX42_URL").rstrip("/")
@pytest.fixture
def get_api_token() -> Optional[str]:
return os.environ.get("MATRIX42SDK_API_TOKEN", None)
| 16.090909
| 56
| 0.751412
| 49
| 354
| 5.285714
| 0.55102
| 0.100386
| 0.123552
| 0.146718
| 0.162162
| 0
| 0
| 0
| 0
| 0
| 0
| 0.019672
| 0.138418
| 354
| 21
| 57
| 16.857143
| 0.829508
| 0.056497
| 0
| 0.153846
| 0
| 0
| 0.10241
| 0.063253
| 0
| 0
| 0
| 0
| 0
| 1
| 0.153846
| true
| 0
| 0.461538
| 0.153846
| 0.769231
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 1
| 1
| 0
|
0
| 4
|
96806242059af0a847e4f87edb706857455266b7
| 14,034
|
py
|
Python
|
tests/test_cache.py
|
wijnandhoitinga/nutils
|
7ad6793ca5e3a43f45dcc0a4a795b381d2a0b9d4
|
[
"MIT"
] | 25
|
2015-04-29T13:10:22.000Z
|
2019-03-18T09:45:29.000Z
|
tests/test_cache.py
|
wijnandhoitinga/nutils
|
7ad6793ca5e3a43f45dcc0a4a795b381d2a0b9d4
|
[
"MIT"
] | 330
|
2015-03-04T09:06:38.000Z
|
2019-06-11T10:31:54.000Z
|
tests/test_cache.py
|
wijnandhoitinga/nutils
|
7ad6793ca5e3a43f45dcc0a4a795b381d2a0b9d4
|
[
"MIT"
] | 16
|
2015-03-23T08:00:46.000Z
|
2019-02-21T11:14:47.000Z
|
from nutils import *
from nutils.testing import *
import sys
import contextlib
import tempfile
import pathlib
import threading
@contextlib.contextmanager
def tmpcache():
with tempfile.TemporaryDirectory() as tmpdir:
with cache.enable(tmpdir):
yield pathlib.Path(tmpdir)
class TestException(Exception):
pass
class function(TestCase):
def test_nocache(self):
@cache.function
def func():
return 'spam'
self.assertEqual(func(), 'spam')
def test_cache(self):
@cache.function
def func():
nonlocal ncalls
ncalls += 1
return 'spam'
with tmpcache():
ncalls = 0
self.assertEqual(func(), 'spam')
self.assertEqual(ncalls, 1)
self.assertEqual(func(), 'spam')
self.assertEqual(ncalls, 1)
def test_cache_with_args(self):
@cache.function
def func(a, b):
nonlocal ncalls
ncalls += 1
return a + b
with tmpcache():
ncalls = 0
self.assertEqual(func(1, 2), 3)
self.assertEqual(ncalls, 1)
self.assertEqual(func(2, 1), 3)
self.assertEqual(ncalls, 2)
self.assertEqual(func(1, 2), 3)
self.assertEqual(ncalls, 2)
self.assertEqual(func(a=2, b=1), 3)
self.assertEqual(ncalls, 2)
def test_cache_with_kwonly_args(self):
@cache.function
def func(a, *, b):
nonlocal ncalls
ncalls += 1
return a + b
with tmpcache():
ncalls = 0
self.assertEqual(func(1, b=2), 3)
self.assertEqual(ncalls, 1)
self.assertEqual(func(2, b=1), 3)
self.assertEqual(ncalls, 2)
self.assertEqual(func(1, b=2), 3)
self.assertEqual(ncalls, 2)
self.assertEqual(func(a=2, b=1), 3)
self.assertEqual(ncalls, 2)
def test_cache_with_kwargs(self):
@cache.function
def func(a, *args, **kwargs):
nonlocal ncalls
ncalls += 1
return a + sum(args) + sum(kwargs.values())
with tmpcache():
ncalls = 0
self.assertEqual(func(1, 2, b=3), 6)
self.assertEqual(ncalls, 1)
self.assertEqual(func(1, b=2, c=3), 6)
self.assertEqual(ncalls, 2)
self.assertEqual(func(2, 1, b=3), 6)
self.assertEqual(ncalls, 3)
self.assertEqual(func(a=1, c=3, b=2), 6)
self.assertEqual(ncalls, 3)
def test_cache_with_version(self):
@cache.function
def func():
nonlocal ncalls
ncalls += 1
return 'spam'
func0 = func
@cache.function(version=0)
def func():
nonlocal ncalls
ncalls += 1
return 'spam'
func1 = func
@cache.function(version=1)
def func():
nonlocal ncalls
ncalls += 1
return 'eggs'
func2 = func
# The first two functions should have the same hash, the last should be
# different from the first two because of the version number.
with tmpcache():
ncalls = 0
self.assertEqual(func0(), 'spam')
self.assertEqual(ncalls, 1)
self.assertEqual(func1(), 'spam')
self.assertEqual(ncalls, 1)
self.assertEqual(func2(), 'eggs')
self.assertEqual(ncalls, 2)
def test_cache_invalid_version(self):
with self.assertRaisesRegex(ValueError, "^'version' should be of type 'int'"):
@cache.function(version='1')
def func():
pass
def test_cache_exception(self):
@cache.function
def func():
nonlocal ncalls
ncalls += 1
raise TestException('spam')
with tmpcache():
ncalls = 0
with self.assertRaises(TestException) as cm:
func()
self.assertEqual(cm.exception.args[0], 'spam')
self.assertEqual(ncalls, 1)
with self.assertRaises(TestException) as cm:
func()
self.assertEqual(cm.exception.args[0], 'spam')
self.assertEqual(ncalls, 2)
def test_corruption(self):
@cache.function
def func():
nonlocal ncalls
ncalls += 1
return 'spam'
for corruption in '', 'bogus':
with self.subTest(corruption=corruption), tmpcache() as cachedir:
ncalls = 0
self.assertEqual(func(), 'spam')
self.assertEqual(ncalls, 1)
cache_files = tuple(cachedir.iterdir())
self.assertEqual(len(cache_files), 1)
cache_file, = cache_files
with cache_file.open('wb') as f:
f.write(corruption.encode())
self.assertEqual(func(), 'spam')
self.assertEqual(ncalls, 2)
self.assertEqual(func(), 'spam')
self.assertEqual(ncalls, 2)
@unittest.skipIf(cache._lock_file is cache._lock_file_fallback, 'platform does not support file locks')
def test_concurrent_access(self):
@cache.function
def func():
nonlocal ncalls
ncalls += 1
return 'spam'
def wrapper():
nonlocal nsuccess
assert func() == 'spam'
nsuccess += 1
with tmpcache() as cachedir:
ncalls = 0
nsuccess = 0
# Call `wrapper`. Since the cache is clean `func` should be called.
wrapper()
self.assertEqual(ncalls, 1)
self.assertEqual(nsuccess, 1)
# Find the cache file, obtain a lock and call `wrapper` in a thread.
# `wrapper` should block on acquiring the file lock in `function.cache`.
cache_files = tuple(cachedir.iterdir())
self.assertEqual(len(cache_files), 1)
cache_file, = cache_files
with cache_file.open('r+b') as f:
cache._lock_file(f)
# We use `daemon=True` to make sure this thread won't keep the
# interpreter alive when something goes wrong with the thread.
t = threading.Thread(target=wrapper, daemon=True)
t.start()
# Give the thread some time to start.
t.join(timeout=1)
# Assert the thread is still running, but `func` is not called.
self.assertTrue(t.is_alive())
self.assertEqual(ncalls, 1)
self.assertEqual(nsuccess, 1)
# The lock has been released by closing the file. The thread should
# continue with loading the cache.
t.join(timeout=5)
self.assertFalse(t.is_alive())
self.assertEqual(ncalls, 1)
self.assertEqual(nsuccess, 2)
class Recursion(TestCase):
def test_nocache(self):
untouched = object()
class R(cache.Recursion, length=1):
def resume(R_self, history):
nonlocal received_history
received_history = tuple(history)
yield from range(0 if not history else history[-1]+1, 10)
received_history = untouched
self.assertEqual(tuple(R()), tuple(range(10)))
self.assertEqual(received_history, ())
def test_cache(self):
read = lambda iterable, n: tuple(item for i, item in zip(range(n), iterable))
untouched = object()
for length in 1, 2, 3:
with self.subTest(length=length), tmpcache():
class R(cache.Recursion, length=length):
def resume(R_self, history):
nonlocal received_history
received_history = tuple(history)
yield from range(0 if not history else history[-1]+1, 10)
received_history = untouched
self.assertEqual(read(R(), 4), tuple(range(4)))
self.assertEqual(received_history, ())
received_history = untouched
self.assertEqual(read(R(), 3), tuple(range(3)))
self.assertEqual(received_history, untouched)
received_history = untouched
self.assertEqual(read(R(), 6), tuple(range(6)))
self.assertEqual(received_history, tuple(range(4-length, 4)))
received_history = untouched
self.assertEqual(read(R(), 12), tuple(range(10)))
self.assertEqual(received_history, tuple(range(6-length, 6)))
received_history = untouched
self.assertEqual(read(R(), 12), tuple(range(10)))
self.assertEqual(received_history, untouched)
def test_cache_exception(self):
read = lambda iterable, n: tuple(item for i, item in zip(range(n), iterable))
untouched = object()
class R(cache.Recursion, length=1):
def resume(R_self, history):
nonlocal received_history
received_history = tuple(history)
yield from range(0 if not history else history[-1]+1, 2)
raise TestException('spam')
with tmpcache():
received_history = untouched
with self.assertRaises(TestException) as cm:
read(R(), 3)
self.assertEqual(cm.exception.args[0], 'spam')
self.assertEqual(received_history, ())
received_history = untouched
self.assertEqual(read(R(), 2), tuple(range(2)))
self.assertEqual(received_history, untouched)
received_history = untouched
with self.assertRaises(TestException) as cm:
read(R(), 4)
self.assertEqual(cm.exception.args[0], 'spam')
self.assertEqual(received_history, (1,))
def test_corruption(self):
read = lambda iterable, n: tuple(item for i, item in zip(range(n), iterable))
untouched = object()
class R(cache.Recursion, length=1):
def resume(R_self, history):
nonlocal received_history
received_history = tuple(history)
yield from range(0 if not history else history[-1]+1, 10)
for icorrupted in range(3):
for corruption in '', 'bogus':
with self.subTest(corruption=corruption, icorrupted=icorrupted), tmpcache() as cachedir:
received_history = untouched
self.assertEqual(read(R(), 4), tuple(range(4)))
self.assertEqual(received_history, ())
cache_files = tuple(cachedir.iterdir())
self.assertEqual(len(cache_files), 1)
cache_file, = cache_files
self.assertTrue((cache_file/'{:04d}'.format(icorrupted)).exists())
with (cache_file/'{:04d}'.format(icorrupted)).open('wb') as f:
f.write(corruption.encode())
received_history = untouched
self.assertEqual(read(R(), 6), tuple(range(6)))
self.assertEqual(received_history, (icorrupted-1,) if icorrupted else ())
@unittest.skipIf(cache._lock_file is cache._lock_file_fallback, 'platform does not support file locks')
def test_concurrent_access(self):
read = lambda iterable, n: tuple(item for i, item in zip(range(n), iterable))
untouched = object()
class R(cache.Recursion, length=1):
def resume(R_self, history):
nonlocal received_history
received_history = tuple(history)
yield from range(0 if not history else history[-1]+1, 10)
def wrapper(n):
nonlocal nsuccess
assert read(R(), n) == tuple(range(n))
nsuccess += 1
for ilock in range(3):
with self.subTest(ilock=ilock), tmpcache() as cachedir:
nsuccess = 0
# Call `wrapper`. Since the cache is clean `R.resume` should be called with empty history.
received_history = untouched
wrapper(4)
self.assertEqual(received_history, ())
self.assertEqual(nsuccess, 1)
# Find the cache file of iteration `ilock`, obtain a lock and call
# `wrapper` in a thread. `wrapper` should block on acquiring the file
# lock in `function.Recursion`.
cache_files = tuple(cachedir.iterdir())
self.assertEqual(len(cache_files), 1)
cache_file = cache_files[0]/'{:04d}'.format(ilock)
assert cache_file.exists()
with cache_file.open('r+b') as f:
cache._lock_file(f)
# We use `daemon=True` to make sure this thread won't keep the
# interpreter alive when something goes wrong with the thread.
received_history = untouched
t = threading.Thread(target=lambda: wrapper(5), daemon=True)
t.start()
# Give the thread some time to start.
t.join(timeout=1)
# Assert the thread is still running, but `R.resume` is not called.
self.assertEqual(received_history, untouched)
self.assertEqual(nsuccess, 1)
# The lock has been released by closing the file. The thread should
# continue with loading the cache and ultimately calling `R.resume
t.join(timeout=5)
self.assertFalse(t.is_alive())
self.assertEqual(received_history, (3,))
self.assertEqual(nsuccess, 2)
| 34.145985
| 107
| 0.545319
| 1,531
| 14,034
| 4.926192
| 0.120183
| 0.165076
| 0.06961
| 0.055688
| 0.803898
| 0.747945
| 0.722222
| 0.684301
| 0.629674
| 0.593211
| 0
| 0.020686
| 0.35585
| 14,034
| 410
| 108
| 34.229268
| 0.813606
| 0.090067
| 0
| 0.748322
| 0
| 0
| 0.018591
| 0
| 0
| 0
| 0
| 0
| 0.318792
| 1
| 0.11745
| false
| 0.006711
| 0.02349
| 0.003356
| 0.201342
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 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
|
9692d4377a08391980060ee04574b00a2d4e0b5d
| 303
|
py
|
Python
|
scee_backend/app.py
|
Kushagraw12/Scee-Website
|
41b6a558b12e231011e2a3ba8a5340cf971771e4
|
[
"Apache-2.0"
] | 4
|
2020-09-27T05:06:31.000Z
|
2021-01-03T10:41:30.000Z
|
scee_backend/app.py
|
Kushagraw12/Scee-Website
|
41b6a558b12e231011e2a3ba8a5340cf971771e4
|
[
"Apache-2.0"
] | 15
|
2020-09-23T21:27:15.000Z
|
2020-10-11T11:14:12.000Z
|
scee_backend/app.py
|
Kushagraw12/Scee-Website
|
41b6a558b12e231011e2a3ba8a5340cf971771e4
|
[
"Apache-2.0"
] | 26
|
2020-07-03T12:09:27.000Z
|
2020-12-02T16:48:04.000Z
|
from flask import Flask, render_template, request, redirect
import os
import uuid
app = Flask(__name__)
@app.route ('/')
def index():
return render_template ('index.html')
@app.route ("/blogs")
def blogs():
return render_template("cs.html")
if __name__ == "__main__":
app.run(debug=True)
| 16.833333
| 59
| 0.69637
| 41
| 303
| 4.780488
| 0.560976
| 0.214286
| 0.204082
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.155116
| 303
| 18
| 60
| 16.833333
| 0.765625
| 0
| 0
| 0
| 0
| 0
| 0.105263
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.166667
| false
| 0
| 0.25
| 0.166667
| 0.583333
| 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
| 0
| 1
| 1
| 0
|
0
| 4
|
96b00185c8528fec969905c8e911e3e3e45b5844
| 95
|
py
|
Python
|
chesscog/transfer_learning/__init__.py
|
MarinusHeindl/chesscog
|
9022e19b1ad125481b561c765a886285abc16eb0
|
[
"MIT"
] | 12
|
2021-07-14T15:49:53.000Z
|
2022-03-31T06:21:18.000Z
|
chesscog/transfer_learning/__init__.py
|
MarinusHeindl/chesscog
|
9022e19b1ad125481b561c765a886285abc16eb0
|
[
"MIT"
] | 3
|
2021-08-28T19:39:48.000Z
|
2021-12-20T21:25:45.000Z
|
chesscog/transfer_learning/__init__.py
|
MarinusHeindl/chesscog
|
9022e19b1ad125481b561c765a886285abc16eb0
|
[
"MIT"
] | 2
|
2022-01-04T09:25:23.000Z
|
2022-03-23T16:48:28.000Z
|
"""This module contains all code to fine-tune chess recognition system to a new chess set.
"""
| 31.666667
| 90
| 0.747368
| 16
| 95
| 4.4375
| 0.875
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.168421
| 95
| 2
| 91
| 47.5
| 0.898734
| 0.915789
| 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
|
96c23281ddecbc14ae21f1b82c0632c783e4b836
| 92
|
py
|
Python
|
examples/with-django/screenshot/apps.py
|
hemanshuchauhan/argos
|
fbca8713bdd2ffb611d1391cde1b522848962585
|
[
"MIT"
] | 3
|
2020-03-08T04:59:22.000Z
|
2020-10-18T02:58:51.000Z
|
examples/with-django/screenshot/apps.py
|
hemanshuchauhan/argos
|
fbca8713bdd2ffb611d1391cde1b522848962585
|
[
"MIT"
] | null | null | null |
examples/with-django/screenshot/apps.py
|
hemanshuchauhan/argos
|
fbca8713bdd2ffb611d1391cde1b522848962585
|
[
"MIT"
] | null | null | null |
from django.apps import AppConfig
class ScreenshotConfig(AppConfig):
name = 'screenshot'
| 18.4
| 34
| 0.793478
| 10
| 92
| 7.3
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.130435
| 92
| 4
| 35
| 23
| 0.9125
| 0
| 0
| 0
| 0
| 0
| 0.108696
| 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
|
737f7c2fa99de13b9276ea8a6601445e7f08ee1b
| 138
|
py
|
Python
|
Graph_Wall_Antispam/__init__.py
|
Phynixknight/WideDeepSequenceAttentionFrame
|
d04863c090fad4cbf2d288752154c525c9e28a6a
|
[
"Apache-2.0"
] | 7
|
2018-05-25T06:13:21.000Z
|
2019-07-07T07:35:54.000Z
|
Graph_Wall_Antispam/__init__.py
|
Phynixknight/WideDeepSequenceAttentionFrame
|
d04863c090fad4cbf2d288752154c525c9e28a6a
|
[
"Apache-2.0"
] | null | null | null |
Graph_Wall_Antispam/__init__.py
|
Phynixknight/WideDeepSequenceAttentionFrame
|
d04863c090fad4cbf2d288752154c525c9e28a6a
|
[
"Apache-2.0"
] | 3
|
2018-07-07T09:57:39.000Z
|
2018-11-24T06:09:02.000Z
|
# -*- coding: utf-8 -*-
# @Time : 8/6/18 11:32 AM
# @Author : gaishi
# @Site :
# @File : __init__.py
# @Software: IntelliJ IDEA
| 23
| 28
| 0.536232
| 19
| 138
| 3.684211
| 0.947368
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.088235
| 0.26087
| 138
| 6
| 29
| 23
| 0.598039
| 0.913043
| 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
|
738cce85d421fb0e43138bbe8b473e06863e1ef9
| 77
|
py
|
Python
|
app/routes/teacher/__init__.py
|
roshnet/Electron-Server
|
f21ced024d69d7d96e89a2aa90c80f3d6757b3e1
|
[
"MIT"
] | null | null | null |
app/routes/teacher/__init__.py
|
roshnet/Electron-Server
|
f21ced024d69d7d96e89a2aa90c80f3d6757b3e1
|
[
"MIT"
] | null | null | null |
app/routes/teacher/__init__.py
|
roshnet/Electron-Server
|
f21ced024d69d7d96e89a2aa90c80f3d6757b3e1
|
[
"MIT"
] | null | null | null |
from app.routes.teacher import calendar, classes, login, subjects, timetable
| 38.5
| 76
| 0.818182
| 10
| 77
| 6.3
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.103896
| 77
| 1
| 77
| 77
| 0.913043
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
738f554489d5b73f08adb18ac257213974cc301d
| 1,525
|
py
|
Python
|
to-words/test/test_to_words.py
|
jorgearanda/katas
|
2d7882d61b4e884f04bb057f62dbcf952d1767b0
|
[
"MIT"
] | null | null | null |
to-words/test/test_to_words.py
|
jorgearanda/katas
|
2d7882d61b4e884f04bb057f62dbcf952d1767b0
|
[
"MIT"
] | null | null | null |
to-words/test/test_to_words.py
|
jorgearanda/katas
|
2d7882d61b4e884f04bb057f62dbcf952d1767b0
|
[
"MIT"
] | null | null | null |
from to_words import to_words
def test_1():
assert to_words(1) == 'one'
def test_2():
assert to_words(2) == 'two'
def test_3():
assert to_words(3) == 'three'
def test_4():
assert to_words(4) == 'four'
def test_5():
assert to_words(5) == 'five'
def test_10():
assert to_words(10) == 'ten'
def test_11():
assert to_words(11) == 'eleven'
def test_12():
assert to_words(12) == 'twelve'
def test_13():
assert to_words(13) == 'thirteen'
def test_19():
assert to_words(19) == 'nineteen'
def test_20():
assert to_words(20) == 'twenty'
def test_27():
assert to_words(27) == 'twenty seven'
def test_35():
assert to_words(35) == 'thirty five'
def test_78():
assert to_words(78) == 'seventy eight'
def test_103():
assert to_words(103) == 'one hundred three'
def test_741():
assert to_words(741) == 'seven hundred forty one'
def test_999():
assert to_words(999) == 'nine hundred ninety nine'
def test_1015():
assert to_words(1015) == 'one thousand fifteen'
def test_8765():
assert to_words(8765) == 'eight thousand seven hundred sixty five'
def test_12345():
assert to_words(12345) == 'twelve thousand three hundred forty five'
def test_99999():
assert to_words(99999) == 'ninety nine thousand nine hundred ninety nine'
def test_9999999999():
assert to_words(9999999999) == \
'nine billion nine hundred ninety nine million ' + \
'nine hundred ninety nine thousand nine hundred ninety nine'
| 16.576087
| 77
| 0.64918
| 226
| 1,525
| 4.176991
| 0.234513
| 0.177966
| 0.302966
| 0.111229
| 0.119703
| 0.119703
| 0.082627
| 0
| 0
| 0
| 0
| 0.100587
| 0.217705
| 1,525
| 91
| 78
| 16.758242
| 0.690696
| 0
| 0
| 0
| 0
| 0
| 0.264918
| 0
| 0
| 0
| 0
| 0
| 0.468085
| 1
| 0.468085
| true
| 0
| 0.021277
| 0
| 0.489362
| 0
| 0
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
73a205356ac04bd71db7913a7f84d8ec7a322177
| 101
|
py
|
Python
|
examples/sympy/normexp/runcollect.py
|
Anirban166/tstl
|
73dac02f084b10e1bf2f172a5d1306bb5fbd7f7e
|
[
"Apache-2.0"
] | 90
|
2015-04-07T10:26:53.000Z
|
2022-03-07T15:14:57.000Z
|
examples/sympy/normexp/runcollect.py
|
Anirban166/tstl
|
73dac02f084b10e1bf2f172a5d1306bb5fbd7f7e
|
[
"Apache-2.0"
] | 14
|
2015-10-13T16:25:59.000Z
|
2021-01-21T18:31:03.000Z
|
examples/sympy/normexp/runcollect.py
|
Anirban166/tstl
|
73dac02f084b10e1bf2f172a5d1306bb5fbd7f7e
|
[
"Apache-2.0"
] | 32
|
2015-04-07T10:41:29.000Z
|
2022-02-26T05:17:28.000Z
|
import subprocess
while True:
subprocess.call(["ulimit -t7200; python collect1.py"],shell=True)
| 20.2
| 69
| 0.742574
| 13
| 101
| 5.769231
| 0.846154
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.056818
| 0.128713
| 101
| 4
| 70
| 25.25
| 0.795455
| 0
| 0
| 0
| 0
| 0
| 0.326733
| 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
|
73b4a25632865872dee9bd5eb253eaf3e1f3291c
| 190
|
py
|
Python
|
0x07/solve/ex03.py
|
nghianv-0795/sec-exercises
|
d672cd10188674e47aa00f4728b9f60aec905d82
|
[
"MIT"
] | null | null | null |
0x07/solve/ex03.py
|
nghianv-0795/sec-exercises
|
d672cd10188674e47aa00f4728b9f60aec905d82
|
[
"MIT"
] | null | null | null |
0x07/solve/ex03.py
|
nghianv-0795/sec-exercises
|
d672cd10188674e47aa00f4728b9f60aec905d82
|
[
"MIT"
] | 1
|
2020-12-15T10:09:07.000Z
|
2020-12-15T10:09:07.000Z
|
arr = [70, 152, 195, 284, 475, 612, 791, 896, 810, 850, 737, 1332, 1469, 1120, 1470, 832, 1785, 2196, 1520, 1480, 1449]
for i, c in enumerate(arr):
print(chr(c//(i+1)), end = "")
print()
| 31.666667
| 119
| 0.589474
| 35
| 190
| 3.2
| 0.885714
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.467532
| 0.189474
| 190
| 5
| 120
| 38
| 0.25974
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.5
| 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
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
73b9deed7ddfbad82996d85fe4936cf495eb098e
| 224
|
py
|
Python
|
app/views/home/home_view.py
|
polowis/virtComp
|
142c623da4722f7443d76fc8bef0e56c0aa3d48e
|
[
"MIT"
] | null | null | null |
app/views/home/home_view.py
|
polowis/virtComp
|
142c623da4722f7443d76fc8bef0e56c0aa3d48e
|
[
"MIT"
] | null | null | null |
app/views/home/home_view.py
|
polowis/virtComp
|
142c623da4722f7443d76fc8bef0e56c0aa3d48e
|
[
"MIT"
] | null | null | null |
from django.views import View
from django.shortcuts import render
class HomeView(View):
"""Index entry"""
template_name = 'index.html'
def get(self, request):
return render(request, self.template_name)
| 22.4
| 50
| 0.705357
| 29
| 224
| 5.37931
| 0.655172
| 0.128205
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.191964
| 224
| 10
| 50
| 22.4
| 0.861878
| 0.049107
| 0
| 0
| 0
| 0
| 0.048077
| 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
|
73fd8fe492da60d60dc375be749f680cc0a8e9a1
| 344
|
py
|
Python
|
grr/core/grr_response_core/config/local/contexts.py
|
tsehori/grr
|
048506f22f74642bfe61749069a45ddf496fdab3
|
[
"Apache-2.0"
] | 1
|
2021-07-01T01:43:06.000Z
|
2021-07-01T01:43:06.000Z
|
grr/core/grr_response_core/config/local/contexts.py
|
tsehori/grr
|
048506f22f74642bfe61749069a45ddf496fdab3
|
[
"Apache-2.0"
] | 44
|
2021-05-14T22:49:24.000Z
|
2022-03-13T21:54:02.000Z
|
grr/core/grr_response_core/config/local/contexts.py
|
tsehori/grr
|
048506f22f74642bfe61749069a45ddf496fdab3
|
[
"Apache-2.0"
] | 1
|
2020-06-25T14:25:54.000Z
|
2020-06-25T14:25:54.000Z
|
#!/usr/bin/env python
# Lint as: python3
"""Local contexts.
Put any config.CONFIG.DEFINE_context statements specific to your deployment
in this file.
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
# pylint: disable=unused-import
from grr_response_core.lib import config_lib
| 24.571429
| 75
| 0.81686
| 49
| 344
| 5.367347
| 0.734694
| 0.114068
| 0.18251
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.0033
| 0.119186
| 344
| 13
| 76
| 26.461538
| 0.864686
| 0.505814
| 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
| 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
|
fb5936250fdb3a63fab1ff7a13865f2654751f6e
| 90
|
py
|
Python
|
src/env.py
|
K9173A/hebrew-bot
|
f94fd581c008d729d789f4ebb279a8516adf2cde
|
[
"MIT"
] | null | null | null |
src/env.py
|
K9173A/hebrew-bot
|
f94fd581c008d729d789f4ebb279a8516adf2cde
|
[
"MIT"
] | null | null | null |
src/env.py
|
K9173A/hebrew-bot
|
f94fd581c008d729d789f4ebb279a8516adf2cde
|
[
"MIT"
] | null | null | null |
import os
from dotenv import load_dotenv
load_dotenv()
token = os.getenv('BOT_TOKEN')
| 10
| 30
| 0.755556
| 14
| 90
| 4.642857
| 0.571429
| 0.307692
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.155556
| 90
| 8
| 31
| 11.25
| 0.855263
| 0
| 0
| 0
| 0
| 0
| 0.1
| 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
|
fb90b1785483526613c061735aa43cfc387d8671
| 620
|
py
|
Python
|
github/methods/activity/watching/__init__.py
|
appheap/PyGithub
|
2442a2512a708c6463f81d8398fd91090e134df1
|
[
"MIT"
] | 1
|
2022-03-16T21:33:37.000Z
|
2022-03-16T21:33:37.000Z
|
github/methods/activity/watching/__init__.py
|
appheap/PyGithub
|
2442a2512a708c6463f81d8398fd91090e134df1
|
[
"MIT"
] | null | null | null |
github/methods/activity/watching/__init__.py
|
appheap/PyGithub
|
2442a2512a708c6463f81d8398fd91090e134df1
|
[
"MIT"
] | 1
|
2022-03-16T21:28:06.000Z
|
2022-03-16T21:28:06.000Z
|
from .delete_repository_subscription import DeleteRepositorySubscription
from .get_repository_subscription import GetRepositorySubscription
from .list_repository_watchers import ListRepositoryWatchers
from .list_user_watched_repositories import ListUserWatchedRepositories
from .list_watched_repositories import ListWatchedRepositories
from .set_repository_subscription import SetRepositorySubscription
class Watching(
DeleteRepositorySubscription,
GetRepositorySubscription,
ListRepositoryWatchers,
ListUserWatchedRepositories,
ListWatchedRepositories,
SetRepositorySubscription,
):
pass
| 32.631579
| 72
| 0.870968
| 46
| 620
| 11.456522
| 0.456522
| 0.125237
| 0.159393
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.104839
| 620
| 18
| 73
| 34.444444
| 0.94955
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.066667
| 0.4
| 0
| 0.466667
| 0
| 0
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
|
0
| 4
|
fb914f90e2771058c3660ad6d20a77c8e74314cc
| 430
|
py
|
Python
|
litebo/utils/config_space/__init__.py
|
usualwitch/lite-bo
|
142665a4c6075e5c427991c92f7444ead4dd41b5
|
[
"MIT"
] | 1
|
2020-12-06T14:38:59.000Z
|
2020-12-06T14:38:59.000Z
|
litebo/utils/config_space/__init__.py
|
usualwitch/lite-bo
|
142665a4c6075e5c427991c92f7444ead4dd41b5
|
[
"MIT"
] | null | null | null |
litebo/utils/config_space/__init__.py
|
usualwitch/lite-bo
|
142665a4c6075e5c427991c92f7444ead4dd41b5
|
[
"MIT"
] | null | null | null |
from ConfigSpace import Configuration, ConfigurationSpace
from ConfigSpace import ConfigurationSpace, Configuration, Constant,\
CategoricalHyperparameter, UniformFloatHyperparameter, \
UniformIntegerHyperparameter, InCondition
from ConfigSpace.read_and_write import pcs, pcs_new, json
from litebo.utils.config_space.util import convert_configurations_to_array
from ConfigSpace.util import get_one_exchange_neighbourhood
| 53.75
| 74
| 0.869767
| 44
| 430
| 8.272727
| 0.659091
| 0.164835
| 0.115385
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.093023
| 430
| 7
| 75
| 61.428571
| 0.933333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.714286
| 0
| 0.714286
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
fba69578009fc823e8b6754f904a56d7f276d394
| 167
|
py
|
Python
|
src/mf_horizon_client/client/warnings.py
|
MF-HORIZON/mf-horizon-python-client
|
67a4a094767cb8e5f01956f20f5ca7726781614a
|
[
"MIT"
] | null | null | null |
src/mf_horizon_client/client/warnings.py
|
MF-HORIZON/mf-horizon-python-client
|
67a4a094767cb8e5f01956f20f5ca7726781614a
|
[
"MIT"
] | null | null | null |
src/mf_horizon_client/client/warnings.py
|
MF-HORIZON/mf-horizon-python-client
|
67a4a094767cb8e5f01956f20f5ca7726781614a
|
[
"MIT"
] | null | null | null |
from enum import Enum
class Warnings(Enum):
NO_MAX_FIRE_AND_FORGET_WORKERS_SPECIFIED = "No maximum number of concurrent pipelines specified. Defaulting to one."
| 27.833333
| 120
| 0.808383
| 24
| 167
| 5.375
| 0.833333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.143713
| 167
| 5
| 121
| 33.4
| 0.902098
| 0
| 0
| 0
| 0
| 0
| 0.42515
| 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
|
fbb96b482a7a06970ab6bebd2e3fb13daffa654b
| 164
|
py
|
Python
|
Menel/functions/constant_length_text.py
|
05xapresses/Menel
|
7b79cdb51e613d8b4b1bdaa972338381c2936fa7
|
[
"MIT"
] | null | null | null |
Menel/functions/constant_length_text.py
|
05xapresses/Menel
|
7b79cdb51e613d8b4b1bdaa972338381c2936fa7
|
[
"MIT"
] | null | null | null |
Menel/functions/constant_length_text.py
|
05xapresses/Menel
|
7b79cdb51e613d8b4b1bdaa972338381c2936fa7
|
[
"MIT"
] | null | null | null |
def constant_length_text(text: str, length: int):
if len(text) > length:
return text[:length - 1] + '…'
else:
return text.rjust(length, ' ')
| 32.8
| 49
| 0.585366
| 22
| 164
| 4.409091
| 0.590909
| 0.206186
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.008264
| 0.262195
| 164
| 5
| 50
| 32.8
| 0.768595
| 0
| 0
| 0
| 0
| 0
| 0.012121
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0
| 0
| 0
| 0.6
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
fbdfa4ba9577a3f63483d5aa69b70faf17bcff1b
| 23
|
py
|
Python
|
pkgcmp/__init__.py
|
SS-RD/pkgcmp
|
330efddd6b54a04196add8a79df3c09bfc4ead0a
|
[
"Apache-2.0"
] | 1
|
2015-04-21T04:57:12.000Z
|
2015-04-21T04:57:12.000Z
|
pkgcmp/__init__.py
|
SS-RD/pkgcmp
|
330efddd6b54a04196add8a79df3c09bfc4ead0a
|
[
"Apache-2.0"
] | null | null | null |
pkgcmp/__init__.py
|
SS-RD/pkgcmp
|
330efddd6b54a04196add8a79df3c09bfc4ead0a
|
[
"Apache-2.0"
] | null | null | null |
'''
pkgcmp package
'''
| 5.75
| 14
| 0.565217
| 2
| 23
| 6.5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.173913
| 23
| 3
| 15
| 7.666667
| 0.684211
| 0.608696
| 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
|
839cb45966975a5b37419230231c8b86bfe3dd78
| 167
|
py
|
Python
|
examples/tamilspell.py
|
msathia/open-tamil
|
8e98a584dcf56ac8fe7529464114151f7357c746
|
[
"MIT"
] | null | null | null |
examples/tamilspell.py
|
msathia/open-tamil
|
8e98a584dcf56ac8fe7529464114151f7357c746
|
[
"MIT"
] | null | null | null |
examples/tamilspell.py
|
msathia/open-tamil
|
8e98a584dcf56ac8fe7529464114151f7357c746
|
[
"MIT"
] | null | null | null |
#!python
# -*- coding: utf-8 -*-
#(C) 2016-2018 Muthiah Annamalai
#This file is part of open-tamil package
import spell
if __name__ == u"__main__":
spell.main()
| 16.7
| 40
| 0.670659
| 25
| 167
| 4.16
| 0.92
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.065693
| 0.179641
| 167
| 9
| 41
| 18.555556
| 0.693431
| 0.592814
| 0
| 0
| 0
| 0
| 0.125
| 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
|
83a65b519444c4c42b7278c1c5b28edb78e2b04b
| 167
|
py
|
Python
|
backend/src/web/my_form.py
|
kaiocesar/portalcursos
|
d82ed7d250509b36b37b09ff172d8c804cfbdbdf
|
[
"MIT"
] | 1
|
2015-11-04T15:50:42.000Z
|
2015-11-04T15:50:42.000Z
|
backend/src/web/my_form.py
|
kaiocesar/portalcursos
|
d82ed7d250509b36b37b09ff172d8c804cfbdbdf
|
[
"MIT"
] | null | null | null |
backend/src/web/my_form.py
|
kaiocesar/portalcursos
|
d82ed7d250509b36b37b09ff172d8c804cfbdbdf
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
def index(_write_tmpl, name):
_write_tmpl('templates/add.html', {'name': name})
| 23.857143
| 56
| 0.712575
| 22
| 167
| 4.954545
| 0.772727
| 0.165138
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.006897
| 0.131737
| 167
| 6
| 57
| 27.833333
| 0.744828
| 0.125749
| 0
| 0
| 0
| 0
| 0.152778
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| 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
| 1
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
83ad4757763bec22d77424ba8a48a85837a1cf10
| 9,415
|
py
|
Python
|
tests/__init__.py
|
Privex/python-helpers
|
1c976ce5b0e2c5241ea0bdf330bd6701b5e31153
|
[
"X11"
] | 12
|
2019-06-18T11:17:41.000Z
|
2021-09-13T23:00:21.000Z
|
tests/__init__.py
|
Privex/python-helpers
|
1c976ce5b0e2c5241ea0bdf330bd6701b5e31153
|
[
"X11"
] | 1
|
2019-10-13T07:34:44.000Z
|
2019-10-13T07:34:44.000Z
|
tests/__init__.py
|
Privex/python-helpers
|
1c976ce5b0e2c5241ea0bdf330bd6701b5e31153
|
[
"X11"
] | 4
|
2019-10-10T10:15:09.000Z
|
2021-05-16T01:55:48.000Z
|
"""
This module contains test cases for Privex's Python Helper's (privex-helpers).
Testing pre-requisites
----------------------
- Ensure you have any mandatory requirements installed (see setup.py's install_requires)
- You should install ``pytest`` to run the tests, it works much better than standard python unittest.
- You may wish to install any optional requirements listed in README.md for best results
- Python 3.7 is recommended at the time of writing this. See README.md in-case this has changed.
For the best testing experience, it's recommended to install the ``dev`` extra, which includes every optional
dependency, as well as development requirements such as ``pytest`` , ``coverage`` as well as requirements for
building the documentation.
Running via PyTest
------------------
To run the tests, we strongly recommend using the ``pytest`` tool (used by default for our Travis CI)::
# Install PyTest if you don't already have it.
user@host: ~/privex-helpers $ pip3 install pytest
# We recommend adding the option ``-rxXs`` which will show information about why certain tests were skipped
# as well as info on xpass / xfail tests
# You can add `-v` for more detailed output, just like when running the tests directly.
user@host: ~/privex-helpers $ pytest -rxXs
# NOTE: If you're using a virtualenv, sometimes you may encounter strange conflicts between a global install
# of PyTest, and the virtualenv PyTest, resulting in errors related to packages not being installed.
# A simple workaround is just to call pytest as a module from the python3 executable:
user@host: ~/privex-helpers $ python3 -m pytest -rxXs
============================== test session starts ==============================
platform darwin -- Python 3.7.0, pytest-5.2.2, py-1.8.0, pluggy-0.13.0
rootdir: /home/user/privex-helpers
collected 99 items
tests/test_bool.py ......... [ 9%]
tests/test_cache.py ................ [ 25%]
tests/test_crypto.py ......................... [ 50%]
tests/test_general.py ................... [ 69%]
tests/test_net.py ssss.s [ 75%]
tests/test_parse.py .......... [ 85%]
tests/test_rdns.py .............. [100%]
============================ short test summary info ============================
SKIPPED [1] tests/test_net.py:76: Requires package 'dnspython'
SKIPPED [1] tests/test_net.py:83: Requires package 'dnspython'
SKIPPED [1] tests/test_net.py:66: Requires package 'dnspython'
SKIPPED [1] tests/test_net.py:71: Requires package 'dnspython'
SKIPPED [1] /home/user/privex-helpers/tests/test_net.py:56: Skipping test TestGeneral.test_ping_v6 as platform is
not supported: "privex.helpers.net.ping is not fully supported on platform 'Darwin'..."
================== 94 passed, 5 skipped, 1 warnings in 21.66s ===================
Running individual test modules
-------------------------------
Some test modules such as ``test_cache`` can be quite slow, as sometimes it's required to call sleep, e.g. ``sleep(2)``
either to prevent interference from previous/following tests, or when testing that an expiration/timeout works.
Thankfully, PyTest allows you to run individual test modules like this::
user@host: ~/privex-helpers $ pytest -rxXs -v tests/test_parse.py
============================== test session starts ==============================
platform darwin -- Python 3.7.0, pytest-5.2.2, py-1.8.0, pluggy-0.13.0
cachedir: .pytest_cache
rootdir: /home/user/privex-helpers
plugins: cov-2.8.1
collected 10 items
tests/test_parse.py::TestParseHelpers::test_csv_single PASSED [ 10%]
tests/test_parse.py::TestParseHelpers::test_csv_spaced PASSED [ 20%]
tests/test_parse.py::TestParseHelpers::test_env_bool_false PASSED [ 30%]
tests/test_parse.py::TestParseHelpers::test_env_bool_true PASSED [ 40%]
tests/test_parse.py::TestParseHelpers::test_env_nonexist_bool PASSED [ 50%]
tests/test_parse.py::TestParseHelpers::test_kval_clean PASSED [ 60%]
tests/test_parse.py::TestParseHelpers::test_kval_custom_clean PASSED [ 70%]
tests/test_parse.py::TestParseHelpers::test_kval_custom_spaced PASSED [ 80%]
tests/test_parse.py::TestParseHelpers::test_kval_single PASSED [ 90%]
tests/test_parse.py::TestParseHelpers::test_kval_spaced PASSED [100%]
============================== 10 passed in 0.09s ===============================
Running directly using Python Unittest
--------------------------------------
Alternatively, you can run the tests by hand with ``python3.7`` ( or just ``python3`` ), however we strongly
recommend using PyTest as our tests use various PyTest functionality to allow for things such as skipping tests
when you don't have a certain dependency installed.
Running via python unittest ::
user@the-matrix ~/privex-helpers $ python3.7 -m tests
............................
----------------------------------------------------------------------
Ran 28 tests in 0.001s
OK
For more verbosity, simply add ``-v`` to the end of the command::
user@the-matrix ~/privex-helpers $ python3 -m tests -v
test_empty_combined (__main__.TestBoolHelpers) ... ok
test_isfalse_truthy (__main__.TestBoolHelpers) ... ok
test_v4_arpa_boundary_16bit (__main__.TestIPReverseDNS)
Test generating 16-bit v4 boundary ... ok
test_v4_arpa_boundary_24bit (__main__.TestIPReverseDNS)
Test generating 24-bit v4 boundary ... ok
test_kval_single (__main__.TestParseHelpers)
Test that a single value still returns a list ... ok
test_kval_spaced (__main__.TestParseHelpers)
Test key:val csv parsing with excess outer whitespace, and value whitespace ... ok
# Truncated excess output in this PyDoc example, as there are many more lines showing
# the results of each individual testcase, wasting space and adding bloat...
----------------------------------------------------------------------
Ran 28 tests in 0.001s
OK
**Copyright**::
Copyright 2019 Privex Inc. ( https://www.privex.io )
License: X11 / MIT Github: https://github.com/Privex/python-helpers
+===================================================+
| © 2019 Privex Inc. |
| https://www.privex.io |
+===================================================+
| |
| Originally Developed by Privex Inc. |
| |
| Core Developer(s): |
| |
| (+) Chris (@someguy123) [Privex] |
| (+) Kale (@kryogenic) [Privex] |
| |
+===================================================+
Copyright 2019 Privex Inc. ( https://www.privex.io )
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
"""
import logging
import unittest
from privex.loghelper import LogHelper
from privex.helpers import env_bool
from tests.base import PrivexBaseCase, EmptyIter
if env_bool('DEBUG', False) is True:
LogHelper('privex.helpers', level=logging.DEBUG).add_console_handler(logging.DEBUG)
else:
LogHelper('privex.helpers', level=logging.CRITICAL) # Silence non-critical log messages
if __name__ == '__main__':
unittest.main()
from tests.test_cache import *
from tests.general import *
from tests.test_crypto import *
from tests.test_bool import TestBoolHelpers
from tests.test_rdns import TestIPReverseDNS
from tests.test_parse import TestParseHelpers
from tests.test_net import TestNet
from tests.test_collections import TestIsNamedTuple, TestDictableNamedtuple, TestDictObject
from tests.test_extras import TestAttrs
| 48.782383
| 119
| 0.605098
| 1,130
| 9,415
| 4.942478
| 0.361947
| 0.049955
| 0.032587
| 0.034378
| 0.222023
| 0.174396
| 0.147538
| 0.093107
| 0.047628
| 0.022919
| 0
| 0.021038
| 0.242698
| 9,415
| 192
| 120
| 49.036458
| 0.762132
| 0.911418
| 0
| 0
| 0
| 0
| 0.049757
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.7
| 0
| 0.7
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
83d5a0e5048a403bfae109d92410d785818e0953
| 33
|
py
|
Python
|
homeassistant/components/lifx_legacy/__init__.py
|
domwillcode/home-assistant
|
f170c80bea70c939c098b5c88320a1c789858958
|
[
"Apache-2.0"
] | 23
|
2017-11-15T21:03:53.000Z
|
2021-03-29T21:33:48.000Z
|
homeassistant/components/lifx_legacy/__init__.py
|
jagadeeshvenkatesh/core
|
1bd982668449815fee2105478569f8e4b5670add
|
[
"Apache-2.0"
] | 60
|
2020-08-03T07:32:56.000Z
|
2022-03-31T06:02:07.000Z
|
homeassistant/components/lifx_legacy/__init__.py
|
jagadeeshvenkatesh/core
|
1bd982668449815fee2105478569f8e4b5670add
|
[
"Apache-2.0"
] | 14
|
2018-08-19T16:28:26.000Z
|
2021-09-02T18:26:53.000Z
|
"""The lifx_legacy component."""
| 16.5
| 32
| 0.69697
| 4
| 33
| 5.5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.090909
| 33
| 1
| 33
| 33
| 0.733333
| 0.787879
| 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
|
83f1a6b3c54f07459fbe48ab59f17c82a194b9b2
| 71
|
py
|
Python
|
PedestrianSlayer/Tests/CommunicationTest.py
|
Viriliter/PedestrianSlayer
|
4adbdc3d0ed60408e6422cdba01f017701d05069
|
[
"MIT"
] | 2
|
2018-05-23T14:14:23.000Z
|
2018-12-03T21:08:37.000Z
|
PedestrianSlayer/Tests/CommunicationTest.py
|
Viriliter/PedestrianSlayer
|
4adbdc3d0ed60408e6422cdba01f017701d05069
|
[
"MIT"
] | null | null | null |
PedestrianSlayer/Tests/CommunicationTest.py
|
Viriliter/PedestrianSlayer
|
4adbdc3d0ed60408e6422cdba01f017701d05069
|
[
"MIT"
] | null | null | null |
import ManuelMode
mm = ManuelMode.ManuelMode()
mm.testCommunication()
| 14.2
| 28
| 0.802817
| 7
| 71
| 8.142857
| 0.571429
| 0.421053
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.098592
| 71
| 4
| 29
| 17.75
| 0.890625
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 0.333333
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
83f2d5cd2b2544a1c59509b5fa842064df657968
| 281
|
py
|
Python
|
590_Creating_a_Package/package_program.py
|
PacktPublishing/Python-for-Everybody-The-Ultimate-Python-3-Bootcamp
|
34d11a55506b1e0831a10166a5377f6592afeee8
|
[
"MIT"
] | 9
|
2020-08-06T08:53:36.000Z
|
2021-12-30T13:25:01.000Z
|
590_Creating_a_Package/package_program.py
|
PacktPublishing/Python-for-Everybody-The-Ultimate-Python-3-Bootcamp
|
34d11a55506b1e0831a10166a5377f6592afeee8
|
[
"MIT"
] | 1
|
2021-12-09T07:43:02.000Z
|
2021-12-09T07:43:02.000Z
|
590_Creating_a_Package/package_program.py
|
PacktPublishing/Python-for-Everybody-The-Ultimate-Python-3-Bootcamp
|
34d11a55506b1e0831a10166a5377f6592afeee8
|
[
"MIT"
] | 17
|
2020-07-28T10:04:41.000Z
|
2021-11-06T17:54:02.000Z
|
# package_program.py
from MyPackage.my_functions import a_new_function
from MyPackage.MySubFolder.subfolder_functions import which_course_is_this
from MyPackage.MySubFolder import subfolder_functions as sff
sff.which_course_is_this()
# a_new_function()
# which_course_is_this()
| 25.545455
| 74
| 0.86121
| 41
| 281
| 5.487805
| 0.463415
| 0.173333
| 0.173333
| 0.226667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.085409
| 281
| 10
| 75
| 28.1
| 0.875486
| 0.206406
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.75
| 0
| 0.75
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
8602c425362094ed2ebc4984f358aeaa5ee09adb
| 1,841
|
py
|
Python
|
tests/test_curried.py
|
z8674558/Expression
|
a9e41f24f055c353b609d0a19e1a51fb0735d99e
|
[
"MIT"
] | null | null | null |
tests/test_curried.py
|
z8674558/Expression
|
a9e41f24f055c353b609d0a19e1a51fb0735d99e
|
[
"MIT"
] | null | null | null |
tests/test_curried.py
|
z8674558/Expression
|
a9e41f24f055c353b609d0a19e1a51fb0735d99e
|
[
"MIT"
] | null | null | null |
from typing import Callable, overload
import pytest
from expression.core import curried
def test_curried_simple():
@curried
def add(a: int, b: int) -> int:
"""Add a + b"""
return a + b
assert add(3, 4) == 7
assert add()(3, 4) == 7
assert add(3)(4) == 7
assert add()(3)(4) == 7
assert add()(3)()(4) == 7
assert add()()(3)()()(4) == 7
def test_curried_named():
@curried
def add(a: int, b: int) -> int:
"""Add a + b"""
return a + b
assert add(3, b=4) == 7
assert add(a=3, b=4) == 7
assert add(3)(b=4) == 7
assert add(a=3)(b=4) == 7
assert add(3)(b=4) == 7
assert add()(3)(b=4) == 7
assert add()(3)()(b=4) == 7
def test_curried_starred_args():
@curried
def add(a: int, b: int) -> int:
"""Add a + b"""
return a + b
assert add(*[3, 4]) == 7
assert add(**dict(a=3, b=4)) == 7
def test_curried_none():
@curried
def magic() -> int:
return 42
assert magic() == 42
with pytest.raises(TypeError): # type:ignore
magic(42)
def test_curried_three():
@curried
def add(a: int, b: int, c: int) -> int:
"""Add a + b + c"""
return a + b + c
assert add(3, 4, 2) == 9
assert add(3)(4, 2) == 9
assert add(3, 4)(2) == 9
assert add(3)(4)(2) == 9
assert add()(3)()(4)()(2) == 9
with pytest.raises(TypeError): # type:ignore
add(3, 4, 5, 6)
with pytest.raises(TypeError): # type:ignore
add(3, 4, 5)(6, 7)
def test_curried_typed():
@overload
def add(a: int, b: int) -> int:
...
@overload
def add(a: int) -> Callable[[int], int]:
...
@curried
def add(a: int, b: int) -> int:
"""Add a + b"""
return a + b
assert add(3, 4) == 7
assert add(3)(4) == 7
| 20.01087
| 49
| 0.492124
| 294
| 1,841
| 3.037415
| 0.136054
| 0.221725
| 0.212766
| 0.172452
| 0.743561
| 0.68533
| 0.646137
| 0.567749
| 0.567749
| 0.567749
| 0
| 0.0682
| 0.315046
| 1,841
| 91
| 50
| 20.230769
| 0.639968
| 0.048886
| 0
| 0.451613
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.370968
| 1
| 0.225806
| false
| 0
| 0.048387
| 0.016129
| 0.370968
| 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
|
86056901e5592efffe0e7c1e02d4c21b481a858a
| 48
|
py
|
Python
|
rssant_config/__init__.py
|
lixiupei/rssant
|
a0602c561fbde3a564b4dadd177a96db64be8a56
|
[
"BSD-3-Clause"
] | 2
|
2021-02-06T15:07:48.000Z
|
2021-05-18T01:30:08.000Z
|
rssant_config/__init__.py
|
s1368816131/PY-rssant
|
9fd1b7a251fd8346dd9480150f5928836b5f2914
|
[
"BSD-3-Clause"
] | 5
|
2021-03-19T11:23:24.000Z
|
2022-02-10T11:36:33.000Z
|
rssant_config/__init__.py
|
lixiupei/rssant
|
a0602c561fbde3a564b4dadd177a96db64be8a56
|
[
"BSD-3-Clause"
] | null | null | null |
from .env import CONFIG
__all__ = ('CONFIG', )
| 12
| 23
| 0.666667
| 6
| 48
| 4.666667
| 0.833333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.1875
| 48
| 3
| 24
| 16
| 0.717949
| 0
| 0
| 0
| 0
| 0
| 0.125
| 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
|
f7a377e84731f9f72fb64af788db949298853506
| 433
|
py
|
Python
|
quotesbot/test.py
|
cankaya07/Window
|
22ddbdf2c9ceb90584627ccc1e62eb44a4586945
|
[
"MIT"
] | null | null | null |
quotesbot/test.py
|
cankaya07/Window
|
22ddbdf2c9ceb90584627ccc1e62eb44a4586945
|
[
"MIT"
] | 1
|
2018-06-29T11:05:56.000Z
|
2018-06-29T11:05:56.000Z
|
quotesbot/test.py
|
cankaya07/Window
|
22ddbdf2c9ceb90584627ccc1e62eb44a4586945
|
[
"MIT"
] | null | null | null |
import scrapy
import yaml
x = "{title: 'Erkek Lacivert Günlük Ayakkabı', description: '<ul><li>Materyal: Keten</li><li>İç Materyal: Keten</li><li>Taban: Kauçuk Taban</li></ul>', url: '/erkek-lacivert-gunluk-ayakkabi-2538304', code: 'C-73994', id: '2538304', price: '109.99', old_price: '189.99', images: ['http:as'] }"
print(yaml.load(x))
| 61.857143
| 383
| 0.535797
| 54
| 433
| 4.296296
| 0.685185
| 0.112069
| 0.12931
| 0.146552
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.094463
| 0.290993
| 433
| 6
| 384
| 72.166667
| 0.65798
| 0
| 0
| 0
| 0
| 0.25
| 0.87067
| 0.096998
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 0.5
| 0.25
| 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
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
f7ddad51f8536d18ddab5ed1a941627c79525873
| 311
|
py
|
Python
|
Desafio013.py
|
GabrielSanchesRosa/Python
|
3a129e27e076b2a91af03d68ede50b9c45c50217
|
[
"MIT"
] | null | null | null |
Desafio013.py
|
GabrielSanchesRosa/Python
|
3a129e27e076b2a91af03d68ede50b9c45c50217
|
[
"MIT"
] | null | null | null |
Desafio013.py
|
GabrielSanchesRosa/Python
|
3a129e27e076b2a91af03d68ede50b9c45c50217
|
[
"MIT"
] | null | null | null |
# Faça um algoritimo que leia o salário de um funcionário e mostre seu novo salário, com 15% de aumento.
salario = float(input('Qual é o salário do Funcionário? R$'))
novo = salario + (salario * 15 / 100)
print(f'Um funcionário que ganhava R${salario:.2f}, com 15% de aumento, passa a receber R${novo:.2f}.')
| 44.428571
| 104
| 0.710611
| 53
| 311
| 4.169811
| 0.584906
| 0.072398
| 0.063348
| 0.126697
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.042636
| 0.170418
| 311
| 6
| 105
| 51.833333
| 0.813953
| 0.327974
| 0
| 0
| 0
| 0.333333
| 0.618357
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.333333
| 0
| 0
| 0
| 0.333333
| 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
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
f7e59fb84c769c48e96b118004ac70e1be6b4625
| 115
|
py
|
Python
|
back-end/f1hub/constructorstandings/apps.py
|
mmzboys/F1Hub
|
5045c4c62dea738812a6856353d48e5b70d577e2
|
[
"MIT"
] | null | null | null |
back-end/f1hub/constructorstandings/apps.py
|
mmzboys/F1Hub
|
5045c4c62dea738812a6856353d48e5b70d577e2
|
[
"MIT"
] | 18
|
2019-08-29T12:42:11.000Z
|
2022-02-12T13:04:58.000Z
|
back-end/f1hub/constructorstandings/apps.py
|
mmzboys/F1Hub
|
5045c4c62dea738812a6856353d48e5b70d577e2
|
[
"MIT"
] | null | null | null |
from django.apps import AppConfig
class ConstructorstandingsConfig(AppConfig):
name = 'constructorstandings'
| 19.166667
| 44
| 0.808696
| 10
| 115
| 9.3
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.130435
| 115
| 5
| 45
| 23
| 0.93
| 0
| 0
| 0
| 0
| 0
| 0.173913
| 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
|
f7f30876108c925913bd55d6fe1062ce2b4a31ce
| 2,035
|
py
|
Python
|
services/storage/client-sdk/python/simcore_service_storage_sdk/__init__.py
|
KZzizzle/osparc-simcore
|
981bc8d193f3f5d507e3225f857e0308c339e163
|
[
"MIT"
] | null | null | null |
services/storage/client-sdk/python/simcore_service_storage_sdk/__init__.py
|
KZzizzle/osparc-simcore
|
981bc8d193f3f5d507e3225f857e0308c339e163
|
[
"MIT"
] | 17
|
2020-10-15T16:06:05.000Z
|
2022-03-21T18:48:21.000Z
|
services/storage/client-sdk/python/simcore_service_storage_sdk/__init__.py
|
Surfict/osparc-simcore
|
1e0b89574ec17ecb089674f9e5daa83d624430c8
|
[
"MIT"
] | null | null | null |
# coding: utf-8
# flake8: noqa
"""
simcore-service-storage API
API definition for simcore-service-storage service # noqa: E501
OpenAPI spec version: 0.1.0
Contact: support@simcore.io
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
__version__ = "0.1.0"
# import apis into sdk package
from simcore_service_storage_sdk.api.users_api import UsersApi
# import ApiClient
from simcore_service_storage_sdk.api_client import ApiClient
from simcore_service_storage_sdk.configuration import Configuration
# import models into sdk package
from simcore_service_storage_sdk.models.error_enveloped import ErrorEnveloped
from simcore_service_storage_sdk.models.error_item_type import ErrorItemType
from simcore_service_storage_sdk.models.error_type import ErrorType
from simcore_service_storage_sdk.models.fake_enveloped import FakeEnveloped
from simcore_service_storage_sdk.models.fake_type import FakeType
from simcore_service_storage_sdk.models.file_location import FileLocation
from simcore_service_storage_sdk.models.file_location_array import FileLocationArray
from simcore_service_storage_sdk.models.file_location_array_enveloped import FileLocationArrayEnveloped
from simcore_service_storage_sdk.models.file_meta_data_array_enveloped import FileMetaDataArrayEnveloped
from simcore_service_storage_sdk.models.file_meta_data_array_type import FileMetaDataArrayType
from simcore_service_storage_sdk.models.file_meta_data_enveloped import FileMetaDataEnveloped
from simcore_service_storage_sdk.models.file_meta_data_type import FileMetaDataType
from simcore_service_storage_sdk.models.health_check_enveloped import HealthCheckEnveloped
from simcore_service_storage_sdk.models.health_check_type import HealthCheckType
from simcore_service_storage_sdk.models.log_message_type import LogMessageType
from simcore_service_storage_sdk.models.presigned_link_enveloped import PresignedLinkEnveloped
from simcore_service_storage_sdk.models.presigned_link_type import PresignedLinkType
| 46.25
| 104
| 0.885012
| 271
| 2,035
| 6.250923
| 0.265683
| 0.181818
| 0.272727
| 0.295159
| 0.531877
| 0.531877
| 0.508264
| 0.360094
| 0.174734
| 0.060213
| 0
| 0.005864
| 0.078133
| 2,035
| 43
| 105
| 47.325581
| 0.897122
| 0.14742
| 0
| 0
| 0
| 0
| 0.002936
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.954545
| 0
| 0.954545
| 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
|
f7f57d00224792a4f3f8c2d4ac015d89da307f56
| 38
|
py
|
Python
|
atom_babies/set_orientation_upside_down.py
|
3110/atom-babies
|
4cd326308ec407df0b23b5833213bea43d598934
|
[
"MIT"
] | 2
|
2022-02-09T02:02:31.000Z
|
2022-03-20T09:18:06.000Z
|
atom_babies/set_orientation_upside_down.py
|
3110/atom-babies
|
4cd326308ec407df0b23b5833213bea43d598934
|
[
"MIT"
] | null | null | null |
atom_babies/set_orientation_upside_down.py
|
3110/atom-babies
|
4cd326308ec407df0b23b5833213bea43d598934
|
[
"MIT"
] | null | null | null |
_ab_set_orientation('ORI_UPSIDE_DOWN')
| 38
| 38
| 0.894737
| 6
| 38
| 4.833333
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 38
| 1
| 38
| 38
| 0.763158
| 0
| 0
| 0
| 0
| 0
| 0.384615
| 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
|
79183b64b073bf5b1c405ad3b55b2a36c8503564
| 115
|
py
|
Python
|
python/testData/intentions/convertTripleQuotedString.py
|
jnthn/intellij-community
|
8fa7c8a3ace62400c838e0d5926a7be106aa8557
|
[
"Apache-2.0"
] | 2
|
2019-04-28T07:48:50.000Z
|
2020-12-11T14:18:08.000Z
|
python/testData/intentions/convertTripleQuotedString.py
|
Cyril-lamirand/intellij-community
|
60ab6c61b82fc761dd68363eca7d9d69663cfa39
|
[
"Apache-2.0"
] | 173
|
2018-07-05T13:59:39.000Z
|
2018-08-09T01:12:03.000Z
|
python/testData/intentions/convertTripleQuotedString.py
|
Cyril-lamirand/intellij-community
|
60ab6c61b82fc761dd68363eca7d9d69663cfa39
|
[
"Apache-2.0"
] | 2
|
2020-03-15T08:57:37.000Z
|
2020-04-07T04:48:14.000Z
|
if True:
if True:
a = ''''Hello'<caret> - said man.\n
Let's go.
And they went out.'''
| 23
| 39
| 0.443478
| 17
| 115
| 3
| 0.882353
| 0.235294
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.391304
| 115
| 5
| 40
| 23
| 0.728571
| 0
| 0
| 0.4
| 0
| 0
| 0.698276
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
792e72990b842564db11a80bb900fb703e60f42a
| 331
|
py
|
Python
|
src/pycycle/api.py
|
OpenMDAO-Plugins/pyCycle
|
e55f9cbd0d596049bfbc45a9b1c4f0b560c9367d
|
[
"Apache-2.0"
] | 3
|
2016-11-26T17:19:32.000Z
|
2020-07-07T14:50:22.000Z
|
src/pycycle/api.py
|
OpenMDAO-Plugins/pyCycle
|
e55f9cbd0d596049bfbc45a9b1c4f0b560c9367d
|
[
"Apache-2.0"
] | null | null | null |
src/pycycle/api.py
|
OpenMDAO-Plugins/pyCycle
|
e55f9cbd0d596049bfbc45a9b1c4f0b560c9367d
|
[
"Apache-2.0"
] | 5
|
2015-07-02T07:35:05.000Z
|
2016-11-26T17:18:30.000Z
|
from splitter import SplitterBPR, SplitterW
from start import FlowStart, FlowStartStatic
from inlet import Inlet
from nozzle import Nozzle
from duct import Duct
from compressor import Compressor
from heat_exchanger import HeatExchanger
from cycle_component import CycleComponent
from flowstation import FlowStation, FlowStationVar
| 33.1
| 51
| 0.873112
| 41
| 331
| 7
| 0.487805
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.117825
| 331
| 9
| 52
| 36.777778
| 0.982877
| 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
| 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
|
79333bd3bd2c393657538c33da859d3ab7fb7c60
| 370
|
py
|
Python
|
src/jnvportal/views.py
|
toransahu/jnv-portal
|
d08cd9987a718b4cc2926fc4e60376a1b805d79e
|
[
"Apache-2.0"
] | null | null | null |
src/jnvportal/views.py
|
toransahu/jnv-portal
|
d08cd9987a718b4cc2926fc4e60376a1b805d79e
|
[
"Apache-2.0"
] | null | null | null |
src/jnvportal/views.py
|
toransahu/jnv-portal
|
d08cd9987a718b4cc2926fc4e60376a1b805d79e
|
[
"Apache-2.0"
] | null | null | null |
"""sitewide view created especially for api_root"""
from rest_framework.decorators import api_view
from rest_framework.response import Response
from rest_framework.reverse import reverse
@api_view(http_method_names=['GET'])
def api_root(request, format=None):
return Response({
'users': reverse('users:user-list', request=request, format=format),
})
| 26.428571
| 76
| 0.759459
| 49
| 370
| 5.55102
| 0.530612
| 0.088235
| 0.1875
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.132432
| 370
| 13
| 77
| 28.461538
| 0.847352
| 0.121622
| 0
| 0
| 0
| 0
| 0.072327
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.125
| false
| 0
| 0.375
| 0.125
| 0.625
| 0
| 0
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
|
0
| 4
|
f709f773e6761ca5effc91050a215dab991ab27e
| 588
|
py
|
Python
|
graphql/utils/tests/test_quoted_or_list.py
|
ThanksBoomerang/graphql-core-legacy
|
6e2fbccdec655ce9122b84d3808c14242c4e6b96
|
[
"MIT"
] | 8
|
2020-03-23T21:34:02.000Z
|
2021-11-12T11:27:45.000Z
|
graphql/utils/tests/test_quoted_or_list.py
|
ThanksBoomerang/graphql-core-legacy
|
6e2fbccdec655ce9122b84d3808c14242c4e6b96
|
[
"MIT"
] | 17
|
2020-03-14T22:22:29.000Z
|
2022-03-16T19:26:37.000Z
|
graphql/utils/tests/test_quoted_or_list.py
|
ThanksBoomerang/graphql-core-legacy
|
6e2fbccdec655ce9122b84d3808c14242c4e6b96
|
[
"MIT"
] | 17
|
2020-03-23T12:06:23.000Z
|
2022-02-13T05:33:32.000Z
|
from pytest import raises
from ..quoted_or_list import quoted_or_list
def test_does_not_accept_an_empty_list():
with raises(StopIteration):
quoted_or_list([])
def test_returns_single_quoted_item():
assert quoted_or_list(["A"]) == '"A"'
def test_returns_two_item_list():
assert quoted_or_list(["A", "B"]) == '"A" or "B"'
def test_returns_comma_separated_many_item_list():
assert quoted_or_list(["A", "B", "C"]) == '"A", "B" or "C"'
def test_limits_to_five_items():
assert quoted_or_list(["A", "B", "C", "D", "E", "F"]) == '"A", "B", "C", "D" or "E"'
| 23.52
| 88
| 0.646259
| 94
| 588
| 3.638298
| 0.361702
| 0.163743
| 0.245614
| 0.210526
| 0.394737
| 0.22807
| 0.22807
| 0.163743
| 0
| 0
| 0
| 0
| 0.159864
| 588
| 24
| 89
| 24.5
| 0.692308
| 0
| 0
| 0
| 0
| 0
| 0.110544
| 0
| 0
| 0
| 0
| 0
| 0.307692
| 1
| 0.384615
| true
| 0
| 0.153846
| 0
| 0.538462
| 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
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
f70acec2724ccc45198a62b6a42519afcda8cad5
| 205
|
py
|
Python
|
basic-lang-fun/oop.py
|
diegopacheco/python-playground
|
8e6ba427df6922fb578c2328babbf3466687ccbf
|
[
"Unlicense"
] | null | null | null |
basic-lang-fun/oop.py
|
diegopacheco/python-playground
|
8e6ba427df6922fb578c2328babbf3466687ccbf
|
[
"Unlicense"
] | null | null | null |
basic-lang-fun/oop.py
|
diegopacheco/python-playground
|
8e6ba427df6922fb578c2328babbf3466687ccbf
|
[
"Unlicense"
] | null | null | null |
class Person:
def __init__(self, name, age):
self.name = name
self.age = age
def __str__(self):
return "{" + self.name + " " + str(self.age) + "}"
p1 = Person("John", 36)
print(p1)
| 18.636364
| 58
| 0.556098
| 28
| 205
| 3.785714
| 0.464286
| 0.226415
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.02649
| 0.263415
| 205
| 11
| 59
| 18.636364
| 0.675497
| 0
| 0
| 0
| 0
| 0
| 0.033981
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0
| 0.125
| 0.5
| 0.125
| 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
| 1
| 0
| 0
| 0
| 1
| 0
| 0
|
0
| 4
|
f722ed2d78ffd31704a3828c381652fbd174ab85
| 1,115
|
py
|
Python
|
curso_em_video/mundo_1/exs_python/ExPy002.py
|
LuiZamberlan/Ex.-Python
|
f5b6e4782e0ce0e3fead82b126b52588e1bc21b0
|
[
"MIT"
] | 1
|
2020-09-19T21:39:12.000Z
|
2020-09-19T21:39:12.000Z
|
curso_em_video/mundo_1/exs_python/ExPy002.py
|
LuiZamberlan/Ex.-Python
|
f5b6e4782e0ce0e3fead82b126b52588e1bc21b0
|
[
"MIT"
] | null | null | null |
curso_em_video/mundo_1/exs_python/ExPy002.py
|
LuiZamberlan/Ex.-Python
|
f5b6e4782e0ce0e3fead82b126b52588e1bc21b0
|
[
"MIT"
] | null | null | null |
n = str(input('Digite o nome: '))
#Função input(): tem por objetivo de escrever a String passada como parâmetro e em seguida, ativar o modo de digitação, isto é, colocar o Console de uma determinada forma em que seja possível a digitação (entrada de dados).
#faz uma pausa no programa e espera uma entrada do usuário pelo terminal. Para ler a entrada do usuário a função input() espera que após digitada a entrada o usuário aperte a tecla enter, após isso input() lê essa entrada como uma string, portanto, se a entrada esperada for um número ela deve ser convertida usando-se as funções de conversão int() ou float().
print(f'É um prazer te conhecer, {n}')
#String literal formatada: comece uma string com f ou F, antes de abrir as aspas ou aspas triplas. Dentro dessa string, pode-se escrever uma expressão Python entre caracteres { e }, que podem se referir a variáveis, ou valores literais.
print('É um prazer te conhecer, ', n)
print('Olá {0}, é um prazer te conhecer.'.format(n))
#Método format(): serve para criar uma string que contem campos entre chaves a serem substituídos pelos argumentos de format.
| 92.916667
| 360
| 0.765022
| 191
| 1,115
| 4.465969
| 0.570681
| 0.028136
| 0.031653
| 0.038687
| 0.069168
| 0.046893
| 0
| 0
| 0
| 0
| 0
| 0.00108
| 0.169507
| 1,115
| 11
| 361
| 101.363636
| 0.920086
| 0.843049
| 0
| 0
| 0
| 0
| 0.590643
| 0
| 0
| 0
| 0
| 0.090909
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.75
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
f7605ccc85d106d06a0bf781c87c1e594f594d45
| 1,864
|
py
|
Python
|
test/MathAlgorithmTest.py
|
ryhoh/PrimesServer
|
1085ab7fb416f380f12f5af060a6f374e868a567
|
[
"MIT"
] | null | null | null |
test/MathAlgorithmTest.py
|
ryhoh/PrimesServer
|
1085ab7fb416f380f12f5af060a6f374e868a567
|
[
"MIT"
] | null | null | null |
test/MathAlgorithmTest.py
|
ryhoh/PrimesServer
|
1085ab7fb416f380f12f5af060a6f374e868a567
|
[
"MIT"
] | null | null | null |
import unittest
import sys
sys.path.append('../src')
from MathAlgorithm import *
class MathAlgorithmTest(unittest.TestCase):
"""
eratosthenes(end: int)
[2, end) の区間内の素数をリストに詰める
2以下の入力に対し空リストを返す
"""
def test_eratosthenes(self):
self.assertEqual([], eratosthenes(-1))
self.assertEqual([], eratosthenes(0))
self.assertEqual([], eratosthenes(1))
self.assertEqual([], eratosthenes(2))
self.assertEqual([2], eratosthenes(3))
self.assertEqual([2, 3], eratosthenes(4))
self.assertEqual([2, 3], eratosthenes(5))
self.assertEqual([2, 3, 5, 7], eratosthenes(8))
self.assertEqual([2, 3, 5, 7], eratosthenes(9))
self.assertEqual([2, 3, 5, 7, 11, 13], eratosthenes(14))
def test_eratosthenes_too_big(self):
self.assertRaises(ValueError, eratosthenes, 10000001)
def test_generate_primes_str(self):
self.assertEqual("None", generate_primes_str(-1))
self.assertEqual("None", generate_primes_str(0))
self.assertEqual("None", generate_primes_str(1))
self.assertEqual("None", generate_primes_str(2))
self.assertEqual("2", generate_primes_str(3))
self.assertEqual("2 3", generate_primes_str(4))
self.assertEqual("2 3", generate_primes_str(5))
self.assertEqual("2 3 5 7", generate_primes_str(8))
self.assertEqual("2 3 5 7", generate_primes_str(9))
self.assertEqual("2 3 5 7 11 13", generate_primes_str(14))
def test_generate_primes_str_too_big(self):
self.assertRaises(ValueError, eratosthenes, 10000001)
if __name__ == '__main__':
unittest.main()
| 38.833333
| 66
| 0.5853
| 203
| 1,864
| 5.17734
| 0.216749
| 0.285442
| 0.182683
| 0.161751
| 0.69648
| 0.591817
| 0.591817
| 0.359657
| 0.253092
| 0.138915
| 0
| 0.062027
| 0.290773
| 1,864
| 47
| 67
| 39.659574
| 0.73298
| 0.034335
| 0
| 0.060606
| 0
| 0
| 0.036036
| 0
| 0
| 0
| 0
| 0
| 0.666667
| 1
| 0.121212
| false
| 0
| 0.090909
| 0
| 0.242424
| 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
|
e3a902c2b48e25629206e8e38c1b38fcd985abaa
| 205
|
py
|
Python
|
test-projects/python_test/main.py
|
rectcircle/new-file-by-type
|
85786a23366474dc5352f2e975fa741833682a56
|
[
"MIT"
] | 14
|
2018-05-29T14:09:15.000Z
|
2021-08-25T05:33:43.000Z
|
test-projects/python_test/main.py
|
rectcircle/new-file-by-type
|
85786a23366474dc5352f2e975fa741833682a56
|
[
"MIT"
] | 7
|
2019-05-13T02:54:46.000Z
|
2022-02-26T03:58:16.000Z
|
test-projects/python_test/main.py
|
rectcircle/new-file-by-type
|
85786a23366474dc5352f2e975fa741833682a56
|
[
"MIT"
] | 2
|
2020-03-15T22:39:45.000Z
|
2020-03-30T06:06:25.000Z
|
# -*- coding: utf8 -*-
# Copyright (c) 2019, Rectcircle. All rights reserved.
# @author Rectcircle
# @date 2019-06-13
# @version 0.0.1
# TODO: happy coding! (created by vscode extension new-file-by-type)
| 25.625
| 68
| 0.687805
| 30
| 205
| 4.7
| 0.833333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.092486
| 0.156098
| 205
| 7
| 69
| 29.285714
| 0.722543
| 0.931707
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0.142857
| null | 1
| null | true
| 0
| 0
| null | null | null | 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
e3c864e48bf6bc0d7fecf668be89b69075a07541
| 93
|
py
|
Python
|
particle/python/Gh2/examples/util.py
|
lcpp-org/PlasmaEDU
|
aba2a00c04413bdf26c74f9e5c515644a517b728
|
[
"MIT"
] | 6
|
2020-08-04T21:51:28.000Z
|
2021-12-09T22:16:43.000Z
|
particle/python/Gh2/examples/util.py
|
lcpp-org/PlasmaEDU
|
aba2a00c04413bdf26c74f9e5c515644a517b728
|
[
"MIT"
] | 3
|
2020-02-19T16:12:05.000Z
|
2020-09-21T20:44:16.000Z
|
particle/python/Gh2/examples/util.py
|
lcpp-org/PlasmaEDU
|
aba2a00c04413bdf26c74f9e5c515644a517b728
|
[
"MIT"
] | 5
|
2020-02-19T16:09:02.000Z
|
2022-01-31T19:56:00.000Z
|
import os
def mkdir(dirname):
if not os.path.exists(dirname):
os.mkdir(dirname)
| 15.5
| 35
| 0.655914
| 14
| 93
| 4.357143
| 0.642857
| 0.393443
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.225806
| 93
| 5
| 36
| 18.6
| 0.847222
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.25
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
e3ca8dee16bf8a166685d4e97d47a8f0ad6c4de1
| 96
|
py
|
Python
|
goodsorigin/apps.py
|
wh8983298/GreaterWMS
|
487e819fcf21a0dca1c74f5b44bc7221353ea3e2
|
[
"Apache-2.0"
] | 1,063
|
2020-11-15T12:55:15.000Z
|
2022-03-31T14:33:12.000Z
|
goodsorigin/apps.py
|
ashrafali46/GreaterWMS
|
1aed14a8c26c8ac4571db5e6b07ab7e4fa3c7c72
|
[
"Apache-2.0"
] | 96
|
2020-11-18T00:06:05.000Z
|
2022-03-03T09:05:39.000Z
|
goodsorigin/apps.py
|
ashrafali46/GreaterWMS
|
1aed14a8c26c8ac4571db5e6b07ab7e4fa3c7c72
|
[
"Apache-2.0"
] | 349
|
2020-11-15T13:15:30.000Z
|
2022-03-31T11:01:15.000Z
|
from django.apps import AppConfig
class GoodsoriginConfig(AppConfig):
name = 'goodsorigin'
| 19.2
| 35
| 0.78125
| 10
| 96
| 7.5
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.145833
| 96
| 4
| 36
| 24
| 0.914634
| 0
| 0
| 0
| 0
| 0
| 0.114583
| 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
|
e3fcaa432b1a9079e91e6786ad9b040ae4ff8dfb
| 108
|
py
|
Python
|
test/static_analysis/keywords.py
|
mrclary/jedi
|
803c3cb271ead297c4fe3ca916b54ed05a623459
|
[
"MIT"
] | 4,213
|
2015-01-02T15:43:22.000Z
|
2022-03-31T16:15:01.000Z
|
test/static_analysis/keywords.py
|
mrclary/jedi
|
803c3cb271ead297c4fe3ca916b54ed05a623459
|
[
"MIT"
] | 1,392
|
2015-01-02T18:43:39.000Z
|
2022-03-27T18:43:59.000Z
|
test/static_analysis/keywords.py
|
PeterJCLaw/jedi
|
070f191f550990c23220d7f209df076178307cf6
|
[
"MIT"
] | 525
|
2015-01-02T19:07:31.000Z
|
2022-03-13T02:03:20.000Z
|
def raises():
raise KeyError()
def wrong_name():
#! 6 name-error
raise NotExistingException()
| 13.5
| 32
| 0.648148
| 12
| 108
| 5.75
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.012048
| 0.231481
| 108
| 7
| 33
| 15.428571
| 0.819277
| 0.12963
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| true
| 0
| 0
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
e3fcf61b8c260a0e17e4ba12279bfcfd750d00c5
| 17,963
|
py
|
Python
|
python/test/grammar_translator/testAdaptiveDeviceSubroutine.py
|
ROCmSoftwarePlatform/gpufort
|
b3d392cf28200cd9b3b2f77689d5a81176b3ec42
|
[
"MIT"
] | 57
|
2021-10-04T19:52:55.000Z
|
2022-03-29T17:41:36.000Z
|
python/test/grammar_translator/testAdaptiveDeviceSubroutine.py
|
odellus/gpufort
|
f24f299e0a3a55c71bec8875e443be28413c9851
|
[
"MIT"
] | 12
|
2021-09-29T11:32:59.000Z
|
2021-12-09T11:39:54.000Z
|
python/test/grammar_translator/testAdaptiveDeviceSubroutine.py
|
ROCmSoftwarePlatform/gpufort
|
b3d392cf28200cd9b3b2f77689d5a81176b3ec42
|
[
"MIT"
] | 5
|
2021-10-05T06:16:28.000Z
|
2022-02-24T14:32:24.000Z
|
#!/usr/bin/env python3
# SPDX-License-Identifier: MIT
# Copyright (c) 2021 Advanced Micro Devices, Inc. All rights reserved.
import addtoplevelpath
import translator.translator as translator
testdata = []
testdata.append("""
attributes(global) subroutine test_gpu(A_d,N)
implicit none
!
INTEGER, PARAMETER :: DP = selected_real_kind(14,200)
integer, intent(in) :: N
real(DP), intent(inout) :: A_d(N)
i = 1 + threadIdx%x + blockIdx%x * blockDim%x
if ( i <= 5 ) then
A_d(i) = A_d(i) + 1
endif
end subroutine test_gpu
""")
testdata.append("""
attributes(global) subroutine ylmr2_gpu_kernel (lmax,lmax2, ng, g, gg, ylm)
implicit none
!
INTEGER, PARAMETER :: DP = selected_real_kind(14,200)
REAL(DP), PARAMETER :: pi = 3.14159265358979323846_DP
REAL(DP), PARAMETER :: fpi = 4.0_DP * pi
integer, intent(in) :: lmax2, ng
real(DP), intent(in) :: g (3, ng), gg (ng)
real(DP), intent(out) :: ylm (ng,lmax2)
!
! local variables
!
real(DP), parameter :: eps = 1.0d-9
!real(DP) :: Q(0:4,0:4) !Allocate Q for the maximum supported size
real(DP) :: cost , sent, phi
real(DP) :: c, gmod
integer :: lmax, ig, l, m, lm
attributes(value)::lmax,lmax2,ng
attributes(device):: g,gg,Q,ylm
if (ig <= ng) then
if (g(1,ig) > eps) then
phi = atan( g(2,ig)/g(1,ig) )
else if (g(1,ig) < -eps) then
phi = atan( g(2,ig)/g(1,ig) ) + pi
else
phi = sign( pi/2.d0,g(2,ig) )
end if
end if
return
end subroutine ylmr2_gpu_kernel
""")
testdata.append("""
attributes(global) subroutine ylmr2_gpu_kernel (lmax,lmax2, ng, g, gg, ylm)
implicit none
!
INTEGER, PARAMETER :: DP = selected_real_kind(14,200)
REAL(DP), PARAMETER :: pi = 3.14159265358979323846_DP
REAL(DP), PARAMETER :: fpi = 4.0_DP * pi
integer, intent(in) :: lmax2, ng
real(DP), intent(in) :: g (3, ng), gg (ng)
real(DP), intent(out) :: ylm (ng,lmax2)
!
! local variables
!
real(DP), parameter :: eps = 1.0d-9
real(DP) :: Q(0:4,0:4) !Allocate Q for the maximum supported size
real(DP) :: cost , sent, phi
real(DP) :: c, gmod
integer :: lmax, ig, l, m, lm
attributes(value)::lmax,lmax2,ng
attributes(device):: g,gg,Q,ylm
ig= threadIdx%x+BlockDim%x*(BlockIdx%x-1)
if (ig <= ng) then
!
if (lmax == 0) then
ylm(ig,1) = sqrt (1.d0 / fpi)
return
end if
!
! theta and phi are polar angles, cost = cos(theta)
!
gmod = sqrt (gg (ig) )
if (gmod < eps) then
cost = 0.d0
else
cost = g(3,ig)/gmod
endif
!
! beware the arc tan, it is defined modulo pi
!
if (g(1,ig) > eps) then
phi = atan( g(2,ig)/g(1,ig) )
else if (g(1,ig) < -eps) then
phi = atan( g(2,ig)/g(1,ig) ) + pi
else
phi = sign( pi/2.d0,g(2,ig) )
end if
sent = sqrt(max(0d0,1.d0-cost*cost))
!
! Q(:,l,m) are defined as sqrt ((l-m)!/(l+m)!) * P(:,l,m) where
! P(:,l,m) are the Legendre Polynomials (0 <= m <= l)
!
Q(0,0) = 1.d0
Q(1,0) = cost
Q(1,1) =-sent/sqrt(2.d0)
c = sqrt (3.d0 / fpi)
ylm(ig, 1) = sqrt (1.d0 / fpi)* Q(0,0)
ylm(ig, 2) = c* Q(1,0)
ylm(ig, 3) = c*sqrt (2.d0)* Q(1,1) * cos (phi)
ylm(ig, 4) = c*sqrt (2.d0)* Q(1,1) * sin (phi)
end if
return
end subroutine ylmr2_gpu_kernel
end module ylmr2_gpum
""")
testdata.append("""
attributes(global) subroutine ylmr2_gpu_kernel (lmax,lmax2, ng, g, gg, ylm)
implicit none
!
INTEGER, PARAMETER :: DP = selected_real_kind(14,200)
REAL(DP), PARAMETER :: pi = 3.14159265358979323846_DP
REAL(DP), PARAMETER :: fpi = 4.0_DP * pi
integer, intent(in) :: lmax2, ng
real(DP), intent(in) :: g (3, ng), gg (ng)
real(DP), intent(out) :: ylm (ng,lmax2)
!
! local variables
!
real(DP), parameter :: eps = 1.0d-9
real(DP) :: Q(0:4,0:4) !Allocate Q for the maximum supported size
real(DP) :: cost , sent, phi
real(DP) :: c, gmod
integer :: lmax, ig, l, m, lm
attributes(value)::lmax,lmax2,ng
attributes(device):: g,gg,Q,ylm
ig= threadIdx%x+BlockDim%x*(BlockIdx%x-1)
if (ig <= ng) then
!
if (lmax == 0) then
ylm(ig,1) = sqrt (1.d0 / fpi)
return
end if
!
! theta and phi are polar angles, cost = cos(theta)
!
gmod = sqrt (gg (ig) )
if (gmod < eps) then
cost = 0.d0
else
cost = g(3,ig)/gmod
endif
!
! beware the arc tan, it is defined modulo pi
!
if (g(1,ig) > eps) then
phi = atan( g(2,ig)/g(1,ig) )
else if (g(1,ig) < -eps) then
phi = atan( g(2,ig)/g(1,ig) ) + pi
else
phi = sign( pi/2.d0,g(2,ig) )
end if
sent = sqrt(max(0d0,1.d0-cost*cost))
!
! Q(:,l,m) are defined as sqrt ((l-m)!/(l+m)!) * P(:,l,m) where
! P(:,l,m) are the Legendre Polynomials (0 <= m <= l)
!
Q(0,0) = 1.d0
Q(1,0) = cost
Q(1,1) =-sent/sqrt(2.d0)
c = sqrt (3.d0 / fpi)
ylm(ig, 1) = sqrt (1.d0 / fpi)* Q(0,0)
ylm(ig, 2) = c* Q(1,0)
ylm(ig, 3) = c*sqrt (2.d0)* Q(1,1) * cos (phi)
ylm(ig, 4) = c*sqrt (2.d0)* Q(1,1) * sin (phi)
lm = 4
do l = 2, lmax
c = sqrt (DBLE(2*l+1) / fpi)
!
! recursion on l for Q(:,l,m)
!
do m = 0, l - 2
Q(l,m) = cost*(2*l-1)/sqrt(DBLE(l*l-m*m))*Q(l-1,m) &
- sqrt(DBLE((l-1)*(l-1)-m*m))/sqrt(DBLE(l*l-m*m))*Q(l-2,m)
end do
Q(l,l-1) = cost * sqrt(DBLE(2*l-1)) * Q(l-1,l-1)
Q(l,l) = - sqrt(DBLE(2*l-1))/sqrt(DBLE(2*l))*sent*Q(l-1,l-1)
!
!
! Y_lm, m = 0
!
lm = lm + 1
ylm(ig, lm) = c * Q(l,0)
!
do m = 1, l
!
! Y_lm, m > 0
!
ylm(ig, lm+2*m-1) = c * sqrt(2.d0) * Q(l,m) * cos (m*phi)
!
! Y_lm, m < 0
!
ylm(ig, lm+2*m ) = c * sqrt(2.d0) * Q(l,m) * sin (m*phi)
end do
lm=lm+2*l
end do
end if
return
end subroutine ylmr2_gpu_kernel
""")
testdata.append("""
attributes(global) subroutine qvan2_kernel(ngy, ih, jh, np, qmod_d, qg_d, ylmk0_d, lmaxq, nbetam, nlx, dq)
!-----------------------------------------------------------------------
!
! This routine computes the fourier transform of the Q functions
! The interpolation table for the radial fourier trasform is stored
! in qrad.
!
! The formula implemented here is
!
! q(g,i,j) = sum_lm (-i)^l ap(lm,i,j) yr_lm(g^) qrad(g,l,i,j)
!
!
USE kinds, ONLY: DP
USE us_gpum, ONLY: qrad_d
USE uspp, ONLY: lpl_d, lpx_d, ap_d
USE uspp_gpum, ONLY : indv_d, nhtolm_d
implicit none
!
! Input variables
!
REAL(DP),intent(IN) :: dq
integer, intent(IN) :: ngy, ih, jh, np, lmaxq, nbetam, nlx
attributes(value):: ngy, ih, jh, np, lmaxq, nbetam, nlx, dq
! ngy : number of G vectors to compute
! ih, jh: first and second index of Q
! np : index of pseudopotentials
!
real(DP),intent(IN) :: ylmk0_d (ngy, lmaxq * lmaxq), qmod_d (ngy)
! ylmk0 : spherical harmonics
! qmod : moduli of the q+g vectors
!
! output: the fourier transform of interest
!
real(DP),intent(OUT) :: qg_d (2,ngy)
attributes(device):: ylmk0_d, qmod_d, qg_d
!
! here the local variables
!
real (DP) :: sig
! the nonzero real or imaginary part of (-i)^L
real (DP), parameter :: sixth = 1.d0 / 6.d0
!
integer :: nb, mb, ijv, ivl, jvl, ig, lp, l, lm, i0, i1, i2, i3, ind
real(DP) :: dqi, qm, px, ux, vx, wx, uvx, pwx, work, qm1
real(DP) :: uvwx, pwvx, pwux, pxuvx
!
ig= threadIdx%x+BlockDim%x*(BlockIdx%x-1)
!
return
end subroutine qvan2_kernel
""")
testdata.append("""
attributes(global) subroutine qvan2_kernel(ngy, ih, jh, np, qmod_d, qg_d, ylmk0_d, lmaxq, nbetam, nlx, dq)
!-----------------------------------------------------------------------
!
! This routine computes the fourier transform of the Q functions
! The interpolation table for the radial fourier trasform is stored
! in qrad.
!
! The formula implemented here is
!
! q(g,i,j) = sum_lm (-i)^l ap(lm,i,j) yr_lm(g^) qrad(g,l,i,j)
!
!
USE kinds, ONLY: DP
USE us_gpum, ONLY: qrad_d
USE uspp, ONLY: lpl_d, lpx_d, ap_d
USE uspp_gpum, ONLY : indv_d, nhtolm_d
implicit none
!
! Input variables
!
REAL(DP),intent(IN) :: dq
integer, intent(IN) :: ngy, ih, jh, np, lmaxq, nbetam, nlx
attributes(value):: ngy, ih, jh, np, lmaxq, nbetam, nlx, dq
! ngy : number of G vectors to compute
! ih, jh: first and second index of Q
! np : index of pseudopotentials
!
real(DP),intent(IN) :: ylmk0_d (ngy, lmaxq * lmaxq), qmod_d (ngy)
! ylmk0 : spherical harmonics
! qmod : moduli of the q+g vectors
!
! output: the fourier transform of interest
!
real(DP),intent(OUT) :: qg_d (2,ngy)
attributes(device):: ylmk0_d, qmod_d, qg_d
!
! here the local variables
!
real (DP) :: sig
! the nonzero real or imaginary part of (-i)^L
real (DP), parameter :: sixth = 1.d0 / 6.d0
!
integer :: nb, mb, ijv, ivl, jvl, ig, lp, l, lm, i0, i1, i2, i3, ind
real(DP) :: dqi, qm, px, ux, vx, wx, uvx, pwx, work, qm1
real(DP) :: uvwx, pwvx, pwux, pxuvx
!
ig= threadIdx%x+BlockDim%x*(BlockIdx%x-1)
!
if (ig <= ngy) then
! compute the indices which correspond to ih,jh
dqi = 1.0_DP / dq
nb = indv_d (ih, np)
mb = indv_d (jh, np)
if (nb.ge.mb) then
ijv = nb * (nb - 1) / 2 + mb
else
ijv = mb * (mb - 1) / 2 + nb
endif
ivl = nhtolm_d(ih, np)
jvl = nhtolm_d(jh, np)
qg_d(1,ig) = 0.d0
qg_d(2,ig) = 0.d0
qm = qmod_d (ig) * dqi
px = qm - int (qm)
ux = 1.d0 - px
vx = 2.d0 - px
wx = 3.d0 - px
i0 = INT( qm ) + 1
i1 = i0 + 1
i2 = i0 + 2
i3 = i0 + 3
uvx = ux * vx * sixth
pwx = px * wx * 0.5d0
do lm = 1, lpx_d (ivl, jvl)
lp = lpl_d (ivl, jvl, lm)
if (lp == 1) then
l = 1
sig = 1.0d0
ind = 1
elseif ( lp <= 4) then
l = 2
sig =-1.0d0
ind = 2
elseif ( lp <= 9 ) then
l = 3
sig =-1.0d0
ind = 1
elseif ( lp <= 16 ) then
l = 4
sig = 1.0d0
ind = 2
elseif ( lp <= 25 ) then
l = 5
sig = 1.0d0
ind = 1
elseif ( lp <= 36 ) then
l = 6
sig =-1.0d0
ind = 2
else
l = 7
sig =-1.0d0
ind = 1
endif
sig = sig * ap_d (lp, ivl, jvl)
work = qrad_d (i0, ijv, l, np) * uvx * wx + &
qrad_d (i1, ijv, l, np) * pwx * vx - &
qrad_d (i2, ijv, l, np) * pwx * ux + &
qrad_d (i3, ijv, l, np) * px * uvx
qg_d (ind,ig) = qg_d (ind,ig) + sig * ylmk0_d (ig, lp) * work
end do
end if
!
return
end subroutine qvan2_kernel
""")
testdata.clear()
testdata.append(
"""
attributes(global) subroutine zhemv_gpu(N, A, lda, x, y)
use cudafor
implicit none
integer, value :: N, lda
complex(8), dimension(lda, N), device, intent(in) :: A
complex(8), dimension(N), device, intent(in) :: x
!DIR$ IGNORE_TKR y
real(8), dimension(2*N), device :: y
real(8), dimension(BX+1, BX), shared :: Ar_s
real(8), dimension(BX+1, BX), shared :: Ai_s
real(8), dimension(BX), shared :: r_s
real(8), dimension(BX), shared :: i_s
integer :: tx, ty, ii, jj, i, j, k, istat
real(8) :: rv1, rv2, iv1, iv2, myrsum, myisum
real(8) :: Ar, Ai, xrl, xil
complex(8) :: val
! ii,jj is index of top left corner of block
ii = (blockIdx%y-1) * blockDim%x + 1
!print*, "ii ", ii
myrsum = 0.0_8
myisum = 0.0_8
tx = threadIdx%x
ty = threadIdx%y
! if (ii + (blockIdx%x-1)*blockDim%x > N) return
!
!
! i = ii + tx - 1
! if (i <= N) then
! val = x(i) ! read part of x for lower triangular multiply
! endif
! xrl = dble(val)
! xil = dimag(val)
!
! ! Loop over columns (skip all lower triangular blocks)
!! do jj = ii + (blockIdx%x-1)*blockDim%x, N, gridDim%x*blockDim%x
! j = jj + ty - 1
!
! ! Load block into shared memory
! ! CASE 1: Diagonal block
! if (ii == jj) then
!
! ! Load full block into shared memory
! do k = 0,NTILES-1
! if (i <= N .and. j + k * blockDim%y <= N) then
! val = A(i, j + k*blockDim%y)
! Ar_s(tx, ty + k * blockDim%y) = dble(val)
! Ai_s(tx, ty + k * blockDim%y) = dimag(val)
! endif
! end do
!
! call syncthreads()
!
! ! Reflect to populate lower triangular part with true values of A
! do k = 0,NTILES-1
! if (tx > ty + k * blockDim%y) then
! Ar_s(tx, ty + k * blockDim%y) = Ar_s(ty + k * blockDim%y, tx)
! Ai_s(tx, ty + k * blockDim%y) = -Ai_s(ty + k * blockDim%y, tx)
! endif
! end do
!
! call syncthreads()
!
! do k = 0,NTILES-1
! if (i <= N .and. j + k * blockDim%y <= N ) then
! Ar = Ar_s(tx, ty + k * blockDim%y); Ai = Ai_s(tx, ty + k * blockDim%y)
! val = x(j + k*blockDim%y)
! rv1 = dble(val) ; iv1 = dimag(val)
! myrsum = myrsum + Ar * rv1 - Ai * iv1
! myisum = myisum + Ar * iv1 + Ai * rv1
! endif
! end do
!
! !call syncthreads()
!
! ! CASE 2: Upper triangular block
! else if (ii < jj) then
! do k = 0,NTILES-1
! if (j + k * blockDim%y <= N) then
! val = A(i, j + k * blockDim%y)
! Ar = dble(val)
! Ai = dimag(val)
! endif
!
! if (i <= N .and. j + k * blockDim%y <= N ) then
! val = x(j + k*blockDim%y)
! rv1 = dble(val) ; iv1 = dimag(val)
! myrsum = myrsum + Ar * rv1 - Ai * iv1
! myisum = myisum + Ar * iv1 + Ai * rv1
! endif
!
! ! Perform product for symmetric lower block here
! ! Don't need sync threads since thread is accessing own value
! !call syncthreads()
! if (i <= N .and. j + k*blockDim%y <= N) then
! rv1 = Ar * xrl + Ai * xil
! iv1 = Ar * xil - Ai * xrl
! else
! rv1 = 0.0_8
! iv1 = 0.0_8
! endif
!
! !Partial sum within warps using shuffle
! rv2 = __shfl_down(rv1,1)
! rv1 = rv1 + rv2
! rv2 = __shfl_down(rv1,2)
! rv1 = rv1 + rv2
! rv2 = __shfl_down(rv1,4)
! rv1 = rv1 + rv2
! rv2 = __shfl_down(rv1,8)
! rv1 = rv1 + rv2
! rv2 = __shfl_down(rv1,16)
! rv1 = rv1 + rv2
!
! if (tx == 1) then
! r_s(ty + k*blockDim%y) = rv1
! endif
!
! !Partial sum within warps using shuffle
! iv2 = __shfl_down(iv1,1)
! iv1 = iv1 + iv2
! iv2 = __shfl_down(iv1,2)
! iv1 = iv1 + iv2
! iv2 = __shfl_down(iv1,4)
! iv1 = iv1 + iv2
! iv2 = __shfl_down(iv1,8)
! iv1 = iv1 + iv2
! iv2 = __shfl_down(iv1,16)
! iv1 = iv1 + iv2
!
! if (tx == 1) then
! i_s(ty + k*blockDim%y) = iv1
! endif
! enddo
!
! call syncthreads()
!
! if (ty == 1 .and. jj+tx-1 <= N) then
! istat = atomicadd(y(2*(jj + tx -1)-1), r_s(tx))
! istat = atomicadd(y(2*(jj + tx -1)), i_s(tx))
! endif
! !call syncthreads()
!
! endif
!
! call syncthreads()
!
! end do
if (i <= N) then
istat = atomicadd(y(2*i - 1), myrsum)
istat = atomicadd(y(2*i), myisum)
endif
end subroutine zhemv_gpu
""")
testdata.clear()
testdata.append(
"""
attributes(global) subroutine zhemv_gpu(N, A, lda, x, y)
use cudafor
implicit none
integer, value :: N, lda
complex(8), dimension(lda, N), device, intent(in) :: A
complex(8), dimension(N), device, intent(in) :: x
!DIR$ IGNORE_TKR y
real(8), dimension(2*N), device :: y
real(8), dimension(BX+1, BX), shared :: Ar_s
real(8), dimension(BX+1, BX), shared :: Ai_s
real(8), dimension(BX), shared :: r_s
real(8), dimension(BX), shared :: i_s
integer :: tx, ty, ii, jj, i, j, k, istat
real(8) :: rv1, rv2, iv1, iv2, myrsum, myisum
real(8) :: Ar, Ai, xrl, xil
complex(8) :: val
! print*, "ii ", ii
ii = (blockIdx%y-1) * blockDim%x + 1
if (i <= N) then
istat = atomicadd(y(2*i - 1), myrsum)
istat = atomicadd(y(2*i), myisum)
endif
end subroutine zhemv_gpu""")
failedToParse = []
successfullyParsed = []
success = True
for v in testdata:
try:
name,argnames,cBody = translator.convertDeviceSubroutine(v,20)
print("{} -> {}".format(v,cBody))
print(argnames)
successfullyParsed.append(v)
except Exception as e:
print("failed to parse {}".format(v))
success = False
failedToParse.append(v)
raise e
if success:
print("SUCCESS!")
else:
print("Summary: Failed to parse {0} of {1} test inputs".format(len(failedToParse),len(failedToParse)+len(successfullyParsed)))
print("FAILURE!")
| 29.160714
| 130
| 0.498024
| 2,696
| 17,963
| 3.260386
| 0.122404
| 0.026621
| 0.022753
| 0.015017
| 0.764846
| 0.736746
| 0.725825
| 0.652446
| 0.644937
| 0.641752
| 0
| 0.048332
| 0.345766
| 17,963
| 616
| 131
| 29.160714
| 0.699626
| 0.006625
| 0
| 0.6
| 0
| 0.07
| 0.929575
| 0.066056
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.005
| 0
| 0.0225
| 0.015
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
54288e097bc83a5a006792d66e88c2820e188047
| 3,466
|
py
|
Python
|
src/scs_core/data/publication.py
|
south-coast-science/scs_core
|
81ad4010abb37ca935f3a31ac805639ef53b1bcf
|
[
"MIT"
] | 3
|
2019-03-12T01:59:58.000Z
|
2020-09-12T07:27:42.000Z
|
src/scs_core/data/publication.py
|
south-coast-science/scs_core
|
81ad4010abb37ca935f3a31ac805639ef53b1bcf
|
[
"MIT"
] | 1
|
2018-04-20T07:58:38.000Z
|
2021-03-27T08:52:45.000Z
|
src/scs_core/data/publication.py
|
south-coast-science/scs_core
|
81ad4010abb37ca935f3a31ac805639ef53b1bcf
|
[
"MIT"
] | 4
|
2017-09-29T13:08:43.000Z
|
2019-10-09T09:13:58.000Z
|
"""
Created on 22 Mar 2017
@author: Bruno Beloff (bruno.beloff@southcoastscience.com)
"""
from collections import OrderedDict
from scs_core.data.datetime import LocalizedDatetime
from scs_core.data.json import JSONable
# --------------------------------------------------------------------------------------------------------------------
class Publication(JSONable):
"""
classdocs
"""
# ----------------------------------------------------------------------------------------------------------------
@classmethod
def construct_from_jdict(cls, jdict):
if not jdict:
return None
for topic, payload in jdict.items():
return Publication(topic, payload)
return None
# ----------------------------------------------------------------------------------------------------------------
def __init__(self, topic, payload):
"""
Constructor
"""
self.__topic = topic # string
self.__payload = payload # dict
# ----------------------------------------------------------------------------------------------------------------
def as_json(self):
return {self.topic: self.payload}
# ----------------------------------------------------------------------------------------------------------------
@property
def topic(self):
return self.__topic
@property
def payload(self):
return self.__payload
# ----------------------------------------------------------------------------------------------------------------
def __str__(self, *args, **kwargs):
return "Publication:{topic:%s, payload:%s}" % (self.topic, self.payload)
# --------------------------------------------------------------------------------------------------------------------
class ReceivedPublication(JSONable):
"""
classdocs
"""
# ----------------------------------------------------------------------------------------------------------------
@classmethod
def construct_from_jdict(cls, jdict):
if not jdict:
return None
received = LocalizedDatetime.construct_from_iso8601(jdict.get('received'))
message = jdict.get('message')
return cls(received, message)
# ----------------------------------------------------------------------------------------------------------------
def __init__(self, received, message):
"""
Constructor
"""
self.__received = received # LocalizedDatetime
self.__message = message # Publication or dict
# ----------------------------------------------------------------------------------------------------------------
def as_json(self):
jdict = OrderedDict()
jdict['received'] = self.received
jdict['message'] = self.message
return jdict
# ----------------------------------------------------------------------------------------------------------------
@property
def received(self):
return self.__received
@property
def message(self):
return self.__message
# ----------------------------------------------------------------------------------------------------------------
def __str__(self, *args, **kwargs):
return "ReceivedPublication:{received:%s, message:%s}" % (self.received, self.message)
| 27.951613
| 118
| 0.348529
| 203
| 3,466
| 5.743842
| 0.270936
| 0.038593
| 0.060034
| 0.025729
| 0.205832
| 0.176672
| 0.132075
| 0.132075
| 0.132075
| 0.132075
| 0
| 0.003606
| 0.199942
| 3,466
| 123
| 119
| 28.178862
| 0.416877
| 0.444605
| 0
| 0.354167
| 0
| 0
| 0.059693
| 0.03012
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.0625
| 0.145833
| 0.625
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
582bdb4c67ede43e8a1f8b8378c2834d23a3655d
| 659
|
py
|
Python
|
controllers/__init__.py
|
MarceloJacinto/dsorlib
|
5208919579726b73f088605885f6e1f0bf17d297
|
[
"MIT"
] | null | null | null |
controllers/__init__.py
|
MarceloJacinto/dsorlib
|
5208919579726b73f088605885f6e1f0bf17d297
|
[
"MIT"
] | null | null | null |
controllers/__init__.py
|
MarceloJacinto/dsorlib
|
5208919579726b73f088605885f6e1f0bf17d297
|
[
"MIT"
] | null | null | null |
# Import a general PID controller
from dsorlib.controllers.inner_loops.pid import PID
# Import surge (PI), yaw (PD) and yaw-rate (PI) controllers for an AUV and the corresponding outer-loops
from dsorlib.controllers.inner_loops.auv_inner_loops import yaw_rate_PI, yaw_PD, surge_PI
from dsorlib.controllers.outer_loops.auv_outer_loop import AUVOuterLoop
# Import the position and attitude controllers for a quadrotor
from dsorlib.controllers.inner_loops.quadrotor_inner_loops import QuadrotorInnerLoop
# Import the Path following virtual target implementations
from dsorlib.controllers.path_following.virtual_target import VirtualTarget, SimpleVirtualTarget
| 54.916667
| 104
| 0.852807
| 93
| 659
| 5.870968
| 0.376344
| 0.100733
| 0.201465
| 0.148352
| 0.175824
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.100152
| 659
| 12
| 105
| 54.916667
| 0.920742
| 0.382398
| 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
| 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
|
5855832724a79514c4348603ce78cb641d29c115
| 210
|
py
|
Python
|
pytest_cases/tests/pytest_extension/fixtures/test_so3.py
|
chinghwayu/python-pytest-cases
|
a95f2a50c201a10c6a2aa2544bd1ea39aab23a47
|
[
"BSD-3-Clause"
] | null | null | null |
pytest_cases/tests/pytest_extension/fixtures/test_so3.py
|
chinghwayu/python-pytest-cases
|
a95f2a50c201a10c6a2aa2544bd1ea39aab23a47
|
[
"BSD-3-Clause"
] | null | null | null |
pytest_cases/tests/pytest_extension/fixtures/test_so3.py
|
chinghwayu/python-pytest-cases
|
a95f2a50c201a10c6a2aa2544bd1ea39aab23a47
|
[
"BSD-3-Clause"
] | null | null | null |
from pytest_cases import pytest_fixture_plus
@pytest_fixture_plus(unpack_into="foo,bar")
def foobar():
return "blah", "whatever"
def test_stuff(foo, bar):
assert foo == "blah" and bar == "whatever"
| 19.090909
| 46
| 0.714286
| 30
| 210
| 4.766667
| 0.633333
| 0.181818
| 0.237762
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.157143
| 210
| 10
| 47
| 21
| 0.80791
| 0
| 0
| 0
| 0
| 0
| 0.147619
| 0
| 0
| 0
| 0
| 0
| 0.166667
| 1
| 0.333333
| false
| 0
| 0.166667
| 0.166667
| 0.666667
| 0
| 0
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
5858a2f01ac1b0dc44c3cd154df9fd7b53af805b
| 148
|
py
|
Python
|
site-packages/vis/__init__.py
|
lebarsfa/vpython-wx
|
38df062e5532b79f632f4f2a1abae86754c264a9
|
[
"BSL-1.0"
] | 68
|
2015-01-17T05:41:58.000Z
|
2021-04-24T08:35:24.000Z
|
site-packages/vis/__init__.py
|
lebarsfa/vpython-wx
|
38df062e5532b79f632f4f2a1abae86754c264a9
|
[
"BSL-1.0"
] | 16
|
2015-01-02T19:36:06.000Z
|
2018-09-09T21:01:25.000Z
|
site-packages/vis/__init__.py
|
lebarsfa/vpython-wx
|
38df062e5532b79f632f4f2a1abae86754c264a9
|
[
"BSL-1.0"
] | 37
|
2015-02-04T04:23:00.000Z
|
2020-06-07T03:24:41.000Z
|
from __future__ import print_function
import imp as _imp
import sys as _sys
from visual_common.create_display import *
scene = display()
| 16.444444
| 43
| 0.763514
| 21
| 148
| 4.952381
| 0.619048
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.202703
| 148
| 8
| 44
| 18.5
| 0.881356
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.8
| 0
| 0.8
| 0.2
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
587055c1568bc63357416c305102a249aaf4fa73
| 36
|
py
|
Python
|
Python Book/8. Loops/01_numbers_from_1_to_100/numbers_from_1_to_100.py
|
alexanderivanov2/Softuni-Software-Engineering
|
8adb96f445f1da17dbb6eded9e9594319154c7e7
|
[
"MIT"
] | null | null | null |
Python Book/8. Loops/01_numbers_from_1_to_100/numbers_from_1_to_100.py
|
alexanderivanov2/Softuni-Software-Engineering
|
8adb96f445f1da17dbb6eded9e9594319154c7e7
|
[
"MIT"
] | null | null | null |
Python Book/8. Loops/01_numbers_from_1_to_100/numbers_from_1_to_100.py
|
alexanderivanov2/Softuni-Software-Engineering
|
8adb96f445f1da17dbb6eded9e9594319154c7e7
|
[
"MIT"
] | null | null | null |
for n in range(1, 101):
print(n)
| 18
| 23
| 0.583333
| 8
| 36
| 2.625
| 0.875
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.148148
| 0.25
| 36
| 2
| 24
| 18
| 0.62963
| 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
|
587b7cdb62ee9c5a34ac039dc45b2ec81f70facd
| 28
|
py
|
Python
|
henka/__init__.py
|
pgarcia14180/henka
|
850a01a272deaf414e70a818012f8b239018f460
|
[
"MIT"
] | null | null | null |
henka/__init__.py
|
pgarcia14180/henka
|
850a01a272deaf414e70a818012f8b239018f460
|
[
"MIT"
] | null | null | null |
henka/__init__.py
|
pgarcia14180/henka
|
850a01a272deaf414e70a818012f8b239018f460
|
[
"MIT"
] | null | null | null |
import henka
name = "henka"
| 9.333333
| 14
| 0.714286
| 4
| 28
| 5
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.178571
| 28
| 3
| 14
| 9.333333
| 0.869565
| 0
| 0
| 0
| 0
| 0
| 0.172414
| 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
|
58a27dc217c3b4e2569d1bd2e1590917f1fae75b
| 8,199
|
py
|
Python
|
lale/lib/sklearn/__init__.py
|
vickyvishal/lale
|
ff9d3666201648354a191ce30d3206151595d813
|
[
"Apache-2.0"
] | null | null | null |
lale/lib/sklearn/__init__.py
|
vickyvishal/lale
|
ff9d3666201648354a191ce30d3206151595d813
|
[
"Apache-2.0"
] | null | null | null |
lale/lib/sklearn/__init__.py
|
vickyvishal/lale
|
ff9d3666201648354a191ce30d3206151595d813
|
[
"Apache-2.0"
] | 1
|
2021-03-16T08:20:30.000Z
|
2021-03-16T08:20:30.000Z
|
# Copyright 2019 IBM Corporation
#
# 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, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""
Schema-enhanced versions of some of the operators from `scikit-learn 0.20`_ to enable hyperparameter tuning.
.. _`scikit-learn 0.20`: https://scikit-learn.org/0.20/
Operators
=========
Classifiers:
* lale.lib.sklearn. `AdaBoostClassifier`_
* lale.lib.sklearn. `BaggingClassifier`_
* lale.lib.sklearn. `DecisionTreeClassifier`_
* lale.lib.sklearn. `DummyClassifier`_
* lale.lib.sklearn. `ExtraTreesClassifier`_
* lale.lib.sklearn. `GaussianNB`_
* lale.lib.sklearn. `GradientBoostingClassifier`_
* lale.lib.sklearn. `KNeighborsClassifier`_
* lale.lib.sklearn. `LinearSVC`_
* lale.lib.sklearn. `LogisticRegression`_
* lale.lib.sklearn. `MLPClassifier`_
* lale.lib.sklearn. `MultinomialNB`_
* lale.lib.sklearn. `PassiveAggressiveClassifier`_
* lale.lib.sklearn. `RandomForestClassifier`_
* lale.lib.sklearn. `RidgeClassifier`_
* lale.lib.sklearn. `SGDClassifier`_
* lale.lib.sklearn. `SVC`_
* lale.lib.sklearn. `VotingClassifier`_
Regressors:
* lale.lib.sklearn. `AdaBoostRegressor`_
* lale.lib.sklearn. `DecisionTreeRegressor`_
* lale.lib.sklearn. `DummyRegressor`_
* lale.lib.sklearn. `ExtraTreesRegressor`_
* lale.lib.sklearn. `GradientBoostingRegressor`_
* lale.lib.sklearn. `KNeighborsRegressor`_
* lale.lib.sklearn. `LinearRegression`_
* lale.lib.sklearn. `RandomForestRegressor`_
* lale.lib.sklearn. `Ridge`_
* lale.lib.sklearn. `SGDRegressor`_
* lale.lib.sklearn. `SVR`_
Transformers:
* lale.lib.sklearn. `ColumnTransformer`_
* lale.lib.sklearn. `FeatureAgglomeration`_
* lale.lib.sklearn. `FunctionTransformer`_
* lale.lib.sklearn. `MinMaxScaler`_
* lale.lib.sklearn. `MissingIndicator`_
* lale.lib.sklearn. `NMF`_
* lale.lib.sklearn. `Normalizer`_
* lale.lib.sklearn. `Nystroem`_
* lale.lib.sklearn. `OneHotEncoder`_
* lale.lib.sklearn. `OrdinalEncoder`_
* lale.lib.sklearn. `PCA`_
* lale.lib.sklearn. `Pipeline`_
* lale.lib.sklearn. `PolynomialFeatures`_
* lale.lib.sklearn. `QuadraticDiscriminantAnalysis`_
* lale.lib.sklearn. `QuantileTransformer`_
* lale.lib.sklearn. `RFE`_
* lale.lib.sklearn. `RobustScaler`_
* lale.lib.sklearn. `SelectKBest`_
* lale.lib.sklearn. `SimpleImputer`_
* lale.lib.sklearn. `StandardScaler`_
* lale.lib.sklearn. `TfidfVectorizer`_
* lale.lib.sklearn. `VarianceThreshold`_
.. _`AdaBoostClassifier`: lale.lib.sklearn.ada_boost_classifier.html
.. _`AdaBoostRegressor`: lale.lib.sklearn.ada_boost_regressor.html
.. _`BaggingClassifier`: lale.lib.sklearn.bagging_classifier.html
.. _`ColumnTransformer`: lale.lib.sklearn.column_transformer.html
.. _`DecisionTreeClassifier`: lale.lib.sklearn.decision_tree_classifier.html
.. _`DecisionTreeRegressor`: lale.lib.sklearn.decision_tree_regressor.html
.. _`ExtraTreesClassifier`: lale.lib.sklearn.extra_trees_classifier.html
.. _`ExtraTreesRegressor`: lale.lib.sklearn.extra_trees_regressor.html
.. _`FeatureAgglomeration`: lale.lib.sklearn.feature_agglomeration.html
.. _`FunctionTransformer`: lale.lib.sklearn.function_transformer.html
.. _`GaussianNB`: lale.lib.sklearn.gaussian_nb.html
.. _`GradientBoostingClassifier`: lale.lib.sklearn.gradient_boosting_classifier.html
.. _`GradientBoostingRegressor`: lale.lib.sklearn.gradient_boosting_regressor.html
.. _`KNeighborsClassifier`: lale.lib.sklearn.k_neighbors_classifier.html
.. _`KNeighborsRegressor`: lale.lib.sklearn.k_neighbors_regressor.html
.. _`LinearRegression`: lale.lib.sklearn.linear_regression.html
.. _`LinearSVC`: lale.lib.sklearn.linear_svc.html
.. _`LogisticRegression`: lale.lib.sklearn.logistic_regression.html
.. _`MinMaxScaler`: lale.lib.sklearn.min_max_scaler.html
.. _`MissingIndicator`: lale.lib.sklearn.missing_indicator.html
.. _`MLPClassifier`: lale.lib.sklearn.mlp_classifier.html
.. _`MultinomialNB`: lale.lib.sklearn.multinomial_nb.html
.. _`NMF`: lale.lib.sklearn.nmf.html
.. _`Normalizer`: lale.lib.sklearn.normalizer.html
.. _`Nystroem`: lale.lib.sklearn.nystroem.html
.. _`OneHotEncoder`: lale.lib.sklearn.one_hot_encoder.html
.. _`OrdinalEncoder`: lale.lib.sklearn.ordinal_encoder.html
.. _`PassiveAggressiveClassifier`: lale.lib.sklearn.passive_aggressive_classifier.html
.. _`PCA`: lale.lib.sklearn.pca.html
.. _`Pipeline`: lale.lib.sklearn.pipeline.html
.. _`PolynomialFeatures`: lale.lib.sklearn.polynomial_features.html
.. _`QuadraticDiscriminantAnalysis`: lale.lib.sklearn.quadratic_discriminant_analysis.html
.. _`QuantileTransformer`: lale.lib.sklearn.quantile_transformer.html
.. _`RandomForestClassifier`: lale.lib.sklearn.random_forest_classifier.html
.. _`RandomForestRegressor`: lale.lib.sklearn.random_forest_regressor.html
.. _`RFE`: lale.lib.sklearn.rfe.html
.. _`Ridge`: lale.lib.sklearn.ridge.html
.. _`RidgeClassifier`: lale.lib.sklearn.ridge_classifier.html
.. _`RobustScaler`: lale.lib.sklearn.robust_scaler.html
.. _`SelectKBest`: lale.lib.sklearn.select_k_best.html
.. _`SGDClassifier`: lale.lib.sklearn.sgd_classifier.html
.. _`SGDRegressor`: lale.lib.sklearn.sgd_regressor.html
.. _`SimpleImputer`: lale.lib.sklearn.simple_imputer.html
.. _`StandardScaler`: lale.lib.sklearn.standard_scaler.html
.. _`SVC`: lale.lib.sklearn.svc.html
.. _`SVR`: lale.lib.sklearn.svr.html
.. _`TfidfVectorizer`: lale.lib.sklearn.tfidf_vectorizer.html
.. _`VarianceThreshold`: lale.lib.sklearn.variance_threshold.html
.. _`VotingClassifier`: lale.lib.sklearn.voting_classifier.html
"""
from .ada_boost_classifier import AdaBoostClassifier
from .ada_boost_regressor import AdaBoostRegressor
from .bagging_classifier import BaggingClassifier
from .column_transformer import ColumnTransformer
from .decision_tree_classifier import DecisionTreeClassifier
from .decision_tree_regressor import DecisionTreeRegressor
from .dummy_classifier import DummyClassifier
from .dummy_regressor import DummyRegressor
from .extra_trees_classifier import ExtraTreesClassifier
from .extra_trees_regressor import ExtraTreesRegressor
from .feature_agglomeration import FeatureAgglomeration
from .function_transformer import FunctionTransformer
from .gaussian_nb import GaussianNB
from .gradient_boosting_classifier import GradientBoostingClassifier
from .gradient_boosting_regressor import GradientBoostingRegressor
from .k_neighbors_classifier import KNeighborsClassifier
from .k_neighbors_regressor import KNeighborsRegressor
from .linear_regression import LinearRegression
from .linear_svc import LinearSVC
from .logistic_regression import LogisticRegression
from .min_max_scaler import MinMaxScaler
from .missing_indicator import MissingIndicator
from .mlp_classifier import MLPClassifier
from .multinomial_nb import MultinomialNB
from .nmf import NMF
from .normalizer import Normalizer
from .nystroem import Nystroem
from .one_hot_encoder import OneHotEncoder
from .ordinal_encoder import OrdinalEncoder
from .passive_aggressive_classifier import PassiveAggressiveClassifier
from .pca import PCA
from .pipeline import Pipeline
from .polynomial_features import PolynomialFeatures
from .quadratic_discriminant_analysis import QuadraticDiscriminantAnalysis
from .quantile_transformer import QuantileTransformer
from .random_forest_classifier import RandomForestClassifier
from .random_forest_regressor import RandomForestRegressor
from .rfe import RFE
from .ridge import Ridge
from .ridge_classifier import RidgeClassifier
from .robust_scaler import RobustScaler
from .select_k_best import SelectKBest
from .sgd_classifier import SGDClassifier
from .sgd_regressor import SGDRegressor
from .simple_imputer import SimpleImputer
from .standard_scaler import StandardScaler
from .svc import SVC
from .svr import SVR
from .tfidf_vectorizer import TfidfVectorizer
from .variance_threshold import VarianceThreshold
from .voting_classifier import VotingClassifier
| 44.318919
| 108
| 0.815953
| 939
| 8,199
| 6.892439
| 0.204473
| 0.108158
| 0.216316
| 0.008807
| 0.046972
| 0
| 0
| 0
| 0
| 0
| 0
| 0.002247
| 0.077448
| 8,199
| 184
| 109
| 44.559783
| 0.853384
| 0.708989
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.019608
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
5432c42e1ec2cd94bf79ce730b93231a519366ff
| 115
|
py
|
Python
|
List_to_string.py
|
ElSalamino/NFTlittlebot
|
5f10cb8825e1af7c15ebb842a20ef8fc2f241e0b
|
[
"CC0-1.0"
] | null | null | null |
List_to_string.py
|
ElSalamino/NFTlittlebot
|
5f10cb8825e1af7c15ebb842a20ef8fc2f241e0b
|
[
"CC0-1.0"
] | null | null | null |
List_to_string.py
|
ElSalamino/NFTlittlebot
|
5f10cb8825e1af7c15ebb842a20ef8fc2f241e0b
|
[
"CC0-1.0"
] | null | null | null |
ef listToString(s):
str1 = ""
for ele in s:
str1 += f"{ele} "
return str1[:-1]
| 12.777778
| 25
| 0.408696
| 14
| 115
| 3.357143
| 0.714286
| 0.212766
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.0625
| 0.443478
| 115
| 8
| 26
| 14.375
| 0.671875
| 0
| 0
| 0
| 0
| 0
| 0.052174
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
54657ca5a158ba1fccdc468fe541068aa6bfd33d
| 121
|
py
|
Python
|
django_afip/__init__.py
|
juanpsenn/django-afip
|
3eb2231201fc5b34c7530592b29657bbea126b90
|
[
"0BSD"
] | 27
|
2018-10-08T12:49:11.000Z
|
2022-02-21T23:22:39.000Z
|
django_afip/__init__.py
|
juanpsenn/django-afip
|
3eb2231201fc5b34c7530592b29657bbea126b90
|
[
"0BSD"
] | 60
|
2018-08-21T22:26:30.000Z
|
2022-03-15T17:19:18.000Z
|
django_afip/__init__.py
|
juanpsenn/django-afip
|
3eb2231201fc5b34c7530592b29657bbea126b90
|
[
"0BSD"
] | 15
|
2018-08-23T09:40:25.000Z
|
2021-11-10T12:24:00.000Z
|
from . import version # type: ignore
__version__ = version.version
default_app_config = "django_afip.apps.AfipConfig"
| 20.166667
| 50
| 0.785124
| 15
| 121
| 5.866667
| 0.8
| 0.318182
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.132231
| 121
| 5
| 51
| 24.2
| 0.838095
| 0.099174
| 0
| 0
| 0
| 0
| 0.252336
| 0.252336
| 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
|
5479be394dd6b18f4732262a175b8bee35e337d3
| 179
|
py
|
Python
|
Aula 06.1 - Exercício 3 - Somando dois números/ex003_somando_dois_numeros.py
|
Guilherme-Artigas/Python-inicio
|
2d08cd53afa38435a75053459523b8187f6d52e6
|
[
"MIT"
] | null | null | null |
Aula 06.1 - Exercício 3 - Somando dois números/ex003_somando_dois_numeros.py
|
Guilherme-Artigas/Python-inicio
|
2d08cd53afa38435a75053459523b8187f6d52e6
|
[
"MIT"
] | null | null | null |
Aula 06.1 - Exercício 3 - Somando dois números/ex003_somando_dois_numeros.py
|
Guilherme-Artigas/Python-inicio
|
2d08cd53afa38435a75053459523b8187f6d52e6
|
[
"MIT"
] | null | null | null |
print('Vamos somar dois valores inteiros...')
n1 = int(input('Digite o 1º valor: '))
n2 = int(input('Digite o 2º valor: '))
print('Soma entre {} e {} é {}'.format(n1, n2, n1+n2))
| 35.8
| 54
| 0.625698
| 30
| 179
| 3.733333
| 0.666667
| 0.142857
| 0.25
| 0.267857
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.05298
| 0.156425
| 179
| 4
| 55
| 44.75
| 0.688742
| 0
| 0
| 0
| 0
| 0
| 0.541899
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.5
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
49bd8a723f49dabcb01d6cb8c77e92f05dd40dee
| 2,938
|
py
|
Python
|
sap/platform/abap/ddic.py
|
jakub-vaclavik-sap/sapcli
|
a0f40c3b2363bba0d34f705d92dd420d9adf3987
|
[
"Apache-2.0"
] | 1
|
2020-12-07T00:51:08.000Z
|
2020-12-07T00:51:08.000Z
|
sap/platform/abap/ddic.py
|
jakub-vaclavik-sap/sapcli
|
a0f40c3b2363bba0d34f705d92dd420d9adf3987
|
[
"Apache-2.0"
] | null | null | null |
sap/platform/abap/ddic.py
|
jakub-vaclavik-sap/sapcli
|
a0f40c3b2363bba0d34f705d92dd420d9adf3987
|
[
"Apache-2.0"
] | 1
|
2022-01-10T03:58:03.000Z
|
2022-01-10T03:58:03.000Z
|
"""Common ABAP types"""
from sap.platform.abap import Structure, InternalTable
# pylint: disable=invalid-name
# pylint: disable=too-few-public-methods
class DEVC(Structure):
"""Class metadata"""
# pylint: disable=invalid-name
CTEXT: str
# pylint: disable=invalid-name
# pylint: disable=too-few-public-methods
# pylint: disable=too-many-instance-attributes
class VSEOCLASS(Structure):
"""Class metadata"""
# pylint: disable=invalid-name
CLSNAME: str
# pylint: disable=invalid-name
VERSION: str
# pylint: disable=invalid-name
LANGU: str
# pylint: disable=invalid-name
DESCRIPT: str
# pylint: disable=invalid-name
STATE: str
# pylint: disable=invalid-name
CLSCCINCL: str
# pylint: disable=invalid-name
FIXPT: str
# pylint: disable=invalid-name
UNICODE: str
# pylint: disable=invalid-name
# pylint: disable=too-few-public-methods
# pylint: disable=too-many-instance-attributes
class VSEOINTERF(Structure):
"""Interface metadata"""
# pylint: disable=invalid-name
CLSNAME: str
# pylint: disable=invalid-name
VERSION: str
# pylint: disable=invalid-name
LANGU: str
# pylint: disable=invalid-name
DESCRIPT: str
# pylint: disable=invalid-name
EXPOSURE: str
# pylint: disable=invalid-name
STATE: str
# pylint: disable=invalid-name
UNICODE: str
# pylint: disable=invalid-name
# pylint: disable=too-few-public-methods
# pylint: disable=too-many-instance-attributes
class PROGDIR(Structure):
"""Program metadata"""
# pylint: disable=invalid-name
NAME: str
# pylint: disable=invalid-name
STATE: str # A for active; S for saved
# pylint: disable=invalid-name
VARCL: str # X for Case-sensitive
# pylint: disable=invalid-name
DBAPL: str # Application database
# Program type:
# 1 Executable program
# I INCLUDE program
# M Module Pool
# F Function group
# S Subroutine Pool
# J Interface pool
# K Class pool
# T Type Pool
# X Transformation (XSLT or ST Program)
# Q Database Procedure Proxy
# pylint: disable=invalid-name
SUBC: str
# pylint: disable=invalid-name
FIXPT: str # Fixed point arithmetic
# pylint: disable=invalid-name
LDBNAME: str # LDB name
# ABAP Version:
# 2 ABAP for key users
# 3 Static ABAP with Restricted Object Use
# 4 Standard ABAP with Restricted Object Use
# X Standard ABAP (Unicode)
# ' ' Obsolete ABAP (Not Unicode)
# pylint: disable=invalid-name
UCCHECK: str
# pylint: disable=invalid-name
# pylint: disable=too-few-public-methods
# pylint: disable=too-many-instance-attributes
class TPOOL_LINE(Structure):
"""Program texts"""
# pylint: disable=invalid-name
ID: str
# pylint: disable=invalid-name
ENTRY: str
# pylint: disable=invalid-name
LENGTH: str
TPOOL = InternalTable.define('TPOOL', TPOOL_LINE)
| 25.111111
| 54
| 0.678353
| 360
| 2,938
| 5.530556
| 0.277778
| 0.267705
| 0.321447
| 0.385736
| 0.618785
| 0.548468
| 0.548468
| 0.467102
| 0.467102
| 0.467102
| 0
| 0.001741
| 0.218176
| 2,938
| 116
| 55
| 25.327586
| 0.865041
| 0.642274
| 0
| 0.441176
| 0
| 0
| 0.005219
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.029412
| 0
| 0.970588
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
49bf7a7f7d1e13a65a5f6e53a334b9134f7b73a4
| 719
|
py
|
Python
|
splitiorequests/models/environments/environment.py
|
mikoblog/splitio-requests
|
c09b069e49f5224cbe3f892a5731c62885fd6151
|
[
"MIT"
] | null | null | null |
splitiorequests/models/environments/environment.py
|
mikoblog/splitio-requests
|
c09b069e49f5224cbe3f892a5731c62885fd6151
|
[
"MIT"
] | 4
|
2020-11-22T12:07:45.000Z
|
2021-03-26T23:44:12.000Z
|
splitiorequests/models/environments/environment.py
|
mikoblog/splitio-requests
|
c09b069e49f5224cbe3f892a5731c62885fd6151
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
"""Environment dataclass"""
from dataclasses import dataclass
from typing import Optional, List
@dataclass
class Environment:
"""Environment model"""
name: str
id: str
production: bool
orgId: Optional[str] = None
status: Optional[str] = None
workspaceIds: Optional[List[str]] = None
creationTime: Optional[int] = None
permissioningEnabled: Optional[bool] = None
segments: Optional[List[str]] = None
tests: Optional[List[str]] = None
apiTokens: Optional[List[str]] = None
workspaces: Optional[List[str]] = None
integrations: Optional[List[str]] = None
permissions: Optional[List[str]] = None
settings: Optional[List[str]] = None
| 27.653846
| 47
| 0.675939
| 81
| 719
| 6
| 0.395062
| 0.144033
| 0.246914
| 0.312757
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.001733
| 0.197497
| 719
| 25
| 48
| 28.76
| 0.840555
| 0.086231
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.105263
| 0
| 0.947368
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
49c2c5fbfc19cb9cc4265d27e8b70124dd693e21
| 197
|
py
|
Python
|
disutils/Managers/Managers.py
|
pintermor9/DiscordUtils
|
98927a15d4ad14a43c867804a5198bc9098413be
|
[
"MIT"
] | null | null | null |
disutils/Managers/Managers.py
|
pintermor9/DiscordUtils
|
98927a15d4ad14a43c867804a5198bc9098413be
|
[
"MIT"
] | null | null | null |
disutils/Managers/Managers.py
|
pintermor9/DiscordUtils
|
98927a15d4ad14a43c867804a5198bc9098413be
|
[
"MIT"
] | null | null | null |
class SingletonManager:
__instance = None
def __new__(cls, *args, **kwargs):
if not cls.__instance:
cls.__instance = super().__new__(cls)
return cls.__instance
| 24.625
| 49
| 0.624365
| 21
| 197
| 5.095238
| 0.619048
| 0.308411
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.274112
| 197
| 7
| 50
| 28.142857
| 0.748252
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.166667
| false
| 0
| 0
| 0
| 0.666667
| 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
|
49e5864d68d7d6b579ac45e08881fcc09d720235
| 313
|
py
|
Python
|
server/mlabns/handlers/privacy.py
|
mtlynch/m-lab.ns
|
1108e7eb07993b571462cea70c174b9086b26aab
|
[
"Apache-2.0"
] | 10
|
2015-05-23T04:28:51.000Z
|
2021-02-24T22:27:45.000Z
|
server/mlabns/handlers/privacy.py
|
mtlynch/m-lab.ns
|
1108e7eb07993b571462cea70c174b9086b26aab
|
[
"Apache-2.0"
] | 171
|
2015-05-18T18:49:13.000Z
|
2021-07-08T20:03:08.000Z
|
server/mlabns/handlers/privacy.py
|
mtlynch/m-lab.ns
|
1108e7eb07993b571462cea70c174b9086b26aab
|
[
"Apache-2.0"
] | 13
|
2015-05-18T17:13:43.000Z
|
2021-11-09T10:37:01.000Z
|
from google.appengine.ext import webapp
from mlabns.util import constants
from mlabns.util import util
class PrivacyHandler(webapp.RequestHandler):
def post(self):
"""Not implemented."""
return util.send_not_found(self)
def get(self):
self.redirect(constants.PRIVACY_DOC_URL)
| 20.866667
| 48
| 0.71885
| 40
| 313
| 5.525
| 0.625
| 0.090498
| 0.126697
| 0.180995
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.191693
| 313
| 14
| 49
| 22.357143
| 0.873518
| 0.051118
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.375
| 0
| 0.875
| 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
| 1
| 0
| 1
| 0
|
0
| 4
|
b729017290eed952a67dffd431c5d7543288a7d3
| 115
|
py
|
Python
|
venv/lib/python3.6/site-packages/pylint/test/functional/deprecated_method_getmoduleinfo.py
|
aitoehigie/britecore_flask
|
eef1873dbe6b2cc21f770bc6dec783007ae4493b
|
[
"MIT"
] | null | null | null |
venv/lib/python3.6/site-packages/pylint/test/functional/deprecated_method_getmoduleinfo.py
|
aitoehigie/britecore_flask
|
eef1873dbe6b2cc21f770bc6dec783007ae4493b
|
[
"MIT"
] | 1
|
2021-06-01T23:32:38.000Z
|
2021-06-01T23:32:38.000Z
|
venv/lib/python3.6/site-packages/pylint/test/functional/deprecated_method_getmoduleinfo.py
|
aitoehigie/britecore_flask
|
eef1873dbe6b2cc21f770bc6dec783007ae4493b
|
[
"MIT"
] | null | null | null |
"""Test that getmoduleinfo is deprecated."""
import inspect
inspect.getmoduleinfo(inspect) # [deprecated-method]
| 23
| 53
| 0.773913
| 12
| 115
| 7.416667
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.104348
| 115
| 4
| 54
| 28.75
| 0.864078
| 0.513043
| 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
|
b73e063f96115b8026492f585dede737bd2e8497
| 185
|
py
|
Python
|
golem_driving/agents/agent.py
|
KNSI-Golem/Duckietown-Driving-Olympics
|
051294c8094a81e7cd51efe5ec904c314d345c0a
|
[
"MIT"
] | null | null | null |
golem_driving/agents/agent.py
|
KNSI-Golem/Duckietown-Driving-Olympics
|
051294c8094a81e7cd51efe5ec904c314d345c0a
|
[
"MIT"
] | 10
|
2019-12-19T16:47:15.000Z
|
2020-05-27T18:11:36.000Z
|
golem_driving/agents/agent.py
|
KNSI-Golem/Duckietown-Driving-Olympics
|
051294c8094a81e7cd51efe5ec904c314d345c0a
|
[
"MIT"
] | null | null | null |
from typing import Union
from numbers import Number
import numpy as np
class Agent:
def act(self, obs: np.ndarray) -> Union[np.ndarray, Number]:
raise NotImplementedError
| 20.555556
| 64
| 0.72973
| 26
| 185
| 5.192308
| 0.692308
| 0.133333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.2
| 185
| 8
| 65
| 23.125
| 0.912162
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.166667
| false
| 0
| 0.5
| 0
| 0.833333
| 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
|
3f99d29d95a026509dd4a46bdc3022c286d77934
| 900
|
py
|
Python
|
packages/pyright-scip/snapshots/output/file_from_module_import/abc/file.py
|
sourcegraph/pyright
|
f6a94a47f7e61172fd108ee9a4c62f748e1d24af
|
[
"MIT"
] | null | null | null |
packages/pyright-scip/snapshots/output/file_from_module_import/abc/file.py
|
sourcegraph/pyright
|
f6a94a47f7e61172fd108ee9a4c62f748e1d24af
|
[
"MIT"
] | 19
|
2022-03-17T03:20:34.000Z
|
2022-03-31T02:53:12.000Z
|
packages/pyright-scip/snapshots/output/file_from_module_import/abc/file.py
|
sourcegraph/pyright
|
f6a94a47f7e61172fd108ee9a4c62f748e1d24af
|
[
"MIT"
] | null | null | null |
# < definition scip-python pypi snapshot-util 0.1 `abc.file`/__init__:
#documentation (module) abc.file
from xyz import nested_file
# ^^^ reference snapshot-util 0.1 xyz/__init__:
# ^^^^^^^^^^^ reference snapshot-util 0.1 `xyz.nested_file`/__init__:
print(nested_file.X)
#^^^^ reference python-stdlib 3.10 builtins/__init__:print().
#documentation ```python
# > (function)
# > print(*values: object, sep: str | None = ..., end: str | None = ..., file: SupportsWrite[str] | None = ..., flush: Literal[False] = ...) -> None
# >
# > print(*values: object, sep: str | None = ..., end: str | None = ..., file: _SupportsWriteAndFlush[str] | None = ..., flush: bool) -> None
# > ```
# ^^^^^^^^^^^ reference snapshot-util 0.1 `xyz.nested_file`/__init__:
# ^ reference snapshot-util 0.1 `xyz.nested_file`/X.
| 47.368421
| 159
| 0.576667
| 102
| 900
| 4.833333
| 0.362745
| 0.085193
| 0.131846
| 0.141988
| 0.462475
| 0.462475
| 0.409736
| 0.409736
| 0.409736
| 0.166329
| 0
| 0.018841
| 0.233333
| 900
| 18
| 160
| 50
| 0.695652
| 0.912222
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0.5
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 1
|
0
| 4
|
3fea19a4e4865d47198f8751fdd7c22b06feb618
| 5,813
|
py
|
Python
|
google/ads/google_ads/v2/proto/services/keyword_plan_service_pb2_grpc.py
|
jiulongw/google-ads-python
|
6f5256eb1eeb5a9a95c8cdb9b97988d3a676282e
|
[
"Apache-2.0"
] | 1
|
2019-11-30T23:42:39.000Z
|
2019-11-30T23:42:39.000Z
|
google/ads/google_ads/v2/proto/services/keyword_plan_service_pb2_grpc.py
|
jiulongw/google-ads-python
|
6f5256eb1eeb5a9a95c8cdb9b97988d3a676282e
|
[
"Apache-2.0"
] | null | null | null |
google/ads/google_ads/v2/proto/services/keyword_plan_service_pb2_grpc.py
|
jiulongw/google-ads-python
|
6f5256eb1eeb5a9a95c8cdb9b97988d3a676282e
|
[
"Apache-2.0"
] | 1
|
2020-03-13T00:14:31.000Z
|
2020-03-13T00:14:31.000Z
|
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc
from google.ads.google_ads.v2.proto.resources import keyword_plan_pb2 as google_dot_ads_dot_googleads__v2_dot_proto_dot_resources_dot_keyword__plan__pb2
from google.ads.google_ads.v2.proto.services import keyword_plan_service_pb2 as google_dot_ads_dot_googleads__v2_dot_proto_dot_services_dot_keyword__plan__service__pb2
class KeywordPlanServiceStub(object):
"""Proto file describing the keyword plan service.
Service to manage keyword plans.
"""
def __init__(self, channel):
"""Constructor.
Args:
channel: A grpc.Channel.
"""
self.GetKeywordPlan = channel.unary_unary(
'/google.ads.googleads.v2.services.KeywordPlanService/GetKeywordPlan',
request_serializer=google_dot_ads_dot_googleads__v2_dot_proto_dot_services_dot_keyword__plan__service__pb2.GetKeywordPlanRequest.SerializeToString,
response_deserializer=google_dot_ads_dot_googleads__v2_dot_proto_dot_resources_dot_keyword__plan__pb2.KeywordPlan.FromString,
)
self.MutateKeywordPlans = channel.unary_unary(
'/google.ads.googleads.v2.services.KeywordPlanService/MutateKeywordPlans',
request_serializer=google_dot_ads_dot_googleads__v2_dot_proto_dot_services_dot_keyword__plan__service__pb2.MutateKeywordPlansRequest.SerializeToString,
response_deserializer=google_dot_ads_dot_googleads__v2_dot_proto_dot_services_dot_keyword__plan__service__pb2.MutateKeywordPlansResponse.FromString,
)
self.GenerateForecastMetrics = channel.unary_unary(
'/google.ads.googleads.v2.services.KeywordPlanService/GenerateForecastMetrics',
request_serializer=google_dot_ads_dot_googleads__v2_dot_proto_dot_services_dot_keyword__plan__service__pb2.GenerateForecastMetricsRequest.SerializeToString,
response_deserializer=google_dot_ads_dot_googleads__v2_dot_proto_dot_services_dot_keyword__plan__service__pb2.GenerateForecastMetricsResponse.FromString,
)
self.GenerateHistoricalMetrics = channel.unary_unary(
'/google.ads.googleads.v2.services.KeywordPlanService/GenerateHistoricalMetrics',
request_serializer=google_dot_ads_dot_googleads__v2_dot_proto_dot_services_dot_keyword__plan__service__pb2.GenerateHistoricalMetricsRequest.SerializeToString,
response_deserializer=google_dot_ads_dot_googleads__v2_dot_proto_dot_services_dot_keyword__plan__service__pb2.GenerateHistoricalMetricsResponse.FromString,
)
class KeywordPlanServiceServicer(object):
"""Proto file describing the keyword plan service.
Service to manage keyword plans.
"""
def GetKeywordPlan(self, request, context):
"""Returns the requested plan in full detail.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def MutateKeywordPlans(self, request, context):
"""Creates, updates, or removes keyword plans. Operation statuses are
returned.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def GenerateForecastMetrics(self, request, context):
"""Returns the requested Keyword Plan forecasts.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def GenerateHistoricalMetrics(self, request, context):
"""Returns the requested Keyword Plan historical metrics.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def add_KeywordPlanServiceServicer_to_server(servicer, server):
rpc_method_handlers = {
'GetKeywordPlan': grpc.unary_unary_rpc_method_handler(
servicer.GetKeywordPlan,
request_deserializer=google_dot_ads_dot_googleads__v2_dot_proto_dot_services_dot_keyword__plan__service__pb2.GetKeywordPlanRequest.FromString,
response_serializer=google_dot_ads_dot_googleads__v2_dot_proto_dot_resources_dot_keyword__plan__pb2.KeywordPlan.SerializeToString,
),
'MutateKeywordPlans': grpc.unary_unary_rpc_method_handler(
servicer.MutateKeywordPlans,
request_deserializer=google_dot_ads_dot_googleads__v2_dot_proto_dot_services_dot_keyword__plan__service__pb2.MutateKeywordPlansRequest.FromString,
response_serializer=google_dot_ads_dot_googleads__v2_dot_proto_dot_services_dot_keyword__plan__service__pb2.MutateKeywordPlansResponse.SerializeToString,
),
'GenerateForecastMetrics': grpc.unary_unary_rpc_method_handler(
servicer.GenerateForecastMetrics,
request_deserializer=google_dot_ads_dot_googleads__v2_dot_proto_dot_services_dot_keyword__plan__service__pb2.GenerateForecastMetricsRequest.FromString,
response_serializer=google_dot_ads_dot_googleads__v2_dot_proto_dot_services_dot_keyword__plan__service__pb2.GenerateForecastMetricsResponse.SerializeToString,
),
'GenerateHistoricalMetrics': grpc.unary_unary_rpc_method_handler(
servicer.GenerateHistoricalMetrics,
request_deserializer=google_dot_ads_dot_googleads__v2_dot_proto_dot_services_dot_keyword__plan__service__pb2.GenerateHistoricalMetricsRequest.FromString,
response_serializer=google_dot_ads_dot_googleads__v2_dot_proto_dot_services_dot_keyword__plan__service__pb2.GenerateHistoricalMetricsResponse.SerializeToString,
),
}
generic_handler = grpc.method_handlers_generic_handler(
'google.ads.googleads.v2.services.KeywordPlanService', rpc_method_handlers)
server.add_generic_rpc_handlers((generic_handler,))
| 55.894231
| 170
| 0.823327
| 646
| 5,813
| 6.80805
| 0.147059
| 0.060027
| 0.049113
| 0.061392
| 0.761482
| 0.761482
| 0.74261
| 0.694861
| 0.673033
| 0.615734
| 0
| 0.008762
| 0.116463
| 5,813
| 103
| 171
| 56.436893
| 0.847547
| 0.088595
| 0
| 0.235294
| 1
| 0
| 0.116061
| 0.074761
| 0
| 0
| 0
| 0
| 0
| 1
| 0.088235
| false
| 0
| 0.044118
| 0
| 0.161765
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
3ff73a05f140ce049b278aa7c16a58658288feec
| 239
|
py
|
Python
|
Scripts/renametool_utils.py
|
Zhibade/modo-rename-tool
|
17f1492d8594f6671c7a0ebbe679739a5e17c6ab
|
[
"MIT"
] | 1
|
2018-06-09T16:22:13.000Z
|
2018-06-09T16:22:13.000Z
|
Scripts/renametool_utils.py
|
Zhibade/modo-rename-tool
|
17f1492d8594f6671c7a0ebbe679739a5e17c6ab
|
[
"MIT"
] | null | null | null |
Scripts/renametool_utils.py
|
Zhibade/modo-rename-tool
|
17f1492d8594f6671c7a0ebbe679739a5e17c6ab
|
[
"MIT"
] | null | null | null |
#python
# Generic MODO TD-SDK utils
# Author: Jose Lopez Romo - Zhibade
import lx
def query_user_value(user_value):
"""
Utility function for querying user values
"""
return lx.eval("user.value {0} ?".format(user_value))
| 18.384615
| 57
| 0.686192
| 34
| 239
| 4.705882
| 0.764706
| 0.225
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.005236
| 0.200837
| 239
| 12
| 58
| 19.916667
| 0.832461
| 0.451883
| 0
| 0
| 0
| 0
| 0.141593
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0.333333
| 0
| 1
| 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
3fff180c8fc40b2ddf821f92b1baeee640a07ed5
| 90
|
py
|
Python
|
payments/apps.py
|
RahulDas782/MoneyBee
|
ad6d6e4ac7ac71ca230a61d9c941922b38c59cb5
|
[
"Apache-2.0"
] | 1
|
2018-09-27T10:02:15.000Z
|
2018-09-27T10:02:15.000Z
|
payments/apps.py
|
RahulDas782/MoneyBee
|
ad6d6e4ac7ac71ca230a61d9c941922b38c59cb5
|
[
"Apache-2.0"
] | 3
|
2019-01-04T05:50:59.000Z
|
2019-01-24T01:05:49.000Z
|
payments/apps.py
|
hanship0530/privateSchoolCMS
|
6cc425e0e7fdbd576c6bf4f3681238c509b35a5f
|
[
"MIT"
] | 2
|
2018-09-21T16:12:38.000Z
|
2018-11-23T07:54:20.000Z
|
from django.apps import AppConfig
class PaymentsConfig(AppConfig):
name = 'payments'
| 18
| 33
| 0.766667
| 10
| 90
| 6.9
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.155556
| 90
| 4
| 34
| 22.5
| 0.907895
| 0
| 0
| 0
| 0
| 0
| 0.088889
| 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
|
b74b11763017ee7b2df1cd4cd8accfb1aae98068
| 164
|
py
|
Python
|
test.py
|
dicksonorengo/desktop_app_simulation-and-modeling
|
c1fdbf4112ea361a6d7a95f04cd81d22e5f46a28
|
[
"Apache-2.0"
] | 1
|
2019-12-21T20:57:05.000Z
|
2019-12-21T20:57:05.000Z
|
test.py
|
dicksonorengo/desktop_app_simulation-and-modeling
|
c1fdbf4112ea361a6d7a95f04cd81d22e5f46a28
|
[
"Apache-2.0"
] | 1
|
2021-09-02T03:08:53.000Z
|
2021-09-02T03:08:53.000Z
|
test.py
|
dicksonorengo/desktop_app_simulation-and-modeling
|
c1fdbf4112ea361a6d7a95f04cd81d22e5f46a28
|
[
"Apache-2.0"
] | null | null | null |
from app import app
if __name__ == '__main__':
print('Server is running http://localhost:8000')
print('Build Successful')
print('Exit with status 0')
| 20.5
| 52
| 0.676829
| 22
| 164
| 4.681818
| 0.863636
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.037879
| 0.195122
| 164
| 7
| 53
| 23.428571
| 0.742424
| 0
| 0
| 0
| 0
| 0
| 0.493902
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.2
| 0
| 0.2
| 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
|
b74c4e958a8829a4cfd1b461e42c99c3f7f070fd
| 46
|
py
|
Python
|
packcircles/__init__.py
|
mhtchan/packcircles
|
32668852cd234985b561570643c159f1bcd97954
|
[
"MIT"
] | 4
|
2021-05-13T13:24:35.000Z
|
2022-03-07T21:06:54.000Z
|
packcircles/__init__.py
|
mhtchan/packcircles
|
32668852cd234985b561570643c159f1bcd97954
|
[
"MIT"
] | null | null | null |
packcircles/__init__.py
|
mhtchan/packcircles
|
32668852cd234985b561570643c159f1bcd97954
|
[
"MIT"
] | 2
|
2021-07-01T02:14:24.000Z
|
2021-09-02T08:18:18.000Z
|
from .packcircles import *
__version__ = '0.1'
| 23
| 26
| 0.73913
| 6
| 46
| 5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.05
| 0.130435
| 46
| 2
| 27
| 23
| 0.7
| 0
| 0
| 0
| 0
| 0
| 0.06383
| 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
|
b752722699e406f4f2b0edec30aa0dd55ec392db
| 38
|
py
|
Python
|
Quiz 2/digits.py
|
elawson668/CSCI-2963
|
d33ca0274d52149af9e91fc5d207f12215eef1d1
|
[
"MIT"
] | null | null | null |
Quiz 2/digits.py
|
elawson668/CSCI-2963
|
d33ca0274d52149af9e91fc5d207f12215eef1d1
|
[
"MIT"
] | null | null | null |
Quiz 2/digits.py
|
elawson668/CSCI-2963
|
d33ca0274d52149af9e91fc5d207f12215eef1d1
|
[
"MIT"
] | null | null | null |
n = 5**1000
n = str(n)
print len(n)
| 6.333333
| 12
| 0.526316
| 9
| 38
| 2.222222
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.178571
| 0.263158
| 38
| 5
| 13
| 7.6
| 0.535714
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0.333333
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
4d09ae080729aa55c632dee851b828561ed16671
| 1,790
|
py
|
Python
|
usersec/migrations/0007_hpcusercreaterequest_email_and_more.py
|
bihealth/hpc-access
|
ff606b18b18230af2876a791ca706d3b24addb59
|
[
"MIT"
] | null | null | null |
usersec/migrations/0007_hpcusercreaterequest_email_and_more.py
|
bihealth/hpc-access
|
ff606b18b18230af2876a791ca706d3b24addb59
|
[
"MIT"
] | 27
|
2022-02-11T15:51:24.000Z
|
2022-03-31T12:11:20.000Z
|
usersec/migrations/0007_hpcusercreaterequest_email_and_more.py
|
bihealth/hpc-access
|
ff606b18b18230af2876a791ca706d3b24addb59
|
[
"MIT"
] | null | null | null |
# Generated by Django 4.0.3 on 2022-04-01 14:51
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
("usersec", "0006_remove_hpcuser_email_remove_hpcuser_first_names_and_more"),
]
operations = [
migrations.AddField(
model_name="hpcusercreaterequest",
name="email",
field=models.CharField(
default="user@example.com",
help_text="Email of user to send an invitation to",
max_length=255,
),
preserve_default=False,
),
migrations.AddField(
model_name="hpcusercreaterequest",
name="group",
field=models.ForeignKey(
help_text="Group the request belongs to",
null=True,
on_delete=django.db.models.deletion.CASCADE,
related_name="%(class)s",
to="usersec.hpcgroup",
),
),
migrations.AddField(
model_name="hpcusercreaterequestversion",
name="email",
field=models.CharField(
default="user@example.com",
help_text="Email of user to send an invitation to",
max_length=255,
),
preserve_default=False,
),
migrations.AddField(
model_name="hpcusercreaterequestversion",
name="group",
field=models.ForeignKey(
help_text="Group the request belongs to",
null=True,
on_delete=django.db.models.deletion.CASCADE,
related_name="%(class)s",
to="usersec.hpcgroup",
),
),
]
| 31.403509
| 85
| 0.536872
| 166
| 1,790
| 5.638554
| 0.39759
| 0.034188
| 0.098291
| 0.115385
| 0.775641
| 0.775641
| 0.617521
| 0.617521
| 0.617521
| 0.617521
| 0
| 0.022046
| 0.36648
| 1,790
| 56
| 86
| 31.964286
| 0.803351
| 0.02514
| 0
| 0.84
| 1
| 0
| 0.227194
| 0.065978
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.04
| 0
| 0.1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
4d343c93da0e3ce6f4436e529a5d02f0341f3840
| 3,652
|
py
|
Python
|
ewetasker/app.py
|
gsi-upm/ewetasker_server
|
70287385013834ba65b582a431eaf89520d86b12
|
[
"Apache-2.0"
] | null | null | null |
ewetasker/app.py
|
gsi-upm/ewetasker_server
|
70287385013834ba65b582a431eaf89520d86b12
|
[
"Apache-2.0"
] | null | null | null |
ewetasker/app.py
|
gsi-upm/ewetasker_server
|
70287385013834ba65b582a431eaf89520d86b12
|
[
"Apache-2.0"
] | null | null | null |
from flask import Flask
from delivery.channels import get_base_channels, get_custom_channels, get_custom_category_channels, get_category_channels, get_subchannels_of_channel, import_new_channel, delete_custom_channel_with_uri
from delivery.rules import create_rule, get_user_rules, delete_rule_with_uri
from delivery.eye import evaluate_event
from flask_cors import CORS
from flask import request
from data.database.users import *
from data.elasticsearch.ewe_es import upload_event_to_es
from delivery.connections import select_service, auth_twitter, auth_gmail, auth_spotify, get_spotify_devices
app = Flask(__name__)
CORS(app)
@app.route("/channels/base")
def base_channels():
return get_base_channels()
@app.route("/channels/custom")
def custom_channels():
return get_custom_channels()
@app.route("/channels/custom/category/<path:uri>")
def custom_category_channels(uri):
return get_custom_category_channels(uri)
@app.route("/channels/category/<path:uri>")
def category_channels(uri):
return get_category_channels(uri)
@app.route("/channels/custom/base_channel/<path:uri>")
def subchannels_of_channel(uri):
return get_subchannels_of_channel(uri)
@app.route("/channels/import", methods = ['POST'])
def import_channel():
channel = request.get_json()
return import_new_channel(channel)
@app.route("/channels/custom/delete/<path:uri>", methods = ['DELETE'])
def delete_custom_channel(uri):
return delete_custom_channel_with_uri(uri)
@app.route("/rules/delete/<path:uri>", methods = ['DELETE'])
def delete_rule(uri):
return delete_rule_with_uri(uri)
@app.route("/rules/new", methods = ['POST'])
def post_create_rule():
rule = request.get_json()
return create_rule(rule)
@app.route("/rules/user/<path:uri>")
def get_rules_user(uri):
return get_user_rules(uri)
@app.route("/users/new", methods=['POST'])
def new_user():
username = request.form.get('username')
password= request.form.get('password')
return create_user(username, password)
@app.route("/users/login", methods=['POST'])
def login():
username = request.form.get('username')
password= request.form.get('password')
return login_user(username, password)
@app.route("/users/delete", methods=['POST'])
def eliminate_user():
username = request.form.get('username')
password= request.form.get('password')
return drop_user(username, password)
@app.route("/evaluate", methods=['POST'])
def evaluate():
username = request.form.get('username')
event = request.form.get('event')
upload_event_to_es(username, event)
return evaluate_event(username, event)
@app.route("/connect/<path:service>/<path:username>/<path:service_user>")
def connect(service,username,service_user):
return select_service(service,username,service_user)
@app.route("/connect/twitter", methods=['GET'])
def connect_twitter():
oauth_token = request.args.get('oauth_token')
oauth_verifier= request.args.get('oauth_verifier')
return auth_twitter(oauth_token, oauth_verifier)
@app.route("/connect/gmail", methods=['GET'])
def connect_gmail():
state = request.args.get('state')
return auth_gmail(request.url, state)
@app.route("/connect/spotify", methods=['GET'])
def connect_spotify():
code = request.args.get('code')
state = request.args.get('state')
return auth_spotify(code, state)
@app.route("/spotify/<path:username>/devices", methods=['GET'])
def get_spotify_user_devices(username):
return get_spotify_devices(username)
@app.route("/test", methods=['GET'])
def test():
return request.url
if __name__ == '__main__':
app.run(host="0.0.0.0", port=5000, debug=True)
| 32.318584
| 201
| 0.743428
| 500
| 3,652
| 5.19
| 0.148
| 0.061657
| 0.04316
| 0.033911
| 0.287091
| 0.202698
| 0.132563
| 0.079383
| 0.079383
| 0.079383
| 0
| 0.002462
| 0.110077
| 3,652
| 112
| 202
| 32.607143
| 0.796
| 0
| 0
| 0.101124
| 0
| 0
| 0.162377
| 0.075575
| 0
| 0
| 0
| 0
| 0
| 1
| 0.224719
| false
| 0.067416
| 0.134831
| 0.123596
| 0.58427
| 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
|
4da06e7386c913dbc0ad86a0475a301fd7333dac
| 163
|
py
|
Python
|
output/models/ms_data/model_groups/mg_b002_xsd/mg_b002.py
|
tefra/xsdata-w3c-tests
|
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
|
[
"MIT"
] | 1
|
2021-08-14T17:59:21.000Z
|
2021-08-14T17:59:21.000Z
|
output/models/ms_data/model_groups/mg_b002_xsd/mg_b002.py
|
tefra/xsdata-w3c-tests
|
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
|
[
"MIT"
] | 4
|
2020-02-12T21:30:44.000Z
|
2020-04-15T20:06:46.000Z
|
output/models/ms_data/model_groups/mg_i002_xsd/mg_i002.py
|
tefra/xsdata-w3c-tests
|
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
|
[
"MIT"
] | null | null | null |
from dataclasses import dataclass
@dataclass
class Bar:
class Meta:
name = "bar"
@dataclass
class Root(Bar):
class Meta:
name = "root"
| 11.642857
| 33
| 0.619632
| 19
| 163
| 5.315789
| 0.473684
| 0.277228
| 0.237624
| 0.316832
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.294479
| 163
| 13
| 34
| 12.538462
| 0.878261
| 0
| 0
| 0.444444
| 0
| 0
| 0.042945
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.111111
| 0
| 0.555556
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
4dc4c94079431c4ebcb099af7fff6e620ed063c4
| 77
|
py
|
Python
|
crosshair/examples/icontract/__init__.py
|
samuelchassot/CrossHair
|
4eac7a23e470567cc23e6d0916ce6dd6820eacd8
|
[
"MIT"
] | 785
|
2019-09-28T14:47:48.000Z
|
2022-03-24T15:04:03.000Z
|
crosshair/examples/icontract/__init__.py
|
samuelchassot/CrossHair
|
4eac7a23e470567cc23e6d0916ce6dd6820eacd8
|
[
"MIT"
] | 111
|
2019-10-19T14:43:03.000Z
|
2022-03-29T07:23:32.000Z
|
crosshair/examples/icontract/__init__.py
|
nicpayne713/CrossHair
|
98bc53798467f03c71ad63f041c7177894c86aa8
|
[
"MIT"
] | 36
|
2018-05-12T03:31:29.000Z
|
2022-03-02T14:07:16.000Z
|
# crosshair: analysis_kind=icontract
# crosshair: per_condition_timeout=0.75
| 25.666667
| 39
| 0.831169
| 10
| 77
| 6.1
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.042254
| 0.077922
| 77
| 2
| 40
| 38.5
| 0.816901
| 0.935065
| 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
|
4de71b7d295b71c4919a0047368e248128030972
| 62
|
py
|
Python
|
examples/logging-format.py
|
osechet/flake8-gl-codeclimate
|
4eaaf623747ca2c76700951a692e12781aaffb65
|
[
"MIT"
] | 12
|
2020-06-08T22:32:34.000Z
|
2022-02-18T14:59:49.000Z
|
examples/logging-format.py
|
osechet/flake8-gl-codeclimate
|
4eaaf623747ca2c76700951a692e12781aaffb65
|
[
"MIT"
] | 5
|
2021-11-01T14:31:08.000Z
|
2022-01-22T17:07:34.000Z
|
examples/logging-format.py
|
osechet/flake8-gl-codeclimate
|
4eaaf623747ca2c76700951a692e12781aaffb65
|
[
"MIT"
] | 5
|
2020-11-24T08:33:59.000Z
|
2022-03-13T16:17:06.000Z
|
import logging
logging.info("Do not {}!".format("do this"))
| 12.4
| 44
| 0.66129
| 9
| 62
| 4.555556
| 0.777778
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.129032
| 62
| 4
| 45
| 15.5
| 0.759259
| 0
| 0
| 0
| 0
| 0
| 0.274194
| 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
|
4de87647c106f4c8afd95d1d0617754ec705a006
| 23
|
py
|
Python
|
Python/tdw/version.py
|
felixbinder/tdw
|
eb2b00b74b9fcf8ef2dcba1baa62424640c520b1
|
[
"BSD-2-Clause"
] | null | null | null |
Python/tdw/version.py
|
felixbinder/tdw
|
eb2b00b74b9fcf8ef2dcba1baa62424640c520b1
|
[
"BSD-2-Clause"
] | null | null | null |
Python/tdw/version.py
|
felixbinder/tdw
|
eb2b00b74b9fcf8ef2dcba1baa62424640c520b1
|
[
"BSD-2-Clause"
] | null | null | null |
__version__ = "1.8.8"
| 11.5
| 22
| 0.608696
| 4
| 23
| 2.5
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.157895
| 0.173913
| 23
| 1
| 23
| 23
| 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
|
4def947ffc3f60e441057d6ade1a918186f99917
| 167
|
py
|
Python
|
MyDIPUtils/scrap.py
|
DaddyGang/Laser-Shadowgraph-Image-Processing
|
befbba60f88d6ec3b250458733b2d56a3712e970
|
[
"MIT"
] | 3
|
2018-10-21T05:16:29.000Z
|
2018-11-01T06:33:13.000Z
|
MyDIPUtils/scrap.py
|
DaddyGang/Laser-Shadowgraph-Image-Processing
|
befbba60f88d6ec3b250458733b2d56a3712e970
|
[
"MIT"
] | null | null | null |
MyDIPUtils/scrap.py
|
DaddyGang/Laser-Shadowgraph-Image-Processing
|
befbba60f88d6ec3b250458733b2d56a3712e970
|
[
"MIT"
] | null | null | null |
import cv2
import numpy as np
import matplotlib.pyplot as plt
dir = 'C:/Users/sirei/Pictures/QQ-record082618/'
camera = cv2.VideoCapture(dir + "cavitation0.3.avi")
| 33.4
| 52
| 0.754491
| 25
| 167
| 5.04
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.068493
| 0.125749
| 167
| 5
| 52
| 33.4
| 0.794521
| 0
| 0
| 0
| 0
| 0
| 0.347561
| 0.243902
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.6
| 0
| 0.6
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
4df1b44bb74855c8af9ea56c91e484d665c111ce
| 173
|
py
|
Python
|
tests/test_api.py
|
cav71/click-plus
|
a910a7b6d45d5bf0213faf101fb9a97578f7f4c6
|
[
"BSD-2-Clause"
] | null | null | null |
tests/test_api.py
|
cav71/click-plus
|
a910a7b6d45d5bf0213faf101fb9a97578f7f4c6
|
[
"BSD-2-Clause"
] | null | null | null |
tests/test_api.py
|
cav71/click-plus
|
a910a7b6d45d5bf0213faf101fb9a97578f7f4c6
|
[
"BSD-2-Clause"
] | null | null | null |
import click.decorators
import click.plus
def test_import():
"test import the api"
from click.plus import api # noqa: F401
assert click.decorators.command()
| 17.3
| 44
| 0.716763
| 24
| 173
| 5.125
| 0.541667
| 0.178862
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.021739
| 0.202312
| 173
| 9
| 45
| 19.222222
| 0.869565
| 0.179191
| 0
| 0
| 0
| 0
| 0.118012
| 0
| 0
| 0
| 0
| 0
| 0.166667
| 1
| 0.166667
| true
| 0
| 0.833333
| 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
|
4df8f547268e2ba43b79efab8e5b589dc1d19120
| 166
|
py
|
Python
|
optimizer/__init__.py
|
alex/optimizer-model
|
0e40a0763082f5fe0bd596e8e77ebccbcd7f4a98
|
[
"BSD-3-Clause"
] | 4
|
2015-04-29T22:49:25.000Z
|
2018-02-16T09:06:08.000Z
|
optimizer/__init__.py
|
alex/optimizer-model
|
0e40a0763082f5fe0bd596e8e77ebccbcd7f4a98
|
[
"BSD-3-Clause"
] | null | null | null |
optimizer/__init__.py
|
alex/optimizer-model
|
0e40a0763082f5fe0bd596e8e77ebccbcd7f4a98
|
[
"BSD-3-Clause"
] | null | null | null |
from __future__ import absolute_import
from .consts import Operations, Types
from .optimizer import Optimizer
__all__ = [
"Operations", "Types", "Optimizer",
]
| 18.444444
| 39
| 0.753012
| 18
| 166
| 6.444444
| 0.5
| 0.258621
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.156627
| 166
| 8
| 40
| 20.75
| 0.828571
| 0
| 0
| 0
| 0
| 0
| 0.144578
| 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
|
1505d0df48c0a097f0decfbb0d309bfcaad54c12
| 123
|
py
|
Python
|
src/ocspdash/web/__init__.py
|
scolby33/OCSPdash
|
3eac8841e93ee50f3199ed685fd54eef372e21a3
|
[
"MIT"
] | null | null | null |
src/ocspdash/web/__init__.py
|
scolby33/OCSPdash
|
3eac8841e93ee50f3199ed685fd54eef372e21a3
|
[
"MIT"
] | 44
|
2017-08-16T10:28:51.000Z
|
2021-04-30T20:46:12.000Z
|
src/ocspdash/web/__init__.py
|
scolby33/OCSPdash
|
3eac8841e93ee50f3199ed685fd54eef372e21a3
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
"""The OCSPdash web UI."""
from .app import create_application
__all__ = ['create_application']
| 15.375
| 35
| 0.666667
| 15
| 123
| 5.066667
| 0.866667
| 0.447368
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.009615
| 0.154472
| 123
| 7
| 36
| 17.571429
| 0.721154
| 0.349594
| 0
| 0
| 0
| 0
| 0.243243
| 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
|
1514c51794cf2c25505757cd485a17f01b8cc5bb
| 13,960
|
py
|
Python
|
integration_tests/strax_tests/test_coldstaking_endpoints.py
|
madrazzl3/pystratis
|
8b78552e753ae1d12f2afb39e9a322a270fbb7b3
|
[
"MIT"
] | null | null | null |
integration_tests/strax_tests/test_coldstaking_endpoints.py
|
madrazzl3/pystratis
|
8b78552e753ae1d12f2afb39e9a322a270fbb7b3
|
[
"MIT"
] | null | null | null |
integration_tests/strax_tests/test_coldstaking_endpoints.py
|
madrazzl3/pystratis
|
8b78552e753ae1d12f2afb39e9a322a270fbb7b3
|
[
"MIT"
] | null | null | null |
import pytest
from pystratis.nodes import StraxNode
from pystratis.core.types import Money, Address, hexstr
from pystratis.api.coldstaking.responsemodels import *
@pytest.fixture(scope='package')
def hot_wallet_name() -> str:
return 'Test'
@pytest.fixture(scope='package')
def offline_node_default_wallet_name() -> str:
return 'mywallet'
@pytest.fixture(scope='package')
def restored_offline_on_hot_wallet_name() -> str:
return 'coldwallet'
@pytest.fixture(scope='package')
def setup_coldstaking_accounts_and_addresses(
strax_hot_node: StraxNode,
strax_offline_node: StraxNode,
hot_wallet_name,
offline_node_default_wallet_name,
restored_offline_on_hot_wallet_name,
get_node_address_with_balance,
node_creates_a_wallet,
send_a_transaction,
get_datetime,
node_mines_some_blocks_and_syncs) -> dict:
mining_address = get_node_address_with_balance(strax_hot_node)
credentials = {}
# Setup a wallet on the cold node.
node_creates_a_wallet(strax_offline_node, wallet_name=offline_node_default_wallet_name)
# Get the extpubkey from the cold node so it can be restored on the hot node.
offline_wallet_default_extpubkey = strax_offline_node.wallet.extpubkey(wallet_name=offline_node_default_wallet_name, account_name='account 0')
credentials['offline_wallet_default_extpubkey'] = offline_wallet_default_extpubkey
# Use the cold extpubkey to load the cold wallet on the online node.
strax_hot_node.wallet.recover_via_extpubkey(
extpubkey=offline_wallet_default_extpubkey,
name=restored_offline_on_hot_wallet_name,
account_index=0,
creation_date=get_datetime(days_back=1)
)
# Setup the hot account from the hot node.
credentials['hot_account'] = strax_hot_node.coldstaking.account(
wallet_name=hot_wallet_name,
wallet_password='password',
is_cold_wallet_account=False
)
# Get the hot address from the hot node.
address_model = strax_hot_node.coldstaking.address(
wallet_name=hot_wallet_name,
is_cold_wallet_address=False,
segwit=False
)
credentials['hot_address'] = address_model.address
# Get an address on the cold node for staking setup.
cold_default_address = strax_hot_node.wallet.unused_address(
wallet_name=restored_offline_on_hot_wallet_name,
account_name='account 0',
segwit=False
)
credentials['cold_default_address'] = cold_default_address
# Fund the cold wallet default address
assert send_a_transaction(
node=strax_hot_node,
sending_address=mining_address,
receiving_address=cold_default_address,
amount_to_send=Money(200)
)
assert node_mines_some_blocks_and_syncs(mining_node=strax_hot_node, syncing_node=None, num_blocks_to_mine=15)
# Set up cold staking account of cold node to get the cold address
credentials['cold_account'] = strax_offline_node.coldstaking.account(
wallet_name=offline_node_default_wallet_name,
wallet_password='password',
is_cold_wallet_account=True
)
address_model = strax_offline_node.coldstaking.address(
wallet_name=offline_node_default_wallet_name,
is_cold_wallet_address=True,
segwit=False
)
credentials['cold_address'] = address_model.address
return credentials
@pytest.fixture(scope='package')
def setup_coldstaking_transaction_and_send(
strax_hot_node: StraxNode,
strax_offline_node: StraxNode,
node_mines_some_blocks_and_syncs,
restored_offline_on_hot_wallet_name,
offline_node_default_wallet_name,
setup_coldstaking_accounts_and_addresses):
def _setup_coldstaking_transaction_and_send() -> bool:
cold_wallet_address = setup_coldstaking_accounts_and_addresses['cold_address']
hot_wallet_address = setup_coldstaking_accounts_and_addresses['hot_address']
offline_template = strax_hot_node.coldstaking.setup_offline(
wallet_name=restored_offline_on_hot_wallet_name,
wallet_account='account 0',
cold_wallet_address=cold_wallet_address,
hot_wallet_address=hot_wallet_address,
amount=Money(10),
fees=Money(0.0002),
split_count=10
)
built_transaction = strax_offline_node.wallet.offline_sign_request(
wallet_password='password',
wallet_name=offline_node_default_wallet_name,
wallet_account=offline_template.wallet_account,
unsigned_transaction=offline_template.unsigned_transaction,
fee=offline_template.fee,
utxos=offline_template.utxos,
addresses=offline_template.addresses
)
# Send the coldstaking creation transaction and mine some blocks to confirm.
strax_hot_node.wallet.send_transaction(transaction_hex=built_transaction.hex)
assert node_mines_some_blocks_and_syncs(mining_node=strax_hot_node, syncing_node=None, num_blocks_to_mine=15)
return True
return _setup_coldstaking_transaction_and_send
@pytest.mark.integration_test
@pytest.mark.strax_integration_test
def test_info(strax_hot_node: StraxNode, strax_offline_node: StraxNode, setup_coldstaking_accounts_and_addresses,
hot_wallet_name, offline_node_default_wallet_name):
response = strax_hot_node.coldstaking.info(wallet_name=hot_wallet_name)
assert isinstance(response, InfoModel)
response = strax_offline_node.coldstaking.info(wallet_name=offline_node_default_wallet_name)
assert isinstance(response, InfoModel)
@pytest.mark.integration_test
@pytest.mark.strax_integration_test
def test_account(strax_hot_node: StraxNode, setup_coldstaking_accounts_and_addresses, hot_wallet_name):
response = strax_hot_node.coldstaking.account(
wallet_name=hot_wallet_name,
wallet_password='password',
is_cold_wallet_account=False
)
assert isinstance(response, AccountModel)
@pytest.mark.integration_test
@pytest.mark.strax_integration_test
def test_address(strax_hot_node: StraxNode, setup_coldstaking_accounts_and_addresses, hot_wallet_name):
response = strax_hot_node.coldstaking.address(wallet_name=hot_wallet_name, is_cold_wallet_address=False)
assert isinstance(response, AddressModel)
assert isinstance(response.address, Address)
@pytest.mark.integration_test
@pytest.mark.strax_integration_test
def test_estimate_offline_setup_tx_fee(strax_hot_node: StraxNode, setup_coldstaking_accounts_and_addresses, restored_offline_on_hot_wallet_name):
cold_wallet_address = setup_coldstaking_accounts_and_addresses['cold_address']
hot_wallet_address = setup_coldstaking_accounts_and_addresses['hot_address']
response = strax_hot_node.coldstaking.estimate_offline_setup_tx_fee(
wallet_name=restored_offline_on_hot_wallet_name,
wallet_account='account 0',
cold_wallet_address=cold_wallet_address,
hot_wallet_address=hot_wallet_address,
amount=Money(5),
fees=Money(0.0002),
split_count=1
)
assert isinstance(response, Money)
@pytest.mark.integration_test
@pytest.mark.strax_integration_test
def test_setup_offline(strax_hot_node: StraxNode, setup_coldstaking_accounts_and_addresses, restored_offline_on_hot_wallet_name):
cold_wallet_address = setup_coldstaking_accounts_and_addresses['cold_address']
hot_wallet_address = setup_coldstaking_accounts_and_addresses['hot_address']
response = strax_hot_node.coldstaking.setup_offline(
wallet_name=restored_offline_on_hot_wallet_name,
wallet_account='account 0',
cold_wallet_address=cold_wallet_address,
hot_wallet_address=hot_wallet_address,
amount=Money(5),
fees=Money(0.0002),
split_count=10
)
assert isinstance(response, BuildOfflineSignModel)
@pytest.mark.integration_test
@pytest.mark.strax_integration_test
def test_estimate_setup_tx_fee(strax_hot_node: StraxNode, setup_coldstaking_accounts_and_addresses, hot_wallet_name):
cold_wallet_address = setup_coldstaking_accounts_and_addresses['cold_address']
hot_wallet_address = setup_coldstaking_accounts_and_addresses['hot_address']
response = strax_hot_node.coldstaking.estimate_setup_tx_fee(
wallet_name=hot_wallet_name,
wallet_account='account 0',
wallet_password='password',
cold_wallet_address=cold_wallet_address,
hot_wallet_address=hot_wallet_address,
amount=Money(5),
fees=Money(0.0002),
split_count=1
)
assert isinstance(response, Money)
@pytest.mark.integration_test
@pytest.mark.strax_integration_test
def test_setup(strax_hot_node: StraxNode, setup_coldstaking_accounts_and_addresses, hot_wallet_name):
cold_wallet_address = setup_coldstaking_accounts_and_addresses['cold_address']
hot_wallet_address = setup_coldstaking_accounts_and_addresses['hot_address']
response = strax_hot_node.coldstaking.setup(
wallet_name=hot_wallet_name,
wallet_account='account 0',
wallet_password='password',
cold_wallet_address=cold_wallet_address,
hot_wallet_address=hot_wallet_address,
amount=Money(5),
fees=Money(0.0002),
split_count=1
)
assert isinstance(response, SetupModel)
assert isinstance(response.transaction_hex, hexstr)
@pytest.mark.integration_test
@pytest.mark.strax_integration_test
def test_offline_withdrawal(strax_hot_node: StraxNode,
setup_coldstaking_accounts_and_addresses,
setup_coldstaking_transaction_and_send,
hot_wallet_name,
get_node_address_with_balance):
assert setup_coldstaking_transaction_and_send()
receiving_address = get_node_address_with_balance(strax_hot_node)
response = strax_hot_node.coldstaking.offline_withdrawal(
wallet_name=hot_wallet_name,
account_name='account 0',
receiving_address=receiving_address,
amount=Money(0.2),
fees=Money(0.0002),
subtractFeeFromAmount=True
)
assert isinstance(response, BuildOfflineSignModel)
@pytest.mark.integration_test
@pytest.mark.strax_integration_test
def test_withdrawal(
strax_hot_node: StraxNode,
strax_offline_node: StraxNode,
connect_two_nodes,
sync_two_nodes,
get_node_address_with_balance,
offline_node_default_wallet_name,
setup_coldstaking_accounts_and_addresses,
setup_coldstaking_transaction_and_send):
# Normally would keep the offline node offline, but need to have it sync to find the transactions here to test this endpoint.
assert connect_two_nodes(strax_hot_node, strax_offline_node)
assert sync_two_nodes(strax_hot_node, strax_offline_node)
assert setup_coldstaking_transaction_and_send()
receiving_address = get_node_address_with_balance(strax_hot_node)
cold_wallet_account = setup_coldstaking_accounts_and_addresses['cold_account']
response = strax_offline_node.coldstaking.withdrawal(
wallet_name=offline_node_default_wallet_name,
account_name=cold_wallet_account.account_name,
wallet_password='password',
receiving_address=receiving_address,
amount=Money(0.2),
fees=Money(0.0002),
subtractFeeFromAmount=True
)
assert isinstance(response, WithdrawalModel)
assert isinstance(response.transaction_hex, hexstr)
@pytest.mark.integration_test
@pytest.mark.strax_integration_test
def test_estimate_offline_withdrawal_fee(
strax_hot_node: StraxNode,
strax_offline_node: StraxNode,
setup_coldstaking_accounts_and_addresses,
setup_coldstaking_transaction_and_send,
connect_two_nodes,
sync_two_nodes,
offline_node_default_wallet_name,
get_node_address_with_balance):
# Normally would keep the offline node offline, but need to have it sync to find the transactions here to test this endpoint.
assert connect_two_nodes(strax_hot_node, strax_offline_node)
assert sync_two_nodes(strax_hot_node, strax_offline_node)
assert setup_coldstaking_transaction_and_send()
receiving_address = get_node_address_with_balance(strax_hot_node)
cold_account = setup_coldstaking_accounts_and_addresses['cold_account']
response = strax_offline_node.coldstaking.estimate_offline_withdrawal_tx_fee(
wallet_name=offline_node_default_wallet_name,
account_name=cold_account.account_name,
receiving_address=receiving_address,
amount=Money(4)
)
assert isinstance(response, Money)
@pytest.mark.integration_test
@pytest.mark.strax_integration_test
def test_estimate_withdrawal_fee(
strax_hot_node: StraxNode,
strax_offline_node: StraxNode,
connect_two_nodes,
sync_two_nodes,
offline_node_default_wallet_name,
setup_coldstaking_accounts_and_addresses,
setup_coldstaking_transaction_and_send,
get_node_address_with_balance):
# Normally would keep the offline node offline, but need to have it sync to find the transactions here to test this endpoint.
assert connect_two_nodes(strax_hot_node, strax_offline_node)
assert sync_two_nodes(strax_hot_node, strax_offline_node)
assert setup_coldstaking_transaction_and_send()
receiving_address = get_node_address_with_balance(strax_hot_node)
cold_account = setup_coldstaking_accounts_and_addresses['cold_account']
response = strax_offline_node.coldstaking.estimate_withdrawal_tx_fee(
wallet_name=offline_node_default_wallet_name,
account_name=cold_account.account_name,
wallet_password='password',
receiving_address=receiving_address,
amount=Money(4),
fees=Money(0.0002)
)
assert isinstance(response, Money)
| 41.547619
| 146
| 0.761748
| 1,740
| 13,960
| 5.641379
| 0.082184
| 0.064181
| 0.050122
| 0.071516
| 0.809902
| 0.760391
| 0.7337
| 0.698044
| 0.654544
| 0.639059
| 0
| 0.006613
| 0.176791
| 13,960
| 335
| 147
| 41.671642
| 0.847546
| 0.061246
| 0
| 0.612676
| 0
| 0
| 0.033761
| 0.002444
| 0
| 0
| 0
| 0
| 0.098592
| 1
| 0.059859
| false
| 0.028169
| 0.014085
| 0.010563
| 0.09507
| 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
|
1284afbc6b051b1099afcdd705be9d6320042de6
| 357
|
py
|
Python
|
src/webtsainterface/views.py
|
LimnoTech/WEBTSA
|
f67ccfac0e4d101a6c67f50fabe5c171303bede3
|
[
"BSD-3-Clause"
] | null | null | null |
src/webtsainterface/views.py
|
LimnoTech/WEBTSA
|
f67ccfac0e4d101a6c67f50fabe5c171303bede3
|
[
"BSD-3-Clause"
] | 2
|
2021-09-03T18:47:04.000Z
|
2021-12-16T21:27:54.000Z
|
src/webtsainterface/views.py
|
LimnoTech/WEBTSA
|
f67ccfac0e4d101a6c67f50fabe5c171303bede3
|
[
"BSD-3-Clause"
] | null | null | null |
from WEBTSA.settings.base import TEMPLATES
from django.views.generic.base import TemplateView
from django.shortcuts import render
#class TsaView(TemplateView):
# #template_name = 'webtsainterface/index.html'
# template_name = 'templates\webtsainterface\index.html'
def index(request):
return render(
request,
'index.html'
)
| 23.8
| 59
| 0.733894
| 40
| 357
| 6.5
| 0.55
| 0.103846
| 0.184615
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.173669
| 357
| 14
| 60
| 25.5
| 0.881356
| 0.37535
| 0
| 0
| 0
| 0
| 0.045662
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.125
| false
| 0
| 0.375
| 0.125
| 0.625
| 0
| 0
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
|
0
| 4
|
12873110705d67252c3cc360e93d6a26c7788a70
| 561
|
py
|
Python
|
peacecorps/peacecorps/templatetags/share.py
|
larry1138/peacecorps-site-BUT-BETTER
|
7e1ebbb46c47873cd74675c2db641b8ba60a1169
|
[
"CC0-1.0"
] | 8
|
2015-01-06T15:38:12.000Z
|
2016-05-02T23:55:39.000Z
|
peacecorps/peacecorps/templatetags/share.py
|
larry1138/peacecorps-site-BUT-BETTER
|
7e1ebbb46c47873cd74675c2db641b8ba60a1169
|
[
"CC0-1.0"
] | 61
|
2015-01-05T18:20:57.000Z
|
2016-01-28T22:08:03.000Z
|
peacecorps/peacecorps/templatetags/share.py
|
larry1138/peacecorps-site-BUT-BETTER
|
7e1ebbb46c47873cd74675c2db641b8ba60a1169
|
[
"CC0-1.0"
] | 12
|
2015-02-04T21:15:41.000Z
|
2021-02-17T11:03:27.000Z
|
"""Provides the data for sharing over social media."""
from django.conf import settings
from django_jinja import library
@library.global_function
def share_tweet():
return getattr(settings, 'SHARE_TWEET', '')
@library.global_function
def share_url(request, override=None):
if override is None:
return request.build_absolute_uri()
return override
@library.global_function
def share_subject():
return getattr(settings, 'SHARE_SUBJECT', '')
@library.global_function
def share_text():
return getattr(settings, 'SHARE_TEMPLATE', '')
| 24.391304
| 54
| 0.750446
| 71
| 561
| 5.732394
| 0.478873
| 0.127764
| 0.206388
| 0.235872
| 0.285012
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.146168
| 561
| 22
| 55
| 25.5
| 0.849687
| 0.085562
| 0
| 0.25
| 0
| 0
| 0.074951
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.125
| 0.1875
| 0.6875
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
|
0
| 4
|
12951bc496354b956af9f50c45d049d850bb7c47
| 139
|
py
|
Python
|
game/utils/__init__.py
|
lukaspestalozzi/Master_Semester_Project
|
4e71d4034ae3f5e7efa0864b48c6fd4d876fef4e
|
[
"MIT"
] | null | null | null |
game/utils/__init__.py
|
lukaspestalozzi/Master_Semester_Project
|
4e71d4034ae3f5e7efa0864b48c6fd4d876fef4e
|
[
"MIT"
] | null | null | null |
game/utils/__init__.py
|
lukaspestalozzi/Master_Semester_Project
|
4e71d4034ae3f5e7efa0864b48c6fd4d876fef4e
|
[
"MIT"
] | null | null | null |
from .utils import *
from .typedcollections import TypedList, TypedTuple
from .gametree import GameTree, GameTreeNode
from .types import *
| 27.8
| 51
| 0.81295
| 16
| 139
| 7.0625
| 0.5625
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.129496
| 139
| 4
| 52
| 34.75
| 0.933884
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
12a93a2d05d24fc2c74e396adb62f81d85355874
| 203
|
py
|
Python
|
statistics/__init__.py
|
stevehamwu/EmotionCauseExtraction
|
b5a160f35f7b03bf3730b6885096dbc5f958df8b
|
[
"MIT"
] | 3
|
2022-02-07T12:08:38.000Z
|
2022-03-28T04:26:39.000Z
|
statistics/__init__.py
|
stevehamwu/EmotionCauseExtraction
|
b5a160f35f7b03bf3730b6885096dbc5f958df8b
|
[
"MIT"
] | null | null | null |
statistics/__init__.py
|
stevehamwu/EmotionCauseExtraction
|
b5a160f35f7b03bf3730b6885096dbc5f958df8b
|
[
"MIT"
] | null | null | null |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2019/2/23 11:26
# @Author : Steve Wu
# @Site :
# @File : __init__.py.py
# @Software: PyCharm
# @Github : https://github.com/stevehamwu
| 22.555556
| 42
| 0.581281
| 28
| 203
| 4.071429
| 0.928571
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.075
| 0.211823
| 203
| 8
| 43
| 25.375
| 0.6375
| 0.921182
| 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
|
12ca9ed0ffd58aeffaaae3a45565023eddb28fe7
| 213
|
py
|
Python
|
backend/records/templatetags/clock.py
|
luoy2/babytimer
|
0a04359c869ddeeeedec200aaa1dfdfb998b736c
|
[
"MIT"
] | 5
|
2021-06-14T01:20:57.000Z
|
2021-09-05T15:23:56.000Z
|
backend/records/templatetags/clock.py
|
luoy2/babytimer
|
0a04359c869ddeeeedec200aaa1dfdfb998b736c
|
[
"MIT"
] | null | null | null |
backend/records/templatetags/clock.py
|
luoy2/babytimer
|
0a04359c869ddeeeedec200aaa1dfdfb998b736c
|
[
"MIT"
] | null | null | null |
from django import template
from django.utils import timezone as tz
register = template.Library()
import datetime
@register.simple_tag
def current_time(format_string):
return tz.now().strftime(format_string)
| 23.666667
| 43
| 0.807512
| 30
| 213
| 5.6
| 0.7
| 0.119048
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.117371
| 213
| 9
| 43
| 23.666667
| 0.893617
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.142857
| false
| 0
| 0.428571
| 0.142857
| 0.714286
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
|
0
| 4
|
4201289b4ee55616ffe5e675b7eafed009b9444f
| 60
|
py
|
Python
|
test/completion/stub_folder/with_stub_folder/__init__.py
|
kirat-singh/jedi
|
65bc1c117b3175cb4d492484775c3fd7f207bc92
|
[
"MIT"
] | 4,213
|
2015-01-02T15:43:22.000Z
|
2022-03-31T16:15:01.000Z
|
test/completion/stub_folder/with_stub_folder/__init__.py
|
kirat-singh/jedi
|
65bc1c117b3175cb4d492484775c3fd7f207bc92
|
[
"MIT"
] | 1,392
|
2015-01-02T18:43:39.000Z
|
2022-03-27T18:43:59.000Z
|
test/completion/stub_folder/with_stub_folder/__init__.py
|
PeterJCLaw/jedi
|
070f191f550990c23220d7f209df076178307cf6
|
[
"MIT"
] | 525
|
2015-01-02T19:07:31.000Z
|
2022-03-13T02:03:20.000Z
|
in_with_stub_both_folder = 5
in_with_stub_python_folder = 8
| 20
| 30
| 0.866667
| 12
| 60
| 3.666667
| 0.666667
| 0.272727
| 0.454545
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.037037
| 0.1
| 60
| 2
| 31
| 30
| 0.777778
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| null | 1
| 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
|
4204d8bd4fab6e84cbcf63f4f282c2f1b87d03e8
| 340
|
py
|
Python
|
pkg/msgapi/mqtt/models/__init__.py
|
ToraNova/rapidflask
|
f42354b296659dac5be904d7bb68076b9458f79a
|
[
"MIT"
] | null | null | null |
pkg/msgapi/mqtt/models/__init__.py
|
ToraNova/rapidflask
|
f42354b296659dac5be904d7bb68076b9458f79a
|
[
"MIT"
] | null | null | null |
pkg/msgapi/mqtt/models/__init__.py
|
ToraNova/rapidflask
|
f42354b296659dac5be904d7bb68076b9458f79a
|
[
"MIT"
] | null | null | null |
# Models for MQTT client on board the http server
# Import model classes here for re-export so the
# naming is easier on the entire system
# introduced u8 @date 20/05/2019
from pkg.msgapi.mqtt.models.mqsub import MQTT_Sub
from pkg.msgapi.mqtt.models.mqmsg import MQTT_Msg
from pkg.msgapi.mqtt.models.mqbrk import MQTT_Broker_Configuration
| 37.777778
| 66
| 0.808824
| 59
| 340
| 4.59322
| 0.627119
| 0.077491
| 0.143911
| 0.188192
| 0.254613
| 0
| 0
| 0
| 0
| 0
| 0
| 0.030508
| 0.132353
| 340
| 8
| 67
| 42.5
| 0.888136
| 0.479412
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
42299dec203fff4a5e7f7ae56fca4a0b5b54eb30
| 105
|
py
|
Python
|
genericfile/admin.py
|
djangothon/django-generic-file
|
06366ab0b02295501fa318e81dc2e96f0de9c688
|
[
"MIT"
] | 1
|
2015-08-22T18:29:24.000Z
|
2015-08-22T18:29:24.000Z
|
genericfile/admin.py
|
djangothon/django-generic-file
|
06366ab0b02295501fa318e81dc2e96f0de9c688
|
[
"MIT"
] | null | null | null |
genericfile/admin.py
|
djangothon/django-generic-file
|
06366ab0b02295501fa318e81dc2e96f0de9c688
|
[
"MIT"
] | null | null | null |
from django.contrib import admin
from genericfile.models import FileStore
admin.site.register(FileStore)
| 26.25
| 40
| 0.857143
| 14
| 105
| 6.428571
| 0.714286
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.085714
| 105
| 4
| 41
| 26.25
| 0.9375
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 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
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
4251cfc8e97e6cec708ea7db61b4e943b19a94c7
| 258
|
py
|
Python
|
datastore/connectors/megatron_datasets.py
|
drugilsberg/data-tooling
|
4dff0598b2a998f09b611980a717d9d14ea51fc3
|
[
"Apache-2.0"
] | null | null | null |
datastore/connectors/megatron_datasets.py
|
drugilsberg/data-tooling
|
4dff0598b2a998f09b611980a717d9d14ea51fc3
|
[
"Apache-2.0"
] | null | null | null |
datastore/connectors/megatron_datasets.py
|
drugilsberg/data-tooling
|
4dff0598b2a998f09b611980a717d9d14ea51fc3
|
[
"Apache-2.0"
] | null | null | null |
#################################################################################################################################
# Code for megatron mmap indexed datasets, which are in turn based on memmap datasets, and a custom numpy based index file.
| 64.5
| 130
| 0.379845
| 21
| 258
| 4.666667
| 0.904762
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.104651
| 258
| 3
| 131
| 86
| 0.424242
| 0.468992
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
425b9ffa4a267ccda24725b1e52dba7c77f0bea3
| 22
|
py
|
Python
|
src/masonite/__init__.py
|
cercos/masonite
|
f7f220efa7fae833683e9f07ce13c3795a87d3b8
|
[
"MIT"
] | null | null | null |
src/masonite/__init__.py
|
cercos/masonite
|
f7f220efa7fae833683e9f07ce13c3795a87d3b8
|
[
"MIT"
] | null | null | null |
src/masonite/__init__.py
|
cercos/masonite
|
f7f220efa7fae833683e9f07ce13c3795a87d3b8
|
[
"MIT"
] | null | null | null |
__version__ = "4.6.4"
| 11
| 21
| 0.636364
| 4
| 22
| 2.5
| 0.75
| 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
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.